@rindo/core 1.8.12 → 1.17.4

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 (545) hide show
  1. package/bin/rindo +53 -19
  2. package/cli/index.cjs.js +524 -0
  3. package/cli/index.d.ts +15 -0
  4. package/cli/index.js +500 -0
  5. package/cli/package.json +9 -0
  6. package/compiler/package.json +8 -6
  7. package/compiler/rindo.d.ts +111 -0
  8. package/compiler/rindo.js +62852 -6655
  9. package/compiler/rindo.min.js +17 -0
  10. package/dependencies.json +80 -0
  11. package/dev-server/client/app-error.d.ts +18 -0
  12. package/dev-server/client/events.d.ts +6 -0
  13. package/dev-server/client/hmr-components.d.ts +1 -0
  14. package/dev-server/client/hmr-external-styles.d.ts +1 -0
  15. package/dev-server/client/hmr-images.d.ts +1 -0
  16. package/dev-server/client/hmr-inline-styles.d.ts +1 -0
  17. package/dev-server/client/hmr-util.d.ts +9 -0
  18. package/dev-server/client/hmr-window.d.ts +10 -0
  19. package/dev-server/client/index.d.ts +6 -0
  20. package/dev-server/client/index.js +785 -0
  21. package/dev-server/client/logger.d.ts +5 -0
  22. package/dev-server/client/package.json +8 -0
  23. package/dev-server/client/progress.d.ts +3 -0
  24. package/dev-server/client/status.d.ts +4 -0
  25. package/dev-server/connector.html +6 -0
  26. package/dev-server/content-type-db.json +1 -0
  27. package/dev-server/index.d.ts +6 -0
  28. package/dev-server/index.js +260 -0
  29. package/dev-server/open-in-editor-api.js +1 -0
  30. package/dev-server/package.json +8 -0
  31. package/dev-server/server-worker.js +1570 -0
  32. package/{dist/dev-server → dev-server}/static/favicon.ico +0 -0
  33. package/{dist/dev-server → dev-server}/templates/directory-index.html +132 -132
  34. package/dev-server/templates/initial-load.html +160 -0
  35. package/{dist/sys/node → dev-server}/visualstudio.vbs +0 -0
  36. package/dev-server/ws.js +1 -0
  37. package/{dist/sys/node → dev-server}/xdg-open +0 -0
  38. package/internal/app-data/index.cjs.js +88 -0
  39. package/internal/app-data/index.d.ts +3 -0
  40. package/internal/{client/build-conditionals.mjs → app-data/index.js} +24 -21
  41. package/internal/app-data/package.json +9 -0
  42. package/internal/client/css-shim.js +4 -0
  43. package/internal/client/{dom.rindo-client.mjs → dom.js} +73 -137
  44. package/{dist/client/index.mjs → internal/client/index.js} +736 -736
  45. package/internal/client/package.json +7 -0
  46. package/internal/client/patch.js +136 -0
  47. package/internal/client/polyfills/core-js.js +11 -10
  48. package/internal/client/polyfills/css-shim.js +1 -656
  49. package/internal/client/polyfills/dom.js +79 -146
  50. package/internal/client/polyfills/es5-html-element.js +1 -18
  51. package/internal/client/polyfills/index.js +6 -7
  52. package/internal/client/{shadow-css.rindo-client.mjs → shadow-css.js} +14 -17
  53. package/internal/hydrate/index.js +1073 -0
  54. package/internal/hydrate/package.json +7 -0
  55. package/internal/hydrate/runner.d.ts +205 -0
  56. package/internal/hydrate/runner.js +748 -0
  57. package/internal/hydrate/shadow-css.js +146 -0
  58. package/internal/index.d.ts +4 -18
  59. package/internal/index.js +1 -1
  60. package/internal/package.json +8 -6
  61. package/internal/rindo-core/index.d.ts +2 -0
  62. package/{dist → internal/rindo-core}/index.js +0 -0
  63. package/internal/rindo-ext-modules.d.ts +39 -0
  64. package/internal/rindo-private.d.ts +2183 -0
  65. package/internal/rindo-public-compiler.d.ts +2094 -0
  66. package/{dist/declarations/docs.d.ts → internal/rindo-public-docs.d.ts} +13 -1
  67. package/internal/rindo-public-runtime.d.ts +1552 -0
  68. package/internal/testing/index.js +1032 -0
  69. package/internal/testing/package.json +7 -0
  70. package/internal/testing/shadow-css.js +146 -0
  71. package/mock-doc/index.cjs.js +4500 -0
  72. package/mock-doc/index.d.ts +905 -0
  73. package/mock-doc/index.js +4464 -2
  74. package/mock-doc/package.json +9 -10
  75. package/package.json +84 -137
  76. package/readme.md +3 -82
  77. package/screenshot/compare/build/app.css +1 -1
  78. package/screenshot/compare/build/app.esm.js +1 -1
  79. package/screenshot/compare/build/app.js +27 -812
  80. package/{dist/compiler/polyfills.d.ts → screenshot/compare/build/index.esm.js} +0 -0
  81. package/screenshot/compare/build/{p-113f7459.js → p-081b0641.js} +1 -1
  82. package/screenshot/compare/build/p-227a1e18.entry.js +1 -0
  83. package/screenshot/compare/build/p-2c298727.entry.js +1 -0
  84. package/screenshot/compare/build/p-5479268c.entry.js +1 -0
  85. package/screenshot/compare/build/p-573ec8a4.entry.js +1 -0
  86. package/screenshot/compare/build/p-6ba08604.entry.js +1 -0
  87. package/screenshot/compare/build/p-6bc63295.entry.js +1 -0
  88. package/screenshot/compare/build/p-7a3759fd.entry.js +1 -0
  89. package/screenshot/compare/build/{p-ejpsp3kx.js → p-7b4e3ba7.js} +1 -1
  90. package/screenshot/compare/build/p-988eb362.css +1 -0
  91. package/screenshot/compare/build/p-9b6a9315.js +1 -0
  92. package/screenshot/compare/build/p-b4cc611c.entry.js +1 -0
  93. package/screenshot/compare/build/p-d1bf53f5.entry.js +1 -0
  94. package/screenshot/compare/build/{p-efb0eac6.js → p-e2efe0df.js} +1 -1
  95. package/screenshot/compare/build/p-e8ca6d97.entry.js +1 -0
  96. package/screenshot/compare/build/p-ec2f13e0.entry.js +1 -0
  97. package/screenshot/compare/build/p-f0b99977.entry.js +1 -0
  98. package/screenshot/compare/build/p-f4745c2f.entry.js +1 -0
  99. package/screenshot/compare/build/p-fbbae598.js +1 -0
  100. package/screenshot/compare/host.config.json +14 -14
  101. package/screenshot/compare/index.html +1 -1
  102. package/{dist/screenshot → screenshot}/connector-base.d.ts +1 -1
  103. package/{dist/screenshot → screenshot}/connector-local.d.ts +1 -1
  104. package/screenshot/connector.js +2 -3
  105. package/{dist/screenshot → screenshot}/index.d.ts +1 -1
  106. package/screenshot/index.js +642 -2
  107. package/screenshot/local-connector.js +2 -3
  108. package/screenshot/package.json +8 -13
  109. package/{dist/screenshot → screenshot}/pixel-match.d.ts +0 -0
  110. package/screenshot/pixel-match.js +22 -6
  111. package/screenshot/screenshot-compare.d.ts +3 -0
  112. package/{dist/screenshot → screenshot}/screenshot-fs.d.ts +1 -1
  113. package/sys/node/autoprefixer.js +1 -0
  114. package/sys/node/glob.js +1 -0
  115. package/sys/node/graceful-fs.js +1 -0
  116. package/sys/node/index.d.ts +18 -0
  117. package/sys/node/index.js +1402 -2
  118. package/sys/node/node-fetch.js +1 -0
  119. package/sys/node/package.json +8 -5
  120. package/sys/node/prompts.js +1 -0
  121. package/sys/node/worker.js +33 -0
  122. package/{dist/testing → testing}/index.d.ts +5 -6
  123. package/testing/index.js +3903 -2
  124. package/testing/jest/jest-config.d.ts +92 -0
  125. package/{dist/testing → testing}/jest/jest-environment.d.ts +4 -2
  126. package/{dist/testing → testing}/jest/jest-preprocessor.d.ts +1 -0
  127. package/{dist/testing → testing}/jest/jest-runner.d.ts +1 -1
  128. package/{dist/testing → testing}/jest/jest-screenshot.d.ts +1 -1
  129. package/{dist/testing → testing}/jest/jest-serializer.d.ts +1 -1
  130. package/{dist/testing → testing}/jest/jest-setup-test-framework.d.ts +0 -0
  131. package/testing/jest-environment.js +3 -3
  132. package/testing/jest-preprocessor.js +3 -3
  133. package/testing/jest-preset.js +20 -28
  134. package/testing/jest-runner.js +3 -3
  135. package/testing/jest-setuptestframework.js +3 -3
  136. package/{dist/testing → testing}/matchers/attributes.d.ts +0 -0
  137. package/{dist/testing → testing}/matchers/class-list.d.ts +0 -0
  138. package/{dist/testing → testing}/matchers/events.d.ts +9 -1
  139. package/{dist/testing → testing}/matchers/html.d.ts +0 -0
  140. package/{dist/testing → testing}/matchers/index.d.ts +3 -1
  141. package/{dist/testing → testing}/matchers/screenshot.d.ts +1 -1
  142. package/{dist/testing → testing}/matchers/text.d.ts +0 -0
  143. package/testing/mock-fetch.d.ts +11 -0
  144. package/testing/mocks.d.ts +14 -0
  145. package/testing/package.json +8 -6
  146. package/testing/puppeteer/index.d.ts +2 -0
  147. package/{dist/testing → testing}/puppeteer/puppeteer-browser.d.ts +2 -2
  148. package/{dist/testing → testing}/puppeteer/puppeteer-declarations.d.ts +9 -9
  149. package/{dist/testing → testing}/puppeteer/puppeteer-element.d.ts +5 -3
  150. package/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
  151. package/{dist/testing → testing}/puppeteer/puppeteer-events.d.ts +7 -7
  152. package/testing/puppeteer/puppeteer-page.d.ts +2 -0
  153. package/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
  154. package/testing/reset-build-conditionals.d.ts +2 -0
  155. package/testing/spec-page.d.ts +2 -0
  156. package/testing/test-transpile.d.ts +2 -0
  157. package/{dist/testing → testing}/testing-logger.d.ts +10 -8
  158. package/testing/testing-sys.d.ts +1 -0
  159. package/{dist/testing → testing}/testing-utils.d.ts +3 -2
  160. package/testing/testing.d.ts +2 -0
  161. package/build-conditionals/index.d.ts +0 -2
  162. package/build-conditionals/index.mjs +0 -66
  163. package/build-conditionals/package.json +0 -6
  164. package/compiler/index.js +0 -2
  165. package/dist/cli/index.js +0 -6068
  166. package/dist/client/css-shim-14a9812e.js +0 -656
  167. package/dist/client/css-shim-69821662.js +0 -658
  168. package/dist/client/declarations/rindo.core.d.ts +0 -1347
  169. package/dist/client/dom-68c8fe31.js +0 -139
  170. package/dist/client/dom-af01458a.js +0 -137
  171. package/dist/client/index.js +0 -2937
  172. package/dist/client/polyfills/core-js.js +0 -10
  173. package/dist/client/polyfills/css-shim.js +0 -656
  174. package/dist/client/polyfills/dom.js +0 -146
  175. package/dist/client/polyfills/es5-html-element.js +0 -18
  176. package/dist/client/polyfills/index.js +0 -35
  177. package/dist/client/polyfills/promise.js +0 -9
  178. package/dist/client/polyfills/system.js +0 -6
  179. package/dist/client/shadow-css-6ef31c68.js +0 -386
  180. package/dist/client/shadow-css-8fd1a9e4.js +0 -388
  181. package/dist/compiler/app-core/app-es5-disabled.d.ts +0 -2
  182. package/dist/compiler/app-core/app-polyfills.d.ts +0 -3
  183. package/dist/compiler/app-core/build-conditionals.d.ts +0 -6
  184. package/dist/compiler/app-core/bundle-app-core.d.ts +0 -6
  185. package/dist/compiler/app-core/component-styles.d.ts +0 -4
  186. package/dist/compiler/app-core/format-component-runtime-meta.d.ts +0 -4
  187. package/dist/compiler/app-core/optimize-module.d.ts +0 -7
  188. package/dist/compiler/browser/build-conditionals-client.d.ts +0 -3
  189. package/dist/compiler/browser/compile-options.d.ts +0 -12
  190. package/dist/compiler/browser/compile.d.ts +0 -2
  191. package/dist/compiler/browser/create-compiler.d.ts +0 -14
  192. package/dist/compiler/browser/index.d.ts +0 -11
  193. package/dist/compiler/build/build-ctx.d.ts +0 -74
  194. package/dist/compiler/build/build-finish.d.ts +0 -3
  195. package/dist/compiler/build/build-hmr.d.ts +0 -2
  196. package/dist/compiler/build/build-results.d.ts +0 -2
  197. package/dist/compiler/build/build-stats.d.ts +0 -3
  198. package/dist/compiler/build/build.d.ts +0 -2
  199. package/dist/compiler/build/cache-stats.d.ts +0 -4
  200. package/dist/compiler/build/compiler-build-id.d.ts +0 -6
  201. package/dist/compiler/build/compiler-ctx.d.ts +0 -44
  202. package/dist/compiler/build/init-index-html.d.ts +0 -2
  203. package/dist/compiler/build/validate-files.d.ts +0 -2
  204. package/dist/compiler/build/write-build.d.ts +0 -2
  205. package/dist/compiler/cache.d.ts +0 -22
  206. package/dist/compiler/compiler.d.ts +0 -27
  207. package/dist/compiler/component-hydrate/bundle-hydrate-factory.d.ts +0 -3
  208. package/dist/compiler/component-hydrate/generate-hydrate-app.d.ts +0 -2
  209. package/dist/compiler/component-hydrate/hydrate-factory-closure.d.ts +0 -2
  210. package/dist/compiler/component-hydrate/update-to-hydrate-components.d.ts +0 -2
  211. package/dist/compiler/component-hydrate/write-hydrate-outputs.d.ts +0 -3
  212. package/dist/compiler/component-lazy/generate-cjs.d.ts +0 -3
  213. package/dist/compiler/component-lazy/generate-esm-browser.d.ts +0 -3
  214. package/dist/compiler/component-lazy/generate-esm.d.ts +0 -3
  215. package/dist/compiler/component-lazy/generate-lazy-app.d.ts +0 -3
  216. package/dist/compiler/component-lazy/generate-lazy-module.d.ts +0 -4
  217. package/dist/compiler/component-lazy/generate-system.d.ts +0 -3
  218. package/dist/compiler/component-lazy/update-to-lazy-component.d.ts +0 -2
  219. package/dist/compiler/component-lazy/write-lazy-entry-module.d.ts +0 -2
  220. package/dist/compiler/component-native/update-to-native-component.d.ts +0 -2
  221. package/dist/compiler/config/config-reload.d.ts +0 -3
  222. package/dist/compiler/config/config-utils.d.ts +0 -4
  223. package/dist/compiler/config/validate-config.d.ts +0 -4
  224. package/dist/compiler/config/validate-copy.d.ts +0 -2
  225. package/dist/compiler/config/validate-dev-server.d.ts +0 -2
  226. package/dist/compiler/config/validate-docs.d.ts +0 -2
  227. package/dist/compiler/config/validate-namespace.d.ts +0 -3
  228. package/dist/compiler/config/validate-output-stats.d.ts +0 -2
  229. package/dist/compiler/config/validate-outputs-angular.d.ts +0 -2
  230. package/dist/compiler/config/validate-outputs-custom.d.ts +0 -2
  231. package/dist/compiler/config/validate-outputs-dist-module.d.ts +0 -2
  232. package/dist/compiler/config/validate-outputs-dist.d.ts +0 -2
  233. package/dist/compiler/config/validate-outputs-hydrate-script.d.ts +0 -2
  234. package/dist/compiler/config/validate-outputs-www.d.ts +0 -2
  235. package/dist/compiler/config/validate-outputs.d.ts +0 -2
  236. package/dist/compiler/config/validate-paths.d.ts +0 -2
  237. package/dist/compiler/config/validate-plugins.d.ts +0 -2
  238. package/dist/compiler/config/validate-prerender.d.ts +0 -2
  239. package/dist/compiler/config/validate-rollup-config.d.ts +0 -2
  240. package/dist/compiler/config/validate-service-worker.d.ts +0 -2
  241. package/dist/compiler/config/validate-testing.d.ts +0 -2
  242. package/dist/compiler/config/validate-workers.d.ts +0 -2
  243. package/dist/compiler/copy/assets-copy-tasks.d.ts +0 -3
  244. package/dist/compiler/copy/hashed-copy.d.ts +0 -2
  245. package/dist/compiler/copy/local-copy-tasks.d.ts +0 -3
  246. package/dist/compiler/docs/constants.d.ts +0 -2
  247. package/dist/compiler/docs/custom/index.d.ts +0 -2
  248. package/dist/compiler/docs/docs.d.ts +0 -2
  249. package/dist/compiler/docs/generate-doc-data.d.ts +0 -3
  250. package/dist/compiler/docs/json/index.d.ts +0 -3
  251. package/dist/compiler/docs/readme/docs-util.d.ts +0 -13
  252. package/dist/compiler/docs/readme/index.d.ts +0 -3
  253. package/dist/compiler/docs/readme/markdown-css-props.d.ts +0 -2
  254. package/dist/compiler/docs/readme/markdown-dependencies.d.ts +0 -2
  255. package/dist/compiler/docs/readme/markdown-events.d.ts +0 -2
  256. package/dist/compiler/docs/readme/markdown-methods.d.ts +0 -2
  257. package/dist/compiler/docs/readme/markdown-props.d.ts +0 -2
  258. package/dist/compiler/docs/readme/markdown-slots.d.ts +0 -2
  259. package/dist/compiler/docs/readme/markdown-usage.d.ts +0 -6
  260. package/dist/compiler/docs/readme/output-docs.d.ts +0 -3
  261. package/dist/compiler/docs/style-docs.d.ts +0 -2
  262. package/dist/compiler/docs/vscode/index.d.ts +0 -2
  263. package/dist/compiler/entries/component-bundles.d.ts +0 -3
  264. package/dist/compiler/entries/component-graph.d.ts +0 -2
  265. package/dist/compiler/entries/default-bundles.d.ts +0 -3
  266. package/dist/compiler/entries/entry-modules.d.ts +0 -6
  267. package/dist/compiler/entries/resolve-component-dependencies.d.ts +0 -2
  268. package/dist/compiler/events.d.ts +0 -15
  269. package/dist/compiler/fs-watch/fs-watch-init.d.ts +0 -2
  270. package/dist/compiler/fs-watch/fs-watch-log.d.ts +0 -2
  271. package/dist/compiler/fs-watch/fs-watch-rebuild.d.ts +0 -7
  272. package/dist/compiler/html/inject-module-preloads.d.ts +0 -3
  273. package/dist/compiler/html/inject-sw-script.d.ts +0 -4
  274. package/dist/compiler/html/inline-esm-import.d.ts +0 -2
  275. package/dist/compiler/html/inline-style-sheets.d.ts +0 -2
  276. package/dist/compiler/html/update-global-styles-link.d.ts +0 -2
  277. package/dist/compiler/html/used-components.d.ts +0 -2
  278. package/dist/compiler/html/utils.d.ts +0 -2
  279. package/dist/compiler/html/validate-manifest-json.d.ts +0 -2
  280. package/dist/compiler/index.d.ts +0 -10
  281. package/dist/compiler/index.js +0 -18008
  282. package/dist/compiler/output-targets/empty-dir.d.ts +0 -6
  283. package/dist/compiler/output-targets/index.d.ts +0 -2
  284. package/dist/compiler/output-targets/output-angular.d.ts +0 -4
  285. package/dist/compiler/output-targets/output-app.d.ts +0 -4
  286. package/dist/compiler/output-targets/output-collection.d.ts +0 -3
  287. package/dist/compiler/output-targets/output-copy.d.ts +0 -2
  288. package/dist/compiler/output-targets/output-custom.d.ts +0 -2
  289. package/dist/compiler/output-targets/output-docs.d.ts +0 -2
  290. package/dist/compiler/output-targets/output-hydrate.d.ts +0 -2
  291. package/dist/compiler/output-targets/output-lazy-loader.d.ts +0 -2
  292. package/dist/compiler/output-targets/output-module.d.ts +0 -4
  293. package/dist/compiler/output-targets/output-prerender.d.ts +0 -2
  294. package/dist/compiler/output-targets/output-service-workers.d.ts +0 -2
  295. package/dist/compiler/output-targets/output-types.d.ts +0 -2
  296. package/dist/compiler/output-targets/output-utils.d.ts +0 -54
  297. package/dist/compiler/output-targets/output-www.d.ts +0 -2
  298. package/dist/compiler/plugin/plugin.d.ts +0 -6
  299. package/dist/compiler/prerender/crawl-urls.d.ts +0 -3
  300. package/dist/compiler/prerender/host-config.d.ts +0 -12
  301. package/dist/compiler/prerender/prerender-config.d.ts +0 -2
  302. package/dist/compiler/prerender/prerender-main.d.ts +0 -2
  303. package/dist/compiler/prerender/prerender-queue.d.ts +0 -3
  304. package/dist/compiler/prerender/prerender-template-html.d.ts +0 -2
  305. package/dist/compiler/prerender/prerendered-write-path.d.ts +0 -2
  306. package/dist/compiler/prerender/robots-txt.d.ts +0 -2
  307. package/dist/compiler/prerender/sitemap-xml.d.ts +0 -3
  308. package/dist/compiler/rollup-plugins/component-entry.d.ts +0 -3
  309. package/dist/compiler/rollup-plugins/css-transformer.d.ts +0 -3
  310. package/dist/compiler/rollup-plugins/global-scripts.d.ts +0 -4
  311. package/dist/compiler/rollup-plugins/image-plugin.d.ts +0 -3
  312. package/dist/compiler/rollup-plugins/in-memory-fs-read.d.ts +0 -3
  313. package/dist/compiler/rollup-plugins/loader.d.ts +0 -4
  314. package/dist/compiler/rollup-plugins/plugin-helper.d.ts +0 -5
  315. package/dist/compiler/rollup-plugins/rindo-build-conditionals.d.ts +0 -7
  316. package/dist/compiler/rollup-plugins/rindo-client.d.ts +0 -3
  317. package/dist/compiler/rollup-plugins/rindo-external-runtime.d.ts +0 -2
  318. package/dist/compiler/rollup-plugins/rindo-hydrate.d.ts +0 -3
  319. package/dist/compiler/rollup-plugins/rindo-public-plugin.d.ts +0 -2
  320. package/dist/compiler/service-worker/generate-sw.d.ts +0 -7
  321. package/dist/compiler/service-worker/service-worker-util.d.ts +0 -2
  322. package/dist/compiler/style/cached-styles.d.ts +0 -5
  323. package/dist/compiler/style/component-styles.d.ts +0 -2
  324. package/dist/compiler/style/css-imports.d.ts +0 -9
  325. package/dist/compiler/style/css-to-esm.d.ts +0 -5
  326. package/dist/compiler/style/generate-styles.d.ts +0 -2
  327. package/dist/compiler/style/global-styles.d.ts +0 -3
  328. package/dist/compiler/style/normalize-styles.d.ts +0 -2
  329. package/dist/compiler/style/optimize-css.d.ts +0 -2
  330. package/dist/compiler/style/scope-css.d.ts +0 -3
  331. package/dist/compiler/style/style-utils.d.ts +0 -10
  332. package/dist/compiler/transformers/add-component-meta-proxy.d.ts +0 -3
  333. package/dist/compiler/transformers/add-component-meta-static.d.ts +0 -4
  334. package/dist/compiler/transformers/add-imports.d.ts +0 -3
  335. package/dist/compiler/transformers/collections/add-external-import.d.ts +0 -2
  336. package/dist/compiler/transformers/collections/parse-collection-components.d.ts +0 -2
  337. package/dist/compiler/transformers/collections/parse-collection-deprecated.d.ts +0 -2
  338. package/dist/compiler/transformers/collections/parse-collection-manifest.d.ts +0 -7
  339. package/dist/compiler/transformers/collections/parse-collection-module.d.ts +0 -2
  340. package/dist/compiler/transformers/component-build-conditionals.d.ts +0 -2
  341. package/dist/compiler/transformers/component-hydrate/hydrate-component.d.ts +0 -3
  342. package/dist/compiler/transformers/component-hydrate/hydrate-runtime-cmp-meta.d.ts +0 -3
  343. package/dist/compiler/transformers/component-hydrate/tranform-to-hydrate-component.d.ts +0 -2
  344. package/dist/compiler/transformers/component-lazy/lazy-component.d.ts +0 -3
  345. package/dist/compiler/transformers/component-lazy/lazy-constructor.d.ts +0 -3
  346. package/dist/compiler/transformers/component-lazy/lazy-element-getter.d.ts +0 -3
  347. package/dist/compiler/transformers/component-lazy/transform-lazy-component.d.ts +0 -4
  348. package/dist/compiler/transformers/component-native/native-component.d.ts +0 -3
  349. package/dist/compiler/transformers/component-native/native-connected-callback.d.ts +0 -3
  350. package/dist/compiler/transformers/component-native/native-constructor.d.ts +0 -3
  351. package/dist/compiler/transformers/component-native/native-element-getter.d.ts +0 -3
  352. package/dist/compiler/transformers/component-native/native-static-style.d.ts +0 -3
  353. package/dist/compiler/transformers/component-native/tranform-to-native-component.d.ts +0 -4
  354. package/dist/compiler/transformers/core-runtime-apis.d.ts +0 -30
  355. package/dist/compiler/transformers/create-event.d.ts +0 -3
  356. package/dist/compiler/transformers/decorators-to-static/component-decorator.d.ts +0 -3
  357. package/dist/compiler/transformers/decorators-to-static/convert-decorators.d.ts +0 -3
  358. package/dist/compiler/transformers/decorators-to-static/decorator-utils.d.ts +0 -10
  359. package/dist/compiler/transformers/decorators-to-static/element-decorator.d.ts +0 -3
  360. package/dist/compiler/transformers/decorators-to-static/event-decorator.d.ts +0 -4
  361. package/dist/compiler/transformers/decorators-to-static/listen-decorator.d.ts +0 -6
  362. package/dist/compiler/transformers/decorators-to-static/method-decorator.d.ts +0 -3
  363. package/dist/compiler/transformers/decorators-to-static/prop-decorator.d.ts +0 -4
  364. package/dist/compiler/transformers/decorators-to-static/state-decorator.d.ts +0 -3
  365. package/dist/compiler/transformers/decorators-to-static/style-to-static.d.ts +0 -3
  366. package/dist/compiler/transformers/decorators-to-static/watch-decorator.d.ts +0 -3
  367. package/dist/compiler/transformers/define-custom-element.d.ts +0 -3
  368. package/dist/compiler/transformers/host-data-transform.d.ts +0 -3
  369. package/dist/compiler/transformers/legacy-props.d.ts +0 -3
  370. package/dist/compiler/transformers/remove-static-meta-properties.d.ts +0 -2
  371. package/dist/compiler/transformers/reserved-public-members.d.ts +0 -3
  372. package/dist/compiler/transformers/rindo-import-path.d.ts +0 -3
  373. package/dist/compiler/transformers/static-to-meta/call-expression.d.ts +0 -3
  374. package/dist/compiler/transformers/static-to-meta/class-methods.d.ts +0 -3
  375. package/dist/compiler/transformers/static-to-meta/component.d.ts +0 -3
  376. package/dist/compiler/transformers/static-to-meta/element-ref.d.ts +0 -2
  377. package/dist/compiler/transformers/static-to-meta/encapsulation.d.ts +0 -3
  378. package/dist/compiler/transformers/static-to-meta/events.d.ts +0 -3
  379. package/dist/compiler/transformers/static-to-meta/import.d.ts +0 -3
  380. package/dist/compiler/transformers/static-to-meta/listeners.d.ts +0 -3
  381. package/dist/compiler/transformers/static-to-meta/methods.d.ts +0 -3
  382. package/dist/compiler/transformers/static-to-meta/props.d.ts +0 -3
  383. package/dist/compiler/transformers/static-to-meta/states.d.ts +0 -3
  384. package/dist/compiler/transformers/static-to-meta/string-literal.d.ts +0 -3
  385. package/dist/compiler/transformers/static-to-meta/styles.d.ts +0 -3
  386. package/dist/compiler/transformers/static-to-meta/vdom.d.ts +0 -3
  387. package/dist/compiler/transformers/static-to-meta/visitor.d.ts +0 -3
  388. package/dist/compiler/transformers/static-to-meta/watchers.d.ts +0 -3
  389. package/dist/compiler/transformers/style-imports.d.ts +0 -3
  390. package/dist/compiler/transformers/transform-utils.d.ts +0 -31
  391. package/dist/compiler/transformers/update-component-class.d.ts +0 -3
  392. package/dist/compiler/transformers/update-rindo-core-import.d.ts +0 -3
  393. package/dist/compiler/transformers/watcher-meta-transform.d.ts +0 -3
  394. package/dist/compiler/transpile/compiler-options.d.ts +0 -4
  395. package/dist/compiler/transpile/transpile-app.d.ts +0 -2
  396. package/dist/compiler/transpile/transpile-module.d.ts +0 -5
  397. package/dist/compiler/transpile/transpile-service.d.ts +0 -3
  398. package/dist/compiler/transpile/transpile-to-es5-main.d.ts +0 -2
  399. package/dist/compiler/transpile/validate-types-main.d.ts +0 -2
  400. package/dist/compiler/types/generate-app-types.d.ts +0 -2
  401. package/dist/compiler/types/generate-component-types.d.ts +0 -8
  402. package/dist/compiler/types/generate-event-types.d.ts +0 -2
  403. package/dist/compiler/types/generate-method-types.d.ts +0 -2
  404. package/dist/compiler/types/generate-prop-types.d.ts +0 -2
  405. package/dist/compiler/types/generate-types.d.ts +0 -2
  406. package/dist/compiler/types/rindo-types.d.ts +0 -3
  407. package/dist/compiler/types/types-utils.d.ts +0 -4
  408. package/dist/compiler/types/update-import-refs.d.ts +0 -11
  409. package/dist/compiler/types/validate-package-json.d.ts +0 -9
  410. package/dist/declarations/assets.d.ts +0 -17
  411. package/dist/declarations/browser-compile.d.ts +0 -47
  412. package/dist/declarations/build-conditionals.d.ts +0 -91
  413. package/dist/declarations/build-events.d.ts +0 -19
  414. package/dist/declarations/build.d.ts +0 -247
  415. package/dist/declarations/cache.d.ts +0 -11
  416. package/dist/declarations/collection-manifest.d.ts +0 -106
  417. package/dist/declarations/collection.d.ts +0 -139
  418. package/dist/declarations/compiler.d.ts +0 -53
  419. package/dist/declarations/component-compiler-meta.d.ts +0 -198
  420. package/dist/declarations/component-constructor.d.ts +0 -61
  421. package/dist/declarations/component-interfaces.d.ts +0 -123
  422. package/dist/declarations/config.d.ts +0 -409
  423. package/dist/declarations/css-var-shim.d.ts +0 -9
  424. package/dist/declarations/decorators.d.ts +0 -150
  425. package/dist/declarations/dev-server.d.ts +0 -135
  426. package/dist/declarations/diagnostics.d.ts +0 -21
  427. package/dist/declarations/entry.d.ts +0 -28
  428. package/dist/declarations/events.d.ts +0 -13
  429. package/dist/declarations/file-system.d.ts +0 -91
  430. package/dist/declarations/fs-watch.d.ts +0 -15
  431. package/dist/declarations/host-element.d.ts +0 -53
  432. package/dist/declarations/hydrate.d.ts +0 -99
  433. package/dist/declarations/in-memory-fs.d.ts +0 -59
  434. package/dist/declarations/index.d.ts +0 -45
  435. package/dist/declarations/jsdoc.d.ts +0 -16
  436. package/dist/declarations/jsx.d.ts +0 -1050
  437. package/dist/declarations/logger.d.ts +0 -25
  438. package/dist/declarations/minify-js.d.ts +0 -11
  439. package/dist/declarations/module.d.ts +0 -35
  440. package/dist/declarations/optimize-css.d.ts +0 -12
  441. package/dist/declarations/output-targets.d.ts +0 -189
  442. package/dist/declarations/plugin.d.ts +0 -23
  443. package/dist/declarations/prerender.d.ts +0 -79
  444. package/dist/declarations/render.d.ts +0 -62
  445. package/dist/declarations/runtime.d.ts +0 -92
  446. package/dist/declarations/screenshots.d.ts +0 -192
  447. package/dist/declarations/server.d.ts +0 -19
  448. package/dist/declarations/style.d.ts +0 -35
  449. package/dist/declarations/system.d.ts +0 -174
  450. package/dist/declarations/testing.d.ts +0 -523
  451. package/dist/declarations/transpile.d.ts +0 -24
  452. package/dist/declarations/types.d.ts +0 -24
  453. package/dist/declarations/vdom.d.ts +0 -55
  454. package/dist/declarations/worker.d.ts +0 -33
  455. package/dist/dev-server/content-type-db.json +0 -1
  456. package/dist/dev-server/index.js +0 -887
  457. package/dist/dev-server/static/app-error.css +0 -257
  458. package/dist/dev-server/static/dev-server-client.html +0 -13
  459. package/dist/dev-server/templates/initial-load.html +0 -160
  460. package/dist/hydrate/index.d.ts +0 -101
  461. package/dist/hydrate/index.mjs +0 -1281
  462. package/dist/hydrate/platform.mjs +0 -347
  463. package/dist/index.d.ts +0 -99
  464. package/dist/mock-doc/index.d.ts +0 -851
  465. package/dist/mock-doc/index.js +0 -3982
  466. package/dist/mock-doc/index.mjs +0 -3954
  467. package/dist/runtime/index.js +0 -2576
  468. package/dist/runtime/index.mjs +0 -2521
  469. package/dist/runtime/shadow-css-6ef31c68.js +0 -386
  470. package/dist/runtime/shadow-css-8fd1a9e4.js +0 -388
  471. package/dist/screenshot/index.js +0 -520
  472. package/dist/sys/node/graceful-fs.js +0 -975
  473. package/dist/sys/node/index.js +0 -33545
  474. package/dist/sys/node/node-fetch.js +0 -1779
  475. package/dist/sys/node/open-in-editor.js +0 -734
  476. package/dist/sys/node/sys-worker.js +0 -67035
  477. package/dist/sys/node/websocket.js +0 -3728
  478. package/dist/testing/build-conditionals.d.ts +0 -4
  479. package/dist/testing/build-conditionals.js +0 -43
  480. package/dist/testing/core.d.ts +0 -35
  481. package/dist/testing/core.js +0 -52
  482. package/dist/testing/index.js +0 -40511
  483. package/dist/testing/jest/jest-config.d.ts +0 -4
  484. package/dist/testing/mock-fetch.d.ts +0 -46
  485. package/dist/testing/mocks.d.ts +0 -12
  486. package/dist/testing/platform.d.ts +0 -23
  487. package/dist/testing/platform.js +0 -321
  488. package/dist/testing/puppeteer/puppeteer-emulate.d.ts +0 -2
  489. package/dist/testing/puppeteer/puppeteer-find.d.ts +0 -5
  490. package/dist/testing/puppeteer/puppeteer-page.d.ts +0 -2
  491. package/dist/testing/puppeteer/puppeteer-screenshot.d.ts +0 -4
  492. package/dist/testing/spec-page.d.ts +0 -5
  493. package/dist/testing/task-queue.d.ts +0 -15
  494. package/dist/testing/test-transpile.d.ts +0 -5
  495. package/dist/testing/testing-fs.d.ts +0 -31
  496. package/dist/testing/testing-sys.d.ts +0 -19
  497. package/dist/testing/testing.d.ts +0 -12
  498. package/dist/utils/index.js +0 -1575
  499. package/dist/utils/index.mjs +0 -1511
  500. package/internal/client/css-shim.rindo-client.mjs +0 -656
  501. package/internal/client/index.mjs +0 -2859
  502. package/internal/client/polyfills/promise.js +0 -9
  503. package/internal/images.d.ts +0 -5
  504. package/runtime/package.json +0 -5
  505. package/screenshot/compare/build/p-020f8d73.js +0 -1
  506. package/screenshot/compare/build/p-09qdknbg.system.entry.js +0 -1
  507. package/screenshot/compare/build/p-0a13mpsc.system.entry.js +0 -1
  508. package/screenshot/compare/build/p-168ec2c4.system.js +0 -1
  509. package/screenshot/compare/build/p-2ab1fdf1.system.js +0 -1
  510. package/screenshot/compare/build/p-2pxcsgrj.entry.js +0 -1
  511. package/screenshot/compare/build/p-42fb7034.system.js +0 -1
  512. package/screenshot/compare/build/p-54d9d7c2.system.js +0 -1
  513. package/screenshot/compare/build/p-67c1f911.js +0 -1
  514. package/screenshot/compare/build/p-68613371.system.js +0 -1
  515. package/screenshot/compare/build/p-7dvsjpu0.entry.js +0 -1
  516. package/screenshot/compare/build/p-aa67fb06.js +0 -1
  517. package/screenshot/compare/build/p-aeb3cec1.system.js +0 -1
  518. package/screenshot/compare/build/p-b6e44a24.js +0 -1
  519. package/screenshot/compare/build/p-c1c25b8a.js +0 -1
  520. package/screenshot/compare/build/p-c9bopbjy.system.entry.js +0 -1
  521. package/screenshot/compare/build/p-c9iqz1pp.system.entry.js +0 -1
  522. package/screenshot/compare/build/p-dizjz8rg.entry.js +0 -1
  523. package/screenshot/compare/build/p-dnta0rwp.system.entry.js +0 -1
  524. package/screenshot/compare/build/p-e9670d22.system.js +0 -1
  525. package/screenshot/compare/build/p-ei9jkpd0.system.entry.js +0 -1
  526. package/screenshot/compare/build/p-ejwcppol.entry.js +0 -1
  527. package/screenshot/compare/build/p-f6612d5d.system.js +0 -1
  528. package/screenshot/compare/build/p-foiivsfc.css +0 -1
  529. package/screenshot/compare/build/p-gpjjyogx.entry.js +0 -1
  530. package/screenshot/compare/build/p-howklem2.system.entry.js +0 -1
  531. package/screenshot/compare/build/p-knv9wvoc.entry.js +0 -1
  532. package/screenshot/compare/build/p-nsqsfhhy.entry.js +0 -1
  533. package/screenshot/compare/build/p-ojt278pp.entry.js +0 -1
  534. package/screenshot/compare/build/p-oywass99.entry.js +0 -1
  535. package/screenshot/compare/build/p-q3ujhub6.entry.js +0 -1
  536. package/screenshot/compare/build/p-qw4xnmxv.entry.js +0 -1
  537. package/screenshot/compare/build/p-t1wvevhc.system.entry.js +0 -1
  538. package/screenshot/compare/build/p-tnjarrex.system.entry.js +0 -1
  539. package/screenshot/compare/build/p-vhfpd6kk.system.entry.js +0 -1
  540. package/screenshot/compare/build/p-vk6rhemd.system.entry.js +0 -1
  541. package/screenshot/compare/build/p-w6bnm16k.entry.js +0 -1
  542. package/screenshot/compare/build/p-xje6d7zl.system.entry.js +0 -1
  543. package/screenshot/compare/build/p-y5jlrcha.system.entry.js +0 -1
  544. package/screenshot/compare/build/p-yh170wkt.entry.js +0 -1
  545. package/testing/jest.preprocessor.js +0 -7
@@ -0,0 +1,17 @@
1
+ /*!
2
+ Rindo Compiler v0.0.0-dev.20221104122636 | MIT Licensed | https://rindojs.web.app
3
+ */
4
+ !function(e){"use strict";"undefined"==typeof globalThis&&("undefined"!=typeof self?self.globalThis=self:"undefined"!=typeof window?window.globalThis=window:"undefined"!=typeof global&&(global.globalThis=global));const t=globalThis.Buffer||{},n=globalThis.process||{};n.argv||(n.argv=[""]);let r="/";if(n.cwd||(n.cwd=()=>r),n.chdir||(n.chdir=e=>r=e),!n.nextTick){const e=Promise.resolve();n.nextTick=t=>e.then(t)}n.platform||(n.platform="rindo"),n.version||(n.version="v12.0.0");const i=!("undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),s=!(i&&"win32"===global.process.platform),o="undefined"!=typeof location&&"undefined"!=typeof navigator&&"undefined"!=typeof XMLHttpRequest,a=o&&"undefined"!=typeof self&&"function"==typeof self.importScripts,l=o&&"function"==typeof Worker,c="function"==typeof fetch,u=e=>("function"==typeof __webpack_require__?__non_webpack_require__:require)(e),h=n.cwd,p=n.exit,d=(e,t)=>{let n=0;"shadow"===e.encapsulation?(n|=1,e.shadowDelegatesFocus&&(n|=16)):"scoped"===e.encapsulation&&(n|=2),"shadow"!==e.encapsulation&&e.htmlTagNames.includes("slot")&&(n|=4),e.hasMode&&(n|=32);const r=m(e,t),i=A(e);return S([n,e.tagName,Object.keys(r).length>0?r:void 0,i.length>0?i:void 0])},f=e=>{const t=JSON.stringify(e);return t.length>1e4?`JSON.parse(${JSON.stringify(t)})`:t},m=(e,t=!0)=>Object.assign(Object.assign(Object.assign({},g(e.properties)),T(e.states)),t?v(e.methods):{}),g=e=>{const t={};return e.forEach(e=>{t[e.name]=S([_(e),E(e)])}),t},_=e=>{let t=y(e.type);return e.mutable&&(t|=1024),e.reflect&&(t|=512),t},E=e=>{if("string"==typeof e.attribute){if(e.name===e.attribute)return;return e.attribute}},y=e=>"string"===e?1:"number"===e?2:"boolean"===e?4:"any"===e?8:16,T=e=>{const t={};return e.forEach(e=>{t[e.name]=[32]}),t},v=e=>{const t={};return e.forEach(e=>{t[e.name]=[64]}),t},A=e=>e.listeners.map(e=>[b(e),e.name,e.method]),b=e=>{let t=0;switch(e.capture&&(t|=2),e.passive&&(t|=1),e.target){case"document":t|=4;break;case"window":t|=8;break;case"parent":t|=16;break;case"body":t|=32}return t},S=e=>{const t=e;for(var n=t.length-1;n>=0&&!t[n];n--)t.pop();return t},C=e=>e.toLowerCase(),x=e=>C(e.replace(/([A-Z0-9])/g,e=>" "+e[0]).trim().replace(/ /g,"-")),D=e=>C(e).split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(""),N=e=>e.charAt(0).toUpperCase()+e.slice(1),w=()=>{},O=(e,t)=>e.slice().sort((e,n)=>{const r=t(e),i=t(n);return r<i?-1:r>i?1:0}),k=e=>e.flat?e.flat(1):e.reduce((e,t)=>(e.push(...t),e),[]),R=(e,t=(e=>e))=>{const n=new Set;return e.filter(e=>{const r=t(e);return null==r||!n.has(r)&&(n.add(r),!0)})},I=(e,t)=>t.reduce((t,n)=>(e[n]&&(t[n]=e[n]),t),{}),M=e=>"boolean"==typeof e,P=e=>"function"==typeof e,L=e=>"number"==typeof e,F=e=>null!=e&&"object"==typeof e&&!1===Array.isArray(e),B=e=>"string"==typeof e,$=e=>(e=>null!=e)(e)&&P(e[Symbol.iterator]),U=e=>!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then,V=e=>{const t={"{":"}","(":")","[":"]"},n=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(""===e)return!1;let r;for(;r=n.exec(e);){if(r[2])return!0;let n=r.index+r[0].length;const i=r[1],s=i?t[i]:null;if(i&&s){const t=e.indexOf(s,n);-1!==t&&(n=t+1)}e=e.slice(n)}return!1},H=e=>"/"===e||G.test(e),G=/^(?:[a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?[\\/]$/,j=(e,t)=>{const n=[],r=[],i=new Set;for(let s=0;s<t.length;s++){const o=K(e,t[s]),a=o.absFilePath+o.code+o.messageText+o.type;if(i.has(a))continue;i.add(a);const l=n.length+r.length;"error"===o.level?n.push(o):l<X&&r.push(o)}return[...n,...r]},K=(e,t)=>{if(t.messageText&&("string"==typeof t.messageText.message?t.messageText=t.messageText.message:"string"==typeof t.messageText&&0===t.messageText.indexOf("Error: ")&&(t.messageText=t.messageText.substr(7))),t.messageText&&t.messageText.includes("Cannot find name 'h'")){t.header='Missing "h" import for JSX types',t.messageText='In order to load accurate JSX types for components, the "h" function must be imported from "@rindo/core" by each component using JSX. For example: import { Component, h } from \'@rindo/core\';';try{const n=e.fs.readFileSync(t.absFilePath),r=W(n);for(let e=0;e<r.length;e++){const n=r[e];if(n.includes("@rindo/core")){const i=[],s=e-1;if(s>-1){const e={lineIndex:s,lineNumber:s+1,text:r[s],errorCharStart:-1,errorLength:-1};i.push(e)}const o={lineIndex:e,lineNumber:e+1,text:n,errorCharStart:0,errorLength:-1};i.push(o),t.lineNumber=o.lineNumber,t.columnNumber=n.indexOf("}");const a=e+1;if(a<r.length){const e={lineIndex:a,lineNumber:a+1,text:r[a],errorCharStart:-1,errorLength:-1};i.push(e)}t.lines=i;break}}}catch(e){}}return t},W=e=>"string"!=typeof e?[]:(e=e.replace(/\\r/g,"\n")).split("\n"),z=e=>void 0===e?"undefined":null===e?"null":("string"!=typeof e&&(e=e.toString()),e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")),X=25,q=e=>{const t={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:null,absFilePath:null,lines:[]};return e&&e.push(t),t},Y=e=>{const t={level:"warn",type:"build",header:"Build Warn",messageText:"build warn",relFilePath:null,absFilePath:null,lines:[]};return e.push(t),t},Q=(e,t,n,r,i)=>{const s=q(t);if(s.messageText=r,s.absFilePath=n,"string"==typeof i)try{const t=e.fs.readFileSync(n).replace(/\r/g,"\n").split("\n");for(let e=0;e<t.length;e++){const n=t[e],r=n.indexOf(i);if(r>-1){const o={lineIndex:e,lineNumber:e+1,text:n,errorCharStart:r,errorLength:i.length};if(s.lineNumber=o.lineNumber,s.columnNumber=r+1,s.lines.push(o),e>=0){const n={lineIndex:o.lineIndex-1,lineNumber:o.lineNumber-1,text:t[e-1],errorCharStart:-1,errorLength:-1};s.lines.unshift(n)}if(e<t.length){const n={lineIndex:o.lineIndex+1,lineNumber:o.lineNumber+1,text:t[e+1],errorCharStart:-1,errorLength:-1};s.lines.push(n)}break}}}catch(e){}return s},J=(e,t,n)=>{const r={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:null,absFilePath:null,lines:[]};return B(n)?r.messageText=n:null!=t&&(null!=t.stack?r.messageText=t.stack.toString():null!=t.message?r.messageText=t.message.toString():r.messageText=t.toString()),null==e||ee(r.messageText)||e.push(r),r},Z=e=>null!=e&&0!==e.length&&e.some(e=>"error"===e.level&&"runtime"!==e.type),ee=e=>e===te,te="task canceled",ne=(e,t,n,r)=>{const i=oe(r.code),s={level:"error",type:"bundling",language:"javascript",code:r.code,header:"Rollup"+(i.length>0?": "+i:""),messageText:i,relFilePath:null,absFilePath:null,lines:[]};"debug"===e.logLevel&&r.stack?s.messageText=r.stack:r.message&&(s.messageText=r.message),r.plugin&&(s.messageText+=` (plugin: ${r.plugin}${r.hook?", "+r.hook:""})`);const o=r.loc;if(null!=o){const e=o.file||r.id;if(B(e))try{const n=t.fs.readFileSync(e);if(n){s.absFilePath=e;try{const e=W(n),t={lineIndex:o.line-1,lineNumber:o.line,text:e[o.line-1],errorCharStart:o.column,errorLength:0};s.lineNumber=t.lineNumber,s.columnNumber=t.errorCharStart;const r=t.text.substr(o.column);for(let e=0;e<r.length&&!se.has(r.charAt(e));e++)t.errorLength++;if(s.lines.push(t),0===t.errorLength&&t.errorCharStart>0&&(t.errorLength=1,t.errorCharStart--),t.lineIndex>0){const n={lineIndex:t.lineIndex-1,lineNumber:t.lineNumber-1,text:e[t.lineIndex-1],errorCharStart:-1,errorLength:-1};s.lines.unshift(n)}if(t.lineIndex+1<e.length){const n={lineIndex:t.lineIndex+1,lineNumber:t.lineNumber+1,text:e[t.lineIndex+1],errorCharStart:-1,errorLength:-1};s.lines.push(n)}}catch(e){s.messageText+=`\nError parsing: ${s.absFilePath}, line: ${o.line}, column: ${o.column}`,s.debugText=n}}else"string"==typeof r.frame&&(s.messageText+="\n"+r.frame)}catch(e){}}n.diagnostics.push(s)},re=(e,t)=>{const n=new Set;return function(r){if(null==r||ie.has(r.code)||n.has(r.message))return;n.add(r.message);let i="";t&&(i=t.reduce((e,t)=>(e.push(...t.cmps),e),[]).join(", ").trim(),i.length&&(i+=": "));const s=Y(e);s.header="Bundling Warning "+r.code,s.messageText=i+(r.message||r)}},ie=new Set(["THIS_IS_UNDEFINED","NON_EXISTENT_EXPORT","CIRCULAR_DEPENDENCY","EMPTY_BUNDLE","UNUSED_EXTERNAL_IMPORT"]),se=new Set([" ","=",".",",","?",":",";","(",")","{","}","[","]","|","'",'"',"`"]),oe=e=>"string"==typeof e?e.split("_").map(e=>N(e.toLowerCase())).join(" "):(e||"").trim(),ae=e=>{if("string"!=typeof e)throw new Error("invalid path to normalize");e=le(e.trim());const t=me(e,he(e)),n=ue(t),r=n[0],i=n[1],s=r+n.slice(1).join("/");return""===s?".":""===r&&i&&e.includes("/")&&!i.startsWith(".")&&!i.startsWith("@")?"./"+s:s},le=e=>e.replace(ce,"/"),ce=/\\/g,ue=e=>{if(!Array.isArray(e)||0===e.length)return[];const t=[e[0]];for(let n=1;n<e.length;n++){const r=e[n];if(r&&"."!==r){if(".."===r)if(t.length>1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t},he=e=>{const t=pe(e);return t<0?~t:t},pe=e=>{if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?"/":"\\",2);return n<0?e.length:n+1}if(de(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf("://");if(-1!==n){const t=n+"://".length,r=e.indexOf("/",t);if(-1!==r){const i=e.slice(0,n),s=e.slice(t,r);if("file"===i&&(""===s||"localhost"===s)&&de(e.charCodeAt(r+1))){const t=fe(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0},de=e=>e>=97&&e<=122||e>=65&&e<=90,fe=(e,t)=>{const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1},me=(e,t)=>{const n=e.substring(0,t),r=e.substring(t).split("/"),i=r.length;return i>0&&!r[i-1]&&r.pop(),[n,...r]},ge=e=>ae(e.split("?")[0].replace(/\0/g,"")),_e=(e,t)=>{if(!t)return e;const n=t.getSourceFile();if(!n)return e;e.absFilePath=ae(n.fileName);const r=n.text,i=W(r),s=t.getStart(),o=t.getEnd(),a=n.getLineAndCharacterOfPosition(s),l={lineIndex:a.line,lineNumber:a.line+1,text:i[a.line],errorCharStart:a.character,errorLength:Math.max(o-s,1)};if(e.lineNumber=l.lineNumber,e.columnNumber=l.errorCharStart+1,e.lines.push(l),0===l.errorLength&&l.errorCharStart>0&&(l.errorLength=1,l.errorCharStart--),l.lineIndex>0){const t={lineIndex:l.lineIndex-1,lineNumber:l.lineNumber-1,text:i[l.lineIndex-1],errorCharStart:-1,errorLength:-1};e.lines.unshift(t)}if(l.lineIndex+1<i.length){const t={lineIndex:l.lineIndex+1,lineNumber:l.lineNumber+1,text:i[l.lineIndex+1],errorCharStart:-1,errorLength:-1};e.lines.push(t)}return e},Ee=e=>{const t=[],n=Math.min(e.length,50);for(let r=0;r<n;r++)t.push(ye(e[r]));return t},ye=e=>{const t={level:"warn",type:"typescript",language:"typescript",header:"TypeScript",code:e.code.toString(),messageText:Te(e,e.messageText),relFilePath:null,absFilePath:null,lines:[]};if(1===e.category&&(t.level="error"),e.file){t.absFilePath=e.file.fileName;const n=e.file.text,r=W(n),i=e.file.getLineAndCharacterOfPosition(e.start),s={lineIndex:i.line,lineNumber:i.line+1,text:r[i.line],errorCharStart:i.character,errorLength:Math.max(e.length,1)};if(t.lineNumber=s.lineNumber,t.columnNumber=s.errorCharStart+1,t.lines.push(s),0===s.errorLength&&s.errorCharStart>0&&(s.errorLength=1,s.errorCharStart--),s.lineIndex>0){const e={lineIndex:s.lineIndex-1,lineNumber:s.lineNumber-1,text:r[s.lineIndex-1],errorCharStart:-1,errorLength:-1};t.lines.unshift(e)}if(s.lineIndex+1<r.length){const e={lineIndex:s.lineIndex+1,lineNumber:s.lineNumber+1,text:r[s.lineIndex+1],errorCharStart:-1,errorLength:-1};t.lines.push(e)}}return t},Te=(e,t)=>{if("string"==typeof t)return t;if(void 0===t)return"";const n=[],r=e.file.fileName.includes("rindo.config");r&&n.push(2322);let i="";if(!n.includes(t.code)&&(i=t.messageText,$(t.next)))for(const n of t.next)i+=Te(e,n);return r&&(i=i.replace("type 'RindoConfig'","Rindo Config"),i=i.replace("Object literal may only specify known properties, but ",""),i=i.replace("Object literal may only specify known properties, and ","")),i.trim()},ve=e=>!!B(e)&&((e=e.toLowerCase()).startsWith("https://")||e.startsWith("http://")),Ae=e=>(B(e)&&(e=(e=(e=(e=e.split("?")[0]).split("#")[0]).split("&")[0]).split("=")[0],e=(e=x(e)).replace(/[|;$%@"<>()+,.{}_\!\/\\]/g,"-"),(e=(e=D(e)).length>1?e[0].toLowerCase()+e.substr(1):e.toLowerCase()).length>0&&!isNaN(e[0])&&(e="_"+e)),e),be=/\r?\n|\r/g;function Se(e){return null==e?"":`${e.text.replace(be," ")}\n${e.tags.filter(e=>"internal"!==e.name).map(e=>`@${e.name} ${(e.text||"").replace(be," ")}`).join("\n")}`.trim()}const Ce=(e,t)=>B(t)?xe(e,t):null,xe=(e,t)=>{const n={diagnostic:null,data:null,filePath:t};if(B(e))try{n.data=JSON.parse(e)}catch(e){const r=e.message;n.diagnostic=q(),n.diagnostic.absFilePath=t,n.diagnostic.header="Error Parsing JSON",n.diagnostic.messageText=r}else n.diagnostic=q(),n.diagnostic.absFilePath=t,n.diagnostic.header="Error Parsing JSON",n.diagnostic.messageText="Invalid JSON input to parse";return n},De=["@rindo/core"],Ne=e=>{if(e!==e.trim())return"Tag can not contain white spaces";if(e!==e.toLowerCase())return"Tag can not contain upper case characters";if("string"!=typeof e)return`Tag "${e}" must be a string type`;if(0===e.length)return"Received empty tag value";if(e.indexOf(" ")>-1)return`"${e}" tag cannot contain a space`;if(e.indexOf(",")>-1)return`"${e}" tag cannot be used for multiple tags`;const t=e.replace(/\w|-/g,"");return""!==t?`"${e}" tag contains invalid characters: ${t}`:-1===e.indexOf("-")?`"${e}" tag must contain a dash (-) to work as a valid web component`:e.indexOf("--")>-1?`"${e}" tag cannot contain multiple dashes (--) next to each other`:0===e.indexOf("-")?`"${e}" tag cannot start with a dash (-)`:e.lastIndexOf("-")===e.length-1?`"${e}" tag cannot end with a dash (-)`:void 0};function we(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Oe(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var ke={resolve:function(){for(var e,t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=n.cwd()),s=e),we(s),0!==s.length&&(t=s+"/"+t,r=47===s.charCodeAt(0))}return t=Oe(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(we(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=Oe(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return we(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];we(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ke.normalize(e)},relative:function(e,t){if(we(e),we(t),e===t)return"";if((e=ke.resolve(e))===(t=ke.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,i=r-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var o=t.length-s,a=i<o?i:o,l=-1,c=0;c<=a;++c){if(c===a){if(o>a){if(47===t.charCodeAt(s+c))return t.slice(s+c+1);if(0===c)return t.slice(s+c)}else i>a&&(47===e.charCodeAt(n+c)?l=c:0===c&&(l=0));break}var u=e.charCodeAt(n+c);if(u!==t.charCodeAt(s+c))break;47===u&&(l=c)}var h="";for(c=n+l+1;c<=r;++c)c!==r&&47!==e.charCodeAt(c)||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(s+l):(s+=l,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(we(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!i){r=s;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');we(e);var n,r=0,i=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){var l=e.charCodeAt(n);if(47===l){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname:function(e){we(e);for(var t=-1,n=0,r=-1,i=!0,s=0,o=e.length-1;o>=0;--o){var a=e.charCodeAt(o);if(47!==a)-1===r&&(i=!1,r=o+1),46===a?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){we(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),i=47===r;i?(t.root="/",n=1):n=0;for(var s=-1,o=0,a=-1,l=!0,c=e.length-1,u=0;c>=n;--c)if(47!==(r=e.charCodeAt(c)))-1===a&&(l=!1,a=c+1),46===r?-1===s?s=c:1!==u&&(u=1):-1!==s&&(u=-1);else if(!l){o=c+1;break}return-1===s||-1===a||0===u||1===u&&s===a-1&&s===o+1?-1!==a&&(t.base=t.name=0===o&&i?e.slice(1,a):e.slice(o,a)):(0===o&&i?(t.name=e.slice(1,s),t.base=e.slice(1,a)):(t.name=e.slice(o,s),t.base=e.slice(o,a)),t.ext=e.slice(s,a)),o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ke.posix=ke;var Re=ke;let Ie,Me,Pe,Le,Fe,Be,$e,Ue,Ve,He;const Ge={},je=e=>{e||(e=Re),Object.assign(Ge,e);const t=Ge.normalize,n=Ge.join,r=Ge.relative,i=Ge.resolve;Be=Ge.normalize=(...e)=>ae(t.apply(Ge,e)),Fe=Ge.join=(...e)=>ae(n.apply(Ge,e)),$e=Ge.relative=(...e)=>ae(r.apply(Ge,e)),Ue=Ge.resolve=(...e)=>ae(i.apply(Ge,e)),Ie=Ge.basename,Me=Ge.dirname,Pe=Ge.extname,Le=Ge.isAbsolute,Ve=Ge.sep,He=Ge.posix};je(i?u("path"):Re);const Ke=()=>{const e=[],t=t=>{const n=e.findIndex(e=>e.callback===t);return n>-1&&(e.splice(n,1),!0)};return{emit:(t,n)=>{const r=t.toLowerCase().trim(),i=e.slice();for(const e of i)if(null==e.eventName)try{e.callback(t,n)}catch(e){console.error(e)}else if(e.eventName===r)try{e.callback(n)}catch(e){console.error(e)}},on:(n,r)=>{if("function"==typeof n){const r=null,i=n;return e.push({eventName:r,callback:i}),()=>t(i)}if("string"==typeof n&&"function"==typeof r){const i=n.toLowerCase().trim(),s=r;return e.push({eventName:i,callback:s}),()=>t(s)}return()=>!1},unsubscribeAll:()=>{e.length=0}}},We=()=>{let e=o,t="info";return{enableColors:t=>e=t,getLevel:()=>t,setLevel:e=>t=e,emoji:e=>e,info:console.log.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),red:e=>e,green:e=>e,yellow:e=>e,blue:e=>e,magenta:e=>e,cyan:e=>e,gray:e=>e,bold:e=>e,dim:e=>e,bgRed:e=>e,createTimeSpan:(e,t=!1)=>({duration:()=>0,finish:()=>0}),printDiagnostics(t){t.forEach(t=>ze(t,e))}}},ze=(e,t)=>{let n=Ye,r="Build",i="";"error"===e.level?(n=qe,r="Error"):"warn"===e.level&&(n=Xe,r="Warning"),e.header&&(r=e.header);const s=e.relFilePath||e.absFilePath;if(s&&(i+=s,"number"==typeof e.lineNumber&&e.lineNumber>0&&(i+=", line "+e.lineNumber,"number"==typeof e.columnNumber&&e.columnNumber>0&&(i+=", column "+e.columnNumber)),i+="\n"),i+=e.messageText,e.lines&&e.lines.length>0&&(e.lines.forEach(e=>{i+="\n"+e.lineNumber+": "+e.text}),i+="\n"),t){const e=["%c"+r,`background: ${n}; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;`];console.log(...e,i)}else"error"===e.level?console.error(i):"warn"===e.level?console.warn(i):console.log(i)},Xe="#f39c12",qe="#c0392b",Ye="#3498db",Qe=[".tsx",".ts",".mjs",".js",".jsx",".json",".md"],Je=["package.json","index.js","index.mjs"],Ze=e=>e.endsWith(".d.ts"),et=e=>!Ze(e)&&e.endsWith(".ts"),tt=e=>e.endsWith(".tsx"),nt=e=>e.endsWith(".jsx"),rt=e=>e.endsWith(".js"),it=(e,t)=>e+"/"+t,st=e=>Qe.some(t=>e.endsWith(t)),ot=(e,t)=>{try{const n=JSON.parse(t);n.name&&n.version&&((e,t,n)=>{e.set(t,n)})(e,n.name,n.version)}catch(e){}},at=e=>e.startsWith(".")||e.startsWith("/"),lt=e=>c&&o&&ct(e),ct=e=>ae(e).split("/").includes("node_modules"),ut=e=>{e.startsWith("~")&&(e=e.substring(1));const t=e.split("/"),n={moduleId:null,filePath:null,scope:null,scopeSubModuleId:null};return e.startsWith("@")&&t.length>1?(n.moduleId=t.slice(0,2).join("/"),n.filePath=t.slice(2).join("/"),n.scope=t[0],n.scopeSubModuleId=t[1]):(n.moduleId=t[0],n.filePath=t.slice(1).join("/")),n},ht=(e,t)=>{const n=ae(e).split("/"),r=ut(t);for(let e=n.length-1;e>=1;e--)if("node_modules"===n[e-1])if(r.scope){if(n[e]===r.scope&&n[e+1]===r.scopeSubModuleId)return n.slice(0,e+2).join("/")}else if(n[e]===r.moduleId)return n.slice(0,e+1).join("/");return null},pt=new Map,dt=new Set,ft=(e,t)=>{let n=(t=ae(t)).split("/");const r=n.lastIndexOf("node_modules");return r>-1&&r<n.length-1&&(n=n.slice(r+1),n=n[0].startsWith("@")?n.slice(2):n.slice(1),t=n.join("/")),new URL("./"+t,(e=>new URL("../",e).href)(e)).href},mt=(e,t,n,r)=>gt(e,t,n)+"/"+r,gt=(e,t,n)=>{let r=(n=ae(n)).split("/").filter(e=>e.length);const i=r.lastIndexOf("node_modules");i>-1&&i<r.length-1&&(r=r.slice(i+1));let s=r.shift();s.startsWith("@")&&(s+="/"+r.shift());const o=r.join("/");if("@rindo/core"===s){const t=e.getCompilerExecutingPath();return ft(t,o)}return e.getRemoteModuleUrl({moduleId:s,version:t.get(s),path:o})},_t=e=>{if(et(e)||tt(e))return!0;const t=e.split("/"),n=t[t.length-2],r=t[t.length-1];return!("node_modules"!==n||!st(r))},Et=e=>yt.some(t=>e.endsWith(t)),yt=["/@rindo/core/internal.js","/@rindo/core/internal.json","/@rindo/core/internal.mjs","/@rindo/core/internal/rindo-core.js/index.json","/@rindo/core/internal/rindo-core.js.json","/@rindo/core/internal/rindo-core.js/package.json","/@rindo/core.js","/@rindo/core.json","/@rindo/core.mjs","/@rindo/core.css","/@rindo/core/index.js","/@rindo/core/index.json","/@rindo/core/index.mjs","/@rindo/core/index.css","/@rindo/package.json"],Tt=async(e,t,n,r,i)=>{if(!(_t(i)||dt.has(r)||Et(r)))try{const s=await((e,t,n)=>(console.trace(t),e&&P(e.fetch)?e.fetch(t,void 0):fetch(t,void 0)))(e,r);if(s){if(s.ok){const o=await s.clone().text();return await(async(e,t,n,r,i,s)=>{n.endsWith("package.json")&&ot(s,i);let o=Me(r);for(;"/"!==o&&""!==o;)t?(t.clearFileCache(o),await t.sys.mkdir(o)):await e.mkdir(o),o=Me(o);t?(t.clearFileCache(r),await t.sys.writeFile(r,i)):await e.writeFile(r,i)})(e,t,r,i,o,n),o}404===s.status&&dt.add(r)}}catch(e){console.error(e)}},vt=e=>"function"==typeof e[vt.custom]?function(...t){return e[vt.custom].apply(this,t)}:function(...t){return new Promise((n,r)=>{t.push((e,t)=>{null!=e?r(e):n(t)}),e.apply(this,t)})};vt.custom=Symbol("promisify.custom");const At={inherits:(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))},inspect:(...e)=>e.forEach(e=>console.log(e)),promisify:vt};class bt extends Error{constructor(e,t,n="ENOENT",r=-2){super(`ENOENT: no such file or directory, ${e} '${t}'`),this.syscall=e,this.path=t,this.code=n,this.errno=r}}const St={__sys:{}};(St.exists=(e,t)=>{St.__sys.access(e).then(e=>{t(e)}).catch(()=>{t(!1)})})[vt.custom]=e=>St.__sys.access(e);const Ct=St.existsSync=e=>St.__sys.accessSync(e),xt=(St.mkdir=(e,t,n)=>{n="function"==typeof n?n:"function"==typeof t?t:null,t="function"==typeof t?void 0:t,St.__sys.mkdir(e,t).then(t=>{n&&(t.error?n(new bt("mkdir",e)):n(null))}).catch(e=>{n&&n(e)})},St.mkdirSync=(e,t)=>{if(St.__sys.mkdirSync(e,t).error)throw new bt("mkdir",e)}),Dt=St.readdirSync=e=>St.__sys.readdirSync(e).map(e=>Ie(e)),Nt=St.readFile=async(e,t,n)=>{const r="object"==typeof t?t.encoding:"string"==typeof t?t:"utf-8";n="function"==typeof n?n:"function"==typeof t?t:null,St.__sys.readFile(e,r).then(t=>{n&&n("string"==typeof t?null:new bt("open",e),t)}).catch(e=>{n&&n(e)})},wt=St.readFileSync=(e,t)=>{const n="object"==typeof t?t.encoding:"string"==typeof t?t:"utf-8",r=St.__sys.readFileSync(e,n);if("string"!=typeof r)throw new bt("open",e);return r},Ot=(St.realpath=(e,t,n)=>{n="function"==typeof n?n:"function"==typeof t?t:null,St.__sys.realpath(e).then(e=>{n&&n(e.error,e.path)}).catch(e=>{n(e)})},St.realpathSync=e=>{const t=St.__sys.realpathSync(e);if(t.error)throw t.error;return t.path}),kt=St.statSync=e=>{const t=St.__sys.statSync(e);if(!t)throw new bt("statSync",e);return t},Rt=St.lstatSync=kt,It=(St.stat=(e,t,n)=>{n="function"==typeof n?n:"function"==typeof t?t:null,St.__sys.stat(e).then(t=>{n&&n(t?null:new bt("stat",e))}).catch(e=>{n&&n(e)})},St.watch=()=>{throw new Error("fs.watch() not implemented")},St.writeFile=(e,t,n,r)=>{r="function"==typeof r?r:"function"==typeof n?n:null,St.__sys.writeFile(e,t).then(t=>{r&&(t.error?r(new bt("writeFile",e)):r(null))}).catch(e=>{r&&r(e)})});var Mt=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t};var t=(new Error).stack;return Error.prepareStackTrace=e,t[2].getFileName()},Pt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Lt(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var Ft=Lt((function(e){var t="win32"===n.platform,r=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,i=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,s={parse:function(e){if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t,n,s,o,a,l=(t=e,s=((n=r.exec(t))[1]||"")+(n[2]||""),o=n[3]||"",[s,(a=i.exec(o))[1],a[2],a[3]]);if(!l||4!==l.length)throw new TypeError("Invalid path '"+e+"'");return{root:l[0],dir:l[0]+l[1].slice(0,-1),base:l[2],ext:l[3],name:l[2].slice(0,l[2].length-l[3].length)}}},o=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a={parse:function(e){if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t,n=(t=e,o.exec(t).slice(1));if(!n||4!==n.length)throw new TypeError("Invalid path '"+e+"'");return n[1]=n[1]||"",n[2]=n[2]||"",n[3]=n[3]||"",{root:n[0],dir:n[0]+n[1].slice(0,-1),base:n[2],ext:n[3],name:n[2].slice(0,n[2].length-n[3].length)}}};e.exports=t?s.parse:a.parse,e.exports.posix=a.parse,e.exports.win32=s.parse})),Bt=Ge.parse||Ft,$t=function(e,t){var n="/";/^([A-Za-z]:)/.test(e)?n="":/^\\\\/.test(e)&&(n="\\\\");for(var r=[e],i=Bt(e);i.dir!==r[r.length-1];)r.push(i.dir),i=Bt(i.dir);return r.reduce((function(e,r){return e.concat(t.map((function(e){return Ge.resolve(n,r,e)})))}),[])},Ut=function(e,t,n){var r=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&"function"==typeof t.paths)return t.paths(n,e,(function(){return $t(e,r)}),t);var i=$t(e,r);return t&&t.paths?i.concat(t.paths):i},Vt=function(e,t){return t||{}};const Ht=">= 13.4 && < 13.5",Gt={assert:!0,async_hooks:">= 8",buffer_ieee754:"< 0.9.7",buffer:!0,child_process:!0,cluster:!0,console:!0,constants:!0,crypto:!0,_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,dns:!0,domain:!0,events:!0,freelist:"< 6",fs:!0,"fs/promises":[">= 10 && < 10.1",">= 14"],_http_agent:">= 0.11.1",_http_client:">= 0.11.1",_http_common:">= 0.11.1",_http_incoming:">= 0.11.1",_http_outgoing:">= 0.11.1",_http_server:">= 0.11.1",http:!0,http2:">= 8.8",https:!0,inspector:">= 8.0.0",_linklist:"< 8",module:!0,net:!0,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12",os:!0,path:!0,perf_hooks:">= 8.5",process:">= 1",punycode:!0,querystring:!0,readline:!0,repl:!0,smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4",_stream_transform:">= 0.9.4",_stream_wrap:">= 1.4.1",_stream_passthrough:">= 0.9.4",_stream_readable:">= 0.9.4",_stream_writable:">= 0.9.4",stream:!0,string_decoder:!0,sys:!0,timers:!0,_tls_common:">= 0.11.13",_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3",tls:!0,trace_events:">= 10",tty:!0,url:!0,util:!0,"v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],v8:">= 1",vm:!0,wasi:Ht,worker_threads:">= 11.7",zlib:!0},jt=function(e){return e&&e.default||e}(Object.freeze({__proto__:null,assert:!0,async_hooks:">= 8",buffer_ieee754:"< 0.9.7",buffer:!0,child_process:!0,cluster:!0,console:!0,constants:!0,crypto:!0,_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,dns:!0,domain:!0,events:!0,freelist:"< 6",fs:!0,_http_agent:">= 0.11.1",_http_client:">= 0.11.1",_http_common:">= 0.11.1",_http_incoming:">= 0.11.1",_http_outgoing:">= 0.11.1",_http_server:">= 0.11.1",http:!0,http2:">= 8.8",https:!0,inspector:">= 8.0.0",_linklist:"< 8",module:!0,net:!0,os:!0,path:!0,perf_hooks:">= 8.5",process:">= 1",punycode:!0,querystring:!0,readline:!0,repl:!0,smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4",_stream_transform:">= 0.9.4",_stream_wrap:">= 1.4.1",_stream_passthrough:">= 0.9.4",_stream_readable:">= 0.9.4",_stream_writable:">= 0.9.4",stream:!0,string_decoder:!0,sys:!0,timers:!0,_tls_common:">= 0.11.13",_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3",tls:!0,trace_events:">= 10",tty:!0,url:!0,util:!0,v8:">= 1",vm:!0,wasi:Ht,worker_threads:">= 11.7",zlib:!0,default:Gt}));var Kt=n.versions&&n.versions.node&&n.versions.node.split(".")||[];function Wt(e){for(var t=e.split(" "),n=t.length>1?t[0]:"=",r=(t.length>1?t[1]:t[0]).split("."),i=0;i<3;++i){var s=Number(Kt[i]||0),o=Number(r[i]||0);if(s!==o)return"<"===n?s<o:">="===n&&s>=o}return">="===n}function zt(e){var t=e.split(/ ?&& ?/);if(0===t.length)return!1;for(var n=0;n<t.length;++n)if(!Wt(t[n]))return!1;return!0}function Xt(e){if("boolean"==typeof e)return e;if(e&&"object"==typeof e){for(var t=0;t<e.length;++t)if(zt(e[t]))return!0;return!1}return zt(e)}var qt={};for(var Yt in jt)Object.prototype.hasOwnProperty.call(jt,Yt)&&(qt[Yt]=Xt(jt[Yt]));var Qt=qt,Jt=function(e){return Object.prototype.hasOwnProperty.call(Qt,e)},Zt=St.realpath&&"function"==typeof St.realpath.native?St.realpath.native:St.realpath,en=function(e,t){St.stat(e,(function(e,n){return e?"ENOENT"===e.code||"ENOTDIR"===e.code?t(null,!1):t(e):t(null,n.isFile()||n.isFIFO())}))},tn=function(e,t){St.stat(e,(function(e,n){return e?"ENOENT"===e.code||"ENOTDIR"===e.code?t(null,!1):t(e):t(null,n.isDirectory())}))},nn=function(e,t){Zt(e,(function(n,r){n&&"ENOENT"!==n.code?t(n):t(null,n?e:r)}))},rn=function(e,t,n,r){n&&!1===n.preserveSymlinks?e(t,r):r(null,t)},sn=function(e,t,r){var i=r,s=t;if("function"==typeof t&&(i=s,s={}),"string"!=typeof e){var o=new TypeError("Path must be a string.");return n.nextTick((function(){i(o)}))}var a=(s=Vt(0,s)).isFile||en,l=s.isDirectory||tn,c=s.readFile||St.readFile,u=s.realpath||nn,h=s.packageIterator,p=s.extensions||[".js"],d=s.basedir||Ge.dirname(Mt()),f=s.filename||d;s.paths=s.paths||[];var m,g=Ge.resolve(d);function _(t,n,r){t?i(t):n?i(null,n,r):y(m,(function(t,n,r){if(t)i(t);else if(n)rn(u,n,s,(function(e,t){e?i(e):i(null,t,r)}));else{var o=new Error("Cannot find module '"+e+"' from '"+f+"'");o.code="MODULE_NOT_FOUND",i(o)}}))}function E(e,t,r){var i=t,o=r;"function"==typeof i&&(o=i,i=void 0),function e(t,r,i){if(0===t.length)return o(null,void 0,i);var l=r+t[0],h=i;function d(n,i,c){if(h=i,n)return o(n);if(c&&h&&s.pathFilter){var u=Ge.relative(c,l),d=u.slice(0,u.length-t[0].length),m=s.pathFilter(h,r,d);if(m)return e([""].concat(p.slice()),Ge.resolve(c,m),h)}a(l,f)}function f(n,i){return n?o(n):i?o(null,l,h):void e(t.slice(1),r,h)}h?d(null,h):function e(t,r){return""===t||"/"===t||"win32"===n.platform&&/^\w:[/\\]*$/.test(t)||/[/\\]node_modules[/\\]*$/.test(t)?r(null):void rn(u,t,s,(function(n,i){if(n)return e(Ge.dirname(t),r);var o=Ge.join(i,"package.json");a(o,(function(n,i){if(!i)return e(Ge.dirname(t),r);c(o,(function(e,n){e&&r(e);try{var i=JSON.parse(n)}catch(e){}i&&s.packageFilter&&(i=s.packageFilter(i,o)),r(null,i,t)}))}))}))}(Ge.dirname(l),d)}([""].concat(p),e,i)}function y(e,t,n){var r=n,i=t;"function"==typeof i&&(r=i,i=s.package),rn(u,e,s,(function(t,n){if(t)return r(t);var o=Ge.join(n,"package.json");a(o,(function(t,n){return t?r(t):n?void c(o,(function(t,n){if(t)return r(t);try{var i=JSON.parse(n)}catch(e){}if(i&&s.packageFilter&&(i=s.packageFilter(i,o)),i&&i.main){if("string"!=typeof i.main){var a=new TypeError("package “"+i.name+"” `main` must be a string");return a.code="INVALID_PACKAGE_MAIN",r(a)}return"."!==i.main&&"./"!==i.main||(i.main="index"),void E(Ge.resolve(e,i.main),i,(function(t,n,i){return t?r(t):n?r(null,n,i):i?void y(Ge.resolve(e,i.main),i,(function(t,n,i){return t?r(t):n?r(null,n,i):void E(Ge.join(e,"index"),i,r)})):E(Ge.join(e,"index"),i,r)}))}E(Ge.join(e,"/index"),i,r)})):E(Ge.join(e,"index"),i,r)}))}))}rn(u,g,s,(function(t,n){t?i(t):function(t){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))m=Ge.resolve(t,e),"."!==e&&".."!==e&&"/"!==e.slice(-1)||(m+="/"),/\/$/.test(e)&&m===t?y(m,s.package,_):E(m,s.package,_);else{if(Jt(e))return i(null,e);!function(e,t,n){var r=function(){return function(e,t,n){for(var r=Ut(t,n,e),i=0;i<r.length;i++)r[i]=Ge.join(r[i],e);return r}(e,t,s)};!function e(t,n){if(0===n.length)return t(null,void 0);var r=n[0];function i(e,n,i){return e?t(e):n?t(null,n,i):void y(r,s.package,o)}function o(r,i,s){return r?t(r):i?t(null,i,s):void e(t,n.slice(1))}l(Ge.dirname(r),(function(o,a){return o?t(o):a?void E(r,s.package,i):e(t,n.slice(1))}))}(n,h?h(e,t,r,s):r())}(e,t,(function(t,n,r){if(t)i(t);else{if(n)return rn(u,n,s,(function(e,t){e?i(e):i(null,t,r)}));var o=new Error("Cannot find module '"+e+"' from '"+f+"'");o.code="MODULE_NOT_FOUND",i(o)}}))}}(n)}))},on=St.realpathSync&&"function"==typeof St.realpathSync.native?St.realpathSync.native:St.realpathSync,an=function(e){try{var t=St.statSync(e)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return!1;throw e}return t.isFile()||t.isFIFO()},ln=function(e){try{var t=St.statSync(e)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return!1;throw e}return t.isDirectory()},cn=function(e){try{return on(e)}catch(e){if("ENOENT"!==e.code)throw e}return e},un=function(e,t,n){return n&&!1===n.preserveSymlinks?e(t):t};sn.core=Qt,sn.isCore=Jt,sn.sync=function(e,t){if("string"!=typeof e)throw new TypeError("Path must be a string.");var r=Vt(0,t),i=r.isFile||an,s=r.readFileSync||St.readFileSync,o=r.isDirectory||ln,a=r.realpathSync||cn,l=r.packageIterator,c=r.extensions||[".js"],u=r.basedir||Ge.dirname(Mt()),h=r.filename||u;r.paths=r.paths||[];var p=un(a,Ge.resolve(u),r);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var d=Ge.resolve(p,e);"."!==e&&".."!==e&&"/"!==e.slice(-1)||(d+="/");var f=_(d)||E(d);if(f)return un(a,f,r)}else{if(Jt(e))return e;var m=function(e,t){for(var n=function(){return function(e,t,n){for(var r=Ut(t,n,e),i=0;i<r.length;i++)r[i]=Ge.join(r[i],e);return r}(e,t,r)},i=l?l(e,t,n,r):n(),s=0;s<i.length;s++){var a=i[s];if(o(Ge.dirname(a))){var c=_(a);if(c)return c;var u=E(a);if(u)return u}}}(e,p);if(m)return un(a,m,r)}var g=new Error("Cannot find module '"+e+"' from '"+h+"'");throw g.code="MODULE_NOT_FOUND",g;function _(e){var t=function e(t){if(""!==t&&"/"!==t&&!("win32"===n.platform&&/^\w:[/\\]*$/.test(t)||/[/\\]node_modules[/\\]*$/.test(t))){var o=Ge.join(un(a,t,r),"package.json");if(!i(o))return e(Ge.dirname(t));var l=s(o);try{var c=JSON.parse(l)}catch(e){}return c&&r.packageFilter&&(c=r.packageFilter(c,t)),{pkg:c,dir:t}}}(Ge.dirname(e));if(t&&t.dir&&t.pkg&&r.pathFilter){var o=Ge.relative(t.dir,e),l=r.pathFilter(t.pkg,e,o);l&&(e=Ge.resolve(t.dir,l))}if(i(e))return e;for(var u=0;u<c.length;u++){var h=e+c[u];if(i(h))return h}}function E(e){var t=Ge.join(un(a,e,r),"/package.json");if(i(t)){try{var n=s(t,"UTF8"),o=JSON.parse(n)}catch(e){}if(o&&r.packageFilter&&(o=r.packageFilter(o,e)),o&&o.main){if("string"!=typeof o.main){var l=new TypeError("package “"+o.name+"” `main` must be a string");throw l.code="INVALID_PACKAGE_MAIN",l}"."!==o.main&&"./"!==o.main||(o.main="index");try{var c=_(Ge.resolve(e,o.main));if(c)return c;var u=E(Ge.resolve(e,o.main));if(u)return u}catch(e){}}}return _(Ge.join(e,"/index"))}};var hn=sn;const pn=(e,t,n)=>{const r=dn(e,t,n.exts);return r.basedir=Me(ge(n.containingFile)),n.packageFilter?r.packageFilter=n.packageFilter:null!==n.packageFilter&&(r.packageFilter=e=>(B(e.main)&&""!==e.main||(e.main="package.json"),e)),new Promise((e,t)=>{hn(n.moduleId,r,(r,i,s)=>{if(r)t(r);else{i=ae(i);const t={moduleId:n.moduleId,resolveId:i,pkgData:s,pkgDirPath:ht(i,n.moduleId)};e(t)}})})},dn=(e,t,n)=>({async isFile(r,i){const s=ge(r);if((await t.stat(s)).isFile)i(null,!0);else{if(lt(s)&&n.some(e=>s.endsWith(e))){const n=gt(e,pt,s);return void i(null,"string"==typeof await Tt(e,t,pt,n,s))}i(null,!1)}},async isDirectory(n,r){const i=ge(n);if((await t.stat(i)).isDirectory)r(null,!0);else{if(lt(i)){if("node_modules"===Ie(i))return t.sys.mkdirSync(i),t.clearFileCache(i),void r(null,!0);if(st(i))return void r(null,!1);for(const n of Je){const s=mt(e,pt,i,n),o=it(i,n),a=await Tt(e,t,pt,s,o);if(B(a))return void r(null,!0)}}r(null,!1)}},async readFile(e,n){const r=ge(e),i=await t.readFile(r);return B(i)?n(null,i):n("readFile not found: "+e)},async realpath(t,n){const r=ge(t),i=await e.realpath(r);i.error&&"ENOENT"!==i.error.code?n(i.error):n(null,i.error?r:i.path)},extensions:n}),fn=e=>{const t=e&&e.logger?e.logger:We(),n=new Map,r=new Set,i=e=>r.add(e),s=e=>r.delete(e),c=Ke(),u=o&&navigator.hardwareConcurrency||1,h=e=>{if("/"===e||""===e)return"/";const t=Me(e),n=Ie(e);return t.endsWith("/")?ae(`${t}${n}`):ae(`${t}/${n}`)},p=e=>{const t=n.get(h(e));return!(!t||!(t.isDirectory||t.isFile&&"string"==typeof t.data))},d=(e,t)=>{e=h(e);const n={basename:Ie(e),dirname:Me(e),path:e,newDirs:[],error:null};return f(e,t,n),n},f=(e,t,r)=>{const i=Me(e);t&&t.recursive&&!H(i)&&f(i,t,r);const s=n.get(e);s?(s.isDirectory=!0,s.isFile=!1):(n.set(e,{basename:Ie(e),dirname:i,isDirectory:!0,isFile:!1,watcherCallbacks:null,data:void 0}),r.newDirs.push(e),b(e,new Set))},m=e=>{e=h(e);const t=[],r=n.get(e);return r&&r.isDirectory&&n.forEach((n,r)=>{"/"!==r&&(n.isDirectory||n.isFile&&"string"==typeof n.data)&&(e.endsWith("/")&&`${e}${n.basename}`===r||`${e}/${n.basename}`===r)&&t.push(r)}),t.sort()},g=e=>{e=h(e);const t=n.get(e);if(t&&t.isFile)return t.data},_=e=>({path:h(e),error:null}),E=(e,t,r)=>{const i=v(e);if(i&&!r.error)if(i.isFile()){const i=Me(t),s=d(i,{recursive:!0}),o=n.get(e).data,a=S(t,o);r.newDirs.push(...s.newDirs),r.renamed.push({oldPath:e,newPath:t,isDirectory:!1,isFile:!0}),a.error?r.error=a.error:r.newFiles.push(t)}else if(i.isDirectory()){const n=m(e),i=d(t,{recursive:!0});r.newDirs.push(...i.newDirs),r.renamed.push({oldPath:e,newPath:t,isDirectory:!0,isFile:!1});for(const i of n){const n=i.replace(e,t);E(i,n,r)}}},y=(e,t={})=>{const n={basename:Ie(e),dirname:Me(e),path:e,removedDirs:[],removedFiles:[],error:null};return T(e,t,n),n},T=(e,t,r)=>{if(!r.error){e=h(e);const i=m(e);if(t&&t.recursive)for(const e of i){const i=n.get(e);if(i)if(i.isDirectory)T(e,t,r);else if(i.isFile){const t=A(e);t.error?r.error=t.error:r.removedFiles.push(e)}}else if(i.length>0)return void(r.error="cannot delete directory that contains files/subdirectories");n.delete(e),b(e,new Set),r.removedDirs.push(e)}},v=e=>{e=h(e);const t=n.get(e);if(t&&(t.isDirectory||t.isFile&&"string"==typeof t.data))return{isDirectory:()=>t.isDirectory,isFile:()=>t.isFile,isSymbolicLink:()=>!1,size:t.isFile?t.data.length:0}},A=e=>{e=h(e);const t={basename:Ie(e),dirname:Me(e),path:e,error:null},r=n.get(e);if(r){if(r.watcherCallbacks)for(const t of r.watcherCallbacks)t(e,"fileDelete");n.delete(e),b(e,new Set)}return t},b=(e,t)=>{const r=h(Me(e)),i=n.get(r);if(i&&i.isDirectory&&i.watcherCallbacks)for(const t of i.watcherCallbacks)t(e,null);t.has(r)||(t.add(r),b(r,t))},S=(e,t)=>{const r={path:e=h(e),error:null},i=n.get(e);if(i){const n=i.data!==t;if(i.data=t,n&&i.watcherCallbacks)for(const t of i.watcherCallbacks)t(e,"fileUpdate")}else n.set(e,{basename:Ie(e),dirname:Me(e),isDirectory:!1,isFile:!0,watcherCallbacks:null,data:t}),b(e,new Set);return r},C=Promise.resolve();d("/");const x={name:"in-memory",version:"0.0.0",events:c,access:async e=>p(e),accessSync:p,addDestory:i,copyFile:async(e,t)=>(S(t,g(e)),!0),destroy:async()=>{const e=[];r.forEach(n=>{try{const t=n();t&&t.then&&e.push(t)}catch(e){t.error("rindo sys destroy: "+e)}}),await Promise.all(e),r.clear()},encodeToBase64:e=>btoa(unescape(encodeURIComponent(e))),exit:e=>t.warn("exit "+e),getCurrentDirectory:()=>"/",getCompilerExecutingPath:()=>a?location.href:x.getRemoteModuleUrl({moduleId:"@rindo/core",path:"compiler/rindo.min.js"}),getLocalModulePath:e=>Fe(e.rootDir,"node_modules",e.moduleId,e.path),getRemoteModuleUrl:e=>{const t=`${e.moduleId}${e.version?"@"+e.version:""}/${e.path}`;return new URL(t,"https://cdn.jsdelivr.net/npm/").href},hardwareConcurrency:u,isSymbolicLink:async e=>!1,mkdir:async(e,t)=>d(e,t),mkdirSync:d,nextTick:e=>C.then(e),normalizePath:h,platformPath:Re,readdir:async e=>m(e),readdirSync:m,readFile:async e=>g(e),readFileSync:g,realpath:async e=>_(e),realpathSync:_,removeDestory:s,rename:async(e,t)=>{const n={oldPath:e=ae(e),newPath:t=ae(t),renamed:[],oldDirs:[],oldFiles:[],newDirs:[],newFiles:[],isFile:!1,isDirectory:!1,error:null},r=v(e);if(r){if(r.isFile()?n.isFile=!0:r.isDirectory()&&(n.isDirectory=!0),E(e,t,n),!n.error)if(n.isDirectory){const t=y(e,{recursive:!0});t.error?n.error=t.error:(n.oldDirs.push(...t.removedDirs),n.oldFiles.push(...t.removedFiles))}else if(n.isFile){const t=A(e);t.error?n.error=t.error:n.oldFiles.push(e)}}else n.error=e+" does not exist";return n},resolvePath:e=>h(e),rmdir:async(e,t={})=>y(e,t),rmdirSync:y,stat:async e=>v(e),statSync:v,tmpdir:()=>"/.tmp",unlink:async e=>A(e),unlinkSync:A,watchDirectory:(e,t)=>{e=h(e);const r=n.get(e),o=()=>{const r=n.get(e);if(r&&r.watcherCallbacks){const e=r.watcherCallbacks.indexOf(t);e>-1&&r.watcherCallbacks.splice(e,1)}};return i(o),r?(r.isDirectory=!0,r.isFile=!1,r.watcherCallbacks=r.watcherCallbacks||[],r.watcherCallbacks.push(t)):n.set(e,{basename:Ie(e),dirname:Me(e),isDirectory:!0,isFile:!1,watcherCallbacks:[t],data:void 0}),{close(){s(o),o()}}},watchFile:(e,t)=>{e=h(e);const r=n.get(e),o=()=>{const r=n.get(e);if(r&&r.watcherCallbacks){const e=r.watcherCallbacks.indexOf(t);e>-1&&r.watcherCallbacks.splice(e,1)}};return i(o),r?(r.isDirectory=!1,r.isFile=!0,r.watcherCallbacks=r.watcherCallbacks||[],r.watcherCallbacks.push(t)):n.set(e,{basename:Ie(e),dirname:Me(e),isDirectory:!1,isFile:!0,watcherCallbacks:[t],data:void 0}),{close(){s(o),o()}}},watchTimeout:32,writeFile:async(e,t)=>S(e,t),writeFileSync:S,generateContentHash:async(e,t)=>{const n=await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e));let r=Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,"0")).join("");return"number"==typeof t&&(r=r.substr(0,t)),r},createWorkerController:l?e=>((e,t)=>{let n,r=0,i=!1,s=!1,o=0;const a=new Map,l=[],c=[],u=Math.max(Math.min(t,e.hardwareConcurrency),2)-1,h=Promise.resolve(),p=e=>console.error(e),d=()=>{let t=null;const r=e.getCompilerExecutingPath(),s={name:"rindo.worker."+o++};try{t=new Worker(r,s)}catch(e){null==n&&(n=new Blob([`importScripts('${r}');`],{type:"application/javascript"})),t=new Worker(URL.createObjectURL(n),s)}const l={worker:t,activeTasks:0,sendQueue:[]};return t.onerror=p,t.onmessage=e=>((e,t)=>{if(!i){const n=t.data;if(Array.isArray(n))for(const t of n)if(t){const n=a.get(t.rindoId);n?(a.delete(t.rindoId),t.rindoRtnError?n.reject(t.rindoRtnError):n.resolve(t.rindoRtnValue),e.activeTasks--,(e.activeTasks<0||e.activeTasks>50)&&(e.activeTasks=0)):t.rindoRtnError&&console.error(t.rindoRtnError)}}})(l,e),l},f=e=>{e.sendQueue.length>0&&(e.worker.postMessage(e.sendQueue),e.sendQueue.length=0)},m=e=>{let t;if(c.length>0){if(t=c[0],u>1){for(const e of c)e.activeTasks<t.activeTasks&&(t=e);t.activeTasks>0&&c.length<u&&(t=d(),c.push(t))}}else t=d(),c.push(t);t.activeTasks++,t.sendQueue.push(e)},g=()=>{s=!1,l.forEach(m),l.length=0,c.forEach(f)},_=(...e)=>new Promise((t,n)=>{if(i)n(te);else{const i={rindoId:r++,args:e};l.push(i),a.set(i.rindoId,{resolve:t,reject:n}),s||(s=!0,h.then(g))}});return{send:_,destroy:()=>{i=!0,a.forEach(e=>e.reject(te)),a.clear(),c.forEach(e=>e.worker.terminate()),c.length=0},handler:e=>function(...t){return _(e,...t)},maxWorkers:u}})(x,e):null,details:{cpuModel:"",freemem:()=>0,platform:"",release:"",totalmem:0},copy:async(e,n)=>(t.info("todo, copy task",e.length,n),{diagnostics:[],dirPaths:[],filePaths:[]}),resolveModuleId:e=>pn(x,null,e)};return x};let mn;const gn={overrideBrowserslist:["last 2 versions","iOS >= 9","Android >= 4.4","Explorer >= 11","ExplorerMobile >= 11"],cascade:!1,remove:!1,flexbox:"no-2009"},_n=(e,t)=>{let n=1,r=1;const i=[],s=e=>{const t=e.match(/\n/g);t&&(n+=t.length);const i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length},o=()=>{const e={line:n,column:r};return t=>(t.position=new C(e),p(),t)},a=s=>{const o=e.split("\n"),a={level:"error",type:"css",language:"css",header:"CSS Parse",messageText:s,absFilePath:t,lines:[{lineIndex:n-1,lineNumber:n,errorCharStart:r,text:e[n-1]}]};if(n>1){const t={lineIndex:n-1,lineNumber:n-1,text:e[n-2],errorCharStart:-1,errorLength:-1};a.lines.unshift(t)}if(n+2<o.length){const e={lineIndex:n,lineNumber:n+1,text:o[n],errorCharStart:-1,errorLength:-1};a.lines.push(e)}return i.push(a),null},l=()=>u(/^{\s*/),c=()=>u(/^}/),u=t=>{const n=t.exec(e);if(!n)return;const r=n[0];return s(r),e=e.slice(r.length),n},h=()=>{let t;const n=[];for(p(),d(n);e.length&&"}"!==e.charAt(0)&&(t=b()||S());)!1!==t&&(n.push(t),d(n));return n},p=()=>u(/^\s*/),d=e=>{let t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e},f=()=>{const t=o();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return a("End of comment missing");const i=e.slice(2,n-2);return r+=2,s(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})},m=()=>{const e=u(/^([^{]+)/);return e?En(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")})):null},g=()=>{const e=o();let t=u(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return null;if(t=En(t[0]),!u(/^:\s*/))return a("property missing ':'");const n=u(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(Tn,""),value:n?En(n[0]).replace(Tn,""):""});return u(/^[;\s]*/),r},_=()=>{const e=[];if(!l())return a("missing '{'");let t;for(d(e);t=g();)!1!==t&&(e.push(t),d(e));return c()?e:a("missing '}'")},E=()=>{let e;const t=[],n=o();for(;e=u(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),u(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:_()}):null},y=e=>{const t=new RegExp("^@"+e+"\\s*([^;]+);");return()=>{const n=o(),r=u(t);if(!r)return null;const i={type:e};return i[e]=r[1].trim(),n(i)}},T=y("import"),v=y("charset"),A=y("namespace"),b=()=>"@"!==e[0]?null:(()=>{const e=o();let t=u(/^@([-\w]+)?keyframes\s*/);if(!t)return null;const n=t[1];if(t=u(/^([-\w]+)\s*/),!t)return a("@keyframes missing name");const r=t[1];if(!l())return a("@keyframes missing '{'");let i,s=d();for(;i=E();)s.push(i),s=s.concat(d());return c()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):a("@keyframes missing '}'")})()||(()=>{const e=o(),t=u(/^@media *([^{]+)/);if(!t)return null;const n=En(t[1]);if(!l())return a("@media missing '{'");const r=d().concat(h());return c()?e({type:"media",media:n,rules:r}):a("@media missing '}'")})()||(()=>{const e=o(),t=u(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);return t?e({type:"custom-media",name:En(t[1]),media:En(t[2])}):null})()||(()=>{const e=o(),t=u(/^@supports *([^{]+)/);if(!t)return null;const n=En(t[1]);if(!l())return a("@supports missing '{'");const r=d().concat(h());return c()?e({type:"supports",supports:n,rules:r}):a("@supports missing '}'")})()||T()||v()||A()||(()=>{const e=o(),t=u(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=En(t[1]),r=En(t[2]);if(!l())return a("@document missing '{'");const i=d().concat(h());return c()?e({type:"document",document:r,vendor:n,rules:i}):a("@document missing '}'")})()||(()=>{const e=o();if(!u(/^@page */))return null;const t=m()||[];if(!l())return a("@page missing '{'");let n,r=d();for(;n=g();)r.push(n),r=r.concat(d());return c()?e({type:"page",selectors:t,declarations:r}):a("@page missing '}'")})()||(()=>{const e=o();if(!u(/^@host\s*/))return null;if(!l())return a("@host missing '{'");const t=d().concat(h());return c()?e({type:"host",rules:t}):a("@host missing '}'")})()||(()=>{const e=o();if(!u(/^@font-face\s*/))return null;if(!l())return a("@font-face missing '{'");let t,n=d();for(;t=g();)n.push(t),n=n.concat(d());return c()?e({type:"font-face",declarations:n}):a("@font-face missing '}'")})(),S=()=>{const e=o(),t=m();return t?(d(),e({type:"rule",selectors:t,declarations:_()})):a("selector missing")};class C{constructor(e){this.start=e,this.end={line:n,column:r},this.source=t}}return C.prototype.content=e,Object.assign({diagnostics:i},yn((()=>{const e=h();return{type:"stylesheet",stylesheet:{source:t,rules:e}}})()))},En=e=>e?e.trim():"",yn=(e,t)=>{const n=e&&"string"==typeof e.type,r=n?e:t;for(const t in e){const n=e[t];Array.isArray(n)?n.forEach((function(e){yn(e,r)})):n&&"object"==typeof n&&yn(n,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e},Tn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vn=e=>{An.all.length=An.tags.length=An.classNames.length=An.ids.length=An.attrs.length=0;const t=(e=e.replace(/\./g," .").replace(/\#/g," #").replace(/\[/g," [").replace(/\>/g," > ").replace(/\+/g," + ").replace(/\~/g," ~ ").replace(/\*/g," * ").replace(/\:not\((.*?)\)/g," ")).split(" ");for(let e=0,n=t.length;e<n;e++)t[e]=t[e].split(":")[0],0!==t[e].length&&("."===t[e].charAt(0)?An.classNames.push(t[e].substr(1)):"#"===t[e].charAt(0)?An.ids.push(t[e].substr(1)):"["===t[e].charAt(0)?(t[e]=t[e].substr(1).split("=")[0].split("]")[0].trim(),An.attrs.push(t[e].toLowerCase())):/[a-z]/g.test(t[e].charAt(0))&&An.tags.push(t[e].toLowerCase()));return An.classNames=An.classNames.sort((e,t)=>e.length<t.length?-1:e.length>t.length?1:0),An},An={all:[],tags:[],classNames:[],ids:[],attrs:[]},bn=(e,t,n,r)=>{const i=t.type;return"declaration"===i?Cn(t,n,r):"rule"===i?Sn(e,t):"comment"===i?"!"===t.comment[0]?`/*${t.comment}*/`:"":"media"===i?xn(e,t):"keyframes"===i?Dn(e,t):"keyframe"===i?Nn(e,t):"font-face"===i?wn(e,t):"supports"===i?On(e,t):"import"===i?"@import "+t.import+";":"charset"===i?"@charset "+t.charset+";":"page"===i?kn(e,t):"host"===i?"@host{"+In(e,t.rules)+"}":"custom-media"===i?"@custom-media "+t.name+" "+t.media+";":"document"===i?Rn(e,t):"namespace"===i?"@namespace "+t.namespace+";":""},Sn=(e,t)=>{const n=t.declarations,r=e.usedSelectors,i=t.selectors.slice();if(null==n||0===n.length)return"";if(r){let t,n,s=!0;for(t=i.length-1;t>=0;t--){const o=vn(i[t]);s=!0;let a=o.classNames.length;if(a>0&&e.hasUsedClassNames)for(n=0;n<a;n++)if(!r.classNames.has(o.classNames[n])){s=!1;break}if(s&&e.hasUsedTags&&(a=o.tags.length,a>0))for(n=0;n<a;n++)if(!r.tags.has(o.tags[n])){s=!1;break}if(s&&e.hasUsedAttrs&&(a=o.attrs.length,a>0))for(n=0;n<a;n++)if(!r.attrs.has(o.attrs[n])){s=!1;break}if(s&&e.hasUsedIds&&(a=o.ids.length,a>0))for(n=0;n<a;n++)if(!r.ids.has(o.ids[n])){s=!1;break}s||i.splice(t,1)}}if(0===i.length)return"";const s=[];let o="";for(const e of t.selectors)o=Mn(e),s.includes(o)||s.push(o);return`${s}{${In(e,n)}}`},Cn=(e,t,n)=>""===e.value?"":n-1===t?e.property+":"+e.value:e.property+":"+e.value+";",xn=(e,t)=>{const n=In(e,t.rules);return""===n?"":"@media "+Pn(t.media)+"{"+n+"}"},Dn=(e,t)=>{const n=In(e,t.keyframes);return""===n?"":"@"+(t.vendor||"")+"keyframes "+t.name+"{"+n+"}"},Nn=(e,t)=>t.values.join(",")+"{"+In(e,t.declarations)+"}",wn=(e,t)=>{const n=In(e,t.declarations);return""===n?"":"@font-face{"+n+"}"},On=(e,t)=>{const n=In(e,t.rules);return""===n?"":"@supports "+t.supports+"{"+n+"}"},kn=(e,t)=>"@page "+t.selectors.join(", ")+"{"+In(e,t.declarations)+"}",Rn=(e,t)=>{const n=In(e,t.rules),r="@"+(t.vendor||"")+"document "+t.document;return""===n?"":r+"{"+n+"}"},In=(e,t)=>{let n="";if(t)for(let r=0,i=t.length;r<i;r++)n+=bn(e,t[r],r,i);return n},Mn=e=>{let t="",n="",r=!1;for(let i=0,s=(e=e.trim()).length;i<s;i++)if(n=e[i],"["===n&&"\\"!==t[t.length-1]?r=!0:"]"===n&&"\\"!==t[t.length-1]&&(r=!1),!r&&Ln.test(n)){if(Fn.test(e[i+1]))continue;if(Bn.test(t[t.length-1]))continue;t+=" "}else t+=n;return t},Pn=e=>{let t="",n="";for(let r=0,i=(e=e.trim()).length;r<i;r++)if(n=e[r],Ln.test(n)){if(Ln.test(t[t.length-1]))continue;t+=" "}else t+=n;return t},Ln=/\s/,Fn=/[>\(\)\~\,\+\s]/,Bn=/[>\(\~\,\+]/,$n=async e=>{let t={output:e.input,diagnostics:[]};return!1!==e.autoprefixer&&null!==e.autoprefixer&&(t=await(async(e,t)=>{const n={output:e,diagnostics:[]};if(!i)return n;try{const r=(e=>{const{postcss:t,autoprefixer:n}=u("../sys/node/autoprefixer.js");return mn||(mn=t([n(e)])),mn})(null!=t&&"object"==typeof t?t:gn),i=await r.process(e,{map:null});i.warnings().forEach(e=>{n.diagnostics.push({header:"Autoprefix CSS: "+e.plugin,messageText:e.text,level:"warn",type:"css"})}),n.output=i.css}catch(e){const t={header:"Autoprefix CSS",messageText:"CSS Error"+e,level:"error",type:"css"};if("string"==typeof e.name&&(t.header=e.name),"string"==typeof e.reason&&(t.messageText=e.reason),"string"==typeof e.source&&"number"==typeof e.line){const n=e.source.replace(/\r/g,"\n").split("\n");if(n.length>0){const r=e=>{const r=n[e];if("string"==typeof r){const e={lineIndex:-1,lineNumber:-1,text:r,errorCharStart:-1,errorLength:-1};t.lines=t.lines||[],t.lines.push(e)}};r(e.line-3),r(e.line-2),r(e.line-1),r(e.line),r(e.line+1),r(e.line+2),r(e.line+3)}}n.diagnostics.push(t)}return n})(e.input,e.autoprefixer),Z(t.diagnostics))||!1!==e.minify&&(t.output=(e=>{const t=_n(e);return Z(t.diagnostics)?e:((e,t)=>{const n={}.usedSelectors||null,r={usedSelectors:n||null,hasUsedAttrs:!!n&&n.attrs.size>0,hasUsedClassNames:!!n&&n.classNames.size>0,hasUsedIds:!!n&&n.ids.size>0,hasUsedTags:!!n&&n.tags.size>0},i=e.rules;if(!i)return"";const s=i.length,o=[];for(let e=0;e<s;e++)o.push(bn(r,i[e],e,s));return o.join("")})(t.stylesheet)})(t.output)),t},Un=[{name:"@rindo/core",version:"0.0.0-dev.20221104122636",main:"compiler/rindo.js",resources:["internal/index.js","internal/index.d.ts","internal/package.json","internal/rindo-core/index.js","internal/rindo-core/index.d.ts","internal/rindo-ext-modules.d.ts","internal/rindo-private.d.ts","internal/rindo-public-compiler.d.ts","internal/rindo-public-docs.d.ts","internal/rindo-public-runtime.d.ts","internal/client/css-shim.js","internal/client/dom.js","internal/client/index.js","internal/client/patch.js","internal/client/shadow-css.js","internal/client/package.json","internal/hydrate/index.js","internal/hydrate/runner.js","internal/hydrate/shadow-css.js","internal/hydrate/package.json","mock-doc/index.js","mock-doc/package.json","package.json"]},{name:"typescript",version:"3.9.7",main:"lib/typescript.js",resources:["lib/lib.dom.d.ts","lib/lib.es2015.d.ts","lib/lib.es5.d.ts","lib/lib.es2015.core.d.ts","lib/lib.es2015.collection.d.ts","lib/lib.es2015.generator.d.ts","lib/lib.es2015.iterable.d.ts","lib/lib.es2015.symbol.d.ts","lib/lib.es2015.promise.d.ts","lib/lib.es2015.proxy.d.ts","lib/lib.es2015.reflect.d.ts","lib/lib.es2015.symbol.wellknown.d.ts","lib/lib.es2016.d.ts","lib/lib.es2016.array.include.d.ts","lib/lib.es2017.d.ts","lib/lib.es2017.typedarrays.d.ts","lib/lib.es2017.intl.d.ts","lib/lib.es2017.object.d.ts","lib/lib.es2017.sharedmemory.d.ts","lib/lib.es2017.string.d.ts","lib/lib.es2018.d.ts","lib/lib.es2018.asyncgenerator.d.ts","lib/lib.es2018.asynciterable.d.ts","lib/lib.es2018.promise.d.ts","lib/lib.es2018.regexp.d.ts","lib/lib.es2018.intl.d.ts","lib/lib.esnext.intl.d.ts","lib/lib.es2020.bigint.d.ts","package.json"]},{name:"rollup",version:"2.23.0",main:"dist/rollup.browser.es.js"},{name:"terser",version:"4.8.0",main:"dist/bundle.min.js"}],Vn=(e,t,n,r,i)=>{if(_t(i))return;const s=Hn(r);return B(s)&&((e,t,n,r,i,s)=>{n.endsWith("package.json")&&ot(s,i);let o=Me(r);for(;"/"!==o&&""!==o;)t?(t.clearFileCache(o),t.sys.mkdirSync(o)):e.mkdirSync(o),o=Me(o);t?(t.clearFileCache(r),t.sys.writeFileSync(r,i)):e.writeFileSync(r,i)})(e,t,r,i,s,n),s},Hn=e=>{if(!dt.has(e)&&!Et(e)){try{const t=new XMLHttpRequest;if(t.open("GET",e,!1),t.send(null),t.status>=200&&t.status<=299)return t.responseText}catch(e){}dt.add(e)}},Gn=(e,t,n,r,i)=>{const o=e=>{const n=t.realpathSync(e);return B(n)?n:e},l=e=>{try{const r=t.readdirSync(e||".").sort(),i=[],s=[];for(const e of r){const t=n.statSync(e);if(!t)continue;const r=Ie(e);t.isFile?i.push(r):t.isDirectory&&s.push(r)}return{files:i,directories:s}}catch(e){return{files:[],directories:[]}}};return i.getCurrentDirectory=t.getCurrentDirectory,i.createDirectory=e=>{t.mkdirSync(e,{recursive:!0})},i.directoryExists=e=>n.statSync(e).isDirectory,i.exit=t.exit,i.fileExists=t=>{let r=t;ve(t)&&(r=jn(e,i.getExecutingFilePath(),t));const s=n.statSync(r);return!(!s||!s.isFile)},i.getDirectories=e=>t.readdirSync(e).filter(e=>{const t=n.statSync(e);return!!(t&&t.exists&&t.isDirectory)}),i.readDirectory=(e,n,i,a,c)=>{const u=t.getCurrentDirectory();return r.matchFiles(e,n,i,a,s,u,c,l,o)},i.readFile=t=>{let r=t;const s=ve(t);s&&(r=jn(e,i.getExecutingFilePath(),t));let o=n.readFileSync(r,{useCache:s});return"string"!=typeof o&&s&&(a?(o=Hn(t),"string"==typeof o&&n.writeFile(r,o)):e.logger.error("ts.sys can only request http resources from within a web worker: "+t)),o},i.writeFile=(e,t)=>n.writeFile(e,t),i},jn=(e,t,n)=>{const r=new URL("..",t).href;if(n.startsWith(r)){const t=n.replace(r,"/"),i=e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:"typescript",path:t});return ae(i)}return n},Kn=(e,t,n)=>({isFile(r){const i=ge(r);if(t.statSync(i).isFile)return!0;if(lt(i)){if(!n.some(e=>i.endsWith(e)))return!1;const r=gt(e,pt,i);return"string"==typeof Vn(e,t,pt,r,i)}return!1},isDirectory(n){const r=ge(n);if(t.statSync(r).isDirectory)return!0;if(lt(r)){if("node_modules"===Ie(r))return t.sys.mkdirSync(r),t.clearFileCache(r),!0;if(st(r))return!1;const n=n=>{const i=mt(e,pt,r,n),s=it(r,n),o=Vn(e,t,pt,i,s);return B(o)};return Je.some(n)}return!1},readFileSync(e){const n=t.readFileSync(e);if(B(n))return n;throw new Error("file not found: "+e)},realpathSync(t){const n=ge(t);try{return e.realpathSync(n)}catch(e){if("ENOENT"!==e.code)throw e}return n},extensions:n}),Wn="0.0.0-dev.20221104122636",zn={rindo:Wn,typescript:"3.9.7",rollup:"2.23.0",terser:"4.8.0"},Xn={},qn=(e,t,n,r)=>{const i=Xn.__resolveModuleName||Xn.resolveModuleName;if(n&&i&&e.tsCompilerOptions){const s=Gn(e,e.sys,t.fs,Xn,{}),o=Object.assign({},e.tsCompilerOptions);return o.resolveJsonModule=!0,i(n,r,o,s)}return null},Yn=(e,t,n,r)=>{if(n.startsWith("@rindo/core")){return{resolvedModule:{extension:Xn.Extension.Dts,resolvedFileName:ae(e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:"@rindo/core",path:"internal/index.d.ts"})),packageId:{name:n,subModuleName:"",version:Wn}},failedLookupLocations:[]}}const i=((e,t,n)=>{const r=((e,t,n)=>{if(t){const r=ae(e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:n,path:"package.json"}));let i=t.readFileSync(r);if(!B(i)&&a){const s=e.sys.getRemoteModuleUrl({moduleId:n,path:"package.json"});i=Vn(e.sys,t,pt,s,r)}if("string"==typeof i)try{return JSON.parse(i)}catch(e){}}return null})(e,t,n.moduleId);if(r){const i=Object.assign(Object.assign({},n),{exts:[".js",".mjs"]}),s=((e,t,n)=>{if(t){const r=Kn(e,t,n.exts);return r.basedir=Me(n.containingFile),r.packageFilter=n.packageFilter,hn.sync(n.moduleId,r)}return null})(e.sys,t,i);if("string"==typeof s)return{resolvedUrl:s,packageJson:r}}return null})(e,t,{moduleId:n,containingFile:r});if(i){return{resolvedModule:{extension:Xn.Extension.Js,resolvedFileName:i.resolvedUrl,packageId:{name:n,subModuleName:"",version:i.packageJson.version}},failedLookupLocations:[]}}return null},Qn=(e,t)=>(!Ie(e).includes(".")&&B(t)&&(t=t.toLowerCase(),rt(t)?e+=".js":Ze(t)?e+=".d.ts":tt(t)?e+=".tsx":et(t)?e+=".ts":nt(t)&&(e+=".jsx")),e),Jn=e=>Ze(e)?Xn.Extension.Dts:tt(e)?Xn.Extension.Tsx:rt(e)?Xn.Extension.Js:nt(e)?Xn.Extension.Jsx:(e=>e.endsWith(".json"))(e)?Xn.Extension.Json:Xn.Extension.Ts,Zn=async(e,t,n)=>{const r=await rr(e.sys,e.typescriptPath,!1);er(e,t,n,r)},er=async(e,t,n,r)=>{r&&!Z(t)&&(((e,t,n)=>{e.sys=e.sys||{},t.sys&&(Gn(t,t.sys,n,e,e.sys),((e,t,n)=>{n.watchDirectory=(t,n,r)=>{const i=e.watchDirectory(t,e=>{n(e)},r);return{close(){i.close()}}},n.watchFile=(n,r)=>{const i=e.watchFile(n,(e,n)=>{"fileAdd"===n?r(e,t.FileWatcherEventKind.Created):"fileUpdate"===n?r(e,t.FileWatcherEventKind.Changed):"fileDelete"===n&&r(e,t.FileWatcherEventKind.Deleted)});return{close(){i.close()}}}})(t.sys,e,e.sys))})(r,e,n),((e,t,n)=>{let r;if(t.sys?r=t.sys.getCompilerExecutingPath():o&&(r=location.href),(e=>!i&&a&&ve(e))(r)){const r=e.__resolveModuleName=e.resolveModuleName;e.resolveModuleName=(e,i,s,o,a,l)=>((e,t,n,r)=>{if(at(n)){const e=Me(r);let i=Fe(e,n);if(i=ae(Qn(i,r)),Le(i)&&!t.accessSync(i))return null;Le(i)||i.startsWith(".")||i.startsWith("/")||(i="./"+i);return{resolvedModule:{extension:Jn(i),resolvedFileName:i,packageId:{name:n,subModuleName:"",version:Wn}},failedLookupLocations:[]}}return Yn(e,t,n,r)})(t,n,e,i)||r(e,i,s,o,a,l)}})(r,e,n),(e=>{const t=e.getParsedCommandLineOfConfigFile;e.getParsedCommandLineOfConfigFile=(e,n,r,i)=>{const s=t(e,n,r,i);return s.fileNames=s.fileNames.filter(e=>!(e.includes(".e2e.")||e.includes("/e2e.")||e.includes(".spec.")||e.includes("/spec."))),s}})(r),Object.assign(Xn,r))},tr=(e,t)=>{const n=e.sys=e.sys||{};n.getExecutingFilePath=()=>t,n.getCurrentDirectory||(n.getCurrentDirectory=h),n.exit||(n.exit=p),n.args||(n.args=[]),n.newLine||(n.newLine="\n"),M(n.useCaseSensitiveFileNames)||(n.useCaseSensitiveFileNames=!1),n.resolvePath||(n.resolvePath=Ue),n.write||(n.write=w)},nr={p:null},rr=(t,n,r)=>{if(e.ts)return e.ts;const s=ar(globalThis.ts);if(s)return s;if(i){const e=ar(u(n||"typescript"));if(e)return e}const l=or(t,n);if(a){const e=ar(ir(l));if(e)return tr(e,l),e}if(r)throw new Error('TypeScript "ts" must already be available on the global scope');if(!nr.p){if(!o)throw new Error("Unable to load TypeScript");nr.p=sr(l)}return nr.p},ir=e=>(self.importScripts(e),self.ts),sr=e=>new Promise((t,n)=>{const r=document.createElement("script");r.onload=()=>{const r=ar(globalThis.ts);r?(tr(r,e),t(r)):n("Unable to load TypeScript via browser script")},r.onerror=e=>n(e),r.src=e,document.head.appendChild(r)}),or=(e,t)=>{if(t)return t;const n=Un.find(e=>"typescript"===e.name);return e.getRemoteModuleUrl({moduleId:n.name,version:n.version,path:n.main})},ar=t=>null!=t&&P(t.transpileModule)?(Object.assign(Xn,t),e.ts=t):null;var lr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),cr=function(e){if(0<=e&&e<lr.length)return lr[e];throw new TypeError("Must be between 0 and 63: "+e)},ur=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=cr(t)}while(r>0);return n},hr=function(e,t,n){var r,i,s,o,a,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1==(i=65<=(a=e.charCodeAt(t++))&&a<=90?a-65:97<=a&&a<=122?a-97+26:48<=a&&a<=57?a-48+52:43==a?62:47==a?63:-1))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&i),c+=(i&=31)<<u,u+=5}while(r);n.value=(o=(s=c)>>1,1==(1&s)?-o:o),n.rest=t},pr=Lt((function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function s(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var n=e,r=i(e);if(r){if(!r.path)return e;n=r.path}for(var o,a=t.isAbsolute(n),l=n.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(o=l[u])?l.splice(u,1):".."===o?c++:c>0&&(""===o?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(n=l.join("/"))&&(n=a?"/":"."),r?(r.path=n,s(r)):n}function a(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),a=i(e);if(a&&(e=a.path||"/"),n&&!n.scheme)return a&&(n.scheme=a.scheme),s(n);if(n||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,s(a);var l="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,s(a)):l}t.urlParse=i,t.urlGenerate=s,t.normalize=o,t.join=a,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var l=!("__proto__"in Object.create(null));function c(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function h(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=l?c:function(e){return u(e)?"$"+e:e},t.fromSetString=l?c:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=h(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:h(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=h(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:h(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=h(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:h(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=i(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var l=r.path.lastIndexOf("/");l>=0&&(r.path=r.path.substring(0,l+1))}t=a(s(r),t)}return o(t)}})),dr=Object.prototype.hasOwnProperty,fr="undefined"!=typeof Map;function mr(){this._array=[],this._set=fr?new Map:Object.create(null)}mr.fromArray=function(e,t){for(var n=new mr,r=0,i=e.length;r<i;r++)n.add(e[r],t);return n},mr.prototype.size=function(){return fr?this._set.size:Object.getOwnPropertyNames(this._set).length},mr.prototype.add=function(e,t){var n=fr?e:pr.toSetString(e),r=fr?this.has(e):dr.call(this._set,n),i=this._array.length;r&&!t||this._array.push(e),r||(fr?this._set.set(e,i):this._set[n]=i)},mr.prototype.has=function(e){if(fr)return this._set.has(e);var t=pr.toSetString(e);return dr.call(this._set,t)},mr.prototype.indexOf=function(e){if(fr){var t=this._set.get(e);if(t>=0)return t}else{var n=pr.toSetString(e);if(dr.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},mr.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},mr.prototype.toArray=function(){return this._array.slice()};var gr=mr;function _r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}_r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},_r.prototype.add=function(e){var t,n,r,i,s,o;n=e,r=(t=this._last).generatedLine,i=n.generatedLine,s=t.generatedColumn,o=n.generatedColumn,i>r||i==r&&o>=s||pr.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},_r.prototype.toArray=function(){return this._sorted||(this._array.sort(pr.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var Er=gr,yr={MappingList:_r}.MappingList;function Tr(e){e||(e={}),this._file=pr.getArg(e,"file",null),this._sourceRoot=pr.getArg(e,"sourceRoot",null),this._skipValidation=pr.getArg(e,"skipValidation",!1),this._sources=new Er,this._names=new Er,this._mappings=new yr,this._sourcesContents=null}Tr.prototype._version=3,Tr.fromSourceMap=function(e){var t=e.sourceRoot,n=new Tr({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=pr.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var i=r;null!==t&&(i=pr.relative(t,r)),n._sources.has(i)||n._sources.add(i);var s=e.sourceContentFor(r);null!=s&&n.setSourceContent(r,s)})),n},Tr.prototype.addMapping=function(e){var t=pr.getArg(e,"generated"),n=pr.getArg(e,"original",null),r=pr.getArg(e,"source",null),i=pr.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},Tr.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=pr.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[pr.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[pr.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Tr.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var i=this._sourceRoot;null!=i&&(r=pr.relative(i,r));var s=new Er,o=new Er;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=n&&(t.source=pr.join(n,t.source)),null!=i&&(t.source=pr.relative(i,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var l=t.source;null==l||s.has(l)||s.add(l);var c=t.name;null==c||o.has(c)||o.add(c)}),this),this._sources=s,this._names=o,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=pr.join(n,t)),null!=i&&(t=pr.relative(i,t)),this.setSourceContent(t,r))}),this)},Tr.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},Tr.prototype._serializeMappings=function(){for(var e,t,n,r,i=0,s=1,o=0,a=0,l=0,c=0,u="",h=this._mappings.toArray(),p=0,d=h.length;p<d;p++){if(e="",(t=h[p]).generatedLine!==s)for(i=0;t.generatedLine!==s;)e+=";",s++;else if(p>0){if(!pr.compareByGeneratedPositionsInflated(t,h[p-1]))continue;e+=","}e+=ur(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=ur(r-c),c=r,e+=ur(t.originalLine-1-a),a=t.originalLine-1,e+=ur(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=ur(n-l),l=n)),u+=e}return u},Tr.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=pr.relative(t,e));var n=pr.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},Tr.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},Tr.prototype.toString=function(){return JSON.stringify(this.toJSON())};var vr={SourceMapGenerator:Tr},Ar=Lt((function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,i){if(0===n.length)return-1;var s=function e(n,r,i,s,o,a){var l=Math.floor((r-n)/2)+n,c=o(i,s[l],!0);return 0===c?l:c>0?r-l>1?e(l,r,i,s,o,a):a==t.LEAST_UPPER_BOUND?r<s.length?r:-1:l:l-n>1?e(n,l,i,s,o,a):a==t.LEAST_UPPER_BOUND?l:n<0?-1:n}(-1,n.length,e,n,r,i||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===r(n[s],n[s-1],!0);)--s;return s}}));function br(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}var Sr=gr,Cr=function(e,t){!function e(t,n,r,i){if(r<i){var s=r-1;br(t,(c=r,u=i,Math.round(c+Math.random()*(u-c))),i);for(var o=t[i],a=r;a<i;a++)n(t[a],o)<=0&&br(t,s+=1,a);br(t,s+1,a);var l=s+1;e(t,n,r,l-1),e(t,n,l+1,i)}var c,u}(e,t,0,e.length-1)};function xr(e,t){var n=e;return"string"==typeof e&&(n=pr.parseSourceMapInput(e)),null!=n.sections?new kr(n,t):new Nr(n,t)}xr.fromSourceMap=function(e,t){return Nr.fromSourceMap(e,t)},xr.prototype._version=3,xr.prototype.__generatedMappings=null,Object.defineProperty(xr.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),xr.prototype.__originalMappings=null,Object.defineProperty(xr.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),xr.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},xr.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},xr.GENERATED_ORDER=1,xr.ORIGINAL_ORDER=2,xr.GREATEST_LOWER_BOUND=1,xr.LEAST_UPPER_BOUND=2,xr.prototype.eachMapping=function(e,t,n){var r,i=t||null;switch(n||xr.GENERATED_ORDER){case xr.GENERATED_ORDER:r=this._generatedMappings;break;case xr.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var s=this.sourceRoot;r.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=pr.computeSourceURL(s,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},xr.prototype.allGeneratedPositionsFor=function(e){var t=pr.getArg(e,"line"),n={source:pr.getArg(e,"source"),originalLine:t,originalColumn:pr.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var r=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",pr.compareByOriginalPositions,Ar.LEAST_UPPER_BOUND);if(i>=0){var s=this._originalMappings[i];if(void 0===e.column)for(var o=s.originalLine;s&&s.originalLine===o;)r.push({line:pr.getArg(s,"generatedLine",null),column:pr.getArg(s,"generatedColumn",null),lastColumn:pr.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i];else for(var a=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==a;)r.push({line:pr.getArg(s,"generatedLine",null),column:pr.getArg(s,"generatedColumn",null),lastColumn:pr.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i]}return r};var Dr=xr;function Nr(e,t){var n=e;"string"==typeof e&&(n=pr.parseSourceMapInput(e));var r=pr.getArg(n,"version"),i=pr.getArg(n,"sources"),s=pr.getArg(n,"names",[]),o=pr.getArg(n,"sourceRoot",null),a=pr.getArg(n,"sourcesContent",null),l=pr.getArg(n,"mappings"),c=pr.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);o&&(o=pr.normalize(o)),i=i.map(String).map(pr.normalize).map((function(e){return o&&pr.isAbsolute(o)&&pr.isAbsolute(e)?pr.relative(o,e):e})),this._names=Sr.fromArray(s.map(String),!0),this._sources=Sr.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map((function(e){return pr.computeSourceURL(o,e,t)})),this.sourceRoot=o,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=t,this.file=c}function wr(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Nr.prototype=Object.create(xr.prototype),Nr.prototype.consumer=xr,Nr.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=pr.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},Nr.fromSourceMap=function(e,t){var n=Object.create(Nr.prototype),r=n._names=Sr.fromArray(e._names.toArray(),!0),i=n._sources=Sr.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return pr.computeSourceURL(n.sourceRoot,e,t)}));for(var s=e._mappings.toArray().slice(),o=n.__generatedMappings=[],a=n.__originalMappings=[],l=0,c=s.length;l<c;l++){var u=s[l],h=new wr;h.generatedLine=u.generatedLine,h.generatedColumn=u.generatedColumn,u.source&&(h.source=i.indexOf(u.source),h.originalLine=u.originalLine,h.originalColumn=u.originalColumn,u.name&&(h.name=r.indexOf(u.name)),a.push(h)),o.push(h)}return Cr(n.__originalMappings,pr.compareByOriginalPositions),n},Nr.prototype._version=3,Object.defineProperty(Nr.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),Nr.prototype._parseMappings=function(e,t){for(var n,r,i,s,o,a=1,l=0,c=0,u=0,h=0,p=0,d=e.length,f=0,m={},g={},_=[],E=[];f<d;)if(";"===e.charAt(f))a++,f++,l=0;else if(","===e.charAt(f))f++;else{for((n=new wr).generatedLine=a,s=f;s<d&&!this._charIsMappingSeparator(e,s);s++);if(i=m[r=e.slice(f,s)])f+=r.length;else{for(i=[];f<s;)hr(e,f,g),o=g.value,f=g.rest,i.push(o);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");m[r]=i}n.generatedColumn=l+i[0],l=n.generatedColumn,i.length>1&&(n.source=h+i[1],h+=i[1],n.originalLine=c+i[2],c=n.originalLine,n.originalLine+=1,n.originalColumn=u+i[3],u=n.originalColumn,i.length>4&&(n.name=p+i[4],p+=i[4])),E.push(n),"number"==typeof n.originalLine&&_.push(n)}Cr(E,pr.compareByGeneratedPositionsDeflated),this.__generatedMappings=E,Cr(_,pr.compareByOriginalPositions),this.__originalMappings=_},Nr.prototype._findMapping=function(e,t,n,r,i,s){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return Ar.search(e,t,i,s)},Nr.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},Nr.prototype.originalPositionFor=function(e){var t={generatedLine:pr.getArg(e,"line"),generatedColumn:pr.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",pr.compareByGeneratedPositionsDeflated,pr.getArg(e,"bias",xr.GREATEST_LOWER_BOUND));if(n>=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=pr.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),i=pr.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var s=pr.getArg(r,"name",null);return null!==s&&(s=this._names.at(s)),{source:i,line:pr.getArg(r,"originalLine",null),column:pr.getArg(r,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},Nr.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},Nr.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var r,i=e;if(null!=this.sourceRoot&&(i=pr.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(r=pr.urlParse(this.sourceRoot))){var s=i.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!r.path||"/"==r.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},Nr.prototype.generatedPositionFor=function(e){var t=pr.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:pr.getArg(e,"line"),originalColumn:pr.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",pr.compareByOriginalPositions,pr.getArg(e,"bias",xr.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===n.source)return{line:pr.getArg(i,"generatedLine",null),column:pr.getArg(i,"generatedColumn",null),lastColumn:pr.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var Or=Nr;function kr(e,t){var n=e;"string"==typeof e&&(n=pr.parseSourceMapInput(e));var r=pr.getArg(n,"version"),i=pr.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new Sr,this._names=new Sr;var s={line:-1,column:0};this._sections=i.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=pr.getArg(e,"offset"),r=pr.getArg(n,"line"),i=pr.getArg(n,"column");if(r<s.line||r===s.line&&i<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=n,{generatedOffset:{generatedLine:r+1,generatedColumn:i+1},consumer:new xr(pr.getArg(e,"map"),t)}}))}kr.prototype=Object.create(xr.prototype),kr.prototype.constructor=xr,kr.prototype._version=3,Object.defineProperty(kr.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),kr.prototype.originalPositionFor=function(e){var t={generatedLine:pr.getArg(e,"line"),generatedColumn:pr.getArg(e,"column")},n=Ar.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),r=this._sections[n];return r?r.consumer.originalPositionFor({line:t.generatedLine-(r.generatedOffset.generatedLine-1),column:t.generatedColumn-(r.generatedOffset.generatedLine===t.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},kr.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},kr.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},kr.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(pr.getArg(e,"source"))){var r=n.consumer.generatedPositionFor(e);if(r)return{line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},kr.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var r=this._sections[n],i=r.consumer._generatedMappings,s=0;s<i.length;s++){var o=i[s],a=r.consumer._sources.at(o.source);a=pr.computeSourceURL(r.consumer.sourceRoot,a,this._sourceMapURL),this._sources.add(a),a=this._sources.indexOf(a);var l=null;o.name&&(l=r.consumer._names.at(o.name),this._names.add(l),l=this._names.indexOf(l));var c={source:a,generatedLine:o.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(r.generatedOffset.generatedLine===o.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:l};this.__generatedMappings.push(c),"number"==typeof c.originalLine&&this.__originalMappings.push(c)}Cr(this.__generatedMappings,pr.compareByGeneratedPositionsDeflated),Cr(this.__originalMappings,pr.compareByOriginalPositions)};var Rr={SourceMapConsumer:Dr,BasicSourceMapConsumer:Or,IndexedSourceMapConsumer:kr},Ir=vr.SourceMapGenerator,Mr=/(\r?\n)/,Pr="$$$isSourceNode$$$";function Lr(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[Pr]=!0,null!=r&&this.add(r)}Lr.fromStringWithSourceMap=function(e,t,n){var r=new Lr,i=e.split(Mr),s=0,o=function(){return e()+(e()||"");function e(){return s<i.length?i[s++]:void 0}},a=1,l=0,c=null;return t.eachMapping((function(e){if(null!==c){if(!(a<e.generatedLine)){var t=(n=i[s]||"").substr(0,e.generatedColumn-l);return i[s]=n.substr(e.generatedColumn-l),l=e.generatedColumn,u(c,t),void(c=e)}u(c,o()),a++,l=0}for(;a<e.generatedLine;)r.add(o()),a++;if(l<e.generatedColumn){var n=i[s]||"";r.add(n.substr(0,e.generatedColumn)),i[s]=n.substr(e.generatedColumn),l=e.generatedColumn}c=e}),this),s<i.length&&(c&&u(c,o()),r.add(i.splice(s).join(""))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=pr.join(n,e)),r.setSourceContent(e,i))})),r;function u(e,t){if(null===e||void 0===e.source)r.add(t);else{var i=n?pr.join(n,e.source):e.source;r.add(new Lr(e.originalLine,e.originalColumn,i,t,e.name))}}},Lr.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[Pr]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},Lr.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[Pr]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},Lr.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[Pr]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},Lr.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},Lr.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[Pr]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},Lr.prototype.setSourceContent=function(e,t){this.sourceContents[pr.toSetString(e)]=t},Lr.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][Pr]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(pr.fromSetString(r[t]),this.sourceContents[r[t]])},Lr.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},Lr.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new Ir(e),r=!1,i=null,s=null,o=null,a=null;return this.walk((function(e,l){t.code+=e,null!==l.source&&null!==l.line&&null!==l.column?(i===l.source&&s===l.line&&o===l.column&&a===l.name||n.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name}),i=l.source,s=l.line,o=l.column,a=l.name,r=!0):r&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,r=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(i=null,r=!1):r&&n.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}};var Fr={SourceMapGenerator:vr.SourceMapGenerator,SourceMapConsumer:Rr.SourceMapConsumer,SourceNode:{SourceNode:Lr}.SourceNode},Br=Lt((function(e,n){!function(e,n){function r(e){return e.split("")}function i(e,t){return t.includes(e)}n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;class s extends Error{constructor(e,t){super(),this.name="DefaultsError",this.message=e,this.defs=t}}function o(e,t,n){!0===e&&(e={});const r=e||{};if(n)for(const e in r)if(T(r,e)&&!T(t,e))throw new s("`"+e+"` is not a supported option",t);for(const n in t)if(T(t,n))if(e&&T(e,n))if("ecma"===n){let t=0|e[n];t>5&&t<2015&&(t+=2009),r[n]=t}else r[n]=e&&T(e,n)?e[n]:t[n];else r[n]=t[n];return r}function a(){}function l(){return!1}function c(){return!0}function u(){return this}function h(){return null}var p=function(){function e(e,s,o){var a,l=[],c=[];function u(){var u=s(e[a],a),h=u instanceof i;return h&&(u=u.v),u instanceof n?(u=u.v)instanceof r?c.push.apply(c,o?u.v.slice().reverse():u.v):c.push(u):u!==t&&(u instanceof r?l.push.apply(l,o?u.v.slice().reverse():u.v):l.push(u)),h}if(Array.isArray(e))if(o){for(a=e.length;--a>=0&&!u(););l.reverse(),c.reverse()}else for(a=0;a<e.length&&!u();++a);else for(a in e)if(T(e,a)&&u())break;return c.concat(l)}e.at_top=function(e){return new n(e)},e.splice=function(e){return new r(e)},e.last=function(e){return new i(e)};var t=e.skip={};function n(e){this.v=e}function r(e){this.v=e}function i(e){this.v=e}return e}();function d(e,t,n){return n||(n={}),t&&(n.start||(n.start=t.start),n.end||(n.end=t.end)),new e(n)}function f(e,t){e.includes(t)||e.push(t)}function m(e,t){return e.replace(/{(.+?)}/g,(function(e,n){return t&&t[n]}))}function g(e,t){for(var n=e.length;--n>=0;)e[n]===t&&e.splice(n,1)}function _(e,t){return e.length<2?e.slice():function e(n){if(n.length<=1)return n;var r=Math.floor(n.length/2),i=n.slice(0,r),s=n.slice(r);return function(e,n){for(var r=[],i=0,s=0,o=0;i<e.length&&s<n.length;)t(e[i],n[s])<=0?r[o++]=e[i++]:r[o++]=n[s++];return i<e.length&&r.push.apply(r,e.slice(i)),s<n.length&&r.push.apply(r,n.slice(s)),r}(i=e(i),s=e(s))}(e)}function E(e){return Array.isArray(e)||(e=e.split(" ")),new Set(e)}function y(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function v(e,t){return!0===e||e instanceof RegExp&&e.test(t)}var A={"\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function b(e){return e.replace(/[\n\r\u2028\u2029]/g,(function(t,n){return("\\"!=e[n-1]||"\\"==e[n-2]&&!/(?:^|[^\\])(?:\\{2})*$/.test(e.slice(0,n-1))?"\\":"")+A[t]}))}function S(e,t){return e._annotations&t}function C(e,t){e._annotations|=t}var x="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with",D="false null true",N="enum implements import interface package private protected public static super this "+D+" "+x,w="return new delete throw else case yield await";x=E(x),N=E(N),w=E(w),D=E(D);var O=E(r("+-*&%=<>!?|~^")),k=/[0-9a-f]/i,R=/^0x[0-9a-f]+$/i,I=/^0[0-7]+$/,M=/^0o[0-7]+$/i,P=/^0b[01]+$/i,L=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,F=/^(0[xob])?[0-9a-f]+n$/i,B=E(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","??","||"]),$=E(r("  \n\r\t\f\v​           \u2028\u2029   \ufeff")),U=E(r("\n\r\u2028\u2029")),V=E(r(";]),:")),H=E(r("[{(,;:")),G=E(r("[]{}(),;:")),j={ID_Start:/[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])+/};function K(e,t){if(W(e.charCodeAt(t))){if(z(e.charCodeAt(t+1)))return e.charAt(t)+e.charAt(t+1)}else if(z(e.charCodeAt(t))&&W(e.charCodeAt(t-1)))return e.charAt(t-1)+e.charAt(t);return e.charAt(t)}function W(e){return e>=55296&&e<=56319}function z(e){return e>=56320&&e<=57343}function X(e){return e>=48&&e<=57}function q(e){return j.ID_Start.test(e)}function Y(e){return j.ID_Continue.test(e)}function Q(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function J(e,t){if(/^[a-z_$][a-z0-9_$]*$/i.test(e))return!0;if(!t&&/[\ud800-\udfff]/.test(e))return!1;var n=j.ID_Start.exec(e);return!(!n||0!==n.index||(e=e.slice(n[0].length))&&(!(n=j.ID_Continue.exec(e))||n[0].length!==e.length))}function Z(e,t=!0){if(!t&&e.includes("e"))return NaN;if(R.test(e))return parseInt(e.substr(2),16);if(I.test(e))return parseInt(e.substr(1),8);if(M.test(e))return parseInt(e.substr(2),8);if(P.test(e))return parseInt(e.substr(2),2);if(L.test(e))return parseFloat(e);var n=parseFloat(e);return n==e?n:void 0}class ee extends Error{constructor(e,t,n,r,i){super(),this.name="SyntaxError",this.message=e,this.filename=t,this.line=n,this.col=r,this.pos=i}}function te(e,t,n,r,i){throw new ee(e,t,n,r,i)}function ne(e,t,n){return e.type==t&&(null==n||e.value==n)}var re={};function ie(e,t,n,r){var i={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function s(){return K(i.text,i.pos)}function o(e,t){var n=K(i.text,i.pos++);if(e&&!n)throw re;return U.has(n)?(i.newline_before=i.newline_before||!t,++i.line,i.col=0,"\r"==n&&"\n"==s()&&(++i.pos,n="\n")):(n.length>1&&(++i.pos,++i.col),++i.col),n}function a(e){for(;e--;)o()}function l(e){return i.text.substr(i.pos,e.length)==e}function c(e,t){var n=i.text.indexOf(e,i.pos);if(t&&-1==n)throw re;return n}function u(){i.tokline=i.line,i.tokcol=i.col,i.tokpos=i.pos}var h=!1,p=null;function d(n,r,s){i.regex_allowed="operator"==n&&!oe.has(r)||"keyword"==n&&w.has(r)||"punc"==n&&H.has(r)||"arrow"==n,"punc"==n&&"."==r?h=!0:s||(h=!1);var o={type:n,value:r,line:i.tokline,col:i.tokcol,pos:i.tokpos,endline:i.line,endcol:i.col,endpos:i.pos,nlb:i.newline_before,file:t};return/^(?:num|string|regexp)$/i.test(n)&&(o.raw=e.substring(o.pos,o.endpos)),s||(o.comments_before=i.comments_before,o.comments_after=i.comments_before=[]),i.newline_before=!1,o=new pe(o),s||(p=o),o}function f(){for(;$.has(s());)o()}function m(e){te(e,t,i.tokline,i.tokcol,i.tokpos)}function g(e){var t=!1,n=!1,r=!1,i="."==e,a=!1,l=!1,c=function(e){for(var t,n="",r=0;(t=s())&&e(t,r++);)n+=o();return n}((function(s,o){if(a)return!1;switch(s.charCodeAt(0)){case 95:return l=!0;case 98:case 66:return r=!0;case 111:case 79:case 120:case 88:return!r&&(r=!0);case 101:case 69:return!!r||!t&&(t=n=!0);case 45:return n||0==o&&!e;case 43:return n;case n=!1,46:return!(i||r||t)&&(i=!0)}return"n"===s?(a=!0,!0):k.test(s)}));if(e&&(c=e+c),I.test(c)&&V.has_directive("use strict")&&m("Legacy octal literals are not allowed in strict mode"),l&&(c.endsWith("_")?m("Numeric separators are not allowed at the end of numeric literals"):c.includes("__")&&m("Only one underscore is allowed as numeric separator"),c=c.replace(/_/g,"")),c.endsWith("n")){const e=c.slice(0,-1),t=Z(e,R.test(e));if(!i&&F.test(c)&&!isNaN(t))return d("big_int",e);m("Invalid or unexpected token")}var u=Z(c);if(!isNaN(u))return d("num",u);m("Invalid syntax: "+c)}function _(e){return e>="0"&&e<="7"}function E(e,t,n){var r,a=o(!0,e);switch(a.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(y(2,t));case 117:if("{"==s()){for(o(!0),"}"===s()&&m("Expecting hex-character between {}");"0"==s();)o(!0);var l,u=c("}",!0)-i.pos;return(u>6||(l=y(u,t))>1114111)&&m("Unicode reference out of bounds"),o(!0),(r=l)>65535?(r-=65536,String.fromCharCode(55296+(r>>10))+String.fromCharCode(r%1024+56320)):String.fromCharCode(r)}return String.fromCharCode(y(4,t));case 10:return"";case 13:if("\n"==s())return o(!0,e),""}return _(a)?(n&&t&&("0"===a&&!_(s())||m("Octal escape sequences are not allowed in template strings")),function(e,t){var n=s();return n>="0"&&n<="7"&&(e+=o(!0))[0]<="3"&&(n=s())>="0"&&n<="7"&&(e+=o(!0)),"0"===e?"\0":(e.length>0&&V.has_directive("use strict")&&t&&m("Legacy octal escape sequences are not allowed in strict mode"),String.fromCharCode(parseInt(e,8)))}(a,t)):a}function y(e,t){for(var n=0;e>0;--e){if(!t&&isNaN(parseInt(s(),16)))return parseInt(n,16)||"";var r=o(!0);isNaN(parseInt(r,16))&&m("Invalid hex-character pattern in string"),n+=r}return parseInt(n,16)}var T=L("Unterminated string constant",(function(){for(var e=o(),t="";;){var n=o(!0,!0);if("\\"==n)n=E(!0,!0);else if("\r"==n||"\n"==n)m("Unterminated string constant");else if(n==e)break;t+=n}var r=d("string",t);return r.quote=e,r})),v=L("Unterminated template",(function(e){e&&i.template_braces.push(i.brace_counter);var t,n,r="",a="";for(o(!0,!0);"`"!=(t=o(!0,!0));){if("\r"==t)"\n"==s()&&++i.pos,t="\n";else if("$"==t&&"{"==s())return o(!0,!0),i.brace_counter++,(n=d(e?"template_head":"template_substitution",r)).raw=a,n;if(a+=t,"\\"==t){var l=i.pos;t=E(!0,!(p&&("name"===p.type||"punc"===p.type&&(")"===p.value||"]"===p.value))),!0),a+=i.text.substr(l,i.pos-l)}r+=t}return i.template_braces.pop(),(n=d(e?"template_head":"template_substitution",r)).raw=a,n.end=!0,n}));function A(e){var t,n=i.regex_allowed,r=function(){for(var e=i.text,t=i.pos,n=i.text.length;t<n;++t){var r=e[t];if(U.has(r))return t}return-1}();return-1==r?(t=i.text.substr(i.pos),i.pos=i.text.length):(t=i.text.substring(i.pos,r),i.pos=r),i.col=i.tokcol+(i.pos-i.tokpos),i.comments_before.push(d(e,t,!0)),i.regex_allowed=n,V}var b=L("Unterminated multiline comment",(function(){var e=i.regex_allowed,t=c("*/",!0),n=i.text.substring(i.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return a(function(e){for(var t=0,n=0;n<e.length;n++)W(e.charCodeAt(n))&&z(e.charCodeAt(n+1))&&(t++,n++);return e.length-t}(n)+2),i.comments_before.push(d("comment2",n,!0)),i.newline_before=i.newline_before||n.includes("\n"),i.regex_allowed=e,V})),S=L("Unterminated identifier name",(function(){var e,t,n=!1,r=function(){return n=!0,o(),"u"!==s()&&m("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"),E(!1,!0)};if("\\"===(e=s()))q(e=r())||m("First identifier char is an invalid identifier char");else{if(!q(e))return"";o()}for(;null!=(t=s());){if("\\"===(t=s()))Y(t=r())||m("Invalid escaped identifier char");else{if(!Y(t))break;o()}e+=t}return N.has(e)&&n&&m("Escaped characters are not allowed in keywords"),e})),C=L("Unterminated regular expression",(function(e){for(var t,n=!1,r=!1;t=o(!0);)if(U.has(t))m("Unexpected line terminator");else if(n)e+="\\"+t,n=!1;else if("["==t)r=!0,e+=t;else if("]"==t&&r)r=!1,e+=t;else{if("/"==t&&!r)break;"\\"==t?n=!0:e+=t}return d("regexp",{source:e,flags:S()})}));function M(e){return d("operator",function e(t){if(!s())return t;var n=t+s();return B.has(n)?(o(),e(n)):t}(e||o()))}function P(){switch(o(),s()){case"/":return o(),A("comment1");case"*":return o(),b()}return i.regex_allowed?C(""):M("/")}function L(e,t){return function(n){try{return t(n)}catch(t){if(t!==re)throw t;m(e)}}}function V(e){if(null!=e)return C(e);for(r&&0==i.pos&&l("#!")&&(u(),a(2),A("comment5"));;){if(f(),u(),n){if(l("\x3c!--")){a(4),A("comment3");continue}if(l("--\x3e")&&i.newline_before){a(3),A("comment4");continue}}var t=s();if(!t)return d("eof");var c=t.charCodeAt(0);switch(c){case 34:case 39:return T();case 46:return o(),X(s().charCodeAt(0))?g("."):"."===s()?(o(),o(),d("expand","...")):d("punc",".");case 47:var p=P();if(p===V)continue;return p;case 61:return o(),">"===s()?(o(),d("arrow","=>")):M("=");case 96:return v(!0);case 123:i.brace_counter++;break;case 125:if(i.brace_counter--,i.template_braces.length>0&&i.template_braces[i.template_braces.length-1]===i.brace_counter)return v(!1)}if(X(c))return g();if(G.has(t))return d("punc",o());if(O.has(t))return M();if(92==c||q(t))return _=S(),h?d("name",_):D.has(_)?d("atom",_):x.has(_)?B.has(_)?d("operator",_):d("keyword",_):d("name",_);break}var _;m("Unexpected character '"+t+"'")}return V.next=o,V.peek=s,V.context=function(e){return e&&(i=e),i},V.add_directive=function(e){i.directive_stack[i.directive_stack.length-1].push(e),void 0===i.directives[e]?i.directives[e]=1:i.directives[e]++},V.push_directives_stack=function(){i.directive_stack.push([])},V.pop_directives_stack=function(){for(var e=i.directive_stack[i.directive_stack.length-1],t=0;t<e.length;t++)i.directives[e[t]]--;i.directive_stack.pop()},V.has_directive=function(e){return i.directives[e]>0},V}var se=E(["typeof","void","delete","--","++","!","~","-","+"]),oe=E(["--","++"]),ae=E(["=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),le=function(e,t){for(var n=0;n<e.length;++n)for(var r=e[n],i=0;i<r.length;++i)t[r[i]]=n+1;return t}([["||"],["??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),ce=E(["atom","num","big_int","string","regexp","name"]);function ue(e,t){const n=new Map;t=o(t,{bare_returns:!1,ecma:2017,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var r={input:"string"==typeof e?ie(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};function i(e,t){return ne(r.token,e,t)}function s(){return r.peeked||(r.peeked=r.input())}function a(){return r.prev=r.token,r.peeked||s(),r.token=r.peeked,r.peeked=null,r.in_directives=r.in_directives&&("string"==r.token.type||i("punc",";")),r.token}function l(){return r.prev}function c(e,t,n,i){var s=r.input.context();te(e,s.filename,null!=t?t:s.tokline,null!=n?n:s.tokcol,null!=i?i:s.tokpos)}function u(e,t){c(t,e.line,e.col)}function h(e){null==e&&(e=r.token),u(e,"Unexpected token: "+e.type+" ("+e.value+")")}function p(e,t){if(i(e,t))return a();u(r.token,"Unexpected token "+r.token.type+" «"+r.token.value+"», expected "+e+" «"+t+"»")}function d(e){return p("punc",e)}function f(e){return e.nlb||!e.comments_before.every(e=>!e.nlb)}function m(){return!t.strict&&(i("eof")||i("punc","}")||f(r.token))}function g(){return r.in_generator===r.in_function}function _(){return r.in_async===r.in_function}function E(e){i("punc",";")?a():e||m()||h()}function y(){d("(");var e=Ke(!0);return d(")"),e}function T(e){return function(...t){const n=r.token,i=e(...t);return i.start=n,i.end=l(),i}}function v(){(i("operator","/")||i("operator","/="))&&(r.peeked=null,r.token=r.input(r.token.value.substr(1)))}r.token=a();var A=T((function(e,n,o){switch(v(),r.token.type){case"string":if(r.in_directives){var g=s();!r.token.raw.includes("\\")&&(ne(g,"punc",";")||ne(g,"punc","}")||f(g)||ne(g,"eof"))?r.input.add_directive(r.token.value):r.in_directives=!1}var T=r.in_directives,C=b();return T&&C.body instanceof dn?new ge(C.body):C;case"template_head":case"num":case"big_int":case"regexp":case"operator":case"atom":return b();case"name":if("async"==r.token.value&&ne(s(),"keyword","function"))return a(),a(),n&&c("functions are not allowed as the body of a loop"),D(Ue,!1,!0,e);if("import"==r.token.value&&!ne(s(),"punc","(")){a();var x=function(){var e,t,n=l();i("name")&&(e=ue(nn)),i("punc",",")&&a(),((t=J(!0))||e)&&p("name","from");var s=r.token;return"string"!==s.type&&h(),a(),new ft({start:n,imported_name:e,imported_names:t,module_name:new dn({start:s,value:s.value,quote:s.quote,end:s}),end:r.token})}();return E(),x}return ne(s(),"punc",":")?function(){var e=ue(sn);"await"===e.name&&_()&&u(r.prev,"await cannot be used as label inside async function"),r.labels.some(t=>t.name===e.name)&&c("Label "+e.name+" defined twice"),d(":"),r.labels.push(e);var t=A();return r.labels.pop(),t instanceof Ce||e.references.forEach((function(t){t instanceof Qe&&(t=t.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))})),new Se({body:t,label:e})}():b();case"punc":switch(r.token.value){case"{":return new ve({start:r.token,body:I(),end:l()});case"[":case"(":return b();case";":return r.in_directives=!1,a(),new Ae;default:h()}case"keyword":switch(r.token.value){case"break":return a(),S(Ye);case"continue":return a(),S(Qe);case"debugger":return a(),E(),new me;case"do":a();var N=We(A);p("keyword","while");var w=y();return E(!0),new De({body:N,condition:w});case"while":return a(),new Ne({condition:y(),body:We((function(){return A(!1,!0)}))});case"for":return a(),function(){var e="`for await` invalid in this context",t=r.token;"name"==t.type&&"await"==t.value?(_()||u(t,e),a()):t=!1,d("(");var n=null;if(i("punc",";"))t&&u(t,e);else{n=i("keyword","var")?(a(),L(!0)):i("keyword","let")?(a(),F(!0)):i("keyword","const")?(a(),B(!0)):Ke(!0,!0);var s=i("operator","in"),o=i("name","of");if(t&&!o&&u(t,e),s||o)return n instanceof lt?n.definitions.length>1&&u(n.start,"Only one variable declaration allowed in for..in loop"):be(n)||(n=xe(n))instanceof Ve||u(n.start,"Invalid left-hand side in for..in loop"),a(),s?function(e){var t=Ke(!0);return d(")"),new Oe({init:e,object:t,body:We((function(){return A(!1,!0)}))})}(n):function(e,t){var n=e instanceof lt?e.definitions[0].name:null,r=Ke(!0);return d(")"),new ke({await:t,init:e,name:n,object:r,body:We((function(){return A(!1,!0)}))})}(n,!!t)}return function(e){d(";");var t=i("punc",";")?null:Ke(!0);d(";");var n=i("punc",")")?null:Ke(!0);return d(")"),new we({init:e,condition:t,step:n,body:We((function(){return A(!1,!0)}))})}(n)}();case"class":return a(),n&&c("classes are not allowed as the body of a loop"),o&&c("classes are not allowed as the body of an if"),X($t);case"function":return a(),n&&c("functions are not allowed as the body of a loop"),D(Ue,!1,!1,e);case"if":return a(),function(){var e=y(),t=A(!1,!1,!0),n=null;return i("keyword","else")&&(a(),n=A(!1,!1,!0)),new et({condition:e,body:t,alternative:n})}();case"return":0!=r.in_function||t.bare_returns||c("'return' outside of function"),a();var k=null;return i("punc",";")?a():m()||(k=Ke(!0),E()),new ze({value:k});case"switch":return a(),new tt({expression:y(),body:We(M)});case"throw":return a(),f(r.token)&&c("Illegal newline after 'throw'"),k=Ke(!0),E(),new Xe({value:k});case"try":return a(),function(){var e=I(),t=null,n=null;if(i("keyword","catch")){var s=r.token;if(a(),i("punc","{"))var o=null;else d("("),o=O(void 0,tn),d(")");t=new ot({start:s,argname:o,body:I(),end:l()})}return i("keyword","finally")&&(s=r.token,a(),n=new at({start:s,body:I(),end:l()})),t||n||c("Missing catch/finally blocks"),new st({body:e,bcatch:t,bfinally:n})}();case"var":return a(),x=L(),E(),x;case"let":return a(),x=F(),E(),x;case"const":return a(),x=B(),E(),x;case"with":return r.input.has_directive("use strict")&&c("Strict mode may not include a with statement"),a(),new Re({expression:y(),body:A()});case"export":if(!ne(s(),"punc","("))return a(),x=function(){var e,t,n,o,c,u=r.token;if(i("keyword","default"))e=!0,a();else if(t=J(!1)){if(i("name","from")){a();var p=r.token;return"string"!==p.type&&h(),a(),new mt({start:u,is_default:e,exported_names:t,module_name:new dn({start:p,value:p.value,quote:p.quote,end:p}),end:l()})}return new mt({start:u,is_default:e,exported_names:t,end:l()})}return i("punc","{")||e&&(i("keyword","class")||i("keyword","function"))&&ne(s(),"punc")?(o=Ke(!1),E()):(n=A(e))instanceof lt&&e?h(n.start):n instanceof lt||n instanceof Le||n instanceof $t?c=n:n instanceof _e?o=n.body:h(n.start),new mt({start:u,is_default:e,exported_value:o,exported_definition:c,end:l()})}(),i("punc",";")&&E(),x}}h()}));function b(e){return new _e({body:(e=Ke(!0),E(),e)})}function S(e){var t,n=null;m()||(n=ue(cn,!0)),null!=n?((t=r.labels.find(e=>e.name===n.name))||c("Undefined label "+n.name),n.thedef=t):0==r.in_loop&&c(e.TYPE+" not inside a loop or switch"),E();var i=new e({label:n});return t&&t.references.push(i),i}var x=function(e,t,n){f(r.token)&&c("Unexpected newline before arrow (=>)"),p("arrow","=>");var s=R(i("punc","{"),!1,n),o=s instanceof Array&&s.length?s[s.length-1].end:s instanceof Array?e:s.end;return new $e({start:e,end:o,async:n,argnames:t,body:s})},D=function(e,t,n,r){var s=e===Ue,o=i("operator","*");o&&a();var c=i("name")?ue(s?qt:Jt):null;s&&!c&&(r?e=Be:h()),!c||e===Fe||c instanceof Gt||h(l());var u=[],p=R(!0,o||t,n,c,u);return new e({start:u.start,end:p.end,is_generator:o,async:n,name:c,argnames:u,body:p})};function w(e,t){var n=new Set,r=!1,i=!1,s=!1,o=!!t,a={add_parameter:function(t){if(n.has(t.value))!1===r&&(r=t),a.check_strict();else if(n.add(t.value),e)switch(t.value){case"arguments":case"eval":case"yield":o&&u(t,"Unexpected "+t.value+" identifier as parameter inside strict mode");break;default:N.has(t.value)&&h()}},mark_default_assignment:function(e){!1===i&&(i=e)},mark_spread:function(e){!1===s&&(s=e)},mark_strict_mode:function(){o=!0},is_strict:function(){return!1!==i||!1!==s||o},check_strict:function(){a.is_strict()&&!1!==r&&u(r,"Parameter "+r.value+" was used already")}};return a}function O(e,t){var n,s=!1;return void 0===e&&(e=w(!0,r.input.has_directive("use strict"))),i("expand","...")&&(s=r.token,e.mark_spread(r.token),a()),n=k(e,t),i("operator","=")&&!1===s&&(e.mark_default_assignment(r.token),a(),n=new Nt({start:n.start,left:n,operator:"=",right:Ke(!1),end:r.token})),!1!==s&&(i("punc",")")||h(),n=new Pe({start:s,expression:n,end:s})),e.check_strict(),n}function k(e,t){var n,o=[],u=!0,p=!1,f=r.token;if(void 0===e&&(e=w(!1,r.input.has_directive("use strict"))),t=void 0===t?Xt:t,i("punc","[")){for(a();!i("punc","]");){if(u?u=!1:d(","),i("expand","...")&&(p=!0,n=r.token,e.mark_spread(r.token),a()),i("punc"))switch(r.token.value){case",":o.push(new vn({start:r.token,end:r.token}));continue;case"]":break;case"[":case"{":o.push(k(e,t));break;default:h()}else i("name")?(e.add_parameter(r.token),o.push(ue(t))):c("Invalid function parameter");i("operator","=")&&!1===p&&(e.mark_default_assignment(r.token),a(),o[o.length-1]=new Nt({start:o[o.length-1].start,left:o[o.length-1],operator:"=",right:Ke(!1),end:r.token})),p&&(i("punc","]")||c("Rest element must be last element"),o[o.length-1]=new Pe({start:n,expression:o[o.length-1],end:n}))}return d("]"),e.check_strict(),new Ve({start:f,names:o,is_array:!0,end:l()})}if(i("punc","{")){for(a();!i("punc","}");){if(u?u=!1:d(","),i("expand","...")&&(p=!0,n=r.token,e.mark_spread(r.token),a()),i("name")&&(ne(s(),"punc")||ne(s(),"operator"))&&[",","}","="].includes(s().value)){e.add_parameter(r.token);var m=l(),g=ue(t);p?o.push(new Pe({start:n,expression:g,end:g.end})):o.push(new Rt({start:m,key:g.name,value:g,end:g.end}))}else{if(i("punc","}"))continue;var _=r.token,E=Z();null===E?h(l()):"name"!==l().type||i("punc",":")?(d(":"),o.push(new Rt({start:_,quote:_.quote,key:E,value:k(e,t),end:l()}))):o.push(new Rt({start:l(),key:E,value:new t({start:l(),name:E,end:l()}),end:l()}))}p?i("punc","}")||c("Rest element must be last element"):i("operator","=")&&(e.mark_default_assignment(r.token),a(),o[o.length-1].value=new Nt({start:o[o.length-1].value.start,left:o[o.length-1].value,operator:"=",right:Ke(!1),end:r.token}))}return d("}"),e.check_strict(),new Ve({start:f,names:o,is_array:!1,end:l()})}if(i("name"))return e.add_parameter(r.token),ue(t);c("Invalid function parameter")}function R(e,n,s,o,l){var c=r.in_loop,u=r.labels,p=r.in_generator,f=r.in_async;if(++r.in_function,n&&(r.in_generator=r.in_function),s&&(r.in_async=r.in_function),l&&function(e){var n=w(!0,r.input.has_directive("use strict"));for(d("(");!i("punc",")");){var s=O(n);if(e.push(s),i("punc",")")||(d(","),i("punc",")")&&t.ecma<2017&&h()),s instanceof Pe)break}a()}(l),e&&(r.in_directives=!0),r.in_loop=0,r.labels=[],e){r.input.push_directives_stack();var m=I();o&&re(o),l&&l.forEach(re),r.input.pop_directives_stack()}else m=[new ze({start:r.token,value:Ke(!1),end:r.token})];return--r.in_function,r.in_loop=c,r.labels=u,r.in_generator=p,r.in_async=f,m}function I(){d("{");for(var e=[];!i("punc","}");)i("eof")&&h(),e.push(A());return a(),e}function M(){d("{");for(var e,t=[],n=null,s=null;!i("punc","}");)i("eof")&&h(),i("keyword","case")?(s&&(s.end=l()),n=[],s=new it({start:(e=r.token,a(),e),expression:Ke(!0),body:n}),t.push(s),d(":")):i("keyword","default")?(s&&(s.end=l()),n=[],s=new rt({start:(e=r.token,a(),d(":"),e),body:n}),t.push(s)):(n||h(),n.push(A()));return s&&(s.end=l()),a(),t}function P(e,t){for(var n,s=[];;){var o="var"===t?jt:"const"===t?Wt:"let"===t?zt:null;if(i("punc","{")||i("punc","[")?n=new pt({start:r.token,name:k(void 0,o),value:i("operator","=")?(p("operator","="),Ke(!1,e)):null,end:l()}):"import"==(n=new pt({start:r.token,name:ue(o),value:i("operator","=")?(a(),Ke(!1,e)):e||"const"!==t?null:c("Missing initializer in const declaration"),end:l()})).name.name&&c("Unexpected token: import"),s.push(n),!i("punc",","))break;a()}return s}var L=function(e){return new ct({start:l(),definitions:P(e,"var"),end:l()})},F=function(e){return new ut({start:l(),definitions:P(e,"let"),end:l()})},B=function(e){return new ht({start:l(),definitions:P(e,"const"),end:l()})};function $(){var e,t=r.token;switch(t.type){case"name":e=ee(on);break;case"num":e=new fn({start:t,end:t,value:t.value});break;case"big_int":e=new mn({start:t,end:t,value:t.value});break;case"string":e=new dn({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":e=new gn({start:t,end:t,value:t.value});break;case"atom":switch(t.value){case"false":e=new Sn({start:t,end:t});break;case"true":e=new Cn({start:t,end:t});break;case"null":e=new En({start:t,end:t})}}return a(),e}function U(e,t,n,r){var i=function(e,t){return t?new Nt({start:e.start,left:e,operator:"=",right:t,end:t.end}):e};return e instanceof Ot?i(new Ve({start:e.start,end:e.end,is_array:!1,names:e.properties.map(U)}),r):e instanceof Rt?(e.value=U(e.value),i(e,r)):e instanceof vn?e:e instanceof Ve?(e.names=e.names.map(U),i(e,r)):e instanceof on?i(new Xt({name:e.name,start:e.start,end:e.end}),r):e instanceof Pe?(e.expression=U(e.expression),i(e,r)):e instanceof wt?i(new Ve({start:e.start,end:e.end,is_array:!0,names:e.elements.map(U)}),r):e instanceof Dt?i(U(e.left,0,0,e.right),r):e instanceof Nt?(e.left=U(e.left),e):void c("Invalid function parameter",e.start.line,e.start.col)}var H=function(e,o){if(i("operator","new"))return function(e){var n=r.token;if(p("operator","new"),i("punc","."))return a(),p("name","target"),pe(new Ht({start:n,end:l()}),e);var s,o=H(!1);i("punc","(")?(a(),s=j(")",t.ecma>=2017)):s=[];var c=new _t({start:n,expression:o,args:s,end:l()});return he(c),pe(c,e)}(e);var c,u=r.token,f=i("name","async")&&"["!=(c=s()).value&&"arrow"!=c.type&&$();if(i("punc")){switch(r.token.value){case"(":if(f&&!e)break;var m=function(e,n){var s,o,c,u=[];for(d("(");!i("punc",")");)s&&h(s),i("expand","...")?(s=r.token,n&&(o=r.token),a(),u.push(new Pe({start:l(),expression:Ke(),end:r.token}))):u.push(Ke()),i("punc",")")||(d(","),i("punc",")")&&(t.ecma<2017&&h(),c=l(),n&&(o=c)));return d(")"),e&&i("arrow","=>")?s&&c&&h(c):o&&h(o),u}(o,!f);if(o&&i("arrow","=>"))return x(u,m.map(U),!!f);var g=f?new gt({expression:f,args:m}):1==m.length?m[0]:new Et({expressions:m});if(g.start){const e=u.comments_before.length;if(n.set(u,e),g.start.comments_before.unshift(...u.comments_before),u.comments_before=g.start.comments_before,0==e&&u.comments_before.length>0){var _=u.comments_before[0];_.nlb||(_.nlb=u.nlb,u.nlb=!1)}u.comments_after=g.start.comments_after}g.start=u;var E=l();return g.end&&(E.comments_before=g.end.comments_before,g.end.comments_after.push(...E.comments_after),E.comments_after=g.end.comments_after),g.end=E,g instanceof gt&&he(g),pe(g,e);case"[":return pe(K(),e);case"{":return pe(z(),e)}f||h()}if(o&&i("name")&&ne(s(),"arrow")){var y=new Xt({name:r.token.value,start:u,end:u});return a(),x(u,[y],!!f)}if(i("keyword","function")){a();var T=D(Be,!1,!!f);return T.start=u,T.end=l(),pe(T,e)}if(f)return pe(f,e);if(i("keyword","class")){a();var v=X(Ut);return v.start=u,v.end=l(),pe(v,e)}return i("template_head")?pe(G(),e):ce.has(r.token.type)?pe($(),e):void h()};function G(){var e=[],t=r.token;for(e.push(new je({start:r.token,raw:r.token.raw,value:r.token.value,end:r.token}));!r.token.end;)a(),v(),e.push(Ke(!0)),ne("template_substitution")||h(),e.push(new je({start:r.token,raw:r.token.raw,value:r.token.value,end:r.token}));return a(),new Ge({start:t,segments:e,end:r.token})}function j(e,t,n){for(var s=!0,o=[];!i("punc",e)&&(s?s=!1:d(","),!t||!i("punc",e));)i("punc",",")&&n?o.push(new vn({start:r.token,end:r.token})):i("expand","...")?(a(),o.push(new Pe({start:l(),expression:Ke(),end:r.token}))):o.push(Ke(!1));return a(),o}var K=T((function(){return d("["),new wt({elements:j("]",!t.strict,!0)})})),W=T((e,t)=>D(Fe,e,t)),z=T((function(){var e=r.token,n=!0,s=[];for(d("{");!i("punc","}")&&(n?n=!1:d(","),t.strict||!i("punc","}"));)if("expand"!=(e=r.token).type){var o,c=Z();if(i("punc",":"))null===c?h(l()):(a(),o=Ke(!1));else{var u=q(c,e);if(u){s.push(u);continue}o=new on({start:l(),name:c,end:l()})}i("operator","=")&&(a(),o=new Dt({start:e,left:o,operator:"=",right:Ke(!1),end:l()})),s.push(new Rt({start:e,quote:e.quote,key:c instanceof de?c:""+c,value:o,end:l()}))}else a(),s.push(new Pe({start:e,expression:Ke(!1),end:l()}));return a(),new Ot({properties:s})}));function X(e){var t,n,s,o,c=[];for(r.input.push_directives_stack(),r.input.add_directive("use strict"),"name"==r.token.type&&"extends"!=r.token.value&&(s=ue(e===$t?Zt:en)),e!==$t||s||h(),"extends"==r.token.value&&(a(),o=Ke(!0)),d("{");i("punc",";");)a();for(;!i("punc","}");)for(t=r.token,(n=q(Z(),t,!0))||h(),c.push(n);i("punc",";");)a();return r.input.pop_directives_stack(),a(),new e({start:t,name:s,extends:o,properties:c,end:l()})}function q(e,t,n){var s=function(e,t){return"string"==typeof e||"number"==typeof e?new Yt({start:t,name:""+e,end:l()}):(null===e&&h(),e)},o=!1,c=!1,u=!1,p=t;if(n&&"static"===e&&!i("punc","(")&&(c=!0,p=r.token,e=Z()),"async"!==e||i("punc","(")||i("punc",",")||i("punc","}")||i("operator","=")||(o=!0,p=r.token,e=Z()),null===e&&(u=!0,p=r.token,null===(e=Z())&&h()),i("punc","("))return e=s(e,t),new Lt({start:t,static:c,is_generator:u,async:o,key:e,quote:e instanceof Yt?p.quote:void 0,value:W(u,o),end:l()});const d=r.token;if("get"==e){if(!i("punc")||i("punc","["))return e=s(Z(),t),new Mt({start:t,static:c,key:e,quote:e instanceof Yt?d.quote:void 0,value:W(),end:l()})}else if("set"==e&&(!i("punc")||i("punc","[")))return e=s(Z(),t),new It({start:t,static:c,key:e,quote:e instanceof Yt?d.quote:void 0,value:W(),end:l()});if(n){const n=(e=>"string"==typeof e||"number"==typeof e?new Qt({start:p,end:p,name:""+e}):(null===e&&h(),e))(e),r=n instanceof Qt?p.quote:void 0;if(i("operator","="))return a(),new Bt({start:t,static:c,quote:r,key:n,value:Ke(!1),end:l()});if(i("name")||i("punc",";")||i("punc","}"))return new Bt({start:t,static:c,quote:r,key:n,end:l()})}}function Y(e){function t(e){return new e({name:Z(),start:l(),end:l()})}var n,s,o=e?rn:ln,c=e?nn:an,u=r.token;return e?n=t(o):s=t(c),i("name","as")?(a(),e?s=t(c):n=t(o)):e?s=new c(n):n=new o(s),new dt({start:u,foreign_name:n,name:s,end:l()})}function Q(e,t){var n,i=e?rn:ln,s=e?nn:an,o=r.token,a=l();return t=t||new s({name:"*",start:o,end:a}),n=new i({name:"*",start:o,end:a}),new dt({start:o,foreign_name:n,name:t,end:a})}function J(e){var t;if(i("punc","{")){for(a(),t=[];!i("punc","}");)t.push(Y(e)),i("punc",",")&&a();a()}else if(i("operator","*")){var n;a(),e&&i("name","as")&&(a(),n=ue(e?nn:ln)),t=[Q(e,n)]}return t}function Z(){var e=r.token;switch(e.type){case"punc":if("["===e.value){a();var t=Ke(!1);return d("]"),t}h(e);case"operator":if("*"===e.value)return a(),null;["delete","in","instanceof","new","typeof","void"].includes(e.value)||h(e);case"name":case"string":case"num":case"big_int":case"keyword":case"atom":return a(),e.value;default:h(e)}}function ee(e){var t=r.token.value;return new("this"==t?un:"super"==t?hn:e)({name:String(t),start:r.token,end:r.token})}function re(e){var t=e.name;g()&&"yield"==t&&u(e.start,"Yield cannot be used as identifier inside generators"),r.input.has_directive("use strict")&&("yield"==t&&u(e.start,"Unexpected yield identifier inside strict mode"),e instanceof Gt&&("arguments"==t||"eval"==t)&&u(e.start,"Unexpected "+t+" in strict mode"))}function ue(e,t){if(!i("name"))return t||c("Name expected"),null;var n=ee(e);return re(n),a(),n}function he(e){var t=e.start,r=t.comments_before;const i=n.get(t);for(var s=null!=i?i:r.length;--s>=0;){var o=r[s];if(/[@#]__/.test(o.value)){if(/[@#]__PURE__/.test(o.value)){C(e,kn);break}if(/[@#]__INLINE__/.test(o.value)){C(e,Rn);break}if(/[@#]__NOINLINE__/.test(o.value)){C(e,In);break}}}}var pe=function(e,t){var n,s=e.start;if(i("punc","."))return a(),pe(new Tt({start:s,expression:e,property:(n=r.token,"name"!=n.type&&h(),a(),n.value),end:l()}),t);if(i("punc","[")){a();var o=Ke(!0);return d("]"),pe(new vt({start:s,expression:e,property:o,end:l()}),t)}if(t&&i("punc","(")){a();var c=new gt({start:s,expression:e,args:fe(),end:l()});return he(c),pe(c,!0)}return i("template_head")?pe(new He({start:s,prefix:e,template_string:G(),end:l()}),t):e};function fe(){for(var e=[];!i("punc",")");)i("expand","...")?(a(),e.push(new Pe({start:l(),expression:Ke(!1),end:l()}))):e.push(Ke(!1)),i("punc",")")||(d(","),i("punc",")")&&t.ecma<2017&&h());return a(),e}var Ee=function(e,t){var n=r.token;if("name"==n.type&&"await"==n.value){if(_())return a(),_()||c("Unexpected await expression outside async function",r.prev.line,r.prev.col,r.prev.pos),new Je({start:l(),end:r.token,expression:Ee(!0)});r.input.has_directive("use strict")&&u(r.token,"Unexpected await identifier inside strict mode")}if(i("operator")&&se.has(n.value)){a(),v();var s=ye(bt,n,Ee(e));return s.start=n,s.end=l(),s}for(var o=H(e,t);i("operator")&&oe.has(r.token.value)&&!f(r.token);)o instanceof $e&&h(),(o=ye(St,r.token,o)).start=n,o.end=r.token,a();return o};function ye(e,t,n){var i=t.value;switch(i){case"++":case"--":be(n)||c("Invalid use of "+i+" operator",t.line,t.col,t.pos);break;case"delete":n instanceof on&&r.input.has_directive("use strict")&&c("Calling delete on expression not allowed in strict mode",n.start.line,n.start.col,n.start.pos)}return new e({operator:i,expression:n})}var Te=function(e,t,n){var s=i("operator")?r.token.value:null;"in"==s&&n&&(s=null),"**"==s&&e instanceof bt&&!ne(e.start,"punc","(")&&"--"!==e.operator&&"++"!==e.operator&&h(e.start);var o=null!=s?le[s]:null;if(null!=o&&(o>t||"**"===s&&t===o)){a();var l=Te(Ee(!0),o,n);return Te(new Ct({start:e.start,left:e,operator:s,right:l,end:l.end}),t,n)}return e};function be(e){return e instanceof yt||e instanceof on}function xe(e){if(e instanceof Ot)e=new Ve({start:e.start,names:e.properties.map(xe),is_array:!1,end:e.end});else if(e instanceof wt){for(var t=[],n=0;n<e.elements.length;n++)e.elements[n]instanceof Pe&&(n+1!==e.elements.length&&u(e.elements[n].start,"Spread must the be last element in destructuring array"),e.elements[n].expression=xe(e.elements[n].expression)),t.push(xe(e.elements[n]));e=new Ve({start:e.start,names:t,is_array:!0,end:e.end})}else e instanceof kt?e.value=xe(e.value):e instanceof Dt&&(e=new Nt({start:e.start,left:e.left,operator:"=",right:e.right,end:e.end}));return e}var Ie=function(e){v();var t=r.token;if("name"==t.type&&"yield"==t.value){if(g())return a(),function(){g()||c("Unexpected yield expression outside generator function",r.prev.line,r.prev.col,r.prev.pos);var e=r.token,t=!1,n=!0;return m()||i("punc")&&V.has(r.token.value)?n=!1:i("operator","*")&&(t=!0,a()),new Ze({start:e,is_star:t,expression:n?Ke():null,end:l()})}();r.input.has_directive("use strict")&&u(r.token,"Unexpected yield identifier inside strict mode")}var n=function(e){var t=r.token,n=function(e){return Te(Ee(!0,!0),0,e)}(e);if(i("operator","?")){a();var s=Ke(!1);return d(":"),new xt({start:t,condition:n,consequent:s,alternative:Ke(!1,e),end:l()})}return n}(e),s=r.token.value;if(i("operator")&&ae.has(s)){if(be(n)||(n=xe(n))instanceof Ve)return a(),new Dt({start:t,left:n,operator:s,right:Ie(e),end:l()});c("Invalid assignment")}return n},Ke=function(e,t){for(var n=r.token,o=[];o.push(Ie(t)),e&&i("punc",",");)a(),e=!0;return 1==o.length?o[0]:new Et({start:n,expressions:o,end:s()})};function We(e){++r.in_loop;var t=e();return--r.in_loop,t}return t.expression?Ke(!0):function(){var e=r.token,n=[];for(r.input.push_directives_stack(),t.module&&r.input.add_directive("use strict");!i("eof");)n.push(A());r.input.pop_directives_stack();var s=l(),o=t.toplevel;return o?(o.body=o.body.concat(n),o.end=s):o=new Me({start:e,body:n,end:s}),o}()}function he(e,t,n,r=de){var i=t=t?t.split(/\s+/):[];r&&r.PROPS&&(t=t.concat(r.PROPS));for(var s="return function AST_"+e+"(props){ if (props) { ",o=t.length;--o>=0;)s+="this."+t[o]+" = props."+t[o]+";";const a=r&&Object.create(r.prototype);(a&&a.initialize||n&&n.initialize)&&(s+="this.initialize();"),s+="}",s+="this.flags = 0;",s+="}";var l=new Function(s)();if(a&&(l.prototype=a,l.BASE=r),r&&r.SUBCLASSES.push(l),l.prototype.CTOR=l,l.prototype.constructor=l,l.PROPS=t||null,l.SELF_PROPS=i,l.SUBCLASSES=[],e&&(l.prototype.TYPE=l.TYPE=e),n)for(o in n)T(n,o)&&("$"===o[0]?l[o.substr(1)]=n[o]:l.prototype[o]=n[o]);return l.DEFMETHOD=function(e,t){this.prototype[e]=t},l}var pe=he("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw quote end",{},null),de=he("Node","start end",{_clone:function(e){if(e){var t=this.clone();return t.transform(new On((function(e){if(e!==t)return e.clone(!0)})))}return new this.CTOR(this)},clone:function(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(e){return e._visit(this)},walk:function(e){return this._walk(e)},_children_backwards:()=>{}},null);de.warn_function=null,de.warn=function(e,t){de.warn_function&&de.warn_function(m(e,t))};var fe=he("Statement",null,{$documentation:"Base class of all statements"}),me=he("Debugger",null,{$documentation:"Represents a debugger statement"},fe),ge=he("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},fe),_e=he("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(e){return e._visit(this,(function(){this.body._walk(e)}))},_children_backwards(e){e(this.body)}},fe);function Ee(e,t){const n=e.body;for(var r=0,i=n.length;r<i;r++)n[r]._walk(t)}function ye(e){var t=this._clone(e);return this.block_scope&&(t.block_scope=this.block_scope.clone()),t}var Te=he("Block","body block_scope",{$documentation:"A body of statements (usually braced)",$propdoc:{body:"[AST_Statement*] an array of statements",block_scope:"[AST_Scope] the block scope"},_walk:function(e){return e._visit(this,(function(){Ee(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t])},clone:ye},fe),ve=he("BlockStatement",null,{$documentation:"A block statement"},Te),Ae=he("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},fe),be=he("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},fe),Se=he("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(e){return e._visit(this,(function(){this.label._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.label)},clone:function(e){var t=this._clone(e);if(e){var n=t.label,r=this.label;t.walk(new wn((function(e){e instanceof qe&&e.label&&e.label.thedef===r&&(e.label.thedef=n,n.references.push(e))})))}return t}},be),Ce=he("IterationStatement","block_scope",{$documentation:"Internal class. All loops inherit from it.",$propdoc:{block_scope:"[AST_Scope] the block scope for this iteration statement."},clone:ye},be),xe=he("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition. Should not be instanceof AST_Statement"}},Ce),De=he("Do",null,{$documentation:"A `do` statement",_walk:function(e){return e._visit(this,(function(){this.body._walk(e),this.condition._walk(e)}))},_children_backwards(e){e(this.condition),e(this.body)}},xe),Ne=he("While",null,{$documentation:"A `while` statement",_walk:function(e){return e._visit(this,(function(){this.condition._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.condition)}},xe),we=he("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(e){return e._visit(this,(function(){this.init&&this.init._walk(e),this.condition&&this.condition._walk(e),this.step&&this.step._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),this.step&&e(this.step),this.condition&&e(this.condition),this.init&&e(this.init)}},Ce),Oe=he("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk:function(e){return e._visit(this,(function(){this.init._walk(e),this.object._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),this.object&&e(this.object),this.init&&e(this.init)}},Ce),ke=he("ForOf","await",{$documentation:"A `for ... of` statement"},Oe),Re=he("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(e){return e._visit(this,(function(){this.expression._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.expression)}},be),Ie=he("Scope","variables functions uses_with uses_eval parent_scope enclosed cname _var_name_cache",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Map/S] a map of name -> SymbolDef for all variables/functions defined in this scope",functions:"[Map/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope:function(){for(var e=this;e.is_block_scope();)e=e.parent_scope;return e},clone:function(e){var t=this._clone(e);return this.variables&&(t.variables=new Map(this.variables)),this.functions&&(t.functions=new Map(this.functions)),this.enclosed&&(t.enclosed=this.enclosed.slice()),this._block_scope&&(t._block_scope=this._block_scope),t},pinned:function(){return this.uses_eval||this.uses_with}},Te),Me=he("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Map/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var t=this.body,n="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return(n=ue(n)).transform(new On((function(e){if(e instanceof ge&&"$ORIG"==e.value)return p.splice(t)})))},wrap_enclose:function(e){"string"!=typeof e&&(e="");var t=e.indexOf(":");t<0&&(t=e.length);var n=this.body;return ue(["(function(",e.slice(0,t),'){"$ORIG"})(',e.slice(t+1),")"].join("")).transform(new On((function(e){if(e instanceof ge&&"$ORIG"==e.value)return p.splice(n)})))}},Ie),Pe=he("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk:function(e){return e._visit(this,(function(){this.expression.walk(e)}))},_children_backwards(e){e(this.expression)}}),Le=he("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names:function(){for(var e=[],t=0;t<this.argnames.length;t++)this.argnames[t]instanceof Ve?e.push(...this.argnames[t].all_symbols()):e.push(this.argnames[t]);return e},_walk:function(e){return e._visit(this,(function(){this.name&&this.name._walk(e);for(var t=this.argnames,n=0,r=t.length;n<r;n++)t[n]._walk(e);Ee(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);for(t=this.argnames.length;t--;)e(this.argnames[t]);this.name&&e(this.name)}},Ie),Fe=he("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},Le),Be=he("Function",null,{$documentation:"A function expression"},Le),$e=he("Arrow",null,{$documentation:"An ES6 Arrow function ((a) => b)"},Le),Ue=he("Defun",null,{$documentation:"A function definition"},Le),Ve=he("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk:function(e){return e._visit(this,(function(){this.names.forEach((function(t){t._walk(e)}))}))},_children_backwards(e){let t=this.names.length;for(;t--;)e(this.names[t])},all_symbols:function(){var e=[];return this.walk(new wn((function(t){t instanceof Vt&&e.push(t)}))),e}}),He=he("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_SymbolRef|AST_PropAccess] The prefix, which can be a symbol such as `foo` or a dotted expression such as `String.raw`."},_walk:function(e){return e._visit(this,(function(){this.prefix._walk(e),this.template_string._walk(e)}))},_children_backwards(e){e(this.template_string),e(this.prefix)}}),Ge=he("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk:function(e){return e._visit(this,(function(){this.segments.forEach((function(t){t._walk(e)}))}))},_children_backwards(e){let t=this.segments.length;for(;t--;)e(this.segments[t])}}),je=he("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw content of the segment"}}),Ke=he("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},fe),We=he("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})},_children_backwards(e){this.value&&e(this.value)}},Ke),ze=he("Return",null,{$documentation:"A `return` statement"},We),Xe=he("Throw",null,{$documentation:"A `throw` statement"},We),qe=he("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(e){return e._visit(this,this.label&&function(){this.label._walk(e)})},_children_backwards(e){this.label&&e(this.label)}},Ke),Ye=he("Break",null,{$documentation:"A `break` statement"},qe),Qe=he("Continue",null,{$documentation:"A `continue` statement"},qe),Je=he("Await","expression",{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk:function(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),Ze=he("Yield","expression is_star",{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk:function(e){return e._visit(this,this.expression&&function(){this.expression._walk(e)})},_children_backwards(e){this.expression&&e(this.expression)}}),et=he("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(e){return e._visit(this,(function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)}))},_children_backwards(e){this.alternative&&e(this.alternative),e(this.body),e(this.condition)}},be),tt=he("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,(function(){this.expression._walk(e),Ee(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);e(this.expression)}},Te),nt=he("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},Te),rt=he("Default",null,{$documentation:"A `default` switch branch"},nt),it=he("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,(function(){this.expression._walk(e),Ee(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);e(this.expression)}},nt),st=he("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(e){return e._visit(this,(function(){Ee(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)}))},_children_backwards(e){this.bfinally&&e(this.bfinally),this.bcatch&&e(this.bcatch);let t=this.body.length;for(;t--;)e(this.body[t])}},Te),ot=he("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk:function(e){return e._visit(this,(function(){this.argname&&this.argname._walk(e),Ee(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);this.argname&&e(this.argname)}},Te),at=he("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},Te),lt=he("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(e){return e._visit(this,(function(){for(var t=this.definitions,n=0,r=t.length;n<r;n++)t[n]._walk(e)}))},_children_backwards(e){let t=this.definitions.length;for(;t--;)e(this.definitions[t])}},fe),ct=he("Var",null,{$documentation:"A `var` statement"},lt),ut=he("Let",null,{$documentation:"A `let` statement"},lt),ht=he("Const",null,{$documentation:"A `const` statement"},lt),pt=he("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_Destructuring|AST_SymbolConst|AST_SymbolLet|AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(e){return e._visit(this,(function(){this.name._walk(e),this.value&&this.value._walk(e)}))},_children_backwards(e){this.value&&e(this.value),e(this.name)}}),dt=he("NameMapping","foreign_name name",{$documentation:"The part of the export/import statement that declare names from a module.",$propdoc:{foreign_name:"[AST_SymbolExportForeign|AST_SymbolImportForeign] The name being exported/imported (as specified in the module)",name:"[AST_SymbolExport|AST_SymbolImport] The name as it is visible to this module."},_walk:function(e){return e._visit(this,(function(){this.foreign_name._walk(e),this.name._walk(e)}))},_children_backwards(e){e(this.name),e(this.foreign_name)}}),ft=he("Import","imported_name imported_names module_name",{$documentation:"An `import` statement",$propdoc:{imported_name:"[AST_SymbolImport] The name of the variable holding the module's default export.",imported_names:"[AST_NameMapping*] The names of non-default imported variables",module_name:"[AST_String] String literal describing where this module came from"},_walk:function(e){return e._visit(this,(function(){this.imported_name&&this.imported_name._walk(e),this.imported_names&&this.imported_names.forEach((function(t){t._walk(e)})),this.module_name._walk(e)}))},_children_backwards(e){if(e(this.module_name),this.imported_names){let t=this.imported_names.length;for(;t--;)e(this.imported_names[t])}this.imported_name&&e(this.imported_name)}}),mt=he("Export","exported_definition exported_value is_default exported_names module_name",{$documentation:"An `export` statement",$propdoc:{exported_definition:"[AST_Defun|AST_Definitions|AST_DefClass?] An exported definition",exported_value:"[AST_Node?] An exported value",exported_names:"[AST_NameMapping*?] List of exported names",module_name:"[AST_String?] Name of the file to load exports from",is_default:"[Boolean] Whether this is the default exported value of this module"},_walk:function(e){return e._visit(this,(function(){this.exported_definition&&this.exported_definition._walk(e),this.exported_value&&this.exported_value._walk(e),this.exported_names&&this.exported_names.forEach((function(t){t._walk(e)})),this.module_name&&this.module_name._walk(e)}))},_children_backwards(e){if(this.module_name&&e(this.module_name),this.exported_names){let t=this.exported_names.length;for(;t--;)e(this.exported_names[t])}this.exported_value&&e(this.exported_value),this.exported_definition&&e(this.exported_definition)}},fe),gt=he("Call","expression args _annotations",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments",_annotations:"[number] bitfield containing information about the call"},initialize(){null==this._annotations&&(this._annotations=0)},_walk(e){return e._visit(this,(function(){for(var t=this.args,n=0,r=t.length;n<r;n++)t[n]._walk(e);this.expression._walk(e)}))},_children_backwards(e){let t=this.args.length;for(;t--;)e(this.args[t]);e(this.expression)}}),_t=he("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},gt),Et=he("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk:function(e){return e._visit(this,(function(){this.expressions.forEach((function(t){t._walk(e)}))}))},_children_backwards(e){let t=this.expressions.length;for(;t--;)e(this.expressions[t])}}),yt=he("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),Tt=he("Dot","quote",{$documentation:"A dotted property access expression",$propdoc:{quote:"[string] the original quote character when transformed from AST_Sub"},_walk:function(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}},yt),vt=he("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(e){return e._visit(this,(function(){this.expression._walk(e),this.property._walk(e)}))},_children_backwards(e){e(this.property),e(this.expression)}},yt),At=he("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),bt=he("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},At),St=he("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},At),Ct=he("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(e){return e._visit(this,(function(){this.left._walk(e),this.right._walk(e)}))},_children_backwards(e){e(this.right),e(this.left)}}),xt=he("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(e){return e._visit(this,(function(){this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)}))},_children_backwards(e){e(this.alternative),e(this.consequent),e(this.condition)}}),Dt=he("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},Ct),Nt=he("DefaultAssign",null,{$documentation:"A default assignment expression like in `(a = 3) => a`"},Ct),wt=he("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,(function(){for(var t=this.elements,n=0,r=t.length;n<r;n++)t[n]._walk(e)}))},_children_backwards(e){let t=this.elements.length;for(;t--;)e(this.elements[t])}}),Ot=he("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(e){return e._visit(this,(function(){for(var t=this.properties,n=0,r=t.length;n<r;n++)t[n]._walk(e)}))},_children_backwards(e){let t=this.properties.length;for(;t--;)e(this.properties[t])}}),kt=he("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_Node] property name. For ObjectKeyVal this is a string. For getters, setters and computed property this is an AST_Node.",value:"[AST_Node] property value. For getters and setters this is an AST_Accessor."},_walk:function(e){return e._visit(this,(function(){this.key instanceof de&&this.key._walk(e),this.value._walk(e)}))},_children_backwards(e){e(this.value),this.key instanceof de&&e(this.key)}}),Rt=he("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"},computed_key(){return this.key instanceof de}},kt),It=he("ObjectSetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static setter (classes only)"},$documentation:"An object setter property",computed_key(){return!(this.key instanceof Yt)}},kt),Mt=he("ObjectGetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static getter (classes only)"},$documentation:"An object getter property",computed_key(){return!(this.key instanceof Yt)}},kt),Lt=he("ConciseMethod","quote static is_generator async",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] is this method static (classes only)",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},$documentation:"An ES6 concise method inside an object or class",computed_key(){return!(this.key instanceof Yt)}},kt),Ft=he("Class","name extends properties",{$propdoc:{name:"[AST_SymbolClass|AST_SymbolDefClass?] optional class name.",extends:"[AST_Node]? optional parent class",properties:"[AST_ObjectProperty*] array of properties"},$documentation:"An ES6 class",_walk:function(e){return e._visit(this,(function(){this.name&&this.name._walk(e),this.extends&&this.extends._walk(e),this.properties.forEach(t=>t._walk(e))}))},_children_backwards(e){let t=this.properties.length;for(;t--;)e(this.properties[t]);this.extends&&e(this.extends),this.name&&e(this.name)}},Ie),Bt=he("ClassProperty","static quote",{$documentation:"A class property",$propdoc:{static:"[boolean] whether this is a static key",quote:"[string] which quote is being used"},_walk:function(e){return e._visit(this,(function(){this.key instanceof de&&this.key._walk(e),this.value instanceof de&&this.value._walk(e)}))},_children_backwards(e){this.value instanceof de&&e(this.value),this.key instanceof de&&e(this.key)},computed_key(){return!(this.key instanceof Qt)}},kt),$t=he("DefClass",null,{$documentation:"A class definition"},Ft),Ut=he("ClassExpression",null,{$documentation:"A class expression."},Ft),Vt=he("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),Ht=he("NewTarget",null,{$documentation:"A reference to new.target"}),Gt=he("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},Vt),jt=he("SymbolVar",null,{$documentation:"Symbol defining a variable"},Gt),Kt=he("SymbolBlockDeclaration",null,{$documentation:"Base class for block-scoped declaration symbols"},Gt),Wt=he("SymbolConst",null,{$documentation:"A constant declaration"},Kt),zt=he("SymbolLet",null,{$documentation:"A block-scoped `let` declaration"},Kt),Xt=he("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},jt),qt=he("SymbolDefun",null,{$documentation:"Symbol defining a function"},Gt),Yt=he("SymbolMethod",null,{$documentation:"Symbol in an object defining a method"},Vt),Qt=he("SymbolClassProperty",null,{$documentation:"Symbol for a class property"},Vt),Jt=he("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},Gt),Zt=he("SymbolDefClass",null,{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},Kt),en=he("SymbolClass",null,{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},Gt),tn=he("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},Kt),nn=he("SymbolImport",null,{$documentation:"Symbol referring to an imported name"},Kt),rn=he("SymbolImportForeign",null,{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},Vt),sn=he("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},Vt),on=he("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},Vt),an=he("SymbolExport",null,{$documentation:"Symbol referring to a name to export"},on),ln=he("SymbolExportForeign",null,{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},Vt),cn=he("LabelRef",null,{$documentation:"Reference to a label symbol"},Vt),un=he("This",null,{$documentation:"The `this` symbol"},Vt),hn=he("Super",null,{$documentation:"The `super` symbol"},un),pn=he("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),dn=he("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},pn),fn=he("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},pn),mn=he("BigInt","value",{$documentation:"A big int literal",$propdoc:{value:"[string] big int value"}},pn),gn=he("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},pn),_n=he("Atom",null,{$documentation:"Base class for atoms"},pn),En=he("Null",null,{$documentation:"The `null` atom",value:null},_n),yn=he("NaN",null,{$documentation:"The impossible value",value:NaN},_n),Tn=he("Undefined",null,{$documentation:"The `undefined` value",value:void 0},_n),vn=he("Hole",null,{$documentation:"A hole in an array",value:void 0},_n),An=he("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},_n),bn=he("Boolean",null,{$documentation:"Base class for booleans"},_n),Sn=he("False",null,{$documentation:"The `false` atom",value:!1},bn),Cn=he("True",null,{$documentation:"The `true` atom",value:!0},bn);function xn(e,t,n=[e]){const r=n.push.bind(n);for(;n.length;){const e=n.pop(),i=t(e,n);if(i){if(i===Nn)return!0}else e._children_backwards(r)}return!1}function Dn(e,t,n){const r=[e],i=r.push.bind(r),s=n?n.slice():[],o=[];let a;const l={parent:(e=0)=>-1===e?a:n&&e>=s.length?(e-=s.length,n[n.length-(e+1)]):s[s.length-(1+e)]};for(;r.length;){for(a=r.pop();o.length&&r.length==o[o.length-1];)s.pop(),o.pop();const e=t(a,l);if(e){if(e===Nn)return!0;continue}const n=r.length;a._children_backwards(i),r.length>n&&(s.push(a),o.push(n-1))}return!1}const Nn=Symbol("abort walk");class wn{constructor(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}_visit(e,t){this.push(e);var n=this.visit(e,t?function(){t.call(e)}:a);return!n&&t&&t.call(e),this.pop(),n}parent(e){return this.stack[this.stack.length-2-(e||0)]}push(e){e instanceof Le?this.directives=Object.create(this.directives):e instanceof ge&&!this.directives[e.value]?this.directives[e.value]=e:e instanceof Ft&&(this.directives=Object.create(this.directives),this.directives["use strict"]||(this.directives["use strict"]=e)),this.stack.push(e)}pop(){var e=this.stack.pop();(e instanceof Le||e instanceof Ft)&&(this.directives=Object.getPrototypeOf(this.directives))}self(){return this.stack[this.stack.length-1]}find_parent(e){for(var t=this.stack,n=t.length;--n>=0;){var r=t[n];if(r instanceof e)return r}}has_directive(e){var t=this.directives[e];if(t)return t;var n=this.stack[this.stack.length-1];if(n instanceof Ie&&n.body)for(var r=0;r<n.body.length;++r){var i=n.body[r];if(!(i instanceof ge))break;if(i.value==e)return i}}loopcontrol_target(e){var t=this.stack;if(e.label){for(var n=t.length;--n>=0;)if((r=t[n])instanceof Se&&r.label.name==e.label.name)return r.body}else for(n=t.length;--n>=0;){var r;if((r=t[n])instanceof Ce||e instanceof Ye&&r instanceof tt)return r}}}class On extends wn{constructor(e,t){super(),this.before=e,this.after=t}}const kn=1,Rn=2,In=4;var Mn=Object.freeze({__proto__:null,AST_Accessor:Fe,AST_Array:wt,AST_Arrow:$e,AST_Assign:Dt,AST_Atom:_n,AST_Await:Je,AST_BigInt:mn,AST_Binary:Ct,AST_Block:Te,AST_BlockStatement:ve,AST_Boolean:bn,AST_Break:Ye,AST_Call:gt,AST_Case:it,AST_Catch:ot,AST_Class:Ft,AST_ClassExpression:Ut,AST_ClassProperty:Bt,AST_ConciseMethod:Lt,AST_Conditional:xt,AST_Const:ht,AST_Constant:pn,AST_Continue:Qe,AST_Debugger:me,AST_Default:rt,AST_DefaultAssign:Nt,AST_DefClass:$t,AST_Definitions:lt,AST_Defun:Ue,AST_Destructuring:Ve,AST_Directive:ge,AST_Do:De,AST_Dot:Tt,AST_DWLoop:xe,AST_EmptyStatement:Ae,AST_Exit:We,AST_Expansion:Pe,AST_Export:mt,AST_False:Sn,AST_Finally:at,AST_For:we,AST_ForIn:Oe,AST_ForOf:ke,AST_Function:Be,AST_Hole:vn,AST_If:et,AST_Import:ft,AST_Infinity:An,AST_IterationStatement:Ce,AST_Jump:Ke,AST_Label:sn,AST_LabeledStatement:Se,AST_LabelRef:cn,AST_Lambda:Le,AST_Let:ut,AST_LoopControl:qe,AST_NameMapping:dt,AST_NaN:yn,AST_New:_t,AST_NewTarget:Ht,AST_Node:de,AST_Null:En,AST_Number:fn,AST_Object:Ot,AST_ObjectGetter:Mt,AST_ObjectKeyVal:Rt,AST_ObjectProperty:kt,AST_ObjectSetter:It,AST_PrefixedTemplateString:He,AST_PropAccess:yt,AST_RegExp:gn,AST_Return:ze,AST_Scope:Ie,AST_Sequence:Et,AST_SimpleStatement:_e,AST_Statement:fe,AST_StatementWithBody:be,AST_String:dn,AST_Sub:vt,AST_Super:hn,AST_Switch:tt,AST_SwitchBranch:nt,AST_Symbol:Vt,AST_SymbolBlockDeclaration:Kt,AST_SymbolCatch:tn,AST_SymbolClass:en,AST_SymbolClassProperty:Qt,AST_SymbolConst:Wt,AST_SymbolDeclaration:Gt,AST_SymbolDefClass:Zt,AST_SymbolDefun:qt,AST_SymbolExport:an,AST_SymbolExportForeign:ln,AST_SymbolFunarg:Xt,AST_SymbolImport:nn,AST_SymbolImportForeign:rn,AST_SymbolLambda:Jt,AST_SymbolLet:zt,AST_SymbolMethod:Yt,AST_SymbolRef:on,AST_SymbolVar:jt,AST_TemplateSegment:je,AST_TemplateString:Ge,AST_This:un,AST_Throw:Xe,AST_Token:pe,AST_Toplevel:Me,AST_True:Cn,AST_Try:st,AST_Unary:At,AST_UnaryPostfix:St,AST_UnaryPrefix:bt,AST_Undefined:Tn,AST_Var:ct,AST_VarDef:pt,AST_While:Ne,AST_With:Re,AST_Yield:Ze,TreeTransformer:On,TreeWalker:wn,walk:xn,walk_abort:Nn,walk_body:Ee,walk_parent:Dn,_INLINE:Rn,_NOINLINE:In,_PURE:kn});function Pn(e,t){e.DEFMETHOD("transform",(function(e,n){let r=void 0;if(e.push(this),e.before&&(r=e.before(this,t,n)),void 0===r&&(r=this,t(r,e),e.after)){const t=e.after(r,n);void 0!==t&&(r=t)}return e.pop(),r}))}function Ln(e,t){return p(e,(function(e){return e.transform(t,!0)}))}function Fn(e){let t=e.parent(-1);for(let n,r=0;n=e.parent(r);r++){if(n instanceof fe&&n.body===t)return!0;if(!(n instanceof Et&&n.expressions[0]===t||"Call"===n.TYPE&&n.expression===t||n instanceof He&&n.prefix===t||n instanceof Tt&&n.expression===t||n instanceof vt&&n.expression===t||n instanceof xt&&n.condition===t||n instanceof Ct&&n.left===t||n instanceof St&&n.expression===t))return!1;t=n}}Pn(de,a),Pn(Se,(function(e,t){e.label=e.label.transform(t),e.body=e.body.transform(t)})),Pn(_e,(function(e,t){e.body=e.body.transform(t)})),Pn(Te,(function(e,t){e.body=Ln(e.body,t)})),Pn(De,(function(e,t){e.body=e.body.transform(t),e.condition=e.condition.transform(t)})),Pn(Ne,(function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t)})),Pn(we,(function(e,t){e.init&&(e.init=e.init.transform(t)),e.condition&&(e.condition=e.condition.transform(t)),e.step&&(e.step=e.step.transform(t)),e.body=e.body.transform(t)})),Pn(Oe,(function(e,t){e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)})),Pn(Re,(function(e,t){e.expression=e.expression.transform(t),e.body=e.body.transform(t)})),Pn(We,(function(e,t){e.value&&(e.value=e.value.transform(t))})),Pn(qe,(function(e,t){e.label&&(e.label=e.label.transform(t))})),Pn(et,(function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))})),Pn(tt,(function(e,t){e.expression=e.expression.transform(t),e.body=Ln(e.body,t)})),Pn(it,(function(e,t){e.expression=e.expression.transform(t),e.body=Ln(e.body,t)})),Pn(st,(function(e,t){e.body=Ln(e.body,t),e.bcatch&&(e.bcatch=e.bcatch.transform(t)),e.bfinally&&(e.bfinally=e.bfinally.transform(t))})),Pn(ot,(function(e,t){e.argname&&(e.argname=e.argname.transform(t)),e.body=Ln(e.body,t)})),Pn(lt,(function(e,t){e.definitions=Ln(e.definitions,t)})),Pn(pt,(function(e,t){e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))})),Pn(Ve,(function(e,t){e.names=Ln(e.names,t)})),Pn(Le,(function(e,t){e.name&&(e.name=e.name.transform(t)),e.argnames=Ln(e.argnames,t),e.body instanceof de?e.body=e.body.transform(t):e.body=Ln(e.body,t)})),Pn(gt,(function(e,t){e.expression=e.expression.transform(t),e.args=Ln(e.args,t)})),Pn(Et,(function(e,t){const n=Ln(e.expressions,t);e.expressions=n.length?n:[new fn({value:0})]})),Pn(Tt,(function(e,t){e.expression=e.expression.transform(t)})),Pn(vt,(function(e,t){e.expression=e.expression.transform(t),e.property=e.property.transform(t)})),Pn(Ze,(function(e,t){e.expression&&(e.expression=e.expression.transform(t))})),Pn(Je,(function(e,t){e.expression=e.expression.transform(t)})),Pn(At,(function(e,t){e.expression=e.expression.transform(t)})),Pn(Ct,(function(e,t){e.left=e.left.transform(t),e.right=e.right.transform(t)})),Pn(xt,(function(e,t){e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)})),Pn(wt,(function(e,t){e.elements=Ln(e.elements,t)})),Pn(Ot,(function(e,t){e.properties=Ln(e.properties,t)})),Pn(kt,(function(e,t){e.key instanceof de&&(e.key=e.key.transform(t)),e.value&&(e.value=e.value.transform(t))})),Pn(Ft,(function(e,t){e.name&&(e.name=e.name.transform(t)),e.extends&&(e.extends=e.extends.transform(t)),e.properties=Ln(e.properties,t)})),Pn(Pe,(function(e,t){e.expression=e.expression.transform(t)})),Pn(dt,(function(e,t){e.foreign_name=e.foreign_name.transform(t),e.name=e.name.transform(t)})),Pn(ft,(function(e,t){e.imported_name&&(e.imported_name=e.imported_name.transform(t)),e.imported_names&&Ln(e.imported_names,t),e.module_name=e.module_name.transform(t)})),Pn(mt,(function(e,t){e.exported_definition&&(e.exported_definition=e.exported_definition.transform(t)),e.exported_value&&(e.exported_value=e.exported_value.transform(t)),e.exported_names&&Ln(e.exported_names,t),e.module_name&&(e.module_name=e.module_name.transform(t))})),Pn(Ge,(function(e,t){e.segments=Ln(e.segments,t)})),Pn(He,(function(e,t){e.prefix=e.prefix.transform(t),e.template_string=e.template_string.transform(t)}));const Bn=/^$|[;{][\s\n]*$/,$n=/[@#]__(PURE|INLINE|NOINLINE)__/g;function Un(e){return("comment2"===e.type||"comment1"===e.type)&&/@preserve|@lic|@cc_on|^\**!/i.test(e.value)}function Vn(e){var t=!e;void 0===(e=o(e,{ascii_only:!1,beautify:!1,braces:!1,comments:"some",ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_numbers:!1,keep_quoted_props:!1,max_line_len:!1,preamble:null,preserve_annotations:!1,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1,wrap_func_args:!0},!0)).shorthand&&(e.shorthand=e.ecma>5);var n=l;if(e.comments){let t=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var r=e.comments.lastIndexOf("/");t=new RegExp(e.comments.substr(1,r-1),e.comments.substr(r+1))}n=t instanceof RegExp?function(e){return"comment5"!=e.type&&t.test(e.value)}:"function"==typeof t?function(e){return"comment5"!=e.type&&t(this,e)}:"some"===t?Un:c}var i=0,s=0,u=1,h=0,p="";let d=new Set;var f=e.ascii_only?function(t,n){return e.ecma>=2015&&(t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,(function(e){return"\\u{"+function(e,t){return W(e.charCodeAt(0))?65536+(e.charCodeAt(0)-55296<<10)+e.charCodeAt(1)-56320:e.charCodeAt(0)}(e).toString(16)+"}"}))),t.replace(/[\u0000-\u001f\u007f-\uffff]/g,(function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){for(;t.length<2;)t="0"+t;return"\\x"+t}for(;t.length<4;)t="0"+t;return"\\u"+t}))}:function(e){return e.replace(/[\ud800-\udbff][\udc00-\udfff]|([\ud800-\udbff]|[\udc00-\udfff])/g,(function(e,t){return t?"\\u"+t.charCodeAt(0).toString(16):e}))};function m(t,n){var r=function(t,n){var r=0,i=0;function s(){return"'"+t.replace(/\x27/g,"\\'")+"'"}function o(){return'"'+t.replace(/\x22/g,'\\"')+'"'}if(t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,(function(n,s){switch(n){case'"':return++r,'"';case"'":return++i,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(K(t,s+1))?"\\x00":"\\0"}return n})),t=f(t),"`"===n)return"`"+t.replace(/`/g,"\\`")+"`";switch(e.quote_style){case 1:return s();case 2:return o();case 3:return"'"==n?s():o();default:return r>i?s():o()}}(t,n);return e.inline_script&&(r=(r=(r=r.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),r}var g,_,y=!1,T=!1,v=!1,A=0,b=!1,S=!1,C=-1,x="",D=e.source_map&&[],N=D?function(){D.forEach((function(t){try{e.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,t.name||"name"!=t.token.type?t.name:t.token.value)}catch(e){null!=t.token.file&&de.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:t.token.file,line:t.token.line,col:t.token.col,cline:t.line,ccol:t.col,name:t.name||""})}})),D=[]}:a,w=e.max_line_len?function(){if(s>e.max_line_len){if(A){var t=p.slice(0,A),n=p.slice(A);if(D){var r=n.length-s;D.forEach((function(e){e.line++,e.col+=r}))}p=t+"\n"+n,u++,h++,s=n.length}s>e.max_line_len&&de.warn("Output exceeds {max_line_len} characters",e)}A&&(A=0,N())}:a,O=E("( [ + * / - , . `");function k(t){var n=K(t=String(t),0);b&&n&&(b=!1,"\n"!==n&&(k("\n"),I())),S&&n&&(S=!1,/[\s;})]/.test(n)||R()),C=-1;var r=x.charAt(x.length-1);v&&(v=!1,(":"!==r||"}"!==n)&&(n&&";}".includes(n)||";"===r)||(e.semicolons||O.has(n)?(p+=";",s++,h++):(w(),s>0&&(p+="\n",h++,u++,s=0),/^\s+$/.test(t)&&(v=!0)),e.beautify||(T=!1))),T&&((Y(r)&&(Y(n)||"\\"==n)||"/"==n&&n==r||("+"==n||"-"==n)&&n==x)&&(p+=" ",s++,h++),T=!1),g&&(D.push({token:g,name:_,line:u,col:s}),g=!1,A||N()),p+=t,y="("==t[t.length-1],h+=t.length;var i=t.split(/\r?\n/),o=i.length-1;u+=o,s+=i[0].length,o>0&&(w(),s=i[o].length),x=t}var R=e.beautify?function(){k(" ")}:function(){T=!0},I=e.beautify?function(t){var n;e.beautify&&k((n=t?.5:0," ".repeat(e.indent_start+i-n*e.indent_level)))}:a,M=e.beautify?function(e,t){!0===e&&(e=B());var n=i;i=e;var r=t();return i=n,r}:function(e,t){return t()},P=e.beautify?function(){if(C<0)return k("\n");"\n"!=p[C]&&(p=p.slice(0,C)+"\n"+p.slice(C),h++,u++),C++}:e.max_line_len?function(){w(),A=p.length}:a,L=e.beautify?function(){k(";")}:function(){v=!0};function F(){v=!1,k(";")}function B(){return i+e.indent_level}function $(){return A&&w(),p}function U(){let e=p.length-1;for(;e>=0;){const t=p.charCodeAt(e);if(10===t)return!0;if(32!==t)return!1;e--}return!0}function V(t){return e.preserve_annotations||(t=t.replace($n," ")),/^\s*$/.test(t)?"":t.replace(/(<\s*\/\s*)(script)/i,"<\\/$2")}var H=[];return{get:$,toString:$,indent:I,in_directive:!1,use_asm:null,active_scope:null,indentation:function(){return i},current_width:function(){return s-i},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return y},newline:P,print:k,star:function(){k("*")},space:R,comma:function(){k(","),R()},colon:function(){k(":"),R()},last:function(){return x},semicolon:L,force_semicolon:F,to_utf8:f,print_name:function(e){k(function(e){return e=e.toString(),f(e,!0)}(e))},print_string:function(e,t,n){var r=m(e,t);!0!==n||r.includes("\\")||(Bn.test(p)||F(),F()),k(r)},print_template_string_chars:function(e){var t=m(e,"`").replace(/\${/g,"\\${");return k(t.substr(1,t.length-2))},encode_string:m,next_indent:B,with_indent:M,with_block:function(e){var t;return k("{"),P(),M(B(),(function(){t=e()})),I(),k("}"),t},with_parens:function(e){k("(");var t=e();return k(")"),t},with_square:function(e){k("[");var t=e();return k("]"),t},add_mapping:D?function(e,t){g=e,_=t}:a,option:function(t){return e[t]},printed_comments:d,prepend_comments:t?a:function(t){var r=t.start;if(!r)return;var i=this.printed_comments;const s=t instanceof We&&t.value;if(r.comments_before&&i.has(r.comments_before)){if(!s)return;r.comments_before=[]}var o=r.comments_before;if(o||(o=r.comments_before=[]),i.add(o),s){var a=new wn((function(e){var t=a.parent();if(!(t instanceof We||t instanceof Ct&&t.left===e||"Call"==t.TYPE&&t.expression===e||t instanceof xt&&t.condition===e||t instanceof Tt&&t.expression===e||t instanceof Et&&t.expressions[0]===e||t instanceof vt&&t.expression===e||t instanceof St))return!0;if(e.start){var n=e.start.comments_before;n&&!i.has(n)&&(i.add(n),o=o.concat(n))}}));a.push(t),t.value.walk(a)}if(0==h){o.length>0&&e.shebang&&"comment5"===o[0].type&&!i.has(o[0])&&(k("#!"+o.shift().value+"\n"),I());var l=e.preamble;l&&k(l.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(o=o.filter(n,t).filter(e=>!i.has(e))).length){var c=U();o.forEach((function(e,t){if(i.add(e),c||(e.nlb?(k("\n"),I(),c=!0):t>0&&R()),/comment[134]/.test(e.type))(n=V(e.value))&&(k("//"+n+"\n"),I()),c=!0;else if("comment2"==e.type){var n;(n=V(e.value))&&k("/*"+n+"*/"),c=!1}})),c||(r.nlb?(k("\n"),I()):R())}},append_comments:t||n===l?a:function(e,t){var r=e.end;if(r){var i=this.printed_comments,s=r[t?"comments_before":"comments_after"];if(s&&!i.has(s)&&(e instanceof fe||s.every(e=>!/comment[134]/.test(e.type)))){i.add(s);var o=p.length;s.filter(n,e).forEach((function(e,n){if(!i.has(e))if(i.add(e),S=!1,b?(k("\n"),I(),b=!1):e.nlb&&(n>0||!U())?(k("\n"),I()):(n>0||!t)&&R(),/comment[134]/.test(e.type)){const t=V(e.value);t&&k("//"+t),b=!0}else if("comment2"==e.type){const t=V(e.value);t&&k("/*"+t+"*/"),S=!0}})),p.length>o&&(C=o)}}},line:function(){return u},col:function(){return s},pos:function(){return h},push_node:function(e){H.push(e)},pop_node:function(){return H.pop()},parent:function(e){return H[H.length-2-(e||0)]}}}!function(){function e(e,t){e.DEFMETHOD("_codegen",t)}function t(e,n){Array.isArray(e)?e.forEach((function(e){t(e,n)})):e.DEFMETHOD("needs_parens",n)}function n(e,t,n,r){var i=e.length-1;n.in_directive=r,e.forEach((function(e,r){!0!==n.in_directive||e instanceof ge||e instanceof Ae||e instanceof _e&&e.body instanceof dn||(n.in_directive=!1),e instanceof Ae||(n.indent(),e.print(n),r==i&&t||(n.newline(),t&&n.newline())),!0===n.in_directive&&e instanceof _e&&e.body instanceof dn&&(n.in_directive=!1)})),n.in_directive=!1}function r(e,t){t.print("{"),t.with_indent(t.next_indent(),(function(){t.append_comments(e,!0)})),t.print("}")}function i(e,t,i){e.body.length>0?t.with_block((function(){n(e.body,!1,t,i)})):r(e,t)}function s(e,t,n){var r=!1;n&&(r=xn(e,e=>e instanceof Ie||(e instanceof Ct&&"in"==e.operator?Nn:void 0))),e.print(t,r)}function o(e,t,n){return n.option("quote_keys")?n.print_string(e):""+ +e==e&&e>=0?n.option("keep_numbers")?n.print(e):n.print(p(e)):(N.has(e)?n.option("ie8"):n.option("ecma")<2015?!Q(e):!J(e,!0))||t&&n.option("keep_quoted_props")?n.print_string(e,t):n.print_name(e)}de.DEFMETHOD("print",(function(e,t){var n=this,r=n._codegen;function i(){e.prepend_comments(n),n.add_source_map(e),r(n,e),e.append_comments(n)}n instanceof Ie?e.active_scope=n:!e.use_asm&&n instanceof ge&&"use asm"==n.value&&(e.use_asm=e.active_scope),e.push_node(n),t||n.needs_parens(e)?e.with_parens(i):i(),e.pop_node(),n===e.use_asm&&(e.use_asm=null)})),de.DEFMETHOD("_print",de.prototype.print),de.DEFMETHOD("print_to_string",(function(e){var t=Vn(e);return this.print(t),t.get()})),t(de,l),t(Be,(function(e){return!((e.has_parens()||!Fn(e))&&!(e.option("webkit")&&(t=e.parent())instanceof yt&&t.expression===this)&&!(e.option("wrap_iife")&&(t=e.parent())instanceof gt&&t.expression===this)&&!(e.option("wrap_func_args")&&(t=e.parent())instanceof gt&&t.args.includes(this)));var t})),t($e,(function(e){var t=e.parent();return t instanceof yt&&t.expression===this})),t(Ot,(function(e){return!e.has_parens()&&Fn(e)})),t(Ut,Fn),t(At,(function(e){var t=e.parent();return t instanceof yt&&t.expression===this||t instanceof gt&&t.expression===this||t instanceof Ct&&"**"===t.operator&&this instanceof bt&&t.left===this&&"++"!==this.operator&&"--"!==this.operator})),t(Je,(function(e){var t=e.parent();return t instanceof yt&&t.expression===this||t instanceof gt&&t.expression===this||e.option("safari10")&&t instanceof bt})),t(Et,(function(e){var t=e.parent();return t instanceof gt||t instanceof At||t instanceof Ct||t instanceof pt||t instanceof yt||t instanceof wt||t instanceof kt||t instanceof xt||t instanceof $e||t instanceof Nt||t instanceof Pe||t instanceof ke&&this===t.object||t instanceof Ze||t instanceof mt})),t(Ct,(function(e){var t=e.parent();if(t instanceof gt&&t.expression===this)return!0;if(t instanceof At)return!0;if(t instanceof yt&&t.expression===this)return!0;if(t instanceof Ct){const e=t.operator,n=this.operator;if("??"===n&&("||"===e||"&&"===e))return!0;const r=le[e],i=le[n];if(r>i||r==i&&(this===t.right||"**"==e))return!0}})),t(Ze,(function(e){var t=e.parent();return t instanceof Ct&&"="!==t.operator||t instanceof gt&&t.expression===this||t instanceof xt&&t.condition===this||t instanceof At||t instanceof yt&&t.expression===this||void 0})),t(yt,(function(e){var t=e.parent();if(t instanceof _t&&t.expression===this)return xn(this,e=>e instanceof Ie||(e instanceof gt?Nn:void 0))})),t(gt,(function(e){var t,n=e.parent();return!!(n instanceof _t&&n.expression===this||n instanceof mt&&n.is_default&&this.expression instanceof Be)||this.expression instanceof Be&&n instanceof yt&&n.expression===this&&(t=e.parent(1))instanceof Dt&&t.left===n})),t(_t,(function(e){var t=e.parent();if(0===this.args.length&&(t instanceof yt||t instanceof gt&&t.expression===this))return!0})),t(fn,(function(e){var t=e.parent();if(t instanceof yt&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(p(n)))return!0}})),t(mn,(function(e){var t=e.parent();if(t instanceof yt&&t.expression===this&&this.getValue().startsWith("-"))return!0})),t([Dt,xt],(function(e){var t=e.parent();return t instanceof At||t instanceof Ct&&!(t instanceof Dt)||t instanceof gt&&t.expression===this||t instanceof xt&&t.condition===this||t instanceof yt&&t.expression===this||this instanceof Dt&&this.left instanceof Ve&&!1===this.left.is_array||void 0})),e(ge,(function(e,t){t.print_string(e.value,e.quote),t.semicolon()})),e(Pe,(function(e,t){t.print("..."),e.expression.print(t)})),e(Ve,(function(e,t){t.print(e.is_array?"[":"{");var n=e.names.length;e.names.forEach((function(e,r){r>0&&t.comma(),e.print(t),r==n-1&&e instanceof vn&&t.comma()})),t.print(e.is_array?"]":"}")})),e(me,(function(e,t){t.print("debugger"),t.semicolon()})),be.DEFMETHOD("_do_print_body",(function(e){h(this.body,e)})),e(fe,(function(e,t){e.body.print(t),t.semicolon()})),e(Me,(function(e,t){n(e.body,!0,t,!0),t.print("")})),e(Se,(function(e,t){e.label.print(t),t.colon(),e.body.print(t)})),e(_e,(function(e,t){e.body.print(t),t.semicolon()})),e(ve,(function(e,t){i(e,t)})),e(Ae,(function(e,t){t.semicolon()})),e(De,(function(e,t){t.print("do"),t.space(),d(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens((function(){e.condition.print(t)})),t.semicolon()})),e(Ne,(function(e,t){t.print("while"),t.space(),t.with_parens((function(){e.condition.print(t)})),t.space(),e._do_print_body(t)})),e(we,(function(e,t){t.print("for"),t.space(),t.with_parens((function(){e.init?(e.init instanceof lt?e.init.print(t):s(e.init,t,!0),t.print(";"),t.space()):t.print(";"),e.condition?(e.condition.print(t),t.print(";"),t.space()):t.print(";"),e.step&&e.step.print(t)})),t.space(),e._do_print_body(t)})),e(Oe,(function(e,t){t.print("for"),e.await&&(t.space(),t.print("await")),t.space(),t.with_parens((function(){e.init.print(t),t.space(),t.print(e instanceof ke?"of":"in"),t.space(),e.object.print(t)})),t.space(),e._do_print_body(t)})),e(Re,(function(e,t){t.print("with"),t.space(),t.with_parens((function(){e.expression.print(t)})),t.space(),e._do_print_body(t)})),Le.DEFMETHOD("_do_print",(function(e,t){var n=this;t||(n.async&&(e.print("async"),e.space()),e.print("function"),n.is_generator&&e.star(),n.name&&e.space()),n.name instanceof Vt?n.name.print(e):t&&n.name instanceof de&&e.with_square((function(){n.name.print(e)})),e.with_parens((function(){n.argnames.forEach((function(t,n){n&&e.comma(),t.print(e)}))})),e.space(),i(n,e,!0)})),e(Le,(function(e,t){e._do_print(t)})),e(He,(function(e,t){var n=e.prefix,r=n instanceof Le||n instanceof Ct||n instanceof xt||n instanceof Et||n instanceof At||n instanceof Tt&&n.expression instanceof Ot;r&&t.print("("),e.prefix.print(t),r&&t.print(")"),e.template_string.print(t)})),e(Ge,(function(e,t){var n=t.parent()instanceof He;t.print("`");for(var r=0;r<e.segments.length;r++)e.segments[r]instanceof je?n?t.print(e.segments[r].raw):t.print_template_string_chars(e.segments[r].value):(t.print("${"),e.segments[r].print(t),t.print("}"));t.print("`")})),$e.DEFMETHOD("_do_print",(function(e){var t=this,n=e.parent(),r=n instanceof Ct&&!(n instanceof Dt)||n instanceof At||n instanceof gt&&t===n.expression;r&&e.print("("),t.async&&(e.print("async"),e.space()),1===t.argnames.length&&t.argnames[0]instanceof Vt?t.argnames[0].print(e):e.with_parens((function(){t.argnames.forEach((function(t,n){n&&e.comma(),t.print(e)}))})),e.space(),e.print("=>"),e.space();const s=t.body[0];if(1===t.body.length&&s instanceof ze){const t=s.value;t?function e(t){return t instanceof Ot||(t instanceof Et?e(t.expressions[0]):"Call"===t.TYPE?e(t.expression):t instanceof He?e(t.prefix):t instanceof Tt||t instanceof vt?e(t.expression):t instanceof xt?e(t.condition):t instanceof Ct?e(t.left):t instanceof St&&e(t.expression))}(t)?(e.print("("),t.print(e),e.print(")")):t.print(e):e.print("{}")}else i(t,e);r&&e.print(")")})),We.DEFMETHOD("_do_print",(function(e,t){if(e.print(t),this.value){e.space();const t=this.value.start.comments_before;t&&t.length&&!e.printed_comments.has(t)?(e.print("("),this.value.print(e),e.print(")")):this.value.print(e)}e.semicolon()})),e(ze,(function(e,t){e._do_print(t,"return")})),e(Xe,(function(e,t){e._do_print(t,"throw")})),e(Ze,(function(e,t){var n=e.is_star?"*":"";t.print("yield"+n),e.expression&&(t.space(),e.expression.print(t))})),e(Je,(function(e,t){t.print("await"),t.space();var n=e.expression,r=!(n instanceof gt||n instanceof on||n instanceof yt||n instanceof At||n instanceof pn);r&&t.print("("),e.expression.print(t),r&&t.print(")")})),qe.DEFMETHOD("_do_print",(function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()})),e(Ye,(function(e,t){e._do_print(t,"break")})),e(Qe,(function(e,t){e._do_print(t,"continue")})),e(et,(function(e,t){t.print("if"),t.space(),t.with_parens((function(){e.condition.print(t)})),t.space(),e.alternative?(function(e,t){var n=e.body;if(t.option("braces")||t.option("ie8")&&n instanceof De)return d(n,t);if(!n)return t.force_semicolon();for(;;)if(n instanceof et){if(!n.alternative)return void d(e.body,t);n=n.alternative}else{if(!(n instanceof be))break;n=n.body}h(e.body,t)}(e,t),t.space(),t.print("else"),t.space(),e.alternative instanceof et?e.alternative.print(t):h(e.alternative,t)):e._do_print_body(t)})),e(tt,(function(e,t){t.print("switch"),t.space(),t.with_parens((function(){e.expression.print(t)})),t.space();var n=e.body.length-1;n<0?r(e,t):t.with_block((function(){e.body.forEach((function(e,r){t.indent(!0),e.print(t),r<n&&e.body.length>0&&t.newline()}))}))})),nt.DEFMETHOD("_do_print_body",(function(e){e.newline(),this.body.forEach((function(t){e.indent(),t.print(e),e.newline()}))})),e(rt,(function(e,t){t.print("default:"),e._do_print_body(t)})),e(it,(function(e,t){t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)})),e(st,(function(e,t){t.print("try"),t.space(),i(e,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))})),e(ot,(function(e,t){t.print("catch"),e.argname&&(t.space(),t.with_parens((function(){e.argname.print(t)}))),t.space(),i(e,t)})),e(at,(function(e,t){t.print("finally"),t.space(),i(e,t)})),lt.DEFMETHOD("_do_print",(function(e,t){e.print(t),e.space(),this.definitions.forEach((function(t,n){n&&e.comma(),t.print(e)}));var n=e.parent();(!(n instanceof we||n instanceof Oe)||n&&n.init!==this)&&e.semicolon()})),e(ut,(function(e,t){e._do_print(t,"let")})),e(ct,(function(e,t){e._do_print(t,"var")})),e(ht,(function(e,t){e._do_print(t,"const")})),e(ft,(function(e,t){t.print("import"),t.space(),e.imported_name&&e.imported_name.print(t),e.imported_name&&e.imported_names&&(t.print(","),t.space()),e.imported_names&&(1===e.imported_names.length&&"*"===e.imported_names[0].foreign_name.name?e.imported_names[0].print(t):(t.print("{"),e.imported_names.forEach((function(n,r){t.space(),n.print(t),r<e.imported_names.length-1&&t.print(",")})),t.space(),t.print("}"))),(e.imported_name||e.imported_names)&&(t.space(),t.print("from"),t.space()),e.module_name.print(t),t.semicolon()})),e(dt,(function(e,t){var n=t.parent()instanceof ft,r=e.name.definition();(r&&r.mangled_name||e.name.name)!==e.foreign_name.name?(n?t.print(e.foreign_name.name):e.name.print(t),t.space(),t.print("as"),t.space(),n?e.name.print(t):t.print(e.foreign_name.name)):e.name.print(t)})),e(mt,(function(e,t){if(t.print("export"),t.space(),e.is_default&&(t.print("default"),t.space()),e.exported_names)1===e.exported_names.length&&"*"===e.exported_names[0].name.name?e.exported_names[0].print(t):(t.print("{"),e.exported_names.forEach((function(n,r){t.space(),n.print(t),r<e.exported_names.length-1&&t.print(",")})),t.space(),t.print("}"));else if(e.exported_value)e.exported_value.print(t);else if(e.exported_definition&&(e.exported_definition.print(t),e.exported_definition instanceof lt))return;e.module_name&&(t.space(),t.print("from"),t.space(),e.module_name.print(t)),(e.exported_value&&!(e.exported_value instanceof Ue||e.exported_value instanceof Be||e.exported_value instanceof Ft)||e.module_name||e.exported_names)&&t.semicolon()})),e(pt,(function(e,t){if(e.name.print(t),e.value){t.space(),t.print("="),t.space();var n=t.parent(1),r=n instanceof we||n instanceof Oe;s(e.value,t,r)}})),e(gt,(function(e,t){e.expression.print(t),e instanceof _t&&0===e.args.length||((e.expression instanceof gt||e.expression instanceof Le)&&t.add_mapping(e.start),t.with_parens((function(){e.args.forEach((function(e,n){n&&t.comma(),e.print(t)}))})))})),e(_t,(function(e,t){t.print("new"),t.space(),gt.prototype._codegen(e,t)})),Et.DEFMETHOD("_do_print",(function(e){this.expressions.forEach((function(t,n){n>0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),t.print(e)}))})),e(Et,(function(e,t){e._do_print(t)})),e(Tt,(function(e,t){var n=e.expression;n.print(t);var r=e.property;(N.has(r)?t.option("ie8"):!J(r,t.option("ecma")>=2015))?(t.print("["),t.add_mapping(e.end),t.print_string(r),t.print("]")):(n instanceof fn&&n.getValue()>=0&&(/[xa-f.)]/i.test(t.last())||t.print(".")),t.print("."),t.add_mapping(e.end),t.print_name(r))})),e(vt,(function(e,t){e.expression.print(t),t.print("["),e.property.print(t),t.print("]")})),e(bt,(function(e,t){var n=e.operator;t.print(n),(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof bt&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)})),e(St,(function(e,t){e.expression.print(t),t.print(e.operator)})),e(Ct,(function(e,t){var n=e.operator;e.left.print(t),">"==n[0]&&e.left instanceof St&&"--"==e.left.operator?t.print(" "):t.space(),t.print(n),("<"==n||"<<"==n)&&e.right instanceof bt&&"!"==e.right.operator&&e.right.expression instanceof bt&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)})),e(xt,(function(e,t){e.condition.print(t),t.space(),t.print("?"),t.space(),e.consequent.print(t),t.space(),t.colon(),e.alternative.print(t)})),e(wt,(function(e,t){t.with_square((function(){var n=e.elements,r=n.length;r>0&&t.space(),n.forEach((function(e,n){n&&t.comma(),e.print(t),n===r-1&&e instanceof vn&&t.comma()})),r>0&&t.space()}))})),e(Ot,(function(e,t){e.properties.length>0?t.with_block((function(){e.properties.forEach((function(e,n){n&&(t.print(","),t.newline()),t.indent(),e.print(t)})),t.newline()})):r(e,t)})),e(Ft,(function(e,t){if(t.print("class"),t.space(),e.name&&(e.name.print(t),t.space()),e.extends){var n=!(e.extends instanceof on||e.extends instanceof yt||e.extends instanceof Ut||e.extends instanceof Be);t.print("extends"),n?t.print("("):t.space(),e.extends.print(t),n?t.print(")"):t.space()}e.properties.length>0?t.with_block((function(){e.properties.forEach((function(e,n){n&&t.newline(),t.indent(),e.print(t)})),t.newline()})):t.print("{}")})),e(Ht,(function(e,t){t.print("new.target")})),e(Rt,(function(e,t){function n(e){var t=e.definition();return t?t.mangled_name||t.name:e.name}var r=t.option("shorthand");r&&e.value instanceof Vt&&J(e.key,t.option("ecma")>=2015)&&n(e.value)===e.key&&!N.has(e.key)?o(e.key,e.quote,t):r&&e.value instanceof Nt&&e.value.left instanceof Vt&&J(e.key,t.option("ecma")>=2015)&&n(e.value.left)===e.key?(o(e.key,e.quote,t),t.space(),t.print("="),t.space(),e.value.right.print(t)):(e.key instanceof de?t.with_square((function(){e.key.print(t)})):o(e.key,e.quote,t),t.colon(),e.value.print(t))})),e(Bt,(e,t)=>{e.static&&(t.print("static"),t.space()),e.key instanceof Qt?o(e.key.name,e.quote,t):(t.print("["),e.key.print(t),t.print("]")),e.value&&(t.print("="),e.value.print(t)),t.semicolon()}),kt.DEFMETHOD("_print_getter_setter",(function(e,t){var n=this;n.static&&(t.print("static"),t.space()),e&&(t.print(e),t.space()),n.key instanceof Yt?o(n.key.name,n.quote,t):t.with_square((function(){n.key.print(t)})),n.value._do_print(t,!0)})),e(It,(function(e,t){e._print_getter_setter("set",t)})),e(Mt,(function(e,t){e._print_getter_setter("get",t)})),e(Lt,(function(e,t){var n;e.is_generator&&e.async?n="async*":e.is_generator?n="*":e.async&&(n="async"),e._print_getter_setter(n,t)})),Vt.DEFMETHOD("_do_print",(function(e){var t=this.definition();e.print_name(t?t.mangled_name||t.name:this.name)})),e(Vt,(function(e,t){e._do_print(t)})),e(vn,a),e(un,(function(e,t){t.print("this")})),e(hn,(function(e,t){t.print("super")})),e(pn,(function(e,t){t.print(e.getValue())})),e(dn,(function(e,t){t.print_string(e.getValue(),e.quote,t.in_directive)})),e(fn,(function(e,t){(t.option("keep_numbers")||t.use_asm)&&e.start&&null!=e.start.raw?t.print(e.start.raw):t.print(p(e.getValue()))})),e(mn,(function(e,t){t.print(e.getValue()+"n")}));const c=/(<\s*\/\s*script)/i,u=(e,t)=>t.replace("/","\\/");function h(e,t){t.option("braces")?d(e,t):!e||e instanceof Ae?t.force_semicolon():e.print(t)}function p(e){var t,n,r,i=e.toString(10).replace(/^0\./,".").replace("e+","e"),s=[i];return Math.floor(e)===e&&(e<0?s.push("-0x"+(-e).toString(16).toLowerCase()):s.push("0x"+e.toString(16).toLowerCase())),(t=/^\.0+/.exec(i))?(n=t[0].length,r=i.slice(n),s.push(r+"e-"+(r.length+n-1))):(t=/0+$/.exec(i))?(n=t[0].length,s.push(i.slice(0,-n)+"e"+n)):(t=/^(\d)\.(\d+)e(-?\d+)$/.exec(i))&&s.push(t[1]+t[2]+"e"+(t[3]-t[2].length)),function(e){for(var t=e[0],n=t.length,r=1;r<e.length;++r)e[r].length<n&&(n=(t=e[r]).length);return t}(s)}function d(e,t){!e||e instanceof Ae?t.print("{}"):e instanceof ve?e.print(t):t.with_block((function(){t.indent(),e.print(t),t.newline()}))}function f(e,t){e.forEach((function(e){e.DEFMETHOD("add_source_map",t)}))}e(gn,(function(e,t){let{source:n,flags:r}=e.getValue();n=b(n),r=r?function(e){const t=new Set(e.split(""));let n="";for(const e of"gimuy")t.has(e)&&(n+=e,t.delete(e));return t.size&&t.forEach(e=>{n+=e}),n}(r):"",n=n.replace(c,u),t.print(t.to_utf8(`/${n}/${r}`));const i=t.parent();i instanceof Ct&&/^\w/.test(i.operator)&&i.left===e&&t.print(" ")})),f([de,Se,Me],a),f([wt,ve,ot,Ft,pn,me,lt,ge,at,Ke,Le,_t,Ot,be,Vt,tt,nt,Ge,je,st],(function(e){e.add_mapping(this.start)})),f([Mt,It],(function(e){e.add_mapping(this.start,this.key.name)})),f([kt],(function(e){e.add_mapping(this.start,this.key)}))}();const Hn=(e,t)=>null===e&&null===t||e.TYPE===t.TYPE&&e.shallow_cmp(t),Gn=e=>{const t=Object.keys(e).map(t=>{if("eq"===e[t])return`this.${t} === other.${t}`;if("exist"===e[t])return`(this.${t} == null ? other.${t} == null : this.${t} === other.${t})`;throw new Error("mkshallow: Unexpected instruction: "+e[t])}).join(" && ");return new Function("other","return "+t)},jn=()=>!0;de.prototype.shallow_cmp=function(){throw new Error("did not find a shallow_cmp function for "+this.constructor.name)},me.prototype.shallow_cmp=jn,ge.prototype.shallow_cmp=Gn({value:"eq"}),_e.prototype.shallow_cmp=jn,Te.prototype.shallow_cmp=jn,Ae.prototype.shallow_cmp=jn,Se.prototype.shallow_cmp=Gn({"label.name":"eq"}),De.prototype.shallow_cmp=jn,Ne.prototype.shallow_cmp=jn,we.prototype.shallow_cmp=Gn({init:"exist",condition:"exist",step:"exist"}),Oe.prototype.shallow_cmp=jn,ke.prototype.shallow_cmp=jn,Re.prototype.shallow_cmp=jn,Me.prototype.shallow_cmp=jn,Pe.prototype.shallow_cmp=jn,Le.prototype.shallow_cmp=Gn({is_generator:"eq",async:"eq"}),Ve.prototype.shallow_cmp=Gn({is_array:"eq"}),He.prototype.shallow_cmp=jn,Ge.prototype.shallow_cmp=jn,je.prototype.shallow_cmp=Gn({value:"eq"}),Ke.prototype.shallow_cmp=jn,qe.prototype.shallow_cmp=jn,Je.prototype.shallow_cmp=jn,Ze.prototype.shallow_cmp=Gn({is_star:"eq"}),et.prototype.shallow_cmp=Gn({alternative:"exist"}),tt.prototype.shallow_cmp=jn,nt.prototype.shallow_cmp=jn,st.prototype.shallow_cmp=Gn({bcatch:"exist",bfinally:"exist"}),ot.prototype.shallow_cmp=Gn({argname:"exist"}),at.prototype.shallow_cmp=jn,lt.prototype.shallow_cmp=jn,pt.prototype.shallow_cmp=Gn({value:"exist"}),dt.prototype.shallow_cmp=jn,ft.prototype.shallow_cmp=Gn({imported_name:"exist",imported_names:"exist"}),mt.prototype.shallow_cmp=Gn({exported_definition:"exist",exported_value:"exist",exported_names:"exist",module_name:"eq",is_default:"eq"}),gt.prototype.shallow_cmp=jn,Et.prototype.shallow_cmp=jn,yt.prototype.shallow_cmp=jn,Tt.prototype.shallow_cmp=Gn({property:"eq"}),At.prototype.shallow_cmp=Gn({operator:"eq"}),Ct.prototype.shallow_cmp=Gn({operator:"eq"}),xt.prototype.shallow_cmp=jn,wt.prototype.shallow_cmp=jn,Ot.prototype.shallow_cmp=jn,kt.prototype.shallow_cmp=jn,Rt.prototype.shallow_cmp=Gn({key:"eq"}),It.prototype.shallow_cmp=Gn({static:"eq"}),Mt.prototype.shallow_cmp=Gn({static:"eq"}),Lt.prototype.shallow_cmp=Gn({static:"eq",is_generator:"eq",async:"eq"}),Ft.prototype.shallow_cmp=Gn({name:"exist",extends:"exist"}),Bt.prototype.shallow_cmp=Gn({static:"eq"}),Vt.prototype.shallow_cmp=Gn({name:"eq"}),Ht.prototype.shallow_cmp=jn,un.prototype.shallow_cmp=jn,hn.prototype.shallow_cmp=jn,dn.prototype.shallow_cmp=Gn({value:"eq"}),fn.prototype.shallow_cmp=Gn({value:"eq"}),mn.prototype.shallow_cmp=Gn({value:"eq"}),gn.prototype.shallow_cmp=function(e){return this.value.flags===e.value.flags&&this.value.source===e.value.source},_n.prototype.shallow_cmp=jn;let Kn=null,Wn=null;class zn{constructor(e,t,n){this.name=t.name,this.orig=[t],this.init=n,this.eliminated=0,this.assignments=0,this.scope=e,this.replaced=0,this.global=!1,this.export=0,this.mangled_name=null,this.undeclared=!1,this.id=zn.next_id++,this.chained=!1,this.direct_access=!1,this.escaped=0,this.recursive_refs=0,this.references=[],this.should_replace=void 0,this.single_use=!1,this.fixed=!1,Object.seal(this)}fixed_value(){return!this.fixed||this.fixed instanceof de?this.fixed:this.fixed()}unmangleable(e){return e||(e={}),!!(Kn&&Kn.has(this.id)&&v(e.keep_fnames,this.orig[0].name))||this.global&&!e.toplevel||1&this.export||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof Jt||this.orig[0]instanceof qt)&&v(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof Yt||(this.orig[0]instanceof en||this.orig[0]instanceof Zt)&&v(e.keep_classnames,this.orig[0].name)}mangle(e){const t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name))this.mangled_name=t.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var n=this.scope,r=this.orig[0];e.ie8&&r instanceof Jt&&(n=n.parent_scope);const i=Xn(this);this.mangled_name=i?i.mangled_name||i.name:n.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}}}function Xn(e){if(e.orig[0]instanceof tn&&e.scope.is_block_scope())return e.scope.get_defun_scope().variables.get(e.name)}function qn(e,t){var n=e.enclosed;e:for(;;){var r=Yn(++e.cname);if(!N.has(r)&&!(t.reserved.has(r)||Wn&&Wn.has(r))){for(let e=n.length;--e>=0;){const i=n[e];if(r==(i.mangled_name||i.unmangleable(t)&&i.name))continue e}return r}}}zn.next_id=1,Ie.DEFMETHOD("figure_out_scope",(function(e,{parent_scope:t=null,toplevel:n=this}={}){if(e=o(e,{cache:null,ie8:!1,safari10:!1}),!(n instanceof Me))throw new Error("Invalid toplevel scope");var r=this.parent_scope=t,i=new Map,s=null,a=null,l=[],c=new wn((t,n)=>{if(t.is_block_scope()){const i=r;t.block_scope=r=new Ie(t),r._block_scope=!0;const s=t instanceof ot?i.parent_scope:i;if(r.init_scope_vars(s),r.uses_with=i.uses_with,r.uses_eval=i.uses_eval,e.safari10&&(t instanceof we||t instanceof Oe)&&l.push(r),t instanceof tt){const e=r;r=i,t.expression.walk(c),r=e;for(let e=0;e<t.body.length;e++)t.body[e].walk(c)}else n();return r=i,!0}if(t instanceof Ve){const e=a;return a=t,n(),a=e,!0}if(t instanceof Ie){t.init_scope_vars(r);var o=r,h=s,p=i;return s=r=t,i=new Map,n(),r=o,s=h,i=p,!0}if(t instanceof Se){var d=t.label;if(i.has(d.name))throw new Error(m("Label {name} defined twice",d));return i.set(d.name,d),n(),i.delete(d.name),!0}if(t instanceof Re)for(var f=r;f;f=f.parent_scope)f.uses_with=!0;else{if(t instanceof Vt&&(t.scope=r),t instanceof sn&&(t.thedef=t,t.references=[]),t instanceof Jt)s.def_function(t,"arguments"==t.name?void 0:s);else if(t instanceof qt)u((t.scope=s.parent_scope.get_defun_scope()).def_function(t,s),1);else if(t instanceof en)u(s.def_variable(t,s),1);else if(t instanceof nn)r.def_variable(t);else if(t instanceof Zt)u((t.scope=s.parent_scope).def_function(t,s),1);else if(t instanceof jt||t instanceof zt||t instanceof Wt||t instanceof tn){if((g=t instanceof Kt?r.def_variable(t,null):s.def_variable(t,"SymbolVar"==t.TYPE?null:void 0)).orig.every(e=>e===t||(t instanceof Kt?e instanceof Jt:!(e instanceof zt||e instanceof Wt)))||te(`"${t.name}" is redeclared`,t.start.file,t.start.line,t.start.col,t.start.pos),t instanceof Xt||u(g,2),s!==r){t.mark_enclosed();var g=r.find_variable(t);t.thedef!==g&&(t.thedef=g,t.reference())}}else if(t instanceof cn){var _=i.get(t.name);if(!_)throw new Error(m("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=_}r instanceof Me||!(t instanceof mt||t instanceof ft)||te(`"${t.TYPE}" statement may only appear at the top level`,t.start.file,t.start.line,t.start.col,t.start.pos)}});function u(e,t){if(a){var n=0;do{t++}while(c.parent(n++)!==a)}var r=c.parent(t);if(e.export=r instanceof mt?1:0){var i=r.exported_definition;(i instanceof Ue||i instanceof $t)&&r.is_default&&(e.export=2)}}if(this.walk(c),this instanceof Me&&(this.globals=new Map),c=new wn(e=>{if(e instanceof qe&&e.label)return e.label.thedef.references.push(e),!0;if(e instanceof on){var t,r=e.name;if("eval"==r&&c.parent()instanceof gt)for(var i=e.scope;i&&!i.uses_eval;i=i.parent_scope)i.uses_eval=!0;return c.parent()instanceof dt&&c.parent(1).module_name||!(t=e.scope.find_variable(r))?(t=n.def_global(e),e instanceof an&&(t.export=1)):t.scope instanceof Le&&"arguments"==r&&(t.scope.uses_arguments=!0),e.thedef=t,e.reference(),!e.scope.is_block_scope()||t.orig[0]instanceof Kt||(e.scope=e.scope.get_defun_scope()),!0}var s;if(e instanceof tn&&(s=Xn(e.definition())))for(i=e.scope;i&&(f(i.enclosed,s),i!==s.scope);)i=i.parent_scope}),this.walk(c),(e.ie8||e.safari10)&&xn(this,e=>{if(e instanceof tn){var t=e.name,r=e.thedef.references,i=e.scope.get_defun_scope(),s=i.find_variable(t)||n.globals.get(t)||i.def_variable(e);return r.forEach((function(e){e.thedef=s,e.reference()})),e.thedef=s,e.reference(),!0}}),e.safari10)for(const e of l)e.parent_scope.variables.forEach((function(t){f(e.enclosed,t)}))})),Me.DEFMETHOD("def_global",(function(e){var t=this.globals,n=e.name;if(t.has(n))return t.get(n);var r=new zn(this,e);return r.undeclared=!0,r.global=!0,t.set(n,r),r})),Ie.DEFMETHOD("init_scope_vars",(function(e){this.variables=new Map,this.functions=new Map,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1,this._var_name_cache=null})),Ie.DEFMETHOD("var_names",(function e(){var t=this._var_name_cache;return t||(this._var_name_cache=t=new Set(this.parent_scope?e.call(this.parent_scope):null),this._added_var_names&&this._added_var_names.forEach(e=>{t.add(e)}),this.enclosed.forEach((function(e){t.add(e.name)})),this.variables.forEach((function(e,n){t.add(n)}))),t})),Ie.DEFMETHOD("add_var_name",(function(e){this._added_var_names||(this._added_var_names=new Set),this._added_var_names.add(e),this._var_name_cache||this.var_names(),this._var_name_cache.add(e)})),Ie.DEFMETHOD("add_child_scope",(function(e){if(e.parent_scope===this)return;e.parent_scope=this,e._var_name_cache=null,e._added_var_names&&e._added_var_names.forEach(t=>e.add_var_name(t));const t=new Set(e.enclosed),n=(()=>{const e=[];let t=this;do{e.push(t)}while(t=t.parent_scope);return e.reverse(),e})(),r=[];for(const e of n){r.forEach(t=>f(e.enclosed,t));for(const n of e.variables.values())t.has(n)&&(f(r,n),f(e.enclosed,n))}})),de.DEFMETHOD("is_block_scope",l),Ft.DEFMETHOD("is_block_scope",l),Le.DEFMETHOD("is_block_scope",l),Me.DEFMETHOD("is_block_scope",l),nt.DEFMETHOD("is_block_scope",l),Te.DEFMETHOD("is_block_scope",c),Ie.DEFMETHOD("is_block_scope",(function(){return this._block_scope||!1})),Ce.DEFMETHOD("is_block_scope",c),Le.DEFMETHOD("init_scope_vars",(function(){Ie.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new Xt({name:"arguments",start:this.start,end:this.end}))})),$e.DEFMETHOD("init_scope_vars",(function(){Ie.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1})),Vt.DEFMETHOD("mark_enclosed",(function(){for(var e=this.definition(),t=this.scope;t&&(f(t.enclosed,e),t!==e.scope);)t=t.parent_scope})),Vt.DEFMETHOD("reference",(function(){this.definition().references.push(this),this.mark_enclosed()})),Ie.DEFMETHOD("find_variable",(function(e){return e instanceof Vt&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)})),Ie.DEFMETHOD("def_function",(function(e,t){var n=this.def_variable(e,t);return(!n.init||n.init instanceof Ue)&&(n.init=t),this.functions.set(e.name,n),n})),Ie.DEFMETHOD("def_variable",(function(e,t){var n=this.variables.get(e.name);return n?(n.orig.push(e),n.init&&(n.scope!==e.scope||n.init instanceof Be)&&(n.init=t)):(n=new zn(this,e,t),this.variables.set(e.name,n),n.global=!this.parent_scope),e.thedef=n})),Ie.DEFMETHOD("next_mangled",(function(e){return qn(this,e)})),Me.DEFMETHOD("next_mangled",(function(e){let t;const n=this.mangled_names;do{t=qn(this,e)}while(n.has(t));return t})),Be.DEFMETHOD("next_mangled",(function(e,t){for(var n=t.orig[0]instanceof Xt&&this.name&&this.name.definition(),r=n?n.mangled_name||n.name:null;;){var i=qn(this,e);if(!r||r!=i)return i}})),Vt.DEFMETHOD("unmangleable",(function(e){var t=this.definition();return!t||t.unmangleable(e)})),sn.DEFMETHOD("unmangleable",l),Vt.DEFMETHOD("unreferenced",(function(){return!this.definition().references.length&&!this.scope.pinned()})),Vt.DEFMETHOD("definition",(function(){return this.thedef})),Vt.DEFMETHOD("global",(function(){return this.thedef.global})),Me.DEFMETHOD("_default_mangler_options",(function(e){return(e=o(e,{eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1})).module&&(e.toplevel=!0),Array.isArray(e.reserved)||e.reserved instanceof Set||(e.reserved=[]),e.reserved=new Set(e.reserved),e.reserved.add("arguments"),e})),Me.DEFMETHOD("mangle_names",(function(e){e=this._default_mangler_options(e);var t=-1,n=[];e.keep_fnames&&(Kn=new Set);const r=this.mangled_names=new Set;e.cache&&(this.globals.forEach(s),e.cache.props&&e.cache.props.forEach((function(e){r.add(e)})));var i=new wn((function(r,i){if(r instanceof Se){var o=t;return i(),t=o,!0}if(r instanceof Ie)r.variables.forEach(s);else if(r.is_block_scope())r.block_scope.variables.forEach(s);else if(Kn&&r instanceof pt&&r.value instanceof Le&&!r.value.name&&v(e.keep_fnames,r.name.name))Kn.add(r.name.definition().id);else{if(r instanceof sn){let e;do{e=Yn(++t)}while(N.has(e));return r.mangled_name=e,!0}!e.ie8&&!e.safari10&&r instanceof tn&&n.push(r.definition())}}));function s(t){!(e.reserved.has(t.name)||1&t.export)&&n.push(t)}this.walk(i),(e.keep_fnames||e.keep_classnames)&&(Wn=new Set,n.forEach(t=>{t.name.length<6&&t.unmangleable(e)&&Wn.add(t.name)})),n.forEach(t=>{t.mangle(e)}),Kn=null,Wn=null})),Me.DEFMETHOD("find_colliding_names",(function(e){const t=e.cache&&e.cache.props,n=new Set;return e.reserved.forEach(r),this.globals.forEach(i),this.walk(new wn((function(e){e instanceof Ie&&e.variables.forEach(i),e instanceof tn&&i(e.definition())}))),n;function r(e){n.add(e)}function i(n){var i=n.name;if(n.global&&t&&t.has(i))i=t.get(i);else if(!n.unmangleable(e))return;r(i)}})),Me.DEFMETHOD("expand_names",(function(e){Yn.reset(),Yn.sort(),e=this._default_mangler_options(e);var t=this.find_colliding_names(e),n=0;function r(r){if(r.global&&e.cache)return;if(r.unmangleable(e))return;if(e.reserved.has(r.name))return;const i=Xn(r),s=r.name=i?i.name:function(){var e;do{e=Yn(n++)}while(t.has(e)||N.has(e));return e}();r.orig.forEach((function(e){e.name=s})),r.references.forEach((function(e){e.name=s}))}this.globals.forEach(r),this.walk(new wn((function(e){e instanceof Ie&&e.variables.forEach(r),e instanceof tn&&r(e.definition())})))})),de.DEFMETHOD("tail_node",u),Et.DEFMETHOD("tail_node",(function(){return this.expressions[this.expressions.length-1]})),Me.DEFMETHOD("compute_char_frequency",(function(e){e=this._default_mangler_options(e);try{de.prototype.print=function(t,n){this._print(t,n),this instanceof Vt&&!this.unmangleable(e)?Yn.consider(this.name,-1):e.properties&&(this instanceof Tt?Yn.consider(this.property,-1):this instanceof vt&&function e(t){t instanceof dn?Yn.consider(t.value,-1):t instanceof xt?(e(t.consequent),e(t.alternative)):t instanceof Et&&e(t.tail_node())}(this.property))},Yn.consider(this.print_to_string(),1)}finally{de.prototype.print=de.prototype._print}Yn.sort()}));const Yn=(()=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),t="0123456789".split("");let n,r;function i(){r=new Map,e.forEach((function(e){r.set(e,0)})),t.forEach((function(e){r.set(e,0)}))}function s(e,t){return r.get(t)-r.get(e)}function o(e){var t="",r=54;e++;do{e--,t+=n[e%r],e=Math.floor(e/r),r=64}while(e>0);return t}return o.consider=function(e,t){for(var n=e.length;--n>=0;)r.set(e[n],r.get(e[n])+t)},o.sort=function(){n=_(e,s).concat(_(t,s))},o.reset=i,i(),o})();function Qn(){const e={};return Object.keys(Jn({0:0})).forEach(t=>{const n=Jn({[t]:{0:0}});n&&(e[t]=n)}),e}function Jn(e){var t=Ti("",e);return t.error&&t.error.defs}let Zn=void 0;de.prototype.size=function(e,t){Zn=Qn.mangle;let n=0;return Dn(this,(e,t)=>{n+=e._size(t)},t||e&&e.stack),Zn=void 0,n},de.prototype._size=()=>0,me.prototype._size=()=>8,ge.prototype._size=function(){return 2+this.value.length};const er=e=>e.length&&e.length-1;Te.prototype._size=function(){return 2+er(this.body)},Me.prototype._size=function(){return er(this.body)},Ae.prototype._size=()=>1,Se.prototype._size=()=>2,De.prototype._size=()=>9,Ne.prototype._size=()=>7,we.prototype._size=()=>8,Oe.prototype._size=()=>8,Re.prototype._size=()=>6,Pe.prototype._size=()=>3;const tr=e=>(e.is_generator?1:0)+(e.async?6:0);Fe.prototype._size=function(){return tr(this)+4+er(this.argnames)+er(this.body)},Be.prototype._size=function(e){return 2*!!Fn(e)+tr(this)+12+er(this.argnames)+er(this.body)},Ue.prototype._size=function(){return tr(this)+13+er(this.argnames)+er(this.body)},$e.prototype._size=function(){let e=2+er(this.argnames);return 1===this.argnames.length&&this.argnames[0]instanceof Vt||(e+=2),tr(this)+e+(Array.isArray(this.body)?er(this.body):this.body._size())},Ve.prototype._size=()=>2,Ge.prototype._size=function(){return 2+3*Math.floor(this.segments.length/2)},je.prototype._size=function(){return this.value.length},ze.prototype._size=function(){return this.value?7:6},Xe.prototype._size=()=>6,Ye.prototype._size=function(){return this.label?6:5},Qe.prototype._size=function(){return this.label?9:8},et.prototype._size=()=>4,tt.prototype._size=function(){return 8+er(this.body)},it.prototype._size=function(){return 5+er(this.body)},rt.prototype._size=function(){return 8+er(this.body)},st.prototype._size=function(){return 3+er(this.body)},ot.prototype._size=function(){let e=7+er(this.body);return this.argname&&(e+=2),e},at.prototype._size=function(){return 7+er(this.body)};const nr=(e,t)=>e+er(t.definitions);ct.prototype._size=function(){return nr(4,this)},ut.prototype._size=function(){return nr(4,this)},ht.prototype._size=function(){return nr(6,this)},pt.prototype._size=function(){return this.value?1:0},dt.prototype._size=function(){return this.name?4:0},ft.prototype._size=function(){let e=6;return this.imported_name&&(e+=1),(this.imported_name||this.imported_names)&&(e+=5),this.imported_names&&(e+=2+er(this.imported_names)),e},mt.prototype._size=function(){let e=7+(this.is_default?8:0);return this.exported_value&&(e+=this.exported_value._size()),this.exported_names&&(e+=2+er(this.exported_names)),this.module_name&&(e+=5),e},gt.prototype._size=function(){return 2+er(this.args)},_t.prototype._size=function(){return 6+er(this.args)},Et.prototype._size=function(){return er(this.expressions)},Tt.prototype._size=function(){return this.property.length+1},vt.prototype._size=()=>2,At.prototype._size=function(){return"typeof"===this.operator?7:"void"===this.operator?5:this.operator.length},Ct.prototype._size=function(e){if("in"===this.operator)return 4;let t=this.operator.length;return("+"===this.operator||"-"===this.operator)&&this.right instanceof At&&this.right.operator===this.operator&&(t+=1),this.needs_parens(e)&&(t+=2),t},xt.prototype._size=()=>3,wt.prototype._size=function(){return 2+er(this.elements)},Ot.prototype._size=function(e){let t=2;return Fn(e)&&(t+=2),t+er(this.properties)};const rr=e=>"string"==typeof e?e.length:0;Rt.prototype._size=function(){return rr(this.key)+1};const ir=e=>e?7:0;Mt.prototype._size=function(){return 5+ir(this.static)+rr(this.key)},It.prototype._size=function(){return 5+ir(this.static)+rr(this.key)},Lt.prototype._size=function(){return ir(this.static)+rr(this.key)+tr(this)},Ft.prototype._size=function(){return(this.name?8:7)+(this.extends?8:0)},Bt.prototype._size=function(){return ir(this.static)+("string"==typeof this.key?this.key.length+2:0)+(this.value?1:0)},Vt.prototype._size=function(){return!Zn||this.definition().unmangleable(Zn)?this.name.length:2},Qt.prototype._size=function(){return this.name.length},on.prototype._size=function(){const{name:e,thedef:t}=this;return t&&t.global?e.length:"arguments"===e?9:2},Ht.prototype._size=()=>10,rn.prototype._size=function(){return this.name.length},ln.prototype._size=function(){return this.name.length},un.prototype._size=()=>4,hn.prototype._size=()=>5,dn.prototype._size=function(){return this.value.length+2},fn.prototype._size=function(){const{value:e}=this;return 0===e?1:e>0&&Math.floor(e)===e?Math.floor(Math.log10(e)+1):e.toString().length},mn.prototype._size=function(){return this.value.length},gn.prototype._size=function(){return this.value.toString().length},En.prototype._size=()=>4,yn.prototype._size=()=>3,Tn.prototype._size=()=>6,vn.prototype._size=()=>0,An.prototype._size=()=>8,Cn.prototype._size=()=>4,Sn.prototype._size=()=>5,Je.prototype._size=()=>6,Ze.prototype._size=()=>6;const sr=(e,t)=>e.flags&t,or=(e,t)=>{e.flags|=t},ar=(e,t)=>{e.flags&=~t};class lr extends wn{constructor(e,t){super(),void 0===e.defaults||e.defaults||(t=!0),this.options=o(e,{arguments:!1,arrows:!t,booleans:!t,booleans_as_integers:!1,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:!0,directives:!t,drop_console:!1,drop_debugger:!t,ecma:5,evaluate:!t,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!t,hoist_vars:!1,ie8:!1,if_return:!t,inline:!t,join_vars:!t,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!t,module:!1,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:null,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!t,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_symbols:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!t,warnings:!1},!0);var n=this.options.global_defs;if("object"==typeof n)for(var r in n)"@"===r[0]&&T(n,r)&&(n[r.slice(1)]=ue(n[r],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var i=this.options.pure_funcs;this.pure_funcs="function"==typeof i?i:i?function(e){return!i.includes(e.expression.print_to_string())}:c;var s=this.options.top_retain;s instanceof RegExp?this.top_retain=function(e){return s.test(e.name)}:"function"==typeof s?this.top_retain=s:s&&("string"==typeof s&&(s=s.split(/,/)),this.top_retain=function(e){return s.includes(e.name)}),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var a=this.options.toplevel;this.toplevel="string"==typeof a?{funcs:/funcs/.test(a),vars:/vars/.test(a)}:{funcs:a,vars:a};var l=this.options.sequences;this.sequences_limit=1==l?800:0|l,this.warnings_produced={},this.evaluated_regexps=new Map}option(e){return this.options[e]}exposed(e){if(e.export)return!0;if(e.global)for(var t=0,n=e.orig.length;t<n;t++)if(!this.toplevel[e.orig[t]instanceof qt?"funcs":"vars"])return!0;return!1}in_boolean_context(){if(!this.option("booleans"))return!1;for(var e,t=this.self(),n=0;e=this.parent(n);n++){if(e instanceof _e||e instanceof xt&&e.condition===t||e instanceof xe&&e.condition===t||e instanceof we&&e.condition===t||e instanceof et&&e.condition===t||e instanceof bt&&"!"==e.operator&&e.expression===t)return!0;if(!(e instanceof Ct&&("&&"==e.operator||"||"==e.operator||"??"==e.operator)||e instanceof xt||e.tail_node()===t))return!1;t=e}}compress(e){e=e.resolve_defines(this),this.option("expression")&&e.process_expression(!0);for(var t=+this.options.passes||1,n=1/0,r=!1,i={ie8:this.option("ie8")},s=0;s<t;s++)if(e.figure_out_scope(i),0===s&&this.option("drop_console")&&(e=e.drop_console()),(s>0||this.option("reduce_vars"))&&e.reset_opt_flags(this),e=e.transform(this),t>1){let t=0;if(xn(e,()=>{t++}),this.info("pass "+s+": last_count: "+n+", count: "+t),t<n)n=t,r=!1;else{if(r)break;r=!0}}return this.option("expression")&&e.process_expression(!1),e}info(...e){"verbose"==this.options.warnings&&de.warn(...e)}warn(e,t){if(this.options.warnings){var n=m(e,t);n in this.warnings_produced||(this.warnings_produced[n]=!0,de.warn.apply(de,arguments))}}clear_warnings(){this.warnings_produced={}}before(e,t){if(sr(e,256))return e;var n=!1;e instanceof Ie&&(e=(e=e.hoist_properties(this)).hoist_declarations(this),n=!0),t(e,this),t(e,this);var r=e.optimize(this);return n&&r instanceof Ie&&(r.drop_unused(this),t(r,this)),r===e&&or(r,256),r}}function cr(e,t){e.DEFMETHOD("optimize",(function(e){if(sr(this,512))return this;if(e.has_directive("use asm"))return this;var n=t(this,e);return or(n,512),n}))}function ur(e,t){if(!((t=Ir(t))instanceof de)){var n;if(e instanceof wt){var r=e.elements;if("length"==t)return Er(r.length,e);"number"==typeof t&&t in r&&(n=r[t])}else if(e instanceof Ot){t=""+t;for(var i=e.properties,s=i.length;--s>=0;){if(!(i[s]instanceof Rt))return;n||i[s].key!==t||(n=i[s].value)}}return n instanceof on&&n.fixed_value()||n}}function hr(e,t,n,r,i,s){var o=t.parent(i),a=Fr(n,o);if(a)return a;if(!s&&o instanceof gt&&o.expression===n&&!(r instanceof $e)&&!(r instanceof Ft)&&!o.is_expr_pure(e)&&(!(r instanceof Be)||!(o instanceof _t)&&r.contains_this()))return!0;if(o instanceof wt)return hr(e,t,o,o,i+1);if(o instanceof Rt&&n===o.value){var l=t.parent(i+1);return hr(e,t,l,l,i+2)}if(o instanceof yt&&o.expression===n){var c=ur(r,o.property);return!s&&hr(e,t,o,c,i+1)}}function pr(e){return e instanceof $e||e instanceof Be}function dr(e){if(e instanceof un)return!0;if(e instanceof on)return e.definition().orig[0]instanceof Jt;if(e instanceof yt){if((e=e.expression)instanceof on){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||!(e instanceof gn)&&(e instanceof pn||dr(e))}return!1}function fr(e,t){if(!(e instanceof on))return!1;for(var n=e.definition().orig,r=n.length;--r>=0;)if(n[r]instanceof t)return!0}function mr(e){for(let t=0;;t++){const n=e.parent(t);if(n instanceof Me)return n;if(n instanceof Le)return n;if(n.block_scope)return n.block_scope}}function gr(e,t){for(var n,r=0;(n=e.parent(r++))&&!(n instanceof Ie);)if(n instanceof ot&&n.argname){n=n.argname.definition().scope;break}return n.find_variable(t)}function _r(e,t){if(1==t.length)return t[0];if(0==t.length)throw new Error("trying to create a sequence with length zero!");return d(Et,e,{expressions:t.reduce(Tr,[])})}function Er(e,t){switch(typeof e){case"string":return d(dn,t,{value:e});case"number":return isNaN(e)?d(yn,t):isFinite(e)?1/e<0?d(bt,t,{operator:"-",expression:d(fn,t,{value:-e})}):d(fn,t,{value:e}):e<0?d(bt,t,{operator:"-",expression:d(An,t)}):d(An,t);case"boolean":return d(e?Cn:Sn,t);case"undefined":return d(Tn,t);default:if(null===e)return d(En,t,{value:null});if(e instanceof RegExp)return d(gn,t,{value:{source:b(e.source),flags:e.flags}});throw new Error(m("Can't handle constant of type: {type}",{type:typeof e}))}}function yr(e,t,n){return e instanceof bt&&"delete"==e.operator||e instanceof gt&&e.expression===t&&(n instanceof yt||n instanceof on&&"eval"==n.name)?_r(t,[d(fn,t,{value:0}),n]):n}function Tr(e,t){return t instanceof Et?e.push(...t.expressions):e.push(t),e}function vr(e){if(null===e)return[];if(e instanceof ve)return e.body;if(e instanceof Ae)return[];if(e instanceof fe)return[e];throw new Error("Can't convert thing to statement array")}function Ar(e){return null===e||e instanceof Ae||e instanceof ve&&0==e.body.length}function br(e){return!(e instanceof $t||e instanceof Ue||e instanceof ut||e instanceof ht||e instanceof mt||e instanceof ft)}function Sr(e){return e instanceof Ce&&e.body instanceof ve?e.body:e}function Cr(e){return"Call"==e.TYPE&&(e.expression instanceof Be||Cr(e.expression))}function xr(e){return e instanceof on&&e.definition().undeclared}cr(de,(function(e){return e})),Me.DEFMETHOD("drop_console",(function(){return this.transform(new On((function(e){if("Call"==e.TYPE){var t=e.expression;if(t instanceof yt){for(var n=t.expression;n.expression;)n=n.expression;if(xr(n)&&"console"==n.name)return d(Tn,e)}}})))})),de.DEFMETHOD("equivalent_to",(function(e){return((e,t)=>{if(!Hn(e,t))return!1;const n=[e],r=[t],i=n.push.bind(n),s=r.push.bind(r);for(;n.length&&r.length;){const e=n.pop(),t=r.pop();if(!Hn(e,t))return!1;if(e._children_backwards(i),t._children_backwards(s),n.length!==r.length)return!1}return 0==n.length&&0==r.length})(this,e)})),Ie.DEFMETHOD("process_expression",(function(e,t){var n=this,r=new On((function(i){if(e&&i instanceof _e)return d(ze,i,{value:i.body});if(!e&&i instanceof ze){if(t){var s=i.value&&i.value.drop_side_effect_free(t,!0);return s?d(_e,i,{body:s}):d(Ae,i)}return d(_e,i,{body:i.value||d(bt,i,{operator:"void",expression:d(fn,i,{value:0})})})}if(i instanceof Ft||i instanceof Le&&i!==n)return i;if(i instanceof Te){var o=i.body.length-1;o>=0&&(i.body[o]=i.body[o].transform(r))}else i instanceof et?(i.body=i.body.transform(r),i.alternative&&(i.alternative=i.alternative.transform(r))):i instanceof Re&&(i.body=i.body.transform(r));return i}));n.transform(r)})),function(e){function t(e,t){t.assignments=0,t.chained=!1,t.direct_access=!1,t.escaped=0,t.recursive_refs=0,t.references=[],t.should_replace=void 0,t.single_use=void 0,t.scope.pinned()?t.fixed=!1:t.orig[0]instanceof Wt||!e.exposed(t)?t.fixed=t.init:t.fixed=!1}function n(e,n,r){r.variables.forEach((function(r){t(n,r),null===r.fixed?(e.defs_to_safe_ids.set(r.id,e.safe_ids),o(e,r,!0)):r.fixed&&(e.loop_ids.set(r.id,e.in_loop),o(e,r,!0))}))}function r(e,n){n.block_scope&&n.block_scope.variables.forEach(n=>{t(e,n)})}function i(e){e.safe_ids=Object.create(e.safe_ids)}function s(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function o(e,t,n){e.safe_ids[t.id]=n}function l(e,t){if("m"==t.single_use)return!1;if(e.safe_ids[t.id]){if(null==t.fixed){var n=t.orig[0];if(n instanceof Xt||"arguments"==n.name)return!1;t.fixed=d(Tn,n)}return!0}return t.fixed instanceof Ue}function c(e,t,n,r){if(void 0===t.fixed)return!0;let i;return null===t.fixed&&(i=e.defs_to_safe_ids.get(t.id))?(i[t.id]=!1,e.defs_to_safe_ids.delete(t.id),!0):!!T(e.safe_ids,t.id)&&!!l(e,t)&&!1!==t.fixed&&!(null!=t.fixed&&(!r||t.references.length>t.assignments))&&(t.fixed instanceof Ue?r instanceof de&&t.fixed.parent_scope===n:t.orig.every(e=>!(e instanceof Wt||e instanceof qt||e instanceof Jt)))}function u(e,t,n,r,i,s,o){var a=e.parent(s);if(i){if(i.is_constant())return;if(i instanceof Ut)return}if(a instanceof Dt&&"="==a.operator&&r===a.right||a instanceof gt&&(r!==a.expression||a instanceof _t)||a instanceof We&&r===a.value&&r.scope!==t.scope||a instanceof pt&&r===a.value||a instanceof Ze&&r===a.value&&r.scope!==t.scope)return!(o>1)||i&&i.is_constant_expression(n)||(o=1),void((!t.escaped||t.escaped>o)&&(t.escaped=o));if(a instanceof wt||a instanceof Je||a instanceof Ct&&Pr.has(a.operator)||a instanceof xt&&r!==a.condition||a instanceof Pe||a instanceof Et&&r===a.tail_node())u(e,t,n,a,a,s+1,o);else if(a instanceof Rt&&r===a.value){var l=e.parent(s+1);u(e,t,n,l,l,s+2,o)}else if(a instanceof yt&&r===a.expression&&(u(e,t,n,a,i=ur(i,a.property),s+1,o+1),i))return;s>0||a instanceof Et&&r!==a.tail_node()||a instanceof _e||(t.direct_access=!0)}e(de,a);const h=e=>xn(e,e=>{if(e instanceof Vt){var t=e.definition();t&&(e instanceof on&&t.references.push(e),t.fixed=!1)}});e(Fe,(function(e,t,r){return i(e),n(e,r,this),t(),s(e),!0})),e(Dt,(function(e,t,n){var r=this;if(r.left instanceof Ve)h(r.left);else{var i=r.left;if(i instanceof on){var s=i.definition(),a=c(e,s,i.scope,r.right);if(s.assignments++,a){var l=s.fixed;if(l||"="==r.operator){var p="="==r.operator,f=p?r.right:r;if(!hr(n,e,r,f,0))return s.references.push(i),p||(s.chained=!0),s.fixed=p?function(){return r.right}:function(){return d(Ct,r,{operator:r.operator.slice(0,-1),left:l instanceof de?l:l(),right:r.right})},o(e,s,!1),r.right.walk(e),o(e,s,!0),u(e,s,i.scope,r,f,0,1),!0}}}}})),e(Ct,(function(e){if(Pr.has(this.operator))return this.left.walk(e),i(e),this.right.walk(e),s(e),!0})),e(Te,(function(e,t,n){r(n,this)})),e(it,(function(e){return i(e),this.expression.walk(e),s(e),i(e),Ee(this,e),s(e),!0})),e(Ft,(function(e,t){return ar(this,16),i(e),t(),s(e),!0})),e(xt,(function(e){return this.condition.walk(e),i(e),this.consequent.walk(e),s(e),i(e),this.alternative.walk(e),s(e),!0})),e(rt,(function(e,t){return i(e),t(),s(e),!0})),e(Le,(function(e,t,r){return ar(this,16),i(e),n(e,r,this),this.uses_arguments?(t(),void s(e)):(!this.name&&(a=e.parent())instanceof gt&&a.expression===this&&!a.args.some(e=>e instanceof Pe)&&this.argnames.every(e=>e instanceof Vt)&&this.argnames.forEach((t,n)=>{if(t.definition){var r=t.definition();r.orig.length>1||(void 0!==r.fixed||this.uses_arguments&&!e.has_directive("use strict")?r.fixed=!1:(r.fixed=function(){return a.args[n]||d(Tn,a)},e.loop_ids.set(r.id,e.in_loop),o(e,r,!0)))}}),t(),s(e),!0);var a})),e(De,(function(e,t,n){r(n,this);const o=e.in_loop;return e.in_loop=this,i(e),this.body.walk(e),Qr(this)&&(s(e),i(e)),this.condition.walk(e),s(e),e.in_loop=o,!0})),e(we,(function(e,t,n){r(n,this),this.init&&this.init.walk(e);const o=e.in_loop;return e.in_loop=this,i(e),this.condition&&this.condition.walk(e),this.body.walk(e),this.step&&(Qr(this)&&(s(e),i(e)),this.step.walk(e)),s(e),e.in_loop=o,!0})),e(Oe,(function(e,t,n){r(n,this),h(this.init),this.object.walk(e);const o=e.in_loop;return e.in_loop=this,i(e),this.body.walk(e),s(e),e.in_loop=o,!0})),e(et,(function(e){return this.condition.walk(e),i(e),this.body.walk(e),s(e),this.alternative&&(i(e),this.alternative.walk(e),s(e)),!0})),e(Se,(function(e){return i(e),this.body.walk(e),s(e),!0})),e(tn,(function(){this.definition().fixed=!1})),e(on,(function(e,t,n){var r,i,s=this.definition();s.references.push(this),1==s.references.length&&!s.fixed&&s.orig[0]instanceof qt&&e.loop_ids.set(s.id,e.in_loop),void 0!==s.fixed&&l(e,s)?s.fixed&&((r=this.fixed_value())instanceof Le&&ei(e,s)?s.recursive_refs++:r&&!n.exposed(s)&&function(e,t,n){return t.option("unused")&&!n.scope.pinned()&&n.references.length-n.recursive_refs==1&&e.loop_ids.get(n.id)===e.in_loop}(e,n,s)?s.single_use=r instanceof Le&&!r.pinned()||r instanceof Ft||s.scope===this.scope&&r.is_constant_expression():s.single_use=!1,hr(n,e,this,r,0,!!(i=r)&&(i.is_constant()||i instanceof Le||i instanceof un))&&(s.single_use?s.single_use="m":s.fixed=!1)):s.fixed=!1,u(e,s,this.scope,this,r,0,1)})),e(Me,(function(e,r,i){this.globals.forEach((function(e){t(i,e)})),n(e,i,this)})),e(st,(function(e,t,n){return r(n,this),i(e),Ee(this,e),s(e),this.bcatch&&(i(e),this.bcatch.walk(e),s(e)),this.bfinally&&this.bfinally.walk(e),!0})),e(At,(function(e){var t=this;if("++"===t.operator||"--"===t.operator){var n=t.expression;if(n instanceof on){var r=n.definition(),i=c(e,r,n.scope,!0);if(r.assignments++,i){var s=r.fixed;if(s)return r.references.push(n),r.chained=!0,r.fixed=function(){return d(Ct,t,{operator:t.operator.slice(0,-1),left:d(bt,t,{operator:"+",expression:s instanceof de?s:s()}),right:d(fn,t,{value:1})})},o(e,r,!0),!0}}}})),e(pt,(function(e,t){var n=this;if(n.name instanceof Ve)h(n.name);else{var r=n.name.definition();if(n.value){if(c(e,r,n.name.scope,n.value))return r.fixed=function(){return n.value},e.loop_ids.set(r.id,e.in_loop),o(e,r,!1),t(),o(e,r,!0),!0;r.fixed=!1}}})),e(Ne,(function(e,t,n){r(n,this);const o=e.in_loop;return e.in_loop=this,i(e),t(),s(e),e.in_loop=o,!0}))}((function(e,t){e.DEFMETHOD("reduce_vars",t)})),Me.DEFMETHOD("reset_opt_flags",(function(e){const t=this,n=e.option("reduce_vars"),r=new wn((function(i,s){if(ar(i,1792),n)return e.top_retain&&i instanceof Ue&&r.parent()===t&&or(i,1024),i.reduce_vars(r,s,e)}));r.safe_ids=Object.create(null),r.in_loop=null,r.loop_ids=new Map,r.defs_to_safe_ids=new Map,t.walk(r)})),Vt.DEFMETHOD("fixed_value",(function(){var e=this.thedef.fixed;return!e||e instanceof de?e:e()})),on.DEFMETHOD("is_immutable",(function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof Jt}));var Dr=E("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");on.DEFMETHOD("is_declared",(function(e){return!this.definition().undeclared||e.option("unsafe")&&Dr.has(this.name)}));var Nr,wr=E("Infinity NaN undefined");function Or(e){return e instanceof An||e instanceof yn||e instanceof Tn}function kr(e,t){var n,r,s=t.find_parent(Ie).get_defun_scope();!function(){var e=t.self(),i=0;do{if(e instanceof ot||e instanceof at)i++;else if(e instanceof Ce)n=!0;else{if(e instanceof Ie){s=e;break}e instanceof st&&(r=!0)}}while(e=t.parent(i++))}();var o,a=10;do{o=!1,c(e),t.option("dead_code")&&h(e,t),t.option("if_return")&&u(e,t),t.sequences_limit>0&&(m(e,t),E(e,t)),t.option("join_vars")&&T(e),t.option("collapse_vars")&&l(e,t)}while(o&&a-- >0);function l(e,t){if(s.pinned())return e;for(var a,l=[],c=e.length,u=new On((function(e){if(w)return e;if(!N)return e!==f[m]?e:++m<f.length?P(e):(N=!0,(E=function e(t,n,r){var i=u.parent(n);return i instanceof Dt?r&&!(i.left instanceof yt||v.has(i.left.name))?e(i,n+1,r):t:i instanceof Ct?!r||Pr.has(i.operator)&&i.left!==t?t:e(i,n+1,r):i instanceof gt||i instanceof it?t:i instanceof xt?r&&i.condition===t?e(i,n+1,r):t:i instanceof lt?e(i,n+1,!0):i instanceof We?r?e(i,n+1,r):t:i instanceof et?r&&i.condition===t?e(i,n+1,r):t:i instanceof Ce?t:i instanceof Et?e(i,n+1,i.tail_node()!==t):i instanceof _e?e(i,n+1,!0):i instanceof tt||i instanceof pt?t:null}(e,0))===e&&(w=!0),e);var n,i=u.parent();if(e instanceof Dt&&"="!=e.operator&&T.equivalent_to(e.left)||e instanceof Je||e instanceof gt&&T instanceof yt&&T.equivalent_to(e.expression)||e instanceof me||e instanceof Ve||e instanceof Pe&&e.expression instanceof Vt&&e.expression.definition().references.length>1||e instanceof Ce&&!(e instanceof we)||e instanceof qe||e instanceof st||e instanceof Re||e instanceof Ze||e instanceof mt||e instanceof Ft||i instanceof we&&e!==i.init||!C&&e instanceof on&&!e.is_declared(t)&&!Wr.has(e)||e instanceof on&&i instanceof gt&&S(i,In))return w=!0,e;if(y||A&&C||!(i instanceof Ct&&Pr.has(i.operator)&&i.left!==e||i instanceof xt&&i.condition!==e||i instanceof et&&i.condition!==e)||(y=i),k&&!(e instanceof Gt)&&T.equivalent_to(e)){if(y)return w=!0,e;if(Fr(e,i))return _&&O++,e;if(O++,_&&g instanceof pt)return e;if(o=w=!0,t.info("Collapsing {name} [{file}:{line},{col}]",{name:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col}),g instanceof St)return d(bt,g,g);if(g instanceof pt){var a=g.name.definition(),l=g.value;return a.references.length-a.replaced!=1||t.exposed(a)?d(Dt,g,{operator:"=",left:d(on,g.name,g.name),right:l}):(a.replaced++,D&&Or(l)?l.transform(t):yr(i,e,l))}return ar(g,32),g}return(e instanceof gt||e instanceof We&&(b||T instanceof yt||W(T))||e instanceof yt&&(b||e.expression.may_throw_on_access(t))||e instanceof on&&(v.get(e.name)||b&&W(e))||e instanceof pt&&e.value&&(v.has(e.name.name)||b&&W(e.name))||(n=Fr(e.left,e))&&(n instanceof yt||v.has(n.name))||x&&(r?e.has_side_effects(t):function e(t,n){if(t instanceof Dt)return e(t.left,!0);if(t instanceof At)return e(t.expression,!0);if(t instanceof pt)return t.value&&e(t.value);if(n){if(t instanceof Tt)return e(t.expression,!0);if(t instanceof vt)return e(t.expression,!0);if(t instanceof on)return t.definition().scope!==s}return!1}(e)))&&(E=e,e instanceof Ie&&(w=!0)),P(e)}),(function(e){w||(E===e&&(w=!0),y===e&&(y=null))})),h=new On((function(e){if(w)return e;if(!N){if(e!==f[m])return e;if(++m<f.length)return;return N=!0,e}return e instanceof on&&e.name==M.name?(--O||(w=!0),Fr(e,h.parent())?e:(M.replaced++,_.replaced--,g.value)):e instanceof rt||e instanceof Ie?e:void 0}));--c>=0;){0==c&&t.option("unused")&&F();var f=[];for(B(e[c]);l.length>0;){f=l.pop();var m=0,g=f[f.length-1],_=null,E=null,y=null,T=$(g);if(T&&!dr(T)&&!T.has_side_effects(t)){var v=V(g),A=G(T);T instanceof on&&v.set(T.name,!1);var b=j(g),C=K(),x=g.may_throw(t),D=g.name instanceof Xt,N=D,w=!1,O=0,k=!a||!N;if(!k){for(var R=t.self().argnames.lastIndexOf(g.name)+1;!w&&R<a.length;R++)a[R].transform(u);k=!0}for(var I=c;!w&&I<e.length;I++)e[I].transform(u);if(_){var M=g.name.definition();if(w&&M.references.length-M.replaced>O)O=!1;else{for(w=!1,m=0,N=D,I=c;!w&&I<e.length;I++)e[I].transform(h);_.single_use=!1}}O&&!H(g)&&e.splice(c,1)}}}function P(e){if(e instanceof Ie)return e;if(e instanceof tt){e.expression=e.expression.transform(u);for(var t=0,n=e.body.length;!w&&t<n;t++){var r=e.body[t];if(r instanceof it){if(!N){if(r!==f[m])continue;m++}if(r.expression=r.expression.transform(u),!C)break}}return w=!0,e}}function L(e,t,n){var r=!1,i=!(e instanceof $e);return t.walk(new wn((function(t,o){if(r)return!0;if(t instanceof on&&(e.variables.has(t.name)||function(e,t){if(e.global)return!1;let n=e.scope;for(;n&&n!==t;){if(n.variables.has(e.name))return!0;n=n.parent_scope}return!1}(t.definition(),e))){var a=t.definition().scope;if(a!==s)for(;a=a.parent_scope;)if(a===s)return!0;return r=!0}if((n||i)&&t instanceof un)return r=!0;if(t instanceof Ie&&!(t instanceof $e)){var l=i;return i=!1,o(),i=l,!0}}))),r}function F(){var e,n=t.self();if(pr(n)&&!n.name&&!n.uses_arguments&&!n.pinned()&&(e=t.parent())instanceof gt&&e.expression===n&&e.args.every(e=>!(e instanceof Pe))){var r=t.has_directive("use strict");r&&!i(r,n.body)&&(r=!1);var s=n.argnames.length;a=e.args.slice(s);for(var o=new Set,c=s;--c>=0;){var u=n.argnames[c],h=e.args[c];const i=u.definition&&u.definition();if(!(i&&i.orig.length>1||(a.unshift(d(pt,u,{name:u,value:h})),o.has(u.name))))if(o.add(u.name),u instanceof Pe){var p=e.args.slice(c);p.every(e=>!L(n,e,r))&&l.unshift([d(pt,u,{name:u.expression,value:d(wt,e,{elements:p})})])}else h?(h instanceof Le&&h.pinned()||L(n,h,r))&&(h=null):h=d(Tn,u).transform(t),h&&l.unshift([d(pt,u,{name:u,value:h})])}}}function B(e){if(f.push(e),e instanceof Dt)e.left.has_side_effects(t)||l.push(f.slice()),B(e.right);else if(e instanceof Ct)B(e.left),B(e.right);else if(e instanceof gt&&!S(e,In))B(e.expression),e.args.forEach(B);else if(e instanceof it)B(e.expression);else if(e instanceof xt)B(e.condition),B(e.consequent),B(e.alternative);else if(e instanceof lt){var n=e.definitions.length,r=n-200;for(r<0&&(r=0);r<n;r++)B(e.definitions[r])}else e instanceof xe?(B(e.condition),e.body instanceof Te||B(e.body)):e instanceof We?e.value&&B(e.value):e instanceof we?(e.init&&B(e.init),e.condition&&B(e.condition),e.step&&B(e.step),e.body instanceof Te||B(e.body)):e instanceof Oe?(B(e.object),e.body instanceof Te||B(e.body)):e instanceof et?(B(e.condition),e.body instanceof Te||B(e.body),!e.alternative||e.alternative instanceof Te||B(e.alternative)):e instanceof Et?e.expressions.forEach(B):e instanceof _e?B(e.body):e instanceof tt?(B(e.expression),e.body.forEach(B)):e instanceof At?"++"!=e.operator&&"--"!=e.operator||l.push(f.slice()):e instanceof pt&&e.value&&(l.push(f.slice()),B(e.value));f.pop()}function $(e){if(!(e instanceof pt&&e.name instanceof Gt)){const t=e[e instanceof Dt?"left":"expression"];return!fr(t,Wt)&&!fr(t,zt)&&t}var n=e.name.definition();if(i(e.name,n.orig)){var r=n.references.length-n.replaced;if(r)return n.orig.length-n.eliminated>1&&!(e.name instanceof Xt)||(r>1?function(e){var t=e.value;if(t instanceof on&&"arguments"!=t.name){var n=t.definition();if(!n.undeclared)return _=n}}(e):!t.exposed(n))?d(on,e.name,e.name):void 0}}function U(e){return e[e instanceof Dt?"right":"value"]}function V(e){var n=new Map;if(e instanceof At)return n;var r=new wn((function(e){for(var i=e;i instanceof yt;)i=i.expression;(i instanceof on||i instanceof un)&&n.set(i.name,n.get(i.name)||hr(t,r,e,e,0))}));return U(e).walk(r),n}function H(n){if(n.name instanceof Xt){var r=t.parent(),i=t.self().argnames,s=i.indexOf(n.name);if(s<0)r.args.length=Math.min(r.args.length,i.length-1);else{var o=r.args;o[s]&&(o[s]=d(fn,o[s],{value:0}))}return!0}var a=!1;return e[c].transform(new On((function(e,t,r){return a?e:e===n||e.body===n?(a=!0,e instanceof pt?(e.value=e.name instanceof Wt?d(Tn,e.value):null,e):r?p.skip:null):void 0}),(function(e){if(e instanceof Et)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}})))}function G(e){for(;e instanceof yt;)e=e.expression;return e instanceof on&&e.definition().scope===s&&!(n&&(v.has(e.name)||g instanceof At||g instanceof Dt&&"="!=g.operator))}function j(e){return e instanceof At?Lr.has(e.operator):U(e).has_side_effects(t)}function K(){if(b)return!1;if(_)return!0;if(T instanceof on){var e=T.definition();if(e.references.length-e.replaced==(g instanceof pt?1:2))return!0}return!1}function W(e){if(!e.definition)return!0;var t=e.definition();return!(1==t.orig.length&&t.orig[0]instanceof qt||t.scope.get_defun_scope()===s&&t.references.every(e=>{var t=e.scope.get_defun_scope();return"Scope"==t.TYPE&&(t=t.parent_scope),t===s}))}}function c(e){for(var t=[],n=0;n<e.length;){var r=e[n];r instanceof ve&&r.body.every(br)?(o=!0,c(r.body),e.splice(n,1,...r.body),n+=r.body.length):r instanceof Ae?(o=!0,e.splice(n,1)):r instanceof ge?t.indexOf(r.value)<0?(n++,t.push(r.value)):(o=!0,e.splice(n,1)):n++}}function u(e,t){for(var n=t.self(),r=function(e){for(var t=0,n=e.length;--n>=0;){var r=e[n];if(r instanceof et&&r.body instanceof ze&&++t>1)return!0}return!1}(e),i=n instanceof Le,s=e.length;--s>=0;){var a=e[s],l=T(s),c=e[l];if(i&&!c&&a instanceof ze){if(!a.value){o=!0,e.splice(s,1);continue}if(a.value instanceof bt&&"void"==a.value.operator){o=!0,e[s]=d(_e,a,{body:a.value.expression});continue}}if(a instanceof et){var u;if(_(u=zr(a.body))){u.label&&g(u.label.thedef.references,u),o=!0,(a=a.clone()).condition=a.condition.negate(t);var h=y(a.body,u);a.body=d(ve,a,{body:vr(a.alternative).concat(E())}),a.alternative=d(ve,a,{body:h}),e[s]=a.transform(t);continue}if(_(u=zr(a.alternative))){u.label&&g(u.label.thedef.references,u),o=!0,(a=a.clone()).body=d(ve,a.body,{body:vr(a.body).concat(E())}),h=y(a.alternative,u),a.alternative=d(ve,a.alternative,{body:h}),e[s]=a.transform(t);continue}}if(a instanceof et&&a.body instanceof ze){var p=a.body.value;if(!p&&!a.alternative&&(i&&!c||c instanceof ze&&!c.value)){o=!0,e[s]=d(_e,a.condition,{body:a.condition});continue}if(p&&!a.alternative&&c instanceof ze&&c.value){o=!0,(a=a.clone()).alternative=c,e[s]=a.transform(t),e.splice(l,1);continue}if(p&&!a.alternative&&(!c&&i&&r||c instanceof ze)){o=!0,(a=a.clone()).alternative=c||d(ze,a,{value:null}),e[s]=a.transform(t),c&&e.splice(l,1);continue}var m=e[v(s)];if(t.option("sequences")&&i&&!a.alternative&&m instanceof et&&m.body instanceof ze&&T(l)==e.length&&c instanceof _e){o=!0,(a=a.clone()).alternative=d(ve,c,{body:[c,d(ze,c,{value:null})]}),e[s]=a.transform(t),e.splice(l,1);continue}}}function _(r){if(!r)return!1;for(var o=s+1,a=e.length;o<a;o++){var l=e[o];if(l instanceof ht||l instanceof ut)return!1}var c=r instanceof qe?t.loopcontrol_target(r):null;return r instanceof ze&&i&&function(e){return!e||e instanceof bt&&"void"==e.operator}(r.value)||r instanceof Qe&&n===Sr(c)||r instanceof Ye&&c instanceof ve&&n===c}function E(){var t=e.slice(s+1);return e.length=s+1,t.filter((function(t){return!(t instanceof Ue&&(e.push(t),1))}))}function y(e,t){var n=vr(e).slice(0,-1);return t.value&&n.push(d(_e,t.value,{body:t.value.expression})),n}function T(t){for(var n=t+1,r=e.length;n<r;n++){var i=e[n];if(!(i instanceof ct&&f(i)))break}return n}function v(t){for(var n=t;--n>=0;){var r=e[n];if(!(r instanceof ct&&f(r)))break}return n}}function h(e,t){for(var n,r=t.self(),i=0,s=0,a=e.length;i<a;i++){var l=e[i];if(l instanceof qe){var c=t.loopcontrol_target(l);l instanceof Ye&&!(c instanceof Ce)&&Sr(c)===r||l instanceof Qe&&Sr(c)===r?l.label&&g(l.label.thedef.references,l):e[s++]=l}else e[s++]=l;if(zr(l)){n=e.slice(i+1);break}}e.length=s,o=s!=a,n&&n.forEach((function(n){Rr(t,n,e)}))}function f(e){return e.definitions.every(e=>!e.value)}function m(e,t){if(!(e.length<2)){for(var n=[],r=0,i=0,s=e.length;i<s;i++){var a=e[i];if(a instanceof _e){n.length>=t.sequences_limit&&c();var l=a.body;n.length>0&&(l=l.drop_side_effect_free(t)),l&&Tr(n,l)}else a instanceof lt&&f(a)||a instanceof Ue||c(),e[r++]=a}c(),e.length=r,r!=s&&(o=!0)}function c(){if(n.length){var t=_r(n[0],n);e[r++]=d(_e,t,{body:t}),n=[]}}}function _(e,t){if(!(e instanceof ve))return e;for(var n=null,r=0,i=e.body.length;r<i;r++){var s=e.body[r];if(s instanceof ct&&f(s))t.push(s);else{if(n)return!1;n=s}}return n}function E(e,t){function n(e){i--,o=!0;var n=r.body;return _r(n,[n,e]).transform(t)}for(var r,i=0,s=0;s<e.length;s++){var a=e[s];if(r&&(a instanceof We?a.value=n(a.value||d(Tn,a).transform(t)):a instanceof we?a.init instanceof lt||xn(r.body,e=>e instanceof Ie||(e instanceof Ct&&"in"===e.operator?Nn:void 0))||(a.init?a.init=n(a.init):(a.init=r.body,i--,o=!0)):a instanceof Oe?a.init instanceof ht||a.init instanceof ut||(a.object=n(a.object)):a instanceof et?a.condition=n(a.condition):(a instanceof tt||a instanceof Re)&&(a.expression=n(a.expression))),t.option("conditionals")&&a instanceof et){var l=[],c=_(a.body,l),u=_(a.alternative,l);if(!1!==c&&!1!==u&&l.length>0){var h=l.length;l.push(d(et,a,{condition:a.condition,body:c||d(Ae,a.body),alternative:u})),l.unshift(i,1),[].splice.apply(e,l),s+=h,i+=h+1,r=null,o=!0;continue}}e[i++]=a,r=a instanceof _e?a:null}e.length=i}function y(e,n){if(e instanceof lt){var r,i=e.definitions[e.definitions.length-1];if(i.value instanceof Ot&&(n instanceof Dt?r=[n]:n instanceof Et&&(r=n.expressions.slice()),r)){var o=!1;do{var a=r[0];if(!(a instanceof Dt))break;if("="!=a.operator)break;if(!(a.left instanceof yt))break;var l=a.left.expression;if(!(l instanceof on))break;if(i.name.name!=l.name)break;if(!a.right.is_constant_expression(s))break;var c=a.left.property;if(c instanceof de&&(c=c.evaluate(t)),c instanceof de)break;c=""+c;var u=t.option("ecma")<2015&&t.has_directive("use strict")?function(e){return e.key!=c&&e.key&&e.key.name!=c}:function(e){return e.key&&e.key.name!=c};if(!i.value.properties.every(u))break;var h=i.value.properties.filter((function(e){return e.key===c}))[0];h?h.value=new Et({start:h.start,expressions:[h.value.clone(),a.right.clone()],end:h.end}):i.value.properties.push(d(Rt,a,{key:c,value:a.right})),r.shift(),o=!0}while(r.length);return o&&r}}}function T(e){for(var t,n=0,r=-1,i=e.length;n<i;n++){var s=e[n],a=e[r];if(s instanceof lt)a&&a.TYPE==s.TYPE?(a.definitions=a.definitions.concat(s.definitions),o=!0):t&&t.TYPE==s.TYPE&&f(s)?(t.definitions=t.definitions.concat(s.definitions),o=!0):(e[++r]=s,t=s);else if(s instanceof We)s.value=c(s.value);else if(s instanceof we)(l=y(a,s.init))?(o=!0,s.init=l.length?_r(s.init,l):null,e[++r]=s):a instanceof ct&&(!s.init||s.init.TYPE==a.TYPE)?(s.init&&(a.definitions=a.definitions.concat(s.init.definitions)),s.init=a,e[r]=s,o=!0):t&&s.init&&t.TYPE==s.init.TYPE&&f(s.init)?(t.definitions=t.definitions.concat(s.init.definitions),s.init=null,e[++r]=s,o=!0):e[++r]=s;else if(s instanceof Oe)s.object=c(s.object);else if(s instanceof et)s.condition=c(s.condition);else if(s instanceof _e){var l;if(l=y(a,s.body)){if(o=!0,!l.length)continue;s.body=_r(s.body,l)}e[++r]=s}else s instanceof tt||s instanceof Re?s.expression=c(s.expression):e[++r]=s}function c(t){e[++r]=s;var n=y(a,t);return n?(o=!0,n.length?_r(t,n):t instanceof Et?t.tail_node().left:t.left):t}e.length=r+1}}function Rr(e,t,n){t instanceof Ue||e.warn("Dropping unreachable code [{file}:{line},{col}]",t.start),xn(t,r=>r instanceof ct?(e.warn("Declarations in unreachable code! [{file}:{line},{col}]",r.start),r.remove_initializers(),n.push(r),!0):r instanceof Ue&&(r===t||!e.has_directive("use strict"))?(n.push(r===t?r:d(ct,r,{definitions:[d(pt,r,{name:d(jt,r.name,r.name),value:null})]})),!0):r instanceof Ie||void 0)}function Ir(e){return e instanceof pn?e.getValue():e instanceof bt&&"void"==e.operator&&e.expression instanceof pn?void 0:e}function Mr(e,t){return sr(e,8)||e instanceof Tn||e instanceof bt&&"void"==e.operator&&!e.expression.has_side_effects(t)}!function(e){function t(e){return/strict/.test(e.option("pure_getters"))}de.DEFMETHOD("may_throw_on_access",(function(e){return!e.option("pure_getters")||this._dot_throw(e)})),e(de,t),e(En,c),e(Tn,c),e(pn,l),e(wt,l),e(Ot,(function(e){if(!t(e))return!1;for(var n=this.properties.length;--n>=0;)if(this.properties[n]._dot_throw(e))return!0;return!1})),e(Ft,l),e(kt,l),e(Mt,c),e(Pe,(function(e){return this.expression._dot_throw(e)})),e(Be,l),e($e,l),e(St,l),e(bt,(function(){return"void"==this.operator})),e(Ct,(function(e){return("&&"==this.operator||"||"==this.operator||"??"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))})),e(Dt,(function(e){return"="==this.operator&&this.right._dot_throw(e)})),e(xt,(function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)})),e(Tt,(function(e){return!(!t(e)||this.expression instanceof Be&&"prototype"==this.property)})),e(Et,(function(e){return this.tail_node()._dot_throw(e)})),e(on,(function(e){if("arguments"===this.name)return!1;if(sr(this,8))return!0;if(!t(e))return!1;if(xr(this)&&this.is_declared(e))return!1;if(this.is_immutable())return!1;var n=this.fixed_value();return!n||n._dot_throw(e)}))}((function(e,t){e.DEFMETHOD("_dot_throw",t)})),function(e){const t=E("! delete"),n=E("in instanceof == != === !== < <= >= >");e(de,l),e(bt,(function(){return t.has(this.operator)})),e(Ct,(function(){return n.has(this.operator)||Pr.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()})),e(xt,(function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()})),e(Dt,(function(){return"="==this.operator&&this.right.is_boolean()})),e(Et,(function(){return this.tail_node().is_boolean()})),e(Cn,c),e(Sn,c)}((function(e,t){e.DEFMETHOD("is_boolean",t)})),function(e){e(de,l),e(fn,c);var t=E("+ - ~ ++ --");e(At,(function(){return t.has(this.operator)}));var n=E("- * / % & | ^ << >> >>>");e(Ct,(function(e){return n.has(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)})),e(Dt,(function(e){return n.has(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)})),e(Et,(function(e){return this.tail_node().is_number(e)})),e(xt,(function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)}))}((function(e,t){e.DEFMETHOD("is_number",t)})),(Nr=function(e,t){e.DEFMETHOD("is_string",t)})(de,l),Nr(dn,c),Nr(Ge,c),Nr(bt,(function(){return"typeof"==this.operator})),Nr(Ct,(function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))})),Nr(Dt,(function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)})),Nr(Et,(function(e){return this.tail_node().is_string(e)})),Nr(xt,(function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)}));var Pr=E("&& || ??"),Lr=E("delete ++ --");function Fr(e,t){return t instanceof At&&Lr.has(t.operator)?t.expression:t instanceof Dt&&t.left===e?e:void 0}function Br(e,t){return e.size()>t.size()?t:e}function $r(e,t){return Br(d(_e,e,{body:e}),d(_e,t,{body:t})).body}function Ur(e,t,n){return(Fn(e)?$r:Br)(t,n)}function Vr(e){const t=new Map;for(var n of Object.keys(e))t.set(n,E(e[n]));return t}!function(e){function t(e,t){e.warn("global_defs "+t.print_to_string()+" redefined [{file}:{line},{col}]",t.start)}Me.DEFMETHOD("resolve_defines",(function(e){return e.option("global_defs")?(this.figure_out_scope({ie8:e.option("ie8")}),this.transform(new On((function(n){var r=n._find_defs(e,"");if(r){for(var i,s=0,o=n;(i=this.parent(s++))&&i instanceof yt&&i.expression===o;)o=i;if(!Fr(o,i))return r;t(e,n)}})))):this})),e(de,a),e(Tt,(function(e,t){return this.expression._find_defs(e,"."+this.property+t)})),e(Gt,(function(e){this.global()&&T(e.option("global_defs"),this.name)&&t(e,this)})),e(on,(function(e,t){if(this.global()){var n=e.option("global_defs"),r=this.name+t;return T(n,r)?function e(t,n){if(t instanceof de)return d(t.CTOR,n,t);if(Array.isArray(t))return d(wt,n,{elements:t.map((function(t){return e(t,n)}))});if(t&&"object"==typeof t){var r=[];for(var i in t)T(t,i)&&r.push(d(Rt,n,{key:i,value:e(t[i],n)}));return d(Ot,n,{properties:r})}return Er(t,n)}(n[r],this):void 0}}))}((function(e,t){e.DEFMETHOD("_find_defs",t)}));var Hr=["constructor","toString","valueOf"],Gr=Vr({Array:["indexOf","join","lastIndexOf","slice"].concat(Hr),Boolean:Hr,Function:Hr,Number:["toExponential","toFixed","toPrecision"].concat(Hr),Object:Hr,RegExp:["test"].concat(Hr),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(Hr)}),jr=Vr({Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]});!function(e){de.DEFMETHOD("evaluate",(function(e){if(!e.option("evaluate"))return this;var t=this._eval(e,1);return!t||t instanceof RegExp?t:"function"==typeof t||"object"==typeof t?this:t}));var t=E("! ~ - + void");de.DEFMETHOD("is_constant",(function(){return this instanceof pn?!(this instanceof gn):this instanceof bt&&this.expression instanceof pn&&t.has(this.operator)})),e(fe,(function(){throw new Error(m("Cannot evaluate a statement [{file}:{line},{col}]",this.start))})),e(Le,u),e(Ft,u),e(de,u),e(pn,(function(){return this.getValue()})),e(mn,u),e(gn,(function(e){let t=e.evaluated_regexps.get(this);if(void 0===t){try{t=(0,eval)(this.print_to_string())}catch(e){t=null}e.evaluated_regexps.set(this,t)}return t||this})),e(Ge,(function(){return 1!==this.segments.length?this:this.segments[0].value})),e(Be,(function(e){if(e.option("unsafe")){var t=function(){};return t.node=this,t.toString=function(){return this.node.print_to_string()},t}return this})),e(wt,(function(e,t){if(e.option("unsafe")){for(var n=[],r=0,i=this.elements.length;r<i;r++){var s=this.elements[r],o=s._eval(e,t);if(s===o)return this;n.push(o)}return n}return this})),e(Ot,(function(e,t){if(e.option("unsafe")){for(var n={},r=0,i=this.properties.length;r<i;r++){var s=this.properties[r];if(s instanceof Pe)return this;var o=s.key;if(o instanceof Vt)o=o.name;else if(o instanceof de&&(o=o._eval(e,t))===s.key)return this;if("function"==typeof Object.prototype[o])return this;if(!(s.value instanceof Be)&&(n[o]=s.value._eval(e,t),n[o]===s.value))return this}return n}return this}));var n=E("! typeof void");e(bt,(function(e,t){var r=this.expression;if(e.option("typeofs")&&"typeof"==this.operator&&(r instanceof Le||r instanceof on&&r.fixed_value()instanceof Le))return"function";if(n.has(this.operator)||t++,(r=r._eval(e,t))===this.expression)return this;switch(this.operator){case"!":return!r;case"typeof":return r instanceof RegExp?this:typeof r;case"void":return;case"~":return~r;case"-":return-r;case"+":return+r}return this}));var r=E("&& || ?? === !==");e(Ct,(function(e,t){r.has(this.operator)||t++;var n=this.left._eval(e,t);if(n===this.left)return this;var i,s=this.right._eval(e,t);if(s===this.right)return this;switch(this.operator){case"&&":i=n&&s;break;case"||":i=n||s;break;case"??":i=null!=n?n:s;break;case"|":i=n|s;break;case"&":i=n&s;break;case"^":i=n^s;break;case"+":i=n+s;break;case"*":i=n*s;break;case"**":i=Math.pow(n,s);break;case"/":i=n/s;break;case"%":i=n%s;break;case"-":i=n-s;break;case"<<":i=n<<s;break;case">>":i=n>>s;break;case">>>":i=n>>>s;break;case"==":i=n==s;break;case"===":i=n===s;break;case"!=":i=n!=s;break;case"!==":i=n!==s;break;case"<":i=n<s;break;case"<=":i=n<=s;break;case">":i=n>s;break;case">=":i=n>=s;break;default:return this}return isNaN(i)&&e.find_parent(Re)?this:i})),e(xt,(function(e,t){var n=this.condition._eval(e,t);if(n===this.condition)return this;var r=n?this.consequent:this.alternative,i=r._eval(e,t);return i===r?this:i})),e(on,(function(e,t){var n,r=this.fixed_value();if(!r)return this;if(T(r,"_eval"))n=r._eval();else{if(this._eval=u,n=r._eval(e,t),delete this._eval,n===r)return this;r._eval=function(){return n}}if(n&&"object"==typeof n){var i=this.definition().escaped;if(i&&t>i)return this}return n}));var i={Array,Math,Number,Object,String},s=Vr({Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]});e(yt,(function(e,t){if(e.option("unsafe")){var n=this.property;if(n instanceof de&&(n=n._eval(e,t))===this.property)return this;var r,o=this.expression;if(xr(o)){var a,l="hasOwnProperty"===o.name&&"call"===n&&(a=e.parent()&&e.parent().args)&&a&&a[0]&&a[0].evaluate(e);if(null==(l=l instanceof Tt?l.expression:l)||l.thedef&&l.thedef.undeclared)return this.clone();var c=s.get(o.name);if(!c||!c.has(n))return this;r=i[o.name]}else{if(!(r=o._eval(e,t+1))||r===o||!T(r,n))return this;if("function"==typeof r)switch(n){case"name":return r.node.name?r.node.name.name:"";case"length":return r.node.argnames.length;default:return this}}return r[n]}return this})),e(gt,(function(e,t){var n=this.expression;if(e.option("unsafe")&&n instanceof yt){var r,s=n.property;if(s instanceof de&&(s=s._eval(e,t))===n.property)return this;var o=n.expression;if(xr(o)){var a="hasOwnProperty"===o.name&&"call"===s&&this.args[0]&&this.args[0].evaluate(e);if(null==(a=a instanceof Tt?a.expression:a)||a.thedef&&a.thedef.undeclared)return this.clone();var l=jr.get(o.name);if(!l||!l.has(s))return this;r=i[o.name]}else{if((r=o._eval(e,t+1))===o||!r)return this;var c=Gr.get(r.constructor.name);if(!c||!c.has(s))return this}for(var u=[],h=0,p=this.args.length;h<p;h++){var d=this.args[h],f=d._eval(e,t);if(d===f)return this;u.push(f)}try{return r[s].apply(r,u)}catch(t){e.warn("Error evaluating {code} [{file}:{line},{col}]",{code:this.print_to_string(),file:this.start.file,line:this.start.line,col:this.start.col})}}return this})),e(_t,u)}((function(e,t){e.DEFMETHOD("_eval",t)})),function(e){function t(e){return d(bt,e,{operator:"!",expression:e})}function n(e,n,r){var i=t(e);if(r){var s=d(_e,n,{body:n});return Br(i,s)===s?n:i}return Br(i,n)}e(de,(function(){return t(this)})),e(fe,(function(){throw new Error("Cannot negate a statement")})),e(Be,(function(){return t(this)})),e($e,(function(){return t(this)})),e(bt,(function(){return"!"==this.operator?this.expression:t(this)})),e(Et,(function(e){var t=this.expressions.slice();return t.push(t.pop().negate(e)),_r(this,t)})),e(xt,(function(e,t){var r=this.clone();return r.consequent=r.consequent.negate(e),r.alternative=r.alternative.negate(e),n(this,r,t)})),e(Ct,(function(e,r){var i=this.clone(),s=this.operator;if(e.option("unsafe_comps"))switch(s){case"<=":return i.operator=">",i;case"<":return i.operator=">=",i;case">=":return i.operator="<",i;case">":return i.operator="<=",i}switch(s){case"==":return i.operator="!=",i;case"!=":return i.operator="==",i;case"===":return i.operator="!==",i;case"!==":return i.operator="===",i;case"&&":return i.operator="||",i.left=i.left.negate(e,r),i.right=i.right.negate(e),n(this,i,r);case"||":return i.operator="&&",i.left=i.left.negate(e,r),i.right=i.right.negate(e),n(this,i,r);case"??":return i.right=i.right.negate(e),n(this,i,r)}return t(this)}))}((function(e,t){e.DEFMETHOD("negate",(function(e,n){return t.call(this,e,n)}))}));var Kr=E("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");gt.DEFMETHOD("is_expr_pure",(function(e){if(e.option("unsafe")){var t=this.expression,n=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&"hasOwnProperty"===t.expression.name&&(null==n||n.thedef&&n.thedef.undeclared))return!1;if(xr(t)&&Kr.has(t.name))return!0;let r;if(t instanceof Tt&&xr(t.expression)&&(r=jr.get(t.expression.name))&&r.has(t.property))return!0}return!!S(this,kn)||!e.pure_funcs(this)})),de.DEFMETHOD("is_call_pure",l),Tt.DEFMETHOD("is_call_pure",(function(e){if(!e.option("unsafe"))return;const t=this.expression;let n;return t instanceof wt?n=Gr.get("Array"):t.is_boolean()?n=Gr.get("Boolean"):t.is_number(e)?n=Gr.get("Number"):t instanceof gn?n=Gr.get("RegExp"):t.is_string(e)?n=Gr.get("String"):this.may_throw_on_access(e)||(n=Gr.get("Object")),n&&n.has(this.property)}));const Wr=new Set(["Number","String","Array","Object","Function","Promise"]);function zr(e){return e&&e.aborts()}!function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return!0;return!1}e(de,c),e(Ae,l),e(pn,l),e(un,l),e(Te,(function(e){return t(this.body,e)})),e(gt,(function(e){return!(this.is_expr_pure(e)||this.expression.is_call_pure(e)&&!this.expression.has_side_effects(e))||t(this.args,e)})),e(tt,(function(e){return this.expression.has_side_effects(e)||t(this.body,e)})),e(it,(function(e){return this.expression.has_side_effects(e)||t(this.body,e)})),e(st,(function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)})),e(et,(function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)})),e(Se,(function(e){return this.body.has_side_effects(e)})),e(_e,(function(e){return this.body.has_side_effects(e)})),e(Le,l),e(Ft,(function(e){return!(!this.extends||!this.extends.has_side_effects(e))||t(this.properties,e)})),e(Ct,(function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)})),e(Dt,c),e(xt,(function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)})),e(At,(function(e){return Lr.has(this.operator)||this.expression.has_side_effects(e)})),e(on,(function(e){return!this.is_declared(e)&&!Wr.has(this.name)})),e(Qt,l),e(Gt,l),e(Ot,(function(e){return t(this.properties,e)})),e(kt,(function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.value.has_side_effects(e)})),e(Bt,(function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.static&&this.value&&this.value.has_side_effects(e)})),e(Lt,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(Mt,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(It,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(wt,(function(e){return t(this.elements,e)})),e(Tt,(function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)})),e(vt,(function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)})),e(Et,(function(e){return t(this.expressions,e)})),e(lt,(function(e){return t(this.definitions,e)})),e(pt,(function(){return this.value})),e(je,l),e(Ge,(function(e){return t(this.segments,e)}))}((function(e,t){e.DEFMETHOD("has_side_effects",t)})),function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].may_throw(t))return!0;return!1}e(de,c),e(pn,l),e(Ae,l),e(Le,l),e(Gt,l),e(un,l),e(Ft,(function(e){return!(!this.extends||!this.extends.may_throw(e))||t(this.properties,e)})),e(wt,(function(e){return t(this.elements,e)})),e(Dt,(function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof on)&&this.left.may_throw(e)})),e(Ct,(function(e){return this.left.may_throw(e)||this.right.may_throw(e)})),e(Te,(function(e){return t(this.body,e)})),e(gt,(function(e){return!!t(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||!(this.expression instanceof Le)||t(this.expression.body,e))})),e(it,(function(e){return this.expression.may_throw(e)||t(this.body,e)})),e(xt,(function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)})),e(lt,(function(e){return t(this.definitions,e)})),e(Tt,(function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)})),e(et,(function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)})),e(Se,(function(e){return this.body.may_throw(e)})),e(Ot,(function(e){return t(this.properties,e)})),e(kt,(function(e){return this.value.may_throw(e)})),e(Bt,(function(e){return this.computed_key()&&this.key.may_throw(e)||this.static&&this.value&&this.value.may_throw(e)})),e(Lt,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(Mt,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(It,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(ze,(function(e){return this.value&&this.value.may_throw(e)})),e(Et,(function(e){return t(this.expressions,e)})),e(_e,(function(e){return this.body.may_throw(e)})),e(vt,(function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)})),e(tt,(function(e){return this.expression.may_throw(e)||t(this.body,e)})),e(on,(function(e){return!this.is_declared(e)&&!Wr.has(this.name)})),e(Qt,l),e(st,(function(e){return this.bcatch?this.bcatch.may_throw(e):t(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)})),e(At,(function(e){return!("typeof"==this.operator&&this.expression instanceof on)&&this.expression.may_throw(e)})),e(pt,(function(e){return!!this.value&&this.value.may_throw(e)}))}((function(e,t){e.DEFMETHOD("may_throw",t)})),function(e){function t(e){let t=!0;return xn(this,n=>{if(n instanceof on){if(sr(this,16))return t=!1,Nn;var r=n.definition();if(i(r,this.enclosed)&&!this.variables.has(r.name)){if(e){var s=e.find_variable(n);if(r.undeclared?!s:s===r)return t="f",!0}return t=!1,Nn}return!0}if(n instanceof un&&this instanceof $e)return t=!1,Nn}),t}e(de,l),e(pn,c),e(Ft,(function(e){if(this.extends&&!this.extends.is_constant_expression(e))return!1;for(const t of this.properties){if(t.computed_key()&&!t.key.is_constant_expression(e))return!1;if(t.static&&t.value&&!t.value.is_constant_expression(e))return!1}return t.call(this,e)})),e(Le,t),e(At,(function(){return this.expression.is_constant_expression()})),e(Ct,(function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()})),e(wt,(function(){return this.elements.every(e=>e.is_constant_expression())})),e(Ot,(function(){return this.properties.every(e=>e.is_constant_expression())})),e(kt,(function(){return!(this.key instanceof de)&&this.value.is_constant_expression()}))}((function(e,t){e.DEFMETHOD("is_constant_expression",t)})),function(e){function t(){for(var e=0;e<this.body.length;e++)if(zr(this.body[e]))return this.body[e];return null}e(fe,h),e(Ke,u),e(ft,(function(){return null})),e(ve,t),e(nt,t),e(et,(function(){return this.alternative&&zr(this.body)&&zr(this.alternative)&&this}))}((function(e,t){e.DEFMETHOD("aborts",t)}));var Xr=new Set(["use asm","use strict"]);function qr(e,t){return kr(e.body,t),t.option("side_effects")&&1==e.body.length&&e.body[0]===t.has_directive("use strict")&&(e.body.length=0),e}cr(ge,(function(e,t){return!t.option("directives")||Xr.has(e.value)&&t.has_directive(e.value)===e?e:d(Ae,e)})),cr(me,(function(e,t){return t.option("drop_debugger")?d(Ae,e):e})),cr(Se,(function(e,t){return e.body instanceof Ye&&t.loopcontrol_target(e.body)===e.body?d(Ae,e):0==e.label.references.length?e.body:e})),cr(Te,(function(e,t){return kr(e.body,t),e})),cr(ve,(function(e,t){switch(kr(e.body,t),e.body.length){case 1:if(!t.has_directive("use strict")&&t.parent()instanceof et&&!((n=e.body[0])instanceof ht||n instanceof ut||n instanceof Ft)||br(e.body[0]))return e.body[0];break;case 0:return d(Ae,e)}var n;return e})),cr(Le,qr);const Yr=/keep_assign/;function Qr(e,t){var n=!1,r=new wn((function(t){return!!(n||t instanceof Ie)||(t instanceof qe&&r.loopcontrol_target(t)===e?n=!0:void 0)}));return t instanceof Se&&r.push(t),r.push(e),e.body.walk(r),n}function Jr(e,t){return t.top_retain&&e instanceof Ue&&sr(e,1024)&&e.name&&t.top_retain(e.name)}Ie.DEFMETHOD("drop_unused",(function(e){if(!e.option("unused"))return;if(e.has_directive("use asm"))return;var t=this;if(t.pinned())return;var n=!(t instanceof Me)||e.toplevel.funcs,r=!(t instanceof Me)||e.toplevel.vars;const i=Yr.test(e.option("unused"))?l:function(e){return e instanceof Dt&&(sr(e,32)||"="==e.operator)?e.left:e instanceof At&&sr(e,32)?e.expression:void 0};var s=new Map,o=new Map;t instanceof Me&&e.top_retain&&t.variables.forEach((function(t){e.top_retain(t)&&!s.has(t.id)&&s.set(t.id,t)}));var a=new Map,c=new Map,u=this,h=new wn((function(i,l){if(i instanceof Le&&i.uses_arguments&&!h.has_directive("use strict")&&i.argnames.forEach((function(e){if(e instanceof Gt){var t=e.definition();s.has(t.id)||s.set(t.id,t)}})),i!==t){if(i instanceof Ue||i instanceof $t){var p=i.name.definition();if((h.parent()instanceof mt||!n&&u===t)&&p.global&&!s.has(p.id)&&s.set(p.id,p),i instanceof $t){i.extends&&(i.extends.has_side_effects(e)||i.extends.may_throw(e))&&i.extends.walk(h);for(const t of i.properties)(t.has_side_effects(e)||t.may_throw(e))&&t.walk(h)}return y(c,p.id,i),!0}if(i instanceof Xt&&u===t&&y(a,i.definition().id,i),i instanceof lt&&u===t){const t=h.parent()instanceof mt;return i.definitions.forEach((function(n){if(n.name instanceof jt&&y(a,n.name.definition().id,n),!t&&r||xn(n.name,e=>{if(e instanceof Gt){const n=e.definition();!t&&!n.global||s.has(n.id)||s.set(n.id,n)}}),n.value){if(n.name instanceof Ve)n.walk(h);else{var i=n.name.definition();y(c,i.id,n.value),i.chained||n.name.fixed_value()!==n.value||o.set(i.id,n)}n.value.has_side_effects(e)&&n.value.walk(h)}})),!0}return m(i,l)}}));t.walk(h),h=new wn(m),s.forEach((function(e){var t=c.get(e.id);t&&t.forEach((function(e){e.walk(h)}))}));var f=new On((function(l,c,h){var m=f.parent();if(r){const e=i(l);if(e instanceof on){var _=e.definition(),E=s.has(_.id);if(l instanceof Dt){if(!E||o.has(_.id)&&o.get(_.id)!==l)return yr(m,l,l.right.transform(f))}else if(!E)return h?p.skip:d(fn,l,{value:0})}}if(u===t){if(l.name&&(l instanceof Ut&&!v(e.option("keep_classnames"),(_=l.name.definition()).name)||l instanceof Be&&!v(e.option("keep_fnames"),(_=l.name.definition()).name))&&(!s.has(_.id)||_.orig.length>1)&&(l.name=null),l instanceof Le&&!(l instanceof Fe))for(var y=!e.option("keep_fargs"),T=l.argnames,A=T.length;--A>=0;){var b=T[A];b instanceof Pe&&(b=b.expression),b instanceof Nt&&(b=b.left),b instanceof Ve||s.has(b.definition().id)?y=!1:(or(b,1),y&&(T.pop(),e[b.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",O(b))))}if((l instanceof Ue||l instanceof $t)&&l!==t){const t=l.name.definition();if(!(t.global&&!n||s.has(t.id))){if(e[l.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",O(l.name)),t.eliminated++,l instanceof $t){const t=l.drop_side_effect_free(e);if(t)return d(_e,l,{body:t})}return h?p.skip:d(Ae,l)}}if(l instanceof lt&&!(m instanceof Oe&&m.init===l)){var S=!(m instanceof Me||l instanceof ct),C=[],x=[],D=[],N=[];switch(l.definitions.forEach((function(t){t.value&&(t.value=t.value.transform(f));var n=t.name instanceof Ve,i=n?new zn(null,{name:"<destructure>"}):t.name.definition();if(S&&i.global)return D.push(t);if(!r&&!S||n&&(t.name.names.length||t.name.is_array||1!=e.option("pure_getters"))||s.has(i.id)){if(t.value&&o.has(i.id)&&o.get(i.id)!==t&&(t.value=t.value.drop_side_effect_free(e)),t.name instanceof jt){var c=a.get(i.id);if(c.length>1&&(!t.value||i.orig.indexOf(t.name)>i.eliminated)){if(e.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",O(t.name)),t.value){var u=d(on,t.name,t.name);i.references.push(u);var h=d(Dt,t,{operator:"=",left:u,right:t.value});o.get(i.id)===t&&o.set(i.id,h),N.push(h.transform(f))}return g(c,t),void i.eliminated++}}t.value?(N.length>0&&(D.length>0?(N.push(t.value),t.value=_r(t.value,N)):C.push(d(_e,l,{body:_r(l,N)})),N=[]),D.push(t)):x.push(t)}else if(i.orig[0]instanceof tn)(p=t.value&&t.value.drop_side_effect_free(e))&&N.push(p),t.value=null,x.push(t);else{var p;(p=t.value&&t.value.drop_side_effect_free(e))?(n||e.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",O(t.name)),N.push(p)):n||e[t.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",O(t.name)),i.eliminated++}})),(x.length>0||D.length>0)&&(l.definitions=x.concat(D),C.push(l)),N.length>0&&C.push(d(_e,l,{body:_r(l,N)})),C.length){case 0:return h?p.skip:d(Ae,l);case 1:return C[0];default:return h?p.splice(C):d(ve,l,{body:C})}}if(l instanceof we)return c(l,this),l.init instanceof ve&&(w=l.init,l.init=w.body.pop(),w.body.push(l)),l.init instanceof _e?l.init=l.init.body:Ar(l.init)&&(l.init=null),w?h?p.splice(w.body):w:l;if(l instanceof Se&&l.body instanceof we){if(c(l,this),l.body instanceof ve){var w=l.body;return l.body=w.body.pop(),w.body.push(l),h?p.splice(w.body):w}return l}if(l instanceof ve)return c(l,this),h&&l.body.every(br)?p.splice(l.body):l;if(l instanceof Ie){const e=u;return u=l,c(l,this),u=e,l}}function O(e){return{name:e.name,file:e.start.file,line:e.start.line,col:e.start.col}}}));function m(e,n){var r;const a=i(e);if(a instanceof on&&!fr(e.left,Kt)&&t.variables.get(a.name)===(r=a.definition()))return e instanceof Dt&&(e.right.walk(h),r.chained||e.left.fixed_value()!==e.right||o.set(r.id,e)),!0;if(e instanceof on){if(r=e.definition(),!s.has(r.id)&&(s.set(r.id,r),r.orig[0]instanceof tn)){const e=r.scope.is_block_scope()&&r.scope.get_defun_scope().variables.get(r.name);e&&s.set(e.id,e)}return!0}if(e instanceof Ie){var l=u;return u=e,n(),u=l,!0}}t.transform(f)})),Ie.DEFMETHOD("hoist_declarations",(function(e){var t=this;if(e.has_directive("use asm"))return t;if(!Array.isArray(t.body))return t;var n=e.option("hoist_funs"),r=e.option("hoist_vars");if(n||r){var i=[],s=[],o=new Map,a=0,l=0;xn(t,e=>e instanceof Ie&&e!==t||(e instanceof ct?(++l,!0):void 0)),r=r&&l>1;var c=new On((function(l){if(l!==t){if(l instanceof ge)return i.push(l),d(Ae,l);if(n&&l instanceof Ue&&!(c.parent()instanceof mt)&&c.parent()===t)return s.push(l),d(Ae,l);if(r&&l instanceof ct){l.definitions.forEach((function(e){e.name instanceof Ve||(o.set(e.name.name,e),++a)}));var u=l.to_assignments(e),h=c.parent();if(h instanceof Oe&&h.init===l){if(null==u){var p=l.definitions[0].name;return d(on,p,p)}return u}return h instanceof we&&h.init===l?u:u?d(_e,l,{body:u}):d(Ae,l)}if(l instanceof Ie)return l}}));if(t=t.transform(c),a>0){var u=[];const e=t instanceof Le,n=e?t.args_as_names():null;if(o.forEach((t,r)=>{e&&n.some(e=>e.name===t.name.name)?o.delete(r):((t=t.clone()).value=null,u.push(t),o.set(r,t))}),u.length>0){for(var h=0;h<t.body.length;){if(t.body[h]instanceof _e){var p,f,m=t.body[h].body;if(m instanceof Dt&&"="==m.operator&&(p=m.left)instanceof Vt&&o.has(p.name)){if((_=o.get(p.name)).value)break;_.value=m.right,g(u,_),u.push(_),t.body.splice(h,1);continue}if(m instanceof Et&&(f=m.expressions[0])instanceof Dt&&"="==f.operator&&(p=f.left)instanceof Vt&&o.has(p.name)){var _;if((_=o.get(p.name)).value)break;_.value=f.right,g(u,_),u.push(_),t.body[h].body=_r(m,m.expressions.slice(1));continue}}if(t.body[h]instanceof Ae)t.body.splice(h,1);else{if(!(t.body[h]instanceof ve))break;var E=[h,1].concat(t.body[h].body);t.body.splice.apply(t.body,E)}}u=d(ct,t,{definitions:u}),s.push(u)}}t.body=i.concat(s,t.body)}return t})),Ie.DEFMETHOD("make_var_name",(function(e){for(var t=this.var_names(),n=e=e.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_"),r=0;t.has(n);r++)n=e+"$"+r;return this.add_var_name(n),n})),Ie.DEFMETHOD("hoist_properties",(function(e){var t=this;if(!e.option("hoist_props")||e.has_directive("use asm"))return t;var n=t instanceof Me&&e.top_retain||l,r=new Map,i=new On((function(s,o){if(s instanceof lt&&i.parent()instanceof mt)return s;if(s instanceof pt){const i=s.name;let l,c;if(i.scope===t&&1!=(l=i.definition()).escaped&&!l.assignments&&!l.direct_access&&!l.single_use&&!e.exposed(l)&&!n(l)&&(c=i.fixed_value())===s.value&&c instanceof Ot&&c.properties.every(e=>"string"==typeof e.key)){o(s,this);const e=new Map,t=[];return c.properties.forEach((function(n){t.push(d(pt,s,{name:a(i,n.key,e),value:n.value}))})),r.set(l.id,e),p.splice(t)}}else if(s instanceof yt&&s.expression instanceof on){const e=r.get(s.expression.definition().id);if(e){const t=e.get(String(Ir(s.property))),n=d(on,s,{name:t.name,scope:s.expression.scope,thedef:t});return n.reference({}),n}}function a(e,n,r){const i=d(e.CTOR,e,{name:t.make_var_name(e.name+"_"+n),scope:t}),s=t.def_variable(i);return r.set(String(n),s),t.enclosed.push(s),i}}));return t.transform(i)})),function(e){function t(e,t,n){var r=e.length;if(!r)return null;for(var i=[],s=!1,o=0;o<r;o++){var a=e[o].drop_side_effect_free(t,n);s|=a!==e[o],a&&(i.push(a),n=!1)}return s?i.length?i:null:e}e(de,u),e(pn,h),e(un,h),e(gt,(function(e,n){if(!this.is_expr_pure(e)){if(this.expression.is_call_pure(e)){var r=this.args.slice();return r.unshift(this.expression.expression),(r=t(r,e,n))&&_r(this,r)}if(pr(this.expression)&&(!this.expression.name||!this.expression.name.definition().references.length)){var i=this.clone();return i.expression.process_expression(!1,e),i}return this}S(this,kn)&&e.warn("Dropping __PURE__ call [{file}:{line},{col}]",this.start);var s=t(this.args,e,n);return s&&_r(this,s)})),e(Fe,h),e(Be,h),e($e,h),e(Ft,(function(e){const t=[],n=this.extends&&this.extends.drop_side_effect_free(e);n&&t.push(n);for(const n of this.properties){const r=n.drop_side_effect_free(e);r&&t.push(r)}return t.length?_r(this,t):null})),e(Ct,(function(e,t){var n=this.right.drop_side_effect_free(e);if(!n)return this.left.drop_side_effect_free(e,t);if(Pr.has(this.operator)){if(n===this.right)return this;var r=this.clone();return r.right=n,r}var i=this.left.drop_side_effect_free(e,t);return i?_r(this,[i,n]):this.right.drop_side_effect_free(e,t)})),e(Dt,(function(e){var t=this.left;if(t.has_side_effects(e)||e.has_directive("use strict")&&t instanceof yt&&t.expression.is_constant())return this;for(or(this,32);t instanceof yt;)t=t.expression;return t.is_constant_expression(e.find_parent(Ie))?this.right.drop_side_effect_free(e):this})),e(xt,(function(e){var t=this.consequent.drop_side_effect_free(e),n=this.alternative.drop_side_effect_free(e);if(t===this.consequent&&n===this.alternative)return this;if(!t)return n?d(Ct,this,{operator:"||",left:this.condition,right:n}):this.condition.drop_side_effect_free(e);if(!n)return d(Ct,this,{operator:"&&",left:this.condition,right:t});var r=this.clone();return r.consequent=t,r.alternative=n,r})),e(At,(function(e,t){if(Lr.has(this.operator))return this.expression.has_side_effects(e)?ar(this,32):or(this,32),this;if("typeof"==this.operator&&this.expression instanceof on)return null;var n=this.expression.drop_side_effect_free(e,t);return t&&n&&Cr(n)?n===this.expression&&"!"==this.operator?this:n.negate(e,t):n})),e(on,(function(e){return this.is_declared(e)||Wr.has(this.name)?null:this})),e(Ot,(function(e,n){var r=t(this.properties,e,n);return r&&_r(this,r)})),e(kt,(function(e,t){const n=this instanceof Rt&&this.key instanceof de&&this.key.drop_side_effect_free(e,t),r=this.value.drop_side_effect_free(e,t);return n&&r?_r(this,[n,r]):n||r})),e(Bt,(function(e){const t=this.computed_key()&&this.key.drop_side_effect_free(e),n=this.static&&this.value&&this.value.drop_side_effect_free(e);return t&&n?_r(this,[t,n]):t||n||null})),e(Lt,(function(){return this.computed_key()?this.key:null})),e(Mt,(function(){return this.computed_key()?this.key:null})),e(It,(function(){return this.computed_key()?this.key:null})),e(wt,(function(e,n){var r=t(this.elements,e,n);return r&&_r(this,r)})),e(Tt,(function(e,t){return this.expression.may_throw_on_access(e)?this:this.expression.drop_side_effect_free(e,t)})),e(vt,(function(e,t){if(this.expression.may_throw_on_access(e))return this;var n=this.expression.drop_side_effect_free(e,t);if(!n)return this.property.drop_side_effect_free(e,t);var r=this.property.drop_side_effect_free(e);return r?_r(this,[n,r]):n})),e(Et,(function(e){var t=this.tail_node(),n=t.drop_side_effect_free(e);if(n===t)return this;var r=this.expressions.slice(0,-1);return n&&r.push(n),r.length?_r(this,r):d(fn,this,{value:0})})),e(Pe,(function(e,t){return this.expression.drop_side_effect_free(e,t)})),e(je,h),e(Ge,(function(e){var n=t(this.segments,e,Fn);return n&&_r(this,n)}))}((function(e,t){e.DEFMETHOD("drop_side_effect_free",t)})),cr(_e,(function(e,t){if(t.option("side_effects")){var n=e.body,r=n.drop_side_effect_free(t,!0);if(!r)return t.warn("Dropping side-effect-free statement [{file}:{line},{col}]",e.start),d(Ae,e);if(r!==n)return d(_e,e,{body:r})}return e})),cr(Ne,(function(e,t){return t.option("loops")?d(we,e,e).optimize(t):e})),cr(De,(function(e,t){if(!t.option("loops"))return e;var n=e.condition.tail_node().evaluate(t);if(!(n instanceof de)){if(n)return d(we,e,{body:d(ve,e.body,{body:[e.body,d(_e,e.condition,{body:e.condition})]})}).optimize(t);if(!Qr(e,t.parent()))return d(ve,e.body,{body:[e.body,d(_e,e.condition,{body:e.condition})]}).optimize(t)}return e})),cr(we,(function(e,t){if(!t.option("loops"))return e;if(t.option("side_effects")&&e.init&&(e.init=e.init.drop_side_effect_free(t)),e.condition){var n=e.condition.evaluate(t);if(!(n instanceof de))if(n)e.condition=null;else if(!t.option("dead_code")){var r=e.condition;e.condition=Er(n,e.condition),e.condition=Br(e.condition.transform(t),r)}if(t.option("dead_code")&&(n instanceof de&&(n=e.condition.tail_node().evaluate(t)),!n)){var i=[];return Rr(t,e.body,i),e.init instanceof fe?i.push(e.init):e.init&&i.push(d(_e,e.init,{body:e.init})),i.push(d(_e,e.condition,{body:e.condition})),d(ve,e,{body:i}).optimize(t)}}return function e(t,n){var r=t.body instanceof ve?t.body.body[0]:t.body;if(n.option("dead_code")&&s(r)){var i=[];return t.init instanceof fe?i.push(t.init):t.init&&i.push(d(_e,t.init,{body:t.init})),t.condition&&i.push(d(_e,t.condition,{body:t.condition})),Rr(n,t.body,i),d(ve,t,{body:i})}return r instanceof et&&(s(r.body)?(t.condition?t.condition=d(Ct,t.condition,{left:t.condition,operator:"&&",right:r.condition.negate(n)}):t.condition=r.condition.negate(n),o(r.alternative)):s(r.alternative)&&(t.condition?t.condition=d(Ct,t.condition,{left:t.condition,operator:"&&",right:r.condition}):t.condition=r.condition,o(r.body))),t;function s(e){return e instanceof Ye&&n.loopcontrol_target(e)===n.self()}function o(r){r=vr(r),t.body instanceof ve?(t.body=t.body.clone(),t.body.body=r.concat(t.body.body.slice(1)),t.body=t.body.transform(n)):t.body=d(ve,t.body,{body:r}).transform(n),t=e(t,n)}}(e,t)})),cr(et,(function(e,t){if(Ar(e.alternative)&&(e.alternative=null),!t.option("conditionals"))return e;var n=e.condition.evaluate(t);if(!(t.option("dead_code")||n instanceof de)){var r=e.condition;e.condition=Er(n,r),e.condition=Br(e.condition.transform(t),r)}if(t.option("dead_code")){if(n instanceof de&&(n=e.condition.tail_node().evaluate(t)),!n){t.warn("Condition always false [{file}:{line},{col}]",e.condition.start);var i=[];return Rr(t,e.body,i),i.push(d(_e,e.condition,{body:e.condition})),e.alternative&&i.push(e.alternative),d(ve,e,{body:i}).optimize(t)}if(!(n instanceof de))return t.warn("Condition always true [{file}:{line},{col}]",e.condition.start),(i=[]).push(d(_e,e.condition,{body:e.condition})),i.push(e.body),e.alternative&&Rr(t,e.alternative,i),d(ve,e,{body:i}).optimize(t)}var s=e.condition.negate(t),o=e.condition.size(),a=s.size(),l=a<o;if(e.alternative&&l){l=!1,e.condition=s;var c=e.body;e.body=e.alternative||d(Ae,e),e.alternative=c}if(Ar(e.body)&&Ar(e.alternative))return d(_e,e.condition,{body:e.condition.clone()}).optimize(t);if(e.body instanceof _e&&e.alternative instanceof _e)return d(_e,e,{body:d(xt,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(t);if(Ar(e.alternative)&&e.body instanceof _e)return o===a&&!l&&e.condition instanceof Ct&&"||"==e.condition.operator&&(l=!0),l?d(_e,e,{body:d(Ct,e,{operator:"||",left:s,right:e.body.body})}).optimize(t):d(_e,e,{body:d(Ct,e,{operator:"&&",left:e.condition,right:e.body.body})}).optimize(t);if(e.body instanceof Ae&&e.alternative instanceof _e)return d(_e,e,{body:d(Ct,e,{operator:"||",left:e.condition,right:e.alternative.body})}).optimize(t);if(e.body instanceof We&&e.alternative instanceof We&&e.body.TYPE==e.alternative.TYPE)return d(e.body.CTOR,e,{value:d(xt,e,{condition:e.condition,consequent:e.body.value||d(Tn,e.body),alternative:e.alternative.value||d(Tn,e.alternative)}).transform(t)}).optimize(t);if(e.body instanceof et&&!e.body.alternative&&!e.alternative&&(e=d(et,e,{condition:d(Ct,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})),zr(e.body)&&e.alternative){var u=e.alternative;return e.alternative=null,d(ve,e,{body:[e,u]}).optimize(t)}return zr(e.alternative)?(i=e.body,e.body=e.alternative,e.condition=l?s:e.condition.negate(t),e.alternative=null,d(ve,e,{body:[e,i]}).optimize(t)):e})),cr(tt,(function(e,t){if(!t.option("switches"))return e;var n,r=e.expression.evaluate(t);if(!(r instanceof de)){var i=e.expression;e.expression=Er(r,i),e.expression=Br(e.expression.transform(t),i)}if(!t.option("dead_code"))return e;r instanceof de&&(r=e.expression.tail_node().evaluate(t));for(var s,o,a=[],l=[],c=0,u=e.body.length;c<u&&!o;c++){if((n=e.body[c])instanceof rt)s?y(n,l[l.length-1]):s=n;else if(!(r instanceof de)){if(!((_=n.expression.evaluate(t))instanceof de)&&_!==r){y(n,l[l.length-1]);continue}if(_ instanceof de&&(_=n.expression.tail_node().evaluate(t)),_===r&&(o=n,s)){var h=l.indexOf(s);l.splice(h,1),y(s,l[h-1]),s=null}}if(zr(n)){var p=l[l.length-1];zr(p)&&p.body.length==n.body.length&&d(ve,p,p).equivalent_to(d(ve,n,n))&&(p.body=[])}l.push(n)}for(;c<u;)y(e.body[c++],l[l.length-1]);for(l.length>0&&(l[0].body=a.concat(l[0].body)),e.body=l;n=l[l.length-1];){var f=n.body[n.body.length-1];if(f instanceof Ye&&t.loopcontrol_target(f)===e&&n.body.pop(),n.body.length||n instanceof it&&(s||n.expression.has_side_effects(t)))break;l.pop()===s&&(s=null)}if(0==l.length)return d(ve,e,{body:a.concat(d(_e,e.expression,{body:e.expression}))}).optimize(t);if(1==l.length&&(l[0]===o||l[0]===s)){var m=!1,g=new wn((function(t){if(m||t instanceof Le||t instanceof _e)return!0;t instanceof Ye&&g.loopcontrol_target(t)===e&&(m=!0)}));if(e.walk(g),!m){var _,E=l[0].body.slice();return(_=l[0].expression)&&E.unshift(d(_e,_,{body:_})),E.unshift(d(_e,e.expression,{body:e.expression})),d(ve,e,{body:E}).optimize(t)}}return e;function y(e,n){n&&!zr(n)?n.body=n.body.concat(e.body):Rr(t,e,a)}})),cr(st,(function(e,t){if(kr(e.body,t),e.bcatch&&e.bfinally&&e.bfinally.body.every(Ar)&&(e.bfinally=null),t.option("dead_code")&&e.body.every(Ar)){var n=[];return e.bcatch&&Rr(t,e.bcatch,n),e.bfinally&&n.push(...e.bfinally.body),d(ve,e,{body:n}).optimize(t)}return e})),lt.DEFMETHOD("remove_initializers",(function(){var e=[];this.definitions.forEach((function(t){t.name instanceof Gt?(t.value=null,e.push(t)):xn(t.name,n=>{n instanceof Gt&&e.push(d(pt,t,{name:n,value:null}))})})),this.definitions=e})),lt.DEFMETHOD("to_assignments",(function(e){var t=e.option("reduce_vars"),n=this.definitions.reduce((function(e,n){if(!n.value||n.name instanceof Ve){if(n.value){var r=d(pt,n,{name:n.name,value:n.value}),i=d(ct,n,{definitions:[r]});e.push(i)}}else{var s=d(on,n.name,n.name);e.push(d(Dt,n,{operator:"=",left:s,right:n.value})),t&&(s.definition().fixed=!1)}return(n=n.name.definition()).eliminated++,n.replaced--,e}),[]);return 0==n.length?null:_r(this,n)})),cr(lt,(function(e){return 0==e.definitions.length?d(Ae,e):e})),cr(ft,(function(e){return e})),cr(gt,(function(e,t){var n=e.expression,r=n;ci(e,0,e.args);var i=e.args.every(e=>!(e instanceof Pe));if(t.option("reduce_vars")&&r instanceof on&&!S(e,In)){const e=r.fixed_value();Jr(e,t)||(r=e)}var s=r instanceof Le;if(t.option("unused")&&i&&s&&!r.uses_arguments&&!r.pinned()){for(var o=0,a=0,l=0,c=e.args.length;l<c;l++){if(r.argnames[l]instanceof Pe){if(sr(r.argnames[l].expression,1))for(;l<c;)(m=e.args[l++].drop_side_effect_free(t))&&(e.args[o++]=m);else for(;l<c;)e.args[o++]=e.args[l++];a=o;break}var u=l>=r.argnames.length;if(u||sr(r.argnames[l],1)){if(m=e.args[l].drop_side_effect_free(t))e.args[o++]=m;else if(!u){e.args[o++]=d(fn,e.args[l],{value:0});continue}}else e.args[o++]=e.args[l];a=o}e.args.length=a}if(t.option("unsafe"))if(xr(n))switch(n.name){case"Array":if(1!=e.args.length)return d(wt,e,{elements:e.args}).optimize(t);if(e.args[0]instanceof fn&&e.args[0].value<=11){const t=[];for(let n=0;n<e.args[0].value;n++)t.push(new vn);return new wt({elements:t})}break;case"Object":if(0==e.args.length)return d(Ot,e,{properties:[]});break;case"String":if(0==e.args.length)return d(dn,e,{value:""});if(e.args.length<=1)return d(Ct,e,{left:e.args[0],operator:"+",right:d(dn,e,{value:""})}).optimize(t);break;case"Number":if(0==e.args.length)return d(fn,e,{value:0});if(1==e.args.length&&t.option("unsafe_math"))return d(bt,e,{expression:e.args[0],operator:"+"}).optimize(t);break;case"Symbol":1==e.args.length&&e.args[0]instanceof dn&&t.option("unsafe_symbols")&&(e.args.length=0);break;case"Boolean":if(0==e.args.length)return d(Sn,e);if(1==e.args.length)return d(bt,e,{expression:d(bt,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(t);break;case"RegExp":var h=[];if(e.args.length>=1&&e.args.length<=2&&e.args.every(e=>{var n=e.evaluate(t);return h.push(n),e!==n})){let[n,r]=h;n=b(new RegExp(n).source);const i=d(gn,e,{value:{source:n,flags:r}});if(i._eval(t)!==i)return i;t.warn("Error converting {expr} [{file}:{line},{col}]",{expr:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col})}}else if(n instanceof Tt)switch(n.property){case"toString":if(0==e.args.length&&!n.expression.may_throw_on_access(t))return d(Ct,e,{left:d(dn,e,{value:""}),operator:"+",right:n.expression}).optimize(t);break;case"join":if(n.expression instanceof wt)e:{var p;if(!(e.args.length>0&&(p=e.args[0].evaluate(t))===e.args[0])){var f,m,g=[],_=[];for(l=0,c=n.expression.elements.length;l<c;l++){var E=n.expression.elements[l];if(E instanceof Pe)break e;var y=E.evaluate(t);y!==E?_.push(y):(_.length>0&&(g.push(d(dn,e,{value:_.join(p)})),_.length=0),g.push(E))}return _.length>0&&g.push(d(dn,e,{value:_.join(p)})),0==g.length?d(dn,e,{value:""}):1==g.length?g[0].is_string(t)?g[0]:d(Ct,g[0],{operator:"+",left:d(dn,e,{value:""}),right:g[0]}):""==p?(f=g[0].is_string(t)||g[1].is_string(t)?g.shift():d(dn,e,{value:""}),g.reduce((function(e,t){return d(Ct,t,{operator:"+",left:e,right:t})}),f).optimize(t)):((m=e.clone()).expression=m.expression.clone(),m.expression.expression=m.expression.expression.clone(),m.expression.expression.elements=g,Ur(t,e,m))}}break;case"charAt":if(n.expression.is_string(t)){var T=e.args[0],v=T?T.evaluate(t):0;if(v!==T)return d(vt,n,{expression:n.expression,property:Er(0|v,T||n)}).optimize(t)}break;case"apply":if(2==e.args.length&&e.args[1]instanceof wt)return(L=e.args[1].elements.slice()).unshift(e.args[0]),d(gt,e,{expression:d(Tt,n,{expression:n.expression,property:"call"}),args:L}).optimize(t);break;case"call":var A=n.expression;if(A instanceof on&&(A=A.fixed_value()),A instanceof Le&&!A.contains_this())return(e.args.length?_r(this,[e.args[0],d(gt,e,{expression:n.expression,args:e.args.slice(1)})]):d(gt,e,{expression:n.expression,args:[]})).optimize(t)}if(t.option("unsafe_Function")&&xr(n)&&"Function"==n.name){if(0==e.args.length)return d(Be,e,{argnames:[],body:[]}).optimize(t);if(e.args.every(e=>e instanceof dn))try{var C=ue(w="n(function("+e.args.slice(0,-1).map((function(e){return e.value})).join(",")+"){"+e.args[e.args.length-1].value+"})"),x={ie8:t.option("ie8")};C.figure_out_scope(x);var D,N=new lr(t.options);(C=C.transform(N)).figure_out_scope(x),Yn.reset(),C.compute_char_frequency(x),C.mangle_names(x),xn(C,e=>{if(pr(e))return D=e,Nn});var w=Vn();return ve.prototype._codegen.call(D,D,w),e.args=[d(dn,e,{value:D.argnames.map((function(e){return e.print_to_string()})).join(",")}),d(dn,e.args[e.args.length-1],{value:w.get().replace(/^{|}$/g,"")})],e}catch(n){if(!(n instanceof ee))throw n;t.warn("Error parsing code passed to new Function [{file}:{line},{col}]",e.args[e.args.length-1].start),t.warn(n.toString())}}var O=s&&r.body[0],k=s&&!r.is_generator&&!r.async,R=k&&t.option("inline")&&!e.is_expr_pure(t);if(R&&O instanceof ze){let n=O.value;if(!n||n.is_constant_expression()){n=n?n.clone(!0):d(Tn,e);const r=e.args.concat(n);return _r(e,r).optimize(t)}if(1===r.argnames.length&&r.argnames[0]instanceof Xt&&e.args.length<2&&n instanceof on&&n.name===r.argnames[0].name){let n;return e.args[0]instanceof yt&&(n=t.parent())instanceof gt&&n.expression===e?_r(e,[d(fn,e,{value:0}),e.args[0].optimize(t)]):(e.args[0]||d(Tn)).optimize(t)}}if(R){var I,M,P=-1;let s,o,a;if(i&&!r.uses_arguments&&!r.pinned()&&!(t.parent()instanceof Ft)&&!(r.name&&r instanceof Be)&&(o=function(e){var n=r.body,i=n.length;if(t.option("inline")<3)return 1==i&&B(e);e=null;for(var s=0;s<i;s++){var o=n[s];if(o instanceof ct){if(e&&!o.definitions.every(e=>!e.value))return!1}else{if(e)return!1;o instanceof Ae||(e=o)}}return B(e)}(O))&&(n===r||S(e,Rn)||t.option("unused")&&1==(s=n.definition()).references.length&&!ei(t,s)&&r.is_constant_expression(n.scope))&&!S(e,kn|In)&&!r.contains_this()&&function(){var n=new Set;do{if((I=t.parent(++P)).is_block_scope()&&I.block_scope&&I.block_scope.variables.forEach((function(e){n.add(e.name)})),I instanceof ot)I.argname&&n.add(I.argname.name);else if(I instanceof Ce)M=[];else if(I instanceof on&&I.fixed_value()instanceof Ie)return!1}while(!(I instanceof Ie));var i=!(I instanceof Me)||t.toplevel.vars,s=t.option("inline");return!(!function(e,t){for(var n=r.body.length,i=0;i<n;i++){var s=r.body[i];if(s instanceof ct){if(!t)return!1;for(var o=s.definitions.length;--o>=0;){var a=s.definitions[o].name;if(a instanceof Ve||e.has(a.name)||wr.has(a.name)||I.var_names().has(a.name))return!1;M&&M.push(a.definition())}}}return!0}(n,s>=3&&i)||!function(e,t){for(var n=0,i=r.argnames.length;n<i;n++){var s=r.argnames[n];if(s instanceof Nt){if(sr(s.left,1))continue;return!1}if(s instanceof Ve)return!1;if(s instanceof Pe){if(sr(s.expression,1))continue;return!1}if(!sr(s,1)){if(!t||e.has(s.name)||wr.has(s.name)||I.var_names().has(s.name))return!1;M&&M.push(s.definition())}}return!0}(n,s>=2&&i)||!function(){var t=new Set;const n=e=>{if(e instanceof Ie){var n=new Set;return e.enclosed.forEach((function(e){n.add(e.name)})),e.variables.forEach((function(e){n.delete(e)})),n.forEach((function(e){t.add(e)})),!0}};for(let t=0;t<e.args.length;t++)xn(e.args[t],n);if(0==t.size)return!0;for(let e=0,n=r.argnames.length;e<n;e++){var i=r.argnames[e];if(!(i instanceof Nt&&sr(i.left,1))&&!(i instanceof Pe&&sr(i.expression,1))&&!sr(i,1)&&t.has(i.name))return!1}for(let e=0,n=r.body.length;e<n;e++){var s=r.body[e];if(s instanceof ct)for(var o=s.definitions.length;--o>=0;){var a=s.definitions[o].name;if(a instanceof Ve||t.has(a.name))return!1}}return!0}()||M&&0!=M.length&&ri(r,M))}()&&(a=mr(t))&&!ti(a,r)&&!function(){let e,n=0;for(;e=t.parent(n++);){if(e instanceof Nt)return!0;if(e instanceof Te)break}return!1}()&&!(I instanceof Ft))return or(r,256),a.add_child_scope(r),_r(e,function(n){var i=[],s=[];if(function(t,n){for(var i=r.argnames.length,s=e.args.length;--s>=i;)n.push(e.args[s]);for(s=i;--s>=0;){var o=r.argnames[s],a=e.args[s];if(sr(o,1)||!o.name||I.var_names().has(o.name))a&&n.push(a);else{var l=d(jt,o,o);o.definition().orig.push(l),!a&&M&&(a=d(Tn,e)),$(t,n,l,a)}}t.reverse(),n.reverse()}(i,s),function(e,t){for(var n=t.length,i=0,s=r.body.length;i<s;i++){var o=r.body[i];if(o instanceof ct)for(var a=0,l=o.definitions.length;a<l;a++){var c=o.definitions[a],u=c.name;if($(e,t,u,c.value),M&&r.argnames.every(e=>e.name!=u.name)){var h=r.variables.get(u.name),p=d(on,u,u);h.references.push(p),t.splice(n++,0,d(Dt,c,{operator:"=",left:p,right:d(Tn,u)}))}}}}(i,s),s.push(n),i.length){const e=I.body.indexOf(t.parent(P-1))+1;I.body.splice(e,0,d(ct,r,{definitions:i}))}return s.map(e=>e.clone(!0))}(o)).optimize(t)}if(k&&t.option("side_effects")&&r.body.every(Ar)){var L=e.args.concat(d(Tn,e));return _r(e,L).optimize(t)}if(t.option("negate_iife")&&t.parent()instanceof _e&&Cr(e))return e.negate(t,!0);var F=e.evaluate(t);return F!==e?(F=Er(F,e).optimize(t),Ur(t,F,e)):e;function B(t){return t?t instanceof ze?t.value?t.value.clone(!0):d(Tn,e):t instanceof _e?d(bt,t,{operator:"void",expression:t.body.clone(!0)}):void 0:d(Tn,e)}function $(t,n,r,i){var s=r.definition();I.variables.set(r.name,s),I.enclosed.push(s),I.var_names().has(r.name)||(I.add_var_name(r.name),t.push(d(pt,r,{name:r,value:null})));var o=d(on,r,r);s.references.push(o),i&&n.push(d(Dt,e,{operator:"=",left:o,right:i.clone()}))}})),cr(_t,(function(e,t){return t.option("unsafe")&&xr(e.expression)&&["Object","RegExp","Function","Error","Array"].includes(e.expression.name)?d(gt,e,e).transform(t):e})),cr(Et,(function(e,t){if(!t.option("side_effects"))return e;var n,r,i=[];n=Fn(t),r=e.expressions.length-1,e.expressions.forEach((function(e,s){s<r&&(e=e.drop_side_effect_free(t,n)),e&&(Tr(i,e),n=!1)}));var s=i.length-1;return function(){for(;s>0&&Mr(i[s],t);)s--;s<i.length-1&&(i[s]=d(bt,e,{operator:"void",expression:i[s]}),i.length=s+1)}(),0==s?((e=yr(t.parent(),t.self(),i[0]))instanceof Et||(e=e.optimize(t)),e):(e.expressions=i,e)})),At.DEFMETHOD("lift_sequences",(function(e){if(e.option("sequences")&&this.expression instanceof Et){var t=this.expression.expressions.slice(),n=this.clone();return n.expression=t.pop(),t.push(n),_r(this,t).optimize(e)}return this})),cr(St,(function(e,t){return e.lift_sequences(t)})),cr(bt,(function(e,t){var n=e.expression;if("delete"==e.operator&&!(n instanceof on||n instanceof yt||Or(n))){if(n instanceof Et){const r=n.expressions.slice();return r.push(d(Cn,e)),_r(e,r).optimize(t)}return _r(e,[n,d(Cn,e)]).optimize(t)}var r=e.lift_sequences(t);if(r!==e)return r;if(t.option("side_effects")&&"void"==e.operator)return(n=n.drop_side_effect_free(t))?(e.expression=n,e):d(Tn,e).optimize(t);if(t.in_boolean_context())switch(e.operator){case"!":if(n instanceof bt&&"!"==n.operator)return n.expression;n instanceof Ct&&(e=Ur(t,e,n.negate(t,Fn(t))));break;case"typeof":return t.warn("Boolean expression always true [{file}:{line},{col}]",e.start),(n instanceof on?d(Cn,e):_r(e,[n,d(Cn,e)])).optimize(t)}if("-"==e.operator&&n instanceof An&&(n=n.transform(t)),n instanceof Ct&&("+"==e.operator||"-"==e.operator)&&("*"==n.operator||"/"==n.operator||"%"==n.operator))return d(Ct,e,{operator:n.operator,left:d(bt,n.left,{operator:e.operator,expression:n.left}),right:n.right});if("-"!=e.operator||!(n instanceof fn||n instanceof An||n instanceof mn)){var i=e.evaluate(t);if(i!==e)return Ur(t,i=Er(i,e).optimize(t),e)}return e})),Ct.DEFMETHOD("lift_sequences",(function(e){if(e.option("sequences")){if(this.left instanceof Et){var t=this.left.expressions.slice();return(n=this.clone()).left=t.pop(),t.push(n),_r(this,t).optimize(e)}if(this.right instanceof Et&&!this.left.has_side_effects(e)){for(var n,r="="==this.operator&&this.left instanceof on,i=(t=this.right.expressions).length-1,s=0;s<i&&(r||!t[s].has_side_effects(e));s++);if(s==i)return t=t.slice(),(n=this.clone()).right=t.pop(),t.push(n),_r(this,t).optimize(e);if(s>0)return(n=this.clone()).right=_r(this.right,t.slice(s)),(t=t.slice(0,s)).push(n),_r(this,t).optimize(e)}}return this}));var Zr=E("== === != !== * & | ^");function ei(e,t){for(var n,r=0;n=e.parent(r);r++)if(n instanceof Le||n instanceof Ft){var i=n.name;if(i&&i.definition()===t)break}return n}function ti(e,t){for(const n of t.enclosed){if(t.variables.has(n.name))continue;const r=e.find_variable(n.name);if(r){if(r===n)continue;return!0}}return!1}function ni(e,t){return e instanceof on||e.TYPE===t.TYPE}function ri(e,t){const n=e=>{if(e instanceof on&&i(e.definition(),t))return Nn};return Dn(e,(t,r)=>{if(t instanceof Ie&&t!==e){var i=r.parent();if(i instanceof gt&&i.expression===t)return;return!xn(t,n)||Nn}})}cr(Ct,(function(e,t){function n(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function r(t){if(n()){t&&(e.operator=t);var r=e.left;e.left=e.right,e.right=r}}if(Zr.has(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof Ct&&le[e.left.operator]>=le[e.operator]||r()),e=e.lift_sequences(t),t.option("comparisons"))switch(e.operator){case"===":case"!==":var i=!0;(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right))&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(!i&&Mr(e.left,t))e.left=d(En,e.left);else if(t.option("typeofs")&&e.left instanceof dn&&"undefined"==e.left.value&&e.right instanceof bt&&"typeof"==e.right.operator){var s=e.right.expression;(s instanceof on?!s.is_declared(t):s instanceof yt&&t.option("ie8"))||(e.right=s,e.left=d(Tn,e.left).optimize(t),2==e.operator.length&&(e.operator+="="))}else if(e.left instanceof on&&e.right instanceof on&&e.left.definition()===e.right.definition()&&((l=e.left.fixed_value())instanceof wt||l instanceof Le||l instanceof Ot||l instanceof Ft))return d("="==e.operator[0]?Cn:Sn,e);break;case"&&":case"||":var o=e.left;if(o.operator==e.operator&&(o=o.right),o instanceof Ct&&o.operator==("&&"==e.operator?"!==":"===")&&e.right instanceof Ct&&o.operator==e.right.operator&&(Mr(o.left,t)&&e.right.left instanceof En||o.left instanceof En&&Mr(e.right.left,t))&&!o.right.has_side_effects(t)&&o.right.equivalent_to(e.right.right)){var a=d(Ct,e,{operator:o.operator.slice(0,-1),left:d(En,e),right:o.right});return o!==e.left&&(a=d(Ct,e,{operator:e.operator,left:e.left.left,right:a})),a}}var l;if("+"==e.operator&&t.in_boolean_context()){var c=e.left.evaluate(t),u=e.right.evaluate(t);if(c&&"string"==typeof c)return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),_r(e,[e.right,d(Cn,e)]).optimize(t);if(u&&"string"==typeof u)return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),_r(e,[e.left,d(Cn,e)]).optimize(t)}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof Ct)||t.parent()instanceof Dt){var h=d(bt,e,{operator:"!",expression:e.negate(t,Fn(t))});e=Ur(t,e,h)}if(t.option("unsafe_comps"))switch(e.operator){case"<":r(">");break;case"<=":r(">=")}}if("+"==e.operator){if(e.right instanceof dn&&""==e.right.getValue()&&e.left.is_string(t))return e.left;if(e.left instanceof dn&&""==e.left.getValue()&&e.right.is_string(t))return e.right;if(e.left instanceof Ct&&"+"==e.left.operator&&e.left.left instanceof dn&&""==e.left.left.getValue()&&e.right.is_string(t))return e.left=e.left.right,e.transform(t)}if(t.option("evaluate")){switch(e.operator){case"&&":if(!(c=!!sr(e.left,2)||!sr(e.left,4)&&e.left.evaluate(t)))return t.warn("Condition left of && always false [{file}:{line},{col}]",e.start),yr(t.parent(),t.self(),e.left).optimize(t);if(!(c instanceof de))return t.warn("Condition left of && always true [{file}:{line},{col}]",e.start),_r(e,[e.left,e.right]).optimize(t);if(u=e.right.evaluate(t)){if(!(u instanceof de)&&("&&"==(p=t.parent()).operator&&p.left===t.self()||t.in_boolean_context()))return t.warn("Dropping side-effect-free && [{file}:{line},{col}]",e.start),e.left.optimize(t)}else{if(t.in_boolean_context())return t.warn("Boolean && always false [{file}:{line},{col}]",e.start),_r(e,[e.left,d(Sn,e)]).optimize(t);or(e,4)}if("||"==e.left.operator&&!(f=e.left.right.evaluate(t)))return d(xt,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t);break;case"||":var p,f;if(!(c=!!sr(e.left,2)||!sr(e.left,4)&&e.left.evaluate(t)))return t.warn("Condition left of || always false [{file}:{line},{col}]",e.start),_r(e,[e.left,e.right]).optimize(t);if(!(c instanceof de))return t.warn("Condition left of || always true [{file}:{line},{col}]",e.start),yr(t.parent(),t.self(),e.left).optimize(t);if(u=e.right.evaluate(t)){if(!(u instanceof de)){if(t.in_boolean_context())return t.warn("Boolean || always true [{file}:{line},{col}]",e.start),_r(e,[e.left,d(Cn,e)]).optimize(t);or(e,2)}}else if("||"==(p=t.parent()).operator&&p.left===t.self()||t.in_boolean_context())return t.warn("Dropping side-effect-free || [{file}:{line},{col}]",e.start),e.left.optimize(t);if("&&"==e.left.operator&&(f=e.left.right.evaluate(t))&&!(f instanceof de))return d(xt,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t);break;case"??":if(oi(e.left))return e.right;if(!((c=e.left.evaluate(t))instanceof de))return null==c?e.right:e.left;if(t.in_boolean_context()){const n=e.right.evaluate(t);if(!(n instanceof de||n))return e.left}}var m=!0;switch(e.operator){case"+":if(e.left instanceof pn&&e.right instanceof Ct&&"+"==e.right.operator&&e.right.is_string(t)){var g=(E=d(Ct,e,{operator:"+",left:e.left,right:e.right.left})).optimize(t);E!==g&&(e=d(Ct,e,{operator:"+",left:g,right:e.right.right}))}if(e.right instanceof pn&&e.left instanceof Ct&&"+"==e.left.operator&&e.left.is_string(t)){var _=(E=d(Ct,e,{operator:"+",left:e.left.right,right:e.right})).optimize(t);E!==_&&(e=d(Ct,e,{operator:"+",left:e.left.left,right:_}))}if(e.left instanceof Ct&&"+"==e.left.operator&&e.left.is_string(t)&&e.right instanceof Ct&&"+"==e.right.operator&&e.right.is_string(t)){var E,y=(E=d(Ct,e,{operator:"+",left:e.left.right,right:e.right.left})).optimize(t);E!==y&&(e=d(Ct,e,{operator:"+",left:d(Ct,e.left,{operator:"+",left:e.left.left,right:y}),right:e.right.right}))}if(e.right instanceof bt&&"-"==e.right.operator&&e.left.is_number(t)){e=d(Ct,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof bt&&"-"==e.left.operator&&n()&&e.right.is_number(t)){e=d(Ct,e,{operator:"-",left:e.right,right:e.left.expression});break}if(e.left instanceof Ge&&(g=e.left,(_=e.right.evaluate(t))!=e.right))return g.segments[g.segments.length-1].value+=_.toString(),g;if(e.right instanceof Ge&&(_=e.right,(g=e.left.evaluate(t))!=e.left))return _.segments[0].value=g.toString()+_.segments[0].value,_;if(e.left instanceof Ge&&e.right instanceof Ge){var T=(g=e.left).segments;_=e.right,T[T.length-1].value+=_.segments[0].value;for(var v=1;v<_.segments.length;v++)T.push(_.segments[v]);return g}case"*":m=t.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(t)&&e.right.is_number(t)&&n()&&!(e.left instanceof Ct&&e.left.operator!=e.operator&&le[e.left.operator]>=le[e.operator])){var A=d(Ct,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof pn&&!(e.left instanceof pn)?Ur(t,A,e):Ur(t,e,A)}m&&e.is_number(t)&&(e.right instanceof Ct&&e.right.operator==e.operator&&(e=d(Ct,e,{operator:e.operator,left:d(Ct,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof pn&&e.left instanceof Ct&&e.left.operator==e.operator&&(e.left.left instanceof pn?e=d(Ct,e,{operator:e.operator,left:d(Ct,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof pn&&(e=d(Ct,e,{operator:e.operator,left:d(Ct,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof Ct&&e.left.operator==e.operator&&e.left.right instanceof pn&&e.right instanceof Ct&&e.right.operator==e.operator&&e.right.left instanceof pn&&(e=d(Ct,e,{operator:e.operator,left:d(Ct,e.left,{operator:e.operator,left:d(Ct,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof Ct&&e.right.operator==e.operator&&(Pr.has(e.operator)||"+"==e.operator&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t))))return e.left=d(Ct,e.left,{operator:e.operator,left:e.left,right:e.right.left}),e.right=e.right.right,e.transform(t);var b=e.evaluate(t);return b!==e?(b=Er(b,e).optimize(t),Ur(t,b,e)):e})),cr(an,(function(e){return e})),cr(on,(function(e,t){if(!t.option("ie8")&&xr(e)&&(!e.scope.uses_with||!t.find_parent(Re)))switch(e.name){case"undefined":return d(Tn,e).optimize(t);case"NaN":return d(yn,e).optimize(t);case"Infinity":return d(An,e).optimize(t)}var n=t.parent();if(t.option("reduce_vars")&&Fr(e,n)!==e){const h=e.definition();if(t.top_retain&&h.global&&t.top_retain(h))return h.fixed=!1,h.should_replace=!1,h.single_use=!1,e;var r=e.fixed_value(),i=h.single_use&&!(n instanceof gt&&n.is_expr_pure(t)||S(n,In));if(i&&(r instanceof Le||r instanceof Ft))if(Jr(r,t))i=!1;else if(h.scope!==e.scope&&(1==h.escaped||sr(r,16)||function(e){for(var t,n=0;t=e.parent(n++);){if(t instanceof fe)return!1;if(t instanceof wt||t instanceof Rt||t instanceof Ot)return!0}return!1}(t)))i=!1;else if(ei(t,h))i=!1;else if((h.scope!==e.scope||h.orig[0]instanceof Xt)&&"f"==(i=r.is_constant_expression(e.scope))){var s=e.scope;do{(s instanceof Ue||pr(s))&&or(s,16)}while(s=s.parent_scope)}if(i&&r instanceof Le){const s=mr(t);i=h.scope===e.scope&&!ti(s,r)||n instanceof gt&&n.expression===e&&!ti(s,r)}if(i&&r instanceof Ft&&(i=!(r.extends&&(r.extends.may_throw(t)||r.extends.has_side_effects(t))||r.properties.some(e=>e.may_throw(t)||e.has_side_effects(t)))),i&&r){if(r instanceof $t&&(or(r,256),r=d(Ut,r,r)),r instanceof Ue&&(or(r,256),r=d(Be,r,r)),h.recursive_refs>0&&r.name instanceof qt){const e=r.name.definition();let t=r.variables.get(r.name.name),n=t&&t.orig[0];n instanceof Jt||(n=d(Jt,r.name,r.name),n.scope=r,r.name=n,t=r.def_function(n)),xn(r,n=>{n instanceof on&&n.definition()===e&&(n.thedef=t,t.references.push(n))})}return(r instanceof Le||r instanceof Ft)&&mr(t).add_child_scope(r),r.optimize(t)}if(r&&void 0===h.should_replace){let e;if(r instanceof un)h.orig[0]instanceof Xt||!h.references.every(e=>h.scope===e.scope)||(e=r);else{var o=r.evaluate(t);o===r||!t.option("unsafe_regexp")&&o instanceof RegExp||(e=Er(o,r))}if(e){var a,l=e.optimize(t).size();xn(r,e=>{if(e instanceof on)return Nn})?a=function(){var n=e.optimize(t);return n===e?n.clone(!0):n}:(l=Math.min(l,r.size()),a=function(){var n=Br(e.optimize(t),r);return n===e||n===r?n.clone(!0):n});var c=h.name.length,u=0;t.option("unused")&&!t.exposed(h)&&(u=(c+2+l)/(h.references.length-h.assignments)),h.should_replace=l<=c+u&&a}else h.should_replace=!1}if(h.should_replace)return h.should_replace()}return e})),cr(Tn,(function(e,t){if(t.option("unsafe_undefined")){var n=gr(t,"undefined");if(n){var r=d(on,e,{name:"undefined",scope:n.scope,thedef:n});return or(r,8),r}}var i=Fr(t.self(),t.parent());return i&&ni(i,e)?e:d(bt,e,{operator:"void",expression:d(fn,e,{value:0})})})),cr(An,(function(e,t){var n=Fr(t.self(),t.parent());return n&&ni(n,e)?e:!t.option("keep_infinity")||n&&!ni(n,e)||gr(t,"Infinity")?d(Ct,e,{operator:"/",left:d(fn,e,{value:1}),right:d(fn,e,{value:0})}):e})),cr(yn,(function(e,t){var n=Fr(t.self(),t.parent());return n&&!ni(n,e)||gr(t,"NaN")?d(Ct,e,{operator:"/",left:d(fn,e,{value:0}),right:d(fn,e,{value:0})}):e}));const ii=E("+ - / * % >> << >>> | ^ &"),si=E("* | ^ &");function oi(e){let t;return e instanceof En||Mr(e)||e instanceof on&&(t=e.definition().fixed)instanceof de&&oi(t)}function ai(e,t){return e instanceof on&&(e=e.fixed_value()),!!e&&(!(e instanceof Le||e instanceof Ft)||!(e instanceof Le&&e.contains_this())||t.parent()instanceof _t)}function li(e,t){return t.in_boolean_context()?Ur(t,e,_r(e,[e,d(Cn,e)]).optimize(t)):e}function ci(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];if(i instanceof Pe){var s=i.expression;s instanceof wt&&(n.splice(r,1,...s.elements),r--)}}return e}function ui(e,t){if(!t.option("computed_props"))return e;if(!(e.key instanceof pn))return e;if(e.key instanceof dn||e.key instanceof fn){if("__proto__"===e.key.value)return e;if("constructor"==e.key.value&&t.parent()instanceof Ft)return e;e.key=e instanceof Rt?e.key.value:d(e instanceof Bt?Qt:Yt,e.key,{name:e.key.value})}return e}cr(Dt,(function(e,t){var n;if(t.option("dead_code")&&e.left instanceof on&&(n=e.left.definition()).scope===t.find_parent(Le)){var r,i=0,s=e;do{if(r=s,(s=t.parent(i++))instanceof We){if(o(i,s))break;if(ri(n.scope,[n]))break;return"="==e.operator?e.right:(n.fixed=!1,d(Ct,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(t))}}while(s instanceof Ct&&s.right===r||s instanceof Et&&s.tail_node()===r)}return"="==(e=e.lift_sequences(t)).operator&&e.left instanceof on&&e.right instanceof Ct&&(e.right.left instanceof on&&e.right.left.name==e.left.name&&ii.has(e.right.operator)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof on&&e.right.right.name==e.left.name&&si.has(e.right.operator)&&!e.right.left.has_side_effects(t)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e;function o(n,r){var i=e.right;e.right=d(En,i);var s=r.may_throw(t);e.right=i;for(var o,a=e.left.definition().scope;(o=t.parent(n++))!==a;)if(o instanceof st){if(o.bfinally)return!0;if(s&&o.bcatch)return!0}}})),cr(Nt,(function(e,t){if(!t.option("evaluate"))return e;var n=e.right.evaluate(t);return void 0===n?e=e.left:n!==e.right&&(n=Er(n,e.right),e.right=Br(n,e.right)),e})),cr(xt,(function(e,t){if(!t.option("conditionals"))return e;if(e.condition instanceof Et){var n=e.condition.expressions.slice();return e.condition=n.pop(),n.push(e),_r(e,n)}var r=e.condition.evaluate(t);if(r!==e.condition)return r?(t.warn("Condition always true [{file}:{line},{col}]",e.start),yr(t.parent(),t.self(),e.consequent)):(t.warn("Condition always false [{file}:{line},{col}]",e.start),yr(t.parent(),t.self(),e.alternative));var i=r.negate(t,Fn(t));Ur(t,r,i)===i&&(e=d(xt,e,{condition:i,consequent:e.alternative,alternative:e.consequent}));var s,o=e.condition,a=e.consequent,l=e.alternative;if(o instanceof on&&a instanceof on&&o.definition()===a.definition())return d(Ct,e,{operator:"||",left:o,right:l});if(a instanceof Dt&&l instanceof Dt&&a.operator==l.operator&&a.left.equivalent_to(l.left)&&(!e.condition.has_side_effects(t)||"="==a.operator&&!a.left.has_side_effects(t)))return d(Dt,e,{operator:a.operator,left:a.left,right:d(xt,e,{condition:e.condition,consequent:a.right,alternative:l.right})});if(a instanceof gt&&l.TYPE===a.TYPE&&a.args.length>0&&a.args.length==l.args.length&&a.expression.equivalent_to(l.expression)&&!e.condition.has_side_effects(t)&&!a.expression.has_side_effects(t)&&"number"==typeof(s=function(){for(var e=a.args,t=l.args,n=0,r=e.length;n<r;n++){if(e[n]instanceof Pe)return;if(!e[n].equivalent_to(t[n])){if(t[n]instanceof Pe)return;for(var i=n+1;i<r;i++){if(e[i]instanceof Pe)return;if(!e[i].equivalent_to(t[i]))return}return n}}}())){var c=a.clone();return c.args[s]=d(xt,e,{condition:e.condition,consequent:a.args[s],alternative:l.args[s]}),c}if(l instanceof xt&&a.equivalent_to(l.consequent))return d(xt,e,{condition:d(Ct,e,{operator:"||",left:o,right:l.condition}),consequent:a,alternative:l.alternative}).optimize(t);if(t.option("ecma")>=2020&&function(e,t,n){if(t.may_throw(n))return!1;let r;if(e instanceof Ct&&"=="===e.operator&&((r=oi(e.left)&&e.left)||(r=oi(e.right)&&e.right))&&(r===e.left?e.right:e.left).equivalent_to(t))return!0;if(e instanceof Ct&&"||"===e.operator){let n,r;const i=e=>{if(!(e instanceof Ct)||"==="!==e.operator&&"=="!==e.operator)return!1;let i,s=0;return e.left instanceof En&&(s++,n=e,i=e.right),e.right instanceof En&&(s++,n=e,i=e.left),Mr(e.left)&&(s++,r=e,i=e.right),Mr(e.right)&&(s++,r=e,i=e.left),1===s&&!!i.equivalent_to(t)};if(!i(e.left))return!1;if(!i(e.right))return!1;if(n&&r&&n!==r)return!0}return!1}(o,l,t))return d(Ct,e,{operator:"??",left:l,right:a}).optimize(t);if(l instanceof Et&&a.equivalent_to(l.expressions[l.expressions.length-1]))return _r(e,[d(Ct,e,{operator:"||",left:o,right:_r(e,l.expressions.slice(0,-1))}),a]).optimize(t);if(l instanceof Ct&&"&&"==l.operator&&a.equivalent_to(l.right))return d(Ct,e,{operator:"&&",left:d(Ct,e,{operator:"||",left:o,right:l.left}),right:a}).optimize(t);if(a instanceof xt&&a.alternative.equivalent_to(l))return d(xt,e,{condition:d(Ct,e,{left:e.condition,operator:"&&",right:a.condition}),consequent:a.consequent,alternative:l});if(a.equivalent_to(l))return _r(e,[e.condition,a]).optimize(t);if(a instanceof Ct&&"||"==a.operator&&a.right.equivalent_to(l))return d(Ct,e,{operator:"||",left:d(Ct,e,{operator:"&&",left:e.condition,right:a.left}),right:l}).optimize(t);var u=t.in_boolean_context();return p(e.consequent)?f(e.alternative)?h(e.condition):d(Ct,e,{operator:"||",left:h(e.condition),right:e.alternative}):f(e.consequent)?p(e.alternative)?h(e.condition.negate(t)):d(Ct,e,{operator:"&&",left:h(e.condition.negate(t)),right:e.alternative}):p(e.alternative)?d(Ct,e,{operator:"||",left:h(e.condition.negate(t)),right:e.consequent}):f(e.alternative)?d(Ct,e,{operator:"&&",left:h(e.condition),right:e.consequent}):e;function h(e){return e.is_boolean()?e:d(bt,e,{operator:"!",expression:e.negate(t)})}function p(e){return e instanceof Cn||u&&e instanceof pn&&e.getValue()||e instanceof bt&&"!"==e.operator&&e.expression instanceof pn&&!e.expression.getValue()}function f(e){return e instanceof Sn||u&&e instanceof pn&&!e.getValue()||e instanceof bt&&"!"==e.operator&&e.expression instanceof pn&&e.expression.getValue()}})),cr(bn,(function(e,t){if(t.in_boolean_context())return d(fn,e,{value:+e.value});var n=t.parent();return t.option("booleans_as_integers")?(n instanceof Ct&&("==="==n.operator||"!=="==n.operator)&&(n.operator=n.operator.replace(/=$/,"")),d(fn,e,{value:+e.value})):t.option("booleans")?n instanceof Ct&&("=="==n.operator||"!="==n.operator)?(t.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:n.operator,value:e.value,file:n.start.file,line:n.start.line,col:n.start.col}),d(fn,e,{value:+e.value})):d(bt,e,{operator:"!",expression:d(fn,e,{value:1-e.value})}):e})),cr(vt,(function(e,t){var n,r=e.expression,i=e.property;if(t.option("properties")){var s=i.evaluate(t);if(s!==i){"string"==typeof s&&("undefined"==s?s=void 0:(A=parseFloat(s)).toString()==s&&(s=A)),i=e.property=Br(i,Er(s,i).transform(t));var o=""+s;if(Q(o)&&o.length<=i.size()+1)return d(Tt,e,{expression:r,property:o,quote:i.quote}).optimize(t)}}e:if(t.option("arguments")&&r instanceof on&&"arguments"==r.name&&1==r.definition().orig.length&&(n=r.scope)instanceof Le&&n.uses_arguments&&!(n instanceof $e)&&i instanceof fn){for(var a=i.getValue(),l=new Set,c=n.argnames,u=0;u<c.length;u++){if(!(c[u]instanceof Xt))break e;var h=c[u].name;if(l.has(h))break e;l.add(h)}var p=n.argnames[a];if(p&&t.has_directive("use strict")){var f=p.definition();(!t.option("reduce_vars")||f.assignments||f.orig.length>1)&&(p=null)}else if(!p&&!t.option("keep_fargs")&&a<n.argnames.length+5)for(;a>=n.argnames.length;)p=d(Xt,n,{name:n.make_var_name("argument_"+n.argnames.length),scope:n}),n.argnames.push(p),n.enclosed.push(n.def_variable(p));if(p){var m=d(on,e,p);return m.reference({}),ar(p,1),m}}if(Fr(e,t.parent()))return e;if(s!==i){var g=e.flatten_object(o,t);g&&(r=e.expression=g.expression,i=e.property=g.property)}if(t.option("properties")&&t.option("side_effects")&&i instanceof fn&&r instanceof wt){a=i.getValue();var _=r.elements,E=_[a];e:if(ai(E,t)){for(var y=!0,T=[],v=_.length;--v>a;)(A=_[v].drop_side_effect_free(t))&&(T.unshift(A),y&&A.has_side_effects(t)&&(y=!1));if(E instanceof Pe)break e;for(E=E instanceof vn?d(Tn,E):E,y||T.unshift(E);--v>=0;){var A;if((A=_[v])instanceof Pe)break e;(A=A.drop_side_effect_free(t))?T.unshift(A):a--}return y?(T.push(E),_r(e,T).optimize(t)):d(vt,e,{expression:d(wt,r,{elements:T}),property:d(fn,i,{value:a})})}}var b=e.evaluate(t);return b!==e?Ur(t,b=Er(b,e).optimize(t),e):e})),Le.DEFMETHOD("contains_this",(function(){return xn(this,e=>e instanceof un?Nn:e!==this&&e instanceof Ie&&!(e instanceof $e)||void 0)})),yt.DEFMETHOD("flatten_object",(function(e,t){if(t.option("properties")){var n=t.option("unsafe_arrows")&&t.option("ecma")>=2015,r=this.expression;if(r instanceof Ot)for(var i=r.properties,s=i.length;--s>=0;){var o=i[s];if(""+(o instanceof Lt?o.key.name:o.key)==e){if(!i.every(e=>e instanceof Rt||n&&e instanceof Lt&&!e.is_generator))break;if(!ai(o.value,t))break;return d(vt,this,{expression:d(wt,r,{elements:i.map((function(e){var t=e.value;t instanceof Fe&&(t=d(Be,t,t));var n=e.key;return n instanceof de&&!(n instanceof Yt)?_r(e,[n,t]):t}))}),property:d(fn,this,{value:s})})}}}})),cr(Tt,(function(e,t){"arguments"!=e.property&&"caller"!=e.property||t.warn("Function.prototype.{prop} not supported [{file}:{line},{col}]",{prop:e.property,file:e.start.file,line:e.start.line,col:e.start.col});const n=t.parent();if(Fr(e,n))return e;if(t.option("unsafe_proto")&&e.expression instanceof Tt&&"prototype"==e.expression.property){var r=e.expression.expression;if(xr(r))switch(r.name){case"Array":e.expression=d(wt,e.expression,{elements:[]});break;case"Function":e.expression=d(Be,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=d(fn,e.expression,{value:0});break;case"Object":e.expression=d(Ot,e.expression,{properties:[]});break;case"RegExp":e.expression=d(gn,e.expression,{value:{source:"t",flags:""}});break;case"String":e.expression=d(dn,e.expression,{value:""})}}if(!(n instanceof gt&&S(n,In))){const n=e.flatten_object(e.property,t);if(n)return n.optimize(t)}let i=e.evaluate(t);return i!==e?(i=Er(i,e).optimize(t),Ur(t,i,e)):e})),cr(wt,(function(e,t){var n=li(e,t);return n!==e?n:ci(e,0,e.elements)})),cr(Ot,(function(e,t){var n=li(e,t);if(n!==e)return n;for(var r=e.properties,i=0;i<r.length;i++){var s=r[i];if(s instanceof Pe){var o=s.expression;o instanceof Ot?(r.splice.apply(r,[i,1].concat(s.expression.properties)),i--):o instanceof pn&&!(o instanceof dn)&&r.splice(i,1)}}return e})),cr(gn,li),cr(ze,(function(e,t){return e.value&&Mr(e.value,t)&&(e.value=null),e})),cr($e,qr),cr(Be,(function(e,t){return e=qr(e,t),!(t.option("unsafe_arrows")&&t.option("ecma")>=2015)||e.name||e.is_generator||e.uses_arguments||e.pinned()||xn(e,e=>{if(e instanceof un)return Nn})?e:d($e,e,e).optimize(t)})),cr(Ft,(function(e){return e})),cr(Ze,(function(e,t){return e.expression&&!e.is_star&&Mr(e.expression,t)&&(e.expression=null),e})),cr(Ge,(function(e,t){if(!t.option("evaluate")||t.parent()instanceof He)return e;for(var n=[],r=0;r<e.segments.length;r++){var i=e.segments[r];if(i instanceof de){var s=i.evaluate(t);if(s!==i&&(s+"").length<=i.size()+"${}".length){n[n.length-1].value=n[n.length-1].value+s+e.segments[++r].value;continue}if(i instanceof Ge){var o=i.segments;n[n.length-1].value+=o[0].value;for(var a=1;a<o.length;a++)i=o[a],n.push(i);continue}}n.push(i)}if(e.segments=n,1==n.length)return d(dn,e,n[0]);if(3===n.length&&n[1]instanceof de){if(""===n[2].value)return d(Ct,e,{operator:"+",left:d(dn,e,{value:n[0].value}),right:n[1]});if(""===n[0].value)return d(Ct,e,{operator:"+",left:n[1],right:d(dn,e,{value:n[2].value})})}return e})),cr(He,(function(e){return e})),cr(kt,ui),cr(Lt,(function(e,t){if(ui(e,t),t.option("arrows")&&t.parent()instanceof Ot&&!e.is_generator&&!e.value.uses_arguments&&!e.value.pinned()&&1==e.value.body.length&&e.value.body[0]instanceof ze&&e.value.body[0].value&&!e.value.contains_this()){var n=d($e,e.value,e.value);return n.async=e.async,n.is_generator=e.is_generator,d(Rt,e,{key:e.key instanceof Yt?e.key.name:e.key,value:n,quote:e.quote})}return e})),cr(Rt,(function(e,t){ui(e,t);var n=t.option("unsafe_methods");if(n&&t.option("ecma")>=2015&&(!(n instanceof RegExp)||n.test(e.key+""))){var r=e.key,i=e.value;if((i instanceof $e&&Array.isArray(i.body)&&!i.contains_this()||i instanceof Be)&&!i.name)return d(Lt,e,{async:i.async,is_generator:i.is_generator,key:r instanceof de?r:d(Yt,e,{name:r}),value:d(Fe,i,i),quote:e.quote})}return e})),cr(Ve,(function(e,t){if(1==t.option("pure_getters")&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!function(e){for(var t=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],n=0,r=0,i=t.length;n<i;r++){var s=e.parent(r);if(!s)return!1;if(0!==n||"Destructuring"!=s.TYPE){if(!t[n].test(s.TYPE))return!1;n++}}return!0}(t)){for(var n=[],r=0;r<e.names.length;r++){var i=e.names[r];i instanceof Rt&&"string"==typeof i.key&&i.value instanceof Gt&&!s(t,i.value.definition())||n.push(i)}n.length!=e.names.length&&(e.names=n)}return e;function s(e,t){return!!t.references.length||!!t.global&&(!e.toplevel.vars||!!e.top_retain&&e.top_retain(t))}}));var hi=["$&","$'","$*","$+","$1","$2","$3","$4","$5","$6","$7","$8","$9","$_","$`","$input","@@iterator","ABORT_ERR","ACTIVE","ACTIVE_ATTRIBUTES","ACTIVE_TEXTURE","ACTIVE_UNIFORMS","ADDITION","ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALLOW_KEYBOARD_INPUT","ALLPASS","ALPHA","ALPHA_BITS","ALT_MASK","ALWAYS","ANY_TYPE","ANY_UNORDERED_NODE_TYPE","ARRAY_BUFFER","ARRAY_BUFFER_BINDING","ATTACHED_SHADERS","ATTRIBUTE_NODE","AT_TARGET","AddSearchProvider","AnalyserNode","AnimationEvent","AnonXMLHttpRequest","ApplicationCache","ApplicationCacheErrorEvent","Array","ArrayBuffer","Attr","Audio","AudioBuffer","AudioBufferSourceNode","AudioContext","AudioDestinationNode","AudioListener","AudioNode","AudioParam","AudioProcessingEvent","AudioStreamTrack","AutocompleteErrorEvent","BACK","BAD_BOUNDARYPOINTS_ERR","BANDPASS","BLEND","BLEND_COLOR","BLEND_DST_ALPHA","BLEND_DST_RGB","BLEND_EQUATION","BLEND_EQUATION_ALPHA","BLEND_EQUATION_RGB","BLEND_SRC_ALPHA","BLEND_SRC_RGB","BLUE_BITS","BLUR","BOOL","BOOLEAN_TYPE","BOOL_VEC2","BOOL_VEC3","BOOL_VEC4","BOTH","BROWSER_DEFAULT_WEBGL","BUBBLING_PHASE","BUFFER_SIZE","BUFFER_USAGE","BYTE","BYTES_PER_ELEMENT","BarProp","BaseHref","BatteryManager","BeforeLoadEvent","BeforeUnloadEvent","BiquadFilterNode","Blob","BlobEvent","Boolean","CAPTURING_PHASE","CCW","CDATASection","CDATA_SECTION_NODE","CHANGE","CHARSET_RULE","CHECKING","CLAMP_TO_EDGE","CLICK","CLOSED","CLOSING","COLOR_ATTACHMENT0","COLOR_BUFFER_BIT","COLOR_CLEAR_VALUE","COLOR_WRITEMASK","COMMENT_NODE","COMPILE_STATUS","COMPRESSED_RGBA_S3TC_DXT1_EXT","COMPRESSED_RGBA_S3TC_DXT3_EXT","COMPRESSED_RGBA_S3TC_DXT5_EXT","COMPRESSED_RGB_S3TC_DXT1_EXT","COMPRESSED_TEXTURE_FORMATS","CONNECTING","CONSTANT_ALPHA","CONSTANT_COLOR","CONSTRAINT_ERR","CONTEXT_LOST_WEBGL","CONTROL_MASK","COUNTER_STYLE_RULE","CSS","CSS2Properties","CSSCharsetRule","CSSConditionRule","CSSCounterStyleRule","CSSFontFaceRule","CSSFontFeatureValuesRule","CSSGroupingRule","CSSImportRule","CSSKeyframeRule","CSSKeyframesRule","CSSMediaRule","CSSMozDocumentRule","CSSNameSpaceRule","CSSPageRule","CSSPrimitiveValue","CSSRule","CSSRuleList","CSSStyleDeclaration","CSSStyleRule","CSSStyleSheet","CSSSupportsRule","CSSUnknownRule","CSSValue","CSSValueList","CSSVariablesDeclaration","CSSVariablesRule","CSSViewportRule","CSS_ATTR","CSS_CM","CSS_COUNTER","CSS_CUSTOM","CSS_DEG","CSS_DIMENSION","CSS_EMS","CSS_EXS","CSS_FILTER_BLUR","CSS_FILTER_BRIGHTNESS","CSS_FILTER_CONTRAST","CSS_FILTER_CUSTOM","CSS_FILTER_DROP_SHADOW","CSS_FILTER_GRAYSCALE","CSS_FILTER_HUE_ROTATE","CSS_FILTER_INVERT","CSS_FILTER_OPACITY","CSS_FILTER_REFERENCE","CSS_FILTER_SATURATE","CSS_FILTER_SEPIA","CSS_GRAD","CSS_HZ","CSS_IDENT","CSS_IN","CSS_INHERIT","CSS_KHZ","CSS_MATRIX","CSS_MATRIX3D","CSS_MM","CSS_MS","CSS_NUMBER","CSS_PC","CSS_PERCENTAGE","CSS_PERSPECTIVE","CSS_PRIMITIVE_VALUE","CSS_PT","CSS_PX","CSS_RAD","CSS_RECT","CSS_RGBCOLOR","CSS_ROTATE","CSS_ROTATE3D","CSS_ROTATEX","CSS_ROTATEY","CSS_ROTATEZ","CSS_S","CSS_SCALE","CSS_SCALE3D","CSS_SCALEX","CSS_SCALEY","CSS_SCALEZ","CSS_SKEW","CSS_SKEWX","CSS_SKEWY","CSS_STRING","CSS_TRANSLATE","CSS_TRANSLATE3D","CSS_TRANSLATEX","CSS_TRANSLATEY","CSS_TRANSLATEZ","CSS_UNKNOWN","CSS_URI","CSS_VALUE_LIST","CSS_VH","CSS_VMAX","CSS_VMIN","CSS_VW","CULL_FACE","CULL_FACE_MODE","CURRENT_PROGRAM","CURRENT_VERTEX_ATTRIB","CUSTOM","CW","CanvasGradient","CanvasPattern","CanvasRenderingContext2D","CaretPosition","ChannelMergerNode","ChannelSplitterNode","CharacterData","ClientRect","ClientRectList","Clipboard","ClipboardEvent","CloseEvent","Collator","CommandEvent","Comment","CompositionEvent","Console","Controllers","ConvolverNode","Counter","Crypto","CryptoKey","CustomEvent","DATABASE_ERR","DATA_CLONE_ERR","DATA_ERR","DBLCLICK","DECR","DECR_WRAP","DELETE_STATUS","DEPTH_ATTACHMENT","DEPTH_BITS","DEPTH_BUFFER_BIT","DEPTH_CLEAR_VALUE","DEPTH_COMPONENT","DEPTH_COMPONENT16","DEPTH_FUNC","DEPTH_RANGE","DEPTH_STENCIL","DEPTH_STENCIL_ATTACHMENT","DEPTH_TEST","DEPTH_WRITEMASK","DIRECTION_DOWN","DIRECTION_LEFT","DIRECTION_RIGHT","DIRECTION_UP","DISABLED","DISPATCH_REQUEST_ERR","DITHER","DOCUMENT_FRAGMENT_NODE","DOCUMENT_NODE","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","DOCUMENT_POSITION_PRECEDING","DOCUMENT_TYPE_NODE","DOMCursor","DOMError","DOMException","DOMImplementation","DOMImplementationLS","DOMMatrix","DOMMatrixReadOnly","DOMParser","DOMPoint","DOMPointReadOnly","DOMQuad","DOMRect","DOMRectList","DOMRectReadOnly","DOMRequest","DOMSTRING_SIZE_ERR","DOMSettableTokenList","DOMStringList","DOMStringMap","DOMTokenList","DOMTransactionEvent","DOM_DELTA_LINE","DOM_DELTA_PAGE","DOM_DELTA_PIXEL","DOM_INPUT_METHOD_DROP","DOM_INPUT_METHOD_HANDWRITING","DOM_INPUT_METHOD_IME","DOM_INPUT_METHOD_KEYBOARD","DOM_INPUT_METHOD_MULTIMODAL","DOM_INPUT_METHOD_OPTION","DOM_INPUT_METHOD_PASTE","DOM_INPUT_METHOD_SCRIPT","DOM_INPUT_METHOD_UNKNOWN","DOM_INPUT_METHOD_VOICE","DOM_KEY_LOCATION_JOYSTICK","DOM_KEY_LOCATION_LEFT","DOM_KEY_LOCATION_MOBILE","DOM_KEY_LOCATION_NUMPAD","DOM_KEY_LOCATION_RIGHT","DOM_KEY_LOCATION_STANDARD","DOM_VK_0","DOM_VK_1","DOM_VK_2","DOM_VK_3","DOM_VK_4","DOM_VK_5","DOM_VK_6","DOM_VK_7","DOM_VK_8","DOM_VK_9","DOM_VK_A","DOM_VK_ACCEPT","DOM_VK_ADD","DOM_VK_ALT","DOM_VK_ALTGR","DOM_VK_AMPERSAND","DOM_VK_ASTERISK","DOM_VK_AT","DOM_VK_ATTN","DOM_VK_B","DOM_VK_BACKSPACE","DOM_VK_BACK_QUOTE","DOM_VK_BACK_SLASH","DOM_VK_BACK_SPACE","DOM_VK_C","DOM_VK_CANCEL","DOM_VK_CAPS_LOCK","DOM_VK_CIRCUMFLEX","DOM_VK_CLEAR","DOM_VK_CLOSE_BRACKET","DOM_VK_CLOSE_CURLY_BRACKET","DOM_VK_CLOSE_PAREN","DOM_VK_COLON","DOM_VK_COMMA","DOM_VK_CONTEXT_MENU","DOM_VK_CONTROL","DOM_VK_CONVERT","DOM_VK_CRSEL","DOM_VK_CTRL","DOM_VK_D","DOM_VK_DECIMAL","DOM_VK_DELETE","DOM_VK_DIVIDE","DOM_VK_DOLLAR","DOM_VK_DOUBLE_QUOTE","DOM_VK_DOWN","DOM_VK_E","DOM_VK_EISU","DOM_VK_END","DOM_VK_ENTER","DOM_VK_EQUALS","DOM_VK_EREOF","DOM_VK_ESCAPE","DOM_VK_EXCLAMATION","DOM_VK_EXECUTE","DOM_VK_EXSEL","DOM_VK_F","DOM_VK_F1","DOM_VK_F10","DOM_VK_F11","DOM_VK_F12","DOM_VK_F13","DOM_VK_F14","DOM_VK_F15","DOM_VK_F16","DOM_VK_F17","DOM_VK_F18","DOM_VK_F19","DOM_VK_F2","DOM_VK_F20","DOM_VK_F21","DOM_VK_F22","DOM_VK_F23","DOM_VK_F24","DOM_VK_F25","DOM_VK_F26","DOM_VK_F27","DOM_VK_F28","DOM_VK_F29","DOM_VK_F3","DOM_VK_F30","DOM_VK_F31","DOM_VK_F32","DOM_VK_F33","DOM_VK_F34","DOM_VK_F35","DOM_VK_F36","DOM_VK_F4","DOM_VK_F5","DOM_VK_F6","DOM_VK_F7","DOM_VK_F8","DOM_VK_F9","DOM_VK_FINAL","DOM_VK_FRONT","DOM_VK_G","DOM_VK_GREATER_THAN","DOM_VK_H","DOM_VK_HANGUL","DOM_VK_HANJA","DOM_VK_HASH","DOM_VK_HELP","DOM_VK_HK_TOGGLE","DOM_VK_HOME","DOM_VK_HYPHEN_MINUS","DOM_VK_I","DOM_VK_INSERT","DOM_VK_J","DOM_VK_JUNJA","DOM_VK_K","DOM_VK_KANA","DOM_VK_KANJI","DOM_VK_L","DOM_VK_LEFT","DOM_VK_LEFT_TAB","DOM_VK_LESS_THAN","DOM_VK_M","DOM_VK_META","DOM_VK_MODECHANGE","DOM_VK_MULTIPLY","DOM_VK_N","DOM_VK_NONCONVERT","DOM_VK_NUMPAD0","DOM_VK_NUMPAD1","DOM_VK_NUMPAD2","DOM_VK_NUMPAD3","DOM_VK_NUMPAD4","DOM_VK_NUMPAD5","DOM_VK_NUMPAD6","DOM_VK_NUMPAD7","DOM_VK_NUMPAD8","DOM_VK_NUMPAD9","DOM_VK_NUM_LOCK","DOM_VK_O","DOM_VK_OEM_1","DOM_VK_OEM_102","DOM_VK_OEM_2","DOM_VK_OEM_3","DOM_VK_OEM_4","DOM_VK_OEM_5","DOM_VK_OEM_6","DOM_VK_OEM_7","DOM_VK_OEM_8","DOM_VK_OEM_COMMA","DOM_VK_OEM_MINUS","DOM_VK_OEM_PERIOD","DOM_VK_OEM_PLUS","DOM_VK_OPEN_BRACKET","DOM_VK_OPEN_CURLY_BRACKET","DOM_VK_OPEN_PAREN","DOM_VK_P","DOM_VK_PA1","DOM_VK_PAGEDOWN","DOM_VK_PAGEUP","DOM_VK_PAGE_DOWN","DOM_VK_PAGE_UP","DOM_VK_PAUSE","DOM_VK_PERCENT","DOM_VK_PERIOD","DOM_VK_PIPE","DOM_VK_PLAY","DOM_VK_PLUS","DOM_VK_PRINT","DOM_VK_PRINTSCREEN","DOM_VK_PROCESSKEY","DOM_VK_PROPERITES","DOM_VK_Q","DOM_VK_QUESTION_MARK","DOM_VK_QUOTE","DOM_VK_R","DOM_VK_REDO","DOM_VK_RETURN","DOM_VK_RIGHT","DOM_VK_S","DOM_VK_SCROLL_LOCK","DOM_VK_SELECT","DOM_VK_SEMICOLON","DOM_VK_SEPARATOR","DOM_VK_SHIFT","DOM_VK_SLASH","DOM_VK_SLEEP","DOM_VK_SPACE","DOM_VK_SUBTRACT","DOM_VK_T","DOM_VK_TAB","DOM_VK_TILDE","DOM_VK_U","DOM_VK_UNDERSCORE","DOM_VK_UNDO","DOM_VK_UNICODE","DOM_VK_UP","DOM_VK_V","DOM_VK_VOLUME_DOWN","DOM_VK_VOLUME_MUTE","DOM_VK_VOLUME_UP","DOM_VK_W","DOM_VK_WIN","DOM_VK_WINDOW","DOM_VK_WIN_ICO_00","DOM_VK_WIN_ICO_CLEAR","DOM_VK_WIN_ICO_HELP","DOM_VK_WIN_OEM_ATTN","DOM_VK_WIN_OEM_AUTO","DOM_VK_WIN_OEM_BACKTAB","DOM_VK_WIN_OEM_CLEAR","DOM_VK_WIN_OEM_COPY","DOM_VK_WIN_OEM_CUSEL","DOM_VK_WIN_OEM_ENLW","DOM_VK_WIN_OEM_FINISH","DOM_VK_WIN_OEM_FJ_JISHO","DOM_VK_WIN_OEM_FJ_LOYA","DOM_VK_WIN_OEM_FJ_MASSHOU","DOM_VK_WIN_OEM_FJ_ROYA","DOM_VK_WIN_OEM_FJ_TOUROKU","DOM_VK_WIN_OEM_JUMP","DOM_VK_WIN_OEM_PA1","DOM_VK_WIN_OEM_PA2","DOM_VK_WIN_OEM_PA3","DOM_VK_WIN_OEM_RESET","DOM_VK_WIN_OEM_WSCTRL","DOM_VK_X","DOM_VK_XF86XK_ADD_FAVORITE","DOM_VK_XF86XK_APPLICATION_LEFT","DOM_VK_XF86XK_APPLICATION_RIGHT","DOM_VK_XF86XK_AUDIO_CYCLE_TRACK","DOM_VK_XF86XK_AUDIO_FORWARD","DOM_VK_XF86XK_AUDIO_LOWER_VOLUME","DOM_VK_XF86XK_AUDIO_MEDIA","DOM_VK_XF86XK_AUDIO_MUTE","DOM_VK_XF86XK_AUDIO_NEXT","DOM_VK_XF86XK_AUDIO_PAUSE","DOM_VK_XF86XK_AUDIO_PLAY","DOM_VK_XF86XK_AUDIO_PREV","DOM_VK_XF86XK_AUDIO_RAISE_VOLUME","DOM_VK_XF86XK_AUDIO_RANDOM_PLAY","DOM_VK_XF86XK_AUDIO_RECORD","DOM_VK_XF86XK_AUDIO_REPEAT","DOM_VK_XF86XK_AUDIO_REWIND","DOM_VK_XF86XK_AUDIO_STOP","DOM_VK_XF86XK_AWAY","DOM_VK_XF86XK_BACK","DOM_VK_XF86XK_BACK_FORWARD","DOM_VK_XF86XK_BATTERY","DOM_VK_XF86XK_BLUE","DOM_VK_XF86XK_BLUETOOTH","DOM_VK_XF86XK_BOOK","DOM_VK_XF86XK_BRIGHTNESS_ADJUST","DOM_VK_XF86XK_CALCULATOR","DOM_VK_XF86XK_CALENDAR","DOM_VK_XF86XK_CD","DOM_VK_XF86XK_CLOSE","DOM_VK_XF86XK_COMMUNITY","DOM_VK_XF86XK_CONTRAST_ADJUST","DOM_VK_XF86XK_COPY","DOM_VK_XF86XK_CUT","DOM_VK_XF86XK_CYCLE_ANGLE","DOM_VK_XF86XK_DISPLAY","DOM_VK_XF86XK_DOCUMENTS","DOM_VK_XF86XK_DOS","DOM_VK_XF86XK_EJECT","DOM_VK_XF86XK_EXCEL","DOM_VK_XF86XK_EXPLORER","DOM_VK_XF86XK_FAVORITES","DOM_VK_XF86XK_FINANCE","DOM_VK_XF86XK_FORWARD","DOM_VK_XF86XK_FRAME_BACK","DOM_VK_XF86XK_FRAME_FORWARD","DOM_VK_XF86XK_GAME","DOM_VK_XF86XK_GO","DOM_VK_XF86XK_GREEN","DOM_VK_XF86XK_HIBERNATE","DOM_VK_XF86XK_HISTORY","DOM_VK_XF86XK_HOME_PAGE","DOM_VK_XF86XK_HOT_LINKS","DOM_VK_XF86XK_I_TOUCH","DOM_VK_XF86XK_KBD_BRIGHTNESS_DOWN","DOM_VK_XF86XK_KBD_BRIGHTNESS_UP","DOM_VK_XF86XK_KBD_LIGHT_ON_OFF","DOM_VK_XF86XK_LAUNCH0","DOM_VK_XF86XK_LAUNCH1","DOM_VK_XF86XK_LAUNCH2","DOM_VK_XF86XK_LAUNCH3","DOM_VK_XF86XK_LAUNCH4","DOM_VK_XF86XK_LAUNCH5","DOM_VK_XF86XK_LAUNCH6","DOM_VK_XF86XK_LAUNCH7","DOM_VK_XF86XK_LAUNCH8","DOM_VK_XF86XK_LAUNCH9","DOM_VK_XF86XK_LAUNCH_A","DOM_VK_XF86XK_LAUNCH_B","DOM_VK_XF86XK_LAUNCH_C","DOM_VK_XF86XK_LAUNCH_D","DOM_VK_XF86XK_LAUNCH_E","DOM_VK_XF86XK_LAUNCH_F","DOM_VK_XF86XK_LIGHT_BULB","DOM_VK_XF86XK_LOG_OFF","DOM_VK_XF86XK_MAIL","DOM_VK_XF86XK_MAIL_FORWARD","DOM_VK_XF86XK_MARKET","DOM_VK_XF86XK_MEETING","DOM_VK_XF86XK_MEMO","DOM_VK_XF86XK_MENU_KB","DOM_VK_XF86XK_MENU_PB","DOM_VK_XF86XK_MESSENGER","DOM_VK_XF86XK_MON_BRIGHTNESS_DOWN","DOM_VK_XF86XK_MON_BRIGHTNESS_UP","DOM_VK_XF86XK_MUSIC","DOM_VK_XF86XK_MY_COMPUTER","DOM_VK_XF86XK_MY_SITES","DOM_VK_XF86XK_NEW","DOM_VK_XF86XK_NEWS","DOM_VK_XF86XK_OFFICE_HOME","DOM_VK_XF86XK_OPEN","DOM_VK_XF86XK_OPEN_URL","DOM_VK_XF86XK_OPTION","DOM_VK_XF86XK_PASTE","DOM_VK_XF86XK_PHONE","DOM_VK_XF86XK_PICTURES","DOM_VK_XF86XK_POWER_DOWN","DOM_VK_XF86XK_POWER_OFF","DOM_VK_XF86XK_RED","DOM_VK_XF86XK_REFRESH","DOM_VK_XF86XK_RELOAD","DOM_VK_XF86XK_REPLY","DOM_VK_XF86XK_ROCKER_DOWN","DOM_VK_XF86XK_ROCKER_ENTER","DOM_VK_XF86XK_ROCKER_UP","DOM_VK_XF86XK_ROTATE_WINDOWS","DOM_VK_XF86XK_ROTATION_KB","DOM_VK_XF86XK_ROTATION_PB","DOM_VK_XF86XK_SAVE","DOM_VK_XF86XK_SCREEN_SAVER","DOM_VK_XF86XK_SCROLL_CLICK","DOM_VK_XF86XK_SCROLL_DOWN","DOM_VK_XF86XK_SCROLL_UP","DOM_VK_XF86XK_SEARCH","DOM_VK_XF86XK_SEND","DOM_VK_XF86XK_SHOP","DOM_VK_XF86XK_SPELL","DOM_VK_XF86XK_SPLIT_SCREEN","DOM_VK_XF86XK_STANDBY","DOM_VK_XF86XK_START","DOM_VK_XF86XK_STOP","DOM_VK_XF86XK_SUBTITLE","DOM_VK_XF86XK_SUPPORT","DOM_VK_XF86XK_SUSPEND","DOM_VK_XF86XK_TASK_PANE","DOM_VK_XF86XK_TERMINAL","DOM_VK_XF86XK_TIME","DOM_VK_XF86XK_TOOLS","DOM_VK_XF86XK_TOP_MENU","DOM_VK_XF86XK_TO_DO_LIST","DOM_VK_XF86XK_TRAVEL","DOM_VK_XF86XK_USER1KB","DOM_VK_XF86XK_USER2KB","DOM_VK_XF86XK_USER_PB","DOM_VK_XF86XK_UWB","DOM_VK_XF86XK_VENDOR_HOME","DOM_VK_XF86XK_VIDEO","DOM_VK_XF86XK_VIEW","DOM_VK_XF86XK_WAKE_UP","DOM_VK_XF86XK_WEB_CAM","DOM_VK_XF86XK_WHEEL_BUTTON","DOM_VK_XF86XK_WLAN","DOM_VK_XF86XK_WORD","DOM_VK_XF86XK_WWW","DOM_VK_XF86XK_XFER","DOM_VK_XF86XK_YELLOW","DOM_VK_XF86XK_ZOOM_IN","DOM_VK_XF86XK_ZOOM_OUT","DOM_VK_Y","DOM_VK_Z","DOM_VK_ZOOM","DONE","DONT_CARE","DOWNLOADING","DRAGDROP","DST_ALPHA","DST_COLOR","DYNAMIC_DRAW","DataChannel","DataTransfer","DataTransferItem","DataTransferItemList","DataView","Date","DateTimeFormat","DelayNode","DesktopNotification","DesktopNotificationCenter","DeviceLightEvent","DeviceMotionEvent","DeviceOrientationEvent","DeviceProximityEvent","DeviceStorage","DeviceStorageChangeEvent","Document","DocumentFragment","DocumentType","DragEvent","DynamicsCompressorNode","E","ELEMENT_ARRAY_BUFFER","ELEMENT_ARRAY_BUFFER_BINDING","ELEMENT_NODE","EMPTY","ENCODING_ERR","ENDED","END_TO_END","END_TO_START","ENTITY_NODE","ENTITY_REFERENCE_NODE","EPSILON","EQUAL","EQUALPOWER","ERROR","EXPONENTIAL_DISTANCE","Element","ElementQuery","Entity","EntityReference","Error","ErrorEvent","EvalError","Event","EventException","EventSource","EventTarget","External","FASTEST","FIDOSDK","FILTER_ACCEPT","FILTER_INTERRUPT","FILTER_REJECT","FILTER_SKIP","FINISHED_STATE","FIRST_ORDERED_NODE_TYPE","FLOAT","FLOAT_MAT2","FLOAT_MAT3","FLOAT_MAT4","FLOAT_VEC2","FLOAT_VEC3","FLOAT_VEC4","FOCUS","FONT_FACE_RULE","FONT_FEATURE_VALUES_RULE","FRAGMENT_SHADER","FRAGMENT_SHADER_DERIVATIVE_HINT_OES","FRAMEBUFFER","FRAMEBUFFER_ATTACHMENT_OBJECT_NAME","FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE","FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE","FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL","FRAMEBUFFER_BINDING","FRAMEBUFFER_COMPLETE","FRAMEBUFFER_INCOMPLETE_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_DIMENSIONS","FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT","FRAMEBUFFER_UNSUPPORTED","FRONT","FRONT_AND_BACK","FRONT_FACE","FUNC_ADD","FUNC_REVERSE_SUBTRACT","FUNC_SUBTRACT","Feed","FeedEntry","File","FileError","FileList","FileReader","FindInPage","Float32Array","Float64Array","FocusEvent","FontFace","FormData","Function","GENERATE_MIPMAP_HINT","GEQUAL","GREATER","GREEN_BITS","GainNode","Gamepad","GamepadButton","GamepadEvent","GestureEvent","HAVE_CURRENT_DATA","HAVE_ENOUGH_DATA","HAVE_FUTURE_DATA","HAVE_METADATA","HAVE_NOTHING","HEADERS_RECEIVED","HIDDEN","HIERARCHY_REQUEST_ERR","HIGHPASS","HIGHSHELF","HIGH_FLOAT","HIGH_INT","HORIZONTAL","HORIZONTAL_AXIS","HRTF","HTMLAllCollection","HTMLAnchorElement","HTMLAppletElement","HTMLAreaElement","HTMLAudioElement","HTMLBRElement","HTMLBaseElement","HTMLBaseFontElement","HTMLBlockquoteElement","HTMLBodyElement","HTMLButtonElement","HTMLCanvasElement","HTMLCollection","HTMLCommandElement","HTMLContentElement","HTMLDListElement","HTMLDataElement","HTMLDataListElement","HTMLDetailsElement","HTMLDialogElement","HTMLDirectoryElement","HTMLDivElement","HTMLDocument","HTMLElement","HTMLEmbedElement","HTMLFieldSetElement","HTMLFontElement","HTMLFormControlsCollection","HTMLFormElement","HTMLFrameElement","HTMLFrameSetElement","HTMLHRElement","HTMLHeadElement","HTMLHeadingElement","HTMLHtmlElement","HTMLIFrameElement","HTMLImageElement","HTMLInputElement","HTMLIsIndexElement","HTMLKeygenElement","HTMLLIElement","HTMLLabelElement","HTMLLegendElement","HTMLLinkElement","HTMLMapElement","HTMLMarqueeElement","HTMLMediaElement","HTMLMenuElement","HTMLMenuItemElement","HTMLMetaElement","HTMLMeterElement","HTMLModElement","HTMLOListElement","HTMLObjectElement","HTMLOptGroupElement","HTMLOptionElement","HTMLOptionsCollection","HTMLOutputElement","HTMLParagraphElement","HTMLParamElement","HTMLPictureElement","HTMLPreElement","HTMLProgressElement","HTMLPropertiesCollection","HTMLQuoteElement","HTMLScriptElement","HTMLSelectElement","HTMLShadowElement","HTMLSourceElement","HTMLSpanElement","HTMLStyleElement","HTMLTableCaptionElement","HTMLTableCellElement","HTMLTableColElement","HTMLTableElement","HTMLTableRowElement","HTMLTableSectionElement","HTMLTemplateElement","HTMLTextAreaElement","HTMLTimeElement","HTMLTitleElement","HTMLTrackElement","HTMLUListElement","HTMLUnknownElement","HTMLVideoElement","HashChangeEvent","Headers","History","ICE_CHECKING","ICE_CLOSED","ICE_COMPLETED","ICE_CONNECTED","ICE_FAILED","ICE_GATHERING","ICE_WAITING","IDBCursor","IDBCursorWithValue","IDBDatabase","IDBDatabaseException","IDBFactory","IDBFileHandle","IDBFileRequest","IDBIndex","IDBKeyRange","IDBMutableFile","IDBObjectStore","IDBOpenDBRequest","IDBRequest","IDBTransaction","IDBVersionChangeEvent","IDLE","IMPLEMENTATION_COLOR_READ_FORMAT","IMPLEMENTATION_COLOR_READ_TYPE","IMPORT_RULE","INCR","INCR_WRAP","INDEX_SIZE_ERR","INT","INT_VEC2","INT_VEC3","INT_VEC4","INUSE_ATTRIBUTE_ERR","INVALID_ACCESS_ERR","INVALID_CHARACTER_ERR","INVALID_ENUM","INVALID_EXPRESSION_ERR","INVALID_FRAMEBUFFER_OPERATION","INVALID_MODIFICATION_ERR","INVALID_NODE_TYPE_ERR","INVALID_OPERATION","INVALID_STATE_ERR","INVALID_VALUE","INVERSE_DISTANCE","INVERT","IceCandidate","Image","ImageBitmap","ImageData","Infinity","InputEvent","InputMethodContext","InstallTrigger","Int16Array","Int32Array","Int8Array","Intent","InternalError","Intl","IsSearchProviderInstalled","Iterator","JSON","KEEP","KEYDOWN","KEYFRAMES_RULE","KEYFRAME_RULE","KEYPRESS","KEYUP","KeyEvent","KeyboardEvent","LENGTHADJUST_SPACING","LENGTHADJUST_SPACINGANDGLYPHS","LENGTHADJUST_UNKNOWN","LEQUAL","LESS","LINEAR","LINEAR_DISTANCE","LINEAR_MIPMAP_LINEAR","LINEAR_MIPMAP_NEAREST","LINES","LINE_LOOP","LINE_STRIP","LINE_WIDTH","LINK_STATUS","LIVE","LN10","LN2","LOADED","LOADING","LOG10E","LOG2E","LOWPASS","LOWSHELF","LOW_FLOAT","LOW_INT","LSException","LSParserFilter","LUMINANCE","LUMINANCE_ALPHA","LocalMediaStream","Location","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_RENDERBUFFER_SIZE","MAX_SAFE_INTEGER","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_MAX_ANISOTROPY_EXT","MAX_TEXTURE_SIZE","MAX_VALUE","MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","MEDIA_ERR_ABORTED","MEDIA_ERR_DECODE","MEDIA_ERR_ENCRYPTED","MEDIA_ERR_NETWORK","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_KEYERR_CLIENT","MEDIA_KEYERR_DOMAIN","MEDIA_KEYERR_HARDWARECHANGE","MEDIA_KEYERR_OUTPUT","MEDIA_KEYERR_SERVICE","MEDIA_KEYERR_UNKNOWN","MEDIA_RULE","MEDIUM_FLOAT","MEDIUM_INT","META_MASK","MIN_SAFE_INTEGER","MIN_VALUE","MIRRORED_REPEAT","MODE_ASYNCHRONOUS","MODE_SYNCHRONOUS","MODIFICATION","MOUSEDOWN","MOUSEDRAG","MOUSEMOVE","MOUSEOUT","MOUSEOVER","MOUSEUP","MOZ_KEYFRAMES_RULE","MOZ_KEYFRAME_RULE","MOZ_SOURCE_CURSOR","MOZ_SOURCE_ERASER","MOZ_SOURCE_KEYBOARD","MOZ_SOURCE_MOUSE","MOZ_SOURCE_PEN","MOZ_SOURCE_TOUCH","MOZ_SOURCE_UNKNOWN","MSGESTURE_FLAG_BEGIN","MSGESTURE_FLAG_CANCEL","MSGESTURE_FLAG_END","MSGESTURE_FLAG_INERTIA","MSGESTURE_FLAG_NONE","MSPOINTER_TYPE_MOUSE","MSPOINTER_TYPE_PEN","MSPOINTER_TYPE_TOUCH","MS_ASYNC_CALLBACK_STATUS_ASSIGN_DELEGATE","MS_ASYNC_CALLBACK_STATUS_CANCEL","MS_ASYNC_CALLBACK_STATUS_CHOOSEANY","MS_ASYNC_CALLBACK_STATUS_ERROR","MS_ASYNC_CALLBACK_STATUS_JOIN","MS_ASYNC_OP_STATUS_CANCELED","MS_ASYNC_OP_STATUS_ERROR","MS_ASYNC_OP_STATUS_SUCCESS","MS_MANIPULATION_STATE_ACTIVE","MS_MANIPULATION_STATE_CANCELLED","MS_MANIPULATION_STATE_COMMITTED","MS_MANIPULATION_STATE_DRAGGING","MS_MANIPULATION_STATE_INERTIA","MS_MANIPULATION_STATE_PRESELECT","MS_MANIPULATION_STATE_SELECTING","MS_MANIPULATION_STATE_STOPPED","MS_MEDIA_ERR_ENCRYPTED","MS_MEDIA_KEYERR_CLIENT","MS_MEDIA_KEYERR_DOMAIN","MS_MEDIA_KEYERR_HARDWARECHANGE","MS_MEDIA_KEYERR_OUTPUT","MS_MEDIA_KEYERR_SERVICE","MS_MEDIA_KEYERR_UNKNOWN","Map","Math","MediaController","MediaDevices","MediaElementAudioSourceNode","MediaEncryptedEvent","MediaError","MediaKeyError","MediaKeyEvent","MediaKeyMessageEvent","MediaKeyNeededEvent","MediaKeySession","MediaKeyStatusMap","MediaKeySystemAccess","MediaKeys","MediaList","MediaQueryList","MediaQueryListEvent","MediaRecorder","MediaSource","MediaStream","MediaStreamAudioDestinationNode","MediaStreamAudioSourceNode","MediaStreamEvent","MediaStreamTrack","MediaStreamTrackEvent","MessageChannel","MessageEvent","MessagePort","Methods","MimeType","MimeTypeArray","MouseEvent","MouseScrollEvent","MozAnimation","MozAnimationDelay","MozAnimationDirection","MozAnimationDuration","MozAnimationFillMode","MozAnimationIterationCount","MozAnimationName","MozAnimationPlayState","MozAnimationTimingFunction","MozAppearance","MozBackfaceVisibility","MozBinding","MozBorderBottomColors","MozBorderEnd","MozBorderEndColor","MozBorderEndStyle","MozBorderEndWidth","MozBorderImage","MozBorderLeftColors","MozBorderRightColors","MozBorderStart","MozBorderStartColor","MozBorderStartStyle","MozBorderStartWidth","MozBorderTopColors","MozBoxAlign","MozBoxDirection","MozBoxFlex","MozBoxOrdinalGroup","MozBoxOrient","MozBoxPack","MozBoxSizing","MozCSSKeyframeRule","MozCSSKeyframesRule","MozColumnCount","MozColumnFill","MozColumnGap","MozColumnRule","MozColumnRuleColor","MozColumnRuleStyle","MozColumnRuleWidth","MozColumnWidth","MozColumns","MozContactChangeEvent","MozFloatEdge","MozFontFeatureSettings","MozFontLanguageOverride","MozForceBrokenImageIcon","MozHyphens","MozImageRegion","MozMarginEnd","MozMarginStart","MozMmsEvent","MozMmsMessage","MozMobileMessageThread","MozOSXFontSmoothing","MozOrient","MozOutlineRadius","MozOutlineRadiusBottomleft","MozOutlineRadiusBottomright","MozOutlineRadiusTopleft","MozOutlineRadiusTopright","MozPaddingEnd","MozPaddingStart","MozPerspective","MozPerspectiveOrigin","MozPowerManager","MozSettingsEvent","MozSmsEvent","MozSmsMessage","MozStackSizing","MozTabSize","MozTextAlignLast","MozTextDecorationColor","MozTextDecorationLine","MozTextDecorationStyle","MozTextSizeAdjust","MozTransform","MozTransformOrigin","MozTransformStyle","MozTransition","MozTransitionDelay","MozTransitionDuration","MozTransitionProperty","MozTransitionTimingFunction","MozUserFocus","MozUserInput","MozUserModify","MozUserSelect","MozWindowDragging","MozWindowShadow","MutationEvent","MutationObserver","MutationRecord","NAMESPACE_ERR","NAMESPACE_RULE","NEAREST","NEAREST_MIPMAP_LINEAR","NEAREST_MIPMAP_NEAREST","NEGATIVE_INFINITY","NETWORK_EMPTY","NETWORK_ERR","NETWORK_IDLE","NETWORK_LOADED","NETWORK_LOADING","NETWORK_NO_SOURCE","NEVER","NEW","NEXT","NEXT_NO_DUPLICATE","NICEST","NODE_AFTER","NODE_BEFORE","NODE_BEFORE_AND_AFTER","NODE_INSIDE","NONE","NON_TRANSIENT_ERR","NOTATION_NODE","NOTCH","NOTEQUAL","NOT_ALLOWED_ERR","NOT_FOUND_ERR","NOT_READABLE_ERR","NOT_SUPPORTED_ERR","NO_DATA_ALLOWED_ERR","NO_ERR","NO_ERROR","NO_MODIFICATION_ALLOWED_ERR","NUMBER_TYPE","NUM_COMPRESSED_TEXTURE_FORMATS","NaN","NamedNodeMap","Navigator","NearbyLinks","NetworkInformation","Node","NodeFilter","NodeIterator","NodeList","Notation","Notification","NotifyPaintEvent","Number","NumberFormat","OBSOLETE","ONE","ONE_MINUS_CONSTANT_ALPHA","ONE_MINUS_CONSTANT_COLOR","ONE_MINUS_DST_ALPHA","ONE_MINUS_DST_COLOR","ONE_MINUS_SRC_ALPHA","ONE_MINUS_SRC_COLOR","OPEN","OPENED","OPENING","ORDERED_NODE_ITERATOR_TYPE","ORDERED_NODE_SNAPSHOT_TYPE","OUT_OF_MEMORY","Object","OfflineAudioCompletionEvent","OfflineAudioContext","OfflineResourceList","Option","OscillatorNode","OverflowEvent","PACK_ALIGNMENT","PAGE_RULE","PARSE_ERR","PATHSEG_ARC_ABS","PATHSEG_ARC_REL","PATHSEG_CLOSEPATH","PATHSEG_CURVETO_CUBIC_ABS","PATHSEG_CURVETO_CUBIC_REL","PATHSEG_CURVETO_CUBIC_SMOOTH_ABS","PATHSEG_CURVETO_CUBIC_SMOOTH_REL","PATHSEG_CURVETO_QUADRATIC_ABS","PATHSEG_CURVETO_QUADRATIC_REL","PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS","PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL","PATHSEG_LINETO_ABS","PATHSEG_LINETO_HORIZONTAL_ABS","PATHSEG_LINETO_HORIZONTAL_REL","PATHSEG_LINETO_REL","PATHSEG_LINETO_VERTICAL_ABS","PATHSEG_LINETO_VERTICAL_REL","PATHSEG_MOVETO_ABS","PATHSEG_MOVETO_REL","PATHSEG_UNKNOWN","PATH_EXISTS_ERR","PEAKING","PERMISSION_DENIED","PERSISTENT","PI","PLAYING_STATE","POINTS","POLYGON_OFFSET_FACTOR","POLYGON_OFFSET_FILL","POLYGON_OFFSET_UNITS","POSITION_UNAVAILABLE","POSITIVE_INFINITY","PREV","PREV_NO_DUPLICATE","PROCESSING_INSTRUCTION_NODE","PageChangeEvent","PageTransitionEvent","PaintRequest","PaintRequestList","PannerNode","Path2D","Performance","PerformanceEntry","PerformanceMark","PerformanceMeasure","PerformanceNavigation","PerformanceResourceTiming","PerformanceTiming","PeriodicWave","Plugin","PluginArray","PopStateEvent","PopupBlockedEvent","ProcessingInstruction","ProgressEvent","Promise","PropertyNodeList","Proxy","PushManager","PushSubscription","Q","QUOTA_ERR","QUOTA_EXCEEDED_ERR","QueryInterface","READ_ONLY","READ_ONLY_ERR","READ_WRITE","RED_BITS","REMOVAL","RENDERBUFFER","RENDERBUFFER_ALPHA_SIZE","RENDERBUFFER_BINDING","RENDERBUFFER_BLUE_SIZE","RENDERBUFFER_DEPTH_SIZE","RENDERBUFFER_GREEN_SIZE","RENDERBUFFER_HEIGHT","RENDERBUFFER_INTERNAL_FORMAT","RENDERBUFFER_RED_SIZE","RENDERBUFFER_STENCIL_SIZE","RENDERBUFFER_WIDTH","RENDERER","RENDERING_INTENT_ABSOLUTE_COLORIMETRIC","RENDERING_INTENT_AUTO","RENDERING_INTENT_PERCEPTUAL","RENDERING_INTENT_RELATIVE_COLORIMETRIC","RENDERING_INTENT_SATURATION","RENDERING_INTENT_UNKNOWN","REPEAT","REPLACE","RGB","RGB565","RGB5_A1","RGBA","RGBA4","RGBColor","ROTATION_CLOCKWISE","ROTATION_COUNTERCLOCKWISE","RTCDataChannelEvent","RTCIceCandidate","RTCPeerConnectionIceEvent","RTCRtpReceiver","RTCRtpSender","RTCSessionDescription","RTCStatsReport","RadioNodeList","Range","RangeError","RangeException","RecordErrorEvent","Rect","ReferenceError","RegExp","Request","Response","SAMPLER_2D","SAMPLER_CUBE","SAMPLES","SAMPLE_ALPHA_TO_COVERAGE","SAMPLE_BUFFERS","SAMPLE_COVERAGE","SAMPLE_COVERAGE_INVERT","SAMPLE_COVERAGE_VALUE","SAWTOOTH","SCHEDULED_STATE","SCISSOR_BOX","SCISSOR_TEST","SCROLL_PAGE_DOWN","SCROLL_PAGE_UP","SDP_ANSWER","SDP_OFFER","SDP_PRANSWER","SECURITY_ERR","SELECT","SERIALIZE_ERR","SEVERITY_ERROR","SEVERITY_FATAL_ERROR","SEVERITY_WARNING","SHADER_COMPILER","SHADER_TYPE","SHADING_LANGUAGE_VERSION","SHIFT_MASK","SHORT","SHOWING","SHOW_ALL","SHOW_ATTRIBUTE","SHOW_CDATA_SECTION","SHOW_COMMENT","SHOW_DOCUMENT","SHOW_DOCUMENT_FRAGMENT","SHOW_DOCUMENT_TYPE","SHOW_ELEMENT","SHOW_ENTITY","SHOW_ENTITY_REFERENCE","SHOW_NOTATION","SHOW_PROCESSING_INSTRUCTION","SHOW_TEXT","SINE","SOUNDFIELD","SQLException","SQRT1_2","SQRT2","SQUARE","SRC_ALPHA","SRC_ALPHA_SATURATE","SRC_COLOR","START_TO_END","START_TO_START","STATIC_DRAW","STENCIL_ATTACHMENT","STENCIL_BACK_FAIL","STENCIL_BACK_FUNC","STENCIL_BACK_PASS_DEPTH_FAIL","STENCIL_BACK_PASS_DEPTH_PASS","STENCIL_BACK_REF","STENCIL_BACK_VALUE_MASK","STENCIL_BACK_WRITEMASK","STENCIL_BITS","STENCIL_BUFFER_BIT","STENCIL_CLEAR_VALUE","STENCIL_FAIL","STENCIL_FUNC","STENCIL_INDEX","STENCIL_INDEX8","STENCIL_PASS_DEPTH_FAIL","STENCIL_PASS_DEPTH_PASS","STENCIL_REF","STENCIL_TEST","STENCIL_VALUE_MASK","STENCIL_WRITEMASK","STREAM_DRAW","STRING_TYPE","STYLE_RULE","SUBPIXEL_BITS","SUPPORTS_RULE","SVGAElement","SVGAltGlyphDefElement","SVGAltGlyphElement","SVGAltGlyphItemElement","SVGAngle","SVGAnimateColorElement","SVGAnimateElement","SVGAnimateMotionElement","SVGAnimateTransformElement","SVGAnimatedAngle","SVGAnimatedBoolean","SVGAnimatedEnumeration","SVGAnimatedInteger","SVGAnimatedLength","SVGAnimatedLengthList","SVGAnimatedNumber","SVGAnimatedNumberList","SVGAnimatedPreserveAspectRatio","SVGAnimatedRect","SVGAnimatedString","SVGAnimatedTransformList","SVGAnimationElement","SVGCircleElement","SVGClipPathElement","SVGColor","SVGComponentTransferFunctionElement","SVGCursorElement","SVGDefsElement","SVGDescElement","SVGDiscardElement","SVGDocument","SVGElement","SVGElementInstance","SVGElementInstanceList","SVGEllipseElement","SVGException","SVGFEBlendElement","SVGFEColorMatrixElement","SVGFEComponentTransferElement","SVGFECompositeElement","SVGFEConvolveMatrixElement","SVGFEDiffuseLightingElement","SVGFEDisplacementMapElement","SVGFEDistantLightElement","SVGFEDropShadowElement","SVGFEFloodElement","SVGFEFuncAElement","SVGFEFuncBElement","SVGFEFuncGElement","SVGFEFuncRElement","SVGFEGaussianBlurElement","SVGFEImageElement","SVGFEMergeElement","SVGFEMergeNodeElement","SVGFEMorphologyElement","SVGFEOffsetElement","SVGFEPointLightElement","SVGFESpecularLightingElement","SVGFESpotLightElement","SVGFETileElement","SVGFETurbulenceElement","SVGFilterElement","SVGFontElement","SVGFontFaceElement","SVGFontFaceFormatElement","SVGFontFaceNameElement","SVGFontFaceSrcElement","SVGFontFaceUriElement","SVGForeignObjectElement","SVGGElement","SVGGeometryElement","SVGGlyphElement","SVGGlyphRefElement","SVGGradientElement","SVGGraphicsElement","SVGHKernElement","SVGImageElement","SVGLength","SVGLengthList","SVGLineElement","SVGLinearGradientElement","SVGMPathElement","SVGMarkerElement","SVGMaskElement","SVGMatrix","SVGMetadataElement","SVGMissingGlyphElement","SVGNumber","SVGNumberList","SVGPaint","SVGPathElement","SVGPathSeg","SVGPathSegArcAbs","SVGPathSegArcRel","SVGPathSegClosePath","SVGPathSegCurvetoCubicAbs","SVGPathSegCurvetoCubicRel","SVGPathSegCurvetoCubicSmoothAbs","SVGPathSegCurvetoCubicSmoothRel","SVGPathSegCurvetoQuadraticAbs","SVGPathSegCurvetoQuadraticRel","SVGPathSegCurvetoQuadraticSmoothAbs","SVGPathSegCurvetoQuadraticSmoothRel","SVGPathSegLinetoAbs","SVGPathSegLinetoHorizontalAbs","SVGPathSegLinetoHorizontalRel","SVGPathSegLinetoRel","SVGPathSegLinetoVerticalAbs","SVGPathSegLinetoVerticalRel","SVGPathSegList","SVGPathSegMovetoAbs","SVGPathSegMovetoRel","SVGPatternElement","SVGPoint","SVGPointList","SVGPolygonElement","SVGPolylineElement","SVGPreserveAspectRatio","SVGRadialGradientElement","SVGRect","SVGRectElement","SVGRenderingIntent","SVGSVGElement","SVGScriptElement","SVGSetElement","SVGStopElement","SVGStringList","SVGStyleElement","SVGSwitchElement","SVGSymbolElement","SVGTRefElement","SVGTSpanElement","SVGTextContentElement","SVGTextElement","SVGTextPathElement","SVGTextPositioningElement","SVGTitleElement","SVGTransform","SVGTransformList","SVGUnitTypes","SVGUseElement","SVGVKernElement","SVGViewElement","SVGViewSpec","SVGZoomAndPan","SVGZoomEvent","SVG_ANGLETYPE_DEG","SVG_ANGLETYPE_GRAD","SVG_ANGLETYPE_RAD","SVG_ANGLETYPE_UNKNOWN","SVG_ANGLETYPE_UNSPECIFIED","SVG_CHANNEL_A","SVG_CHANNEL_B","SVG_CHANNEL_G","SVG_CHANNEL_R","SVG_CHANNEL_UNKNOWN","SVG_COLORTYPE_CURRENTCOLOR","SVG_COLORTYPE_RGBCOLOR","SVG_COLORTYPE_RGBCOLOR_ICCCOLOR","SVG_COLORTYPE_UNKNOWN","SVG_EDGEMODE_DUPLICATE","SVG_EDGEMODE_NONE","SVG_EDGEMODE_UNKNOWN","SVG_EDGEMODE_WRAP","SVG_FEBLEND_MODE_COLOR","SVG_FEBLEND_MODE_COLOR_BURN","SVG_FEBLEND_MODE_COLOR_DODGE","SVG_FEBLEND_MODE_DARKEN","SVG_FEBLEND_MODE_DIFFERENCE","SVG_FEBLEND_MODE_EXCLUSION","SVG_FEBLEND_MODE_HARD_LIGHT","SVG_FEBLEND_MODE_HUE","SVG_FEBLEND_MODE_LIGHTEN","SVG_FEBLEND_MODE_LUMINOSITY","SVG_FEBLEND_MODE_MULTIPLY","SVG_FEBLEND_MODE_NORMAL","SVG_FEBLEND_MODE_OVERLAY","SVG_FEBLEND_MODE_SATURATION","SVG_FEBLEND_MODE_SCREEN","SVG_FEBLEND_MODE_SOFT_LIGHT","SVG_FEBLEND_MODE_UNKNOWN","SVG_FECOLORMATRIX_TYPE_HUEROTATE","SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA","SVG_FECOLORMATRIX_TYPE_MATRIX","SVG_FECOLORMATRIX_TYPE_SATURATE","SVG_FECOLORMATRIX_TYPE_UNKNOWN","SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE","SVG_FECOMPONENTTRANSFER_TYPE_GAMMA","SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY","SVG_FECOMPONENTTRANSFER_TYPE_LINEAR","SVG_FECOMPONENTTRANSFER_TYPE_TABLE","SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_ARITHMETIC","SVG_FECOMPOSITE_OPERATOR_ATOP","SVG_FECOMPOSITE_OPERATOR_IN","SVG_FECOMPOSITE_OPERATOR_OUT","SVG_FECOMPOSITE_OPERATOR_OVER","SVG_FECOMPOSITE_OPERATOR_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_XOR","SVG_INVALID_VALUE_ERR","SVG_LENGTHTYPE_CM","SVG_LENGTHTYPE_EMS","SVG_LENGTHTYPE_EXS","SVG_LENGTHTYPE_IN","SVG_LENGTHTYPE_MM","SVG_LENGTHTYPE_NUMBER","SVG_LENGTHTYPE_PC","SVG_LENGTHTYPE_PERCENTAGE","SVG_LENGTHTYPE_PT","SVG_LENGTHTYPE_PX","SVG_LENGTHTYPE_UNKNOWN","SVG_MARKERUNITS_STROKEWIDTH","SVG_MARKERUNITS_UNKNOWN","SVG_MARKERUNITS_USERSPACEONUSE","SVG_MARKER_ORIENT_ANGLE","SVG_MARKER_ORIENT_AUTO","SVG_MARKER_ORIENT_UNKNOWN","SVG_MASKTYPE_ALPHA","SVG_MASKTYPE_LUMINANCE","SVG_MATRIX_NOT_INVERTABLE","SVG_MEETORSLICE_MEET","SVG_MEETORSLICE_SLICE","SVG_MEETORSLICE_UNKNOWN","SVG_MORPHOLOGY_OPERATOR_DILATE","SVG_MORPHOLOGY_OPERATOR_ERODE","SVG_MORPHOLOGY_OPERATOR_UNKNOWN","SVG_PAINTTYPE_CURRENTCOLOR","SVG_PAINTTYPE_NONE","SVG_PAINTTYPE_RGBCOLOR","SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR","SVG_PAINTTYPE_UNKNOWN","SVG_PAINTTYPE_URI","SVG_PAINTTYPE_URI_CURRENTCOLOR","SVG_PAINTTYPE_URI_NONE","SVG_PAINTTYPE_URI_RGBCOLOR","SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR","SVG_PRESERVEASPECTRATIO_NONE","SVG_PRESERVEASPECTRATIO_UNKNOWN","SVG_PRESERVEASPECTRATIO_XMAXYMAX","SVG_PRESERVEASPECTRATIO_XMAXYMID","SVG_PRESERVEASPECTRATIO_XMAXYMIN","SVG_PRESERVEASPECTRATIO_XMIDYMAX","SVG_PRESERVEASPECTRATIO_XMIDYMID","SVG_PRESERVEASPECTRATIO_XMIDYMIN","SVG_PRESERVEASPECTRATIO_XMINYMAX","SVG_PRESERVEASPECTRATIO_XMINYMID","SVG_PRESERVEASPECTRATIO_XMINYMIN","SVG_SPREADMETHOD_PAD","SVG_SPREADMETHOD_REFLECT","SVG_SPREADMETHOD_REPEAT","SVG_SPREADMETHOD_UNKNOWN","SVG_STITCHTYPE_NOSTITCH","SVG_STITCHTYPE_STITCH","SVG_STITCHTYPE_UNKNOWN","SVG_TRANSFORM_MATRIX","SVG_TRANSFORM_ROTATE","SVG_TRANSFORM_SCALE","SVG_TRANSFORM_SKEWX","SVG_TRANSFORM_SKEWY","SVG_TRANSFORM_TRANSLATE","SVG_TRANSFORM_UNKNOWN","SVG_TURBULENCE_TYPE_FRACTALNOISE","SVG_TURBULENCE_TYPE_TURBULENCE","SVG_TURBULENCE_TYPE_UNKNOWN","SVG_UNIT_TYPE_OBJECTBOUNDINGBOX","SVG_UNIT_TYPE_UNKNOWN","SVG_UNIT_TYPE_USERSPACEONUSE","SVG_WRONG_TYPE_ERR","SVG_ZOOMANDPAN_DISABLE","SVG_ZOOMANDPAN_MAGNIFY","SVG_ZOOMANDPAN_UNKNOWN","SYNTAX_ERR","SavedPages","Screen","ScreenOrientation","Script","ScriptProcessorNode","ScrollAreaEvent","SecurityPolicyViolationEvent","Selection","ServiceWorker","ServiceWorkerContainer","ServiceWorkerRegistration","SessionDescription","Set","ShadowRoot","SharedWorker","SimpleGestureEvent","SpeechSynthesisEvent","SpeechSynthesisUtterance","StopIteration","Storage","StorageEvent","String","StyleSheet","StyleSheetList","SubtleCrypto","Symbol","SyntaxError","TEMPORARY","TEXTPATH_METHODTYPE_ALIGN","TEXTPATH_METHODTYPE_STRETCH","TEXTPATH_METHODTYPE_UNKNOWN","TEXTPATH_SPACINGTYPE_AUTO","TEXTPATH_SPACINGTYPE_EXACT","TEXTPATH_SPACINGTYPE_UNKNOWN","TEXTURE","TEXTURE0","TEXTURE1","TEXTURE10","TEXTURE11","TEXTURE12","TEXTURE13","TEXTURE14","TEXTURE15","TEXTURE16","TEXTURE17","TEXTURE18","TEXTURE19","TEXTURE2","TEXTURE20","TEXTURE21","TEXTURE22","TEXTURE23","TEXTURE24","TEXTURE25","TEXTURE26","TEXTURE27","TEXTURE28","TEXTURE29","TEXTURE3","TEXTURE30","TEXTURE31","TEXTURE4","TEXTURE5","TEXTURE6","TEXTURE7","TEXTURE8","TEXTURE9","TEXTURE_2D","TEXTURE_BINDING_2D","TEXTURE_BINDING_CUBE_MAP","TEXTURE_CUBE_MAP","TEXTURE_CUBE_MAP_NEGATIVE_X","TEXTURE_CUBE_MAP_NEGATIVE_Y","TEXTURE_CUBE_MAP_NEGATIVE_Z","TEXTURE_CUBE_MAP_POSITIVE_X","TEXTURE_CUBE_MAP_POSITIVE_Y","TEXTURE_CUBE_MAP_POSITIVE_Z","TEXTURE_MAG_FILTER","TEXTURE_MAX_ANISOTROPY_EXT","TEXTURE_MIN_FILTER","TEXTURE_WRAP_S","TEXTURE_WRAP_T","TEXT_NODE","TIMEOUT","TIMEOUT_ERR","TOO_LARGE_ERR","TRANSACTION_INACTIVE_ERR","TRIANGLE","TRIANGLES","TRIANGLE_FAN","TRIANGLE_STRIP","TYPE_BACK_FORWARD","TYPE_ERR","TYPE_MISMATCH_ERR","TYPE_NAVIGATE","TYPE_RELOAD","TYPE_RESERVED","Text","TextDecoder","TextEncoder","TextEvent","TextMetrics","TextTrack","TextTrackCue","TextTrackCueList","TextTrackList","TimeEvent","TimeRanges","Touch","TouchEvent","TouchList","TrackEvent","TransitionEvent","TreeWalker","TypeError","UIEvent","UNCACHED","UNKNOWN_ERR","UNKNOWN_RULE","UNMASKED_RENDERER_WEBGL","UNMASKED_VENDOR_WEBGL","UNORDERED_NODE_ITERATOR_TYPE","UNORDERED_NODE_SNAPSHOT_TYPE","UNPACK_ALIGNMENT","UNPACK_COLORSPACE_CONVERSION_WEBGL","UNPACK_FLIP_Y_WEBGL","UNPACK_PREMULTIPLY_ALPHA_WEBGL","UNSCHEDULED_STATE","UNSENT","UNSIGNED_BYTE","UNSIGNED_INT","UNSIGNED_SHORT","UNSIGNED_SHORT_4_4_4_4","UNSIGNED_SHORT_5_5_5_1","UNSIGNED_SHORT_5_6_5","UNSPECIFIED_EVENT_TYPE_ERR","UPDATEREADY","URIError","URL","URLSearchParams","URLUnencoded","URL_MISMATCH_ERR","UTC","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","UserMessageHandler","UserMessageHandlersNamespace","UserProximityEvent","VALIDATE_STATUS","VALIDATION_ERR","VARIABLES_RULE","VENDOR","VERSION","VERSION_CHANGE","VERSION_ERR","VERTEX_ATTRIB_ARRAY_BUFFER_BINDING","VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE","VERTEX_ATTRIB_ARRAY_ENABLED","VERTEX_ATTRIB_ARRAY_NORMALIZED","VERTEX_ATTRIB_ARRAY_POINTER","VERTEX_ATTRIB_ARRAY_SIZE","VERTEX_ATTRIB_ARRAY_STRIDE","VERTEX_ATTRIB_ARRAY_TYPE","VERTEX_SHADER","VERTICAL","VERTICAL_AXIS","VER_ERR","VIEWPORT","VIEWPORT_RULE","VTTCue","VTTRegion","ValidityState","VideoStreamTrack","WEBKIT_FILTER_RULE","WEBKIT_KEYFRAMES_RULE","WEBKIT_KEYFRAME_RULE","WEBKIT_REGION_RULE","WRONG_DOCUMENT_ERR","WaveShaperNode","WeakMap","WeakSet","WebGLActiveInfo","WebGLBuffer","WebGLContextEvent","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLRenderingContext","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArray","WebKitAnimationEvent","WebKitBlobBuilder","WebKitCSSFilterRule","WebKitCSSFilterValue","WebKitCSSKeyframeRule","WebKitCSSKeyframesRule","WebKitCSSMatrix","WebKitCSSRegionRule","WebKitCSSTransformValue","WebKitDataCue","WebKitGamepad","WebKitMediaKeyError","WebKitMediaKeyMessageEvent","WebKitMediaKeySession","WebKitMediaKeys","WebKitMediaSource","WebKitMutationObserver","WebKitNamespace","WebKitPlaybackTargetAvailabilityEvent","WebKitPoint","WebKitShadowRoot","WebKitSourceBuffer","WebKitSourceBufferList","WebKitTransitionEvent","WebSocket","WheelEvent","Window","Worker","XMLDocument","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestException","XMLHttpRequestProgressEvent","XMLHttpRequestUpload","XMLSerializer","XMLStylesheetProcessingInstruction","XPathEvaluator","XPathException","XPathExpression","XPathNSResolver","XPathResult","XSLTProcessor","ZERO","_XD0M_","_YD0M_","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","__opera","__proto__","_browserjsran","a","aLink","abbr","abort","abs","absolute","acceleration","accelerationIncludingGravity","accelerator","accept","acceptCharset","acceptNode","accessKey","accessKeyLabel","accuracy","acos","acosh","action","actionURL","active","activeCues","activeElement","activeSourceBuffers","activeSourceCount","activeTexture","add","addBehavior","addCandidate","addColorStop","addCue","addElement","addEventListener","addFilter","addFromString","addFromUri","addIceCandidate","addImport","addListener","addNamed","addPageRule","addPath","addPointer","addRange","addRegion","addRule","addSearchEngine","addSourceBuffer","addStream","addTextTrack","addTrack","addWakeLockListener","addedNodes","additionalName","additiveSymbols","addons","adoptNode","adr","advance","alert","algorithm","align","align-content","align-items","align-self","alignContent","alignItems","alignSelf","alignmentBaseline","alinkColor","all","allSettled","allowFullscreen","allowedDirections","alpha","alt","altGraphKey","altHtml","altKey","altLeft","altitude","altitudeAccuracy","amplitude","ancestorOrigins","anchor","anchorNode","anchorOffset","anchors","angle","animVal","animate","animatedInstanceRoot","animatedNormalizedPathSegList","animatedPathSegList","animatedPoints","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationStartTime","animationTimingFunction","animationsPaused","anniversary","any","app","appCodeName","appMinorVersion","appName","appNotifications","appVersion","append","appendBuffer","appendChild","appendData","appendItem","appendMedium","appendNamed","appendRule","appendStream","appendWindowEnd","appendWindowStart","applets","applicationCache","apply","applyElement","arc","arcTo","archive","areas","arguments","arrayBuffer","asin","asinh","assert","assign","async","atEnd","atan","atan2","atanh","atob","attachEvent","attachShader","attachShadow","attachments","attack","attrChange","attrName","attributeFilter","attributeName","attributeNamespace","attributeOldValue","attributes","audioTracks","autoIncrement","autobuffer","autocapitalize","autocomplete","autocorrect","autofocus","autoplay","availHeight","availLeft","availTop","availWidth","availability","available","aversion","axes","axis","azimuth","b","back","backface-visibility","backfaceVisibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize","badInput","balance","baseFrequencyX","baseFrequencyY","baseNode","baseOffset","baseURI","baseVal","baselineShift","battery","bday","beginElement","beginElementAt","beginPath","behavior","behaviorCookie","behaviorPart","behaviorUrns","beta","bezierCurveTo","bgColor","bgProperties","bias","big","binaryType","bind","bindAttribLocation","bindBuffer","bindFramebuffer","bindRenderbuffer","bindTexture","blendColor","blendEquation","blendEquationSeparate","blendFunc","blendFuncSeparate","blink","blob","blockDirection","blue","blur","body","bodyUsed","bold","bookmarks","booleanValue","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderColorDark","borderColorLight","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","bottomMargin","bound","boundElements","boundingClientRect","boundingHeight","boundingLeft","boundingTop","boundingWidth","bounds","box-decoration-break","box-shadow","box-sizing","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","browserLanguage","btoa","bubbles","buffer","bufferData","bufferDepth","bufferSize","bufferSubData","buffered","bufferedAmount","buildID","buildNumber","button","buttonID","buttons","byteLength","byteOffset","c","call","caller","canBeFormatted","canBeMounted","canBeShared","canHaveChildren","canHaveHTML","canPlayType","cancel","cancelAnimationFrame","cancelBubble","cancelScheduledValues","cancelable","candidate","canvas","caption","caption-side","captionSide","capture","captureEvents","captureStackTrace","caretPositionFromPoint","caretRangeFromPoint","cast","catch","category","cbrt","cd","ceil","cellIndex","cellPadding","cellSpacing","cells","ch","chOff","chain","challenge","changedTouches","channel","channelCount","channelCountMode","channelInterpretation","char","charAt","charCode","charCodeAt","charIndex","characterData","characterDataOldValue","characterSet","charging","chargingTime","charset","checkEnclosure","checkFramebufferStatus","checkIntersection","checkValidity","checked","childElementCount","childList","childNodes","children","chrome","ciphertext","cite","classList","className","classid","clear","clearAttributes","clearColor","clearData","clearDepth","clearImmediate","clearInterval","clearMarks","clearMeasures","clearParameters","clearRect","clearResourceTimings","clearShadow","clearStencil","clearTimeout","clearWatch","click","clickCount","clientHeight","clientInformation","clientLeft","clientRect","clientRects","clientTop","clientWidth","clientX","clientY","clip","clip-path","clip-rule","clipBottom","clipLeft","clipPath","clipPathUnits","clipRight","clipRule","clipTop","clipboardData","clone","cloneContents","cloneNode","cloneRange","close","closePath","closed","closest","clz","clz32","cmp","code","codeBase","codePointAt","codeType","colSpan","collapse","collapseToEnd","collapseToStart","collapsed","collect","colno","color","color-interpolation","color-interpolation-filters","colorDepth","colorInterpolation","colorInterpolationFilters","colorMask","colorType","cols","columnCount","columnFill","columnGap","columnNumber","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","command","commitPreferences","commonAncestorContainer","compact","compareBoundaryPoints","compareDocumentPosition","compareEndPoints","compareNode","comparePoint","compatMode","compatible","compile","compileShader","complete","componentFromPoint","compositionEndOffset","compositionStartOffset","compressedTexImage2D","compressedTexSubImage2D","concat","conditionText","coneInnerAngle","coneOuterAngle","coneOuterGain","confirm","confirmComposition","confirmSiteSpecificTrackingException","confirmWebWideTrackingException","connect","connectEnd","connectStart","connected","connection","connectionSpeed","console","consolidate","constrictionActive","constructor","contactID","contains","containsNode","content","contentDocument","contentEditable","contentOverflow","contentScriptType","contentStyleType","contentType","contentWindow","context","contextMenu","contextmenu","continue","continuous","control","controller","controls","convertToSpecifiedUnits","cookie","cookieEnabled","coords","copyFromChannel","copyTexImage2D","copyTexSubImage2D","copyToChannel","copyWithin","correspondingElement","correspondingUseElement","cos","cosh","count","counter-increment","counter-reset","counterIncrement","counterReset","cpuClass","cpuSleepAllowed","create","createAnalyser","createAnswer","createAttribute","createAttributeNS","createBiquadFilter","createBuffer","createBufferSource","createCDATASection","createCSSStyleSheet","createCaption","createChannelMerger","createChannelSplitter","createComment","createContextualFragment","createControlRange","createConvolver","createDTMFSender","createDataChannel","createDelay","createDelayNode","createDocument","createDocumentFragment","createDocumentType","createDynamicsCompressor","createElement","createElementNS","createEntityReference","createEvent","createEventObject","createExpression","createFramebuffer","createFunction","createGain","createGainNode","createHTMLDocument","createImageBitmap","createImageData","createIndex","createJavaScriptNode","createLinearGradient","createMediaElementSource","createMediaKeys","createMediaStreamDestination","createMediaStreamSource","createMutableFile","createNSResolver","createNodeIterator","createNotification","createObjectStore","createObjectURL","createOffer","createOscillator","createPanner","createPattern","createPeriodicWave","createPopup","createProcessingInstruction","createProgram","createRadialGradient","createRange","createRangeCollection","createRenderbuffer","createSVGAngle","createSVGLength","createSVGMatrix","createSVGNumber","createSVGPathSegArcAbs","createSVGPathSegArcRel","createSVGPathSegClosePath","createSVGPathSegCurvetoCubicAbs","createSVGPathSegCurvetoCubicRel","createSVGPathSegCurvetoCubicSmoothAbs","createSVGPathSegCurvetoCubicSmoothRel","createSVGPathSegCurvetoQuadraticAbs","createSVGPathSegCurvetoQuadraticRel","createSVGPathSegCurvetoQuadraticSmoothAbs","createSVGPathSegCurvetoQuadraticSmoothRel","createSVGPathSegLinetoAbs","createSVGPathSegLinetoHorizontalAbs","createSVGPathSegLinetoHorizontalRel","createSVGPathSegLinetoRel","createSVGPathSegLinetoVerticalAbs","createSVGPathSegLinetoVerticalRel","createSVGPathSegMovetoAbs","createSVGPathSegMovetoRel","createSVGPoint","createSVGRect","createSVGTransform","createSVGTransformFromMatrix","createScriptProcessor","createSession","createShader","createShadowRoot","createStereoPanner","createStyleSheet","createTBody","createTFoot","createTHead","createTextNode","createTextRange","createTexture","createTouch","createTouchList","createTreeWalker","createWaveShaper","creationTime","crossOrigin","crypto","csi","cssFloat","cssRules","cssText","cssValueType","ctrlKey","ctrlLeft","cues","cullFace","currentNode","currentPage","currentScale","currentScript","currentSrc","currentState","currentStyle","currentTarget","currentTime","currentTranslate","currentView","cursor","curve","customError","cx","cy","d","data","dataFld","dataFormatAs","dataPageSize","dataSrc","dataTransfer","database","dataset","dateTime","db","debug","debuggerEnabled","declare","decode","decodeAudioData","decodeURI","decodeURIComponent","decodingInfo","decrypt","default","defaultCharset","defaultChecked","defaultMuted","defaultPlaybackRate","defaultPrevented","defaultSelected","defaultStatus","defaultURL","defaultValue","defaultView","defaultstatus","defer","defineMagicFunction","defineMagicVariable","defineProperties","defineProperty","delayTime","delete","deleteBuffer","deleteCaption","deleteCell","deleteContents","deleteData","deleteDatabase","deleteFramebuffer","deleteFromDocument","deleteIndex","deleteMedium","deleteObjectStore","deleteProgram","deleteRenderbuffer","deleteRow","deleteRule","deleteShader","deleteTFoot","deleteTHead","deleteTexture","deliverChangeRecords","delivery","deliveryInfo","deliveryStatus","deliveryTimestamp","delta","deltaMode","deltaX","deltaY","deltaZ","depthFunc","depthMask","depthRange","deriveBits","deriveKey","description","deselectAll","designMode","destination","destinationURL","detach","detachEvent","detachShader","detail","detune","devicePixelRatio","deviceXDPI","deviceYDPI","diffuseConstant","digest","dimensions","dir","dirName","direction","dirxml","disable","disableVertexAttribArray","disabled","dischargingTime","disconnect","dispatchEvent","display","distanceModel","divisor","djsapi","djsproxy","doImport","doNotTrack","doScroll","doctype","document","documentElement","documentMode","documentURI","dolphin","dolphinGameCenter","dolphininfo","dolphinmeta","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","domain","domainLookupEnd","domainLookupStart","dominant-baseline","dominantBaseline","done","dopplerFactor","download","dragDrop","draggable","drawArrays","drawArraysInstancedANGLE","drawCustomFocusRing","drawElements","drawElementsInstancedANGLE","drawFocusIfNeeded","drawImage","drawImageFromRect","drawSystemFocusRing","drawingBufferHeight","drawingBufferWidth","dropEffect","droppedVideoFrames","dropzone","dump","duplicate","duration","dvname","dvnum","dx","dy","dynsrc","e","edgeMode","effectAllowed","elapsedTime","elementFromPoint","elements","elevation","ellipse","email","embeds","empty","empty-cells","emptyCells","enable","enableBackground","enableStyleSheetsForSet","enableVertexAttribArray","enabled","enabledPlugin","encode","encodeURI","encodeURIComponent","encoding","encrypt","enctype","end","endContainer","endElement","endElementAt","endOfStream","endOffset","endTime","ended","endsWith","entities","entries","entryType","enumerate","enumerateEditable","error","errorCode","escape","eval","evaluate","event","eventPhase","every","exception","exec","execCommand","execCommandShowHelp","execScript","exitFullscreen","exitPointerLock","exp","expand","expandEntityReferences","expando","expansion","expiryDate","explicitOriginalTarget","expm1","exponent","exponentialRampToValueAtTime","exportKey","extend","extensions","extentNode","extentOffset","external","externalResourcesRequired","extractContents","extractable","f","face","factoryReset","fallback","familyName","farthestViewportElement","fastSeek","fatal","fetch","fetchStart","fftSize","fgColor","fileCreatedDate","fileHandle","fileModifiedDate","fileName","fileSize","fileUpdatedDate","filename","files","fill","fill-opacity","fill-rule","fillOpacity","fillRect","fillRule","fillStyle","fillText","filter","filterResX","filterResY","filterUnits","filters","finally","find","findIndex","findRule","findText","finish","fireEvent","firstChild","firstElementChild","firstPage","fixed","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","flipX","flipY","float","flood-color","flood-opacity","floodColor","floodOpacity","floor","flush","focus","focusNode","focusOffset","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontSmoothingEnabled","fontStretch","fontStyle","fontSynthesis","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","fontcolor","fonts","fontsize","for","forEach","forceRedraw","form","formAction","formEnctype","formMethod","formNoValidate","formTarget","format","formatToParts","forms","forward","fr","frame","frameBorder","frameElement","frameSpacing","framebufferRenderbuffer","framebufferTexture2D","frames","freeSpace","freeze","frequency","frequencyBinCount","from","fromCharCode","fromCodePoint","fromElement","frontFace","fround","fullScreen","fullscreenElement","fullscreenEnabled","fx","fy","gain","gamepad","gamma","genderIdentity","generateKey","generateMipmap","generateRequest","geolocation","gestureObject","get","getActiveAttrib","getActiveUniform","getAdjacentText","getAll","getAllResponseHeaders","getAsFile","getAsString","getAttachedShaders","getAttribLocation","getAttribute","getAttributeNS","getAttributeNode","getAttributeNodeNS","getAudioTracks","getBBox","getBattery","getBlob","getBookmark","getBoundingClientRect","getBufferParameter","getByteFrequencyData","getByteTimeDomainData","getCSSCanvasContext","getCTM","getCandidateWindowClientRect","getChannelData","getCharNumAtPosition","getClientRect","getClientRects","getCompositionAlternatives","getComputedStyle","getComputedTextLength","getConfiguration","getContext","getContextAttributes","getCounterValue","getCueAsHTML","getCueById","getCurrentPosition","getCurrentTime","getData","getDatabaseNames","getDate","getDay","getDefaultComputedStyle","getDestinationInsertionPoints","getDistributedNodes","getEditable","getElementById","getElementsByClassName","getElementsByName","getElementsByTagName","getElementsByTagNameNS","getEnclosureList","getEndPositionOfChar","getEntries","getEntriesByName","getEntriesByType","getError","getExtension","getExtentOfChar","getFeature","getFile","getFloat32","getFloat64","getFloatFrequencyData","getFloatTimeDomainData","getFloatValue","getFramebufferAttachmentParameter","getFrequencyResponse","getFullYear","getGamepads","getHours","getImageData","getInt16","getInt32","getInt8","getIntersectionList","getItem","getItems","getKey","getLineDash","getLocalStreams","getMarks","getMatchedCSSRules","getMeasures","getMetadata","getMilliseconds","getMinutes","getModifierState","getMonth","getNamedItem","getNamedItemNS","getNotifier","getNumberOfChars","getOverrideHistoryNavigationMode","getOverrideStyle","getOwnPropertyDescriptor","getOwnPropertyNames","getOwnPropertySymbols","getParameter","getPathSegAtLength","getPointAtLength","getPreference","getPreferenceDefault","getPresentationAttribute","getPreventDefault","getProgramInfoLog","getProgramParameter","getPropertyCSSValue","getPropertyPriority","getPropertyShorthand","getPropertyValue","getPrototypeOf","getRGBColorValue","getRandomValues","getRangeAt","getReceivers","getRectValue","getRegistration","getRemoteStreams","getRenderbufferParameter","getResponseHeader","getRoot","getRotationOfChar","getSVGDocument","getScreenCTM","getSeconds","getSelection","getSenders","getShaderInfoLog","getShaderParameter","getShaderPrecisionFormat","getShaderSource","getSimpleDuration","getSiteIcons","getSources","getSpeculativeParserUrls","getStartPositionOfChar","getStartTime","getStats","getStorageUpdates","getStreamById","getStringValue","getSubStringLength","getSubscription","getSupportedExtensions","getTexParameter","getTime","getTimezoneOffset","getTotalLength","getTrackById","getTracks","getTransformToElement","getUTCDate","getUTCDay","getUTCFullYear","getUTCHours","getUTCMilliseconds","getUTCMinutes","getUTCMonth","getUTCSeconds","getUint16","getUint32","getUint8","getUniform","getUniformLocation","getUserMedia","getValues","getVarDate","getVariableValue","getVertexAttrib","getVertexAttribOffset","getVideoPlaybackQuality","getVideoTracks","getWakeLockState","getYear","givenName","global","globalAlpha","globalCompositeOperation","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","go","gradientTransform","gradientUnits","grammars","green","group","groupCollapsed","groupEnd","hardwareConcurrency","has","hasAttribute","hasAttributeNS","hasAttributes","hasChildNodes","hasComposition","hasExtension","hasFeature","hasFocus","hasLayout","hasOwnProperty","hash","head","headers","heading","height","hidden","hide","hideFocus","high","hint","history","honorificPrefix","honorificSuffix","horizontalOverflow","host","hostname","href","hreflang","hspace","html5TagCheckInerface","htmlFor","htmlText","httpEquiv","hwTimestamp","hypot","iccId","iceConnectionState","iceGatheringState","icon","id","identifier","identity","ignoreBOM","ignoreCase","image-orientation","image-rendering","imageOrientation","imageRendering","images","ime-mode","imeMode","implementation","importKey","importNode","importStylesheet","imports","impp","imul","in1","in2","inBandMetadataTrackDispatchType","inRange","includes","incremental","indeterminate","index","indexNames","indexOf","indexedDB","inertiaDestinationX","inertiaDestinationY","info","init","initAnimationEvent","initBeforeLoadEvent","initClipboardEvent","initCloseEvent","initCommandEvent","initCompositionEvent","initCustomEvent","initData","initDeviceMotionEvent","initDeviceOrientationEvent","initDragEvent","initErrorEvent","initEvent","initFocusEvent","initGestureEvent","initHashChangeEvent","initKeyEvent","initKeyboardEvent","initMSManipulationEvent","initMessageEvent","initMouseEvent","initMouseScrollEvent","initMouseWheelEvent","initMutationEvent","initNSMouseEvent","initOverflowEvent","initPageEvent","initPageTransitionEvent","initPointerEvent","initPopStateEvent","initProgressEvent","initScrollAreaEvent","initSimpleGestureEvent","initStorageEvent","initTextEvent","initTimeEvent","initTouchEvent","initTransitionEvent","initUIEvent","initWebKitAnimationEvent","initWebKitTransitionEvent","initWebKitWheelEvent","initWheelEvent","initialTime","initialize","initiatorType","inner","innerHTML","innerHeight","innerText","innerWidth","input","inputBuffer","inputEncoding","inputMethod","insertAdjacentElement","insertAdjacentHTML","insertAdjacentText","insertBefore","insertCell","insertData","insertItemBefore","insertNode","insertRow","insertRule","instanceRoot","intercept","interimResults","internalSubset","intersectsNode","interval","invalidIteratorState","inverse","invertSelf","is","is2D","isAlternate","isArray","isBingCurrentSearchDefault","isBuffer","isCandidateWindowVisible","isChar","isCollapsed","isComposing","isContentEditable","isContentHandlerRegistered","isContextLost","isDefaultNamespace","isDisabled","isEnabled","isEqual","isEqualNode","isExtensible","isFinite","isFramebuffer","isFrozen","isGenerator","isId","isInjected","isInteger","isMap","isMultiLine","isNaN","isOpen","isPointInFill","isPointInPath","isPointInRange","isPointInStroke","isPrefAlternate","isPrimary","isProgram","isPropertyImplicit","isProtocolHandlerRegistered","isPrototypeOf","isRenderbuffer","isSafeInteger","isSameNode","isSealed","isShader","isSupported","isTextEdit","isTexture","isTrusted","isTypeSupported","isView","isolation","italics","item","itemId","itemProp","itemRef","itemScope","itemType","itemValue","iterateNext","iterator","javaEnabled","jobTitle","join","json","justify-content","justifyContent","k1","k2","k3","k4","kernelMatrix","kernelUnitLengthX","kernelUnitLengthY","kerning","key","keyCode","keyFor","keyIdentifier","keyLightEnabled","keyLocation","keyPath","keySystem","keyText","keyUsage","keys","keytype","kind","knee","label","labels","lang","language","languages","largeArcFlag","lastChild","lastElementChild","lastEventId","lastIndex","lastIndexOf","lastMatch","lastMessageSubject","lastMessageType","lastModified","lastModifiedDate","lastPage","lastParen","lastState","lastStyleSheetSet","latitude","layerX","layerY","layoutFlow","layoutGrid","layoutGridChar","layoutGridLine","layoutGridMode","layoutGridType","lbound","left","leftContext","leftMargin","length","lengthAdjust","lengthComputable","letter-spacing","letterSpacing","level","lighting-color","lightingColor","limitingConeAngle","line","line-height","lineAlign","lineBreak","lineCap","lineDashOffset","lineHeight","lineJoin","lineNumber","lineTo","lineWidth","linearRampToValueAtTime","lineno","link","linkColor","linkProgram","links","list","list-style","list-style-image","list-style-position","list-style-type","listStyle","listStyleImage","listStylePosition","listStyleType","listener","load","loadEventEnd","loadEventStart","loadTimes","loaded","localDescription","localName","localStorage","locale","localeCompare","location","locationbar","lock","lockedFile","log","log10","log1p","log2","logicalXDPI","logicalYDPI","longDesc","longitude","lookupNamespaceURI","lookupPrefix","loop","loopEnd","loopStart","looping","low","lower","lowerBound","lowerOpen","lowsrc","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","manifest","map","mapping","margin","margin-bottom","margin-left","margin-right","margin-top","marginBottom","marginHeight","marginLeft","marginRight","marginTop","marginWidth","mark","marker","marker-end","marker-mid","marker-offset","marker-start","markerEnd","markerHeight","markerMid","markerOffset","markerStart","markerUnits","markerWidth","marks","mask","mask-type","maskContentUnits","maskType","maskUnits","match","matchMedia","matchMedium","matches","matrix","matrixTransform","max","max-height","max-width","maxAlternatives","maxChannelCount","maxConnectionsPerServer","maxDecibels","maxDistance","maxHeight","maxLength","maxTouchPoints","maxValue","maxWidth","measure","measureText","media","mediaCapabilities","mediaDevices","mediaElement","mediaGroup","mediaKeys","mediaText","meetOrSlice","memory","menubar","mergeAttributes","message","messageClass","messageHandlers","metaKey","method","mimeType","mimeTypes","min","min-height","min-width","minDecibels","minHeight","minValue","minWidth","miterLimit","mix-blend-mode","mixBlendMode","mode","modify","mount","move","moveBy","moveEnd","moveFirst","moveFocusDown","moveFocusLeft","moveFocusRight","moveFocusUp","moveNext","moveRow","moveStart","moveTo","moveToBookmark","moveToElementText","moveToPoint","mozAdd","mozAnimationStartTime","mozAnon","mozApps","mozAudioCaptured","mozAudioChannelType","mozAutoplayEnabled","mozCancelAnimationFrame","mozCancelFullScreen","mozCancelRequestAnimationFrame","mozCaptureStream","mozCaptureStreamUntilEnded","mozClearDataAt","mozContact","mozContacts","mozCreateFileHandle","mozCurrentTransform","mozCurrentTransformInverse","mozCursor","mozDash","mozDashOffset","mozDecodedFrames","mozExitPointerLock","mozFillRule","mozFragmentEnd","mozFrameDelay","mozFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozGetAll","mozGetAllKeys","mozGetAsFile","mozGetDataAt","mozGetMetadata","mozGetUserMedia","mozHasAudio","mozHasItem","mozHidden","mozImageSmoothingEnabled","mozIndexedDB","mozInnerScreenX","mozInnerScreenY","mozInputSource","mozIsTextField","mozItem","mozItemCount","mozItems","mozLength","mozLockOrientation","mozMatchesSelector","mozMovementX","mozMovementY","mozOpaque","mozOrientation","mozPaintCount","mozPaintedFrames","mozParsedFrames","mozPay","mozPointerLockElement","mozPresentedFrames","mozPreservesPitch","mozPressure","mozPrintCallback","mozRTCIceCandidate","mozRTCPeerConnection","mozRTCSessionDescription","mozRemove","mozRequestAnimationFrame","mozRequestFullScreen","mozRequestPointerLock","mozSetDataAt","mozSetImageElement","mozSourceNode","mozSrcObject","mozSystem","mozTCPSocket","mozTextStyle","mozTypesAt","mozUnlockOrientation","mozUserCancelled","mozVisibilityState","msAnimation","msAnimationDelay","msAnimationDirection","msAnimationDuration","msAnimationFillMode","msAnimationIterationCount","msAnimationName","msAnimationPlayState","msAnimationStartTime","msAnimationTimingFunction","msBackfaceVisibility","msBlockProgression","msCSSOMElementFloatMetrics","msCaching","msCachingEnabled","msCancelRequestAnimationFrame","msCapsLockWarningOff","msClearImmediate","msClose","msContentZoomChaining","msContentZoomFactor","msContentZoomLimit","msContentZoomLimitMax","msContentZoomLimitMin","msContentZoomSnap","msContentZoomSnapPoints","msContentZoomSnapType","msContentZooming","msConvertURL","msCrypto","msDoNotTrack","msElementsFromPoint","msElementsFromRect","msExitFullscreen","msExtendedCode","msFillRule","msFirstPaint","msFlex","msFlexAlign","msFlexDirection","msFlexFlow","msFlexItemAlign","msFlexLinePack","msFlexNegative","msFlexOrder","msFlexPack","msFlexPositive","msFlexPreferredSize","msFlexWrap","msFlowFrom","msFlowInto","msFontFeatureSettings","msFullscreenElement","msFullscreenEnabled","msGetInputContext","msGetRegionContent","msGetUntransformedBounds","msGraphicsTrustStatus","msGridColumn","msGridColumnAlign","msGridColumnSpan","msGridColumns","msGridRow","msGridRowAlign","msGridRowSpan","msGridRows","msHidden","msHighContrastAdjust","msHyphenateLimitChars","msHyphenateLimitLines","msHyphenateLimitZone","msHyphens","msImageSmoothingEnabled","msImeAlign","msIndexedDB","msInterpolationMode","msIsStaticHTML","msKeySystem","msKeys","msLaunchUri","msLockOrientation","msManipulationViewsEnabled","msMatchMedia","msMatchesSelector","msMaxTouchPoints","msOrientation","msOverflowStyle","msPerspective","msPerspectiveOrigin","msPlayToDisabled","msPlayToPreferredSourceUri","msPlayToPrimary","msPointerEnabled","msRegionOverflow","msReleasePointerCapture","msRequestAnimationFrame","msRequestFullscreen","msSaveBlob","msSaveOrOpenBlob","msScrollChaining","msScrollLimit","msScrollLimitXMax","msScrollLimitXMin","msScrollLimitYMax","msScrollLimitYMin","msScrollRails","msScrollSnapPointsX","msScrollSnapPointsY","msScrollSnapType","msScrollSnapX","msScrollSnapY","msScrollTranslation","msSetImmediate","msSetMediaKeys","msSetPointerCapture","msTextCombineHorizontal","msTextSizeAdjust","msToBlob","msTouchAction","msTouchSelect","msTraceAsyncCallbackCompleted","msTraceAsyncCallbackStarting","msTraceAsyncOperationCompleted","msTraceAsyncOperationStarting","msTransform","msTransformOrigin","msTransformStyle","msTransition","msTransitionDelay","msTransitionDuration","msTransitionProperty","msTransitionTimingFunction","msUnlockOrientation","msUpdateAsyncCallbackRelation","msUserSelect","msVisibilityState","msWrapFlow","msWrapMargin","msWrapThrough","msWriteProfilerMark","msZoom","msZoomTo","mt","multiEntry","multiSelectionObj","multiline","multiple","multiply","multiplySelf","mutableFile","muted","n","name","nameProp","namedItem","namedRecordset","names","namespaceURI","namespaces","naturalHeight","naturalWidth","navigate","navigation","navigationMode","navigationStart","navigator","near","nearestViewportElement","negative","netscape","networkState","newScale","newTranslate","newURL","newValue","newValueSpecifiedUnits","newVersion","newhome","next","nextElementSibling","nextNode","nextPage","nextSibling","nickname","noHref","noResize","noShade","noValidate","noWrap","nodeName","nodeType","nodeValue","normalize","normalizedPathSegList","notationName","notations","note","noteGrainOn","noteOff","noteOn","now","numOctaves","number","numberOfChannels","numberOfInputs","numberOfItems","numberOfOutputs","numberValue","oMatchesSelector","object","object-fit","object-position","objectFit","objectPosition","objectStore","objectStoreNames","observe","of","offscreenBuffering","offset","offsetHeight","offsetLeft","offsetNode","offsetParent","offsetTop","offsetWidth","offsetX","offsetY","ok","oldURL","oldValue","oldVersion","olderShadowRoot","onLine","onabort","onactivate","onactive","onaddstream","onaddtrack","onafterprint","onafterscriptexecute","onafterupdate","onaudioend","onaudioprocess","onaudiostart","onautocomplete","onautocompleteerror","onbeforeactivate","onbeforecopy","onbeforecut","onbeforedeactivate","onbeforeeditfocus","onbeforepaste","onbeforeprint","onbeforescriptexecute","onbeforeunload","onbeforeupdate","onblocked","onblur","onbounce","onboundary","oncached","oncancel","oncandidatewindowhide","oncandidatewindowshow","oncandidatewindowupdate","oncanplay","oncanplaythrough","once","oncellchange","onchange","onchargingchange","onchargingtimechange","onchecking","onclick","onclose","oncompassneedscalibration","oncomplete","oncontextmenu","oncontrolselect","oncopy","oncuechange","oncut","ondataavailable","ondatachannel","ondatasetchanged","ondatasetcomplete","ondblclick","ondeactivate","ondevicelight","ondevicemotion","ondeviceorientation","ondeviceproximity","ondischargingtimechange","ondisplay","ondownloading","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onencrypted","onend","onended","onenter","onerror","onerrorupdate","onexit","onfilterchange","onfinish","onfocus","onfocusin","onfocusout","onfullscreenchange","onfullscreenerror","ongesturechange","ongestureend","ongesturestart","ongotpointercapture","onhashchange","onhelp","onicecandidate","oniceconnectionstatechange","oninactive","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onlayoutcomplete","onlevelchange","onload","onloadeddata","onloadedmetadata","onloadend","onloadstart","onlosecapture","onlostpointercapture","only","onmark","onmessage","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onmove","onmoveend","onmovestart","onmozfullscreenchange","onmozfullscreenerror","onmozorientationchange","onmozpointerlockchange","onmozpointerlockerror","onmscontentzoom","onmsfullscreenchange","onmsfullscreenerror","onmsgesturechange","onmsgesturedoubletap","onmsgestureend","onmsgesturehold","onmsgesturestart","onmsgesturetap","onmsgotpointercapture","onmsinertiastart","onmslostpointercapture","onmsmanipulationstatechanged","onmsneedkey","onmsorientationchange","onmspointercancel","onmspointerdown","onmspointerenter","onmspointerhover","onmspointerleave","onmspointermove","onmspointerout","onmspointerover","onmspointerup","onmssitemodejumplistitemremoved","onmsthumbnailclick","onnegotiationneeded","onnomatch","onnoupdate","onobsolete","onoffline","ononline","onopen","onorientationchange","onpagechange","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpluginstreamstart","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointerlockchange","onpointerlockerror","onpointermove","onpointerout","onpointerover","onpointerup","onpopstate","onprogress","onpropertychange","onratechange","onreadystatechange","onremovestream","onremovetrack","onreset","onresize","onresizeend","onresizestart","onresourcetimingbufferfull","onresult","onresume","onrowenter","onrowexit","onrowsdelete","onrowsinserted","onscroll","onsearch","onseeked","onseeking","onselect","onselectionchange","onselectstart","onshow","onsignalingstatechange","onsoundend","onsoundstart","onspeechend","onspeechstart","onstalled","onstart","onstatechange","onstop","onstorage","onstoragecommit","onsubmit","onsuccess","onsuspend","ontextinput","ontimeout","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onunload","onupdateready","onupgradeneeded","onuserproximity","onversionchange","onvoiceschanged","onvolumechange","onwaiting","onwarning","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkitcurrentplaybacktargetiswirelesschanged","onwebkitfullscreenchange","onwebkitfullscreenerror","onwebkitkeyadded","onwebkitkeyerror","onwebkitkeymessage","onwebkitneedkey","onwebkitorientationchange","onwebkitplaybacktargetavailabilitychanged","onwebkitpointerlockchange","onwebkitpointerlockerror","onwebkitresourcetimingbufferfull","onwebkittransitionend","onwheel","onzoom","opacity","open","openCursor","openDatabase","openKeyCursor","opener","opera","operationType","operator","opr","optimum","options","order","orderX","orderY","ordered","org","orient","orientAngle","orientType","orientation","origin","originalTarget","orphans","oscpu","outerHTML","outerHeight","outerText","outerWidth","outline","outline-color","outline-offset","outline-style","outline-width","outlineColor","outlineOffset","outlineStyle","outlineWidth","outputBuffer","overflow","overflow-x","overflow-y","overflowX","overflowY","overrideMimeType","oversample","ownerDocument","ownerElement","ownerNode","ownerRule","ownerSVGElement","owningElement","p1","p2","p3","p4","pad","padding","padding-bottom","padding-left","padding-right","padding-top","paddingBottom","paddingLeft","paddingRight","paddingTop","page","page-break-after","page-break-before","page-break-inside","pageBreakAfter","pageBreakBefore","pageBreakInside","pageCount","pageX","pageXOffset","pageY","pageYOffset","pages","paint-order","paintOrder","paintRequests","paintType","palette","panningModel","parent","parentElement","parentNode","parentRule","parentStyleSheet","parentTextEdit","parentWindow","parse","parseFloat","parseFromString","parseInt","participants","passive","password","pasteHTML","path","pathLength","pathSegList","pathSegType","pathSegTypeAsLetter","pathname","pattern","patternContentUnits","patternMismatch","patternTransform","patternUnits","pause","pauseAnimations","pauseOnExit","paused","pending","performance","permission","persisted","personalbar","perspective","perspective-origin","perspectiveOrigin","phoneticFamilyName","phoneticGivenName","photo","ping","pitch","pixelBottom","pixelDepth","pixelHeight","pixelLeft","pixelRight","pixelStorei","pixelTop","pixelUnitToMillimeterX","pixelUnitToMillimeterY","pixelWidth","placeholder","platform","play","playbackRate","playbackState","playbackTime","played","plugins","pluginspage","pname","pointer-events","pointerBeforeReferenceNode","pointerEnabled","pointerEvents","pointerId","pointerLockElement","pointerType","points","pointsAtX","pointsAtY","pointsAtZ","polygonOffset","pop","popupWindowFeatures","popupWindowName","popupWindowURI","port","port1","port2","ports","posBottom","posHeight","posLeft","posRight","posTop","posWidth","position","positionAlign","postError","postMessage","poster","pow","powerOff","preMultiplySelf","precision","preferredStyleSheetSet","preferredStylesheetSet","prefix","preload","prepend","preserveAlpha","preserveAspectRatio","preserveAspectRatioString","pressed","pressure","prevValue","preventDefault","preventExtensions","previousElementSibling","previousNode","previousPage","previousScale","previousSibling","previousTranslate","primaryKey","primitiveType","primitiveUnits","principals","print","privateKey","probablySupportsContext","process","processIceMessage","product","productSub","profile","profileEnd","profiles","prompt","properties","propertyIsEnumerable","propertyName","protocol","protocolLong","prototype","pseudoClass","pseudoElement","publicId","publicKey","published","push","pushNotification","pushState","put","putImageData","quadraticCurveTo","qualifier","queryCommandEnabled","queryCommandIndeterm","queryCommandState","queryCommandSupported","queryCommandText","queryCommandValue","querySelector","querySelectorAll","quote","quotes","r","r1","r2","race","radiogroup","radiusX","radiusY","random","range","rangeCount","rangeMax","rangeMin","rangeOffset","rangeOverflow","rangeParent","rangeUnderflow","rate","ratio","raw","read","readAsArrayBuffer","readAsBinaryString","readAsBlob","readAsDataURL","readAsText","readOnly","readPixels","readReportRequested","readyState","reason","reboot","receiver","receivers","recordNumber","recordset","rect","red","redirectCount","redirectEnd","redirectStart","reduce","reduceRight","reduction","refDistance","refX","refY","referenceNode","referrer","refresh","region","regionAnchorX","regionAnchorY","regionId","regions","register","registerContentHandler","registerElement","registerProtocolHandler","reject","rel","relList","relatedNode","relatedTarget","release","releaseCapture","releaseEvents","releasePointerCapture","releaseShaderCompiler","reliable","reload","remainingSpace","remoteDescription","remove","removeAllRanges","removeAttribute","removeAttributeNS","removeAttributeNode","removeBehavior","removeChild","removeCue","removeEventListener","removeFilter","removeImport","removeItem","removeListener","removeNamedItem","removeNamedItemNS","removeNode","removeParameter","removeProperty","removeRange","removeRegion","removeRule","removeSiteSpecificTrackingException","removeSourceBuffer","removeStream","removeTrack","removeVariable","removeWakeLockListener","removeWebWideTrackingException","removedNodes","renderbufferStorage","renderedBuffer","renderingMode","repeat","replace","replaceAdjacentText","replaceChild","replaceData","replaceId","replaceItem","replaceNode","replaceState","replaceTrack","replaceWholeText","reportValidity","requestAnimationFrame","requestAutocomplete","requestData","requestFullscreen","requestMediaKeySystemAccess","requestPermission","requestPointerLock","requestStart","requestingWindow","required","requiredExtensions","requiredFeatures","reset","resetTransform","resize","resizeBy","resizeTo","resolve","response","responseBody","responseEnd","responseStart","responseText","responseType","responseURL","responseXML","restore","result","resultType","resume","returnValue","rev","reverse","reversed","revocable","revokeObjectURL","rgbColor","right","rightContext","rightMargin","rolloffFactor","root","rootElement","rotate","rotateAxisAngle","rotateAxisAngleSelf","rotateFromVector","rotateFromVectorSelf","rotateSelf","rotation","rotationRate","round","rowIndex","rowSpan","rows","rubyAlign","rubyOverhang","rubyPosition","rules","runtime","runtimeStyle","rx","ry","safari","sampleCoverage","sampleRate","sandbox","save","scale","scale3d","scale3dSelf","scaleNonUniform","scaleNonUniformSelf","scaleSelf","scheme","scissor","scope","scopeName","scoped","screen","screenBrightness","screenEnabled","screenLeft","screenPixelToMillimeterX","screenPixelToMillimeterY","screenTop","screenX","screenY","scripts","scroll","scroll-behavior","scrollAmount","scrollBehavior","scrollBy","scrollByLines","scrollByPages","scrollDelay","scrollHeight","scrollIntoView","scrollIntoViewIfNeeded","scrollLeft","scrollLeftMax","scrollMaxX","scrollMaxY","scrollTo","scrollTop","scrollTopMax","scrollWidth","scrollX","scrollY","scrollbar3dLightColor","scrollbarArrowColor","scrollbarBaseColor","scrollbarDarkShadowColor","scrollbarFaceColor","scrollbarHighlightColor","scrollbarShadowColor","scrollbarTrackColor","scrollbars","scrolling","sdp","sdpMLineIndex","sdpMid","seal","search","searchBox","searchBoxJavaBridge_","searchParams","sectionRowIndex","secureConnectionStart","security","seed","seekable","seeking","select","selectAllChildren","selectNode","selectNodeContents","selectNodes","selectSingleNode","selectSubString","selected","selectedIndex","selectedOptions","selectedStyleSheetSet","selectedStylesheetSet","selection","selectionDirection","selectionEnd","selectionStart","selector","selectorText","self","send","sendAsBinary","sendBeacon","sender","sentTimestamp","separator","serializeToString","serviceWorker","sessionId","sessionStorage","set","setActive","setAlpha","setAttribute","setAttributeNS","setAttributeNode","setAttributeNodeNS","setBaseAndExtent","setBingCurrentSearchDefault","setCapture","setColor","setCompositeOperation","setCurrentTime","setCustomValidity","setData","setDate","setDragImage","setEnd","setEndAfter","setEndBefore","setEndPoint","setFillColor","setFilterRes","setFloat32","setFloat64","setFloatValue","setFullYear","setHours","setImmediate","setInt16","setInt32","setInt8","setInterval","setItem","setLineCap","setLineDash","setLineJoin","setLineWidth","setLocalDescription","setMatrix","setMatrixValue","setMediaKeys","setMilliseconds","setMinutes","setMiterLimit","setMonth","setNamedItem","setNamedItemNS","setNonUserCodeExceptions","setOrientToAngle","setOrientToAuto","setOrientation","setOverrideHistoryNavigationMode","setPaint","setParameter","setPeriodicWave","setPointerCapture","setPosition","setPreference","setProperty","setPrototypeOf","setRGBColor","setRGBColorICCColor","setRadius","setRangeText","setRemoteDescription","setRequestHeader","setResizable","setResourceTimingBufferSize","setRotate","setScale","setSeconds","setSelectionRange","setServerCertificate","setShadow","setSkewX","setSkewY","setStart","setStartAfter","setStartBefore","setStdDeviation","setStringValue","setStrokeColor","setSuggestResult","setTargetAtTime","setTargetValueAtTime","setTime","setTimeout","setTransform","setTranslate","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setUint16","setUint32","setUint8","setUri","setValueAtTime","setValueCurveAtTime","setVariable","setVelocity","setVersion","setYear","settingName","settingValue","sex","shaderSource","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","shadowRoot","shape","shape-rendering","shapeRendering","sheet","shift","shiftKey","shiftLeft","show","showHelp","showModal","showModalDialog","showModelessDialog","showNotification","sidebar","sign","signalingState","sin","singleNodeValue","sinh","size","sizeToContent","sizes","skewX","skewXSelf","skewY","skewYSelf","slice","slope","small","smil","smooth","smoothingTimeConstant","snapToLines","snapshotItem","snapshotLength","some","sort","source","sourceBuffer","sourceBuffers","sourceIndex","spacing","span","speakAs","speaking","specified","specularConstant","specularExponent","speechSynthesis","speed","speedOfSound","spellcheck","splice","split","splitText","spreadMethod","sqrt","src","srcElement","srcFilter","srcUrn","srcdoc","srclang","srcset","stack","stackTraceLimit","stacktrace","standalone","standby","start","startContainer","startIce","startOffset","startRendering","startTime","startsWith","state","status","statusMessage","statusText","statusbar","stdDeviationX","stdDeviationY","stencilFunc","stencilFuncSeparate","stencilMask","stencilMaskSeparate","stencilOp","stencilOpSeparate","step","stepDown","stepMismatch","stepUp","sticky","stitchTiles","stop","stop-color","stop-opacity","stopColor","stopImmediatePropagation","stopOpacity","stopPropagation","storageArea","storageName","storageStatus","storeSiteSpecificTrackingException","storeWebWideTrackingException","stpVersion","stream","strike","stringValue","stringify","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeRect","strokeStyle","strokeText","strokeWidth","style","styleFloat","styleMedia","styleSheet","styleSheetSets","styleSheets","sub","subarray","subject","submit","subscribe","substr","substring","substringData","subtle","subtree","suffix","suffixes","summary","sup","supports","surfaceScale","surroundContents","suspend","suspendRedraw","swapCache","swapNode","sweepFlag","symbols","system","systemCode","systemId","systemLanguage","systemXDPI","systemYDPI","tBodies","tFoot","tHead","tabIndex","table","table-layout","tableLayout","tableValues","tag","tagName","tagUrn","tags","taintEnabled","takeRecords","tan","tanh","target","targetElement","targetTouches","targetX","targetY","tel","terminate","test","texImage2D","texParameterf","texParameteri","texSubImage2D","text","text-align","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","textAlign","textAlignLast","textAnchor","textAutospace","textBaseline","textContent","textDecoration","textDecorationBlink","textDecorationColor","textDecorationLine","textDecorationLineThrough","textDecorationNone","textDecorationOverline","textDecorationStyle","textDecorationUnderline","textIndent","textJustify","textJustifyTrim","textKashida","textKashidaSpace","textLength","textOverflow","textRendering","textShadow","textTracks","textTransform","textUnderlinePosition","then","threadId","threshold","tiltX","tiltY","time","timeEnd","timeStamp","timeout","timestamp","timestampOffset","timing","title","toArray","toBlob","toDataURL","toDateString","toElement","toExponential","toFixed","toFloat32Array","toFloat64Array","toGMTString","toISOString","toJSON","toLocaleDateString","toLocaleFormat","toLocaleLowerCase","toLocaleString","toLocaleTimeString","toLocaleUpperCase","toLowerCase","toMethod","toPrecision","toSdp","toSource","toStaticHTML","toString","toStringTag","toTimeString","toUTCString","toUpperCase","toggle","toggleLongPressEnabled","tooLong","toolbar","top","topMargin","total","totalFrameDelay","totalVideoFrames","touchAction","touches","trace","track","transaction","transactions","transform","transform-origin","transform-style","transformOrigin","transformPoint","transformString","transformStyle","transformToDocument","transformToFragment","transition","transition-delay","transition-duration","transition-property","transition-timing-function","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateSelf","translationX","translationY","trim","trimLeft","trimRight","trueSpeed","trunc","truncate","type","typeDetail","typeMismatch","typeMustMatch","types","ubound","undefined","unescape","uneval","unicode-bidi","unicodeBidi","uniform1f","uniform1fv","uniform1i","uniform1iv","uniform2f","uniform2fv","uniform2i","uniform2iv","uniform3f","uniform3fv","uniform3i","uniform3iv","uniform4f","uniform4fv","uniform4i","uniform4iv","uniformMatrix2fv","uniformMatrix3fv","uniformMatrix4fv","unique","uniqueID","uniqueNumber","unitType","units","unloadEventEnd","unloadEventStart","unlock","unmount","unobserve","unpause","unpauseAnimations","unreadCount","unregister","unregisterContentHandler","unregisterProtocolHandler","unscopables","unselectable","unshift","unsubscribe","unsuspendRedraw","unsuspendRedrawAll","unwatch","unwrapKey","update","updateCommands","updateIce","updateInterval","updateSettings","updated","updating","upload","upper","upperBound","upperOpen","uri","url","urn","urns","usages","useCurrentView","useMap","useProgram","usedSpace","userAgent","userLanguage","username","v8BreakIterator","vAlign","vLink","valid","validateProgram","validationMessage","validity","value","valueAsDate","valueAsNumber","valueAsString","valueInSpecifiedUnits","valueMissing","valueOf","valueText","valueType","values","vector-effect","vectorEffect","velocityAngular","velocityExpansion","velocityX","velocityY","vendor","vendorSub","verify","version","vertexAttrib1f","vertexAttrib1fv","vertexAttrib2f","vertexAttrib2fv","vertexAttrib3f","vertexAttrib3fv","vertexAttrib4f","vertexAttrib4fv","vertexAttribDivisorANGLE","vertexAttribPointer","vertical","vertical-align","verticalAlign","verticalOverflow","vibrate","videoHeight","videoTracks","videoWidth","view","viewBox","viewBoxString","viewTarget","viewTargetString","viewport","viewportAnchorX","viewportAnchorY","viewportElement","visibility","visibilityState","visible","vlinkColor","voice","volume","vrml","vspace","w","wand","warn","wasClean","watch","watchPosition","webdriver","webkitAddKey","webkitAnimation","webkitAnimationDelay","webkitAnimationDirection","webkitAnimationDuration","webkitAnimationFillMode","webkitAnimationIterationCount","webkitAnimationName","webkitAnimationPlayState","webkitAnimationTimingFunction","webkitAppearance","webkitAudioContext","webkitAudioDecodedByteCount","webkitAudioPannerNode","webkitBackfaceVisibility","webkitBackground","webkitBackgroundAttachment","webkitBackgroundClip","webkitBackgroundColor","webkitBackgroundImage","webkitBackgroundOrigin","webkitBackgroundPosition","webkitBackgroundPositionX","webkitBackgroundPositionY","webkitBackgroundRepeat","webkitBackgroundSize","webkitBackingStorePixelRatio","webkitBorderImage","webkitBorderImageOutset","webkitBorderImageRepeat","webkitBorderImageSlice","webkitBorderImageSource","webkitBorderImageWidth","webkitBoxAlign","webkitBoxDirection","webkitBoxFlex","webkitBoxOrdinalGroup","webkitBoxOrient","webkitBoxPack","webkitBoxSizing","webkitCancelAnimationFrame","webkitCancelFullScreen","webkitCancelKeyRequest","webkitCancelRequestAnimationFrame","webkitClearResourceTimings","webkitClosedCaptionsVisible","webkitConvertPointFromNodeToPage","webkitConvertPointFromPageToNode","webkitCreateShadowRoot","webkitCurrentFullScreenElement","webkitCurrentPlaybackTargetIsWireless","webkitDirectionInvertedFromDevice","webkitDisplayingFullscreen","webkitEnterFullScreen","webkitEnterFullscreen","webkitExitFullScreen","webkitExitFullscreen","webkitExitPointerLock","webkitFullScreenKeyboardInputAllowed","webkitFullscreenElement","webkitFullscreenEnabled","webkitGenerateKeyRequest","webkitGetAsEntry","webkitGetDatabaseNames","webkitGetEntries","webkitGetEntriesByName","webkitGetEntriesByType","webkitGetFlowByName","webkitGetGamepads","webkitGetImageDataHD","webkitGetNamedFlows","webkitGetRegionFlowRanges","webkitGetUserMedia","webkitHasClosedCaptions","webkitHidden","webkitIDBCursor","webkitIDBDatabase","webkitIDBDatabaseError","webkitIDBDatabaseException","webkitIDBFactory","webkitIDBIndex","webkitIDBKeyRange","webkitIDBObjectStore","webkitIDBRequest","webkitIDBTransaction","webkitImageSmoothingEnabled","webkitIndexedDB","webkitInitMessageEvent","webkitIsFullScreen","webkitKeys","webkitLineDashOffset","webkitLockOrientation","webkitMatchesSelector","webkitMediaStream","webkitNotifications","webkitOfflineAudioContext","webkitOrientation","webkitPeerConnection00","webkitPersistentStorage","webkitPointerLockElement","webkitPostMessage","webkitPreservesPitch","webkitPutImageDataHD","webkitRTCPeerConnection","webkitRegionOverset","webkitRequestAnimationFrame","webkitRequestFileSystem","webkitRequestFullScreen","webkitRequestFullscreen","webkitRequestPointerLock","webkitResolveLocalFileSystemURL","webkitSetMediaKeys","webkitSetResourceTimingBufferSize","webkitShadowRoot","webkitShowPlaybackTargetPicker","webkitSlice","webkitSpeechGrammar","webkitSpeechGrammarList","webkitSpeechRecognition","webkitSpeechRecognitionError","webkitSpeechRecognitionEvent","webkitStorageInfo","webkitSupportsFullscreen","webkitTemporaryStorage","webkitTextSizeAdjust","webkitTransform","webkitTransformOrigin","webkitTransition","webkitTransitionDelay","webkitTransitionDuration","webkitTransitionProperty","webkitTransitionTimingFunction","webkitURL","webkitUnlockOrientation","webkitUserSelect","webkitVideoDecodedByteCount","webkitVisibilityState","webkitWirelessVideoPlaybackDisabled","webkitdropzone","webstore","weight","whatToShow","wheelDelta","wheelDeltaX","wheelDeltaY","which","white-space","whiteSpace","wholeText","widows","width","will-change","willChange","willValidate","window","withCredentials","word-break","word-spacing","word-wrap","wordBreak","wordSpacing","wordWrap","wrap","wrapKey","write","writeln","writingMode","x","x1","x2","xChannelSelector","xmlEncoding","xmlStandalone","xmlVersion","xmlbase","xmllang","xmlspace","y","y1","y2","yChannelSelector","yandex","z","z-index","zIndex","zoom","zoomAndPan","zoomRectScreen"];function pi(e,t){function n(e){f(t,e)}e.walk(new wn((function(e){e instanceof Rt&&e.quote?n(e.key):e instanceof kt&&e.quote?n(e.key.name):e instanceof vt&&di(e.property,n)})))}function di(e,t){e.walk(new wn((function(e){return e instanceof Et?di(e.tail_node(),t):e instanceof dn?t(e.value):e instanceof xt&&(di(e.consequent,t),di(e.alternative,t)),!0})))}function fi(e,t){var n=(t=o(t,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,only_cache:!1,regex:null,reserved:null,undeclared:!1},!0)).reserved;Array.isArray(n)||(n=[n]);var r=new Set(n);t.builtins||function(e){hi.forEach(r);var t={},n="object"==typeof Pt?Pt:self;function r(t){e.add(t)}["Symbol","Map","Promise","Proxy","Reflect","Set","WeakMap","WeakSet"].forEach((function(e){t[e]=n[e]||new Function})),["null","true","false","NaN","Infinity","-Infinity","undefined"].forEach(r),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp,t.Symbol,ArrayBuffer,DataView,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,EvalError,Float32Array,Float64Array,Int8Array,Int16Array,Int32Array,isFinite,isNaN,JSON,t.Map,parseFloat,parseInt,t.Promise,t.Proxy,RangeError,ReferenceError,t.Reflect,t.Set,SyntaxError,TypeError,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,URIError,t.WeakMap,t.WeakSet].forEach((function(e){Object.getOwnPropertyNames(e).map(r),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(r)}))}(r);var i,s=-1;t.cache?(i=t.cache.props).forEach((function(e){r.add(e)})):i=new Map;var a,l=t.regex&&new RegExp(t.regex),c=!1!==t.debug;c&&(a=!0===t.debug?"":t.debug);var u=new Set,h=new Set,p="strict"===t.keep_quoted;return e.walk(new wn((function(e){if(e instanceof Rt)"string"!=typeof e.key||p&&e.quote||m(e.key);else if(e instanceof kt)p&&e.key.end.quote||m(e.key.name);else if(e instanceof Tt){var n=!!t.undeclared;if(!n){for(var r=e;r.expression;)r=r.expression;n=!(r.thedef&&r.thedef.undeclared)}!n||p&&e.quote||m(e.property)}else e instanceof vt?p||di(e.property,m):e instanceof gt&&"Object.defineProperty"==e.expression.print_to_string()&&di(e.args[1],m)}))),e.transform(new On((function(e){e instanceof Rt?"string"!=typeof e.key||p&&e.quote||(e.key=g(e.key)):e instanceof kt?p&&e.key.end.quote||(e.key.name=g(e.key.name)):e instanceof Tt?p&&e.quote||(e.property=g(e.property)):!t.keep_quoted&&e instanceof vt?e.property=_(e.property):e instanceof gt&&"Object.defineProperty"==e.expression.print_to_string()&&(e.args[1]=_(e.args[1]))})));function d(e){return!h.has(e)&&!r.has(e)&&(t.only_cache?i.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e))}function f(e){return!(l&&!l.test(e))&&!r.has(e)&&(i.has(e)||u.has(e))}function m(e){d(e)&&u.add(e),f(e)||h.add(e)}function g(e){if(!f(e))return e;var t=i.get(e);if(!t){if(c){var n="_$"+e+"$"+a+"_";d(n)&&(t=n)}if(!t)do{t=Yn(++s)}while(!d(t));i.set(e,t)}return t}function _(e){return e.transform(new On((function(e){if(e instanceof Et){var t=e.expressions.length-1;e.expressions[t]=_(e.expressions[t])}else e instanceof dn?e.value=g(e.value):e instanceof xt&&(e.consequent=_(e.consequent),e.alternative=_(e.alternative));return e})))}}var mi="undefined"==typeof atob?function(e){return t.from(e,"base64").toString()}:atob,gi="undefined"==typeof btoa?function(e){return t.from(e).toString("base64")}:btoa;function _i(e,t,n){t[e]&&n.forEach((function(n){t[n]&&("object"!=typeof t[n]&&(t[n]={}),e in t[n]||(t[n][e]=t[e]))}))}function Ei(e){e&&("props"in e?e.props instanceof Map||(e.props=function(e){var t=new Map;for(var n in e)T(e,n)&&"$"===n.charAt(0)&&t.set(n.substr(1),e[n]);return t}(e.props)):e.props=new Map)}function yi(e){return{props:(t=e.props,n=Object.create(null),t.forEach((function(e,t){n["$"+t]=e})),n)};var t,n}function Ti(e,t){var r,i,s=de.warn_function;try{var a,l=(t=o(t,{compress:{},ecma:void 0,enclose:!1,ie8:!1,keep_classnames:void 0,keep_fnames:!1,mangle:{},module:!1,nameCache:null,output:{},parse:{},rename:void 0,safari10:!1,sourceMap:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0)).timings&&{start:Date.now()};void 0===t.keep_classnames&&(t.keep_classnames=t.keep_fnames),void 0===t.rename&&(t.rename=t.compress&&t.mangle),_i("ecma",t,["parse","compress","output"]),_i("ie8",t,["compress","mangle","output"]),_i("keep_classnames",t,["compress","mangle"]),_i("keep_fnames",t,["compress","mangle"]),_i("module",t,["parse","compress","mangle"]),_i("safari10",t,["mangle","output"]),_i("toplevel",t,["compress","mangle"]),_i("warnings",t,["compress"]),t.mangle&&(t.mangle=o(t.mangle,{cache:t.nameCache&&(t.nameCache.vars||{}),eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,properties:!1,reserved:[],safari10:!1,toplevel:!1},!0),t.mangle.properties&&("object"!=typeof t.mangle.properties&&(t.mangle.properties={}),t.mangle.properties.keep_quoted&&(a=t.mangle.properties.reserved,Array.isArray(a)||(a=[]),t.mangle.properties.reserved=a),!t.nameCache||"cache"in t.mangle.properties||(t.mangle.properties.cache=t.nameCache.props||{})),Ei(t.mangle.cache),Ei(t.mangle.properties.cache)),t.sourceMap&&(t.sourceMap=o(t.sourceMap,{asObject:!1,content:null,filename:null,includeSources:!1,root:null,url:null},!0));var c,u=[];if(t.warnings&&!de.warn_function&&(de.warn_function=function(e){u.push(e)}),l&&(l.parse=Date.now()),e instanceof Me)c=e;else{for(var h in"string"==typeof e&&(e=[e]),t.parse=t.parse||{},t.parse.toplevel=null,e)if(T(e,h)&&(t.parse.filename=h,t.parse.toplevel=ue(e[h],t.parse),t.sourceMap&&"inline"==t.sourceMap.content)){if(Object.keys(e).length>1)throw new Error("inline source map only works with singular input");t.sourceMap.content=(r=e[h],(i=/(?:^|[^.])\/\/# sourceMappingURL=data:application\/json(;[\w=-]*)?;base64,([+/0-9A-Za-z]*=*)\s*$/.exec(r))?mi(i[2]):(de.warn("inline source map not found"),null))}c=t.parse.toplevel}a&&"strict"!==t.mangle.properties.keep_quoted&&pi(c,a),t.wrap&&(c=c.wrap_commonjs(t.wrap)),t.enclose&&(c=c.wrap_enclose(t.enclose)),l&&(l.rename=Date.now()),l&&(l.compress=Date.now()),t.compress&&(c=new lr(t.compress).compress(c)),l&&(l.scope=Date.now()),t.mangle&&c.figure_out_scope(t.mangle),l&&(l.mangle=Date.now()),t.mangle&&(Yn.reset(),c.compute_char_frequency(t.mangle),c.mangle_names(t.mangle)),l&&(l.properties=Date.now()),t.mangle&&t.mangle.properties&&(c=fi(c,t.mangle.properties)),l&&(l.output=Date.now());var p={};if(t.output.ast&&(p.ast=c),!T(t.output,"code")||t.output.code){if(t.sourceMap&&("string"==typeof t.sourceMap.content&&(t.sourceMap.content=JSON.parse(t.sourceMap.content)),t.output.source_map=function(e){e=o(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var t=new n.SourceMapGenerator({file:e.file,sourceRoot:e.root}),r=e.orig&&new n.SourceMapConsumer(e.orig);return r&&r.sources.forEach((function(e){var n=r.sourceContentFor(e,!0);n&&t.setSourceContent(e,n)})),{add:function(n,i,s,o,a,l){if(r){var c=r.originalPositionFor({line:o,column:a});if(null===c.source)return;n=c.source,o=c.line,a=c.column,l=c.name||l}t.addMapping({generated:{line:i+e.dest_line_diff,column:s},original:{line:o+e.orig_line_diff,column:a},source:n,name:l})},get:function(){return t},toString:function(){return JSON.stringify(t.toJSON())}}}({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root}),t.sourceMap.includeSources)){if(e instanceof Me)throw new Error("original source content unavailable");for(var h in e)T(e,h)&&t.output.source_map.get().setSourceContent(h,e[h])}delete t.output.ast,delete t.output.code;var d=Vn(t.output);if(c.print(d),p.code=d.get(),t.sourceMap)if(t.sourceMap.asObject?p.map=t.output.source_map.get().toJSON():p.map=t.output.source_map.toString(),"inline"==t.sourceMap.url){var f="object"==typeof p.map?JSON.stringify(p.map):p.map;p.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+gi(f)}else t.sourceMap.url&&(p.code+="\n//# sourceMappingURL="+t.sourceMap.url)}return t.nameCache&&t.mangle&&(t.mangle.cache&&(t.nameCache.vars=yi(t.mangle.cache)),t.mangle.properties&&t.mangle.properties.cache&&(t.nameCache.props=yi(t.mangle.properties.cache))),l&&(l.end=Date.now(),p.timings={parse:.001*(l.rename-l.parse),rename:.001*(l.compress-l.rename),compress:.001*(l.scope-l.compress),scope:.001*(l.mangle-l.scope),mangle:.001*(l.properties-l.mangle),properties:.001*(l.output-l.properties),output:.001*(l.end-l.output),total:.001*(l.end-l.start)}),u.length&&(p.warnings=u),p}catch(e){return{error:e}}finally{de.warn_function=s}}!function(){var e=function(e){for(var t=!0,n=0;n<e.length;n++)t&&e[n]instanceof fe&&e[n].body instanceof dn?e[n]=new ge({start:e[n].start,end:e[n].end,value:e[n].body.value}):!t||e[n]instanceof fe&&e[n].body instanceof dn||(t=!1);return e},t={Program:function(t){return new Me({start:r(t),end:i(t),body:e(t.body.map(a))})},ArrayPattern:function(e){return new Ve({start:r(e),end:i(e),names:e.elements.map((function(e){return null===e?new vn:a(e)})),is_array:!0})},ObjectPattern:function(e){return new Ve({start:r(e),end:i(e),names:e.properties.map(a),is_array:!1})},AssignmentPattern:function(e){return new Nt({start:r(e),end:i(e),left:a(e.left),operator:"=",right:a(e.right)})},SpreadElement:function(e){return new Pe({start:r(e),end:i(e),expression:a(e.argument)})},RestElement:function(e){return new Pe({start:r(e),end:i(e),expression:a(e.argument)})},TemplateElement:function(e){return new je({start:r(e),end:i(e),value:e.value.cooked,raw:e.value.raw})},TemplateLiteral:function(e){for(var t=[],n=0;n<e.quasis.length;n++)t.push(a(e.quasis[n])),e.expressions[n]&&t.push(a(e.expressions[n]));return new Ge({start:r(e),end:i(e),segments:t})},TaggedTemplateExpression:function(e){return new He({start:r(e),end:i(e),template_string:a(e.quasi),prefix:a(e.tag)})},FunctionDeclaration:function(t){return new Ue({start:r(t),end:i(t),name:a(t.id),argnames:t.params.map(a),is_generator:t.generator,async:t.async,body:e(a(t.body).body)})},FunctionExpression:function(t){return new Be({start:r(t),end:i(t),name:a(t.id),argnames:t.params.map(a),is_generator:t.generator,async:t.async,body:e(a(t.body).body)})},ArrowFunctionExpression:function(e){const t="BlockStatement"===e.body.type?a(e.body).body:[d(ze,{},{value:a(e.body)})];return new $e({start:r(e),end:i(e),argnames:e.params.map(a),body:t,async:e.async})},ExpressionStatement:function(e){return new _e({start:r(e),end:i(e),body:a(e.expression)})},TryStatement:function(e){var t=e.handlers||[e.handler];if(t.length>1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new st({start:r(e),end:i(e),body:a(e.block).body,bcatch:a(t[0]),bfinally:e.finalizer?new at(a(e.finalizer)):null})},Property:function(e){var t=e.key,n={start:r(t||e.value),end:i(e.value),key:"Identifier"==t.type?t.name:t.value,value:a(e.value)};return e.computed&&(n.key=a(e.key)),e.method?(n.is_generator=e.value.generator,n.async=e.value.async,e.computed?n.key=a(e.key):n.key=new Yt({name:n.key}),new Lt(n)):"init"==e.kind?("Identifier"!=t.type&&"Literal"!=t.type&&(n.key=a(t)),new Rt(n)):("string"!=typeof n.key&&"number"!=typeof n.key||(n.key=new Yt({name:n.key})),n.value=new Fe(n.value),"get"==e.kind?new Mt(n):"set"==e.kind?new It(n):"method"==e.kind?(n.async=e.value.async,n.is_generator=e.value.generator,n.quote=e.computed?'"':null,new Lt(n)):void 0)},MethodDefinition:function(e){var t={start:r(e),end:i(e),key:e.computed?a(e.key):new Yt({name:e.key.name||e.key.value}),value:a(e.value),static:e.static};return"get"==e.kind?new Mt(t):"set"==e.kind?new It(t):(t.is_generator=e.value.generator,t.async=e.value.async,new Lt(t))},FieldDefinition:function(e){let t;if(e.computed)t=a(e.key);else{if("Identifier"!==e.key.type)throw new Error("Non-Identifier key in FieldDefinition");t=a(e.key)}return new Bt({start:r(e),end:i(e),key:t,value:a(e.value),static:e.static})},ArrayExpression:function(e){return new wt({start:r(e),end:i(e),elements:e.elements.map((function(e){return null===e?new vn:a(e)}))})},ObjectExpression:function(e){return new Ot({start:r(e),end:i(e),properties:e.properties.map((function(e){return"SpreadElement"===e.type||(e.type="Property"),a(e)}))})},SequenceExpression:function(e){return new Et({start:r(e),end:i(e),expressions:e.expressions.map(a)})},MemberExpression:function(e){return new(e.computed?vt:Tt)({start:r(e),end:i(e),property:e.computed?a(e.property):e.property.name,expression:a(e.object)})},SwitchCase:function(e){return new(e.test?it:rt)({start:r(e),end:i(e),expression:a(e.test),body:e.consequent.map(a)})},VariableDeclaration:function(e){return new("const"===e.kind?ht:"let"===e.kind?ut:ct)({start:r(e),end:i(e),definitions:e.declarations.map(a)})},ImportDeclaration:function(e){var t=null,n=null;return e.specifiers.forEach((function(e){"ImportSpecifier"===e.type?(n||(n=[]),n.push(new dt({start:r(e),end:i(e),foreign_name:a(e.imported),name:a(e.local)}))):"ImportDefaultSpecifier"===e.type?t=a(e.local):"ImportNamespaceSpecifier"===e.type&&(n||(n=[]),n.push(new dt({start:r(e),end:i(e),foreign_name:new rn({name:"*"}),name:a(e.local)})))})),new ft({start:r(e),end:i(e),imported_name:t,imported_names:n,module_name:a(e.source)})},ExportAllDeclaration:function(e){return new mt({start:r(e),end:i(e),exported_names:[new dt({name:new ln({name:"*"}),foreign_name:new ln({name:"*"})})],module_name:a(e.source)})},ExportNamedDeclaration:function(e){return new mt({start:r(e),end:i(e),exported_definition:a(e.declaration),exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map((function(e){return new dt({foreign_name:a(e.exported),name:a(e.local)})})):null,module_name:a(e.source)})},ExportDefaultDeclaration:function(e){return new mt({start:r(e),end:i(e),exported_value:a(e.declaration),is_default:!0})},Literal:function(e){var t=e.value,n={start:r(e),end:i(e)},s=e.regex;if(s&&s.pattern)return n.value={source:s.pattern,flags:s.flags},new gn(n);if(s){const r=e.raw||t,i=r.match(/^\/(.*)\/(\w*)$/);if(!i)throw new Error("Invalid regex source "+r);const[s,o,a]=i;return n.value={source:o,flags:a},new gn(n)}if(null===t)return new En(n);switch(typeof t){case"string":return n.value=t,new dn(n);case"number":return n.value=t,new fn(n);case"boolean":return new(t?Cn:Sn)(n)}},MetaProperty:function(e){if("new"===e.meta.name&&"target"===e.property.name)return new Ht({start:r(e),end:i(e)})},Identifier:function(e){var t=o[o.length-2];return new("LabeledStatement"==t.type?sn:"VariableDeclarator"==t.type&&t.id===e?"const"==t.kind?Wt:"let"==t.kind?zt:jt:/Import.*Specifier/.test(t.type)?t.local===e?nn:rn:"ExportSpecifier"==t.type?t.local===e?an:ln:"FunctionExpression"==t.type?t.id===e?Jt:Xt:"FunctionDeclaration"==t.type?t.id===e?qt:Xt:"ArrowFunctionExpression"==t.type?t.params.includes(e)?Xt:on:"ClassExpression"==t.type?t.id===e?en:on:"Property"==t.type?t.key===e&&t.computed||t.value===e?on:Yt:"FieldDefinition"==t.type?t.key===e&&t.computed||t.value===e?on:Qt:"ClassDeclaration"==t.type?t.id===e?Zt:on:"MethodDefinition"==t.type?t.computed?on:Yt:"CatchClause"==t.type?tn:"BreakStatement"==t.type||"ContinueStatement"==t.type?cn:on)({start:r(e),end:i(e),name:e.name})},BigIntLiteral:e=>new mn({start:r(e),end:i(e),value:e.value})};function n(e){if("Literal"==e.type)return null!=e.raw?e.raw:e.value+""}function r(e){var t=e.loc,r=t&&t.start,i=e.range;return new pe({file:t&&t.source,line:r&&r.line,col:r&&r.column,pos:i?i[0]:e.start,endline:r&&r.line,endcol:r&&r.column,endpos:i?i[0]:e.start,raw:n(e)})}function i(e){var t=e.loc,r=t&&t.end,i=e.range;return new pe({file:t&&t.source,line:r&&r.line,col:r&&r.column,pos:i?i[1]:e.end,endline:r&&r.line,endcol:r&&r.column,endpos:i?i[1]:e.end,raw:n(e)})}function s(e,n,s){var o="function From_Moz_"+e+"(M){\n";o+="return new U2."+n.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var c="function To_Moz_"+e+"(M){\n";c+="return {\ntype: "+JSON.stringify(e),s&&s.split(/\s*,\s*/).forEach((function(e){var t=/([a-z0-9$_]+)([=@>%])([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var n=t[1],r=t[2],i=t[3];switch(o+=",\n"+i+": ",c+=",\n"+n+": ",r){case"@":o+="M."+n+".map(from_moz)",c+="M."+i+".map(to_moz)";break;case">":o+="from_moz(M."+n+")",c+="to_moz(M."+i+")";break;case"=":o+="M."+n,c+="M."+i;break;case"%":o+="from_moz(M."+n+").body",c+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}})),o+="\n})\n}",c+="\n}\n}",o=new Function("U2","my_start_token","my_end_token","from_moz","return("+o+")")(Mn,r,i,a),c=new Function("to_moz","to_moz_block","to_moz_scope","return("+c+")")(u,p,f),t[e]=o,l(n,c)}t.UpdateExpression=t.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?bt:St)({start:r(e),end:i(e),operator:e.operator,expression:a(e.argument)})},t.ClassDeclaration=t.ClassExpression=function(e){return new("ClassDeclaration"===e.type?$t:Ut)({start:r(e),end:i(e),name:a(e.id),extends:a(e.superClass),properties:e.body.body.map(a)})},s("EmptyStatement",Ae),s("BlockStatement",ve,"body@body"),s("IfStatement",et,"test>condition, consequent>body, alternate>alternative"),s("LabeledStatement",Se,"label>label, body>body"),s("BreakStatement",Ye,"label>label"),s("ContinueStatement",Qe,"label>label"),s("WithStatement",Re,"object>expression, body>body"),s("SwitchStatement",tt,"discriminant>expression, cases@body"),s("ReturnStatement",ze,"argument>value"),s("ThrowStatement",Xe,"argument>value"),s("WhileStatement",Ne,"test>condition, body>body"),s("DoWhileStatement",De,"test>condition, body>body"),s("ForStatement",we,"init>init, test>condition, update>step, body>body"),s("ForInStatement",Oe,"left>init, right>object, body>body"),s("ForOfStatement",ke,"left>init, right>object, body>body, await=await"),s("AwaitExpression",Je,"argument>expression"),s("YieldExpression",Ze,"argument>expression, delegate=is_star"),s("DebuggerStatement",me),s("VariableDeclarator",pt,"id>name, init>value"),s("CatchClause",ot,"param>argname, body%body"),s("ThisExpression",un),s("Super",hn),s("BinaryExpression",Ct,"operator=operator, left>left, right>right"),s("LogicalExpression",Ct,"operator=operator, left>left, right>right"),s("AssignmentExpression",Dt,"operator=operator, left>left, right>right"),s("ConditionalExpression",xt,"test>condition, consequent>consequent, alternate>alternative"),s("NewExpression",_t,"callee>expression, arguments@args"),s("CallExpression",gt,"callee>expression, arguments@args"),l(Me,(function(e){return f("Program",e)})),l(Pe,(function(e){return{type:h()?"RestElement":"SpreadElement",argument:u(e.expression)}})),l(He,(function(e){return{type:"TaggedTemplateExpression",tag:u(e.prefix),quasi:u(e.template_string)}})),l(Ge,(function(e){for(var t=[],n=[],r=0;r<e.segments.length;r++)r%2!=0?n.push(u(e.segments[r])):t.push({type:"TemplateElement",value:{raw:e.segments[r].raw,cooked:e.segments[r].value},tail:r===e.segments.length-1});return{type:"TemplateLiteral",quasis:t,expressions:n}})),l(Ue,(function(e){return{type:"FunctionDeclaration",id:u(e.name),params:e.argnames.map(u),generator:e.is_generator,async:e.async,body:f("BlockStatement",e)}})),l(Be,(function(e,t){var n=void 0!==t.is_generator?t.is_generator:e.is_generator;return{type:"FunctionExpression",id:u(e.name),params:e.argnames.map(u),generator:n,async:e.async,body:f("BlockStatement",e)}})),l($e,(function(e){var t={type:"BlockStatement",body:e.body.map(u)};return{type:"ArrowFunctionExpression",params:e.argnames.map(u),async:e.async,body:t}})),l(Ve,(function(e){return e.is_array?{type:"ArrayPattern",elements:e.names.map(u)}:{type:"ObjectPattern",properties:e.names.map(u)}})),l(ge,(function(e){return{type:"ExpressionStatement",expression:{type:"Literal",value:e.value,raw:e.print_to_string()},directive:e.value}})),l(_e,(function(e){return{type:"ExpressionStatement",expression:u(e.body)}})),l(nt,(function(e){return{type:"SwitchCase",test:u(e.expression),consequent:e.body.map(u)}})),l(st,(function(e){return{type:"TryStatement",block:p(e),handler:u(e.bcatch),guardedHandlers:[],finalizer:u(e.bfinally)}})),l(ot,(function(e){return{type:"CatchClause",param:u(e.argname),guard:null,body:p(e)}})),l(lt,(function(e){return{type:"VariableDeclaration",kind:e instanceof ht?"const":e instanceof ut?"let":"var",declarations:e.definitions.map(u)}})),l(mt,(function(e){return e.exported_names?"*"===e.exported_names[0].name.name?{type:"ExportAllDeclaration",source:u(e.module_name)}:{type:"ExportNamedDeclaration",specifiers:e.exported_names.map((function(e){return{type:"ExportSpecifier",exported:u(e.foreign_name),local:u(e.name)}})),declaration:u(e.exported_definition),source:u(e.module_name)}:{type:e.is_default?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:u(e.exported_value||e.exported_definition)}})),l(ft,(function(e){var t=[];return e.imported_name&&t.push({type:"ImportDefaultSpecifier",local:u(e.imported_name)}),e.imported_names&&"*"===e.imported_names[0].foreign_name.name?t.push({type:"ImportNamespaceSpecifier",local:u(e.imported_names[0].name)}):e.imported_names&&e.imported_names.forEach((function(e){t.push({type:"ImportSpecifier",local:u(e.name),imported:u(e.foreign_name)})})),{type:"ImportDeclaration",specifiers:t,source:u(e.module_name)}})),l(Et,(function(e){return{type:"SequenceExpression",expressions:e.expressions.map(u)}})),l(yt,(function(e){var t=e instanceof vt;return{type:"MemberExpression",object:u(e.expression),computed:t,property:t?u(e.property):{type:"Identifier",name:e.property}}})),l(At,(function(e){return{type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof bt,argument:u(e.expression)}})),l(Ct,(function(e){return"="==e.operator&&h()?{type:"AssignmentPattern",left:u(e.left),right:u(e.right)}:{type:"&&"==e.operator||"||"==e.operator||"??"===e.operator?"LogicalExpression":"BinaryExpression",left:u(e.left),operator:e.operator,right:u(e.right)}})),l(wt,(function(e){return{type:"ArrayExpression",elements:e.elements.map(u)}})),l(Ot,(function(e){return{type:"ObjectExpression",properties:e.properties.map(u)}})),l(kt,(function(e,t){var n,r=e.key instanceof de?u(e.key):{type:"Identifier",value:e.key};"number"==typeof e.key&&(r={type:"Literal",value:Number(e.key)}),"string"==typeof e.key&&(r={type:"Identifier",name:e.key});var i="string"==typeof e.key||"number"==typeof e.key,s=!i&&(!(e.key instanceof Vt)||e.key instanceof on);return e instanceof Rt?(n="init",s=!i):e instanceof Mt?n="get":e instanceof It&&(n="set"),e instanceof Bt?{type:"FieldDefinition",computed:s,key:r,value:u(e.value),static:e.static}:t instanceof Ft?{type:"MethodDefinition",computed:s,kind:n,static:e.static,key:u(e.key),value:u(e.value)}:{type:"Property",computed:s,kind:n,key:r,value:u(e.value)}})),l(Lt,(function(e,t){return t instanceof Ot?{type:"Property",computed:!(e.key instanceof Vt)||e.key instanceof on,kind:"init",method:!0,shorthand:!1,key:u(e.key),value:u(e.value)}:{type:"MethodDefinition",computed:!(e.key instanceof Vt)||e.key instanceof on,kind:"constructor"===e.key?"constructor":"method",static:e.static,key:u(e.key),value:u(e.value)}})),l(Ft,(function(e){return{type:e instanceof Ut?"ClassExpression":"ClassDeclaration",superClass:u(e.extends),id:e.name?u(e.name):null,body:{type:"ClassBody",body:e.properties.map(u)}}})),l(Ht,(function(){return{type:"MetaProperty",meta:{type:"Identifier",name:"new"},property:{type:"Identifier",name:"target"}}})),l(Vt,(function(e,t){if(e instanceof Yt&&t.quote)return{type:"Literal",value:e.name};var n=e.definition();return{type:"Identifier",name:n?n.mangled_name||n.name:e.name}})),l(gn,(function(e){const t=e.value.source,n=e.value.flags;return{type:"Literal",value:null,raw:e.print_to_string(),regex:{pattern:t,flags:n}}})),l(pn,(function(e){var t=e.value;return"number"==typeof t&&(t<0||0===t&&1/t<0)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-t,raw:e.start.raw}}:{type:"Literal",value:t,raw:e.start.raw}})),l(_n,(function(e){return{type:"Identifier",name:String(e.value)}})),l(mn,e=>({type:"BigIntLiteral",value:e.value})),bn.DEFMETHOD("to_mozilla_ast",pn.prototype.to_mozilla_ast),En.DEFMETHOD("to_mozilla_ast",pn.prototype.to_mozilla_ast),vn.DEFMETHOD("to_mozilla_ast",(function(){return null})),Te.DEFMETHOD("to_mozilla_ast",ve.prototype.to_mozilla_ast),Le.DEFMETHOD("to_mozilla_ast",Be.prototype.to_mozilla_ast);var o=null;function a(e){o.push(e);var n=null!=e?t[e.type](e):null;return o.pop(),n}function l(e,t){e.DEFMETHOD("to_mozilla_ast",(function(e){return n=t(this,e),r=this.start,i=this.end,r&&i?(null!=r.pos&&null!=i.endpos&&(n.range=[r.pos,i.endpos]),r.line&&(n.loc={start:{line:r.line,column:r.col},end:i.endline?{line:i.endline,column:i.endcol}:null},r.file&&(n.loc.source=r.file)),n):n;var n,r,i}))}de.from_mozilla_ast=function(e){var t=o;o=[];var n=a(e);return o=t,n};var c=null;function u(e){null===c&&(c=[]),c.push(e);var t=null!=e?e.to_mozilla_ast(c[c.length-2]):null;return c.pop(),0===c.length&&(c=null),t}function h(){for(var e=c.length;e--;)if(c[e]instanceof Ve)return!0;return!1}function p(e){return{type:"BlockStatement",body:e.body.map(u)}}function f(e,t){var n=t.body.map(u);return t.body[0]instanceof _e&&t.body[0].body instanceof dn&&n.unshift(u(new Ae(t.body[0]))),{type:e,body:n}}}(),e.AST_Accessor=Fe,e.AST_Array=wt,e.AST_Arrow=$e,e.AST_Assign=Dt,e.AST_Atom=_n,e.AST_Await=Je,e.AST_Binary=Ct,e.AST_Block=Te,e.AST_BlockStatement=ve,e.AST_Boolean=bn,e.AST_Break=Ye,e.AST_Call=gt,e.AST_Case=it,e.AST_Catch=ot,e.AST_Class=Ft,e.AST_ClassExpression=Ut,e.AST_ConciseMethod=Lt,e.AST_Conditional=xt,e.AST_Const=ht,e.AST_Constant=pn,e.AST_Continue=Qe,e.AST_DWLoop=xe,e.AST_Debugger=me,e.AST_DefClass=$t,e.AST_Default=rt,e.AST_DefaultAssign=Nt,e.AST_Definitions=lt,e.AST_Defun=Ue,e.AST_Destructuring=Ve,e.AST_Directive=ge,e.AST_Do=De,e.AST_Dot=Tt,e.AST_EmptyStatement=Ae,e.AST_Exit=We,e.AST_Expansion=Pe,e.AST_Export=mt,e.AST_False=Sn,e.AST_Finally=at,e.AST_For=we,e.AST_ForIn=Oe,e.AST_ForOf=ke,e.AST_Function=Be,e.AST_Hole=vn,e.AST_If=et,e.AST_Import=ft,e.AST_Infinity=An,e.AST_IterationStatement=Ce,e.AST_Jump=Ke,e.AST_Label=sn,e.AST_LabelRef=cn,e.AST_LabeledStatement=Se,e.AST_Lambda=Le,e.AST_Let=ut,e.AST_LoopControl=qe,e.AST_NaN=yn,e.AST_NameMapping=dt,e.AST_New=_t,e.AST_NewTarget=Ht,e.AST_Node=de,e.AST_Null=En,e.AST_Number=fn,e.AST_Object=Ot,e.AST_ObjectGetter=Mt,e.AST_ObjectKeyVal=Rt,e.AST_ObjectProperty=kt,e.AST_ObjectSetter=It,e.AST_PrefixedTemplateString=He,e.AST_PropAccess=yt,e.AST_RegExp=gn,e.AST_Return=ze,e.AST_Scope=Ie,e.AST_Sequence=Et,e.AST_SimpleStatement=_e,e.AST_Statement=fe,e.AST_StatementWithBody=be,e.AST_String=dn,e.AST_Sub=vt,e.AST_Super=hn,e.AST_Switch=tt,e.AST_SwitchBranch=nt,e.AST_Symbol=Vt,e.AST_SymbolBlockDeclaration=Kt,e.AST_SymbolCatch=tn,e.AST_SymbolClass=en,e.AST_SymbolConst=Wt,e.AST_SymbolDeclaration=Gt,e.AST_SymbolDefClass=Zt,e.AST_SymbolDefun=qt,e.AST_SymbolExport=an,e.AST_SymbolExportForeign=ln,e.AST_SymbolFunarg=Xt,e.AST_SymbolImport=nn,e.AST_SymbolImportForeign=rn,e.AST_SymbolLambda=Jt,e.AST_SymbolLet=zt,e.AST_SymbolMethod=Yt,e.AST_SymbolRef=on,e.AST_SymbolVar=jt,e.AST_TemplateSegment=je,e.AST_TemplateString=Ge,e.AST_This=un,e.AST_Throw=Xe,e.AST_Token=pe,e.AST_Toplevel=Me,e.AST_True=Cn,e.AST_Try=st,e.AST_Unary=At,e.AST_UnaryPostfix=St,e.AST_UnaryPrefix=bt,e.AST_Undefined=Tn,e.AST_Var=ct,e.AST_VarDef=pt,e.AST_While=Ne,e.AST_With=Re,e.AST_Yield=Ze,e.Compressor=lr,e.OutputStream=Vn,e.TreeTransformer=On,e.TreeWalker=wn,e._INLINE=Rn,e._JS_Parse_Error=ee,e._NOINLINE=In,e._PURE=kn,e._has_annotation=S,e._tokenizer=ie,e.base54=Yn,e.default_options=Qn,e.defaults=o,e.mangle_properties=fi,e.minify=Ti,e.parse=ue,e.push_uniq=f,e.reserve_quoted_keys=pi,e.string_template=m,e.to_ascii=mi}(n,Fr)}));const $r=async(e,t)=>{if(t){const e=t.mangle;if(e){const t=e.properties;t&&t.regex&&(t.regex=new RegExp(t.regex))}}const n=Br.minify(e,t),r=Ur(e,n);if(0===r.length){const e=t.compress;e&&e.module&&n.code.endsWith("};")&&(n.code=n.code.substring(0,n.code.length-1))}return{output:n.code,sourceMap:n.map,diagnostics:r}},Ur=(e,t)=>{const n=[];if(!t||!t.error)return n;const r={level:"error",type:"build",language:"javascript",header:"Minify JS",code:"",messageText:t.error.message,absFilePath:null,relFilePath:null,lines:[]},i=t.error;if("number"==typeof i.line&&i.line>-1){const t=W(e),n={lineIndex:i.line-1,lineNumber:i.line,text:t[i.line-1],errorCharStart:i.col,errorLength:0};r.lineNumber=n.lineNumber,r.columnNumber=n.errorCharStart;const s=n.text.substr(r.columnNumber);for(let e=0;e<s.length&&!Vr.has(s.charAt(e));e++)n.errorLength++;if(r.lines.push(n),0===n.errorLength&&n.errorCharStart>0&&(n.errorLength=1,n.errorCharStart--),n.lineIndex>0){const e={lineIndex:n.lineIndex-1,lineNumber:n.lineNumber-1,text:t[n.lineIndex-1],errorCharStart:-1,errorLength:-1};r.lines.unshift(e)}if(n.lineIndex+1<t.length){const e={lineIndex:n.lineIndex+1,lineNumber:n.lineNumber+1,text:t[n.lineIndex+1],errorCharStart:-1,errorLength:-1};r.lines.push(e)}}return n.push(r),n},Vr=new Set([" ","=",".",",","?",":",";","(",")","{","}","[","]","|","'",'"',"`"]),Hr=async(e,t,n)=>{if(!n.minify&&"es5"!==n.sourceTarget||""===n.input)return{output:n.input,diagnostics:[]};const r="debug"===e.logLevel,i=await t.cache.createKey("optimizeModule","terser4.8.0_6",n,r),s=await t.cache.get(i);if(null!=s)return{output:s,diagnostics:[]};let o;if(n.minify){o=Gr(e,n.sourceTarget,r);const t=o.compress,i=o.mangle;"es5"!==n.sourceTarget&&n.isCore&&(r||(t.passes=2,t.global_defs={supportsListenerOptions:!0,"plt.$cssShim$":!1},t.pure_funcs=t.pure_funcs||[],t.pure_funcs=["getHostRef",...t.pure_funcs]),i.properties={regex:"^\\$.+\\$$",debug:r},t.inline=1,t.unsafe=!0,t.unsafe_undefined=!0)}const a="es5"===n.sourceTarget,l=await t.worker.prepareModule(e.typescriptPath,n.input,o,a,n.inlineHelpers);return null!=l&&"string"==typeof l.output&&0===l.diagnostics.length&&null!=t&&(n.isCore&&(l.output=l.output.replace(/disconnectedCallback\(\)\{\},/g,"")),await t.cache.put(i,l.output)),l},Gr=(e,t,n)=>{const r={ie8:!1,safari10:!!e.extras.safari10,output:{}};return"es5"===t?(r.ecma=r.output.ecma=5,r.compress=!1,r.mangle=!0):(r.mangle={properties:{regex:"^\\$.+\\$$"}},r.compress={pure_getters:!0,keep_fargs:!1,passes:2},r.ecma=r.output.ecma=r.compress.ecma=8,r.toplevel=!0,r.module=!0,r.mangle.toplevel=!0,r.compress.arrows=!0,r.compress.module=!0,r.compress.toplevel=!0),n&&(r.mangle={keep_fnames:!0},r.compress={},r.compress.drop_console=!1,r.compress.drop_debugger=!1,r.compress.pure_funcs=[],r.output.beautify=!0,r.output.indent_level=2,r.output.comments="all"),r},jr=(e,t)=>"sc-"+e+(t&&"$"!==t?"-"+t:""),Kr=e=>{const t=$e(e.dir,e.buildDir);return Fe("/",t)+"/"},Wr=(e,t)=>{const n=Array.from(e.querySelectorAll("link[rel=modulepreload]")).map(e=>e.getAttribute("href")),r=t.filter(e=>!n.includes(e)).map(t=>zr(e,t)),i=e.head,s=i.querySelector("script");if(s)for(const e of r)i.insertBefore(e,s);else for(const e of r)i.appendChild(e)},zr=(e,t)=>{const n=e.createElement("link");return n.setAttribute("rel","modulepreload"),n.setAttribute("href",t),n},Xr=async e=>{const t={output:e.input,diagnostics:[],sourceMap:null};try{const n=!!e.pretty,r={extras:{safari10:!0}},i="es5"===e.target?"es5":"latest",s=Gr(r,i,n),o=await $r(e.input,s);o.diagnostics.length>0?t.diagnostics.push(...o.diagnostics):(t.output=o.output,t.sourceMap=o.sourceMap)}catch(e){J(t.diagnostics,e)}return t},qr=async(e,t)=>{const n=Array.from(e.querySelectorAll("script")).filter(e=>{if(e.hasAttribute("src")||e.hasAttribute(ei))return!1;const t=e.getAttribute("type");return"string"!=typeof t||"module"===t||"text/javascript"===t});0!==n.length&&await Promise.all(n.map(async e=>{const n=e.innerHTML.trim();if(n.length>0){const r={input:n,sourceMap:!1,target:"latest"};"module"!==e.getAttribute("type")&&(r.target="es5");const i=await Xr(r);0===i.diagnostics.length&&(e.innerHTML=i.output),t&&e.setAttribute(ei,"")}}))},Yr=async(e,t)=>{const n=Array.from(e.querySelectorAll("style")).filter(e=>!e.hasAttribute(ei));0!==n.length&&await Promise.all(n.map(async e=>{const n=e.innerHTML.trim();if(n.length>0){const r=await $n({input:n,minify:!0});0===r.diagnostics.length&&(e.innerHTML=r.output),t&&e.setAttribute(ei,"")}}))},Qr="\n(function(){\nvar s=document.querySelector('[data-rindo-namespace=\"__NAMESPACE__\"]');\ns&&((s['data-opts']=s['data-opts']||{}).exclude=__EXCLUDE__);\n})();\n".replace(/\n/g,"").trim(),Jr=e=>{const t=e.querySelectorAll('link[rel="modulepreload"]');for(let e=t.length-1;e>=0;e--){const n=t[e].getAttribute("href");n&&n.includes("/p-")&&t[e].remove()}},Zr=e=>{const t=e.querySelectorAll("script[data-rindo]");for(let e=t.length-1;e>=0;e--)t[e].remove()},ei="data-m",ti=(e,t,n,r,i)=>{if(!Array.isArray(i)||0===i.length)return[];const s=n.pathname.split("/");return i.filter(n=>{if("function"==typeof e.filterAnchor)try{if(!1===e.filterAnchor(n,r))return!1}catch(e){return J(t,e),!1}return ni(t,n)}).map(n=>{if("function"==typeof e.normalizeUrl)try{const i=e.normalizeUrl(n.href,r);return ri(t,i.href,r)}catch(e){J(t,e)}return ri(t,n.href,r)}).filter(n=>{if("function"==typeof e.filterUrl)try{if(!1===e.filterUrl(n,r))return!1}catch(e){return J(t,e),!1}return ii(t,n,r,s)}).map(n=>si(e,t,n)).reduce((e,t)=>(e.includes(t)||e.push(t),e),[]).sort((e,t)=>{const n=e.split("/").length,r=t.split("/").length;return n<r?-1:n>r?1:e<t?-1:e>t?1:0})},ni=(e,t,n)=>{try{let e=t.href;if("string"==typeof t.download)return!1;if("string"==typeof e&&(e=e.trim(),""!==e&&!e.startsWith("#")&&!e.startsWith("?")))return"string"!=typeof t.target||"_self"===t.target.trim().toLowerCase()}catch(t){J(e,t)}return!1},ri=(e,t,n)=>{if("string"==typeof t)try{const e=new URL(t,n.href);e.protocol=n.href,e.hash="",e.search="";const r=e.pathname.split("/"),i=r[r.length-1];return"index.html"!==i&&"index.htm"!==i||(r.pop(),e.pathname=r.join("/")),e}catch(t){J(e,t)}return null},ii=(e,t,n,r)=>{try{if(null!=t.hostname&&null!=n.hostname&&t.hostname!==n.hostname)return!1;if(oi(t.pathname))return!1;const e=t.pathname.split("/");if(e.length<r.length)return!1;for(let t=0;t<r.length;t++){const n=r[t],i=e[t];if(r.length-1===t&&""===n)break;if(n!==i)return!1}return!0}catch(t){J(e,t)}return!1},si=(e,t,n)=>{try{if(null!=n&&"string"==typeof n.href){let t=n.href.trim();if(e.trailingSlash){if(!t.endsWith("/")){const e=n.pathname.split("/");e[e.length-1].includes(".")||(t+="/")}}else t.endsWith("/")&&"/"!==n.pathname&&(t=t.substr(0,t.length-1));return t}}catch(e){J(t,e)}return null},oi=e=>li.has(ai(e).toLowerCase()),ai=e=>{const t=e.split(".");return t[t.length-1].toLowerCase()},li=new Set(["zip","rar","tar","gz","bz2","png","jpeg","jpg","gif","pdf","tiff","psd"]),ci=(e,t,n)=>{const r=t.href,i={url:r,addModulePreloads:!0,approximateLineWidth:100,inlineExternalStyleSheets:!0,minifyScriptElements:!0,minifyStyleElements:!0,removeAttributeQuotes:!0,removeBooleanAttributeQuotes:!0,removeEmptyAttributes:!0,removeHtmlComments:!0};if(null===e.canonicalUrl||!1===e.canonicalUrl)i.canonicalUrl=null;else if("function"==typeof e.canonicalUrl)try{i.canonicalUrl=e.canonicalUrl(t)}catch(e){J(n,e)}else i.canonicalUrl=r;if("function"==typeof e.hydrateOptions)try{const n=e.hydrateOptions(t);null!=n&&(n.prettyHtml&&"boolean"!=typeof n.removeAttributeQuotes&&(i.removeAttributeQuotes=!1),Object.assign(i,n))}catch(e){J(n,e)}return i},ui=(e,t)=>{const n={};if("string"==typeof t&&i){const r=hi(e,t);r&&Object.assign(n,r)}return n},hi=(e,t)=>{let n={};try{const r=u("fs"),i=u("typescript");delete require.cache[Ue(t)],require.extensions[".ts"]=(n,s)=>{let o=r.readFileSync(s,"utf8");if(t.endsWith(".ts")){const t=i.transpileModule(o,{fileName:s,compilerOptions:{module:i.ModuleKind.CommonJS,moduleResolution:i.ModuleResolutionKind.NodeJs,esModuleInterop:!0,target:i.ScriptTarget.ES2017,allowJs:!0}});o=t.outputText,t.diagnostics.length>0&&e.push(...Ee(t.diagnostics))}else o=o.replace(/export\s+\w+\s+(\w+)/gm,"exports.$1");n._compile(o,s)};const s=u(t);null!=s&&"object"==typeof s&&(n=null!=s.config&&"object"==typeof s.config?s.config:s)}catch(t){J(e,t)}return require.extensions[".ts"]=void 0,n},pi={componentGraph:null,prerenderConfig:null,ensuredDirs:new Set,templateHtml:null},di=(e,t)=>{if(null!=t){if(null==pi.componentGraph){const n=JSON.parse(e.readFileSync(t));pi.componentGraph=new Map(Object.entries(n))}return pi.componentGraph}},fi=(e,t)=>{const n=[];for(;"string"==typeof(t=ae(e.platformPath.dirname(t)))&&t.length>0&&!H(t);)n.push(t);n.reverse();for(let t=0;t<n.length;t++){const r=n[t];pi.ensuredDirs.has(r)||(pi.ensuredDirs.add(r),e.mkdirSync(r))}};function mi(e){var t="";e=e<0?-e<<1|1:e<<1;do{var n=31&e;(e>>>=5)>0&&(n|=32),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[n]}while(e>0);return t}var gi=function e(t){this.bits=t instanceof e?t.bits.slice():[]};gi.prototype.add=function(e){this.bits[e>>5]|=1<<(31&e)},gi.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(31&e))};var _i=function(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};_i.prototype.appendLeft=function(e){this.outro+=e},_i.prototype.appendRight=function(e){this.intro=this.intro+e},_i.prototype.clone=function(){var e=new _i(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},_i.prototype.contains=function(e){return this.start<e&&e<this.end},_i.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},_i.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},_i.prototype.edit=function(e,t,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},_i.prototype.prependLeft=function(e){this.outro=e+this.outro},_i.prototype.prependRight=function(e){this.intro=e+this.intro},_i.prototype.split=function(e){var t=e-this.start,n=this.original.slice(0,t),r=this.original.slice(t);this.original=n;var i=new _i(e,this.end,r);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},_i.prototype.toString=function(){return this.intro+this.content+this.outro},_i.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},_i.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var Ei=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?Ei=function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"function"==typeof t&&(Ei=function(e){return t.from(e,"utf-8").toString("base64")});var yi=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=function(e){for(var t=0,n=0,r=0,i=0,s="",o=0;o<e.length;o++){var a=e[o];if(o>0&&(s+=";"),0!==a.length){for(var l=0,c=[],u=0,h=a;u<h.length;u++){var p=h[u],d=mi(p[0]-l);l=p[0],p.length>1&&(d+=mi(p[1]-t)+mi(p[2]-n)+mi(p[3]-r),t=p[1],n=p[2],r=p[3]),5===p.length&&(d+=mi(p[4]-i),i=p[4]),c.push(d)}s+=c.join(",")}}return s}(e.mappings)};function Ti(e){var t=e.split("\n"),n=t.filter((function(e){return/^\t+/.test(e)})),r=t.filter((function(e){return/^ {2,}/.test(e)}));if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";var i=r.reduce((function(e,t){var n=/^ +/.exec(t)[0].length;return Math.min(n,e)}),1/0);return new Array(i+1).join(" ")}function vi(e,t){var n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length)for(var i=n.length;i--;)n[i]="..";return n.concat(r).join("/")}yi.prototype.toString=function(){return JSON.stringify(this)},yi.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+Ei(this.toString())};var Ai=Object.prototype.toString;function bi(e){for(var t=e.split("\n"),n=[],r=0,i=0;r<t.length;r++)n.push(i),i+=t[r].length+1;return function(e){for(var t=0,r=n.length;t<r;){var i=t+r>>1;e<n[i]?r=i:t=i+1}var s=t-1;return{line:s,column:e-n[s]}}}var Si=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};Si.prototype.addEdit=function(e,t,n,r){if(t.length){var i=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},Si.prototype.addUneditedChunk=function(e,t,n,r,i){for(var s=t.start,o=!0;s<t.end;)(this.hires||o||i.has(s))&&this.rawSegments.push([this.generatedCodeColumn,e,r.line,r.column]),"\n"===n[s]?(r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(r.column+=1,this.generatedCodeColumn+=1,o=!1),s+=1;this.pending=null},Si.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var n=0;n<t.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var Ci="\n",xi={insertLeft:!1,insertRight:!1,storeName:!1},Di=function(e,t){void 0===t&&(t={});var n=new _i(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new gi},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:Ti(e)}}),this.byStart[0]=n,this.byEnd[e.length]=n};function Ni(e,t){if("string"!=typeof t)return;let n;for(;(n=t.indexOf(Oi))>-1;){const r=(t=t.substring(n+Oi.length)).indexOf(ki);if(-1===r)break;wi(e,t.substring(0,r)),t=t.substring(r+ki.length)}}function wi(e,t){const n=t.split(/\r?\n/).map(e=>{for(e=e.trim();e.startsWith("*");)e=e.substring(1).trim();return e});for(t=n.join(" ").replace(/\t/g," ").trim();t.includes(" ");)t=t.replace(" "," ");return t.split(Ri).forEach(t=>{const n=t.trim();if(!n.startsWith("--"))return;const r=n.split(":"),i={name:r[0].trim(),docs:(r.shift()&&r.join(":")).trim(),annotation:"prop"};e.some(e=>e.name===i.name&&"prop"===e.annotation)||e.push(i)}),e}Di.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)},Di.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},Di.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this},Di.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this},Di.prototype.clone=function(){for(var e=new Di(this.original,{filename:this.filename}),t=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[n.start]=n,e.byEnd[n.end]=n;var r=t.next,i=r&&r.clone();i&&(n.next=i,i.previous=n,n=i),t=r}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new gi(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e},Di.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var n=Object.keys(this.storedNames),r=new Si(e.hires),i=bi(this.original);return this.intro&&r.advance(this.intro),this.firstChunk.eachNext((function(e){var s=i(e.start);e.intro.length&&r.advance(e.intro),e.edited?r.addEdit(0,e.content,s,e.storeName?n.indexOf(e.original):-1):r.addUneditedChunk(0,e,t.original,s,t.sourcemapLocations),e.outro.length&&r.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?vi(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:n,mappings:r.raw}},Di.prototype.generateMap=function(e){return new yi(this.generateDecodedMap(e))},Di.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},Di.prototype.indent=function(e,t){var n,r=/^[^\r\n]/gm;if(n=e,"[object Object]"===Ai.call(n)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var i={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((function(e){for(var t=e[0];t<e[1];t+=1)i[t]=!0}));var s=!1!==t.indentStart,o=function(t){return s?""+e+t:(s=!0,t)};this.intro=this.intro.replace(r,o);for(var a=0,l=this.firstChunk;l;){var c=l.end;if(l.edited)i[a]||(l.content=l.content.replace(r,o),l.content.length&&(s="\n"===l.content[l.content.length-1]));else for(a=l.start;a<c;){if(!i[a]){var u=this.original[a];"\n"===u?s=!0:"\r"!==u&&s&&(s=!1,a===l.start?l.prependRight(e):(this._splitChunk(l,a),(l=l.next).prependRight(e)))}a+=1}a=l.end,l=l.next}return this.outro=this.outro.replace(r,o),this},Di.prototype.insert=function(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},Di.prototype.insertLeft=function(e,t){return xi.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),xi.insertLeft=!0),this.appendLeft(e,t)},Di.prototype.insertRight=function(e,t){return xi.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),xi.insertRight=!0),this.prependRight(e,t)},Di.prototype.move=function(e,t,n){if(n>=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);var r=this.byStart[e],i=this.byEnd[t],s=r.previous,o=i.next,a=this.byStart[n];if(!a&&i===this.lastChunk)return this;var l=a?a.previous:this.lastChunk;return s&&(s.next=o),o&&(o.previous=s),l&&(l.next=r),a&&(a.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=l,i.next=a||null,l||(this.firstChunk=r),a||(this.lastChunk=i),this},Di.prototype.overwrite=function(e,t,n,r){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===r&&(xi.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),xi.storeName=!0),r={storeName:!0});var i=void 0!==r&&r.storeName,s=void 0!==r&&r.contentOnly;if(i){var o=this.original.slice(e,t);this.storedNames[o]=!0}var a=this.byStart[e],l=this.byEnd[t];if(a){if(t>a.end&&a.next!==this.byStart[a.end])throw new Error("Cannot overwrite across a split point");if(a.edit(n,i,s),a!==l){for(var c=a.next;c!==l;)c.edit("",!1),c=c.next;c.edit("",!1)}}else{var u=new _i(e,t,"").edit(n,i);l.next=u,u.previous=l}return this},Di.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},Di.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this},Di.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this},Di.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var n=this.byStart[e];n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this},Di.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},Di.prototype.lastLine=function(){var e=this.outro.lastIndexOf(Ci);if(-1!==e)return this.outro.substr(e+1);var t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(-1!==(e=n.outro.lastIndexOf(Ci)))return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(-1!==(e=n.content.lastIndexOf(Ci)))return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(-1!==(e=n.intro.lastIndexOf(Ci)))return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return-1!==(e=this.intro.lastIndexOf(Ci))?this.intro.substr(e+1)+t:this.intro+t},Di.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var n="",r=this.firstChunk;r&&(r.start>e||r.end<=e);){if(r.start<t&&r.end>=t)return n;r=r.next}if(r&&r.edited&&r.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=r;r;){!r.intro||i===r&&r.start!==e||(n+=r.intro);var s=r.start<t&&r.end>=t;if(s&&r.edited&&r.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===r?e-r.start:0,a=s?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(o,a),!r.outro||s&&r.end!==t||(n+=r.outro),s)break;r=r.next}return n},Di.prototype.snip=function(e,t){var n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n},Di.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,n=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=n?this.byStart[t.end]:this.byEnd[t.start]}},Di.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var n=bi(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+e.original+'")')}var r=e.split(t);return this.byEnd[t]=e,this.byStart[t]=r,this.byEnd[r.end]=r,e===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=e,!0},Di.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},Di.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},Di.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},Di.prototype.trimLines=function(){return this.trim("[\\r\\n]")},Di.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},Di.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var n=this.lastChunk;do{var r=n.end,i=n.trimEnd(t);if(n.end!==r&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1},Di.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},Di.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var n=this.firstChunk;do{var r=n.end,i=n.trimStart(t);if(n.end!==r&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1},Di.prototype.trimStart=function(e){return this.trimStartAborted(e),this};const Oi="/**",ki="*/",Ri="@prop",Ii=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Mi=new RegExp("(-shadowcsshost"+Ii,"gim"),Pi=new RegExp("(-shadowcsscontext"+Ii,"gim"),Li=new RegExp("(-shadowcssslotted"+Ii,"gim"),Fi=/-shadowcsshost-no-combinator([^\s]*)/,Bi=[/::shadow/g,/::content/g],$i=/-shadowcsshost/gim,Ui=/:host/gim,Vi=/::slotted/gim,Hi=/:host-context/gim,Gi=/\/\*\s*[\s\S]*?\*\//g,ji=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,Ki=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Wi=/([{}])/g,zi=(e,t)=>{const n=Xi(e);let r=0;return n.escapedString.replace(Ki,(...e)=>{const i=e[2];let s="",o=e[4],a="";o&&o.startsWith("{%BLOCK%")&&(s=n.blocks[r++],o=o.substring("%BLOCK%".length+1),a="{");const l=t({selector:i,content:s});return`${e[1]}${l.selector}${e[3]}${a}${l.content}${o}`})},Xi=e=>{const t=e.split(Wi),n=[],r=[];let i=0,s=[];for(let e=0;e<t.length;e++){const o=t[e];"}"===o&&i--,i>0?s.push(o):(s.length>0&&(r.push(s.join("")),n.push("%BLOCK%"),s=[]),n.push(o)),"{"===o&&i++}return s.length>0&&(r.push(s.join("")),n.push("%BLOCK%")),{escapedString:n.join(""),blocks:r}},qi=(e,t,n)=>e.replace(t,(...e)=>{if(e[2]){const t=e[2].split(","),r=[];for(let i=0;i<t.length;i++){const s=t[i].trim();if(!s)break;r.push(n("-shadowcsshost-no-combinator",s,e[3]))}return r.join(",")}return"-shadowcsshost-no-combinator"+e[3]}),Yi=(e,t,n)=>e+t.replace("-shadowcsshost","")+n,Qi=(e,t,n)=>t.indexOf("-shadowcsshost")>-1?Yi(e,t,n):e+t+n+", "+t+" "+e+n,Ji=(e,t,n,r,i)=>zi(e,e=>{let i=e.selector,s=e.content;return"@"!==e.selector[0]?i=((e,t,n,r)=>e.split(",").map(e=>r&&e.indexOf("."+r)>-1?e.trim():((e,t)=>!(e=>(e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(t).test(e))(e,t)?((e,t,n)=>{const r="."+(t=t.replace(/\[is=([^\]]*)\]/g,(e,...t)=>t[0])),i=e=>{let i=e.trim();if(!i)return"";if(e.indexOf("-shadowcsshost-no-combinator")>-1)i=((e,t,n)=>{if($i.lastIndex=0,$i.test(e)){const t="."+n;return e.replace(Fi,(e,n)=>n.replace(/([^:]*)(:*)(.*)/,(e,n,r,i)=>n+t+r+i)).replace($i,t+" ")}return t+" "+e})(e,t,n);else{const t=e.replace($i,"");if(t.length>0){const e=t.match(/([^:]*)(:*)(.*)/);e&&(i=e[1]+r+e[2]+e[3])}}return i},s=(e=>{const t=[];let n,r=0;return n=(e=e.replace(/(\[[^\]]*\])/g,(e,n)=>{const i=`__ph-${r}__`;return t.push(n),r++,i})).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(e,n,i)=>{const s=`__ph-${r}__`;return t.push(i),r++,n+s}),{content:n,placeholders:t}})(e);let o,a="",l=0;const c=/( |>|\+|~(?!=))\s*/g;let u=!((e=s.content).indexOf("-shadowcsshost-no-combinator")>-1);for(;null!==(o=c.exec(e));){const t=o[1],n=e.slice(l,o.index).trim();u=u||n.indexOf("-shadowcsshost-no-combinator")>-1,a+=`${u?i(n):n} ${t} `,l=c.lastIndex}const h=e.substring(l);return u=u||h.indexOf("-shadowcsshost-no-combinator")>-1,a+=u?i(h):h,p=s.placeholders,a.replace(/__ph-(\d+)__/g,(e,t)=>p[+t]);var p})(e,t,n).trim():e.trim()).join(", "))(e.selector,t,n,r):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(s=Ji(e.content,t,n,r)),{selector:i.replace(/\s{2,}/g," ").trim(),content:s}}),Zi=(e,t,n)=>{const r=t+"-h",i=t+"-s",s=e.match(ji)||[];e=(e=>e.replace(Gi,""))(e);const o=[];if(n){const t=e=>{const t=`/*!@___${o.length}___*/`,n=`/*!@${e.selector}*/`;return o.push({placeholder:t,comment:n}),e.selector=t+e.selector,e};e=zi(e,e=>"@"!==e.selector[0]?t(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=zi(e.content,t),e):e)}const a=((e,t,n,r,i)=>{const s=((e,t)=>{const n="."+t+" > ",r=[];return e=e.replace(Li,(...e)=>{if(e[2]){const t=e[2].trim(),i=e[3],s=n+t+i;let o="";for(let t=e[4]-1;t>=0;t--){const n=e[5][t];if("}"===n||","===n)break;o=n+o}const a=o+s,l=`${o.trimRight()}${s.trim()}`;if(a.trim()!==l.trim()){const e=`${l}, ${a}`;r.push({orgSelector:a,updatedSelector:e})}return s}return"-shadowcsshost-no-combinator"+e[3]}),{selectors:r,cssText:e}})(e=(e=>qi(e,Pi,Qi))(e=(e=>qi(e,Mi,Yi))(e=e.replace(Hi,"-shadowcsscontext").replace(Ui,"-shadowcsshost").replace(Vi,"-shadowcssslotted"))),r);return e=(e=>Bi.reduce((e,t)=>e.replace(t," "),e))(e=s.cssText),t&&(e=Ji(e,t,n,r)),{cssText:(e=(e=e.replace(/-shadowcsshost-no-combinator/g,"."+n)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:s.selectors}})(e,t,r,i);return e=[a.cssText,...s].join("\n"),n&&o.forEach(({placeholder:t,comment:n})=>{e=e.replace(t,n)}),a.slottedSelectors.forEach(t=>{e=e.replace(t.orgSelector,t.updatedSelector)}),e},es=(e,t)=>{let n=e.importeePath;if(B(n)&&(B(e.importerPath)&&Le(e.importeePath)&&(n=$e(Me(e.importerPath),e.importeePath)),n=ae(n),n.startsWith(".")||(n="./"+n),"queryparams"===t||void 0===t)){const t={};B(e.tag)&&(t.tag=e.tag),B(e.mode)&&"$"!==e.mode&&(t.mode=e.mode),B(e.encapsulation)&&"none"!==e.encapsulation&&(t.encapsulation=e.encapsulation);const r=Object.entries(t);r.length>0&&(n+="?"+new URLSearchParams(r).toString())}return n},ts=e=>{const t={importPath:e,basename:null,ext:null,data:null};if(B(e)){const n=e.split("?");t.basename=Ie(n[0].trim());const r=t.basename.toLowerCase().split(".");if(r.length>1&&(t.ext=r[r.length-1],"ts"===t.ext&&"d"===r[r.length-2]&&(t.ext="d.ts")),n.length>1){const e=n[1],r=new URLSearchParams(e),i=r.get("tag");null!=i&&(t.data={tag:i,encapsulation:r.get("encapsulation")||"none",mode:r.get("mode")||"$"})}else t.basename.endsWith(".css")&&(t.data={encapsulation:"none"})}return t},ns=e=>{let t=null,n="",r="";for(let i=0;i<e.length;i++)if(n=e[i],"\\"!==e[i-1]&&('"'!==n&&"'"!==n||(t===n?t=null:t||(t=n))),t||"/"!==n||"*"!==e[i+1])r+=n;else{let t=i+2;for(;t<e.length&&("*"!==e[t]||"/"!==e[t+1]);t++);i=t+1}return r},rs=async e=>{const t=is(e),n=await $n({autoprefixer:e.autoprefixer,input:t.styleText,filePath:e.file,minify:!0,sourceMap:e.sourceMap});return t.diagnostics.push(...n.diagnostics),Z(n.diagnostics)?t:(t.styleText=n.output,ss(e,t))},is=e=>{const t={styleText:e.input,output:"",map:null,diagnostics:[],imports:[],defaultVarName:us(e.file,e.mode),styleDocs:[]};e.docs&&Ni(t.styleDocs,e.input);try{const n=new Set([t.defaultVarName]);if(B(e.tag)&&("scoped"===e.encapsulation||"shadow"===e.encapsulation&&e.commentOriginalSelector)){const n=jr(e.tag,e.mode);t.styleText=Zi(t.styleText,n,e.commentOriginalSelector)}os(n,t.styleText,e.file,e.mode).forEach(n=>{t.styleText=t.styleText.replace(n.srcImportText,"");const r=es({importeePath:n.filePath,importerPath:e.file,tag:e.tag,encapsulation:e.encapsulation,mode:e.mode},e.styleImportData);t.imports.push({varName:n.varName,importPath:r})})}catch(e){J(t.diagnostics,e)}return t},ss=(e,t)=>{const n=new Di("");return"cjs"===e.module?(t.imports.forEach(e=>{n.append(`const ${e.varName} = require('${e.importPath}');\n`)}),n.append(`const ${t.defaultVarName} = `),t.imports.forEach(e=>{n.append(e.varName+" + ")}),n.append(JSON.stringify(t.styleText)+";\n"),n.append(`module.exports = ${t.defaultVarName};`)):(t.imports.forEach(e=>{n.append(`import ${e.varName} from '${e.importPath}';\n`)}),n.append(`const ${t.defaultVarName} = `),t.imports.forEach(e=>{n.append(e.varName+" + ")}),n.append(JSON.stringify(t.styleText)+";\n"),n.append(`export default ${t.defaultVarName};`)),t.output=n.toString(),t},os=(e,t,n,r)=>{const i=[];if(!t.includes("@import"))return i;t=ns(t);const s=Ge.dirname(n);let o;for(;o=as.exec(t);){const t={srcImportText:o[0],url:o[4].replace(/[\"\'\)]/g,""),filePath:null,varName:null};cs(t.srcImportText)&&(ls(t.url)||(Ge.isAbsolute(t.url)?t.filePath=ae(t.url):t.filePath=ae(Ge.resolve(s,t.url)),t.varName=us(t.filePath,r),e.has(t.varName)&&(t.varName+=e.size),e.add(t.varName),i.push(t)))}return i},as=/(@import)\s+(url\()?\s?(.*?)\s?\)?([^;]*);?/gi,ls=e=>e.startsWith("~"),cs=e=>!(e=e.toLowerCase()).includes("url(")||!(e=(e=(e=e.replace(/\"/g,"")).replace(/\'/g,"")).replace(/\s/g,"")).includes("url(http")&&!e.includes("url(//"),us=(e,t)=>{let n=Ge.basename(e);return t&&"$"!==t&&!n.includes(t)&&(n=t+"-"+n),Ae(n)},hs=e=>({transformCssToEsm:rs,prepareModule:(t,n,r,i,s)=>(async(e,t,n,r,i,s)=>{const o={output:n,diagnostics:[]};if(i){const r=await rr(e,t,!1),i=r.transpileModule(n,{fileName:"module.ts",compilerOptions:{sourceMap:!1,allowJs:!0,target:r.ScriptTarget.ES5,module:r.ModuleKind.ESNext,removeComments:!1,isolatedModules:!0,skipLibCheck:!0,noEmitHelpers:!s,importHelpers:!s},reportDiagnostics:!1});o.output=i.outputText}return r?$r(o.output,r):o})(e,t,n,r,i,s),optimizeCss:$n,prerenderWorker:t=>(async(e,t)=>{const n={id:t.id,diagnostics:[],anchorUrls:[],filePath:t.writeToFilePath};try{const r=new URL(t.url,t.devServerHostUrl),i=di(e,t.componentGraphPath),s=u(t.hydrateAppFilePath);null==pi.templateHtml&&(pi.templateHtml=e.readFileSync(t.templateId));const o=s.createWindowFromHtml(pi.templateHtml,t.templateId),a=o.document;P(e.applyPrerenderGlobalPatch)&&e.applyPrerenderGlobalPatch({devServerHostUrl:t.devServerHostUrl,window:o}),null==pi.prerenderConfig&&(pi.prerenderConfig=ui(n.diagnostics,t.prerenderConfigPath));const l=pi.prerenderConfig,c=ci(l,r,n.diagnostics);if((t.staticSite||c.staticDocument)&&(c.addModulePreloads=!1,c.clientHydrateAnnotations=!1),"function"==typeof l.beforeHydrate)try{const e=l.beforeHydrate(a,r);U(e)&&await e}catch(e){J(n.diagnostics,e)}const h=await s.hydrateDocument(a,c);n.diagnostics.push(...h.diagnostics),c.staticDocument?(Zr(a),Jr(a)):(Array.isArray(c.staticComponents)&&((e,t,n)=>{const r=t.staticComponents.filter(e=>n.components.some(t=>t.tag===e));if(r.length>0){const t=e.querySelector("script[data-rindo-namespace]");if(t){const n=t.getAttribute("data-rindo-namespace");let i=Qr.replace("__NAMESPACE__",n);i=i.replace("__EXCLUDE__",JSON.stringify(r));const s=e.createElement("script");s.innerHTML=i,s.setAttribute(ei,""),t.parentNode.insertBefore(s,t.nextSibling)}}})(a,c,h),c.addModulePreloads?t.isDebug||((e,t,n,r)=>{if(!r)return!1;const i=t.staticComponents||[],s=n.components.filter(e=>!i.includes(e.tag)),o=R(k(s.map(e=>jr(e.tag,e.mode)).map(e=>r.get(e)||[])));Wr(e,o)})(a,c,h,i):Jr(a));const p=[];if(c.minifyStyleElements&&!t.isDebug&&p.push(Yr(a,!1)),c.minifyScriptElements&&!t.isDebug&&p.push(qr(a,!1)),p.length>0&&await Promise.all(p),"function"==typeof l.filePath)try{const e=l.filePath(r,n.filePath);"string"==typeof e&&(n.filePath=e)}catch(e){J(n.diagnostics,e)}if(!1!==l.crawlUrls){const e=new URL(t.baseUrl);n.anchorUrls=ti(l,n.diagnostics,e,r,h.anchors)}if("function"==typeof l.afterHydrate)try{const e=l.afterHydrate(a,r,n);U(e)&&await e}catch(e){J(n.diagnostics,e)}if("number"==typeof h.httpStatus&&h.httpStatus>=400){try{o.close()}catch(e){}return n}const d=s.serializeDocumentToString(a,c);fi(e,n.filePath),await e.writeFile(n.filePath,d);try{o.close()}catch(e){}}catch(e){J(n.diagnostics,e)}return n})(e,t)}),ps=e=>{const t=hs(e);return e=>{const n=e.args[0],r=e.args.slice(1),i=t[n];if("function"==typeof i)return i.apply(null,r)}},ds="@rindo/core/internal/app-globals",fs=(e,t)=>{B(t.file)||(t.file="module.tsx");const n=ts(t.file),r={code:"string"==typeof e?e:"",data:[],diagnostics:[],inputFileExtension:n.ext,inputFilePath:t.file,imports:[],map:null,outputFilePath:null};return{importData:n.data,results:r}},ms={sys:null},gs=e=>{e.sys?ms.sys=e.sys:ms.sys||(ms.sys=i?u("../sys/node/index.js").createNodeSysNoWatch():fn());const t={componentExport:Es(e.componentExport,ys,"customelement"),componentMetadata:Es(e.componentMetadata,Ts,null),coreImportPath:B(e.coreImportPath)?e.coreImportPath:"@rindo/core/internal/client",currentDirectory:B(e.currentDirectory)?e.currentDirectory:ms.sys.getCurrentDirectory(),file:e.file,proxy:Es(e.proxy,As,"defineproperty"),module:Es(e.module,vs,"esm"),sourceMap:"inline"===e.sourceMap?"inline":!1!==e.sourceMap,style:Es(e.style,bs,"static"),styleImportData:Es(e.styleImportData,Ss,"queryparams"),target:Es(e.target||e.script,Cs,"latest")},n={allowSyntheticDefaultImports:!0,esModuleInterop:!0,sourceMap:!1!==t.sourceMap,isolatedModules:!0,suppressOutputPathCheck:!0,allowNonTsExtensions:!0,noLib:!0,noResolve:!0};B(e.baseUrl)&&(t.baseUrl=e.baseUrl,n.baseUrl=t.baseUrl),e.paths&&(t.paths=Object.assign({},e.paths),n.paths=Object.assign({},t.paths));const r={coreImportPath:t.coreImportPath,componentExport:t.componentExport,componentMetadata:t.componentMetadata,currentDirectory:t.currentDirectory,isolatedModules:!0,module:t.module,proxy:t.proxy,file:t.file,style:t.style,styleImportData:t.styleImportData,target:t.target};return{compileOpts:t,config:{rootDir:t.currentDirectory,srcDir:t.currentDirectory,devMode:!0,minifyCss:!0,minifyJs:!1,_isTesting:!0,validateTypes:!1,enableCache:!1,sys:ms.sys,tsCompilerOptions:n},transformOpts:r}},_s=(e,t,n)=>({file:n.inputFilePath,input:n.code,tag:t&&t.tag,encapsulation:t&&t.encapsulation,mode:t&&t.mode,sourceMap:!1!==e.sourceMap,commentOriginalSelector:!1,minify:!1,autoprefixer:!1,module:e.module,styleImportData:e.styleImportData}),Es=(e,t,n)=>null===e||"null"===e?null:(e=B(e)?e.toLowerCase().trim():null,t.has(e)?e:n),ys=new Set(["customelement","module"]),Ts=new Set(["compilerstatic",null]),vs=new Set(["cjs","esm"]),As=new Set(["defineproperty",null]),bs=new Set(["static"]),Ss=new Set(["queryparams"]),Cs=new Set(["latest","esnext","es2020","es2019","es2018","es2017","es2016","es2015","es5"]),xs=new Set(["Component"]),Ds=new Set(["Element","Event","Listen","Method","Prop","PropDidChange","PropWillChange","State","Watch"]),Ns=e=>!(!e.modifiers||!e.modifiers.some(e=>e.kind===Xn.SyntaxKind.PrivateKeyword||e.kind===Xn.SyntaxKind.ProtectedKeyword)),ws=(e,t=null)=>(null==t&&(t=new WeakSet),e===String?Xn.createIdentifier("String"):e===Number?Xn.createIdentifier("Number"):e===Boolean?Xn.createIdentifier("Boolean"):void 0===e?Xn.createIdentifier("undefined"):null===e?Xn.createIdentifier("null"):Array.isArray(e)?Os(e,t):"object"==typeof e?e.__identifier&&e.__escapedText?Xn.createIdentifier(e.__escapedText):ks(e,t):Xn.createLiteral(e)),Os=(e,t)=>{const n=e.map(e=>ws(e,t));return Xn.createArrayLiteral(n)},ks=(e,t)=>{if(t.has(e))return Xn.createIdentifier("undefined");t.add(e);const n=Object.keys(e).map(n=>Xn.createPropertyAssignment(Xn.createLiteral(n),ws(e[n],t)));return Xn.createObjectLiteral(n,!0)},Rs=(e,t)=>Xn.createGetAccessor(void 0,[Xn.createToken(Xn.SyntaxKind.StaticKeyword)],e,void 0,void 0,Xn.createBlock([Xn.createReturn(t)])),Is=(e,t)=>{const n=e.find(e=>e.name.escapedText===t);if(!n||!n.body||!n.body.statements)return null;const r=n.body.statements.find(e=>e.kind===Xn.SyntaxKind.ReturnStatement);if(!r||!r.expression)return null;const i=r.expression.kind;if(i===Xn.SyntaxKind.StringLiteral)return r.expression.text;if(i===Xn.SyntaxKind.NoSubstitutionTemplateLiteral)return r.expression.text;if(i===Xn.SyntaxKind.TrueKeyword)return!0;if(i===Xn.SyntaxKind.FalseKeyword)return!1;if(i===Xn.SyntaxKind.ObjectLiteralExpression)return Ps(r.expression);if(i===Xn.SyntaxKind.ArrayLiteralExpression&&r.expression.elements)return Ms(r.expression);if(i===Xn.SyntaxKind.Identifier){const e=r.expression;if("string"==typeof e.escapedText)return Ls(e.escapedText);if(e.escapedText){const t={};return Object.keys(e.escapedText).forEach(n=>{t[n]=Ls(e.escapedText[n])}),t}}return null},Ms=e=>e.elements.map(e=>{let t;switch(e.kind){case Xn.SyntaxKind.ObjectLiteralExpression:t=Ps(e);break;case Xn.SyntaxKind.StringLiteral:t=e.text;break;case Xn.SyntaxKind.TrueKeyword:t=!0;break;case Xn.SyntaxKind.FalseKeyword:t=!1;break;case Xn.SyntaxKind.Identifier:const n=e.escapedText;"String"===n?t=String:"Number"===n?t=Number:"Boolean"===n&&(t=Boolean);break;case Xn.SyntaxKind.PropertyAccessExpression:default:t=e}return t}),Ps=e=>e.properties.reduce((e,t)=>{const n=Fs(t.name);let r;switch(t.initializer.kind){case Xn.SyntaxKind.ArrayLiteralExpression:r=Ms(t.initializer);break;case Xn.SyntaxKind.ObjectLiteralExpression:r=Ps(t.initializer);break;case Xn.SyntaxKind.StringLiteral:case Xn.SyntaxKind.NoSubstitutionTemplateLiteral:r=t.initializer.text;break;case Xn.SyntaxKind.TrueKeyword:r=!0;break;case Xn.SyntaxKind.FalseKeyword:r=!1;break;case Xn.SyntaxKind.Identifier:const e=t.initializer.escapedText;r="String"===e?String:"Number"===e?Number:"Boolean"===e?Boolean:"undefined"===e?void 0:"null"===e?null:Ls(t.initializer.escapedText);break;case Xn.SyntaxKind.PropertyAccessExpression:default:r=t.initializer}return e[n]=r,e},{}),Ls=e=>({__identifier:!0,__escapedText:e}),Fs=e=>{switch(e.kind){case Xn.SyntaxKind.Identifier:return e.text;case Xn.SyntaxKind.StringLiteral:case Xn.SyntaxKind.NumericLiteral:return e.text;case Xn.SyntaxKind.ComputedPropertyName:const t=e.expression;if(Xn.isStringLiteral(t)||Xn.isNumericLiteral(t))return e.expression.text}},Bs=(e,t)=>{const n={};return Us(e).forEach(e=>{n[e]=Hs(e,t)}),n},$s=e=>Xn.isIdentifier(e)?e.escapedText.toString():$s(e.left),Us=e=>{const t=[],n=e=>(Xn.isTypeReferenceNode(e)&&(t.push($s(e.typeName)),e.typeArguments&&e.typeArguments.filter(e=>Xn.isTypeReferenceNode(e)).forEach(e=>{const n=e.typeName;n&&n.escapedText&&t.push(n.escapedText.toString())})),Xn.forEachChild(e,n));return n(e),t},Vs=(e,t,n)=>{Object.keys(t).forEach(r=>{if("@rindo/core"===t[r].path&&Ds.has(r)){const t=q(e);_e(t,n)}})},Hs=(e,t)=>{const n=t.getSourceFile(),r=n.statements.find(t=>!!(Xn.isImportDeclaration(t)&&t.importClause&&Xn.isImportClause(t.importClause)&&t.importClause.namedBindings&&Xn.isNamedImports(t.importClause.namedBindings)&&Array.isArray(t.importClause.namedBindings.elements)&&t.importClause.namedBindings.elements.find(t=>t.name.getText()===e)));return r?{location:"import",path:r.moduleSpecifier.text}:n.statements.some(t=>{const n=Xn.isInterfaceDeclaration(t)&&t.name.getText()===e&&Array.isArray(t.modifiers)&&t.modifiers.some(e=>e.kind===Xn.SyntaxKind.ExportKeyword),r=Xn.isTypeAliasDeclaration(t)&&t.name.getText()===e&&Array.isArray(t.modifiers)&&t.modifiers.some(e=>e.kind===Xn.SyntaxKind.ExportKeyword),i=Xn.isExportDeclaration(t)&&Xn.isNamedExports(t.exportClause)&&t.exportClause.elements.some(t=>t.name.getText()===e);return n||r||i})?{location:"local"}:{location:"global"}},Gs=(e,t)=>{const n=new Set;Ks(e,t,n);const r=n.delete("true"),i=n.delete("false");(r||i)&&n.add("boolean");let s=Array.from(n.keys()).sort();return s.length>1&&(s=s.map(e=>e.indexOf("=>")>=0?`(${e})`:e)),s.length>20?js(e,t):s.join(" | ")},js=(e,t)=>{const n=Xn.TypeFormatFlags.NoTruncation|Xn.TypeFormatFlags.InTypeAlias|Xn.TypeFormatFlags.InElementType;return e.typeToString(t,void 0,n)},Ks=(e,t,n)=>{if(t.isUnion())t.types.forEach(t=>{Ks(e,t,n)});else{const r=js(e,t);n.add(r)}},Ws=(e,t)=>{const n=ae(t.fileName),r=e.moduleMap.get(n);return null!=r?r:Array.from(e.moduleMap.values()).find(e=>e.jsFilePath===n)},zs=(e,t,n)=>{const r=e.nodeMap.get(n);if(r)return r;const i=Ws(e,t);if(null!=i&&null!=n.members){const e=n.members.filter(qs),t=Xs(e);if("string"==typeof t)return i.cmps.find(e=>e.tagName===t)}},Xs=e=>{if(e.length>0){const t=Is(e,"is");if("string"==typeof t&&t.includes("-"))return t}return null},qs=e=>e.kind===Xn.SyntaxKind.GetAccessor&&e.modifiers&&e.modifiers.some(({kind:e})=>e===Xn.SyntaxKind.StaticKeyword),Ys=(e,t)=>e&&t?{tags:t.getJsDocTags().map(e=>({text:e.text,name:e.name})),text:Xn.displayPartsToString(t.getDocumentationComment(e))}:{tags:[],text:""},Qs=e=>e&&e.tags.some(e=>"internal"===e.name),Js=(e,t)=>Xn.isMethodDeclaration(e)&&e.name&&e.name.escapedText===t,Zs=e=>{const t=Object.assign({},e);return delete t.assetsDirs,delete t.dependencies,delete t.excludeFromCollection,delete t.isCollectionDependency,delete t.docs,delete t.jsFilePath,delete t.potentialCmpRefs,delete t.styleDocs,delete t.sourceFilePath,t};var eo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function to(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}const no={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},ro={...no,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};var io={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Ge.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?ro:no},so=to((function(e,t){const r="win32"===n.platform,{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:a}=io;t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>o.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(a,"\\$1"),t.toPosixSlashes=e=>e.replace(i,"/"),t.removeBackslashes=e=>e.replace(s,e=>"\\"===e?"":e),t.supportsLookbehinds=()=>{const e=n.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===r||"\\"===Ge.sep,t.escapeLast=(e,n,r)=>{const i=e.lastIndexOf(n,r);return-1===i?e:"\\"===e[i-1]?t.escapeLast(e,n,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},t.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(r=`(?:^(?!${r}).*$)`),r}}));const{CHAR_ASTERISK:oo,CHAR_AT:ao,CHAR_BACKWARD_SLASH:lo,CHAR_COMMA:co,CHAR_DOT:uo,CHAR_EXCLAMATION_MARK:ho,CHAR_FORWARD_SLASH:po,CHAR_LEFT_CURLY_BRACE:fo,CHAR_LEFT_PARENTHESES:mo,CHAR_LEFT_SQUARE_BRACKET:go,CHAR_PLUS:_o,CHAR_QUESTION_MARK:Eo,CHAR_RIGHT_CURLY_BRACE:yo,CHAR_RIGHT_PARENTHESES:To,CHAR_RIGHT_SQUARE_BRACKET:vo}=io,Ao=e=>e===po||e===lo,bo=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};const{MAX_LENGTH:So,POSIX_REGEX_SOURCE:Co,REGEX_NON_SPECIAL_CHARS:xo,REGEX_SPECIAL_CHARS_BACKREF:Do,REPLACEMENTS:No}=io,wo=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map(e=>so.escapeRegex(e)).join("..")}return n},Oo=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,ko=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=No[e]||e;const n={...t},r="number"==typeof n.maxLength?Math.min(So,n.maxLength):So;let i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);const s={type:"bos",value:"",output:n.prepend||""},o=[s],a=n.capture?"":"?:",l=so.isWindows(t),c=io.globChars(l),u=io.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:p,SLASH_LITERAL:d,ONE_CHAR:f,DOTS_SLASH:m,NO_DOT:g,NO_DOT_SLASH:_,NO_DOTS_SLASH:E,QMARK:y,QMARK_NO_DOT:T,STAR:v,START_ANCHOR:A}=c,b=e=>`(${a}(?:(?!${A}${e.dot?m:h}).)*?)`,S=n.dot?"":g,C=n.dot?y:T;let x=!0===n.bash?b(n):v;n.capture&&(x=`(${x})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const D={input:e,index:-1,start:0,dot:!0===n.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=so.removePrefix(e,D),i=e.length;const N=[],w=[],O=[];let k,R=s;const I=()=>D.index===i-1,M=D.peek=(t=1)=>e[D.index+t],P=D.advance=()=>e[++D.index],L=()=>e.slice(D.index+1),F=(e="",t=0)=>{D.consumed+=e,D.index+=t},B=e=>{D.output+=null!=e.output?e.output:e.value,F(e.value)},$=()=>{let e=1;for(;"!"===M()&&("("!==M(2)||"?"===M(3));)P(),D.start++,e++;return e%2!=0&&(D.negated=!0,D.start++,!0)},U=e=>{D[e]++,O.push(e)},V=e=>{D[e]--,O.pop()},H=e=>{if("globstar"===R.type){const t=D.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||N.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(D.output=D.output.slice(0,-R.output.length),R.type="star",R.value="*",R.output=x,D.output+=R.output)}if(N.length&&"paren"!==e.type&&!u[e.value]&&(N[N.length-1].inner+=e.value),(e.value||e.output)&&B(e),R&&"text"===R.type&&"text"===e.type)return R.value+=e.value,void(R.output=(R.output||"")+e.value);e.prev=R,o.push(e),R=e},G=(e,t)=>{const r={...u[t],conditions:1,inner:""};r.prev=R,r.parens=D.parens,r.output=D.output;const i=(n.capture?"(":"")+r.open;U("parens"),H({type:e,value:t,output:D.output?"":f}),H({type:"paren",extglob:!0,value:P(),output:i}),N.push(r)},j=e=>{let t=e.close+(n.capture?")":"");if("negate"===e.type){let r=x;e.inner&&e.inner.length>1&&e.inner.includes("/")&&(r=b(n)),(r!==x||I()||/^\)+$/.test(L()))&&(t=e.close=")$))"+r),"bos"===e.prev.type&&I()&&(D.negatedExtglob=!0)}H({type:"paren",extglob:!0,value:k,output:t}),V("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=!1,i=e.replace(Do,(e,t,n,i,s,o)=>"\\"===i?(r=!0,e):"?"===i?t?t+i+(s?y.repeat(s.length):""):0===o?C+(s?y.repeat(s.length):""):y.repeat(n.length):"."===i?h.repeat(n.length):"*"===i?t?t+i+(s?x:""):x:t?e:"\\"+e);return!0===r&&(i=!0===n.unescape?i.replace(/\\/g,""):i.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),i===e&&!0===n.contains?(D.output=e,D):(D.output=so.wrapOutput(i,D,t),D)}for(;!I();){if(k=P(),"\0"===k)continue;if("\\"===k){const e=M();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){k+="\\",H({type:"text",value:k});continue}const t=/^\\+/.exec(L());let r=0;if(t&&t[0].length>2&&(r=t[0].length,D.index+=r,r%2!=0&&(k+="\\")),!0===n.unescape?k=P()||"":k+=P()||"",0===D.brackets){H({type:"text",value:k});continue}}if(D.brackets>0&&("]"!==k||"["===R.value||"[^"===R.value)){if(!1!==n.posix&&":"===k){const e=R.value.slice(1);if(e.includes("[")&&(R.posix=!0,e.includes(":"))){const e=R.value.lastIndexOf("["),t=R.value.slice(0,e),n=R.value.slice(e+2),r=Co[n];if(r){R.value=t+r,D.backtrack=!0,P(),s.output||1!==o.indexOf(R)||(s.output=f);continue}}}("["===k&&":"!==M()||"-"===k&&"]"===M())&&(k="\\"+k),"]"!==k||"["!==R.value&&"[^"!==R.value||(k="\\"+k),!0===n.posix&&"!"===k&&"["===R.value&&(k="^"),R.value+=k,B({value:k});continue}if(1===D.quotes&&'"'!==k){k=so.escapeRegex(k),R.value+=k,B({value:k});continue}if('"'===k){D.quotes=1===D.quotes?0:1,!0===n.keepQuotes&&H({type:"text",value:k});continue}if("("===k){U("parens"),H({type:"paren",value:k});continue}if(")"===k){if(0===D.parens&&!0===n.strictBrackets)throw new SyntaxError(Oo("opening","("));const e=N[N.length-1];if(e&&D.parens===e.parens+1){j(N.pop());continue}H({type:"paren",value:k,output:D.parens?")":"\\)"}),V("parens");continue}if("["===k){if(!0!==n.nobracket&&L().includes("]"))U("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(Oo("closing","]"));k="\\"+k}H({type:"bracket",value:k});continue}if("]"===k){if(!0===n.nobracket||R&&"bracket"===R.type&&1===R.value.length){H({type:"text",value:k,output:"\\"+k});continue}if(0===D.brackets){if(!0===n.strictBrackets)throw new SyntaxError(Oo("opening","["));H({type:"text",value:k,output:"\\"+k});continue}V("brackets");const e=R.value.slice(1);if(!0===R.posix||"^"!==e[0]||e.includes("/")||(k="/"+k),R.value+=k,B({value:k}),!1===n.literalBrackets||so.hasRegexChars(e))continue;const t=so.escapeRegex(R.value);if(D.output=D.output.slice(0,-R.value.length),!0===n.literalBrackets){D.output+=t,R.value=t;continue}R.value=`(${a}${t}|${R.value})`,D.output+=R.value;continue}if("{"===k&&!0!==n.nobrace){U("braces");const e={type:"brace",value:k,output:"(",outputIndex:D.output.length,tokensIndex:D.tokens.length};w.push(e),H(e);continue}if("}"===k){const e=w[w.length-1];if(!0===n.nobrace||!e){H({type:"text",value:k,output:k});continue}let t=")";if(!0===e.dots){const e=o.slice(),r=[];for(let t=e.length-1;t>=0&&(o.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=wo(r,n),D.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=D.output.slice(0,e.outputIndex),r=D.tokens.slice(e.tokensIndex);e.value=e.output="\\{",k=t="\\}",D.output=n;for(const e of r)D.output+=e.output||e.value}H({type:"brace",value:k,output:t}),V("braces"),w.pop();continue}if("|"===k){N.length>0&&N[N.length-1].conditions++,H({type:"text",value:k});continue}if(","===k){let e=k;const t=w[w.length-1];t&&"braces"===O[O.length-1]&&(t.comma=!0,e="|"),H({type:"comma",value:k,output:e});continue}if("/"===k){if("dot"===R.type&&D.index===D.start+1){D.start=D.index+1,D.consumed="",D.output="",o.pop(),R=s;continue}H({type:"slash",value:k,output:d});continue}if("."===k){if(D.braces>0&&"dot"===R.type){"."===R.value&&(R.output=h);const e=w[w.length-1];R.type="dots",R.output+=k,R.value+=k,e.dots=!0;continue}if(D.braces+D.parens===0&&"bos"!==R.type&&"slash"!==R.type){H({type:"text",value:k,output:h});continue}H({type:"dot",value:k,output:h});continue}if("?"===k){if((!R||"("!==R.value)&&!0!==n.noextglob&&"("===M()&&"?"!==M(2)){G("qmark",k);continue}if(R&&"paren"===R.type){const e=M();let t=k;if("<"===e&&!so.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===R.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(L()))&&(t="\\"+k),H({type:"text",value:k,output:t});continue}if(!0!==n.dot&&("slash"===R.type||"bos"===R.type)){H({type:"qmark",value:k,output:T});continue}H({type:"qmark",value:k,output:y});continue}if("!"===k){if(!0!==n.noextglob&&"("===M()&&("?"!==M(2)||!/[!=<:]/.test(M(3)))){G("negate",k);continue}if(!0!==n.nonegate&&0===D.index){$();continue}}if("+"===k){if(!0!==n.noextglob&&"("===M()&&"?"!==M(2)){G("plus",k);continue}if(R&&"("===R.value||!1===n.regex){H({type:"plus",value:k,output:p});continue}if(R&&("bracket"===R.type||"paren"===R.type||"brace"===R.type)||D.parens>0){H({type:"plus",value:k});continue}H({type:"plus",value:p});continue}if("@"===k){if(!0!==n.noextglob&&"("===M()&&"?"!==M(2)){H({type:"at",extglob:!0,value:k,output:""});continue}H({type:"text",value:k});continue}if("*"!==k){"$"!==k&&"^"!==k||(k="\\"+k);const e=xo.exec(L());e&&(k+=e[0],D.index+=e[0].length),H({type:"text",value:k});continue}if(R&&("globstar"===R.type||!0===R.star)){R.type="star",R.star=!0,R.value+=k,R.output=x,D.backtrack=!0,D.globstar=!0,F(k);continue}let t=L();if(!0!==n.noextglob&&/^\([^?]/.test(t)){G("star",k);continue}if("star"===R.type){if(!0===n.noglobstar){F(k);continue}const r=R.prev,i=r.prev,s="slash"===r.type||"bos"===r.type,o=i&&("star"===i.type||"globstar"===i.type);if(!0===n.bash&&(!s||t[0]&&"/"!==t[0])){H({type:"star",value:k,output:""});continue}const a=D.braces>0&&("comma"===r.type||"brace"===r.type),l=N.length&&("pipe"===r.type||"paren"===r.type);if(!s&&"paren"!==r.type&&!a&&!l){H({type:"star",value:k,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[D.index+4];if(n&&"/"!==n)break;t=t.slice(3),F("/**",3)}if("bos"===r.type&&I()){R.type="globstar",R.value+=k,R.output=b(n),D.output=R.output,D.globstar=!0,F(k);continue}if("slash"===r.type&&"bos"!==r.prev.type&&!o&&I()){D.output=D.output.slice(0,-(r.output+R.output).length),r.output="(?:"+r.output,R.type="globstar",R.output=b(n)+(n.strictSlashes?")":"|$)"),R.value+=k,D.globstar=!0,D.output+=r.output+R.output,F(k);continue}if("slash"===r.type&&"bos"!==r.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";D.output=D.output.slice(0,-(r.output+R.output).length),r.output="(?:"+r.output,R.type="globstar",R.output=`${b(n)}${d}|${d}${e})`,R.value+=k,D.output+=r.output+R.output,D.globstar=!0,F(k+P()),H({type:"slash",value:"/",output:""});continue}if("bos"===r.type&&"/"===t[0]){R.type="globstar",R.value+=k,R.output=`(?:^|${d}|${b(n)}${d})`,D.output=R.output,D.globstar=!0,F(k+P()),H({type:"slash",value:"/",output:""});continue}D.output=D.output.slice(0,-R.output.length),R.type="globstar",R.output=b(n),R.value+=k,D.output+=R.output,D.globstar=!0,F(k);continue}const r={type:"star",value:k,output:x};!0!==n.bash?!R||"bracket"!==R.type&&"paren"!==R.type||!0!==n.regex?(D.index!==D.start&&"slash"!==R.type&&"dot"!==R.type||("dot"===R.type?(D.output+=_,R.output+=_):!0===n.dot?(D.output+=E,R.output+=E):(D.output+=S,R.output+=S),"*"!==M()&&(D.output+=f,R.output+=f)),H(r)):(r.output=k,H(r)):(r.output=".*?","bos"!==R.type&&"slash"!==R.type||(r.output=S+r.output),H(r))}for(;D.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(Oo("closing","]"));D.output=so.escapeLast(D.output,"["),V("brackets")}for(;D.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(Oo("closing",")"));D.output=so.escapeLast(D.output,"("),V("parens")}for(;D.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(Oo("closing","}"));D.output=so.escapeLast(D.output,"{"),V("braces")}if(!0===n.strictSlashes||"star"!==R.type&&"bracket"!==R.type||H({type:"maybe_slash",value:"",output:d+"?"}),!0===D.backtrack){D.output="";for(const e of D.tokens)D.output+=null!=e.output?e.output:e.value,e.suffix&&(D.output+=e.suffix)}return D};ko.fastpaths=(e,t)=>{const n={...t},r="number"==typeof n.maxLength?Math.min(So,n.maxLength):So,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);e=No[e]||e;const s=so.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:p,STAR:d,START_ANCHOR:f}=io.globChars(s),m=n.dot?h:u,g=n.dot?p:u,_=n.capture?"":"?:";let E=!0===n.bash?".*?":d;n.capture&&(E=`(${E})`);const y=e=>!0===e.noglobstar?E:`(${_}(?:(?!${f}${e.dot?c:o}).)*?)`,T=e=>{switch(e){case"*":return`${m}${l}${E}`;case".*":return`${o}${l}${E}`;case"*.*":return`${m}${E}${o}${l}${E}`;case"*/*":return`${m}${E}${a}${l}${g}${E}`;case"**":return m+y(n);case"**/*":return`(?:${m}${y(n)}${a})?${g}${l}${E}`;case"**/*.*":return`(?:${m}${y(n)}${a})?${g}${E}${o}${l}${E}`;case"**/.*":return`(?:${m}${y(n)}${a})?${o}${l}${E}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=T(t[1]);if(!n)return;return n+o+t[2]}}},v=so.removePrefix(e,{negated:!1,prefix:""});let A=T(v);return A&&!0!==n.strictSlashes&&(A+=a+"?"),A};var Ro=ko;const Io=(e,t,n=!1)=>{if(Array.isArray(e)){const r=e.map(e=>Io(e,t,n));return e=>{for(const t of r){const n=t(e);if(n)return n}return!1}}const r=(i=e)&&"object"==typeof i&&!Array.isArray(i)&&e.tokens&&e.input;var i;if(""===e||"string"!=typeof e&&!r)throw new TypeError("Expected pattern to be a non-empty string");const s=t||{},o=so.isWindows(t),a=r?Io.compileRe(e,t):Io.makeRe(e,t,!1,!0),l=a.state;delete a.state;let c=()=>!1;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};c=Io(s.ignore,e,n)}const u=(n,r=!1)=>{const{isMatch:i,match:u,output:h}=Io.test(n,a,t,{glob:e,posix:o}),p={glob:e,state:l,regex:a,posix:o,input:n,output:h,match:u,isMatch:i};return"function"==typeof s.onResult&&s.onResult(p),!1===i?(p.isMatch=!1,!!r&&p):c(n)?("function"==typeof s.onIgnore&&s.onIgnore(p),p.isMatch=!1,!!r&&p):("function"==typeof s.onMatch&&s.onMatch(p),!r||p)};return n&&(u.state=l),u};Io.test=(e,t,n,{glob:r,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const s=n||{},o=s.format||(i?so.toPosixSlashes:null);let a=e===r,l=a&&o?o(e):e;return!1===a&&(l=o?o(e):e,a=l===r),!1!==a&&!0!==s.capture||(a=!0===s.matchBase||!0===s.basename?Io.matchBase(e,t,n,i):t.exec(l)),{isMatch:Boolean(a),match:a,output:l}},Io.matchBase=(e,t,n,r=so.isWindows(n))=>(t instanceof RegExp?t:Io.makeRe(t,n)).test(Ge.basename(e)),Io.isMatch=(e,t,n)=>Io(t,n)(e),Io.parse=(e,t)=>Array.isArray(e)?e.map(e=>Io.parse(e,t)):Ro(e,{...t,fastpaths:!1}),Io.scan=(e,t)=>((e,t)=>{const n=t||{},r=e.length-1,i=!0===n.parts||!0===n.scanToEnd,s=[],o=[],a=[];let l,c,u=e,h=-1,p=0,d=0,f=!1,m=!1,g=!1,_=!1,E=!1,y=!1,T=!1,v=!1,A=!1,b=0,S={value:"",depth:0,isGlob:!1};const C=()=>h>=r,x=()=>(l=c,u.charCodeAt(++h));for(;h<r;){let e;if(c=x(),c!==lo){if(!0===y||c===fo){for(b++;!0!==C()&&(c=x());)if(c!==lo)if(c!==fo){if(!0!==y&&c===uo&&(c=x())===uo){if(f=S.isBrace=!0,g=S.isGlob=!0,A=!0,!0===i)continue;break}if(!0!==y&&c===co){if(f=S.isBrace=!0,g=S.isGlob=!0,A=!0,!0===i)continue;break}if(c===yo&&(b--,0===b)){y=!1,f=S.isBrace=!0,A=!0;break}}else b++;else T=S.backslashes=!0,x();if(!0===i)continue;break}if(c!==po){if(!0!==n.noext&&!0==(c===_o||c===ao||c===oo||c===Eo||c===ho)&&u.charCodeAt(h+1)===mo){if(g=S.isGlob=!0,_=S.isExtglob=!0,A=!0,!0===i){for(;!0!==C()&&(c=x());)if(c!==lo){if(c===To){g=S.isGlob=!0,A=!0;break}}else T=S.backslashes=!0,c=x();continue}break}if(c===oo){if(l===oo&&(E=S.isGlobstar=!0),g=S.isGlob=!0,A=!0,!0===i)continue;break}if(c===Eo){if(g=S.isGlob=!0,A=!0,!0===i)continue;break}if(c===go)for(;!0!==C()&&(e=x());)if(e!==lo){if(e===vo){if(m=S.isBracket=!0,g=S.isGlob=!0,A=!0,!0===i)continue;break}}else T=S.backslashes=!0,x();if(!0===n.nonegate||c!==ho||h!==p){if(!0!==n.noparen&&c===mo){if(g=S.isGlob=!0,!0===i){for(;!0!==C()&&(c=x());)if(c!==mo){if(c===To){A=!0;break}}else T=S.backslashes=!0,c=x();continue}break}if(!0===g){if(A=!0,!0===i)continue;break}}else v=S.negated=!0,p++}else{if(s.push(h),o.push(S),S={value:"",depth:0,isGlob:!1},!0===A)continue;if(l===uo&&h===p+1){p+=2;continue}d=h+1}}else T=S.backslashes=!0,c=x(),c===fo&&(y=!0)}!0===n.noext&&(_=!1,g=!1);let D=u,N="",w="";p>0&&(N=u.slice(0,p),u=u.slice(p),d-=p),D&&!0===g&&d>0?(D=u.slice(0,d),w=u.slice(d)):!0===g?(D="",w=u):D=u,D&&""!==D&&"/"!==D&&D!==u&&Ao(D.charCodeAt(D.length-1))&&(D=D.slice(0,-1)),!0===n.unescape&&(w&&(w=so.removeBackslashes(w)),D&&!0===T&&(D=so.removeBackslashes(D)));const O={prefix:N,input:e,start:p,base:D,glob:w,isBrace:f,isBracket:m,isGlob:g,isExtglob:_,isGlobstar:E,negated:v};if(!0===n.tokens&&(O.maxDepth=0,Ao(c)||o.push(S),O.tokens=o),!0===n.parts||!0===n.tokens){let t;for(let r=0;r<s.length;r++){const i=t?t+1:p,l=s[r],c=e.slice(i,l);n.tokens&&(0===r&&0!==p?(o[r].isPrefix=!0,o[r].value=N):o[r].value=c,bo(o[r]),O.maxDepth+=o[r].depth),0===r&&""===c||a.push(c),t=l}if(t&&t+1<e.length){const r=e.slice(t+1);a.push(r),n.tokens&&(o[o.length-1].value=r,bo(o[o.length-1]),O.maxDepth+=o[o.length-1].depth)}O.slashes=s,O.parts=a}return O})(e,t),Io.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;const i=t||{},s=i.contains?"":"^",o=i.contains?"":"$";let a=`${s}(?:${e.output})${o}`;e&&!0===e.negated&&(a=`^(?!${a}).*$`);const l=Io.toRegex(a,t);return!0===r&&(l.state=e),l},Io.makeRe=(e,t,n=!1,r=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");const i=t||{};let s,o={negated:!1,fastpaths:!0},a="";return e.startsWith("./")&&(e=e.slice(2),a=o.prefix="./"),!1===i.fastpaths||"."!==e[0]&&"*"!==e[0]||(s=Ro.fastpaths(e,t)),void 0===s?(o=Ro(e,t),o.prefix=a+(o.prefix||"")):o.output=s,Io.compileRe(o,t,n,r)},Io.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},Io.constants=io;var Mo=Io;let Po=!1,Lo=!1,Fo=null;const Bo={skip:()=>Po=!0,remove:()=>Lo=!0,replace:e=>Fo=e};function $o(e,t,n,r){e&&(null!==n?e[t][n]=r:e[t]=r)}function Uo(e,t,n){e&&(null!==n?e[t].splice(n,1):delete e[t])}const Vo={ArrayPattern(e,t){for(const n of t.elements)n&&Vo[n.type](e,n)},AssignmentPattern(e,t){Vo[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const n of t.properties)"RestElement"===n.type?Vo.RestElement(e,n):Vo[n.value.type](e,n.value)},RestElement(e,t){Vo[t.argument.type](e,t.argument)}},Ho=function(e){const t=[];return Vo[e.type](t,e),t},Go={const:!0,let:!0};class jo{constructor(e={}){this.parent=e.parent,this.isBlockScope=!!e.block,this.declarations=Object.create(null),e.params&&e.params.forEach(e=>{Ho(e).forEach(e=>{this.declarations[e]=!0})})}addDeclaration(e,t,n){!t&&this.isBlockScope?this.parent.addDeclaration(e,t,n):e.id&&Ho(e.id).forEach(e=>{this.declarations[e]=!0})}contains(e){return this.declarations[e]||!!this.parent&&this.parent.contains(e)}}const Ko=function(e,t="scope"){let n=new jo;return function(e,{enter:t,leave:n}){(function e(t,n,r,i,s,o){if(t){if(r){const e=Po,i=Lo,a=Fo;Po=!1,Lo=!1,Fo=null,r.call(Bo,t,n,s,o),Fo&&$o(n,s,o,t=Fo),Lo&&Uo(n,s,o);const l=Po,c=Lo;if(Po=e,Lo=i,Fo=a,l)return t;if(c)return null}for(const n in t){const s=t[n];if("object"==typeof s)if(Array.isArray(s))for(let o=0,a=0;o<s.length;o+=1,a+=1)null!==s[o]&&"string"==typeof s[o].type&&(e(s[o],t,r,i,n,a)||o--);else null!==s&&"string"==typeof s.type&&e(s,t,r,i,n,null)}if(i){const e=Fo,r=Lo;Fo=null,Lo=!1,i.call(Bo,t,n,s,o),Fo&&$o(n,s,o,t=Fo),Lo&&Uo(n,s,o);const a=Lo;if(Fo=e,Lo=r,a)return null}}return t})(e,null,t,n)}(e,{enter(e,r){const i=e;if(/(Function|Class)Declaration/.test(i.type)&&n.addDeclaration(i,!1,!1),"VariableDeclaration"===i.type){const{kind:e}=i,t=Go[e],s=r?r.type:"";t&&/ForOfStatement/.test(s)||i.declarations.forEach(e=>{n.addDeclaration(e,t,!0)})}let s;if(/Function/.test(i.type)){const e=i;s=new jo({parent:n,block:!1,params:e.params}),"FunctionExpression"===e.type&&e.id&&s.addDeclaration(e,!1,!1)}"BlockStatement"!==i.type||/Function/.test(r.type)||(s=new jo({parent:n,block:!0})),"CatchClause"===i.type&&(s=new jo({parent:n,params:i.param?[i.param]:[],block:!0})),s&&(Object.defineProperty(i,t,{value:s,configurable:!0}),n=s)},leave(e){e[t]&&(n=n.parent)}}),n};function Wo(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}const zo=function(e,t,n){const r=n&&n.resolve,i=e=>e instanceof RegExp?e:{test:t=>{const n=function(e,t){if(!1===t)return e;const n=Ue(t||"").split(Ve).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return He.join(n,e)}(e,r);return Mo(n,{dot:!0})(t)}},s=Wo(e).map(i),o=Wo(t).map(i);return function(e){if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=e.split(Ve).join("/");for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<s.length;++e)if(s[e].test(t))return!0;return!s.length}},Xo=new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "));Xo.add("");const qo=function(e){let t=e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g,"_");return(/\d/.test(t[0])||Xo.has(t))&&(t="_"+t),t||"_"};function Yo(e){return(JSON.stringify(e)||"undefined").replace(/[\u2028\u2029]/g,e=>"\\u"+("000"+e.charCodeAt(0).toString(16)).slice(-4))}function Qo(e,t,n){return e===1/0?"Infinity":e===-1/0?"-Infinity":0===e&&1/e==-1/0?"-0":e instanceof Date?`new Date(${e.getTime()})`:e instanceof RegExp?e.toString():e!=e?"NaN":Array.isArray(e)?function(e,t,n){let r="[";const i=t?`\n${n}${t}`:"";for(let s=0;s<e.length;s++)r+=`${s>0?",":""}${i}${Qo(e[s],t,n+t)}`;return`${r}${t?"\n"+n:""}]`}(e,t,n):null===e?"null":"object"==typeof e?function(e,t,n){let r="{";const i=t?`\n${n}${t}`:"",s=Object.entries(e);for(let e=0;e<s.length;e++){const[o,a]=s[e];r+=`${e>0?",":""}${i}${qo(o)===o?o:Yo(o)}:${t?" ":""}${Qo(a,t,n+t)}`}return`${r}${t?"\n"+n:""}}`}(e,t,n):Yo(e)}const Jo=function(e,t={}){const n=t.compact?"":"indent"in t?t.indent:"\t",r=t.compact?"":" ",i=t.compact?"":"\n",s=t.preferConst?"const":"var";if(!1===t.namedExports||"object"!=typeof e||Array.isArray(e)||e instanceof Date||e instanceof RegExp||null===e){const i=Qo(e,t.compact?null:n,"");return`export default${r||(/^[{[\-\/]/.test(i)?"":" ")}${i};`}let o="";const a=[];for(const[l,c]of Object.entries(e))l===qo(l)?(t.objectShorthand?a.push(l):a.push(`${l}:${r}${l}`),o+=`export ${s} ${l}${r}=${r}${Qo(c,t.compact?null:n,"")};${i}`):a.push(`${Yo(l)}:${r}${Qo(c,t.compact?null:n,"")}`);return`${o}export default${r}{${i}${n}${a.join(`,${i}${n}`)}${i}};${i}`};var Zo=Jo,ea="win32"===n.platform;if(ea)var ta=/(.*?)(?:[\/\\]+|$)/g;else ta=/(.*?)(?:[\/]+|$)/g;if(ea)var na=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else na=/^[\/]*/;var ra=function(e,t,r){if("function"!=typeof r&&(r=function(e){return"function"==typeof e?e:function(e){if(e){if(n.throwDeprecation)throw e;if(!n.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);n.traceDeprecation?console.trace(t):console.error(t)}}}}(t),t=null),e=Ge.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return n.nextTick(r.bind(null,null,t[e]));var i,s,o,a,l=e,c={},u={};function h(){var t=na.exec(e);i=t[0].length,s=t[0],o=t[0],a="",ea&&!u[o]?St.lstat(o,(function(e){if(e)return r(e);u[o]=!0,p()})):n.nextTick(p)}function p(){if(i>=e.length)return t&&(t[l]=e),r(null,e);ta.lastIndex=i;var c=ta.exec(e);return a=s,s+=c[0],o=a+c[1],i=ta.lastIndex,u[o]||t&&t[o]===o?n.nextTick(p):t&&Object.prototype.hasOwnProperty.call(t,o)?m(t[o]):St.lstat(o,d)}function d(e,i){if(e)return r(e);if(!i.isSymbolicLink())return u[o]=!0,t&&(t[o]=o),n.nextTick(p);if(!ea){var s=i.dev.toString(32)+":"+i.ino.toString(32);if(c.hasOwnProperty(s))return f(null,c[s],o)}St.stat(o,(function(e){if(e)return r(e);St.readlink(o,(function(e,t){ea||(c[s]=t),f(e,t)}))}))}function f(e,n,i){if(e)return r(e);var s=Ge.resolve(a,n);t&&(t[i]=s),m(s)}function m(t){e=Ge.resolve(t,e.slice(i)),h()}h()},ia=ua;ua.realpath=ua,ua.sync=ha,ua.realpathSync=ha,ua.monkeypatch=function(){St.realpath=ua,St.realpathSync=ha},ua.unmonkeypatch=function(){St.realpath=sa,St.realpathSync=oa};var sa=St.realpath,oa=St.realpathSync,aa=n.version,la=/^v[0-5]\./.test(aa);function ca(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function ua(e,t,n){if(la)return sa(e,t,n);"function"==typeof t&&(n=t,t=null),sa(e,t,(function(r,i){ca(r)?ra(e,t,n):n(r,i)}))}function ha(e,t){if(la)return oa(e,t);try{return oa(e,t)}catch(n){if(ca(n))return function(e,t){if(e=Ge.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var n,r,i,s,o=e,a={},l={};function c(){var t=na.exec(e);n=t[0].length,r=t[0],i=t[0],s="",ea&&!l[i]&&(St.lstatSync(i),l[i]=!0)}for(c();n<e.length;){ta.lastIndex=n;var u=ta.exec(e);if(s=r,r+=u[0],i=s+u[1],n=ta.lastIndex,!(l[i]||t&&t[i]===i)){var h;if(t&&Object.prototype.hasOwnProperty.call(t,i))h=t[i];else{var p=St.lstatSync(i);if(!p.isSymbolicLink()){l[i]=!0,t&&(t[i]=i);continue}var d=null;if(!ea){var f=p.dev.toString(32)+":"+p.ino.toString(32);a.hasOwnProperty(f)&&(d=a[f])}null===d&&(St.statSync(i),d=St.readlinkSync(i)),h=Ge.resolve(s,d),t&&(t[i]=h),ea||(a[f]=d)}e=Ge.resolve(h,e.slice(n)),c()}}return t&&(t[o]=e),e}(e,t);throw n}}var pa=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},da=fa;function fa(e,t,n){e instanceof RegExp&&(e=ma(e,n)),t instanceof RegExp&&(t=ma(t,n));var r=ga(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function ma(e,t){var n=t.match(e);return n?n[0]:null}function ga(e,t,n){var r,i,s,o,a,l=n.indexOf(e),c=n.indexOf(t,l+1),u=l;if(l>=0&&c>0){for(r=[],s=n.length;u>=0&&!a;)u==l?(r.push(u),l=n.indexOf(e,u+1)):1==r.length?a=[r.pop(),c]:((i=r.pop())<s&&(s=i,o=c),c=n.indexOf(t,u+1)),u=l<c&&l>=0?l:c;r.length&&(a=[s,o])}return a}fa.range=ga;var _a="\0SLASH"+Math.random()+"\0",Ea="\0OPEN"+Math.random()+"\0",ya="\0CLOSE"+Math.random()+"\0",Ta="\0COMMA"+Math.random()+"\0",va="\0PERIOD"+Math.random()+"\0";function Aa(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function ba(e){return e.split(_a).join("\\").split(Ea).join("{").split(ya).join("}").split(Ta).join(",").split(va).join(".")}function Sa(e){return"{"+e+"}"}function Ca(e){return/^-?0\d/.test(e)}function xa(e,t){return e<=t}function Da(e,t){return e>=t}var Na=Pa;Pa.Minimatch=La;var wa={sep:"/"};try{wa=Ge}catch(e){}var Oa=Pa.GLOBSTAR=La.GLOBSTAR={},ka={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Ra="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),Ia=/\/+/;function Ma(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function Pa(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new La(t,n).match(e))}function La(e,t){if(!(this instanceof La))return new La(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==wa.sep&&(e=e.split(wa.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function Fa(e,t){if(t||(t=this instanceof La?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:(n=e)?("{}"===n.substr(0,2)&&(n="\\{\\}"+n.substr(2)),function e(t,n){var r=[],i=da("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var s,o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),l=o||a,c=i.body.indexOf(",")>=0;if(!l&&!c)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+ya+i.post,e(t)):[t];if(l)s=i.body.split(/\.\./);else if(1===(s=function e(t){if(!t)return[""];var n=[],r=da("{","}",t);if(!r)return t.split(",");var i=r.pre,s=r.body,o=r.post,a=i.split(",");a[a.length-1]+="{"+s+"}";var l=e(o);return o.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),n.push.apply(n,a),n}(i.body)).length&&1===(s=e(s[0],!1).map(Sa)).length)return(p=i.post.length?e(i.post,!1):[""]).map((function(e){return i.pre+s[0]+e}));var u,h=i.pre,p=i.post.length?e(i.post,!1):[""];if(l){var d=Aa(s[0]),f=Aa(s[1]),m=Math.max(s[0].length,s[1].length),g=3==s.length?Math.abs(Aa(s[2])):1,_=xa;f<d&&(g*=-1,_=Da);var E=s.some(Ca);u=[];for(var y=d;_(y,f);y+=g){var T;if(a)"\\"===(T=String.fromCharCode(y))&&(T="");else if(T=String(y),E){var v=m-T.length;if(v>0){var A=new Array(v+1).join("0");T=y<0?"-"+A+T.slice(1):A+T}}u.push(T)}}else u=function(t,n){for(var r=[],i=0;i<t.length;i++){var s=(o=t[i],e(o,!1));pa(s)?r.push.apply(r,s):r.push(s)}var o;return r}(s);for(var b=0;b<u.length;b++)for(var S=0;S<p.length;S++){var C=h+u[b]+p[S];(!n||l||C)&&r.push(C)}return r}(function(e){return e.split("\\\\").join(_a).split("\\{").join(Ea).split("\\}").join(ya).split("\\,").join(Ta).split("\\.").join(va)}(n),!0).map(ba)):[];var n}Pa.filter=function(e,t){return t=t||{},function(n,r,i){return Pa(n,e,t)}},Pa.defaults=function(e){if(!e||!Object.keys(e).length)return Pa;var t=Pa,n=function(n,r,i){return t.minimatch(n,r,Ma(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,Ma(e,r))},n},La.defaults=function(e){return e&&Object.keys(e).length?Pa.defaults(e).Minimatch:La},La.prototype.debug=function(){},La.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(Ia)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},La.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r<i&&"!"===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.substr(n)),this.negate=t}},Pa.braceExpand=function(e,t){return Fa(e,t)},La.prototype.braceExpand=Fa,La.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return Oa;if(""===e)return"";var r,i="",s=!!n.nocase,o=!1,a=[],l=[],c=!1,u=-1,h=-1,p="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function f(){if(r){switch(r){case"*":i+="[^/]*?",s=!0;break;case"?":i+="[^/]",s=!0;break;default:i+="\\"+r}d.debug("clearStateChar %j %j",r,i),r=!1}}for(var m,g=0,_=e.length;g<_&&(m=e.charAt(g));g++)if(this.debug("%s\t%s %s %j",e,g,i,m),o&&Ra[m])i+="\\"+m,o=!1;else switch(m){case"/":return!1;case"\\":f(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,g,i,m),c){this.debug(" in class"),"!"===m&&g===h+1&&(m="^"),i+=m;continue}d.debug("call clearStateChar %j",r),f(),r=m,n.noext&&f();continue;case"(":if(c){i+="(";continue}if(!r){i+="\\(";continue}a.push({type:r,start:g-1,reStart:i.length,open:ka[r].open,close:ka[r].close}),i+="!"===r?"(?:(?!(?:":"(?:",this.debug("plType %j %j",r,i),r=!1;continue;case")":if(c||!a.length){i+="\\)";continue}f(),s=!0;var E=a.pop();i+=E.close,"!"===E.type&&l.push(E),E.reEnd=i.length;continue;case"|":if(c||!a.length||o){i+="\\|",o=!1;continue}f(),i+="|";continue;case"[":if(f(),c){i+="\\"+m;continue}c=!0,h=g,u=i.length,i+=m;continue;case"]":if(g===h+1||!c){i+="\\"+m,o=!1;continue}if(c){var y=e.substring(h+1,g);try{RegExp("["+y+"]")}catch(e){var T=this.parse(y,Ba);i=i.substr(0,u)+"\\["+T[0]+"\\]",s=s||T[1],c=!1;continue}}s=!0,c=!1,i+=m;continue;default:f(),o?o=!1:!Ra[m]||"^"===m&&c||(i+="\\"),i+=m}for(c&&(y=e.substr(h+1),T=this.parse(y,Ba),i=i.substr(0,u)+"\\["+T[0],s=s||T[1]),E=a.pop();E;E=a.pop()){var v=i.slice(E.reStart+E.open.length);this.debug("setting tail",i,E),v=v.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){return n||(n="\\"),t+t+n+"|"})),this.debug("tail=%j\n %s",v,v,E,i);var A="*"===E.type?"[^/]*?":"?"===E.type?"[^/]":"\\"+E.type;s=!0,i=i.slice(0,E.reStart)+A+"\\("+v}f(),o&&(i+="\\\\");var b=!1;switch(i.charAt(0)){case".":case"[":case"(":b=!0}for(var S=l.length-1;S>-1;S--){var C=l[S],x=i.slice(0,C.reStart),D=i.slice(C.reStart,C.reEnd-8),N=i.slice(C.reEnd-8,C.reEnd),w=i.slice(C.reEnd);N+=w;var O=x.split("(").length-1,k=w;for(g=0;g<O;g++)k=k.replace(/\)[+*?]?/,"");var R="";""===(w=k)&&t!==Ba&&(R="$"),i=x+D+w+R+N}if(""!==i&&s&&(i="(?=.)"+i),b&&(i=p+i),t===Ba)return[i,s];if(!s)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var I=n.nocase?"i":"";try{var M=new RegExp("^"+i+"$",I)}catch(e){return new RegExp("$.")}return M._glob=e,M._src=i,M};var Ba={};Pa.makeRe=function(e,t){return new La(e,t||{}).makeRe()},La.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=t.nocase?"i":"",i=e.map((function(e){return e.map((function(e){return e===Oa?n:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch(e){this.regexp=!1}return this.regexp},Pa.match=function(e,t,n){var r=new La(t,n=n||{});return e=e.filter((function(e){return r.match(e)})),r.options.nonull&&!e.length&&e.push(t),e},La.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var n=this.options;"/"!==wa.sep&&(e=e.split(wa.sep).join("/")),e=e.split(Ia),this.debug(this.pattern,"split",e);var r,i,s=this.set;for(this.debug(this.pattern,"set",s),i=e.length-1;i>=0&&!(r=e[i]);i--);for(i=0;i<s.length;i++){var o=s[i],a=e;if(n.matchBase&&1===o.length&&(a=[r]),this.matchOne(a,o,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},La.prototype.matchOne=function(e,t,n){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,s=0,o=e.length,a=t.length;i<o&&s<a;i++,s++){this.debug("matchOne loop");var l,c=t[s],u=e[i];if(this.debug(t,c,u),!1===c)return!1;if(c===Oa){this.debug("GLOBSTAR",[t,c,u]);var h=i,p=s+1;if(p===a){for(this.debug("** at the end");i<o;i++)if("."===e[i]||".."===e[i]||!r.dot&&"."===e[i].charAt(0))return!1;return!0}for(;h<o;){var d=e[h];if(this.debug("\nglobstar while",e,h,t,p,d),this.matchOne(e.slice(h),t.slice(p),n))return this.debug("globstar found match!",h,o,d),!0;if("."===d||".."===d||!r.dot&&"."===d.charAt(0)){this.debug("dot detected!",e,h,t,p);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug("\n>>> no match, partial?",e,h,t,p),h!==o))}if("string"==typeof c?(l=r.nocase?u.toLowerCase()===c.toLowerCase():u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===o&&s===a)return!0;if(i===o)return n;if(s===a)return i===o-1&&""===e[i];throw new Error("wtf?")};var $a,Ua=to((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),Va=to((function(e){try{var t=At;if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=Ua}})),Ha="object"==typeof Reflect?Reflect:null,Ga=Ha&&"function"==typeof Ha.apply?Ha.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};$a=Ha&&"function"==typeof Ha.ownKeys?Ha.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var ja=Number.isNaN||function(e){return e!=e};function Ka(){Ka.init.call(this)}var Wa=Ka;Ka.EventEmitter=Ka,Ka.prototype._events=void 0,Ka.prototype._eventsCount=0,Ka.prototype._maxListeners=void 0;var za=10;function Xa(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function qa(e){return void 0===e._maxListeners?Ka.defaultMaxListeners:e._maxListeners}function Ya(e,t,n,r){var i,s,o,a;if(Xa(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),o=s[t]),void 0===o)o=s[t]=n,++e._eventsCount;else if("function"==typeof o?o=s[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=qa(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,a=l,console&&console.warn&&console.warn(a)}return e}function Qa(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ja(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=Qa.bind(r);return i.listener=n,r.wrapFn=i,i}function Za(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):tl(i,i.length)}function el(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function tl(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(Ka,"defaultMaxListeners",{enumerable:!0,get:function(){return za},set:function(e){if("number"!=typeof e||e<0||ja(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");za=e}}),Ka.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ka.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||ja(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},Ka.prototype.getMaxListeners=function(){return qa(this)},Ka.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var a=i[e];if(void 0===a)return!1;if("function"==typeof a)Ga(a,this,t);else{var l=a.length,c=tl(a,l);for(n=0;n<l;++n)Ga(c[n],this,t)}return!0},Ka.prototype.addListener=function(e,t){return Ya(this,e,t,!1)},Ka.prototype.on=Ka.prototype.addListener,Ka.prototype.prependListener=function(e,t){return Ya(this,e,t,!0)},Ka.prototype.once=function(e,t){return Xa(t),this.on(e,Ja(this,e,t)),this},Ka.prototype.prependOnceListener=function(e,t){return Xa(t),this.prependListener(e,Ja(this,e,t)),this},Ka.prototype.removeListener=function(e,t){var n,r,i,s,o;if(Xa(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,i=s;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},Ka.prototype.off=Ka.prototype.removeListener,Ka.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,s=Object.keys(n);for(r=0;r<s.length;++r)"removeListener"!==(i=s[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},Ka.prototype.listeners=function(e){return Za(this,e,!0)},Ka.prototype.rawListeners=function(e){return Za(this,e,!1)},Ka.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):el.call(e,t)},Ka.prototype.listenerCount=el,Ka.prototype.eventNames=function(){return this._eventsCount>0?$a(this._events):[]},Wa.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==s&&e.removeListener("error",s),n([].slice.call(arguments))}var s;"error"!==t&&(s=function(n){e.removeListener(t,i),r(n)},e.once("error",s)),e.once(t,i)}))};
5
+ /*
6
+ object-assign
7
+ (c) Sindre Sorhus
8
+ @license MIT
9
+ */
10
+ var nl=Object.getOwnPropertySymbols,rl=Object.prototype.hasOwnProperty,il=Object.prototype.propertyIsEnumerable;function sl(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var ol=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,i=sl(e),s=1;s<arguments.length;s++){for(var o in n=Object(arguments[s]))rl.call(n,o)&&(i[o]=n[o]);if(nl){r=nl(n);for(var a=0;a<r.length;a++)il.call(n,r[a])&&(i[r[a]]=n[r[a]])}}return i},al=function(e){return e instanceof t},ll=At.inherits,cl=to((function(e,t){var r=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(o(arguments[n]));return t.join(" ")}n=1;for(var i=arguments,s=i.length,a=String(e).replace(r,(function(e){if("%%"===e)return"%";if(n>=s)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}})),l=i[n];n<s;l=i[++n])f(l)||!y(l)?a+=" "+l:a+=" "+o(l);return a},t.deprecate=function(e,r){if(_(eo.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===n.noDeprecation)return e;var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var i,s={};function o(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(n)?r.showHidden=n:n&&t._extend(r,n),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),c(r,e,r.depth)}function a(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&A(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=c(e,i,r)),i}var s=function(e,t){if(_(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return m(t)?e.stylize(""+t,"number"):d(t)?e.stylize(""+t,"boolean"):f(t)?e.stylize("null","null"):void 0}(e,n);if(s)return s;var o=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),v(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return u(n);if(0===o.length){if(A(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(v(n))return u(n)}var y,b="",S=!1,C=["{","}"];return p(n)&&(S=!0,C=["[","]"]),A(n)&&(b=" [Function"+(n.name?": "+n.name:"")+"]"),E(n)&&(b=" "+RegExp.prototype.toString.call(n)),T(n)&&(b=" "+Date.prototype.toUTCString.call(n)),v(n)&&(b=" "+u(n)),0!==o.length||S&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),y=S?function(e,t,n,r,i){for(var s=[],o=0,a=t.length;o<a;++o)D(t,String(o))?s.push(h(e,t,n,r,String(o),!0)):s.push("");return i.forEach((function(i){i.match(/^\d+$/)||s.push(h(e,t,n,r,i,!0))})),s}(e,n,r,a,o):o.map((function(t){return h(e,n,r,a,t,S)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(y,b,C)):C[0]+b+C[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,s){var o,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),D(r,i)||(o="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=f(n)?c(e,l.value,null):c(e,l.value,n-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),_(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function p(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function f(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function _(e){return void 0===e}function E(e){return y(e)&&"[object RegExp]"===b(e)}function y(e){return"object"==typeof e&&null!==e}function T(e){return y(e)&&"[object Date]"===b(e)}function v(e){return y(e)&&("[object Error]"===b(e)||e instanceof Error)}function A(e){return"function"==typeof e}function b(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(_(i)&&(i=""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=d,t.isNull=f,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=_,t.isRegExp=E,t.isObject=y,t.isDate=T,t.isError=v,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=al;var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",x(),t.format.apply(t,arguments))},t.inherits=ll,t._extend=function(e,t){if(!t||!y(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}})),ul=to((function(e){
11
+ /*!
12
+ * The buffer module from node.js, for the browser.
13
+ *
14
+ * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
15
+ * @license MIT
16
+ */
17
+ function t(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function n(e){return eo.Buffer&&"function"==typeof eo.Buffer.isBuffer?eo.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var r=Object.prototype.hasOwnProperty,i=Array.prototype.slice,s="foo"===function(){}.name;function o(e){return Object.prototype.toString.call(e)}function a(e){return!n(e)&&"function"==typeof eo.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var l=e.exports=f,c=/\s*function\s+([^\(\s]*)\s*/;function u(e){if(cl.isFunction(e)){if(s)return e.name;var t=e.toString().match(c);return t&&t[1]}}function h(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function p(e){if(s||!cl.isFunction(e))return cl.inspect(e);var t=u(e);return"[Function"+(t?": "+t:"")+"]"}function d(e,t,n,r,i){throw new l.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function f(e,t){e||d(e,!0,t,"==",l.ok)}function m(e,r,s,l){if(e===r)return!0;if(n(e)&&n(r))return 0===t(e,r);if(cl.isDate(e)&&cl.isDate(r))return e.getTime()===r.getTime();if(cl.isRegExp(e)&&cl.isRegExp(r))return e.source===r.source&&e.global===r.global&&e.multiline===r.multiline&&e.lastIndex===r.lastIndex&&e.ignoreCase===r.ignoreCase;if(null!==e&&"object"==typeof e||null!==r&&"object"==typeof r){if(a(e)&&a(r)&&o(e)===o(r)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===t(new Uint8Array(e.buffer),new Uint8Array(r.buffer));if(n(e)!==n(r))return!1;var c=(l=l||{actual:[],expected:[]}).actual.indexOf(e);return-1!==c&&c===l.expected.indexOf(r)||(l.actual.push(e),l.expected.push(r),function(e,t,n,r){if(null==e||null==t)return!1;if(cl.isPrimitive(e)||cl.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var s=g(e),o=g(t);if(s&&!o||!s&&o)return!1;if(s)return m(e=i.call(e),t=i.call(t),n);var a,l,c=y(e),u=y(t);if(c.length!==u.length)return!1;for(c.sort(),u.sort(),l=c.length-1;l>=0;l--)if(c[l]!==u[l])return!1;for(l=c.length-1;l>=0;l--)if(!m(e[a=c[l]],t[a],n,r))return!1;return!0}(e,r,s,l))}return s?e===r:e==r}function g(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function E(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&d(i,n,"Missing expected exception"+r);var s="string"==typeof r,o=!e&&i&&!n;if((!e&&cl.isError(i)&&s&&_(i,n)||o)&&d(i,n,"Got unwanted exception"+r),e&&i&&n&&!_(i,n)||!e&&i)throw i}l.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return h(p(e.actual),128)+" "+e.operator+" "+h(p(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||d;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=u(t),s=r.indexOf("\n"+i);if(s>=0){var o=r.indexOf("\n",s+1);r=r.substring(o+1)}this.stack=r}}},cl.inherits(l.AssertionError,Error),l.fail=d,l.ok=f,l.equal=function(e,t,n){e!=t&&d(e,t,n,"==",l.equal)},l.notEqual=function(e,t,n){e==t&&d(e,t,n,"!=",l.notEqual)},l.deepEqual=function(e,t,n){m(e,t,!1)||d(e,t,n,"deepEqual",l.deepEqual)},l.deepStrictEqual=function(e,t,n){m(e,t,!0)||d(e,t,n,"deepStrictEqual",l.deepStrictEqual)},l.notDeepEqual=function(e,t,n){m(e,t,!1)&&d(e,t,n,"notDeepEqual",l.notDeepEqual)},l.notDeepStrictEqual=function e(t,n,r){m(t,n,!0)&&d(t,n,r,"notDeepStrictEqual",e)},l.strictEqual=function(e,t,n){e!==t&&d(e,t,n,"===",l.strictEqual)},l.notStrictEqual=function(e,t,n){e===t&&d(e,t,n,"!==",l.notStrictEqual)},l.throws=function(e,t,n){E(!0,e,t,n)},l.doesNotThrow=function(e,t,n){E(!1,e,t,n)},l.ifError=function(e){if(e)throw e},l.strict=ol((function e(t,n){t||d(t,!0,n,"==",e)}),l,{equal:l.strictEqual,deepEqual:l.deepStrictEqual,notEqual:l.notStrictEqual,notDeepEqual:l.notDeepStrictEqual}),l.strict.strict=l.strict;var y=Object.keys||function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(n);return t}}));function hl(e){return"/"===e.charAt(0)}function pl(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),n=t[1]||"",r=Boolean(n&&":"!==n.charAt(1));return Boolean(t[2]||r)}var dl="win32"===n.platform?pl:hl,fl=hl,ml=pl;dl.posix=fl,dl.win32=ml;var gl=Sl,_l=bl,El=vl,yl=xl,Tl=Dl;function vl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Al=Na.Minimatch;function bl(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function Sl(e,t){return e.localeCompare(t)}function Cl(e){var t=null;if("/**"===e.slice(-3)){var n=e.replace(/(\/\*\*)+$/,"");t=new Al(n,{dot:!0})}return{matcher:new Al(e,{dot:!0}),gmatcher:t}}function xl(e,t){var r=t;return r="/"===t.charAt(0)?Ge.join(e.root,t):dl(t)||""===t?t:e.changedCwd?Ge.resolve(e.cwd,t):Ge.resolve(t),"win32"===n.platform&&(r=r.replace(/\\/g,"/")),r}function Dl(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}var Nl={alphasort:gl,alphasorti:_l,setopts:function(e,t,r){if(r||(r={}),r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(Cl))}(e,r),e.changedCwd=!1;var i=n.cwd();vl(r,"cwd")?(e.cwd=Ge.resolve(r.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=r.root||Ge.resolve(e.cwd,"/"),e.root=Ge.resolve(e.root),"win32"===n.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=dl(e.cwd)?e.cwd:xl(e,e.cwd),"win32"===n.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new Al(t,r),e.options=e.minimatch.options},ownProp:El,makeAbs:yl,finish:function(e){for(var t=e.nounique,n=t?[]:Object.create(null),r=0,i=e.matches.length;r<i;r++){var s=e.matches[r];if(s&&0!==Object.keys(s).length){var o=Object.keys(s);t?n.push.apply(n,o):o.forEach((function(e){n[e]=!0}))}else if(e.nonull){var a=e.minimatch.globSet[r];t?n.push(a):n[a]=!0}}if(t||(n=Object.keys(n)),e.nosort||(n=n.sort(e.nocase?bl:Sl)),e.mark){for(r=0;r<n.length;r++)n[r]=e._mark(n[r]);e.nodir&&(n=n.filter((function(t){var n=!/\/$/.test(t),r=e.cache[t]||e.cache[xl(e,t)];return n&&r&&(n="DIR"!==r&&!Array.isArray(r)),n})))}e.ignore.length&&(n=n.filter((function(t){return!Dl(e,t)}))),e.found=n},mark:function(e,t){var n=xl(e,t),r=e.cache[n],i=t;if(r){var s="DIR"===r||Array.isArray(r),o="/"===t.slice(-1);if(s&&!o?i+="/":!s&&o&&(i=i.slice(0,-1)),i!==t){var a=xl(e,i);e.statCache[a]=e.statCache[n],e.cache[a]=e.cache[n]}}return i},isIgnored:Tl,childrenIgnored:function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))}},wl=Ml;Ml.GlobSync=Pl;var Ol=Nl.setopts,kl=Nl.ownProp,Rl=Nl.childrenIgnored,Il=Nl.isIgnored;function Ml(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new Pl(e,t).found}function Pl(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof Pl))return new Pl(e,t);if(Ol(this,e,t),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;r<n;r++)this._process(this.minimatch.set[r],r,!1);this._finish()}Pl.prototype._finish=function(){if(ul(this instanceof Pl),this.realpath){var e=this;this.matches.forEach((function(t,n){var r=e.matches[n]=Object.create(null);for(var i in t)try{i=e._makeAbs(i),r[ia.realpathSync(i,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;r[e._makeAbs(i)]=!0}}))}Nl.finish(this)},Pl.prototype._process=function(e,t,n){ul(this instanceof Pl);for(var r,i=0;"string"==typeof e[i];)i++;switch(i){case e.length:return void this._processSimple(e.join("/"),t);case 0:r=null;break;default:r=e.slice(0,i).join("/")}var s,o=e.slice(i);null===r?s=".":dl(r)||dl(e.join("/"))?(r&&dl(r)||(r="/"+r),s=r):s=r;var a=this._makeAbs(s);Rl(this,s)||(o[0]===Na.GLOBSTAR?this._processGlobStar(r,s,a,o,t,n):this._processReaddir(r,s,a,o,t,n))},Pl.prototype._processReaddir=function(e,t,n,r,i,s){var o=this._readdir(n,s);if(o){for(var a=r[0],l=!!this.minimatch.negate,c=a._glob,u=this.dot||"."===c.charAt(0),h=[],p=0;p<o.length;p++)("."!==(m=o[p]).charAt(0)||u)&&(l&&!e?!m.match(a):m.match(a))&&h.push(m);var d=h.length;if(0!==d)if(1!==r.length||this.mark||this.stat)for(r.shift(),p=0;p<d;p++){var f;m=h[p],f=e?[e,m]:[m],this._process(f.concat(r),i,s)}else{this.matches[i]||(this.matches[i]=Object.create(null));for(p=0;p<d;p++){var m=h[p];e&&(m="/"!==e.slice(-1)?e+"/"+m:e+m),"/"!==m.charAt(0)||this.nomount||(m=Ge.join(this.root,m)),this._emitMatch(i,m)}}}},Pl.prototype._emitMatch=function(e,t){if(!Il(this,t)){var n=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=n),!this.matches[e][t]){if(this.nodir){var r=this.cache[n];if("DIR"===r||Array.isArray(r))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},Pl.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,n;try{n=St.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var r=n&&n.isSymbolicLink();return this.symlinks[e]=r,r||!n||n.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},Pl.prototype._readdir=function(e,t){if(t&&!kl(this.symlinks,e))return this._readdirInGlobStar(e);if(kl(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,St.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},Pl.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var r=t[n];r="/"===e?e+r:e+"/"+r,this.cache[r]=!0}return this.cache[e]=t,t},Pl.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var r=new Error(t.code+" invalid cwd "+this.cwd);throw r.path=this.cwd,r.code=t.code,r}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},Pl.prototype._processGlobStar=function(e,t,n,r,i,s){var o=this._readdir(n,s);if(o){var a=r.slice(1),l=e?[e]:[],c=l.concat(a);this._process(c,i,!1);var u=o.length;if(!this.symlinks[n]||!s)for(var h=0;h<u;h++)if("."!==o[h].charAt(0)||this.dot){var p=l.concat(o[h],a);this._process(p,i,!0);var d=l.concat(o[h],r);this._process(d,i,!0)}}},Pl.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),r){if(e&&dl(e)&&!this.nomount){var i=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=Ge.join(this.root,e):(e=Ge.resolve(this.root,e),i&&(e+="/"))}"win32"===n.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},Pl.prototype._stat=function(e){var t=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&kl(this.cache,t)){var r=this.cache[t];if(Array.isArray(r)&&(r="DIR"),!n||"DIR"===r)return r;if(n&&"FILE"===r)return!1}var i=this.statCache[t];if(!i){var s;try{s=St.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{i=St.statSync(t)}catch(e){i=s}else i=s}return this.statCache[t]=i,r=!0,i&&(r=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||r,(!n||"FILE"!==r)&&r},Pl.prototype._mark=function(e){return Nl.mark(this,e)},Pl.prototype._makeAbs=function(e){return Nl.makeAbs(this,e)};var Ll=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach((function(e){r[e]=i[e]})),r}},Fl=Ll($l),Bl=Ll(Ul);function $l(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Ul(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}$l.proto=$l((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return $l(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Ul(this)},configurable:!0})})),Fl.strict=Bl;var Vl=Object.create(null),Hl=Ll((function(e,t){return Vl[e]?(Vl[e].push(t),null):(Vl[e]=[t],function(e){return Fl((function t(){var r=Vl[e],i=r.length,s=Gl(arguments);try{for(var o=0;o<i;o++)r[o].apply(null,s)}finally{r.length>i?(r.splice(0,i),n.nextTick((function(){t.apply(null,s)}))):delete Vl[e]}}))}(e))}));function Gl(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r]=e[r];return n}var jl=Yl,Kl=Wa.EventEmitter,Wl=Nl.setopts,zl=Nl.ownProp,Xl=Nl.childrenIgnored,ql=Nl.isIgnored;function Yl(e,t,n){if("function"==typeof t&&(n=t,t={}),t||(t={}),t.sync){if(n)throw new TypeError("callback provided to sync glob");return wl(e,t)}return new Jl(e,t,n)}Yl.sync=wl;var Ql=Yl.GlobSync=wl.GlobSync;function Jl(e,t,n){if("function"==typeof t&&(n=t,t=null),t&&t.sync){if(n)throw new TypeError("callback provided to sync glob");return new Ql(e,t)}if(!(this instanceof Jl))return new Jl(e,t,n);Wl(this,e,t),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=new Array(r),"function"==typeof n&&(n=Fl(n),this.on("error",n),this.on("end",(function(e){n(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===r)return o();for(var s=0;s<r;s++)this._process(this.minimatch.set[s],s,!1,o);function o(){--i._processing,i._processing<=0&&i._finish()}}function Zl(e,{enter:t,leave:n}){return function e(t,n,r,i,s,o){if(t){if(r){const e=ec,i=tc,a=nc;ec=!1,tc=!1,nc=null,r.call(rc,t,n,s,o),nc&&ic(n,s,o,t=nc),tc&&sc(n,s,o);const l=ec,c=tc;if(ec=e,tc=i,nc=a,l)return t;if(c)return null}for(const n in t){const s=t[n];if("object"==typeof s)if(Array.isArray(s))for(let o=0,a=0;o<s.length;o+=1,a+=1)null!==s[o]&&"string"==typeof s[o].type&&(e(s[o],t,r,i,n,a)||o--);else null!==s&&"string"==typeof s.type&&e(s,t,r,i,n,null)}if(i){const e=nc,r=tc;nc=null,tc=!1,i.call(rc,t,n,s,o),nc&&ic(n,s,o,t=nc),tc&&sc(n,s,o);const a=tc;if(nc=e,tc=r,a)return null}}return t}(e,null,t,n)}Yl.glob=Yl,Yl.hasMagic=function(e,t){var n=function(e,t){if(null===t||"object"!=typeof t)return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}({},t);n.noprocess=!0;var r=new Jl(e,n).minimatch.set;if(!e)return!1;if(r.length>1)return!0;for(var i=0;i<r[0].length;i++)if("string"!=typeof r[0][i])return!0;return!1},Yl.Glob=Jl,Va(Jl,Kl),Jl.prototype._finish=function(){if(ul(this instanceof Jl),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();Nl.finish(this),this.emit("end",this.found)}},Jl.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,n=0;n<this.matches.length;n++)this._realpathSet(n,r)}function r(){0==--e&&t._finish()}},Jl.prototype._realpathSet=function(e,t){var n=this.matches[e];if(!n)return t();var r=Object.keys(n),i=this,s=r.length;if(0===s)return t();var o=this.matches[e]=Object.create(null);r.forEach((function(n,r){n=i._makeAbs(n),ia.realpath(n,i.realpathCache,(function(r,a){r?"stat"===r.syscall?o[n]=!0:i.emit("error",r):o[a]=!0,0==--s&&(i.matches[e]=o,t())}))}))},Jl.prototype._mark=function(e){return Nl.mark(this,e)},Jl.prototype._makeAbs=function(e){return Nl.makeAbs(this,e)},Jl.prototype.abort=function(){this.aborted=!0,this.emit("abort")},Jl.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},Jl.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var n=e[t];this._emitMatch(n[0],n[1])}}if(this._processQueue.length){var r=this._processQueue.slice(0);for(this._processQueue.length=0,t=0;t<r.length;t++){var i=r[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},Jl.prototype._process=function(e,t,n,r){if(ul(this instanceof Jl),ul("function"==typeof r),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,n,r]);else{for(var i,s=0;"string"==typeof e[s];)s++;switch(s){case e.length:return void this._processSimple(e.join("/"),t,r);case 0:i=null;break;default:i=e.slice(0,s).join("/")}var o,a=e.slice(s);null===i?o=".":dl(i)||dl(e.join("/"))?(i&&dl(i)||(i="/"+i),o=i):o=i;var l=this._makeAbs(o);if(Xl(this,o))return r();a[0]===Na.GLOBSTAR?this._processGlobStar(i,o,l,a,t,n,r):this._processReaddir(i,o,l,a,t,n,r)}},Jl.prototype._processReaddir=function(e,t,n,r,i,s,o){var a=this;this._readdir(n,s,(function(l,c){return a._processReaddir2(e,t,n,r,i,s,c,o)}))},Jl.prototype._processReaddir2=function(e,t,n,r,i,s,o,a){if(!o)return a();for(var l=r[0],c=!!this.minimatch.negate,u=l._glob,h=this.dot||"."===u.charAt(0),p=[],d=0;d<o.length;d++)("."!==(m=o[d]).charAt(0)||h)&&(c&&!e?!m.match(l):m.match(l))&&p.push(m);var f=p.length;if(0===f)return a();if(1===r.length&&!this.mark&&!this.stat){for(this.matches[i]||(this.matches[i]=Object.create(null)),d=0;d<f;d++){var m=p[d];e&&(m="/"!==e?e+"/"+m:e+m),"/"!==m.charAt(0)||this.nomount||(m=Ge.join(this.root,m)),this._emitMatch(i,m)}return a()}for(r.shift(),d=0;d<f;d++)m=p[d],e&&(m="/"!==e?e+"/"+m:e+m),this._process([m].concat(r),i,s,a);a()},Jl.prototype._emitMatch=function(e,t){if(!this.aborted&&!ql(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var n=dl(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=n),!this.matches[e][t]){if(this.nodir){var r=this.cache[n];if("DIR"===r||Array.isArray(r))return}this.matches[e][t]=!0;var i=this.statCache[n];i&&this.emit("stat",t,i),this.emit("match",t)}}},Jl.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var n=this,r=Hl("lstat\0"+e,(function(r,i){if(r&&"ENOENT"===r.code)return t();var s=i&&i.isSymbolicLink();n.symlinks[e]=s,s||!i||i.isDirectory()?n._readdir(e,!1,t):(n.cache[e]="FILE",t())}));r&&St.lstat(e,r)}},Jl.prototype._readdir=function(e,t,n){if(!this.aborted&&(n=Hl("readdir\0"+e+"\0"+t,n))){if(t&&!zl(this.symlinks,e))return this._readdirInGlobStar(e,n);if(zl(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return n();if(Array.isArray(r))return n(null,r)}St.readdir(e,function(e,t,n){return function(r,i){r?e._readdirError(t,r,n):e._readdirEntries(t,i,n)}}(this,e,n))}},Jl.prototype._readdirEntries=function(e,t,n){if(!this.aborted){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var i=t[r];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,n(null,t)}},Jl.prototype._readdirError=function(e,t,n){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return n()}},Jl.prototype._processGlobStar=function(e,t,n,r,i,s,o){var a=this;this._readdir(n,s,(function(l,c){a._processGlobStar2(e,t,n,r,i,s,c,o)}))},Jl.prototype._processGlobStar2=function(e,t,n,r,i,s,o,a){if(!o)return a();var l=r.slice(1),c=e?[e]:[],u=c.concat(l);this._process(u,i,!1,a);var h=this.symlinks[n],p=o.length;if(h&&s)return a();for(var d=0;d<p;d++)if("."!==o[d].charAt(0)||this.dot){var f=c.concat(o[d],l);this._process(f,i,!0,a);var m=c.concat(o[d],r);this._process(m,i,!0,a)}a()},Jl.prototype._processSimple=function(e,t,n){var r=this;this._stat(e,(function(i,s){r._processSimple2(e,t,i,s,n)}))},Jl.prototype._processSimple2=function(e,t,r,i,s){if(this.matches[t]||(this.matches[t]=Object.create(null)),!i)return s();if(e&&dl(e)&&!this.nomount){var o=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=Ge.join(this.root,e):(e=Ge.resolve(this.root,e),o&&(e+="/"))}"win32"===n.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),s()},Jl.prototype._stat=function(e,t){var n=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&zl(this.cache,n)){var i=this.cache[n];if(Array.isArray(i)&&(i="DIR"),!r||"DIR"===i)return t(null,i);if(r&&"FILE"===i)return t()}var s=this.statCache[n];if(void 0!==s){if(!1===s)return t(null,s);var o=s.isDirectory()?"DIR":"FILE";return r&&"FILE"===o?t():t(null,o,s)}var a=this,l=Hl("stat\0"+n,(function(r,i){if(i&&i.isSymbolicLink())return St.stat(n,(function(r,s){r?a._stat2(e,n,null,i,t):a._stat2(e,n,r,s,t)}));a._stat2(e,n,r,i,t)}));l&&St.lstat(n,l)},Jl.prototype._stat2=function(e,t,n,r,i){if(n&&("ENOENT"===n.code||"ENOTDIR"===n.code))return this.statCache[t]=!1,i();var s="/"===e.slice(-1);if(this.statCache[t]=r,"/"===t.slice(-1)&&r&&!r.isDirectory())return i(null,!1,r);var o=!0;return r&&(o=r.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,s&&"FILE"===o?i():i(null,o,r)};let ec=!1,tc=!1,nc=null;const rc={skip:()=>ec=!0,remove:()=>tc=!0,replace:e=>nc=e};function ic(e,t,n,r){e&&(null!==n?e[t][n]=r:e[t]=r)}function sc(e,t,n){e&&(null!==n?e[t].splice(n,1):delete e[t])}function oc(e){var t="";e=e<0?-e<<1|1:e<<1;do{var n=31&e;(e>>>=5)>0&&(n|=32),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[n]}while(e>0);return t}var ac=function e(t){this.bits=t instanceof e?t.bits.slice():[]};ac.prototype.add=function(e){this.bits[e>>5]|=1<<(31&e)},ac.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(31&e))};var lc=function(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};lc.prototype.appendLeft=function(e){this.outro+=e},lc.prototype.appendRight=function(e){this.intro=this.intro+e},lc.prototype.clone=function(){var e=new lc(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},lc.prototype.contains=function(e){return this.start<e&&e<this.end},lc.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},lc.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},lc.prototype.edit=function(e,t,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},lc.prototype.prependLeft=function(e){this.outro=e+this.outro},lc.prototype.prependRight=function(e){this.intro=e+this.intro},lc.prototype.split=function(e){var t=e-this.start,n=this.original.slice(0,t),r=this.original.slice(t);this.original=n;var i=new lc(e,this.end,r);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},lc.prototype.toString=function(){return this.intro+this.content+this.outro},lc.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},lc.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var cc=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?cc=function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"function"==typeof t&&(cc=function(e){return t.from(e,"utf-8").toString("base64")});var uc=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=function(e){for(var t=0,n=0,r=0,i=0,s="",o=0;o<e.length;o++){var a=e[o];if(o>0&&(s+=";"),0!==a.length){for(var l=0,c=[],u=0,h=a;u<h.length;u++){var p=h[u],d=oc(p[0]-l);l=p[0],p.length>1&&(d+=oc(p[1]-t)+oc(p[2]-n)+oc(p[3]-r),t=p[1],n=p[2],r=p[3]),5===p.length&&(d+=oc(p[4]-i),i=p[4]),c.push(d)}s+=c.join(",")}}return s}(e.mappings)};function hc(e){var t=e.split("\n"),n=t.filter((function(e){return/^\t+/.test(e)})),r=t.filter((function(e){return/^ {2,}/.test(e)}));if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";var i=r.reduce((function(e,t){var n=/^ +/.exec(t)[0].length;return Math.min(n,e)}),1/0);return new Array(i+1).join(" ")}function pc(e,t){var n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length)for(var i=n.length;i--;)n[i]="..";return n.concat(r).join("/")}uc.prototype.toString=function(){return JSON.stringify(this)},uc.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+cc(this.toString())};var dc=Object.prototype.toString;function fc(e){for(var t=e.split("\n"),n=[],r=0,i=0;r<t.length;r++)n.push(i),i+=t[r].length+1;return function(e){for(var t=0,r=n.length;t<r;){var i=t+r>>1;e<n[i]?r=i:t=i+1}var s=t-1;return{line:s,column:e-n[s]}}}var mc=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};mc.prototype.addEdit=function(e,t,n,r){if(t.length){var i=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},mc.prototype.addUneditedChunk=function(e,t,n,r,i){for(var s=t.start,o=!0;s<t.end;)(this.hires||o||i.has(s))&&this.rawSegments.push([this.generatedCodeColumn,e,r.line,r.column]),"\n"===n[s]?(r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(r.column+=1,this.generatedCodeColumn+=1,o=!1),s+=1;this.pending=null},mc.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var n=0;n<t.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var gc={insertLeft:!1,insertRight:!1,storeName:!1},_c=function(e,t){void 0===t&&(t={});var n=new lc(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new ac},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:hc(e)}}),this.byStart[0]=n,this.byEnd[e.length]=n};function Ec(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw s}}return n}}(e,t)||yc(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yc(e,t){if(e){if("string"==typeof e)return Tc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tc(e,t):void 0}}function Tc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vc(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=yc(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){o=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw i}}}}_c.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)},_c.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},_c.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this},_c.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this},_c.prototype.clone=function(){for(var e=new _c(this.original,{filename:this.filename}),t=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[n.start]=n,e.byEnd[n.end]=n;var r=t.next,i=r&&r.clone();i&&(n.next=i,i.previous=n,n=i),t=r}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new ac(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e},_c.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var n=Object.keys(this.storedNames),r=new mc(e.hires),i=fc(this.original);return this.intro&&r.advance(this.intro),this.firstChunk.eachNext((function(e){var s=i(e.start);e.intro.length&&r.advance(e.intro),e.edited?r.addEdit(0,e.content,s,e.storeName?n.indexOf(e.original):-1):r.addUneditedChunk(0,e,t.original,s,t.sourcemapLocations),e.outro.length&&r.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?pc(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:n,mappings:r.raw}},_c.prototype.generateMap=function(e){return new uc(this.generateDecodedMap(e))},_c.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},_c.prototype.indent=function(e,t){var n,r=/^[^\r\n]/gm;if(n=e,"[object Object]"===dc.call(n)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var i={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((function(e){for(var t=e[0];t<e[1];t+=1)i[t]=!0}));var s=!1!==t.indentStart,o=function(t){return s?""+e+t:(s=!0,t)};this.intro=this.intro.replace(r,o);for(var a=0,l=this.firstChunk;l;){var c=l.end;if(l.edited)i[a]||(l.content=l.content.replace(r,o),l.content.length&&(s="\n"===l.content[l.content.length-1]));else for(a=l.start;a<c;){if(!i[a]){var u=this.original[a];"\n"===u?s=!0:"\r"!==u&&s&&(s=!1,a===l.start?l.prependRight(e):(this._splitChunk(l,a),(l=l.next).prependRight(e)))}a+=1}a=l.end,l=l.next}return this.outro=this.outro.replace(r,o),this},_c.prototype.insert=function(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},_c.prototype.insertLeft=function(e,t){return gc.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),gc.insertLeft=!0),this.appendLeft(e,t)},_c.prototype.insertRight=function(e,t){return gc.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),gc.insertRight=!0),this.prependRight(e,t)},_c.prototype.move=function(e,t,n){if(n>=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);var r=this.byStart[e],i=this.byEnd[t],s=r.previous,o=i.next,a=this.byStart[n];if(!a&&i===this.lastChunk)return this;var l=a?a.previous:this.lastChunk;return s&&(s.next=o),o&&(o.previous=s),l&&(l.next=r),a&&(a.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=l,i.next=a||null,l||(this.firstChunk=r),a||(this.lastChunk=i),this},_c.prototype.overwrite=function(e,t,n,r){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===r&&(gc.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),gc.storeName=!0),r={storeName:!0});var i=void 0!==r&&r.storeName,s=void 0!==r&&r.contentOnly;if(i){var o=this.original.slice(e,t);this.storedNames[o]=!0}var a=this.byStart[e],l=this.byEnd[t];if(a){if(t>a.end&&a.next!==this.byStart[a.end])throw new Error("Cannot overwrite across a split point");if(a.edit(n,i,s),a!==l){for(var c=a.next;c!==l;)c.edit("",!1),c=c.next;c.edit("",!1)}}else{var u=new lc(e,t,"").edit(n,i);l.next=u,u.previous=l}return this},_c.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},_c.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this},_c.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this},_c.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var n=this.byStart[e];n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this},_c.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},_c.prototype.lastLine=function(){var e=this.outro.lastIndexOf("\n");if(-1!==e)return this.outro.substr(e+1);var t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(-1!==(e=n.outro.lastIndexOf("\n")))return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(-1!==(e=n.content.lastIndexOf("\n")))return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(-1!==(e=n.intro.lastIndexOf("\n")))return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return-1!==(e=this.intro.lastIndexOf("\n"))?this.intro.substr(e+1)+t:this.intro+t},_c.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var n="",r=this.firstChunk;r&&(r.start>e||r.end<=e);){if(r.start<t&&r.end>=t)return n;r=r.next}if(r&&r.edited&&r.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=r;r;){!r.intro||i===r&&r.start!==e||(n+=r.intro);var s=r.start<t&&r.end>=t;if(s&&r.edited&&r.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===r?e-r.start:0,a=s?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(o,a),!r.outro||s&&r.end!==t||(n+=r.outro),s)break;r=r.next}return n},_c.prototype.snip=function(e,t){var n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n},_c.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,n=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=n?this.byStart[t.end]:this.byEnd[t.start]}},_c.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var n=fc(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+e.original+'")')}var r=e.split(t);return this.byEnd[t]=e,this.byStart[t]=r,this.byEnd[r.end]=r,e===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=e,!0},_c.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},_c.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},_c.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},_c.prototype.trimLines=function(){return this.trim("[\\r\\n]")},_c.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},_c.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var n=this.lastChunk;do{var r=n.end,i=n.trimEnd(t);if(n.end!==r&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1},_c.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},_c.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var n=this.firstChunk;do{var r=n.end,i=n.trimStart(t);if(n.end!==r&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1},_c.prototype.trimStart=function(e){return this.trimStartAborted(e),this};var Ac={rollup:"^2.3.4"};const bc={"==":e=>Nc(e.left,e.right,!1),"!=":e=>Dc(bc["=="](e)),"===":e=>Nc(e.left,e.right,!0),"!==":e=>Dc(bc["==="](e)),"!":e=>xc(e.argument),"&&":e=>Cc(e.left)&&Cc(e.right),"||":e=>Cc(e.left)||Cc(e.right)};function Sc(e){const t=[];for(;"MemberExpression"===e.type;){if(e.computed)return null;t.unshift(e.property.name),e=e.object}if("Identifier"!==e.type)return null;const n=e.name;return t.unshift(n),{name:n,keypath:t.join(".")}}function Cc(e){return"Literal"===e.type?!!e.value:"ParenthesizedExpression"===e.type?Cc(e.expression):e.operator in bc?bc[e.operator](e):void 0}function xc(e){return Dc(Cc(e))}function Dc(e){return void 0===e?e:!e}function Nc(e,t,n){if(e.type===t.type)return"Literal"===e.type?n?e.value===t.value:e.value==t.value:void 0}const wc=e=>`\0${e}?commonjs-proxy`,Oc=e=>e.slice(1,-"?commonjs-proxy".length),kc=e=>`\0${e}?commonjs-external`,Rc=(e,t)=>e.startsWith(t)?"/$$rollup_base$$"+e.slice(t.length):e,Ic="\0commonjsHelpers.js";function Mc(e){const t=qo(Ie(e,Pe(e)));if("index"!==t)return t;const n=Me(e).split(Ve);return qo(n[n.length-1])}const Pc="process location abstract arguments boolean break byte case catch char class const continue debugger default delete do double else enum eval export extends false final finally float for from function goto if implements import in instanceof int interface let long native new null package private protected public return short static super switch synchronized this throw throws transient true try typeof var void volatile while with yield".split(" "),Lc={__esModule:!0};Pc.forEach(e=>Lc[e]=!0);const Fc=/^(?:module\.)?exports(?:\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/,Bc=/\b(?:require|module|exports|global)\b/,$c=/\b(?:require|module|exports)\b/,Uc=/^(?:Import|Export(?:Named|Default))Declaration/,Vc=/^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;function Hc(e,t,n){let r=1,i=qo(n);for(;e.contains(i)||t.has(i)||i in Lc;)i=`${n}_${r}`,r+=1;return e.declarations[i]=!0,i}function Gc(e,t,n){try{return e(t,{allowReturnOutsideFunction:!0})}catch(e){throw e.message+=" in "+n,e}}function jc(e){return e.replace(/\\/g,"/")}const Kc=new Map;function Wc(e,t){const n=Kc.get(e);n?n.resolve&&(n.resolve(t),n.resolve=void 0):Kc.set(e,{promise:Promise.resolve(t),resolve:void 0})}function zc(e){return function(t,n){const r=t.endsWith("?commonjs-proxy");if(r)t=Oc(t);else if(t.startsWith("\0"))return t===Ic||"\0commonjs-dynamic-packages"===t||t.startsWith("\0commonjs-dynamic-json:")?t:null;return t.startsWith("\0commonjs-dynamic-json:")?t:(n&&n.endsWith("?commonjs-proxy")&&(n=Oc(n)),this.resolve(t,n,{skipSelf:!0}).then(i=>(i||(i=function(t,n){if("."!==t[0]||!n)return;const r=function(e,t){return t.reduce((t,n)=>t.concat(function(e,t){return[e+t,`${e}${Ve}index${t}`]}(e,n)),[e])}(Ue(Me(n),t),e);for(let e=0;e<r.length;e+=1)try{if(kt(r[e]).isFile())return{id:r[e]}}catch(e){}}(t,n)),r?i?(i.id=(i.external?kc:wc)(i.id),i.external=!1,i):{id:kc(t),external:!1}:i)))}}function Xc(e={}){const t=e.extensions||[".js"],r=zo(e.include,e.exclude),i=e.ignoreGlobal,s=function(e){const t=new Set;var n,r=vc(!e||Array.isArray(e)?e||[]:[e]);try{for(r.s();!(n=r.n()).done;){const e=n.value,r=e.startsWith("!"),o=Set.prototype[r?"delete":"add"].bind(t);var i,s=vc(jl.sync(r?e.substr(1):e));try{for(s.s();!(i=s.n()).done;){const e=i.value;o(jc(Ue(e)))}}catch(e){s.e(e)}finally{s.f()}}}catch(e){r.e(e)}finally{r.f()}const o=Array.from(t.values()).filter(e=>{try{if(kt(e).isDirectory())return!0}catch(e){}return!1});return{dynamicRequireModuleSet:t,dynamicRequireModuleDirPaths:o}}(e.dynamicRequireTargets),o=s.dynamicRequireModuleSet,a=s.dynamicRequireModuleDirPaths,l=o.size>0,c=l?function(e,t){if(t)var n=t.map((function(e){return Ge.resolve(null,e)}));else n=null;var r=n.slice(1).reduce((function(e,t){if(!t.match(/^([A-Za-z]:)?\/|\\/))throw new Error("relative path without a basedir");for(var n=t.split(/\/+|\\+/),r=0;e[r]===n[r]&&r<Math.min(e.length,n.length);r++);return e.slice(0,r)}),n[0].split(/\/+|\\+/));return r.length>1?r.join("/"):"/"}(0,Array.from(o).concat(n.cwd())):null,u=new Set,h=new Set,p="function"==typeof e.ignore?e.ignore:Array.isArray(e.ignore)?t=>e.ignore.includes(t):()=>!1,d=zc(t),f=!1!==e.sourceMap;function m(t,n){const r=function(e,t,n){const r=Gc(e,t,n);let i=!1;var s,o=vc(r.body);try{for(o.s();!(s=o.n()).done;){const e=s.value;if("ExportDefaultDeclaration"===e.type)return{isEsModule:!0,hasDefaultExport:!0,ast:r};if("ExportNamedDeclaration"===e.type){i=!0;var a,l=vc(e.specifiers);try{for(l.s();!(a=l.n()).done;)if("default"===a.value.exported.name)return{isEsModule:!0,hasDefaultExport:!0,ast:r}}catch(e){l.e(e)}finally{l.f()}}else Uc.test(e.type)&&(i=!0)}}catch(e){o.e(e)}finally{o.f()}return{isEsModule:i,hasDefaultExport:!1,ast:r}}(this.parse,t,n),s=r.isEsModule,a=r.hasDefaultExport,d=r.ast,m=o.has(jc(n));if(!s||m&&e.transformMixedEsModules){if(!function(e,t){return(t?$c:Bc).test(e)}(t,i))return u.add(n),Wc(n,!1),null}else if((a?h:u).add(n),!e.transformMixedEsModules)return Wc(n,!1),null;const g=function(e,t,n,r,i,s,o,a,l,c,u,h){const p=h||Gc(e,t,n),d=new _c(t),f={},m=[];let g=0,_=Ko(p,"scope");const E={module:!1,exports:!1,global:!1,require:!1};let y=0,T=0;const v=new Set,A=Hc(_,v,"commonjsHelpers"),b={};let S=/__esModule/.test(t),C=!1;function x(e){return!!e&&"CallExpression"===e.type&&0!==e.arguments.length&&D(e.callee)}function D(e){return!!e&&("Identifier"===e.type&&"require"===e.name?!_.contains("require"):"MemberExpression"===e.type&&"Identifier"===e.object.type&&"module"===e.object.name&&!_.contains("module")&&"Identifier"===e.property.type&&"require"===e.property.name)}function N(e){return!!x(e)&&!function(e){return e.arguments.length>1||"Literal"!==e.arguments[0].type&&("TemplateLiteral"!==e.arguments[0].type||e.arguments[0].expressions.length>0)}(e)}function w(e){return o(e.arguments[0].value)}function O(e,t){let n=function(e){return"Literal"===e.arguments[0].type?e.arguments[0].value:e.arguments[0].quasis[0].value.cooked}(e);const r=n.startsWith("\0commonjs-dynamic-register:");if(r&&(n=n.substr("\0commonjs-dynamic-register:".length)),void 0===f[n]){const e=k(n);if(!t)do{t="require$$"+g,g+=1}while(_.contains(t));r&&n.endsWith(".json")&&(n="\0commonjs-dynamic-json:"+n),(r||!e||n.endsWith(".json"))&&m.push([n,!r]),f[n]={source:n,name:t,importsDefault:!1,isDynamic:e}}return f[n]}function k(e){if(!/[/\\]/.test(e)){try{const t=jc(hn.sync(e,{basedir:Me(n)}));if(c.has(t))return!0}catch(e){return!1}return!1}for(var t=0,r=["",".js",".json"];t<r.length;t++){const i=r[t],s=jc(Ue(Me(n),e+i));if(c.has(s))return!0}return!1}const R=new Set;if(Zl(p,{enter(e){"AssignmentExpression"===e.type&&"MemberExpression"!==e.left.type&&Ho(e.left).forEach(e=>{R.add(e)})}}),Zl(p,{enter(e,t){if(a&&(d.addSourcemapLocation(e.start),d.addSourcemapLocation(e.end)),t&&("IfStatement"===t.type||"ConditionalExpression"===t.type)){if(e===t.consequent&&xc(t.test))return void this.skip();if(e===t.alternate&&Cc(t.test))return void this.skip()}if(e._skip)return void this.skip();if(T+=1,e.scope&&(_=e.scope),Vc.test(e.type)&&(y+=1),"ReturnStatement"===e.type&&0===y&&(S=!0),"ThisExpression"===e.type&&0===y)return E.global=!0,void(s||(d.overwrite(e.start,e.end,A+".commonjsGlobal",{storeName:!0}),C=!0));if("UnaryExpression"===e.type&&"typeof"===e.operator){const t=Sc(e.argument);if(!t)return;if(_.contains(t.name))return;"module.exports"!==t.keypath&&"module"!==t.keypath&&"exports"!==t.keypath||d.overwrite(e.start,e.end,"'object'",{storeName:!1})}if("Identifier"===e.type){if(function e(t,n){if("MemberExpression"===t.type)return!t.computed&&e(t.object,t);if("Identifier"===t.type){if(!n)return!0;switch(n.type){case"MemberExpression":return n.computed||t===n.object;case"MethodDefinition":return n.computed;case"FieldDefinition":case"Property":return n.computed||t===n.value;case"ExportSpecifier":case"ImportSpecifier":return t===n.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}(e,t)&&!_.contains(e.name)){if(e.name in E){if(D(e)){if(!l&&N(t))return;l&&x(t)&&d.appendLeft(t.end-1,","+JSON.stringify("."===Me(n)?null:Rc(jc(Me(n)),u))),d.overwrite(e.start,e.end,A+".commonjsRequire",{storeName:!0}),C=!0}E[e.name]=!0,"global"!==e.name||s||(d.overwrite(e.start,e.end,A+".commonjsGlobal",{storeName:!0}),C=!0),"module"!==e.name&&"exports"!==e.name||(S=!0)}"define"===e.name&&d.overwrite(e.start,e.end,"undefined",{storeName:!0}),v.add(e.name)}return}if("AssignmentExpression"===e.type){if("MemberExpression"!==e.left.type)return;const t=Sc(e.left);if(!t)return;if(_.contains(t.name))return;const n=Fc.exec(t.keypath);if(!n||"exports"===t.keypath)return;return E[t.name]=!0,T>3&&(S=!0),e.left._skip=!0,"module.exports"===t.keypath&&"ObjectExpression"===e.right.type?void e.right.properties.forEach(e=>{if(e.computed||!("key"in e)||"Identifier"!==e.key.type)return;const t=e.key.name;t===qo(t)&&(b[t]=!0)}):void(n[1]&&(b[n[1]]=!0))}const r=function(e,t){if("CallExpression"!==e.type)return;const n=e.callee,r=n.object,i=n.property;if(!r||"Identifier"!==r.type||"Object"!==r.name)return;if(!i||"Identifier"!==i.type||"defineProperty"!==i.name)return;if(3!==e.arguments.length)return;const s=Ec(e.arguments,2),o=s[0],a=s[1];return"Identifier"===o.type&&"exports"===o.name?a.value:void 0}(e);if(r&&r===qo(r)&&(b[r]=!0),"VariableDeclarator"===e.type&&"Identifier"===e.id.type&&N(e.init)&&!w(e.init)){if(_.parent)return;if(R.has(e.id.name))return;const t=O(e.init,e.id.name);t.importsDefault=!0,t.name!==e.id.name||t.isDynamic||(e._shouldRemove=!0)}if(!N(e)||w(e))return;const i=O(e);"ExpressionStatement"===t.type?d.remove(t.start,t.end):(i.importsDefault=!0,function(e){return k(e.source)&&(e.source.startsWith("\0commonjs-dynamic-register:")||!e.source.endsWith(".json"))}(i)?(d.overwrite(e.start,e.end,`${A}.commonjsRequire(${JSON.stringify(Rc(jc(i.source),u))}, ${JSON.stringify("."===Me(n)?null:Rc(jc(Me(n)),u))})`),C=!0):d.overwrite(e.start,e.end,i.name)),e.callee._skip=!0},leave(e){if(T-=1,e.scope&&(_=_.parent),Vc.test(e.type)&&(y-=1),"VariableDeclaration"===e.type){let t=!1,n=e.declarations[0].start;for(let r=0;r<e.declarations.length;r+=1){const i=e.declarations[r];i._shouldRemove?d.remove(n,i.end):(t||(d.remove(n,i.start),t=!0),n=i.end)}t||d.remove(e.start,e.end)}}}),!m.length&&!E.module&&!E.exports&&!E.require&&(s||!E.global)){if(Object.keys(b).length)throw new Error(`Custom named exports were specified for ${n} but it does not appear to be a CommonJS module`);return null}i&&(S=!1),C=C||S;const I=(C?[`import * as ${A} from '${Ic}';`]:[]).concat(m.map(([e])=>`import '${e}';`),m.filter(([,e])=>e).map(([e])=>{const t=f[e],n=t.name;return`import ${t.importsDefault?n+" from ":""}'${wc(e)}';`})).join("\n")+"\n\n",M=[];let P="",L="";const F=Hc(_,v,Mc(n));if(!r&&!i){const e={str:`export { ${F} as __moduleExports };`,name:"__moduleExports"};M.push(e)}const B=Mc(n),$=[];let U=!1;if(S){const e="module"+(E.exports?", exports":"");P=`var ${F} = ${A}.createCommonjsModule(function (${e}) {\n`,L="\n}",l&&(L+=", "+JSON.stringify(Rc(jc(Me(n)),u))),L+=");"}else{const e=[];var V,H=vc(p.body);try{for(H.s();!(V=H.n()).done;){const t=V.value;if("ExpressionStatement"===t.type&&"AssignmentExpression"===t.expression.type){const n=t.expression.left,r=Sc(n);if(!r)continue;const i=Fc.exec(r.keypath);if(!i)continue;if("module.exports"===r.keypath)U=!0,d.overwrite(n.start,n.end,"var "+F);else{const r=Ec(i,2)[1],s=Hc(_,v,r);e.push({name:r,deconflicted:s}),d.overwrite(t.start,n.end,"var "+s);const o=r===s?`export { ${r} };`:`export { ${s} as ${r} };`;"default"!==r&&(M.push({str:o,name:r}),delete b[r]),$.push(`${F}.${r} = ${s};`)}}}}catch(e){H.e(e)}finally{H.f()}U||!e.length&&(r||i)||(L=`\n\nvar ${F} = {\n${e.map(({name:e,deconflicted:t})=>`\t${e}: ${t}`).join(",\n")}\n};`)}Object.keys(b).filter(e=>!Lc[e]).forEach((function(e){const t=Hc(_,v,B),n=t===B?`export var ${e} = ${F}.${e};`:`var ${t} = ${F}.${e};\nexport { ${t} as ${e} };`;M.push({str:n,name:e})}));const G=/__esModule/.test(t)?`export default ${A}.unwrapExports(${F});`:`export default ${F};`,j=M.filter(e=>"default"!==e.name||!U).map(e=>e.str),K="\n\n"+(i?[]:[G]).concat(j).concat(U?$:[]).join("\n");d.trim().prepend(I+P).trim().append(L);const W=U||j.length>0||S||!r;return W&&d.append(K),{code:t=d.toString(),map:a?d.generateMap():null,syntheticNamedExports:W}}(this.parse,t,n,this.getModuleInfo(n).isEntry,s,i||s,p,f,l,o,c,d);return Wc(n,!s&&Boolean(g)),g||(s&&!m||u.add(n),null)}return{name:"commonjs",buildStart(){null!=e.namedExports&&this.warn('The namedExports option from "@rollup/plugin-commonjs" is deprecated. Named exports are now handled automatically.');const t=Ec(this.meta.rollupVersion.split(".").map(Number),2),n=t[0],r=t[1],i=Ac.rollup.slice(2),s=Ec(i.split(".").map(Number),2),o=s[0],a=s[1];(n<o||n===o&&r<a)&&this.error(`Insufficient Rollup version: "@rollup/plugin-commonjs" requires at least rollup@${i} but found rollup@${this.meta.rollupVersion}.`)},resolveId:d,load(e){if(e===Ic){let e="\nexport var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport function createCommonjsModule(fn, basedir, module) {\n\treturn module = {\n\t path: basedir,\n\t exports: {},\n\t require: function (path, base) {\n return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);\n }\n\t}, fn(module, module.exports), module.exports;\n}\n\nexport function getCjsExportFromNamespace (n) {\n\treturn n && n['default'] || n;\n}\n";return e+=l?"\nexport function commonjsRegister (path, loader) {\n\tDYNAMIC_REQUIRE_LOADERS[path] = loader;\n}\n\nconst DYNAMIC_REQUIRE_LOADERS = Object.create(null);\nconst DYNAMIC_REQUIRE_CACHE = Object.create(null);\nconst DEFAULT_PARENT_MODULE = {\n\tid: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []\n};\nconst CHECKED_EXTENSIONS = ['', '.js', '.json'];\n\nfunction normalize (path) {\n\tpath = path.replace(/\\\\/g, '/');\n\tconst parts = path.split('/');\n\tconst slashed = parts[0] === '';\n\tfor (let i = 1; i < parts.length; i++) {\n\t\tif (parts[i] === '.' || parts[i] === '') {\n\t\t\tparts.splice(i--, 1);\n\t\t}\n\t}\n\tfor (let i = 1; i < parts.length; i++) {\n\t\tif (parts[i] !== '..') continue;\n\t\tif (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {\n\t\t\tparts.splice(--i, 2);\n\t\t\ti--;\n\t\t}\n\t}\n\tpath = parts.join('/');\n\tif (slashed && path[0] !== '/')\n\t path = '/' + path;\n\telse if (path.length === 0)\n\t path = '.';\n\treturn path;\n}\n\nfunction join () {\n\tif (arguments.length === 0)\n\t return '.';\n\tlet joined;\n\tfor (let i = 0; i < arguments.length; ++i) {\n\t let arg = arguments[i];\n\t if (arg.length > 0) {\n\t\tif (joined === undefined)\n\t\t joined = arg;\n\t\telse\n\t\t joined += '/' + arg;\n\t }\n\t}\n\tif (joined === undefined)\n\t return '.';\n\n\treturn joined;\n}\n\nfunction isPossibleNodeModulesPath (modulePath) {\n\tlet c0 = modulePath[0];\n\tif (c0 === '/' || c0 === '\\\\') return false;\n\tlet c1 = modulePath[1], c2 = modulePath[2];\n\tif ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||\n\t\t(c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;\n\tif (c1 === ':' && (c2 === '/' || c2 === '\\\\'))\n\t\treturn false;\n\treturn true;\n}\n\nfunction dirname (path) {\n if (path.length === 0)\n return '.';\n\n let i = path.length - 1;\n while (i > 0) {\n const c = path.charCodeAt(i);\n if ((c === 47 || c === 92) && i !== path.length - 1)\n break;\n i--;\n }\n\n if (i > 0)\n return path.substr(0, i);\n\n if (path.chartCodeAt(0) === 47 || path.chartCodeAt(0) === 92)\n return path.charAt(0);\n\n return '.';\n}\n\nexport function commonjsRequire (path, originalModuleDir) {\n\tconst shouldTryNodeModules = isPossibleNodeModulesPath(path);\n\tpath = normalize(path);\n\tlet relPath;\n\twhile (true) {\n\t\tif (!shouldTryNodeModules) {\n\t\t\trelPath = originalModuleDir ? normalize(originalModuleDir + '/' + path) : path;\n\t\t} else if (originalModuleDir) {\n\t\t\trelPath = normalize(originalModuleDir + '/node_modules/' + path);\n\t\t} else {\n\t\t\trelPath = normalize(join('node_modules', path));\n\t\t}\n\t\tfor (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {\n\t\t\tconst resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];\n\t\t\tlet cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];\n\t\t\tif (cachedModule) return cachedModule.exports;\n\t\t\tconst loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];\n\t\t\tif (loader) {\n\t\t\t\tDYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {\n\t\t\t\t\tid: resolvedPath,\n\t\t\t\t\tfilename: resolvedPath,\n\t\t\t\t\tpath: dirname(resolvedPath),\n\t\t\t\t\texports: {},\n\t\t\t\t\tparent: DEFAULT_PARENT_MODULE,\n\t\t\t\t\tloaded: false,\n\t\t\t\t\tchildren: [],\n\t\t\t\t\tpaths: [],\n\t\t\t\t\trequire: function (path, base) {\n\t\t\t\t\t return commonjsRequire(path, (base === undefined || base === null) ? cachedModule.path : base);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\ttry {\n\t\t\t\t\tloader.call(commonjsGlobal, cachedModule, cachedModule.exports);\n\t\t\t\t} catch (error) {\n\t\t\t\t\tdelete DYNAMIC_REQUIRE_CACHE[resolvedPath];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t\tcachedModule.loaded = true;\n\t\t\t\treturn cachedModule.exports;\n\t\t\t};\n\t\t}\n\t\tif (!shouldTryNodeModules) break;\n\t\tconst nextDir = normalize(originalModuleDir + '/..');\n\t\tif (nextDir === originalModuleDir) break;\n\t\toriginalModuleDir = nextDir;\n\t}\n\treturn require(path);\n}\n\ncommonjsRequire.cache = DYNAMIC_REQUIRE_CACHE;\n":"\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');\n}\n",e}if(e.endsWith("?commonjs-external")){const t=e.slice(1,-"?commonjs-external".length),n=Mc(t);return t===Ic||"\0commonjs-dynamic-packages"===t?`import * as ${n} from ${JSON.stringify(t)}; export default ${n};`:`import ${n} from ${JSON.stringify(t)}; export default ${n};`}if("\0commonjs-dynamic-packages"===e){let e=`const { commonjsRegister } = require('${Ic}');`;var t,n=vc(a);try{for(n.s();!(t=n.n()).done;){const n=t.value;let r="index.js";try{Ct(Fe(n,"package.json"))&&(r=JSON.parse(wt(Fe(n,"package.json"),{encoding:"utf8"})).main||r)}catch(e){}e+=`\ncommonjsRegister(${JSON.stringify(Rc(n,c))}, function (module, exports) {\n module.exports = require(${JSON.stringify(jc(Fe(n,r)))});\n});`}}catch(e){n.e(e)}finally{n.f()}return e}let r=e;const i=r.startsWith("\0commonjs-dynamic-json:");i&&(r=r.slice("\0commonjs-dynamic-json:".length));const s=jc(r);if(i)return`require('${Ic}').commonjsRegister(${JSON.stringify(Rc(s,c))}, function (module, exports) {\n module.exports = require(${JSON.stringify(s)});\n});`;if(o.has(s)&&!s.endsWith(".json"))return`require('${Ic}').commonjsRegister(${JSON.stringify(Rc(s,c))}, function (module, exports) {\n ${wt(s,{encoding:"utf8"})}\n});`;if(r.endsWith("?commonjs-proxy")){r=Oc(r);const e=Mc(r);return function(e){let t=Kc.get(e);if(t)return t.promise;const n=new Promise(n=>{t={resolve:n,promise:void 0},Kc.set(e,t)});return t.promise=n,n}(r).then(t=>o.has(jc(r))&&!r.endsWith(".json")?`import {commonjsRequire} from '${Ic}'; const ${e} = commonjsRequire(${JSON.stringify(Rc(jc(r),c))}); export default (${e} && ${e}['default']) || ${e}`:t?`import { __moduleExports } from ${JSON.stringify(r)}; export default __moduleExports;`:u.has(r)?`import * as ${e} from ${JSON.stringify(r)}; export default ${e};`:h.has(r)?`export {default} from ${JSON.stringify(r)};`:`import * as ${e} from ${JSON.stringify(r)}; import {getCjsExportFromNamespace} from "${Ic}"; export default getCjsExportFromNamespace(${e})`)}if(l&&this.getModuleInfo(e).isEntry){let e;try{e=wt(r,{encoding:"utf8"})}catch(e){return this.warn(`Failed to read file ${r}, dynamic modules might not work correctly`),null}let t=Array.from(o).map(e=>`require(${JSON.stringify("\0commonjs-dynamic-register:"+e)});`).join("\n");return a.length&&(t+=`require(${JSON.stringify("\0commonjs-dynamic-register:\0commonjs-dynamic-packages")});`),e=`${t}\n${e}`,e}return null},transform(e,n){if(!("\0commonjs-dynamic-packages"===n||n.startsWith("\0commonjs-dynamic-json:")||r(n)&&-1!==t.indexOf(Pe(n))))return Wc(n,null),null;let i;try{i=m.call(this,e,n)}catch(e){i=null,Wc(n,!1),this.error(e,e.loc)}return i}}}function qc(e){void 0===e&&(e={});var t=zo(e.include,e.exclude),n="indent"in e?e.indent:"\t";return{name:"json",transform:function(r,i){if(".json"!==i.slice(-5)||!t(i))return null;try{var s=JSON.parse(r);return{code:Jo(s,{preferConst:e.preferConst,compact:e.compact,namedExports:e.namedExports,indent:n}),map:{mappings:""}}}catch(e){var o=parseInt(/[\d]/.exec(e.message)[0],10);return this.warn({message:"Could not parse JSON file",id:i,position:o}),null}}}}const{builtinModules:Yc}=class{static get builtinModules(){return["_http_agent","_http_client","_http_common","_http_incoming","_http_outgoing","_http_server","_stream_duplex","_stream_passthrough","_stream_readable","_stream_transform","_stream_wrap","_stream_writable","_tls_common","_tls_wrap","assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","fs/promises","http","http2","https","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","trace_events","tty","url","util","v8","vm","worker_threads","zlib"]}},Qc=["sys"];var Jc=Yc.filter(e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!Qc.includes(e)).sort(),Zc=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===eu}(e)}(e)},eu="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function tu(e,t){return!1!==t.clone&&t.isMergeableObject(e)?su((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function nu(e,t,n){return e.concat(t).map((function(e){return tu(e,n)}))}function ru(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function iu(e,t){try{return t in e}catch(e){return!1}}function su(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||nu,n.isMergeableObject=n.isMergeableObject||Zc,n.cloneUnlessOtherwiseSpecified=tu;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&ru(e).forEach((function(t){r[t]=tu(e[t],n)})),ru(t).forEach((function(i){(function(e,t){return iu(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(iu(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return su;var n=t.customMerge(e);return"function"==typeof n?n:su}(i,n)(e[i],t[i],n):r[i]=tu(t[i],n))})),r}(e,t,n):tu(t,n)}su.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return su(e,n,t)}),{})};var ou=su,au=/(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/,lu=/(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;function cu(e,t,n,r,i,s,o){try{var a=e[s](o),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function uu(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var s=e.apply(t,n);function o(e){cu(s,r,i,o,a,"next",e)}function a(e){cu(s,r,i,o,a,"throw",e)}o(void 0)}))}}function hu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw s}}return n}}(e,t)||pu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pu(e,t){if(e){if("string"==typeof e)return du(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?du(e,t):void 0}}function du(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const fu=vt(St.exists),mu=vt(St.readFile),gu=vt(St.realpath),_u=vt(St.stat),Eu=e=>{if("ENOENT"===e.code)return!1;throw e},yu=e=>{const t=new Map,n=function(){var n=uu((function*(n,r){!1===t.has(n)&&t.set(n,e(n).catch(e=>{throw t.delete(n),e}));try{const e=t.get(n);return r(null,yield e)}catch(e){return r(e)}}));return function(e,t){return n.apply(this,arguments)}}();return n.clear=()=>t.clear(),n},Tu=yu(function(){var e=uu((function*(e){try{return(yield _u(e)).isDirectory()}catch(e){return Eu(e)}}));return function(t){return e.apply(this,arguments)}}()),vu=yu(function(){var e=uu((function*(e){try{return(yield _u(e)).isFile()}catch(e){return Eu(e)}}));return function(t){return e.apply(this,arguments)}}()),Au=yu(mu),bu=vt(hn),Su=new Set(Jc),Cu=()=>null,xu={customResolveOptions:{},dedupe:[],extensions:[".mjs",".js",".json",".node"],resolveOnly:[]};function Du(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Nu(e,t){return t.length-e.length}function wu(e){void 0===e&&(e={});var t,n=zo(e.include,e.exclude),r=e.delimiters,i=(t=function(e){if(e.values)return Object.assign({},e.values);var t=Object.assign({},e);return delete t.delimiters,delete t.include,delete t.exclude,delete t.sourcemap,delete t.sourceMap,t}(e),Object.keys(t).reduce((function(e,n){var r,i=Object.assign({},e);return i[n]="function"==typeof(r=t[n])?r:function(){return r},i}),{})),s=Object.keys(i).sort(Nu).map(Du),o=r?new RegExp(Du(r[0])+"("+s.join("|")+")"+Du(r[1]),"g"):new RegExp("\\b("+s.join("|")+")\\b","g");return{name:"replace",renderChunk:function(e,t){var r=t.fileName;return s.length&&n(r)?a(e,r):null},transform:function(e,t){return s.length&&n(t)?a(e,t):null}};function a(t,n){var r=new _c(t);if(!function(e,t,n){for(var r,s=!1;r=o.exec(e);){s=!0;var a=r.index,l=a+r[0].length,c=String(i[r[1]](t));n.overwrite(a,l,c)}return s}(t,n,r))return null;var s={code:r.toString()};return!1!==e.sourceMap&&!1!==e.sourcemap&&(s.map=r.generateMap({hires:!0})),s}}!function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(n){!t.hasOwnProperty(n)||null===t[n]||"object"!=typeof t[n]&&"function"!=typeof t[n]||Object.isFrozen(t[n])||e(t[n])})),t}(ou({},xu));class Ou{constructor(e,t){this.buildId=-1,this.buildMessages=[],this.buildResults=null,this.bundleBuildCount=0,this.collections=[],this.completedTasks=[],this.components=[],this.componentGraph=new Map,this.data={},this.diagnostics=[],this.dirsAdded=[],this.dirsDeleted=[],this.entryModules=[],this.filesAdded=[],this.filesChanged=[],this.filesDeleted=[],this.filesUpdated=[],this.filesWritten=[],this.globalStyle=void 0,this.hasConfigChanges=!1,this.hasFinished=!1,this.hasHtmlChanges=!1,this.hasPrintedResults=!1,this.hasServiceWorkerChanges=!1,this.hasScriptChanges=!0,this.hasStyleChanges=!0,this.hydrateAppFilePath=null,this.indexBuildCount=0,this.indexDoc=void 0,this.isRebuild=!1,this.moduleFiles=[],this.outputs=[],this.packageJson={},this.packageJsonFilePath=null,this.pendingCopyTasks=[],this.requiresFullBuild=!0,this.scriptsAdded=[],this.scriptsDeleted=[],this.startTime=Date.now(),this.styleBuildCount=0,this.stylesPromise=null,this.stylesUpdated=[],this.timeSpan=null,this.transpileBuildCount=0,this.config=e,this.compilerCtx=t,this.buildId=++this.compilerCtx.activeBuildId,this.debug=e.logger.debug.bind(e.logger)}start(){const e=`${this.isRebuild?"rebuild":"build"}, ${this.config.fsNamespace}, ${this.config.devMode?"dev":"prod"} mode, started`,t={buildId:this.buildId,messages:[],progress:0};this.compilerCtx.events.emit("buildLog",t),this.timeSpan=this.createTimeSpan(e),this.timestamp=ku(),this.debug("start build, "+this.timestamp);const n={buildId:this.buildId,timestamp:this.timestamp};this.compilerCtx.events.emit("buildStart",n)}createTimeSpan(e,t){if(!this.hasFinished||t){t&&this.config.watch&&(e=`${this.config.logger.cyan("["+this.buildId+"]")} ${e}`);const n=this.config.logger.createTimeSpan(e,t,this.buildMessages);if(!t&&this.compilerCtx.events){const e={buildId:this.buildId,messages:this.buildMessages,progress:Ru(this.completedTasks)};this.compilerCtx.events.emit("buildLog",e)}return{duration:()=>n.duration(),finish:(e,r,i,s)=>{if((!this.hasFinished||t)&&(t&&this.config.watch&&(e=`${this.config.logger.cyan("["+this.buildId+"]")} ${e}`),n.finish(e,r,i,s),!t)){const e={buildId:this.buildId,messages:this.buildMessages.slice(),progress:Ru(this.completedTasks)};this.compilerCtx.events.emit("buildLog",e)}return n.duration()}}}return{duration:()=>0,finish:()=>0}}debug(e){this.config.logger.debug(e)}get hasError(){return Z(this.diagnostics)}get hasWarning(){return null!=(e=this.diagnostics)&&0!==e.length&&e.some(e=>"warn"===e.level);var e}progress(e){this.completedTasks.push(e)}async validateTypesBuild(){this.hasError||this.validateTypesPromise&&(this.config.watch||(this.debug("build, non-watch, waiting on validateTypes"),await this.validateTypesPromise,this.debug("build, non-watch, finished waiting on validateTypes")))}}const ku=()=>{const e=new Date;let t=e.getUTCFullYear()+"-";return t+=("0"+(e.getUTCMonth()+1)).slice(-2)+"-",t+=("0"+e.getUTCDate()).slice(-2)+"T",t+=("0"+e.getUTCHours()).slice(-2)+":",t+=("0"+e.getUTCMinutes()).slice(-2)+":",t+=("0"+e.getUTCSeconds()).slice(-2),t},Ru=e=>{let t=0;const n=Object.keys(Iu);return n.forEach((n,r)=>{e.includes(Iu[n])&&(t=r)}),(t+1)/n.length},Iu={emptyOutputTargets:{},transpileApp:{},generateStyles:{},generateOutputTargets:{},validateTypesBuild:{},writeBuildFiles:{}};class Mu{constructor(){this.version=2,this.activeBuildId=-1,this.activeFilesAdded=[],this.activeFilesDeleted=[],this.activeFilesUpdated=[],this.activeDirsAdded=[],this.activeDirsDeleted=[],this.cachedStyleMeta=new Map,this.collections=[],this.compilerOptions=null,this.events=Ke(),this.fsWatcher=null,this.hasFsWatcherEvents=!1,this.hasLoggedServerUrl=!1,this.hasSuccessfulBuild=!1,this.isActivelyBuilding=!1,this.lastBuildResults=null,this.lastBuildStyles=new Map,this.lastComponentStyleInput=new Map,this.moduleMap=new Map,this.nodeMap=new WeakMap,this.resolvedCollections=new Set,this.rollupCacheHydrate=null,this.rollupCacheLazy=null,this.rollupCacheNative=null,this.rootTsFiles=[],this.tsService=null,this.styleModeNames=new Set,this.rollupCache=new Map,this.changedModules=new Set,this.changedFiles=new Set,this.worker=null}reset(){this.cache.clear(),this.cachedStyleMeta.clear(),this.cachedGlobalStyle=null,this.collections.length=0,this.compilerOptions=null,this.lastComponentStyleInput.clear(),this.rollupCacheHydrate=null,this.rollupCacheLazy=null,this.rollupCacheNative=null,this.moduleMap.clear(),this.resolvedCollections.clear(),this.rootTsFiles.length=0,this.tsService=null,null!=this.fs&&this.fs.clearCache()}}const Pu=(e,t,n)=>{n=ae(n);const r=t.moduleMap.get(n);if(null!=r)return r;{const e=Me(n),r=Pe(n),i=Ie(n,r),s={sourceFilePath:n,jsFilePath:Fe(e,i+".js"),cmps:[],coreRuntimeApis:[],collectionName:null,dtsFilePath:null,excludeFromCollection:!1,externalImports:[],hasVdomAttribute:!1,hasVdomXlink:!1,hasVdomClass:!1,hasVdomFunctional:!1,hasVdomKey:!1,hasVdomListener:!1,hasVdomPropOrAttr:!1,hasVdomRef:!1,hasVdomRender:!1,hasVdomStyle:!1,hasVdomText:!1,htmlAttrNames:[],htmlTagNames:[],htmlParts:[],isCollectionDependency:!1,isLegacy:!1,localImports:[],originalCollectionComponentPath:null,originalImports:[],potentialCmpRefs:[],staticSourceFile:null,staticSourceFileText:""};return t.moduleMap.set(n,s),s}},Lu=e=>Xn.isCallExpression(e.expression)?e.expression.arguments.map(Fu):[],Fu=e=>{if(Xn.isObjectLiteralExpression(e))return Ps(e);if(Xn.isStringLiteral(e))return e.text;throw new Error("invalid decorator argument: "+e.getText())},Bu=e=>t=>Xn.isCallExpression(t.expression)&&t.expression.expression.getText()===e,$u=e=>{const t=Me(e),n=Pe(e),r=Ie(e,n);return Fe(t,r+".css")},Uu=e=>Array.isArray(e)?e:e?[e]:[],Vu=(e,t,n,r,i,s)=>{const[o]=Lu(s);if(!o)return;if(!Hu(e,n,t,o,r,s))return;i.push(Rs("is",ws(o.tag.trim()))),o.shadow?(i.push(Rs("encapsulation",ws("shadow"))),"boolean"!=typeof o.shadow&&!0===o.shadow.delegatesFocus&&i.push(Rs("delegatesFocus",ws(!0)))):o.scoped&&i.push(Rs("encapsulation",ws("scoped"))),((e,t)=>{const n=[];t.styleUrls&&(Array.isArray(t.styleUrls)?n.push(...Uu(t.styleUrls)):n.push(...Uu(t.styleUrls.$))),t.styleUrl&&n.push(...Uu(t.styleUrl));let r={};if(t.styleUrls&&!Array.isArray(t.styleUrls)&&(r=(e=>{const t={};return Object.keys(e).forEach(n=>{t[n]=Uu(e[n])}),t})(t.styleUrls)),n.length>0&&(r.$=n),Object.keys(r).length>0){const t=ws(r);e.push(Rs("originalStyleUrls",t));const n=(e=>{const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].map(e=>$u(e))}),t})(r),i=ws(n);e.push(Rs("styleUrls",i))}if("string"==typeof t.styles){const n=t.styles.trim();n.length>0&&e.push(Rs("styles",Xn.createLiteral(n)))}else if(t.styles){const n=t.styles;if(n.__identifier){const t=n.__escapedText;e.push(Rs("styles",Xn.createIdentifier(t)))}else"object"==typeof n&&Object.keys(n).length>0&&e.push(Rs("styles",ws(n)))}})(i,o);let a=o.assetsDirs||[];o.assetsDir&&(a=[...a,o.assetsDir]),a.length>0&&i.push(Rs("assetsDirs",ws(a)))},Hu=(e,t,n,r,i,s)=>{const o=i.heritageClauses&&i.heritageClauses.find(e=>e.token===Xn.SyntaxKind.ExtendsKeyword);if(o){const e=q(t);return e.messageText="Classes decorated with @Component can not extend from a base class.\n Rindo needs to be able to switch between different base classes in order to implement the different output targets such as: lazy and raw web components.",_e(e,o),!1}if(r.shadow&&r.scoped){const e=q(t);return e.messageText='Components cannot be "scoped" and "shadow" at the same time, they are mutually exclusive configurations.',_e(e,Gu("scoped",s)),!1}const a=i.members.find(Xn.isConstructorDeclaration);if(a&&a.parameters.length>0){const e=q(t);return e.messageText='Classes decorated with @Component can not have a "constructor" that takes arguments.\n All data required by a component must be passed by using class properties decorated with @Prop()',_e(e,a.parameters[0]),!1}const l=i.decorators&&i.decorators.find(e=>e!==s);if(l){const e=q(t);return e.messageText="Classes decorated with @Component can not be decorated with more decorators.\n Rindo performs extensive static analysis on top of your components in order to generate the necessary metadata, runtime decorators at the components level make this task very hard.",_e(e,l),!1}const c=r.tag;if("string"!=typeof c||0===c.trim().length){const e=q(t);return e.messageText="tag missing in component decorator",_e(e,s),!1}const u=Ne(c);if(u){const e=q(t);return e.messageText=u+". Please refer to https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name for more info.",_e(e,Gu("tag",s)),!1}if(!e._isTesting){const e=n.getExportsOfModule(n.getSymbolAtLocation(i.getSourceFile())).filter(e=>0==(e.flags&(Xn.SymbolFlags.Interface|Xn.SymbolFlags.TypeAlias))).filter(e=>e.name!==i.name.text);if(e.forEach(e=>{const n=q(t);n.messageText="To allow efficient bundling, modules using @Component() can only have a single export which is the component class itself.\n Any other exports should be moved to a separate file.\n For further information check out: https://rindojs.com/docs/module-bundling";const r=e.valueDeclaration?e.valueDeclaration:e.declarations[0];_e(n,r)}),e.length>0)return!1}return!0},Gu=(e,t)=>{if(Xn.isDecorator(t)&&Xn.isCallExpression(t.expression)){const n=t.expression.arguments[0];Xn.isObjectLiteralExpression(n)&&n.properties.forEach(n=>{Xn.isPropertyAssignment(n)&&n.name.getText()===e&&(t=n.initializer)})}return t},ju=(e,t)=>e&&"string"==typeof e.eventName&&e.eventName.trim().length>0?e.eventName.trim():t,Ku=(e,t)=>{const n=t.getSourceFile(),r=t.type?Wu(t.type):null;return{original:r?r.getText():"any",resolved:r?Gs(e,e.getTypeFromTypeNode(r)):"any",references:r?Bs(r,n):{}}},Wu=e=>Xn.isTypeReferenceNode(e)&&Xn.isIdentifier(e.typeName)&&"EventEmitter"===e.typeName.text&&e.typeArguments&&e.typeArguments.length>0?e.typeArguments[0]:null,zu=(e,t,n)=>{if(/^[A-Z]/.test(n)){const n=Y(e);return n.messageText=["In order to be compatible with all event listeners on elements, the event name ","cannot start with a capital letter. ","Please lowercase the first character for the event to best work with all listeners."].join(""),void _e(n,t)}if(/^on[A-Z]/.test(n)){const r=Y(e),i=n[2].toLowerCase()+n.slice(3);return r.messageText=`Events decorated with @Event() should describe the actual DOM event name, not the handler. In other words "${n}" would be better named as "${i}".`,void _e(r,t)}if(Xu.has(n.toLowerCase())){const r=Y(e);return r.messageText=`The event name conflicts with the "${n}" native DOM event name.`,void _e(r,t)}},Xu=new Set(["CheckboxStateChange","DOMContentLoaded","DOMMenuItemActive","DOMMenuItemInactive","DOMMouseScroll","MSManipulationStateChanged","MSPointerHover","MozAudioAvailable","MozGamepadButtonDown","MozGamepadButtonUp","MozMousePixelScroll","MozOrientation","MozScrolledAreaChanged","RadioStateChange","SVGAbort","SVGError","SVGLoad","SVGResize","SVGScroll","SVGUnload","SVGZoom","abort","afterprint","afterscriptexecute","alerting","animationcancel","animationend","animationiteration","animationstart","appinstalled","audioend","audioprocess","audiostart","auxclick","beforeinstallprompt","beforeprint","beforescriptexecute","beforeunload","beginEvent","blur","boundary","broadcast","busy","callschanged","canplay","canplaythrough","cardstatechange","cfstatechange","change","chargingchange","chargingtimechange","checking","click","command","commandupdate","compassneedscalibration","complete","compositionend","compositionstart","compositionupdate","connected","connecting","connectionInfoUpdate","contextmenu","copy","cut","datachange","dataerror","dblclick","delivered","devicechange","devicemotion","deviceorientation","dialing","disabled","dischargingtimechange","disconnected","disconnecting","downloading","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","enabled","end","endEvent","ended","error","focus","focusin","focusout","fullscreenchange","fullscreenerror","gamepadconnected","gamepaddisconnected","gotpointercapture","hashchange","held","holding","icccardlockerror","iccinfochange","incoming","input","invalid","keydown","keypress","keyup","languagechange","levelchange","load","loadeddata","loadedmetadata","loadend","loadstart","localized","lostpointercapture","mark","message","messageerror","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","mozbrowseractivitydone","mozbrowserasyncscroll","mozbrowseraudioplaybackchange","mozbrowsercaretstatechanged","mozbrowserclose","mozbrowsercontextmenu","mozbrowserdocumentfirstpaint","mozbrowsererror","mozbrowserfindchange","mozbrowserfirstpaint","mozbrowsericonchange","mozbrowserloadend","mozbrowserloadstart","mozbrowserlocationchange","mozbrowsermanifestchange","mozbrowsermetachange","mozbrowseropensearch","mozbrowseropentab","mozbrowseropenwindow","mozbrowserresize","mozbrowserscroll","mozbrowserscrollareachanged","mozbrowserscrollviewchange","mozbrowsersecuritychange","mozbrowserselectionstatechanged","mozbrowsershowmodalprompt","mozbrowsertitlechange","mozbrowserusernameandpasswordrequired","mozbrowservisibilitychange","moztimechange","msContentZoom","nomatch","notificationclick","noupdate","obsolete","offline","online","orientationchange","overflow","pagehide","pageshow","paste","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","pointerlockerror","pointermove","pointerout","pointerover","pointerup","popstate","popuphidden","popuphiding","popupshowing","popupshown","progress","push","pushsubscriptionchange","ratechange","readystatechange","received","repeatEvent","reset","resize","resourcetimingbufferfull","result","resume","resuming","scroll","seeked","seeking","select","selectionchange","selectstart","sent","show","slotchange","smartcard-insert","smartcard-remove","soundend","soundstart","speechend","speechstart","stalled","start","statechange","statuschange","stkcommand","stksessionend","storage","submit","suspend","timeout","timeupdate","touchcancel","touchend","touchenter","touchleave","touchmove","touchstart","transitioncancel","transitionend","transitionrun","transitionstart","underflow","unload","updateready","userproximity","ussdreceived","visibilitychange","voicechange","voiceschanged","volumechange","vrdisplayactivate","vrdisplayblur","vrdisplayconnect","vrdisplaydeactivate","vrdisplaydisconnect","vrdisplayfocus","vrdisplaypresentchange","waiting","wheel"].map(e=>e.toLowerCase())),qu=(e,t,n={},r,i)=>{let s=t.trim(),o=n.target;if(!o){const n=t.split(":"),a=n[0].toLowerCase().trim();if(n.length>1&&Yu(a)){s=n[1].trim(),o=a;const t=Y(e);t.messageText=`Deprecated @Listen() feature on "${r}". Use @Listen('${s}', { target: '${a}' }) instead.`,_e(t,i)}}const[a,l,c]=s.split(".");if(void 0===c&&Qu(l)){s=a;const t=q(e);t.messageText=`Deprecated @Listen() feature on "${r}". Using "${s}" is no longer supported, use "event.key" within the function itself instead.`,_e(t,i)}return{name:s,method:r,target:o,capture:"boolean"==typeof n.capture&&n.capture,passive:"boolean"==typeof n.passive?n.passive:Ju.has(s.toLowerCase())}},Yu=e=>Zu.has(e),Qu=e=>eh.has(e),Ju=new Set(["dragstart","drag","dragend","dragenter","dragover","dragleave","drop","mouseenter","mouseover","mousemove","mousedown","mouseup","mouseleave","mouseout","mousewheel","pointerover","pointerenter","pointerdown","pointermove","pointerup","pointercancel","pointerout","pointerleave","resize","scroll","touchstart","touchmove","touchend","touchenter","touchleave","touchcancel","wheel"]),Zu=new Set(["parent","body","document","window"]),eh=new Set(["enter","escape","space","tab","up","right","down","left"]),th=(e,t,n,r,i)=>{if(rh.has(t.toLowerCase())){const s=Y(e);return s.messageText=[`The ${n} name "${t}" is a reserved public name. `,`Please rename the "${t}" ${r} so it does not conflict with an existing standardized prototype member. `,`Reusing ${r} names that are already defined on the element's prototype may cause `,"unexpected runtime errors or user-interface issues on various browsers, so it's best to avoid them entirely."].join(""),void _e(s,i)}},nh=["title","lang","translate","dir","tabIndex","accessKey","draggable","contentEditable","isContentEditable","offsetParent","offsetTop","offsetLeft","offsetWidth","offsetHeight","style","innerText","outerText","oncopy","oncut","onpaste","onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onresize","onscroll","onseeked","onseeking","onselect","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","onvolumechange","onwaiting","onwheel","onauxclick","ongotpointercapture","onlostpointercapture","onpointerdown","onpointermove","onpointerup","onpointercancel","onpointerover","onpointerout","onpointerenter","onpointerleave","onselectstart","onselectionchange","nonce","click","focus","blur","namespaceURI","prefix","localName","tagName","id","className","classList","slot","attributes","shadowRoot","assignedSlot","innerHTML","outerHTML","scrollTop","scrollLeft","scrollWidth","scrollHeight","clientTop","clientLeft","clientWidth","clientHeight","attributeStyleMap","onbeforecopy","onbeforecut","onbeforepaste","onsearch","previousElementSibling","nextElementSibling","children","firstElementChild","lastElementChild","childElementCount","onfullscreenchange","onfullscreenerror","onwebkitfullscreenchange","onwebkitfullscreenerror","setPointerCapture","releasePointerCapture","hasPointerCapture","hasAttributes","getAttributeNames","getAttribute","getAttributeNS","setAttribute","setAttributeNS","removeAttribute","removeAttributeNS","hasAttribute","hasAttributeNS","toggleAttribute","getAttributeNode","getAttributeNodeNS","setAttributeNode","setAttributeNodeNS","removeAttributeNode","closest","matches","webkitMatchesSelector","attachShadow","getElementsByTagName","getElementsByTagNameNS","getElementsByClassName","insertAdjacentElement","insertAdjacentText","insertAdjacentHTML","requestPointerLock","getClientRects","getBoundingClientRect","scrollIntoView","scroll","scrollTo","scrollBy","scrollIntoViewIfNeeded","animate","computedStyleMap","before","after","replaceWith","remove","prepend","append","querySelector","querySelectorAll","requestFullscreen","webkitRequestFullScreen","webkitRequestFullscreen","part","createShadowRoot","getDestinationInsertionPoints","ELEMENT_NODE","ATTRIBUTE_NODE","TEXT_NODE","CDATA_SECTION_NODE","ENTITY_REFERENCE_NODE","ENTITY_NODE","PROCESSING_INSTRUCTION_NODE","COMMENT_NODE","DOCUMENT_NODE","DOCUMENT_TYPE_NODE","DOCUMENT_FRAGMENT_NODE","NOTATION_NODE","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_PRECEDING","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","nodeType","nodeName","baseURI","isConnected","ownerDocument","parentNode","parentElement","childNodes","firstChild","lastChild","previousSibling","nextSibling","nodeValue","textContent","hasChildNodes","getRootNode","normalize","cloneNode","isEqualNode","isSameNode","compareDocumentPosition","contains","lookupPrefix","lookupNamespaceURI","isDefaultNamespace","insertBefore","appendChild","replaceChild","removeChild","ref","key"].map(e=>e.toLowerCase()),rh=new Set(nh),ih=e=>/^Promise<.+>$/.test(e),sh=(e,t,n,r)=>{if(null!==n.attribute){if("string"==typeof n.attribute&&n.attribute.trim().length>0)return n.attribute.trim().toLowerCase();if("string"==typeof n.attr&&n.attr.trim().length>0){const t=Y(e);return t.messageText='@Prop option "attr" has been deprecated. Please use "attribute" instead.',_e(t,r),n.attr.trim().toLowerCase()}return x(t)}},oh=(e,t)=>"boolean"==typeof t.reflect?t.reflect:"boolean"==typeof t.reflectToAttr&&t.reflectToAttr,ah=(e,t)=>null==e.expression?{}:e.expression.arguments.map(e=>{try{const t=`return ${e.getText()};`;return new Function(t)()}catch(e){J(t,e,"parse prop options: "+e)}})[0]||{},lh=(e,t,n)=>{const r=t.type;return{original:r?r.getText():js(e,n),resolved:Gs(e,n),references:Bs(t,t.getSourceFile())}},ch=e=>{if(uh(e,fh))return"any";const t=uh(e,dh),n=uh(e,ph),r=uh(e,hh);return Number(t)+Number(n)+Number(r)>1?"any":t?"string":n?"number":r?"boolean":"unknown"},uh=(e,t)=>!!(e.flags&Xn.TypeFlags.Union&&e.types.some(e=>uh(e,t)))||t(e),hh=e=>!!e&&!!(e.flags&(Xn.TypeFlags.Boolean|Xn.TypeFlags.BooleanLike|Xn.TypeFlags.BooleanLike)),ph=e=>!!e&&!!(e.flags&(Xn.TypeFlags.Number|Xn.TypeFlags.NumberLike|Xn.TypeFlags.NumberLiteral)),dh=e=>!!e&&!!(e.flags&(Xn.TypeFlags.String|Xn.TypeFlags.StringLike|Xn.TypeFlags.StringLiteral)),fh=e=>!!e&&!!(e.flags&Xn.TypeFlags.Any),mh=(e,t)=>{const n=t.findIndex(t=>e===t);n>=0&&t.splice(n,1)},gh=Bu("Watch"),_h=Bu("PropWillChange"),Eh=Bu("PropDidChange"),yh=(e,t,n)=>r=>{const i=s=>Xn.isClassDeclaration(s)?Th(e,t,n,s):Xn.visitEachChild(s,i,r);return e=>Xn.visitEachChild(e,i,r)},Th=(e,t,n,r)=>{if(!r.decorators)return r;const i=r.decorators.find(Bu("Component"));if(!i)return r;const s=r.members.filter(e=>Array.isArray(e.decorators)&&e.decorators.length>0),o=vh(Array.from(r.members));Vu(e,n,t,r,o,i);const a=new Set;return s.length>0&&(((e,t,n,r,i)=>{const s=[],o=[],a=t.filter(Xn.isPropertyDeclaration).map(t=>((e,t,n,r,i,s,o)=>{const a=n.decorators.find(Bu("Prop"));if(null==a)return null;const l=n.name.getText(),c=ah(a,e);if(c.context)return r.push({name:l,context:c.context}),mh(n,o),null;if(c.connect)return i.push({name:l,connect:c.connect}),mh(n,o),null;if(Ns(n)){const t=q(e);t.messageText='Properties decorated with the @Prop() decorator cannot be "private" nor "protected". More info: https://rindojs.web.app/docs/properties',_e(t,n.modifiers[0])}if(/^on(-|[A-Z])/.test(l)){const t=Y(e);t.messageText=`The @Prop() name "${l}" looks like an event. Please use the "@Event()" decorator to expose events instead, not properties or methods.`,_e(t,n.name)}else th(e,l,"@Prop()","prop",n.name);const u=t.getSymbolAtLocation(n.name),h=t.getTypeAtLocation(n),p=ch(h),d={type:p,mutable:!!c.mutable,complexType:lh(t,n,h),required:void 0!==n.exclamationToken&&"mode"!==l,optional:void 0!==n.questionToken,docs:Ys(t,u)};Vs(e,d.complexType.references,n.type),"unknown"!==p&&(d.attribute=sh(e,l,c,a),d.reflect=oh(e,c));const f=n.initializer;f&&(d.defaultValue=f.getText());const m=Xn.createPropertyAssignment(Xn.createLiteral(l),ws(d));return s.add(l),m})(e,n,t,o,s,r,i)).filter(e=>null!=e);a.length>0&&i.push(Rs("properties",Xn.createObjectLiteral(a,!0))),o.length>0&&i.push(Rs("contextProps",ws(o))),s.length>0&&i.push(Rs("connectProps",ws(s)))})(t,s,n,a,o),((e,t,n,r,i)=>{const s=t.filter(Xn.isPropertyDeclaration).map(e=>((e,t)=>{if(null==e.decorators.find(Bu("State")))return null;const n=e.name.getText();return t.add(n),Xn.createPropertyAssignment(Xn.createLiteral(n),Xn.createObjectLiteral([],!0))})(e,r)).filter(e=>!!e);s.length>0&&i.push(Rs("states",Xn.createObjectLiteral(s,!0)))})(0,s,0,a,o),((e,t,n,r)=>{const i=t.filter(Xn.isPropertyDeclaration).map(t=>((e,t,n)=>{const r=n.decorators.find(Bu("Event"));if(null==r)return null;const[i]=Lu(r),s=n.name.getText();if(!s)return null;const o=t.getSymbolAtLocation(n.name),a=ju(i,s);zu(e,n.name,a);const l={method:s,name:a,bubbles:!i||"boolean"!=typeof i.bubbles||i.bubbles,cancelable:!i||"boolean"!=typeof i.cancelable||i.cancelable,composed:!i||"boolean"!=typeof i.composed||i.composed,docs:Ys(t,o),complexType:Ku(t,n)};return Vs(e,l.complexType.references,n.type),l})(e,n,t)).filter(e=>!!e);i.length>0&&r.push(Rs("events",ws(i)))})(t,s,n,o),((e,t,n,r,i,s)=>{const o=n.getSourceFile(),a=r.filter(Xn.isMethodDeclaration).map(n=>((e,t,n,r,i)=>{if(null==i.decorators.find(Bu("Method")))return null;const s=i.name.getText(),o=Xn.TypeFormatFlags.WriteArrowStyleSignature|Xn.TypeFormatFlags.NoTruncation,a=r.getSignatureFromDeclaration(i),l=r.getReturnTypeOfSignature(a),c=r.typeToTypeNode(l);let u=js(r,l),h=r.signatureToString(a,i,o,Xn.SignatureKind.Call);if(!e._isTesting)if("void"===u){const e=Y(t);e.header="@Method requires async",e.messageText=`External @Method() ${s}() must return a Promise.\n\n Consider prefixing the method with async, such as @Method() async ${s}().`,_e(e,i.name),u="Promise<void>",h=h.replace(/=> void$/,"=> Promise<void>")}else if(!ih(u)){const e=q(t);e.header="@Method requires async",e.messageText=`External @Method() ${s}() must return a Promise.\n\n Consider prefixing the method with async, such as @Method() async ${s}().`,_e(e,i.name)}if(Ns(i)){const e=q(t);e.messageText='Methods decorated with the @Method() decorator cannot be "private" nor "protected". More info: https://rindojs.web.app/docs/methods',_e(e,i.modifiers[0])}th(t,s,"@Method()","method",i.name);const p={complexType:{signature:h,parameters:a.parameters.map(e=>Ys(r,e)),references:Object.assign(Object.assign({},Bs(c,n)),Bs(i,n)),return:u},docs:{text:Xn.displayPartsToString(a.getDocumentationComment(r)),tags:a.getJsDocTags()}};return Vs(t,p.complexType.references,i.type||i.name),Xn.createPropertyAssignment(Xn.createLiteral(s),ws(p))})(e,t,o,i,n)).filter(e=>!!e);a.length>0&&s.push(Rs("methods",Xn.createObjectLiteral(a,!0)))})(e,t,r,s,n,o),((e,t,n,r)=>{const i=t.filter(Xn.isPropertyDeclaration).map(e=>((e,t,n)=>null==(n.decorators&&n.decorators.find(Bu("Element")))?null:n.name.getText())(0,0,e)).filter(e=>!!e);i.length>0&&(r.push(Rs("elementRef",Xn.createLiteral(i[0]))),i.length>1)&&(q(e).messageText="It's not valid to add more than one Element() decorator")})(t,s,0,o),((e,t,n,r,i)=>{const s=n.filter(Xn.isMethodDeclaration).map(n=>((e,t,n,r)=>{const i=r.name.getText();return r.decorators.filter(e=>gh(e)||_h(e)||Eh(e)).map(r=>{const[s]=Lu(r);if(!n.has(s)){const n=e.devMode?Y(t):q(t);n.messageText=`@Watch('${s}') is trying to watch for changes in a property that does not exist.\n Make sure only properties decorated with @State() or @Prop() are watched.`,_e(n,r)}return{propName:s,methodName:i}})})(e,t,r,n)),o=k(s);o.length>0&&i.push(Rs("watchers",ws(o)))})(e,t,s,a,o),((e,t,n)=>{const r=t.filter(Xn.isMethodDeclaration).map(t=>((e,t)=>{const n=t.decorators.filter(Bu("Listen"));return 0===n.length?[]:n.map(n=>{const r=t.name.getText(),[i,s]=Lu(n),o=i.split(",");if(o.length>1){const t=q(e);t.messageText="Please use multiple @Listen() decorators instead of comma-separated names.",_e(t,n)}return qu(e,o[0],s,r,n)})})(e,t)),i=k(r);i.length>0&&n.push(Rs("listeners",ws(i)))})(t,s,o)),Xn.updateClassDeclaration(r,Ah(r,xs),r.modifiers,r.name,r.typeParameters,r.heritageClauses,o)},vh=e=>e.map(e=>{const t=e.decorators,n=Ah(e,Ds);if(t!==n){if(Xn.isMethodDeclaration(e))return Xn.updateMethod(e,n,e.modifiers,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);if(Xn.isPropertyDeclaration(e))return Xn.updateProperty(e,n,e.modifiers,e.name,e.questionToken,e.type,e.initializer);console.log("unknown class node")}return e}),Ah=(e,t)=>{if(e.decorators){const n=e.decorators.filter(e=>{const n=Xn.isCallExpression(e.expression)&&Xn.isIdentifier(e.expression.expression)&&e.expression.expression.text;return!t.has(n)});if(0===n.length)return;if(n.length!==e.decorators.length)return Xn.createNodeArray(n)}return e.decorators},bh="__rindo_h",Sh={attachShadow:"attachShadow as __rindo_attachShadow",createEvent:"createEvent as __rindo_createEvent",defineCustomElement:"defineCustomElement as __rindo_defineCustomElement",getConnect:"getConnect as __rindo_getConnect",getContext:"getContext as __rindo_getContext",getElement:"getElement as __rindo_getElement",h:"h as "+bh,legacyH:"h",Host:"Host as __rindo_Host",HTMLElement:"HTMLElement",proxyCustomElement:"proxyCustomElement as __rindo_proxyCustomElement",registerHost:"registerHost as __rindo_registerHost",registerInstance:"registerInstance as __rindo_registerInstance"},Ch=(e,t)=>{e.coreRuntimeApis.includes(t)||e.coreRuntimeApis.push(t)},xh=e=>{Ch(e,Sh.legacyH)},Dh=(e,t)=>{if(null!=t.arguments&&t.arguments.length>0)if(Xn.isIdentifier(t.expression))Nh(e,t.expression,t.arguments);else if(Xn.isPropertyAccessExpression(t.expression)){const n=t.expression.name;Xn.isIdentifier(n)&&n&&Nh(e,n,t.arguments)}},Nh=(e,t,n)=>{const r=t.escapedText;if("h"===r||r===bh||"createElement"===r)wh(e,n[0]),"h"!==r&&r!==bh||((e,t)=>{e.hasVdomRender=!0;const n=t[0];if(Xn.isStringLiteral(n)||Xn.isIdentifier(n)&&"Host"===n.text||(e.hasVdomFunctional=!0),t.length>1){const n=t[1];Xn.isCallExpression(n)||Xn.isIdentifier(n)?(e.hasVdomAttribute=!0,e.hasVdomClass=!0,e.hasVdomKey=!0,e.hasVdomListener=!0,e.hasVdomPropOrAttr=!0,e.hasVdomRef=!0,e.hasVdomStyle=!0,e.hasVdomXlink=!0):Xn.isObjectLiteralExpression(n)&&n.properties.forEach(t=>{if(e.hasVdomAttribute=!0,Xn.isSpreadAssignment(t)||Xn.isComputedPropertyName(t.name))e.hasVdomClass=!0,e.hasVdomKey=!0,e.hasVdomListener=!0,e.hasVdomPropOrAttr=!0,e.hasVdomRef=!0,e.hasVdomStyle=!0,e.hasVdomXlink=!0;else if(t.name&&t.name.text&&t.name.text.length>0){const n=t.name.text;"key"===n?e.hasVdomKey=!0:"ref"===n?e.hasVdomRef=!0:"class"===n||"className"===n?e.hasVdomClass=!0:"style"===n?e.hasVdomStyle=!0:/^on(-|[A-Z])/.test(n)?e.hasVdomListener=!0:n.startsWith("xlink")?(e.hasVdomXlink=!0,e.hasVdomPropOrAttr=!0):e.hasVdomPropOrAttr=!0,"part"===n&&Xn.isPropertyAssignment(t)&&Xn.isStringLiteral(t.initializer)&&e.htmlParts.push(...t.initializer.text.toLowerCase().split(" ").filter(e=>e.length>0)),e.htmlAttrNames.push(n)}})}if(!e.hasVdomText)for(let n=2;n<t.length;n++){const r=t[n];if(!Xn.isCallExpression(r)||!Xn.isIdentifier(r.expression)||"h"!==r.expression.text){e.hasVdomText=!0;break}}})(e,n);else if(n.length>1&&"createElementNS"===r)wh(e,n[1]);else if("require"===r&&n.length>0&&e.originalImports){const t=n[0];Xn.isStringLiteral(t)&&(e.originalImports.includes(t.text)||e.originalImports.push(t.text))}},wh=(e,t)=>{if(Xn.isStringLiteral(t)){let n=t.text;"string"==typeof n&&(n=n.toLowerCase(),e.htmlTagNames.push(n),n.includes("-")&&e.potentialCmpRefs.push(n))}},Oh=e=>{e.properties.length>0&&(e.hasProp=!0,e.hasPropMutable=e.properties.some(e=>e.mutable),e.hasReflect=e.properties.some(e=>e.reflect),e.hasAttribute=e.properties.some(e=>"string"==typeof e.attribute),e.hasPropBoolean=e.properties.some(e=>"boolean"===e.type),e.hasPropNumber=e.properties.some(e=>"number"===e.type),e.hasPropString=e.properties.some(e=>"string"===e.type)),e.states.length>0&&(e.hasState=!0),e.watchers.length>0&&(e.hasWatchCallback=!0),e.methods.length>0&&(e.hasMethod=!0),e.events.length>0&&(e.hasEvent=!0),e.listeners.length>0&&(e.hasListener=!0,e.hasListenerTargetWindow=e.listeners.some(e=>"window"===e.target),e.hasListenerTargetDocument=e.listeners.some(e=>"document"===e.target),e.hasListenerTargetBody=e.listeners.some(e=>"body"===e.target),e.hasListenerTargetParent=e.listeners.some(e=>"parent"===e.target),e.hasListenerTarget=e.listeners.some(e=>!!e.target)),e.hasMember=e.hasProp||e.hasState||e.hasElement||e.hasMethod,e.isUpdateable=e.hasProp||e.hasState,e.styles.length>0&&(e.hasStyle=!0,e.hasMode=e.styles.some(e=>"$"!==e.modeName)),e.hasLifecycle=e.hasComponentWillLoadFn||e.hasComponentDidLoadFn||e.hasComponentShouldUpdateFn||e.hasComponentWillUpdateFn||e.hasComponentDidUpdateFn||e.hasComponentWillRenderFn||e.hasComponentDidRenderFn,e.isPlain=!(e.hasMember||e.hasStyle||e.hasLifecycle||e.hasListener||e.hasVdomRender)};function kh(e){return e.tag}function Rh(e){return e.componentClass}function Ih(e,t){const n=t.styles;return n?Object.keys(n).map(r=>function(e,t,n,r){const i={modeName:r,styleId:t.tag,styleStr:n.style,styleIdentifier:null,externalStyles:[],compiledStyleText:null,compiledStyleTextScoped:null,compiledStyleTextScopedCommented:null};return Array.isArray(n.stylePaths)&&n.stylePaths.forEach(n=>{const r={absolutePath:ae(Fe(e,n)),relativePath:ae($e(Me(t.componentPath),n)),originalComponentPath:n};i.externalStyles.push(r)}),i}(e,t,n[r],r.toLowerCase())):[]}function Mh(e,t){return Kh(t.assetPaths)?[]:t.assetPaths.map(n=>({absolutePath:ae(Fe(e,n)),cmpRelativePath:ae($e(Me(t.componentPath),n)),originalComponentPath:ae(n)})).sort((e,t)=>e.cmpRelativePath<t.cmpRelativePath?-1:e.cmpRelativePath>t.cmpRelativePath?1:0)}function Ph(e){const t=e.props;return Kh(t)?[]:t.map(e=>{const t=function(e){switch(e){case"String":return"string";case"Any":return"any";case"Number":return"number";case"Boolean":return"boolean";default:return"unknown"}}(e.type);return{name:e.name,attribute:"string"==typeof e.attr?e.attr:null,mutable:!!e.mutable,optional:!0,required:!1,reflect:!!e.reflectToAttr,type:t,internal:!1,complexType:{original:"unknown"===t?"any":t,resolved:t,references:{}},docs:{text:"",tags:[]}}})}function Lh(e){const t=e.connect;return Kh(t)?[]:t.map(e=>({name:e.name,connect:e.tag}))}function Fh(e){const t=e.context;return Kh(t)?[]:t.map(e=>({name:e.name,context:e.id}))}function Bh(e){return Kh(e.states)?[]:e.states.map(e=>({name:e.name}))}function $h(e){if(Kh(e.props))return[];const t=[];return e.props.filter(e=>e.watch&&e.watch.length>0).forEach(e=>{e.watch.forEach(n=>{t.push({propName:e.name,methodName:n})})}),t}function Uh(e){const t=e.listeners;return Kh(t)?[]:t.map(e=>({name:e.event,method:e.method,target:void 0,passive:!1!==e.passive,capture:!1!==e.capture}))}function Vh(e){return Kh(e.methods)?[]:e.methods.map(e=>({name:e.name,internal:!1,complexType:{signature:"(...args: any[]) => Promise<any>",parameters:[],return:"Promise<any>",references:{}},docs:{text:"",tags:[]}}))}function Hh(e){if(e.hostElement)return e.hostElement.name}function Gh(e){const t=e.events;return Kh(t)?[]:t.map(e=>({name:e.event,method:e.method?e.method:e.event,bubbles:!1!==e.bubbles,cancelable:!1!==e.cancelable,composed:!1!==e.composed,internal:!1,docs:{text:"",tags:[]},complexType:{original:"any",resolved:"any",references:{}}}))}function jh(e){return!0===e.shadow?"shadow":!0===e.scoped?"scoped":"none"}function Kh(e){return!e||!Array.isArray(e)||0===e.length}const Wh=(e,t)=>e.moduleMap.get(ae(t)),zh=e=>{const t=Is(e,"methods");if(!t)return[];const n=Object.keys(t);return 0===n.length?[]:n.map(e=>({name:e,docs:t[e].docs,complexType:t[e].complexType,internal:Qs(t[e].docs)}))},Xh=e=>{const t=Is(e,"listeners");return t&&0!==t.length?t.map(e=>({name:e.name,method:e.method,capture:!!e.capture,passive:!!e.passive,target:e.target})):[]},qh=e=>{const t=Is(e,"elementRef");return"string"==typeof t?t:null},Yh=(e,t)=>"shadow"===e?!!Is(t,"delegatesFocus"):null,Qh=e=>{const t=Is(e,"events");return t&&0!==t.length?t.map(e=>({name:e.name,method:e.method,bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed,docs:e.docs,complexType:e.complexType,internal:Qs(e.docs)})):[]},Jh=e=>{const t=Is(e,"properties");if(!t)return[];const n=Object.keys(t);return 0===n.length?[]:n.map(e=>{const n=t[e];return{name:e,type:n.type,attribute:n.attribute?n.attribute.toLowerCase():void 0,reflect:("boolean"==typeof n.reflect||"boolean"==typeof n.reflect)&&n.reflect,mutable:!!n.mutable,required:!!n.required,optional:!!n.optional,defaultValue:n.defaultValue,complexType:n.complexType,docs:n.docs,internal:Qs(n.docs)}})},Zh=e=>{const t=Is(e,"states");if(!t)return[];const n=Object.keys(t);return 0===n.length?[]:n.map(e=>({name:e}))},ep=e=>{const t=Is(e,"watchers");return t&&0!==t.length?t.map(e=>({propName:e.propName,methodName:e.methodName})):[]},tp=(e,t,n,r,i)=>{const s=[],o=Is(i,r?"styleUrls":"originalStyleUrls");let a=Is(i,"styles");return a&&("string"==typeof a?(a=a.trim(),a.length>0&&(s.push({modeName:"$",styleId:null,styleStr:a,styleIdentifier:null,compiledStyleText:null,compiledStyleTextScoped:null,compiledStyleTextScopedCommented:null,externalStyles:[]}),e.styleModeNames.add("$"))):a.__identifier?(s.push(np(a,"$")),e.styleModeNames.add("$")):"object"==typeof a&&Object.keys(a).forEach(t=>{const n=a[t];"string"==typeof n?s.push({modeName:t,styleId:null,styleStr:n,styleIdentifier:null,compiledStyleText:null,compiledStyleTextScoped:null,compiledStyleTextScopedCommented:null,externalStyles:[]}):s.push(np(n,t)),e.styleModeNames.add(t)})),o&&"object"==typeof o&&Object.keys(o).forEach(t=>{const n=[];if(o[t].forEach(e=>{"string"==typeof e&&e.trim().length>0&&n.push({absolutePath:null,relativePath:null,originalComponentPath:e.trim()})}),n.length>0){const r={modeName:t,styleId:null,styleStr:null,styleIdentifier:null,compiledStyleText:null,compiledStyleTextScoped:null,compiledStyleTextScopedCommented:null,externalStyles:n};s.push(r),e.styleModeNames.add(t)}}),((e,t,n)=>{n.forEach(n=>{"$"===n.modeName?n.styleId=e.toUpperCase():n.styleId=`${e.toUpperCase()}#${n.modeName}`,Array.isArray(n.externalStyles)&&n.externalStyles.forEach(e=>{((e,t)=>{if("string"!=typeof t.originalComponentPath||0===t.originalComponentPath.trim().length)return;const n=Me(e);Le(t.originalComponentPath)?(t.absolutePath=ae(t.originalComponentPath),t.relativePath=ae($e(n,t.originalComponentPath))):(t.relativePath=ae(t.originalComponentPath),t.absolutePath=ae(Fe(n,t.originalComponentPath)))})(t,e)})})})(t,n,s),O(s,e=>e.modeName)},np=(e,t)=>({modeName:t,styleId:null,styleStr:null,styleIdentifier:e.__escapedText,compiledStyleText:null,compiledStyleTextScoped:null,compiledStyleTextScopedCommented:null,externalStyles:[]}),rp=(e,t)=>{"string"==typeof t.text&&t.text.includes("</")&&(t.text.includes("<slot")&&e.htmlTagNames.push("slot"),t.text.includes("<svg")&&e.htmlTagNames.push("svg"))},ip=(e,t,n,r,i,s)=>{if(null==n.members)return n;const o=n.members.filter(qs),a=Xs(o);if(null==a)return n;const l=t?t.getSymbolAtLocation(n.name):void 0,c=Ys(t,l),u=r.isCollectionDependency,h=(e=>{let t=Is(e,"encapsulation");return"string"==typeof t&&(t=t.toLowerCase().trim(),"shadow"===t||"scoped"===t)?t:"none"})(o),p={isLegacy:!1,tagName:a,excludeFromCollection:r.excludeFromCollection,isCollectionDependency:u,componentClassName:n.name?n.name.text:"",elementRef:qh(o),encapsulation:h,shadowDelegatesFocus:Yh(h,o),properties:Jh(o),virtualProperties:sp(c),states:Zh(o),methods:zh(o),listeners:Xh(o),events:Qh(o),watchers:ep(o),styles:tp(e,a,r.sourceFilePath,u,o),legacyConnect:Is(o,"connectProps")||[],legacyContext:Is(o,"contextProps")||[],internal:Qs(c),assetsDirs:ap(o,r.jsFilePath),styleDocs:[],docs:c,jsFilePath:r.jsFilePath,sourceFilePath:r.sourceFilePath,hasAttributeChangedCallbackFn:!1,hasComponentWillLoadFn:!1,hasComponentDidLoadFn:!1,hasComponentShouldUpdateFn:!1,hasComponentWillUpdateFn:!1,hasComponentDidUpdateFn:!1,hasComponentWillRenderFn:!1,hasComponentDidRenderFn:!1,hasComponentDidUnloadFn:!1,hasConnectedCallbackFn:!1,hasDisconnectedCallbackFn:!1,hasElement:!1,hasEvent:!1,hasLifecycle:!1,hasListener:!1,hasListenerTarget:!1,hasListenerTargetWindow:!1,hasListenerTargetDocument:!1,hasListenerTargetBody:!1,hasListenerTargetParent:!1,hasMember:!1,hasMethod:!1,hasMode:!1,hasAttribute:!1,hasProp:!1,hasPropNumber:!1,hasPropBoolean:!1,hasPropString:!1,hasPropMutable:!1,hasReflect:!1,hasRenderFn:!1,hasState:!1,hasStyle:!1,hasVdomAttribute:!1,hasVdomXlink:!1,hasVdomClass:!1,hasVdomFunctional:!1,hasVdomKey:!1,hasVdomListener:!1,hasVdomPropOrAttr:!1,hasVdomRef:!1,hasVdomRender:!1,hasVdomStyle:!1,hasVdomText:!1,hasWatchCallback:!1,isPlain:!1,htmlAttrNames:[],htmlTagNames:[],htmlParts:[],isUpdateable:!1,potentialCmpRefs:[]},d=e=>{Xn.isCallExpression(e)?Dh(p,e):Xn.isStringLiteral(e)&&rp(p,e),e.forEachChild(d)};return d(n),((e,t)=>{const n=e.members;if(!n||0===n.length)return;const r=n.filter(e=>Xn.isMethodDeclaration(e));if(0===r.length)return;const i=r.some(e=>Js(e,"hostData"));t.hasAttributeChangedCallbackFn=r.some(e=>Js(e,"attributeChangedCallback")),t.hasConnectedCallbackFn=r.some(e=>Js(e,"connectedCallback")),t.hasDisconnectedCallbackFn=r.some(e=>Js(e,"disconnectedCallback")),t.hasComponentWillLoadFn=r.some(e=>Js(e,"componentWillLoad")),t.hasComponentWillUpdateFn=r.some(e=>Js(e,"componentWillUpdate")),t.hasComponentWillRenderFn=r.some(e=>Js(e,"componentWillRender")),t.hasComponentDidRenderFn=r.some(e=>Js(e,"componentDidRender")),t.hasComponentDidLoadFn=r.some(e=>Js(e,"componentDidLoad")),t.hasComponentShouldUpdateFn=r.some(e=>Js(e,"componentShouldUpdate")),t.hasComponentDidUpdateFn=r.some(e=>Js(e,"componentDidUpdate")),t.hasComponentDidUnloadFn=r.some(e=>Js(e,"componentDidUnload")),t.hasLifecycle=t.hasComponentWillLoadFn||t.hasComponentDidLoadFn||t.hasComponentWillUpdateFn||t.hasComponentDidUpdateFn,t.hasRenderFn=r.some(e=>Js(e,"render"))||i,t.hasVdomRender=t.hasVdomRender||i})(n,p),p.legacyConnect.forEach(({connect:e})=>{p.htmlTagNames.push(e),e.includes("-")&&p.potentialCmpRefs.push(e)}),p.htmlAttrNames=R(p.htmlAttrNames),p.htmlTagNames=R(p.htmlTagNames),p.potentialCmpRefs=R(p.potentialCmpRefs),Oh(p),s&&"compilerstatic"===s.componentMetadata&&(n=((e,t)=>{const n=Zs(t),r=Rs("COMPILER_META",ws(n)),i=[...e.members,r];return Xn.updateClassDeclaration(e,e.decorators,e.modifiers,e.name,e.typeParameters,e.heritageClauses,i)})(n,p)),r.cmps.push(p),i.set(n,p),n},sp=e=>e.tags.filter(({name:e})=>"virtualProp"===e).map(op).filter(e=>!!e),op=e=>{const t=/^\s*(?:\{([^}]+)\}\s+)?(\w+)\s+-\s+(.*)$/.exec(e.text);if(!t)return;const[,n,r,i]=t;return{type:null==n?"any":n.trim(),name:r.trim(),docs:i.trim()}},ap=(e,t)=>{const n=Is(e,"assetsDirs")||[],r=ae(Me(t));return n.map(e=>{let t=e=ae(e.trim()),n=e;return Le(e)?n=$e(r,e):t=Fe(r,e),{absolutePath:t,cmpRelativePath:n,originalComponentPath:e}})},lp=(e,t,n,r,i,s,o,a)=>{const l=ae(r.fileName),c=Wh(t,l);if(c&&c.staticSourceFileText===i)return c;const u=Me(l),h=Ie(s),p=(f=i,m=s=ae(Fe(u,h)),{sourceFilePath:ae((d=r).fileName),jsFilePath:m,staticSourceFile:d,staticSourceFileText:f,cmps:[],coreRuntimeApis:[],collectionName:null,dtsFilePath:null,excludeFromCollection:!1,externalImports:[],hasVdomAttribute:!1,hasVdomClass:!1,hasVdomFunctional:!1,hasVdomKey:!1,hasVdomListener:!1,hasVdomPropOrAttr:!1,hasVdomRef:!1,hasVdomRender:!1,hasVdomStyle:!1,hasVdomText:!1,hasVdomXlink:!1,htmlAttrNames:[],htmlParts:[],htmlTagNames:[],isCollectionDependency:!1,isLegacy:!1,localImports:[],originalCollectionComponentPath:null,originalImports:[],potentialCmpRefs:[]});var d,f,m;const g=ae(p.sourceFilePath);t.moduleMap.set(g,p),t.changedModules.add(p.sourceFilePath);const _=r=>{Xn.isClassDeclaration(r)?ip(t,o,r,p,t.nodeMap):Xn.isImportDeclaration(r)?gp(e,t,n,p,u,r,!0):(Xn.isCallExpression(r)?Dh(p,r):Xn.isStringLiteral(r)&&rp(p,r),r.forEachChild(_))};return null!=a&&(p.isCollectionDependency=!0,p.collectionName=a.collectionName,a.moduleFiles.push(p)),_(r),p.cmps.length>0&&(p.staticSourceFile=Xn.createSourceFile(l,i,r.languageVersion,!0,Xn.ScriptKind.JS)),p},cp=(e,t,n,r,i)=>{const s=t.fs.readFileSync(i),o=Xn.createSourceFile(i,s,Xn.ScriptTarget.ES2017,!0,Xn.ScriptKind.JS);return lp(e,t,n,o,s,i,void 0,r)},up=(e,t,n,r,i,s)=>{const o=JSON.parse(s),a=o.compiler||{},l={collectionName:r,moduleId:r,moduleFiles:[],dependencies:hp(o),compiler:{name:a.name||"",version:a.version||"",typescriptVersion:a.typescriptVersion||""},bundles:dp(o)};return pp(e,t,n,i,o,l),((e,t,n,r,i,s)=>{((e,t,n,r,i)=>{i.components&&i.components.forEach(i=>{!function(e,t,n,r,i){const s=ae(Fe(r,i.componentPath)),o=Pu(0,t,s);o.isCollectionDependency=!0,o.isLegacy=!0,o.collectionName=n.collectionName,o.excludeFromCollection=function(e,t){return!(e.bundles&&e.bundles.some(e=>e.components&&e.components.some(e=>e===t.tag)))}(e,i),o.originalCollectionComponentPath=i.componentPath,o.jsFilePath=function(e,t){if("string"!=typeof t.componentPath)throw new Error('parseModuleJsFilePath, "componentPath" missing on cmpData: '+t.tag);return ae(Fe(e,t.componentPath))}(r,i);const a={isLegacy:o.isLegacy,excludeFromCollection:o.excludeFromCollection,isCollectionDependency:o.isCollectionDependency,tagName:kh(i),componentClassName:Rh(i),virtualProperties:[],docs:{text:"",tags:[]},internal:!1,jsFilePath:o.jsFilePath,sourceFilePath:"",styleDocs:[],assetsDirs:Mh(r,i),styles:Ih(r,i),properties:Ph(i),states:Bh(i),listeners:Uh(i),methods:Vh(i),elementRef:Hh(i),events:Gh(i),encapsulation:jh(i),shadowDelegatesFocus:null,watchers:$h(i),legacyConnect:Lh(i),legacyContext:Fh(i),hasAttributeChangedCallbackFn:!1,hasComponentWillLoadFn:!0,hasComponentDidLoadFn:!0,hasComponentShouldUpdateFn:!0,hasComponentWillUpdateFn:!0,hasComponentDidUpdateFn:!0,hasComponentWillRenderFn:!1,hasComponentDidRenderFn:!1,hasComponentDidUnloadFn:!0,hasConnectedCallbackFn:!1,hasDisconnectedCallbackFn:!1,hasElement:!1,hasEvent:!1,hasLifecycle:!1,hasListener:!1,hasListenerTarget:!1,hasListenerTargetWindow:!1,hasListenerTargetDocument:!1,hasListenerTargetBody:!1,hasListenerTargetParent:!1,hasMember:!1,hasMethod:!1,hasMode:!1,hasAttribute:!1,hasProp:!1,hasPropNumber:!1,hasPropBoolean:!1,hasPropString:!1,hasPropMutable:!1,hasReflect:!1,hasRenderFn:!1,hasState:!1,hasStyle:!1,hasVdomAttribute:!0,hasVdomClass:!0,hasVdomFunctional:!0,hasVdomKey:!0,hasVdomListener:!0,hasVdomPropOrAttr:!0,hasVdomRef:!0,hasVdomRender:!1,hasVdomStyle:!0,hasVdomText:!0,hasVdomXlink:!0,hasWatchCallback:!1,isPlain:!1,htmlAttrNames:[],htmlTagNames:[],htmlParts:[],isUpdateable:!1,potentialCmpRefs:[]};Oh(a),o.cmps=[a],n.moduleFiles.push(o)}(e,t,n,r,i)})})(e,t,s,r,i),i.entries&&i.entries.forEach(i=>{const o=Fe(r,i);cp(e,t,n,s,o)})})(e,t,n,i,o,l),l},hp=e=>(e.collections||[]).map(e=>e.name),pp=(e,t,n,r,i,s)=>{if("string"!=typeof i.global)return;const o=ae(Fe(r,i.global)),a=cp(e,t,n,s,o);s.global=a},dp=e=>fp(e.bundles)?[]:e.bundles.map(e=>({components:e.components.slice().sort()})),fp=e=>!e||!Array.isArray(e)||0===e.length,mp=(e,t,n,r,i,s,o)=>{if(r.externalImports.includes(s)||(r.externalImports.push(s),r.externalImports.sort()),!o||t.resolvedCollections.has(s))return;let a=((e,t,n,r)=>{try{const i=qn(e,t,n,r);if(i&&i.resolvedModule&&i.resolvedModule.resolvedFileName){const t=Ue("/");let n=i.resolvedModule.resolvedFileName;for(let r=0;r<30;r++){if(t===n)return null;n=Me(n);const r=Fe(n,"package.json");if(e.sys.accessSync(r))return ae(r)}}}catch(t){e.logger.error(t)}return null})(e,t,s,i);if(t.resolvedCollections.add(s),null==a)return;const l=e.sys.realpathSync(a);if(l.path&&(a=l.path),a===e.packageJsonFilePath)return;const c=t.fs.readFileSync(a);if(null==c)return;const u=Ce(c,a);if(u.diagnostic)return void n.diagnostics.push(u.diagnostic);if(!B(u.data.collection)||!u.data.collection.endsWith(".json"))return;if(!B(u.data.types)||!u.data.types.endsWith(".d.ts"))return;const h=((e,t,n,r,i,s)=>{const o=s.name;let a=t.collections.find(e=>e.collectionName===o);if(null!=a)return a;const l=Me(i),c=Fe(l,s.collection),u=$e(e.rootDir,c);e.logger.debug(`load collection: ${o}, ${u}`);const h=t.fs.readFileSync(c);if(!h)return null;const p=ae(Me(c));return a=up(e,t,n,o,p,h),a.moduleId=r,s.module&&s.module!==s.main&&(a.hasExports=!0),a.moduleDir=l,t.collections.push(a),a})(e,t,n,s,u.filePath,u.data);h&&(n.collections.some(e=>e.collectionName===h.collectionName)||(n.collections.push(h),Array.isArray(h.dependencies)&&h.dependencies.forEach(i=>{const s=Me(a);mp(e,t,n,r,s,i,o)})))},gp=(e,t,n,r,i,s,o)=>{if(s.moduleSpecifier&&Xn.isStringLiteral(s.moduleSpecifier)){let a=s.moduleSpecifier.text;r.originalImports.includes(a)||r.originalImports.push(a),Le(a)?(a=ae(a),r.localImports.push(a)):a.startsWith(".")?(a=ae(Ue(i,a)),r.localImports.push(a)):mp(e,t,n,r,r.sourceFilePath,a,o)}},_p=(e,t,n,r,i,s)=>o=>{let a,l;const c=i=>Xn.isClassDeclaration(i)?ip(t,r,i,l,t.nodeMap,s):(Xn.isImportDeclaration(i)?gp(e,t,n,l,a,i,!s.isolatedModules):Xn.isCallExpression(i)?Dh(l,i):Xn.isStringLiteral(i)&&rp(l,i),Xn.visitEachChild(i,c,o));return e=>(a=Me(e.fileName),l=Pu(0,t,e.fileName),(e=>{e.cmps.length=0,e.coreRuntimeApis.length=0,e.collectionName=null,e.dtsFilePath=null,e.excludeFromCollection=!1,e.externalImports.length=0,e.isCollectionDependency=!1,e.localImports.length=0,e.originalCollectionComponentPath=null,e.originalImports.length=0,e.hasVdomXlink=!1,e.hasVdomAttribute=!1,e.hasVdomClass=!1,e.hasVdomFunctional=!1,e.hasVdomKey=!1,e.hasVdomListener=!1,e.hasVdomRef=!1,e.hasVdomRender=!1,e.hasVdomStyle=!1,e.hasVdomText=!1,e.htmlAttrNames.length=0,e.htmlTagNames.length=0,e.potentialCmpRefs.length=0})(l),null!=i?(l.isCollectionDependency=!0,l.collectionName=i.collectionName,i.moduleFiles.push(l)):(l.isCollectionDependency=!1,l.collectionName=null),c(e))},Ep=(e,t,n,r)=>0===n.length?t:"cjs"===e.module?Tp(t,n,r):yp(t,n,r),yp=(e,t,n)=>{const r=t.map(e=>{const t=e.split(" as ");let n=e,r=e;return t.length>1&&(n=t[1],r=t[0]),Xn.createImportSpecifier("string"==typeof r&&r!==n?Xn.createIdentifier(r):void 0,Xn.createIdentifier(n))}),i=e.statements.slice(),s=Xn.createImportDeclaration(void 0,void 0,Xn.createImportClause(void 0,Xn.createNamedImports(r)),Xn.createLiteral(n));return i.unshift(s),Xn.updateSourceFileNode(e,i)},Tp=(e,t,n)=>{const r=Xn.createObjectBindingPattern(t.map(e=>{const t=e.split(" as ");let n=e,r=e;return t.length>1&&(n=t[1],r=t[0]),Xn.createBindingElement(void 0,r,n)})),i=Xn.createVariableStatement(void 0,Xn.createVariableDeclarationList([Xn.createVariableDeclaration(r,void 0,Xn.createCall(Xn.createIdentifier("require"),[],[Xn.createLiteral(n)]))],Xn.NodeFlags.Const)),s=e.statements.slice();return s.splice(2,0,i),Xn.updateSourceFileNode(e,s)},vp=(e,t,n)=>{n.elementRef&&(Ch(t,Sh.getElement),e.push(Xn.createGetAccessor(void 0,void 0,n.elementRef,[],void 0,Xn.createBlock([Xn.createReturn(Xn.createCall(Xn.createIdentifier("__rindo_getElement"),void 0,[Xn.createThis()]))]))))},Ap=e=>Array.isArray(e.styles)&&e.styles.length>0?e.styles.length>1||1===e.styles.length&&"$"!==e.styles[0].modeName?bp(e,e.styles):Cp(e,e.styles[0]):null,bp=(e,t)=>{const n=[];return t.forEach(t=>{if("string"==typeof t.styleStr){const r=xp(e,t),i=Sp(t.modeName,r);n.push(i)}else if("string"==typeof t.styleIdentifier){const e=Xn.createIdentifier(t.styleIdentifier),r=Sp(t.modeName,e);n.push(r)}else if(Array.isArray(t.externalStyles)&&t.externalStyles.length>0){const r=Dp(e,t),i=Sp(t.modeName,r);n.push(i)}}),Xn.createObjectLiteral(n,!0)},Sp=(e,t)=>Xn.createPropertyAssignment(e,t),Cp=(e,t)=>"string"==typeof t.styleStr?xp(e,t):"string"==typeof t.styleIdentifier?Xn.createIdentifier(t.styleIdentifier):Array.isArray(t.externalStyles)&&t.externalStyles.length>0?Dp(e,t):null,xp=(e,t)=>{if("scoped"===e.encapsulation){const n=jr(e.tagName,t.modeName);return Xn.createStringLiteral(Zi(t.styleStr,n,!1))}return Xn.createStringLiteral(t.styleStr)},Dp=(e,t)=>(t.styleIdentifier=D(e.tagName),t.styleIdentifier=t.styleIdentifier.charAt(0).toLowerCase()+t.styleIdentifier.substring(1),"$"!==t.modeName&&(t.styleIdentifier+=D(t.modeName)),t.styleIdentifier+="Style",t.externalStyles=[t.externalStyles[0]],Xn.createIdentifier(t.styleIdentifier)),Np=(e,t)=>{if(t.watchers.length>0){const n={};t.watchers.forEach(({propName:e,methodName:t})=>{n[e]=n[e]||[],n[e].push(t)}),e.push(Rs("watchers",ws(n)))}},wp=e=>null==e.members?[]:e.members.filter(e=>{if(e.modifiers&&e.modifiers.some(e=>e.kind===Xn.SyntaxKind.StaticKeyword)){const t=e.name.escapedText;if(Op.has(t))return!1}return!0}),Op=new Set(["is","properties","encapsulation","elementRef","events","listeners","methods","states","originalStyleUrls","styleMode","style","styles","styleUrl","watchers","styleUrls","contextProps","connectProps"]),kp=(e,t)=>{if(e.some(e=>Xn.isMethodDeclaration(e)&&"hostData"===e.name.escapedText)){const n=e.findIndex(e=>Xn.isMethodDeclaration(e)&&"render"===e.name.escapedText);if(n>=0){const t=e[n];e[n]=Xn.updateMethod(t,t.decorators,t.modifiers,t.asteriskToken,Xn.createIdentifier(Ip),t.questionToken,t.typeParameters,t.parameters,t.type,t.body)}e.push(Rp(t,n>=0))}},Rp=(e,t)=>{Ch(e,Sh.Host),Ch(e,Sh.h);const n=[Xn.createIdentifier("__rindo_Host"),Xn.createCall(Xn.createPropertyAccess(Xn.createThis(),"hostData"),void 0,void 0)];return t&&n.push(Xn.createCall(Xn.createPropertyAccess(Xn.createThis(),Ip),void 0,void 0)),Xn.createMethod(void 0,void 0,void 0,"render",void 0,void 0,void 0,void 0,Xn.createBlock([Xn.createReturn(Xn.createCall(Xn.createIdentifier(bh),void 0,n))]))},Ip="__rindo_render",Mp=(e,t,n,r)=>{let i=Array.isArray(t.modifiers)?t.modifiers.slice():[];return"cjs"===e.module?("customelement"===e.componentExport&&(i=i.filter(e=>e.kind!==Xn.SyntaxKind.ExportKeyword)),Xn.updateClassDeclaration(t,t.decorators,i,t.name,t.typeParameters,n,r)):Pp(e,t,n,r)},Pp=(e,t,n,r)=>{const i=t.name,s=(Array.isArray(t.modifiers)?t.modifiers:[]).filter(e=>e.kind!==Xn.SyntaxKind.ExportKeyword),o=[];return"customelement"!==e.componentExport&&o.push(Xn.createModifier(Xn.SyntaxKind.ExportKeyword)),Xn.createVariableStatement(o,Xn.createVariableDeclarationList([Xn.createVariableDeclaration(i,void 0,Xn.createClassExpression(s,void 0,t.typeParameters,n,r))],Xn.NodeFlags.Const))},Lp=(e,t)=>t.events.map(t=>(Ch(e,Sh.createEvent),Xn.createStatement(Xn.createAssignment(Xn.createPropertyAccess(Xn.createThis(),Xn.createIdentifier(t.method)),Xn.createCall(Xn.createIdentifier("__rindo_createEvent"),void 0,[Xn.createThis(),Xn.createLiteral(t.name),Xn.createLiteral(Fp(t))]))))),Fp=e=>{let t=0;return e.bubbles&&(t|=4),e.composed&&(t|=2),e.cancelable&&(t|=1),t},Bp=(e,t)=>(t.legacyConnect.length>0&&Ch(e,Sh.getConnect),t.legacyContext.length>0&&Ch(e,Sh.getContext),[...t.legacyConnect.map(e=>$p(e.name,"__rindo_getConnect",e.connect)),...t.legacyContext.map(e=>$p(e.name,"__rindo_getContext",e.context))]),$p=(e,t,n)=>Xn.createExpressionStatement(Xn.createAssignment(Xn.createPropertyAccess(Xn.createThis(),e),Xn.createCall(Xn.createIdentifier(t),void 0,[Xn.createThis(),Xn.createLiteral(n)]))),Up=(e,t,n)=>{const r=[Xn.createParameter(void 0,void 0,void 0,Xn.createIdentifier(Hp))],i=e.findIndex(e=>e.kind===Xn.SyntaxKind.Constructor);if(i>=0){const s=e[i],o=Xn.updateBlock(s.body,[Vp(t),...Lp(t,n),...s.body.statements,...Bp(t,n)]);e[i]=Xn.updateConstructor(s,s.decorators,s.modifiers,r,o)}else{const i=Xn.createConstructor(void 0,void 0,r,Xn.createBlock([Vp(t),...Lp(t,n),...Bp(t,n)],!0));e.unshift(i)}},Vp=e=>(Ch(e,Sh.registerInstance),Xn.createStatement(Xn.createCall(Xn.createIdentifier("__rindo_registerInstance"),void 0,[Xn.createThis(),Xn.createIdentifier(Hp)]))),Hp="hostRef",Gp=(e,t,n)=>"cjs"===e.module?zp(e,t,n):jp(e,t,n),jp=(e,t,n)=>{const r=[];let i=t.statements.slice(),s=!1;if(n.cmps.forEach(n=>{n.styles.forEach(o=>{"string"==typeof o.styleIdentifier&&(s=!0,o.externalStyles.length>0?r.push(Wp(e,t,n,o)):i=Kp(e,t,i,n,o))})}),s){let e=-1;for(let t=0;t<i.length;t++)Xn.isImportDeclaration(i[t])&&(e=t);return i.splice(e+1,0,...r),Xn.updateSourceFileNode(t,i)}return t},Kp=(e,t,n,r,i)=>{for(let s=0;s<n.length;s++){const o=n[s];if(Xn.isImportDeclaration(o)&&o.importClause&&o.moduleSpecifier&&Xn.isStringLiteral(o.moduleSpecifier)&&o.importClause.name&&o.importClause.name.escapedText===i.styleIdentifier){const a=o.moduleSpecifier.text,l=qp(e,t,r,i,a);n[s]=Xn.updateImportDeclaration(o,o.decorators,o.modifiers,o.importClause,Xn.createStringLiteral(l));break}}return n},Wp=(e,t,n,r)=>{const i=Xn.createIdentifier(r.styleIdentifier),s=qp(e,t,n,r,r.externalStyles[0].absolutePath);return Xn.createImportDeclaration(void 0,void 0,Xn.createImportClause(i,void 0),Xn.createLiteral(s))},zp=(e,t,n)=>{const r=[];return n.cmps.forEach(n=>{n.styles.forEach(i=>{"string"==typeof i.styleIdentifier&&i.externalStyles.length>0&&r.push(Xp(e,t,n,i))})}),r.length>0?Xn.updateSourceFileNode(t,[...r,...t.statements]):t},Xp=(e,t,n,r)=>{const i=Xn.createIdentifier(r.styleIdentifier),s=qp(e,t,n,r,r.externalStyles[0].absolutePath);return Xn.createVariableStatement(void 0,Xn.createVariableDeclarationList([Xn.createVariableDeclaration(i,void 0,Xn.createCall(Xn.createIdentifier("require"),[],[Xn.createLiteral(s)]))],Xn.NodeFlags.Const))},qp=(e,t,n,r,i)=>{const s={importeePath:i,importerPath:t.fileName,tag:n.tagName,encapsulation:n.encapsulation,mode:r.modeName};return es(s,e.styleImportData)},Yp=(e,t)=>n=>r=>{const i=[],s=Ws(e,r),o=a=>{if(Xn.isClassDeclaration(a)){const n=zs(e,r,a);if(null!=n)return((e,t,n,r,i)=>{const s=((e,t,n,r,i)=>{const s=wp(n);return Up(s,r,i),vp(s,r,i),Np(s,i),kp(s,r),"static"===e.style&&((e,t)=>{const n=Ap(t);if(n){const r=Xn.createStatement(Xn.createAssignment(Xn.createPropertyAccess(Xn.createIdentifier(t.componentClassName),"style"),n));e.push(r)}})(t,i),s})(e,t,n,r,i);return Mp(e,n,n.heritageClauses,s)})(t,i,a,s,n)}return Xn.visitEachChild(a,o,n)};return r=Xn.visitEachChild(r,o,n),s.cmps.length>0&&(r=Gp(t,r,s)),s.isLegacy&&xh(s),r=Ep(t,r,s.coreRuntimeApis,t.coreImportPath),i.length>0&&(r=Xn.updateSourceFileNode(r,[...r.statements,...i])),r},Qp=e=>{const t=d(e,!0),n=Xn.createIdentifier(e.componentClassName),r=ws(t);return Xn.createStatement(Xn.createCall(Xn.createIdentifier("__rindo_proxyCustomElement"),[],[n,r]))},Jp=(e,t)=>{if("scoped"===e.encapsulation){const n=jr(e.tagName,t.modeName);return Xn.createStringLiteral(Zi(t.styleStr,n,!1))}return Xn.createStringLiteral(t.styleStr)},Zp=(e,t)=>(t.styleIdentifier=D(e.tagName),t.styleIdentifier=t.styleIdentifier.charAt(0).toLowerCase()+t.styleIdentifier.substring(1),"$"!==t.modeName&&(t.styleIdentifier+=D(t.modeName)),t.styleIdentifier+="Style",t.externalStyles=[t.externalStyles[0]],Xn.createIdentifier(t.styleIdentifier)),ed=(e,t)=>{const n=[td()];return"shadow"===t.encapsulation&&n.push(nd(e)),n},td=()=>Xn.createStatement(Xn.createCall(Xn.createPropertyAccess(Xn.createThis(),Xn.createIdentifier("__registerHost")),void 0,void 0)),nd=e=>(Ch(e,Sh.attachShadow),Xn.createStatement(Xn.createCall(Xn.createIdentifier("__rindo_attachShadow"),void 0,[Xn.createThis()]))),rd=()=>Xn.createExpressionStatement(Xn.createCall(Xn.createIdentifier("super"),void 0,void 0)),id=(e,t,n,r)=>{const i=wp(t);return((e,t,n,r)=>{if(n.isPlain)return;const i=e.findIndex(e=>e.kind===Xn.SyntaxKind.Constructor);if(i>=0){const r=e[i];let s=[...ed(t,n),...Lp(t,n),...r.body.statements,...Bp(t,n)];r.body.statements.some(e=>e.kind===Xn.SyntaxKind.SuperKeyword)||(s=[rd(),...s]),e[i]=Xn.updateConstructor(r,r.decorators,r.modifiers,r.parameters,Xn.updateBlock(r.body,s))}else{let r=[...ed(t,n),...Lp(t,n),...Bp(t,n)];r=[rd(),...r];const i=Xn.createConstructor(void 0,void 0,void 0,Xn.createBlock(r,!0));e.unshift(i)}})(i,n,r),((e,t)=>{if(t.isPlain&&t.hasRenderFn){const t=Xn.createExpressionStatement(Xn.createAssignment(Xn.createPropertyAccess(Xn.createThis(),"textContent"),Xn.createCall(Xn.createPropertyAccess(Xn.createThis(),"render"),void 0,void 0))),n=e.find(e=>Xn.isMethodDeclaration(e)&&"connectedCallback"===e.name.escapedText),r=[t];if(null!=n)n.body=Xn.updateBlock(n.body,[...r,...n.body.statements]);else{const t=Xn.createMethod(void 0,void 0,void 0,"connectedCallback",void 0,void 0,void 0,void 0,Xn.createBlock(r,!0));e.push(t)}}})(i,r),((e,t)=>{t.elementRef&&e.push(Xn.createGetAccessor(void 0,void 0,t.elementRef,[],void 0,Xn.createBlock([Xn.createReturn(Xn.createThis())])))})(i,r),Np(i,r),r.isPlain&&((e,t)=>{e.push(Rs("is",ws(t.tagName)))})(i,r),"static"===e.style&&((e,t)=>{Array.isArray(t.styles)&&t.styles.length>0&&(t.styles.length>1||1===t.styles.length&&"$"!==t.styles[0].modeName?((e,t,n)=>{const r=[];n.forEach(e=>{if("string"==typeof e.styleStr){const n=Jp(t,e),i=Xn.createPropertyAssignment(e.modeName,n);r.push(i)}else if("string"==typeof e.styleIdentifier){const t=Xn.createIdentifier(e.styleIdentifier),n=Xn.createPropertyAssignment(e.modeName,t);r.push(n)}else if(Array.isArray(e.externalStyles)&&e.externalStyles.length>0){const n=Zp(t,e),i=Xn.createPropertyAssignment(e.modeName,n);r.push(i)}});const i=Xn.createObjectLiteral(r,!0);e.push(Rs("style",i))})(e,t,t.styles):((e,t,n)=>{if("string"==typeof n.styleStr){const r=Jp(t,n);e.push(Rs("style",r))}else if("string"==typeof n.styleIdentifier){const t=Xn.createIdentifier(n.styleIdentifier);e.push(Rs("style",t))}else if(Array.isArray(n.externalStyles)&&n.externalStyles.length>0){const r=Zp(t,n);e.push(Rs("style",r))}})(e,t,t.styles[0]))})(i,r),kp(i,n),i},sd=(e,t)=>n=>r=>{const i=Ws(e,r),s=o=>{if(Xn.isClassDeclaration(o)){const n=zs(e,r,o);if(null!=n)return((e,t,n,r)=>{const i=((e,t)=>null!=e.heritageClauses&&e.heritageClauses.length>0?e.heritageClauses:(t.cmps.length>1&&Ch(t,Sh.HTMLElement),[Xn.createHeritageClause(Xn.SyntaxKind.ExtendsKeyword,[Xn.createExpressionWithTypeArguments([],Xn.createIdentifier("HTMLElement"))])]))(t,n),s=id(e,t,n,r);return Mp(e,t,i,s)})(t,o,i,n)}return Xn.visitEachChild(o,s,n)};return r=Xn.visitEachChild(r,s,n),i.cmps.length>0&&("customelement"===t.componentExport?r=((e,t,n)=>{let r=e.statements.slice();return r.push(...t.cmps.map(e=>((e,t)=>{if(t.isPlain)return Xn.createStatement(Xn.createCall(Xn.createPropertyAccess(Xn.createIdentifier("customElements"),Xn.createIdentifier("define")),[],[Xn.createLiteral(t.tagName),Xn.createIdentifier(t.componentClassName)]));Ch(e,Sh.defineCustomElement);const n=d(t,!0),r=Xn.createIdentifier(t.componentClassName),i=ws(n);return Xn.createStatement(Xn.createCall(Xn.createIdentifier("__rindo_defineCustomElement"),[],[r,i]))})(t,e))),"cjs"===n.module&&(r=((e,t)=>{const n=new Set(t.cmps.map(e=>e.componentClassName));return e.filter(e=>{if(e.kind===Xn.SyntaxKind.ExpressionStatement){const t=e.expression;if(t&&t.kind===Xn.SyntaxKind.BinaryExpression){const e=t.left;if(e&&e.kind===Xn.SyntaxKind.PropertyAccessExpression&&e.expression&&e.expression.kind===Xn.SyntaxKind.Identifier&&"exports"===e.expression.text){const e=t.right;if(e&&n.has(e.text))return!1}}}return!0})})(r,t)),Xn.updateSourceFileNode(e,r)})(r,i,t):"defineproperty"===t.proxy&&(r=((e,t)=>{const n=e.statements.slice();return Ch(t,Sh.proxyCustomElement),n.push(...t.cmps.map(Qp)),Xn.updateSourceFileNode(e,n)})(r,i)),r=Gp(t,r,i)),i.isLegacy&&xh(i),r=Ep(t,r,i.coreRuntimeApis,t.coreImportPath)},od=e=>()=>t=>{if("@rindo/core"===e)return t;let n=!1;const r=[];return t.statements.forEach(t=>{if(Xn.isImportDeclaration(t)&&null!=t.moduleSpecifier&&Xn.isStringLiteral(t.moduleSpecifier)&&"@rindo/core"===t.moduleSpecifier.text){if(t.importClause&&t.importClause.namedBindings&&t.importClause.namedBindings.kind===Xn.SyntaxKind.NamedImports){const n=t.importClause.namedBindings.elements.map(e=>e.getText()).filter(e=>ad.has(e));if(n.length>0){const i=Xn.updateImportDeclaration(t,void 0,void 0,Xn.createImportClause(void 0,Xn.createNamedImports(n.map(e=>Xn.createImportSpecifier(void 0,Xn.createIdentifier(e))))),Xn.createStringLiteral(e));r.push(i)}}n=!0}else r.push(t)}),n?Xn.updateSourceFileNode(t,r,t.isDeclarationFile,t.referencedFiles,t.typeReferenceDirectives,t.hasNoDefaultLib,t.libReferenceDirectives):t},ad=new Set(["h","setMode","getMode","Build","Host","getAssetPath","writeTask","readTask","getElement","forceUpdate","getRenderingRef","forceModeUpdate"]),ld=async(e,t={})=>{const{importData:n,results:r}=fs(e,t);try{if(fd(r.inputFileExtension)){const{config:e,compileOpts:n,transformOpts:i}=gs(t);await Zn(e,r.diagnostics,null),ud(e,n,i,r)}else if("d.ts"===r.inputFileExtension)r.code="";else if("css"===r.inputFileExtension){const e=_s(t,n,r);await hd(e,r)}else"json"===r.inputFileExtension&&dd(r)}catch(e){J(r.diagnostics,e)}return r},cd=(e,t={})=>{const{importData:n,results:r}=fs(e,t);try{if(fd(r.inputFileExtension)){const{config:e,compileOpts:n,transformOpts:i}=gs(t);((e,t,n)=>{const r=rr(e.sys,e.typescriptPath,!0);er(e,t,null,r)})(e,r.diagnostics),ud(e,n,i,r)}else if("d.ts"===r.inputFileExtension)r.code="";else if("css"===r.inputFileExtension){const e=_s(t,n,r);pd(e,r)}else"json"===r.inputFileExtension&&dd(r)}catch(e){J(r.diagnostics,e)}return r},ud=(e,n,r,i)=>{const s=((e,t,n)=>{e.logger||(e=Object.assign(Object.assign({},e),{logger:We()}));const r=new Mu,i=new Ou(e,r),s=Object.assign({},e.tsCompilerOptions);let o=n.file;o=B(o)?ae(o):s.jsx?"module.tsx":"module.ts";const a={sourceFilePath:o,code:null,map:null,diagnostics:[],moduleFile:null};"cjs"===n.module?s.module=Xn.ModuleKind.CommonJS:s.module=Xn.ModuleKind.ESNext,s.target=(e=>{const t=e.target&&e.target.toUpperCase();return L(Xn.ScriptTarget[t])?Xn.ScriptTarget[t]:Xn.ScriptTarget.Latest})(n),(o.endsWith(".tsx")||o.endsWith(".jsx"))&&null==s.jsx&&(s.jsx=Xn.JsxEmit.React),null==s.jsx||B(s.jsxFactory)||(s.jsxFactory="h"),s.paths&&!B(s.baseUrl)&&(s.baseUrl=".");const l=Xn.createSourceFile(o,t,s.target),c={getSourceFile:e=>ae(e)===ae(o)?l:void 0,writeFile:(e,t)=>{e.endsWith(".js.map")?a.map=t:e.endsWith(".js")&&(a.code=t)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>n.currentDirectory||h(),getNewLine:()=>Xn.sys.newLine||"\n",fileExists:e=>ae(e)===ae(o),readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=Xn.createProgram([o],s,c),p=u.getTypeChecker(),d=[_p(e,r,i,p,null,n)];"customelement"===n.componentExport||"module"===n.componentExport?d.push(sd(r,n)):d.push(Yp(r,n)),u.emit(void 0,void 0,void 0,!1,{before:[yh(e,i.diagnostics,p),od(n.coreImportPath)],after:d});const f=[...u.getSyntacticDiagnostics()];return e.validateTypes&&f.push(...u.getOptionsDiagnostics()),i.diagnostics.push(...Ee(f)),a.diagnostics.push(...i.diagnostics),a.moduleFile=r.moduleMap.get(a.sourceFilePath),a})(e,i.code,r);if(i.diagnostics.push(...s.diagnostics),"string"==typeof s.code&&(i.code=s.code,i.map=s.map,"inline"===n.sourceMap))try{const e=JSON.parse(s.map);e.file=n.file,e.sources=[n.file],delete e.sourceRoot;const r="data:application/json;charset=utf-8;base64,"+t.from(JSON.stringify(e),"utf8").toString("base64"),o=i.code.lastIndexOf("//#");i.code=i.code.slice(0,o)+"//# sourceMappingURL="+r}catch(e){console.error(e)}B(s.sourceFilePath)&&(i.inputFilePath=s.sourceFilePath);const o=s.moduleFile;o&&(i.outputFilePath=o.jsFilePath,o.cmps.forEach(e=>{i.data.push(Zs(e))}),o.originalImports.forEach(e=>{i.imports.push({path:e})}))},hd=async(e,t)=>{const n=await rs(e);t.code=n.output,t.map=n.map,t.imports=n.imports.map(e=>({path:e.importPath})),t.diagnostics.push(...n.diagnostics)},pd=(e,t)=>{const n=(e=>{const t=is(e);return ss(e,t)})(e);t.code=n.output,t.map=n.map,t.imports=n.imports.map(e=>({path:e.importPath})),t.diagnostics.push(...n.diagnostics)},dd=e=>{e.code=Zo(JSON.parse(e.code),{preferConst:!0,compact:!1,indent:" "}),e.map={mappings:""}},fd=e=>["tsx","ts","mjs","jsx","js"].includes(e);class md{constructor(e,t){this.config=e,this.cacheFs=t,this.failed=0,this.skip=!1,this.sys=e.sys,this.logger=e.logger}async initCacheDir(){if(!this.config._isTesting&&this.config.cacheDir){if(!this.config.enableCache||!this.cacheFs)return this.config.logger.info("cache optimizations disabled"),void this.clearDiskCache();this.config.logger.debug("cache enabled, cacheDir: "+this.config.cacheDir);try{const e=Fe(this.config.cacheDir,"_README.log");await this.cacheFs.writeFile(e,Td)}catch(e){this.logger.error("Cache, initCacheDir: "+e),this.config.enableCache=!1}}}async get(e){if(!this.config.enableCache||this.skip)return null;if(this.failed>=gd)return this.skip||(this.skip=!0,this.logger.debug(`cache had ${this.failed} failed ops, skip disk ops for remander of build`)),null;let t;try{t=await this.cacheFs.readFile(this.getCacheFilePath(e)),this.failed=0,this.skip=!1}catch(e){this.failed++,t=null}return t}async put(e,t){if(!this.config.enableCache)return!1;let n;try{await this.cacheFs.writeFile(this.getCacheFilePath(e),t),n=!0}catch(e){this.failed++,n=!1}return n}async has(e){return"string"==typeof await this.get(e)}async createKey(e,...t){return this.config.enableCache?e+"_"+await this.sys.generateContentHash(JSON.stringify(t),32):e+9999999*Math.random()}async commit(){this.config.enableCache&&(this.skip=!1,this.failed=0,await this.cacheFs.commit(),await this.clearExpiredCache())}clear(){null!=this.cacheFs&&this.cacheFs.clearCache()}async clearExpiredCache(){if(null==this.cacheFs||null==this.sys.cacheStorage)return;const e=Date.now(),t=await this.sys.cacheStorage.get(yd);if(null!=t){if(e-t<_d)return;const n=this.cacheFs.sys,r=await n.readdir(this.config.cacheDir),i=r.map(e=>Fe(this.config.cacheDir,e));let s=0;const o=i.map(async t=>{const r=(await n.stat(t)).mtime.getTime();e-r>Ed&&(await n.unlink(t),s++)});await Promise.all(o),this.logger.debug(`clearExpiredCache, cachedFileNames: ${r.length}, totalCleared: ${s}`)}this.logger.debug("clearExpiredCache, set last clear"),await this.sys.cacheStorage.set(yd,e)}async clearDiskCache(){null!=this.cacheFs&&await this.cacheFs.access(this.config.cacheDir)&&(await this.cacheFs.remove(this.config.cacheDir),await this.cacheFs.commit())}getCacheFilePath(e){return Fe(this.config.cacheDir,e)+".log"}getMemoryStats(){return null!=this.cacheFs?this.cacheFs.getMemoryStats():null}}const gd=100,_d=864e5,Ed=7*_d,yd="last_clear_expired_cache",Td='# Rindo Cache Directory\n\nThis directory contains files which the compiler has\ncached for faster builds. To disable caching, please set\n"enableCache: false" within the rindo config.\n\nTo change the cache directory, please update the\n"cacheDir" property within the rindo config.\n',vd=(e,t,n,r=!0)=>{let i=$e(Me(e),Me(t));return r&&(""===i?i=".":"."!==i[0]&&(i="./"+i)),ae(`${i}/${Ie(t,n)}`)},Ad=e=>Fe(e.typesDir,uf),bd=e=>e.type===Kd,Sd=e=>e.type===Wd,Cd=e=>e.type===zd,xd=e=>e.type===Xd||e.type===qd,Dd=e=>e.type===Gd,Nd=e=>e.type===Jd,wd=e=>e.type===Hd,Od=e=>e.type===Zd,kd=e=>e.type===ef,Rd=e=>e.type===Qd,Id=e=>e.type===jd,Md=e=>e.type===tf||e.type===sf||e.type===rf||e.type===nf||e.type===of,Pd=e=>e.type===sf||e.type===tf,Ld=e=>e.type===rf,Fd=e=>e.type===nf,Bd=e=>e.type===of,$d=e=>e.type===lf,Ud=e=>e.type===af,Vd=e=>e.type===Yd,Hd="angular",Gd="copy",jd="custom",Kd="dist",Wd="dist-collection",zd="dist-custom-elements",Xd="dist-custom-elements-bundle",qd="experimental-dist-module",Yd="dist-types",Qd="dist-hydrate-script",Jd="dist-lazy",Zd="dist-lazy-loader",ef="dist-global-styles",tf="docs",nf="docs-custom",rf="docs-json",sf="docs-readme",of="docs-vscode",af="stats",lf="www",cf=[lf,Kd,Wd,Xd,qd,Jd,Qd,tf,rf,sf,of,nf,Hd,Gd,jd,af],uf="components.d.ts";var hf=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},pf=df;function df(e,t,n){e instanceof RegExp&&(e=ff(e,n)),t instanceof RegExp&&(t=ff(t,n));var r=mf(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function ff(e,t){var n=t.match(e);return n?n[0]:null}function mf(e,t,n){var r,i,s,o,a,l=n.indexOf(e),c=n.indexOf(t,l+1),u=l;if(l>=0&&c>0){for(r=[],s=n.length;u>=0&&!a;)u==l?(r.push(u),l=n.indexOf(e,u+1)):1==r.length?a=[r.pop(),c]:((i=r.pop())<s&&(s=i,o=c),c=n.indexOf(t,u+1)),u=l<c&&l>=0?l:c;r.length&&(a=[s,o])}return a}df.range=mf;var gf="\0SLASH"+Math.random()+"\0",_f="\0OPEN"+Math.random()+"\0",Ef="\0CLOSE"+Math.random()+"\0",yf="\0COMMA"+Math.random()+"\0",Tf="\0PERIOD"+Math.random()+"\0";function vf(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Af(e){return e.split(gf).join("\\").split(_f).join("{").split(Ef).join("}").split(yf).join(",").split(Tf).join(".")}function bf(e){return"{"+e+"}"}function Sf(e){return/^-?0\d/.test(e)}function Cf(e,t){return e<=t}function xf(e,t){return e>=t}var Df=Mf;Mf.Minimatch=Pf;var Nf={sep:"/"};try{Nf=Ge}catch(e){}var wf=Mf.GLOBSTAR=Pf.GLOBSTAR={},Of={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},kf="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),Rf=/\/+/;function If(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function Mf(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Pf(t,n).match(e))}function Pf(e,t){if(!(this instanceof Pf))return new Pf(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==Nf.sep&&(e=e.split(Nf.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function Lf(e,t){if(t||(t=this instanceof Pf?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:(n=e)?("{}"===n.substr(0,2)&&(n="\\{\\}"+n.substr(2)),function e(t,n){var r=[],i=pf("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var s,o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),l=o||a,c=i.body.indexOf(",")>=0;if(!l&&!c)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+Ef+i.post,e(t)):[t];if(l)s=i.body.split(/\.\./);else if(1===(s=function e(t){if(!t)return[""];var n=[],r=pf("{","}",t);if(!r)return t.split(",");var i=r.pre,s=r.body,o=r.post,a=i.split(",");a[a.length-1]+="{"+s+"}";var l=e(o);return o.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),n.push.apply(n,a),n}(i.body)).length&&1===(s=e(s[0],!1).map(bf)).length)return(p=i.post.length?e(i.post,!1):[""]).map((function(e){return i.pre+s[0]+e}));var u,h=i.pre,p=i.post.length?e(i.post,!1):[""];if(l){var d=vf(s[0]),f=vf(s[1]),m=Math.max(s[0].length,s[1].length),g=3==s.length?Math.abs(vf(s[2])):1,_=Cf;f<d&&(g*=-1,_=xf);var E=s.some(Sf);u=[];for(var y=d;_(y,f);y+=g){var T;if(a)"\\"===(T=String.fromCharCode(y))&&(T="");else if(T=String(y),E){var v=m-T.length;if(v>0){var A=new Array(v+1).join("0");T=y<0?"-"+A+T.slice(1):A+T}}u.push(T)}}else u=function(t,n){for(var r=[],i=0;i<t.length;i++){var s=(o=t[i],e(o,!1));hf(s)?r.push.apply(r,s):r.push(s)}var o;return r}(s);for(var b=0;b<u.length;b++)for(var S=0;S<p.length;S++){var C=h+u[b]+p[S];(!n||l||C)&&r.push(C)}return r}(function(e){return e.split("\\\\").join(gf).split("\\{").join(_f).split("\\}").join(Ef).split("\\,").join(yf).split("\\.").join(Tf)}(n),!0).map(Af)):[];var n}Mf.filter=function(e,t){return t=t||{},function(n,r,i){return Mf(n,e,t)}},Mf.defaults=function(e){if(!e||!Object.keys(e).length)return Mf;var t=Mf,n=function(n,r,i){return t.minimatch(n,r,If(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,If(e,r))},n},Pf.defaults=function(e){return e&&Object.keys(e).length?Mf.defaults(e).Minimatch:Pf},Pf.prototype.debug=function(){},Pf.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(Rf)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},Pf.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r<i&&"!"===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.substr(n)),this.negate=t}},Mf.braceExpand=function(e,t){return Lf(e,t)},Pf.prototype.braceExpand=Lf,Pf.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return wf;if(""===e)return"";var r,i="",s=!!n.nocase,o=!1,a=[],l=[],c=!1,u=-1,h=-1,p="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function f(){if(r){switch(r){case"*":i+="[^/]*?",s=!0;break;case"?":i+="[^/]",s=!0;break;default:i+="\\"+r}d.debug("clearStateChar %j %j",r,i),r=!1}}for(var m,g=0,_=e.length;g<_&&(m=e.charAt(g));g++)if(this.debug("%s\t%s %s %j",e,g,i,m),o&&kf[m])i+="\\"+m,o=!1;else switch(m){case"/":return!1;case"\\":f(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,g,i,m),c){this.debug(" in class"),"!"===m&&g===h+1&&(m="^"),i+=m;continue}d.debug("call clearStateChar %j",r),f(),r=m,n.noext&&f();continue;case"(":if(c){i+="(";continue}if(!r){i+="\\(";continue}a.push({type:r,start:g-1,reStart:i.length,open:Of[r].open,close:Of[r].close}),i+="!"===r?"(?:(?!(?:":"(?:",this.debug("plType %j %j",r,i),r=!1;continue;case")":if(c||!a.length){i+="\\)";continue}f(),s=!0;var E=a.pop();i+=E.close,"!"===E.type&&l.push(E),E.reEnd=i.length;continue;case"|":if(c||!a.length||o){i+="\\|",o=!1;continue}f(),i+="|";continue;case"[":if(f(),c){i+="\\"+m;continue}c=!0,h=g,u=i.length,i+=m;continue;case"]":if(g===h+1||!c){i+="\\"+m,o=!1;continue}if(c){var y=e.substring(h+1,g);try{RegExp("["+y+"]")}catch(e){var T=this.parse(y,Ff);i=i.substr(0,u)+"\\["+T[0]+"\\]",s=s||T[1],c=!1;continue}}s=!0,c=!1,i+=m;continue;default:f(),o?o=!1:!kf[m]||"^"===m&&c||(i+="\\"),i+=m}for(c&&(y=e.substr(h+1),T=this.parse(y,Ff),i=i.substr(0,u)+"\\["+T[0],s=s||T[1]),E=a.pop();E;E=a.pop()){var v=i.slice(E.reStart+E.open.length);this.debug("setting tail",i,E),v=v.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){return n||(n="\\"),t+t+n+"|"})),this.debug("tail=%j\n %s",v,v,E,i);var A="*"===E.type?"[^/]*?":"?"===E.type?"[^/]":"\\"+E.type;s=!0,i=i.slice(0,E.reStart)+A+"\\("+v}f(),o&&(i+="\\\\");var b=!1;switch(i.charAt(0)){case".":case"[":case"(":b=!0}for(var S=l.length-1;S>-1;S--){var C=l[S],x=i.slice(0,C.reStart),D=i.slice(C.reStart,C.reEnd-8),N=i.slice(C.reEnd-8,C.reEnd),w=i.slice(C.reEnd);N+=w;var O=x.split("(").length-1,k=w;for(g=0;g<O;g++)k=k.replace(/\)[+*?]?/,"");var R="";""===(w=k)&&t!==Ff&&(R="$"),i=x+D+w+R+N}if(""!==i&&s&&(i="(?=.)"+i),b&&(i=p+i),t===Ff)return[i,s];if(!s)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var I=n.nocase?"i":"";try{var M=new RegExp("^"+i+"$",I)}catch(e){return new RegExp("$.")}return M._glob=e,M._src=i,M};var Ff={};Mf.makeRe=function(e,t){return new Pf(e,t||{}).makeRe()},Pf.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=t.nocase?"i":"",i=e.map((function(e){return e.map((function(e){return e===wf?n:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch(e){this.regexp=!1}return this.regexp},Mf.match=function(e,t,n){var r=new Pf(t,n=n||{});return e=e.filter((function(e){return r.match(e)})),r.options.nonull&&!e.length&&e.push(t),e},Pf.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var n=this.options;"/"!==Nf.sep&&(e=e.split(Nf.sep).join("/")),e=e.split(Rf),this.debug(this.pattern,"split",e);var r,i,s=this.set;for(this.debug(this.pattern,"set",s),i=e.length-1;i>=0&&!(r=e[i]);i--);for(i=0;i<s.length;i++){var o=s[i],a=e;if(n.matchBase&&1===o.length&&(a=[r]),this.matchOne(a,o,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},Pf.prototype.matchOne=function(e,t,n){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,s=0,o=e.length,a=t.length;i<o&&s<a;i++,s++){this.debug("matchOne loop");var l,c=t[s],u=e[i];if(this.debug(t,c,u),!1===c)return!1;if(c===wf){this.debug("GLOBSTAR",[t,c,u]);var h=i,p=s+1;if(p===a){for(this.debug("** at the end");i<o;i++)if("."===e[i]||".."===e[i]||!r.dot&&"."===e[i].charAt(0))return!1;return!0}for(;h<o;){var d=e[h];if(this.debug("\nglobstar while",e,h,t,p,d),this.matchOne(e.slice(h),t.slice(p),n))return this.debug("globstar found match!",h,o,d),!0;if("."===d||".."===d||!r.dot&&"."===d.charAt(0)){this.debug("dot detected!",e,h,t,p);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug("\n>>> no match, partial?",e,h,t,p),h!==o))}if("string"==typeof c?(l=r.nocase?u.toLowerCase()===c.toLowerCase():u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===o&&s===a)return!0;if(i===o)return n;if(s===a)return i===o-1&&""===e[i];throw new Error("wtf?")};const Bf=(e,t,n,r,i)=>{r.includes(i)||r.push(i),n.has(i)||(n.add(i),e.reduce((e,t)=>(t.localImports.forEach(n=>{let r=n;r!==i?(r=n+".tsx",r!==i?(r=n+".ts",r!==i?(r=n+".js",r!==i||e.push(t.sourceFilePath)):e.push(t.sourceFilePath)):e.push(t.sourceFilePath)):e.push(t.sourceFilePath)}),e),[]).forEach(e=>{t.push(e)}))},$f=[".png",".jpg",".jpeg",".gif",".webp",".ico",".svg"],Uf=(e,t,n)=>{const r=n.componentGraph?(e=>{const t={};for(const[n,r]of e)t[n]=r;return t})(n.componentGraph.entries()):void 0,i={buildId:n.buildId,diagnostics:j(t,n.diagnostics),dirsAdded:n.dirsAdded.slice().sort(),dirsDeleted:n.dirsDeleted.slice().sort(),duration:Date.now()-n.startTime,filesAdded:n.filesAdded.slice().sort(),filesChanged:n.filesChanged.slice().sort(),filesDeleted:n.filesDeleted.slice().sort(),filesUpdated:n.filesUpdated.slice().sort(),hasError:Z(n.diagnostics),hasSuccessfulBuild:t.hasSuccessfulBuild,isRebuild:n.isRebuild,namespace:e.namespace,outputs:t.fs.getBuildOutputs(),rootDir:e.rootDir,srcDir:e.srcDir,timestamp:ku(),componentGraph:r},s=((e,t,n)=>{if(null==e.devServer||null==e.devServer.reloadStrategy)return null;const r={reloadStrategy:e.devServer.reloadStrategy,versionId:Date.now().toString().substring(6)+""+Math.round(89999*Math.random()+1e4)};n.scriptsAdded.length>0&&(r.scriptsAdded=n.scriptsAdded.slice()),n.scriptsDeleted.length>0&&(r.scriptsDeleted=n.scriptsDeleted.slice());const i=((e,t,n)=>{const r=[];return t&&0!==t.length?(t.forEach(t=>n.map(n=>{let i=!1;return i=V(t)?Df(n,t):ae(t)===ae(n),i&&(e.logger.debug("excludeHmr: "+n),r.push(Ie(n))),i}).some(e=>e)),r.sort()):r})(e,e.devServer.excludeHmr,n.filesChanged);i.length>0&&(r.excludeHmr=i.slice()),n.hasHtmlChanges&&(r.indexHtmlUpdated=!0),n.hasServiceWorkerChanges&&(r.serviceWorkerUpdated=!0);const s=e.outputTargets.filter($d),o=((e,t)=>{if(!t.filesChanged)return null;const n=t.filesChanged.filter(e=>e.endsWith(".ts")||e.endsWith(".tsx")||e.endsWith(".js")||e.endsWith(".jsx"));if(0===n.length)return null;const r=[],i=new Set,s=t.moduleFiles.filter(e=>e.localImports&&e.localImports.length>0);for(;n.length>0;){const e=n.shift();Bf(s,n,i,r,e)}const o=r.reduce((t,n)=>{const r=e.moduleMap.get(n);return null!=r&&r.cmps.forEach(e=>{"string"==typeof e.tagName&&(t.includes(e.tagName)||t.push(e.tagName))}),t},[]);return 0===o.length?null:o.sort()})(t,n);o&&(r.componentsUpdated=o),Object.keys(n.stylesUpdated).length>0&&(r.inlineStylesUpdated=O(n.stylesUpdated.map(e=>({styleId:jr(e.styleTag,e.styleMode),styleTag:e.styleTag,styleText:e.styleText})),e=>e.styleId));const a=((e,t)=>{if(!e.isRebuild||0===t.length)return null;const n=e.filesWritten.filter(e=>e.endsWith(".css"));return 0===n.length?null:n.map(e=>Ie(e)).sort()})(n,s);a&&(r.externalStylesUpdated=a);const l=((e,t)=>{if(0===t.length)return null;const n=e.filesChanged.reduce((e,t)=>{if($f.some(e=>t.toLowerCase().endsWith(e))){const n=Ie(t);e.includes(n)||e.push(n)}return e},[]);return 0===n.length?null:n.sort()})(n,s);return l&&(r.imagesUpdated=l),r})(e,t,n);return null!=s&&(i.hmr=s),B(n.hydrateAppFilePath)&&(i.hydrateAppFilePath=n.hydrateAppFilePath),t.lastBuildResults=Object.assign({},i),i},Vf=e=>Hf(e.config,e.compilerCtx,e,!0),Hf=async(e,t,n,r)=>{if(n.hasFinished&&n.buildResults)return n.buildResults;if(n.buildResults=Uf(e,t,n),n.debug(`${r?"aborted":"finished"} build, ${n.buildResults.duration}ms`),!n.hasFinished){n.hasPrintedResults||(Kf(e,n.buildResults.diagnostics),e.logger.printDiagnostics(n.buildResults.diagnostics));const i=n.hasScriptChanges||n.hasStyleChanges;n.isRebuild&&i&&n.buildResults.hmr&&!r&&Gf(e.logger,n);const s=n.isRebuild?"rebuild":"build",o=e.watch?", watching for changes...":"";let a="finished",l="green";n.hasError?(a="failed",l="red"):(t.changedFiles.clear(),t.hasSuccessfulBuild=!0,n.buildResults.hasSuccessfulBuild=!0),n.hasPrintedResults||(n.timeSpan.finish(`${s} ${a}${o}`,l,!0,!0),n.hasPrintedResults=!0),t.events.emit("buildFinish",n.buildResults),P(e.logger.writeLogs)&&e.logger.writeLogs(n.isRebuild)}return n.hasFinished=!0,e.watch||(t.reset(),i&&global.gc&&(n.debug("triggering forced gc"),global.gc(),n.debug("forced gc finished"))),n.buildResults},Gf=(e,t)=>{const n=t.buildResults.hmr;if(n.componentsUpdated&&jf(e,"updated component",n.componentsUpdated),n.inlineStylesUpdated){const t=n.inlineStylesUpdated.map(e=>e.styleTag).reduce((e,t)=>(e.includes(t)||e.push(t),e),[]);jf(e,"updated style",t)}n.externalStylesUpdated&&jf(e,"updated stylesheet",n.externalStylesUpdated),n.imagesUpdated&&jf(e,"updated image",n.imagesUpdated)},jf=(e,t,n)=>{if(n.length>0){let r="";if(n.length>7){const e=n.length-6;r=(n=n.slice(0,6)).join(", ")+`, +${e} others`}else r=n.join(", ");n.length>1&&(t+="s"),e.info(`${t}: ${e.cyan(r)}`)}},Kf=(e,t)=>{t.forEach(t=>{!t.relFilePath&&!ve(t.absFilePath)&&t.absFilePath&&e.rootDir&&(t.relFilePath=$e(e.rootDir,t.absFilePath))})},Wf="{visibility:hidden}.hydrated{visibility:inherit}",zf="http://www.w3.org/1999/xlink",Xf={get:(e,t)=>t in e?e[t]:isNaN(t)?void 0:e.__items[t]},qf=e=>new Proxy(new Yf(e),Xf);class Yf{constructor(e=!1){this.caseInsensitive=e,this.__items=[]}get length(){return this.__items.length}item(e){return this.__items[e]||null}setNamedItem(e){e.namespaceURI=null,this.setNamedItemNS(e)}setNamedItemNS(e){null!=e&&null!=e.value&&(e.value=String(e.value));const t=this.__items.find(t=>t.name===e.name&&t.namespaceURI===e.namespaceURI);null!=t?t.value=e.value:this.__items.push(e)}getNamedItem(e){return this.caseInsensitive&&(e=e.toLowerCase()),this.getNamedItemNS(null,e)}getNamedItemNS(e,t){return e=Qf(e),this.__items.find(n=>n.name===t&&Qf(n.namespaceURI)===e)||null}removeNamedItem(e){this.removeNamedItemNS(e)}removeNamedItemNS(e){for(let t=0,n=this.__items.length;t<n;t++)if(this.__items[t].name===e.name&&this.__items[t].namespaceURI===e.namespaceURI){this.__items.splice(t,1);break}}}function Qf(e){return e===zf?null:e}function Jf(e,t=!1){const n=new Yf(e.caseInsensitive);if(null!=e){const r=e.length;if(t&&r>1){const t=[];for(let n=0;n<r;n++){const r=e.item(n),i=new em(r.name,r.value,r.namespaceURI);t.push(i)}t.sort(Zf).forEach(e=>{n.setNamedItemNS(e)})}else for(let t=0;t<r;t++){const r=e.item(t),i=new em(r.name,r.value,r.namespaceURI);n.setNamedItemNS(i)}}return n}function Zf(e,t){return e.name<t.name?-1:e.name>t.name?1:0}class em{constructor(e,t,n=null){this._name=e,this._value=String(t),this._namespaceURI=n}get name(){return this._name}set name(e){this._name=e}get value(){return this._value}set value(e){this._value=String(e)}get nodeName(){return this._name}set nodeName(e){this._name=e}get nodeValue(){return this._value}set nodeValue(e){this._value=String(e)}get namespaceURI(){return this._namespaceURI}set namespaceURI(e){this._namespaceURI=e}}class tm{constructor(e){this.win=e}define(e,t,n){if(e.toLowerCase()!==e)throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': "${e}" is not a valid custom element name`);if(null==this.__registry&&(this.__registry=new Map),this.__registry.set(e,{cstr:t,options:n}),null!=this.__whenDefined){const t=this.__whenDefined.get(e);null!=t&&(t.forEach(e=>{e()}),t.length=0,this.__whenDefined.delete(e))}const r=this.win.document;null!=r&&r.querySelectorAll(e).forEach(t=>{if(!1===im.has(t)){um.add(r);const n=nm(this,r,e);for(let e=0;e<t.childNodes.length;e++){const r=t.childNodes[e];r.remove(),n.appendChild(r)}um.delete(r),rm.has(t)&&rm.set(t,n)}om(t)})}get(e){if(null!=this.__registry){const t=this.__registry.get(e.toLowerCase());if(null!=t)return t.cstr}}upgrade(e){}clear(){null!=this.__registry&&this.__registry.clear(),null!=this.__whenDefined&&this.__whenDefined.clear()}whenDefined(e){return e=e.toLowerCase(),null!=this.__registry&&!0===this.__registry.has(e)?Promise.resolve():new Promise(t=>{null==this.__whenDefined&&(this.__whenDefined=new Map);let n=this.__whenDefined.get(e);null==n&&(n=[],this.__whenDefined.set(e,n)),n.push(t)})}}function nm(e,t,n){const r=e.get(n);if(null!=r){const e=new r(t);return e.nodeName=n.toUpperCase(),im.add(e),e}const i=new Proxy({},{get(e,t){const n=rm.get(i);return null!=n?n[t]:e[t]},set(e,t,n){const r=rm.get(i);return null!=r?r[t]=n:e[t]=n,!0},has:(e,t)=>t in rm.get(i)||t in e}),s=new Qm(t,n);return rm.set(i,s),i}const rm=new WeakMap,im=new WeakSet;function sm(e,t){if(t.ownerDocument=e,1===t.nodeType){if(null!=e&&t.nodeName.includes("-")){null!=e.defaultView&&"function"==typeof t.connectedCallback&&t.isConnected&&om(t);const n=t.shadowRoot;null!=n&&n.childNodes.forEach(t=>{sm(e,t)})}t.childNodes.forEach(t=>{sm(e,t)})}else t.childNodes.forEach(t=>{t.ownerDocument=e})}function om(e){if("function"==typeof e.connectedCallback&&!1===um.has(e.ownerDocument))try{e.connectedCallback()}catch(e){console.error(e)}}function am(e){if(1===e.nodeType){if(!0===e.nodeName.includes("-")&&"function"==typeof e.disconnectedCallback&&!1===um.has(e.ownerDocument))try{e.disconnectedCallback()}catch(e){console.error(e)}e.childNodes.forEach(am)}}function lm(e,t,n,r){t=t.toLowerCase();const i=e.constructor.observedAttributes;if(!0===Array.isArray(i)&&!0===i.some(e=>e.toLowerCase()===t))try{e.attributeChangedCallback(t,n,r)}catch(e){console.error(e)}}function cm(e){return!0===e.nodeName.includes("-")&&"function"==typeof e.attributeChangedCallback}const um=new Set;const hm=function(){const e={exports:{}};return function(t){var n,r,i,s,o,a,l,c,u,h,p,d,f,m,g,_,E,y,T,v="sizzle"+1*new Date,A=t.document,b=0,S=0,C=ce(),x=ce(),D=ce(),N=ce(),w=function(e,t){return e===t&&(p=!0),0},O={}.hasOwnProperty,k=[],R=k.pop,I=k.push,M=k.push,P=k.slice,L=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",$="(?:\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+B+"*("+$+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+$+"))|)"+B+"*\\]",V=":("+$+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",H=new RegExp(B+"+","g"),G=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),j=new RegExp("^"+B+"*,"+B+"*"),K=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),W=new RegExp(B+"|>"),z=new RegExp(V),X=new RegExp("^"+$+"$"),q={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,ee=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,te=/[+~]/,ne=new RegExp("\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\([^\\r\\n\\f])","g"),re=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){d()},ae=ye((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{M.apply(k=P.call(A.childNodes),A.childNodes),k[A.childNodes.length].nodeType}catch(t){M={apply:k.length?function(e,t){I.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function le(e,t,n,i){var s,o,l,u,h,p,m,E=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(d(t),t=t||f,g)){if(11!==y&&(h=ee.exec(e)))if(s=h[1]){if(9===y){if(!(l=t.getElementById(s)))return n;if(l.id===s)return n.push(l),n}else if(E&&(l=E.getElementById(s))&&T(t,l)&&l.id===s)return n.push(l),n}else{if(h[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=h[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&!N[e+" "]&&(!_||!_.test(e))&&(1!==y||"object"!==t.nodeName.toLowerCase())){if(m=e,E=t,1===y&&(W.test(e)||K.test(e))){for((E=te.test(e)&&ge(t.parentNode)||t)===t&&r.scope||((u=t.getAttribute("id"))?u=u.replace(ie,se):t.setAttribute("id",u=v)),o=(p=a(e)).length;o--;)p[o]=(u?"#"+u:":scope")+" "+Ee(p[o]);m=p.join(",")}try{return M.apply(n,E.querySelectorAll(m)),n}catch(t){N(e,!0)}finally{u===v&&t.removeAttribute("id")}}}return c(e.replace(G,"$1"),t,n,i)}function ce(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ue(e){return e[v]=!0,e}function he(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function pe(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ue((function(t){return t=+t,ue((function(n,r){for(var i,s=e([],n.length,t),o=s.length;o--;)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(n in r=le.support={},o=le.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},d=le.setDocument=function(e){var t,n,s=e?e.ownerDocument||e:A;return s!=f&&9===s.nodeType&&s.documentElement?(m=(f=s).documentElement,g=!o(f),A!=f&&(n=f.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),r.scope=he((function(e){return m.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),r.attributes=he((function(e){return e.className="i",!e.getAttribute("className")})),r.getElementsByTagName=he((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),r.getElementsByClassName=Z.test(f.getElementsByClassName),r.getById=he((function(e){return m.appendChild(e).id=v,!f.getElementsByName||!f.getElementsByName(v).length})),r.getById?(i.filter.ID=function(e){var t=e.replace(ne,re);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(ne,re);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(i=t.getElementsByName(e),r=0;s=i[r++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),i.find.TAG=r.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):r.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if("*"===e){for(;n=s[i++];)1===n.nodeType&&r.push(n);return r}return s},i.find.CLASS=r.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},E=[],_=[],(r.qsa=Z.test(f.querySelectorAll))&&(he((function(e){var t;m.appendChild(e).innerHTML="<a id='"+v+"'></a><select id='"+v+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||_.push("\\["+B+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+v+"-]").length||_.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||_.push("\\["+B+"*name"+B+"*="+B+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||_.push(":checked"),e.querySelectorAll("a#"+v+"+*").length||_.push(".#.+[+~]"),e.querySelectorAll("\\\f"),_.push("[\\r\\n\\f]")})),he((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&_.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&_.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),_.push(",.*:")}))),(r.matchesSelector=Z.test(y=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&he((function(e){r.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),E.push("!=",V)})),_=_.length&&new RegExp(_.join("|")),E=E.length&&new RegExp(E.join("|")),t=Z.test(m.compareDocumentPosition),T=t||Z.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},w=t?function(e,t){if(e===t)return p=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!r.sortDetached&&t.compareDocumentPosition(e)===n?e==f||e.ownerDocument==A&&T(A,e)?-1:t==f||t.ownerDocument==A&&T(A,t)?1:h?L(h,e)-L(h,t):0:4&n?-1:1)}:function(e,t){if(e===t)return p=!0,0;var n,r=0,i=e.parentNode,s=t.parentNode,o=[e],a=[t];if(!i||!s)return e==f?-1:t==f?1:i?-1:s?1:h?L(h,e)-L(h,t):0;if(i===s)return de(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;o[r]===a[r];)r++;return r?de(o[r],a[r]):o[r]==A?-1:a[r]==A?1:0},f):f},le.matches=function(e,t){return le(e,null,null,t)},le.matchesSelector=function(e,t){if(d(e),r.matchesSelector&&g&&!N[t+" "]&&(!E||!E.test(t))&&(!_||!_.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return le(t,f,null,[e]).length>0},le.contains=function(e,t){return(e.ownerDocument||e)!=f&&d(e),T(e,t)},le.attr=function(e,t){(e.ownerDocument||e)!=f&&d(e);var n=i.attrHandle[t.toLowerCase()],s=n&&O.call(i.attrHandle,t.toLowerCase())?n(e,t,!g):void 0;return void 0!==s?s:r.attributes||!g?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},le.escape=function(e){return(e+"").replace(ie,se)},le.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},le.uniqueSort=function(e){var t,n=[],i=0,s=0;if(p=!r.detectDuplicates,h=!r.sortStable&&e.slice(0),e.sort(w),p){for(;t=e[s++];)t===e[s]&&(i=n.push(s));for(;i--;)e.splice(n[i],1)}return h=null,e},s=le.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=s(t);return n},(i=le.selectors={cacheLength:50,createPseudo:ue,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ne,re),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,re),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||le.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&le.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,re).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=le.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,h,p,d,f,m=s!==o?"nextSibling":"previousSibling",g=t.parentNode,_=a&&t.nodeName.toLowerCase(),E=!l&&!a,y=!1;if(g){if(s){for(;m;){for(p=t;p=p[m];)if(a?p.nodeName.toLowerCase()===_:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&E){for(y=(d=(c=(u=(h=(p=g)[v]||(p[v]={}))[p.uniqueID]||(h[p.uniqueID]={}))[e]||[])[0]===b&&c[1])&&c[2],p=d&&g.childNodes[d];p=++d&&p&&p[m]||(y=d=0)||f.pop();)if(1===p.nodeType&&++y&&p===t){u[e]=[b,d,y];break}}else if(E&&(y=d=(c=(u=(h=(p=t)[v]||(p[v]={}))[p.uniqueID]||(h[p.uniqueID]={}))[e]||[])[0]===b&&c[1]),!1===y)for(;(p=++d&&p&&p[m]||(y=d=0)||f.pop())&&((a?p.nodeName.toLowerCase()!==_:1!==p.nodeType)||!++y||(E&&((u=(h=p[v]||(p[v]={}))[p.uniqueID]||(h[p.uniqueID]={}))[e]=[b,y]),p!==t)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||le.error("unsupported pseudo: "+e);return r[v]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){for(var i,s=r(e,t),o=s.length;o--;)e[i=L(e,s[o])]=!(n[i]=s[o])})):function(e){return r(e,0,n)}):r}},pseudos:{not:ue((function(e){var t=[],n=[],r=l(e.replace(G,"$1"));return r[v]?ue((function(e,t,n,i){for(var s,o=r(e,null,i,[]),a=e.length;a--;)(s=o[a])&&(e[a]=!(t[a]=s))})):function(e,i,s){return t[0]=e,r(t,null,s,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return le(e,t).length>0}})),contains:ue((function(e){return e=e.replace(ne,re),function(t){return(t.textContent||s(t)).indexOf(e)>-1}})),lang:ue((function(e){return X.test(e||"")||le.error("unsupported lang: "+e),e=e.replace(ne,re).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(e){return e===m},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:me((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[n]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(n);for(n in{submit:!0,reset:!0})i.pseudos[n]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(n);function _e(){}function Ee(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(e,t,n){var r=t.dir,i=t.next,s=i||r,o=n&&"parentNode"===s,a=S++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,l){var c,u,h,p=[b,a];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=(h=t[v]||(t[v]={}))[t.uniqueID]||(h[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[s])&&c[0]===b&&c[1]===a)return p[2]=c[2];if(u[s]=p,p[2]=e(t,n,l))return!0}return!1}}function Te(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ve(e,t,n,r,i){for(var s,o=[],a=0,l=e.length,c=null!=t;a<l;a++)(s=e[a])&&(n&&!n(s,r,i)||(o.push(s),c&&t.push(a)));return o}function Ae(e,t,n,r,i,s){return r&&!r[v]&&(r=Ae(r)),i&&!i[v]&&(i=Ae(i,s)),ue((function(s,o,a,l){var c,u,h,p=[],d=[],f=o.length,m=s||function(e,t,n){for(var r=0,i=t.length;r<i;r++)le(e,t[r],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!s&&t?m:ve(m,p,e,a,l),_=n?i||(s?e:f||r)?[]:o:g;if(n&&n(g,_,a,l),r)for(c=ve(_,d),r(c,[],a,l),u=c.length;u--;)(h=c[u])&&(_[d[u]]=!(g[d[u]]=h));if(s){if(i||e){if(i){for(c=[],u=_.length;u--;)(h=_[u])&&c.push(g[u]=h);i(null,_=[],c,l)}for(u=_.length;u--;)(h=_[u])&&(c=i?L(s,h):p[u])>-1&&(s[c]=!(o[c]=h))}}else _=ve(_===o?_.splice(f,_.length):_),i?i(null,o,_,l):M.apply(o,_)}))}function be(e){for(var t,n,r,s=e.length,o=i.relative[e[0].type],a=o||i.relative[" "],l=o?1:0,c=ye((function(e){return e===t}),a,!0),h=ye((function(e){return L(t,e)>-1}),a,!0),p=[function(e,n,r){var i=!o&&(r||n!==u)||((t=n).nodeType?c(e,n,r):h(e,n,r));return t=null,i}];l<s;l++)if(n=i.relative[e[l].type])p=[ye(Te(p),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[v]){for(r=++l;r<s&&!i.relative[e[r].type];r++);return Ae(l>1&&Te(p),l>1&&Ee(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(G,"$1"),n,l<r&&be(e.slice(l,r)),r<s&&be(e=e.slice(r)),r<s&&Ee(e))}p.push(n)}return Te(p)}function Se(e,t){var n=t.length>0,r=e.length>0,s=function(s,o,a,l,c){var h,p,m,_=0,E="0",y=s&&[],T=[],v=u,A=s||r&&i.find.TAG("*",c),S=b+=null==v?1:Math.random()||.1,C=A.length;for(c&&(u=o==f||o||c);E!==C&&null!=(h=A[E]);E++){if(r&&h){for(p=0,o||h.ownerDocument==f||(d(h),a=!g);m=e[p++];)if(m(h,o||f,a)){l.push(h);break}c&&(b=S)}n&&((h=!m&&h)&&_--,s&&y.push(h))}if(_+=E,n&&E!==_){for(p=0;m=t[p++];)m(y,T,o,a);if(s){if(_>0)for(;E--;)y[E]||T[E]||(T[E]=R.call(l));T=ve(T)}M.apply(l,T),c&&!s&&T.length>0&&_+t.length>1&&le.uniqueSort(l)}return c&&(b=S,u=v),y};return n?ue(s):s}_e.prototype=i.filters=i.pseudos,i.setFilters=new _e,a=le.tokenize=function(e,t){var n,r,s,o,a,l,c,u=x[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=i.preFilter;a;){for(o in n&&!(r=j.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(s=[])),n=!1,(r=K.exec(a))&&(n=r.shift(),s.push({value:n,type:r[0].replace(G," ")}),a=a.slice(n.length)),i.filter)!(r=q[o].exec(a))||c[o]&&!(r=c[o](r))||(n=r.shift(),s.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?le.error(e):x(e,l).slice(0)},l=le.compile=function(e,t){var n,r=[],i=[],s=D[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=be(t[n]))[v]?r.push(s):i.push(s);(s=D(e,Se(i,r))).selector=e}return s},c=le.select=function(e,t,n,r){var s,o,c,u,h,p="function"==typeof e&&e,d=!r&&a(e=p.selector||e);if(n=n||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(c=o[0]).type&&9===t.nodeType&&g&&i.relative[o[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(ne,re),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(s=q.needsContext.test(e)?0:o.length;s--&&(c=o[s],!i.relative[u=c.type]);)if((h=i.find[u])&&(r=h(c.matches[0].replace(ne,re),te.test(o[0].type)&&ge(t.parentNode)||t))){if(o.splice(s,1),!(e=r.length&&Ee(o)))return M.apply(n,r),n;break}}return(p||l(e,d))(r,t,!g,n,!t||te.test(e)&&ge(t.parentNode)||t),n},r.sortStable=v.split("").sort(w).join("")===v,r.detectDuplicates=!!p,d(),r.sortDetached=he((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),he((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||pe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),r.attributes&&he((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||pe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),he((function(e){return null==e.getAttribute("disabled")}))||pe(F,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}));var Ce=t.Sizzle;le.noConflict=function(){return t.Sizzle===le&&(t.Sizzle=Ce),le},"function"==typeof define&&define.amd?define((function(){return le})):void 0!==e&&e.exports?e.exports=le:t.Sizzle=le}({document:{createElement:()=>({}),nodeType:9,documentElement:{nodeType:1,nodeName:"HTML"}}}),e.exports}();class pm{constructor(e){this.elm=e}add(...e){const t=fm(this.elm);let n=!1;e.forEach(e=>{dm(e=String(e)),!1===t.includes(e)&&(t.push(e),n=!0)}),n&&this.elm.setAttributeNS(null,"class",t.join(" "))}remove(...e){const t=fm(this.elm);let n=!1;e.forEach(e=>{dm(e=String(e));const r=t.indexOf(e);r>-1&&(t.splice(r,1),n=!0)}),n&&this.elm.setAttributeNS(null,"class",t.filter(e=>e.length>0).join(" "))}contains(e){return e=String(e),fm(this.elm).includes(e)}toggle(e){e=String(e),!0===this.contains(e)?this.remove(e):this.add(e)}get length(){return fm(this.elm).length}item(e){return fm(this.elm)[e]}toString(){return fm(this.elm).join(" ")}}function dm(e){if(""===e)throw new Error("The token provided must not be empty.");if(/\s/.test(e))throw new Error(`The token provided ('${e}') contains HTML space characters, which are not valid in tokens.`)}function fm(e){const t=e.getAttribute("class");return"string"==typeof t&&t.length>0?t.trim().split(" ").filter(e=>e.length>0):[]}class mm{constructor(){this._styles=new Map}setProperty(e,t){e=Em(e),null==t||""===t?this._styles.delete(e):this._styles.set(e,String(t))}getPropertyValue(e){return e=Em(e),String(this._styles.get(e)||"")}removeProperty(e){e=Em(e),this._styles.delete(e)}get length(){return this._styles.size}get cssText(){const e=[];return this._styles.forEach((t,n)=>{e.push(`${n}: ${t};`)}),e.join(" ").trim()}set cssText(e){null!=e&&""!==e?e.split(";").forEach(e=>{if((e=e.trim()).length>0){const t=e.split(":");if(t.length>1){const e=t[0].trim(),n=t[1].trim();""!==e&&""!==n&&this._styles.set(Em(e),n)}}}):this._styles.clear()}}function gm(){return new Proxy(new mm,_m)}const _m={get:(e,t)=>{return t in e?e[t]:((n=t).length>1&&!0===n.includes("-")&&(n=(n=n.toLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")).substr(0,1).toLowerCase()+n.substr(1)),t=n,e.getPropertyValue(t));var n},set:(e,t,n)=>(t in e?e[t]=n:e.setProperty(t,n),!0)};function Em(e){return e.length>1&&!1===e.includes("-")&&!0===/[A-Z]/.test(e)&&(e=e.replace(/([A-Z])/g,e=>" "+e[0]).trim().replace(/ /g,"-").toLowerCase()),e}class ym{constructor(e,t){if(this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.composed=!1,this.currentTarget=null,this.defaultPrevented=!1,this.srcElement=null,this.target=null,"string"!=typeof e)throw new Error("Event type required");this.type=e,this.timeStamp=Date.now(),null!=t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this.cancelBubble=!0}}class Tm{constructor(e,t){this.type=e,this.handler=t}}function vm(e,t,n){const r=e;null==r.__listeners&&(r.__listeners=[]),r.__listeners.push(new Tm(t,n))}function Am(e,t,n){const r=e;if(null!=r&&!0===Array.isArray(r.__listeners)){const e=r.__listeners.find(e=>e.type===t&&e.handler===n);if(null!=e){const t=r.__listeners.indexOf(e);r.__listeners.splice(t,1)}}}function bm(e){null!=e&&null!=e.__listeners&&(e.__listeners=null)}function Sm(e,t){return t.target=e,function e(t,n){if(null==t||!0===n.cancelBubble)return;const r=t;n.currentTarget=t,!0===Array.isArray(r.__listeners)&&r.__listeners.filter(e=>e.type===n.type).forEach(e=>{try{e.handler.call(r,n)}catch(e){console.error(e)}}),!1!==n.bubbles&&("#document"===t.nodeName?e(t.defaultView,n):e(t.parentElement,n))}(e,t),!0}function Cm(e,t={}){const n={currentLineWidth:0,indent:0,isWithinBody:!1,text:[]};if(t.prettyHtml?("number"!=typeof t.indentSpaces&&(t.indentSpaces=2),"boolean"!=typeof t.newLines&&(t.newLines=!0),t.approximateLineWidth=-1):(t.prettyHtml=!1,"boolean"!=typeof t.newLines&&(t.newLines=!1),"number"!=typeof t.indentSpaces&&(t.indentSpaces=0)),"number"!=typeof t.approximateLineWidth&&(t.approximateLineWidth=-1),"boolean"!=typeof t.removeEmptyAttributes&&(t.removeEmptyAttributes=!0),"boolean"!=typeof t.removeAttributeQuotes&&(t.removeAttributeQuotes=!1),"boolean"!=typeof t.removeBooleanAttributeQuotes&&(t.removeBooleanAttributeQuotes=!1),"boolean"!=typeof t.removeHtmlComments&&(t.removeHtmlComments=!1),"boolean"!=typeof t.serializeShadowRoot&&(t.serializeShadowRoot=!1),t.outerHtml)xm(e,t,n,!1);else for(let r=0,i=e.childNodes.length;r<i;r++)xm(e.childNodes[r],t,n,!1);return"\n"===n.text[0]&&n.text.shift(),"\n"===n.text[n.text.length-1]&&n.text.pop(),n.text.join("")}function xm(e,t,n,r){if(1===e.nodeType||r){const s=r?"mock:shadow-root":"http://www.w3.org/1999/xhtml"===(i=e).namespaceURI?i.nodeName.toLowerCase():i.nodeName;"body"===s&&(n.isWithinBody=!0);const o=null!=t.excludeTags&&t.excludeTags.includes(s);if(!1===o){if(t.newLines&&(n.text.push("\n"),n.currentLineWidth=0),t.indentSpaces>0){for(let e=0;e<n.indent;e++)n.text.push(" ");n.currentLineWidth+=n.indent}n.text.push("<"+s),n.currentLineWidth+=s.length+1;const r=e.attributes.length,i=t.prettyHtml&&r>1?Jf(e.attributes,!0):e.attributes;for(let e=0;e<r;e++){const r=i.item(e),s=r.name;if("style"===s)continue;let o=r.value;if(t.removeEmptyAttributes&&""===o&&Bm.has(s))continue;const a=r.namespaceURI;if(null==a?(n.currentLineWidth+=s.length+1,t.approximateLineWidth>0&&n.currentLineWidth>t.approximateLineWidth?(n.text.push("\n"+s),n.currentLineWidth=0):n.text.push(" "+s)):"http://www.w3.org/XML/1998/namespace"===a?(n.text.push(" xml:"+s),n.currentLineWidth+=s.length+5):"http://www.w3.org/2000/xmlns/"===a?"xmlns"!==s?(n.text.push(" xmlns:"+s),n.currentLineWidth+=s.length+7):(n.text.push(" "+s),n.currentLineWidth+=s.length+1):a===zf?(n.text.push(" xlink:"+s),n.currentLineWidth+=s.length+7):(n.text.push(" "+a+":"+s),n.currentLineWidth+=a.length+s.length+2),t.prettyHtml&&"class"===s&&(o=r.value=o.split(" ").filter(e=>""!==e).sort().join(" ").trim()),""===o){if(t.removeBooleanAttributeQuotes&&$m.has(s))continue;if(t.removeEmptyAttributes&&s.startsWith("data-"))continue}t.removeAttributeQuotes&&Rm.test(o)?(n.text.push("="+Im(o,!0)),n.currentLineWidth+=o.length+1):(n.text.push('="'+Im(o,!0)+'"'),n.currentLineWidth+=o.length+3)}if(e.hasAttribute("style")){const r=e.style.cssText;t.approximateLineWidth>0&&n.currentLineWidth+r.length+10>t.approximateLineWidth?(n.text.push(`\nstyle="${r}">`),n.currentLineWidth=0):(n.text.push(` style="${r}">`),n.currentLineWidth+=r.length+10)}else n.text.push(">"),n.currentLineWidth+=1}if(!1===Fm.has(s)){if(t.serializeShadowRoot&&null!=e.shadowRoot&&(n.indent=n.indent+t.indentSpaces,xm(e.shadowRoot,t,n,!0),n.indent=n.indent-t.indentSpaces,t.newLines&&(0===e.childNodes.length||1===e.childNodes.length&&3===e.childNodes[0].nodeType&&""===e.childNodes[0].nodeValue.trim()))){n.text.push("\n"),n.currentLineWidth=0;for(let e=0;e<n.indent;e++)n.text.push(" ");n.currentLineWidth+=n.indent}if(null==t.excludeTagContent||!1===t.excludeTagContent.includes(s)){const r="template"===s?e.content.childNodes:e.childNodes,i=r.length;if(i>0&&(1!==i||3!==r[0].nodeType||"string"==typeof r[0].nodeValue&&""!==r[0].nodeValue.trim())){t.indentSpaces>0&&!1===o&&(n.indent=n.indent+t.indentSpaces);for(let e=0;e<i;e++)xm(r[e],t,n,!1);if(!1===o&&(t.newLines&&(n.text.push("\n"),n.currentLineWidth=0),t.indentSpaces>0)){n.indent=n.indent-t.indentSpaces;for(let e=0;e<n.indent;e++)n.text.push(" ");n.currentLineWidth+=n.indent}}!1===o&&(n.text.push("</"+s+">"),n.currentLineWidth+=s.length+3)}}t.approximateLineWidth>0&&Um.has(s)&&(n.text.push("\n"),n.currentLineWidth=0),"body"===s&&(n.isWithinBody=!1)}else if(3===e.nodeType){let r=e.nodeValue;if("string"==typeof r){const i=r.trim();if(""===i)Mm(e)?(n.text.push(r),n.currentLineWidth+=r.length):t.approximateLineWidth>0&&!n.isWithinBody||t.prettyHtml||(n.currentLineWidth+=1,t.approximateLineWidth>0&&n.currentLineWidth>t.approximateLineWidth?(n.text.push("\n"),n.currentLineWidth=0):n.text.push(" "));else{if(t.newLines&&(n.text.push("\n"),n.currentLineWidth=0),t.indentSpaces>0){for(let e=0;e<n.indent;e++)n.text.push(" ");n.currentLineWidth+=n.indent}let s=r.length;if(s>0){const o=null!=e.parentNode&&1===e.parentNode.nodeType?e.parentNode.nodeName:null;Pm.has(o)?(Mm(e)?n.text.push(r):(n.text.push(i),s=i.length),n.currentLineWidth+=s):t.prettyHtml?(n.text.push(Im(r.replace(/\s\s+/g," ").trim(),!1)),n.currentLineWidth+=s):(Mm(e)||(/\s/.test(r.charAt(0))&&(r=" "+r.trimLeft()),s=r.length,s>1&&/\s/.test(r.charAt(s-1))&&(t.approximateLineWidth>0&&n.currentLineWidth+s>t.approximateLineWidth?(r=r.trimRight()+"\n",n.currentLineWidth=0):r=r.trimRight()+" ")),n.currentLineWidth+=s,n.text.push(Im(r,!1)))}}}}else if(8===e.nodeType){const r=e.nodeValue;if(t.removeHtmlComments&&!(r.startsWith("r.")||r.startsWith("o.")||r.startsWith("s.")||r.startsWith("t.")))return;if(t.newLines&&(n.text.push("\n"),n.currentLineWidth=0),t.indentSpaces>0){for(let e=0;e<n.indent;e++)n.text.push(" ");n.currentLineWidth+=n.indent}n.text.push("\x3c!--"+r+"--\x3e"),n.currentLineWidth+=r.length+7}else 10===e.nodeType&&n.text.push("<!doctype html>");var i}const Dm=/&/g,Nm=/\u00a0/g,wm=/"/g,Om=/</g,km=/>/g,Rm=/^[^ \t\n\f\r"'`=<>\/\\-]+$/;function Im(e,t){return e=e.replace(Dm,"&amp;").replace(Nm,"&nbsp;"),t?e.replace(wm,"&quot;"):e.replace(Om,"&lt;").replace(km,"&gt;")}function Mm(e){for(;null!=e;){if(Lm.has(e.nodeName))return!0;e=e.parentNode}return!1}const Pm=new Set(["STYLE","SCRIPT","IFRAME","NOSCRIPT","XMP","NOEMBED","NOFRAMES","PLAINTEXT"]),Lm=new Set(["CODE","OUTPUT","PLAINTEXT","PRE","TEMPLATE","TEXTAREA"]),Fm=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","meta","param","source","trace","wbr"]),Bm=new Set(["class","dir","id","lang","name","title"]),$m=new Set(["allowfullscreen","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","nomodule","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","truespeed","typemustmatch","visible"]),Um=new Set(["html","body","head","iframe","meta","link","base","title","script","style"]),Vm=function(e){const t=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];var n="�",r={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},i=function(e){return e>=55296&&e<=57343},s=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},o=function(e){return e>=64976&&e<=65007||t.indexOf(e)>-1},a="unexpected-null-character",l="invalid-first-character-of-tag-name",c="missing-semicolon-after-character-reference",u="eof-before-tag-name",h="eof-in-tag",p="missing-whitespace-after-doctype-public-keyword",d="missing-whitespace-between-doctype-public-and-system-identifiers",f="missing-whitespace-after-doctype-system-keyword",m="missing-quote-before-doctype-public-identifier",g="missing-quote-before-doctype-system-identifier",_="missing-doctype-public-identifier",E="missing-doctype-system-identifier",y="abrupt-doctype-public-identifier",T="abrupt-doctype-system-identifier",v="eof-in-script-html-comment-like-text",A="eof-in-doctype",b="abrupt-closing-of-empty-comment",S="eof-in-comment",C="absence-of-digits-in-numeric-character-reference",x="end-tag-without-matching-open-element",D="misplaced-start-tag-for-head-element";const N=r;var w=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const O=r,k=[45,45],R=[68,79,67,84,89,80,69],I=[91,67,68,65,84,65,91],M=[115,99,114,105,112,116],P=[80,85,66,76,73,67],L=[83,89,83,84,69,77],F={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},B="DATA_STATE";function $(e){return e===O.SPACE||e===O.LINE_FEED||e===O.TABULATION||e===O.FORM_FEED}function U(e){return e>=O.DIGIT_0&&e<=O.DIGIT_9}function V(e){return e>=O.LATIN_CAPITAL_A&&e<=O.LATIN_CAPITAL_Z}function H(e){return e>=O.LATIN_SMALL_A&&e<=O.LATIN_SMALL_Z}function G(e){return H(e)||V(e)}function j(e){return G(e)||U(e)}function K(e){return e>=O.LATIN_CAPITAL_A&&e<=O.LATIN_CAPITAL_F}function W(e){return e>=O.LATIN_SMALL_A&&e<=O.LATIN_SMALL_F}function z(e){return e+32}function X(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function q(e){return String.fromCharCode(z(e))}function Y(e,t){const n=w[++e];let r=++e,i=r+n-1;for(;r<=i;){const e=r+i>>>1,s=w[e];if(s<t)r=e+1;else{if(!(s>t))return w[e+n];i=e-1}}return-1}class Q{constructor(){this.preprocessor=new class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),function(e,t){return 1024*(e-55296)+9216+t}(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,N.EOF;return this._err("surrogate-in-input-stream"),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,N.EOF;let e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===N.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===N.CARRIAGE_RETURN?(this.skipNextNewLine=!0,N.LINE_FEED):(this.skipNextNewLine=!1,i(e)&&(e=this._processSurrogate(e)),e>31&&e<127||e===N.LINE_FEED||e===N.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){s(e)?this._err("control-character-in-input-stream"):o(e)&&this._err("noncharacter-in-input-stream")}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},this.tokenQueue=[],this.allowCDATA=!1,this.state=B,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Q.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r=0,i=!0;const s=e.length;let o=0,a=t,l=void 0;for(;o<s;o++){if(o>0&&(a=this._consume(),r++),a===O.EOF){i=!1;break}if(l=e[o],a!==l&&(n||a!==z(l))){i=!1;break}}if(!i)for(;r--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==M.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==M[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:Q.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Q.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Q.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:Q.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:Q.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===Q.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err("duplicate-attribute"),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===Q.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===Q.END_TAG_TOKEN&&(e.attrs.length>0&&this._err("end-tag-with-attributes"),e.selfClosing&&this._err("end-tag-with-trailing-solidus")),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Q.CHARACTER_TOKEN;$(e)?t=Q.WHITESPACE_CHARACTER_TOKEN:e===O.NULL&&(t=Q.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,X(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(Q.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,r=Y(0,e);for(this.tempBuff.push(e);r>-1;){const e=w[r],i=e<7;i&&1&e&&(t=2&e?[w[++r],w[++r]]:[w[++r]],n=0);const s=this._consume();if(this.tempBuff.push(s),n++,s===O.EOF)break;r=i?4&e?Y(r,s):-1:s===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return"ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_UNQUOTED_STATE"===this.returnState}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===O.EQUALS_SIGN||j(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=X(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[B](e){this.preprocessor.dropParsedChunk(),e===O.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":e===O.AMPERSAND?(this.returnState=B,this.state="CHARACTER_REFERENCE_STATE"):e===O.NULL?(this._err(a),this._emitCodePoint(e)):e===O.EOF?this._emitEOFToken():this._emitCodePoint(e)}RCDATA_STATE(e){this.preprocessor.dropParsedChunk(),e===O.AMPERSAND?(this.returnState="RCDATA_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===O.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":e===O.NULL?(this._err(a),this._emitChars(n)):e===O.EOF?this._emitEOFToken():this._emitCodePoint(e)}RAWTEXT_STATE(e){this.preprocessor.dropParsedChunk(),e===O.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":e===O.NULL?(this._err(a),this._emitChars(n)):e===O.EOF?this._emitEOFToken():this._emitCodePoint(e)}SCRIPT_DATA_STATE(e){this.preprocessor.dropParsedChunk(),e===O.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":e===O.NULL?(this._err(a),this._emitChars(n)):e===O.EOF?this._emitEOFToken():this._emitCodePoint(e)}PLAINTEXT_STATE(e){this.preprocessor.dropParsedChunk(),e===O.NULL?(this._err(a),this._emitChars(n)):e===O.EOF?this._emitEOFToken():this._emitCodePoint(e)}TAG_OPEN_STATE(e){e===O.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":e===O.SOLIDUS?this.state="END_TAG_OPEN_STATE":G(e)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===O.QUESTION_MARK?(this._err("unexpected-question-mark-instead-of-tag-name"),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE")):e===O.EOF?(this._err(u),this._emitChars("<"),this._emitEOFToken()):(this._err(l),this._emitChars("<"),this._reconsumeInState(B))}END_TAG_OPEN_STATE(e){G(e)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===O.GREATER_THAN_SIGN?(this._err("missing-end-tag-name"),this.state=B):e===O.EOF?(this._err(u),this._emitChars("</"),this._emitEOFToken()):(this._err(l),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}TAG_NAME_STATE(e){$(e)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":e===O.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===O.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):V(e)?this.currentToken.tagName+=q(e):e===O.NULL?(this._err(a),this.currentToken.tagName+=n):e===O.EOF?(this._err(h),this._emitEOFToken()):this.currentToken.tagName+=X(e)}RCDATA_LESS_THAN_SIGN_STATE(e){e===O.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChars("<"),this._reconsumeInState("RCDATA_STATE"))}RCDATA_END_TAG_OPEN_STATE(e){G(e)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("RCDATA_STATE"))}RCDATA_END_TAG_NAME_STATE(e){if(V(e))this.currentToken.tagName+=q(e),this.tempBuff.push(e);else if(H(e))this.currentToken.tagName+=X(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if($(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===O.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===O.GREATER_THAN_SIGN)return this.state=B,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE")}}RAWTEXT_LESS_THAN_SIGN_STATE(e){e===O.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChars("<"),this._reconsumeInState("RAWTEXT_STATE"))}RAWTEXT_END_TAG_OPEN_STATE(e){G(e)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("RAWTEXT_STATE"))}RAWTEXT_END_TAG_NAME_STATE(e){if(V(e))this.currentToken.tagName+=q(e),this.tempBuff.push(e);else if(H(e))this.currentToken.tagName+=X(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if($(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===O.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===O.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=B)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE")}}SCRIPT_DATA_LESS_THAN_SIGN_STATE(e){e===O.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):e===O.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_STATE"))}SCRIPT_DATA_END_TAG_OPEN_STATE(e){G(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("SCRIPT_DATA_STATE"))}SCRIPT_DATA_END_TAG_NAME_STATE(e){if(V(e))this.currentToken.tagName+=q(e),this.tempBuff.push(e);else if(H(e))this.currentToken.tagName+=X(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if($(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===O.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===O.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=B)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE")}}SCRIPT_DATA_ESCAPE_START_STATE(e){e===O.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChars("-")):this._reconsumeInState("SCRIPT_DATA_STATE")}SCRIPT_DATA_ESCAPE_START_DASH_STATE(e){e===O.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):this._reconsumeInState("SCRIPT_DATA_STATE")}SCRIPT_DATA_ESCAPED_STATE(e){e===O.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChars("-")):e===O.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===O.NULL?(this._err(a),this._emitChars(n)):e===O.EOF?(this._err(v),this._emitEOFToken()):this._emitCodePoint(e)}SCRIPT_DATA_ESCAPED_DASH_STATE(e){e===O.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):e===O.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===O.NULL?(this._err(a),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars(n)):e===O.EOF?(this._err(v),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_ESCAPED_DASH_DASH_STATE(e){e===O.HYPHEN_MINUS?this._emitChars("-"):e===O.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===O.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChars(">")):e===O.NULL?(this._err(a),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars(n)):e===O.EOF?(this._err(v),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE(e){e===O.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):G(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE(e){G(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE(e){if(V(e))this.currentToken.tagName+=q(e),this.tempBuff.push(e);else if(H(e))this.currentToken.tagName+=X(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if($(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===O.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===O.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=B)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}}SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE(e){$(e)||e===O.SOLIDUS||e===O.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e)):V(e)?(this.tempBuff.push(z(e)),this._emitCodePoint(e)):H(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPED_STATE(e){e===O.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChars("-")):e===O.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===O.NULL?(this._err(a),this._emitChars(n)):e===O.EOF?(this._err(v),this._emitEOFToken()):this._emitCodePoint(e)}SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE(e){e===O.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):e===O.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===O.NULL?(this._err(a),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars(n)):e===O.EOF?(this._err(v),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE(e){e===O.HYPHEN_MINUS?this._emitChars("-"):e===O.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===O.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChars(">")):e===O.NULL?(this._err(a),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars(n)):e===O.EOF?(this._err(v),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE(e){e===O.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChars("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE(e){$(e)||e===O.SOLIDUS||e===O.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e)):V(e)?(this.tempBuff.push(z(e)),this._emitCodePoint(e)):H(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}BEFORE_ATTRIBUTE_NAME_STATE(e){$(e)||(e===O.SOLIDUS||e===O.GREATER_THAN_SIGN||e===O.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):e===O.EQUALS_SIGN?(this._err("unexpected-equals-sign-before-attribute-name"),this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}ATTRIBUTE_NAME_STATE(e){$(e)||e===O.SOLIDUS||e===O.GREATER_THAN_SIGN||e===O.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):e===O.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):V(e)?this.currentAttr.name+=q(e):e===O.QUOTATION_MARK||e===O.APOSTROPHE||e===O.LESS_THAN_SIGN?(this._err("unexpected-character-in-attribute-name"),this.currentAttr.name+=X(e)):e===O.NULL?(this._err(a),this.currentAttr.name+=n):this.currentAttr.name+=X(e)}AFTER_ATTRIBUTE_NAME_STATE(e){$(e)||(e===O.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===O.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":e===O.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===O.EOF?(this._err(h),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}BEFORE_ATTRIBUTE_VALUE_STATE(e){$(e)||(e===O.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":e===O.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":e===O.GREATER_THAN_SIGN?(this._err("missing-attribute-value"),this.state=B,this._emitCurrentToken()):this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"))}ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE(e){e===O.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===O.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===O.NULL?(this._err(a),this.currentAttr.value+=n):e===O.EOF?(this._err(h),this._emitEOFToken()):this.currentAttr.value+=X(e)}ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE(e){e===O.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===O.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===O.NULL?(this._err(a),this.currentAttr.value+=n):e===O.EOF?(this._err(h),this._emitEOFToken()):this.currentAttr.value+=X(e)}ATTRIBUTE_VALUE_UNQUOTED_STATE(e){$(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===O.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_UNQUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===O.GREATER_THAN_SIGN?(this._leaveAttrValue(B),this._emitCurrentToken()):e===O.NULL?(this._err(a),this.currentAttr.value+=n):e===O.QUOTATION_MARK||e===O.APOSTROPHE||e===O.LESS_THAN_SIGN||e===O.EQUALS_SIGN||e===O.GRAVE_ACCENT?(this._err("unexpected-character-in-unquoted-attribute-value"),this.currentAttr.value+=X(e)):e===O.EOF?(this._err(h),this._emitEOFToken()):this.currentAttr.value+=X(e)}AFTER_ATTRIBUTE_VALUE_QUOTED_STATE(e){$(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===O.SOLIDUS?this._leaveAttrValue("SELF_CLOSING_START_TAG_STATE"):e===O.GREATER_THAN_SIGN?(this._leaveAttrValue(B),this._emitCurrentToken()):e===O.EOF?(this._err(h),this._emitEOFToken()):(this._err("missing-whitespace-between-attributes"),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}SELF_CLOSING_START_TAG_STATE(e){e===O.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=B,this._emitCurrentToken()):e===O.EOF?(this._err(h),this._emitEOFToken()):(this._err("unexpected-solidus-in-tag"),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}BOGUS_COMMENT_STATE(e){e===O.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===O.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===O.NULL?(this._err(a),this.currentToken.data+=n):this.currentToken.data+=X(e)}MARKUP_DECLARATION_OPEN_STATE(e){this._consumeSequenceIfMatch(k,e,!0)?(this._createCommentToken(),this.state="COMMENT_START_STATE"):this._consumeSequenceIfMatch(R,e,!1)?this.state="DOCTYPE_STATE":this._consumeSequenceIfMatch(I,e,!0)?this.allowCDATA?this.state="CDATA_SECTION_STATE":(this._err("cdata-in-html-content"),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state="BOGUS_COMMENT_STATE"):this._ensureHibernation()||(this._err("incorrectly-opened-comment"),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}COMMENT_START_STATE(e){e===O.HYPHEN_MINUS?this.state="COMMENT_START_DASH_STATE":e===O.GREATER_THAN_SIGN?(this._err(b),this.state=B,this._emitCurrentToken()):this._reconsumeInState("COMMENT_STATE")}COMMENT_START_DASH_STATE(e){e===O.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===O.GREATER_THAN_SIGN?(this._err(b),this.state=B,this._emitCurrentToken()):e===O.EOF?(this._err(S),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_STATE(e){e===O.HYPHEN_MINUS?this.state="COMMENT_END_DASH_STATE":e===O.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state="COMMENT_LESS_THAN_SIGN_STATE"):e===O.NULL?(this._err(a),this.currentToken.data+=n):e===O.EOF?(this._err(S),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=X(e)}COMMENT_LESS_THAN_SIGN_STATE(e){e===O.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state="COMMENT_LESS_THAN_SIGN_BANG_STATE"):e===O.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_STATE(e){e===O.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE(e){e===O.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE":this._reconsumeInState("COMMENT_END_DASH_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE(e){e!==O.GREATER_THAN_SIGN&&e!==O.EOF&&this._err("nested-comment"),this._reconsumeInState("COMMENT_END_STATE")}COMMENT_END_DASH_STATE(e){e===O.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===O.EOF?(this._err(S),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_STATE(e){e===O.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===O.EXCLAMATION_MARK?this.state="COMMENT_END_BANG_STATE":e===O.HYPHEN_MINUS?this.currentToken.data+="-":e===O.EOF?(this._err(S),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_BANG_STATE(e){e===O.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state="COMMENT_END_DASH_STATE"):e===O.GREATER_THAN_SIGN?(this._err("incorrectly-closed-comment"),this.state=B,this._emitCurrentToken()):e===O.EOF?(this._err(S),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState("COMMENT_STATE"))}DOCTYPE_STATE(e){$(e)?this.state="BEFORE_DOCTYPE_NAME_STATE":e===O.GREATER_THAN_SIGN?this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"):e===O.EOF?(this._err(A),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err("missing-whitespace-before-doctype-name"),this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"))}BEFORE_DOCTYPE_NAME_STATE(e){$(e)||(V(e)?(this._createDoctypeToken(q(e)),this.state="DOCTYPE_NAME_STATE"):e===O.NULL?(this._err(a),this._createDoctypeToken(n),this.state="DOCTYPE_NAME_STATE"):e===O.GREATER_THAN_SIGN?(this._err("missing-doctype-name"),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===O.EOF?(this._err(A),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(X(e)),this.state="DOCTYPE_NAME_STATE"))}DOCTYPE_NAME_STATE(e){$(e)?this.state="AFTER_DOCTYPE_NAME_STATE":e===O.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):V(e)?this.currentToken.name+=q(e):e===O.NULL?(this._err(a),this.currentToken.name+=n):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=X(e)}AFTER_DOCTYPE_NAME_STATE(e){$(e)||(e===O.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(P,e,!1)?this.state="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE":this._consumeSequenceIfMatch(L,e,!1)?this.state="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE":this._ensureHibernation()||(this._err("invalid-character-sequence-after-doctype-name"),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE(e){$(e)?this.state="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===O.QUOTATION_MARK?(this._err(p),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===O.APOSTROPHE?(this._err(p),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):e===O.GREATER_THAN_SIGN?(this._err(_),this.currentToken.forceQuirks=!0,this.state=B,this._emitCurrentToken()):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(m),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE(e){$(e)||(e===O.QUOTATION_MARK?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===O.APOSTROPHE?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):e===O.GREATER_THAN_SIGN?(this._err(_),this.currentToken.forceQuirks=!0,this.state=B,this._emitCurrentToken()):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(m),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE(e){e===O.QUOTATION_MARK?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===O.NULL?(this._err(a),this.currentToken.publicId+=n):e===O.GREATER_THAN_SIGN?(this._err(y),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=X(e)}DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE(e){e===O.APOSTROPHE?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===O.NULL?(this._err(a),this.currentToken.publicId+=n):e===O.GREATER_THAN_SIGN?(this._err(y),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=X(e)}AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE(e){$(e)?this.state="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE":e===O.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===O.QUOTATION_MARK?(this._err(d),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===O.APOSTROPHE?(this._err(d),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(g),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE(e){$(e)||(e===O.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=B):e===O.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===O.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(g),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE(e){$(e)?this.state="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===O.QUOTATION_MARK?(this._err(f),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===O.APOSTROPHE?(this._err(f),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===O.GREATER_THAN_SIGN?(this._err(E),this.currentToken.forceQuirks=!0,this.state=B,this._emitCurrentToken()):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(g),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE(e){$(e)||(e===O.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===O.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===O.GREATER_THAN_SIGN?(this._err(E),this.currentToken.forceQuirks=!0,this.state=B,this._emitCurrentToken()):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(g),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE(e){e===O.QUOTATION_MARK?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===O.NULL?(this._err(a),this.currentToken.systemId+=n):e===O.GREATER_THAN_SIGN?(this._err(T),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=X(e)}DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE(e){e===O.APOSTROPHE?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===O.NULL?(this._err(a),this.currentToken.systemId+=n):e===O.GREATER_THAN_SIGN?(this._err(T),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=X(e)}AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE(e){$(e)||(e===O.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=B):e===O.EOF?(this._err(A),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err("unexpected-character-after-doctype-system-identifier"),this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}BOGUS_DOCTYPE_STATE(e){e===O.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=B):e===O.NULL?this._err(a):e===O.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}CDATA_SECTION_STATE(e){e===O.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_BRACKET_STATE":e===O.EOF?(this._err("eof-in-cdata"),this._emitEOFToken()):this._emitCodePoint(e)}CDATA_SECTION_BRACKET_STATE(e){e===O.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_END_STATE":(this._emitChars("]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CDATA_SECTION_END_STATE(e){e===O.GREATER_THAN_SIGN?this.state=B:e===O.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CHARACTER_REFERENCE_STATE(e){this.tempBuff=[O.AMPERSAND],e===O.NUMBER_SIGN?(this.tempBuff.push(e),this.state="NUMERIC_CHARACTER_REFERENCE_STATE"):j(e)?this._reconsumeInState("NAMED_CHARACTER_REFERENCE_STATE"):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}NAMED_CHARACTER_REFERENCE_STATE(e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[O.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===O.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(c),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state="AMBIGUOS_AMPERSAND_STATE"}AMBIGUOS_AMPERSAND_STATE(e){j(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=X(e):this._emitCodePoint(e):(e===O.SEMICOLON&&this._err("unknown-named-character-reference"),this._reconsumeInState(this.returnState))}NUMERIC_CHARACTER_REFERENCE_STATE(e){this.charRefCode=0,e===O.LATIN_SMALL_X||e===O.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE"):this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_START_STATE")}HEXADEMICAL_CHARACTER_REFERENCE_START_STATE(e){!function(e){return U(e)||K(e)||W(e)}(e)?(this._err(C),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState("HEXADEMICAL_CHARACTER_REFERENCE_STATE")}DECIMAL_CHARACTER_REFERENCE_START_STATE(e){U(e)?this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_STATE"):(this._err(C),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}HEXADEMICAL_CHARACTER_REFERENCE_STATE(e){K(e)?this.charRefCode=16*this.charRefCode+e-55:W(e)?this.charRefCode=16*this.charRefCode+e-87:U(e)?this.charRefCode=16*this.charRefCode+e-48:e===O.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(c),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}DECIMAL_CHARACTER_REFERENCE_STATE(e){U(e)?this.charRefCode=10*this.charRefCode+e-48:e===O.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(c),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}NUMERIC_CHARACTER_REFERENCE_END_STATE(){if(this.charRefCode===O.NULL)this._err("null-character-reference"),this.charRefCode=O.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err("character-reference-outside-unicode-range"),this.charRefCode=O.REPLACEMENT_CHARACTER;else if(i(this.charRefCode))this._err("surrogate-character-reference"),this.charRefCode=O.REPLACEMENT_CHARACTER;else if(o(this.charRefCode))this._err("noncharacter-character-reference");else if(s(this.charRefCode)||this.charRefCode===O.CARRIAGE_RETURN){this._err("control-character-reference");const e=F[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}Q.CHARACTER_TOKEN="CHARACTER_TOKEN",Q.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Q.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Q.START_TAG_TOKEN="START_TAG_TOKEN",Q.END_TAG_TOKEN="END_TAG_TOKEN",Q.COMMENT_TOKEN="COMMENT_TOKEN",Q.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Q.EOF_TOKEN="EOF_TOKEN",Q.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Q.MODE={DATA:B,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},Q.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var J=Q;function Z(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var ee=Z((function(e,t){const n=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[n.HTML]:{[r.ADDRESS]:!0,[r.APPLET]:!0,[r.AREA]:!0,[r.ARTICLE]:!0,[r.ASIDE]:!0,[r.BASE]:!0,[r.BASEFONT]:!0,[r.BGSOUND]:!0,[r.BLOCKQUOTE]:!0,[r.BODY]:!0,[r.BR]:!0,[r.BUTTON]:!0,[r.CAPTION]:!0,[r.CENTER]:!0,[r.COL]:!0,[r.COLGROUP]:!0,[r.DD]:!0,[r.DETAILS]:!0,[r.DIR]:!0,[r.DIV]:!0,[r.DL]:!0,[r.DT]:!0,[r.EMBED]:!0,[r.FIELDSET]:!0,[r.FIGCAPTION]:!0,[r.FIGURE]:!0,[r.FOOTER]:!0,[r.FORM]:!0,[r.FRAME]:!0,[r.FRAMESET]:!0,[r.H1]:!0,[r.H2]:!0,[r.H3]:!0,[r.H4]:!0,[r.H5]:!0,[r.H6]:!0,[r.HEAD]:!0,[r.HEADER]:!0,[r.HGROUP]:!0,[r.HR]:!0,[r.HTML]:!0,[r.IFRAME]:!0,[r.IMG]:!0,[r.INPUT]:!0,[r.LI]:!0,[r.LINK]:!0,[r.LISTING]:!0,[r.MAIN]:!0,[r.MARQUEE]:!0,[r.MENU]:!0,[r.META]:!0,[r.NAV]:!0,[r.NOEMBED]:!0,[r.NOFRAMES]:!0,[r.NOSCRIPT]:!0,[r.OBJECT]:!0,[r.OL]:!0,[r.P]:!0,[r.PARAM]:!0,[r.PLAINTEXT]:!0,[r.PRE]:!0,[r.SCRIPT]:!0,[r.SECTION]:!0,[r.SELECT]:!0,[r.SOURCE]:!0,[r.STYLE]:!0,[r.SUMMARY]:!0,[r.TABLE]:!0,[r.TBODY]:!0,[r.TD]:!0,[r.TEMPLATE]:!0,[r.TEXTAREA]:!0,[r.TFOOT]:!0,[r.TH]:!0,[r.THEAD]:!0,[r.TITLE]:!0,[r.TR]:!0,[r.TRACK]:!0,[r.UL]:!0,[r.WBR]:!0,[r.XMP]:!0},[n.MATHML]:{[r.MI]:!0,[r.MO]:!0,[r.MN]:!0,[r.MS]:!0,[r.MTEXT]:!0,[r.ANNOTATION_XML]:!0},[n.SVG]:{[r.TITLE]:!0,[r.FOREIGN_OBJECT]:!0,[r.DESC]:!0}}}));const te=ee.TAG_NAMES,ne=ee.NAMESPACES;function re(e){switch(e.length){case 1:return e===te.P;case 2:return e===te.RB||e===te.RP||e===te.RT||e===te.DD||e===te.DT||e===te.LI;case 3:return e===te.RTC;case 6:return e===te.OPTION;case 8:return e===te.OPTGROUP}return!1}function ie(e){switch(e.length){case 1:return e===te.P;case 2:return e===te.RB||e===te.RP||e===te.RT||e===te.DD||e===te.DT||e===te.LI||e===te.TD||e===te.TH||e===te.TR;case 3:return e===te.RTC;case 5:return e===te.TBODY||e===te.TFOOT||e===te.THEAD;case 6:return e===te.OPTION;case 7:return e===te.CAPTION;case 8:return e===te.OPTGROUP||e===te.COLGROUP}return!1}function se(e,t){switch(e.length){case 2:if(e===te.TD||e===te.TH)return t===ne.HTML;if(e===te.MI||e===te.MO||e===te.MN||e===te.MS)return t===ne.MATHML;break;case 4:if(e===te.HTML)return t===ne.HTML;if(e===te.DESC)return t===ne.SVG;break;case 5:if(e===te.TABLE)return t===ne.HTML;if(e===te.MTEXT)return t===ne.MATHML;if(e===te.TITLE)return t===ne.SVG;break;case 6:return(e===te.APPLET||e===te.OBJECT)&&t===ne.HTML;case 7:return(e===te.CAPTION||e===te.MARQUEE)&&t===ne.HTML;case 8:return e===te.TEMPLATE&&t===ne.HTML;case 13:return e===te.FOREIGN_OBJECT&&t===ne.SVG;case 14:return e===te.ANNOTATION_XML&&t===ne.MATHML}return!1}class oe{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const n=this.treeAdapter.getAttrList(e).length,r=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const s=this.entries[e];if(s.type===oe.MARKER_ENTRY)break;const o=s.element,a=this.treeAdapter.getAttrList(o);this.treeAdapter.getTagName(o)===r&&this.treeAdapter.getNamespaceURI(o)===i&&a.length===n&&t.push({idx:e,attrs:a})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let n=t.length;if(n){const r=this.treeAdapter.getAttrList(e),i=r.length,s=Object.create(null);for(let e=0;e<i;e++){const t=r[e];s[t.name]=t.value}for(let e=0;e<i;e++)for(let r=0;r<n;r++){const i=t[r].attrs[e];if(s[i.name]!==i.value&&(t.splice(r,1),n--),t.length<3)return}for(let e=n-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:oe.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:oe.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let n=this.length-1;for(;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:oe.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===oe.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const n=this.entries[t];if(n.type===oe.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===e)return n}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const n=this.entries[t];if(n.type===oe.ELEMENT_ENTRY&&n.element===e)return n}return null}}oe.MARKER_ENTRY="MARKER_ENTRY",oe.ELEMENT_ENTRY="ELEMENT_ENTRY";var ae=oe;class le{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const r of Object.keys(n))"function"==typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}}le.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n<e.__mixins.length;n++)if(e.__mixins[n].constructor===t)return e.__mixins[n];const r=new t(e,n);return e.__mixins.push(r),r};var ce=le,ue=class extends ce{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const n=this.pos;t.dropParsedChunk.call(this);const r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}},he=class extends ce{constructor(e){super(e),this.tokenizer=e,this.posTracker=ce.install(e.preprocessor,ue),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const n={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.ctLoc},_createCharacterToken(n,r){t._createCharacterToken.call(this,n,r),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const n=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentToken.type===J.EOF_TOKEN?(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset):(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col+1,n.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const n=this.currentCharacterToken&&this.currentCharacterToken.location;n&&-1===n.endOffset&&(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col,n.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(J.MODE).forEach(r=>{const i=J.MODE[r];n[i]=function(n){e.ctLoc=e._getCurrentLocation(),t[i].call(this,n)}}),n}},pe=class extends ce{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}};const de=ee.TAG_NAMES;var fe=class extends ce{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i={};t.type===J.END_TAG_TOKEN&&r===t.tagName?(i.endTag=Object.assign({},n),i.endLine=n.endLine,i.endCol=n.endCol,i.endOffset=n.endOffset):(i.endLine=n.startLine,i.endCol=n.startCol,i.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const i=ce.install(this.tokenizer,he);e.posTracker=i.posTracker,ce.install(this.openElements,pe,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){if(e.currentToken=n,t._processToken.call(this,n),n.type===J.END_TAG_TOKEN&&(n.tagName===de.HTML||n.tagName===de.BODY&&this.openElements.hasInScope(de.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t<r;t++){const r=n[t];if(this.treeAdapter.isDocumentTypeNode(r)){this.treeAdapter.setNodeSourceCodeLocation(r,e.location);break}}},_attachElementToTree(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement(n,r){e.lastStartTagToken=n,t._appendElement.call(this,n,r)},_insertElement(n,r){e.lastStartTagToken=n,t._insertElement.call(this,n,r)},_insertTemplate(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n);const r=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(r,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,n){t._appendCommentNode.call(this,e,n);const r=this.treeAdapter.getChildNodes(n),i=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const r=this._shouldFosterParentOnInsertion(),i=r&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,s=this.treeAdapter.getChildNodes(i),o=r&&e.lastFosterParentingLocation.beforeElement?s.indexOf(e.lastFosterParentingLocation.beforeElement)-1:s.length-1,a=s[o];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:e,endCol:t,endOffset:r}=n.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:e,endCol:t,endOffset:r})}else this.treeAdapter.setNodeSourceCodeLocation(a,n.location)}}}},me=class extends ce{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}},ge=class extends me{constructor(e,t){super(e,t),this.posTracker=ce.install(e,ue),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}},_e=class extends me{constructor(e,t){super(e,t);const n=ce.install(e.preprocessor,ge,t);this.posTracker=n.posTracker}},Ee=class extends me{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),ce.install(this.tokenizer,_e,e.opts),ce.install(this.tokenizer,he)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}},ye=Z((function(e,t){const{DOCUMENT_MODE:n}=ee;t.createDocument=function(){return{nodeName:"#document",mode:n.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const r=function(e){return{nodeName:"#text",value:e,parentNode:null}},i=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},s=t.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let s=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){s=e.childNodes[t];break}s?(s.name=t,s.publicId=n,s.systemId=r):i(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}i(e,r(t))},t.insertTextBefore=function(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];i&&"#text"===i.nodeName?i.value+=t:s(e,r(t),n)},t.adoptAttributes=function(e,t){const n=[];for(let t=0;t<e.attrs.length;t++)n.push(e.attrs[t].name);for(let r=0;r<t.length;r++)-1===n.indexOf(t[r].name)&&e.attrs.push(t[r])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName},t.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},t.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)}}));const{DOCUMENT_MODE:Te}=ee,ve=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Ae=ve.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),be=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],Se=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Ce=Se.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function xe(e,t){for(let n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}var De=Z((function(e,t){const n=ee.TAG_NAMES,r=ee.NAMESPACES,i=ee.ATTRS,s={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},o={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:r.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:r.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:r.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:r.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:r.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:r.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:r.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:r.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:r.XML},"xml:space":{prefix:"xml",name:"space",namespace:r.XML},xmlns:{prefix:"",name:"xmlns",namespace:r.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:r.XMLNS}},a=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},l={[n.B]:!0,[n.BIG]:!0,[n.BLOCKQUOTE]:!0,[n.BODY]:!0,[n.BR]:!0,[n.CENTER]:!0,[n.CODE]:!0,[n.DD]:!0,[n.DIV]:!0,[n.DL]:!0,[n.DT]:!0,[n.EM]:!0,[n.EMBED]:!0,[n.H1]:!0,[n.H2]:!0,[n.H3]:!0,[n.H4]:!0,[n.H5]:!0,[n.H6]:!0,[n.HEAD]:!0,[n.HR]:!0,[n.I]:!0,[n.IMG]:!0,[n.LI]:!0,[n.LISTING]:!0,[n.MENU]:!0,[n.META]:!0,[n.NOBR]:!0,[n.OL]:!0,[n.P]:!0,[n.PRE]:!0,[n.RUBY]:!0,[n.S]:!0,[n.SMALL]:!0,[n.SPAN]:!0,[n.STRONG]:!0,[n.STRIKE]:!0,[n.SUB]:!0,[n.SUP]:!0,[n.TABLE]:!0,[n.TT]:!0,[n.U]:!0,[n.UL]:!0,[n.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!(t!==n.FONT||null===J.getTokenAttr(e,i.COLOR)&&null===J.getTokenAttr(e,i.SIZE)&&null===J.getTokenAttr(e,i.FACE))||l[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=s[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=o[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){const t=a[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,s,o){return!(o&&o!==r.HTML||!function(e,t,s){if(t===r.MATHML&&e===n.ANNOTATION_XML)for(let e=0;e<s.length;e++)if(s[e].name===i.ENCODING){const t=s[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===r.SVG&&(e===n.FOREIGN_OBJECT||e===n.DESC||e===n.TITLE)}(e,t,s))||!(o&&o!==r.MATHML||!function(e,t){return t===r.MATHML&&(e===n.MI||e===n.MO||e===n.MN||e===n.MS||e===n.MTEXT)}(e,t))}}));const Ne=ee.TAG_NAMES,we=ee.NAMESPACES,Oe=ee.ATTRS,ke={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:ye},Re="IN_TABLE_MODE",Ie={[Ne.TR]:"IN_ROW_MODE",[Ne.TBODY]:"IN_TABLE_BODY_MODE",[Ne.THEAD]:"IN_TABLE_BODY_MODE",[Ne.TFOOT]:"IN_TABLE_BODY_MODE",[Ne.CAPTION]:"IN_CAPTION_MODE",[Ne.COLGROUP]:"IN_COLUMN_GROUP_MODE",[Ne.TABLE]:Re,[Ne.BODY]:"IN_BODY_MODE",[Ne.FRAMESET]:"IN_FRAMESET_MODE"},Me={[Ne.CAPTION]:Re,[Ne.COLGROUP]:Re,[Ne.TBODY]:Re,[Ne.TFOOT]:Re,[Ne.THEAD]:Re,[Ne.COL]:"IN_COLUMN_GROUP_MODE",[Ne.TR]:"IN_TABLE_BODY_MODE",[Ne.TD]:"IN_ROW_MODE",[Ne.TH]:"IN_ROW_MODE"},Pe={INITIAL_MODE:{[J.CHARACTER_TOKEN]:Ye,[J.NULL_CHARACTER_TOKEN]:Ye,[J.WHITESPACE_CHARACTER_TOKEN]:je,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const n=t.forceQuirks?ee.DOCUMENT_MODE.QUIRKS:function(e){if("html"!==e.name)return Te.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Te.QUIRKS;let n=e.publicId;if(null!==n){if(n=n.toLowerCase(),be.indexOf(n)>-1)return Te.QUIRKS;let e=null===t?Ae:ve;if(xe(n,e))return Te.QUIRKS;if(e=null===t?Se:Ce,xe(n,e))return Te.LIMITED_QUIRKS}return Te.NO_QUIRKS}(t);(function(e){return"html"===e.name&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err("non-conforming-doctype"),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode="BEFORE_HTML_MODE"},[J.START_TAG_TOKEN]:Ye,[J.END_TAG_TOKEN]:Ye,[J.EOF_TOKEN]:Ye},BEFORE_HTML_MODE:{[J.CHARACTER_TOKEN]:Qe,[J.NULL_CHARACTER_TOKEN]:Qe,[J.WHITESPACE_CHARACTER_TOKEN]:je,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){t.tagName===Ne.HTML?(e._insertElement(t,we.HTML),e.insertionMode="BEFORE_HEAD_MODE"):Qe(e,t)},[J.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==Ne.HTML&&n!==Ne.HEAD&&n!==Ne.BODY&&n!==Ne.BR||Qe(e,t)},[J.EOF_TOKEN]:Qe},BEFORE_HEAD_MODE:{[J.CHARACTER_TOKEN]:Je,[J.NULL_CHARACTER_TOKEN]:Je,[J.WHITESPACE_CHARACTER_TOKEN]:je,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:Ke,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.HTML?gt(e,t):n===Ne.HEAD?(e._insertElement(t,we.HTML),e.headElement=e.openElements.current,e.insertionMode="IN_HEAD_MODE"):Je(e,t)},[J.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.HEAD||n===Ne.BODY||n===Ne.HTML||n===Ne.BR?Je(e,t):e._err(x)},[J.EOF_TOKEN]:Je},IN_HEAD_MODE:{[J.CHARACTER_TOKEN]:tt,[J.NULL_CHARACTER_TOKEN]:tt,[J.WHITESPACE_CHARACTER_TOKEN]:Xe,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:Ke,[J.START_TAG_TOKEN]:Ze,[J.END_TAG_TOKEN]:et,[J.EOF_TOKEN]:tt},IN_HEAD_NO_SCRIPT_MODE:{[J.CHARACTER_TOKEN]:nt,[J.NULL_CHARACTER_TOKEN]:nt,[J.WHITESPACE_CHARACTER_TOKEN]:Xe,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:Ke,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.HTML?gt(e,t):n===Ne.BASEFONT||n===Ne.BGSOUND||n===Ne.HEAD||n===Ne.LINK||n===Ne.META||n===Ne.NOFRAMES||n===Ne.STYLE?Ze(e,t):n===Ne.NOSCRIPT?e._err("nested-noscript-in-head"):nt(e,t)},[J.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.NOSCRIPT?(e.openElements.pop(),e.insertionMode="IN_HEAD_MODE"):n===Ne.BR?nt(e,t):e._err(x)},[J.EOF_TOKEN]:nt},AFTER_HEAD_MODE:{[J.CHARACTER_TOKEN]:rt,[J.NULL_CHARACTER_TOKEN]:rt,[J.WHITESPACE_CHARACTER_TOKEN]:Xe,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:Ke,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.HTML?gt(e,t):n===Ne.BODY?(e._insertElement(t,we.HTML),e.framesetOk=!1,e.insertionMode="IN_BODY_MODE"):n===Ne.FRAMESET?(e._insertElement(t,we.HTML),e.insertionMode="IN_FRAMESET_MODE"):n===Ne.BASE||n===Ne.BASEFONT||n===Ne.BGSOUND||n===Ne.LINK||n===Ne.META||n===Ne.NOFRAMES||n===Ne.SCRIPT||n===Ne.STYLE||n===Ne.TEMPLATE||n===Ne.TITLE?(e._err("abandoned-head-element-child"),e.openElements.push(e.headElement),Ze(e,t),e.openElements.remove(e.headElement)):n===Ne.HEAD?e._err(D):rt(e,t)},[J.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.BODY||n===Ne.HTML||n===Ne.BR?rt(e,t):n===Ne.TEMPLATE?et(e,t):e._err(x)},[J.EOF_TOKEN]:rt},IN_BODY_MODE:{[J.CHARACTER_TOKEN]:st,[J.NULL_CHARACTER_TOKEN]:je,[J.WHITESPACE_CHARACTER_TOKEN]:it,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:gt,[J.END_TAG_TOKEN]:Tt,[J.EOF_TOKEN]:vt},TEXT_MODE:{[J.CHARACTER_TOKEN]:Xe,[J.NULL_CHARACTER_TOKEN]:Xe,[J.WHITESPACE_CHARACTER_TOKEN]:Xe,[J.COMMENT_TOKEN]:je,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:je,[J.END_TAG_TOKEN]:function(e,t){t.tagName===Ne.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[J.EOF_TOKEN]:function(e,t){e._err("eof-in-element-that-can-contain-only-text"),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[Re]:{[J.CHARACTER_TOKEN]:At,[J.NULL_CHARACTER_TOKEN]:At,[J.WHITESPACE_CHARACTER_TOKEN]:At,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:bt,[J.END_TAG_TOKEN]:St,[J.EOF_TOKEN]:vt},IN_TABLE_TEXT_MODE:{[J.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[J.NULL_CHARACTER_TOKEN]:je,[J.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[J.COMMENT_TOKEN]:xt,[J.DOCTYPE_TOKEN]:xt,[J.START_TAG_TOKEN]:xt,[J.END_TAG_TOKEN]:xt,[J.EOF_TOKEN]:xt},IN_CAPTION_MODE:{[J.CHARACTER_TOKEN]:st,[J.NULL_CHARACTER_TOKEN]:je,[J.WHITESPACE_CHARACTER_TOKEN]:it,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.CAPTION||n===Ne.COL||n===Ne.COLGROUP||n===Ne.TBODY||n===Ne.TD||n===Ne.TFOOT||n===Ne.TH||n===Ne.THEAD||n===Ne.TR?e.openElements.hasInTableScope(Ne.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ne.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Re,e._processToken(t)):gt(e,t)},[J.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.CAPTION||n===Ne.TABLE?e.openElements.hasInTableScope(Ne.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ne.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Re,n===Ne.TABLE&&e._processToken(t)):n!==Ne.BODY&&n!==Ne.COL&&n!==Ne.COLGROUP&&n!==Ne.HTML&&n!==Ne.TBODY&&n!==Ne.TD&&n!==Ne.TFOOT&&n!==Ne.TH&&n!==Ne.THEAD&&n!==Ne.TR&&Tt(e,t)},[J.EOF_TOKEN]:vt},IN_COLUMN_GROUP_MODE:{[J.CHARACTER_TOKEN]:Dt,[J.NULL_CHARACTER_TOKEN]:Dt,[J.WHITESPACE_CHARACTER_TOKEN]:Xe,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.HTML?gt(e,t):n===Ne.COL?(e._appendElement(t,we.HTML),t.ackSelfClosing=!0):n===Ne.TEMPLATE?Ze(e,t):Dt(e,t)},[J.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.COLGROUP?e.openElements.currentTagName===Ne.COLGROUP&&(e.openElements.pop(),e.insertionMode=Re):n===Ne.TEMPLATE?et(e,t):n!==Ne.COL&&Dt(e,t)},[J.EOF_TOKEN]:vt},IN_TABLE_BODY_MODE:{[J.CHARACTER_TOKEN]:At,[J.NULL_CHARACTER_TOKEN]:At,[J.WHITESPACE_CHARACTER_TOKEN]:At,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,we.HTML),e.insertionMode="IN_ROW_MODE"):n===Ne.TH||n===Ne.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Ne.TR),e.insertionMode="IN_ROW_MODE",e._processToken(t)):n===Ne.CAPTION||n===Ne.COL||n===Ne.COLGROUP||n===Ne.TBODY||n===Ne.TFOOT||n===Ne.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Re,e._processToken(t)):bt(e,t)},[J.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.TBODY||n===Ne.TFOOT||n===Ne.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Re):n===Ne.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Re,e._processToken(t)):(n!==Ne.BODY&&n!==Ne.CAPTION&&n!==Ne.COL&&n!==Ne.COLGROUP||n!==Ne.HTML&&n!==Ne.TD&&n!==Ne.TH&&n!==Ne.TR)&&St(e,t)},[J.EOF_TOKEN]:vt},IN_ROW_MODE:{[J.CHARACTER_TOKEN]:At,[J.NULL_CHARACTER_TOKEN]:At,[J.WHITESPACE_CHARACTER_TOKEN]:At,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.TH||n===Ne.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,we.HTML),e.insertionMode="IN_CELL_MODE",e.activeFormattingElements.insertMarker()):n===Ne.CAPTION||n===Ne.COL||n===Ne.COLGROUP||n===Ne.TBODY||n===Ne.TFOOT||n===Ne.THEAD||n===Ne.TR?e.openElements.hasInTableScope(Ne.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):bt(e,t)},[J.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.TR?e.openElements.hasInTableScope(Ne.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE"):n===Ne.TABLE?e.openElements.hasInTableScope(Ne.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):n===Ne.TBODY||n===Ne.TFOOT||n===Ne.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(Ne.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):(n!==Ne.BODY&&n!==Ne.CAPTION&&n!==Ne.COL&&n!==Ne.COLGROUP||n!==Ne.HTML&&n!==Ne.TD&&n!==Ne.TH)&&St(e,t)},[J.EOF_TOKEN]:vt},IN_CELL_MODE:{[J.CHARACTER_TOKEN]:st,[J.NULL_CHARACTER_TOKEN]:je,[J.WHITESPACE_CHARACTER_TOKEN]:it,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.CAPTION||n===Ne.COL||n===Ne.COLGROUP||n===Ne.TBODY||n===Ne.TD||n===Ne.TFOOT||n===Ne.TH||n===Ne.THEAD||n===Ne.TR?(e.openElements.hasInTableScope(Ne.TD)||e.openElements.hasInTableScope(Ne.TH))&&(e._closeTableCell(),e._processToken(t)):gt(e,t)},[J.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.TD||n===Ne.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode="IN_ROW_MODE"):n===Ne.TABLE||n===Ne.TBODY||n===Ne.TFOOT||n===Ne.THEAD||n===Ne.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==Ne.BODY&&n!==Ne.CAPTION&&n!==Ne.COL&&n!==Ne.COLGROUP&&n!==Ne.HTML&&Tt(e,t)},[J.EOF_TOKEN]:vt},IN_SELECT_MODE:{[J.CHARACTER_TOKEN]:Xe,[J.NULL_CHARACTER_TOKEN]:je,[J.WHITESPACE_CHARACTER_TOKEN]:Xe,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:Nt,[J.END_TAG_TOKEN]:wt,[J.EOF_TOKEN]:vt},IN_SELECT_IN_TABLE_MODE:{[J.CHARACTER_TOKEN]:Xe,[J.NULL_CHARACTER_TOKEN]:je,[J.WHITESPACE_CHARACTER_TOKEN]:Xe,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.CAPTION||n===Ne.TABLE||n===Ne.TBODY||n===Ne.TFOOT||n===Ne.THEAD||n===Ne.TR||n===Ne.TD||n===Ne.TH?(e.openElements.popUntilTagNamePopped(Ne.SELECT),e._resetInsertionMode(),e._processToken(t)):Nt(e,t)},[J.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.CAPTION||n===Ne.TABLE||n===Ne.TBODY||n===Ne.TFOOT||n===Ne.THEAD||n===Ne.TR||n===Ne.TD||n===Ne.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Ne.SELECT),e._resetInsertionMode(),e._processToken(t)):wt(e,t)},[J.EOF_TOKEN]:vt},IN_TEMPLATE_MODE:{[J.CHARACTER_TOKEN]:st,[J.NULL_CHARACTER_TOKEN]:je,[J.WHITESPACE_CHARACTER_TOKEN]:it,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===Ne.BASE||n===Ne.BASEFONT||n===Ne.BGSOUND||n===Ne.LINK||n===Ne.META||n===Ne.NOFRAMES||n===Ne.SCRIPT||n===Ne.STYLE||n===Ne.TEMPLATE||n===Ne.TITLE)Ze(e,t);else{const r=Me[n]||"IN_BODY_MODE";e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[J.END_TAG_TOKEN]:function(e,t){t.tagName===Ne.TEMPLATE&&et(e,t)},[J.EOF_TOKEN]:Ot},AFTER_BODY_MODE:{[J.CHARACTER_TOKEN]:kt,[J.NULL_CHARACTER_TOKEN]:kt,[J.WHITESPACE_CHARACTER_TOKEN]:it,[J.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){t.tagName===Ne.HTML?gt(e,t):kt(e,t)},[J.END_TAG_TOKEN]:function(e,t){t.tagName===Ne.HTML?e.fragmentContext||(e.insertionMode="AFTER_AFTER_BODY_MODE"):kt(e,t)},[J.EOF_TOKEN]:qe},IN_FRAMESET_MODE:{[J.CHARACTER_TOKEN]:je,[J.NULL_CHARACTER_TOKEN]:je,[J.WHITESPACE_CHARACTER_TOKEN]:Xe,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.HTML?gt(e,t):n===Ne.FRAMESET?e._insertElement(t,we.HTML):n===Ne.FRAME?(e._appendElement(t,we.HTML),t.ackSelfClosing=!0):n===Ne.NOFRAMES&&Ze(e,t)},[J.END_TAG_TOKEN]:function(e,t){t.tagName!==Ne.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===Ne.FRAMESET||(e.insertionMode="AFTER_FRAMESET_MODE"))},[J.EOF_TOKEN]:qe},AFTER_FRAMESET_MODE:{[J.CHARACTER_TOKEN]:je,[J.NULL_CHARACTER_TOKEN]:je,[J.WHITESPACE_CHARACTER_TOKEN]:Xe,[J.COMMENT_TOKEN]:We,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.HTML?gt(e,t):n===Ne.NOFRAMES&&Ze(e,t)},[J.END_TAG_TOKEN]:function(e,t){t.tagName===Ne.HTML&&(e.insertionMode="AFTER_AFTER_FRAMESET_MODE")},[J.EOF_TOKEN]:qe},AFTER_AFTER_BODY_MODE:{[J.CHARACTER_TOKEN]:Rt,[J.NULL_CHARACTER_TOKEN]:Rt,[J.WHITESPACE_CHARACTER_TOKEN]:it,[J.COMMENT_TOKEN]:ze,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){t.tagName===Ne.HTML?gt(e,t):Rt(e,t)},[J.END_TAG_TOKEN]:Rt,[J.EOF_TOKEN]:qe},AFTER_AFTER_FRAMESET_MODE:{[J.CHARACTER_TOKEN]:je,[J.NULL_CHARACTER_TOKEN]:je,[J.WHITESPACE_CHARACTER_TOKEN]:it,[J.COMMENT_TOKEN]:ze,[J.DOCTYPE_TOKEN]:je,[J.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===Ne.HTML?gt(e,t):n===Ne.NOFRAMES&&Ze(e,t)},[J.END_TAG_TOKEN]:je,[J.EOF_TOKEN]:qe}};var Le=class{constructor(e){this.options=function(e,t){return[e,t=t||Object.create(null)].reduce((e,t)=>(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),Object.create(null))}(ke,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&ce.install(this,fe),this.options.onParseError&&ce.install(this,Ee,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(Ne.TEMPLATE,we.HTML,[]));const n=this.treeAdapter.createElement("documentmock",we.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===Ne.TEMPLATE&&this._pushTmplInsertionMode("IN_TEMPLATE_MODE"),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i}_bootstrap(e,t){this.tokenizer=new J(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===te.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ne.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===ne.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===te.H1||e===te.H2||e===te.H3||e===te.H4||e===te.H5||e===te.H6&&t===ne.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===te.TD||e===te.TH&&t===ne.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==te.TABLE&&this.currentTagName!==te.TEMPLATE&&this.currentTagName!==te.HTML||this.treeAdapter.getNamespaceURI(this.current)!==ne.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==te.TBODY&&this.currentTagName!==te.TFOOT&&this.currentTagName!==te.THEAD&&this.currentTagName!==te.TEMPLATE&&this.currentTagName!==te.HTML||this.treeAdapter.getNamespaceURI(this.current)!==ne.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==te.TR&&this.currentTagName!==te.TEMPLATE&&this.currentTagName!==te.HTML||this.treeAdapter.getNamespaceURI(this.current)!==ne.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===te.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===te.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===ne.HTML)return!0;if(se(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===te.H1||t===te.H2||t===te.H3||t===te.H4||t===te.H5||t===te.H6)&&n===ne.HTML)return!0;if(se(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===ne.HTML)return!0;if((n===te.UL||n===te.OL)&&r===ne.HTML||se(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===ne.HTML)return!0;if(n===te.BUTTON&&r===ne.HTML||se(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===ne.HTML){if(n===e)return!0;if(n===te.TABLE||n===te.TEMPLATE||n===te.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===ne.HTML){if(t===te.TBODY||t===te.THEAD||t===te.TFOOT)return!0;if(t===te.TABLE||t===te.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===ne.HTML){if(n===e)return!0;if(n!==te.OPTION&&n!==te.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;re(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ie(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;re(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}(this.document,this.treeAdapter),this.activeFormattingElements=new ae(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===J.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===J.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==we.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,we.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode="TEXT_MODE"}switchToPlaintextParsing(){this.insertionMode="TEXT_MODE",this.originalInsertionMode="IN_BODY_MODE",this.tokenizer.state=J.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===Ne.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===we.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===Ne.TITLE||e===Ne.TEXTAREA?this.tokenizer.state=J.MODE.RCDATA:e===Ne.STYLE||e===Ne.XMP||e===Ne.IFRAME||e===Ne.NOEMBED||e===Ne.NOFRAMES||e===Ne.NOSCRIPT?this.tokenizer.state=J.MODE.RAWTEXT:e===Ne.SCRIPT?this.tokenizer.state=J.MODE.SCRIPT_DATA:e===Ne.PLAINTEXT&&(this.tokenizer.state=J.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,we.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,we.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Ne.HTML,we.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(t);if(n===we.HTML)return!1;if(this.treeAdapter.getTagName(t)===Ne.ANNOTATION_XML&&n===we.MATHML&&e.type===J.START_TAG_TOKEN&&e.tagName===Ne.SVG)return!1;const r=e.type===J.CHARACTER_TOKEN||e.type===J.NULL_CHARACTER_TOKEN||e.type===J.WHITESPACE_CHARACTER_TOKEN;return!((e.type===J.START_TAG_TOKEN&&e.tagName!==Ne.MGLYPH&&e.tagName!==Ne.MALIGNMARK||r)&&this._isIntegrationPoint(t,we.MATHML)||(e.type===J.START_TAG_TOKEN||r)&&this._isIntegrationPoint(t,we.HTML)||e.type===J.EOF_TOKEN)}_processToken(e){Pe[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){Pe.IN_BODY_MODE[e.type](this,e)}_processTokenInForeignContent(e){e.type===J.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===J.NULL_CHARACTER_TOKEN?function(e,t){t.chars=n,e._insertCharacters(t)}(this,e):e.type===J.WHITESPACE_CHARACTER_TOKEN?Xe(this,e):e.type===J.COMMENT_TOKEN?We(this,e):e.type===J.START_TAG_TOKEN?function(e,t){if(De.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==we.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===we.MATHML?De.adjustTokenMathMLAttrs(t):r===we.SVG&&(De.adjustTokenSVGTagName(t),De.adjustTokenSVGAttrs(t)),De.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===J.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===we.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===J.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err("non-void-html-element-start-tag-with-trailing-solidus")}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return De.isIntegrationPoint(n,r,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===ae.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(let r=t;r<e;r++)n=this.activeFormattingElements.entries[r],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode="IN_ROW_MODE"}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Ne.P),this.openElements.popUntilTagNamePopped(Ne.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));const r=this.treeAdapter.getTagName(n),i=Ie[r];if(i){this.insertionMode=i;break}if(!(t||r!==Ne.TD&&r!==Ne.TH)){this.insertionMode="IN_CELL_MODE";break}if(!t&&r===Ne.HEAD){this.insertionMode="IN_HEAD_MODE";break}if(r===Ne.SELECT){this._resetInsertionModeForSelect(e);break}if(r===Ne.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===Ne.HTML){this.insertionMode=this.headElement?"AFTER_HEAD_MODE":"BEFORE_HEAD_MODE";break}if(t){this.insertionMode="IN_BODY_MODE";break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===Ne.TEMPLATE)break;if(n===Ne.TABLE)return void(this.insertionMode="IN_SELECT_IN_TABLE_MODE")}this.insertionMode="IN_SELECT_MODE"}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===Ne.TABLE||t===Ne.TBODY||t===Ne.TFOOT||t===Ne.THEAD||t===Ne.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===Ne.TEMPLATE&&i===we.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===Ne.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return ee.SPECIAL_ELEMENTS[n][t]}};function Fe(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):yt(e,t),n}function Be(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function $e(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let s=0,o=i;o!==n;s++,o=i){i=e.openElements.getCommonAncestor(o);const n=e.activeFormattingElements.getElementEntry(o),a=n&&s>=3;!n||a?(a&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=Ue(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Ue(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Ve(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===Ne.TEMPLATE&&i===we.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function He(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,s=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s)}function Ge(e,t){let n;for(let r=0;r<8&&(n=Fe(e,t),n);r++){const t=Be(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const r=$e(e,t,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),Ve(e,i,r),He(e,t,n)}}function je(){}function Ke(e){e._err("misplaced-doctype")}function We(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function ze(e,t){e._appendCommentNode(t,e.document)}function Xe(e,t){e._insertCharacters(t)}function qe(e){e.stopped=!0}function Ye(e,t){e._err("missing-doctype",{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,ee.DOCUMENT_MODE.QUIRKS),e.insertionMode="BEFORE_HTML_MODE",e._processToken(t)}function Qe(e,t){e._insertFakeRootElement(),e.insertionMode="BEFORE_HEAD_MODE",e._processToken(t)}function Je(e,t){e._insertFakeElement(Ne.HEAD),e.headElement=e.openElements.current,e.insertionMode="IN_HEAD_MODE",e._processToken(t)}function Ze(e,t){const n=t.tagName;n===Ne.HTML?gt(e,t):n===Ne.BASE||n===Ne.BASEFONT||n===Ne.BGSOUND||n===Ne.LINK||n===Ne.META?(e._appendElement(t,we.HTML),t.ackSelfClosing=!0):n===Ne.TITLE?e._switchToTextParsing(t,J.MODE.RCDATA):n===Ne.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,J.MODE.RAWTEXT):(e._insertElement(t,we.HTML),e.insertionMode="IN_HEAD_NO_SCRIPT_MODE"):n===Ne.NOFRAMES||n===Ne.STYLE?e._switchToTextParsing(t,J.MODE.RAWTEXT):n===Ne.SCRIPT?e._switchToTextParsing(t,J.MODE.SCRIPT_DATA):n===Ne.TEMPLATE?(e._insertTemplate(t,we.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode="IN_TEMPLATE_MODE",e._pushTmplInsertionMode("IN_TEMPLATE_MODE")):n===Ne.HEAD?e._err(D):tt(e,t)}function et(e,t){const n=t.tagName;n===Ne.HEAD?(e.openElements.pop(),e.insertionMode="AFTER_HEAD_MODE"):n===Ne.BODY||n===Ne.BR||n===Ne.HTML?tt(e,t):n===Ne.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==Ne.TEMPLATE&&e._err("closing-of-element-with-open-child-elements"),e.openElements.popUntilTagNamePopped(Ne.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(x)}function tt(e,t){e.openElements.pop(),e.insertionMode="AFTER_HEAD_MODE",e._processToken(t)}function nt(e,t){const n=t.type===J.EOF_TOKEN?"open-elements-left-after-eof":"disallowed-content-in-noscript-in-head";e._err(n),e.openElements.pop(),e.insertionMode="IN_HEAD_MODE",e._processToken(t)}function rt(e,t){e._insertFakeElement(Ne.BODY),e.insertionMode="IN_BODY_MODE",e._processToken(t)}function it(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function st(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ot(e,t){e.openElements.hasInButtonScope(Ne.P)&&e._closePElement(),e._insertElement(t,we.HTML)}function at(e,t){e.openElements.hasInButtonScope(Ne.P)&&e._closePElement(),e._insertElement(t,we.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function lt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,we.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ct(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,we.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ut(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,we.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ht(e,t){e._appendElement(t,we.HTML),t.ackSelfClosing=!0}function pt(e,t){e._switchToTextParsing(t,J.MODE.RAWTEXT)}function dt(e,t){e.openElements.currentTagName===Ne.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,we.HTML)}function ft(e,t){e.openElements.hasInScope(Ne.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,we.HTML)}function mt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,we.HTML)}function gt(e,t){const n=t.tagName;switch(n.length){case 1:n===Ne.I||n===Ne.S||n===Ne.B||n===Ne.U?lt(e,t):n===Ne.P?ot(e,t):n===Ne.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Ne.A);n&&(Ge(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,we.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):mt(e,t);break;case 2:n===Ne.DL||n===Ne.OL||n===Ne.UL?ot(e,t):n===Ne.H1||n===Ne.H2||n===Ne.H3||n===Ne.H4||n===Ne.H5||n===Ne.H6?function(e,t){e.openElements.hasInButtonScope(Ne.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==Ne.H1&&n!==Ne.H2&&n!==Ne.H3&&n!==Ne.H4&&n!==Ne.H5&&n!==Ne.H6||e.openElements.pop(),e._insertElement(t,we.HTML)}(e,t):n===Ne.LI||n===Ne.DD||n===Ne.DT?function(e,t){e.framesetOk=!1;const n=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const r=e.openElements.items[t],i=e.treeAdapter.getTagName(r);let s=null;if(n===Ne.LI&&i===Ne.LI?s=Ne.LI:n!==Ne.DD&&n!==Ne.DT||i!==Ne.DD&&i!==Ne.DT||(s=i),s){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(i!==Ne.ADDRESS&&i!==Ne.DIV&&i!==Ne.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(Ne.P)&&e._closePElement(),e._insertElement(t,we.HTML)}(e,t):n===Ne.EM||n===Ne.TT?lt(e,t):n===Ne.BR?ut(e,t):n===Ne.HR?function(e,t){e.openElements.hasInButtonScope(Ne.P)&&e._closePElement(),e._appendElement(t,we.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):n===Ne.RB?ft(e,t):n===Ne.RT||n===Ne.RP?function(e,t){e.openElements.hasInScope(Ne.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Ne.RTC),e._insertElement(t,we.HTML)}(e,t):n!==Ne.TH&&n!==Ne.TD&&n!==Ne.TR&&mt(e,t);break;case 3:n===Ne.DIV||n===Ne.DIR||n===Ne.NAV?ot(e,t):n===Ne.PRE?at(e,t):n===Ne.BIG?lt(e,t):n===Ne.IMG||n===Ne.WBR?ut(e,t):n===Ne.XMP?function(e,t){e.openElements.hasInButtonScope(Ne.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,J.MODE.RAWTEXT)}(e,t):n===Ne.SVG?function(e,t){e._reconstructActiveFormattingElements(),De.adjustTokenSVGAttrs(t),De.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,we.SVG):e._insertElement(t,we.SVG),t.ackSelfClosing=!0}(e,t):n===Ne.RTC?ft(e,t):n!==Ne.COL&&mt(e,t);break;case 4:n===Ne.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===Ne.BASE||n===Ne.LINK||n===Ne.META?Ze(e,t):n===Ne.BODY?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===Ne.MAIN||n===Ne.MENU?ot(e,t):n===Ne.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Ne.P)&&e._closePElement(),e._insertElement(t,we.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===Ne.CODE||n===Ne.FONT?lt(e,t):n===Ne.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Ne.NOBR)&&(Ge(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,we.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===Ne.AREA?ut(e,t):n===Ne.MATH?function(e,t){e._reconstructActiveFormattingElements(),De.adjustTokenMathMLAttrs(t),De.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,we.MATHML):e._insertElement(t,we.MATHML),t.ackSelfClosing=!0}(e,t):n===Ne.MENU?function(e,t){e.openElements.hasInButtonScope(Ne.P)&&e._closePElement(),e._insertElement(t,we.HTML)}(e,t):n!==Ne.HEAD&&mt(e,t);break;case 5:n===Ne.STYLE||n===Ne.TITLE?Ze(e,t):n===Ne.ASIDE?ot(e,t):n===Ne.SMALL?lt(e,t):n===Ne.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==ee.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(Ne.P)&&e._closePElement(),e._insertElement(t,we.HTML),e.framesetOk=!1,e.insertionMode=Re}(e,t):n===Ne.EMBED?ut(e,t):n===Ne.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,we.HTML);const n=J.getTokenAttr(t,Oe.TYPE);n&&"hidden"===n.toLowerCase()||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===Ne.PARAM||n===Ne.TRACK?ht(e,t):n===Ne.IMAGE?function(e,t){t.tagName=Ne.IMG,ut(e,t)}(e,t):n!==Ne.FRAME&&n!==Ne.TBODY&&n!==Ne.TFOOT&&n!==Ne.THEAD&&mt(e,t);break;case 6:n===Ne.SCRIPT?Ze(e,t):n===Ne.CENTER||n===Ne.FIGURE||n===Ne.FOOTER||n===Ne.HEADER||n===Ne.HGROUP||n===Ne.DIALOG?ot(e,t):n===Ne.BUTTON?function(e,t){e.openElements.hasInScope(Ne.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ne.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,we.HTML),e.framesetOk=!1}(e,t):n===Ne.STRIKE||n===Ne.STRONG?lt(e,t):n===Ne.APPLET||n===Ne.OBJECT?ct(e,t):n===Ne.KEYGEN?ut(e,t):n===Ne.SOURCE?ht(e,t):n===Ne.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,J.MODE.RAWTEXT)}(e,t):n===Ne.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,we.HTML),e.framesetOk=!1,e.insertionMode===Re||"IN_CAPTION_MODE"===e.insertionMode||"IN_TABLE_BODY_MODE"===e.insertionMode||"IN_ROW_MODE"===e.insertionMode||"IN_CELL_MODE"===e.insertionMode?e.insertionMode="IN_SELECT_IN_TABLE_MODE":e.insertionMode="IN_SELECT_MODE"}(e,t):n===Ne.OPTION?dt(e,t):mt(e,t);break;case 7:n===Ne.BGSOUND?Ze(e,t):n===Ne.DETAILS||n===Ne.ADDRESS||n===Ne.ARTICLE||n===Ne.SECTION||n===Ne.SUMMARY?ot(e,t):n===Ne.LISTING?at(e,t):n===Ne.MARQUEE?ct(e,t):n===Ne.NOEMBED?pt(e,t):n!==Ne.CAPTION&&mt(e,t);break;case 8:n===Ne.BASEFONT?Ze(e,t):n===Ne.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,we.HTML),e.insertionMode="IN_FRAMESET_MODE")}(e,t):n===Ne.FIELDSET?ot(e,t):n===Ne.TEXTAREA?function(e,t){e._insertElement(t,we.HTML),e.skipNextNewLine=!0,e.tokenizer.state=J.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode="TEXT_MODE"}(e,t):n===Ne.TEMPLATE?Ze(e,t):n===Ne.NOSCRIPT?e.options.scriptingEnabled?pt(e,t):mt(e,t):n===Ne.OPTGROUP?dt(e,t):n!==Ne.COLGROUP&&mt(e,t);break;case 9:n===Ne.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(Ne.P)&&e._closePElement(),e._insertElement(t,we.HTML),e.tokenizer.state=J.MODE.PLAINTEXT}(e,t):mt(e,t);break;case 10:n===Ne.BLOCKQUOTE||n===Ne.FIGCAPTION?ot(e,t):mt(e,t);break;default:mt(e,t)}}function _t(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Et(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function yt(e,t){const n=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const r=e.openElements.items[t];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function Tt(e,t){const n=t.tagName;switch(n.length){case 1:n===Ne.A||n===Ne.B||n===Ne.I||n===Ne.S||n===Ne.U?Ge(e,t):n===Ne.P?function(e){e.openElements.hasInButtonScope(Ne.P)||e._insertFakeElement(Ne.P),e._closePElement()}(e):yt(e,t);break;case 2:n===Ne.DL||n===Ne.UL||n===Ne.OL?_t(e,t):n===Ne.LI?function(e){e.openElements.hasInListItemScope(Ne.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Ne.LI),e.openElements.popUntilTagNamePopped(Ne.LI))}(e):n===Ne.DD||n===Ne.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===Ne.H1||n===Ne.H2||n===Ne.H3||n===Ne.H4||n===Ne.H5||n===Ne.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===Ne.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Ne.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===Ne.EM||n===Ne.TT?Ge(e,t):yt(e,t);break;case 3:n===Ne.BIG?Ge(e,t):n===Ne.DIR||n===Ne.DIV||n===Ne.NAV||n===Ne.PRE?_t(e,t):yt(e,t);break;case 4:n===Ne.BODY?function(e){e.openElements.hasInScope(Ne.BODY)&&(e.insertionMode="AFTER_BODY_MODE")}(e):n===Ne.HTML?function(e,t){e.openElements.hasInScope(Ne.BODY)&&(e.insertionMode="AFTER_BODY_MODE",e._processToken(t))}(e,t):n===Ne.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Ne.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Ne.FORM):e.openElements.remove(n))}(e):n===Ne.CODE||n===Ne.FONT||n===Ne.NOBR?Ge(e,t):n===Ne.MAIN||n===Ne.MENU?_t(e,t):yt(e,t);break;case 5:n===Ne.ASIDE?_t(e,t):n===Ne.SMALL?Ge(e,t):yt(e,t);break;case 6:n===Ne.CENTER||n===Ne.FIGURE||n===Ne.FOOTER||n===Ne.HEADER||n===Ne.HGROUP||n===Ne.DIALOG?_t(e,t):n===Ne.APPLET||n===Ne.OBJECT?Et(e,t):n===Ne.STRIKE||n===Ne.STRONG?Ge(e,t):yt(e,t);break;case 7:n===Ne.ADDRESS||n===Ne.ARTICLE||n===Ne.DETAILS||n===Ne.SECTION||n===Ne.SUMMARY||n===Ne.LISTING?_t(e,t):n===Ne.MARQUEE?Et(e,t):yt(e,t);break;case 8:n===Ne.FIELDSET?_t(e,t):n===Ne.TEMPLATE?et(e,t):yt(e,t);break;case 10:n===Ne.BLOCKQUOTE||n===Ne.FIGCAPTION?_t(e,t):yt(e,t);break;default:yt(e,t)}}function vt(e,t){e.tmplInsertionModeStackTop>-1?Ot(e,t):e.stopped=!0}function At(e,t){const n=e.openElements.currentTagName;n===Ne.TABLE||n===Ne.TBODY||n===Ne.TFOOT||n===Ne.THEAD||n===Ne.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode="IN_TABLE_TEXT_MODE",e._processToken(t)):Ct(e,t)}function bt(e,t){const n=t.tagName;switch(n.length){case 2:n===Ne.TD||n===Ne.TH||n===Ne.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ne.TBODY),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)}(e,t):Ct(e,t);break;case 3:n===Ne.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ne.COLGROUP),e.insertionMode="IN_COLUMN_GROUP_MODE",e._processToken(t)}(e,t):Ct(e,t);break;case 4:n===Ne.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,we.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Ct(e,t);break;case 5:n===Ne.TABLE?function(e,t){e.openElements.hasInTableScope(Ne.TABLE)&&(e.openElements.popUntilTagNamePopped(Ne.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===Ne.STYLE?Ze(e,t):n===Ne.TBODY||n===Ne.TFOOT||n===Ne.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,we.HTML),e.insertionMode="IN_TABLE_BODY_MODE"}(e,t):n===Ne.INPUT?function(e,t){const n=J.getTokenAttr(t,Oe.TYPE);n&&"hidden"===n.toLowerCase()?e._appendElement(t,we.HTML):Ct(e,t),t.ackSelfClosing=!0}(e,t):Ct(e,t);break;case 6:n===Ne.SCRIPT?Ze(e,t):Ct(e,t);break;case 7:n===Ne.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,we.HTML),e.insertionMode="IN_CAPTION_MODE"}(e,t):Ct(e,t);break;case 8:n===Ne.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,we.HTML),e.insertionMode="IN_COLUMN_GROUP_MODE"}(e,t):n===Ne.TEMPLATE?Ze(e,t):Ct(e,t);break;default:Ct(e,t)}}function St(e,t){const n=t.tagName;n===Ne.TABLE?e.openElements.hasInTableScope(Ne.TABLE)&&(e.openElements.popUntilTagNamePopped(Ne.TABLE),e._resetInsertionMode()):n===Ne.TEMPLATE?et(e,t):n!==Ne.BODY&&n!==Ne.CAPTION&&n!==Ne.COL&&n!==Ne.COLGROUP&&n!==Ne.HTML&&n!==Ne.TBODY&&n!==Ne.TD&&n!==Ne.TFOOT&&n!==Ne.TH&&n!==Ne.THEAD&&n!==Ne.TR&&Ct(e,t)}function Ct(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function xt(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Ct(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Dt(e,t){e.openElements.currentTagName===Ne.COLGROUP&&(e.openElements.pop(),e.insertionMode=Re,e._processToken(t))}function Nt(e,t){const n=t.tagName;n===Ne.HTML?gt(e,t):n===Ne.OPTION?(e.openElements.currentTagName===Ne.OPTION&&e.openElements.pop(),e._insertElement(t,we.HTML)):n===Ne.OPTGROUP?(e.openElements.currentTagName===Ne.OPTION&&e.openElements.pop(),e.openElements.currentTagName===Ne.OPTGROUP&&e.openElements.pop(),e._insertElement(t,we.HTML)):n===Ne.INPUT||n===Ne.KEYGEN||n===Ne.TEXTAREA||n===Ne.SELECT?e.openElements.hasInSelectScope(Ne.SELECT)&&(e.openElements.popUntilTagNamePopped(Ne.SELECT),e._resetInsertionMode(),n!==Ne.SELECT&&e._processToken(t)):n!==Ne.SCRIPT&&n!==Ne.TEMPLATE||Ze(e,t)}function wt(e,t){const n=t.tagName;if(n===Ne.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],n=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===Ne.OPTION&&n===Ne.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===Ne.OPTGROUP&&e.openElements.pop()}else n===Ne.OPTION?e.openElements.currentTagName===Ne.OPTION&&e.openElements.pop():n===Ne.SELECT&&e.openElements.hasInSelectScope(Ne.SELECT)?(e.openElements.popUntilTagNamePopped(Ne.SELECT),e._resetInsertionMode()):n===Ne.TEMPLATE&&et(e,t)}function Ot(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Ne.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function kt(e,t){e.insertionMode="IN_BODY_MODE",e._processToken(t)}function Rt(e,t){e.insertionMode="IN_BODY_MODE",e._processToken(t)}return e.parse=function(e,t){return new Le(t).parse(e)},e.parseFragment=function(e,t,n){return"string"==typeof e&&(n=t,t=e,e=null),new Le(n).parseFragment(t,e)},e}({}),Hm=Vm.parse,Gm=Vm.parseFragment,jm=new WeakMap;function Km(e,t){return t="string"==typeof t?t.trim():"",Gm(t,Wm(e))}function Wm(e){let t=jm.get(e);return null!=t||(t={treeAdapter:{createDocument(){const t=e.createElement("#document");return t["x-mode"]="no-quirks",t},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,createDocumentFragment:()=>e.createDocumentFragment(),createElement(t,n,r){const i=e.createElementNS(n,t);for(let e=0;e<r.length;e++){const t=r[e];null==t.namespace||"http://www.w3.org/1999/xhtml"===t.namespace?i.setAttribute(t.name,t.value):i.setAttributeNS(t.namespace,t.name,t.value)}return i},createCommentNode:t=>e.createComment(t),appendChild(e,t){e.appendChild(t)},insertBefore(e,t,n){e.insertBefore(t,n)},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(t,n,r,i){let s=t.childNodes.find(e=>10===e.nodeType);null==s&&(s=e.createDocumentTypeNode(),t.insertBefore(s,t.firstChild)),s.nodeValue="!DOCTYPE",s["x-name"]=n,s["x-publicId"]=r,s["x-systemId"]=i},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode:e=>e["x-mode"],detachNode(e){e.remove()},insertText(t,n){const r=t.lastChild;null!=r&&3===r.nodeType?r.nodeValue+=n:t.appendChild(e.createTextNode(n))},insertTextBefore(t,n,r){const i=t.childNodes[t.childNodes.indexOf(r)-1];null!=i&&3===i.nodeType?i.nodeValue+=n:t.insertBefore(e.createTextNode(n),r)},adoptAttributes(e,t){for(let n=0;n<t.length;n++){const r=t[n];!1===e.hasAttributeNS(r.namespace,r.name)&&e.setAttributeNS(r.namespace,r.name,r.value)}},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attributes.__items.map(e=>({name:e.name,value:e.value,namespace:e.namespaceURI,prefix:null})),getTagName:e=>"http://www.w3.org/1999/xhtml"===e.namespaceURI?e.nodeName.toLowerCase():e.nodeName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.nodeValue,getCommentNodeContent:e=>e.nodeValue,getDocumentTypeNodeName:e=>e["x-name"],getDocumentTypeNodePublicId:e=>e["x-publicId"],getDocumentTypeNodeSystemId:e=>e["x-systemId"],isTextNode:e=>3===e.nodeType,isCommentNode:e=>8===e.nodeType,isDocumentTypeNode:e=>10===e.nodeType,isElementNode:e=>1===e.nodeType}},jm.set(e,t)),t}class zm{constructor(e,t,n,r){this.ownerDocument=e,this.nodeType=t,this.nodeName=n,this.nodeValue=r,this.parentNode=null,this.childNodes=[]}appendChild(e){if(11===e.nodeType){const t=e.childNodes.slice();for(const e of t)this.appendChild(e)}else e.remove(),e.parentNode=this,this.childNodes.push(e),sm(this.ownerDocument,e);return e}append(...e){e.forEach(e=>{const t="object"==typeof e&&null!==e&&"nodeType"in e;this.appendChild(t?e:this.ownerDocument.createTextNode(String(e)))})}prepend(...e){const t=this.firstChild;e.forEach(e=>{const n="object"==typeof e&&null!==e&&"nodeType"in e;this.insertBefore(n?e:this.ownerDocument.createTextNode(String(e)),t)})}cloneNode(e){throw new Error(`invalid node type to clone: ${this.nodeType}, deep: ${e}`)}compareDocumentPosition(e){return-1}get firstChild(){return this.childNodes[0]||null}insertBefore(e,t){if(11===e.nodeType)for(let n=0,r=e.childNodes.length;n<r;n++)Ym(this,e.childNodes[n],t);else Ym(this,e,t);return e}get isConnected(){let e=this;for(;null!=e;){if(9===e.nodeType)return!0;e=e.parentNode,null!=e&&11===e.nodeType&&(e=e.host)}return!1}isSameNode(e){return this===e}get lastChild(){return this.childNodes[this.childNodes.length-1]||null}get nextSibling(){if(null!=this.parentNode){const e=this.parentNode.childNodes.indexOf(this)+1;return this.parentNode.childNodes[e]||null}return null}get parentElement(){return this.parentNode||null}set parentElement(e){this.parentNode=e}get previousSibling(){if(null!=this.parentNode){const e=this.parentNode.childNodes.indexOf(this)-1;return this.parentNode.childNodes[e]||null}return null}contains(e){return this.childNodes.includes(e)}removeChild(e){const t=this.childNodes.indexOf(e);if(!(t>-1))throw new Error("node not found within childNodes during removeChild");if(this.childNodes.splice(t,1),1===this.nodeType){const t=this.isConnected;e.parentNode=null,!0===t&&am(e)}else e.parentNode=null;return e}remove(){null!=this.parentNode&&this.parentNode.removeChild(this)}replaceChild(e,t){return t.parentNode===this?(this.insertBefore(e,t),t.remove(),e):null}get textContent(){return this.nodeValue}set textContent(e){this.nodeValue=String(e)}}zm.ELEMENT_NODE=1,zm.TEXT_NODE=3,zm.PROCESSING_INSTRUCTION_NODE=7,zm.COMMENT_NODE=8,zm.DOCUMENT_NODE=9,zm.DOCUMENT_TYPE_NODE=10,zm.DOCUMENT_FRAGMENT_NODE=11;class Xm extends zm{constructor(e,t){super(e,1,"string"==typeof t?t:null,null),this.namespaceURI=null}addEventListener(e,t){vm(this,e,t)}attachShadow(e){const t=this.ownerDocument.createDocumentFragment();return this.shadowRoot=t,t}get shadowRoot(){return this.__shadowRoot||null}set shadowRoot(e){null!=e?(e.host=this,this.__shadowRoot=e):delete this.__shadowRoot}get attributes(){return null==this.__attributeMap&&(this.__attributeMap=qf(!1)),this.__attributeMap}set attributes(e){this.__attributeMap=e}get children(){return this.childNodes.filter(e=>1===e.nodeType)}get childElementCount(){return this.childNodes.filter(e=>1===e.nodeType).length}get className(){return this.getAttributeNS(null,"class")||""}set className(e){this.setAttributeNS(null,"class",e)}get classList(){return new pm(this)}click(){Sm(this,new ym("click",{bubbles:!0,cancelable:!0,composed:!0}))}cloneNode(e){return null}closest(e){let t=this;for(;null!=t;){if(t.matches(e))return t;t=t.parentNode}return null}get dataset(){return function(e){const t={},n=e.attributes,r=n.length;for(let e=0;e<r;e++){const r=n.item(e),s=r.nodeName;s.startsWith("data-")&&(t[(i=s,(i=String(i).substr(5)).split("-").map((e,t)=>0===t?e.charAt(0).toLowerCase()+e.slice(1):e.charAt(0).toUpperCase()+e.slice(1)).join(""))]=r.nodeValue)}var i;return new Proxy(t,{get:(e,n)=>t[n],set(t,n,r){const i="data-"+String(n).replace(/([A-Z0-9])/g,e=>" "+e[0]).trim().replace(/ /g,"-").toLowerCase();return e.setAttribute(i,r),!0}})}(this)}get dir(){return this.getAttributeNS(null,"dir")||""}set dir(e){this.setAttributeNS(null,"dir",e)}dispatchEvent(e){return Sm(this,e)}get firstElementChild(){return this.children[0]||null}getAttribute(e){if("style"===e)return null!=this.__style&&this.__style.length>0?this.style.cssText:null;const t=this.attributes.getNamedItem(e);return null!=t?t.value:null}getAttributeNS(e,t){const n=this.attributes.getNamedItemNS(e,t);return null!=n?n.value:null}getBoundingClientRect(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}getRootNode(e){const t=null!=e&&!0===e.composed;let n=this;for(;null!=n.parentNode;)n=n.parentNode,!0===t&&null==n.parentNode&&null!=n.host&&(n=n.host);return n}get draggable(){return"true"===this.getAttributeNS(null,"draggable")}set draggable(e){this.setAttributeNS(null,"draggable",e)}hasChildNodes(){return this.childNodes.length>0}get id(){return this.getAttributeNS(null,"id")||""}set id(e){this.setAttributeNS(null,"id",e)}get innerHTML(){return 0===this.childNodes.length?"":Cm(this,{newLines:!1,indentSpaces:0})}set innerHTML(e){if(!0===Pm.has(this.nodeName))eg(this,e);else{for(let e=this.childNodes.length-1;e>=0;e--)this.removeChild(this.childNodes[e]);if("string"==typeof e){const t=Km(this.ownerDocument,e);for(;t.childNodes.length>0;)this.appendChild(t.childNodes[0])}}}get innerText(){const e=[];return Zm(this.childNodes,e),e.join("")}set innerText(e){eg(this,e)}insertAdjacentElement(e,t){return"beforebegin"===e?Ym(this.parentNode,t,this):"afterbegin"===e?this.prepend(t):"beforeend"===e?this.appendChild(t):"afterend"===e&&Ym(this.parentNode,t,this.nextSibling),t}insertAdjacentHTML(e,t){const n=Km(this.ownerDocument,t);if("beforebegin"===e)for(;n.childNodes.length>0;)Ym(this.parentNode,n.childNodes[0],this);else if("afterbegin"===e)for(;n.childNodes.length>0;)this.prepend(n.childNodes[n.childNodes.length-1]);else if("beforeend"===e)for(;n.childNodes.length>0;)this.appendChild(n.childNodes[0]);else if("afterend"===e)for(;n.childNodes.length>0;)Ym(this.parentNode,n.childNodes[n.childNodes.length-1],this.nextSibling)}insertAdjacentText(e,t){const n=this.ownerDocument.createTextNode(t);"beforebegin"===e?Ym(this.parentNode,n,this):"afterbegin"===e?this.prepend(n):"beforeend"===e?this.appendChild(n):"afterend"===e&&Ym(this.parentNode,n,this.nextSibling)}hasAttribute(e){return"style"===e?null!=this.__style&&this.__style.length>0:null!==this.getAttribute(e)}hasAttributeNS(e,t){return null!==this.getAttributeNS(e,t)}get hidden(){return this.hasAttributeNS(null,"hidden")}set hidden(e){!0===e?this.setAttributeNS(null,"hidden",""):this.removeAttributeNS(null,"hidden")}get lang(){return this.getAttributeNS(null,"lang")||""}set lang(e){this.setAttributeNS(null,"lang",e)}get lastElementChild(){const e=this.children;return e[e.length-1]||null}matches(e){return function(e,t){return hm.matches(e,[t]).length>0}(e,this)}get nextElementSibling(){const e=this.parentElement;if(null!=e&&(1===e.nodeType||11===e.nodeType||9===e.nodeType)){const t=e.children.indexOf(this)+1;return e.children[t]||null}return null}get outerHTML(){return Cm(this,{newLines:!1,outerHtml:!0,indentSpaces:0})}get previousElementSibling(){const e=this.parentElement;if(null!=e&&(1===e.nodeType||11===e.nodeType||9===e.nodeType)){const t=e.children.indexOf(this)-1;return e.children[t]||null}return null}getElementsByClassName(e){const t=[];return function e(t,n,r){const i=t.children;for(let t=0,s=i.length;t<s;t++){const s=i[t];for(let e=0,t=n.length;e<t;e++)s.classList.contains(n[e])&&r.push(s);e(s,n,r)}}(this,e.trim().split(" ").filter(e=>e.length>0),t),t}getElementsByTagName(e){const t=[];return function e(t,n,r){const i=t.children;for(let t=0,s=i.length;t<s;t++){const s=i[t];"*"!==n&&s.nodeName.toLowerCase()!==n||r.push(s),e(s,n,r)}}(this,e.toLowerCase(),t),t}querySelector(e){return function(e,t){return hm(e,t)[0]||null}(e,this)}querySelectorAll(e){return function(e,t){return hm(e,t)}(e,this)}removeAttribute(e){if("style"===e)delete this.__style;else{const t=this.attributes.getNamedItem(e);null!=t&&(this.attributes.removeNamedItemNS(t),!0===cm(this)&&lm(this,e,t.value,null))}}removeAttributeNS(e,t){const n=this.attributes.getNamedItemNS(e,t);null!=n&&(this.attributes.removeNamedItemNS(n),!0===cm(this)&&lm(this,t,n.value,null))}removeEventListener(e,t){Am(this,e,t)}setAttribute(e,t){if("style"===e)this.style=t;else{const n=this.attributes;let r=n.getNamedItem(e);const i=cm(this);if(null!=r)if(!0===i){const e=r.value;r.value=t,e!==r.value&&lm(this,r.name,e,r.value)}else r.value=t;else n.caseInsensitive&&(e=e.toLowerCase()),r=new em(e,t),n.__items.push(r),!0===i&&lm(this,e,null,r.value)}}setAttributeNS(e,t,n){const r=this.attributes;let i=r.getNamedItemNS(e,t);const s=cm(this);if(null!=i)if(!0===s){const e=i.value;i.value=n,e!==i.value&&lm(this,i.name,e,i.value)}else i.value=n;else i=new em(t,n,e),r.__items.push(i),!0===s&&lm(this,t,null,i.value)}get style(){return null==this.__style&&(this.__style=gm()),this.__style}set style(e){"string"==typeof e?(null==this.__style&&(this.__style=gm()),this.__style.cssText=e):this.__style=e}get tabIndex(){return parseInt(this.getAttributeNS(null,"tabindex")||"-1",10)}set tabIndex(e){this.setAttributeNS(null,"tabindex",e)}get tagName(){return this.nodeName}set tagName(e){this.nodeName=e}get textContent(){const e=[];return Zm(this.childNodes,e),e.join("")}set textContent(e){eg(this,e)}get title(){return this.getAttributeNS(null,"title")||""}set title(e){this.setAttributeNS(null,"title",e)}onanimationstart(){}onanimationend(){}onanimationiteration(){}onabort(){}onauxclick(){}onbeforecopy(){}onbeforecut(){}onbeforepaste(){}onblur(){}oncancel(){}oncanplay(){}oncanplaythrough(){}onchange(){}onclick(){}onclose(){}oncontextmenu(){}oncopy(){}oncuechange(){}oncut(){}ondblclick(){}ondrag(){}ondragend(){}ondragenter(){}ondragleave(){}ondragover(){}ondragstart(){}ondrop(){}ondurationchange(){}onemptied(){}onended(){}onerror(){}onfocus(){}onfocusin(){}onfocusout(){}onformdata(){}onfullscreenchange(){}onfullscreenerror(){}ongotpointercapture(){}oninput(){}oninvalid(){}onkeydown(){}onkeypress(){}onkeyup(){}onload(){}onloadeddata(){}onloadedmetadata(){}onloadstart(){}onlostpointercapture(){}onmousedown(){}onmouseenter(){}onmouseleave(){}onmousemove(){}onmouseout(){}onmouseover(){}onmouseup(){}onmousewheel(){}onpaste(){}onpause(){}onplay(){}onplaying(){}onpointercancel(){}onpointerdown(){}onpointerenter(){}onpointerleave(){}onpointermove(){}onpointerout(){}onpointerover(){}onpointerup(){}onprogress(){}onratechange(){}onreset(){}onresize(){}onscroll(){}onsearch(){}onseeked(){}onseeking(){}onselect(){}onselectstart(){}onstalled(){}onsubmit(){}onsuspend(){}ontimeupdate(){}ontoggle(){}onvolumechange(){}onwaiting(){}onwebkitfullscreenchange(){}onwebkitfullscreenerror(){}onwheel(){}toString(e){return Cm(this,e)}}function qm(e){bm(e),delete e.__attributeMap,delete e.__shadowRoot,delete e.__style}function Ym(e,t,n){if(t!==n){if(t.remove(),t.parentNode=e,t.ownerDocument=e.ownerDocument,null!=n){const r=e.childNodes.indexOf(n);if(!(r>-1))throw new Error("referenceNode not found in parentNode.childNodes");e.childNodes.splice(r,0,t)}else e.childNodes.push(t);sm(e.ownerDocument,t)}return t}class Qm extends Xm{constructor(e,t){super(e,"string"==typeof t?t.toUpperCase():null),this.namespaceURI="http://www.w3.org/1999/xhtml"}get tagName(){return this.nodeName}set tagName(e){this.nodeName=e}get attributes(){return null==this.__attributeMap&&(this.__attributeMap=qf(!0)),this.__attributeMap}set attributes(e){this.__attributeMap=e}}class Jm extends zm{constructor(e,t){super(e,3,"#text",t)}cloneNode(e){return new Jm(null,this.nodeValue)}get textContent(){return this.nodeValue}set textContent(e){this.nodeValue=e}get data(){return this.nodeValue}set data(e){this.nodeValue=e}get wholeText(){if(null!=this.parentNode){const e=[];for(let t=0,n=this.parentNode.childNodes.length;t<n;t++){const n=this.parentNode.childNodes[t];3===n.nodeType&&e.push(n.nodeValue)}return e.join("")}return this.nodeValue}}function Zm(e,t){for(let n=0,r=e.length;n<r;n++){const r=e[n];3===r.nodeType?t.push(r.nodeValue):1===r.nodeType&&Zm(r.childNodes,t)}}function eg(e,t){for(let t=e.childNodes.length-1;t>=0;t--)e.removeChild(e.childNodes[t]);const n=new Jm(e.ownerDocument,t);e.appendChild(n)}class tg extends zm{constructor(e,t){super(e,8,"#comment",t)}cloneNode(e){return new tg(null,this.nodeValue)}get textContent(){return this.nodeValue}set textContent(e){this.nodeValue=e}}class ng extends Qm{constructor(e){super(e,null),this.nodeName="#document-fragment",this.nodeType=11}getElementById(e){return qg(this,e)}cloneNode(e){const t=new ng(null);if(e)for(let e=0,n=this.childNodes.length;e<n;e++){const n=this.childNodes[e];if(1===n.nodeType||3===n.nodeType||8===n.nodeType){const n=this.childNodes[e].cloneNode(!0);t.appendChild(n)}}return t}}class rg extends Qm{constructor(e){super(e,"!DOCTYPE"),this.nodeType=10,this.setAttribute("html","")}}class ig{constructor(e){this.parentStyleSheet=e,this.cssText="",this.type=0}}class sg{constructor(e){this.type="text/css",this.parentStyleSheet=null,this.cssRules=[],this.ownerNode=e}get rules(){return this.cssRules}set rules(e){this.cssRules=e}deleteRule(e){e>=0&&e<this.cssRules.length&&(this.cssRules.splice(e,1),lg(this.ownerNode))}insertRule(e,t=0){"number"!=typeof t&&(t=0),t<0&&(t=0),t>this.cssRules.length&&(t=this.cssRules.length);const n=new ig(this);return n.cssText=e,this.cssRules.splice(t,0,n),lg(this.ownerNode),t}}function og(e){const t=[];for(let n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n].nodeValue);return t.join("")}function ag(e,t){const n=e.sheet;n.cssRules.length=0,n.insertRule(t),lg(e)}function lg(e){const t=e.childNodes.length;if(t>1)for(let n=t-1;n>=1;n--)e.removeChild(e.childNodes[n]);else t<1&&e.appendChild(e.ownerDocument.createTextNode(""));e.childNodes[0].nodeValue=e.sheet.cssRules.map(e=>e.cssText).join("\n")}function cg(e,t){if("string"!=typeof t||""===t||!/^[a-z0-9-_:]+$/i.test(t))throw new Error(`The tag name provided (${t}) is not a valid name.`);switch(t=t.toLowerCase()){case"a":return new ug(e);case"base":return new Tg(e);case"button":return new hg(e);case"canvas":return new bg(e);case"form":return new fg(e);case"img":return new pg(e);case"input":return new dg(e);case"link":return new mg(e);case"meta":return new gg(e);case"script":return new _g(e);case"style":return new Eg(e);case"template":return new vg(e);case"title":return new Ag(e)}if(null!=e&&t.includes("-")){const n=e.defaultView;if(null!=n&&null!=n.customElements)return nm(n.customElements,e,t)}return new Qm(e,t)}class ug extends Qm{constructor(e){super(e,"a")}get href(){return Sg(this,"href")}set href(e){this.setAttribute("href",e)}}class hg extends Qm{constructor(e){super(e,"button")}}Cg(hg.prototype,{type:String},{type:"submit"});class pg extends Qm{constructor(e){super(e,"img")}get draggable(){return"false"!==this.getAttributeNS(null,"draggable")}set draggable(e){this.setAttributeNS(null,"draggable",e)}get src(){return Sg(this,"src")}set src(e){this.setAttribute("src",e)}}Cg(pg.prototype,{height:Number,width:Number});class dg extends Qm{constructor(e){super(e,"input")}get list(){const e=this.getAttribute("list");return e?this.ownerDocument.getElementById(e):null}}Cg(dg.prototype,{accept:String,autocomplete:String,autofocus:Boolean,capture:String,checked:Boolean,disabled:Boolean,form:String,formaction:String,formenctype:String,formmethod:String,formnovalidate:String,formtarget:String,height:Number,inputmode:String,max:String,maxLength:Number,min:String,minLength:Number,multiple:Boolean,name:String,pattern:String,placeholder:String,required:Boolean,readOnly:Boolean,size:Number,spellCheck:Boolean,src:String,step:String,type:String,value:String,width:Number},{type:"text"});class fg extends Qm{constructor(e){super(e,"form")}}Cg(fg.prototype,{name:String});class mg extends Qm{constructor(e){super(e,"link")}get href(){return Sg(this,"href")}set href(e){this.setAttribute("href",e)}}Cg(mg.prototype,{crossorigin:String,media:String,rel:String,type:String});class gg extends Qm{constructor(e){super(e,"meta")}}Cg(gg.prototype,{charset:String,content:String,name:String});class _g extends Qm{constructor(e){super(e,"script")}get src(){return Sg(this,"src")}set src(e){this.setAttribute("src",e)}}Cg(_g.prototype,{type:String});class Eg extends Qm{constructor(e){super(e,"style"),this.sheet=new sg(this)}get innerHTML(){return og(this)}set innerHTML(e){ag(this,e)}get innerText(){return og(this)}set innerText(e){ag(this,e)}get textContent(){return og(this)}set textContent(e){ag(this,e)}}class yg extends Xm{get ownerSVGElement(){return null}get viewportElement(){return null}focus(){}onunload(){}get pathLength(){return 0}isPointInFill(e){return!1}isPointInStroke(e){return!1}getTotalLength(){return 0}}class Tg extends Qm{constructor(e){super(e,"base")}get href(){return Sg(this,"href")}set href(e){this.setAttribute("href",e)}}class vg extends Qm{constructor(e){super(e,"template"),this.content=new ng(e)}get innerHTML(){return this.content.innerHTML}set innerHTML(e){this.content.innerHTML=e}cloneNode(e){const t=new vg(null);t.attributes=Jf(this.attributes);const n=this.getAttribute("style");if(null!=n&&n.length>0&&t.setAttribute("style",n),t.content=this.content.cloneNode(e),e)for(let e=0,n=this.childNodes.length;e<n;e++){const n=this.childNodes[e].cloneNode(!0);t.appendChild(n)}return t}}class Ag extends Qm{constructor(e){super(e,"title")}get text(){return this.textContent}set text(e){this.textContent=e}}class bg extends Qm{constructor(e){super(e,"canvas")}getContext(){return{fillRect(){},clearRect(){},getImageData:function(e,t,n,r){return{data:new Array(n*r*4)}},putImageData(){},createImageData:function(){return[]},setTransform(){},drawImage(){},save(){},fillText(){},restore(){},beginPath(){},moveTo(){},lineTo(){},closePath(){},stroke(){},translate(){},scale(){},rotate(){},arc(){},fill(){},measureText:()=>({width:0}),transform(){},rect(){},clip(){}}}}function Sg(e,t){const n=e.getAttribute(t)||"";if(null!=e.ownerDocument){const t=e.ownerDocument.defaultView;if(null!=t){const e=t.location;if(null!=e)try{return new URL(n,e.href).href}catch(e){}}}return n.replace(/\'|\"/g,"").trim()}function Cg(e,t,n={}){Object.keys(t).forEach(r=>{const i=t[r],s=n[r];i===Boolean?Object.defineProperty(e,r,{get(){return this.hasAttribute(r)},set(e){e?this.setAttribute(r,""):this.removeAttribute(r)}}):i===Number?Object.defineProperty(e,r,{get(){const e=this.getAttribute(r);return e?parseInt(e,10):void 0===s?0:s},set(e){this.setAttribute(r,e)}}):Object.defineProperty(e,r,{get(){return this.hasAttribute(r)?this.getAttribute(r):s||""},set(e){this.setAttribute(r,e)}})})}Xm.prototype.cloneNode=function(e){const t=cg(this.ownerDocument,this.nodeName);t.attributes=Jf(this.attributes);const n=this.getAttribute("style");if(null!=n&&n.length>0&&t.setAttribute("style",n),e)for(let e=0,n=this.childNodes.length;e<n;e++){const n=this.childNodes[e].cloneNode(!0);t.appendChild(n)}return t};class xg{constructor(e){if(this._values=[],"object"==typeof e)if("function"==typeof e[Symbol.iterator]){const t=[];for(const n of e)"function"==typeof n[Symbol.iterator]&&t.push([...n]);for(const e of t)this.append(e[0],e[1])}else for(const t in e)this.append(t,e[t])}append(e,t){this._values.push([e,t+""])}delete(e){e=e.toLowerCase();for(let t=this._values.length-1;t>=0;t--)this._values[t][0].toLowerCase()===e&&this._values.splice(t,1)}entries(){const e=[];for(const t of this.keys())e.push([t,this.get(t)]);let t=-1;return{next:()=>(t++,{value:e[t],done:!e[t]}),[Symbol.iterator](){return this}}}forEach(e){for(const t of this.entries())e(t[1],t[0])}get(e){const t=[];e=e.toLowerCase();for(const n of this._values)n[0].toLowerCase()===e&&t.push(n[1]);return t.length>0?t.join(", "):null}has(e){e=e.toLowerCase();for(const t of this._values)if(t[0].toLowerCase()===e)return!0;return!1}keys(){const e=[];for(const t of this._values){const n=t[0].toLowerCase();e.includes(n)||e.push(n)}let t=-1;return{next:()=>(t++,{value:e[t],done:!e[t]}),[Symbol.iterator](){return this}}}set(e,t){for(const n of this._values)if(n[0].toLowerCase()===e.toLowerCase())return void(n[1]=t+"");this.append(e,t)}values(){const e=this._values;let t=-1;return{next(){t++;const n=!e[t];return{value:n?void 0:e[t][1],done:n}},[Symbol.iterator](){return this}}}[Symbol.iterator](){return this.entries()}}class Dg{constructor(e,t={}){this._method="GET",this._url="/",this.bodyUsed=!1,this.cache="default",this.credentials="same-origin",this.integrity="",this.keepalive=!1,this.mode="cors",this.redirect="follow",this.referrer="about:client",this.referrerPolicy="","string"==typeof e?this.url=e:e&&(Object.assign(this,e),this.headers=new xg(e.headers)),Object.assign(this,t),t.headers&&(this.headers=new xg(t.headers)),this.headers||(this.headers=new xg)}get url(){return"string"==typeof this._url?new URL(this._url,location.href).href:new URL("/",location.href).href}set url(e){this._url=e}get method(){return"string"==typeof this._method?this._method.toUpperCase():"GET"}set method(e){this._method=e}clone(){const e=Object.assign({},this);return e.headers=new xg(this.headers),new Dg(e)}}class Ng{constructor(e,t={}){this.ok=!0,this.status=200,this.statusText="",this.type="default",this.url="",this._body=e,t&&Object.assign(this,t),this.headers=new xg(t.headers)}async json(){return JSON.parse(this._body)}async text(){return this._body}clone(){const e=Object.assign({},this);return e.headers=new xg(this.headers),new Ng(this._body,e)}}const wg=[["CustomEvent",class extends ym{constructor(e,t){super(e),this.detail=null,null!=t&&Object.assign(this,t)}}],["Event",ym],["Headers",xg],["KeyboardEvent",class extends ym{constructor(e,t){super(e),this.code="",this.key="",this.altKey=!1,this.ctrlKey=!1,this.metaKey=!1,this.shiftKey=!1,this.location=0,this.repeat=!1,null!=t&&Object.assign(this,t)}}],["MouseEvent",class extends ym{constructor(e,t){super(e),this.screenX=0,this.screenY=0,this.clientX=0,this.clientY=0,this.ctrlKey=!1,this.shiftKey=!1,this.altKey=!1,this.metaKey=!1,this.button=0,this.buttons=0,this.relatedTarget=null,null!=t&&Object.assign(this,t)}}],["Request",Dg],["Response",Ng],["HTMLAnchorElement",ug],["HTMLBaseElement",Tg],["HTMLButtonElement",hg],["HTMLCanvasElement",bg],["HTMLFormElement",fg],["HTMLImageElement",pg],["HTMLInputElement",dg],["HTMLLinkElement",mg],["HTMLMetaElement",gg],["HTMLScriptElement",_g],["HTMLStyleElement",Eg],["HTMLTemplateElement",vg],["HTMLTitleElement",Ag]],Og=()=>{};class kg{constructor(){this.items=[]}get length(){return this.items.length}back(){this.go(-1)}forward(){this.go(1)}go(e){}pushState(e,t,n){}replaceState(e,t,n){}}class Rg{constructor(){}disconnect(){}observe(){}takeRecords(){return[]}unobserve(){}}class Ig{constructor(){this.ancestorOrigins=null,this.protocol="",this.host="",this.hostname="",this.port="",this.pathname="",this.search="",this.hash="",this.username="",this.password="",this.origin="",this._href=""}get href(){return this._href}set href(e){const t=new URL(e,"http://mockdoc-rindojs.web.app");this._href=t.href,this.protocol=t.protocol,this.host=t.host,this.port=t.port,this.pathname=t.pathname,this.search=t.search,this.hash=t.hash,this.username=t.username,this.password=t.password,this.origin=t.origin}assign(e){}reload(e){}replace(e){}toString(){return this.href}}class Mg{constructor(){this.appCodeName="MockNavigator",this.appName="MockNavigator",this.appVersion="MockNavigator",this.platform="MockNavigator",this.userAgent="MockNavigator"}}class Pg{constructor(){this.timeOrigin=Date.now()}addEventListener(){}clearMarks(){}clearMeasures(){}clearResourceTimings(){}dispatchEvent(){return!0}getEntries(){return[]}getEntriesByName(){return[]}getEntriesByType(){return[]}mark(){}measure(){}get navigation(){return{}}now(){return Date.now()-this.timeOrigin}get onresourcetimingbufferfull(){return null}removeEventListener(){}setResourceTimingBufferSize(){}get timing(){return{}}toJSON(){}}class Lg{constructor(){this.items=new Map}key(e){}getItem(e){return e=String(e),this.items.has(e)?this.items.get(e):null}setItem(e,t){null==t&&(t="null"),this.items.set(String(e),String(t))}removeItem(e){this.items.delete(String(e))}clear(){this.items.clear()}}const Fg=clearInterval,Bg=clearTimeout,$g=setInterval,Ug=setTimeout,Vg=URL;class Hg{constructor(e=null){this.document=!1!==e?new Wg(e,this):null,this.performance=new Pg,this.customElements=new tm(this),this.console={debug:Og,error:Og,info:Og,log:Og,warn:Og,dir:Og,dirxml:Og,table:Og,trace:Og,group:Og,groupCollapsed:Og,groupEnd:Og,clear:Og,count:Og,countReset:Og,assert:Og,profile:Og,profileEnd:Og,time:Og,timeLog:Og,timeEnd:Og,timeStamp:Og,context:Og,memory:Og},jg(this),Kg(this)}addEventListener(e,t){vm(this,e,t)}alert(e){this.console?this.console.debug(e):console.debug(e)}blur(){}cancelAnimationFrame(e){this.__clearTimeout(e)}cancelIdleCallback(e){this.__clearTimeout(e)}get CharacterData(){if(null==this.__charDataCstr){const e=this.document;this.__charDataCstr=class extends zm{constructor(){throw super(e,0,"test",""),new Error("Illegal constructor: cannot construct CharacterData")}}}return this.__charDataCstr}set CharacterData(e){this.__charDataCstr=e}clearInterval(e){this.__clearInterval(e)}clearTimeout(e){this.__clearTimeout(e)}close(){!function(e){if(null!=e){e.__timeouts&&(e.__timeouts.forEach(e=>{Fg(e),Bg(e)}),e.__timeouts.clear()),e.customElements&&e.customElements.clear&&e.customElements.clear(),function(e){if(null!=e){bm(e);const t=e.documentElement;if(null!=t){qm(t);for(let e=0,n=t.childNodes.length;e<n;e++){const n=t.childNodes[e];qm(n),n.childNodes.length=0}}for(const t in e)e.hasOwnProperty(t)&&!Xg.has(t)&&delete e[t];try{e.nodeName="#document"}catch(e){}try{e.nodeType=9}catch(e){}try{e.cookie=""}catch(e){}try{e.referrer=""}catch(e){}}}(e.document),function(e){if(null!=e)try{e.timeOrigin=Date.now()}catch(e){}}(e.performance);for(const t in e)e.hasOwnProperty(t)&&"document"!==t&&"performance"!==t&&"customElements"!==t&&delete e[t];if(jg(e),Kg(e),bm(e),null!=e.document)try{e.document.defaultView=e}catch(e){}}}(this)}confirm(){return!1}get CSS(){return{supports:()=>!0}}get Document(){if(null==this.__docCstr){const e=this;this.__docCstr=class extends Wg{constructor(){throw super(!1,e),new Error("Illegal constructor: cannot construct Document")}}}return this.__docCstr}set Document(e){this.__docCstr=e}get DocumentFragment(){if(null==this.__docFragCstr){const e=this.document;this.__docFragCstr=class extends ng{constructor(){throw super(e),new Error("Illegal constructor: cannot construct DocumentFragment")}}}return this.__docFragCstr}set DocumentFragment(e){this.__docFragCstr=e}get DocumentType(){if(null==this.__docTypeCstr){const e=this.document;this.__docTypeCstr=class extends zm{constructor(){throw super(e,0,"test",""),new Error("Illegal constructor: cannot construct DocumentType")}}}return this.__docTypeCstr}set DocumentType(e){this.__docTypeCstr=e}get DOMTokenList(){return null==this.__domTokenListCstr&&(this.__domTokenListCstr=class{}),this.__domTokenListCstr}set DOMTokenList(e){this.__domTokenListCstr=e}dispatchEvent(e){return Sm(this,e)}get Element(){if(null==this.__elementCstr){const e=this.document;this.__elementCstr=class extends Xm{constructor(){throw super(e,""),new Error("Illegal constructor: cannot construct Element")}}}return this.__elementCstr}focus(){}getComputedStyle(e){return{cssText:"",length:0,parentRule:null,getPropertyPriority:()=>null,getPropertyValue:()=>"",item:()=>null,removeProperty:()=>null,setProperty:()=>null}}get globalThis(){return this}get history(){return null==this.__history&&(this.__history=new kg),this.__history}set history(e){this.__history=e}get JSON(){return JSON}get HTMLElement(){if(null==this.__htmlElementCstr){const e=this.document;this.__htmlElementCstr=class extends Qm{constructor(){super(e,"");const t=this.constructor.observedAttributes;Array.isArray(t)&&"function"==typeof this.attributeChangedCallback&&t.forEach(e=>{const t=this.getAttribute(e);null!=t&&this.attributeChangedCallback(e,null,t)})}}}return this.__htmlElementCstr}set HTMLElement(e){this.__htmlElementCstr=e}get IntersectionObserver(){return Rg}get localStorage(){return null==this.__localStorage&&(this.__localStorage=new Lg),this.__localStorage}set localStorage(e){this.__localStorage=e}get location(){return null==this.__location&&(this.__location=new Ig),this.__location}set location(e){"string"==typeof e?(null==this.__location&&(this.__location=new Ig),this.__location.href=e):this.__location=e}matchMedia(){return{matches:!1}}get Node(){if(null==this.__nodeCstr){const e=this.document;this.__nodeCstr=class extends zm{constructor(){throw super(e,0,"test",""),new Error("Illegal constructor: cannot construct Node")}}}return this.__nodeCstr}get NodeList(){if(null==this.__nodeListCstr){const e=this.document;this.__nodeListCstr=class extends class{constructor(e,t,n){this.ownerDocument=e,this.childNodes=t,this.length=n}}{constructor(){throw super(e,[],0),new Error("Illegal constructor: cannot construct NodeList")}}}return this.__nodeListCstr}get navigator(){return null==this.__navigator&&(this.__navigator=new Mg),this.__navigator}set navigator(e){this.__navigator=e}get parent(){return null}prompt(){return""}open(){return null}get origin(){return this.location.origin}removeEventListener(e,t){Am(this,e,t)}requestAnimationFrame(e){return this.setTimeout(()=>{e(Date.now())},0)}requestIdleCallback(e){return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>0})},0)}scroll(e,t){}scrollBy(e,t){}scrollTo(e,t){}get self(){return this}get sessionStorage(){return null==this.__sessionStorage&&(this.__sessionStorage=new Lg),this.__sessionStorage}set sessionStorage(e){this.__sessionStorage=e}setInterval(e,t,...n){if(null==this.__timeouts&&(this.__timeouts=new Set),t=Math.min(t,this.__maxTimeout),this.__allowInterval){const r=this.__setInterval(()=>{this.__timeouts.delete(r);try{e(...n)}catch(e){this.console?this.console.error(e):console.error(e)}},t);return this.__timeouts.add(r),r}const r=this.__setTimeout(()=>{this.__timeouts.delete(r);try{e(...n)}catch(e){this.console?this.console.error(e):console.error(e)}},t);return this.__timeouts.add(r),r}setTimeout(e,t,...n){null==this.__timeouts&&(this.__timeouts=new Set),t=Math.min(t,this.__maxTimeout);const r=this.__setTimeout(()=>{this.__timeouts.delete(r);try{e(...n)}catch(e){this.console?this.console.error(e):console.error(e)}},t);return this.__timeouts.add(r),r}get top(){return this}get window(){return this}onanimationstart(){}onanimationend(){}onanimationiteration(){}onabort(){}onauxclick(){}onbeforecopy(){}onbeforecut(){}onbeforepaste(){}onblur(){}oncancel(){}oncanplay(){}oncanplaythrough(){}onchange(){}onclick(){}onclose(){}oncontextmenu(){}oncopy(){}oncuechange(){}oncut(){}ondblclick(){}ondrag(){}ondragend(){}ondragenter(){}ondragleave(){}ondragover(){}ondragstart(){}ondrop(){}ondurationchange(){}onemptied(){}onended(){}onerror(){}onfocus(){}onfocusin(){}onfocusout(){}onformdata(){}onfullscreenchange(){}onfullscreenerror(){}ongotpointercapture(){}oninput(){}oninvalid(){}onkeydown(){}onkeypress(){}onkeyup(){}onload(){}onloadeddata(){}onloadedmetadata(){}onloadstart(){}onlostpointercapture(){}onmousedown(){}onmouseenter(){}onmouseleave(){}onmousemove(){}onmouseout(){}onmouseover(){}onmouseup(){}onmousewheel(){}onpaste(){}onpause(){}onplay(){}onplaying(){}onpointercancel(){}onpointerdown(){}onpointerenter(){}onpointerleave(){}onpointermove(){}onpointerout(){}onpointerover(){}onpointerup(){}onprogress(){}onratechange(){}onreset(){}onresize(){}onscroll(){}onsearch(){}onseeked(){}onseeking(){}onselect(){}onselectstart(){}onstalled(){}onsubmit(){}onsuspend(){}ontimeupdate(){}ontoggle(){}onvolumechange(){}onwaiting(){}onwebkitfullscreenchange(){}onwebkitfullscreenerror(){}onwheel(){}}var Gg;function jg(e){e.__clearInterval=Fg,e.__clearTimeout=Bg,e.__setInterval=$g,e.__setTimeout=Ug,e.__maxTimeout=3e4,e.__allowInterval=!0,e.URL=Vg}function Kg(e){try{e.devicePixelRatio=1,e.innerHeight=768,e.innerWidth=1366,e.pageXOffset=0,e.pageYOffset=0,e.screenLeft=0,e.screenTop=0,e.screenX=0,e.screenY=0,e.scrollX=0,e.scrollY=0,e.screen={availHeight:e.innerHeight,availLeft:0,availTop:0,availWidth:e.innerWidth,colorDepth:24,height:e.innerHeight,keepAwake:!1,orientation:{angle:0,type:"portrait-primary"},pixelDepth:24,width:e.innerWidth}}catch(e){}}Gg=Hg.prototype,wg.forEach(([e,t])=>{Object.defineProperty(Gg,e,{get(){return this["__"+e]||t},set(t){this["__"+e]=t},configurable:!0,enumerable:!0})});class Wg extends Qm{constructor(e=null,t=null){if(super(null,null),this.nodeName="#document",this.nodeType=9,this.defaultView=t,this.cookie="",this.referrer="",this.appendChild(this.createDocumentTypeNode()),"string"==typeof e){const t=function(e,t){const n=Hm(t.trim(),Wm(e));return n.documentElement=n.firstElementChild,n.head=n.documentElement.firstElementChild,n.body=n.head.nextElementSibling,n}(this,e).children.find(e=>"HTML"===e.nodeName);null!=t&&(this.appendChild(t),Yg(t,this))}else if(!1!==e){const e=new Qm(this,"html");this.appendChild(e),e.appendChild(new Qm(this,"head")),e.appendChild(new Qm(this,"body"))}}get location(){return null!=this.defaultView?this.defaultView.location:null}set location(e){null!=this.defaultView&&(this.defaultView.location=e)}get baseURI(){const e=this.head.childNodes.find(e=>"BASE"===e.nodeName);return e?e.href:this.URL}get URL(){return this.location.href}get styleSheets(){return this.querySelectorAll("style")}get scripts(){return this.querySelectorAll("script")}get forms(){return this.querySelectorAll("form")}get images(){return this.querySelectorAll("img")}get scrollingElement(){return this.documentElement}get documentElement(){for(let e=this.childNodes.length-1;e>=0;e--)if("HTML"===this.childNodes[e].nodeName)return this.childNodes[e];const e=new Qm(this,"html");return this.appendChild(e),e}set documentElement(e){for(let e=this.childNodes.length-1;e>=0;e--)10!==this.childNodes[e].nodeType&&this.childNodes[e].remove();null!=e&&(this.appendChild(e),Yg(e,this))}get head(){const e=this.documentElement;for(let t=0;t<e.childNodes.length;t++)if("HEAD"===e.childNodes[t].nodeName)return e.childNodes[t];const t=new Qm(this,"head");return e.insertBefore(t,e.firstChild),t}set head(e){const t=this.documentElement;for(let e=t.childNodes.length-1;e>=0;e--)"HEAD"===t.childNodes[e].nodeName&&t.childNodes[e].remove();null!=e&&(t.insertBefore(e,t.firstChild),Yg(e,this))}get body(){const e=this.documentElement;for(let t=e.childNodes.length-1;t>=0;t--)if("BODY"===e.childNodes[t].nodeName)return e.childNodes[t];const t=new Qm(this,"body");return e.appendChild(t),t}set body(e){const t=this.documentElement;for(let e=t.childNodes.length-1;e>=0;e--)"BODY"===t.childNodes[e].nodeName&&t.childNodes[e].remove();null!=e&&(t.appendChild(e),Yg(e,this))}appendChild(e){return e.remove(),e.parentNode=this,this.childNodes.push(e),e}createComment(e){return new tg(this,e)}createAttribute(e){return new em(e.toLowerCase(),"")}createAttributeNS(e,t){return new em(t,"",e)}createElement(e){if("#document"===e){const t=new Wg(!1);return t.nodeName=e,t.parentNode=null,t}return cg(this,e)}createElementNS(e,t){const n=function(e,t,n){return"http://www.w3.org/1999/xhtml"===t?cg(e,n):"http://www.w3.org/2000/svg"===t?new yg(e,n):new Xm(e,n)}(this,e,t);return n.namespaceURI=e,n}createTextNode(e){return new Jm(this,e)}createDocumentFragment(){return new ng(this)}createDocumentTypeNode(){return new rg(this)}getElementById(e){return qg(this,e)}getElementsByName(e){return function e(t,n,r=[]){const i=t.children;for(let t=0,s=i.length;t<s;t++){const s=i[t];s.name&&s.name.toLowerCase()===n&&r.push(s),e(s,n,r)}return r}(this,e.toLowerCase())}get title(){const e=this.head.childNodes.find(e=>"TITLE"===e.nodeName);return null!=e?e.textContent:""}set title(e){const t=this.head;let n=t.childNodes.find(e=>"TITLE"===e.nodeName);null==n&&(n=this.createElement("title"),t.appendChild(n)),n.textContent=e}}function zg(e=null){return new Hg(e).document}const Xg=new Set(["nodeName","nodeType","nodeValue","ownerDocument","parentNode","childNodes","_shadowRoot"]);function qg(e,t){const n=e.children;for(let e=0,r=n.length;e<r;e++){const r=n[e];if(r.id===t)return r;const i=qg(r,t);if(null!=i)return i}return null}function Yg(e,t){for(let n=0,r=e.childNodes.length;n<r;n++)e.childNodes[n].ownerDocument=t,1===e.childNodes[n].nodeType&&Yg(e.childNodes[n],t)}const Qg=e=>bd(e)||Cd(e)||xd(e)||$d(e)||Nd(e)||Od(e)||(e=>"dist-self-contained"===e.type)(e)||Rd(e),Jg=async(e,t,n,r,i,s,o)=>{const a=i.toLowerCase().endsWith(".css"),l=[];return{imports:l,styleText:await Zg(e,t,n,a,r,i,s,l,new Set,o)}},Zg=async(e,t,n,r,i,s,o,a,l,c)=>{if(l.has(s))return o;l.add(s),null!=c&&Ni(c,o);const u=await n_(e,t,n,s,o);if(0===u.length)return o;for(const e of u)a.includes(e.filePath)||a.push(e.filePath);return await Promise.all(u.map(async s=>{await e_(e,t,n,r,i,s,a,l,c)})),o_(o,u,r)},e_=async(e,t,n,r,i,s,o,a,l)=>{if(s.styleText=await t_(t,s),"string"==typeof s.styleText)s.styleText=await Zg(e,t,n,r,s.filePath,s.filePath,s.styleText,o,a,l);else{const e=q(n.diagnostics);e.messageText="Unable to read css import: "+s.srcImport,e.absFilePath=i}},t_=async(e,t)=>{let n=null;try{n=await e.fs.readFile(t.filePath)}catch(r){if(t.altFilePath)try{n=await e.fs.readFile(t.filePath)}catch(e){}}return n},n_=async(e,t,n,r,i)=>{const s=[];if(!i.includes("@import"))return s;i=ns(i);const o=Me(r),a=r.split(".").pop().toLowerCase();let l;const c=/(@import)\s+(url\()?\s?(.*?)\s?\)?([^;]*);?/gi;for(;l=c.exec(i);){const i={srcImport:l[0],url:l[4].replace(/[\"\'\)]/g,"")};if(s_(i.srcImport)){if(r_(i.url)?await i_(e,t,n.diagnostics,r,i):Le(i.url)?i.filePath=ae(i.url):i.filePath=ae(Fe(o,i.url)),"css"!==a&&!i.filePath.toLowerCase().endsWith(".css")&&(i.filePath+="."+a,"scss"===a)){const e="_"+Ie(i.filePath),t=Me(i.filePath);i.altFilePath=ae(Fe(t,e))}"string"==typeof i.filePath&&s.push(i)}else e.logger.debug("did not resolve external css @import: "+i.srcImport)}return s},r_=e=>e.startsWith("~"),i_=async(e,t,n,r,i)=>{try{const n=ut(i.url),s=await pn(e.sys,t.fs,{moduleId:n.moduleId,containingFile:r,exts:[],packageFilter:e=>(""!==n.filePath&&(e.main=n.filePath),e)});i.filePath=s.resolveId,i.updatedImport=`@import "${i.filePath}";`}catch(e){const t=q(n);t.messageText="Unable to resolve node module for CSS @import: "+i.url,t.absFilePath=r}},s_=e=>!(e=e.toLowerCase()).includes("url(")||!(e=(e=(e=e.replace(/\"/g,"")).replace(/\'/g,"")).replace(/\s/g,"")).includes("url(http")&&!e.includes("url(//"),o_=(e,t,n)=>{for(const r of t)n?"string"==typeof r.styleText&&(e=e.replace(r.srcImport,r.styleText)):"string"==typeof r.updatedImport&&(e=e.replace(r.srcImport,r.updatedImport));return e},a_=async(e,t,n)=>{let r=e.globalStyle;if(!r)return null;if(await l_(e,t,n))return t.cachedGlobalStyle;try{r=ae(r);const i=await(async(e,t,n,r,i)=>{const s={config:e,sys:e.sys,fs:t.fs,cache:t.cache,diagnostics:[]},o=await(async(e,t)=>{for(const n of e.config.plugins)if(P(n.resolveId))try{const r=n.resolveId(t,null,e);if(null!=r)if(P(r.then)){const e=await r;if(null!=e)return e}else if(B(r))return r}catch(t){J(e.diagnostics,t)}return t})(s,r),a=await(async(e,t)=>{for(const n of e.config.plugins)if(P(n.load))try{const r=n.load(t,e);if(null!=r)if(P(r.then)){const e=await r;if(null!=e)return e}else if(B(r))return r}catch(t){J(e.diagnostics,t)}return e.fs.readFile(t)})(s,o);if(!B(a)){const t=q(n.diagnostics);return t.header=`Unable to find "${Ie(r)}"`,t.messageText=`The file "${$e(e.rootDir,r)}" was unable to load.`,null}const l={code:a,id:r},c=l.id.toLowerCase().endsWith(".css"),u=null!=i&&e.outputTargets.some(Md);if(c)if(u&&null!=i){i.styleDocs=i.styleDocs||[];const s=await Jg(e,t,n,r,r,l.code,i.styleDocs);l.code=s.styleText,l.dependencies=s.imports}else{const i=await Jg(e,t,n,r,r,l.code);l.code=i.styleText,l.dependencies=i.imports}for(const e of s.config.plugins)if(P(e.transform))try{let t;const n=e.transform(l.code,l.id,s);null!=n&&(t=P(n.then)?await n:n,null!=t&&(B(t)?l.code=t:(B(t.code)&&(l.code=t.code),B(t.id)&&(l.id=t.id))))}catch(e){J(n.diagnostics,e)}if(n.diagnostics.push(...s.diagnostics),!c)if(u&&null!=i){i.styleDocs=i.styleDocs||[];const s=await Jg(e,t,n,r,l.id,l.code,i.styleDocs);l.code=s.styleText,l.dependencies=s.imports}else{const i=await Jg(e,t,n,r,l.id,l.code);l.code=i.styleText,l.dependencies=i.imports}return l})(e,t,n,r);if(i){const s=await(async(e,t,n,r,i)=>{if("string"!=typeof r||!r.length)return r;if((!1===e.autoprefixCss||null===e.autoprefixCss)&&!e.minifyCss)return r;"string"==typeof i&&(i=ae(i));const s={input:r,filePath:i,autoprefixer:e.autoprefixCss,minify:e.minifyCss},o=await t.cache.createKey("optimizeCss","autoprefixer9.8.5_postcss7.0.32_6",s),a=await t.cache.get(o);if(null!=a)return a;const l=await t.worker.optimizeCss(s);return l.diagnostics.forEach(e=>{n.push(e)}),"string"!=typeof l.output||Z(n)?r:(await t.cache.put(o,l.output),l.output)})(e,t,n.diagnostics,i.code,r);return t.cachedGlobalStyle=s,s}}catch(e){J(n.diagnostics,e).absFilePath=r}return t.cachedGlobalStyle=null,null},l_=async(e,t,n)=>!!t.cachedGlobalStyle&&(!n.requiresFullBuild&&(!(!n.isRebuild||n.hasStyleChanges)||!n.filesChanged.includes(e.globalStyle)&&!await c_(e,t,n,e.globalStyle,t.cachedGlobalStyle,[]))),c_=async(e,t,n,r,i,s)=>!s.includes(r)&&(s.push(r),u_(e,t,n,r,i,s)),u_=async(e,t,n,r,i,s)=>{const o=await n_(e,t,n,r,i);if(0===o.length)return!1;if(n.filesChanged.some(e=>o.some(t=>t.filePath===e)))return!0;const a=o.map(async r=>{try{const i=await t.fs.readFile(r.filePath);return c_(e,t,n,r.filePath,i,s)}catch(e){return!1}});return(await Promise.all(a)).includes(!0)},h_=async(e,t,n)=>{if(!e.buildDist)return;const r=e.outputTargets.filter(wd);if(0===r.length)return;const i=n.createTimeSpan("generate angular proxies started",!0);await Promise.all(r.map(r=>p_(e,t,n,r))),i.finish("generate angular proxies finished")},p_=(e,t,n,r)=>{const i=d_(r.excludeComponents,n.components);return Promise.all([f_(e,t,n,i,r),A_(t,i,r),b_(t,r)])},d_=(e=[],t)=>O(t,e=>e.tagName).filter(t=>!e.includes(t.tagName)&&!t.internal),f_=async(e,t,n,r,i)=>{const s=m_(r),o=Me(n.packageJson.types),a=Fe(e.rootDir,o,C_),l=vd(i.directivesProxyFile,a,".d.ts"),c=i.componentCorePackage?`import { Components } from '${i.componentCorePackage}';`:`import { Components } from '${l}';`,u=["/* eslint-disable */\n/* tslint:disable */\n/* auto-generated angular directive proxies */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone } from '@angular/core';",v_(i),c,s].join("\n")+"\n",h=Xn.createSourceFile(C_,u,Xn.ScriptTarget.Latest,!1),p=Xn.createPrinter({newLine:Xn.NewLineKind.LineFeed}).printFile(h);return t.fs.writeFile(i.directivesProxyFile,p)},m_=e=>e.map(__).join("\n"),g_=(e,t)=>{const n=e.length>0,r=t.length>0,i=[];return n||r?(n&&i.push(`inputs: ['${e.join("', '")}']`),r&&i.push(`'methods': ['${t.join("', '")}']`),`@ProxyCmp({${i.join(", ")}})`):""},__=e=>{const t=E_(e),n=y_(e),r=T_(e),i=n.length>0,s=[`selector: '${e.tagName}'`,"changeDetection: ChangeDetectionStrategy.OnPush","template: '<ng-content></ng-content>'"];t.length>0&&s.push(`inputs: ['${t.join("', '")}']`);const o=D(e.tagName),a=[`\nexport declare interface ${o} extends Components.${o} {}\n${g_(t,r)}\n@Component({ ${s.join(", ")} })\nexport class ${o} {`];return n.forEach(e=>{a.push(` ${e}!: EventEmitter<CustomEvent>;`)}),a.push(" protected el: HTMLElement;"),a.push(" constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;"),i&&a.push(` proxyOutputs(this, this.el, ['${n.join("', '")}']);`),a.push(" }"),a.push("}"),a.join("\n")},E_=e=>[...e.properties.filter(e=>!e.internal).map(e=>e.name),...e.virtualProperties.map(e=>e.name)].sort(),y_=e=>e.events.filter(e=>!e.internal).map(e=>e.name),T_=e=>e.methods.filter(e=>!e.internal).map(e=>e.name),v_=e=>e.directivesUtilsFile?`import { ProxyCmp, proxyOutputs } from '${vd(e.directivesProxyFile,e.directivesUtilsFile,".ts")}';\n`:S_.replace(/export function/g,"function"),A_=(e,t,n)=>{if(!n.directivesArrayFile)return Promise.resolve();const r=`\nimport * as d from '${vd(n.directivesArrayFile,n.directivesProxyFile,".ts")}';\n\nexport const DIRECTIVES = [\n${t.map(e=>D(e.tagName)).map(e=>" d."+e).join(",\n")}\n];\n`;return e.fs.writeFile(n.directivesArrayFile,r)},b_=async(e,t)=>{t.directivesUtilsFile&&await e.fs.writeFile(t.directivesUtilsFile,"/* eslint-disable */\n/* tslint:disable */\n"+S_)},S_="import { fromEvent } from 'rxjs';\n\nexport const proxyInputs = (Cmp: any, inputs: string[]) => {\n const Prototype = Cmp.prototype;\n inputs.forEach(item => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val: any) {\n this.z.runOutsideAngular(() => (this.el[item] = val));\n }\n });\n });\n};\n\nexport const proxyMethods = (Cmp: any, methods: string[]) => {\n const Prototype = Cmp.prototype;\n methods.forEach(methodName => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() =>\n this.el[methodName].apply(this.el, args)\n );\n };\n });\n};\n\nexport const proxyOutputs = (instance: any, el: any, events: string[]) => {\n events.forEach(eventName => instance[eventName] = fromEvent(el, eventName));\n}\n\nexport function ProxyCmp(opts: { inputs?: any; methods?: any }) {\n const decorator = function(cls: any){\n if (opts.inputs) {\n proxyInputs(cls, opts.inputs);\n }\n if (opts.methods) {\n proxyMethods(cls, opts.methods);\n }\n return cls;\n };\n return decorator;\n}\n",C_="components.d.ts",x_=(e,t,n)=>{if(n)return Le(n)?n:Fe(t,n);if(Le(e))throw new Error('copy task, "dest" property must exist if "src" property is an absolute path: '+e);return t},D_=async(e,t,n)=>{const r=e.outputTargets.filter(Dd);if(0===r.length)return;const i=[...n.filesUpdated,...n.filesAdded,...n.dirsAdded],s=[],o=!((e,t,n)=>{if(!e.hasSuccessfulBuild)return!1;let r=!0;return n.forEach(e=>{const n=ae(Me(e));t.forEach(e=>{e.cmps.forEach(e=>{null!=e.assetsDirs&&e.assetsDirs.forEach(e=>{const t=ae(e.absolutePath);n!==t||(r=!1)})})})}),r})(t,n.entryModules,n.filesChanged);if(r.forEach(t=>{o&&t.copyAssets&&s.push(...((e,t,n,r)=>{if(!n)return[];const i=[];return t.components.filter(e=>null!=e.assetsDirs&&e.assetsDirs.length>0).forEach(t=>{r?t.excludeFromCollection||t.isCollectionDependency||t.assetsDirs.forEach(t=>{const r=Fe(n,$e(e.srcDir,t.absolutePath));i.push({src:t.absolutePath,dest:r,warn:!1,keepDirStructure:!1})}):t.assetsDirs.forEach(e=>{i.push({src:e.absolutePath,dest:Fe(n,e.cmpRelativePath),warn:!1,keepDirStructure:!1})})}),t.debug("getComponentAssetsCopyTasks: "+i.length),i})(e,n,t.dir,"collection"===t.copyAssets)),s.push(...N_(e,n,t,i))}),s.length>0){const r=n.createTimeSpan("copy started");let i=0;try{const r=await e.sys.copy(s,e.srcDir);null!=r&&(n.diagnostics.push(...r.diagnostics),t.fs.cancelDeleteDirectoriesFromDisk(r.dirPaths),t.fs.cancelDeleteFilesFromDisk(r.filePaths),i=r.filePaths.length)}catch(e){q(n.diagnostics).messageText=e.message}r.finish(`copy finished (${i} file${1===i?"":"s"})`)}},N_=(e,t,n,r)=>Array.isArray(n.copy)?(!t.isRebuild||t.requiresFullBuild?n.copy:w_(e,n.copy,r)).map(e=>O_(e,n.dir)):[],w_=(e,t,n)=>Array.isArray(t)?t.filter(t=>{let r=t.src;if(V(r)){if(r=Fe(e.srcDir,r),n.some(Df.filter(r)))return!0}else if(r=ae(((e,t)=>Le(t)?t:Fe(e.srcDir,t))(e,r+"/")),n.some(e=>e.startsWith(r)))return!0;return!1}):[],O_=(e,t)=>({src:e.src,dest:x_(e.src,t,e.dest),keepDirStructure:"boolean"==typeof e.keepDirStructure?e.keepDirStructure:null==e.dest,warn:!1!==e.warn}),k_=e=>()=>t=>{let n=!1;const r=t.statements.slice();for(let t=r.length-1;t>=0;t--){const i=r[t];if(Xn.isImportDeclaration(i)&&!i.importClause&&i.moduleSpecifier&&Xn.isStringLiteral(i.moduleSpecifier)){const s=i.moduleSpecifier.text;e.collections.some(e=>e.collectionName===s||e.moduleId===s)&&(n=!0,r.splice(t,1))}}return n?Xn.updateSourceFileNode(t,r):t},R_=async(e,t,n,r)=>{const i=e.outputTargets.filter(Cd);if(0===i.length)return;const s=n.createTimeSpan("generate custom elements started",!0),o=Xn.createPrinter();try{await Promise.all(r.map(async n=>{const r=Xn.transform(n.staticSourceFile,I_(e,t)).transformed[0],s=o.printFile(r);await Promise.all(i.map(async r=>{const i=$e(e.srcDir,n.jsFilePath),o=Fe(r.dir,i);await t.fs.writeFile(o,s,{outputTargetType:r.type})}))}))}catch(e){J(n.diagnostics,e)}s.finish("generate custom elements finished")},I_=(e,t)=>{const n={coreImportPath:"@rindo/core",componentExport:null,componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),module:"esm",proxy:null,style:"static",styleImportData:"queryparams"};return[od(n.coreImportPath),sd(t,n),k_(t)]},M_=(e,t,n,r,i)=>{if(!i)return{name:"appDataPlugin"};const s=P_(e,t);return{name:"appDataPlugin",resolveId(e,t){return"@rindo/core/internal/app-data"===e||e===ds?("worker"===i&&this.error("@rindo/core packages cannot be imported from a worker."),e):null},load(t){if(t===ds){const e=new Di("");return L_(s,e),e.toString()}if("@rindo/core/internal/app-data"===t){const t=new Di("");return B_(e,t),F_(e,r,t),t.toString()}return null},transform(r,o){if(o=ae(o),s.some(e=>e.path===o)){const s=this.parse(r,{}).body.some(e=>"ExportDefaultDeclaration"===e.type)?"":"\nexport const globalFn = () => {};\nexport default globalFn;";r=$_(i)+r+s;const a=Object.assign({},e.tsCompilerOptions);a.module=Xn.ModuleKind.ESNext;const l=Xn.transpileModule(r,{compilerOptions:a,fileName:o,transformers:{after:[k_(t)]}});return n.diagnostics.push(...Ee(l.diagnostics)),l.outputText}return null}}},P_=(e,t)=>{const n=[];if(B(e.globalScript)){const r=t.moduleMap.get(e.globalScript),i=2===t.version?e.globalScript:r&&r.jsFilePath;i&&n.push({defaultName:Ae(e.namespace+"GlobalScript"),path:ae(i)})}return t.collections.forEach(e=>{if(null!=e.global&&B(e.global.sourceFilePath)){let t=Ae(e.collectionName+"GlobalScript");n.some(e=>e.defaultName===t)&&(t+=n.length),n.push({defaultName:t,path:ae(e.global.sourceFilePath)})}}),n},L_=(e,t)=>{1===e.length?(t.prepend(`import appGlobalScript from '${e[0].path}';\n`),t.append("export const globalScripts = appGlobalScript;\n")):e.length>1?(e.forEach(e=>{t.prepend(`import ${e.defaultName} from '${e.path}';\n`)}),t.append("export const globalScripts = () => {\n"),e.forEach(e=>{t.append(` ${e.defaultName}();\n`)}),t.append("};\n")):t.append("export const globalScripts = () => {};\n")},F_=(e,t,n)=>{const r=Object.keys(t).sort().map(e=>e+": "+(t[e]?"true":"false")).join(", ");n.append(`export const BUILD = /* ${e.fsNamespace} */ { ${r} };\n`)},B_=(e,t)=>{t.append(`export const NAMESPACE = '${e.fsNamespace}';\n`)},$_=e=>`import { Context } from '${"hydrate"===e?"@rindo/core/internal/hydrate":"@rindo/core"}';\n`,U_=(e,t,n,r)=>{if("worker"===n)return{name:"coreResolvePlugin",resolveId(e){return"@rindo/core"!==e&&"@rindo/core/internal/client"!==e&&"@rindo/core/internal/hydrate"!==e||this.error(e+" cannot be imported from a worker"),null}};const i=e.sys.getCompilerExecutingPath(),s=V_(e,i,"client/index.js"),o=V_(e,i,"client/patch.js"),a=V_(e,i,"hydrate/index.js");return{name:"coreResolvePlugin",resolveId(e){if("@rindo/core"===e||"@rindo/core/internal"===e){if("client"===n)return r?{id:"@rindo/core/internal/client",external:!0}:s+"?app-data=conditional";if("hydrate"===n)return a}return"@rindo/core/internal/client"===e?r?{id:"@rindo/core/internal/client",external:!0}:s:"@rindo/core/internal/client/patch"===e?r?{id:"@rindo/core/internal/client/patch",external:!0}:o:"@rindo/core/internal/hydrate"===e?a:null},async load(n){if(n&&!n.startsWith("\0")&&((n=ge(n))===s||n===a)){let r=await t.fs.readFile(n);if("string"!=typeof r&&ve(i)){const s=ft(i,n);r=await Tt(e.sys,t.fs,pt,s,n)}if("string"==typeof r){const t=e.hydratedFlag;if(t){const e=H_(t);Wf!==e&&(r=r.replace(Wf,e),"hydrated"!==t.name&&(r=r.replace('.classList.add("hydrated")',`.classList.add("${t.name}")`),r=r.replace(".classList.add('hydrated')",`.classList.add('${t.name}')`),r=r.replace('.setAttribute("hydrated",',`.setAttribute("${t.name}",`),r=r.replace(".setAttribute('hydrated',",`.setAttribute('${t.name}',`)))}else r=r.replace(Wf,"{}")}return r}return null},resolveImportMeta:(t,{format:n})=>e.extras.dynamicImportShim&&"url"===t&&"es"===n?'""':null}},V_=(e,t,n)=>{if(ve(t))return ae(e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:"@rindo/core",path:"internal/"+n}));const r=Me(t);return ae(Fe(r,"..","internal",n))},H_=e=>{let t,n;t=String(e.initialValue)&&""!==e.initialValue&&null!=e.initialValue?`{${e.property}:${e.initialValue}}`:"";const r="attribute"===e.selector?`[${e.name}]`:"."+e.name;return n=String(e.hydratedValue)&&""!==e.hydratedValue&&null!=e.hydratedValue?`${r}{${e.property}:${e.hydratedValue}}`:"",t+n};var G_=j_;function j_(e,t){if(!e)throw new Error(t||"Assertion failed")}j_.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var K_=Lt((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}}));function W_(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function z_(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function X_(e){return 1===e.length?"0"+e:e}function q_(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}var Y_={inherits:Lt((function(e){try{var t=At;if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=K_}})),toArray:function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):W_(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},toHex:function(e){for(var t="",n=0;n<e.length;n++)t+=X_(e[n].toString(16));return t},htonl:z_,toHex32:function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=z_(i)),n+=q_(i.toString(16))}return n},zero2:X_,zero8:q_,join32:function(e,t,n,r){var i=n-t;G_(i%4==0);for(var s=new Array(i/4),o=0,a=t;o<s.length;o++,a+=4){var l;l="big"===r?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],s[o]=l>>>0}return s},split32:function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var s=e[r];"big"===t?(n[i]=s>>>24,n[i+1]=s>>>16&255,n[i+2]=s>>>8&255,n[i+3]=255&s):(n[i+3]=s>>>24,n[i+2]=s>>>16&255,n[i+1]=s>>>8&255,n[i]=255&s)}return n},rotr32:function(e,t){return e>>>t|e<<32-t},rotl32:function(e,t){return e<<t|e>>>32-t},sum32:function(e,t){return e+t>>>0},sum32_3:function(e,t,n){return e+t+n>>>0},sum32_4:function(e,t,n,r){return e+t+n+r>>>0},sum32_5:function(e,t,n,r,i){return e+t+n+r+i>>>0},sum64:function(e,t,n,r){var i=e[t],s=r+e[t+1]>>>0,o=(s<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=s},sum64_hi:function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},sum64_lo:function(e,t,n,r){return t+r>>>0},sum64_4_hi:function(e,t,n,r,i,s,o,a){var l=0,c=t;return l+=(c=c+r>>>0)<t?1:0,l+=(c=c+s>>>0)<s?1:0,e+n+i+o+(l+=(c=c+a>>>0)<a?1:0)>>>0},sum64_4_lo:function(e,t,n,r,i,s,o,a){return t+r+s+a>>>0},sum64_5_hi:function(e,t,n,r,i,s,o,a,l,c){var u=0,h=t;return u+=(h=h+r>>>0)<t?1:0,u+=(h=h+s>>>0)<s?1:0,u+=(h=h+a>>>0)<a?1:0,e+n+i+o+l+(u+=(h=h+c>>>0)<c?1:0)>>>0},sum64_5_lo:function(e,t,n,r,i,s,o,a,l,c){return t+r+s+a+c>>>0},rotr64_hi:function(e,t,n){return(t<<32-n|e>>>n)>>>0},rotr64_lo:function(e,t,n){return(e<<32-n|t>>>n)>>>0},shr64_hi:function(e,t,n){return e>>>n},shr64_lo:function(e,t,n){return(e<<32-n|t>>>n)>>>0}};function Q_(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var J_=Q_;Q_.prototype.update=function(e,t){if(e=Y_.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=Y_.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},Q_.prototype.digest=function(e){return this.update(this._pad()),G_(null===this.pending),this._digest(e)},Q_.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,s=8;s<this.padLength;s++)r[i++]=0;return r};var Z_={BlockHash:J_},eE=Y_.rotr32;function tE(e,t,n){return e&t^~e&n}function nE(e,t,n){return e&t^e&n^t&n}var rE=tE,iE=nE,sE=function(e){return eE(e,2)^eE(e,13)^eE(e,22)},oE=function(e){return eE(e,6)^eE(e,11)^eE(e,25)},aE=function(e){return eE(e,7)^eE(e,18)^e>>>3},lE=function(e){return eE(e,17)^eE(e,19)^e>>>10},cE=Y_.sum32,uE=Y_.sum32_4,hE=Y_.sum32_5,pE=rE,dE=iE,fE=sE,mE=oE,gE=aE,_E=lE,EE=Z_.BlockHash,yE=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function TE(){if(!(this instanceof TE))return new TE;EE.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=yE,this.W=new Array(64)}Y_.inherits(TE,EE);var vE=TE;TE.blockSize=512,TE.outSize=256,TE.hmacStrength=192,TE.padLength=64,TE.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=uE(_E(n[r-2]),n[r-7],gE(n[r-15]),n[r-16]);var i=this.h[0],s=this.h[1],o=this.h[2],a=this.h[3],l=this.h[4],c=this.h[5],u=this.h[6],h=this.h[7];for(G_(this.k.length===n.length),r=0;r<n.length;r++){var p=hE(h,mE(l),pE(l,c,u),this.k[r],n[r]),d=cE(fE(i),dE(i,s,o));h=u,u=c,c=l,l=cE(a,p),a=o,o=s,s=i,i=cE(p,d)}this.h[0]=cE(this.h[0],i),this.h[1]=cE(this.h[1],s),this.h[2]=cE(this.h[2],o),this.h[3]=cE(this.h[3],a),this.h[4]=cE(this.h[4],l),this.h[5]=cE(this.h[5],c),this.h[6]=cE(this.h[6],u),this.h[7]=cE(this.h[7],h)},TE.prototype._digest=function(e){return"hex"===e?Y_.toHex32(this.h,"big"):Y_.split32(this.h,"big")};for(var AE={},bE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",SE=0;SE<bE.length;SE++)AE[bE.charCodeAt(SE)]=SE;function CE(e,t,n){4===n?e.push([t[0],t[1],t[2],t[3]]):5===n?e.push([t[0],t[1],t[2],t[3],t[4]]):1===n&&e.push([t[0]])}function xE(e){var t="";e=e<0?-e<<1|1:e<<1;do{var n=31&e;(e>>>=5)>0&&(n|=32),t+=bE[n]}while(e>0);return t}var DE=function e(t){this.bits=t instanceof e?t.bits.slice():[]};DE.prototype.add=function(e){this.bits[e>>5]|=1<<(31&e)},DE.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(31&e))};var NE=function(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};NE.prototype.appendLeft=function(e){this.outro+=e},NE.prototype.appendRight=function(e){this.intro=this.intro+e},NE.prototype.clone=function(){var e=new NE(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},NE.prototype.contains=function(e){return this.start<e&&e<this.end},NE.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},NE.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},NE.prototype.edit=function(e,t,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},NE.prototype.prependLeft=function(e){this.outro=e+this.outro},NE.prototype.prependRight=function(e){this.intro=e+this.intro},NE.prototype.split=function(e){var t=e-this.start,n=this.original.slice(0,t),r=this.original.slice(t);this.original=n;var i=new NE(e,this.end,r);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},NE.prototype.toString=function(){return this.intro+this.content+this.outro},NE.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},NE.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var wE=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?wE=function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"function"==typeof t&&(wE=function(e){return t.from(e,"utf-8").toString("base64")});var OE=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=function(e){for(var t=0,n=0,r=0,i=0,s="",o=0;o<e.length;o++){var a=e[o];if(o>0&&(s+=";"),0!==a.length){for(var l=0,c=[],u=0,h=a;u<h.length;u++){var p=h[u],d=xE(p[0]-l);l=p[0],p.length>1&&(d+=xE(p[1]-t)+xE(p[2]-n)+xE(p[3]-r),t=p[1],n=p[2],r=p[3]),5===p.length&&(d+=xE(p[4]-i),i=p[4]),c.push(d)}s+=c.join(",")}}return s}(e.mappings)};function kE(e){var t=e.split("\n"),n=t.filter((function(e){return/^\t+/.test(e)})),r=t.filter((function(e){return/^ {2,}/.test(e)}));if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";var i=r.reduce((function(e,t){var n=/^ +/.exec(t)[0].length;return Math.min(n,e)}),1/0);return new Array(i+1).join(" ")}function RE(e,t){var n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length)for(var i=n.length;i--;)n[i]="..";return n.concat(r).join("/")}OE.prototype.toString=function(){return JSON.stringify(this)},OE.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+wE(this.toString())};var IE=Object.prototype.toString;function ME(e){return"[object Object]"===IE.call(e)}function PE(e){for(var t=e.split("\n"),n=[],r=0,i=0;r<t.length;r++)n.push(i),i+=t[r].length+1;return function(e){for(var t=0,r=n.length;t<r;){var i=t+r>>1;e<n[i]?r=i:t=i+1}var s=t-1;return{line:s,column:e-n[s]}}}var LE=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};LE.prototype.addEdit=function(e,t,n,r){if(t.length){var i=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},LE.prototype.addUneditedChunk=function(e,t,n,r,i){for(var s=t.start,o=!0;s<t.end;)(this.hires||o||i.has(s))&&this.rawSegments.push([this.generatedCodeColumn,e,r.line,r.column]),"\n"===n[s]?(r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(r.column+=1,this.generatedCodeColumn+=1,o=!1),s+=1;this.pending=null},LE.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var n=0;n<t.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var FE={insertLeft:!1,insertRight:!1,storeName:!1},BE=function(e,t){void 0===t&&(t={});var n=new NE(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new DE},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:kE(e)}}),this.byStart[0]=n,this.byEnd[e.length]=n};BE.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)},BE.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},BE.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this},BE.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this},BE.prototype.clone=function(){for(var e=new BE(this.original,{filename:this.filename}),t=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[n.start]=n,e.byEnd[n.end]=n;var r=t.next,i=r&&r.clone();i&&(n.next=i,i.previous=n,n=i),t=r}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new DE(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e},BE.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var n=Object.keys(this.storedNames),r=new LE(e.hires),i=PE(this.original);return this.intro&&r.advance(this.intro),this.firstChunk.eachNext((function(e){var s=i(e.start);e.intro.length&&r.advance(e.intro),e.edited?r.addEdit(0,e.content,s,e.storeName?n.indexOf(e.original):-1):r.addUneditedChunk(0,e,t.original,s,t.sourcemapLocations),e.outro.length&&r.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?RE(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:n,mappings:r.raw}},BE.prototype.generateMap=function(e){return new OE(this.generateDecodedMap(e))},BE.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},BE.prototype.indent=function(e,t){var n=/^[^\r\n]/gm;if(ME(e)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var r={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((function(e){for(var t=e[0];t<e[1];t+=1)r[t]=!0}));var i=!1!==t.indentStart,s=function(t){return i?""+e+t:(i=!0,t)};this.intro=this.intro.replace(n,s);for(var o=0,a=this.firstChunk;a;){var l=a.end;if(a.edited)r[o]||(a.content=a.content.replace(n,s),a.content.length&&(i="\n"===a.content[a.content.length-1]));else for(o=a.start;o<l;){if(!r[o]){var c=this.original[o];"\n"===c?i=!0:"\r"!==c&&i&&(i=!1,o===a.start?a.prependRight(e):(this._splitChunk(a,o),(a=a.next).prependRight(e)))}o+=1}o=a.end,a=a.next}return this.outro=this.outro.replace(n,s),this},BE.prototype.insert=function(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},BE.prototype.insertLeft=function(e,t){return FE.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),FE.insertLeft=!0),this.appendLeft(e,t)},BE.prototype.insertRight=function(e,t){return FE.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),FE.insertRight=!0),this.prependRight(e,t)},BE.prototype.move=function(e,t,n){if(n>=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);var r=this.byStart[e],i=this.byEnd[t],s=r.previous,o=i.next,a=this.byStart[n];if(!a&&i===this.lastChunk)return this;var l=a?a.previous:this.lastChunk;return s&&(s.next=o),o&&(o.previous=s),l&&(l.next=r),a&&(a.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=l,i.next=a||null,l||(this.firstChunk=r),a||(this.lastChunk=i),this},BE.prototype.overwrite=function(e,t,n,r){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===r&&(FE.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),FE.storeName=!0),r={storeName:!0});var i=void 0!==r&&r.storeName,s=void 0!==r&&r.contentOnly;if(i){var o=this.original.slice(e,t);this.storedNames[o]=!0}var a=this.byStart[e],l=this.byEnd[t];if(a){if(t>a.end&&a.next!==this.byStart[a.end])throw new Error("Cannot overwrite across a split point");if(a.edit(n,i,s),a!==l){for(var c=a.next;c!==l;)c.edit("",!1),c=c.next;c.edit("",!1)}}else{var u=new NE(e,t,"").edit(n,i);l.next=u,u.previous=l}return this},BE.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},BE.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this},BE.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this},BE.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var n=this.byStart[e];n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this},BE.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},BE.prototype.lastLine=function(){var e=this.outro.lastIndexOf("\n");if(-1!==e)return this.outro.substr(e+1);var t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(-1!==(e=n.outro.lastIndexOf("\n")))return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(-1!==(e=n.content.lastIndexOf("\n")))return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(-1!==(e=n.intro.lastIndexOf("\n")))return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return-1!==(e=this.intro.lastIndexOf("\n"))?this.intro.substr(e+1)+t:this.intro+t},BE.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var n="",r=this.firstChunk;r&&(r.start>e||r.end<=e);){if(r.start<t&&r.end>=t)return n;r=r.next}if(r&&r.edited&&r.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=r;r;){!r.intro||i===r&&r.start!==e||(n+=r.intro);var s=r.start<t&&r.end>=t;if(s&&r.edited&&r.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===r?e-r.start:0,a=s?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(o,a),!r.outro||s&&r.end!==t||(n+=r.outro),s)break;r=r.next}return n},BE.prototype.snip=function(e,t){var n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n},BE.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,n=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=n?this.byStart[t.end]:this.byEnd[t.start]}},BE.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var n=PE(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+e.original+'")')}var r=e.split(t);return this.byEnd[t]=e,this.byStart[t]=r,this.byEnd[r.end]=r,e===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=e,!0},BE.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},BE.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},BE.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},BE.prototype.trimLines=function(){return this.trim("[\\r\\n]")},BE.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},BE.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var n=this.lastChunk;do{var r=n.end,i=n.trimEnd(t);if(n.end!==r&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1},BE.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},BE.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var n=this.firstChunk;do{var r=n.end,i=n.trimStart(t);if(n.end!==r&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1},BE.prototype.trimStart=function(e){return this.trimStartAborted(e),this};var $E=Object.prototype.hasOwnProperty,UE=function(e){void 0===e&&(e={}),this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};function VE(e,t){const n=e.split(/[/\\]/).filter(Boolean),r=t.split(/[/\\]/).filter(Boolean);for("."===n[0]&&n.shift(),"."===r[0]&&r.shift();n[0]&&r[0]&&n[0]===r[0];)n.shift(),r.shift();for(;".."===r[0]&&n.length>0;)r.shift(),n.pop();for(;n.pop();)r.unshift("..");return r.join("/")}function HE(e,t,n,r){if(t.remove(n,r),e.annotations)for(const r of e.annotations){if(!(r.start<n))return;t.remove(r.start,r.end)}}function GE(e,t){if(e.annotations||"ExpressionStatement"!==e.parent.type||(e=e.parent),e.annotations)for(const n of e.annotations)t.remove(n.start,n.end)}UE.prototype.addSource=function(e){if(e instanceof BE)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!ME(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach((function(t){$E.call(e,t)||(e[t]=e.content[t])})),void 0===e.separator&&(e.separator=this.separator),e.filename)if($E.call(this.uniqueSourceIndexByFilename,e.filename)){var t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this},UE.prototype.append=function(e,t){return this.addSource({content:new BE(e),separator:t&&t.separator||""}),this},UE.prototype.clone=function(){var e=new UE({intro:this.intro,separator:this.separator});return this.sources.forEach((function(t){e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})})),e},UE.prototype.generateDecodedMap=function(e){var t=this;void 0===e&&(e={});var n=[];this.sources.forEach((function(e){Object.keys(e.content.storedNames).forEach((function(e){~n.indexOf(e)||n.push(e)}))}));var r=new LE(e.hires);return this.intro&&r.advance(this.intro),this.sources.forEach((function(e,i){i>0&&r.advance(t.separator);var s=e.filename?t.uniqueSourceIndexByFilename[e.filename]:-1,o=e.content,a=PE(o.original);o.intro&&r.advance(o.intro),o.firstChunk.eachNext((function(t){var i=a(t.start);t.intro.length&&r.advance(t.intro),e.filename?t.edited?r.addEdit(s,t.content,i,t.storeName?n.indexOf(t.original):-1):r.addUneditedChunk(s,t,o.original,i,o.sourcemapLocations):r.advance(t.content),t.outro.length&&r.advance(t.outro)})),o.outro&&r.advance(o.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((function(t){return e.file?RE(e.file,t.filename):t.filename})),sourcesContent:this.uniqueSources.map((function(t){return e.includeContent?t.content:null})),names:n,mappings:r.raw}},UE.prototype.generateMap=function(e){return new OE(this.generateDecodedMap(e))},UE.prototype.getIndentString=function(){var e={};return this.sources.forEach((function(t){var n=t.content.indentStr;null!==n&&(e[n]||(e[n]=0),e[n]+=1)})),Object.keys(e).sort((function(t,n){return e[t]-e[n]}))[0]||"\t"},UE.prototype.indent=function(e){var t=this;if(arguments.length||(e=this.getIndentString()),""===e)return this;var n=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach((function(r,i){var s=void 0!==r.separator?r.separator:t.separator,o=n||i>0&&/\r?\n$/.test(s);r.content.indent(e,{exclude:r.indentExclusionRanges,indentStart:o}),n="\n"===r.content.lastChar()})),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,(function(t,n){return n>0?e+t:t}))),this},UE.prototype.prepend=function(e){return this.intro=e+this.intro,this},UE.prototype.toString=function(){var e=this,t=this.sources.map((function(t,n){var r=void 0!==t.separator?t.separator:e.separator;return(n>0?r:"")+t.content.toString()})).join("");return this.intro+t},UE.prototype.isEmpty=function(){return!(this.intro.length&&this.intro.trim()||this.sources.some((function(e){return!e.content.isEmpty()})))},UE.prototype.length=function(){return this.sources.reduce((function(e,t){return e+t.content.length()}),this.intro.length)},UE.prototype.trimLines=function(){return this.trim("[\\r\\n]")},UE.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},UE.prototype.trimStart=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),!this.intro){var n,r=0;do{if(!(n=this.sources[r++]))break}while(!n.content.trimStartAborted(e))}return this},UE.prototype.trimEnd=function(e){var t,n=new RegExp((e||"\\s")+"+$"),r=this.sources.length-1;do{if(!(t=this.sources[r--])){this.intro=this.intro.replace(n,"");break}}while(!t.content.trimEndAborted(e));return this};const jE={isNoStatement:!0};function KE(e,t,n=0){let r,i;for(r=e.indexOf(t,n);;){if(-1===(n=e.indexOf("/",n))||n>=r)return r;i=e.charCodeAt(++n),++n,(n=47===i?e.indexOf("\n",n)+1:e.indexOf("*/",n)+2)>r&&(r=e.indexOf(t,n))}}const WE=/\s/;function zE(e,t){for(;t<e.length&&WE.test(e[t]);)t++;return t}function XE(e){let t,n,r=0;for(t=e.indexOf("\n",r);;){if(r=e.indexOf("/",r),-1===r||r>t)return t;if(n=e.charCodeAt(++r),47===n)return t;r=e.indexOf("*/",r+2)+2,r>t&&(t=e.indexOf("\n",r))}}function qE(e,t,n,r,i){let s,o,a,l,c=e[0],u=!c.included||c.needsBoundaries;u&&(l=n+XE(t.original.slice(n,c.start))+1);for(let n=1;n<=e.length;n++)s=c,o=l,a=u,c=e[n],u=void 0!==c&&(!c.included||c.needsBoundaries),a||u?(l=s.end+XE(t.original.slice(s.end,void 0===c?r:c.start))+1,s.included?a?s.render(t,i,{end:l,start:o}):s.render(t,i):HE(s,t,o,l)):s.render(t,i)}function YE(e,t,n,r){const i=[];let s,o,a,l,c,u=n-1;for(let r=0;r<e.length;r++){for(o=e[r],void 0!==s&&(u=s.end+KE(t.original.slice(s.end,o.start),",")),a=l=u+2+XE(t.original.slice(u+1,o.start));c=t.original.charCodeAt(a),32===c||9===c||10===c||13===c;)a++;void 0!==s&&i.push({contentEnd:l,end:a,node:s,separator:u,start:n}),s=o,n=a}return i.push({contentEnd:r,end:r,node:s,separator:null,start:n}),i}function QE(e,t,n){for(;;){const r=XE(e.original.slice(t,n));if(-1===r)break;t=t+r+1,e.remove(t-1,t)}}function JE(e,t){const n=t.compact?"":" ";if(1===e.length&&1===t.exportNamesByVariable.get(e[0]).length){const r=e[0];return`exports('${t.exportNamesByVariable.get(r)}',${n}${r.getName()})`}return`exports({${n}${e.map(e=>t.exportNamesByVariable.get(e).map(t=>`${t}:${n}${e.getName()}`).join(","+n)).join(","+n)}${n}})`}function ZE(e,t,n){const r=n.compact?"":" ",i=n.compact?"":";";return`function${r}(v)${r}{${r}return exports({${r}${e.map(e=>n.exportNamesByVariable.get(e).map(n=>`${n}:${r}${t?e.getName():"v"}`).join(","+r)).join(","+r)}${r}}),${r}v${i}${r}}(`}function ey(e){let t="";do{const n=e%64;e=Math.floor(e/64),t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$"[n]+t}while(0!==e);return t}const ty=Object.assign(Object.create(null),{await:!0,break:!0,case:!0,catch:!0,class:!0,const:!0,continue:!0,debugger:!0,default:!0,delete:!0,do:!0,else:!0,enum:!0,eval:!0,export:!0,extends:!0,false:!0,finally:!0,for:!0,function:!0,if:!0,implements:!0,import:!0,in:!0,instanceof:!0,interface:!0,let:!0,new:!0,null:!0,package:!0,private:!0,protected:!0,public:!0,return:!0,static:!0,super:!0,switch:!0,this:!0,throw:!0,true:!0,try:!0,typeof:!0,undefined:!0,var:!0,void:!0,while:!0,with:!0,yield:!0});function ny(e,t){let n=e,r=1;for(;t.has(n)||ty[n];)n=`${e}$${ey(r++)}`;return t.add(n),n}const ry=[],iy=Symbol("Unknown Key"),sy=[],oy=[iy],ay=Symbol("Entities");class ly{constructor(){this.entityPaths=Object.create(null,{[ay]:{value:new Set}})}getEntities(e){let t=this.entityPaths;for(const n of e)t=t[n]=t[n]||Object.create(null,{[ay]:{value:new Set}});return t[ay]}}const cy=new ly;class uy{constructor(){this.entityPaths=Object.create(null,{[ay]:{value:new Map}})}getEntities(e,t){let n=this.entityPaths;for(const t of e)n=n[t]=n[t]||Object.create(null,{[ay]:{value:new Map}});const r=n[ay],i=r.get(t)||new Set;return r.set(t,i),i}}function hy(e,t=null){return Object.create(t,e)}const py=Symbol("Unknown Value"),dy={deoptimizePath:()=>{},getLiteralValueAtPath:()=>py,getReturnExpressionWhenCalledAtPath:()=>dy,hasEffectsWhenAccessedAtPath:e=>e.length>0,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:()=>!0,include:()=>{},includeCallArguments(e,t){for(const n of t)n.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN]]"},fy={deoptimizePath:()=>{},getLiteralValueAtPath:()=>{},getReturnExpressionWhenCalledAtPath:()=>dy,hasEffectsWhenAccessedAtPath:e=>e.length>0,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:()=>!0,include:()=>{},includeCallArguments(){},included:!0,toString:()=>"undefined"},my={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:dy}},gy={value:{returns:null,returnsPrimitive:dy,callsArgs:null,mutatesSelf:!0}},_y={value:{returns:null,returnsPrimitive:dy,callsArgs:[0],mutatesSelf:!1}};class Ey{constructor(){this.included=!1}deoptimizePath(){}getLiteralValueAtPath(){return py}getReturnExpressionWhenCalledAtPath(e){return 1===e.length?$y(My,e[0]):dy}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){return 1!==e.length||By(My,e[0],this.included,t,n)}include(){this.included=!0}includeCallArguments(e,t){for(const n of t)n.include(e,!1)}toString(){return"[[UNKNOWN ARRAY]]"}}const yy={value:{callsArgs:null,mutatesSelf:!1,returns:Ey,returnsPrimitive:null}},Ty={value:{callsArgs:null,mutatesSelf:!0,returns:Ey,returnsPrimitive:null}},vy={value:{callsArgs:[0],mutatesSelf:!1,returns:Ey,returnsPrimitive:null}},Ay={value:{callsArgs:[0],mutatesSelf:!0,returns:Ey,returnsPrimitive:null}},by={deoptimizePath:()=>{},getLiteralValueAtPath:()=>py,getReturnExpressionWhenCalledAtPath:e=>1===e.length?$y(Py,e[0]):dy,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:e=>{if(1===e.length){const t=e[0];return"string"!=typeof t||!Py[t]}return!0},include:()=>{},includeCallArguments(e,t){for(const n of t)n.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN BOOLEAN]]"},Sy={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:by}},Cy={value:{callsArgs:[0],mutatesSelf:!1,returns:null,returnsPrimitive:by}},xy={deoptimizePath:()=>{},getLiteralValueAtPath:()=>py,getReturnExpressionWhenCalledAtPath:e=>1===e.length?$y(Ly,e[0]):dy,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:e=>{if(1===e.length){const t=e[0];return"string"!=typeof t||!Ly[t]}return!0},include:()=>{},includeCallArguments(e,t){for(const n of t)n.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN NUMBER]]"},Dy={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:xy}},Ny={value:{callsArgs:null,mutatesSelf:!0,returns:null,returnsPrimitive:xy}},wy={value:{callsArgs:[0],mutatesSelf:!1,returns:null,returnsPrimitive:xy}},Oy={deoptimizePath:()=>{},getLiteralValueAtPath:()=>py,getReturnExpressionWhenCalledAtPath:e=>1===e.length?$y(Fy,e[0]):dy,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:(e,t,n)=>1!==e.length||By(Fy,e[0],!0,t,n),include:()=>{},includeCallArguments(e,t){for(const n of t)n.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN STRING]]"},ky={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:Oy}};class Ry{constructor(){this.included=!1}deoptimizePath(){}getLiteralValueAtPath(){return py}getReturnExpressionWhenCalledAtPath(e){return 1===e.length?$y(Iy,e[0]):dy}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){return 1!==e.length||By(Iy,e[0],this.included,t,n)}include(){this.included=!0}includeCallArguments(e,t){for(const n of t)n.include(e,!1)}toString(){return"[[UNKNOWN OBJECT]]"}}const Iy=hy({hasOwnProperty:Sy,isPrototypeOf:Sy,propertyIsEnumerable:Sy,toLocaleString:ky,toString:ky,valueOf:my}),My=hy({concat:yy,copyWithin:Ty,every:Cy,fill:Ty,filter:vy,find:_y,findIndex:wy,forEach:_y,includes:Sy,indexOf:Dy,join:ky,lastIndexOf:Dy,map:vy,pop:gy,push:Ny,reduce:_y,reduceRight:_y,reverse:Ty,shift:gy,slice:yy,some:Cy,sort:Ay,splice:Ty,unshift:Ny},Iy),Py=hy({valueOf:Sy},Iy),Ly=hy({toExponential:ky,toFixed:ky,toLocaleString:ky,toPrecision:ky,valueOf:Dy},Iy),Fy=hy({charAt:ky,charCodeAt:Dy,codePointAt:Dy,concat:ky,endsWith:Sy,includes:Sy,indexOf:Dy,lastIndexOf:Dy,localeCompare:Dy,match:Sy,normalize:ky,padEnd:ky,padStart:ky,repeat:ky,replace:{value:{callsArgs:[1],mutatesSelf:!1,returns:null,returnsPrimitive:Oy}},search:Dy,slice:ky,split:yy,startsWith:Sy,substr:ky,substring:ky,toLocaleLowerCase:ky,toLocaleUpperCase:ky,toLowerCase:ky,toUpperCase:ky,trim:ky,valueOf:ky},Iy);function By(e,t,n,r,i){if("string"!=typeof t||!e[t]||e[t].mutatesSelf&&n)return!0;if(!e[t].callsArgs)return!1;for(const n of e[t].callsArgs)if(r.args[n]&&r.args[n].hasEffectsWhenCalledAtPath(sy,{args:ry,withNew:!1},i))return!0;return!1}function $y(e,t){return"string"==typeof t&&e[t]?null!==e[t].returnsPrimitive?e[t].returnsPrimitive:new e[t].returns:dy}class Uy{constructor(e){this.alwaysRendered=!1,this.included=!1,this.isId=!1,this.isReassigned=!1,this.renderBaseName=null,this.renderName=null,this.name=e}addReference(e){}deoptimizePath(e){}getBaseVariableName(){return this.renderBaseName||this.renderName||this.name}getLiteralValueAtPath(e,t,n){return py}getName(){const e=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}.${e}`:e}getReturnExpressionWhenCalledAtPath(e,t,n){return dy}hasEffectsWhenAccessedAtPath(e,t){return e.length>0}hasEffectsWhenAssignedAtPath(e,t){return!0}hasEffectsWhenCalledAtPath(e,t,n){return!0}include(){this.included=!0}includeCallArguments(e,t){for(const n of t)n.include(e,!1)}markCalledFromTryStatement(){}setRenderNames(e,t){this.renderBaseName=e,this.renderName=t}setSafeName(e){this.renderName=e}}class Vy extends Uy{constructor(e,t){super(t),this.module=e,this.isNamespace="*"===t,this.referenced=!1}addReference(e){this.referenced=!0,"default"!==this.name&&"*"!==this.name||this.module.suggestName(e.name)}include(){this.included||(this.included=!0,this.module.used=!0)}}const Hy="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public".split(" "),Gy="Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "),jy=new Set(Hy.concat(Gy)),Ky=/[^$_a-zA-Z0-9]/g,Wy=e=>/\d/.test(e[0]);function zy(e){return e=e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()).replace(Ky,"_"),(Wy(e)||jy.has(e))&&(e="_"+e),e||"_"}const Xy=/^(?:\/|(?:[A-Za-z]:)?[\\|/])/,qy=/^\.?\.\//;function Yy(e){return Xy.test(e)}function Qy(e){return qy.test(e)}function Jy(e){return-1==e.indexOf("\\")?e:e.replace(/\\/g,"/")}class Zy{constructor(e,t,n){this.options=e,this.dynamicImporters=[],this.exportsNames=!1,this.exportsNamespace=!1,this.importers=[],this.mostCommonSuggestion=0,this.reexported=!1,this.renderPath=void 0,this.renormalizeRenderPath=!1,this.used=!1,this.id=t,this.execIndex=1/0,this.moduleSideEffects=n;const r=t.split(/[\\/]/);this.variableName=zy(r.pop()),this.nameSuggestions=Object.create(null),this.declarations=Object.create(null),this.exportedVariables=new Map}getVariableForExportName(e){"*"===e?this.exportsNamespace=!0:"default"!==e&&(this.exportsNames=!0);let t=this.declarations[e];return t||(this.declarations[e]=t=new Vy(this,e),this.exportedVariables.set(t,e),t)}setRenderPath(e,t){return this.renderPath="function"==typeof e.paths?e.paths(this.id):e.paths[this.id],this.renderPath||(Yy(this.id)?(this.renderPath=Jy($e(t,this.id)),this.renormalizeRenderPath=!0):this.renderPath=this.id),this.renderPath}suggestName(e){this.nameSuggestions[e]||(this.nameSuggestions[e]=0),this.nameSuggestions[e]+=1,this.nameSuggestions[e]>this.mostCommonSuggestion&&(this.mostCommonSuggestion=this.nameSuggestions[e],this.variableName=e)}warnUnusedImports(){const e=Object.keys(this.declarations).filter(e=>{if("*"===e)return!1;const t=this.declarations[e];return!t.included&&!this.reexported&&!t.referenced});if(0===e.length)return;const t=1===e.length?`'${e[0]}' is`:`${e.slice(0,-1).map(e=>`'${e}'`).join(", ")} and '${e.slice(-1)}' are`;this.options.onwarn({code:"UNUSED_EXTERNAL_IMPORT",message:`${t} imported from external module '${this.id}' but never used`,names:e,source:this.id})}}function eT(e){e.isExecuted=!0;const t=[e],n=new Set;for(const e of t)for(const r of[...e.dependencies,...e.implicitlyLoadedBefore])r instanceof Zy||r.isExecuted||!r.moduleSideEffects&&!e.implicitlyLoadedBefore.has(r)||n.has(r.id)||(r.isExecuted=!0,n.add(r.id),t.push(r))}function tT(){return{brokenFlow:0,includedCallArguments:new Set,includedLabels:new Set}}function nT(){return{accessed:new ly,assigned:new ly,brokenFlow:0,called:new uy,ignore:{breaks:!1,continues:!1,labels:new Set,returnAwaitYield:!1},includedLabels:new Set,instantiated:new uy,replacedVariableInits:new Map}}class rT extends Uy{constructor(e,t,n,r){super(e),this.additionalInitializers=null,this.calledFromTryStatement=!1,this.expressionsToBeDeoptimized=[],this.declarations=t?[t]:[],this.init=n,this.deoptimizationTracker=r.deoptimizationTracker,this.module=r.module}addDeclaration(e,t){this.declarations.push(e),null===this.additionalInitializers&&(this.additionalInitializers=null===this.init?[]:[this.init],this.init=dy,this.isReassigned=!0),null!==t&&this.additionalInitializers.push(t)}consolidateInitializers(){if(null!==this.additionalInitializers){for(const e of this.additionalInitializers)e.deoptimizePath(oy);this.additionalInitializers=null}}deoptimizePath(e){if(e.length>7||this.isReassigned)return;const t=this.deoptimizationTracker.getEntities(e);if(!t.has(this))if(t.add(this),0===e.length){if(!this.isReassigned){this.isReassigned=!0;const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[];for(const t of e)t.deoptimizeCache();this.init&&this.init.deoptimizePath(oy)}}else this.init&&this.init.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){if(this.isReassigned||!this.init||e.length>7)return py;const r=t.getEntities(e);if(r.has(this.init))return py;this.expressionsToBeDeoptimized.push(n),r.add(this.init);const i=this.init.getLiteralValueAtPath(e,t,n);return r.delete(this.init),i}getReturnExpressionWhenCalledAtPath(e,t,n){if(this.isReassigned||!this.init||e.length>7)return dy;const r=t.getEntities(e);if(r.has(this.init))return dy;this.expressionsToBeDeoptimized.push(n),r.add(this.init);const i=this.init.getReturnExpressionWhenCalledAtPath(e,t,n);return r.delete(this.init),i}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;if(this.isReassigned||e.length>7)return!0;const n=t.accessed.getEntities(e);return!n.has(this)&&(n.add(this),this.init&&this.init.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){if(this.included||e.length>7)return!0;if(0===e.length)return!1;if(this.isReassigned)return!0;const n=t.assigned.getEntities(e);return!n.has(this)&&(n.add(this),this.init&&this.init.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,n){if(e.length>7||this.isReassigned)return!0;const r=(t.withNew?n.instantiated:n.called).getEntities(e,t);return!r.has(this)&&(r.add(this),this.init&&this.init.hasEffectsWhenCalledAtPath(e,t,n))}include(){if(!this.included){this.included=!0,this.module.isExecuted||eT(this.module);for(const e of this.declarations){e.included||e.include(tT(),!1);let t=e.parent;for(;!t.included&&(t.included=!0,"Program"!==t.type);)t=t.parent}}}includeCallArguments(e,t){if(this.isReassigned||this.init&&e.includedCallArguments.has(this.init))for(const n of t)n.include(e,!1);else this.init&&(e.includedCallArguments.add(this.init),this.init.includeCallArguments(e,t),e.includedCallArguments.delete(this.init))}markCalledFromTryStatement(){this.calledFromTryStatement=!0}}class iT{constructor(){this.children=[],this.variables=new Map}addDeclaration(e,t,n=null,r){const i=e.name;let s=this.variables.get(i);return s?s.addDeclaration(e,n):(s=new rT(e.name,e,n||fy,t),this.variables.set(i,s)),s}contains(e){return this.variables.has(e)}findVariable(e){throw new Error("Internal Error: findVariable needs to be implemented by a subclass")}}class sT extends iT{constructor(e){super(),this.accessedOutsideVariables=new Map,this.parent=e,e.children.push(this)}addAccessedDynamicImport(e){(this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(e),this.parent instanceof sT&&this.parent.addAccessedDynamicImport(e)}addAccessedGlobalsByFormat(e){const t=this.accessedGlobalVariablesByFormat||(this.accessedGlobalVariablesByFormat=new Map);for(const n of Object.keys(e)){let r=t.get(n);r||(r=new Set,t.set(n,r));for(const t of e[n])r.add(t)}this.parent instanceof sT&&this.parent.addAccessedGlobalsByFormat(e)}addNamespaceMemberAccess(e,t){this.accessedOutsideVariables.set(e,t),this.parent.addNamespaceMemberAccess(e,t)}addReturnExpression(e){this.parent instanceof sT&&this.parent.addReturnExpression(e)}addUsedOutsideNames(e,t,n){for(const r of this.accessedOutsideVariables.values())r.included&&(e.add(r.getBaseVariableName()),"system"===t&&n.has(r)&&e.add("exports"));const r=this.accessedGlobalVariablesByFormat&&this.accessedGlobalVariablesByFormat.get(t);if(r)for(const t of r)e.add(t)}contains(e){return this.variables.has(e)||this.parent.contains(e)}deconflict(e,t){const n=new Set;if(this.addUsedOutsideNames(n,e,t),this.accessedDynamicImports)for(const e of this.accessedDynamicImports)e.inlineNamespace&&n.add(e.inlineNamespace.getBaseVariableName());for(const[e,t]of this.variables)(t.included||t.alwaysRendered)&&t.setSafeName(ny(e,n));for(const n of this.children)n.deconflict(e,t)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const n=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,n),n}}function oT(e,t,n){if("number"==typeof n)throw new Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return function(e,t){void 0===t&&(t={});var n=t.offsetLine||0,r=t.offsetColumn||0,i=e.split("\n"),s=0,o=i.map((function(e,t){var n=s+e.length+1,r={start:s,end:n,line:t};return s=n,r})),a=0;function l(e,t){return e.start<=t&&t<e.end}function c(e,t){return{line:n+e.line,column:r+t-e.start,character:t}}return function(t,n){"string"==typeof t&&(t=e.indexOf(t,n||0));for(var r=o[a],i=t>=r.end?1:-1;r;){if(l(r,t))return c(r,t);r=o[a+=i]}}}(e,n)(t,n&&n.startIndex)}const aT={Literal:[],Program:["body"]};class lT{constructor(e,t,n){this.included=!1,this.keys=aT[e.type]||function(e){return aT[e.type]=Object.keys(e).filter(t=>"object"==typeof e[t]),aT[e.type]}(e),this.parent=t,this.context=t.context,this.createScope(n),this.parseNode(e),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}bind(){for(const e of this.keys){const t=this[e];if(null!==t&&"annotations"!==e)if(Array.isArray(t))for(const e of t)null!==e&&e.bind();else t.bind()}}createScope(e){this.scope=e}declare(e,t){return[]}deoptimizePath(e){}getLiteralValueAtPath(e,t,n){return py}getReturnExpressionWhenCalledAtPath(e,t,n){return dy}hasEffects(e){for(const t of this.keys){const n=this[t];if(null!==n&&"annotations"!==t)if(Array.isArray(n)){for(const t of n)if(null!==t&&t.hasEffects(e))return!0}else if(n.hasEffects(e))return!0}return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>0}hasEffectsWhenAssignedAtPath(e,t){return!0}hasEffectsWhenCalledAtPath(e,t,n){return!0}include(e,t){this.included=!0;for(const n of this.keys){const r=this[n];if(null!==r&&"annotations"!==n)if(Array.isArray(r))for(const n of r)null!==n&&n.include(e,t);else r.include(e,t)}}includeCallArguments(e,t){for(const n of t)n.include(e,!1)}includeWithAllDeclaredVariables(e,t){this.include(t,e)}initialise(){}insertSemicolon(e){";"!==e.original[this.end-1]&&e.appendLeft(this.end,";")}parseNode(e){for(const t of Object.keys(e)){if(this.hasOwnProperty(t))continue;const n=e[t];if("object"!=typeof n||null===n||"annotations"===t)this[t]=n;else if(Array.isArray(n)){this[t]=[];for(const e of n)this[t].push(null===e?null:new(this.context.nodeConstructors[e.type]||this.context.nodeConstructors.UnknownNode)(e,this,this.scope))}else this[t]=new(this.context.nodeConstructors[n.type]||this.context.nodeConstructors.UnknownNode)(n,this,this.scope)}}render(e,t){for(const n of this.keys){const r=this[n];if(null!==r&&"annotations"!==n)if(Array.isArray(r))for(const n of r)null!==n&&n.render(e,t);else r.render(e,t)}}shouldBeIncluded(e){return this.included||!e.brokenFlow&&this.hasEffects(nT())}toString(){return this.context.code.slice(this.start,this.end)}}class cT extends lT{createScope(e){this.scope=new sT(e)}hasEffectsWhenAccessedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0])}hasEffectsWhenAssignedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0])}hasEffectsWhenCalledAtPath(e,t,n){return!t.withNew||this.body.hasEffectsWhenCalledAtPath(e,t,n)||null!==this.superClass&&this.superClass.hasEffectsWhenCalledAtPath(e,t,n)}initialise(){null!==this.id&&this.id.declare("class",this)}}class uT extends cT{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}parseNode(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),super.parseNode(e)}render(e,t){"system"===t.format&&this.id&&t.exportNamesByVariable.has(this.id.variable)&&e.appendLeft(this.end,`${t.compact?"":" "}${JE([this.id.variable],t)};`),super.render(e,t)}}class hT extends rT{constructor(e){super("arguments",null,dy,e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(){return!0}hasEffectsWhenCalledAtPath(){return!0}}class pT extends rT{constructor(e){super("this",null,null,e)}getLiteralValueAtPath(){return py}hasEffectsWhenAccessedAtPath(e,t){return this.getInit(t).hasEffectsWhenAccessedAtPath(e,t)||super.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return this.getInit(t).hasEffectsWhenAssignedAtPath(e,t)||super.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,n){return this.getInit(n).hasEffectsWhenCalledAtPath(e,t,n)||super.hasEffectsWhenCalledAtPath(e,t,n)}getInit(e){return e.replacedVariableInits.get(this)||dy}}class dT extends lT{bind(){super.bind(),this.argument.deoptimizePath([iy,iy])}}class fT extends sT{constructor(e,t){super(e),this.parameters=[],this.hasRest=!1,this.context=t,this.hoistedBodyVarScope=new sT(this)}addParameterDeclaration(e){const t=e.name;let n=this.hoistedBodyVarScope.variables.get(t);return n?n.addDeclaration(e,null):n=new rT(t,e,dy,this.context),this.variables.set(t,n),n}addParameterVariables(e,t){this.parameters=e;for(const t of e)for(const e of t)e.alwaysRendered=!0;this.hasRest=t}includeCallArguments(e,t){let n=!1,r=!1;const i=this.hasRest&&this.parameters[this.parameters.length-1];for(const n of t)if(n instanceof dT){for(const n of t)n.include(e,!1);break}for(let s=t.length-1;s>=0;s--){const o=this.parameters[s]||i,a=t[s];if(o){n=!1;for(const e of o)e.included&&(r=!0),e.calledFromTryStatement&&(n=!0)}!r&&a.shouldBeIncluded(e)&&(r=!0),r&&a.include(e,n)}}}class mT extends fT{constructor(){super(...arguments),this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(e){this.returnExpressions.push(e)}getReturnExpression(){return null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression}updateReturnExpression(){if(1===this.returnExpressions.length)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=dy;for(const e of this.returnExpressions)e.deoptimizePath(oy)}}}class gT extends mT{constructor(e,t){super(e,t),this.variables.set("arguments",this.argumentsVariable=new hT(t)),this.variables.set("this",this.thisVariable=new pT(t))}findLexicalBoundary(){return this}includeCallArguments(e,t){if(super.includeCallArguments(e,t),this.argumentsVariable.included)for(const n of t)n.included||n.include(e,!1)}}const _T=Object.create(null),ET=Symbol("Value Properties"),yT={pure:!0},TT={pure:!1},vT={__proto__:null,[ET]:TT},AT={__proto__:null,[ET]:yT},bT={__proto__:null,[ET]:TT,prototype:vT},ST={__proto__:null,[ET]:yT,prototype:vT},CT={__proto__:null,[ET]:yT,from:AT,of:AT,prototype:vT},xT={__proto__:null,[ET]:yT,supportedLocalesOf:ST},DT={global:vT,globalThis:vT,self:vT,window:vT,__proto__:null,[ET]:TT,Array:{__proto__:null,[ET]:TT,from:vT,isArray:AT,of:AT,prototype:vT},ArrayBuffer:{__proto__:null,[ET]:yT,isView:AT,prototype:vT},Atomics:vT,BigInt:bT,BigInt64Array:bT,BigUint64Array:bT,Boolean:ST,constructor:bT,DataView:ST,Date:{__proto__:null,[ET]:yT,now:AT,parse:AT,prototype:vT,UTC:AT},decodeURI:AT,decodeURIComponent:AT,encodeURI:AT,encodeURIComponent:AT,Error:ST,escape:AT,eval:vT,EvalError:ST,Float32Array:CT,Float64Array:CT,Function:bT,hasOwnProperty:vT,Infinity:vT,Int16Array:CT,Int32Array:CT,Int8Array:CT,isFinite:AT,isNaN:AT,isPrototypeOf:vT,JSON:vT,Map:ST,Math:{__proto__:null,[ET]:TT,abs:AT,acos:AT,acosh:AT,asin:AT,asinh:AT,atan:AT,atan2:AT,atanh:AT,cbrt:AT,ceil:AT,clz32:AT,cos:AT,cosh:AT,exp:AT,expm1:AT,floor:AT,fround:AT,hypot:AT,imul:AT,log:AT,log10:AT,log1p:AT,log2:AT,max:AT,min:AT,pow:AT,random:AT,round:AT,sign:AT,sin:AT,sinh:AT,sqrt:AT,tan:AT,tanh:AT,trunc:AT},NaN:vT,Number:{__proto__:null,[ET]:yT,isFinite:AT,isInteger:AT,isNaN:AT,isSafeInteger:AT,parseFloat:AT,parseInt:AT,prototype:vT},Object:{__proto__:null,[ET]:yT,create:AT,getNotifier:AT,getOwn:AT,getOwnPropertyDescriptor:AT,getOwnPropertyNames:AT,getOwnPropertySymbols:AT,getPrototypeOf:AT,is:AT,isExtensible:AT,isFrozen:AT,isSealed:AT,keys:AT,prototype:vT},parseFloat:AT,parseInt:AT,Promise:{__proto__:null,[ET]:TT,all:AT,prototype:vT,race:AT,resolve:AT},propertyIsEnumerable:vT,Proxy:vT,RangeError:ST,ReferenceError:ST,Reflect:vT,RegExp:ST,Set:ST,SharedArrayBuffer:bT,String:{__proto__:null,[ET]:yT,fromCharCode:AT,fromCodePoint:AT,prototype:vT,raw:AT},Symbol:{__proto__:null,[ET]:yT,for:AT,keyFor:AT,prototype:vT},SyntaxError:ST,toLocaleString:vT,toString:vT,TypeError:ST,Uint16Array:CT,Uint32Array:CT,Uint8Array:CT,Uint8ClampedArray:CT,unescape:AT,URIError:ST,valueOf:vT,WeakMap:ST,WeakSet:ST,clearInterval:bT,clearTimeout:bT,console:vT,Intl:{__proto__:null,[ET]:TT,Collator:xT,DateTimeFormat:xT,ListFormat:xT,NumberFormat:xT,PluralRules:xT,RelativeTimeFormat:xT},setInterval:bT,setTimeout:bT,TextDecoder:bT,TextEncoder:bT,URL:bT,URLSearchParams:bT,AbortController:bT,AbortSignal:bT,addEventListener:vT,alert:vT,AnalyserNode:bT,Animation:bT,AnimationEvent:bT,applicationCache:vT,ApplicationCache:bT,ApplicationCacheErrorEvent:bT,atob:vT,Attr:bT,Audio:bT,AudioBuffer:bT,AudioBufferSourceNode:bT,AudioContext:bT,AudioDestinationNode:bT,AudioListener:bT,AudioNode:bT,AudioParam:bT,AudioProcessingEvent:bT,AudioScheduledSourceNode:bT,AudioWorkletNode:bT,BarProp:bT,BaseAudioContext:bT,BatteryManager:bT,BeforeUnloadEvent:bT,BiquadFilterNode:bT,Blob:bT,BlobEvent:bT,blur:vT,BroadcastChannel:bT,btoa:vT,ByteLengthQueuingStrategy:bT,Cache:bT,caches:vT,CacheStorage:bT,cancelAnimationFrame:vT,cancelIdleCallback:vT,CanvasCaptureMediaStreamTrack:bT,CanvasGradient:bT,CanvasPattern:bT,CanvasRenderingContext2D:bT,ChannelMergerNode:bT,ChannelSplitterNode:bT,CharacterData:bT,clientInformation:vT,ClipboardEvent:bT,close:vT,closed:vT,CloseEvent:bT,Comment:bT,CompositionEvent:bT,confirm:vT,ConstantSourceNode:bT,ConvolverNode:bT,CountQueuingStrategy:bT,createImageBitmap:vT,Credential:bT,CredentialsContainer:bT,crypto:vT,Crypto:bT,CryptoKey:bT,CSS:bT,CSSConditionRule:bT,CSSFontFaceRule:bT,CSSGroupingRule:bT,CSSImportRule:bT,CSSKeyframeRule:bT,CSSKeyframesRule:bT,CSSMediaRule:bT,CSSNamespaceRule:bT,CSSPageRule:bT,CSSRule:bT,CSSRuleList:bT,CSSStyleDeclaration:bT,CSSStyleRule:bT,CSSStyleSheet:bT,CSSSupportsRule:bT,CustomElementRegistry:bT,customElements:vT,CustomEvent:bT,DataTransfer:bT,DataTransferItem:bT,DataTransferItemList:bT,defaultstatus:vT,defaultStatus:vT,DelayNode:bT,DeviceMotionEvent:bT,DeviceOrientationEvent:bT,devicePixelRatio:vT,dispatchEvent:vT,document:vT,Document:bT,DocumentFragment:bT,DocumentType:bT,DOMError:bT,DOMException:bT,DOMImplementation:bT,DOMMatrix:bT,DOMMatrixReadOnly:bT,DOMParser:bT,DOMPoint:bT,DOMPointReadOnly:bT,DOMQuad:bT,DOMRect:bT,DOMRectReadOnly:bT,DOMStringList:bT,DOMStringMap:bT,DOMTokenList:bT,DragEvent:bT,DynamicsCompressorNode:bT,Element:bT,ErrorEvent:bT,Event:bT,EventSource:bT,EventTarget:bT,external:vT,fetch:vT,File:bT,FileList:bT,FileReader:bT,find:vT,focus:vT,FocusEvent:bT,FontFace:bT,FontFaceSetLoadEvent:bT,FormData:bT,frames:vT,GainNode:bT,Gamepad:bT,GamepadButton:bT,GamepadEvent:bT,getComputedStyle:vT,getSelection:vT,HashChangeEvent:bT,Headers:bT,history:vT,History:bT,HTMLAllCollection:bT,HTMLAnchorElement:bT,HTMLAreaElement:bT,HTMLAudioElement:bT,HTMLBaseElement:bT,HTMLBodyElement:bT,HTMLBRElement:bT,HTMLButtonElement:bT,HTMLCanvasElement:bT,HTMLCollection:bT,HTMLContentElement:bT,HTMLDataElement:bT,HTMLDataListElement:bT,HTMLDetailsElement:bT,HTMLDialogElement:bT,HTMLDirectoryElement:bT,HTMLDivElement:bT,HTMLDListElement:bT,HTMLDocument:bT,HTMLElement:bT,HTMLEmbedElement:bT,HTMLFieldSetElement:bT,HTMLFontElement:bT,HTMLFormControlsCollection:bT,HTMLFormElement:bT,HTMLFrameElement:bT,HTMLFrameSetElement:bT,HTMLHeadElement:bT,HTMLHeadingElement:bT,HTMLHRElement:bT,HTMLHtmlElement:bT,HTMLIFrameElement:bT,HTMLImageElement:bT,HTMLInputElement:bT,HTMLLabelElement:bT,HTMLLegendElement:bT,HTMLLIElement:bT,HTMLLinkElement:bT,HTMLMapElement:bT,HTMLMarqueeElement:bT,HTMLMediaElement:bT,HTMLMenuElement:bT,HTMLMetaElement:bT,HTMLMeterElement:bT,HTMLModElement:bT,HTMLObjectElement:bT,HTMLOListElement:bT,HTMLOptGroupElement:bT,HTMLOptionElement:bT,HTMLOptionsCollection:bT,HTMLOutputElement:bT,HTMLParagraphElement:bT,HTMLParamElement:bT,HTMLPictureElement:bT,HTMLPreElement:bT,HTMLProgressElement:bT,HTMLQuoteElement:bT,HTMLScriptElement:bT,HTMLSelectElement:bT,HTMLShadowElement:bT,HTMLSlotElement:bT,HTMLSourceElement:bT,HTMLSpanElement:bT,HTMLStyleElement:bT,HTMLTableCaptionElement:bT,HTMLTableCellElement:bT,HTMLTableColElement:bT,HTMLTableElement:bT,HTMLTableRowElement:bT,HTMLTableSectionElement:bT,HTMLTemplateElement:bT,HTMLTextAreaElement:bT,HTMLTimeElement:bT,HTMLTitleElement:bT,HTMLTrackElement:bT,HTMLUListElement:bT,HTMLUnknownElement:bT,HTMLVideoElement:bT,IDBCursor:bT,IDBCursorWithValue:bT,IDBDatabase:bT,IDBFactory:bT,IDBIndex:bT,IDBKeyRange:bT,IDBObjectStore:bT,IDBOpenDBRequest:bT,IDBRequest:bT,IDBTransaction:bT,IDBVersionChangeEvent:bT,IdleDeadline:bT,IIRFilterNode:bT,Image:bT,ImageBitmap:bT,ImageBitmapRenderingContext:bT,ImageCapture:bT,ImageData:bT,indexedDB:vT,innerHeight:vT,innerWidth:vT,InputEvent:bT,IntersectionObserver:bT,IntersectionObserverEntry:bT,isSecureContext:vT,KeyboardEvent:bT,KeyframeEffect:bT,length:vT,localStorage:vT,location:vT,Location:bT,locationbar:vT,matchMedia:vT,MediaDeviceInfo:bT,MediaDevices:bT,MediaElementAudioSourceNode:bT,MediaEncryptedEvent:bT,MediaError:bT,MediaKeyMessageEvent:bT,MediaKeySession:bT,MediaKeyStatusMap:bT,MediaKeySystemAccess:bT,MediaList:bT,MediaQueryList:bT,MediaQueryListEvent:bT,MediaRecorder:bT,MediaSettingsRange:bT,MediaSource:bT,MediaStream:bT,MediaStreamAudioDestinationNode:bT,MediaStreamAudioSourceNode:bT,MediaStreamEvent:bT,MediaStreamTrack:bT,MediaStreamTrackEvent:bT,menubar:vT,MessageChannel:bT,MessageEvent:bT,MessagePort:bT,MIDIAccess:bT,MIDIConnectionEvent:bT,MIDIInput:bT,MIDIInputMap:bT,MIDIMessageEvent:bT,MIDIOutput:bT,MIDIOutputMap:bT,MIDIPort:bT,MimeType:bT,MimeTypeArray:bT,MouseEvent:bT,moveBy:vT,moveTo:vT,MutationEvent:bT,MutationObserver:bT,MutationRecord:bT,name:vT,NamedNodeMap:bT,NavigationPreloadManager:bT,navigator:vT,Navigator:bT,NetworkInformation:bT,Node:bT,NodeFilter:vT,NodeIterator:bT,NodeList:bT,Notification:bT,OfflineAudioCompletionEvent:bT,OfflineAudioContext:bT,offscreenBuffering:vT,OffscreenCanvas:bT,open:vT,openDatabase:vT,Option:bT,origin:vT,OscillatorNode:bT,outerHeight:vT,outerWidth:vT,PageTransitionEvent:bT,pageXOffset:vT,pageYOffset:vT,PannerNode:bT,parent:vT,Path2D:bT,PaymentAddress:bT,PaymentRequest:bT,PaymentRequestUpdateEvent:bT,PaymentResponse:bT,performance:vT,Performance:bT,PerformanceEntry:bT,PerformanceLongTaskTiming:bT,PerformanceMark:bT,PerformanceMeasure:bT,PerformanceNavigation:bT,PerformanceNavigationTiming:bT,PerformanceObserver:bT,PerformanceObserverEntryList:bT,PerformancePaintTiming:bT,PerformanceResourceTiming:bT,PerformanceTiming:bT,PeriodicWave:bT,Permissions:bT,PermissionStatus:bT,personalbar:vT,PhotoCapabilities:bT,Plugin:bT,PluginArray:bT,PointerEvent:bT,PopStateEvent:bT,postMessage:vT,Presentation:bT,PresentationAvailability:bT,PresentationConnection:bT,PresentationConnectionAvailableEvent:bT,PresentationConnectionCloseEvent:bT,PresentationConnectionList:bT,PresentationReceiver:bT,PresentationRequest:bT,print:vT,ProcessingInstruction:bT,ProgressEvent:bT,PromiseRejectionEvent:bT,prompt:vT,PushManager:bT,PushSubscription:bT,PushSubscriptionOptions:bT,queueMicrotask:vT,RadioNodeList:bT,Range:bT,ReadableStream:bT,RemotePlayback:bT,removeEventListener:vT,Request:bT,requestAnimationFrame:vT,requestIdleCallback:vT,resizeBy:vT,ResizeObserver:bT,ResizeObserverEntry:bT,resizeTo:vT,Response:bT,RTCCertificate:bT,RTCDataChannel:bT,RTCDataChannelEvent:bT,RTCDtlsTransport:bT,RTCIceCandidate:bT,RTCIceTransport:bT,RTCPeerConnection:bT,RTCPeerConnectionIceEvent:bT,RTCRtpReceiver:bT,RTCRtpSender:bT,RTCSctpTransport:bT,RTCSessionDescription:bT,RTCStatsReport:bT,RTCTrackEvent:bT,screen:vT,Screen:bT,screenLeft:vT,ScreenOrientation:bT,screenTop:vT,screenX:vT,screenY:vT,ScriptProcessorNode:bT,scroll:vT,scrollbars:vT,scrollBy:vT,scrollTo:vT,scrollX:vT,scrollY:vT,SecurityPolicyViolationEvent:bT,Selection:bT,ServiceWorker:bT,ServiceWorkerContainer:bT,ServiceWorkerRegistration:bT,sessionStorage:vT,ShadowRoot:bT,SharedWorker:bT,SourceBuffer:bT,SourceBufferList:bT,speechSynthesis:vT,SpeechSynthesisEvent:bT,SpeechSynthesisUtterance:bT,StaticRange:bT,status:vT,statusbar:vT,StereoPannerNode:bT,stop:vT,Storage:bT,StorageEvent:bT,StorageManager:bT,styleMedia:vT,StyleSheet:bT,StyleSheetList:bT,SubtleCrypto:bT,SVGAElement:bT,SVGAngle:bT,SVGAnimatedAngle:bT,SVGAnimatedBoolean:bT,SVGAnimatedEnumeration:bT,SVGAnimatedInteger:bT,SVGAnimatedLength:bT,SVGAnimatedLengthList:bT,SVGAnimatedNumber:bT,SVGAnimatedNumberList:bT,SVGAnimatedPreserveAspectRatio:bT,SVGAnimatedRect:bT,SVGAnimatedString:bT,SVGAnimatedTransformList:bT,SVGAnimateElement:bT,SVGAnimateMotionElement:bT,SVGAnimateTransformElement:bT,SVGAnimationElement:bT,SVGCircleElement:bT,SVGClipPathElement:bT,SVGComponentTransferFunctionElement:bT,SVGDefsElement:bT,SVGDescElement:bT,SVGDiscardElement:bT,SVGElement:bT,SVGEllipseElement:bT,SVGFEBlendElement:bT,SVGFEColorMatrixElement:bT,SVGFEComponentTransferElement:bT,SVGFECompositeElement:bT,SVGFEConvolveMatrixElement:bT,SVGFEDiffuseLightingElement:bT,SVGFEDisplacementMapElement:bT,SVGFEDistantLightElement:bT,SVGFEDropShadowElement:bT,SVGFEFloodElement:bT,SVGFEFuncAElement:bT,SVGFEFuncBElement:bT,SVGFEFuncGElement:bT,SVGFEFuncRElement:bT,SVGFEGaussianBlurElement:bT,SVGFEImageElement:bT,SVGFEMergeElement:bT,SVGFEMergeNodeElement:bT,SVGFEMorphologyElement:bT,SVGFEOffsetElement:bT,SVGFEPointLightElement:bT,SVGFESpecularLightingElement:bT,SVGFESpotLightElement:bT,SVGFETileElement:bT,SVGFETurbulenceElement:bT,SVGFilterElement:bT,SVGForeignObjectElement:bT,SVGGElement:bT,SVGGeometryElement:bT,SVGGradientElement:bT,SVGGraphicsElement:bT,SVGImageElement:bT,SVGLength:bT,SVGLengthList:bT,SVGLinearGradientElement:bT,SVGLineElement:bT,SVGMarkerElement:bT,SVGMaskElement:bT,SVGMatrix:bT,SVGMetadataElement:bT,SVGMPathElement:bT,SVGNumber:bT,SVGNumberList:bT,SVGPathElement:bT,SVGPatternElement:bT,SVGPoint:bT,SVGPointList:bT,SVGPolygonElement:bT,SVGPolylineElement:bT,SVGPreserveAspectRatio:bT,SVGRadialGradientElement:bT,SVGRect:bT,SVGRectElement:bT,SVGScriptElement:bT,SVGSetElement:bT,SVGStopElement:bT,SVGStringList:bT,SVGStyleElement:bT,SVGSVGElement:bT,SVGSwitchElement:bT,SVGSymbolElement:bT,SVGTextContentElement:bT,SVGTextElement:bT,SVGTextPathElement:bT,SVGTextPositioningElement:bT,SVGTitleElement:bT,SVGTransform:bT,SVGTransformList:bT,SVGTSpanElement:bT,SVGUnitTypes:bT,SVGUseElement:bT,SVGViewElement:bT,TaskAttributionTiming:bT,Text:bT,TextEvent:bT,TextMetrics:bT,TextTrack:bT,TextTrackCue:bT,TextTrackCueList:bT,TextTrackList:bT,TimeRanges:bT,toolbar:vT,top:vT,Touch:bT,TouchEvent:bT,TouchList:bT,TrackEvent:bT,TransitionEvent:bT,TreeWalker:bT,UIEvent:bT,ValidityState:bT,visualViewport:vT,VisualViewport:bT,VTTCue:bT,WaveShaperNode:bT,WebAssembly:vT,WebGL2RenderingContext:bT,WebGLActiveInfo:bT,WebGLBuffer:bT,WebGLContextEvent:bT,WebGLFramebuffer:bT,WebGLProgram:bT,WebGLQuery:bT,WebGLRenderbuffer:bT,WebGLRenderingContext:bT,WebGLSampler:bT,WebGLShader:bT,WebGLShaderPrecisionFormat:bT,WebGLSync:bT,WebGLTexture:bT,WebGLTransformFeedback:bT,WebGLUniformLocation:bT,WebGLVertexArrayObject:bT,WebSocket:bT,WheelEvent:bT,Window:bT,Worker:bT,WritableStream:bT,XMLDocument:bT,XMLHttpRequest:bT,XMLHttpRequestEventTarget:bT,XMLHttpRequestUpload:bT,XMLSerializer:bT,XPathEvaluator:bT,XPathExpression:bT,XPathResult:bT,XSLTProcessor:bT};for(const e of["window","global","self","globalThis"])DT[e]=DT;function NT(e){let t=DT;for(const n of e){if("string"!=typeof n)return null;if(t=t[n],!t)return null}return t[ET]}class wT extends Uy{constructor(){super(...arguments),this.isReassigned=!0}hasEffectsWhenAccessedAtPath(e){return!function(e){return 1===e.length?"undefined"===e[0]||null!==NT(e):null!==NT(e.slice(0,-1))}([this.name,...e])}hasEffectsWhenCalledAtPath(e){return!function(e){const t=NT(e);return null!==t&&t.pure}([this.name,...e])}}class OT extends lT{constructor(){super(...arguments),this.variable=null,this.bound=!1}addExportedVariables(e,t){null!==this.variable&&t.has(this.variable)&&e.push(this.variable)}bind(){this.bound||(this.bound=!0,null===this.variable&&function e(t,n){if("MemberExpression"===t.type)return!t.computed&&e(t.object,t);if("Identifier"===t.type){if(!n)return!0;switch(n.type){case"MemberExpression":return n.computed||t===n.object;case"MethodDefinition":return n.computed;case"FieldDefinition":case"Property":return n.computed||t===n.value;case"ExportSpecifier":case"ImportSpecifier":return t===n.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)),null!==this.variable&&this.variable instanceof rT&&null!==this.variable.additionalInitializers&&this.variable.consolidateInitializers())}declare(e,t){let n;switch(e){case"var":n=this.scope.addDeclaration(this,this.context,t,!0);break;case"function":n=this.scope.addDeclaration(this,this.context,t,"function");break;case"let":case"const":case"class":n=this.scope.addDeclaration(this,this.context,t,!1);break;case"parameter":n=this.scope.addParameterDeclaration(this);break;default:throw new Error(`Internal Error: Unexpected identifier kind ${e}.`)}return[this.variable=n]}deoptimizePath(e){this.bound||this.bind(),0!==e.length||this.scope.contains(this.name)||this.disallowImportReassignment(),this.variable.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.bound||this.bind(),this.variable.getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n){return this.bound||this.bind(),this.variable.getReturnExpressionWhenCalledAtPath(e,t,n)}hasEffects(){return this.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof wT&&this.variable.hasEffectsWhenAccessedAtPath(sy)}hasEffectsWhenAccessedAtPath(e,t){return null!==this.variable&&this.variable.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return!this.variable||this.variable.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,n){return!this.variable||this.variable.hasEffectsWhenCalledAtPath(e,t,n)}include(){this.included||(this.included=!0,null!==this.variable&&this.context.includeVariable(this.variable))}includeCallArguments(e,t){this.variable.includeCallArguments(e,t)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r,isShorthandProperty:i}=_T){if(this.variable){const t=this.variable.getName();t!==this.name&&(e.overwrite(this.start,this.end,t,{contentOnly:!0,storeName:!0}),i&&e.prependRight(this.start,this.name+": ")),"eval"===t&&"CallExpression"===n&&r&&e.appendRight(this.start,"0, ")}}disallowImportReassignment(){return this.context.error({code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment to import '${this.name}'`},this.start)}}class kT extends lT{constructor(){super(...arguments),this.declarationInit=null}addExportedVariables(e,t){this.argument.addExportedVariables(e,t)}bind(){super.bind(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([iy,iy])}declare(e,t){return this.declarationInit=t,this.argument.declare(e,dy)}deoptimizePath(e){0===e.length&&this.argument.deoptimizePath(sy)}hasEffectsWhenAssignedAtPath(e,t){return e.length>0||this.argument.hasEffectsWhenAssignedAtPath(sy,t)}}class RT extends lT{constructor(){super(...arguments),this.isPrototypeDeoptimized=!1}createScope(e){this.scope=new gT(e,this.context)}deoptimizePath(e){1===e.length&&("prototype"===e[0]?this.isPrototypeDeoptimized=!0:e[0]===iy&&(this.isPrototypeDeoptimized=!0,this.scope.getReturnExpression().deoptimizePath(oy)))}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.scope.getReturnExpression():dy}hasEffects(){return null!==this.id&&this.id.hasEffects()}hasEffectsWhenAccessedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0]||this.isPrototypeDeoptimized)}hasEffectsWhenAssignedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0]||this.isPrototypeDeoptimized)}hasEffectsWhenCalledAtPath(e,t,n){if(e.length>0)return!0;for(const e of this.params)if(e.hasEffects(n))return!0;const r=n.replacedVariableInits.get(this.scope.thisVariable);n.replacedVariableInits.set(this.scope.thisVariable,t.withNew?new Ry:dy);const{brokenFlow:i,ignore:s}=n;return n.ignore={breaks:!1,continues:!1,labels:new Set,returnAwaitYield:!0},!!this.body.hasEffects(n)||(n.brokenFlow=i,r?n.replacedVariableInits.set(this.scope.thisVariable,r):n.replacedVariableInits.delete(this.scope.thisVariable),n.ignore=s,!1)}include(e,t){this.included=!0,this.id&&this.id.include();const n=this.scope.argumentsVariable.included;for(const r of this.params)r instanceof OT&&!n||r.include(e,t);const{brokenFlow:r}=e;e.brokenFlow=0,this.body.include(e,t),e.brokenFlow=r}includeCallArguments(e,t){this.scope.includeCallArguments(e,t)}initialise(){null!==this.id&&this.id.declare("function",this),this.scope.addParameterVariables(this.params.map(e=>e.declare("parameter",dy)),this.params[this.params.length-1]instanceof kT),this.body.addImplicitReturnExpressionToScope()}parseNode(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope),super.parseNode(e)}}RT.prototype.preventChildBlockScope=!0;class IT extends RT{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}parseNode(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),super.parseNode(e)}}class MT extends lT{include(e,t){super.include(e,t),t&&this.context.includeVariable(this.variable)}initialise(){const e=this.declaration;this.declarationName=e.id&&e.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context),this.context.addExport(this)}render(e,t,n){const{start:r,end:i}=n,s=function(e,t){return zE(e,KE(e,"default",t)+7)}(e.original,this.start);if(this.declaration instanceof IT)this.renderNamedDeclaration(e,s,"function","(",null===this.declaration.id,t);else if(this.declaration instanceof uT)this.renderNamedDeclaration(e,s,"class","{",null===this.declaration.id,t);else{if(this.variable.getOriginalVariable()!==this.variable)return void HE(this,e,r,i);if(!this.variable.included)return e.remove(this.start,s),this.declaration.render(e,t,{isCalleeOfRenderedParent:!1,renderedParentType:"ExpressionStatement"}),void(";"!==e.original[this.end-1]&&e.appendLeft(this.end,";"));this.renderVariableDeclaration(e,s,t)}this.declaration.render(e,t)}renderNamedDeclaration(e,t,n,r,i,s){const o=this.variable.getName();e.remove(this.start,t),i&&e.appendLeft(function(e,t,n,r){const i=KE(e,t,r)+t.length;e=e.slice(i,KE(e,n,i));const s=KE(e,"*");return-1===s?i:i+s+1}(e.original,n,r,t)," "+o),"system"===s.format&&this.declaration instanceof uT&&s.exportNamesByVariable.has(this.variable)&&e.appendLeft(this.end,` ${JE([this.variable],s)};`)}renderVariableDeclaration(e,t,n){const r=59===e.original.charCodeAt(this.end-1),i="system"===n.format&&n.exportNamesByVariable.get(this.variable);i?(e.overwrite(this.start,t,`${n.varOrConst} ${this.variable.getName()} = exports('${i[0]}', `),e.appendRight(r?this.end-1:this.end,")"+(r?"":";"))):(e.overwrite(this.start,t,`${n.varOrConst} ${this.variable.getName()} = `),r||e.appendLeft(this.end,";"))}}MT.prototype.needsBoundaries=!0;class PT extends Uy{constructor(){super("undefined")}getLiteralValueAtPath(){}}class LT extends rT{constructor(e,t,n){super(e,t,t.declaration,n),this.hasId=!1,this.originalId=null,this.originalVariableAndDeclarationModules=null;const r=t.declaration;(r instanceof IT||r instanceof uT)&&r.id?(this.hasId=!0,this.originalId=r.id):r instanceof OT&&(this.originalId=r)}addReference(e){this.hasId||(this.name=e.name)}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){const e=this.getOriginalVariable();return e===this?super.getBaseVariableName():e.getBaseVariableName()}getName(){const e=this.getOriginalVariable();return e===this?super.getName():e.getName()}getOriginalVariable(){return this.getOriginalVariableAndDeclarationModules().original}getOriginalVariableAndDeclarationModules(){if(null===this.originalVariableAndDeclarationModules)if(!this.originalId||!this.hasId&&(this.originalId.variable.isReassigned||this.originalId.variable instanceof PT))this.originalVariableAndDeclarationModules={modules:[],original:this};else{const e=this.originalId.variable;if(e instanceof LT){const{modules:t,original:n}=e.getOriginalVariableAndDeclarationModules();this.originalVariableAndDeclarationModules={modules:t.concat(this.module),original:n}}else this.originalVariableAndDeclarationModules={modules:[this.module],original:e}}return this.originalVariableAndDeclarationModules}}class FT extends Uy{constructor(e){super("_missingExportShim"),this.module=e}}class BT extends Uy{constructor(e,t){super(e.getModuleName()),this.memberVariables=null,this.mergedNamespaces=[],this.referencedEarly=!1,this.references=[],this.context=e,this.module=e.module,this.syntheticNamedExports=t}addReference(e){this.references.push(e),this.name=e.name}deoptimizePath(){const e=this.getMemberVariables();for(const t of Object.keys(e))e[t].deoptimizePath(oy)}getMemberVariables(){if(this.memberVariables)return this.memberVariables;const e=Object.create(null);for(const t of this.context.getExports().concat(this.context.getReexports()))"*"!==t[0]&&t!==this.module.syntheticNamedExports&&(e[t]=this.context.traceExport(t));return this.memberVariables=e,this.memberVariables=e}include(){if(!this.included){this.included=!0;for(const e of this.references)if(e.context.getModuleExecIndex()<=this.context.getModuleExecIndex()){this.referencedEarly=!0;break}this.mergedNamespaces=this.context.includeAndGetAdditionalMergedNamespaces();const e=this.getMemberVariables();for(const t of Object.keys(e))e[t].include();"string"==typeof this.syntheticNamedExports&&this.context.traceExport(this.syntheticNamedExports).include()}}renderBlock(e){const t=e.compact?"":" ",n=e.compact?"":"\n",r=e.indent,i=this.getMemberVariables(),s=Object.keys(i).map(n=>{const s=i[n];if(this.referencedEarly||s.isReassigned)return`${r}get ${n}${t}()${t}{${t}return ${s.getName()}${e.compact?"":";"}${t}}`;const o=ty[n]?`'${n}'`:n;return`${r}${o}: ${s.getName()}`});e.namespaceToStringTag&&s.unshift(`${r}[Symbol.toStringTag]:${t}'Module'`);const o=this.mergedNamespaces.length>0||this.syntheticNamedExports;o||s.unshift(`${r}__proto__:${t}null`);let a=`{${n}${s.join(","+n)}${n}}`;if(o){const e=["/*#__PURE__*/Object.create(null)"];this.mergedNamespaces.length>0&&e.push(...this.mergedNamespaces.map(e=>e.getName())),this.syntheticNamedExports&&e.push(this.module.getSyntheticNamespace().getName()),s.length>0&&e.push(a),a=`/*#__PURE__*/Object.assign(${e.join(","+t)})`}e.freeze&&(a=`/*#__PURE__*/Object.freeze(${a})`);const l=this.getName();return a=`${e.varOrConst} ${l}${t}=${t}${a};`,"system"===e.format&&e.exportNamesByVariable.has(this)&&(a+=`${n}${JE([this],e)};`),a}renderFirst(){return this.referencedEarly}}BT.prototype.isNamespace=!0;class $T extends Uy{constructor(e,t,n){super(t),this.context=e,this.module=e.module,this.syntheticNamespace=n}getBaseVariable(){let e=this.syntheticNamespace;return e instanceof LT&&(e=e.getOriginalVariable()),e instanceof $T&&(e=e.getBaseVariable()),e}getName(){const e=this.name;return`${this.syntheticNamespace.getName()}${UT(e)}`}include(){this.included||(this.included=!0,this.context.includeVariable(this.syntheticNamespace))}}const UT=e=>/^(?!\d)[\w$]+$/.test(e)?"."+e:`[${JSON.stringify(e)}]`,VT="Object.defineProperty(exports, '__esModule', { value: true });",HT="Object.defineProperty(exports,'__esModule',{value:true});";function GT(e,t,n,r,i,s,o="return "){const a=i?"":" ",l=i?"":"\n";if(!n){let n;if(e.length>0)n=e[0].local;else for(const e of t)if(e.reexports){const t=e.reexports[0];n=e.namedExportsMode&&"*"!==t.imported&&"default"!==t.imported?`${e.name}.${t.imported}`:e.name;break}return`${o}${n};`}let c="";for(const{name:e,reexports:r}of t)if(r&&n)for(const t of r)"*"===t.reexported&&(c&&(c+=l),t.needsLiveBinding?c+=`Object.keys(${e}).forEach(function${a}(k)${a}{${l}${s}if${a}(k${a}!==${a}'default')${a}Object.defineProperty(exports,${a}k,${a}{${l}${s}${s}enumerable:${a}true,${l}${s}${s}get:${a}function${a}()${a}{${l}${s}${s}${s}return ${e}[k];${l}${s}${s}}${l}${s}});${l}});`:c+=`Object.keys(${e}).forEach(function${a}(k)${a}{${l}${s}if${a}(k${a}!==${a}'default')${a}exports[k]${a}=${a}${e}[k];${l}});`);for(const{name:e,imports:i,reexports:o,isChunk:u,namedExportsMode:h,exportsNames:p}of t)if(o&&n)for(const t of o)if("default"!==t.imported||u)if("*"!==t.imported){c&&(c+=l);const n="default"!==t.imported||h?`${e}.${t.imported}`:e;c+=t.needsLiveBinding?`Object.defineProperty(exports,${a}'${t.reexported}',${a}{${l}${s}enumerable:${a}true,${l}${s}get:${a}function${a}()${a}{${l}${s}${s}return ${n};${l}${s}}${l}});`:`exports.${t.reexported}${a}=${a}${n};`}else"*"!==t.reexported&&(c&&(c+=l),c+=`exports.${t.reexported}${a}=${a}${e};`);else c&&(c+=l),p&&(o.some(e=>"default"===e.imported?"default"===e.reexported:"*"!==e.imported)||i&&i.some(e=>"default"!==e.imported))?c+=`exports.${t.reexported}${a}=${a}${e}${!1!==r?"__default":".default"};`:c+=`exports.${t.reexported}${a}=${a}${e};`;for(const t of e){const e="exports."+t.exported,n=t.local;e!==n&&(c&&(c+=l),c+=`${e}${a}=${a}${n};`)}return c}function jT(e,t,n){const r=t.compact?"":" ";return e.map(({name:e,exportsNames:i,exportsDefault:s,namedExportsMode:o})=>o&&s&&t.interop?i?`${n} ${e}__default${r}=${r}'default'${r}in ${e}${r}?${r}${e}['default']${r}:${r}${e};`:`${e}${r}=${r}${e}${r}&&${r}Object.prototype.hasOwnProperty.call(${e},${r}'default')${r}?${r}${e}['default']${r}:${r}${e};`:null).filter(Boolean).join(t.compact?"":"\n")}function KT(e,t,n,r){return`${r}var d${e}=${e}Object.getOwnPropertyDescriptor(e,${e}k);${t}${r}Object.defineProperty(n,${e}k,${e}d.get${e}?${e}d${e}:${e}{${t}${r}${n}enumerable:${e}true,${t}${r}${n}get:${e}function${e}()${e}{${t}${r}${n}${n}return e[k];${t}${r}${n}}${t}${r}});${t}`}function WT(e,t,n,r){return`${r}n[k]${e}=e${e}[k];${t}`}function zT(e,t,n,r){return`function _interopNamespace(e)${e}{${t}${n}if${e}(e${e}&&${e}e.__esModule)${e}{${e}return e;${e}}${e}else${e}{${t}${n}${n}var n${e}=${e}{};${t}${n}${n}if${e}(e)${e}{${t}${n}${n}${n}Object.keys(e).forEach(function${e}(k)${e}{${t}`+(r?KT:WT)(e,t,n,n+n+n+n)+`${n}${n}${n}});${t}`+`${n}${n}}${t}`+`${n}${n}n['default']${e}=${e}e;${t}`+`${n}${n}return n;${t}`+`${n}}${t}`+`}${t}${t}`}const XT={assert:!0,buffer:!0,console:!0,constants:!0,domain:!0,events:!0,http:!0,https:!0,os:!0,path:!0,process:!0,punycode:!0,querystring:!0,stream:!0,string_decoder:!0,timers:!0,tty:!0,url:!0,util:!0,vm:!0,zlib:!0};function qT(e,t){const n=t.map(({id:e})=>e).filter(e=>e in XT);n.length&&e({code:"MISSING_NODE_BUILTINS",message:`Creating a browser bundle that depends on Node.js built-in ${1===n.length?`module ('${n[0]}')`:`modules (${n.slice(0,-1).map(e=>`'${e}'`).join(", ")} and '${n.slice(-1)}')`}. You might need to include https://github.com/ionic-team/rollup-plugin-node-polyfills`,modules:n})}function YT(e){return e.replace(/^\t+/,e=>e.split("\t").join(" "))}function QT(e){return e.replace(/[\0?*]/g,"_")}function JT(e){const t=Ie(e);return t.substr(0,t.length-Pe(e).length)}function ZT(e){return void 0!==n&&Yy(e)?$e(n.cwd(),e):e}function ev(e){return!("/"===e[0]||"."===e[0]&&("/"===e[1]||"."===e[1])||QT(e)!==e||Yy(e))}function tv(e){throw e instanceof Error||(e=Object.assign(new Error(e.message),e)),e}function nv(e,t,n,r){if("object"==typeof t){const{line:n,column:i}=t;e.loc={file:r,line:n,column:i}}else{e.pos=t;const{line:i,column:s}=oT(n,t,{offsetLine:1});e.loc={file:r,line:i,column:s}}if(void 0===e.frame){const{line:t,column:r}=e.loc;e.frame=function(e,t,n){let r=e.split("\n");const i=Math.max(0,t-3);let s=Math.min(t+2,r.length);for(r=r.slice(i,s);!/\S/.test(r[r.length-1]);)r.pop(),s-=1;const o=String(s).length;return r.map((e,r)=>{const s=i+r+1===t;let a=String(r+i+1);for(;a.length<o;)a=" "+a;if(s){const t=function(e){let t="";for(;e--;)t+=" ";return t}(o+2+YT(e.slice(0,n)).length)+"^";return`${a}: ${YT(e)}\n${t}`}return`${a}: ${YT(e)}`}).join("\n")}(n,t,r)}}var rv;function iv(e,t,n){return{code:"INVALID_EXPORT_OPTION",message:`"${e}" was specified for "output.exports", but entry module "${ZT(n)}" has the following exports: ${t.join(", ")}`}}function sv(e){const t=Array.from(e.implicitlyLoadedBefore,e=>ZT(e.id)).sort();return{code:rv.MISSING_IMPLICIT_DEPENDANT,message:`Module "${ZT(e.id)}" that should be implicitly loaded before "${1===t.length?t[0]:`${t.slice(0,-1).join('", "')}" and "${t.slice(-1)[0]}`}" is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function ov(e,t,n){return{code:rv.NAMESPACE_CONFLICT,message:`Conflicting namespaces: ${ZT(t.id)} re-exports '${e}' from both ${ZT(t.exportsAll[e])} and ${ZT(n.exportsAll[e])} (will be ignored)`,name:e,reexporter:t.id,sources:[t.exportsAll[e],n.exportsAll[e]]}}function av(e){return{code:rv.VALIDATION_ERROR,message:e}}function lv(e,t,n){cv(e,t,n.onwarn,n.strictDeprecations)}function cv(e,t,n,r){if(t||r){const t=function(e){return{code:rv.DEPRECATED_FEATURE,..."string"==typeof e?{message:e}:e}}(e);if(r)return tv(t);n(t)}}!function(e){e.ASSET_NOT_FINALISED="ASSET_NOT_FINALISED",e.ASSET_NOT_FOUND="ASSET_NOT_FOUND",e.ASSET_SOURCE_ALREADY_SET="ASSET_SOURCE_ALREADY_SET",e.ASSET_SOURCE_MISSING="ASSET_SOURCE_MISSING",e.BAD_LOADER="BAD_LOADER",e.CANNOT_EMIT_FROM_OPTIONS_HOOK="CANNOT_EMIT_FROM_OPTIONS_HOOK",e.CHUNK_NOT_GENERATED="CHUNK_NOT_GENERATED",e.DEPRECATED_FEATURE="DEPRECATED_FEATURE",e.FILE_NOT_FOUND="FILE_NOT_FOUND",e.FILE_NAME_CONFLICT="FILE_NAME_CONFLICT",e.INPUT_HOOK_IN_OUTPUT_PLUGIN="INPUT_HOOK_IN_OUTPUT_PLUGIN",e.INVALID_CHUNK="INVALID_CHUNK",e.INVALID_EXPORT_OPTION="INVALID_EXPORT_OPTION",e.INVALID_EXTERNAL_ID="INVALID_EXTERNAL_ID",e.INVALID_OPTION="INVALID_OPTION",e.INVALID_PLUGIN_HOOK="INVALID_PLUGIN_HOOK",e.INVALID_ROLLUP_PHASE="INVALID_ROLLUP_PHASE",e.MISSING_IMPLICIT_DEPENDANT="MISSING_IMPLICIT_DEPENDANT",e.MIXED_EXPORTS="MIXED_EXPORTS",e.NAMESPACE_CONFLICT="NAMESPACE_CONFLICT",e.PLUGIN_ERROR="PLUGIN_ERROR",e.PREFER_NAMED_EXPORTS="PREFER_NAMED_EXPORTS",e.UNRESOLVED_ENTRY="UNRESOLVED_ENTRY",e.UNRESOLVED_IMPORT="UNRESOLVED_IMPORT",e.VALIDATION_ERROR="VALIDATION_ERROR",e.EXTERNAL_SYNTHETIC_EXPORTS="EXTERNAL_SYNTHETIC_EXPORTS",e.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT="SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT"}(rv||(rv={}));const uv=/^[a-zA-Z$_][a-zA-Z0-9$_]*$/;function hv(e){return uv.test(e)?"."+e:`['${e}']`}function pv(e){return e.split(".").map(hv).join("")}function dv(e,t,n,r,i){const s=r?"":" ",o=e.split(".");o[0]=("function"==typeof n?n(o[0]):n[o[0]])||o[0];const a=o.pop();let l=t,c=o.map(e=>(l+=hv(e),`${l}${s}=${s}${l}${s}||${s}{}`)).concat(`${l}${hv(a)}`).join(","+s).concat(`${s}=${s}${i}`);return o.length>0&&(c=`(${c})`),c}function fv(e){let t=e.length;for(;t--;){const n=e[t];if(n.exportsDefault||n.exportsNames)return e.slice(0,t+1)}return[]}const mv=e=>"this"+pv(e);function gv({dependencies:e,exports:t}){const n=new Set(t.map(e=>e.exported));n.has("default")||n.add("default");for(const{reexports:t}of e)if(t)for(const e of t)"*"===e.imported||n.has(e.reexported)||n.add(e.reexported);return n}function _v(e,t,n,r){return 0===e.length?"":1===e.length?`${n}${n}${n}exports('${e[0].name}',${t}${e[0].value});${r}${r}`:`${n}${n}${n}exports({${r}`+e.map(({name:e,value:r})=>`${n}${n}${n}${n}${e}:${t}${r}`).join(","+r)+`${r}${n}${n}${n}});${r}${r}`}function Ev(e,t){return e?`${t}${pv(e)}`:"null"}var yv={system:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasExports:i,indentString:s,intro:o,outro:a,usesTopLevelAwait:l,varOrConst:c},u){const h=u.compact?"":"\n",p=u.compact?"":" ",d=n.map(e=>`'${e.id}'`),f=[];let m;const g=[];for(const{imports:e,reexports:t}of n){const i=[];if(e)for(const t of e)f.push(t.local),"*"===t.imported?i.push(`${t.local}${p}=${p}module;`):i.push(`${t.local}${p}=${p}module.${t.imported};`);if(t){let e=!1;if(t.length>1||1===t.length&&("*"===t[0].reexported||"*"===t[0].imported)){for(const o of t)"*"===o.reexported&&(m||(m=gv({dependencies:n,exports:r})),e||(i.push(`${c} _setter${p}=${p}{};`),e=!0),i.push(`for${p}(var _$p${p}in${p}module)${p}{`),i.push(`${s}if${p}(!_starExcludes[_$p])${p}_setter[_$p]${p}=${p}module[_$p];`),i.push("}"));for(const e of t)"*"===e.imported&&"*"!==e.reexported&&i.push(`exports('${e.reexported}',${p}module);`);for(const n of t)"*"!==n.reexported&&"*"!==n.imported&&(e||(i.push(`${c} _setter${p}=${p}{};`),e=!0),i.push(`_setter.${n.reexported}${p}=${p}module.${n.imported};`));e&&i.push("exports(_setter);")}else for(const e of t)i.push(`exports('${e.reexported}',${p}module.${e.imported});`)}g.push(i.join(`${h}${s}${s}${s}`))}const _=u.name?`'${u.name}',${p}`:"",E=t.has("module")?`exports,${p}module`:i?"exports":"";let y=`System.register(${_}[`+d.join(","+p)+`],${p}function${p}(${E})${p}{${h}${s}${u.strict?"'use strict';":""}`+((e,t,n,r,i)=>e?`${i}${r}${t} _starExcludes${n}=${n}{${n}${[...e].map(e=>`${e}:${n}1`).join(","+n)}${n}};`:"")(m,c,p,s,h)+((e,t,n,r)=>e.length?`${r}${n}var ${e.join(","+t)};`:"")(f,p,s,h)+`${h}${s}return${p}{${g.length?`${h}${s}${s}setters:${p}[${g.map(e=>e?`function${p}(module)${p}{${h}${s}${s}${s}${e}${h}${s}${s}}`:u.systemNullSetters?"null":`function${p}()${p}{}`).join(","+p)}],`:""}${h}`;y+=`${s}${s}execute:${p}${l?"async"+p:""}function${p}()${p}{${h}${h}`+((e,t,n,r)=>_v(e.filter(e=>e.hoisted||e.uninitialized).map(e=>({name:e.exported,value:e.uninitialized?"void 0":e.local})),t,n,r))(r,p,s,h);const T=`${h}${h}`+((e,t,n,r)=>_v(e.filter(e=>e.expression).map(e=>({name:e.exported,value:e.local})),t,n,r))(r,p,s,h)+((e,t,n,r)=>_v(e.filter(e=>"_missingExportShim"===e.local).map(e=>({name:e.exported,value:"_missingExportShim"})),t,n,r))(r,p,s,h)+`${s}${s}}${h}${s}}${u.compact?"":";"}${h}});`;return o&&e.prepend(o),a&&e.append(a),e.indent(`${s}${s}${s}`).append(T).prepend(y)},amd:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasExports:i,indentString:s,intro:o,isEntryModuleFacade:a,namedExportsMode:l,outro:c,varOrConst:u,warn:h},p){qT(h,n);const d=n.map(e=>{return`'${t=e.id,"."===t[0]&&t.endsWith(".js")?t.slice(0,-3):t}'`;var t}),f=n.map(e=>e.name),m=p.compact?"":"\n",g=p.compact?"":" ";l&&i&&(f.unshift("exports"),d.unshift("'exports'")),t.has("require")&&(f.unshift("require"),d.unshift("'require'")),t.has("module")&&(f.unshift("module"),d.unshift("'module'"));const _=p.amd||{},E=(_.id?`'${_.id}',${g}`:"")+(d.length?`[${d.join(","+g)}],${g}`:""),y=p.strict?g+"'use strict';":"",T=`${_.define}(${E}function${g}(${f.join(","+g)})${g}{${y}${m}${m}`,v=jT(n,p,u);v&&e.prepend(v+m+m),t.has("_interopNamespace")&&e.prepend(zT(g,m,s,p.externalLiveBindings)),o&&e.prepend(o);const A=GT(r,n,l,p.interop,p.compact,s);return A&&e.append(m+m+A),l&&i&&a&&p.esModule&&e.append(`${m}${m}${p.compact?HT:VT}`),c&&e.append(c),e.indent(s).append(m+m+"});").prepend(T)},cjs:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasExports:i,indentString:s,intro:o,isEntryModuleFacade:a,namedExportsMode:l,outro:c,varOrConst:u},h){const p=h.compact?"":"\n",d=h.compact?"":" ";o=(!1===h.strict?o:`'use strict';${p}${p}${o}`)+(l&&i&&a&&h.esModule?`${h.compact?HT:VT}${p}${p}`:"");let f,m=!1,g=!1;f="";for(const{id:e,namedExportsMode:t,isChunk:r,name:i,reexports:s,imports:o,exportsNames:a,exportsDefault:l}of n)s||o?(f+=h.compact&&g?",":`${f?";"+p:""}${u} `,g=!0,h.interop&&!r&&l&&t?(m=!0,f+=a?`${i}${d}=${d}require('${e}')${h.compact?",":`;\n${u} `}${i}__default${d}=${d}_interopDefault(${i})`:`${i}${d}=${d}_interopDefault(require('${e}'))`):f+=`${i}${d}=${d}require('${e}')`):(f&&(f+=!h.compact||g?";"+p:","),g=!1,f+=`require('${e}')`);if(f&&(f+=";"),m){const e=h.compact?"e":"ex";o+=`function _interopDefault${d}(${e})${d}{${d}return${d}(${e}${d}&&${d}(typeof ${e}${d}===${d}'object')${d}&&${d}'default'${d}in ${e})${d}?${d}${e}['default']${d}:${d}${e}${h.compact?"":"; "}}${p}${p}`}t.has("_interopNamespace")&&(o+=zT(d,p,s,h.externalLiveBindings)),f&&(o+=f+p+p);const _=GT(r,n,l,h.interop,h.compact,s,`module.exports${d}=${d}`);return e.prepend(o),_&&e.append(p+p+_),c&&e.append(c),e},es:function(e,{intro:t,outro:n,dependencies:r,exports:i,varOrConst:s},o){const a=o.compact?"":" ",l=o.compact?"":"\n",c=function(e,t){const n=[];for(const{id:r,reexports:i,imports:s,name:o}of e)if(i||s){if(s){let e=null,i=null;const o=[];for(const t of s)"default"===t.imported?e=t:"*"===t.imported?i=t:o.push(t);i&&n.push(`import${t}*${t}as ${i.local} from${t}'${r}';`),e&&0===o.length?n.push(`import ${e.local} from${t}'${r}';`):o.length>0&&n.push(`import ${e?`${e.local},${t}`:""}{${t}${o.map(e=>e.imported===e.local?e.imported:`${e.imported} as ${e.local}`).join(","+t)}${t}}${t}from${t}'${r}';`)}if(i){let e=null;const a=[],l=[];for(const t of i)"*"===t.reexported?e=t:"*"===t.imported?a.push(t):l.push(t);if(e&&n.push(`export${t}*${t}from${t}'${r}';`),a.length>0){s&&s.some(e=>"*"===e.imported&&e.local===o)||n.push(`import${t}*${t}as ${o} from${t}'${r}';`);for(const e of a)n.push(`export${t}{${t}${o===e.reexported?o:`${o} as ${e.reexported}`} };`)}l.length>0&&n.push(`export${t}{${t}${l.map(e=>e.imported===e.reexported?e.imported:`${e.imported} as ${e.reexported}`).join(","+t)}${t}}${t}from${t}'${r}';`)}}else n.push(`import${t}'${r}';`);return n}(r,a);c.length>0&&(t+=c.join(l)+l+l),t&&e.prepend(t);const u=function(e,t,n){const r=[],i=[];for(const s of e)"default"===s.exported?r.push(`export default ${s.local};`):(s.expression&&r.push(`${n} ${s.local}${t}=${t}${s.expression};`),i.push(s.exported===s.local?s.local:`${s.local} as ${s.exported}`));return i.length&&r.push(`export${t}{${t}${i.join(","+t)}${t}};`),r}(i,a,s);return u.length&&e.append(l+l+u.join(l).trim()),n&&e.append(n),e.trim()},iife:function(e,{dependencies:t,exports:n,hasExports:r,indentString:i,intro:s,namedExportsMode:o,outro:a,varOrConst:l,warn:c},u){const h=u.compact?"":" ",p=u.compact?"":"\n",{extend:d,name:f}=u,m=f&&-1!==f.indexOf("."),g=!d&&!m;if(f&&g&&(Wy(_=f)||jy.has(_)||Ky.test(_)))return tv({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${f}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`});var _;qT(c,t);const E=fv(t),y=E.map(e=>e.globalName||"null"),T=E.map(e=>e.name);r&&!f&&c({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.'}),o&&r&&(d?(y.unshift(`${mv(f)}${h}=${h}${mv(f)}${h}||${h}{}`),T.unshift("exports")):(y.unshift("{}"),T.unshift("exports")));const v=u.strict?`${i}'use strict';${p}${p}`:"";let A=`(function${h}(${T.join(","+h)})${h}{${p}${v}`;!r||d&&o||!f||(A=(g?`${l} ${f}`:mv(f))+`${h}=${h}${A}`),m&&r&&(A=function(e,t,n,r){const i=r?"":" ",s=e.split(".");s[0]=("function"==typeof n?n(s[0]):n[s[0]])||s[0],s.pop();let o="this";return s.map(e=>(o+=hv(e),`${o}${i}=${i}${o}${i}||${i}{}${r?"":";"}`)).join(r?",":"\n")+(r&&s.length?";":"\n")}(f,0,u.globals,u.compact)+A);let b=`${p}${p}}(${y.join(","+h)}));`;!d&&o&&r&&(b=`${p}${p}${i}return exports;${b}`);const S=jT(t,u,l);S&&e.prepend(S+p+p),s&&e.prepend(s);const C=GT(n,t,o,u.interop,u.compact,i);return C&&e.append(p+p+C),a&&e.append(a),e.indent(i).prepend(A).append(b)},umd:function(e,{dependencies:t,exports:n,hasExports:r,indentString:i,intro:s,namedExportsMode:o,outro:a,varOrConst:l,warn:c},u){const h=u.compact?"":" ",p=u.compact?"":"\n",d=u.compact?"f":"factory",f=u.compact?"g":"global";if(r&&!u.name)return tv({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.'});qT(c,t);const m=t.map(e=>`'${e.id}'`),g=t.map(e=>`require('${e.id}')`),_=fv(t),E=_.map(e=>Ev(e.globalName,f)),y=_.map(e=>e.name);o&&(r||u.noConflict)&&(m.unshift("'exports'"),g.unshift("exports"),E.unshift(dv(u.name,f,u.globals,u.compact,(u.extend?`${Ev(u.name,f)}${h}||${h}`:"")+"{}")),y.unshift("exports"));const T=(u.amd.id?`'${u.amd.id}',${h}`:"")+(m.length?`[${m.join(","+h)}],${h}`:""),v=u.amd.define,A=!o&&r?`module.exports${h}=${h}`:"",b=u.strict?`${h}'use strict';${p}`:"";let S;if(u.noConflict){const e=u.compact?"e":"exports";let t;t=!o&&r?`var ${e}${h}=${h}${dv(u.name,f,u.globals,u.compact,`${d}(${E.join(","+h)})`)};`:`var ${e}${h}=${h}${E.shift()};${p}${i}${i}${d}(${[e].concat(E).join(","+h)});`,S=`(function${h}()${h}{${p}${i}${i}var current${h}=${h}${function(e,t,n){const r=e.split(".");let i=t;return r.map(e=>i+=hv(e)).join(`${n}&&${n}`)}(u.name,f,h)};${p}${i}${i}${t}${p}${i}${i}${e}.noConflict${h}=${h}function${h}()${h}{${h}${Ev(u.name,f)}${h}=${h}current;${h}return ${e}${u.compact?"":"; "}};${p}`+i+"}())"}else S=`${d}(${E.join(","+h)})`,!o&&r&&(S=dv(u.name,f,u.globals,u.compact,S));const C=r||!0===u.noConflict&&o||E.length>0,x=C?"this,"+h:"",D=C?`(${f}${h}=${h}typeof globalThis${h}!==${h}'undefined'${h}?${h}globalThis${h}:${h}${f}${h}||${h}self,${h}`:"",N=C?")":"",w=`(function${h}(${C?`${f},${h}`:""}${d})${h}{${p}`+(C?`${i}typeof exports${h}===${h}'object'${h}&&${h}typeof module${h}!==${h}'undefined'${h}?${h}${A}${d}(${g.join(","+h)})${h}:${p}`:"")+`${i}typeof ${v}${h}===${h}'function'${h}&&${h}${v}.amd${h}?${h}${v}(${T}${d})${h}:${p}`+`${i}${D}${S}${N};${p}`+`}(${x}(function${h}(${y.join(", ")})${h}{${b}${p}`,O=p+p+"})));",k=jT(t,u,l);k&&e.prepend(k+p+p),s&&e.prepend(s);const R=GT(n,t,o,u.interop,u.compact,i);return R&&e.append(p+p+R),o&&r&&u.esModule&&e.append(p+p+(u.compact?HT:VT)),a&&e.append(a),e.trim().indent(i).append(O).prepend(w)}};const Tv={ArrayPattern(e,t){for(const n of t.elements)n&&Tv[n.type](e,n)},AssignmentPattern(e,t){Tv[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const n of t.properties)"RestElement"===n.type?Tv.RestElement(e,n):Tv[n.value.type](e,n.value)},RestElement(e,t){Tv[t.argument.type](e,t.argument)}},vv=function(e){const t=[];return Tv[e.type](t,e),t};class Av extends lT{hasEffects(){return!1}initialise(){this.context.addExport(this)}render(e,t,n){e.remove(n.start,n.end)}}Av.prototype.needsBoundaries=!0;class bv extends sT{addDeclaration(e,t,n=null,r){return r?this.parent.addDeclaration(e,t,"function"===r?n:dy,r):super.addDeclaration(e,t,n,!1)}}class Sv extends lT{initialise(){this.directive&&"use strict"!==this.directive&&"Program"===this.parent.type&&this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:`Module level directives cause errors when bundled, '${this.directive}' was ignored.`},this.start)}render(e,t){super.render(e,t),this.included&&this.insertSemicolon(e)}shouldBeIncluded(e){return this.directive&&"use strict"!==this.directive?"Program"!==this.parent.type:super.shouldBeIncluded(e)}}class Cv extends lT{constructor(){super(...arguments),this.directlyIncluded=!1}addImplicitReturnExpressionToScope(){const e=this.body[this.body.length-1];e&&"ReturnStatement"===e.type||this.scope.addReturnExpression(dy)}createScope(e){this.scope=this.parent.preventChildBlockScope?e:new bv(e)}hasEffects(e){if(this.deoptimizeBody)return!0;for(const t of this.body){if(t.hasEffects(e))return!0;if(e.brokenFlow)break}return!1}include(e,t){if(!this.deoptimizeBody||!this.directlyIncluded){this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody&&(t=!0);for(const n of this.body)(t||n.shouldBeIncluded(e))&&n.include(e,t)}}initialise(){const e=this.body[0];this.deoptimizeBody=e instanceof Sv&&"use asm"===e.directive}render(e,t){this.body.length?qE(this.body,e,this.start+1,this.end-1,t):super.render(e,t)}}class xv extends lT{createScope(e){this.scope=new mT(e,this.context)}deoptimizePath(e){1===e.length&&e[0]===iy&&this.scope.getReturnExpression().deoptimizePath(oy)}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.scope.getReturnExpression():dy}hasEffects(){return!1}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){if(e.length>0)return!0;for(const e of this.params)if(e.hasEffects(n))return!0;const{ignore:r,brokenFlow:i}=n;return n.ignore={breaks:!1,continues:!1,labels:new Set,returnAwaitYield:!0},!!this.body.hasEffects(n)||(n.ignore=r,n.brokenFlow=i,!1)}include(e,t){this.included=!0;for(const n of this.params)n instanceof OT||n.include(e,t);const{brokenFlow:n}=e;e.brokenFlow=0,this.body.include(e,t),e.brokenFlow=n}includeCallArguments(e,t){this.scope.includeCallArguments(e,t)}initialise(){this.scope.addParameterVariables(this.params.map(e=>e.declare("parameter",dy)),this.params[this.params.length-1]instanceof kT),this.body instanceof Cv?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body)}parseNode(e){"BlockStatement"===e.body.type&&(this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope)),super.parseNode(e)}}xv.prototype.preventChildBlockScope=!0;const Dv={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>e**t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<":(e,t)=>e<t,"<<":(e,t)=>e<<t,"<=":(e,t)=>e<=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,in:()=>py,instanceof:()=>py,"|":(e,t)=>e|t};class Nv extends lT{getLiteralValueAtPath(e){return e.length>0||null===this.value&&110!==this.context.code.charCodeAt(this.start)||"bigint"==typeof this.value||47===this.context.code.charCodeAt(this.start)?py:this.value}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?dy:$y(this.members,e[0])}hasEffectsWhenAccessedAtPath(e){return null===this.value?e.length>0:e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>0}hasEffectsWhenCalledAtPath(e,t,n){return 1!==e.length||By(this.members,e[0],this.included,t,n)}initialise(){this.members=function(e){switch(typeof e){case"boolean":return Py;case"number":return Ly;case"string":return Fy;default:return Object.create(null)}}(this.value)}parseNode(e){this.value=e.value,this.regex=e.regex,super.parseNode(e)}render(e){"string"==typeof this.value&&e.indentExclusionRanges.push([this.start+1,this.end-1])}}class wv extends lT{constructor(){super(...arguments),this.variable=null,this.bound=!1,this.expressionsToBeDeoptimized=[],this.replacement=null,this.wasPathDeoptimizedWhileOptimized=!1}addExportedVariables(){}bind(){if(this.bound)return;this.bound=!0;const e=function e(t){const n=t.propertyKey,r=t.object;if("string"==typeof n){if(r instanceof OT)return[{key:r.name,pos:r.start},{key:n,pos:t.property.start}];if(r instanceof wv){const i=e(r);return i&&[...i,{key:n,pos:t.property.start}]}}return null}(this),t=e&&this.scope.findVariable(e[0].key);if(t&&t.isNamespace){const n=this.resolveNamespaceVariables(t,e.slice(1));n?"string"==typeof n?this.replacement=n:(n instanceof Vy&&n.module&&n.module.suggestName(e[0].key),this.variable=n,this.scope.addNamespaceMemberAccess(function(e){let t=e[0].key;for(let n=1;n<e.length;n++)t+="."+e[n].key;return t}(e),n)):super.bind()}else super.bind(),this.getPropertyKey()}deoptimizeCache(){const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.propertyKey=iy,this.wasPathDeoptimizedWhileOptimized&&this.object.deoptimizePath(oy);for(const t of e)t.deoptimizeCache()}deoptimizePath(e){if(this.bound||this.bind(),0===e.length&&this.disallowNamespaceReassignment(),this.variable)this.variable.deoptimizePath(e);else{const t=this.getPropertyKey();t===iy?this.object.deoptimizePath(oy):(this.wasPathDeoptimizedWhileOptimized=!0,this.object.deoptimizePath([t,...e]))}}getLiteralValueAtPath(e,t,n){return this.bound||this.bind(),null!==this.variable?this.variable.getLiteralValueAtPath(e,t,n):(this.expressionsToBeDeoptimized.push(n),this.object.getLiteralValueAtPath([this.getPropertyKey(),...e],t,n))}getReturnExpressionWhenCalledAtPath(e,t,n){return this.bound||this.bind(),null!==this.variable?this.variable.getReturnExpressionWhenCalledAtPath(e,t,n):(this.expressionsToBeDeoptimized.push(n),this.object.getReturnExpressionWhenCalledAtPath([this.getPropertyKey(),...e],t,n))}hasEffects(e){return this.property.hasEffects(e)||this.object.hasEffects(e)||this.context.options.treeshake.propertyReadSideEffects&&this.object.hasEffectsWhenAccessedAtPath([this.propertyKey],e)}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null!==this.variable?this.variable.hasEffectsWhenAccessedAtPath(e,t):this.object.hasEffectsWhenAccessedAtPath([this.propertyKey,...e],t))}hasEffectsWhenAssignedAtPath(e,t){return null!==this.variable?this.variable.hasEffectsWhenAssignedAtPath(e,t):this.object.hasEffectsWhenAssignedAtPath([this.propertyKey,...e],t)}hasEffectsWhenCalledAtPath(e,t,n){return null!==this.variable?this.variable.hasEffectsWhenCalledAtPath(e,t,n):this.object.hasEffectsWhenCalledAtPath([this.propertyKey,...e],t,n)}include(e,t){this.included||(this.included=!0,null!==this.variable&&this.context.includeVariable(this.variable)),this.object.include(e,t),this.property.include(e,t)}includeCallArguments(e,t){this.variable?this.variable.includeCallArguments(e,t):super.includeCallArguments(e,t)}initialise(){var e,t;this.propertyKey=(e=this).computed?(t=e.property)instanceof Nv?String(t.value):null:e.property.name}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r}=_T){const i="CallExpression"===n&&r;if(this.variable||this.replacement){let t=this.variable?this.variable.getName():this.replacement;i&&(t="0, "+t),e.overwrite(this.start,this.end,t,{contentOnly:!0,storeName:!0})}else i&&e.appendRight(this.start,"0, "),super.render(e,t)}disallowNamespaceReassignment(){this.object instanceof OT&&this.scope.findVariable(this.object.name).isNamespace&&(this.variable&&this.context.includeVariable(this.variable),this.context.warn({code:"ILLEGAL_NAMESPACE_REASSIGNMENT",message:`Illegal reassignment to import '${this.object.name}'`},this.start))}getPropertyKey(){if(null===this.propertyKey){this.propertyKey=iy;const e=this.property.getLiteralValueAtPath(sy,cy,this);return this.propertyKey=e===py?iy:String(e)}return this.propertyKey}resolveNamespaceVariables(e,t){if(0===t.length)return e;if(!e.isNamespace)return null;const n=t[0].key,r=e instanceof Vy?e.module.getVariableForExportName(n):e.context.traceExport(n);if(!r){const r=e instanceof Vy?e.module.id:e.context.fileName;return this.context.warn({code:"MISSING_EXPORT",exporter:ZT(r),importer:ZT(this.context.fileName),message:`'${n}' is not exported by '${ZT(r)}'`,missing:n,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"},t[0].pos),"undefined"}return this.resolveNamespaceVariables(r,t.slice(1))}}class Ov extends fT{addDeclaration(e,t,n,r){return r?this.parent.addDeclaration(e,t,n,r):super.addDeclaration(e,t,n,!1)}}class kv extends lT{createScope(e){this.scope=new Ov(e,this.context)}initialise(){this.param&&this.param.declare("parameter",dy)}parseNode(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope),super.parseNode(e)}}kv.prototype.preventChildBlockScope=!0;class Rv extends sT{findLexicalBoundary(){return this}}class Iv extends lT{hasEffects(e){return this.key.hasEffects(e)}hasEffectsWhenCalledAtPath(e,t,n){return e.length>0||this.value.hasEffectsWhenCalledAtPath(sy,t,n)}}class Mv{constructor(e){this.included=!1,this.expressions=e}deoptimizePath(e){for(const t of this.expressions)t.deoptimizePath(e)}getLiteralValueAtPath(){return py}getReturnExpressionWhenCalledAtPath(e,t,n){return new Mv(this.expressions.map(r=>r.getReturnExpressionWhenCalledAtPath(e,t,n)))}hasEffectsWhenAccessedAtPath(e,t){for(const n of this.expressions)if(n.hasEffectsWhenAccessedAtPath(e,t))return!0;return!1}hasEffectsWhenAssignedAtPath(e,t){for(const n of this.expressions)if(n.hasEffectsWhenAssignedAtPath(e,t))return!0;return!1}hasEffectsWhenCalledAtPath(e,t,n){for(const r of this.expressions)if(r.hasEffectsWhenCalledAtPath(e,t,n))return!0;return!1}include(e,t){for(const n of this.expressions)n.included||n.include(e,t)}includeCallArguments(){}}class Pv extends lT{bind(){null!==this.declaration&&this.declaration.bind()}hasEffects(e){return null!==this.declaration&&this.declaration.hasEffects(e)}initialise(){this.context.addExport(this)}render(e,t,n){const{start:r,end:i}=n;null===this.declaration?e.remove(r,i):(e.remove(this.start,this.declaration.start),this.declaration.render(e,t,{start:r,end:i}))}}Pv.prototype.needsBoundaries=!0;const Lv=Symbol("unset");class Fv extends lT{bind(){}hasEffects(){return!1}initialise(){this.context.addImport(this)}render(e,t,n){e.remove(n.start,n.end)}}Fv.prototype.needsBoundaries=!0;const Bv="ROLLUP_ASSET_URL_",$v="ROLLUP_FILE_URL_",Uv={amd:["document","module","URL"],cjs:["document","require","URL"],iife:["document","URL"],system:["module"],umd:["document","require","URL"]},Vv={amd:["document","require","URL"],cjs:["document","require","URL"],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},Hv=(e,t="URL")=>`new ${t}(${e}).href`,Gv=e=>Hv(`'${e}', document.currentScript && document.currentScript.src || document.baseURI`),jv=e=>(t,n)=>{const r=e(n);return null===t?`({ url: ${r} })`:"url"===t?r:"undefined"},Kv=e=>`(document.currentScript && document.currentScript.src || new URL('${e}', document.baseURI).href)`,Wv={amd:e=>("."!==e[0]&&(e="./"+e),Hv(`require.toUrl('${e}'), document.baseURI`)),cjs:e=>`(typeof document === 'undefined' ? ${Hv(`'file:' + __dirname + '/${e}'`,"(require('u' + 'rl').URL)")} : ${Gv(e)})`,es:e=>Hv(`'${e}', import.meta.url`),iife:e=>Gv(e),system:e=>Hv(`'${e}', module.meta.url`),umd:e=>`(typeof document === 'undefined' ? ${Hv(`'file:' + __dirname + '/${e}'`,"(require('u' + 'rl').URL)")} : ${Gv(e)})`},zv={amd:jv(()=>Hv("module.uri, document.baseURI")),cjs:jv(e=>`(typeof document === 'undefined' ? ${Hv("'file:' + __filename","(require('u' + 'rl').URL)")} : ${Kv(e)})`),iife:jv(e=>Kv(e)),system:e=>null===e?"module.meta":"module.meta."+e,umd:jv(e=>`(typeof document === 'undefined' ? ${Hv("'file:' + __filename","(require('u' + 'rl').URL)")} : ${Kv(e)})`)};class Xv extends lT{constructor(){super(...arguments),this.hasCachedEffect=!1}hasEffects(e){if(this.hasCachedEffect)return!0;for(const t of this.body)if(t.hasEffects(e))return this.hasCachedEffect=!0;return!1}include(e,t){this.included=!0;for(const n of this.body)(t||n.shouldBeIncluded(e))&&n.include(e,t)}render(e,t){this.body.length?qE(this.body,e,this.start,this.end,t):super.render(e,t)}}class qv extends lT{hasEffects(e){if(this.test&&this.test.hasEffects(e))return!0;for(const t of this.consequent){if(e.brokenFlow)break;if(t.hasEffects(e))return!0}return!1}include(e,t){this.included=!0,this.test&&this.test.include(e,t);for(const n of this.consequent)(t||n.shouldBeIncluded(e))&&n.include(e,t)}render(e,t,n){if(this.consequent.length){this.test&&this.test.render(e,t);const r=this.test?this.test.end:KE(e.original,"default",this.start)+7,i=KE(e.original,":",r)+1;qE(this.consequent,e,i,n.end,t)}else super.render(e,t)}}qv.prototype.needsBoundaries=!0;class Yv extends lT{getLiteralValueAtPath(e){return e.length>0||1!==this.quasis.length?py:this.quasis[0].value.cooked}render(e,t){e.indentExclusionRanges.push([this.start,this.end]),super.render(e,t)}}class Qv extends sT{constructor(e,t){super(e),this.context=t,this.variables.set("this",new rT("this",null,fy,t))}addExportDefaultDeclaration(e,t,n){const r=new LT(e,t,n);return this.variables.set("default",r),r}addNamespaceMemberAccess(e,t){t instanceof wT&&this.accessedOutsideVariables.set(t.name,t)}deconflict(e,t){for(const n of this.children)n.deconflict(e,t)}findLexicalBoundary(){return this}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const n=this.context.traceVariable(e)||this.parent.findVariable(e);return n instanceof wT&&this.accessedOutsideVariables.set(e,n),n}}const Jv={"!":e=>!e,"+":e=>+e,"-":e=>-e,delete:()=>py,typeof:e=>typeof e,void:()=>{},"~":e=>~e};function Zv(e,t){return null!==e.renderBaseName&&t.has(e)&&e.isReassigned}class eA extends lT{deoptimizePath(){for(const e of this.declarations)e.deoptimizePath(sy)}hasEffectsWhenAssignedAtPath(){return!1}include(e,t){this.included=!0;for(const n of this.declarations)(t||n.shouldBeIncluded(e))&&n.include(e,t)}includeWithAllDeclaredVariables(e,t){this.included=!0;for(const n of this.declarations)n.include(t,e)}initialise(){for(const e of this.declarations)e.declareDeclarator(this.kind)}render(e,t,n=_T){if(function(e,t){for(const n of e){if(!n.included)return!1;if("Identifier"===n.id.type){if(t.has(n.id.variable))return!1}else{const e=[];if(n.id.addExportedVariables(e,t),e.length>0)return!1}}return!0}(this.declarations,t.exportNamesByVariable)){for(const n of this.declarations)n.render(e,t);n.isNoStatement||59===e.original.charCodeAt(this.end-1)||e.appendLeft(this.end,";")}else this.renderReplacedDeclarations(e,t,n)}renderDeclarationEnd(e,t,n,r,i,s,o,a){59===e.original.charCodeAt(this.end-1)&&e.remove(this.end-1,this.end),s&&(t+=";"),null!==n?(10!==e.original.charCodeAt(r-1)||10!==e.original.charCodeAt(this.end)&&13!==e.original.charCodeAt(this.end)||(r--,13===e.original.charCodeAt(r)&&r--),r===n+1?e.overwrite(n,i,t):(e.overwrite(n,n+1,t),e.remove(r,i))):e.appendLeft(i,t),o.length>0&&e.appendLeft(i,` ${JE(o,a)};`)}renderReplacedDeclarations(e,t,{start:n=this.start,end:r=this.end,isNoStatement:i}){const s=YE(this.declarations,e,this.start+this.kind.length,this.end-(59===e.original.charCodeAt(this.end-1)?1:0));let o,a;a=/\n\s*$/.test(e.slice(this.start,s[0].start))?this.start+this.kind.length:s[0].start;let l=a-1;e.remove(this.start,l);let c,u,h=!1,p=!1,d="";const f=[];for(const{node:n,start:r,separator:i,contentEnd:m,end:g}of s)if(!n.included||n.id instanceof OT&&Zv(n.id.variable,t.exportNamesByVariable)&&null===n.init)e.remove(r,g);else{if(c="",u="",n.id instanceof OT&&Zv(n.id.variable,t.exportNamesByVariable))p&&(d+=";"),h=!1;else{if("system"===t.format&&null!==n.init)if("Identifier"!==n.id.type)n.id.addExportedVariables(f,t.exportNamesByVariable);else{const r=t.exportNamesByVariable.get(n.id.variable);if(r){const i=t.compact?"":" ",s=KE(e.original,"=",n.id.end);e.prependLeft(zE(e.original,s+1),1===r.length?`exports('${r[0]}',${i}`:ZE([n.id.variable],!1,t)),u+=")"}}h?d+=",":(p&&(d+=";"),c+=this.kind+" ",h=!0)}a===l+1?e.overwrite(l,a,d+c):(e.overwrite(l,l+1,d),e.appendLeft(a,c)),n.render(e,t),o=m,a=g,p=!0,l=i,d=u}p?this.renderDeclarationEnd(e,d,l,o,a,!i,f,t):e.remove(n,r)}}const tA={ArrayExpression:class extends lT{bind(){super.bind();for(const e of this.elements)null!==e&&e.deoptimizePath(oy)}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?dy:$y(My,e[0])}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){return 1!==e.length||By(My,e[0],this.included,t,n)}},ArrayPattern:class extends lT{addExportedVariables(e,t){for(const n of this.elements)null!==n&&n.addExportedVariables(e,t)}declare(e){const t=[];for(const n of this.elements)null!==n&&t.push(...n.declare(e,dy));return t}deoptimizePath(e){if(0===e.length)for(const t of this.elements)null!==t&&t.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){if(e.length>0)return!0;for(const e of this.elements)if(null!==e&&e.hasEffectsWhenAssignedAtPath(sy,t))return!0;return!1}},ArrowFunctionExpression:xv,AssignmentExpression:class extends lT{constructor(){super(...arguments),this.deoptimized=!1}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.right.hasEffects(e)||this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(sy,e)}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.right.hasEffectsWhenAccessedAtPath(e,t)}include(e,t){this.deoptimized||this.applyDeoptimizations(),this.included=!0,this.left.include(e,t),this.right.include(e,t)}render(e,t){if(this.left.render(e,t),this.right.render(e,t),"system"===t.format){const n=this.left.variable&&t.exportNamesByVariable.get(this.left.variable);if("Identifier"===this.left.type&&n){const r=t.compact?"":" ",i=KE(e.original,this.operator,this.left.end),s=this.operator.length>1?`${n[0]}${r}${this.operator.slice(0,-1)}${r}`:"";e.overwrite(i,zE(e.original,i+this.operator.length),`=${r}${1===n.length?`exports('${n[0]}',${r}`:ZE([this.left.variable],!1,t)}${s}`),e.appendLeft(this.right.end,")")}else{const n=[];this.left.addExportedVariables(n,t.exportNamesByVariable),n.length>0&&(e.prependRight(this.start,ZE(n,!0,t)),e.appendLeft(this.end,")"))}}}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(sy),this.right.deoptimizePath(oy)}},AssignmentPattern:class extends lT{addExportedVariables(e,t){this.left.addExportedVariables(e,t)}bind(){super.bind(),this.left.deoptimizePath(sy),this.right.deoptimizePath(oy)}declare(e,t){return this.left.declare(e,t)}deoptimizePath(e){0===e.length&&this.left.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){return e.length>0||this.left.hasEffectsWhenAssignedAtPath(sy,t)}render(e,t,{isShorthandProperty:n}=_T){this.left.render(e,t,{isShorthandProperty:n}),this.right.render(e,t)}},AwaitExpression:class extends lT{hasEffects(e){return!e.ignore.returnAwaitYield||this.argument.hasEffects(e)}include(e,t){if(!this.included){this.included=!0;e:if(!this.context.usesTopLevelAwait){let e=this.parent;do{if(e instanceof RT||e instanceof xv)break e}while(e=e.parent);this.context.usesTopLevelAwait=!0}}this.argument.include(e,t)}},BinaryExpression:class extends lT{deoptimizeCache(){}getLiteralValueAtPath(e,t,n){if(e.length>0)return py;const r=this.left.getLiteralValueAtPath(sy,t,n);if(r===py)return py;const i=this.right.getLiteralValueAtPath(sy,t,n);if(i===py)return py;const s=Dv[this.operator];return s?s(r,i):py}hasEffects(e){return"+"===this.operator&&this.parent instanceof Sv&&""===this.left.getLiteralValueAtPath(sy,cy,this)||super.hasEffects(e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}},BlockStatement:Cv,BreakStatement:class extends lT{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name),e.brokenFlow=2}else{if(!e.ignore.breaks)return!0;e.brokenFlow=1}return!1}include(e){this.included=!0,this.label&&(this.label.include(),e.includedLabels.add(this.label.name)),e.brokenFlow=this.label?2:1}},CallExpression:class extends lT{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.returnExpression=null,this.wasPathDeoptmizedWhileOptimized=!1}bind(){super.bind(),this.callee instanceof OT&&(this.scope.findVariable(this.callee.name).isNamespace&&this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${this.callee.name}')`},this.start),"eval"===this.callee.name&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start)),this.getReturnExpression(cy),this.callee instanceof wv&&!this.callee.variable&&this.callee.object.deoptimizePath(oy);for(const e of this.arguments)e.deoptimizePath(oy)}deoptimizeCache(){if(this.returnExpression!==dy){this.returnExpression=null;const e=this.getReturnExpression(cy),t=this.expressionsToBeDeoptimized;e!==dy&&(this.expressionsToBeDeoptimized=[],this.wasPathDeoptmizedWhileOptimized&&(e.deoptimizePath(oy),this.wasPathDeoptmizedWhileOptimized=!1));for(const e of t)e.deoptimizeCache()}}deoptimizePath(e){if(0===e.length)return;const t=this.context.deoptimizationTracker.getEntities(e);if(t.has(this))return;t.add(this);const n=this.getReturnExpression(cy);n!==dy&&(this.wasPathDeoptmizedWhileOptimized=!0,n.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){const r=this.getReturnExpression(t);if(r===dy)return py;const i=t.getEntities(e);if(i.has(r))return py;this.expressionsToBeDeoptimized.push(n),i.add(r);const s=r.getLiteralValueAtPath(e,t,n);return i.delete(r),s}getReturnExpressionWhenCalledAtPath(e,t,n){const r=this.getReturnExpression(t);if(this.returnExpression===dy)return dy;const i=t.getEntities(e);if(i.has(r))return dy;this.expressionsToBeDeoptimized.push(n),i.add(r);const s=r.getReturnExpressionWhenCalledAtPath(e,t,n);return i.delete(r),s}hasEffects(e){for(const t of this.arguments)if(t.hasEffects(e))return!0;return(!this.context.options.treeshake.annotations||!this.annotatedPure)&&(this.callee.hasEffects(e)||this.callee.hasEffectsWhenCalledAtPath(sy,this.callOptions,e))}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;const n=t.accessed.getEntities(e);return!n.has(this)&&(n.add(this),this.returnExpression.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){if(0===e.length)return!0;const n=t.assigned.getEntities(e);return!n.has(this)&&(n.add(this),this.returnExpression.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,n){const r=(t.withNew?n.instantiated:n.called).getEntities(e,t);return!r.has(this)&&(r.add(this),this.returnExpression.hasEffectsWhenCalledAtPath(e,t,n))}include(e,t){t?(super.include(e,t),"variables"===t&&this.callee instanceof OT&&this.callee.variable&&this.callee.variable.markCalledFromTryStatement()):(this.included=!0,this.callee.include(e,!1)),this.callee.includeCallArguments(e,this.arguments),this.returnExpression.included||this.returnExpression.include(e,!1)}initialise(){this.callOptions={args:this.arguments,withNew:!1}}render(e,t,{renderedParentType:n}=_T){if(this.callee.render(e,t),this.arguments.length>0)if(this.arguments[this.arguments.length-1].included)for(const n of this.arguments)n.render(e,t);else{let n=this.arguments.length-2;for(;n>=0&&!this.arguments[n].included;)n--;if(n>=0){for(let r=0;r<=n;r++)this.arguments[r].render(e,t);e.remove(KE(e.original,",",this.arguments[n].end),this.end-1)}else e.remove(KE(e.original,"(",this.callee.end)+1,this.end-1)}"ExpressionStatement"===n&&"FunctionExpression"===this.callee.type&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}getReturnExpression(e){return null===this.returnExpression?(this.returnExpression=dy,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(sy,e,this)):this.returnExpression}},CatchClause:kv,ChainExpression:class extends lT{},ClassBody:class extends lT{createScope(e){this.scope=new Rv(e)}hasEffectsWhenCalledAtPath(e,t,n){return e.length>0||null!==this.classConstructor&&this.classConstructor.hasEffectsWhenCalledAtPath(sy,t,n)}initialise(){for(const e of this.body)if(e instanceof Iv&&"constructor"===e.kind)return void(this.classConstructor=e);this.classConstructor=null}},ClassDeclaration:uT,ClassExpression:class extends cT{},ConditionalExpression:class extends lT{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null,this.wasPathDeoptimizedWhileOptimized=!1}bind(){super.bind(),this.getUsedBranch()}deoptimizeCache(){if(null!==this.usedBranch){const e=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null;const t=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.wasPathDeoptimizedWhileOptimized&&e.deoptimizePath(oy);for(const e of t)e.deoptimizeCache()}}deoptimizePath(e){if(e.length>0){const t=this.getUsedBranch();null===t?(this.consequent.deoptimizePath(e),this.alternate.deoptimizePath(e)):(this.wasPathDeoptimizedWhileOptimized=!0,t.deoptimizePath(e))}}getLiteralValueAtPath(e,t,n){const r=this.getUsedBranch();return null===r?py:(this.expressionsToBeDeoptimized.push(n),r.getLiteralValueAtPath(e,t,n))}getReturnExpressionWhenCalledAtPath(e,t,n){const r=this.getUsedBranch();return null===r?new Mv([this.consequent.getReturnExpressionWhenCalledAtPath(e,t,n),this.alternate.getReturnExpressionWhenCalledAtPath(e,t,n)]):(this.expressionsToBeDeoptimized.push(n),r.getReturnExpressionWhenCalledAtPath(e,t,n))}hasEffects(e){return!!this.test.hasEffects(e)||(null===this.usedBranch?this.consequent.hasEffects(e)||this.alternate.hasEffects(e):this.usedBranch.hasEffects(e))}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null===this.usedBranch?this.consequent.hasEffectsWhenAccessedAtPath(e,t)||this.alternate.hasEffectsWhenAccessedAtPath(e,t):this.usedBranch.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||(null===this.usedBranch?this.consequent.hasEffectsWhenAssignedAtPath(e,t)||this.alternate.hasEffectsWhenAssignedAtPath(e,t):this.usedBranch.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,n){return null===this.usedBranch?this.consequent.hasEffectsWhenCalledAtPath(e,t,n)||this.alternate.hasEffectsWhenCalledAtPath(e,t,n):this.usedBranch.hasEffectsWhenCalledAtPath(e,t,n)}include(e,t){this.included=!0,t||this.test.shouldBeIncluded(e)||null===this.usedBranch?(this.test.include(e,t),this.consequent.include(e,t),this.alternate.include(e,t)):this.usedBranch.include(e,t)}includeCallArguments(e,t){null===this.usedBranch?(this.consequent.includeCallArguments(e,t),this.alternate.includeCallArguments(e,t)):this.usedBranch.includeCallArguments(e,t)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r,preventASI:i}=_T){if(this.test.included)super.render(e,t);else{const s=KE(e.original,":",this.consequent.end),o=(this.consequent.included?KE(e.original,"?",this.test.end):s)+1;i&&QE(e,o,this.usedBranch.start),e.remove(this.start,o),this.consequent.included&&e.remove(s,this.end),GE(this,e),this.usedBranch.render(e,t,{isCalleeOfRenderedParent:n?r:this.parent.callee===this,renderedParentType:n||this.parent.type})}}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;const e=this.test.getLiteralValueAtPath(sy,cy,this);return e===py?null:this.usedBranch=e?this.consequent:this.alternate}},ContinueStatement:class extends lT{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name),e.brokenFlow=2}else{if(!e.ignore.continues)return!0;e.brokenFlow=1}return!1}include(e){this.included=!0,this.label&&(this.label.include(),e.includedLabels.add(this.label.name)),e.brokenFlow=this.label?2:1}},DoWhileStatement:class extends lT{hasEffects(e){if(this.test.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:n,continues:r}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=n,e.ignore.continues=r,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.test.include(e,t);const{brokenFlow:n}=e;this.body.include(e,t),e.brokenFlow=n}},EmptyStatement:class extends lT{hasEffects(){return!1}},ExportAllDeclaration:Av,ExportDefaultDeclaration:MT,ExportNamedDeclaration:Pv,ExportSpecifier:class extends lT{},ExpressionStatement:Sv,FieldDefinition:class extends lT{hasEffects(e){return this.key.hasEffects(e)||this.static&&null!==this.value&&this.value.hasEffects(e)}},ForInStatement:class extends lT{bind(){this.left.bind(),this.left.deoptimizePath(sy),this.right.bind(),this.body.bind()}createScope(e){this.scope=new bv(e)}hasEffects(e){if(this.left&&(this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(sy,e))||this.right&&this.right.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:n,continues:r}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=n,e.ignore.continues=r,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.left.includeWithAllDeclaredVariables(t,e),this.left.deoptimizePath(sy),this.right.include(e,t);const{brokenFlow:n}=e;this.body.include(e,t),e.brokenFlow=n}render(e,t){this.left.render(e,t,jE),this.right.render(e,t,jE),110===e.original.charCodeAt(this.right.start-1)&&e.prependLeft(this.right.start," "),this.body.render(e,t)}},ForOfStatement:class extends lT{bind(){this.left.bind(),this.left.deoptimizePath(sy),this.right.bind(),this.body.bind()}createScope(e){this.scope=new bv(e)}hasEffects(){return!0}include(e,t){this.included=!0,this.left.includeWithAllDeclaredVariables(t,e),this.left.deoptimizePath(sy),this.right.include(e,t);const{brokenFlow:n}=e;this.body.include(e,t),e.brokenFlow=n}render(e,t){this.left.render(e,t,jE),this.right.render(e,t,jE),102===e.original.charCodeAt(this.right.start-1)&&e.prependLeft(this.right.start," "),this.body.render(e,t)}},ForStatement:class extends lT{createScope(e){this.scope=new bv(e)}hasEffects(e){if(this.init&&this.init.hasEffects(e)||this.test&&this.test.hasEffects(e)||this.update&&this.update.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:n,continues:r}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=n,e.ignore.continues=r,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.init&&this.init.include(e,t),this.test&&this.test.include(e,t);const{brokenFlow:n}=e;this.update&&this.update.include(e,t),this.body.include(e,t),e.brokenFlow=n}render(e,t){this.init&&this.init.render(e,t,jE),this.test&&this.test.render(e,t,jE),this.update&&this.update.render(e,t,jE),this.body.render(e,t)}},FunctionDeclaration:IT,FunctionExpression:class extends RT{},Identifier:OT,IfStatement:class extends lT{constructor(){super(...arguments),this.testValue=Lv}deoptimizeCache(){this.testValue=py}hasEffects(e){if(this.test.hasEffects(e))return!0;const t=this.getTestValue();if(t===py){const{brokenFlow:t}=e;if(this.consequent.hasEffects(e))return!0;const n=e.brokenFlow;return e.brokenFlow=t,null!==this.alternate&&(!!this.alternate.hasEffects(e)||(e.brokenFlow=e.brokenFlow<n?e.brokenFlow:n,!1))}return t?this.consequent.hasEffects(e):null!==this.alternate&&this.alternate.hasEffects(e)}include(e,t){if(this.included=!0,t)this.includeRecursively(t,e);else{const t=this.getTestValue();t===py?this.includeUnknownTest(e):this.includeKnownTest(e,t)}}render(e,t){const n=this.getTestValue();if(this.test.included||(n?null!==this.alternate&&this.alternate.included:this.consequent.included))this.test.included?this.test.render(e,t):e.overwrite(this.test.start,this.test.end,n?"true":"false"),this.consequent.included?this.consequent.render(e,t):e.overwrite(this.consequent.start,this.consequent.end,";"),null!==this.alternate&&(this.alternate.included?(101===e.original.charCodeAt(this.alternate.start-1)&&e.prependLeft(this.alternate.start," "),this.alternate.render(e,t)):e.remove(this.consequent.end,this.alternate.end));else{const r=n?this.consequent:this.alternate;e.remove(this.start,r.start),e.remove(r.end,this.end),GE(this,e),r.render(e,t)}}getTestValue(){return this.testValue===Lv?this.testValue=this.test.getLiteralValueAtPath(sy,cy,this):this.testValue}includeKnownTest(e,t){this.test.shouldBeIncluded(e)&&this.test.include(e,!1),t&&this.consequent.shouldBeIncluded(e)&&this.consequent.include(e,!1),null!==this.alternate&&!t&&this.alternate.shouldBeIncluded(e)&&this.alternate.include(e,!1)}includeRecursively(e,t){this.test.include(t,e),this.consequent.include(t,e),null!==this.alternate&&this.alternate.include(t,e)}includeUnknownTest(e){this.test.include(e,!1);const{brokenFlow:t}=e;let n=0;this.consequent.shouldBeIncluded(e)&&(this.consequent.include(e,!1),n=e.brokenFlow,e.brokenFlow=t),null!==this.alternate&&this.alternate.shouldBeIncluded(e)&&(this.alternate.include(e,!1),e.brokenFlow=e.brokenFlow<n?e.brokenFlow:n)}},ImportDeclaration:Fv,ImportDefaultSpecifier:class extends lT{},ImportExpression:class extends lT{constructor(){super(...arguments),this.inlineNamespace=null,this.exportMode="auto",this.resolution=null}hasEffects(){return!0}include(e,t){this.included||(this.included=!0,this.context.includeDynamicImport(this),this.scope.addAccessedDynamicImport(this)),this.source.include(e,t)}initialise(){this.context.addDynamicImport(this)}render(e,t){if(this.inlineNamespace){const n=t.compact?"":" ",r=t.compact?"":";";return void e.overwrite(this.start,this.end,`Promise.resolve().then(function${n}()${n}{${n}return ${this.inlineNamespace.getName()}${r}${n}})`)}const n=this.getDynamicImportMechanism(t);n&&(e.overwrite(this.start,KE(e.original,"(",this.start+6)+1,n.left),e.overwrite(this.end-1,this.end,n.right)),this.source.render(e,t)}renderFinalResolution(e,t,n,r){if(e.overwrite(this.source.start,this.source.end,t),n){const t=r.compact?"":" ",i=r.compact?"":";";e.prependLeft(this.end,`.then(function${t}(n)${t}{${t}return n.${n}${i}${t}})`)}}setExternalResolution(e,t){this.exportMode=e,this.resolution=t,this.scope.addAccessedGlobalsByFormat({amd:["require"],cjs:["require"],system:["module"]}),"auto"===e&&this.scope.addAccessedGlobalsByFormat({amd:["_interopNamespace"],cjs:["_interopNamespace"]})}setInternalResolution(e){this.inlineNamespace=e}getDynamicImportMechanism(e){const t=e.outputPluginDriver.hookFirstSync("renderDynamicImport",[{customResolution:"string"==typeof this.resolution?this.resolution:null,format:e.format,moduleId:this.context.module.id,targetModuleId:this.resolution&&"string"!=typeof this.resolution?this.resolution.id:null}]);if(t)return t;switch(e.format){case"cjs":{const t=e.compact?"":" ",n=e.compact?"":";",r=`Promise.resolve().then(function${t}()${t}{${t}return`;switch(this.exportMode){case"default":return{left:`${r}${t}{${t}'default':${t}require(`,right:`)${t}}${n}${t}})`};case"auto":return{left:r+" _interopNamespace(require(",right:`))${n}${t}})`};default:return{left:r+" require(",right:`)${n}${t}})`}}}case"amd":{const t=e.compact?"":" ",n=e.compact?"c":"resolve",r=e.compact?"e":"reject";return{left:`new Promise(function${t}(${n},${t}${r})${t}{${t}require([`,right:`],${t}${"default"===this.exportMode?`function${t}(m)${t}{${t}${n}({${t}'default':${t}m${t}});${t}}`:"auto"===this.exportMode?`function${t}(m)${t}{${t}${n}(_interopNamespace(m));${t}}`:n},${t}${r})${t}})`}}case"system":return{left:"module.import(",right:")"};case"es":if(e.dynamicImportFunction)return{left:e.dynamicImportFunction+"(",right:")"}}return null}},ImportNamespaceSpecifier:class extends lT{},ImportSpecifier:class extends lT{},LabeledStatement:class extends lT{hasEffects(e){const t=e.brokenFlow;return e.ignore.labels.add(this.label.name),!!this.body.hasEffects(e)||(e.ignore.labels.delete(this.label.name),e.includedLabels.has(this.label.name)&&(e.includedLabels.delete(this.label.name),e.brokenFlow=t),!1)}include(e,t){this.included=!0;const n=e.brokenFlow;this.body.include(e,t),(t||e.includedLabels.has(this.label.name))&&(this.label.include(),e.includedLabels.delete(this.label.name),e.brokenFlow=n)}render(e,t){this.label.included?this.label.render(e,t):e.remove(this.start,KE(e.original,":",this.label.end)+1),this.body.render(e,t)}},Literal:Nv,LogicalExpression:class extends lT{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.unusedBranch=null,this.usedBranch=null,this.wasPathDeoptimizedWhileOptimized=!1}bind(){super.bind(),this.getUsedBranch()}deoptimizeCache(){if(null!==this.usedBranch){this.usedBranch=null;const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.wasPathDeoptimizedWhileOptimized&&this.unusedBranch.deoptimizePath(oy);for(const t of e)t.deoptimizeCache()}}deoptimizePath(e){const t=this.getUsedBranch();null===t?(this.left.deoptimizePath(e),this.right.deoptimizePath(e)):(this.wasPathDeoptimizedWhileOptimized=!0,t.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){const r=this.getUsedBranch();return null===r?py:(this.expressionsToBeDeoptimized.push(n),r.getLiteralValueAtPath(e,t,n))}getReturnExpressionWhenCalledAtPath(e,t,n){const r=this.getUsedBranch();return null===r?new Mv([this.left.getReturnExpressionWhenCalledAtPath(e,t,n),this.right.getReturnExpressionWhenCalledAtPath(e,t,n)]):(this.expressionsToBeDeoptimized.push(n),r.getReturnExpressionWhenCalledAtPath(e,t,n))}hasEffects(e){return!!this.left.hasEffects(e)||this.usedBranch!==this.left&&this.right.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null===this.usedBranch?this.left.hasEffectsWhenAccessedAtPath(e,t)||this.right.hasEffectsWhenAccessedAtPath(e,t):this.usedBranch.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||(null===this.usedBranch?this.left.hasEffectsWhenAssignedAtPath(e,t)||this.right.hasEffectsWhenAssignedAtPath(e,t):this.usedBranch.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,n){return null===this.usedBranch?this.left.hasEffectsWhenCalledAtPath(e,t,n)||this.right.hasEffectsWhenCalledAtPath(e,t,n):this.usedBranch.hasEffectsWhenCalledAtPath(e,t,n)}include(e,t){this.included=!0,t||this.usedBranch===this.right&&this.left.shouldBeIncluded(e)||null===this.usedBranch?(this.left.include(e,t),this.right.include(e,t)):this.usedBranch.include(e,t)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r,preventASI:i}=_T){if(this.left.included&&this.right.included)super.render(e,t);else{const s=KE(e.original,this.operator,this.left.end);this.right.included?(e.remove(this.start,s+2),i&&QE(e,s+2,this.right.start)):e.remove(s,this.end),GE(this,e),this.usedBranch.render(e,t,{isCalleeOfRenderedParent:n?r:this.parent.callee===this,renderedParentType:n||this.parent.type})}}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;const e=this.left.getLiteralValueAtPath(sy,cy,this);if(e===py)return null;"||"===this.operator&&e||"&&"===this.operator&&!e||"??"===this.operator&&null!=e?(this.usedBranch=this.left,this.unusedBranch=this.right):(this.usedBranch=this.right,this.unusedBranch=this.left)}return this.usedBranch}},MemberExpression:wv,MetaProperty:class extends lT{getReferencedFileName(e){const t=this.metaProperty;return t&&t.startsWith($v)?e.getFileName(t.substr($v.length)):null}hasEffects(){return!1}hasEffectsWhenAccessedAtPath(e){return e.length>1}include(){if(!this.included&&(this.included=!0,"import"===this.meta.name)){this.context.addImportMeta(this);const e=this.parent,t=this.metaProperty=e instanceof wv&&"string"==typeof e.propertyKey?e.propertyKey:null;t&&(t.startsWith($v)||t.startsWith(Bv)||t.startsWith("ROLLUP_CHUNK_URL_"))?this.scope.addAccessedGlobalsByFormat(Vv):this.scope.addAccessedGlobalsByFormat(Uv)}}renderFinalMechanism(e,t,n,r){const i=this.parent,s=this.metaProperty;if(s&&(s.startsWith($v)||s.startsWith(Bv)||s.startsWith("ROLLUP_CHUNK_URL_"))){let o,a=null,l=null,c=null;s.startsWith($v)?(a=s.substr($v.length),o=r.getFileName(a)):s.startsWith(Bv)?(lv(`Using the "${Bv}" prefix to reference files is deprecated. Use the "${$v}" prefix instead.`,!0,this.context.options),l=s.substr(Bv.length),o=r.getFileName(l)):(lv(`Using the "ROLLUP_CHUNK_URL_" prefix to reference files is deprecated. Use the "${$v}" prefix instead.`,!0,this.context.options),c=s.substr("ROLLUP_CHUNK_URL_".length),o=r.getFileName(c));const u=Jy($e(Me(t),o));let h;return null!==l&&(h=r.hookFirstSync("resolveAssetUrl",[{assetFileName:o,chunkId:t,format:n,moduleId:this.context.module.id,relativeAssetPath:u}])),h||(h=r.hookFirstSync("resolveFileUrl",[{assetReferenceId:l,chunkId:t,chunkReferenceId:c,fileName:o,format:n,moduleId:this.context.module.id,referenceId:a||l||c,relativePath:u}])||Wv[n](u)),void e.overwrite(i.start,i.end,h,{contentOnly:!0})}const o=r.hookFirstSync("resolveImportMeta",[s,{chunkId:t,format:n,moduleId:this.context.module.id}])||zv[n]&&zv[n](s,t);"string"==typeof o&&(i instanceof wv?e.overwrite(i.start,i.end,o,{contentOnly:!0}):e.overwrite(this.start,this.end,o,{contentOnly:!0}))}},MethodDefinition:Iv,NewExpression:class extends lT{bind(){super.bind();for(const e of this.arguments)e.deoptimizePath(oy)}hasEffects(e){for(const t of this.arguments)if(t.hasEffects(e))return!0;return(!this.context.options.treeshake.annotations||!this.annotatedPure)&&(this.callee.hasEffects(e)||this.callee.hasEffectsWhenCalledAtPath(sy,this.callOptions,e))}hasEffectsWhenAccessedAtPath(e){return e.length>1}initialise(){this.callOptions={args:this.arguments,withNew:!0}}},ObjectExpression:class extends lT{constructor(){super(...arguments),this.deoptimizedPaths=new Set,this.expressionsToBeDeoptimized=new Map,this.hasUnknownDeoptimizedProperty=!1,this.propertyMap=null,this.unmatchablePropertiesRead=[],this.unmatchablePropertiesWrite=[]}bind(){super.bind(),this.getPropertyMap()}deoptimizeCache(){this.hasUnknownDeoptimizedProperty||this.deoptimizeAllProperties()}deoptimizePath(e){if(this.hasUnknownDeoptimizedProperty)return;const t=this.getPropertyMap(),n=e[0];if(1===e.length){if("string"!=typeof n)return void this.deoptimizeAllProperties();if(!this.deoptimizedPaths.has(n)){this.deoptimizedPaths.add(n);const e=this.expressionsToBeDeoptimized.get(n);if(e)for(const t of e)t.deoptimizeCache()}}const r=1===e.length?oy:e.slice(1);for(const e of"string"==typeof n?t[n]?t[n].propertiesRead:[]:this.properties)e.deoptimizePath(r)}getLiteralValueAtPath(e,t,n){const r=this.getPropertyMap(),i=e[0];if(0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof i||this.deoptimizedPaths.has(i))return py;if(1===e.length&&!r[i]&&!Iy[i]&&0===this.unmatchablePropertiesRead.length){const e=this.expressionsToBeDeoptimized.get(i);return void(e?e.push(n):this.expressionsToBeDeoptimized.set(i,[n]))}if(!r[i]||null===r[i].exactMatchRead||r[i].propertiesRead.length>1)return py;const s=this.expressionsToBeDeoptimized.get(i);return s?s.push(n):this.expressionsToBeDeoptimized.set(i,[n]),r[i].exactMatchRead.getLiteralValueAtPath(e.slice(1),t,n)}getReturnExpressionWhenCalledAtPath(e,t,n){const r=this.getPropertyMap(),i=e[0];if(0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof i||this.deoptimizedPaths.has(i))return dy;if(1===e.length&&Iy[i]&&0===this.unmatchablePropertiesRead.length&&(!r[i]||null===r[i].exactMatchRead))return $y(Iy,i);if(!r[i]||null===r[i].exactMatchRead||r[i].propertiesRead.length>1)return dy;const s=this.expressionsToBeDeoptimized.get(i);return s?s.push(n):this.expressionsToBeDeoptimized.set(i,[n]),r[i].exactMatchRead.getReturnExpressionWhenCalledAtPath(e.slice(1),t,n)}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;const n=e[0],r=this.propertyMap;if(e.length>1&&(this.hasUnknownDeoptimizedProperty||"string"!=typeof n||this.deoptimizedPaths.has(n)||!r[n]||null===r[n].exactMatchRead))return!0;const i=e.slice(1);for(const e of"string"!=typeof n?this.properties:r[n]?r[n].propertiesRead:[])if(e.hasEffectsWhenAccessedAtPath(i,t))return!0;return!1}hasEffectsWhenAssignedAtPath(e,t){const n=e[0],r=this.propertyMap;if(e.length>1&&(this.hasUnknownDeoptimizedProperty||this.deoptimizedPaths.has(n)||!r[n]||null===r[n].exactMatchRead))return!0;const i=e.slice(1);for(const s of"string"!=typeof n?this.properties:e.length>1?r[n].propertiesRead:r[n]?r[n].propertiesWrite:[])if(s.hasEffectsWhenAssignedAtPath(i,t))return!0;return!1}hasEffectsWhenCalledAtPath(e,t,n){const r=e[0];if("string"!=typeof r||this.hasUnknownDeoptimizedProperty||this.deoptimizedPaths.has(r)||(this.propertyMap[r]?!this.propertyMap[r].exactMatchRead:e.length>1||!Iy[r]))return!0;const i=e.slice(1);if(this.propertyMap[r])for(const e of this.propertyMap[r].propertiesRead)if(e.hasEffectsWhenCalledAtPath(i,t,n))return!0;return!(1!==e.length||!Iy[r])&&By(Iy,r,this.included,t,n)}render(e,t,{renderedParentType:n}=_T){super.render(e,t),"ExpressionStatement"!==n&&"ArrowFunctionExpression"!==n||(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}deoptimizeAllProperties(){this.hasUnknownDeoptimizedProperty=!0;for(const e of this.properties)e.deoptimizePath(oy);for(const e of this.expressionsToBeDeoptimized.values())for(const t of e)t.deoptimizeCache()}getPropertyMap(){if(null!==this.propertyMap)return this.propertyMap;const e=this.propertyMap=Object.create(null);for(let t=this.properties.length-1;t>=0;t--){const n=this.properties[t];if(n instanceof dT){this.unmatchablePropertiesRead.push(n);continue}const r="get"!==n.kind,i="set"!==n.kind;let s;if(n.computed){const e=n.key.getLiteralValueAtPath(sy,cy,this);if(e===py){i?this.unmatchablePropertiesRead.push(n):this.unmatchablePropertiesWrite.push(n);continue}s=String(e)}else s=n.key instanceof OT?n.key.name:String(n.key.value);const o=e[s];o?(i&&null===o.exactMatchRead&&(o.exactMatchRead=n,o.propertiesRead.push(n,...this.unmatchablePropertiesRead)),r&&!i&&null===o.exactMatchWrite&&(o.exactMatchWrite=n,o.propertiesWrite.push(n,...this.unmatchablePropertiesWrite))):e[s]={exactMatchRead:i?n:null,exactMatchWrite:r?n:null,propertiesRead:i?[n,...this.unmatchablePropertiesRead]:[],propertiesWrite:r&&!i?[n,...this.unmatchablePropertiesWrite]:[]}}return e}},ObjectPattern:class extends lT{addExportedVariables(e,t){for(const n of this.properties)"Property"===n.type?n.value.addExportedVariables(e,t):n.argument.addExportedVariables(e,t)}declare(e,t){const n=[];for(const r of this.properties)n.push(...r.declare(e,t));return n}deoptimizePath(e){if(0===e.length)for(const t of this.properties)t.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){if(e.length>0)return!0;for(const e of this.properties)if(e.hasEffectsWhenAssignedAtPath(sy,t))return!0;return!1}},PrivateName:class extends lT{},Program:Xv,Property:class extends lT{constructor(){super(...arguments),this.declarationInit=null,this.returnExpression=null}bind(){super.bind(),"get"===this.kind&&this.getReturnExpression(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([iy,iy])}declare(e,t){return this.declarationInit=t,this.value.declare(e,dy)}deoptimizeCache(){}deoptimizePath(e){"get"===this.kind?this.getReturnExpression().deoptimizePath(e):this.value.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return"get"===this.kind?this.getReturnExpression().getLiteralValueAtPath(e,t,n):this.value.getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n){return"get"===this.kind?this.getReturnExpression().getReturnExpressionWhenCalledAtPath(e,t,n):this.value.getReturnExpressionWhenCalledAtPath(e,t,n)}hasEffects(e){return this.key.hasEffects(e)||this.value.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){if("get"===this.kind){const n=t.accessed.getEntities(e);return!n.has(this)&&(n.add(this),this.value.hasEffectsWhenCalledAtPath(sy,this.accessorCallOptions,t)||e.length>0&&this.returnExpression.hasEffectsWhenAccessedAtPath(e,t))}return this.value.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){if("get"===this.kind){const n=t.assigned.getEntities(e);return!n.has(this)&&(n.add(this),this.returnExpression.hasEffectsWhenAssignedAtPath(e,t))}if("set"===this.kind){const n=t.assigned.getEntities(e);return!n.has(this)&&(n.add(this),this.value.hasEffectsWhenCalledAtPath(sy,this.accessorCallOptions,t))}return this.value.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,n){if("get"===this.kind){const r=(t.withNew?n.instantiated:n.called).getEntities(e,t);return!r.has(this)&&(r.add(this),this.returnExpression.hasEffectsWhenCalledAtPath(e,t,n))}return this.value.hasEffectsWhenCalledAtPath(e,t,n)}initialise(){this.accessorCallOptions={args:ry,withNew:!1}}render(e,t){this.shorthand||this.key.render(e,t),this.value.render(e,t,{isShorthandProperty:this.shorthand})}getReturnExpression(){return null===this.returnExpression?(this.returnExpression=dy,this.returnExpression=this.value.getReturnExpressionWhenCalledAtPath(sy,cy,this)):this.returnExpression}},RestElement:kT,ReturnStatement:class extends lT{hasEffects(e){return!(e.ignore.returnAwaitYield&&(null===this.argument||!this.argument.hasEffects(e))&&(e.brokenFlow=2,1))}include(e,t){this.included=!0,this.argument&&this.argument.include(e,t),e.brokenFlow=2}initialise(){this.scope.addReturnExpression(this.argument||dy)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+6&&e.prependLeft(this.start+6," "))}},SequenceExpression:class extends lT{deoptimizePath(e){e.length>0&&this.expressions[this.expressions.length-1].deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(e,t,n)}hasEffects(e){for(const t of this.expressions)if(t.hasEffects(e))return!0;return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.expressions[this.expressions.length-1].hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||this.expressions[this.expressions.length-1].hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,n){return this.expressions[this.expressions.length-1].hasEffectsWhenCalledAtPath(e,t,n)}include(e,t){this.included=!0;for(let n=0;n<this.expressions.length-1;n++){const r=this.expressions[n];(t||r.shouldBeIncluded(e))&&r.include(e,t)}this.expressions[this.expressions.length-1].include(e,t)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r,preventASI:i}=_T){let s=0;for(const{node:o,start:a,end:l}of YE(this.expressions,e,this.start,this.end))o.included?(s++,1===s&&i&&QE(e,a,o.start),o===this.expressions[this.expressions.length-1]&&1===s?o.render(e,t,{isCalleeOfRenderedParent:n?r:this.parent.callee===this,renderedParentType:n||this.parent.type}):o.render(e,t)):HE(o,e,a,l)}},SpreadElement:dT,Super:class extends lT{},SwitchCase:qv,SwitchStatement:class extends lT{createScope(e){this.scope=new bv(e)}hasEffects(e){if(this.discriminant.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:n}}=e;let r=1/0;e.ignore.breaks=!0;for(const n of this.cases){if(n.hasEffects(e))return!0;r=e.brokenFlow<r?e.brokenFlow:r,e.brokenFlow=t}return null!==this.defaultCase&&1!==r&&(e.brokenFlow=r),e.ignore.breaks=n,!1}include(e,t){this.included=!0,this.discriminant.include(e,t);const{brokenFlow:n}=e;let r=1/0,i=t||null!==this.defaultCase&&this.defaultCase<this.cases.length-1;for(let s=this.cases.length-1;s>=0;s--){const o=this.cases[s];if(o.included&&(i=!0),!i){const e=nT();e.ignore.breaks=!0,i=o.hasEffects(e)}i?(o.include(e,t),r=r<e.brokenFlow?r:e.brokenFlow,e.brokenFlow=n):r=n}i&&null!==this.defaultCase&&1!==r&&(e.brokenFlow=r)}initialise(){for(let e=0;e<this.cases.length;e++)if(null===this.cases[e].test)return void(this.defaultCase=e);this.defaultCase=null}render(e,t){this.discriminant.render(e,t),this.cases.length>0&&qE(this.cases,e,this.cases[0].start,this.end-1,t)}},TaggedTemplateExpression:class extends lT{bind(){if(super.bind(),"Identifier"===this.tag.type){const e=this.tag.name;this.scope.findVariable(e).isNamespace&&this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${e}')`},this.start),"eval"===e&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start)}}hasEffects(e){return super.hasEffects(e)||this.tag.hasEffectsWhenCalledAtPath(sy,this.callOptions,e)}initialise(){this.callOptions={args:ry,withNew:!1}}},TemplateElement:class extends lT{bind(){}hasEffects(){return!1}include(){this.included=!0}parseNode(e){this.value=e.value,super.parseNode(e)}render(){}},TemplateLiteral:Yv,ThisExpression:class extends lT{bind(){super.bind(),this.variable=this.scope.findVariable("this")}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.variable.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return this.variable.hasEffectsWhenAssignedAtPath(e,t)}initialise(){this.alias=this.scope.findLexicalBoundary()instanceof Qv?this.context.moduleContext:null,"undefined"===this.alias&&this.context.warn({code:"THIS_IS_UNDEFINED",message:"The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten",url:"https://rollupjs.org/guide/en/#error-this-is-undefined"},this.start)}render(e){null!==this.alias&&e.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}},ThrowStatement:class extends lT{hasEffects(){return!0}include(e,t){this.included=!0,this.argument.include(e,t),e.brokenFlow=2}render(e,t){this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," ")}},TryStatement:class extends lT{constructor(){super(...arguments),this.directlyIncluded=!1}hasEffects(e){return(this.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(e))||null!==this.finalizer&&this.finalizer.hasEffects(e)}include(e,t){var n;const r=null===(n=this.context.options.treeshake)||void 0===n?void 0:n.tryCatchDeoptimization,{brokenFlow:i}=e;this.directlyIncluded&&r||(this.included=!0,this.directlyIncluded=!0,this.block.include(e,r?"variables":t),e.brokenFlow=i),null!==this.handler&&(this.handler.include(e,t),e.brokenFlow=i),null!==this.finalizer&&this.finalizer.include(e,t)}},UnaryExpression:class extends lT{bind(){super.bind(),"delete"===this.operator&&this.argument.deoptimizePath(sy)}getLiteralValueAtPath(e,t,n){if(e.length>0)return py;const r=this.argument.getLiteralValueAtPath(sy,t,n);return r===py?py:Jv[this.operator](r)}hasEffects(e){return!("typeof"===this.operator&&this.argument instanceof OT)&&(this.argument.hasEffects(e)||"delete"===this.operator&&this.argument.hasEffectsWhenAssignedAtPath(sy,e))}hasEffectsWhenAccessedAtPath(e){return"void"===this.operator?e.length>0:e.length>1}},UnknownNode:class extends lT{hasEffects(){return!0}include(e){super.include(e,!0)}},UpdateExpression:class extends lT{bind(){super.bind(),this.argument.deoptimizePath(sy),this.argument instanceof OT&&(this.scope.findVariable(this.argument.name).isReassigned=!0)}hasEffects(e){return this.argument.hasEffects(e)||this.argument.hasEffectsWhenAssignedAtPath(sy,e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}render(e,t){if(this.argument.render(e,t),"system"===t.format){const n=this.argument.variable,r=t.exportNamesByVariable.get(n);if(r&&r.length){const i=t.compact?"":" ",s=n.getName();if(this.prefix)1===r.length?e.overwrite(this.start,this.end,`exports('${r[0]}',${i}${this.operator}${s})`):e.overwrite(this.start,this.end,`(${this.operator}${s},${i}${JE([n],t)},${i}${s})`);else if(r.length>1)e.overwrite(this.start,this.end,`${ZE([n],!1,t)}${this.operator}${s})`);else{let t;switch(this.operator){case"++":t=`${s}${i}+${i}1`;break;case"--":t=`${s}${i}-${i}1`}e.overwrite(this.start,this.end,`(exports('${r[0]}',${i}${t}),${i}${s}${this.operator})`)}}}}},VariableDeclaration:eA,VariableDeclarator:class extends lT{declareDeclarator(e){this.id.declare(e,this.init||fy)}deoptimizePath(e){this.id.deoptimizePath(e)}render(e,t){null===this.init||this.init.included?super.render(e,t):(e.remove(this.id.end,this.end),this.id.render(e,t))}},WhileStatement:class extends lT{hasEffects(e){if(this.test.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:n,continues:r}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=n,e.ignore.continues=r,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.test.include(e,t);const{brokenFlow:n}=e;this.body.include(e,t),e.brokenFlow=n}},YieldExpression:class extends lT{bind(){super.bind(),null!==this.argument&&this.argument.deoptimizePath(oy)}hasEffects(e){return!e.ignore.returnAwaitYield||null!==this.argument&&this.argument.hasEffects(e)}render(e,t){this.argument&&(this.argument.render(e,t),this.argument.start===this.start+5&&e.prependLeft(this.start+5," "))}}};function nA(e){return e.id}function rA(e,t,n){n(e,t)}function iA(e,t,n){}var sA={};function oA(e,t,n=e.type){let r=t.commentNodes[t.commentIndex];for(;r&&e.start>=r.end;)aA(e,r),r=t.commentNodes[++t.commentIndex];r&&r.end<=e.end&&sA[n](e,t,oA)}function aA(e,t){e.annotations?e.annotations.push(t):e.annotations=[t],"ExpressionStatement"===e.type&&(e=e.expression),"CallExpression"!==e.type&&"NewExpression"!==e.type||(e.annotatedPure=!0)}sA.Program=sA.BlockStatement=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1)n(i[r],t,"Statement")},sA.Statement=rA,sA.EmptyStatement=iA,sA.ExpressionStatement=sA.ParenthesizedExpression=sA.ChainExpression=function(e,t,n){return n(e.expression,t,"Expression")},sA.IfStatement=function(e,t,n){n(e.test,t,"Expression"),n(e.consequent,t,"Statement"),e.alternate&&n(e.alternate,t,"Statement")},sA.LabeledStatement=function(e,t,n){return n(e.body,t,"Statement")},sA.BreakStatement=sA.ContinueStatement=iA,sA.WithStatement=function(e,t,n){n(e.object,t,"Expression"),n(e.body,t,"Statement")},sA.SwitchStatement=function(e,t,n){n(e.discriminant,t,"Expression");for(var r=0,i=e.cases;r<i.length;r+=1){var s=i[r];s.test&&n(s.test,t,"Expression");for(var o=0,a=s.consequent;o<a.length;o+=1)n(a[o],t,"Statement")}},sA.SwitchCase=function(e,t,n){e.test&&n(e.test,t,"Expression");for(var r=0,i=e.consequent;r<i.length;r+=1)n(i[r],t,"Statement")},sA.ReturnStatement=sA.YieldExpression=sA.AwaitExpression=function(e,t,n){e.argument&&n(e.argument,t,"Expression")},sA.ThrowStatement=sA.SpreadElement=function(e,t,n){return n(e.argument,t,"Expression")},sA.TryStatement=function(e,t,n){n(e.block,t,"Statement"),e.handler&&n(e.handler,t),e.finalizer&&n(e.finalizer,t,"Statement")},sA.CatchClause=function(e,t,n){e.param&&n(e.param,t,"Pattern"),n(e.body,t,"Statement")},sA.WhileStatement=sA.DoWhileStatement=function(e,t,n){n(e.test,t,"Expression"),n(e.body,t,"Statement")},sA.ForStatement=function(e,t,n){e.init&&n(e.init,t,"ForInit"),e.test&&n(e.test,t,"Expression"),e.update&&n(e.update,t,"Expression"),n(e.body,t,"Statement")},sA.ForInStatement=sA.ForOfStatement=function(e,t,n){n(e.left,t,"ForInit"),n(e.right,t,"Expression"),n(e.body,t,"Statement")},sA.ForInit=function(e,t,n){"VariableDeclaration"===e.type?n(e,t):n(e,t,"Expression")},sA.DebuggerStatement=iA,sA.FunctionDeclaration=function(e,t,n){return n(e,t,"Function")},sA.VariableDeclaration=function(e,t,n){for(var r=0,i=e.declarations;r<i.length;r+=1)n(i[r],t)},sA.VariableDeclarator=function(e,t,n){n(e.id,t,"Pattern"),e.init&&n(e.init,t,"Expression")},sA.Function=function(e,t,n){e.id&&n(e.id,t,"Pattern");for(var r=0,i=e.params;r<i.length;r+=1)n(i[r],t,"Pattern");n(e.body,t,e.expression?"Expression":"Statement")},sA.Pattern=function(e,t,n){"Identifier"===e.type?n(e,t,"VariablePattern"):"MemberExpression"===e.type?n(e,t,"MemberPattern"):n(e,t)},sA.VariablePattern=iA,sA.MemberPattern=rA,sA.RestElement=function(e,t,n){return n(e.argument,t,"Pattern")},sA.ArrayPattern=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var s=i[r];s&&n(s,t,"Pattern")}},sA.ObjectPattern=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];"Property"===s.type?(s.computed&&n(s.key,t,"Expression"),n(s.value,t,"Pattern")):"RestElement"===s.type&&n(s.argument,t,"Pattern")}},sA.Expression=rA,sA.ThisExpression=sA.Super=sA.MetaProperty=iA,sA.ArrayExpression=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var s=i[r];s&&n(s,t,"Expression")}},sA.ObjectExpression=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1)n(i[r],t)},sA.FunctionExpression=sA.ArrowFunctionExpression=sA.FunctionDeclaration,sA.SequenceExpression=function(e,t,n){for(var r=0,i=e.expressions;r<i.length;r+=1)n(i[r],t,"Expression")},sA.TemplateLiteral=function(e,t,n){for(var r=0,i=e.quasis;r<i.length;r+=1)n(i[r],t);for(var s=0,o=e.expressions;s<o.length;s+=1)n(o[s],t,"Expression")},sA.TemplateElement=iA,sA.UnaryExpression=sA.UpdateExpression=function(e,t,n){n(e.argument,t,"Expression")},sA.BinaryExpression=sA.LogicalExpression=function(e,t,n){n(e.left,t,"Expression"),n(e.right,t,"Expression")},sA.AssignmentExpression=sA.AssignmentPattern=function(e,t,n){n(e.left,t,"Pattern"),n(e.right,t,"Expression")},sA.ConditionalExpression=function(e,t,n){n(e.test,t,"Expression"),n(e.consequent,t,"Expression"),n(e.alternate,t,"Expression")},sA.NewExpression=sA.CallExpression=function(e,t,n){if(n(e.callee,t,"Expression"),e.arguments)for(var r=0,i=e.arguments;r<i.length;r+=1)n(i[r],t,"Expression")},sA.MemberExpression=function(e,t,n){n(e.object,t,"Expression"),e.computed&&n(e.property,t,"Expression")},sA.ExportNamedDeclaration=sA.ExportDefaultDeclaration=function(e,t,n){e.declaration&&n(e.declaration,t,"ExportNamedDeclaration"===e.type||e.declaration.id?"Statement":"Expression"),e.source&&n(e.source,t,"Expression")},sA.ExportAllDeclaration=function(e,t,n){e.exported&&n(e.exported,t),n(e.source,t,"Expression")},sA.ImportDeclaration=function(e,t,n){for(var r=0,i=e.specifiers;r<i.length;r+=1)n(i[r],t);n(e.source,t,"Expression")},sA.ImportExpression=function(e,t,n){n(e.source,t,"Expression")},sA.ImportSpecifier=sA.ImportDefaultSpecifier=sA.ImportNamespaceSpecifier=sA.Identifier=sA.Literal=iA,sA.TaggedTemplateExpression=function(e,t,n){n(e.tag,t,"Expression"),n(e.quasi,t,"Expression")},sA.ClassDeclaration=sA.ClassExpression=function(e,t,n){return n(e,t,"Class")},sA.Class=function(e,t,n){e.id&&n(e.id,t,"Pattern"),e.superClass&&n(e.superClass,t,"Expression"),n(e.body,t)},sA.ClassBody=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1)n(i[r],t)},sA.MethodDefinition=sA.Property=function(e,t,n){e.computed&&n(e.key,t,"Expression"),n(e.value,t,"Expression")},sA.FieldDefinition=function(e,t,n){e.computed&&n(e.key,t,"Expression"),e.value&&n(e.value,t,"Expression")};const lA=/[@#]__PURE__/,cA=e=>lA.test(e.text);let uA="sourceMa";uA+="ppingURL";const hA=new RegExp("^#\\s+sourceMappingURL=.+\\n?"),pA=()=>{};let dA=()=>[0,0],fA=()=>0,mA=()=>0,gA={};function _A(e,t){switch(t){case 1:return"# "+e;case 2:return"## "+e;case 3:return e;default:return`${" ".repeat(t-4)}- ${e}`}}function EA(e,t=3){e=_A(e,t),gA.hasOwnProperty(e)||(gA[e]={memory:0,startMemory:void 0,startTime:void 0,time:0,totalMemory:0});const n=mA();gA[e].startTime=dA(),gA[e].startMemory=n}function yA(e,t=3){if(e=_A(e,t),gA.hasOwnProperty(e)){const t=mA();gA[e].time+=fA(gA[e].startTime),gA[e].totalMemory=Math.max(gA[e].totalMemory,t),gA[e].memory+=t-gA[e].startMemory}}function TA(){const e={};for(const t of Object.keys(gA))e[t]=[gA[t].time,gA[t].memory,gA[t].totalMemory];return e}let vA=pA,AA=pA;const bA={load:!0,resolveDynamicImport:!0,resolveId:!0,transform:!0};function SA(e,t){const n={};for(const r of Object.keys(e))if(!0===bA[r]){let i="plugin "+t;e.name&&(i+=` (${e.name})`),i+=" - "+r,n[r]=function(){vA(i,4);const t=e[r].apply(this===n?e:this,arguments);return AA(i,4),t&&"function"==typeof t.then&&(vA(i+" (async)",4),t.then(()=>AA(i+" (async)",4))),t}}else n[r]=e[r];return n}function CA(e,t,n,r){return t.error({code:"MISSING_EXPORT",message:`'${e}' is not exported by ${ZT(n)}, imported by ${ZT(t.id)}`,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"},r)}const xA={identifier:null,localName:"_missingExportShim"};function DA(e,t,n,r=new Map){const i=r.get(t);if(i){if(i.has(e))return null;i.add(e)}else r.set(t,new Set([e]));return e.getVariableForExportName(t,n,r)}class NA{constructor(e,t,n,r,i,s){this.graph=e,this.id=t,this.options=n,this.moduleSideEffects=r,this.syntheticNamedExports=i,this.isEntryPoint=s,this.chunkFileNames=new Set,this.chunkName=null,this.comments=[],this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.exportAllSources=new Set,this.exports=Object.create(null),this.exportsAll=Object.create(null),this.implicitlyLoadedAfter=new Set,this.implicitlyLoadedBefore=new Set,this.importDescriptions=Object.create(null),this.importers=[],this.importMetas=[],this.imports=new Set,this.includedDynamicImporters=[],this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.preserveSignature=this.options.preserveEntrySignatures,this.reexportDescriptions=Object.create(null),this.sources=new Set,this.userChunkNames=new Set,this.usesTopLevelAwait=!1,this.allExportNames=null,this.exportAllModules=[],this.exportNamesByVariable=null,this.exportShimVariable=new FT(this),this.relevantDependencies=null,this.syntheticExports=new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.transitiveReexports=null,this.excludeFromSourcemap=/\0/.test(t),this.context=n.moduleContext(t)}basename(){const e=Ie(this.id),t=Pe(this.id);return zy(t?e.slice(0,-t.length):e)}bindReferences(){this.ast.bind()}error(e,t){return this.addLocationToLogProps(e,t),tv(e)}getAllExportNames(){if(this.allExportNames)return this.allExportNames;const e=this.allExportNames=new Set;for(const t of Object.keys(this.exports))e.add(t);for(const t of Object.keys(this.reexportDescriptions))e.add(t);for(const t of this.exportAllModules)if(t instanceof Zy)e.add("*"+t.id);else for(const n of t.getAllExportNames())"default"!==n&&e.add(n);return e}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;const e=new Set,t=new Set,n=new Set(this.dependencies);let r=this.imports;if(this.isEntryPoint||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0){r=new Set(r);for(const e of[...this.getReexports(),...this.getExports()])r.add(this.getVariableForExportName(e))}for(let i of r){if(i instanceof $T)i=i.getBaseVariable();else if(i instanceof LT){const{modules:e,original:r}=i.getOriginalVariableAndDeclarationModules();i=r;for(const r of e)t.add(r),n.add(r)}e.add(i.module)}if(this.options.treeshake&&"no-treeshake"!==this.moduleSideEffects){for(const r of n)if((r.moduleSideEffects||t.has(r))&&!e.has(r))if(r instanceof Zy||r.hasEffects())e.add(r);else for(const e of r.dependencies)n.add(e)}else for(const t of this.dependencies)e.add(t);return this.relevantDependencies=e}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;const e=new Map;for(const t of this.getAllExportNames()){if(t===this.syntheticNamedExports)continue;let n=this.getVariableForExportName(t);if(n instanceof LT&&(n=n.getOriginalVariable()),!n||!(n.included||n instanceof Vy))continue;const r=e.get(n);r?r.push(t):e.set(n,[t])}return this.exportNamesByVariable=e}getExports(){return Object.keys(this.exports)}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];const e=new Set;for(const t in this.reexportDescriptions)e.add(t);for(const t of this.exportAllModules)if(t instanceof Zy)e.add("*"+t.id);else for(const n of[...t.getReexports(),...t.getExports()])"default"!==n&&e.add(n);return this.transitiveReexports=[...e]}getRenderedExports(){const e=[],t=[];for(const n in this.exports){const r=this.getVariableForExportName(n);(r&&r.included?e:t).push(n)}return{renderedExports:e,removedExports:t}}getSyntheticNamespace(){return null===this.syntheticNamespace&&(this.syntheticNamespace=void 0,this.syntheticNamespace=this.getVariableForExportName("string"==typeof this.syntheticNamedExports?this.syntheticNamedExports:"default")),this.syntheticNamespace?this.syntheticNamespace:tv({code:rv.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT,id:this.id,message:`Module "${ZT(this.id)}" that is marked with 'syntheticNamedExports: ${JSON.stringify(this.syntheticNamedExports)}' needs ${"string"==typeof this.syntheticNamedExports&&"default"!==this.syntheticNamedExports?`an export named "${this.syntheticNamedExports}"`:"a default export"}.`})}getVariableForExportName(e,t,n){if("*"===e[0])return 1===e.length?this.namespace:this.graph.modulesById.get(e.slice(1)).getVariableForExportName("*");const r=this.reexportDescriptions[e];if(r){return DA(r.module,r.localName,!1,n)||CA(r.localName,this,r.module.id,r.start)}const i=this.exports[e];if(i){if(i===xA)return this.exportShimVariable;const e=i.localName;return this.traceVariable(e)}if("default"!==e)for(const t of this.exportAllModules){const r=DA(t,e,!0,n);if(r)return r}if(!t){if(this.syntheticNamedExports){let t=this.syntheticExports.get(e);if(!t){const n=this.getSyntheticNamespace();return t=new $T(this.astContext,e,n),this.syntheticExports.set(e,t),t}return t}if(this.options.shimMissingExports)return this.shimMissingExport(e),this.exportShimVariable}return null}hasEffects(){return"no-treeshake"===this.moduleSideEffects||this.ast.included&&this.ast.hasEffects(nT())}include(){const e=tT();this.ast.shouldBeIncluded(e)&&this.ast.include(e,!1)}includeAllExports(){this.isExecuted||(this.graph.needsTreeshakingPass=!0,eT(this));for(const e of this.getExports()){const t=this.getVariableForExportName(e);t.deoptimizePath(oy),t.included||(t.include(),this.graph.needsTreeshakingPass=!0)}for(const e of this.getReexports()){const t=this.getVariableForExportName(e);t.deoptimizePath(oy),t.included||(t.include(),this.graph.needsTreeshakingPass=!0),t instanceof Vy&&(t.module.reexported=!0)}}includeAllInBundle(){this.ast.include(tT(),!0)}isIncluded(){return this.ast.included||this.namespace.included}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);for(const e in this.exports)"default"!==e&&(this.exportsAll[e]=this.id);const e=[];for(const t of this.exportAllSources){const n=this.graph.modulesById.get(this.resolvedIds[t].id);if(n instanceof Zy)e.push(n);else{this.exportAllModules.push(n);for(const e in n.exportsAll)e in this.exportsAll?this.options.onwarn(ov(e,this,n)):this.exportsAll[e]=n.exportsAll[e]}}this.exportAllModules.push(...e)}render(e){const t=this.magicString.clone();return this.ast.render(t,e),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,t}setSource({alwaysRemovedCode:e,ast:t,code:n,customTransformCache:r,moduleSideEffects:i,originalCode:s,originalSourcemap:o,resolvedIds:a,sourcemapChain:l,syntheticNamedExports:c,transformDependencies:u,transformFiles:h}){if(this.code=n,this.originalCode=s,this.originalSourcemap=o,this.sourcemapChain=l,h&&(this.transformFiles=h),this.transformDependencies=u,this.customTransformCache=r,null!=i&&(this.moduleSideEffects=i),null!=c&&(this.syntheticNamedExports=c),vA("generate ast",3),this.alwaysRemovedCode=e||[],t)this.esTreeAst=t;else{this.esTreeAst=function(e,t,n){try{return t.parse(e.code,{...n,onComment:(t,n,r,i)=>e.comments.push({block:t,text:n,start:r,end:i})})}catch(t){let n=t.message.replace(/ \(\d+:\d+\)$/,"");return e.id.endsWith(".json")?n+=" (Note that you need @rollup/plugin-json to import JSON files)":e.id.endsWith(".js")||(n+=" (Note that you need plugins to import files that are not JavaScript)"),e.error({code:"PARSE_ERROR",message:n,parserError:t},t.pos)}}(this,this.graph.acornParser,this.options.acorn);for(const e of this.comments)!e.block&&hA.test(e.text)&&this.alwaysRemovedCode.push([e.start,e.end]);p=this.comments,oA(this.esTreeAst,{commentIndex:0,commentNodes:p.filter(cA)})}var p;AA("generate ast",3),this.resolvedIds=a||Object.create(null);const d=this.id;this.magicString=new BE(n,{filename:this.excludeFromSourcemap?null:d,indentExclusionRanges:[]});for(const[e,t]of this.alwaysRemovedCode)this.magicString.remove(e,t);vA("analyse ast",3),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),code:n,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:d,getExports:this.getExports.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getReexports:this.getReexports.bind(this),importDescriptions:this.importDescriptions,includeAndGetAdditionalMergedNamespaces:this.includeAndGetAdditionalMergedNamespaces.bind(this),includeDynamicImport:this.includeDynamicImport.bind(this),includeVariable:this.includeVariable.bind(this),magicString:this.magicString,module:this,moduleContext:this.context,nodeConstructors:tA,options:this.options,traceExport:this.getVariableForExportName.bind(this),traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1,warn:this.warn.bind(this)},this.scope=new Qv(this.graph.scope,this.astContext),this.namespace=new BT(this.astContext,this.syntheticNamedExports),this.ast=new Xv(this.esTreeAst,{type:"Module",context:this.astContext},this.scope),AA("analyse ast",3)}toJSON(){return{alwaysRemovedCode:this.alwaysRemovedCode,ast:this.esTreeAst,code:this.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,nA),id:this.id,moduleSideEffects:this.moduleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(e){const t=this.scope.variables.get(e);if(t)return t;if(e in this.importDescriptions){const t=this.importDescriptions[e],n=t.module;if(n instanceof NA&&"*"===t.name)return n.namespace;return n.getVariableForExportName(t.name)||CA(t.name,this,n.id,t.start)}return null}warn(e,t){this.addLocationToLogProps(e,t),this.options.onwarn(e)}addDynamicImport(e){let t=e.source;t instanceof Yv?1===t.quasis.length&&t.quasis[0].value.cooked&&(t=t.quasis[0].value.cooked):t instanceof Nv&&"string"==typeof t.value&&(t=t.value),this.dynamicImports.push({node:e,resolution:null,argument:t})}addExport(e){if(e instanceof MT)this.exports.default={identifier:e.variable.getAssignedVariableName(),localName:"default"};else if(e instanceof Av){const t=e.source.value;if(this.sources.add(t),e.exported){const n=e.exported.name;this.reexportDescriptions[n]={localName:"*",module:null,source:t,start:e.start}}else this.exportAllSources.add(t)}else if(e.source instanceof Nv){const t=e.source.value;this.sources.add(t);for(const n of e.specifiers){const e=n.exported.name;this.reexportDescriptions[e]={localName:n.local.name,module:null,source:t,start:n.start}}}else if(e.declaration){const t=e.declaration;if(t instanceof eA)for(const e of t.declarations)for(const t of vv(e.id))this.exports[t]={identifier:null,localName:t};else{const e=t.id.name;this.exports[e]={identifier:null,localName:e}}}else for(const t of e.specifiers){const e=t.local.name,n=t.exported.name;this.exports[n]={identifier:null,localName:e}}}addImport(e){const t=e.source.value;this.sources.add(t);for(const n of e.specifiers){const e="ImportDefaultSpecifier"===n.type,r="ImportNamespaceSpecifier"===n.type,i=e?"default":r?"*":n.imported.name;this.importDescriptions[n.local.name]={module:null,name:i,source:t,start:n.start}}}addImportMeta(e){this.importMetas.push(e)}addLocationToLogProps(e,t){e.id=this.id,e.pos=t;let n=this.code,{column:r,line:i}=oT(n,t,{offsetLine:1});try{({column:r,line:i}=function(e,t){const n=e.filter(e=>e.mappings);for(;n.length>0;){const e=n.pop(),r=e.mappings[t.line-1];let i=!1;if(void 0!==r)for(const n of r)if(n[0]>=t.column){if(1===n.length)break;t={column:n[3],line:n[2]+1,name:5===n.length?e.names[n[4]]:void 0,source:e.sources[n[1]]},i=!0;break}if(!i)throw new Error("Can't resolve original location of error.")}return t}(this.sourcemapChain,{column:r,line:i})),n=this.originalCode}catch(e){this.options.onwarn({code:"SOURCEMAP_ERROR",id:this.id,loc:{column:r,file:this.id,line:i},message:"Error when using sourcemap for reporting an error: "+e.message,pos:t})}nv(e,{column:r,line:i},n,this.id)}addModulesToImportDescriptions(e){for(const t of Object.keys(e)){const n=e[t],r=this.resolvedIds[n.source].id;n.module=this.graph.modulesById.get(r)}}includeAndGetAdditionalMergedNamespaces(){const e=[];for(const t of this.exportAllModules)if(t instanceof Zy){const n=t.getVariableForExportName("*");n.include(),this.imports.add(n),e.push(n)}else if(t.syntheticNamedExports){const n=t.getSyntheticNamespace();n.include(),this.imports.add(n),e.push(n)}return e}includeDynamicImport(e){const t=this.dynamicImports.find(t=>t.node===e).resolution;t instanceof NA&&(t.includedDynamicImporters.push(this),t.includeAllExports())}includeVariable(e){const t=e.module;e.included||(e.include(),this.graph.needsTreeshakingPass=!0),t&&t!==this&&this.imports.add(e)}shimMissingExport(e){this.options.onwarn({code:"SHIMMED_EXPORT",exporter:ZT(this.id),exportName:e,message:`Missing export "${e}" has been shimmed in module ${ZT(this.id)}.`}),this.exports[e]=xA}}class wA{constructor(e,t){this.isOriginal=!0,this.filename=e,this.content=t}traceSegment(e,t,n){return{line:e,column:t,name:n,source:this}}}class OA{constructor(e,t){this.sources=t,this.names=e.names,this.mappings=e.mappings}traceMappings(){const e=[],t=[],n=[],r=[];for(const i of this.mappings){const s=[];for(const r of i){if(1==r.length)continue;const i=this.sources[r[1]];if(!i)continue;const o=i.traceSegment(r[2],r[3],5===r.length?this.names[r[4]]:"");if(o){let i=e.lastIndexOf(o.source.filename);if(-1===i)i=e.length,e.push(o.source.filename),t[i]=o.source.content;else if(null==t[i])t[i]=o.source.content;else if(null!=o.source.content&&t[i]!==o.source.content)return tv({message:"Multiple conflicting contents for sourcemap source "+o.source.filename});const a=[r[0],i,o.line,o.column];if(o.name){let e=n.indexOf(o.name);-1===e&&(e=n.length,n.push(o.name)),a[4]=e}s.push(a)}}r.push(s)}return{sources:e,sourcesContent:t,names:n,mappings:r}}traceSegment(e,t,n){const r=this.mappings[e];if(!r)return null;let i=0,s=r.length-1;for(;i<=s;){const e=i+s>>1,o=r[e];if(o[0]===t){if(1==o.length)return null;const e=this.sources[o[1]];return e?e.traceSegment(o[2],o[3],5===o.length?this.names[o[4]]:n):null}o[0]>t?s=e-1:i=e+1}return null}}function kA(e){return function(t,n){return n.mappings?new OA(n,[t]):(e({code:"SOURCEMAP_BROKEN",message:`Sourcemap is likely to be incorrect: a plugin (${n.plugin}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:n.plugin,url:"https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect"}),new OA({mappings:[],names:[]},[t]))}}function RA(e,t,n,r,i){let s;if(n){const t=n.sources,r=n.sourcesContent||[],i=Me(e)||".",o=n.sourceRoot||".",a=t.map((e,t)=>new wA(Ue(i,o,e),r[t]));s=new OA(n,a)}else s=new wA(e,t);return r.reduce(i,s)}const IA=()=>vE(),MA={amd:LA,cjs:LA,es:function(e,t,n,r,i,s,o){if(i)for(const t of n)t.variableName=ny(t.variableName,e);PA(e,t,0,r);for(const t of o)t.setSafeName(ny(t.name,e))},iife:LA,system:PA,umd:LA};function PA(e,t,n,r){for(const n of t){const t=n.module,i=n.name;let s;s=t instanceof Zy&&("*"===i||"default"===i)?"default"===i&&r&&t.exportsNamespace?t.variableName+"__default":t.variableName:i,n.setRenderNames(null,ny(s,e))}}function LA(e,t,n,r,i,s){for(const t of n)t.variableName=ny(t.variableName,e);for(const e of t){const t=e.module;if(t instanceof Zy){const n=e.name;"default"===n&&r&&(t.exportsNamespace||t.exportsNames)?e.setRenderNames(null,t.variableName+"__default"):"*"===n||"default"===n?e.setRenderNames(null,t.variableName):e.setRenderNames(t.variableName,null)}else{const n=s.get(t);"default"===n.exportMode||i&&e.isNamespace?e.setRenderNames(null,n.variableName):e.setRenderNames(n.variableName,n.getVariableExportName(e))}}}const FA=/[\\'\r\n\u2028\u2029]/,BA=/(['\r\n\u2028\u2029])/g,$A=/\\/g;function UA(e){return e.match(FA)?e.replace($A,"\\\\").replace(BA,"\\$1"):e}const VA=(e,t)=>e.execIndex>t.execIndex?1:-1;function HA(e){e.sort(VA)}function GA(e,t,n){const r=[ZT(e.id)];let i=t;for(;i!==e;)r.push(ZT(i.id)),i=n.get(i);return r.push(r[0]),r.reverse(),r}function jA(e){const t=e.split("\n"),n=t.filter(e=>/^\t+/.test(e)),r=t.filter(e=>/^ {2,}/.test(e));if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";const i=r.reduce((e,t)=>{const n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return new Array(i+1).join(" ")}function KA(e){if(!e)return null;if("string"==typeof e&&(e=JSON.parse(e)),""===e.mappings)return{mappings:[],names:[],sources:[],version:3};let t;return t="string"==typeof e.mappings?function(e){for(var t=[],n=[],r=[0,0,0,0,0],i=0,s=0,o=0,a=0;s<e.length;s++){var l=e.charCodeAt(s);if(44===l)CE(n,r,i),i=0;else if(59===l)CE(n,r,i),i=0,t.push(n),n=[],r[0]=0;else{var c=AE[l];if(void 0===c)throw new Error("Invalid character ("+String.fromCharCode(l)+")");var u=32&c;if(a+=(c&=31)<<o,u)o+=5;else{var h=1&a;a>>>=1,h&&(a=0===a?-2147483648:-a),r[i]+=a,i++,a=o=0}}}return CE(n,r,i),t.push(n),t}(e.mappings):e.mappings,{...e,mappings:t}}function WA(e,t,n,r){return"function"==typeof e&&(e=e(r())),ev(e)?e.replace(/\[(\w+)\]/g,(e,r)=>{if(!n.hasOwnProperty(r))return tv(av(`"[${r}]" is not a valid placeholder in "${t}" pattern.`));const i=n[r]();return ev(i)?i:tv(av(`Invalid substitution "${i}" for placeholder "[${r}]" in "${t}" pattern, can be neither absolute nor relative path.`))}):tv(av(`Invalid pattern "${e}" for "${t}", patterns can be neither absolute nor relative paths and must not contain invalid characters.`))}function zA(e,t){const n=new Set(Object.keys(t).map(e=>e.toLowerCase()));if(!n.has(e.toLocaleLowerCase()))return e;const r=Pe(e);e=e.substr(0,e.length-r.length);let i,s=1;for(;n.has((i=e+ ++s+r).toLowerCase()););return i}const XA=[".js",".jsx",".ts",".tsx"];function qA(e,t,n,r){return("function"==typeof t?t(e.id):t[e.id])||(n?(r({code:"MISSING_GLOBAL_NAME",guess:e.variableName,message:`No name was provided for external module '${e.id}' in output.globals – guessing '${e.variableName}'`,source:e.id}),e.variableName):void 0)}class YA{constructor(e,t,n,r,i,s,o,a,l){this.orderedModules=e,this.inputOptions=t,this.outputOptions=n,this.unsetOptions=r,this.pluginDriver=i,this.modulesById=s,this.chunkByModule=o,this.facadeChunkByModule=a,this.manualChunkAlias=l,this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.id=null,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicEntryModules=[],this.exportNamesByVariable=null,this.exports=new Set,this.exportsByName=null,this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=new Set,this.imports=new Set,this.indentString=void 0,this.isEmpty=!0,this.name=null,this.needsExportsShim=!1,this.renderedDependencies=null,this.renderedExports=null,this.renderedHash=void 0,this.renderedModuleSources=new Map,this.renderedSource=null,this.sortedExportNames=null,this.strictFacade=!1,this.usedModules=void 0,this.execIndex=e.length>0?e[0].execIndex:1/0;const c=new Set(e);for(const t of e){this.isEmpty&&t.isIncluded()&&(this.isEmpty=!1),(t.isEntryPoint||n.preserveModules)&&this.entryModules.push(t);for(const e of t.includedDynamicImporters)c.has(e)||(this.dynamicEntryModules.push(t),t.syntheticNamedExports&&(t.namespace.include(),this.exports.add(t.namespace)));t.implicitlyLoadedAfter.size>0&&this.implicitEntryModules.push(t)}this.variableName=zy(this.generateVariableName())}static generateFacade(e,t,n,r,i,s,o,a,l){const c=new YA([],e,t,n,r,i,s,o,null);c.assignFacadeName(l,a),o.has(a)||o.set(a,c);for(const e of a.getDependenciesToBeIncluded())c.dependencies.add(e instanceof NA?s.get(e):e);return!c.dependencies.has(s.get(a))&&a.moduleSideEffects&&a.hasEffects()&&c.dependencies.add(s.get(a)),c.ensureReexportsAreAvailableForModule(a),c.facadeModule=a,c.strictFacade=!0,c}canModuleBeFacade(e,t){const n=e.getExportNamesByVariable();for(const t of this.exports)if(!n.has(t))return 0===n.size&&e.isUserDefinedEntryPoint&&"strict"===e.preserveSignature&&this.unsetOptions.has("preserveEntrySignatures")&&this.inputOptions.onwarn({code:"EMPTY_FACADE",id:e.id,message:`To preserve the export signature of the entry module "${ZT(e.id)}", an empty facade chunk was created. This often happens when creating a bundle for a web app where chunks are placed in script tags and exports are ignored. In this case it is recommended to set "preserveEntrySignatures: false" to avoid this and reduce the number of chunks. Otherwise if this is intentional, set "preserveEntrySignatures: 'strict'" explicitly to silence this warning.`,url:"https://rollupjs.org/guide/en/#preserveentrysignatures"}),!1;for(const r of t)if(!n.has(r)&&r.module!==e)return!1;return!0}generateExports(){this.sortedExportNames=null,this.exportsByName=Object.create(null),this.exportNamesByVariable=new Map;const e=new Set(this.exports);if(null!==this.facadeModule&&(!1!==this.facadeModule.preserveSignature||this.strictFacade)){const t=this.facadeModule.getExportNamesByVariable();for(const[n,r]of t){this.exportNamesByVariable.set(n,[...r]);for(const e of r)this.exportsByName[e]=n;e.delete(n)}}this.outputOptions.minifyInternalExports?function(e,t,n){let r=0;for(const i of e){let e=i.name[0];if(t[e])do{e=ey(++r),49===e.charCodeAt(0)&&(r+=9*64**(e.length-1),e=ey(r))}while(ty[e]||t[e]);t[e]=i,n.set(i,[e])}}(e,this.exportsByName,this.exportNamesByVariable):function(e,t,n){for(const r of e){let e=0,i=r.name;for(;t[i];)i=r.name+"$"+ ++e;t[i]=r,n.set(r,[i])}}(e,this.exportsByName,this.exportNamesByVariable),(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.isEntryPoint)&&(this.exportMode=function(e,{exports:t,name:n,format:r},i,s,o){const a=e.getExportNames();if("default"===t){if(1!==a.length||"default"!==a[0])return tv(iv("default",a,s))}else if("none"===t&&a.length)return tv(iv("none",a,s));return"auto"===t&&(0===a.length?t="none":1===a.length&&"default"===a[0]?("cjs"===r&&i.has("exports")&&o(function(e){const t=ZT(e);return{code:rv.PREFER_NAMED_EXPORTS,id:e,message:`Entry module "${t}" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "${t}" to use named exports only.`,url:"https://rollupjs.org/guide/en/#outputexports"}}(s)),t="default"):("es"!==r&&-1!==a.indexOf("default")&&o(function(e,t){return{code:rv.MIXED_EXPORTS,id:e,message:`Entry module "${ZT(e)}" is using named and default exports together. Consumers of your bundle will have to use \`${t||"chunk"}["default"]\` to access the default export, which may not be what you want. Use \`output.exports: "named"\` to disable this warning`,url:"https://rollupjs.org/guide/en/#outputexports"}}(s,n)),t="named")),t}(this,this.outputOptions,this.unsetOptions,this.facadeModule.id,this.inputOptions.onwarn))}generateFacades(){var e;const t=[],n=new Set([...this.entryModules,...this.implicitEntryModules]),r=new Set(this.dynamicEntryModules.map(e=>e.namespace));for(const e of n)if(e.preserveSignature)for(const t of e.getExportNamesByVariable().keys())r.add(t);for(const e of n){const n=Array.from(e.userChunkNames,e=>({name:e}));0===n.length&&e.isUserDefinedEntryPoint&&n.push({}),n.push(...Array.from(e.chunkFileNames,e=>({fileName:e}))),0===n.length&&n.push({}),this.facadeModule||!this.outputOptions.preserveModules&&"strict"===e.preserveSignature&&!this.canModuleBeFacade(e,r)||(this.facadeModule=e,this.facadeChunkByModule.set(e,this),e.preserveSignature&&(this.strictFacade="strict"===e.preserveSignature,this.ensureReexportsAreAvailableForModule(e)),this.assignFacadeName(n.shift(),e));for(const r of n)t.push(YA.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.facadeChunkByModule,e,r))}for(const t of this.dynamicEntryModules)t.syntheticNamedExports||(!this.facadeModule&&this.canModuleBeFacade(t,r)?(this.facadeModule=t,this.facadeChunkByModule.set(t,this),this.strictFacade=!0,this.assignFacadeName({},t)):this.facadeModule===t&&!this.strictFacade&&this.canModuleBeFacade(t,r)?this.strictFacade=!0:(null===(e=this.facadeChunkByModule.get(t))||void 0===e?void 0:e.strictFacade)||(t.namespace.include(),this.exports.add(t.namespace)));return t}generateId(e,t,n,r){if(null!==this.fileName)return this.fileName;const[i,s]=this.facadeModule&&this.facadeModule.isUserDefinedEntryPoint?[t.entryFileNames,"output.entryFileNames"]:[t.chunkFileNames,"output.chunkFileNames"];return zA(WA(i,s,{format:()=>t.format,hash:()=>r?this.computeContentHashWithDependencies(e,t,n):"[hash]",name:()=>this.getChunkName()},this.getChunkInfo.bind(this)),n)}generateIdPreserveModules(e,t,n,r){const i=this.orderedModules[0].id,s=QT(i);let o;if(Yy(i)){const n=Pe(i),a=r.has("entryFileNames")?XA.includes(n)?"[name].js":"[name][extname].js":t.entryFileNames;o=VE(e,`${Me(s)}/${WA(a,"output.entryFileNames",{ext:()=>n.substr(1),extname:()=>n,format:()=>t.format,name:()=>this.getChunkName()},this.getChunkInfo.bind(this))}`)}else o="_virtual/"+Ie(s);return zA(Jy(o),n)}getChunkInfo(){const e=this.facadeModule,t=this.getChunkName.bind(this);return{exports:this.getExportNames(),facadeModuleId:e&&e.id,isDynamicEntry:this.dynamicEntryModules.length>0,isEntry:null!==e&&e.isEntryPoint,isImplicitEntry:this.implicitEntryModules.length>0,modules:this.renderedModules,get name(){return t()},type:"chunk"}}getChunkInfoWithFileNames(){return Object.assign(this.getChunkInfo(),{code:void 0,dynamicImports:Array.from(this.dynamicDependencies,nA),fileName:this.id,implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,nA),imports:Array.from(this.dependencies,nA),map:void 0,referencedFiles:this.getReferencedFiles()})}getChunkName(){return this.name||(this.name=QT(this.getFallbackChunkName()))}getExportNames(){return this.sortedExportNames||(this.sortedExportNames=Object.keys(this.exportsByName).sort())}getRenderedHash(){if(this.renderedHash)return this.renderedHash;const e=IA(),t=this.pluginDriver.hookReduceValueSync("augmentChunkHash","",[this.getChunkInfo()],(e,t)=>(t&&(e+=t),e));return e.update(t),e.update(this.renderedSource.toString()),e.update(this.getExportNames().map(e=>{const t=this.exportsByName[e];return`${ZT(t.module.id).replace(/\\/g,"/")}:${t.name}:${e}`}).join(",")),this.renderedHash=e.digest("hex")}getVariableExportName(e){return this.outputOptions.preserveModules&&e instanceof BT?"*":this.exportNamesByVariable.get(e)[0]}link(){for(const e of this.orderedModules)this.addDependenciesToChunk(e.getDependenciesToBeIncluded(),this.dependencies),this.addDependenciesToChunk(e.dynamicDependencies,this.dynamicDependencies),this.addDependenciesToChunk(e.implicitlyLoadedBefore,this.implicitlyLoadedBefore),this.setUpChunkImportsAndExportsForModule(e)}preRender(e,t){const n=new UE({separator:e.compact?"":"\n\n"});this.usedModules=[],this.indentString=function(e,t){if(!0!==t.indent)return t.indent;for(let t=0;t<e.length;t++){const n=jA(e[t].originalCode);if(null!==n)return n}return"\t"}(this.orderedModules,e);const r=e.compact?"":"\n",i=e.compact?"":" ",s={compact:e.compact,dynamicImportFunction:e.dynamicImportFunction,exportNamesByVariable:this.exportNamesByVariable,format:e.format,freeze:e.freeze,indent:this.indentString,namespaceToStringTag:e.namespaceToStringTag,outputPluginDriver:this.pluginDriver,varOrConst:e.preferConst?"const":"var"};if(e.hoistTransitiveImports&&!this.outputOptions.preserveModules&&null!==this.facadeModule)for(const e of this.dependencies)e instanceof YA&&this.inlineChunkDependencies(e);const o=[...this.dependencies];HA(o),this.dependencies=new Set(o),this.prepareDynamicImports(),this.setIdentifierRenderResolutions(e);let a="";const l=this.renderedModules=Object.create(null);for(const t of this.orderedModules){let i=0;if(t.isIncluded()){const o=t.render(s).trim();i=o.length(),i&&(e.compact&&-1!==o.lastLine().indexOf("//")&&o.append("\n"),this.renderedModuleSources.set(t,o),n.addSource(o),this.usedModules.push(t));const l=t.namespace;if(l.included&&!this.outputOptions.preserveModules){const e=l.renderBlock(s);l.renderFirst()?a+=r+e:n.addSource(new BE(e))}}const{renderedExports:o,removedExports:c}=t.getRenderedExports();l[t.id]={originalLength:t.originalCode.length,removedExports:c,renderedExports:o,renderedLength:i}}if(a&&n.prepend(a+r+r),this.needsExportsShim&&n.prepend(`${r}${s.varOrConst} _missingExportShim${i}=${i}void 0;${r}${r}`),e.compact?this.renderedSource=n:this.renderedSource=n.trim(),this.renderedHash=void 0,this.isEmpty&&0===this.getExportNames().length&&0===this.dependencies.size){const e=this.getChunkName();this.inputOptions.onwarn({chunkName:e,code:"EMPTY_BUNDLE",message:`Generated an empty chunk: "${e}"`})}this.setExternalRenderPaths(e,t),this.renderedDependencies=this.getChunkDependencyDeclarations(e),this.renderedExports="none"===this.exportMode?[]:this.getChunkExportDeclarations(e.format)}async render(e,t,n){vA("render format",2);const r=e.format,i=yv[r];e.dynamicImportFunction&&"es"!==r&&this.inputOptions.onwarn({code:"INVALID_OPTION",message:'"output.dynamicImportFunction" is ignored for formats other than "es".'});for(const e of this.dependencies){const t=this.renderedDependencies.get(e);if(e instanceof Zy){const n=e.renderPath;t.id=UA(e.renormalizeRenderPath?this.getRelativePath(n,!1):n)}else t.namedExportsMode="default"!==e.exportMode,t.id=UA(this.getRelativePath(e.id,!1))}this.finaliseDynamicImports(e),this.finaliseImportMetas(r);const s=0!==this.renderedExports.length||[...this.renderedDependencies.values()].some(e=>e.reexports&&0!==e.reexports.length);let o=!1;const a=new Set;for(const e of this.orderedModules){e.usesTopLevelAwait&&(o=!0);const t=e.scope.accessedGlobalVariablesByFormat,n=t&&t.get(r);if(n)for(const e of n)a.add(e)}if(o&&"es"!==r&&"system"!==r)return tv({code:"INVALID_TLA_FORMAT",message:`Module format ${r} does not support top-level await. Use the "es" or "system" output formats rather.`});const l=i(this.renderedSource,{accessedGlobals:a,dependencies:[...this.renderedDependencies.values()],exports:this.renderedExports,hasExports:s,indentString:this.indentString,intro:t.intro,isEntryModuleFacade:this.outputOptions.preserveModules||null!==this.facadeModule&&this.facadeModule.isEntryPoint,namedExportsMode:"default"!==this.exportMode,outro:t.outro,usesTopLevelAwait:o,varOrConst:e.preferConst?"const":"var",warn:this.inputOptions.onwarn},e);t.banner&&l.prepend(t.banner),t.footer&&l.append(t.footer);const c=l.toString();AA("render format",2);let u=null;const h=[];let p=await function({code:e,options:t,outputPluginDriver:n,renderChunk:r,sourcemapChain:i}){return n.hookReduceArg0("renderChunk",[e,r,t],(e,t,n)=>{if(null==t)return e;if("string"==typeof t&&(t={code:t,map:void 0}),null!==t.map){const e=KA(t.map);i.push(e||{missing:!0,plugin:n.name})}return t.code})}({code:c,options:e,outputPluginDriver:this.pluginDriver,renderChunk:n,sourcemapChain:h});if(e.sourcemap){let t;vA("sourcemap",2),t=e.file?Ue(e.sourcemapFile||e.file):e.dir?Ue(e.dir,this.id):Ue(this.id);const n=l.generateDecodedMap({});u=function(e,t,n,r,i,s){const o=kA(s),a=n.filter(e=>!e.excludeFromSourcemap).map(e=>RA(e.id,e.originalCode,e.originalSourcemap,e.sourcemapChain,o));let l=new OA(t,a);l=r.reduce(o,l);let{sources:c,sourcesContent:u,names:h,mappings:p}=l.traceMappings();if(e){const t=Me(e);c=c.map(e=>$e(t,e)),e=Ie(e)}return u=i?null:u,new OE({file:e,sources:c,sourcesContent:u,names:h,mappings:p})}(t,n,this.usedModules,h,e.sourcemapExcludeSources,this.inputOptions.onwarn),u.sources=u.sources.map(n=>{const{sourcemapPathTransform:r}=e;if(r){const e=r(n,t+".map");return"string"!=typeof e&&tv(av("sourcemapPathTransform function must return a string.")),e}return n}).map(Jy),AA("sourcemap",2)}return!0!==e.compact&&"\n"!==p[p.length-1]&&(p+="\n"),{code:p,map:u}}addDependenciesToChunk(e,t){for(const n of e)if(n instanceof NA){const e=this.chunkByModule.get(n);e&&e!==this&&t.add(e)}else t.add(n)}assignFacadeName({fileName:e,name:t},n){e?this.fileName=e:this.name=QT(t||n.chunkName||JT(n.id))}computeContentHashWithDependencies(e,t,n){const r=IA();r.update([e.intro,e.outro,e.banner,e.footer].map(e=>e||"").join(":")),r.update(t.format);const i=new Set([this]);for(const s of i)if(s instanceof Zy?r.update(":"+s.renderPath):(r.update(s.getRenderedHash()),r.update(s.generateId(e,t,n,!1))),!(s instanceof Zy))for(const e of[...s.dependencies,...s.dynamicDependencies])i.add(e);return r.digest("hex").substr(0,8)}ensureReexportsAreAvailableForModule(e){const t=e.getExportNamesByVariable();for(const e of t.keys()){const t=e instanceof $T,n=t?e.getBaseVariable():e;if(!(n instanceof BT&&this.outputOptions.preserveModules)){const e=n.module;if(e instanceof NA){const r=this.chunkByModule.get(e);r&&r!==this&&(r.exports.add(n),t&&this.imports.add(n))}}}}finaliseDynamicImports(e){const t="amd"===e.format;for(const[n,r]of this.renderedModuleSources)for(const{node:i,resolution:s}of n.dynamicImports){const n=this.chunkByModule.get(s),o=this.facadeChunkByModule.get(s);if(!s||!i.included||n===this)continue;const a=s instanceof NA?`'${this.getRelativePath((o||n).id,t)}'`:s instanceof Zy?`'${s.renormalizeRenderPath?this.getRelativePath(s.renderPath,t):s.renderPath}'`:s;i.renderFinalResolution(r,a,s instanceof NA&&!(null==o?void 0:o.strictFacade)&&n.exportNamesByVariable.get(s.namespace)[0],e)}}finaliseImportMetas(e){for(const[t,n]of this.renderedModuleSources)for(const r of t.importMetas)r.renderFinalMechanism(n,this.id,e,this.pluginDriver)}generateVariableName(){if(this.manualChunkAlias)return this.manualChunkAlias;const e=this.entryModules[0]||this.implicitEntryModules[0]||this.dynamicEntryModules[0]||this.orderedModules[this.orderedModules.length-1];return e?e.chunkName||JT(e.id):"chunk"}getChunkDependencyDeclarations(e){const t=new Map;for(let n of this.getExportNames()){let r,i,s=!1;if("*"===n[0])s=e.externalLiveBindings,r=this.modulesById.get(n.substr(1)),i=n="*";else{const t=this.exportsByName[n];if(t instanceof $T)continue;const o=t.module;if(o instanceof NA){if(r=this.chunkByModule.get(o),r===this)continue;i=r.getVariableExportName(t),s=t.isReassigned}else r=o,i=t.name,s=e.externalLiveBindings}let o=t.get(r);o||t.set(r,o=[]),o.push({imported:i,reexported:n,needsLiveBinding:s})}const n=new Set,r=new Map;for(const i of this.dependencies){const s=[];for(const e of this.imports)(e.module instanceof NA?this.chunkByModule.get(e.module)!==i:e.module!==i)||n.has(e)||(n.add(e),s.push({imported:e.module instanceof Zy?e.name:this.chunkByModule.get(e.module).getVariableExportName(e),local:e.getName()}));const o=t.get(i);let a,l,c=!0;i instanceof Zy?(a=i.exportsNames||i.exportsNamespace,l="default"in i.declarations):(a=!0,l=!1,c="default"!==i.exportMode),r.set(i,{exportsDefault:l,exportsNames:a,globalName:i instanceof Zy&&("umd"===e.format||"iife"===e.format)&&qA(i,e.globals,a||l,this.inputOptions.onwarn),id:void 0,imports:s.length>0?s:null,isChunk:i instanceof YA,name:i.variableName,namedExportsMode:c,reexports:o})}return r}getChunkExportDeclarations(e){const t=[];for(const n of this.getExportNames()){if("*"===n[0])continue;const r=this.exportsByName[n];if(!(r instanceof $T)){const e=r.module;if(e&&this.chunkByModule.get(e)!==this)continue}let i=null,s=!1,o=!1,a=r.getName();if(r instanceof rT){r.init===fy&&(o=!0);for(const e of r.declarations)if(e.parent instanceof IT||e instanceof MT&&e.declaration instanceof IT){s=!0;break}}else r instanceof $T&&(i=a,"es"===e&&"default"!==n&&(a=r.renderName));t.push({exported:n,expression:i,hoisted:s,local:a,uninitialized:o})}return t}getFallbackChunkName(){return this.manualChunkAlias?this.manualChunkAlias:this.fileName?JT(this.fileName):JT(this.orderedModules[this.orderedModules.length-1].id)}getReferencedFiles(){const e=[];for(const t of this.orderedModules)for(const n of t.importMetas){const t=n.getReferencedFileName(this.pluginDriver);t&&e.push(t)}return e}getRelativePath(e,t){let n=Jy(VE(Me(this.id),e));return t&&n.endsWith(".js")&&(n=n.slice(0,-3)),".."===n?"../../"+Ie(e):""===n?"../"+Ie(e):n.startsWith("../")?n:"./"+n}inlineChunkDependencies(e){for(const t of e.dependencies)this.dependencies.has(t)||(this.dependencies.add(t),t instanceof YA&&this.inlineChunkDependencies(t))}prepareDynamicImports(){for(const e of this.orderedModules)for(const{node:t,resolution:n}of e.dynamicImports)if(t.included)if(n instanceof NA){const e=this.chunkByModule.get(n);e===this?t.setInternalResolution(n.namespace):t.setExternalResolution(e.exportMode,n)}else t.setExternalResolution("auto",n)}setExternalRenderPaths(e,t){for(const n of[...this.dependencies,...this.dynamicDependencies])n instanceof Zy&&n.setRenderPath(e,t)}setIdentifierRenderResolutions(e){const t=new Set;for(const n of this.getExportNames()){const r=this.exportsByName[n];r instanceof FT&&(this.needsExportsShim=!0),"es"!==e.format&&"system"!==e.format&&r.isReassigned&&!r.isId?r.setRenderNames("exports",n):r instanceof $T?t.add(r):r.setRenderNames(null,null)}const n=new Set;switch(this.needsExportsShim&&n.add("_missingExportShim"),e.format){case"es":break;case"cjs":n.add("_interopDefault").add("require").add("__filename").add("__dirname");case"system":n.add("module");default:n.add("exports")}!function(e,t,n,r,i,s,o,a,l,c){for(const t of e)t.scope.addUsedOutsideNames(r,i,c);!function(e,t){for(const n of t){for(const t of n.scope.variables.values())t.included&&!(t.renderBaseName||t instanceof LT&&t.getOriginalVariable()!==t)&&t.setRenderNames(null,ny(t.name,e));const t=n.namespace;t.included&&t.setRenderNames(null,ny(t.name,e))}}(r,e),MA[i](r,n,t,s,o,a,l);for(const t of e)t.scope.deconflict(i,c)}(this.orderedModules,this.dependencies,this.imports,n,e.format,e.interop,this.outputOptions.preserveModules,this.chunkByModule,t,this.exportNamesByVariable)}setUpChunkImportsAndExportsForModule(e){const t=new Set(e.imports);if(!this.outputOptions.preserveModules){const n=e.namespace;if(n.included){const e=n.getMemberVariables();for(const n of Object.keys(e))t.add(e[n])}}for(let e of t){e instanceof LT&&(e=e.getOriginalVariable()),e instanceof $T&&(e=e.getBaseVariable());const t=this.chunkByModule.get(e.module);t!==this&&(this.imports.add(e),!(e instanceof BT&&this.outputOptions.preserveModules)&&e.module instanceof NA&&t.exports.add(e))}(e.namespace.included||e.isEntryPoint&&!1!==e.preserveSignature||e.includedDynamicImporters.some(e=>this.chunkByModule.get(e)!==this))&&this.ensureReexportsAreAvailableForModule(e);for(const{node:t,resolution:n}of e.dynamicImports)t.included&&n instanceof NA&&this.chunkByModule.get(n)===this&&!n.namespace.included&&(n.namespace.include(),this.ensureReexportsAreAvailableForModule(n))}}const QA=(e,t)=>t?`${e}\n${t}`:e,JA=(e,t)=>t?`${e}\n\n${t}`:e;function ZA(e,t,n){const r=new Set([e]);for(const e of r){n.add(e),t.push(e);for(const t of e.dependencies)t instanceof Zy||n.has(t)||r.add(t)}}function eb(e,t){const n=e.get(t)||new Set;return e.set(t,n),n}var tb;function nb(e,t,n){e in t&&n(function(e){return{code:rv.FILE_NAME_CONFLICT,message:`The emitted file "${e}" overwrites a previously emitted file of the same name.`}}(e)),t[e]=rb}!function(e){e[e.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",e[e.ANALYSE=1]="ANALYSE",e[e.GENERATE=2]="GENERATE"}(tb||(tb={}));const rb={type:"placeholder"};function ib(e,t,n){if(!("string"==typeof e||e instanceof Uint8Array)){const e=t.fileName||t.name||n;return tv(av(`Could not set source for ${"string"==typeof e?`asset "${e}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return e}class sb{constructor(e,t,n){this.graph=e,this.options=t,this.facadeChunkByModule=null,this.output=null,this.assertAssetsFinalized=()=>{for(const[t,n]of this.filesByReferenceId.entries())if("asset"===n.type&&"string"!=typeof n.fileName)return tv((e=n.name||t,{code:rv.ASSET_SOURCE_MISSING,message:`Plugin error creating asset "${e}" - no asset source set.`}));var e},this.emitFile=e=>function(e){return e&&("asset"===e.type||"chunk"===e.type)}(e)?function(e){const t=e.fileName||e.name;return!t||"string"==typeof t&&ev(t)}(e)?"chunk"===e.type?this.emitChunk(e):this.emitAsset(e):tv(av(`The "fileName" or "name" properties of emitted files must be strings that are neither absolute nor relative paths and do not contain invalid characters, received "${e.fileName||e.name}".`)):tv(av(`Emitted files must be of type "asset" or "chunk", received "${e&&e.type}".`)),this.getFileName=e=>{const t=this.filesByReferenceId.get(e);return t?"chunk"===t.type?(n=t,r=this.facadeChunkByModule,n.fileName||n.module&&(null===(i=null==r?void 0:r.get(n.module))||void 0===i?void 0:i.id)||tv((s=n.fileName||n.name,{code:rv.CHUNK_NOT_GENERATED,message:`Plugin error - Unable to get file name for chunk "${s}". Ensure that generate is called first.`}))):function(e,t){return"string"!=typeof e.fileName?tv((n=e.name||t,{code:rv.ASSET_NOT_FINALISED,message:`Plugin error - Unable to get file name for asset "${n}". Ensure that the source is set and that generate is called first.`})):e.fileName;var n}(t,e):tv((o=e,{code:rv.FILE_NOT_FOUND,message:`Plugin error - Unable to get file name for unknown file "${o}".`}));var n,r,i,s,o},this.setAssetSource=(e,t)=>{const n=this.filesByReferenceId.get(e);if(!n)return tv((r=e,{code:rv.ASSET_NOT_FOUND,message:`Plugin error - Unable to set the source for unknown asset "${r}".`}));var r,i;if("asset"!==n.type)return tv(av(`Asset sources can only be set for emitted assets but "${e}" is an emitted chunk.`));if(void 0!==n.source)return tv((i=n.name||e,{code:rv.ASSET_SOURCE_ALREADY_SET,message:`Unable to set the source for asset "${i}", source already set.`}));const s=ib(t,n,e);this.output?this.finalizeAsset(n,s,e,this.output):n.source=s},this.setOutputBundle=(e,t,n)=>{this.output={assetFileNames:t,bundle:e},this.facadeChunkByModule=n;for(const e of this.filesByReferenceId.values())e.fileName&&nb(e.fileName,this.output.bundle,this.options.onwarn);for(const[e,t]of this.filesByReferenceId.entries())"asset"===t.type&&void 0!==t.source&&this.finalizeAsset(t,t.source,e,this.output)},this.filesByReferenceId=n?new Map(n.filesByReferenceId):new Map}assignReferenceId(e,t){let n;do{const e=IA();n?e.update(n):e.update(t),n=e.digest("hex").substr(0,8)}while(this.filesByReferenceId.has(n));return this.filesByReferenceId.set(n,e),n}emitAsset(e){const t=void 0!==e.source?ib(e.source,e,null):void 0,n={fileName:e.fileName,name:e.name,source:t,type:"asset"},r=this.assignReferenceId(n,e.fileName||e.name||e.type);return this.output&&(e.fileName&&nb(e.fileName,this.output.bundle,this.options.onwarn),void 0!==t&&this.finalizeAsset(n,t,r,this.output)),r}emitChunk(e){if(this.graph.phase>tb.LOAD_AND_PARSE)return tv({code:rv.INVALID_ROLLUP_PHASE,message:"Cannot emit chunks after module loading has finished."});if("string"!=typeof e.id)return tv(av(`Emitted chunks need to have a valid string id, received "${e.id}"`));const t={fileName:e.fileName,module:null,name:e.name||e.id,type:"chunk"};return this.graph.moduleLoader.emitChunk(e).then(e=>t.module=e).catch(()=>{}),this.assignReferenceId(t,e.id)}finalizeAsset(e,t,n,r){const i=e.fileName||function(e,t){for(const n of Object.keys(e)){const r=e[n];if("asset"===r.type&&ob(t,r.source))return n}return null}(r.bundle,t)||function(e,t,n){const r=e||"asset";return zA(WA(n.assetFileNames,"output.assetFileNames",{hash(){const e=IA();return e.update(r),e.update(":"),e.update(t),e.digest("hex").substr(0,8)},ext:()=>Pe(r).substr(1),extname:()=>Pe(r),name:()=>r.substr(0,r.length-Pe(r).length)},()=>({name:e,source:t,type:"asset"})),n.bundle)}(e.name,t,r),s={...e,source:t,fileName:i};this.filesByReferenceId.set(n,s);const o=this.options;r.bundle[i]={fileName:i,name:e.name,get isAsset(){return lv('Accessing "isAsset" on files in the bundle is deprecated, please use "type === \'asset\'" instead',!0,o),!0},source:t,type:"asset"}}}function ob(e,t){if("string"==typeof e)return e===t;if("string"==typeof t)return!1;if("equals"in e)return e.equals(t);if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}class ab{constructor(e,t,n,r,i){this.outputOptions=e,this.unsetOptions=t,this.inputOptions=n,this.pluginDriver=r,this.graph=i,this.facadeChunkByModule=new Map}async generate(e){vA("GENERATE",1);const t=Object.create(null);this.pluginDriver.setOutputBundle(t,this.outputOptions.assetFileNames,this.facadeChunkByModule);try{await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),vA("generate chunks",2);const e=await this.generateChunks();e.length>1&&("umd"===(n=this.outputOptions).format||"iife"===n.format?tv({code:"INVALID_OPTION",message:"UMD and IIFE output formats are not supported for code-splitting builds."}):"string"==typeof n.file?tv({code:"INVALID_OPTION",message:'When building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option.'}):n.sourcemapFile&&tv({code:"INVALID_OPTION",message:'"output.sourcemapFile" is only supported for single-file builds.'}));const r=function(e){if(0===e.length)return"/";if(1===e.length)return Me(e[0]);const t=e.slice(1).reduce((e,t)=>{const n=t.split(/\/+|\\+/);let r;for(r=0;e[r]===n[r]&&r<Math.min(e.length,n.length);r++);return e.slice(0,r)},e[0].split(/\/+|\\+/));return t.length>1?t.join("/"):"/"}(function(e){const t=[];for(const n of e)for(const e of n.entryModules)Yy(e.id)&&t.push(e.id);return t}(e));AA("generate chunks",2),vA("render modules",2);const i=await async function(e,t){try{let[n,r,i,s]=await Promise.all([t.hookReduceValue("banner",e.banner(),[],QA),t.hookReduceValue("footer",e.footer(),[],QA),t.hookReduceValue("intro",e.intro(),[],JA),t.hookReduceValue("outro",e.outro(),[],JA)]);return i&&(i+="\n\n"),s&&(s="\n\n"+s),n.length&&(n+="\n"),r.length&&(r="\n"+r),{intro:i,outro:s,banner:n,footer:r}}catch(e){return tv({code:"ADDON_ERROR",message:`Could not retrieve ${e.hook}. Check configuration of plugin ${e.plugin}.\n\tError Message: ${e.message}`})}}(this.outputOptions,this.pluginDriver);this.prerenderChunks(e,r),AA("render modules",2),await this.addFinalizedChunksToBundle(e,r,i,t)}catch(e){throw await this.pluginDriver.hookParallel("renderError",[e]),e}var n;return await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,t,e]),this.finaliseAssets(t),AA("GENERATE",1),t}async addFinalizedChunksToBundle(e,t,n,r){this.assignChunkIds(e,t,n,r);for(const t of e)r[t.id]=t.getChunkInfoWithFileNames();await Promise.all(e.map(async e=>{const t=r[e.id];Object.assign(t,await e.render(this.outputOptions,n,t))}))}async addManualChunks(e){const t=new Map,n=await Promise.all(Object.keys(e).map(async t=>({alias:t,entries:await this.graph.moduleLoader.addAdditionalModules(e[t])})));for(const{alias:e,entries:r}of n)for(const n of r)cb(e,n,t);return t}assignChunkIds(e,t,n,r){const i=[],s=[];for(const t of e)(t.facadeModule&&t.facadeModule.isUserDefinedEntryPoint?i:s).push(t);const o=i.concat(s);for(const e of o)this.outputOptions.file?e.id=Ie(this.outputOptions.file):this.outputOptions.preserveModules?e.id=e.generateIdPreserveModules(t,this.outputOptions,r,this.unsetOptions):e.id=e.generateId(n,this.outputOptions,r,!0),r[e.id]=rb}assignManualChunks(e){const t=new Map,n={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(const r of this.graph.modulesById.values())if(r instanceof NA){const i=e(r.id,n);"string"==typeof i&&cb(i,r,t)}return t}finaliseAssets(e){for(const t of Object.keys(e)){const n=e[t];n.type||(lv('A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.',!0,this.inputOptions),n.type="asset")}this.pluginDriver.finaliseAssets()}async generateChunks(){const{manualChunks:e}=this.outputOptions,t="object"==typeof e?await this.addManualChunks(e):this.assignManualChunks(e),n=[],r=new Map;for(const{alias:e,modules:i}of this.outputOptions.inlineDynamicImports?[{alias:null,modules:lb(this.graph.modulesById)}]:this.outputOptions.preserveModules?lb(this.graph.modulesById).map(e=>({alias:null,modules:[e]})):function(e,t){const n=[],r=new Set(t.keys()),i=Object.create(null);for(const[e,n]of t)ZA(e,i[n]=i[n]||[],r);for(const[e,t]of Object.entries(i))n.push({alias:e,modules:t});const s=new Map,{dependentEntryPointsByModule:o,dynamicEntryModules:a}=function(e){const t=new Set,n=new Map,r=new Set(e);for(const e of r){const i=new Set([e]);for(const s of i){eb(n,s).add(e);for(const e of s.getDependenciesToBeIncluded())e instanceof Zy||i.add(e);for(const{resolution:e}of s.dynamicImports)e instanceof NA&&e.includedDynamicImporters.length>0&&(t.add(e),r.add(e));for(const e of s.implicitlyLoadedBefore)t.add(e),r.add(e)}}return{dependentEntryPointsByModule:n,dynamicEntryModules:t}}(e),l=function(e,t){const n=new Map;for(const r of t){const t=eb(n,r);for(const n of[...r.includedDynamicImporters,...r.implicitlyLoadedAfter])for(const r of e.get(n))t.add(r)}return n}(o,a),c=new Set(e);function u(e,t){const n=new Set([e]);for(const i of n){const a=eb(s,i);if(!t||!h(t,o.get(i))){a.add(e);for(const e of i.getDependenciesToBeIncluded())e instanceof Zy||r.has(e)||n.add(e)}}}function h(e,t){const n=new Set(e);for(const e of n)if(!t.has(e)){if(c.has(e))return!1;const t=l.get(e);for(const e of t)n.add(e)}return!0}for(const t of e)r.has(t)||u(t,null);for(const e of a)r.has(e)||u(e,l.get(e));return n.push(...function(e,t){const n=Object.create(null);for(const[r,i]of t){let t="";for(const n of e)t+=i.has(n)?"X":"_";const s=n[t];s?s.push(r):n[t]=[r]}return Object.keys(n).map(e=>({alias:null,modules:n[e]}))}([...e,...a],s)),n}(this.graph.entryModules,t)){HA(i);const t=new YA(i,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,r,this.facadeChunkByModule,e);n.push(t);for(const e of i)r.set(e,t)}for(const e of n)e.link();const i=[];for(const e of n)i.push(...e.generateFacades());return[...n,...i]}prerenderChunks(e,t){for(const t of e)t.generateExports();for(const n of e)n.preRender(this.outputOptions,t)}}function lb(e){return[...e.values()].filter(e=>e instanceof NA&&(e.isIncluded()||e.isEntryPoint||e.includedDynamicImporters.length>0))}function cb(e,t,n){const r=n.get(t);if("string"==typeof r&&r!==e)return tv((i=t.id,s=e,o=r,{code:rv.INVALID_CHUNK,message:`Cannot assign ${ZT(i)} to the "${s}" chunk as it is already in the "${o}" chunk.`}));var i,s,o;n.set(t,e)}var ub={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},hb="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",pb={5:hb,"5module":hb+" export import",6:hb+" const class extends export import super"},db=/^in(stanceof)?$/,fb="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",mb="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",gb=new RegExp("["+fb+"]"),_b=new RegExp("["+fb+mb+"]");fb=mb=null;var Eb=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],yb=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function Tb(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}}function vb(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&gb.test(String.fromCharCode(e)):!1!==t&&Tb(e,Eb)))}function Ab(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&_b.test(String.fromCharCode(e)):!1!==t&&(Tb(e,Eb)||Tb(e,yb)))))}var bb=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function Sb(e,t){return new bb(e,{beforeExpr:!0,binop:t})}var Cb={beforeExpr:!0},xb={startsExpr:!0},Db={};function Nb(e,t){return void 0===t&&(t={}),t.keyword=e,Db[e]=new bb(e,t)}var wb={num:new bb("num",xb),regexp:new bb("regexp",xb),string:new bb("string",xb),name:new bb("name",xb),eof:new bb("eof"),bracketL:new bb("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new bb("]"),braceL:new bb("{",{beforeExpr:!0,startsExpr:!0}),braceR:new bb("}"),parenL:new bb("(",{beforeExpr:!0,startsExpr:!0}),parenR:new bb(")"),comma:new bb(",",Cb),semi:new bb(";",Cb),colon:new bb(":",Cb),dot:new bb("."),question:new bb("?",Cb),questionDot:new bb("?."),arrow:new bb("=>",Cb),template:new bb("template"),invalidTemplate:new bb("invalidTemplate"),ellipsis:new bb("...",Cb),backQuote:new bb("`",xb),dollarBraceL:new bb("${",{beforeExpr:!0,startsExpr:!0}),eq:new bb("=",{beforeExpr:!0,isAssign:!0}),assign:new bb("_=",{beforeExpr:!0,isAssign:!0}),incDec:new bb("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new bb("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Sb("||",1),logicalAND:Sb("&&",2),bitwiseOR:Sb("|",3),bitwiseXOR:Sb("^",4),bitwiseAND:Sb("&",5),equality:Sb("==/!=/===/!==",6),relational:Sb("</>/<=/>=",7),bitShift:Sb("<</>>/>>>",8),plusMin:new bb("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Sb("%",10),star:Sb("*",10),slash:Sb("/",10),starstar:new bb("**",{beforeExpr:!0}),coalesce:Sb("??",1),_break:Nb("break"),_case:Nb("case",Cb),_catch:Nb("catch"),_continue:Nb("continue"),_debugger:Nb("debugger"),_default:Nb("default",Cb),_do:Nb("do",{isLoop:!0,beforeExpr:!0}),_else:Nb("else",Cb),_finally:Nb("finally"),_for:Nb("for",{isLoop:!0}),_function:Nb("function",xb),_if:Nb("if"),_return:Nb("return",Cb),_switch:Nb("switch"),_throw:Nb("throw",Cb),_try:Nb("try"),_var:Nb("var"),_const:Nb("const"),_while:Nb("while",{isLoop:!0}),_with:Nb("with"),_new:Nb("new",{beforeExpr:!0,startsExpr:!0}),_this:Nb("this",xb),_super:Nb("super",xb),_class:Nb("class",xb),_extends:Nb("extends",Cb),_export:Nb("export"),_import:Nb("import",xb),_null:Nb("null",xb),_true:Nb("true",xb),_false:Nb("false",xb),_in:Nb("in",{beforeExpr:!0,binop:7}),_instanceof:Nb("instanceof",{beforeExpr:!0,binop:7}),_typeof:Nb("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Nb("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Nb("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ob=/\r\n?|\n|\u2028|\u2029/,kb=new RegExp(Ob.source,"g");function Rb(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var Ib=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Mb=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Pb=Object.prototype,Lb=Pb.hasOwnProperty,Fb=Pb.toString;function Bb(e,t){return Lb.call(e,t)}var $b=Array.isArray||function(e){return"[object Array]"===Fb.call(e)};function Ub(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var Vb=function(e,t){this.line=e,this.column=t};Vb.prototype.offset=function(e){return new Vb(this.line,this.column+e)};var Hb=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function Gb(e,t){for(var n=1,r=0;;){kb.lastIndex=r;var i=kb.exec(e);if(!(i&&i.index<t))return new Vb(n,t-r);++n,r=i.index+i[0].length}}var jb={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function Kb(e,t){return 2|(e?4:0)|(t?8:0)}var Wb=function(e,t,n){this.options=e=function(e){var t={};for(var n in jb)t[n]=e&&Bb(e,n)?e[n]:jb[n];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),$b(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return $b(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,s,o,a){var l={type:n?"Block":"Line",value:r,start:i,end:s};e.locations&&(l.loc=new Hb(this,o,a)),e.ranges&&(l.range=[i,s]),t.push(l)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=Ub(pb[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";if(!0!==e.allowReserved){for(var i=e.ecmaVersion;!(r=ub[i]);i--);"module"===e.sourceType&&(r+=" await")}this.reservedWords=Ub(r);var s=(r?r+" ":"")+ub.strict;this.reservedWordsStrict=Ub(s),this.reservedWordsStrictBind=Ub(s+" "+ub.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Ob).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=wb.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},zb={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Wb.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},zb.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},zb.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},zb.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},zb.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},zb.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},zb.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Wb.prototype.inNonArrowFunction=function(){return(2&this.currentThisScope().flags)>0},Wb.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},Wb.parse=function(e,t){return new this(t,e).parse()},Wb.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},Wb.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Wb.prototype,zb);var Xb=Wb.prototype,qb=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)")/;function Yb(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}Xb.strictDirective=function(e){for(;;){Mb.lastIndex=e,e+=Mb.exec(this.input)[0].length;var t=qb.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){Mb.lastIndex=e+t[0].length;var n=Mb.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||Ob.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,Mb.lastIndex=e,e+=Mb.exec(this.input)[0].length,";"===this.input[e]&&e++}},Xb.eat=function(e){return this.type===e&&(this.next(),!0)},Xb.isContextual=function(e){return this.type===wb.name&&this.value===e&&!this.containsEsc},Xb.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},Xb.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Xb.canInsertSemicolon=function(){return this.type===wb.eof||this.type===wb.braceR||Ob.test(this.input.slice(this.lastTokEnd,this.start))},Xb.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Xb.semicolon=function(){this.eat(wb.semi)||this.insertSemicolon()||this.unexpected()},Xb.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Xb.expect=function(e){this.eat(e)||this.unexpected()},Xb.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},Xb.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},Xb.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},Xb.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Xb.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var Qb=Wb.prototype;Qb.parseTopLevel=function(e){var t={};for(e.body||(e.body=[]);this.type!==wb.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Jb={kind:"loop"},Zb={kind:"switch"};Qb.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Mb.lastIndex=this.pos;var t=Mb.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r)return!0;if(e)return!1;if(123===r)return!0;if(vb(r,!0)){for(var i=n+1;Ab(this.input.charCodeAt(i),!0);)++i;var s=this.input.slice(n,i);if(!db.test(s))return!0}return!1},Qb.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Mb.lastIndex=this.pos;var e=Mb.exec(this.input),t=this.pos+e[0].length;return!(Ob.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!==this.input.length&&Ab(this.input.charAt(t+8)))},Qb.parseStatement=function(e,t,n){var r,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=wb._var,r="let"),i){case wb._break:case wb._continue:return this.parseBreakContinueStatement(s,i.keyword);case wb._debugger:return this.parseDebuggerStatement(s);case wb._do:return this.parseDoStatement(s);case wb._for:return this.parseForStatement(s);case wb._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case wb._class:return e&&this.unexpected(),this.parseClass(s,!0);case wb._if:return this.parseIfStatement(s);case wb._return:return this.parseReturnStatement(s);case wb._switch:return this.parseSwitchStatement(s);case wb._throw:return this.parseThrowStatement(s);case wb._try:return this.parseTryStatement(s);case wb._const:case wb._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case wb._while:return this.parseWhileStatement(s);case wb._with:return this.parseWithStatement(s);case wb.braceL:return this.parseBlock(!0,s);case wb.semi:return this.parseEmptyStatement(s);case wb._export:case wb._import:if(this.options.ecmaVersion>10&&i===wb._import){Mb.lastIndex=this.pos;var o=Mb.exec(this.input),a=this.pos+o[0].length,l=this.input.charCodeAt(a);if(40===l||46===l)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===wb._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var c=this.value,u=this.parseExpression();return i===wb.name&&"Identifier"===u.type&&this.eat(wb.colon)?this.parseLabeledStatement(s,c,u,e):this.parseExpressionStatement(s,u)}},Qb.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(wb.semi)||this.insertSemicolon()?e.label=null:this.type!==wb.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},Qb.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},Qb.parseDoStatement=function(e){return this.next(),this.labels.push(Jb),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(wb._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(wb.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},Qb.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Jb),this.enterScope(0),this.expect(wb.parenL),this.type===wb.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===wb._var||this.type===wb._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===wb._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===wb._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var s=new Yb,o=this.parseExpression(!0,s);return this.type===wb._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===wb._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,s),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},Qb.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,tS|(n?0:nS),!1,t)},Qb.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(wb._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},Qb.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(wb.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},Qb.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(wb.braceL),this.labels.push(Zb),this.enterScope(0);for(var n=!1;this.type!==wb.braceR;)if(this.type===wb._case||this.type===wb._default){var r=this.type===wb._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(wb.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},Qb.parseThrowStatement=function(e){return this.next(),Ob.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var eS=[];Qb.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===wb._catch){var t=this.startNode();if(this.next(),this.eat(wb.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLVal(t.param,n?4:2),this.expect(wb.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(wb._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},Qb.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},Qb.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Jb),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},Qb.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},Qb.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},Qb.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1)s[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared");for(var o=this.type.isLoop?"loop":this.type===wb._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var l=this.labels[a];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},Qb.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},Qb.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(wb.braceL),e&&this.enterScope(0);this.type!==wb.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},Qb.parseFor=function(e,t){return e.init=t,this.expect(wb.semi),e.test=this.type===wb.semi?null:this.parseExpression(),this.expect(wb.semi),e.update=this.type===wb.parenR?null:this.parseExpression(),this.expect(wb.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},Qb.parseForIn=function(e,t){var n=this.type===wb._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)?this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===t.type&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(wb.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},Qb.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(wb.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===wb._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===wb._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(wb.comma))break}return e},Qb.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?1:2,!1)};var tS=1,nS=2;Qb.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===wb.star&&t&nS&&this.unexpected(),e.generator=this.eat(wb.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&tS&&(e.id=4&t&&this.type!==wb.name?null:this.parseIdent(),!e.id||t&nS||this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Kb(e.async,e.generator)),t&tS||(e.id=this.type===wb.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,t&tS?"FunctionDeclaration":"FunctionExpression")},Qb.parseFunctionParams=function(e){this.expect(wb.parenL),e.params=this.parseBindingList(wb.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Qb.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.startNode(),i=!1;for(r.body=[],this.expect(wb.braceL);this.type!==wb.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(r.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind&&(i&&this.raise(s.start,"Duplicate constructor in the same class"),i=!0))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},Qb.parseClassElement=function(e){var t=this;if(this.eat(wb.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var i=t.start,s=t.startLoc;return!(!t.eatContextual(e)||(t.type===wb.parenL||r&&t.canInsertSemicolon())&&(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,s),n.key.name=e,t.finishNode(n.key,"Identifier"),1))};n.kind="method",n.static=r("static");var i=this.eat(wb.star),s=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(wb.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var o=n.key,a=!1;return n.computed||n.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?n.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),i&&this.raise(o.start,"Constructor can't be a generator"),s&&this.raise(o.start,"Constructor can't be an async method"),n.kind="constructor",a=e),this.parseClassMethod(n,i,s,a),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},Qb.parseClassMethod=function(e,t,n,r){return e.value=this.parseMethod(t,n,r),this.finishNode(e,"MethodDefinition")},Qb.parseClassId=function(e,t){this.type===wb.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},Qb.parseClassSuper=function(e){e.superClass=this.eat(wb._extends)?this.parseExprSubscripts():null},Qb.parseExport=function(e,t){if(this.next(),this.eat(wb.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==wb.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(wb._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===wb._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|tS,!1,n)}else if(this.type===wb._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==wb.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,o=e.specifiers;s<o.length;s+=1){var a=o[s];this.checkUnreserved(a.local),this.checkLocalExport(a.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},Qb.checkExport=function(e,t,n){e&&(Bb(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},Qb.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(e,s)}else if("ArrayPattern"===n)for(var o=0,a=t.elements;o<a.length;o+=1){var l=a[o];l&&this.checkPatternExport(e,l)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(e,t.expression)},Qb.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},Qb.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Qb.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(wb.braceL);!this.eat(wb.braceR);){if(n)n=!1;else if(this.expect(wb.comma),this.afterTrailingComma(wb.braceR))break;var r=this.startNode();r.local=this.parseIdent(!0),r.exported=this.eatContextual("as")?this.parseIdent(!0):r.local,this.checkExport(e,r.exported.name,r.exported.start),t.push(this.finishNode(r,"ExportSpecifier"))}return t},Qb.parseImport=function(e){return this.next(),this.type===wb.string?(e.specifiers=eS,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===wb.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},Qb.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===wb.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,2),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(wb.comma))return e}if(this.type===wb.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLVal(r.local,2),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(wb.braceL);!this.eat(wb.braceR);){if(t)t=!1;else if(this.expect(wb.comma),this.afterTrailingComma(wb.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},Qb.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},Qb.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var rS=Wb.prototype;rS.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,t),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},rS.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var s=e[n-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},rS.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},rS.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==wb.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},rS.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case wb.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(wb.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case wb.braceL:return this.parseObj(!0)}return this.parseIdent()},rS.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(wb.comma),t&&this.type===wb.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===wb.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),r.push(s),this.type===wb.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},rS.parseBindingListItem=function(e){return e},rS.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(wb.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},rS.checkLVal=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Identifier":2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(Bb(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),0!==t&&5!==t&&this.declareName(e.name,t,e.start);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":t&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkLVal(s,t,n)}break;case"Property":this.checkLVal(e.value,t,n);break;case"ArrayPattern":for(var o=0,a=e.elements;o<a.length;o+=1){var l=a[o];l&&this.checkLVal(l,t,n)}break;case"AssignmentPattern":this.checkLVal(e.left,t,n);break;case"RestElement":this.checkLVal(e.argument,t,n);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,n);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var iS=Wb.prototype;iS.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===s&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[r="$"+r];o?("init"===s?this.strict&&o.init||o.get||o.set:o.init||o[s])&&this.raiseRecoverable(i.start,"Redefinition of property"):o=t[r]={init:!1,get:!1,set:!1},o[s]=!0}}},iS.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===wb.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(wb.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i},iS.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,s=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new Yb,r=!0);var o=this.start,a=this.startLoc;this.type!==wb.parenL&&this.type!==wb.name||(this.potentialArrowAt=this.start);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,o,a)),this.type.isAssign){var c=this.startNodeAt(o,a);return c.operator=this.value,c.left=this.type===wb.eq?this.toAssignable(l,!1,t):l,r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.left.start&&(t.shorthandAssign=-1),this.checkLVal(l),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),l},iS.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(wb.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(wb.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},iS.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},iS.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==wb._in)&&s>r){var o=this.type===wb.logicalOR||this.type===wb.logicalAND,a=this.type===wb.coalesce;a&&(s=wb.logicalAND.binop);var l=this.value;this.next();var c=this.start,u=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1),c,u,s,i),p=this.buildBinary(t,n,e,h,l,o||a);return(o&&this.type===wb.coalesce||a&&(this.type===wb.logicalOR||this.type===wb.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,t,n,r,i)}return e},iS.buildBinary=function(e,t,n,r,i,s){var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")},iS.parseMaybeUnary=function(e,t){var n,r=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),t=!0;else if(this.type.prefix){var s=this.startNode(),o=this.type===wb.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLVal(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(s,o?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var a=this.startNodeAt(r,i);a.operator=this.value,a.prefix=!1,a.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(a,"UpdateExpression")}}return!t&&this.eat(wb.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},iS.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var i=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===i.type&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1)),i},iS.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,s=!1;;){var o=this.parseSubscript(e,t,n,r,i,s);if(o.optional&&(s=!0),o===e||"ArrowFunctionExpression"===o.type){if(s){var a=this.startNodeAt(t,n);a.expression=o,o=this.finishNode(a,"ChainExpression")}return o}e=o}},iS.parseSubscript=function(e,t,n,r,i,s){var o=this.options.ecmaVersion>=11,a=o&&this.eat(wb.questionDot);r&&a&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(wb.bracketL);if(l||a&&this.type!==wb.parenL&&this.type!==wb.backQuote||this.eat(wb.dot)){var c=this.startNodeAt(t,n);c.object=e,c.property=l?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),c.computed=!!l,l&&this.expect(wb.bracketR),o&&(c.optional=a),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(wb.parenL)){var u=new Yb,h=this.yieldPos,p=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(wb.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!a&&!this.canInsertSemicolon()&&this.eat(wb.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=d,this.parseArrowExpression(this.startNodeAt(t,n),f,!0);this.checkExpressionErrors(u,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var m=this.startNodeAt(t,n);m.callee=e,m.arguments=f,o&&(m.optional=a),e=this.finishNode(m,"CallExpression")}else if(this.type===wb.backQuote){(a||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var g=this.startNodeAt(t,n);g.tag=e,g.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(g,"TaggedTemplateExpression")}return e},iS.parseExprAtom=function(e){this.type===wb.slash&&this.readRegexp();var t,n=this.potentialArrowAt===this.start;switch(this.type){case wb._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type!==wb.parenL||this.allowDirectSuper||this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==wb.dot&&this.type!==wb.bracketL&&this.type!==wb.parenL&&this.unexpected(),this.finishNode(t,"Super");case wb._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case wb.name:var r=this.start,i=this.startLoc,s=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(wb._function))return this.parseFunction(this.startNodeAt(r,i),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(wb.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===wb.name&&!s)return o=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(wb.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[o],!0)}return o;case wb.regexp:var a=this.value;return(t=this.parseLiteral(a.value)).regex={pattern:a.pattern,flags:a.flags},t;case wb.num:case wb.string:return this.parseLiteral(this.value);case wb._null:case wb._true:case wb._false:return(t=this.startNode()).value=this.type===wb._null?null:this.type===wb._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case wb.parenL:var l=this.start,c=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),c;case wb.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(wb.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case wb.braceL:return this.parseObj(!1,e);case wb._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case wb._class:return this.parseClass(this.startNode(),!1);case wb._new:return this.parseNew();case wb.backQuote:return this.parseTemplate();case wb._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},iS.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case wb.parenL:return this.parseDynamicImport(e);case wb.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},iS.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(wb.parenR)){var t=this.start;this.eat(wb.comma)&&this.eat(wb.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},iS.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},iS.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1)),this.next(),this.finishNode(t,"Literal")},iS.parseParenExpression=function(){this.expect(wb.parenL);var e=this.parseExpression();return this.expect(wb.parenR),e},iS.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,o=this.start,a=this.startLoc,l=[],c=!0,u=!1,h=new Yb,p=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==wb.parenR;){if(c?c=!1:this.expect(wb.comma),i&&this.afterTrailingComma(wb.parenR,!0)){u=!0;break}if(this.type===wb.ellipsis){s=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===wb.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(wb.parenR),e&&!this.canInsertSemicolon()&&this.eat(wb.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=d,this.parseParenArrowList(n,r,l);l.length&&!u||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(h,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,l.length>1?((t=this.startNodeAt(o,a)).expressions=l,this.finishNodeAt(t,"SequenceExpression",f,m)):t=l[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,r);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},iS.parseParenItem=function(e){return e},iS.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var sS=[];iS.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(wb.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc,s=this.type===wb._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),s&&"ImportExpression"===e.callee.type&&this.raise(r,"Cannot use new with import()"),this.eat(wb.parenL)?e.arguments=this.parseExprList(wb.parenR,this.options.ecmaVersion>=8,!1):e.arguments=sS,this.finishNode(e,"NewExpression")},iS.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===wb.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===wb.backQuote,this.finishNode(n,"TemplateElement")},iS.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===wb.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(wb.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(wb.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},iS.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===wb.name||this.type===wb.num||this.type===wb.string||this.type===wb.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===wb.star)&&!Ob.test(this.input.slice(this.lastTokEnd,this.start))},iS.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(wb.braceR);){if(r)r=!1;else if(this.expect(wb.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(wb.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},iS.parseProperty=function(e,t){var n,r,i,s,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(wb.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===wb.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===wb.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===wb.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(n=this.eat(wb.star)));var a=this.containsEsc;return this.parsePropertyName(o),!e&&!a&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(wb.star),this.parsePropertyName(o,t)):r=!1,this.parsePropertyValue(o,e,n,r,i,s,t,a),this.finishNode(o,"Property")},iS.parsePropertyValue=function(e,t,n,r,i,s,o,a){if((n||r)&&this.type===wb.colon&&this.unexpected(),this.eat(wb.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===wb.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===wb.comma||this.type===wb.braceR||this.type===wb.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,s,e.key):this.type===wb.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var l="get"===e.kind?0:1;if(e.value.params.length!==l){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},iS.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(wb.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(wb.bracketR),e.key;e.computed=!1}return e.key=this.type===wb.num||this.type===wb.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},iS.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},iS.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Kb(t,r.generator)|(n?128:0)),this.expect(wb.parenL),r.params=this.parseBindingList(wb.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")},iS.parseArrowExpression=function(e,t,n){var r=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|Kb(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},iS.parseFunctionBody=function(e,t,n){var r=t&&this.type!==wb.braceL,i=this.strict,s=!1;if(r)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!o||(s=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var a=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!i&&!s&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=a}this.exitScope()},iS.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if("Identifier"!==n[t].type)return!1;return!0},iS.checkParams=function(e,t){for(var n={},r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLVal(s,1,t?null:n)}},iS.parseExprList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(wb.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===wb.comma?o=null:this.type===wb.ellipsis?(o=this.parseSpread(r),r&&this.type===wb.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},iS.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},iS.parseIdent=function(e,t){var n=this.startNode();return this.type===wb.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(n,"Identifier"),e||(this.checkUnreserved(n),"await"!==n.name||this.awaitIdentPos||(this.awaitIdentPos=n.start)),n},iS.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===wb.semi||this.canInsertSemicolon()||this.type!==wb.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(wb.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},iS.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!1),this.finishNode(e,"AwaitExpression")};var oS=Wb.prototype;oS.raise=function(e,t){var n=Gb(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},oS.raiseRecoverable=oS.raise,oS.curPosition=function(){if(this.options.locations)return new Vb(this.curLine,this.pos-this.lineStart)};var aS=Wb.prototype,lS=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};aS.enterScope=function(e){this.scopeStack.push(new lS(e))},aS.exitScope=function(){this.scopeStack.pop()},aS.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},aS.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var a=this.scopeStack[o];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){r=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],3&a.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},aS.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},aS.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},aS.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags)return t}},aS.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags&&!(16&t.flags))return t}};var cS=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new Hb(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},uS=Wb.prototype;function hS(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}uS.startNode=function(){return new cS(this,this.start,this.startLoc)},uS.startNodeAt=function(e,t){return new cS(this,e,t)},uS.finishNode=function(e,t){return hS.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},uS.finishNodeAt=function(e,t,n,r){return hS.call(this,e,t,n,r)};var pS=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},dS={b_stat:new pS("{",!1),b_expr:new pS("{",!0),b_tmpl:new pS("${",!1),p_stat:new pS("(",!1),p_expr:new pS("(",!0),q_tmpl:new pS("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new pS("function",!1),f_expr:new pS("function",!0),f_expr_gen:new pS("function",!0,!1,null,!0),f_gen:new pS("function",!1,!1,null,!0)},fS=Wb.prototype;fS.initialContext=function(){return[dS.b_stat]},fS.braceIsBlock=function(e){var t=this.curContext();return t===dS.f_expr||t===dS.f_stat||(e!==wb.colon||t!==dS.b_stat&&t!==dS.b_expr?e===wb._return||e===wb.name&&this.exprAllowed?Ob.test(this.input.slice(this.lastTokEnd,this.start)):e===wb._else||e===wb.semi||e===wb.eof||e===wb.parenR||e===wb.arrow||(e===wb.braceL?t===dS.b_stat:e!==wb._var&&e!==wb._const&&e!==wb.name&&!this.exprAllowed):!t.isExpr)},fS.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},fS.updateContext=function(e){var t,n=this.type;n.keyword&&e===wb.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},wb.parenR.updateContext=wb.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===dS.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},wb.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?dS.b_stat:dS.b_expr),this.exprAllowed=!0},wb.dollarBraceL.updateContext=function(){this.context.push(dS.b_tmpl),this.exprAllowed=!0},wb.parenL.updateContext=function(e){var t=e===wb._if||e===wb._for||e===wb._with||e===wb._while;this.context.push(t?dS.p_stat:dS.p_expr),this.exprAllowed=!0},wb.incDec.updateContext=function(){},wb._function.updateContext=wb._class.updateContext=function(e){!e.beforeExpr||e===wb.semi||e===wb._else||e===wb._return&&Ob.test(this.input.slice(this.lastTokEnd,this.start))||(e===wb.colon||e===wb.braceL)&&this.curContext()===dS.b_stat?this.context.push(dS.f_stat):this.context.push(dS.f_expr),this.exprAllowed=!1},wb.backQuote.updateContext=function(){this.curContext()===dS.q_tmpl?this.context.pop():this.context.push(dS.q_tmpl),this.exprAllowed=!1},wb.star.updateContext=function(e){if(e===wb._function){var t=this.context.length-1;this.context[t]===dS.f_expr?this.context[t]=dS.f_expr_gen:this.context[t]=dS.f_gen}this.exprAllowed=!0},wb.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==wb.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var mS="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",gS={9:mS,10:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic",11:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic"},_S="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ES="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",yS={9:ES,10:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",11:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},TS={};function vS(e){var t=TS[e]={binary:Ub(gS[e]+" "+_S),nonBinary:{General_Category:Ub(_S),Script:Ub(yS[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}vS(9),vS(10),vS(11);var AS=Wb.prototype,bS=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=TS[e.options.ecmaVersion>=11?11:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function SS(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function CS(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function xS(e){return e>=65&&e<=90||e>=97&&e<=122}function DS(e){return xS(e)||95===e}function NS(e){return DS(e)||wS(e)}function wS(e){return e>=48&&e<=57}function OS(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function kS(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function RS(e){return e>=48&&e<=55}bS.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},bS.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},bS.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var s=n.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-56613888:i},bS.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,s=n.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},bS.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},bS.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},bS.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},bS.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},AS.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(i,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},AS.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},AS.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},AS.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},AS.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},AS.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},AS.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},AS.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},AS.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},AS.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},AS.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},AS.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},AS.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},AS.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},AS.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},AS.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},AS.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!CS(t)&&(e.lastIntValue=t,e.advance(),!0)},AS.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!CS(n);)e.advance();return e.pos!==t},AS.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},AS.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},AS.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},AS.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=SS(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=SS(e.lastIntValue);return!0}return!1},AS.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return vb(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},AS.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return Ab(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},AS.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},AS.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},AS.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},AS.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},AS.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},AS.regexp_eatZero=function(e){return 48===e.current()&&!wS(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},AS.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},AS.regexp_eatControlLetter=function(e){var t=e.current();return!!xS(t)&&(e.lastIntValue=t%32,e.advance(),!0)},AS.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(i&&s>=55296&&s<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(s-55296)+(a-56320)+65536,!0}e.pos=o,e.lastIntValue=s}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(n=e.lastIntValue)>=0&&n<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},AS.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},AS.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},AS.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},AS.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},AS.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Bb(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},AS.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},AS.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";DS(t=e.current());)e.lastStringValue+=SS(t),e.advance();return""!==e.lastStringValue},AS.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";NS(t=e.current());)e.lastStringValue+=SS(t),e.advance();return""!==e.lastStringValue},AS.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},AS.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},AS.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},AS.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||RS(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},AS.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},AS.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!wS(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},AS.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},AS.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;wS(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},AS.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;OS(n=e.current());)e.lastIntValue=16*e.lastIntValue+kS(n),e.advance();return e.pos!==t},AS.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},AS.regexp_eatOctalDigit=function(e){var t=e.current();return RS(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},AS.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!OS(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+kS(i),e.advance()}return!0};var IS=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Hb(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},MS=Wb.prototype;function PS(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}MS.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new IS(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},MS.getToken=function(){return this.next(),new IS(this)},"undefined"!=typeof Symbol&&(MS[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===wb.eof,value:t}}}}),MS.curContext=function(){return this.context[this.context.length-1]},MS.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(wb.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},MS.readToken=function(e){return vb(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},MS.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},MS.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(kb.lastIndex=n;(e=kb.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,r),n,this.pos,t,this.curPosition())},MS.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Rb(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},MS.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&Ib.test(String.fromCharCode(e))))break e;++this.pos}}},MS.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},MS.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(wb.ellipsis)):(++this.pos,this.finishToken(wb.dot))},MS.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(wb.assign,2):this.finishOp(wb.slash,1)},MS.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?wb.star:wb.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=wb.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(wb.assign,n+1):this.finishOp(r,n)},MS.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?wb.logicalOR:wb.logicalAND,2):61===t?this.finishOp(wb.assign,2):this.finishOp(124===e?wb.bitwiseOR:wb.bitwiseAND,1)},MS.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(wb.assign,2):this.finishOp(wb.bitwiseXOR,1)},MS.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Ob.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(wb.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(wb.assign,2):this.finishOp(wb.plusMin,1)},MS.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(wb.assign,n+1):this.finishOp(wb.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(wb.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},MS.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(wb.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(wb.arrow)):this.finishOp(61===e?wb.eq:wb.prefix,1)},MS.readToken_question=function(){if(this.options.ecmaVersion>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var t=this.input.charCodeAt(this.pos+2);if(t<48||t>57)return this.finishOp(wb.questionDot,2)}if(63===e)return this.finishOp(wb.coalesce,2)}return this.finishOp(wb.question,1)},MS.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(wb.parenL);case 41:return++this.pos,this.finishToken(wb.parenR);case 59:return++this.pos,this.finishToken(wb.semi);case 44:return++this.pos,this.finishToken(wb.comma);case 91:return++this.pos,this.finishToken(wb.bracketL);case 93:return++this.pos,this.finishToken(wb.bracketR);case 123:return++this.pos,this.finishToken(wb.braceL);case 125:return++this.pos,this.finishToken(wb.braceR);case 58:return++this.pos,this.finishToken(wb.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(wb.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(wb.prefix,1)}this.raise(this.pos,"Unexpected character '"+PS(e)+"'")},MS.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},MS.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Ob.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var a=this.regexpState||(this.regexpState=new bS(this));a.reset(n,i,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var l=null;try{l=new RegExp(i,o)}catch(e){}return this.finishToken(wb.regexp,{pattern:i,flags:o,value:l})},MS.readInt=function(e,t){for(var n=this.pos,r=0,i=0,s=null==t?1/0:t;i<s;++i){var o,a=this.input.charCodeAt(this.pos);if((o=a>=97?a-97+10:a>=65?a-65+10:a>=48&&a<=57?a-48:1/0)>=e)break;++this.pos,r=r*e+o}return this.pos===n||null!=t&&this.pos-n!==t?null:r},MS.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n="undefined"!=typeof BigInt?BigInt(this.input.slice(t,this.pos)):null,++this.pos):vb(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(wb.num,n)},MS.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=this.input.slice(t,this.pos),s="undefined"!=typeof BigInt?BigInt(i):null;return++this.pos,vb(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(wb.num,s)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),vb(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=this.input.slice(t,this.pos),a=n?parseInt(o,8):parseFloat(o);return this.finishToken(wb.num,a)},MS.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},MS.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(Rb(r,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(wb.string,t)};var LS={};MS.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==LS)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},MS.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw LS;this.raise(e,t)},MS.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==wb.template&&this.type!==wb.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(wb.template,e)):36===n?(this.pos+=2,this.finishToken(wb.dollarBraceL)):(++this.pos,this.finishToken(wb.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Rb(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},MS.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(wb.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},MS.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return PS(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(e){var n=this.pos-1;return this.invalidStringToken(n,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return Rb(t)?"":String.fromCharCode(t)}},MS.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},MS.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Ab(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?vb:Ab)(o,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=PS(o),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},MS.readWord=function(){var e=this.readWord1(),t=wb.name;return this.keywords.test(e)&&(t=Db[e]),this.finishToken(t,e)},Wb.acorn={Parser:Wb,version:"7.3.1",defaultOptions:jb,Position:Vb,SourceLocation:Hb,getLineInfo:Gb,Node:cS,TokenType:bb,tokTypes:wb,keywordTypes:Db,TokContext:pS,tokContexts:dS,isIdentifierChar:Ab,isIdentifierStart:vb,Token:IS,isNewLine:Rb,lineBreak:Ob,lineBreakG:kb,nonASCIIwhitespace:Ib};var FS={__proto__:null,Node:cS,Parser:Wb,Position:Vb,SourceLocation:Hb,TokContext:pS,Token:IS,TokenType:bb,defaultOptions:jb,getLineInfo:Gb,isIdentifierChar:Ab,isIdentifierStart:vb,isNewLine:Rb,keywordTypes:Db,lineBreak:Ob,lineBreakG:kb,nonASCIIwhitespace:Ib,parse:function(e,t){return Wb.parse(e,t)},parseExpressionAt:function(e,t,n){return Wb.parseExpressionAt(e,t,n)},tokContexts:dS,tokTypes:wb,tokenizer:function(e,t){return Wb.tokenizer(e,t)},version:"7.3.1"};class BS extends iT{constructor(){super(),this.variables.set("undefined",new PT)}findVariable(e){let t=this.variables.get(e);return t||(t=new wT(e),this.variables.set(e,t)),t}}function $S(e,t){return new Promise((n,r)=>{!function e(t){const n=Me(t);try{Dt(n)}catch(t){e(n);try{xt(n)}catch(e){if("EEXIST"!==e.code)throw e}}}(e),It(e,t,e=>{e?r(e):n()})})}async function US(e,t,n,r,i){const s=await r.hookFirst("resolveId",[e,t],null,i);return null!=s?s:void 0===t||Yy(e)||"."===e[0]?function(e,t){let n=VS(e,t);return n||(n=VS(e+".mjs",t),n||(n=VS(e+".js",t),n))}(Ue(t?Me(t):Ue(),e),n):null}function VS(e,t){try{const n=Rt(e);if(!t&&n.isSymbolicLink())return VS(Ot(e),t);if(t&&n.isSymbolicLink()||n.isFile()){const t=Ie(e);if(-1!==Dt(Me(e)).indexOf(t))return e}}catch(e){}}function HS(e,t,{hook:n,id:r}={}){return"string"==typeof e&&(e={message:e}),e.code&&e.code!==rv.PLUGIN_ERROR&&(e.pluginCode=e.code),e.code=rv.PLUGIN_ERROR,e.plugin=t,n&&(e.hook=n),r&&(e.id=r),tv(e)}const GS=[{active:!0,deprecated:"resolveAssetUrl",replacement:"resolveFileUrl"}],jS={has:()=>!1,get(){},set(){},delete:()=>!1};function KS(e){return e.startsWith("at position ")||e.startsWith("at output position ")?tv({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):tv({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${e} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}class WS{constructor(e,t,n,r){this.graph=e,this.modulesById=t,this.options=n,this.pluginDriver=r,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.nextEntryModuleIndex=0,this.hasModuleSideEffects=n.treeshake?n.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(e){const t=this.extendLoadModulesPromise(Promise.all(e.map(e=>this.loadEntryModule(e,!1,void 0,null))));return await this.awaitLoadModulesPromise(),t}async addEntryModules(e,t){const n=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=e.length;const r=await this.extendLoadModulesPromise(Promise.all(e.map(({id:e,importer:t})=>this.loadEntryModule(e,!0,t,null))).then(r=>{let i=n;for(let n=0;n<r.length;n++){const s=r[n];s.isUserDefinedEntryPoint=s.isUserDefinedEntryPoint||t,XS(s,e[n],t);const o=this.indexedEntryModules.find(e=>e.module===s);o?o.index=Math.min(o.index,i):this.indexedEntryModules.push({module:s,index:i}),i++}return this.indexedEntryModules.sort(({index:e},{index:t})=>e>t?1:-1),r}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:e})=>e),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:r}}async emitChunk({fileName:e,id:t,importer:n,name:r,implicitlyLoadedAfterOneOf:i,preserveSignature:s}){const o={fileName:e||null,id:t,importer:n,name:r||null},a=i?await this.addEntryWithImplicitDependants(o,i):(await this.addEntryModules([o],!1)).newEntryModules[0];return null!=s&&(a.preserveSignature=s),a}async resolveId(e,t,n=null){return this.normalizeResolveIdResult(!this.options.external(e,t,!1)&&await US(e,t,this.options.preserveSymlinks,this.pluginDriver,n),t,e)}addEntryWithImplicitDependants(e,t){return this.extendLoadModulesPromise(this.loadEntryModule(e.id,!1,e.importer,null).then(async n=>{if(XS(n,e,!1),!n.isEntryPoint){this.implicitEntryModules.add(n);const r=await Promise.all(t.map(t=>this.loadEntryModule(t,!1,e.importer,n.id)));for(const e of r)n.implicitlyLoadedAfter.add(e);for(const e of n.implicitlyLoadedAfter)e.implicitlyLoadedBefore.add(n)}return n}))}async addModuleSource(e,t,n){var r;let i;vA("load modules",3);try{i=null!==(r=await this.pluginDriver.hookFirst("load",[e]))&&void 0!==r?r:await(s=e,new Promise((e,t)=>Nt(s,"utf-8",(n,r)=>n?t(n):e(r))))}catch(n){AA("load modules",3);let r="Could not load "+e;throw t&&(r+=` (imported by ${ZT(t)})`),r+=": "+n.message,n.message=r,n}var s;AA("load modules",3);const o="string"==typeof i?{code:i}:"object"==typeof i&&"string"==typeof i.code?i:tv(function(e){return{code:rv.BAD_LOADER,message:`Error loading ${ZT(e)}: plugin load hook should return a string, a { code, map } object, or nothing/null`}}(e)),a=this.graph.cachedModules.get(e);if(a&&!a.customTransformCache&&a.originalCode===o.code){if(a.transformFiles)for(const e of a.transformFiles)this.pluginDriver.emitFile(e);n.setSource(a)}else null!=o.moduleSideEffects&&(n.moduleSideEffects=o.moduleSideEffects),null!=o.syntheticNamedExports&&(n.syntheticNamedExports=o.syntheticNamedExports),n.setSource(await function(e,t,n,r){const i=t.id,s=[];let o=null===e.map?null:KA(e.map);const a=e.code;let l=e.ast;const c=[],u=[];let h=!1;const p=()=>h=!0;let d,f=null,m=null;const g=e.code;return n.hookReduceArg0("transform",[g,i],(function(e,t,n){if("string"==typeof t)t={ast:void 0,code:t,map:void 0};else{if(!t||"object"!=typeof t)return e;"string"==typeof t.map&&(t.map=JSON.parse(t.map)),null!=t.moduleSideEffects&&(f=t.moduleSideEffects),null!=t.syntheticNamedExports&&(m=t.syntheticNamedExports)}if(null!==t.map){const e=KA(t.map);s.push(e||{missing:!0,plugin:n.name})}return l=t.ast,t.code}),(e,t)=>{return d=t,{...e,cache:h?e.cache:(l=e.cache,f=p,{has:e=>(f(),l.has(e)),get:e=>(f(),l.get(e)),set:(e,t)=>(f(),l.set(e,t)),delete:e=>(f(),l.delete(e))}),warn(t,n){"string"==typeof t&&(t={message:t}),n&&nv(t,n,g,i),t.id=i,t.hook="transform",e.warn(t)},error:(t,n)=>("string"==typeof t&&(t={message:t}),n&&nv(t,n,g,i),t.id=i,t.hook="transform",e.error(t)),emitAsset(e,t){const r={type:"asset",name:e,source:t};return u.push({...r}),n.emitFile(r)},emitChunk(e,t){const r={type:"chunk",id:e,name:t&&t.name};return u.push({...r}),n.emitFile(r)},emitFile:e=>(u.push(e),n.emitFile(e)),addWatchFile(t){c.push(t),e.addWatchFile(t)},setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},getCombinedSourcemap(){const e=function(e,t,n,r,i){return r.length?{version:3,...RA(e,t,n,r,kA(i)).traceMappings()}:n}(i,a,o,s,r);return e?(o!==e&&(o=e,s.length=0),new OE({...e,file:null,sourcesContent:e.sourcesContent})):new BE(a).generateMap({includeContent:!0,hires:!0,source:i})}};var l,f}).catch(e=>HS(e,d.name,{hook:"transform",id:i})).then(e=>(h||u.length&&(t.transformFiles=u),{ast:l,code:e,customTransformCache:h,moduleSideEffects:f,originalCode:a,originalSourcemap:o,sourcemapChain:s,syntheticNamedExports:m,transformDependencies:c}))}(o,n,this.pluginDriver,this.options.onwarn))}async awaitLoadModulesPromise(){let e;do{e=this.latestLoadModulesPromise,await e}while(e!==this.latestLoadModulesPromise)}extendLoadModulesPromise(e){return this.latestLoadModulesPromise=Promise.all([e,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),e}async fetchDynamicDependencies(e){const t=await Promise.all(e.dynamicImports.map(async t=>{const n=await this.resolveDynamicImport(e,t.argument,e.id);return null===n?null:"string"==typeof n?(t.resolution=n,null):t.resolution=await this.fetchResolvedDependency(ZT(n.id),e.id,n)}));for(const n of t)n&&(e.dynamicDependencies.add(n),n.dynamicImporters.push(e.id))}async fetchModule(e,t,n,r,i){const s=this.modulesById.get(e);if(s instanceof NA){if(i){s.isEntryPoint=!0,this.implicitEntryModules.delete(s);for(const e of s.implicitlyLoadedAfter)e.implicitlyLoadedBefore.delete(s);s.implicitlyLoadedAfter.clear()}return s}const o=new NA(this.graph,e,this.options,n,r,i);return this.modulesById.set(e,o),this.graph.watchFiles[e]=!0,await this.addModuleSource(e,t,o),await Promise.all([this.fetchStaticDependencies(o),this.fetchDynamicDependencies(o)]),o.linkImports(),o}fetchResolvedDependency(e,t,n){if(n.external){this.modulesById.has(n.id)||this.modulesById.set(n.id,new Zy(this.options,n.id,n.moduleSideEffects));const r=this.modulesById.get(n.id);return r instanceof Zy?Promise.resolve(r):tv(function(e,t){return{code:rv.INVALID_EXTERNAL_ID,message:`'${e}' is imported as an external by ${ZT(t)}, but is already an existing non-external module id.`}}(e,t))}return this.fetchModule(n.id,t,n.moduleSideEffects,n.syntheticNamedExports,!1)}async fetchStaticDependencies(e){for(const t of await Promise.all(Array.from(e.sources,async t=>this.fetchResolvedDependency(t,e.id,e.resolvedIds[t]=e.resolvedIds[t]||this.handleResolveId(await this.resolveId(t,e.id),t,e.id)))))e.dependencies.add(t),t.importers.push(e.id)}handleResolveId(e,t,n){return null===e?Qy(t)?tv(function(e,t){return{code:rv.UNRESOLVED_IMPORT,message:`Could not resolve '${e}' from ${ZT(t)}`}}(t,n)):(this.options.onwarn(function(e,t){return{code:rv.UNRESOLVED_IMPORT,importer:ZT(t),message:`'${e}' is imported by ${ZT(t)}, but could not be resolved – treating it as an external dependency`,source:e,url:"https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency"}}(t,n)),{external:!0,id:t,moduleSideEffects:this.hasModuleSideEffects(t,!0),syntheticNamedExports:!1}):(e.external&&e.syntheticNamedExports&&this.options.onwarn(function(e,t){return{code:rv.EXTERNAL_SYNTHETIC_EXPORTS,importer:ZT(t),message:`External '${e}' can not have 'syntheticNamedExports' enabled.`,source:e}}(t,n)),e)}async loadEntryModule(e,t,n,r){const i=await US(e,n,this.options.preserveSymlinks,this.pluginDriver,null);if(!1===i||i&&"object"==typeof i&&i.external)return tv(null===r?function(e){return{code:rv.UNRESOLVED_ENTRY,message:`Entry module cannot be external (${ZT(e)}).`}}(e):function(e,t){return{code:rv.MISSING_IMPLICIT_DEPENDANT,message:`Module "${ZT(e)}" that should be implicitly loaded before "${ZT(t)}" cannot be external.`}}(e,r));const s=i&&"object"==typeof i?i.id:i;return"string"==typeof s?this.fetchModule(s,void 0,!0,!1,t):tv(null===r?function(e){return{code:rv.UNRESOLVED_ENTRY,message:`Could not resolve entry module (${ZT(e)}).`}}(e):function(e,t){return{code:rv.MISSING_IMPLICIT_DEPENDANT,message:`Module "${ZT(e)}" that should be implicitly loaded before "${ZT(t)}" could not be resolved.`}}(e,r))}normalizeResolveIdResult(e,t,n){let r="",i=!1,s=null,o=!1;if(e)"object"==typeof e?(r=e.id,e.external&&(i=!0),null!=e.moduleSideEffects&&(s=e.moduleSideEffects),null!=e.syntheticNamedExports&&(o=e.syntheticNamedExports)):(this.options.external(e,t,!0)&&(i=!0),r=i?zS(e,t):e);else{if(r=zS(n,t),!1!==e&&!this.options.external(r,t,!0))return null;i=!0}return{external:i,id:r,moduleSideEffects:null!=s?s:this.hasModuleSideEffects(r,i),syntheticNamedExports:o}}async resolveDynamicImport(e,t,n){const r=await this.pluginDriver.hookFirst("resolveDynamicImport",[t,n]);return"string"!=typeof t?"string"==typeof r?r:r?{external:!1,moduleSideEffects:!0,...r}:null:null==r?e.resolvedIds[t]=e.resolvedIds[t]||this.handleResolveId(await this.resolveId(t,e.id),t,e.id):this.handleResolveId(this.normalizeResolveIdResult(r,n,t),t,n)}}function zS(e,t){return Qy(e)?t?Ue(t,"..",e):Ue(e):e}function XS(e,{fileName:t,name:n},r){null!==t?e.chunkFileNames.add(t):null!==n&&(null===e.chunkName&&(e.chunkName=n),r&&e.userChunkNames.add(n))}function qS(e,t,n,r,i,s){let o=!1;return(...a)=>(o||(o=!0,lv({message:`The "this.${t}" plugin context function used by plugin ${r} is deprecated. The "this.${n}" plugin context function should be used instead.`,plugin:r},i,s)),e(...a))}const YS=Object.keys({buildEnd:1,buildStart:1,load:1,options:1,resolveDynamicImport:1,resolveId:1,transform:1,watchChange:1});function QS(e,t){return tv({code:"INVALID_PLUGIN_HOOK",message:`Error running plugin hook ${e} for ${t}, expected a function hook.`})}class JS{constructor(e,t,n,r,i){if(this.graph=e,this.options=t,function(e,t){for(const{active:n,deprecated:r,replacement:i}of GS)for(const s of e)r in s&&lv({message:`The "${r}" hook used by plugin ${s.name} is deprecated. The "${i}" hook should be used instead.`,plugin:s.name},n,t)}(n,t),this.pluginCache=r,this.fileEmitter=new sb(e,t,i&&i.fileEmitter),this.emitFile=this.fileEmitter.emitFile,this.getFileName=this.fileEmitter.getFileName,this.finaliseAssets=this.fileEmitter.assertAssetsFinalized,this.setOutputBundle=this.fileEmitter.setOutputBundle,this.plugins=n.concat(i?i.plugins:[]),this.pluginContexts=this.plugins.map(function(e,t,n,r){const i=new Set;return(s,o)=>{let a,l=!0;if("string"!=typeof s.cacheKey&&(s.name.startsWith("at position ")||s.name.startsWith("at output position ")||i.has(s.name)?l=!1:i.add(s.name)),e)if(l){const t=s.cacheKey||s.name;u=e[t]||(e[t]=Object.create(null)),a={has(e){const t=u[e];return!!t&&(t[0]=0,!0)},get(e){const t=u[e];if(t)return t[0]=0,t[1]},set(e,t){u[e]=[0,t]},delete:e=>delete u[e]}}else c=s.name,a={has:()=>KS(c),get:()=>KS(c),set:()=>KS(c),delete:()=>KS(c)};else a=jS;var c,u;return{addWatchFile(e){if(t.phase>=tb.GENERATE)return this.error({code:rv.INVALID_ROLLUP_PHASE,message:"Cannot call addWatchFile after the build has finished."});t.watchFiles[e]=!0},cache:a,emitAsset:qS((e,t)=>r.emitFile({type:"asset",name:e,source:t}),"emitAsset","emitFile",s.name,!0,n),emitChunk:qS((e,t)=>r.emitFile({type:"chunk",id:e,name:t&&t.name}),"emitChunk","emitFile",s.name,!0,n),emitFile:r.emitFile,error:e=>HS(e,s.name),getAssetFileName:qS(r.getFileName,"getAssetFileName","getFileName",s.name,!0,n),getChunkFileName:qS(r.getFileName,"getChunkFileName","getFileName",s.name,!0,n),getFileName:r.getFileName,getModuleIds:()=>t.modulesById.keys(),getModuleInfo:t.getModuleInfo,isExternal:qS((e,t,r=!1)=>n.external(e,t,r),"isExternal","resolve",s.name,!0,n),meta:{rollupVersion:"2.23.0",watchMode:t.watchMode},get moduleIds(){const e=t.modulesById.keys();return function*(){lv({message:`Accessing "this.moduleIds" on the plugin context by plugin ${s.name} is deprecated. The "this.getModuleIds" plugin context function should be used instead.`,plugin:s.name},!1,n),yield*e}()},parse:t.contextParse,resolve:(e,n,r)=>t.moduleLoader.resolveId(e,n,r&&r.skipSelf?o:null),resolveId:qS((e,n)=>t.moduleLoader.resolveId(e,n).then(e=>e&&e.id),"resolveId","resolve",s.name,!0,n),setAssetSource:r.setAssetSource,warn(e){"string"==typeof e&&(e={message:e}),e.code&&(e.pluginCode=e.code),e.code="PLUGIN_WARNING",e.plugin=s.name,n.onwarn(e)}}}}(r,e,t,this.fileEmitter)),i)for(const e of n)for(const n of YS)n in e&&t.onwarn((s=e.name,o=n,{code:rv.INPUT_HOOK_IN_OUTPUT_PLUGIN,message:`The "${o}" hook used by the output plugin ${s} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}));var s,o}createOutputPluginDriver(e){return new JS(this.graph,this.options,e,this.pluginCache,this)}hookFirst(e,t,n,r){let i=Promise.resolve(void 0);for(let s=0;s<this.plugins.length;s++)r!==s&&(i=i.then(r=>null!=r?r:this.runHook(e,t,s,!1,n)));return i}hookFirstSync(e,t,n){for(let r=0;r<this.plugins.length;r++){const i=this.runHookSync(e,t,r,n);if(null!=i)return i}return null}hookParallel(e,t,n){const r=[];for(let i=0;i<this.plugins.length;i++){const s=this.runHook(e,t,i,!1,n);s&&r.push(s)}return Promise.all(r).then(()=>{})}hookReduceArg0(e,[t,...n],r,i){let s=Promise.resolve(t);for(let t=0;t<this.plugins.length;t++)s=s.then(s=>{const o=[s,...n],a=this.runHook(e,o,t,!1,i);return a?a.then(e=>r.call(this.pluginContexts[t],s,e,this.plugins[t])):s});return s}hookReduceArg0Sync(e,[t,...n],r,i){for(let s=0;s<this.plugins.length;s++){const o=[t,...n],a=this.runHookSync(e,o,s,i);t=r.call(this.pluginContexts[s],t,a,this.plugins[s])}return t}hookReduceValue(e,t,n,r,i){let s=Promise.resolve(t);for(let t=0;t<this.plugins.length;t++)s=s.then(s=>{const o=this.runHook(e,n,t,!0,i);return o?o.then(e=>r.call(this.pluginContexts[t],s,e,this.plugins[t])):s});return s}hookReduceValueSync(e,t,n,r,i){let s=t;for(let t=0;t<this.plugins.length;t++){const o=this.runHookSync(e,n,t,i);s=r.call(this.pluginContexts[t],s,o,this.plugins[t])}return s}hookSeq(e,t,n){let r=Promise.resolve();for(let i=0;i<this.plugins.length;i++)r=r.then(()=>this.runHook(e,t,i,!1,n));return r}hookSeqSync(e,t,n){for(let r=0;r<this.plugins.length;r++)this.runHookSync(e,t,r,n)}runHook(e,t,n,r,i){const s=this.plugins[n],o=s[e];if(!o)return;let a=this.pluginContexts[n];return i&&(a=i(a,s)),Promise.resolve().then(()=>"function"!=typeof o?r?o:QS(e,s.name):o.apply(a,t)).catch(t=>HS(t,s.name,{hook:e}))}runHookSync(e,t,n,r){const i=this.plugins[n],s=i[e];if(!s)return;let o=this.pluginContexts[n];r&&(o=r(o,i));try{return"function"!=typeof s?QS(e,i.name):s.apply(o,t)}catch(t){return HS(t,i.name,{hook:e})}}}class ZS{constructor(e,t){var n,r;if(this.options=e,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=tb.LOAD_AND_PARSE,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=e=>{const t=this.modulesById.get(e);if(null==t)throw new Error("Unable to find module "+e);const n=[],r=[];if(t instanceof NA){for(const e of t.sources)n.push(t.resolvedIds[e].id);for(const{resolution:e}of t.dynamicImports)(e instanceof NA||e instanceof Zy)&&r.push(e.id)}return{dynamicallyImportedIds:r,dynamicImporters:t.dynamicImporters.sort(),hasModuleSideEffects:t.moduleSideEffects,id:t.id,implicitlyLoadedAfterOneOf:t instanceof NA?Array.from(t.implicitlyLoadedAfter,nA):[],implicitlyLoadedBefore:t instanceof NA?Array.from(t.implicitlyLoadedBefore,nA):[],importedIds:n,importers:t.importers.sort(),isEntry:t instanceof NA&&t.isEntryPoint,isExternal:t instanceof Zy}},this.deoptimizationTracker=new ly,this.cachedModules=new Map,!1!==e.cache){if(null===(n=e.cache)||void 0===n?void 0:n.modules)for(const t of e.cache.modules)this.cachedModules.set(t.id,t);this.pluginCache=(null===(r=e.cache)||void 0===r?void 0:r.plugins)||Object.create(null);for(const e in this.pluginCache){const t=this.pluginCache[e];for(const e of Object.keys(t))t[e][0]++}}if(this.contextParse=(e,t={})=>this.acornParser.parse(e,{...this.options.acorn,...t}),t){this.watchMode=!0;const e=e=>this.pluginDriver.hookSeqSync("watchChange",[e]);t.on("change",e),t.once("restart",()=>{t.removeListener("change",e)})}this.pluginDriver=new JS(this,e,e.plugins,this.pluginCache),this.scope=new BS,this.acornParser=Wb.extend(...e.acornInjectPlugins),this.moduleLoader=new WS(this,this.modulesById,this.options,this.pluginDriver)}async build(){vA("generate module graph",2),await this.generateModuleGraph(),AA("generate module graph",2),vA("sort modules",2),this.phase=tb.ANALYSE,this.sortModules(),AA("sort modules",2),vA("mark included statements",2),this.includeStatements(),AA("mark included statements",2),this.phase=tb.GENERATE}getCache(){for(const e in this.pluginCache){const t=this.pluginCache[e];let n=!0;for(const e of Object.keys(t))t[e][0]>=this.options.experimentalCacheExpiry?delete t[e]:n=!1;n&&delete this.pluginCache[e]}return{modules:this.modules.map(e=>e.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var e;if(({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((e=this.options.input,Array.isArray(e)?e.map(e=>({fileName:null,id:e,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.keys(e).map(t=>({fileName:null,id:e[t],implicitlyLoadedAfter:[],importer:void 0,name:t}))),!0)),0===this.entryModules.length)throw new Error("You must supply options.input to rollup");for(const e of this.modulesById.values())e instanceof NA?this.modules.push(e):this.externalModules.push(e)}includeStatements(){for(const e of[...this.entryModules,...this.implicitEntryModules])!1!==e.preserveSignature?e.includeAllExports():eT(e);if(this.options.treeshake){let e=1;do{vA("treeshaking pass "+e,3),this.needsTreeshakingPass=!1;for(const e of this.modules)e.isExecuted&&("no-treeshake"===e.moduleSideEffects?e.includeAllInBundle():e.include());AA("treeshaking pass "+e++,3)}while(this.needsTreeshakingPass)}else for(const e of this.modules)e.includeAllInBundle();for(const e of this.externalModules)e.warnUnusedImports();for(const e of this.implicitEntryModules)for(const t of e.implicitlyLoadedAfter)t.isEntryPoint||t.isIncluded()||tv(sv(t))}sortModules(){const{orderedModules:e,cyclePaths:t}=function(e){let t=0;const n=[],r=new Set,i=new Set,s=new Map,o=[],a=e=>{if(e instanceof NA){for(const t of e.dependencies)s.has(t)?r.has(t)||n.push(GA(t,e,s)):(s.set(t,e),a(t));for(const t of e.implicitlyLoadedBefore)i.add(t);for(const{resolution:t}of e.dynamicImports)t instanceof NA&&i.add(t);o.push(e)}e.execIndex=t++,r.add(e)};for(const t of e)s.has(t)||(s.set(t,null),a(t));for(const e of i)s.has(e)||(s.set(e,null),a(e));return{orderedModules:o,cyclePaths:n}}(this.entryModules);for(const e of t)this.options.onwarn({code:"CIRCULAR_DEPENDENCY",cycle:e,importer:e[0],message:"Circular dependency: "+e.join(" -> ")});this.modules=e;for(const e of this.modules)e.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const e of this.modules)for(const t of Object.keys(e.importDescriptions)){const n=e.importDescriptions[t];"*"===n.name||n.module.getVariableForExportName(n.name)||e.warn({code:"NON_EXISTENT_EXPORT",message:`Non-existent export '${n.name}' is imported from ${ZT(n.module.id)}`,name:n.name,source:n.module.id},n.start)}}}function eC(e){return Array.isArray(e)?e.filter(Boolean):e?[e]:[]}var tC=function(e){return e&&e.default||e}(FS);const nC=Object.getPrototypeOf||(e=>e.__proto__);var rC=function(e){if(e.prototype.parsePrivateName)return e;const t=(e=>{if(e.acorn)return e.acorn;const t=tC;if(0!=t.version.indexOf("6.")&&0==t.version.indexOf("6.0.")&&0!=t.version.indexOf("7."))throw new Error("acorn-private-class-elements requires acorn@^6.1.0 or acorn@7.0.0, not "+t.version);for(let n=e;n&&n!==t.Parser;n=nC(n))if(n!==t.Parser)throw new Error("acorn-private-class-elements does not support mixing different acorn copies");return t})(e);return(e=class extends e{_branch(){return this.__branch=this.__branch||new e({ecmaVersion:this.options.ecmaVersion},this.input),this.__branch.end=this.end,this.__branch.pos=this.pos,this.__branch.type=this.type,this.__branch.value=this.value,this.__branch.containsEsc=this.containsEsc,this.__branch}parsePrivateClassElementName(e){e.computed=!1,e.key=this.parsePrivateName(),"constructor"==e.key.name&&this.raise(e.key.start,"Classes may not have a private element named constructor");const t={get:"set",set:"get"}[e.kind],n=this._privateBoundNames;return Object.prototype.hasOwnProperty.call(n,e.key.name)&&n[e.key.name]!==t&&this.raise(e.start,"Duplicate private element"),n[e.key.name]=e.kind||!0,delete this._unresolvedPrivateNames[e.key.name],e.key}parsePrivateName(){const e=this.startNode();return e.name=this.value,this.next(),this.finishNode(e,"PrivateName"),"never"==this.options.allowReserved&&this.checkUnreserved(e),e}getTokenFromCode(e){if(35===e){++this.pos;const e=this.readWord1();return this.finishToken(this.privateNameToken,e)}return super.getTokenFromCode(e)}parseClass(e,t){const n=this._outerPrivateBoundNames;this._outerPrivateBoundNames=this._privateBoundNames,this._privateBoundNames=Object.create(this._privateBoundNames||null);const r=this._outerUnresolvedPrivateNames;this._outerUnresolvedPrivateNames=this._unresolvedPrivateNames,this._unresolvedPrivateNames=Object.create(null);const i=super.parseClass(e,t),s=this._unresolvedPrivateNames;if(this._privateBoundNames=this._outerPrivateBoundNames,this._outerPrivateBoundNames=n,this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames,this._outerUnresolvedPrivateNames=r,this._unresolvedPrivateNames)Object.assign(this._unresolvedPrivateNames,s);else{const e=Object.keys(s);e.length&&(e.sort((e,t)=>s[e]-s[t]),this.raise(s[e[0]],"Usage of undeclared private name"))}return i}parseClassSuper(e){const t=this._privateBoundNames;this._privateBoundNames=this._outerPrivateBoundNames;const n=this._unresolvedPrivateNames;this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames;const r=super.parseClassSuper(e);return this._privateBoundNames=t,this._unresolvedPrivateNames=n,r}parseSubscript(e,n,r,i,s,o){const a=this.options.ecmaVersion>=11&&t.tokTypes.questionDot,l=this._branch();if(!(l.eat(t.tokTypes.dot)||a&&l.eat(t.tokTypes.questionDot))||l.type!=this.privateNameToken)return super.parseSubscript.apply(this,arguments);let c=!1;this.eat(t.tokTypes.dot)||(this.expect(t.tokTypes.questionDot),c=!0);let u=this.startNodeAt(n,r);return u.object=e,u.computed=!1,a&&(u.optional=c),this.type==this.privateNameToken?("Super"==e.type&&this.raise(this.start,"Cannot access private element on super"),u.property=this.parsePrivateName(),this._privateBoundNames&&this._privateBoundNames[u.property.name]||(this._unresolvedPrivateNames||this.raise(u.property.start,"Usage of undeclared private name"),this._unresolvedPrivateNames[u.property.name]=u.property.start)):u.property=this.parseIdent(!0),this.finishNode(u,"MemberExpression")}parseMaybeUnary(e,t){const n=super.parseMaybeUnary(e,t);return"delete"==n.operator&&"MemberExpression"==n.argument.type&&"PrivateName"==n.argument.property.type&&this.raise(n.start,"Private elements may not be deleted"),n}}).prototype.privateNameToken=new t.TokenType("privateName"),e},iC=function(e){const t=(e.acorn||tC).tokTypes;return e=rC(e),class extends e{_maybeParseFieldValue(e){if(this.eat(t.eq)){const t=this._inFieldValue;this._inFieldValue=!0,e.value=this.parseExpression(),this._inFieldValue=t}else e.value=null}parseClassElement(e){if(this.options.ecmaVersion>=8&&(this.type==t.name||this.type.keyword||this.type==this.privateNameToken||this.type==t.bracketL||this.type==t.string||this.type==t.num)){const e=this._branch();if(e.type==t.bracketL){let n=0;do{e.eat(t.bracketL)?++n:e.eat(t.bracketR)?--n:e.next()}while(n>0)}else e.next(!0);if(e.type==t.eq||e.canInsertSemicolon()||e.type==t.semi){const e=this.startNode();return this.type==this.privateNameToken?this.parsePrivateClassElementName(e):this.parsePropertyName(e),("Identifier"===e.key.type&&"constructor"===e.key.name||"Literal"===e.key.type&&"constructor"===e.key.value)&&this.raise(e.key.start,"Classes may not have a field called constructor"),this.enterScope(67),this._maybeParseFieldValue(e),this.exitScope(),this.finishNode(e,"FieldDefinition"),this.semicolon(),e}}return super.parseClassElement.apply(this,arguments)}parseIdent(e,t){const n=super.parseIdent(e,t);return this._inFieldValue&&"arguments"==n.name&&this.raise(n.start,"A class field initializer may not contain arguments"),n}}},sC=function(e){const t=e.acorn||tC;return t.version.startsWith("6.")&&!t.version.startsWith("6.0.")&&!t.version.startsWith("6.1.")||t.version.startsWith("7.")?function(e,t){return class extends t{readInt(e,t){if(null!=t)return super.readInt(e,t);let n=this.pos,r=0,i=!1;for(;;){let t,n=this.input.charCodeAt(this.pos);if(n>=97)t=n-97+10;else{if(95==n){i||this.raise(this.pos,"Invalid numeric separator"),++this.pos,i=!1;continue}t=n>=65?n-65+10:n>=48&&n<=57?n-48:1/0}if(t>=e)break;++this.pos,r=r*e+t,i=!0}return this.pos===n?null:(i||this.raise(this.pos-1,"Invalid numeric separator"),r)}readNumber(t){let n=this.pos;t||null!==this.readInt(10)||this.raise(n,"Invalid number");let r=this.pos-n>=2&&48===this.input.charCodeAt(n),i=!1;r&&this.strict&&this.raise(n,"Invalid number");let s=this.input.charCodeAt(this.pos);if(!r&&!t&&this.options.ecmaVersion>=11&&110===s){let t=this.getNumberInput(n,this.pos),r="undefined"!=typeof BigInt?BigInt(t):null;return++this.pos,e.isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(e.tokTypes.num,r)}r&&/[89]/.test(this.input.slice(n,this.pos))&&(r=!1,i=!0),46!==s||r||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||r||(s=this.input.charCodeAt(++this.pos),43!==s&&45!==s||++this.pos,null===this.readInt(10)&&this.raise(n,"Invalid number")),e.isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");let o=this.getNumberInput(n,this.pos);(r||i)&&o.length<this.pos-n&&this.raise(n,"Invalid number");let a=r?parseInt(o,8):parseFloat(o);return this.finishToken(e.tokTypes.num,a)}parseLiteral(e){const t=super.parseLiteral(e);return t.bigint&&(t.bigint=t.bigint.replace(/_/g,"")),t}readRadixNumber(t){let n=this.pos;this.pos+=2;let r=this.readInt(t);if(null==r&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)){let e=this.getNumberInput(n,this.pos);r="undefined"!=typeof BigInt?BigInt(e):null,++this.pos}else e.isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");return this.finishToken(e.tokTypes.num,r)}getNumberInput(e,t){return this.input.slice(e,t).replace(/_/g,"")}}}(t,e):function(e,t){return class extends t{readInt(e,t){if(null!=t)return super.readInt(e,t);let n=this.pos,r=0,i=!1;for(;;){let t,n=this.input.charCodeAt(this.pos);if(n>=97)t=n-97+10;else{if(95==n){i||this.raise(this.pos,"Invalid numeric separator"),++this.pos,i=!1;continue}t=n>=65?n-65+10:n>=48&&n<=57?n-48:1/0}if(t>=e)break;++this.pos,r=r*e+t,i=!0}return this.pos===n?null:(i||this.raise(this.pos-1,"Invalid numeric separator"),r)}readNumber(e){const t=super.readNumber(e);let n=this.end-this.start>=2&&48===this.input.charCodeAt(this.start);const r=this.getNumberInput(this.start,this.end);return r.length<this.end-this.start&&(n&&this.raise(this.start,"Invalid number"),this.value=parseFloat(r)),t}getNumberInput(e,t){return this.input.slice(e,t).replace(/_/g,"")}}}(0,e)},oC=function(e){const t=rC(e),n=(e.acorn||tC).tokTypes;return class extends t{_maybeParseFieldValue(e){if(this.eat(n.eq)){const t=this._inStaticFieldScope;this._inStaticFieldScope=this.currentThisScope(),e.value=this.parseExpression(),this._inStaticFieldScope=t}else e.value=null}parseClassElement(e){if(this.options.ecmaVersion<8||!this.isContextual("static"))return super.parseClassElement.apply(this,arguments);const t=this._branch();if(t.next(),-1==[n.name,n.bracketL,n.string,n.num,this.privateNameToken].indexOf(t.type))return super.parseClassElement.apply(this,arguments);if(t.type==n.bracketL){let e=0;do{t.eat(n.bracketL)?++e:t.eat(n.bracketR)?--e:t.next()}while(e>0)}else t.next();if(t.type!=n.eq&&!t.canInsertSemicolon()&&t.type!=n.semi)return super.parseClassElement.apply(this,arguments);const r=this.startNode();return r.static=this.eatContextual("static"),this.type==this.privateNameToken?this.parsePrivateClassElementName(r):this.parsePropertyName(r),("Identifier"===r.key.type&&"constructor"===r.key.name||"Literal"===r.key.type&&!r.computed&&"constructor"===r.key.value)&&this.raise(r.key.start,"Classes may not have a field called constructor"),"prototype"!==(r.key.name||r.key.value)||r.computed||this.raise(r.key.start,"Classes may not have a static property named prototype"),this._maybeParseFieldValue(r),this.finishNode(r,"FieldDefinition"),this.semicolon(),r}parsePropertyName(e){e.static&&this.type==this.privateNameToken?this.parsePrivateClassElementName(e):super.parsePropertyName(e)}parseIdent(e,t){const n=super.parseIdent(e,t);return this._inStaticFieldScope&&this.currentThisScope()===this._inStaticFieldScope&&"arguments"==n.name&&this.raise(n.start,"A static class field initializer may not contain arguments"),n}}};const aC=e=>console.warn(e.message||e);function lC(e,t,n,r,i=/$./){const s=new Set(t),o=Object.keys(e).filter(e=>!(s.has(e)||i.test(e)));o.length>0&&r({code:"UNKNOWN_OPTION",message:`Unknown ${n}: ${o.join(", ")}. Allowed options: ${[...s].sort().join(", ")}`})}const cC=e=>({allowAwaitOutsideFunction:!0,ecmaVersion:2020,preserveParens:!1,sourceType:"module",...e.acorn}),uC=e=>[iC,oC,sC,...eC(e.acornInjectPlugins)],hC=e=>{var t;return(null===(t=e.cache)||void 0===t?void 0:t.cache)||e.cache},pC=e=>{if(!0===e)return()=>!0;if("function"==typeof e)return(t,...n)=>!t.startsWith("\0")&&e(t,...n)||!1;if(e){const t=new Set,n=[];for(const r of eC(e))r instanceof RegExp?n.push(r):t.add(r);return e=>t.has(e)||n.some(t=>t.test(e))}return()=>!1},dC=(e,t,n)=>{const r=e.inlineDynamicImports;return r&&cv('The "inlineDynamicImports" option is deprecated. Use the "output.inlineDynamicImports" option instead.',!1,t,n),r},fC=e=>{const t=e.input;return null==t?[]:"string"==typeof t?[t]:t},mC=(e,t,n)=>{const r=e.manualChunks;return r&&cv('The "manualChunks" option is deprecated. Use the "output.manualChunks" option instead.',!1,t,n),r},gC=(e,t)=>{const n=e.moduleContext;if("function"==typeof n)return e=>{var r;return null!==(r=n(e))&&void 0!==r?r:t};if(n){const e=Object.create(null);for(const t of Object.keys(n))e[Ue(t)]=n[t];return n=>e[n]||t}return()=>t},_C=(e,t)=>{const n=e.preserveEntrySignatures;return null==n&&t.add("preserveEntrySignatures"),null!=n?n:"strict"},EC=(e,t,n)=>{const r=e.preserveModules;return r&&cv('The "preserveModules" option is deprecated. Use the "output.preserveModules" option instead.',!1,t,n),r},yC=(e,t,n)=>{const r=e.treeshake;return!1!==r&&(r&&!0!==r?(void 0!==r.pureExternalModules&&cv('The "treeshake.pureExternalModules" option is deprecated. The "treeshake.moduleSideEffects" option should be used instead. "treeshake.pureExternalModules: true" is equivalent to "treeshake.moduleSideEffects: \'no-external\'"',!0,t,n),{annotations:!1!==r.annotations,moduleSideEffects:TC(r.moduleSideEffects,r.pureExternalModules,t),propertyReadSideEffects:!1!==r.propertyReadSideEffects,tryCatchDeoptimization:!1!==r.tryCatchDeoptimization,unknownGlobalSideEffects:!1!==r.unknownGlobalSideEffects}):{annotations:!0,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0})},TC=(e,t,n)=>{if("boolean"==typeof e)return()=>e;if("no-external"===e)return(e,t)=>!t;if("function"==typeof e)return(t,n)=>!!t.startsWith("\0")||!1!==e(t,n);if(Array.isArray(e)){const t=new Set(e);return e=>t.has(e)}e&&n(("treeshake.moduleSideEffects",'please use one of false, "no-external", a function or an array',{code:rv.INVALID_OPTION,message:'Invalid value for option "treeshake.moduleSideEffects" - please use one of false, "no-external", a function or an array.'}));const r=pC(t);return(e,t)=>!(t&&r(e))},vC=e=>({define:"define",...e.amd}),AC=(e,t)=>{const n=e[t];return"function"==typeof n?n:()=>n||""},bC=(e,t)=>{const n=e.dir;return"string"==typeof n&&"string"==typeof t?tv({code:"INVALID_OPTION",message:'You must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks.'}):n},SC=(e,t)=>{const n=e.dynamicImportFunction;return n&&lv('The "output.dynamicImportFunction" option is deprecated. Use the "renderDynamicImport" plugin hook instead.',!1,t),n},CC=(e,t)=>{const n=e.entryFileNames;return null==n&&t.add("entryFileNames"),null!=n?n:"[name].js"};function xC(e,t){const n=e.exports;if(null==n)t.add("exports");else if(!["default","named","none","auto"].includes(n))return tv((r=n,{code:rv.INVALID_EXPORT_OPTION,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${r}"`,url:"https://rollupjs.org/guide/en/#outputexports"}));var r;return n||"auto"}const DC=(e,t)=>{if(t)return"";const n=e.indent;return!1===n?"":null==n||n},NC=(e,t,n,r)=>{const i=e.manualChunks||r.manualChunks;if(i){if(t)return tv({code:"INVALID_OPTION",message:'The "output.manualChunks" option is not supported for "output.inlineDynamicImports".'});if(n)return tv({code:"INVALID_OPTION",message:'The "output.manualChunks" option is not supported for "output.preserveModules".'})}return i||{}},wC=(e,t,n)=>{var r;return null!==(r=e.minifyInternalExports)&&void 0!==r?r:n||"es"===t||"system"===t};function OC(e){return async function(e,t){const{options:r,unsetOptions:i}=await async function(e,t){if(!e)throw new Error("You must supply an options object to rollup");const n=eC(e.plugins),{options:r,unsetOptions:i}=function(e){var t,n;const r=new Set,i=null!==(t=e.context)&&void 0!==t?t:"undefined",s=(e=>e.onwarn?t=>{t.toString=()=>{let e="";return t.plugin&&(e+=`(${t.plugin} plugin) `),t.loc&&(e+=`${ZT(t.loc.file)} (${t.loc.line}:${t.loc.column}) `),e+=t.message,e},e.onwarn(t,aC)}:aC)(e),o=e.strictDeprecations||!1,a={acorn:cC(e),acornInjectPlugins:uC(e),cache:hC(e),context:i,experimentalCacheExpiry:null!==(n=e.experimentalCacheExpiry)&&void 0!==n?n:10,external:pC(e.external),inlineDynamicImports:dC(e,s,o),input:fC(e),manualChunks:mC(e,s,o),moduleContext:gC(e,i),onwarn:s,perf:e.perf||!1,plugins:eC(e.plugins),preserveEntrySignatures:_C(e,r),preserveModules:EC(e,s,o),preserveSymlinks:e.preserveSymlinks||!1,shimMissingExports:e.shimMissingExports||!1,strictDeprecations:o,treeshake:yC(e,s,o)};return lC(e,[...Object.keys(a),"watch"],"input options",a.onwarn,/^(output)$/),{options:a,unsetOptions:r}}(await n.reduce(async(e,t)=>t.options&&t.options.call({meta:{rollupVersion:"2.23.0",watchMode:!1}},await e)||e,Promise.resolve(e)));return kC(r.plugins,"at position "),{options:r,unsetOptions:i}}(e);!function(e){e.perf?(gA={},void 0!==n&&"function"==typeof n.hrtime?(dA=n.hrtime.bind(n),fA=e=>{return 1e3*(t=n.hrtime(e))[0]+t[1]/1e6;var t}):"undefined"!=typeof performance&&"function"==typeof performance.now&&(dA=()=>[performance.now(),0],fA=e=>performance.now()-e[0]),void 0!==n&&"function"==typeof n.memoryUsage&&(mA=()=>n.memoryUsage().heapUsed),vA=EA,AA=yA,e.plugins=e.plugins.map(SA)):(vA=pA,AA=pA)}(r);const s=new ZS(r,null),o=!1!==e.cache;delete r.cache,delete e.cache,vA("BUILD",1);try{await s.pluginDriver.hookParallel("buildStart",[r]),await s.build()}catch(e){const t=Object.keys(s.watchFiles);throw t.length>0&&(e.watchFiles=t),await s.pluginDriver.hookParallel("buildEnd",[e]),e}await s.pluginDriver.hookParallel("buildEnd",[]),AA("BUILD",1);const a={cache:o?s.getCache():void 0,generate:async e=>RC(!1,r,i,e,s),watchFiles:Object.keys(s.watchFiles),write:async e=>RC(!0,r,i,e,s)};return r.perf&&(a.getTimings=TA),a}(e)}function kC(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.name||(r.name=`${t}${n+1}`)}}async function RC(e,t,n,r,i){const{options:s,outputPluginDriver:o,unsetOptions:a}=function(e,t,n,r){if(!e)throw new Error("You must supply an options object");const i=eC(e.plugins);kC(i,"at output position ");const s=t.createOutputPluginDriver(i);return{...IC(n,r,e,s),outputPluginDriver:s}}(r,i.pluginDriver,t,n),l=new ab(s,a,t,o,i),c=await l.generate(e);if(e){if(!s.dir&&!s.file)return tv({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.'});await Promise.all(Object.keys(c).map(e=>function(e,t){const n=Ue(t.dir||Me(t.file),e.fileName);let r,i;if("asset"===e.type)i=e.source;else if(i=e.code,t.sourcemap&&e.map){let s;"inline"===t.sourcemap?s=e.map.toUrl():(s=Ie(e.fileName)+".map",r=$S(n+".map",e.map.toString())),"hidden"!==t.sourcemap&&(i+=`//# sourceMappingURL=${s}\n`)}return Promise.all([$S(n,i),r])}(c[e],s))),await o.hookParallel("writeBundle",[s,c])}return u=c,{output:Object.keys(u).map(e=>u[e]).filter(e=>Object.keys(e).length>0).sort((e,t)=>{const n=PC(e),r=PC(t);return n===r?0:n<r?-1:1})};var u}function IC(e,t,n,r){return function(e,t,n){var r,i,s,o,a,l,c,u;const h=new Set(n),p=e.compact||!1,d=(e=>{const t=e.format;switch(t){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return t;default:return tv({message:'You must specify "output.format", which can be one of "amd", "cjs", "system", "es", "iife" or "umd".',url:"https://rollupjs.org/guide/en/#outputformat"})}})(e),f=((e,t)=>{var n;const r=(null!==(n=e.inlineDynamicImports)&&void 0!==n?n:t.inlineDynamicImports)||!1,{input:i}=t;return r&&(Array.isArray(i)?i:Object.keys(i)).length>1?tv({code:"INVALID_OPTION",message:'Multiple inputs are not supported for "output.inlineDynamicImports".'}):r})(e,t),m=((e,t,n)=>{var r;const i=(null!==(r=e.preserveModules)&&void 0!==r?r:n.preserveModules)||!1;if(i){if(t)return tv({code:"INVALID_OPTION",message:'The "output.inlineDynamicImports" option is not supported for "output.preserveModules".'});if(!1===n.preserveEntrySignatures)return tv({code:"INVALID_OPTION",message:'Setting "preserveEntrySignatures" to "false" is not supported for "output.preserveModules".'})}return i})(e,f,t),g=((e,t,n)=>{const r=e.file;if("string"==typeof r){if(t)return tv({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when using the "output.preserveModules" option.'});if(!Array.isArray(n.input))return tv({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when providing named inputs.'})}return r})(e,m,t),_={amd:vC(e),assetFileNames:null!==(r=e.assetFileNames)&&void 0!==r?r:"assets/[name]-[hash][extname]",banner:AC(e,"banner"),chunkFileNames:null!==(i=e.chunkFileNames)&&void 0!==i?i:"[name]-[hash].js",compact:p,dir:bC(e,g),dynamicImportFunction:SC(e,t),entryFileNames:CC(e,h),esModule:null===(s=e.esModule)||void 0===s||s,exports:xC(e,h),extend:e.extend||!1,externalLiveBindings:null===(o=e.externalLiveBindings)||void 0===o||o,file:g,footer:AC(e,"footer"),format:d,freeze:null===(a=e.freeze)||void 0===a||a,globals:e.globals||{},hoistTransitiveImports:null===(l=e.hoistTransitiveImports)||void 0===l||l,indent:DC(e,p),inlineDynamicImports:f,interop:null===(c=e.interop)||void 0===c||c,intro:AC(e,"intro"),manualChunks:NC(e,f,m,t),minifyInternalExports:wC(e,d,p),name:e.name,namespaceToStringTag:e.namespaceToStringTag||!1,noConflict:e.noConflict||!1,outro:AC(e,"outro"),paths:e.paths||{},plugins:eC(e.plugins),preferConst:e.preferConst||!1,preserveModules:m,sourcemap:e.sourcemap||!1,sourcemapExcludeSources:e.sourcemapExcludeSources||!1,sourcemapFile:e.sourcemapFile,sourcemapPathTransform:e.sourcemapPathTransform,strict:null===(u=e.strict)||void 0===u||u,systemNullSetters:e.systemNullSetters||!1};return lC(e,Object.keys(_),"output options",t.onwarn),{options:_,unsetOptions:h}}(r.hookReduceArg0Sync("outputOptions",[n.output||n],(e,t)=>t||e,e=>{const t=()=>e.error({code:rv.CANNOT_EMIT_FROM_OPTIONS_HOOK,message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...e,emitFile:t,setAssetSource:t}}),e,t)}var MC;function PC(e){return"asset"===e.type?MC.ASSET:e.isEntry?MC.ENTRY_CHUNK:MC.SECONDARY_CHUNK}!function(e){e[e.ENTRY_CHUNK=0]="ENTRY_CHUNK",e[e.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",e[e.ASSET=2]="ASSET"}(MC||(MC={}));const LC=0,FC="~dev-module",BC=e=>({name:"extFormatPlugin",transform(t,n){if(/\0/.test(n))return null;const{ext:r,filePath:i,format:s}=(e=>{const t=e.split("?"),n=ae(t[0]),r=n.split(".").pop().toLowerCase(),i=t.length>1?new URLSearchParams(t[1]):null,s=i?i.get("format"):null;return{filePath:n,ext:r,params:i,format:s}})(n);switch(s){case"url":return HC(e,this,t,i,r);case"text":return VC(t,i)}return $C.includes(r)?VC(t,i):UC[r]?HC(e,this,t,i,r):null}}),$C=["txt","frag","vert"],UC={svg:"image/svg+xml"},VC=(e,t)=>{const n=Ae(Ie(t));return`const ${n} = ${JSON.stringify(e)};export default ${n};`},HC=(e,t,n,r,i)=>{const s=UC[i];if(!s)return t.warn(`Unsupported url format for "${i}" extension.`),VC("",r);const o=Ae(Ie(r)),a=e.sys.encodeToBase64(n);return e.devMode&&a.length>4096&&t.warn("Importing large files will bloat your bundle size, please use external assets instead."),`const ${o} = 'data:${s};base64,${a}';export default ${o};`},GC=(e,t,n,r)=>({name:"extTransformsPlugin",async transform(i,s){if(/\0/.test(s))return null;const{data:o}=ts(s);if(null!=o){let i;const a=ge(s),l=await t.fs.readFile(a),c=await(async(e,t,n,r,i)=>{const s={config:e,sys:e.sys,fs:t.fs,cache:t.cache,diagnostics:[]},o={code:r,id:i,map:null,diagnostics:[],dependencies:[]},a=i.toLowerCase().endsWith(".css");if(a){const r=await Jg(e,t,n,i,i,o.code);o.code=r.styleText,o.dependencies=r.imports}for(const e of s.config.plugins)if(P(e.transform))try{let t;const n=e.transform(o.code,o.id,s);null!=n&&(t=P(n.then)?await n:n,null!=t&&(B(t)?o.code=t:(B(t.code)&&(o.code=t.code),B(t.id)&&(o.id=t.id),Array.isArray(t.dependencies)&&o.dependencies.push(...t.dependencies))))}catch(e){J(o.diagnostics,e)}if(o.diagnostics.push(...s.diagnostics),!a){const r=await Jg(e,t,n,i,o.id,o.code);o.code=r.styleText,o.dependencies=r.imports}return o})(e,t,n,l,a),u="hydrate"===r.platform&&"shadow"===o.encapsulation;if(o.tag&&(i=n.components.find(e=>e.tagName===o.tag),i&&t.moduleMap.get(i.sourceFilePath))){const n=e.outputTargets.filter(Sd),r=$e(e.srcDir,c.id);await Promise.all(n.map(async e=>{const n=Fe(e.collectionDir,r);await t.fs.writeFile(n,c.code)}))}const h=await t.worker.transformCssToEsm({file:c.id,input:c.code,tag:o.tag,encapsulation:o.encapsulation,mode:o.mode,commentOriginalSelector:u,sourceMap:e.sourceMap,minify:e.minifyCss,autoprefixer:e.autoprefixCss,docs:e.buildDocs});i&&(i.styleDocs=h.styleDocs);for(const e of c.dependencies)this.addWatchFile(e);return n.diagnostics.push(...c.diagnostics),n.diagnostics.push(...h.diagnostics),(Z(h.diagnostics)||Z(c.diagnostics))&&this.error("Plugin CSS transform error"),n.stylesUpdated.some(e=>e.styleTag===o.tag&&e.styleMode===o.mode&&e.styleText===h.styleText)||n.stylesUpdated.push({styleTag:o.tag,styleMode:o.mode,styleText:h.styleText}),{code:h.output,map:h.map,moduleSideEffects:!1}}return null}}),jC=e=>({name:"fileLoadPlugin",load(t){const n=ge(t);return t.endsWith(".d.ts")?"":e.readFile(n)}}),KC=e=>{const t=new Map;return{name:"lazyComponentPlugin",resolveId(n){const r=e.entryModules.find(e=>e.entryKey===n);return r?(t.set(n,r),n):null},load(e){const n=t.get(e);return n?n.cmps.map(WC).join("\n"):null}}},WC=e=>`export { ${e.componentClassName} as ${e.tagName.replace(/-/g,"_")} } from '${ae(e.sourceFilePath)}';`,zC=(e={})=>({name:"rindoLoaderPlugin",resolveId:t=>t in e?{id:t}:null,load:t=>t in e?e[t]:null}),XC=(e,t)=>({name:"pluginHelper",resolveId(n,r){if(/\0/.test(n))return null;if(n.endsWith("/")&&(n=n.slice(0,-1)),qC.has(n)){let i="";r&&(i=" from "+$e(e.rootDir,r));const s=q(t.diagnostics);s.header="Node Polyfills Required",s.messageText=`For the import "${n}" to be bundled${i}, ensure the "rollup-plugin-node-polyfills" plugin is installed and added to the rindo config plugins. Please see the bundling docs for more information.\n Further information: https://rindojs.web.app/docs/module-bundling`}return null}}),qC=new Set(["child_process","cluster","dgram","dns","module","net","readline","repl","tls","assert","console","constants","domain","events","path","punycode","querystring","_stream_duplex","_stream_passthrough","_stream_readable","_stream_writable","_stream_transform","string_decoder","sys","tty","crypto","fs","Buffer","buffer","global","http","https","os","process","stream","timers","url","util","vm","zlib"]),YC=(e,t)=>{const n=Xn.createPrinter();return{name:t.id+"TypescriptPlugin",load(t){if(Le(t)){const n=ge(t),r=Wh(e,n);if(r)return r.staticSourceFileText}return null},transform(r,i){if(Le(i)){const r=ge(i),s=Wh(e,r);if(s&&s.cmps.length>0){const e=Xn.transform(s.staticSourceFile,t.customTransformers).transformed[0];return n.printFile(e)}}return null}}},QC=(e,t)=>({name:"resolveIdWithTypeScript",async resolveId(n,r){if(/\0/.test(n)||!B(r))return null;const i=qn(e,t,n,r);if(i&&i.resolvedModule){const e=i.resolvedModule.resolvedFileName;if(B(e)&&!e.endsWith(".d.ts"))return e}return null}}),JC=(e,t)=>({name:"userIndexPlugin",async resolveId(n){if("@user-index-entrypoint"===n){const r=Fe(e.srcDir,"index.ts");return await t.fs.access(r)?r:n}return null},load:async e=>"@user-index-entrypoint"===e?"//! Autogenerated index":null}),ZC=(e,t,n,r,i)=>{if("worker"===r||"hydrate"===r)return{name:"workerPlugin",transform:(e,t)=>t.endsWith("?worker")||t.endsWith("?worker-inline")?ux():null};const s=new Map;return{name:"workerPlugin",buildStart(){s.clear()},resolveId:e=>e===sx?{id:e,moduleSideEffects:!1}:null,load:e=>e===sx?ax:null,async transform(r,o){if(/\0/.test(o))return null;if(o.endsWith("?worker")){const r=ge(o),i=nx(r),{code:a,dependencies:l,workerMsgId:c}=await tx(e,t,n,this,s,r),u=this.emitFile({type:"asset",source:a,name:i+".js"});return l.forEach(e=>this.addWatchFile(e)),{code:lx(u,i,c),moduleSideEffects:!1}}if(o.endsWith("?worker-inline")){const r=ge(o),i=nx(r),{code:a,dependencies:l,workerMsgId:c}=await tx(e,t,n,this,s,r),u=this.emitFile({type:"asset",source:a,name:i+".js"});return l.forEach(e=>this.addWatchFile(e)),{code:cx(u,i,c),moduleSideEffects:!1}}const a=ex(o);if(null!=a){const r=await tx(e,t,n,this,s,a);if(r)return i?{code:px(a,r.workerMsgId,r.exports),moduleSideEffects:!1}:{code:hx(a,r.exports),moduleSideEffects:!1}}return null}}},ex=e=>ix.some(t=>e.endsWith(t))?ge(e):null,tx=async(e,t,n,r,i,s)=>{let o=i.get(s);return o||(o=await rx(e,t,n,r,s),i.set(s,o)),o},nx=e=>{const t=e.split("/").filter(e=>!e.includes("index"));return(e=t[t.length-1]).replace(".tsx","").replace(".ts","")},rx=async(e,t,n,r,i)=>{const s=nx(i),o="rindo."+s,a=await dx(e,t,n,{platform:"worker",id:s,inputs:{[s]:i},inlineDynamicImports:!0});if(a){const s=(await a.generate({format:"commonjs",banner:"(()=>{\n",footer:"})();",intro:ox(o,e.devMode),esModule:!1,preferConst:!0,externalLiveBindings:!1})).output[0];s.imports.length>0&&r.error("Workers should not have any external imports: "+JSON.stringify(s.imports));let l=s.code;const c=await Hr(e,t,{input:l,sourceTarget:e.buildEs5?"es5":"es2017",isCore:!1,minify:e.minifyJs,inlineHelpers:!0});return n.diagnostics.push(...c.diagnostics),Z(c.diagnostics)||(l=c.output),{code:l,exports:s.exports,workerMsgId:o,dependencies:Object.keys(s.modules).filter(e=>!/\0/.test(e)&&e!==i)}}return null},ix=[".worker.ts",".worker.tsx",".worker/index.ts",".worker/index.tsx"],sx="@worker-helper",ox=(e,t)=>`\nconst exports = {};\nconst workerMsgId = '${e}';\nconst workerMsgCallbackId = workerMsgId + '.cb';\nconst getTransferables = (value) => {\n if (!!value) {\n if (value instanceof ArrayBuffer) {\n return [value];\n }\n if (value.constructor === Object) {\n return [].concat(...Object.keys(value).map(k => getTransferables(value[k])))\n }\n if (typeof value === 'object') {\n return getTransferables(value.buffer);\n }\n }\n return [];\n};\naddEventListener('message', async ({data}) => {\n if (data && data[0] === workerMsgId) {\n let id = data[1];\n let method = data[2];\n let args = data[3];\n let i = 0;\n let argsLen = args.length;\n let value;\n let err;\n\n try {\n for (; i < argsLen; i++) {\n if (Array.isArray(args[i]) && args[i][0] === workerMsgCallbackId) {\n const callbackId = args[i][1];\n args[i] = (...cbArgs) => {\n postMessage(\n [workerMsgCallbackId, callbackId, cbArgs]\n );\n };\n }\n }\n ${t?"\n value = exports[method](...args);\n if (!value || !value.then) {\n throw new Error('The exported method \"' + method + '\" does not return a Promise, make sure it is an \"async\" function');\n }\n value = await value;\n ":"\n value = await exports[method](...args);"}\n\n } catch (e) {\n value = null;\n ${t?"console.error(e);":""}\n err = {\n message: typeof e === 'string' ? e : e.message,\n stack: e.stack\n };\n value = undefined;\n }\n\n const transferables = getTransferables(value);\n ${t?"if (transferables.length > 0) console.debug('Transfering', transferables);":""}\n\n postMessage(\n [workerMsgId, id, value, err],\n transferables\n );\n }\n});\n`,ax="\nlet pendingIds = 0;\nlet callbackIds = 0;\nconst pending = new Map();\nconst callbacks = new Map();\n\nexport const createWorker = (workerPath, workerName, workerMsgId) => {\n const worker = new Worker(workerPath, {name:workerName});\n\n worker.addEventListener('message', ({data}) => {\n if (data) {\n const workerMsg = data[0];\n const id = data[1];\n const value = data[2];\n\n if (workerMsg === workerMsgId) {\n const err = data[3];\n const [resolve, reject, callbackIds] = pending.get(id);\n pending.delete(id);\n\n if (err) {\n reject(err);\n } else {\n if (callbackIds) {\n callbackIds.forEach(id => callbacks.delete(id));\n }\n resolve(value);\n }\n } else if (workerMsg === workerMsgId + '.cb') {\n try {\n callbacks.get(id)(...value);\n } catch (e) {\n console.error(e);\n }\n }\n }\n });\n\n return worker;\n};\n\nexport const createWorkerProxy = (worker, workerMsgId, exportedMethod) => (\n (...args) => new Promise((resolve, reject) => {\n let pendingId = pendingIds++;\n let i = 0;\n let argLen = args.length;\n let mainData = [resolve, reject];\n pending.set(pendingId, mainData);\n\n for (; i < argLen; i++) {\n if (typeof args[i] === 'function') {\n const callbackId = callbackIds++;\n callbacks.set(callbackId, args[i]);\n args[i] = [workerMsgId + '.cb', callbackId];\n (mainData[2] = mainData[2] || []).push(callbackId);\n }\n }\n const postMessage = (w) => (\n w.postMessage(\n [workerMsgId, pendingId, exportedMethod, args],\n args.filter(a => a instanceof ArrayBuffer)\n )\n );\n if (worker.then) {\n worker.then(postMessage);\n } else {\n postMessage(worker);\n }\n })\n);\n",lx=(e,t,n)=>`\nimport { createWorker } from '${sx}';\nexport const workerName = '${t}';\nexport const workerMsgId = '${n}';\nexport const workerPath = /*@__PURE__*/import.meta.ROLLUP_FILE_URL_${e};\nexport const worker = /*@__PURE__*/createWorker(workerPath, workerName, workerMsgId);\n`,cx=(e,t,n)=>`\nimport { createWorker } from '${sx}';\nexport const workerName = '${t}';\nexport const workerMsgId = '${n}';\nexport const workerPath = /*@__PURE__*/import.meta.ROLLUP_FILE_URL_${e};\nconst blob = new Blob(['importScripts("' + workerPath + '")'], { type: 'text/javascript' });\nconst url = URL.createObjectURL(blob);\nexport const worker = /*@__PURE__*/createWorker(url, workerName, workerMsgId);\nURL.revokeObjectURL(url);\n`,ux=()=>"\nexport const workerName = 'mocked-worker';\nexport const workerMsgId = workerName;\nexport const workerPath = workerName;\nexport const worker = { name: workerName };\n",hx=(e,t)=>`\nimport { createWorkerProxy } from '${sx}';\nimport { worker, workerName, workerMsgId } from '${e}?worker';\n${t.map(e=>`export const ${e} = /*@__PURE__*/createWorkerProxy(worker, workerMsgId, '${e}');`).join("\n")}\n`,px=(e,t,n)=>`\nimport { createWorkerProxy } from '${sx}';\nconst workerPromise = import('${e}?worker-inline').then(m => m.worker);\n${n.map(e=>`export const ${e} = /*@__PURE__*/createWorkerProxy(workerPromise, '${t}', '${e}');`).join("\n")}\n`,dx=async(e,t,n,r)=>{try{const i=fx(e,t,n,r),s=await OC(i);return t.rollupCache.set(r.id,s.cache),s}catch(r){n.hasError||ne(e,t,n,r)}},fx=(e,t,r,i)=>{var s;const o=dn(e.sys,t.fs,[".tsx",".ts",".js",".mjs",".json",".d.ts"]),a=function(e={}){const t=Object.assign({},xu,e),r=t.customResolveOptions,i=t.extensions,s=t.jail,o=[],a=new Map,l=new Map,c=function(e){let t;if(t=e.mainFields?e.mainFields:["module","main"],e.browser&&-1===t.indexOf("browser"))return["browser"].concat(t);if(!t.length)throw new Error("Please ensure at least one `mainFields` value is specified");return t}(t),u=-1!==c.indexOf("browser"),h=!0===t.preferBuiltins||!1===t.preferBuiltins,p=!h||t.preferBuiltins,d=t.rootDir||n.cwd();let f,m=t.dedupe;t.only&&(o.push("node-resolve: The `only` options is deprecated, please use `resolveOnly`"),t.resolveOnly=t.only),"function"!=typeof m&&(m=e=>t.dedupe.includes(e)||t.dedupe.includes(function(e){if(e.startsWith(".")||e.startsWith("/"))return null;const t=e.split("/");return"@"===t[0][0]?`${t[0]}/${t[1]}`:t[0]}(e)));const g=t.resolveOnly.map(e=>{if(e instanceof RegExp)return e;const t=e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${t}$`)}),_=new Map;let E;return{name:"node-resolve",buildStart(e){f=e;var t,n=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=pu(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){o=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw i}}}}(o);try{for(n.s();!(t=n.n()).done;){const e=t.value;this.warn(e)}}catch(e){n.e(e)}finally{n.f()}E=e.preserveSymlinks},generateBundle(){Au.clear(),vu.clear(),Tu.clear()},resolveId(e,n){var o=this;return uu((function*(){if("\0node-resolve:empty.js"===e)return e;if(/\0/.test(e))return null;const y=hu(e.split("#"),2),T=y[0],v=y[1],A=hu(T.split("?"),2),b=A[0],S=A[1],C=`${S?"?"+S:""}${v?"#"+v:""}`;e=b;const x=!n||m(e)?d:Me(n),D=_.get(n);if(u&&D){const t=Ue(x,e);if(!1===D[e]||!1===D[t])return"\0node-resolve:empty.js";const n=D[e]||D[t]||D[t+".js"]||D[t+".json"];n&&(e=n)}const N=e.split(/[/\\]/);let w=N.shift(),O=!1;if("@"===w[0]&&N.length>0?w+="/"+N.shift():"."===w[0]&&(w=Ue(x,e),O=!0),!O&&g.length&&!g.some(e=>e.test(w)))return!!(k=f.input,Array.isArray(k)?k:"object"==typeof k?Object.values(k):[k]).includes(e)&&null;var k;let R,I=Cu,M=!0,P=!1,L={basedir:x,packageFilter:(e,t)=>{const n=function(e){const t=e.cache,n=e.extensions,r=e.pkg,i=e.mainFields,s=e.preserveSymlinks,o=e.useBrowserOverrides;let a=e.pkgPath;if(t.has(a))return t.get(a);s||(a=Ot(a));const l=Me(a),c={packageJson:Object.assign({},r),packageJsonPath:a,root:l,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""};let u=!1;for(let e=0;e<i.length;e++){const t=i[e];if("string"==typeof r[t]){r.main=r[t],c.resolvedMainField=t,u=!0;break}}const h={cachedPkg:r,hasModuleSideEffects:()=>null,hasPackageEntry:!1!==u||-1!==i.indexOf("main"),packageBrowserField:o&&"object"==typeof r.browser&&Object.keys(r.browser).reduce((e,t)=>{let i=r.browser[t];if(i&&"."===i[0]&&(i=Ue(l,i)),e[t]=i,"."===t[0]){const r=Ue(l,t);e[r]=i,Pe(t)||n.reduce((e,n)=>(e[r+n]=e[t],e),e)}return e},{}),packageInfo:c},p=h.packageBrowserField;o&&"object"==typeof r.browser&&p.hasOwnProperty(r.main)?(c.resolvedEntryPoint=p[r.main],c.browserMappedMain=!0):(c.resolvedEntryPoint=Ue(l,r.main||"index.js"),c.browserMappedMain=!1);const d=r.sideEffects;return"boolean"==typeof d?h.hasModuleSideEffects=()=>d:Array.isArray(d)&&(h.hasModuleSideEffects=zo(d,null,{resolve:l})),t.set(a,h),h}({cache:a,extensions:i,pkg:e,pkgPath:t,mainFields:c,preserveSymlinks:E,useBrowserOverrides:u});return R=n.packageInfo,I=n.hasModuleSideEffects,M=n.hasPackageEntry,P=n.packageBrowserField,n.cachedPkg},readFile:Au,isFile:vu,isDirectory:Tu,extensions:i};void 0!==E&&(L.preserveSymlinks=E);const F=[];void 0!==n||e[0].match(/^\.?\.?\//)||F.push("./"+e);const B=Su.has(e);if(!B||p&&h||F.push(e+"/"),n&&e.endsWith(".js"))for(var $=0,U=[".ts",".tsx"];$<U.length;$++){const t=U[$];n.endsWith(t)&&i.includes(t)&&F.push(e.replace(/.js$/,t))}F.push(e),L=Object.assign(L,r);try{let n=yield function(e,t){let n=Promise.resolve();for(let r=0;r<e.length;r++)n=n.then(n=>n||bu(e[r],t).then(e=>(t.preserveSymlinks||(e=Ot(e)),e))),r<e.length-1&&(n=n.catch(e=>{if("MODULE_NOT_FOUND"!==e.code)throw e}));return n}(F,L);if(n&&P){if(Object.prototype.hasOwnProperty.call(P,n)){if(!P[n])return _.set(n,P),"\0node-resolve:empty.js";n=P[n]}_.set(n,P)}if(M&&!E&&n&&(yield fu(n))&&(n=yield gu(n)),l.set(n,R),M){if(Su.has(n)&&p&&h)return null;if(B&&p)return h||o.warn(`preferring built-in module '${e}' over local alternative at '${n}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`),null;if(s&&0!==n.indexOf(Be(s.trim(Ve))))return null}if(n&&t.modulesOnly){return V=yield mu(n,"utf-8"),au.test(V)||lu.test(V)?{id:`${n}${C}`,moduleSideEffects:I(n)}:null}return{id:`${n}${C}`,moduleSideEffects:I(n)}}catch(e){return null}var V}))()},load:e=>"\0node-resolve:empty.js"===e?"export default {};":null,getPackageInfoForId:e=>l.get(e)}}(Object.assign({mainFields:["collection:main","jsnext:main","es2017","es2015","module","main"],customResolveOptions:o,browser:!0,rootDir:e.rootDir},e.nodeResolve)),l=a.resolveId,c=a.resolveId=async function(e,t){const[n,r]=e.split("?"),i=await l.call(a,n,t);return i?B(i)?r?i+"?"+r:i:Object.assign(Object.assign({},i),{id:r?i.id+"?"+r:i.id}):i};e.devServer&&e.devServer.experimentalDevModules&&(a.resolveId=async function(n,r){const i=await c.call(a,n,r);return(async(e,t,n,r)=>{if(!((e,t)=>e&&t&&e.id&&e.id.includes("node_modules")&&(e.id.endsWith(".js")||e.id.endsWith(".mjs"))&&!e.external&&!t.startsWith(".")&&!t.startsWith("/"))(n,r))return n;const i=n.id,s=((e,t)=>{let n=e;for(let e=0;e<10;e++){n=Me(n);const e=Ie(n),r=Me(n),i=Ie(r);if(e===t&&"node_modules"===i)return Fe(n,"package.json")}return null})(i,r);if(!s)return n;const o=await t.readFile(s);if(!o)return n;let a;try{a=JSON.parse(o)}catch(e){}return a&&a.version?(n.id=((e,t,n,r)=>{r=$e(e.rootDir,r);let i=`/${FC}/`;return i+=encodeURIComponent(t)+"@",i+=encodeURIComponent(n)+".js",i+="?p="+encodeURIComponent(r),i})(e,a.name,a.version,i),n.external=!0,n):n})(e,t.fs,i,n)});const u=e.rollupPlugins.before||[],h=e.rollupPlugins.after||[];return{input:i.inputs,plugins:[U_(e,t,i.platform,i.externalRuntime),M_(e,t,r,i.conditionals,i.platform),KC(r),zC(i.loader),JC(e,t),YC(t,i),BC(e),GC(e,t,r,i),ZC(e,t,r,i.platform,!!i.inlineWorkers),...u,a,QC(e,t),Xc(Object.assign({include:/node_modules/,sourceMap:e.sourceMap,transformMixedEsModules:!1},e.commonjs)),...h,XC(e,r),qc({preferConst:!0}),wu({"process.env.NODE_ENV":e.devMode?'"development"':'"production"'}),jC(t.fs)],treeshake:mx(e,i),inlineDynamicImports:i.inlineDynamicImports,preserveEntrySignatures:null!==(s=i.preserveEntrySignatures)&&void 0!==s?s:"strict",onwarn:re(r.diagnostics),cache:t.rollupCache.get(i.id)}},mx=(e,t)=>("hydrate"===t.platform||!e.devMode&&!1!==e.rollupConfig.inputOptions.treeshake)&&{propertyReadSideEffects:!1,tryCatchDeoptimization:!1},gx=e=>{const t=e.some(e=>e.htmlTagNames.includes("slot")),n=e.some(e=>"shadow"===e.encapsulation),r=e.some(e=>"shadow"!==e.encapsulation&&e.htmlTagNames.includes("slot")),i={allRenderFn:e.every(e=>e.hasRenderFn),cmpDidLoad:e.some(e=>e.hasComponentDidLoadFn),cmpShouldUpdate:e.some(e=>e.hasComponentShouldUpdateFn),cmpDidUnload:e.some(e=>e.hasComponentDidUnloadFn),cmpDidUpdate:e.some(e=>e.hasComponentDidUpdateFn),cmpDidRender:e.some(e=>e.hasComponentDidRenderFn),cmpWillLoad:e.some(e=>e.hasComponentWillLoadFn),cmpWillUpdate:e.some(e=>e.hasComponentWillUpdateFn),cmpWillRender:e.some(e=>e.hasComponentWillRenderFn),connectedCallback:e.some(e=>e.hasConnectedCallbackFn),disconnectedCallback:e.some(e=>e.hasDisconnectedCallbackFn),element:e.some(e=>e.hasElement),event:e.some(e=>e.hasEvent),hasRenderFn:e.some(e=>e.hasRenderFn),lifecycle:e.some(e=>e.hasLifecycle),asyncLoading:!1,hostListener:e.some(e=>e.hasListener),hostListenerTargetWindow:e.some(e=>e.hasListenerTargetWindow),hostListenerTargetDocument:e.some(e=>e.hasListenerTargetDocument),hostListenerTargetBody:e.some(e=>e.hasListenerTargetBody),hostListenerTargetParent:e.some(e=>e.hasListenerTargetParent),hostListenerTarget:e.some(e=>e.hasListenerTarget),member:e.some(e=>e.hasMember),method:e.some(e=>e.hasMethod),mode:e.some(e=>e.hasMode),observeAttribute:e.some(e=>e.hasAttribute),prop:e.some(e=>e.hasProp),propBoolean:e.some(e=>e.hasPropBoolean),propNumber:e.some(e=>e.hasPropNumber),propString:e.some(e=>e.hasPropString),propMutable:e.some(e=>e.hasPropMutable),reflect:e.some(e=>e.hasReflect),scoped:e.some(e=>"scoped"===e.encapsulation),shadowDom:n,shadowDelegatesFocus:n&&e.some(e=>e.shadowDelegatesFocus),slot:t,slotRelocation:r,state:e.some(e=>e.hasState),style:e.some(e=>e.hasStyle),svg:e.some(e=>e.htmlTagNames.includes("svg")),updatable:e.some(e=>e.isUpdateable),vdomAttribute:e.some(e=>e.hasVdomAttribute),vdomXlink:e.some(e=>e.hasVdomXlink),vdomClass:e.some(e=>e.hasVdomClass),vdomFunctional:e.some(e=>e.hasVdomFunctional),vdomKey:e.some(e=>e.hasVdomKey),vdomListener:e.some(e=>e.hasVdomListener),vdomPropOrAttr:e.some(e=>e.hasVdomPropOrAttr),vdomRef:e.some(e=>e.hasVdomRef),vdomRender:e.some(e=>e.hasVdomRender),vdomStyle:e.some(e=>e.hasVdomStyle),vdomText:e.some(e=>e.hasVdomText),watchCallback:e.some(e=>e.hasWatchCallback),taskQueue:!0};return i.asyncLoading=i.cmpWillUpdate||i.cmpWillLoad||i.cmpWillRender,i.vdomAttribute=i.vdomAttribute||i.reflect,i.vdomPropOrAttr=i.vdomPropOrAttr||i.reflect,i},_x=(e,t,n)=>{let r=e.get(t);return null==r&&(r=e.get(t+".tsx"),null==r&&(r=e.get(t+".ts"),null==r&&(r=e.get(t+".js")))),null==r||n.some(e=>e.sourceFilePath===r.sourceFilePath)||(n.push(r),r.localImports.forEach(t=>{_x(e,t,n)})),n},Ex=(e,t)=>{t.isDebug="debug"===e.logLevel,t.isDev=!!e.devMode,t.isTesting=!!e._isTesting,t.devTools=t.isDev&&!e._isTesting,t.profile=!!e.profile,t.hotModuleReplacement=!(!e.devMode||!e.devServer||"hmr"!==e.devServer.reloadStrategy||e._isTesting),t.updatable=t.updatable||t.hydrateClientSide||t.hotModuleReplacement,t.member=t.member||t.updatable||t.mode||t.lifecycle,t.constructableCSS=!t.hotModuleReplacement||!!e._isTesting,t.asyncLoading=!!(t.asyncLoading||t.lazyLoad||t.taskQueue||t.initializeNextTick),t.cssAnnotations=!0,t.appendChildSlotFix=e.extras.appendChildSlotFix,t.slotChildNodesFix=e.extras.slotChildNodesFix,t.cloneNodeFix=e.extras.cloneNodeFix,t.dynamicImportShim=e.extras.dynamicImportShim,t.lifecycleDOMEvents=!!(t.isDebug||e._isTesting||e.extras.lifecycleDOMEvents),t.safari10=e.extras.safari10,t.scriptDataOpts=e.extras.scriptDataOpts,t.shadowDomShim=e.extras.shadowDomShim,t.attachStyles=!0,t.shadowDomShim&&(t.slotRelocation=t.slot),e.hydratedFlag?(t.hydratedAttribute="attribute"===e.hydratedFlag.selector,t.hydratedClass="class"===e.hydratedFlag.selector):(t.hydratedAttribute=!1,t.hydratedClass=!1)},yx=(e,t)=>{const n=gx(t);return n.lazyLoad=!1,n.hydrateClientSide=!1,n.hydrateServerSide=!1,n.asyncQueue="congestionAsync"===e.taskQueue,n.taskQueue="immediate"!==e.taskQueue,Ex(e,n),n.devTools=!1,n},Tx=async(e,t,n)=>{if(!e.buildDist)return;const r=e.outputTargets.filter(xd);if(0===r.length)return;const i=n.createTimeSpan("generate custom elements bundle started");await Promise.all(r.map(r=>vx(e,t,n,r))),i.finish("generate custom elements bundle finished")},vx=async(e,t,n,r)=>{try{const i={id:"customElementsBundle",platform:"client",conditionals:yx(e,n.components),customTransformers:bx(e,t),externalRuntime:!!r.externalRuntime,inlineWorkers:!0,inputs:{index:"\0core"},loader:{"\0core":Ax(n)},inlineDynamicImports:r.inlineDynamicImports,preserveEntrySignatures:"allow-extension"},s=await dx(e,t,n,i);if(s){const i=(await s.generate({format:"esm",sourcemap:e.sourceMap,chunkFileNames:r.externalRuntime||!e.hashFileNames?"[name].js":"p-[hash].js",entryFileNames:"[name].js",hoistTransitiveImports:!1,preferConst:!0})).output.map(async i=>{if("chunk"===i.type){let s=i.code;const o=await Hr(e,t,{input:s,isCore:i.isEntry,minify:!r.externalRuntime&&e.minifyJs});n.diagnostics.push(...o.diagnostics),Z(o.diagnostics)||"string"!=typeof o.output||(s=o.output),await t.fs.writeFile(Fe(r.dir,i.fileName),s,{outputTargetType:r.type})}});await Promise.all(i)}}catch(e){J(n.diagnostics,e)}},Ax=e=>{const t=[],n=[],r=[];return t.push("import { proxyCustomElement } from '@rindo/core/internal/client';","export { setAssetPath } from '@rindo/core/internal/client';","export * from '@user-index-entrypoint';",`import { globalScripts } from '${ds}';`,"globalScripts();"),e.components.forEach(e=>{const i=D(e.tagName),s=e.componentClassName,o="$Cmp"+i;if(e.isPlain)n.push(`export { ${s} as ${i} } from '${e.sourceFilePath}';`);else{const r=f(d(e,!1));t.push(`import { ${s} as ${o} } from '${e.sourceFilePath}';`),n.push(`export const ${i} = /*@__PURE__*/proxyCustomElement(${o}, ${r});`)}r.push(i)}),n.push("export const defineCustomElements = (opts) => {"),n.push(" if (typeof customElements !== 'undefined') {"),n.push(" ["),n.push(" "+r.join(",\n ")),n.push(" ].forEach(cmp => {"),n.push(" if (!customElements.get(cmp.is)) {"),n.push(" customElements.define(cmp.is, cmp, opts);"),n.push(" }"),n.push(" });"),n.push(" }"),n.push("};"),[...t,...n].join("\n")+"\n"},bx=(e,t)=>{const n={coreImportPath:"@rindo/core/internal/client",componentExport:null,componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[od(n.coreImportPath),sd(t,n),k_(t)]},Sx="\x3c!-- Auto Generated Below --\x3e",Cx=async(e,t,n)=>{const r=await Promise.all(n.moduleFiles.map(async r=>{const i=r.sourceFilePath,s=ae(Me(i)),o=ae(Fe(s,"readme.md")),a=ae(Fe(s,"usage")),l=await Ux(t,o),c=await Hx(t,a);return r.cmps.filter(e=>!e.internal&&!e.isCollectionDependency).map(t=>({dirPath:s,filePath:$e(e.rootDir,i),fileName:Ie(i),readmePath:o,usagesDir:a,tag:t.tagName,readme:l,usage:c,docs:Vx(l,t.docs),docsTags:t.docs.tags,encapsulation:Dx(t),dependents:t.directDependents,dependencies:t.directDependencies,dependencyGraph:xx(t,n.components),deprecation:Lx(t.docs.tags),props:Nx(t),methods:Rx(t.methods),events:Ix(t.events),styles:Mx(t),slots:Fx(t.docs.tags),parts:Bx(t.htmlParts,t.docs.tags),listeners:Px(t.listeners)}))}));return O(k(r),e=>e.tag)},xx=(e,t)=>{const n={};return function e(r){if(!n[r]){const i=t.find(e=>e.tagName===r).directDependencies;i.length>0&&(n[r]=i,i.forEach(e))}}(e.tagName),e.directDependents.forEach(t=>{n[t]&&!n[t].includes(e.tagName)?n[t].push(e.tagName):n[t]=[e.tagName]}),n},Dx=e=>"shadow"===e.encapsulation?"shadow":"scoped"===e.encapsulation?"scoped":"none",Nx=e=>O([...wx(e.properties),...Ox(e.virtualProperties)],e=>e.name),wx=e=>e.filter(e=>!e.internal).map(e=>({name:e.name,type:e.complexType.resolved,mutable:e.mutable,attr:e.attribute,reflectToAttr:!!e.reflect,docs:e.docs.text,docsTags:e.docs.tags,default:e.defaultValue,deprecation:Lx(e.docs.tags),values:kx(e.complexType.resolved),optional:e.optional,required:e.required})),Ox=e=>e.map(e=>({name:e.name,type:e.type,mutable:!1,attr:e.name,reflectToAttr:!1,docs:e.docs,docsTags:[],default:void 0,deprecation:void 0,values:kx(e.type),optional:!0,required:!1})),kx=e=>{if("string"==typeof e){const t=e.split("|").map(e=>e.trim()),n=[];return t.forEach(e=>{"true"!==e?"false"!==e?Number.isNaN(parseFloat(e))?/^("|').+("|')$/gm.test(e)?n.push({value:e.slice(1,-1),type:"string"}):n.push({type:e}):n.push({value:e,type:"number"}):n.push({value:"false",type:"boolean"}):n.push({value:"true",type:"boolean"})}),n}return[]},Rx=e=>O(e,e=>e.name).filter(e=>!e.internal).map(e=>({name:e.name,returns:{type:e.complexType.return,docs:e.docs.tags.filter(e=>"return"===e.name).join("\n")},signature:`${e.name}${e.complexType.signature}`,parameters:[],docs:e.docs.text,docsTags:e.docs.tags,deprecation:Lx(e.docs.tags)})),Ix=e=>O(e,e=>e.name.toLowerCase()).filter(e=>!e.internal).map(e=>({event:e.name,detail:e.complexType.resolved,bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed,docs:e.docs.text,docsTags:e.docs.tags,deprecation:Lx(e.docs.tags)})),Mx=e=>e.styleDocs?O(e.styleDocs,e=>e.name.toLowerCase()).map(e=>({name:e.name,annotation:e.annotation||"",docs:e.docs||""})):[],Px=e=>e.map(e=>({event:e.name,target:e.target,capture:e.capture,passive:e.passive})),Lx=e=>{const t=e.find(e=>"deprecated"===e.name);if(t)return t.text||""},Fx=e=>O($x("slot",e).map(([e,t])=>({name:e,docs:t})),e=>e.name),Bx=(e,t)=>{const n=$x("part",t).map(([e,t])=>({name:e,docs:t})),r=e.map(e=>({name:e,docs:""}));return O(R([...n,...r],e=>e.name),e=>e.name)},$x=(e,t)=>t.filter(t=>t.name===e&&t.text).map(({text:e})=>{const[t,...n]=(" "+e).split(" - ");return[t.trim(),n.join(" - ").trim()]}),Ux=async(e,t)=>{try{const n=await e.fs.readFile(t),r=n.indexOf(Sx)-1;if(r>=0)return n.substring(0,r)}catch(e){}},Vx=(e,t)=>{const n=t.text;if(""!==n||!e)return n;let r=!1;const i=e.split("\n"),s=[];for(const e of i){const t=e.startsWith("#");if(t&&r)break;t||r||(r=!0),r&&s.push(e)}return s.join("\n").trim()},Hx=async(e,t)=>{const n={};try{const r=await e.fs.readdir(t),i={};await Promise.all(r.map(async t=>{if(!t.isFile)return;const n=Ie(t.relPath);if(!n.toLowerCase().endsWith(".md"))return;const r=n.split(".");r.pop();const s=r.join(".");i[s]=await e.fs.readFile(t.absPath)})),Object.keys(i).sort().forEach(e=>{n[e]=i[e]})}catch(e){}return n},Gx=async(e,t,n)=>{const r=n.filter(Fd);0!==r.length&&await Promise.all(r.map(async n=>{try{await n.generator(t)}catch(t){e.logger.error("uncaught custom docs error: "+t)}}))},jx=async(e,t,n,r)=>{const i=r.filter(Ld);if(0===i.length)return;const s=Fe(e.sys.getCompilerExecutingPath(),"..","..","internal","rindo-public-docs.d.ts"),o=`\n/**\n * This is an autogenerated file created by the Rindo compiler.\n * DO NOT MODIFY IT MANUALLY\n */\n${await t.fs.readFile(s)}\ndeclare const _default: JsonDocs;\nexport default _default;\n`,a=Object.assign(Object.assign({},n),{components:n.components.map(e=>({filePath:e.filePath,encapsulation:e.encapsulation,tag:e.tag,readme:e.readme,docs:e.docs,docsTags:e.docsTags,usage:e.usage,props:e.props,methods:e.methods,events:e.events,listeners:e.listeners,styles:e.styles,slots:e.slots,parts:e.parts,dependents:e.dependents,dependencies:e.dependencies,dependencyGraph:e.dependencyGraph,deprecation:e.deprecation}))}),l=JSON.stringify(a,null,2);await Promise.all(i.map(e=>Kx(t,e,l,o)))},Kx=async(e,t,n,r)=>Promise.all([e.fs.writeFile(t.file,n),t.typesFile?e.fs.writeFile(t.typesFile,r):Promise.resolve()]);class Wx{constructor(){this.rows=[]}addHeader(e){this.addRow(e,!0)}addRow(e,t=!1){const n=[];e.forEach(e=>{const t={text:zx(e),width:e.length};n.push(t)}),this.rows.push({columns:n,isHeader:t})}toMarkdown(){return Xx(this.rows)}}const zx=e=>(e=e.replace(/\r?\n/g," ")).replace(/\|/g,"\\|"),Xx=e=>{const t=[];if(0===e.length)return t;Qx(e),Jx(e);const n=e.find(e=>e.isHeader);if(n){const e=Yx(n);t.push(e),t.push(qx(n))}return e.filter(e=>!e.isHeader).forEach(e=>{t.push(Yx(e))}),t},qx=e=>{const t={columns:[],isHeader:!1};return e.columns.forEach(e=>{const n={text:"",width:e.width};for(;n.text.length<n.width;)n.text+="-";t.columns.push(n)}),Yx(t)},Yx=e=>{const t=["| "];return e.columns.forEach(e=>{t.push(e.text),t.push(" | ")}),t.join("").trim()},Qx=e=>{let t=0;e.forEach(e=>{e.columns.length>t&&(t=e.columns.length)}),e.forEach(e=>{for(;e.columns.length<t;)e.columns.push({text:"",width:0})})},Jx=e=>{const t=e[0].columns.length;for(let n=0;n<t;n++){let t=0;e.forEach(e=>{const r=e.columns[n];r.text.length>t&&(t=r.text.length)}),e.forEach(e=>{const r=e.columns[n];for(r.width=t;r.text.length<t;)r.text+=" "})}},Zx=e=>{const t=[];if(0===e.length)return t;t.push("## Properties"),t.push("");const n=new Wx;return n.addHeader(["Property","Attribute","Description","Type","Default"]),e.forEach(e=>{n.addRow([eD(e),tD(e),nD(e),`\`${e.type}\``,`\`${e.default}\``])}),t.push(...n.toMarkdown()),t.push(""),t.push(""),t},eD=e=>`\`${e.name}\`${e.required?" _(required)_":""}`,tD=e=>e.attr?`\`${e.attr}\``:"--",nD=e=>`${void 0!==e.deprecation?`<span style="color:red">**[DEPRECATED]**</span> ${e.deprecation}<br/><br/>`:""}${e.docs}`,rD=e=>{const t=[];if(0===e.length)return t;t.push("## Events"),t.push("");const n=new Wx;return n.addHeader(["Event","Description","Type"]),e.forEach(e=>{n.addRow([`\`${e.event}\``,iD(e),`\`CustomEvent<${e.detail}>\``])}),t.push(...n.toMarkdown()),t.push(""),t.push(""),t},iD=e=>`${void 0!==e.deprecation?`<span style="color:red">**[DEPRECATED]**</span> ${e.deprecation}<br/><br/>`:""}${e.docs}`,sD=e=>{const t=[];return 0===e.length||(t.push("## Methods"),t.push(""),e.forEach(e=>{if(t.push(`### \`${e.signature}\``),t.push(""),t.push(oD(e)),t.push(""),e.parameters.length>0){const n=new Wx;n.addHeader(["Name","Type","Description"]),e.parameters.forEach(({name:e,type:t,docs:r})=>{n.addRow(["`"+e+"`","`"+t+"`",r])}),t.push("#### Parameters"),t.push(""),t.push(...n.toMarkdown()),t.push("")}e.returns&&(t.push("#### Returns"),t.push(""),t.push(`Type: \`${e.returns.type}\``),t.push(""),t.push(e.returns.docs),t.push(""))}),t.push("")),t},oD=e=>`${void 0!==e.deprecation?`<span style="color:red">**[DEPRECATED]**</span> ${e.deprecation}<br/><br/>`:""}${e.docs}`,aD=e=>{const t=[],n=lD(e);return 0===n.length||(t.push("## Usage"),n.forEach(({name:e,text:n})=>{t.push(""),t.push("### "+N(e)),t.push(""),t.push(n),t.push("")}),t.push(""),t.push("")),t},lD=e=>{const t=Object.keys(e),n=new Map;t.forEach(t=>{const r=e[t].trim(),i=n.get(r)||[];i.push(t),n.set(r,i)});const r=[];return n.forEach((e,t)=>{r.push({name:e.join(" / "),text:t})}),r},cD=e=>{const t=[];if(0===e.length)return t;t.push("## CSS Custom Properties"),t.push("");const n=new Wx;return n.addHeader(["Name","Description"]),e.forEach(e=>{n.addRow([`\`${e.name}\``,e.docs])}),t.push(...n.toMarkdown()),t.push(""),t.push(""),t},uD=e=>{const t=[];if(0===e.length)return t;t.push("## Slots"),t.push("");const n=new Wx;return n.addHeader(["Slot","Description"]),e.forEach(e=>{n.addRow([""===e.name?"":`\`"${e.name}"\``,e.docs])}),t.push(...n.toMarkdown()),t.push(""),t.push(""),t},hD=e=>{const t=[];if(0===e.length)return t;t.push("## Shadow Parts"),t.push("");const n=new Wx;return n.addHeader(["Part","Description"]),e.forEach(e=>{n.addRow([""===e.name?"":`\`"${e.name}"\``,e.docs])}),t.push(...n.toMarkdown()),t.push(""),t.push(""),t},pD=(e,t,n)=>{const r=n.find(e=>e.tag===t);if(r){const n=ae($e(e.dirPath,r.dirPath));return`[${t}](${n})`}return t},dD=e=>void 0!==e.deprecation?["> **[DEPRECATED]** "+e.deprecation,""]:[],fD=async(e,t,n,r)=>{const i=r.filter(Pd);0!==i.length&&(i.some(e=>e.strict)&&mD(e,n),await Promise.all(n.components.map(r=>(async(e,t,n,r,i)=>{const s=!!r.readme,o=s?r.readme:(e=>["# "+e.tag,"","",""].join("\n"))(r);await Promise.all(n.map(async n=>{if(n.dir){const a=((e,t,n,r)=>{const i=!1!==r.dependencies?((e,t)=>{const n=[],r=Object.entries(e.dependencyGraph);if(0===r.length)return n;if(n.push("## Dependencies"),n.push(""),e.dependents.length>0){const r=e.dependents.map(n=>" - "+pD(e,n,t));n.push("### Used by"),n.push(""),n.push(...r),n.push("")}if(e.dependencies.length>0){const r=e.dependencies.map(n=>"- "+pD(e,n,t));n.push("### Depends on"),n.push(""),n.push(...r),n.push("")}return n.push("### Graph"),n.push("```mermaid"),n.push("graph TD;"),r.forEach(([e,t])=>{t.forEach(t=>{n.push(` ${e} --\x3e ${t}`)})}),n.push(` style ${e.tag} fill:#f9f,stroke:#333,stroke-width:4px`),n.push("```"),n.push(""),n})(t,n):[];return[e,Sx,"","",...dD(t),...aD(t.usage),...Zx(t.props),...rD(t.events),...sD(t.methods),...uD(t.slots),...hD(t.parts),...cD(t.styles),...i,"----------------------------------------------","",r.footer,""].join("\n")})(o,r,i,n),l=$e(e.srcDir,r.readmePath),c=Fe(n.dir,l);(await t.fs.writeFile(c,a)).changedContent&&(s?e.logger.info("updated readme docs: "+r.tag):e.logger.info("created readme docs: "+r.tag))}}))})(e,t,i,r,n.components))))},mD=(e,t)=>{t.components.forEach(t=>{t.props.forEach(n=>{n.docs||void 0!==n.deprecation||e.logger.warn(`Property "${n.name}" of "${t.tag}" is not documented. ${t.filePath}`)}),t.methods.forEach(n=>{n.docs||void 0!==n.deprecation||e.logger.warn(`Method "${n.name}" of "${t.tag}" is not documented. ${t.filePath}`)}),t.events.forEach(n=>{n.docs||void 0!==n.deprecation||e.logger.warn(`Event "${n.event}" of "${t.tag}" is not documented. ${t.filePath}`)}),t.parts.forEach(n=>{""===n.docs&&e.logger.warn(`Part "${n.name}" of "${t.tag}" is not documented. ${t.filePath}`)})})},gD=async(e,t,n)=>{const r=n.filter(Bd);0!==r.length&&await Promise.all(r.map(async n=>{const r={version:1.1,tags:t.components.map(e=>({name:e.tag,description:{kind:"markdown",value:e.docs},attributes:e.props.filter(e=>e.attr).map(ED),references:_D(e,n.sourceCodeBaseUrl)}))},i=JSON.stringify(r,null,2);await e.fs.writeFile(n.file,i)}))},_D=(e,t)=>{const n=$x("reference",e.docsTags).map(([e,t])=>({name:e,url:t}));if(t&&n.push({name:"Source code",url:Fe(t,e.filePath)}),n.length>0)return n},ED=e=>{const t={name:e.attr,description:e.docs},n=e.values.filter(({type:e,value:t})=>"string"===e&&void 0!==t).map(({value:e})=>({name:e}));return n.length>0&&(t.values=n),t},yD=async(e,t,n,r,i)=>{const s=i.filter(Id);0!==s.length&&await Promise.all(s.map(async i=>{const s=n.createTimeSpan(`generating ${i.name} started`);try{await i.generator(e,t,n,r)}catch(e){J(n.diagnostics,e)}s.finish(`generate ${i.name} finished`)}))},TD=e=>{const t=gx(e);return t.lazyLoad=!0,t.hydrateServerSide=!0,t.cssVarShim=!1,t.hydrateClientSide=!0,t.isDebug=!1,t.isDev=!1,t.isTesting=!1,t.devTools=!1,t.lifecycleDOMEvents=!1,t.profile=!1,t.hotModuleReplacement=!1,t.updatable=!0,t.member=!0,t.constructableCSS=!1,t.asyncLoading=!0,t.appendChildSlotFix=!1,t.slotChildNodesFix=!1,t.cloneNodeFix=!1,t.cssAnnotations=!0,t.shadowDomShim=!0,t.safari10=!1,t.hydratedAttribute=!1,t.hydratedClass=!0,t.scriptDataOpts=!1,t.dynamicImportShim=!1,t.attachStyles=!0,t},vD=e=>"-",AD=e=>e.properties.reduce((e,t)=>(t.reflect&&e.push([t.name,t.attribute]),e),[]),bD=(e,t,n)=>{const r=wp(e);return Up(r,t,n),vp(r,t,n),Np(r,n),((e,t)=>{const n=d(t,!0),r={$flags$:n[0],$tagName$:n[1],$members$:n[2],$listeners$:n[3],$lazyBundleId$:vD(),$attrsToReflect$:AD(t)};1&r.$flags$&&(r.$flags$|=8);const i=Rs("cmpMeta",ws(r));((e,t)=>{const n=Ap(t);n&&e.push(Rs("style",n))})(e,t),e.push(i)})(r,n),kp(r,t),r},SD=(e,t)=>n=>r=>{const i=Ws(e,r),s=t=>{if(Xn.isClassDeclaration(t)){const n=zs(e,r,t);if(null!=n)return((e,t,n)=>Xn.updateClassDeclaration(e,e.decorators,e.modifiers,e.name,e.typeParameters,e.heritageClauses,bD(e,t,n)))(t,i,n)}return Xn.visitEachChild(t,s,n)};return r=Xn.visitEachChild(r,s,n),i.cmps.length>0&&(r=Gp(t,r,i)),i.isLegacy&&xh(i),r=Ep(t,r,i.coreRuntimeApis,t.coreImportPath)},CD=(e,t)=>{const n={coreImportPath:"@rindo/core/internal/hydrate",componentExport:null,componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[od(n.coreImportPath),SD(t,n),k_(t)]},xD=async e=>{const t={filePath:e.sourceFilePath,exportLine:"",cmp:e,uniqueComponentClassName:"",importLine:""},n=D(N(e.tagName));return e.componentClassName!==n?(t.uniqueComponentClassName=n,t.importLine=`import { ${e.componentClassName} as ${t.uniqueComponentClassName} } from '${t.filePath}';`):(t.uniqueComponentClassName=e.componentClassName,t.importLine=`import { ${t.uniqueComponentClassName} } from '${t.filePath}';`),t},DD=(e,t,n,r)=>{const i={name:r,description:e.namespace+" component hydration app.",main:Ie(t),types:Ie(n)};return JSON.stringify(i,null,2)},ND=async(e,t)=>{try{const n=Fe(e.rootDir,"package.json"),r=await t.fs.readFile(n);return JSON.parse(r).name+"/hydrate"}catch(e){}return e.fsNamespace+"/hydrate"},wD=async(e,t,n)=>{const r=Fe(e.sys.getCompilerExecutingPath(),"..",".."),i=Fe(r,"internal","hydrate","runner.d.ts"),s=Fe(n,"index.d.ts");await t.fs.copyFile(i,s)},OD=async(e,t,n,r)=>{try{const i=Fe(e.sys.getCompilerExecutingPath(),"..",".."),s=Fe(i,"internal","hydrate","runner.js"),o=Fe(i,"mock-doc","index.js"),a=Object.assign(Object.assign({},e.rollupConfig.inputOptions),{input:s,inlineDynamicImports:!0,plugins:[{name:"hydrateAppPlugin",resolveId:e=>"@rindo/core/hydrate-factory"===e?e:"@rindo/core/mock-doc"===e?o:null,load:r=>"@rindo/core/hydrate-factory"===r?kD(e,t,n):null}],treeshake:!1,onwarn:re(n.diagnostics)}),l=await OC(a),c=await l.generate({format:"cjs",file:"index.js"});await((e,t,n,r,i)=>Promise.all(r.map(r=>(async(e,t,n,r,i)=>{const s=await ND(e,t),o=r.dir,a=Fe(o,"index.js"),l=Fe(o,"index.d.ts"),c=Fe(o,"package.json"),u=DD(e,a,l,s);await Promise.all([wD(e,t,o),t.fs.writeFile(c,u)]),n.hydrateAppFilePath=a,await Promise.all(i.output.map(async n=>{if("chunk"===n.type){n.code=((e,t,n)=>{if(P_(e,t).length>0){const e=n.indexOf("/*hydrate context start*/");if(e>-1){const t=n.indexOf("/*hydrate context end*/")+"/*hydrate context end*/".length,r=n.substring(e,t);return(n=n.replace(r,"")).replace("/*hydrateAppClosure start*/","/*hydrateAppClosure start*/\n "+r)}}return n})(e,t,n.code);const r=Fe(o,n.fileName);await t.fs.writeFile(r,n.code,{immediateWrite:!0})}}))})(e,t,n,r,i))))(e,t,n,r,c)}catch(r){n.hasError||ne(e,t,n,r)}},kD=async(e,t,n)=>{if(!n.hasError)try{const r=n.components,i=(ID(e,r),await RD(n)),s=await(async(e,t,n,r,i)=>{try{const r={id:"hydrate",platform:"hydrate",conditionals:TD(n.components),customTransformers:CD(e,t),inlineDynamicImports:!0,inputs:{"@app-factory-entry":"@app-factory-entry"},loader:{"@app-factory-entry":i}};return await dx(e,t,n,r)}catch(r){n.hasError||ne(e,t,n,r)}})(e,t,n,0,i);if(null!=s){const e=await s.generate({format:"cjs",esModule:!1,strict:!1,intro:"\nexport function hydrateFactory($rindoWindow, $rindoHydrateOpts, $rindoHydrateResults, $rindoAfterHydrate, $rindoHydrateResolve) {\n var globalThis = $rindoWindow;\n var self = $rindoWindow;\n var top = $rindoWindow;\n var parent = $rindoWindow;\n\n var addEventListener = $rindoWindow.addEventListener.bind($rindoWindow);\n var alert = $rindoWindow.alert.bind($rindoWindow);\n var blur = $rindoWindow.blur.bind($rindoWindow);\n var cancelAnimationFrame = $rindoWindow.cancelAnimationFrame.bind($rindoWindow);\n var cancelIdleCallback = $rindoWindow.cancelIdleCallback.bind($rindoWindow);\n var clearInterval = $rindoWindow.clearInterval.bind($rindoWindow);\n var clearTimeout = $rindoWindow.clearTimeout.bind($rindoWindow);\n var close = () => {};\n var confirm = $rindoWindow.confirm.bind($rindoWindow);\n var dispatchEvent = $rindoWindow.dispatchEvent.bind($rindoWindow);\n var focus = $rindoWindow.focus.bind($rindoWindow);\n var getComputedStyle = $rindoWindow.getComputedStyle.bind($rindoWindow);\n var matchMedia = $rindoWindow.matchMedia.bind($rindoWindow);\n var open = $rindoWindow.open.bind($rindoWindow);\n var prompt = $rindoWindow.prompt.bind($rindoWindow);\n var removeEventListener = $rindoWindow.removeEventListener.bind($rindoWindow);\n var requestAnimationFrame = $rindoWindow.requestAnimationFrame.bind($rindoWindow);\n var requestIdleCallback = $rindoWindow.requestIdleCallback.bind($rindoWindow);\n var setInterval = $rindoWindow.setInterval.bind($rindoWindow);\n var setTimeout = $rindoWindow.setTimeout.bind($rindoWindow);\n\n var CharacterData = $rindoWindow.CharacterData;\n var CSS = $rindoWindow.CSS;\n var CustomEvent = $rindoWindow.CustomEvent;\n var Document = $rindoWindow.Document;\n var DocumentFragment = $rindoWindow.DocumentFragment;\n var DocumentType = $rindoWindow.DocumentType;\n var DOMTokenList = $rindoWindow.DOMTokenList;\n var Element = $rindoWindow.Element;\n var Event = $rindoWindow.Event;\n var HTMLElement = $rindoWindow.HTMLElement;\n var IntersectionObserver = $rindoWindow.IntersectionObserver;\n var KeyboardEvent = $rindoWindow.KeyboardEvent;\n var MouseEvent = $rindoWindow.MouseEvent;\n var Node = $rindoWindow.Node;\n var NodeList = $rindoWindow.NodeList;\n var URL = $rindoWindow.URL;\n\n var console = $rindoWindow.console;\n var customElements = $rindoWindow.customElements;\n var history = $rindoWindow.history;\n var localStorage = $rindoWindow.localStorage;\n var location = $rindoWindow.location;\n var navigator = $rindoWindow.navigator;\n var performance = $rindoWindow.performance;\n var sessionStorage = $rindoWindow.sessionStorage;\n\n var devicePixelRatio = $rindoWindow.devicePixelRatio;\n var innerHeight = $rindoWindow.innerHeight;\n var innerWidth = $rindoWindow.innerWidth;\n var origin = $rindoWindow.origin;\n var pageXOffset = $rindoWindow.pageXOffset;\n var pageYOffset = $rindoWindow.pageYOffset;\n var screen = $rindoWindow.screen;\n var screenLeft = $rindoWindow.screenLeft;\n var screenTop = $rindoWindow.screenTop;\n var screenX = $rindoWindow.screenX;\n var screenY = $rindoWindow.screenY;\n var scrollX = $rindoWindow.scrollX;\n var scrollY = $rindoWindow.scrollY;\n var exports = {};\n\n function hydrateAppClosure($rindoWindow) {\n const window = $rindoWindow;\n const document = $rindoWindow.document;\n /*hydrateAppClosure start*/\n",outro:"\n /*hydrateAppClosure end*/\n hydrateApp(window, $rindoHydrateOpts, $rindoHydrateResults, $rindoAfterHydrate, $rindoHydrateResolve);\n }\n\n hydrateAppClosure($rindoWindow);\n}\n",preferConst:!1});if(!n.hasError&&null!=e&&Array.isArray(e.output))return e.output[0].code}}catch(e){J(n.diagnostics,e)}return""},RD=async e=>{const t=e.components,n=await(async e=>{const t=await Promise.all(e.map(xD));return O(t,e=>e.cmp.componentClassName)})(t),r=new Di("");return r.append("import { hydrateApp, registerComponents, styles } from '@rindo/core/internal/hydrate';\n"),n.forEach(e=>r.append(e.importLine+"\n")),r.append("registerComponents([\n"),n.forEach(e=>{r.append(` ${e.uniqueComponentClassName},\n`)}),r.append("]);\n"),r.append("export { hydrateApp }\n"),r.toString()},ID=(e,t)=>{const n=gx(t);return n.lazyLoad=!0,n.hydrateClientSide=!1,n.hydrateServerSide=!0,Ex(e,n),n.lifecycleDOMEvents=!1,n.devTools=!1,n.hotModuleReplacement=!1,n.cloneNodeFix=!1,n.appendChildSlotFix=!1,n.slotChildNodesFix=!1,n.safari10=!1,n.shadowDomShim=!1,n},MD=async(e,t,n)=>{if(!e.buildDist)return;const r=e.outputTargets.filter(Rd);if(r.length>0){const i=n.createTimeSpan("generate hydrate app started");await OD(e,t,n,r),i.finish("generate hydrate app finished")}},PD=(e,t)=>{const n=new Set(t.map(e=>e.tagName.toUpperCase())),r=[],i=e=>{n.has(e.tagName)&&r.push(e.tagName.toLowerCase());for(let t=0;t<e.childElementCount;t++)i(e.children[t])};return i(e.documentElement),r};function LD(e,t){const n=O(t.components,e=>e.dependents.length),r=function(e,t,n){const r=function(e,t,n){const r=new Set;return e.bundles.map(e=>e.components.map(e=>{const i=Ne(e);if(i){const e=q(t.diagnostics);e.header="Rindo Config",e.messageText=i}const s=n.find(t=>t.tagName===e);if(!s){const n=Y(t.diagnostics);n.header="Rindo Config",n.messageText=`Component tag "${e}" is defined in a bundle but no matching component was found within this app or its collections.`}if(r.has(e)){const n=Y(t.diagnostics);n.header="Rindo Config",n.messageText=`Component tag "${e}" has been defined multiple times in the "bundles" config.`}return r.add(e),s}).sort())}(e,t,n);if(r.length>0)return r;let i=e.entryComponentsHint;if(!i&&t.indexDoc&&(i=PD(t.indexDoc,n)),!i)return[];function s(e){return n.find(t=>t.tagName===e)}return[R([...i,...k(i.map(s).map(e=>e.dependencies))]).map(s)]}(e,t,n),i=function(e,t,n){if(!e.excludeUnusedDependencies)return new Set(n.map(e=>e.tagName));const r=new Set;return t.forEach(e=>{e.forEach(e=>r.add(e.tagName))}),n.forEach(e=>{e.isCollectionDependency||r.add(e.tagName)}),n.forEach(e=>{e.isCollectionDependency&&e.dependents.some(e=>r.has(e))&&r.add(e.tagName)}),r}(e,r,n);if(e.devMode)return n.filter(e=>i.has(e.tagName)).map(e=>[e]);const s=new Set;r.forEach(e=>{e.forEach(e=>s.add(e))});const o=n.filter(e=>i.has(e.tagName)&&!s.has(e)).map(e=>[e]);return[...r,...FD(o,.6)].filter(e=>e.length>0)}function FD(e,t){const n=new Map;e.forEach((e,t)=>{e.forEach(e=>{n.set(e.tagName,t)})});const r=new Uint8Array(e.length),i=e.map(t=>{const r=new Uint8Array(e.length);return t.forEach(e=>{e.dependents.forEach(e=>{const t=n.get(e);void 0!==t&&(r[t]=1)})}),t.forEach(e=>{const t=n.get(e.tagName);void 0!==t&&(r[t]=0)}),r}),s=[];for(let n=0;n<i.length;n++)if(0===r[n]){const o=[...e[n]];r[n]=1;for(let s=n+1;s<i.length;s++)0===r[s]&&BD(i[n],i[s])>=t&&(o.push(...e[s]),r[s]=1);s.push(o)}return s}function BD(e,t){let n=0,r=0;for(let i=0;i<e.length;i++)1!==e[i]&&1!==t[i]||(n++,e[i]===t[i]&&r++);return r/n}function $D(e){const t=(e=O(e,e=>e.tagName)).map(e=>e.tagName).join(".")+".entry";return{cmps:e,entryKey:t}}const UD=(e,t)=>{const n=gx(t);n.lazyLoad=!0,n.hydrateServerSide=!1,n.cssVarShim=e.extras.cssVarsShim,n.transformTagName=e.extras.tagNameTransform,n.asyncQueue="congestionAsync"===e.taskQueue,n.taskQueue="immediate"!==e.taskQueue,n.initializeNextTick=e.extras.initializeNextTick;const r=e.outputTargets.some(Rd);return n.hydrateClientSide=r,Ex(e,n),n},VD=async(e,t,n,r)=>{if(null==e)return null;const{output:i}=await e.generate(t);return i.map(e=>{if("chunk"===e.type){const i=Object.keys(e.modules).some(e=>e.includes("@rindo/core"));return{type:"chunk",fileName:e.fileName,code:e.code,moduleFormat:t.format,entryKey:e.name,imports:e.imports,isEntry:!!e.isEntry,isComponent:!!e.isEntry&&r.some(t=>t.entryKey===e.name),isBrowserLoader:e.isEntry&&e.name===n.fsNamespace,isIndex:e.isEntry&&"index"===e.name,isCore:i}}return{type:"asset",fileName:e.fileName,content:e.source}})},HD=async(e,t,n,r,i,s,o,a,l)=>{if(!Array.isArray(i)||0===i.length)return[];const c=e.minifyJs&&a,u=s.filter(e=>"chunk"===e.type),h=u.filter(e=>e.isComponent),p=u.filter(e=>!e.isComponent&&!e.isEntry),[d]=await Promise.all([Promise.all(h.map(s=>GD(e,t,n,s,r,i,o,c,a,l))),Promise.all(p.map(s=>jD(e,t,n,s,r,i,o,c,a)))]),f=WD(d),m=u.filter(e=>!e.isComponent&&e.isEntry);return await Promise.all(m.map(s=>KD(e,t,n,s,r,i,f,o,c,a))),await Promise.all(s.filter(e=>"asset"===e.type).map(e=>Promise.all(i.map(n=>t.fs.writeFile(Fe(n,e.fileName),e.content))))),d},GD=async(e,t,n,r,i,s,o,a,l,c)=>{const u=n.entryModules.find(e=>e.entryKey===r.entryKey),h=e.hashFileNames&&l,p=await YD(e,t,n,o,a,!1,l,r.code),d=await(async(e,t,n,r,i,s,o,a)=>{const l=await(async(e,t,n,r,i)=>{if(n)return`p-${await e.sys.generateContentHash(r,e.hashedFileNameLength)}${i}`;const s=t.split(".");let o=s[0];return s.length>2&&(o=`${o}_${s.length-1}`),o+i})(e,i.entryKey,s,o,a),c=l+".entry.js";return await Promise.all(r.map(e=>t.fs.writeFile(Fe(e,c),o,{outputTargetType:n}))),{bundleId:l,fileName:c,code:o}})(e,t,i,s,u,h,p,c);return{rollupResult:r,entryKey:r.entryKey,cmps:u.cmps,output:d}},jD=async(e,t,n,r,i,s,o,a,l)=>{const c=await YD(e,t,n,o,a,r.isCore,l,r.code);await Promise.all(s.map(e=>{const n=Fe(e,r.fileName);return t.fs.writeFile(n,c,{outputTargetType:i})}))},KD=async(e,t,n,r,i,s,o,a,l,c)=>{if(c&&["loader"].includes(r.entryKey))return;let u=r.code.replace("[/*!__RINDO_LAZY_DATA__*/]",""+o);u=await YD(e,t,n,a,l,!1,c,u),await Promise.all(s.map(e=>{const n=Fe(e,r.fileName);return t.fs.writeFile(n,u,{outputTargetType:i})}))},WD=e=>{const t=e.slice().sort(XD).map(zD);return f(t)},zD=e=>[e.output.bundleId,e.cmps.slice().sort(qD).map(e=>d(e,!0))],XD=(e,t)=>{const n=e.cmps.reduce((e,t)=>(e.push(...t.dependents),e),[]),r=t.cmps.reduce((e,t)=>(e.push(...t.dependents),e),[]);if(e.cmps.some(e=>r.includes(e.tagName)))return 1;if(t.cmps.some(e=>n.includes(e.tagName)))return-1;const i=e.cmps.reduce((e,t)=>(e.push(...t.dependencies),e),[]),s=t.cmps.reduce((e,t)=>(e.push(...t.dependencies),e),[]);if(e.cmps.some(e=>s.includes(e.tagName)))return-1;if(t.cmps.some(e=>i.includes(e.tagName)))return 1;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(i.length>s.length)return-1;if(i.length<s.length)return 1;const o=e.cmps.map(e=>e.tagName),a=t.cmps.map(e=>e.tagName);if(o.length>a.length)return-1;if(o.length<a.length)return 1;const l=o.sort().join("."),c=a.sort().join(".");return l<c?-1:l>c?1:0},qD=(e,t)=>e.directDependents.includes(t.tagName)?1:t.directDependents.includes(e.tagName)?-1:e.directDependencies.includes(t.tagName)?1:t.directDependencies.includes(e.tagName)?-1:e.dependents.includes(t.tagName)?1:t.dependents.includes(e.tagName)?-1:e.dependencies.includes(t.tagName)?1:t.dependencies.includes(e.tagName)||e.dependents.length<t.dependents.length?-1:e.dependents.length>t.dependents.length?1:e.dependencies.length>t.dependencies.length?-1:e.dependencies.length<t.dependencies.length?1:e.tagName<t.tagName?-1:e.tagName>t.tagName?1:0,YD=async(e,t,n,r,i,s,o,a)=>{const l=o||!((e,t)=>(e=>null!=e.packageJson&&null!=e.packageJson.dependencies?Object.keys(e.packageJson.dependencies).filter(e=>!De.includes(e)):[])(e).includes(t))(n,"tslib"),c=await Hr(e,t,{input:a,isCore:s,sourceTarget:r,inlineHelpers:l,minify:i});return n.diagnostics.push(...c.diagnostics),"string"==typeof c.output&&(a=c.output),a},QD=async(e,t,n,r,i)=>{const s=i.filter(e=>!!e.cjsDir);if(s.length>0){const i=s[0].type,o={format:"cjs",entryFileNames:"[name].cjs.js",assetFileNames:"[name]-[hash][extname]",preferConst:!0},a=await VD(r,o,e,n.entryModules);if(null!=a){const r=s.map(e=>e.cjsDir);await HD(e,t,n,i,r,a,"es2017",!1,".cjs"),await JD(t,a,s)}}},JD=(e,t,n)=>{const r=t.find(e=>"chunk"===e.type&&e.isIndex).fileName;return Promise.all(n.map(async t=>{if(t.cjsIndexFile){const n=Fe(t.cjsDir,r),i=`module.exports = require('${vd(t.cjsIndexFile,n)}');\n`;await e.fs.writeFile(t.cjsIndexFile,i,{outputTargetType:t.type})}}))},ZD=async(e,t,n,r,i)=>{const s=i.filter(e=>!!e.esmDir&&!!e.isBrowserBuild);if(s.length){const i=s[0].type,o={format:"es",entryFileNames:"[name].esm.js",chunkFileNames:e.hashFileNames?"p-[hash].js":"[name]-[hash].js",assetFileNames:e.hashFileNames?"p-[hash][extname]":"[name]-[hash][extname]",preferConst:!0};e.extras.dynamicImportShim&&(o.dynamicImportFunction="__sc_import_"+e.fsNamespace.replace(/\s|-/g,"_"));const a=await VD(r,o,e,n.entryModules);if(null!=a){const r=s.map(e=>e.esmDir);return await HD(e,t,n,i,r,a,"es2017",!0,"")}}},eN=async(e,t,n,r,i)=>{const s=e.buildEs5?i.filter(e=>!!e.esmEs5Dir&&!e.isBrowserBuild):[],o=i.filter(e=>!!e.esmDir&&!e.isBrowserBuild);if(o.length+s.length>0){const a={format:"es",entryFileNames:"[name].mjs",assetFileNames:"[name]-[hash][extname]",preferConst:!0},l=o[0].type,c=await VD(r,a,e,n.entryModules);if(null!=c){const r=o.map(e=>e.esmDir);await HD(e,t,n,l,r,c,"es2017",!1,"");const a=s.map(e=>e.esmEs5Dir);await HD(e,t,n,l,a,c,"es5",!1,""),await tN(e,t,o),await nN(e,t,i,c)}}},tN=async(e,t,n)=>{const r=n.filter(e=>e.polyfills).map(e=>e.esmDir);if(0===r.length)return;const i=Fe(e.sys.getCompilerExecutingPath(),"..","..","internal","client","polyfills"),s=await t.fs.readdir(i);await Promise.all(r.map(e=>Promise.all(s.map(n=>t.fs.copyFile(n.absPath,Fe(e,"polyfills",n.relPath))))))},nN=(e,t,n,r)=>{const i=r.find(e=>"chunk"===e.type&&e.isIndex).fileName;return Promise.all(n.map(async n=>{if(n.esmDir&&n.esmIndexFile){const r=e.buildEs5&&n.esmEs5Dir?Fe(n.esmEs5Dir,i):Fe(n.esmDir,i),s=`export * from '${vd(n.esmIndexFile,r)}';`;await t.fs.writeFile(n.esmIndexFile,s,{outputTargetType:n.type})}}))},rN=async(e,t,n)=>{const r=Fe(e.sys.getCompilerExecutingPath(),"..","..","internal","client","polyfills",n);return t.fs.readFile(r)},iN=["core-js.js","dom.js","es5-html-element.js","system.js"],sN=async(e,t,n,r,i)=>{const s=i.filter(e=>!!e.systemDir);if(s.length>0){const o={format:"system",entryFileNames:e.hashFileNames?"p-[hash].system.js":"[name].system.js",chunkFileNames:e.hashFileNames?"p-[hash].system.js":"[name]-[hash].system.js",assetFileNames:e.hashFileNames?"p-[hash][extname]":"[name]-[hash][extname]",preferConst:!0},a=await VD(r,o,e,n.entryModules);if(null!=a){const r=s.map(e=>e.esmDir);await HD(e,t,n,i[0].type,r,a,"es5",!0,".system"),await oN(e,t,a,s)}}},oN=(e,t,n,r)=>{const i=n.find(e=>"chunk"===e.type&&e.isBrowserLoader).fileName;return Promise.all(r.map(n=>aN(e,t,i,n)))},aN=async(e,t,n,r)=>{if(r.systemLoaderFile){const i=Fe(r.systemDir,n),s=vd(r.systemLoaderFile,i),o=await lN(e,t,s,r.polyfills);await t.fs.writeFile(r.systemLoaderFile,o,{outputTargetType:r.type})}},lN=async(e,t,n,r)=>`\n'use strict';\n(function () {\n var currentScript = document.currentScript;\n\n // Safari 10 support type="module" but still download and executes the nomodule script\n if (!currentScript || !currentScript.hasAttribute('nomodule') || !('onbeforeload' in currentScript)) {\n\n ${r?await(async(e,t)=>{const n=iN.slice();return e.extras.cssVarsShim&&n.push("css-shim.js"),(await Promise.all(n.map(n=>rN(e,t,n)))).join("\n").trim()})(e,t):"/* polyfills excluded */"}\n\n // Figure out currentScript (for IE11, since it does not support currentScript)\n var regex = /\\/${e.fsNamespace}(\\.esm)?\\.js($|\\?|#)/;\n var scriptElm = currentScript || Array.from(document.querySelectorAll('script')).find(function(s) {\n return regex.test(s.src) || s.getAttribute('data-rindo-namespace') === "${e.fsNamespace}";\n });\n\n var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';\n var start = function() {\n var url = new URL('${n}', new URL(resourcesUrl, window.location.origin));\n System.import(url.href);\n };\n\n if (window.__cssshim) {\n window.__cssshim.i().then(start);\n } else {\n start();\n }\n\n // Note: using .call(window) here because the self-executing function needs\n // to be scoped to the window object for the ES6Promise polyfill to work\n }\n}).call(window);\n`,cN=(e,t)=>{const n={coreImportPath:"@rindo/core",componentExport:"lazy",componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[od(n.coreImportPath),Yp(t,n),k_(t)]},uN=e=>{const t=new Di("");return t.append("import { bootstrapLazy } from '@rindo/core';\n"),e?(t.append("import { patchBrowser } from '@rindo/core/internal/client/patch';\n"),t.append(`import { globalScripts } from '${ds}';\n`),t.append("patchBrowser().then(options => {\n"),t.append(" globalScripts();\n"),t.append(" return bootstrapLazy([/*!__RINDO_LAZY_DATA__*/], options);\n"),t.append("});\n")):(t.append("import { patchEsm } from '@rindo/core/internal/client/patch';\n"),t.append(`import { globalScripts } from '${ds}';\n`),t.append("export const defineCustomElements = (win, options) => {\n"),t.append(" if (typeof window === 'undefined') return Promise.resolve();\n"),t.append(" return patchEsm().then(() => {\n"),t.append(" globalScripts();\n"),t.append(" return bootstrapLazy([/*!__RINDO_LAZY_DATA__*/], options);\n"),t.append(" });\n"),t.append("};\n")),t.toString()},hN=(e,t,n)=>Promise.all(n.map(async n=>{if(n.legacyLoaderFile){const r=pN(e);await t.fs.writeFile(n.legacyLoaderFile,r,{outputTargetType:n.type})}})),pN=e=>{const t=e.fsNamespace;return`\n(function(doc){\n var scriptElm = doc.scripts[doc.scripts.length - 1];\n var warn = ['[${t}] Deprecated script, please remove: ' + scriptElm.outerHTML];\n\n warn.push('To improve performance it is recommended to set the differential scripts in the head as follows:')\n\n var parts = scriptElm.src.split('/');\n parts.pop();\n parts.push('${t}');\n var url = parts.join('/');\n\n var scriptElm = doc.createElement('script');\n scriptElm.setAttribute('type', 'module');\n scriptElm.src = url + '/${t}.esm.js';\n warn.push(scriptElm.outerHTML);\n scriptElm.setAttribute('data-rindo-namespace', '${t}');\n doc.head.appendChild(scriptElm);\n\n ${e.buildEs5&&`\n scriptElm = doc.createElement('script');\n scriptElm.setAttribute('nomodule', '');\n scriptElm.src = url + '/${t}.js';\n warn.push(scriptElm.outerHTML);\n scriptElm.setAttribute('data-rindo-namespace', '${t}');\n doc.head.appendChild(scriptElm)\n `}\n console.warn(warn.join('\\n'));\n\n})(document);`},dN=async(e,t)=>{const n=e.outputTargets.filter(Od);0!==n.length&&await Promise.all(n.map(n=>fN(e,t,n)))},fN=async(e,t,n)=>{const r=n.dir,i=n.esmDir,s=n.esmEs5Dir||i,o=n.cjsDir;if(!r||!i||!o)return;const a=await rN(e,t,"es5-html-element.js"),l=JSON.stringify({name:e.fsNamespace+"-loader",typings:"./index.d.ts",module:"./index.mjs",main:"./index.cjs.js","node:main":"./node-main.js","jsnext:main":"./index.es2017.mjs",es2015:"./index.es2017.mjs",es2017:"./index.es2017.mjs",unpkg:"./cdn.js"},null,2),c=Fe(s,"loader.mjs"),u=Fe(i,"loader.mjs"),h=Fe(i,"polyfills/index.js"),p=Fe(o,"loader.cjs.js"),d=`export * from '${ae($e(r,h))}';`,f=`\n${a}\n${d}\nexport * from '${ae($e(r,c))}';\n`,m=`\n${d}\nexport * from '${ae($e(r,u))}';\n`,g=`\nmodule.exports = require('${ae($e(r,p))}');\nmodule.exports.applyPolyfills = function() { return Promise.resolve() };\n`,_=Fe(r,"index.d.ts");await Promise.all([t.fs.writeFile(Fe(r,"package.json"),l),t.fs.writeFile(Fe(r,"index.d.ts"),mN(_,n.componentDts)),t.fs.writeFile(Fe(r,"index.mjs"),f),t.fs.writeFile(Fe(r,"index.cjs.js"),g),t.fs.writeFile(Fe(r,"cdn.js"),g),t.fs.writeFile(Fe(r,"index.es2017.mjs"),m),t.fs.writeFile(Fe(r,"node-main.js"),"\nmodule.exports.applyPolyfills = function() { return Promise.resolve() };\nmodule.exports.defineCustomElements = function() { return Promise.resolve() };\n")])},mN=(e,t)=>`\nexport * from '${vd(e,t,".d.ts")}';\nexport interface CustomElementsDefineOptions {\n exclude?: string[];\n resourcesUrl?: string;\n syncQueue?: boolean;\n jmp?: (c: Function) => any;\n raf?: (c: FrameRequestCallback) => number;\n ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;\n rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;\n}\nexport declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;\nexport declare function applyPolyfills(): Promise<void>;\n`,gN=e=>e.replace(/\n/g,"\\n").replace(/\'/g,"\\'").trim(),_N=async(e,t,n)=>{try{const r=await t.fs.readFile(n),i=`p-${await e.sys.generateContentHash(r,e.hashedFileNameLength)}${Pe(n)}`;return await t.fs.writeFile(Fe(Me(n),i),r),i}catch(e){}},EN=async(e,t,n)=>{const r=e.createTimeSpan("copy service worker library started",!0);try{await n.copyWorkboxLibraries(t.appDir)}catch(t){Y(e.diagnostics).messageText="Service worker library already exists"}r.finish("copy service worker library finished")},yN=async(e,t,n)=>{const r=e.createTimeSpan("inject manifest into service worker started");try{await n.injectManifest(t),r.finish("inject manifest into service worker finished")}catch(t){J(e.diagnostics,t)}},TN=(e,t)=>e.startsWith("./")&&(e.endsWith(".js")||e.endsWith(".mjs"))?t+e.substring(2):null,vN=e=>()=>t=>(t.statements.filter(Xn.isImportDeclaration).filter(e=>null!=e.moduleSpecifier).filter(e=>Xn.isStringLiteral(e.moduleSpecifier)&&e.moduleSpecifier.text).forEach(t=>{Xn.isStringLiteral(t.moduleSpecifier)&&e.push(t.moduleSpecifier.text)}),t),AN=(e,t,n)=>{const r=e.createElement("script");return r.setAttribute("data-build",""+t.timestamp),r.innerHTML=(e=>`\nif ('serviceWorker' in navigator && location.protocol !== 'file:') {\n window.addEventListener('load', function() {\n navigator.serviceWorker.register('${e}')\n .then(function(reg) {\n reg.onupdatefound = function() {\n var installingWorker = reg.installing;\n installingWorker.onstatechange = function() {\n if (installingWorker.state === 'installed') {\n window.dispatchEvent(new Event('swUpdate'))\n }\n }\n }\n })\n .catch(function(err) { console.error('service worker error', err) });\n });\n}`)(n),r},bN=async(e,t,n,r,i)=>{e.buildEs5||await(async(e,t,n)=>{const r=e.fsNamespace+".js",i=Fe(n.buildDir,r);return await t.fs.writeFile(i,(e=>{const t="\n<style>\nbody {\n display: block !important;\n font-family: sans-serif;\n padding: 20px;\n line-height:22px;\n}\nh1 {\n font-size: 18px;\n}\nh2 {\n font-size: 14px;\n margin-top: 40px;\n}\n</style>\n",n=`\n ${t}\n\n <h1>This Rindo app is disabled for this browser.</h1>\n\n <h2>Developers:</h2>\n <ul>\n <li>ES5 builds are disabled <strong>during development</strong> to take advantage of 2x faster build times.</li>\n <li>Please see the example below or our <a href="https://rindojs.web.app/docs/rindo-config" target="_blank" rel="noopener noreferrer">config docs</a> if you would like to develop on a browser that does not fully support ES2017 and custom elements.</li>\n <li>Note that by default, ES5 builds and polyfills are enabled during production builds.</li>\n <li>When testing browsers it is recommended to always test in production mode, and ES5 builds should always be enabled during production builds.</li>\n <li><em>This is only an experiment and if it slows down app development then we will revert this and enable ES5 builds during dev.</em></li>\n </ul>\n\n\n <h2>Enabling ES5 builds during development:</h2>\n <pre>\n <code>npm run dev --es5</code>\n </pre>\n <p>For rindo-component-starter, use:</p>\n <pre>\n <code>npm start --es5</code>\n </pre>\n\n\n <h2>Enabling full production builds during development:</h2>\n <pre>\n <code>npm run dev --prod</code>\n </pre>\n <p>For rindo-component-starter, use:</p>\n <pre>\n <code>npm start --prod</code>\n </pre>\n\n <h2>Current Browser's Support:</h2>\n <ul>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import">ES Module Imports</a>: <span id="es-modules-test"></span></li>\n <li><a href="http://2ality.com/2017/01/import-operator.html">ES Dynamic Imports</a>: <span id="es-dynamic-modules-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements">Custom Elements</a>: <span id="custom-elements-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM">Shadow DOM</a>: <span id="shadow-dom-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">fetch</a>: <span id="fetch-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables">CSS Variables</a>: <span id="css-variables-test"></span></li>\n </ul>\n\n <h2>Current Browser:</h2>\n <pre>\n <code id="current-browser-output"></code>\n </pre>\n `,r=`\n ${t}\n\n <h1>Update src/index.html</h1>\n\n <p>Rindo recently changed how scripts are loaded in order to improve performance.</p>\n\n <h2>BEFORE:</h2>\n <p>Previously, a single script was included that handled loading the correct JavaScript based on browser support.</p>\n <pre>\n <code>${z(`<script src="/build/${e.fsNamespace}.js"><\/script>\n`)}</code>\n </pre>\n\n <h2 style="margin-top:0">AFTER:</h2>\n <p>The index.html should now include two scripts using the modern ES Module script pattern.\n Note that only one file will actually be requested and loaded based on the browser's native support for ES Modules.\n For more info, please see <a href="https://developers.google.com/web/fundamentals/primers/modules#browser" target="_blank" rel="noopener noreferrer">Using JavaScript modules on the web</a>.\n </p>\n <pre>\n <code>${z("<script")} <span style="background:yellow">type="module"</span> src="/build/${e.fsNamespace}<span style="background:yellow">.esm</span>.js"${z("><\/script>")}\n ${z("<script")} <span style="background:yellow">nomodule</span> ${z(`src="/build/${e.fsNamespace}.js"><\/script>`)}</code>\n </pre>\n `;return`\n(function() {\n function checkSupport() {\n if (!document.body) {\n setTimeout(checkSupport);\n return;\n }\n function supportsDynamicImports() {\n try {\n new Function('import("")');\n return true;\n } catch (e) {}\n return false;\n }\n var supportsEsModules = !!('noModule' in document.createElement('script'));\n\n if (!supportsEsModules) {\n document.body.innerHTML = '${gN(n)}';\n\n document.getElementById('current-browser-output').textContent = window.navigator.userAgent;\n document.getElementById('es-modules-test').textContent = supportsEsModules;\n document.getElementById('es-dynamic-modules-test').textContent = supportsDynamicImports();\n document.getElementById('shadow-dom-test').textContent = !!(document.head.attachShadow);\n document.getElementById('custom-elements-test').textContent = !!(window.customElements);\n document.getElementById('css-variables-test').textContent = !!(window.CSS && window.CSS.supports && window.CSS.supports('color', 'var(--c)'));\n document.getElementById('fetch-test').textContent = !!(window.fetch);\n } else {\n document.body.innerHTML = '${gN(r)}';\n }\n }\n\n setTimeout(checkSupport);\n})();`})(e)),r})(e,t,i),n.indexDoc&&i.indexHtml&&await CN(e,t,n,r,i),await SN(t,i)},SN=(e,t)=>{const n=Kr(t),r=Fe(t.appDir,"host.config.json"),i=JSON.stringify({hosting:{headers:[{source:Fe(n,"/p-*"),headers:[{key:"Cache-Control",value:"max-age=31556952, s-maxage=31556952, immutable"}]}]}},null," ");return e.fs.writeFile(r,i,{outputTargetType:t.type})},CN=async(e,t,n,r,i)=>{if(!t.hasSuccessfulBuild||n.hasHtmlChanges)try{const o=null==(s=n.indexDoc)?null:function(e,t={}){if(null==e)return null;const n=new Hg(!1);if(t.customElementProxy||(e.customElements=null),null!=e.document){const t=new Wg(!1,n);n.document=t,t.documentElement=e.document.documentElement.cloneNode(!0)}else n.document=new Wg(null,n);return n}(s.defaultView).document;if(((e,t,n)=>{const r=Kr(n),i=e.fsNamespace+".esm.js",s=e.fsNamespace+".js",o=Fe(r,i),a=Fe(r,s),l=Array.from(t.querySelectorAll("script")),c=l.find(e=>e.getAttribute("src")===o),u=l.find(e=>e.getAttribute("src")===a);c&&c.setAttribute("data-rindo",""),u&&u.setAttribute("data-rindo","")})(e,o,i),await(async(e,t,n,r)=>{const i=r.serviceWorker;!1!==i&&(i&&i.unregister||!i&&e.devMode?(e=>{const t=e.createElement("script");t.innerHTML="\nif ('serviceWorker' in navigator && location.protocol !== 'file:') {\n // auto-unregister service worker during dev mode\n navigator.serviceWorker.getRegistration().then(function(registration) {\n if (registration) {\n registration.unregister().then(function() { location.reload(true) });\n }\n });\n}\n",e.body.appendChild(t)})(n):i&&await(async(e,t,n)=>{const r=((e,t)=>{let n=ae($e(e.appDir,t.swDest));"/"!==n.charAt(0)&&(n="/"+n);let r=new URL(e.baseUrl,"http://config-rindojs.web.app").pathname;return r.endsWith("/")||(r+="/"),n=r+n.substring(1),n})(t,t.serviceWorker),i=AN(n,e,r);n.body.appendChild(i)})(t,r,n))})(e,n,o,i),!e.watch&&!e.devMode){const n=await _N(e,t,Fe(i.buildDir,e.fsNamespace+".css")),s=await(async(e,t,n,r)=>{const i=Kr(r),s=e.fsNamespace+".esm.js",o=Fe(i,s),a=Array.from(n.querySelectorAll("script")).find(e=>"module"===e.getAttribute("type")&&!e.hasAttribute("crossorigin")&&e.getAttribute("src")===o);if(!a)return!1;a.setAttribute("data-resources-url",i),a.setAttribute("data-rindo-namespace",e.fsNamespace);const l=Fe(r.buildDir,s),c=await t.fs.readFile(l);if(B(c)){if(e.allowInlineScripts&&c.length<1024){const e=((e,t)=>{const n=[],r=Xn.createSourceFile("module.ts",e,Xn.ScriptTarget.Latest);return Xn.transform(r,[vN(n)]),n.forEach(n=>{const r=TN(n,t);r&&(e=(e=e.replace(`"${n}"`,`"${r}"`)).replace(`'${n}'`,`'${r}'`))}),{code:e,orgImportPaths:n}})(c,i);e.orgImportPaths.length>0&&(a.removeAttribute("src"),a.innerHTML=e.code)}else{const r=await _N(e,t,l);if(r){const e=Fe(i,r);a.setAttribute("src",e),Wr(n,[e])}}return!0}return!1})(e,t,o,i);await((e,t,n,r)=>{const i=Array.from(t.querySelectorAll("link[rel=stylesheet]"));return Promise.all(i.map(async i=>{const s=i.getAttribute("href");if("string"==typeof s&&s.startsWith("/")&&null===i.getAttribute("media"))try{const o=Fe(r.dir,s),a=await e.fs.readFile(o);if(a.length>n)return;const l=t.createElement("style");l.innerHTML=a,i.parentNode.insertBefore(l,i),i.remove()}catch(e){}}))})(t,o,xN,i),((e,t,n,r)=>{if(!n)return;const i=Kr(r),s=Fe(i,e.fsNamespace+".css"),o=Fe(i,n);if(s===o)return;const a=new RegExp(s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")+"$");Array.from(t.querySelectorAll("link")).forEach(e=>{const t=e.getAttribute("href");if(t){const n=t.replace(a,o);n!==t&&e.setAttribute("href",n)}})})(e,o,n,i),s&&((e,t,n)=>{const r=Kr(n),i=t.map(e=>Fe(r,e));Wr(e,i)})(o,r,i)}const a=Cm(o);await t.fs.writeFile(i.indexHtml,a,{outputTargetType:i.type}),i.serviceWorker&&e.flags.prerender&&await t.fs.writeFile(Fe(i.appDir,"index-org.html"),a,{outputTargetType:i.type}),n.debug("generateIndexHtml, write: "+$e(e.rootDir,i.indexHtml))}catch(e){J(n.diagnostics,e)}var s},xN=3072,DN=e=>{const t=e.collections.map(e=>({name:e.collectionName,tags:k(e.moduleFiles.map(e=>e.cmps)).map(e=>e.tagName).sort()}));return O(t,e=>e.name)},NN=async(e,t,n,r)=>{const i=e.outputTargets.filter(Sd);if(0===i.length)return;const s=n.createTimeSpan("generate collections started",!0);try{await Promise.all(r.map(async n=>{const r=n.staticSourceFileText;await Promise.all(i.map(async i=>{const s=$e(e.srcDir,n.jsFilePath),o=Fe(i.collectionDir,s);await t.fs.writeFile(o,r,{outputTargetType:i.type})}))})),await(async(e,t,n,r)=>{const i=JSON.stringify(((e,t,n)=>{const r={entries:n.moduleFiles.filter(e=>!e.isCollectionDependency&&e.cmps.length>0).map(t=>$e(e.srcDir,t.jsFilePath)),compiler:{name:"@rindo/core",version:Wn,typescriptVersion:"3.9.7"},collections:DN(t),bundles:e.bundles.map(e=>({components:e.components.slice().sort()}))};if(e.globalScript){const n=t.moduleMap.get(ae(e.globalScript));n&&(r.global=$e(e.srcDir,n.jsFilePath))}return r})(e,t,n),null,2);return Promise.all(r.map(e=>(async(e,t,n)=>{const r=ae(n.collectionDir),i=ae(Fe(r,"collection-manifest.json"));await e.fs.writeFile(i,t)})(t,i,e)))})(e,t,n,i)}catch(e){J(n.diagnostics,e)}s.finish("generate collections finished")},wN=(e,t,n)=>{const r=Me(t),i=$e(r,e);let s=Fe(i,ON);return s.startsWith(".")||(s="./"+s),s=ae(s),n.includes("@rindo/core")&&(n=(n=n.replace(/(from\s*(:?'|"))@rindo\/core\/internal('|")/g,`$1${s}$2`)).replace(/(from\s*(:?'|"))@rindo\/core('|")/g,`$1${s}$2`)),n},ON="rindo-public-runtime",kN=ON+".d.ts",RN=(e,t)=>{const n=e.localName.toLowerCase(),r=t.localName.toLowerCase();return n<r?-1:n>r?1:e.localName<t.localName?-1:e.localName>t.localName?1:0},IN=(e,t,n)=>{const r=O(e,e=>e.name).filter(e=>!(t&&!n&&e.internal)).reduce((e,n)=>{n.jsdoc&&(e.push(" /**"),e.push(...n.jsdoc.split("\n").map(e=>" * "+e)),e.push(" */"));const r=t?!n.required:n.optional;return e.push(` "${n.name}"${r?"?":""}: ${n.type};`),e},[]).join("\n");return""!==r?r+"\n":""},MN=async(e,t,n,r)=>{const i=n.createTimeSpan("generated app types started",!0),s="src"===r;let o=PN(e,n,s),a=(e=>Fe(e.srcDir,uf))(e);s||(a=Ue(r,uf),o=wN(r,a,o));const l=(await t.fs.writeFile(a,o,{immediateWrite:!0})).changedContent,c=$e(e.rootDir,a);return l&&e.logger.debug(`generateAppTypes: ${c} has changed`),i.finish("generated app types finished: "+c),l},PN=(e,t,n)=>{let r={};const i=[],s=new Map,o=t.components.some(e=>e.isLegacy),a=t.components.filter(e=>!e.isCollectionDependency).map(e=>(r=((e,t,n,r)=>{const i=((e,t)=>(n,r)=>(Object.keys(r).map(e=>[e,r[e]]).forEach(([r,i])=>{let s;if("global"===i.location)return;if("local"===i.location?s=t:"import"===i.location&&(s=i.path),s.startsWith(".")&&(s=Ue(Me(t),s)),n[s]=n[s]||[],n[s].find(e=>e.localName===r))return;const o=function(t){const n=e.get(t);return void 0===n?(e.set(t,1),t):(e.set(t,n+1),`${t}${n}`)}(r);n[s].push({localName:r,importName:o})}),n))(t,r);return[...n.properties,...n.events,...n.methods].filter(e=>e.complexType&&e.complexType.references).reduce((e,t)=>i(e,t.complexType.references),e)})(r,s,e,e.sourceFilePath),((e,t)=>{const n=e.tagName.toLowerCase(),r=D(n),i=`HTML${r}Element`,s=[...(o=e).properties.map(e=>({name:e.name,type:e.complexType.original,optional:e.optional,required:e.required,internal:e.internal,jsdoc:Se(e.docs)})),...o.virtualProperties.map(e=>({name:e.name,type:e.type,optional:!0,required:!1,jsdoc:e.docs,internal:!1}))];var o;const a=e.methods.map(e=>({name:e.name,type:e.complexType.signature,optional:!1,required:!1,internal:e.internal,jsdoc:Se(e.docs)})),l=e.events.map(e=>({name:"on"+N(e.name),type:e.complexType.original?`(event: CustomEvent<${e.complexType.original}>) => void`:"CustomEvent",optional:!1,required:!1,internal:e.internal,jsdoc:Se(e.docs)})),c=IN([...s,...a],!1,t);return{isDep:e.isCollectionDependency,tagName:n,tagNameAsPascal:r,htmlElementName:i,component:` interface ${r} {\n${c} }`,jsx:` interface ${r} {\n${IN([...s,...l],!0,t)} }`,element:[` interface ${i} extends Components.${r}, HTMLRindoElement {`," }",` var ${i}: {`,` prototype: ${i};`,` new (): ${i};`," };"].join("\n")}})(e,n)));return i.push("/* eslint-disable */\n/* tslint:disable */\n/**\n * This is an autogenerated file created by the Rindo compiler.\n * It contains typing information for all components that exist in this project.\n */"),i.push('import { HTMLRindoElement, JSXBase } from "@rindo/core/internal";'),i.push(...Object.keys(r).map(t=>{const n=r[t];let i;return i=Le(t)?ae("./"+$e(e.srcDir,t)).replace(/\.(tsx|ts)$/,""):t,`import { ${n.sort(RN).map(e=>e.localName===e.importName?""+e.importName:`${e.localName} as ${e.importName}`).join(", ")} } from "${i}";`})),i.push(`export namespace Components {\n${a.map(e=>""+e.component).join("\n")}\n}`),i.push("declare global {"),o&&(i.push(" // Adding a global JSX for backcompatibility with legacy dependencies"),i.push(" export namespace JSX {"),i.push(" export interface Element {}"),i.push(" }")),i.push(...a.map(e=>e.element)),i.push(" interface HTMLElementTagNameMap {"),i.push(...a.map(e=>` "${e.tagName}": ${e.htmlElementName};`)),i.push(" }"),i.push("}"),i.push("declare namespace LocalJSX {"),i.push(...a.map(e=>" "+e.jsx)),i.push(" interface IntrinsicElements {"),i.push(...a.map(e=>` "${e.tagName}": ${e.tagNameAsPascal};`)),i.push(" }"),i.push("}"),i.push("export { LocalJSX as JSX };"),i.push('declare module "@rindo/core" {'),i.push(" export namespace JSX {"),i.push(" interface IntrinsicElements {"),i.push(...a.map(e=>` "${e.tagName}": LocalJSX.${e.tagNameAsPascal} & JSXBase.HTMLAttributes<${e.htmlElementName}>;`)),i.push(" }"),i.push(" }"),i.push("}"),i.join("\n")+"\n"},LN=e=>{const t=D(e.tagName);return[`interface ${t} extends Components.${t}, HTMLElement {}`,`export const ${t}: {`,` prototype: ${t};`,` new (): ${t};`,"};",""].join("\n")},FN=(e,t)=>((t=$e(e,t)).startsWith(".")||(t="."+t),ae(t.replace(".d.ts",""))),BN=async(e,t,n,r)=>{const i=(await t.fs.readdir(e.srcDir,{recursive:!1})).filter(e=>e.isFile&&(e=>{const t=e.toLowerCase().split(".");return t.length>2&&"d"===t[t.length-2]&&"ts"===t[t.length-1]})(e.absPath));let s;await Promise.all(i.map(async n=>{const i=$e(e.srcDir,n.absPath),o=Fe(r.typesDir,i),a=await t.fs.readFile(n.absPath),l=wN(r.typesDir,o,a);await t.fs.writeFile(o,l),s=o}));const o=r.typesDir;await MN(e,t,n,o),s&&await(async(e,t,n,r)=>{const i=e.outputTargets.filter(xd);await Promise.all(i.map(i=>(async(e,t,n,r,i)=>{const s=Fe(i.dir,"index.d.ts"),o=FN(i.dir,r),a=n.components.filter(e=>!e.isCollectionDependency),l=[`/* ${e.namespace} custom elements bundle */`,"",`import { Components } from "${o}";`,"",...a.map(LN),"/**"," * Utility to define all custom elements within this package using the tag name provided in the component's source. "," * When defining each custom element, it will also check it's safe to define by:"," *",' * 1. Ensuring the "customElements" registry is available in the global context (window).'," * 2. The component tag name is not already defined."," *"," * Use the standard [customElements.define()](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define) "," * method instead to define custom elements individually, or to provide a different tag name."," */","export declare const defineCustomElements: (opts?: any) => void;","","/**"," * Used to manually set the base path where assets can be found.",' * If the script is used as "module", it\'s recommended to use "import.meta.url",',' * such as "setAssetPath(import.meta.url)". Other options include',' * "setAssetPath(document.currentScript.src)", or using a bundler\'s replace plugin to',' * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".'," * But do note that this configuration depends on how your script is bundled, or lack of"," * bunding, and where your assets can be loaded from. Additionally custom bundling"," * will have to ensure the static assets are copied to its build directory."," */","export declare const setAssetPath: (path: string) => void;",""],c=Fe(e.srcDir,"index.ts");if(await t.fs.access(c)){const e=ae(Me(o));l.push(`export * from '${e}';`)}else l.push(`export * from '${o}';`);await t.fs.writeFile(s,l.join("\n")+"\n",{outputTargetType:i.type})})(e,t,n,r,i)))})(e,t,n,s)},$N=async(e,t,n)=>{const r=n.createTimeSpan("generate outputs started",!0),i=Array.from(t.changedModules).map(e=>t.moduleMap.get(e)).filter(e=>e&&!e.isCollectionDependency);t.changedModules.clear(),VN(t),await Promise.all([h_(e,t,n),D_(e,t,n),NN(e,t,n,i),R_(e,t,n,i),Tx(e,t,n),MD(e,t,n),dN(e,t),UN(e,t,n)]),await(async(e,t,n)=>{if(!e.buildDocs)return;const r=e.outputTargets.filter(e=>Id(e)||Pd(e)||Ld(e)||Fd(e)||Bd(e));if(0===r.length)return;await n.stylesPromise;const i=await(async(e,t,n)=>({timestamp:ku(),compiler:{name:"@rindo/core",version:Wn,typescriptVersion:"3.9.7"},components:await Cx(e,t,n)}))(e,t,n);await Promise.all([fD(e,t,i,r),jx(e,t,i,r),gD(t,i,r),Gx(e,i,r),yD(e,t,n,i,r)])})(e,t,n),await(async(e,t,n)=>{const r=e.outputTargets.filter(Vd);if(0===r.length)return;const i=n.createTimeSpan("generate types started",!0);await Promise.all(r.map(r=>(async(e,t,n,r)=>{n.hasError||(await BN(e,t,n,r),await(async(e,t)=>{const n=e.outputTargets.filter(Vd).filter(e=>e.typesDir),r=Fe(e.sys.getCompilerExecutingPath(),"..","..","internal",kN),i=await t.fs.readFile(r);return Promise.all(n.map(e=>{const n=Fe(e.typesDir,kN);return t.fs.writeFile(n,i,{outputTargetType:e.type})}))})(e,t))})(e,t,n,r))),i.finish("generate types finished")})(e,t,n),r.finish("generate outputs finished")},UN=async(e,t,n)=>{await(async(e,t,n)=>{const r=e.outputTargets.filter(Nd);if(0===r.length)return;const i=n.createTimeSpan("generate lazy started");try{const i={id:"lazy",platform:"client",conditionals:UD(e,n.components),customTransformers:cN(e,t),inlineWorkers:e.outputTargets.some(bd),inputs:{[e.fsNamespace]:"@lazy-browser-entrypoint?app-data=conditional",loader:"@lazy-external-entrypoint?app-data=conditional",index:"@user-index-entrypoint"},loader:{"@lazy-external-entrypoint?app-data=conditional":uN(!1),"@lazy-browser-entrypoint?app-data=conditional":uN(!0)}};!function(e,t){try{const n=LD(e,t);t.entryModules=n.map($D)}catch(e){J(t.diagnostics,e)}t.debug(`generateEntryModules, ${t.entryModules.length} entryModules`)}(e,n),n.entryModules.forEach(e=>{i.inputs[e.entryKey]=e.entryKey});const s=await dx(e,t,n,i);if(null!=s){const[i]=await Promise.all([ZD(e,t,n,s,r),eN(e,t,n,s,r),sN(e,t,n,s,r),QD(e,t,n,s,r)]);await hN(e,t,r),null!=i&&(n.componentGraph=((e,t)=>{const n=new Map;return e.forEach(e=>{const r=t.find(t=>t.cmps.includes(e));r&&n.set(jr(e.tagName),r.rollupResult.imports)}),n})(n.components,i))}}catch(e){J(n.diagnostics,e)}i.finish("generate lazy finished")})(e,t,n),await(async(e,t,n)=>{const r=e.outputTargets.filter($d);if(0===r.length)return;const i=n.createTimeSpan("generate www started",!0),s=(e=>{const t=e.componentGraph;return e.indexDoc&&t?R(k(PD(e.indexDoc,e.components).map(e=>jr(e)).map(t=>e.componentGraph.get(t)||[]))).sort():[]})(n);await Promise.all(r.map(r=>bN(e,t,n,s,r))),i.finish("generate www finished")})(e,t,n)},VN=e=>{const t=e.changedFiles;e.rollupCache.forEach(e=>{e.modules.forEach(e=>{e.transformDependencies.some(e=>t.has(e))&&(e.originalCode=null)})})};const HN=async(e,t,n,r)=>{const i=Ee(r.getSyntacticDiagnostics()),s=Ee(r.getGlobalDiagnostics()),o=Ee(r.getOptionsDiagnostics());if(n.diagnostics.push(...i),n.diagnostics.push(...s),n.diagnostics.push(...o),n.hasError)return!1;const a=r.getProgram().getTypeChecker(),l=e.outputTargets.filter(Vd);r.emit(void 0,(r,i,s,o,c)=>{if(r.endsWith(".js"))lp(e,t,n,c[0],i,r,a,null);else if(r.endsWith(".d.ts")){const n=jN(e,c[0].fileName,r);l.forEach(e=>{const r=Fe(e.typesDir,n);i=wN(e.typesDir,r,i),t.fs.writeFile(r,i)})}},void 0,!1,{before:[yh(e,n.diagnostics,a)]});const c=Array.from(t.changedModules.keys());var u,h;if(n.debug("Transpiled modules: "+JSON.stringify(c,null,"\n")),n.moduleFiles=Array.from(t.moduleMap.values()),n.components=(u=n.moduleFiles,O(k(u.map(e=>e.cmps)),e=>e.tagName)),h=t.moduleMap,n.components.forEach(e=>{_x(h,e.sourceFilePath,[]).forEach(t=>{e.hasVdomAttribute=e.hasVdomAttribute||t.hasVdomAttribute,e.hasVdomPropOrAttr=e.hasVdomPropOrAttr||t.hasVdomPropOrAttr,e.hasVdomXlink=e.hasVdomXlink||t.hasVdomXlink,e.hasVdomClass=e.hasVdomClass||t.hasVdomClass,e.hasVdomFunctional=e.hasVdomFunctional||t.hasVdomFunctional,e.hasVdomKey=e.hasVdomKey||t.hasVdomKey,e.hasVdomListener=e.hasVdomListener||t.hasVdomListener,e.hasVdomRef=e.hasVdomRef||t.hasVdomRef,e.hasVdomRender=e.hasVdomRender||t.hasVdomRender,e.hasVdomStyle=e.hasVdomStyle||t.hasVdomStyle,e.hasVdomText=e.hasVdomText||t.hasVdomText,e.htmlAttrNames.push(...t.htmlAttrNames),e.htmlTagNames.push(...t.htmlTagNames),e.potentialCmpRefs.push(...t.potentialCmpRefs)}),e.htmlAttrNames=R(e.htmlAttrNames),e.htmlTagNames=R(e.htmlTagNames),e.potentialCmpRefs=R(e.potentialCmpRefs)}),function(e){!function(e){const t=new Set;e.forEach(n=>{!function e(t,n,r){if(r.has(t))return t.dependencies;r.add(t);const i=R(t.potentialCmpRefs.filter(e=>n.some(t=>t.tagName===e)));t.dependencies=t.directDependencies=i;const s=k(i.map(e=>n.find(t=>t.tagName===e)).map(t=>e(t,n,r)));return t.dependencies=[...i,...s]}(n,e,t),n.dependencies=R(n.dependencies).sort()})}(e),function(e){e.forEach(t=>{!function(e,t){e.dependents=t.filter(t=>t.dependencies.includes(e.tagName)).map(e=>e.tagName).sort(),e.directDependents=t.filter(t=>t.directDependencies.includes(e.tagName)).map(e=>e.tagName).sort()}(t,e)})}(e)}(n.components),GN(e,n),n.hasError)return!1;if(await MN(e,t,n,"src"))return!0;if(e.validateTypes){const t=Ee(r.getSemanticDiagnostics());e.devMode&&t.forEach(e=>{"6133"!==e.code&&"6192"!==e.code||(e.level="warn")}),n.diagnostics.push(...t)}return!1},GN=(e,t)=>{t.components.forEach(n=>{const r=n.tagName,i=t.components.filter(e=>e.tagName===r);if(i.length>1){const n=q(t.diagnostics);n.header=`Component Tag Name "${r}" Must Be Unique`,n.messageText=`Please update the components so "${r}" is only used once: ${i.map(t=>$e(e.rootDir,t.sourceFilePath)).join(" ")}`}})},jN=(e,t,n)=>{const r=[];t=ae(t);for(let i=0;i<30&&e.srcDir!==t;i++){const e=Ie(n);r.push(e),n=Fe(n,".."),t=ae(Fe(t,".."))}return Fe.apply(null,r.reverse())},KN=async(e,t)=>{const n=e.outputTargets.filter($d).filter(e=>"string"==typeof e.indexHtml&&!!e.serviceWorker);if(0===n.length)return;if(null==e.sys.lazyRequire)return;await e.sys.lazyRequire.ensure(e.logger,e.rootDir,[WN]);const r=e.sys.lazyRequire.require(WN);await Promise.all(n.map(n=>(async(e,t,n,r)=>{const i=await(async e=>{if(!e.serviceWorker)return;const t=Object.assign({},e.serviceWorker);return!0!==t.unregister&&delete t.unregister,t})(r);if(!i.unregister)return i.swSrc?Promise.all([EN(t,r,n),yN(t,i,n)]):(async(e,t,n)=>{const r=e.createTimeSpan("generate service worker started");try{await n.generateSW(t),r.finish("generate service worker finished")}catch(t){J(e.diagnostics,t)}})(t,i,n);await e.sys.writeFile(i.swDest,"\nself.addEventListener('install', function(e) {\n self.skipWaiting();\n});\n\nself.addEventListener('activate', function(e) {\n self.registration.unregister()\n .then(function() {\n return self.clients.matchAll();\n })\n .then(function(clients) {\n clients.forEach(client => client.navigate(client.url))\n });\n});\n")})(e,t,r,n)))},WN="workbox-build",zN=async(e,t,n)=>{if(e.watch)return;if(null==n.packageJson)return;const r=e.outputTargets.filter(Sd),i=e.outputTargets.filter(Vd);await Promise.all([...r.map(r=>XN(e,t,n,r)),...i.map(r=>JN(e,t,n,r))])},XN=async(e,t,n,r)=>{await Promise.all([qN(e,t,n,r),YN(e,t,n,r),QN(e,t,n,r),ZN(e,t,n,r),ew(e,t,n)])},qN=async(e,t,n,r)=>{if(!e.devMode&&Array.isArray(n.packageJson.files)){const i=ae($e(e.rootDir,r.dir)),s=[""+i,i+"/","./"+i,`./${i}/`];if(!n.packageJson.files.some(e=>s.some(t=>ae(e)===t)))return void nw(e,t,n,`package.json "files" array must contain the distribution directory "${i}/" when generating a distribution.`,'"files"');await Promise.all(n.packageJson.files.map(async r=>{if(!V(r)){const i=Me(e.packageJsonFilePath),s=Fe(i,r);await t.fs.access(s)||tw(e,t,n,`Unable to find "${r}" within the package.json "files" array.`,`"${r}"`)}}))}},YN=(e,t,n,r)=>{const i=Fe(r.dir,"index.js"),s=$e(e.rootDir,i);if("string"!=typeof n.packageJson.main||""===n.packageJson.main)nw(e,t,n,'package.json "main" property is required when generating a distribution. It\'s recommended to set the "main" property to: '+s,'"main"');else if(ae(n.packageJson.main)!==ae(s)){const r=`package.json "main" property is set to "${n.packageJson.main}". It's recommended to set the "main" property to: ${s}`;nw(e,t,n,r,'"main"')}},QN=(e,t,n,r)=>{const i=Fe(r.dir,"index.mjs"),s=$e(e.rootDir,i);if("string"!=typeof n.packageJson.module)nw(e,t,n,'package.json "module" property is required when generating a distribution. It\'s recommended to set the "module" property to: '+s,'"module"');else if(ae(n.packageJson.module)!==ae(s)){const r=`package.json "module" property is set to "${n.packageJson.module}". It's recommended to set the "module" property to: ${s}`;nw(e,t,n,r,'"module"')}},JN=async(e,t,n,r)=>{const i=Ad(r),s=$e(e.rootDir,i);if("string"!=typeof n.packageJson.types||""===n.packageJson.types)nw(e,t,n,'package.json "types" property is required when generating a distribution. It\'s recommended to set the "types" property to: '+s,'"types"');else if(n.packageJson.types.endsWith(".d.ts")){const r=Fe(e.rootDir,n.packageJson.types);if(!await t.fs.access(r)){let r=`package.json "types" property is set to "${n.packageJson.types}" but cannot be found.`;ae(n.packageJson.types)!==ae(s)&&(r+=' It\'s recommended to set the "types" property to: '+s),tw(e,t,n,r,'"types"')}}else{const r='package.json "types" file must have a ".d.ts" extension: '+n.packageJson.types;nw(e,t,n,r,'"types"')}},ZN=(e,t,n,r)=>{if(r.collectionDir){const i=Fe($e(e.rootDir,r.collectionDir),"collection-manifest.json");n.packageJson.collection&&ae(n.packageJson.collection)===i||nw(e,t,n,'package.json "collection" property is required when generating a distribution and must be set to: '+i,'"collection"')}},ew=(e,t,n)=>{if("string"==typeof n.packageJson.browser){const r=`package.json "browser" property is set to "${n.packageJson.browser}". However, for maximum compatibility with all bundlers it's recommended to not set the "browser" property and instead ensure both "module" and "main" properties are set.`;nw(e,t,n,r,'"browser"')}},tw=(e,t,n,r,i)=>{const s=Q(t,n.diagnostics,e.packageJsonFilePath,r,i);return s.header="Package Json",s},nw=(e,t,n,r,i)=>{const s=Q(t,n.diagnostics,e.packageJsonFilePath,r,i);return s.header="Package Json",s.level="warn",s},rw=(e,t,n)=>{if(e.devMode)return null;const r=e.outputTargets.filter($d);return Promise.all(r.map(async e=>{const r=Fe(e.dir,"manifest.json");try{const e=await t.fs.readFile(r);if(e)try{const i=JSON.parse(e);await iw(t,n,r,i)}catch(e){const t=q(n.diagnostics);t.header="Invalid manifest.json: "+e,t.absFilePath=r}}catch(e){}}))},iw=async(e,t,n,r)=>{Array.isArray(r.icons)&&await Promise.all(r.icons.map(r=>sw(e,t,n,r)))},sw=async(e,t,n,r)=>{let i=r.src;if("string"!=typeof i){const r='Manifest icon missing "src"';return void Q(e,t.diagnostics,n,r,'"icons"')}i.startsWith("/")&&(i=i.substr(1));const s=Me(n),o=Fe(s,i);if(!await e.fs.access(o)){const i=`Unable to find manifest icon "${r.src}"`;Q(e,t.diagnostics,n,i,`"${r.src}"`)}},ow=async(e,t,r,i)=>{try{if(n.chdir(e.rootDir),await(async(e,t,n)=>{if(n.isRebuild)return;const r=e.outputTargets.filter(Qg).filter(e=>!0===e.empty).map(e=>e.dir||e.esmDir).filter(B);if(0===r.length)return;const i=n.createTimeSpan(`cleaning ${r.length} dirs`,!0);await t.fs.emptyDirs(r),i.finish("cleaning dirs finished")})(e,t,r),r.hasError)return Vf(r);if(e.srcIndexHtml){const n=await t.fs.readFile(e.srcIndexHtml);B(n)&&(r.indexDoc=zg(n))}if(await(async(e,t,n)=>{try{const r=await t.fs.readFile(e.packageJsonFilePath);if(r){const t=Ce(r,e.packageJsonFilePath);t.diagnostic?n.diagnostics.push(t.diagnostic):n.packageJson=t.data}}catch(t){if(!e.outputTargets.some(e=>e.type.includes("dist"))){const t=q(n.diagnostics);t.header='Missing "package.json"',t.messageText='Valid "package.json" file is required for distribution: '+e.packageJsonFilePath}}})(e,t,r),r.hasError)return Vf(r);const s=r.createTimeSpan("transpile started"),o=await HN(e,t,r,i);if(s.finish("transpile finished"),r.hasError)return Vf(r);if(e.watch&&o)return null;if(r.stylesPromise=(async(e,t,n)=>{const r=e.outputTargets.filter(kd);if(0===r.length)return;const i=await a_(e,t,n);i&&await Promise.all(r.map(e=>t.fs.writeFile(e.file,i)))})(e,t,r),r.hasError)return Vf(r);if(await $N(e,t,r),r.hasError)return Vf(r);await r.stylesPromise,await(async(e,t,n)=>{const r=n.createTimeSpan("writeBuildFiles started",!0);let i=0;try{const r=await t.fs.commit();n.filesWritten=r.filesWritten,n.filesDeleted=r.filesDeleted,n.dirsDeleted=r.dirsDeleted,n.dirsAdded=r.dirsAdded,i=r.filesWritten.length,n.debug("in-memory-fs: "+t.fs.getMemoryStats()),await KN(e,n),await((e,t,n)=>n.hasError?null:Promise.all([zN(e,t,n),rw(e,t,n)]))(e,t,n)}catch(e){J(n.diagnostics,e)}r.finish("writeBuildFiles finished, files wrote: "+i)})(e,t,r)}catch(e){J(r.diagnostics,e)}return t.changedFiles.clear(),(async e=>{const t=await Hf(e.config,e.compilerCtx,e,!1),n={buildId:e.buildId,messages:e.buildMessages.slice(),progress:1};return e.compilerCtx.events.emit("buildLog",n),t})(r)},aw=e=>({experimentalDecorators:!0,declaration:e.outputTargets.some(Vd),module:Xn.ModuleKind.ESNext,moduleResolution:Xn.ModuleResolutionKind.NodeJs,noEmitOnError:!1,outDir:e.cacheDir||e.sys.tmpdir(),sourceMap:!!e.sourceMap}),lw=e=>{const t=new Map,n=new Map,r=async e=>{const t=g(e);if("boolean"==typeof t.exists)return{exists:t.exists,isDirectory:t.isDirectory,isFile:t.isFile};const n={exists:!1,isDirectory:!1,isFile:!1},r=await l(e);return r?(t.exists=r.exists,t.isDirectory=r.isDirectory,t.isFile=r.isFile,n.exists=t.exists,n.isDirectory=t.isDirectory,n.isFile=t.isFile):t.exists=!1,n},i=async(e,n={})=>{e=ae(e);const r=[];if(!0===n.inMemoryOnly){let i=e;i.endsWith("/")||(i+="/");const s=e.split("/");t.forEach((t,i)=>{if(!i.startsWith(e))return;const a=i.split("/");if((a.length===s.length+1||n.recursive&&a.length>s.length)&&t.exists){const e={absPath:i,relPath:a[s.length],isDirectory:t.isDirectory,isFile:t.isFile};o(n,e)||r.push(e)}})}else await s(e,e,n,r);return r.sort((e,t)=>e.absPath<t.absPath?-1:e.absPath>t.absPath?1:0)},s=async(t,n,r,i)=>{const a=await e.readdir(n);if(a.length>0){const e=g(n);e.exists=!0,e.isFile=!1,e.isDirectory=!0,await Promise.all(a.map(async e=>{const n=ae(e),a=ae($e(t,n)),c=await l(n),u={absPath:n,relPath:a,isDirectory:c.isDirectory,isFile:c.isFile};o(r,u)||(i.push(u),!0===r.recursive&&!0===c.isDirectory&&await s(t,n,r,i))}))}},o=(e,t)=>{if(t.isDirectory){if(Array.isArray(e.excludeDirNames)){const n=Ie(t.absPath);if(e.excludeDirNames.some(e=>n===e))return!0}}else if(Array.isArray(e.excludeExtensions)){const n=t.relPath.toLowerCase();if(e.excludeExtensions.some(e=>n.endsWith(e)))return!0}return!1},a=async e=>{const t=g(e);t.queueWriteToDisk||(t.queueDeleteFromDisk=!0)},l=async t=>{const n=g(t);if("boolean"!=typeof n.isDirectory||"boolean"!=typeof n.isFile){const r=await e.stat(t);r?(n.exists=!0,r.isFile()?(n.isFile=!0,n.isDirectory=!1,n.size=r.size):r.isDirectory()?(n.isFile=!1,n.isDirectory=!0,n.size=r.size):(n.isFile=!1,n.isDirectory=!1,n.size=null)):n.exists=!1}return{exists:!!n.exists,isFile:!!n.isFile,isDirectory:!!n.isDirectory,size:"number"==typeof n.size?n.size:0}},c=t=>{const n=g(t);if("boolean"!=typeof n.isDirectory||"boolean"!=typeof n.isFile){const r=e.statSync(t);r?(n.exists=!0,r.isFile()?(n.isFile=!0,n.isDirectory=!1,n.size=r.size):r.isDirectory()?(n.isFile=!1,n.isDirectory=!0,n.size=r.size):(n.isFile=!1,n.isDirectory=!1,n.size=null)):n.exists=!1}return{exists:!!n.exists,isFile:!!n.isFile,isDirectory:!!n.isDirectory}},u=async(t,r,i)=>{if("string"!=typeof t)throw new Error("writeFile, invalid filePath: "+t);if("string"!=typeof r)throw new Error("writeFile, invalid content: "+t);const s={ignored:!1,changedContent:!1,queuedWrite:!1};if(!0===uw(t))return s.ignored=!0,s;const o=g(t);if(o.exists=!0,o.isFile=!0,o.isDirectory=!1,o.queueDeleteFromDisk=!1,"string"==typeof o.fileText?s.changedContent=o.fileText.replace(/\r/g,"")!==r.replace(/\r/g,""):s.changedContent=!0,o.fileText=r,s.queuedWrite=!1,null!=i&&("string"==typeof i.outputTargetType&&n.set(t,i.outputTargetType),!1===i.useCache&&(o.useCache=!1)),null!=i&&!0===i.inMemoryOnly)o.queueWriteToDisk?s.queuedWrite=!0:o.queueWriteToDisk=!1,await h(t,!0);else if(null!=i&&!0===i.immediateWrite){if(s.changedContent||!0!==i.useCache){const n=await e.readFile(t);"string"==typeof n&&(s.changedContent=o.fileText.replace(/\r/g,"")!==n.replace(/\r/g,"")),s.changedContent&&(await h(t,!1),await e.writeFile(t,o.fileText))}}else o.queueWriteToDisk||!0!==s.changedContent||(o.queueWriteToDisk=!0,s.queuedWrite=!0);return s},h=async(e,t)=>{const n=[];for(;"string"==typeof(e=Me(e))&&e.length>0&&"/"!==e&&!1===e.endsWith(":/")&&!1===e.endsWith(":\\");)n.push(e);n.reverse(),await p(n,t)},p=async(t,n)=>{const r=[];for(const i of t){const t=g(i);if(!0!==t.exists||!0!==t.isDirectory)try{t.exists=!0,t.isDirectory=!0,t.isFile=!1,n||await e.mkdir(i),r.push(i)}catch(e){}}return r},d=async t=>{const n=g(t);if(null==n.fileText)throw new Error("unable to find item fileText to write: "+t);return await e.writeFile(t,n.fileText),!1===n.useCache&&m(t),t},f=e=>{e=ae(e),t.forEach((t,n)=>{const r=$e(e,n).split("/")[0];r.startsWith(".")||r.startsWith("/")||m(n)})},m=e=>{e=ae(e);const n=t.get(e);null==n||n.queueWriteToDisk||t.delete(e)},g=e=>{e=ae(e);let n=t.get(e);return null!=n||t.set(e,n={exists:null,fileText:null,size:null,mtimeMs:null,isDirectory:null,isFile:null,queueCopyFileToDest:null,queueDeleteFromDisk:null,queueWriteToDisk:null,useCache:null}),n};return{access:async e=>(await r(e)).exists,accessSync:e=>{const t=g(e);if("boolean"!=typeof t.exists){const n=c(e);t.exists=n.exists,t.isDirectory=n.isDirectory,t.isFile=n.isFile}return t.exists},accessData:r,cancelDeleteDirectoriesFromDisk:e=>{for(const t of e){const e=g(t);!0===e.queueDeleteFromDisk&&(e.queueDeleteFromDisk=!1)}},cancelDeleteFilesFromDisk:e=>{for(const t of e){const e=g(t);!0===e.isFile&&!0===e.queueDeleteFromDisk&&(e.queueDeleteFromDisk=!1)}},clearCache:()=>t.clear(),clearDirCache:f,clearFileCache:m,commit:async()=>{const n=cw(t),r=await p(n.dirsToEnsure,!1),i=await(c=n.filesToWrite,Promise.all(c.map(async e=>{if("string"!=typeof e)throw new Error("unable to writeFile without filePath");return d(e)}))),s=await(l=n.filesToCopy,Promise.all(l.map(async t=>{const n=t[0],r=t[1];return await e.copyFile(n,r),[n,r]}))),o=await(async t=>await Promise.all(t.map(async t=>{if("string"!=typeof t)throw new Error("unable to unlink without filePath");return await e.unlink(t),t})))(n.filesToDelete),a=await(async t=>{const n=[];for(const r of t)await e.rmdir(r),n.push(r);return n})(n.dirsToDelete);var l,c;return n.filesToDelete.forEach(m),n.dirsToDelete.forEach(f),{filesCopied:s,filesWritten:i,filesDeleted:o,dirsDeleted:a,dirsAdded:r}},copyFile:async(e,t)=>{g(e).queueCopyFileToDest=t},emptyDirs:async e=>{e=e.filter(B).map(ae).reduce((e,t)=>(e.includes(t)||e.push(t),e),[]);const t=await Promise.all(e.map(e=>i(e,{recursive:!0}))),n=[];for(const e of t)for(const t of e)n.includes(t.absPath)||n.push(t.absPath);n.sort((e,t)=>{const n=e.split("/").length,r=t.split("/").length;return n<r?1:n>r?-1:0}),await Promise.all(n.map(a)),e.forEach(e=>{const t=g(e);t.isFile=!1,t.isDirectory=!0,t.queueWriteToDisk=!0,t.queueDeleteFromDisk=!1})},getBuildOutputs:()=>{const e=[];return n.forEach((t,n)=>{const r=e.find(e=>e.type===t);r?r.files.push(n):e.push({type:t,files:[n]})}),e.forEach(e=>e.files.sort()),e.sort((e,t)=>e.type<t.type?-1:e.type>t.type?1:0)},getItem:g,getMemoryStats:()=>"data length: "+t.size,keys:()=>Array.from(t.keys()).sort(),readFile:async(t,n)=>{if(null==n||!0===n.useCache||void 0===n.useCache){const e=g(t);if(e.exists&&"string"==typeof e.fileText)return e.fileText}const r=await e.readFile(t),i=g(t);return"string"==typeof r?r.length<5242880&&(i.exists=!0,i.isFile=!0,i.isDirectory=!1,i.fileText=r):i.exists=!1,r},readFileSync:(t,n)=>{if(null==n||!0===n.useCache||void 0===n.useCache){const e=g(t);if(e.exists&&"string"==typeof e.fileText)return e.fileText}const r=e.readFileSync(t),i=g(t);return"string"==typeof r?r.length<5242880&&(i.exists=!0,i.isFile=!0,i.isDirectory=!1,i.fileText=r):i.exists=!1,r},readdir:i,remove:async e=>{const t=await l(e);!0===t.isDirectory?await(async e=>{const t=g(e);t.isFile=!1,t.isDirectory=!0,t.queueWriteToDisk||(t.queueDeleteFromDisk=!0);try{const t=await i(e,{recursive:!0});await Promise.all(t.map(e=>e.relPath.endsWith(".gitkeep")?null:a(e.absPath)))}catch(e){}})(e):!0===t.isFile&&await a(e)},stat:l,statSync:c,sys:e,writeFile:u,writeFiles:(e,t)=>{const n=[];return $(e)?e.forEach((e,r)=>{n.push(u(r,e,t))}):Object.keys(e).map(r=>{n.push(u(r,e[r],t))}),Promise.all(n)}}},cw=e=>{const t={filesToDelete:[],filesToWrite:[],filesToCopy:[],dirsToDelete:[],dirsToEnsure:[]};e.forEach((e,n)=>{if(!0===e.queueWriteToDisk){if(!0===e.isFile){t.filesToWrite.push(n);const e=ae(Me(n));t.dirsToEnsure.includes(e)||t.dirsToEnsure.push(e);const r=t.dirsToDelete.indexOf(e);r>-1&&t.dirsToDelete.splice(r,1);const i=t.filesToDelete.indexOf(n);i>-1&&t.filesToDelete.splice(i,1)}else if(!0===e.isDirectory){t.dirsToEnsure.includes(n)||t.dirsToEnsure.push(n);const e=t.dirsToDelete.indexOf(n);e>-1&&t.dirsToDelete.splice(e,1)}}else if(!0===e.queueDeleteFromDisk)e.isDirectory&&!t.dirsToEnsure.includes(n)?t.dirsToDelete.push(n):e.isFile&&!t.filesToWrite.includes(n)&&t.filesToDelete.push(n);else if("string"==typeof e.queueCopyFileToDest){const r=n,i=e.queueCopyFileToDest;t.filesToCopy.push([r,i]);const s=ae(Me(i));t.dirsToEnsure.includes(s)||t.dirsToEnsure.push(s);const o=t.dirsToDelete.indexOf(s);o>-1&&t.dirsToDelete.splice(o,1);const a=t.filesToDelete.indexOf(i);a>-1&&t.filesToDelete.splice(a,1)}e.queueDeleteFromDisk=!1,e.queueWriteToDisk=!1});for(let e=0,n=t.dirsToEnsure.length;e<n;e++){const n=t.dirsToEnsure[e].split("/");for(let e=2;e<n.length;e++){const r=n.slice(0,e).join("/");!1===t.dirsToEnsure.includes(r)&&t.dirsToEnsure.push(r)}}t.dirsToEnsure.sort((e,t)=>{const n=e.split("/").length,r=t.split("/").length;return n<r?-1:n>r?1:e.length<t.length?-1:e.length>t.length?1:0}),t.dirsToDelete.sort((e,t)=>{const n=e.split("/").length,r=t.split("/").length;return n<r?1:n>r?-1:e.length<t.length?1:e.length>t.length?-1:0});for(const e of t.dirsToEnsure){const n=t.dirsToDelete.indexOf(e);n>-1&&t.dirsToDelete.splice(n,1)}return t.dirsToDelete=t.dirsToDelete.filter(e=>"/"!==e&&!0!==e.endsWith(":/")),t.dirsToEnsure=t.dirsToEnsure.filter(t=>{const n=e.get(t);return(null==n||!0!==n.exists||!0!==n.isDirectory)&&"/"!==t&&!t.endsWith(":/")}),t},uw=e=>(e=e.trim().toLowerCase(),hw.some(t=>e.endsWith(t))),hw=[".ds_store",".gitignore","desktop.ini","thumbs.db"],pw=e=>({optimizeCss:e.handler("optimizeCss"),prepareModule:e.handler("prepareModule"),prerenderWorker:e.handler("prerenderWorker"),transformCssToEsm:e.handler("transformCssToEsm")}),dw=e=>e.split(".").pop().toLowerCase(),fw=["ts","tsx","js","jsx"],mw=["css","scss","sass","pcss","styl","stylus","less"],gw=async(e,t)=>{let n,r,i,s,o=!1;const a=new Promise(e=>s=e),l=new Set,c=new Set,u=new Set,h=new Set,p=new Set,d=(r,i)=>{switch(Tw(e,t,r,i),i){case"dirAdd":l.add(r);break;case"dirDelete":c.add(r);break;case"fileAdd":u.add(r);break;case"fileUpdate":h.add(r);break;case"fileDelete":p.add(r)}e.logger.debug(`${i}: ${r}`),n.rebuild()},f=async n=>{const r=new Ou(e,t);r.isRebuild=o,r.requiresFullBuild=!o,r.dirsAdded=Array.from(l.keys()).sort(),r.dirsDeleted=Array.from(c.keys()).sort(),r.filesAdded=Array.from(u.keys()).sort(),r.filesUpdated=Array.from(h.keys()).sort(),r.filesDeleted=Array.from(p.keys()).sort(),r.filesChanged=(e=>R([...e.filesUpdated,...e.filesAdded,...e.filesDeleted]).sort())(r),r.scriptsAdded=(e=>e.filesAdded.filter(e=>fw.some(t=>e.endsWith(t.toLowerCase()))).map(e=>Ie(e)))(r),r.scriptsDeleted=(e=>e.filesDeleted.filter(e=>fw.some(t=>e.endsWith(t.toLowerCase()))).map(e=>Ie(e)))(r),r.hasScriptChanges=(e=>e.filesChanged.some(e=>{const t=dw(e);return fw.includes(t)}))(r),r.hasStyleChanges=(e=>e.filesChanged.some(e=>{const t=dw(e);return mw.includes(t)}))(r),r.hasHtmlChanges=((e,t)=>!!t.filesChanged.some(e=>e.toLowerCase().endsWith(".html"))||t.filesChanged.some(t=>t===e.srcIndexHtml))(e,r),r.hasServiceWorkerChanges=((e,t)=>!(e.devMode&&!e.flags.serviceWorker)&&e.outputTargets.filter($d).filter(e=>e.serviceWorker&&e.serviceWorker.swSrc).some(e=>t.filesChanged.some(t=>!!e.serviceWorker&&Ie(t).toLowerCase()===Ie(e.serviceWorker.swSrc).toLowerCase())))(e,r),l.clear(),c.clear(),u.clear(),h.clear(),p.clear(),yw(t,r),r.start();const i=await ow(e,t,r,n);i&&!i.hasError&&(o=!0)},m=async()=>{r&&r(),i&&i(),n&&n.program.close(),r=i=n=null;const e={exitCode:0};return s(e),e};return e.sys.addDestory(m),{start:async()=>{const s=_w(e,t,d),o=Ew(e,t);return r=await s,i=await o,n=await(async(e,t)=>{let n,r,i,s=!1;const o=aw(e),a=Object.assign(Object.assign({},Xn.sys),{setTimeout(t,n){clearInterval(i);const o=r=setInterval(()=>{s||(t(),clearInterval(o),r=i=null)},e.sys.watchTimeout||n);return o},clearTimeout:e=>clearInterval(e)});e.sys.addDestory(()=>a.clearTimeout(r));const l=Xn.createWatchCompilerHost(e.tsconfig,o,a,Xn.createEmitAndSemanticDiagnosticsBuilderProgram,t=>{e.logger.debug("watch reportDiagnostic:"+t.messageText)},t=>{e.logger.debug(t.messageText)});return l.afterProgramCreate=async e=>{n=e,s=!0,await t(e),s=!1},{program:Xn.createWatchProgram(l),rebuild:()=>{n&&!r&&(i=a.setTimeout(()=>l.afterProgramCreate(n),300))}}})(e,f),a},close:m,on:t.events.on,request:async n=>(async(e,t,n)=>{const r={nodeModuleId:null,nodeModuleVersion:null,nodeResolvedPath:null,cachePath:null,cacheHit:!1,content:"",status:404};try{const i=((e,t)=>{const n={nodeModuleId:null,nodeModuleVersion:null,nodeResolvedPath:null};if(t&&t.includes(FC)&&t.endsWith(".js")){const r=new URL(t,"https://rindojs.web.app");let i=Ie(r.pathname);i=i.substring(0,i.length-3);let s=i.split("@");2===s.length&&(n.nodeModuleId=decodeURIComponent(s[0]),n.nodeModuleVersion=decodeURIComponent(s[1]),n.nodeResolvedPath=r.searchParams.get("p"),n.nodeResolvedPath&&(n.nodeResolvedPath=decodeURIComponent(n.nodeResolvedPath),n.nodeResolvedPath=Fe(e.rootDir,n.nodeResolvedPath)))}return n})(e,n.path);if(Object.assign(r,i),!i.nodeModuleId)return r.content="/* invalid dev module */",r.status=400,r;{if(!i.nodeModuleVersion)return r.content="/* invalid module version */",r.status=400,r;if(!i.nodeResolvedPath)return r.content="/* invalid resolved path */",r.status=400,r;const n=await(async(e,t)=>{if(e.enableCache)for(let n=0;n<10;n++){if("node_modules"===Ie(t))return!0;if(await e.sys.isSymbolicLink(t))return!1;t=Me(t)}return!1})(e,i.nodeResolvedPath);let s=null;if(n){s=((e,t)=>Fe(e.cacheDir,`dev_module_${t.nodeModuleId}_${t.nodeModuleVersion}_${LC}.log`))(e,i);const t=await e.sys.readFile(s);if("string"==typeof t)return r.content=t,r.cachePath=s,r.cacheHit=!0,r.status=200,r}await(async(e,t,n,r)=>{const i=new Ou(e,t);try{const s=fx(e,t,i,{id:n.nodeModuleId,platform:"client",inputs:{index:n.nodeResolvedPath}}),o=await OC(s),a={format:"es"};if(n.nodeModuleId){const t=$e(e.rootDir,n.nodeResolvedPath);a.intro=`/**\n * Dev Node Module: ${n.nodeModuleId}, v${n.nodeModuleVersion}\n * Entry: ${t}\n * DEVELOPMENT PURPOSES ONLY!!\n */`,s.input=n.nodeResolvedPath}const l=await o.generate(a);i.hasError?(r.status=500,r.content=`console.error(${JSON.stringify(i.diagnostics)})`):l&&l.output&&l.output.length>0&&(r.content=l.output[0].code,r.status=200)}catch(e){r.status=500,r.content=`console.error(${JSON.stringify((e.stack||e)+"")})`}})(e,t,i,r),200===r.status&&n&&(r.cachePath=s,(async(e,t)=>{try{await e.sys.mkdir(e.cacheDir),e.sys.writeFile(t.cachePath,t.content)}catch(e){console.error(e)}})(e,r))}}catch(e){e&&(e.stack?r.content=`/*\n${e.stack}\n*/`:r.content=`/*\n${e}\n*/`),r.status=500}return r})(e,t,n)}},_w=async(e,t,n)=>{const r=new Map,i=t=>{r.has(t)||r.set(t,e.sys.watchFile(t,n))};return(await t.fs.readdir(e.srcDir,{recursive:!0,excludeDirNames:[".cache",".git",".github",".rindo",".vscode","node_modules"],excludeExtensions:[".md",".markdown",".txt",".spec.ts",".spec.tsx",".e2e.ts",".e2e.tsx",".gitignore",".editorconfig"]})).filter(({isFile:e})=>e).forEach(({absPath:e})=>i(e)),r.set(e.srcDir,e.sys.watchDirectory(e.srcDir,(e,t)=>{null!=t&&(i(e),n(e,t))})),()=>{r.forEach(e=>e.close())}},Ew=async(e,t)=>{const n=(e,n)=>{const r={dirsAdded:[],dirsDeleted:[],filesUpdated:[],filesAdded:[],filesDeleted:[]};switch(n){case"dirAdd":r.dirsAdded.push(e);break;case"dirDelete":r.dirsDeleted.push(e);break;case"fileAdd":r.filesAdded.push(e);break;case"fileUpdate":r.filesUpdated.push(e);break;case"fileDelete":r.filesDeleted.push(e)}t.events.emit("fsChange",r)},r=new Map;return(await t.fs.readdir(e.rootDir,{recursive:!1,excludeDirNames:[".cache",".git",".github",".rindo",".vscode","node_modules"]})).filter(({isFile:e})=>e).forEach(({absPath:t})=>(t=>{r.has(t)||r.set(t,e.sys.watchFile(t,n))})(t)),()=>{r.forEach(e=>e.close())}},yw=(e,t)=>{(t.dirsAdded.length>0||t.dirsDeleted.length>0||t.filesUpdated.length>0||t.filesAdded.length>0||t.filesDeleted.length>0)&&e.events.emit("fsChange",{dirsAdded:t.dirsAdded.slice(),dirsDeleted:t.dirsDeleted.slice(),filesUpdated:t.filesUpdated.slice(),filesAdded:t.filesAdded.slice(),filesDeleted:t.filesDeleted.slice()})},Tw=(e,t,n,r)=>{if(t.fs.clearFileCache(n),t.changedFiles.add(n),"fileDelete"===r)t.moduleMap.delete(n);else if("dirDelete"===r){const r=Ue("/");t.moduleMap.forEach((i,s)=>{let o=Me(s);for(let i=0;i<50&&o!==e.rootDir&&o!==r;i++){if(o===n){t.fs.clearFileCache(s),t.moduleMap.delete(s),t.changedFiles.add(s);break}o=Me(o)}})}},vw=(e,t)=>{const n=new URL(e.outputTarget.baseUrl,e.devServerHostUrl).pathname.toLowerCase(),r=new URL(t,e.devServerHostUrl).pathname.toLowerCase(),i=n.split("/"),s=r.split("/");let o;o=n===r?Ge.basename(e.outputTarget.indexHtml):"index.html";const a=[];for(let e=0;e<s.length;e++){const t=i[e],n=s[e];if("string"!=typeof t||t!==n){if(e===s.length-1){const t=s[e].toLowerCase();if(t.endsWith(".html")||t.endsWith(".htm")){o=s[e];break}}a.push(n)}}return a.push(o),Ge.join(e.outputTarget.appDir,...a)},Aw=(e,t,n)=>{if("string"==typeof t&&""!==t&&!e.urlsPending.has(t)&&!e.urlsProcessing.has(t)&&!e.urlsCompleted.has(t)&&(e.urlsPending.add(t),e.isDebug)){const r=new URL(t,e.outputTarget.baseUrl).pathname,i=n.startsWith("#")?n:new URL(n,e.outputTarget.baseUrl).pathname;e.config.logger.debug(`prerender queue: ${r} (from ${i})`)}},bw=(e,t)=>{const n=t.urlsPending.values().next();if(!n.done)if(t.urlsProcessing.size>t.maxConcurrency)setTimeout(()=>bw(e,t));else{const r=n.value;t.urlsPending.delete(r),t.urlsProcessing.add(r),Sw(e,t,r),t.urlsProcessing.size<t.maxConcurrency&&t.config.sys.nextTick(()=>bw(e,t))}0===t.urlsProcessing.size&&0===t.urlsPending.size&&"function"==typeof t.resolve&&(t.resolve(),t.resolve=null)},Sw=async(e,t,n)=>{let r=n;try{let e;r=new URL(n).pathname,t.isDebug&&(e=t.config.logger.createTimeSpan("prerender start: "+r,!0));const i={id:t.id,baseUrl:t.outputTarget.baseUrl,componentGraphPath:t.componentGraphPath,devServerHostUrl:t.devServerHostUrl,hydrateAppFilePath:t.hydrateAppFilePath,isDebug:t.isDebug,prerenderConfigPath:t.prerenderConfigPath,staticSite:t.staticSite,templateId:t.templateId,url:n,writeToFilePath:vw(t,n)},s=await t.prerenderUrlWorker(i);if(t.isDebug){const n=$e(t.config.rootDir,s.filePath);s.diagnostics.some(e=>"error"===e.level)?e.finish(`prerender failed: ${r}, ${n}`,"red"):e.finish(`prerender finish: ${r}, ${n}`)}if(t.diagnostics.push(...s.diagnostics),Array.isArray(s.anchorUrls))for(const e of s.anchorUrls)Aw(t,e,n)}catch(e){J(t.diagnostics,e)}t.urlsProcessing.delete(n),t.urlsCompleted.add(n),e.urls++;const i=t.urlsCompleted.size;t.progressLogger&&i>1&&t.progressLogger.update(` prerendered ${i} urls: ${t.config.logger.dim(r)}`),t.config.sys.nextTick(()=>bw(e,t))},Cw=e=>{const t=[];if("function"==typeof e.prerenderConfig.canonicalUrl)for(const n of e.urlsCompleted){const r=e.prerenderConfig.canonicalUrl(new URL(n));"string"==typeof r&&""!==r.trim()&&t.push(r)}else for(const n of e.urlsCompleted)"string"==typeof n&&t.push(n);return t.sort(xw)},xw=(e,t)=>{const n=e.split("/").length,r=t.split("/").length;return n<r?-1:n>r?1:e<t?-1:e>t?1:0},Dw=async(e,t,n,r,i,s,o,a,l)=>{try{const c=r.logger.createTimeSpan("prerendering started"),u=new URL(i.browserUrl),h=u.origin,p=ui(n,l.prerenderConfig),d=ci(p,u,n);if(r.logger.debug("prerender hydrate app: "+s),r.logger.debug("prerender dev server: "+h),Z(n))return;const f=[],m={id:""+Math.random()*Number.MAX_VALUE,prerenderUrlWorker:t=>e.prerenderWorker(t),componentGraphPath:null,config:r,diagnostics:f,devServerHostUrl:h,hydrateAppFilePath:s,isDebug:"debug"===r.logLevel,logCount:0,maxConcurrency:Math.max(20,10*r.maxConcurrentWorkers),outputTarget:l,prerenderConfig:p,prerenderConfigPath:l.prerenderConfig,staticSite:!1,templateId:null,urlsCompleted:new Set,urlsPending:new Set,urlsProcessing:new Set,resolve:null};if(r.flags.ci||m.isDebug||(m.progressLogger=await r.logger.createLineUpdater()),((e,t)=>{const n=[];if(Array.isArray(t.prerenderConfig.entryUrls))for(const e of t.prerenderConfig.entryUrls){const t={href:e};n.push(t)}else{const e={href:t.outputTarget.baseUrl};n.push(e)}for(const r of n)try{new URL(r.href,t.outputTarget.baseUrl)}catch(t){const n=q(e.diagnostics);return n.header="Invalid Prerender Entry Url: "+r.href,void(n.messageText="Entry Urls must include the protocol and domain of the site being prerendered.")}const r=new URL(t.outputTarget.baseUrl),i=ti(t.prerenderConfig,e.diagnostics,r,r,n);for(const e of i)Aw(t,e,"#entryUrl")})(t,m),0===m.urlsPending.size)return void(q(n).messageText="prerendering failed: no urls found in the prerender config");const g=await(async(e,t,n,r,i,s,o)=>{try{let a;if("string"!=typeof i&&(i=s.indexHtml),"function"==typeof t.loadTemplate){const e=t.loadTemplate(i);a=U(e)?await e:e}else a=await e.sys.readFile(i);let l=zg(a),c=!1;if(t.staticSite?(Zr(l),c=!0):c=!(e=>!!e.querySelector("script[data-rindo]"))(l),l.documentElement.classList.add("hydrated"),o.inlineExternalStyleSheets&&!r)try{await(async(e,t,n)=>{const r=Array.from(n.querySelectorAll("link[rel=stylesheet]"));0!==r.length&&await Promise.all(r.map(async r=>{const i=r.getAttribute("href");if(!i.startsWith("/")||null!==r.getAttribute("media"))return;const s=Fe(t,i);try{let t=await e.sys.readFile(s);t=(await $n({input:t})).output;const i=n.createElement("style");i.innerHTML=t,r.parentNode.insertBefore(i,r),r.remove(),i.setAttribute("data-styles",""),r.setAttribute("media","(max-width: 0px)"),r.setAttribute("importance","low"),r.setAttribute("onload","this.media=''"),n.body.appendChild(r)}catch(e){}}))})(e,s.appDir,l)}catch(e){J(n,e)}if(o.minifyScriptElements&&!r)try{await qr(l,!0)}catch(e){J(n,e)}if(o.minifyStyleElements&&!r)try{await Yr(l,!0)}catch(e){J(n,e)}if("function"==typeof t.beforeSerializeTemplate){const e=t.beforeSerializeTemplate(l);l=U(e)?await e:e}let u=Cm(l);if("function"==typeof t.afterSerializeTemplate){const e=t.afterSerializeTemplate(u);u=U(e)?await e:e}return{html:u,staticSite:c}}catch(e){J(n,e)}})(r,p,n,m.isDebug,a,l,d);if(n.length>0||!g||"string"!=typeof g.html)return;if(m.templateId=await Nw(r,g.html),m.staticSite=g.staticSite,m.componentGraphPath=ww(r,o,l),await new Promise(e=>{m.resolve=e,r.sys.nextTick(()=>bw(t,m))}),m.isDebug){const e=f.filter(e=>"debug"===e.level);e.length>0&&r.logger.printDiagnostics(e)}const _=c.duration(),E=await(async e=>{if(null===e.prerenderConfig.sitemapXml)return null;try{"function"!=typeof e.prerenderConfig.sitemapXml&&(e.prerenderConfig.sitemapXml=function(e){const t=[];t.push('<?xml version="1.0" encoding="UTF-8"?>'),t.push('<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">');for(const n of e.urls)t.push(`<url><loc>${n}</loc></url>`);return t.push("</urlset>"),t.join("\n")});const t={urls:Cw(e),baseUrl:e.outputTarget.baseUrl,dir:e.outputTarget.appDir},n=e.prerenderConfig.sitemapXml(t);if(null==n)return null;const r={content:null,filePath:null,url:null};if("string"==typeof n?r.content=n:(r.content=n.content,r.filePath=n.filePath),"string"!=typeof r.content)return null;if("string"!=typeof r.filePath&&(r.filePath=Fe(e.outputTarget.appDir,"sitemap.xml")),"string"!=typeof r.url){const t=new URL("sitemap.xml",e.outputTarget.baseUrl);r.url=t.href}return await e.config.sys.writeFile(r.filePath,r.content),r}catch(t){return J(e.diagnostics,t),null}})(m);await(async(e,t)=>{if(null===e.prerenderConfig.robotsTxt)return null;try{"function"!=typeof e.prerenderConfig.robotsTxt&&(e.prerenderConfig.robotsTxt=function(e){const t=["User-agent: *","Disallow:"];return"string"==typeof e.sitemapUrl&&t.push("Sitemap: "+e.sitemapUrl),t.join("\n")});const n={urls:Cw(e),baseUrl:e.outputTarget.baseUrl,sitemapUrl:t?t.url:null,dir:e.outputTarget.dir},r=e.prerenderConfig.robotsTxt(n);if(null==r)return null;const i={content:null,filePath:null,url:null};if("string"==typeof r?i.content=r:(i.content=r.content,i.filePath=r.filePath),"string"!=typeof i.content)return null;const s=i.content.replace(/\r/g,"\n").split("\n");if(i.content=s.map(e=>e.trim()).join("\n"),"string"!=typeof i.filePath&&(i.filePath=Fe(e.outputTarget.dir,"robots.txt")),"string"!=typeof i.url){const t=new URL("/robots.txt",e.outputTarget.baseUrl);i.url=t.href}return await e.config.sys.writeFile(i.filePath,i.content),i}catch(t){return J(e.diagnostics,t),null}})(m,E);const y=f.filter(e=>"error"===e.level),T=f.filter(e=>"runtime"===e.type);if(y.length>0){for(const e of y)e.type="runtime";n.push(...y)}n.push(...T),m.progressLogger&&await m.progressLogger.stop();const v=m.urlsCompleted.size;if(v>1){const e=Math.round(_/v);r.logger.info(`prerendered ${v} urls, averaging ${e} ms per url`)}const A=y.length>0?"failed":"finished",b=y.length>0?"red":"green";c.finish("prerendering "+A,b,!0)}catch(e){J(n,e)}},Nw=async(e,t)=>{const n=`prerender-${await e.sys.generateContentHash(t,12)}.html`,r=Fe(e.sys.tmpdir(),n);return e.logger.debug("prerender template: "+r),e.sys.writeFileSync(r,t),r},ww=(e,t,n)=>{if(t){const r=Ow(t,n),i=`prerender-component-graph-${e.sys.generateContentHash(r)}.json`,s=Fe(e.sys.tmpdir(),i);return e.sys.writeFileSync(s,r),s}return null},Ow=(e,t)=>{const n=Kr(t),r={},i=Object.entries(e);for(const[e,t]of i)r[e]=t.map(e=>Fe(n,e));return JSON.stringify(r)},kw=(e,t)=>(Le(t)||(t=Fe(e.rootDir,t)),t),Rw=(e,t,n,r)=>{n&&"boolean"==typeof e.flags[n]&&(e[t]=e.flags[n]);const i=Iw(e,t);"function"==typeof e[i]&&(e[i]=!!e[i]()),"boolean"==typeof e[i]?e[t]=e[i]:e[t]=r},Iw=(e,t)=>{const n=Object.keys(e);for(const r of n)if(r.toLowerCase()===t.toLowerCase()){if(r!==t)return e.logger.warn(`config "${r}" should be "${t}"`),r;break}return t},Mw=(e,t)=>t.filter(Sd).map(t=>Object.assign(Object.assign({},t),{dir:kw(e,t.dir||"dist/collection")})),Pw=(e,t)=>t.filter(Cd).map(t=>{const n=Object.assign(Object.assign({},t),{dir:kw(e,t.dir||"dist/components")});return M(n.empty)||(n.empty=!0),n}),Lw=(e,t,n)=>n.filter(Id).map(n=>{if(n.validate){const r=[];try{n.validate(e,t)}catch(e){J(r,e)}n.copy&&n.copy.length>0&&e.outputTargets.push({type:Gd,dir:e.rootDir,copy:[...n.copy]}),t.push(...r)}return n}),Fw=(e,t=[])=>{if(null===e||!1===e)return[];Array.isArray(e)||(e=[]),e=e.slice();for(const n of t)e.every(e=>e.src!==n.src)&&e.push(n);return R(e,e=>`${e.src}:${e.dest}:${e.keepDirStructure}`)},Bw=(e,t)=>t.filter(bd).reduce((t,n)=>{const r=$w(e,n);t.push(r);const i=e.fsNamespace||"app",s=Fe(r.buildDir,i);if(t.push({type:Jd,esmDir:s,systemDir:e.buildEs5?s:void 0,systemLoaderFile:e.buildEs5?Fe(s,i+".js"):void 0,legacyLoaderFile:Fe(r.buildDir,i+".js"),polyfills:void 0===r.polyfills||!!r.polyfills,isBrowserBuild:!0,empty:r.empty}),t.push({type:Gd,dir:s,copyAssets:"dist",copy:[...r.copy]}),t.push({type:ef,file:Fe(s,e.fsNamespace+".css")}),t.push({type:Yd,dir:r.dir,typesDir:r.typesDir,empty:r.empty}),e.buildDist){r.collectionDir&&(t.push({type:Wd,dir:r.dir,collectionDir:r.collectionDir,empty:r.empty}),t.push({type:Gd,dir:r.collectionDir,copyAssets:"collection",copy:[...r.copy,{src:"**/*.svg"},{src:"**/*.js"}]}));const n=Fe(r.dir,"esm"),i=e.buildEs5?Fe(r.dir,"esm-es5"):void 0,s=Fe(r.dir,"cjs");t.push({type:Jd,esmDir:n,esmEs5Dir:i,cjsDir:s,cjsIndexFile:Fe(r.dir,"index.js"),esmIndexFile:Fe(r.dir,"index.mjs"),polyfills:!0,empty:r.empty}),t.push({type:Zd,dir:r.esmLoaderPath,esmDir:n,esmEs5Dir:i,cjsDir:s,componentDts:Ad(r),empty:r.empty})}return t},[]),$w=(e,t)=>{const n=Object.assign(Object.assign({},t),{dir:kw(e,t.dir||Uw)});return B(n.buildDir)||(n.buildDir=Vw),Le(n.buildDir)||(n.buildDir=Fe(n.dir,n.buildDir)),void 0===n.collectionDir&&(n.collectionDir=Hw),n.collectionDir&&!Le(n.collectionDir)&&(n.collectionDir=Fe(n.dir,n.collectionDir)),n.esmLoaderPath||(n.esmLoaderPath=jw),Le(n.esmLoaderPath)||(n.esmLoaderPath=Ue(n.dir,n.esmLoaderPath)),n.typesDir||(n.typesDir=Gw),Le(n.typesDir)||(n.typesDir=Fe(n.dir,n.typesDir)),M(n.empty)||(n.empty=!0),n.copy=Fw(n.copy,e.copy),n},Uw="dist",Vw="",Hw="collection",Gw="types",jw="loader",Kw=(e,t,n)=>{const r=[];return"string"==typeof e.flags.docsJson&&r.push(zw(e,t,{type:"docs-json",file:e.flags.docsJson})),n.filter(Ld).forEach(n=>{r.push(zw(e,t,n))}),(e.flags.docs||"docs"===e.flags.task)&&(n.some(Pd)||r.push(Ww(e,t,{type:"docs-readme"}))),n.filter(Pd).forEach(n=>{r.push(Ww(e,t,n))}),n.filter(Fd).forEach(e=>{r.push(Xw(t,e))}),n.filter(Bd).forEach(e=>{r.push(qw(t,e))}),r},Ww=(e,t,n)=>("docs"===n.type&&(t.push({type:"config",level:"warn",header:'Deprecated "docs"',messageText:'The output target { type: "docs" } has been deprecated, please use "docs-readme" instead.',absFilePath:e.configPath}),n.type="docs-readme"),"string"!=typeof n.dir&&(n.dir=e.srcDir),Le(n.dir)||(n.dir=Fe(e.rootDir,n.dir)),null==n.footer&&(n.footer="*Built with [RindoJS](https://rindojs.web.app/)*"),n.strict=!!n.strict,n),zw=(e,t,n)=>("string"!=typeof n.file&&(q(t).messageText='docs-json outputTarget missing the "file" option'),n.file=Fe(e.rootDir,n.file),"string"==typeof n.typesFile?n.typesFile=Fe(e.rootDir,n.typesFile):null!==n.typesFile&&n.file.endsWith(".json")&&(n.typesFile=n.file.replace(/\.json$/,".d.ts")),n.strict=!!n.strict,n),Xw=(e,t)=>("function"!=typeof t.generator&&(q(e).messageText='docs-custom outputTarget missing the "generator" function'),t.strict=!!t.strict,t),qw=(e,t)=>("string"!=typeof t.file&&(q(e).messageText='docs-vscode outputTarget missing the "file" path'),t),Yw=(e,t)=>t.filter(wd).map(t=>{let n=t.directivesProxyFile;n&&!Le(n)&&(n=Fe(e.rootDir,n));let r=t.directivesArrayFile;r&&!Le(r)&&(r=Fe(e.rootDir,r));let i=t.directivesUtilsFile;return i&&!Le(i)&&(i=Fe(e.rootDir,i)),{type:"angular",componentCorePackage:t.componentCorePackage,directivesProxyFile:n,directivesArrayFile:r,directivesUtilsFile:i,excludeComponents:t.excludeComponents||[]}}),Qw=(e,t)=>{const n=[];if(!t.some(Rd)&&t.filter($d).some(e=>B(e.indexHtml))&&e.flags&&e.flags.prerender){let e;const n=t.find(bd);e=null!=n&&B(n.dir)?Fe(n.dir,"hydrate"):"dist/hydrate";const r={type:Qd,dir:e};t.push(r)}return t.filter(Rd).forEach(t=>{B(t.dir)||(t.dir="hydrate"),Le(t.dir)||(t.dir=Fe(e.rootDir,t.dir)),M(t.empty)||(t.empty=!0),n.push(t)}),n},Jw=(e,t)=>t.filter(Nd).map(t=>{const n=kw(e,t.dir||Fe("dist",e.fsNamespace));return{type:Jd,esmDir:n,systemDir:e.buildEs5?n:void 0,systemLoaderFile:e.buildEs5?Fe(n,e.fsNamespace+".js"):void 0,polyfills:!!t.polyfills,isBrowserBuild:!0,empty:!M(t.empty)||t.empty}}),Zw=(e,t)=>{const n=[];return e.flags.stats&&(t.some(Ud)||n.push({type:af})),n.push(...t.filter(Ud)),n.forEach(t=>{t.file||(t.file="rindo-stats.json"),Le(t.file)||(t.file=Fe(e.rootDir,t.file))}),n},eO=["*.html","**/*.{js,css,json}"],tO=(e,t,n)=>{const r=n.length>0,i=!(!e.flags||!e.flags.e2e),s=n.filter($d);return r&&(!i||n.some($d)||n.some(bd))||s.push({type:lf}),e.flags.prerender&&0===s.length&&(q(t).messageText='You need at least one "www" output target configured in your rindo.config.ts, when the "--prerender" flag is used'),s.reduce((n,r)=>{const i=nO(e,r,t);n.push(i);const s=i.buildDir;return n.push({type:Jd,dir:s,esmDir:s,systemDir:e.buildEs5?s:void 0,systemLoaderFile:e.buildEs5?Fe(s,e.fsNamespace+".js"):void 0,polyfills:i.polyfills,isBrowserBuild:!0}),n.push({type:Gd,dir:s,copyAssets:"dist"}),n.push({type:Gd,dir:i.appDir,copy:Fw(i.copy,[...e.copy||[],{src:"assets",warn:!1},{src:"manifest.json",warn:!1}])}),n.push({type:ef,file:Fe(s,e.fsNamespace+".css")}),n},[])},nO=(e,t,n)=>{B(t.baseUrl)||(t.baseUrl="/"),t.baseUrl.endsWith("/")||(t.baseUrl+="/"),t.dir=kw(e,t.dir||"www");const r=new URL(t.baseUrl,"http://localhost/").pathname;return t.appDir=Fe(t.dir,r),(t.appDir.endsWith("/")||t.appDir.endsWith("\\"))&&(t.appDir=t.appDir.substring(0,t.appDir.length-1)),B(t.buildDir)||(t.buildDir="build"),Le(t.buildDir)||(t.buildDir=Fe(t.appDir,t.buildDir)),B(t.indexHtml)||(t.indexHtml="index.html"),Le(t.indexHtml)||(t.indexHtml=Fe(t.appDir,t.indexHtml)),M(t.empty)||(t.empty=!0),((e,t,n)=>{if(e.flags&&(e.flags.prerender||"prerender"===e.flags.task)){n.baseUrl=ae(n.baseUrl),n.baseUrl.startsWith("http://")||n.baseUrl.startsWith("https://")||(q(t).messageText='When prerendering, the "baseUrl" output target config must be a full URL and start with either "http://" or "https://". The config can be updated in the "www" output target within the rindo config.');try{new URL(n.baseUrl)}catch(e){q(t).messageText='invalid "baseUrl": '+e}n.baseUrl.endsWith("/")||(n.baseUrl+="/"),"string"==typeof n.prerenderConfig&&(Le(n.prerenderConfig)||(n.prerenderConfig=Fe(e.rootDir,n.prerenderConfig)))}})(e,n,t),((e,t)=>{if(!1!==t.serviceWorker)if(!e.devMode||e.flags.serviceWorker)if(null!==t.serviceWorker){if(!0===t.serviceWorker)t.serviceWorker={};else if(!t.serviceWorker&&e.devMode)return void(t.serviceWorker=null);"object"!=typeof t.serviceWorker&&(t.serviceWorker={}),Array.isArray(t.serviceWorker.globPatterns)||("string"==typeof t.serviceWorker.globPatterns?t.serviceWorker.globPatterns=[t.serviceWorker.globPatterns]:"string"!=typeof t.serviceWorker.globPatterns&&(t.serviceWorker.globPatterns=eO.slice())),"string"!=typeof t.serviceWorker.globDirectory&&(t.serviceWorker.globDirectory=t.appDir),"string"==typeof t.serviceWorker.globIgnores&&(t.serviceWorker.globIgnores=[t.serviceWorker.globIgnores]),t.serviceWorker.globIgnores=t.serviceWorker.globIgnores||[],((e,t)=>{t.push("**/host.config.json","**/*.system.entry.js","**/*.system.js",`**/${e.fsNamespace}.js`,`**/${e.fsNamespace}.esm.js`,`**/${e.fsNamespace}.css`)})(e,t.serviceWorker.globIgnores),t.serviceWorker.dontCacheBustURLsMatching=/p-\w{8}/,B(t.serviceWorker.swSrc)&&!Le(t.serviceWorker.swSrc)&&(t.serviceWorker.swSrc=Fe(e.rootDir,t.serviceWorker.swSrc)),B(t.serviceWorker.swDest)||(t.serviceWorker.swDest=Fe(t.appDir,"sw.js")),Le(t.serviceWorker.swDest)||(t.serviceWorker.swDest=Fe(t.appDir,t.serviceWorker.swDest))}else t.serviceWorker=null;else t.serviceWorker=null})(e,t),void 0===t.polyfills&&(t.polyfills=!0),t.polyfills=!!t.polyfills,t},rO=(e,t)=>t.filter(xd).reduce((t,n)=>{const r=Object.assign(Object.assign({},n),{dir:kw(e,n.dir||"dist/custom-elements")});return M(r.empty)||(r.empty=!0),M(r.externalRuntime)||(r.externalRuntime=!0),r.copy=Fw(r.copy,e.copy),r.copy.length>0&&t.push({type:Gd,dir:e.rootDir,copy:[...r.copy]}),t.push(r),t},[]),iO={inputOptions:{},outputOptions:{}},sO=(e,t)=>{e.includes(t)||e.push(t)},oO=[".vscode",".rindo","node_modules"],aO=e=>{const t=Object.assign({},e||{}),n=[];return t.flags=JSON.parse(JSON.stringify(t.flags||{})),t.flags.prod?t.devMode=!1:t.flags.dev?t.devMode=!0:M(t.devMode)||(t.devMode=lO),t.extras=t.extras||{},t.extras.appendChildSlotFix=!!t.extras.appendChildSlotFix,t.extras.cloneNodeFix=!!t.extras.cloneNodeFix,t.extras.cssVarsShim=!1!==t.extras.cssVarsShim,t.extras.dynamicImportShim=!1!==t.extras.dynamicImportShim,t.extras.lifecycleDOMEvents=!!t.extras.lifecycleDOMEvents,t.extras.safari10=!1!==t.extras.safari10,t.extras.scriptDataOpts=!1!==t.extras.scriptDataOpts,t.extras.shadowDomShim=!1!==t.extras.shadowDomShim,t.extras.slotChildNodesFix=!!t.extras.slotChildNodesFix,t.extras.initializeNextTick=!1!==t.extras.initializeNextTick,t.extras.tagNameTransform=!!t.extras.tagNameTransform,Rw(t,"minifyCss",null,!t.devMode),Rw(t,"minifyJs",null,!t.devMode),Rw(t,"sourceMap",null,!1),Rw(t,"watch","watch",!1),Rw(t,"minifyCss",null,!t.devMode),Rw(t,"minifyJs",null,!t.devMode),Rw(t,"buildEs5","es5",!t.devMode),Rw(t,"buildDocs","docs",!t.devMode),Rw(t,"buildDist","esm",!t.devMode||t.buildEs5),Rw(t,"profile","profile",t.devMode),Rw(t,"writeLog","log",!1),Rw(t,"buildAppCore",null,!0),Rw(t,"autoprefixCss",null,t.buildEs5),Rw(t,"validateTypes",null,!t._isTesting),Rw(t,"allowInlineScripts",null,!0),"string"!=typeof t.taskQueue?t.taskQueue="congestionAsync":"sync"===t.taskQueue&&(t.taskQueue="immediate"),M(t.hashFileNames)||(t.hashFileNames=!t.devMode),L(t.hashedFileNameLength)||(t.hashedFileNameLength=cO),t.hashedFileNameLength<uO&&(q(n).messageText=`config.hashedFileNameLength must be at least ${uO} characters`),t.hashedFileNameLength>hO&&(q(n).messageText=`config.hashedFileNameLength cannot be more than ${hO} characters`),((e,t)=>{e.namespace=B(e.namespace)?e.namespace:"App",e.namespace=e.namespace.trim();const n=e.namespace.replace(/(\w)|(\-)|(\$)/g,"");""!==n&&(q(t).messageText=`Namespace "${e.namespace}" contains invalid characters: ${n}`),e.namespace.length<3&&(q(t).messageText=`Namespace "${e.namespace}" must be at least 3 characters`),/^\d+$/.test(e.namespace.charAt(0))&&(q(t).messageText=`Namespace "${e.namespace}" cannot have a number for the first character`),"-"===e.namespace.charAt(0)&&(q(t).messageText=`Namespace "${e.namespace}" cannot have a dash for the first character`),"-"===e.namespace.charAt(e.namespace.length-1)&&(q(t).messageText=`Namespace "${e.namespace}" cannot have a dash for the last character`),B(e.fsNamespace)||(e.fsNamespace=e.namespace.toLowerCase().trim()),e.namespace.includes("-")&&(e.namespace=D(e.namespace))})(t,n),(e=>{"string"!=typeof e.rootDir&&(e.rootDir="/"),"string"!=typeof e.srcDir&&(e.srcDir="src"),Le(e.srcDir)||(e.srcDir=Fe(e.rootDir,e.srcDir)),"string"!=typeof e.cacheDir&&(e.cacheDir=".rindo"),Le(e.cacheDir)||(e.cacheDir=Fe(e.rootDir,e.cacheDir)),"string"!=typeof e.srcIndexHtml&&(e.srcIndexHtml=Fe(e.srcDir,"index.html")),Le(e.srcIndexHtml)||(e.srcIndexHtml=Fe(e.rootDir,e.srcIndexHtml)),"string"!=typeof e.globalScript||Le(e.globalScript)||Le(e.globalScript)||(e.globalScript=Fe(e.rootDir,e.globalScript)),"string"==typeof e.globalStyle&&(Le(e.globalStyle)||(e.globalStyle=Fe(e.rootDir,e.globalStyle))),e.writeLog&&("string"!=typeof e.buildLogFilePath&&(e.buildLogFilePath="rindo-build.log"),Le(e.buildLogFilePath)||(e.buildLogFilePath=Fe(e.rootDir,e.buildLogFilePath))),e.packageJsonFilePath=Fe(e.rootDir,"package.json")})(t),((e,t)=>{const n=(e.outputTargets||[]).slice();n.forEach(e=>{cf.includes(e.type)||(q(t).messageText=`Invalid outputTarget type "${e.type}". Valid outputTarget types include: ${cf.map(e=>`"${e}"`).join(", ")}`)}),e.outputTargets=[...Mw(e,n),...Pw(e,n),...rO(e,n),...Lw(e,t,n),...Jw(e,n),...tO(e,t,n),...Bw(e,n),...Qw(e,n),...Kw(e,t,n),...Yw(e,n),...Zw(e,n)]})(t,n),((e,t)=>{const n=e.plugins;if(e.rollupPlugins||(e.rollupPlugins={}),!Array.isArray(n))return void(e.plugins=[]);const r=n.filter(e=>!(!e||"object"!=typeof e||e.pluginType)),i=r.some(e=>"node-resolve"===e.name);r.some(e=>"commonjs"===e.name)&&(Y(t).messageText='Rindo already uses "@rollup/plugin-commonjs", please remove it from your "rindo.config.ts" plugins.\n You can configure the commonjs settings using the "commonjs" property in "rindo.config.ts'),i&&(Y(t).messageText='Rindo already uses "@rollup/plugin-commonjs", please remove it from your "rindo.config.ts" plugins.\n You can configure the commonjs settings using the "commonjs" property in "rindo.config.ts'),e.rollupPlugins.before=[...e.rollupPlugins.before||[],...r.filter(({name:e})=>"node-resolve"!==e&&"commonjs"!==e)],e.plugins=n.filter(e=>!(!e||"object"!=typeof e||!e.pluginType))})(t,n),(e=>{const t=(e=>{let t=iO;return e&&F(e)?(e.inputOptions&&F(e.inputOptions)&&(t=Object.assign(Object.assign({},t),{inputOptions:I(e.inputOptions,["context","moduleContext","treeshake"])})),e.outputOptions&&F(e.outputOptions)&&(t=Object.assign(Object.assign({},t),{outputOptions:I(e.outputOptions,["globals"])})),t):t})(e.rollupConfig);e.rollupConfig=t})(t),t.devServer=((e,t)=>{if(!1===e.devServer||null===e.devServer)return null;const n=e.flags,r=Object.assign({},e.devServer);let i,s;B(n.address)?r.address=n.address:B(r.address)||(r.address="0.0.0.0"),r.address.toLowerCase().startsWith("http://")?(r.address=r.address.substring(7),i="http"):r.address.toLowerCase().startsWith("https://")&&(r.address=r.address.substring(8),i="https"),r.address=r.address.split("/")[0];const o=r.address.split(":");if(o.length>1&&(isNaN(o[1])||(r.address=o[0],s=parseInt(o[1],10))),L(n.port)?r.port=n.port:null===r.port||L(r.port)||(L(s)?r.port=s:"localhost"!==r.address&&isNaN(r.address.split(".")[0])?r.port=null:r.port=3333),!0===r.hotReplacement)r.reloadStrategy="hmr";else if(!1===r.hotReplacement||null===r.hotReplacement)r.reloadStrategy=null;else if(void 0===r.reloadStrategy)r.reloadStrategy="hmr";else if("hmr"!==r.reloadStrategy&&"pageReload"!==r.reloadStrategy&&null!==r.reloadStrategy)throw new Error(`Invalid devServer reloadStrategy "${r.reloadStrategy}". Valid configs include "hmr", "pageReload" and null.`);M(r.gzip)||(r.gzip=!0),M(r.openBrowser)||(r.openBrowser=!0),M(r.websocket)||(r.websocket=!0),"http"!==r.protocol&&"https"!==r.protocol&&(r.protocol=r.https?"https":i||"http"),null!==r.historyApiFallback&&!1!==r.historyApiFallback&&(r.historyApiFallback=r.historyApiFallback||{},B(r.historyApiFallback.index)||(r.historyApiFallback.index="index.html"),M(r.historyApiFallback.disableDotRule)||(r.historyApiFallback.disableDotRule=!1)),(!1===n.open||n.prerender&&!e.watch)&&(r.openBrowser=!1);let a=null,l=null;const c=e.outputTargets.find($d);return c?(l=new URL(c.baseUrl,"http://config-rindojs.web.app").pathname,a=c.appDir):a=e.rootDir,B(l)&&""!==l.trim()||(l="/"),l=ae(l),l.startsWith("/")||(l="/"+l),l.endsWith("/")||(l+="/"),M(r.logRequests)||(r.logRequests="debug"===e.logLevel),B(r.root)||(r.root=a),B(r.basePath)||(r.basePath=l),B(r.baseUrl)&&(q(t).messageText='devServer config "baseUrl" has been renamed to "basePath", and should not include a domain or protocol.'),Le(r.root)||(r.root=Fe(e.rootDir,r.root)),r.root=ae(r.root),r.excludeHmr?Array.isArray(r.excludeHmr)||(q(t).messageText="dev server excludeHmr must be an array of glob strings"):r.excludeHmr=[],!e.devMode||e.buildEs5?r.experimentalDevModules=!1:r.experimentalDevModules=!!r.experimentalDevModules,r})(t,n),((e,t)=>{const n=e.testing=Object.assign({},e.testing||{});if(!e.flags||!e.flags.e2e&&!e.flags.spec)return;let r=e.configPath;B(r)?Ie(r).includes(".")&&(r=Me(r)):r=e.rootDir,"boolean"==typeof e.flags.headless?n.browserHeadless=e.flags.headless:"boolean"!=typeof n.browserHeadless&&(n.browserHeadless=!0),n.browserWaitUntil||(n.browserWaitUntil="load"),n.browserArgs=n.browserArgs||[],sO(n.browserArgs,"--font-render-hinting=medium"),sO(n.browserArgs,"--incognito"),e.flags.ci&&(sO(n.browserArgs,"--no-sandbox"),sO(n.browserArgs,"--disable-setuid-sandbox"),sO(n.browserArgs,"--disable-dev-shm-usage"),n.browserHeadless=!0),"string"==typeof n.rootDir?Le(n.rootDir)||(n.rootDir=Fe(e.rootDir,n.rootDir)):n.rootDir=e.rootDir,e.flags&&"string"==typeof e.flags.screenshotConnector&&(n.screenshotConnector=e.flags.screenshotConnector),"string"==typeof n.screenshotConnector?Le(n.screenshotConnector)||(n.screenshotConnector=Fe(e.rootDir,n.screenshotConnector)):n.screenshotConnector=Fe(e.sys.getCompilerExecutingPath(),"..","..","screenshot","local-connector.js"),Array.isArray(n.testPathIgnorePatterns)||(n.testPathIgnorePatterns=oO.map(e=>Fe(n.rootDir,e)),e.outputTargets.filter(e=>(bd(e)||$d(e))&&e.dir).forEach(e=>{n.testPathIgnorePatterns.push(e.dir)})),"string"!=typeof n.preset?n.preset=Fe(e.sys.getCompilerExecutingPath(),"..","..","testing"):Le(n.preset)||(n.preset=Fe(r,n.preset)),Array.isArray(n.setupFilesAfterEnv)||(n.setupFilesAfterEnv=[]),n.setupFilesAfterEnv.unshift(Fe(e.sys.getCompilerExecutingPath(),"..","..","testing","jest-setuptestframework.js")),n.setupTestFrameworkScriptFile&&(Y(t).messageText="setupTestFrameworkScriptFile has been deprecated."),B(n.testEnvironment)&&!Le(n.testEnvironment)&&at(n.testEnvironment)&&(n.testEnvironment=Fe(r,n.testEnvironment)),"number"==typeof n.allowableMismatchedPixels?n.allowableMismatchedPixels<0&&(q(t).messageText="allowableMismatchedPixels must be a value that is 0 or greater"):n.allowableMismatchedPixels=100,"number"==typeof n.allowableMismatchedRatio&&(n.allowableMismatchedRatio<0||n.allowableMismatchedRatio>1)&&(q(t).messageText="allowableMismatchedRatio must be a value ranging from 0 to 1"),"number"==typeof n.pixelmatchThreshold?(n.pixelmatchThreshold<0||n.pixelmatchThreshold>1)&&(q(t).messageText="pixelmatchThreshold must be a value ranging from 0 to 1"):n.pixelmatchThreshold=.1,void 0===n.testRegex&&(n.testRegex="(/__tests__/.*|\\.?(test|spec|e2e))\\.(tsx?|ts?|jsx?|js?)$"),Array.isArray(n.testMatch)?delete n.testRegex:"string"==typeof n.testRegex&&delete n.testMatch,"string"!=typeof n.runner&&(n.runner=Fe(e.sys.getCompilerExecutingPath(),"..","..","testing","jest-runner.js")),"number"==typeof n.waitBeforeScreenshot?n.waitBeforeScreenshot<0&&(q(t).messageText="waitBeforeScreenshot must be a value that is 0 or greater"):n.waitBeforeScreenshot=10,Array.isArray(n.emulate)&&0!==n.emulate.length||(n.emulate=[{userAgent:"default",viewport:{width:600,height:600,deviceScaleFactor:1,isMobile:!1,hasTouch:!1,isLandscape:!1}}])})(t,n),t.hydratedFlag=(e=>{if(null===e.hydratedFlag||!1===e.hydratedFlag)return null;const t=Object.assign({},e.hydratedFlag);return B(t.name)&&""!==t.property||(t.name="hydrated"),"attribute"===t.selector?t.selector="attribute":t.selector="class",B(t.property)&&""!==t.property||(t.property="visibility"),B(t.initialValue)||null===t.initialValue||(t.initialValue="hidden"),B(t.hydratedValue)||null===t.initialValue||(t.hydratedValue="inherit"),t})(t),Array.isArray(t.bundles)?t.bundles=O(t.bundles,e=>e.components.length):t.bundles=[],t.copy=t.copy||[],(e=>{"number"!=typeof e.maxConcurrentWorkers&&(e.maxConcurrentWorkers=8),e.flags&&("number"==typeof e.flags.maxWorkers?e.maxConcurrentWorkers=e.flags.maxWorkers:e.flags.ci&&(e.maxConcurrentWorkers=4)),e.maxConcurrentWorkers=Math.max(Math.min(e.maxConcurrentWorkers,16),0)})(t),Rw(t,"devInspector",null,t.devMode),t._isTesting||((e,t)=>{!e.outputTargets.some(bd)||B(e.namespace)&&"app"!==e.namespace.toLowerCase()||(q(t).messageText='When generating a distribution it is recommended to choose a unique namespace rather than the default setting "App". Please updated the "namespace" config property within the rindo config.')})(t,n),Rw(t,"enableCache","cache",!0),t.excludeSrc&&(Y(n).messageText='"excludeSrc" is deprecated, use the "exclude" option in tsconfig.json'),t.includeSrc&&(Y(n).messageText='"includeSrc" is deprecated, use the "include" option in tsconfig.json'),{config:t,diagnostics:n}},lO=!1,cO=8,uO=4,hO=32,pO=e=>JSON.stringify({compilerOptions:{allowSyntheticDefaultImports:!0,experimentalDecorators:!0,lib:["dom","es2015"],moduleResolution:"node",module:"esnext",target:"es2017",jsx:"react",jsxFactory:"h"},include:[$e(e.rootDir,e.srcDir)]},null,2),dO=async(e,t,n,r)=>{let s=null;try{if(i)delete require.cache[Ue(r)],require.extensions[".ts"]=(i,s)=>{let o=t.readFileSync(s,"utf8");o=r.endsWith(".ts")?fO(e,n,o,r):o.replace(/export\s+\w+\s+(\w+)/gm,"exports.$1"),i._compile(o,s)},s=require(r),require.extensions[".ts"]=void 0;else{let i=await t.readFile(r);if(i=fO(e,n,i,r),Z(n))return s;s=new Function(`const exports = {}; ${i}; return exports;`)()}}catch(e){J(n,e)}return s},fO=(e,t,n,r)=>{if(Z(t))return n;const i={fileName:r,compilerOptions:{module:e.ModuleKind.CommonJS,moduleResolution:e.ModuleResolutionKind.NodeJs,esModuleInterop:!0,target:e.ScriptTarget.ES2015,allowJs:!0},reportDiagnostics:!1};return e.transpileModule(n,i).outputText};a&&(e=>{let t=!1;const n=Promise.resolve(),r=[],i=()=>{t=!1,self.postMessage(r),r.length=0},s=e=>{r.push(e),t||(t=!0,n.then(i))},o=(e,t)=>{const n={rindoId:e,rindoRtnValue:null,rindoRtnError:"Error"};B(t)?n.rindoRtnError+=": "+t:t&&(t.stack?n.rindoRtnError+=": "+t.stack:t.message&&(n.rindoRtnError+=": "+t.message)),s(n)},a=async t=>{if(t&&L(t.rindoId))try{const n={rindoId:t.rindoId,rindoRtnValue:await e(t),rindoRtnError:null};s(n)}catch(e){o(t.rindoId,e)}};self.onmessage=e=>{const t=e.data;if(Array.isArray(t))for(const e of t)a(e)},self.onerror=e=>{o(-1,e)}})(ps(fn())),e.buildId="20221104122636",e.compile=(e,t={})=>(console.warn("compile() deprecated, please use transpile() instead"),ld(e,t)),e.compileSync=(e,t={})=>(console.warn("compileSync() deprecated, please use transpileSync() instead"),cd(e,t)),e.createCompiler=async e=>{const t=[],n=(e=(e=>{const t=Object.assign({},e);return t.logger||(t.logger=We()),t.sys||(t.sys=fn({logger:t.logger})),je(t.sys.platformPath),t.flags=t.flags||{},t.flags.debug||t.flags.verbose?t.logLevel="debug":t.flags.logLevel?t.logLevel=t.flags.logLevel:"string"!=typeof t.logLevel&&(t.logLevel="info"),t.logger.setLevel(t.logLevel),t})(e)).sys,r=new Mu;(e=>{const t=St;Object.assign(t.__sys,e)})(n),r.fs=lw(n),r.cache=new md(e,lw(n)),await r.cache.initCacheDir(),n.resolveModuleId=e=>pn(n,r.fs,e),r.worker=(e=>{if(P(e.sys.createWorkerController)&&e.maxConcurrentWorkers>0&&e.sys.hardwareConcurrency>1){const t=e.sys.createWorkerController(e.maxConcurrentWorkers);return e.sys.addDestory(()=>t.destroy()),e.logger.debug("create workers, maxWorkers: "+t.maxWorkers),pw(t)}return e.logger.debug(`no workers, maxConcurrentWorkers: ${e.maxConcurrentWorkers}, hardwareConcurrency: ${e.sys.hardwareConcurrency}`),hs(e.sys)})(e),n.events&&n.events.on(r.events.emit),await Zn(e,t,r.fs);const i={build:()=>(async(e,t)=>new Promise(n=>{let r=null;t.events.on("fileUpdate",n=>{e.logger.debug("fileUpdate: "+n),t.fs.clearFileCache(n)}),(async(e,t)=>{let n,r=!1;const i=aw(e),s=Object.assign(Object.assign({},Xn.sys),{watchFile:(e,t)=>e.endsWith("/"+uf)?Xn.sys.watchFile(e,t):{close(){}},watchDirectory:()=>({close(){}}),setTimeout:(t,i)=>(n=setInterval(()=>{r||(t(),clearInterval(n))},e.sys.watchTimeout||i),n),clearTimeout:e=>clearInterval(e)});e.sys.addDestory(()=>s.clearTimeout(n));const o=Xn.createWatchCompilerHost(e.tsconfig,i,s,Xn.createEmitAndSemanticDiagnosticsBuilderProgram,t=>{e.logger.debug("watch reportDiagnostic:"+t.messageText)},t=>{e.logger.debug(t.messageText)});return o.afterProgramCreate=async e=>{r=!0,await t(e),r=!1},Xn.createWatchProgram(o)})(e,async i=>{const s=new Ou(e,t);s.isRebuild=!1,s.requiresFullBuild=!0,s.start();const o=await ow(e,t,s,i);null!==o&&(r&&(r.close(),r=null),n(o))}).then(e=>{r=e})}))(e,r),createWatcher:()=>gw(e,r),destroy:async()=>{r.reset(),r.events.unsubscribeAll(),await n.destroy()},sys:n};return e.logger.printDiagnostics(t),i},e.createPrerenderer=async e=>({start:t=>(async(e,t,n,r)=>{const i=Date.now(),s=[],o={diagnostics:s,urls:0,duration:0,average:0},a=e.outputTargets.filter($d).filter(e=>"string"==typeof e.indexHtml);if(0===a.length)return o;if("string"!=typeof t){const e=q(s);e.header="Prerender Error",e.messageText='Build results missing "hydrateAppFilePath"'}else if(Le(t)||(t=Fe(e.sys.getCurrentDirectory(),t)),!await e.sys.access(t)){const e=q(s);e.header="Prerender Error",e.messageText='Unable to open "hydrateAppFilePath": '+t}if(!Z(s)){let i,l;null==e.sys.createWorkerController||e.maxConcurrentWorkers<1?i=hs(e.sys):(l=e.sys.createWorkerController(e.maxConcurrentWorkers),i=pw(l));const c=Object.assign({},e.devServer);c.openBrowser=!1,c.gzip=!1,c.logRequests=!1,c.reloadStrategy=null;const u=e.sys.getDevServerExecutingPath(),{start:h}=await e.sys.dynamicImport(u),p=await h(c,e.logger);try{await Promise.all(a.map(a=>Dw(i,o,s,e,p,t,n,r,a)))}catch(e){J(s,e)}l&&l.destroy(),p&&await p.close()}return o.duration=Date.now()-i,o.urls>0&&(o.average=o.duration/o.urls),o})(e,t.hydrateAppFilePath,t.componentGraph,t.srcIndexHtmlPath)}),e.createSystem=fn,e.createWorkerContext=hs,e.createWorkerMessageHandler=ps,e.dependencies=Un,e.loadConfig=async(e={})=>{const t={config:null,diagnostics:[],tsconfig:{path:null,compilerOptions:null,files:null,include:null,exclude:null,extends:null}};try{const n=e.sys||fn(),r=e.config||{};let i=e.configPath||r.configPath;const s=await rr(n,e.typescriptPath,!1),o=await(async(e,t,n,r)=>{let i=null;if(B(r)){const s=await dO(e,t,n,r);if(Z(n))return i;if(!s.config){const e=q(n);return e.messageText=`Invalid Rindo configuration file "${r}". Missing "config" property.`,e.absFilePath=r,i}i=s.config,i.configPath=ae(r)}return i})(s,n,t.diagnostics,i);if(Z(t.diagnostics))return t;null!=o?(i=o.configPath,t.config=Object.assign(Object.assign({},o),r),t.config.configPath=i,t.config.rootDir=ae(Me(i))):(t.config=Object.assign({},r),t.config.configPath=null,t.config.rootDir=ae(n.getCurrentDirectory())),t.config.sys=n;const a=aO(t.config);if(t.diagnostics.push(...a.diagnostics),Z(t.diagnostics))return t;if(t.config=a.config,t.config.flags.debug||t.config.flags.verbose?t.config.logLevel="debug":t.config.flags.logLevel?t.config.logLevel=t.config.flags.logLevel:"string"!=typeof t.config.logLevel&&(t.config.logLevel="info"),t.config.logger=e.logger||t.config.logger||We(),t.config.logger.setLevel(t.config.logLevel),!Z(t.diagnostics)){const r=await(async(e,t,n,r)=>{var i;const s={path:null,compilerOptions:null,files:null,include:null,exclude:null,extends:null,diagnostics:[]};try{const l=await(async(e,t,n)=>{const r={path:null,content:null};if(B(e.tsconfig)?Le(e.tsconfig)?r.path=e.tsconfig:r.path=Fe(e.rootDir,e.tsconfig):r.path=Fe(e.rootDir,"tsconfig.json"),r.content=await t.readFile(r.path),!B(r.content)){if(!n.initTsConfig)return null;r.path=Fe(e.rootDir,"tsconfig.json"),r.content=pO(e),await t.writeFile(r.path,r.content)}return r.path=ae(r.path),r})(t,n,r);if(l){s.path=l.path;const r=Object.assign(Object.assign({},e.sys),{readFile:e=>e===s.path?l.content:n.readFileSync(e),readDirectory:e=>n.readdirSync(e),fileExists:e=>n.accessSync(e),onUnRecoverableConfigFileDiagnostic:e=>console.error(e)}),c=e.getParsedCommandLineOfConfigFile(s.path,{},r);if(c.errors&&c.errors.length>0)c.errors.forEach(e=>{const t=ye(e);"18003"===t.code&&(t.level="warn"),t.absFilePath=s.path,s.diagnostics.push(t)});else{if(c.raw){const e=$e(t.rootDir,t.srcDir);if(o=c.raw.include,a=e,!Array.isArray(o)||!o.includes(a)){const t=Y(s.diagnostics);t.header='tsconfig.json "include" required',t.messageText=`In order for TypeScript to improve watch performance, it's recommended the "tsconfig.json" file should have the "include" property, with at least the app's "${e}" directory listed. For example: "include": ["${e}"]`}if((e=>Array.isArray(e)&&e.includes("rindo.config.ts"))(c.raw.include)){const e=Y(s.diagnostics);e.header="tsconfig.json should not reference rindo.config.ts",e.messageText="rindo.config.ts is not part of the output build, it should not be included."}Array.isArray(c.raw.files)&&(s.files=c.raw.files.slice()),Array.isArray(c.raw.include)&&(s.include=c.raw.include.slice()),Array.isArray(c.raw.exclude)&&(s.exclude=c.raw.exclude.slice()),B(c.raw.extends)&&(s.extends=c.raw.extends)}if(c.options){s.compilerOptions=c.options;const n=null!==(i=s.compilerOptions.target)&&void 0!==i?i:e.ScriptTarget.ES5;[e.ScriptTarget.ES3,e.ScriptTarget.ES5,e.ScriptTarget.ES2015,e.ScriptTarget.ES2016].includes(n)&&(Y(s.diagnostics).messageText='To improve bundling, it is always recommended to set the tsconfig.json “target” setting to "es2017". Note that the compiler will automatically handle transpilation for ES5-only browsers.'),s.compilerOptions.module===e.ModuleKind.ESNext||t._isTesting||(Y(s.diagnostics).messageText="To improve bundling, it is always recommended to set the tsconfig.json “module” setting to “esnext”. Note that the compiler will automatically handle bundling both modern and legacy builds.")}}}else{const e=q(s.diagnostics);e.header="Missing tsconfig.json",e.messageText=`Unable to load TypeScript config file. Please create a "tsconfig.json" file within the "${t.rootDir}" directory.`}}catch(e){J(s.diagnostics,e)}var o,a;return s})(s,t.config,n,e);t.diagnostics.push(...r.diagnostics),t.config.tsconfig=r.path,t.config.tsCompilerOptions=r.compilerOptions,t.tsconfig.path=r.path,t.tsconfig.compilerOptions=JSON.parse(JSON.stringify(r.compilerOptions)),t.tsconfig.files=r.files,t.tsconfig.include=r.include,t.tsconfig.exclude=r.exclude,t.tsconfig.extends=r.extends}B(e.typescriptPath)&&(t.config.typescriptPath=e.typescriptPath)}catch(e){J(t.diagnostics,e)}return t},e.optimizeCss=$n,e.optimizeJs=Xr,e.path=Ge,e.transpile=ld,e.transpileSync=cd,e.vermoji="🍸",e.version=Wn,e.versions=zn,"undefined"!=typeof module&&module.exports&&(module.exports=e),globalThis.rindo=e}({});