@chenpx976/chrome-devtools-mcp 0.0.0-stage → 1.13.0

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 (398) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +223 -2
  3. package/out/Default/gen/src/ArcBrowser.js +128 -0
  4. package/out/Default/gen/src/BrowserManager.js +562 -0
  5. package/out/Default/gen/src/LogpointManager.js +287 -0
  6. package/out/Default/gen/src/McpContext.js +1031 -0
  7. package/out/Default/gen/src/McpPage.js +1427 -0
  8. package/out/Default/gen/src/McpResponse.js +1350 -0
  9. package/out/Default/gen/src/McpWorker.js +66 -0
  10. package/out/Default/gen/src/NetworkOverrideManager.js +447 -0
  11. package/out/Default/gen/src/SlimMcpResponse.js +23 -0
  12. package/out/Default/gen/src/TextSnapshot.js +336 -0
  13. package/out/Default/gen/src/ToolHandler.js +531 -0
  14. package/out/Default/gen/src/bin/check-latest-version.js +53 -0
  15. package/out/Default/gen/src/bin/chrome-devtools-mcp-main.js +80 -0
  16. package/out/Default/gen/src/bin/chrome-devtools-mcp.js +23 -0
  17. package/out/Default/gen/src/bin/chrome-devtools.js +213 -0
  18. package/out/Default/gen/src/collectors/PageCollector.js +325 -0
  19. package/out/Default/gen/src/collectors/ServiceWorkerCollector.js +198 -0
  20. package/out/Default/gen/src/collectors/constants.js +7 -0
  21. package/out/Default/gen/src/config/ConfigLocator.js +70 -0
  22. package/out/Default/gen/src/config/ConfigParser.js +163 -0
  23. package/out/Default/gen/src/config/ConfigWatcher.js +94 -0
  24. package/out/Default/gen/src/config/ServerConfig.js +284 -0
  25. package/out/Default/gen/src/config/browser-options.js +135 -0
  26. package/out/Default/gen/src/config/category-options.js +84 -0
  27. package/out/Default/gen/src/config/cli-commands.js +208 -0
  28. package/out/Default/gen/src/config/cli-options.js +2090 -0
  29. package/out/Default/gen/src/config/mcp-options.js +371 -0
  30. package/out/Default/gen/src/config/puppeteer-options.js +69 -0
  31. package/out/Default/gen/src/config/tool-options.js +60 -0
  32. package/out/Default/gen/src/daemon/client.js +281 -0
  33. package/out/Default/gen/src/daemon/daemon.js +280 -0
  34. package/out/Default/gen/src/daemon/types.js +7 -0
  35. package/out/Default/gen/src/daemon/utils.js +173 -0
  36. package/out/Default/gen/src/devtools/DevToolsCommentBridge.js +151 -0
  37. package/out/Default/gen/src/devtools/DevtoolsUtils.js +413 -0
  38. package/out/Default/gen/src/devtools/McpHostBindingAdapter.js +164 -0
  39. package/out/Default/gen/src/devtools/issueDescriptions.js +42 -0
  40. package/out/Default/gen/src/formatters/CommentFormatter.js +73 -0
  41. package/out/Default/gen/src/formatters/ConsoleFormatter.js +363 -0
  42. package/out/Default/gen/src/formatters/CssFormatter.js +883 -0
  43. package/out/Default/gen/src/formatters/HeapSnapshotFormatter.js +239 -0
  44. package/out/Default/gen/src/formatters/IssueFormatter.js +194 -0
  45. package/out/Default/gen/src/formatters/LogpointFormatter.js +62 -0
  46. package/out/Default/gen/src/formatters/NetworkFormatter.js +295 -0
  47. package/out/Default/gen/src/formatters/NetworkOverridesFormatter.js +57 -0
  48. package/out/Default/gen/src/formatters/RemoteObjectFormatter.js +231 -0
  49. package/out/Default/gen/src/formatters/SnapshotFormatter.js +172 -0
  50. package/out/Default/gen/src/formatters/WebAuthnFormatter.js +56 -0
  51. package/out/Default/gen/src/formatters/constants.js +8 -0
  52. package/out/Default/gen/src/index.js +434 -0
  53. package/out/Default/gen/src/processors/ChunkedTraceParser.js +361 -0
  54. package/out/Default/gen/src/processors/HeapSnapshotManager.js +595 -0
  55. package/out/Default/gen/src/processors/PerformanceTrace.js +132 -0
  56. package/out/Default/gen/src/telemetry/ClearcutLogger.js +271 -0
  57. package/out/Default/gen/src/telemetry/WatchdogClient.js +60 -0
  58. package/out/Default/gen/src/telemetry/errors.js +18 -0
  59. package/out/Default/gen/src/telemetry/flagUtils.js +89 -0
  60. package/out/Default/gen/src/telemetry/metricsRegistry.js +85 -0
  61. package/out/Default/gen/src/telemetry/persistence.js +82 -0
  62. package/out/Default/gen/src/telemetry/transformation.js +229 -0
  63. package/out/Default/gen/src/telemetry/types.js +36 -0
  64. package/out/Default/gen/src/telemetry/watchdog/ClearcutSender.js +213 -0
  65. package/out/Default/gen/src/telemetry/watchdog/main.js +142 -0
  66. package/out/Default/gen/src/third_party/THIRD_PARTY_NOTICES +3774 -0
  67. package/out/Default/gen/src/third_party/browser.js +808 -0
  68. package/out/Default/gen/src/third_party/bundled-packages.json +11 -0
  69. package/out/Default/gen/src/third_party/cli.js +139 -0
  70. package/out/Default/gen/src/third_party/devtools-formatter-worker.js +125 -0
  71. package/out/Default/gen/src/third_party/devtools-heap-snapshot-worker.js +111 -0
  72. package/out/Default/gen/src/third_party/index.js +128 -0
  73. package/out/Default/gen/src/third_party/issue-descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
  74. package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameOrigin.md +8 -0
  75. package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
  76. package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameSite.md +7 -0
  77. package/out/Default/gen/src/third_party/issue-descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
  78. package/out/Default/gen/src/third_party/issue-descriptions/CompatibilityModeQuirks.md +5 -0
  79. package/out/Default/gen/src/third_party/issue-descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
  80. package/out/Default/gen/src/third_party/issue-descriptions/LowTextContrast.md +5 -0
  81. package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
  82. package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
  83. package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
  84. package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
  85. package/out/Default/gen/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
  86. package/out/Default/gen/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
  87. package/out/Default/gen/src/third_party/issue-descriptions/bounceTrackingMitigations.md +3 -0
  88. package/out/Default/gen/src/third_party/issue-descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
  89. package/out/Default/gen/src/third_party/issue-descriptions/clientHintMetaTagModifiedHTML.md +4 -0
  90. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistEmbeddingRequirementNotSatisfied.md +26 -0
  91. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistIFrameAttributeLoosensEmbeddingRequirement.md +19 -0
  92. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowConnectionAllowlistFrom.md +21 -0
  93. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
  94. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidHeader.md +12 -0
  95. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
  96. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistItemNotInnerList.md +12 -0
  97. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistMoreThanOneList.md +7 -0
  98. package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
  99. package/out/Default/gen/src/third_party/issue-descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
  100. package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeDomainNonAscii.md +11 -0
  101. package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludePortMismatch.md +8 -0
  102. package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeSchemeMismatch.md +7 -0
  103. package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
  104. package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
  105. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnDomainNonAscii.md +11 -0
  106. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantRead.md +3 -0
  107. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantReadOptOut.md +5 -0
  108. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantSet.md +3 -0
  109. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantSetOptOut.md +5 -0
  110. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
  111. package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
  112. package/out/Default/gen/src/third_party/issue-descriptions/corsAllowCredentialsRequired.md +6 -0
  113. package/out/Default/gen/src/third_party/issue-descriptions/corsDisabledScheme.md +7 -0
  114. package/out/Default/gen/src/third_party/issue-descriptions/corsDisallowedByMode.md +7 -0
  115. package/out/Default/gen/src/third_party/issue-descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
  116. package/out/Default/gen/src/third_party/issue-descriptions/corsInvalidHeaderValues.md +7 -0
  117. package/out/Default/gen/src/third_party/issue-descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
  118. package/out/Default/gen/src/third_party/issue-descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
  119. package/out/Default/gen/src/third_party/issue-descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
  120. package/out/Default/gen/src/third_party/issue-descriptions/corsOriginMismatch.md +6 -0
  121. package/out/Default/gen/src/third_party/issue-descriptions/corsPreflightResponseInvalid.md +5 -0
  122. package/out/Default/gen/src/third_party/issue-descriptions/corsRedirectContainsCredentials.md +5 -0
  123. package/out/Default/gen/src/third_party/issue-descriptions/corsWildcardOriginNotAllowed.md +9 -0
  124. package/out/Default/gen/src/third_party/issue-descriptions/cspEvalViolation.md +9 -0
  125. package/out/Default/gen/src/third_party/issue-descriptions/cspInlineViolation.md +10 -0
  126. package/out/Default/gen/src/third_party/issue-descriptions/cspTrustedTypesPolicyViolation.md +5 -0
  127. package/out/Default/gen/src/third_party/issue-descriptions/cspTrustedTypesSinkViolation.md +8 -0
  128. package/out/Default/gen/src/third_party/issue-descriptions/cspURLViolation.md +10 -0
  129. package/out/Default/gen/src/third_party/issue-descriptions/deprecation.md +3 -0
  130. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsEmptyList.md +1 -0
  131. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsHttpNotFound.md +1 -0
  132. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidContentType.md +1 -0
  133. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidResponse.md +1 -0
  134. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsNoResponse.md +1 -0
  135. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestDnsFetchFailed.md +1 -0
  136. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -0
  137. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownHttpNotFound.md +1 -0
  138. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidContentType.md +1 -0
  139. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidResponse.md +1 -0
  140. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownNoResponse.md +1 -0
  141. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestInvalidEmail.md +1 -0
  142. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestJwksHttpNotFound.md +1 -0
  143. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestJwksInvalidResponse.md +1 -0
  144. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -0
  145. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -0
  146. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -0
  147. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -0
  148. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -0
  149. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -0
  150. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -0
  151. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenNoResponse.md +1 -0
  152. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidAudience.md +1 -0
  153. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidIssuedAt.md +1 -0
  154. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidNonce.md +1 -0
  155. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidSdHash.md +1 -0
  156. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidTyp.md +1 -0
  157. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingAud.md +1 -0
  158. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingCnf.md +1 -0
  159. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingIat.md +1 -0
  160. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingNonce.md +1 -0
  161. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingSdHash.md +1 -0
  162. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbSignatureFailed.md +1 -0
  163. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmail.md +1 -0
  164. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmailVerified.md +1 -0
  165. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidHolderKey.md +1 -0
  166. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuedAt.md +1 -0
  167. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuer.md +1 -0
  168. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtJwksMissingKeys.md +1 -0
  169. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingCnf.md +1 -0
  170. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingEmail.md +1 -0
  171. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIat.md +1 -0
  172. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIss.md +1 -0
  173. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtSignatureFailed.md +1 -0
  174. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtUnsupportedHeaderAlg.md +1 -0
  175. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestUserLoggedOut.md +1 -0
  176. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -0
  177. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -0
  178. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -0
  179. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -0
  180. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -0
  181. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -0
  182. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -0
  183. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -0
  184. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -0
  185. package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -0
  186. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsBlockedByConnectionAllowlist.md +1 -0
  187. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
  188. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
  189. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
  190. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
  191. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestCanceled.md +1 -0
  192. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestConfigBlockedByConnectionAllowlist.md +1 -0
  193. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
  194. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestErrorIdToken.md +1 -0
  195. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md +1 -0
  196. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
  197. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
  198. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
  199. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
  200. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
  201. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
  202. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
  203. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
  204. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestTooManyRequests.md +1 -0
  205. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md +1 -0
  206. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
  207. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
  208. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
  209. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
  210. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
  211. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
  212. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
  213. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
  214. package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
  215. package/out/Default/gen/src/third_party/issue-descriptions/fetchingPartitionedBlobURL.md +7 -0
  216. package/out/Default/gen/src/third_party/issue-descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
  217. package/out/Default/gen/src/third_party/issue-descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
  218. package/out/Default/gen/src/third_party/issue-descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
  219. package/out/Default/gen/src/third_party/issue-descriptions/genericFormDuplicateIdForInputError.md +5 -0
  220. package/out/Default/gen/src/third_party/issue-descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
  221. package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
  222. package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
  223. package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputWithNoLabelError.md +5 -0
  224. package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
  225. package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelForNameError.md +5 -0
  226. package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
  227. package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextMissingToolDescription.md +5 -0
  228. package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextMissingToolName.md +5 -0
  229. package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextParameterMissingName.md +5 -0
  230. package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
  231. package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
  232. package/out/Default/gen/src/third_party/issue-descriptions/genericGeolocationPromptWithoutUserGesture.md +5 -0
  233. package/out/Default/gen/src/third_party/issue-descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
  234. package/out/Default/gen/src/third_party/issue-descriptions/genericResponseWasBlockedByORB.md +4 -0
  235. package/out/Default/gen/src/third_party/issue-descriptions/heavyAd.md +10 -0
  236. package/out/Default/gen/src/third_party/issue-descriptions/lazyLoadImageZeroSize.md +7 -0
  237. package/out/Default/gen/src/third_party/issue-descriptions/mixedContent.md +5 -0
  238. package/out/Default/gen/src/third_party/issue-descriptions/navigatingPartitionedBlobURL.md +5 -0
  239. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabled.md +7 -0
  240. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
  241. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
  242. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
  243. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFencedFrameDisallowed.md +5 -0
  244. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFontSizeTooLarge.md +5 -0
  245. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFontSizeTooSmall.md +5 -0
  246. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementGeolocationDeprecated.md +5 -0
  247. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
  248. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidDisplayStyle.md +5 -0
  249. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidSizeValue.md +5 -0
  250. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidType.md +5 -0
  251. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidTypeActivation.md +5 -0
  252. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementLowContrast.md +5 -0
  253. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementNonOpaqueColor.md +5 -0
  254. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
  255. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPaddingRightUnsupported.md +6 -0
  256. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
  257. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementRegistrationFailed.md +5 -0
  258. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementRequestInProgress.md +5 -0
  259. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementSecurityChecksFailed.md +5 -0
  260. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementTypeNotSupported.md +5 -0
  261. package/out/Default/gen/src/third_party/issue-descriptions/permissionElementUntrustedEvent.md +7 -0
  262. package/out/Default/gen/src/third_party/issue-descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
  263. package/out/Default/gen/src/third_party/issue-descriptions/propertyRuleInvalidNameIssue.md +3 -0
  264. package/out/Default/gen/src/third_party/issue-descriptions/propertyRuleIssue.md +7 -0
  265. package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
  266. package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
  267. package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
  268. package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
  269. package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
  270. package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
  271. package/out/Default/gen/src/third_party/issue-descriptions/selectivePermissionsIntervention.md +7 -0
  272. package/out/Default/gen/src/third_party/issue-descriptions/sharedArrayBuffer.md +7 -0
  273. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
  274. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
  275. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
  276. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
  277. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
  278. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
  279. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
  280. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
  281. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
  282. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
  283. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
  284. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
  285. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
  286. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
  287. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
  288. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
  289. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
  290. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
  291. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
  292. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
  293. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
  294. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
  295. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
  296. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
  297. package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
  298. package/out/Default/gen/src/third_party/issue-descriptions/sriInvalidSignatureHeader.md +14 -0
  299. package/out/Default/gen/src/third_party/issue-descriptions/sriInvalidSignatureInputHeader.md +15 -0
  300. package/out/Default/gen/src/third_party/issue-descriptions/sriMissingSignatureHeader.md +8 -0
  301. package/out/Default/gen/src/third_party/issue-descriptions/sriMissingSignatureInputHeader.md +7 -0
  302. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
  303. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
  304. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
  305. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
  306. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
  307. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
  308. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
  309. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
  310. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
  311. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
  312. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
  313. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
  314. package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
  315. package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +12 -0
  316. package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedInvalidLength.md +5 -0
  317. package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedSignatureExpired.md +6 -0
  318. package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedSignatureMismatch.md +11 -0
  319. package/out/Default/gen/src/third_party/issue-descriptions/stylesheetLateImport.md +4 -0
  320. package/out/Default/gen/src/third_party/issue-descriptions/stylesheetRequestFailed.md +3 -0
  321. package/out/Default/gen/src/third_party/issue-descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
  322. package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
  323. package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestType.md +17 -0
  324. package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestMalformedDictionary.md +14 -0
  325. package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
  326. package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestMissingId.md +3 -0
  327. package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestMissingNameOrShortName.md +3 -0
  328. package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestParsingOrNetworkError.md +3 -0
  329. package/out/Default/gen/src/third_party/issue-descriptions/webInstallNoManifest.md +3 -0
  330. package/out/Default/gen/src/third_party/issue-descriptions/webInstallStartUrlInvalid.md +3 -0
  331. package/out/Default/gen/src/third_party/lighthouse-devtools-mcp-bundle.js +60395 -0
  332. package/out/Default/gen/src/tools/ToolDefinition.js +180 -0
  333. package/out/Default/gen/src/tools/categories.js +37 -0
  334. package/out/Default/gen/src/tools/comments.js +230 -0
  335. package/out/Default/gen/src/tools/console.js +122 -0
  336. package/out/Default/gen/src/tools/css.js +54 -0
  337. package/out/Default/gen/src/tools/emulation.js +98 -0
  338. package/out/Default/gen/src/tools/extensions.js +108 -0
  339. package/out/Default/gen/src/tools/input.js +658 -0
  340. package/out/Default/gen/src/tools/lighthouse.js +279 -0
  341. package/out/Default/gen/src/tools/logpoints.js +51 -0
  342. package/out/Default/gen/src/tools/memory.js +531 -0
  343. package/out/Default/gen/src/tools/network.js +325 -0
  344. package/out/Default/gen/src/tools/pages.js +420 -0
  345. package/out/Default/gen/src/tools/performance.js +258 -0
  346. package/out/Default/gen/src/tools/pwa.js +152 -0
  347. package/out/Default/gen/src/tools/screencast.js +160 -0
  348. package/out/Default/gen/src/tools/screenshot.js +315 -0
  349. package/out/Default/gen/src/tools/script.js +319 -0
  350. package/out/Default/gen/src/tools/slim/tools.js +110 -0
  351. package/out/Default/gen/src/tools/snapshot.js +88 -0
  352. package/out/Default/gen/src/tools/thirdPartyDeveloper.js +73 -0
  353. package/out/Default/gen/src/tools/toolNames.js +10 -0
  354. package/out/Default/gen/src/tools/tools.js +72 -0
  355. package/out/Default/gen/src/tools/webauthn.js +51 -0
  356. package/out/Default/gen/src/tools/webmcp.js +55 -0
  357. package/out/Default/gen/src/types.js +21 -0
  358. package/out/Default/gen/src/utils/TaskRunner.js +151 -0
  359. package/out/Default/gen/src/utils/WaitForHelper.js +343 -0
  360. package/out/Default/gen/src/utils/bytes.js +95 -0
  361. package/out/Default/gen/src/utils/check-for-updates.js +81 -0
  362. package/out/Default/gen/src/utils/disclaimers.js +27 -0
  363. package/out/Default/gen/src/utils/errorHandling.js +23 -0
  364. package/out/Default/gen/src/utils/files.js +81 -0
  365. package/out/Default/gen/src/utils/id.js +16 -0
  366. package/out/Default/gen/src/utils/keyboard.js +307 -0
  367. package/out/Default/gen/src/utils/logger.js +145 -0
  368. package/out/Default/gen/src/utils/logpoint.js +44 -0
  369. package/out/Default/gen/src/utils/network.js +81 -0
  370. package/out/Default/gen/src/utils/pagination.js +50 -0
  371. package/out/Default/gen/src/utils/polyfill.js +11 -0
  372. package/out/Default/gen/src/utils/raceWithSignal.js +26 -0
  373. package/out/Default/gen/src/utils/resourceType.js +27 -0
  374. package/out/Default/gen/src/utils/text.js +43 -0
  375. package/out/Default/gen/src/utils/timeout.js +14 -0
  376. package/out/Default/gen/src/utils/url.js +311 -0
  377. package/out/Default/gen/src/version.js +11 -0
  378. package/package.json +125 -4
  379. package/skills/a11y-debugging/SKILL.md +86 -0
  380. package/skills/a11y-debugging/references/a11y-snippets.md +92 -0
  381. package/skills/arc-compatibility/SKILL.md +168 -0
  382. package/skills/arc-compatibility/SOURCES.md +216 -0
  383. package/skills/arc-compatibility/references/compatibility.md +113 -0
  384. package/skills/arc-compatibility/references/output-contract.md +62 -0
  385. package/skills/arc-compatibility/references/workflows.md +105 -0
  386. package/skills/chrome-devtools/SKILL.md +80 -0
  387. package/skills/chrome-devtools-cli/SKILL.md +208 -0
  388. package/skills/chrome-devtools-cli/references/installation.md +24 -0
  389. package/skills/cookie-debugging/SKILL.md +152 -0
  390. package/skills/debug-optimize-lcp/SKILL.md +121 -0
  391. package/skills/debug-optimize-lcp/references/elements-and-size.md +27 -0
  392. package/skills/debug-optimize-lcp/references/lcp-breakdown.md +23 -0
  393. package/skills/debug-optimize-lcp/references/lcp-snippets.md +79 -0
  394. package/skills/debug-optimize-lcp/references/optimization-strategies.md +38 -0
  395. package/skills/inspect-in-devtools/SKILL.md +82 -0
  396. package/skills/memory-leak-debugging/SKILL.md +58 -0
  397. package/skills/memory-leak-debugging/references/common-leaks.md +33 -0
  398. package/skills/troubleshooting/SKILL.md +107 -0
@@ -0,0 +1,125 @@
1
+ var G1=Object.defineProperty;var Oo=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var is=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var Ke=(t,e)=>{for(var r in e)G1(t,r,{get:e[r],enumerable:!0})};var jl={};Ke(jl,{HOST_RUNTIME:()=>dy});function op(){So&&(URL.revokeObjectURL(So),So=null)}async function fy(t){let e=new Image;await new Promise((o,a)=>{e.onload=()=>o(),e.onerror=()=>a(new Error("Failed to load image for screenshot")),e.src="data:image/png;base64,"+t.base64Png});let r;if(t.clip){let o=e.naturalWidth/t.clip.screenRectWidth,a=t.clip.screenRectWidth*o,l=t.clip.screenRectHeight*o,h=t.clip.visiblePageRectLeft*o,c=t.clip.visiblePageRectTop*o;r=new OffscreenCanvas(Math.round(a),Math.min(16384,Math.round(l)));let u=r.getContext("2d",{willReadFrequently:!0});if(!u)throw new Error("Could not get 2d context from canvas.");u.imageSmoothingEnabled=!1,u.drawImage(e,Math.round(h),Math.round(c))}else{r=new OffscreenCanvas(e.naturalWidth,Math.min(16384,Math.floor(e.naturalHeight)));let o=r.getContext("2d",{willReadFrequently:!0});if(!o)throw new Error("Could not get 2d context for base64 screenshot.");o.imageSmoothingEnabled=!1,o.drawImage(e,0,0)}op();let i=document.createElement("a");i.download=t.fileName+".png";let n=await r.convertToBlob({type:"image/png"}),s=URL.createObjectURL(n);So=s,i.href=s,i.click()}async function py(t){let r=await(await fetch("data:image/png;base64,"+t.base64Png)).blob();await navigator.clipboard.write([new ClipboardItem({"image/png":r})])}var Vl,Bl,So,Qt,dy,ap=is(()=>{Vl=class{postMessage(e,r){self.postMessage(e,r)}set onmessage(e){self.addEventListener("message",e)}},Bl=class{#e;#t;#i;constructor(e){this.#e=new Promise((r,i)=>{this.#i=i;let n=new Worker(new URL(e),{type:"module"});n.onerror=s=>{console.error(`Failed to load worker for ${e}:`,s)},n.onmessage=s=>{console.assert(s.data==="workerReady"),n.onmessage=null,r(n)}})}postMessage(e,r){this.#e.then(i=>{this.#t||i.postMessage(e,r??[])})}dispose(){this.#t=!0,this.#e.then(e=>e.terminate())}terminate(e=!1){e&&this.#i?.(new Error("Worker terminated")),this.dispose()}set onmessage(e){this.#e.then(r=>{r.onmessage=e})}set onerror(e){this.#e.then(r=>{r.onerror=e})}},So=null;Qt=null,dy={createWorker(t){return new Bl(t)},workerScope:new Vl,getOnLine(){return navigator.onLine},getUserAgent(){return navigator.userAgent},getLocalStorage(){try{return"localStorage"in globalThis?globalThis.localStorage:void 0}catch{return}},getCacheStorage(){return"caches"in globalThis?globalThis.caches:void 0},getDevicePixelRatio(){return window.devicePixelRatio},saveScreenshot:fy,copyScreenshot:py,revokeLastScreenshotUrl:op,async loadTextFile(t){return await(await fetch(t)).text()},evaluateCSS(t,e){return(!Qt||!Qt.isConnected)&&(Qt=document.getElementById("css-evaluation-element"),Qt||(Qt=document.createElement("div"),Qt.id="css-evaluation-element",Qt.setAttribute("style","hidden: true; --evaluation: attr(data-custom-expr type(*))"),document.body.appendChild(Qt))),t!==null?Qt.setAttribute("data-value",t):Qt.removeAttribute("data-value"),Qt.setAttribute("data-custom-expr",e),Qt.computedStyleMap().get("--evaluation")?.toString()??null},removeCSSEvaluationElement(){let t=Qt??document.getElementById("css-evaluation-element");t&&t.remove(),Qt=null}}});var lp={};Ke(lp,{HostRuntime:()=>jl});var hp=is(()=>{ap()});var ql={};Ke(ql,{HOST_RUNTIME:()=>gy});import*as cp from"node:fs";import*as up from"node:url";import*as ns from"node:worker_threads";var Ul,Wl,Gl,Yl,my,gy,fp=is(()=>{Ul=class{postMessage(e,r){ns.parentPort?.postMessage(e,r)}set onmessage(e){ns.parentPort?.addEventListener("message",r=>{e(r)})}},Wl=class{#e;#t;#i=!1;#r;constructor(e){let r=new ns.Worker(new URL(e));this.#e=r,this.#t=new Promise((i,n)=>{this.#r=n,r.once("message",s=>{s==="workerReady"&&i(r)}),r.on("error",n)}),this.#t.catch(()=>{})}postMessage(e,r){this.#t.then(i=>{this.#i||i.postMessage(e,r)})}dispose(){this.#i=!0,this.#e.terminate()}terminate(e){e&&this.#r?.(new Error("Worker terminated")),this.dispose()}set onmessage(e){this.#t.then(r=>{r.on("message",i=>{this.#i||e({data:i,ports:[]})})})}set onerror(e){this.#t.then(r=>{r.on("error",i=>{this.#i||e({type:"error",...i,message:i.message,error:i})})},r=>{this.#i||e({type:"error",...r,message:r.message,error:r})})}},Gl=class{#e=new Map;async put(e,r){this.#e.set(e,r.clone())}async match(e){return this.#e.get(e)?.clone()}},Yl=class{#e=new Map;async open(e){let r=this.#e.get(e);return r||(r=new Gl,this.#e.set(e,r)),r}async delete(e){return this.#e.delete(e)}},my=new Yl,gy={createWorker(t){return new Wl(t)},workerScope:new Ul,getOnLine(){return!0},getUserAgent(){return"Node.js"},getLocalStorage(){},getCacheStorage(){return my},getDevicePixelRatio(){return 1},async saveScreenshot(t){},async copyScreenshot(t){},revokeLastScreenshotUrl(){},async loadTextFile(t){return await cp.promises.readFile(up.fileURLToPath(t),"utf-8")},evaluateCSS(t,e){return null},removeCSSEvaluationElement(){}}});var pp={};Ke(pp,{HostRuntime:()=>ql});var dp=is(()=>{fp()});function Xg(t,e,r,i){switch(t){case-2:return r<e;case-1:return i>=e&&r<e;case 0:return r<e&&i>e;case 1:return r<=e&&i>e;case 2:return i>e;case 4:return!0}}function Cs(t,e,r,i){for(var n;t.from==t.to||(r<1?t.from>=e:t.from>e)||(r>-1?t.to<=e:t.to<e);){let o=!i&&t instanceof It&&t.index<0?null:t.parent;if(!o)return t;t=o}let s=i?0:Le.IgnoreOverlays;if(i)for(let o=t,a=o.parent;a;o=a,a=o.parent)o instanceof It&&o.index<0&&((n=a.enter(e,r,s))===null||n===void 0?void 0:n.from)!=o.from&&(t=a);for(;;){let o=t.enter(e,r,s);if(!o)return t;t=o}}function Pd(t,e,r,i){let n=t.cursor(),s=[];if(!n.firstChild())return s;if(r!=null){for(let o=!1;!o;)if(o=n.type.is(r),!n.nextSibling())return s}for(;;){if(i!=null&&n.type.is(i))return s;if(n.type.is(e)&&s.push(n.node),!n.nextSibling())return i==null?s:[]}}function Jh(t,e,r=e.length-1){for(let i=t;r>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[r]&&e[r]!=i.name)return!1;r--}}return!0}function Zg(t){if(!t.length)return null;let e=0,r=t[0];for(let s=1;s<t.length;s++){let o=t[s];(o.from>r.from||o.to<r.to)&&(r=o,e=s)}let i=r instanceof It&&r.index<0?null:r.parent,n=t.slice();return i?n[e]=i:n.splice(e,1),new tc(n,r)}function Du(t){return t.children.some(e=>e instanceof Pi||!e.type.isAnonymous||Du(e))}function na(t,e){if(!t.isAnonymous||e instanceof Pi||e.type!=t)return 1;let r=Cd.get(e);if(r==null){r=1;for(let i of e.children){if(i.type!=t||!(i instanceof Je)){r=1;break}r+=na(t,i)}Cd.set(e,r)}return r}function rc(t,e,r,i,n,s,o,a,l){let h=0;for(let p=i;p<n;p++)h+=na(t,e[p]);let c=Math.ceil(1.5*h/8),u=[],f=[];return(function p(d,y,b,S,w){for(let O=b;O<S;){let v=O,T=y[O],_=na(t,d[O]);for(O++;O<S;O++){let L=na(t,d[O]);if(_+L>=c)break;_+=L}if(O==v+1){if(_>c){let L=d[v];p(L.children,L.positions,0,L.children.length,y[v]+w);continue}u.push(d[v])}else{let L=y[O-1]+d[O-1].length-T;u.push(rc(t,d,y,v,O,T,L,null,l))}f.push(T+w-s)}})(e,r,i,n,0),(a||l)(u,f,o)}function px(t){return(e,r,i,n)=>new oc(e,t,r,i,n)}function Ad(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}function dx(t,e,r){for(let i of t){if(i.from>=r)break;if(i.to>e)return i.from<=e&&i.to>=r?2:1}return 0}function Ed(t,e,r,i,n,s){if(e<r){let o=t.buffer[e+1];i.push(t.slice(e,r,o)),n.push(o-s)}}function mx(t){let{node:e}=t,r=[],i=e.context.buffer;do r.push(t.index),t.parent();while(!t.tree);let n=t.tree,s=n.children.indexOf(i),o=n.children[s],a=o.buffer,l=[s];n.children[s]=(function h(c,u,f,p,d,y){let b=r[y],S=[],w=[];Ed(o,c,b,S,w,p);let O=a[b+1],v=a[b+2];l.push(S.length);let T=y?h(b+4,a[b+3],o.set.types[a[b]],O,v-O,y-1):e.toTree();return S.push(T),w.push(O-p),Ed(o,a[b+3],u,S,w,p),new Je(f,S,w,d)})(0,a.length,mt.none,0,o.length,r.length-1);for(let h of l){let c=t.tree.children[h],u=t.tree.positions[h];t.yield(new It(c,u+t.from,h,t._tree))}}function Qd(t,e){let r=null,i=e;for(let n=1,s=0;n<t.length;n++){let o=t[n-1].to,a=t[n].from;for(;s<i.length;s++){let l=i[s];if(l.from>=a)break;l.to<=o||(r||(i=r=e.slice()),l.from<o?(r[s]=new ir(l.from,o),l.to>a&&r.splice(s+1,0,new ir(a,l.to))):l.to>a?r[s--]=new ir(a,l.to):r.splice(s--,1))}}return i}function Ox(t,e,r,i){let n=0,s=0,o=!1,a=!1,l=-1e9,h=[];for(;;){let c=n==t.length?1e9:o?t[n].to:t[n].from,u=s==e.length?1e9:a?e[s].to:e[s].from;if(o!=a){let f=Math.max(l,r),p=Math.min(c,u,i);f<p&&h.push(new ir(f,p))}if(l=Math.min(c,u),l==1e9)break;c==l&&(o?(o=!1,n++):o=!0),u==l&&(a?(a=!1,s++):a=!0)}return h}function Rd(t,e){let r=[];for(let{pos:i,mount:n,frag:s}of t){let o=i+(n.overlay?n.overlay[0].from:0),a=o+n.tree.length,l=Math.max(s.from,o),h=Math.min(s.to,a);if(n.overlay){let c=Ox(e,n.overlay.map(u=>new ir(u.from+i,u.to+i)),l,h);for(let u=0,f=l;;u++){let p=u==c.length,d=p?h:c[u].from;if(d>f&&r.push(new vi(f,d,n.tree,-o,s.from>=f||s.openStart,s.to<=d||s.openEnd)),p)break;f=c[u].to}}else r.push(new vi(l,h,n.tree,-o,s.from>=o||s.openStart,s.to<=a||s.openEnd))}return r}function bx(t){if(t<768)return!1;for(let e=0,r=ac.length;;){let i=e+r>>1;if(t<ac[i])r=i;else{if(!(t>=Fg[i]))return!0;e=i+1}if(e==r)return!1}}function $d(t){return t>=127462&&t<=127487}function yx(t,e,r=!0,i=!0){return(r?zg:Sx)(t,e,i)}function zg(t,e,r){if(e==t.length)return e;e&&Vg(t.charCodeAt(e))&&Bg(t.charCodeAt(e-1))&&e--;let i=xh(t,e);for(e+=Ld(i);e<t.length;){let n=xh(t,e);if(i==8205||n==8205||r&&bx(n))e+=Ld(n),i=n;else{if(!$d(n))break;{let s=0,o=e-2;for(;o>=0&&$d(xh(t,o));)s++,o-=2;if(s%2==0)break;e+=2}}}return e}function Sx(t,e,r){for(;e>0;){let i=zg(t,e-2,r);if(i<e)return i;e--}return 0}function xh(t,e){let r=t.charCodeAt(e);if(!Bg(r)||e+1==t.length)return r;let i=t.charCodeAt(e+1);return Vg(i)?i-56320+(r-55296<<10)+65536:r}function Vg(t){return t>=56320&&t<57344}function Bg(t){return t>=55296&&t<56320}function Ld(t){return t<65536?1:2}function sa(t,e,r=0,i=1e9){for(let n=0,s=0,o=!0;s<t.length&&n<=i;s++){let a=t[s],l=n+a.length;l>=r&&(l>i&&(a=a.slice(0,i-n)),n<r&&(a=a.slice(r-n)),o?(e[e.length-1]+=a,o=!1):e.push(a)),n=l+1}return e}function _d(t,e,r){return sa(t,[""],e,r)}function An(t,e,r){return[e=Math.max(0,Math.min(t.length,e)),Math.max(e,Math.min(t.length,r))]}function _t(t,e,r=!0,i=!0){return yx(t,e,r,i)}function fr(t,e){let r=t.charCodeAt(e);if(i=r,!(i>=55296&&i<56320&&e+1!=t.length))return r;var i;let n=t.charCodeAt(e+1);return(function(s){return s>=56320&&s<57344})(n)?n-56320+(r-55296<<10)+65536:r}function Mu(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Yr(t){return t<65536?1:2}function pt(t,e,r,i=!1){if(e==0&&r<=0)return;let n=t.length-2;n>=0&&r<=0&&r==t[n+1]?t[n]+=e:n>=0&&e==0&&t[n]==0?t[n+1]+=r:i?(t[n]+=e,t[n+1]+=r):t.push(e,r)}function xi(t,e,r){if(r.length==0)return;let i=e.length-2>>1;if(i<t.length)t[t.length-1]=t[t.length-1].append(r);else{for(;t.length<i;)t.push(Te.empty);t.push(r)}}function hc(t,e,r){let i=t.inserted;for(let n=0,s=0,o=0;o<t.sections.length;){let a=t.sections[o++],l=t.sections[o++];if(l<0)n+=a,s+=a;else{let h=n,c=s,u=Te.empty;for(;h+=a,c+=l,l&&i&&(u=u.append(i[o-2>>1])),!(r||o==t.sections.length||t.sections[o+1]<0);)a=t.sections[o++],l=t.sections[o++];e(n,h,s,c,u),n=h,s=c}}}function cc(t,e,r,i=!1){let n=[],s=i?[]:null,o=new Yi(t),a=new Yi(e);for(let l=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&a.ins==-1){let h=Math.min(o.len,a.len);pt(n,h,-1),o.forward(h),a.forward(h)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len<o.len||a.len==o.len&&!r))){let h=a.len;for(pt(n,a.ins,-1);h;){let c=Math.min(o.len,h);o.ins>=0&&l<o.i&&o.len<=c&&(pt(n,0,o.ins),s&&xi(s,n,o.text),l=o.i),o.forward(c),h-=c}a.next()}else{if(!(o.ins>=0)){if(o.done&&a.done)return s?Dt.createSet(n,s):Kr.create(n);throw new Error("Mismatched change set lengths")}{let h=0,c=o.len;for(;c;)if(a.ins==-1){let u=Math.min(c,a.len);h+=u,c-=u,a.forward(u)}else{if(!(a.ins==0&&a.len<c))break;c-=a.len,a.next()}pt(n,h,l<o.i?o.ins:0),s&&l<o.i&&xi(s,n,o.text),l=o.i,o.forward(o.len-c)}}}}function jg(t,e,r=!1){let i=[],n=r?[]:null,s=new Yi(t),o=new Yi(e);for(let a=!1;;){if(s.done&&o.done)return n?Dt.createSet(i,n):Kr.create(i);if(s.ins==0)pt(i,s.len,0,a),s.next();else if(o.len!=0||o.done){if(s.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(s.len2,o.len),h=i.length;if(s.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;pt(i,l,c,a),n&&c&&xi(n,i,o.text)}else o.ins==-1?(pt(i,s.off?0:s.len,l,a),n&&xi(n,i,s.textBit(l))):(pt(i,s.off?0:s.len,o.off?0:o.ins,a),n&&!o.off&&xi(n,i,o.text));a=(s.ins>l||o.ins>=0&&o.len>l)&&(a||i.length>h),s.forward2(l),o.forward(l)}}else pt(i,0,o.ins,a),n&&xi(n,i,o.text),o.next()}}function Ug(t,e){for(let r of t.ranges)if(r.to>e)throw new RangeError("Selection points outside of document")}function Xu(t,e){return t==e||t.length==e.length&&t.every((r,i)=>r===e[i])}function Id(t,e,r){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(!r(t[i],e[i]))return!1;return!0}function uc(t,e){let r=!1;for(let i of e)1&As(t,i)&&(r=!0);return r}function xx(t,e,r){let i=r.map(l=>t[l.id]),n=r.map(l=>l.type),s=i.filter(l=>!(1&l)),o=t[e.id]>>1;function a(l){let h=[];for(let c=0;c<i.length;c++){let u=xa(l,i[c]);if(n[c]==2)for(let f of u)h.push(f);else h.push(u)}return e.combine(h)}return{create(l){for(let h of i)As(l,h);return l.values[o]=a(l),1},update(l,h){if(!uc(l,s))return 0;let c=a(l);return e.compare(c,l.values[o])?0:(l.values[o]=c,1)},reconfigure(l,h){let c=uc(l,i),u=h.config.facets[e.id],f=h.facet(e);if(u&&!c&&Xu(r,u))return l.values[o]=f,0;let p=a(l);return e.compare(p,f)?(l.values[o]=f,0):(l.values[o]=p,1)}}}function fs(t){return e=>new ya(e,t)}function As(t,e){if(1&e)return 2;let r=e>>1,i=t.status[r];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[r]=4;let n=t.computeSlot(t,t.config.dynamicSlots[r]);return t.status[r]=2|n}function xa(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}function Tx(t,e){let r=[];for(let i=0,n=0;;){let s,o;if(i<t.length&&(n==e.length||e[n]>=t[i]))s=t[i++],o=t[i++];else{if(!(n<e.length))return r;s=e[n++],o=e[n++]}!r.length||r[r.length-1]<s?r.push(s,o):r[r.length-1]<o&&(r[r.length-1]=o)}}function Dd(t,e,r){var i;let n,s,o;return r?(n=e.changes,s=Dt.empty(e.changes.length),o=t.changes.compose(e.changes)):(n=e.changes.map(t.changes),s=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(n)),{changes:o,selection:e.selection?e.selection.map(s):(i=t.selection)===null||i===void 0?void 0:i.map(n),effects:Pe.mapEffects(t.effects,n).concat(Pe.mapEffects(e.effects,s)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function vh(t,e,r){let i=e.selection,n=kn(e.annotations);return e.userEvent&&(n=n.concat(nt.userEvent.of(e.userEvent))),{changes:e.changes instanceof Dt?e.changes:Dt.of(e.changes||[],r,t.facet(Gg)),selection:i&&(i instanceof V?i:V.single(i.anchor,i.head)),effects:kn(e.effects),annotations:n,scrollIntoView:!!e.scrollIntoView}}function Jg(t,e,r){let i=vh(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(r=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(r=!1);let o=!!e[s].sequential;i=Dd(i,vh(t,e[s],o?i.changes.newLength:t.doc.length),o)}let n=nt.create(t,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return(function(s){let o=s.startState,a=o.facet(Hg),l=s;for(let h=a.length-1;h>=0;h--){let c=a[h](s);c&&Object.keys(c).length&&(l=Dd(l,vh(o,c,s.changes.newLength),!0))}return l==s?s:nt.create(o,s.changes,s.selection,l.effects,l.annotations,l.scrollIntoView)})(r?(function(s){let o=s.startState,a=!0;for(let h of o.facet(Yg)){let c=h(s);if(c===!1){a=!1;break}Array.isArray(c)&&(a=a===!0?c:Tx(a,c))}if(a!==!0){let h,c;if(a===!1)c=s.changes.invertedDesc,h=Dt.empty(o.doc.length);else{let u=s.changes.filter(a);h=u.changes,c=u.filtered.mapDesc(u.changes).invertedDesc}s=nt.create(o,h,s.selection&&s.selection.map(c),Pe.mapEffects(s.effects,c),s.annotations,s.scrollIntoView)}let l=o.facet(qg);for(let h=l.length-1;h>=0;h--){let c=l[h](s);s=c instanceof nt?c:Array.isArray(c)&&c.length==1&&c[0]instanceof nt?c[0]:Jg(o,kn(c),!1)}return s})(n):n)}function kn(t){return t==null?Px:Array.isArray(t)?t:[t]}function Ax(t){return e=>{if(!/\S/.test(e))return dt.Space;if((function(r){if(dc)return dc.test(r);for(let i=0;i<r.length;i++){let n=r[i];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||Cx.test(n)))return!0}return!1})(e))return dt.Word;for(let r=0;r<t.length;r++)if(e.indexOf(t[r])>-1)return dt.Word;return dt.Other}}function ni(t,e,r={}){let i={};for(let n of t)for(let s of Object.keys(n)){let o=n[s],a=i[s];if(a===void 0)i[s]=o;else if(!(a===o||o===void 0)){if(!Object.hasOwnProperty.call(r,s))throw new Error("Config merge conflict for field "+s);i[s]=r[s](a,o)}}for(let n in e)i[n]===void 0&&(i[n]=e[n]);return i}function wh(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}function Md(t,e,r){let i=new Map;for(let s of t)for(let o=0;o<s.chunk.length;o++)s.chunk[o].maxPoint<=0&&i.set(s.chunk[o],s.chunkPos[o]);let n=new Set;for(let s of e)for(let o=0;o<s.chunk.length;o++){let a=i.get(s.chunk[o]);a==null||(r?r.mapPos(a):a)!=s.chunkPos[o]||r?.touchesRange(a,a+s.chunk[o].length)||n.add(s.chunk[o])}return n}function kh(t,e){for(let r=t[e];;){let i=1+(e<<1);if(i>=t.length)break;let n=t[i];if(i+1<t.length&&n.compare(t[i+1])>=0&&(n=t[i+1],i++),r.compare(n)<0)break;t[i]=r,t[e]=n,e=i}}function Nd(t,e,r,i,n,s){t.goto(e),r.goto(i);let o=i+n,a=i,l=i-e;for(;;){let h=t.to+l-r.to,c=h||t.endSide-r.endSide,u=c<0?t.to+l:r.to,f=Math.min(u,o);if(t.point||r.point?t.point&&r.point&&(t.point==r.point||t.point.eq(r.point))&&gc(t.activeForPoint(t.to),r.activeForPoint(r.to))||s.comparePoint(a,f,t.point,r.point):f>a&&!gc(t.active,r.active)&&s.compareRange(a,f,t.active,r.active),u>o)break;(h||t.openEnd!=r.openEnd)&&s.boundChange&&s.boundChange(u),a=u,c<=0&&t.next(),c>=0&&r.next()}}function gc(t,e){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!=e[r]&&!t[r].eq(e[r]))return!1;return!0}function Vo(t,e){for(let r=e,i=t.length-1;r<i;r++)t[r]=t[r+1];t.pop()}function Bo(t,e,r){for(let i=t.length-1;i>=e;i--)t[i+1]=t[i];t[e]=r}function Xd(t,e){let r=-1,i=1e9;for(let n=0;n<e.length;n++)(e[n]-i||t[n].endSide-t[r].endSide)<0&&(r=n,i=e[n]);return r}function Zu(t,e,r=t.length){let i=0;for(let n=0;n<r&&n<t.length;)t.charCodeAt(n)==9?(i+=e-i%e,n++):(i++,n=_t(t,n));return i}function Ta(t){let e;return e=t.nodeType==11?t.getSelection?t:t.ownerDocument:t,e.getSelection()}function yc(t,e){return!!e&&(t==e||t.contains(e.nodeType!=1?e.parentNode:e))}function oa(t,e){if(!e.anchorNode)return!1;try{return yc(t,e.anchorNode)}catch{return!1}}function zs(t){return t.nodeType==3?Hi(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function Es(t,e,r,i){return!!r&&(Vd(t,e,r,i,-1)||Vd(t,e,r,i,1))}function Vs(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function Vd(t,e,r,i,n){for(;;){if(t==r&&e==i)return!0;if(e==(n<0?0:ti(t))){if(t.nodeName=="DIV")return!1;let s=t.parentNode;if(!s||s.nodeType!=1)return!1;e=Vs(t)+(n<0?0:1),t=s}else{if(t.nodeType!=1||(t=t.childNodes[e+(n<0?-1:0)]).nodeType==1&&t.contentEditable=="false")return!1;e=n<0?ti(t):0}}}function ti(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Fu(t,e){let r=e?t.left:t.right;return{left:r,right:r,top:t.top,bottom:t.bottom}}function Ex(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function rO(t,e){let r=e.width/t.offsetWidth,i=e.height/t.offsetHeight;return(r>.995&&r<1.005||!isFinite(r)||Math.abs(e.width-t.offsetWidth)<1)&&(r=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-t.offsetHeight)<1)&&(i=1),{scaleX:r,scaleY:i}}function iO(t){if(t.setActive)return t.setActive();if(yn)return t.focus(yn);let e=[];for(let r=t;r&&(e.push(r,r.scrollTop,r.scrollLeft),r!=r.ownerDocument);r=r.parentNode);if(t.focus(yn==null?{get preventScroll(){return yn={preventScroll:!0},!0}}:void 0),!yn){yn=!1;for(let r=0;r<e.length;){let i=e[r++],n=e[r++],s=e[r++];i.scrollTop!=n&&(i.scrollTop=n),i.scrollLeft!=s&&(i.scrollLeft=s)}}}function Hi(t,e,r=e){let i=Bd||(Bd=document.createRange());return i.setEnd(t,r),i.setStart(t,e),i}function Tn(t,e,r){let i={key:e,code:e,keyCode:r,which:r,cancelable:!0},n=new KeyboardEvent("keydown",i);n.synthetic=!0,t.dispatchEvent(n);let s=new KeyboardEvent("keyup",i);return s.synthetic=!0,t.dispatchEvent(s),n.defaultPrevented||s.defaultPrevented}function nO(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function sO(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function jd(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}function oO(t,e,r,i,n,s,o,a,l){let{children:h}=t,c=h.length?h[e]:null,u=s.length?s[s.length-1]:null,f=u?u.breakAfter:o;if(!(e==i&&c&&!o&&!f&&s.length<2&&c.merge(r,n,s.length?u:null,r==0,a,l))){if(i<h.length){let p=h[i];p&&(n<p.length||p.breakAfter&&u?.breakAfter)?(e==i&&(p=p.split(n),n=0),!f&&u&&p.merge(0,n,u,!0,0,l)?s[s.length-1]=p:((n||p.children.length&&!p.children[0].length)&&p.merge(0,n,null,!1,0,l),s.push(p))):p?.breakAfter&&(u?u.breakAfter=1:o=1),i++}for(c&&(c.breakAfter=o,r>0&&(!o&&s.length&&c.merge(r,c.length,s[0],!1,a,0)?c.breakAfter=s.shift().breakAfter:(r<c.length||c.children.length&&c.children[c.children.length-1].length==0)&&c.merge(r,c.length,null,!1,a,0),e++));e<i&&s.length;)if(h[i-1].become(s[s.length-1]))i--,s.pop(),l=s.length?0:a;else{if(!h[e].become(s[0]))break;e++,s.shift(),a=s.length?0:l}!s.length&&e&&i<h.length&&!h[e-1].breakAfter&&h[i].merge(0,0,h[e-1],!1,a,l)&&e--,(e<i||s.length)&&t.replaceChildren(e,i,s)}}function aO(t,e,r,i,n,s){let o=t.childCursor(),{i:a,off:l}=o.findPos(r,1),{i:h,off:c}=o.findPos(e,-1),u=e-r;for(let f of i)u+=f.length;t.length+=u,oO(t,h,c,a,l,i,0,n,s)}function cO(t,e){let r=t.dom,{children:i}=t,n=0;for(let s=0;n<i.length;n++){let o=i[n],a=s+o.length;if(!(a==s&&o.getSide()<=0)){if(e>s&&e<a&&o.dom.parentNode==r)return o.domAtPos(e-s);if(e<=s)break;s=a}}for(let s=n;s>0;s--){let o=i[s-1];if(o.dom.parentNode==r)return o.domAtPos(o.length)}for(let s=n;s<i.length;s++){let o=i[s];if(o.dom.parentNode==r)return o.domAtPos(0)}return new xt(r,0)}function uO(t,e,r){let i,{children:n}=t;r>0&&e instanceof Ai&&n.length&&(i=n[n.length-1])instanceof Ai&&i.mark.eq(e.mark)?uO(i,e.children[0],r-1):(n.push(e),e.setParent(t)),t.length+=e.length}function fO(t,e,r){let i=null,n=-1,s=null,o=-1;(function l(h,c){for(let u=0,f=0;u<h.children.length&&f<=c;u++){let p=h.children[u],d=f+p.length;d>=c&&(p.children.length?l(p,c-f):(!s||s.isHidden&&r>0)&&(d>c||f==d&&p.getSide()>0)?(s=p,o=c-f):(f<c||f==d&&p.getSide()<0&&!p.isHidden)&&(i=p,n=c-f)),f=d}})(t,e);let a=(r<0?i:s)||i||s;return a?a.coordsAt(Math.max(0,a==i?n:o),r):(function(l){let h=l.dom.lastChild;if(!h)return l.dom.getBoundingClientRect();let c=zs(h);return c[c.length-1]||null})(t)}function kc(t,e){for(let r in t)r=="class"&&e.class?e.class+=" "+t.class:r=="style"&&e.style?e.style+=";"+t.style:e[r]=t[r];return e}function Vu(t,e,r){if(t==e)return!0;t||(t=Gd),e||(e=Gd);let i=Object.keys(t),n=Object.keys(e);if(i.length-(r&&i.indexOf(r)>-1?1:0)!=n.length-(r&&n.indexOf(r)>-1?1:0))return!1;for(let s of i)if(s!=r&&(n.indexOf(s)==-1||t[s]!==e[s]))return!1;return!0}function Tc(t,e,r){let i=!1;if(e)for(let n in e)r&&n in r||(i=!0,n=="style"?t.style.cssText="":t.removeAttribute(n));if(r)for(let n in r)e&&e[n]==r[n]||(i=!0,n=="style"?t.style.cssText=r[n]:t.setAttribute(n,r[n]));return i}function Rx(t){let e=Object.create(null);for(let r=0;r<t.attributes.length;r++){let i=t.attributes[r];e[i.name]=i.value}return e}function pO(t,e=!1){let{inclusiveStart:r,inclusiveEnd:i}=t;return r==null&&(r=t.inclusive),i==null&&(i=t.inclusive),{start:r??e,end:i??e}}function Pc(t,e,r,i=0){let n=r.length-1;n>=0&&r[n]+i>=t?r[n]=Math.max(r[n],e):r.push(t,e)}function Uo(t,e){for(let r of e)t=new Ai(r,[t],t.length);return t}function dO(t){let e=[];for(let r=0;r<t.length;r++)e.push(1<<+t[r]);return e}function mO(t){return t<=247?$x[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?Lx[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}function gO(t,e){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],n=e[r];if(i.from!=n.from||i.to!=n.to||i.direction!=n.direction||!gO(i.inner,n.inner))return!1}return!0}function Ac(t,e,r,i,n,s,o){let a=i%2?2:1;if(i%2==n%2)for(let l=e,h=0;l<r;){let c=!0,u=!1;if(h==s.length||l<s[h].from){let y=$e[l];y!=a&&(c=!1,u=y==16)}let f=c||a!=1?null:[],p=c?i:i+1,d=l;e:for(;;)if(h<s.length&&d==s[h].from){if(u)break e;let y=s[h];if(!c)for(let b=y.to,S=h+1;;){if(b==r)break e;if(!(S<s.length&&s[S].from==b)){if($e[b]==a)break e;break}b=s[S++].to}h++,f?f.push(y):(y.from>l&&o.push(new _r(l,y.from,p)),Ec(t,y.direction==Ki!=!(p%2)?i+1:i,n,y.inner,y.from,y.to,o),l=y.to),d=y.to}else{if(d==r||(c?$e[d]!=a:$e[d]==a))break;d++}f?Ac(t,l,d,i+1,n,f,o):l<d&&o.push(new _r(l,d,p)),l=d}else for(let l=r,h=s.length;l>e;){let c=!0,u=!1;if(!h||l>s[h-1].to){let y=$e[l-1];y!=a&&(c=!1,u=y==16)}let f=c||a!=1?null:[],p=c?i:i+1,d=l;e:for(;;)if(h&&d==s[h-1].to){if(u)break e;let y=s[--h];if(!c)for(let b=y.from,S=h;;){if(b==e)break e;if(!S||s[S-1].to!=b){if($e[b-1]==a)break e;break}b=s[--S].from}f?f.push(y):(y.to<l&&o.push(new _r(y.to,l,p)),Ec(t,y.direction==Ki!=!(p%2)?i+1:i,n,y.inner,y.from,y.to,o),l=y.from),d=y.from}else{if(d==e||(c?$e[d-1]!=a:$e[d-1]==a))break;d--}f?Ac(t,d,l,i+1,n,f,o):d<l&&o.push(new _r(d,l,p)),l=d}}function Ec(t,e,r,i,n,s,o){let a=e%2?2:1;(function(l,h,c,u,f){for(let p=0;p<=u.length;p++){let d=p?u[p-1].to:h,y=p<u.length?u[p].from:c,b=p?256:f;for(let S=d,w=b,O=b;S<y;S++){let v=mO(l.charCodeAt(S));v==512?v=w:v==8&&O==4&&(v=16),$e[S]=v==4?2:v,7&v&&(O=v),w=v}for(let S=d,w=b,O=b;S<y;S++){let v=$e[S];if(v==128)S<y-1&&w==$e[S+1]&&24&w?v=$e[S]=w:$e[S]=256;else if(v==64){let T=S+1;for(;T<y&&$e[T]==64;)T++;let _=S&&w==8||T<c&&$e[T]==8?O==1?1:8:256;for(let L=S;L<T;L++)$e[L]=_;S=T-1}else v==8&&O==1&&($e[S]=1);w=v,7&v&&(O=v)}}})(t,n,s,i,a),(function(l,h,c,u,f){let p=f==1?2:1;for(let d=0,y=0,b=0;d<=u.length;d++){let S=d?u[d-1].to:h,w=d<u.length?u[d].from:c;for(let O,v,T,_=S;_<w;_++)if(v=Cc[O=l.charCodeAt(_)])if(v<0){for(let L=y-3;L>=0;L-=3)if(Cr[L+1]==-v){let R=Cr[L+2],E=2&R?f:4&R?1&R?p:f:0;E&&($e[_]=$e[Cr[L]]=E),y=L;break}}else{if(Cr.length==189)break;Cr[y++]=_,Cr[y++]=O,Cr[y++]=b}else if((T=$e[_])==2||T==1){let L=T==f;b=L?0:1;for(let R=y-3;R>=0;R-=3){let E=Cr[R+2];if(2&E)break;if(L)Cr[R+2]|=2;else{if(4&E)break;Cr[R+2]|=4}}}}})(t,n,s,i,a),(function(l,h,c,u){for(let f=0,p=u;f<=c.length;f++){let d=f?c[f-1].to:l,y=f<c.length?c[f].from:h;for(let b=d;b<y;){let S=$e[b];if(S==256){let w=b+1;for(;;)if(w==y){if(f==c.length)break;w=c[f++].to,y=f<c.length?c[f].from:h}else{if($e[w]!=256)break;w++}let O=p==1,v=O==((w<h?$e[w]:u)==1)?O?1:2:u;for(let T=w,_=f,L=_?c[_-1].to:l;T>b;)T==L&&(T=c[--_].from,L=_?c[_-1].to:l),$e[--T]=v;b=w}else p=S,b++}}})(n,s,i,a),Ac(t,n,s,e,r,i,o)}function Yd(t){return[new _r(0,t,0)]}function Ix(t,e,r,i,n){var s;let o=i.head-t.from,a=_r.find(e,o,(s=i.bidiLevel)!==null&&s!==void 0?s:-1,i.assoc),l=e[a],h=l.side(n,r);if(o==h){let f=a+=n?1:-1;if(f<0||f>=e.length)return null;l=e[a=f],o=l.side(!n,r),h=l.side(n,r)}let c=_t(t.text,o,l.forward(n,r));(c<l.from||c>l.to)&&(c=h),OO=t.text.slice(Math.min(o,c),Math.max(o,c));let u=a==(n?e.length-1:0)?null:e[a+(n?1:-1)];return u&&c==h&&u.level+(n?0:1)<l.level?V.cursor(u.side(!n,r)+t.from,u.forward(n,r)?1:-1,u.level):V.cursor(c+t.from,l.forward(n,r)?-1:1,l.level)}function Dx(t,e,r){for(let i=e;i<r;i++){let n=mO(t.charCodeAt(i));if(n==1)return Ki;if(n==2||n==4)return Bu}return Ki}function gr(t,e,r){let i=t.facet(xO);i.length?i[0](e):window.onerror?window.onerror(String(e),r,void 0,void 0,e):r?console.error(r+":",e):console.error(e)}function qd(t,e){let r=t.state.facet(CO);if(!r.length)return r;let i=r.map(s=>s instanceof Function?s(t):s),n=[];return Be.spans(i,e.from,e.to,{point(){},span(s,o,a,l){let h=s-e.from,c=o-e.from,u=n;for(let f=a.length-1;f>=0;f--,l--){let p,d=a[f].spec.bidiIsolate;if(d==null&&(d=Dx(e.text,h,c)),l>0&&u.length&&(p=u[u.length-1]).to==h&&p.direction==d)p.to=c,u=p.inner;else{let y={from:h,to:c,direction:d,inner:[]};u.push(y),u=y.inner}}}}),n}function EO(t){let e=0,r=0,i=0,n=0;for(let s of t.state.facet(AO)){let o=s(t);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(r=Math.max(r,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(n=Math.max(n,o.bottom)))}return{left:e,right:r,top:i,bottom:n}}function QO(t,e){let r=t.observer.selectionRange,i=r.focusNode&&RO(r.focusNode,r.focusOffset,0);if(!i)return null;let n=e-i.offset;return{from:n,to:n+i.node.nodeValue.length,node:i.node}}function RO(t,e,r){if(r<=0)for(let i=t,n=e;;){if(i.nodeType==3)return{node:i,offset:n};if(!(i.nodeType==1&&n>0))break;i=i.childNodes[n-1],n=ti(i)}if(r>=0)for(let i=t,n=e;;){if(i.nodeType==3)return{node:i,offset:n};if(!(i.nodeType==1&&n<i.childNodes.length&&r>=0))break;i=i.childNodes[n],n=0}return null}function Zx(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function Fx(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function Ph(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function Hd(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function Kd(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function Rc(t,e,r){let i,n,s,o,a,l,h,c,u=!1;for(let p=t.firstChild;p;p=p.nextSibling){let d=zs(p);for(let y=0;y<d.length;y++){let b=d[y];n&&Ph(n,b)&&(b=Hd(Kd(b,n.bottom),n.top));let S=Zx(e,b),w=Fx(r,b);if(S==0&&w==0)return p.nodeType==3?Jd(p,e,r):Rc(p,e,r);if(!i||o>w||o==w&&s>S){i=p,n=b,s=S,o=w;let O=w?r<b.top?-1:1:S?e<b.left?-1:1:0;u=!O||(O>0?y<d.length-1:y>0)}S==0?r>b.bottom&&(!h||h.bottom<b.bottom)?(a=p,h=b):r<b.top&&(!c||c.top>b.top)&&(l=p,c=b):h&&Ph(h,b)?h=Kd(h,b.bottom):c&&Ph(c,b)&&(c=Hd(c,b.top))}}if(h&&h.bottom>=r?(i=a,n=h):c&&c.top<=r&&(i=l,n=c),!i)return{node:t,offset:0};let f=Math.max(n.left,Math.min(n.right,e));return i.nodeType==3?Jd(i,f,r):u&&i.contentEditable!="false"?Rc(i,f,r):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(e>=(n.left+n.right)/2?1:0)}}function Jd(t,e,r){let i=t.nodeValue.length,n=-1,s=1e9,o=0;for(let a=0;a<i;a++){let l=Hi(t,a,a+1).getClientRects();for(let h=0;h<l.length;h++){let c=l[h];if(c.top==c.bottom)continue;o||(o=e-c.left);let u=(c.top>r?c.top-r:r-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&u<s){let f=e>=(c.left+c.right)/2,p=f;if((Y.chrome||Y.gecko)&&Hi(t,a).getBoundingClientRect().left==c.right&&(p=!f),u<=0)return{node:t,offset:a+(p?1:0)};n=a+(p?1:0),s=u}}}return{node:t,offset:n>-1?n:o>0?t.nodeValue.length:0}}function em(t,e,r,i=-1){var n,s;let o,a=t.contentDOM.getBoundingClientRect(),l=a.top+t.viewState.paddingTop,{docHeight:h}=t.viewState,{x:c,y:u}=e,f=u-l;if(f<0)return 0;if(f>h)return t.state.doc.length;for(let v=t.viewState.heightOracle.textHeight/2,T=!1;o=t.elementAtHeight(f),o.type!=vt.Text;)for(;f=i>0?o.bottom+v:o.top-v,!(f>=0&&f<=h);){if(T)return r?null:0;T=!0,i=-i}u=l+f;let p=o.from;if(p<t.viewport.from)return t.viewport.from==0?0:r?null:tm(t,a,o,c,u);if(p>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:r?null:tm(t,a,o,c,u);let d=t.dom.ownerDocument,y=t.root.elementFromPoint?t.root:d,b=y.elementFromPoint(c,u);b&&!t.contentDOM.contains(b)&&(b=null),b||(c=Math.max(a.left+1,Math.min(a.right-1,c)),b=y.elementFromPoint(c,u),b&&!t.contentDOM.contains(b)&&(b=null));let S,w=-1;if(b&&((n=t.docView.nearest(b))===null||n===void 0?void 0:n.isEditable)!=0){if(d.caretPositionFromPoint){let v=d.caretPositionFromPoint(c,u);v&&({offsetNode:S,offset:w}=v)}else if(d.caretRangeFromPoint){let v=d.caretRangeFromPoint(c,u);v&&({startContainer:S,startOffset:w}=v,(!t.contentDOM.contains(S)||Y.safari&&(function(T,_,L){let R;if(T.nodeType!=3||_!=(R=T.nodeValue.length))return!1;for(let E=T.nextSibling;E;E=E.nextSibling)if(E.nodeType!=1||E.nodeName!="BR")return!1;return Hi(T,R-1,R).getBoundingClientRect().left>L})(S,w,c)||Y.chrome&&(function(T,_,L){if(_!=0)return!1;for(let E=T;;){let N=E.parentNode;if(!N||N.nodeType!=1||N.firstChild!=E)return!1;if(N.classList.contains("cm-line"))break;E=N}let R=T.nodeType==1?T.getBoundingClientRect():Hi(T,0,Math.max(T.nodeValue.length,1)).getBoundingClientRect();return L-R.left>5})(S,w,c))&&(S=void 0))}}if(!S||!t.docView.dom.contains(S)){let v=at.find(t.docView,p);if(!v)return f>o.top+o.height/2?o.to:o.from;({node:S,offset:w}=Rc(v.dom,c,u))}let O=t.docView.nearest(S);if(!O)return null;if(O.isWidget&&((s=O.dom)===null||s===void 0?void 0:s.nodeType)==1){let v=O.dom.getBoundingClientRect();return e.y<v.top||e.y<=v.bottom&&e.x<=(v.left+v.right)/2?O.posAtStart:O.posAtEnd}return O.localPosFromDOM(S,w)+O.posAtStart}function tm(t,e,r,i,n){let s=Math.round((i-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&r.height>1.5*t.defaultLineHeight){let a=t.viewState.heightOracle.textHeight;s+=Math.floor((n-r.top-.5*(t.defaultLineHeight-a))/a)*t.viewState.heightOracle.lineLength}let o=t.state.sliceDoc(r.from,r.to);return r.from+(function(a,l,h){for(let c=0,u=0;;){if(u>=l)return c;if(c==a.length)break;u+=a.charCodeAt(c)==9?h-u%h:1,c=_t(a,c)}return a.length})(o,s,t.state.tabSize)}function $c(t,e){let r=t.lineBlockAt(e);if(Array.isArray(r.type)){for(let i of r.type)if(i.to>e||i.to==e&&(i.to==r.to||i.type==vt.Text))return i}return r}function rm(t,e,r,i){let n=t.state.doc.lineAt(e.head),s=t.bidiSpans(n),o=t.textDirectionAt(n.from);for(let a=e,l=null;;){let h=Ix(n,s,o,a,r),c=OO;if(!h){if(n.number==(r?t.state.doc.lines:1))return a;c=`
2
+ `,n=t.state.doc.line(n.number+(r?1:-1)),s=t.bidiSpans(n),h=t.visualLineSide(n,!r)}if(l){if(!l(c))return a}else{if(!i)return h;l=i(c)}a=h}}function aa(t,e,r){for(;;){let i=0;for(let n of t)n.between(e-1,e+1,(s,o,a)=>{if(e>s&&e<o){let l=i||r||(e-s<o-e?-1:1);e=l<0?s:o,i=l}});if(!i)return e}}function Ch(t,e,r){let i=aa(t.state.facet(Uu).map(n=>n(t)),r.from,e.head>r.from?-1:1);return i==r.from?r:V.cursor(i,i<r.from?1:-1)}function im(t,e){return(r,i)=>{try{return e.call(t,i,r)}catch(n){gr(r.state,n)}}}function zx(t){let e=Object.create(null);function r(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of t){let n=i.spec;if(n&&n.domEventHandlers)for(let s in n.domEventHandlers){let o=n.domEventHandlers[s];o&&r(s).handlers.push(im(i.value,o))}if(n&&n.domEventObservers)for(let s in n.domEventObservers){let o=n.domEventObservers[s];o&&r(s).observers.push(im(i.value,o))}}for(let i in dr)r(i).handlers.push(dr[i]);for(let i in pr)r(i).observers.push(pr[i]);return e}function Go(t){return .7*Math.max(0,t)+8}function nm(t,e){let r,{state:i}=t,n=1,s=i.toText(e),o=s.lines==i.selection.ranges.length;if(Ic!=null&&i.selection.ranges.every(a=>a.empty)&&Ic==s.toString()){let a=-1;r=i.changeByRange(l=>{let h=i.doc.lineAt(l.from);if(h.from==a)return{range:l};a=h.from;let c=i.toText((o?s.line(n++).text:e)+i.lineBreak);return{changes:{from:h.from,insert:c},range:V.cursor(l.from+c.length)}})}else r=o?i.changeByRange(a=>{let l=s.line(n++);return{changes:{from:a.from,to:a.to,insert:l.text},range:V.cursor(a.from+l.length)}}):i.replaceSelection(s);t.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}function sm(t,e,r,i){if(i==1)return V.cursor(e,r);if(i==2)return(function(n,s,o=1){let a=n.charCategorizer(s),l=n.doc.lineAt(s),h=s-l.from;if(l.length==0)return V.cursor(s);h==0?o=1:h==l.length&&(o=-1);let c=h,u=h;o<0?c=_t(l.text,h,!1):u=_t(l.text,h);let f=a(l.text.slice(c,u));for(;c>0;){let p=_t(l.text,c,!1);if(a(l.text.slice(p,c))!=f)break;c=p}for(;u<l.length;){let p=_t(l.text,u);if(a(l.text.slice(u,p))!=f)break;u=p}return V.range(c+l.from,u+l.from)})(t.state,e,r);{let n=at.find(t.docView,e),s=t.state.doc.lineAt(n?n.posAtEnd:e),o=n?n.posAtStart:s.from,a=n?n.posAtEnd:s.to;return a<t.state.doc.length&&a==s.to&&a++,V.range(o,a)}}function Bx(t,e,r,i){let n=at.find(t.docView,e);if(!n)return 1;let s=e-n.posAtStart;if(s==0)return 1;if(s==n.length)return-1;let o=n.coordsAt(s,-1);if(o&&om(r,i,o))return-1;let a=n.coordsAt(s,1);return a&&om(r,i,a)?1:o&&IO(i,o)?-1:1}function am(t,e){let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:r,bias:Bx(t,r,e.clientX,e.clientY)}}function DO(t){if(!jx)return t.detail;let e=lm,r=cm;return lm=t,cm=Date.now(),hm=!e||r>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(hm+1)%3:1}function um(t,e,r,i){if(!r)return;let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=t.inputState,o=i&&s&&(function(h,c){let u=h.state.facet(yO);return u.length?u[0](c):Y.mac?!c.altKey:!c.ctrlKey})(t,e)?{from:s.from,to:s.to}:null,a={from:n,insert:r},l=t.state.changes(o?[o,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(n,-1),head:l.mapPos(n,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null}function NO(t,e){let r=[];for(let i of t.facet(wO)){let n=i(t,e);n&&r.push(n)}return r?t.update({effects:r,annotations:MO.of(!0)}):null}function fm(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let r=NO(t.state,e);r?t.dispatch(r):t.update([])}},10)}function mm(t,e){let r,i;t[e]==null&&(r=t[e-1])instanceof wi&&(i=t[e+1])instanceof wi&&t.splice(e-1,3,new wi(r.length+1+i.length))}function Ux(t,e){let r=t.getBoundingClientRect(),i=t.ownerDocument,n=i.defaultView||window,s=Math.max(0,r.left),o=Math.min(n.innerWidth,r.right),a=Math.max(0,r.top),l=Math.min(n.innerHeight,r.bottom);for(let h=t.parentNode;h&&h!=i.body;)if(h.nodeType==1){let c=h,u=window.getComputedStyle(c);if((c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth)&&u.overflow!="visible"){let f=c.getBoundingClientRect();s=Math.max(s,f.left),o=Math.min(o,f.right),a=Math.max(a,f.top),l=h==t.parentNode?f.bottom:Math.min(l,f.bottom)}h=u.position=="absolute"||u.position=="fixed"?c.offsetParent:c.parentNode}else{if(h.nodeType!=11)break;h=h.host}return{left:s-r.left,right:Math.max(s,o)-r.left,top:a-(r.top+e),bottom:Math.max(a,l)-(r.top+e)}}function Wx(t,e){let r=t.getBoundingClientRect();return{left:0,right:r.right-r.left,top:e,bottom:r.bottom-(r.top+e)}}function Gx(t,e,r){let i=[],n=t,s=0;return Be.spans(r,t,e,{span(){},point(o,a){o>n&&(i.push({from:n,to:o}),s+=o-n),n=a}},20),n<e&&(i.push({from:n,to:e}),s+=e-n),{total:s,ranges:i}}function Yo({total:t,ranges:e},r){if(r<=0)return e[0].from;if(r>=1)return e[e.length-1].to;let i=Math.floor(t*r);for(let n=0;;n++){let{from:s,to:o}=e[n],a=o-s;if(i<=a)return s+i;i-=a}}function qo(t,e){let r=0;for(let{from:i,to:n}of t.ranges){if(e<=n){r+=e-i;break}r+=n-i}return r/t.total}function xs(t,e){if(e.scale==1)return t;let r=e.toDOM(t.top),i=e.toDOM(t.bottom);return new Lr(t.from,t.length,r,i-r,Array.isArray(t._content)?t._content.map(n=>xs(n,e)):t._content)}function jc(t,e,r){return new ei(e,{finish:i=>/&/.test(i)?i.replace(/&\w*/,n=>{if(n=="&")return t;if(!r||!r[n])throw new RangeError(`Unsupported selector: ${n}`);return r[n]}):t+" "+i})}function qx(t,e,r){for(;;){if(!e||r<ti(e))return!1;if(e==t)return!0;r=Vs(e)+1,e=e.parentNode}}function Om(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function zO(t,e){let r,{newSel:i}=e,n=t.state.selection.main,s=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:a}=e.bounds,l=n.from,h=null;(s===8||Y.android&&e.text.length<a-o)&&(l=n.to,h="end");let c=(function(u,f,p,d){let y=Math.min(u.length,f.length),b=0;for(;b<y&&u.charCodeAt(b)==f.charCodeAt(b);)b++;if(b==y&&u.length==f.length)return null;let S=u.length,w=f.length;for(;S>0&&w>0&&u.charCodeAt(S-1)==f.charCodeAt(w-1);)S--,w--;return d=="end"&&(p-=S+Math.max(0,b-Math.min(S,w))-b),S<b&&u.length<f.length?(b-=p<=b&&p>=S?b-p:0,w=b+(w-S),S=b):w<b&&(b-=p<=b&&p>=w?b-p:0,S=b+(S-w),w=b),{from:b,toA:S,toB:w}})(t.state.doc.sliceString(o,a,vs),e.text,l-o,h);c&&(Y.chrome&&s==13&&c.toB==c.from+2&&e.text.slice(c.from,c.toB)==vs+vs&&c.toB--,r={from:o+c.from,to:o+c.toA,insert:Te.of(e.text.slice(c.from,c.toB).split(vs))})}else i&&(!t.hasFocus&&t.state.facet(qa)||i.main.eq(n))&&(i=null);if(!r&&!i)return!1;if(!r&&e.typeOver&&!n.empty&&i&&i.main.empty?r={from:n.from,to:n.to,insert:t.state.doc.slice(n.from,n.to)}:r&&r.from>=n.from&&r.to<=n.to&&(r.from!=n.from||r.to!=n.to)&&n.to-n.from-(r.to-r.from)<=4?r={from:n.from,to:n.to,insert:t.state.doc.slice(n.from,r.from).append(r.insert).append(t.state.doc.slice(r.to,n.to))}:(Y.mac||Y.android)&&r&&r.from==r.to&&r.from==n.head-1&&/^\. ?$/.test(r.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(i&&r.insert.length==2&&(i=V.single(i.main.anchor-1,i.main.head-1)),r={from:n.from,to:n.to,insert:Te.of([" "])}):Y.chrome&&r&&r.from==r.to&&r.from==n.head&&r.insert.toString()==`
3
+ `&&t.lineWrapping&&(i&&(i=V.single(i.main.anchor-1,i.main.head-1)),r={from:n.from,to:n.to,insert:Te.of([" "])}),r){if(Y.ios&&t.inputState.flushIOSKey()||Y.android&&(r.from==n.from&&r.to==n.to&&r.insert.length==1&&r.insert.lines==2&&Tn(t.contentDOM,"Enter",13)||(r.from==n.from-1&&r.to==n.to&&r.insert.length==0||s==8&&r.insert.length<r.to-r.from&&r.to>n.head)&&Tn(t.contentDOM,"Backspace",8)||r.from==n.from&&r.to==n.to+1&&r.insert.length==0&&Tn(t.contentDOM,"Delete",46)))return!0;let o,a=r.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let l=()=>o||(o=(function(h,c,u){let f,p=h.state,d=p.selection.main;if(c.from>=d.from&&c.to<=d.to&&c.to-c.from>=(d.to-d.from)/3&&(!u||u.main.empty&&u.main.from==c.from+c.insert.length)&&h.inputState.composing<0){let b=d.from<c.from?p.sliceDoc(d.from,c.from):"",S=d.to>c.to?p.sliceDoc(c.to,d.to):"";f=p.replaceSelection(h.state.toText(b+c.insert.sliceString(0,void 0,h.state.lineBreak)+S))}else{let b=p.changes(c),S=u&&u.main.to<=b.newLength?u.main:void 0;if(p.selection.ranges.length>1&&h.inputState.composing>=0&&c.to<=d.to&&c.to>=d.to-10){let w,O=h.state.sliceDoc(c.from,c.to),v=u&&QO(h,u.main.head);if(v){let L=c.insert.length-(c.to-c.from);w={from:v.from,to:v.to-L}}else w=h.state.doc.lineAt(d.head);let T=d.to-c.to,_=d.to-d.from;f=p.changeByRange(L=>{if(L.from==d.from&&L.to==d.to)return{changes:b,range:S||L.map(b)};let R=L.to-T,E=R-O.length;if(L.to-L.from!=_||h.state.sliceDoc(E,R)!=O||L.to>=w.from&&L.from<=w.to)return{range:L};let N=p.changes({from:E,to:R,insert:c.insert}),A=L.to-d.to;return{changes:N,range:S?V.range(Math.max(0,S.anchor+A),Math.max(0,S.head+A)):L.map(N)}})}else f={changes:b,selection:S&&p.selection.replaceRange(S)}}let y="input.type";return(h.composing||h.inputState.compositionPendingChange&&h.inputState.compositionEndedAt>Date.now()-50)&&(h.inputState.compositionPendingChange=!1,y+=".compose",h.inputState.compositionFirstChange&&(y+=".start",h.inputState.compositionFirstChange=!1)),p.update(f,{userEvent:y,scrollIntoView:!0})})(t,r,i));return t.state.facet(vO).some(h=>h(t,r.from,r.to,a,l))||t.dispatch(l()),!0}if(i&&!i.main.eq(n)){let o=!1,a="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(o=!0),a=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:o,userEvent:a}),!0}return!1}function bm(t,e,r){for(;e;){let i=Ve.get(e);if(i&&i.parent==t)return i;let n=e.parentNode;e=n!=t.dom?n:r>0?e.nextSibling:e.previousSibling}return null}function Sm(t,e,r){for(let i=t.state.facet(e),n=i.length-1;n>=0;n--){let s=i[n],o=typeof s=="function"?s(t):s;o&&kc(o,r)}return r}function Ko(t,e,r){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),r!==!1&&e.shiftKey&&(t="Shift-"+t),t}function vm(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==_e.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function wm(t,e,r){let i=V.cursor(e);return{from:Math.max(r.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(r.to,t.moveToLineBoundary(i,!0,!0).from),type:vt.Text}}function VO(t){return[wt.define(e=>new Yc(e,t)),ha.of(t)]}function jO(t){return t.startState.facet(Da)!=t.state.facet(Da)}function km(t,e){e.style.animationDuration=t.facet(Da).cursorBlinkRate+"ms"}function iv(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}function WO(t,e){let r=t.plugin(UO);if(!r)return null;let i=r.manager.tooltips.indexOf(e);return i<0?null:r.manager.tooltipViews[i]}function Cm(t){let e=t.nextSibling;return t.remove(),e}function Em(t){return Array.isArray(t)?t:[t]}function eu(t,e,r){for(;t.value&&t.from<=r;)t.from==r&&e.push(t.value),t.next()}function $h(t,e){return t.state.facet(ws).formatNumber(e,t.state)}function Qm(t){let e=9;for(;e<t;)e=10*e+9;return e}function Ka(t){let e=Object.create(null);for(let r in t){let i=t[r];Array.isArray(i)||(i=[i]);for(let n of r.split(" "))if(n){let s=[],o=2,a=n;for(let u=0;;){if(a=="..."&&u>0&&u+3==n.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+n);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),u+=f[0].length,u==n.length)break;let p=n[u++];if(u==n.length&&p=="!"){o=0;break}if(p!="/")throw new RangeError("Invalid path: "+n);a=n.slice(u)}let l=s.length-1,h=s[l];if(!h)throw new RangeError("Invalid path: "+n);let c=new Rn(i,o,l>0?s.slice(0,l):null);e[h]=c.sort(e[h])}}return YO.add(e)}function hv(t,e){let r=Object.create(null);for(let s of t)if(Array.isArray(s.tag))for(let o of s.tag)r[o.id]=s.class;else r[s.tag.id]=s.class;let{scope:i,all:n=null}=e||{};return{style:s=>{let o=n;for(let a of s)for(let l of a.set){let h=r[l.id];if(h){o=o?o+" "+h:h;break}}return o},scope:i}}function qO(t,e,r,i=0,n=t.length){let s=new ru(i,Array.isArray(e)?e:[e],r);s.highlightRange(t.cursor(),i,n,"",s.highlighters),s.flush(n)}function HO(t){return U.define({combine:t?e=>e.concat(t):void 0})}function Lm(t,e,r){let i=t.facet(Ln),n=qe(t).topNode;if(!i||i.allowsNesting)for(let s=n;s;s=s.enter(e,r,Le.ExcludeBuffers))s.type.isTop&&(n=s);return n}function qe(t){let e=t.field(jt.state,!1);return e?e.tree:Je.empty}function _m(t,e,r){return vi.applyChanges(t,[{fromA:e,toA:r,fromB:e,toB:r}])}function ou(t){let e=t.facet(Ja);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function Im(t,e){let r="",i=t.tabSize,n=t.facet(Ja)[0];if(n==" "){for(;e>=i;)r+=" ",e-=i;n=" "}for(let s=0;s<e;s++)r+=n;return r}function fv(t,e){t instanceof Ye&&(t=new qs(t));for(let i of t.state.facet(uv)){let n=i(t,e);if(n!==void 0)return n}let r=qe(t.state);return r.length>=e?(function(i,n,s){let o=n.resolveStack(s),a=o.node.enterUnfinishedNodesBefore(s);if(a!=o.node){let l=[];for(let h=a;h!=o.node;h=h.parent)l.push(h);for(let h=l.length-1;h>=0;h--)o={node:l[h],next:o}}return JO(o,i,s)})(t,r,e):null}function JO(t,e,r){for(let i=t;i;i=i.next){let n=pv(i.node);if(n)return n(au.create(e,r,i))}return 0}function pv(t){let e=t.type.prop(el);if(e)return e;let r,i=t.firstChild;if(i&&(r=i.type.prop(he.closedBy))){let n=t.lastChild,s=n&&r.indexOf(n.name)>-1;return o=>e0(o,!0,1,void 0,s&&!(function(a){return a.pos==a.options.simulateBreak&&a.options.simulateDoubleBreak})(o)?n.from:void 0)}return t.parent==null?dv:null}function dv(){return 0}function mv(t,e){for(let r=e;r;r=r.parent)if(t==r)return!0;return!1}function gv({closing:t,align:e=!0,units:r=1}){return i=>e0(i,e,r,t)}function e0(t,e,r,i,n){let s=t.textAfter,o=s.match(/^\s*/)[0].length,a=i&&s.slice(o,o+i.length)==i||n==t.pos+o,l=e?(function(h){let c=h.node,u=c.childAfter(c.from),f=c.lastChild;if(!u)return null;let p=h.options.simulateBreak,d=h.state.doc.lineAt(u.from),y=p==null||p<=d.from?d.to:Math.min(d.to,p);for(let b=u.to;;){let S=c.childAfter(b);if(!S||S==f)return null;if(!S.type.isSkipped)return S.from<y?u:null;b=S.to}})(t):null;return l?a?t.column(l.from):t.column(l.to):t.baseIndent+(a?0:t.unit*r)}function ua({except:t,units:e=1}={}){return r=>{let i=t&&t.test(r.textAfter);return r.baseIndent+(i?0:e*r.unit)}}function t0(t){let e=t.firstChild,r=t.lastChild;return e&&e.to<r.from?{from:e.to,to:r.type.isError?t.to:r.from}:null}function r0(t,e){let r=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);return r>=i?void 0:{from:r,to:i}}function Sv(t,e,r){var i;let n=null;return(i=t.field(yv,!1))===null||i===void 0||i.between(e,r,(s,o)=>{(!n||n.from>s)&&(n={from:s,to:o})}),n}function xv(t,e,r){let i=!1;return t.between(e,e,(n,s)=>{n==e&&s==r&&(i=!0)}),i}function s0(t,e){let{state:r}=t,i=r.facet(n0),n=o=>{let a=t.lineBlockAt(t.posAtDOM(o.target)),l=Sv(t.state,a.from,a.to);l&&t.dispatch({effects:i0.of(l)}),o.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(t,n,e);let s=document.createElement("span");return s.textContent=i.placeholderText,s.setAttribute("aria-label",r.phrase("folded code")),s.title=r.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=n,s}function Dh(t){let e=t.facet(wv);return e.length?e:t.facet(kv)}function Av(t){let e=[],r=t.matched?Pv:Cv;return e.push(r.range(t.start.from,t.start.to)),t.end&&e.push(r.range(t.end.from,t.end.to)),e}function cu(t,e,r){let i=t.prop(e<0?he.openedBy:he.closedBy);if(i)return i;if(t.name.length==1){let n=r.indexOf(t.name);if(n>-1&&n%2==(e<0?1:0))return[r[n+e]]}return null}function uu(t){let e=t.type.prop(a0);return e?e(t.node):t}function ra(t,e,r,i={}){let n=i.maxScanDistance||1e4,s=i.brackets||o0,o=qe(t),a=o.resolveInner(e,r);for(let l=a;l;l=l.parent){let h=cu(l.type,r,s);if(h&&l.from<l.to){let c=uu(l);if(c&&(r>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return Ev(t,e,r,l,c,h,s)}}return(function(l,h,c,u,f,p,d){let y=c<0?l.sliceDoc(h-1,h):l.sliceDoc(h,h+1),b=d.indexOf(y);if(b<0||b%2==0!=c>0)return null;let S={from:c<0?h-1:h,to:c>0?h+1:h},w=l.doc.iterRange(h,c>0?l.doc.length:0),O=0;for(let v=0;!w.next().done&&v<=p;){let T=w.value;c<0&&(v+=T.length);let _=h+v*c;for(let L=c>0?0:T.length-1,R=c>0?T.length:-1;L!=R;L+=c){let E=d.indexOf(T[L]);if(!(E<0||u.resolveInner(_+L,1).type!=f))if(E%2==0==c>0)O++;else{if(O==1)return{start:S,end:{from:_+L,to:_+L+1},matched:E>>1==b>>1};O--}}c>0&&(v+=T.length)}return w.done?{start:S,matched:!1}:null})(t,e,r,o,a.type,n,s)}function Ev(t,e,r,i,n,s,o){let a=i.parent,l={from:n.from,to:n.to},h=0,c=a?.cursor();if(c&&(r<0?c.childBefore(i.from):c.childAfter(i.to)))do if(r<0?c.to<=i.from:c.from>=i.to){if(h==0&&s.indexOf(c.type.name)>-1&&c.from<c.to){let u=uu(c);return{start:l,end:u?{from:u.from,to:u.to}:void 0,matched:!0}}if(cu(c.type,r,o))h++;else if(cu(c.type,-r,o)){if(h==0){let u=uu(c);return{start:l,end:u&&u.from<u.to?{from:u.from,to:u.to}:void 0,matched:!1}}h--}}while(r<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}function Mh(t,e){Mm.indexOf(t)>-1||(Mm.push(t),console.warn(e))}function c0(t,e){let r=[];for(let a of e.split(" ")){let l=[];for(let h of a.split(".")){let c=t[h]||C[h];c?typeof c=="function"?l.length?l=l.map(c):Mh(h,`Modifier ${h} used at start of tag`):l.length?Mh(h,`Tag ${h} used as modifier`):l=Array.isArray(c)?c:[c]:Mh(h,`Unknown highlighting tag ${h}`)}for(let h of l)r.push(h)}if(!r.length)return 0;let i=e.replace(/ /g,"_"),n=i+" "+r.map(a=>a.id),s=Nm[n];if(s)return s.id;let o=Nm[n]=mt.define({id:fu.length,name:i,props:[Ka({[i]:r})]});return fu.push(o),o.id}function u0(t){return t.length<=4096&&/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(t)}function Xm(t){for(let e=t.iter();!e.next().done;)if(u0(e.value))return!0;return!1}function Fm(t,e,r){let i=new qi,n=t.visibleRanges;r||(n=(function(s,o){let a=o.iter(),l=0,h=[],c=null;for(let{from:u,to:f}of s)if(!(c&&c.to>u&&(u=c.to,u>=f)))for(l+a.value.length<u&&(a.next(u-(l+a.value.length)),l=u);;){let p=l,d=l+a.value.length;if(!a.lineBreak&&u0(a.value)&&(c&&c.to>p-10?c.to=Math.min(f,d):h.push(c={from:p,to:Math.min(f,d)})),d>=f)break;l=d,a.next()}return h})(n,t.state.doc));for(let{from:s,to:o}of n)e.iterate({enter:a=>{let l=a.type.prop(he.isolate);l&&i.add(a.from,a.to,Qv[l])},from:s,to:o});return i.finish()}function Ts(t,e=Uint16Array){if(typeof t!="string")return t;let r=null;for(let i=0,n=0;i<t.length;){let s=0;for(;;){let o=t.charCodeAt(i++),a=!1;if(o==126){s=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),s+=l,a)break;s*=46}r?r[n++]=s:r=new e(s)}return r}function f0(t,e,r,i,n,s){let o=0,a=1<<i,{dialect:l}=r.p.parser;e:for(;(a&t[o])!=0;){let h=t[o+1];for(let p=o+3;p<h;p+=2)if((t[p+1]&a)>0){let d=t[p];if(l.allows(d)&&(e.token.value==-1||e.token.value==d||Rv(d,e.token.value,n,s))){e.acceptToken(d);break}}let c=e.next,u=0,f=t[o+2];if(!(e.next<0&&f>u&&t[h+3*f-3]==65535)){for(;u<f;){let p=u+f>>1,d=h+p+(p<<1),y=t[d],b=t[d+1]||65536;if(c<y)f=p;else{if(!(c>=b)){o=t[d+2],e.advance();continue e}u=p+1}}break}o=t[h+3*f-1]}}function Vm(t,e,r){for(let i,n=e;(i=t[n])!=65535;n++)if(i==r)return n-e;return-1}function Rv(t,e,r,i){let n=Vm(r,i,e);return n<0||Vm(r,i,t)<n}function Bm(t,e,r){let i=t.cursor(Le.IncludeAnonymous);for(i.moveTo(e);;)if(!(r<0?i.childBefore(e):i.childAfter(e)))for(;;){if((r<0?i.to<e:i.from>e)&&!i.type.isError)return r<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(r<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return r<0?0:t.length}}function jm(t,e){for(let r=0;r<e.length;r++){let i=e[r];if(i.pos==t.pos&&i.sameState(t))return void(e[r].score<t.score&&(e[r]=t))}e.push(t)}function Wr(t,e){return t[e]|t[e+1]<<16}function Um(t){if(t.external){let e=t.extend?1:0;return(r,i)=>t.external(r,i)<<1|e}return t.get}function Hs(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function qu(t){return t>=48&&t<=57}function Wm(t){return qu(t)||t>=97&&t<=102||t>=65&&t<=70}function Fh(){if(!Zh&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],r=new Set;for(let i in t)i!="cssText"&&i!="cssFloat"&&typeof t[i]=="string"&&(/[A-Z]/.test(i)&&(i=i.replace(/[A-Z]/g,n=>"-"+n.toLowerCase())),r.has(i)||(e.push(i),r.add(i)));Zh=e.sort().map(i=>({type:"property",label:i}))}return Zh||[]}function Wv(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function m0(t,e,r){if(e.to-e.from>4096){let i=qm.get(e);if(i)return i;let n=[],s=new Set,o=e.cursor(Le.IncludeAnonymous);if(o.firstChild())do for(let a of m0(t,o.node,r))s.has(a.label)||(s.add(a.label),n.push(a));while(o.nextSibling());return qm.set(e,n),n}{let i=[],n=new Set;return e.cursor().iterate(s=>{var o;if(r(s)&&s.matchContext(Uv)&&((o=s.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let a=t.sliceString(s.from,s.to);n.has(a)||(n.add(a),i.push({label:a,type:"variable"}))}}),i}}function qv(){return new _n(Mn,Mn.data.of({autocomplete:Yv}))}function Hm(t){let e=Object.keys(t).join(""),r=/\w/.test(e);return r&&(e=e.replace(/\w/g,"")),`[${r?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function g0(t){let e=t.map(n=>typeof n=="string"?{label:n}:n),[r,i]=e.every(n=>/^\w+$/.test(n.label))?[/\w*$/,/\w+$/]:(function(n){let s=Object.create(null),o=Object.create(null);for(let{label:l}of n){s[l[0]]=!0;for(let h=1;h<l.length;h++)o[l[h]]=!0}let a=Hm(s)+Hm(o)+"*$";return[new RegExp("^"+a),new RegExp(a)]})(e);return n=>{let s=n.matchBefore(i);return s||n.explicit?{from:s?s.from:n.pos,options:e,validFor:r}:null}}function O0(t,e){return r=>{for(let i=qe(r.state).resolveInner(r.pos,-1);i;i=i.parent){if(t.indexOf(i.name)>-1)return null;if(i.type.isTop)break}return e(r)}}function Ti(t){return t.selection.main.from}function b0(t,e){var r;let{source:i}=t,n=e&&i[0]!="^",s=i[i.length-1]!="$";return n||s?new RegExp(`${n?"^":""}(?:${i})${s?"$":""}`,(r=t.flags)!==null&&r!==void 0?r:t.ignoreCase?"i":""):t}function Hv(t){if(!Array.isArray(t))return t;let e=Km.get(t);return e||Km.set(t,e=g0(t)),e}function Jm(t,e){return t?e?t+" "+e:t:e}function Kv(t,e,r,i,n,s){let o,a,l=t.textDirection==_e.RTL,h=l,c=!1,u="top",f=e.left-n.left,p=n.right-e.right,d=i.right-i.left,y=i.bottom-i.top;if(h&&f<Math.min(d,p)?h=!1:!h&&p<Math.min(d,f)&&(h=!0),d<=(h?f:p))o=Math.max(n.top,Math.min(r.top,n.bottom-y))-e.top,a=Math.min(400,h?f:p);else{c=!0,a=Math.min(400,(l?e.right:n.right-e.left)-30);let b=n.bottom-e.bottom;b>=y||b>e.top?o=r.bottom-e.top:(u="bottom",o=e.bottom-r.top)}return{style:`${u}: ${o/((e.bottom-e.top)/s.offsetHeight)}px; max-width: ${a/((e.right-e.left)/s.offsetWidth)}px`,class:"cm-completionInfo-"+(c?l?"left-narrow":"right-narrow":h?"left":"right")}}function zh(t,e,r){if(t<=r)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let n=Math.floor(e/r);return{from:n*r,to:(n+1)*r}}let i=Math.floor((t-e)/r);return{from:t-(i+1)*r,to:t-i*r}}function Jv(t,e){return r=>new ku(r,t,e)}function eg(t){return 100*(t.boost||0)+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function tg(t,e){let r={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(r["aria-activedescendant"]=t+"-"+e),r}function y0(t,e){if(t.isUserEvent("input.complete")){let i=t.annotation(Hu);if(i&&e.activateOnCompletion(i))return 12}let r=t.isUserEvent("input.type");return r&&e.activateOnTyping?5:r?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}function Ju(t,e){let r=e.completion.apply||e.completion.label,i=t.state.field(zt).active.find(n=>n.source==e.source);return i instanceof Ba&&(typeof r=="string"?t.dispatch(Object.assign(Object.assign({},(function(n,s,o,a){let{main:l}=n.selection,h=o-l.from,c=a-l.from;return Object.assign(Object.assign({},n.changeByRange(u=>{if(u!=l&&o!=a&&n.sliceDoc(u.from+h,u.from+c)!=n.sliceDoc(o,a))return{range:u};let f=n.toText(s);return{changes:{from:u.from+h,to:a==l.from?u.to:u.from+c,insert:f},range:V.cursor(u.from+h+f.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})})(t.state,r,i.from,i.to)),{annotations:Hu.of(e.completion)})):r(t,e.completion,i.from,i.to),!0)}function Ps(t,e="option"){return r=>{let i=r.state.field(zt,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<r.state.facet(ht).interactionDelay)return!1;let n,s=1;e=="page"&&(n=WO(r,i.open.tooltip))&&(s=Math.max(2,Math.floor(n.dom.offsetHeight/n.dom.querySelector("li").offsetHeight)-1));let{length:o}=i.open.options,a=i.open.selected>-1?i.open.selected+s*(t?1:-1):t?0:o-1;return a<0?a=e=="page"?0:o-1:a>=o&&(a=e=="page"?o-1:0),r.dispatch({effects:S0.of(a)}),!0}}function ef(t,e){return V.create(t.filter(r=>r.field==e).map(r=>V.range(r.from,r.to)))}function hw(t){let e=Ru.parse(t);return(r,i,n,s)=>{let{text:o,ranges:a}=e.instantiate(r.state,n),l={changes:{from:n,to:s,insert:Te.of(o)},scrollIntoView:!0,annotations:i?[Hu.of(i),nt.userEvent.of("input.complete")]:void 0};if(a.length&&(l.selection=ef(a,0)),a.some(h=>h.field>0)){let h=new Nn(a,0),c=l.effects=[to.of(h)];r.state.field(eo,!1)===void 0&&c.push(Pe.appendConfig.of([eo,uw,fw,sw]))}r.dispatch(r.state.update(l))}}function rg(t){return({state:e,dispatch:r})=>{let i=e.field(eo,!1);if(!i||t<0&&i.active==0)return!1;let n=i.active+t,s=t>0&&!i.ranges.some(o=>o.field==n+t);return r(e.update({selection:ef(i.ranges,n),effects:to.of(s?null:new Nn(i.ranges,n)),scrollIntoView:!0})),!0}}function Lt(t,e){return Object.assign(Object.assign({},e),{apply:hw(t)})}function dw(t){for(let e=0;e<8;e+=2)if(ng.charCodeAt(e)==t)return ng.charAt(e+1);return Mu(t<128?t:t+1)}function mw(t,e){return t.languageDataAt("closeBrackets",e)[0]||ja}function w0(t,e){let r=!1;return t.field(pw).between(0,t.doc.length,i=>{i==e&&(r=!0)}),r}function tf(t,e){let r=t.sliceString(e,e+2);return r.slice(0,Yr(fr(r,0)))}function Ow(t,e,r,i){let n=null,s=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:r,from:o.to}],effects:Vi.of(o.to+e.length),range:V.range(o.anchor+e.length,o.head+e.length)};let a=tf(t.doc,o.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:e+r,from:o.head},effects:Vi.of(o.head+e.length),range:V.cursor(o.head+e.length)}:{range:n=o}});return n?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function bw(t,e,r){let i=null,n=t.changeByRange(s=>s.empty&&tf(t.doc,s.head)==r?{changes:{from:s.head,to:s.head+r.length,insert:r},range:V.cursor(s.head+r.length)}:i={range:s});return i?null:t.update(n,{scrollIntoView:!0,userEvent:"input.type"})}function yw(t,e,r,i){let n=i.stringPrefixes||ja.stringPrefixes,s=null,o=t.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:e,from:a.to}],effects:Vi.of(a.to+e.length),range:V.range(a.anchor+e.length,a.head+e.length)};let l,h=a.head,c=tf(t.doc,h);if(c==e){if(sg(t,h))return{changes:{insert:e+e,from:h},effects:Vi.of(h+e.length),range:V.cursor(h+e.length)};if(w0(t,h)){let u=r&&t.sliceDoc(h,h+3*e.length)==e+e+e?e+e+e:e;return{changes:{from:h,to:h+u.length,insert:u},range:V.cursor(h+u.length)}}}else{if(r&&t.sliceDoc(h-2*e.length,h)==e+e&&(l=og(t,h-2*e.length,n))>-1&&sg(t,l))return{changes:{insert:e+e+e+e,from:h},effects:Vi.of(h+e.length),range:V.cursor(h+e.length)};if(t.charCategorizer(h)(c)!=dt.Word&&og(t,h,n)>-1&&!(function(u,f,p,d){let y=qe(u).resolveInner(f,-1),b=d.reduce((S,w)=>Math.max(S,w.length),0);for(let S=0;S<5;S++){let w=u.sliceDoc(y.from,Math.min(y.to,y.from+p.length+b)),O=w.indexOf(p);if(!O||O>-1&&d.indexOf(w.slice(0,O))>-1){let T=y.firstChild;for(;T&&T.from==y.from&&T.to-T.from>p.length+O;){if(u.sliceDoc(T.to-p.length,T.to)==p)return!1;T=T.firstChild}return!0}let v=y.to==f&&y.parent;if(!v)break;y=v}return!1})(t,h,e,n))return{changes:{insert:e+e,from:h},effects:Vi.of(h+e.length),range:V.cursor(h+e.length)}}return{range:s=a}});return s?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function sg(t,e){let r=qe(t).resolveInner(e+1);return r.parent&&r.from==e}function og(t,e,r){let i=t.charCategorizer(e);if(i(t.sliceDoc(e-1,e))!=dt.Word)return e;for(let n of r){let s=e-n.length;if(t.sliceDoc(s,e)==n&&i(t.sliceDoc(s-1,s))!=dt.Word)return s}return-1}function k0(t,e){return({state:r,dispatch:i})=>{if(r.readOnly)return!1;let n=t(e,r);return!!n&&(i(r.update(n)),!0)}}function T0(t,e){let r=t.languageDataAt("commentTokens",e);return r.length?r[0]:{}}function xw(t,e,r=e.selection.ranges){let i=[],n=-1;for(let{from:s,to:o}of r){let a=i.length,l=1e9,h=T0(e,s).line;if(h){for(let c=s;c<=o;){let u=e.doc.lineAt(c);if(u.from>n&&(s==o||o>u.from)){n=u.from;let f=/^\s*/.exec(u.text)[0].length,p=f==u.length,d=u.text.slice(f,f+h.length)==h?f:-1;f<u.text.length&&f<l&&(l=f),i.push({line:u,comment:d,token:h,indent:f,empty:p,single:!1})}c=u.to+1}if(l<1e9)for(let c=a;c<i.length;c++)i[c].indent<i[c].line.text.length&&(i[c].indent=l);i.length==a+1&&(i[a].single=!0)}}if(t!=2&&i.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:a,token:l,indent:h,empty:c,single:u}of i)!u&&c||s.push({from:a.from+h,insert:l+" "});let o=e.changes(s);return{changes:o,selection:e.selection.map(o,1)}}if(t!=1&&i.some(s=>s.comment>=0)){let s=[];for(let{line:o,comment:a,token:l}of i)if(a>=0){let h=o.from+a,c=h+l.length;o.text[c-o.from]==" "&&c++,s.push({from:h,to:c})}return{changes:s}}return null}function tl(t,e){return function({state:r,dispatch:i}){if(!e&&r.readOnly)return!1;let n=r.field(Tw,!1);if(!n)return!1;let s=n.pop(t,r,e);return!!s&&(i(s),!0)}}function Ua(t,e,r,i){let n=e+1>r+20?e-r-1:0,s=t.slice(n,e);return s.push(i),s}function P0(t,e){return t.length?e.length?t.concat(e):t:e}function C0(t,e){if(t.length){let r=t[t.length-1],i=r.selectionsAfter.slice(Math.max(0,r.selectionsAfter.length-Qw));return i.length&&i[i.length-1].eq(e)?t:(i.push(e),Ua(t,t.length-1,1e9,r.setSelAfter(i)))}return[mr.selection([e])]}function Rw(t){let e=t[t.length-1],r=t.slice();return r[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),r}function Vh(t,e){if(!t.length)return t;let r=t.length,i=sr;for(;r;){let n=$w(t[r-1],e,i);if(n.changes&&!n.changes.empty||n.effects.length){let s=t.slice(0,r);return s[r-1]=n,s}e=n.mapped,r--,i=n.selectionsAfter}return i.length?[mr.selection(i)]:sr}function $w(t,e,r){let i=P0(t.selectionsAfter.length?t.selectionsAfter.map(a=>a.map(e)):sr,r);if(!t.changes)return mr.selection(i);let n=t.changes.map(e),s=e.mapDesc(t.changes,!0),o=t.mapped?t.mapped.composeDesc(s):s;return new mr(n,Pe.mapEffects(t.effects,e),o,t.startSelection.map(s),i)}function rf(t,e){return V.create(t.ranges.map(e),t.mainIndex)}function en(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Gr({state:t,dispatch:e},r){let i=rf(t.selection,r);return!i.eq(t.selection)&&(e(en(t,i)),!0)}function rl(t,e){return V.cursor(e?t.to:t.from)}function A0(t,e){return Gr(t,r=>r.empty?t.moveByChar(r,e):rl(r,e))}function or(t){return t.textDirectionAt(t.state.selection.main.head)==_e.LTR}function E0(t,e){return Gr(t,r=>r.empty?t.moveByGroup(r,e):rl(r,e))}function $0(t,e){return Gr(t,r=>{if(!r.empty)return rl(r,e);let i=t.moveVertically(r,e);return i.head!=r.head?i:t.moveToLineBoundary(r,e)})}function L0(t){let e,r=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,i=0,n=0;if(r){for(let s of t.state.facet(re.scrollMargins)){let o=s(t);o?.top&&(i=Math.max(o?.top,i)),o?.bottom&&(n=Math.max(o?.bottom,n))}e=t.scrollDOM.clientHeight-i-n}else e=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:i,marginBottom:n,selfScroll:r,height:Math.max(t.defaultLineHeight,e-5)}}function _0(t,e){let r,i=L0(t),{state:n}=t,s=rf(n.selection,o=>o.empty?t.moveVertically(o,e,i.height):rl(o,e));if(s.eq(n.selection))return!1;if(i.selfScroll){let o=t.coordsAtPos(n.selection.main.head),a=t.scrollDOM.getBoundingClientRect(),l=a.top+i.marginTop,h=a.bottom-i.marginBottom;o&&o.top>l&&o.bottom<h&&(r=re.scrollIntoView(s.main.head,{y:"start",yMargin:o.top-l}))}return t.dispatch(en(n,s),{effects:r}),!0}function bi(t,e,r){let i=t.lineBlockAt(e.head),n=t.moveToLineBoundary(e,r);if(n.head==e.head&&n.head!=(r?i.to:i.from)&&(n=t.moveToLineBoundary(e,r,!1)),!r&&n.head==i.from&&i.length){let s=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;s&&e.head!=i.from+s&&(n=V.cursor(i.from+s))}return n}function $r(t,e){let r=rf(t.state.selection,i=>{let n=e(i);return V.range(i.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return!r.eq(t.state.selection)&&(t.dispatch(en(t.state,r)),!0)}function I0(t,e){return $r(t,r=>t.moveByChar(r,e))}function D0(t,e){return $r(t,r=>t.moveByGroup(r,e))}function X0(t,e){return $r(t,r=>t.moveVertically(r,e))}function Z0(t,e){return $r(t,r=>t.moveVertically(r,e,L0(t).height))}function Is(t,e){if(t.state.readOnly)return!1;let r="delete.selection",{state:i}=t,n=i.changeByRange(s=>{let{from:o,to:a}=s;if(o==a){let l=e(s);l<o?(r="delete.backward",l=ia(t,l,!1)):l>o&&(r="delete.forward",l=ia(t,l,!0)),o=Math.min(o,l),a=Math.max(a,l)}else o=ia(t,o,!1),a=ia(t,a,!0);return o==a?{range:s}:{changes:{from:o,to:a},range:V.cursor(o,o<s.head?-1:1)}});return!n.changes.empty&&(t.dispatch(i.update(n,{scrollIntoView:!0,userEvent:r,effects:r=="delete.selection"?re.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function ia(t,e,r){if(t instanceof re)for(let i of t.state.facet(re.atomicRanges).map(n=>n(t)))i.between(e,e,(n,s)=>{n<e&&s>e&&(e=r?s:n)});return e}function _w(t){return({state:e,dispatch:r})=>{if(e.readOnly)return!1;let i=e.changeByRange(n=>{let{from:s,to:o}=n,a=e.doc.lineAt(s),l=!t&&s==o&&(function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};let d,y=qe(f).resolveInner(p),b=y.childBefore(p),S=y.childAfter(p);return b&&S&&b.to<=p&&S.from>=p&&(d=b.type.prop(he.closedBy))&&d.indexOf(S.name)>-1&&f.doc.lineAt(b.to).from==f.doc.lineAt(S.from).from&&!/\S/.test(f.sliceDoc(b.to,S.from))?{from:b.to,to:S.from}:null})(e,s);t&&(s=o=(o<=a.to?a:e.doc.lineAt(o)).to);let h=new qs(e,{simulateBreak:s,simulateDoubleBreak:!!l}),c=fv(h,s);for(c==null&&(c=Zu(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));o<a.to&&/\s/.test(a.text[o-a.from]);)o++;l?{from:s,to:o}=l:s>a.from&&s<a.from+100&&!/\S/.test(a.text.slice(0,s))&&(s=a.from);let u=["",Im(e,c)];return l&&u.push(Im(e,h.lineIndent(a.from,-1))),{changes:{from:s,to:o,insert:Te.of(u)},range:V.cursor(s+1+u[1].length)}});return r(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function Nw(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function B0(t){return t==9||t==10||t==13||t==32}function _u(t,e){let r=t.pos+e;if(Cg==r&&Pg==t)return Tg;let i=t.peek(e);for(;B0(i);)i=t.peek(++e);let n="";for(;Nw(i);)n+=String.fromCharCode(i),i=t.peek(++e);return Pg=t,Cg=r,Tg=n?n.toLowerCase():i==Xw||i==Zw?void 0:null}function Ag(t,e){this.name=t,this.parent=e}function nf(t,e,r){let i=2+t.length;return new kt(n=>{for(let s=0,o=0,a=0;;a++){if(n.next<0){a&&n.acceptToken(e);break}if(s==0&&n.next==60||s==1&&n.next==47||s>=2&&s<i&&n.next==t.charCodeAt(s-2))s++,o++;else if(s!=2&&s!=i||!B0(n.next)){if(s==i&&n.next==62){a>o?n.acceptToken(e,-o):n.acceptToken(r,-(o-2));break}if((n.next==10||n.next==13)&&a){n.acceptToken(e,1);break}s=o=0}else o++;n.advance()}})}function j0(t,e){let r=Object.create(null);for(let i of t.getChildren(23)){let n=i.getChild(24),s=i.getChild(26)||i.getChild(27);n&&(r[e.read(n.from,n.to)]=s?s.type.id==26?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return r}function Eg(t,e){let r=t.getChild(22);return r?e.read(r.from,r.to):" "}function Uh(t,e,r){let i;for(let n of r)if(!n.attrs||n.attrs(i||(i=j0(t.node.parent.firstChild,e))))return{parser:n.parser};return null}function U0(t=[],e=[]){let r=[],i=[],n=[],s=[];for(let a of t)(a.tag=="script"?r:a.tag=="style"?i:a.tag=="textarea"?n:s).push(a);let o=e.length?Object.create(null):null;for(let a of e)(o[a.name]||(o[a.name]=[])).push(a);return px((a,l)=>{let h=a.type.id;if(h==28)return Uh(a,l,r);if(h==31)return Uh(a,l,i);if(h==34)return Uh(a,l,n);if(h==20&&s.length){let c,u=a.node,f=u.firstChild,p=f&&Eg(f,l);if(p){for(let d of s)if(d.tag==p&&(!d.attrs||d.attrs(c||(c=j0(f,l))))){let y=u.lastChild,b=y.type.id==37?y.from:u.to;if(b>f.to)return{parser:d.parser,overlay:[{from:f.to,to:b}]}}}}if(o&&h==23){let c,u=a.node;if(c=u.firstChild){let f=o[l.read(c.from,c.to)];if(f)for(let p of f){if(p.tagName&&p.tagName!=Eg(u.parent,l))continue;let d=u.lastChild;if(d.type.id==26){let y=d.from+1,b=d.lastChild,S=d.to-(b&&b.isError?0:1);if(S>y)return{parser:p.parser,overlay:[{from:y,to:S}]}}else if(d.type.id==27)return{parser:p.parser,overlay:[{from:d.from,to:d.to}]}}}}return null})}function Wh(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}function Os(t){return(e,r)=>{let i=e.node.getChild("VariableDefinition");return i&&r(i,t),!0}}function Y0(t,e){let r=Qg.get(e);if(r)return r;let i=[],n=!0;function s(o,a){let l=t.sliceString(o.from,o.to);i.push({label:l,type:a})}return e.cursor(Le.IncludeAnonymous).iterate(o=>{if(n)n=!1;else if(o.name){let a=hk[o.name];if(a&&a(o,s)||G0.has(o.name))return!1}else if(o.to-o.from>8192){for(let a of Y0(t,o.node))i.push(a);return!1}}),Qg.set(e,i),i}function q0(t){let e=qe(t.state).resolveInner(t.pos,-1);if(of.indexOf(e.name)>-1)return null;let r=e.name=="VariableName"||e.to-e.from<20&&Wa.test(t.state.sliceDoc(e.from,e.to));if(!r&&!t.explicit)return null;let i=[];for(let n=e;n;n=n.parent)G0.has(n.name)&&(i=i.concat(Y0(t.state.doc,n)));return{options:i,from:r?e.from:t.pos,validFor:Wa}}function Gh(t,e,r){var i;let n=[];for(;;){let s,o=e.firstChild;if(o?.name=="VariableName")return n.push(t(o)),{path:n.reverse(),name:r};if(o?.name!="MemberExpression"||((i=s=o.lastChild)===null||i===void 0?void 0:i.name)!="PropertyName")return null;n.push(t(s)),e=o}}function Rg(t){let e=i=>t.state.doc.sliceString(i.from,i.to),r=qe(t.state).resolveInner(t.pos,-1);return r.name=="PropertyName"?Gh(e,r.parent,e(r)):r.name!="."&&r.name!="?."||r.parent.name!="MemberExpression"?of.indexOf(r.name)>-1?null:r.name=="VariableName"||r.to-r.from<20&&Wa.test(e(r))?{path:[],name:e(r)}:r.name=="MemberExpression"?Gh(e,r,""):t.explicit?{path:[],name:""}:null:Gh(e,r.parent,"")}function eb(t={}){let e=t.jsx?t.typescript?hf:lf:t.typescript?af:ar,r=t.typescript?W0.concat(ck):sf.concat(J0);return new _n(e,[ar.data.of({autocomplete:O0(of,g0(r))}),ar.data.of({autocomplete:q0}),t.jsx?tb:[]])}function $g(t,e,r=t.length){for(let i=e?.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return t.sliceString(i.from,Math.min(i.to,r));return""}function Lg(t,e,r,i){return r.line(t+i.line).from+e+(t==1?i.col-1:-1)}function fk(t,e,r){let i=Lg(t.line,t.column,e,r),n={from:i,to:t.endLine!=null&&t.endColumn!=1?Lg(t.endLine,t.endColumn,e,r):i,message:t.message,source:t.ruleId?"eslint:"+t.ruleId:"eslint",severity:t.severity==1?"warning":"error"};if(t.fix){let{range:s,text:o}=t.fix,a=s[0]+r.pos-i,l=s[1]+r.pos-i;n.actions=[{name:"fix",apply(h,c){h.dispatch({changes:{from:c+a,to:c+l,insert:o},scrollIntoView:!0})}}]}return n}function Xn(t,e,r=t.length){if(!e)return"";let i=e.firstChild,n=i&&i.getChild("TagName");return n?t.sliceString(n.from,Math.min(n.to,r)):""}function Zn(t,e=!1){for(;t;t=t.parent)if(t.name=="Element"){if(!e)return t;e=!1}return null}function nb(t,e,r){let i=r.tags[Xn(t,Zn(e))];return i?.children||r.allTags}function cf(t,e){let r=[];for(let i=Zn(e);i&&!i.type.isTop;i=Zn(i.parent)){let n=Xn(t,i);if(n&&i.lastChild.name=="CloseTag")break;n&&r.indexOf(n)<0&&(e.name=="EndTag"||e.from>=i.firstChild.to)&&r.push(n)}return r}function _g(t,e,r,i,n){let s=/\s*>/.test(t.sliceDoc(n,n+5))?"":">",o=Zn(r,!0);return{from:i,to:n,options:nb(t.doc,o,e).map(a=>({label:a,type:"type"})).concat(cf(t.doc,r).map((a,l)=>({label:"/"+a,apply:"/"+a+s,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Ig(t,e,r,i){let n=/\s*>/.test(t.sliceDoc(i,i+5))?"":">";return{from:r,to:i,options:cf(t.doc,e).map((s,o)=>({label:s,apply:s+n,type:"type",boost:99-o})),validFor:sb}}function ob(t,e){let{state:r,pos:i}=e,n=qe(r).resolveInner(i,-1),s=n.resolve(i);for(let o,a=i;s==n&&(o=n.childBefore(a));){let l=o.lastChild;if(!l||!l.type.isError||l.from<l.to)break;s=n=o,a=l.from}return n.name=="TagName"?n.parent&&/CloseTag$/.test(n.parent.name)?Ig(r,n,n.from,i):_g(r,t,n,n.from,i):n.name=="StartTag"?_g(r,t,n,i,i):n.name=="StartCloseTag"||n.name=="IncompleteCloseTag"?Ig(r,n,i,i):n.name=="OpenTag"||n.name=="SelfClosingTag"||n.name=="AttributeName"?(function(o,a,l,h,c){let u=Zn(l),f=u?a.tags[Xn(o.doc,u)]:null,p=f&&f.attrs?Object.keys(f.attrs):[];return{from:h,to:c,options:(f&&f.globalAttrs===!1?p:p.length?p.concat(a.globalAttrNames):a.globalAttrNames).map(d=>({label:d,type:"property"})),validFor:sb}})(r,t,n,n.name=="AttributeName"?n.from:i,i):n.name=="Is"||n.name=="AttributeValue"||n.name=="UnquotedAttributeValue"?(function(o,a,l,h,c){var u;let f,p=(u=l.parent)===null||u===void 0?void 0:u.getChild("AttributeName"),d=[];if(p){let y=o.sliceDoc(p.from,p.to),b=a.globalAttrs[y];if(!b){let S=Zn(l),w=S?a.tags[Xn(o.doc,S)]:null;b=w?.attrs&&w.attrs[y]}if(b){let S=o.sliceDoc(h,c).toLowerCase(),w='"',O='"';/^['"]/.test(S)?(f=S[0]=='"'?/^[^"]*$/:/^[^']*$/,w="",O=o.sliceDoc(c,c+1)==S[0]?"":S[0],S=S.slice(1),h++):f=/^[^\s<>='"]*$/;for(let v of b)d.push({label:v,apply:w+v+O,type:"constant"})}}return{from:h,to:c,options:d,validFor:f}})(r,t,n,n.name=="Is"?i:n.from,i):!e.explicit||s.name!="Element"&&s.name!="Text"&&s.name!="Document"?null:(function(o,a,l,h){let c=[],u=0;for(let f of nb(o.doc,l,a))c.push({label:"<"+f,type:"type"});for(let f of cf(o.doc,l))c.push({label:"</"+f+">",type:"type",boost:99-u++});return{from:h,to:h,options:c,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}})(r,t,n,i)}function mk(t){return ob(Ji.default,t)}function ab(t){let{extraTags:e,extraGlobalAttributes:r}=t,i=r||e?new Ji(e,r):Ji.default;return n=>ob(i,n)}function Ok(t={}){let e,r="";t.matchClosingTags===!1&&(r="noMatch"),t.selfClosingTags===!0&&(r=(r?r+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(e=U0((t.nestedLanguages||[]).concat(lb),(t.nestedAttributes||[]).concat(hb)));let i=e?cb.configure({wrap:e,dialect:r}):r?Ds.configure({dialect:r}):Ds;return new _n(i,[Ds.data.of({autocomplete:ab(t)}),t.autoCloseTags!==!1?ub:[],eb().support,qv().support])}function Ng(t,e,r,i){return!(r!=0&&t(e.sliceDoc(r-1,r))==dt.Word||i!=e.doc.length&&t(e.sliceDoc(i,i+1))==dt.Word)}var ux,ir,he,Ui,fx,mt,Ms,Fo,Td,Le,Je,Kh,Pi,fa,It,ec,Wi,tc,Gi,Cd,pa,vi,Ns,ic,da,nc,sc,oc,ma,gx,ac,Fg,Te,Bt,vn,Bi,ga,Oa,ba,lc,lt,Kr,Dt,Yi,zi,V,Nu,U,wn,zo,Mt,vx,wx,fc,kx,ii,ya,Xs,Zs,Sa,Wg,pc,Gg,Yg,qg,Hg,Kg,nr,va,wa,Pe,nt,Px,dt,Cx,dc,Ye,qr,En,mc,Be,qi,ka,Fs,Fi,Zd,Oc,Fd,ei,zd,bc,Jr,Qn,eO,tO,it,jo,Sc,Bd,yn,xt,zu,Ve,Pa,Vt,xc,vc,lO,wc,Ya,Ud,Th,Qx,hO,Wd,Y,Ci,Ai,Ca,B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w,eo,cw,ig,uw,fw,ja,Vi,$u,pw,ng,gw,D2,Sw,M2,N2,X2,gs,Lu,vw,ww,kw,Tw,Pw,Cw,Aw,Ew,mr,sr,Qw,Lw,ji,ag,lg,Q0,R0,hg,cg,ug,Bh,fg,pg,M0,N0,dg,mg,gg,Og,bg,yg,Sg,xg,F0,jh,vg,z0,wg,V0,Iw,Dw,Mw,kg,Tg,Pg,Cg,Xw,Zw,Fw,zw,Vw,Bw,jw,Uw,Ww,Gw,Yw,qw,Iu,Hw,Kw,Jw,ek,tk,rk,ik,nk,sk,ok,ak,sf,W0,Qg,G0,lk,hk,Wa,of,ar,H0,af,lf,hf,K0,J0,ck,uk,tb,pk,bs,Yh,qh,Hh,Ft,ee,dk,rb,ib,Ji,sb,gk,lb,hb,cb,Ds,Dg,ub,bk,Mg,Ga,yk,Sk,xk,vk,Z2,F2,z2,V2,fb=is(()=>{ux=0,ir=class{constructor(t,e){this.from=t,this.to=e}},he=class{constructor(e={}){this.id=ux++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=mt.match(e)),r=>{let i=e(r);return i===void 0?null:[this,i]}}};he.closedBy=new he({deserialize:t=>t.split(" ")}),he.openedBy=new he({deserialize:t=>t.split(" ")}),he.group=new he({deserialize:t=>t.split(" ")}),he.isolate=new he({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),he.contextHash=new he({perNode:!0}),he.lookAhead=new he({perNode:!0}),he.mounted=new he({perNode:!0});Ui=class{constructor(e,r,i){this.tree=e,this.overlay=r,this.parser=i}static get(e){return e&&e.props&&e.props[he.mounted.id]}},fx=Object.create(null),mt=class t{constructor(e,r,i,n=0){this.name=e,this.props=r,this.id=i,this.flags=n}static define(e){let r=e.props&&e.props.length?Object.create(null):fx,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),n=new t(e.name||"",r,e.id,i);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(n)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");r[s[0].id]=s[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let r=this.prop(he.group);return!!r&&r.indexOf(e)>-1}return this.id==e}static match(e){let r=Object.create(null);for(let i in e)for(let n of i.split(" "))r[n]=e[i];return i=>{for(let n=i.prop(he.group),s=-1;s<(n?n.length:0);s++){let o=r[s<0?i.name:n[s]];if(o)return o}}}};mt.none=new mt("",Object.create(null),0,8);Ms=class t{constructor(e){this.types=e;for(let r=0;r<e.length;r++)if(e[r].id!=r)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let r=[];for(let i of this.types){let n=null;for(let s of e){let o=s(i);o&&(n||(n=Object.assign({},i.props)),n[o[0].id]=o[1])}r.push(n?new mt(i.name,n,i.id,i.flags):i)}return new t(r)}},Fo=new WeakMap,Td=new WeakMap;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(Le||(Le={}));Je=class t{constructor(e,r,i,n,s){if(this.type=e,this.children=r,this.positions=i,this.length=n,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let e=Ui.get(this);if(e&&!e.overlay)return e.tree.toString();let r="";for(let i of this.children){let n=i.toString();n&&(r&&(r+=","),r+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(r.length?"("+r+")":""):r}cursor(e=0){return new Gi(this.topNode,e)}cursorAt(e,r=0,i=0){let n=Fo.get(this)||this.topNode,s=new Gi(n);return s.moveTo(e,r),Fo.set(this,s._tree),s}get topNode(){return new It(this,0,0,null)}resolve(e,r=0){let i=Cs(Fo.get(this)||this.topNode,e,r,!1);return Fo.set(this,i),i}resolveInner(e,r=0){let i=Cs(Td.get(this)||this.topNode,e,r,!0);return Td.set(this,i),i}resolveStack(e,r=0){return(function(i,n,s){let o=i.resolveInner(n,s),a=null;for(let l=o instanceof It?o:o.context.parent;l;l=l.parent)if(l.index<0){let h=l.parent;(a||(a=[o])).push(h.resolve(n,s)),l=h}else{let h=Ui.get(l.tree);if(h&&h.overlay&&h.overlay[0].from<=n&&h.overlay[h.overlay.length-1].to>=n){let c=new It(h.tree,h.overlay[0].from+l.from,-1,l);(a||(a=[o])).push(Cs(c,n,s,!1))}}return a?Zg(a):o})(this,e,r)}iterate(e){let{enter:r,leave:i,from:n=0,to:s=this.length}=e,o=e.mode||0,a=(o&Le.IncludeAnonymous)>0;for(let l=this.cursor(o|Le.IncludeAnonymous);;){let h=!1;if(l.from<=s&&l.to>=n&&(!a&&l.type.isAnonymous||r(l)!==!1)){if(l.firstChild())continue;h=!0}for(;h&&i&&(a||!l.type.isAnonymous)&&i(l),!l.nextSibling();){if(!l.parent())return;h=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let r in this.props)e.push([+r,this.props[r]]);return e}balance(e={}){return this.children.length<=8?this:rc(mt.none,this.children,this.positions,0,this.children.length,0,this.length,(r,i,n)=>new t(this.type,r,i,n,this.propValues),e.makeTree||((r,i,n)=>new t(mt.none,r,i,n)))}static build(e){return(function(r){var i;let{buffer:n,nodeSet:s,maxBufferLength:o=1024,reused:a=[],minRepeatType:l=s.types.length}=r,h=Array.isArray(n)?new Kh(n,n.length):n,c=s.types,u=0,f=0;function p(L,R,E,N,A,P){let{id:x,start:$,end:F,size:H}=h,pe=f,xe=u;for(;H<0;){if(h.next(),H==-1){let ae=a[x];return E.push(ae),void N.push($-L)}if(H==-3)return void(u=x);if(H==-4)return void(f=x);throw new RangeError(`Unrecognized record size: ${H}`)}let De,Ee,Xe=c[x],Ge=$-L;if(F-$<=o&&(Ee=w(h.pos-R,A))){let ae=new Uint16Array(Ee.size-Ee.skip),j=h.pos-Ee.size,q=ae.length;for(;h.pos>j;)q=O(Ee.start,ae,q);De=new Pi(ae,F-Ee.start,s),Ge=Ee.start-L}else{let ae=h.pos-H;h.next();let j=[],q=[],ne=x>=l?x:-1,ve=0,fe=F;for(;h.pos>ae;)ne>=0&&h.id==ne&&h.size>=0?(h.end<=fe-o&&(b(j,q,$,ve,h.end,fe,ne,pe,xe),ve=j.length,fe=h.end),h.next()):P>2500?d($,ae,j,q):p($,ae,j,q,ne,P+1);if(ne>=0&&ve>0&&ve<j.length&&b(j,q,$,ve,$,fe,ne,pe,xe),j.reverse(),q.reverse(),ne>-1&&ve>0){let se=y(Xe,xe);De=rc(Xe,j,q,0,j.length,0,F-$,se,se)}else De=S(Xe,j,q,F-$,pe-F,xe)}E.push(De),N.push(Ge)}function d(L,R,E,N){let A=[],P=0,x=-1;for(;h.pos>R;){let{id:$,start:F,end:H,size:pe}=h;if(pe>4)h.next();else{if(x>-1&&F<x)break;x<0&&(x=H-o),A.push($,F,H),P++,h.next()}}if(P){let $=new Uint16Array(4*P),F=A[A.length-2];for(let H=A.length-3,pe=0;H>=0;H-=3)$[pe++]=A[H],$[pe++]=A[H+1]-F,$[pe++]=A[H+2]-F,$[pe++]=pe;E.push(new Pi($,A[2]-F,s)),N.push(F-L)}}function y(L,R){return(E,N,A)=>{let P,x,$=0,F=E.length-1;if(F>=0&&(P=E[F])instanceof t){if(!F&&P.type==L&&P.length==A)return P;(x=P.prop(he.lookAhead))&&($=N[F]+P.length+x)}return S(L,E,N,A,$,R)}}function b(L,R,E,N,A,P,x,$,F){let H=[],pe=[];for(;L.length>N;)H.push(L.pop()),pe.push(R.pop()+E-A);L.push(S(s.types[x],H,pe,P-A,$-P,F)),R.push(A-E)}function S(L,R,E,N,A,P,x){if(P){let $=[he.contextHash,P];x=x?[$].concat(x):[$]}if(A>25){let $=[he.lookAhead,A];x=x?[$].concat(x):[$]}return new t(L,R,E,N,x)}function w(L,R){let E=h.fork(),N=0,A=0,P=0,x=E.end-o,$={size:0,start:0,skip:0};e:for(let F=E.pos-L;E.pos>F;){let H=E.size;if(E.id==R&&H>=0){$.size=N,$.start=A,$.skip=P,P+=4,N+=4,E.next();continue}let pe=E.pos-H;if(H<0||pe<F||E.start<x)break;let xe=E.id>=l?4:0,De=E.start;for(E.next();E.pos>pe;){if(E.size<0){if(E.size!=-3)break e;xe+=4}else E.id>=l&&(xe+=4);E.next()}A=De,N+=H,P+=xe}return(R<0||N==L)&&($.size=N,$.start=A,$.skip=P),$.size>4?$:void 0}function O(L,R,E){let{id:N,start:A,end:P,size:x}=h;if(h.next(),x>=0&&N<l){let $=E;if(x>4){let F=h.pos-(x-4);for(;h.pos>F;)E=O(L,R,E)}R[--E]=$,R[--E]=P-L,R[--E]=A-L,R[--E]=N}else x==-3?u=N:x==-4&&(f=N);return E}let v=[],T=[];for(;h.pos>0;)p(r.start||0,r.bufferStart||0,v,T,-1,0);let _=(i=r.length)!==null&&i!==void 0?i:v.length?T[0]+v[0].length:0;return new t(c[r.topID],v.reverse(),T.reverse(),_)})(e)}};Je.empty=new Je(mt.none,[],[],0);Kh=class t{constructor(e,r){this.buffer=e,this.index=r}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new t(this.buffer,this.index)}},Pi=class t{constructor(e,r,i){this.buffer=e,this.length=r,this.set=i}get type(){return mt.none}toString(){let e=[];for(let r=0;r<this.buffer.length;)e.push(this.childString(r)),r=this.buffer[r+3];return e.join(",")}childString(e){let r=this.buffer[e],i=this.buffer[e+3],n=this.set.types[r],s=n.name;if(/\W/.test(s)&&!n.isError&&(s=JSON.stringify(s)),i==(e+=4))return s;let o=[];for(;e<i;)o.push(this.childString(e)),e=this.buffer[e+3];return s+"("+o.join(",")+")"}findChild(e,r,i,n,s){let{buffer:o}=this,a=-1;for(let l=e;l!=r&&!(Xg(s,n,o[l+1],o[l+2])&&(a=l,i>0));l=o[l+3]);return a}slice(e,r,i){let n=this.buffer,s=new Uint16Array(r-e),o=0;for(let a=e,l=0;a<r;){s[l++]=n[a++],s[l++]=n[a++]-i;let h=s[l++]=n[a++]-i;s[l++]=n[a++]-e,o=Math.max(o,h)}return new t(s,o,this.set)}};fa=class{cursor(e=0){return new Gi(this,e)}getChild(e,r=null,i=null){let n=Pd(this,e,r,i);return n.length?n[0]:null}getChildren(e,r=null,i=null){return Pd(this,e,r,i)}resolve(e,r=0){return Cs(this,e,r,!1)}resolveInner(e,r=0){return Cs(this,e,r,!0)}matchContext(e){return Jh(this.parent,e)}enterUnfinishedNodesBefore(e){let r=this.childBefore(e),i=this;for(;r;){let n=r.lastChild;if(!n||n.to!=r.to)break;n.type.isError&&n.from==n.to?(i=r,r=n.prevSibling):r=n}return i}get node(){return this}get next(){return this.parent}},It=class t extends fa{constructor(e,r,i,n){super(),this._tree=e,this.from=r,this.index=i,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,r,i,n,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,h=r>0?a.length:-1;e!=h;e+=r){let c=a[e],u=l[e]+o.from;if(Xg(n,i,u,u+c.length)){if(c instanceof Pi){if(s&Le.ExcludeBuffers)continue;let f=c.findChild(0,c.buffer.length,r,i-u,n);if(f>-1)return new Wi(new ec(o,c,e,u),null,f)}else if(s&Le.IncludeAnonymous||!c.type.isAnonymous||Du(c)){let f;if(!(s&Le.IgnoreMounts)&&(f=Ui.get(c))&&!f.overlay)return new t(f.tree,u,e,o);let p=new t(c,u,e,o);return s&Le.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(r<0?c.children.length-1:0,r,i,n)}}}if(s&Le.IncludeAnonymous||!o.type.isAnonymous||(e=o.index>=0?o.index+r:r<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,r,i=0){let n;if(!(i&Le.IgnoreOverlays)&&(n=Ui.get(this._tree))&&n.overlay){let s=e-this.from;for(let{from:o,to:a}of n.overlay)if((r>0?o<=s:o<s)&&(r<0?a>=s:a>s))return new t(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,r,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};ec=class{constructor(e,r,i,n){this.parent=e,this.buffer=r,this.index=i,this.start=n}},Wi=class t extends fa{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,r,i){super(),this.context=e,this._parent=r,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,r,i){let{buffer:n}=this.context,s=n.findChild(this.index+4,n.buffer[this.index+3],e,r-this.context.start,i);return s<0?null:new t(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,r,i=0){if(i&Le.ExcludeBuffers)return null;let{buffer:n}=this.context,s=n.findChild(this.index+4,n.buffer[this.index+3],r>0?1:-1,e-this.context.start,r);return s<0?null:new t(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,r=e.buffer[this.index+3];return r<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new t(this.context,this._parent,r):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,r=this._parent?this._parent.index+4:0;return this.index==r?this.externalSibling(-1):new t(this.context,this._parent,e.findChild(r,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],r=[],{buffer:i}=this.context,n=this.index+4,s=i.buffer[this.index+3];if(s>n){let o=i.buffer[this.index+1];e.push(i.slice(n,s,o)),r.push(0)}return new Je(this.type,e,r,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};tc=class{constructor(e,r){this.heads=e,this.node=r}get next(){return Zg(this.heads)}},Gi=class{get name(){return this.type.name}constructor(e,r=0){if(this.mode=r,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof It)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,r){this.index=e;let{start:i,buffer:n}=this.buffer;return this.type=r||n.set.types[n.buffer[e]],this.from=i+n.buffer[e+1],this.to=i+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof It?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,r,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,r,i,this.mode));let{buffer:n}=this.buffer,s=n.findChild(this.index+4,n.buffer[this.index+3],e,r-this.buffer.start,i);return!(s<0)&&(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,r,i=this.mode){return this.buffer?!(i&Le.ExcludeBuffers)&&this.enterChild(1,e,r):this.yield(this._tree.enter(e,r,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Le.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Le.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:r}=this.buffer,i=this.stack.length-1;if(e<0){let n=i<0?0:this.stack[i]+4;if(this.index!=n)return this.yieldBuf(r.findChild(n,this.index,-1,0,4))}else{let n=r.buffer[this.index+3];if(n<(i<0?r.buffer.length:r.buffer[this.stack[i]+3]))return this.yieldBuf(n)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let r,i,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(n.buffer.buffer[s+3]<this.index)return!1;({index:r,parent:i}=n)}else({index:r,_parent:i}=this._tree);for(;i;{index:r,_parent:i}=i)if(r>-1)for(let s=r+e,o=e<0?-1:i._tree.children.length;s!=o;s+=e){let a=i._tree.children[s];if(this.mode&Le.IncludeAnonymous||a instanceof Pi||!a.type.isAnonymous||Du(a))return!1}return!0}move(e,r){if(r&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,r=0){for(;(this.from==this.to||(r<1?this.from>=e:this.from>e)||(r>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,r););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,r=null,i=0;if(e&&e.context==this.buffer)e:for(let n=this.index,s=this.stack.length;s>=0;){for(let o=e;o;o=o._parent)if(o.index==n){if(n==this.index)return o;r=o,i=s+1;break e}n=this.stack[--s]}for(let n=i;n<this.stack.length;n++)r=new Wi(this.buffer,r,this.stack[n]);return this.bufferNode=new Wi(this.buffer,r,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,r){for(let i=0;;){let n=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){i++;continue}this.type.isAnonymous||(n=!0)}for(;;){if(n&&r&&r(this),n=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,n=!0}}}matchContext(e){if(!this.buffer)return Jh(this.node.parent,e);let{buffer:r}=this.buffer,{types:i}=r.set;for(let n=e.length-1,s=this.stack.length-1;n>=0;s--){if(s<0)return Jh(this._tree,e,n);let o=i[r.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[n]&&e[n]!=o.name)return!1;n--}}return!0}};Cd=new WeakMap;pa=class{constructor(){this.map=new WeakMap}setBuffer(e,r,i){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(r,i)}getBuffer(e,r){let i=this.map.get(e);return i&&i.get(r)}set(e,r){e instanceof Wi?this.setBuffer(e.context.buffer,e.index,r):e instanceof It&&this.map.set(e.tree,r)}get(e){return e instanceof Wi?this.getBuffer(e.context.buffer,e.index):e instanceof It?this.map.get(e.tree):void 0}cursorSet(e,r){e.buffer?this.setBuffer(e.buffer.buffer,e.index,r):this.map.set(e.tree,r)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},vi=class t{constructor(e,r,i,n,s=!1,o=!1){this.from=e,this.to=r,this.tree=i,this.offset=n,this.open=(s?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,r=[],i=!1){let n=[new t(0,e.length,e,0,!1,i)];for(let s of r)s.to>e.length&&n.push(s);return n}static applyChanges(e,r,i=128){if(!r.length)return e;let n=[],s=1,o=e.length?e[0]:null;for(let a=0,l=0,h=0;;a++){let c=a<r.length?r[a]:null,u=c?c.fromA:1e9;if(u-l>=i)for(;o&&o.from<u;){let f=o;if(l>=f.from||u<=f.to||h){let p=Math.max(f.from,l)-h,d=Math.min(f.to,u)-h;f=p>=d?null:new t(p,d,f.tree,f.offset+h,a>0,!!c)}if(f&&n.push(f),o.to>u)break;o=s<e.length?e[s++]:null}if(!c)break;l=c.toA,h=c.toA-c.toB}return n}},Ns=class{startParse(e,r,i){return typeof e=="string"&&(e=new ic(e)),i=i?i.length?i.map(n=>new ir(n.from,n.to)):[new ir(0,0)]:[new ir(0,e.length)],this.createParse(e,r||[],i)}parse(e,r,i){let n=this.startParse(e,r,i);for(;;){let s=n.advance();if(s)return s}}},ic=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,r){return this.string.slice(e,r)}};da=class{constructor(e,r,i,n,s){this.parser=e,this.parse=r,this.overlay=i,this.target=n,this.from=s}};nc=class{constructor(e,r,i,n,s,o,a){this.parser=e,this.predicate=r,this.mounts=i,this.index=n,this.start=s,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}},sc=new he({perNode:!0}),oc=class{constructor(e,r,i,n,s){this.nest=r,this.input=i,this.fragments=n,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let i=this.baseParse.advance();if(!i)return null;if(this.baseParse=null,this.baseTree=i,this.startInner(),this.stoppedAt!=null)for(let n of this.inner)n.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let i=this.baseTree;return this.stoppedAt!=null&&(i=new Je(i.type,i.children,i.positions,i.length,i.propValues.concat([[sc,this.stoppedAt]]))),i}let e=this.inner[this.innerDone],r=e.parse.advance();if(r){this.innerDone++;let i=Object.assign(Object.create(null),e.target.props);i[he.mounted.id]=new Ui(r,e.overlay,e.parser),e.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let r=this.innerDone;r<this.inner.length;r++)this.inner[r].from<e&&(e=Math.min(e,this.inner[r].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let r=this.innerDone;r<this.inner.length;r++)this.inner[r].parse.stopAt(e)}startInner(){let e=new gx(this.fragments),r=null,i=null,n=new Gi(new It(this.baseTree,this.ranges[0].from,0,null),Le.IncludeAnonymous|Le.IgnoreMounts);e:for(let s,o;;){let a,l=!0;if(this.stoppedAt!=null&&n.from>=this.stoppedAt)l=!1;else if(e.hasNode(n)){if(r){let h=r.mounts.find(c=>c.frag.from<=n.from&&c.frag.to>=n.to&&c.mount.overlay);if(h)for(let c of h.mount.overlay){let u=c.from+h.pos,f=c.to+h.pos;u>=n.from&&f<=n.to&&!r.ranges.some(p=>p.from<f&&p.to>u)&&r.ranges.push({from:u,to:f})}}l=!1}else if(i&&(o=dx(i.ranges,n.from,n.to)))l=o!=2;else if(!n.type.isAnonymous&&(s=this.nest(n,this.input))&&(n.from<n.to||!s.overlay)){n.tree||mx(n);let h=e.findMounts(n.from,s.parser);if(typeof s.overlay=="function")r=new nc(s.parser,s.overlay,h,this.inner.length,n.from,n.tree,r);else{let c=Qd(this.ranges,s.overlay||(n.from<n.to?[new ir(n.from,n.to)]:[]));c.length&&Ad(c),!c.length&&s.overlay||this.inner.push(new da(s.parser,c.length?s.parser.startParse(this.input,Rd(h,c),c):s.parser.startParse(""),s.overlay?s.overlay.map(u=>new ir(u.from-n.from,u.to-n.from)):null,n.tree,c.length?c[0].from:n.from)),s.overlay?c.length&&(i={ranges:c,depth:0,prev:i}):l=!1}}else if(r&&(a=r.predicate(n))&&(a===!0&&(a=new ir(n.from,n.to)),a.from<a.to)){let h=r.ranges.length-1;h>=0&&r.ranges[h].to==a.from?r.ranges[h]={from:r.ranges[h].from,to:a.to}:r.ranges.push(a)}if(l&&n.firstChild())r&&r.depth++,i&&i.depth++;else for(;!n.nextSibling();){if(!n.parent())break e;if(r&&!--r.depth){let h=Qd(this.ranges,r.ranges);h.length&&(Ad(h),this.inner.splice(r.index,0,new da(r.parser,r.parser.startParse(this.input,Rd(r.mounts,h),h),r.ranges.map(c=>new ir(c.from-r.start,c.to-r.start)),r.target,h[0].from))),r=r.prev}i&&!--i.depth&&(i=i.prev)}}}};ma=class{constructor(e,r){this.offset=r,this.done=!1,this.cursor=e.cursor(Le.IncludeAnonymous|Le.IgnoreMounts)}moveTo(e){let{cursor:r}=this,i=e-this.offset;for(;!this.done&&r.from<i;)r.to>=e&&r.enter(i,1,Le.IgnoreOverlays|Le.ExcludeBuffers)||r.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let r=this.cursor.tree;;){if(r==e.tree)return!0;if(!(r.children.length&&r.positions[0]==0&&r.children[0]instanceof Je))break;r=r.children[0]}return!1}},gx=class{constructor(t){var e;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let r=this.curFrag=t[0];this.curTo=(e=r.tree.prop(sc))!==null&&e!==void 0?e:r.to,this.inner=new ma(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let e=this.curFrag=this.fragments[this.fragI];this.curTo=(t=e.tree.prop(sc))!==null&&t!==void 0?t:e.to,this.inner=new ma(e.tree,-e.offset)}}findMounts(t,e){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let n=this.inner.cursor.node;n;n=n.parent){let s=(r=n.tree)===null||r===void 0?void 0:r.prop(he.mounted);if(s&&s.parser==e)for(let o=this.fragI;o<this.fragments.length;o++){let a=this.fragments[o];if(a.from>=n.to)break;a.tree==this.curFrag.tree&&i.push({frag:a,pos:n.from-a.offset,mount:s})}}}return i}};ac=[],Fg=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,r=0;e<t.length;e++)(e%2?Fg:ac).push(r+=t[e])})();Te=class t{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,r,i){[e,r]=An(this,e,r);let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(r,this.length,n,1),vn.from(n,this.length-(r-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,r=this.length){[e,r]=An(this,e,r);let i=[];return this.decompose(e,r,i,0),vn.from(i,r-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let r=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new Bi(this),s=new Bi(e);for(let o=r,a=r;;){if(n.next(o),s.next(o),o=0,n.lineBreak!=s.lineBreak||n.done!=s.done||n.value!=s.value)return!1;if(a+=n.value.length,n.done||a>=i)return!0}}iter(e=1){return new Bi(this,e)}iterRange(e,r=this.length){return new ga(this,e,r)}iterLines(e,r){let i;if(e==null)i=this.iter();else{r==null&&(r=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,r==this.lines+1?this.length:r<=1?0:this.line(r-1).to))}return new Oa(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length!=1||e[0]?e.length<=32?new Bt(e):vn.from(Bt.split(e,[])):t.empty}},Bt=class t extends Te{constructor(e,r=(function(i){let n=-1;for(let s of i)n+=s.length+1;return n})(e)){super(),this.text=e,this.length=r}get lines(){return this.text.length}get children(){return null}lineInner(e,r,i,n){for(let s=0;;s++){let o=this.text[s],a=n+o.length;if((r?i:a)>=e)return new ba(n,a,i,o);n=a+1,i++}}decompose(e,r,i,n){let s=e<=0&&r>=this.length?this:new t(_d(this.text,e,r),Math.min(r,this.length)-Math.max(0,e));if(1&n){let o=i.pop(),a=sa(s.text,o.text.slice(),0,s.length);if(a.length<=32)i.push(new t(a,o.length+s.length));else{let l=a.length>>1;i.push(new t(a.slice(0,l)),new t(a.slice(l)))}}else i.push(s)}replace(e,r,i){if(!(i instanceof t))return super.replace(e,r,i);[e,r]=An(this,e,r);let n=sa(this.text,sa(i.text,_d(this.text,0,e)),r),s=this.length+i.length-(r-e);return n.length<=32?new t(n,s):vn.from(t.split(n,[]),s)}sliceString(e,r=this.length,i=`
4
+ `){[e,r]=An(this,e,r);let n="";for(let s=0,o=0;s<=r&&o<this.text.length;o++){let a=this.text[o],l=s+a.length;s>e&&o&&(n+=i),e<l&&r>s&&(n+=a.slice(Math.max(0,e-s),r-s)),s=l+1}return n}flatten(e){for(let r of this.text)e.push(r)}scanIdentical(){return 0}static split(e,r){let i=[],n=-1;for(let s of e)i.push(s),n+=s.length+1,i.length==32&&(r.push(new t(i,n)),i=[],n=-1);return n>-1&&r.push(new t(i,n)),r}},vn=class t extends Te{constructor(e,r){super(),this.children=e,this.length=r,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,r,i,n){for(let s=0;;s++){let o=this.children[s],a=n+o.length,l=i+o.lines-1;if((r?l:a)>=e)return o.lineInner(e,r,i,n);n=a+1,i=l+1}}decompose(e,r,i,n){for(let s=0,o=0;o<=r&&s<this.children.length;s++){let a=this.children[s],l=o+a.length;if(e<=l&&r>=o){let h=n&((o<=e?1:0)|(l>=r?2:0));o>=e&&l<=r&&!h?i.push(a):a.decompose(e-o,r-o,i,h)}o=l+1}}replace(e,r,i){if([e,r]=An(this,e,r),i.lines<this.lines)for(let n=0,s=0;n<this.children.length;n++){let o=this.children[n],a=s+o.length;if(e>=s&&r<=a){let l=o.replace(e-s,r-s,i),h=this.lines-o.lines+l.lines;if(l.lines<h>>4&&l.lines>h>>6){let c=this.children.slice();return c[n]=l,new t(c,this.length-(r-e)+i.length)}return super.replace(s,a,l)}s=a+1}return super.replace(e,r,i)}sliceString(e,r=this.length,i=`
5
+ `){[e,r]=An(this,e,r);let n="";for(let s=0,o=0;s<this.children.length&&o<=r;s++){let a=this.children[s],l=o+a.length;o>e&&s&&(n+=i),e<l&&r>o&&(n+=a.sliceString(e-o,r-o,i)),o=l+1}return n}flatten(e){for(let r of this.children)r.flatten(e)}scanIdentical(e,r){if(!(e instanceof t))return 0;let i=0,[n,s,o,a]=r>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=r,s+=r){if(n==o||s==a)return i;let l=this.children[n],h=e.children[s];if(l!=h)return i+l.scanIdentical(h,r);i+=l.length+1}}static from(e,r=e.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let p of e)i+=p.lines;if(i<32){let p=[];for(let d of e)d.flatten(p);return new Bt(p,r)}let n=Math.max(32,i>>5),s=n<<1,o=n>>1,a=[],l=0,h=-1,c=[];function u(p){let d;if(p.lines>s&&p instanceof t)for(let y of p.children)u(y);else p.lines>o&&(l>o||!l)?(f(),a.push(p)):p instanceof Bt&&l&&(d=c[c.length-1])instanceof Bt&&p.lines+d.lines<=32?(l+=p.lines,h+=p.length+1,c[c.length-1]=new Bt(d.text.concat(p.text),d.length+1+p.length)):(l+p.lines>n&&f(),l+=p.lines,h+=p.length+1,c.push(p))}function f(){l!=0&&(a.push(c.length==1?c[0]:t.from(c,h)),h=-1,l=c.length=0)}for(let p of e)u(p);return f(),a.length==1?a[0]:new t(a,r)}};Te.empty=new Bt([""],0);Bi=class{constructor(e,r=1){this.dir=r,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[r>0?1:(e instanceof Bt?e.text.length:e.children.length)<<1]}nextInner(e,r){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],s=this.offsets[i],o=s>>1,a=n instanceof Bt?n.text.length:n.children.length;if(o==(r>0?a:0)){if(i==0)return this.done=!0,this.value="",this;r>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&s)==(r>0?0:1)){if(this.offsets[i]+=r,e==0)return this.lineBreak=!0,this.value=`
6
+ `,this;e--}else if(n instanceof Bt){let l=n.text[o+(r<0?-1:0)];if(this.offsets[i]+=r,l.length>Math.max(0,e))return this.value=e==0?l:r>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=n.children[o+(r<0?-1:0)];e>l.length?(e-=l.length,this.offsets[i]+=r):(r<0&&this.offsets[i]--,this.nodes.push(l),this.offsets.push(r>0?1:(l instanceof Bt?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},ga=class{constructor(e,r,i){this.value="",this.done=!1,this.cursor=new Bi(e,r>i?-1:1),this.pos=r>i?e.length:0,this.from=Math.min(r,i),this.to=Math.max(r,i)}nextInner(e,r){if(r<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,r<0?this.pos-this.to:this.from-this.pos);let i=r<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*r,this.value=n.length<=i?n:r<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},Oa=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:r,lineBreak:i,value:n}=this.inner.next(e);return r&&this.afterBreak?(this.value="",this.afterBreak=!1):r?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(Te.prototype[Symbol.iterator]=function(){return this.iter()},Bi.prototype[Symbol.iterator]=ga.prototype[Symbol.iterator]=Oa.prototype[Symbol.iterator]=function(){return this});ba=class{constructor(e,r,i,n){this.from=e,this.to=r,this.number=i,this.text=n}get length(){return this.to-this.from}};lc=/\r\n?|\n/,lt=(function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t})(lt||(lt={})),Kr=class t{constructor(e){this.sections=e}get length(){let e=0;for(let r=0;r<this.sections.length;r+=2)e+=this.sections[r];return e}get newLength(){let e=0;for(let r=0;r<this.sections.length;r+=2){let i=this.sections[r+1];e+=i<0?this.sections[r]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let r=0,i=0,n=0;r<this.sections.length;){let s=this.sections[r++],o=this.sections[r++];o<0?(e(i,n,s),n+=s):n+=o,i+=s}}iterChangedRanges(e,r=!1){hc(this,e,r)}get invertedDesc(){let e=[];for(let r=0;r<this.sections.length;){let i=this.sections[r++],n=this.sections[r++];n<0?e.push(i,n):e.push(n,i)}return new t(e)}composeDesc(e){return this.empty?e:e.empty?this:jg(this,e)}mapDesc(e,r=!1){return e.empty?this:cc(this,e,r)}mapPos(e,r=-1,i=lt.Simple){let n=0,s=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],l=this.sections[o++],h=n+a;if(l<0){if(h>e)return s+(e-n);s+=a}else{if(i!=lt.Simple&&h>=e&&(i==lt.TrackDel&&n<e&&h>e||i==lt.TrackBefore&&n<e||i==lt.TrackAfter&&h>e))return null;if(h>e||h==e&&r<0&&!a)return e==n||r<0?s:s+l;s+=l}n=h}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return s}touchesRange(e,r=e){for(let i=0,n=0;i<this.sections.length&&n<=r;){let s=n+this.sections[i++];if(this.sections[i++]>=0&&n<=r&&s>=e)return!(n<e&&s>r)||"cover";n=s}return!1}toString(){let e="";for(let r=0;r<this.sections.length;){let i=this.sections[r++],n=this.sections[r++];e+=(e?" ":"")+i+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(r=>typeof r!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(e)}static create(e){return new t(e)}},Dt=class t extends Kr{constructor(e,r){super(e),this.inserted=r}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return hc(this,(r,i,n,s,o)=>e=e.replace(n,n+(i-r),o),!1),e}mapDesc(e,r=!1){return cc(this,e,r,!0)}invert(e){let r=this.sections.slice(),i=[];for(let n=0,s=0;n<r.length;n+=2){let o=r[n],a=r[n+1];if(a>=0){r[n]=a,r[n+1]=o;let l=n>>1;for(;i.length<l;)i.push(Te.empty);i.push(o?e.slice(s,s+o):Te.empty)}s+=o}return new t(r,i)}compose(e){return this.empty?e:e.empty?this:jg(this,e,!0)}map(e,r=!1){return e.empty?this:cc(this,e,r,!0)}iterChanges(e,r=!1){hc(this,e,r)}get desc(){return Kr.create(this.sections)}filter(e){let r=[],i=[],n=[],s=new Yi(this);e:for(let o=0,a=0;;){let l=o==e.length?1e9:e[o++];for(;a<l||a==l&&s.len==0;){if(s.done)break e;let c=Math.min(s.len,l-a);pt(n,c,-1);let u=s.ins==-1?-1:s.off==0?s.ins:0;pt(r,c,u),u>0&&xi(i,r,s.text),s.forward(c),a+=c}let h=e[o++];for(;a<h;){if(s.done)break e;let c=Math.min(s.len,h-a);pt(r,c,-1),pt(n,c,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(c),a+=c}}return{changes:new t(r,i),filtered:Kr.create(n)}}toJSON(){let e=[];for(let r=0;r<this.sections.length;r+=2){let i=this.sections[r],n=this.sections[r+1];n<0?e.push(i):n==0?e.push([i]):e.push([i].concat(this.inserted[r>>1].toJSON()))}return e}static of(e,r,i){let n=[],s=[],o=0,a=null;function l(h=!1){if(!h&&!n.length)return;o<r&&pt(n,r-o,-1);let c=new t(n,s);a=a?a.compose(c.map(a)):c,n=[],s=[],o=0}return(function h(c){if(Array.isArray(c))for(let u of c)h(u);else if(c instanceof t){if(c.length!=r)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${r})`);l(),a=a?a.compose(c.map(a)):c}else{let{from:u,to:f=u,insert:p}=c;if(u>f||u<0||f>r)throw new RangeError(`Invalid change range ${u} to ${f} (in doc of length ${r})`);let d=p?typeof p=="string"?Te.of(p.split(i||lc)):p:Te.empty,y=d.length;if(u==f&&y==0)return;u<o&&l(),u>o&&pt(n,u-o,-1),pt(n,f-u,y),xi(s,n,d),o=f}})(e),l(!a),a}static empty(e){return new t(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let r=[],i=[];for(let n=0;n<e.length;n++){let s=e[n];if(typeof s=="number")r.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,a)=>a&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)r.push(s[0],0);else{for(;i.length<n;)i.push(Te.empty);i[n]=Te.of(s.slice(1)),r.push(s[0],i[n].length)}}}return new t(r,i)}static createSet(e,r){return new t(e,r)}};Yi=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,r=this.i-2>>1;return r>=e.length?Te.empty:e[r]}textBit(e){let{inserted:r}=this.set,i=this.i-2>>1;return i>=r.length&&!e?Te.empty:r[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},zi=class t{constructor(e,r,i){this.from=e,this.to=r,this.flags=i}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,r=-1){let i,n;return this.empty?i=n=e.mapPos(this.from,r):(i=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new t(i,n,this.flags)}extend(e,r=e){if(e<=this.anchor&&r>=this.anchor)return V.range(e,r);let i=Math.abs(e-this.anchor)>Math.abs(r-this.anchor)?e:r;return V.range(this.anchor,i)}eq(e,r=!1){return!(this.anchor!=e.anchor||this.head!=e.head||r&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return V.range(e.anchor,e.head)}static create(e,r,i){return new t(e,r,i)}},V=class t{constructor(e,r){this.ranges=e,this.mainIndex=r}map(e,r=-1){return e.empty?this:t.create(this.ranges.map(i=>i.map(e,r)),this.mainIndex)}eq(e,r=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],r))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new t([this.main],0)}addRange(e,r=!0){return t.create([e].concat(this.ranges),r?0:this.mainIndex+1)}replaceRange(e,r=this.mainIndex){let i=this.ranges.slice();return i[r]=e,t.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(e.ranges.map(r=>zi.fromJSON(r)),e.main)}static single(e,r=e){return new t([t.range(e,r)],0)}static create(e,r=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;n<e.length;n++){let s=e[n];if(s.empty?s.from<=i:s.from<i)return t.normalized(e.slice(),r);i=s.to}return new t(e,r)}static cursor(e,r=0,i,n){return zi.create(e,e,(r==0?0:r<0?8:16)|(i==null?7:Math.min(6,i))|(n??16777215)<<6)}static range(e,r,i,n){let s=(i??16777215)<<6|(n==null?7:Math.min(6,n));return r<e?zi.create(r,e,48|s):zi.create(e,r,(r>e?8:0)|s)}static normalized(e,r=0){let i=e[r];e.sort((n,s)=>n.from-s.from),r=e.indexOf(i);for(let n=1;n<e.length;n++){let s=e[n],o=e[n-1];if(s.empty?s.from<=o.to:s.from<o.to){let a=o.from,l=Math.max(s.to,o.to);n<=r&&r--,e.splice(--n,2,s.anchor>s.head?t.range(l,a):t.range(a,l))}}return new t(e,r)}};Nu=0,U=class t{constructor(e,r,i,n,s){this.combine=e,this.compareInput=r,this.compare=i,this.isStatic=n,this.id=Nu++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new t(e.combine||(r=>r),e.compareInput||((r,i)=>r===i),e.compare||(e.combine?(r,i)=>r===i:Xu),!!e.static,e.enables)}of(e){return new wn([],this,0,e)}compute(e,r){if(this.isStatic)throw new Error("Can't compute a static facet");return new wn(e,this,1,r)}computeN(e,r){if(this.isStatic)throw new Error("Can't compute a static facet");return new wn(e,this,2,r)}from(e,r){return r||(r=i=>i),this.compute([e],i=>r(i.field(e)))}};wn=class{constructor(e,r,i,n){this.dependencies=e,this.facet=r,this.type=i,this.value=n,this.id=Nu++}dynamicSlot(e){var r;let i=this.value,n=this.facet.compareInput,s=this.id,o=e[s]>>1,a=this.type==2,l=!1,h=!1,c=[];for(let u of this.dependencies)u=="doc"?l=!0:u=="selection"?h=!0:1&((r=e[u.id])!==null&&r!==void 0?r:1)||c.push(e[u.id]);return{create:u=>(u.values[o]=i(u),1),update(u,f){if(l&&f.docChanged||h&&(f.docChanged||f.selection)||uc(u,c)){let p=i(u);if(a?!Id(p,u.values[o],n):!n(p,u.values[o]))return u.values[o]=p,1}return 0},reconfigure:(u,f)=>{let p,d=f.config.address[s];if(d!=null){let y=xa(f,d);if(this.dependencies.every(b=>b instanceof U?f.facet(b)===u.facet(b):!(b instanceof Mt)||f.field(b,!1)==u.field(b,!1))||(a?Id(p=i(u),y,n):n(p=i(u),y)))return u.values[o]=y,0}else p=i(u);return u.values[o]=p,1}}}};zo=U.define({static:!0}),Mt=class t{constructor(e,r,i,n,s){this.id=e,this.createF=r,this.updateF=i,this.compareF=n,this.spec=s,this.provides=void 0}static define(e){let r=new t(Nu++,e.create,e.update,e.compare||((i,n)=>i===n),e);return e.provide&&(r.provides=e.provide(r)),r}create(e){let r=e.facet(zo).find(i=>i.field==this);return(r?.create||this.createF)(e)}slot(e){let r=e[this.id]>>1;return{create:i=>(i.values[r]=this.create(i),1),update:(i,n)=>{let s=i.values[r],o=this.updateF(s,n);return this.compareF(s,o)?0:(i.values[r]=o,1)},reconfigure:(i,n)=>{let s,o=i.facet(zo),a=n.facet(zo);return(s=o.find(l=>l.field==this))&&s!=a.find(l=>l.field==this)?(i.values[r]=s.create(i),1):n.config.address[this.id]!=null?(i.values[r]=n.field(this),0):(i.values[r]=this.create(i),1)}}}init(e){return[this,zo.of({field:this,create:e})]}get extension(){return this}},vx=4,wx=3,fc=2,kx=1;ii={highest:fs(0),high:fs(kx),default:fs(fc),low:fs(wx),lowest:fs(vx)},ya=class{constructor(e,r){this.inner=e,this.prec=r}},Xs=class t{of(e){return new Zs(this,e)}reconfigure(e){return t.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Zs=class{constructor(e,r){this.compartment=e,this.inner=r}},Sa=class t{constructor(e,r,i,n,s,o){for(this.base=e,this.compartments=r,this.dynamicSlots=i,this.address=n,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let r=this.address[e.id];return r==null?e.default:this.staticValues[r>>1]}static resolve(e,r,i){let n=[],s=Object.create(null),o=new Map;for(let f of(function(p,d,y){let b=[[],[],[],[],[]],S=new Map;function w(O,v){let T=S.get(O);if(T!=null){if(T<=v)return;let _=b[T].indexOf(O);_>-1&&b[T].splice(_,1),O instanceof Zs&&y.delete(O.compartment)}if(S.set(O,v),Array.isArray(O))for(let _ of O)w(_,v);else if(O instanceof Zs){if(y.has(O.compartment))throw new RangeError("Duplicate use of compartment in extensions");let _=d.get(O.compartment)||O.inner;y.set(O.compartment,_),w(_,v)}else if(O instanceof ya)w(O.inner,O.prec);else if(O instanceof Mt)b[v].push(O),O.provides&&w(O.provides,v);else if(O instanceof wn)b[v].push(O),O.facet.extensions&&w(O.facet.extensions,fc);else{let _=O.extension;if(!_)throw new Error(`Unrecognized extension value in extension set (${O}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);w(_,v)}}return w(p,fc),b.reduce((O,v)=>O.concat(v))})(e,r,o))f instanceof Mt?n.push(f):(s[f.facet.id]||(s[f.facet.id]=[])).push(f);let a=Object.create(null),l=[],h=[];for(let f of n)a[f.id]=h.length<<1,h.push(p=>f.slot(p));let c=i?.config.facets;for(let f in s){let p=s[f],d=p[0].facet,y=c&&c[f]||[];if(p.every(b=>b.type==0))if(a[d.id]=l.length<<1|1,Xu(y,p))l.push(i.facet(d));else{let b=d.combine(p.map(S=>S.value));l.push(i&&d.compare(b,i.facet(d))?i.facet(d):b)}else{for(let b of p)b.type==0?(a[b.id]=l.length<<1|1,l.push(b.value)):(a[b.id]=h.length<<1,h.push(S=>b.dynamicSlot(S)));a[d.id]=h.length<<1,h.push(b=>xx(b,d,p))}}let u=h.map(f=>f(a));return new t(e,o,u,a,l,s)}};Wg=U.define(),pc=U.define({combine:t=>t.some(e=>e),static:!0}),Gg=U.define({combine:t=>t.length?t[0]:void 0,static:!0}),Yg=U.define(),qg=U.define(),Hg=U.define(),Kg=U.define({combine:t=>!!t.length&&t[0]}),nr=class{constructor(e,r){this.type=e,this.value=r}static define(){return new va}},va=class{of(e){return new nr(this,e)}},wa=class{constructor(e){this.map=e}of(e){return new Pe(this,e)}},Pe=class t{constructor(e,r){this.type=e,this.value=r}map(e){let r=this.type.map(this.value,e);return r===void 0?void 0:r==this.value?this:new t(this.type,r)}is(e){return this.type==e}static define(e={}){return new wa(e.map||(r=>r))}static mapEffects(e,r){if(!e.length)return e;let i=[];for(let n of e){let s=n.map(r);s&&i.push(s)}return i}};Pe.reconfigure=Pe.define(),Pe.appendConfig=Pe.define();nt=class t{constructor(e,r,i,n,s,o){this.startState=e,this.changes=r,this.selection=i,this.effects=n,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Ug(i,r.newLength),s.some(a=>a.type==t.time)||(this.annotations=s.concat(t.time.of(Date.now())))}static create(e,r,i,n,s,o){return new t(e,r,i,n,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let r of this.annotations)if(r.type==e)return r.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let r=this.annotation(t.userEvent);return!(!r||!(r==e||r.length>e.length&&r.slice(0,e.length)==e&&r[e.length]=="."))}};nt.time=nr.define(),nt.userEvent=nr.define(),nt.addToHistory=nr.define(),nt.remote=nr.define();Px=[];dt=(function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t})(dt||(dt={})),Cx=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{dc=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}Ye=class t{constructor(e,r,i,n,s,o){this.config=e,this.doc=r,this.selection=i,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)As(this,a<<1);this.computeSlot=null}field(e,r=!0){let i=this.config.address[e.id];if(i!=null)return As(this,i),xa(this,i);if(r)throw new RangeError("Field is not present in this state")}update(...e){return Jg(this,e,!0)}applyTransaction(e){let r,i=this.config,{base:n,compartments:s}=i;for(let a of e.effects)a.is(Xs.reconfigure)?(i&&(s=new Map,i.compartments.forEach((l,h)=>s.set(h,l)),i=null),s.set(a.value.compartment,a.value.extension)):a.is(Pe.reconfigure)?(i=null,n=a.value):a.is(Pe.appendConfig)&&(i=null,n=kn(n).concat(a.value));i?r=e.startState.values.slice():(i=Sa.resolve(n,s,this),r=new t(i,this.doc,this.selection,i.dynamicSlots.map(()=>null),(a,l)=>l.reconfigure(a,this),null).values);let o=e.startState.facet(pc)?e.newSelection:e.newSelection.asSingle();new t(i,e.newDoc,o,r,(a,l)=>l.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:e},range:V.cursor(r.from+e.length)}))}changeByRange(e){let r=this.selection,i=e(r.ranges[0]),n=this.changes(i.changes),s=[i.range],o=kn(i.effects);for(let a=1;a<r.ranges.length;a++){let l=e(r.ranges[a]),h=this.changes(l.changes),c=h.map(n);for(let f=0;f<a;f++)s[f]=s[f].map(c);let u=n.mapDesc(h,!0);s.push(l.range.map(u)),n=n.compose(c),o=Pe.mapEffects(o,c).concat(Pe.mapEffects(kn(l.effects),u))}return{changes:n,selection:V.create(s,r.mainIndex),effects:o}}changes(e=[]){return e instanceof Dt?e:Dt.of(e,this.doc.length,this.facet(t.lineSeparator))}toText(e){return Te.of(e.split(this.facet(t.lineSeparator)||lc))}sliceDoc(e=0,r=this.doc.length){return this.doc.sliceString(e,r,this.lineBreak)}facet(e){let r=this.config.address[e.id];return r==null?e.default:(As(this,r),xa(this,r))}toJSON(e){let r={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let n=e[i];n instanceof Mt&&this.config.address[n.id]!=null&&(r[i]=n.spec.toJSON(this.field(e[i]),this))}return r}static fromJSON(e,r={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(i){for(let s in i)if(Object.prototype.hasOwnProperty.call(e,s)){let o=i[s],a=e[s];n.push(o.init(l=>o.spec.fromJSON(a,l)))}}return t.create({doc:e.doc,selection:V.fromJSON(e.selection),extensions:r.extensions?n.concat([r.extensions]):n})}static create(e={}){let r=Sa.resolve(e.extensions||[],new Map),i=e.doc instanceof Te?e.doc:Te.of((e.doc||"").split(r.staticFacet(t.lineSeparator)||lc)),n=e.selection?e.selection instanceof V?e.selection:V.single(e.selection.anchor,e.selection.head):V.single(0);return Ug(n,i.length),r.staticFacet(pc)||(n=n.asSingle()),new t(r,i,n,r.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(t.tabSize)}get lineBreak(){return this.facet(t.lineSeparator)||`
7
+ `}get readOnly(){return this.facet(Kg)}phrase(e,...r){for(let i of this.facet(t.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return r.length&&(e=e.replace(/\$(\$|\d*)/g,(i,n)=>{if(n=="$")return"$";let s=+(n||1);return!s||s>r.length?i:r[s-1]})),e}languageDataAt(e,r,i=-1){let n=[];for(let s of this.facet(Wg))for(let o of s(this,r,i))Object.prototype.hasOwnProperty.call(o,e)&&n.push(o[e]);return n}charCategorizer(e){return Ax(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:r,from:i,length:n}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-i,a=e-i;for(;o>0;){let l=_t(r,o,!1);if(s(r.slice(l,o))!=dt.Word)break;o=l}for(;a<n;){let l=_t(r,a);if(s(r.slice(a,l))!=dt.Word)break;a=l}return o==a?null:V.range(o+i,a+i)}};Ye.allowMultipleSelections=pc,Ye.tabSize=U.define({combine:t=>t.length?t[0]:4}),Ye.lineSeparator=Gg,Ye.readOnly=Kg,Ye.phrases=U.define({compare(t,e){let r=Object.keys(t),i=Object.keys(e);return r.length==i.length&&r.every(n=>t[n]==e[n])}}),Ye.languageData=Wg,Ye.changeFilter=Yg,Ye.transactionFilter=qg,Ye.transactionExtender=Hg,Xs.reconfigure=Pe.define();qr=class{eq(e){return this==e}range(e,r=e){return En.create(e,r,this)}};qr.prototype.startSide=qr.prototype.endSide=0,qr.prototype.point=!1,qr.prototype.mapMode=lt.TrackDel;En=class t{constructor(e,r,i){this.from=e,this.to=r,this.value=i}static create(e,r,i){return new t(e,r,i)}};mc=class t{constructor(e,r,i,n){this.from=e,this.to=r,this.value=i,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,r,i,n=0){let s=i?this.to:this.from;for(let o=n,a=s.length;;){if(o==a)return o;let l=o+a>>1,h=s[l]-e||(i?this.value[l].endSide:this.value[l].startSide)-r;if(l==o)return h>=0?o:a;h>=0?a=l:o=l+1}}between(e,r,i,n){for(let s=this.findIndex(r,-1e9,!0),o=this.findIndex(i,1e9,!1,s);s<o;s++)if(n(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,r){let i=[],n=[],s=[],o=-1,a=-1;for(let l=0;l<this.value.length;l++){let h,c,u=this.value[l],f=this.from[l]+e,p=this.to[l]+e;if(f==p){let d=r.mapPos(f,u.startSide,u.mapMode);if(d==null||(h=c=d,u.startSide!=u.endSide&&(c=r.mapPos(f,u.endSide),c<h)))continue}else if(h=r.mapPos(f,u.startSide),c=r.mapPos(p,u.endSide),h>c||h==c&&u.startSide>0&&u.endSide<=0)continue;(c-h||u.endSide-u.startSide)<0||(o<0&&(o=h),u.point&&(a=Math.max(a,c-h)),i.push(u),n.push(h-o),s.push(c-o))}return{mapped:i.length?new t(n,s,i,a):null,pos:o}}},Be=class t{constructor(e,r,i,n){this.chunkPos=e,this.chunk=r,this.nextLayer=i,this.maxPoint=n}static create(e,r,i,n){return new t(e,r,i,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let r of this.chunk)e+=r.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:r=[],sort:i=!1,filterFrom:n=0,filterTo:s=this.length}=e,o=e.filter;if(r.length==0&&!o)return this;if(i&&(r=r.slice().sort(wh)),this.isEmpty)return r.length?t.of(r):this;let a=new ka(this,null,-1).goto(0),l=0,h=[],c=new qi;for(;a.value||l<r.length;)if(l<r.length&&(a.from-r[l].from||a.startSide-r[l].value.startSide)>=0){let u=r[l++];c.addInner(u.from,u.to,u.value)||h.push(u)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(l==r.length||this.chunkEnd(a.chunkIndex)<r[l].from)&&(!o||n>this.chunkEnd(a.chunkIndex)||s<this.chunkPos[a.chunkIndex])&&c.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||n>a.to||s<a.from||o(a.from,a.to,a.value))&&(c.addInner(a.from,a.to,a.value)||h.push(En.create(a.from,a.to,a.value))),a.next());return c.finishInner(this.nextLayer.isEmpty&&!h.length?t.empty:this.nextLayer.update({add:h,filter:o,filterFrom:n,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let r=[],i=[],n=-1;for(let o=0;o<this.chunk.length;o++){let a=this.chunkPos[o],l=this.chunk[o],h=e.touchesRange(a,a+l.length);if(h===!1)n=Math.max(n,l.maxPoint),r.push(l),i.push(e.mapPos(a));else if(h===!0){let{mapped:c,pos:u}=l.map(a,e);c&&(n=Math.max(n,c.maxPoint),r.push(c),i.push(u))}}let s=this.nextLayer.map(e);return r.length==0?s:new t(i,r,s||t.empty,n)}between(e,r,i){if(!this.isEmpty){for(let n=0;n<this.chunk.length;n++){let s=this.chunkPos[n],o=this.chunk[n];if(r>=s&&e<=s+o.length&&o.between(s,e-s,r-s,i)===!1)return}this.nextLayer.between(e,r,i)}}iter(e=0){return Fs.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,r=0){return Fs.from(e).goto(r)}static compare(e,r,i,n,s=-1){let o=e.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=s),a=r.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=s),l=Md(o,a,i),h=new Fi(o,l,s),c=new Fi(a,l,s);i.iterGaps((u,f,p)=>Nd(h,u,c,f,p,n)),i.empty&&i.length==0&&Nd(h,0,c,0,0,n)}static eq(e,r,i=0,n){n==null&&(n=999999999);let s=e.filter(c=>!c.isEmpty&&r.indexOf(c)<0),o=r.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(s.length!=o.length)return!1;if(!s.length)return!0;let a=Md(s,o),l=new Fi(s,a,0).goto(i),h=new Fi(o,a,0).goto(i);for(;;){if(l.to!=h.to||!gc(l.active,h.active)||l.point&&(!h.point||!l.point.eq(h.point)))return!1;if(l.to>n)return!0;l.next(),h.next()}}static spans(e,r,i,n,s=-1){let o=new Fi(e,null,s).goto(r),a=r,l=o.openStart;for(;;){let h=Math.min(o.to,i);if(o.point){let c=o.activeForPoint(o.to),u=o.pointFrom<r?c.length+1:o.point.startSide<0?c.length:Math.min(c.length,l);n.point(a,h,o.point,c,u,o.pointRank),l=Math.min(o.openEnd(h),c.length)}else h>a&&(n.span(a,h,o.active,l),l=o.openEnd(h));if(o.to>i)return l+(o.point&&o.to>i?1:0);a=o.to,o.next()}}static of(e,r=!1){let i=new qi;for(let n of e instanceof En?[e]:r?(function(s){if(s.length>1)for(let o=s[0],a=1;a<s.length;a++){let l=s[a];if(wh(o,l)>0)return s.slice().sort(wh);o=l}return s})(e):e)i.add(n.from,n.to,n.value);return i.finish()}static join(e){if(!e.length)return t.empty;let r=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let n=e[i];n!=t.empty;n=n.nextLayer)r=new t(n.chunkPos,n.chunk,r,Math.max(n.maxPoint,r.maxPoint));return r}};Be.empty=new Be([],[],null,-1),Be.empty.nextLayer=Be.empty;qi=class t{finishChunk(e){this.chunks.push(new mc(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,r,i){this.addInner(e,r,i)||(this.nextLayer||(this.nextLayer=new t)).add(e,r,i)}addInner(e,r,i){let n=e-this.lastTo||i.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(n<0)&&(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(r-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=r,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,r-e)),!0)}addChunk(e,r){if((e-this.lastTo||r.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,r.maxPoint),this.chunks.push(r),this.chunkPos.push(e);let i=r.value.length-1;return this.last=r.value[i],this.lastFrom=r.from[i]+e,this.lastTo=r.to[i]+e,!0}finish(){return this.finishInner(Be.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let r=Be.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,r}};ka=class{constructor(e,r,i,n=0){this.layer=e,this.skip=r,this.minPoint=i,this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,r=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,r,!1),this}gotoInner(e,r,i){for(;this.chunkIndex<this.layer.chunk.length;){let n=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(n)||this.layer.chunkEnd(this.chunkIndex)<e||n.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],r,!0);(!i||this.rangeIndex<n)&&this.setRangeIndex(n)}this.next()}forward(e,r){(this.to-e||this.endSide-r)<0&&this.gotoInner(e,r,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],r=this.layer.chunk[this.chunkIndex],i=e+r.from[this.rangeIndex];if(this.from=i,this.to=e+r.to[this.rangeIndex],this.value=r.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}},Fs=class t{constructor(e){this.heap=e}static from(e,r=null,i=-1){let n=[];for(let s=0;s<e.length;s++)for(let o=e[s];!o.isEmpty;o=o.nextLayer)o.maxPoint>=i&&n.push(new ka(o,r,i,s));return n.length==1?n[0]:new t(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,r=-1e9){for(let i of this.heap)i.goto(e,r);for(let i=this.heap.length>>1;i>=0;i--)kh(this.heap,i);return this.next(),this}forward(e,r){for(let i of this.heap)i.forward(e,r);for(let i=this.heap.length>>1;i>=0;i--)kh(this.heap,i);(this.to-e||this.value.endSide-r)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),kh(this.heap,0)}}};Fi=class{constructor(e,r,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Fs.from(e,r,i)}goto(e,r=-1e9){return this.cursor.goto(e,r),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=r,this.openStart=-1,this.next(),this}forward(e,r){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-r)<0;)this.removeActive(this.minActive);this.cursor.forward(e,r)}removeActive(e){Vo(this.active,e),Vo(this.activeTo,e),Vo(this.activeRank,e),this.minActive=Xd(this.active,this.activeTo)}addActive(e){let r=0,{value:i,to:n,rank:s}=this.cursor;for(;r<this.activeRank.length&&(s-this.activeRank[r]||n-this.activeTo[r])>0;)r++;Bo(this.active,r,i),Bo(this.activeTo,r,n),Bo(this.activeRank,r,s),e&&Bo(e,r,this.cursor.from),this.minActive=Xd(this.active,this.activeTo)}next(){let e=this.to,r=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),i&&Vo(i,n)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let s=this.cursor.value;if(s.point){if(!(r&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(i),this.cursor.next()}}}if(i){this.openStart=0;for(let n=i.length-1;n>=0&&i[n]<e;n--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let r=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&r.push(this.active[i]);return r.reverse()}openEnd(e){let r=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)r++;return r}};Zd=typeof Symbol>"u"?"__\u037C":Symbol.for("\u037C"),Oc=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Fd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},ei=class{constructor(e,r){this.rules=[];let{finish:i}=r||{};function n(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function s(o,a,l,h){let c=[],u=/^@(\w+)\b/.exec(o[0]),f=u&&u[1]=="keyframes";if(u&&a==null)return l.push(o[0]+";");for(let p in a){let d=a[p];if(/&/.test(p))s(p.split(/,\s*/).map(y=>o.map(b=>y.replace(/&/,b))).reduce((y,b)=>y.concat(b)),d,l);else if(d&&typeof d=="object"){if(!u)throw new RangeError("The value of a property ("+p+") should be a primitive value.");s(n(p),d,c,f)}else d!=null&&c.push(p.replace(/_.*/,"").replace(/[A-Z]/g,y=>"-"+y.toLowerCase())+": "+d+";")}(c.length||f)&&l.push((!i||u||h?o:o.map(i)).join(", ")+" {"+c.join(" ")+"}")}for(let o in e)s(n(o),e[o],this.rules)}getRules(){return this.rules.join(`
8
+ `)}static newName(){let e=Fd[Zd]||1;return Fd[Zd]=e+1,"\u037C"+e.toString(36)}static mount(e,r,i){let n=e[Oc],s=i&&i.nonce;n?s&&n.setNonce(s):n=new bc(e,s),n.mount(Array.isArray(r)?r:[r])}},zd=new Map,bc=class{constructor(e,r){let i=e.ownerDocument||e,n=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let s=zd.get(i);if(s)return e.adoptedStyleSheets=[s.sheet,...e.adoptedStyleSheets],e[Oc]=s;this.sheet=new n.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],zd.set(i,this)}else{this.styleTag=i.createElement("style"),r&&this.styleTag.setAttribute("nonce",r);let s=e.head||e;s.insertBefore(this.styleTag,s.firstChild)}this.modules=[],e[Oc]=this}mount(e){let r=this.sheet,i=0,n=0;for(let s=0;s<e.length;s++){let o=e[s],a=this.modules.indexOf(o);if(a<n&&a>-1&&(this.modules.splice(a,1),n--,a=-1),a==-1){if(this.modules.splice(n++,0,o),r)for(let l=0;l<o.rules.length;l++)r.insertRule(o.rules[l],i++)}else{for(;n<a;)i+=this.modules[n++].rules.length;i+=o.rules.length,n++}}if(!r){let s="";for(let o=0;o<this.modules.length;o++)s+=this.modules[o].getRules()+`
9
+ `;this.styleTag.textContent=s}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}};for(Jr={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Qn={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},eO=typeof navigator<"u"&&/Mac/.test(navigator.platform),tO=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),it=0;it<10;it++)Jr[48+it]=Jr[96+it]=String(it);for(it=1;it<=24;it++)Jr[it+111]="F"+it;for(it=65;it<=90;it++)Jr[it]=String.fromCharCode(it+32),Qn[it]=String.fromCharCode(it);for(jo in Jr)Qn.hasOwnProperty(jo)||(Qn[jo]=Jr[jo]);Sc=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:r,focusNode:i}=e;this.set(r,Math.min(e.anchorOffset,r?ti(r):0),i,Math.min(e.focusOffset,i?ti(i):0))}set(e,r,i,n){this.anchorNode=e,this.anchorOffset=r,this.focusNode=i,this.focusOffset=n}},yn=null;xt=class t{constructor(e,r,i=!0){this.node=e,this.offset=r,this.precise=i}static before(e,r){return new t(e.parentNode,Vs(e),r)}static after(e,r){return new t(e.parentNode,Vs(e)+1,r)}},zu=[],Ve=class t{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let r=this.posAtStart;for(let i of this.children){if(i==e)return r;r+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,r){if(2&this.flags){let i,n=this.dom,s=null;for(let o of this.children){if(7&o.flags){if(!o.dom&&(i=s?s.nextSibling:n.firstChild)){let a=t.get(i);(!a||!a.parent&&a.canReuseDOM(o))&&o.reuseDOM(i)}o.sync(e,r),o.flags&=-8}if(i=s?s.nextSibling:n.firstChild,r&&!r.written&&r.node==n&&i!=o.dom&&(r.written=!0),o.dom.parentNode==n)for(;i&&i!=o.dom;)i=jd(i);else n.insertBefore(o.dom,i);s=o.dom}for(i=s?s.nextSibling:n.firstChild,i&&r&&r.node==n&&(r.written=!0);i;)i=jd(i)}else if(1&this.flags)for(let i of this.children)7&i.flags&&(i.sync(e,r),i.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,r){let i;if(e==this.dom)i=this.dom.childNodes[r];else{let n=ti(e)==0?0:r==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;n==0&&s.firstChild!=s.lastChild&&(n=e==s.firstChild?-1:1),e=s}i=n<0?e:e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(let n=0,s=0;;n++){let o=this.children[n];if(o.dom==i)return s;s+=o.length+o.breakAfter}}domBoundsAround(e,r,i=0){let n=-1,s=-1,o=-1,a=-1;for(let l=0,h=i,c=i;l<this.children.length;l++){let u=this.children[l],f=h+u.length;if(h<e&&f>r)return u.domBoundsAround(e,r,h);if(f>=e&&n==-1&&(n=l,s=h),h>r&&u.dom.parentNode==this.dom){o=l,a=c;break}c=f,h=f+u.breakAfter}return{from:s,to:a<0?i+this.length:a,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let r=this.parent;r;r=r.parent){if(e&&(r.flags|=2),1&r.flags)return;r.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let r=e.parent;if(!r)return e;e=r}}replaceChildren(e,r,i=zu){this.markDirty();for(let n=e;n<r;n++){let s=this.children[n];s.parent==this&&i.indexOf(s)<0&&s.destroy()}this.children.splice(e,r-e,...i);for(let n=0;n<i.length;n++)i[n].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Pa(this.children,e,this.children.length)}childPos(e,r=1){return this.childCursor().findPos(e,r)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,r,i,n,s,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}};Ve.prototype.breakAfter=0;Pa=class{constructor(e,r,i){this.children=e,this.pos=r,this.i=i,this.off=0}findPos(e,r=1){for(;;){if(e>this.pos||e==this.pos&&(r>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}};Vt=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},xc=typeof document<"u"?document:{documentElement:{style:{}}},vc=/Edge\/(\d+)/.exec(Vt.userAgent),lO=/MSIE \d/.test(Vt.userAgent),wc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Vt.userAgent),Ya=!!(lO||wc||vc),Ud=!Ya&&/gecko\/(\d+)/i.test(Vt.userAgent),Th=!Ya&&/Chrome\/(\d+)/.exec(Vt.userAgent),Qx="webkitFontSmoothing"in xc.documentElement.style,hO=!Ya&&/Apple Computer/.test(Vt.vendor),Wd=hO&&(/Mobile\/\w+/.test(Vt.userAgent)||Vt.maxTouchPoints>2),Y={mac:Wd||/Mac/.test(Vt.platform),windows:/Win/.test(Vt.platform),linux:/Linux|X11/.test(Vt.platform),ie:Ya,ie_version:lO?xc.documentMode||6:wc?+wc[1]:vc?+vc[1]:0,gecko:Ud,gecko_version:Ud?+(/Firefox\/(\d+)/.exec(Vt.userAgent)||[0,0])[1]:0,chrome:!!Th,chrome_version:Th?+Th[1]:0,ios:Wd,android:/Android\b/.test(Vt.userAgent),safari:hO,webkit_version:Qx?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:xc.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"},Ci=class t extends Ve{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,r,i){return!(8&this.flags||i&&(!(i instanceof t)||this.length-(r-e)+i.length>256||8&i.flags))&&(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(r),this.markDirty(),!0)}split(e){let r=new t(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),r.flags|=8&this.flags,r}localPosFromDOM(e,r){return e==this.dom?r:r?this.text.length:0}domAtPos(e){return new xt(this.dom,e)}domBoundsAround(e,r,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,r){return(function(i,n,s){let o=i.nodeValue.length;n>o&&(n=o);let a=n,l=n,h=0;n==0&&s<0||n==o&&s>=0?Y.chrome||Y.gecko||(n?(a--,h=1):l<o&&(l++,h=-1)):s<0?a--:l<o&&l++;let c=Hi(i,a,l).getClientRects();if(!c.length)return null;let u=c[(h?h<0:s>=0)?0:c.length-1];return Y.safari&&!h&&u.width==0&&(u=Array.prototype.find.call(c,f=>f.width)||u),h?Fu(u,h<0):u||null})(this.dom,e,r)}},Ai=class t extends Ve{constructor(e,r=[],i=0){super(),this.mark=e,this.children=r,this.length=i;for(let n of r)n.setParent(this)}setAttrs(e){if(nO(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let r in this.mark.attrs)e.setAttribute(r,this.mark.attrs[r]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,r){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,r)}merge(e,r,i,n,s,o){return(!i||!(!(i instanceof t&&i.mark.eq(this.mark))||e&&s<=0||r<this.length&&o<=0))&&(aO(this,e,r,i?i.children.slice():[],s-1,o-1),this.markDirty(),!0)}split(e){let r=[],i=0,n=-1,s=0;for(let a of this.children){let l=i+a.length;l>e&&r.push(i<e?a.split(e-i):a),n<0&&i>=e&&(n=s),i=l,s++}let o=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new t(this.mark,r,o)}domAtPos(e){return cO(this,e)}coordsAt(e,r){return fO(this,e,r)}},Ca=class t extends Ve{static create(e,r,i){return new t(e,r,i)}constructor(e,r,i){super(),this.widget=e,this.length=r,this.side=i,this.prevWidget=null}split(e){let r=t.create(this.widget,this.length-e,this.side);return this.length-=e,r}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,r,i,n,s,o){return!(i&&(!(i instanceof t&&this.widget.compare(i.widget))||e>0&&s<=0||r<this.length&&o<=0))&&(this.length=e+(i?i.length:0)+(this.length-r),!0)}become(e){return e instanceof t&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return Te.empty;let e=this;for(;e.parent;)e=e.parent;let{view:r}=e,i=r&&r.state.doc,n=this.posAtStart;return i?i.slice(n,n+this.length):Te.empty}domAtPos(e){return(this.length?e==0:this.side>0)?xt.before(this.dom):xt.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,r){let i=this.widget.coordsAt(this.dom,e,r);if(i)return i;let n=this.dom.getClientRects(),s=null;if(!n.length)return null;let o=this.side?this.side<0:e>0;for(let a=o?n.length-1:0;s=n[a],!(e>0?a==0:a==n.length-1||s.top<s.bottom);a+=o?-1:1);return Fu(s,!o)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}},Bs=class t extends Ve{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof t&&e.side==this.side}split(){return new t(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?xt.before(this.dom):xt.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Te.empty}get isHidden(){return!0}};Ci.prototype.children=Ca.prototype.children=Bs.prototype.children=zu;Gd=Object.create(null);at=class t extends Ve{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,r,i,n,s,o){if(i){if(!(i instanceof t))return!1;this.dom||i.transferDOM(this)}return n&&this.setDeco(i?i.attrs:null),aO(this,e,r,i?i.children.slice():[],s,o),!0}split(e){let r=new t;if(r.breakAfter=this.breakAfter,this.length==0)return r;let{i,off:n}=this.childPos(e);n&&(r.append(this.children[i].split(n),0),this.children[i].merge(n,this.children[i].length,null,!1,0,0),i++);for(let s=i;s<this.children.length;s++)r.append(this.children[s],0);for(;i>0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,r}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Vu(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,r){uO(this,e,r)}addLineDeco(e){let r=e.spec.attributes,i=e.spec.class;r&&(this.attrs=kc(r,this.attrs||{})),i&&(this.attrs=kc({class:i},this.attrs||{}))}domAtPos(e){return cO(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,r){var i;this.dom?4&this.flags&&(nO(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Tc(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,r);let n=this.dom.lastChild;for(;n&&Ve.get(n)instanceof Ai;)n=n.lastChild;if(!(n&&this.length&&(n.nodeName=="BR"||((i=Ve.get(n))===null||i===void 0?void 0:i.isEditable)!=0||Y.ios&&this.children.some(s=>s instanceof Ci)))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e,r=0;for(let i of this.children){if(!(i instanceof Ci)||/[^ -~]/.test(i.text))return null;let n=zs(i.dom);if(n.length!=1)return null;r+=n[0].width,e=n[0].height}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length,textHeight:e}:null}coordsAt(e,r){let i=fO(this,e,r);if(!this.children.length&&i&&this.parent){let{heightOracle:n}=this.parent.view.viewState,s=i.bottom-i.top;if(Math.abs(s-n.lineHeight)<2&&n.textHeight<s){let o=(s-n.textHeight)/2;return{top:i.top+o,bottom:i.bottom-o,left:i.left,right:i.left}}}return i}become(e){return!1}covers(){return!0}static find(e,r){for(let i=0,n=0;i<e.children.length;i++){let s=e.children[i],o=n+s.length;if(o>=r){if(s instanceof t)return s;if(o>r)break}n=o+s.breakAfter}return null}},Pn=class t extends Ve{constructor(e,r,i){super(),this.widget=e,this.length=r,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,r,i,n,s,o){return!(i&&(!(i instanceof t&&this.widget.compare(i.widget))||e>0&&s<=0||r<this.length&&o<=0))&&(this.length=e+(i?i.length:0)+(this.length-r),!0)}domAtPos(e){return e==0?xt.before(this.dom):xt.after(this.dom,e==this.length)}split(e){let r=this.length-e;this.length=e;let i=new t(this.widget,r,this.deco);return i.breakAfter=this.breakAfter,i}get children(){return zu}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Te.empty}domBoundsAround(){return null}become(e){return e instanceof t&&e.widget.constructor==this.widget.constructor&&(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,r){return this.widget.coordsAt(this.dom,e,r)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:r,endSide:i}=this.deco;return r!=i&&(e<0?r<0:i>0)}},ri=class{eq(e){return!1}updateDOM(e,r){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,r,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},vt=(function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t})(vt||(vt={})),ce=class extends qr{constructor(e,r,i,n){super(),this.startSide=e,this.endSide=r,this.widget=i,this.spec=n}get heightRelevant(){return!1}static mark(e){return new js(e)}static widget(e){let r=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return r+=i&&!e.inlineOrder?r>0?3e8:-4e8:r>0?1e8:-1e8,new Ei(e,r,r,i,e.widget||null,!1)}static replace(e){let r,i,n=!!e.block;if(e.isBlockGap)r=-5e8,i=4e8;else{let{start:s,end:o}=pO(e,n);r=(s?n?-3e8:-1:5e8)-1,i=1+(o?n?2e8:1:-6e8)}return new Ei(e,r,i,n,e.widget||null,!0)}static line(e){return new Us(e)}static set(e,r=!1){return Be.of(e,r)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}};ce.none=Be.empty;js=class t extends ce{constructor(e){let{start:r,end:i}=pO(e);super(r?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var r,i;return this==e||e instanceof t&&this.tagName==e.tagName&&(this.class||((r=this.attrs)===null||r===void 0?void 0:r.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&Vu(this.attrs,e.attrs,"class")}range(e,r=e){if(e>=r)throw new RangeError("Mark decorations may not be empty");return super.range(e,r)}};js.prototype.point=!1;Us=class t extends ce{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof t&&this.spec.class==e.spec.class&&Vu(this.spec.attributes,e.spec.attributes)}range(e,r=e){if(r!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,r)}};Us.prototype.mapMode=lt.TrackBefore,Us.prototype.point=!0;Ei=class t extends ce{constructor(e,r,i,n,s,o){super(r,i,s,e),this.block=n,this.isReplace=o,this.mapMode=n?r<=0?lt.TrackBefore:lt.TrackAfter:lt.TrackDel}get type(){return this.startSide!=this.endSide?vt.WidgetRange:this.startSide<=0?vt.WidgetBefore:vt.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof t&&(r=this.widget,i=e.widget,r==i||!!(r&&i&&r.compare(i)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var r,i}range(e,r=e){if(this.isReplace&&(e>r||e==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,r)}};Ei.prototype.point=!0;Qs=class t{constructor(e,r,i,n){this.doc=e,this.pos=r,this.end=i,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=r}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Pn&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new at),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Uo(new Bs(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof Pn||this.getLine()}buildText(e,r,i){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=s,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(r.slice(r.length-i)),this.getLine().append(Uo(new Ci(this.text.slice(this.textOff,this.textOff+n)),r),i),this.atCursorPos=!0,this.textOff+=n,e-=n,i=0}}span(e,r,i,n){this.buildText(r-e,i,n),this.pos=r,this.openStart<0&&(this.openStart=n)}point(e,r,i,n,s,o){if(this.disallowBlockEffectsFor[o]&&i instanceof Ei){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(r>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=r-e;if(i instanceof Ei)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Pn(i.widget||new Aa("div"),a,i));else{let l=Ca.create(i.widget||new Aa("span"),a,a?0:i.startSide),h=this.atCursorPos&&!l.isEditable&&s<=n.length&&(e<r||i.startSide>0),c=!l.isEditable&&(e<r||s>n.length||i.startSide<=0),u=this.getLine();this.pendingBuffer!=2||h||l.isEditable||(this.pendingBuffer=0),this.flushBuffer(n),h&&(u.append(Uo(new Bs(1),n),s),s=n.length+Math.max(0,s-n.length)),u.append(Uo(l,n),s),this.atCursorPos=c,this.pendingBuffer=c?e<r||s>n.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=r),this.openStart<0&&(this.openStart=s)}static build(e,r,i,n,s){let o=new t(e,r,i,s);return o.openEnd=Be.spans(n,r,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}};Aa=class extends ri{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}},_e=(function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t})(_e||(_e={})),Ki=_e.LTR,Bu=_e.RTL;$x=dO("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Lx=dO("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Cc=Object.create(null),Cr=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),r=t.charCodeAt(1);Cc[e]=r,Cc[r]=-e}_x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,_r=class{get dir(){return this.level%2?Bu:Ki}constructor(e,r,i){this.from=e,this.to=r,this.level=i}side(e,r){return this.dir==r==e?this.to:this.from}forward(e,r){return e==(this.dir==r)}static find(e,r,i,n){let s=-1;for(let o=0;o<e.length;o++){let a=e[o];if(a.from<=r&&a.to>=r){if(a.level==i)return o;(s<0||(n!=0?n<0?a.from<r:a.to>r:e[s].level>a.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}};$e=[];OO="";bO=U.define(),yO=U.define(),SO=U.define(),xO=U.define(),Qc=U.define(),vO=U.define(),wO=U.define(),kO=U.define({combine:t=>t.some(e=>e)}),Mx=U.define({combine:t=>t.some(e=>e)}),Rs=class t{constructor(e,r="nearest",i="nearest",n=5,s=5,o=!1){this.range=e,this.y=r,this.x=i,this.yMargin=n,this.xMargin=s,this.isSnapshot=o}map(e){return e.empty?this:new t(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new t(V.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},Wo=Pe.define({map:(t,e)=>t.map(e)});qa=U.define({combine:t=>!t.length||t[0]}),Nx=0,ys=U.define(),wt=class t{constructor(e,r,i,n,s){this.id=e,this.create=r,this.domEventHandlers=i,this.domEventObservers=n,this.extension=s(this)}static define(e,r){let{eventHandlers:i,eventObservers:n,provide:s,decorations:o}=r||{};return new t(Nx++,e,i,n,a=>{let l=[ys.of(a)];return o&&l.push(Ws.of(h=>{let c=h.plugin(a);return c?o(c):ce.none})),s&&l.push(s(a)),l})}static fromClass(e,r){return t.define(i=>new e(i),r)}},$s=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let r=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(r)}catch(i){if(gr(r.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(r){gr(e.state,r,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var r;if(!((r=this.value)===null||r===void 0)&&r.destroy)try{this.value.destroy()}catch(i){gr(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},TO=U.define(),ju=U.define(),Ws=U.define(),PO=U.define(),Uu=U.define(),CO=U.define();AO=U.define();Ss=U.define(),Ir=class t{constructor(e,r,i,n){this.fromA=e,this.toA=r,this.fromB=i,this.toB=n}join(e){return new t(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let r=e.length,i=this;for(;r>0;r--){let n=e[r-1];if(!(n.fromA>i.toA)){if(n.toA<i.fromA)break;i=i.join(n),e.splice(r-1,1)}}return e.splice(r,0,i),e}static extendWithRanges(e,r){if(r.length==0)return e;let i=[];for(let n=0,s=0,o=0,a=0;;n++){let l=n==e.length?null:e[n],h=o-a,c=l?l.fromB:1e9;for(;s<r.length&&r[s]<c;){let u=r[s],f=r[s+1],p=Math.max(a,u),d=Math.min(c,f);if(p<=d&&new t(p+h,d+h,p,d).addToSet(i),f>c)break;s+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),o=l.toA,a=l.toB}}},Gs=class t{constructor(e,r,i){this.view=e,this.state=r,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=Dt.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let n=[];this.changes.iterChangedRanges((s,o,a,l)=>n.push(new Ir(s,o,a,l))),this.changedRanges=n}static create(e,r,i){return new t(e,r,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},Ea=class extends Ve{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new at],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Ir(0,0,0,e.state.doc.length)],0,null)}update(e){var r;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:a,toA:l})=>l<this.minWidthFrom||a>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let n=-1;this.view.inputState.composing>=0&&(!((r=this.domChanged)===null||r===void 0)&&r.newSel?n=this.domChanged.newSel.head:(function(a,l){let h=!1;return l&&a.iterChangedRanges((c,u)=>{c<l.to&&u>l.from&&(h=!0)}),h})(e.changes,this.hasComposition)||e.selectionSet||(n=e.state.selection.main.head));let s=n>-1?(function(a,l,h){let c=QO(a,h);if(!c)return null;let{node:u,from:f,to:p}=c,d=u.nodeValue;if(/[\n\r]/.test(d)||a.state.doc.sliceString(c.from,c.to)!=d)return null;let y=l.invertedDesc,b=new Ir(y.mapPos(f),y.mapPos(p),f,p),S=[];for(let w=u.parentNode;;w=w.parentNode){let O=Ve.get(w);if(O instanceof Ai)S.push({node:w,deco:O.mark});else{if(O instanceof at||w.nodeName=="DIV"&&w.parentNode==a.contentDOM)return{range:b,text:u,marks:S,line:w};if(w==a.contentDOM)return null;S.push({node:w,deco:new js({inclusive:!0,attributes:Rx(w),tagName:w.tagName.toLowerCase()})})}}})(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:a,to:l}=this.hasComposition;i=new Ir(a,l,e.changes.mapPos(a,-1),e.changes.mapPos(l,1)).addToSet(i.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(Y.ie||Y.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=(function(a,l,h){let c=new Xx;return Be.compare(a,l,h,c),c.changes})(this.decorations,this.updateDeco(),e.changes);return i=Ir.extendWithRanges(i,o),!!(7&this.flags||i.length!=0)&&(this.updateInner(i,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,r,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,r,i);let{observer:n}=this.view;n.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=Y.chrome||Y.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||n.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)o instanceof Pn&&o.widget instanceof Qa&&s.push(o.dom);n.updateGaps(s)}updateChildren(e,r,i){let n=i?i.range.addToSet(e.slice()):e,s=this.childCursor(r);for(let o=n.length-1;;o--){let a=o>=0?n[o]:null;if(!a)break;let l,h,c,u,{fromA:f,toA:p,fromB:d,toB:y}=a;if(i&&i.range.fromB<y&&i.range.toB>d){let v=Qs.build(this.view.state.doc,d,i.range.fromB,this.decorations,this.dynamicDecorationMap),T=Qs.build(this.view.state.doc,i.range.toB,y,this.decorations,this.dynamicDecorationMap);h=v.breakAtStart,c=v.openStart,u=T.openEnd;let _=this.compositionView(i);T.breakAtStart?_.breakAfter=1:T.content.length&&_.merge(_.length,_.length,T.content[0],!1,T.openStart,0)&&(_.breakAfter=T.content[0].breakAfter,T.content.shift()),v.content.length&&_.merge(0,0,v.content[v.content.length-1],!0,0,v.openEnd)&&v.content.pop(),l=v.content.concat(_).concat(T.content)}else({content:l,breakAtStart:h,openStart:c,openEnd:u}=Qs.build(this.view.state.doc,d,y,this.decorations,this.dynamicDecorationMap));let{i:b,off:S}=s.findPos(p,1),{i:w,off:O}=s.findPos(f,-1);oO(this,w,O,b,S,l,h,c,u)}i&&this.fixCompositionDOM(i)}compositionView(e){let r=new Ci(e.text.nodeValue);r.flags|=8;for(let{deco:n}of e.marks)r=new Ai(n,[r],r.length);let i=new at;return i.append(r,0),i}fixCompositionDOM(e){let r=(s,o)=>{o.flags|=8|(o.children.some(l=>7&l.flags)?1:0),this.markedForComposition.add(o);let a=Ve.get(s);a&&a!=o&&(a.dom=null),o.setDOM(s)},i=this.childPos(e.range.fromB,1),n=this.children[i.i];r(e.line,n);for(let s=e.marks.length-1;s>=-1;s--)i=n.childPos(i.off,1),n=n.children[i.i],r(s>=0?e.marks[s].node:e.text,n)}updateSelection(e=!1,r=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let i=this.view.root.activeElement,n=i==this.dom,s=!n&&oa(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(n||r||s))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),h=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(Y.gecko&&a.empty&&!this.hasComposition&&(c=l).node.nodeType==1&&c.node.firstChild&&(c.offset==0||c.node.childNodes[c.offset-1].contentEditable=="false")&&(c.offset==c.node.childNodes.length||c.node.childNodes[c.offset].contentEditable=="false")){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=h=new xt(f,0),o=!0}var c;let u=this.view.observer.selectionRange;!o&&u.focusNode&&(Es(l.node,l.offset,u.anchorNode,u.anchorOffset)&&Es(h.node,h.offset,u.focusNode,u.focusOffset)||this.suppressWidgetCursorChange(u,a))||(this.view.observer.ignore(()=>{Y.android&&Y.chrome&&this.dom.contains(u.focusNode)&&(function(y,b){for(let S=y;S&&S!=b;S=S.assignedSlot||S.parentNode)if(S.nodeType==1&&S.contentEditable=="false")return!0;return!1})(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=Ta(this.view.root);if(f)if(a.empty){if(Y.gecko){let y=(p=l.node,d=l.offset,p.nodeType!=1?0:(d&&p.childNodes[d-1].contentEditable=="false"?1:0)|(d<p.childNodes.length&&p.childNodes[d].contentEditable=="false"?2:0));if(y&&y!=3){let b=RO(l.node,l.offset,y==1?1:-1);b&&(l=new xt(b.node,b.offset))}}f.collapse(l.node,l.offset),a.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=a.bidiLevel)}else if(f.extend){f.collapse(l.node,l.offset);try{f.extend(h.node,h.offset)}catch{}}else{let y=document.createRange();a.anchor>a.head&&([l,h]=[h,l]),y.setEnd(h.node,h.offset),y.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(y)}var p,d;s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(l,h)),this.impreciseAnchor=l.precise?null:new xt(u.anchorNode,u.anchorOffset),this.impreciseHead=h.precise?null:new xt(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,r){return this.hasComposition&&r.empty&&Es(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==r.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,r=e.state.selection.main,i=Ta(e.root),{anchorNode:n,anchorOffset:s}=e.observer.selectionRange;if(!(i&&r.empty&&r.assoc&&i.modify))return;let o=at.find(this,r.head);if(!o)return;let a=o.posAtStart;if(r.head==a||r.head==a+o.length)return;let l=this.coordsAt(r.head,-1),h=this.coordsAt(r.head,1);if(!l||!h||l.bottom>h.top)return;let c=this.domAtPos(r.head+r.assoc);i.collapse(c.node,c.offset),i.modify("move",r.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=r.from&&i.collapse(n,s)}moveToLine(e){let r,i=this.dom;if(e.node!=i)return e;for(let n=e.offset;!r&&n<i.childNodes.length;n++){let s=Ve.get(i.childNodes[n]);s instanceof at&&(r=s.domAtPos(0))}for(let n=e.offset-1;!r&&n>=0;n--){let s=Ve.get(i.childNodes[n]);s instanceof at&&(r=s.domAtPos(s.length))}return r?new xt(r.node,r.offset,!0):e}nearest(e){for(let r=e;r;){let i=Ve.get(r);if(i&&i.rootView==this)return i;r=r.parentNode}return null}posFromDOM(e,r){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,r)+i.posAtStart}domAtPos(e){let{i:r,off:i}=this.childCursor().findPos(e,-1);for(;r<this.children.length-1;){let n=this.children[r];if(i<n.length||n instanceof at)break;r++,i=0}return this.children[r].domAtPos(i)}coordsAt(e,r){let i=null,n=0;for(let s=this.length,o=this.children.length-1;o>=0;o--){let a=this.children[o],l=s-a.breakAfter,h=l-a.length;if(l<e)break;h<=e&&(h<e||a.covers(-1))&&(l>e||a.covers(1))&&(!i||a instanceof at&&!(i instanceof at&&r>=0))&&(i=a,n=h),s=h}return i?i.coordsAt(e-n,r):null}coordsForChar(e){let{i:r,off:i}=this.childPos(e,1),n=this.children[r];if(!(n instanceof at))return null;for(;n.children.length;){let{i:a,off:l}=n.childPos(i,1);for(;;a++){if(a==n.children.length)return null;if((n=n.children[a]).length)break}i=l}if(!(n instanceof Ci))return null;let s=_t(n.text,i);if(s==i)return null;let o=Hi(n.dom,i,s).getClientRects();for(let a=0;a<o.length;a++){let l=o[a];if(a==o.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(e){let r=[],{from:i,to:n}=e,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==_e.LTR;for(let h=0,c=0;c<this.children.length;c++){let u=this.children[c],f=h+u.length;if(f>n)break;if(h>=i){let p=u.dom.getBoundingClientRect();if(r.push(p.height),o){let d=u.dom.lastChild,y=d?zs(d):[];if(y.length){let b=y[y.length-1],S=l?b.right-p.left:p.right-b.left;S>a&&(a=S,this.minWidth=s,this.minWidthFrom=h,this.minWidthTo=f)}}}h=f+u.breakAfter}return r}textDirectionAt(e){let{i:r}=this.childPos(e,1);return getComputedStyle(this.children[r].dom).direction=="rtl"?_e.RTL:_e.LTR}measureTextSize(){for(let s of this.children)if(s instanceof at){let o=s.measureTextSize();if(o)return o}let e,r,i,n=document.createElement("div");return n.className="cm-line",n.style.width="99999px",n.style.position="absolute",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(n);let s=zs(n.firstChild)[0];e=n.getBoundingClientRect().height,r=s?s.width/27:7,i=s?s.height:e,n.remove()}),{lineHeight:e,charWidth:r,textHeight:i}}childCursor(e=this.length){let r=this.children.length;return r&&(e-=this.children[--r].length),new Pa(this.children,e,r)}computeBlockGapDeco(){let e=[],r=this.view.viewState;for(let i=0,n=0;;n++){let s=n==r.viewports.length?null:r.viewports[n],o=s?s.from-1:this.length;if(o>i){let a=(r.lineBlockAt(o).bottom-r.lineBlockAt(i).top)/this.view.scaleY;e.push(ce.replace({widget:new Qa(a),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!s)break;i=s.to+1}return ce.set(e)}updateDeco(){let e=this.view.state.facet(Ws).map((n,s)=>(this.dynamicDecorationMap[s]=typeof n=="function")?n(this.view):n),r=!1,i=this.view.state.facet(PO).map((n,s)=>{let o=typeof n=="function";return o&&(r=!0),o?n(this.view):n});i.length&&(this.dynamicDecorationMap[e.length]=r,e.push(Be.join(i)));for(let n=e.length;n<e.length+3;n++)this.dynamicDecorationMap[n]=!1;return this.decorations=[...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){if(e.isSnapshot){let h=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=h.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}let r,{range:i}=e,n=this.coordsAt(i.head,i.empty?i.assoc:i.head>i.anchor?-1:1);if(!n)return;!i.empty&&(r=this.coordsAt(i.anchor,i.anchor>i.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let s=EO(this.view),o={left:n.left-s.left,top:n.top-s.top,right:n.right+s.right,bottom:n.bottom+s.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;(function(h,c,u,f,p,d,y,b){let S=h.ownerDocument,w=S.defaultView||window;for(let O=h,v=!1;O&&!v;)if(O.nodeType==1){let T,_=O==S.body,L=1,R=1;if(_)T=Ex(w);else{if(/^(fixed|sticky)$/.test(getComputedStyle(O).position)&&(v=!0),O.scrollHeight<=O.clientHeight&&O.scrollWidth<=O.clientWidth){O=O.assignedSlot||O.parentNode;continue}let A=O.getBoundingClientRect();({scaleX:L,scaleY:R}=rO(O,A)),T={left:A.left,right:A.left+O.clientWidth*L,top:A.top,bottom:A.top+O.clientHeight*R}}let E=0,N=0;if(p=="nearest")c.top<T.top?(N=-(T.top-c.top+y),u>0&&c.bottom>T.bottom+N&&(N=c.bottom-T.bottom+N+y)):c.bottom>T.bottom&&(N=c.bottom-T.bottom+y,u<0&&c.top-N<T.top&&(N=-(T.top+N-c.top+y)));else{let A=c.bottom-c.top,P=T.bottom-T.top;N=(p=="center"&&A<=P?c.top+A/2-P/2:p=="start"||p=="center"&&u<0?c.top-y:c.bottom-P+y)-T.top}if(f=="nearest"?c.left<T.left?(E=-(T.left-c.left+d),u>0&&c.right>T.right+E&&(E=c.right-T.right+E+d)):c.right>T.right&&(E=c.right-T.right+d,u<0&&c.left<T.left+E&&(E=-(T.left+E-c.left+d))):E=(f=="center"?c.left+(c.right-c.left)/2-(T.right-T.left)/2:f=="start"==b?c.left-d:c.right-(T.right-T.left)+d)-T.left,E||N)if(_)w.scrollBy(E,N);else{let A=0,P=0;if(N){let x=O.scrollTop;O.scrollTop+=N/R,P=(O.scrollTop-x)*R}if(E){let x=O.scrollLeft;O.scrollLeft+=E/L,A=(O.scrollLeft-x)*L}c={left:c.left-A,top:c.top-P,right:c.right-A,bottom:c.bottom-P},A&&Math.abs(A-E)<1&&(f="nearest"),P&&Math.abs(P-N)<1&&(p="nearest")}if(_)break;O=O.assignedSlot||O.parentNode}else{if(O.nodeType!=11)break;O=O.host}})(this.view.scrollDOM,o,i.head<i.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==_e.LTR)}},Qa=class extends ri{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}};Xx=class{constructor(){this.changes=[]}compareRange(t,e){Pc(t,e,this.changes)}comparePoint(t,e){Pc(t,e,this.changes)}};Lc=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Y.safari&&e.contentDOM.addEventListener("input",()=>null),Y.gecko&&(function(r){pm.has(r)||(pm.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))})(e.contentDOM.ownerDocument)}handleEvent(e){(function(r,i){if(!i.bubbles)return!0;if(i.defaultPrevented)return!1;for(let n,s=i.target;s!=r.contentDOM;s=s.parentNode)if(!s||s.nodeType==11||(n=Ve.get(s))&&n.ignoreEvent(i))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&(e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,r){let i=this.handlers[e];if(i){for(let n of i.observers)n(this.view,r);for(let n of i.handlers){if(r.defaultPrevented)break;if(n(this.view,r)){r.preventDefault();break}}}}ensureHandlers(e){let r=zx(e),i=this.handlers,n=this.view.contentDOM;for(let s in r)if(s!="scroll"){let o=!r[s].handlers.length,a=i[s];a&&o!=!a.handlers.length&&(n.removeEventListener(s,this.handleEvent),a=null),a||n.addEventListener(s,this.handleEvent,{passive:o})}for(let s in i)s=="scroll"||r[s]||n.removeEventListener(s,this.handleEvent);this.handlers=r}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(e.keyCode!=27&&LO.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),Y.android&&Y.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let r;return!Y.ios||e.synthetic||e.altKey||e.metaKey||!((r=$O.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||Vx.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(e.keyCode!=229&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=r||e,setTimeout(()=>this.flushIOSKey(),250),!0)}flushIOSKey(){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,Tn(this.view.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(Y.safari&&!Y.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};$O=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Vx="dthko",LO=[16,17,18,20,91,92,224,225];_c=class{constructor(e,r,i,n){this.view=e,this.startEvent=r,this.style=i,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=r,this.scrollParent=(function(o){let a=o.ownerDocument;for(let l=o.parentNode;l&&l!=a.body;)if(l.nodeType==1){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(l.nodeType!=11)break;l=l.host}return null})(e.contentDOM),this.atoms=e.state.facet(Uu).map(o=>o(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=r.shiftKey,this.multiple=e.state.facet(Ye.allowMultipleSelections)&&(function(o,a){let l=o.state.facet(bO);return l.length?l[0](a):Y.mac?a.metaKey:a.ctrlKey})(e,r),this.dragging=!(!(function(o,a){let{main:l}=o.state.selection;if(l.empty)return!1;let h=Ta(o.root);if(!h||h.rangeCount==0)return!0;let c=h.getRangeAt(0).getClientRects();for(let u=0;u<c.length;u++){let f=c[u];if(f.left<=a.clientX&&f.right>=a.clientX&&f.top<=a.clientY&&f.bottom>=a.clientY)return!0}return!1})(e,r)||DO(r)!=1)&&null}start(e){this.dragging===!1&&this.select(e)}move(e){var r,i,n;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&(i=this.startEvent,n=e,Math.max(Math.abs(i.clientX-n.clientX),Math.abs(i.clientY-n.clientY))<10))return;this.select(this.lastEvent=e);let s=0,o=0,a=((r=this.scrollParent)===null||r===void 0?void 0:r.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},l=EO(this.view);e.clientX-l.left<=a.left+6?s=-Go(a.left-e.clientX):e.clientX+l.right>=a.right-6&&(s=Go(e.clientX-a.right)),e.clientY-l.top<=a.top+6?o=-Go(a.top-e.clientY):e.clientY+l.bottom>=a.bottom-6&&(o=Go(e.clientY-a.bottom)),this.setScrollSpeed(s,o)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,r){this.scrollSpeed={x:e,y:r},e||r?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let r=null;for(let i=0;i<e.ranges.length;i++){let n=e.ranges[i],s=null;if(n.empty){let o=aa(this.atoms,n.from,0);o!=n.from&&(s=V.cursor(o,-1))}else{let o=aa(this.atoms,n.from,-1),a=aa(this.atoms,n.to,1);o==n.from&&a==n.to||(s=V.range(n.from==n.anchor?o:a,n.from==n.head?o:a))}s&&(r||(r=e.ranges.slice()),r[i]=s)}return r?V.create(r,e.mainIndex):e}select(e){let{view:r}=this,i=this.skipAtoms(this.style.get(e,this.extend,this.multiple));!this.mustSelect&&i.eq(r.state.selection,this.dragging===!1)||this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}},dr=Object.create(null),pr=Object.create(null),_O=Y.ie&&Y.ie_version<15||Y.ios&&Y.webkit_version<604;pr.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},dr.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&(t.inputState.lastEscPress=Date.now()),!1),pr.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},pr.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},dr.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let r=null;for(let i of t.state.facet(SO))if(r=i(t,e),r)break;if(r||e.button!=0||(r=(function(i,n){let s=am(i,n),o=DO(n),a=i.state.selection;return{update(l){l.docChanged&&(s.pos=l.changes.mapPos(s.pos),a=a.map(l.changes))},get(l,h,c){let u,f=am(i,l),p=sm(i,f.pos,f.bias,o);if(s.pos!=f.pos&&!h){let d=sm(i,s.pos,s.bias,o),y=Math.min(d.from,p.from),b=Math.max(d.to,p.to);p=y<p.from?V.range(y,b):V.range(b,y)}return h?a.replaceRange(a.main.extend(p.from,p.to)):c&&o==1&&a.ranges.length>1&&(u=(function(d,y){for(let b=0;b<d.ranges.length;b++){let{from:S,to:w}=d.ranges[b];if(S<=y&&w>=y)return V.create(d.ranges.slice(0,b).concat(d.ranges.slice(b+1)),d.mainIndex==b?0:d.mainIndex-(d.mainIndex>b?1:0))}return null})(a,f.pos))?u:c?a.addRange(p):V.create([p])}}})(t,e)),r){let i=!t.hasFocus;t.inputState.startMouseSelection(new _c(t,e,r,i)),i&&t.observer.ignore(()=>iO(t.contentDOM));let n=t.inputState.mouseSelection;if(n)return n.start(e),n.dragging===!1}return!1};IO=(t,e)=>t>=e.top&&t<=e.bottom,om=(t,e,r)=>IO(e,r)&&t>=r.left&&t<=r.right;jx=Y.ie&&Y.ie_version<=11,lm=null,hm=0,cm=0;dr.dragstart=(t,e)=>{let{selection:{main:r}}=t.state;if(e.target.draggable){let n=t.docView.nearest(e.target);if(n&&n.isWidget){let s=n.posAtStart,o=s+n.length;(s>=r.to||o<=r.from)&&(r=V.range(s,o))}}let{inputState:i}=t;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=r,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(r.from,r.to)),e.dataTransfer.effectAllowed="copyMove"),!1},dr.dragend=t=>(t.inputState.draggedContent=null,!1),dr.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let r=e.dataTransfer.files;if(r&&r.length){let i=Array(r.length),n=0,s=()=>{++n==r.length&&um(t,e,i.filter(o=>o!=null).join(t.state.lineBreak),!1)};for(let o=0;o<r.length;o++){let a=new FileReader;a.onerror=s,a.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(i[o]=a.result),s()},a.readAsText(r[o])}return!0}{let i=e.dataTransfer.getData("Text");if(i)return um(t,e,i,!0),!0}return!1},dr.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let r=_O?null:e.clipboardData;return r?(nm(t,r.getData("text/plain")||r.getData("text/uri-text")),!0):((function(i){let n=i.dom.parentNode;if(!n)return;let s=n.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.focus(),setTimeout(()=>{i.focus(),s.remove(),nm(i,s.value)},50)})(t),!1)};Ic=null;dr.copy=dr.cut=(t,e)=>{let{text:r,ranges:i,linewise:n}=(function(o){let a=[],l=[],h=!1;for(let c of o.selection.ranges)c.empty||(a.push(o.sliceDoc(c.from,c.to)),l.push(c));if(!a.length){let c=-1;for(let{from:u}of o.selection.ranges){let f=o.doc.lineAt(u);f.number>c&&(a.push(f.text),l.push({from:f.from,to:Math.min(o.doc.length,f.to+1)})),c=f.number}h=!0}return{text:a.join(o.lineBreak),ranges:l,linewise:h}})(t.state);if(!r&&!n)return!1;Ic=n?r:null,e.type!="cut"||t.state.readOnly||t.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let s=_O?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",r),!0):((function(o,a){let l=o.dom.parentNode;if(!l)return;let h=l.appendChild(document.createElement("textarea"));h.style.cssText="position: fixed; left: -10000px; top: 10px",h.value=a,h.focus(),h.selectionEnd=a.length,h.selectionStart=0,setTimeout(()=>{h.remove(),o.focus()},50)})(t,r),!1)};MO=nr.define();pr.focus=t=>{t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),fm(t)},pr.blur=t=>{t.observer.clearSelectionRange(),fm(t)},pr.compositionstart=pr.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},pr.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Y.chrome&&Y.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)},pr.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},dr.beforeinput=(t,e)=>{var r;let i;if(Y.chrome&&Y.android&&(i=$O.find(n=>n.inputType==e.inputType))&&(t.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let n=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>n+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};pm=new Set,dm=["pre-wrap","normal","pre-line","break-spaces"],Dc=class{constructor(e){this.lineWrapping=e,this.doc=Te.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,r){let i=this.doc.lineAt(r).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((r-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return dm.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let r=!1;for(let i=0;i<e.length;i++){let n=e[i];n<0?i++:this.heightSamples[Math.floor(10*n)]||(r=!0,this.heightSamples[Math.floor(10*n)]=!0)}return r}refresh(e,r,i,n,s,o){let a=dm.indexOf(e)>-1,l=Math.round(r)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=r,this.charWidth=i,this.textHeight=n,this.lineLength=s,l){this.heightSamples={};for(let h=0;h<o.length;h++){let c=o[h];c<0?h++:this.heightSamples[Math.floor(10*c)]=!0}}return l}},Mc=class{constructor(e,r){this.from=e,this.heights=r,this.index=0}get more(){return this.index<this.heights.length}},Lr=class t{constructor(e,r,i,n,s){this.from=e,this.length=r,this.top=i,this.height=n,this._content=s}get type(){return typeof this._content=="number"?vt.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Ei?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let r=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new t(this.from,this.length+e.length,this.top,this.height+e.height,r)}},Me=(function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t})(Me||(Me={})),la=.001,Ut=class t{constructor(e,r,i=2){this.length=e,this.height=r,this.flags=i}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,r){this.height!=r&&(Math.abs(this.height-r)>la&&(e.heightChanged=!0),this.height=r)}replace(e,r,i){return t.of(i)}decomposeLeft(e,r){r.push(this)}decomposeRight(e,r){r.push(this)}applyChanges(e,r,i,n){let s=this,o=i.doc;for(let a=n.length-1;a>=0;a--){let{fromA:l,toA:h,fromB:c,toB:u}=n[a],f=s.lineAt(l,Me.ByPosNoHeight,i.setDoc(r),0,0),p=f.to>=h?f:s.lineAt(h,Me.ByPosNoHeight,i,0,0);for(u+=p.to-h,h=p.to;a>0&&f.from<=n[a-1].toA;)l=n[a-1].fromA,c=n[a-1].fromB,a--,l<f.from&&(f=s.lineAt(l,Me.ByPosNoHeight,i,0,0));c+=f.from-l,l=f.from;let d=Xc.build(i.setDoc(o),e,c,u);s=s.replace(l,h,d)}return s.updateHeight(i,0)}static empty(){return new tr(0,0)}static of(e){if(e.length==1)return e[0];let r=0,i=e.length,n=0,s=0;for(;;)if(r==i)if(n>2*s){let a=e[r-1];a.break?e.splice(--r,1,a.left,null,a.right):e.splice(--r,1,a.left,a.right),i+=1+a.break,n-=a.size}else{if(!(s>2*n))break;{let a=e[i];a.break?e.splice(i,1,a.left,null,a.right):e.splice(i,1,a.left,a.right),i+=2+a.break,s-=a.size}}else if(n<s){let a=e[r++];a&&(n+=a.size)}else{let a=e[--i];a&&(s+=a.size)}let o=0;return e[r-1]==null?(o=1,r--):e[r]==null&&(o=1,i++),new Nc(t.of(e.slice(0,r)),o,t.of(e.slice(i)))}};Ut.prototype.size=1;Ra=class extends Ut{constructor(e,r,i){super(e,r),this.deco=i}blockAt(e,r,i,n){return new Lr(n,this.length,i,this.height,this.deco||0)}lineAt(e,r,i,n,s){return this.blockAt(0,i,n,s)}forEachLine(e,r,i,n,s,o){e<=s+this.length&&r>=s&&o(this.blockAt(0,i,n,s))}updateHeight(e,r=0,i=!1,n){return n&&n.from<=r&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}},tr=class t extends Ra{constructor(e,r){super(e,r,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,r,i,n){return new Lr(n,this.length,i,this.height,this.breaks)}replace(e,r,i){let n=i[0];return i.length==1&&(n instanceof t||n instanceof wi&&4&n.flags)&&Math.abs(this.length-n.length)<10?(n instanceof wi?n=new t(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):Ut.of(i)}updateHeight(e,r=0,i=!1,n){return n&&n.from<=r&&n.more?this.setHeight(e,n.heights[n.index++]):(i||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},wi=class t extends Ut{constructor(e){super(e,0)}heightMetrics(e,r){let i,n=e.doc.lineAt(r).number,s=e.doc.lineAt(r+this.length).number,o=s-n+1,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*o);i=l/o,this.length>o+1&&(a=(this.height-l)/(this.length-o-1))}else i=this.height/o;return{firstLine:n,lastLine:s,perLine:i,perChar:a}}blockAt(e,r,i,n){let{firstLine:s,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(r,n);if(r.lineWrapping){let h=n+Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length),c=r.doc.lineAt(h),u=a+c.length*l,f=Math.max(i,e-u/2);return new Lr(c.from,c.length,f,u,0)}{let h=Math.max(0,Math.min(o-s,Math.floor((e-i)/a))),{from:c,length:u}=r.doc.line(s+h);return new Lr(c,u,i+a*h,a,0)}}lineAt(e,r,i,n,s){if(r==Me.ByHeight)return this.blockAt(e,i,n,s);if(r==Me.ByPosNoHeight){let{from:p,to:d}=i.doc.lineAt(e);return new Lr(p,d-p,0,0,0)}let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(i,s),h=i.doc.lineAt(e),c=a+h.length*l,u=h.number-o,f=n+a*u+l*(h.from-s-u);return new Lr(h.from,h.length,Math.max(n,Math.min(f,n+this.height-c)),c,0)}forEachLine(e,r,i,n,s,o){e=Math.max(e,s),r=Math.min(r,s+this.length);let{firstLine:a,perLine:l,perChar:h}=this.heightMetrics(i,s);for(let c=e,u=n;c<=r;){let f=i.doc.lineAt(c);if(c==e){let d=f.number-a;u+=l*d+h*(e-s-d)}let p=l+h*f.length;o(new Lr(f.from,f.length,u,p,0)),u+=p,c=f.to+1}}replace(e,r,i){let n=this.length-r;if(n>0){let s=i[i.length-1];s instanceof t?i[i.length-1]=new t(s.length+n):i.push(null,new t(n-1))}if(e>0){let s=i[0];s instanceof t?i[0]=new t(e+s.length):i.unshift(new t(e-1),null)}return Ut.of(i)}decomposeLeft(e,r){r.push(new t(e-1),null)}decomposeRight(e,r){r.push(null,new t(this.length-e-1))}updateHeight(e,r=0,i=!1,n){let s=r+this.length;if(n&&n.from<=r+this.length&&n.more){let o=[],a=Math.max(r,n.from),l=-1;for(n.from>r&&o.push(new t(n.from-r-1).updateHeight(e,r));a<=s&&n.more;){let c=e.doc.lineAt(a).length;o.length&&o.push(null);let u=n.heights[n.index++];l==-1?l=u:Math.abs(u-l)>=la&&(l=-2);let f=new tr(c,u);f.outdated=!1,o.push(f),a+=c+1}a<=s&&o.push(null,new t(s-a).updateHeight(e,a));let h=Ut.of(o);return(l<0||Math.abs(h.height-this.height)>=la||Math.abs(l-this.heightMetrics(e,r).perLine)>=la)&&(e.heightChanged=!0),h}return(i||this.outdated)&&(this.setHeight(e,e.heightForGap(r,r+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}},Nc=class extends Ut{constructor(e,r,i){super(e.length+r+i.length,e.height+i.height,r|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return 1&this.flags}blockAt(e,r,i,n){let s=i+this.left.height;return e<s?this.left.blockAt(e,r,i,n):this.right.blockAt(e,r,s,n+this.left.length+this.break)}lineAt(e,r,i,n,s){let o=n+this.left.height,a=s+this.left.length+this.break,l=r==Me.ByHeight?e<o:e<a,h=l?this.left.lineAt(e,r,i,n,s):this.right.lineAt(e,r,i,o,a);if(this.break||(l?h.to<a:h.from>a))return h;let c=r==Me.ByPosNoHeight?Me.ByPosNoHeight:Me.ByPos;return l?h.join(this.right.lineAt(a,c,i,o,a)):this.left.lineAt(a,c,i,n,s).join(h)}forEachLine(e,r,i,n,s,o){let a=n+this.left.height,l=s+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,r,i,n,s,o),r>=l&&this.right.forEachLine(e,r,i,a,l,o);else{let h=this.lineAt(l,Me.ByPos,i,n,s);e<h.from&&this.left.forEachLine(e,h.from-1,i,n,s,o),h.to>=e&&h.from<=r&&o(h),r>h.to&&this.right.forEachLine(h.to+1,r,i,a,l,o)}}replace(e,r,i){let n=this.left.length+this.break;if(r<n)return this.balanced(this.left.replace(e,r,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,r-n,i));let s=[];e>0&&this.decomposeLeft(e,s);let o=s.length;for(let a of i)s.push(a);if(e>0&&mm(s,o-1),r<this.length){let a=s.length;this.decomposeRight(r,s),mm(s,a)}return Ut.of(s)}decomposeLeft(e,r){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,r);r.push(this.left),this.break&&(i++,e>=i&&r.push(null)),e>i&&this.right.decomposeLeft(e-i,r)}decomposeRight(e,r){let i=this.left.length,n=i+this.break;if(e>=n)return this.right.decomposeRight(e-n,r);e<i&&this.left.decomposeRight(e,r),this.break&&e<n&&r.push(null),r.push(this.right)}balanced(e,r){return e.size>2*r.size||r.size>2*e.size?Ut.of(this.break?[e,null,r]:[e,r]):(this.left=e,this.right=r,this.height=e.height+r.height,this.outdated=e.outdated||r.outdated,this.size=e.size+r.size,this.length=e.length+this.break+r.length,this)}updateHeight(e,r=0,i=!1,n){let{left:s,right:o}=this,a=r+s.length+this.break,l=null;return n&&n.from<=r+s.length&&n.more?l=s=s.updateHeight(e,r,i,n):s.updateHeight(e,r,i),n&&n.from<=a+o.length&&n.more?l=o=o.updateHeight(e,a,i,n):o.updateHeight(e,a,i),l?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};Xc=class t{constructor(e,r){this.pos=e,this.oracle=r,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,r){if(this.lineStart>-1){let i=Math.min(r,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof tr?n.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new tr(i-this.pos,-1)),this.writtenTo=i,r>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=r}point(e,r,i){if(e<r||i.heightRelevant){let n=i.widget?i.widget.estimatedHeight:0,s=i.widget?i.widget.lineBreaks:0;n<0&&(n=this.oracle.lineHeight);let o=r-e;i.block?this.addBlock(new Ra(o,n,i)):(o||s||n>=5)&&this.addLineDeco(n,s,o)}else r>e&&this.span(e,r);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:r}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=r,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new tr(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,r){let i=new wi(r-e);return this.oracle.doc.lineAt(e).to==r&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof tr)return e;let r=new tr(0,-1);return this.nodes.push(r),r}addBlock(e){this.enterLine();let r=e.deco;r&&r.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,r&&r.endSide>0&&(this.covering=e)}addLineDeco(e,r,i){let n=this.ensureLine();n.length+=i,n.collapsed+=i,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=r,this.writtenTo=this.pos=this.pos+i}finish(e){let r=this.nodes.length==0?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||r instanceof tr||this.isCovered?(this.writtenTo<this.pos||r==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new tr(0,-1));let i=e;for(let n of this.nodes)n instanceof tr&&n.updateHeight(this.oracle,i),i+=n?n.length:1;return this.nodes}static build(e,r,i,n){let s=new t(i,e);return Be.spans(r,i,n,s,0),s.finish(i)}},Zc=class{constructor(){this.changes=[]}compareRange(){}comparePoint(e,r,i,n){(e<r||i&&i.heightRelevant||n&&n.heightRelevant)&&Pc(e,r,this.changes,5)}};Ls=class{constructor(e,r,i){this.from=e,this.to=r,this.size=i}static same(e,r){if(e.length!=r.length)return!1;for(let i=0;i<e.length;i++){let n=e[i],s=r[i];if(n.from!=s.from||n.to!=s.to||n.size!=s.size)return!1}return!0}draw(e,r){return ce.replace({widget:new Fc(this.size*(r?e.scaleY:e.scaleX),r)}).range(this.from,this.to)}},Fc=class extends ri{constructor(e,r){super(),this.size=e,this.vertical=r}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}},$a=class{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=gm,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=_e.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let r=e.facet(ju).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Dc(r),this.stateDeco=e.facet(Ws).filter(i=>typeof i!="function"),this.heightMap=Ut.empty().applyChanges(this.stateDeco,Te.empty,this.heightOracle.setDoc(e.doc),[new Ir(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ce.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:r}=this.state.selection;for(let i=0;i<=1;i++){let n=i?r.head:r.anchor;if(!e.some(({from:s,to:o})=>n>=s&&n<=o)){let{from:s,to:o}=this.lineBlockAt(n);e.push(new Sn(s,o))}}this.viewports=e.sort((i,n)=>i.from-n.from),this.scaler=this.heightMap.height<=7e6?gm:new zc(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:xs(e,this.scaler))})}update(e,r=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Ws).filter(c=>typeof c!="function");let n=e.changedRanges,s=Ir.extendWithRanges(n,(function(c,u,f){let p=new Zc;return Be.compare(c,u,f,p,0),p.changes})(i,this.stateDeco,e?e.changes:Dt.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=o&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(r&&(r.range.head<l.from||r.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,r));let h=!e.changes.empty||2&e.flags||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),h&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),r&&(this.scrollTarget=r),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Mx)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let r=e.contentDOM,i=window.getComputedStyle(r),n=this.heightOracle,s=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?_e.RTL:_e.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),a=r.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let h=0,c=0;if(a.width&&a.height){let{scaleX:v,scaleY:T}=rO(r,a);this.scaleX==v&&this.scaleY==T||(this.scaleX=v,this.scaleY=T,h|=8,o=l=!0)}let u=(parseInt(i.paddingTop)||0)*this.scaleY,f=(parseInt(i.paddingBottom)||0)*this.scaleY;this.paddingTop==u&&this.paddingBottom==f||(this.paddingTop=u,this.paddingBottom=f,h|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,h|=8);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=sO(e.scrollDOM);let d=(this.printing?Wx:Ux)(r,this.paddingTop),y=d.top-this.pixelViewport.top,b=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let S=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(S!=this.inView&&(this.inView=S,S&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let w=a.width;if(this.contentDOMWidth==w&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,h|=8),l){let v=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(v)&&(o=!0),o||n.lineWrapping&&Math.abs(w-this.contentDOMWidth)>n.charWidth){let{lineHeight:T,charWidth:_,textHeight:L}=e.docView.measureTextSize();o=T>0&&n.refresh(s,T,_,L,w/_,v),o&&(e.docView.minWidth=0,h|=8)}y>0&&b>0?c=Math.max(y,b):y<0&&b<0&&(c=Math.min(y,b)),n.heightChanged=!1;for(let T of this.viewports){let _=T.from==this.viewport.from?v:e.docView.measureVisibleLineHeights(T);this.heightMap=(o?Ut.empty().applyChanges(this.stateDeco,Te.empty,this.heightOracle,[new Ir(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,o,new Mc(T.from,_))}n.heightChanged&&(h|=2)}let O=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return O&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&h||O)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,r){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new Sn(n.lineAt(o-1e3*i,Me.ByHeight,s,0,0).from,n.lineAt(a+1e3*(1-i),Me.ByHeight,s,0,0).to);if(r){let{head:h}=r.range;if(h<l.from||h>l.to){let c,u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=n.lineAt(h,Me.ByPos,s,0,0);c=r.y=="center"?(f.top+f.bottom)/2-u/2:r.y=="start"||r.y=="nearest"&&h<l.from?f.top:f.bottom-u,l=new Sn(n.lineAt(c-500,Me.ByHeight,s,0,0).from,n.lineAt(c+u+500,Me.ByHeight,s,0,0).to)}}return l}mapViewport(e,r){let i=r.mapPos(e.from,-1),n=r.mapPos(e.to,1);return new Sn(this.heightMap.lineAt(i,Me.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(n,Me.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:r},i=0){if(!this.inView)return!0;let{top:n}=this.heightMap.lineAt(e,Me.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(r,Me.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return(e==0||n<=o-Math.max(10,Math.min(-i,250)))&&(r==this.state.doc.length||s>=a+Math.max(10,Math.min(i,250)))&&n>o-2e3&&s<a+2e3}mapLineGaps(e,r){if(!e.length||r.empty)return e;let i=[];for(let n of e)r.touchesRange(n.from,n.to)||i.push(new Ls(r.mapPos(n.from),r.mapPos(n.to),n.size));return i}ensureLineGaps(e,r){let i=this.heightOracle.lineWrapping,n=i?1e4:2e3,s=n>>1,o=n<<1;if(this.defaultTextDirection!=_e.LTR&&!i)return[];let a=[],l=(h,c,u,f)=>{if(c-h<s)return;let p=this.state.selection.main,d=[p.from];p.empty||d.push(p.to);for(let b of d)if(b>h&&b<c)return l(h,b-10,u,f),void l(b+10,c,u,f);let y=(function(b,S){for(let w of b)if(S(w))return w})(e,b=>b.from>=u.from&&b.to<=u.to&&Math.abs(b.from-h)<s&&Math.abs(b.to-c)<s&&!d.some(S=>b.from<S&&b.to>S));if(!y){if(c<u.to&&r&&i&&r.visibleRanges.some(b=>b.from<=c&&b.to>=c)){let b=r.moveToLineBoundary(V.cursor(c),!1,!0).head;b>h&&(c=b)}y=new Ls(h,c,this.gapSize(u,h,c,f))}a.push(y)};for(let h of this.viewportLines){if(h.length<o)continue;let c=Gx(h.from,h.to,this.stateDeco);if(c.total<o)continue;let u,f,p=this.scrollTarget?this.scrollTarget.range.head:null;if(i){let d,y,b=n/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(p!=null){let S=qo(c,p),w=((this.visibleBottom-this.visibleTop)/2+b)/h.height;d=S-w,y=S+w}else d=(this.visibleTop-h.top-b)/h.height,y=(this.visibleBottom-h.top+b)/h.height;u=Yo(c,d),f=Yo(c,y)}else{let d,y,b=c.total*this.heightOracle.charWidth,S=n*this.heightOracle.charWidth;if(p!=null){let w=qo(c,p),O=((this.pixelViewport.right-this.pixelViewport.left)/2+S)/b;d=w-O,y=w+O}else d=(this.pixelViewport.left-S)/b,y=(this.pixelViewport.right+S)/b;u=Yo(c,d),f=Yo(c,y)}u>h.from&&l(h.from,u,h,c),f<h.to&&l(f,h.to,h,c)}return a}gapSize(e,r,i,n){let s=qo(n,i)-qo(n,r);return this.heightOracle.lineWrapping?e.height*s:n.total*this.heightOracle.charWidth*s}updateLineGaps(e){Ls.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=ce.set(e.map(r=>r.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let r=[];Be.spans(e,this.viewport.from,this.viewport.to,{span(n,s){r.push({from:n,to:s})},point(){}},20);let i=r.length!=this.visibleRanges.length||this.visibleRanges.some((n,s)=>n.from!=r[s].from||n.to!=r[s].to);return this.visibleRanges=r,i?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(r=>r.from<=e&&r.to>=e)||xs(this.heightMap.lineAt(e,Me.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return xs(this.heightMap.lineAt(this.scaler.fromDOM(e),Me.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let r=this.lineBlockAtHeight(e+8);return r.from>=this.viewport.from||this.viewportLines[0].top-e>200?r:this.viewportLines[0]}elementAtHeight(e){return xs(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},Sn=class{constructor(e,r){this.from=e,this.to=r}};gm={toDOM:t=>t,fromDOM:t=>t,scale:1},zc=class{constructor(e,r,i){let n=0,s=0,o=0;this.viewports=i.map(({from:a,to:l})=>{let h=r.lineAt(a,Me.ByPos,e,0,0).top,c=r.lineAt(l,Me.ByPos,e,0,0).bottom;return n+=c-h,{from:a,to:l,top:h,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(r.height-n);for(let a of this.viewports)a.domTop=o+(a.top-s)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),s=a.bottom}toDOM(e){for(let r=0,i=0,n=0;;r++){let s=r<this.viewports.length?this.viewports[r]:null;if(!s||e<s.top)return n+(e-i)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);i=s.bottom,n=s.domBottom}}fromDOM(e){for(let r=0,i=0,n=0;;r++){let s=r<this.viewports.length?this.viewports[r]:null;if(!s||e<s.domTop)return i+(e-n)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);i=s.bottom,n=s.domBottom}}};Ho=U.define({combine:t=>t.join(" ")}),Vc=U.define({combine:t=>t.indexOf(!0)>-1}),Bc=ei.newName(),XO=ei.newName(),ZO=ei.newName(),FO={"&light":"."+XO,"&dark":"."+ZO};Yx=jc("."+Bc,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},FO),vs="\uFFFF",Uc=class{constructor(e,r){this.points=e,this.text="",this.lineSeparator=r.facet(Ye.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=vs}readRange(e,r){if(!e)return this;let i=e.parentNode;for(let n=e;;){this.findPointBefore(i,n);let s=this.text.length;this.readNode(n);let o=n.nextSibling;if(o==r)break;let a=Ve.get(n),l=Ve.get(o);(a&&l?a.breakAfter:(a?a.breakAfter:Om(n))||Om(o)&&(n.nodeName!="BR"||n.cmIgnore)&&this.text.length>s)&&this.lineBreak(),n=o}return this.findPointBefore(i,r),this}readTextNode(e){let r=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,r.length));for(let i=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let s,o=-1,a=1;if(this.lineSeparator?(o=r.indexOf(this.lineSeparator,i),a=this.lineSeparator.length):(s=n.exec(r))&&(o=s.index,a=s[0].length),this.append(r.slice(i,o<0?r.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=a-1);i=o+a}}readNode(e){if(e.cmIgnore)return;let r=Ve.get(e),i=r&&r.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let n=i.iter();!n.next().done;)n.lineBreak?this.lineBreak():this.append(n.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,r){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==r&&(i.pos=this.text.length)}findPointInside(e,r){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(qx(e,i.node,i.offset)?r:0))}};La=class{constructor(e,r){this.node=e,this.offset=r,this.pos=-1}},Wc=class{constructor(e,r,i,n){this.typeOver=n,this.bounds=null,this.text="";let{impreciseHead:s,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&r>-1)this.newSel=null;else if(r>-1&&(this.bounds=e.docView.domBoundsAround(r,i,0))){let a=s||o?[]:(function(h){let c=[];if(h.root.activeElement!=h.contentDOM)return c;let{anchorNode:u,anchorOffset:f,focusNode:p,focusOffset:d}=h.observer.selectionRange;return u&&(c.push(new La(u,f)),p==u&&d==f||c.push(new La(p,d))),c})(e),l=new Uc(a,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=(function(h,c){if(h.length==0)return null;let u=h[0].pos,f=h.length==2?h[1].pos:u;return u>-1&&f>-1?V.single(u+c,f+c):null})(a,this.bounds.from)}else{let a=e.observer.selectionRange,l=s&&s.node==a.focusNode&&s.offset==a.focusOffset||!yc(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),h=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!yc(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),c=e.viewport;if(Y.ios&&e.state.selection.main.empty&&l!=h&&(c.from>0||c.to<e.state.doc.length)){let u=c.from-Math.min(l,h),f=c.to-Math.max(l,h);u!=0&&u!=1||f!=0&&f!=-1||(l=0,h=e.state.doc.length)}this.newSel=V.single(h,l)}}};Hx={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Ah=Y.ie&&Y.ie_version<=11,Gc=class{constructor(e){this.view=e,this.active=!1,this.selectionRange=new Sc,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(r=>{for(let i of r)this.queue.push(i);(Y.ie&&Y.ie_version<=11||Y.ios&&e.composing)&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),Ah&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var r;((r=this.view.docView)===null||r===void 0?void 0:r.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(r=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),r.length>0&&r[r.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(r=>{r.length>0&&r[r.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((r,i)=>r!=e[i]))){this.gapIntersection.disconnect();for(let r of e)this.gapIntersection.observe(r);this.gaps=e}}onSelectionChange(e){let r=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,n=this.selectionRange;if(i.state.facet(qa)?i.root.activeElement!=this.dom:!oa(i.dom,n))return;let s=n.anchorNode&&i.docView.nearest(n.anchorNode);s&&s.ignoreEvent(e)?r||(this.selectionChanged=!1):(Y.ie&&Y.ie_version<=11||Y.android&&Y.chrome)&&!i.state.selection.main.empty&&n.focusNode&&Es(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,r=Y.safari&&e.root.nodeType==11&&(function(n){let s=n.activeElement;for(;s&&s.shadowRoot;)s=s.shadowRoot.activeElement;return s})(this.dom.ownerDocument)==this.dom&&(function(n){let s=null;function o(f){f.preventDefault(),f.stopImmediatePropagation(),s=f.getTargetRanges()[0]}if(n.contentDOM.addEventListener("beforeinput",o,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",o,!0),!s)return null;let a=s.startContainer,l=s.startOffset,h=s.endContainer,c=s.endOffset,u=n.docView.domAtPos(n.state.selection.main.anchor);return Es(u.node,u.offset,h,c)&&([a,l,h,c]=[h,c,a,l]),{anchorNode:a,anchorOffset:l,focusNode:h,focusOffset:c}})(this.view)||Ta(e.root);if(!r||this.selectionRange.eq(r))return!1;let i=oa(this.dom,r);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&(function(n,s){let o=s.focusNode,a=s.focusOffset;if(!o||s.anchorNode!=o||s.anchorOffset!=a)return!1;for(a=Math.min(a,ti(o));;)if(a){if(o.nodeType!=1)return!1;let l=o.childNodes[a-1];l.contentEditable=="false"?a--:(o=l,a=ti(o))}else{if(o==n)return!0;a=Vs(o),o=o.parentNode}})(this.dom,r)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(r),i&&(this.selectionChanged=!0),!0)}setSelectionRange(e,r){this.selectionRange.set(e.node,e.offset,r.node,r.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,r=null;for(let i=this.dom;i;)if(i.nodeType==1)!r&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:r||(r=this.scrollTargets.slice(0,e)),r&&r.push(i),i=i.assignedSlot||i.parentNode;else{if(i.nodeType!=11)break;i=i.host}if(e<this.scrollTargets.length&&!r&&(r=this.scrollTargets.slice(0,e)),r){for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);for(let i of this.scrollTargets=r)i.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Hx),Ah&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Ah&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,r){var i;if(!this.delayedAndroidKey){let n=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&Tn(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(n)}this.delayedAndroidKey&&e!="Enter"||(this.delayedAndroidKey={key:e,keyCode:r,force:this.lastChange<Date.now()-50||!!(!((i=this.delayedAndroidKey)===null||i===void 0)&&i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let r=-1,i=-1,n=!1;for(let s of e){let o=this.readMutation(s);o&&(o.typeOver&&(n=!0),r==-1?{from:r,to:i}=o:(r=Math.min(o.from,r),i=Math.max(o.to,i)))}return{from:r,to:i,typeOver:n}}readChange(){let{from:e,to:r,typeOver:i}=this.processRecords(),n=this.selectionChanged&&oa(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new Wc(this.view,e,r,i);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let r=this.readChange();if(!r)return this.view.requestMeasure(),!1;let i=this.view.state,n=zO(this.view,r);return this.view.state==i&&this.view.update([]),n}readMutation(e){let r=this.view.docView.nearest(e.target);if(!r||r.ignoreMutation(e))return null;if(r.markDirty(e.type=="attributes"),e.type=="attributes"&&(r.flags|=4),e.type=="childList"){let i=bm(r,e.previousSibling||e.target.previousSibling,-1),n=bm(r,e.nextSibling||e.target.nextSibling,1);return{from:i?r.posAfter(i):r.posAtStart,to:n?r.posBefore(n):r.posAtEnd,typeOver:!1}}return e.type=="characterData"?{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,r,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(r=this.gapIntersection)===null||r===void 0||r.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}};re=class t{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:r}=e;this.dispatchTransactions=e.dispatchTransactions||r&&(i=>i.forEach(n=>r(n,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||(function(i){for(;i;){if(i&&(i.nodeType==9||i.nodeType==11&&i.host))return i;i=i.assignedSlot||i.parentNode}return null})(e.parent)||document,this.viewState=new $a(e.state||Ye.create(e)),e.scrollTo&&e.scrollTo.is(Wo)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(ys).map(i=>new $s(i));for(let i of this.plugins)i.update(this);this.observer=new Gc(this),this.inputState=new Lc(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Ea(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let r=e.length==1&&e[0]instanceof nt?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(r,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let r,i=!1,n=!1,s=this.state;for(let f of e){if(f.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=f.state}if(this.destroyed)return void(this.viewState.state=s);let o=this.hasFocus,a=0,l=null;e.some(f=>f.annotation(MO))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=NO(s,o),l||(a=1));let h=this.observer.delayedAndroidKey,c=null;if(h?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(c=null)):this.observer.clear(),s.facet(Ye.phrases)!=this.state.facet(Ye.phrases))return this.setState(s);r=Gs.create(this,s,e),r.flags|=a;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let f of e){if(u&&(u=u.map(f.changes)),f.scrollIntoView){let{main:p}=f.state.selection;u=new Rs(p.empty?p:V.cursor(p.head,p.head>p.anchor?-1:1))}for(let p of f.effects)p.is(Wo)&&(u=p.value.clip(this.state))}this.viewState.update(r,u),this.bidiCache=_a.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),i=this.docView.update(r),this.state.facet(Ss)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(i,e.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(Ho)!=r.state.facet(Ho)&&(this.viewState.mustMeasureContent=!0),(i||n||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!r.empty)for(let f of this.state.facet(Qc))try{f(r)}catch(p){gr(this.state,p,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!zO(this,c)&&h.force&&Tn(this.contentDOM,h.key,h.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let r=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new $a(e),this.plugins=e.facet(ys).map(i=>new $s(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new Ea(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}r&&this.focus(),this.requestMeasure()}updatePlugins(e){let r=e.startState.facet(ys),i=e.state.facet(ys);if(r!=i){let n=[];for(let s of i){let o=r.indexOf(s);if(o<0)n.push(new $s(s));else{let a=this.plugins[o];a.mustUpdate=e,n.push(a)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let n of this.plugins)n.mustUpdate=e;for(let n=0;n<this.plugins.length;n++)this.plugins[n].update(this);r!=i&&this.inputState.ensureHandlers(this.plugins)}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let r=null,i=this.scrollDOM,n=i.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(n-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if(sO(i))s=-1,o=this.viewState.heightMap.height;else{let p=this.viewState.scrollAnchorAt(n);s=p.from,o=p.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let h=[];4&l||([this.measureRequests,h]=[h,this.measureRequests]);let c=h.map(p=>{try{return p.read(this)}catch(d){return gr(this.state,d),ym}}),u=Gs.create(this,this.state,[]),f=!1;u.flags|=l,r?r.flags|=l:r=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),f=this.docView.update(u));for(let p=0;p<h.length;p++)if(c[p]!=ym)try{let d=h[p];d.write&&d.write(c[p],this)}catch(d){gr(this.state,d)}if(f&&this.docView.updateSelection(!0),!u.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}{let p=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-o;if(p>1||p<-1){n+=p,i.scrollTop=n/this.scaleY,o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(r&&!r.empty)for(let a of this.state.facet(Qc))a(r)}get themeClasses(){return Bc+" "+(this.state.facet(Vc)?ZO:XO)+" "+this.state.facet(Ho)}updateAttrs(){let e=Sm(this,TO,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),r={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(qa)?"true":"false",class:"cm-content",style:`${Y.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(r["aria-readonly"]="true"),Sm(this,ju,r);let i=this.observer.ignore(()=>{let n=Tc(this.contentDOM,this.contentAttrs,r),s=Tc(this.dom,this.editorAttrs,e);return n||s});return this.editorAttrs=e,this.contentAttrs=r,i}showAnnouncements(e){let r=!0;for(let i of e)for(let n of i.effects)n.is(t.announce)&&(r&&(this.announceDOM.textContent=""),r=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=n.value)}mountStyles(){this.styleModules=this.state.facet(Ss);let e=this.state.facet(t.cspNonce);ei.mount(this.root,this.styleModules.concat(Yx).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let r=0;r<this.measureRequests.length;r++)if(this.measureRequests[r].key===e.key)return void(this.measureRequests[r]=e)}this.measureRequests.push(e)}}plugin(e){let r=this.pluginMap.get(e);return(r===void 0||r&&r.spec!=e)&&this.pluginMap.set(e,r=this.plugins.find(i=>i.spec==e)||null),r&&r.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,r,i){return Ch(this,e,rm(this,e,r,i))}moveByGroup(e,r){return Ch(this,e,rm(this,e,r,i=>(function(n,s,o){let a=n.state.charCategorizer(s),l=a(o);return h=>{let c=a(h);return l==dt.Space&&(l=c),l==c}})(this,e.head,i)))}visualLineSide(e,r){let i=this.bidiSpans(e),n=this.textDirectionAt(e.from),s=i[r?i.length-1:0];return V.cursor(s.side(r,n)+e.from,s.forward(!r,n)?1:-1)}moveToLineBoundary(e,r,i=!0){return(function(n,s,o,a){let l=$c(n,s.head),h=a&&l.type==vt.Text&&(n.lineWrapping||l.widgetLineBreaks)?n.coordsAtPos(s.assoc<0&&s.head>l.from?s.head-1:s.head):null;if(h){let c=n.dom.getBoundingClientRect(),u=n.textDirectionAt(l.from),f=n.posAtCoords({x:o==(u==_e.LTR)?c.right-1:c.left+1,y:(h.top+h.bottom)/2});if(f!=null)return V.cursor(f,o?-1:1)}return V.cursor(o?l.to:l.from,o?-1:1)})(this,e,r,i)}moveVertically(e,r,i){return Ch(this,e,(function(n,s,o,a){let l=s.head,h=o?1:-1;if(l==(o?n.state.doc.length:0))return V.cursor(l,s.assoc);let c,u=s.goalColumn,f=n.contentDOM.getBoundingClientRect(),p=n.coordsAtPos(l,s.assoc||-1),d=n.documentTop;if(p)u==null&&(u=p.left-f.left),c=h<0?p.top:p.bottom;else{let S=n.viewState.lineBlockAt(l);u==null&&(u=Math.min(f.right-f.left,n.defaultCharacterWidth*(l-S.from))),c=(h<0?S.top:S.bottom)+d}let y=f.left+u,b=a??n.viewState.heightOracle.textHeight>>1;for(let S=0;;S+=10){let w=c+(b+S)*h,O=em(n,{x:y,y:w},!1,h);if(w<f.top||w>f.bottom||(h<0?O<l:O>l)){let v=n.docView.coordsForChar(O),T=!v||w<v.top?-1:1;return V.cursor(O,T,void 0,u)}}})(this,e,r,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,r=0){return this.docView.posFromDOM(e,r)}posAtCoords(e,r=!0){return this.readMeasured(),em(this,e,r)}coordsAtPos(e,r=1){this.readMeasured();let i=this.docView.coordsAt(e,r);if(!i||i.left==i.right)return i;let n=this.state.doc.lineAt(e),s=this.bidiSpans(n);return Fu(i,s[_r.find(s,e-n.from,-1,r)].dir==_e.LTR==r>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(kO)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Kx)return Yd(e.length);let r,i=this.textDirectionAt(e.from);for(let s of this.bidiCache)if(s.from==e.from&&s.dir==i&&(s.fresh||gO(s.isolates,r=qd(this,e))))return s.order;r||(r=qd(this,e));let n=(function(s,o,a){if(!s)return[new _r(0,0,o==Bu?1:0)];if(o==Ki&&!a.length&&!_x.test(s))return Yd(s.length);if(a.length)for(;s.length>$e.length;)$e[$e.length]=256;let l=[],h=o==Ki?0:1;return Ec(s,h,h,a,0,s.length,l),l})(e.text,i,r);return this.bidiCache.push(new _a(e.from,e.to,i,r,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Y.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{iO(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,r={}){return Wo.of(new Rs(typeof e=="number"?V.cursor(e):e,r.y,r.x,r.yMargin,r.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:r}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return Wo.of(new Rs(V.cursor(i.from),"start","start",i.top-e,r,!0))}static domEventHandlers(e){return wt.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return wt.define(()=>({}),{eventObservers:e})}static theme(e,r){let i=ei.newName(),n=[Ho.of(i),Ss.of(jc(`.${i}`,e))];return r&&r.dark&&n.push(Vc.of(!0)),n}static baseTheme(e){return ii.lowest(Ss.of(jc("."+Bc,e,FO)))}static findFromDOM(e){var r;let i=e.querySelector(".cm-content"),n=i&&Ve.get(i)||Ve.get(e);return((r=n?.rootView)===null||r===void 0?void 0:r.view)||null}};re.styleModule=Ss,re.inputHandler=vO,re.focusChangeEffect=wO,re.perLineTextDirection=kO,re.exceptionSink=xO,re.updateListener=Qc,re.editable=qa,re.mouseSelectionStyle=SO,re.dragMovesSelection=yO,re.clickAddsSelectionRange=bO,re.decorations=Ws,re.outerDecorations=PO,re.atomicRanges=Uu,re.bidiIsolatedRanges=CO,re.scrollMargins=AO,re.darkTheme=Vc,re.cspNonce=U.define({combine:t=>t.length?t[0]:""}),re.contentAttributes=ju,re.editorAttributes=TO,re.lineWrapping=re.contentAttributes.of({class:"cm-lineWrapping"}),re.announce=Pe.define();Kx=4096,ym={},_a=class t{constructor(e,r,i,n,s,o){this.from=e,this.to=r,this.dir=i,this.isolates=n,this.fresh=s,this.order=o}static update(e,r){if(r.empty&&!e.some(s=>s.fresh))return e;let i=[],n=e.length?e[e.length-1].dir:_e.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let o=e[s];o.dir!=n||r.touchesRange(o.from,o.to)||i.push(new t(r.mapPos(o.from,1),r.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return i}};Jx=Y.mac?"mac":Y.windows?"win":Y.linux?"linux":"key";ev=ii.default(re.domEventHandlers({keydown:(t,e)=>(function(r,i,n,s){let o=(function(w){var O=!(eO&&w.metaKey&&w.shiftKey&&!w.ctrlKey&&!w.altKey||tO&&w.shiftKey&&w.key&&w.key.length==1||w.key=="Unidentified")&&w.key||(w.shiftKey?Qn:Jr)[w.keyCode]||w.key||"Unidentified";return O=="Esc"&&(O="Escape"),O=="Del"&&(O="Delete"),O=="Left"&&(O="ArrowLeft"),O=="Up"&&(O="ArrowUp"),O=="Right"&&(O="ArrowRight"),O=="Down"&&(O="ArrowDown"),O})(i),a=fr(o,0),l=Yr(a)==o.length&&o!=" ",h="",c=!1,u=!1,f=!1;Oi&&Oi.view==n&&Oi.scope==s&&(h=Oi.prefix+" ",LO.indexOf(i.keyCode)<0&&(u=!0,Oi=null));let p,d,y=new Set,b=w=>{if(w){for(let O of w.run)if(!y.has(O)&&(y.add(O),O(n,i)))return w.stopPropagation&&(f=!0),!0;w.preventDefault&&(w.stopPropagation&&(f=!0),u=!0)}return!1},S=r[s];return S&&(b(S[h+Ko(o,i,!l)])?c=!0:l&&(i.altKey||i.metaKey||i.ctrlKey)&&!(Y.windows&&i.ctrlKey&&i.altKey)&&(p=Jr[i.keyCode])&&p!=o?(b(S[h+Ko(p,i,!0)])||i.shiftKey&&(d=Qn[i.keyCode])!=o&&d!=p&&b(S[h+Ko(d,i,!1)]))&&(c=!0):l&&i.shiftKey&&b(S[h+Ko(o,i,!0)])&&(c=!0),!c&&b(S._any)&&(c=!0)),u&&(c=!0),c&&f&&i.stopPropagation(),c})((function(r){let i=r.facet(Ha),n=xm.get(i);return n||xm.set(i,n=(function(s,o=Jx){let a=Object.create(null),l=Object.create(null),h=(u,f)=>{let p=l[u];if(p==null)l[u]=f;else if(p!=f)throw new Error("Key binding "+u+" is used both as a regular binding and as a multi-stroke prefix")},c=(u,f,p,d,y)=>{var b,S;let w=a[u]||(a[u]=Object.create(null)),O=f.split(/ (?!$)/).map(_=>(function(L,R){let E=L.split(/-(?!$)/),N,A,P,x,$=E[E.length-1];$=="Space"&&($=" ");for(let F=0;F<E.length-1;++F){let H=E[F];if(/^(cmd|meta|m)$/i.test(H))x=!0;else if(/^a(lt)?$/i.test(H))N=!0;else if(/^(c|ctrl|control)$/i.test(H))A=!0;else if(/^s(hift)?$/i.test(H))P=!0;else{if(!/^mod$/i.test(H))throw new Error("Unrecognized modifier name: "+H);R=="mac"?x=!0:A=!0}}return N&&($="Alt-"+$),A&&($="Ctrl-"+$),x&&($="Meta-"+$),P&&($="Shift-"+$),$})(_,o));for(let _=1;_<O.length;_++){let L=O.slice(0,_).join(" ");h(L,!0),w[L]||(w[L]={preventDefault:!0,stopPropagation:!1,run:[R=>{let E=Oi={view:R,prefix:L,scope:u};return setTimeout(()=>{Oi==E&&(Oi=null)},tv),!0}]})}let v=O.join(" ");h(v,!1);let T=w[v]||(w[v]={preventDefault:!1,stopPropagation:!1,run:((S=(b=w._any)===null||b===void 0?void 0:b.run)===null||S===void 0?void 0:S.slice())||[]});p&&T.run.push(p),d&&(T.preventDefault=!0),y&&(T.stopPropagation=!0)};for(let u of s){let f=u.scope?u.scope.split(" "):["editor"];if(u.any)for(let d of f){let y=a[d]||(a[d]=Object.create(null));y._any||(y._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let b in y)y[b].run.push(u.any)}let p=u[o]||u.key;if(p)for(let d of f)c(d,p,u.run,u.preventDefault,u.stopPropagation),u.shift&&c(d,"Shift-"+p,u.shift,u.preventDefault,u.stopPropagation)}return a})(i.reduce((s,o)=>s.concat(o),[]))),n})(e.state),t,e,"editor")})),Ha=U.define({enables:ev}),xm=new WeakMap,Oi=null,tv=4e3,Ia=class t{constructor(e,r,i,n,s){this.className=e,this.left=r,this.top=i,this.width=n,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,r){return r.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,r,i){if(i.empty){let n=e.coordsAtPos(i.head,i.assoc||1);if(!n)return[];let s=vm(e);return[new t(r,n.left-s.left,n.top-s.top,null,n.bottom-n.top)]}return(function(n,s,o){if(o.to<=n.viewport.from||o.from>=n.viewport.to)return[];let a=Math.max(o.from,n.viewport.from),l=Math.min(o.to,n.viewport.to),h=n.textDirection==_e.LTR,c=n.contentDOM,u=c.getBoundingClientRect(),f=vm(n),p=c.querySelector(".cm-line"),d=p&&window.getComputedStyle(p),y=u.left+(d?parseInt(d.paddingLeft)+Math.min(0,parseInt(d.textIndent)):0),b=u.right-(d?parseInt(d.paddingRight):0),S=$c(n,a),w=$c(n,l),O=S.type==vt.Text?S:null,v=w.type==vt.Text?w:null;if(O&&(n.lineWrapping||S.widgetLineBreaks)&&(O=wm(n,a,O)),v&&(n.lineWrapping||w.widgetLineBreaks)&&(v=wm(n,l,v)),O&&v&&O.from==v.from)return _(L(o.from,o.to,O));{let E=O?L(o.from,null,O):R(S,!1),N=v?L(null,o.to,v):R(w,!0),A=[];return(O||S).to<(v||w).from-(O&&v?1:0)||S.widgetLineBreaks>1&&E.bottom+n.defaultLineHeight/2<N.top?A.push(T(y,E.bottom,b,N.top)):E.bottom<N.top&&n.elementAtHeight((E.bottom+N.top)/2).type==vt.Text&&(E.bottom=N.top=(E.bottom+N.top)/2),_(E).concat(A).concat(_(N))}function T(E,N,A,P){return new t(s,E-f.left,N-f.top-.01,A-E,P-N+.01)}function _({top:E,bottom:N,horizontal:A}){let P=[];for(let x=0;x<A.length;x+=2)P.push(T(A[x],E,A[x+1],N));return P}function L(E,N,A){let P=1e9,x=-1e9,$=[];function F(xe,De,Ee,Xe,Ge){let ae=n.coordsAtPos(xe,xe==A.to?-2:2),j=n.coordsAtPos(Ee,Ee==A.from?2:-2);ae&&j&&(P=Math.min(ae.top,j.top,P),x=Math.max(ae.bottom,j.bottom,x),Ge==_e.LTR?$.push(h&&De?y:ae.left,h&&Xe?b:j.right):$.push(!h&&Xe?y:j.left,!h&&De?b:ae.right))}let H=E??A.from,pe=N??A.to;for(let xe of n.visibleRanges)if(xe.to>H&&xe.from<pe)for(let De=Math.max(xe.from,H),Ee=Math.min(xe.to,pe);;){let Xe=n.state.doc.lineAt(De);for(let Ge of n.bidiSpans(Xe)){let ae=Ge.from+Xe.from,j=Ge.to+Xe.from;if(ae>=Ee)break;j>De&&F(Math.max(ae,De),E==null&&ae<=H,Math.min(j,Ee),N==null&&j>=pe,Ge.dir)}if(De=Xe.to+1,De>=Ee)break}return $.length==0&&F(H,E==null,pe,N==null,n.textDirection),{top:P,bottom:x,horizontal:$}}function R(E,N){let A=u.top+(N?E.top:E.bottom);return{top:A,bottom:A,horizontal:[]}}})(e,r,i)}};Yc=class{constructor(e,r){this.view=e,this.layer=r,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),r.above&&this.dom.classList.add("cm-layer-above"),r.class&&this.dom.classList.add(r.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),r.mount&&r.mount(this.dom,e)}update(e){e.startState.facet(ha)!=e.state.facet(ha)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let r=0,i=e.facet(ha);for(;r<i.length&&i[r]!=this.layer;)r++;this.dom.style.zIndex=String((this.layer.above?150:-1)-r)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:r}=this.view;e==this.scaleX&&r==this.scaleY||(this.scaleX=e,this.scaleY=r,this.dom.style.transform=`scale(${1/e}, ${1/r})`)}draw(e){if(e.length!=this.drawn.length||e.some((r,i)=>{return n=r,s=this.drawn[i],!(n.constructor==s.constructor&&n.eq(s));var n,s})){let r=this.dom.firstChild,i=0;for(let n of e)n.update&&r&&n.constructor&&this.drawn[i].constructor&&n.update(r,this.drawn[i])?(r=r.nextSibling,i++):this.dom.insertBefore(n.draw(),r);for(;r;){let n=r.nextSibling;r.remove(),r=n}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},ha=U.define();BO=!Y.ios,Da=U.define({combine:t=>ni(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,r)=>Math.min(e,r),drawRangeCursor:(e,r)=>e||r})});y2=VO({above:!0,markers(t){let{state:e}=t,r=e.facet(Da),i=[];for(let n of e.selection.ranges){let s=n==e.selection.main;if(n.empty?!s||BO:r.drawRangeCursor){let o=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=n.empty?n:V.cursor(n.head,n.head>n.anchor?-1:1);for(let l of Ia.forRange(t,o,a))i.push(l)}}return i},update(t,e){t.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let r=jO(t);return r&&km(t.state,e),t.docChanged||t.selectionSet||r},mount(t,e){km(e.state,t)},class:"cm-cursorLayer"});S2=VO({above:!1,markers:t=>t.state.selection.ranges.map(e=>e.empty?[]:Ia.forRange(t,"cm-selectionBackground",e)).reduce((e,r)=>e.concat(r)),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||jO(t),class:"cm-selectionLayer"}),qc={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};BO&&(qc[".cm-line"].caretColor="transparent !important",qc[".cm-content"]={caretColor:"transparent !important"});x2=ii.highest(re.theme(qc)),Hc=/x/.unicode!=null?"gu":"g",rv=new RegExp(`[\0-\b
10
+ -\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,Hc),Eh=null,v2=U.define({combine(t){let e=ni(t,{render:null,specialChars:rv,addSpecialChars:null});return(e.replaceTabs=!(function(){var r;if(Eh==null&&typeof document<"u"&&document.body){let i=document.body.style;Eh=((r=i.tabSize)!==null&&r!==void 0?r:i.MozTabSize)!=null}return Eh||!1})())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Hc)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Hc)),e}}),w2=wt.fromClass(class{constructor(){this.height=1e3,this.attrs={style:"padding-bottom: 1000px"}}update(t){let{view:e}=t,r=e.viewState.editorHeight*e.scaleY-e.defaultLineHeight-e.documentPadding.top-.5;r>=0&&r!=this.height&&(this.height=r,this.attrs={style:`padding-bottom: ${r}px`})}}),ps="-10000px",Kc=class{constructor(e,r,i){this.facet=r,this.createTooltipView=i,this.input=e.state.facet(r),this.tooltips=this.input.filter(n=>n),this.tooltipViews=this.tooltips.map(i)}update(e,r){var i;let n=e.state.facet(this.facet),s=n.filter(l=>l);if(n===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let o=[],a=r?[]:null;for(let l=0;l<s.length;l++){let h=s[l],c=-1;if(h){for(let u=0;u<this.tooltips.length;u++){let f=this.tooltips[u];f&&f.create==h.create&&(c=u)}if(c<0)o[l]=this.createTooltipView(h),a&&(a[l]=!!h.above);else{let u=o[l]=this.tooltipViews[c];a&&(a[l]=r[c]),u.update&&u.update(e)}}}for(let l of this.tooltipViews)o.indexOf(l)<0&&(l.dom.remove(),(i=l.destroy)===null||i===void 0||i.call(l));return r&&(a.forEach((l,h)=>r[h]=l),r.length=a.length),this.input=n,this.tooltips=s,this.tooltipViews=o,!0}};Qh=U.define({combine:t=>{var e,r,i;return{position:Y.ios?"absolute":((e=t.find(n=>n.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((r=t.find(n=>n.parent))===null||r===void 0?void 0:r.parent)||null,tooltipSpace:((i=t.find(n=>n.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||iv}}}),Tm=new WeakMap,UO=wt.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(Qh);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Kc(t,Wu,r=>this.createTooltip(r)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(r=>{Date.now()>this.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let r=e||t.geometryChanged,i=t.state.facet(Qh);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let n of this.manager.tooltipViews)n.dom.style.position=this.position;r=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let n of this.manager.tooltipViews)this.container.appendChild(n.dom);r=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);r&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",e.dom.appendChild(r)}return e.dom.style.position=this.position,e.dom.style.top=ps,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(t=r.destroy)===null||t===void 0||t.call(r);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,r=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:n}=this.manager.tooltipViews[0];if(Y.gecko)i=n.offsetParent!=this.container.ownerDocument.body;else if(n.style.top==ps&&n.style.left=="0px"){let s=n.getBoundingClientRect();i=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(i||this.position=="absolute")if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,r=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:r}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((n,s)=>{let o=this.manager.tooltipViews[s];return o.getCoords?o.getCoords(n.pos):this.view.coordsAtPos(n.pos)}),size:this.manager.tooltipViews.map(({dom:n})=>n.getBoundingClientRect()),space:this.view.state.facet(Qh).tooltipSpace(this.view),scaleX:e,scaleY:r,makeAbsolute:i}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{editor:r,space:i,scaleX:n,scaleY:s}=t,o=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],h=this.manager.tooltipViews[a],{dom:c}=h,u=t.pos[a],f=t.size[a];if(!u||u.bottom<=Math.max(r.top,i.top)||u.top>=Math.min(r.bottom,i.bottom)||u.right<Math.max(r.left,i.left)-.1||u.left>Math.min(r.right,i.right)+.1){c.style.top=ps;continue}let p=l.arrow?h.dom.querySelector(".cm-tooltip-arrow"):null,d=p?7:0,y=f.right-f.left,b=(e=Tm.get(h))!==null&&e!==void 0?e:f.bottom-f.top,S=h.offset||sv,w=this.view.textDirection==_e.LTR,O=f.width>i.right-i.left?w?i.left:i.right-f.width:w?Math.min(u.left-(p?14:0)+S.x,i.right-y):Math.max(i.left,u.left-y+(p?14:0)-S.x),v=this.above[a];!l.strictSide&&(v?u.top-(f.bottom-f.top)-S.y<i.top:u.bottom+(f.bottom-f.top)+S.y>i.bottom)&&v==i.bottom-u.bottom>u.top-i.top&&(v=this.above[a]=!v);let T=(v?u.top-i.top:i.bottom-u.bottom)-d;if(T<b&&h.resize!==!1){if(T<this.view.defaultLineHeight){c.style.top=ps;continue}Tm.set(h,b),c.style.height=(b=T)/s+"px"}else c.style.height&&(c.style.height="");let _=v?u.top-b-d-S.y:u.bottom+d+S.y,L=O+y;if(h.overlap!==!0)for(let R of o)R.left<L&&R.right>O&&R.top<_+b&&R.bottom>_&&(_=v?R.top-b-2-d:R.bottom+d+2);if(this.position=="absolute"?(c.style.top=(_-t.parent.top)/s+"px",c.style.left=(O-t.parent.left)/n+"px"):(c.style.top=_/s+"px",c.style.left=O/n+"px"),p){let R=u.left+(w?S.x:-S.x)-(O+14-7);p.style.left=R/n+"px"}h.overlap!==!0&&o.push({left:O,top:_,right:L,bottom:_+b}),c.classList.toggle("cm-tooltip-above",v),c.classList.toggle("cm-tooltip-below",!v),h.positioned&&h.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=ps}},{eventObservers:{scroll(){this.maybeMeasure()}}}),nv=re.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),sv={x:0,y:0},Wu=U.define({enables:[UO,nv]});Pm=U.define({combine(t){let e,r;for(let i of t)e=e||i.topContainer,r=r||i.bottomContainer;return{topContainer:e,bottomContainer:r}}}),ov=wt.fromClass(class{constructor(t){this.input=t.state.facet(Jc),this.specs=this.input.filter(r=>r),this.panels=this.specs.map(r=>r(t));let e=t.state.facet(Pm);this.top=new xn(t,!0,e.topContainer),this.bottom=new xn(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(r=>r.top)),this.bottom.sync(this.panels.filter(r=>!r.top));for(let r of this.panels)r.dom.classList.add("cm-panel"),r.mount&&r.mount()}update(t){let e=t.state.facet(Pm);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new xn(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new xn(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let r=t.state.facet(Jc);if(r!=this.input){let i=r.filter(l=>l),n=[],s=[],o=[],a=[];for(let l of i){let h,c=this.specs.indexOf(l);c<0?(h=l(t.view),a.push(h)):(h=this.panels[c],h.update&&h.update(t)),n.push(h),(h.top?s:o).push(h)}this.specs=i,this.panels=n,this.top.sync(s),this.bottom.sync(o);for(let l of a)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let i of this.panels)i.update&&i.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>re.scrollMargins.of(e=>{let r=e.plugin(t);return r&&{top:r.top.scrollMargin(),bottom:r.bottom.scrollMargin()}})}),xn=class{constructor(e,r,i){this.view=e,this.top=r,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let r of this.panels)r.destroy&&e.indexOf(r)<0&&r.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let r=this.container||this.view.dom;r.insertBefore(this.dom,this.top?r.firstChild:null)}let e=this.dom.firstChild;for(let r of this.panels)if(r.dom.parentNode==this.dom){for(;e!=r.dom;)e=Cm(e);e=e.nextSibling}else this.dom.insertBefore(r.dom,e);for(;e;)e=Cm(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}};Jc=U.define({enables:ov}),Rr=class extends qr{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};Rr.prototype.elementClass="",Rr.prototype.toDOM=void 0,Rr.prototype.mapMode=lt.TrackBefore,Rr.prototype.startSide=Rr.prototype.endSide=-1,Rr.prototype.point=!0;Rh=U.define(),ca=U.define(),Am=U.define({combine:t=>t.some(e=>e)}),k2=wt.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(ca).map(e=>new Ma(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(Am),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,r=t.view.viewport,i=Math.min(e.to,r.to)-Math.max(e.from,r.from);this.syncGutters(i<.8*(r.to-r.from))}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Am)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let r=Be.iter(this.view.state.facet(Rh),this.view.viewport.from),i=[],n=this.gutters.map(s=>new tu(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(s.type)){let o=!0;for(let a of s.type)if(a.type==vt.Text&&o){eu(r,i,a.from);for(let l of n)l.line(this.view,a,i);o=!1}else if(a.widget)for(let l of n)l.widget(this.view,a)}else if(s.type==vt.Text){eu(r,i,s.from);for(let o of n)o.line(this.view,s,i)}else if(s.widget)for(let o of n)o.widget(this.view,s);for(let s of n)s.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(ca),r=t.state.facet(ca),i=t.docChanged||t.heightChanged||t.viewportChanged||!Be.eq(t.startState.facet(Rh),t.state.facet(Rh),t.view.viewport.from,t.view.viewport.to);if(e==r)for(let n of this.gutters)n.update(t)&&(i=!0);else{i=!0;let n=[];for(let s of r){let o=e.indexOf(s);o<0?n.push(new Ma(this.view,s)):(this.gutters[o].update(t),n.push(this.gutters[o]))}for(let s of this.gutters)s.dom.remove(),n.indexOf(s)<0&&s.destroy();for(let s of n)this.dom.appendChild(s.dom);this.gutters=n}return i}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>re.scrollMargins.of(e=>{let r=e.plugin(t);return r&&r.gutters.length!=0&&r.fixed?e.textDirection==_e.LTR?{left:r.dom.offsetWidth*e.scaleX}:{right:r.dom.offsetWidth*e.scaleX}:null})});tu=class{constructor(e,r,i){this.gutter=e,this.height=i,this.i=0,this.cursor=Be.iter(e.markers,r.from)}addElement(e,r,i){let{gutter:n}=this,s=(r.top-this.height)/e.scaleY,o=r.height/e.scaleY;if(this.i==n.elements.length){let a=new Na(e,o,s,i);n.elements.push(a),n.dom.appendChild(a.dom)}else n.elements[this.i].update(e,o,s,i);this.height=r.bottom,this.i++}line(e,r,i){let n=[];eu(this.cursor,n,r.from),i.length&&(n=n.concat(i));let s=this.gutter.config.lineMarker(e,r,n);s&&n.unshift(s);let o=this.gutter;(n.length!=0||o.config.renderEmptyElements)&&this.addElement(e,r,n)}widget(e,r){let i=this.gutter.config.widgetMarker(e,r.widget,r);i&&this.addElement(e,r,[i])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let r=e.elements.pop();e.dom.removeChild(r.dom),r.destroy()}}},Ma=class{constructor(e,r){this.view=e,this.config=r,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in r.domEventHandlers)this.dom.addEventListener(i,n=>{let s,o=n.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=n.clientY;let a=e.lineBlockAtHeight(s-e.documentTop);r.domEventHandlers[i](e,a,n)&&n.preventDefault()});this.markers=Em(r.markers(e)),r.initialSpacer&&(this.spacer=new Na(e,0,0,[r.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let r=this.markers;if(this.markers=Em(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let n=this.config.updateSpacer(this.spacer.markers[0],e);n!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[n])}let i=e.view.viewport;return!Be.eq(this.markers,r,i.from,i.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}},Na=class{constructor(e,r,i,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,r,i,n)}update(e,r,i,n){this.height!=r&&(this.height=r,this.dom.style.height=r+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),(function(s,o){if(s.length!=o.length)return!1;for(let a=0;a<s.length;a++)if(!s[a].compare(o[a]))return!1;return!0})(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,r){let i="cm-gutterElement",n=this.dom.firstChild;for(let s=0,o=0;;){let a=o,l=s<r.length?r[s++]:null,h=!1;if(l){let c=l.elementClass;c&&(i+=" "+c);for(let u=o;u<this.markers.length;u++)if(this.markers[u].compare(l)){a=u,h=!0;break}}else a=this.markers.length;for(;o<a;){let c=this.markers[o++];if(c.toDOM){c.destroy(n);let u=n.nextSibling;n.remove(),n=u}}if(!l)break;l.toDOM&&(h?n=n.nextSibling:this.dom.insertBefore(l.toDOM(e),n)),h&&o++}this.dom.className=i,this.markers=r}destroy(){this.setMarkers(null,[])}},GO=U.define(),ws=U.define({combine:t=>ni(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,r){let i=Object.assign({},e);for(let n in r){let s=i[n],o=r[n];i[n]=s?(a,l,h)=>s(a,l,h)||o(a,l,h):o}return i}})}),_s=class extends Rr{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};T2=ca.compute([ws],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(GO),lineMarker:(e,r,i)=>i.some(n=>n.toDOM)?null:new _s($h(e,e.state.doc.lineAt(r.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(ws)!=e.state.facet(ws),initialSpacer:e=>new _s($h(e,Qm(e.state.doc.lines))),updateSpacer(e,r){let i=$h(r.view,Qm(r.view.state.doc.lines));return i==e.number?e:new _s(i)},domEventHandlers:t.facet(ws).domEventHandlers}));av=0,rr=class t{constructor(e,r,i,n){this.name=e,this.set=r,this.base=i,this.modified=n,this.id=av++}toString(){let{name:e}=this;for(let r of this.modified)r.name&&(e=`${r.name}(${e})`);return e}static define(e,r){let i=typeof e=="string"?e:"?";if(e instanceof t&&(r=e),r?.base)throw new Error("Can not derive from a modified tag");let n=new t(i,[],null,[]);if(n.set.push(n),r)for(let s of r.set)n.set.push(s);return n}static defineModifier(e){let r=new Xa(e);return i=>i.modified.indexOf(r)>-1?i:Xa.get(i.base||i,i.modified.concat(r).sort((n,s)=>n.id-s.id))}},lv=0,Xa=class t{constructor(e){this.name=e,this.instances=[],this.id=lv++}static get(e,r){if(!r.length)return e;let i=r[0].instances.find(a=>{return a.base==e&&(l=r,h=a.modified,l.length==h.length&&l.every((c,u)=>c==h[u]));var l,h});if(i)return i;let n=[],s=new rr(e.name,n,e,r);for(let a of r)a.instances.push(s);let o=(function(a){let l=[[]];for(let h=0;h<a.length;h++)for(let c=0,u=l.length;c<u;c++)l.push(l[c].concat(a[h]));return l.sort((h,c)=>c.length-h.length)})(r);for(let a of e.set)if(!a.modified.length)for(let l of o)n.push(t.get(a,l));return s}};YO=new he,Rn=class{constructor(e,r,i,n){this.tags=e,this.mode=r,this.context=i,this.next=n}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}};Rn.empty=new Rn([],2,null);ru=class{constructor(e,r,i){this.at=e,this.highlighters=r,this.span=i,this.class=""}startSpan(e,r){r!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=r)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,r,i,n,s){let{type:o,from:a,to:l}=e;if(a>=i||l<=r)return;o.isTop&&(s=this.highlighters.filter(p=>!p.scope||p.scope(o)));let h=n,c=(function(p){let d=p.type.prop(YO);for(;d&&d.context&&!p.matchContext(d.context);)d=d.next;return d||null})(e)||Rn.empty,u=(function(p,d){let y=null;for(let b of p){let S=b.style(d);S&&(y=y?y+" "+S:S)}return y})(s,c.tags);if(u&&(h&&(h+=" "),h+=u,c.mode==1&&(n+=(n?" ":"")+u)),this.startSpan(Math.max(r,a),h),c.opaque)return;let f=e.tree&&e.tree.prop(he.mounted);if(f&&f.overlay){let p=e.node.enter(f.overlay[0].from+a,1),d=this.highlighters.filter(b=>!b.scope||b.scope(f.tree.type)),y=e.firstChild();for(let b=0,S=a;;b++){let w=b<f.overlay.length?f.overlay[b]:null,O=w?w.from+a:l,v=Math.max(r,S),T=Math.min(i,O);if(v<T&&y)for(;e.from<T&&(this.highlightRange(e,v,T,n,s),this.startSpan(Math.min(T,e.to),h),!(e.to>=O)&&e.nextSibling()););if(!w||O>i)break;S=w.to+a,S>r&&(this.highlightRange(p.cursor(),Math.max(r,w.from+a),Math.min(i,S),"",d),this.startSpan(Math.min(i,S),h))}y&&e.parent()}else if(e.firstChild()){f&&(n="");do if(!(e.to<=r)){if(e.from>=i)break;this.highlightRange(e,r,i,n,s),this.startSpan(Math.min(i,e.to),h)}while(e.nextSibling());e.parent()}}},z=rr.define,Jo=z(),yi=z(),Rm=z(yi),$m=z(yi),Si=z(),ea=z(Si),Lh=z(Si),Qr=z(),Zi=z(Qr),Ar=z(),Er=z(),iu=z(),ds=z(iu),ta=z(),C={comment:Jo,lineComment:z(Jo),blockComment:z(Jo),docComment:z(Jo),name:yi,variableName:z(yi),typeName:Rm,tagName:z(Rm),propertyName:$m,attributeName:z($m),className:z(yi),labelName:z(yi),namespace:z(yi),macroName:z(yi),literal:Si,string:ea,docString:z(ea),character:z(ea),attributeValue:z(ea),number:Lh,integer:z(Lh),float:z(Lh),bool:z(Si),regexp:z(Si),escape:z(Si),color:z(Si),url:z(Si),keyword:Ar,self:z(Ar),null:z(Ar),atom:z(Ar),unit:z(Ar),modifier:z(Ar),operatorKeyword:z(Ar),controlKeyword:z(Ar),definitionKeyword:z(Ar),moduleKeyword:z(Ar),operator:Er,derefOperator:z(Er),arithmeticOperator:z(Er),logicOperator:z(Er),bitwiseOperator:z(Er),compareOperator:z(Er),updateOperator:z(Er),definitionOperator:z(Er),typeOperator:z(Er),controlOperator:z(Er),punctuation:iu,separator:z(iu),bracket:ds,angleBracket:z(ds),squareBracket:z(ds),paren:z(ds),brace:z(ds),content:Qr,heading:Zi,heading1:z(Zi),heading2:z(Zi),heading3:z(Zi),heading4:z(Zi),heading5:z(Zi),heading6:z(Zi),contentSeparator:z(Qr),list:z(Qr),quote:z(Qr),emphasis:z(Qr),strong:z(Qr),link:z(Qr),monospace:z(Qr),strikethrough:z(Qr),inserted:z(),deleted:z(),changed:z(),invalid:z(),meta:ta,documentMeta:z(ta),annotation:z(ta),processingInstruction:z(ta),definition:rr.defineModifier("definition"),constant:rr.defineModifier("constant"),function:rr.defineModifier("function"),standard:rr.defineModifier("standard"),local:rr.defineModifier("local"),special:rr.defineModifier("special")};for(let t in C){let e=C[t];e instanceof rr&&(e.name=t)}hv([{tag:C.link,class:"tok-link"},{tag:C.heading,class:"tok-heading"},{tag:C.emphasis,class:"tok-emphasis"},{tag:C.strong,class:"tok-strong"},{tag:C.keyword,class:"tok-keyword"},{tag:C.atom,class:"tok-atom"},{tag:C.bool,class:"tok-bool"},{tag:C.url,class:"tok-url"},{tag:C.labelName,class:"tok-labelName"},{tag:C.inserted,class:"tok-inserted"},{tag:C.deleted,class:"tok-deleted"},{tag:C.literal,class:"tok-literal"},{tag:C.string,class:"tok-string"},{tag:C.number,class:"tok-number"},{tag:[C.regexp,C.escape,C.special(C.string)],class:"tok-string2"},{tag:C.variableName,class:"tok-variableName"},{tag:C.local(C.variableName),class:"tok-variableName tok-local"},{tag:C.definition(C.variableName),class:"tok-variableName tok-definition"},{tag:C.special(C.variableName),class:"tok-variableName2"},{tag:C.definition(C.propertyName),class:"tok-propertyName tok-definition"},{tag:C.typeName,class:"tok-typeName"},{tag:C.namespace,class:"tok-namespace"},{tag:C.className,class:"tok-className"},{tag:C.macroName,class:"tok-macroName"},{tag:C.propertyName,class:"tok-propertyName"},{tag:C.operator,class:"tok-operator"},{tag:C.comment,class:"tok-comment"},{tag:C.meta,class:"tok-meta"},{tag:C.invalid,class:"tok-invalid"},{tag:C.punctuation,class:"tok-punctuation"}]);ks=new he;Gu=new he,jt=class{constructor(e,r,i=[],n=""){this.data=e,this.name=n,Ye.prototype.hasOwnProperty("tree")||Object.defineProperty(Ye.prototype,"tree",{get(){return qe(this)}}),this.parser=r,this.extension=[Ln.of(this),Ye.languageData.of((s,o,a)=>{let l=Lm(s,o,a),h=l.type.prop(ks);if(!h)return[];let c=s.facet(h),u=l.type.prop(Gu);if(u){let f=l.resolve(o-l.from,a);for(let p of u)if(p.test(f,s)){let d=s.facet(p.facet);return p.type=="replace"?d:d.concat(c)}}return c})].concat(i)}isActiveAt(e,r,i=-1){return Lm(e,r,i).type.prop(ks)==this.data}findRegions(e){let r=e.facet(Ln);if(r?.data==this.data)return[{from:0,to:e.doc.length}];if(!r||!r.allowsNesting)return[];let i=[],n=(s,o)=>{if(s.prop(ks)==this.data)return void i.push({from:o,to:o+s.length});let a=s.prop(he.mounted);if(a){if(a.tree.prop(ks)==this.data){if(a.overlay)for(let l of a.overlay)i.push({from:l.from+o,to:l.to+o});else i.push({from:o,to:o+s.length});return}if(a.overlay){let l=i.length;if(n(a.tree,a.overlay[0].from+o),i.length>l)return}}for(let l=0;l<s.children.length;l++){let h=s.children[l];h instanceof Je&&n(h,s.positions[l]+o)}};return n(qe(e),0),i}get allowsNesting(){return!0}};jt.setState=Pe.define();$n=class t extends jt{constructor(e,r,i){super(e,r,[],i),this.parser=r}static define(e){let r=HO(e.languageData);return new t(r,e.parser.configure({props:[ks.add(i=>i.isTop?r:void 0)]}),e.name)}configure(e,r){return new t(this.data,this.parser.configure(e),r||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};nu=class{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,r){let i=this.cursorPos-this.string.length;return e<i||r>=this.cursorPos?this.doc.sliceString(e,r):this.string.slice(e-i,r-i)}},ms=null,su=class t{constructor(e,r,i=[],n,s,o,a,l){this.parser=e,this.state=r,this.fragments=i,this.tree=n,this.treeLen=s,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,r,i){return new t(e,r,[],Je.empty,0,i,[],null)}startParse(){return this.parser.startParse(new nu(this.state.doc),this.fragments)}work(e,r){return r!=null&&r>=this.state.doc.length&&(r=void 0),this.tree!=Je.empty&&this.isDone(r??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let n=Date.now()+e;e=()=>Date.now()>n}for(this.parse||(this.parse=this.startParse()),r!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>r)&&r<this.state.doc.length&&this.parse.stopAt(r);;){let n=this.parse.advance();if(n){if(this.fragments=this.withoutTempSkipped(vi.addTree(n,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(i=this.parse.stoppedAt)!==null&&i!==void 0?i:this.state.doc.length,this.tree=n,this.parse=null,!(this.treeLen<(r??this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,r;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(r=this.parse.advance()););}),this.treeLen=e,this.tree=r,this.fragments=this.withoutTempSkipped(vi.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let r=ms;ms=this;try{return e()}finally{ms=r}}withoutTempSkipped(e){for(let r;r=this.tempSkipped.pop();)e=_m(e,r.from,r.to);return e}changes(e,r){let{fragments:i,tree:n,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((h,c,u,f)=>l.push({fromA:h,toA:c,fromB:u,toB:f})),i=vi.applyChanges(i,l),n=Je.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let h of this.skipped){let c=e.mapPos(h.from,1),u=e.mapPos(h.to,-1);c<u&&a.push({from:c,to:u})}}}return new t(this.parser,r,i,n,s,o,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let r=this.skipped.length;for(let i=0;i<this.skipped.length;i++){let{from:n,to:s}=this.skipped[i];n<e.to&&s>e.from&&(this.fragments=_m(this.fragments,n,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=r)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,r){this.skipped.push({from:e,to:r})}static getSkippingParser(e){return new class extends Ns{createParse(r,i,n){let s=n[0].from,o=n[n.length-1].to;return{parsedPos:s,advance(){let a=ms;if(a){for(let l of n)a.tempSkipped.push(l);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=o,new Je(mt.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let r=this.fragments;return this.treeLen>=e&&r.length&&r[0].from==0&&r[0].to>=e}static get(){return ms}};Ys=class t{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let r=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),r.viewport.to);return r.work(20,i)||r.takeTree(),new t(r)}static init(e){let r=Math.min(3e3,e.doc.length),i=su.create(e.facet(Ln).parser,e,{from:0,to:r});return i.work(20,r)||i.takeTree(),new t(i)}};jt.state=Mt.define({create:Ys.init,update(t,e){for(let r of e.effects)if(r.is(jt.setState))return r.value;return e.startState.facet(Ln)!=e.state.facet(Ln)?Ys.init(e.state):t.apply(e)}});KO=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(KO=t=>{let e=-1,r=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(r):cancelIdleCallback(e)});Ih=typeof navigator<"u"&&(!((_h=navigator.scheduling)===null||_h===void 0)&&_h.isInputPending)?()=>navigator.scheduling.isInputPending():null,cv=wt.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(jt.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(jt.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=KO(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:i}}=this.view,n=r.field(jt.state);if(n.tree==n.context.tree&&n.context.isDone(i+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,t&&!Ih?Math.max(25,t.timeRemaining()-5):1e9),o=n.context.treeLen<i&&r.doc.length>i+1e3,a=n.context.work(()=>Ih&&Ih()||Date.now()>s,i+(o?0:1e5));this.chunkBudget-=Date.now()-e,(a||this.chunkBudget<=0)&&(n.context.takeTree(),this.view.dispatch({effects:jt.setState.of(new Ys(n.context))})),this.chunkBudget>0&&(!a||o)&&this.scheduleWork(),this.checkAsyncSchedule(n.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(e=>gr(this.view.state,e)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ln=U.define({combine:t=>t.length?t[0]:null,enables:t=>[jt.state,cv,re.contentAttributes.compute([t],e=>{let r=e.facet(t);return r&&r.name?{"data-language":r.name}:{}})]}),_n=class{constructor(e,r=[]){this.language=e,this.support=r,this.extension=[e,r]}},uv=U.define(),Ja=U.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(r=>r!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});qs=class{constructor(e,r={}){this.state=e,this.options=r,this.unit=ou(e)}lineAt(e,r=1){let i=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:s}=this.options;return n!=null&&n>=i.from&&n<=i.to?s&&n==e?{text:"",from:e}:(r<0?n<e:n<=e)?{text:i.text.slice(n-i.from),from:n}:{text:i.text.slice(0,n-i.from),from:i.from}:i}textAfterPos(e,r=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:n}=this.lineAt(e,r);return i.slice(e-n,Math.min(i.length,e+100-n))}column(e,r=1){let{text:i,from:n}=this.lineAt(e,r),s=this.countColumn(i,e-n),o=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return o>-1&&(s+=o-this.countColumn(i,i.search(/\S|$/))),s}countColumn(e,r=e.length){return Zu(e,this.state.tabSize,r)}lineIndent(e,r=1){let{text:i,from:n}=this.lineAt(e,r),s=this.options.overrideIndentation;if(s){let o=s(n);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},el=new he;au=class t extends qs{constructor(e,r,i){super(e.state,e.options),this.base=e,this.pos=r,this.context=i}get node(){return this.context.node}static create(e,r,i){return new t(e,r,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let r=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(r.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(mv(i,e))break;r=this.state.doc.lineAt(i.from)}return this.lineIndent(r.from)}continue(){return JO(this.context.next,this.base,this.pos)}};Ov=t=>t.baseIndent;P2=U.define(),Yu=new he;bv=Pe.define({map:r0}),i0=Pe.define({map:r0}),yv=Mt.define({create:()=>ce.none,update(t,e){t=t.map(e.changes);for(let r of e.effects)if(r.is(bv)&&!xv(t,r.value.from,r.value.to)){let{preparePlaceholder:i}=e.state.facet(n0),n=i?ce.replace({widget:new lu(i(e.state,r.value))}):Dm;t=t.update({add:[n.range(r.value.from,r.value.to)]})}else r.is(i0)&&(t=t.update({filter:(i,n)=>r.value.from!=i||r.value.to!=n,filterFrom:r.value.from,filterTo:r.value.to}));if(e.selection){let r=!1,{head:i}=e.selection.main;t.between(i,i,(n,s)=>{n<i&&s>i&&(r=!0)}),r&&(t=t.update({filterFrom:i,filterTo:i,filter:(n,s)=>s<=i||n>=i}))}return t},provide:t=>re.decorations.from(t),toJSON(t,e){let r=[];return t.between(0,e.doc.length,(i,n)=>{r.push(i,n)}),r},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let r=0;r<t.length;){let i=t[r++],n=t[r++];if(typeof i!="number"||typeof n!="number")throw new RangeError("Invalid JSON for fold state");e.push(Dm.range(i,n))}return ce.set(e,!0)}});vv={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},n0=U.define({combine:t=>ni(t,vv)});Dm=ce.replace({widget:new class extends ri{toDOM(t){return s0(t,null)}}}),lu=class extends ri{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return s0(e,this.value)}},C2=re.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),wv=U.define(),kv=U.define({combine:t=>t.length?[t[0]]:null});hu=class{constructor(e){this.markCache=Object.create(null),this.tree=qe(e.state),this.decorations=this.buildDeco(e,Dh(e.state)),this.decoratedTo=e.viewport.to}update(e){let r=qe(e.state),i=Dh(e.state),n=i!=Dh(e.startState),{viewport:s}=e.view,o=e.changes.mapPos(this.decoratedTo,1);r.length<s.to&&!n&&r.type==this.tree.type&&o>=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(r!=this.tree||e.viewportChanged||n)&&(this.tree=r,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=s.to)}buildDeco(e,r){if(!r||!this.tree.length)return ce.none;let i=new qi;for(let{from:n,to:s}of e.visibleRanges)qO(this.tree,r,(o,a,l)=>{i.add(o,a,this.markCache[l]||(this.markCache[l]=ce.mark({class:l})))},n,s);return i.finish()}},A2=ii.high(wt.fromClass(hu,{decorations:t=>t.decorations}));C.meta,C.link,C.heading,C.emphasis,C.strong,C.strikethrough,C.keyword,C.atom,C.bool,C.url,C.contentSeparator,C.labelName,C.literal,C.inserted,C.string,C.deleted,C.regexp,C.escape,C.string,C.variableName,C.variableName,C.typeName,C.namespace,C.className,C.variableName,C.macroName,C.propertyName,C.comment,C.invalid;E2=re.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),o0="()[]{}",Tv=U.define({combine:t=>ni(t,{afterCursor:!0,brackets:o0,maxScanDistance:1e4,renderMatch:Av})}),Pv=ce.mark({class:"cm-matchingBracket"}),Cv=ce.mark({class:"cm-nonmatchingBracket"});Q2=Mt.define({create:()=>ce.none,update(t,e){if(!e.docChanged&&!e.selection)return t;let r=[],i=e.state.facet(Tv);for(let n of e.state.selection.ranges){if(!n.empty)continue;let s=ra(e.state,n.head,-1,i)||n.head>0&&ra(e.state,n.head-1,1,i)||i.afterCursor&&(ra(e.state,n.head,1,i)||n.head<e.state.doc.length&&ra(e.state,n.head+1,-1,i));s&&(r=r.concat(i.renderMatch(s,e.state)))}return ce.set(r,!0)},provide:t=>re.decorations.from(t)}),a0=new he;l0=Object.create(null),fu=[mt.none],R2=new Ms(fu),Mm=[],Nm=Object.create(null),h0=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])h0[t]=c0(l0,e);pu=class{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),h0)}resolve(e){return e?this.table[e]||(this.table[e]=c0(this.extra,e)):0}},$2=new pu(l0);Zm=U.define({combine:t=>t.some(e=>e)}),L2=wt.fromClass(class{constructor(t){this.always=t.state.facet(Zm)||t.textDirection!=_e.LTR||t.state.facet(re.perLineTextDirection),this.hasRTL=!this.always&&Xm(t.state.doc),this.tree=qe(t.state),this.decorations=this.always||this.hasRTL?Fm(t,this.tree,this.always):ce.none}update(t){let e=t.state.facet(Zm)||t.view.textDirection!=_e.LTR||t.state.facet(re.perLineTextDirection);if(e||this.hasRTL||!(function(i){let n=!1;return i.iterChanges((s,o,a,l,h)=>{!n&&Xm(h)&&(n=!0)}),n})(t.changes)||(this.hasRTL=!0),!e&&!this.hasRTL)return;let r=qe(t.state);(e!=this.always||r!=this.tree||t.docChanged||t.viewportChanged)&&(this.tree=r,this.always=e,this.decorations=Fm(t.view,r,e))}},{provide:t=>{function e(r){var i,n;return(n=(i=r.plugin(t))===null||i===void 0?void 0:i.decorations)!==null&&n!==void 0?n:ce.none}return[re.outerDecorations.of(e),ii.lowest(re.bidiIsolatedRanges.of(e))]}});Qv={rtl:ce.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:_e.RTL}),ltr:ce.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:_e.LTR}),auto:ce.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})},du=class t{constructor(e,r,i,n,s,o,a,l,h,c=0,u){this.p=e,this.stack=r,this.state=i,this.reducePos=n,this.pos=s,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=h,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter((e,r)=>r%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,r,i=0){let n=e.parser.context;return new t(e,[],r,i,i,0,[],0,n?new Za(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,r){this.stack.push(this.state,r,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var r;let i=e>>19,n=65535&e,{parser:s}=this.p,o=this.reducePos<this.pos-25;o&&this.setLookAhead(this.pos);let a=s.dynamicPrecedence(n);if(a&&(this.score+=a),i==0)return this.pushState(s.getGoto(this.state,n,!0),this.reducePos),n<s.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,o?8:4,!0),void this.reduceContext(n,this.reducePos);let l=this.stack.length-3*(i-1)-(262144&e?6:0),h=l?this.stack[l-2]:this.p.ranges[0].from,c=this.reducePos-h;c>=2e3&&!(!((r=this.p.parser.nodeSet.types[n])===null||r===void 0)&&r.isAnonymous)&&(h==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=h,this.p.lastBigReductionSize=c));let u=l?this.stack[l-1]:0,f=this.bufferBase+this.buffer.length-u;if(n<s.minRepeatTerm||131072&e){let p=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,h,p,f+4,!0)}if(262144&e)this.state=this.stack[l];else{let p=this.stack[l-3];this.state=s.getGoto(p,n,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(n,h)}storeNode(e,r,i,n=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,a=this.buffer.length;if(a==0&&o.parent&&(a=o.bufferBase-o.parent.bufferBase,o=o.parent),a>0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(r==i)return;if(o.buffer[a-2]>=r)return void(o.buffer[a-2]=i)}}if(s&&this.pos!=i){let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>i;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>i;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,n>4&&(n-=4)}this.buffer[o]=e,this.buffer[o+1]=r,this.buffer[o+2]=i,this.buffer[o+3]=n}else this.buffer.push(e,r,i,n)}shift(e,r,i,n){if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=n,this.shiftContext(r,i),r<=this.p.parser.maxNode&&this.buffer.push(r,i,n,4);else{let s=e,{parser:o}=this.p;(n>this.pos||r<=o.maxNode)&&(this.pos=n,o.stateFlag(s,1)||(this.reducePos=n)),this.pushState(s,i),this.shiftContext(r,i),r<=o.maxNode&&this.buffer.push(r,i,n,4)}}apply(e,r,i,n){65536&e?this.reduce(e):this.shift(e,r,i,n)}useNode(e,r){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(r,n),this.buffer.push(i,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,r=e.buffer.length;for(;r>0&&e.buffer[r-2]>e.reducePos;)r-=4;let i=e.buffer.slice(r),n=e.bufferBase+r;for(;e&&n==e.bufferBase;)e=e.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,r){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,r,4),this.storeNode(0,this.pos,r,i?8:4),this.pos=this.reducePos=r,this.score-=190}canShift(e){for(let r=new mu(this);;){let i=this.p.parser.stateSlot(r.state,4)||this.p.parser.hasAction(r.state,e);if(i==0)return!1;if(!(65536&i))return!0;r.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let r=this.p.parser.nextStates(this.state);if(r.length>8||this.stack.length>=120){let n=[];for(let s,o=0;o<r.length;o+=2)(s=r[o+1])!=this.state&&this.p.parser.hasAction(s,e)&&n.push(r[o],s);if(this.stack.length<120)for(let s=0;n.length<8&&s<r.length;s+=2){let o=r[s+1];n.some((a,l)=>1&l&&a==o)||n.push(r[s],o)}r=n}let i=[];for(let n=0;n<r.length&&i.length<4;n+=2){let s=r[n+1];if(s==this.state)continue;let o=this.split();o.pushState(s,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(r[n],this.pos),o.reducePos=this.pos,o.score-=200,i.push(o)}return i}forceReduce(){let{parser:e}=this.p,r=e.stateSlot(this.state,5);if(!(65536&r))return!1;if(!e.validAction(this.state,r)){let i=r>>19,n=65535&r,s=this.stack.length-3*i;if(s<0||e.getGoto(this.stack[s],n,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;r=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(r),!0}findForcedReduction(){let{parser:e}=this.p,r=[],i=(n,s)=>{if(!r.includes(n))return r.push(n),e.allActions(n,o=>{if(!(393216&o))if(65536&o){let a=(o>>19)-s;if(a>1){let l=65535&o,h=this.stack.length-3*a;if(h>=0&&e.getGoto(this.stack[h],l,!1)>=0)return a<<19|65536|l}}else{let a=i(o,s+1);if(a!=null)return a}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let r=0;r<this.stack.length;r+=3)if(this.stack[r]!=e.stack[r])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,r){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(r)))}reduceContext(e,r){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(r)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let r=new Za(this.curContext.tracker,e);r.hash!=this.curContext.hash&&this.emitContext(),this.curContext=r}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},Za=class{constructor(e,r){this.tracker=e,this.context=r,this.hash=e.strict?e.hash(r):0}},mu=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let r=65535&e,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);let n=this.start.p.parser.getGoto(this.stack[this.base-3],r,!0);this.state=n}},gu=class t{constructor(e,r,i){this.stack=e,this.pos=r,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,r=e.bufferBase+e.buffer.length){return new t(e,r,r-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new t(this.stack,this.pos,this.index)}};Cn=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},zm=new Cn,Ou=class{constructor(e,r){this.input=e,this.ranges=r,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=zm,this.rangeIndex=0,this.pos=this.chunkPos=r[0].from,this.range=r[0],this.end=r[r.length-1].to,this.readNext()}resolveOffset(e,r){let i=this.range,n=this.rangeIndex,s=this.pos+e;for(;s<i.from;){if(!n)return null;let o=this.ranges[--n];s-=i.from-o.to,i=o}for(;r<0?s>i.to:s>=i.to;){if(n==this.ranges.length-1)return null;let o=this.ranges[++n];s+=o.from-i.to,i=o}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let r of this.ranges)if(r.to>e)return Math.max(e,r.from);return this.end}peek(e){let r,i,n=this.chunkOff+e;if(n>=0&&n<this.chunk.length)r=this.pos+e,i=this.chunk.charCodeAt(n);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(r=s,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let o=this.rangeIndex,a=this.range;for(;a.to<=r;)a=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(e,r=0){let i=r?this.resolveOffset(r,-1):this.pos;if(i==null||i<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=i}acceptTokenTo(e,r){this.token.value=e,this.token.end=r}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:r}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=r,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),r=this.pos+e.length;this.chunk=r>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,r){if(r?(this.token=r,r.start=e,r.lookAhead=e+1,r.value=r.extended=-1):this.token=zm,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,r){if(e>=this.chunkPos&&r<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,r-this.chunkPos);if(e>=this.chunk2Pos&&r<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,r-this.chunk2Pos);if(e>=this.range.from&&r<=this.range.to)return this.input.read(e,r);let i="";for(let n of this.ranges){if(n.from>=r)break;n.to>e&&(i+=this.input.read(Math.max(n.from,e),Math.min(n.to,r)))}return i}},ki=class{constructor(e,r){this.data=e,this.id=r}token(e,r){let{parser:i}=r.p;f0(this.data,e,r,this.id,i.data,i.tokenPrecTable)}};ki.prototype.contextual=ki.prototype.fallback=ki.prototype.extend=!1;In=class{constructor(e,r,i){this.precTable=r,this.elseToken=i,this.data=typeof e=="string"?Ts(e):e}token(e,r){let i=e.pos,n=0;for(;;){let s=e.next<0,o=e.resolveOffset(1,1);if(f0(this.data,e,r,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(s||n++,o==null)break;e.reset(o,e.token)}n&&(e.reset(i,e.token),e.acceptToken(this.elseToken,n))}};In.prototype.contextual=ki.prototype.fallback=ki.prototype.extend=!1;kt=class{constructor(e,r={}){this.token=e,this.contextual=!!r.contextual,this.fallback=!!r.fallback,this.extend=!!r.extend}};Zt=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),Nh=null;bu=class{constructor(e,r){this.fragments=e,this.nodeSet=r,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Bm(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Bm(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let r=this.trees.length-1;if(r<0)return this.nextFragment(),null;let i=this.trees[r],n=this.index[r];if(n==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=i.children[n],o=this.start[r]+i.positions[n];if(o>e)return this.nextStart=o,null;if(s instanceof Je){if(o==e){if(o<this.safeFrom)return null;let a=o+s.length;if(a<=this.safeTo){let l=s.prop(he.lookAhead);if(!l||a+l<this.fragment.to)return s}}this.index[r]++,o+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[r]++,this.nextStart=o+s.length}}},yu=class{constructor(e,r){this.stream=r,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new Cn)}getActions(e){let r=0,i=null,{parser:n}=e.p,{tokenizers:s}=n,o=n.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let h=0;h<s.length;h++){if(!(1<<h&o))continue;let c=s[h],u=this.tokens[h];if((!i||c.fallback)&&((c.contextual||u.start!=e.pos||u.mask!=o||u.context!=a)&&(this.updateCachedToken(u,c,e),u.mask=o,u.context=a),u.lookAhead>u.end+25&&(l=Math.max(u.lookAhead,l)),u.value!=0)){let f=r;if(u.extended>-1&&(r=this.addActions(e,u.extended,u.end,r)),r=this.addActions(e,u.value,u.end,r),!c.extend&&(i=u,r>f))break}}for(;this.actions.length>r;)this.actions.pop();return l&&e.setLookAhead(l),i||e.pos!=this.stream.end||(i=new Cn,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,r=this.addActions(e,i.value,i.end,r)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let r=new Cn,{pos:i,p:n}=e;return r.start=i,r.end=Math.min(i+1,n.stream.end),r.value=i==n.stream.end?n.parser.eofTerm:0,r}updateCachedToken(e,r,i){let n=this.stream.clipPos(i.pos);if(r.token(this.stream.reset(n,e),i),e.value>-1){let{parser:s}=i.p;for(let o=0;o<s.specialized.length;o++)if(s.specialized[o]==e.value){let a=s.specializers[o](this.stream.read(e.start,e.end),i);if(a>=0&&i.p.parser.dialect.allows(a>>1)){1&a?e.extended=a>>1:e.value=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,r,i,n){for(let s=0;s<n;s+=3)if(this.actions[s]==e)return n;return this.actions[n++]=e,this.actions[n++]=r,this.actions[n++]=i,n}addActions(e,r,i,n){let{state:s}=e,{parser:o}=e.p,{data:a}=o;for(let l=0;l<2;l++)for(let h=o.stateSlot(s,l?2:1);;h+=3){if(a[h]==65535){if(a[h+1]!=1){n==0&&a[h+1]==2&&(n=this.putAction(Wr(a,h+2),r,i,n));break}h=Wr(a,h+2)}a[h]==r&&(n=this.putAction(Wr(a,h+1),r,i,n))}return n}},Su=class{constructor(e,r,i,n){this.parser=e,this.input=r,this.ranges=n,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Ou(r,n),this.tokens=new yu(e,this.stream),this.topTerm=e.top[1];let{from:s}=n[0];this.stacks=[du.start(this,e.top[0],s)],this.fragments=i.length&&this.stream.end-s>4*e.bufferLength?new bu(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,r,i=this.stacks,n=this.minStackPos,s=this.stacks=[];if(this.bigReductionCount>300&&i.length==1){let[o]=i;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<i.length;o++){let a=i[o];for(;;){if(this.tokens.mainToken=null,a.pos>n)s.push(a);else{if(this.advanceStack(a,s,i))continue;{e||(e=[],r=[]),e.push(a);let l=this.tokens.getMainToken(a);r.push(l.value,l.end)}}break}}if(!s.length){let o=e&&(function(a){let l=null;for(let h of a){let c=h.p.stoppedAt;(h.pos==h.p.stream.end||c!=null&&h.pos>c)&&h.p.parser.stateFlag(h.state,2)&&(!l||l.score<h.score)&&(l=h)}return l})(e);if(o)return Zt&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Zt&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&e){let o=this.stoppedAt!=null&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,r,s);if(o)return Zt&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:3*this.recovering;if(s.length>o)for(s.sort((a,l)=>l.score-a.score);s.length>o;)s.pop();s.some(a=>a.reducePos>n)&&this.recovering--}else if(s.length>1){e:for(let o=0;o<s.length-1;o++){let a=s[o];for(let l=o+1;l<s.length;l++){let h=s[l];if(a.sameState(h)||a.buffer.length>500&&h.buffer.length>500){if(!((a.score-h.score||a.buffer.length-h.buffer.length)>0)){s.splice(o--,1);continue e}s.splice(l--,1)}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let o=1;o<s.length;o++)s[o].pos<this.minStackPos&&(this.minStackPos=s[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,r,i){let n=e.pos,{parser:s}=this,o=Zt?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let h=e.curContext&&e.curContext.tracker.strict,c=h?e.curContext.hash:0;for(let u=this.fragments.nodeAt(n);u;){let f=this.parser.nodeSet.types[u.type.id]==u.type?s.getGoto(e.state,u.type.id):-1;if(f>-1&&u.length&&(!h||(u.prop(he.contextHash)||0)==c))return e.useNode(u,f),Zt&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(u.type.id)})`),!0;if(!(u instanceof Je)||u.children.length==0||u.positions[0]>0)break;let p=u.children[0];if(!(p instanceof Je&&u.positions[0]==0))break;u=p}}let a=s.stateSlot(e.state,4);if(a>0)return e.reduce(a),Zt&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(65535&a)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let h=0;h<l.length;){let c=l[h++],u=l[h++],f=l[h++],p=h==l.length||!i,d=p?e:e.split(),y=this.tokens.mainToken;if(d.apply(c,u,y?y.start:d.pos,f),Zt&&console.log(o+this.stackID(d)+` (via ${65536&c?`reduce of ${s.getName(65535&c)}`:"shift"} for ${s.getName(u)} @ ${n}${d==e?"":", split"})`),p)return!0;d.pos>n?r.push(d):i.push(d)}return!1}advanceFully(e,r){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return jm(e,r),!0}}runRecovery(e,r,i){let n=null,s=!1;for(let o=0;o<e.length;o++){let a=e[o],l=r[o<<1],h=r[1+(o<<1)],c=Zt?this.stackID(a)+" -> ":"";if(a.deadEnd&&(s||(s=!0,a.restart(),Zt&&console.log(c+this.stackID(a)+" (restarted)"),this.advanceFully(a,i))))continue;let u=a.split(),f=c;for(let p=0;u.forceReduce()&&p<10&&(Zt&&console.log(f+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,i));p++)Zt&&(f=this.stackID(u)+" -> ");for(let p of a.recoverByInsert(l))Zt&&console.log(c+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,i);this.stream.end>a.pos?(h==a.pos&&(h++,l=0),a.recoverByDelete(l,h),Zt&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),jm(a,i)):(!n||n.score<a.score)&&(n=a)}return n}stackToTree(e){return e.close(),Je.build({buffer:gu.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let r=(Nh||(Nh=new WeakMap)).get(e);return r||Nh.set(e,r=String.fromCodePoint(this.nextStackID++)),r+e}};xu=class{constructor(e,r,i){this.source=e,this.flags=r,this.disabled=i}allows(e){return!this.disabled||this.disabled[e]==0}},Xh=t=>t,Fa=class{constructor(e){this.start=e.start,this.shift=e.shift||Xh,this.reduce=e.reduce||Xh,this.reuse=e.reuse||Xh,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},Dn=class t extends Ns{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let r=e.nodeNames.split(" ");this.minRepeatTerm=r.length;for(let a=0;a<e.repeatNodeCount;a++)r.push("");let i=Object.keys(e.topRules).map(a=>e.topRules[a][1]),n=[];for(let a=0;a<r.length;a++)n.push([]);function s(a,l,h){n[a].push([l,l.deserialize(String(h))])}if(e.nodeProps)for(let a of e.nodeProps){let l=a[0];typeof l=="string"&&(l=he[l]);for(let h=1;h<a.length;){let c=a[h++];if(c>=0)s(c,l,a[h++]);else{let u=a[h+-c];for(let f=-c;f>0;f--)s(a[h++],l,u);h++}}}this.nodeSet=new Ms(r.map((a,l)=>mt.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:n[l],top:i.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let o=Ts(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(Um),this.states=Ts(e.states,Uint32Array),this.data=Ts(e.stateData),this.goto=Ts(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(a=>typeof a=="number"?new ki(o,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,r,i){let n=new Su(this,e,r,i);for(let s of this.wrappers)n=s(n,e,r,i);return n}getGoto(e,r,i=!1){let n=this.goto;if(r>=n[0])return-1;for(let s=n[r+1];;){let o=n[s++],a=1&o,l=n[s++];if(a&&i)return l;for(let h=s+(o>>1);s<h;s++)if(n[s]==e)return l;if(a)return-1}}hasAction(e,r){let i=this.data;for(let n=0;n<2;n++)for(let s,o=this.stateSlot(e,n?2:1);;o+=3){if((s=i[o])==65535){if(i[o+1]!=1){if(i[o+1]==2)return Wr(i,o+2);break}s=i[o=Wr(i,o+2)]}if(s==r||s==0)return Wr(i,o+1)}return 0}stateSlot(e,r){return this.states[6*e+r]}stateFlag(e,r){return(this.stateSlot(e,0)&r)>0}validAction(e,r){return!!this.allActions(e,i=>i==r||null)}allActions(e,r){let i=this.stateSlot(e,4),n=i?r(i):void 0;for(let s=this.stateSlot(e,1);n==null;s+=3){if(this.data[s]==65535){if(this.data[s+1]!=1)break;s=Wr(this.data,s+2)}n=r(Wr(this.data,s+1))}return n}nextStates(e){let r=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535){if(this.data[i+1]!=1)break;i=Wr(this.data,i+2)}if(!(1&this.data[i+2])){let n=this.data[i+1];r.some((s,o)=>1&o&&s==n)||r.push(this.data[i],n)}}return r}configure(e){let r=Object.assign(Object.create(t.prototype),this);if(e.props&&(r.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);r.top=i}return e.tokenizers&&(r.tokenizers=this.tokenizers.map(i=>{let n=e.tokenizers.find(s=>s.from==i);return n?n.to:i})),e.specializers&&(r.specializers=this.specializers.slice(),r.specializerSpecs=this.specializerSpecs.map((i,n)=>{let s=e.specializers.find(a=>a.from==i.external);if(!s)return i;let o=Object.assign(Object.assign({},i),{external:s.to});return r.specializers[n]=Um(o),o})),e.contextTracker&&(r.context=e.contextTracker),e.dialect&&(r.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(r.strict=e.strict),e.wrap&&(r.wrappers=r.wrappers.concat(e.wrap)),e.bufferLength!=null&&(r.bufferLength=e.bufferLength),r}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let r=this.dynamicPrecedences;return r==null?0:r[e]||0}parseDialect(e){let r=Object.keys(this.dialects),i=r.map(()=>!1);if(e)for(let s of e.split(" ")){let o=r.indexOf(s);o>=0&&(i[o]=!0)}let n=null;for(let s=0;s<r.length;s++)if(!i[s])for(let o,a=this.dialects[r[s]];(o=this.data[a++])!=65535;)(n||(n=new Uint8Array(this.maxTerm+1)))[o]=1;return new xu(e,i,n)}static deserialize(e){return new t(e)}};p0=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];d0=(t,e,r)=>(i,n)=>{for(let s=!1,o=0,a=0;;a++){let{next:l}=i;if(Hs(l)||l==45||l==95||s&&qu(l))!s&&(l!=45||a>0)&&(s=!0),o===a&&l==45&&o++,i.advance();else{if(l!=92||i.peek(1)==10){s&&i.acceptToken(o>=2&&n.canShift(2)?e:l==40?r:t);break}if(i.advance(),Wm(i.next)){do i.advance();while(Wm(i.next));i.next==32&&i.advance()}else i.next>-1&&i.advance();s=!0}}},$v=new kt(d0(149,2,150),{contextual:!0}),Lv=new kt(d0(151,3,4),{contextual:!0}),_v=new kt(t=>{if(p0.includes(t.peek(-1))){let{next:e}=t;(Hs(e)||e==95||e==35||e==46||e==42||e==91||e==58&&Hs(t.peek(1))||e==45||e==38)&&t.acceptToken(148)}}),Iv=new kt(t=>{if(!p0.includes(t.peek(-1))){let{next:e}=t;if(e==37&&(t.advance(),t.acceptToken(1)),Hs(e)){do t.advance();while(Hs(t.next)||qu(t.next));t.acceptToken(1)}}}),Dv=Ka({"AtKeyword import charset namespace keyframes media supports font-feature-values":C.definitionKeyword,"from to selector scope MatchFlag":C.keyword,NamespaceName:C.namespace,KeyframeName:C.labelName,KeyframeRangeName:C.operatorKeyword,TagName:C.tagName,ClassName:C.className,PseudoClassName:C.constant(C.className),IdName:C.labelName,"FeatureName PropertyName":C.propertyName,AttributeName:C.attributeName,NumberLiteral:C.number,KeywordQuery:C.keyword,UnaryQueryOp:C.operatorKeyword,"CallTag ValueName FontName":C.atom,VariableName:C.variableName,Callee:C.operatorKeyword,Unit:C.unit,"UniversalSelector NestingSelector":C.definitionOperator,"MatchOp CompareOp":C.compareOperator,"ChildOp SiblingOp, LogicOp":C.logicOperator,BinOp:C.arithmeticOperator,Important:C.modifier,Comment:C.blockComment,ColorLiteral:C.color,"ParenthesizedContent StringLiteral":C.string,":":C.punctuation,"PseudoOp #":C.derefOperator,"; , |":C.separator,"( )":C.paren,"[ ]":C.squareBracket,"{ }":C.brace}),Mv={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:158,"url-prefix":158,domain:158,regexp:158},Nv={__proto__:null,or:104,and:104,not:112,only:112,layer:212},Xv={__proto__:null,selector:118,style:124,layer:208},Zv={__proto__:null,"@import":204,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versalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector StyleQuery style ParenthesedQuery CallQuery ArgList PropertyName , PropertyName UnaryQuery ParenthesedQuery BinaryQuery ParenthesedQuery ParenthesedQuery StyleFeature PropertyName StyleRange PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:174,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[Dv],skippedNodes:[0,5,130],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g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#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!r`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!r`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!r`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!r`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$rQ!r`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$fUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU#SQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[_v,Iv,$v,Lv,1,2,3,4,new In("m~RRYZ[z{a~~g~aO$b~~dP!P!Qg~lO$c~~",28,155)],topRules:{StyleSheet:[0,6],Styles:[1,129]},dynamicPrecedences:{97:1},specialized:[{term:150,get:t=>Mv[t]||-1},{term:151,get:t=>Nv[t]||-1},{term:4,get:t=>Xv[t]||-1},{term:28,get:t=>Zv[t]||-1},{term:149,get:t=>Fv[t]||-1}],tokenPrec:2444}),Zh=null;Gm=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),Ym=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),Vv=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),Bv=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),Ur=/^(\w[\w-]*|-\w[\w-]*|)$/,jv=/^-(-[\w-]*)?$/,qm=new pa,Uv=["Declaration"];Gv=t=>e=>{let{state:r,pos:i}=e,n=qe(r).resolveInner(i,-1),s=n.type.isError&&n.from==n.to-1&&r.doc.sliceString(n.from,n.to)=="-";if(n.name=="PropertyName"||(s||n.name=="TagName")&&/^(Block|Styles)$/.test(n.resolve(n.to).name))return{from:n.from,options:Fh(),validFor:Ur};if(n.name=="ValueName")return{from:n.from,options:Ym,validFor:Ur};if(n.name=="PseudoClassName")return{from:n.from,options:Gm,validFor:Ur};if(t(n)||(e.explicit||s)&&(function(l,h){var c;if((l.name=="("||l.type.isError)&&(l=l.parent||l),l.name!="ArgList")return!1;let u=(c=l.parent)===null||c===void 0?void 0:c.firstChild;return u?.name=="Callee"&&h.sliceString(u.from,u.to)=="var"})(n,r.doc))return{from:t(n)||s?n.from:i,options:m0(r.doc,Wv(n),t),validFor:jv};if(n.name=="TagName"){for(let{parent:l}=n;l;l=l.parent)if(l.name=="Block")return{from:n.from,options:Fh(),validFor:Ur};return{from:n.from,options:Vv,validFor:Ur}}if(n.name=="AtKeyword")return{from:n.from,options:Bv,validFor:Ur};if(!e.explicit)return null;let o=n.resolve(i),a=o.childBefore(i);return a&&a.name==":"&&o.name=="PseudoClassSelector"?{from:i,options:Gm,validFor:Ur}:a&&a.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:i,options:Ym,validFor:Ur}:o.name=="Block"||o.name=="Styles"?{from:i,options:Fh(),validFor:Ur}:null},Yv=Gv(t=>t.name=="VariableName"),Mn=$n.define({name:"css",parser:zv.configure({props:[el.add({Declaration:ua()}),Yu.add({"Block KeyframeList":t0})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});Ks=class{constructor(e,r,i,n){this.state=e,this.pos=r,this.explicit=i,this.view=n,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let r=qe(this.state).resolveInner(this.pos,-1);for(;r&&e.indexOf(r.name)<0;)r=r.parent;return r?{from:r.from,to:this.pos,text:this.state.sliceDoc(r.from,this.pos),type:r.type}:null}matchBefore(e){let r=this.state.doc.lineAt(this.pos),i=Math.max(r.from,this.pos-250),n=r.text.slice(i-r.from,this.pos-r.from),s=n.search(b0(e,!1));return s<0?null:{from:i+s,to:this.pos,text:n.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,r,i){e=="abort"&&this.abortListeners&&(this.abortListeners.push(r),i&&i.onDocChange&&(this.abortOnDocChange=!0))}};za=class{constructor(e,r,i,n){this.completion=e,this.source=r,this.match=i,this.score=n}};Hu=nr.define(),Km=new WeakMap;Va=Pe.define(),Js=Pe.define(),vu=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let r=0;r<e.length;){let i=fr(e,r),n=Yr(i);this.chars.push(i);let s=e.slice(r,r+n),o=s.toUpperCase();this.folded.push(fr(o==s?s.toLowerCase():o,0)),r+=n}this.astral=e.length!=this.chars.length}ret(e,r){return this.score=e,this.matched=r,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:r,folded:i,any:n,precise:s,byWord:o}=this;if(r.length==1){let w=fr(e,0),O=Yr(w),v=O==e.length?0:-100;if(w!=r[0]){if(w!=i[0])return null;v+=-200}return this.ret(v,[0,O])}let a=e.indexOf(this.pattern);if(a==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=r.length,h=0;if(a<0){for(let w=0,O=Math.min(e.length,200);w<O&&h<l;){let v=fr(e,w);v!=r[h]&&v!=i[h]||(n[h++]=w),w+=Yr(v)}if(h<l)return null}let c=0,u=0,f=!1,p=0,d=-1,y=-1,b=/[a-z]/.test(e),S=!0;for(let w=0,O=Math.min(e.length,200),v=0;w<O&&u<l;){let T=fr(e,w);a<0&&(c<l&&T==r[c]&&(s[c++]=w),p<l&&(T==r[p]||T==i[p]?(p==0&&(d=w),y=w+1,p++):p=0));let _,L=T<255?T>=48&&T<=57||T>=97&&T<=122?2:T>=65&&T<=90?1:0:(_=Mu(T))!=_.toLowerCase()?1:_!=_.toUpperCase()?2:0;(!w||L==1&&b||v==0&&L!=0)&&(r[u]==T||i[u]==T&&(f=!0)?o[u++]=w:o.length&&(S=!1)),v=L,w+=Yr(T)}return u==l&&o[0]==0&&S?this.result((f?-200:0)-100,o,e):p==l&&d==0?this.ret(-200-e.length+(y==e.length?0:-100),[0,y]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):p==l?this.ret(-900-e.length,[d,y]):u==l?this.result((f?-200:0)-100-700+(S?0:-1100),o,e):r.length==2?null:this.result((n[0]?-700:0)-200-1100,n,e)}result(e,r,i){let n=[],s=0;for(let o of r){let a=o+(this.astral?Yr(fr(i,o)):1);s&&n[s-1]==o?n[s-1]=a:(n[s++]=o,n[s++]=a)}return this.ret(e-i.length,n)}},wu=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let r=e.slice(0,this.pattern.length),i=r==this.pattern?0:r.toLowerCase()==this.folded?-200:null;return i==null?null:(this.matched=[0,r.length],this.score=i+(e.length==this.pattern.length?0:-100),this)}},ht=U.define({combine:t=>ni(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:Kv,filterStrict:!1,compareCompletions:(e,r)=>e.label.localeCompare(r.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,r)=>e&&r,closeOnBlur:(e,r)=>e&&r,icons:(e,r)=>e&&r,tooltipClass:(e,r)=>i=>Jm(e(i),r(i)),optionClass:(e,r)=>i=>Jm(e(i),r(i)),addToOptions:(e,r)=>e.concat(r),filterStrict:(e,r)=>e||r})});ku=class{constructor(e,r,i){this.view=e,this.stateField=r,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let n=e.state.field(r),{options:s,selected:o}=n.open,a=e.state.facet(ht);this.optionContent=(function(l){let h=l.addToOptions.slice();return l.icons&&h.push({render(c){let u=document.createElement("div");return u.classList.add("cm-completionIcon"),c.type&&u.classList.add(...c.type.split(/\s+/g).map(f=>"cm-completionIcon-"+f)),u.setAttribute("aria-hidden","true"),u},position:20}),h.push({render(c,u,f,p){let d=document.createElement("span");d.className="cm-completionLabel";let y=c.displayLabel||c.label,b=0;for(let S=0;S<p.length;){let w=p[S++],O=p[S++];w>b&&d.appendChild(document.createTextNode(y.slice(b,w)));let v=d.appendChild(document.createElement("span"));v.appendChild(document.createTextNode(y.slice(w,O))),v.className="cm-completionMatchedText",b=O}return b<y.length&&d.appendChild(document.createTextNode(y.slice(b))),d},position:50},{render(c){if(!c.detail)return null;let u=document.createElement("span");return u.className="cm-completionDetail",u.textContent=c.detail,u},position:80}),h.sort((c,u)=>c.position-u.position).map(c=>c.render)})(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=zh(s.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",l=>{let{options:h}=e.state.field(r).open;for(let c,u=l.target;u&&u!=this.dom;u=u.parentNode)if(u.nodeName=="LI"&&(c=/-(\d+)$/.exec(u.id))&&+c[1]<h.length)return this.applyCompletion(e,h[+c[1]]),void l.preventDefault()}),this.dom.addEventListener("focusout",l=>{let h=e.state.field(this.stateField,!1);h&&h.tooltip&&e.state.facet(ht).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:Js.of(null)})}),this.showOptions(s,n.id)}mount(){this.updateSel()}showOptions(e,r){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,r,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var r;let i=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=n){let{options:s,selected:o,disabled:a}=i.open;n.open&&n.open.options==s||(this.range=zh(s.length,o,e.state.facet(ht).maxRenderedOptions),this.showOptions(s,i.id)),this.updateSel(),a!=((r=n.open)===null||r===void 0?void 0:r.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let r=this.tooltipClass(e);if(r!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of r.split(" "))i&&this.dom.classList.add(i);this.currentClass=r}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),r=e.open;if((r.selected>-1&&r.selected<this.range.from||r.selected>=this.range.to)&&(this.range=zh(r.options.length,r.selected,this.view.state.facet(ht).maxRenderedOptions),this.showOptions(r.options,e.id)),this.updateSelectedOption(r.selected)){this.destroyInfo();let{completion:i}=r.options[r.selected],{info:n}=i;if(!n)return;let s=typeof n=="string"?document.createTextNode(n):n(i);if(!s)return;"then"in s?s.then(o=>{o&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(o,i)}).catch(o=>gr(this.view.state,o,"completion info")):this.addInfoPane(s,i)}}addInfoPane(e,r){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:n,destroy:s}=e;i.appendChild(n),this.infoDestroy=s||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let r=null;for(let i=this.list.firstChild,n=this.range.from;i;i=i.nextSibling,n++)i.nodeName=="LI"&&i.id?n==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),r=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected"):n--;return r&&(function(i,n){let s=i.getBoundingClientRect(),o=n.getBoundingClientRect(),a=s.height/i.offsetHeight;o.top<s.top?i.scrollTop-=(s.top-o.top)/a:o.bottom>s.bottom&&(i.scrollTop+=(o.bottom-s.bottom)/a)})(this.list,r),r}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let r=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),n=e.getBoundingClientRect(),s=this.space;if(!s){let o=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:o.innerWidth,bottom:o.innerHeight}}return n.top>Math.min(s.bottom,r.bottom)-10||n.bottom<Math.max(s.top,r.top)+10?null:this.view.state.facet(ht).positionInfo(this.view,r,n,i,s,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,r,i){let n=document.createElement("ul");n.id=r,n.setAttribute("role","listbox"),n.setAttribute("aria-expanded","true"),n.setAttribute("aria-label",this.view.state.phrase("Completions"));let s=null;for(let o=i.from;o<i.to;o++){let{completion:a,match:l}=e[o],{section:h}=a;if(h){let f=typeof h=="string"?h:h.name;f!=s&&(o>i.from||i.from==0)&&(s=f,typeof h!="string"&&h.header?n.appendChild(h.header(h)):n.appendChild(document.createElement("completion-section")).textContent=f)}let c=n.appendChild(document.createElement("li"));c.id=r+"-"+o,c.setAttribute("role","option");let u=this.optionClass(a);u&&(c.className=u);for(let f of this.optionContent){let p=f(a,this.view.state,this.view,l);p&&c.appendChild(p)}}return i.from&&n.classList.add("cm-completionListIncompleteTop"),i.to<e.length&&n.classList.add("cm-completionListIncompleteBottom"),n}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}};Tu=class t{constructor(e,r,i,n,s,o){this.options=e,this.attrs=r,this.tooltip=i,this.timestamp=n,this.selected=s,this.disabled=o}setSelected(e,r){return e==this.selected||e>=this.options.length?this:new t(this.options,tg(r,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,r,i,n,s,o){if(n&&!o&&e.some(h=>h.state==1))return n.setDisabled();let a=(function(h,c){let u=[],f=null,p=w=>{u.push(w);let{section:O}=w.completion;if(O){f||(f=[]);let v=typeof O=="string"?O:O.name;f.some(T=>T.name==v)||f.push(typeof O=="string"?{name:v}:O)}},d=c.facet(ht);for(let w of h)if(w.hasResult()){let O=w.result.getMatch;if(w.result.filter===!1)for(let v of w.result.options)p(new za(v,w.source,O?O(v):[],1e9-u.length));else{let v,T=c.sliceDoc(w.from,w.to),_=d.filterStrict?new wu(T):new vu(T);for(let L of w.result.options)if(v=_.match(L.label)){let R=L.displayLabel?O?O(L,v.matched):[]:v.matched;p(new za(L,w.source,R,v.score+(L.boost||0)))}}}if(f){let w=Object.create(null),O=0,v=(T,_)=>{var L,R;return((L=T.rank)!==null&&L!==void 0?L:1e9)-((R=_.rank)!==null&&R!==void 0?R:1e9)||(T.name<_.name?-1:1)};for(let T of f.sort(v))O-=1e5,w[T.name]=O;for(let T of u){let{section:_}=T.completion;_&&(T.score+=w[typeof _=="string"?_:_.name])}}let y=[],b=null,S=d.compareCompletions;for(let w of u.sort((O,v)=>v.score-O.score||S(O.completion,v.completion))){let O=w.completion;!b||b.label!=O.label||b.detail!=O.detail||b.type!=null&&O.type!=null&&b.type!=O.type||b.apply!=O.apply||b.boost!=O.boost?y.push(w):eg(w.completion)>eg(b)&&(y[y.length-1]=w),b=w.completion}return y})(e,r);if(!a.length)return n&&e.some(h=>h.state==1)?n.setDisabled():null;let l=r.facet(ht).selectOnOpen?0:-1;if(n&&n.selected!=l&&n.selected!=-1){let h=n.options[n.selected].completion;for(let c=0;c<a.length;c++)if(a[c].completion==h){l=c;break}}return new t(a,tg(i,l),{pos:e.reduce((h,c)=>c.hasResult()?Math.min(h,c.from):h,1e8),create:iw,above:s.aboveCursor},n?n.timestamp:Date.now(),l,!1)}map(e){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new t(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},Pu=class t{constructor(e,r,i){this.active=e,this.id=r,this.open=i}static start(){return new t(rw,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:r}=e,i=r.facet(ht),n=(i.override||r.languageDataAt("autocomplete",Ti(r)).map(Hv)).map(a=>(this.active.find(l=>l.source==a)||new Hr(a,this.active.some(l=>l.state!=0)?1:0)).update(e,i));n.length==this.active.length&&n.every((a,l)=>a==this.active[l])&&(n=this.active);let s=this.open,o=e.effects.some(a=>a.is(Ku));s&&e.docChanged&&(s=s.map(e.changes)),e.selection||n.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!(function(a,l){if(a==l)return!0;for(let h=0,c=0;;){for(;h<a.length&&!a[h].hasResult;)h++;for(;c<l.length&&!l[c].hasResult;)c++;let u=h==a.length,f=c==l.length;if(u||f)return u==f;if(a[h++].result!=l[c++].result)return!1}})(n,this.active)||o?s=Tu.build(n,r,this.id,s,i,o):s&&s.disabled&&!n.some(a=>a.state==1)&&(s=null),!s&&n.every(a=>a.state!=1)&&n.some(a=>a.hasResult())&&(n=n.map(a=>a.hasResult()?new Hr(a.source,0):a));for(let a of e.effects)a.is(S0)&&(s=s&&s.setSelected(a.value,this.id));return n==this.active&&s==this.open?this:new t(n,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?ew:tw}},ew={"aria-autocomplete":"list"},tw={};rw=[];Hr=class t{constructor(e,r,i=-1){this.source=e,this.state=r,this.explicitPos=i}hasResult(){return!1}update(e,r){let i=y0(e,r),n=this;(8&i||16&i&&this.touches(e))&&(n=new t(n.source,0)),4&i&&n.state==0&&(n=new t(this.source,1)),n=n.updateFor(e,i);for(let s of e.effects)if(s.is(Va))n=new t(n.source,1,s.value?Ti(e.state):-1);else if(s.is(Js))n=new t(n.source,0);else if(s.is(Ku))for(let o of s.value)o.source==n.source&&(n=o);return n}updateFor(e,r){return this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new t(this.source,this.state,e.mapPos(this.explicitPos))}touches(e){return e.changes.touchesRange(Ti(e.state))}},Ba=class t extends Hr{constructor(e,r,i,n,s){super(e,2,r),this.result=i,this.from=n,this.to=s}hasResult(){return!0}updateFor(e,r){var i;if(!(3&r))return this.map(e.changes);let n=this.result;n.map&&!e.changes.empty&&(n=n.map(n,e.changes));let s=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),a=Ti(e.state);if((this.explicitPos<0?a<=s:a<this.from)||a>o||!n||2&r&&Ti(e.startState)==this.from)return new Hr(this.source,4&r?1:0);let l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return(function(h,c,u,f){if(!h)return!1;let p=c.sliceDoc(u,f);return typeof h=="function"?h(p,u,f,c):b0(h,!0).test(p)})(n.validFor,e.state,s,o)?new t(this.source,l,n,s,o):n.update&&(n=n.update(n,s,o,new Ks(e.state,a,l>=0)))?new t(this.source,l,n,n.from,(i=n.to)!==null&&i!==void 0?i:Ti(e.state)):new Hr(this.source,1,l)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new t(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Hr(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}},Ku=Pe.define({map:(t,e)=>t.map(r=>r.map(e))}),S0=Pe.define(),zt=Mt.define({create:()=>Pu.start(),update:(t,e)=>t.update(e),provide:t=>[Wu.from(t,e=>e.tooltip),re.contentAttributes.from(t,e=>e.attrs)]});iw=Jv(zt,Ju);x0=t=>{let e=t.state.field(zt,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(ht).interactionDelay)&&Ju(t,e.open.options[e.open.selected])},Cu=t=>!!t.state.field(zt,!1)&&(t.dispatch({effects:Va.of(!0)}),!0),v0=t=>{let e=t.state.field(zt,!1);return!(!e||!e.active.some(r=>r.state!=0))&&(t.dispatch({effects:Js.of(null)}),!0)},Au=class{constructor(e,r){this.active=e,this.context=r,this.time=Date.now(),this.updates=[],this.done=void 0}},_2=wt.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(zt).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(zt),r=t.state.facet(ht);if(!t.selectionSet&&!t.docChanged&&t.startState.field(zt)==e)return;let i=t.transactions.some(s=>{let o=y0(s,r);return 8&o||(s.selection||s.docChanged)&&!(3&o)});for(let s=0;s<this.running.length;s++){let o=this.running[s];if(i||o.context.abortOnDocChange&&t.docChanged||o.updates.length+t.transactions.length>50&&Date.now()-o.time>1e3){for(let a of o.context.abortListeners)try{a()}catch(l){gr(this.view.state,l)}o.context.abortListeners=null,this.running.splice(s--,1)}else o.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(s=>s.effects.some(o=>o.is(Va)))&&(this.pendingStart=!0);let n=this.pendingStart?50:r.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(s=>s.state==1&&!this.running.some(o=>o.active.source==s.source))?setTimeout(()=>this.startUpdate(),n):-1,this.composing!=0)for(let s of t.transactions)s.isUserEvent("input.type")?this.composing=2:this.composing==2&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(zt);for(let r of e.active)r.state!=1||this.running.some(i=>i.active.source==r.source)||this.startQuery(r);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ht).updateSyncTime))}startQuery(t){let{state:e}=this.view,r=Ti(e),i=new Ks(e,r,t.explicitPos==r,this.view),n=new Au(t,i);this.running.push(n),Promise.resolve(t.source(i)).then(s=>{n.context.aborted||(n.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:Js.of(null)}),gr(this.view.state,s)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ht).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],r=this.view.state.facet(ht),i=this.view.state.field(zt);for(let n=0;n<this.running.length;n++){let s=this.running[n];if(s.done===void 0)continue;if(this.running.splice(n--,1),s.done){let a=new Ba(s.active.source,s.active.explicitPos,s.done,s.done.from,(t=s.done.to)!==null&&t!==void 0?t:Ti(s.updates.length?s.updates[0].startState:this.view.state));for(let l of s.updates)a=a.update(l,r);if(a.hasResult()){e.push(a);continue}}let o=i.active.find(a=>a.source==s.active.source);if(o&&o.state==1)if(s.done==null){let a=new Hr(s.active.source,0);for(let l of s.updates)a=a.update(l,r);a.state!=1&&e.push(a)}else this.startQuery(o)}(e.length||i.open&&i.open.disabled)&&this.view.dispatch({effects:Ku.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(zt,!1);if(e&&e.tooltip&&this.view.state.facet(ht).closeOnBlur){let r=e.open&&WO(this.view,e.open.tooltip);r&&r.dom.contains(t.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:Js.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Va.of(!1)}),20),this.composing=0}}}),nw=typeof navigator=="object"&&/Win/.test(navigator.platform),I2=ii.highest(re.domEventHandlers({keydown(t,e){let r=e.state.field(zt,!1);if(!r||!r.open||r.open.disabled||r.open.selected<0||t.key.length>1||t.ctrlKey&&(!nw||!t.altKey)||t.metaKey)return!1;let i=r.open.options[r.open.selected],n=r.active.find(o=>o.source==i.source),s=i.completion.commitCharacters||n.result.commitCharacters;return s&&s.indexOf(t.key)>-1&&Ju(e,i),!1}})),sw=re.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),Eu=class{constructor(e,r,i,n){this.field=e,this.line=r,this.from=i,this.to=n}},Qu=class t{constructor(e,r,i){this.field=e,this.from=r,this.to=i}map(e){let r=e.mapPos(this.from,-1,lt.TrackDel),i=e.mapPos(this.to,1,lt.TrackDel);return r==null||i==null?null:new t(this.field,r,i)}},Ru=class t{constructor(e,r){this.lines=e,this.fieldPositions=r}instantiate(e,r){let i=[],n=[r],s=e.doc.lineAt(r),o=/^\s*/.exec(s.text)[0];for(let l of this.lines){if(i.length){let h=o,c=/^\t*/.exec(l)[0].length;for(let u=0;u<c;u++)h+=e.facet(Ja);n.push(r+h.length-c),l=h+l.slice(c)}i.push(l),r+=l.length+1}let a=this.fieldPositions.map(l=>new Qu(l.field,n[l.line]+l.from,n[l.line]+l.to));return{text:i,ranges:a}}static parse(e){let r,i=[],n=[],s=[];for(let o of e.split(/\r\n?|\n/)){for(;r=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o);){let a=r[1]?+r[1]:null,l=r[2]||r[3]||"",h=-1,c=l.replace(/\\[{}]/g,u=>u[1]);for(let u=0;u<i.length;u++)(a!=null?i[u].seq==a:c&&i[u].name==c)&&(h=u);if(h<0){let u=0;for(;u<i.length&&(a==null||i[u].seq!=null&&i[u].seq<a);)u++;i.splice(u,0,{seq:a,name:c}),h=u;for(let f of s)f.field>=h&&f.field++}s.push(new Eu(h,n.length,r.index,r.index+c.length)),o=o.slice(0,r.index)+l+o.slice(r.index+r[0].length)}o=o.replace(/\\([{}])/g,(a,l,h)=>{for(let c of s)c.line==n.length&&c.from>h&&(c.from--,c.to--);return l}),n.push(o)}return new t(n,s)}},ow=ce.widget({widget:new class extends ri{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),aw=ce.mark({class:"cm-snippetField"}),Nn=class t{constructor(e,r){this.ranges=e,this.active=r,this.deco=ce.set(e.map(i=>(i.from==i.to?ow:aw).range(i.from,i.to)))}map(e){let r=[];for(let i of this.ranges){let n=i.map(e);if(!n)return null;r.push(n)}return new t(r,this.active)}selectionInsideField(e){return e.ranges.every(r=>this.ranges.some(i=>i.field==this.active&&i.from<=r.from&&i.to>=r.to))}},to=Pe.define({map:(t,e)=>t&&t.map(e)}),lw=Pe.define(),eo=Mt.define({create:()=>null,update(t,e){for(let r of e.effects){if(r.is(to))return r.value;if(r.is(lw)&&t)return new Nn(t.ranges,r.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>re.decorations.from(t,e=>e?e.deco:ce.none)});cw=[{key:"Tab",run:rg(1),shift:rg(-1)},{key:"Escape",run:({state:t,dispatch:e})=>!!t.field(eo,!1)&&(e(t.update({effects:to.of(null)})),!0)}],ig=U.define({combine:t=>t.length?t[0]:cw}),uw=ii.highest(Ha.compute([ig],t=>t.facet(ig)));fw=re.domEventHandlers({mousedown(t,e){let r,i=e.state.field(eo,!1);if(!i||(r=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let n=i.ranges.find(s=>s.from<=r&&s.to>=r);return!(!n||n.field==i.active)&&(e.dispatch({selection:ef(i.ranges,n.field),effects:to.of(i.ranges.some(s=>s.field>n.field)?new Nn(i.ranges,n.field):null),scrollIntoView:!0}),!0)}}),ja={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Vi=Pe.define({map(t,e){let r=e.mapPos(t,-1,lt.TrackAfter);return r??void 0}}),$u=new class extends qr{};$u.startSide=1,$u.endSide=-1;pw=Mt.define({create:()=>Be.empty,update(t,e){if(t=t.map(e.changes),e.selection){let r=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:i=>i>=r.from&&i<=r.to})}for(let r of e.effects)r.is(Vi)&&(t=t.update({add:[$u.range(r.value,r.value+1)]}));return t}}),ng="()[]{}<>";gw=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),D2=re.inputHandler.of((t,e,r,i)=>{if((gw?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let n=t.state.selection.main;if(i.length>2||i.length==2&&Yr(fr(i,0))==1||e!=n.from||r!=n.to)return!1;let s=(function(o,a){let l=mw(o,o.selection.main.head),h=l.brackets||ja.brackets;for(let c of h){let u=dw(fr(c,0));if(a==c)return u==c?yw(o,c,h.indexOf(c+c+c)>-1,l):Ow(o,c,u,l.before||ja.before);if(a==u&&w0(o,o.selection.main.from))return bw(o,c,u)}return null})(t.state,i);return!!s&&(t.dispatch(s),!0)});Sw=[{key:"Ctrl-Space",run:Cu},{mac:"Alt-`",run:Cu},{key:"Escape",run:v0},{key:"ArrowDown",run:Ps(!0)},{key:"ArrowUp",run:Ps(!1)},{key:"PageDown",run:Ps(!0,"page")},{key:"PageUp",run:Ps(!1,"page")},{key:"Enter",run:x0}],M2=ii.highest(Ha.computeN([ht],t=>t.facet(ht).defaultKeymap?[Sw]:[]));N2=k0(xw,0),X2=k0((t,e)=>(function(r,i,n=i.selection.ranges){let s=n.map(a=>T0(i,a.from).block);if(!s.every(a=>a))return null;let o=n.map((a,l)=>(function(h,{open:c,close:u},f,p){let d,y,b=h.sliceDoc(f-gs,f),S=h.sliceDoc(p,p+gs),w=/\s*$/.exec(b)[0].length,O=/^\s*/.exec(S)[0].length,v=b.length-w;if(b.slice(v-c.length,v)==c&&S.slice(O,O+u.length)==u)return{open:{pos:f-w,margin:w&&1},close:{pos:p+O,margin:O&&1}};p-f<=2*gs?d=y=h.sliceDoc(f,p):(d=h.sliceDoc(f,f+gs),y=h.sliceDoc(p-gs,p));let T=/^\s*/.exec(d)[0].length,_=/\s*$/.exec(y)[0].length,L=y.length-_-u.length;return d.slice(T,T+c.length)==c&&y.slice(L,L+u.length)==u?{open:{pos:f+T+c.length,margin:/\s/.test(d.charAt(T+c.length))?1:0},close:{pos:p-_-u.length,margin:/\s/.test(y.charAt(L-1))?1:0}}:null})(i,s[l],a.from,a.to));if(r!=2&&!o.every(a=>a))return{changes:i.changes(n.map((a,l)=>o[l]?[]:[{from:a.from,insert:s[l].open+" "},{from:a.to,insert:" "+s[l].close}]))};if(r!=1&&o.some(a=>a)){let a=[];for(let l,h=0;h<o.length;h++)if(l=o[h]){let c=s[h],{open:u,close:f}=l;a.push({from:u.pos-c.open.length,to:u.pos+u.margin},{from:f.pos-f.margin,to:f.pos+c.close.length})}return{changes:a}}return null})(t,e,(function(r){let i=[];for(let n of r.selection.ranges){let s=r.doc.lineAt(n.from),o=n.to<=s.to?s:r.doc.lineAt(n.to),a=i.length-1;a>=0&&i[a].to>s.from?i[a].to=o.to:i.push({from:s.from+/^\s*/.exec(s.text)[0].length,to:o.to})}return i})(e)),0);gs=50;Lu=nr.define(),vw=nr.define(),ww=U.define(),kw=U.define({combine:t=>ni(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,r)=>r},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,r)=>(i,n)=>e(i,n)||r(i,n)})}),Tw=Mt.define({create:()=>ji.empty,update(t,e){let r=e.state.facet(kw),i=e.annotation(Lu);if(i){let l=e.docChanged?V.single((function(f){let p=0;return f.iterChangedRanges((d,y)=>p=y),p})(e.changes)):void 0,h=mr.fromTransaction(e,l),c=i.side,u=c==0?t.undone:t.done;return u=h?Ua(u,u.length,r.minDepth,h):C0(u,e.startState.selection),new ji(c==0?i.rest:u,c==0?u:i.rest)}let n=e.annotation(vw);if(n!="full"&&n!="before"||(t=t.isolate()),e.annotation(nt.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let s=mr.fromTransaction(e),o=e.annotation(nt.time),a=e.annotation(nt.userEvent);return s?t=t.addChanges(s,o,a,r,e):e.selection&&(t=t.addSelection(e.startState.selection,o,a,r.newGroupDelay)),n!="full"&&n!="after"||(t=t.isolate()),t},toJSON:t=>({done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}),fromJSON:t=>new ji(t.done.map(mr.fromJSON),t.undone.map(mr.fromJSON))});Pw=tl(0,!1),Cw=tl(1,!1),Aw=tl(0,!0),Ew=tl(1,!0),mr=class t{constructor(e,r,i,n,s){this.changes=e,this.effects=r,this.mapped=i,this.startSelection=n,this.selectionsAfter=s}setSelAfter(e){return new t(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,r,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(r=this.mapped)===null||r===void 0?void 0:r.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(n=>n.toJSON())}}static fromJSON(e){return new t(e.changes&&Dt.fromJSON(e.changes),[],e.mapped&&Kr.fromJSON(e.mapped),e.startSelection&&V.fromJSON(e.startSelection),e.selectionsAfter.map(V.fromJSON))}static fromTransaction(e,r){let i=sr;for(let n of e.startState.facet(ww)){let s=n(e);s.length&&(i=i.concat(s))}return!i.length&&e.changes.empty?null:new t(e.changes.invert(e.startState.doc),i,void 0,r||e.startState.selection,sr)}static selection(e){return new t(void 0,sr,void 0,void 0,e)}};sr=[],Qw=200;Lw=/^(input\.type|delete)($|\.)/,ji=class t{constructor(e,r,i=0,n=void 0){this.done=e,this.undone=r,this.prevTime=i,this.prevUserEvent=n}isolate(){return this.prevTime?new t(this.done,this.undone):this}addChanges(e,r,i,n,s){let o=this.done,a=o[o.length-1];return o=a&&a.changes&&!a.changes.empty&&e.changes&&(!i||Lw.test(i))&&(!a.selectionsAfter.length&&r-this.prevTime<n.newGroupDelay&&n.joinToEvent(s,(function(l,h){let c=[],u=!1;return l.iterChangedRanges((f,p)=>c.push(f,p)),h.iterChangedRanges((f,p,d,y)=>{for(let b=0;b<c.length;){let S=c[b++],w=c[b++];y>=S&&d<=w&&(u=!0)}}),u})(a.changes,e.changes))||i=="input.type.compose")?Ua(o,o.length-1,n.minDepth,new mr(e.changes.compose(a.changes),P0(e.effects,a.effects),a.mapped,a.startSelection,sr)):Ua(o,o.length,n.minDepth,e),new t(o,sr,r,i)}addSelection(e,r,i,n){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:sr;return s.length>0&&r-this.prevTime<n&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&(o=s[s.length-1],a=e,o.ranges.length==a.ranges.length&&o.ranges.filter((l,h)=>l.empty!=a.ranges[h].empty).length===0)?this:new t(C0(this.done,e),this.undone,r,i);var o,a}addMapping(e){return new t(Vh(this.done,e),Vh(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,r,i){let n=e==0?this.done:this.undone;if(n.length==0)return null;let s=n[n.length-1];if(i&&s.selectionsAfter.length)return r.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:Lu.of({side:e,rest:Rw(n)}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let o=n.length==1?sr:n.slice(0,n.length-1);return s.mapped&&(o=Vh(o,s.mapped)),r.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:Lu.of({side:e,rest:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}return null}};ji.empty=new ji(sr,sr);ag=t=>A0(t,!or(t)),lg=t=>A0(t,or(t));Q0=t=>E0(t,!or(t)),R0=t=>E0(t,or(t));hg=t=>$0(t,!1),cg=t=>$0(t,!0);ug=t=>_0(t,!1),Bh=t=>_0(t,!0);fg=t=>I0(t,!or(t)),pg=t=>I0(t,or(t));M0=t=>D0(t,!or(t)),N0=t=>D0(t,or(t));dg=t=>X0(t,!1),mg=t=>X0(t,!0);gg=t=>Z0(t,!1),Og=t=>Z0(t,!0),bg=({state:t,dispatch:e})=>(e(en(t,{anchor:0})),!0),yg=({state:t,dispatch:e})=>(e(en(t,{anchor:t.doc.length})),!0),Sg=({state:t,dispatch:e})=>(e(en(t,{anchor:t.selection.main.anchor,head:0})),!0),xg=({state:t,dispatch:e})=>(e(en(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0);F0=(t,e)=>Is(t,r=>{let i,n,s=r.from,{state:o}=t,a=o.doc.lineAt(s);if(!e&&s>a.from&&s<a.from+200&&!/[^ \t]/.test(i=a.text.slice(0,s-a.from))){if(i[i.length-1]==" ")return s-1;let l=Zu(i,o.tabSize)%ou(o)||ou(o);for(let h=0;h<l&&i[i.length-1-h]==" ";h++)s--;n=s}else n=_t(a.text,s-a.from,e,e)+a.from,n==s&&a.number!=(e?o.doc.lines:1)&&(n+=e?1:-1);return n}),jh=t=>F0(t,!1),vg=t=>F0(t,!0),z0=(t,e)=>Is(t,r=>{let i=r.head,{state:n}=t,s=n.doc.lineAt(i),o=n.charCategorizer(i);for(let a=null;;){if(i==(e?s.to:s.from)){i==r.head&&s.number!=(e?n.doc.lines:1)&&(i+=e?1:-1);break}let l=_t(s.text,i-s.from,e)+s.from,h=s.text.slice(Math.min(i,l)-s.from,Math.max(i,l)-s.from),c=o(h);if(a!=null&&c!=a)break;h==" "&&i==r.head||(a=c),i=l}return i}),wg=t=>z0(t,!1),V0=_w(!1);Iw=[{key:"ArrowLeft",run:ag,shift:fg,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Q0,shift:M0,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:t=>Gr(t,e=>bi(t,e,!or(t))),shift:t=>$r(t,e=>bi(t,e,!or(t))),preventDefault:!0},{key:"ArrowRight",run:lg,shift:pg,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:R0,shift:N0,preventDefault:!0},{mac:"Cmd-ArrowRight",run:t=>Gr(t,e=>bi(t,e,or(t))),shift:t=>$r(t,e=>bi(t,e,or(t))),preventDefault:!0},{key:"ArrowUp",run:hg,shift:dg,preventDefault:!0},{mac:"Cmd-ArrowUp",run:bg,shift:Sg},{mac:"Ctrl-ArrowUp",run:ug,shift:gg},{key:"ArrowDown",run:cg,shift:mg,preventDefault:!0},{mac:"Cmd-ArrowDown",run:yg,shift:xg},{mac:"Ctrl-ArrowDown",run:Bh,shift:Og},{key:"PageUp",run:ug,shift:gg},{key:"PageDown",run:Bh,shift:Og},{key:"Home",run:t=>Gr(t,e=>bi(t,e,!1)),shift:t=>$r(t,e=>bi(t,e,!1)),preventDefault:!0},{key:"Mod-Home",run:bg,shift:Sg},{key:"End",run:t=>Gr(t,e=>bi(t,e,!0)),shift:t=>$r(t,e=>bi(t,e,!0)),preventDefault:!0},{key:"Mod-End",run:yg,shift:xg},{key:"Enter",run:V0},{key:"Mod-a",run:({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:jh,shift:jh},{key:"Delete",run:vg},{key:"Mod-Backspace",mac:"Alt-Backspace",run:wg},{key:"Mod-Delete",mac:"Alt-Delete",run:t=>z0(t,!0)},{mac:"Mod-Backspace",run:t=>Is(t,e=>{let r=t.moveToLineBoundary(e,!1).head;return e.head>r?r:Math.max(0,e.head-1)})},{mac:"Mod-Delete",run:t=>Is(t,e=>{let r=t.moveToLineBoundary(e,!0).head;return e.head<r?r:Math.min(t.state.doc.length,e.head+1)})}].concat([{key:"Ctrl-b",run:ag,shift:fg,preventDefault:!0},{key:"Ctrl-f",run:lg,shift:pg},{key:"Ctrl-p",run:hg,shift:dg},{key:"Ctrl-n",run:cg,shift:mg},{key:"Ctrl-a",run:t=>Gr(t,e=>V.cursor(t.lineBlockAt(e.head).from,1)),shift:t=>$r(t,e=>V.cursor(t.lineBlockAt(e.head).from))},{key:"Ctrl-e",run:t=>Gr(t,e=>V.cursor(t.lineBlockAt(e.head).to,-1)),shift:t=>$r(t,e=>V.cursor(t.lineBlockAt(e.head).to))},{key:"Ctrl-d",run:vg},{key:"Ctrl-h",run:jh},{key:"Ctrl-k",run:t=>Is(t,e=>{let r=t.lineBlockAt(e.head).to;return e.head<r?r:Math.min(t.state.doc.length,e.head+1)})},{key:"Ctrl-Alt-h",run:wg},{key:"Ctrl-o",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:Te.of(["",""])},range:V.cursor(i.from)}));return e(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{if(!i.empty||i.from==0||i.from==t.doc.length)return{range:i};let n=i.from,s=t.doc.lineAt(n),o=n==s.from?n-1:_t(s.text,n-s.from,!1)+s.from,a=n==s.to?n+1:_t(s.text,n-s.from,!0)+s.from;return{changes:{from:o,to:a,insert:t.doc.slice(n,a).append(t.doc.slice(o,n))},range:V.cursor(a)}});return!r.changes.empty&&(e(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Bh}].map(t=>({mac:t.key,run:t.run,shift:t.shift}))),Dw={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},Mw={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},kg={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};Tg=null,Pg=null,Cg=0;Xw=63,Zw=33;Fw=[6,10,7,8,9],zw=new Fa({start:null,shift:(t,e,r,i)=>Fw.indexOf(e)>-1?new Ag(_u(i,1)||"",t):t,reduce:(t,e)=>e==20&&t?t.parent:t,reuse(t,e,r,i){let n=e.type.id;return n==6||n==36?new Ag(_u(i,1)||"",t):t},strict:!1}),Vw=new kt((t,e)=>{if(t.next!=60)return void(t.next<0&&e.context&&t.acceptToken(57));t.advance();let r=t.next==47;r&&t.advance();let i=_u(t,0);if(i===void 0)return;if(!i)return t.acceptToken(r?14:6);let n=e.context?e.context.name:null;if(r){if(i==n)return t.acceptToken(11);if(n&&Mw[n])return t.acceptToken(57,-2);if(e.dialectEnabled(0))return t.acceptToken(12);for(let s=e.context;s;s=s.parent)if(s.name==i)return;t.acceptToken(13)}else{if(i=="script")return t.acceptToken(7);if(i=="style")return t.acceptToken(8);if(i=="textarea")return t.acceptToken(9);if(Dw.hasOwnProperty(i))return t.acceptToken(10);n&&kg[n]&&kg[n][i]?t.acceptToken(57,-1):t.acceptToken(6)}},{contextual:!0}),Bw=new kt(t=>{for(let e=0,r=0;;r++){if(t.next<0){r&&t.acceptToken(58);break}if(t.next==45)e++;else{if(t.next==62&&e>=2){r>=3&&t.acceptToken(58,-2);break}e=0}t.advance()}}),jw=new kt((t,e)=>{if(t.next==47&&t.peek(1)==62){let r=e.dialectEnabled(1)||(function(i){for(;i;i=i.parent)if(i.name=="svg"||i.name=="math")return!0;return!1})(e.context);t.acceptToken(r?5:4,2)}else t.next==62&&t.acceptToken(4,1)});Uw=nf("script",54,1),Ww=nf("style",55,2),Gw=nf("textarea",56,3),Yw=Ka({"Text RawText":C.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":C.angleBracket,TagName:C.tagName,"MismatchedCloseTag/TagName":[C.tagName,C.invalid],AttributeName:C.attributeName,"AttributeValue UnquotedAttributeValue":C.attributeValue,Is:C.definitionOperator,"EntityReference CharacterReference":C.character,Comment:C.blockComment,ProcessingInst:C.processingInstruction,DoctypeDecl:C.documentMeta}),qw=Dn.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|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!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"\u26A0 StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:zw,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[Yw],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&X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ialects:{noMatch:0,selfClosing:509},tokenPrec:511});Iu=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Hw=new Fa({start:!1,shift:(t,e)=>e==5||e==6||e==320?t:e==321,strict:!1}),Kw=new kt((t,e)=>{let{next:r}=t;(r==125||r==-1||e.context)&&t.acceptToken(318)},{contextual:!0,fallback:!0}),Jw=new kt((t,e)=>{let r,{next:i}=t;Iu.indexOf(i)>-1||(i!=47||(r=t.peek(1))!=47&&r!=42)&&(i==125||i==59||i==-1||e.context||t.acceptToken(316))},{contextual:!0}),ek=new kt((t,e)=>{t.next!=91||e.context||t.acceptToken(317)},{contextual:!0}),tk=new kt((t,e)=>{let{next:r}=t;if(r==43||r==45){if(t.advance(),r==t.next){t.advance();let i=!e.context&&e.canShift(1);t.acceptToken(i?1:2)}}else r==63&&t.peek(1)==46&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(3))},{contextual:!0});rk=new kt((t,e)=>{if(t.next!=60||!e.dialectEnabled(0)||(t.advance(),t.next==47))return;let r=0;for(;Iu.indexOf(t.next)>-1;)t.advance(),r++;if(Wh(t.next,!0)){for(t.advance(),r++;Wh(t.next,!1);)t.advance(),r++;for(;Iu.indexOf(t.next)>-1;)t.advance(),r++;if(t.next==44)return;for(let i=0;;i++){if(i==7){if(!Wh(t.next,!0))return;break}if(t.next!="extends".charCodeAt(i))break;t.advance(),r++}}t.acceptToken(4,-r)}),ik=Ka({"get set async static":C.modifier,"for while do if else switch try catch finally return throw break continue default case defer":C.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":C.operatorKeyword,"let var const using function class extends":C.definitionKeyword,"import export from":C.moduleKeyword,"with debugger new":C.keyword,TemplateString:C.special(C.string),super:C.atom,BooleanLiteral:C.bool,this:C.self,null:C.null,Star:C.modifier,VariableName:C.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":C.function(C.variableName),VariableDefinition:C.definition(C.variableName),Label:C.labelName,PropertyName:C.propertyName,PrivatePropertyName:C.special(C.propertyName),"CallExpression/MemberExpression/PropertyName":C.function(C.propertyName),"FunctionDeclaration/VariableDefinition":C.function(C.definition(C.variableName)),"ClassDeclaration/VariableDefinition":C.definition(C.className),"NewExpression/VariableName":C.className,PropertyDefinition:C.definition(C.propertyName),PrivatePropertyDefinition:C.definition(C.special(C.propertyName)),UpdateOp:C.updateOperator,"LineComment Hashbang":C.lineComment,BlockComment:C.blockComment,Number:C.number,String:C.string,Escape:C.escape,ArithOp:C.arithmeticOperator,LogicOp:C.logicOperator,BitOp:C.bitwiseOperator,CompareOp:C.compareOperator,RegExp:C.regexp,Equals:C.definitionOperator,Arrow:C.function(C.punctuation),": Spread":C.punctuation,"( )":C.paren,"[ ]":C.squareBracket,"{ }":C.brace,"InterpolationStart InterpolationEnd":C.special(C.brace),".":C.derefOperator,", ;":C.separator,"@":C.meta,TypeName:C.typeName,TypeDefinition:C.definition(C.typeName),"type enum interface implements namespace module declare":C.definitionKeyword,"abstract global Privacy readonly override":C.modifier,"is keyof unique infer asserts":C.operatorKeyword,JSXAttributeValue:C.attributeValue,JSXText:C.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":C.angleBracket,"JSXIdentifier JSXNameSpacedName":C.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":C.attributeName,"JSXBuiltin/JSXIdentifier":C.standard(C.tagName)}),nk={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},sk={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},ok={__proto__:null,"<":193},ak=Dn.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I_'#I_Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GsO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EyO;hQMhO'#FeO;xQ`O'#GsOOQO'#K`'#K`O;}Q`O'#K`O<]Q`O'#G{O<]Q`O'#G|O<]Q`O'#HOO9kQ`O'#HRO=SQ`O'#HUO>kQ`O'#CeO>{Q`O'#HcO?TQ`O'#HiO?TQ`O'#HkO`QlO'#HmO?TQ`O'#HoO?TQ`O'#HrO?YQ`O'#HxO?_Q!0LsO'#IOO%[QlO'#IQO?jQ!0LsO'#ISO?uQ!0LsO'#IUO9uQ!0LrO'#IWO@QQ!0MxO'#CiOASQpO'#DlQOQ`OOO%[QlO'#EQOAjQ`O'#ETO:dQMhO'#EnOAuQ`O'#EnOBQQ!bO'#FeOOQ['#Cg'#CgOOQ!0Lb'#Dq'#DqOOQ!0Lb'#Jv'#JvO%[Q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#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m'X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-['X+[T.O(T.TV'^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:"\u26A0 ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:Hw,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205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q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new In("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:t=>nk[t]||-1},{term:343,get:t=>sk[t]||-1},{term:95,get:t=>ok[t]||-1}],tokenPrec:15201}),sf=[Lt("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Lt("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Lt("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Lt("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Lt("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Lt(`try {
11
+ \${}
12
+ } catch (\${error}) {
13
+ \${}
14
+ }`,{label:"try",detail:"/ catch block",type:"keyword"}),Lt("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Lt(`if (\${}) {
15
+ \${}
16
+ } else {
17
+ \${}
18
+ }`,{label:"if",detail:"/ else block",type:"keyword"}),Lt(`class \${name} {
19
+ constructor(\${params}) {
20
+ \${}
21
+ }
22
+ }`,{label:"class",detail:"definition",type:"keyword"}),Lt('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Lt('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],W0=sf.concat([Lt("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Lt("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Lt("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Qg=new pa,G0=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);lk=["FunctionDeclaration"],hk={FunctionDeclaration:Os("function"),ClassDeclaration:Os("class"),ClassExpression:()=>!0,EnumDeclaration:Os("constant"),TypeAliasDeclaration:Os("type"),NamespaceDeclaration:Os("namespace"),VariableDefinition(t,e){t.matchContext(lk)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};Wa=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,of=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];ar=$n.define({name:"javascript",parser:ak.configure({props:[el.add({IfStatement:ua({except:/^\s*({|else\b)/}),TryStatement:ua({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Ov,SwitchBody:t=>{let e=t.textAfter,r=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return t.baseIndent+(r?0:i?1:2)*t.unit},Block:gv({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":ua({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag":t=>t.column(t.node.from)+t.unit}),Yu.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":t0,BlockComment:t=>({from:t.from+2,to:t.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),H0={test:t=>/^JSX/.test(t.name),facet:HO({commentTokens:{block:{open:"{/*",close:"*/}"}}})},af=ar.configure({dialect:"ts"},"typescript"),lf=ar.configure({dialect:"jsx",props:[Gu.add(t=>t.isTop?[H0]:void 0)]}),hf=ar.configure({dialect:"jsx ts",props:[Gu.add(t=>t.isTop?[H0]:void 0)]},"typescript"),K0=t=>({label:t,type:"keyword"}),J0="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(K0),ck=J0.concat(["declare","implements","private","protected","public"].map(K0));uk=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),tb=re.inputHandler.of((t,e,r,i,n)=>{if((uk?t.composing:t.compositionStarted)||t.state.readOnly||e!=r||i!=">"&&i!="/"||!ar.isActiveAt(t.state,e,-1))return!1;let s=n(),{state:o}=s,a=o.changeByRange(l=>{var h;let c,{head:u}=l,f=qe(o).resolveInner(u-1,-1);if(f.name=="JSXStartTag"&&(f=f.parent),!(o.doc.sliceString(u-1,u)!=i||f.name=="JSXAttributeValue"&&f.to>u)){if(i==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:u,insert:"</>"}};if(i=="/"&&f.name=="JSXStartCloseTag"){let p=f.parent,d=p.parent;if(d&&p.from==u-2&&((c=$g(o.doc,d.firstChild,u))||((h=d.firstChild)===null||h===void 0?void 0:h.name)=="JSXFragmentTag")){let y=`${c}>`;return{range:V.cursor(u+y.length,-1),changes:{from:u,insert:y}}}}else if(i==">"){let p=(function(d){for(;;){if(d.name=="JSXOpenTag"||d.name=="JSXSelfClosingTag"||d.name=="JSXFragmentTag")return d;if(d.name=="JSXEscape"||!d.parent)return null;d=d.parent}})(f);if(p&&!/^\/?>|^<\//.test(o.doc.sliceString(u,u+2))&&(c=$g(o.doc,p,u)))return{range:l,changes:{from:u,insert:`</${c}>`}}}}return{range:l}});return!a.changes.empty&&(t.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});pk=Object.freeze({__proto__:null,autoCloseTags:tb,completionPath:Rg,esLint:function(t,e){return e||(e={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},t.getRules().forEach((r,i)=>{r.meta.docs.recommended&&(e.rules[i]=2)})),r=>{let{state:i}=r,n=[];for(let{from:s,to:o}of ar.findRegions(i)){let a=i.doc.lineAt(s),l={line:a.number-1,col:s-a.from,pos:s};for(let h of t.verify(i.sliceDoc(s,o),e))n.push(fk(h,i.doc,l))}return n}},javascript:eb,javascriptLanguage:ar,jsxLanguage:lf,localCompletionSource:q0,scopeCompletionSource:function(t){let e=new Map;return r=>{let i=Rg(r);if(!i)return null;let n=t;for(let o of i.path)if(n=n[o],!n)return null;let s=e.get(n);return s||e.set(n,s=(function(o,a){let l=[],h=new Set;for(let c=0;;c++){for(let f of(Object.getOwnPropertyNames||Object.keys)(o)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(f)||h.has(f))continue;let p;h.add(f);try{p=o[f]}catch{continue}l.push({label:f,type:typeof p=="function"?/^[A-Z]/.test(f)?"class":a?"function":"method":a?"variable":"property",boost:-c})}let u=Object.getPrototypeOf(o);if(!u)return l;o=u}})(n,!i.path.length)),{from:r.pos-i.name.length,options:s,validFor:Wa}}},snippets:sf,tsxLanguage:hf,typescriptLanguage:af,typescriptSnippets:W0}),bs=["_blank","_self","_top","_parent"],Yh=["ascii","utf-8","utf-16","latin1","latin1"],qh=["get","post","put","delete"],Hh=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Ft=["true","false"],ee={},dk={a:{attrs:{href:null,ping:null,type:null,media:null,target:bs,hreflang:null}},abbr:ee,address:ee,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:ee,aside:ee,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:ee,base:{attrs:{href:null,target:bs}},bdi:ee,bdo:ee,blockquote:{attrs:{cite:null}},body:ee,br:ee,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Hh,formmethod:qh,formnovalidate:["novalidate"],formtarget:bs,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:ee,center:ee,cite:ee,code:ee,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:ee,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:ee,div:ee,dl:ee,dt:ee,em:ee,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:ee,figure:ee,footer:ee,form:{attrs:{action:null,name:null,"accept-charset":Yh,autocomplete:["on","off"],enctype:Hh,method:qh,novalidate:["novalidate"],target:bs}},h1:ee,h2:ee,h3:ee,h4:ee,h5:ee,h6:ee,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:ee,hgroup:ee,hr:ee,html:{attrs:{manifest:null}},i:ee,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Hh,formmethod:qh,formnovalidate:["novalidate"],formtarget:bs,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:ee,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:ee,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:ee,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Yh,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:ee,noscript:ee,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:ee,param:{attrs:{name:null,value:null}},pre:ee,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:ee,rt:ee,ruby:ee,samp:ee,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Yh}},section:ee,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:ee,source:{attrs:{src:null,type:null,media:null}},span:ee,strong:ee,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:ee,summary:ee,sup:ee,table:ee,tbody:ee,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:ee,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:ee,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:ee,time:{attrs:{datetime:null}},title:ee,tr:ee,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:ee,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:ee},rb={accesskey:null,class:null,contenteditable:Ft,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Ft,autocorrect:Ft,autocapitalize:Ft,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Ft,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Ft,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Ft,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Ft,"aria-hidden":Ft,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Ft,"aria-multiselectable":Ft,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Ft,"aria-relevant":null,"aria-required":Ft,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},ib="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of ib)rb[t]=null;Ji=class{constructor(e,r){this.tags={...dk,...e},this.globalAttrs={...rb,...r},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Ji.default=new Ji;sb=/^[:\-\.\w\u00b7-\uffff]*$/;gk=ar.parser.configure({top:"SingleExpression"}),lb=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:af.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:lf.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:hf.parser},{tag:"script",attrs:t=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type),parser:gk},{tag:"script",attrs:t=>!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type),parser:ar.parser},{tag:"style",attrs:t=>(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type)),parser:Mn.parser}],hb=[{name:"style",parser:Mn.parser.configure({top:"Styles"})}].concat(ib.map(t=>({name:t,parser:ar.parser}))),cb=$n.define({name:"html",parser:qw.configure({props:[el.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag":t=>t.column(t.node.from)+t.unit,Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e,r=null;for(let i=t.node;;){let n=i.lastChild;if(!n||n.name!="Element"||n.to!=i.to)break;r=i=n}return r&&(!(e=r.lastChild)||e.name!="CloseTag"&&e.name!="SelfClosingTag")?t.lineIndent(r.from)+t.unit:null}}),Yu.add({Element(t){let e=t.firstChild,r=t.lastChild;return e&&e.name=="OpenTag"?{from:e.to,to:r.name=="CloseTag"?r.from:t.to}:null}}),a0.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Ds=cb.configure({wrap:U0(lb,hb)});Dg=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),ub=re.inputHandler.of((t,e,r,i,n)=>{if(t.composing||t.state.readOnly||e!=r||i!=">"&&i!="/"||!Ds.isActiveAt(t.state,e,-1))return!1;let s=n(),{state:o}=s,a=o.changeByRange(l=>{var h,c,u;let f,p=o.doc.sliceString(l.from-1,l.to)==i,{head:d}=l,y=qe(o).resolveInner(d,-1);if(p&&i==">"&&y.name=="EndTag"){let b=y.parent;if(((c=(h=b.parent)===null||h===void 0?void 0:h.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(f=Xn(o.doc,b.parent,d))&&!Dg.has(f))return{range:l,changes:{from:d,to:d+(o.doc.sliceString(d,d+1)===">"?1:0),insert:`</${f}>`}}}else if(p&&i=="/"&&y.name=="IncompleteCloseTag"){let b=y.parent;if(y.from==d-2&&((u=b.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(f=Xn(o.doc,b,d))&&!Dg.has(f)){let S=d+(o.doc.sliceString(d,d+1)===">"?1:0),w=`${f}>`;return{range:V.cursor(d+w.length,-1),changes:{from:d,to:S,insert:w}}}}return{range:l}});return!a.changes.empty&&(t.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),bk=Object.freeze({__proto__:null,autoCloseTags:ub,html:Ok,htmlCompletionSource:mk,htmlCompletionSourceWith:ab,htmlLanguage:Ds}),Mg=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t,Ga=class{constructor(e,r,i=0,n=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,n),this.bufferStart=i,this.normalize=s?a=>s(Mg(a)):Mg,this.query=this.normalize(r)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return fr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let r=Mu(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=Yr(e);let n=this.normalize(r);for(let s=0,o=i;;s++){let a=n.charCodeAt(s),l=this.match(a,o);if(s==n.length-1){if(l)return this.value=l,this;break}o==i&&s<r.length&&r.charCodeAt(s)==a&&o++}}}match(e,r){let i=null;for(let n=0;n<this.matches.length;n+=2){let s=this.matches[n],o=!1;this.query.charCodeAt(s)==e&&(s==this.query.length-1?i={from:this.matches[n+1],to:r+1}:(this.matches[n]++,o=!0)),o||(this.matches.splice(n,2),n-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?i={from:r,to:r+1}:this.matches.push(1,r)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}};typeof Symbol<"u"&&(Ga.prototype[Symbol.iterator]=function(){return this});yk={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Sk=U.define({combine:t=>ni(t,yk,{highlightWordAroundCursor:(e,r)=>e||r,minSelectionLength:Math.min,maxMatches:Math.min})}),xk=ce.mark({class:"cm-selectionMatch"}),vk=ce.mark({class:"cm-selectionMatch cm-selectionMatch-main"});Z2=wt.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Sk),{state:r}=t,i=r.selection;if(i.ranges.length>1)return ce.none;let n,s=i.main,o=null;if(s.empty){if(!e.highlightWordAroundCursor)return ce.none;let l=r.wordAt(s.head);if(!l)return ce.none;o=r.charCategorizer(s.head),n=r.sliceDoc(l.from,l.to)}else{let l=s.to-s.from;if(l<e.minSelectionLength||l>200)return ce.none;if(e.wholeWords){if(n=r.sliceDoc(s.from,s.to),o=r.charCategorizer(s.head),!Ng(o,r,s.from,s.to)||!(function(h,c,u,f){return h(c.sliceDoc(u,u+1))==dt.Word&&h(c.sliceDoc(f-1,f))==dt.Word})(o,r,s.from,s.to))return ce.none}else if(n=r.sliceDoc(s.from,s.to).trim(),!n)return ce.none}let a=[];for(let l of t.visibleRanges){let h=new Ga(r.doc,n,l.from,l.to);for(;!h.next().done;){let{from:c,to:u}=h.value;if((!o||Ng(o,r,c,u))&&(s.empty&&c<=s.from&&u>=s.to?a.push(vk.range(c,u)):(c>=s.to||u<=s.from)&&a.push(xk.range(c,u)),a.length>e.maxMatches))return ce.none}}return ce.set(a)}},{decorations:t=>t.decorations}),F2=re.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),z2=U.define({combine:t=>ni(t,{highlightActiveBlock:!0,hideFirstIndent:!1,markerType:"fullScope",thickness:1})}),V2=$n.define({name:Mn.name,parser:Mn.parser,languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:""}})});var Yt={};Ke(Yt,{DEFAULT_COMPARATOR:()=>np,arrayDoesNotContainNullOrUndefined:()=>sy,assertArrayIsSorted:()=>oy,binaryIndexOf:()=>K1,insertWithComparator:()=>ty,intersectOrdered:()=>J1,lowerBound:()=>zl,mergeOrdered:()=>ey,nearestIndexFromBeginning:()=>iy,nearestIndexFromEnd:()=>ny,removeElement:()=>Y1,sortRange:()=>H1,swap:()=>bo,upperBound:()=>ry});var Y1=(t,e,r)=>{let i=t.indexOf(e);if(i===-1)return!1;if(r)return t.splice(i,1),!0;for(let n=i+1,s=t.length;n<s;++n)t[n]!==e&&(t[i++]=t[n]);return t.length=i,!0};function bo(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function q1(t,e,r,i,n){let s=t[n];bo(t,i,n);let o=r;for(let a=r;a<i;++a)e(t[a],s)<0&&(bo(t,o,a),++o);return bo(t,i,o),o}function Fl(t,e,r,i,n,s){if(i<=r)return;let o=Math.floor(Math.random()*(i-r))+r,a=q1(t,e,r,i,o);n<a&&Fl(t,e,r,a-1,n,s),a<s&&Fl(t,e,a+1,i,n,s)}function H1(t,e,r,i,n,s){return r===0&&i===t.length-1&&n===0&&s>=i?t.sort(e):Fl(t,e,r,i,n,s),t}var K1=(t,e,r)=>{let i=zl(t,e,r);return i<t.length&&r(e,t[i])===0?i:-1};function ip(t,e,r,i){let n=[],s=0,o=0;for(;s<t.length&&o<e.length;){let a=r(t[s],e[o]);(i||!a)&&n.push(a<=0?t[s]:e[o]),a<=0&&s++,a>=0&&o++}if(i){for(;s<t.length;)n.push(t[s++]);for(;o<e.length;)n.push(e[o++])}return n}var J1=(t,e,r)=>ip(t,e,r,!1),ey=(t,e,r)=>ip(t,e,r,!0),np=(t,e)=>t<e?-1:t>e?1:0;function zl(t,e,r,i,n){let s=i||0,o=n!==void 0?n:t.length;for(;s<o;){let a=s+o>>1;r(e,t[a])>0?s=a+1:o=a}return o}function ty(t,e,r){let i=zl(t,e,r);return t.splice(i,0,e),i}function ry(t,e,r,i,n){let s=i||0,o=n!==void 0?n:t.length;for(;s<o;){let a=s+o>>1;r(e,t[a])>=0?s=a+1:o=a}return o}function sp(t,e,r){let i=r==="END";if(t.length===0)return null;let n=0,s=t.length-1,o=0,a=!1,l=!1,h=0;do h=n+(s-n)/2,o=i?Math.ceil(h):Math.floor(h),a=e(t[o]),l=a===i,l?n=Math.min(s,o+(n===o?1:0)):s=Math.max(n,o+(s===o?-1:0));while(s!==n);return e(t[n])?n:null}function iy(t,e){return sp(t,e,"BEGINNING")}function ny(t,e){return sp(t,e,"END")}function sy(t){return!t.includes(null)&&!t.includes(void 0)}function oy(t,e){let r=e||np;for(let i=0;i<t.length-1;i++){let n=t[i],s=t[i+1];if(r(n,s)>0)throw new Error(`Array is not sorted at index ${i}: ${JSON.stringify(n)} > ${JSON.stringify(s)}`)}}var yo={};Ke(yo,{EmptyEncodedPathString:()=>uy,EmptyRawPathString:()=>cy,EmptyUrlString:()=>ly,urlString:()=>hy});var ly="",hy=(t,...e)=>String.raw({raw:t},...e),cy="",uy="";var cr={};Ke(cr,{HOST_RUNTIME:()=>Oy,IS_BROWSER:()=>gp,IS_NODE:()=>mp});var mp=typeof process<"u"&&process.versions?.node!==null,gp=typeof window<"u"||typeof self<"u"&&typeof self.postMessage=="function",Oy=await(async()=>{if(gp)return(await Promise.resolve().then(()=>(hp(),lp))).HostRuntime.HOST_RUNTIME;if(mp)return(await Promise.resolve().then(()=>(dp(),pp))).HostRuntime.HOST_RUNTIME;throw new Error("Unknown runtime!")})();var mn={};Ke(mn,{MimeType:()=>yp,isTextType:()=>xy,parseContentType:()=>vy});var yp=(c=>(c.HTML="text/html",c.XML="text/xml",c.PLAIN="text/plain",c.XHTML="application/xhtml+xml",c.SVG="image/svg+xml",c.CSS="text/css",c.XSL="text/xsl",c.VTT="text/vtt",c.PDF="application/pdf",c.EVENTSTREAM="text/event-stream",c))(yp||{}),Sy=new Set(["application/ecmascript","application/javascript","application/json","application/json+protobuf","application/mpegurl","application/vnd.apple.mpegurl","application/vnd.dart","application/xml","application/x-aspx","application/x-javascript","application/x-jsp","application/x-httpd-php","application/x-mpegurl","audio/mpegurl","audio/x-mpegurl"]);function xy(t){return t.startsWith("text/")||t.startsWith("multipart/")||t.includes("json")||t.endsWith("+xml")||Sy.has(t)}function vy(t){if(t==="*/*")return{mimeType:null,charset:null};let{mimeType:e,params:r}=wy(t),i=r.get("charset")?.toLowerCase().trim()??null;return{mimeType:e,charset:i}}function wy(t){t=t.trim();let e=Op(t," ;(");e<0&&(e=t.length);let r=t.indexOf("/");if(r<0||r>e)return{mimeType:null,params:new Map};let i=t.substring(0,e).toLowerCase(),n=new Map,s=t.indexOf(";",e);for(;s>=0&&s<t.length;){if(++s,s=bp(t," ",s),s<0)continue;let o=s;if(s=Op(t,";=",s),s<0||t[s]===";")continue;let a=t.substring(o,s).toLowerCase();++s,s=bp(t," ",s);let l="";if(!(s<0||t[s]===";")){if(t[s]!=='"'){let h=s;s=t.indexOf(";",s);let c=s>=0?s:t.length;l=t.substring(h,c).trimEnd()}else{for(++s;s<t.length&&t[s]!=='"';)t[s]==="\\"&&s+1<t.length&&++s,l+=t[s],++s;s=t.indexOf(";",s)}n.has(a)||n.set(a,l)}}return{mimeType:i,params:n}}function Op(t,e,r=0){for(let i=r;i<t.length;i++)if(e.includes(t[i]))return i;return-1}function bp(t,e,r=0){for(let i=r;i<t.length;i++)if(!e.includes(t[i]))return i;return-1}var K={};Ke(K,{DOUBLE_QUOTE:()=>Pp,SINGLE_QUOTE:()=>Tp,base64ToSize:()=>sS,caseInsensetiveComparator:()=>qy,collapseWhitespace:()=>My,compare:()=>Ky,concatBase64:()=>mS,countUnmatchedLeftParentheses:()=>lS,countWtf8Bytes:()=>Zy,createPlainTextSearchRegex:()=>Cp,createSearchRegex:()=>Yy,escapeCharacters:()=>eh,escapeCsvCell:()=>bS,escapeForRegExp:()=>rS,escapeForURLPattern:()=>iS,escapeUnicodeAsText:()=>Ey,filterRegex:()=>Gy,findIndexesOfSubString:()=>wp,findLineEndingIndexes:()=>_y,findUnclosedCssQuote:()=>aS,formatAsJSLiteral:()=>Ry,hashCode:()=>Hy,isExtendedKebabCase:()=>Vy,isWhitespace:()=>Iy,naturalOrderComparator:()=>nS,regexSpecialCharacters:()=>kp,removeURLFragment:()=>Uy,replaceControlCharacters:()=>Xy,replaceLast:()=>pS,reverse:()=>Ny,safeEscapeUnicode:()=>Qy,sanitizeIdentifier:()=>By,sprintf:()=>$y,stringifyWithPrecision:()=>dS,stripLineBreaks:()=>Fy,toBase64:()=>Ly,toKebabCase:()=>Ap,toKebabCaseKeys:()=>uS,toLowerCaseString:()=>hS,toSnakeCase:()=>fS,toTitleCase:()=>jy,trimEndWithMaxLength:()=>eS,trimMiddle:()=>Jy,trimURL:()=>Dy,truncateToCodeUnitLength:()=>tS});var Hl=null,xo=/^[\x20-\x7e]*$/;function Jl(){return Hl||(Hl=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Hl}var eh=(t,e)=>{let r=!1;for(let n=0;n<e.length;++n)if(t.indexOf(e.charAt(n))!==-1){r=!0;break}if(!r)return String(t);let i="";for(let n=0;n<t.length;++n)e.indexOf(t.charAt(n))!==-1&&(i+="\\"),i+=t.charAt(n);return i},ss=(t,e)=>t.toString(16).toUpperCase().padStart(e,"0"),Kl=new Map([["\b","\\b"],["\f","\\f"],[`
23
+ `,"\\n"],["\r","\\r"],[" ","\\t"],["\v","\\v"],["'","\\'"],["\\","\\\\"],["<!--","\\x3C!--"],["<script","\\x3Cscript"],["</script","\\x3C/script"]]),xp="[\\p{Format}\\p{Surrogate}]",Ty=new RegExp(xp,"u"),Py=new RegExp(xp,"gu"),vp="(?![\\u200B\\u200C\\u200D])[\\p{Format}]|\\p{Surrogate}",Cy=new RegExp(vp,"u"),Ay=new RegExp(vp,"gu"),Ey=t=>Ty.test(t)?t.replaceAll(Py,e=>e.split("").map(r=>"\\u"+ss(r.charCodeAt(0),4)).join("")):t,Qy=t=>Cy.test(t)?t.replaceAll(Ay,e=>e.split("").map(r=>"\\u"+ss(r.charCodeAt(0),4)).join("")):t,Ry=t=>{let e=/(\\|<(?:!--|\/?script))|(\p{Control}|\p{Format})|(\p{Surrogate})/giu,r=/(\\|'|<(?:!--|\/?script))|(\p{Control}|\p{Format})|(\p{Surrogate})/giu,i=(o,a,l,h)=>l?Kl.has(l)?Kl.get(l):l.split("").map(c=>{let u=c.charCodeAt(0);return l.length===1&&u<=255?"\\x"+ss(u,2):"\\u"+ss(u,4)}).join(""):h?"\\u"+ss(h.charCodeAt(0),4):a?a.startsWith("<")?"\\x3C"+a.slice(1):Kl.get(a)||"":o,n="",s="";return t.includes("'")?t.includes('"')?!t.includes("`")&&!t.includes("${")?(s="`",n=t.replaceAll(e,i)):(s="'",n=t.replaceAll(r,i)):(s='"',n=t.replaceAll(e,i)):(s="'",n=t.replaceAll(e,i)),`${s}${n}${s}`},$y=(t,...e)=>{let r=0,i=/%(?:(\d+)\$)?(?:\.(\d*))?([%dfs])/g;return t.replaceAll(i,(n,s,o,a)=>{if(a==="%")return"%";if(s!==void 0&&(r=parseInt(s,10)-1,r<0))throw new RangeError(`Invalid parameter index ${r+1}`);if(r>=e.length)throw new RangeError(`Expected at least ${r+1} format parameters, but only ${e.length} where given.`);if(a==="s"){let h=String(e[r++]);return o!==void 0?h.substring(0,Number(o)):h}let l=Number(e[r++]);return isNaN(l)&&(l=0),a==="d"?String(Math.floor(l)).padStart(Number(o),"0"):o!==void 0?l.toFixed(Number(o)):String(l)})},Ly=t=>{function e(l){return l<26?l+65:l<52?l+71:l<62?l-4:l===62?43:l===63?47:65}let i=new TextEncoder().encode(t.toString()),n=i.length,s="";if(n===0)return s;let o,a=0;for(let l=0;l<n;l++)o=l%3,a|=i[l]<<(16>>>o&24),o===2&&(s+=String.fromCharCode(e(a>>>18&63),e(a>>>12&63),e(a>>>6&63),e(a&63)),a=0);return o===0?s+=String.fromCharCode(e(a>>>18&63),e(a>>>12&63),61,61):o===1&&(s+=String.fromCharCode(e(a>>>18&63),e(a>>>12&63),e(a>>>6&63),61)),s},wp=(t,e)=>{let r=[],i=t.indexOf(e);for(;i!==-1;)r.push(i),i=t.indexOf(e,i+e.length);return r},_y=t=>{let e=wp(t,`
24
+ `);return e.push(t.length),e},Iy=t=>/^\s*$/.test(t),Dy=(t,e)=>{let r=t.replace(/^(https|http|file):\/\//i,"");return e&&r.toLowerCase().startsWith(e.toLowerCase())&&(r=r.substr(e.length)),r},My=t=>t.replace(/[\s\xA0]+/g," "),Ny=t=>t.split("").reverse().join(""),Xy=t=>t.replace(/[\0-\x08\x0B\f\x0E-\x1F\x80-\x9F]/g,"\uFFFD"),Zy=t=>{let e=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);if(i<=127)e++;else if(i<=2047)e+=2;else if(i<55296||57343<i)e+=3;else{if(i<=56319&&r+1<t.length){let n=t.charCodeAt(r+1);if(56320<=n&&n<=57343){e+=4,r++;continue}}e+=3}}return e},Fy=t=>t.replace(/(\r)?\n/g,""),zy=/^([a-z0-9]+(?:-[a-z0-9]+)*\.)*[a-z0-9]+(?:-[a-z0-9]+)*$/,Vy=t=>zy.test(t),By=t=>t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),jy=t=>t.substring(0,1).toUpperCase()+t.substring(1),Uy=t=>{let e=new URL(t);return e.hash="",e.toString()},th="^[]{}()\\.^$*+?|-,",Wy="?+*(){}\\:",kp=function(){return th},Gy=function(t){let e="^(?:.*\\0)?";for(let r=0;r<t.length;++r){let i=t.charAt(r);th.indexOf(i)!==-1&&(i="\\"+i),e+="[^\\0"+i+"]*"+i}return new RegExp(e,"i")},Yy=function(t,e,r,i=!1){let n=e?"g":"gi",s;if(r)try{s=new RegExp(t,n)}catch{}return s||(s=Cp(t,n)),i&&s&&(s=new RegExp(`\\b${s.source}\\b`,n)),s},qy=function(t,e){return t=t.toUpperCase(),e=e.toUpperCase(),t===e?0:t>e?1:-1},Hy=function(t){if(!t)return 0;let e=(1<<30)*4-5,r=1345575271,i=1506996573,n=0,s=1;for(let o=0;o<t.length;o++){let a=t.charCodeAt(o)*i;n=(n+s*a)%e,s=s*r%e}return n=(n+s*(e-1))%e,Math.abs(n|0)},Ky=(t,e)=>t>e?1:t<e?-1:0,Jy=(t,e)=>{if(t.length<=e)return t;let r="\u2026",i=1;if(e<=i)return r;let n=e-i,s=Math.ceil(n/2),o=Math.floor(n/2);if(xo.test(t.slice(0,s+1))&&xo.test(t.slice(t.length-o-1)))return t.slice(0,s)+r+t.slice(t.length-o);let a=Jl(),l=0,h=0,c=[];for(let{segment:f,index:p}of a.segment(t))l++,l===s&&(h=p+f.length),o>0&&(c.push(p),c.length>o&&c.shift());if(l<=e)return t;let u=o>0?c[0]:t.length;return t.slice(0,h)+r+t.slice(u)},eS=(t,e)=>{if(t.length<=e)return t;let r="\u2026",i=1;if(e<=i)return r;if(xo.test(t.slice(0,e+1)))return t.slice(0,e-i)+r;let s=Jl().segment(t)[Symbol.iterator](),o=0;for(let a=0;a<=e-i;a++){let l=s.next();if(l.done)return t;o=l.value.index}for(let a=0;a<i;a++)if(s.next().done)return t;return t.slice(0,o)+r},tS=(t,e)=>{if(isNaN(e)||e<=0)return"";if(t.length<=e)return t;if(xo.test(t.slice(0,e+1)))return t.slice(0,e);let r=0;for(let{index:i,segment:n}of Jl().segment(t)){if(i+n.length>e)break;r=i+n.length}return t.slice(0,r)},rS=t=>eh(t,th),iS=t=>eh(t,Wy),nS=(t,e)=>{let r=/^\d+|^\D+/,i,n,s,o;for(;;){if(t){if(!e)return 1}else return e?-1:0;if(i=t.match(r)[0],n=e.match(r)[0],s=!Number.isNaN(Number(i)),o=!Number.isNaN(Number(n)),s&&!o)return-1;if(o&&!s)return 1;if(s&&o){let a=Number(i)-Number(n);if(a)return a;if(i.length!==n.length)return!Number(i)&&!Number(n)?i.length-n.length:n.length-i.length}else if(i!==n)return i<n?-1:1;t=t.substring(i.length),e=e.substring(n.length)}},sS=function(t){if(!t)return 0;let e=t.length*3/4;return t[t.length-1]==="="&&e--,t.length>1&&t[t.length-2]==="="&&e--,e},Tp="'",Pp='"',oS="\\",aS=function(t){let e="";for(let r=0;r<t.length;++r){let i=t[r];if(i===oS){r++;continue}(i===Tp||i===Pp)&&(e===i?e="":e===""&&(e=i))}return e},lS=t=>{let e=/'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"/g,r=t.replace(e,""),i=0;for(let n of r)n==="("?i++:n===")"&&i>0&&i--;return i},Cp=function(t,e){let r="";for(let i=0;i<t.length;++i){let n=t.charAt(i);kp().indexOf(n)!==-1&&(r+="\\"),r+=n}return new RegExp(r,e||"")},hS=function(t){return t.toLowerCase()},cS=/[A-Z]{2,}(?=[A-Z0-9][a-z0-9]+|\b|_)|[A-Za-z][0-9]+[a-z]?|[A-Z]?[a-z]+|[0-9][A-Za-z]+|[A-Z]|[0-9]+|[.]/g,Ap=function(t){return t.match?.(cS)?.map(e=>e.toLowerCase()).join("-").replaceAll("-.-",".")||t};function uS(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[Ap(e),r]))}function fS(t){return t?t.replace(/(\p{L})(\p{N})/gu,"$1_$2").replace(/(\p{Lu}+)(\p{Lu}\p{Ll})/gu,"$1_$2").replace(/(\p{Ll}|\p{N})(\p{Lu})/gu,"$1_$2").toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"_").replace(/^_|_$/g,""):""}var pS=function(t,e,r){let i=t.lastIndexOf(e);return i===-1?t:t.slice(0,i)+t.slice(i).replace(e,r)},dS=function(e,r=2){if(r===0)return e.toFixed(0);let i=e.toFixed(r).replace(/\.?0*$/,"");return i==="-0"?"0":i},mS=function(t,e){if(t.length===0||!t.endsWith("="))return t+e;let r=t.substring(0,t.length-4),i=t.substring(t.length-4);return r+globalThis.btoa(globalThis.atob(i)+globalThis.atob(e))},Sp=new Set(["=","+","-","@"," ","\r"]),gS=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?$/;function OS(t){let e=t.trimStart();return!Sp.has(t[0])&&!Sp.has(e[0])?!1:!gS.test(e.trimEnd())}var bS=function(t){let e=OS(t)?`'${t}`:t;return e.includes('"')?(e=e.replace(/"/g,'""'),`"${e}"`):/[,;\t\r\n]/.test(e)?`"${e}"`:e};function rh(t,e){throw new Error(e)}(function(){"use strict";function t(O,v,T){v||(v={});for(var _ in O)O.hasOwnProperty(_)&&(T!==!1||!v.hasOwnProperty(_))&&(v[_]=O[_]);return v}function e(O,v,T,_,L){v==null&&(v=O.search(/[^\s\u00a0]/),v==-1&&(v=O.length));for(var R=_||0,E=L||0;;){var N=O.indexOf(" ",R);if(N<0||N>=v)return E+(v-R);E+=N-R,E+=T-E%T,R=N+1}}function r(){}function i(O,v){var T;return Object.create?T=Object.create(O):(r.prototype=O,T=new r),v&&t(v,T),T}var n=function(O,v,T){this.pos=this.start=0,this.string=O,this.tabSize=v||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=T};n.prototype.eol=function(){return this.pos>=this.string.length},n.prototype.sol=function(){return this.pos==this.lineStart},n.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},n.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},n.prototype.eat=function(O){var v=this.string.charAt(this.pos),T;if(typeof O=="string"?T=v==O:T=v&&(O.test?O.test(v):O(v)),T)return++this.pos,v},n.prototype.eatWhile=function(O){for(var v=this.pos;this.eat(O););return this.pos>v},n.prototype.eatSpace=function(){for(var O=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>O},n.prototype.skipToEnd=function(){this.pos=this.string.length},n.prototype.skipTo=function(O){var v=this.string.indexOf(O,this.pos);if(v>-1)return this.pos=v,!0},n.prototype.backUp=function(O){this.pos-=O},n.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=e(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?e(this.string,this.lineStart,this.tabSize):0)},n.prototype.indentation=function(){return e(this.string,null,this.tabSize)-(this.lineStart?e(this.string,this.lineStart,this.tabSize):0)},n.prototype.match=function(O,v,T){if(typeof O=="string"){var _=function(E){return T?E.toLowerCase():E},L=this.string.substr(this.pos,O.length);if(_(L)==_(O))return v!==!1&&(this.pos+=O.length),!0}else{var R=this.string.slice(this.pos).match(O);return R&&R.index>0?null:(R&&v!==!1&&(this.pos+=R[0].length),R)}},n.prototype.current=function(){return this.string.slice(this.start,this.pos)},n.prototype.hideFirstChars=function(O,v){this.lineStart+=O;try{return v()}finally{this.lineStart-=O}},n.prototype.lookAhead=function(O){var v=this.lineOracle;return v&&v.lookAhead(O)},n.prototype.baseToken=function(){var O=this.lineOracle;return O&&O.baseToken(this.pos)};var s={},o={};function a(O,v){arguments.length>2&&(v.dependencies=Array.prototype.slice.call(arguments,2)),s[O]=v}function l(O,v){o[O]=v}function h(O){if(typeof O=="string"&&o.hasOwnProperty(O))O=o[O];else if(O&&typeof O.name=="string"&&o.hasOwnProperty(O.name)){var v=o[O.name];typeof v=="string"&&(v={name:v}),O=i(v,O),O.name=v.name}else{if(typeof O=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(O))return h("application/xml");if(typeof O=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(O))return h("application/json")}return typeof O=="string"?{name:O}:O||{name:"null"}}function c(O,v){v=h(v);var T=s[v.name];if(!T)return c(O,"text/plain");var _=T(O,v);if(u.hasOwnProperty(v.name)){var L=u[v.name];for(var R in L)L.hasOwnProperty(R)&&(_.hasOwnProperty(R)&&(_["_"+R]=_[R]),_[R]=L[R])}if(_.name=v.name,v.helperType&&(_.helperType=v.helperType),v.modeProps)for(var E in v.modeProps)_[E]=v.modeProps[E];return _}var u={};function f(O,v){var T=u.hasOwnProperty(O)?u[O]:u[O]={};t(v,T)}function p(O,v){if(v===!0)return v;if(O.copyState)return O.copyState(v);var T={};for(var _ in v){var L=v[_];L instanceof Array&&(L=L.concat([])),T[_]=L}return T}function d(O,v){for(var T;O.innerMode&&(T=O.innerMode(v),!(!T||T.mode==O));)v=T.state,O=T.mode;return T||{mode:O,state:v}}function y(O,v,T){return O.startState?O.startState(v,T):!0}var b={__proto__:null,modes:s,mimeModes:o,defineMode:a,defineMIME:l,resolveMode:h,getMode:c,modeExtensions:u,extendMode:f,copyState:p,innerMode:d,startState:y},S=typeof globalThis<"u"?globalThis:window;S.CodeMirror={},CodeMirror.StringStream=n;for(var w in b)CodeMirror[w]=b[w];CodeMirror.defineMode("null",function(){return{token:function(O){return O.skipToEnd()}}}),CodeMirror.defineMIME("text/plain","null"),CodeMirror.registerHelper=CodeMirror.registerGlobalHelper=Math.min,CodeMirror.splitLines=function(O){return O.split(/\r?\n|\r/)},CodeMirror.countColumn=e,CodeMirror.defaults={indentUnit:2},(function(O){typeof exports=="object"&&typeof module=="object"?O(Oo("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],O):O(CodeMirror)})(function(O){O.runMode=function(v,T,_,L){var R=O.getMode(O.defaults,T),E=L&&L.tabSize||O.defaults.tabSize;if(_.appendChild){var N=/MSIE \d/.test(navigator.userAgent),A=N&&(document.documentMode==null||document.documentMode<9),P=_,x=0;P.innerHTML="",_=function(Ee,Xe){if(Ee==`
25
+ `){P.appendChild(document.createTextNode(A?"\r":Ee)),x=0;return}for(var Ge="",ae=0;;){var j=Ee.indexOf(" ",ae);if(j==-1){Ge+=Ee.slice(ae),x+=Ee.length-ae;break}else{x+=j-ae,Ge+=Ee.slice(ae,j);var q=E-x%E;x+=q;for(var ne=0;ne<q;++ne)Ge+=" ";ae=j+1}}if(Xe){var ve=P.appendChild(document.createElement("span"));ve.className="cm-"+Xe.replace(/ +/g," cm-"),ve.appendChild(document.createTextNode(Ge))}else P.appendChild(document.createTextNode(Ge))}}for(var $=O.splitLines(v),F=L&&L.state||O.startState(R),H=0,pe=$.length;H<pe;++H){H&&_(`
26
+ `);var xe=new O.StringStream($[H],null,{lookAhead:function(Ee){return $[H+Ee]},baseToken:function(){}});for(!xe.string&&R.blankLine&&R.blankLine(F);!xe.eol();){var De=R.token(xe,F);_(xe.current(),De,H,xe.start,F,R),xe.start=xe.pos}}}})})();(function(t){typeof exports=="object"&&typeof module=="object"?t(Oo("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("css",function(R,E){var N=E.inline;E.propertyKeywords||(E=t.resolveMode("text/css"));var A=R.indentUnit,P=E.tokenHooks,x=E.documentTypes||{},$=E.mediaTypes||{},F=E.mediaFeatures||{},H=E.mediaValueKeywords||{},pe=E.propertyKeywords||{},xe=E.nonStandardPropertyKeywords||{},De=E.fontProperties||{},Ee=E.counterDescriptors||{},Xe=E.colorKeywords||{},Ge=E.valueKeywords||{},ae=E.allowNested,j=E.lineComment,q=E.supportsAtComponent===!0,ne=R.highlightNonStandardPropertyKeywords!==!1,ve,fe;function se(Q,Z){return ve=Z,Q}function ut(Q,Z){var D=Q.next();if(P[D]){var be=P[D](Q,Z);if(be!==!1)return be}if(D=="@")return Q.eatWhile(/[\w\\\-]/),se("def",Q.current());if(D=="="||(D=="~"||D=="|")&&Q.eat("="))return se(null,"compare");if(D=='"'||D=="'")return Z.tokenize=un(D),Z.tokenize(Q,Z);if(D=="#")return Q.eatWhile(/[\w\\\-]/),se("atom","hash");if(D=="!")return Q.match(/^\s*\w*/),se("keyword","important");if(/\d/.test(D)||D=="."&&Q.eat(/\d/))return Q.eatWhile(/[\w.%]/),se("number","unit");if(D==="-"){if(/[\d.]/.test(Q.peek()))return Q.eatWhile(/[\w.%]/),se("number","unit");if(Q.match(/^-[\w\\\-]*/))return Q.eatWhile(/[\w\\\-]/),Q.match(/^\s*:/,!1)?se("variable-2","variable-definition"):se("variable-2","variable");if(Q.match(/^\w+-/))return se("meta","meta")}else return/[,+>*\/]/.test(D)?se(null,"select-op"):D=="."&&Q.match(/^-?[_a-z][_a-z0-9-]*/i)?se("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(D)?se(null,D):Q.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Q.current())&&(Z.tokenize=ho),se("variable callee","variable")):/[\w\\\-]/.test(D)?(Q.eatWhile(/[\w\\\-]/),se("property","word")):se(null,null)}function un(Q){return function(Z,D){for(var be=!1,Xt;(Xt=Z.next())!=null;){if(Xt==Q&&!be){Q==")"&&Z.backUp(1);break}be=!be&&Xt=="\\"}return(Xt==Q||!be&&Q!=")")&&(D.tokenize=null),se("string","string")}}function ho(Q,Z){return Q.next(),Q.match(/^\s*[\"\')]/,!1)?Z.tokenize=null:Z.tokenize=un(")"),se(null,"(")}function ci(Q,Z,D){this.type=Q,this.indent=Z,this.prev=D}function Qe(Q,Z,D,be){return Q.context=new ci(D,Z.indentation()+(be===!1?0:A),Q.context),D}function st(Q){return Q.context.prev&&(Q.context=Q.context.prev),Q.context.type}function wr(Q,Z,D){return Ze[D.context.type](Q,Z,D)}function Fr(Q,Z,D,be){for(var Xt=be||1;Xt>0;Xt--)D.context=D.context.prev;return wr(Q,Z,D)}function es(Q){var Z=Q.current().toLowerCase();Ge.hasOwnProperty(Z)?fe="atom":Xe.hasOwnProperty(Z)?fe="keyword":fe="variable"}var Ze={};return Ze.top=function(Q,Z,D){if(Q=="{")return Qe(D,Z,"block");if(Q=="}"&&D.context.prev)return st(D);if(q&&/@component/i.test(Q))return Qe(D,Z,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Q))return Qe(D,Z,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Q))return Qe(D,Z,"atBlock");if(/^@(font-face|counter-style)/i.test(Q))return D.stateArg=Q,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Q))return"keyframes";if(Q&&Q.charAt(0)=="@")return Qe(D,Z,"at");if(Q=="hash")fe="builtin";else if(Q=="word")fe="tag";else{if(Q=="variable-definition")return"maybeprop";if(Q=="interpolation")return Qe(D,Z,"interpolation");if(Q==":")return"pseudo";if(ae&&Q=="(")return Qe(D,Z,"parens")}return D.context.type},Ze.block=function(Q,Z,D){if(Q=="word"){var be=Z.current().toLowerCase();return pe.hasOwnProperty(be)?(fe="property","maybeprop"):xe.hasOwnProperty(be)?(fe=ne?"string-2":"property","maybeprop"):ae?(fe=Z.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(fe+=" error","maybeprop")}else return Q=="meta"?"block":!ae&&(Q=="hash"||Q=="qualifier")?(fe="error","block"):Ze.top(Q,Z,D)},Ze.maybeprop=function(Q,Z,D){return Q==":"?Qe(D,Z,"prop"):wr(Q,Z,D)},Ze.prop=function(Q,Z,D){if(Q==";")return st(D);if(Q=="{"&&ae)return Qe(D,Z,"propBlock");if(Q=="}"||Q=="{")return Fr(Q,Z,D);if(Q=="(")return Qe(D,Z,"parens");if(Q=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(Z.current()))fe+=" error";else if(Q=="word")es(Z);else if(Q=="interpolation")return Qe(D,Z,"interpolation");return"prop"},Ze.propBlock=function(Q,Z,D){return Q=="}"?st(D):Q=="word"?(fe="property","maybeprop"):D.context.type},Ze.parens=function(Q,Z,D){return Q=="{"||Q=="}"?Fr(Q,Z,D):Q==")"?st(D):Q=="("?Qe(D,Z,"parens"):Q=="interpolation"?Qe(D,Z,"interpolation"):(Q=="word"&&es(Z),"parens")},Ze.pseudo=function(Q,Z,D){return Q=="meta"?"pseudo":Q=="word"?(fe="variable-3",D.context.type):wr(Q,Z,D)},Ze.documentTypes=function(Q,Z,D){return Q=="word"&&x.hasOwnProperty(Z.current())?(fe="tag",D.context.type):Ze.atBlock(Q,Z,D)},Ze.atBlock=function(Q,Z,D){if(Q=="(")return Qe(D,Z,"atBlock_parens");if(Q=="}"||Q==";")return Fr(Q,Z,D);if(Q=="{")return st(D)&&Qe(D,Z,ae?"block":"top");if(Q=="interpolation")return Qe(D,Z,"interpolation");if(Q=="word"){var be=Z.current().toLowerCase();be=="only"||be=="not"||be=="and"||be=="or"?fe="keyword":$.hasOwnProperty(be)?fe="attribute":F.hasOwnProperty(be)?fe="property":H.hasOwnProperty(be)?fe="keyword":pe.hasOwnProperty(be)?fe="property":xe.hasOwnProperty(be)?fe=ne?"string-2":"property":Ge.hasOwnProperty(be)?fe="atom":Xe.hasOwnProperty(be)?fe="keyword":fe="error"}return D.context.type},Ze.atComponentBlock=function(Q,Z,D){return Q=="}"?Fr(Q,Z,D):Q=="{"?st(D)&&Qe(D,Z,ae?"block":"top",!1):(Q=="word"&&(fe="error"),D.context.type)},Ze.atBlock_parens=function(Q,Z,D){return Q==")"?st(D):Q=="{"||Q=="}"?Fr(Q,Z,D,2):Ze.atBlock(Q,Z,D)},Ze.restricted_atBlock_before=function(Q,Z,D){return Q=="{"?Qe(D,Z,"restricted_atBlock"):Q=="word"&&D.stateArg=="@counter-style"?(fe="variable","restricted_atBlock_before"):wr(Q,Z,D)},Ze.restricted_atBlock=function(Q,Z,D){return Q=="}"?(D.stateArg=null,st(D)):Q=="word"?(D.stateArg=="@font-face"&&!De.hasOwnProperty(Z.current().toLowerCase())||D.stateArg=="@counter-style"&&!Ee.hasOwnProperty(Z.current().toLowerCase())?fe="error":fe="property","maybeprop"):"restricted_atBlock"},Ze.keyframes=function(Q,Z,D){return Q=="word"?(fe="variable","keyframes"):Q=="{"?Qe(D,Z,"top"):wr(Q,Z,D)},Ze.at=function(Q,Z,D){return Q==";"?st(D):Q=="{"||Q=="}"?Fr(Q,Z,D):(Q=="word"?fe="tag":Q=="hash"&&(fe="builtin"),"at")},Ze.interpolation=function(Q,Z,D){return Q=="}"?st(D):Q=="{"||Q==";"?Fr(Q,Z,D):(Q=="word"?fe="variable":Q!="variable"&&Q!="("&&Q!=")"&&(fe="error"),"interpolation")},{startState:function(Q){return{tokenize:null,state:N?"block":"top",stateArg:null,context:new ci(N?"block":"top",Q||0,null)}},token:function(Q,Z){if(!Z.tokenize&&Q.eatSpace())return null;var D=(Z.tokenize||ut)(Q,Z);return D&&typeof D=="object"&&(ve=D[1],D=D[0]),fe=D,ve!="comment"&&(Z.state=Ze[Z.state](ve,Q,Z)),fe},indent:function(Q,Z){var D=Q.context,be=Z&&Z.charAt(0),Xt=D.indent;return D.type=="prop"&&(be=="}"||be==")")&&(D=D.prev),D.prev&&(be=="}"&&(D.type=="block"||D.type=="top"||D.type=="interpolation"||D.type=="restricted_atBlock")?(D=D.prev,Xt=D.indent):(be==")"&&(D.type=="parens"||D.type=="atBlock_parens")||be=="{"&&(D.type=="at"||D.type=="atBlock"))&&(Xt=Math.max(0,D.indent-A))),Xt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:j,fold:"brace"}});function e(R){for(var E={},N=0;N<R.length;++N)E[R[N].toLowerCase()]=!0;return E}var r=["domain","regexp","url","url-prefix"],i=e(r),n=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],s=e(n),o=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],a=e(o),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],h=e(l),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","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","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","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-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],u=e(c),f=["border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],p=e(f),d=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],y=e(d),b=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],S=e(b),w=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],O=e(w),v=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],T=e(v),_=r.concat(n).concat(o).concat(l).concat(c).concat(f).concat(w).concat(v);t.registerHelper("hintWords","css",_);function L(R,E){for(var N=!1,A;(A=R.next())!=null;){if(N&&A=="/"){E.tokenize=null;break}N=A=="*"}return["comment","comment"]}t.defineMIME("text/css",{documentTypes:i,mediaTypes:s,mediaFeatures:a,mediaValueKeywords:h,propertyKeywords:u,nonStandardPropertyKeywords:p,fontProperties:y,counterDescriptors:S,colorKeywords:O,valueKeywords:T,tokenHooks:{"/":function(R,E){return R.eat("*")?(E.tokenize=L,L(R,E)):!1}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:s,mediaFeatures:a,mediaValueKeywords:h,propertyKeywords:u,nonStandardPropertyKeywords:p,colorKeywords:O,valueKeywords:T,fontProperties:y,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(R,E){return R.eat("/")?(R.skipToEnd(),["comment","comment"]):R.eat("*")?(E.tokenize=L,L(R,E)):["operator","operator"]},":":function(R){return R.match(/^\s*\{/,!1)?[null,null]:!1},$:function(R){return R.match(/^[\w-]+/),R.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(R){return R.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:s,mediaFeatures:a,mediaValueKeywords:h,propertyKeywords:u,nonStandardPropertyKeywords:p,colorKeywords:O,valueKeywords:T,fontProperties:y,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(R,E){return R.eat("/")?(R.skipToEnd(),["comment","comment"]):R.eat("*")?(E.tokenize=L,L(R,E)):["operator","operator"]},"@":function(R){return R.eat("{")?[null,"interpolation"]:R.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(R.eatWhile(/[\w\\\-]/),R.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:i,mediaTypes:s,mediaFeatures:a,propertyKeywords:u,nonStandardPropertyKeywords:p,fontProperties:y,counterDescriptors:S,colorKeywords:O,valueKeywords:T,supportsAtComponent:!0,tokenHooks:{"/":function(R,E){return R.eat("*")?(E.tokenize=L,L(R,E)):!1}},name:"css",helperType:"gss"})});(function(t){typeof exports=="object"&&typeof module=="object"?t(Oo("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",function(i,n){var s=i.indentUnit,o={},a=n.htmlMode?e:r;for(var l in a)o[l]=a[l];for(var l in n)o[l]=n[l];var h,c;function u(P,x){function $(pe){return x.tokenize=pe,pe(P,x)}var F=P.next();if(F=="<")return P.eat("!")?P.eat("[")?P.match("CDATA[")?$(d("atom","]]>")):null:P.match("--")?$(d("comment","-->")):P.match("DOCTYPE",!0,!0)?(P.eatWhile(/[\w\._\-]/),$(y(1))):null:P.eat("?")?(P.eatWhile(/[\w\._\-]/),x.tokenize=d("meta","?>"),"meta"):(h=P.eat("/")?"closeTag":"openTag",x.tokenize=f,"tag bracket");if(F=="&"){var H;return P.eat("#")?P.eat("x")?H=P.eatWhile(/[a-fA-F\d]/)&&P.eat(";"):H=P.eatWhile(/[\d]/)&&P.eat(";"):H=P.eatWhile(/[\w\.\-:]/)&&P.eat(";"),H?"atom":"error"}else return P.eatWhile(/[^&<]/),null}u.isInText=!0;function f(P,x){var $=P.next();if($==">"||$=="/"&&P.eat(">"))return x.tokenize=u,h=$==">"?"endTag":"selfcloseTag","tag bracket";if($=="=")return h="equals",null;if($=="<"){x.tokenize=u,x.state=O,x.tagName=x.tagStart=null;var F=x.tokenize(P,x);return F?F+" tag error":"tag error"}else return/[\'\"]/.test($)?(x.tokenize=p($),x.stringStartCol=P.column(),x.tokenize(P,x)):(P.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(P){var x=function($,F){for(;!$.eol();)if($.next()==P){F.tokenize=f;break}return"string"};return x.isInAttribute=!0,x}function d(P,x){return function($,F){for(;!$.eol();){if($.match(x)){F.tokenize=u;break}$.next()}return P}}function y(P){return function(x,$){for(var F;(F=x.next())!=null;){if(F=="<")return $.tokenize=y(P+1),$.tokenize(x,$);if(F==">")if(P==1){$.tokenize=u;break}else return $.tokenize=y(P-1),$.tokenize(x,$)}return"meta"}}function b(P,x,$){this.prev=P.context,this.tagName=x||"",this.indent=P.indented,this.startOfLine=$,(o.doNotIndent.hasOwnProperty(x)||P.context&&P.context.noIndent)&&(this.noIndent=!0)}function S(P){P.context&&(P.context=P.context.prev)}function w(P,x){for(var $;;){if(!P.context||($=P.context.tagName,!o.contextGrabbers.hasOwnProperty($)||!o.contextGrabbers[$].hasOwnProperty(x)))return;S(P)}}function O(P,x,$){return P=="openTag"?($.tagStart=x.column(),v):P=="closeTag"?T:O}function v(P,x,$){return P=="word"?($.tagName=x.current(),c="tag",R):o.allowMissingTagName&&P=="endTag"?(c="tag bracket",R(P,x,$)):(c="error",v)}function T(P,x,$){if(P=="word"){var F=x.current();return $.context&&$.context.tagName!=F&&o.implicitlyClosed.hasOwnProperty($.context.tagName)&&S($),$.context&&$.context.tagName==F||o.matchClosing===!1?(c="tag",_):(c="tag error",L)}else return o.allowMissingTagName&&P=="endTag"?(c="tag bracket",_(P,x,$)):(c="error",L)}function _(P,x,$){return P!="endTag"?(c="error",_):(S($),O)}function L(P,x,$){return c="error",_(P,x,$)}function R(P,x,$){if(P=="word")return c="attribute",E;if(P=="endTag"||P=="selfcloseTag"){var F=$.tagName,H=$.tagStart;return $.tagName=$.tagStart=null,P=="selfcloseTag"||o.autoSelfClosers.hasOwnProperty(F)?w($,F):(w($,F),$.context=new b($,F,H==$.indented)),O}return c="error",R}function E(P,x,$){return P=="equals"?N:(o.allowMissing||(c="error"),R(P,x,$))}function N(P,x,$){return P=="string"?A:P=="word"&&o.allowUnquoted?(c="string",R):(c="error",R(P,x,$))}function A(P,x,$){return P=="string"?A:R(P,x,$)}return{startState:function(P){var x={tokenize:u,state:O,indented:P||0,tagName:null,tagStart:null,context:null};return P!=null&&(x.baseIndent=P),x},token:function(P,x){if(!x.tagName&&P.sol()&&(x.indented=P.indentation()),P.eatSpace())return null;h=null;var $=x.tokenize(P,x);return($||h)&&$!="comment"&&(c=null,x.state=x.state(h||$,P,x),c&&($=c=="error"?$+" error":c)),$},indent:function(P,x,$){var F=P.context;if(P.tokenize.isInAttribute)return P.tagStart==P.indented?P.stringStartCol+1:P.indented+s;if(F&&F.noIndent)return t.Pass;if(P.tokenize!=f&&P.tokenize!=u)return $?$.match(/^(\s*)/)[0].length:0;if(P.tagName)return o.multilineTagIndentPastTag!==!1?P.tagStart+P.tagName.length+2:P.tagStart+s*(o.multilineTagIndentFactor||1);if(o.alignCDATA&&/<!\[CDATA\[/.test(x))return 0;var H=x&&/^<(\/)?([\w_:\.-]*)/.exec(x);if(H&&H[1])for(;F;)if(F.tagName==H[2]){F=F.prev;break}else if(o.implicitlyClosed.hasOwnProperty(F.tagName))F=F.prev;else break;else if(H)for(;F;){var pe=o.contextGrabbers[F.tagName];if(pe&&pe.hasOwnProperty(H[2]))F=F.prev;else break}for(;F&&F.prev&&!F.startOfLine;)F=F.prev;return F?F.indent+s:P.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:o.htmlMode?"html":"xml",helperType:o.htmlMode?"html":"xml",skipAttribute:function(P){P.state==N&&(P.state=R)},xmlCurrentTag:function(P){return P.tagName?{name:P.tagName,close:P.type=="closeTag"}:null},xmlCurrentContext:function(P){for(var x=[],$=P.context;$;$=$.prev)x.push($.tagName);return x.reverse()}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})});(function(t){typeof exports=="object"&&typeof module=="object"?t(Oo("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("javascript",function(e,r){var i=e.indentUnit,n=r.statementIndent,s=r.jsonld,o=r.json||s,a=r.trackScope!==!1,l=r.typescript,h=r.wordCharacters||/[\w$\xa1-\uffff]/,c=(function(){function m(yt){return{type:yt,style:"keyword"}}var k=m("keyword a"),M=m("keyword b"),X=m("keyword c"),le=m("keyword d"),we=m("operator"),Ce={type:"atom",style:"atom"};return{if:m("if"),while:k,with:k,else:M,do:M,try:M,finally:M,return:le,break:le,continue:le,new:m("new"),delete:X,void:X,throw:X,debugger:m("debugger"),var:m("var"),const:m("var"),let:m("var"),function:m("function"),catch:m("catch"),for:m("for"),switch:m("switch"),case:m("case"),default:m("default"),in:we,typeof:we,instanceof:we,true:Ce,false:Ce,null:Ce,undefined:Ce,NaN:Ce,Infinity:Ce,this:m("this"),class:m("class"),super:m("atom"),yield:X,export:m("export"),import:m("import"),extends:X,await:X}})(),u=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(m){for(var k=!1,M,X=!1;(M=m.next())!=null;){if(!k){if(M=="/"&&!X)return;M=="["?X=!0:X&&M=="]"&&(X=!1)}k=!k&&M=="\\"}}var d,y;function b(m,k,M){return d=m,y=M,k}function S(m,k){var M=m.next();if(M=='"'||M=="'")return k.tokenize=w(M),k.tokenize(m,k);if(M=="."&&m.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return b("number","number");if(M=="."&&m.match(".."))return b("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(M))return b(M);if(M=="="&&m.eat(">"))return b("=>","operator");if(M=="0"&&m.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return b("number","number");if(/\d/.test(M))return m.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),b("number","number");if(M=="/")return m.eat("*")?(k.tokenize=O,O(m,k)):m.eat("/")?(m.skipToEnd(),b("comment","comment")):rp(m,k,1)?(p(m),m.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),b("regexp","string-2")):(m.eat("="),b("operator","operator",m.current()));if(M=="`")return k.tokenize=v,v(m,k);if(M=="#"&&m.peek()=="!")return m.skipToEnd(),b("meta","meta");if(M=="#"&&m.eatWhile(h))return b("variable","property");if(M=="<"&&m.match("!--")||M=="-"&&m.match("->")&&!/\S/.test(m.string.slice(0,m.start)))return m.skipToEnd(),b("comment","comment");if(u.test(M))return(M!=">"||!k.lexical||k.lexical.type!=">")&&(m.eat("=")?(M=="!"||M=="=")&&m.eat("="):/[<>*+\-|&?]/.test(M)&&(m.eat(M),M==">"&&m.eat(M))),M=="?"&&m.eat(".")?b("."):b("operator","operator",m.current());if(h.test(M)){m.eatWhile(h);var X=m.current();if(k.lastType!="."){if(c.propertyIsEnumerable(X)){var le=c[X];return b(le.type,le.style,X)}if(X=="async"&&m.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return b("async","keyword",X)}return b("variable","variable",X)}}function w(m){return function(k,M){var X=!1,le;if(s&&k.peek()=="@"&&k.match(f))return M.tokenize=S,b("jsonld-keyword","meta");for(;(le=k.next())!=null&&!(le==m&&!X);)X=!X&&le=="\\";return X||(M.tokenize=S),b("string","string")}}function O(m,k){for(var M=!1,X;X=m.next();){if(X=="/"&&M){k.tokenize=S;break}M=X=="*"}return b("comment","comment")}function v(m,k){for(var M=!1,X;(X=m.next())!=null;){if(!M&&(X=="`"||X=="$"&&m.eat("{"))){k.tokenize=S;break}M=!M&&X=="\\"}return b("quasi","string-2",m.current())}var T="([{}])";function _(m,k){k.fatArrowAt&&(k.fatArrowAt=null);var M=m.string.indexOf("=>",m.start);if(!(M<0)){if(l){var X=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(m.string.slice(m.start,M));X&&(M=X.index)}for(var le=0,we=!1,Ce=M-1;Ce>=0;--Ce){var yt=m.string.charAt(Ce),kr=T.indexOf(yt);if(kr>=0&&kr<3){if(!le){++Ce;break}if(--le==0){yt=="("&&(we=!0);break}}else if(kr>=3&&kr<6)++le;else if(h.test(yt))we=!0;else if(/["'\/`]/.test(yt))for(;;--Ce){if(Ce==0)return;var W1=m.string.charAt(Ce-1);if(W1==yt&&m.string.charAt(Ce-2)!="\\"){Ce--;break}}else if(we&&!le){++Ce;break}}we&&!le&&(k.fatArrowAt=Ce)}}var L={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function R(m,k,M,X,le,we){this.indented=m,this.column=k,this.type=M,this.prev=le,this.info=we,X!=null&&(this.align=X)}function E(m,k){if(!a)return!1;for(var M=m.localVars;M;M=M.next)if(M.name==k)return!0;for(var X=m.context;X;X=X.prev)for(var M=X.vars;M;M=M.next)if(M.name==k)return!0}function N(m,k,M,X,le){var we=m.cc;for(A.state=m,A.stream=le,A.marked=null,A.cc=we,A.style=k,m.lexical.hasOwnProperty("align")||(m.lexical.align=!0);;){var Ce=we.length?we.pop():o?se:ve;if(Ce(M,X)){for(;we.length&&we[we.length-1].lex;)we.pop()();return A.marked?A.marked:M=="variable"&&E(m,X)?"variable-2":k}}}var A={state:null,column:null,marked:null,cc:null};function P(){for(var m=arguments.length-1;m>=0;m--)A.cc.push(arguments[m])}function x(){return P.apply(null,arguments),!0}function $(m,k){for(var M=k;M;M=M.next)if(M.name==m)return!0;return!1}function F(m){var k=A.state;if(A.marked="def",!!a){if(k.context){if(k.lexical.info=="var"&&k.context&&k.context.block){var M=H(m,k.context);if(M!=null){k.context=M;return}}else if(!$(m,k.localVars)){k.localVars=new De(m,k.localVars);return}}r.globalVars&&!$(m,k.globalVars)&&(k.globalVars=new De(m,k.globalVars))}}function H(m,k){if(k)if(k.block){var M=H(m,k.prev);return M?M==k.prev?k:new xe(M,k.vars,!0):null}else return $(m,k.vars)?k:new xe(k.prev,new De(m,k.vars),!1);else return null}function pe(m){return m=="public"||m=="private"||m=="protected"||m=="abstract"||m=="readonly"}function xe(m,k,M){this.prev=m,this.vars=k,this.block=M}function De(m,k){this.name=m,this.next=k}var Ee=new De("this",new De("arguments",null));function Xe(){A.state.context=new xe(A.state.context,A.state.localVars,!1),A.state.localVars=Ee}function Ge(){A.state.context=new xe(A.state.context,A.state.localVars,!0),A.state.localVars=null}function ae(){A.state.localVars=A.state.context.vars,A.state.context=A.state.context.prev}ae.lex=!0;function j(m,k){var M=function(){var X=A.state,le=X.indented;if(X.lexical.type=="stat")le=X.lexical.indented;else for(var we=X.lexical;we&&we.type==")"&&we.align;we=we.prev)le=we.indented;X.lexical=new R(le,A.stream.column(),m,null,X.lexical,k)};return M.lex=!0,M}function q(){var m=A.state;m.lexical.prev&&(m.lexical.type==")"&&(m.indented=m.lexical.indented),m.lexical=m.lexical.prev)}q.lex=!0;function ne(m){function k(M){return M==m?x():m==";"||M=="}"||M==")"||M=="]"?P():x(k)}return k}function ve(m,k){return m=="var"?x(j("vardef",k),Xl,ne(";"),q):m=="keyword a"?x(j("form"),un,ve,q):m=="keyword b"?x(j("form"),ve,q):m=="keyword d"?A.stream.match(/^\s*$/,!1)?x():x(j("stat"),ci,ne(";"),q):m=="debugger"?x(ne(";")):m=="{"?x(j("}"),Ge,uo,q,ae):m==";"?x():m=="if"?(A.state.lexical.info=="else"&&A.state.cc[A.state.cc.length-1]==q&&A.state.cc.pop()(),x(j("form"),un,ve,q,Yf)):m=="function"?x(pi):m=="for"?x(j("form"),Ge,qf,ve,ae,q):m=="class"||l&&k=="interface"?(A.marked="keyword",x(j("form",m=="class"?m:k),Kf,q)):m=="variable"?l&&k=="declare"?(A.marked="keyword",x(ve)):l&&(k=="module"||k=="enum"||k=="type")&&A.stream.match(/^\s*\w/,!1)?(A.marked="keyword",k=="enum"?x(tp):k=="type"?x(Hf,ne("operator"),Re,ne(";")):x(j("form"),hr,ne("{"),j("}"),uo,q,q)):l&&k=="namespace"?(A.marked="keyword",x(j("form"),se,ve,q)):l&&k=="abstract"?(A.marked="keyword",x(ve)):x(j("stat"),be):m=="switch"?x(j("form"),un,ne("{"),j("}","switch"),Ge,uo,q,q,ae):m=="case"?x(se,ne(":")):m=="default"?x(ne(":")):m=="catch"?x(j("form"),Xe,fe,ve,q,ae):m=="export"?x(j("stat"),F1,q):m=="import"?x(j("stat"),z1,q):m=="async"?x(ve):k=="@"?x(se,ve):P(j("stat"),se,ne(";"),q)}function fe(m){if(m=="(")return x(_i,ne(")"))}function se(m,k){return ho(m,k,!1)}function ut(m,k){return ho(m,k,!0)}function un(m){return m!="("?P():x(j(")"),ci,ne(")"),q)}function ho(m,k,M){if(A.state.fatArrowAt==A.stream.start){var X=M?Ze:es;if(m=="(")return x(Xe,j(")"),ot(_i,")"),q,ne("=>"),X,ae);if(m=="variable")return P(Xe,hr,ne("=>"),X,ae)}var le=M?st:Qe;return L.hasOwnProperty(m)?x(le):m=="function"?x(pi,le):m=="class"||l&&k=="interface"?(A.marked="keyword",x(j("form"),Z1,q)):m=="keyword c"||m=="async"?x(M?ut:se):m=="("?x(j(")"),ci,ne(")"),q,le):m=="operator"||m=="spread"?x(M?ut:se):m=="["?x(j("]"),B1,q,le):m=="{"?ts(co,"}",null,le):m=="quasi"?P(wr,le):m=="new"?x(Q(M)):x()}function ci(m){return m.match(/[;\}\)\],]/)?P():P(se)}function Qe(m,k){return m==","?x(ci):st(m,k,!1)}function st(m,k,M){var X=M==!1?Qe:st,le=M==!1?se:ut;if(m=="=>")return x(Xe,M?Ze:es,ae);if(m=="operator")return/\+\+|--/.test(k)||l&&k=="!"?x(X):l&&k=="<"&&A.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?x(j(">"),ot(Re,">"),q,X):k=="?"?x(se,ne(":"),le):x(le);if(m=="quasi")return P(wr,X);if(m!=";"){if(m=="(")return ts(ut,")","call",X);if(m==".")return x(Xt,X);if(m=="[")return x(j("]"),ci,ne("]"),q,X);if(l&&k=="as")return A.marked="keyword",x(Re,X);if(m=="regexp")return A.state.lastType=A.marked="operator",A.stream.backUp(A.stream.pos-A.stream.start-1),x(le)}}function wr(m,k){return m!="quasi"?P():k.slice(k.length-2)!="${"?x(wr):x(se,Fr)}function Fr(m){if(m=="}")return A.marked="string-2",A.state.tokenize=v,x(wr)}function es(m){return _(A.stream,A.state),P(m=="{"?ve:se)}function Ze(m){return _(A.stream,A.state),P(m=="{"?ve:ut)}function Q(m){return function(k){return k=="."?x(m?D:Z):k=="variable"&&l?x(I1,m?st:Qe):P(m?ut:se)}}function Z(m,k){if(k=="target")return A.marked="keyword",x(Qe)}function D(m,k){if(k=="target")return A.marked="keyword",x(st)}function be(m){return m==":"?x(q,ve):P(Qe,ne(";"),q)}function Xt(m){if(m=="variable")return A.marked="property",x()}function co(m,k){if(m=="async")return A.marked="property",x(co);if(m=="variable"||A.style=="keyword"){if(A.marked="property",k=="get"||k=="set")return x(R1);var M;return l&&A.state.fatArrowAt==A.stream.start&&(M=A.stream.match(/^\s*:\s*/,!1))&&(A.state.fatArrowAt=A.stream.pos+M[0].length),x(Li)}else{if(m=="number"||m=="string")return A.marked=s?"property":A.style+" property",x(Li);if(m=="jsonld-keyword")return x(Li);if(l&&pe(k))return A.marked="keyword",x(co);if(m=="[")return x(se,fn,ne("]"),Li);if(m=="spread")return x(ut,Li);if(k=="*")return A.marked="keyword",x(co);if(m==":")return P(Li)}}function R1(m){return m!="variable"?P(Li):(A.marked="property",x(pi))}function Li(m){if(m==":")return x(ut);if(m=="(")return P(pi)}function ot(m,k,M){function X(le,we){if(M?M.indexOf(le)>-1:le==","){var Ce=A.state.lexical;return Ce.info=="call"&&(Ce.pos=(Ce.pos||0)+1),x(function(yt,kr){return yt==k||kr==k?P():P(m)},X)}return le==k||we==k?x():M&&M.indexOf(";")>-1?P(m):x(ne(k))}return function(le,we){return le==k||we==k?x():P(m,X)}}function ts(m,k,M){for(var X=3;X<arguments.length;X++)A.cc.push(arguments[X]);return x(j(k,M),ot(m,k),q)}function uo(m){return m=="}"?x():P(ve,uo)}function fn(m,k){if(l){if(m==":")return x(Re);if(k=="?")return x(fn)}}function $1(m,k){if(l&&(m==":"||k=="in"))return x(Re)}function Wf(m){if(l&&m==":")return A.stream.match(/^\s*\w+\s+is\b/,!1)?x(se,L1,Re):x(Re)}function L1(m,k){if(k=="is")return A.marked="keyword",x()}function Re(m,k){if(k=="keyof"||k=="typeof"||k=="infer"||k=="readonly")return A.marked="keyword",x(k=="typeof"?ut:Re);if(m=="variable"||k=="void")return A.marked="type",x(ui);if(k=="|"||k=="&")return x(Re);if(m=="string"||m=="number"||m=="atom")return x(ui);if(m=="[")return x(j("]"),ot(Re,"]",","),q,ui);if(m=="{")return x(j("}"),Ml,q,ui);if(m=="(")return x(ot(Nl,")"),_1,ui);if(m=="<")return x(ot(Re,">"),Re)}function _1(m){if(m=="=>")return x(Re)}function Ml(m){return m.match(/[\}\)\]]/)?x():m==","||m==";"?x(Ml):P(rs,Ml)}function rs(m,k){if(m=="variable"||A.style=="keyword")return A.marked="property",x(rs);if(k=="?"||m=="number"||m=="string")return x(rs);if(m==":")return x(Re);if(m=="[")return x(ne("variable"),$1,ne("]"),rs);if(m=="(")return P(dn,rs);if(!m.match(/[;\}\)\],]/))return x()}function Nl(m,k){return m=="variable"&&A.stream.match(/^\s*[?:]/,!1)||k=="?"?x(Nl):m==":"?x(Re):m=="spread"?x(Nl):P(Re)}function ui(m,k){if(k=="<")return x(j(">"),ot(Re,">"),q,ui);if(k=="|"||m=="."||k=="&")return x(Re);if(m=="[")return x(Re,ne("]"),ui);if(k=="extends"||k=="implements")return A.marked="keyword",x(Re);if(k=="?")return x(Re,ne(":"),Re)}function I1(m,k){if(k=="<")return x(j(">"),ot(Re,">"),q,ui)}function fo(){return P(Re,D1)}function D1(m,k){if(k=="=")return x(Re)}function Xl(m,k){return k=="enum"?(A.marked="keyword",x(tp)):P(hr,fn,fi,N1)}function hr(m,k){if(l&&pe(k))return A.marked="keyword",x(hr);if(m=="variable")return F(k),x();if(m=="spread")return x(hr);if(m=="[")return ts(M1,"]");if(m=="{")return ts(Gf,"}")}function Gf(m,k){return m=="variable"&&!A.stream.match(/^\s*:/,!1)?(F(k),x(fi)):(m=="variable"&&(A.marked="property"),m=="spread"?x(hr):m=="}"?P():m=="["?x(se,ne("]"),ne(":"),Gf):x(ne(":"),hr,fi))}function M1(){return P(hr,fi)}function fi(m,k){if(k=="=")return x(ut)}function N1(m){if(m==",")return x(Xl)}function Yf(m,k){if(m=="keyword b"&&k=="else")return x(j("form","else"),ve,q)}function qf(m,k){if(k=="await")return x(qf);if(m=="(")return x(j(")"),X1,q)}function X1(m){return m=="var"?x(Xl,pn):m=="variable"?x(pn):P(pn)}function pn(m,k){return m==")"?x():m==";"?x(pn):k=="in"||k=="of"?(A.marked="keyword",x(se,pn)):P(se,pn)}function pi(m,k){if(k=="*")return A.marked="keyword",x(pi);if(m=="variable")return F(k),x(pi);if(m=="(")return x(Xe,j(")"),ot(_i,")"),q,Wf,ve,ae);if(l&&k=="<")return x(j(">"),ot(fo,">"),q,pi)}function dn(m,k){if(k=="*")return A.marked="keyword",x(dn);if(m=="variable")return F(k),x(dn);if(m=="(")return x(Xe,j(")"),ot(_i,")"),q,Wf,ae);if(l&&k=="<")return x(j(">"),ot(fo,">"),q,dn)}function Hf(m,k){if(m=="keyword"||m=="variable")return A.marked="type",x(Hf);if(k=="<")return x(j(">"),ot(fo,">"),q)}function _i(m,k){return k=="@"&&x(se,_i),m=="spread"?x(_i):l&&pe(k)?(A.marked="keyword",x(_i)):l&&m=="this"?x(fn,fi):P(hr,fn,fi)}function Z1(m,k){return m=="variable"?Kf(m,k):po(m,k)}function Kf(m,k){if(m=="variable")return F(k),x(po)}function po(m,k){if(k=="<")return x(j(">"),ot(fo,">"),q,po);if(k=="extends"||k=="implements"||l&&m==",")return k=="implements"&&(A.marked="keyword"),x(l?Re:se,po);if(m=="{")return x(j("}"),zr,q)}function zr(m,k){if(m=="async"||m=="variable"&&(k=="static"||k=="get"||k=="set"||l&&pe(k))&&A.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return A.marked="keyword",x(zr);if(m=="variable"||A.style=="keyword")return A.marked="property",x(mo,zr);if(m=="number"||m=="string")return x(mo,zr);if(m=="[")return x(se,fn,ne("]"),mo,zr);if(k=="*")return A.marked="keyword",x(zr);if(l&&m=="(")return P(dn,zr);if(m==";"||m==",")return x(zr);if(m=="}")return x();if(k=="@")return x(se,zr)}function mo(m,k){if(k=="?")return x(mo);if(m==":")return x(Re,fi);if(k=="=")return x(ut);var M=A.state.lexical.prev,X=M&&M.info=="interface";return P(X?dn:pi)}function F1(m,k){return k=="*"?(A.marked="keyword",x(Zl,ne(";"))):k=="default"?(A.marked="keyword",x(se,ne(";"))):m=="{"?x(ot(Jf,"}"),Zl,ne(";")):P(ve)}function Jf(m,k){if(k=="as")return A.marked="keyword",x(ne("variable"));if(m=="variable")return P(ut,Jf)}function z1(m){return m=="string"?x():m=="("?P(se):m=="."?P(Qe):P(go,ep,Zl)}function go(m,k){return m=="{"?ts(go,"}"):(m=="variable"&&F(k),k=="*"&&(A.marked="keyword"),x(V1))}function ep(m){if(m==",")return x(go,ep)}function V1(m,k){if(k=="as")return A.marked="keyword",x(go)}function Zl(m,k){if(k=="from")return A.marked="keyword",x(se)}function B1(m){return m=="]"?x():P(ot(ut,"]"))}function tp(){return P(j("form"),hr,ne("{"),j("}"),ot(j1,"}"),q,q)}function j1(){return P(hr,fi)}function U1(m,k){return m.lastType=="operator"||m.lastType==","||u.test(k.charAt(0))||/[,.]/.test(k.charAt(0))}function rp(m,k,M){return k.tokenize==S&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(k.lastType)||k.lastType=="quasi"&&/\{\s*$/.test(m.string.slice(0,m.pos-(M||0)))}return{startState:function(m){var k={tokenize:S,lastType:"sof",cc:[],lexical:new R((m||0)-i,0,"block",!1),localVars:r.localVars,context:r.localVars&&new xe(null,null,!1),indented:m||0};return r.globalVars&&typeof r.globalVars=="object"&&(k.globalVars=r.globalVars),k},token:function(m,k){if(m.sol()&&(k.lexical.hasOwnProperty("align")||(k.lexical.align=!1),k.indented=m.indentation(),_(m,k)),k.tokenize!=O&&m.eatSpace())return null;var M=k.tokenize(m,k);return d=="comment"?M:(k.lastType=d=="operator"&&(y=="++"||y=="--")?"incdec":d,N(k,M,d,y,m))},indent:function(m,k){if(m.tokenize==O||m.tokenize==v)return t.Pass;if(m.tokenize!=S)return 0;var M=k&&k.charAt(0),X=m.lexical,le;if(!/^\s*else\b/.test(k))for(var we=m.cc.length-1;we>=0;--we){var Ce=m.cc[we];if(Ce==q)X=X.prev;else if(Ce!=Yf&&Ce!=ae)break}for(;(X.type=="stat"||X.type=="form")&&(M=="}"||(le=m.cc[m.cc.length-1])&&(le==Qe||le==st)&&!/^[,\.=+\-*:?[\(]/.test(k));)X=X.prev;n&&X.type==")"&&X.prev.type=="stat"&&(X=X.prev);var yt=X.type,kr=M==yt;return yt=="vardef"?X.indented+(m.lastType=="operator"||m.lastType==","?X.info.length+1:0):yt=="form"&&M=="{"?X.indented:yt=="form"?X.indented+i:yt=="stat"?X.indented+(U1(m,k)?n||i:0):X.info=="switch"&&!kr&&r.doubleIndentSwitch!=!1?X.indented+(/^(?:case|default)\b/.test(k)?i:2*i):X.align?X.column+(kr?0:1):X.indented+(kr?0:i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:o?null:"/*",blockCommentEnd:o?null:"*/",blockCommentContinue:o?null:" * ",lineComment:o?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:o?"json":"javascript",jsonldMode:s,jsonMode:o,expressionAllowed:rp,skipExpression:function(m){var k=m.cc[m.cc.length-1];(k==se||k==ut)&&m.cc.pop()}}}),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/manifest+json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})});var Il={};Ke(Il,{AbortTokenization:()=>Kn,createTokenizer:()=>hi,format:()=>o2,substituteExpression:()=>Uf});var Ii={};Ke(Ii,{Experiment:()=>Po,ExperimentsSupport:()=>To,GdpProfilesEnterprisePolicyValue:()=>Ip,GenAiEnterprisePolicyValue:()=>Lp,HostConfigFreestylerExecutionMode:()=>_p,Runtime:()=>ko,conditions:()=>TS,experiments:()=>ah,getChromeVersion:()=>kS,getPathName:()=>oh,getRemoteBase:()=>wS,hostConfig:()=>Dp,isNodeEntry:()=>$p});var Rp="",vo,nh,sh,wo=globalThis;function wS(t=wo.self?.location?.toString()??""){let r=new URL(t).searchParams.get("remoteBase");if(!r)return null;let i=/\/serve_file\/(@[0-9a-zA-Z]+)\/?$/.exec(r);return i?{base:`devtools://devtools-remote/remote/serve_file/${i[1]}/`,version:i[1]}:null}function oh(){return wo.location?.pathname??""}function $p(t){return["node_app","js_app"].some(r=>t.includes(r))}var kS=()=>{let t=/(?:^|\W)(?:Chrome|HeadlessChrome)\/(\S+)/,r=cr.HOST_RUNTIME.getUserAgent().match(t);return r&&r.length>1?r[1]:""},ko=class t{constructor(){}static instance(e={forceNew:null}){let{forceNew:r}=e;return(!vo||r)&&(vo=new t),vo}static removeInstance(){vo=void 0}static#e;static#t(){return!t.#e&&wo.location&&(t.#e=new URLSearchParams(wo.location.search)),t.#e}static queryParam(e){return t.#t()?.get(e)??null}static setQueryParamForTesting(e,r){t.#t()?.set(e,r)}static isNode(){return nh===void 0&&(nh=$p(oh())),nh}static isTraceApp(){return sh===void 0&&(sh=oh().includes("trace_app")),sh}static setPlatform(e){Rp=e}static platform(){return Rp}static isDescriptorEnabled(e){let{experiment:r}=e;if(r==="*")return!0;if(r?.startsWith("!")){let n=r.substring(1);if(ah.isEnabled(n))return!1}if(r&&!r.startsWith("!")){let n=r;if(!ah.isEnabled(n))return!1}let{condition:i}=e;return i?i(Dp):!0}loadLegacyModule(e){return console.log("Loading legacy module: "+e),import(`../../${e}`).then(i=>(console.log("Loaded legacy module: "+e),i))}},To=class{#e=new Map;#t=new Set;allConfigurableExperiments(){return[...this.#e.values()]}register(e){if(this.#i(e.name))throw new Error(`Duplicate registration of experiment '${e.name}'`);let r=new Po({...e,experiments:this});return this.#e.set(e.name,r),r}isEnabled(e){if(this.#i(e))return this.#t.has(e)||(this.#e.get(e)?.isEnabled()??!1);throw new Error(`Unknown experiment '${e}'`)}setEnabled(e,r){if(this.#i(e)){this.#e.get(e)?.setEnabled(r);return}throw new Error(`Unknown experiment '${e}'`)}enableForTest(e){if(!this.#i(e))throw new Error(`Unknown experiment '${e}'`);this.#t.add(e)}disableForTest(e){if(!this.#i(e))throw new Error(`Unknown experiment '${e}'`);this.#t.delete(e)}isEnabledForTest(e){return this.#t.has(e)}clearForTest(){this.#e.clear(),this.#t.clear()}#i(e){return this.#e.has(e)}},Po=class{name;title;#e;aboutFlag;#t;requiresChromeRestart;docLink;feedbackLink;constructor(e){this.name=e.name,this.title=e.title,this.#e=e.experiments,this.aboutFlag=e.aboutFlag,this.#t=e.isEnabled,this.requiresChromeRestart=e.requiresChromeRestart,this.docLink=e.docLink,this.feedbackLink=e.feedbackLink}isEnabled(){return this.#e.isEnabledForTest(this.name)||this.#t}setEnabled(e){this.#t=e}},ah=new To,Lp=(i=>(i[i.ALLOW=0]="ALLOW",i[i.ALLOW_WITHOUT_LOGGING=1]="ALLOW_WITHOUT_LOGGING",i[i.DISABLE=2]="DISABLE",i))(Lp||{}),_p=(i=>(i.ALL_SCRIPTS="ALL_SCRIPTS",i.SIDE_EFFECT_FREE_SCRIPTS_ONLY="SIDE_EFFECT_FREE_SCRIPTS_ONLY",i.NO_SCRIPTS="NO_SCRIPTS",i))(_p||{}),Ip=(i=>(i[i.ENABLED=0]="ENABLED",i[i.ENABLED_WITHOUT_BADGES=1]="ENABLED_WITHOUT_BADGES",i[i.DISABLED=2]="DISABLED",i))(Ip||{}),Dp=Object.create(null),TS={canDock:()=>!!ko.queryParam("can_dock")};var Ao=class{constructor(e){this.indentString=e}indentString;#e=0;#t=[];#i=0;#r=0;#s=0;#o=0;#a=!0;#n=!1;#l=0;#c=new Map;#u=/[$\u200C\u200D\p{ID_Continue}]/u;mapping={original:[0],formatted:[0]};setEnforceSpaceBetweenWords(e){let r=this.#a;return this.#a=e,r}addToken(e,r){if(this.#a&&!this.#l&&!this.#n){let n=(this.#t.at(-1)??"").at(-1)??"";(this.#u.test(n)||["`","}",")","]","'",'"',"/"].includes(n))&&this.#u.test(e)&&this.addSoftSpace()}this.#h(),this.#d(r),this.#f(e)}addSoftSpace(){this.#l||(this.#n=!0)}addHardSpace(){this.#n=!1,++this.#l}addNewLine(e){this.#i&&(e?++this.#o:this.#o=this.#o||1)}increaseNestingLevel(){this.#s+=1}decreaseNestingLevel(){this.#s>0&&(this.#s-=1)}content(){return this.#t.join("")+(this.#o?`
27
+ `:"")}#h(){if(this.#o){for(let e=0;e<this.#o;++e)this.#f(`
28
+ `);this.#f(this.#p())}else this.#n&&this.#f(" ");if(this.#l)for(let e=0;e<this.#l;++e)this.#f(" ");this.#o=0,this.#n=!1,this.#l=0}#p(){let e=this.#c.get(this.#s);if(e)return e;let r="";for(let i=0;i<this.#s;++i)r+=this.indentString;return this.#s<=20&&this.#c.set(this.#s,r),r}#f(e){this.#t.push(e),this.#i+=e.length}#d(e){e-this.#e!==this.#i-this.#r&&(this.mapping.original.push(e),this.#e=e,this.mapping.formatted.push(this.#i),this.#r=this.#i)}};var CS=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,199,7,137,9,54,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,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],zp=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,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,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,38,6,186,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,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,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,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],AS="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Vp="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u09FC\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",lh={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"},hh="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",ES={5:hh,"5module":hh+" export import",6:hh+" const class extends export import super"},Bp=/^in(stanceof)?$/,QS=new RegExp("["+Vp+"]"),RS=new RegExp("["+Vp+AS+"]");function uh(t,e){for(var r=65536,i=0;i<e.length;i+=2){if(r+=e[i],r>t)return!1;if(r+=e[i+1],r>=t)return!0}return!1}function Tr(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&QS.test(String.fromCharCode(t)):e===!1?!1:uh(t,zp)}function mi(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&RS.test(String.fromCharCode(t)):e===!1?!1:uh(t,zp)||uh(t,CS)}var ke=function(e,r){r===void 0&&(r={}),this.label=e,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function qt(t,e){return new ke(t,{beforeExpr:!0,binop:e})}var Ht={beforeExpr:!0},Rt={startsExpr:!0},dh={};function ge(t,e){return e===void 0&&(e={}),e.keyword=t,dh[t]=new ke(t,e)}var g={num:new ke("num",Rt),regexp:new ke("regexp",Rt),string:new ke("string",Rt),name:new ke("name",Rt),privateId:new ke("privateId",Rt),eof:new ke("eof"),bracketL:new ke("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ke("]"),braceL:new ke("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ke("}"),parenL:new ke("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ke(")"),comma:new ke(",",Ht),semi:new ke(";",Ht),colon:new ke(":",Ht),dot:new ke("."),question:new ke("?",Ht),questionDot:new ke("?."),arrow:new ke("=>",Ht),template:new ke("template"),invalidTemplate:new ke("invalidTemplate"),ellipsis:new ke("...",Ht),backQuote:new ke("`",Rt),dollarBraceL:new ke("${",{beforeExpr:!0,startsExpr:!0}),eq:new ke("=",{beforeExpr:!0,isAssign:!0}),assign:new ke("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ke("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ke("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:qt("||",1),logicalAND:qt("&&",2),bitwiseOR:qt("|",3),bitwiseXOR:qt("^",4),bitwiseAND:qt("&",5),equality:qt("==/!=/===/!==",6),relational:qt("</>/<=/>=",7),bitShift:qt("<</>>/>>>",8),plusMin:new ke("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:qt("%",10),star:qt("*",10),slash:qt("/",10),starstar:new ke("**",{beforeExpr:!0}),coalesce:qt("??",1),_break:ge("break"),_case:ge("case",Ht),_catch:ge("catch"),_continue:ge("continue"),_debugger:ge("debugger"),_default:ge("default",Ht),_do:ge("do",{isLoop:!0,beforeExpr:!0}),_else:ge("else",Ht),_finally:ge("finally"),_for:ge("for",{isLoop:!0}),_function:ge("function",Rt),_if:ge("if"),_return:ge("return",Ht),_switch:ge("switch"),_throw:ge("throw",Ht),_try:ge("try"),_var:ge("var"),_const:ge("const"),_while:ge("while",{isLoop:!0}),_with:ge("with"),_new:ge("new",{beforeExpr:!0,startsExpr:!0}),_this:ge("this",Rt),_super:ge("super",Rt),_class:ge("class",Rt),_extends:ge("extends",Ht),_export:ge("export"),_import:ge("import",Rt),_null:ge("null",Rt),_true:ge("true",Rt),_false:ge("false",Rt),_in:ge("in",{beforeExpr:!0,binop:7}),_instanceof:ge("instanceof",{beforeExpr:!0,binop:7}),_typeof:ge("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ge("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ge("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},$t=/\r\n?|\n|\u2028|\u2029/,$S=new RegExp($t.source,"g");function gn(t){return t===10||t===13||t===8232||t===8233}function jp(t,e,r){r===void 0&&(r=t.length);for(var i=e;i<r;i++){var n=t.charCodeAt(i);if(gn(n))return i<r-1&&n===13&&t.charCodeAt(i+1)===10?i+2:i+1}return-1}var Up=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ft=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Wp=Object.prototype,LS=Wp.hasOwnProperty,_S=Wp.toString,On=Object.hasOwn||(function(t,e){return LS.call(t,e)}),Mp=Array.isArray||(function(t){return _S.call(t)==="[object Array]"}),Np=Object.create(null);function di(t){return Np[t]||(Np[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function Vr(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}var IS=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,as=function(e,r){this.line=e,this.column=r};as.prototype.offset=function(e){return new as(this.line,this.column+e)};var ls=function(e,r,i){this.start=r,this.end=i,e.sourceFile!==null&&(this.source=e.sourceFile)};function mh(t,e){for(var r=1,i=0;;){var n=jp(t,i,e);if(n<0)return new as(r,e-i);++r,i=n}}var Qo={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Xp=!1;function DS(t){var e={};for(var r in Qo)e[r]=t&&On(t,r)?t[r]:Qo[r];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!Xp&&typeof console=="object"&&console.warn&&(Xp=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
29
+ Defaulting to 2020, but this will stop working in the future.`)),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),(!t||t.allowHashBang==null)&&(e.allowHashBang=e.ecmaVersion>=14),Mp(e.onToken)){var i=e.onToken;e.onToken=function(n){return i.push(n)}}if(Mp(e.onComment)&&(e.onComment=MS(e,e.onComment)),e.sourceType==="commonjs"&&e.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return e}function MS(t,e){return function(r,i,n,s,o,a){var l={type:r?"Block":"Line",value:i,start:n,end:s};t.locations&&(l.loc=new ls(this,o,a)),t.ranges&&(l.range=[n,s]),e.push(l)}}var Di=1,Mi=2,gh=4,Gp=8,Oh=16,Yp=32,Io=64,qp=128,Ni=256,hs=512,Hp=1024,Do=Di|Mi|Ni;function bh(t,e){return Mi|(t?gh:0)|(e?Gp:0)}var Ro=0,yh=1,jr=2,Kp=3,Jp=4,ed=5,ze=function(e,r,i){this.options=e=DS(e),this.sourceFile=e.sourceFile,this.keywords=di(ES[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var n="";e.allowReserved!==!0&&(n=lh[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType==="module"&&(n+=" await")),this.reservedWords=di(n);var s=(n?n+" ":"")+lh.strict;this.reservedWordsStrict=di(s),this.reservedWordsStrictBind=di(s+" "+lh.strictBind),this.input=String(r),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
30
+ `,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split($t).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=g.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=e.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Mi:Di),this.regexpState=null,this.privateNameStack=[]},Jt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};ze.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};Jt.inFunction.get=function(){return(this.currentVarScope().flags&Mi)>0};Jt.inGenerator.get=function(){return(this.currentVarScope().flags&Gp)>0};Jt.inAsync.get=function(){return(this.currentVarScope().flags&gh)>0};Jt.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t],r=e.flags;if(r&(Ni|hs))return!1;if(r&Mi)return(r&gh)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Jt.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Di)};Jt.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags;return(e&Io)>0||this.options.allowSuperOutsideMethod};Jt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&qp)>0};Jt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Jt.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t],r=e.flags;if(r&(Ni|hs)||r&Mi&&!(r&Oh))return!0}return!1};Jt.allowUsing.get=function(){var t=this.currentScope(),e=t.flags;return!(e&Hp||!this.inModule&&e&Di)};Jt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Ni)>0};ze.extend=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];for(var i=this,n=0;n<e.length;n++)i=e[n](i);return i};ze.parse=function(e,r){return new this(r,e).parse()};ze.parseExpressionAt=function(e,r,i){var n=new this(i,e,r);return n.nextToken(),n.parseExpression()};ze.tokenizer=function(e,r){return new this(r,e)};Object.defineProperties(ze.prototype,Jt);var St=ze.prototype,NS=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;St.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){ft.lastIndex=t,t+=ft.exec(this.input)[0].length;var e=NS.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){ft.lastIndex=t+e[0].length;var r=ft.exec(this.input),i=r.index+r[0].length,n=this.input.charAt(i);return n===";"||n==="}"||$t.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(i+1)==="=")}t+=e[0].length,ft.lastIndex=t,t+=ft.exec(this.input)[0].length,this.input[t]===";"&&t++}};St.eat=function(t){return this.type===t?(this.next(),!0):!1};St.isContextual=function(t){return this.type===g.name&&this.value===t&&!this.containsEsc};St.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};St.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};St.canInsertSemicolon=function(){return this.type===g.eof||this.type===g.braceR||$t.test(this.input.slice(this.lastTokEnd,this.start))};St.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};St.semicolon=function(){!this.eat(g.semi)&&!this.insertSemicolon()&&this.unexpected()};St.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0};St.expect=function(t){this.eat(t)||this.unexpected()};St.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var Mo=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};St.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var r=e?t.parenthesizedAssign:t.parenthesizedBind;r>-1&&this.raiseRecoverable(r,e?"Assigning to rvalue":"Parenthesized pattern")}};St.checkExpressionErrors=function(t,e){if(!t)return!1;var r=t.shorthandAssign,i=t.doubleProto;if(!e)return r>=0||i>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};St.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")};St.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var G=ze.prototype;G.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==g.eof;){var r=this.parseStatement(null,!0,e);t.body.push(r)}if(this.inModule)for(var i=0,n=Object.keys(this.undefinedExports);i<n.length;i+=1){var s=n[i];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(t,"Program")};var Sh={kind:"loop"},XS={kind:"switch"};G.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ft.lastIndex=this.pos;var e=ft.exec(this.input),r=this.pos+e[0].length,i=this.fullCharCodeAt(r);if(i===91||i===92)return!0;if(t)return!1;if(i===123)return!0;if(Tr(i)){var n=r;do r+=i<=65535?1:2;while(mi(i=this.fullCharCodeAt(r)));if(i===92)return!0;var s=this.input.slice(n,r);if(!Bp.test(s))return!0}return!1};G.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ft.lastIndex=this.pos;var t=ft.exec(this.input),e=this.pos+t[0].length,r;return!$t.test(this.input.slice(this.pos,e))&&this.input.slice(e,e+8)==="function"&&(e+8===this.input.length||!(mi(r=this.fullCharCodeAt(e+8))||r===92))};G.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;ft.lastIndex=this.pos;var r=ft.exec(this.input),i=this.pos+r[0].length;if($t.test(this.input.slice(this.pos,i)))return!1;if(t){var n=i+5,s;if(this.input.slice(i,n)!=="using"||n===this.input.length||mi(s=this.fullCharCodeAt(n))||s===92)return!1;ft.lastIndex=n;var o=ft.exec(this.input);if(i=n+o[0].length,o&&$t.test(this.input.slice(n,i)))return!1}var a=this.fullCharCodeAt(i);if(!Tr(a)&&a!==92)return!1;var l=i;do i+=a<=65535?1:2;while(mi(a=this.fullCharCodeAt(i)));if(a===92)return!0;var h=this.input.slice(l,i);return!(Bp.test(h)||e&&h==="of")};G.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)};G.isUsing=function(t){return this.isUsingKeyword(!1,t)};G.parseStatement=function(t,e,r){var i=this.type,n=this.startNode(),s;switch(this.isLet(t)&&(i=g._var,s="let"),i){case g._break:case g._continue:return this.parseBreakContinueStatement(n,i.keyword);case g._debugger:return this.parseDebuggerStatement(n);case g._do:return this.parseDoStatement(n);case g._for:return this.parseForStatement(n);case g._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!t);case g._class:return t&&this.unexpected(),this.parseClass(n,!0);case g._if:return this.parseIfStatement(n);case g._return:return this.parseReturnStatement(n);case g._switch:return this.parseSwitchStatement(n);case g._throw:return this.parseThrowStatement(n);case g._try:return this.parseTryStatement(n);case g._const:case g._var:return s=s||this.value,t&&s!=="var"&&this.unexpected(),this.parseVarStatement(n,s);case g._while:return this.parseWhileStatement(n);case g._with:return this.parseWithStatement(n);case g.braceL:return this.parseBlock(!0,n);case g.semi:return this.parseEmptyStatement(n);case g._export:case g._import:if(this.options.ecmaVersion>10&&i===g._import){ft.lastIndex=this.pos;var o=ft.exec(this.input),a=this.pos+o[0].length,l=this.input.charCodeAt(a);if(l===40||l===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||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===g._import?this.parseImport(n):this.parseExport(n,r);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!t);var h=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(h)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),h==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(n,!1,h),this.semicolon(),this.finishNode(n,"VariableDeclaration");var c=this.value,u=this.parseExpression();return i===g.name&&u.type==="Identifier"&&this.eat(g.colon)?this.parseLabeledStatement(n,c,u,t):this.parseExpressionStatement(n,u)}};G.parseBreakContinueStatement=function(t,e){var r=e==="break";this.next(),this.eat(g.semi)||this.insertSemicolon()?t.label=null:this.type!==g.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var n=this.labels[i];if((t.label==null||n.name===t.label.name)&&(n.kind!=null&&(r||n.kind==="loop")||t.label&&r))break}return i===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,r?"BreakStatement":"ContinueStatement")};G.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};G.parseDoStatement=function(t){return this.next(),this.labels.push(Sh),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(g._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(g.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};G.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Sh),this.enterScope(0),this.expect(g.parenL),this.type===g.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var r=this.isLet();if(this.type===g._var||this.type===g._const||r){var i=this.startNode(),n=r?"let":this.value;return this.next(),this.parseVar(i,!0,n),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(t,i,e)}var s=this.isContextual("let"),o=!1,a=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(a){var l=this.startNode();return this.next(),a==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(l,!0,a),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(t,l,e)}var h=this.containsEsc,c=new Mo,u=this.start,f=e>-1?this.parseExprSubscripts(c,"await"):this.parseExpression(!0,c);return this.type===g._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===g._in&&this.unexpected(e),t.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===u&&!h&&f.type==="Identifier"&&f.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(t.await=!1)),s&&o&&this.raise(f.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(f,!1,c),this.checkLValPattern(f),this.parseForIn(t,f)):(this.checkExpressionErrors(c,!0),e>-1&&this.unexpected(e),this.parseFor(t,f))};G.parseForAfterInit=function(t,e,r){return(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&e.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===g._in?r>-1&&this.unexpected(r):t.await=r>-1),this.parseForIn(t,e)):(r>-1&&this.unexpected(r),this.parseFor(t,e))};G.parseFunctionStatement=function(t,e,r){return this.next(),this.parseFunction(t,os|(r?0:fh),!1,e)};G.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(g._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};G.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};G.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(g.braceL),this.labels.push(XS),this.enterScope(Hp);for(var e,r=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var i=this.type===g._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),i?e.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,e.test=null),this.expect(g.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};G.parseThrowStatement=function(t){return this.next(),$t.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var ZS=[];G.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e=t.type==="Identifier";return this.enterScope(e?Yp:0),this.checkLValPattern(t,e?Jp:jr),this.expect(g.parenR),t};G.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===g._catch){var e=this.startNode();this.next(),this.eat(g.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(g._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};G.parseVarStatement=function(t,e,r){return this.next(),this.parseVar(t,!1,e,r),this.semicolon(),this.finishNode(t,"VariableDeclaration")};G.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Sh),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};G.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};G.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};G.parseLabeledStatement=function(t,e,r,i){for(var n=0,s=this.labels;n<s.length;n+=1){var o=s[n];o.name===e&&this.raise(r.start,"Label '"+e+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===g._switch?"switch":null,l=this.labels.length-1;l>=0;l--){var h=this.labels[l];if(h.statementStart===t.start)h.statementStart=this.start,h.kind=a;else break}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")};G.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")};G.parseBlock=function(t,e,r){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(g.braceL),t&&this.enterScope(0);this.type!==g.braceR;){var i=this.parseStatement(null);e.body.push(i)}return r&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")};G.parseFor=function(t,e){return t.init=e,this.expect(g.semi),t.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),t.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};G.parseForIn=function(t,e){var r=this.type===g._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(e.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(g.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,r?"ForInStatement":"ForOfStatement")};G.parseVar=function(t,e,r,i){for(t.declarations=[],t.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(g.eq)?n.init=this.parseMaybeAssign(e):!i&&r==="const"&&!(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!i&&(r==="using"||r==="await using")&&this.options.ecmaVersion>=17&&this.type!==g._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+r+" declaration"):!i&&n.id.type!=="Identifier"&&!(e&&(this.type===g._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,t.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(g.comma))break}return t};G.parseVarId=function(t,e){t.id=e==="using"||e==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,e==="var"?yh:jr,!1)};var os=1,fh=2,td=4;G.parseFunction=function(t,e,r,i,n){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===g.star&&e&fh&&this.unexpected(),t.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(t.async=!!i),e&os&&(t.id=e&td&&this.type!==g.name?null:this.parseIdent(),t.id&&!(e&fh)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?yh:jr:Kp));var s=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(bh(t.async,t.generator)),e&os||(t.id=this.type===g.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,r,!1,n),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(t,e&os?"FunctionDeclaration":"FunctionExpression")};G.parseFunctionParams=function(t){this.expect(g.parenL),t.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};G.parseClass=function(t,e){this.next();var r=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var i=this.enterClassBody(),n=this.startNode(),s=!1;for(n.body=[],this.expect(g.braceL);this.type!==g.braceR;){var o=this.parseClassElement(t.superClass!==null);o&&(n.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(s&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),s=!0):o.key&&o.key.type==="PrivateIdentifier"&&FS(i,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=r,this.next(),t.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")};G.parseClassElement=function(t){if(this.eat(g.semi))return null;var e=this.options.ecmaVersion,r=this.startNode(),i="",n=!1,s=!1,o="method",a=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(g.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===g.star?a=!0:i="static"}if(r.static=a,!i&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===g.star)&&!this.canInsertSemicolon()?s=!0:i="async"),!i&&(e>=9||!s)&&this.eat(g.star)&&(n=!0),!i&&!s&&!n){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=l:i=l)}if(i?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=i,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),e<13||this.type===g.parenL||o!=="method"||n||s){var h=!r.static&&$o(r,"constructor"),c=h&&t;h&&o!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=h?"constructor":o,this.parseClassMethod(r,n,s,c)}else this.parseClassField(r);return r};G.isClassElementNameStart=function(){return this.type===g.name||this.type===g.privateId||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword};G.parseClassElementName=function(t){this.type===g.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)};G.parseClassMethod=function(t,e,r,i){var n=t.key;t.kind==="constructor"?(e&&this.raise(n.start,"Constructor can't be a generator"),r&&this.raise(n.start,"Constructor can't be an async method")):t.static&&$o(t,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var s=t.value=this.parseMethod(e,r,i);return t.kind==="get"&&s.params.length!==0&&this.raiseRecoverable(s.start,"getter should have no params"),t.kind==="set"&&s.params.length!==1&&this.raiseRecoverable(s.start,"setter should have exactly one param"),t.kind==="set"&&s.params[0].type==="RestElement"&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")};G.parseClassField=function(t){return $o(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&$o(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(g.eq)?(this.enterScope(hs|Io),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")};G.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(Ni|Io);this.type!==g.braceR;){var r=this.parseStatement(null);t.body.push(r)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")};G.parseClassId=function(t,e){this.type===g.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,jr,!1)):(e===!0&&this.unexpected(),t.id=null)};G.parseClassSuper=function(t){t.superClass=this.eat(g._extends)?this.parseExprSubscripts(null,!1):null};G.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared};G.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,r=t.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,n=i===0?null:this.privateNameStack[i-1],s=0;s<r.length;++s){var o=r[s];On(e,o.name)||(n?n.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function FS(t,e){var r=e.key.name,i=t[r],n="true";return e.type==="MethodDefinition"&&(e.kind==="get"||e.kind==="set")&&(n=(e.static?"s":"i")+e.kind),i==="iget"&&n==="iset"||i==="iset"&&n==="iget"||i==="sget"&&n==="sset"||i==="sset"&&n==="sget"?(t[r]="true",!1):i?!0:(t[r]=n,!1)}function $o(t,e){var r=t.computed,i=t.key;return!r&&(i.type==="Identifier"&&i.name===e||i.type==="Literal"&&i.value===e)}G.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==g.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")};G.parseExport=function(t,e){if(this.next(),this.eat(g.star))return this.parseExportAllDeclaration(t,e);if(this.eat(g._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==g.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var r=0,i=t.specifiers;r<i.length;r+=1){var n=i[r];this.checkUnreserved(n.local),this.checkLocalExport(n.local),n.local.type==="Literal"&&this.raise(n.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};G.parseExportDeclaration=function(t){return this.parseStatement(null)};G.parseExportDefaultDeclaration=function(){var t;if(this.type===g._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,os|td,!1,t)}else if(this.type===g._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var i=this.parseMaybeAssign();return this.semicolon(),i}};G.checkExport=function(t,e,r){t&&(typeof e!="string"&&(e=e.type==="Identifier"?e.name:e.value),On(t,e)&&this.raiseRecoverable(r,"Duplicate export '"+e+"'"),t[e]=!0)};G.checkPatternExport=function(t,e){var r=e.type;if(r==="Identifier")this.checkExport(t,e,e.start);else if(r==="ObjectPattern")for(var i=0,n=e.properties;i<n.length;i+=1){var s=n[i];this.checkPatternExport(t,s)}else if(r==="ArrayPattern")for(var o=0,a=e.elements;o<a.length;o+=1){var l=a[o];l&&this.checkPatternExport(t,l)}else r==="Property"?this.checkPatternExport(t,e.value):r==="AssignmentPattern"?this.checkPatternExport(t,e.left):r==="RestElement"&&this.checkPatternExport(t,e.argument)};G.checkVariableExport=function(t,e){if(t)for(var r=0,i=e;r<i.length;r+=1){var n=i[r];this.checkPatternExport(t,n.id)}};G.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};G.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")};G.parseExportSpecifiers=function(t){var e=[],r=!0;for(this.expect(g.braceL);!this.eat(g.braceR);){if(r)r=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;e.push(this.parseExportSpecifier(t))}return e};G.parseImport=function(t){return this.next(),this.type===g.string?(t.specifiers=ZS,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===g.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")};G.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,jr),this.finishNode(t,"ImportSpecifier")};G.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,jr),this.finishNode(t,"ImportDefaultSpecifier")};G.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,jr),this.finishNode(t,"ImportNamespaceSpecifier")};G.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===g.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(g.comma)))return t;if(this.type===g.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(g.braceL);!this.eat(g.braceR);){if(e)e=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;t.push(this.parseImportSpecifier())}return t};G.parseWithClause=function(){var t=[];if(!this.eat(g._with))return t;this.expect(g.braceL);for(var e={},r=!0;!this.eat(g.braceR);){if(r)r=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var i=this.parseImportAttribute(),n=i.key.type==="Identifier"?i.key.name:i.key.value;On(e,n)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+n+"'"),e[n]=!0,t.push(i)}return t};G.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(g.colon),this.type!==g.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")};G.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===g.string){var t=this.parseLiteral(this.value);return IS.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)};G.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)};G.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var er=ze.prototype;er.toAssignable=function(t,e,r){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var i=0,n=t.properties;i<n.length;i+=1){var s=n[i];this.toAssignable(s,e),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,r);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return t};er.toAssignableList=function(t,e){for(var r=t.length,i=0;i<r;i++){var n=t[i];n&&this.toAssignable(n,e)}if(r){var s=t[r-1];this.options.ecmaVersion===6&&e&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return t};er.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")};er.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==g.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};er.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case g.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(g.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case g.braceL:return this.parseObj(!0)}return this.parseIdent()};er.parseBindingList=function(t,e,r,i){for(var n=[],s=!0;!this.eat(t);)if(s?s=!1:this.expect(g.comma),e&&this.type===g.comma)n.push(null);else{if(r&&this.afterTrailingComma(t))break;if(this.type===g.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),n.push(o),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else n.push(this.parseAssignableListItem(i))}return n};er.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e};er.parseBindingListItem=function(t){return t};er.parseMaybeDefault=function(t,e,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(g.eq))return r;var i=this.startNodeAt(t,e);return i.left=r,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};er.checkLValSimple=function(t,e,r){e===void 0&&(e=Ro);var i=e!==Ro;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(i?"Binding ":"Assigning to ")+t.name+" in strict mode"),i&&(e===jr&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),r&&(On(r,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),r[t.name]=!0),e!==ed&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,r);default:this.raise(t.start,(i?"Binding":"Assigning to")+" rvalue")}};er.checkLValPattern=function(t,e,r){switch(e===void 0&&(e=Ro),t.type){case"ObjectPattern":for(var i=0,n=t.properties;i<n.length;i+=1){var s=n[i];this.checkLValInnerPattern(s,e,r)}break;case"ArrayPattern":for(var o=0,a=t.elements;o<a.length;o+=1){var l=a[o];l&&this.checkLValInnerPattern(l,e,r)}break;default:this.checkLValSimple(t,e,r)}};er.checkLValInnerPattern=function(t,e,r){switch(e===void 0&&(e=Ro),t.type){case"Property":this.checkLValInnerPattern(t.value,e,r);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,r);break;case"RestElement":this.checkLValPattern(t.argument,e,r);break;default:this.checkLValPattern(t,e,r)}};var ur=function(e,r,i,n,s){this.token=e,this.isExpr=!!r,this.preserveSpace=!!i,this.override=n,this.generator=!!s},Fe={b_stat:new ur("{",!1),b_expr:new ur("{",!0),b_tmpl:new ur("${",!1),p_stat:new ur("(",!1),p_expr:new ur("(",!0),q_tmpl:new ur("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new ur("function",!1),f_expr:new ur("function",!0),f_expr_gen:new ur("function",!0,!1,null,!0),f_gen:new ur("function",!1,!1,null,!0)},bn=ze.prototype;bn.initialContext=function(){return[Fe.b_stat]};bn.curContext=function(){return this.context[this.context.length-1]};bn.braceIsBlock=function(t){var e=this.curContext();return e===Fe.f_expr||e===Fe.f_stat?!0:t===g.colon&&(e===Fe.b_stat||e===Fe.b_expr)?!e.isExpr:t===g._return||t===g.name&&this.exprAllowed?$t.test(this.input.slice(this.lastTokEnd,this.start)):t===g._else||t===g.semi||t===g.eof||t===g.parenR||t===g.arrow?!0:t===g.braceL?e===Fe.b_stat:t===g._var||t===g._const||t===g.name?!1:!this.exprAllowed};bn.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1};bn.updateContext=function(t){var e,r=this.type;r.keyword&&t===g.dot?this.exprAllowed=!1:(e=r.updateContext)?e.call(this,t):this.exprAllowed=r.beforeExpr};bn.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)};g.parenR.updateContext=g.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();t===Fe.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr};g.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?Fe.b_stat:Fe.b_expr),this.exprAllowed=!0};g.dollarBraceL.updateContext=function(){this.context.push(Fe.b_tmpl),this.exprAllowed=!0};g.parenL.updateContext=function(t){var e=t===g._if||t===g._for||t===g._with||t===g._while;this.context.push(e?Fe.p_stat:Fe.p_expr),this.exprAllowed=!0};g.incDec.updateContext=function(){};g._function.updateContext=g._class.updateContext=function(t){t.beforeExpr&&t!==g._else&&!(t===g.semi&&this.curContext()!==Fe.p_stat)&&!(t===g._return&&$t.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===g.colon||t===g.braceL)&&this.curContext()===Fe.b_stat)?this.context.push(Fe.f_expr):this.context.push(Fe.f_stat),this.exprAllowed=!1};g.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};g.backQuote.updateContext=function(){this.curContext()===Fe.q_tmpl?this.context.pop():this.context.push(Fe.q_tmpl),this.exprAllowed=!1};g.star.updateContext=function(t){if(t===g._function){var e=this.context.length-1;this.context[e]===Fe.f_expr?this.context[e]=Fe.f_expr_gen:this.context[e]=Fe.f_gen}this.exprAllowed=!0};g.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==g.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var oe=ze.prototype;oe.checkPropClash=function(t,e,r){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var i=t.key,n;switch(i.type){case"Identifier":n=i.name;break;case"Literal":n=String(i.value);break;default:return}var s=t.kind;if(this.options.ecmaVersion>=6){n==="__proto__"&&s==="init"&&(e.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),e.proto=!0);return}n="$"+n;var o=e[n];if(o){var a;s==="init"?a=this.strict&&o.init||o.get||o.set:a=o.init||o[s],a&&this.raiseRecoverable(i.start,"Redefinition of property")}else o=e[n]={init:!1,get:!1,set:!1};o[s]=!0}};oe.parseExpression=function(t,e){var r=this.start,i=this.startLoc,n=this.parseMaybeAssign(t,e);if(this.type===g.comma){var s=this.startNodeAt(r,i);for(s.expressions=[n];this.eat(g.comma);)s.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(s,"SequenceExpression")}return n};oe.parseMaybeAssign=function(t,e,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var i=!1,n=-1,s=-1,o=-1;e?(n=e.parenthesizedAssign,s=e.trailingComma,o=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new Mo,i=!0);var a=this.start,l=this.startLoc;(this.type===g.parenL||this.type===g.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var h=this.parseMaybeConditional(t,e);if(r&&(h=r.call(this,h,a,l)),this.type.isAssign){var c=this.startNodeAt(a,l);return c.operator=this.value,this.type===g.eq&&(h=this.toAssignable(h,!1,e)),i||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=h.start&&(e.shorthandAssign=-1),this.type===g.eq?this.checkLValPattern(h):this.checkLValSimple(h),c.left=h,this.next(),c.right=this.parseMaybeAssign(t),o>-1&&(e.doubleProto=o),this.finishNode(c,"AssignmentExpression")}else i&&this.checkExpressionErrors(e,!0);return n>-1&&(e.parenthesizedAssign=n),s>-1&&(e.trailingComma=s),h};oe.parseMaybeConditional=function(t,e){var r=this.start,i=this.startLoc,n=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return n;if(this.eat(g.question)){var s=this.startNodeAt(r,i);return s.test=n,s.consequent=this.parseMaybeAssign(),this.expect(g.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return n};oe.parseExprOps=function(t,e){var r=this.start,i=this.startLoc,n=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||n.start===r&&n.type==="ArrowFunctionExpression"?n:this.parseExprOp(n,r,i,-1,t)};oe.parseExprOp=function(t,e,r,i,n){var s=this.type.binop;if(s!=null&&(!n||this.type!==g._in)&&s>i){var o=this.type===g.logicalOR||this.type===g.logicalAND,a=this.type===g.coalesce;a&&(s=g.logicalAND.binop);var l=this.value;this.next();var h=this.start,c=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),h,c,s,n),f=this.buildBinary(e,r,t,u,l,o||a);return(o&&this.type===g.coalesce||a&&(this.type===g.logicalOR||this.type===g.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(f,e,r,i,n)}return t};oe.buildBinary=function(t,e,r,i,n,s){i.type==="PrivateIdentifier"&&this.raise(i.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(t,e);return o.left=r,o.operator=n,o.right=i,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")};oe.parseMaybeUnary=function(t,e,r,i){var n=this.start,s=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(i),e=!0;else if(this.type.prefix){var a=this.startNode(),l=this.type===g.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,l,i),this.checkExpressionErrors(t,!0),l?this.checkLValSimple(a.argument):this.strict&&a.operator==="delete"&&rd(a.argument)?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):a.operator==="delete"&&ph(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):e=!0,o=this.finishNode(a,l?"UpdateExpression":"UnaryExpression")}else if(!e&&this.type===g.privateId)(i||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==g._in&&this.unexpected();else{if(o=this.parseExprSubscripts(t,i),this.checkExpressionErrors(t))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var h=this.startNodeAt(n,s);h.operator=this.value,h.prefix=!1,h.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(h,"UpdateExpression")}}if(!r&&this.eat(g.starstar))if(e)this.unexpected(this.lastTokStart);else return this.buildBinary(n,s,o,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return o};function rd(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&rd(t.expression)}function ph(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&ph(t.expression)||t.type==="ParenthesizedExpression"&&ph(t.expression)}oe.parseExprSubscripts=function(t,e){var r=this.start,i=this.startLoc,n=this.parseExprAtom(t,e);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var s=this.parseSubscripts(n,r,i,!1,e);return t&&s.type==="MemberExpression"&&(t.parenthesizedAssign>=s.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=s.start&&(t.parenthesizedBind=-1),t.trailingComma>=s.start&&(t.trailingComma=-1)),s};oe.parseSubscripts=function(t,e,r,i,n){for(var s=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,o=!1;;){var a=this.parseSubscript(t,e,r,i,s,o,n);if(a.optional&&(o=!0),a===t||a.type==="ArrowFunctionExpression"){if(o){var l=this.startNodeAt(e,r);l.expression=a,a=this.finishNode(l,"ChainExpression")}return a}t=a}};oe.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(g.arrow)};oe.parseSubscriptAsyncArrow=function(t,e,r,i){return this.parseArrowExpression(this.startNodeAt(t,e),r,!0,i)};oe.parseSubscript=function(t,e,r,i,n,s,o){var a=this.options.ecmaVersion>=11,l=a&&this.eat(g.questionDot);i&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var h=this.eat(g.bracketL);if(h||l&&this.type!==g.parenL&&this.type!==g.backQuote||this.eat(g.dot)){var c=this.startNodeAt(e,r);c.object=t,h?(c.property=this.parseExpression(),this.expect(g.bracketR)):this.type===g.privateId&&t.type!=="Super"?c.property=this.parsePrivateIdent():c.property=this.parseIdent(this.options.allowReserved!=="never"),c.computed=!!h,a&&(c.optional=l),t=this.finishNode(c,"MemberExpression")}else if(!i&&this.eat(g.parenL)){var u=new Mo,f=this.yieldPos,p=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var y=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,u);if(n&&!l&&this.shouldParseAsyncArrow())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=f,this.awaitPos=p,this.awaitIdentPos=d,this.parseSubscriptAsyncArrow(e,r,y,o);this.checkExpressionErrors(u,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var b=this.startNodeAt(e,r);b.callee=t,b.arguments=y,a&&(b.optional=l),t=this.finishNode(b,"CallExpression")}else if(this.type===g.backQuote){(l||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var S=this.startNodeAt(e,r);S.tag=t,S.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(S,"TaggedTemplateExpression")}return t};oe.parseExprAtom=function(t,e,r){this.type===g.slash&&this.readRegexp();var i,n=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===g.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(i,"Super");case g._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case g.name:var s=this.start,o=this.startLoc,a=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&l.name==="async"&&!this.canInsertSemicolon()&&this.eat(g._function))return this.overrideContext(Fe.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,e);if(n&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[l],!1,e);if(this.options.ecmaVersion>=8&&l.name==="async"&&this.type===g.name&&!a&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(g.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[l],!0,e)}return l;case g.regexp:var h=this.value;return i=this.parseLiteral(h.value),i.regex={pattern:h.pattern,flags:h.flags},i;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return i=this.startNode(),i.value=this.type===g._null?null:this.type===g._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case g.parenL:var c=this.start,u=this.parseParenAndDistinguishExpression(n,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(t.parenthesizedAssign=c),t.parenthesizedBind<0&&(t.parenthesizedBind=c)),u;case g.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(g.bracketR,!0,!0,t),this.finishNode(i,"ArrayExpression");case g.braceL:return this.overrideContext(Fe.b_expr),this.parseObj(!1,t);case g._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();case g._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};oe.parseExprAtomDefault=function(){this.unexpected()};oe.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===g.parenL&&!t)return this.parseDynamicImport(e);if(this.type===g.dot){var r=this.startNodeAt(e.start,e.loc&&e.loc.start);return r.name="import",e.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(e)}else this.unexpected()};oe.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(g.parenR)?t.options=null:(this.expect(g.comma),this.afterTrailingComma(g.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(g.parenR)||(this.expect(g.comma),this.afterTrailingComma(g.parenR)||this.unexpected())));else if(!this.eat(g.parenR)){var e=this.start;this.eat(g.comma)&&this.eat(g.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")};oe.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")};oe.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.value!=null?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")};oe.parseParenExpression=function(){this.expect(g.parenL);var t=this.parseExpression();return this.expect(g.parenR),t};oe.shouldParseArrow=function(t){return!this.canInsertSemicolon()};oe.parseParenAndDistinguishExpression=function(t,e){var r=this.start,i=this.startLoc,n,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,a=this.startLoc,l=[],h=!0,c=!1,u=new Mo,f=this.yieldPos,p=this.awaitPos,d;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;)if(h?h=!1:this.expect(g.comma),s&&this.afterTrailingComma(g.parenR,!0)){c=!0;break}else if(this.type===g.ellipsis){d=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else l.push(this.parseMaybeAssign(!1,u,this.parseParenItem));var y=this.lastTokEnd,b=this.lastTokEndLoc;if(this.expect(g.parenR),t&&this.shouldParseArrow(l)&&this.eat(g.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(r,i,l,e);(!l.length||c)&&this.unexpected(this.lastTokStart),d&&this.unexpected(d),this.checkExpressionErrors(u,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,l.length>1?(n=this.startNodeAt(o,a),n.expressions=l,this.finishNodeAt(n,"SequenceExpression",y,b)):n=l[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var S=this.startNodeAt(r,i);return S.expression=n,this.finishNode(S,"ParenthesizedExpression")}else return n};oe.parseParenItem=function(t){return t};oe.parseParenArrowList=function(t,e,r,i){return this.parseArrowExpression(this.startNodeAt(t,e),r,!1,i)};var zS=[];oe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===g.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var r=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var i=this.start,n=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,n,!0,!1),this.eat(g.parenL)?t.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):t.arguments=zS,this.finishNode(t,"NewExpression")};oe.parseTemplateElement=function(t){var e=t.isTagged,r=this.startNode();return this.type===g.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,`
31
+ `),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
32
+ `),cooked:this.value},this.next(),r.tail=this.type===g.backQuote,this.finishNode(r,"TemplateElement")};oe.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var r=this.startNode();this.next(),r.expressions=[];var i=this.parseTemplateElement({isTagged:e});for(r.quasis=[i];!i.tail;)this.type===g.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(g.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(g.braceR),r.quasis.push(i=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(r,"TemplateLiteral")};oe.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===g.name||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===g.star)&&!$t.test(this.input.slice(this.lastTokEnd,this.start))};oe.parseObj=function(t,e){var r=this.startNode(),i=!0,n={};for(r.properties=[],this.next();!this.eat(g.braceR);){if(i)i=!1;else if(this.expect(g.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(g.braceR))break;var s=this.parseProperty(t,e);t||this.checkPropClash(s,n,e),r.properties.push(s)}return this.finishNode(r,t?"ObjectPattern":"ObjectExpression")};oe.parseProperty=function(t,e){var r=this.startNode(),i,n,s,o;if(this.options.ecmaVersion>=9&&this.eat(g.ellipsis))return t?(r.argument=this.parseIdent(!1),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,e),this.type===g.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(t||e)&&(s=this.start,o=this.startLoc),t||(i=this.eat(g.star)));var a=this.containsEsc;return this.parsePropertyName(r),!t&&!a&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(r)?(n=!0,i=this.options.ecmaVersion>=9&&this.eat(g.star),this.parsePropertyName(r)):n=!1,this.parsePropertyValue(r,t,i,n,s,o,e,a),this.finishNode(r,"Property")};oe.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var r=t.kind==="get"?0:1;if(t.value.params.length!==r){var i=t.value.start;t.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")};oe.parsePropertyValue=function(t,e,r,i,n,s,o,a){(r||i)&&this.type===g.colon&&this.unexpected(),this.eat(g.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),t.kind="init"):this.options.ecmaVersion>=6&&this.type===g.parenL?(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(r,i),t.kind="init"):!e&&!a&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==g.comma&&this.type!==g.braceR&&this.type!==g.eq?((r||i)&&this.unexpected(),this.parseGetterSetter(t)):this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((r||i)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e?t.value=this.parseMaybeDefault(n,s,this.copyNode(t.key)):this.type===g.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),t.value=this.parseMaybeDefault(n,s,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected()};oe.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(g.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(g.bracketR),t.key;t.computed=!1}return t.key=this.type===g.num||this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};oe.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};oe.parseMethod=function(t,e,r){var i=this.startNode(),n=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=t),this.options.ecmaVersion>=8&&(i.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(bh(e,i.generator)|Io|(r?qp:0)),this.expect(g.parenL),i.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(i,"FunctionExpression")};oe.parseArrowExpression=function(t,e,r,i){var n=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(bh(r,!1)|Oh),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,i),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(t,"ArrowFunctionExpression")};oe.parseFunctionBody=function(t,e,r,i){var n=e&&this.type!==g.braceL,s=this.strict,o=!1;if(n)t.body=this.parseMaybeAssign(i),t.expression=!0,this.checkParams(t,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!s||a)&&(o=this.strictDirective(this.end),o&&a&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var l=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(t,!s&&!o&&!e&&!r&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,ed),t.body=this.parseBlock(!1,void 0,o&&!s),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=l}this.exitScope()};oe.isSimpleParamList=function(t){for(var e=0,r=t;e<r.length;e+=1){var i=r[e];if(i.type!=="Identifier")return!1}return!0};oe.checkParams=function(t,e){for(var r=Object.create(null),i=0,n=t.params;i<n.length;i+=1){var s=n[i];this.checkLValInnerPattern(s,yh,e?null:r)}};oe.parseExprList=function(t,e,r,i){for(var n=[],s=!0;!this.eat(t);){if(s)s=!1;else if(this.expect(g.comma),e&&this.afterTrailingComma(t))break;var o=void 0;r&&this.type===g.comma?o=null:this.type===g.ellipsis?(o=this.parseSpread(i),i&&this.type===g.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):o=this.parseMaybeAssign(!1,i),n.push(o)}return n};oe.checkUnreserved=function(t){var e=t.start,r=t.end,i=t.name;if(this.inGenerator&&i==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&i==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Do)&&i==="arguments"&&this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(i==="arguments"||i==="await")&&this.raise(e,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(e,"Unexpected keyword '"+i+"'"),!(this.options.ecmaVersion<6&&this.input.slice(e,r).indexOf("\\")!==-1)){var n=this.strict?this.reservedWordsStrict:this.reservedWords;n.test(i)&&(!this.inAsync&&i==="await"&&this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+i+"' is reserved"))}};oe.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),e.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=e.start)),e};oe.parseIdentNode=function(){var t=this.startNode();return this.type===g.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=g.name):this.unexpected(),t};oe.parsePrivateIdent=function(){var t=this.startNode();return this.type===g.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t};oe.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===g.semi||this.canInsertSemicolon()||this.type!==g.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(g.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")};oe.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var Lo=ze.prototype;Lo.raise=function(t,e){var r=mh(this.input,t);e+=" ("+r.line+":"+r.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var i=new SyntaxError(e);throw i.pos=t,i.loc=r,i.raisedAt=this.pos,i};Lo.raiseRecoverable=Lo.raise;Lo.curPosition=function(){if(this.options.locations)return new as(this.curLine,this.pos-this.lineStart)};var gi=ze.prototype,VS=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};gi.enterScope=function(t){this.scopeStack.push(new VS(t))};gi.exitScope=function(){this.scopeStack.pop()};gi.treatFunctionsAsVarInScope=function(t){return t.flags&Mi||!this.inModule&&t.flags&Di};gi.declareName=function(t,e,r){var i=!1;if(e===jr){var n=this.currentScope();i=n.lexical.indexOf(t)>-1||n.functions.indexOf(t)>-1||n.var.indexOf(t)>-1,n.lexical.push(t),this.inModule&&n.flags&Di&&delete this.undefinedExports[t]}else if(e===Jp){var s=this.currentScope();s.lexical.push(t)}else if(e===Kp){var o=this.currentScope();this.treatFunctionsAsVar?i=o.lexical.indexOf(t)>-1:i=o.lexical.indexOf(t)>-1||o.var.indexOf(t)>-1,o.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var l=this.scopeStack[a];if(l.lexical.indexOf(t)>-1&&!(l.flags&Yp&&l.lexical[0]===t)||!this.treatFunctionsAsVarInScope(l)&&l.functions.indexOf(t)>-1){i=!0;break}if(l.var.push(t),this.inModule&&l.flags&Di&&delete this.undefinedExports[t],l.flags&Do)break}i&&this.raiseRecoverable(r,"Identifier '"+t+"' has already been declared")};gi.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)};gi.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};gi.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&(Do|hs|Ni))return e}};gi.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&(Do|hs|Ni)&&!(e.flags&Oh))return e}};var cs=function(e,r,i){this.type="",this.start=r,this.end=0,e.options.locations&&(this.loc=new ls(e,i)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[r,0])},us=ze.prototype;us.startNode=function(){return new cs(this,this.start,this.startLoc)};us.startNodeAt=function(t,e){return new cs(this,t,e)};function id(t,e,r,i){return t.type=e,t.end=r,this.options.locations&&(t.loc.end=i),this.options.ranges&&(t.range[1]=r),t}us.finishNode=function(t,e){return id.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)};us.finishNodeAt=function(t,e,r,i){return id.call(this,t,e,r,i)};us.copyNode=function(t){var e=new cs(this,t.start,this.startLoc);for(var r in t)e[r]=t[r];return e};var BS="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",nd="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",sd=nd+" Extended_Pictographic",od=sd,ad=od+" EBase EComp EMod EPres ExtPict",ld=ad,jS=ld,US={9:nd,10:sd,11:od,12:ad,13:ld,14:jS},WS="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",GS={9:"",10:"",11:"",12:"",13:"",14:WS},Zp="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",hd="Adlam Adlm 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 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",cd=hd+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ud=cd+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",fd=ud+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",pd=fd+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",YS=pd+" "+BS,qS={9:hd,10:cd,11:ud,12:fd,13:pd,14:YS},dd={};function HS(t){var e=dd[t]={binary:di(US[t]+" "+Zp),binaryOfStrings:di(GS[t]),nonBinary:{General_Category:di(Zp),Script:di(qS[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(Eo=0,ch=[9,10,11,12,13,14];Eo<ch.length;Eo+=1)Fp=ch[Eo],HS(Fp);var Fp,Eo,ch,W=ze.prototype,_o=function(e,r){this.parent=e,this.base=r||this};_o.prototype.separatedFrom=function(e){for(var r=this;r;r=r.parent)for(var i=e;i;i=i.parent)if(r.base===i.base&&r!==i)return!0;return!1};_o.prototype.sibling=function(){return new _o(this.parent,this.base)};var Pr=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=dd[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Pr.prototype.reset=function(e,r,i){var n=i.indexOf("v")!==-1,s=i.indexOf("u")!==-1;this.start=e|0,this.source=r+"",this.flags=i,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)};Pr.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)};Pr.prototype.at=function(e,r){r===void 0&&(r=!1);var i=this.source,n=i.length;if(e>=n)return-1;var s=i.charCodeAt(e);if(!(r||this.switchU)||s<=55295||s>=57344||e+1>=n)return s;var o=i.charCodeAt(e+1);return o>=56320&&o<=57343?(s<<10)+o-56613888:s};Pr.prototype.nextIndex=function(e,r){r===void 0&&(r=!1);var i=this.source,n=i.length;if(e>=n)return n;var s=i.charCodeAt(e),o;return!(r||this.switchU)||s<=55295||s>=57344||e+1>=n||(o=i.charCodeAt(e+1))<56320||o>57343?e+1:e+2};Pr.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)};Pr.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)};Pr.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)};Pr.prototype.eat=function(e,r){return r===void 0&&(r=!1),this.current(r)===e?(this.advance(r),!0):!1};Pr.prototype.eatChars=function(e,r){r===void 0&&(r=!1);for(var i=this.pos,n=0,s=e;n<s.length;n+=1){var o=s[n],a=this.at(i,r);if(a===-1||a!==o)return!1;i=this.nextIndex(i,r)}return this.pos=i,!0};W.validateRegExpFlags=function(t){for(var e=t.validFlags,r=t.flags,i=!1,n=!1,s=0;s<r.length;s++){var o=r.charAt(s);e.indexOf(o)===-1&&this.raise(t.start,"Invalid regular expression flag"),r.indexOf(o,s+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),o==="u"&&(i=!0),o==="v"&&(n=!0)}this.options.ecmaVersion>=15&&i&&n&&this.raise(t.start,"Invalid regular expression flag")};function KS(t){for(var e in t)return!0;return!1}W.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&KS(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))};W.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,r=t.backReferenceNames;e<r.length;e+=1){var i=r[e];t.groupNames[i]||t.raise("Invalid named capture referenced")}};W.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new _o(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")};W.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););};W.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))?(this.regexp_eatQuantifier(t),!0):!1};W.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!r,!0}return t.pos=e,!1};W.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),this.regexp_eatQuantifierPrefix(t,e)?(t.eat(63),!0):!1};W.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)};W.regexp_eatBracedQuantifier=function(t,e){var r=t.pos;if(t.eat(123)){var i=0,n=-1;if(this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(n=t.lastIntValue),t.eat(125)))return n!==-1&&n<i&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=r}return!1};W.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)};W.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1};W.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var r=this.regexp_eatModifiers(t),i=t.eat(45);if(r||i){for(var n=0;n<r.length;n++){var s=r.charAt(n);r.indexOf(s,n+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(i){var o=this.regexp_eatModifiers(t);!r&&!o&&t.current()===58&&t.raise("Invalid regular expression modifiers");for(var a=0;a<o.length;a++){var l=o.charAt(a);(o.indexOf(l,a+1)>-1||r.indexOf(l)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=e}return!1};W.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1};W.regexp_eatModifiers=function(t){for(var e="",r=0;(r=t.current())!==-1&&JS(r);)e+=Vr(r),t.advance();return e};function JS(t){return t===105||t===109||t===115}W.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)};W.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1};W.regexp_eatSyntaxCharacter=function(t){var e=t.current();return md(e)?(t.lastIntValue=e,t.advance(),!0):!1};function md(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}W.regexp_eatPatternCharacters=function(t){for(var e=t.pos,r=0;(r=t.current())!==-1&&!md(r);)t.advance();return t.pos!==e};W.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return e!==-1&&e!==36&&!(e>=40&&e<=43)&&e!==46&&e!==63&&e!==91&&e!==94&&e!==124?(t.advance(),!0):!1};W.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,r=t.groupNames[t.lastStringValue];if(r)if(e)for(var i=0,n=r;i<n.length;i+=1){var s=n[i];s.separatedFrom(t.branchID)||t.raise("Duplicate capture group name")}else t.raise("Duplicate capture group name");e?(r||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}};W.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1};W.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Vr(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Vr(t.lastIntValue);return!0}return!1};W.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,r=this.options.ecmaVersion>=11,i=t.current(r);return t.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,r)&&(i=t.lastIntValue),ex(i)?(t.lastIntValue=i,!0):(t.pos=e,!1)};function ex(t){return Tr(t,!0)||t===36||t===95}W.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,r=this.options.ecmaVersion>=11,i=t.current(r);return t.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,r)&&(i=t.lastIntValue),tx(i)?(t.lastIntValue=i,!0):(t.pos=e,!1)};function tx(t){return mi(t,!0)||t===36||t===95||t===8204||t===8205}W.regexp_eatAtomEscape=function(t){return this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)?!0:(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)};W.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var r=t.lastIntValue;if(t.switchU)return r>t.maxBackReference&&(t.maxBackReference=r),!0;if(r<=t.numCapturingParens)return!0;t.pos=e}return!1};W.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1};W.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)};W.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1};W.regexp_eatZero=function(t){return t.current()===48&&!No(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1};W.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114?(t.lastIntValue=13,t.advance(),!0):!1};W.regexp_eatControlLetter=function(t){var e=t.current();return gd(e)?(t.lastIntValue=e%32,t.advance(),!0):!1};function gd(t){return t>=65&&t<=90||t>=97&&t<=122}W.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var r=t.pos,i=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var n=t.lastIntValue;if(i&&n>=55296&&n<=56319){var s=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=(n-55296)*1024+(o-56320)+65536,!0}t.pos=s,t.lastIntValue=n}return!0}if(i&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&rx(t.lastIntValue))return!0;i&&t.raise("Invalid unicode escape"),t.pos=r}return!1};function rx(t){return t>=0&&t<=1114111}W.regexp_eatIdentityEscape=function(t){if(t.switchU)return this.regexp_eatSyntaxCharacter(t)?!0:t.eat(47)?(t.lastIntValue=47,!0):!1;var e=t.current();return e!==99&&(!t.switchN||e!==107)?(t.lastIntValue=e,t.advance(),!0):!1};W.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1};var Od=0,Br=1,Kt=2;W.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(ix(e))return t.lastIntValue=-1,t.advance(),Br;var r=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((r=e===80)||e===112)){t.lastIntValue=-1,t.advance();var i;if(t.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return r&&i===Kt&&t.raise("Invalid property name"),i;t.raise("Invalid property name")}return Od};function ix(t){return t===100||t===68||t===115||t===83||t===119||t===87}W.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var r=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var i=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,r,i),Br}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var n=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,n)}return Od};W.regexp_validateUnicodePropertyNameAndValue=function(t,e,r){On(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(r)||t.raise("Invalid property value")};W.regexp_validateUnicodePropertyNameOrValue=function(t,e){if(t.unicodeProperties.binary.test(e))return Br;if(t.switchV&&t.unicodeProperties.binaryOfStrings.test(e))return Kt;t.raise("Invalid property name")};W.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";bd(e=t.current());)t.lastStringValue+=Vr(e),t.advance();return t.lastStringValue!==""};function bd(t){return gd(t)||t===95}W.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";nx(e=t.current());)t.lastStringValue+=Vr(e),t.advance();return t.lastStringValue!==""};function nx(t){return bd(t)||No(t)}W.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)};W.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),r=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&r===Kt&&t.raise("Negated character class may contain strings"),!0}return!1};W.regexp_classContents=function(t){return t.current()===93?Br:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),Br)};W.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var r=t.lastIntValue;t.switchU&&(e===-1||r===-1)&&t.raise("Invalid character class"),e!==-1&&r!==-1&&e>r&&t.raise("Range out of order in character class")}}};W.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var r=t.current();(r===99||xd(r))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var i=t.current();return i!==93?(t.lastIntValue=i,t.advance(),!0):!1};W.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)};W.regexp_classSetExpression=function(t){var e=Br,r;if(!this.regexp_eatClassSetRange(t))if(r=this.regexp_eatClassSetOperand(t)){r===Kt&&(e=Kt);for(var i=t.pos;t.eatChars([38,38]);){if(t.current()!==38&&(r=this.regexp_eatClassSetOperand(t))){r!==Kt&&(e=Br);continue}t.raise("Invalid character in character class")}if(i!==t.pos)return e;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(i!==t.pos)return e}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(r=this.regexp_eatClassSetOperand(t),!r)return e;r===Kt&&(e=Kt)}};W.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var r=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;return r!==-1&&i!==-1&&r>i&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1};W.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?Br:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)};W.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var r=t.eat(94),i=this.regexp_classContents(t);if(t.eat(93))return r&&i===Kt&&t.raise("Negated character class may contain strings"),i;t.pos=e}if(t.eat(92)){var n=this.regexp_eatCharacterClassEscape(t);if(n)return n;t.pos=e}return null};W.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var r=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return r}else t.raise("Invalid escape");t.pos=e}return null};W.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===Kt&&(e=Kt);return e};W.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return e===1?Br:Kt};W.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t)?!0:t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1);var r=t.current();return r<0||r===t.lookahead()&&sx(r)||ox(r)?!1:(t.advance(),t.lastIntValue=r,!0)};function sx(t){return t===33||t>=35&&t<=38||t>=42&&t<=44||t===46||t>=58&&t<=64||t===94||t===96||t===126}function ox(t){return t===40||t===41||t===45||t===47||t>=91&&t<=93||t>=123&&t<=125}W.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return ax(e)?(t.lastIntValue=e,t.advance(),!0):!1};function ax(t){return t===33||t===35||t===37||t===38||t===44||t===45||t>=58&&t<=62||t===64||t===96||t===126}W.regexp_eatClassControlLetter=function(t){var e=t.current();return No(e)||e===95?(t.lastIntValue=e%32,t.advance(),!0):!1};W.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1};W.regexp_eatDecimalDigits=function(t){var e=t.pos,r=0;for(t.lastIntValue=0;No(r=t.current());)t.lastIntValue=10*t.lastIntValue+(r-48),t.advance();return t.pos!==e};function No(t){return t>=48&&t<=57}W.regexp_eatHexDigits=function(t){var e=t.pos,r=0;for(t.lastIntValue=0;yd(r=t.current());)t.lastIntValue=16*t.lastIntValue+Sd(r),t.advance();return t.pos!==e};function yd(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function Sd(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}W.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var r=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=e*64+r*8+t.lastIntValue:t.lastIntValue=e*8+r}else t.lastIntValue=e;return!0}return!1};W.regexp_eatOctalDigit=function(t){var e=t.current();return xd(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)};function xd(t){return t>=48&&t<=55}W.regexp_eatFixedHexDigits=function(t,e){var r=t.pos;t.lastIntValue=0;for(var i=0;i<e;++i){var n=t.current();if(!yd(n))return t.pos=r,!1;t.lastIntValue=16*t.lastIntValue+Sd(n),t.advance()}return!0};var Xo=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new ls(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},de=ze.prototype;de.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Xo(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};de.getToken=function(){return this.next(),new Xo(this)};typeof Symbol<"u"&&(de[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===g.eof,value:e}}}});de.nextToken=function(){var t=this.curContext();if((!t||!t.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(g.eof);if(t.override)return t.override(this);this.readToken(this.fullCharCodeAtPos())};de.readToken=function(t){return Tr(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)};de.fullCharCodeAt=function(t){var e=this.input.charCodeAt(t);if(e<=55295||e>=56320)return e;var r=this.input.charCodeAt(t+1);return r<=56319||r>=57344?e:(e<<10)+r-56613888};de.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};de.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var i=void 0,n=e;(i=jp(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,r),e,this.pos,t,this.curPosition())};de.skipLineComment=function(t){for(var e=this.pos,r=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!gn(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,r,this.curPosition())};de.skipSpace=function(){e:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++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(t>8&&t<14||t>=5760&&Up.test(String.fromCharCode(t)))++this.pos;else break e}}};de.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=t,this.value=e,this.updateContext(r)};de.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(g.ellipsis)):(++this.pos,this.finishToken(g.dot))};de.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(g.assign,2):this.finishOp(g.slash,1)};de.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),r=1,i=t===42?g.star:g.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++r,i=g.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(g.assign,r+1):this.finishOp(i,r)};de.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(g.assign,3)}return this.finishOp(t===124?g.logicalOR:g.logicalAND,2)}return e===61?this.finishOp(g.assign,2):this.finishOp(t===124?g.bitwiseOR:g.bitwiseAND,1)};de.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(g.assign,2):this.finishOp(g.bitwiseXOR,1)};de.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||$t.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(g.incDec,2):e===61?this.finishOp(g.assign,2):this.finishOp(g.plusMin,1)};de.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),r=1;return e===t?(r=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(g.assign,r+1):this.finishOp(g.bitShift,r)):e===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(e===61&&(r=2),this.finishOp(g.relational,r))};de.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(g.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(g.arrow)):this.finishOp(t===61?g.eq:g.prefix,1)};de.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(g.questionDot,2)}if(e===63){if(t>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(g.assign,3)}return this.finishOp(g.coalesce,2)}}return this.finishOp(g.question,1)};de.readToken_numberSign=function(){var t=this.options.ecmaVersion,e=35;if(t>=13&&(++this.pos,e=this.fullCharCodeAtPos(),Tr(e,!0)||e===92))return this.finishToken(g.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Vr(e)+"'")};de.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(g.parenL);case 41:return++this.pos,this.finishToken(g.parenR);case 59:return++this.pos,this.finishToken(g.semi);case 44:return++this.pos,this.finishToken(g.comma);case 91:return++this.pos,this.finishToken(g.bracketL);case 93:return++this.pos,this.finishToken(g.bracketR);case 123:return++this.pos,this.finishToken(g.braceL);case 125:return++this.pos,this.finishToken(g.braceR);case 58:return++this.pos,this.finishToken(g.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(g.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===66)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(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(g.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Vr(t)+"'")};de.finishOp=function(t,e){var r=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,r)};de.readRegexp=function(){for(var t,e,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var i=this.input.charAt(this.pos);if($t.test(i)&&this.raise(r,"Unterminated regular expression"),t)t=!1;else{if(i==="[")e=!0;else if(i==="]"&&e)e=!1;else if(i==="/"&&!e)break;t=i==="\\"}++this.pos}var n=this.input.slice(r,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var a=this.regexpState||(this.regexpState=new Pr(this));a.reset(r,n,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var l=null;try{l=new RegExp(n,o)}catch{}return this.finishToken(g.regexp,{pattern:n,flags:o,value:l})};de.readInt=function(t,e,r){for(var i=this.options.ecmaVersion>=12&&e===void 0,n=r&&this.input.charCodeAt(this.pos)===48,s=this.pos,o=0,a=0,l=0,h=e??1/0;l<h;++l,++this.pos){var c=this.input.charCodeAt(this.pos),u=void 0;if(i&&c===95){n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),a===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),l===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=c;continue}if(c>=97?u=c-97+10:c>=65?u=c-65+10:c>=48&&c<=57?u=c-48:u=1/0,u>=t)break;a=c,o=o*t+u}return i&&a===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||e!=null&&this.pos-s!==e?null:o};function lx(t,e){return e?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function vd(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}de.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var r=this.readInt(t);return r==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=vd(this.input.slice(e,this.pos)),++this.pos):Tr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,r)};de.readNumber=function(t){var e=this.pos;!t&&this.readInt(10,void 0,!0)===null&&this.raise(e,"Invalid number");var r=this.pos-e>=2&&this.input.charCodeAt(e)===48;r&&this.strict&&this.raise(e,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!t&&this.options.ecmaVersion>=11&&i===110){var n=vd(this.input.slice(e,this.pos));return++this.pos,Tr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,n)}r&&/[89]/.test(this.input.slice(e,this.pos))&&(r=!1),i===46&&!r&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!r&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),Tr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=lx(this.input.slice(e,this.pos),r);return this.finishToken(g.num,s)};de.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e;if(t===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else e=this.readHexChar(4);return e};de.readString=function(t){for(var e="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===t)break;i===92?(e+=this.input.slice(r,this.pos),e+=this.readEscapedChar(!1),r=this.pos):i===8232||i===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(gn(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(r,this.pos++),this.finishToken(g.string,e)};var wd={};de.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===wd)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1};de.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw wd;this.raise(t,e)};de.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===g.template||this.type===g.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(g.dollarBraceL)):(++this.pos,this.finishToken(g.backQuote)):(t+=this.input.slice(e,this.pos),this.finishToken(g.template,t));if(r===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(gn(r)){switch(t+=this.input.slice(e,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
33
+ `;break;default:t+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}};de.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(g.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
34
+ `&&++this.pos;case`
35
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};de.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return`
36
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Vr(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(i,8);return n>255&&(i=i.slice(0,-1),n=parseInt(i,8)),this.pos+=i.length-1,e=this.input.charCodeAt(this.pos),(i!=="0"||e===56||e===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-i.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return gn(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}};de.readHexChar=function(t){var e=this.pos,r=this.readInt(16,t);return r===null&&this.invalidStringToken(e,"Bad character escape sequence"),r};de.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(mi(n,i))this.pos+=n<=65535?1:2;else if(n===92){this.containsEsc=!0,t+=this.input.slice(r,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(e?Tr:mi)(o,i)||this.invalidStringToken(s,"Invalid Unicode escape"),t+=Vr(o),r=this.pos}else break;e=!1}return t+this.input.slice(r,this.pos)};de.readWord=function(){var t=this.readWord1(),e=g.name;return this.keywords.test(t)&&(e=dh[t]),this.finishToken(e,t)};var hx="8.16.0";ze.acorn={Parser:ze,version:hx,defaultOptions:Qo,Position:as,SourceLocation:ls,getLineInfo:mh,Node:cs,TokenType:ke,tokTypes:g,keywordTypes:dh,TokContext:ur,tokContexts:Fe,isIdentifierChar:mi,isIdentifierStart:Tr,Token:Xo,isNewLine:gn,lineBreak:$t,lineBreakG:$S,nonASCIIwhitespace:Up};var kd=ze,O2=ze.tokenizer.bind(ze),Xi=ze.parse.bind(ze);fb();var tn={};Ke(tn,{BASE64_CHARS:()=>uf,BASE64_CODES:()=>Fn,decode:()=>Ck,encode:()=>Ak});var uf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fn=new Uint8Array(123);for(let t=0;t<uf.length;++t)Fn[uf.charCodeAt(t)]=t;function Ck(t){let e=t.length*3/4>>>0;t.charCodeAt(t.length-2)===61?e-=2:t.charCodeAt(t.length-1)===61&&(e-=1);let r=new Uint8Array(e);for(let i=0,n=0;i<t.length;i+=4){let s=Fn[t.charCodeAt(i+0)],o=Fn[t.charCodeAt(i+1)],a=Fn[t.charCodeAt(i+2)],l=Fn[t.charCodeAt(i+3)];r[n++]=s<<2|o>>4,r[n++]=(o&15)<<4|a>>2,r[n++]=(a&3)<<6|l&63}return r}async function Ak(t){let e=globalThis.FileReader;if(!e){let i=await new Blob([t]).arrayBuffer();return globalThis.Buffer.from(i).toString("base64")}return await new Promise((r,i)=>{let n=new e;n.onerror=()=>i(new Error("failed to convert to base64: internal error")),n.onload=()=>{if(n.result===""){i(new Error("failed to convert to base64: input too large to encode as base64 string"));return}let s=n.result,o=s.indexOf(","),a=s.slice(o+1);r(a)},n.readAsDataURL(new Blob([t]))})}var He=class{values=[0,0,0];constructor(e){e&&(this.values=e)}},tt=class{values=[[0,0,0],[0,0,0],[0,0,0]];constructor(e){e&&(this.values=e)}multiply(e){let r=new He;for(let i=0;i<3;++i)r.values[i]=this.values[i][0]*e.values[0]+this.values[i][1]*e.values[1]+this.values[i][2]*e.values[2];return r}},Nr=class{g;a;b;c;d;e;f;constructor(e,r,i=0,n=0,s=0,o=0,a=0){this.g=e,this.a=r,this.b=i,this.c=n,this.d=s,this.e=o,this.f=a}eval(e){let r=e<0?-1:1,i=e*r;return i<this.d?r*(this.c*i+this.f):r*(Math.pow(this.a*i+this.b,this.g)+this.e)}},Dr={sRGB:new Nr(2.4,1/1.055,.055/1.055,1/12.92,.04045,0,0),sRGB_INVERSE:new Nr(.416667,1.13728,-0,12.92,.0031308,-.0549698,-0),proPhotoRGB:new Nr(1.8,1),proPhotoRGB_INVERSE:new Nr(.555556,1,-0,0,0,0,0),k2Dot2:new Nr(2.2,1),k2Dot2_INVERSE:new Nr(.454545,1),rec2020:new Nr(2.22222,.909672,.0903276,.222222,.0812429,0,0),rec2020_INVERSE:new Nr(.45,1.23439,-0,4.5,.018054,-.0993195,-0)},lr={sRGB:new tt([[.436065674,.385147095,.143066406],[.222488403,.716873169,.06060791],[.013916016,.097076416,.714096069]]),sRGB_INVERSE:new tt([[3.134112151374599,-1.6173924597114966,-.4906334036481285],[-.9787872938826594,1.9162795854799963,.0334547139520088],[.07198304248352326,-.2289858493321844,1.4053851325241447]]),displayP3:new tt([[.515102,.291965,.157153],[.241182,.692236,.0665819],[-.00104941,.0418818,.784378]]),displayP3_INVERSE:new tt([[2.404045155982687,-.9898986932663839,-.3976317191366333],[-.8422283799266768,1.7988505115115485,.016048170293157416],[.04818705979712955,-.09737385156228891,1.2735066448052303]]),adobeRGB:new tt([[.60974,.20528,.14919],[.31111,.62567,.06322],[.01947,.06087,.74457]]),adobeRGB_INVERSE:new tt([[1.9625385510109137,-.6106892546501431,-.3413827467482388],[-.9787580455521,1.9161624707082339,.03341676594241408],[.028696263137883395,-.1406807819331586,1.349252109991369]]),rec2020:new tt([[.673459,.165661,.1251],[.279033,.675338,.0456288],[-.00193139,.0299794,.797162]]),rec2020_INVERSE:new tt([[1.647275201661012,-.3936024771460771,-.23598028884792507],[-.6826176165196962,1.647617775014935,.01281626807852422],[.029662725298529837,-.06291668721366285,1.2533964313435522]]),xyz:new tt([[1,0,0],[0,1,0],[0,0,1]])};function pb(t){return t*(Math.PI/180)}function Qk(t){return t*(180/Math.PI)}function Mr(t,e,r,i){return[t.eval(e),t.eval(r),t.eval(i)]}var Rk=new tt([[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]]),$k=new tt([[.2104542553,.7936177849999999,-.0040720468],[1.9779984951000003,-2.4285922049999997,.4505937099000001],[.025904037099999982,.7827717662,-.8086757660000001]]),Lk=new tt([[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]]),_k=new tt([[1.226879873374156,-.5578149965554814,.2813910501772159],[-.040575762624313734,1.1122868293970596,-.07171106666151703],[-.07637294974672144,-.4214933239627915,1.586924024427242]]),Ik=new tt([[.7976700747153241,.13519395152800417,.03135596341127167],[.28803902352472205,.7118744007923554,8661179538844252e-20],[2739876695467402e-22,-14405226518969991e-22,.825211112593861]]),Dk=new tt([[1.3459533710138858,-.25561367037652133,-.051116041522131374],[-.544600415668951,1.5081687311475767,.020535163968720935],[-13975622054109725e-22,2717590904589903e-21,1.2118111696814942]]),Mk=new tt([[1.0478573189120088,.022907374491829943,-.050162247377152525],[.029570500050499514,.9904755577034089,-.017061518194840468],[-.00924047197558879,.015052921526981566,.7519708530777581]]),Nk=new tt([[.9555366447632887,-.02306009252137888,.06321844147263304],[-.028315378228764922,1.009951351591575,.021026001591792402],[.012308773293784308,-.02050053471777469,1.3301947294775631]]),I=class t{static labToXyzd50(e,r,i){let n=(e+16)/116,s=n+r/500,o=n-i/200;function a(l){return l<=.20689655172413793?108/841*(l-16/116):l*l*l}return s=a(s)*.9642,n=a(n)*1,o=a(o)*.8251,[s,n,o]}static xyzd50ToLab(e,r,i){function n(l){return l<=.008856451679035631?841/108*l+16/116:Math.pow(l,1/3)}e=n(e/.9642),r=n(r/1),i=n(i/.8251);let s=116*r-16,o=500*(e-r),a=200*(r-i);return[s,o,a]}static oklabToXyzd65(e,r,i){let n=new He([e,r,i]),s=Rk.multiply(n);return s.values[0]=s.values[0]*s.values[0]*s.values[0],s.values[1]=s.values[1]*s.values[1]*s.values[1],s.values[2]=s.values[2]*s.values[2]*s.values[2],_k.multiply(s).values}static xyzd65ToOklab(e,r,i){let n=new He([e,r,i]),s=Lk.multiply(n);s.values[0]=Math.cbrt(s.values[0]),s.values[1]=Math.cbrt(s.values[1]),s.values[2]=Math.cbrt(s.values[2]);let o=$k.multiply(s);return[o.values[0],o.values[1],o.values[2]]}static lchToLab(e,r,i){return i===void 0?[e,0,0]:[e,r*Math.cos(pb(i)),r*Math.sin(pb(i))]}static labToLch(e,r,i){return[e,Math.sqrt(r*r+i*i),Qk(Math.atan2(i,r))]}static displayP3ToXyzd50(e,r,i){let[n,s,o]=Mr(Dr.sRGB,e,r,i),a=new He([n,s,o]);return lr.displayP3.multiply(a).values}static xyzd50ToDisplayP3(e,r,i){let n=new He([e,r,i]),s=lr.displayP3_INVERSE.multiply(n);return Mr(Dr.sRGB_INVERSE,s.values[0],s.values[1],s.values[2])}static displayP3LinearToXyzd50(e,r,i){let n=new He([e,r,i]);return lr.displayP3.multiply(n).values}static xyzd50ToDisplayP3Linear(e,r,i){let n=new He([e,r,i]);return lr.displayP3_INVERSE.multiply(n).values}static proPhotoToXyzd50(e,r,i){let[n,s,o]=Mr(Dr.proPhotoRGB,e,r,i),a=new He([n,s,o]);return Ik.multiply(a).values}static xyzd50ToProPhoto(e,r,i){let n=new He([e,r,i]),s=Dk.multiply(n);return Mr(Dr.proPhotoRGB_INVERSE,s.values[0],s.values[1],s.values[2])}static adobeRGBToXyzd50(e,r,i){let[n,s,o]=Mr(Dr.k2Dot2,e,r,i),a=new He([n,s,o]);return lr.adobeRGB.multiply(a).values}static xyzd50ToAdobeRGB(e,r,i){let n=new He([e,r,i]),s=lr.adobeRGB_INVERSE.multiply(n);return Mr(Dr.k2Dot2_INVERSE,s.values[0],s.values[1],s.values[2])}static rec2020ToXyzd50(e,r,i){let[n,s,o]=Mr(Dr.rec2020,e,r,i),a=new He([n,s,o]);return lr.rec2020.multiply(a).values}static xyzd50ToRec2020(e,r,i){let n=new He([e,r,i]),s=lr.rec2020_INVERSE.multiply(n);return Mr(Dr.rec2020_INVERSE,s.values[0],s.values[1],s.values[2])}static xyzd50ToD65(e,r,i){let n=new He([e,r,i]);return Nk.multiply(n).values}static xyzd65ToD50(e,r,i){let n=new He([e,r,i]);return Mk.multiply(n).values}static xyzd50TosRGBLinear(e,r,i){let n=new He([e,r,i]);return lr.sRGB_INVERSE.multiply(n).values}static srgbLinearToXyzd50(e,r,i){let n=new He([e,r,i]);return lr.sRGB.multiply(n).values}static srgbToXyzd50(e,r,i){let[n,s,o]=Mr(Dr.sRGB,e,r,i),a=new He([n,s,o]);return lr.sRGB.multiply(a).values}static xyzd50ToSrgb(e,r,i){let n=new He([e,r,i]),s=lr.sRGB_INVERSE.multiply(n);return Mr(Dr.sRGB_INVERSE,s.values[0],s.values[1],s.values[2])}static oklchToXyzd50(e,r,i){let[n,s,o]=t.lchToLab(e,r,i),[a,l,h]=t.oklabToXyzd65(n,s,o);return t.xyzd65ToD50(a,l,h)}static xyzd50ToOklch(e,r,i){let[n,s,o]=t.xyzd50ToD65(e,r,i),[a,l,h]=t.xyzd65ToOklab(n,s,o);return t.labToLch(a,l,h)}};function db(t,e){let r=t[3];return[(1-r)*e[0]+r*t[0],(1-r)*e[1]+r*t[1],(1-r)*e[2]+r*t[2],r+e[3]*(1-r)]}function mb([t,e,r]){let i=Math.max(t,e,r),n=Math.min(t,e,r),s=i-n,o;return n===i?o=0:t===i?o=(1/6*(e-r)/s+1)%1:e===i?o=1/6*(r-t)/s+1/3:o=1/6*(t-e)/s+2/3,o}function Tt(t){let[e,r,i]=Zk([...t,void 0]);return[e,r,i]}function Zk([t,e,r,i]){let n=Math.max(t,e,r),s=Math.min(t,e,r),o=n-s,a=n+s,l=mb([t,e,r]),h=.5*a,c;return h===0||h===1?c=0:h<=.5?c=o/a:c=o/(2-a),[l,c,h,i]}function Pt(t){let[e,r,i]=Fk([...t,void 0]);return[e,r,i]}function Fk([t,e,r,i]){let n=mb([t,e,r]),s=Math.max(t,e,r),o=Math.min(t,e,r);return[n,o,1-s,i]}var zk=[[12,-1,-1,-1,-1,100,90,80,-1,-1],[14,-1,-1,-1,100,90,80,60,60,-1],[16,-1,-1,100,90,80,60,55,50,50],[18,-1,-1,90,80,60,55,50,40,40],[24,-1,100,80,60,55,50,40,38,35],[30,-1,90,70,55,50,40,38,35,40],[36,-1,80,60,50,40,38,35,30,25],[48,100,70,55,40,38,35,30,25,20],[60,90,60,50,38,35,30,25,20,20],[72,80,55,40,35,30,25,20,20,20],[96,70,50,35,30,25,20,20,20,20],[120,60,40,30,25,20,20,20,20,20]];zk.reverse();function ll(t){return(t%360+360)%360}function gb(t){let e=t.replace(/(deg|g?rad|turn)$/,"");if(isNaN(e)||t.match(/\s+(deg|g?rad|turn)/))return null;let r=parseFloat(e);return t.includes("turn")?r*360:t.includes("grad")?r*9/10:t.includes("rad")?r*180/Math.PI:r}function Bk(t){switch(t){case"srgb":return"srgb";case"srgb-linear":return"srgb-linear";case"display-p3":return"display-p3";case"display-p3-linear":return"display-p3-linear";case"a98-rgb":return"a98-rgb";case"prophoto-rgb":return"prophoto-rgb";case"rec2020":return"rec2020";case"xyz":return"xyz";case"xyz-d50":return"xyz-d50";case"xyz-d65":return"xyz-d65"}return null}function Ob(t,e){let r=Math.sign(t),i=Math.abs(t),[n,s]=e;return r*(i*(s-n)/100+n)}function Ne(t,{min:e,max:r}){return t===null||(e!==void 0&&(t=Math.max(t,e)),r!==void 0&&(t=Math.min(t,r))),t}function br(t,e){if(!t.endsWith("%"))return null;let r=parseFloat(t.substr(0,t.length-1));return isNaN(r)?null:Ob(r,e)}function yr(t){let e=parseFloat(t);return isNaN(e)?null:e}function zn(t){return t===void 0?null:Ne(br(t,[0,1])??yr(t),{min:0,max:1})}function nl(t,e=[0,1]){if(isNaN(t.replace("%","")))return null;let r=parseFloat(t);return t.indexOf("%")!==-1?t.indexOf("%")!==t.length-1?null:Ob(r,e):r}function ff(t){let e=nl(t);return e===null?null:t.indexOf("%")!==-1?e:e/255}function bb(t){let e=t.replace(/(deg|g?rad|turn)$/,"");if(isNaN(e)||t.match(/\s+(deg|g?rad|turn)/))return null;let r=parseFloat(e);return t.indexOf("turn")!==-1?r%1:t.indexOf("grad")!==-1?r/400%1:t.indexOf("rad")!==-1?r/(2*Math.PI)%1:r/360%1}function sl(t){return t.indexOf("%")!==t.length-1||isNaN(t.replace("%",""))?null:parseFloat(t)/100}function jk(t){return nl(t)}function Uk(t){let e=t[0],r=t[1],i=t[2],n=(2-r)*i;return i===0||r===0?r=0:r*=i/(n<1?n:2-n),[e,r,n/2,t[3]]}function df(t){let e=t[0],r=t[1],i=t[2];function n(c,u,f){return f<0?f+=1:f>1&&(f-=1),f*6<1?c+(u-c)*f*6:f*2<1?u:f*3<2?c+(u-c)*(2/3-f)*6:c}r<0&&(r=0);let s;i<=.5?s=i*(1+r):s=i+r-i*r;let o=2*i-s,a=e+1/3,l=e,h=e-1/3;return[n(o,s,a),n(o,s,l),n(o,s,h),t[3]]}function Wk(t){let e=t[0],r=t[1],i=t[2],n=r/(r+i),s=[n,n,n,t[3]];if(r+i<1){s=df([e,1,.5,t[3]]);for(let o=0;o<3;++o)s[o]+=r-(r+i)*s[o]}return s}function Gk(t){return df(Uk(t))}var yb=.01,Xr=1,Sb=1e-4;function te(t,e,r=yb){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let i in t)if(!te(t[i],e[i]))return!1;return!0}return Array.isArray(t)||Array.isArray(e)?!1:t===null||e===null?t===e:Math.abs(t-e)<r}function Qi(t,e,r=yb){return t-e<=r}var si=class t{l;a;b;alpha;#e;#t;channels=["l","a","b","alpha"];static#i={hex:e=>new J(e.#s(!1),"hex"),hexa:e=>new J(e.#s(!0),"hexa"),rgb:e=>new J(e.#s(!1),"rgb"),rgba:e=>new J(e.#s(!0),"rgba"),hsl:e=>new gt(...Tt(e.#s(!1)),e.alpha),hsla:e=>new gt(...Tt(e.#s(!1)),e.alpha),hwb:e=>new Ot(...Pt(e.#s(!1)),e.alpha),hwba:e=>new Ot(...Pt(e.#s(!1)),e.alpha),lch:e=>new oi(...I.labToLch(e.l,e.a,e.b),e.alpha),oklch:e=>new li(...I.xyzd50ToOklch(...e.#r()),e.alpha),lab:e=>e,oklab:e=>new ai(...I.xyzd65ToOklab(...I.xyzd50ToD65(...e.#r())),e.alpha),srgb:e=>new B("srgb",...I.xyzd50ToSrgb(...e.#r()),e.alpha),"srgb-linear":e=>new B("srgb-linear",...I.xyzd50TosRGBLinear(...e.#r()),e.alpha),"display-p3":e=>new B("display-p3",...I.xyzd50ToDisplayP3(...e.#r()),e.alpha),"display-p3-linear":e=>new B("display-p3-linear",...I.xyzd50ToDisplayP3Linear(...e.#r()),e.alpha),"a98-rgb":e=>new B("a98-rgb",...I.xyzd50ToAdobeRGB(...e.#r()),e.alpha),"prophoto-rgb":e=>new B("prophoto-rgb",...I.xyzd50ToProPhoto(...e.#r()),e.alpha),rec2020:e=>new B("rec2020",...I.xyzd50ToRec2020(...e.#r()),e.alpha),xyz:e=>new B("xyz",...I.xyzd50ToD65(...e.#r()),e.alpha),"xyz-d50":e=>new B("xyz-d50",...e.#r(),e.alpha),"xyz-d65":e=>new B("xyz-d65",...I.xyzd50ToD65(...e.#r()),e.alpha)};#r(){return I.labToXyzd50(this.l,this.a,this.b)}#s(e=!0){let r=I.xyzd50ToSrgb(...this.#r());return e?[...r,this.alpha??void 0]:r}constructor(e,r,i,n,s){this.#t=[e,r,i],this.l=Ne(e,{min:0,max:100}),(te(this.l,0,Xr)||te(this.l,100,Xr))&&(r=i=0),this.a=r,this.b=i,this.alpha=Ne(n,{min:0,max:1}),this.#e=s}is(e){return e===this.format()}as(e){return t.#i[e](this)}asLegacyColor(){return this.as("rgba")}equal(e){let r=e.as("lab");return te(r.l,this.l,Xr)&&te(r.a,this.a)&&te(r.b,this.b)&&te(r.alpha,this.alpha)}format(){return"lab"}setAlpha(e){return new t(this.l,this.a,this.b,e,void 0)}asString(e){return e?this.as(e).asString():this.#o(this.l,this.a,this.b)}#o(e,r,i){let n=this.alpha===null||te(this.alpha,1)?"":` / ${K.stringifyWithPrecision(this.alpha)}`;return`lab(${K.stringifyWithPrecision(e,0)} ${K.stringifyWithPrecision(r)} ${K.stringifyWithPrecision(i)}${n})`}getAuthoredText(){return this.#e??null}getRawParameters(){return[...this.#t]}getAsRawString(e){return e?this.as(e).getAsRawString():this.#o(...this.#t)}isGamutClipped(){return!1}static fromSpec(e,r){let i=br(e[0],[0,100])??yr(e[0]);if(i===null)return null;let n=br(e[1],[0,125])??yr(e[1]);if(n===null)return null;let s=br(e[2],[0,125])??yr(e[2]);if(s===null)return null;let o=zn(e[3]);return new t(i,n,s,o,r)}},oi=class t{#e;l;c;h;alpha;#t;channels=["l","c","h","alpha"];static#i={hex:e=>new J(e.#s(!1),"hex"),hexa:e=>new J(e.#s(!0),"hexa"),rgb:e=>new J(e.#s(!1),"rgb"),rgba:e=>new J(e.#s(!0),"rgba"),hsl:e=>new gt(...Tt(e.#s(!1)),e.alpha),hsla:e=>new gt(...Tt(e.#s(!1)),e.alpha),hwb:e=>new Ot(...Pt(e.#s(!1)),e.alpha),hwba:e=>new Ot(...Pt(e.#s(!1)),e.alpha),lch:e=>e,oklch:e=>new li(...I.xyzd50ToOklch(...e.#r()),e.alpha),lab:e=>new si(...I.lchToLab(e.l,e.c,e.h),e.alpha),oklab:e=>new ai(...I.xyzd65ToOklab(...I.xyzd50ToD65(...e.#r())),e.alpha),srgb:e=>new B("srgb",...I.xyzd50ToSrgb(...e.#r()),e.alpha),"srgb-linear":e=>new B("srgb-linear",...I.xyzd50TosRGBLinear(...e.#r()),e.alpha),"display-p3":e=>new B("display-p3",...I.xyzd50ToDisplayP3(...e.#r()),e.alpha),"display-p3-linear":e=>new B("display-p3-linear",...I.xyzd50ToDisplayP3Linear(...e.#r()),e.alpha),"a98-rgb":e=>new B("a98-rgb",...I.xyzd50ToAdobeRGB(...e.#r()),e.alpha),"prophoto-rgb":e=>new B("prophoto-rgb",...I.xyzd50ToProPhoto(...e.#r()),e.alpha),rec2020:e=>new B("rec2020",...I.xyzd50ToRec2020(...e.#r()),e.alpha),xyz:e=>new B("xyz",...I.xyzd50ToD65(...e.#r()),e.alpha),"xyz-d50":e=>new B("xyz-d50",...e.#r(),e.alpha),"xyz-d65":e=>new B("xyz-d65",...I.xyzd50ToD65(...e.#r()),e.alpha)};#r(){return I.labToXyzd50(...I.lchToLab(this.l,this.c,this.h))}#s(e=!0){let r=I.xyzd50ToSrgb(...this.#r());return e?[...r,this.alpha??void 0]:r}constructor(e,r,i,n,s){this.#e=[e,r,i],this.l=Ne(e,{min:0,max:100}),r=te(this.l,0,Xr)||te(this.l,100,Xr)?0:r,this.c=Ne(r,{min:0}),i=te(r,0)?0:i,this.h=ll(i),this.alpha=Ne(n,{min:0,max:1}),this.#t=s}asLegacyColor(){return this.as("rgba")}is(e){return e===this.format()}as(e){return t.#i[e](this)}equal(e){let r=e.as("lch");return te(r.l,this.l,Xr)&&te(r.c,this.c)&&te(r.h,this.h)&&te(r.alpha,this.alpha)}format(){return"lch"}setAlpha(e){return new t(this.l,this.c,this.h,e)}asString(e){return e?this.as(e).asString():this.#o(this.l,this.c,this.h)}#o(e,r,i){let n=this.alpha===null||te(this.alpha,1)?"":` / ${K.stringifyWithPrecision(this.alpha)}`;return`lch(${K.stringifyWithPrecision(e,0)} ${K.stringifyWithPrecision(r)} ${K.stringifyWithPrecision(i)}${n})`}getAuthoredText(){return this.#t??null}getRawParameters(){return[...this.#e]}getAsRawString(e){return e?this.as(e).getAsRawString():this.#o(...this.#e)}isGamutClipped(){return!1}isHuePowerless(){return te(this.c,0,Sb)}static fromSpec(e,r){let i=br(e[0],[0,100])??yr(e[0]);if(i===null)return null;let n=br(e[1],[0,150])??yr(e[1]);if(n===null)return null;let s=gb(e[2]);if(s===null)return null;let o=zn(e[3]);return new t(i,n,s,o,r)}},ai=class t{#e;l;a;b;alpha;#t;channels=["l","a","b","alpha"];static#i={hex:e=>new J(e.#s(!1),"hex"),hexa:e=>new J(e.#s(!0),"hexa"),rgb:e=>new J(e.#s(!1),"rgb"),rgba:e=>new J(e.#s(!0),"rgba"),hsl:e=>new gt(...Tt(e.#s(!1)),e.alpha),hsla:e=>new gt(...Tt(e.#s(!1)),e.alpha),hwb:e=>new Ot(...Pt(e.#s(!1)),e.alpha),hwba:e=>new Ot(...Pt(e.#s(!1)),e.alpha),lch:e=>new oi(...I.labToLch(...I.xyzd50ToLab(...e.#r())),e.alpha),oklch:e=>new li(...I.xyzd50ToOklch(...e.#r()),e.alpha),lab:e=>new si(...I.xyzd50ToLab(...e.#r()),e.alpha),oklab:e=>e,srgb:e=>new B("srgb",...I.xyzd50ToSrgb(...e.#r()),e.alpha),"srgb-linear":e=>new B("srgb-linear",...I.xyzd50TosRGBLinear(...e.#r()),e.alpha),"display-p3":e=>new B("display-p3",...I.xyzd50ToDisplayP3(...e.#r()),e.alpha),"display-p3-linear":e=>new B("display-p3-linear",...I.xyzd50ToDisplayP3Linear(...e.#r()),e.alpha),"a98-rgb":e=>new B("a98-rgb",...I.xyzd50ToAdobeRGB(...e.#r()),e.alpha),"prophoto-rgb":e=>new B("prophoto-rgb",...I.xyzd50ToProPhoto(...e.#r()),e.alpha),rec2020:e=>new B("rec2020",...I.xyzd50ToRec2020(...e.#r()),e.alpha),xyz:e=>new B("xyz",...I.xyzd50ToD65(...e.#r()),e.alpha),"xyz-d50":e=>new B("xyz-d50",...e.#r(),e.alpha),"xyz-d65":e=>new B("xyz-d65",...I.xyzd50ToD65(...e.#r()),e.alpha)};#r(){return I.xyzd65ToD50(...I.oklabToXyzd65(this.l,this.a,this.b))}#s(e=!0){let r=I.xyzd50ToSrgb(...this.#r());return e?[...r,this.alpha??void 0]:r}constructor(e,r,i,n,s){this.#e=[e,r,i],this.l=Ne(e,{min:0,max:1}),(te(this.l,0)||te(this.l,1))&&(r=i=0),this.a=r,this.b=i,this.alpha=Ne(n,{min:0,max:1}),this.#t=s}asLegacyColor(){return this.as("rgba")}is(e){return e===this.format()}as(e){return t.#i[e](this)}equal(e){let r=e.as("oklab");return te(r.l,this.l)&&te(r.a,this.a)&&te(r.b,this.b)&&te(r.alpha,this.alpha)}format(){return"oklab"}setAlpha(e){return new t(this.l,this.a,this.b,e)}asString(e){return e?this.as(e).asString():this.#o(this.l,this.a,this.b)}#o(e,r,i){let n=this.alpha===null||te(this.alpha,1)?"":` / ${K.stringifyWithPrecision(this.alpha)}`;return`oklab(${K.stringifyWithPrecision(e)} ${K.stringifyWithPrecision(r)} ${K.stringifyWithPrecision(i)}${n})`}getAuthoredText(){return this.#t??null}getRawParameters(){return[...this.#e]}getAsRawString(e){return e?this.as(e).getAsRawString():this.#o(...this.#e)}isGamutClipped(){return!1}static fromSpec(e,r){let i=br(e[0],[0,1])??yr(e[0]);if(i===null)return null;let n=br(e[1],[0,.4])??yr(e[1]);if(n===null)return null;let s=br(e[2],[0,.4])??yr(e[2]);if(s===null)return null;let o=zn(e[3]);return new t(i,n,s,o,r)}},li=class t{#e;l;c;h;alpha;#t;channels=["l","c","h","alpha"];static#i={hex:e=>new J(e.#s(!1),"hex"),hexa:e=>new J(e.#s(!0),"hexa"),rgb:e=>new J(e.#s(!1),"rgb"),rgba:e=>new J(e.#s(!0),"rgba"),hsl:e=>new gt(...Tt(e.#s(!1)),e.alpha),hsla:e=>new gt(...Tt(e.#s(!1)),e.alpha),hwb:e=>new Ot(...Pt(e.#s(!1)),e.alpha),hwba:e=>new Ot(...Pt(e.#s(!1)),e.alpha),lch:e=>new oi(...I.labToLch(...I.xyzd50ToLab(...e.#r())),e.alpha),oklch:e=>e,lab:e=>new si(...I.xyzd50ToLab(...e.#r()),e.alpha),oklab:e=>new ai(...I.xyzd65ToOklab(...I.xyzd50ToD65(...e.#r())),e.alpha),srgb:e=>new B("srgb",...I.xyzd50ToSrgb(...e.#r()),e.alpha),"srgb-linear":e=>new B("srgb-linear",...I.xyzd50TosRGBLinear(...e.#r()),e.alpha),"display-p3":e=>new B("display-p3",...I.xyzd50ToDisplayP3(...e.#r()),e.alpha),"display-p3-linear":e=>new B("display-p3-linear",...I.xyzd50ToDisplayP3Linear(...e.#r()),e.alpha),"a98-rgb":e=>new B("a98-rgb",...I.xyzd50ToAdobeRGB(...e.#r()),e.alpha),"prophoto-rgb":e=>new B("prophoto-rgb",...I.xyzd50ToProPhoto(...e.#r()),e.alpha),rec2020:e=>new B("rec2020",...I.xyzd50ToRec2020(...e.#r()),e.alpha),xyz:e=>new B("xyz",...I.xyzd50ToD65(...e.#r()),e.alpha),"xyz-d50":e=>new B("xyz-d50",...e.#r(),e.alpha),"xyz-d65":e=>new B("xyz-d65",...I.xyzd50ToD65(...e.#r()),e.alpha)};#r(){return I.oklchToXyzd50(this.l,this.c,this.h)}#s(e=!0){let r=I.xyzd50ToSrgb(...this.#r());return e?[...r,this.alpha??void 0]:r}constructor(e,r,i,n,s){this.#e=[e,r,i],this.l=Ne(e,{min:0,max:1}),r=te(this.l,0)||te(this.l,1)?0:r,this.c=Ne(r,{min:0}),i=te(r,0)?0:i,this.h=ll(i),this.alpha=Ne(n,{min:0,max:1}),this.#t=s}asLegacyColor(){return this.as("rgba")}is(e){return e===this.format()}as(e){return t.#i[e](this)}equal(e){let r=e.as("oklch");return te(r.l,this.l)&&te(r.c,this.c)&&te(r.h,this.h)&&te(r.alpha,this.alpha)}format(){return"oklch"}setAlpha(e){return new t(this.l,this.c,this.h,e)}asString(e){return e?this.as(e).asString():this.#o(this.l,this.c,this.h)}#o(e,r,i){let n=this.alpha===null||te(this.alpha,1)?"":` / ${K.stringifyWithPrecision(this.alpha)}`;return`oklch(${K.stringifyWithPrecision(e)} ${K.stringifyWithPrecision(r)} ${K.stringifyWithPrecision(i)}${n})`}getAuthoredText(){return this.#t??null}getRawParameters(){return[...this.#e]}getAsRawString(e){return e?this.as(e).getAsRawString():this.#o(...this.#e)}isGamutClipped(){return!1}static fromSpec(e,r){let i=br(e[0],[0,1])??yr(e[0]);if(i===null)return null;let n=br(e[1],[0,.4])??yr(e[1]);if(n===null)return null;let s=gb(e[2]);if(s===null)return null;let o=zn(e[3]);return new t(i,n,s,o,r)}},B=class t{#e;p0;p1;p2;alpha;colorSpace;#t;get channels(){return this.isXYZ()?["x","y","z","alpha"]:["r","g","b","alpha"]}static#i={hex:e=>new J(e.#s(!1),"hex"),hexa:e=>new J(e.#s(!0),"hexa"),rgb:e=>new J(e.#s(!1),"rgb"),rgba:e=>new J(e.#s(!0),"rgba"),hsl:e=>new gt(...Tt(e.#s(!1)),e.alpha),hsla:e=>new gt(...Tt(e.#s(!1)),e.alpha),hwb:e=>new Ot(...Pt(e.#s(!1)),e.alpha),hwba:e=>new Ot(...Pt(e.#s(!1)),e.alpha),lch:e=>new oi(...I.labToLch(...I.xyzd50ToLab(...e.#r())),e.alpha),oklch:e=>new li(...I.xyzd50ToOklch(...e.#r()),e.alpha),lab:e=>new si(...I.xyzd50ToLab(...e.#r()),e.alpha),oklab:e=>new ai(...I.xyzd65ToOklab(...I.xyzd50ToD65(...e.#r())),e.alpha),srgb:e=>new t("srgb",...I.xyzd50ToSrgb(...e.#r()),e.alpha),"srgb-linear":e=>new t("srgb-linear",...I.xyzd50TosRGBLinear(...e.#r()),e.alpha),"display-p3":e=>new t("display-p3",...I.xyzd50ToDisplayP3(...e.#r()),e.alpha),"display-p3-linear":e=>new t("display-p3-linear",...I.xyzd50ToDisplayP3Linear(...e.#r()),e.alpha),"a98-rgb":e=>new t("a98-rgb",...I.xyzd50ToAdobeRGB(...e.#r()),e.alpha),"prophoto-rgb":e=>new t("prophoto-rgb",...I.xyzd50ToProPhoto(...e.#r()),e.alpha),rec2020:e=>new t("rec2020",...I.xyzd50ToRec2020(...e.#r()),e.alpha),xyz:e=>new t("xyz",...I.xyzd50ToD65(...e.#r()),e.alpha),"xyz-d50":e=>new t("xyz-d50",...e.#r(),e.alpha),"xyz-d65":e=>new t("xyz-d65",...I.xyzd50ToD65(...e.#r()),e.alpha)};#r(){let[e,r,i]=this.#e;switch(this.colorSpace){case"srgb":return I.srgbToXyzd50(e,r,i);case"srgb-linear":return I.srgbLinearToXyzd50(e,r,i);case"display-p3":return I.displayP3ToXyzd50(e,r,i);case"display-p3-linear":return I.displayP3LinearToXyzd50(e,r,i);case"a98-rgb":return I.adobeRGBToXyzd50(e,r,i);case"prophoto-rgb":return I.proPhotoToXyzd50(e,r,i);case"rec2020":return I.rec2020ToXyzd50(e,r,i);case"xyz-d50":return[e,r,i];case"xyz":case"xyz-d65":return I.xyzd65ToD50(e,r,i)}throw new Error("Invalid color space")}#s(e=!0){let[r,i,n]=this.#e,s=this.colorSpace==="srgb"?[r,i,n]:[...I.xyzd50ToSrgb(...this.#r())];return e?[...s,this.alpha??void 0]:s}constructor(e,r,i,n,s,o){this.#e=[r,i,n],this.colorSpace=e,this.#t=o,this.colorSpace!=="xyz-d50"&&this.colorSpace!=="xyz-d65"&&this.colorSpace!=="xyz"&&(r=Ne(r,{min:0,max:1}),i=Ne(i,{min:0,max:1}),n=Ne(n,{min:0,max:1})),this.p0=r,this.p1=i,this.p2=n,this.alpha=Ne(s,{min:0,max:1})}asLegacyColor(){return this.as("rgba")}is(e){return e===this.format()}as(e){return this.colorSpace===e?this:t.#i[e](this)}equal(e){let r=e.as(this.colorSpace);return te(this.p0,r.p0)&&te(this.p1,r.p1)&&te(this.p2,r.p2)&&te(this.alpha,r.alpha)}format(){return this.colorSpace}setAlpha(e){return new t(this.colorSpace,this.p0,this.p1,this.p2,e)}asString(e){return e?this.as(e).asString():this.#o(this.p0,this.p1,this.p2)}#o(e,r,i){let n=this.alpha===null||te(this.alpha,1)?"":` / ${K.stringifyWithPrecision(this.alpha)}`;return`color(${this.colorSpace} ${K.stringifyWithPrecision(e)} ${K.stringifyWithPrecision(r)} ${K.stringifyWithPrecision(i)}${n})`}getAuthoredText(){return this.#t??null}getRawParameters(){return[...this.#e]}getAsRawString(e){return e?this.as(e).getAsRawString():this.#o(...this.#e)}isGamutClipped(){return this.colorSpace!=="xyz-d50"&&this.colorSpace!=="xyz-d65"&&this.colorSpace!=="xyz"?!te(this.#e,[this.p0,this.p1,this.p2]):!1}isXYZ(){switch(this.colorSpace){case"xyz":case"xyz-d50":case"xyz-d65":return!0}return!1}static fromSpec(e,r){let[i,n]=r.split("/",2),s=i.trim().split(/\s+/),[o,...a]=s,l=Bk(o);if(!l)return null;if(a.length===0&&n===void 0)return new t(l,0,0,0,null,e);if(a.length===0&&n!==void 0&&n.trim().split(/\s+/).length>1||a.length>3)return null;let c=a.map(d=>d==="none"?"0":d).map(d=>nl(d,[0,1]));if(c.includes(null))return null;let f=n?nl(n,[0,1])??1:1,p=[c[0]??0,c[1]??0,c[2]??0,f];return new t(l,...p,e)}},gt=class t{h;s;l;alpha;#e;#t;channels=["h","s","l","alpha"];static#i={hex:e=>new J(e.#r(!1),"hex"),hexa:e=>new J(e.#r(!0),"hexa"),rgb:e=>new J(e.#r(!1),"rgb"),rgba:e=>new J(e.#r(!0),"rgba"),hsl:e=>e,hsla:e=>e,hwb:e=>new Ot(...Pt(e.#r(!1)),e.alpha),hwba:e=>new Ot(...Pt(e.#r(!1)),e.alpha),lch:e=>new oi(...I.labToLch(...I.xyzd50ToLab(...e.#s())),e.alpha),oklch:e=>new li(...I.xyzd50ToOklch(...e.#s()),e.alpha),lab:e=>new si(...I.xyzd50ToLab(...e.#s()),e.alpha),oklab:e=>new ai(...I.xyzd65ToOklab(...I.xyzd50ToD65(...e.#s())),e.alpha),srgb:e=>new B("srgb",...I.xyzd50ToSrgb(...e.#s()),e.alpha),"srgb-linear":e=>new B("srgb-linear",...I.xyzd50TosRGBLinear(...e.#s()),e.alpha),"display-p3":e=>new B("display-p3",...I.xyzd50ToDisplayP3(...e.#s()),e.alpha),"display-p3-linear":e=>new B("display-p3-linear",...I.xyzd50ToDisplayP3Linear(...e.#s()),e.alpha),"a98-rgb":e=>new B("a98-rgb",...I.xyzd50ToAdobeRGB(...e.#s()),e.alpha),"prophoto-rgb":e=>new B("prophoto-rgb",...I.xyzd50ToProPhoto(...e.#s()),e.alpha),rec2020:e=>new B("rec2020",...I.xyzd50ToRec2020(...e.#s()),e.alpha),xyz:e=>new B("xyz",...I.xyzd50ToD65(...e.#s()),e.alpha),"xyz-d50":e=>new B("xyz-d50",...e.#s(),e.alpha),"xyz-d65":e=>new B("xyz-d65",...I.xyzd50ToD65(...e.#s()),e.alpha)};#r(e=!0){let r=df([this.h,this.s,this.l,0]);return e?[r[0],r[1],r[2],this.alpha??void 0]:[r[0],r[1],r[2]]}#s(){let e=this.#r(!1);return I.srgbToXyzd50(e[0],e[1],e[2])}constructor(e,r,i,n,s){this.#e=[e,r,i],this.l=Ne(i,{min:0,max:1}),r=te(this.l,0)||te(this.l,1)?0:r,this.s=Ne(r,{min:0,max:1}),e=te(this.s,0,Sb)?0:e,this.h=ll(e*360)/360,this.alpha=Ne(n??null,{min:0,max:1}),this.#t=s}equal(e){let r=e.as("hsl");return te(this.h,r.h)&&te(this.s,r.s)&&te(this.l,r.l)&&te(this.alpha,r.alpha)}asString(e){return e?this.as(e).asString():this.#o(this.h,this.s,this.l)}#o(e,r,i){let n=K.sprintf("hsl(%sdeg %s% %s%",K.stringifyWithPrecision(e*360),K.stringifyWithPrecision(r*100),K.stringifyWithPrecision(i*100));return this.alpha!==null&&this.alpha!==1?n+K.sprintf(" / %s%)",K.stringifyWithPrecision(this.alpha*100)):n+")"}setAlpha(e){return new t(this.h,this.s,this.l,e)}format(){return this.alpha===null||this.alpha===1?"hsl":"hsla"}is(e){return e===this.format()}as(e){return e===this.format()?this:t.#i[e](this)}asLegacyColor(){return this.as("rgba")}getAuthoredText(){return this.#t??null}getRawParameters(){return[...this.#e]}getAsRawString(e){return e?this.as(e).getAsRawString():this.#o(...this.#e)}isGamutClipped(){return!Qi(this.#e[1],1)||!Qi(0,this.#e[1])}static fromSpec(e,r){let i=bb(e[0]);if(i===null)return null;let n=sl(e[1]);if(n===null)return null;let s=sl(e[2]);if(s===null)return null;let o=zn(e[3]);return new t(i,n,s,o,r)}hsva(){let e=this.s*(this.l<.5?this.l:1-this.l);return[this.h,e!==0?2*e/(this.l+e):0,this.l+e,this.alpha??1]}canonicalHSLA(){return[Math.round(this.h*360),Math.round(this.s*100),Math.round(this.l*100),this.alpha??1]}},Ot=class t{h;w;b;alpha;#e;#t;channels=["h","w","b","alpha"];static#i={hex:e=>new J(e.#r(!1),"hex"),hexa:e=>new J(e.#r(!0),"hexa"),rgb:e=>new J(e.#r(!1),"rgb"),rgba:e=>new J(e.#r(!0),"rgba"),hsl:e=>new gt(...Tt(e.#r(!1)),e.alpha),hsla:e=>new gt(...Tt(e.#r(!1)),e.alpha),hwb:e=>e,hwba:e=>e,lch:e=>new oi(...I.labToLch(...I.xyzd50ToLab(...e.#s())),e.alpha),oklch:e=>new li(...I.xyzd50ToOklch(...e.#s()),e.alpha),lab:e=>new si(...I.xyzd50ToLab(...e.#s()),e.alpha),oklab:e=>new ai(...I.xyzd65ToOklab(...I.xyzd50ToD65(...e.#s())),e.alpha),srgb:e=>new B("srgb",...I.xyzd50ToSrgb(...e.#s()),e.alpha),"srgb-linear":e=>new B("srgb-linear",...I.xyzd50TosRGBLinear(...e.#s()),e.alpha),"display-p3":e=>new B("display-p3",...I.xyzd50ToDisplayP3(...e.#s()),e.alpha),"display-p3-linear":e=>new B("display-p3-linear",...I.xyzd50ToDisplayP3Linear(...e.#s()),e.alpha),"a98-rgb":e=>new B("a98-rgb",...I.xyzd50ToAdobeRGB(...e.#s()),e.alpha),"prophoto-rgb":e=>new B("prophoto-rgb",...I.xyzd50ToProPhoto(...e.#s()),e.alpha),rec2020:e=>new B("rec2020",...I.xyzd50ToRec2020(...e.#s()),e.alpha),xyz:e=>new B("xyz",...I.xyzd50ToD65(...e.#s()),e.alpha),"xyz-d50":e=>new B("xyz-d50",...e.#s(),e.alpha),"xyz-d65":e=>new B("xyz-d65",...I.xyzd50ToD65(...e.#s()),e.alpha)};#r(e=!0){let r=Wk([this.h,this.w,this.b,0]);return e?[r[0],r[1],r[2],this.alpha??void 0]:[r[0],r[1],r[2]]}#s(){let e=this.#r(!1);return I.srgbToXyzd50(e[0],e[1],e[2])}constructor(e,r,i,n,s){if(this.#e=[e,r,i],this.w=Ne(r,{min:0,max:1}),this.b=Ne(i,{min:0,max:1}),e=Qi(1,this.w+this.b)?0:e,this.h=ll(e*360)/360,this.alpha=Ne(n,{min:0,max:1}),Qi(1,this.w+this.b)){let o=this.w/this.b;this.b=1/(1+o),this.w=1-this.b}this.#t=s}equal(e){let r=e.as("hwb");return te(this.h,r.h)&&te(this.w,r.w)&&te(this.b,r.b)&&te(this.alpha,r.alpha)}asString(e){return e?this.as(e).asString():this.#o(this.h,this.w,this.b)}#o(e,r,i){let n=K.sprintf("hwb(%sdeg %s% %s%",K.stringifyWithPrecision(e*360),K.stringifyWithPrecision(r*100),K.stringifyWithPrecision(i*100));return this.alpha!==null&&this.alpha!==1?n+K.sprintf(" / %s%)",K.stringifyWithPrecision(this.alpha*100)):n+")"}setAlpha(e){return new t(this.h,this.w,this.b,e,this.#t)}format(){return this.alpha!==null&&!te(this.alpha,1)?"hwba":"hwb"}is(e){return e===this.format()}as(e){return e===this.format()?this:t.#i[e](this)}asLegacyColor(){return this.as("rgba")}getAuthoredText(){return this.#t??null}canonicalHWBA(){return[Math.round(this.h*360),Math.round(this.w*100),Math.round(this.b*100),this.alpha??1]}getRawParameters(){return[...this.#e]}getAsRawString(e){return e?this.as(e).getAsRawString():this.#o(...this.#e)}isGamutClipped(){return!Qi(this.#e[1],1)||!Qi(0,this.#e[1])||!Qi(this.#e[2],1)||!Qi(0,this.#e[2])}static fromSpec(e,r){let i=bb(e[0]);if(i===null)return null;let n=sl(e[1]);if(n===null)return null;let s=sl(e[2]);if(s===null)return null;let o=zn(e[3]);return new t(i,n,s,o,r)}};function Or(t){return Math.round(t*255)}var ol=class{color;channels=["r","g","b","alpha"];constructor(e){this.color=e}get alpha(){return this.color.alpha}rgba(){return this.color.rgba()}equal(e){return this.color.equal(e)}setAlpha(e){return this.color.setAlpha(e)}format(){return(this.alpha??1)!==1?"hexa":"hex"}as(e){return this.color.as(e)}is(e){return this.color.is(e)}asLegacyColor(){return this.color.asLegacyColor()}getAuthoredText(){return this.color.getAuthoredText()}getRawParameters(){return this.color.getRawParameters()}isGamutClipped(){return this.color.isGamutClipped()}asString(e){if(e)return this.as(e).asString();let[r,i,n]=this.color.rgba();return this.stringify(r,i,n)}getAsRawString(e){if(e)return this.as(e).getAsRawString();let[r,i,n]=this.getRawParameters();return this.stringify(r,i,n)}},al=class t extends ol{setAlpha(e){return new t(this.color.setAlpha(e))}asString(e){return e&&e!==this.format()?super.as(e).asString():super.asString()}stringify(e,r,i){function n(s){return(Math.round(s*255)/17).toString(16)}return this.color.hasAlpha()?K.sprintf("#%s%s%s%s",n(e),n(r),n(i),n(this.alpha??1)).toLowerCase():K.sprintf("#%s%s%s",n(e),n(r),n(i)).toLowerCase()}},pf=class t extends ol{nickname;constructor(e,r){super(r),this.nickname=e}static fromName(e,r){let i=e.toLowerCase(),n=Yk.get(i);return n!==void 0?new t(i,J.fromRGBA(n,r)):null}stringify(){return this.nickname}getAsRawString(e){return this.color.getAsRawString(e)}},J=class t{#e;#t;#i;#r;channels=["r","g","b","alpha"];static#s={hex:e=>new t(e.#t,"hex"),hexa:e=>new t(e.#t,"hexa"),rgb:e=>new t(e.#t,"rgb"),rgba:e=>new t(e.#t,"rgba"),hsl:e=>new gt(...Tt([e.#t[0],e.#t[1],e.#t[2]]),e.alpha),hsla:e=>new gt(...Tt([e.#t[0],e.#t[1],e.#t[2]]),e.alpha),hwb:e=>new Ot(...Pt([e.#t[0],e.#t[1],e.#t[2]]),e.alpha),hwba:e=>new Ot(...Pt([e.#t[0],e.#t[1],e.#t[2]]),e.alpha),lch:e=>new oi(...I.labToLch(...I.xyzd50ToLab(...e.#o())),e.alpha),oklch:e=>new li(...I.xyzd50ToOklch(...e.#o()),e.alpha),lab:e=>new si(...I.xyzd50ToLab(...e.#o()),e.alpha),oklab:e=>new ai(...I.xyzd65ToOklab(...I.xyzd50ToD65(...e.#o())),e.alpha),srgb:e=>new B("srgb",...I.xyzd50ToSrgb(...e.#o()),e.alpha),"srgb-linear":e=>new B("srgb-linear",...I.xyzd50TosRGBLinear(...e.#o()),e.alpha),"display-p3":e=>new B("display-p3",...I.xyzd50ToDisplayP3(...e.#o()),e.alpha),"display-p3-linear":e=>new B("display-p3-linear",...I.xyzd50ToDisplayP3Linear(...e.#o()),e.alpha),"a98-rgb":e=>new B("a98-rgb",...I.xyzd50ToAdobeRGB(...e.#o()),e.alpha),"prophoto-rgb":e=>new B("prophoto-rgb",...I.xyzd50ToProPhoto(...e.#o()),e.alpha),rec2020:e=>new B("rec2020",...I.xyzd50ToRec2020(...e.#o()),e.alpha),xyz:e=>new B("xyz",...I.xyzd50ToD65(...e.#o()),e.alpha),"xyz-d50":e=>new B("xyz-d50",...e.#o(),e.alpha),"xyz-d65":e=>new B("xyz-d65",...I.xyzd50ToD65(...e.#o()),e.alpha)};#o(){let[e,r,i]=this.#t;return I.srgbToXyzd50(e,r,i)}get alpha(){switch(this.format()){case"hexa":case"rgba":return this.#t[3];default:return null}}asLegacyColor(){return this}nickname(){let e=qk.get(String(this.canonicalRGBA()));return e?new pf(e,this):null}shortHex(){for(let e=0;e<4;++e)if(Math.round(this.#t[e]*255)%17)return null;return new al(this)}constructor(e,r,i){this.#i=i||null,this.#r=r,this.#e=[e[0],e[1],e[2]],this.#t=[Ne(e[0],{min:0,max:1}),Ne(e[1],{min:0,max:1}),Ne(e[2],{min:0,max:1}),Ne(e[3]??1,{min:0,max:1})]}static fromHex(e,r){e=e.toLowerCase();let n=e.length===4||e.length===8?"hexa":"hex",s=e.length<=4;s&&(e=e.charAt(0)+e.charAt(0)+e.charAt(1)+e.charAt(1)+e.charAt(2)+e.charAt(2)+e.charAt(3)+e.charAt(3));let o=parseInt(e.substring(0,2),16),a=parseInt(e.substring(2,4),16),l=parseInt(e.substring(4,6),16),h=1;e.length===8&&(h=parseInt(e.substring(6,8),16)/255);let c=new t([o/255,a/255,l/255,h],n,r);return s?new al(c):c}static fromRGBAFunction(e,r,i,n,s){let o=[ff(e),ff(r),ff(i),n?jk(n):1];return Yt.arrayDoesNotContainNullOrUndefined(o)?new t(o,n?"rgba":"rgb",s):null}static fromRGBA(e,r){return new t([e[0]/255,e[1]/255,e[2]/255,e[3]],"rgba",r)}static fromHSVA(e){let r=Gk(e);return new t(r,"rgba")}is(e){return e===this.format()}as(e){return e===this.format()?this:t.#s[e](this)}format(){return this.#r}hasAlpha(){return this.#t[3]!==1}detectHEXFormat(){return this.hasAlpha()?"hexa":"hex"}asString(e){return e?this.as(e).asString():this.#a(e,this.#t[0],this.#t[1],this.#t[2])}#a(e,r,i,n){e||(e=this.#r);function s(o){let a=Math.round(o*255).toString(16);return a.length===1?"0"+a:a}switch(e){case"rgb":case"rgba":{let o=K.sprintf("rgb(%d %d %d",Or(r),Or(i),Or(n));return this.hasAlpha()?o+K.sprintf(" / %d%)",Math.round(this.#t[3]*100)):o+")"}case"hex":case"hexa":return this.hasAlpha()?K.sprintf("#%s%s%s%s",s(r),s(i),s(n),s(this.#t[3])).toLowerCase():K.sprintf("#%s%s%s",s(r),s(i),s(n)).toLowerCase()}}getAuthoredText(){return this.#i??null}getRawParameters(){return[...this.#e]}getAsRawString(e){return e?this.as(e).getAsRawString():this.#a(e,...this.#e)}isGamutClipped(){return!te(this.#e.map(Or),[this.#t[0],this.#t[1],this.#t[2]].map(Or),Xr)}rgba(){return[...this.#t]}canonicalRGBA(){let e=new Array(4);for(let r=0;r<3;++r)e[r]=Math.round(this.#t[r]*255);return e[3]=this.#t[3],e}toProtocolRGBA(){let e=this.canonicalRGBA(),r={r:e[0],g:e[1],b:e[2]};return e[3]!==1&&(r.a=e[3]),r}invert(){let e=[0,0,0,0];return e[0]=1-this.#t[0],e[1]=1-this.#t[1],e[2]=1-this.#t[2],e[3]=this.#t[3],new t(e,"rgba")}grayscale(){let[e,r,i]=this.#t,n=e*.299+r*.587+i*.114;return new t([n,n,n,.5],"rgba")}setAlpha(e){let r=[...this.#t];return r[3]=e,new t(r,"rgba")}blendWith(e){let r=db(e.#t,this.#t);return new t(r,"rgba")}blendWithAlpha(e){let r=[...this.#t];return r[3]*=e,new t(r,"rgba")}setFormat(e){this.#r=e}equal(e){let r=e.as(this.#r);return te(Or(this.#t[0]),Or(r.#t[0]),Xr)&&te(Or(this.#t[1]),Or(r.#t[1]),Xr)&&te(Or(this.#t[2]),Or(r.#t[2]),Xr)&&te(this.#t[3],r.#t[3])}},mf=[["aliceblue",[240,248,255]],["antiquewhite",[250,235,215]],["aqua",[0,255,255]],["aquamarine",[127,255,212]],["azure",[240,255,255]],["beige",[245,245,220]],["bisque",[255,228,196]],["black",[0,0,0]],["blanchedalmond",[255,235,205]],["blue",[0,0,255]],["blueviolet",[138,43,226]],["brown",[165,42,42]],["burlywood",[222,184,135]],["cadetblue",[95,158,160]],["chartreuse",[127,255,0]],["chocolate",[210,105,30]],["coral",[255,127,80]],["cornflowerblue",[100,149,237]],["cornsilk",[255,248,220]],["crimson",[237,20,61]],["cyan",[0,255,255]],["darkblue",[0,0,139]],["darkcyan",[0,139,139]],["darkgoldenrod",[184,134,11]],["darkgray",[169,169,169]],["darkgrey",[169,169,169]],["darkgreen",[0,100,0]],["darkkhaki",[189,183,107]],["darkmagenta",[139,0,139]],["darkolivegreen",[85,107,47]],["darkorange",[255,140,0]],["darkorchid",[153,50,204]],["darkred",[139,0,0]],["darksalmon",[233,150,122]],["darkseagreen",[143,188,143]],["darkslateblue",[72,61,139]],["darkslategray",[47,79,79]],["darkslategrey",[47,79,79]],["darkturquoise",[0,206,209]],["darkviolet",[148,0,211]],["deeppink",[255,20,147]],["deepskyblue",[0,191,255]],["dimgray",[105,105,105]],["dimgrey",[105,105,105]],["dodgerblue",[30,144,255]],["firebrick",[178,34,34]],["floralwhite",[255,250,240]],["forestgreen",[34,139,34]],["fuchsia",[255,0,255]],["gainsboro",[220,220,220]],["ghostwhite",[248,248,255]],["gold",[255,215,0]],["goldenrod",[218,165,32]],["gray",[128,128,128]],["grey",[128,128,128]],["green",[0,128,0]],["greenyellow",[173,255,47]],["honeydew",[240,255,240]],["hotpink",[255,105,180]],["indianred",[205,92,92]],["indigo",[75,0,130]],["ivory",[255,255,240]],["khaki",[240,230,140]],["lavender",[230,230,250]],["lavenderblush",[255,240,245]],["lawngreen",[124,252,0]],["lemonchiffon",[255,250,205]],["lightblue",[173,216,230]],["lightcoral",[240,128,128]],["lightcyan",[224,255,255]],["lightgoldenrodyellow",[250,250,210]],["lightgreen",[144,238,144]],["lightgray",[211,211,211]],["lightgrey",[211,211,211]],["lightpink",[255,182,193]],["lightsalmon",[255,160,122]],["lightseagreen",[32,178,170]],["lightskyblue",[135,206,250]],["lightslategray",[119,136,153]],["lightslategrey",[119,136,153]],["lightsteelblue",[176,196,222]],["lightyellow",[255,255,224]],["lime",[0,255,0]],["limegreen",[50,205,50]],["linen",[250,240,230]],["magenta",[255,0,255]],["maroon",[128,0,0]],["mediumaquamarine",[102,205,170]],["mediumblue",[0,0,205]],["mediumorchid",[186,85,211]],["mediumpurple",[147,112,219]],["mediumseagreen",[60,179,113]],["mediumslateblue",[123,104,238]],["mediumspringgreen",[0,250,154]],["mediumturquoise",[72,209,204]],["mediumvioletred",[199,21,133]],["midnightblue",[25,25,112]],["mintcream",[245,255,250]],["mistyrose",[255,228,225]],["moccasin",[255,228,181]],["navajowhite",[255,222,173]],["navy",[0,0,128]],["oldlace",[253,245,230]],["olive",[128,128,0]],["olivedrab",[107,142,35]],["orange",[255,165,0]],["orangered",[255,69,0]],["orchid",[218,112,214]],["palegoldenrod",[238,232,170]],["palegreen",[152,251,152]],["paleturquoise",[175,238,238]],["palevioletred",[219,112,147]],["papayawhip",[255,239,213]],["peachpuff",[255,218,185]],["peru",[205,133,63]],["pink",[255,192,203]],["plum",[221,160,221]],["powderblue",[176,224,230]],["purple",[128,0,128]],["rebeccapurple",[102,51,153]],["red",[255,0,0]],["rosybrown",[188,143,143]],["royalblue",[65,105,225]],["saddlebrown",[139,69,19]],["salmon",[250,128,114]],["sandybrown",[244,164,96]],["seagreen",[46,139,87]],["seashell",[255,245,238]],["sienna",[160,82,45]],["silver",[192,192,192]],["skyblue",[135,206,235]],["slateblue",[106,90,205]],["slategray",[112,128,144]],["slategrey",[112,128,144]],["snow",[255,250,250]],["springgreen",[0,255,127]],["steelblue",[70,130,180]],["tan",[210,180,140]],["teal",[0,128,128]],["thistle",[216,191,216]],["tomato",[255,99,71]],["turquoise",[64,224,208]],["violet",[238,130,238]],["wheat",[245,222,179]],["white",[255,255,255]],["whitesmoke",[245,245,245]],["yellow",[255,255,0]],["yellowgreen",[154,205,50]],["transparent",[0,0,0,0]]];console.assert(mf.every(([t])=>t.toLowerCase()===t),"All color nicknames must be lowercase.");var Yk=new Map(mf),qk=new Map(mf.map(([t,[e,r,i,n=1]])=>[String([e,r,i,n]),t])),il=[127,32,210],kE={Content:J.fromRGBA([111,168,220,.66]),ContentLight:J.fromRGBA([111,168,220,.5]),ContentOutline:J.fromRGBA([9,83,148]),Padding:J.fromRGBA([147,196,125,.55]),PaddingLight:J.fromRGBA([147,196,125,.4]),Border:J.fromRGBA([255,229,153,.66]),BorderLight:J.fromRGBA([255,229,153,.5]),Margin:J.fromRGBA([246,178,107,.66]),MarginLight:J.fromRGBA([246,178,107,.5]),EventTarget:J.fromRGBA([255,196,196,.66]),Shape:J.fromRGBA([96,82,177,.8]),ShapeMargin:J.fromRGBA([96,82,127,.6]),CssGrid:J.fromRGBA([75,0,130,1]),LayoutLine:J.fromRGBA([...il,1]),GridBorder:J.fromRGBA([...il,1]),GapBackground:J.fromRGBA([...il,.3]),GapHatch:J.fromRGBA([...il,.8]),GridAreaBorder:J.fromRGBA([26,115,232,1]),AnchorIMCB:J.fromRGBA([127,32,210,1]),AnchorIMCBBackground:J.fromRGBA([127,32,210,.15]),AnchorInsetsBackground:J.fromRGBA([246,178,107,.25]),AnchorInsetsHatch:J.fromRGBA([246,178,107,.8]),AnchorTarget:J.fromRGBA([26,115,232,1]),AnchorTargetBackground:J.fromRGBA([26,115,232,.15])},TE={ParentOutline:J.fromRGBA([224,90,183,1]),ChildOutline:J.fromRGBA([0,120,212,1])},PE={Resizer:J.fromRGBA([222,225,230,1]),ResizerHandle:J.fromRGBA([166,166,166,1]),Mask:J.fromRGBA([248,249,249,1])};var hl={};Ke(hl,{ObjectWrapper:()=>Vn,eventMixin:()=>Kk});var Vn=class{listeners;addEventListener(e,r,i){this.listeners||(this.listeners=new Map);let n=this.listeners.get(e);return n||(n=new Set,this.listeners.set(e,n)),n.add({thisObject:i,listener:r}),{eventTarget:this,eventType:e,thisObject:i,listener:r}}once(e){return new Promise(r=>{let i=this.addEventListener(e,n=>{this.removeEventListener(e,i.listener),r(n.data)})})}removeEventListener(e,r,i){let n=this.listeners?.get(e);if(n){for(let s of n)s.listener===r&&s.thisObject===i&&(s.disposed=!0,n.delete(s));n.size||this.listeners?.delete(e)}}hasEventListeners(e){return!!this.listeners?.has(e)}dispatchEventToListeners(e,...[r]){let i=this.listeners?.get(e);if(!i)return;let n={data:r,source:this};for(let s of[...i])if(!s.disposed)try{s.listener.call(s.thisObject,n)}catch(o){console.error(`Event listener for ${String(e)} throw an error:`,o)}}};function Kk(t){return class extends t{__events=new Vn;addEventListener(r,i,n){return this.__events.addEventListener(r,i,n)}once(r){return this.__events.once(r)}removeEventListener(r,i,n){this.__events.removeEventListener(r,i,n)}hasEventListeners(r){return this.__events.hasEventListeners(r)}dispatchEventToListeners(r,...i){this.__events.dispatchEventToListeners(r,...i),typeof this.dispatchDOMEvent=="function"&&this.dispatchDOMEvent(new CustomEvent(r,{detail:i[0]}))}}}var cl=null,rn=class t{locale;lookupClosestDevToolsLocale;constructor(e){this.lookupClosestDevToolsLocale=e.lookupClosestDevToolsLocale,e.settingLanguage==="browserLanguage"?this.locale=e.navigatorLanguage||"en-US":this.locale=e.settingLanguage,this.locale=this.lookupClosestDevToolsLocale(this.locale)}static instance(e={create:!1}){if(!cl&&!e.create)throw new Error("No LanguageSelector instance exists yet.");return e.create&&(cl=new t(e.data)),cl}static removeInstance(){cl=null}forceFallbackLocale(){this.locale="en-US"}languageIsSupportedByDevTools(e){return Jk(e,this.lookupClosestDevToolsLocale(e))}};function Jk(t,e){let r=new Intl.Locale(t),i=new Intl.Locale(e);return r.language===i.language}function Ct(t){let e;return{format(r,i){return e||(e=new Intl.NumberFormat(rn.instance().locale,t)),tT(e,r,i)},formatToParts(r){return e||(e=new Intl.NumberFormat(rn.instance().locale,t)),e.formatToParts(r)}}}function tT(t,e,r="\xA0"){let i=t.formatToParts(e),n=!1;for(let o of i)o.type==="literal"&&(o.value===" "?(n=!0,o.value=r):o.value===r&&(n=!0));if(n)return i.map(o=>o.value).join("");let s=i.findIndex(o=>o.type==="unit");return s===-1?i.map(o=>o.value).join(""):s===0?i[0].value+r+i.slice(1).map(o=>o.value).join(""):i.slice(0,s).map(o=>o.value).join("")+r+i.slice(s).map(o=>o.value).join("")}var QE=Ct({style:"unit",unit:"byte",unitDisplay:"narrow",minimumFractionDigits:0,maximumFractionDigits:0}),RE=Ct({style:"unit",unit:"kilobyte",unitDisplay:"narrow",minimumFractionDigits:1,maximumFractionDigits:1}),$E=Ct({style:"unit",unit:"kilobyte",unitDisplay:"narrow",minimumFractionDigits:0,maximumFractionDigits:0}),LE=Ct({style:"unit",unit:"megabyte",unitDisplay:"narrow",minimumFractionDigits:1,maximumFractionDigits:1}),_E=Ct({style:"unit",unit:"megabyte",unitDisplay:"narrow",minimumFractionDigits:0,maximumFractionDigits:0});var Et={};Ke(Et,{deserializeUIString:()=>nP,fetchAndRegisterLocaleData:()=>HT,getAllSupportedDevToolsLocales:()=>YT,getLazilyComputedLocalizedString:()=>tP,getLocalizedLanguageRegion:()=>aP,getLocalizedString:()=>Hb,hasLocaleDataForTest:()=>KT,lockedLazyString:()=>oP,lockedString:()=>sP,lookupClosestSupportedDevToolsLocale:()=>GT,registerLocaleDataForTest:()=>eP,registerUIStrings:()=>rP,resetLocaleDataForTest:()=>JT,serializeUIString:()=>iP});var ml={};Ke(ml,{I18n:()=>Ef});var We=function(){return We=Object.assign||function(e){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},We.apply(this,arguments)},Oe;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Oe||(Oe={}));var je;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(je||(je={}));var Bn;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(Bn||(Bn={}));function xb(t){return t.type===je.literal}function nT(t){return t.type===je.argument}function Eb(t){return t.type===je.number}function Qb(t){return t.type===je.date}function Rb(t){return t.type===je.time}function $b(t){return t.type===je.select}function Lb(t){return t.type===je.plural}function sT(t){return t.type===je.pound}function _b(t){return t.type===je.tag}function Ib(t){return!!(t&&typeof t=="object"&&t.type===Bn.number)}function xf(t){return!!(t&&typeof t=="object"&&t.type===Bn.dateTime)}var Db=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,oT=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function aT(t){var e={};return t.replace(oT,function(r){var i=r.length;switch(r[0]){case"G":e.era=i===4?"long":i===5?"narrow":"short";break;case"y":e.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=i===4?"short":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var lT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hT(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(lT).filter(function(f){return f.length>0}),r=[],i=0,n=e;i<n.length;i++){var s=n[i],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],l=o.slice(1),h=0,c=l;h<c.length;h++){var u=c[h];if(u.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function cT(t){return t.replace(/^(.*?)-/,"")}var vb=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Mb=/^(@+)?(\+|#+)?$/g,uT=/(\*)(0+)|(#+)(0+)|(0+)/g,Nb=/^(0+)$/;function wb(t){var e={};return t.replace(Mb,function(r,i,n){return typeof n!="string"?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):n==="+"?e.minimumSignificantDigits=i.length:i[0]==="#"?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+(typeof n=="string"?n.length:0)),""}),e}function Xb(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function fT(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if(r==="+!"?(e.signDisplay="always",t=t.slice(2)):r==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!Nb.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function kb(t){var e={},r=Xb(t);return r||e}function pT(t){for(var e={},r=0,i=t;r<i.length;r++){var n=i[r];switch(n.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=n.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=cT(n.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=We(We(We({},e),{notation:"scientific"}),n.options.reduce(function(a,l){return We(We({},a),kb(l))},{}));continue;case"engineering":e=We(We(We({},e),{notation:"engineering"}),n.options.reduce(function(a,l){return We(We({},a),kb(l))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(n.options[0]);continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(uT,function(a,l,h,c,u,f){if(l)e.minimumIntegerDigits=h.length;else{if(c&&u)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Nb.test(n.stem)){e.minimumIntegerDigits=n.stem.length;continue}if(vb.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(vb,function(a,l,h,c,u,f){return h==="*"?e.minimumFractionDigits=l.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:u&&f?(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length+f.length):(e.minimumFractionDigits=l.length,e.maximumFractionDigits=l.length),""}),n.options.length&&(e=We(We({},e),wb(n.options[0])));continue}if(Mb.test(n.stem)){e=We(We({},e),wb(n.stem));continue}var s=Xb(n.stem);s&&(e=We(We({},e),s));var o=fT(n.stem);o&&(e=We(We({},e),o))}return e}var gf,dT=new RegExp("^"+Db.source+"*"),mT=new RegExp(Db.source+"*$");function ye(t,e){return{start:t,end:e}}var gT=!!String.prototype.startsWith,OT=!!String.fromCodePoint,bT=!!Object.fromEntries,yT=!!String.prototype.codePointAt,ST=!!String.prototype.trimStart,xT=!!String.prototype.trimEnd,vT=!!Number.isSafeInteger,wT=vT?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},vf=!0;try{Tb=Fb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),vf=((gf=Tb.exec("a"))===null||gf===void 0?void 0:gf[0])==="a"}catch{vf=!1}var Tb,Pb=gT?function(e,r,i){return e.startsWith(r,i)}:function(e,r,i){return e.slice(i,i+r.length)===r},wf=OT?String.fromCodePoint:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i="",n=e.length,s=0,o;n>s;){if(o=e[s++],o>1114111)throw RangeError(o+" is not a valid code point");i+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return i},Cb=bT?Object.fromEntries:function(e){for(var r={},i=0,n=e;i<n.length;i++){var s=n[i],o=s[0],a=s[1];r[o]=a}return r},Zb=yT?function(e,r){return e.codePointAt(r)}:function(e,r){var i=e.length;if(!(r<0||r>=i)){var n=e.charCodeAt(r),s;return n<55296||n>56319||r+1===i||(s=e.charCodeAt(r+1))<56320||s>57343?n:(n-55296<<10)+(s-56320)+65536}},kT=ST?function(e){return e.trimStart()}:function(e){return e.replace(dT,"")},TT=xT?function(e){return e.trimEnd()}:function(e){return e.replace(mT,"")};function Fb(t,e){return new RegExp(t,e)}var kf;vf?(Of=Fb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),kf=function(e,r){var i;Of.lastIndex=r;var n=Of.exec(e);return(i=n[1])!==null&&i!==void 0?i:""}):kf=function(e,r){for(var i=[];;){var n=Zb(e,r);if(n===void 0||zb(n)||ET(n))break;i.push(n),r+=n>=65536?2:1}return wf.apply(void 0,i)};var Of,PT=(function(){function t(e,r){r===void 0&&(r={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,r,i){for(var n=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(e,i);if(o.err)return o;n.push(o.val)}else{if(s===125&&e>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:je.pound,location:ye(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(Oe.UNMATCHED_CLOSING_TAG,ye(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Tf(this.peek()||0)){var o=this.parseTag(e,r);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(e,r);if(o.err)return o;n.push(o.val)}}}return{val:n,err:null}},t.prototype.parseTag=function(e,r){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:je.literal,value:"<"+n+"/>",location:ye(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(e+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Tf(this.char()))return this.error(Oe.INVALID_TAG,ye(a,this.clonePosition()));var l=this.clonePosition(),h=this.parseTagName();return n!==h?this.error(Oe.UNMATCHED_CLOSING_TAG,ye(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:je.tag,value:n,children:o,location:ye(i,this.clonePosition())},err:null}:this.error(Oe.INVALID_TAG,ye(a,this.clonePosition())))}else return this.error(Oe.UNCLOSED_TAG,ye(i,this.clonePosition()))}else return this.error(Oe.INVALID_TAG,ye(i,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&AT(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,r){for(var i=this.clonePosition(),n="";;){var s=this.tryParseQuote(r);if(s){n+=s;continue}var o=this.tryParseUnquoted(e,r);if(o){n+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var l=ye(i,this.clonePosition());return{val:{type:je.literal,value:n,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!CT(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return wf.apply(void 0,r)},t.prototype.tryParseUnquoted=function(e,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&e>0?null:(this.bump(),wf(i))},t.prototype.parseArgument=function(e,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Oe.EXPECT_ARGUMENT_CLOSING_BRACE,ye(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Oe.EMPTY_ARGUMENT,ye(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Oe.MALFORMED_ARGUMENT,ye(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Oe.EXPECT_ARGUMENT_CLOSING_BRACE,ye(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:je.argument,value:n,location:ye(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Oe.EXPECT_ARGUMENT_CLOSING_BRACE,ye(i,this.clonePosition())):this.parseArgumentOptions(e,r,n,i);default:return this.error(Oe.MALFORMED_ARGUMENT,ye(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),r=this.offset(),i=kf(this.message,r),n=r+i.length;this.bumpTo(n);var s=this.clonePosition(),o=ye(e,s);return{value:i,location:o}},t.prototype.parseArgumentOptions=function(e,r,i,n){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(Oe.EXPECT_ARGUMENT_TYPE,ye(o,l));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),u=this.parseSimpleArgStyleIfPossible();if(u.err)return u;var f=TT(u.val);if(f.length===0)return this.error(Oe.EXPECT_ARGUMENT_STYLE,ye(this.clonePosition(),this.clonePosition()));var p=ye(c,this.clonePosition());h={style:f,styleLocation:p}}var d=this.tryParseArgumentClose(n);if(d.err)return d;var y=ye(n,this.clonePosition());if(h&&Pb(h?.style,"::",0)){var b=kT(h.style.slice(2));if(a==="number"){var u=this.parseNumberSkeletonFromString(b,h.styleLocation);return u.err?u:{val:{type:je.number,value:i,location:y,style:u.val},err:null}}else{if(b.length===0)return this.error(Oe.EXPECT_DATE_TIME_SKELETON,y);var f={type:Bn.dateTime,pattern:b,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?aT(b):{}},S=a==="date"?je.date:je.time;return{val:{type:S,value:i,location:y,style:f},err:null}}}return{val:{type:a==="number"?je.number:a==="date"?je.date:je.time,value:i,location:y,style:(s=h?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Oe.EXPECT_SELECT_ARGUMENT_OPTIONS,ye(w,We({},w)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),v=0;if(a!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(Oe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ye(this.clonePosition(),this.clonePosition()));this.bumpSpace();var u=this.tryParseDecimalInteger(Oe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Oe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(u.err)return u;this.bumpSpace(),O=this.parseIdentifierIfPossible(),v=u.val}var T=this.tryParsePluralOrSelectOptions(e,a,r,O);if(T.err)return T;var d=this.tryParseArgumentClose(n);if(d.err)return d;var _=ye(n,this.clonePosition());return a==="select"?{val:{type:je.select,value:i,options:Cb(T.val),location:_},err:null}:{val:{type:je.plural,value:i,options:Cb(T.val),offset:v,pluralType:a==="plural"?"cardinal":"ordinal",location:_},err:null}}default:return this.error(Oe.INVALID_ARGUMENT_TYPE,ye(o,l))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(Oe.EXPECT_ARGUMENT_CLOSING_BRACE,ye(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Oe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ye(n,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,r){var i=[];try{i=hT(e)}catch{return this.error(Oe.INVALID_NUMBER_SKELETON,r)}return{val:{type:Bn.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?pT(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,r,i,n){for(var s,o=!1,a=[],l=new Set,h=n.value,c=n.location;;){if(h.length===0){var u=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(Oe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Oe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=ye(u,this.clonePosition()),h=this.message.slice(u.offset,this.offset())}else break}if(l.has(h))return this.error(r==="select"?Oe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Oe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);h==="other"&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Oe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Oe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ye(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(e+1,r,i);if(d.err)return d;var y=this.tryParseArgumentClose(p);if(y.err)return y;a.push([h,{value:d.val,location:ye(p,this.clonePosition())}]),l.add(h),this.bumpSpace(),s=this.parseIdentifierIfPossible(),h=s.value,c=s.location}return a.length===0?this.error(r==="select"?Oe.EXPECT_SELECT_ARGUMENT_SELECTOR:Oe.EXPECT_PLURAL_ARGUMENT_SELECTOR,ye(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Oe.MISSING_OTHER_CLAUSE,ye(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(e,r){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var l=ye(n,this.clonePosition());return s?(o*=i,wT(o)?{val:o,err:null}:this.error(r,l)):this.error(e,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var r=Zb(this.message,e);if(r===void 0)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return r},t.prototype.error=function(e,r){return{val:null,err:{kind:e,message:this.message,location:r}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(Pb(this.message,e,this.offset())){for(var r=0;r<e.length;r++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var r=this.offset(),i=this.message.indexOf(e,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var r=this.offset();if(r===e)break;if(r>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&zb(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(e>=65536?2:1));return i??null},t})();function Tf(t){return t>=97&&t<=122||t>=65&&t<=90}function CT(t){return Tf(t)||t===47}function AT(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function zb(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function ET(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Pf(t){t.forEach(function(e){if(delete e.location,$b(e)||Lb(e))for(var r in e.options)delete e.options[r].location,Pf(e.options[r].value);else Eb(e)&&Ib(e.style)||(Qb(e)||Rb(e))&&xf(e.style)?delete e.style.location:_b(e)&&Pf(e.children)})}function QT(t,e){e===void 0&&(e={}),e=We({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new PT(t,e).parse();if(r.err){var i=SyntaxError(Oe[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return e?.captureLocation||Pf(r.val),r.val}function bf(t,e){var r=e&&e.cache?e.cache:DT,i=e&&e.serializer?e.serializer:IT,n=e&&e.strategy?e.strategy:$T;return n(t,{cache:r,serializer:i})}function RT(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Vb(t,e,r,i){var n=RT(i)?i:r(i),s=e.get(n);return typeof s>"u"&&(s=t.call(this,i),e.set(n,s)),s}function Bb(t,e,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),s=e.get(n);return typeof s>"u"&&(s=t.apply(this,i),e.set(n,s)),s}function Cf(t,e,r,i,n){return r.bind(e,t,i,n)}function $T(t,e){var r=t.length===1?Vb:Bb;return Cf(t,this,r,e.cache.create(),e.serializer)}function LT(t,e){return Cf(t,this,Bb,e.cache.create(),e.serializer)}function _T(t,e){return Cf(t,this,Vb,e.cache.create(),e.serializer)}var IT=function(){return JSON.stringify(arguments)};function fl(){this.cache=Object.create(null)}fl.prototype.has=function(t){return t in this.cache};fl.prototype.get=function(t){return this.cache[t]};fl.prototype.set=function(t,e){this.cache[t]=e};var DT={create:function(){return new fl}},yf={variadic:LT,monadic:_T},jn;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(jn||(jn={}));var pl=class extends Error{constructor(t,e,r){super(t),this.code=e,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},Ab=class extends pl{constructor(t,e,r,i){super(`Invalid values for "${t}": "${e}". Options are "${Object.keys(r).join('", "')}"`,jn.INVALID_VALUE,i)}},MT=class extends pl{constructor(t,e,r){super(`Value for "${t}" must be of type ${e}`,jn.INVALID_VALUE,r)}},NT=class extends pl{constructor(t,e){super(`The intl string context variable "${t}" was not provided to the string "${e}"`,jn.MISSING_VALUE,e)}},At;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(At||(At={}));function XT(t){return t.length<2?t:t.reduce((e,r)=>{let i=e[e.length-1];return!i||i.type!==At.literal||r.type!==At.literal?e.push(r):i.value+=r.value,e},[])}function ZT(t){return typeof t=="function"}function ul(t,e,r,i,n,s,o){if(t.length===1&&xb(t[0]))return[{type:At.literal,value:t[0].value}];let a=[];for(let l of t){if(xb(l)){a.push({type:At.literal,value:l.value});continue}if(sT(l)){typeof s=="number"&&a.push({type:At.literal,value:r.getNumberFormat(e).format(s)});continue}let{value:h}=l;if(!(n&&h in n))throw new NT(h,o);let c=n[h];if(nT(l)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),a.push({type:typeof c=="string"?At.literal:At.object,value:c});continue}if(Qb(l)){let u=typeof l.style=="string"?i.date[l.style]:xf(l.style)?l.style.parsedOptions:void 0;a.push({type:At.literal,value:r.getDateTimeFormat(e,u).format(c)});continue}if(Rb(l)){let u=typeof l.style=="string"?i.time[l.style]:xf(l.style)?l.style.parsedOptions:void 0;a.push({type:At.literal,value:r.getDateTimeFormat(e,u).format(c)});continue}if(Eb(l)){let u=typeof l.style=="string"?i.number[l.style]:Ib(l.style)?l.style.parsedOptions:void 0;u&&u.scale&&(c=c*(u.scale||1)),a.push({type:At.literal,value:r.getNumberFormat(e,u).format(c)});continue}if(_b(l)){let{children:u,value:f}=l,p=n[f];if(!ZT(p))throw new MT(f,"function",o);let d=ul(u,e,r,i,n,s),y=p(d.map(b=>b.value));Array.isArray(y)||(y=[y]),a.push(...y.map(b=>({type:typeof b=="string"?At.literal:At.object,value:b})))}if($b(l)){let u=l.options[c]||l.options.other;if(!u)throw new Ab(l.value,c,Object.keys(l.options),o);a.push(...ul(u.value,e,r,i,n));continue}if(Lb(l)){let u=l.options[`=${c}`];if(!u){if(!Intl.PluralRules)throw new pl(`Intl.PluralRules is not available in this environment.
37
+ Try polyfilling it using "@formatjs/intl-pluralrules"
38
+ `,jn.MISSING_INTL_API,o);let f=r.getPluralRules(e,{type:l.pluralType}).select(c-(l.offset||0));u=l.options[f]||l.options.other}if(!u)throw new Ab(l.value,c,Object.keys(l.options),o);a.push(...ul(u.value,e,r,i,n,c-(l.offset||0)));continue}}return XT(a)}function FT(t,e){return e?{...t||{},...e||{},...Object.keys(t).reduce((r,i)=>(r[i]={...t[i],...e[i]||{}},r),{})}:t}function zT(t,e){return e?Object.keys(t).reduce((r,i)=>(r[i]=FT(t[i],e[i]),r),{...t}):t}function Sf(t){return{create(){return{has(e){return e in t},get(e){return t[e]},set(e,r){t[e]=r}}}}}function VT(t={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:bf((...e)=>new Intl.NumberFormat(...e),{cache:Sf(t.number),strategy:yf.variadic}),getDateTimeFormat:bf((...e)=>new Intl.DateTimeFormat(...e),{cache:Sf(t.dateTime),strategy:yf.variadic}),getPluralRules:bf((...e)=>new Intl.PluralRules(...e),{cache:Sf(t.pluralRules),strategy:yf.variadic})}}var Sr=class{constructor(t,e=Sr.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=n=>{let s=this.formatToParts(n);if(s.length===1)return s[0].value;let o=s.reduce((a,l)=>(!a.length||l.type!==At.literal||typeof a[a.length-1]!="string"?a.push(l.value):a[a.length-1]+=l.value,a),[]);return o.length<=1?o[0]||"":o},this.formatToParts=n=>ul(this.ast,this.locales,this.formatters,this.formats,n,void 0,this.message),this.resolvedOptions=()=>({locale:Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,typeof t=="string"){if(this.message=t,!Sr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Sr.__parse(t,{ignoreTag:i?.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=zT(Sr.formats,r),this.locales=e,this.formatters=i&&i.formatters||VT(this.formatterCache)}static get defaultLocale(){return Sr.memoizedDefaultLocale||(Sr.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),Sr.memoizedDefaultLocale}};Sr.memoizedDefaultLocale=null;Sr.__parse=QT;Sr.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var ro=Sr;var jb={},dl=class{constructor(e,r,i){this.filename=e;this.stringStructure=r;this.localizedMessages=i}filename;stringStructure;localizedMessages;localizedStringSet;getLocalizedStringSetFor(e){if(this.localizedStringSet)return this.localizedStringSet;let r=this.localizedMessages.get(e);if(!r)throw new Error(`No locale data registered for '${e}'`);return this.localizedStringSet=new Af(this.filename,this.stringStructure,e,r),this.localizedStringSet}},Af=class{constructor(e,r,i,n){this.filename=e;this.stringStructure=r;this.localizedMessages=n;this.localeForFormatter=i==="en-XA"||i==="en-XL"?"de-DE":i}filename;stringStructure;localizedMessages;cachedSimpleStrings=new Map;cachedMessageFormatters=new Map;localeForFormatter;getLocalizedString(e,r=jb){return r===jb||Object.keys(r).length===0?this.getSimpleLocalizedString(e):this.getFormattedLocalizedString(e,r)}getMessageFormatterFor(e){let r=Object.keys(this.stringStructure).find(o=>this.stringStructure[o]===e);if(!r)throw new Error(`Unable to locate '${e}' in UIStrings object`);let i=`${this.filename} | ${r}`,n=this.localizedMessages[i],s=n?n.message:e;return new ro(s,this.localeForFormatter,void 0,{ignoreTag:!0})}getSimpleLocalizedString(e){let r=this.cachedSimpleStrings.get(e);if(r)return r;let i=this.getMessageFormatterFor(e);try{let n=i.format();return this.cachedSimpleStrings.set(e,n),n}catch{let s=new ro(e,this.localeForFormatter,void 0,{ignoreTag:!0}).format();return this.cachedSimpleStrings.set(e,s),s}}getFormattedLocalizedString(e,r){let i=this.cachedMessageFormatters.get(e);i||(i=this.getMessageFormatterFor(e),this.cachedMessageFormatters.set(e,i));try{return i.format(r)}catch{return new ro(e,this.localeForFormatter,void 0,{ignoreTag:!0}).format(r)}}};var Ef=class{supportedLocales;localeData=new Map;defaultLocale;constructor(e,r){this.defaultLocale=r,this.supportedLocales=new Set(e)}registerLocaleData(e,r){this.localeData.set(e,r)}hasLocaleDataForTest(e){return this.localeData.has(e)}resetLocaleDataForTest(){this.localeData.clear()}registerFileStrings(e,r){return new dl(e,r,this.localeData)}lookupClosestSupportedLocale(e){let i=Intl.getCanonicalLocales(e)[0].split("-");for(;i.length;){let n=i.join("-");if(this.supportedLocales.has(n))return n;i.pop()}return this.defaultLocale}};var Ub=["af","am","ar","as","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en-GB","es-419","es","et","eu","fa","fi","fil","fr-CA","fr","gl","gu","he","hi","hr","hu","hy","id","is","it","ja","ka","kk","km","kn","ko","ky","lo","lt","lv","mk","ml","mn","mr","ms","my","ne","nl","no","or","pa","pl","pt-PT","pt","ro","ru","si","sk","sl","sq","sr-Latn","sr","sv","sw","ta","te","th","tr","uk","ur","uz","vi","zh-HK","zh-TW","zu","en-US","zh","en-XL"],Wb=["en-US","zh","en-XL"],Gb="en-US",Yb="@HOST@/remote/serve_file/@VERSION@/core/i18n/locales/@LOCALE@.json",qb="./locales/@LOCALE@.json";var nn=new ml.I18n(Ub,Gb),WT=new Set([...Wb]);function GT(t){return nn.lookupClosestSupportedLocale(t)}function YT(){return[...nn.supportedLocales]}function qT(t,e){let r=Ii.getRemoteBase(e);if(r?.version&&!WT.has(t))return Yb.replace("@HOST@","devtools://devtools-remote").replace("@VERSION@",r.version).replace("@LOCALE@",t);let i=qb.replace("@LOCALE@",t);return new URL(i,import.meta.url).toString()}async function HT(t,e=globalThis.location?.toString()??""){let r=fetch(qT(t,e)).then(s=>s.json()),i=new Promise((s,o)=>globalThis.setTimeout(()=>o(new Error("timed out fetching locale")),5e3)),n=await Promise.race([i,r]);nn.registerLocaleData(t,n)}function KT(t){return nn.hasLocaleDataForTest(t)}function JT(){nn.resetLocaleDataForTest()}function eP(t,e){nn.registerLocaleData(t,e)}function tP(t,e,r={}){return()=>Hb(t,e,r)}function Hb(t,e,r={}){return t.getLocalizedStringSetFor(rn.instance().locale).getLocalizedString(e,r)}function rP(t,e){return nn.registerFileStrings(t,e)}function iP(t,e={}){return JSON.stringify({string:t,values:e})}function nP(t){return t?JSON.parse(t):{string:"",values:{}}}function sP(t){return t}function oP(t){return()=>t}function aP(t,e){let r=new Intl.Locale(t),{language:i,baseName:n}=r,s=new Intl.Locale(e.locale),o=i===s.language?"en":n,a=new Intl.DisplayNames([e.locale],{type:"language"}).of(i),l=new Intl.DisplayNames([o],{type:"language"}).of(i),h="",c="";if(r.region){let u=new Intl.DisplayNames([e.locale],{type:"region",style:"short"}).of(r.region),f=new Intl.DisplayNames([o],{type:"region",style:"short"}).of(r.region);h=` (${u})`,c=` (${f})`}return`${a}${h} - ${l}${c}`}var WE=Ct({style:"unit",unit:"millisecond",unitDisplay:"narrow",minimumFractionDigits:0,maximumFractionDigits:0}),GE=Ct({style:"unit",unit:"millisecond",unitDisplay:"long",minimumFractionDigits:0,maximumFractionDigits:0}),YE=Ct({style:"unit",unit:"microsecond",unitDisplay:"narrow",minimumFractionDigits:0,maximumFractionDigits:0}),qE=Ct({style:"unit",unit:"millisecond",unitDisplay:"narrow",minimumFractionDigits:2,maximumFractionDigits:2}),HE=Ct({style:"unit",unit:"second",unitDisplay:"narrow",minimumFractionDigits:2,maximumFractionDigits:2}),KE=Ct({style:"unit",unit:"minute",unitDisplay:"short",minimumFractionDigits:0,maximumFractionDigits:1}),JE=Ct({style:"unit",unit:"hour",unitDisplay:"short",minimumFractionDigits:0,maximumFractionDigits:1}),eQ=Ct({style:"unit",unit:"day",unitDisplay:"long",minimumFractionDigits:0,maximumFractionDigits:1});var Nt={elementsPanel:"Elements panel",stylesSidebar:"Styles sidebar",changesDrawer:"Changes drawer",issuesView:"Issues view",networkPanel:"Network panel",requestConditionsDrawer:"Request conditions drawer",applicationPanel:"Application panel",sourcesPanel:"Sources panel",timelinePanel:"Performance panel",memoryInspectorPanel:"Memory inspector panel",developerResourcesPanel:"Developer resources panel",animationsPanel:"Animations panel",lighthousePanel:"Lighthouse panel"},hP=Et.registerUIStrings("core/common/Revealer.ts",Nt),Wt=Et.getLazilyComputedLocalizedString.bind(void 0,hP);var tQ={DEVELOPER_RESOURCES_PANEL:Wt(Nt.developerResourcesPanel),ELEMENTS_PANEL:Wt(Nt.elementsPanel),STYLES_SIDEBAR:Wt(Nt.stylesSidebar),CHANGES_DRAWER:Wt(Nt.changesDrawer),ISSUES_VIEW:Wt(Nt.issuesView),NETWORK_PANEL:Wt(Nt.networkPanel),REQUEST_CONDITIONS_DRAWER:Wt(Nt.requestConditionsDrawer),TIMELINE_PANEL:Wt(Nt.timelinePanel),APPLICATION_PANEL:Wt(Nt.applicationPanel),SOURCES_PANEL:Wt(Nt.sourcesPanel),MEMORY_INSPECTOR_PANEL:Wt(Nt.memoryInspectorPanel),ANIMATIONS_PANEL:Wt(Nt.animationsPanel),LIGHTHOUSE_PANEL:Wt(Nt.lighthousePanel)};var Un={};Ke(Un,{arrayBufferToString:()=>dP,compress:()=>OP,compressStream:()=>bP,createMonitoredStream:()=>yP,decompress:()=>Jb,decompressDeflate:()=>gP,decompressDeflateToBuffer:()=>t1,decompressStream:()=>r1,decompressToBuffer:()=>e1,fileToString:()=>mP,isGzip:()=>Kb});function Kb(t){let e=new Uint8Array(t);return!e||e.length<3?!1:e[0]===31&&e[1]===139&&e[2]===8}async function dP(t){return Kb(t)?await Jb(t):new TextDecoder("utf-8").decode(new Uint8Array(t))}async function mP(t){let e=t.stream();t.type.endsWith("gzip")&&(e=r1(e));let r=await new Response(e).arrayBuffer();return new TextDecoder("utf-8").decode(r)}async function Jb(t,e="utf-8"){let r=await e1(t);return new TextDecoder(e).decode(r)}async function e1(t){return await gl(t,new DecompressionStream("gzip"))}async function gP(t,e="utf-8"){let r=await t1(t);return new TextDecoder(e).decode(r)}async function t1(t){try{return await gl(t,new DecompressionStream("deflate"))}catch{return await gl(t,new DecompressionStream("deflate-raw"))}}async function OP(t){let e=new TextEncoder().encode(t);return await gl(e,new CompressionStream("gzip"))}async function gl(t,e){let i=new ReadableStream({start(n){n.enqueue(t instanceof ArrayBuffer?new Uint8Array(t):t),n.close()}}).pipeThrough(e);return await new Response(i).arrayBuffer()}function r1(t){let e=new DecompressionStream("gzip");return t.pipeThrough(e)}function bP(t){let e=new CompressionStream("gzip");return t.pipeThrough(e)}function yP(t,e){let r=0,i=new TransformStream({transform(n,s){r+=n.byteLength,e(r),s.enqueue(n)}});return t.pipeThrough(i)}function i1(t){if(t.indexOf("..")===-1&&t.indexOf(".")===-1)return t;let e=(t[0]==="/"?t.substring(1):t).split("/"),r=[];for(let n of e)n!=="."&&(n===".."?r.pop():r.push(n));let i=r.join("/");return t[0]==="/"&&i&&(i="/"+i),i[i.length-1]!=="/"&&(t[t.length-1]==="/"||e[e.length-1]==="."||e[e.length-1]==="..")&&(i=i+"/"),i}var Wn=class t{isValid=!1;url;scheme="";user="";host="";port="";path="";queryParams="";fragment="";folderPathComponents="";lastPathComponent="";blobInnerScheme;#e;#t;constructor(e){this.url=e;let r=this.url.startsWith("blob:"),n=(r?e.substring(5):e).match(t.urlRegex());if(n)this.isValid=!0,r?(this.blobInnerScheme=n[2].toLowerCase(),this.scheme="blob"):this.scheme=n[2].toLowerCase(),this.user=n[3]??"",this.host=n[4]??"",this.port=n[5]??"",this.path=n[6]??"/",this.queryParams=n[7]??"",this.fragment=n[8]??"";else{if(this.url.startsWith("data:")){this.scheme="data";return}if(this.url.startsWith("blob:")){this.scheme="blob";return}if(this.url==="about:blank"){this.scheme="about";return}this.path=this.url}let s=this.path.lastIndexOf("/",this.path.length-2);s!==-1?this.lastPathComponent=this.path.substring(s+1):this.lastPathComponent=this.path;let o=this.path.lastIndexOf("/");o!==-1&&(this.folderPathComponents=this.path.substring(0,o))}static fromString(e){let r=new t(e.toString());return r.isValid?r:null}static preEncodeSpecialCharactersInPath(e){for(let r of["%",";","#","?"," "])e=e.replaceAll(r,encodeURIComponent(r));return e}static rawPathToEncodedPathString(e){let r=t.preEncodeSpecialCharactersInPath(e);return e.startsWith("/")?new URL(r,"file:///").pathname:new URL("/"+r,"file:///").pathname.substr(1)}static encodedFromParentPathAndName(e,r){return t.concatenate(e,"/",t.preEncodeSpecialCharactersInPath(r))}static urlFromParentUrlAndName(e,r){return t.concatenate(e,"/",t.preEncodeSpecialCharactersInPath(r))}static encodedPathToRawPathString(e){return decodeURIComponent(e)}static rawPathToUrlString(e){let r=t.preEncodeSpecialCharactersInPath(e.replace(/\\/g,"/"));r=r.replace(/\\/g,"/"),r.startsWith("file://")||(r.startsWith("/")?r="file://"+r:r="file:///"+r);let i=new URL(r).toString();for(;i.endsWith("/")&&i.length>8;)i=i.substring(0,i.length-1);return i}static relativePathToUrlString(e,r){let i=t.preEncodeSpecialCharactersInPath(e.replace(/\\/g,"/"));return new URL(i,r).toString()}static urlToRawPathString(e,r){console.assert(e.startsWith("file://"),"This must be a file URL.");let i=decodeURIComponent(e);return r?i.substr(8).replace(/\//g,"\\"):i.substr(7)}static sliceUrlToEncodedPathString(e,r){return e.substring(r)}static substr(e,r,i){return e.substr(r,i)}static substring(e,r,i){return e.substring(r,i)}static prepend(e,r){return e+r}static concatenate(e,...r){return e.concat(...r)}static trim(e){return e.trim()}static slice(e,r,i){return e.slice(r,i)}static join(e,r){return e.join(r)}static split(e,r,i){return e.split(r,i)}static toLowerCase(e){return e.toLowerCase()}static isValidUrlString(e){return new t(e).isValid}static urlWithoutHash(e){let r=e.indexOf("#");return r!==-1?e.substr(0,r):e}static urlRegex(){if(t.urlRegexInstance)return t.urlRegexInstance;let e=/([A-Za-z][A-Za-z0-9+.-]*):\/\//,r=/(?:([A-Za-z0-9\-._~%!$&'()*+,;=:]*)@)?/,i=/((?:\[[0-9a-fA-F:.]*:[0-9a-fA-F:.]*\])|(?:[^\s\/:]*))/,n=/(?::([\d]+))?/,s=/(\/[^#?]*)?/,o=/(?:\?([^#]*))?/,a=/(?:#(.*))?/;return t.urlRegexInstance=new RegExp("^("+e.source+r.source+i.source+n.source+")"+s.source+o.source+a.source+"$"),t.urlRegexInstance}static extractPath(e){let r=this.fromString(e);return r?r.path:""}static extractOrigin(e){let r=this.fromString(e);return r?r.securityOrigin():yo.EmptyUrlString}static extractExtension(e){e=t.urlWithoutHash(e);let r=e.indexOf("?");r!==-1&&(e=e.substr(0,r));let i=e.lastIndexOf("/");i!==-1&&(e=e.substr(i+1));let n=e.lastIndexOf(".");if(n!==-1){e=e.substr(n+1);let s=e.indexOf("%");return s!==-1?e.substr(0,s):e}return""}static extractName(e){e.endsWith("/")&&(e=e.slice(0,-1));let r=e.lastIndexOf("/"),i=r!==-1?e.substr(r+1):e;return r=i.indexOf("?"),r<0?i:i.substr(0,r)}static completeURL(e,r){if(r.startsWith("data:")||r.startsWith("blob:")||r.startsWith("javascript:")||r.startsWith("mailto:"))return r;let i=r.trim(),n=this.fromString(i);if(n?.scheme){let f=n.securityOrigin(),p=i1(n.path),d=n.queryParams&&`?${n.queryParams}`,y=n.fragment&&`#${n.fragment}`;return f+p+d+y}let s=this.fromString(e);if(!s)return null;if(s.isDataURL())return r;if(r.length>1&&r.charAt(0)==="/"&&r.charAt(1)==="/")return s.scheme+":"+r;let o=s.securityOrigin(),a=s.path,l=s.queryParams?"?"+s.queryParams:"";if(!r.length)return o+a+l;if(r.charAt(0)==="#")return o+a+l+r;if(r.charAt(0)==="?")return o+a+r;let h=r.match(/^[^#?]*/);if(!h||!r.length)throw new Error("Invalid href");let c=h[0],u=r.substring(c.length);return c.charAt(0)!=="/"&&(c=s.folderPathComponents+"/"+c),o+i1(c)+u}static splitLineAndColumn(e){let r=e.match(t.urlRegex()),i="",n=e;r&&(i=r[1],n=e.substring(r[1].length));let o=/(?::(\d+))?(?::(\d+))?$/.exec(n),a,l;if(console.assert(!!o),!o)return{url:e,lineNumber:0,columnNumber:0};typeof o[1]=="string"&&(a=parseInt(o[1],10),a=isNaN(a)?void 0:a-1),typeof o[2]=="string"&&(l=parseInt(o[2],10),l=isNaN(l)?void 0:l-1);let h=i+n.substring(0,n.length-o[0].length);if(o[1]===void 0&&o[2]===void 0){let u=/wasm-function\[\d+\]:0x([a-z0-9]+)$/g.exec(n);u&&typeof u[1]=="string"&&(h=t.removeWasmFunctionInfoFromURL(h),l=parseInt(u[1],16),l=isNaN(l)?void 0:l)}return{url:h,lineNumber:a,columnNumber:l}}static removeWasmFunctionInfoFromURL(e){let r=/:wasm-function\[\d+\]/,i=e.search(r);return i===-1?e:t.substring(e,0,i)}static#i(e){return/^[A-Za-z]:/.test(e)}static#r(e){return/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e)}static isRelativeURL(e){return!this.#r(e)||this.#i(e)}get displayName(){return this.#e?this.#e:this.isDataURL()?this.dataURLDisplayName():this.isBlobURL()?this.url:this.isAboutBlank()?this.url:(this.#e=this.lastPathComponent,this.#e||(this.#e=(this.host||"")+"/"),this.#e==="/"&&(this.#e=this.url),this.#e)}dataURLDisplayName(){return this.#t?this.#t:this.isDataURL()?(this.#t=K.trimEndWithMaxLength(this.url,20),this.#t):""}isAboutBlank(){return this.url==="about:blank"}isDataURL(){return this.scheme==="data"}extractDataUrlMimeType(){let e=/^data:((?<type>\w+)\/(?<subtype>\w+))?(;base64)?,/,r=this.url.match(e);return{type:r?.groups?.type,subtype:r?.groups?.subtype}}isBlobURL(){return this.url.startsWith("blob:")}lastPathComponentWithFragment(){return this.lastPathComponent+(this.fragment?"#"+this.fragment:"")}domain(){return this.isDataURL()?"data:":this.host+(this.port?":"+this.port:"")}securityOrigin(){if(this.isDataURL())return"data:";let e=this.isBlobURL()?this.blobInnerScheme:this.scheme,r=this.domain();return!e&&!r?"":e+"://"+r}urlWithoutScheme(){return this.scheme&&this.url.startsWith(this.scheme+"://")?this.url.substring(this.scheme.length+3):this.url}static urlRegexInstance=null};var ie={fetchAndXHR:"`Fetch` and `XHR`",javascript:"JavaScript",js:"JS",css:"CSS",img:"Img",media:"Media",font:"Font",doc:"Doc",socketShort:"Socket",webassembly:"WebAssembly",wasm:"Wasm",manifest:"Manifest",other:"Other",document:"Document",stylesheet:"Stylesheet",image:"Image",script:"Script",texttrack:"TextTrack",fetch:"Fetch",eventsource:"EventSource",websocket:"WebSocket",webtransport:"WebTransport",directsocket:"DirectSocket",signedexchange:"SignedExchange",ping:"Ping",cspviolationreport:"CSPViolationReport",preflight:"Preflight",fedcm:"FedCM"},PP=Et.registerUIStrings("core/common/ResourceType.ts",ie),ue=Et.getLazilyComputedLocalizedString.bind(void 0,PP),Ie=class{#e;#t;#i;#r;constructor(e,r,i,n){this.#e=e,this.#t=r,this.#i=i,this.#r=n}static fromMimeType(e){return e?e.startsWith("text/html")?me.Document:e.startsWith("text/css")?me.Stylesheet:e.startsWith("image/")?me.Image:e.startsWith("text/")?me.Script:e.includes("font")?me.Font:e.includes("script")?me.Script:e.includes("octet")?me.Other:e.includes("application")?me.Script:me.Other:me.Other}static fromMimeTypeOverride(e){return e==="application/manifest+json"?me.Manifest:e==="application/wasm"?me.Wasm:null}static fromURL(e){return CP.get(Wn.extractExtension(e))||null}static fromName(e){for(let r of Object.values(me))if(r.name()===e)return r;return null}static mimeFromURL(e){if(e.startsWith("snippet://")||e.startsWith("debugger://"))return"text/javascript";let r=Wn.extractName(e);if(n1.has(r))return n1.get(r);let i=Wn.extractExtension(e).toLowerCase();return i==="html"&&r.endsWith(".component.html")&&(i="component.html"),s1.get(i)}static mimeFromExtension(e){return s1.get(e)}static simplifyContentType(e){return new RegExp("^application(.*json$|/json+.*)").test(e)?"application/json":e}static isJavaScriptMimeType(e){return e==="application/javascript"||e==="text/javascript"}static mediaTypeForMetrics(e,r,i,n,s){return e!=="text/javascript"?e:r?"text/javascript+sourcemapped":i?"text/javascript+minified":n?"text/javascript+snippet":s?"text/javascript+eval":"text/javascript+plain"}name(){return this.#e}title(){return this.#t()}category(){return this.#i}isTextType(){return this.#r}isScript(){return this.#e==="script"||this.#e==="sm-script"}hasScripts(){return this.isScript()||this.isDocument()}isStyleSheet(){return this.#e==="stylesheet"||this.#e==="sm-stylesheet"}hasStyleSheets(){return this.isStyleSheet()||this.isDocument()}isDocument(){return this.#e==="document"}isDocumentOrScriptOrStyleSheet(){return this.isDocument()||this.isScript()||this.isStyleSheet()}isFont(){return this.#e==="font"}isImage(){return this.#e==="image"}isFromSourceMap(){return this.#e.startsWith("sm-")}toString(){return this.#e}canonicalMimeType(){return this.isDocument()?"text/html":this.isScript()?"text/javascript":this.isStyleSheet()?"text/css":""}},Gt=class{name;title;shortTitle;constructor(e,r,i){this.name=e,this.title=r,this.shortTitle=i}},Ue={XHR:new Gt("Fetch and XHR",ue(ie.fetchAndXHR),Et.lockedLazyString("Fetch/XHR")),Document:new Gt(ie.document,ue(ie.document),ue(ie.doc)),Stylesheet:new Gt(ie.css,ue(ie.css),ue(ie.css)),Script:new Gt(ie.javascript,ue(ie.javascript),ue(ie.js)),Font:new Gt(ie.font,ue(ie.font),ue(ie.font)),Image:new Gt(ie.image,ue(ie.image),ue(ie.img)),Media:new Gt(ie.media,ue(ie.media),ue(ie.media)),Manifest:new Gt(ie.manifest,ue(ie.manifest),ue(ie.manifest)),Socket:new Gt("Socket",Et.lockedLazyString("WebSocket | WebTransport | DirectSocket"),ue(ie.socketShort)),Wasm:new Gt(ie.webassembly,ue(ie.webassembly),ue(ie.wasm)),Other:new Gt(ie.other,ue(ie.other),ue(ie.other))},me={Document:new Ie("document",ue(ie.document),Ue.Document,!0),Stylesheet:new Ie("stylesheet",ue(ie.stylesheet),Ue.Stylesheet,!0),Image:new Ie("image",ue(ie.image),Ue.Image,!1),Media:new Ie("media",ue(ie.media),Ue.Media,!1),Font:new Ie("font",ue(ie.font),Ue.Font,!1),Script:new Ie("script",ue(ie.script),Ue.Script,!0),TextTrack:new Ie("texttrack",ue(ie.texttrack),Ue.Other,!0),XHR:new Ie("xhr",Et.lockedLazyString("XHR"),Ue.XHR,!0),Fetch:new Ie("fetch",ue(ie.fetch),Ue.XHR,!0),Prefetch:new Ie("prefetch",Et.lockedLazyString("Prefetch"),Ue.Document,!0),EventSource:new Ie("eventsource",ue(ie.eventsource),Ue.XHR,!0),WebSocket:new Ie("websocket",ue(ie.websocket),Ue.Socket,!1),WebTransport:new Ie("webtransport",ue(ie.webtransport),Ue.Socket,!1),DirectSocket:new Ie("directsocket",ue(ie.directsocket),Ue.Socket,!1),Wasm:new Ie("wasm",ue(ie.wasm),Ue.Wasm,!1),Manifest:new Ie("manifest",ue(ie.manifest),Ue.Manifest,!0),SignedExchange:new Ie("signed-exchange",ue(ie.signedexchange),Ue.Other,!1),Ping:new Ie("ping",ue(ie.ping),Ue.Other,!1),CSPViolationReport:new Ie("csp-violation-report",ue(ie.cspviolationreport),Ue.Other,!1),Other:new Ie("other",ue(ie.other),Ue.Other,!1),Preflight:new Ie("preflight",ue(ie.preflight),Ue.Other,!0),SourceMapScript:new Ie("sm-script",ue(ie.script),Ue.Script,!0),SourceMapStyleSheet:new Ie("sm-stylesheet",ue(ie.stylesheet),Ue.Stylesheet,!0),FedCM:new Ie("fedcm",ue(ie.fedcm),Ue.Other,!1)},n1=new Map([["Cakefile","text/x-coffeescript"]]),CP=new Map([["js",me.Script],["mjs",me.Script],["css",me.Stylesheet],["xsl",me.Stylesheet],["avif",me.Image],["bmp",me.Image],["gif",me.Image],["ico",me.Image],["jpeg",me.Image],["jpg",me.Image],["jxl",me.Image],["png",me.Image],["svg",me.Image],["tif",me.Image],["tiff",me.Image],["vue",me.Document],["webmanifest",me.Manifest],["webp",me.Media],["otf",me.Font],["ttc",me.Font],["ttf",me.Font],["woff",me.Font],["woff2",me.Font],["wasm",me.Wasm]]),s1=new Map([["js","text/javascript"],["mjs","text/javascript"],["css","text/css"],["html","text/html"],["htm","text/html"],["xml","application/xml"],["xsl","application/xml"],["wasm","application/wasm"],["webmanifest","application/manifest+json"],["asp","application/x-aspx"],["aspx","application/x-aspx"],["jsp","application/x-jsp"],["c","text/x-c++src"],["cc","text/x-c++src"],["cpp","text/x-c++src"],["h","text/x-c++src"],["m","text/x-c++src"],["mm","text/x-c++src"],["coffee","text/x-coffeescript"],["dart","application/vnd.dart"],["ts","text/typescript"],["tsx","text/typescript-jsx"],["json","application/json"],["gyp","application/json"],["gypi","application/json"],["map","application/json"],["cs","text/x-csharp"],["go","text/x-go"],["java","text/x-java"],["kt","text/x-kotlin"],["scala","text/x-scala"],["less","text/x-less"],["php","application/x-httpd-php"],["phtml","application/x-httpd-php"],["py","text/x-python"],["sh","text/x-sh"],["gss","text/x-gss"],["sass","text/x-sass"],["scss","text/x-scss"],["vtt","text/vtt"],["ls","text/x-livescript"],["md","text/markdown"],["cljs","text/x-clojure"],["cljc","text/x-clojure"],["cljx","text/x-clojure"],["styl","text/x-styl"],["jsx","text/jsx"],["avif","image/avif"],["bmp","image/bmp"],["gif","image/gif"],["ico","image/ico"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["jxl","image/jxl"],["png","image/png"],["svg","image/svg+xml"],["tif","image/tif"],["tiff","image/tiff"],["webp","image/webp"],["otf","font/otf"],["ttc","font/collection"],["ttf","font/ttf"],["woff","font/woff"],["woff2","font/woff2"],["component.html","text/x.angular"],["svelte","text/x.svelte"],["vue","text/x.vue"]]);var $P={elements:"Elements",ai:"AI",appearance:"Appearance",sources:"Sources",network:"Network",performance:"Performance",console:"Console",persistence:"Persistence",debugger:"Debugger",global:"Global",rendering:"Rendering",grid:"Grid",mobile:"Mobile",memory:"Memory",extension:"Extension",adorner:"Adorner",account:"Account"},LP=Et.registerUIStrings("core/common/SettingRegistration.ts",$P),oQ=Et.getLocalizedString.bind(void 0,LP);var Rf=function(t,e,r,i,n=!0){return t==null||n&&t.length>1048576?null:(t=r?t:encodeURIComponent(t),"data:"+e+(i?";charset="+i:"")+(r?";base64":"")+","+t)};var Ol={};Ke(Ol,{TextCursor:()=>io});var io=class{#e;#t=0;#i=0;#r=0;constructor(e){this.#e=e}advance(e){for(this.#t=e;this.#i<this.#e.length&&this.#e[this.#i]<this.#t;)++this.#i;this.#r=this.#i?this.#t-this.#e[this.#i-1]-1:this.#t}offset(){return this.#t}resetTo(e){this.#t=e,this.#i=Yt.lowerBound(this.#e,e,Yt.DEFAULT_COMPARATOR),this.#r=this.#i?this.#t-this.#e[this.#i-1]-1:this.#t}lineNumber(){return this.#i}columnNumber(){return this.#r}};var a1=2**31-1,bl=class t{constructor(e,r,i,n){this.startLine=e;this.startColumn=r;this.endLine=i;this.endColumn=n}startLine;startColumn;endLine;endColumn;static createFromLocation(e,r){return new t(e,r,e,r)}static createUnboundedFromLocation(e,r){return new t(e,r,a1,a1)}static fromObject(e){return new t(e.startLine,e.startColumn,e.endLine,e.endColumn)}static comparator(e,r){return e.compareTo(r)}static fromEdit(e,r){let i=e.startLine,n=e.startColumn+r.length,s=K.findLineEndingIndexes(r);if(s.length>1){i=e.startLine+s.length-1;let o=s.length;n=s[o-1]-s[o-2]-1}return new t(e.startLine,e.startColumn,i,n)}isEmpty(){return this.startLine===this.endLine&&this.startColumn===this.endColumn}immediatelyPrecedes(e){return e?this.endLine===e.startLine&&this.endColumn===e.startColumn:!1}immediatelyFollows(e){return e?e.immediatelyPrecedes(this):!1}follows(e){return e.endLine===this.startLine&&e.endColumn<=this.startColumn||e.endLine<this.startLine}get linesCount(){return this.endLine-this.startLine}collapseToEnd(){return new t(this.endLine,this.endColumn,this.endLine,this.endColumn)}collapseToStart(){return new t(this.startLine,this.startColumn,this.startLine,this.startColumn)}normalize(){return this.startLine>this.endLine||this.startLine===this.endLine&&this.startColumn>this.endColumn?new t(this.endLine,this.endColumn,this.startLine,this.startColumn):this.clone()}clone(){return new t(this.startLine,this.startColumn,this.endLine,this.endColumn)}serializeToObject(){return{startLine:this.startLine,startColumn:this.startColumn,endLine:this.endLine,endColumn:this.endColumn}}compareTo(e){return this.startLine>e.startLine?1:this.startLine<e.startLine?-1:this.startColumn>e.startColumn?1:this.startColumn<e.startColumn?-1:0}compareToPosition(e,r){return e<this.startLine||e===this.startLine&&r<this.startColumn?-1:e>this.endLine||e===this.endLine&&r>this.endColumn?1:0}equal(e){return this.startLine===e.startLine&&this.endLine===e.endLine&&this.startColumn===e.startColumn&&this.endColumn===e.endColumn}relativeTo(e,r){let i=this.clone();return this.startLine===e&&(i.startColumn-=r),this.endLine===e&&(i.endColumn-=r),i.startLine-=e,i.endLine-=e,i}relativeFrom(e,r){let i=this.clone();return this.startLine===0&&(i.startColumn+=r),this.endLine===0&&(i.endColumn+=r),i.startLine+=e,i.endLine+=e,i}rebaseAfterTextEdit(e,r){console.assert(e.startLine===r.startLine),console.assert(e.startColumn===r.startColumn);let i=this.clone();if(!this.follows(e))return i;let n=r.endLine-e.endLine,s=r.endColumn-e.endColumn;return i.startLine+=n,i.endLine+=n,i.startLine===r.endLine&&(i.startColumn+=s),i.endLine===r.endLine&&(i.endColumn+=s),i}toString(){return JSON.stringify(this)}containsLocation(e,r){return this.startLine===this.endLine?this.startLine===e&&this.startColumn<=r&&r<this.endColumn:this.startLine===e?this.startColumn<=r:this.endLine===e?r<this.endColumn:this.startLine<e&&e<this.endLine}get start(){return{lineNumber:this.startLine,columnNumber:this.startColumn}}get end(){return{lineNumber:this.endLine,columnNumber:this.endColumn}}intersection(e){let{startLine:r,startColumn:i}=this;r<e.startLine?(r=e.startLine,i=e.startColumn):r===e.startLine&&(i=Math.max(i,e.startColumn));let{endLine:n,endColumn:s}=this;return n>e.endLine?(n=e.endLine,s=e.endColumn):n===e.endLine&&(s=Math.min(s,e.endColumn)),r>n||r===n&&i>=s?new t(0,0,0,0):new t(r,i,n,s)}},yl=class{constructor(e,r){this.offset=e;this.length=r}offset;length;cssValue(){return`${this.offset},${this.length}`}};var Sl=class{#e;#t;constructor(e){this.#e=e}lineEndings(){return this.#t||(this.#t=K.findLineEndingIndexes(this.#e)),this.#t}value(){return this.#e}lineCount(){return this.lineEndings().length}offsetFromPosition(e,r){return(e?this.lineEndings()[e-1]+1:0)+r}positionFromOffset(e){let r=this.lineEndings(),i=Yt.lowerBound(r,e,Yt.DEFAULT_COMPARATOR);return{lineNumber:i,columnNumber:e-(i&&r[i-1]+1)}}lineAt(e){let r=this.lineEndings(),i=e>0?r[e-1]+1:0,n=r[e],s=this.#e.substring(i,n);return s.length>0&&s.charAt(s.length-1)==="\r"&&(s=s.substring(0,s.length-1)),s}toSourceRange(e){let r=this.offsetFromPosition(e.startLine,e.startColumn),i=this.offsetFromPosition(e.endLine,e.endColumn);return new yl(r,i-r)}toTextRange(e){let r=new io(this.lineEndings()),i=bl.createFromLocation(0,0);return r.resetTo(e.offset),i.startLine=r.lineNumber(),i.startColumn=r.columnNumber(),r.advance(e.offset+e.length),i.endLine=r.lineNumber(),i.endColumn=r.columnNumber(),i}replaceRange(e,r){let i=this.toSourceRange(e);return this.#e.substring(0,i.offset)+r+this.#e.substring(i.offset+i.length)}extract(e){let r=this.toSourceRange(e);return this.#e.substr(r.offset,r.length)}};var UP=new FinalizationRegistry(t=>{URL.revokeObjectURL(t)}),l1=10*1024*1024;function WP(t){if(!t)return"utf-8";try{return new TextDecoder(t),t}catch{return"utf-8"}}var Ri=class t{mimeType;charset;#e;#t;#i;#r;constructor(e,r,i,n){this.charset=WP(n),r?this.#e=e:this.#t=e,this.mimeType=i,this.mimeType||(this.mimeType=r?"application/octet-stream":"text/plain")}static async fromCompressedBase64(e,r,i,n){let s=n?.toLowerCase();if(!s)return new t(e,!0,r,i);let o=e;try{let a=tn.decode(e),l=null;s.includes("gzip")&&Un.isGzip(a.buffer)?l=await Un.decompressToBuffer(a.buffer):s.includes("deflate")&&(l=await Un.decompressDeflateToBuffer(a.buffer)),l&&(o=await tn.encode(l))}catch(a){console.warn("Failed to decompress base64 content data:",a)}return new t(o,!0,r,i)}get base64(){if(this.#e===void 0)throw new Error("Encoding text content as base64 is not supported");return this.#e}get text(){if(this.#t!==void 0)return this.#t;if(!this.isTextContent)throw new Error("Cannot interpret binary data as text");let e=tn.decode(this.#e);return this.#t=new TextDecoder(this.charset).decode(e),this.#t}get isTextContent(){return this.#s||mn.isTextType(this.mimeType)}get isEmpty(){return!this.#e&&!this.#t}get createdFromBase64(){return this.#e!==void 0}get#s(){return this.#e===void 0}get textObj(){return this.#i===void 0&&(this.#i=new Sl(this.text)),this.#i}contentEqualTo(e){return this.#e!==void 0&&e.#e!==void 0?this.#e===e.#e:this.#t!==void 0&&e.#t!==void 0?this.#t===e.#t:this.isTextContent&&e.isTextContent?this.text===e.text:!1}asDataUrl(){if(this.#e!==void 0){let e=this.isTextContent?this.charset:null;return Rf(this.#e,this.mimeType??"",!0,e)}return Rf(this.text,this.mimeType??"",!1,"utf-8")}asBlob(){if(this.#e!==void 0){if(this.#e.length*.75>l1)return null;let r=tn.decode(this.#e);return new Blob([r],{type:this.mimeType})}let e=this.#t??"";return e.length>l1?null:new Blob([e],{type:this.mimeType})}asImagePreviewUrl(){if(this.#r)return this.#r;let e=this.asDataUrl();if(e!==null)return this.#r=e,this.#r;let r=this.asBlob();return r===null?null:(this.#r=URL.createObjectURL(r),UP.register(this,this.#r),this.#r)}asDeferedContent(){if(this.isTextContent)return{content:this.text,isEncoded:!1};if(this.#t!==void 0)return{content:this.#t,isEncoded:!1};if(this.#e!==void 0)return{content:this.#e,isEncoded:!0};throw new Error("Unreachable")}static isError(e){return"error"in e}static textOr(e,r){return t.isError(e)?r:e.text}static contentDataOrEmpty(e){return t.isError(e)?GP:e}static asDeferredContent(e){return t.isError(e)?{error:e.error,content:null,isEncoded:!1}:e.asDeferedContent()}},GP=new Ri("",!1,"text/plain");function If(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var an=If();function g1(t){an=t}var sn={exec:()=>null};function Gn(t){let e=[];return r=>{let i=Math.max(0,Math.min(3,r-1)),n=e[i];return n||(n=t(i),e[i]=n),n}}function Se(t,e=""){let r=typeof t=="string"?t:t.source,i={replace:(n,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(bt.caret,"$1"),r=r.replace(n,o),i},getRegex:()=>new RegExp(r,e)};return i}var qP=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),bt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Gn(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Gn(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Gn(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Gn(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Gn(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Gn(t=>new RegExp(`^ {0,${t}}>`))},HP=/^(?:[ \t]*(?:\n|$))+/,KP=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,JP=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,oo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,eC=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Df=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,O1=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,b1=Se(O1).replace(/bull/g,Df).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),tC=Se(O1).replace(/bull/g,Df).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Mf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rC=/^[^\n]+/,Nf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,iC=Se(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Nf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nC=Se(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Df).getRegex(),Tl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Xf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,sC=Se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Xf).replace("tag",Tl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),y1=Se(Mf).replace("hr",oo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Tl).getRegex(),oC=Se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",y1).getRegex(),Zf={blockquote:oC,code:KP,def:iC,fences:JP,heading:eC,hr:oo,html:sC,lheading:b1,list:nC,newline:HP,paragraph:y1,table:sn,text:rC},h1=Se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",oo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Tl).getRegex(),aC={...Zf,lheading:tC,table:h1,paragraph:Se(Mf).replace("hr",oo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",h1).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Tl).getRegex()},lC={...Zf,html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:sn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Se(Mf).replace("hr",oo).replace("heading",` *#{1,6} *[^
39
+ ]`).replace("lheading",b1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},hC=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,cC=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,S1=/^( {2,}|\\)\n(?!\s*$)/,uC=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Yn=/[\p{P}\p{S}]/u,Pl=/[\s\p{P}\p{S}]/u,Ff=/[^\s\p{P}\p{S}]/u,fC=Se(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Pl).getRegex(),x1=/(?!~)[\p{P}\p{S}]/u,pC=/(?!~)[\s\p{P}\p{S}]/u,dC=/(?:[^\s\p{P}\p{S}]|~)/u,mC=Se(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",qP?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),v1=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,gC=Se(v1,"u").replace(/punct/g,Yn).getRegex(),OC=Se(v1,"u").replace(/punct/g,x1).getRegex(),w1="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",bC=Se(w1,"gu").replace(/notPunctSpace/g,Ff).replace(/punctSpace/g,Pl).replace(/punct/g,Yn).getRegex(),yC=Se(w1,"gu").replace(/notPunctSpace/g,dC).replace(/punctSpace/g,pC).replace(/punct/g,x1).getRegex(),SC=Se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ff).replace(/punctSpace/g,Pl).replace(/punct/g,Yn).getRegex(),xC=Se(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Yn).getRegex(),vC="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",wC=Se(vC,"gu").replace(/notPunctSpace/g,Ff).replace(/punctSpace/g,Pl).replace(/punct/g,Yn).getRegex(),kC=Se(/\\(punct)/,"gu").replace(/punct/g,Yn).getRegex(),TC=Se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),PC=Se(Xf).replace("(?:-->|$)","-->").getRegex(),CC=Se("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",PC).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vl=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,AC=Se(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",vl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),k1=Se(/^!?\[(label)\]\[(ref)\]/).replace("label",vl).replace("ref",Nf).getRegex(),T1=Se(/^!?\[(ref)\](?:\[\])?/).replace("ref",Nf).getRegex(),EC=Se("reflink|nolink(?!\\()","g").replace("reflink",k1).replace("nolink",T1).getRegex(),c1=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,zf={_backpedal:sn,anyPunctuation:kC,autolink:TC,blockSkip:mC,br:S1,code:cC,del:sn,delLDelim:sn,delRDelim:sn,emStrongLDelim:gC,emStrongRDelimAst:bC,emStrongRDelimUnd:SC,escape:hC,link:AC,nolink:T1,punctuation:fC,reflink:k1,reflinkSearch:EC,tag:CC,text:uC,url:sn},QC={...zf,link:Se(/^!?\[(label)\]\((.*?)\)/).replace("label",vl).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vl).getRegex()},$f={...zf,emStrongRDelimAst:yC,emStrongLDelim:OC,delLDelim:xC,delRDelim:wC,url:Se(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",c1).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Se(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",c1).getRegex()},RC={...$f,br:Se(S1).replace("{2,}","*").getRegex(),text:Se($f.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xl={normal:Zf,gfm:aC,pedantic:lC},no={normal:zf,gfm:$f,breaks:RC,pedantic:QC},$C={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},u1=t=>$C[t];function Zr(t,e){if(e){if(bt.escapeTest.test(t))return t.replace(bt.escapeReplace,u1)}else if(bt.escapeTestNoEncode.test(t))return t.replace(bt.escapeReplaceNoEncode,u1);return t}function f1(t){try{t=encodeURI(t).replace(bt.percentDecode,"%")}catch{return null}return t}function p1(t,e){let r=t.replace(bt.findPipe,(s,o,a)=>{let l=!1,h=o;for(;--h>=0&&a[h]==="\\";)l=!l;return l?"|":" |"}),i=r.split(bt.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(bt.slashPipe,"|");return i}function $i(t,e,r){let i=t.length;if(i===0)return"";let n=0;for(;n<i;){let s=t.charAt(i-n-1);if(s===e&&!r)n++;else if(s!==e&&r)n++;else break}return t.slice(0,i-n)}function d1(t){let e=t.split(`
40
+ `),r=e.length-1;for(;r>=0&&bt.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
41
+ `)}function LC(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let i=0;i<t.length;i++)if(t[i]==="\\")i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&(r--,r<0))return i;return r>0?-2:-1}function _C(t,e=0){let r=e,i="";for(let n of t)if(n===" "){let s=4-r%4;i+=" ".repeat(s),r+=s}else i+=n,r++;return i}function m1(t,e,r,i,n){let s=e.href,o=e.title||null,a=t[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:o,text:a,tokens:i.inlineTokens(a)};return i.state.inLink=!1,l}function IC(t,e,r){let i=t.match(r.other.indentCodeCompensation);if(i===null)return e;let n=i[1];return e.split(`
42
+ `).map(s=>{let o=s.match(r.other.beginningSpace);if(o===null)return s;let[a]=o;return a.length>=n.length?s.slice(n.length):s}).join(`
43
+ `)}var wl=class{options;rules;lexer;constructor(t){this.options=t||an}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let r=this.options.pedantic?e[0]:d1(e[0]),i=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:i}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let r=e[0],i=IC(r,e[3]||"",this.rules);return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:i}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){let i=$i(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:$i(e[0],`
44
+ `),depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:$i(e[0],`
45
+ `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let r=$i(e[0],`
46
+ `).split(`
47
+ `),i="",n="",s=[];for(;r.length>0;){let o=!1,a=[],l;for(l=0;l<r.length;l++)if(this.rules.other.blockquoteStart.test(r[l]))a.push(r[l]),o=!0;else if(!o)a.push(r[l]);else break;r=r.slice(l);let h=a.join(`
48
+ `),c=h.replace(this.rules.other.blockquoteSetextReplace,`
49
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
50
+ ${h}`:h,n=n?`${n}
51
+ ${c}`:c;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,s,!0),this.lexer.state.top=u,r.length===0)break;let f=s.at(-1);if(f?.type==="code")break;if(f?.type==="blockquote"){let p=f,d=p.raw+`
52
+ `+r.join(`
53
+ `),y=this.blockquote(d);s[s.length-1]=y,i=i.substring(0,i.length-p.raw.length)+y.raw,n=n.substring(0,n.length-p.text.length)+y.text;break}else if(f?.type==="list"){let p=f,d=p.raw+`
54
+ `+r.join(`
55
+ `),y=this.list(d);s[s.length-1]=y,i=i.substring(0,i.length-f.raw.length)+y.raw,n=n.substring(0,n.length-p.raw.length)+y.raw,r=d.substring(s.at(-1).raw.length).split(`
56
+ `);continue}}return{type:"blockquote",raw:i,tokens:s,text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim(),i=r.length>1,n={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");let s=this.rules.other.listItemRegex(r),o=!1;for(;t;){let l=!1,h="",c="";if(!(e=s.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let u=_C(e[2].split(`
57
+ `,1)[0],e[1].length),f=t.split(`
58
+ `,1)[0],p=!u.trim(),d=0;if(this.options.pedantic?(d=2,c=u.trimStart()):p?d=e[1].length+1:(d=u.search(this.rules.other.nonSpaceChar),d=d>4?1:d,c=u.slice(d),d+=e[1].length),p&&this.rules.other.blankLine.test(f)&&(h+=f+`
59
+ `,t=t.substring(f.length+1),l=!0),!l){let y=this.rules.other.nextBulletRegex(d),b=this.rules.other.hrRegex(d),S=this.rules.other.fencesBeginRegex(d),w=this.rules.other.headingBeginRegex(d),O=this.rules.other.htmlBeginRegex(d),v=this.rules.other.blockquoteBeginRegex(d);for(;t;){let T=t.split(`
60
+ `,1)[0],_;if(f=T,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),_=f):_=f.replace(this.rules.other.tabCharGlobal," "),S.test(f)||w.test(f)||O.test(f)||v.test(f)||y.test(f)||b.test(f))break;if(_.search(this.rules.other.nonSpaceChar)>=d||!f.trim())c+=`
61
+ `+_.slice(d);else{if(p||u.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(u)||w.test(u)||b.test(u))break;c+=`
62
+ `+f}p=!f.trim(),h+=T+`
63
+ `,t=t.substring(T.length+1),u=_.slice(d)}}n.loose||(o?n.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(o=!0)),n.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),n.raw+=h}let a=n.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let l of n.items){this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]);let h=l.tokens[0];if(l.task&&(h?.type==="text"||h?.type==="paragraph")){l.text=l.text.replace(this.rules.other.listReplaceTask,""),h.raw=h.raw.replace(this.rules.other.listReplaceTask,""),h.text=h.text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(l.raw);if(c){let u={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};l.checked=u.checked,n.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=u.raw+l.tokens[0].raw,l.tokens[0].text=u.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(u)):l.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):l.tokens.unshift(u)}}else l.task&&(l.task=!1);if(!n.loose){let c=l.tokens.filter(f=>f.type==="space"),u=c.length>0&&c.some(f=>this.rules.other.anyLine.test(f.raw));n.loose=u}}if(n.loose)for(let l of n.items){l.loose=!0;for(let h of l.tokens)h.type==="text"&&(h.type="paragraph")}return n}}html(t){let e=this.rules.block.html.exec(t);if(e){let r=d1(e[0]);return{type:"html",block:!0,raw:r,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:r}}}def(t){let e=this.rules.block.def.exec(t);if(e){let r=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:r,raw:$i(e[0],`
64
+ `),href:i,title:n}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=p1(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
65
+ `):[],s={type:"table",raw:$i(e[0],`
66
+ `),header:[],align:[],rows:[]};if(r.length===i.length){for(let o of i)this.rules.other.tableAlignRight.test(o)?s.align.push("right"):this.rules.other.tableAlignCenter.test(o)?s.align.push("center"):this.rules.other.tableAlignLeft.test(o)?s.align.push("left"):s.align.push(null);for(let o=0;o<r.length;o++)s.header.push({text:r[o],tokens:this.lexer.inline(r[o]),header:!0,align:s.align[o]});for(let o of n)s.rows.push(p1(o,s.header.length).map((a,l)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:s.align[l]})));return s}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let r=e[1].trim();return{type:"heading",raw:$i(e[0],`
67
+ `),depth:e[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let r=e[1].charAt(e[1].length-1)===`
68
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=$i(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=LC(e[2],"()");if(s===-2)return;if(s>-1){let o=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,o).trim(),e[3]=""}}let i=e[2],n="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(i);s&&(i=s[1],n=s[3])}else n=e[3]?e[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),m1(e,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=e[i.toLowerCase()];if(!n){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return m1(r,n,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||!i[1]&&!i[2]&&!i[3]&&!i[4]||i[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[3])||!r||this.rules.inline.punctuation.exec(r))){let n=[...i[0]].length-1,s,o,a=n,l=0,h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*t.length+n);(i=h.exec(e))!==null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(o=[...s].length,i[3]||i[4]){a+=o;continue}else if((i[5]||i[6])&&n%3&&!((n+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+l);let c=[...i[0]][0].length,u=t.slice(0,n+i.index+c+o);if(Math.min(n,o)%2){let p=u.slice(1,-1);return{type:"em",raw:u,text:p,tokens:this.lexer.inlineTokens(p)}}let f=u.slice(2,-2);return{type:"strong",raw:u,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(r),n=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&n&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,r=""){let i=this.rules.inline.delLDelim.exec(t);if(i&&(!i[1]||!r||this.rules.inline.punctuation.exec(r))){let n=[...i[0]].length-1,s,o,a=n,l=this.rules.inline.delRDelim;for(l.lastIndex=0,e=e.slice(-1*t.length+n);(i=l.exec(e))!==null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s||(o=[...s].length,o!==n))continue;if(i[3]||i[4]){a+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a);let h=[...i[0]][0].length,c=t.slice(0,n+i.index+h+o),u=c.slice(n,-n);return{type:"del",raw:c,text:u,tokens:this.lexer.inlineTokens(u)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let r,i;return e[2]==="@"?(r=e[1],i="mailto:"+r):(r=e[1],i=r),{type:"link",raw:e[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let r,i;if(e[2]==="@")r=e[0],i="mailto:"+r;else{let n;do n=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(n!==e[0]);r=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:r}}}},xr=class Lf{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||an,this.options.tokenizer=this.options.tokenizer||new wl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:bt,block:xl.normal,inline:no.normal};this.options.pedantic?(r.block=xl.pedantic,r.inline=no.pedantic):this.options.gfm&&(r.block=xl.gfm,this.options.breaks?r.inline=no.breaks:r.inline=no.gfm),this.tokenizer.rules=r}static get rules(){return{block:xl,inline:no}}static lex(e,r){return new Lf(r).lex(e)}static lexInline(e,r){return new Lf(r).inlineTokens(e)}lex(e){e=e.replace(bt.carriageReturn,`
69
+ `),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],i=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(bt.tabCharGlobal," ").replace(bt.spaceLine,""));let n=1/0;for(;e;){if(e.length<n)n=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let s;if(this.options.extensions?.block?.some(a=>(s=a.call({lexer:this},e,r))?(e=e.substring(s.raw.length),r.push(s),!0):!1))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);let a=r.at(-1);s.raw.length===1&&a!==void 0?a.raw+=`
70
+ `:r.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
71
+ `)?"":`
72
+ `)+s.raw,a.text+=`
73
+ `+s.text,this.inlineQueue.at(-1).src=a.text):r.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
74
+ `)?"":`
75
+ `)+s.raw,a.text+=`
76
+ `+s.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},r.push(s));continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),r.push(s);continue}let o=e;if(this.options.extensions?.startBlock){let a=1/0,l=e.slice(1),h;this.options.extensions.startBlock.forEach(c=>{h=c.call({lexer:this},l),typeof h=="number"&&h>=0&&(a=Math.min(a,h))}),a<1/0&&a>=0&&(o=e.substring(0,a+1))}if(this.state.top&&(s=this.tokenizer.paragraph(o))){let a=r.at(-1);i&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
77
+ `)?"":`
78
+ `)+s.raw,a.text+=`
79
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(s),i=o.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);let a=r.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
80
+ `)?"":`
81
+ `)+s.raw,a.text+=`
82
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(s);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){this.tokenizer.lexer=this;let i=e,n=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!==null;)h.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!==null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!==null;)s=n[2]?n[2].length:0,i=i.slice(0,n.index+s)+"["+"a".repeat(n[0].length-s-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let o=!1,a="",l=1/0;for(;e;){if(e.length<l)l=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}o||(a=""),o=!1;let h;if(this.options.extensions?.inline?.some(u=>(h=u.call({lexer:this},e,r))?(e=e.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(e)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(e)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(e)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(h.raw.length);let u=r.at(-1);h.type==="text"&&u?.type==="text"?(u.raw+=h.raw,u.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(e,i,a)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(e)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(e)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(e,i,a)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(e)){e=e.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(e))){e=e.substring(h.raw.length),r.push(h);continue}let c=e;if(this.options.extensions?.startInline){let u=1/0,f=e.slice(1),p;this.options.extensions.startInline.forEach(d=>{p=d.call({lexer:this},f),typeof p=="number"&&p>=0&&(u=Math.min(u,p))}),u<1/0&&u>=0&&(c=e.substring(0,u+1))}if(h=this.tokenizer.inlineText(c)){e=e.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(a=h.raw.slice(-1)),o=!0;let u=r.at(-1);u?.type==="text"?(u.raw+=h.raw,u.text+=h.text):r.push(h);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return r}infiniteLoopError(e){let r="Infinite loop on byte: "+e;if(this.options.silent)console.error(r);else throw new Error(r)}},kl=class{options;parser;constructor(t){this.options=t||an}space(t){return""}code({text:t,lang:e,escaped:r}){let i=(e||"").match(bt.notSpaceStart)?.[0],n=t.replace(bt.endingNewline,"")+`
83
+ `;return i?'<pre><code class="language-'+Zr(i)+'">'+(r?n:Zr(n,!0))+`</code></pre>
84
+ `:"<pre><code>"+(r?n:Zr(n,!0))+`</code></pre>
85
+ `}blockquote({tokens:t}){return`<blockquote>
86
+ ${this.parser.parse(t)}</blockquote>
87
+ `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
88
+ `}hr(t){return`<hr>
89
+ `}list(t){let e=t.ordered,r=t.start,i="";for(let o=0;o<t.items.length;o++){let a=t.items[o];i+=this.listitem(a)}let n=e?"ol":"ul",s=e&&r!==1?' start="'+r+'"':"";return"<"+n+s+`>
90
+ `+i+"</"+n+`>
91
+ `}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
92
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
93
+ `}table(t){let e="",r="";for(let n=0;n<t.header.length;n++)r+=this.tablecell(t.header[n]);e+=this.tablerow({text:r});let i="";for(let n=0;n<t.rows.length;n++){let s=t.rows[n];r="";for(let o=0;o<s.length;o++)r+=this.tablecell(s[o]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
94
+ <thead>
95
+ `+e+`</thead>
96
+ `+i+`</table>
97
+ `}tablerow({text:t}){return`<tr>
98
+ ${t}</tr>
99
+ `}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
100
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Zr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){let i=this.parser.parseInline(r),n=f1(t);if(n===null)return i;t=n;let s='<a href="'+t+'"';return e&&(s+=' title="'+Zr(e)+'"'),s+=">"+i+"</a>",s}image({href:t,title:e,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let n=f1(t);if(n===null)return Zr(r);t=n;let s=`<img src="${t}" alt="${Zr(r)}"`;return e&&(s+=` title="${Zr(e)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Zr(t.text)}},Vf=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},vr=class _f{options;renderer;textRenderer;constructor(e){this.options=e||an,this.options.renderer=this.options.renderer||new kl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Vf}static parse(e,r){return new _f(r).parse(e)}static parseInline(e,r){return new _f(r).parseInline(e)}parse(e){this.renderer.parser=this;let r="";for(let i=0;i<e.length;i++){let n=e[i];if(this.options.extensions?.renderers?.[n.type]){let o=n,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){r+=a||"";continue}}let s=n;switch(s.type){case"space":{r+=this.renderer.space(s);break}case"hr":{r+=this.renderer.hr(s);break}case"heading":{r+=this.renderer.heading(s);break}case"code":{r+=this.renderer.code(s);break}case"table":{r+=this.renderer.table(s);break}case"blockquote":{r+=this.renderer.blockquote(s);break}case"list":{r+=this.renderer.list(s);break}case"checkbox":{r+=this.renderer.checkbox(s);break}case"html":{r+=this.renderer.html(s);break}case"def":{r+=this.renderer.def(s);break}case"paragraph":{r+=this.renderer.paragraph(s);break}case"text":{r+=this.renderer.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(e,r=this.renderer){this.renderer.parser=this;let i="";for(let n=0;n<e.length;n++){let s=e[n];if(this.options.extensions?.renderers?.[s.type]){let a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=a||"";continue}}let o=s;switch(o.type){case"escape":{i+=r.text(o);break}case"html":{i+=r.html(o);break}case"link":{i+=r.link(o);break}case"image":{i+=r.image(o);break}case"checkbox":{i+=r.checkbox(o);break}case"strong":{i+=r.strong(o);break}case"em":{i+=r.em(o);break}case"codespan":{i+=r.codespan(o);break}case"br":{i+=r.br(o);break}case"del":{i+=r.del(o);break}case"text":{i+=r.text(o);break}default:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}},so=class{options;block;constructor(t){this.options=t||an}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?xr.lex:xr.lexInline}provideParser(t=this.block){return t?vr.parse:vr.parseInline}},DC=class{defaults=If();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=vr;Renderer=kl;TextRenderer=Vf;Lexer=xr;Tokenizer=wl;Hooks=so;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(let i of t)switch(r=r.concat(e.call(this,i)),i.type){case"table":{let n=i;for(let s of n.header)r=r.concat(this.walkTokens(s.tokens,e));for(let s of n.rows)for(let o of s)r=r.concat(this.walkTokens(o.tokens,e));break}case"list":{let n=i;r=r.concat(this.walkTokens(n.items,e));break}default:{let n=i;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(s=>{let o=n[s].flat(1/0);r=r.concat(this.walkTokens(o,e))}):n.tokens&&(r=r.concat(this.walkTokens(n.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let s=e.renderers[n.name];s?e.renderers[n.name]=function(...o){let a=n.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=e[n.level];s?s.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),i.extensions=e),r.renderer){let n=this.defaults.renderer||new kl(this.defaults);for(let s in r.renderer){if(!(s in n))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,a=r.renderer[o],l=n[o];n[o]=(...h)=>{let c=a.apply(n,h);return c===!1&&(c=l.apply(n,h)),c||""}}i.renderer=n}if(r.tokenizer){let n=this.defaults.tokenizer||new wl(this.defaults);for(let s in r.tokenizer){if(!(s in n))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,a=r.tokenizer[o],l=n[o];n[o]=(...h)=>{let c=a.apply(n,h);return c===!1&&(c=l.apply(n,h)),c}}i.tokenizer=n}if(r.hooks){let n=this.defaults.hooks||new so;for(let s in r.hooks){if(!(s in n))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,a=r.hooks[o],l=n[o];so.passThroughHooks.has(s)?n[o]=h=>{if(this.defaults.async&&so.passThroughHooksRespectAsync.has(s))return(async()=>{let u=await a.call(n,h);return l.call(n,u)})();let c=a.call(n,h);return l.call(n,c)}:n[o]=(...h)=>{if(this.defaults.async)return(async()=>{let u=await a.apply(n,h);return u===!1&&(u=await l.apply(n,h)),u})();let c=a.apply(n,h);return c===!1&&(c=l.apply(n,h)),c}}i.hooks=n}if(r.walkTokens){let n=this.defaults.walkTokens,s=r.walkTokens;i.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),n&&(a=a.concat(n.call(this,o))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return xr.lex(t,e??this.defaults)}parser(t,e){return vr.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let i={...r},n={...this.defaults,...i},s=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let o=n.hooks?await n.hooks.preprocess(e):e,a=await(n.hooks?await n.hooks.provideLexer(t):t?xr.lex:xr.lexInline)(o,n),l=n.hooks?await n.hooks.processAllTokens(a):a;n.walkTokens&&await Promise.all(this.walkTokens(l,n.walkTokens));let h=await(n.hooks?await n.hooks.provideParser(t):t?vr.parse:vr.parseInline)(l,n);return n.hooks?await n.hooks.postprocess(h):h})().catch(s);try{n.hooks&&(e=n.hooks.preprocess(e));let o=(n.hooks?n.hooks.provideLexer(t):t?xr.lex:xr.lexInline)(e,n);n.hooks&&(o=n.hooks.processAllTokens(o)),n.walkTokens&&this.walkTokens(o,n.walkTokens);let a=(n.hooks?n.hooks.provideParser(t):t?vr.parse:vr.parseInline)(o,n);return n.hooks&&(a=n.hooks.postprocess(a)),a}catch(o){return s(o)}}}onError(t,e){return r=>{if(r.message+=`
101
+ Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+Zr(r.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(r);throw r}}},on=new DC;function Ae(t,e){return on.parse(t,e)}Ae.options=Ae.setOptions=function(t){return on.setOptions(t),Ae.defaults=on.defaults,g1(Ae.defaults),Ae};Ae.getDefaults=If;Ae.defaults=an;Ae.use=function(...t){return on.use(...t),Ae.defaults=on.defaults,g1(Ae.defaults),Ae};Ae.walkTokens=function(t,e){return on.walkTokens(t,e)};Ae.parseInline=on.parseInline;Ae.Parser=vr;Ae.parser=vr.parse;Ae.Renderer=kl;Ae.TextRenderer=Vf;Ae.Lexer=xr;Ae.lexer=xr.lex;Ae.Tokenizer=wl;Ae.Hooks=so;Ae.parse=Ae;var AQ=Ae.options,EQ=Ae.setOptions,QQ=Ae.use,RQ=Ae.walkTokens,$Q=Ae.parseInline;var LQ=vr.parse,_Q=xr.lex;var C1=class t extends hl.ObjectWrapper{mimeType;#e;#t;#i=[];#r;constructor(e,r,i){super(),this.mimeType=e,this.#e=r,this.#t=!!(i&&!i.createdFromBase64),this.#r=i}static create(e,r){return new t(e,r)}static from(e){return new t(e.mimeType,e.charset,e)}get isTextContent(){return this.#r?this.#r.isTextContent:mn.isTextType(this.mimeType)}addChunk(e){if(this.#t)throw new Error("Cannot add base64 data to a text-only ContentData.");this.#i.push(e),this.dispatchEventToListeners("ChunkAdded",{content:this,chunk:e})}content(){if(this.#r&&this.#i.length===0)return this.#r;let e=this.#r?.base64??"",r=this.#i.reduce((i,n)=>K.concatBase64(i,n),e);return this.#r=new Ri(r,!0,this.mimeType,this.#e),this.#i=[],this.#r}};var ao=class{#e;#t;#i;#r;#s=0;constructor(e,r){this.#r=r;let i=K.findLineEndingIndexes(e);this.#e=new Ol.TextCursor(i),this.#t=0,this.#i=0}static punctuator(e,r){return e.type!==g.num&&e.type!==g.regexp&&e.type!==g.string&&e.type!==g.name&&!e.type.keyword&&(!r||e.type.label.length===1&&r.indexOf(e.type.label)!==-1)}static keyword(e,r){return!!e.type.keyword&&e.type!==g._true&&e.type!==g._false&&e.type!==g._null&&(!r||e.type.keyword===r)}static identifier(e,r){return e.type===g.name&&(!r||e.value===r)}static arrowIdentifier(e,r){return e.type===g.arrow&&(!r||e.type.label===r)}static lineComment(e){return e.type==="Line"}static blockComment(e){return e.type==="Block"}nextToken(){let e=this.#r[this.#s++];return!e||e.type===g.eof?null:(this.#e.advance(e.start),this.#t=this.#e.lineNumber(),this.#e.advance(e.end),this.#i=this.#e.lineNumber(),e)}peekToken(){let e=this.#r[this.#s];return!e||e.type===g.eof?null:e}tokenLineStart(){return this.#t}tokenLineEnd(){return this.#i}},ln="latest";var Cl=class{#e;#t;constructor(e,r){this.#e=e,this.#t=r}walk(e){this.#i(e,null)}#i(e,r){if(!e)return;e.parent=r,this.#e.call(null,e);let i=BC[e.type];if(!i){console.error("Walk order not defined for "+e.type);return}if(e.type==="TemplateLiteral"){let n=e,s=n.expressions.length;for(let o=0;o<s;++o)this.#i(n.quasis[o],n),this.#i(n.expressions[o],n);this.#i(n.quasis[s],n)}else for(let n=0;n<i.length;++n){let s=e[i[n]];Array.isArray(s)?this.#r(s,e):this.#i(s,e)}this.#t.call(null,e)}#r(e,r){for(let i=0;i<e.length;++i)this.#i(e[i],r)}},BC={AwaitExpression:["argument"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ChainExpression:["expression"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],ImportDeclaration:["specifiers","source","attributes"],ImportAttribute:["key","value"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source"],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["specifiers","source","declaration"],ExportSpecifier:["exported","local"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],ParenthesizedExpression:["expression"],PrivateIdentifier:[],PropertyDefinition:["key","value"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};var qn=class{#e;#t;#i;#r;#s;#o;constructor(e){this.#e=e}format(e,r,i,n){this.#r=i,this.#o=n,this.#i=e.substring(this.#r,this.#o),this.#s=0;let s=[],o=Xi(this.#i,{ranges:!1,preserveParens:!0,allowAwaitOutsideFunction:!0,allowImportExportEverywhere:!0,ecmaVersion:ln,allowHashBang:!0,onToken:s,onComment:s});this.#t=new ao(this.#i,s),new Cl(this.#n.bind(this),this.#l.bind(this)).walk(o)}#a(e,r){for(let i=0;i<r.length;++i)r[i]==="s"?this.#e.addSoftSpace():r[i]==="S"?this.#e.addHardSpace():r[i]==="n"?this.#e.addNewLine():r[i]===">"?this.#e.increaseNestingLevel():r[i]==="<"?this.#e.decreaseNestingLevel():r[i]==="t"&&(this.#t.tokenLineStart()-this.#s>1&&this.#e.addNewLine(!0),this.#s=this.#t.tokenLineEnd(),e&&this.#e.addToken(this.#i.substring(e.start,e.end),this.#r+e.start))}#n(e){if(!e.parent)return;e.type==="TemplateLiteral"&&this.#e.setEnforceSpaceBetweenWords(!1);let r;for(;(r=this.#t.peekToken())&&r.start<e.start;){let i=this.#t.nextToken(),n=this.#u(e.parent,i);this.#a(i,n)}e.parent?.type==="TemplateLiteral"&&e.type!=="TemplateElement"&&e.type!=="TemplateLiteral"&&this.#e.setEnforceSpaceBetweenWords(!0)}#l(e){let r;for(;(r=this.#t.peekToken())&&r.start<e.end;){let i=this.#t.nextToken(),n=this.#u(e,i);this.#a(i,n)}this.#a(null,this.#h(e)),e.parent?.type==="TemplateLiteral"&&e.type!=="TemplateElement"&&e.type!=="TemplateLiteral"?this.#e.setEnforceSpaceBetweenWords(!1):e.type==="TemplateLiteral"&&e.parent?.type!=="TemplateLiteral"&&this.#e.setEnforceSpaceBetweenWords(!0)}#c(e){let r=e.parent;if(!r)return!1;if(r.type==="ForStatement"){let i=r;return e===i.init||e===i.test||e===i.update}if(r.type==="ForInStatement"||r.type==="ForOfStatement"){let i=r;return e===i.left||e===i.right}return!1}#u(e,r){let i=ao;if(i.lineComment(r)||i.blockComment(r))return"tn";let n=r,s=e.type;if(s==="ContinueStatement"||s==="BreakStatement")return e.label&&i.keyword(n)?"ts":"t";if(s==="Identifier"||s==="PrivateIdentifier")return"t";if(s==="ReturnStatement"||s==="AwaitExpression")return i.punctuator(n,";")?"t":e.argument?"ts":"t";if(s==="Property"||s==="ImportAttribute")return i.punctuator(n,":")?"ts":"t";if(s==="ArrayExpression")return i.punctuator(n,",")?"ts":"t";if(s==="LabeledStatement"){if(i.punctuator(n,":"))return"ts"}else if(s==="LogicalExpression"||s==="AssignmentExpression"||s==="BinaryExpression"){if(i.punctuator(n)&&!i.punctuator(n,"()"))return"sts"}else if(s==="ConditionalExpression"){if(i.punctuator(n,"?:"))return"sts"}else if(s==="VariableDeclarator"){if(i.punctuator(n,"="))return"sts"}else if(s==="ObjectPattern"){if(e.parent?.type==="VariableDeclarator"&&i.punctuator(n,"{"))return"st";if(i.punctuator(n,","))return"ts"}else if(s==="FunctionDeclaration"){if(i.punctuator(n,",)"))return"ts"}else if(s==="FunctionExpression"){if(i.punctuator(n,",)"))return"ts";if(i.keyword(n,"function"))return e.id?"ts":"t"}else if(s==="ArrowFunctionExpression"){if(i.punctuator(n,",)"))return"ts";if(i.punctuator(n,"("))return"st";if(i.arrowIdentifier(n,"=>"))return"sts"}else if(s==="WithStatement"){if(i.punctuator(n,")"))return e.body?.type==="BlockStatement"?"ts":"tn>"}else if(s==="SwitchStatement"){if(i.punctuator(n,"{"))return"tn>";if(i.punctuator(n,"}"))return"n<tn";if(i.punctuator(n,")"))return"ts"}else if(s==="SwitchCase"){if(i.keyword(n,"case"))return"n<ts";if(i.keyword(n,"default"))return"n<t";if(i.punctuator(n,":"))return"tn>"}else if(s==="VariableDeclaration"){if(i.punctuator(n,",")){let o=!0,a=e.declarations;for(let l=0;l<a.length;++l)o=o&&!!a[l].init;return!this.#c(e)&&o?"nSSts":"ts"}}else if(s==="PropertyDefinition"){if(i.punctuator(n,"="))return"sts";if(i.punctuator(n,";"))return"tn"}else if(s==="BlockStatement"){if(i.punctuator(n,"{"))return e.body.length?"tn>":"t";if(i.punctuator(n,"}"))return e.body.length?"n<t":"t"}else if(s==="CatchClause"){if(i.punctuator(n,")"))return"ts"}else if(s==="ObjectExpression"){if(!e.properties.length)return"t";if(i.punctuator(n,"{"))return"tn>";if(i.punctuator(n,"}"))return"n<t";if(i.punctuator(n,","))return"tn"}else if(s==="IfStatement"){if(i.punctuator(n,")"))return e.consequent?.type==="BlockStatement"?"ts":"tn>";if(i.keyword(n,"else")){let o=e.consequent?.type==="BlockStatement"?"st":"n<t",a="n>";return e.alternate&&(e.alternate.type==="BlockStatement"||e.alternate.type==="IfStatement")&&(a="s"),o+a}}else if(s==="CallExpression"){if(i.punctuator(n,","))return"ts"}else{if(s==="SequenceExpression"&&i.punctuator(n,","))return e.parent?.type==="SwitchCase"?"ts":"tn";if(s==="ForStatement"||s==="ForOfStatement"||s==="ForInStatement"){if(i.punctuator(n,";"))return"ts";if(i.keyword(n,"in")||i.identifier(n,"of"))return"sts";if(i.punctuator(n,")"))return e.body?.type==="BlockStatement"?"ts":"tn>"}else if(s==="WhileStatement"){if(i.punctuator(n,")"))return e.body?.type==="BlockStatement"?"ts":"tn>"}else if(s==="DoWhileStatement"){let o=e.body?.type==="BlockStatement";if(i.keyword(n,"do"))return o?"ts":"tn>";if(i.keyword(n,"while"))return o?"sts":"n<ts"}else{if(s==="ClassBody")return i.punctuator(n,"{")?"stn>":i.punctuator(n,"}")?"<ntn":"t";if(s==="YieldExpression")return"t";if(s==="Super")return"t";if(s==="ImportExpression")return"t";if(s==="ExportAllDeclaration")return i.punctuator(n,"*")?"sts":"t";if(s==="ExportNamedDeclaration"||s==="ImportDeclaration")return i.punctuator(n,"{")?"st":i.punctuator(n,",")?"ts":i.punctuator(n,"}")?e.attributes.length>0?"t":e.source?"ts":"t":i.punctuator(n,"*")||i.keyword(n,"with")?"sts":"t";if(s==="MemberExpression")return e.object.type==="Literal"&&typeof e.object.value=="number"?"st":"t"}}return i.keyword(n)&&!i.keyword(n,"this")?"ts":"t"}#h(e){let r=e.type;if(r==="WithStatement"){if(e.body&&e.body.type!=="BlockStatement")return"n<"}else if(r==="VariableDeclaration"){if(!this.#c(e))return"n"}else if(r==="ForStatement"||r==="ForOfStatement"||r==="ForInStatement"){if(e.body&&e.body.type!=="BlockStatement")return"n<"}else if(r==="BlockStatement"){if(e.parent?.type==="IfStatement"){let i=e.parent;if(i.alternate&&i.consequent===e)return""}return e.parent?.type==="FunctionExpression"&&e.parent.parent?.type==="Property"||e.parent?.type==="FunctionExpression"&&e.parent.parent?.type==="VariableDeclarator"||e.parent?.type==="FunctionExpression"&&e.parent.parent?.type==="CallExpression"||e.parent?.type==="DoWhileStatement"?"":e.parent?.type==="TryStatement"&&e.parent.block===e||e.parent?.type==="CatchClause"&&e.parent.parent?.finalizer?"s":"n"}else if(r==="WhileStatement"){if(e.body&&e.body.type!=="BlockStatement")return"n<"}else if(r==="IfStatement"){if(e.alternate){if(e.alternate.type!=="BlockStatement"&&e.alternate.type!=="IfStatement")return"<"}else if(e.consequent&&e.consequent.type!=="BlockStatement")return"<"}else{if(r==="BreakStatement"||r==="ContinueStatement"||r==="ThrowStatement"||r==="ReturnStatement"||r==="ExpressionStatement"||r==="DoWhileStatement")return"n";if(r==="ImportDeclaration"||r==="ExportAllDeclaration"||r==="ExportDefaultDeclaration"||r==="ExportNamedDeclaration")return"n"}return""}};var Hn=class{builder;toOffset;fromOffset;lineEndings;lastLine;text;constructor(e){this.builder=e,this.lastLine=-1}format(e,r,i,n){this.lineEndings=r,this.fromOffset=i,this.toOffset=n,this.lastLine=-1,this.text=e,hi("application/json")(e.substring(this.fromOffset,this.toOffset),this.tokenCallback.bind(this))}tokenCallback(e,r,i){switch(e.charAt(0)){case"{":case"[":this.text[i+1]==="}"||this.text[i+1]==="]"?this.builder.addToken(e,i):(this.builder.addToken(e,i),this.builder.addNewLine(),this.builder.increaseNestingLevel());break;case"}":case"]":this.text[i-1]==="{"||this.text[i-1]==="["?this.builder.addToken(e,i):(this.builder.decreaseNestingLevel(),this.builder.addNewLine(),this.builder.addToken(e,i));break;case":":this.builder.addToken(e,i),this.builder.addSoftSpace();break;case",":this.builder.addToken(e,i),this.builder.addNewLine();break;case"":case" ":case`
102
+ `:break;default:this.builder.addToken(e,i);break}}};var Al=class{#e;#t;#i;#r;#s;#o;#a;constructor(e){this.#e=e,this.#t=new qn(e),this.#i=new Hn(e),this.#r=new Jn(e)}format(e,r){this.#s=e,this.#o=r,this.#a=new jf(e),this.#l(this.#a.document())}#n(e,r){if(!this.#a)return;let i=this.#a.peekToken();for(;i&&i.startOffset<r;){let n=this.#a.nextToken();this.#f(e,n),i=this.#a.peekToken()}}#l(e){if(!e.openTag||!e.closeTag)throw new Error("Element is missing open or close tag");e.parent&&this.#n(e.parent,e.openTag.startOffset),this.#c(e),this.#n(e,e.openTag.endOffset),this.#u(e);for(let r=0;r<e.children.length;++r)this.#l(e.children[r]);this.#n(e,e.closeTag.startOffset),this.#h(e),this.#n(e,e.closeTag.endOffset),this.#p(e)}#c(e){this.#a&&(!e.children.length||e===this.#a.document()||this.#e.addNewLine())}#u(e){this.#a&&(!e.children.length||e===this.#a.document()||(this.#e.increaseNestingLevel(),this.#e.addNewLine()))}#h(e){this.#a&&(!e.children.length||e===this.#a.document()||(this.#e.decreaseNestingLevel(),this.#e.addNewLine()))}#p(e){if(this.#a){if(!e.children.length&&e!==this.#a.document()){let r=this.#a.peekToken();if(r){if(Bf(r))return;let i=this.#a.peekToken(1);if(K.isWhitespace(r.value)&&!/[\r\n]/.test(r.value)&&i&&Bf(i)){this.#a.nextToken(),this.#e.addToken(r.value,r.startOffset);return}}}this.#e.addNewLine()}}#f(e,r){let i=!!(e.openTag&&!e.openTag.selfClosingTag&&e.closeTag&&e.openTag.endOffset<=r.startOffset&&r.startOffset<e.closeTag.startOffset);if(K.isWhitespace(r.value)&&(!i||e.children.length>0||!e.hasContent&&!e.hasComments&&/[\r\n]/.test(r.value)))return;if((et(r.type,"comment")||et(r.type,"meta"))&&(!i||e.children.length>0)){this.#e.addNewLine(),this.#e.addToken(r.value.trim(),r.startOffset),this.#e.addNewLine();return}if(!e.openTag||!e.closeTag)return;if(i&&e.name==="style"){this.#e.addNewLine(),this.#e.increaseNestingLevel(),this.#r.format(this.#s||"",this.#o||[],r.startOffset,r.endOffset),this.#e.decreaseNestingLevel();return}if(i&&e.name==="script"){this.#e.addNewLine(),this.#e.increaseNestingLevel(),WC(e)?this.#t.format(this.#s||"",this.#o||[],r.startOffset,r.endOffset):GC(e)?this.#i.format(this.#s||"",this.#o||[],r.startOffset,r.endOffset):(this.#e.addToken(r.value,r.startOffset),this.#e.addNewLine()),this.#e.decreaseNestingLevel();return}!i&&et(r.type,"attribute")&&this.#e.addSoftSpace();let n=!i&&!et(r.type,"attribute")?this.#e.setEnforceSpaceBetweenWords(!1):!1;this.#e.addToken(r.value,r.startOffset),!i&&!et(r.type,"attribute")&&this.#e.setEnforceSpaceBetweenWords(n)}};function WC(t){if(!t.openTag||!t.openTag.attributes.has("type"))return!0;let e=t.openTag.attributes.get("type");if(!e)return!0;e=e.toLowerCase();let r=/^(["\'])(.*)\1$/.exec(e.trim());return r&&(e=r[2]),["application/ecmascript","application/javascript","application/x-ecmascript","application/x-javascript","module","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript"].includes(e.trim())}function GC(t){if(!t.openTag)return!1;let e=t.openTag.attributes.get("type");if(!e)return!1;e=e.toLowerCase();let r=/^(["\'])(.*)\1$/.exec(e.trim());return r&&(e=r[2]),/^application\/\w+\+json$/.exec(e.trim())&&(e="application/json"),["application/json","importmap","speculationrules"].includes(e.trim())}function et(t,e){return t.has(e)||t.has(`xml-${e}`)}function Bf(t){return!K.isWhitespace(t.value)&&!et(t.type,"tag")&&!et(t.type,"attribute")&&!et(t.type,"bracket")&&!et(t.type,"comment")&&!et(t.type,"meta")}var jf=class{#e="Initial";#t;#i;#r=[];#s=0;#o=new Map;#a="";#n="";#l=!1;#c;#u;constructor(e){this.#t=new Ql("document"),this.#t.openTag=new hn("document",0,0,new Map,!0,!1),this.#t.closeTag=new hn("document",e.length,e.length,new Map,!1,!1),this.#i=[this.#t],this.#h(e)}#h(e){let r=hi("text/html"),i=0,n=null,s=a=>{this.#r.push(a),this.#p(a);let l=this.#i[this.#i.length-1];if(l&&(et(a.type,"comment")||et(a.type,"meta"))&&(l.hasComments=!0),l&&Bf(a)&&(l.hasContent=!0),l&&(l.name==="script"||l.name==="style")&&l.openTag?.endOffset===i)return Kn},o=(a,l,h,c)=>{i=c;let u=l?new Set(l.split(" ")):new Set,f=new El(a,u,h,c);if(n){if(a==="/"&&l==="attribute"&&n.type.has("string"))f.startOffset=n.startOffset,f.value=`${n.value}${a}`,f.type=n.type;else if(a.startsWith("&")&&l==="error"&&n.type.size===0||l===null&&n.type.has("error")){n.endOffset=f.endOffset,n.value+=a,n.type=f.type;return}else if(s(n)===Kn)return Kn;n=null}if(l==="string"||l===null){n=f;return}return s(f)};for(;r(e,o,i),n&&(s(n),n=null),!(i>=e.length);){let a=this.#i[this.#i.length-1];if(!a)break;for(;;){if(i=e.indexOf("</",i),i===-1){i=e.length;break}if(e.slice(i+2,i+2+a.name.length).toLowerCase()===a.name)break;i+=2}if(!a.openTag)break;let l=a.openTag.endOffset,h=i,c=e.substring(l,h);this.#r.push(new El(c,new Set,l,h))}for(;this.#i.length>1;){let a=this.#i[this.#i.length-1];if(!a)break;this.#m(new hn(a.name,e.length,e.length,new Map,!1,!1))}}#p(e){let r=e.value,i=e.type;switch(this.#e){case"Initial":et(i,"bracket")&&(r==="<"||r==="</")&&(this.#f(e),this.#e="Tag");return;case"Tag":et(i,"tag")&&!et(i,"bracket")?this.#n=r.trim().toLowerCase():et(i,"attribute")?(this.#a=r.trim().toLowerCase(),this.#o.set(this.#a,""),this.#e="AttributeName"):et(i,"bracket")&&(r===">"||r==="/>")&&(this.#d(e),this.#e="Initial");return;case"AttributeName":!i.size&&r==="="?this.#e="AttributeValue":et(i,"bracket")&&(r===">"||r==="/>")&&(this.#d(e),this.#e="Initial");return;case"AttributeValue":et(i,"string")?(this.#o.set(this.#a,r),this.#e="Tag"):et(i,"bracket")&&(r===">"||r==="/>")&&(this.#d(e),this.#e="Initial");return}}#f(e){this.#n="",this.#c=e.startOffset,this.#u=null,this.#o=new Map,this.#a="",this.#l=e.value==="<"}#d(e){this.#u=e.endOffset;let r=e.value==="/>"||YC.has(this.#n),i=new hn(this.#n,this.#c||0,this.#u,this.#o,this.#l,r);this.#g(i)}#g(e){if(e.isOpenTag){let n=this.#i[this.#i.length-1];if(n){let s=qC.get(n.name);n!==this.#t&&n.openTag?.selfClosingTag?this.#m(i(n,n.openTag.endOffset)):s?.has(e.name)&&this.#m(i(n,e.startOffset)),this.#O(e)}return}let r=this.#i[this.#i.length-1];for(;this.#i.length>1&&r&&r.name!==e.name;)this.#m(i(r,e.startOffset)),r=this.#i[this.#i.length-1];if(this.#i.length===1)return;this.#m(e);function i(n,s){return new hn(n.name,s,s,new Map,!1,!1)}}#m(e){let r=this.#i.pop();r&&(r.closeTag=e)}#O(e){let r=this.#i[this.#i.length-1],i=new Ql(e.name);r&&(i.parent=r,r.children.push(i)),i.openTag=e,this.#i.push(i)}peekToken(e=0){return this.#s+e<this.#r.length?this.#r[this.#s+e]:null}nextToken(){return this.#r[this.#s++]}document(){return this.#t}},YC=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),qC=new Map([["head",new Set(["body"])],["li",new Set(["li"])],["dt",new Set(["dt","dd"])],["dd",new Set(["dt","dd"])],["p",new Set(["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"])],["rb",new Set(["rb","rt","rtc","rp"])],["rt",new Set(["rb","rt","rtc","rp"])],["rtc",new Set(["rb","rtc","rp"])],["rp",new Set(["rb","rt","rtc","rp"])],["optgroup",new Set(["optgroup"])],["option",new Set(["option","optgroup"])],["colgroup",new Set(["colgroup"])],["thead",new Set(["tbody","tfoot"])],["tbody",new Set(["tbody","tfoot"])],["tfoot",new Set(["tbody"])],["tr",new Set(["tr"])],["td",new Set(["td","th"])],["th",new Set(["td","th"])]]);var El=class{value;type;startOffset;endOffset;constructor(e,r,i,n){this.value=e,this.type=r,this.startOffset=i,this.endOffset=n}},hn=class{name;startOffset;endOffset;attributes;isOpenTag;selfClosingTag;constructor(e,r,i,n,s,o){this.name=e,this.startOffset=r,this.endOffset=i,this.attributes=n,this.isOpenTag=s,this.selfClosingTag=o}},Ql=class{name;children=[];parent=null;openTag=null;closeTag=null;hasComments=!1;hasContent=!1;constructor(e){this.name=e}};var Rl=class{constructor(e){this.builder=e}builder;format(e,r,i,n){let s=e.substring(i,n);this.builder.addToken(s,i)}};var _l={};Ke(_l,{substituteExpression:()=>Uf});var Ll={};Ke(Ll,{Scope:()=>lo,ScopeVariableAnalysis:()=>cn,parseScopes:()=>JC});function JC(t,e="script"){let r=null;try{r=Xi(t,{ecmaVersion:ln,allowAwaitOutsideFunction:!0,checkPrivateFields:!1,ranges:!1,sourceType:e})}catch{return null}return new cn(r,t).run()}var lo=class{variables=new Map;parent;start;end;kind;name;nameMappingLocations;children=[];constructor(e,r,i,n,s,o){this.start=e,this.end=r,this.parent=i,this.kind=n,this.name=s,this.nameMappingLocations=o,i&&i.children.push(this)}export(){let e=[];for(let i of this.variables){let n=[];for(let s of i[1].uses)n.push(s.offset);e.push({name:i[0],kind:i[1].definitionKind,offsets:n})}let r=this.children.map(i=>i.export());return{start:this.start,end:this.end,variables:e,kind:this.kind,name:this.name,nameMappingLocations:this.nameMappingLocations,children:r}}addVariable(e,r,i,n){let s=this.variables.get(e),o={offset:r,scope:this,isShorthandAssignmentProperty:n};if(!s){this.variables.set(e,{definitionKind:i,uses:[o]});return}s.definitionKind===0&&(s.definitionKind=i),s.uses.push(o)}findBinders(e){let r=[],i=this;for(;i!==null;){let n=i.variables.get(e);n&&n.definitionKind!==0&&r.push(n),i=i.parent}return r}#e(e,r){let i=this.variables.get(e);if(!i){this.variables.set(e,r);return}i.uses.push(...r.uses),r.definitionKind===2?(i.definitionKind===0||i.definitionKind===1)&&(i.definitionKind=r.definitionKind):console.assert(r.definitionKind===0)}finalizeToParent(e){if(!this.parent)throw console.error("Internal error: wrong nesting in scope analysis."),new Error("Internal error");let r=[];for(let[i,n]of this.variables.entries())(n.definitionKind===0||n.definitionKind===2&&!e)&&(this.parent.#e(i,n),r.push(i));r.forEach(i=>this.variables.delete(i))}},cn=class{#e;#t=new Set;#i;#r;#s;#o;#a=[];constructor(e,r){this.#r=e,this.#s=r,this.#e=new lo(e.start,e.end,null,3),this.#i=this.#e}run(){return this.#n(this.#r),this.#e}#n(e){if(e!==null)switch(e.type){case"AwaitExpression":this.#n(e.argument);break;case"ArrayExpression":e.elements.forEach(r=>this.#n(r));break;case"ExpressionStatement":this.#n(e.expression);break;case"Program":console.assert(this.#i===this.#e),e.body.forEach(r=>this.#n(r)),console.assert(this.#i===this.#e);break;case"ArrayPattern":e.elements.forEach(r=>this.#n(r));break;case"ArrowFunctionExpression":{this.#l(e.start,e.end,4,void 0,r2(e,this.#s)),e.params.forEach(this.#h.bind(this,2,!1)),e.body.type==="BlockStatement"?e.body.body.forEach(this.#n.bind(this)):this.#n(e.body),this.#c(!0);break}case"AssignmentExpression":case"AssignmentPattern":case"BinaryExpression":case"LogicalExpression":this.#n(e.left),this.#n(e.right);break;case"BlockStatement":this.#l(e.start,e.end,1),e.body.forEach(this.#n.bind(this)),this.#c(!1);break;case"CallExpression":this.#n(e.callee),e.arguments.forEach(this.#n.bind(this));break;case"VariableDeclaration":{let r=e.kind==="var"?2:1;e.declarations.forEach(this.#p.bind(this,r));break}case"CatchClause":this.#l(e.start,e.end,1),this.#h(1,!1,e.param),this.#n(e.body),this.#c(!1);break;case"ClassBody":e.body.forEach(this.#n.bind(this));break;case"ClassDeclaration":this.#h(1,!1,e.id),this.#n(e.superClass??null),this.#n(e.body);break;case"ClassExpression":this.#n(e.superClass??null),this.#n(e.body);break;case"ChainExpression":this.#n(e.expression);break;case"ConditionalExpression":this.#n(e.test),this.#n(e.consequent),this.#n(e.alternate);break;case"DoWhileStatement":this.#n(e.body),this.#n(e.test);break;case"ForInStatement":case"ForOfStatement":this.#l(e.start,e.end,1),this.#n(e.left),this.#n(e.right),this.#n(e.body),this.#c(!1);break;case"ForStatement":this.#l(e.start,e.end,1),this.#n(e.init??null),this.#n(e.test??null),this.#n(e.update??null),this.#n(e.body),this.#c(!1);break;case"FunctionDeclaration":this.#h(2,!1,e.id),this.#l(e.id?.end??e.start,e.end,2,e.id.name,e2(e,this.#s)),this.#u("this",e.start,3),this.#u("arguments",e.start,3),e.params.forEach(this.#h.bind(this,2,!1)),e.body.body.forEach(this.#n.bind(this)),this.#c(!0);break;case"FunctionExpression":this.#l(e.id?.end??e.start,e.end,2,this.#o??e.id?.name,[...this.#a,...t2(e,this.#s)]),this.#a=[],this.#o=void 0,this.#u("this",e.start,3),this.#u("arguments",e.start,3),e.params.forEach(this.#h.bind(this,2,!1)),e.body.body.forEach(this.#n.bind(this)),this.#c(!0);break;case"Identifier":this.#u(e.name,e.start);break;case"IfStatement":this.#n(e.test),this.#n(e.consequent),this.#n(e.alternate??null);break;case"LabeledStatement":this.#n(e.body);break;case"MetaProperty":break;case"MethodDefinition":e.computed?this.#n(e.key):(this.#a=A1(e),this.#o=E1(e)),this.#n(e.value);break;case"NewExpression":this.#n(e.callee),e.arguments.forEach(this.#n.bind(this));break;case"MemberExpression":this.#n(e.object),e.computed&&this.#n(e.property);break;case"ObjectExpression":e.properties.forEach(this.#n.bind(this));break;case"ObjectPattern":e.properties.forEach(this.#n.bind(this));break;case"PrivateIdentifier":break;case"PropertyDefinition":e.computed&&this.#n(e.key),this.#n(e.value??null);break;case"Property":e.shorthand?(console.assert(e.value.type==="Identifier"),console.assert(e.key.type==="Identifier"),console.assert(e.value.name===e.key.name),this.#u(e.value.name,e.value.start,0,!0)):(e.computed?this.#n(e.key):e.value.type==="FunctionExpression"&&(this.#a=A1(e),this.#o=E1(e)),this.#n(e.value));break;case"RestElement":this.#h(1,!1,e.argument);break;case"ReturnStatement":this.#n(e.argument??null);break;case"SequenceExpression":e.expressions.forEach(this.#n.bind(this));break;case"SpreadElement":this.#n(e.argument);break;case"SwitchCase":this.#n(e.test??null),e.consequent.forEach(this.#n.bind(this));break;case"SwitchStatement":this.#n(e.discriminant),e.cases.forEach(this.#n.bind(this));break;case"TaggedTemplateExpression":this.#n(e.tag),this.#n(e.quasi);break;case"TemplateLiteral":e.expressions.forEach(this.#n.bind(this));break;case"ThisExpression":this.#u("this",e.start);break;case"ThrowStatement":this.#n(e.argument);break;case"TryStatement":this.#n(e.block),this.#n(e.handler??null),this.#n(e.finalizer??null);break;case"WithStatement":this.#n(e.object),this.#n(e.body);break;case"YieldExpression":this.#n(e.argument??null);break;case"UnaryExpression":case"UpdateExpression":this.#n(e.argument);break;case"WhileStatement":this.#n(e.test),this.#n(e.body);break;case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"EmptyStatement":case"Literal":case"Super":case"TemplateElement":break;case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":break;case"VariableDeclarator":console.error("Should not encounter VariableDeclarator in general traversal.");break}}getFreeVariables(){let e=new Map;for(let[r,i]of this.#e.variables)i.definitionKind===0&&e.set(r,i.uses);return e}getAllNames(){return this.#t}#l(e,r,i,n,s){this.#i=new lo(e,r,this.#i,i,n,s)}#c(e){if(this.#i.parent===null)throw console.error("Internal error: wrong nesting in scope analysis."),new Error("Internal error");this.#i.finalizeToParent(e),this.#i=this.#i.parent}#u(e,r,i=0,n=!1){this.#t.add(e),this.#i.addVariable(e,r,i,n)}#h(e,r,i){if(i!==null)switch(i.type){case"ArrayPattern":i.elements.forEach(this.#h.bind(this,e,!1));break;case"AssignmentPattern":this.#h(e,r,i.left),this.#n(i.right);break;case"Identifier":this.#u(i.name,i.start,e,r);break;case"MemberExpression":this.#n(i.object),i.computed&&this.#n(i.property);break;case"ObjectPattern":i.properties.forEach(this.#h.bind(this,e,!1));break;case"Property":i.computed&&this.#n(i.key),this.#h(e,i.shorthand,i.value);break;case"RestElement":this.#h(e,!1,i.argument);break}}#p(e,r){this.#h(e,!1,r.id),this.#n(r.init??null)}};function e2(t,e){let r=[t.id.start],i=t.params.length?t.params[0].start:t.body.start,n=$l(e,"(",t.id.end,i);return n>=0&&r.push(n),r}function t2(t,e){let r=[];t.id&&r.push(t.id.start);let i=t.id?t.id.end:t.start,n=t.params.length?t.params[0].start:t.body.start,s=$l(e,"(",i,n);return s>=0&&r.push(s),r}function A1(t){return t.key.type==="Identifier"||t.key.type==="PrivateIdentifier"?[t.key.start]:[]}function E1(t){if(t.key.type==="Identifier")return t.key.name;if(t.key.type==="PrivateIdentifier")return"#"+t.key.name}function r2(t,e){let r=[],i=t.async?t.start+5:t.start,n=t.params.length?t.params[0].start:t.body.start,s=$l(e,"(",i,n);s>=0&&r.push(s);let o=t.params.length?t.params[t.params.length-1].end:t.start,a=$l(e,"=",o,t.body.start);return a>=0&&e[a+1]===">"&&r.push(a),r}function $l(t,e,r,i){for(let n=r;n<i;++n)if(t[n]===e)return n;return-1}function Uf(t,e){let r=n2(t,e);return s2(t,r)}function i2(t){let e={ecmaVersion:ln,allowAwaitOutsideFunction:!0,allowImportExportEverywhere:!0,checkPrivateFields:!1,ranges:!1},r=Xi(`(${t})`,e),i=kd.parseExpressionAt(t,0,e);if(r.body.length!==1||r.body[0].type!=="ExpressionStatement")throw new SyntaxError(`Invalid binding expression '${t}'`);let n=r.body[0].expression;if(i.start!==n.start-1||i.end!==n.end-1)throw new SyntaxError(`Invalid binding expression '${t}'`);let s=new cn(r,`(${t})`);return s.run(),{replacement:n.type!=="Identifier"&&n.type!=="MemberExpression"&&n.type!=="ThisExpression"?`(${t})`:t,freeVariables:[...s.getFreeVariables().keys()],allNames:s.getAllNames()}}function n2(t,e){let r=Xi(t,{ecmaVersion:ln,allowAwaitOutsideFunction:!0,allowImportExportEverywhere:!0,checkPrivateFields:!1,ranges:!1}),i=new cn(r,t);i.run();let n=i.getFreeVariables(),s=[],o=i.getAllNames(),a=new Map,l=new Map,h=new Set;for(let{bindings:f,generatedNames:p}of e){let d=new Set(p);for(let[y,b]of f.entries()){let S;if(b!==null)try{S=i2(b),S.allNames.forEach(w=>o.add(w)),S.freeVariables.forEach(w=>d.add(w))}catch(w){if(!a.has(y)&&n.has(y))throw w}if(!a.has(y)){let w=S?.freeVariables.some(O=>h.has(O));a.set(y,w?null:b),S&&!w&&l.set(y,S)}}d.forEach(y=>h.add(y))}function c(f){let p=1;for(;o.has(`${f}_${p}`);)p++;let d=`${f}_${p}`;return o.add(d),d}let u=new Map;for(let[f,p]of a.entries()){let d=n.get(f);if(!d)continue;if(p===null)throw new Error(`Cannot substitute '${f}' as the underlying variable '${p}' is unavailable`);let y=l.get(f);if(!y)continue;let b=[...y.freeVariables];for(let S of d){s.push({from:f,to:y.replacement,offset:S.offset,isShorthandAssignmentProperty:S.isShorthandAssignmentProperty});for(let w of b)for(let O of S.scope.findBinders(w))u.set(O,w)}}for(let[f,p]of u.entries()){if(f.definitionKind===3)throw new Error(`Cannot avoid capture of '${p}'`);let d=c(p);for(let y of f.uses)s.push({from:p,to:d,offset:y.offset,isShorthandAssignmentProperty:y.isShorthandAssignmentProperty})}return s.sort((f,p)=>f.offset-p.offset),s}function s2(t,e){let r=[],i=0;for(let n of e){r.push(t.slice(i,n.offset));let s=n.to;n.isShorthandAssignmentProperty&&(s=`${n.from}: ${n.to}`),r.push(s),i=n.offset+n.from.length}return r.push(t.slice(i)),r.join("")}function hi(t){let e=CodeMirror.getMode({indentUnit:2},t),r=CodeMirror.startState(e);if(!e||e.name==="null")throw new Error(`Could not find CodeMirror mode for MimeType: ${t}`);if(!e.token)throw new Error(`Could not find CodeMirror mode with token method: ${t}`);return(i,n,s=0)=>{let o=new CodeMirror.StringStream(i);for(s&&(o.pos=s,o.start=s);!o.eol();){let a=e.token(o,r),l=o.current();if(n(l,a,o.start,o.start+l.length)===Kn)return;o.start=o.pos}}}var Kn={};function o2(t,e,r){r=r||" ";let i,n=new Ao(r),s=K.findLineEndingIndexes(e);try{switch(t){case"text/html":{new Al(n).format(e,s);break}case"text/css":{new Jn(n).format(e,s,0,e.length);break}case"application/javascript":case"text/javascript":{new qn(n).format(e,s,0,e.length);break}case"application/json":case"application/manifest+json":{new Hn(n).format(e,s,0,e.length);break}default:new Rl(n).format(e,s,0,e.length)}i={mapping:n.mapping,content:n.content()}}catch(o){console.error(o),i={mapping:{original:[0],formatted:[0]},content:e}}return i}(function(){Ii.Runtime.queryParam("test")&&(console.error=()=>{})})();var a2=t=>{let e=/(?:\r?\n|[\t\f\r ])+$/g;return t.replace(e,"")},Jn=class{#e;#t;#i;#r;#s;#o=-1;#a=0;#n={};constructor(e){this.#e=e}format(e,r,i,n){this.#t=e,this.#s=r,this.#r=i,this.#i=n,this.#n={},this.#o=-1,this.#a=0;let s=hi("text/css"),o=this.#e.setEnforceSpaceBetweenWords(!1);s(e.substring(this.#r,this.#i),this.#c.bind(this)),this.#e.setEnforceSpaceBetweenWords(o)}#l(e){let r=0;for(let i=e+1;i<this.#i;++i){let n=this.#t[i];if(n==="/"&&this.#t[i+1]==="*"){let s=this.#t.indexOf("*/",i+2);if(s===-1)break;i=s+1;continue}if(n==="'"||n==='"'){let s=n;for(++i;i<this.#i;++i)if(this.#t[i]==="\\")++i;else if(this.#t[i]===s)break;continue}if(n==="(")++r;else if(n===")"){if(r===0)return!1;--r}else if(r===0){if(n==="{")return!0;if(n===";"||n==="}")return!1}}return!1}#c(e,r,i){for(i+=this.#r;this.#a<this.#s.length&&this.#s[this.#a]<i;)this.#a++;let n=this.#a;if(n!==this.#o&&(this.#n.eatWhitespace=!0),r&&(/^property/.test(r)||/^variable-2/.test(r))&&!this.#n.inPropertyValue&&(this.#n.seenProperty=!0),this.#o=n,/^(?:\r?\n|[\t\f\r ])+$/.test(e)){this.#n.eatWhitespace||this.#e.addSoftSpace();return}if(this.#n.eatWhitespace=!1,e!==`
103
+ `){if(e!=="}"&&(this.#n.afterClosingBrace&&this.#e.addNewLine(!0),this.#n.afterClosingBrace=!1),e==="}")this.#n.inPropertyValue&&this.#e.addNewLine(),this.#e.decreaseNestingLevel(),this.#n.afterClosingBrace=!0,this.#n.inPropertyValue=!1,this.#n.seenProperty=!1;else if(e===":"&&!this.#n.inPropertyValue&&this.#n.seenProperty)if(this.#l(i))this.#n.seenProperty=!1;else{this.#e.addToken(e,i),this.#e.addSoftSpace(),this.#n.eatWhitespace=!0,this.#n.inPropertyValue=!0,this.#n.seenProperty=!1;return}else if(e==="{"){this.#n.seenProperty=!1,this.#e.addSoftSpace(),this.#e.addToken(e,i),this.#e.addNewLine(),this.#e.increaseNestingLevel();return}this.#e.addToken(a2(e),i),r==="comment"&&!this.#n.inPropertyValue&&!this.#n.seenProperty&&this.#e.addNewLine(),e===";"&&this.#n.inPropertyValue?(this.#n.inPropertyValue=!1,this.#e.addNewLine()):e==="}"&&this.#e.addNewLine()}}};var Dl={};Ke(Dl,{CSSParserStates:()=>ct,parseCSS:()=>Q1});var ct={Initial:"Initial",Selector:"Selector",Style:"Style",PropertyName:"PropertyName",PropertyValue:"PropertyValue",AtRule:"AtRule"};function Q1(t,e){let i=t.split(`
104
+ `),n=[],s=0,o=ct.Initial,a,l,h=new Set,c=[];function u(S){c=c.concat(S.chunk)}function f(S){let w=/^(?:\r?\n|[\t\f\r ])+|(?:\r?\n|[\t\f\r ])+$/g;return S.replace(w,"")}function p(S,w,O,v){let T=w?new Set(w.split(" ")):h;switch(o){case ct.Initial:T.has("qualifier")||T.has("builtin")||T.has("tag")?(a={selectorText:S,lineNumber:y,columnNumber:O,properties:[]},o=ct.Selector):T.has("def")&&(a={atRule:S,lineNumber:y,columnNumber:O},o=ct.AtRule);break;case ct.Selector:S==="{"&&T===h?(a.selectorText=f(a.selectorText),a.styleRange=b(y,v),o=ct.Style):a.selectorText+=S;break;case ct.AtRule:(S===";"||S==="{")&&T===h?(a.atRule=f(a.atRule),n.push(a),o=ct.Initial):a.atRule+=S;break;case ct.Style:if(T.has("meta")||T.has("property")||T.has("variable-2"))l={name:S,value:"",range:b(y,O),nameRange:b(y,O)},o=ct.PropertyName;else if(S==="}"&&T===h)a.styleRange.endLine=y,a.styleRange.endColumn=O,n.push(a),o=ct.Initial;else if(T.has("comment")){if(S.substring(0,2)!=="/*"||S.substring(S.length-2)!=="*/")break;let L=`a{
105
+ `+S.substring(2,S.length-2)+"}";if(c=[],Q1(L,u),c.length===1&&c[0].properties.length===1){let R=c[0].properties[0];R.disabled=!0,R.range=b(y,O),R.range.endColumn=v;let E=y-1,N=O+2;R.nameRange.startLine+=E,R.nameRange.startColumn+=N,R.nameRange.endLine+=E,R.nameRange.endColumn+=N,R.valueRange.startLine+=E,R.valueRange.startColumn+=N,R.valueRange.endLine+=E,R.valueRange.endColumn+=N,a.properties.push(R)}}break;case ct.PropertyName:S===":"&&T===h?(l.name=l.name,l.nameRange.endLine=y,l.nameRange.endColumn=O,l.valueRange=b(y,v),o=ct.PropertyValue):T.has("property")&&(l.name+=S);break;case ct.PropertyValue:(S===";"||S==="}")&&T===h?(l.value=l.value,l.valueRange.endLine=y,l.valueRange.endColumn=O,l.range.endLine=y,l.range.endColumn=S===";"?v:O,a.properties.push(l),S==="}"?(a.styleRange.endLine=y,a.styleRange.endColumn=O,n.push(a),o=ct.Initial):o=ct.Style):T.has("comment")||(l.value+=S);break;default:console.assert(!1,"Unknown CSS parser state.")}s+=v-O,s>1e5&&(e({chunk:n,isLastChunk:!1}),n=[],s=0)}let d=hi("text/css"),y;for(y=0;y<i.length;++y){let S=i[y];d(S,p),p(`
106
+ `,null,S.length,S.length+1)}e({chunk:n,isLastChunk:!0});function b(S,w){return{startLine:S,startColumn:w,endLine:S,endColumn:w}}}cr.HOST_RUNTIME.workerScope.onmessage=function(t){let e=t.data.method,r=t.data.params;if(e)switch(e){case"format":cr.HOST_RUNTIME.workerScope.postMessage(Il.format(r.mimeType,r.content,r.indentString));break;case"parseCSS":Dl.parseCSS(r.content,self.postMessage);break;case"javaScriptSubstitute":{let i;try{i=_l.substituteExpression(r.content,r.mapping)}catch(n){i={error:n instanceof Error?n.message:String(n)}}cr.HOST_RUNTIME.workerScope.postMessage(i);break}case"javaScriptScopeTree":{cr.HOST_RUNTIME.workerScope.postMessage(Ll.parseScopes(r.content,r.sourceType)?.export());break}default:rh(e,`Unsupport method name: ${e}`)}};cr.HOST_RUNTIME.workerScope.postMessage("workerReady");
107
+ /*! *****************************************************************************
108
+ Copyright (c) Microsoft Corporation.
109
+
110
+ Permission to use, copy, modify, and/or distribute this software for any
111
+ purpose with or without fee is hereby granted.
112
+
113
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
114
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
115
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
116
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
117
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
118
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
119
+ PERFORMANCE OF THIS SOFTWARE.
120
+ ***************************************************************************** */
121
+ /**
122
+ * @license
123
+ * Copyright 2026 Google LLC
124
+ * SPDX-License-Identifier: Apache-2.0
125
+ */