@redocly/reference-docs 3.0.0-alpha.0 → 3.0.0-alpha.3

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 (507) hide show
  1. package/bin/cli/assets/redoc-fast-scroll.js +23 -0
  2. package/bin/cli/assets/template.hbs +25 -0
  3. package/bin/cli/commands/redocly-docs-cli.min.js +2756 -0
  4. package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +370 -0
  5. package/dist/console.redocly-reference-docs.min.js +503 -0
  6. package/dist/oauth2-redirect.html +7 -0
  7. package/dist/oauth2-redirect.js +9 -0
  8. package/dist/redocly-reference-docs.min.js +6099 -0
  9. package/lib/components/Endpoint/Endpoint.js +1 -1
  10. package/lib/components/Endpoint/ServerList.js +1 -1
  11. package/lib/components/Endpoint/Summary.js +1 -1
  12. package/lib/components/NextSectionButton.d.ts +5 -4
  13. package/lib/components/NextSectionButton.js +1 -1
  14. package/lib/components/OperationParameters/OperationParameters.d.ts +3 -0
  15. package/lib/components/OperationParameters/OperationParameters.js +2 -0
  16. package/lib/components/OperationParameters/index.d.ts +1 -0
  17. package/lib/components/OperationParameters/index.js +2 -0
  18. package/lib/components/{console/OperationParameters.d.ts → OperationParameters/types.d.ts} +5 -3
  19. package/lib/components/OperationParameters/types.js +2 -0
  20. package/lib/components/OperationParameters/utils.d.ts +7 -0
  21. package/lib/components/OperationParameters/utils.js +2 -0
  22. package/lib/components/Panel/PanelComponent.d.ts +3 -1
  23. package/lib/components/Panel/PanelComponent.js +1 -1
  24. package/lib/components/Panel/ResponsePanel.js +1 -1
  25. package/lib/components/Panel/Trigger.js +1 -1
  26. package/lib/components/RedoclyReferenceDocs.d.ts +2 -3
  27. package/lib/components/RedoclyReferenceDocs.js +1 -1
  28. package/lib/components/Samples/ExampleSwitch.d.ts +1 -2
  29. package/lib/components/Samples/ExampleSwitch.js +1 -1
  30. package/lib/components/Samples/SamplesTabs.js +1 -1
  31. package/lib/components/Samples/use-example-key.js +1 -1
  32. package/lib/components/StoreProvider.js +1 -1
  33. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.js +1 -1
  34. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +1 -1
  35. package/lib/components/VersionSwitcher.d.ts +1 -1
  36. package/lib/components/common/ClearButton/ClearButton.d.ts +3 -0
  37. package/lib/components/common/ClearButton/ClearButton.js +2 -0
  38. package/lib/components/common/ClearButton/index.d.ts +2 -0
  39. package/lib/components/common/ClearButton/index.js +2 -0
  40. package/lib/components/common/ClearButton/styled.d.ts +2 -0
  41. package/lib/components/common/ClearButton/styled.js +2 -0
  42. package/lib/components/common/ClearButton/types.d.ts +6 -0
  43. package/lib/{redoc-lib/src/services/MenuStore.js → components/common/ClearButton/types.js} +1 -1
  44. package/lib/components/common/Dropdown/Dropdown.js +1 -1
  45. package/lib/components/common/Dropdown/styled.js +1 -1
  46. package/lib/components/common/Dropdown/types.d.ts +2 -0
  47. package/lib/components/common/FileUpload/FileUpload.js +1 -1
  48. package/lib/components/common/TextField.js +1 -1
  49. package/lib/components/console/CodemirrorInput.d.ts +1 -1
  50. package/lib/components/console/CodemirrorInput.js +1 -1
  51. package/lib/components/console/Console.d.ts +1 -7
  52. package/lib/components/console/Console.js +1 -1
  53. package/lib/components/console/ConsoleLazy.js +1 -1
  54. package/lib/components/console/OAuth2Flow.js +1 -1
  55. package/lib/components/console/OAuth2TokenInput.js +1 -1
  56. package/lib/components/console/OpenIDConnect.js +1 -1
  57. package/lib/components/console/ParameterDropdown.js +1 -1
  58. package/lib/components/console/RequestBody.d.ts +2 -2
  59. package/lib/components/console/RequestBody.js +1 -1
  60. package/lib/components/console/RequestBodyForm.js +1 -1
  61. package/lib/components/console/ResponseBody.js +1 -1
  62. package/lib/components/console/ResponseHeadersList.d.ts +4 -0
  63. package/lib/components/console/ResponseHeadersList.js +2 -0
  64. package/lib/components/console/ResponsePanel.d.ts +0 -2
  65. package/lib/components/console/ResponsePanel.js +1 -1
  66. package/lib/components/console/ServerDropdown.js +1 -1
  67. package/lib/components/console/TryItPanel.d.ts +7 -0
  68. package/lib/components/console/TryItPanel.js +2 -0
  69. package/lib/components/console/codemirror-helpers.js +1 -1
  70. package/lib/components/console/styled.d.ts +7 -3
  71. package/lib/components/console/styled.js +1 -1
  72. package/lib/components/console/utils.d.ts +3 -1
  73. package/lib/components/console/utils.js +1 -1
  74. package/lib/components/pluggable/PullRight.js +1 -1
  75. package/lib/components/pluggable/RedocResponse.js +1 -1
  76. package/lib/components/types.d.ts +1 -1
  77. package/lib/models/file-upload.d.ts +0 -5
  78. package/lib/models/file-upload.js +1 -1
  79. package/lib/oauth2-redirect-page/handler/helpers.js +1 -1
  80. package/lib/redoc-lib/src/common-elements/LinkToField.js +1 -1
  81. package/lib/redoc-lib/src/common-elements/fields-layout.js +1 -1
  82. package/lib/redoc-lib/src/common-elements/fields.d.ts +1 -0
  83. package/lib/redoc-lib/src/common-elements/fields.js +1 -1
  84. package/lib/redoc-lib/src/common-elements/headers.d.ts +4 -1
  85. package/lib/redoc-lib/src/common-elements/headers.js +1 -1
  86. package/lib/redoc-lib/src/common-elements/icons.d.ts +1 -0
  87. package/lib/redoc-lib/src/common-elements/linkify.d.ts +1 -0
  88. package/lib/redoc-lib/src/common-elements/linkify.js +1 -1
  89. package/lib/redoc-lib/src/common-elements/panels.js +1 -1
  90. package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +1 -1
  91. package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.js +1 -1
  92. package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +1 -1
  93. package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.js +1 -1
  94. package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.js +1 -1
  95. package/lib/redoc-lib/src/components/ContentItems/ContentItems.d.ts +3 -6
  96. package/lib/redoc-lib/src/components/ContentItems/ContentItems.js +1 -1
  97. package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +1 -1
  98. package/lib/redoc-lib/src/components/Fields/EnumValues.js +1 -1
  99. package/lib/redoc-lib/src/components/Fields/Extensions.d.ts +1 -1
  100. package/lib/redoc-lib/src/components/Fields/Extensions.js +1 -1
  101. package/lib/redoc-lib/src/components/Fields/Field.d.ts +1 -1
  102. package/lib/redoc-lib/src/components/Fields/Field.js +1 -1
  103. package/lib/redoc-lib/src/components/Fields/FieldDetails.js +1 -1
  104. package/lib/redoc-lib/src/components/Loading/Loading.js +1 -1
  105. package/lib/redoc-lib/src/components/Loading/{Spinner.svg.d.ts → Spinner.d.ts} +0 -0
  106. package/lib/redoc-lib/src/components/Loading/{Spinner.svg.js → Spinner.js} +1 -1
  107. package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +3 -13
  108. package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +1 -1
  109. package/lib/redoc-lib/src/components/Markdown/Markdown.d.ts +1 -13
  110. package/lib/redoc-lib/src/components/Markdown/Markdown.js +1 -1
  111. package/lib/redoc-lib/src/components/Markdown/{SanitizedMdBlock.d.ts → SanitizedMarkdownHTML.d.ts} +1 -1
  112. package/lib/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.js +2 -0
  113. package/lib/redoc-lib/src/components/Markdown/index.d.ts +4 -0
  114. package/lib/redoc-lib/src/components/Markdown/index.js +2 -0
  115. package/lib/redoc-lib/src/components/Markdown/{styled.elements.d.ts → styled.d.ts} +10 -4
  116. package/lib/redoc-lib/src/components/Markdown/styled.js +2 -0
  117. package/lib/redoc-lib/src/components/Markdown/types.d.ts +17 -0
  118. package/lib/redoc-lib/src/components/Markdown/types.js +2 -0
  119. package/lib/redoc-lib/src/components/Operation/Operation.js +1 -1
  120. package/lib/redoc-lib/src/components/OptionsProvider.d.ts +1 -0
  121. package/lib/redoc-lib/src/components/OptionsProvider.js +1 -1
  122. package/lib/redoc-lib/src/components/Parameters/Parameters.js +1 -1
  123. package/lib/redoc-lib/src/components/PayloadSamples/Example.js +1 -1
  124. package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +5 -1
  125. package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.js +1 -1
  126. package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
  127. package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +1 -1
  128. package/lib/redoc-lib/src/components/RenderHook.d.ts +7 -0
  129. package/lib/redoc-lib/src/components/RenderHook.js +2 -0
  130. package/lib/redoc-lib/src/components/RequestSamples/CodeSample.js +1 -1
  131. package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.js +1 -1
  132. package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +1 -1
  133. package/lib/redoc-lib/src/components/Responses/Response.js +1 -1
  134. package/lib/redoc-lib/src/components/Responses/ResponseDetails.js +1 -1
  135. package/lib/redoc-lib/src/components/Responses/ResponseHeaders.js +1 -1
  136. package/lib/redoc-lib/src/components/Responses/ResponseSummary.js +1 -1
  137. package/lib/redoc-lib/src/components/Responses/styled.elements.d.ts +1 -0
  138. package/lib/redoc-lib/src/components/Responses/styled.elements.js +1 -1
  139. package/lib/redoc-lib/src/components/Schema/ArraySchema.js +1 -1
  140. package/lib/redoc-lib/src/components/Schema/ObjectSchema.d.ts +2 -7
  141. package/lib/redoc-lib/src/components/Schema/ObjectSchema.js +1 -1
  142. package/lib/redoc-lib/src/components/Schema/OneOfSchema.js +1 -1
  143. package/lib/redoc-lib/src/components/Schema/RecursiveSchema.d.ts +3 -0
  144. package/lib/redoc-lib/src/components/Schema/RecursiveSchema.js +2 -0
  145. package/lib/redoc-lib/src/components/Schema/Schema.js +1 -1
  146. package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +1 -1
  147. package/lib/redoc-lib/src/components/SearchBox/SearchBox.d.ts +1 -2
  148. package/lib/redoc-lib/src/components/SearchBox/SearchBox.js +1 -1
  149. package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.d.ts +4 -0
  150. package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +2 -0
  151. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityDefs.d.ts +8 -0
  152. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityDefs.js +2 -0
  153. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +9 -10
  154. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +1 -1
  155. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.d.ts +8 -0
  156. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +2 -0
  157. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.d.ts +8 -0
  158. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +2 -0
  159. package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +3 -16
  160. package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +1 -1
  161. package/lib/redoc-lib/src/components/SecuritySchemes/helpers.d.ts +30 -0
  162. package/lib/redoc-lib/src/components/SecuritySchemes/helpers.js +2 -0
  163. package/lib/redoc-lib/src/components/SecuritySchemes/types.d.ts +7 -0
  164. package/lib/redoc-lib/src/components/SecuritySchemes/types.js +2 -0
  165. package/lib/redoc-lib/src/components/SeeMore/SeeMore.d.ts +7 -0
  166. package/lib/redoc-lib/src/components/SeeMore/SeeMore.js +2 -0
  167. package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
  168. package/lib/redoc-lib/src/components/SideMenu/SideMenu.d.ts +1 -1
  169. package/lib/redoc-lib/src/components/SideMenu/SideMenu.js +1 -1
  170. package/lib/redoc-lib/src/components/SideMenu/styled.elements.d.ts +2 -7
  171. package/lib/redoc-lib/src/components/SideMenu/styled.elements.js +1 -1
  172. package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +1 -1
  173. package/lib/redoc-lib/src/components/StoreBuilder.d.ts +3 -3
  174. package/lib/redoc-lib/src/components/StoreBuilder.js +1 -1
  175. package/lib/redoc-lib/src/components/index.d.ts +1 -3
  176. package/lib/redoc-lib/src/components/index.js +1 -1
  177. package/lib/redoc-lib/src/index.d.ts +0 -1
  178. package/lib/redoc-lib/src/services/Labels.d.ts +1 -28
  179. package/lib/redoc-lib/src/services/MarkdownRenderer.d.ts +2 -17
  180. package/lib/redoc-lib/src/services/MarkdownRenderer.js +1 -1
  181. package/lib/redoc-lib/src/services/MenuBuilder.d.ts +16 -24
  182. package/lib/redoc-lib/src/services/MenuBuilder.js +1 -1
  183. package/lib/redoc-lib/src/services/OpenAPIParser.d.ts +10 -17
  184. package/lib/redoc-lib/src/services/OpenAPIParser.js +1 -1
  185. package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +11 -113
  186. package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
  187. package/lib/redoc-lib/src/services/SearchStore.d.ts +1 -2
  188. package/lib/redoc-lib/src/services/SearchWorker.worker.d.ts +1 -9
  189. package/lib/redoc-lib/src/services/SpecStore.d.ts +2 -2
  190. package/lib/redoc-lib/src/services/constants.d.ts +4 -0
  191. package/lib/redoc-lib/src/services/constants.js +1 -1
  192. package/lib/redoc-lib/src/services/index.d.ts +11 -11
  193. package/lib/redoc-lib/src/services/index.js +1 -1
  194. package/lib/redoc-lib/src/services/models/ApiInfo.js +1 -1
  195. package/lib/redoc-lib/src/services/models/Callback.d.ts +1 -1
  196. package/lib/redoc-lib/src/services/models/Callback.js +1 -1
  197. package/lib/redoc-lib/src/services/models/Example.d.ts +4 -1
  198. package/lib/redoc-lib/src/services/models/Example.js +1 -1
  199. package/lib/redoc-lib/src/services/models/Field.d.ts +1 -1
  200. package/lib/redoc-lib/src/services/models/Field.js +1 -1
  201. package/lib/redoc-lib/src/services/models/Group.model.d.ts +2 -3
  202. package/lib/redoc-lib/src/services/models/Group.model.js +1 -1
  203. package/lib/redoc-lib/src/services/models/MediaContent.d.ts +1 -1
  204. package/lib/redoc-lib/src/services/models/MediaContent.js +1 -1
  205. package/lib/redoc-lib/src/services/models/MediaType.d.ts +1 -1
  206. package/lib/redoc-lib/src/services/models/MediaType.js +1 -1
  207. package/lib/redoc-lib/src/services/models/Operation.d.ts +11 -6
  208. package/lib/redoc-lib/src/services/models/Operation.js +1 -1
  209. package/lib/redoc-lib/src/services/models/RequestBody.js +1 -1
  210. package/lib/redoc-lib/src/services/models/Response.js +1 -1
  211. package/lib/redoc-lib/src/services/models/Schema.d.ts +5 -5
  212. package/lib/redoc-lib/src/services/models/Schema.js +1 -1
  213. package/lib/redoc-lib/src/services/models/SecurityRequirement.js +1 -1
  214. package/lib/redoc-lib/src/services/models/SecuritySchemes.js +1 -1
  215. package/lib/redoc-lib/src/services/models/Webhook.d.ts +1 -1
  216. package/lib/redoc-lib/src/services/models/Webhook.js +1 -1
  217. package/lib/redoc-lib/src/services/models/index.d.ts +0 -1
  218. package/lib/redoc-lib/src/services/models/index.js +1 -1
  219. package/lib/redoc-lib/src/services/types.d.ts +218 -0
  220. package/lib/redoc-lib/src/services/types.js +2 -0
  221. package/lib/redoc-lib/src/types/open-api.d.ts +20 -2
  222. package/lib/redoc-lib/src/utils/argValuesHelpers.d.ts +4 -0
  223. package/lib/redoc-lib/src/utils/argValuesHelpers.js +2 -0
  224. package/lib/redoc-lib/src/utils/index.d.ts +1 -0
  225. package/lib/redoc-lib/src/utils/index.js +1 -1
  226. package/lib/redoc-lib/src/utils/openapi.d.ts +0 -2
  227. package/lib/redoc-lib/src/utils/openapi.js +1 -1
  228. package/lib/services/ProMenu.js +1 -1
  229. package/lib/services/ProStore.d.ts +3 -1
  230. package/lib/services/ProStore.js +1 -1
  231. package/lib/services/VersionedSpecStore.js +1 -1
  232. package/lib/services/code-samples/generator.js +1 -1
  233. package/lib/services/code-samples/httpsnippet/index.js +1 -1
  234. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  235. package/lib/services/code-samples/httpsnippet/targets/go/native.js +1 -1
  236. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.js +1 -1
  237. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.js +1 -1
  238. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -1
  239. package/lib/services/code-samples/httpsnippet/targets/node/fetch.js +1 -1
  240. package/lib/services/code-samples/httpsnippet/targets/php/curl.js +1 -1
  241. package/lib/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
  242. package/lib/services/code-samples/httpsnippet/targets/r/httr.js +1 -1
  243. package/lib/services/code-samples/httpsnippet/targets/ruby/native.js +1 -1
  244. package/lib/services/code-samples/httpsnippet/targets/shell/curl.js +1 -1
  245. package/lib/services/history/ProHashHistoryService.js +1 -1
  246. package/lib/services/utils.d.ts +2 -0
  247. package/lib/services/utils.js +1 -1
  248. package/lib/types.d.ts +14 -0
  249. package/lib/types.js +2 -0
  250. package/lib/utils.d.ts +1 -0
  251. package/lib/utils.js +1 -1
  252. package/lib-esm/components/Endpoint/Endpoint.js +1 -1
  253. package/lib-esm/components/Endpoint/ServerList.js +1 -1
  254. package/lib-esm/components/Endpoint/Summary.js +1 -1
  255. package/lib-esm/components/NextSectionButton.d.ts +5 -4
  256. package/lib-esm/components/NextSectionButton.js +1 -1
  257. package/lib-esm/components/OperationParameters/OperationParameters.d.ts +3 -0
  258. package/lib-esm/components/OperationParameters/OperationParameters.js +2 -0
  259. package/lib-esm/components/OperationParameters/index.d.ts +1 -0
  260. package/lib-esm/components/OperationParameters/index.js +2 -0
  261. package/lib-esm/components/{console/OperationParameters.d.ts → OperationParameters/types.d.ts} +5 -3
  262. package/lib-esm/components/OperationParameters/types.js +2 -0
  263. package/lib-esm/components/OperationParameters/utils.d.ts +7 -0
  264. package/lib-esm/components/OperationParameters/utils.js +2 -0
  265. package/lib-esm/components/Panel/PanelComponent.d.ts +3 -1
  266. package/lib-esm/components/Panel/PanelComponent.js +1 -1
  267. package/lib-esm/components/Panel/ResponsePanel.js +1 -1
  268. package/lib-esm/components/Panel/Trigger.js +1 -1
  269. package/lib-esm/components/RedoclyReferenceDocs.d.ts +2 -3
  270. package/lib-esm/components/RedoclyReferenceDocs.js +1 -1
  271. package/lib-esm/components/Samples/ExampleSwitch.d.ts +1 -2
  272. package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
  273. package/lib-esm/components/Samples/SamplesTabs.js +1 -1
  274. package/lib-esm/components/Samples/use-example-key.js +1 -1
  275. package/lib-esm/components/StoreProvider.js +1 -1
  276. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.js +1 -1
  277. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +1 -1
  278. package/lib-esm/components/VersionSwitcher.d.ts +1 -1
  279. package/lib-esm/components/common/ClearButton/ClearButton.d.ts +3 -0
  280. package/lib-esm/components/common/ClearButton/ClearButton.js +2 -0
  281. package/lib-esm/components/common/ClearButton/index.d.ts +2 -0
  282. package/lib-esm/components/common/ClearButton/index.js +2 -0
  283. package/lib-esm/components/common/ClearButton/styled.d.ts +2 -0
  284. package/lib-esm/components/common/ClearButton/styled.js +2 -0
  285. package/lib-esm/components/common/ClearButton/types.d.ts +6 -0
  286. package/lib-esm/components/common/ClearButton/types.js +2 -0
  287. package/lib-esm/components/common/Dropdown/Dropdown.js +1 -1
  288. package/lib-esm/components/common/Dropdown/styled.js +1 -1
  289. package/lib-esm/components/common/Dropdown/types.d.ts +2 -0
  290. package/lib-esm/components/common/FileUpload/FileUpload.js +1 -1
  291. package/lib-esm/components/common/TextField.js +1 -1
  292. package/lib-esm/components/console/CodemirrorInput.d.ts +1 -1
  293. package/lib-esm/components/console/CodemirrorInput.js +1 -1
  294. package/lib-esm/components/console/Console.d.ts +1 -7
  295. package/lib-esm/components/console/Console.js +1 -1
  296. package/lib-esm/components/console/ConsoleLazy.js +1 -1
  297. package/lib-esm/components/console/OAuth2Flow.js +1 -1
  298. package/lib-esm/components/console/OAuth2TokenInput.js +1 -1
  299. package/lib-esm/components/console/OpenIDConnect.js +1 -1
  300. package/lib-esm/components/console/ParameterDropdown.js +1 -1
  301. package/lib-esm/components/console/RequestBody.d.ts +2 -2
  302. package/lib-esm/components/console/RequestBody.js +1 -1
  303. package/lib-esm/components/console/RequestBodyForm.js +1 -1
  304. package/lib-esm/components/console/ResponseBody.js +1 -1
  305. package/lib-esm/components/console/ResponseHeadersList.d.ts +4 -0
  306. package/lib-esm/components/console/ResponseHeadersList.js +2 -0
  307. package/lib-esm/components/console/ResponsePanel.d.ts +0 -2
  308. package/lib-esm/components/console/ResponsePanel.js +1 -1
  309. package/lib-esm/components/console/ServerDropdown.js +1 -1
  310. package/lib-esm/components/console/TryItPanel.d.ts +7 -0
  311. package/lib-esm/components/console/TryItPanel.js +2 -0
  312. package/lib-esm/components/console/codemirror-helpers.js +1 -1
  313. package/lib-esm/components/console/styled.d.ts +7 -3
  314. package/lib-esm/components/console/styled.js +1 -1
  315. package/lib-esm/components/console/utils.d.ts +3 -1
  316. package/lib-esm/components/console/utils.js +1 -1
  317. package/lib-esm/components/pluggable/PullRight.js +1 -1
  318. package/lib-esm/components/pluggable/RedocResponse.js +1 -1
  319. package/lib-esm/components/types.d.ts +1 -1
  320. package/lib-esm/models/file-upload.d.ts +0 -5
  321. package/lib-esm/models/file-upload.js +1 -1
  322. package/lib-esm/oauth2-redirect-page/handler/helpers.js +1 -1
  323. package/lib-esm/redoc-lib/src/common-elements/LinkToField.js +1 -1
  324. package/lib-esm/redoc-lib/src/common-elements/fields-layout.js +1 -1
  325. package/lib-esm/redoc-lib/src/common-elements/fields.d.ts +1 -0
  326. package/lib-esm/redoc-lib/src/common-elements/fields.js +1 -1
  327. package/lib-esm/redoc-lib/src/common-elements/headers.d.ts +4 -1
  328. package/lib-esm/redoc-lib/src/common-elements/headers.js +1 -1
  329. package/lib-esm/redoc-lib/src/common-elements/icons.d.ts +1 -0
  330. package/lib-esm/redoc-lib/src/common-elements/linkify.d.ts +1 -0
  331. package/lib-esm/redoc-lib/src/common-elements/linkify.js +1 -1
  332. package/lib-esm/redoc-lib/src/common-elements/panels.js +1 -1
  333. package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +1 -1
  334. package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.js +1 -1
  335. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +1 -1
  336. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.js +1 -1
  337. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.js +1 -1
  338. package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.d.ts +3 -6
  339. package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.js +1 -1
  340. package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +1 -1
  341. package/lib-esm/redoc-lib/src/components/Fields/EnumValues.js +1 -1
  342. package/lib-esm/redoc-lib/src/components/Fields/Extensions.d.ts +1 -1
  343. package/lib-esm/redoc-lib/src/components/Fields/Extensions.js +1 -1
  344. package/lib-esm/redoc-lib/src/components/Fields/Field.d.ts +1 -1
  345. package/lib-esm/redoc-lib/src/components/Fields/Field.js +1 -1
  346. package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.js +1 -1
  347. package/lib-esm/redoc-lib/src/components/Loading/Loading.js +1 -1
  348. package/lib-esm/redoc-lib/src/components/Loading/{Spinner.svg.d.ts → Spinner.d.ts} +0 -0
  349. package/lib-esm/redoc-lib/src/components/Loading/{Spinner.svg.js → Spinner.js} +1 -1
  350. package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.d.ts +3 -13
  351. package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +1 -1
  352. package/lib-esm/redoc-lib/src/components/Markdown/Markdown.d.ts +1 -13
  353. package/lib-esm/redoc-lib/src/components/Markdown/Markdown.js +1 -1
  354. package/lib-esm/redoc-lib/src/components/Markdown/{SanitizedMdBlock.d.ts → SanitizedMarkdownHTML.d.ts} +1 -1
  355. package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.js +2 -0
  356. package/lib-esm/redoc-lib/src/components/Markdown/index.d.ts +4 -0
  357. package/lib-esm/redoc-lib/src/components/Markdown/index.js +2 -0
  358. package/lib-esm/redoc-lib/src/components/Markdown/{styled.elements.d.ts → styled.d.ts} +10 -4
  359. package/lib-esm/redoc-lib/src/components/Markdown/{styled.elements.js → styled.js} +2 -2
  360. package/lib-esm/redoc-lib/src/components/Markdown/types.d.ts +17 -0
  361. package/lib-esm/redoc-lib/src/components/Markdown/types.js +2 -0
  362. package/lib-esm/redoc-lib/src/components/Operation/Operation.js +1 -1
  363. package/lib-esm/redoc-lib/src/components/OptionsProvider.d.ts +1 -0
  364. package/lib-esm/redoc-lib/src/components/OptionsProvider.js +1 -1
  365. package/lib-esm/redoc-lib/src/components/Parameters/Parameters.js +1 -1
  366. package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.js +1 -1
  367. package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +5 -1
  368. package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.js +1 -1
  369. package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
  370. package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +1 -1
  371. package/lib-esm/redoc-lib/src/components/RenderHook.d.ts +7 -0
  372. package/lib-esm/redoc-lib/src/components/RenderHook.js +2 -0
  373. package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.js +1 -1
  374. package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.js +1 -1
  375. package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +1 -1
  376. package/lib-esm/redoc-lib/src/components/Responses/Response.js +1 -1
  377. package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.js +1 -1
  378. package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.js +1 -1
  379. package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.js +1 -1
  380. package/lib-esm/redoc-lib/src/components/Responses/styled.elements.d.ts +1 -0
  381. package/lib-esm/redoc-lib/src/components/Responses/styled.elements.js +1 -1
  382. package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.js +1 -1
  383. package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.d.ts +2 -7
  384. package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.js +1 -1
  385. package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.js +1 -1
  386. package/lib-esm/redoc-lib/src/components/Schema/RecursiveSchema.d.ts +3 -0
  387. package/lib-esm/redoc-lib/src/components/Schema/RecursiveSchema.js +2 -0
  388. package/lib-esm/redoc-lib/src/components/Schema/Schema.js +1 -1
  389. package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +1 -1
  390. package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.d.ts +1 -2
  391. package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.js +1 -1
  392. package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.d.ts +4 -0
  393. package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +2 -0
  394. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityDefs.d.ts +8 -0
  395. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityDefs.js +2 -0
  396. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +9 -10
  397. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +1 -1
  398. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.d.ts +8 -0
  399. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +2 -0
  400. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.d.ts +8 -0
  401. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +2 -0
  402. package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.d.ts +3 -16
  403. package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +1 -1
  404. package/lib-esm/redoc-lib/src/components/SecuritySchemes/helpers.d.ts +30 -0
  405. package/lib-esm/redoc-lib/src/components/SecuritySchemes/helpers.js +2 -0
  406. package/lib-esm/redoc-lib/src/components/SecuritySchemes/types.d.ts +7 -0
  407. package/lib-esm/redoc-lib/src/components/SecuritySchemes/types.js +2 -0
  408. package/lib-esm/redoc-lib/src/components/SeeMore/SeeMore.d.ts +7 -0
  409. package/lib-esm/redoc-lib/src/components/SeeMore/SeeMore.js +2 -0
  410. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
  411. package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.d.ts +1 -1
  412. package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.js +1 -1
  413. package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.d.ts +2 -7
  414. package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.js +1 -1
  415. package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +1 -1
  416. package/lib-esm/redoc-lib/src/components/StoreBuilder.d.ts +3 -3
  417. package/lib-esm/redoc-lib/src/components/StoreBuilder.js +1 -1
  418. package/lib-esm/redoc-lib/src/components/index.d.ts +1 -3
  419. package/lib-esm/redoc-lib/src/components/index.js +1 -1
  420. package/lib-esm/redoc-lib/src/index.d.ts +0 -1
  421. package/lib-esm/redoc-lib/src/services/Labels.d.ts +1 -28
  422. package/lib-esm/redoc-lib/src/services/MarkdownRenderer.d.ts +2 -17
  423. package/lib-esm/redoc-lib/src/services/MarkdownRenderer.js +1 -1
  424. package/lib-esm/redoc-lib/src/services/MenuBuilder.d.ts +16 -24
  425. package/lib-esm/redoc-lib/src/services/MenuBuilder.js +1 -1
  426. package/lib-esm/redoc-lib/src/services/OpenAPIParser.d.ts +10 -17
  427. package/lib-esm/redoc-lib/src/services/OpenAPIParser.js +1 -1
  428. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +11 -113
  429. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
  430. package/lib-esm/redoc-lib/src/services/SearchStore.d.ts +1 -2
  431. package/lib-esm/redoc-lib/src/services/SearchWorker.worker.d.ts +1 -9
  432. package/lib-esm/redoc-lib/src/services/SpecStore.d.ts +2 -2
  433. package/lib-esm/redoc-lib/src/services/constants.d.ts +4 -0
  434. package/lib-esm/redoc-lib/src/services/constants.js +1 -1
  435. package/lib-esm/redoc-lib/src/services/index.d.ts +11 -11
  436. package/lib-esm/redoc-lib/src/services/index.js +1 -1
  437. package/lib-esm/redoc-lib/src/services/models/ApiInfo.js +1 -1
  438. package/lib-esm/redoc-lib/src/services/models/Callback.d.ts +1 -1
  439. package/lib-esm/redoc-lib/src/services/models/Callback.js +1 -1
  440. package/lib-esm/redoc-lib/src/services/models/Example.d.ts +4 -1
  441. package/lib-esm/redoc-lib/src/services/models/Example.js +1 -1
  442. package/lib-esm/redoc-lib/src/services/models/Field.d.ts +1 -1
  443. package/lib-esm/redoc-lib/src/services/models/Field.js +1 -1
  444. package/lib-esm/redoc-lib/src/services/models/Group.model.d.ts +2 -3
  445. package/lib-esm/redoc-lib/src/services/models/Group.model.js +1 -1
  446. package/lib-esm/redoc-lib/src/services/models/MediaContent.d.ts +1 -1
  447. package/lib-esm/redoc-lib/src/services/models/MediaContent.js +1 -1
  448. package/lib-esm/redoc-lib/src/services/models/MediaType.d.ts +1 -1
  449. package/lib-esm/redoc-lib/src/services/models/MediaType.js +1 -1
  450. package/lib-esm/redoc-lib/src/services/models/Operation.d.ts +11 -6
  451. package/lib-esm/redoc-lib/src/services/models/Operation.js +1 -1
  452. package/lib-esm/redoc-lib/src/services/models/RequestBody.js +1 -1
  453. package/lib-esm/redoc-lib/src/services/models/Response.js +1 -1
  454. package/lib-esm/redoc-lib/src/services/models/Schema.d.ts +5 -5
  455. package/lib-esm/redoc-lib/src/services/models/Schema.js +1 -1
  456. package/lib-esm/redoc-lib/src/services/models/SecurityRequirement.js +1 -1
  457. package/lib-esm/redoc-lib/src/services/models/SecuritySchemes.js +1 -1
  458. package/lib-esm/redoc-lib/src/services/models/Webhook.d.ts +1 -1
  459. package/lib-esm/redoc-lib/src/services/models/Webhook.js +1 -1
  460. package/lib-esm/redoc-lib/src/services/models/index.d.ts +0 -1
  461. package/lib-esm/redoc-lib/src/services/models/index.js +1 -1
  462. package/lib-esm/redoc-lib/src/services/types.d.ts +218 -0
  463. package/lib-esm/redoc-lib/src/services/types.js +2 -0
  464. package/lib-esm/redoc-lib/src/types/open-api.d.ts +20 -2
  465. package/lib-esm/redoc-lib/src/utils/argValuesHelpers.d.ts +4 -0
  466. package/lib-esm/redoc-lib/src/utils/argValuesHelpers.js +2 -0
  467. package/lib-esm/redoc-lib/src/utils/index.d.ts +1 -0
  468. package/lib-esm/redoc-lib/src/utils/index.js +1 -1
  469. package/lib-esm/redoc-lib/src/utils/openapi.d.ts +0 -2
  470. package/lib-esm/redoc-lib/src/utils/openapi.js +1 -1
  471. package/lib-esm/services/ProMenu.js +1 -1
  472. package/lib-esm/services/ProStore.d.ts +3 -1
  473. package/lib-esm/services/ProStore.js +1 -1
  474. package/lib-esm/services/VersionedSpecStore.js +1 -1
  475. package/lib-esm/services/code-samples/generator.js +1 -1
  476. package/lib-esm/services/code-samples/httpsnippet/index.js +1 -1
  477. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  478. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.js +1 -1
  479. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.js +1 -1
  480. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.js +1 -1
  481. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -1
  482. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.js +1 -1
  483. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.js +1 -1
  484. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
  485. package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.js +1 -1
  486. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.js +1 -1
  487. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.js +1 -1
  488. package/lib-esm/services/history/ProHashHistoryService.js +1 -1
  489. package/lib-esm/services/utils.d.ts +2 -0
  490. package/lib-esm/services/utils.js +1 -1
  491. package/lib-esm/types.d.ts +14 -0
  492. package/lib-esm/types.js +2 -0
  493. package/lib-esm/utils.d.ts +1 -0
  494. package/lib-esm/utils.js +1 -1
  495. package/package.json +20 -57
  496. package/lib/components/console/OperationParameters.js +0 -2
  497. package/lib/redoc-lib/src/components/Markdown/SanitizedMdBlock.js +0 -2
  498. package/lib/redoc-lib/src/components/Markdown/styled.elements.js +0 -2
  499. package/lib/redoc-lib/src/components/helper.d.ts +0 -6
  500. package/lib/redoc-lib/src/components/helper.js +0 -2
  501. package/lib/redoc-lib/src/services/MenuStore.d.ts +0 -21
  502. package/lib-esm/components/console/OperationParameters.js +0 -2
  503. package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMdBlock.js +0 -2
  504. package/lib-esm/redoc-lib/src/components/helper.d.ts +0 -6
  505. package/lib-esm/redoc-lib/src/components/helper.js +0 -2
  506. package/lib-esm/redoc-lib/src/services/MenuStore.d.ts +0 -21
  507. package/lib-esm/redoc-lib/src/services/MenuStore.js +0 -2
@@ -0,0 +1,503 @@
1
+ var mr=Math.pow;/*!
2
+ * Redocly Reference Docs
3
+ * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
+ * -------------------------------------------------------------
5
+ * Version: "3.0.0-alpha.3"
6
+ */(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(h,I,a)=>{h.exports=a(27698)},77766:(h,I,a)=>{h.exports=a(8065)},72119:(h,I,a)=>{h.exports=a(57448)},20116:(h,I,a)=>{h.exports=a(11955)},94473:(h,I,a)=>{h.exports=a(61577)},78580:(h,I,a)=>{h.exports=a(33778)},2991:(h,I,a)=>{h.exports=a(61798)},3649:(h,I,a)=>{h.exports=a(82073)},92762:(h,I,a)=>{h.exports=a(2348)},59340:(h,I,a)=>{h.exports=a(8933)},51942:(h,I,a)=>{h.exports=a(63383)},26295:(h,I,a)=>{h.exports=a(86209)},86902:(h,I,a)=>{h.exports=a(23059)},93476:(h,I,a)=>{h.exports=a(27460)},52424:(h,I,a)=>{h.exports=a(72010)},53592:(h,I,a)=>{h.exports=a(27385)},78363:(h,I,a)=>{h.exports=a(81522)},19996:(h,I,a)=>{h.exports=a(32209)},30699:(h,I,a)=>{h.exports=a(44442)},28834:(h,I,a)=>{h.exports=a(57152)},95683:(h,I,a)=>{h.exports=a(69447)},95238:(h,I,a)=>{h.exports=a(81493)},189:(h,I,a)=>{h.exports=a(76094)},32752:(h,I,a)=>{h.exports=a(70573)},44341:(h,I,a)=>{h.exports=a(73685)},58377:(h,I,a)=>{h.exports=a(27533)},13038:(h,I,a)=>{h.exports=a(39057)},63263:(h,I,a)=>{h.exports=a(84710)},24889:(h,I,a)=>{h.exports=a(74303)},89356:(h,I,a)=>{h.exports=a(93799)},79542:(h,I,a)=>{h.exports=a(55122)},69798:(h,I,a)=>{h.exports=a(29531)},13535:(h,I,a)=>{h.exports=a(10856)},83863:(h,I,a)=>{h.exports=a(31524)},51446:(h,I,a)=>{h.exports=a(86600)},23882:(h,I,a)=>{h.exports=a(9759)},63109:(h,I,a)=>{h.exports=a(35666)},79742:(h,I)=>{"use strict";I.byteLength=g,I.toByteArray=D,I.fromByteArray=q;for(var a=[],c=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,b=x.length;d<b;++d)a[d]=x[d],c[x.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function S(W){var M=W.length;if(M%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var X=W.indexOf("=");X===-1&&(X=M);var R=X===M?0:4-X%4;return[X,R]}function g(W){var M=S(W),X=M[0],R=M[1];return(X+R)*3/4-R}function L(W,M,X){return(M+X)*3/4-X}function D(W){var M,X=S(W),R=X[0],C=X[1],V=new v(L(W,R,C)),J=0,_=C>0?R-4:R,Q;for(Q=0;Q<_;Q+=4)M=c[W.charCodeAt(Q)]<<18|c[W.charCodeAt(Q+1)]<<12|c[W.charCodeAt(Q+2)]<<6|c[W.charCodeAt(Q+3)],V[J++]=M>>16&255,V[J++]=M>>8&255,V[J++]=M&255;return C===2&&(M=c[W.charCodeAt(Q)]<<2|c[W.charCodeAt(Q+1)]>>4,V[J++]=M&255),C===1&&(M=c[W.charCodeAt(Q)]<<10|c[W.charCodeAt(Q+1)]<<4|c[W.charCodeAt(Q+2)]>>2,V[J++]=M>>8&255,V[J++]=M&255),V}function B(W){return a[W>>18&63]+a[W>>12&63]+a[W>>6&63]+a[W&63]}function j(W,M,X){for(var R,C=[],V=M;V<X;V+=3)R=(W[V]<<16&16711680)+(W[V+1]<<8&65280)+(W[V+2]&255),C.push(B(R));return C.join("")}function q(W){for(var M,X=W.length,R=X%3,C=[],V=16383,J=0,_=X-R;J<_;J+=V)C.push(j(W,J,J+V>_?_:J+V));return R===1?(M=W[X-1],C.push(a[M>>2]+a[M<<4&63]+"==")):R===2&&(M=(W[X-2]<<8)+W[X-1],C.push(a[M>>10]+a[M>>4&63]+a[M<<2&63]+"=")),C.join("")}},50706:(h,I,a)=>{var c=a(48764).Buffer;(function(){"use strict";function v(x){var d;return x instanceof c?d=x:d=c.from(x.toString(),"binary"),d.toString("base64")}h.exports=v})()},48764:(h,I,a)=>{"use strict";/*!
7
+ * The buffer module from node.js, for the browser.
8
+ *
9
+ * @author Feross Aboukhadijeh <http://feross.org>
10
+ * @license MIT
11
+ */var c=a(79742),v=a(80645),x=a(5826);I.Buffer=g,I.SlowBuffer=C,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=a.g.TYPED_ARRAY_SUPPORT!==void 0?a.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var ve=new Uint8Array(1);return ve.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ve.foo()===42&&typeof ve.subarray=="function"&&ve.subarray(1,1).byteLength===0}catch(z){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function S(ve,z){if(b()<z)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(ve=new Uint8Array(z),ve.__proto__=g.prototype):(ve===null&&(ve=new g(z)),ve.length=z),ve}function g(ve,z,$){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(ve,z,$);if(typeof ve=="number"){if(typeof z=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,ve)}return L(this,ve,z,$)}g.poolSize=8192,g._augment=function(ve){return ve.__proto__=g.prototype,ve};function L(ve,z,$,Se){if(typeof z=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&z instanceof ArrayBuffer?M(ve,z,$,Se):typeof z=="string"?q(ve,z,$):X(ve,z)}g.from=function(ve,z,$){return L(null,ve,z,$)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function D(ve){if(typeof ve!="number")throw new TypeError('"size" argument must be a number');if(ve<0)throw new RangeError('"size" argument must not be negative')}function B(ve,z,$,Se){return D(z),z<=0?S(ve,z):$!==void 0?typeof Se=="string"?S(ve,z).fill($,Se):S(ve,z).fill($):S(ve,z)}g.alloc=function(ve,z,$){return B(null,ve,z,$)};function j(ve,z){if(D(z),ve=S(ve,z<0?0:R(z)|0),!g.TYPED_ARRAY_SUPPORT)for(var $=0;$<z;++$)ve[$]=0;return ve}g.allocUnsafe=function(ve){return j(null,ve)},g.allocUnsafeSlow=function(ve){return j(null,ve)};function q(ve,z,$){if((typeof $!="string"||$==="")&&($="utf8"),!g.isEncoding($))throw new TypeError('"encoding" must be a valid string encoding');var Se=V(z,$)|0;ve=S(ve,Se);var Ie=ve.write(z,$);return Ie!==Se&&(ve=ve.slice(0,Ie)),ve}function W(ve,z){var $=z.length<0?0:R(z.length)|0;ve=S(ve,$);for(var Se=0;Se<$;Se+=1)ve[Se]=z[Se]&255;return ve}function M(ve,z,$,Se){if(z.byteLength,$<0||z.byteLength<$)throw new RangeError("'offset' is out of bounds");if(z.byteLength<$+(Se||0))throw new RangeError("'length' is out of bounds");return $===void 0&&Se===void 0?z=new Uint8Array(z):Se===void 0?z=new Uint8Array(z,$):z=new Uint8Array(z,$,Se),g.TYPED_ARRAY_SUPPORT?(ve=z,ve.__proto__=g.prototype):ve=W(ve,z),ve}function X(ve,z){if(g.isBuffer(z)){var $=R(z.length)|0;return ve=S(ve,$),ve.length===0||z.copy(ve,0,0,$),ve}if(z){if(typeof ArrayBuffer!="undefined"&&z.buffer instanceof ArrayBuffer||"length"in z)return typeof z.length!="number"||Dt(z.length)?S(ve,0):W(ve,z);if(z.type==="Buffer"&&x(z.data))return W(ve,z.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function R(ve){if(ve>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return ve|0}function C(ve){return+ve!=ve&&(ve=0),g.alloc(+ve)}g.isBuffer=function(z){return!!(z!=null&&z._isBuffer)},g.compare=function(z,$){if(!g.isBuffer(z)||!g.isBuffer($))throw new TypeError("Arguments must be Buffers");if(z===$)return 0;for(var Se=z.length,Ie=$.length,Ge=0,Ke=Math.min(Se,Ie);Ge<Ke;++Ge)if(z[Ge]!==$[Ge]){Se=z[Ge],Ie=$[Ge];break}return Se<Ie?-1:Ie<Se?1:0},g.isEncoding=function(z){switch(String(z).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(z,$){if(!x(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return g.alloc(0);var Se;if($===void 0)for($=0,Se=0;Se<z.length;++Se)$+=z[Se].length;var Ie=g.allocUnsafe($),Ge=0;for(Se=0;Se<z.length;++Se){var Ke=z[Se];if(!g.isBuffer(Ke))throw new TypeError('"list" argument must be an Array of Buffers');Ke.copy(Ie,Ge),Ge+=Ke.length}return Ie};function V(ve,z){if(g.isBuffer(ve))return ve.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ve)||ve instanceof ArrayBuffer))return ve.byteLength;typeof ve!="string"&&(ve=""+ve);var $=ve.length;if($===0)return 0;for(var Se=!1;;)switch(z){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return Et(ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return Vt(ve).length;default:if(Se)return Et(ve).length;z=(""+z).toLowerCase(),Se=!0}}g.byteLength=V;function J(ve,z,$){var Se=!1;if((z===void 0||z<0)&&(z=0),z>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,z>>>=0,$<=z))return"";for(ve||(ve="utf8");;)switch(ve){case"hex":return rt(this,z,$);case"utf8":case"utf-8":return oe(this,z,$);case"ascii":return Me(this,z,$);case"latin1":case"binary":return Pe(this,z,$);case"base64":return ue(this,z,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,z,$);default:if(Se)throw new TypeError("Unknown encoding: "+ve);ve=(ve+"").toLowerCase(),Se=!0}}g.prototype._isBuffer=!0;function _(ve,z,$){var Se=ve[z];ve[z]=ve[$],ve[$]=Se}g.prototype.swap16=function(){var z=this.length;if(z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$<z;$+=2)_(this,$,$+1);return this},g.prototype.swap32=function(){var z=this.length;if(z%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $=0;$<z;$+=4)_(this,$,$+3),_(this,$+1,$+2);return this},g.prototype.swap64=function(){var z=this.length;if(z%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $=0;$<z;$+=8)_(this,$,$+7),_(this,$+1,$+6),_(this,$+2,$+5),_(this,$+3,$+4);return this},g.prototype.toString=function(){var z=this.length|0;return z===0?"":arguments.length===0?oe(this,0,z):J.apply(this,arguments)},g.prototype.equals=function(z){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z?!0:g.compare(this,z)===0},g.prototype.inspect=function(){var z="",$=I.INSPECT_MAX_BYTES;return this.length>0&&(z=this.toString("hex",0,$).match(/.{2}/g).join(" "),this.length>$&&(z+=" ... ")),"<Buffer "+z+">"},g.prototype.compare=function(z,$,Se,Ie,Ge){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),Se===void 0&&(Se=z?z.length:0),Ie===void 0&&(Ie=0),Ge===void 0&&(Ge=this.length),$<0||Se>z.length||Ie<0||Ge>this.length)throw new RangeError("out of range index");if(Ie>=Ge&&$>=Se)return 0;if(Ie>=Ge)return-1;if($>=Se)return 1;if($>>>=0,Se>>>=0,Ie>>>=0,Ge>>>=0,this===z)return 0;for(var Ke=Ge-Ie,P=Se-$,Re=Math.min(Ke,P),K=this.slice(Ie,Ge),T=z.slice($,Se),O=0;O<Re;++O)if(K[O]!==T[O]){Ke=K[O],P=T[O];break}return Ke<P?-1:P<Ke?1:0};function Q(ve,z,$,Se,Ie){if(ve.length===0)return-1;if(typeof $=="string"?(Se=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=Ie?0:ve.length-1),$<0&&($=ve.length+$),$>=ve.length){if(Ie)return-1;$=ve.length-1}else if($<0)if(Ie)$=0;else return-1;if(typeof z=="string"&&(z=g.from(z,Se)),g.isBuffer(z))return z.length===0?-1:Y(ve,z,$,Se,Ie);if(typeof z=="number")return z=z&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ie?Uint8Array.prototype.indexOf.call(ve,z,$):Uint8Array.prototype.lastIndexOf.call(ve,z,$):Y(ve,[z],$,Se,Ie);throw new TypeError("val must be string, number or Buffer")}function Y(ve,z,$,Se,Ie){var Ge=1,Ke=ve.length,P=z.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(ve.length<2||z.length<2)return-1;Ge=2,Ke/=2,P/=2,$/=2}function Re(N,te){return Ge===1?N[te]:N.readUInt16BE(te*Ge)}var K;if(Ie){var T=-1;for(K=$;K<Ke;K++)if(Re(ve,K)===Re(z,T===-1?0:K-T)){if(T===-1&&(T=K),K-T+1===P)return T*Ge}else T!==-1&&(K-=K-T),T=-1}else for($+P>Ke&&($=Ke-P),K=$;K>=0;K--){for(var O=!0,se=0;se<P;se++)if(Re(ve,K+se)!==Re(z,se)){O=!1;break}if(O)return K}return-1}g.prototype.includes=function(z,$,Se){return this.indexOf(z,$,Se)!==-1},g.prototype.indexOf=function(z,$,Se){return Q(this,z,$,Se,!0)},g.prototype.lastIndexOf=function(z,$,Se){return Q(this,z,$,Se,!1)};function fe(ve,z,$,Se){$=Number($)||0;var Ie=ve.length-$;Se?(Se=Number(Se),Se>Ie&&(Se=Ie)):Se=Ie;var Ge=z.length;if(Ge%2!=0)throw new TypeError("Invalid hex string");Se>Ge/2&&(Se=Ge/2);for(var Ke=0;Ke<Se;++Ke){var P=parseInt(z.substr(Ke*2,2),16);if(isNaN(P))return Ke;ve[$+Ke]=P}return Ke}function ee(ve,z,$,Se){return wt(Et(z,ve.length-$),ve,$,Se)}function ie(ve,z,$,Se){return wt(Ht(z),ve,$,Se)}function ye(ve,z,$,Se){return ie(ve,z,$,Se)}function be(ve,z,$,Se){return wt(Vt(z),ve,$,Se)}function he(ve,z,$,Se){return wt(jt(z,ve.length-$),ve,$,Se)}g.prototype.write=function(z,$,Se,Ie){if($===void 0)Ie="utf8",Se=this.length,$=0;else if(Se===void 0&&typeof $=="string")Ie=$,Se=this.length,$=0;else if(isFinite($))$=$|0,isFinite(Se)?(Se=Se|0,Ie===void 0&&(Ie="utf8")):(Ie=Se,Se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ge=this.length-$;if((Se===void 0||Se>Ge)&&(Se=Ge),z.length>0&&(Se<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ie||(Ie="utf8");for(var Ke=!1;;)switch(Ie){case"hex":return fe(this,z,$,Se);case"utf8":case"utf-8":return ee(this,z,$,Se);case"ascii":return ie(this,z,$,Se);case"latin1":case"binary":return ye(this,z,$,Se);case"base64":return be(this,z,$,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,z,$,Se);default:if(Ke)throw new TypeError("Unknown encoding: "+Ie);Ie=(""+Ie).toLowerCase(),Ke=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(ve,z,$){return z===0&&$===ve.length?c.fromByteArray(ve):c.fromByteArray(ve.slice(z,$))}function oe(ve,z,$){$=Math.min(ve.length,$);for(var Se=[],Ie=z;Ie<$;){var Ge=ve[Ie],Ke=null,P=Ge>239?4:Ge>223?3:Ge>191?2:1;if(Ie+P<=$){var Re,K,T,O;switch(P){case 1:Ge<128&&(Ke=Ge);break;case 2:Re=ve[Ie+1],(Re&192)==128&&(O=(Ge&31)<<6|Re&63,O>127&&(Ke=O));break;case 3:Re=ve[Ie+1],K=ve[Ie+2],(Re&192)==128&&(K&192)==128&&(O=(Ge&15)<<12|(Re&63)<<6|K&63,O>2047&&(O<55296||O>57343)&&(Ke=O));break;case 4:Re=ve[Ie+1],K=ve[Ie+2],T=ve[Ie+3],(Re&192)==128&&(K&192)==128&&(T&192)==128&&(O=(Ge&15)<<18|(Re&63)<<12|(K&63)<<6|T&63,O>65535&&O<1114112&&(Ke=O))}}Ke===null?(Ke=65533,P=1):Ke>65535&&(Ke-=65536,Se.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),Se.push(Ke),Ie+=P}return Le(Se)}var Fe=4096;function Le(ve){var z=ve.length;if(z<=Fe)return String.fromCharCode.apply(String,ve);for(var $="",Se=0;Se<z;)$+=String.fromCharCode.apply(String,ve.slice(Se,Se+=Fe));return $}function Me(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]&127);return Se}function Pe(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]);return Se}function rt(ve,z,$){var Se=ve.length;(!z||z<0)&&(z=0),(!$||$<0||$>Se)&&($=Se);for(var Ie="",Ge=z;Ge<$;++Ge)Ie+=kt(ve[Ge]);return Ie}function Ze(ve,z,$){for(var Se=ve.slice(z,$),Ie="",Ge=0;Ge<Se.length;Ge+=2)Ie+=String.fromCharCode(Se[Ge]+Se[Ge+1]*256);return Ie}g.prototype.slice=function(z,$){var Se=this.length;z=~~z,$=$===void 0?Se:~~$,z<0?(z+=Se,z<0&&(z=0)):z>Se&&(z=Se),$<0?($+=Se,$<0&&($=0)):$>Se&&($=Se),$<z&&($=z);var Ie;if(g.TYPED_ARRAY_SUPPORT)Ie=this.subarray(z,$),Ie.__proto__=g.prototype;else{var Ge=$-z;Ie=new g(Ge,void 0);for(var Ke=0;Ke<Ge;++Ke)Ie[Ke]=this[Ke+z]}return Ie};function Xe(ve,z,$){if(ve%1!=0||ve<0)throw new RangeError("offset is not uint");if(ve+z>$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[z+Ke]*Ge;return Ie},g.prototype.readUIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z+--$],Ge=1;$>0&&(Ge*=256);)Ie+=this[z+--$]*Ge;return Ie},g.prototype.readUInt8=function(z,$){return $||Xe(z,1,this.length),this[z]},g.prototype.readUInt16LE=function(z,$){return $||Xe(z,2,this.length),this[z]|this[z+1]<<8},g.prototype.readUInt16BE=function(z,$){return $||Xe(z,2,this.length),this[z]<<8|this[z+1]},g.prototype.readUInt32LE=function(z,$){return $||Xe(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},g.prototype.readUInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},g.prototype.readIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[z+Ke]*Ge;return Ge*=128,Ie>=Ge&&(Ie-=Math.pow(2,8*$)),Ie},g.prototype.readIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=$,Ge=1,Ke=this[z+--Ie];Ie>0&&(Ge*=256);)Ke+=this[z+--Ie]*Ge;return Ge*=128,Ke>=Ge&&(Ke-=Math.pow(2,8*$)),Ke},g.prototype.readInt8=function(z,$){return $||Xe(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},g.prototype.readInt16LE=function(z,$){$||Xe(z,2,this.length);var Se=this[z]|this[z+1]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt16BE=function(z,$){$||Xe(z,2,this.length);var Se=this[z+1]|this[z]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt32LE=function(z,$){return $||Xe(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},g.prototype.readInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},g.prototype.readFloatLE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!0,23,4)},g.prototype.readFloatBE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!1,23,4)},g.prototype.readDoubleLE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!0,52,8)},g.prototype.readDoubleBE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!1,52,8)};function ft(ve,z,$,Se,Ie,Ge){if(!g.isBuffer(ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>Ie||z<Ge)throw new RangeError('"value" argument is out of bounds');if($+Se>ve.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ft(this,z,$,Se,Ge,0)}var Ke=1,P=0;for(this[$]=z&255;++P<Se&&(Ke*=256);)this[$+P]=z/Ke&255;return $+Se},g.prototype.writeUIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ft(this,z,$,Se,Ge,0)}var Ke=Se-1,P=1;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)this[$+Ke]=z/P&255;return $+Se},g.prototype.writeUInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,255,0),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),this[$]=z&255,$+1};function ht(ve,z,$,Se){z<0&&(z=65535+z+1);for(var Ie=0,Ge=Math.min(ve.length-$,2);Ie<Ge;++Ie)ve[$+Ie]=(z&255<<8*(Se?Ie:1-Ie))>>>(Se?Ie:1-Ie)*8}g.prototype.writeUInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeUInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2};function bt(ve,z,$,Se){z<0&&(z=4294967295+z+1);for(var Ie=0,Ge=Math.min(ve.length-$,4);Ie<Ge;++Ie)ve[$+Ie]=z>>>(Se?Ie:3-Ie)*8&255}g.prototype.writeUInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$+3]=z>>>24,this[$+2]=z>>>16,this[$+1]=z>>>8,this[$]=z&255):bt(this,z,$,!0),$+4},g.prototype.writeUInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):bt(this,z,$,!1),$+4},g.prototype.writeIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ft(this,z,$,Se,Ge-1,-Ge)}var Ke=0,P=1,Re=0;for(this[$]=z&255;++Ke<Se&&(P*=256);)z<0&&Re===0&&this[$+Ke-1]!==0&&(Re=1),this[$+Ke]=(z/P>>0)-Re&255;return $+Se},g.prototype.writeIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ft(this,z,$,Se,Ge-1,-Ge)}var Ke=Se-1,P=1,Re=0;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)z<0&&Re===0&&this[$+Ke+1]!==0&&(Re=1),this[$+Ke]=(z/P>>0)-Re&255;return $+Se},g.prototype.writeInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,127,-128),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),z<0&&(z=255+z+1),this[$]=z&255,$+1},g.prototype.writeInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2},g.prototype.writeInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8,this[$+2]=z>>>16,this[$+3]=z>>>24):bt(this,z,$,!0),$+4},g.prototype.writeInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):bt(this,z,$,!1),$+4};function nt(ve,z,$,Se,Ie,Ge){if($+Se>ve.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function ut(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,4,34028234663852886e22,-34028234663852886e22),v.write(ve,z,$,Se,23,4),$+4}g.prototype.writeFloatLE=function(z,$,Se){return ut(this,z,$,!0,Se)},g.prototype.writeFloatBE=function(z,$,Se){return ut(this,z,$,!1,Se)};function yt(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,8,17976931348623157e292,-17976931348623157e292),v.write(ve,z,$,Se,52,8),$+8}g.prototype.writeDoubleLE=function(z,$,Se){return yt(this,z,$,!0,Se)},g.prototype.writeDoubleBE=function(z,$,Se){return yt(this,z,$,!1,Se)},g.prototype.copy=function(z,$,Se,Ie){if(Se||(Se=0),!Ie&&Ie!==0&&(Ie=this.length),$>=z.length&&($=z.length),$||($=0),Ie>0&&Ie<Se&&(Ie=Se),Ie===Se||z.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(Se<0||Se>=this.length)throw new RangeError("sourceStart out of bounds");if(Ie<0)throw new RangeError("sourceEnd out of bounds");Ie>this.length&&(Ie=this.length),z.length-$<Ie-Se&&(Ie=z.length-$+Se);var Ge=Ie-Se,Ke;if(this===z&&Se<$&&$<Ie)for(Ke=Ge-1;Ke>=0;--Ke)z[Ke+$]=this[Ke+Se];else if(Ge<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke<Ge;++Ke)z[Ke+$]=this[Ke+Se];else Uint8Array.prototype.set.call(z,this.subarray(Se,Se+Ge),$);return Ge},g.prototype.fill=function(z,$,Se,Ie){if(typeof z=="string"){if(typeof $=="string"?(Ie=$,$=0,Se=this.length):typeof Se=="string"&&(Ie=Se,Se=this.length),z.length===1){var Ge=z.charCodeAt(0);Ge<256&&(z=Ge)}if(Ie!==void 0&&typeof Ie!="string")throw new TypeError("encoding must be a string");if(typeof Ie=="string"&&!g.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie)}else typeof z=="number"&&(z=z&255);if($<0||this.length<$||this.length<Se)throw new RangeError("Out of range index");if(Se<=$)return this;$=$>>>0,Se=Se===void 0?this.length:Se>>>0,z||(z=0);var Ke;if(typeof z=="number")for(Ke=$;Ke<Se;++Ke)this[Ke]=z;else{var P=g.isBuffer(z)?z:Et(new g(z,Ie).toString()),Re=P.length;for(Ke=0;Ke<Se-$;++Ke)this[Ke+$]=P[Ke%Re]}return this};var mt=/[^+\/0-9A-Za-z-_]/g;function pt(ve){if(ve=Mt(ve).replace(mt,""),ve.length<2)return"";for(;ve.length%4!=0;)ve=ve+"=";return ve}function Mt(ve){return ve.trim?ve.trim():ve.replace(/^\s+|\s+$/g,"")}function kt(ve){return ve<16?"0"+ve.toString(16):ve.toString(16)}function Et(ve,z){z=z||1/0;for(var $,Se=ve.length,Ie=null,Ge=[],Ke=0;Ke<Se;++Ke){if($=ve.charCodeAt(Ke),$>55295&&$<57344){if(!Ie){if($>56319){(z-=3)>-1&&Ge.push(239,191,189);continue}else if(Ke+1===Se){(z-=3)>-1&&Ge.push(239,191,189);continue}Ie=$;continue}if($<56320){(z-=3)>-1&&Ge.push(239,191,189),Ie=$;continue}$=(Ie-55296<<10|$-56320)+65536}else Ie&&(z-=3)>-1&&Ge.push(239,191,189);if(Ie=null,$<128){if((z-=1)<0)break;Ge.push($)}else if($<2048){if((z-=2)<0)break;Ge.push($>>6|192,$&63|128)}else if($<65536){if((z-=3)<0)break;Ge.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((z-=4)<0)break;Ge.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return Ge}function Ht(ve){for(var z=[],$=0;$<ve.length;++$)z.push(ve.charCodeAt($)&255);return z}function jt(ve,z){for(var $,Se,Ie,Ge=[],Ke=0;Ke<ve.length&&!((z-=2)<0);++Ke)$=ve.charCodeAt(Ke),Se=$>>8,Ie=$%256,Ge.push(Ie),Ge.push(Se);return Ge}function Vt(ve){return c.toByteArray(pt(ve))}function wt(ve,z,$,Se){for(var Ie=0;Ie<Se&&!(Ie+$>=z.length||Ie>=ve.length);++Ie)z[Ie+$]=ve[Ie];return Ie}function Dt(ve){return ve!==ve}},21924:(h,I,a)=>{"use strict";var c=a(40210),v=a(55559),x=v(c("String.prototype.indexOf"));h.exports=function(b,S){var g=c(b,!!S);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(h,I,a)=>{"use strict";var c=a(58612),v=a(40210),x=v("%Function.prototype.apply%"),d=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(d,x),S=v("%Object.getOwnPropertyDescriptor%",!0),g=v("%Object.defineProperty%",!0),L=v("%Math.max%");if(g)try{g({},"a",{value:1})}catch(B){g=null}h.exports=function(j){var q=b(c,d,arguments);if(S&&g){var W=S(q,"length");W.configurable&&g(q,"length",{value:1+L(0,j.length-(arguments.length-1))})}return q};var D=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:D}):h.exports.apply=D},82801:(h,I,a)=>{(function(c){c(a(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(R,C,V){V&&V!=c.Init&&(R.removeKeyMap(b),R.state.closeBrackets=null),C&&(S(d(C,"pairs")),R.state.closeBrackets=C,R.addKeyMap(b))});function d(R,C){return C=="pairs"&&typeof R=="string"?R:typeof R=="object"&&R[C]!=null?R[C]:v[C]}var b={Backspace:D,Enter:B};function S(R){for(var C=0;C<R.length;C++){var V=R.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}S(v.pairs+"`");function g(R){return function(C){return W(C,R)}}function L(R){var C=R.state.closeBrackets;if(!C||C.override)return C;var V=R.getModeAt(R.getCursor());return V.closeBrackets||C}function D(R){var C=L(R);if(!C||R.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),J=R.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=M(R,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var _=J.length-1;_>=0;_--){var Y=J[_].head;R.replaceRange("",x(Y.line,Y.ch-1),x(Y.line,Y.ch+1),"+delete")}}function B(R){var C=L(R),V=C&&d(C,"explode");if(!V||R.getOption("disableInput"))return c.Pass;for(var J=R.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=M(R,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}R.operation(function(){var Y=R.lineSeparator()||`
12
+ `;R.replaceSelection(Y+Y,null),j(R,-1),J=R.listSelections();for(var fe=0;fe<J.length;fe++){var ee=J[fe].head.line;R.indentLine(ee,null,!0),R.indentLine(ee+1,null,!0)}})}function j(R,C){for(var V=[],J=R.listSelections(),_=0,Q=0;Q<J.length;Q++){var Y=J[Q];Y.head==R.getCursor()&&(_=Q);var fe=Y.head.ch||C>0?{line:Y.head.line,ch:Y.head.ch+C}:{line:Y.head.line-1};V.push({anchor:fe,head:fe})}R.setSelections(V,_)}function q(R){var C=c.cmpPos(R.anchor,R.head)>0;return{anchor:new x(R.anchor.line,R.anchor.ch+(C?-1:1)),head:new x(R.head.line,R.head.ch+(C?1:-1))}}function W(R,C){var V=L(R);if(!V||R.getOption("disableInput"))return c.Pass;var J=d(V,"pairs"),_=J.indexOf(C);if(_==-1)return c.Pass;for(var Q=d(V,"closeBefore"),Y=d(V,"triples"),fe=J.charAt(_+1)==C,ee=R.listSelections(),ie=_%2==0,ye,be=0;be<ee.length;be++){var he=ee[be],ue=he.head,oe,Fe=R.getRange(ue,x(ue.line,ue.ch+1));if(ie&&!he.empty())oe="surround";else if((fe||!ie)&&Fe==C)fe&&X(R,ue)?oe="both":Y.indexOf(C)>=0&&R.getRange(ue,x(ue.line,ue.ch+3))==C+C+C?oe="skipThree":oe="skip";else if(fe&&ue.ch>1&&Y.indexOf(C)>=0&&R.getRange(x(ue.line,ue.ch-2),ue)==C+C){if(ue.ch>2&&/\bstring/.test(R.getTokenTypeAt(x(ue.line,ue.ch-2))))return c.Pass;oe="addFour"}else if(fe){var Le=ue.ch==0?" ":R.getRange(x(ue.line,ue.ch-1),ue);if(!c.isWordChar(Fe)&&Le!=C&&!c.isWordChar(Le))oe="both";else return c.Pass}else if(ie&&(Fe.length===0||/\s/.test(Fe)||Q.indexOf(Fe)>-1))oe="both";else return c.Pass;if(!ye)ye=oe;else if(ye!=oe)return c.Pass}var Me=_%2?J.charAt(_-1):C,Pe=_%2?C:J.charAt(_+1);R.operation(function(){if(ye=="skip")j(R,1);else if(ye=="skipThree")j(R,3);else if(ye=="surround"){for(var rt=R.getSelections(),Ze=0;Ze<rt.length;Ze++)rt[Ze]=Me+rt[Ze]+Pe;R.replaceSelections(rt,"around"),rt=R.listSelections().slice();for(var Ze=0;Ze<rt.length;Ze++)rt[Ze]=q(rt[Ze]);R.setSelections(rt)}else ye=="both"?(R.replaceSelection(Me+Pe,null),R.triggerElectric(Me+Pe),j(R,-1)):ye=="addFour"&&(R.replaceSelection(Me+Me+Me+Me,"before"),j(R,1))})}function M(R,C){var V=R.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(R,C){var V=R.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(R.getTokenTypeAt(C)))}})},4328:(h,I,a)=>{(function(c){c(a(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),x=c.Pos,d={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(j){return j&&j.bracketRegex||/[(){}[\]]/}function S(j,q,W){var M=j.getLineHandle(q.line),X=q.ch-1,R=W&&W.afterCursor;R==null&&(R=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(W),V=!R&&X>=0&&C.test(M.text.charAt(X))&&d[M.text.charAt(X)]||C.test(M.text.charAt(X+1))&&d[M.text.charAt(++X)];if(!V)return null;var J=V.charAt(1)==">"?1:-1;if(W&&W.strict&&J>0!=(X==q.ch))return null;var _=j.getTokenTypeAt(x(q.line,X+1)),Q=g(j,x(q.line,X+(J>0?1:0)),J,_,W);return Q==null?null:{from:x(q.line,X),to:Q&&Q.pos,match:Q&&Q.ch==V.charAt(0),forward:J>0}}function g(j,q,W,M,X){for(var R=X&&X.maxScanLineLength||1e4,C=X&&X.maxScanLines||1e3,V=[],J=b(X),_=W>0?Math.min(q.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,q.line-C),Q=q.line;Q!=_;Q+=W){var Y=j.getLine(Q);if(!!Y){var fe=W>0?0:Y.length-1,ee=W>0?Y.length:-1;if(!(Y.length>R))for(Q==q.line&&(fe=q.ch-(W<0?1:0));fe!=ee;fe+=W){var ie=Y.charAt(fe);if(J.test(ie)&&(M===void 0||(j.getTokenTypeAt(x(Q,fe+1))||"")==(M||""))){var ye=d[ie];if(ye&&ye.charAt(1)==">"==W>0)V.push(ie);else if(V.length)V.pop();else return{pos:x(Q,fe),ch:ie}}}}}return Q-W==(W>0?j.lastLine():j.firstLine())?!1:null}function L(j,q,W){for(var M=j.state.matchBrackets.maxHighlightLineLength||1e3,X=W&&W.highlightNonMatching,R=[],C=j.listSelections(),V=0;V<C.length;V++){var J=C[V].empty()&&S(j,C[V].head,W);if(J&&(J.match||X!==!1)&&j.getLine(J.from.line).length<=M){var _=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";R.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:_})),J.to&&j.getLine(J.to.line).length<=M&&R.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:_}))}}if(R.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var Y=0;Y<R.length;Y++)R[Y].clear()})};if(q)setTimeout(Q,800);else return Q}}function D(j){j.operation(function(){j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null),j.state.matchBrackets.currentlyHighlighted=L(j,!1,j.state.matchBrackets)})}function B(j){j.state.matchBrackets&&j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(j,q,W){W&&W!=c.Init&&(j.off("cursorActivity",D),j.off("focus",D),j.off("blur",B),B(j)),q&&(j.state.matchBrackets=typeof q=="object"?q:{},j.on("cursorActivity",D),j.on("focus",D),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,q,W){return(W||typeof q=="boolean")&&(W?(W.strict=q,q=W):q=q?{strict:!0}:null),S(this,j,q)}),c.defineExtension("scanForBracket",function(j,q,W,M){return g(this,j,q,W,M)})})},71707:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(R,C,V){if(!C)return R.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var _ in V)J[_]=V[_];return R.showHint(J)},c.defineExtension("showHint",function(R){R=g(this,this.getCursor("start"),R);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!R.hint.supportsSelection)return;for(var V=0;V<C.length;V++)if(C[V].head.line!=C[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var J=this.state.completionActive=new d(this,R);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(R,C){if(this.cm=R,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;R.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(R){return setTimeout(R,1e3/60)},S=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(R,C){var V=R.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,R,V):J.cm.replaceRange(L(V),V.from||R.from,V.to||R.to,"complete"),c.signal(R,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(S(this.debounce),this.debounce=0);var R=this.startPos;this.data&&(R=this.data.from);var C=this.cm.getCursor(),V=this.cm.getLine(C.line);if(C.line!=this.startPos.line||V.length-C.ch!=this.startLen-this.startPos.ch||C.ch<R.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(V.charAt(C.ch-1)))this.close();else{var J=this;this.debounce=b(function(){J.update()}),this.widget&&this.widget.disable()}},update:function(R){if(this.tick!=null){var C=this,V=++this.tick;W(this.options.hint,this.cm,this.options,function(J){C.tick==V&&C.finishUpdate(J,R)})}},finishUpdate:function(R,C){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=R,R&&R.list.length&&(V&&R.list.length==1?this.pick(R,0):(this.widget=new j(this,R),c.signal(R,"shown")))}};function g(R,C,V){var J=R.options.hintOptions,_={};for(var Q in X)_[Q]=X[Q];if(J)for(var Q in J)J[Q]!==void 0&&(_[Q]=J[Q]);if(V)for(var Q in V)V[Q]!==void 0&&(_[Q]=V[Q]);return _.hint.resolve&&(_.hint=_.hint.resolve(R,C)),_}function L(R){return typeof R=="string"?R:R.text}function D(R,C){var V={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},J=/Mac/.test(navigator.platform);J&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var _=R.options.customKeys,Q=_?{}:V;function Y(ie,ye){var be;typeof ye!="string"?be=function(he){return ye(he,C)}:V.hasOwnProperty(ye)?be=V[ye]:be=ye,Q[ie]=be}if(_)for(var fe in _)_.hasOwnProperty(fe)&&Y(fe,_[fe]);var ee=R.options.extraKeys;if(ee)for(var fe in ee)ee.hasOwnProperty(fe)&&Y(fe,ee[fe]);return Q}function B(R,C){for(;C&&C!=R;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==R)return C;C=C.parentNode}}function j(R,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=R,this.data=C,this.picked=!1;var V=this,J=R.cm,_=J.getInputField().ownerDocument,Q=_.defaultView||_.parentWindow,Y=this.hints=_.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var fe=R.cm.options.theme;Y.className="CodeMirror-hints "+fe,this.selectedHint=C.selectedHint||0;for(var ee=C.list,ie=0;ie<ee.length;++ie){var ye=Y.appendChild(_.createElement("li")),be=ee[ie],he=v+(ie!=this.selectedHint?"":" "+x);be.className!=null&&(he=be.className+" "+he),ye.className=he,ie==this.selectedHint&&ye.setAttribute("aria-selected","true"),ye.id=this.id+"-"+ie,ye.setAttribute("role","option"),be.render?be.render(ye,C,be):ye.appendChild(_.createTextNode(be.displayText||L(be))),ye.hintId=ie}var ue=R.options.container||_.body,oe=J.cursorCoords(R.options.alignWithWord?C.from:null),Fe=oe.left,Le=oe.bottom,Me=!0,Pe=0,rt=0;if(ue!==_.body){var Ze=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(ue).position)!==-1,Xe=Ze?ue:ue.offsetParent,ft=Xe.getBoundingClientRect(),ht=_.body.getBoundingClientRect();Pe=ft.left-ht.left-Xe.scrollLeft,rt=ft.top-ht.top-Xe.scrollTop}Y.style.left=Fe-Pe+"px",Y.style.top=Le-rt+"px";var bt=Q.innerWidth||Math.max(_.body.offsetWidth,_.documentElement.offsetWidth),nt=Q.innerHeight||Math.max(_.body.offsetHeight,_.documentElement.offsetHeight);ue.appendChild(Y),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ut=R.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,yt=R.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,mt;setTimeout(function(){mt=J.getScrollInfo()});var pt=ut.bottom-nt;if(pt>0){var Mt=ut.bottom-ut.top,kt=oe.top-(oe.bottom-ut.top);if(kt-Mt>0)Y.style.top=(Le=oe.top-Mt-rt)+"px",Me=!1;else if(Mt>nt){Y.style.height=nt-5+"px",Y.style.top=(Le=oe.bottom-ut.top-rt)+"px";var Et=J.getCursor();C.from.ch!=Et.ch&&(oe=J.cursorCoords(Et),Y.style.left=(Fe=oe.left-Pe)+"px",ut=Y.getBoundingClientRect())}}var Ht=ut.right-bt;if(yt&&(Ht+=J.display.nativeBarWidth),Ht>0&&(ut.right-ut.left>bt&&(Y.style.width=bt-5+"px",Ht-=ut.right-ut.left-bt),Y.style.left=(Fe=oe.left-Ht-Pe)+"px"),yt)for(var jt=Y.firstChild;jt;jt=jt.nextSibling)jt.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=D(R,{moveFocus:function(Dt,ve){V.changeActive(V.selectedHint+Dt,ve)},setFocus:function(Dt){V.changeActive(Dt)},menuSize:function(){return V.screenAmount()},length:ee.length,close:function(){R.close()},pick:function(){V.pick()},data:C})),R.options.closeOnUnfocus){var Vt;J.on("blur",this.onBlur=function(){Vt=setTimeout(function(){R.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout(Vt)})}J.on("scroll",this.onScroll=function(){var Dt=J.getScrollInfo(),ve=J.getWrapperElement().getBoundingClientRect();mt||(mt=J.getScrollInfo());var z=Le+mt.top-Dt.top,$=z-(Q.pageYOffset||(_.documentElement||_.body).scrollTop);if(Me||($+=Y.offsetHeight),$<=ve.top||$>=ve.bottom)return R.close();Y.style.top=z+"px",Y.style.left=Fe+mt.left-Dt.left+"px"}),c.on(Y,"dblclick",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),V.pick())}),c.on(Y,"click",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),R.options.completeOnSingleClick&&V.pick())}),c.on(Y,"mousedown",function(){setTimeout(function(){J.focus()},20)});var wt=this.getSelectedHintRange();return(wt.from!==0||wt.to!==0)&&this.scrollToActive(),c.signal(C,"select",ee[this.selectedHint],Y.childNodes[this.selectedHint]),!0}j.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var R=this.completion.cm.getInputField();R.removeAttribute("aria-activedescendant"),R.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var R=this;this.keyMap={Enter:function(){R.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(R,C){if(R>=this.data.list.length?R=C?this.data.list.length-1:0:R<0&&(R=C?0:this.data.list.length-1),this.selectedHint!=R){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=R],V.className+=" "+x,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var R=this.getSelectedHintRange(),C=this.hints.childNodes[R.from],V=this.hints.childNodes[R.to],J=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-J.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+J.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var R=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-R),to:Math.min(this.data.list.length-1,this.selectedHint+R)}}};function q(R,C){if(!R.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function W(R,C,V,J){if(R.async)R(C,J,V);else{var _=R(C,V);_&&_.then?_.then(J):J(_)}}function M(R,C){var V=R.getHelpers(C,"hint"),J;if(V.length){var _=function(Q,Y,fe){var ee=q(Q,V);function ie(ye){if(ye==ee.length)return Y(null);W(ee[ye],Q,fe,function(be){be&&be.list.length>0?Y(be):ie(ye+1)})}ie(0)};return _.async=!0,_.supportsSelection=!0,_}else return(J=R.getHelper(R.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,Y){return c.hint.anyword(Q,Y)}:function(){}}c.registerHelper("hint","auto",{resolve:M}),c.registerHelper("hint","fromList",function(R,C){var V=R.getCursor(),J=R.getTokenAt(V),_,Q=c.Pos(V.line,J.start),Y=V;J.start<V.ch&&/\w/.test(J.string.charAt(V.ch-J.start-1))?_=J.string.substr(0,V.ch-J.start):(_="",Q=V);for(var fe=[],ee=0;ee<C.words.length;ee++){var ie=C.words[ee];ie.slice(0,_.length)==_&&fe.push(ie)}if(fe.length)return{list:fe,from:Q,to:Y}}),c.commands.autocomplete=c.showHint;var X={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(Y,fe,ee){var ie=document.createElement("div");ie.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,ie.appendChild(ee.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(ie):document.body.appendChild(ie);function ye(be){if(!ie.parentNode)return c.off(document,"mousemove",ye);ie.style.top=Math.max(0,be.clientY-ie.offsetHeight-5)+"px",ie.style.left=be.clientX+5+"px"}return c.on(document,"mousemove",ye),ye(fe),ie.style.opacity!=null&&(ie.style.opacity=1),ie}function b(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function S(Y){!Y.parentNode||(Y.style.opacity==null&&b(Y),Y.style.opacity=0,setTimeout(function(){b(Y)},600))}function g(Y,fe,ee,ie){var ye=d(Y,fe,ee);function be(){c.off(ie,"mouseout",be),ye&&(S(ye),ye=null)}var he=setInterval(function(){if(ye)for(var ue=ie;;ue=ue.parentNode){if(ue&&ue.nodeType==11&&(ue=ue.host),ue==document.body)return;if(!ue){be();break}}if(!ye)return clearInterval(he)},400);c.on(ie,"mouseout",be)}function L(Y,fe,ee){this.marked=[],fe instanceof Function&&(fe={getAnnotations:fe}),(!fe||fe===!0)&&(fe={}),this.options={},this.linterOptions=fe.options||{};for(var ie in D)this.options[ie]=D[ie];for(var ie in fe)D.hasOwnProperty(ie)?fe[ie]!=null&&(this.options[ie]=fe[ie]):fe.options||(this.linterOptions[ie]=fe[ie]);this.timeout=null,this.hasGutter=ee,this.onMouseOver=function(ye){Q(Y,ye)},this.waitingFor=0}var D={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(Y){var fe=Y.state.lint;fe.hasGutter&&Y.clearGutter(v),fe.options.highlightLines&&j(Y);for(var ee=0;ee<fe.marked.length;++ee)fe.marked[ee].clear();fe.marked.length=0}function j(Y){Y.eachLine(function(fe){var ee=fe.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(fe.wrapClass);ee&&Y.removeLineClass(fe,"wrap",ee[0])})}function q(Y,fe,ee,ie,ye){var be=document.createElement("div"),he=be;return be.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+ee,ie&&(he=be.appendChild(document.createElement("div")),he.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ye!=!1&&c.on(he,"mouseover",function(ue){g(Y,ue,fe,he)}),be}function W(Y,fe){return Y=="error"?Y:fe}function M(Y){for(var fe=[],ee=0;ee<Y.length;++ee){var ie=Y[ee],ye=ie.from.line;(fe[ye]||(fe[ye]=[])).push(ie)}return fe}function X(Y){var fe=Y.severity;fe||(fe="error");var ee=document.createElement("div");return ee.className="CodeMirror-lint-message CodeMirror-lint-message-"+fe,typeof Y.messageHTML!="undefined"?ee.innerHTML=Y.messageHTML:ee.appendChild(document.createTextNode(Y.message)),ee}function R(Y,fe){var ee=Y.state.lint,ie=++ee.waitingFor;function ye(){ie=-1,Y.off("change",ye)}Y.on("change",ye),fe(Y.getValue(),function(be,he){Y.off("change",ye),ee.waitingFor==ie&&(he&&be instanceof c&&(be=he),Y.operation(function(){V(Y,be)}))},ee.linterOptions,Y)}function C(Y){var fe=Y.state.lint;if(!!fe){var ee=fe.options,ie=ee.getAnnotations||Y.getHelper(c.Pos(0,0),"lint");if(!!ie)if(ee.async||ie.async)R(Y,ie);else{var ye=ie(Y.getValue(),fe.linterOptions,Y);if(!ye)return;ye.then?ye.then(function(be){Y.operation(function(){V(Y,be)})}):Y.operation(function(){V(Y,ye)})}}}function V(Y,fe){var ee=Y.state.lint;if(!!ee){var ie=ee.options;B(Y);for(var ye=M(fe),be=0;be<ye.length;++be){var he=ye[be];if(!!he){var ue=[];he=he.filter(function(rt){return ue.indexOf(rt.message)>-1?!1:ue.push(rt.message)});for(var oe=null,Fe=ee.hasGutter&&document.createDocumentFragment(),Le=0;Le<he.length;++Le){var Me=he[Le],Pe=Me.severity;Pe||(Pe="error"),oe=W(oe,Pe),ie.formatAnnotation&&(Me=ie.formatAnnotation(Me)),ee.hasGutter&&Fe.appendChild(X(Me)),Me.to&&ee.marked.push(Y.markText(Me.from,Me.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Pe,__annotation:Me}))}ee.hasGutter&&Y.setGutterMarker(be,v,q(Y,Fe,oe,ye[be].length>1,ie.tooltips)),ie.highlightLines&&Y.addLineClass(be,"wrap",x+oe)}}ie.onUpdateLinting&&ie.onUpdateLinting(fe,ye,Y)}}function J(Y){var fe=Y.state.lint;!fe||(clearTimeout(fe.timeout),fe.timeout=setTimeout(function(){C(Y)},fe.options.delay))}function _(Y,fe,ee){for(var ie=ee.target||ee.srcElement,ye=document.createDocumentFragment(),be=0;be<fe.length;be++){var he=fe[be];ye.appendChild(X(he))}g(Y,ee,ye,ie)}function Q(Y,fe){var ee=fe.target||fe.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(ee.className)){for(var ie=ee.getBoundingClientRect(),ye=(ie.left+ie.right)/2,be=(ie.top+ie.bottom)/2,he=Y.findMarksAt(Y.coordsChar({left:ye,top:be},"client")),ue=[],oe=0;oe<he.length;++oe){var Fe=he[oe].__annotation;Fe&&ue.push(Fe)}ue.length&&_(Y,ue,fe)}}c.defineOption("lint",!1,function(Y,fe,ee){if(ee&&ee!=c.Init&&(B(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",J),c.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),fe){for(var ie=Y.getOption("gutters"),ye=!1,be=0;be<ie.length;++be)ie[be]==v&&(ye=!0);var he=Y.state.lint=new L(Y,fe,ye);he.options.lintOnChange&&Y.on("change",J),he.options.tooltips!=!1&&he.options.tooltips!="gutter"&&c.on(Y.getWrapperElement(),"mouseover",he.onMouseOver),C(Y)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v=c.Pos;function x(C){var V=C.flags;return V!=null?V:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function d(C,V){for(var J=x(C),_=J,Q=0;Q<V.length;Q++)_.indexOf(V.charAt(Q))==-1&&(_+=V.charAt(Q));return J==_?C:new RegExp(C.source,_)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function S(C,V,J){V=d(V,"g");for(var _=J.line,Q=J.ch,Y=C.lastLine();_<=Y;_++,Q=0){V.lastIndex=Q;var fe=C.getLine(_),ee=V.exec(fe);if(ee)return{from:v(_,ee.index),to:v(_,ee.index+ee[0].length),match:ee}}}function g(C,V,J){if(!b(V))return S(C,V,J);V=d(V,"gm");for(var _,Q=1,Y=J.line,fe=C.lastLine();Y<=fe;){for(var ee=0;ee<Q&&!(Y>fe);ee++){var ie=C.getLine(Y++);_=_==null?ie:_+`
13
+ `+ie}Q=Q*2,V.lastIndex=J.ch;var ye=V.exec(_);if(ye){var be=_.slice(0,ye.index).split(`
14
+ `),he=ye[0].split(`
15
+ `),ue=J.line+be.length-1,oe=be[be.length-1].length;return{from:v(ue,oe),to:v(ue+he.length-1,he.length==1?oe+he[0].length:he[he.length-1].length),match:ye}}}}function L(C,V,J){for(var _,Q=0;Q<=C.length;){V.lastIndex=Q;var Y=V.exec(C);if(!Y)break;var fe=Y.index+Y[0].length;if(fe>C.length-J)break;(!_||fe>_.index+_[0].length)&&(_=Y),Q=Y.index+1}return _}function D(C,V,J){V=d(V,"g");for(var _=J.line,Q=J.ch,Y=C.firstLine();_>=Y;_--,Q=-1){var fe=C.getLine(_),ee=L(fe,V,Q<0?0:fe.length-Q);if(ee)return{from:v(_,ee.index),to:v(_,ee.index+ee[0].length),match:ee}}}function B(C,V,J){if(!b(V))return D(C,V,J);V=d(V,"gm");for(var _,Q=1,Y=C.getLine(J.line).length-J.ch,fe=J.line,ee=C.firstLine();fe>=ee;){for(var ie=0;ie<Q&&fe>=ee;ie++){var ye=C.getLine(fe--);_=_==null?ye:ye+`
16
+ `+_}Q*=2;var be=L(_,V,Y);if(be){var he=_.slice(0,be.index).split(`
17
+ `),ue=be[0].split(`
18
+ `),oe=fe+he.length,Fe=he[he.length-1].length;return{from:v(oe,Fe),to:v(oe+ue.length-1,ue.length==1?Fe+ue[0].length:ue[ue.length-1].length),match:be}}}}var j,q;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},q=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},q=function(C){return C});function W(C,V,J,_){if(C.length==V.length)return J;for(var Q=0,Y=J+Math.max(0,C.length-V.length);;){if(Q==Y)return Q;var fe=Q+Y>>1,ee=_(C.slice(0,fe)).length;if(ee==J)return fe;ee>J?Y=fe:Q=fe+1}}function M(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var fe=J.line,ee=J.ch,ie=C.lastLine()+1-Y.length;fe<=ie;fe++,ee=0){var ye=C.getLine(fe).slice(ee),be=Q(ye);if(Y.length==1){var he=be.indexOf(Y[0]);if(he==-1)continue e;var J=W(ye,be,he,Q)+ee;return{from:v(fe,W(ye,be,he,Q)+ee),to:v(fe,W(ye,be,he+Y[0].length,Q)+ee)}}else{var ue=be.length-Y[0].length;if(be.slice(ue)!=Y[0])continue e;for(var oe=1;oe<Y.length-1;oe++)if(Q(C.getLine(fe+oe))!=Y[oe])continue e;var Fe=C.getLine(fe+Y.length-1),Le=Q(Fe),Me=Y[Y.length-1];if(Le.slice(0,Me.length)!=Me)continue e;return{from:v(fe,W(ye,be,ue,Q)+ee),to:v(fe+Y.length-1,W(Fe,Le,Me.length,Q))}}}}function X(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var fe=J.line,ee=J.ch,ie=C.firstLine()-1+Y.length;fe>=ie;fe--,ee=-1){var ye=C.getLine(fe);ee>-1&&(ye=ye.slice(0,ee));var be=Q(ye);if(Y.length==1){var he=be.lastIndexOf(Y[0]);if(he==-1)continue e;return{from:v(fe,W(ye,be,he,Q)),to:v(fe,W(ye,be,he+Y[0].length,Q))}}else{var ue=Y[Y.length-1];if(be.slice(0,ue.length)!=ue)continue e;for(var oe=1,J=fe-Y.length+1;oe<Y.length-1;oe++)if(Q(C.getLine(J+oe))!=Y[oe])continue e;var Fe=C.getLine(fe+1-Y.length),Le=Q(Fe);if(Le.slice(Le.length-Y[0].length)!=Y[0])continue e;return{from:v(fe+1-Y.length,W(Fe,Le,Fe.length-Y[0].length,Q)),to:v(fe,W(ye,be,ue.length,Q))}}}}function R(C,V,J,_){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,J=J?C.clipPos(J):v(0,0),this.pos={from:J,to:J};var Q;typeof _=="object"?Q=_.caseFold:(Q=_,_=null),typeof V=="string"?(Q==null&&(Q=!1),this.matches=function(Y,fe){return(Y?X:M)(C,V,fe,Q)}):(V=d(V,"gm"),!_||_.multiline!==!1?this.matches=function(Y,fe){return(Y?B:g)(C,V,fe)}:this.matches=function(Y,fe){return(Y?D:S)(C,V,fe)})}R.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var V=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),C?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var J=this.matches(C,V);if(this.afterEmptyMatch=J&&c.cmpPos(J.from,J.to)==0,J)return this.pos=J,this.atOccurrence=!0,this.pos.match||!0;var _=v(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:_,to:_},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,V){if(!!this.atOccurrence){var J=c.splitLines(C);this.doc.replaceRange(J,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+J.length-1,J[J.length-1].length+(J.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,J){return new R(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new R(this,C,V,J)}),c.defineExtension("selectMatches",function(C,V){for(var J=[],_=this.getSearchCursor(C,this.getCursor("from"),V);_.findNext()&&!(c.cmpPos(_.to(),this.getCursor("to"))>0);)J.push({anchor:_.from(),head:_.to()});J.length&&this.setSelections(J,0)})})},4631:function(h){(function(I,a){h.exports=a()})(this,function(){"use strict";var I=navigator.userAgent,a=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),d=/Edge\/(\d+)/.exec(I),b=v||x||d,S=b&&(v?document.documentMode||6:+(d||x)[1]),g=!d&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),D=!d&&/Chrome\//.test(I),B=/Opera\//.test(I),j=/Apple Computer/.test(navigator.vendor),q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),W=/PhantomJS/.test(I),M=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),X=/Android/.test(I),R=M||X||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=M||/Mac/.test(a),V=/\bCrOS\b/.test(I),J=/win/i.test(a),_=B&&I.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(B=!1,g=!0);var Q=C&&(L||B&&(_==null||_<12.11)),Y=c||b&&S>=9;function fe(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ee=function(e,i){var u=e.className,l=fe(i).exec(u);if(l){var f=u.slice(l.index+l[0].length);e.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function ie(e){for(var i=e.childNodes.length;i>0;--i)e.removeChild(e.firstChild);return e}function ye(e,i){return ie(e).appendChild(i)}function be(e,i,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof i=="string")f.appendChild(document.createTextNode(i));else if(i)for(var m=0;m<i.length;++m)f.appendChild(i[m]);return f}function he(e,i,u,l){var f=be(e,i,u,l);return f.setAttribute("role","presentation"),f}var ue;document.createRange?ue=function(e,i,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,i),f}:ue=function(e,i,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",i),l};function oe(e,i){if(i.nodeType==3&&(i=i.parentNode),e.contains)return e.contains(i);do if(i.nodeType==11&&(i=i.host),i==e)return!0;while(i=i.parentNode)}function Fe(){var e;try{e=document.activeElement}catch(i){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Le(e,i){var u=e.className;fe(i).test(u)||(e.className+=(u?" ":"")+i)}function Me(e,i){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!fe(u[l]).test(i)&&(i+=" "+u[l]);return i}var Pe=function(e){e.select()};M?Pe=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Pe=function(e){try{e.select()}catch(i){}});function rt(e){var i=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,i)}}function Ze(e,i,u){i||(i={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!i.hasOwnProperty(l))&&(i[l]=e[l]);return i}function Xe(e,i,u,l,f){i==null&&(i=e.search(/[^\s\u00a0]/),i==-1&&(i=e.length));for(var m=l||0,F=f||0;;){var U=e.indexOf(" ",m);if(U<0||U>=i)return F+(i-m);F+=U-m,F+=u-F%u,m=U+1}}var ft=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ft.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ft.prototype.set=function(e,i){this.f=i;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function ht(e,i){for(var u=0;u<e.length;++u)if(e[u]==i)return u;return-1}var bt=50,nt={toString:function(){return"CodeMirror.Pass"}},ut={scroll:!1},yt={origin:"*mouse"},mt={origin:"+move"};function pt(e,i,u){for(var l=0,f=0;;){var m=e.indexOf(" ",l);m==-1&&(m=e.length);var F=m-l;if(m==e.length||f+F>=i)return l+Math.min(F,i-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=i)return l}}var Mt=[""];function kt(e){for(;Mt.length<=e;)Mt.push(Et(Mt)+" ");return Mt[e]}function Et(e){return e[e.length-1]}function Ht(e,i){for(var u=[],l=0;l<e.length;l++)u[l]=i(e[l],l);return u}function jt(e,i,u){for(var l=0,f=u(i);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,i)}function Vt(){}function wt(e,i){var u;return Object.create?u=Object.create(e):(Vt.prototype=e,u=new Vt),i&&Ze(i,u),u}var Dt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ve(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Dt.test(e))}function z(e,i){return i?i.source.indexOf("\\w")>-1&&ve(e)?!0:i.test(e):ve(e)}function $(e){for(var i in e)if(e.hasOwnProperty(i)&&e[i])return!1;return!0}var Se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ie(e){return e.charCodeAt(0)>=768&&Se.test(e)}function Ge(e,i,u){for(;(u<0?i>0:i<e.length)&&Ie(e.charAt(i));)i+=u;return i}function Ke(e,i,u){for(var l=i>u?-1:1;;){if(i==u)return i;var f=(i+u)/2,m=l<0?Math.ceil(f):Math.floor(f);if(m==i)return e(m)?i:u;e(m)?u=m:i=m+l}}function P(e,i,u,l){if(!e)return l(i,u,"ltr",0);for(var f=!1,m=0;m<e.length;++m){var F=e[m];(F.from<u&&F.to>i||i==u&&F.to==i)&&(l(Math.max(F.from,i),Math.min(F.to,u),F.level==1?"rtl":"ltr",m),f=!0)}f||l(i,u,"ltr")}var Re=null;function K(e,i,u){var l;Re=null;for(var f=0;f<e.length;++f){var m=e[f];if(m.from<i&&m.to>i)return f;m.to==i&&(m.from!=m.to&&u=="before"?l=f:Re=f),m.from==i&&(m.from!=m.to&&u!="before"?l=f:Re=f)}return l!=null?l:Re}var T=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(Z){return Z<=247?e.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?i.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,m=/[LRr]/,F=/[Lb1n]/,U=/[1n]/;function H(Z,me,Ce){this.level=Z,this.from=me,this.to=Ce}return function(Z,me){var Ce=me=="ltr"?"L":"R";if(Z.length==0||me=="ltr"&&!l.test(Z))return!1;for(var De=Z.length,ke=[],Ye=0;Ye<De;++Ye)ke.push(u(Z.charCodeAt(Ye)));for(var tt=0,ot=Ce;tt<De;++tt){var ct=ke[tt];ct=="m"?ke[tt]=ot:ot=ct}for(var gt=0,dt=Ce;gt<De;++gt){var xt=ke[gt];xt=="1"&&dt=="r"?ke[gt]="n":m.test(xt)&&(dt=xt,xt=="r"&&(ke[gt]="R"))}for(var Ft=1,It=ke[0];Ft<De-1;++Ft){var at=ke[Ft];at=="+"&&It=="1"&&ke[Ft+1]=="1"?ke[Ft]="1":at==","&&It==ke[Ft+1]&&(It=="1"||It=="n")&&(ke[Ft]=It),It=at}for(var Tt=0;Tt<De;++Tt){var Dr=ke[Tt];if(Dr==",")ke[Tt]="N";else if(Dr=="%"){var br=void 0;for(br=Tt+1;br<De&&ke[br]=="%";++br);for(var xn=Tt&&ke[Tt-1]=="!"||br<De&&ke[br]=="1"?"1":"N",un=Tt;un<br;++un)ke[un]=xn;Tt=br-1}}for(var Ir=0,fn=Ce;Ir<De;++Ir){var Fr=ke[Ir];fn=="L"&&Fr=="1"?ke[Ir]="L":m.test(Fr)&&(fn=Fr)}for(var kr=0;kr<De;++kr)if(f.test(ke[kr])){var Ar=void 0;for(Ar=kr+1;Ar<De&&f.test(ke[Ar]);++Ar);for(var vr=(kr?ke[kr-1]:Ce)=="L",Yr=(Ar<De?ke[Ar]:Ce)=="L",Ca=vr==Yr?vr?"L":"R":Ce,Li=kr;Li<Ar;++Li)ke[Li]=Ca;kr=Ar-1}for(var Jr=[],Gn,Wr=0;Wr<De;)if(F.test(ke[Wr])){var wl=Wr;for(++Wr;Wr<De&&F.test(ke[Wr]);++Wr);Jr.push(new H(0,wl,Wr))}else{var ni=Wr,aa=Jr.length,$n=me=="rtl"?1:0;for(++Wr;Wr<De&&ke[Wr]!="L";++Wr);for(var nr=ni;nr<Wr;)if(U.test(ke[nr])){ni<nr&&(Jr.splice(aa,0,new H(1,ni,nr)),aa+=$n);var fo=nr;for(++nr;nr<Wr&&U.test(ke[nr]);++nr);Jr.splice(aa,0,new H(2,fo,nr)),aa+=$n,ni=nr}else++nr;ni<Wr&&Jr.splice(aa,0,new H(1,ni,Wr))}return me=="ltr"&&(Jr[0].level==1&&(Gn=Z.match(/^\s+/))&&(Jr[0].from=Gn[0].length,Jr.unshift(new H(0,0,Gn[0].length))),Et(Jr).level==1&&(Gn=Z.match(/\s+$/))&&(Et(Jr).to-=Gn[0].length,Jr.push(new H(0,De-Gn[0].length,De)))),me=="rtl"?Jr.reverse():Jr}}();function O(e,i){var u=e.order;return u==null&&(u=e.order=T(e.text,i)),u}var se=[],N=function(e,i,u){if(e.addEventListener)e.addEventListener(i,u,!1);else if(e.attachEvent)e.attachEvent("on"+i,u);else{var l=e._handlers||(e._handlers={});l[i]=(l[i]||se).concat(u)}};function te(e,i){return e._handlers&&e._handlers[i]||se}function de(e,i,u){if(e.removeEventListener)e.removeEventListener(i,u,!1);else if(e.detachEvent)e.detachEvent("on"+i,u);else{var l=e._handlers,f=l&&l[i];if(f){var m=ht(f,u);m>-1&&(l[i]=f.slice(0,m).concat(f.slice(m+1)))}}}function ae(e,i){var u=te(e,i);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function pe(e,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),ae(e,u||i.type,e,i),At(i)||i.codemirrorIgnore}function Ae(e){var i=e._handlers&&e._handlers.cursorActivity;if(!!i)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)ht(u,i[l])==-1&&u.push(i[l])}function Be(e,i){return te(e,i).length>0}function Ue(e){e.prototype.on=function(i,u){N(this,i,u)},e.prototype.off=function(i,u){de(this,i,u)}}function Qe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function vt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function At(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Bt(e){Qe(e),vt(e)}function Pt(e){return e.target||e.srcElement}function dn(e){var i=e.which;return i==null&&(e.button&1?i=1:e.button&2?i=3:e.button&4&&(i=2)),C&&e.ctrlKey&&i==1&&(i=3),i}var Br=function(){if(b&&S<9)return!1;var e=be("div");return"draggable"in e||"dragDrop"in e}(),Cr;function bi(e){if(Cr==null){var i=be("span","\u200B");ye(e,be("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Cr=i.offsetWidth<=1&&i.offsetHeight>2&&!(b&&S<8))}var u=Cr?be("span","\u200B"):be("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Gr;function ji(e){if(Gr!=null)return Gr;var i=ye(e,document.createTextNode("A\u062EA")),u=ue(i,0,1).getBoundingClientRect(),l=ue(i,1,2).getBoundingClientRect();return ie(e),!u||u.left==u.right?!1:Gr=l.right-u.right<3}var Nn=`
19
+
20
+ b`.split(/\n/).length!=3?function(e){for(var i=0,u=[],l=e.length;i<=l;){var f=e.indexOf(`
21
+ `,i);f==-1&&(f=e.length);var m=e.slice(i,e.charAt(f-1)=="\r"?f-1:f),F=m.indexOf("\r");F!=-1?(u.push(m.slice(0,F)),i+=F+1):(u.push(m),i=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},pn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(i){return!1}}:function(e){var i;try{i=e.ownerDocument.selection.createRange()}catch(u){}return!i||i.parentElement()!=e?!1:i.compareEndPoints("StartToEnd",i)!=0},On=function(){var e=be("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),$r=null;function wi(e){if($r!=null)return $r;var i=ye(e,be("span","x")),u=i.getBoundingClientRect(),l=ue(i,0,1).getBoundingClientRect();return $r=Math.abs(u.left-l.left)>1}var Si={},en={};function hn(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Si[e]=i}function Bn(e,i){en[e]=i}function Un(e){if(typeof e=="string"&&en.hasOwnProperty(e))e=en[e];else if(e&&typeof e.name=="string"&&en.hasOwnProperty(e.name)){var i=en[e.name];typeof i=="string"&&(i={name:i}),e=wt(i,e),e.name=i.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Un("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Un("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function vn(e,i){i=Un(i);var u=Si[i.name];if(!u)return vn(e,"text/plain");var l=u(e,i);if(Xn.hasOwnProperty(i.name)){var f=Xn[i.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var F in i.modeProps)l[F]=i.modeProps[F];return l}var Xn={};function Ai(e,i){var u=Xn.hasOwnProperty(e)?Xn[e]:Xn[e]={};Ze(i,u)}function Ur(e,i){if(i===!0)return i;if(e.copyState)return e.copyState(i);var u={};for(var l in i){var f=i[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function Kr(e,i){for(var u;e.innerMode&&(u=e.innerMode(i),!(!u||u.mode==e));)i=u.state,e=u.mode;return u||{mode:e,state:i}}function Qn(e,i,u){return e.startState?e.startState(i,u):!0}var fr=function(e,i,u){this.pos=this.start=0,this.string=e,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};fr.prototype.eol=function(){return this.pos>=this.string.length},fr.prototype.sol=function(){return this.pos==this.lineStart},fr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},fr.prototype.eat=function(e){var i=this.string.charAt(this.pos),u;if(typeof e=="string"?u=i==e:u=i&&(e.test?e.test(i):e(i)),u)return++this.pos,i},fr.prototype.eatWhile=function(e){for(var i=this.pos;this.eat(e););return this.pos>i},fr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},fr.prototype.skipToEnd=function(){this.pos=this.string.length},fr.prototype.skipTo=function(e){var i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0},fr.prototype.backUp=function(e){this.pos-=e},fr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},fr.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},fr.prototype.match=function(e,i,u){if(typeof e=="string"){var l=function(F){return u?F.toLowerCase():F},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return i!==!1&&(this.pos+=e.length),!0}else{var m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},fr.prototype.current=function(){return this.string.slice(this.start,this.pos)},fr.prototype.hideFirstChars=function(e,i){this.lineStart+=e;try{return i()}finally{this.lineStart-=e}},fr.prototype.lookAhead=function(e){var i=this.lineOracle;return i&&i.lookAhead(e)},fr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ot(e,i){if(i-=e.first,i<0||i>=e.size)throw new Error("There is no line "+(i+e.first)+" in the document.");for(var u=e;!u.lines;)for(var l=0;;++l){var f=u.children[l],m=f.chunkSize();if(i<m){u=f;break}i-=m}return u.lines[i]}function ai(e,i,u){var l=[],f=i.line;return e.iter(i.line,u.line+1,function(m){var F=m.text;f==u.line&&(F=F.slice(0,u.ch)),f==i.line&&(F=F.slice(i.ch)),l.push(F),++f}),l}function Ei(e,i,u){var l=[];return e.iter(i,u,function(f){l.push(f.text)}),l}function Sn(e,i){var u=i-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function Zt(e){if(e.parent==null)return null;for(var i=e.parent,u=ht(i.lines,e),l=i.parent;l;i=l,l=l.parent)for(var f=0;l.children[f]!=i;++f)u+=l.children[f].chunkSize();return u+i.first}function jn(e,i){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],m=f.height;if(i<m){e=f;continue e}i-=m,u+=f.chunkSize()}return u}while(!e.lines);for(var F=0;F<e.lines.length;++F){var U=e.lines[F],H=U.height;if(i<H)break;i-=H}return u+F}function Zn(e,i){return i>=e.first&&i<e.first+e.size}function fa(e,i){return String(e.lineNumberFormatter(i+e.firstLineNumber))}function it(e,i,u){if(u===void 0&&(u=null),!(this instanceof it))return new it(e,i,u);this.line=e,this.ch=i,this.sticky=u}function Lt(e,i){return e.line-i.line||e.ch-i.ch}function oi(e,i){return e.sticky==i.sticky&&Lt(e,i)==0}function le(e){return it(e.line,e.ch)}function Oe(e,i){return Lt(e,i)<0?i:e}function qe(e,i){return Lt(e,i)<0?e:i}function st(e,i){return Math.max(e.first,Math.min(i,e.first+e.size-1))}function lt(e,i){if(i.line<e.first)return it(e.first,0);var u=e.first+e.size-1;return i.line>u?it(u,Ot(e,u).text.length):Kt(i,Ot(e,i.line).text.length)}function Kt(e,i){var u=e.ch;return u==null||u>i?it(e.line,i):u<0?it(e.line,0):e}function Xt(e,i){for(var u=[],l=0;l<i.length;l++)u[l]=lt(e,i[l]);return u}var Or=function(e,i){this.state=e,this.lookAhead=i},Tr=function(e,i,u,l){this.state=i,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Tr.prototype.lookAhead=function(e){var i=this.doc.getLine(this.line+e);return i!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),i},Tr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tr.fromSaved=function(e,i,u){return i instanceof Or?new Tr(e,Ur(e.mode,i.state),u,i.lookAhead):new Tr(e,Ur(e.mode,i),u)},Tr.prototype.save=function(e){var i=e!==!1?Ur(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Or(i,this.maxLookAhead):i};function _t(e,i,u,l){var f=[e.state.modeGen],m={};zl(e,i.text,e.doc.mode,u,function(Z,me){return f.push(Z,me)},m,l);for(var F=u.state,U=function(Z){u.baseTokens=f;var me=e.state.overlays[Z],Ce=1,De=0;u.state=!0,zl(e,i.text,me.mode,u,function(ke,Ye){for(var tt=Ce;De<ke;){var ot=f[Ce];ot>ke&&f.splice(Ce,1,ke,f[Ce+1],ot),Ce+=2,De=Math.min(ke,ot)}if(!!Ye)if(me.opaque)f.splice(tt,Ce-tt,ke,"overlay "+Ye),Ce=tt+2;else for(;tt<Ce;tt+=2){var ct=f[tt+1];f[tt+1]=(ct?ct+" ":"")+"overlay "+Ye}},m),u.state=F,u.baseTokens=null,u.baseTokenPos=1},H=0;H<e.state.overlays.length;++H)U(H);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function Wl(e,i,u){if(!i.styles||i.styles[0]!=e.state.modeGen){var l=tn(e,Zt(i)),f=i.text.length>e.options.maxHighlightLength&&Ur(e.doc.mode,l.state),m=_t(e,i,l);f&&(l.state=f),i.stateAfter=l.save(!f),i.styles=m.styles,m.classes?i.styleClasses=m.classes:i.styleClasses&&(i.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return i.styles}function tn(e,i,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Tr(l,!0,i);var m=Mf(e,i,u),F=m>l.first&&Ot(l,m-1).stateAfter,U=F?Tr.fromSaved(l,F,m):new Tr(l,Qn(l.mode),m);return l.iter(m,i,function(H){ys(e,H.text,U);var Z=U.line;H.stateAfter=Z==i-1||Z%5==0||Z>=f.viewFrom&&Z<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function ys(e,i,u,l){var f=e.doc.mode,m=new fr(i,e.options.tabSize,u);for(m.start=m.pos=l||0,i==""&&xo(f,u.state);!m.eol();)ms(f,m,u.state),m.start=m.pos}function xo(e,i){if(e.blankLine)return e.blankLine(i);if(!!e.innerMode){var u=Kr(e,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function ms(e,i,u,l){for(var f=0;f<10;f++){l&&(l[0]=Kr(e,u).mode);var m=e.token(i,u);if(i.pos>i.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var xs=function(e,i,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=u};function bs(e,i,u,l){var f=e.doc,m=f.mode,F;i=lt(f,i);var U=Ot(f,i.line),H=tn(e,i.line,u),Z=new fr(U.text,e.options.tabSize,H),me;for(l&&(me=[]);(l||Z.pos<i.ch)&&!Z.eol();)Z.start=Z.pos,F=ms(m,Z,H.state),l&&me.push(new xs(Z,F,Ur(f.mode,H.state)));return l?me:new xs(Z,F,H.state)}function Hl(e,i){if(e)for(;;){var u=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;e=e.slice(0,u.index)+e.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";i[l]==null?i[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+u[2])}return e}function zl(e,i,u,l,f,m,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var H=0,Z=null,me=new fr(i,e.options.tabSize,l),Ce,De=e.options.addModeClass&&[null];for(i==""&&Hl(xo(u,l.state),m);!me.eol();){if(me.pos>e.options.maxHighlightLength?(U=!1,F&&ys(e,i,l,me.pos),me.pos=i.length,Ce=null):Ce=Hl(ms(u,me,l.state,De),m),De){var ke=De[0].name;ke&&(Ce="m-"+(Ce?ke+" "+Ce:ke))}if(!U||Z!=Ce){for(;H<me.start;)H=Math.min(me.start,H+5e3),f(H,Z);Z=Ce}me.start=me.pos}for(;H<me.pos;){var Ye=Math.min(me.pos,H+5e3);f(Ye,Z),H=Ye}}function Mf(e,i,u){for(var l,f,m=e.doc,F=u?-1:i-(e.doc.mode.innerMode?1e3:100),U=i;U>F;--U){if(U<=m.first)return m.first;var H=Ot(m,U-1),Z=H.stateAfter;if(Z&&(!u||U+(Z instanceof Or?Z.lookAhead:0)<=m.modeFrontier))return U;var me=Xe(H.text,null,e.options.tabSize);(f==null||l>me)&&(f=U-1,l=me)}return f}function Rf(e,i){if(e.modeFrontier=Math.min(e.modeFrontier,i),!(e.highlightFrontier<i-10)){for(var u=e.first,l=i-1;l>u;l--){var f=Ot(e,l).stateAfter;if(f&&(!(f instanceof Or)||l+f.lookAhead<i)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Lf=!1,Ci=!1;function Df(){Lf=!0}function Nf(){Ci=!0}function bo(e,i,u){this.marker=e,this.from=i,this.to=u}function Ia(e,i){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==i)return l}}function Bf(e,i){for(var u,l=0;l<e.length;++l)e[l]!=i&&(u||(u=[])).push(e[l]);return u}function Td(e,i,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&l.has(e.markedSpans)?e.markedSpans.push(i):(e.markedSpans=e.markedSpans?e.markedSpans.concat([i]):[i],l&&l.add(e.markedSpans)),i.marker.attachLine(e)}function Pd(e,i,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.from==null||(F.inclusiveLeft?m.from<=i:m.from<i);if(U||m.from==i&&F.type=="bookmark"&&(!u||!m.marker.insertLeft)){var H=m.to==null||(F.inclusiveRight?m.to>=i:m.to>i);(l||(l=[])).push(new bo(F,m.from,H?null:m.to))}}return l}function Id(e,i,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.to==null||(F.inclusiveRight?m.to>=i:m.to>i);if(U||m.from==i&&F.type=="bookmark"&&(!u||m.marker.insertLeft)){var H=m.from==null||(F.inclusiveLeft?m.from<=i:m.from<i);(l||(l=[])).push(new bo(F,H?null:m.from-i,m.to==null?null:m.to-i))}}return l}function Gl(e,i){if(i.full)return null;var u=Zn(e,i.from.line)&&Ot(e,i.from.line).markedSpans,l=Zn(e,i.to.line)&&Ot(e,i.to.line).markedSpans;if(!u&&!l)return null;var f=i.from.ch,m=i.to.ch,F=Lt(i.from,i.to)==0,U=Pd(u,f,F),H=Id(l,m,F),Z=i.text.length==1,me=Et(i.text).length+(Z?f:0);if(U)for(var Ce=0;Ce<U.length;++Ce){var De=U[Ce];if(De.to==null){var ke=Ia(H,De.marker);ke?Z&&(De.to=ke.to==null?null:ke.to+me):De.to=f}}if(H)for(var Ye=0;Ye<H.length;++Ye){var tt=H[Ye];if(tt.to!=null&&(tt.to+=me),tt.from==null){var ot=Ia(U,tt.marker);ot||(tt.from=me,Z&&(U||(U=[])).push(tt))}else tt.from+=me,Z&&(U||(U=[])).push(tt)}U&&(U=$l(U)),H&&H!=U&&(H=$l(H));var ct=[U];if(!Z){var gt=i.text.length-2,dt;if(gt>0&&U)for(var xt=0;xt<U.length;++xt)U[xt].to==null&&(dt||(dt=[])).push(new bo(U[xt].marker,null,null));for(var Ft=0;Ft<gt;++Ft)ct.push(dt);ct.push(H)}return ct}function $l(e){for(var i=0;i<e.length;++i){var u=e[i];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&e.splice(i--,1)}return e.length?e:null}function Kl(e,i,u){var l=null;if(e.iter(i.line,u.line+1,function(ke){if(ke.markedSpans)for(var Ye=0;Ye<ke.markedSpans.length;++Ye){var tt=ke.markedSpans[Ye].marker;tt.readOnly&&(!l||ht(l,tt)==-1)&&(l||(l=[])).push(tt)}}),!l)return null;for(var f=[{from:i,to:u}],m=0;m<l.length;++m)for(var F=l[m],U=F.find(0),H=0;H<f.length;++H){var Z=f[H];if(!(Lt(Z.to,U.from)<0||Lt(Z.from,U.to)>0)){var me=[H,1],Ce=Lt(Z.from,U.from),De=Lt(Z.to,U.to);(Ce<0||!F.inclusiveLeft&&!Ce)&&me.push({from:Z.from,to:U.from}),(De>0||!F.inclusiveRight&&!De)&&me.push({from:U.to,to:Z.to}),f.splice.apply(f,me),H+=me.length-3}}return f}function Yl(e){var i=e.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(e);e.markedSpans=null}}function Uf(e,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(e);e.markedSpans=i}}function ws(e){return e.inclusiveLeft?-1:0}function Ss(e){return e.inclusiveRight?1:0}function Jl(e,i){var u=e.lines.length-i.lines.length;if(u!=0)return u;var l=e.find(),f=i.find(),m=Lt(l.from,f.from)||ws(e)-ws(i);if(m)return-m;var F=Lt(l.to,f.to)||Ss(e)-Ss(i);return F||i.id-e.id}function Fa(e,i){var u=Ci&&e.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(i?f.from:f.to)==null&&(!l||Jl(l,f.marker)<0)&&(l=f.marker);return l}function As(e){return Fa(e,!0)}function Vi(e){return Fa(e,!1)}function jf(e,i){var u=Ci&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<i)&&(m.to==null||m.to>i)&&(!l||Jl(l,m.marker)<0)&&(l=m.marker)}return l}function wo(e,i,u,l,f){var m=Ot(e,i),F=Ci&&m.markedSpans;if(F)for(var U=0;U<F.length;++U){var H=F[U];if(!!H.marker.collapsed){var Z=H.marker.find(0),me=Lt(Z.from,u)||ws(H.marker)-ws(f),Ce=Lt(Z.to,l)||Ss(H.marker)-Ss(f);if(!(me>=0&&Ce<=0||me<=0&&Ce>=0)&&(me<=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.to,u)>=0:Lt(Z.to,u)>0)||me>=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.from,l)<=0:Lt(Z.from,l)<0)))return!0}}}function Vn(e){for(var i;i=As(e);)e=i.find(-1,!0).line;return e}function Xl(e){for(var i;i=Vi(e);)e=i.find(1,!0).line;return e}function Vf(e){for(var i,u;i=Vi(e);)e=i.find(1,!0).line,(u||(u=[])).push(e);return u}function ka(e,i){var u=Ot(e,i),l=Vn(u);return u==l?i:Zt(l)}function Es(e,i){if(i>e.lastLine())return i;var u=Ot(e,i),l;if(!si(e,u))return i;for(;l=Vi(u);)u=l.find(1,!0).line;return Zt(u)+1}function si(e,i){var u=Ci&&i.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&cr(e,i,l))return!0}}}function cr(e,i,u){if(u.to==null){var l=u.marker.find(1,!0);return cr(e,l.line,Ia(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==i.text.length)return!0;for(var f=void 0,m=0;m<i.markedSpans.length;++m)if(f=i.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&cr(e,i,f))return!0}function li(e){e=Vn(e);for(var i=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;i+=f.height}for(var m=u.parent;m;u=m,m=u.parent)for(var F=0;F<m.children.length;++F){var U=m.children[F];if(U==u)break;i+=U.height}return i}function Wi(e){if(e.height==0)return 0;for(var i=e.text.length,u,l=e;u=As(l);){var f=u.find(0,!0);l=f.from.line,i+=f.from.ch-f.to.ch}for(l=e;u=Vi(l);){var m=u.find(0,!0);i-=l.text.length-m.from.ch,l=m.to.line,i+=l.text.length-m.to.ch}return i}function Cs(e){var i=e.display,u=e.doc;i.maxLine=Ot(u,u.first),i.maxLineLength=Wi(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var f=Wi(l);f>i.maxLineLength&&(i.maxLineLength=f,i.maxLine=l)})}var Hi=function(e,i,u){this.text=e,Uf(this,i),this.height=u?u(this):1};Hi.prototype.lineNo=function(){return Zt(this)},Ue(Hi);function Oi(e,i,u,l){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Yl(e),Uf(e,u);var f=l?l(e):1;f!=e.height&&Sn(e,f)}function zi(e){e.parent=null,Yl(e)}var Os={},Ts={};function Ql(e,i){if(!e||/^\s*$/.test(e))return null;var u=i.addModeClass?Ts:Os;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function Ps(e,i){var u=he("span",null,null,g?"padding-right: .1px":null),l={pre:he("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};i.measure={};for(var f=0;f<=(i.rest?i.rest.length:0);f++){var m=f?i.rest[f-1]:i.line,F=void 0;l.pos=0,l.addToken=Fs,ji(e.display.measure)&&(F=O(m,e.doc.direction))&&(l.addToken=Wf(l.addToken,F)),l.map=[];var U=i!=e.display.externalMeasured&&Zt(m);Hf(m,l,Wl(e,m,U)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Me(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Me(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(bi(e.display.measure))),f==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(g){var H=l.content.lastChild;(/\bcm-tab\b/.test(H.className)||H.querySelector&&H.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return ae(e,"renderLine",e,i.line,l.pre),l.pre.className&&(l.textClass=Me(l.pre.className,l.textClass||"")),l}function Is(e){var i=be("span","\u2022","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Fs(e,i,u,l,f,m,F){if(!!i){var U=e.splitSpaces?Gi(i,e.trailingSpace):i,H=e.cm.state.specialChars,Z=!1,me;if(!H.test(i))e.col+=i.length,me=document.createTextNode(U),e.map.push(e.pos,e.pos+i.length,me),b&&S<9&&(Z=!0),e.pos+=i.length;else{me=document.createDocumentFragment();for(var Ce=0;;){H.lastIndex=Ce;var De=H.exec(i),ke=De?De.index-Ce:i.length-Ce;if(ke){var Ye=document.createTextNode(U.slice(Ce,Ce+ke));b&&S<9?me.appendChild(be("span",[Ye])):me.appendChild(Ye),e.map.push(e.pos,e.pos+ke,Ye),e.col+=ke,e.pos+=ke}if(!De)break;Ce+=ke+1;var tt=void 0;if(De[0]==" "){var ot=e.cm.options.tabSize,ct=ot-e.col%ot;tt=me.appendChild(be("span",kt(ct),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=ct}else De[0]=="\r"||De[0]==`
22
+ `?(tt=me.appendChild(be("span",De[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),tt.setAttribute("cm-text",De[0]),e.col+=1):(tt=e.cm.options.specialCharPlaceholder(De[0]),tt.setAttribute("cm-text",De[0]),b&&S<9?me.appendChild(be("span",[tt])):me.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=U.charCodeAt(i.length-1)==32,u||l||f||Z||m||F){var gt=u||"";l&&(gt+=l),f&&(gt+=f);var dt=be("span",[me],gt,m);if(F)for(var xt in F)F.hasOwnProperty(xt)&&xt!="style"&&xt!="class"&&dt.setAttribute(xt,F[xt]);return e.content.appendChild(dt)}e.content.appendChild(me)}}function Gi(e,i){if(e.length>1&&!/ /.test(e))return e;for(var u=i,l="",f=0;f<e.length;f++){var m=e.charAt(f);m==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function Wf(e,i){return function(u,l,f,m,F,U,H){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,me=Z+l.length;;){for(var Ce=void 0,De=0;De<i.length&&(Ce=i[De],!(Ce.to>Z&&Ce.from<=Z));De++);if(Ce.to>=me)return e(u,l,f,m,F,U,H);e(u,l.slice(0,Ce.to-Z),f,m,null,U,H),m=null,l=l.slice(Ce.to-Z),Z=Ce.to}}}function ir(e,i,u,l){var f=!l&&u.widgetNode;f&&e.map.push(e.pos,e.pos+i,f),!l&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=i,e.trailingSpace=!1}function Hf(e,i,u){var l=e.markedSpans,f=e.text,m=0;if(!l){for(var F=1;F<u.length;F+=2)i.addToken(i,f.slice(m,m=u[F]),Ql(u[F+1],i.cm.options));return}for(var U=f.length,H=0,Z=1,me="",Ce,De,ke=0,Ye,tt,ot,ct,gt;;){if(ke==H){Ye=tt=ot=De="",gt=null,ct=null,ke=1/0;for(var dt=[],xt=void 0,Ft=0;Ft<l.length;++Ft){var It=l[Ft],at=It.marker;if(at.type=="bookmark"&&It.from==H&&at.widgetNode)dt.push(at);else if(It.from<=H&&(It.to==null||It.to>H||at.collapsed&&It.to==H&&It.from==H)){if(It.to!=null&&It.to!=H&&ke>It.to&&(ke=It.to,tt=""),at.className&&(Ye+=" "+at.className),at.css&&(De=(De?De+";":"")+at.css),at.startStyle&&It.from==H&&(ot+=" "+at.startStyle),at.endStyle&&It.to==ke&&(xt||(xt=[])).push(at.endStyle,It.to),at.title&&((gt||(gt={})).title=at.title),at.attributes)for(var Tt in at.attributes)(gt||(gt={}))[Tt]=at.attributes[Tt];at.collapsed&&(!ct||Jl(ct.marker,at)<0)&&(ct=It)}else It.from>H&&ke>It.from&&(ke=It.from)}if(xt)for(var Dr=0;Dr<xt.length;Dr+=2)xt[Dr+1]==ke&&(tt+=" "+xt[Dr]);if(!ct||ct.from==H)for(var br=0;br<dt.length;++br)ir(i,0,dt[br]);if(ct&&(ct.from||0)==H){if(ir(i,(ct.to==null?U+1:ct.to)-H,ct.marker,ct.from==null),ct.to==null)return;ct.to==H&&(ct=!1)}}if(H>=U)break;for(var xn=Math.min(U,ke);;){if(me){var un=H+me.length;if(!ct){var Ir=un>xn?me.slice(0,xn-H):me;i.addToken(i,Ir,Ce?Ce+Ye:Ye,ot,H+Ir.length==ke?tt:"",De,gt)}if(un>=xn){me=me.slice(xn-H),H=xn;break}H=un,ot=""}me=f.slice(m,m=u[Z++]),Ce=Ql(u[Z++],i.cm.options)}}}function Zl(e,i,u){this.line=i,this.rest=Vf(i),this.size=this.rest?Zt(Et(this.rest))-u+1:1,this.node=this.text=null,this.hidden=si(e,i)}function So(e,i,u){for(var l=[],f,m=i;m<u;m=f){var F=new Zl(e.doc,Ot(e.doc,m),m);f=m+F.size,l.push(F)}return l}var rn=null;function _l(e){rn?rn.ops.push(e):e.ownsGroup=rn={ops:[e],delayedCallbacks:[]}}function ql(e){var i=e.delayedCallbacks,u=0;do{for(;u<i.length;u++)i[u].call(null);for(var l=0;l<e.ops.length;l++){var f=e.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<i.length)}function ks(e,i){var u=e.ownsGroup;if(!!u)try{ql(u)}finally{rn=null,i(u)}}var Ma=null;function ar(e,i){var u=te(e,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;rn?f=rn.delayedCallbacks:Ma?f=Ma:(f=Ma=[],setTimeout(zf,0));for(var m=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)m(F)}}function zf(){var e=Ma;Ma=null;for(var i=0;i<e.length;++i)e[i]()}function Ao(e,i,u,l){for(var f=0;f<i.changes.length;f++){var m=i.changes[f];m=="text"?Gf(e,i):m=="gutter"?La(e,i,u,l):m=="class"?Ms(e,i):m=="widget"&&$f(e,i,l)}i.changes=null}function Ra(e){return e.node==e.text&&(e.node=be("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&S<8&&(e.node.style.zIndex=2)),e.node}function eu(e,i){var u=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),i.background)u?i.background.className=u:(i.background.parentNode.removeChild(i.background),i.background=null);else if(u){var l=Ra(i);i.background=l.insertBefore(be("div",null,u),l.firstChild),e.display.input.setUneditable(i.background)}}function tu(e,i){var u=e.display.externalMeasured;return u&&u.line==i.line?(e.display.externalMeasured=null,i.measure=u.measure,u.built):Ps(e,i)}function Gf(e,i){var u=i.text.className,l=tu(e,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,Ms(e,i)):u&&(i.text.className=u)}function Ms(e,i){eu(e,i),i.line.wrapClass?Ra(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var u=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=u||""}function La(e,i,u,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var f=Ra(i);i.gutterBackground=be("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(i.gutterBackground),f.insertBefore(i.gutterBackground,i.text)}var m=i.line.gutterMarkers;if(e.options.lineNumbers||m){var F=Ra(i),U=i.gutter=be("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(U.setAttribute("aria-hidden","true"),e.display.input.setUneditable(U),F.insertBefore(U,i.text),i.line.gutterClass&&(U.className+=" "+i.line.gutterClass),e.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(i.lineNumber=U.appendChild(be("div",fa(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=e.display.gutterSpecs[H].className,me=m.hasOwnProperty(Z)&&m[Z];me&&U.appendChild(be("div",[me],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function $f(e,i,u){i.alignable&&(i.alignable=null);for(var l=fe("CodeMirror-linewidget"),f=i.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&i.node.removeChild(f);ru(e,i,u)}function qt(e,i,u,l){var f=tu(e,i);return i.text=i.node=f.pre,f.bgClass&&(i.bgClass=f.bgClass),f.textClass&&(i.textClass=f.textClass),Ms(e,i),La(e,i,u,l),ru(e,i,l),i.node}function ru(e,i,u){if(Qt(e,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)Qt(e,i.rest[l],i,u,!1)}function Qt(e,i,u,l,f){if(!!i.widgets)for(var m=Ra(u),F=0,U=i.widgets;F<U.length;++F){var H=U[F],Z=be("div",[H.node],"CodeMirror-linewidget"+(H.className?" "+H.className:""));H.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),Kf(H,Z,u,l),e.display.input.setUneditable(Z),f&&H.above?m.insertBefore(Z,u.gutter||u.text):m.appendChild(Z),ar(H,"redraw")}}function Kf(e,i,u,l){if(e.noHScroll){(u.alignable||(u.alignable=[])).push(i);var f=l.wrapperWidth;i.style.left=l.fixedPos+"px",e.coverGutter||(f-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=f+"px"}e.coverGutter&&(i.style.zIndex=5,i.style.position="relative",e.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ct(e){if(e.height!=null)return e.height;var i=e.doc.cm;if(!i)return 0;if(!oe(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+i.display.wrapper.clientWidth+"px;"),ye(i.display.measure,be("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function ui(e,i){for(var u=Pt(i);u!=e.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==e.sizer&&u!=e.mover)return!0}function Da(e){return e.lineSpace.offsetTop}function Rs(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function sn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var i=ye(e.measure,be("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function fi(e){return bt-e.display.nativeBarWidth}function $i(e){return e.display.scroller.clientWidth-fi(e)-e.display.barWidth}function Na(e){return e.display.scroller.clientHeight-fi(e)-e.display.barHeight}function Yf(e,i,u){var l=e.options.lineWrapping,f=l&&$i(e);if(!i.measure.heights||l&&i.measure.width!=f){var m=i.measure.heights=[];if(l){i.measure.width=f;for(var F=i.text.firstChild.getClientRects(),U=0;U<F.length-1;U++){var H=F[U],Z=F[U+1];Math.abs(H.bottom-Z.bottom)>2&&m.push((H.bottom+Z.top)/2-u.top)}}m.push(u.bottom-u.top)}}function Ls(e,i,u){if(e.line==i)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var l=0;l<e.rest.length;l++)if(e.rest[l]==i)return{map:e.measure.maps[l],cache:e.measure.caches[l]};for(var f=0;f<e.rest.length;f++)if(Zt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function Jf(e,i){i=Vn(i);var u=Zt(i),l=e.display.externalMeasured=new Zl(e.doc,i,u);l.lineN=u;var f=l.built=Ps(e,l);return l.text=f.pre,ye(e.display.lineMeasure,f.pre),l}function Eo(e,i,u,l){return Wn(e,_n(e,i),u,l)}function Ds(e,i){if(i>=e.display.viewFrom&&i<e.display.viewTo)return e.display.view[Xi(e,i)];var u=e.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function _n(e,i){var u=Zt(i),l=Ds(e,u);l&&!l.text?l=null:l&&l.changes&&(Ao(e,l,u,Hs(e)),e.curOp.forceUpdate=!0),l||(l=Jf(e,i));var f=Ls(l,i,u);return{line:i,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Wn(e,i,u,l,f){i.before&&(u=-1);var m=u+(l||""),F;return i.cache.hasOwnProperty(m)?F=i.cache[m]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Yf(e,i.view,i.rect),i.hasHeights=!0),F=nu(e,i,u,l),F.bogus||(i.cache[m]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var Co={left:0,right:0,top:0,bottom:0};function Ns(e,i,u){for(var l,f,m,F,U,H,Z=0;Z<e.length;Z+=3)if(U=e[Z],H=e[Z+1],i<U?(f=0,m=1,F="left"):i<H?(f=i-U,m=f+1):(Z==e.length-3||i==H&&e[Z+3]>i)&&(m=H-U,f=m-1,i>=H&&(F="right")),f!=null){if(l=e[Z+2],U==H&&u==(l.insertLeft?"left":"right")&&(F=u),u=="left"&&f==0)for(;Z&&e[Z-2]==e[Z-3]&&e[Z-1].insertLeft;)l=e[(Z-=3)+2],F="left";if(u=="right"&&f==H-U)for(;Z<e.length-3&&e[Z+3]==e[Z+4]&&!e[Z+5].insertLeft;)l=e[(Z+=3)+2],F="right";break}return{node:l,start:f,end:m,collapse:F,coverStart:U,coverEnd:H}}function Bs(e,i){var u=Co;if(i=="left")for(var l=0;l<e.length&&(u=e[l]).left==u.right;l++);else for(var f=e.length-1;f>=0&&(u=e[f]).left==u.right;f--);return u}function nu(e,i,u,l){var f=Ns(i.map,u,l),m=f.node,F=f.start,U=f.end,H=f.collapse,Z;if(m.nodeType==3){for(var me=0;me<4;me++){for(;F&&Ie(i.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Ie(i.line.text.charAt(f.coverStart+U));)++U;if(b&&S<9&&F==0&&U==f.coverEnd-f.coverStart?Z=m.parentNode.getBoundingClientRect():Z=Bs(ue(m,F,U).getClientRects(),l),Z.left||Z.right||F==0)break;U=F,F=F-1,H="right"}b&&S<11&&(Z=iu(e.display.measure,Z))}else{F>0&&(H=l="right");var Ce;e.options.lineWrapping&&(Ce=m.getClientRects()).length>1?Z=Ce[l=="right"?Ce.length-1:0]:Z=m.getBoundingClientRect()}if(b&&S<9&&!F&&(!Z||!Z.left&&!Z.right)){var De=m.parentNode.getClientRects()[0];De?Z={left:De.left,right:De.left+Tn(e.display),top:De.top,bottom:De.bottom}:Z=Co}for(var ke=Z.top-i.rect.top,Ye=Z.bottom-i.rect.top,tt=(ke+Ye)/2,ot=i.view.measure.heights,ct=0;ct<ot.length-1&&!(tt<ot[ct]);ct++);var gt=ct?ot[ct-1]:0,dt=ot[ct],xt={left:(H=="right"?Z.right:Z.left)-i.rect.left,right:(H=="left"?Z.left:Z.right)-i.rect.left,top:gt,bottom:dt};return!Z.left&&!Z.right&&(xt.bogus=!0),e.options.singleCursorHeightPerLine||(xt.rtop=ke,xt.rbottom=Ye),xt}function iu(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wi(e))return i;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*u,right:i.right*u,top:i.top*l,bottom:i.bottom*l}}function Us(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var i=0;i<e.rest.length;i++)e.measure.caches[i]={}}function Ki(e){e.display.externalMeasure=null,ie(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)Us(e.display.view[i])}function Ba(e){Ki(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ua(){return D&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function au(){return D&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ja(e){var i=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(i+=Ct(e.widgets[u]));return i}function Oo(e,i,u,l,f){if(!f){var m=ja(i);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var F=li(i);if(l=="local"?F+=Da(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:au());var H=U.left+(l=="window"?0:Ua());u.left+=H,u.right+=H}return u.top+=F,u.bottom+=F,u}function Va(e,i,u){if(u=="div")return i;var l=i.left,f=i.top;if(u=="page")l-=Ua(),f-=au();else if(u=="local"||!u){var m=e.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function To(e,i,u,l,f){return l||(l=Ot(e.doc,i.line)),Oo(e,l,Eo(e,l,i.ch,f),u)}function Hn(e,i,u,l,f,m){l=l||Ot(e.doc,i.line),f||(f=_n(e,l));function F(Ye,tt){var ot=Wn(e,f,Ye,tt?"right":"left",m);return tt?ot.left=ot.right:ot.right=ot.left,Oo(e,l,ot,u)}var U=O(l,e.doc.direction),H=i.ch,Z=i.sticky;if(H>=l.text.length?(H=l.text.length,Z="before"):H<=0&&(H=0,Z="after"),!U)return F(Z=="before"?H-1:H,Z=="before");function me(Ye,tt,ot){var ct=U[tt],gt=ct.level==1;return F(ot?Ye-1:Ye,gt!=ot)}var Ce=K(U,H,Z),De=Re,ke=me(H,Ce,Z=="before");return De!=null&&(ke.other=me(H,De,Z!="before")),ke}function ou(e,i){var u=0;i=lt(e.doc,i),e.options.lineWrapping||(u=Tn(e.display)*i.ch);var l=Ot(e.doc,i.line),f=li(l)+Da(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function js(e,i,u,l,f){var m=it(e,i,u);return m.xRel=f,l&&(m.outside=l),m}function Vs(e,i,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return js(l.first,0,null,-1,-1);var f=jn(l,u),m=l.first+l.size-1;if(f>m)return js(l.first+l.size-1,Ot(l,m).text.length,null,1,1);i<0&&(i=0);for(var F=Ot(l,f);;){var U=Xf(e,F,f,i,u),H=jf(F,U.ch+(U.xRel>0||U.outside>0?1:0));if(!H)return U;var Z=H.find(1);if(Z.line==f)return Z;F=Ot(l,f=Z.line)}}function su(e,i,u,l){l-=ja(i);var f=i.text.length,m=Ke(function(F){return Wn(e,u,F-1).bottom<=l},f,0);return f=Ke(function(F){return Wn(e,u,F).top>l},m,f),{begin:m,end:f}}function lu(e,i,u,l){u||(u=_n(e,i));var f=Oo(e,i,Wn(e,u,l),"line").top;return su(e,i,u,f)}function Ws(e,i,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>i}function Xf(e,i,u,l,f){f-=li(i);var m=_n(e,i),F=ja(i),U=0,H=i.text.length,Z=!0,me=O(i,e.doc.direction);if(me){var Ce=(e.options.lineWrapping?Zf:Qf)(e,i,u,m,me,l,f);Z=Ce.level!=1,U=Z?Ce.from:Ce.to-1,H=Z?Ce.to:Ce.from-1}var De=null,ke=null,Ye=Ke(function(Ft){var It=Wn(e,m,Ft);return It.top+=F,It.bottom+=F,Ws(It,l,f,!1)?(It.top<=f&&It.left<=l&&(De=Ft,ke=It),!0):!1},U,H),tt,ot,ct=!1;if(ke){var gt=l-ke.left<ke.right-l,dt=gt==Z;Ye=De+(dt?0:1),ot=dt?"after":"before",tt=gt?ke.left:ke.right}else{!Z&&(Ye==H||Ye==U)&&Ye++,ot=Ye==0?"after":Ye==i.text.length?"before":Wn(e,m,Ye-(Z?1:0)).bottom+F<=f==Z?"after":"before";var xt=Hn(e,it(u,Ye,ot),"line",i,m);tt=xt.left,ct=f<xt.top?-1:f>=xt.bottom?1:0}return Ye=Ge(i.text,Ye,1),js(u,Ye,ot,ct,l-tt)}function Qf(e,i,u,l,f,m,F){var U=Ke(function(Ce){var De=f[Ce],ke=De.level!=1;return Ws(Hn(e,it(u,ke?De.to:De.from,ke?"before":"after"),"line",i,l),m,F,!0)},0,f.length-1),H=f[U];if(U>0){var Z=H.level!=1,me=Hn(e,it(u,Z?H.from:H.to,Z?"after":"before"),"line",i,l);Ws(me,m,F,!0)&&me.top>F&&(H=f[U-1])}return H}function Zf(e,i,u,l,f,m,F){var U=su(e,i,l,F),H=U.begin,Z=U.end;/\s/.test(i.text.charAt(Z-1))&&Z--;for(var me=null,Ce=null,De=0;De<f.length;De++){var ke=f[De];if(!(ke.from>=Z||ke.to<=H)){var Ye=ke.level!=1,tt=Wn(e,l,Ye?Math.min(Z,ke.to)-1:Math.max(H,ke.from)).right,ot=tt<m?m-tt+1e9:tt-m;(!me||Ce>ot)&&(me=ke,Ce=ot)}}return me||(me=f[f.length-1]),me.from<H&&(me={from:H,to:me.to,level:me.level}),me.to>Z&&(me={from:me.from,to:Z,level:me.level}),me}var Yi;function ca(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Yi==null){Yi=be("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Yi.appendChild(document.createTextNode("x")),Yi.appendChild(be("br"));Yi.appendChild(document.createTextNode("x"))}ye(e.measure,Yi);var u=Yi.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ie(e.measure),u||1}function Tn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=be("span","xxxxxxxxxx"),u=be("pre",[i],"CodeMirror-line-like");ye(e.measure,u);var l=i.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function Hs(e){for(var i=e.display,u={},l={},f=i.gutters.clientLeft,m=i.gutters.firstChild,F=0;m;m=m.nextSibling,++F){var U=e.display.gutterSpecs[F].className;u[U]=m.offsetLeft+m.clientLeft+f,l[U]=m.clientWidth}return{fixedPos:Pn(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Pn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function uu(e){var i=ca(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Tn(e.display)-3);return function(f){if(si(e.doc,f))return 0;var m=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(m+=f.widgets[F].height);return u?m+(Math.ceil(f.text.length/l)||1)*i:m+i}}function zs(e){var i=e.doc,u=uu(e);i.iter(function(l){var f=u(l);f!=l.height&&Sn(l,f)})}function Ji(e,i,u,l){var f=e.display;if(!u&&Pt(i).getAttribute("cm-not-content")=="true")return null;var m,F,U=f.lineSpace.getBoundingClientRect();try{m=i.clientX-U.left,F=i.clientY-U.top}catch(Ce){return null}var H=Vs(e,m,F),Z;if(l&&H.xRel>0&&(Z=Ot(e.doc,H.line).text).length==H.ch){var me=Xe(Z,Z.length,e.options.tabSize)-Z.length;H=it(H.line,Math.max(0,Math.round((m-sn(e.display).left)/Tn(e.display))-me))}return H}function Xi(e,i){if(i>=e.display.viewTo||(i-=e.display.viewFrom,i<0))return null;for(var u=e.display.view,l=0;l<u.length;l++)if(i-=u[l].size,i<0)return l}function Rr(e,i,u,l){i==null&&(i=e.doc.first),u==null&&(u=e.doc.first+e.doc.size),l||(l=0);var f=e.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>i)&&(f.updateLineNumbers=i),e.curOp.viewChanged=!0,i>=f.viewTo)Ci&&ka(e.doc,i)<f.viewTo&&Ti(e);else if(u<=f.viewFrom)Ci&&Es(e.doc,u+l)>f.viewFrom?Ti(e):(f.viewFrom+=l,f.viewTo+=l);else if(i<=f.viewFrom&&u>=f.viewTo)Ti(e);else if(i<=f.viewFrom){var m=Po(e,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):Ti(e)}else if(u>=f.viewTo){var F=Po(e,i,i,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):Ti(e)}else{var U=Po(e,i,i,-1),H=Po(e,u,u+l,1);U&&H?(f.view=f.view.slice(0,U.index).concat(So(e,U.lineN,H.lineN)).concat(f.view.slice(H.index)),f.viewTo+=l):Ti(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:i<Z.lineN+Z.size&&(f.externalMeasured=null))}function qn(e,i,u){e.curOp.viewChanged=!0;var l=e.display,f=e.display.externalMeasured;if(f&&i>=f.lineN&&i<f.lineN+f.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var m=l.view[Xi(e,i)];if(m.node!=null){var F=m.changes||(m.changes=[]);ht(F,u)==-1&&F.push(u)}}}function Ti(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Po(e,i,u,l){var f=Xi(e,i),m,F=e.display.view;if(!Ci||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,H=0;H<f;H++)U+=F[H].size;if(U!=i){if(l>0){if(f==F.length-1)return null;m=U+F[f].size-i,f++}else m=U-i;i+=m,u+=m}for(;ka(e.doc,u)!=u;){if(f==(l<0?0:F.length-1))return null;u+=l*F[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function _f(e,i,u){var l=e.display,f=l.view;f.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=So(e,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=So(e,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Xi(e,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(So(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Xi(e,u)))),l.viewTo=u}function Io(e){for(var i=e.display.view,u=0,l=0;l<i.length;l++){var f=i[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Pi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Fo(e,i){i===void 0&&(i=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),F=e.options.$customCursor;F&&(i=!0);for(var U=0;U<u.sel.ranges.length;U++)if(!(!i&&U==u.sel.primIndex)){var H=u.sel.ranges[U];if(!(H.from().line>=e.display.viewTo||H.to().line<e.display.viewFrom)){var Z=H.empty();if(F){var me=F(e,H);me&&Gs(e,me,f)}else(Z||e.options.showCursorWhenSelecting)&&Gs(e,H.head,f);Z||fu(e,H,m)}}return l}function Gs(e,i,u){var l=Hn(e,i,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(be("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var m=To(e,i,"div",null,null),F=m.right-m.left;f.style.width=(F>0?F:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(be("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));U.style.display="",U.style.left=l.other.left+"px",U.style.top=l.other.top+"px",U.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function ko(e,i){return e.top-i.top||e.left-i.left}function fu(e,i,u){var l=e.display,f=e.doc,m=document.createDocumentFragment(),F=sn(e.display),U=F.left,H=Math.max(l.sizerWidth,$i(e)-l.sizer.offsetLeft)-F.right,Z=f.direction=="ltr";function me(dt,xt,Ft,It){xt<0&&(xt=0),xt=Math.round(xt),It=Math.round(It),m.appendChild(be("div",null,"CodeMirror-selected","position: absolute; left: "+dt+`px;
23
+ top: `+xt+"px; width: "+(Ft==null?H-dt:Ft)+`px;
24
+ height: `+(It-xt)+"px"))}function Ce(dt,xt,Ft){var It=Ot(f,dt),at=It.text.length,Tt,Dr;function br(Ir,fn){return To(e,it(dt,Ir),"div",It,fn)}function xn(Ir,fn,Fr){var kr=lu(e,It,null,Ir),Ar=fn=="ltr"==(Fr=="after")?"left":"right",vr=Fr=="after"?kr.begin:kr.end-(/\s/.test(It.text.charAt(kr.end-1))?2:1);return br(vr,Ar)[Ar]}var un=O(It,f.direction);return P(un,xt||0,Ft==null?at:Ft,function(Ir,fn,Fr,kr){var Ar=Fr=="ltr",vr=br(Ir,Ar?"left":"right"),Yr=br(fn-1,Ar?"right":"left"),Ca=xt==null&&Ir==0,Li=Ft==null&&fn==at,Jr=kr==0,Gn=!un||kr==un.length-1;if(Yr.top-vr.top<=3){var Wr=(Z?Ca:Li)&&Jr,wl=(Z?Li:Ca)&&Gn,ni=Wr?U:(Ar?vr:Yr).left,aa=wl?H:(Ar?Yr:vr).right;me(ni,vr.top,aa-ni,vr.bottom)}else{var $n,nr,fo,oa;Ar?($n=Z&&Ca&&Jr?U:vr.left,nr=Z?H:xn(Ir,Fr,"before"),fo=Z?U:xn(fn,Fr,"after"),oa=Z&&Li&&Gn?H:Yr.right):($n=Z?xn(Ir,Fr,"before"):U,nr=!Z&&Ca&&Jr?H:vr.right,fo=!Z&&Li&&Gn?U:Yr.left,oa=Z?xn(fn,Fr,"after"):H),me($n,vr.top,nr-$n,vr.bottom),vr.bottom<Yr.top&&me(U,vr.bottom,null,Yr.top),me(fo,Yr.top,oa-fo,Yr.bottom)}(!Tt||ko(vr,Tt)<0)&&(Tt=vr),ko(Yr,Tt)<0&&(Tt=Yr),(!Dr||ko(vr,Dr)<0)&&(Dr=vr),ko(Yr,Dr)<0&&(Dr=Yr)}),{start:Tt,end:Dr}}var De=i.from(),ke=i.to();if(De.line==ke.line)Ce(De.line,De.ch,ke.ch);else{var Ye=Ot(f,De.line),tt=Ot(f,ke.line),ot=Vn(Ye)==Vn(tt),ct=Ce(De.line,De.ch,ot?Ye.text.length+1:null).end,gt=Ce(ke.line,ot?0:null,ke.ch).start;ot&&(ct.top<gt.top-2?(me(ct.right,ct.top,null,ct.bottom),me(U,gt.top,gt.left,gt.bottom)):me(ct.right,ct.top,gt.left-ct.right,ct.bottom)),ct.bottom<gt.top&&me(U,ct.bottom,null,gt.top)}u.appendChild(m)}function $s(e){if(!!e.state.focused){var i=e.display;clearInterval(i.blinker);var u=!0;i.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?i.blinker=setInterval(function(){e.hasFocus()||da(e),i.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Ks(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Mo(e))}function Wa(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&da(e))},100)}function Mo(e,i){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ae(e,"focus",e,i),e.state.focused=!0,Le(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),g&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),$s(e))}function da(e,i){e.state.delayingBlurEvent||(e.state.focused&&(ae(e,"blur",e,i),e.state.focused=!1,ee(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ro(e){for(var i=e.display,u=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),f=i.lineDiv.getBoundingClientRect().top,m=0,F=0;F<i.view.length;F++){var U=i.view[F],H=e.options.lineWrapping,Z=void 0,me=0;if(!U.hidden){if(f+=U.line.height,b&&S<8){var Ce=U.node.offsetTop+U.node.offsetHeight;Z=Ce-u,u=Ce}else{var De=U.node.getBoundingClientRect();Z=De.bottom-De.top,!H&&U.text.firstChild&&(me=U.text.firstChild.getBoundingClientRect().right-De.left-1)}var ke=U.line.height-Z;if((ke>.005||ke<-.005)&&(f<l&&(m-=ke),Sn(U.line,Z),Ys(U.line),U.rest))for(var Ye=0;Ye<U.rest.length;Ye++)Ys(U.rest[Ye]);if(me>e.display.sizerWidth){var tt=Math.ceil(me/Tn(e.display));tt>e.display.maxLineLength&&(e.display.maxLineLength=tt,e.display.maxLine=U.line,e.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(i.scroller.scrollTop+=m)}function Ys(e){if(e.widgets)for(var i=0;i<e.widgets.length;++i){var u=e.widgets[i],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function Ha(e,i,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Da(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,m=jn(i,l),F=jn(i,f);if(u&&u.ensure){var U=u.ensure.from.line,H=u.ensure.to.line;U<m?(m=U,F=jn(i,li(Ot(i,U))+e.wrapper.clientHeight)):Math.min(H,i.lastLine())>=F&&(m=jn(i,li(Ot(i,H))-e.wrapper.clientHeight),F=H)}return{from:m,to:Math.max(F,m+1)}}function qf(e,i){if(!pe(e,"scrollCursorIntoView")){var u=e.display,l=u.sizer.getBoundingClientRect(),f=null;if(i.top+l.top<0?f=!0:i.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!W){var m=be("div","\u200B",null,`position: absolute;
25
+ top: `+(i.top-u.viewOffset-Da(e.display))+`px;
26
+ height: `+(i.bottom-i.top+fi(e)+u.barHeight)+`px;
27
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(f),e.display.lineSpace.removeChild(m)}}}function cu(e,i,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&i==u&&(u=i.sticky=="before"?it(i.line,i.ch+1,"before"):i,i=i.ch?it(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var F=!1,U=Hn(e,i),H=!u||u==i?U:Hn(e,u);f={left:Math.min(U.left,H.left),top:Math.min(U.top,H.top)-l,right:Math.max(U.left,H.left),bottom:Math.max(U.bottom,H.bottom)+l};var Z=Js(e,f),me=e.doc.scrollTop,Ce=e.doc.scrollLeft;if(Z.scrollTop!=null&&(Ga(e,Z.scrollTop),Math.abs(e.doc.scrollTop-me)>1&&(F=!0)),Z.scrollLeft!=null&&(Zi(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ce)>1&&(F=!0)),!F)break}return f}function du(e,i){var u=Js(e,i);u.scrollTop!=null&&Ga(e,u.scrollTop),u.scrollLeft!=null&&Zi(e,u.scrollLeft)}function Js(e,i){var u=e.display,l=ca(e.display);i.top<0&&(i.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,m=Na(e),F={};i.bottom-i.top>m&&(i.bottom=i.top+m);var U=e.doc.height+Rs(u),H=i.top<l,Z=i.bottom>U-l;if(i.top<f)F.scrollTop=H?0:i.top;else if(i.bottom>f+m){var me=Math.min(i.top,(Z?U:i.bottom)-m);me!=f&&(F.scrollTop=me)}var Ce=e.options.fixedGutter?0:u.gutters.offsetWidth,De=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ce,ke=$i(e)-u.gutters.offsetWidth,Ye=i.right-i.left>ke;return Ye&&(i.right=i.left+ke),i.left<10?F.scrollLeft=0:i.left<De?F.scrollLeft=Math.max(0,i.left+Ce-(Ye?0:10)):i.right>ke+De-3&&(F.scrollLeft=i.right+(Ye?0:10)-ke),F}function Xs(e,i){i!=null&&(Lo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function nn(e){Lo(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function za(e,i,u){(i!=null||u!=null)&&Lo(e),i!=null&&(e.curOp.scrollLeft=i),u!=null&&(e.curOp.scrollTop=u)}function Qi(e,i){Lo(e),e.curOp.scrollToPos=i}function Lo(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var u=ou(e,i.from),l=ou(e,i.to);pu(e,u,l,i.margin)}}function pu(e,i,u,l){var f=Js(e,{left:Math.min(i.left,u.left),top:Math.min(i.top,u.top)-l,right:Math.max(i.right,u.right),bottom:Math.max(i.bottom,u.bottom)+l});za(e,f.scrollLeft,f.scrollTop)}function Ga(e,i){Math.abs(e.doc.scrollTop-i)<2||(c||qs(e,{top:i}),hu(e,i,!0),c&&qs(e),zn(e,100))}function hu(e,i,u){i=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,i)),!(e.display.scroller.scrollTop==i&&!u)&&(e.doc.scrollTop=i,e.display.scrollbars.setScrollTop(i),e.display.scroller.scrollTop!=i&&(e.display.scroller.scrollTop=i))}function Zi(e,i,u,l){i=Math.max(0,Math.min(i,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((u?i==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-i)<2)&&!l)&&(e.doc.scrollLeft=i,xu(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i))}function pa(e){var i=e.display,u=i.gutters.offsetWidth,l=Math.round(e.doc.height+Rs(e.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:e.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+fi(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var _i=function(e,i,u){this.cm=u;var l=this.vert=be("div",[be("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=be("div",[be("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),N(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),N(f,"scroll",function(){f.clientWidth&&i(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};_i.prototype.update=function(e){var i=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var f=e.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var m=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:i?l:0}},_i.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},_i.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},_i.prototype.zeroWidthHack=function(){var e=C&&!q?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ft,this.disableVert=new ft},_i.prototype.enableZeroWidthBar=function(e,i,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=e?e.style.pointerEvents="none":i.set(1e3,l)}i.set(1e3,l)},_i.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var $a=function(){};$a.prototype.update=function(){return{bottom:0,right:0}},$a.prototype.setScrollLeft=function(){},$a.prototype.setScrollTop=function(){},$a.prototype.clear=function(){};function ci(e,i){i||(i=pa(e));var u=e.display.barWidth,l=e.display.barHeight;Do(e,i);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Ro(e),Do(e,pa(e)),u=e.display.barWidth,l=e.display.barHeight}function Do(e,i){var u=e.display,l=u.scrollbars.update(i);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=i.gutterWidth+"px"):u.gutterFiller.style.display=""}var gn={native:_i,null:$a};function No(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ee(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new gn[e.options.scrollbarStyle](function(i){e.display.wrapper.insertBefore(i,e.display.scrollbarFiller),N(i,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,u){u=="horizontal"?Zi(e,i):Ga(e,i)},e),e.display.scrollbars.addClass&&Le(e.display.wrapper,e.display.scrollbars.addClass)}var di=0;function Ii(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++di,markArrays:null},_l(e.curOp)}function Fi(e){var i=e.curOp;i&&ks(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Fd(u)})}function Fd(e){for(var i=e.ops,u=0;u<i.length;u++)Qs(i[u]);for(var l=0;l<i.length;l++)vu(i[l]);for(var f=0;f<i.length;f++)gu(i[f]);for(var m=0;m<i.length;m++)Pr(i[m]);for(var F=0;F<i.length;F++)ec(i[F])}function Qs(e){var i=e.cm,u=i.display;yu(i),e.updateMaxLine&&Cs(i),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<u.viewFrom||e.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&i.options.lineWrapping,e.update=e.mustUpdate&&new qi(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function vu(e){e.updatedDisplay=e.mustUpdate&&_s(e.cm,e.update)}function gu(e){var i=e.cm,u=i.display;e.updatedDisplay&&Ro(i),e.barMeasure=pa(i),u.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=Eo(i,u.maxLine,u.maxLine.text.length).left+3,i.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+fi(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-$i(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Pr(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<i.doc.scrollLeft&&Zi(i,Math.min(i.display.scroller.scrollLeft,e.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=e.focus&&e.focus==Fe();e.preparedSelection&&i.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=i.doc.height)&&ci(i,e.barMeasure),e.updatedDisplay&&tl(i,e.barMeasure),e.selectionChanged&&$s(i),i.state.focused&&e.updateInput&&i.display.input.reset(e.typing),u&&Ks(e.cm)}function ec(e){var i=e.cm,u=i.display,l=i.doc;if(e.updatedDisplay&&mu(i,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&hu(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Zi(i,e.scrollLeft,!0,!0),e.scrollToPos){var f=cu(i,lt(l,e.scrollToPos.from),lt(l,e.scrollToPos.to),e.scrollToPos.margin);qf(i,f)}var m=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(m)for(var U=0;U<m.length;++U)m[U].lines.length||ae(m[U],"hide");if(F)for(var H=0;H<F.length;++H)F[H].lines.length&&ae(F[H],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),e.changeObjs&&ae(i,"changes",i,e.changeObjs),e.update&&e.update.finish()}function jr(e,i){if(e.curOp)return i();Ii(e);try{return i()}finally{Fi(e)}}function Vr(e,i){return function(){if(e.curOp)return i.apply(e,arguments);Ii(e);try{return i.apply(e,arguments)}finally{Fi(e)}}}function Lr(e){return function(){if(this.curOp)return e.apply(this,arguments);Ii(this);try{return e.apply(this,arguments)}finally{Fi(this)}}}function dr(e){return function(){var i=this.cm;if(!i||i.curOp)return e.apply(this,arguments);Ii(i);try{return e.apply(this,arguments)}finally{Fi(i)}}}function zn(e,i){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(i,rt(tc,e))}function tc(e){var i=e.doc;if(!(i.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=tn(e,i.highlightFrontier),f=[];i.iter(l.line,Math.min(i.first+i.size,e.display.viewTo+500),function(m){if(l.line>=e.display.viewFrom){var F=m.styles,U=m.text.length>e.options.maxHighlightLength?Ur(i.mode,l.state):null,H=_t(e,m,l,!0);U&&(l.state=U),m.styles=H.styles;var Z=m.styleClasses,me=H.classes;me?m.styleClasses=me:Z&&(m.styleClasses=null);for(var Ce=!F||F.length!=m.styles.length||Z!=me&&(!Z||!me||Z.bgClass!=me.bgClass||Z.textClass!=me.textClass),De=0;!Ce&&De<F.length;++De)Ce=F[De]!=m.styles[De];Ce&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=e.options.maxHighlightLength&&ys(e,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return zn(e,e.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),f.length&&jr(e,function(){for(var m=0;m<f.length;m++)qn(e,f[m],"text")})}}var qi=function(e,i,u){var l=e.display;this.viewport=i,this.visible=Ha(l,e.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=$i(e),this.force=u,this.dims=Hs(e),this.events=[]};qi.prototype.signal=function(e,i){Be(e,i)&&this.events.push(arguments)},qi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ae.apply(null,this.events[e])};function yu(e){var i=e.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=fi(e)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=fi(e)+"px",i.scrollbarsClipped=!0)}function Ka(e){if(e.hasFocus())return null;var i=Fe();if(!i||!oe(e.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&oe(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Zs(e){if(!(!e||!e.activeElt||e.activeElt==Fe())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&oe(document.body,e.anchorNode)&&oe(document.body,e.focusNode))){var i=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),i.removeAllRanges(),i.addRange(u),i.extend(e.focusNode,e.focusOffset)}}function _s(e,i){var u=e.display,l=e.doc;if(i.editorIsHidden)return Ti(e),!1;if(!i.force&&i.visible.from>=u.viewFrom&&i.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Io(e)==0)return!1;Bo(e)&&(Ti(e),i.dims=Hs(e));var f=l.first+l.size,m=Math.max(i.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,i.visible.to+e.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Ci&&(m=ka(e.doc,m),F=Es(e.doc,F));var U=m!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;_f(e,m,F),u.viewOffset=li(Ot(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var H=Io(e);if(!U&&H==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=Ka(e);return H>4&&(u.lineDiv.style.display="none"),rc(e,u.updateLineNumbers,i.dims),H>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Zs(Z),ie(u.cursorDiv),ie(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,zn(e,400)),u.updateLineNumbers=null,!0}function mu(e,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||i.oldDisplayWidth==$i(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Rs(e.display)-Na(e),u.top)}),i.visible=Ha(e.display,e.doc,u),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else l&&(i.visible=Ha(e.display,e.doc,u));if(!_s(e,i))break;Ro(e);var f=pa(e);Pi(e),ci(e,f),tl(e,f),i.force=!1}i.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(i.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function qs(e,i){var u=new qi(e,i);if(_s(e,u)){Ro(e),mu(e,u);var l=pa(e);Pi(e),ci(e,l),tl(e,l),u.finish()}}function rc(e,i,u){var l=e.display,f=e.options.lineNumbers,m=l.lineDiv,F=m.firstChild;function U(Ye){var tt=Ye.nextSibling;return g&&C&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),tt}for(var H=l.view,Z=l.viewFrom,me=0;me<H.length;me++){var Ce=H[me];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=m){var De=qt(e,Ce,Z,u);m.insertBefore(De,F)}else{for(;F!=Ce.node;)F=U(F);var ke=f&&i!=null&&i<=Z&&Ce.lineNumber;Ce.changes&&(ht(Ce.changes,"gutter")>-1&&(ke=!1),Ao(e,Ce,Z,u)),ke&&(ie(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(fa(e.options,Z)))),F=Ce.node.nextSibling}Z+=Ce.size}for(;F;)F=U(F)}function el(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px",ar(e,"gutterChanged",e)}function tl(e,i){e.display.sizer.style.minHeight=i.docHeight+"px",e.display.heightForcer.style.top=i.docHeight+"px",e.display.gutters.style.height=i.docHeight+e.display.barHeight+fi(e)+"px"}function xu(e){var i=e.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))){for(var l=Pn(i)-i.scroller.scrollLeft+e.doc.scrollLeft,f=i.gutters.offsetWidth,m=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=m),u[F].gutterBackground&&(u[F].gutterBackground.style.left=m));var U=u[F].alignable;if(U)for(var H=0;H<U.length;H++)U[H].style.left=m}e.options.fixedGutter&&(i.gutters.style.left=l+f+"px")}}function Bo(e){if(!e.options.lineNumbers)return!1;var i=e.doc,u=fa(e.options,i.first+i.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(be("div",[be("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,F=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",el(e.display),!0}return!1}function Ya(e,i){for(var u=[],l=!1,f=0;f<e.length;f++){var m=e[f],F=null;if(typeof m!="string"&&(F=m.style,m=m.className),m=="CodeMirror-linenumbers")if(i)l=!0;else continue;u.push({className:m,style:F})}return i&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function bu(e){var i=e.gutters,u=e.gutterSpecs;ie(i),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],m=f.className,F=f.style,U=i.appendChild(be("div",null,"CodeMirror-gutter "+m));F&&(U.style.cssText=F),m=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}i.style.display=u.length?"":"none",el(e)}function Uo(e){bu(e.display),Rr(e),xu(e)}function nc(e,i,u,l){var f=this;this.input=u,f.scrollbarFiller=be("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=be("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=he("div",null,"CodeMirror-code"),f.selectionDiv=be("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=be("div",null,"CodeMirror-cursors"),f.measure=be("div",null,"CodeMirror-measure"),f.lineMeasure=be("div",null,"CodeMirror-measure"),f.lineSpace=he("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=he("div",[f.lineSpace],"CodeMirror-lines");f.mover=be("div",[m],null,"position: relative"),f.sizer=be("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=be("div",null,null,"position: absolute; height: "+bt+"px; width: 1px;"),f.gutters=be("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=be("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=be("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&S<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(c&&R)&&(f.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(f.wrapper):e(f.wrapper)),f.viewFrom=f.viewTo=i.first,f.reportedViewFrom=f.reportedViewTo=i.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Ya(l.gutters,l.lineNumbers),bu(f),u.init(f)}var jo=0,pi=null;b?pi=-.53:c?pi=15:D?pi=-.7:j&&(pi=-1/3);function wu(e){var i=e.wheelDeltaX,u=e.wheelDeltaY;return i==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(i=e.detail),u==null&&e.detail&&e.axis==e.VERTICAL_AXIS?u=e.detail:u==null&&(u=e.wheelDelta),{x:i,y:u}}function rr(e){var i=wu(e);return i.x*=pi,i.y*=pi,i}function Su(e,i){var u=wu(i),l=u.x,f=u.y,m=pi;i.deltaMode===0&&(l=i.deltaX,f=i.deltaY,m=1);var F=e.display,U=F.scroller,H=U.scrollWidth>U.clientWidth,Z=U.scrollHeight>U.clientHeight;if(!!(l&&H||f&&Z)){if(f&&C&&g){e:for(var me=i.target,Ce=F.view;me!=U;me=me.parentNode)for(var De=0;De<Ce.length;De++)if(Ce[De].node==me){e.display.currentWheelTarget=me;break e}}if(l&&!c&&!B&&m!=null){f&&Z&&Ga(e,Math.max(0,U.scrollTop+f*m)),Zi(e,Math.max(0,U.scrollLeft+l*m)),(!f||f&&Z)&&Qe(i),F.wheelStartX=null;return}if(f&&m!=null){var ke=f*m,Ye=e.doc.scrollTop,tt=Ye+F.wrapper.clientHeight;ke<0?Ye=Math.max(0,Ye+ke-50):tt=Math.min(e.doc.height,tt+ke+50),qs(e,{top:Ye,bottom:tt})}jo<20&&i.deltaMode!==0&&(F.wheelStartX==null?(F.wheelStartX=U.scrollLeft,F.wheelStartY=U.scrollTop,F.wheelDX=l,F.wheelDY=f,setTimeout(function(){if(F.wheelStartX!=null){var ot=U.scrollLeft-F.wheelStartX,ct=U.scrollTop-F.wheelStartY,gt=ct&&F.wheelDY&&ct/F.wheelDY||ot&&F.wheelDX&&ot/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!gt&&(pi=(pi*jo+gt)/(jo+1),++jo)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var yn=function(e,i){this.ranges=e,this.primIndex=i};yn.prototype.primary=function(){return this.ranges[this.primIndex]},yn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var u=this.ranges[i],l=e.ranges[i];if(!oi(u.anchor,l.anchor)||!oi(u.head,l.head))return!1}return!0},yn.prototype.deepCopy=function(){for(var e=[],i=0;i<this.ranges.length;i++)e[i]=new er(le(this.ranges[i].anchor),le(this.ranges[i].head));return new yn(e,this.primIndex)},yn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},yn.prototype.contains=function(e,i){i||(i=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Lt(i,l.from())>=0&&Lt(e,l.to())<=0)return u}return-1};var er=function(e,i){this.anchor=e,this.head=i};er.prototype.from=function(){return qe(this.anchor,this.head)},er.prototype.to=function(){return Oe(this.anchor,this.head)},er.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function An(e,i,u){var l=e&&e.options.selectionsMayTouch,f=i[u];i.sort(function(De,ke){return Lt(De.from(),ke.from())}),u=ht(i,f);for(var m=1;m<i.length;m++){var F=i[m],U=i[m-1],H=Lt(U.to(),F.from());if(l&&!F.empty()?H>0:H>=0){var Z=qe(U.from(),F.from()),me=Oe(U.to(),F.to()),Ce=U.empty()?F.from()==F.head:U.from()==U.head;m<=u&&--u,i.splice(--m,2,new er(Ce?me:Z,Ce?Z:me))}}return new yn(i,u)}function ki(e,i){return new yn([new er(e,i||e)],0)}function Mi(e){return e.text?it(e.from.line+e.text.length-1,Et(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Au(e,i){if(Lt(e,i.from)<0)return e;if(Lt(e,i.to)<=0)return Mi(i);var u=e.line+i.text.length-(i.to.line-i.from.line)-1,l=e.ch;return e.line==i.to.line&&(l+=Mi(i).ch-i.to.ch),it(u,l)}function rl(e,i){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new er(Au(f.anchor,i),Au(f.head,i)))}return An(e.cm,u,e.sel.primIndex)}function Eu(e,i,u){return e.line==i.line?it(u.line,e.ch-i.ch+u.ch):it(u.line+(e.line-i.line),e.ch)}function ic(e,i,u){for(var l=[],f=it(e.first,0),m=f,F=0;F<i.length;F++){var U=i[F],H=Eu(U.from,f,m),Z=Eu(Mi(U),f,m);if(f=U.to,m=Z,u=="around"){var me=e.sel.ranges[F],Ce=Lt(me.head,me.anchor)<0;l[F]=new er(Ce?Z:H,Ce?H:Z)}else l[F]=new er(H,H)}return new yn(l,e.sel.primIndex)}function Vo(e){e.doc.mode=vn(e.options,e.doc.modeOption),ea(e)}function ea(e){e.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,zn(e,100),e.state.modeGen++,e.curOp&&Rr(e)}function Wo(e,i){return i.from.ch==0&&i.to.ch==0&&Et(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function nl(e,i,u,l){function f(gt){return u?u[gt]:null}function m(gt,dt,xt){Oi(gt,dt,xt,l),ar(gt,"change",gt,i)}function F(gt,dt){for(var xt=[],Ft=gt;Ft<dt;++Ft)xt.push(new Hi(Z[Ft],f(Ft),l));return xt}var U=i.from,H=i.to,Z=i.text,me=Ot(e,U.line),Ce=Ot(e,H.line),De=Et(Z),ke=f(Z.length-1),Ye=H.line-U.line;if(i.full)e.insert(0,F(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(Wo(e,i)){var tt=F(0,Z.length-1);m(Ce,Ce.text,ke),Ye&&e.remove(U.line,Ye),tt.length&&e.insert(U.line,tt)}else if(me==Ce)if(Z.length==1)m(me,me.text.slice(0,U.ch)+De+me.text.slice(H.ch),ke);else{var ot=F(1,Z.length-1);ot.push(new Hi(De+me.text.slice(H.ch),ke,l)),m(me,me.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,ot)}else if(Z.length==1)m(me,me.text.slice(0,U.ch)+Z[0]+Ce.text.slice(H.ch),f(0)),e.remove(U.line+1,Ye);else{m(me,me.text.slice(0,U.ch)+Z[0],f(0)),m(Ce,De+Ce.text.slice(H.ch),ke);var ct=F(1,Z.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ct)}ar(e,"change",e,i)}function Ri(e,i,u){function l(f,m,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var H=f.linked[U];if(H.doc!=m){var Z=F&&H.sharedHist;u&&!Z||(i(H.doc,Z),l(H.doc,f,Z))}}}l(e,null,!0)}function Cu(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,zs(e),Vo(e),il(e),e.options.direction=i.direction,e.options.lineWrapping||Cs(e),e.options.mode=i.modeOption,Rr(e)}function il(e){(e.doc.direction=="rtl"?Le:ee)(e.display.lineDiv,"CodeMirror-rtl")}function Ja(e){jr(e,function(){il(e),Rr(e)})}function Xa(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ei(e,i){var u={from:le(i.from),to:Mi(i),text:ai(e,i.from,i.to)};return Za(e,u,i.from.line,i.to.line+1),Ri(e,function(l){return Za(l,u,i.from.line,i.to.line+1)},!0),u}function Ou(e){for(;e.length;){var i=Et(e);if(i.ranges)e.pop();else break}}function Tu(e,i){if(i)return Ou(e.done),Et(e.done);if(e.done.length&&!Et(e.done).ranges)return Et(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Et(e.done)}function Pu(e,i,u,l){var f=e.history;f.undone.length=0;var m=+new Date,F,U;if((f.lastOp==l||f.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&f.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(F=Tu(f,f.lastOp==l)))U=Et(F.changes),Lt(i.from,i.to)==0&&Lt(i.from,U.to)==0?U.to=Mi(i):F.changes.push(ei(e,i));else{var H=Et(f.done);for((!H||!H.ranges)&&Qa(e.sel,f.done),F={changes:[ei(e,i)],generation:f.generation},f.done.push(F);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=i.origin,U||ae(e,"historyAdded")}function Iu(e,i,u,l){var f=i.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ac(e,i,u,l){var f=e.history,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||Iu(e,m,Et(f.done),i))?f.done[f.done.length-1]=i:Qa(i,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&Ou(f.undone)}function Qa(e,i){var u=Et(i);u&&u.ranges&&u.equals(e)||i.push(e)}function Za(e,i,u,l){var f=i["spans_"+e.id],m=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(F){F.markedSpans&&((f||(f=i["spans_"+e.id]={}))[m]=F.markedSpans),++m})}function oc(e){if(!e)return null;for(var i,u=0;u<e.length;++u)e[u].marker.explicitlyCleared?i||(i=e.slice(0,u)):i&&i.push(e[u]);return i?i.length?i:null:e}function Ho(e,i){var u=i["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<i.text.length;++f)l.push(oc(u[f]));return l}function zo(e,i){var u=Ho(e,i),l=Gl(e,i);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],F=l[f];if(m&&F){e:for(var U=0;U<F.length;++U){for(var H=F[U],Z=0;Z<m.length;++Z)if(m[Z].marker==H.marker)continue e;m.push(H)}}else F&&(u[f]=F)}return u}function ha(e,i,u){for(var l=[],f=0;f<e.length;++f){var m=e[f];if(m.ranges){l.push(u?yn.prototype.deepCopy.call(m):m);continue}var F=m.changes,U=[];l.push({changes:U});for(var H=0;H<F.length;++H){var Z=F[H],me=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),i)for(var Ce in Z)(me=Ce.match(/^spans_(\d+)$/))&&ht(i,Number(me[1]))>-1&&(Et(U)[Ce]=Z[Ce],delete Z[Ce])}}return l}function al(e,i,u,l){if(l){var f=e.anchor;if(u){var m=Lt(i,f)<0;m!=Lt(u,f)<0?(f=i,i=u):m!=Lt(i,u)<0&&(i=u)}return new er(f,i)}else return new er(u||i,i)}function Go(e,i,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Zr(e,new yn([al(e.sel.primary(),i,u,f)],0),l)}function Fu(e,i,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),m=0;m<e.sel.ranges.length;m++)l[m]=al(e.sel.ranges[m],i[m],null,f);var F=An(e.cm,l,e.sel.primIndex);Zr(e,F,u)}function $o(e,i,u,l){var f=e.sel.ranges.slice(0);f[i]=u,Zr(e,An(e.cm,f,e.sel.primIndex),l)}function ol(e,i,u,l){Zr(e,ki(i,u),l)}function sc(e,i,u){var l={ranges:i.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new er(lt(e,f[m].anchor),lt(e,f[m].head))},origin:u&&u.origin};return ae(e,"beforeSelectionChange",e,l),e.cm&&ae(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=i.ranges?An(e.cm,l.ranges,l.ranges.length-1):i}function ku(e,i,u){var l=e.history.done,f=Et(l);f&&f.ranges?(l[l.length-1]=i,Ko(e,i,u)):Zr(e,i,u)}function Zr(e,i,u){Ko(e,i,u),ac(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function Ko(e,i,u){(Be(e,"beforeSelectionChange")||e.cm&&Be(e.cm,"beforeSelectionChange"))&&(i=sc(e,i,u));var l=u&&u.bias||(Lt(i.primary().head,e.sel.primary().head)<0?-1:1);Mu(e,Lu(e,i,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&nn(e.cm)}function Mu(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ae(e.cm)),ar(e,"cursorActivity",e))}function Ru(e){Mu(e,Lu(e,e.sel,null,!1))}function Lu(e,i,u,l){for(var f,m=0;m<i.ranges.length;m++){var F=i.ranges[m],U=i.ranges.length==e.sel.ranges.length&&e.sel.ranges[m],H=_a(e,F.anchor,U&&U.anchor,u,l),Z=_a(e,F.head,U&&U.head,u,l);(f||H!=F.anchor||Z!=F.head)&&(f||(f=i.ranges.slice(0,m)),f[m]=new er(H,Z))}return f?An(e.cm,f,i.primIndex):i}function va(e,i,u,l,f){var m=Ot(e,i.line);if(m.markedSpans)for(var F=0;F<m.markedSpans.length;++F){var U=m.markedSpans[F],H=U.marker,Z="selectLeft"in H?!H.selectLeft:H.inclusiveLeft,me="selectRight"in H?!H.selectRight:H.inclusiveRight;if((U.from==null||(Z?U.from<=i.ch:U.from<i.ch))&&(U.to==null||(me?U.to>=i.ch:U.to>i.ch))){if(f&&(ae(H,"beforeCursorEnter"),H.explicitlyCleared))if(m.markedSpans){--F;continue}else break;if(!H.atomic)continue;if(u){var Ce=H.find(l<0?1:-1),De=void 0;if((l<0?me:Z)&&(Ce=Du(e,Ce,-l,Ce&&Ce.line==i.line?m:null)),Ce&&Ce.line==i.line&&(De=Lt(Ce,u))&&(l<0?De<0:De>0))return va(e,Ce,i,l,f)}var ke=H.find(l<0?-1:1);return(l<0?Z:me)&&(ke=Du(e,ke,l,ke.line==i.line?m:null)),ke?va(e,ke,i,l,f):null}}return i}function _a(e,i,u,l,f){var m=l||1,F=va(e,i,u,m,f)||!f&&va(e,i,u,m,!0)||va(e,i,u,-m,f)||!f&&va(e,i,u,-m,!0);return F||(e.cantEdit=!0,it(e.first,0))}function Du(e,i,u,l){return u<0&&i.ch==0?i.line>e.first?lt(e,it(i.line-1)):null:u>0&&i.ch==(l||Ot(e,i.line)).text.length?i.line<e.first+e.size-1?it(i.line+1,0):null:new it(i.line,i.ch+u)}function Yo(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),ut)}function sl(e,i,u){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,m,F,U){f&&(l.from=lt(e,f)),m&&(l.to=lt(e,m)),F&&(l.text=F),U!==void 0&&(l.origin=U)}),ae(e,"beforeChange",e,l),e.cm&&ae(e.cm,"beforeChange",e.cm,l),l.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function ga(e,i,u){if(e.cm){if(!e.cm.curOp)return Vr(e.cm,ga)(e,i,u);if(e.cm.state.suppressEdits)return}if(!((Be(e,"beforeChange")||e.cm&&Be(e.cm,"beforeChange"))&&(i=sl(e,i,!0),!i))){var l=Lf&&!u&&Kl(e,i.from,i.to);if(l)for(var f=l.length-1;f>=0;--f)ta(e,{from:l[f].from,to:l[f].to,text:f?[""]:i.text,origin:i.origin});else ta(e,i)}}function ta(e,i){if(!(i.text.length==1&&i.text[0]==""&&Lt(i.from,i.to)==0)){var u=rl(e,i);Pu(e,i,u,e.cm?e.cm.curOp.id:NaN),qa(e,i,u,Gl(e,i));var l=[];Ri(e,function(f,m){!m&&ht(l,f.history)==-1&&(fl(f.history,i),l.push(f.history)),qa(f,i,null,Gl(f,i))})}}function In(e,i,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,m,F=e.sel,U=i=="undo"?f.done:f.undone,H=i=="undo"?f.undone:f.done,Z=0;Z<U.length&&(m=U[Z],!(u?m.ranges&&!m.equals(e.sel):!m.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=U.pop(),m.ranges){if(Qa(m,H),u&&!m.equals(e.sel)){Zr(e,m,{clearRedo:!1});return}F=m}else if(l){U.push(m);return}else break;var me=[];Qa(F,H),H.push({changes:me,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var Ce=Be(e,"beforeChange")||e.cm&&Be(e.cm,"beforeChange"),De=function(tt){var ot=m.changes[tt];if(ot.origin=i,Ce&&!sl(e,ot,!1))return U.length=0,{};me.push(ei(e,ot));var ct=tt?rl(e,ot):Et(U);qa(e,ot,ct,zo(e,ot)),!tt&&e.cm&&e.cm.scrollIntoView({from:ot.from,to:Mi(ot)});var gt=[];Ri(e,function(dt,xt){!xt&&ht(gt,dt.history)==-1&&(fl(dt.history,ot),gt.push(dt.history)),qa(dt,ot,null,zo(dt,ot))})},ke=m.changes.length-1;ke>=0;--ke){var Ye=De(ke);if(Ye)return Ye.v}}}}function ll(e,i){if(i!=0&&(e.first+=i,e.sel=new yn(Ht(e.sel.ranges,function(f){return new er(it(f.anchor.line+i,f.anchor.ch),it(f.head.line+i,f.head.ch))}),e.sel.primIndex),e.cm)){Rr(e.cm,e.first,e.first-i,i);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)qn(e.cm,l,"gutter")}}function qa(e,i,u,l){if(e.cm&&!e.cm.curOp)return Vr(e.cm,qa)(e,i,u,l);if(i.to.line<e.first){ll(e,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>e.lastLine())){if(i.from.line<e.first){var f=i.text.length-1-(e.first-i.from.line);ll(e,f),i={from:it(e.first,0),to:it(i.to.line+f,i.to.ch),text:[Et(i.text)],origin:i.origin}}var m=e.lastLine();i.to.line>m&&(i={from:i.from,to:it(m,Ot(e,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ai(e,i.from,i.to),u||(u=rl(e,i)),e.cm?lc(e.cm,i,l):nl(e,i,l),Ko(e,u,ut),e.cantEdit&&_a(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function lc(e,i,u){var l=e.doc,f=e.display,m=i.from,F=i.to,U=!1,H=m.line;e.options.lineWrapping||(H=Zt(Vn(Ot(l,m.line))),l.iter(H,F.line+1,function(ke){if(ke==f.maxLine)return U=!0,!0})),l.sel.contains(i.from,i.to)>-1&&Ae(e),nl(l,i,u,uu(e)),e.options.lineWrapping||(l.iter(H,m.line+i.text.length,function(ke){var Ye=Wi(ke);Ye>f.maxLineLength&&(f.maxLine=ke,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),Rf(l,m.line),zn(e,400);var Z=i.text.length-(F.line-m.line)-1;i.full?Rr(e):m.line==F.line&&i.text.length==1&&!Wo(e.doc,i)?qn(e,m.line,"text"):Rr(e,m.line,F.line+1,Z);var me=Be(e,"changes"),Ce=Be(e,"change");if(Ce||me){var De={from:m,to:F,text:i.text,removed:i.removed,origin:i.origin};Ce&&ar(e,"change",e,De),me&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(De)}e.display.selForContextMenu=null}function ya(e,i,u,l,f){var m;l||(l=u),Lt(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof i=="string"&&(i=e.splitLines(i)),ga(e,{from:u,to:l,text:i,origin:f})}function ul(e,i,u,l){u<e.line?e.line+=l:i<e.line&&(e.line=i,e.ch=0)}function Nu(e,i,u,l){for(var f=0;f<e.length;++f){var m=e[f],F=!0;if(m.ranges){m.copied||(m=e[f]=m.deepCopy(),m.copied=!0);for(var U=0;U<m.ranges.length;U++)ul(m.ranges[U].anchor,i,u,l),ul(m.ranges[U].head,i,u,l);continue}for(var H=0;H<m.changes.length;++H){var Z=m.changes[H];if(u<Z.from.line)Z.from=it(Z.from.line+l,Z.from.ch),Z.to=it(Z.to.line+l,Z.to.ch);else if(i<=Z.to.line){F=!1;break}}F||(e.splice(0,f+1),f=0)}}function fl(e,i){var u=i.from.line,l=i.to.line,f=i.text.length-(l-u)-1;Nu(e.done,u,l,f),Nu(e.undone,u,l,f)}function ra(e,i,u,l){var f=i,m=i;return typeof i=="number"?m=Ot(e,st(e,i)):f=Zt(i),f==null?null:(l(m,f)&&e.cm&&qn(e.cm,f,u),m)}function ma(e){this.lines=e,this.parent=null;for(var i=0,u=0;u<e.length;++u)e[u].parent=this,i+=e[u].height;this.height=i}ma.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,i){for(var u=e,l=e+i;u<l;++u){var f=this.lines[u];this.height-=f.height,zi(f),ar(f,"delete")}this.lines.splice(e,i)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,i,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(i).concat(this.lines.slice(e));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(e,i,u){for(var l=e+i;e<l;++e)if(u(this.lines[e]))return!0}};function xa(e){this.children=e;for(var i=0,u=0,l=0;l<e.length;++l){var f=e[l];i+=f.chunkSize(),u+=f.height,f.parent=this}this.size=i,this.height=u,this.parent=null}xa.prototype={chunkSize:function(){return this.size},removeInner:function(e,i){this.size-=i;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var m=Math.min(i,f-e),F=l.height;if(l.removeInner(e,m),this.height-=F-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(i-=m)==0)break;e=0}else e-=f}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof ma))){var U=[];this.collapse(U),this.children=[new ma(U)],this.children[0].parent=this}},collapse:function(e){for(var i=0;i<this.children.length;++i)this.children[i].collapse(e)},insertInner:function(e,i,u){this.size+=i.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<=m){if(f.insertInner(e,i,u),f.lines&&f.lines.length>50){for(var F=f.lines.length%25+25,U=F;U<f.lines.length;){var H=new ma(f.lines.slice(U,U+=25));f.height-=H.height,this.children.splice(++l,0,H),H.parent=this}f.lines=f.lines.slice(0,F),this.maybeSpill()}break}e-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var i=e.children.splice(e.children.length-5,5),u=new xa(i);if(e.parent){e.size-=u.size,e.height-=u.height;var f=ht(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new xa(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,i,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<m){var F=Math.min(i,m-e);if(f.iterN(e,F,u))return!0;if((i-=F)==0)break;e=0}else e-=m}}};var eo=function(e,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=i};eo.prototype.clear=function(){var e=this.doc.cm,i=this.line.widgets,u=this.line,l=Zt(u);if(!(l==null||!i)){for(var f=0;f<i.length;++f)i[f]==this&&i.splice(f--,1);i.length||(u.widgets=null);var m=Ct(this);Sn(u,Math.max(0,u.height-m)),e&&(jr(e,function(){cl(e,u,-m),qn(e,l,"widget")}),ar(e,"lineWidgetCleared",e,this,l))}},eo.prototype.changed=function(){var e=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Ct(this)-i;!f||(si(this.doc,l)||Sn(l,l.height+f),u&&jr(u,function(){u.curOp.forceUpdate=!0,cl(u,l,f),ar(u,"lineWidgetChanged",u,e,Zt(l))}))},Ue(eo);function cl(e,i,u){li(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Xs(e,u)}function uc(e,i,u,l){var f=new eo(e,u,l),m=e.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),ra(e,i,"widget",function(F){var U=F.widgets||(F.widgets=[]);if(f.insertAt==null?U.push(f):U.splice(Math.min(U.length,Math.max(0,f.insertAt)),0,f),f.line=F,m&&!si(e,F)){var H=li(F)<e.scrollTop;Sn(F,F.height+Ct(f)),H&&Xs(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&ar(m,"lineWidgetAdded",m,f,typeof i=="number"?i:Zt(i)),f}var Jo=0,ti=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++Jo};ti.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,i=e&&!e.curOp;if(i&&Ii(e),Be(this,"clear")){var u=this.find();u&&ar(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var F=this.lines[m],U=Ia(F.markedSpans,this);e&&!this.collapsed?qn(e,Zt(F),"text"):e&&(U.to!=null&&(f=Zt(F)),U.from!=null&&(l=Zt(F))),F.markedSpans=Bf(F.markedSpans,U),U.from==null&&this.collapsed&&!si(this.doc,F)&&e&&Sn(F,ca(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var H=0;H<this.lines.length;++H){var Z=Vn(this.lines[H]),me=Wi(Z);me>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=me,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Rr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ru(e.doc)),e&&ar(e,"markerCleared",e,this,l,f),i&&Fi(e),this.parent&&this.parent.clear()}},ti.prototype.find=function(e,i){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var m=this.lines[f],F=Ia(m.markedSpans,this);if(F.from!=null&&(u=it(i?m:Zt(m),F.from),e==-1))return u;if(F.to!=null&&(l=it(i?m:Zt(m),F.to),e==1))return l}return u&&{from:u,to:l}},ti.prototype.changed=function(){var e=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||jr(l,function(){var f=i.line,m=Zt(i.line),F=Ds(l,m);if(F&&(Us(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!si(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var H=Ct(u)-U;H&&Sn(f,f.height+H)}ar(l,"markerChanged",l,e)})},ti.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||ht(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ti.prototype.detachLine=function(e){if(this.lines.splice(ht(this.lines,e),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Ue(ti);function na(e,i,u,l,f){if(l&&l.shared)return fc(e,i,u,l,f);if(e.cm&&!e.cm.curOp)return Vr(e.cm,na)(e,i,u,l,f);var m=new ti(e,f),F=Lt(i,u);if(l&&Ze(l,m,!1),F>0||F==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=he("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(wo(e,i.line,i,u,m)||i.line!=u.line&&wo(e,u.line,i,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");Nf()}m.addToHistory&&Pu(e,{from:i,to:u,origin:"markText"},e.sel,NaN);var U=i.line,H=e.cm,Z;if(e.iter(U,u.line+1,function(Ce){H&&m.collapsed&&!H.options.lineWrapping&&Vn(Ce)==H.display.maxLine&&(Z=!0),m.collapsed&&U!=i.line&&Sn(Ce,0),Td(Ce,new bo(m,U==i.line?i.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),m.collapsed&&e.iter(i.line,u.line+1,function(Ce){si(e,Ce)&&Sn(Ce,0)}),m.clearOnEnter&&N(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(Df(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++Jo,m.atomic=!0),H){if(Z&&(H.curOp.updateMaxLine=!0),m.collapsed)Rr(H,i.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var me=i.line;me<=u.line;me++)qn(H,me,"text");m.atomic&&Ru(H.doc),ar(H,"markerAdded",H,m)}return m}var ba=function(e,i){this.markers=e,this.primary=i;for(var u=0;u<e.length;++u)e[u].parent=this};ba.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ar(this,"clear")}},ba.prototype.find=function(e,i){return this.primary.find(e,i)},Ue(ba);function fc(e,i,u,l,f){l=Ze(l),l.shared=!1;var m=[na(e,i,u,l,f)],F=m[0],U=l.widgetNode;return Ri(e,function(H){U&&(l.widgetNode=U.cloneNode(!0)),m.push(na(H,lt(H,i),lt(H,u),l,f));for(var Z=0;Z<H.linked.length;++Z)if(H.linked[Z].isParent)return;F=Et(m)}),new ba(m,F)}function Bu(e){return e.findMarks(it(e.first,0),e.clipPos(it(e.lastLine())),function(i){return i.parent})}function dl(e,i){for(var u=0;u<i.length;u++){var l=i[u],f=l.find(),m=e.clipPos(f.from),F=e.clipPos(f.to);if(Lt(m,F)){var U=na(e,m,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function cc(e){for(var i=function(l){var f=e[l],m=[f.primary.doc];Ri(f.primary.doc,function(H){return m.push(H)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];ht(m,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)i(u)}var dc=0,ln=function(e,i,u,l,f){if(!(this instanceof ln))return new ln(e,i,u,l,f);u==null&&(u=0),xa.call(this,[new ma([new Hi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=it(u,0);this.sel=ki(m),this.history=new Xa(null),this.id=++dc,this.modeOption=i,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),nl(this,{from:m,to:m,text:e}),Zr(this,ki(m),ut)};ln.prototype=wt(xa.prototype,{constructor:ln,iter:function(e,i,u){u?this.iterN(e-this.first,i-e,u):this.iterN(this.first,this.first+this.size,e)},insert:function(e,i){for(var u=0,l=0;l<i.length;++l)u+=i[l].height;this.insertInner(e-this.first,i,u)},remove:function(e,i){this.removeInner(e-this.first,i)},getValue:function(e){var i=Ei(this,this.first,this.first+this.size);return e===!1?i:i.join(e||this.lineSeparator())},setValue:dr(function(e){var i=it(this.first,0),u=this.first+this.size-1;ga(this,{from:i,to:it(u,Ot(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&za(this.cm,0,0),Zr(this,ki(i),ut)}),replaceRange:function(e,i,u,l){i=lt(this,i),u=u?lt(this,u):i,ya(this,e,i,u,l)},getRange:function(e,i,u){var l=ai(this,lt(this,e),lt(this,i));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(e){var i=this.getLineHandle(e);return i&&i.text},getLineHandle:function(e){if(Zn(this,e))return Ot(this,e)},getLineNumber:function(e){return Zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ot(this,e)),Vn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return lt(this,e)},getCursor:function(e){var i=this.sel.primary(),u;return e==null||e=="head"?u=i.head:e=="anchor"?u=i.anchor:e=="end"||e=="to"||e===!1?u=i.to():u=i.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:dr(function(e,i,u){ol(this,lt(this,typeof e=="number"?it(e,i||0):e),null,u)}),setSelection:dr(function(e,i,u){ol(this,lt(this,e),lt(this,i||e),u)}),extendSelection:dr(function(e,i,u){Go(this,lt(this,e),i&&lt(this,i),u)}),extendSelections:dr(function(e,i){Fu(this,Xt(this,e),i)}),extendSelectionsBy:dr(function(e,i){var u=Ht(this.sel.ranges,e);Fu(this,Xt(this,u),i)}),setSelections:dr(function(e,i,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new er(lt(this,e[f].anchor),lt(this,e[f].head||e[f].anchor));i==null&&(i=Math.min(e.length-1,this.sel.primIndex)),Zr(this,An(this.cm,l,i),u)}}),addSelection:dr(function(e,i,u){var l=this.sel.ranges.slice(0);l.push(new er(lt(this,e),lt(this,i||e))),Zr(this,An(this.cm,l,l.length-1),u)}),getSelection:function(e){for(var i=this.sel.ranges,u,l=0;l<i.length;l++){var f=ai(this,i[l].from(),i[l].to());u=u?u.concat(f):f}return e===!1?u:u.join(e||this.lineSeparator())},getSelections:function(e){for(var i=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=ai(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),i[l]=f}return i},replaceSelection:function(e,i,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,i,u||"+input")},replaceSelections:dr(function(e,i,u){for(var l=[],f=this.sel,m=0;m<f.ranges.length;m++){var F=f.ranges[m];l[m]={from:F.from(),to:F.to(),text:this.splitLines(e[m]),origin:u}}for(var U=i&&i!="end"&&ic(this,l,i),H=l.length-1;H>=0;H--)ga(this,l[H]);U?ku(this,U):this.cm&&nn(this.cm)}),undo:dr(function(){In(this,"undo")}),redo:dr(function(){In(this,"redo")}),undoSelection:dr(function(){In(this,"undo",!0)}),redoSelection:dr(function(){In(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,i=0,u=0,l=0;l<e.done.length;l++)e.done[l].ranges||++i;for(var f=0;f<e.undone.length;f++)e.undone[f].ranges||++u;return{undo:i,redo:u}},clearHistory:function(){var e=this;this.history=new Xa(this.history),Ri(this,function(i){return i.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:ha(this.history.done),undone:ha(this.history.undone)}},setHistory:function(e){var i=this.history=new Xa(this.history);i.done=ha(e.done.slice(0),null,!0),i.undone=ha(e.undone.slice(0),null,!0)},setGutterMarker:dr(function(e,i,u){return ra(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[i]=u,!u&&$(f)&&(l.gutterMarkers=null),!0})}),clearGutter:dr(function(e){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&ra(i,u,"gutter",function(){return u.gutterMarkers[e]=null,$(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var i;if(typeof e=="number"){if(!Zn(this,e)||(i=e,e=Ot(this,e),!e))return null}else if(i=Zt(e),i==null)return null;return{line:i,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:dr(function(e,i,u){return ra(this,e,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(fe(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:dr(function(e,i,u){return ra(this,e,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var F=m.match(fe(u));if(!F)return!1;var U=F.index+F[0].length;l[f]=m.slice(0,F.index)+(!F.index||U==m.length?"":" ")+m.slice(U)||null}else return!1;return!0})}),addLineWidget:dr(function(e,i,u){return uc(this,e,i,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,i,u){return na(this,lt(this,e),lt(this,i),u,u&&u.type||"range")},setBookmark:function(e,i){var u={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return e=lt(this,e),na(this,e,e,u,"bookmark")},findMarksAt:function(e){e=lt(this,e);var i=[],u=Ot(this,e.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=e.ch)&&(f.to==null||f.to>=e.ch)&&i.push(f.marker.parent||f.marker)}return i},findMarks:function(e,i,u){e=lt(this,e),i=lt(this,i);var l=[],f=e.line;return this.iter(e.line,i.line+1,function(m){var F=m.markedSpans;if(F)for(var U=0;U<F.length;U++){var H=F[U];!(H.to!=null&&f==e.line&&e.ch>=H.to||H.from==null&&f!=e.line||H.from!=null&&f==i.line&&H.from>=i.ch)&&(!u||u(H.marker))&&l.push(H.marker.parent||H.marker)}++f}),l},getAllMarks:function(){var e=[];return this.iter(function(i){var u=i.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&e.push(u[l].marker)}),e},posFromIndex:function(e){var i,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var m=f.text.length+l;if(m>e)return i=e,!0;e-=m,++u}),lt(this,it(u,i))},indexFromPos:function(e){e=lt(this,e);var i=e.ch;if(e.line<this.first||e.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,e.line,function(l){i+=l.text.length+u}),i},copy:function(e){var i=new ln(Ei(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,e&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(e){e||(e={});var i=this.first,u=this.first+this.size;e.from!=null&&e.from>i&&(i=e.from),e.to!=null&&e.to<u&&(u=e.to);var l=new ln(Ei(this,i,u),e.mode||this.modeOption,i,this.lineSep,this.direction);return e.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:e.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],dl(l,Bu(this)),l},unlinkDoc:function(e){if(e instanceof pr&&(e=e.doc),this.linked)for(var i=0;i<this.linked.length;++i){var u=this.linked[i];if(u.doc==e){this.linked.splice(i,1),e.unlinkDoc(this),cc(Bu(this));break}}if(e.history==this.history){var l=[e.id];Ri(e,function(f){return l.push(f.id)},!0),e.history=new Xa(null),e.history.done=ha(this.history.done,l),e.history.undone=ha(this.history.undone,l)}},iterLinkedDocs:function(e){Ri(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Nn(e)},lineSeparator:function(){return this.lineSep||`
28
+ `},setDirection:dr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(i){return i.order=null}),this.cm&&Ja(this.cm))})}),ln.prototype.eachLine=ln.prototype.iter;var Uu=0;function pc(e){var i=this;if(ju(i),!(pe(i,e)||ui(i.display,e))){Qe(e),b&&(Uu=+new Date);var u=Ji(i,e,!0),l=e.dataTransfer.files;if(!(!u||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,m=Array(f),F=0,U=function(){++F==f&&Vr(i,function(){u=lt(i.doc,u);var ke={from:u,to:u,text:i.doc.splitLines(m.filter(function(Ye){return Ye!=null}).join(i.doc.lineSeparator())),origin:"paste"};ga(i.doc,ke),ku(i.doc,ki(lt(i.doc,u),lt(i.doc,Mi(ke))))})()},H=function(ke,Ye){if(i.options.allowDropFileTypes&&ht(i.options.allowDropFileTypes,ke.type)==-1){U();return}var tt=new FileReader;tt.onerror=function(){return U()},tt.onload=function(){var ot=tt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ot)){U();return}m[Ye]=ot,U()},tt.readAsText(ke)},Z=0;Z<l.length;Z++)H(l[Z],Z);else{if(i.state.draggingText&&i.doc.sel.contains(u)>-1){i.state.draggingText(e),setTimeout(function(){return i.display.input.focus()},20);return}try{var me=e.dataTransfer.getData("Text");if(me){var Ce;if(i.state.draggingText&&!i.state.draggingText.copy&&(Ce=i.listSelections()),Ko(i.doc,ki(u,u)),Ce)for(var De=0;De<Ce.length;++De)ya(i.doc,"",Ce[De].anchor,Ce[De].head,"drag");i.replaceSelection(me,"around","paste"),i.display.input.focus()}}catch(ke){}}}}function hc(e,i){if(b&&(!e.state.draggingText||+new Date-Uu<100)){Bt(i);return}if(!(pe(e,i)||ui(e.display,i))&&(i.dataTransfer.setData("Text",e.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!j)){var u=be("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",B&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),i.dataTransfer.setDragImage(u,0,0),B&&u.parentNode.removeChild(u)}}function vc(e,i){var u=Ji(e,i);if(!!u){var l=document.createDocumentFragment();Gs(e,u,l),e.display.dragCursor||(e.display.dragCursor=be("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ye(e.display.dragCursor,l)}}function ju(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Xo(e){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<i.length;l++){var f=i[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)e(u[m])})}}var to=!1;function Vu(){to||(gc(),to=!0)}function gc(){var e;N(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Xo(yc)},100))}),N(window,"blur",function(){return Xo(da)})}function yc(e){var i=e.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,e.setSize()}for(var mn={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ro=0;ro<10;ro++)mn[ro+48]=mn[ro+96]=String(ro);for(var no=65;no<=90;no++)mn[no]=String.fromCharCode(no);for(var wa=1;wa<=12;wa++)mn[wa+111]=mn[wa+63235]="F"+wa;var ri={};ri.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ri.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ri.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ri.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ri.default=C?ri.macDefault:ri.pcDefault;function Wu(e){var i=e.split(/-(?!$)/);e=i[i.length-1];for(var u,l,f,m,F=0;F<i.length-1;F++){var U=i[F];if(/^(cmd|meta|m)$/i.test(U))m=!0;else if(/^a(lt)?$/i.test(U))u=!0;else if(/^(c|ctrl|control)$/i.test(U))l=!0;else if(/^s(hift)?$/i.test(U))f=!0;else throw new Error("Unrecognized modifier name: "+U)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),m&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function kd(e){var i={};for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete e[u];continue}for(var f=Ht(u.split(" "),Wu),m=0;m<f.length;m++){var F=void 0,U=void 0;m==f.length-1?(U=f.join(" "),F=l):(U=f.slice(0,m+1).join(" "),F="...");var H=i[U];if(!H)i[U]=F;else if(H!=F)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var Z in i)e[Z]=i[Z];return e}function hi(e,i,u,l){i=Qo(i);var f=i.call?i.call(e,l):i[e];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return hi(e,i.fallthrough,u,l);for(var m=0;m<i.fallthrough.length;m++){var F=hi(e,i.fallthrough[m],u,l);if(F)return F}}}function Hu(e){var i=typeof e=="string"?e:mn[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function pl(e,i,u){var l=e;return i.altKey&&l!="Alt"&&(e="Alt-"+e),(Q?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(Q?i.ctrlKey:i.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&i.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function zu(e,i){if(B&&e.keyCode==34&&e.char)return!1;var u=mn[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),pl(u,e,i))}function Qo(e){return typeof e=="string"?ri[e]:e}function ia(e,i){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var m=i(u[f]);l.length&&Lt(m.from,Et(l).to)<=0;){var F=l.pop();if(Lt(F.from,m.from)<0){m.from=F.from;break}}l.push(m)}jr(e,function(){for(var U=l.length-1;U>=0;U--)ya(e.doc,"",l[U].from,l[U].to,"+delete");nn(e)})}function Zo(e,i,u){var l=Ge(e.text,i+u,u);return l<0||l>e.text.length?null:l}function _o(e,i,u){var l=Zo(e,i.ch,u);return l==null?null:new it(i.line,l,u<0?"after":"before")}function hl(e,i,u,l,f){if(e){i.doc.direction=="rtl"&&(f=-f);var m=O(u,i.doc.direction);if(m){var F=f<0?Et(m):m[0],U=f<0==(F.level==1),H=U?"after":"before",Z;if(F.level>0||i.doc.direction=="rtl"){var me=_n(i,u);Z=f<0?u.text.length-1:0;var Ce=Wn(i,me,Z).top;Z=Ke(function(De){return Wn(i,me,De).top==Ce},f<0==(F.level==1)?F.from:F.to-1,Z),H=="before"&&(Z=Zo(u,Z,1))}else Z=f<0?F.to:F.from;return new it(l,Z,H)}}return new it(l,f<0?u.text.length:0,f<0?"before":"after")}function Gu(e,i,u,l){var f=O(i,e.doc.direction);if(!f)return _o(i,u,l);u.ch>=i.text.length?(u.ch=i.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=K(f,u.ch,u.sticky),F=f[m];if(e.doc.direction=="ltr"&&F.level%2==0&&(l>0?F.to>u.ch:F.from<u.ch))return _o(i,u,l);var U=function(ct,gt){return Zo(i,ct instanceof it?ct.ch:ct,gt)},H,Z=function(ct){return e.options.lineWrapping?(H=H||_n(e,i),lu(e,i,H,ct)):{begin:0,end:i.text.length}},me=Z(u.sticky=="before"?U(u,-1):u.ch);if(e.doc.direction=="rtl"||F.level==1){var Ce=F.level==1==l<0,De=U(u,Ce?1:-1);if(De!=null&&(Ce?De<=F.to&&De<=me.end:De>=F.from&&De>=me.begin)){var ke=Ce?"before":"after";return new it(u.line,De,ke)}}var Ye=function(ct,gt,dt){for(var xt=function(Tt,Dr){return Dr?new it(u.line,U(Tt,1),"before"):new it(u.line,Tt,"after")};ct>=0&&ct<f.length;ct+=gt){var Ft=f[ct],It=gt>0==(Ft.level!=1),at=It?dt.begin:U(dt.end,-1);if(Ft.from<=at&&at<Ft.to||(at=It?Ft.from:U(Ft.to,-1),dt.begin<=at&&at<dt.end))return xt(at,It)}},tt=Ye(m+l,l,me);if(tt)return tt;var ot=l>0?me.end:U(me.begin,-1);return ot!=null&&!(l>0&&ot==i.text.length)&&(tt=Ye(l>0?0:f.length-1,l,Z(ot)),tt)?tt:null}var io={selectAll:Yo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ut)},killLine:function(e){return ia(e,function(i){if(i.empty()){var u=Ot(e.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<e.lastLine()?{from:i.head,to:it(i.head.line+1,0)}:{from:i.head,to:it(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(e){return ia(e,function(i){return{from:it(i.from().line,0),to:lt(e.doc,it(i.to().line+1,0))}})},delLineLeft:function(e){return ia(e,function(i){return{from:it(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(e){return ia(e,function(i){var u=e.charCoords(i.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(e){return ia(e,function(i){var u=e.charCoords(i.head,"div").top+5,l=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div");return{from:i.from(),to:l}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(it(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(it(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(i){return Sa(e,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(i){return qo(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return mc(e,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(i){var u=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},mt)},goLineLeft:function(e){return e.extendSelectionsBy(function(i){var u=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},mt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(i){var u=e.cursorCoords(i.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?qo(e,i.head):l},mt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var i=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var m=u[f].from(),F=Xe(e.getLine(m.line),m.ch,l);i.push(kt(l-F%l))}e.replaceSelections(i)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return jr(e,function(){for(var i=e.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var f=i[l].head,m=Ot(e.doc,f.line).text;if(m){if(f.ch==m.length&&(f=new it(f.line,f.ch-1)),f.ch>0)f=new it(f.line,f.ch+1),e.replaceRange(m.charAt(f.ch-1)+m.charAt(f.ch-2),it(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=Ot(e.doc,f.line-1).text;F&&(f=new it(f.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),it(f.line-1,F.length-1),f,"+transpose"))}}u.push(new er(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return jr(e,function(){for(var i=e.listSelections(),u=i.length-1;u>=0;u--)e.replaceRange(e.doc.lineSeparator(),i[u].anchor,i[u].head,"+input");i=e.listSelections();for(var l=0;l<i.length;l++)e.indentLine(i[l].from().line,null,!0);nn(e)})},openLine:function(e){return e.replaceSelection(`
29
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Sa(e,i){var u=Ot(e.doc,i),l=Vn(u);return l!=u&&(i=Zt(l)),hl(!0,e,l,i,1)}function mc(e,i){var u=Ot(e.doc,i),l=Xl(u);return l!=u&&(i=Zt(l)),hl(!0,e,u,i,-1)}function qo(e,i){var u=Sa(e,i.line),l=Ot(e.doc,u.line),f=O(l,e.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),F=i.line==u.line&&i.ch<=m&&i.ch;return it(u.line,F?0:m,u.sticky)}return u}function es(e,i,u){if(typeof i=="string"&&(i=io[i],!i))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=i(e)!=nt}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function xc(e,i,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=hi(i,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&hi(i,e.options.extraKeys,u,e)||hi(i,e.options.keyMap,u,e)}var ts=new ft;function ao(e,i,u,l){var f=e.state.keySeq;if(f){if(Hu(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:ts.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),bc(e,f+" "+i,u,l))return!0}return bc(e,i,u,l)}function bc(e,i,u,l){var f=xc(e,i,l);return f=="multi"&&(e.state.keySeq=i),f=="handled"&&ar(e,"keyHandled",e,i,u),(f=="handled"||f=="multi")&&(Qe(u),$s(e)),!!f}function $u(e,i){var u=zu(i,!0);return u?i.shiftKey&&!e.state.keySeq?ao(e,"Shift-"+u,i,function(l){return es(e,l,!0)})||ao(e,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return es(e,l)}):ao(e,u,i,function(l){return es(e,l)}):!1}function wc(e,i,u){return ao(e,"'"+u+"'",i,function(l){return es(e,l,!0)})}var rs=null;function Ku(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&(i.curOp.focus=Fe(),!pe(i,e))){b&&S<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;i.display.shift=u==16||e.shiftKey;var l=$u(i,e);B&&(rs=l?u:null,!l&&u==88&&!On&&(C?e.metaKey:e.ctrlKey)&&i.replaceSelection("",null,"cut")),c&&!C&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&Sc(i)}}function Sc(e){var i=e.display.lineDiv;Le(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(ee(i,"CodeMirror-crosshair"),de(document,"keyup",u),de(document,"mouseover",u))}N(document,"keyup",u),N(document,"mouseover",u)}function Yu(e){e.keyCode==16&&(this.doc.sel.shift=!1),pe(this,e)}function vl(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&!(ui(i.display,e)||pe(i,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==rs){rs=null,Qe(e);return}if(!(B&&(!e.which||e.which<10)&&$u(i,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(wc(i,e,f)||i.display.input.onKeyPress(e))}}}var Ac=400,gl=function(e,i,u){this.time=e,this.pos=i,this.button=u};gl.prototype.compare=function(e,i,u){return this.time+Ac>e&&Lt(i,this.pos)==0&&u==this.button};var oo,so;function Ec(e,i){var u=+new Date;return so&&so.compare(u,e,i)?(oo=so=null,"triple"):oo&&oo.compare(u,e,i)?(so=new gl(u,e,i),oo=null,"double"):(oo=new gl(u,e,i),so=null,"single")}function Ju(e){var i=this,u=i.display;if(!(pe(i,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,ui(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!yl(i,e)){var l=Ji(i,e),f=dn(e),m=l?Ec(l,f):"single";window.focus(),f==1&&i.state.selectingText&&i.state.selectingText(e),!(l&&Cc(i,f,l,m,e))&&(f==1?l?Tc(i,l,m,e):Pt(e)==u.scroller&&Qe(e):f==2?(l&&Go(i.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Y?i.display.input.onContextMenu(e):Wa(i)))}}}function Cc(e,i,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,ao(e,pl(m,f),f,function(F){if(typeof F=="string"&&(F=io[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=nt}finally{e.state.suppressEdits=!1}return U})}function Oc(e,i,u){var l=e.getOption("configureMouse"),f=l?l(e,i,u):{};if(f.unit==null){var m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=C?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(C?u.altKey:u.ctrlKey)),f}function Tc(e,i,u,l){b?setTimeout(rt(Ks,e),0):e.curOp.focus=Fe();var f=Oc(e,u,l),m=e.doc.sel,F;e.options.dragDrop&&Br&&!e.isReadOnly()&&u=="single"&&(F=m.contains(i))>-1&&(Lt((F=m.ranges[F]).from(),i)<0||i.xRel>0)&&(Lt(F.to(),i)>0||i.xRel<0)?ns(e,l,i,f):Pc(e,l,i,f)}function ns(e,i,u,l){var f=e.display,m=!1,F=Vr(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wa(e)),de(f.wrapper.ownerDocument,"mouseup",F),de(f.wrapper.ownerDocument,"mousemove",U),de(f.scroller,"dragstart",H),de(f.scroller,"drop",F),m||(Qe(Z),l.addNew||Go(e.doc,u,null,null,l.extend),g&&!j||b&&S==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),U=function(Z){m=m||Math.abs(i.clientX-Z.clientX)+Math.abs(i.clientY-Z.clientY)>=10},H=function(){return m=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=F,F.copy=!l.moveOnDrag,N(f.wrapper.ownerDocument,"mouseup",F),N(f.wrapper.ownerDocument,"mousemove",U),N(f.scroller,"dragstart",H),N(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Xu(e,i,u){if(u=="char")return new er(i,i);if(u=="word")return e.findWordAt(i);if(u=="line")return new er(it(i.line,0),lt(e.doc,it(i.line+1,0)));var l=u(e,i);return new er(l.from,l.to)}function Pc(e,i,u,l){b&&Wa(e);var f=e.display,m=e.doc;Qe(i);var F,U,H=m.sel,Z=H.ranges;if(l.addNew&&!l.extend?(U=m.sel.contains(u),U>-1?F=Z[U]:F=new er(u,u)):(F=m.sel.primary(),U=m.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new er(u,u)),u=Ji(e,i,!0,!0),U=-1;else{var me=Xu(e,u,l.unit);l.extend?F=al(F,me.anchor,me.head,l.extend):F=me}l.addNew?U==-1?(U=Z.length,Zr(m,An(e,Z.concat([F]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(Zr(m,An(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),H=m.sel):$o(m,U,F,yt):(U=0,Zr(m,new yn([F],0),yt),H=m.sel);var Ce=u;function De(dt){if(Lt(Ce,dt)!=0)if(Ce=dt,l.unit=="rectangle"){for(var xt=[],Ft=e.options.tabSize,It=Xe(Ot(m,u.line).text,u.ch,Ft),at=Xe(Ot(m,dt.line).text,dt.ch,Ft),Tt=Math.min(It,at),Dr=Math.max(It,at),br=Math.min(u.line,dt.line),xn=Math.min(e.lastLine(),Math.max(u.line,dt.line));br<=xn;br++){var un=Ot(m,br).text,Ir=pt(un,Tt,Ft);Tt==Dr?xt.push(new er(it(br,Ir),it(br,Ir))):un.length>Ir&&xt.push(new er(it(br,Ir),it(br,pt(un,Dr,Ft))))}xt.length||xt.push(new er(u,u)),Zr(m,An(e,H.ranges.slice(0,U).concat(xt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(dt)}else{var fn=F,Fr=Xu(e,dt,l.unit),kr=fn.anchor,Ar;Lt(Fr.anchor,kr)>0?(Ar=Fr.head,kr=qe(fn.from(),Fr.anchor)):(Ar=Fr.anchor,kr=Oe(fn.to(),Fr.head));var vr=H.ranges.slice(0);vr[U]=Ic(e,new er(lt(m,kr),Ar)),Zr(m,An(e,vr,U),yt)}}var ke=f.wrapper.getBoundingClientRect(),Ye=0;function tt(dt){var xt=++Ye,Ft=Ji(e,dt,!0,l.unit=="rectangle");if(!!Ft)if(Lt(Ft,Ce)!=0){e.curOp.focus=Fe(),De(Ft);var It=Ha(f,m);(Ft.line>=It.to||Ft.line<It.from)&&setTimeout(Vr(e,function(){Ye==xt&&tt(dt)}),150)}else{var at=dt.clientY<ke.top?-20:dt.clientY>ke.bottom?20:0;at&&setTimeout(Vr(e,function(){Ye==xt&&(f.scroller.scrollTop+=at,tt(dt))}),50)}}function ot(dt){e.state.selectingText=!1,Ye=1/0,dt&&(Qe(dt),f.input.focus()),de(f.wrapper.ownerDocument,"mousemove",ct),de(f.wrapper.ownerDocument,"mouseup",gt),m.history.lastSelOrigin=null}var ct=Vr(e,function(dt){dt.buttons===0||!dn(dt)?ot(dt):tt(dt)}),gt=Vr(e,ot);e.state.selectingText=gt,N(f.wrapper.ownerDocument,"mousemove",ct),N(f.wrapper.ownerDocument,"mouseup",gt)}function Ic(e,i){var u=i.anchor,l=i.head,f=Ot(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return i;var m=O(f);if(!m)return i;var F=K(m,u.ch,u.sticky),U=m[F];if(U.from!=u.ch&&U.to!=u.ch)return i;var H=F+(U.from==u.ch==(U.level!=1)?0:1);if(H==0||H==m.length)return i;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var me=K(m,l.ch,l.sticky),Ce=me-F||(l.ch-u.ch)*(U.level==1?-1:1);me==H-1||me==H?Z=Ce<0:Z=Ce>0}var De=m[H+(Z?-1:0)],ke=Z==(De.level==1),Ye=ke?De.from:De.to,tt=ke?"after":"before";return u.ch==Ye&&u.sticky==tt?i:new er(new it(u.line,Ye,tt),l)}function Qu(e,i,u,l){var f,m;if(i.touches)f=i.touches[0].clientX,m=i.touches[0].clientY;else try{f=i.clientX,m=i.clientY}catch(De){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&Qe(i);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(m>U.bottom||!Be(e,u))return At(i);m-=U.top-F.viewOffset;for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=F.gutters.childNodes[H];if(Z&&Z.getBoundingClientRect().right>=f){var me=jn(e.doc,m),Ce=e.display.gutterSpecs[H];return ae(e,u,e,me,Ce.className,i),At(i)}}}function yl(e,i){return Qu(e,i,"gutterClick",!0)}function Zu(e,i){ui(e.display,i)||_u(e,i)||pe(e,i,"contextmenu")||Y||e.display.input.onContextMenu(i)}function _u(e,i){return Be(e,"gutterContextMenu")?Qu(e,i,"gutterContextMenu",!1):!1}function qu(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ba(e)}var Aa={toString:function(){return"CodeMirror.Init"}},ef={},is={};function tf(e){var i=e.optionHandlers;function u(l,f,m,F){e.defaults[l]=f,m&&(i[l]=F?function(U,H,Z){Z!=Aa&&m(U,H,Z)}:m)}e.defineOption=u,e.Init=Aa,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Vo(l)},!0),u("indentUnit",2,Vo,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){ea(l),Ba(l),Rr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],F=l.doc.first;l.doc.iter(function(H){for(var Z=0;;){var me=H.text.indexOf(f,Z);if(me==-1)break;Z=me+f.length,m.push(it(F,me))}F++});for(var U=m.length-1;U>=0;U--)ya(l.doc,f,m[U],it(m[U].line,m[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=Aa&&l.refresh()}),u("specialCharPlaceholder",Is,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",R?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){qu(l),Uo(l)},!0),u("keyMap","default",function(l,f,m){var F=Qo(f),U=m!=Aa&&Qo(m);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,kc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Ya(f,l.options.lineNumbers),Uo(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Pn(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return ci(l)},!0),u("scrollbarStyle","native",function(l){No(l),ci(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=Ya(l.options.gutters,f),Uo(l)},!0),u("firstLineNumber",1,Uo,!0),u("lineNumberFormatter",function(l){return l},Uo,!0),u("showCursorWhenSelecting",!1,Pi,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(da(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,Fc),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Pi,!0),u("singleCursorHeightPerLine",!0,Pi,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,ea,!0),u("addModeClass",!1,ea,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,ea,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function Fc(e,i,u){var l=u&&u!=Aa;if(!i!=!l){var f=e.display.dragFunctions,m=i?N:de;m(e.display.scroller,"dragstart",f.start),m(e.display.scroller,"dragenter",f.enter),m(e.display.scroller,"dragover",f.over),m(e.display.scroller,"dragleave",f.leave),m(e.display.scroller,"drop",f.drop)}}function kc(e){e.options.lineWrapping?(Le(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ee(e.display.wrapper,"CodeMirror-wrap"),Cs(e)),zs(e),Rr(e),Ba(e),setTimeout(function(){return ci(e)},100)}function pr(e,i){var u=this;if(!(this instanceof pr))return new pr(e,i);this.options=i=i?Ze(i):{},Ze(ef,i,!1);var l=i.value;typeof l=="string"?l=new ln(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var f=new pr.inputStyles[i.inputStyle](this),m=this.display=new nc(e,l,f,i);m.wrapper.CodeMirror=this,qu(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),No(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ft,keySeq:null,specialChars:null},i.autofocus&&!R&&m.input.focus(),b&&S<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Mc(this),Vu(),Ii(this),this.curOp.forceUpdate=!0,Cu(this,l),i.autofocus&&!R||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Mo(u)},20):da(this);for(var F in is)is.hasOwnProperty(F)&&is[F](this,i[F],Aa);Bo(this),i.finishInit&&i.finishInit(this);for(var U=0;U<ml.length;++U)ml[U](this);Fi(this),g&&i.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}pr.defaults=ef,pr.optionHandlers=is;function Mc(e){var i=e.display;N(i.scroller,"mousedown",Vr(e,Ju)),b&&S<11?N(i.scroller,"dblclick",Vr(e,function(H){if(!pe(e,H)){var Z=Ji(e,H);if(!(!Z||yl(e,H)||ui(e.display,H))){Qe(H);var me=e.findWordAt(Z);Go(e.doc,me.anchor,me.head)}}})):N(i.scroller,"dblclick",function(H){return pe(e,H)||Qe(H)}),N(i.scroller,"contextmenu",function(H){return Zu(e,H)}),N(i.input.getField(),"contextmenu",function(H){i.scroller.contains(H.target)||Zu(e,H)});var u,l={end:0};function f(){i.activeTouch&&(u=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function m(H){if(H.touches.length!=1)return!1;var Z=H.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function F(H,Z){if(Z.left==null)return!0;var me=Z.left-H.left,Ce=Z.top-H.top;return me*me+Ce*Ce>20*20}N(i.scroller,"touchstart",function(H){if(!pe(e,H)&&!m(H)&&!yl(e,H)){i.input.ensurePolled(),clearTimeout(u);var Z=+new Date;i.activeTouch={start:Z,moved:!1,prev:Z-l.end<=300?l:null},H.touches.length==1&&(i.activeTouch.left=H.touches[0].pageX,i.activeTouch.top=H.touches[0].pageY)}}),N(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),N(i.scroller,"touchend",function(H){var Z=i.activeTouch;if(Z&&!ui(i,H)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var me=e.coordsChar(i.activeTouch,"page"),Ce;!Z.prev||F(Z,Z.prev)?Ce=new er(me,me):!Z.prev.prev||F(Z,Z.prev.prev)?Ce=e.findWordAt(me):Ce=new er(it(me.line,0),lt(e.doc,it(me.line+1,0))),e.setSelection(Ce.anchor,Ce.head),e.focus(),Qe(H)}f()}),N(i.scroller,"touchcancel",f),N(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Ga(e,i.scroller.scrollTop),Zi(e,i.scroller.scrollLeft,!0),ae(e,"scroll",e))}),N(i.scroller,"mousewheel",function(H){return Su(e,H)}),N(i.scroller,"DOMMouseScroll",function(H){return Su(e,H)}),N(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(H){pe(e,H)||Bt(H)},over:function(H){pe(e,H)||(vc(e,H),Bt(H))},start:function(H){return hc(e,H)},drop:Vr(e,pc),leave:function(H){pe(e,H)||ju(e)}};var U=i.input.getField();N(U,"keyup",function(H){return Yu.call(e,H)}),N(U,"keydown",Vr(e,Ku)),N(U,"keypress",Vr(e,vl)),N(U,"focus",function(H){return Mo(e,H)}),N(U,"blur",function(H){return da(e,H)})}var ml=[];pr.defineInitHook=function(e){return ml.push(e)};function Ea(e,i,u,l){var f=e.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=tn(e,i).state:u="prev");var F=e.options.tabSize,U=Ot(f,i),H=Xe(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],me;if(!l&&!/\S/.test(U.text))me=0,u="not";else if(u=="smart"&&(me=f.mode.indent(m,U.text.slice(Z.length),U.text),me==nt||me>150)){if(!l)return;u="prev"}u=="prev"?i>f.first?me=Xe(Ot(f,i-1).text,null,F):me=0:u=="add"?me=H+e.options.indentUnit:u=="subtract"?me=H-e.options.indentUnit:typeof u=="number"&&(me=H+u),me=Math.max(0,me);var Ce="",De=0;if(e.options.indentWithTabs)for(var ke=Math.floor(me/F);ke;--ke)De+=F,Ce+=" ";if(De<me&&(Ce+=kt(me-De)),Ce!=Z)return ya(f,Ce,it(i,0),it(i,Z.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var tt=f.sel.ranges[Ye];if(tt.head.line==i&&tt.head.ch<Z.length){var ot=it(i,Z.length);$o(f,Ye,new er(ot,ot));break}}}var En=null;function lo(e){En=e}function xl(e,i,u,l,f){var m=e.doc;e.display.shift=!1,l||(l=m.sel);var F=+new Date-200,U=f=="paste"||e.state.pasteIncoming>F,H=Nn(i),Z=null;if(U&&l.ranges.length>1)if(En&&En.text.join(`
30
+ `)==i){if(l.ranges.length%En.text.length==0){Z=[];for(var me=0;me<En.text.length;me++)Z.push(m.splitLines(En.text[me]))}}else H.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(Z=Ht(H,function(ct){return[ct]}));for(var Ce=e.curOp.updateInput,De=l.ranges.length-1;De>=0;De--){var ke=l.ranges[De],Ye=ke.from(),tt=ke.to();ke.empty()&&(u&&u>0?Ye=it(Ye.line,Ye.ch-u):e.state.overwrite&&!U?tt=it(tt.line,Math.min(Ot(m,tt.line).text.length,tt.ch+Et(H).length)):U&&En&&En.lineWise&&En.text.join(`
31
+ `)==H.join(`
32
+ `)&&(Ye=tt=it(Ye.line,0)));var ot={from:Ye,to:tt,text:Z?Z[De%Z.length]:H,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};ga(e.doc,ot),ar(e,"inputRead",e,ot)}i&&!U&&nf(e,i),nn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function rf(e,i){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&jr(i,function(){return xl(i,u,0,null,"paste")}),!0}function nf(e,i){if(!(!e.options.electricChars||!e.options.smartIndent))for(var u=e.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var m=e.getModeAt(f.head),F=!1;if(m.electricChars){for(var U=0;U<m.electricChars.length;U++)if(i.indexOf(m.electricChars.charAt(U))>-1){F=Ea(e,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Ot(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=Ea(e,f.head.line,"smart"));F&&ar(e,"electricInput",e,f.head.line)}}}function af(e){for(var i=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,m={anchor:it(f,0),head:it(f+1,0)};u.push(m),i.push(e.getRange(m.anchor,m.head))}return{text:i,ranges:u}}function xr(e,i,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!i)}function Rc(){var e=be("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=be("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),M&&(e.style.border="1px solid black"),xr(e),i}function Lc(e){var i=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var m=this.options,F=m[l];m[l]==f&&l!="mode"||(m[l]=f,i.hasOwnProperty(l)&&Vr(this,i[l])(this,f,F),ae(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](Qo(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,m=0;m<f.length;++m)if(f[m]==l||f[m].name==l)return f.splice(m,1),!0},addOverlay:Lr(function(l,f){var m=l.token?l:e.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");jt(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,Rr(this)}),removeOverlay:Lr(function(l){for(var f=this.state.overlays,m=0;m<f.length;++m){var F=f[m].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(m,1),this.state.modeGen++,Rr(this);return}}}),indentLine:Lr(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Zn(this.doc,l)&&Ea(this,l,f,m)}),indentSelection:Lr(function(l){for(var f=this.doc.sel.ranges,m=-1,F=0;F<f.length;F++){var U=f[F];if(U.empty())U.head.line>m&&(Ea(this,U.head.line,l,!0),m=U.head.line,F==this.doc.sel.primIndex&&nn(this));else{var H=U.from(),Z=U.to(),me=Math.max(m,H.line);m=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ce=me;Ce<m;++Ce)Ea(this,Ce,l);var De=this.doc.sel.ranges;H.ch==0&&f.length==De.length&&De[F].from().ch>0&&$o(this.doc,F,new er(H,De[F].to()),ut)}}}),getTokenAt:function(l,f){return bs(this,l,f)},getLineTokens:function(l,f){return bs(this,it(l),f,!0)},getTokenTypeAt:function(l){l=lt(this.doc,l);var f=Wl(this,Ot(this.doc,l.line)),m=0,F=(f.length-1)/2,U=l.ch,H;if(U==0)H=f[2];else for(;;){var Z=m+F>>1;if((Z?f[Z*2-1]:0)>=U)F=Z;else if(f[Z*2+1]<U)m=Z+1;else{H=f[Z*2+2];break}}var me=H?H.indexOf("overlay "):-1;return me<0?H:me==0?null:H.slice(0,me-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var m=[];if(!u.hasOwnProperty(f))return m;var F=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")F[U[f]]&&m.push(F[U[f]]);else if(U[f])for(var H=0;H<U[f].length;H++){var Z=F[U[f][H]];Z&&m.push(Z)}else U.helperType&&F[U.helperType]?m.push(F[U.helperType]):F[U.name]&&m.push(F[U.name]);for(var me=0;me<F._global.length;me++){var Ce=F._global[me];Ce.pred(U,this)&&ht(m,Ce.val)==-1&&m.push(Ce.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=st(m,l==null?m.first+m.size-1:l),tn(this,l+1,f).state},cursorCoords:function(l,f){var m,F=this.doc.sel.primary();return l==null?m=F.head:typeof l=="object"?m=lt(this.doc,l):m=l?F.from():F.to(),Hn(this,m,f||"page")},charCoords:function(l,f){return To(this,lt(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Va(this,l,f||"page"),Vs(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Va(this,{top:l,left:0},f||"page").top,jn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){var F=!1,U;if(typeof l=="number"){var H=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>H&&(l=H,F=!0),U=Ot(this.doc,l)}else U=l;return Oo(this,U,{top:0,left:0},f||"page",m||F).top+(F?this.doc.height-li(U):0)},defaultTextHeight:function(){return ca(this.display)},defaultCharWidth:function(){return Tn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,F,U){var H=this.display;l=Hn(this,lt(this.doc,l));var Z=l.bottom,me=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),H.sizer.appendChild(f),F=="over")Z=l.top;else if(F=="above"||F=="near"){var Ce=Math.max(H.wrapper.clientHeight,this.doc.height),De=Math.max(H.sizer.clientWidth,H.lineSpace.clientWidth);(F=="above"||l.bottom+f.offsetHeight>Ce)&&l.top>f.offsetHeight?Z=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ce&&(Z=l.bottom),me+f.offsetWidth>De&&(me=De-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(me=H.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?me=0:U=="middle"&&(me=(H.sizer.clientWidth-f.offsetWidth)/2),f.style.left=me+"px"),m&&du(this,{left:me,top:Z,right:me+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Lr(Ku),triggerOnKeyPress:Lr(vl),triggerOnKeyUp:Yu,triggerOnMouseDown:Lr(Ju),execCommand:function(l){if(io.hasOwnProperty(l))return io[l].call(null,this)},triggerElectric:Lr(function(l){nf(this,l)}),findPosH:function(l,f,m,F){var U=1;f<0&&(U=-1,f=-f);for(var H=lt(this.doc,l),Z=0;Z<f&&(H=Gt(this.doc,H,U,m,F),!H.hitSide);++Z);return H},moveH:Lr(function(l,f){var m=this;this.extendSelectionsBy(function(F){return m.display.shift||m.doc.extend||F.empty()?Gt(m.doc,F.head,l,f,m.options.rtlMoveVisually):l<0?F.from():F.to()},mt)}),deleteH:Lr(function(l,f){var m=this.doc.sel,F=this.doc;m.somethingSelected()?F.replaceSelection("",null,"+delete"):ia(this,function(U){var H=Gt(F,U.head,l,f,!1);return l<0?{from:H,to:U.head}:{from:U.head,to:H}})}),findPosV:function(l,f,m,F){var U=1,H=F;f<0&&(U=-1,f=-f);for(var Z=lt(this.doc,l),me=0;me<f;++me){var Ce=Hn(this,Z,"div");if(H==null?H=Ce.left:Ce.left=H,Z=bl(this,Ce,U,m),Z.hitSide)break}return Z},moveV:Lr(function(l,f){var m=this,F=this.doc,U=[],H=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(me){if(H)return l<0?me.from():me.to();var Ce=Hn(m,me.head,"div");me.goalColumn!=null&&(Ce.left=me.goalColumn),U.push(Ce.left);var De=bl(m,Ce,l,f);return f=="page"&&me==F.sel.primary()&&Xs(m,To(m,De,"div").top-Ce.top),De},mt),U.length)for(var Z=0;Z<F.sel.ranges.length;Z++)F.sel.ranges[Z].goalColumn=U[Z]}),findWordAt:function(l){var f=this.doc,m=Ot(f,l.line).text,F=l.ch,U=l.ch;if(m){var H=this.getHelper(l,"wordChars");(l.sticky=="before"||U==m.length)&&F?--F:++U;for(var Z=m.charAt(F),me=z(Z,H)?function(Ce){return z(Ce,H)}:/\s/.test(Z)?function(Ce){return/\s/.test(Ce)}:function(Ce){return!/\s/.test(Ce)&&!z(Ce)};F>0&&me(m.charAt(F-1));)--F;for(;U<m.length&&me(m.charAt(U));)++U}return new er(it(l.line,F),it(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):ee(this.display.cursorDiv,"CodeMirror-overwrite"),ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Fe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Lr(function(l,f){za(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-fi(this)-this.display.barHeight,width:l.scrollWidth-fi(this)-this.display.barWidth,clientHeight:Na(this),clientWidth:$i(this)}},scrollIntoView:Lr(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:it(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?Qi(this,l):pu(this,l.from,l.to,l.margin)}),setSize:Lr(function(l,f){var m=this,F=function(H){return typeof H=="number"||/^\d+$/.test(String(H))?H+"px":H};l!=null&&(this.display.wrapper.style.width=F(l)),f!=null&&(this.display.wrapper.style.height=F(f)),this.options.lineWrapping&&Ki(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(H){if(H.widgets){for(var Z=0;Z<H.widgets.length;Z++)if(H.widgets[Z].noHScroll){qn(m,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,ae(this,"refresh",this)}),operation:function(l){return jr(this,l)},startOperation:function(){return Ii(this)},endOperation:function(){return Fi(this)},refresh:Lr(function(){var l=this.display.cachedTextHeight;Rr(this),this.curOp.forceUpdate=!0,Ba(this),za(this,this.doc.scrollLeft,this.doc.scrollTop),el(this.display),(l==null||Math.abs(l-ca(this.display))>.5||this.options.lineWrapping)&&zs(this),ae(this,"refresh",this)}),swapDoc:Lr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Cu(this,l),Ba(this),this.display.input.reset(),za(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,ar(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ue(e),e.registerHelper=function(l,f,m){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=m},e.registerGlobalHelper=function(l,f,m,F){e.registerHelper(l,f,F),u[l]._global.push({pred:m,val:F})}}function Gt(e,i,u,l,f){var m=i,F=u,U=Ot(e,i.line),H=f&&e.direction=="rtl"?-u:u;function Z(){var gt=i.line+H;return gt<e.first||gt>=e.first+e.size?!1:(i=new it(gt,i.ch,i.sticky),U=Ot(e,gt))}function me(gt){var dt;if(l=="codepoint"){var xt=U.text.charCodeAt(i.ch+(u>0?0:-1));if(isNaN(xt))dt=null;else{var Ft=u>0?xt>=55296&&xt<56320:xt>=56320&&xt<57343;dt=new it(i.line,Math.max(0,Math.min(U.text.length,i.ch+u*(Ft?2:1))),-u)}}else f?dt=Gu(e.cm,U,i,u):dt=_o(U,i,u);if(dt==null)if(!gt&&Z())i=hl(f,e.cm,U,i.line,H);else return!1;else i=dt;return!0}if(l=="char"||l=="codepoint")me();else if(l=="column")me(!0);else if(l=="word"||l=="group")for(var Ce=null,De=l=="group",ke=e.cm&&e.cm.getHelper(i,"wordChars"),Ye=!0;!(u<0&&!me(!Ye));Ye=!1){var tt=U.text.charAt(i.ch)||`
33
+ `,ot=z(tt,ke)?"w":De&&tt==`
34
+ `?"n":!De||/\s/.test(tt)?null:"p";if(De&&!Ye&&!ot&&(ot="s"),Ce&&Ce!=ot){u<0&&(u=1,me(),i.sticky="after");break}if(ot&&(Ce=ot),u>0&&!me(!Ye))break}var ct=_a(e,i,m,F,!0);return oi(m,ct)&&(ct.hitSide=!0),ct}function bl(e,i,u,l){var f=e.doc,m=i.left,F;if(l=="page"){var U=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),H=Math.max(U-.5*ca(e.display),3);F=(u>0?i.bottom:i.top)+u*H}else l=="line"&&(F=u>0?i.bottom+3:i.top-3);for(var Z;Z=Vs(e,m,F),!!Z.outside;){if(u<0?F<=0:F>=f.height){Z.hitSide=!0;break}F+=u*5}return Z}var Wt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ft,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Wt.prototype.init=function(e){var i=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,xr(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(U){for(var H=U.target;H;H=H.parentNode){if(H==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(H.className))break}return!1}N(f,"paste",function(U){!m(U)||pe(l,U)||rf(U,l)||S<=11&&setTimeout(Vr(l,function(){return i.updateFromDOM()}),20)}),N(f,"compositionstart",function(U){i.composing={data:U.data,done:!1}}),N(f,"compositionupdate",function(U){i.composing||(i.composing={data:U.data,done:!1})}),N(f,"compositionend",function(U){i.composing&&(U.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),N(f,"touchstart",function(){return u.forceCompositionEnd()}),N(f,"input",function(){i.composing||i.readFromDOMSoon()});function F(U){if(!(!m(U)||pe(l,U))){if(l.somethingSelected())lo({lineWise:!1,text:l.getSelections()}),U.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var H=af(l);lo({lineWise:!0,text:H.text}),U.type=="cut"&&l.operation(function(){l.setSelections(H.ranges,0,ut),l.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var Z=En.text.join(`
35
+ `);if(U.clipboardData.setData("Text",Z),U.clipboardData.getData("Text")==Z){U.preventDefault();return}}var me=Rc(),Ce=me.firstChild;l.display.lineSpace.insertBefore(me,l.display.lineSpace.firstChild),Ce.value=En.text.join(`
36
+ `);var De=Fe();Pe(Ce),setTimeout(function(){l.display.lineSpace.removeChild(me),De.focus(),De==f&&u.showPrimarySelection()},50)}}N(f,"copy",F),N(f,"cut",F)},Wt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var e=Fo(this.cm,!1);return e.focus=Fe()==this.div,e},Wt.prototype.showSelection=function(e,i){!e||!this.cm.display.view.length||((e.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Wt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Wt.prototype.showPrimarySelection=function(){var e=this.getSelection(),i=this.cm,u=i.doc.sel.primary(),l=u.from(),f=u.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||f.line<i.display.viewFrom){e.removeAllRanges();return}var m=Fn(i,e.anchorNode,e.anchorOffset),F=Fn(i,e.focusNode,e.focusOffset);if(!(m&&!m.bad&&F&&!F.bad&&Lt(qe(m,F),l)==0&&Lt(Oe(m,F),f)==0)){var U=i.display.view,H=l.line>=i.display.viewFrom&&of(i,l)||{node:U[0].measure.map[2],offset:0},Z=f.line<i.display.viewTo&&of(i,f);if(!Z){var me=U[U.length-1].measure,Ce=me.maps?me.maps[me.maps.length-1]:me.map;Z={node:Ce[Ce.length-1],offset:Ce[Ce.length-2]-Ce[Ce.length-3]}}if(!H||!Z){e.removeAllRanges();return}var De=e.rangeCount&&e.getRangeAt(0),ke;try{ke=ue(H.node,H.offset,Z.offset,Z.node)}catch(Ye){}ke&&(!c&&i.state.focused?(e.collapse(H.node,H.offset),ke.collapsed||(e.removeAllRanges(),e.addRange(ke))):(e.removeAllRanges(),e.addRange(ke)),De&&e.anchorNode==null?e.addRange(De):c&&this.startGracePeriod()),this.rememberSelection()}},Wt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Wt.prototype.showMultipleSelections=function(e){ye(this.cm.display.cursorDiv,e.cursors),ye(this.cm.display.selectionDiv,e.selection)},Wt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Wt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var i=e.getRangeAt(0).commonAncestorContainer;return oe(this.div,i)},Wt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Wt.prototype.blur=function(){this.div.blur()},Wt.prototype.getField=function(){return this.div},Wt.prototype.supportsTouch=function(){return!0},Wt.prototype.receivedFocus=function(){var e=this,i=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):jr(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function u(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},Wt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Wt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),i=this.cm;if(X&&D&&this.cm.display.gutterSpecs.length&&uo(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Fn(i,e.anchorNode,e.anchorOffset),l=Fn(i,e.focusNode,e.focusOffset);u&&l&&jr(i,function(){Zr(i.doc,ki(u,l),ut),(u.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},Wt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,i=e.display,u=e.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>e.firstLine()&&(l=it(l.line-1,Ot(e.doc,l.line-1).length)),f.ch==Ot(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=it(f.line+1,0)),l.line<i.viewFrom||f.line>i.viewTo-1)return!1;var m,F,U;l.line==i.viewFrom||(m=Xi(e,l.line))==0?(F=Zt(i.view[0].line),U=i.view[0].node):(F=Zt(i.view[m].line),U=i.view[m-1].node.nextSibling);var H=Xi(e,f.line),Z,me;if(H==i.view.length-1?(Z=i.viewTo-1,me=i.lineDiv.lastChild):(Z=Zt(i.view[H+1].line)-1,me=i.view[H+1].node.previousSibling),!U)return!1;for(var Ce=e.doc.splitLines(sf(e,U,me,F,Z)),De=ai(e.doc,it(F,0),it(Z,Ot(e.doc,Z).text.length));Ce.length>1&&De.length>1;)if(Et(Ce)==Et(De))Ce.pop(),De.pop(),Z--;else if(Ce[0]==De[0])Ce.shift(),De.shift(),F++;else break;for(var ke=0,Ye=0,tt=Ce[0],ot=De[0],ct=Math.min(tt.length,ot.length);ke<ct&&tt.charCodeAt(ke)==ot.charCodeAt(ke);)++ke;for(var gt=Et(Ce),dt=Et(De),xt=Math.min(gt.length-(Ce.length==1?ke:0),dt.length-(De.length==1?ke:0));Ye<xt&&gt.charCodeAt(gt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)++Ye;if(Ce.length==1&&De.length==1&&F==l.line)for(;ke&&ke>l.ch&&gt.charCodeAt(gt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)ke--,Ye++;Ce[Ce.length-1]=gt.slice(0,gt.length-Ye).replace(/^\u200b+/,""),Ce[0]=Ce[0].slice(ke).replace(/\u200b+$/,"");var Ft=it(F,ke),It=it(Z,De.length?Et(De).length-Ye:0);if(Ce.length>1||Ce[0]||Lt(Ft,It))return ya(e.doc,Ce,Ft,It,"+input"),!0},Wt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Wt.prototype.reset=function(){this.forceCompositionEnd()},Wt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Wt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Wt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&jr(this.cm,function(){return Rr(e.cm)})},Wt.prototype.setUneditable=function(e){e.contentEditable="false"},Wt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Vr(this.cm,xl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Wt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Wt.prototype.onContextMenu=function(){},Wt.prototype.resetPosition=function(){},Wt.prototype.needsContentAttribute=!0;function of(e,i){var u=Ds(e,i.line);if(!u||u.hidden)return null;var l=Ot(e.doc,i.line),f=Ls(u,l,i.line),m=O(l,e.doc.direction),F="left";if(m){var U=K(m,i.ch);F=U%2?"right":"left"}var H=Ns(f.map,i.ch,F);return H.offset=H.collapse=="right"?H.end:H.start,H}function uo(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Cn(e,i){return i&&(e.bad=!0),e}function sf(e,i,u,l,f){var m="",F=!1,U=e.doc.lineSeparator(),H=!1;function Z(ke){return function(Ye){return Ye.id==ke}}function me(){F&&(m+=U,H&&(m+=U),F=H=!1)}function Ce(ke){ke&&(me(),m+=ke)}function De(ke){if(ke.nodeType==1){var Ye=ke.getAttribute("cm-text");if(Ye){Ce(Ye);return}var tt=ke.getAttribute("cm-marker"),ot;if(tt){var ct=e.findMarks(it(l,0),it(f+1,0),Z(+tt));ct.length&&(ot=ct[0].find(0))&&Ce(ai(e.doc,ot.from,ot.to).join(U));return}if(ke.getAttribute("contenteditable")=="false")return;var gt=/^(pre|div|p|li|table|br)$/i.test(ke.nodeName);if(!/^br$/i.test(ke.nodeName)&&ke.textContent.length==0)return;gt&&me();for(var dt=0;dt<ke.childNodes.length;dt++)De(ke.childNodes[dt]);/^(pre|p)$/i.test(ke.nodeName)&&(H=!0),gt&&(F=!0)}else ke.nodeType==3&&Ce(ke.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;De(i),i!=u;)i=i.nextSibling,H=!1;return m}function Fn(e,i,u){var l;if(i==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return Cn(e.clipPos(it(e.display.viewTo-1)),!0);i=null,u=0}else for(l=i;;l=l.parentNode){if(!l||l==e.display.lineDiv)return null;if(l.parentNode&&l.parentNode==e.display.lineDiv)break}for(var f=0;f<e.display.view.length;f++){var m=e.display.view[f];if(m.node==l)return Dc(m,i,u)}}function Dc(e,i,u){var l=e.text.firstChild,f=!1;if(!i||!oe(l,i))return Cn(it(Zt(e.line),0),!0);if(i==l&&(f=!0,i=l.childNodes[u],u=0,!i)){var m=e.rest?Et(e.rest):e.line;return Cn(it(Zt(m),m.text.length),f)}var F=i.nodeType==3?i:null,U=i;for(!F&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(F=i.firstChild,u&&(u=F.nodeValue.length));U.parentNode!=l;)U=U.parentNode;var H=e.measure,Z=H.maps;function me(ot,ct,gt){for(var dt=-1;dt<(Z?Z.length:0);dt++)for(var xt=dt<0?H.map:Z[dt],Ft=0;Ft<xt.length;Ft+=3){var It=xt[Ft+2];if(It==ot||It==ct){var at=Zt(dt<0?e.line:e.rest[dt]),Tt=xt[Ft]+gt;return(gt<0||It!=ot)&&(Tt=xt[Ft+(gt?1:0)]),it(at,Tt)}}}var Ce=me(F,U,u);if(Ce)return Cn(Ce,f);for(var De=U.nextSibling,ke=F?F.nodeValue.length-u:0;De;De=De.nextSibling){if(Ce=me(De,De.firstChild,0),Ce)return Cn(it(Ce.line,Ce.ch-ke),f);ke+=De.textContent.length}for(var Ye=U.previousSibling,tt=u;Ye;Ye=Ye.previousSibling){if(Ce=me(Ye,Ye.firstChild,-1),Ce)return Cn(it(Ce.line,Ce.ch+tt),f);tt+=Ye.textContent.length}}var Sr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ft,this.hasSelection=!1,this.composing=null};Sr.prototype.init=function(e){var i=this,u=this,l=this.cm;this.createField(e);var f=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),M&&(f.style.width="0px"),N(f,"input",function(){b&&S>=9&&i.hasSelection&&(i.hasSelection=null),u.poll()}),N(f,"paste",function(F){pe(l,F)||rf(F,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function m(F){if(!pe(l,F)){if(l.somethingSelected())lo({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var U=af(l);lo({lineWise:!0,text:U.text}),F.type=="cut"?l.setSelections(U.ranges,null,ut):(u.prevInput="",f.value=U.text.join(`
37
+ `),Pe(f))}else return;F.type=="cut"&&(l.state.cutIncoming=+new Date)}}N(f,"cut",m),N(f,"copy",m),N(e.scroller,"paste",function(F){if(!(ui(e,F)||pe(l,F))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var U=new Event("paste");U.clipboardData=F.clipboardData,f.dispatchEvent(U)}}),N(e.lineSpace,"selectstart",function(F){ui(e,F)||Qe(F)}),N(f,"compositionstart",function(){var F=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:F,range:l.markText(F,l.getCursor("to"),{className:"CodeMirror-composing"})}}),N(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Sr.prototype.createField=function(e){this.wrapper=Rc(),this.textarea=this.wrapper.firstChild},Sr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Sr.prototype.prepareSelection=function(){var e=this.cm,i=e.display,u=e.doc,l=Fo(e);if(e.options.moveInputWithCursor){var f=Hn(e,u.sel.primary().head,"div"),m=i.wrapper.getBoundingClientRect(),F=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,f.top+F.top-m.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,f.left+F.left-m.left))}return l},Sr.prototype.showSelection=function(e){var i=this.cm,u=i.display;ye(u.cursorDiv,e.cursors),ye(u.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Sr.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var i=this.cm;if(i.somethingSelected()){this.prevInput="";var u=i.getSelection();this.textarea.value=u,i.state.focused&&Pe(this.textarea),b&&S>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&S>=9&&(this.hasSelection=null))}},Sr.prototype.getField=function(){return this.textarea},Sr.prototype.supportsTouch=function(){return!1},Sr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!R||Fe()!=this.textarea))try{this.textarea.focus()}catch(e){}},Sr.prototype.blur=function(){this.textarea.blur()},Sr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Sr.prototype.receivedFocus=function(){this.slowPoll()},Sr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Sr.prototype.fastPoll=function(){var e=!1,i=this;i.pollingFast=!0;function u(){var l=i.poll();!l&&!e?(e=!0,i.polling.set(60,u)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,u)},Sr.prototype.poll=function(){var e=this,i=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!i.state.focused||pn(u)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var f=u.value;if(f==l&&!i.somethingSelected())return!1;if(b&&S>=9&&this.hasSelection===f||C&&/[\uf700-\uf7ff]/.test(f))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var m=f.charCodeAt(0);if(m==8203&&!l&&(l="\u200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var F=0,U=Math.min(l.length,f.length);F<U&&l.charCodeAt(F)==f.charCodeAt(F);)++F;return jr(i,function(){xl(i,f.slice(F),l.length-F,null,e.composing?"*compose":null),f.length>1e3||f.indexOf(`
38
+ `)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=i.markText(e.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Sr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Sr.prototype.onKeyPress=function(){b&&S>=9&&(this.hasSelection=null),this.fastPoll()},Sr.prototype.onContextMenu=function(e){var i=this,u=i.cm,l=u.display,f=i.textarea;i.contextMenuPending&&i.contextMenuPending();var m=Ji(u,e),F=l.scroller.scrollTop;if(!m||B)return;var U=u.options.resetSelectionOnContextMenu;U&&u.doc.sel.contains(m)==-1&&Vr(u,Zr)(u.doc,ki(m),ut);var H=f.style.cssText,Z=i.wrapper.style.cssText,me=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
39
+ top: `+(e.clientY-me.top-5)+"px; left: "+(e.clientX-me.left-5)+`px;
40
+ z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`;
41
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ce;g&&(Ce=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ce),l.input.reset(),u.somethingSelected()||(f.value=i.prevInput=" "),i.contextMenuPending=ke,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function De(){if(f.selectionStart!=null){var tt=u.somethingSelected(),ot="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=ot,i.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=ot.length,l.selForContextMenu=u.doc.sel}}function ke(){if(i.contextMenuPending==ke&&(i.contextMenuPending=!1,i.wrapper.style.cssText=Z,f.style.cssText=H,b&&S<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=F),f.selectionStart!=null)){(!b||b&&S<9)&&De();var tt=0,ot=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&i.prevInput=="\u200B"?Vr(u,Yo)(u):tt++<10?l.detectingSelectAll=setTimeout(ot,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ot,200)}}if(b&&S>=9&&De(),Y){Bt(e);var Ye=function(){de(window,"mouseup",Ye),setTimeout(ke,20)};N(window,"mouseup",Ye)}else setTimeout(ke,50)},Sr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Sr.prototype.setUneditable=function(){},Sr.prototype.needsContentAttribute=!1;function Nc(e,i){if(i=i?Ze(i):{},i.value=e.value,!i.tabindex&&e.tabIndex&&(i.tabindex=e.tabIndex),!i.placeholder&&e.placeholder&&(i.placeholder=e.placeholder),i.autofocus==null){var u=Fe();i.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(N(e.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=e.form;f=m.submit;try{var F=m.submit=function(){l(),m.submit=f,m.submit(),m.submit=F}}catch(H){}}i.finishInit=function(H){H.save=l,H.getTextArea=function(){return e},H.toTextArea=function(){H.toTextArea=isNaN,l(),e.parentNode.removeChild(H.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=pr(function(H){return e.parentNode.insertBefore(H,e.nextSibling)},i);return U}function lf(e){e.off=de,e.on=N,e.wheelEventPixels=rr,e.Doc=ln,e.splitLines=Nn,e.countColumn=Xe,e.findColumn=pt,e.isWordChar=ve,e.Pass=nt,e.signal=ae,e.Line=Hi,e.changeEnd=Mi,e.scrollbarModel=gn,e.Pos=it,e.cmpPos=Lt,e.modes=Si,e.mimeModes=en,e.resolveMode=Un,e.getMode=vn,e.modeExtensions=Xn,e.extendMode=Ai,e.copyState=Ur,e.startState=Qn,e.innerMode=Kr,e.commands=io,e.keyMap=ri,e.keyName=zu,e.isModifierKey=Hu,e.lookupKey=hi,e.normalizeKeyMap=kd,e.StringStream=fr,e.SharedTextMarker=ba,e.TextMarker=ti,e.LineWidget=eo,e.e_preventDefault=Qe,e.e_stopPropagation=vt,e.e_stop=Bt,e.addClass=Le,e.contains=oe,e.rmClass=ee,e.keyNames=mn}tf(pr),Lc(pr);var Bc="iter insert remove copy getEditor constructor".split(" ");for(var as in ln.prototype)ln.prototype.hasOwnProperty(as)&&ht(Bc,as)<0&&(pr.prototype[as]=function(e){return function(){return e.apply(this.doc,arguments)}}(ln.prototype[as]));return Ue(ln),pr.inputStyles={textarea:Sr,contenteditable:Wt},pr.defineMode=function(e){!pr.defaults.mode&&e!="null"&&(pr.defaults.mode=e),hn.apply(this,arguments)},pr.defineMIME=Bn,pr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),pr.defineMIME("text/plain","null"),pr.defineExtension=function(e,i){pr.prototype[e]=i},pr.defineDocExtension=function(e,i){ln.prototype[e]=i},pr.fromTextArea=Nc,lf(pr),pr.version="5.65.0",pr})},96876:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var d=v.indentUnit,b=x.statementIndent,S=x.jsonld,g=x.json||S,L=x.trackScope!==!1,D=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function le(Or){return{type:Or,style:"keyword"}}var Oe=le("keyword a"),qe=le("keyword b"),st=le("keyword c"),lt=le("keyword d"),Kt=le("operator"),Xt={type:"atom",style:"atom"};return{if:le("if"),while:Oe,with:Oe,else:qe,do:qe,try:qe,finally:qe,return:lt,break:lt,continue:lt,new:le("new"),delete:st,void:st,throw:st,debugger:le("debugger"),var:le("var"),const:le("var"),let:le("var"),function:le("function"),catch:le("catch"),for:le("for"),switch:le("switch"),case:le("case"),default:le("default"),in:Kt,typeof:Kt,instanceof:Kt,true:Xt,false:Xt,null:Xt,undefined:Xt,NaN:Xt,Infinity:Xt,this:le("this"),class:le("class"),super:le("atom"),yield:st,export:le("export"),import:le("import"),extends:st,await:st}}(),q=/[+\-*&%=<>!?|~^@]/,W=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(le){for(var Oe=!1,qe,st=!1;(qe=le.next())!=null;){if(!Oe){if(qe=="/"&&!st)return;qe=="["?st=!0:st&&qe=="]"&&(st=!1)}Oe=!Oe&&qe=="\\"}}var X,R;function C(le,Oe,qe){return X=le,R=qe,Oe}function V(le,Oe){var qe=le.next();if(qe=='"'||qe=="'")return Oe.tokenize=J(qe),Oe.tokenize(le,Oe);if(qe=="."&&le.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(qe=="."&&le.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(qe))return C(qe);if(qe=="="&&le.eat(">"))return C("=>","operator");if(qe=="0"&&le.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(qe))return le.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(qe=="/")return le.eat("*")?(Oe.tokenize=_,_(le,Oe)):le.eat("/")?(le.skipToEnd(),C("comment","comment")):oi(le,Oe,1)?(M(le),le.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(le.eat("="),C("operator","operator",le.current()));if(qe=="`")return Oe.tokenize=Q,Q(le,Oe);if(qe=="#"&&le.peek()=="!")return le.skipToEnd(),C("meta","meta");if(qe=="#"&&le.eatWhile(B))return C("variable","property");if(qe=="<"&&le.match("!--")||qe=="-"&&le.match("->")&&!/\S/.test(le.string.slice(0,le.start)))return le.skipToEnd(),C("comment","comment");if(q.test(qe))return(qe!=">"||!Oe.lexical||Oe.lexical.type!=">")&&(le.eat("=")?(qe=="!"||qe=="=")&&le.eat("="):/[<>*+\-|&?]/.test(qe)&&(le.eat(qe),qe==">"&&le.eat(qe))),qe=="?"&&le.eat(".")?C("."):C("operator","operator",le.current());if(B.test(qe)){le.eatWhile(B);var st=le.current();if(Oe.lastType!="."){if(j.propertyIsEnumerable(st)){var lt=j[st];return C(lt.type,lt.style,st)}if(st=="async"&&le.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",st)}return C("variable","variable",st)}}function J(le){return function(Oe,qe){var st=!1,lt;if(S&&Oe.peek()=="@"&&Oe.match(W))return qe.tokenize=V,C("jsonld-keyword","meta");for(;(lt=Oe.next())!=null&&!(lt==le&&!st);)st=!st&&lt=="\\";return st||(qe.tokenize=V),C("string","string")}}function _(le,Oe){for(var qe=!1,st;st=le.next();){if(st=="/"&&qe){Oe.tokenize=V;break}qe=st=="*"}return C("comment","comment")}function Q(le,Oe){for(var qe=!1,st;(st=le.next())!=null;){if(!qe&&(st=="`"||st=="$"&&le.eat("{"))){Oe.tokenize=V;break}qe=!qe&&st=="\\"}return C("quasi","string-2",le.current())}var Y="([{}])";function fe(le,Oe){Oe.fatArrowAt&&(Oe.fatArrowAt=null);var qe=le.string.indexOf("=>",le.start);if(!(qe<0)){if(D){var st=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(le.string.slice(le.start,qe));st&&(qe=st.index)}for(var lt=0,Kt=!1,Xt=qe-1;Xt>=0;--Xt){var Or=le.string.charAt(Xt),Tr=Y.indexOf(Or);if(Tr>=0&&Tr<3){if(!lt){++Xt;break}if(--lt==0){Or=="("&&(Kt=!0);break}}else if(Tr>=3&&Tr<6)++lt;else if(B.test(Or))Kt=!0;else if(/["'\/`]/.test(Or))for(;;--Xt){if(Xt==0)return;var _t=le.string.charAt(Xt-1);if(_t==Or&&le.string.charAt(Xt-2)!="\\"){Xt--;break}}else if(Kt&&!lt){++Xt;break}}Kt&&!lt&&(Oe.fatArrowAt=Xt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(le,Oe,qe,st,lt,Kt){this.indented=le,this.column=Oe,this.type=qe,this.prev=lt,this.info=Kt,st!=null&&(this.align=st)}function ye(le,Oe){if(!L)return!1;for(var qe=le.localVars;qe;qe=qe.next)if(qe.name==Oe)return!0;for(var st=le.context;st;st=st.prev)for(var qe=st.vars;qe;qe=qe.next)if(qe.name==Oe)return!0}function be(le,Oe,qe,st,lt){var Kt=le.cc;for(he.state=le,he.stream=lt,he.marked=null,he.cc=Kt,he.style=Oe,le.lexical.hasOwnProperty("align")||(le.lexical.align=!0);;){var Xt=Kt.length?Kt.pop():g?Mt:mt;if(Xt(qe,st)){for(;Kt.length&&Kt[Kt.length-1].lex;)Kt.pop()();return he.marked?he.marked:qe=="variable"&&ye(le,st)?"variable-2":Oe}}}var he={state:null,column:null,marked:null,cc:null};function ue(){for(var le=arguments.length-1;le>=0;le--)he.cc.push(arguments[le])}function oe(){return ue.apply(null,arguments),!0}function Fe(le,Oe){for(var qe=Oe;qe;qe=qe.next)if(qe.name==le)return!0;return!1}function Le(le){var Oe=he.state;if(he.marked="def",!!L){if(Oe.context){if(Oe.lexical.info=="var"&&Oe.context&&Oe.context.block){var qe=Me(le,Oe.context);if(qe!=null){Oe.context=qe;return}}else if(!Fe(le,Oe.localVars)){Oe.localVars=new Ze(le,Oe.localVars);return}}x.globalVars&&!Fe(le,Oe.globalVars)&&(Oe.globalVars=new Ze(le,Oe.globalVars))}}function Me(le,Oe){if(Oe)if(Oe.block){var qe=Me(le,Oe.prev);return qe?qe==Oe.prev?Oe:new rt(qe,Oe.vars,!0):null}else return Fe(le,Oe.vars)?Oe:new rt(Oe.prev,new Ze(le,Oe.vars),!1);else return null}function Pe(le){return le=="public"||le=="private"||le=="protected"||le=="abstract"||le=="readonly"}function rt(le,Oe,qe){this.prev=le,this.vars=Oe,this.block=qe}function Ze(le,Oe){this.name=le,this.next=Oe}var Xe=new Ze("this",new Ze("arguments",null));function ft(){he.state.context=new rt(he.state.context,he.state.localVars,!1),he.state.localVars=Xe}function ht(){he.state.context=new rt(he.state.context,he.state.localVars,!0),he.state.localVars=null}function bt(){he.state.localVars=he.state.context.vars,he.state.context=he.state.context.prev}bt.lex=!0;function nt(le,Oe){var qe=function(){var st=he.state,lt=st.indented;if(st.lexical.type=="stat")lt=st.lexical.indented;else for(var Kt=st.lexical;Kt&&Kt.type==")"&&Kt.align;Kt=Kt.prev)lt=Kt.indented;st.lexical=new ie(lt,he.stream.column(),le,null,st.lexical,Oe)};return qe.lex=!0,qe}function ut(){var le=he.state;le.lexical.prev&&(le.lexical.type==")"&&(le.indented=le.lexical.indented),le.lexical=le.lexical.prev)}ut.lex=!0;function yt(le){function Oe(qe){return qe==le?oe():le==";"||qe=="}"||qe==")"||qe=="]"?ue():oe(Oe)}return Oe}function mt(le,Oe){return le=="var"?oe(nt("vardef",Oe),bi,yt(";"),ut):le=="keyword a"?oe(nt("form"),Et,mt,ut):le=="keyword b"?oe(nt("form"),mt,ut):le=="keyword d"?he.stream.match(/^\s*$/,!1)?oe():oe(nt("stat"),jt,yt(";"),ut):le=="debugger"?oe(yt(";")):le=="{"?oe(nt("}"),ht,N,ut,bt):le==";"?oe():le=="if"?(he.state.lexical.info=="else"&&he.state.cc[he.state.cc.length-1]==ut&&he.state.cc.pop()(),oe(nt("form"),Et,mt,ut,$r)):le=="function"?oe(hn):le=="for"?oe(nt("form"),ht,wi,mt,bt,ut):le=="class"||D&&Oe=="interface"?(he.marked="keyword",oe(nt("form",le=="class"?le:Oe),Ai,ut)):le=="variable"?D&&Oe=="declare"?(he.marked="keyword",oe(mt)):D&&(Oe=="module"||Oe=="enum"||Oe=="type")&&he.stream.match(/^\s*\w/,!1)?(he.marked="keyword",Oe=="enum"?oe(fa):Oe=="type"?oe(Un,yt("operator"),Ae,yt(";")):oe(nt("form"),Gr,yt("{"),nt("}"),N,ut,ut)):D&&Oe=="namespace"?(he.marked="keyword",oe(nt("form"),Mt,mt,ut)):D&&Oe=="abstract"?(he.marked="keyword",oe(mt)):oe(nt("stat"),Ke):le=="switch"?oe(nt("form"),Et,yt("{"),nt("}","switch"),ht,N,ut,ut,bt):le=="case"?oe(Mt,yt(":")):le=="default"?oe(yt(":")):le=="catch"?oe(nt("form"),ft,pt,mt,ut,bt):le=="export"?oe(nt("stat"),fr,ut):le=="import"?oe(nt("stat"),ai,ut):le=="async"?oe(mt):Oe=="@"?oe(Mt,mt):ue(nt("stat"),Mt,yt(";"),ut)}function pt(le){if(le=="(")return oe(vn,yt(")"))}function Mt(le,Oe){return Ht(le,Oe,!1)}function kt(le,Oe){return Ht(le,Oe,!0)}function Et(le){return le!="("?ue():oe(nt(")"),jt,yt(")"),ut)}function Ht(le,Oe,qe){if(he.state.fatArrowAt==he.stream.start){var st=qe?$:z;if(le=="(")return oe(ft,nt(")"),O(vn,")"),ut,yt("=>"),st,bt);if(le=="variable")return ue(ft,Gr,yt("=>"),st,bt)}var lt=qe?wt:Vt;return ee.hasOwnProperty(le)?oe(lt):le=="function"?oe(hn,lt):le=="class"||D&&Oe=="interface"?(he.marked="keyword",oe(nt("form"),Xn,ut)):le=="keyword c"||le=="async"?oe(qe?kt:Mt):le=="("?oe(nt(")"),jt,yt(")"),ut,lt):le=="operator"||le=="spread"?oe(qe?kt:Mt):le=="["?oe(nt("]"),Zn,ut,lt):le=="{"?se(Re,"}",null,lt):le=="quasi"?ue(Dt,lt):le=="new"?oe(Se(qe)):oe()}function jt(le){return le.match(/[;\}\)\],]/)?ue():ue(Mt)}function Vt(le,Oe){return le==","?oe(jt):wt(le,Oe,!1)}function wt(le,Oe,qe){var st=qe==!1?Vt:wt,lt=qe==!1?Mt:kt;if(le=="=>")return oe(ft,qe?$:z,bt);if(le=="operator")return/\+\+|--/.test(Oe)||D&&Oe=="!"?oe(st):D&&Oe=="<"&&he.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?oe(nt(">"),O(Ae,">"),ut,st):Oe=="?"?oe(Mt,yt(":"),lt):oe(lt);if(le=="quasi")return ue(Dt,st);if(le!=";"){if(le=="(")return se(kt,")","call",st);if(le==".")return oe(P,st);if(le=="[")return oe(nt("]"),jt,yt("]"),ut,st);if(D&&Oe=="as")return he.marked="keyword",oe(Ae,st);if(le=="regexp")return he.state.lastType=he.marked="operator",he.stream.backUp(he.stream.pos-he.stream.start-1),oe(lt)}}function Dt(le,Oe){return le!="quasi"?ue():Oe.slice(Oe.length-2)!="${"?oe(Dt):oe(jt,ve)}function ve(le){if(le=="}")return he.marked="string-2",he.state.tokenize=Q,oe(Dt)}function z(le){return fe(he.stream,he.state),ue(le=="{"?mt:Mt)}function $(le){return fe(he.stream,he.state),ue(le=="{"?mt:kt)}function Se(le){return function(Oe){return Oe=="."?oe(le?Ge:Ie):Oe=="variable"&&D?oe(dn,le?wt:Vt):ue(le?kt:Mt)}}function Ie(le,Oe){if(Oe=="target")return he.marked="keyword",oe(Vt)}function Ge(le,Oe){if(Oe=="target")return he.marked="keyword",oe(wt)}function Ke(le){return le==":"?oe(ut,mt):ue(Vt,yt(";"),ut)}function P(le){if(le=="variable")return he.marked="property",oe()}function Re(le,Oe){if(le=="async")return he.marked="property",oe(Re);if(le=="variable"||he.style=="keyword"){if(he.marked="property",Oe=="get"||Oe=="set")return oe(K);var qe;return D&&he.state.fatArrowAt==he.stream.start&&(qe=he.stream.match(/^\s*:\s*/,!1))&&(he.state.fatArrowAt=he.stream.pos+qe[0].length),oe(T)}else{if(le=="number"||le=="string")return he.marked=S?"property":he.style+" property",oe(T);if(le=="jsonld-keyword")return oe(T);if(D&&Pe(Oe))return he.marked="keyword",oe(Re);if(le=="[")return oe(Mt,te,yt("]"),T);if(le=="spread")return oe(kt,T);if(Oe=="*")return he.marked="keyword",oe(Re);if(le==":")return ue(T)}}function K(le){return le!="variable"?ue(T):(he.marked="property",oe(hn))}function T(le){if(le==":")return oe(kt);if(le=="(")return ue(hn)}function O(le,Oe,qe){function st(lt,Kt){if(qe?qe.indexOf(lt)>-1:lt==","){var Xt=he.state.lexical;return Xt.info=="call"&&(Xt.pos=(Xt.pos||0)+1),oe(function(Or,Tr){return Or==Oe||Tr==Oe?ue():ue(le)},st)}return lt==Oe||Kt==Oe?oe():qe&&qe.indexOf(";")>-1?ue(le):oe(yt(Oe))}return function(lt,Kt){return lt==Oe||Kt==Oe?oe():ue(le,st)}}function se(le,Oe,qe){for(var st=3;st<arguments.length;st++)he.cc.push(arguments[st]);return oe(nt(Oe,qe),O(le,Oe),ut)}function N(le){return le=="}"?oe():ue(mt,N)}function te(le,Oe){if(D){if(le==":")return oe(Ae);if(Oe=="?")return oe(te)}}function de(le,Oe){if(D&&(le==":"||Oe=="in"))return oe(Ae)}function ae(le){if(D&&le==":")return he.stream.match(/^\s*\w+\s+is\b/,!1)?oe(Mt,pe,Ae):oe(Ae)}function pe(le,Oe){if(Oe=="is")return he.marked="keyword",oe()}function Ae(le,Oe){if(Oe=="keyof"||Oe=="typeof"||Oe=="infer"||Oe=="readonly")return he.marked="keyword",oe(Oe=="typeof"?kt:Ae);if(le=="variable"||Oe=="void")return he.marked="type",oe(Pt);if(Oe=="|"||Oe=="&")return oe(Ae);if(le=="string"||le=="number"||le=="atom")return oe(Pt);if(le=="[")return oe(nt("]"),O(Ae,"]",","),ut,Pt);if(le=="{")return oe(nt("}"),Ue,ut,Pt);if(le=="(")return oe(O(Bt,")"),Be,Pt);if(le=="<")return oe(O(Ae,">"),Ae);if(le=="quasi")return ue(vt,Pt)}function Be(le){if(le=="=>")return oe(Ae)}function Ue(le){return le.match(/[\}\)\]]/)?oe():le==","||le==";"?oe(Ue):ue(Qe,Ue)}function Qe(le,Oe){if(le=="variable"||he.style=="keyword")return he.marked="property",oe(Qe);if(Oe=="?"||le=="number"||le=="string")return oe(Qe);if(le==":")return oe(Ae);if(le=="[")return oe(yt("variable"),de,yt("]"),Qe);if(le=="(")return ue(Bn,Qe);if(!le.match(/[;\}\)\],]/))return oe()}function vt(le,Oe){return le!="quasi"?ue():Oe.slice(Oe.length-2)!="${"?oe(vt):oe(Ae,At)}function At(le){if(le=="}")return he.marked="string-2",he.state.tokenize=Q,oe(vt)}function Bt(le,Oe){return le=="variable"&&he.stream.match(/^\s*[?:]/,!1)||Oe=="?"?oe(Bt):le==":"?oe(Ae):le=="spread"?oe(Bt):ue(Ae)}function Pt(le,Oe){if(Oe=="<")return oe(nt(">"),O(Ae,">"),ut,Pt);if(Oe=="|"||le=="."||Oe=="&")return oe(Ae);if(le=="[")return oe(Ae,yt("]"),Pt);if(Oe=="extends"||Oe=="implements")return he.marked="keyword",oe(Ae);if(Oe=="?")return oe(Ae,yt(":"),Ae)}function dn(le,Oe){if(Oe=="<")return oe(nt(">"),O(Ae,">"),ut,Pt)}function Br(){return ue(Ae,Cr)}function Cr(le,Oe){if(Oe=="=")return oe(Ae)}function bi(le,Oe){return Oe=="enum"?(he.marked="keyword",oe(fa)):ue(Gr,te,pn,On)}function Gr(le,Oe){if(D&&Pe(Oe))return he.marked="keyword",oe(Gr);if(le=="variable")return Le(Oe),oe();if(le=="spread")return oe(Gr);if(le=="[")return se(Nn,"]");if(le=="{")return se(ji,"}")}function ji(le,Oe){return le=="variable"&&!he.stream.match(/^\s*:/,!1)?(Le(Oe),oe(pn)):(le=="variable"&&(he.marked="property"),le=="spread"?oe(Gr):le=="}"?ue():le=="["?oe(Mt,yt("]"),yt(":"),ji):oe(yt(":"),Gr,pn))}function Nn(){return ue(Gr,pn)}function pn(le,Oe){if(Oe=="=")return oe(kt)}function On(le){if(le==",")return oe(bi)}function $r(le,Oe){if(le=="keyword b"&&Oe=="else")return oe(nt("form","else"),mt,ut)}function wi(le,Oe){if(Oe=="await")return oe(wi);if(le=="(")return oe(nt(")"),Si,ut)}function Si(le){return le=="var"?oe(bi,en):le=="variable"?oe(en):ue(en)}function en(le,Oe){return le==")"?oe():le==";"?oe(en):Oe=="in"||Oe=="of"?(he.marked="keyword",oe(Mt,en)):ue(Mt,en)}function hn(le,Oe){if(Oe=="*")return he.marked="keyword",oe(hn);if(le=="variable")return Le(Oe),oe(hn);if(le=="(")return oe(ft,nt(")"),O(vn,")"),ut,ae,mt,bt);if(D&&Oe=="<")return oe(nt(">"),O(Br,">"),ut,hn)}function Bn(le,Oe){if(Oe=="*")return he.marked="keyword",oe(Bn);if(le=="variable")return Le(Oe),oe(Bn);if(le=="(")return oe(ft,nt(")"),O(vn,")"),ut,ae,bt);if(D&&Oe=="<")return oe(nt(">"),O(Br,">"),ut,Bn)}function Un(le,Oe){if(le=="keyword"||le=="variable")return he.marked="type",oe(Un);if(Oe=="<")return oe(nt(">"),O(Br,">"),ut)}function vn(le,Oe){return Oe=="@"&&oe(Mt,vn),le=="spread"?oe(vn):D&&Pe(Oe)?(he.marked="keyword",oe(vn)):D&&le=="this"?oe(te,pn):ue(Gr,te,pn)}function Xn(le,Oe){return le=="variable"?Ai(le,Oe):Ur(le,Oe)}function Ai(le,Oe){if(le=="variable")return Le(Oe),oe(Ur)}function Ur(le,Oe){if(Oe=="<")return oe(nt(">"),O(Br,">"),ut,Ur);if(Oe=="extends"||Oe=="implements"||D&&le==",")return Oe=="implements"&&(he.marked="keyword"),oe(D?Ae:Mt,Ur);if(le=="{")return oe(nt("}"),Kr,ut)}function Kr(le,Oe){if(le=="async"||le=="variable"&&(Oe=="static"||Oe=="get"||Oe=="set"||D&&Pe(Oe))&&he.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return he.marked="keyword",oe(Kr);if(le=="variable"||he.style=="keyword")return he.marked="property",oe(Qn,Kr);if(le=="number"||le=="string")return oe(Qn,Kr);if(le=="[")return oe(Mt,te,yt("]"),Qn,Kr);if(Oe=="*")return he.marked="keyword",oe(Kr);if(D&&le=="(")return ue(Bn,Kr);if(le==";"||le==",")return oe(Kr);if(le=="}")return oe();if(Oe=="@")return oe(Mt,Kr)}function Qn(le,Oe){if(Oe=="!"||Oe=="?")return oe(Qn);if(le==":")return oe(Ae,pn);if(Oe=="=")return oe(kt);var qe=he.state.lexical.prev,st=qe&&qe.info=="interface";return ue(st?Bn:hn)}function fr(le,Oe){return Oe=="*"?(he.marked="keyword",oe(jn,yt(";"))):Oe=="default"?(he.marked="keyword",oe(Mt,yt(";"))):le=="{"?oe(O(Ot,"}"),jn,yt(";")):ue(mt)}function Ot(le,Oe){if(Oe=="as")return he.marked="keyword",oe(yt("variable"));if(le=="variable")return ue(kt,Ot)}function ai(le){return le=="string"?oe():le=="("?ue(Mt):le=="."?ue(Vt):ue(Ei,Sn,jn)}function Ei(le,Oe){return le=="{"?se(Ei,"}"):(le=="variable"&&Le(Oe),Oe=="*"&&(he.marked="keyword"),oe(Zt))}function Sn(le){if(le==",")return oe(Ei,Sn)}function Zt(le,Oe){if(Oe=="as")return he.marked="keyword",oe(Ei)}function jn(le,Oe){if(Oe=="from")return he.marked="keyword",oe(Mt)}function Zn(le){return le=="]"?oe():ue(O(kt,"]"))}function fa(){return ue(nt("form"),Gr,yt("{"),nt("}"),O(it,"}"),ut,ut)}function it(){return ue(Gr,pn)}function Lt(le,Oe){return le.lastType=="operator"||le.lastType==","||q.test(Oe.charAt(0))||/[,.]/.test(Oe.charAt(0))}function oi(le,Oe,qe){return Oe.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Oe.lastType)||Oe.lastType=="quasi"&&/\{\s*$/.test(le.string.slice(0,le.pos-(qe||0)))}return{startState:function(le){var Oe={tokenize:V,lastType:"sof",cc:[],lexical:new ie((le||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:le||0};return x.globalVars&&typeof x.globalVars=="object"&&(Oe.globalVars=x.globalVars),Oe},token:function(le,Oe){if(le.sol()&&(Oe.lexical.hasOwnProperty("align")||(Oe.lexical.align=!1),Oe.indented=le.indentation(),fe(le,Oe)),Oe.tokenize!=_&&le.eatSpace())return null;var qe=Oe.tokenize(le,Oe);return X=="comment"?qe:(Oe.lastType=X=="operator"&&(R=="++"||R=="--")?"incdec":X,be(Oe,qe,X,R,le))},indent:function(le,Oe){if(le.tokenize==_||le.tokenize==Q)return c.Pass;if(le.tokenize!=V)return 0;var qe=Oe&&Oe.charAt(0),st=le.lexical,lt;if(!/^\s*else\b/.test(Oe))for(var Kt=le.cc.length-1;Kt>=0;--Kt){var Xt=le.cc[Kt];if(Xt==ut)st=st.prev;else if(Xt!=$r&&Xt!=bt)break}for(;(st.type=="stat"||st.type=="form")&&(qe=="}"||(lt=le.cc[le.cc.length-1])&&(lt==Vt||lt==wt)&&!/^[,\.=+\-*:?[\(]/.test(Oe));)st=st.prev;b&&st.type==")"&&st.prev.type=="stat"&&(st=st.prev);var Or=st.type,Tr=qe==Or;return Or=="vardef"?st.indented+(le.lastType=="operator"||le.lastType==","?st.info.length+1:0):Or=="form"&&qe=="{"?st.indented:Or=="form"?st.indented+d:Or=="stat"?st.indented+(Lt(le,Oe)?b||d:0):st.info=="switch"&&!Tr&&x.doubleIndentSwitch!=!1?st.indented+(/^(?:case|default)\b/.test(Oe)?d:2*d):st.align?st.column+(Tr?0:1):st.indented+(Tr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:S,jsonMode:g,expressionAllowed:oi,skipExpression:function(le){be(le,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(h,I)=>{"use strict";/*!
42
+ * cookie
43
+ * Copyright(c) 2012-2014 Roman Shtylman
44
+ * Copyright(c) 2015 Douglas Christopher Wilson
45
+ * MIT Licensed
46
+ */I.parse=d,I.serialize=b;var a=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(g,L){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var D={},B=L||{},j=g.split(v),q=B.decode||a,W=0;W<j.length;W++){var M=j[W],X=M.indexOf("=");if(!(X<0)){var R=M.substr(0,X).trim(),C=M.substr(++X,M.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),D[R]==null&&(D[R]=S(C,q))}}return D}function b(g,L,D){var B=D||{},j=B.encode||c;if(typeof j!="function")throw new TypeError("option encode is invalid");if(!x.test(g))throw new TypeError("argument name is invalid");var q=j(L);if(q&&!x.test(q))throw new TypeError("argument val is invalid");var W=g+"="+q;if(B.maxAge!=null){var M=B.maxAge-0;if(isNaN(M)||!isFinite(M))throw new TypeError("option maxAge is invalid");W+="; Max-Age="+Math.floor(M)}if(B.domain){if(!x.test(B.domain))throw new TypeError("option domain is invalid");W+="; Domain="+B.domain}if(B.path){if(!x.test(B.path))throw new TypeError("option path is invalid");W+="; Path="+B.path}if(B.expires){if(typeof B.expires.toUTCString!="function")throw new TypeError("option expires is invalid");W+="; Expires="+B.expires.toUTCString()}if(B.httpOnly&&(W+="; HttpOnly"),B.secure&&(W+="; Secure"),B.sameSite){var X=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(X){case!0:W+="; SameSite=Strict";break;case"lax":W+="; SameSite=Lax";break;case"strict":W+="; SameSite=Strict";break;case"none":W+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return W}function S(g,L){try{return L(g)}catch(D){return g}}},54493:(h,I,a)=>{a(77971),a(53242);var c=a(54058);h.exports=c.Array.from},24034:(h,I,a)=>{a(92737);var c=a(54058);h.exports=c.Array.isArray},15367:(h,I,a)=>{a(85906);var c=a(35703);h.exports=c("Array").concat},12710:(h,I,a)=>{a(66274);var c=a(35703);h.exports=c("Array").entries},62383:(h,I,a)=>{a(21501);var c=a(35703);h.exports=c("Array").filter},17671:(h,I,a)=>{a(80833);var c=a(35703);h.exports=c("Array").find},99324:(h,I,a)=>{a(2437);var c=a(35703);h.exports=c("Array").forEach},80991:(h,I,a)=>{a(97690);var c=a(35703);h.exports=c("Array").includes},8700:(h,I,a)=>{a(99076);var c=a(35703);h.exports=c("Array").indexOf},23866:(h,I,a)=>{a(68787);var c=a(35703);h.exports=c("Array").map},24900:(h,I,a)=>{a(60186);var c=a(35703);h.exports=c("Array").slice},78209:(h,I,a)=>{a(98611);var c=a(35703);h.exports=c("Array").splice},56043:(h,I,a)=>{var c=a(15367),v=Array.prototype;h.exports=function(x){var d=x.concat;return x===v||x instanceof Array&&d===v.concat?c:d}},2480:(h,I,a)=>{var c=a(62383),v=Array.prototype;h.exports=function(x){var d=x.filter;return x===v||x instanceof Array&&d===v.filter?c:d}},32236:(h,I,a)=>{var c=a(17671),v=Array.prototype;h.exports=function(x){var d=x.find;return x===v||x instanceof Array&&d===v.find?c:d}},58557:(h,I,a)=>{var c=a(80991),v=a(21631),x=Array.prototype,d=String.prototype;h.exports=function(b){var S=b.includes;return b===x||b instanceof Array&&S===x.includes?c:typeof b=="string"||b===d||b instanceof String&&S===d.includes?v:S}},34570:(h,I,a)=>{var c=a(8700),v=Array.prototype;h.exports=function(x){var d=x.indexOf;return x===v||x instanceof Array&&d===v.indexOf?c:d}},88287:(h,I,a)=>{var c=a(23866),v=Array.prototype;h.exports=function(x){var d=x.map;return x===v||x instanceof Array&&d===v.map?c:d}},69601:(h,I,a)=>{var c=a(24900),v=Array.prototype;h.exports=function(x){var d=x.slice;return x===v||x instanceof Array&&d===v.slice?c:d}},18339:(h,I,a)=>{var c=a(78209),v=Array.prototype;h.exports=function(x){var d=x.splice;return x===v||x instanceof Array&&d===v.splice?c:d}},84426:(h,I,a)=>{a(32619);var c=a(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,a)=>{a(49221);var c=a(54058);h.exports=c.Object.assign},35254:(h,I,a)=>{a(53882);var c=a(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,a)=>{a(74979);var c=a(54058),v=c.Object,x=h.exports=function(b,S){return v.defineProperties(b,S)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,a)=>{a(86450);var c=a(54058),v=c.Object,x=h.exports=function(b,S,g){return v.defineProperty(b,S,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(h,I,a)=>{a(21078);var c=a(54058);h.exports=c.Object.entries},286:(h,I,a)=>{a(46924);var c=a(54058),v=c.Object,x=h.exports=function(b,S){return v.getOwnPropertyDescriptor(b,S)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,a)=>{a(88482);var c=a(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,a)=>{a(35824);var c=a(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,a)=>{a(17405);var c=a(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,a)=>{a(21724);var c=a(54058);h.exports=c.Object.keys},3065:(h,I,a)=>{a(90108);var c=a(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,a)=>{a(47627),a(55967),a(98881),a(4560),a(91302),a(4808),a(77971),a(7634);var c=a(54058);h.exports=c.Promise},14983:(h,I,a)=>{a(7453);var c=a(54058);h.exports=c.Reflect.construct},37095:(h,I,a)=>{a(42355);var c=a(54058);h.exports=c.Reflect.get},21631:(h,I,a)=>{a(11035);var c=a(35703);h.exports=c("String").includes},57473:(h,I,a)=>{a(85906),a(55967),a(35824),a(8555),a(52615),a(21732),a(35903),a(1825),a(28394),a(45915),a(61766),a(62737),a(89911),a(74315),a(63131),a(64714),a(70659),a(69120),a(79413),a(1502);var c=a(54058);h.exports=c.Symbol},24227:(h,I,a)=>{a(1825),a(77971),a(7634);var c=a(11477);h.exports=c.f("iterator")},32304:(h,I,a)=>{a(55967),a(54334),a(7634);var c=a(54058);h.exports=c.WeakMap},27385:(h,I,a)=>{var c=a(54493);h.exports=c},81522:(h,I,a)=>{var c=a(24034);h.exports=c},32209:(h,I,a)=>{a(7634),a(77971);var c=a(22902);h.exports=c},44442:(h,I,a)=>{var c=a(2480);h.exports=c},57152:(h,I,a)=>{var c=a(46279);h.exports=c},69447:(h,I,a)=>{var c=a(34570);h.exports=c},81493:(h,I,a)=>{var c=a(69601);h.exports=c},76094:(h,I,a)=>{var c=a(35254);h.exports=c},70573:(h,I,a)=>{var c=a(7702);h.exports=c},73685:(h,I,a)=>{var c=a(48171);h.exports=c},27533:(h,I,a)=>{var c=a(286);h.exports=c},39057:(h,I,a)=>{var c=a(92766);h.exports=c},84710:(h,I,a)=>{var c=a(30498);h.exports=c},74303:(h,I,a)=>{var c=a(13966);h.exports=c},93799:(h,I,a)=>{var c=a(48494);h.exports=c},55122:(h,I,a)=>{var c=a(3065);h.exports=c},29531:(h,I,a)=>{var c=a(52956);a(89731),a(55708),a(30014),a(88731),h.exports=c},10856:(h,I,a)=>{var c=a(14983);h.exports=c},31524:(h,I,a)=>{var c=a(37095);h.exports=c},86600:(h,I,a)=>{var c=a(57473);a(28783),a(43975),a(65799),a(45414),a(46774),a(80620),a(36172),h.exports=c},9759:(h,I,a)=>{var c=a(24227);h.exports=c},33916:h=>{h.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(h,I,a)=>{var c=a(10941);h.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:h=>{h.exports=function(){}},5743:h=>{h.exports=function(I,a,c){if(!(I instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,a)=>{var c=a(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,a)=>{"use strict";var c=a(3610).forEach,v=a(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,a)=>{"use strict";var c=a(86843),v=a(89678),x=a(75196),d=a(6782),b=a(43057),S=a(55449),g=a(22902);h.exports=function(D){var B=v(D),j=typeof this=="function"?this:Array,q=arguments.length,W=q>1?arguments[1]:void 0,M=W!==void 0,X=g(B),R=0,C,V,J,_,Q,Y;if(M&&(W=c(W,q>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&d(X)))for(_=X.call(B),Q=_.next,V=new j;!(J=Q.call(_)).done;R++)Y=M?x(_,W,[J.value,R],!0):J.value,S(V,R,Y);else for(C=b(B.length),V=new j(C);C>R;R++)Y=M?W(B[R],R):B[R],S(V,R,Y);return V.length=R,V}},31692:(h,I,a)=>{var c=a(74529),v=a(43057),x=a(59413),d=function(b){return function(S,g,L){var D=c(S),B=v(D.length),j=x(L,B),q;if(b&&g!=g){for(;B>j;)if(q=D[j++],q!=q)return!0}else for(;B>j;j++)if((b||j in D)&&D[j]===g)return b||j||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,a)=>{var c=a(86843),v=a(37026),x=a(89678),d=a(43057),b=a(64692),S=[].push,g=function(L){var D=L==1,B=L==2,j=L==3,q=L==4,W=L==6,M=L==7,X=L==5||W;return function(R,C,V,J){for(var _=x(R),Q=v(_),Y=c(C,V,3),fe=d(Q.length),ee=0,ie=J||b,ye=D?ie(R,fe):B||M?ie(R,0):void 0,be,he;fe>ee;ee++)if((X||ee in Q)&&(be=Q[ee],he=Y(be,ee,_),L))if(D)ye[ee]=he;else if(he)switch(L){case 3:return!0;case 5:return be;case 6:return ee;case 2:S.call(ye,be)}else switch(L){case 4:return!1;case 7:S.call(ye,be)}return W?-1:j||q?q:ye}};h.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},50568:(h,I,a)=>{var c=a(95981),v=a(99813),x=a(53385),d=v("species");h.exports=function(b){return x>=51||!c(function(){var S=[],g=S.constructor={};return g[d]=function(){return{foo:1}},S[b](Boolean).foo!==1})}},34194:(h,I,a)=>{"use strict";var c=a(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,a)=>{var c=a(10941),v=a(1052),x=a(99813),d=x("species");h.exports=function(b,S){var g;return v(b)&&(g=b.constructor,typeof g=="function"&&(g===Array||v(g.prototype))?g=void 0:c(g)&&(g=g[d],g===null&&(g=void 0))),new(g===void 0?Array:g)(S===0?0:S)}},75196:(h,I,a)=>{var c=a(96059),v=a(7609);h.exports=function(x,d,b,S){try{return S?d(c(b)[0],b[1]):d(b)}catch(g){throw v(x),g}}},21385:(h,I,a)=>{var c=a(99813),v=c("iterator"),x=!1;try{var d=0,b={next:function(){return{done:!!d++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(S){}h.exports=function(S,g){if(!g&&!x)return!1;var L=!1;try{var D={};D[v]=function(){return{next:function(){return{done:L=!0}}}},S(D)}catch(B){}return L}},82532:h=>{var I={}.toString;h.exports=function(a){return I.call(a).slice(8,-1)}},9697:(h,I,a)=>{var c=a(22885),v=a(82532),x=a(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",S=function(g,L){try{return g[L]}catch(D){}};h.exports=c?v:function(g){var L,D,B;return g===void 0?"Undefined":g===null?"Null":typeof(D=S(L=Object(g),d))=="string"?D:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(h,I,a)=>{"use strict";var c=a(87524),v=a(21647).getWeakData,x=a(96059),d=a(10941),b=a(5743),S=a(93091),g=a(3610),L=a(47457),D=a(45402),B=D.set,j=D.getterFor,q=g.find,W=g.findIndex,M=0,X=function(V){return V.frozen||(V.frozen=new R)},R=function(){this.entries=[]},C=function(V,J){return q(V.entries,function(_){return _[0]===J})};R.prototype={get:function(V){var J=C(this,V);if(J)return J[1]},has:function(V){return!!C(this,V)},set:function(V,J){var _=C(this,V);_?_[1]=J:this.entries.push([V,J])},delete:function(V){var J=W(this.entries,function(_){return _[0]===V});return~J&&this.entries.splice(J,1),!!~J}},h.exports={getConstructor:function(V,J,_,Q){var Y=V(function(ie,ye){b(ie,Y,J),B(ie,{type:J,id:M++,frozen:void 0}),ye!=null&&S(ye,ie[Q],{that:ie,AS_ENTRIES:_})}),fe=j(J),ee=function(ie,ye,be){var he=fe(ie),ue=v(x(ye),!0);return ue===!0?X(he).set(ye,be):ue[he.id]=be,ie};return c(Y.prototype,{delete:function(ie){var ye=fe(this);if(!d(ie))return!1;var be=v(ie);return be===!0?X(ye).delete(ie):be&&L(be,ye.id)&&delete be[ye.id]},has:function(ye){var be=fe(this);if(!d(ye))return!1;var he=v(ye);return he===!0?X(be).has(ye):he&&L(he,be.id)}}),c(Y.prototype,_?{get:function(ye){var be=fe(this);if(d(ye)){var he=v(ye);return he===!0?X(be).get(ye):he?he[be.id]:void 0}},set:function(ye,be){return ee(this,ye,be)}}:{add:function(ye){return ee(this,ye,!0)}}),Y}}},24683:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(21647),d=a(95981),b=a(32029),S=a(93091),g=a(5743),L=a(10941),D=a(90904),B=a(65988).f,j=a(3610).forEach,q=a(55746),W=a(45402),M=W.set,X=W.getterFor;h.exports=function(R,C,V){var J=R.indexOf("Map")!==-1,_=R.indexOf("Weak")!==-1,Q=J?"set":"add",Y=v[R],fe=Y&&Y.prototype,ee={},ie;if(!q||typeof Y!="function"||!(_||fe.forEach&&!d(function(){new Y().entries().next()})))ie=V.getConstructor(C,R,J,Q),x.REQUIRED=!0;else{ie=C(function(be,he){M(g(be,ie,R),{type:R,collection:new Y}),he!=null&&S(he,be[Q],{that:be,AS_ENTRIES:J})});var ye=X(R);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(be){var he=be=="add"||be=="set";be in fe&&!(_&&be=="clear")&&b(ie.prototype,be,function(ue,oe){var Fe=ye(this).collection;if(!he&&_&&!L(ue))return be=="get"?void 0:!1;var Le=Fe[be](ue===0?0:ue,oe);return he?this:Le})}),_||B(ie.prototype,"size",{configurable:!0,get:function(){return ye(this).collection.size}})}return D(ie,R,!1,!0),ee[R]=ie,c({global:!0,forced:!0},ee),_||V.setStrong(ie,R,J),ie}},67772:(h,I,a)=>{var c=a(99813),v=c("match");h.exports=function(x){var d=/./;try{"/./"[x](d)}catch(b){try{return d[v]=!1,"/./"[x](d)}catch(S){}}return!1}},64160:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,a)=>{"use strict";var c=a(35143).IteratorPrototype,v=a(29290),x=a(31887),d=a(90904),b=a(12077),S=function(){return this};h.exports=function(g,L,D){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,D)}),d(g,B,!1,!0),b[B]=S,g}},32029:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(31887);h.exports=c?function(d,b,S){return v.f(d,b,x(1,S))}:function(d,b,S){return d[b]=S,d}},31887:h=>{h.exports=function(I,a){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:a}}},55449:(h,I,a)=>{"use strict";var c=a(46935),v=a(65988),x=a(31887);h.exports=function(d,b,S){var g=c(b);g in d?v.f(d,g,x(0,S)):d[g]=S}},47771:(h,I,a)=>{"use strict";var c=a(76887),v=a(31046),x=a(249),d=a(88929),b=a(90904),S=a(32029),g=a(99754),L=a(99813),D=a(82529),B=a(12077),j=a(35143),q=j.IteratorPrototype,W=j.BUGGY_SAFARI_ITERATORS,M=L("iterator"),X="keys",R="values",C="entries",V=function(){return this};h.exports=function(J,_,Q,Y,fe,ee,ie){v(Q,_,Y);var ye=function(Ze){if(Ze===fe&&Fe)return Fe;if(!W&&Ze in ue)return ue[Ze];switch(Ze){case X:return function(){return new Q(this,Ze)};case R:return function(){return new Q(this,Ze)};case C:return function(){return new Q(this,Ze)}}return function(){return new Q(this)}},be=_+" Iterator",he=!1,ue=J.prototype,oe=ue[M]||ue["@@iterator"]||fe&&ue[fe],Fe=!W&&oe||ye(fe),Le=_=="Array"&&ue.entries||oe,Me,Pe,rt;if(Le&&(Me=x(Le.call(new J)),q!==Object.prototype&&Me.next&&(!D&&x(Me)!==q&&(d?d(Me,q):typeof Me[M]!="function"&&S(Me,M,V)),b(Me,be,!0,!0),D&&(B[be]=V))),fe==R&&oe&&oe.name!==R&&(he=!0,Fe=function(){return oe.call(this)}),(!D||ie)&&ue[M]!==Fe&&S(ue,M,Fe),B[_]=Fe,fe)if(Pe={values:ye(R),keys:ee?Fe:ye(X),entries:ye(C)},ie)for(rt in Pe)(W||he||!(rt in ue))&&g(ue,rt,Pe[rt]);else c({target:_,proto:!0,forced:W||he},Pe);return Pe}},66349:(h,I,a)=>{var c=a(54058),v=a(47457),x=a(11477),d=a(65988).f;h.exports=function(b){var S=c.Symbol||(c.Symbol={});v(S,b)||d(S,b,{value:x.f(b)})}},55746:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,a)=>{var c=a(21899),v=a(10941),x=c.document,d=v(x)&&v(x.createElement);h.exports=function(b){return d?x.createElement(b):{}}},63281:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},23321:h=>{h.exports=typeof window=="object"},22749:(h,I,a)=>{var c=a(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,a)=>{var c=a(82532),v=a(21899);h.exports=c(v.process)=="process"},58045:(h,I,a)=>{var c=a(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,a)=>{var c=a(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,a)=>{var c=a(21899),v=a(2861),x=c.process,d=x&&x.versions,b=d&&d.v8,S,g;b?(S=b.split("."),g=S[0]<4?1:S[0]+S[1]):v&&(S=v.match(/Edge\/(\d+)/),(!S||S[1]>=74)&&(S=v.match(/Chrome\/(\d+)/),S&&(g=S[1]))),h.exports=g&&+g},35703:(h,I,a)=>{var c=a(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,a)=>{"use strict";var c=a(21899),v=a(49677).f,x=a(37252),d=a(54058),b=a(86843),S=a(32029),g=a(47457),L=function(D){var B=function(j,q,W){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(j);case 2:return new D(j,q)}return new D(j,q,W)}return D.apply(this,arguments)};return B.prototype=D.prototype,B};h.exports=function(D,B){var j=D.target,q=D.global,W=D.stat,M=D.proto,X=q?c:W?c[j]:(c[j]||{}).prototype,R=q?d:d[j]||(d[j]={}),C=R.prototype,V,J,_,Q,Y,fe,ee,ie,ye;for(Q in B)V=x(q?Q:j+(W?".":"#")+Q,D.forced),J=!V&&X&&g(X,Q),fe=R[Q],J&&(D.noTargetGet?(ye=v(X,Q),ee=ye&&ye.value):ee=X[Q]),Y=J&&ee?ee:B[Q],!(J&&typeof fe==typeof Y)&&(D.bind&&J?ie=b(Y,c):D.wrap&&J?ie=L(Y):M&&typeof Y=="function"?ie=b(Function.call,Y):ie=Y,(D.sham||Y&&Y.sham||fe&&fe.sham)&&S(ie,"sham",!0),R[Q]=ie,M&&(_=j+"Prototype",g(d,_)||S(d,_,{}),d[_][Q]=Y,D.real&&C&&!C[Q]&&S(C,Q,Y)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(a){return!0}}},45602:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,a)=>{var c=a(33916);h.exports=function(v,x,d){if(c(v),x===void 0)return v;switch(d){case 0:return function(){return v.call(x)};case 1:return function(b){return v.call(x,b)};case 2:return function(b,S){return v.call(x,b,S)};case 3:return function(b,S,g){return v.call(x,b,S,g)}}return function(){return v.apply(x,arguments)}}},98308:(h,I,a)=>{"use strict";var c=a(33916),v=a(10941),x=[].slice,d={},b=function(S,g,L){if(!(g in d)){for(var D=[],B=0;B<g;B++)D[B]="a["+B+"]";d[g]=Function("C,a","return new C("+D.join(",")+")")}return d[g](S,L)};h.exports=Function.bind||function(g){var L=c(this),D=x.call(arguments,1),B=function(){var q=D.concat(x.call(arguments));return this instanceof B?b(L,q.length,q):L.apply(g,q)};return v(L.prototype)&&(B.prototype=L.prototype),B}},626:(h,I,a)=>{var c=a(54058),v=a(21899),x=function(d){return typeof d=="function"?d:void 0};h.exports=function(d,b){return arguments.length<2?x(c[d])||x(v[d]):c[d]&&c[d][b]||v[d]&&v[d][b]}},22902:(h,I,a)=>{var c=a(9697),v=a(12077),x=a(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,a)=>{var c=function(v){return v&&v.Math==Math&&v};h.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},47457:(h,I,a)=>{var c=a(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,a)=>{var c=a(21899);h.exports=function(v,x){var d=c.console;d&&d.error&&(arguments.length===1?d.error(v):d.error(v,x))}},15463:(h,I,a)=>{var c=a(626);h.exports=c("document","documentElement")},2840:(h,I,a)=>{var c=a(55746),v=a(95981),x=a(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,a)=>{var c=a(95981),v=a(82532),x="".split;h.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return v(d)=="String"?x.call(d,""):Object(d)}:Object},81302:(h,I,a)=>{var c=a(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,a)=>{var c=a(27748),v=a(10941),x=a(47457),d=a(65988).f,b=a(99418),S=a(45602),g=b("meta"),L=0,D=Object.isExtensible||function(){return!0},B=function(X){d(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,R){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!D(X))return"F";if(!R)return"E";B(X)}return X[g].objectID},q=function(X,R){if(!x(X,g)){if(!D(X))return!0;if(!R)return!1;B(X)}return X[g].weakData},W=function(X){return S&&M.REQUIRED&&D(X)&&!x(X,g)&&B(X),X},M=h.exports={REQUIRED:!1,fastKey:j,getWeakData:q,onFreeze:W};c[g]=!0},45402:(h,I,a)=>{var c=a(38019),v=a(21899),x=a(10941),d=a(32029),b=a(47457),S=a(63030),g=a(44262),L=a(27748),D="Object already initialized",B=v.WeakMap,j,q,W,M=function(Q){return W(Q)?q(Q):j(Q,{})},X=function(Q){return function(Y){var fe;if(!x(Y)||(fe=q(Y)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return fe}};if(c||S.state){var R=S.state||(S.state=new B),C=R.get,V=R.has,J=R.set;j=function(Q,Y){if(V.call(R,Q))throw new TypeError(D);return Y.facade=Q,J.call(R,Q,Y),Y},q=function(Q){return C.call(R,Q)||{}},W=function(Q){return V.call(R,Q)}}else{var _=g("state");L[_]=!0,j=function(Q,Y){if(b(Q,_))throw new TypeError(D);return Y.facade=Q,d(Q,_,Y),Y},q=function(Q){return b(Q,_)?Q[_]:{}},W=function(Q){return b(Q,_)}}h.exports={set:j,get:q,has:W,enforce:M,getterFor:X}},6782:(h,I,a)=>{var c=a(99813),v=a(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,a)=>{var c=a(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,a)=>{var c=a(95981),v=/#|\.prototype\./,x=function(L,D){var B=b[d(L)];return B==g?!0:B==S?!1:typeof D=="function"?c(D):!!D},d=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},S=x.NATIVE="N",g=x.POLYFILL="P";h.exports=x},10941:h=>{h.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:h=>{h.exports=!0},60685:(h,I,a)=>{var c=a(10941),v=a(82532),x=a(99813),d=x("match");h.exports=function(b){var S;return c(b)&&((S=b[d])!==void 0?!!S:v(b)=="RegExp")}},93091:(h,I,a)=>{var c=a(96059),v=a(6782),x=a(43057),d=a(86843),b=a(22902),S=a(7609),g=function(L,D){this.stopped=L,this.result=D};h.exports=function(L,D,B){var j=B&&B.that,q=!!(B&&B.AS_ENTRIES),W=!!(B&&B.IS_ITERATOR),M=!!(B&&B.INTERRUPTED),X=d(D,j,1+q+M),R,C,V,J,_,Q,Y,fe=function(ie){return R&&S(R),new g(!0,ie)},ee=function(ie){return q?(c(ie),M?X(ie[0],ie[1],fe):X(ie[0],ie[1])):M?X(ie,fe):X(ie)};if(W)R=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,J=x(L.length);J>V;V++)if(_=ee(L[V]),_&&_ instanceof g)return _;return new g(!1)}R=C.call(L)}for(Q=R.next;!(Y=Q.call(R)).done;){try{_=ee(Y.value)}catch(ie){throw S(R),ie}if(typeof _=="object"&&_&&_ instanceof g)return _}return new g(!1)}},7609:(h,I,a)=>{var c=a(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,a)=>{"use strict";var c=a(95981),v=a(249),x=a(32029),d=a(47457),b=a(99813),S=a(82529),g=b("iterator"),L=!1,D=function(){return this},B,j,q;[].keys&&(q=[].keys(),"next"in q?(j=v(v(q)),j!==Object.prototype&&(B=j)):L=!0);var W=B==null||c(function(){var M={};return B[g].call(M)!==M});W&&(B={}),(!S||W)&&!d(B,g)&&x(B,g,D),h.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:h=>{h.exports={}},66132:(h,I,a)=>{var c=a(21899),v=a(49677).f,x=a(42941).set,d=a(22749),b=a(58045),S=a(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,D=c.process,B=c.Promise,j=v(c,"queueMicrotask"),q=j&&j.value,W,M,X,R,C,V,J,_;q||(W=function(){var Q,Y;for(S&&(Q=D.domain)&&Q.exit();M;){Y=M.fn,M=M.next;try{Y()}catch(fe){throw M?R():X=void 0,fe}}X=void 0,Q&&Q.enter()},!d&&!S&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(W).observe(V,{characterData:!0}),R=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,_=J.then,R=function(){_.call(J,W)}):S?R=function(){D.nextTick(W)}:R=function(){x.call(c,W)}),h.exports=q||function(Q){var Y={fn:Q,next:void 0};X&&(X.next=Y),M||(M=Y,R()),X=Y}},19297:(h,I,a)=>{var c=a(21899);h.exports=c.Promise},72497:(h,I,a)=>{var c=a(53385),v=a(95981);h.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(h,I,a)=>{var c=a(21899),v=a(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,a)=>{"use strict";var c=a(33916),v=function(x){var d,b;this.promise=new x(function(S,g){if(d!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");d=S,b=g}),this.resolve=c(d),this.reject=c(b)};h.exports.f=function(x){return new v(x)}},70344:(h,I,a)=>{var c=a(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,a)=>{"use strict";var c=a(55746),v=a(95981),x=a(14771),d=a(87857),b=a(36760),S=a(89678),g=a(37026),L=Object.assign,D=Object.defineProperty;h.exports=!L||v(function(){if(c&&L({b:1},L(D({},"a",{enumerable:!0,get:function(){D(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},j={},q=Symbol(),W="abcdefghijklmnopqrst";return B[q]=7,W.split("").forEach(function(M){j[M]=M}),L({},B)[q]!=7||x(L({},j)).join("")!=W})?function(j,q){for(var W=S(j),M=arguments.length,X=1,R=d.f,C=b.f;M>X;)for(var V=g(arguments[X++]),J=R?x(V).concat(R(V)):x(V),_=J.length,Q=0,Y;_>Q;)Y=J[Q++],(!c||C.call(V,Y))&&(W[Y]=V[Y]);return W}:L},29290:(h,I,a)=>{var c=a(96059),v=a(59938),x=a(56759),d=a(27748),b=a(15463),S=a(61333),g=a(44262),L=">",D="<",B="prototype",j="script",q=g("IE_PROTO"),W=function(){},M=function(J){return D+j+L+J+D+"/"+j+L},X=function(J){J.write(M("")),J.close();var _=J.parentWindow.Object;return J=null,_},R=function(){var J=S("iframe"),_="java"+j+":",Q;return J.style.display="none",b.appendChild(J),J.src=String(_),Q=J.contentWindow.document,Q.open(),Q.write(M("document.F=Object")),Q.close(),Q.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(_){}V=C?X(C):R();for(var J=x.length;J--;)delete V[B][x[J]];return V()};d[q]=!0,h.exports=Object.create||function(_,Q){var Y;return _!==null?(W[B]=c(_),Y=new W,W[B]=null,Y[q]=_):Y=V(),Q===void 0?Y:v(Y,Q)}},59938:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(96059),d=a(14771);h.exports=c?Object.defineProperties:function(S,g){x(S);for(var L=d(g),D=L.length,B=0,j;D>B;)v.f(S,j=L[B++],g[j]);return S}},65988:(h,I,a)=>{var c=a(55746),v=a(2840),x=a(96059),d=a(46935),b=Object.defineProperty;I.f=c?b:function(g,L,D){if(x(g),L=d(L,!0),x(D),v)try{return b(g,L,D)}catch(B){}if("get"in D||"set"in D)throw TypeError("Accessors not supported");return"value"in D&&(g[L]=D.value),g}},49677:(h,I,a)=>{var c=a(55746),v=a(36760),x=a(31887),d=a(74529),b=a(46935),S=a(47457),g=a(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(B,j){if(B=d(B),j=b(j,!0),g)try{return L(B,j)}catch(q){}if(S(B,j))return x(!v.f.call(B,j),B[j])}},684:(h,I,a)=>{var c=a(74529),v=a(10946).f,x={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return v(S)}catch(g){return d.slice()}};h.exports.f=function(g){return d&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(h,I,a)=>{var c=a(55629),v=a(56759),x=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,x)}},87857:(h,I)=>{I.f=Object.getOwnPropertySymbols},249:(h,I,a)=>{var c=a(47457),v=a(89678),x=a(44262),d=a(64160),b=x("IE_PROTO"),S=Object.prototype;h.exports=d?Object.getPrototypeOf:function(g){return g=v(g),c(g,b)?g[b]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?S:null}},55629:(h,I,a)=>{var c=a(47457),v=a(74529),x=a(31692).indexOf,d=a(27748);h.exports=function(b,S){var g=v(b),L=0,D=[],B;for(B in g)!c(d,B)&&c(g,B)&&D.push(B);for(;S.length>L;)c(g,B=S[L++])&&(~x(D,B)||D.push(B));return D}},14771:(h,I,a)=>{var c=a(55629),v=a(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!a.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:a},88929:(h,I,a)=>{var c=a(96059),v=a(42488);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,d={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(d,[]),x=d instanceof Array}catch(S){}return function(g,L){return c(g),v(L),x?b.call(g,L):g.__proto__=L,g}}():void 0)},88810:(h,I,a)=>{var c=a(55746),v=a(14771),x=a(74529),d=a(36760).f,b=function(S){return function(g){for(var L=x(g),D=v(L),B=D.length,j=0,q=[],W;B>j;)W=D[j++],(!c||d.call(L,W))&&q.push(S?[W,L[W]]:L[W]);return q}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,a)=>{"use strict";var c=a(22885),v=a(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,a)=>{var c=a(626),v=a(10946),x=a(87857),d=a(96059);h.exports=c("Reflect","ownKeys")||function(S){var g=v.f(d(S)),L=x.f;return L?g.concat(L(S)):g}},54058:h=>{h.exports={}},40002:h=>{h.exports=function(I){try{return{error:!1,value:I()}}catch(a){return{error:!0,value:a}}}},56584:(h,I,a)=>{var c=a(96059),v=a(10941),x=a(69520);h.exports=function(d,b){if(c(d),v(b)&&b.constructor===d)return b;var S=x.f(d),g=S.resolve;return g(b),S.promise}},87524:(h,I,a)=>{var c=a(99754);h.exports=function(v,x,d){for(var b in x)d&&d.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],d);return v}},99754:(h,I,a)=>{var c=a(32029);h.exports=function(v,x,d,b){b&&b.enumerable?v[x]=d:c(v,x,d)}},48219:h=>{h.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(h,I,a)=>{var c=a(21899),v=a(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,a)=>{"use strict";var c=a(626),v=a(65988),x=a(99813),d=a(55746),b=x("species");h.exports=function(S){var g=c(S),L=v.f;d&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(h,I,a)=>{var c=a(22885),v=a(65988).f,x=a(32029),d=a(47457),b=a(95623),S=a(99813),g=S("toStringTag");h.exports=function(L,D,B,j){if(L){var q=B?L:L.prototype;d(q,g)||v(q,g,{configurable:!0,value:D}),j&&!c&&x(q,"toString",b)}}},44262:(h,I,a)=>{var c=a(68726),v=a(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,a)=>{var c=a(21899),v=a(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,a)=>{var c=a(82529),v=a(63030);(h.exports=function(x,d){return v[x]||(v[x]=d!==void 0?d:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(h,I,a)=>{var c=a(96059),v=a(33916),x=a(99813),d=x("species");h.exports=function(b,S){var g=c(b).constructor,L;return g===void 0||(L=c(g)[d])==null?S:v(L)}},64620:(h,I,a)=>{var c=a(68459),v=a(48219),x=function(d){return function(b,S){var g=String(v(b)),L=c(S),D=g.length,B,j;return L<0||L>=D?d?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===D||(j=g.charCodeAt(L+1))<56320||j>57343?d?g.charAt(L):B:d?g.slice(L,L+2):(B-55296<<10)+(j-56320)+65536)}};h.exports={codeAt:x(!1),charAt:x(!0)}},42941:(h,I,a)=>{var c=a(21899),v=a(95981),x=a(86843),d=a(15463),b=a(61333),S=a(22749),g=a(6049),L=c.location,D=c.setImmediate,B=c.clearImmediate,j=c.process,q=c.MessageChannel,W=c.Dispatch,M=0,X={},R="onreadystatechange",C,V,J,_=function(ee){if(X.hasOwnProperty(ee)){var ie=X[ee];delete X[ee],ie()}},Q=function(ee){return function(){_(ee)}},Y=function(ee){_(ee.data)},fe=function(ee){c.postMessage(ee+"",L.protocol+"//"+L.host)};(!D||!B)&&(D=function(ie){for(var ye=[],be=1;arguments.length>be;)ye.push(arguments[be++]);return X[++M]=function(){(typeof ie=="function"?ie:Function(ie)).apply(void 0,ye)},C(M),M},B=function(ie){delete X[ie]},g?C=function(ee){j.nextTick(Q(ee))}:W&&W.now?C=function(ee){W.now(Q(ee))}:q&&!S?(V=new q,J=V.port2,V.port1.onmessage=Y,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(fe)?(C=fe,c.addEventListener("message",Y,!1)):R in b("script")?C=function(ee){d.appendChild(b("script"))[R]=function(){d.removeChild(this),_(ee)}}:C=function(ee){setTimeout(Q(ee),0)}),h.exports={set:D,clear:B}},59413:(h,I,a)=>{var c=a(68459),v=Math.max,x=Math.min;h.exports=function(d,b){var S=c(d);return S<0?v(S+b,0):x(S,b)}},74529:(h,I,a)=>{var c=a(37026),v=a(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,a=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?a:I)(c)}},43057:(h,I,a)=>{var c=a(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,a)=>{var c=a(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,a)=>{var c=a(10941);h.exports=function(v,x){if(!c(v))return v;var d,b;if(x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v))||typeof(d=v.valueOf)=="function"&&!c(b=d.call(v))||!x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(h,I,a)=>{var c=a(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,a=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+a).toString(36)}},32302:(h,I,a)=>{var c=a(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,a)=>{var c=a(99813);I.f=c},99813:(h,I,a)=>{var c=a(21899),v=a(68726),x=a(47457),d=a(99418),b=a(72497),S=a(32302),g=v("wks"),L=c.Symbol,D=S?L:L&&L.withoutSetter||d;h.exports=function(B){return(!x(g,B)||!(b||typeof g[B]=="string"))&&(b&&x(L,B)?g[B]=L[B]:g[B]=D("Symbol."+B)),g[B]}},47627:(h,I,a)=>{"use strict";var c=a(76887),v=a(249),x=a(88929),d=a(29290),b=a(32029),S=a(31887),g=a(93091),L=function(B,j){var q=this;if(!(q instanceof L))return new L(B,j);x&&(q=x(new Error(void 0),v(q))),j!==void 0&&b(q,"message",String(j));var W=[];return g(B,W.push,{that:W}),b(q,"errors",W),q};L.prototype=d(Error.prototype,{constructor:S(5,L),message:S(5,""),name:S(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(h,I,a)=>{"use strict";var c=a(76887),v=a(95981),x=a(1052),d=a(10941),b=a(89678),S=a(43057),g=a(55449),L=a(64692),D=a(50568),B=a(99813),j=a(53385),q=B("isConcatSpreadable"),W=9007199254740991,M="Maximum allowed index exceeded",X=j>=51||!v(function(){var J=[];return J[q]=!1,J.concat()[0]!==J}),R=D("concat"),C=function(J){if(!d(J))return!1;var _=J[q];return _!==void 0?!!_:x(J)},V=!X||!R;c({target:"Array",proto:!0,forced:V},{concat:function(_){var Q=b(this),Y=L(Q,0),fe=0,ee,ie,ye,be,he;for(ee=-1,ye=arguments.length;ee<ye;ee++)if(he=ee===-1?Q:arguments[ee],C(he)){if(be=S(he.length),fe+be>W)throw TypeError(M);for(ie=0;ie<be;ie++,fe++)ie in he&&g(Y,fe,he[ie])}else{if(fe>=W)throw TypeError(M);g(Y,fe++,he)}return Y.length=fe,Y}})},21501:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).filter,x=a(50568),d=x("filter");c({target:"Array",proto:!0,forced:!d},{filter:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},80833:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).find,x=a(18479),d="find",b=!0;d in[]&&Array(1)[d](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),x(d)},2437:(h,I,a)=>{"use strict";var c=a(76887),v=a(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,a)=>{var c=a(76887),v=a(11354),x=a(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,a)=>{"use strict";var c=a(76887),v=a(31692).includes,x=a(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),x("includes")},99076:(h,I,a)=>{"use strict";var c=a(76887),v=a(31692).indexOf,x=a(34194),d=[].indexOf,b=!!d&&1/[1].indexOf(1,-0)<0,S=x("indexOf");c({target:"Array",proto:!0,forced:b||!S},{indexOf:function(L){return b?d.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(h,I,a)=>{var c=a(76887),v=a(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,a)=>{"use strict";var c=a(74529),v=a(18479),x=a(12077),d=a(45402),b=a(47771),S="Array Iterator",g=d.set,L=d.getterFor(S);h.exports=b(Array,"Array",function(D,B){g(this,{type:S,target:c(D),index:0,kind:B})},function(){var D=L(this),B=D.target,j=D.kind,q=D.index++;return!B||q>=B.length?(D.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:q,done:!1}:j=="values"?{value:B[q],done:!1}:{value:[q,B[q]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).map,x=a(50568),d=x("map");c({target:"Array",proto:!0,forced:!d},{map:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},60186:(h,I,a)=>{"use strict";var c=a(76887),v=a(10941),x=a(1052),d=a(59413),b=a(43057),S=a(74529),g=a(55449),L=a(99813),D=a(50568),B=D("slice"),j=L("species"),q=[].slice,W=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,R){var C=S(this),V=b(C.length),J=d(X,V),_=d(R===void 0?V:R,V),Q,Y,fe;if(x(C)&&(Q=C.constructor,typeof Q=="function"&&(Q===Array||x(Q.prototype))?Q=void 0:v(Q)&&(Q=Q[j],Q===null&&(Q=void 0)),Q===Array||Q===void 0))return q.call(C,J,_);for(Y=new(Q===void 0?Array:Q)(W(_-J,0)),fe=0;J<_;J++,fe++)J in C&&g(Y,fe,C[J]);return Y.length=fe,Y}})},98611:(h,I,a)=>{"use strict";var c=a(76887),v=a(59413),x=a(68459),d=a(43057),b=a(89678),S=a(64692),g=a(55449),L=a(50568),D=L("splice"),B=Math.max,j=Math.min,q=9007199254740991,W="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!D},{splice:function(X,R){var C=b(this),V=d(C.length),J=v(X,V),_=arguments.length,Q,Y,fe,ee,ie,ye;if(_===0?Q=Y=0:_===1?(Q=0,Y=V-J):(Q=_-2,Y=j(B(x(R),0),V-J)),V+Q-Y>q)throw TypeError(W);for(fe=S(C,Y),ee=0;ee<Y;ee++)ie=J+ee,ie in C&&g(fe,ee,C[ie]);if(fe.length=Y,Q<Y){for(ee=J;ee<V-Y;ee++)ie=ee+Y,ye=ee+Q,ie in C?C[ye]=C[ie]:delete C[ye];for(ee=V;ee>V-Y+Q;ee--)delete C[ee-1]}else if(Q>Y)for(ee=V-Y;ee>J;ee--)ie=ee+Y-1,ye=ee+Q-1,ie in C?C[ye]=C[ie]:delete C[ye];for(ee=0;ee<Q;ee++)C[ee+J]=arguments[ee+2];return C.length=V-Y+Q,fe}})},32619:(h,I,a)=>{var c=a(76887),v=a(626),x=a(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,L=function(B,j,q){var W=q.charAt(j-1),M=q.charAt(j+1);return S.test(B)&&!g.test(M)||g.test(B)&&!S.test(W)?"\\u"+B.charCodeAt(0).toString(16):B},D=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:D},{stringify:function(j,q,W){var M=d.apply(null,arguments);return typeof M=="string"?M.replace(b,L):M}})},69120:(h,I,a)=>{var c=a(21899),v=a(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,a)=>{var c=a(76887),v=a(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,a)=>{var c=a(76887),v=a(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(74529),d=a(49677).f,b=a(55746),S=v(function(){d(1)}),g=!b||S;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(D,B){return d(x(D),B)}})},88482:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(31136),d=a(74529),b=a(49677),S=a(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var D=d(L),B=b.f,j=x(D),q={},W=0,M,X;j.length>W;)X=B(D,M=j[W++]),X!==void 0&&S(q,M,X);return q}})},17405:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(89678),d=a(249),b=a(64160),S=v(function(){d(1)});c({target:"Object",stat:!0,forced:S,sham:!b},{getPrototypeOf:function(L){return d(x(L))}})},21724:(h,I,a)=>{var c=a(76887),v=a(89678),x=a(14771),d=a(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,a)=>{var c=a(76887),v=a(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(69520),d=a(40002),b=a(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,D=x.f(L),B=D.resolve,j=D.reject,q=d(function(){var W=v(L.resolve),M=[],X=0,R=1;b(g,function(C){var V=X++,J=!1;M.push(void 0),R++,W.call(L,C).then(function(_){J||(J=!0,M[V]={status:"fulfilled",value:_},--R||B(M))},function(_){J||(J=!0,M[V]={status:"rejected",reason:_},--R||B(M))})}),--R||B(M)});return q.error&&j(q.value),D.promise}})},91302:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(626),d=a(69520),b=a(40002),S=a(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(D){var B=this,j=d.f(B),q=j.resolve,W=j.reject,M=b(function(){var X=v(B.resolve),R=[],C=0,V=1,J=!1;S(D,function(_){var Q=C++,Y=!1;R.push(void 0),V++,X.call(B,_).then(function(fe){Y||J||(J=!0,q(fe))},function(fe){Y||J||(Y=!0,R[Q]=fe,--V||W(new(x("AggregateError"))(R,g)))})}),--V||W(new(x("AggregateError"))(R,g))});return M.error&&W(M.value),j.promise}})},4808:(h,I,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(19297),d=a(95981),b=a(626),S=a(70487),g=a(56584),L=a(99754),D=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:D},{finally:function(j){var q=S(this,b("Promise")),W=typeof j=="function";return this.then(W?function(M){return g(q,j()).then(function(){return M})}:j,W?function(M){return g(q,j()).then(function(){throw M})}:j)}}),!v&&typeof x=="function"){var B=b("Promise").prototype.finally;x.prototype.finally!==B&&L(x.prototype,"finally",B,{unsafe:!0})}},98881:(h,I,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(21899),d=a(626),b=a(19297),S=a(99754),g=a(87524),L=a(88929),D=a(90904),B=a(94431),j=a(10941),q=a(33916),W=a(5743),M=a(81302),X=a(93091),R=a(21385),C=a(70487),V=a(42941).set,J=a(66132),_=a(56584),Q=a(34845),Y=a(69520),fe=a(40002),ee=a(45402),ie=a(37252),ye=a(99813),be=a(23321),he=a(6049),ue=a(53385),oe=ye("species"),Fe="Promise",Le=ee.get,Me=ee.set,Pe=ee.getterFor(Fe),rt=b&&b.prototype,Ze=b,Xe=rt,ft=x.TypeError,ht=x.document,bt=x.process,nt=Y.f,ut=nt,yt=!!(ht&&ht.createEvent&&x.dispatchEvent),mt=typeof PromiseRejectionEvent=="function",pt="unhandledrejection",Mt="rejectionhandled",kt=0,Et=1,Ht=2,jt=1,Vt=2,wt=!1,Dt,ve,z,$,Se=ie(Fe,function(){var te=M(Ze)!==String(Ze);if(!te&&ue===66||v&&!Xe.finally)return!0;if(ue>=51&&/native code/.test(Ze))return!1;var de=new Ze(function(Ae){Ae(1)}),ae=function(Ae){Ae(function(){},function(){})},pe=de.constructor={};return pe[oe]=ae,wt=de.then(function(){})instanceof ae,wt?!te&&be&&!mt:!0}),Ie=Se||!R(function(te){Ze.all(te).catch(function(){})}),Ge=function(te){var de;return j(te)&&typeof(de=te.then)=="function"?de:!1},Ke=function(te,de){if(!te.notified){te.notified=!0;var ae=te.reactions;J(function(){for(var pe=te.value,Ae=te.state==Et,Be=0;ae.length>Be;){var Ue=ae[Be++],Qe=Ae?Ue.ok:Ue.fail,vt=Ue.resolve,At=Ue.reject,Bt=Ue.domain,Pt,dn,Br;try{Qe?(Ae||(te.rejection===Vt&&T(te),te.rejection=jt),Qe===!0?Pt=pe:(Bt&&Bt.enter(),Pt=Qe(pe),Bt&&(Bt.exit(),Br=!0)),Pt===Ue.promise?At(ft("Promise-chain cycle")):(dn=Ge(Pt))?dn.call(Pt,vt,At):vt(Pt)):At(pe)}catch(Cr){Bt&&!Br&&Bt.exit(),At(Cr)}}te.reactions=[],te.notified=!1,de&&!te.rejection&&Re(te)})}},P=function(te,de,ae){var pe,Ae;yt?(pe=ht.createEvent("Event"),pe.promise=de,pe.reason=ae,pe.initEvent(te,!1,!0),x.dispatchEvent(pe)):pe={promise:de,reason:ae},!mt&&(Ae=x["on"+te])?Ae(pe):te===pt&&Q("Unhandled promise rejection",ae)},Re=function(te){V.call(x,function(){var de=te.facade,ae=te.value,pe=K(te),Ae;if(pe&&(Ae=fe(function(){he?bt.emit("unhandledRejection",ae,de):P(pt,de,ae)}),te.rejection=he||K(te)?Vt:jt,Ae.error))throw Ae.value})},K=function(te){return te.rejection!==jt&&!te.parent},T=function(te){V.call(x,function(){var de=te.facade;he?bt.emit("rejectionHandled",de):P(Mt,de,te.value)})},O=function(te,de,ae){return function(pe){te(de,pe,ae)}},se=function(te,de,ae){te.done||(te.done=!0,ae&&(te=ae),te.value=de,te.state=Ht,Ke(te,!0))},N=function(te,de,ae){if(!te.done){te.done=!0,ae&&(te=ae);try{if(te.facade===de)throw ft("Promise can't be resolved itself");var pe=Ge(de);pe?J(function(){var Ae={done:!1};try{pe.call(de,O(N,Ae,te),O(se,Ae,te))}catch(Be){se(Ae,Be,te)}}):(te.value=de,te.state=Et,Ke(te,!1))}catch(Ae){se({done:!1},Ae,te)}}};if(Se&&(Ze=function(de){W(this,Ze,Fe),q(de),Dt.call(this);var ae=Le(this);try{de(O(N,ae),O(se,ae))}catch(pe){se(ae,pe)}},Xe=Ze.prototype,Dt=function(de){Me(this,{type:Fe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:kt,value:void 0})},Dt.prototype=g(Xe,{then:function(de,ae){var pe=Pe(this),Ae=nt(C(this,Ze));return Ae.ok=typeof de=="function"?de:!0,Ae.fail=typeof ae=="function"&&ae,Ae.domain=he?bt.domain:void 0,pe.parent=!0,pe.reactions.push(Ae),pe.state!=kt&&Ke(pe,!1),Ae.promise},catch:function(te){return this.then(void 0,te)}}),ve=function(){var te=new Dt,de=Le(te);this.promise=te,this.resolve=O(N,de),this.reject=O(se,de)},Y.f=nt=function(te){return te===Ze||te===z?new ve(te):ut(te)},!v&&typeof b=="function"&&rt!==Object.prototype)){$=rt.then,wt||(S(rt,"then",function(de,ae){var pe=this;return new Ze(function(Ae,Be){$.call(pe,Ae,Be)}).then(de,ae)},{unsafe:!0}),S(rt,"catch",Xe.catch,{unsafe:!0}));try{delete rt.constructor}catch(te){}L&&L(rt,Xe)}c({global:!0,wrap:!0,forced:Se},{Promise:Ze}),D(Ze,Fe,!1,!0),B(Fe),z=d(Fe),c({target:Fe,stat:!0,forced:Se},{reject:function(de){var ae=nt(this);return ae.reject.call(void 0,de),ae.promise}}),c({target:Fe,stat:!0,forced:v||Se},{resolve:function(de){return _(v&&this===z?Ze:this,de)}}),c({target:Fe,stat:!0,forced:Ie},{all:function(de){var ae=this,pe=nt(ae),Ae=pe.resolve,Be=pe.reject,Ue=fe(function(){var Qe=q(ae.resolve),vt=[],At=0,Bt=1;X(de,function(Pt){var dn=At++,Br=!1;vt.push(void 0),Bt++,Qe.call(ae,Pt).then(function(Cr){Br||(Br=!0,vt[dn]=Cr,--Bt||Ae(vt))},Be)}),--Bt||Ae(vt)});return Ue.error&&Be(Ue.value),pe.promise},race:function(de){var ae=this,pe=nt(ae),Ae=pe.reject,Be=fe(function(){var Ue=q(ae.resolve);X(de,function(Qe){Ue.call(ae,Qe).then(pe.resolve,Ae)})});return Be.error&&Ae(Be.value),pe.promise}})},7453:(h,I,a)=>{var c=a(76887),v=a(626),x=a(33916),d=a(96059),b=a(10941),S=a(29290),g=a(98308),L=a(95981),D=v("Reflect","construct"),B=L(function(){function W(){}return!(D(function(){},[],W)instanceof W)}),j=!L(function(){D(function(){})}),q=B||j;c({target:"Reflect",stat:!0,forced:q,sham:q},{construct:function(M,X){x(M),d(X);var R=arguments.length<3?M:x(arguments[2]);if(j&&!B)return D(M,X,R);if(M==R){switch(X.length){case 0:return new M;case 1:return new M(X[0]);case 2:return new M(X[0],X[1]);case 3:return new M(X[0],X[1],X[2]);case 4:return new M(X[0],X[1],X[2],X[3])}var C=[null];return C.push.apply(C,X),new(g.apply(M,C))}var V=R.prototype,J=S(b(V)?V:Object.prototype),_=Function.apply.call(M,J,X);return b(_)?_:J}})},42355:(h,I,a)=>{var c=a(76887),v=a(10941),x=a(96059),d=a(47457),b=a(49677),S=a(249);function g(L,D){var B=arguments.length<3?L:arguments[2],j,q;if(x(L)===B)return L[D];if(j=b.f(L,D))return d(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(q=S(L)))return g(q,D,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,a)=>{"use strict";var c=a(76887),v=a(70344),x=a(48219),d=a(67772);c({target:"String",proto:!0,forced:!d("includes")},{includes:function(S){return!!~String(x(this)).indexOf(v(S),arguments.length>1?arguments[1]:void 0)}})},77971:(h,I,a)=>{"use strict";var c=a(64620).charAt,v=a(45402),x=a(47771),d="String Iterator",b=v.set,S=v.getterFor(d);x(String,"String",function(g){b(this,{type:d,string:String(g),index:0})},function(){var L=S(this),D=L.string,B=L.index,j;return B>=D.length?{value:void 0,done:!0}:(j=c(D,B),L.index+=j.length,{value:j,done:!1})})},8555:(h,I,a)=>{var c=a(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,a)=>{var c=a(66349);c("hasInstance")},35903:(h,I,a)=>{var c=a(66349);c("isConcatSpreadable")},1825:(h,I,a)=>{var c=a(66349);c("iterator")},35824:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(626),d=a(82529),b=a(55746),S=a(72497),g=a(32302),L=a(95981),D=a(47457),B=a(1052),j=a(10941),q=a(96059),W=a(89678),M=a(74529),X=a(46935),R=a(31887),C=a(29290),V=a(14771),J=a(10946),_=a(684),Q=a(87857),Y=a(49677),fe=a(65988),ee=a(36760),ie=a(32029),ye=a(99754),be=a(68726),he=a(44262),ue=a(27748),oe=a(99418),Fe=a(99813),Le=a(11477),Me=a(66349),Pe=a(90904),rt=a(45402),Ze=a(3610).forEach,Xe=he("hidden"),ft="Symbol",ht="prototype",bt=Fe("toPrimitive"),nt=rt.set,ut=rt.getterFor(ft),yt=Object[ht],mt=v.Symbol,pt=x("JSON","stringify"),Mt=Y.f,kt=fe.f,Et=_.f,Ht=ee.f,jt=be("symbols"),Vt=be("op-symbols"),wt=be("string-to-symbol-registry"),Dt=be("symbol-to-string-registry"),ve=be("wks"),z=v.QObject,$=!z||!z[ht]||!z[ht].findChild,Se=b&&L(function(){return C(kt({},"a",{get:function(){return kt(this,"a",{value:7}).a}})).a!=7})?function(te,de,ae){var pe=Mt(yt,de);pe&&delete yt[de],kt(te,de,ae),pe&&te!==yt&&kt(yt,de,pe)}:kt,Ie=function(te,de){var ae=jt[te]=C(mt[ht]);return nt(ae,{type:ft,tag:te,description:de}),b||(ae.description=de),ae},Ge=g?function(te){return typeof te=="symbol"}:function(te){return Object(te)instanceof mt},Ke=function(de,ae,pe){de===yt&&Ke(Vt,ae,pe),q(de);var Ae=X(ae,!0);return q(pe),D(jt,Ae)?(pe.enumerable?(D(de,Xe)&&de[Xe][Ae]&&(de[Xe][Ae]=!1),pe=C(pe,{enumerable:R(0,!1)})):(D(de,Xe)||kt(de,Xe,R(1,{})),de[Xe][Ae]=!0),Se(de,Ae,pe)):kt(de,Ae,pe)},P=function(de,ae){q(de);var pe=M(ae),Ae=V(pe).concat(se(pe));return Ze(Ae,function(Be){(!b||K.call(pe,Be))&&Ke(de,Be,pe[Be])}),de},Re=function(de,ae){return ae===void 0?C(de):P(C(de),ae)},K=function(de){var ae=X(de,!0),pe=Ht.call(this,ae);return this===yt&&D(jt,ae)&&!D(Vt,ae)?!1:pe||!D(this,ae)||!D(jt,ae)||D(this,Xe)&&this[Xe][ae]?pe:!0},T=function(de,ae){var pe=M(de),Ae=X(ae,!0);if(!(pe===yt&&D(jt,Ae)&&!D(Vt,Ae))){var Be=Mt(pe,Ae);return Be&&D(jt,Ae)&&!(D(pe,Xe)&&pe[Xe][Ae])&&(Be.enumerable=!0),Be}},O=function(de){var ae=Et(M(de)),pe=[];return Ze(ae,function(Ae){!D(jt,Ae)&&!D(ue,Ae)&&pe.push(Ae)}),pe},se=function(de){var ae=de===yt,pe=Et(ae?Vt:M(de)),Ae=[];return Ze(pe,function(Be){D(jt,Be)&&(!ae||D(yt,Be))&&Ae.push(jt[Be])}),Ae};if(S||(mt=function(){if(this instanceof mt)throw TypeError("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ae=oe(de),pe=function(Ae){this===yt&&pe.call(Vt,Ae),D(this,Xe)&&D(this[Xe],ae)&&(this[Xe][ae]=!1),Se(this,ae,R(1,Ae))};return b&&$&&Se(yt,ae,{configurable:!0,set:pe}),Ie(ae,de)},ye(mt[ht],"toString",function(){return ut(this).tag}),ye(mt,"withoutSetter",function(te){return Ie(oe(te),te)}),ee.f=K,fe.f=Ke,Y.f=T,J.f=_.f=O,Q.f=se,Le.f=function(te){return Ie(Fe(te),te)},b&&(kt(mt[ht],"description",{configurable:!0,get:function(){return ut(this).description}}),d||ye(yt,"propertyIsEnumerable",K,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:mt}),Ze(V(ve),function(te){Me(te)}),c({target:ft,stat:!0,forced:!S},{for:function(te){var de=String(te);if(D(wt,de))return wt[de];var ae=mt(de);return wt[de]=ae,Dt[ae]=de,ae},keyFor:function(de){if(!Ge(de))throw TypeError(de+" is not a symbol");if(D(Dt,de))return Dt[de]},useSetter:function(){$=!0},useSimple:function(){$=!1}}),c({target:"Object",stat:!0,forced:!S,sham:!b},{create:Re,defineProperty:Ke,defineProperties:P,getOwnPropertyDescriptor:T}),c({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:O,getOwnPropertySymbols:se}),c({target:"Object",stat:!0,forced:L(function(){Q.f(1)})},{getOwnPropertySymbols:function(de){return Q.f(W(de))}}),pt){var N=!S||L(function(){var te=mt();return pt([te])!="[null]"||pt({a:te})!="{}"||pt(Object(te))!="{}"});c({target:"JSON",stat:!0,forced:N},{stringify:function(de,ae,pe){for(var Ae=[de],Be=1,Ue;arguments.length>Be;)Ae.push(arguments[Be++]);if(Ue=ae,!(!j(ae)&&de===void 0||Ge(de)))return B(ae)||(ae=function(Qe,vt){if(typeof Ue=="function"&&(vt=Ue.call(this,Qe,vt)),!Ge(vt))return vt}),Ae[1]=ae,pt.apply(null,Ae)}})}mt[ht][bt]||ie(mt[ht],bt,mt[ht].valueOf),Pe(mt,ft),ue[Xe]=!0},45915:(h,I,a)=>{var c=a(66349);c("matchAll")},28394:(h,I,a)=>{var c=a(66349);c("match")},61766:(h,I,a)=>{var c=a(66349);c("replace")},62737:(h,I,a)=>{var c=a(66349);c("search")},89911:(h,I,a)=>{var c=a(66349);c("species")},74315:(h,I,a)=>{var c=a(66349);c("split")},63131:(h,I,a)=>{var c=a(66349);c("toPrimitive")},64714:(h,I,a)=>{var c=a(66349);c("toStringTag")},70659:(h,I,a)=>{var c=a(66349);c("unscopables")},54334:(h,I,a)=>{"use strict";var c=a(21899),v=a(87524),x=a(21647),d=a(24683),b=a(8850),S=a(10941),g=a(45402).enforce,L=a(38019),D=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,q=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},W=h.exports=d("WeakMap",q,b);if(L&&D){j=b.getConstructor(q,"WeakMap",!0),x.REQUIRED=!0;var M=W.prototype,X=M.delete,R=M.has,C=M.get,V=M.set;v(M,{delete:function(J){if(S(J)&&!B(J)){var _=g(this);return _.frozen||(_.frozen=new j),X.call(this,J)||_.frozen.delete(J)}return X.call(this,J)},has:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,_)||Q.frozen.has(_)}return R.call(this,_)},get:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,_)?C.call(this,_):Q.frozen.get(_)}return C.call(this,_)},set:function(_,Q){if(S(_)&&!B(_)){var Y=g(this);Y.frozen||(Y.frozen=new j),R.call(this,_)?V.call(this,_,Q):Y.frozen.set(_,Q)}else V.call(this,_,Q);return this}})}},89731:(h,I,a)=>{a(47627)},55708:(h,I,a)=>{a(4560)},88731:(h,I,a)=>{a(91302)},30014:(h,I,a)=>{"use strict";var c=a(76887),v=a(69520),x=a(40002);c({target:"Promise",stat:!0},{try:function(d){var b=v.f(this),S=x(d);return(S.error?b.reject:b.resolve)(S.value),b.promise}})},28783:(h,I,a)=>{var c=a(66349);c("asyncDispose")},43975:(h,I,a)=>{var c=a(66349);c("dispose")},65799:(h,I,a)=>{var c=a(66349);c("matcher")},45414:(h,I,a)=>{var c=a(66349);c("metadata")},46774:(h,I,a)=>{var c=a(66349);c("observable")},80620:(h,I,a)=>{var c=a(66349);c("patternMatch")},36172:(h,I,a)=>{var c=a(66349);c("replaceAll")},7634:(h,I,a)=>{a(66274);var c=a(63281),v=a(21899),x=a(9697),d=a(32029),b=a(12077),S=a(99813),g=S("toStringTag");for(var L in c){var D=v[L],B=D&&D.prototype;B&&x(B)!==g&&d(B,g,L),b[L]=b.Array}},27698:(h,I,a)=>{var c=a(54493);h.exports=c},62908:(h,I,a)=>{var c=a(12710);h.exports=c},49216:(h,I,a)=>{var c=a(99324);h.exports=c},8065:(h,I,a)=>{var c=a(56043);h.exports=c},57448:(h,I,a)=>{a(7634);var c=a(62908),v=a(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.entries;return b===x||b instanceof Array&&S===x.entries||d.hasOwnProperty(v(b))?c:S}},11955:(h,I,a)=>{var c=a(2480);h.exports=c},61577:(h,I,a)=>{var c=a(32236);h.exports=c},46279:(h,I,a)=>{a(7634);var c=a(49216),v=a(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.forEach;return b===x||b instanceof Array&&S===x.forEach||d.hasOwnProperty(v(b))?c:S}},33778:(h,I,a)=>{var c=a(58557);h.exports=c},61798:(h,I,a)=>{var c=a(88287);h.exports=c},82073:(h,I,a)=>{var c=a(69601);h.exports=c},2348:(h,I,a)=>{var c=a(18339);h.exports=c},8933:(h,I,a)=>{var c=a(84426);h.exports=c},63383:(h,I,a)=>{var c=a(45999);h.exports=c},86209:(h,I,a)=>{var c=a(73081);h.exports=c},23059:(h,I,a)=>{var c=a(48494);h.exports=c},27460:(h,I,a)=>{var c=a(52956);h.exports=c},72010:(h,I,a)=>{var c=a(32304);h.exports=c},31905:function(){(function(h){var I=function(a){var c={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(ee){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(ee){return ee&&DataView.prototype.isPrototypeOf(ee)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(ee){return ee&&x.indexOf(Object.prototype.toString.call(ee))>-1};function b(ee){if(typeof ee!="string"&&(ee=String(ee)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ee))throw new TypeError("Invalid character in header field name");return ee.toLowerCase()}function S(ee){return typeof ee!="string"&&(ee=String(ee)),ee}function g(ee){var ie={next:function(){var ye=ee.shift();return{done:ye===void 0,value:ye}}};return c.iterable&&(ie[Symbol.iterator]=function(){return ie}),ie}function L(ee){this.map={},ee instanceof L?ee.forEach(function(ie,ye){this.append(ye,ie)},this):Array.isArray(ee)?ee.forEach(function(ie){this.append(ie[0],ie[1])},this):ee&&Object.getOwnPropertyNames(ee).forEach(function(ie){this.append(ie,ee[ie])},this)}L.prototype.append=function(ee,ie){ee=b(ee),ie=S(ie);var ye=this.map[ee];this.map[ee]=ye?ye+", "+ie:ie},L.prototype.delete=function(ee){delete this.map[b(ee)]},L.prototype.get=function(ee){return ee=b(ee),this.has(ee)?this.map[ee]:null},L.prototype.has=function(ee){return this.map.hasOwnProperty(b(ee))},L.prototype.set=function(ee,ie){this.map[b(ee)]=S(ie)},L.prototype.forEach=function(ee,ie){for(var ye in this.map)this.map.hasOwnProperty(ye)&&ee.call(ie,this.map[ye],ye,this)},L.prototype.keys=function(){var ee=[];return this.forEach(function(ie,ye){ee.push(ye)}),g(ee)},L.prototype.values=function(){var ee=[];return this.forEach(function(ie){ee.push(ie)}),g(ee)},L.prototype.entries=function(){var ee=[];return this.forEach(function(ie,ye){ee.push([ye,ie])}),g(ee)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function D(ee){if(ee.bodyUsed)return Promise.reject(new TypeError("Already read"));ee.bodyUsed=!0}function B(ee){return new Promise(function(ie,ye){ee.onload=function(){ie(ee.result)},ee.onerror=function(){ye(ee.error)}})}function j(ee){var ie=new FileReader,ye=B(ie);return ie.readAsArrayBuffer(ee),ye}function q(ee){var ie=new FileReader,ye=B(ie);return ie.readAsText(ee),ye}function W(ee){for(var ie=new Uint8Array(ee),ye=new Array(ie.length),be=0;be<ie.length;be++)ye[be]=String.fromCharCode(ie[be]);return ye.join("")}function M(ee){if(ee.slice)return ee.slice(0);var ie=new Uint8Array(ee.byteLength);return ie.set(new Uint8Array(ee)),ie.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(ee){this._bodyInit=ee,ee?typeof ee=="string"?this._bodyText=ee:c.blob&&Blob.prototype.isPrototypeOf(ee)?this._bodyBlob=ee:c.formData&&FormData.prototype.isPrototypeOf(ee)?this._bodyFormData=ee:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)?this._bodyText=ee.toString():c.arrayBuffer&&c.blob&&v(ee)?(this._bodyArrayBuffer=M(ee.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ee)||d(ee))?this._bodyArrayBuffer=M(ee):this._bodyText=ee=Object.prototype.toString.call(ee):this._bodyText="",this.headers.get("content-type")||(typeof ee=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var ee=D(this);if(ee)return ee;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?D(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var ee=D(this);if(ee)return ee;if(this._bodyBlob)return q(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(W(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(ee){var ie=ee.toUpperCase();return R.indexOf(ie)>-1?ie:ee}function V(ee,ie){ie=ie||{};var ye=ie.body;if(ee instanceof V){if(ee.bodyUsed)throw new TypeError("Already read");this.url=ee.url,this.credentials=ee.credentials,ie.headers||(this.headers=new L(ee.headers)),this.method=ee.method,this.mode=ee.mode,this.signal=ee.signal,!ye&&ee._bodyInit!=null&&(ye=ee._bodyInit,ee.bodyUsed=!0)}else this.url=String(ee);if(this.credentials=ie.credentials||this.credentials||"same-origin",(ie.headers||!this.headers)&&(this.headers=new L(ie.headers)),this.method=C(ie.method||this.method||"GET"),this.mode=ie.mode||this.mode||null,this.signal=ie.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ye)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ye)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(ee){var ie=new FormData;return ee.trim().split("&").forEach(function(ye){if(ye){var be=ye.split("="),he=be.shift().replace(/\+/g," "),ue=be.join("=").replace(/\+/g," ");ie.append(decodeURIComponent(he),decodeURIComponent(ue))}}),ie}function _(ee){var ie=new L,ye=ee.replace(/\r?\n[\t ]+/g," ");return ye.split(/\r?\n/).forEach(function(be){var he=be.split(":"),ue=he.shift().trim();if(ue){var oe=he.join(":").trim();ie.append(ue,oe)}}),ie}X.call(V.prototype);function Q(ee,ie){ie||(ie={}),this.type="default",this.status=ie.status===void 0?200:ie.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ie?ie.statusText:"OK",this.headers=new L(ie.headers),this.url=ie.url||"",this._initBody(ee)}X.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Q.error=function(){var ee=new Q(null,{status:0,statusText:""});return ee.type="error",ee};var Y=[301,302,303,307,308];Q.redirect=function(ee,ie){if(Y.indexOf(ie)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:ie,headers:{location:ee}})},a.DOMException=h.DOMException;try{new a.DOMException}catch(ee){a.DOMException=function(ie,ye){this.message=ie,this.name=ye;var be=Error(ie);this.stack=be.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function fe(ee,ie){return new Promise(function(ye,be){var he=new V(ee,ie);if(he.signal&&he.signal.aborted)return be(new a.DOMException("Aborted","AbortError"));var ue=new XMLHttpRequest;function oe(){ue.abort()}ue.onload=function(){var Fe={status:ue.status,statusText:ue.statusText,headers:_(ue.getAllResponseHeaders()||"")};Fe.url="responseURL"in ue?ue.responseURL:Fe.headers.get("X-Request-URL");var Le="response"in ue?ue.response:ue.responseText;ye(new Q(Le,Fe))},ue.onerror=function(){be(new TypeError("Network request failed"))},ue.ontimeout=function(){be(new TypeError("Network request failed"))},ue.onabort=function(){be(new a.DOMException("Aborted","AbortError"))},ue.open(he.method,he.url,!0),he.credentials==="include"?ue.withCredentials=!0:he.credentials==="omit"&&(ue.withCredentials=!1),"responseType"in ue&&c.blob&&(ue.responseType="blob"),he.headers.forEach(function(Fe,Le){ue.setRequestHeader(Le,Fe)}),he.signal&&(he.signal.addEventListener("abort",oe),ue.onreadystatechange=function(){ue.readyState===4&&he.signal.removeEventListener("abort",oe)}),ue.send(typeof he._bodyInit=="undefined"?null:he._bodyInit)})}return fe.polyfill=!0,h.fetch||(h.fetch=fe,h.Headers=L,h.Request=V,h.Response=Q),a.Headers=L,a.Request=V,a.Response=Q,a.fetch=fe,Object.defineProperty(a,"__esModule",{value:!0}),a}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var a=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=a.DOMException}return x.prototype=a,new x}();(function(x){var d=function(b){var S={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(ue){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(ue){return ue&&DataView.prototype.isPrototypeOf(ue)}if(S.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],D=ArrayBuffer.isView||function(ue){return ue&&L.indexOf(Object.prototype.toString.call(ue))>-1};function B(ue){if(typeof ue!="string"&&(ue=String(ue)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ue))throw new TypeError("Invalid character in header field name");return ue.toLowerCase()}function j(ue){return typeof ue!="string"&&(ue=String(ue)),ue}function q(ue){var oe={next:function(){var Fe=ue.shift();return{done:Fe===void 0,value:Fe}}};return S.iterable&&(oe[Symbol.iterator]=function(){return oe}),oe}function W(ue){this.map={},ue instanceof W?ue.forEach(function(oe,Fe){this.append(Fe,oe)},this):Array.isArray(ue)?ue.forEach(function(oe){this.append(oe[0],oe[1])},this):ue&&Object.getOwnPropertyNames(ue).forEach(function(oe){this.append(oe,ue[oe])},this)}W.prototype.append=function(ue,oe){ue=B(ue),oe=j(oe);var Fe=this.map[ue];this.map[ue]=Fe?Fe+", "+oe:oe},W.prototype.delete=function(ue){delete this.map[B(ue)]},W.prototype.get=function(ue){return ue=B(ue),this.has(ue)?this.map[ue]:null},W.prototype.has=function(ue){return this.map.hasOwnProperty(B(ue))},W.prototype.set=function(ue,oe){this.map[B(ue)]=j(oe)},W.prototype.forEach=function(ue,oe){for(var Fe in this.map)this.map.hasOwnProperty(Fe)&&ue.call(oe,this.map[Fe],Fe,this)},W.prototype.keys=function(){var ue=[];return this.forEach(function(oe,Fe){ue.push(Fe)}),q(ue)},W.prototype.values=function(){var ue=[];return this.forEach(function(oe){ue.push(oe)}),q(ue)},W.prototype.entries=function(){var ue=[];return this.forEach(function(oe,Fe){ue.push([Fe,oe])}),q(ue)},S.iterable&&(W.prototype[Symbol.iterator]=W.prototype.entries);function M(ue){if(ue.bodyUsed)return Promise.reject(new TypeError("Already read"));ue.bodyUsed=!0}function X(ue){return new Promise(function(oe,Fe){ue.onload=function(){oe(ue.result)},ue.onerror=function(){Fe(ue.error)}})}function R(ue){var oe=new FileReader,Fe=X(oe);return oe.readAsArrayBuffer(ue),Fe}function C(ue){var oe=new FileReader,Fe=X(oe);return oe.readAsText(ue),Fe}function V(ue){for(var oe=new Uint8Array(ue),Fe=new Array(oe.length),Le=0;Le<oe.length;Le++)Fe[Le]=String.fromCharCode(oe[Le]);return Fe.join("")}function J(ue){if(ue.slice)return ue.slice(0);var oe=new Uint8Array(ue.byteLength);return oe.set(new Uint8Array(ue)),oe.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(ue){this._bodyInit=ue,ue?typeof ue=="string"?this._bodyText=ue:S.blob&&Blob.prototype.isPrototypeOf(ue)?this._bodyBlob=ue:S.formData&&FormData.prototype.isPrototypeOf(ue)?this._bodyFormData=ue:S.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)?this._bodyText=ue.toString():S.arrayBuffer&&S.blob&&g(ue)?(this._bodyArrayBuffer=J(ue.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ue)||D(ue))?this._bodyArrayBuffer=J(ue):this._bodyText=ue=Object.prototype.toString.call(ue):this._bodyText="",this.headers.get("content-type")||(typeof ue=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):S.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S.blob&&(this.blob=function(){var ue=M(this);if(ue)return ue;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?M(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var ue=M(this);if(ue)return ue;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},S.formData&&(this.formData=function(){return this.text().then(ee)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Y(ue){var oe=ue.toUpperCase();return Q.indexOf(oe)>-1?oe:ue}function fe(ue,oe){oe=oe||{};var Fe=oe.body;if(ue instanceof fe){if(ue.bodyUsed)throw new TypeError("Already read");this.url=ue.url,this.credentials=ue.credentials,oe.headers||(this.headers=new W(ue.headers)),this.method=ue.method,this.mode=ue.mode,this.signal=ue.signal,!Fe&&ue._bodyInit!=null&&(Fe=ue._bodyInit,ue.bodyUsed=!0)}else this.url=String(ue);if(this.credentials=oe.credentials||this.credentials||"same-origin",(oe.headers||!this.headers)&&(this.headers=new W(oe.headers)),this.method=Y(oe.method||this.method||"GET"),this.mode=oe.mode||this.mode||null,this.signal=oe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Fe)}fe.prototype.clone=function(){return new fe(this,{body:this._bodyInit})};function ee(ue){var oe=new FormData;return ue.trim().split("&").forEach(function(Fe){if(Fe){var Le=Fe.split("="),Me=Le.shift().replace(/\+/g," "),Pe=Le.join("=").replace(/\+/g," ");oe.append(decodeURIComponent(Me),decodeURIComponent(Pe))}}),oe}function ie(ue){var oe=new W,Fe=ue.replace(/\r?\n[\t ]+/g," ");return Fe.split(/\r?\n/).forEach(function(Le){var Me=Le.split(":"),Pe=Me.shift().trim();if(Pe){var rt=Me.join(":").trim();oe.append(Pe,rt)}}),oe}_.call(fe.prototype);function ye(ue,oe){oe||(oe={}),this.type="default",this.status=oe.status===void 0?200:oe.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in oe?oe.statusText:"OK",this.headers=new W(oe.headers),this.url=oe.url||"",this._initBody(ue)}_.call(ye.prototype),ye.prototype.clone=function(){return new ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},ye.error=function(){var ue=new ye(null,{status:0,statusText:""});return ue.type="error",ue};var be=[301,302,303,307,308];ye.redirect=function(ue,oe){if(be.indexOf(oe)===-1)throw new RangeError("Invalid status code");return new ye(null,{status:oe,headers:{location:ue}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(ue){b.DOMException=function(oe,Fe){this.message=oe,this.name=Fe;var Le=Error(oe);this.stack=Le.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function he(ue,oe){return new Promise(function(Fe,Le){var Me=new fe(ue,oe);if(Me.signal&&Me.signal.aborted)return Le(new b.DOMException("Aborted","AbortError"));var Pe=new XMLHttpRequest;function rt(){Pe.abort()}Pe.onload=function(){var Ze={status:Pe.status,statusText:Pe.statusText,headers:ie(Pe.getAllResponseHeaders()||"")};Ze.url="responseURL"in Pe?Pe.responseURL:Ze.headers.get("X-Request-URL");var Xe="response"in Pe?Pe.response:Pe.responseText;Fe(new ye(Xe,Ze))},Pe.onerror=function(){Le(new TypeError("Network request failed"))},Pe.ontimeout=function(){Le(new TypeError("Network request failed"))},Pe.onabort=function(){Le(new b.DOMException("Aborted","AbortError"))},Pe.open(Me.method,Me.url,!0),Me.credentials==="include"?Pe.withCredentials=!0:Me.credentials==="omit"&&(Pe.withCredentials=!1),"responseType"in Pe&&S.blob&&(Pe.responseType="blob"),Me.headers.forEach(function(Ze,Xe){Pe.setRequestHeader(Xe,Ze)}),Me.signal&&(Me.signal.addEventListener("abort",rt),Pe.onreadystatechange=function(){Pe.readyState===4&&Me.signal.removeEventListener("abort",rt)}),Pe.send(typeof Me._bodyInit=="undefined"?null:Me._bodyInit)})}return he.polyfill=!0,x.fetch||(x.fetch=he,x.Headers=W,x.Request=fe,x.Response=ye),b.Headers=W,b.Request=fe,b.Response=ye,b.fetch=he,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,h.exports=I},17438:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>S});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=d()(v());b.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
47
+ `,""]);const S=b},58635:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>V});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=a(61667),S=a.n(b),g=new URL(a(17735),a.b),L=new URL(a(56089),a.b),D=new URL(a(46050),a.b),B=new URL(a(71090),a.b),j=new URL(a(96192),a.b),q=d()(v()),W=S()(g),M=S()(L),X=S()(D),R=S()(B),C=S()(j);q.push([h.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+W+")}.CodeMirror-lint-mark-error{background-image:url("+M+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+X+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+R+")}.CodeMirror-lint-marker-multiple{background-image:url("+C+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
48
+ `,""]);const V=q},45272:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>S});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=d()(v());b.push([h.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
49
+ `,""]);const S=b},40961:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>S});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=d()(v());b.push([h.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
50
+ `,""]);const S=b},61667:h=>{"use strict";h.exports=function(I,a){return a||(a={}),I&&(I=String(I.__esModule?I.default:I),/^['"].*['"]$/.test(I)&&(I=I.slice(1,-1)),a.hash&&(I+=a.hash),/["'() \t\n]|(%20)/.test(I)||a.needQuotes?'"'.concat(I.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):I)}},31312:(h,I,a)=>{"use strict";var c=a(48764).Buffer;/*!
51
+ * @description Recursive object extending
52
+ * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
53
+ * @license MIT
54
+ *
55
+ * The MIT License (MIT)
56
+ *
57
+ * Copyright (c) 2013-2018 Viacheslav Lotsmanov
58
+ *
59
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
60
+ * this software and associated documentation files (the "Software"), to deal in
61
+ * the Software without restriction, including without limitation the rights to
62
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
63
+ * the Software, and to permit persons to whom the Software is furnished to do so,
64
+ * subject to the following conditions:
65
+ *
66
+ * The above copyright notice and this permission notice shall be included in all
67
+ * copies or substantial portions of the Software.
68
+ *
69
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
70
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
71
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
72
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
73
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
74
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
75
+ */function v(g){return g instanceof c||g instanceof Date||g instanceof RegExp}function x(g){if(g instanceof c){var L=c.alloc?c.alloc(g.length):new c(g.length);return g.copy(L),L}else{if(g instanceof Date)return new Date(g.getTime());if(g instanceof RegExp)return new RegExp(g);throw new Error("Unexpected situation")}}function d(g){var L=[];return g.forEach(function(D,B){typeof D=="object"&&D!==null?Array.isArray(D)?L[B]=d(D):v(D)?L[B]=x(D):L[B]=S({},D):L[B]=D}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var S=h.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var g=arguments[0],L=Array.prototype.slice.call(arguments,1),D,B,j;return L.forEach(function(q){typeof q!="object"||q===null||Array.isArray(q)||Object.keys(q).forEach(function(W){if(B=b(g,W),D=b(q,W),D!==g)if(typeof D!="object"||D===null){g[W]=D;return}else if(Array.isArray(D)){g[W]=d(D);return}else if(v(D)){g[W]=x(D);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[W]=S({},D);return}else{g[W]=S(B,D);return}})}),g}},90999:(h,I,a)=>{"use strict";a.r(I),a.d(I,{Console:()=>cd});var c={};a.r(c),a.d(c,{JsonPatchError:()=>Pr,_areEquals:()=>Ka,applyOperation:()=>dr,applyPatch:()=>zn,applyReducer:()=>tc,deepClone:()=>ec,getValueByPointer:()=>Lr,validate:()=>yu,validator:()=>qi});var v={};a.r(v),a.d(v,{compare:()=>bu,generate:()=>Bo,observe:()=>xu,unobserve:()=>tl});var x={};a.r(x),a.d(x,{cookie:()=>yl,header:()=>Qu,path:()=>Xu,query:()=>Pc});var d=a(67294);function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function S(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function g(t,r,n){return r&&S(t.prototype,r),n&&S(t,n),t}function L(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function D(){return D=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},D.apply(this,arguments)}function B(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,o)}return n}function j(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?B(Object(n),!0).forEach(function(o){L(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function q(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&M(t,r)}function W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},W(t)}function M(t,r){return M=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},M(t,r)}function X(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function R(t,r){if(t==null)return{};var n={},o=Object.keys(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(r.indexOf(s)>=0)&&(n[s]=t[s]);return n}function C(t,r){if(t==null)return{};var n=R(t,r),o,s;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(s=0;s<p.length;s++)o=p[s],!(r.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(n[o]=t[o]))}return n}function V(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function _(t){var r=X();return function(){var o=W(t),s;if(r){var p=W(this).constructor;s=Reflect.construct(o,arguments,p)}else s=o.apply(this,arguments);return J(this,s)}}function Q(t,r){return ee(t)||ye(t,r)||be(t,r)||oe()}function Y(t){return fe(t)||ie(t)||be(t)||ue()}function fe(t){if(Array.isArray(t))return he(t)}function ee(t){if(Array.isArray(t))return t}function ie(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function ye(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var n=[],o=!0,s=!1,p=void 0;try{for(var y=t[Symbol.iterator](),E;!(o=(E=y.next()).done)&&(n.push(E.value),!(r&&n.length===r));o=!0);}catch(w){s=!0,p=w}finally{try{!o&&y.return!=null&&y.return()}finally{if(s)throw p}}return n}}function be(t,r){if(!!t){if(typeof t=="string")return he(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return he(t,r)}}function he(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,o=new Array(r);n<r;n++)o[n]=t[n];return o}function ue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
76
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
77
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(t,r){var n;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(n=be(t))||r&&t&&typeof t.length=="number"){n&&(t=n);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
78
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,E;return{s:function(){n=t[Symbol.iterator]()},n:function(){var w=n.next();return p=w.done,w},e:function(w){y=!0,E=w},f:function(){try{!p&&n.return!=null&&n.return()}finally{if(y)throw E}}}}function Le(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Me=Le(function(t){function r(k,G){for(var ne=0,re=0;re<k.length;re++)ne=(ne<<5)-ne+k.charCodeAt(re),ne|=0;return G[Math.abs(ne)%G.length]}function n(k,G){var ne=G.namespace;if(G.useColors){var re=G.color,ce="[3"+(re<8?re:"8;5;"+re),xe=" ".concat(ce,";1m").concat(ne," ");k[0]=xe+k[0].split(`
79
+ `).join(`
80
+ `+xe)}else k[0]=ne+" "+k[0]}function o(k,G){if(k[0]=(G.useColors?"%c":"")+G.namespace,!!G.useColors){var ne="color: "+G.color,re=0,ce=0;k[0].replace(/%[a-zA-Z%]/g,function(xe){xe!=="%%"&&(re++,xe==="%c"&&(ce=re))}),k.splice(ce,0,ne)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function p(){var k;try{k=localStorage.getItem("debug")}catch(G){}return!k&&typeof process!="undefined"&&"env"in process&&(k={}.DEBUG),{namespaces:k||"",colors:s,useColors:!0,formatArgs:o}}function y(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:n}}function E(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,G=arguments.length>1?arguments[1]:void 0;return function(){for(var ne=arguments.length,re=new Array(ne),ce=0;ce<ne;ce++)re[ce]=arguments[ce];k&&re.unshift(k);var xe=G.namespaces.split(",").map(function(Te){return Te[Te.length-1]==="*"?new RegExp("^"+Te.slice(0,Te.length-1)+".*$"):new RegExp("^"+Te+"$")}),ge=xe.some(function(Te){return Te.test(k)}),Ee={color:r(k,G.colors),namespace:k,useColors:G.useColors};if(!1)var we}}function w(k){return E(k,y())}function A(k){return E(k,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=A:t.exports=w}),Pe=Me("informed:ObjMap "),rt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Ze=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,y){return p!=null?p[y]:p},r);return s===void 0||s===r?o:s},Xe=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ft=function(r){return r.replace(Xe(r),"").replace(/\./,"")},ht=function(r,n){var o=Xe(n),s=ft(n),p=o?Ze(r,o):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},bt=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,E){return y===E.length-1?(s[p]=o,s[p]):s[p]===void 0?(Number.isInteger(+E[y+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+E[y+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},nt=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=!1;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,E){return s===void 0?s:(y===E.length-1&&(delete s[p],o=!0),s[p])},r),o},ut=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,E){return s===void 0?s:(y===E.length-1&&Array.isArray(s)&&(o=s.splice(p,1)),s[p])},r),o},yt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(r);return n.map(function(o){return r[o]})},mt=function(r){var n=rt(r);return Number.isInteger(+n[n.length-1])},pt=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(n){return yt(n).length===0}},{key:"get",value:function(n,o){var s=Ze(n,o);return s}},{key:"has",value:function(n,o){return ht(n,o)}},{key:"set",value:function(n,o,s){if(s!==void 0)Pe("SETTING",o,s),bt(n,o,s);else if(mt(o)&&t.get(n,o)!==void 0){Pe("Special case SETTING",o,"to undefined"),bt(n,o,void 0);var p=rt(o);p=p.slice(0,p.length-1),Mt(n,p)}else!mt(o)&&t.get(n,o)!==void 0&&(Pe("Special case REMOVING",o,"from object completley"),t.delete(n,o))}},{key:"delete",value:function(n,o){Pe("DELETE",o),mt(o)?(Pe("ARRAY",o),this.pullOut(n,o)):nt(n,o);var s=rt(o);s=s.slice(0,s.length-1),Mt(n,s)}},{key:"pullOut",value:function(n,o){var s=rt(o),p=s[s.length-1];s=s.slice(0,s.length-1),Pe("Pulling out:",s,"index",p);var y=Ze(n,s);Pe("Array",y),Array.isArray(y)&&ut(y,p),Mt(n,s)}}]),t}();function Mt(t,r){if(r.length!==0){var n=Ze(t,r);(Array.isArray(n)?n.every(function(o){return o==null}):JSON.stringify(n)==="{}")&&nt(t,r),Mt(t,r.slice(0,r.length-1))}}var kt=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),Et=d.createContext({}),Ht=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),jt=d.createContext(),Vt=d.createContext(),wt=d.createContext(),Dt=d.createContext(),ve=d.createContext(),z=d.createContext(),$=d.createContext(),Se=d.createContext();function Ie(){var t=(0,d.useContext)(Ht);return t}function Ge(t){var r=(0,d.useRef)(),n=(0,d.useRef)(!0),o=(0,d.useState)(t),s=Q(o,2),p=s[0],y=s[1];r.current=p;var E=function(k){r.current=k,n.current&&y(k)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){n.current=!1}},[]),[p,E,w]}var Ke=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},P=function(r){var n={};if(r.inner){if(r.inner.length===0){pt.set(n,r.path,r.message);return}var o=Fe(r.inner),s;try{for(o.s();!(s=o.n()).done;){var p=s.value;pt.get(n,p.path)||pt.set(n,p.path,p.message)}}catch(y){o.e(y)}finally{o.f()}}return n},Re=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(s){var o=P(s);return o}},K=function(r){if(r.inner){if(r.inner.length===0)return;var n=r.inner[0];return n.message}},T=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(o){return K(o)}},O=function(r,n){r(n);var o={};return r.errors&&r.errors.forEach(function(s){var p=s.message,y=s.dataPath,E=s.keyword,w=s.params,A=y;E==="required"&&(A="".concat(A,".").concat(w.missingProperty)),A=A.replace(".",""),pt.set(o,A,p)}),o},se=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=Math.random()*16|0,o=r=="x"?n:n&3|8;return o.toString(16)})},N=function(r,n){var o;return function(){for(var p=arguments.length,y=new Array(p),E=0;E<p;E++)y[E]=arguments[E];var w=function(){clearTimeout(o),r.apply(void 0,y)};clearTimeout(o),o=setTimeout(w,n)}},te=function(r,n,o){var s=n["ui:control"],p=n["informed:props"],y=n["input:props"],E=n["ui:before"],w=n["ui:after"],A=n.oneOf,k=n.items,G=n.enum,ne=n.title,re=n.minimum,ce=n.maximum,xe=n.minLength,ge=n.maxLength,Ee=n.pattern,we=n.type,Te=n.properties,$e=se();y&&y.id&&($e=y.id);var je={componentType:s,field:o?"".concat(o,".").concat(r):r,type:we,uiBefore:E,uiAfter:w,properties:we==="object"?Te:void 0,items:we==="array"?k:void 0,props:j(j({label:ne,id:$e,min:re,max:ce,minLength:xe,maxLength:ge,pattern:Ee},p),y)};if(A){var He=n.oneOf.map(function(We){var Je=We["input:props"],ze=Je===void 0?{}:Je;return j({value:We.const,label:We.title},ze)});je.props.options=He}if(G){var Ne=n.enum.map(function(We){return{value:We,label:We}});je.props.options=Ne}if(k&&k.oneOf){var Ve=k.oneOf.map(function(We){var Je=We["input:props"],ze=Je===void 0?{}:Je;return j({value:We.const,label:We.title},ze)});je.props.options=Ve}return je},de=function(r,n,o){if(!r||n)return[];var s=r.properties,p=s===void 0?{}:s,y=r.allOf,E=r.propertyOrder,w=E===void 0?[]:E;if(Object.keys(p).length>0){var A=Object.keys(p).sort(function(k,G){var ne=w.indexOf(k),re=w.indexOf(G);return(ne>-1?ne:w.length+1)-(re>-1?re:w.length+1)}).map(function(k){var G=p[k],ne=te(k,G,o);return ne});return y&&A.push({componentType:"conditionals",allOf:y}),A}return[]},ae=function(r){var n=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return n="properties.".concat(n),n},pe=function(r,n){if(typeof r=="string")return r.split("").map(function(o){return o==="#"?/\d/:o==="*"?/[\w]/:o});if(typeof r=="function")return r(n);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Ae=function(r,n){for(var o=0,s=-1,p=!0;p&&o<r.length;)r[o]==n[o]?s=o:p=!1,o=o+1;return s},Be=function(r,n){if(!r)return{val:r,offset:0};var o="".concat(r),s=pe(n,o),p=s.findIndex(function(ge){return typeof ge!="string"}),y=s.length-Y(s).reverse().findIndex(function(ge){return typeof ge!="string"}),E=[],w=o.split(""),A=0,k=0,G=Ae(s.slice(0,p),w.slice(0,p));G>-1&&(A=G+1,E=E.concat(s.slice(0,G+1)),k=G+1),G<0&&(E=E.concat(s.slice(0,p)),k=p);for(var ne=k;ne<s.length;ne++){var re=s[ne];if(A!=w.length){var ce=w[A];if(typeof re=="function")E.push(re(ce)),A=A+1;else{var xe=typeof re=="string"?re===ce:re.test(ce);xe&&typeof re=="string"?(E.push(re),A=A+1):!xe&&typeof re=="string"?A!=w.length&&E.push(re):xe&&typeof re!="string"?(E.push(ce),A=A+1):!xe&&typeof re!="string"&&(A=A+1,ne=ne-1)}}else if(typeof re=="string"&&ne>=y)E.push(re);else break}return{value:E.join(""),offset:o?E.length-o.length:0}},Ue=function(r,n){var o,s,p=new Intl.NumberFormat(r,n),y=new Intl.NumberFormat(r),E=(o=(s=y.formatToParts(.1).find(function(ge){var Ee=ge.type;return Ee==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:".";function w(ge,Ee){return ge instanceof RegExp&&Ee instanceof RegExp&&ge.source===Ee.source&&ge.global===Ee.global&&ge.ignoreCase===Ee.ignoreCase&&ge.multiline===Ee.multiline}function A(ge,Ee){for(var we=ge.length;we--;)if(Ee(ge[we]))return we;return-1}function k(ge,Ee,we){var Te=Y(ge);return Array.isArray(we)?Te.splice.apply(Te,[Ee,0].concat(Y(we))):Te.splice(Ee,0,we),Te}function G(ge){return"".concat(ge).replace(/\D/g,"")}function ne(ge){return"".concat(ge).split(E).map(function(Ee){return G(Ee)}).join(".")}function re(ge){if(typeof ge=="number")return ge;var Ee=parseFloat(ne(ge));return Number.isNaN(Ee)?void 0:Ee}function ce(ge){var Ee=ne(ge),we="".concat(Ee).split(".")[1],Te=p.formatToParts(Number(Ee));we==="0"&&Te.push({type:"decimal",value:E},{type:"fraction",value:we});var $e=Te.reduce(function(Ne,Ve){var We=Ve.type,Je=Ve.value;return["decimal","fraction"].includes(We)&&we==null?Ne:["integer","fraction"].includes(We)?[].concat(Y(Ne),Y(Je.split("").filter(function(ze,et){return We==="fraction"?et<we.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Y(Ne),Y(Je.split(""))):[].concat(Y(Ne),[Je])},[]),je=A($e,function(Ne){return w(Ne,/\d/)});$e.indexOf(E)===-1&&"".concat(ge).indexOf(E)!==-1&&($e=k($e,je+1,[E,"[]"]),je+=2);var He=$e.slice(je+1).join("");return $e=[].concat(Y($e.slice(0,je+1)),[He]),$e}var xe=function(Ee){if(Ee!=null)return re(Ee)};return{formatter:ce,parser:xe}},Qe=Object.freeze({__proto__:null,getChildDisplayName:Ke,yupToFormErrors:P,validateYupSchema:Re,yupToFormError:K,validateYupField:T,validateAjvSchema:O,uuidv4:se,debounce:N,computeFieldFromProperty:te,computeFieldsFromSchema:de,getSchemaPathFromJsonPath:ae,informedFormat:Be,createIntlNumberFormatter:Ue}),vt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,At=function(r){var n=r.value,o=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,y=Ge(0),E=Q(y,3),w=E[0],A=E[1],k=E[2],G=Ge(0),ne=Q(G,3),re=ne[0],ce=ne[1],xe=ne[2];return vt(function(){if(o.current!=null&&k()){var ge=k()+xe();xe()!=0&&p?o.current.setSelectionRange(ge+1,ge+1):p&&o.current.setSelectionRange(ge,ge)}},[n]),{setCursorOffset:ce,setCursor:A,cursor:w,getCursor:k,cursorOffset:re}},Bt=function(r,n){var o=(0,d.useRef)(!0),s=o.current;(0,d.useEffect)(function(){if(s)o.current=!1;else return r()},n)},Pt=Me("informed:useField "),dn=function(r,n,o,s,p){if(r!=null){if(p)return p(r);if(n)return n(r);if(o&&!s){var y=Be(r,o);return y.value}return r}},Br=function(r,n,o,s){if(n&&o)return n(r);if(s){var p=Be(r,s);return p.value}return r},Cr=function(r,n,o){var s=o.required;if(r||n)return function(p,y){if(n)return T(n,p);if(r)return r(p,y)};if(s)return function(p){return pn(p,s)}},bi=function(r){var n=r.fieldType,o=r.setValue,s=r.onChange,p=r.multiple,y=r.ref,E=function(A){return o(A)};return(n==="text"||n==="textArea"||n==="number")&&(E=function(A){return o(A.target.value,A)}),n==="select"&&(E=function(){var A=Array.from(y.current).filter(function(k){return k.selected}).map(function(k){return k.value});o(p?A:A[0]||"")}),n==="checkbox"&&(E=function(A){o(A.target.checked),s&&s(A)}),function(w){E(w)}},Gr=function(r){var n=r.setTouched,o=r.onBlur;return function(s){n(!0),o&&o(s)}},ji=function(r){var n=r.fieldType,o=r.maskedValue,s=r.multiple,p=r.value;switch(n){case"text":case"number":return!o&&o!==0?"":o;case"textArea":return o||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},Nn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},pn=function(r,n){if(n&&(r==null||r===""))return typeof n=="string"?n:"This field is required"};function On(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=t.field,o=t.validate,s=t.asyncValidate,p=t.validationSchema,y=t.mask,E=t.maskWithCursorOffset,w=t.format,A=t.parse,k=t.formatter,G=t.parser,ne=t.initialValue,re=t.validateOnChange,ce=t.validateOnBlur,xe=t.validateOnMount,ge=t.asyncValidateOnBlur,Ee=t.maskOnBlur,we=t.allowEmptyString,Te=t.onValueChange,$e=t.notify,je=t.keepState,He=t.maintainCursor,Ne=t.debug,Ve=t.shadow,We=t.step,Je=t.fieldType,ze=t.multiple,et=t.onChange,St=t.onBlur,Nt=t.formController,zt=t.relevant,or=t.required,Mr=t.keepStateIfRelevant,Er=t.initialize,Qr=t.formatterDependencies,wr=Qr===void 0?[]:Qr,Nr=C(t,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),wn=(0,d.useState)(se()),Yt=Q(wn,1),Rt=Yt[0],Ut=(0,d.useContext)(kt),sr=(0,d.useContext)(Se),an=sr||Mr,yr=Ie(),gs=(0,d.useRef)(),Ll=(0,d.useRef)(!0),go=(0,d.useRef)(),Bi=(0,d.useRef)(!1),Dl=function(){return!Bi.current},Pf=function(){return Bi.current};Nt&&(Ut=Nt.updater,yr=Nt.getFormApi());var xi=Cr(o,p,{required:or}),Nl=(0,d.useState)(function(){return Ut.getInitialValue(n)}),Zy=Q(Nl,1),_y=Zy[0],If=Ut.getSavedValue(n),Ff,xh;(je||an)&&If?(Pt("Setting field ".concat(Od,"'s kept state"),If),Ff=If.value,xh=If.touched,yr.removeSavedState(Od)):ne!=null?Ff=ne:Ff=_y;var qy=Ge(dn(Ff,y,k,G,Er)),dd=Q(qy,3),Bl=dd[0],pd=dd[1],em=dd[2],tm=Ge(xe?xi(Bl):void 0),hd=Q(tm,3),bh=hd[0],wh=hd[1],rm=hd[2],nm=Ge(xh),vd=Q(nm,3),Sh=vd[0],im=vd[1],Ah=vd[2],am=(0,d.useState)(function(){return Br(Bl,w,A,k)}),Eh=Q(am,2),gd=Eh[0],yd=Eh[1],Ch=(0,d.useRef)();Ch.current=gd;var Oh=(0,d.useRef)(ne),yo=(0,d.useRef)(n),Th=(0,d.useRef)();Oh.current=ne,yo.current=n;var om=(0,d.useRef)(null),Ui=d.useMemo(function(){return r||om},[]),md=At({value:Bl,inputRef:Ui,maintainCursor:!!He}),xd=md.getCursor,sm=md.setCursor,bd=md.setCursorOffset,lm=function(){return!0},wd=function(lr){var on=zt||lm,Ln=yr.getFullField(yo.current)||yo.current,Jt={path:Ln,parentPath:Ln.replace(/(.*)[.[].*/,"$1"),get:function(Dn,Vl){return pt.get(Dn,Vl)}};return sr&&sr.relevant?on(lr,Jt)&&sr.relevant(lr,Jt):on(lr,Jt)},um=Ge(wd(yr.getValues())),Sd=Q(um,3),kf=Sd[0],fm=Sd[1],Ph=Sd[2],cm=function(lr){return sr&&sr.relevant?sr.relevant(lr):!0},dm=function(){var lr=wd(yr.getValues()),on=Ph();return lr!=on&&fm(lr),lr};(0,d.useEffect)(function(){!kf&&!je&&gs.current.reset()},[kf]);var ii=function(){return Ve?yr.getDerrivedValue(n):em()},Ul=function(lr){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ln=on.preventUpdate;We&&yr.getStep()<We?(Pt("Setting ".concat(n,"'s error to undefined as we are not at that step")),wh(void 0),Ut.setError(Rt,void 0,!Ln)):(Pt("Setting ".concat(n,"'s error to ").concat(lr)),wh(lr),Ut.setError(Rt,lr,!Ln))},Ad=function(lr,on){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=lr;Bi.current=!0,Pt("Setting ".concat(n," to ").concat(Jt)),Er&&(Jt=Er(Jt));var mo=yr.getOptions(),Dn=Jt;if(Jt===""&&!we&&!Ln.allowEmptyString&&!mo.allowEmptyStrings&&(Jt=void 0),(t.type==="number"||Je==="number")&&Jt!==void 0&&(Jt=+Jt),on&&on.target&&on.target.selectionStart&&sm(on.target.selectionStart),y&&!Ee&&(Dn=y(Jt,xd()),Jt=y(Jt,xd())),E&&!Ee){var Vl=E(Jt,xd());Dn=Vl.value,Jt=Vl.value,bd(Vl.offset)}if(w&&A&&(Jt=A(Jt),Dn=w(Jt)),k){var Ih=Be(Jt,k);bd(Ih.offset),Dn=Ih.value,Jt=Dn}G&&(Jt=Jt!=null?G(Jt):Jt),xi&&re&&!Ln.initial&&(Pt("Validating after change ".concat(n," ").concat(Jt)),Ul(xi(Jt,yr.getValues()))),pd(Jt),yd(Dn),Te&&Te(Jt),Ut.setValue(Rt,Jt,!Ln.preventUpdate)};Bt(function(){gs.current.setValue(Ch.current)},Y(wr));var Ed=function(lr,on){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=Ln.preventUpdate;if(Pt("Field ".concat(n," has been touched")),xi&&ce&&!on&&lr&&(Pt("Validating after blur ".concat(n," ").concat(ii())),Ul(xi(ii(),yr.getValues()))),s&&ge&&!on&&lr&&(Pt("Validating async after blur ".concat(n," ").concat(ii())),s(ii(),yr.getValues())),y&&Ee){var mo=y(ii());pd(mo),yd(mo),Te&&Te(mo),Ut.setValue(Rt,mo,!Jt)}if(E&&Ee){var Dn=E(ii());bd(Dn.offset),pd(Dn.value),yd(Dn.value),Te&&Te(Dn.value),Ut.setValue(Rt,Dn.value,!Jt)}im(lr),Ut.setTouched(Rt,lr,!Jt)},pm=function(){var lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},on=lr.preventUpdate,Ln=dn(Oh.current||Ut.getInitialValue(yo.current),y,k,G,Er);Ad(Ln,null,{initial:!0,preventUpdate:on}),Ul(xe?xi(Ln):void 0,{preventUpdate:on}),Ed(void 0,!0,{preventUpdate:on}),Bi.current=!1},hm=function(lr){xi&&(Pt("Field validating ".concat(n," ").concat(ii())),Ul(xi(ii(),lr||yr.getValues())))},vm=function(lr){s&&(Pt("Field async validating ".concat(n," ").concat(ii())),s(ii(),lr||yr.getValues()))},Cd={setValue:Ad,setTouched:Ed,setError:Ul,reset:pm,validate:hm,asyncValidate:vm,getValue:ii,getTouched:Ah,getError:rm,getIsRelevant:Ph,getDirty:Pf,getPristine:Dl,getFieldState:function(){return{value:ii(),touched:Ah(),dirty:Pf(),pristine:Dl()}},relevant:wd,multistepRelevant:cm,checkRelevant:dm};gs.current=Cd;var jl={value:Bl,error:bh,touched:Sh,maskedValue:gd,isRelevant:kf,dirty:Bi.current,pristine:!Bi.current};Ve&&(jl={error:bh,touched:Sh}),Pt("Render",yr.getFullField(n),jl),vt(function(){var qr=yr.getFullField(yo.current);return Pt("Register",Rt,yo.current),go.current={field:qr,fieldId:Rt,fieldApi:Cd,fieldState:jl,notify:$e,keepState:je,inMultistep:an,shadow:Ve},Ut.register(Rt,go.current),function(){var lr=yr.getFullField(yo.current);Pt("Deregister",Rt,lr),Ut.deregister(Rt)}},[]),(0,d.useEffect)(function(){var qr=yr.getFullField(n);return Ll.current?Ll.current=!1:(Pt("Update",n,an),go.current.field=qr,Ut.update(Rt,go.current,Th.current)),function(){Th.current=qr}},[n]),vt(function(){Ne&&Ui&&(Ui.current.style.border="5px solid orange",setTimeout(function(){Ui.current.style.borderWidth="2px",Ui.current.style.borderStyle="inset",Ui.current.style.borderColor="initial",Ui.current.style.borderImage="initial"},500))});var gm=[].concat(Y(Object.values(jl)),Y(Object.values(t)),Y(Object.values(Nr))),ym=function(lr){return(0,d.useMemo)(function(){return kf?lr:null},Y(gm))},Od=n,mm=bi({fieldType:Je,setValue:Ad,onChange:et,multiple:ze,ref:Ui}),xm=Gr({setTouched:Ed,onBlur:St}),bm=ji({fieldType:Je,maskedValue:gd,multiple:ze,value:Bl}),wm=Nn(Je);return{fieldState:jl,fieldApi:Cd,render:ym,ref:Ui,userProps:j(j({},Nr),{},{multiple:ze,onChange:et,onBlur:St,id:Nr.id||Rt}),informed:j({name:Od,multiple:ze,onChange:mm,onBlur:xm,value:bm,ref:Ui,type:wm,id:Nr.id||Rt},Nr)}}var $r=function(r){var n=d.forwardRef(function(o,s){var p=On(o,s),y=p.fieldState,E=p.fieldApi,w=p.render,A=p.ref,k=p.userProps;return w(d.createElement(r,D({fieldApi:E,fieldState:y,field:o.field,forwardedRef:A,debug:o.debug,type:o.type},k)))});return n.displayName="asField(".concat(Ke(r),")"),n},wi=Me("informed:Text "),Si=function(r){var n=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,y=n.setValue,E=n.setTouched,w=s.onChange,A=s.onBlur,k=s.field,G=s.initialValue,ne=s.forwardedRef,re=s.debug,ce=s.label,xe=s.title,ge=s.id,Ee=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return wi("Render",k),vt(function(){re&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ce?d.createElement("label",{htmlFor:ge}," ",ce," "):null,d.createElement("input",D({},Ee,{id:ge,name:k,ref:ne,value:!p&&p!==0?"":p,onChange:function(Te){y(Te.target.value,Te),w&&w(Te)},onBlur:function(Te){E(!0),A&&A(Te)}})))},en=$r(Si),hn=function(r){var n=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,y=n.setValue,E=n.setTouched,w=s.onChange,A=s.onBlur,k=s.field,G=s.initialValue,ne=s.forwardedRef,re=s.debug,ce=s.label,xe=s.id,ge=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return vt(function(){re&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ce?d.createElement("label",{htmlFor:xe}," ",ce," "):null,d.createElement("textarea",D({},ge,{id:xe,name:k,ref:ne,value:p||"",onChange:function(we){y(we.target.value,we),w&&w(we)},onBlur:function(we){E(!0),A&&A(we)}})))},Bn=$r(hn),Un=Me("informed:Select "),vn=function(r){var n=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,y=n.setTouched,E=s.onChange,w=s.onBlur,A=s.field,k=s.initialValue,G=s.options,ne=s.children,re=s.forwardedRef,ce=s.debug,xe=s.multiple,ge=s.label,Ee=s.id,we=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Te=(0,d.useRef)(),$e=function(He){var Ne=Array.from((re||Te).current).filter(function(Ve){return Ve.selected}).map(function(Ve){return Ve.value});n.setValue(xe?Ne:Ne[0]||""),E&&He&&E(He)};return vt(function(){ce&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),Un("Render",A,p),d.createElement(d.Fragment,null,ge?d.createElement("label",{htmlFor:Ee}," ",ge," "):null,d.createElement("select",D({},we,{id:Ee,multiple:xe,name:A,ref:re||Te,value:p||(xe?[]:""),onChange:$e,onBlur:function(He){y(!0),w&&w(He)}}),G?G.map(function(je){return d.createElement("option",{key:je.value,value:je.value,disabled:je.disabled},je.label)}):ne))},Xn=$r(vn),Ai=function(r){var n=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,y=n.setValue,E=n.setTouched,w=s.onChange,A=s.onBlur,k=s.field,G=s.initialValue,ne=s.debug,re=s.forwardedRef,ce=s.id,xe=s.label,ge=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,xe?d.createElement("label",{htmlFor:ce}," ",xe," "):null,d.createElement("input",D({},ge,{id:ce,name:k,ref:re,checked:!!p,onChange:function(we){y(we.target.checked),w&&w(we)},onBlur:function(we){E(!0),A&&A(we)},type:"checkbox"})))},Ur=$r(Ai),Kr=function(r){return d.forwardRef(function(n,o){return d.createElement(jt.Consumer,null,function(s){var p=s.radioGroupApi,y=s.radioGroupState;return d.createElement(r,D({radioGroupApi:p,radioGroupState:y,ref:o},n))})})},Qn=function(r){var n=r.radioGroupApi,o=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=o.value,y=n.setValue,E=n.setTouched,w=n.onChange,A=n.onBlur,k=s.value,G=s.onChange,ne=s.onBlur,re=s.field,ce=s.initialValue,xe=s.forwardedRef,ge=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",D({},ge,{name:re,ref:xe,value:k,checked:p===k,onChange:function(we){!we.target.checked||(y(k),G&&G(we),w&&w(we))},onBlur:function(we){E(!0),ne&&ne(we),A&&A(we)},type:"radio"}))},fr=Kr(Qn),Ot=function(t){q(n,t);var r=_(n);function n(){return b(this,n),r.apply(this,arguments)}return g(n,[{key:"render",value:function(){var s=this.props,p=s.options,y=s.children;return d.createElement(jt.Provider,{value:this.groupContext},p?p.map(function(E){return d.createElement("label",{key:E.value},E.label," ",d.createElement(fr,{value:E.value}))}):y)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),n}(d.Component),ai=$r(Ot);function Ei(){return(0,d.useContext)(wt)}var Sn=function(){var r=Ei(),n=r.add;return d.createElement("button",{onClick:function(){n()},type:"button"},"Add")};function Zt(){return(0,d.useContext)(Dt)}var jn=function(){var r=Zt(),n=r.remove;return d.createElement("button",{onClick:function(){n()},type:"button"},"Remove")},Zn=Me("informed:useArrayField "),fa=function(r){var n=r.field,o=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,y=C(r,["field","initialValue","validate","arrayFieldApiRef"]),E=Ie(),w=(0,d.useState)(new Map),A=Q(w,1),k=A[0],G=(0,d.useContext)(kt),ne=E.getFullField(n),re=G.getInitialValue(n)||o||[],ce=E.getSavedValue(ne)&&E.getSavedValue(ne).value,xe=Ge(ce||re),ge=Q(xe,3),Ee=ge[0],we=ge[1],Te=ge[2],$e=Ee?Ee.map(function(){return se()}):[],je=Ge($e),He=Q(je,3),Ne=He[0],Ve=He[1],We=He[2],Je=(0,d.useMemo)(function(){return function(Yt,Rt){var Ut=We()==null?0:We().length;return s?s(Yt,Ut,Rt):void 0}}),ze=On(j({field:n,validate:s?Je:void 0,shadow:!0},y)),et=ze.fieldApi;vt(function(){var Yt=function(Ut){Ut!==ne&&(Zn("".concat(ne," changed")),RegExp("".concat(ne,"\\[[0-9]+\\]")).test(Ut)&&et.validate())};return E.emitter.on("value",Yt),function(){E.emitter.removeListener("value",Yt)}},[n]);var St=function(Rt){Zn("EXPECTING REMOVAL OF","".concat(n,"[").concat(Rt,"] and ").concat(n,"[").concat(Ne.length-1,"]")),G.expectRemoval("".concat(n,"[").concat(Rt,"]")),G.expectRemoval("".concat(n,"[").concat(Ne.length-1,"]"));var Ut=Ne.slice(0,Rt).concat(Ne.slice(Rt+1,Ne.length));Ve(Ut);var sr=Te(),an=sr.slice(0,Rt).concat(sr.slice(Rt+1,sr.length));we(an)},Nt=function(Rt,Ut){Zn("Swapping","".concat(n,"[").concat(Rt,"] and ").concat(n,"[").concat(Ut,"]"));var sr=Y(Ne);Ne[Rt]&&Ne[Ut]?(sr[Rt]=Ne[Ut],sr[Ut]=Ne[Rt]):console.warn("Attempted to swap ".concat(Rt," with ").concat(Ut," but one of them does not exist :(")),Ve(sr)},zt=function(){Ne.push(se()),Ve(Y(Ne))},or=function(Rt){Ne.push(se()),Ve(Y(Ne));var Ut=Y(Te());Ut[Ne.length-1]=Rt,we(Ut)},Mr=function(){var Rt=G.getInitialValue(n)||o||[];we(Rt);var Ut=Rt?Rt.map(function(){return se()}):[];Ve(Ut)},Er=Ne.map(function(Yt,Rt){var Ut={remove:function(){return St(Rt)}},sr={initialValue:Ee&&Ee[Rt],key:Yt,field:"".concat(n,"[").concat(Rt,"]"),index:Rt};return j(j({arrayFieldItemApi:Ut,arrayFieldItemState:sr},Ut),sr)}),Qr={add:zt,swap:Nt,addWithInitialValue:or,reset:Mr};p&&(p.current=Qr);var wr={fields:Er,field:n},Nr=j(j({},G),{},{register:function(Rt,Ut){k.set(Rt,Ut);for(var sr=arguments.length,an=new Array(sr>2?sr-2:0),yr=2;yr<sr;yr++)an[yr-2]=arguments[yr];G.register.apply(G,[Rt,Ut].concat(an))},deregister:function(Rt){k.delete(Rt);for(var Ut=arguments.length,sr=new Array(Ut>1?Ut-1:0),an=1;an<Ut;an++)sr[an-1]=arguments[an];G.deregister.apply(G,[Rt].concat(sr))},getInitialValue:function(Rt){if(RegExp("".concat(ne,"\\[[0-9]+\\]")).test(Rt)){var Ut=Rt.replace(n,""),sr=pt.get(Te(),Ut);return Zn("Resetting ".concat(Ut," to ").concat(sr)),sr}return G.getInitialValue(Rt)}}),wn=function(Rt){return d.createElement(kt.Provider,{value:Nr},d.createElement(wt.Provider,{value:Qr},d.createElement(Vt.Provider,{value:wr},Rt)))};return{render:wn,add:zt,swap:Nt,addWithInitialValue:or,fields:Er,arrayFieldState:wr,arrayFieldApi:Qr,field:n}},it=function(r,n){return j(j({},n),{},{getValue:function(s){return n.getValue("".concat(r,".").concat(s))},getTouched:function(s){return n.getTouched("".concat(r,".").concat(s))},getError:function(s){return n.getError("".concat(r,".").concat(s))},setValue:function(s,p){return n.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return n.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return n.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return n.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return n.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(n.getFullField(r),".").concat(s)}})};function Lt(t){var r=Ie(),n=(0,d.useMemo)(function(){return it(t,r)},[t]);return n}function oi(){var t=(0,d.useContext)(Et);return t}var le=function(r){var n=r.when,o=r.children,s=oi(),p=n(s);return p?o:null},Oe=function(r){var n=r.relevant,o=r.field,s=C(r,["relevant","field"]),p=Ie();if(n){var y=p.getFullField(o),E={path:y,parentPath:y.replace(/(.*)[.[].*/,"$1"),get:function(k,G){return pt.get(k,G)}},w=function(k){var G=k.values;return n(G,E)};return d.createElement(le,{when:w},d.createElement(qe,D({field:o},s)))}else return d.createElement(qe,D({field:o},s))},qe=function(r){var n=r.children,o=C(r,["children"]),s=fa(o),p=s.render,y=s.arrayFieldState,E=s.arrayFieldApi,w=s.field;return p(typeof n=="function"?n(j(j({field:w,arrayFieldApi:E,arrayFieldState:y},E),y)):n)},st=function(r){var n=r.arrayFieldItemState,o=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(kt),y=Ie(),E=(0,d.useState)(0),w=Q(E,2),A=w[0],k=w[1],G=(0,d.useState)(new Map),ne=Q(G,1),re=ne[0],ce=n.field,xe=Lt(ce),ge=function(){var Ne=y.getState(),Ve=Ne.values,We=Ne.errors,Je=Ne.touched,ze={values:pt.get(Ve,ce),errors:pt.get(We,ce),touched:pt.get(Je,ce)};return ze};(0,d.useEffect)(function(){var He=function(Ve){var We=Ve.slice(0,Ve.lastIndexOf("[")!=-1?Ve.lastIndexOf("]")+1:Ve.length);We===ce&&k(Math.random())};return y.emitter.on("value",He),function(){y.emitter.removeListener("value",He)}},[ce]);var Ee=function(){re.forEach(function(Ne){Ne.fieldApi.reset()})},we=ge(),Te=j(j({},p),{},{register:function(Ne,Ve,We){re.set(Ne,Ve),p.register(Ne,Ve,We)},deregister:function(Ne){re.delete(Ne);for(var Ve=arguments.length,We=new Array(Ve>1?Ve-1:0),Je=1;Je<Ve;Je++)We[Je-1]=arguments[Je];p.deregister.apply(p,[Ne].concat(We))}}),$e=j(j(j({},o),xe),{},{reset:Ee}),je=j(j({},n),we);return typeof s=="function"?d.createElement(kt.Provider,{value:Te},d.createElement(Dt.Provider,{value:$e},d.createElement(ve.Provider,{value:je},s(j(j({arrayFieldItemApi:$e,arrayFieldItemState:je},$e),je))))):d.createElement(kt.Provider,{value:Te},d.createElement(Dt.Provider,{value:$e},d.createElement(ve.Provider,{value:je},s)))};Oe.Items=function(t){var r=t.children,n=(0,d.useContext)(Vt),o=n.fields;return o.map(function(s){var p=s.arrayFieldItemState,y=s.arrayFieldItemApi,E=p.key;return d.createElement(st,{key:E,arrayFieldItemApi:y,arrayFieldItemState:p},r)})};var lt=function(r){var n=r.components,o=(0,d.useContext)(kt),s=o.fieldMap;return n?n.map(function(p,y){var E=p["ui:control"],w=s[E];return d.createElement(w,{key:"ui-comp-".concat(y)})}):null},Kt=Me("informed:FormFields "),Xt=function t(r){var n=r.schema,o=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(kt),y=p.fieldMap,E=(0,d.useMemo)(function(){var w=de(n,s,o),A=w.map(function(k,G){var ne=k.field,re=k.props,ce=k.type,xe=k.properties,ge=k.items,Ee=k.componentType,we=k.uiBefore,Te=k.uiAfter,$e=k.allOf,je=y[Ee];return Kt("Rendering Field",ne,k),!je&&ce==="object"&&xe?d.createElement(t,{schema:k,prefix:ne,key:"ScheamField-".concat(G)}):!je&&ce==="array"&&ge?d.createElement(Or,D({key:"ScheamField-".concat(G),field:ne,items:ge,uiBefore:we,uiAfter:Te},re)):je&&Ee==="array"&&ge&&ce==="array"?d.createElement(je,D({key:"ScheamField-".concat(G),field:ne,items:ge,uiBefore:we,uiAfter:Te},re)):Ee==="conditionals"?$e.map(function(He){var Ne=He.then,Ve=He.if.properties,We=function(ze){var et=ze.values;return Object.keys(Ve).every(function(St){var Nt=Ve[St];return et[St]===Nt.const})};return d.createElement(le,{key:"ScheamField-".concat(G),when:We},d.createElement(t,{schema:Ne}))}):je?d.createElement(je,D({key:"ScheamField-".concat(G),field:ne},re)):null});return A},[n,o]);return E},Or=function(r){var n=r.field,o=r.items,s=r.uiBefore,p=r.uiAfter,y=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Oe,D({field:n},y),d.createElement(lt,{components:s}),d.createElement(Oe.Items,null,function(E){var w=E.field;return d.createElement(d.Fragment,null,d.createElement(lt,{components:o["ui:before"]}),d.createElement(Xt,{schema:o,prefix:w}),d.createElement(lt,{components:o["ui:after"]}))}),d.createElement(lt,{components:p}))},Tr={select:Xn,input:en,textarea:Bn,checkbox:Ur,radio:ai,add:Sn,remove:jn,array:Or},_t=Me("informed:Controller "),Wl=function(r,n){var o=Object.keys(n).find(function(p){return r.includes(p)});if(!!o){var s=r.slice(0,o.length);return s===o}},tn=function(){},ys=function(){function t(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b(this,t),this.options=n,this.subscriptions=new Map;var o=n.ajv,s=n.schema,p=n.fieldMap;this.ajv=o?new o({allErrors:!0}):null,this.ajvValidate=o?this.ajv.compile(s):null,this.fieldMap=p||Tr,this.fieldsById=new Map,this.fieldsByName={get:function(E){var w;return r.fieldsById.forEach(function(A){A&&A.field===E&&(w=A)}),w}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:tn,setTouched:tn,setError:tn,reset:tn,validate:tn,getValue:tn,getTouched:tn,getError:tn,getFieldState:tn,checkRelevant:tn,getPristine:tn,getDirty:tn}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(E,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(E);k.shadow||pt.set(r.state.values,k.field,k.fieldApi.getValue()),k.fieldApi.relevant(r.state.values)||pt.delete(r.state.values,k.field),r.fieldsById.forEach(function(G){var ne=G.fieldApi.checkRelevant();(!G.fieldApi.multistepRelevant(r.state.values)||!ne&&!G.keepState)&&(pt.delete(r.state.values,G.field),pt.delete(r.state.touched,G.field),pt.delete(r.state.errors,G.field))}),A&&(r.emit("change"),r.emit("field",k.field),r.emit("value",k.field,w))},setTouched:function(E,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(E);!k.shadow&&k.fieldApi.getIsRelevant()&&pt.set(r.state.touched,k.field,k.fieldApi.getTouched()),k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)&&pt.set(r.state.touched,k.field,k.fieldApi.getTouched()),A&&(r.emit("change"),r.emit("field",k.field))},setError:function(E,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(E);!k.shadow&&k.fieldApi.getIsRelevant()&&pt.set(r.state.errors,k.field,k.fieldApi.getError());var G=pt.get(r.state.errors,k.field);(k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)||k.shadow&&k.fieldApi.getError()===void 0&&k.fieldApi.relevant(r.state.values)&&typeof G=="string")&&pt.set(r.state.errors,k.field,k.fieldApi.getError()),A&&(r.emit("change"),r.emit("field",k.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(y){delete r.state.error,r.notify(y)})}return g(t,[{key:"emit",value:function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),p=1;p<o;p++)s[p-1]=arguments[p];var y=this.subscriptions.get(n);y&&y.forEach(function(E){return E.apply(void 0,s)})}},{key:"on",value:function(n,o){this.subscriptions.get(n)||this.subscriptions.set(n,new Set);var s=this.subscriptions.get(n);s.add(o)}},{key:"removeListener",value:function(n,o){var s=this.subscriptions.get(n);s.delete(o)}},{key:"setOptions",value:function(n){this.options=n}},{key:"setValue",value:function(n,o,s){this.getField(n).fieldApi.setValue(o,null,j({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(n,o){this.getField(n).fieldApi.setTouched(o)}},{key:"setError",value:function(n,o){this.getField(n).fieldApi.setError(o)}},{key:"setFormError",value:function(n){this.state.error=n,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(n,o){if(this.state.validating=this.state.validating-1,this.getError(n)||this.setError(n,o),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(n){this.state.step=n,this.emit("change")}},{key:"setCurrent",value:function(n){this.state.Current=n,this.emit("change")}},{key:"back",value:function(n){this.state.step=this.state.step-1,this.state.Current=n,this.emit("change")}},{key:"next",value:function(n){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=n),this.emit("change")}},{key:"setInitialValue",value:function(n,o){pt.set(this.options.initialValues,n,o)}},{key:"getFormState",value:function(){return _t("Returning form state"),j(j({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(n){var o=this.getValues();return pt.get(o,n)}},{key:"getValue",value:function(n){var o=this.getField(n).fieldApi.getValue();return _t("Getting value for",n,o),o}},{key:"getTouched",value:function(n){var o=this.getField(n).fieldApi.getTouched();return _t("Getting touched for",n,o),o}},{key:"getError",value:function(n){var o=this.getField(n).fieldApi.getError();return _t("Getting error for",n,o),o}},{key:"getDirty",value:function(n){var o=this.getField(n).fieldApi.getDirty();return _t("Getting dirty for",n,o),o}},{key:"getPristine",value:function(n){var o=this.getField(n).fieldApi.getPristine();return _t("Getting pristine for",n,o),o}},{key:"getValues",value:function(){return _t("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return _t("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return _t("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(n){var o=this.fieldsByName.get(n);return o&&o.shadow?pt.get(this.savedValues,"shadow-".concat(n)):pt.get(this.savedValues,n)}},{key:"removeSavedState",value:function(n){var o=this.fieldsByName.get(n);return o&&o.shadow?pt.delete(this.savedValues,"shadow-".concat(n)):pt.delete(this.savedValues,n)}},{key:"getFullField",value:function(n){return n}},{key:"getInitialValue",value:function(n){return pt.get(this.options.initialValues,n)}},{key:"getField",value:function(n){_t("Getting Field",n);var o=this.fieldsByName.get(n);return o||(console.warn("Attempting to get field ".concat(n," but it does not exist")),this.dummyField)}},{key:"notify",value:function(n){var o=this,s=this.getField(n);s&&s.notify&&s.notify.forEach(function(p){var y=".".concat(n),E="".concat(y.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=o.getField(E);w&&(_t("Notifying",w.field),w.fieldApi.validate(),w.fieldApi.checkRelevant())})}},{key:"validateField",value:function(n){this.getField(n).fieldApi.validate()}},{key:"resetField",value:function(n){this.getField(n).fieldApi.reset()}},{key:"fieldExists",value:function(n){return this.fieldsByName.get(n)!=null}},{key:"valid",value:function(){var n=this.getErrors();return!!(pt.empty(n)&&!this.state.error)}},{key:"screenValid",value:function(){var n=Object.entries(this.onScreen).some(function(o){var s=Q(o,2),p=s[1];return p.fieldApi.getError()});return!n}},{key:"invalid",value:function(){var n=this.getErrors();return!!(!pt.empty(n)||this.state.error)}},{key:"pristine",value:function(){var n=!0;return this.fieldsById.forEach(function(o){o.fieldApi.getPristine()||(n=!1)}),n}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){_t("Resetting"),this.fieldsById.forEach(function(n){n.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(n){_t("Setting values"),this.fieldsById.forEach(function(o){var s=pt.get(n,o.field);s!==void 0&&o.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var n=this;_t("Validating all fields");var o=this.getValues();if(this.options.validationSchema){var s=Re(this.options.validationSchema,o);this.fieldsById.forEach(function(w){if(pt.has(s,w.field)){var A=pt.get(s,w.field);n.setError(w.field,A)}else n.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var p=O(this.ajvValidate,o);this.fieldsById.forEach(function(w){if(pt.has(p,w.field)){var A=pt.get(p,w.field);n.setError(w.field,A)}else n.setError(w.field,void 0)})}if(this.fieldsById.forEach(function(w){w.fieldApi.validate(o),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var y=this.options.validate(o);this.setFormError(y)}if(this.options.validateFields){var E=this.options.validateFields(o);this.fieldsById.forEach(function(w){if(pt.has(E,w.field)){var A=pt.get(E,w.field);n.setError(w.field,A)}})}}},{key:"asyncValidate",value:function(){_t("Async Validating all fields");var n=this.getValues();this.fieldsById.forEach(function(o){o.fieldApi.asyncValidate(n)})}},{key:"keyDown",value:function(n){if(n.keyCode==13&&this.options.preventEnter)return n.preventDefault(n),!1}},{key:"submitForm",value:function(n){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&n&&n.preventDefault(n),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var n=this;this.fieldsById.forEach(function(o){n.emit("field",o.field)})}},{key:"register",value:function(n,o,s){var p=o.field,y=o.state;_t("Register ID:",n,"Name:",p,y,"Initial",s);var E=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(A,k){A&&A.field===p&&(w=k)}),w&&(o.keepState||o.inMultistep)?(_t("Already Registered",p),this.fieldsById.delete(w)):w&&(!o.keepState||!o.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),_t("Fields Registered",this.fieldsById.size),this.onScreen[n]=o,this.fieldsById.set(n,o),_t("clearing expected removal",E),delete this.expectedRemovals[E],delete this.pulledOut[E],!o.shadow&&(this.updater.setValue(n,o.fieldApi.getValue(),!1),this.updater.setError(n,o.fieldApi.getError(),!1),this.updater.setTouched(n,o.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(n){var o=this.fieldsById.get(n),s=o.field;_t("Deregister",n,s),delete this.onScreen[n];var p=Wl(s,this.expectedRemovals),y=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(o.keepState||o.inMultistep)&&!p&&(_t("Saving field ".concat(s,"'s value"),o.fieldApi.getFieldState()),o.shadow?pt.set(this.savedValues,"shadow-".concat(s),o.fieldApi.getFieldState()):pt.set(this.savedValues,s,o.fieldApi.getFieldState())),(p||!o.keepState&&!o.inMultistep||!o.fieldApi.getIsRelevant()&&!o.keepState)&&(_t("Removing field",s),this.fieldsById.delete(n),p||(pt.delete(this.state.values,s),pt.delete(this.state.touched,s),pt.delete(this.state.errors,s),o.shadow?pt.delete(this.savedValues,"shadow-".concat(s)):pt.delete(this.savedValues,s)),p&&this.pulledOut[y]&&(_t("Pulling out",s,"with magic value",y),pt.pullOut(this.state.values,y),pt.pullOut(this.state.touched,y),pt.pullOut(this.state.errors,y),pt.pullOut(this.savedValues,y),delete this.pulledOut[y])),this.emit("change")}},{key:"expectRemoval",value:function(n){_t("Expecting removal of",n),this.expectedRemovals[n]=!0,this.pulledOut[n]=!0}},{key:"update",value:function(n,o,s){_t("Update",n,o.field,s,o.fieldState.value);var p=o.fieldApi.getValue(),y=o.fieldApi.getError(),E=o.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(pt.set(this.state.values,s),pt.set(this.state.errors,s),pt.set(this.state.touched,s)),pt.set(this.state.values,o.field,p),pt.set(this.state.errors,o.field,y),pt.set(this.state.touched,o.field,E),this.emit("change")}}]),t}(),xo=Me("informed:FormProvider "),ms=function(r){var n=r.children,o=r.formApi,s=r.formController,p=r.formState,y=C(r,["children","formApi","formController","formState"]);if(xo("Render FormProvider"),o)return xo("Render FormProvider with given values"),d.createElement(kt.Provider,{value:s.updater},d.createElement(Ht.Provider,{value:o},d.createElement(Et.Provider,{value:p},n)));xo("Render FormProvider with generated values");var E=bs(y);return d.createElement(kt.Provider,{value:E.formController.updater},d.createElement(Ht.Provider,{value:E.formApi},d.createElement(Et.Provider,{value:E.formState},n)))},xs=Me("informed:useForm "),bs=function(r){var n=r.dontPreventDefault,o=r.initialValues,s=r.validate,p=r.validateFields,y=r.allowEmptyStrings,E=r.preventEnter,w=r.getApi,A=r.apiRef,k=r.onChange,G=r.onReset,ne=r.onSubmit,re=r.onValueChange,ce=r.onSubmitFailure,xe=r.validationSchema,ge=r.schema,Ee=r.ajv,we=r.fieldMap,Te=r.onlyValidateSchema,$e=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);xs("Render useForm");var je=(0,d.useMemo)(function(){return{dontPreventDefault:n,initialValues:o,validate:s,validateFields:p,allowEmptyStrings:y,preventEnter:E,validationSchema:xe,schema:ge,ajv:Ee,fieldMap:we}},[n,o,s,p,y,E,xe,ge,Ee,we]),He=(0,d.useState)(function(){return new ys(je)}),Ne=Q(He,1),Ve=Ne[0];(0,d.useEffect)(function(){Ve.setOptions(je)},[je]),vt(function(){Ve.mount()},[]);var We=(0,d.useState)(function(){return Ve.getFormState()}),Je=Q(We,2),ze=Je[0],et=Je[1];vt(function(){var Mr=function(){return k&&k(Ve.getFormState())},Er=function(){return G&&G()},Qr=function(){return ne&&ne(Ve.getFormState().values)},wr=function(){return re&&re(Ve.getFormState().values)},Nr=function(){return ce&&ce(Ve.getFormState().errors)};return Ve.on("change",Mr),Ve.on("reset",Er),Ve.on("submit",Qr),Ve.on("value",wr),Ve.on("failure",Nr),function(){Ve.removeListener("change",Mr),Ve.removeListener("reset",Er),Ve.removeListener("submit",Qr),Ve.removeListener("value",wr),Ve.removeListener("failure",Nr)}},[k,G,ne,re,ce]),(0,d.useState)(function(){var Mr=function(){xs("Setting form state"),et(Ve.getFormState())};Ve.on("change",Mr),w&&w(Ve.getFormApi()),A&&(A.current=Ve.getFormApi())});var St=(0,d.useState)(function(){return Ve.getFormApi()}),Nt=Q(St,1),zt=Nt[0],or=function(Er){return d.createElement(ms,{formApi:zt,formState:ze,formController:Ve},d.createElement(d.Fragment,null,Er||d.createElement(Xt,{schema:ge,onlyValidateSchema:Te})))};return{formApi:zt,formState:ze,formController:Ve,render:or,userProps:$e}},Hl=Me("informed:Form "),zl=function(r){var n=r.children,o=r.render,s=r.component,p=C(r,["children","render","component"]);Hl("Render FORM");var y=bs(p),E=y.formApi,w=y.formController,A=y.formState,k=y.render,G=y.userProps,ne=function(){var ce={formState:A,formApi:E};return s?d.createElement(s,ce,n):o?o(ce):typeof n=="function"?n(ce):n};return k(d.createElement("form",D({},G,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),ne()))},Mf=function(r,n){return j(j({},n),{},{getValue:function(s){return n.getValue("".concat(r,".").concat(s))},getTouched:function(s){return n.getTouched("".concat(r,".").concat(s))},getError:function(s){return n.getError("".concat(r,".").concat(s))},setValue:function(s,p){return n.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return n.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return n.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return n.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(n.getFullField(r),".").concat(s)}})},Rf=function(r,n){var o=n.register,s=n.deregister,p=n.setValue,y=n.setTouched,E=n.setError,w=n.update,A=n.getField,k=n.expectRemoval,G=n.getInitialValue,ne=n.fieldMap,re=n.getSavedValue;return{register:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return o.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},deregister:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return s.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},update:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return w.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},setValue:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return p.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},setTouched:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return y.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},setError:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return E.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},getField:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return A.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},expectRemoval:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return k.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},getInitialValue:function(xe){return G("".concat(r,".").concat(xe))},getSavedValue:function(xe){return re("".concat(r,".").concat(xe))},fieldMap:ne}},Lf=function(r){var n=r.scope,o=r.children,s=useContext(kt),p=Ie(),y=oi(),E=useMemo(function(){return Mf(n,p)},[n]),w=useMemo(function(){return Rf(n,s)},[n]);return React.createElement(kt.Provider,{value:w},React.createElement(Ht.Provider,{value:E},React.createElement(Et.Provider,{value:y},o)))},Ci=function(r){var n=oi(),o={};Object.keys(r).length>0?Object.keys(r).forEach(function(re){o[re]=n[re]}):o=n;var s=o,p=s.pristine,y=s.dirty,E=s.invalid,w=s.values,A=s.errors,k=s.touched,G=s.validating,ne=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:y,invalid:E,values:w,errors:A,touched:k,validating:G,submitting:ne},null,2)))},Df=function(r){var n=r.initialStep,o=r.multistepApiRef,s=Ie(),p=s.getValues,y=s.validate,E=s.screenValid,w=(0,d.useState)(new Map),A=Q(w,1),k=A[0],G=(0,d.useRef)(0),ne=Ge({current:n,steps:[],goal:null}),re=Q(ne,3),ce=re[0],xe=re[1],ge=re[2],Ee=(0,d.useState)(function(){var je=function(){var Ve=ge(),We=Ve.current,Je=k.get(We);return Je},He={getState:function(){return ge()},getCurrentStep:je,getStep:function(Ve){return k.get(Ve)},getNumberOfSteps:function(){return k.size},next:function(){if(y(),E()){var Ve=je(),We=Ve.getNext,Je=We(),ze=typeof Je=="function"?Je(p()):Je;ze&&xe(function(et){return j(j({},et),{},{current:ze})})}},back:function(){var Ve=je(),We=Ve.getPrevious,Je=We(),ze=typeof Je=="function"?Je(p()):Je;ze&&xe(function(et){return j(j({},et),{},{current:ze})})},setCurrent:function(Ve){if(Ve){var We=k.get(Ve).index;We<je().index?xe(function(Je){return j(j({},Je),{},{current:Ve,goal:null})}):xe(function(Je){return j(j({},Je),{},{goal:Ve})})}},register:function(Ve,We,Je){Je?(G.current=G.current+1,k.set(Ve,j(j({},We),{},{index:G.current}))):xe(function(ze){return j(j({},ze),{},{steps:Array.from(k.keys())})})},deregister:function(Ve){k.delete(Ve),G.current=G.current-1,xe(function(We){return j(j({},We),{},{steps:Array.from(k.keys())})})}};return o&&(o.current=He),He}),we=Q(Ee,1),Te=we[0],$e=function(He){return d.createElement($.Provider,{value:Te},d.createElement(z.Provider,{value:ce},He))};return j(j(j({},Te),ce),{},{render:$e})};function Nf(){return(0,d.useContext)(z)}function bo(){return(0,d.useContext)($)}var Ia=function(r){var n=r.step,o=r.next,s=r.previous,p=r.relevant,y=oi(),E=y.values,w=Nf(),A=w.current,k=w.goal,G=bo(),ne=G.register,re=G.deregister,ce=G.next,xe=n===A,ge=p?p(E):!0,Ee=(0,d.useRef)(o),we=(0,d.useRef)(s),Te=(0,d.useRef)();Ee.current=o,we.current=s,Te.current=p,(0,d.useState)(function(){ne(n,{name:n,getNext:function(){return Ee.current},getPrevious:function(){return we.current}},!0)}),(0,d.useEffect)(function(){return ne(n,{name:n,getNext:function(){return Ee.current},getPrevious:function(){return we.current}}),function(){re(n)}},[n]),(0,d.useEffect)(function(){k&&xe&&k!==n&&ce()},[k,xe]);var $e=function(He){return d.createElement(Se.Provider,{value:{relevant:function(Ve){return Te.current?Te.current(Ve):!0},multistep:!0}},xe&&ge?He:null)};return{isCurrent:xe,isRelevant:ge,step:n,render:$e}};function Bf(t){var r=t.children,n=C(t,["children"]),o=Df(n),s=o.render,p=C(o,["render"]);return s(typeof r=="function"?r(p):r)}Bf.Step=function(r){var n=r.children,o=C(r,["children"]),s=Ia(o),p=s.render;return p(n)};var Td=function(r){var n=r.field,o=useContext(kt),s=o.fieldMap,p=Ie(),y=p.getFullField,E=p.getOptions,w=y(n),A=E(),k=A.schema,G=ae(w),ne=pt.get(k,G);if(!ne)return null;var re=te(n,ne),ce=re.props,xe=re.componentType,ge=s[xe];return React.createElement(ge,D({field:n},ce))},Pd=function(){var r=Ie(),n=r.getOptions,o=n(),s=o.schema;return React.createElement(Xt,{schema:s})},Id=function(r){return React.forwardRef(function(n,o){return React.createElement(Ht.Consumer,null,function(s){return React.createElement(r,D({formApi:s,ref:o},n))})})},Gl=function(r){return React.forwardRef(function(n,o){return React.createElement(Et.Consumer,null,function(s){return React.createElement(r,D({formState:s,ref:o},n))})})},$l=function(r,n){return{getValue:function(){return r.getValue(n)},setValue:function(s){return r.setValue(n,s)},getTouched:function(){return r.getTouched(n)},setTouched:function(s){return r.setTouched(n,s)},getError:function(){return r.getError(n)},setError:function(s){return r.setError(n,s)},reset:function(){return r.resetField(n)},validate:function(){return r.validateField(n)},exists:function(){return r.fieldExists(n)},getDirty:function(){return r.getDirty(n)},getPristine:function(){return r.getPristine(n)},getFieldState:function(){return r.getField(n).fieldApi.getFieldState()}}};function Kl(t){var r=Ie(),n=useMemo(function(){return $l(r,t)},[t]);return n}function Yl(t){var r=Kl(t),n=Ie(),o=React.useState(),s=Q(o,2),p=s[1],y=React.useCallback(function(){return p({})},[]);return vt(function(){var E=function(A){A===t&&y()};return n.emitter.on("field",E),function(){n.emitter.removeListener("field",E)}},[]),vt(function(){y()},[]),r.getFieldState()||{}}var Uf=function(r){return function(n){return function(o){var s=Yl(r);return React.createElement(n,D({fieldState:s},o))}}},ws=function(r){return function(n){return function(o){var s=Kl(r);return React.createElement(n,D({fieldApi:s},o))}}},Ss=function(r){var n=r.value,o=r.forwardedRef,s=r.children,p=C(r,["value","forwardedRef","children"]);return React.createElement("option",D({ref:o,value:n,key:n},p),s)},Jl=null,Fa=a(80150),As=a(89356),Vi=a(63263),jf=a(30699),wo=a(58377),Vn=a(28834),Xl=a(13038),Vf=a(32752),ka=a(44341);function Es(t,r,n){return r in t?ka(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function si(t,r){var n=As(t);if(Vi){var o=Vi(t);r&&(o=jf(o).call(o,function(s){return wo(t,s).enumerable})),n.push.apply(n,o)}return n}function cr(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};if(r%2){var o;Vn(o=si(Object(n),!0)).call(o,function(p){Es(t,p,n[p])})}else if(Xl)Vf(t,Xl(n));else{var s;Vn(s=si(Object(n))).call(s,function(p){ka(t,p,wo(n,p))})}}return t}var li=a(28583),Wi=a.n(li),Cs=a(10240),Hi=a.n(Cs),Oi=a(8575),zi=a(51446),Os=a(19996),Ts=a(78363),Ql=a(95238),Ps=a(53592);function Is(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,o=new Array(r);n<r;n++)o[n]=t[n];return o}function Fs(t,r){var n;if(!!t){if(typeof t=="string")return Is(t,r);var o=Ql(n=Object.prototype.toString.call(t)).call(n,8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Ps(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Is(t,r)}}function Gi(t,r){var n=typeof zi!="undefined"&&Os(t)||t["@@iterator"];if(!n){if(Ts(t)||(n=Fs(t))||r&&t&&typeof t.length=="number"){n&&(t=n);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(A){throw A},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
81
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,E;return{s:function(){n=n.call(t)},n:function(){var A=n.next();return p=A.done,A},e:function(A){y=!0,E=A},f:function(){try{!p&&n.return!=null&&n.return()}finally{if(y)throw E}}}}var Wf=a(23882);function ir(t){return typeof zi=="function"&&typeof Wf=="symbol"?ir=function(n){return typeof n}:ir=function(n){return n&&typeof zi=="function"&&n.constructor===zi&&n!==zi.prototype?"symbol":typeof n},ir(t)}function Hf(t){if(Ts(t))return t}function Zl(t,r){var n=t&&(typeof zi!="undefined"&&Os(t)||t["@@iterator"]);if(n!=null){var o=[],s=!0,p=!1,y,E;try{for(n=n.call(t);!(s=(y=n.next()).done)&&(o.push(y.value),!(r&&o.length===r));s=!0);}catch(w){p=!0,E=w}finally{try{!s&&n.return!=null&&n.return()}finally{if(p)throw E}}return o}}function So(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
82
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rn(t,r){return Hf(t)||Zl(t,r)||Fs(t,r)||So()}var _l=a(69798);function ql(t,r,n,o,s,p,y){try{var E=t[p](y),w=E.value}catch(A){n(A);return}E.done?r(w):_l.resolve(w).then(o,s)}function ks(t){return function(){var r=this,n=arguments;return new _l(function(o,s){var p=t.apply(r,n);function y(w){ql(p,o,s,y,E,"next",w)}function E(w){ql(p,o,s,y,E,"throw",w)}y(void 0)})}}var Ma=a(63109),ar=a.n(Ma),zf=a(78580),Ao=a.n(zf),Ra=a(72119),eu=a.n(Ra),tu=a(66419),Gf=a.n(tu),Ms=a(59340),La=a.n(Ms),$f=a(2991),qt=a.n($f),ru=a(86902),Qt=a.n(ru),Kf=a(77766),Ct=a.n(Kf),ui=a(26295),Da=a.n(ui),Rs=a(20116),sn=a.n(Rs),fi=a(31905),$i=a(92495),Na=a.n($i),Yf=a(93320),Ls=a.n(Yf),Jf=a(78718),Eo=a.n(Jf),Ds=a(23560),_n=a.n(Ds),Wn=a(88996);function Co(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Ns(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),ka(t,o.key,o)}}function Bs(t,r,n){return r&&Ns(t.prototype,r),n&&Ns(t,n),t}var nu=a(83863),iu=a(79542),Us=a(24889);function Ki(t){return Ki=iu?Us:function(n){return n.__proto__||Us(n)},Ki(t)}function Ba(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=Ki(t),t!==null););return t}function Ua(t,r,n){return typeof Reflect!="undefined"&&nu?Ua=nu:Ua=function(s,p,y){var E=Ba(s,p);if(!!E){var w=wo(E,p);return w.get?w.get.call(y):w.value}},Ua(t,r,n||t)}var au=a(189);function ja(t,r){return ja=iu||function(o,s){return o.__proto__=s,o},ja(t,r)}function Oo(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=au(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&ja(t,r)}var Va=a(13535);function To(){if(typeof Reflect=="undefined"||!Va||Va.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Va(Boolean,[],function(){})),!0}catch(t){return!1}}function Hn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ou(t,r){return r&&(ir(r)==="object"||typeof r=="function")?r:Hn(t)}function js(t){var r=To();return function(){var o=Ki(t),s;if(r){var p=Ki(this).constructor;s=Va(o,arguments,p)}else s=o.apply(this,arguments);return ou(this,s)}}var Vs=a(94473),su=a.n(Vs),lu=a(57514),Ws=a.n(lu),Xf=function(r){var n=function(p,y){return{name:p,value:y}};if(_n()(r.prototype.set)||_n()(r.prototype.get)||_n()(r.prototype.getAll)||_n()(r.prototype.has))return r;var o=function(s){Oo(y,s);var p=js(y);function y(E){var w;return Co(this,y),w=p.call(this,E),w.entryList=[],w}return Bs(y,[{key:"append",value:function(w,A,k){return this.entryList.push(n(w,A)),Ua(Ki(y.prototype),"append",this).call(this,w,A,k)}},{key:"set",value:function(w,A){var k,G=n(w,A);this.entryList=sn()(k=this.entryList).call(k,function(ne){return ne.name!==w}),this.entryList.push(G)}},{key:"get",value:function(w){var A,k=su()(A=this.entryList).call(A,function(G){return G.name===w});return k===void 0?null:k}},{key:"getAll",value:function(w){var A,k;return qt()(A=sn()(k=this.entryList).call(k,function(G){return G.name===w})).call(A,function(G){return G.value})}},{key:"has",value:function(w){return this.entryList.some(function(A){return A.name===w})}}]),y}(r);return o};const Qf=Xf(Ws());function Zf(t){if(Ts(t))return Is(t)}function Yi(t){if(typeof zi!="undefined"&&Os(t)!=null||t["@@iterator"]!=null)return Ps(t)}function ca(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
83
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tn(t){return Zf(t)||Yi(t)||Fs(t)||ca()}var Hs=a(3649),Pn=a.n(Hs),uu=a(88996),zs=uu.Buffer,Ji=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Xi=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Rr(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.escape,s=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!o?t:s?JSON.parse(t):qt()(r=Tn(t)).call(r,function(p){var y,E;if(Xi(p)||Ji(p)&&o==="unsafe")return p;var w=qt()(y=qt()(E=zs.from(p).toJSON().data||[]).call(E,function(A){var k;return Pn()(k="0".concat(A.toString(16).toUpperCase())).call(k,-2)})).call(y,function(A){return"%".concat(A)}).join("");return w}).join("")}function qn(t){var r=t.value;return Array.isArray(r)?Ti(t):ir(r)==="object"?Po(t):_f(t)}function Ti(t){var r=t.key,n=t.value,o=t.style,s=t.explode,p=t.escape,y=function(G){return Rr(G,{escape:p})};if(o==="simple")return qt()(n).call(n,function(k){return y(k)}).join(",");if(o==="label")return".".concat(qt()(n).call(n,function(k){return y(k)}).join("."));if(o==="matrix")return qt()(n).call(n,function(k){return y(k)}).reduce(function(k,G){var ne;if(!k||s){var re,ce;return Ct()(re=Ct()(ce="".concat(k||"",";")).call(ce,r,"=")).call(re,G)}return Ct()(ne="".concat(k,",")).call(ne,G)},"");if(o==="form"){var E=s?"&".concat(r,"="):",";return qt()(n).call(n,function(k){return y(k)}).join(E)}if(o==="spaceDelimited"){var w=s?"".concat(r,"="):"";return qt()(n).call(n,function(k){return y(k)}).join(" ".concat(w))}if(o==="pipeDelimited"){var A=s?"".concat(r,"="):"";return qt()(n).call(n,function(k){return y(k)}).join("|".concat(A))}}function Po(t){var r=t.key,n=t.value,o=t.style,s=t.explode,p=t.escape,y=function(A){return Rr(A,{escape:p})},E=Qt()(n);if(o==="simple")return E.reduce(function(w,A){var k,G,ne,re=y(n[A]),ce=s?"=":",",xe=w?"".concat(w,","):"";return Ct()(k=Ct()(G=Ct()(ne="".concat(xe)).call(ne,A)).call(G,ce)).call(k,re)},"");if(o==="label")return E.reduce(function(w,A){var k,G,ne,re=y(n[A]),ce=s?"=":".",xe=w?"".concat(w,"."):".";return Ct()(k=Ct()(G=Ct()(ne="".concat(xe)).call(ne,A)).call(G,ce)).call(k,re)},"");if(o==="matrix"&&s)return E.reduce(function(w,A){var k,G,ne=y(n[A]),re=w?"".concat(w,";"):";";return Ct()(k=Ct()(G="".concat(re)).call(G,A,"=")).call(k,ne)},"");if(o==="matrix")return E.reduce(function(w,A){var k,G,ne=y(n[A]),re=w?"".concat(w,","):";".concat(r,"=");return Ct()(k=Ct()(G="".concat(re)).call(G,A,",")).call(k,ne)},"");if(o==="form")return E.reduce(function(w,A){var k,G,ne,re,ce=y(n[A]),xe=w?Ct()(k="".concat(w)).call(k,s?"&":","):"",ge=s?"=":",";return Ct()(G=Ct()(ne=Ct()(re="".concat(xe)).call(re,A)).call(ne,ge)).call(G,ce)},"")}function _f(t){var r=t.key,n=t.value,o=t.style,s=t.escape,p=function(w){return Rr(w,{escape:s})};if(o==="simple")return p(n);if(o==="label")return".".concat(p(n));if(o==="matrix"){var y;return Ct()(y=";".concat(r,"=")).call(y,p(n))}if(o==="form")return p(n);if(o==="deepObject")return p(n,{},!0)}var Io={serializeRes:fu,mergeInQueryOrForm:du};function Pi(t){return Fo.apply(this,arguments)}function Fo(){return Fo=ks(ar().mark(function t(r){var n,o,s,p,y,E=arguments;return ar().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(n=E.length>1&&E[1]!==void 0?E[1]:{},ir(r)==="object"&&(n=r,r=n.url),n.headers=n.headers||{},Io.mergeInQueryOrForm(n),n.headers&&Qt()(n.headers).forEach(function(k){var G=n.headers[k];typeof G=="string"&&(n.headers[k]=G.replace(/\n+/g," "))}),!n.requestInterceptor){A.next=12;break}return A.next=8,n.requestInterceptor(n);case 8:if(A.t0=A.sent,A.t0){A.next=11;break}A.t0=n;case 11:n=A.t0;case 12:return o=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(o)&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),A.prev=14,A.next=17,(n.userFetch||fetch)(n.url,n);case 17:return s=A.sent,A.next=20,Io.serializeRes(s,r,n);case 20:if(s=A.sent,!n.responseInterceptor){A.next=28;break}return A.next=24,n.responseInterceptor(s);case 24:if(A.t1=A.sent,A.t1){A.next=27;break}A.t1=s;case 27:s=A.t1;case 28:A.next=39;break;case 30:if(A.prev=30,A.t2=A.catch(14),s){A.next=34;break}throw A.t2;case 34:throw p=new Error(s.statusText),p.status=s.status,p.statusCode=s.status,p.responseError=A.t2,p;case 39:if(s.ok){A.next=45;break}throw y=new Error(s.statusText),y.status=s.status,y.statusCode=s.status,y.response=s,y;case 45:return A.abrupt("return",s);case 46:case"end":return A.stop()}},t,null,[[14,30]])})),Fo.apply(this,arguments)}var Gs=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function ko(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):Ls().safeLoad(t)}function fu(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.loadSpec,s=o===void 0?!1:o,p={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:Ks(t.headers)},y=p.headers["content-type"],E=s||Gs(y),w=E?t.text:t.blob||t.buffer;return w.call(t).then(function(A){if(p.text=A,p.data=A,E)try{var k=ko(A,y);p.body=k,p.obj=k}catch(G){p.parseError=G}return p})}function $s(t){var r=Ao()(t).call(t,", ");return r?t.split(", "):t}function Ks(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _n()(eu()(t))?Gf()(eu()(t).call(t)).reduce(function(r,n){var o=rn(n,2),s=o[0],p=o[1];return r[s]=$s(p),r},{}):{}}function Wa(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&ir(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof Wn.Buffer!="undefined"&&t instanceof Wn.Buffer?!0:t!==null&&ir(t)==="object"&&typeof t.pipe=="function"}function Mo(t,r){return Array.isArray(t)&&t.some(function(n){return Wa(n,r)})}var da={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Ro={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Ys(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=r.collectionFormat,s=r.allowEmptyValue,p=r.serializationOption,y=r.encoding,E=ir(r)==="object"&&!Array.isArray(r)?r.value:r,w=n?function(G){return G.toString()}:function(G){return encodeURIComponent(G)},A=w(t);if(typeof E=="undefined"&&s)return[[A,""]];if(Wa(E)||Mo(E))return[[A,E]];if(p)return Ha(t,E,n,p);if(y){if([ir(y.style),ir(y.explode),ir(y.allowReserved)].some(function(G){return G!=="undefined"}))return Ha(t,E,n,Eo()(y,["style","explode","allowReserved"]));if(y.contentType){if(y.contentType==="application/json"){var k=typeof E=="string"?E:La()(E);return[[A,w(k)]]}return[[A,w(E.toString())]]}return ir(E)!=="object"?[[A,w(E)]]:Array.isArray(E)&&E.every(function(G){return ir(G)!=="object"})?[[A,qt()(E).call(E,w).join(",")]]:[[A,w(La()(E))]]}return ir(E)!=="object"?[[A,w(E)]]:Array.isArray(E)?o==="multi"?[[A,qt()(E).call(E,w)]]:[[A,qt()(E).call(E,w).join(Ro[o||"csv"])]]:[[A,""]]}function Ha(t,r,n,o){var s,p=o.style||"form",y=typeof o.explode=="undefined"?p==="form":o.explode,E=n?!1:o&&o.allowReserved?"unsafe":"reserved",w=function(re){return Rr(re,{escape:E})},A=n?function(ne){return ne}:function(ne){return Rr(ne,{escape:E})};if(ir(r)!=="object")return[[A(t),w(r)]];if(Array.isArray(r))return y?[[A(t),qt()(r).call(r,w)]]:[[A(t),qt()(r).call(r,w).join(da[p])]];if(p==="deepObject"){var k;return qt()(k=Qt()(r)).call(k,function(ne){var re;return[A(Ct()(re="".concat(t,"[")).call(re,ne,"]")),w(r[ne])]})}if(y){var G;return qt()(G=Qt()(r)).call(G,function(ne){return[A(ne),w(r[ne])]})}return[[A(t),qt()(s=Qt()(r)).call(s,function(ne){var re;return[Ct()(re="".concat(A(ne),",")).call(re,w(r[ne]))]}).join(",")]]}function qf(t){return Da()(t).reduce(function(r,n){var o=rn(n,2),s=o[0],p=o[1],y=Gi(Ys(s,p,!0)),E;try{for(y.s();!(E=y.n()).done;){var w=rn(E.value,2),A=w[0],k=w[1];if(Array.isArray(k)){var G=Gi(k),ne;try{for(G.s();!(ne=G.n()).done;){var re=ne.value;r.append(A,re)}}catch(ce){G.e(ce)}finally{G.f()}}else r.append(A,k)}}catch(ce){y.e(ce)}finally{y.f()}return r},new Qf)}function cu(t){var r=Qt()(t).reduce(function(n,o){var s=Gi(Ys(o,t[o])),p;try{for(s.s();!(p=s.n()).done;){var y=rn(p.value,2),E=y[0],w=y[1];n[E]=w}}catch(A){s.e(A)}finally{s.f()}return n},{});return Na().stringify(r,{encode:!1,indices:!1})||""}function du(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.url,n=r===void 0?"":r,o=t.query,s=t.form,p=function(){for(var Ee=arguments.length,we=new Array(Ee),Te=0;Te<Ee;Te++)we[Te]=arguments[Te];var $e=sn()(we).call(we,function(je){return je}).join("&");return $e?"?".concat($e):""};if(s){var y=Qt()(s).some(function(ge){var Ee=s[ge].value;return Wa(Ee)||Mo(Ee)}),E=t.headers["content-type"]||t.headers["Content-Type"];y||/multipart\/form-data/i.test(E)?t.body=qf(t.form):t.body=cu(s),delete t.form}if(o){var w=n.split("?"),A=rn(w,2),k=A[0],G=A[1],ne="";if(G){var re=Na().parse(G),ce=Qt()(o);ce.forEach(function(ge){return delete re[ge]}),ne=Na().stringify(re,{encode:!0})}var xe=p(ne,cu(o));t.url=k+xe,delete t.query}return t}function Js(t,r,n){return n=n||function(o){return o},r=r||function(o){return o},function(o){return typeof o=="string"&&(o={url:o}),Io.mergeInQueryOrForm(o),o=r(o),n(t(o))}}var Xs=a(51942),nn=a.n(Xs),za=a(93476),Qi=a.n(za),Lo=a(92762),pu=a.n(Lo),Ga=a(13311),hu=a.n(Ga),Zi=a(50308),pa=a.n(Zi);/*!
84
+ * https://github.com/Starcounter-Jack/JSON-Patch
85
+ * (c) 2017 Joachim Wester
86
+ * MIT license
87
+ */var _i=function(){var t=function(r,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,n)};return function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),$a=Object.prototype.hasOwnProperty;function ci(t,r){return $a.call(t,r)}function Do(t){if(Array.isArray(t)){for(var n=new Array(t.length),r=0;r<n.length;r++)n[r]=""+r;return n}if(Object.keys)return Object.keys(t);var n=[];for(var o in t)ci(t,o)&&n.push(o);return n}function gn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function No(t){for(var r=0,n=t.length,o;r<n;){if(o=t.charCodeAt(r),o>=48&&o<=57){r++;continue}return!1}return!0}function di(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Ii(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Fi(t,r){var n;for(var o in t)if(ci(t,o)){if(t[o]===r)return di(o)+"/";if(typeof t[o]=="object"&&(n=Fi(t[o],r),n!=""))return di(o)+"/"+n}return""}function Fd(t,r){if(t===r)return"/";var n=Fi(t,r);if(n==="")throw new Error("Object not found in root");return"/"+n}function Qs(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,n=t.length;r<n;r++)if(Qs(t[r]))return!0}else if(typeof t=="object"){for(var o=Do(t),s=o.length,r=0;r<s;r++)if(Qs(t[o[r]]))return!0}}return!1}function vu(t,r){var n=[t];for(var o in r){var s=typeof r[o]=="object"?JSON.stringify(r[o],null,2):r[o];typeof s!="undefined"&&n.push(o+": "+s)}return n.join(`
88
+ `)}var gu=function(t){_i(r,t);function r(n,o,s,p,y){var E=this.constructor,w=t.call(this,vu(n,{name:o,index:s,operation:p,tree:y}))||this;return w.name=o,w.index=s,w.operation=p,w.tree=y,Object.setPrototypeOf(w,E.prototype),w.message=vu(n,{name:o,index:s,operation:p,tree:y}),w}return r}(Error),Pr=gu,ec=gn,jr={add:function(t,r,n){return t[r]=this.value,{newDocument:n}},remove:function(t,r,n){var o=t[r];return delete t[r],{newDocument:n,removed:o}},replace:function(t,r,n){var o=t[r];return t[r]=this.value,{newDocument:n,removed:o}},move:function(t,r,n){var o=Lr(n,this.path);o&&(o=gn(o));var s=dr(n,{op:"remove",path:this.from}).removed;return dr(n,{op:"add",path:this.path,value:s}),{newDocument:n,removed:o}},copy:function(t,r,n){var o=Lr(n,this.from);return dr(n,{op:"add",path:this.path,value:gn(o)}),{newDocument:n}},test:function(t,r,n){return{newDocument:n,test:Ka(t[r],this.value)}},_get:function(t,r,n){return this.value=t[r],{newDocument:n}}},Vr={add:function(t,r,n){return No(r)?t.splice(r,0,this.value):t[r]=this.value,{newDocument:n,index:r}},remove:function(t,r,n){var o=t.splice(r,1);return{newDocument:n,removed:o[0]}},replace:function(t,r,n){var o=t[r];return t[r]=this.value,{newDocument:n,removed:o}},move:jr.move,copy:jr.copy,test:jr.test,_get:jr._get};function Lr(t,r){if(r=="")return t;var n={op:"_get",path:r};return dr(t,n),n.value}function dr(t,r,n,o,s,p){if(n===void 0&&(n=!1),o===void 0&&(o=!0),s===void 0&&(s=!0),p===void 0&&(p=0),n&&(typeof n=="function"?n(r,0,t,r.path):qi(r,0)),r.path===""){var y={newDocument:t};if(r.op==="add")return y.newDocument=r.value,y;if(r.op==="replace")return y.newDocument=r.value,y.removed=t,y;if(r.op==="move"||r.op==="copy")return y.newDocument=Lr(t,r.from),r.op==="move"&&(y.removed=t),y;if(r.op==="test"){if(y.test=Ka(t,r.value),y.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y.newDocument=t,y}else{if(r.op==="remove")return y.removed=t,y.newDocument=null,y;if(r.op==="_get")return r.value=t,y;if(n)throw new Pr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",p,r,t);return y}}else{o||(t=gn(t));var E=r.path||"",w=E.split("/"),A=t,k=1,G=w.length,ne=void 0,re=void 0,ce=void 0;for(typeof n=="function"?ce=n:ce=qi;;){if(re=w[k],s&&re=="__proto__")throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&ne===void 0&&(A[re]===void 0?ne=w.slice(0,k).join("/"):k==G-1&&(ne=r.path),ne!==void 0&&ce(r,0,t,ne)),k++,Array.isArray(A)){if(re==="-")re=A.length;else{if(n&&!No(re))throw new Pr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",p,r,t);No(re)&&(re=~~re)}if(k>=G){if(n&&r.op==="add"&&re>A.length)throw new Pr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",p,r,t);var y=Vr[r.op].call(r,A,re,t);if(y.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}}else if(re&&re.indexOf("~")!=-1&&(re=Ii(re)),k>=G){var y=jr[r.op].call(r,A,re,t);if(y.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}A=A[re]}}}function zn(t,r,n,o,s){if(o===void 0&&(o=!0),s===void 0&&(s=!0),n&&!Array.isArray(r))throw new Pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(t=gn(t));for(var p=new Array(r.length),y=0,E=r.length;y<E;y++)p[y]=dr(t,r[y],n,!0,s,y),t=p[y].newDocument;return p.newDocument=t,p}function tc(t,r,n){var o=dr(t,r);if(o.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",n,r,t);return o.newDocument}function qi(t,r,n,o){if(typeof t!="object"||t===null||Array.isArray(t))throw new Pr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,n);if(jr[t.op]){if(typeof t.path!="string")throw new Pr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,n);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Pr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,t,n);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new Pr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,t,n);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new Pr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,t,n);if((t.op==="add"||t.op==="replace"||t.op==="test")&&Qs(t.value))throw new Pr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,t,n);if(n){if(t.op=="add"){var s=t.path.split("/").length,p=o.split("/").length;if(s!==p+1&&s!==p)throw new Pr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,t,n)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==o)throw new Pr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,t,n)}else if(t.op==="move"||t.op==="copy"){var y={op:"_get",path:t.from,value:void 0},E=yu([y],n);if(E&&E.name==="OPERATION_PATH_UNRESOLVABLE")throw new Pr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,n)}}}else throw new Pr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,n)}function yu(t,r,n){try{if(!Array.isArray(t))throw new Pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)zn(gn(r),gn(t),n||!0);else{n=n||qi;for(var o=0;o<t.length;o++)n(t[o],o,r,void 0)}}catch(s){if(s instanceof Pr)return s;throw s}}function Ka(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){var n=Array.isArray(t),o=Array.isArray(r),s,p,y;if(n&&o){if(p=t.length,p!=r.length)return!1;for(s=p;s--!=0;)if(!Ka(t[s],r[s]))return!1;return!0}if(n!=o)return!1;var E=Object.keys(t);if(p=E.length,p!==Object.keys(r).length)return!1;for(s=p;s--!=0;)if(!r.hasOwnProperty(E[s]))return!1;for(s=p;s--!=0;)if(y=E[s],!Ka(t[y],r[y]))return!1;return!0}return t!==t&&r!==r}/*!
89
+ * https://github.com/Starcounter-Jack/JSON-Patch
90
+ * (c) 2017 Joachim Wester
91
+ * MIT license
92
+ */var Zs=new WeakMap,_s=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),mu=function(){function t(r,n){this.callback=r,this.observer=n}return t}();function qs(t){return Zs.get(t)}function rc(t,r){return t.observers.get(r)}function el(t,r){t.observers.delete(r.callback)}function tl(t,r){r.unobserve()}function xu(t,r){var n=[],o,s=qs(t);if(!s)s=new _s(t),Zs.set(t,s);else{var p=rc(s,r);o=p&&p.observer}if(o)return o;if(o={},s.value=gn(t),r){o.callback=r,o.next=null;var y=function(){Bo(o)},E=function(){clearTimeout(o.next),o.next=setTimeout(y)};typeof window!="undefined"&&(window.addEventListener("mouseup",E),window.addEventListener("keyup",E),window.addEventListener("mousedown",E),window.addEventListener("keydown",E),window.addEventListener("change",E))}return o.patches=n,o.object=t,o.unobserve=function(){Bo(o),clearTimeout(o.next),el(s,o),typeof window!="undefined"&&(window.removeEventListener("mouseup",E),window.removeEventListener("keyup",E),window.removeEventListener("mousedown",E),window.removeEventListener("keydown",E),window.removeEventListener("change",E))},s.observers.set(r,new mu(r,o)),o}function Bo(t,r){r===void 0&&(r=!1);var n=Zs.get(t.object);Ya(n.value,t.object,t.patches,"",r),t.patches.length&&zn(n.value,t.patches);var o=t.patches;return o.length>0&&(t.patches=[],t.callback&&t.callback(o)),o}function Ya(t,r,n,o,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=Do(r),y=Do(t),E=!1,w=!1,A=y.length-1;A>=0;A--){var k=y[A],G=t[k];if(ci(r,k)&&!(r[k]===void 0&&G!==void 0&&Array.isArray(r)===!1)){var ne=r[k];typeof G=="object"&&G!=null&&typeof ne=="object"&&ne!=null?Ya(G,ne,n,o+"/"+di(k),s):G!==ne&&(E=!0,s&&n.push({op:"test",path:o+"/"+di(k),value:gn(G)}),n.push({op:"replace",path:o+"/"+di(k),value:gn(ne)}))}else Array.isArray(t)===Array.isArray(r)?(s&&n.push({op:"test",path:o+"/"+di(k),value:gn(G)}),n.push({op:"remove",path:o+"/"+di(k)}),w=!0):(s&&n.push({op:"test",path:o,value:t}),n.push({op:"replace",path:o,value:r}),E=!0)}if(!(!w&&p.length==y.length))for(var A=0;A<p.length;A++){var k=p[A];!ci(t,k)&&r[k]!==void 0&&n.push({op:"add",path:o+"/"+di(k),value:gn(r[k])})}}}function bu(t,r,n){n===void 0&&(n=!1);var o=[];return Ya(t,r,o,"",n),o}const Uo=Object.assign({},c,v,{JsonPatchError:gu,deepClone:gn,escapePathComponent:di,unescapePathComponent:Ii});var nc=a(31312),jo=a.n(nc),pi=a(50361),wu=a.n(pi);const rr={add:er,replace:An,remove:ki,merge:Mi,mergeDeep:Au,context:rl,getIn:Ri,applyPatch:Su,parentPathMatch:nl,flatten:Ja,fullyNormalizeArray:Cu,normalizeArray:il,isPromise:Ou,forEachNew:Eu,forEachNewPrimitive:ic,isJsonPatch:Iu,isContextPatch:oc,isPatch:Ho,isMutation:Qa,isAdditiveMutation:Za,isGenerator:ac,isFunction:Tu,isObject:ei,isError:Pu};function Su(t,r,n){if(n=n||{},r=cr(cr({},r),{},{path:r.path&&yn(r.path)}),r.op==="merge"){var o=zo(t,r.path);nn()(o,r.value),zn(t,[An(r.path,o)])}else if(r.op==="mergeDeep"){var s=zo(t,r.path);for(var p in r.value){var y=r.value[p],E=Array.isArray(y);if(E){var w=s[p]||[];s[p]=Ct()(w).call(w,y)}else if(ei(y)&&!E){var A=cr({},s[p]);for(var k in y)if(Object.prototype.hasOwnProperty.call(A,k)){A=jo()(wu()(A),y);break}else nn()(A,Es({},k,y[k]));s[p]=A}else s[p]=y}}else if(r.op==="add"&&r.path===""&&ei(r.value)){var G=Qt()(r.value).reduce(function(ge,Ee){return ge.push({op:"add",path:"/".concat(yn(Ee)),value:r.value[Ee]}),ge},[]);zn(t,G)}else if(r.op==="replace"&&r.path===""){var ne=r,re=ne.value;n.allowMetaPatches&&r.meta&&Za(r)&&(Array.isArray(r.value)||ei(r.value))&&(re=cr(cr({},re),r.meta)),t=re}else if(zn(t,[r]),n.allowMetaPatches&&r.meta&&Za(r)&&(Array.isArray(r.value)||ei(r.value))){var ce=zo(t,r.path),xe=cr(cr({},ce),r.meta);zn(t,[An(r.path,xe)])}return t}function yn(t){return Array.isArray(t)?t.length<1?"":"/".concat(qt()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function er(t,r){return{op:"add",path:t,value:r}}function An(t,r,n){return{op:"replace",path:t,value:r,meta:n}}function ki(t){return{op:"remove",path:t}}function Mi(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function Au(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function rl(t,r){return{type:"context",path:t,value:r}}function Eu(t,r){try{return Vo(t,Wo,r)}catch(n){return n}}function ic(t,r){try{return Vo(t,ea,r)}catch(n){return n}}function Vo(t,r,n){var o,s=qt()(o=sn()(t).call(t,Za)).call(o,function(E){return r(E.value,n,E.path)})||[],p=Ja(s),y=Xa(p);return y}function ea(t,r,n){if(n=n||[],Array.isArray(t))return qt()(t).call(t,function(s,p){return ea(s,r,Ct()(n).call(n,p))});if(ei(t)){var o;return qt()(o=Qt()(t)).call(o,function(s){return ea(t[s],r,Ct()(n).call(n,s))})}return r(t,n[n.length-1],n)}function Wo(t,r,n){n=n||[];var o=[];if(n.length>0){var s=r(t,n[n.length-1],n);s&&(o=Ct()(o).call(o,s))}if(Array.isArray(t)){var p=qt()(t).call(t,function(w,A){return Wo(w,r,Ct()(n).call(n,A))});p&&(o=Ct()(o).call(o,p))}else if(ei(t)){var y,E=qt()(y=Qt()(t)).call(y,function(w){return Wo(t[w],r,Ct()(n).call(n,w))});E&&(o=Ct()(o).call(o,E))}return o=Ja(o),o}function nl(t,r){if(!Array.isArray(r))return!1;for(var n=0,o=r.length;n<o;n+=1)if(r[n]!==t[n])return!1;return!0}function Ri(t,r){return r.reduce(function(n,o){return typeof o!="undefined"&&n?n[o]:n},t)}function Cu(t){return Xa(Ja(il(t)))}function il(t){return Array.isArray(t)?t:[t]}function Ja(t){var r;return Ct()(r=[]).apply(r,Tn(qt()(t).call(t,function(n){return Array.isArray(n)?Ja(n):n})))}function Xa(t){return sn()(t).call(t,function(r){return typeof r!="undefined"})}function ei(t){return t&&ir(t)==="object"}function Ou(t){return ei(t)&&Tu(t.then)}function Tu(t){return t&&typeof t=="function"}function Pu(t){return t instanceof Error}function Iu(t){if(Ho(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function ac(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Qa(t){return Iu(t)||Ho(t)&&t.type==="mutation"}function Za(t){return Qa(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function oc(t){return Ho(t)&&t.type==="context"}function Ho(t){return t&&ir(t)==="object"}function zo(t,r){try{return Lr(t,r)}catch(n){return console.error(n),{}}}var ha=a(52424),al=a.n(ha),Go=a(54098),Fu=a(9779),$o=a.n(Fu);function ol(t,r){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var o=arguments.length,s=new Array(o),p=0;p<o;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return n.prototype=new Error,n.prototype.name=t,n.prototype.constructor=n,n}var sc=a(13692),ku=a.n(sc),Zr=a(47037),Ko=a.n(Zr),Mu=["properties"],Ru=["properties"],Lu=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],va=["schema/example","items/example"];function _a(t){var r=t[t.length-1],n=t[t.length-2],o=t.join("/");return Mu.indexOf(r)>-1&&Ru.indexOf(n)===-1||Lu.indexOf(o)>-1||va.some(function(s){return o.indexOf(s)>-1})}function Du(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.specmap,s=n.getBaseUrlForNodePath,p=s===void 0?function(A){var k;return o.getContext(Ct()(k=[]).call(k,Tn(r),Tn(A))).baseDoc}:s,y=n.targetKeys,E=y===void 0?["$ref","$$ref"]:y,w=[];return ku()(t).forEach(function(){if(Ao()(E).call(E,this.key)&&Ko()(this.node)){var k=this.path,G=Ct()(r).call(r,this.path),ne=Yo(this.node,p(k));w.push(o.replace(G,ne))}}),w}function Yo(t,r){var n,o=t.split("#"),s=rn(o,2),p=s[0],y=s[1],E=Oi.resolve(p||"",r||"");return y?Ct()(n="".concat(E,"#")).call(n,y):E}var sl="application/json, application/yaml",ga=new RegExp("^([a-z]+://|//)","i"),ta=ol("JSONRefError",function(r,n,o){this.originalError=o,nn()(this,n||{})}),In={},ll=new(al()),qa=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],lc=function(r){return qa.some(function(n){return n(r)})},ya={key:"$ref",plugin:function(r,n,o,s){var p=s.getInstance(),y=Pn()(o).call(o,0,-1);if(!(_a(y)||lc(y))){var E=s.getContext(o),w=E.baseDoc;if(typeof r!="string")return new ta("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:o});var A=ma(r),k=A[0],G=A[1]||"",ne;try{ne=w||k?fl(k,w):null}catch(we){return ra(we,{pointer:G,$ref:r,basePath:ne,fullPath:o})}var re,ce;if(cc(G,ne,y,s)&&!p.useCircularStructures){var xe=Yo(r,ne);return r===xe?null:rr.replace(o,xe)}if(ne==null?(ce=ti(G),re=s.get(ce),typeof re=="undefined"&&(re=new ta("Could not resolve reference: ".concat(r),{pointer:G,$ref:r,baseDoc:w,fullPath:o}))):(re=xa(ne,G),re.__value!=null?re=re.__value:re=re.catch(function(we){throw ra(we,{pointer:G,$ref:r,baseDoc:w,fullPath:o})})),re instanceof Error)return[rr.remove(o),re];var ge=Yo(r,ne),Ee=rr.replace(y,re,{$$ref:ge});if(ne&&ne!==w)return[Ee,rr.context(y,{baseDoc:ne})];try{if(!dc(s.state,Ee)||p.useCircularStructures)return Ee}catch(we){return null}}}},ul=nn()(ya,{docCache:In,absoluteify:fl,clearCache:eo,JSONRefError:ta,wrapError:ra,getDoc:cl,split:ma,extractFromDoc:xa,fetchJSON:uc,extract:Jo,jsonPointerToArray:ti,unescapeJsonPointerToken:na});const Nu=ul;function fl(t,r){if(!ga.test(t)){if(!r){var n;throw new ta(Ct()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(n,r,"'"))}return Oi.resolve(r,t)}return t}function ra(t,r){var n;if(t&&t.response&&t.response.body){var o;n=Ct()(o="".concat(t.response.body.code," ")).call(o,t.response.body.message)}else n=t.message;return new ta("Could not resolve reference: ".concat(n),r,t)}function ma(t){return(t+"").split("#")}function xa(t,r){var n=In[t];if(n&&!rr.isPromise(n))try{var o=Jo(r,n);return nn()(Qi().resolve(o),{__value:o})}catch(s){return Qi().reject(s)}return cl(t).then(function(s){return Jo(r,s)})}function eo(t){typeof t!="undefined"?delete In[t]:Qt()(In).forEach(function(r){delete In[r]})}function cl(t){var r=In[t];return r?rr.isPromise(r)?r:Qi().resolve(r):(In[t]=ul.fetchJSON(t).then(function(n){return In[t]=n,n}),In[t])}function uc(t){return(0,Go.fetch)(t,{headers:{Accept:sl},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Ls().safeLoad(r)})}function Jo(t,r){var n=ti(t);if(n.length<1)return r;var o=rr.getIn(r,n);if(typeof o=="undefined")throw new ta("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return o}function ti(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(ir(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:qt()(r=t.split("/")).call(r,na)}function na(t){return typeof t!="string"?t:$o().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function ba(t){return $o().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function fc(t){return t.length===0?"":"/".concat(qt()(t).call(t,ba).join("/"))}var Bu=function(r){return!r||r==="/"||r==="#"};function dl(t,r){if(Bu(r))return!0;var n=t.charAt(r.length),o=Pn()(r).call(r,-1);return t.indexOf(r)===0&&(!n||n==="/"||n==="#")&&o!=="#"}function cc(t,r,n,o){var s,p,y=ll.get(o);y||(y={},ll.set(o,y));var E=fc(n),w=Ct()(s="".concat(r||"<specmap-base>","#")).call(s,t),A=E.replace(/allOf\/\d+\/?/g,""),k=o.contextTree.get([]).baseDoc;if(r==k&&dl(A,t))return!0;var G="",ne=n.some(function(re){var ce;return G=Ct()(ce="".concat(G,"/")).call(ce,ba(re)),y[G]&&y[G].some(function(xe){return dl(xe,w)||dl(w,xe)})});if(ne)return!0;y[A]=Ct()(p=y[A]||[]).call(p,w)}function dc(t,r){var n=[t];return r.path.reduce(function(s,p){return n.push(s[p]),s[p]},t),o(r.value);function o(s){return rr.isObject(s)&&(n.indexOf(s)>=0||Qt()(s).some(function(p){return o(s[p])}))}}var ln=a(41609),Uu=a.n(ln);const pc={key:"allOf",plugin:function(r,n,o,s,p){if(!(p.meta&&p.meta.$$ref)){var y=Pn()(o).call(o,0,-1);if(!_a(y)){if(!Array.isArray(r)){var E=new TypeError("allOf must be an array");return E.fullPath=o,E}var w=!1,A=p.value;if(y.forEach(function(ne){!A||(A=A[ne])}),A=cr({},A),!Uu()(A)){delete A.allOf;var k=[];if(k.push(s.replace(y,{})),r.forEach(function(ne,re){if(!s.isObject(ne)){if(w)return null;w=!0;var ce=new TypeError("Elements in allOf must be objects");return ce.fullPath=o,k.push(ce)}k.push(s.mergeDeep(y,ne));var xe=Pn()(o).call(o,0,-1),ge=Du(ne,xe,{getBaseUrlForNodePath:function(we){var Te;return s.getContext(Ct()(Te=[]).call(Te,Tn(o),[re],Tn(we))).baseDoc},specmap:s});k.push.apply(k,Tn(ge))}),k.push(s.mergeDeep(y,A)),!A.$$ref){var G;k.push(s.remove(Ct()(G=[]).call(G,y,"$$ref")))}return k}}}}},hc={key:"parameters",plugin:function(r,n,o,s){if(Array.isArray(r)&&r.length){var p=nn()([],r),y=Pn()(o).call(o,0,-1),E=cr({},rr.getIn(s.spec,y));return r.forEach(function(w,A){try{p[A].default=s.parameterMacro(E,w)}catch(G){var k=new Error(G);return k.fullPath=o,k}}),rr.replace(o,p)}return rr.replace(o,r)}},vc={key:"properties",plugin:function(r,n,o,s){var p=cr({},r);for(var y in r)try{p[y].default=s.modelPropertyMacro(p[y])}catch(A){var E=new Error(A);return E.fullPath=o,E}var w=rr.replace(o,p);return w}};var ju=function(){function t(r){Co(this,t),this.root=Xo(r||{})}return Bs(t,[{key:"set",value:function(n,o){var s=this.getParent(n,!0);if(!s){to(this.root,o,null);return}var p=n[n.length-1],y=s.children;if(y[p]){to(y[p],o,s);return}y[p]=Xo(o,s)}},{key:"get",value:function(n){if(n=n||[],n.length<1)return this.root.value;for(var o=this.root,s,p,y=0;y<n.length&&(p=n[y],s=o.children,!!s[p]);y+=1)o=s[p];return o&&o.protoValue}},{key:"getParent",value:function(n,o){return!n||n.length<1?null:n.length<2?this.root:Pn()(n).call(n,0,-1).reduce(function(s,p){if(!s)return s;var y=s.children;return!y[p]&&o&&(y[p]=Xo(null,s)),y[p]},this.root)}}]),t}();function Xo(t,r){return to({children:{}},t,r)}function to(t,r,n){return t.value=r||{},t.protoValue=n?cr(cr({},n.protoValue),t.value):t.value,Qt()(t.children).forEach(function(o){var s=t.children[o];t.children[o]=to(s,s.value,t)}),t}var Vu=100,gc=function(){function t(r){var n=this,o,s;Co(this,t),nn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ju,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:nn()(Object.create(this),rr,{getInstance:function(){return n}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=sn()(o=qt()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(o,rr.isFunction),this.patches.push(rr.add([],this.spec)),this.patches.push(rr.context([],this.context)),this.updatePatches(this.patches)}return Bs(t,[{key:"debug",value:function(n){if(this.debugLevel===n){for(var o,s=arguments.length,p=new Array(s>1?s-1:0),y=1;y<s;y++)p[y-1]=arguments[y];(o=console).log.apply(o,p)}}},{key:"verbose",value:function(n){if(this.debugLevel==="verbose"){for(var o,s,p=arguments.length,y=new Array(p>1?p-1:0),E=1;E<p;E++)y[E-1]=arguments[E];(o=console).log.apply(o,Ct()(s=["[".concat(n,"] ")]).call(s,y))}}},{key:"wrapPlugin",value:function(n,o){var s=this.pathDiscriminator,p=null,y;return n[this.pluginProp]?(p=n,y=n[this.pluginProp]):rr.isFunction(n)?y=n:rr.isObject(n)&&(y=E(n)),nn()(y.bind(p),{pluginName:n.name||o,isGenerator:rr.isGenerator(y)});function E(w){var A=function(G,ne){return Array.isArray(G)?G.every(function(re,ce){return re===ne[ce]}):!0};return ar().mark(function k(G,ne){var re,ce,xe,ge,Ee,we;return ar().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:we=function(He,Ne,Ve){var We,Je,ze,et,St,Nt,zt,or,Mr,Er,Qr,wr,Nr;return ar().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(rr.isObject(He)){Yt.next=6;break}if(w.key!==Ne[Ne.length-1]){Yt.next=4;break}return Yt.next=4,w.plugin(He,w.key,Ne,ne);case 4:Yt.next=30;break;case 6:We=Ne.length-1,Je=Ne[We],ze=Ne.indexOf("properties"),et=Je==="properties"&&We===ze,St=ne.allowMetaPatches&&ce[He.$$ref],Nt=0,zt=Qt()(He);case 12:if(!(Nt<zt.length)){Yt.next=30;break}if(or=zt[Nt],Mr=He[or],Er=Ct()(Ne).call(Ne,or),Qr=rr.isObject(Mr),wr=He.$$ref,St){Yt.next=22;break}if(!Qr){Yt.next=22;break}return ne.allowMetaPatches&&wr&&(ce[wr]=!0),Yt.delegateYield(we(Mr,Er,Ve),"t0",22);case 22:if(!(!et&&or===w.key)){Yt.next=27;break}if(Nr=A(s,Ne),!(!s||Nr)){Yt.next=27;break}return Yt.next=27,w.plugin(Mr,or,Er,ne,Ve);case 27:Nt++,Yt.next=12;break;case 30:case"end":return Yt.stop()}},re)},re=ar().mark(we),ce={},xe=Gi(sn()(G).call(G,rr.isAdditiveMutation)),$e.prev=4,xe.s();case 6:if((ge=xe.n()).done){$e.next=11;break}return Ee=ge.value,$e.delegateYield(we(Ee.value,Ee.path,Ee),"t0",9);case 9:$e.next=6;break;case 11:$e.next=16;break;case 13:$e.prev=13,$e.t1=$e.catch(4),xe.e($e.t1);case 16:return $e.prev=16,xe.f(),$e.finish(16);case 19:case"end":return $e.stop()}},k,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var n=this;return hu()(this.wrappedPlugins,function(o){var s=n.getMutationsForPlugin(o);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var n;return Qi().race(qt()(n=this.promisedPatches).call(n,function(o){return o.value}))}}},{key:"getPluginHistory",value:function(n){var o=this.constructor.getPluginName(n);return this.pluginHistory[o]||[]}},{key:"getPluginRunCount",value:function(n){return this.getPluginHistory(n).length}},{key:"getPluginHistoryTip",value:function(n){var o=this.getPluginHistory(n),s=o&&o[o.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(n){var o=this.getPluginHistoryTip(n).mutationIndex;return typeof o!="number"?-1:o}},{key:"updatePluginHistory",value:function(n,o){var s=this.constructor.getPluginName(n);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(o)}},{key:"updatePatches",value:function(n){var o=this;rr.normalizeArray(n).forEach(function(s){if(s instanceof Error){o.errors.push(s);return}try{if(!rr.isObject(s)){o.debug("updatePatches","Got a non-object patch",s);return}if(o.showDebug&&o.allPatches.push(s),rr.isPromise(s.value)){o.promisedPatches.push(s),o.promisedPatchThen(s);return}if(rr.isContextPatch(s)){o.setContext(s.path,s.value);return}if(rr.isMutation(s)){o.updateMutations(s);return}}catch(p){console.error(p),o.errors.push(p)}})}},{key:"updateMutations",value:function(n){ir(n.value)==="object"&&!Array.isArray(n.value)&&this.allowMetaPatches&&(n.value=cr({},n.value));var o=rr.applyPatch(this.state,n,{allowMetaPatches:this.allowMetaPatches});o&&(this.mutations.push(n),this.state=o)}},{key:"removePromisedPatch",value:function(n){var o,s=this.promisedPatches.indexOf(n);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}pu()(o=this.promisedPatches).call(o,s,1)}},{key:"promisedPatchThen",value:function(n){var o=this;return n.value=n.value.then(function(s){var p=cr(cr({},n),{},{value:s});o.removePromisedPatch(n),o.updatePatches(p)}).catch(function(s){o.removePromisedPatch(n),o.updatePatches(s)}),n.value}},{key:"getMutations",value:function(n,o){var s;return n=n||0,typeof o!="number"&&(o=this.mutations.length),Pn()(s=this.mutations).call(s,n,o)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(n){var o=this.getPluginMutationIndex(n);return this.getMutations(o+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(n){return rr.getIn(this.state,n)}},{key:"_getContext",value:function(n){return this.contextTree.get(n)}},{key:"setContext",value:function(n,o){return this.contextTree.set(n,o)}},{key:"_hasRun",value:function(n){var o=this.getPluginRunCount(this.getCurrentPlugin());return o>(n||0)}},{key:"dispatch",value:function(){var n=this,o=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return n.dispatch()}).catch(function(){return n.dispatch()});var y={spec:this.state,errors:this.errors};return this.showDebug&&(y.patches=this.allPatches),Qi().resolve(y)}if(o.pluginCount=o.pluginCount||{},o.pluginCount[s]=(o.pluginCount[s]||0)+1,o.pluginCount[s]>Vu){var E;return Qi().resolve({spec:o.state,errors:Ct()(E=o.errors).call(E,new Error("We've reached a hard limit of ".concat(Vu," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,A=qt()(w=this.promisedPatches).call(w,function(ne){return ne.value});return Qi().all(qt()(A).call(A,function(ne){return ne.then(pa(),pa())})).then(function(){return n.dispatch()})}return k();function k(){o.currentPlugin=s;var ne=o.getCurrentMutations(),re=o.mutations.length-1;try{if(s.isGenerator){var ce=Gi(s(ne,o.getLib())),xe;try{for(ce.s();!(xe=ce.n()).done;){var ge=xe.value;G(ge)}}catch(we){ce.e(we)}finally{ce.f()}}else{var Ee=s(ne,o.getLib());G(Ee)}}catch(we){console.error(we),G([nn()(Object.create(we),{plugin:s})])}finally{o.updatePluginHistory(s,{mutationIndex:re})}return o.dispatch()}function G(ne){ne&&(ne=rr.fullyNormalizeArray(ne),o.updatePatches(ne,s))}}}],[{key:"getPluginName",value:function(n){return n.pluginName}},{key:"getPatchesOfType",value:function(n,o){return sn()(n).call(n,o)}}]),t}();function yc(t){return new gc(t).dispatch()}var mn={refs:Nu,allOf:pc,parameters:hc,properties:vc},ro=a(13218),no=a.n(ro),wa=function(r){return String.prototype.toLowerCase.call(r)},ri=function(r){return r.replace(/[^\w]/gi,"_")};function Wu(t){var r=t.openapi;return r?Hi()(r,"3"):!1}function kd(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function hi(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=o.v2OperationIdCompatibilityMode;if(!t||ir(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?ri(t.operationId):Hu(r,n,{v2OperationIdCompatibilityMode:s})}function Hu(t,r){var n,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=o.v2OperationIdCompatibilityMode;if(s){var p,y,E=Ct()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return E=E||Ct()(y="".concat(t.substring(1),"_")).call(y,r),E.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Ct()(n="".concat(wa(r))).call(n,ri(t))}function pl(t,r){var n;return Ct()(n="".concat(wa(r),"-")).call(n,t)}function zu(t,r){return!t||!t.paths?null:Qo(t,function(n){var o=n.pathName,s=n.method,p=n.operation;if(!p||ir(p)!=="object")return!1;var y=p.operationId,E=hi(p,o,s),w=pl(o,s);return[E,w,y].some(function(A){return A&&A===r})})}function Qo(t,r){return ia(t,r,!0)||null}function ia(t,r,n){if(!t||ir(t)!=="object"||!t.paths||ir(t.paths)!=="object")return null;var o=t.paths;for(var s in o)for(var p in o[s])if(p.toUpperCase()!=="PARAMETERS"){var y=o[s][p];if(!(!y||ir(y)!=="object")){var E={spec:t,pathName:s,method:p.toUpperCase(),operation:y},w=r(E);if(n&&w)return E}}}function Zo(t){var r=t.spec,n=r.paths,o={};if(!n||r.$$normalized)return t;for(var s in n){var p=n[s];if(!!no()(p)){var y=p.parameters,E=function(G){var ne=p[G];if(!no()(ne))return"continue";var re=hi(ne,s,G);if(re){o[re]?o[re].push(ne):o[re]=[ne];var ce=o[re];if(ce.length>1)ce.forEach(function(Je,ze){var et;Je.__originalOperationId=Je.__originalOperationId||Je.operationId,Je.operationId=Ct()(et="".concat(re)).call(et,ze+1)});else if(typeof ne.operationId!="undefined"){var xe=ce[0];xe.__originalOperationId=xe.__originalOperationId||ne.operationId,xe.operationId=re}}if(G!=="parameters"){var ge=[],Ee={};for(var we in r)(we==="produces"||we==="consumes"||we==="security")&&(Ee[we]=r[we],ge.push(Ee));if(y&&(Ee.parameters=y,ge.push(Ee)),ge.length){var Te=Gi(ge),$e;try{for(Te.s();!($e=Te.n()).done;){var je=$e.value;for(var He in je)if(!ne[He])ne[He]=je[He];else if(He==="parameters"){var Ne=Gi(je[He]),Ve;try{var We=function(){var ze=Ve.value,et=ne[He].some(function(St){return St.name&&St.name===ze.name||St.$ref&&St.$ref===ze.$ref||St.$$ref&&St.$$ref===ze.$$ref||St===ze});et||ne[He].push(ze)};for(Ne.s();!(Ve=Ne.n()).done;)We()}catch(Je){Ne.e(Je)}finally{Ne.f()}}}}catch(Je){Te.e(Je)}finally{Te.f()}}}};for(var w in p)var A=E(w)}}return r.$$normalized=!0,t}function _o(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.requestInterceptor,o=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:n,responseInterceptor:o,headers:{Accept:sl},credentials:s}).then(function(y){return y.body})}}function hl(){mn.refs.clearCache()}function Gu(t){var r=t.fetch,n=t.spec,o=t.url,s=t.mode,p=t.allowMetaPatches,y=p===void 0?!0:p,E=t.pathDiscriminator,w=t.modelPropertyMacro,A=t.parameterMacro,k=t.requestInterceptor,G=t.responseInterceptor,ne=t.skipNormalization,re=t.useCircularStructures,ce=t.http,xe=t.baseDoc;if(xe=xe||o,ce=r||ce||Pi,!n)return _o(ce,{requestInterceptor:k,responseInterceptor:G})(xe).then(ge);return ge(n);function ge(Ee){xe&&(mn.refs.docCache[xe]=Ee),mn.refs.fetchJSON=_o(ce,{requestInterceptor:k,responseInterceptor:G});var we=[mn.refs];return typeof A=="function"&&we.push(mn.parameters),typeof w=="function"&&we.push(mn.properties),s!=="strict"&&we.push(mn.allOf),yc({spec:Ee,context:{baseDoc:xe},plugins:we,allowMetaPatches:y,pathDiscriminator:E,parameterMacro:A,modelPropertyMacro:w,useCircularStructures:re}).then(ne?function(){var Te=ks(ar().mark(function $e(je){return ar().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.abrupt("return",je);case 1:case"end":return Ne.stop()}},$e)}));return function($e){return Te.apply(this,arguments)}}():Zo)}}var io=a(27361),Sa=a.n(io);function mc(t,r){return qo.apply(this,arguments)}function qo(){return qo=ks(ar().mark(function t(r,n){var o,s,p,y,E,w,A,k,G,ne,re,ce,xe=arguments;return ar().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return o=xe.length>2&&xe[2]!==void 0?xe[2]:{},s=o.returnEntireTree,p=o.baseDoc,y=o.requestInterceptor,E=o.responseInterceptor,w=o.parameterMacro,A=o.modelPropertyMacro,k=o.useCircularStructures,G={pathDiscriminator:n,baseDoc:p,requestInterceptor:y,responseInterceptor:E,parameterMacro:w,modelPropertyMacro:A,useCircularStructures:k},ne=Zo({spec:r}),re=ne.spec,Ee.next=6,Gu(cr(cr({},G),{},{spec:re,allowMetaPatches:!0,skipNormalization:!0}));case 6:return ce=Ee.sent,!s&&Array.isArray(n)&&n.length&&(ce.spec=Sa()(ce.spec,n)||null),Ee.abrupt("return",ce);case 9:case"end":return Ee.stop()}},t)})),qo.apply(this,arguments)}var es=function(){return null},xc=function(r){return Array.isArray(r)?r:[r]},ts={mapTagOperations:wc,makeExecute:ao};function ao(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var n=r.pathName,o=r.method,s=r.operationId;return function(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(cr(cr({spec:t.spec},Eo()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:n,method:o,parameters:p,operationId:s},y))}}}function bc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=ts.makeExecute(t),n=ts.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),o={};for(var s in n){o[s]={operations:{}};for(var p in n[s])o[s].operations[p]={execute:n[s][p]}}return{apis:o}}function $u(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=ts.makeExecute(t);return{apis:ts.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function wc(t){var r=t.spec,n=t.cb,o=n===void 0?es:n,s=t.defaultTag,p=s===void 0?"default":s,y=t.v2OperationIdCompatibilityMode,E={},w={};return ia(r,function(A){var k=A.pathName,G=A.method,ne=A.operation,re=ne.tags?xc(ne.tags):[p];re.forEach(function(ce){if(typeof ce=="string"){w[ce]=w[ce]||{};var xe=w[ce],ge=hi(ne,k,G,{v2OperationIdCompatibilityMode:y}),Ee=o({spec:r,pathName:k,method:G,operation:ne,operationId:ge});if(E[ge]){var we;E[ge]+=1,xe[Ct()(we="".concat(ge)).call(we,E[ge])]=Ee}else if(typeof xe[ge]!="undefined"){var Te,$e,je=E[ge]||1;E[ge]=je+1,xe[Ct()(Te="".concat(ge)).call(Te,E[ge])]=Ee;var He=xe[ge];delete xe[ge],xe[Ct()($e="".concat(ge)).call($e,je)]=He}else xe[ge]=Ee}})}),w}var rs=a(95683);function Ku(t,r){if(t==null)return{};var n={},o=As(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(rs(r).call(r,s)>=0)&&(n[s]=t[s]);return n}function Sc(t,r){if(t==null)return{};var n=Ku(t,r),o,s;if(Vi){var p=Vi(t);for(s=0;s<p.length;s++)o=p[s],!(rs(r).call(r,o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(n[o]=t[o]))}return n}var Yu=a(68630),vl=a.n(Yu),Ac=a(1469),gl=a.n(Ac),oo=a(76489);const so={body:Ec,header:Cc,query:Tc,path:Oc,formData:Ju};function Ec(t){var r=t.req,n=t.value;r.body=n}function Ju(t){var r=t.req,n=t.value,o=t.parameter;(n||o.allowEmptyValue)&&(r.form=r.form||{},r.form[o.name]={value:n,allowEmptyValue:o.allowEmptyValue,collectionFormat:o.collectionFormat})}function Cc(t){var r=t.req,n=t.parameter,o=t.value;r.headers=r.headers||{},typeof o!="undefined"&&(r.headers[n.name]=o)}function Oc(t){var r=t.req,n=t.value,o=t.parameter;r.url=r.url.split("{".concat(o.name,"}")).join(encodeURIComponent(n))}function Tc(t){var r=t.req,n=t.value,o=t.parameter;if(r.query=r.query||{},n===!1&&o.type==="boolean"&&(n="false"),n===0&&["number","integer"].indexOf(o.type)>-1&&(n="0"),n)r.query[o.name]={collectionFormat:o.collectionFormat,value:n};else if(o.allowEmptyValue&&n!==void 0){var s=o.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function ns(t,r){return Ao()(r).call(r,"application/json")?typeof t=="string"?t:La()(t):t.toString()}function Xu(t){var r=t.req,n=t.value,o=t.parameter,s=o.name,p=o.style,y=o.explode,E=o.content;if(E){var w=Qt()(E)[0];r.url=r.url.split("{".concat(s,"}")).join(Rr(ns(n,w),{escape:!0}));return}var A=qn({key:o.name,value:n,style:p||"simple",explode:y||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(A)}function Pc(t){var r=t.req,n=t.value,o=t.parameter;if(r.query=r.query||{},o.content){var s=Qt()(o.content)[0];r.query[o.name]=ns(n,s);return}if(n===!1&&(n="false"),n===0&&(n="0"),n)r.query[o.name]={value:n,serializationOption:Eo()(o,["style","explode","allowReserved"])};else if(o.allowEmptyValue&&n!==void 0){var p=o.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var Ic=["accept","authorization","content-type"];function Qu(t){var r=t.req,n=t.parameter,o=t.value;if(r.headers=r.headers||{},!(Ic.indexOf(n.name.toLowerCase())>-1)){if(n.content){var s=Qt()(n.content)[0];r.headers[n.name]=ns(o,s);return}typeof o!="undefined"&&(r.headers[n.name]=qn({key:n.name,value:o,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function yl(t){var r=t.req,n=t.parameter,o=t.value;r.headers=r.headers||{};var s=ir(o);if(n.content){var p,y=Qt()(n.content)[0];r.headers.Cookie=Ct()(p="".concat(n.name,"=")).call(p,ns(o,y));return}if(s!=="undefined"){var E=s==="object"&&!Array.isArray(o)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=E+qn({key:n.name,value:o,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var Zu=a(50706),_u=a.n(Zu);function qu(t,r){var n=t.operation,o=t.requestBody,s=t.securities,p=t.spec,y=t.attachContentTypeForEmptyPayload,E=t.requestContentType;r=Aa({request:r,securities:s,operation:n,spec:p});var w=n.requestBody||{},A=Qt()(w.content||{}),k=E&&A.indexOf(E)>-1;if(o||y){if(E&&k)r.headers["Content-Type"]=E;else if(!E){var G=A[0];G&&(r.headers["Content-Type"]=G,E=G)}}else E&&k&&(r.headers["Content-Type"]=E);if(!t.responseContentType&&n.responses){var ne,re=sn()(ne=Da()(n.responses)).call(ne,function(xe){var ge=rn(xe,2),Ee=ge[0],we=ge[1],Te=parseInt(Ee,10);return Te>=200&&Te<300&&vl()(we.content)}).reduce(function(xe,ge){var Ee=rn(ge,2),we=Ee[1];return Ct()(xe).call(xe,Qt()(we.content))},[]);re.length>0&&(r.headers.accept=re.join(", "))}if(o)if(E){if(A.indexOf(E)>-1)if(E==="application/x-www-form-urlencoded"||E==="multipart/form-data")if(ir(o)==="object"){var ce=(w.content[E]||{}).encoding||{};r.form={},Qt()(o).forEach(function(xe){r.form[xe]={value:o[xe],encoding:ce[xe]||{}}})}else r.form=o;else r.body=o}else r.body=o;return r}function Aa(t){var r=t.request,n=t.securities,o=n===void 0?{}:n,s=t.operation,p=s===void 0?{}:s,y=t.spec,E=Wi()({},r),w=o.authorized,A=w===void 0?{}:w,k=p.security||y.security||[],G=A&&!!Qt()(A).length,ne=Sa()(y,["components","securitySchemes"])||{};return E.headers=E.headers||{},E.query=E.query||{},!Qt()(o).length||!G||!k||Array.isArray(p.security)&&!p.security.length?r:(k.forEach(function(re){Qt()(re).forEach(function(ce){var xe=A[ce],ge=ne[ce];if(!!xe){var Ee=xe.value||xe,we=ge.type;if(xe){if(we==="apiKey")ge.in==="query"&&(E.query[ge.name]=Ee),ge.in==="header"&&(E.headers[ge.name]=Ee),ge.in==="cookie"&&(E.cookies[ge.name]=Ee);else if(we==="http"){if(/^basic$/i.test(ge.scheme)){var Te,$e=Ee.username||"",je=Ee.password||"",He=_u()(Ct()(Te="".concat($e,":")).call(Te,je));E.headers.Authorization="Basic ".concat(He)}/^bearer$/i.test(ge.scheme)&&(E.headers.Authorization="Bearer ".concat(Ee))}else if(we==="oauth2"||we==="openIdConnect"){var Ne,Ve=xe.token||{},We=ge["x-tokenName"]||"access_token",Je=Ve[We],ze=Ve.token_type;(!ze||ze.toLowerCase()==="bearer")&&(ze="Bearer"),E.headers.Authorization=Ct()(Ne="".concat(ze," ")).call(Ne,Je)}}}})}),E)}function ef(t,r){var n=t.spec,o=t.operation,s=t.securities,p=t.requestContentType,y=t.responseContentType,E=t.attachContentTypeForEmptyPayload;if(r=is({request:r,securities:s,operation:o,spec:n}),r.body||r.form||E){var w,A;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(o.consumes)){var k=rn(o.consumes,1);r.headers["Content-Type"]=k[0]}else if(Array.isArray(n.consumes)){var G=rn(n.consumes,1);r.headers["Content-Type"]=G[0]}else o.parameters&&sn()(w=o.parameters).call(w,function(ge){return ge.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":o.parameters&&sn()(A=o.parameters).call(A,function(ge){return ge.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var ne,re,ce=o.parameters&&sn()(ne=o.parameters).call(ne,function(ge){return ge.in==="body"}).length>0,xe=o.parameters&&sn()(re=o.parameters).call(re,function(ge){return ge.in==="formData"}).length>0;(ce||xe)&&(r.headers["Content-Type"]=p)}return!y&&Array.isArray(o.produces)&&o.produces.length>0&&(r.headers.accept=o.produces.join(", ")),r}function is(t){var r=t.request,n=t.securities,o=n===void 0?{}:n,s=t.operation,p=s===void 0?{}:s,y=t.spec,E=Wi()({},r),w=o.authorized,A=w===void 0?{}:w,k=o.specSecurity,G=k===void 0?[]:k,ne=p.security||G,re=A&&!!Qt()(A).length,ce=y.securityDefinitions;return E.headers=E.headers||{},E.query=E.query||{},!Qt()(o).length||!re||!ne||Array.isArray(p.security)&&!p.security.length?r:(ne.forEach(function(xe){Qt()(xe).forEach(function(ge){var Ee=A[ge];if(!!Ee){var we=Ee.token,Te=Ee.value||Ee,$e=ce[ge],je=$e.type,He=$e["x-tokenName"]||"access_token",Ne=we&&we[He],Ve=we&&we.token_type;if(Ee){if(je==="apiKey"){var We=$e.in==="query"?"query":"headers";E[We]=E[We]||{},E[We][$e.name]=Te}else if(je==="basic")if(Te.header)E.headers.authorization=Te.header;else{var Je,ze=Te.username||"",et=Te.password||"";Te.base64=_u()(Ct()(Je="".concat(ze,":")).call(Je,et)),E.headers.authorization="Basic ".concat(Te.base64)}else if(je==="oauth2"&&Ne){var St;Ve=!Ve||Ve.toLowerCase()==="bearer"?"Bearer":Ve,E.headers.authorization=Ct()(St="".concat(Ve," ")).call(St,Ne)}}}})}),E)}var tf=function(r){return Array.isArray(r)?r:[]},Fc=ol("OperationNotFoundError",function(r,n,o){this.originalError=o,nn()(this,n||{})}),kc=function(r,n){return sn()(n).call(n,function(o){return o.name===r})},pr=function(r){var n={};r.forEach(function(s){n[s.in]||(n[s.in]={}),n[s.in][s.name]=s});var o=[];return Qt()(n).forEach(function(s){Qt()(n[s]).forEach(function(p){o.push(n[s][p])})}),o},Mc={buildRequest:Ea};function ml(t){var r=t.http,n=t.fetch,o=t.spec,s=t.operationId,p=t.pathName,y=t.method,E=t.parameters,w=t.securities,A=Sc(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),k=r||n||Pi;p&&y&&!s&&(s=pl(p,y));var G=Mc.buildRequest(cr({spec:o,operationId:s,parameters:E,securities:w,http:k},A));return G.body&&(vl()(G.body)||gl()(G.body))&&(G.body=La()(G.body)),k(G)}function Ea(t){var r,n,o=t.spec,s=t.operationId,p=t.responseContentType,y=t.scheme,E=t.requestInterceptor,w=t.responseInterceptor,A=t.contextUrl,k=t.userFetch,G=t.server,ne=t.serverVariables,re=t.http,ce=t.parameters,xe=t.parameterBuilders,ge=Wu(o);xe||(ge?xe=x:xe=so);var Ee=re&&re.withCredentials?"include":"same-origin",we={url:"",credentials:Ee,headers:{},cookies:{}};E&&(we.requestInterceptor=E),w&&(we.responseInterceptor=w),k&&(we.userFetch=k);var Te=zu(o,s);if(!Te)throw new Fc("Operation ".concat(s," not found"));var $e=Te.operation,je=$e===void 0?{}:$e,He=Te.method,Ne=Te.pathName;if(we.url+=lo({spec:o,scheme:y,contextUrl:A,server:G,serverVariables:ne,pathName:Ne,method:He}),!s)return delete we.cookies,we;we.url+=Ne,we.method="".concat(He).toUpperCase(),ce=ce||{};var Ve=o.paths[Ne]||{};p&&(we.headers.accept=p);var We=pr(Ct()(r=Ct()(n=[]).call(n,tf(je.parameters))).call(r,tf(Ve.parameters)));We.forEach(function(et){var St=xe[et.in],Nt;if(et.in==="body"&&et.schema&&et.schema.properties&&(Nt=ce),Nt=et&&et.name&&ce[et.name],typeof Nt=="undefined"){var zt;Nt=et&&et.name&&ce[Ct()(zt="".concat(et.in,".")).call(zt,et.name)]}else if(kc(et.name,We).length>1){var or;console.warn(Ct()(or="Parameter '".concat(et.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(or,et.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Nt!==null){if(typeof et.default!="undefined"&&typeof Nt=="undefined"&&(Nt=et.default),typeof Nt=="undefined"&&et.required&&!et.allowEmptyValue)throw new Error("Required parameter ".concat(et.name," is not provided"));if(ge&&et.schema&&et.schema.type==="object"&&typeof Nt=="string")try{Nt=JSON.parse(Nt)}catch(Mr){throw new Error("Could not parse object parameter value string as JSON")}St&&St({req:we,parameter:et,value:Nt,operation:je,spec:o})}});var Je=cr(cr({},t),{},{operation:je});if(ge?we=qu(Je,we):we=ef(Je,we),we.cookies&&Qt()(we.cookies).length){var ze=Qt()(we.cookies).reduce(function(et,St){var Nt=we.cookies[St],zt=et?"&":"",or=oo.serialize(St,Nt);return et+zt+or},"");we.headers.Cookie=ze}return we.cookies&&delete we.cookies,du(we),we}var En=function(r){return r?r.replace(/\W/g,""):null};function lo(t){var r=Wu(t.spec);return r?xl(t):af(t)}function xl(t){var r=t.spec,n=t.pathName,o=t.method,s=t.server,p=t.contextUrl,y=t.serverVariables,E=y===void 0?{}:y,w=Sa()(r,["paths",n,(o||"").toLowerCase(),"servers"])||Sa()(r,["paths",n,"servers"])||Sa()(r,["servers"]),A="",k=null;if(s&&w&&w.length){var G=qt()(w).call(w,function(ce){return ce.url});G.indexOf(s)>-1&&(A=s,k=w[G.indexOf(s)])}if(!A&&w&&w.length){A=w[0].url;var ne=rn(w,1);k=ne[0]}if(A.indexOf("{")>-1){var re=nf(A);re.forEach(function(ce){if(k.variables&&k.variables[ce]){var xe=k.variables[ce],ge=E[ce]||xe.default,Ee=new RegExp("{".concat(ce,"}"),"g");A=A.replace(Ee,ge)}})}return rf(A,p)}function rf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t&&r?Oi.parse(Oi.resolve(r,t)):Oi.parse(t),o=Oi.parse(r),s=En(n.protocol)||En(o.protocol)||"",p=n.host||o.host,y=n.pathname||"",E;if(s&&p){var w;E=Ct()(w="".concat(s,"://")).call(w,p+y)}else E=y;return E[E.length-1]==="/"?Pn()(E).call(E,0,-1):E}function nf(t){for(var r=[],n=/{([^}]+)}/g,o;o=n.exec(t);)r.push(o[1]);return r}function af(t){var r=t.spec,n=t.scheme,o=t.contextUrl,s=o===void 0?"":o,p=Oi.parse(s),y=Array.isArray(r.schemes)?r.schemes[0]:null,E=n||y||En(p.protocol)||"http",w=r.host||p.host||"",A=r.basePath||"",k;if(E&&w){var G;k=Ct()(G="".concat(E,"://")).call(G,w+A)}else k=A;return k[k.length-1]==="/"?Pn()(k).call(k,0,-1):k}xr.http=Pi,xr.makeHttp=Js.bind(null,xr.http),xr.resolve=Gu,xr.resolveSubtree=mc,xr.execute=ml,xr.serializeRes=fu,xr.serializeHeaders=Ks,xr.clearCache=hl,xr.makeApisTagOperation=$u,xr.buildRequest=Ea,xr.helpers={opId:hi},xr.getBaseUrl=lo;function xr(t){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?n.url=t:n=t,!(this instanceof xr))return new xr(n);Wi()(this,n);var o=this.resolve().then(function(){return r.disableInterfaces||Wi()(r,xr.makeApisTagOperation(r)),r});return o.client=this,o}xr.prototype={http:Pi,execute:function(r){return this.applyDefaults(),xr.execute(cr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return xr.resolve(cr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},n)).then(function(o){return r.originalSpec=r.spec,r.spec=o.spec,r.errors=o.errors,r})}},xr.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&Hi()(n,"http")){var o=Oi.parse(n);r.host||(r.host=o.host),r.schemes||(r.schemes=[o.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Rc=xr.helpers;const Lc=xr;var Gt=a(25446),bl=a(11429),Wt=a(76671),of=a(7930),uo=a(51027),Cn=a(78722),sf=a(17673),Fn=a(64776),Dc=Object.defineProperty,Sr=Object.defineProperties,Nc=Object.getOwnPropertyDescriptors,lf=Object.getOwnPropertySymbols,Bc=Object.prototype.hasOwnProperty,as=Object.prototype.propertyIsEnumerable,e=(t,r,n)=>r in t?Dc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,i=(t,r)=>{for(var n in r||(r={}))Bc.call(r,n)&&e(t,n,r[n]);if(lf)for(var n of lf(r))as.call(r,n)&&e(t,n,r[n]);return t},u=(t,r)=>Sr(t,Nc(r)),l=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});const f="/oauth2-redirect.html";class m{static authorizeImplicit({authorizationUrl:r,clientId:n,scopes:o,extraParams:s={},routingBasePath:p,redirectUri:y,successCallback:E,errorCallback:w}){const A=(0,Fn.p8)({date:new Date().toString()}),k=new URL(r),G=p==="/"?"":p,ne=`${window.location.origin}${G}${f}`;k.searchParams.set("client_id",n),k.searchParams.set("redirect_uri",y||ne),k.searchParams.set("response_type","token"),k.searchParams.set("state",A),Array.isArray(o)&&k.searchParams.set("scope",o.join(" "));for(const re in s)k.searchParams.set(re,s[re]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:n,scopes:o},state:A,successCallback:re=>{E(re),m.clearRedirectData("implicit")},errorCallback:re=>{w(re),m.clearRedirectData("implicit")}},window.open(k.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:n,clientId:o,clientSecret:s,codeVerifier:p,codeChallenge:y,scopes:E,extraParams:w={},routingBasePath:A,redirectUri:k,successCallback:G,errorCallback:ne}){const re=new URL(r),ce=A==="/"?"":A,xe=`${window.location.origin}${ce}${f}`,ge=(0,Fn.p8)({date:new Date().toString()});re.searchParams.set("client_id",o),re.searchParams.set("redirect_uri",k||xe),re.searchParams.set("response_type","code"),re.searchParams.set("state",ge),Array.isArray(E)&&re.searchParams.set("scope",E.join(" ")),y&&(re.searchParams.set("code_challenge",y),re.searchParams.set("code_challenge_method","S256"));for(const Ee in w)re.searchParams.set(Ee,w[Ee]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:o,scopes:E},state:ge,successCallback:Ee=>l(this,[Ee],function*({auth_code:we}){try{const Te=yield fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:sf.stringify(i(u(i({client_id:o,client_secret:s},p&&{code_verifier:p}),{code:we,grant_type:"authorization_code",redirect_uri:k||xe}),w))});yield U(Te,G,ne)}catch(Te){ne(Te)}m.clearRedirectData("authorizationCode")}),errorCallback:Ee=>{ne(Ee),m.clearRedirectData("authorizationCode")}},window.open(re.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return l(this,arguments,function*({tokenUrl:n,clientId:o,clientSecret:s,scopes:p=[],extraParams:y={},successCallback:E,errorCallback:w}){try{const A=yield fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:sf.stringify(i({client_id:o,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},y))});yield U(A,E,w)}catch(A){w(A)}})}}const F=new m;function U(t,r,n){return l(this,null,function*(){if(t.ok){const o=yield t.json();r(o)}else n(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function H(t){return l(this,null,function*(){return(0,Fn.rS)(yield(0,Fn.JQ)(t))})}var Z=a(68929),me;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(me||(me={}));var Ce;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(Ce||(Ce={}));var De=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});const ke=Object.values(Ce),Ye=["application/octet-stream","application/pdf","application/gzip","application/zip"],tt=["image/","audio/","video/"];function ot(t){if(tt.some(r=>t.startsWith(r)))return t}function ct(t){return Ye.includes(t)?!0:tt.some(r=>t.startsWith(r))}function gt(t){const r=t.type==="array"?t.items:t;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const n=r.contentMediaType||"",o=r.format||r.contentEncoding||(ct(n)?"binary":"");return r.type===me.STRING&&ke.includes(o)}function dt(t,r){if(!t||!t.type||t.type==="any")return ct(r);const n=t.format||t.contentEncoding||"";return t.type===me.STRING&&ke.includes(n)}function xt(t){return new Promise((r,n)=>{const o=new FileReader;o.onload=()=>{const p=o.result.replace(/data:.*\/.*;base64,/g,"");r(p)},o.onerror=()=>n(o.error),o.readAsDataURL(t)})}function Ft({format:t,contentEncoding:r,contentMediaType:n}){return[t,r,n].includes(Ce.BASE64)}function It(t,r){return De(this,null,function*(){const n=Object.values(t);let o=n.length===1?n[0]:n;return r.type===me.STRING&&Ft(r)?o=yield xt(n[0]):r.type===me.ARRAY&&r.items&&(Ft(r.items)?o=yield Promise.all(n.map(p=>De(this,null,function*(){return yield xt(p)}))):o=n),o})}var at=a(39713),Tt=a(58804);const Dr=t=>{(0,d.useEffect)(()=>{t()},[])},br=t=>{useEffect(()=>()=>{t()},[])};var xn=a(21096),un=Object.defineProperty,Ir=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,Fr=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,vr=(t,r,n)=>r in t?un(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,Yr=(t,r)=>{for(var n in r||(r={}))kr.call(r,n)&&vr(t,n,r[n]);if(Fr)for(var n of Fr(r))Ar.call(r,n)&&vr(t,n,r[n]);return t},Ca=(t,r)=>Ir(t,fn(r)),Li=(t,r)=>{var n={};for(var o in t)kr.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&Fr)for(var o of Fr(t))r.indexOf(o)<0&&Ar.call(t,o)&&(n[o]=t[o]);return n};const Jr=t=>Tt.css`
93
+ border: none;
94
+ outline: none;
95
+ padding: 8px;
96
+ border-radius: var(--global-border-radius);
97
+ background-color: var(--${t}-panel-controls-background-color);
98
+ color: var(--color-content-inverse);
99
+ font-family: var(--code-font-family);
100
+ font-size: var(--font-size-base);
101
+
102
+ &::placeholder {
103
+ opacity: 0.6;
104
+ color: var(--color-content-inverse);
105
+ }
106
+
107
+ &:-webkit-autofill {
108
+ background-color: var(--${t}-panel-background-color);
109
+ }
110
+ `,Gn=Tt.default.div`
111
+ display: ${({type:t})=>t==="hidden"?"none":"inline-block"};
112
+ ${({fullWidth:t})=>t?"width: 100%;":""}
113
+ `,Wr=Tt.default.div`
114
+ position: relative;
115
+ `,wl=Tt.default.input`
116
+ ${({panel:t})=>Jr(t)}
117
+ ${({inputType:t,inputActionButton:r})=>t==="password"||r?"padding-right: 40px;":""};
118
+ ${({fullWidth:t})=>t?"width: 100%;":""}
119
+ `,ni=Tt.default.span`
120
+ position: absolute;
121
+ right: 0;
122
+ line-height: normal;
123
+
124
+ font-size: 0.8em;
125
+ padding: calc(8px / 0.8);
126
+ cursor: pointer;
127
+ text-align: center;
128
+ color: var(--samples-panel-text-color);
129
+ `;function aa(t,r){var n=t,{fullWidth:o,errorMessage:s,type:p,inputActionButton:y,panel:E="samples"}=n,w=Li(n,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[A,k]=d.useState(p==="password"),G=d.useCallback(()=>{k(!A)},[A]);return d.createElement(Gn,{fullWidth:o,type:p},d.createElement(Wr,null,d.createElement(wl,Yr({fullWidth:o,inputActionButton:y,type:A?"password":"text",inputType:p,ref:r,panel:E},w)),y?d.createElement(ni,{onClick:y.onClick},y.label):p==="password"?d.createElement(ni,{onClick:G},A?"show":"hide"):null),s?d.createElement(at.Xq,null,s):null)}const $n=d.forwardRef(aa);function nr(t){const r=On(Yr({fieldType:"text"},t)),{userProps:n,render:o,fieldState:s}=r,p=r.informed;return o(d.createElement($n,Ca(Yr(Yr({},n),p),{errorMessage:s.error})))}const oa=$r(({initValue:t,options:r,fieldApi:n,fieldState:o})=>{const s=r.map((A,k)=>({value:A.title||A.value,idx:k,origValue:A.value})),p=s.find(A=>A.origValue===t),[y,E]=d.useState(p==null?void 0:p.value);Dr(()=>{t&&n.setValue(t)});const w=d.useCallback(A=>{n.setValue(s[A.idx].origValue),E(s[A.idx].value)},[s,n]);return d.createElement(Gn,{fullWidth:!0},d.createElement(xn.Dropdown,{fullWidth:!0,variant:"dark",value:y,options:s,onChange:w}),o.error?d.createElement(at.Xq,null,o.error):null)});var Kn=a(25973);const Fh=$r(({initValue:t,paramEnum:r,fieldApi:n})=>{const[o,s]=d.useState(),p=r.map((w,A)=>({idx:A,value:w})),y=w=>{n.setValue(w.value),s(w.value)};Dr(()=>{if(!!t)if(Array.isArray(t)){const w=t.length?t[0]:"";s(w),n.setValue(w)}else s(t),n.setValue(t)});const E=()=>{n.setValue(""),s("")};return d.createElement(Kn.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:o,options:p,handleClear:E,onChange:y})});var co;(function(t){t.ARRAY="array",t.OBJECT="object"})(co||(co={}));function kh({schema:t,example:r}){return`(${t.type})`+(r?` ${r}`:"")}function Mh(t){const r={};return t.forEach(n=>{n.in&&(r[n.in]||(r[n.in]=[]),r[n.in].push(n))}),r}function Rh({schema:t,required:r}){return n=>{if(r&&!n)return"Field is required";if(r&&t.type===co.ARRAY&&Array.isArray(n)){if(n.length>(t.rawSchema&&t.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.rawSchema.maxItems}`;if(n.length<(t.rawSchema&&t.rawSchema.minItems||0)){const o=t.rawSchema.minItems;return`You should select at least ${o===1?`${o} item`:`${o} items`}`}}}}function Lh(t){if(t.type===co.ARRAY){const r=t.default||t.example;if(!r&&typeof t.rawSchema.items!="boolean"&&Array.isArray(t.rawSchema.items)){if(t.rawSchema.items[0].default)return[t.rawSchema.items[0].default];if(t.rawSchema.items[0].example)return[t.rawSchema.items[0].example]}if(!r&&typeof t.rawSchema.items!="boolean"&&!Array.isArray(t.rawSchema.items)&&(0,Wt.isObject)(t.rawSchema.items)){if(t.rawSchema.items.default)return[t.rawSchema.items.default];if(t.rawSchema.items.example)return[t.rawSchema.items.example]}return r||[]}else return(Number.isInteger(t.default)?t.default.toString():t.default)||t.example}function Dh({oneOfType:t,type:r,items:n}){return t||r===co.ARRAY&&(n==null?void 0:n.type)===co.OBJECT&&"Array of objects"}const Nh=["path","query","cookie","header"];function Bh({id:t,param:r,values:n}){const o=(0,d.useMemo)(()=>Rh(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,p=Lh(r.schema),y=t.split(".").map(E=>(0,Gt.dw)(E));return s?d.createElement(at.NI,null,d.createElement(Fh,{initValue:p,paramEnum:s,field:t})):d.createElement(nr,{fullWidth:!0,"data-cy":"parameter-input",id:t,field:t,placeholder:kh(r),validate:o,initialValue:p||(0,Gt.U2)(n,y),validateOnBlur:!0,validateOnChange:!0})}function Uh({values:t,operation:r}){const n=(0,d.useMemo)(()=>Mh(r.parameters||[]),[r]),o=(p,y,E)=>{var w;const A=E?(0,Gt.s1)(E,p.name):p.name,k=Dh(p.schema);if(k&&console.warn(`Unsupported parameter definition: "${k}"`),p.schema.type===co.OBJECT)return(w=p.schema.fields)==null?void 0:w.map(re=>o(re,y,A));const G=E?[y,E]:[p.in],ne=(0,Gt.s1)(...G,(0,Gt.A8)(p.name));return d.createElement(at.NI,{key:ne},d.createElement(at.lX,{required:p.required},A,":"),k?d.createElement(at.GE,null,"Unsupported field schema definition"):d.createElement(Bh,{id:ne,param:p,values:t}))},s=p=>{const y=n[p];return!y||!y.length?null:d.createElement(d.Fragment,{key:p},d.createElement(at.NI,null,d.createElement(at.iG,null," # ",p," parameters "),d.createElement("span",null,"\xA0")),y.map(E=>o(E,p)))};return d.createElement(at.iA,null,Nh.map(s))}var gr=a(7241),vi=a(45756),jh=Object.defineProperty,Vh=Object.defineProperties,Wh=Object.getOwnPropertyDescriptors,Md=Object.getOwnPropertySymbols,Hh=Object.prototype.hasOwnProperty,zh=Object.prototype.propertyIsEnumerable,Rd=(t,r,n)=>r in t?jh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,Gh=(t,r)=>{for(var n in r||(r={}))Hh.call(r,n)&&Rd(t,n,r[n]);if(Md)for(var n of Md(r))zh.call(r,n)&&Rd(t,n,r[n]);return t},$h=(t,r)=>Vh(t,Wh(r));const Kh=Tt.default.input`
130
+ cursor: pointer;
131
+ margin-left: 0;
132
+ margin-right: 5px;
133
+ height: 20px;
134
+
135
+ align-self: baseline;
136
+ margin-top: 0;
137
+ margin-bottom: 0;
138
+ `,Yh=Tt.default.label`
139
+ display: inline-block;
140
+ cursor: pointer;
141
+ vertical-align: middle;
142
+ position: relative;
143
+ text-overflow: ellipsis;
144
+ overflow: hidden;
145
+
146
+ overflow-wrap: break-word;
147
+ line-height: 20px;
148
+ `,Jh=Tt.default.div`
149
+ width: ${({fullWidth:t})=>t?"100%":"50%"};
150
+ display: inline-flex;
151
+ align-items: center;
152
+
153
+ & > label {
154
+ white-space: ${({nowrap:t})=>t?"nowrap":"normal"};
155
+ }
156
+
157
+ ${({nowrap:t})=>t?"":`
158
+ :not(:first-child) {
159
+ margin-top: 5px;
160
+ }
161
+ `}
162
+ `;function Xh(t,r){const{fullWidth:n,id:o,label:s,nowrap:p}=t;return d.createElement(Jh,{fullWidth:n,nowrap:p},d.createElement(Kh,$h(Gh({},t),{type:"checkbox",ref:r})),d.createElement(Yh,{htmlFor:o},s))}const Ld=d.forwardRef(Xh);var Qh=Object.defineProperty,Zh=(t,r,n)=>r in t?Qh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,_h=(t,r,n)=>(Zh(t,typeof r!="symbol"?r+"":r,n),n);const qh=11;class ev extends d.Component{constructor(){super(...arguments);_h(this,"state",{collapsed:!0})}onCheckBoxClick(r){const n=r.target.value,o=r.target.checked;this.props.fieldApi.setTouched(!0);const s=this.props.fieldApi.getValue()||[];let p;if(o)p=[...s,n];else{const y=s.indexOf(n);p=[...s.slice(0,y),...s.slice(y+1)]}this.props.fieldApi.setValue(p)}isFieldChecked(r){return this.props.fieldApi.getValue().includes(r)}toggle(){this.setState({collapsed:!this.state.collapsed})}selectAll(){this.props.fieldApi.setValue(this.props.items)}clearAll(){this.props.fieldApi.setValue([])}render(){const{items:r,fieldApi:n,validateOnChange:o,maxDisplayedItems:s,showControls:p,trimItemsLength:y}=this.props,{collapsed:E}=this.state,w=n.getError(),A=s||qh,k=y&&this.state.collapsed?r.slice(0,A):r;return d.createElement("div",null,p?d.createElement(rv,null,d.createElement(vi.SamplesControlButton,{onClick:()=>{this.selectAll()}},"Select all"),d.createElement(vi.SamplesControlButton,{onClick:()=>{this.clearAll()}},"Clear")):null,d.createElement("div",null,k.map(G=>d.createElement(Ld,{fullWidth:!0,id:G,value:G,checked:this.isFieldChecked(G),label:G,key:G,onChange:ne=>{this.onCheckBoxClick(ne),o&&n.validate()}})),r.length>A&&y?d.createElement(nv,{onClick:()=>{this.toggle()}},E?"Show all":"Collapse"):null),w?d.createElement(at.Xq,null,w):"")}}const tv=$r(ev),rv=(0,Tt.default)(vi.SampleControls)`
163
+ opacity: 1;
164
+ text-align: left;
165
+ `,nv=(0,Tt.default)(vi.SamplesControlButton)`
166
+ float: right;
167
+ `;function Dd(t){const{scopes:r,id:n}=t;let o=[];try{o=JSON.parse((0,Gt.YQ)(`auth.${n}.scopes`))}catch(s){}return!r||!r.length?d.createElement(d.Fragment,null):d.createElement(at.NI,null,d.createElement(at.lX,null," Scopes: "),d.createElement(tv,{field:`auth.${n}.scopes`,initialValue:o,items:r,showControls:!0,trimItemsLength:!0}))}var iv=Object.defineProperty,av=Object.defineProperties,ov=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,sv=Object.prototype.hasOwnProperty,lv=Object.prototype.propertyIsEnumerable,Uc=(t,r,n)=>r in t?iv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,Bd=(t,r)=>{for(var n in r||(r={}))sv.call(r,n)&&Uc(t,n,r[n]);if(Nd)for(var n of Nd(r))lv.call(r,n)&&Uc(t,n,r[n]);return t},Ud=(t,r)=>av(t,ov(r)),uf=(t,r,n)=>(Uc(t,typeof r!="symbol"?r+"":r,n),n),uv=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});function fv(t){if(!t)return"Token is required"}class cv extends d.Component{constructor(){super(...arguments);uf(this,"state",{error:"",loading:!1,tokenMasked:!0}),uf(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,Gt.WW)(`auth.${this.props.id}.token`,"")}),uf(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),uf(this,"requestToken",()=>uv(this,null,function*(){if(this.state.loading)return;const{server:r,flow:n,authCorsProxyUrl:o}=this.props,s=o&&n.tokenUrl?o+(0,gr.jg)(n.tokenUrl):n.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const p=this.values.client_id,y=this.values.client_secret;if(!p||!y){console.log("Provide client_id and client_secret");return}this.setState({loading:!0}),yield m.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:y,scopes:this.values.scopes,successCallback:E=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,E),this.setState({loading:!1})},errorCallback:E=>{this.clearToken(),this.setState({error:E.message,loading:!1})}})}))}get values(){var r,n,o;return((o=(n=(r=this.props.form)==null?void 0:r.values)==null?void 0:n.auth)==null?void 0:o[this.props.id])||{}}get errors(){var r,n;return((n=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:n[this.props.id])||{}}render(){const{loading:r,error:n,tokenMasked:o}=this.state,{id:s,defaultValues:p}=this.props,y=Object.keys(this.props.flow.scopes);let E=(0,Gt.YQ)(`auth.${s}.token`)||JSON.stringify(p==null?void 0:p.token);E=E?JSON.parse(E):"";const w=(0,Gt.Al)(s,"client_id"),A={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,Gt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),initValue:(0,Gt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return d.createElement(d.Fragment,null,d.createElement(at.n5,null,d.createElement(at.NI,null,d.createElement(at.lX,null,"Client ID:"),w?d.createElement(oa,Ud(Bd({},A),{options:w})):d.createElement(nr,Ud(Bd({},A),{type:"password",panel:"try-it"}))),d.createElement(at.NI,null,d.createElement(at.lX,null,"Client Secret:"),d.createElement(nr,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,Gt.YQ)(`auth.${s}.client_secret`)||(p==null?void 0:p.client_secret),panel:"try-it"})),d.createElement(nr,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:E,validate:fv}),d.createElement(Dd,{id:s,scopes:y})),d.createElement(vi.Button,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(at.ph,null," Access Token "),n?d.createElement(at.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,n)," "):this.values.token&&this.values.token.access_token?d.createElement(at.TR,null,d.createElement(at.WA,{length:this.values.token.access_token.length,masked:o},this.values.token.access_token),d.createElement(at.lf,{onClick:this.toggleTokenMask},o?"Show":"Hide"," "),d.createElement(at.h,{onClick:this.clearToken}," Clear ")):d.createElement(at.Xq,{style:{marginBottom:"1em"}},"No token"))}}const dv=cv,pv=Tt.default.div`
168
+ position: relative;
169
+ height: 4px;
170
+ display: block;
171
+ width: 100%;
172
+ background-color: var(--linear-progress-background-color);
173
+ border-radius: var(--global-border-radius);
174
+ background-clip: padding-box;
175
+ margin: 0.5rem 0 1rem 0;
176
+ overflow: hidden;
177
+
178
+ .determinate {
179
+ position: absolute;
180
+ top: 0;
181
+ bottom: 0;
182
+ background-color: var(--linear-progress-color);
183
+ transition: width 0.3s linear;
184
+ }
185
+ .indeterminate {
186
+ background-color: var(--linear-progress-color);
187
+ }
188
+ .indeterminate:before {
189
+ content: '';
190
+ position: absolute;
191
+ background-color: inherit;
192
+ top: 0;
193
+ left: 0;
194
+ bottom: 0;
195
+ will-change: left, right;
196
+ -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
197
+ animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
198
+ }
199
+ .indeterminate:after {
200
+ content: '';
201
+ position: absolute;
202
+ background-color: inherit;
203
+ top: 0;
204
+ left: 0;
205
+ bottom: 0;
206
+ will-change: left, right;
207
+ -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
208
+ animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
209
+ -webkit-animation-delay: 1.15s;
210
+ animation-delay: 1.15s;
211
+ }
212
+
213
+ @-webkit-keyframes indeterminate {
214
+ 0% {
215
+ left: -35%;
216
+ right: 100%;
217
+ }
218
+ 60% {
219
+ left: 100%;
220
+ right: -90%;
221
+ }
222
+ 100% {
223
+ left: 100%;
224
+ right: -90%;
225
+ }
226
+ }
227
+ @keyframes indeterminate {
228
+ 0% {
229
+ left: -35%;
230
+ right: 100%;
231
+ }
232
+ 60% {
233
+ left: 100%;
234
+ right: -90%;
235
+ }
236
+ 100% {
237
+ left: 100%;
238
+ right: -90%;
239
+ }
240
+ }
241
+ @-webkit-keyframes indeterminate-short {
242
+ 0% {
243
+ left: -200%;
244
+ right: 100%;
245
+ }
246
+ 60% {
247
+ left: 107%;
248
+ right: -8%;
249
+ }
250
+ 100% {
251
+ left: 107%;
252
+ right: -8%;
253
+ }
254
+ }
255
+ @keyframes indeterminate-short {
256
+ 0% {
257
+ left: -200%;
258
+ right: 100%;
259
+ }
260
+ 60% {
261
+ left: 107%;
262
+ right: -8%;
263
+ }
264
+ 100% {
265
+ left: 107%;
266
+ right: -8%;
267
+ }
268
+ }
269
+ `,jd=()=>d.createElement(pv,null,d.createElement("div",{className:"indeterminate"}));var hv=Object.defineProperty,vv=Object.defineProperties,gv=Object.getOwnPropertyDescriptors,Vd=Object.getOwnPropertySymbols,yv=Object.prototype.hasOwnProperty,mv=Object.prototype.propertyIsEnumerable,jc=(t,r,n)=>r in t?hv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,ff=(t,r)=>{for(var n in r||(r={}))yv.call(r,n)&&jc(t,n,r[n]);if(Vd)for(var n of Vd(r))mv.call(r,n)&&jc(t,n,r[n]);return t},Vc=(t,r)=>vv(t,gv(r)),Sl=(t,r,n)=>(jc(t,typeof r!="symbol"?r+"":r,n),n),xv=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});function bv(t){if(!t)return"Field is required"}class cf extends d.Component{constructor(){super(...arguments);Sl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),Sl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),Sl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),Sl(this,"handleCodeVerifierChange",r=>xv(this,[r],function*({target:{value:n}}){const o=yield H(n);this.setState({codeVerifier:n,validCodeChallenge:o})}))}get values(){var r,n;return((n=(r=this.props.form.values)==null?void 0:r.auth)==null?void 0:n[this.props.id])||{}}get errors(){var r,n;return((n=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:n[this.props.id])||{}}get pkceInputActionButtonProps(){if(this.state.codeVerifier!==void 0&&this.state.codeChallenge!==this.state.validCodeChallenge)return{label:"sync",onClick:()=>{this.state.codeVerifier&&this.setState({codeChallenge:this.state.validCodeChallenge})}}}componentDidMount(){if(this.props.usePkce){const r=(0,Fn.CY)(43);H(r).then(n=>{this.setState({codeVerifier:r,codeChallenge:n,validCodeChallenge:n})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:n,usePkce:o,id:s,tokenUrl:p,authCorsProxyUrl:y}=this.props;if(!(0,Fn.Qr)(this.errors))return;this.setState({loading:!0,error:null});const E=y?y+(0,gr.jg)(r):r,w=y&&p?y+(0,gr.jg)(p):p,A=this.props.formApi.getValue(`auth.${s}.scopes`),k={authorizationUrl:E.startsWith("http")?E:this.props.server+E,clientId:this.values.client_id,scopes:A,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:G=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,G),this.setState({loading:!1,error:null})},errorCallback:G=>{this.setState({loading:!1,error:(G==null?void 0:G.message)||"Failed to retrieve the access token"})}};n==="implicit"&&m.authorizeImplicit(k),n==="authorizationCode"&&m.authorizeAuthorizationCode(ff(Vc(ff({},k),{tokenUrl:(w==null?void 0:w.startsWith("http"))?w:this.props.server+w,clientSecret:this.values.client_secret}),o&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),m.clearRedirectData(this.props.flow)}render(){const{error:r,loading:n}=this.state,{id:o,scopes:s,authorizationUrl:p,flow:y,usePkce:E,defaultValues:w}=this.props;if(!p)return d.createElement(at.Xq,null,"No flow info");let A=(0,Gt.YQ)(`auth.${o}.token`)||JSON.stringify(w==null?void 0:w.token);A=A?JSON.parse(A):"";const k=(0,Gt.Al)(o,"client_id"),G={field:`auth.${o}.client_id`,fullWidth:!0,initialValue:(0,Gt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),initValue:(0,Gt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),placeholder:"Your OAuth2 app Client ID",validate:bv,validateOnBlur:!0,validateOnChange:!0};return d.createElement("div",null,d.createElement(at.n5,null,d.createElement(at.NI,null,d.createElement(at.lX,null," Client ID: "),k?d.createElement(oa,Vc(ff({},G),{options:k})):d.createElement(nr,Vc(ff({},G),{"data-cy":"client-id-input",panel:"try-it"}))),y==="authorizationCode"&&d.createElement(d.Fragment,null,(!(E==null?void 0:E.hideClientSecretInput)||!E)&&d.createElement(at.NI,null,d.createElement(at.lX,null,"Client Secret:"),d.createElement(nr,{type:"password",fullWidth:!0,field:`auth.${o}.client_secret`,initialValue:(0,Gt.YQ)(`auth.${o}.client_secret`)||(w==null?void 0:w.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),E&&!E.disableManualConfiguration&&d.createElement(Av,null,d.createElement(Ld,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&d.createElement(Ev,null,d.createElement(at.NI,null,d.createElement(at.lX,null,"Code Verifier"),d.createElement($n,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,panel:"try-it","data-cy":"code-verifier-input"})),d.createElement(at.NI,null,d.createElement(at.lX,null,"Code Challenge"),d.createElement($n,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:ne}})=>{this.setState({codeChallenge:ne})},inputActionButton:this.pkceInputActionButtonProps,panel:"try-it","data-cy":"code-challenge-input"}))))),d.createElement(nr,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:A,panel:"try-it"}),d.createElement(Dd,{id:o,scopes:s}),this.values.token&&this.values.token.access_token?d.createElement(at.NI,null,d.createElement(at.lX,null," Access Token: "),d.createElement($n,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token,panel:"try-it"})):null),d.createElement(Sv,null,this.values.token&&this.values.token.access_token?d.createElement(vi.Button,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):n?d.createElement(d.Fragment,null,d.createElement(vi.Button,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),d.createElement(jd,null)):d.createElement(vi.Button,{fullWidth:!0,disabled:!(0,Fn.Qr)(this.errors),onClick:()=>{this.handleAuthorize(p)}},"Authorize")),n||r||!this.values.token||!this.values.token.access_token&&d.createElement(at.n5,null,d.createElement(at.NI,null,n?d.createElement(at.GE,null,"Please, finish your authorization flow or cancel authorization."):r?d.createElement(d.Fragment,null,d.createElement(wv,null,d.createElement(at.Xq,null,r))):!this.values.token||!this.values.token.access_token?d.createElement(at.GE,null," No Access Token. Please, Authorize. "):null)))}}Sl(cf,"contextType",Wt.OptionsContext);const wv=Tt.default.div`
270
+ font-family: var(--font-family-monospaced);
271
+ margin-top: 10px;
272
+ line-height: 1;
273
+ padding-left: 10px;
274
+ border-left: 1px solid gray;
275
+ `,Sv=Tt.default.div`
276
+ margin-bottom: 15px;
277
+ `,Av=Tt.default.div`
278
+ padding: 8px 0 20px;
279
+ `,Ev=Tt.default.div`
280
+ padding: 4px 0;
281
+ `;var Cv=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});function Ov(t){return Cv(this,null,function*(){return(yield fetch(t)).json()})}var Tv=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});function Pv(t){var r;const{scheme:n,defaultValues:o}=t,[s,p]=d.useState({}),[y,E]=d.useState(),[w,A]=d.useState(!1);d.useEffect(()=>{k(n.openIdConnectUrl)},[n.openIdConnectUrl]);const k=G=>Tv(this,null,function*(){A(!0),E("");try{const ne=yield Ov(G);p(ne)}catch(ne){E(ne.message)}A(!1)});return d.createElement("div",null,w?d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(jd,null)):d.createElement("div",null,y?d.createElement(at.Xq,null,y):((r=s==null?void 0:s.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(Iv,null,"OAuth2 Implicit Flow"),d.createElement(cf,{key:t.id,authorizationUrl:s.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:s.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:o})):d.createElement("div",null,"Unsupported flow")))}const Iv=Tt.default.div`
282
+ margin-top: 5px;
283
+ margin-bottom: 10px;
284
+ `;var Fv=Object.defineProperty,kv=Object.defineProperties,Mv=Object.getOwnPropertyDescriptors,Wd=Object.getOwnPropertySymbols,Rv=Object.prototype.hasOwnProperty,Lv=Object.prototype.propertyIsEnumerable,Wc=(t,r,n)=>r in t?Fv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,os=(t,r)=>{for(var n in r||(r={}))Rv.call(r,n)&&Wc(t,n,r[n]);if(Wd)for(var n of Wd(r))Lv.call(r,n)&&Wc(t,n,r[n]);return t},ss=(t,r)=>kv(t,Mv(r)),Hd=(t,r,n)=>(Wc(t,typeof r!="symbol"?r+"":r,n),n);class Dv extends d.Component{constructor(){super(...arguments);Hd(this,"state",{activeScheme:0}),Hd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,Gt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const o=r.operation.security.map(y=>y.schemes.map(E=>E.id).join(" and ")),s=(0,Gt.YQ)("securityRequirementName"),p=o.findIndex(y=>y===s);return{activeScheme:p<0?0:p}}render(){const{securityDefaults:r}=this.props,{activeScheme:n}=this.state,o=this.props.operation.security,p=o.map(y=>y.schemes.map(E=>E.id).join(" and ")).map((y,E)=>({value:y,idx:E}));return p.length===0?null:d.createElement(d.Fragment,null,d.createElement(at.n5,null,p.length>1&&d.createElement(at.NI,null,d.createElement(at.lX,null," Security scheme: "),d.createElement(Kn.VD,{variant:"dark",fullWidth:!0,options:p,value:p[n].value,onChange:this.handleSchemeChange}))||null,o[n].schemes.map(y=>{var E,w,A,k,G,ne,re;const ce=(0,Gt.A8)(y.id);if(y.type==="apiKey"){const xe=(0,Gt.Al)(ce,""),ge={field:`auth.${ce}`,fullWidth:!0,initialValue:(0,gr.NG)(y)||(0,Gt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),initValue:(0,gr.NG)(y)||(0,Gt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),validate:gr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(at.NI,{key:ce},d.createElement(at.lX,null," ",y.name,": "),xe?d.createElement(oa,ss(os({},ge),{options:xe})):d.createElement(nr,ss(os({},ge),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(y.type==="http"){if(y.scheme==="basic"){const xe=(0,Gt.Al)(ce,"username"),ge={field:`auth.${ce}.username`,fullWidth:!0,initialValue:(0,Gt.YQ)(`auth.${ce}.username`)||((E=r==null?void 0:r[ce])==null?void 0:E.username),initValue:(0,Gt.YQ)(`auth.${ce}.username`)||((w=r==null?void 0:r[ce])==null?void 0:w.username),validate:gr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ce},d.createElement(at.NI,null,d.createElement(at.lX,null," ",(0,uo.l)("tryItAuthBasicUsername"),": "),xe?d.createElement(oa,ss(os({},ge),{options:xe})):d.createElement(nr,ss(os({},ge),{panel:"try-it"}))),d.createElement(at.NI,null,d.createElement(at.lX,null," ",(0,uo.l)("tryItAuthBasicPassword"),": "),d.createElement(nr,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${ce}.password`,initialValue:(0,Gt.YQ)(`auth.${ce}.password`)||((A=r==null?void 0:r[ce])==null?void 0:A.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(y.scheme==="bearer"){const xe=(0,Gt.Al)(ce,""),ge={field:`auth.${ce}`,fullWidth:!0,initialValue:(0,Gt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),initValue:(0,Gt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),validate:gr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ce},d.createElement(at.NI,null,d.createElement(at.lX,null," Bearer Token: "),xe?d.createElement(oa,ss(os({},ge),{options:xe})):d.createElement(nr,ss(os({},ge),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(y.type==="oauth2"&&y.flows&&y.flows.clientCredentials)return d.createElement(dv,{key:ce,flow:y.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.clientCredentials["x-defaultClientId"]||y["x-defaultClientId"],defaultValues:r==null?void 0:r[ce]});if(y.type==="oauth2"&&y.flows&&y.flows.implicit)return d.createElement(cf,{key:ce,authorizationUrl:y.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((G=(k=y==null?void 0:y.flows)==null?void 0:k.implicit)==null?void 0:G.scopes)||{}),server:this.props.activeServer,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.implicit["x-defaultClientId"]||y["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[ce]});if(y.type==="oauth2"&&y.flows&&y.flows.authorizationCode)return d.createElement(cf,{key:ce,authorizationUrl:y.flows.authorizationCode.authorizationUrl,tokenUrl:y.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((ne=y.flows.authorizationCode)==null?void 0:ne.scopes)||{}),server:this.props.activeServer,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.authorizationCode["x-defaultClientId"]||y["x-defaultClientId"],flow:"authorizationCode",usePkce:y.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[ce]});if(y.type==="oauth2"){let xe=(0,Gt.YQ)(`auth.${ce}.token`)||JSON.stringify((re=r==null?void 0:r[ce])==null?void 0:re.token);return xe=xe?JSON.parse(xe):{},d.createElement(d.Fragment,{key:ce},d.createElement(at.NI,null,d.createElement(at.lX,null," Access Token Type: "),d.createElement(nr,{fullWidth:!0,field:`auth.${ce}.token.token_type`,initialValue:xe.token_type||"Bearer",panel:"try-it"})),d.createElement(at.NI,null,d.createElement(at.lX,null," Access Token: "),d.createElement(nr,{type:"password",fullWidth:!0,field:`auth.${ce}.token.access_token`,validate:gr.np,initialValue:xe.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(y.type==="openIdConnect")return d.createElement(Pv,{key:ce,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ce,form:this.props.form,formApi:this.props.formApi,scheme:y,clientId:y["x-defaultClientId"],defaultValues:r==null?void 0:r[ce]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Nv=a(9996),zd=a.n(Nv),Hc=a(67897),Al=a(49376),Bv=Object.defineProperty,df=Object.getOwnPropertySymbols,Gd=Object.prototype.hasOwnProperty,$d=Object.prototype.propertyIsEnumerable,Kd=(t,r,n)=>r in t?Bv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,Uv=(t,r)=>{for(var n in r||(r={}))Gd.call(r,n)&&Kd(t,n,r[n]);if(df)for(var n of df(r))$d.call(r,n)&&Kd(t,n,r[n]);return t},jv=(t,r)=>{var n={};for(var o in t)Gd.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&df)for(var o of df(t))r.indexOf(o)<0&&$d.call(t,o)&&(n[o]=t[o]);return n},Vv=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});const Yd=d.forwardRef((t,r)=>{var n=jv(t,[]);const{schema:o,contentName:s,onChange:p,name:y}=n,{render:E}=On(Uv({field:y},n)),w=A=>Vv(void 0,null,function*(){const k=yield It(A.target.files,o);p(s,k)});return E(d.createElement("input",{"data-cy":"file-upload-input",type:"file",id:n.id,className:n.className,name:n.name,onChange:w,multiple:n.multiple,accept:n.accept,ref:r}))});Yd.displayName="FileUpload";const Wv=(0,Fa.Pi)(t=>{var r;const{mediaType:n,onChange:o,formApi:s}=t,p=n.examples||{},{exampleKey:y}=(0,Hc.C6)(n.operation,p),E=(r=p[y])==null?void 0:r.rawValue,w=Hv(n);(0,d.useEffect)(()=>s&&w.forEach(k=>{var G,ne;const re=E==null?void 0:E[k.name],ce=(ne=(G=k.example)!=null?G:re==null?void 0:re.example)!=null?ne:re,xe=typeof ce=="object"?JSON.stringify(ce):ce;ce!==void 0&&s.setValue("body."+k.name,`${xe}`)}),[y]);const A=n.schema||{};return dt(A,n.name)?d.createElement(Jd,null,d.createElement(at.NI,null,d.createElement(Xd,{fullWidth:!0,id:`body.${n.name}`,name:`body.${n.name}`,accept:ot(n.name),schema:A,contentName:n.name,onChange:o}))):A.type!==me.OBJECT&&!w?(console.warn(`Invalid schema for request body and mime type: "${n.name}"`,A),null):d.createElement(Jd,null,w.map(k=>{const G=k.schema||{},ne=n.name===Al.T.MULTIPART&&gt(G),re=G.contentMediaType||"",ce=ne?d.createElement(Xd,{fullWidth:!0,id:"body."+k.name,name:"body."+k.name,accept:ot(re),multiple:G.type==="array",schema:G,contentName:k.name,onChange:o}):d.createElement(nr,{fullWidth:!0,id:"body."+k.name,field:"body."+k.name,placeholder:G.description||k.name,panel:"try-it"});return d.createElement(at.NI,{key:k.name},d.createElement(at.lX,null,k.name,":"),ce)}))});function Hv(t){var r,n,o,s,p;return(((n=(r=t.schema)==null?void 0:r.oneOf)==null?void 0:n.length)?((s=t.schema)==null?void 0:s.oneOf[(o=t.schema)==null?void 0:o.activeOneOf].fields)||[]:((p=t.schema)==null?void 0:p.fields)||[]).filter(y=>!y.schema.readOnly)}const Jd=Tt.default.div`
285
+ > div {
286
+ margin-top: 10px;
287
+ }
288
+ `,Xd=(0,Tt.default)(Yd)`
289
+ ${Jr("try-it")};
290
+ ${({inputType:t})=>t==="password"?"padding-right: 40px;":""};
291
+ ${({fullWidth:t})=>t?"width: 100%;":""}
292
+ `;var Qd=a(23715);const zv=(0,Tt.default)(Qd.A3)`
293
+ border-radius: var(--panels-border-radius);
294
+ margin-bottom: 10px;
295
+ `;var Gv=a(35310),ls=a(4631);function pf(t,r){r===void 0&&(r=!1);var n=t.length,o=0,s="",p=0,y=16,E=0,w=0,A=0,k=0,G=0;function ne(Te,$e){for(var je=0,He=0;je<Te||!$e;){var Ne=t.charCodeAt(o);if(Ne>=48&&Ne<=57)He=He*16+Ne-48;else if(Ne>=65&&Ne<=70)He=He*16+Ne-65+10;else if(Ne>=97&&Ne<=102)He=He*16+Ne-97+10;else break;o++,je++}return je<Te&&(He=-1),He}function re(Te){o=Te,s="",p=0,y=16,G=0}function ce(){var Te=o;if(t.charCodeAt(o)===48)o++;else for(o++;o<t.length&&us(t.charCodeAt(o));)o++;if(o<t.length&&t.charCodeAt(o)===46)if(o++,o<t.length&&us(t.charCodeAt(o)))for(o++;o<t.length&&us(t.charCodeAt(o));)o++;else return G=3,t.substring(Te,o);var $e=o;if(o<t.length&&(t.charCodeAt(o)===69||t.charCodeAt(o)===101))if(o++,(o<t.length&&t.charCodeAt(o)===43||t.charCodeAt(o)===45)&&o++,o<t.length&&us(t.charCodeAt(o))){for(o++;o<t.length&&us(t.charCodeAt(o));)o++;$e=o}else G=3;return t.substring(Te,$e)}function xe(){for(var Te="",$e=o;;){if(o>=n){Te+=t.substring($e,o),G=2;break}var je=t.charCodeAt(o);if(je===34){Te+=t.substring($e,o),o++;break}if(je===92){if(Te+=t.substring($e,o),o++,o>=n){G=2;break}var He=t.charCodeAt(o++);switch(He){case 34:Te+='"';break;case 92:Te+="\\";break;case 47:Te+="/";break;case 98:Te+="\b";break;case 102:Te+="\f";break;case 110:Te+=`
296
+ `;break;case 114:Te+="\r";break;case 116:Te+=" ";break;case 117:var Ne=ne(4,!0);Ne>=0?Te+=String.fromCharCode(Ne):G=4;break;default:G=5}$e=o;continue}if(je>=0&&je<=31)if(El(je)){Te+=t.substring($e,o),G=2;break}else G=6;o++}return Te}function ge(){if(s="",G=0,p=o,w=E,k=A,o>=n)return p=n,y=17;var Te=t.charCodeAt(o);if(zc(Te)){do o++,s+=String.fromCharCode(Te),Te=t.charCodeAt(o);while(zc(Te));return y=15}if(El(Te))return o++,s+=String.fromCharCode(Te),Te===13&&t.charCodeAt(o)===10&&(o++,s+=`
297
+ `),E++,A=o,y=14;switch(Te){case 123:return o++,y=1;case 125:return o++,y=2;case 91:return o++,y=3;case 93:return o++,y=4;case 58:return o++,y=6;case 44:return o++,y=5;case 34:return o++,s=xe(),y=10;case 47:var $e=o-1;if(t.charCodeAt(o+1)===47){for(o+=2;o<n&&!El(t.charCodeAt(o));)o++;return s=t.substring($e,o),y=12}if(t.charCodeAt(o+1)===42){o+=2;for(var je=n-1,He=!1;o<je;){var Ne=t.charCodeAt(o);if(Ne===42&&t.charCodeAt(o+1)===47){o+=2,He=!0;break}o++,El(Ne)&&(Ne===13&&t.charCodeAt(o)===10&&o++,E++,A=o)}return He||(o++,G=1),s=t.substring($e,o),y=13}return s+=String.fromCharCode(Te),o++,y=16;case 45:if(s+=String.fromCharCode(Te),o++,o===n||!us(t.charCodeAt(o)))return y=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=ce(),y=11;default:for(;o<n&&Ee(Te);)o++,Te=t.charCodeAt(o);if(p!==o){switch(s=t.substring(p,o),s){case"true":return y=8;case"false":return y=9;case"null":return y=7}return y=16}return s+=String.fromCharCode(Te),o++,y=16}}function Ee(Te){if(zc(Te)||El(Te))return!1;switch(Te){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function we(){var Te;do Te=ge();while(Te>=12&&Te<=15);return Te}return{setPosition:re,getPosition:function(){return o},scan:r?we:ge,getToken:function(){return y},getTokenValue:function(){return s},getTokenOffset:function(){return p},getTokenLength:function(){return o-p},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return p-k},getTokenError:function(){return G}}}function zc(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function El(t){return t===10||t===13||t===8232||t===8233}function us(t){return t>=48&&t<=57}function $v(t,r,n){var o,s,p,y,E;if(r){for(y=r.offset,E=y+r.length,p=y;p>0&&!Zd(t,p-1);)p--;for(var w=E;w<t.length&&!Zd(t,w);)w++;s=t.substring(p,w),o=Kv(s,n)}else s=t,o=0,p=0,y=0,E=t.length;var A=Yv(n,t),k=!1,G=0,ne;n.insertSpaces?ne=Gc(" ",n.tabSize||4):ne=" ";var re=pf(s,!1),ce=!1;function xe(){return A+Gc(ne,o+G)}function ge(){var ze=re.scan();for(k=!1;ze===15||ze===14;)k=k||ze===14,ze=re.scan();return ce=ze===16||re.getTokenError()!==0,ze}var Ee=[];function we(ze,et,St){!ce&&et<E&&St>y&&t.substring(et,St)!==ze&&Ee.push({offset:et,length:St-et,content:ze})}var Te=ge();if(Te!==17){var $e=re.getTokenOffset()+p,je=Gc(ne,o);we(je,p,$e)}for(;Te!==17;){for(var He=re.getTokenOffset()+re.getTokenLength()+p,Ne=ge(),Ve="";!k&&(Ne===12||Ne===13);){var We=re.getTokenOffset()+p;we(" ",He,We),He=re.getTokenOffset()+re.getTokenLength()+p,Ve=Ne===12?xe():"",Ne=ge()}if(Ne===2)Te!==1&&(G--,Ve=xe());else if(Ne===4)Te!==3&&(G--,Ve=xe());else{switch(Te){case 3:case 1:G++,Ve=xe();break;case 5:case 12:Ve=xe();break;case 13:k?Ve=xe():Ve=" ";break;case 6:Ve=" ";break;case 10:if(Ne===6){Ve="";break}case 7:case 8:case 9:case 11:case 2:case 4:Ne===12||Ne===13?Ve=" ":Ne!==5&&Ne!==17&&(ce=!0);break;case 16:ce=!0;break}k&&(Ne===12||Ne===13)&&(Ve=xe())}var Je=re.getTokenOffset()+p;we(Ve,He,Je),Te=Ne}return Ee}function Gc(t,r){for(var n="",o=0;o<r;o++)n+=t;return n}function Kv(t,r){for(var n=0,o=0,s=r.tabSize||4;n<t.length;){var p=t.charAt(n);if(p===" ")o++;else if(p===" ")o+=s;else break;n++}return Math.floor(o/s)}function Yv(t,r){for(var n=0;n<r.length;n++){var o=r.charAt(n);if(o==="\r")return n+1<r.length&&r.charAt(n+1)===`
298
+ `?`\r
299
+ `:"\r";if(o===`
300
+ `)return`
301
+ `}return t&&t.eol||`
302
+ `}function Zd(t,r){return`\r
303
+ `.indexOf(t.charAt(r))!==-1}var Cl;(function(t){t.DEFAULT={allowTrailingComma:!1}})(Cl||(Cl={}));function Jv(t,r){var n=[],o=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},y=!1;function E(w,A,k,G){p.value=w,p.offset=A,p.length=k,p.type=G,p.colonOffset=void 0,s=p}try{hf(t,{onObjectBegin:function(w,A){if(r<=w)throw o;s=void 0,y=r>w,n.push("")},onObjectProperty:function(w,A,k){if(r<A||(E(w,A,k,"property"),n[n.length-1]=w,r<=A+k))throw o},onObjectEnd:function(w,A){if(r<=w)throw o;s=void 0,n.pop()},onArrayBegin:function(w,A){if(r<=w)throw o;s=void 0,n.push(0)},onArrayEnd:function(w,A){if(r<=w)throw o;s=void 0,n.pop()},onLiteralValue:function(w,A,k){if(r<A||(E(w,A,k,ep(w)),r<=A+k))throw o},onSeparator:function(w,A,k){if(r<=A)throw o;if(w===":"&&s&&s.type==="property")s.colonOffset=A,y=!1,s=void 0;else if(w===","){var G=n[n.length-1];typeof G=="number"?n[n.length-1]=G+1:(y=!0,n[n.length-1]=""),s=void 0}}})}catch(w){if(w!==o)throw w}return{path:n,previousNode:s,isAtPropertyKey:y,matches:function(w){for(var A=0,k=0;A<w.length&&k<n.length;k++)if(w[A]===n[k]||w[A]==="*")A++;else if(w[A]!=="**")return!1;return A===w.length}}}function Xv(t,r,n){r===void 0&&(r=[]),n===void 0&&(n=Cl.DEFAULT);var o=null,s=[],p=[];function y(w){Array.isArray(s)?s.push(w):o!==null&&(s[o]=w)}var E={onObjectBegin:function(){var w={};y(w),p.push(s),s=w,o=null},onObjectProperty:function(w){o=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];y(w),p.push(s),s=w,o=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:y,onError:function(w,A,k){r.push({error:w,offset:A,length:k})}};return hf(t,E,n),s[0]}function Qv(t,r,n){r===void 0&&(r=[]),n===void 0&&(n=Cl.DEFAULT);var o={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){o.type==="property"&&(o.length=w-o.offset,o=o.parent)}function p(w){return o.children.push(w),w}var y={onObjectBegin:function(w){o=p({type:"object",offset:w,length:-1,parent:o,children:[]})},onObjectProperty:function(w,A,k){o=p({type:"property",offset:A,length:-1,parent:o,children:[]}),o.children.push({type:"string",value:w,offset:A,length:k,parent:o})},onObjectEnd:function(w,A){s(w+A),o.length=w+A-o.offset,o=o.parent,s(w+A)},onArrayBegin:function(w,A){o=p({type:"array",offset:w,length:-1,parent:o,children:[]})},onArrayEnd:function(w,A){o.length=w+A-o.offset,o=o.parent,s(w+A)},onLiteralValue:function(w,A,k){p({type:ep(w),offset:A,length:k,parent:o,value:w}),s(A+k)},onSeparator:function(w,A,k){o.type==="property"&&(w===":"?o.colonOffset=A:w===","&&s(A))},onError:function(w,A,k){r.push({error:w,offset:A,length:k})}};hf(t,y,n);var E=o.children[0];return E&&delete E.parent,E}function Zv(t,r){if(!!t){for(var n=t,o=0,s=r;o<s.length;o++){var p=s[o];if(typeof p=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var y=!1,E=0,w=n.children;E<w.length;E++){var A=w[E];if(Array.isArray(A.children)&&A.children[0].value===p){n=A.children[1],y=!0;break}}if(!y)return}else{var k=p;if(n.type!=="array"||k<0||!Array.isArray(n.children)||k>=n.children.length)return;n=n.children[k]}}return n}}function _d(t){if(!t.parent||!t.parent.children)return[];var r=_d(t.parent);if(t.parent.type==="property"){var n=t.parent.children[0].value;r.push(n)}else if(t.parent.type==="array"){var o=t.parent.children.indexOf(t);o!==-1&&r.push(o)}return r}function $c(t){switch(t.type){case"array":return t.children.map($c);case"object":for(var r=Object.create(null),n=0,o=t.children;n<o.length;n++){var s=o[n],p=s.children[1];p&&(r[s.children[0].value]=$c(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function _v(t,r,n){return n===void 0&&(n=!1),r>=t.offset&&r<t.offset+t.length||n&&r===t.offset+t.length}function qd(t,r,n){if(n===void 0&&(n=!1),_v(t,r,n)){var o=t.children;if(Array.isArray(o))for(var s=0;s<o.length&&o[s].offset<=r;s++){var p=qd(o[s],r,n);if(p)return p}return t}}function hf(t,r,n){n===void 0&&(n=Cl.DEFAULT);var o=pf(t,!1);function s(We){return We?function(){return We(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Je){return We(Je,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var y=s(r.onObjectBegin),E=p(r.onObjectProperty),w=s(r.onObjectEnd),A=s(r.onArrayBegin),k=s(r.onArrayEnd),G=p(r.onLiteralValue),ne=p(r.onSeparator),re=s(r.onComment),ce=p(r.onError),xe=n&&n.disallowComments,ge=n&&n.allowTrailingComma;function Ee(){for(;;){var We=o.scan();switch(o.getTokenError()){case 4:we(14);break;case 5:we(15);break;case 3:we(13);break;case 1:xe||we(11);break;case 2:we(12);break;case 6:we(16);break}switch(We){case 12:case 13:xe?we(10):re();break;case 16:we(1);break;case 15:case 14:break;default:return We}}}function we(We,Je,ze){if(Je===void 0&&(Je=[]),ze===void 0&&(ze=[]),ce(We),Je.length+ze.length>0)for(var et=o.getToken();et!==17;){if(Je.indexOf(et)!==-1){Ee();break}else if(ze.indexOf(et)!==-1)break;et=Ee()}}function Te(We){var Je=o.getTokenValue();return We?G(Je):E(Je),Ee(),!0}function $e(){switch(o.getToken()){case 11:var We=o.getTokenValue(),Je=Number(We);isNaN(Je)&&(we(2),Je=0),G(Je);break;case 7:G(null);break;case 8:G(!0);break;case 9:G(!1);break;default:return!1}return Ee(),!0}function je(){return o.getToken()!==10?(we(3,[],[2,5]),!1):(Te(!1),o.getToken()===6?(ne(":"),Ee(),Ve()||we(4,[],[2,5])):we(5,[],[2,5]),!0)}function He(){y(),Ee();for(var We=!1;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(We||we(4,[],[]),ne(","),Ee(),o.getToken()===2&&ge)break}else We&&we(6,[],[]);je()||we(4,[],[2,5]),We=!0}return w(),o.getToken()!==2?we(7,[2],[]):Ee(),!0}function Ne(){A(),Ee();for(var We=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(We||we(4,[],[]),ne(","),Ee(),o.getToken()===4&&ge)break}else We&&we(6,[],[]);Ve()||we(4,[],[4,5]),We=!0}return k(),o.getToken()!==4?we(8,[4],[]):Ee(),!0}function Ve(){switch(o.getToken()){case 3:return Ne();case 1:return He();case 10:return Te(!0);default:return $e()}}return Ee(),o.getToken()===17?n.allowEmptyContent?!0:(we(4,[],[]),!1):Ve()?(o.getToken()!==17&&we(9,[],[]),!0):(we(4,[],[]),!1)}function qv(t,r){var n=pf(t),o=[],s,p=0,y;do switch(y=n.getPosition(),s=n.scan(),s){case 12:case 13:case 17:p!==y&&o.push(t.substring(p,y)),r!==void 0&&o.push(n.getTokenValue().replace(/[^\r\n]/g,r)),p=n.getPosition();break}while(s!==17);return o.join("")}function ep(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function Am(t,r,n){return eg(t,r,void 0,n)}function eg(t,r,n,o){for(var s,p=r.slice(),y=[],E=parseTree(t,y),w=void 0,A=void 0;p.length>0&&(A=p.pop(),w=findNodeAtLocation(E,p),w===void 0&&n!==void 0);)typeof A=="string"?n=(s={},s[A]=n,s):n=[n];if(w)if(w.type==="object"&&typeof A=="string"&&Array.isArray(w.children)){var k=findNodeAtLocation(w,[A]);if(k!==void 0)if(n===void 0){if(!k.parent)throw new Error("Malformed AST");var G=w.children.indexOf(k.parent),ne=void 0,re=k.parent.offset+k.parent.length;if(G>0){var ce=w.children[G-1];ne=ce.offset+ce.length}else if(ne=w.offset+1,w.children.length>1){var xe=w.children[1];re=xe.offset}return po(t,{offset:ne,length:re-ne,content:""},o)}else return po(t,{offset:k.offset,length:k.length,content:JSON.stringify(n)},o);else{if(n===void 0)return[];var ge=JSON.stringify(A)+": "+JSON.stringify(n),Ee=o.getInsertionIndex?o.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,we=void 0;if(Ee>0){var ce=w.children[Ee-1];we={offset:ce.offset+ce.length,length:0,content:","+ge}}else w.children.length===0?we={offset:w.offset+1,length:0,content:ge}:we={offset:w.offset+1,length:0,content:ge+","};return po(t,we,o)}}else if(w.type==="array"&&typeof A=="number"&&Array.isArray(w.children)){var Te=A;if(Te===-1){var ge=""+JSON.stringify(n),we=void 0;if(w.children.length===0)we={offset:w.offset+1,length:0,content:ge};else{var ce=w.children[w.children.length-1];we={offset:ce.offset+ce.length,length:0,content:","+ge}}return po(t,we,o)}else if(n===void 0&&w.children.length>=0){var $e=A,je=w.children[$e],we=void 0;if(w.children.length===1)we={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===$e){var ce=w.children[$e-1],He=ce.offset+ce.length,Ne=w.offset+w.length;we={offset:He,length:Ne-2-He,content:""}}else we={offset:je.offset,length:w.children[$e+1].offset-je.offset,content:""};return po(t,we,o)}else if(n!==void 0){var we=void 0,ge=""+JSON.stringify(n);if(!o.isArrayInsertion&&w.children.length>A){var Ve=w.children[A];we={offset:Ve.offset,length:Ve.length,content:ge}}else if(w.children.length===0||A===0)we={offset:w.offset+1,length:0,content:w.children.length===0?ge:ge+","};else{var Ee=A>w.children.length?w.children.length:A,ce=w.children[Ee-1];we={offset:ce.offset+ce.length,length:0,content:","+ge}}return po(t,we,o)}else throw new Error("Can not "+(n===void 0?"remove":o.isArrayInsertion?"insert":"modify")+" Array index "+Te+" as length is not sufficient")}else throw new Error("Can not add "+(typeof A!="number"?"index":"property")+" to parent of type "+w.type);else{if(n===void 0)throw new Error("Can not delete in empty document");return po(t,{offset:E?E.offset:0,length:E?E.length:0,content:JSON.stringify(n)},o)}}function po(t,r,n){if(!n.formattingOptions)return[r];var o=tp(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(o,s-1);)s--;for(;p<o.length&&!isEOL(o,p);)p++}for(var y=format(o,{offset:s,length:p-s},n.formattingOptions),E=y.length-1;E>=0;E--){var w=y[E];o=tp(o,w),s=Math.min(s,w.offset),p=Math.max(p,w.offset+w.length),p+=w.content.length-w.length}var A=t.length-(o.length-p)-s;return[{offset:s,length:A,content:o.substring(s,p)}]}function tp(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Em(t,r){return`\r
304
+ `.indexOf(t.charAt(r))!==-1}var fs=pf,Cm=Jv,tg=Xv,Om=Qv,Tm=Zv,rg=qd,ng=_d,ig=$c,Pm=hf,Im=qv;function Fm(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function ag(t,r,n){return $v(t,r,n)}function km(t,r,n,o){return edit.setProperty(t,r,n,o)}function Mm(t,r){for(var n=r.length-1;n>=0;n--)t=edit.applyEdit(t,r[n]);return t}function Ol(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var n,o;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(n=0;n<t.length;n++)if(!Ol(t[n],r[n]))return!1}else{var s=[];for(o in t)s.push(o);s.sort();var p=[];for(o in r)p.push(o);if(p.sort(),!Ol(s,p))return!1;for(n=0;n<s.length;n++)if(!Ol(t[s[n]],r[s[n]]))return!1}return!0}function Yn(t){return typeof t=="number"}function sa(t){return typeof t!="undefined"}function Di(t){return typeof t=="boolean"}function og(t){return typeof t=="string"}var rp;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(rp||(rp={}));var vf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(vf||(vf={}));var gi;(function(t){function r(o,s){return o===Number.MAX_VALUE&&(o=vf.MAX_VALUE),s===Number.MAX_VALUE&&(s=vf.MAX_VALUE),{line:o,character:s}}t.create=r;function n(o){var s=o;return _e.objectLiteral(s)&&_e.uinteger(s.line)&&_e.uinteger(s.character)}t.is=n})(gi||(gi={}));var ur;(function(t){function r(o,s,p,y){if(_e.uinteger(o)&&_e.uinteger(s)&&_e.uinteger(p)&&_e.uinteger(y))return{start:gi.create(o,s),end:gi.create(p,y)};if(gi.is(o)&&gi.is(s))return{start:o,end:s};throw new Error("Range#create called with invalid arguments["+o+", "+s+", "+p+", "+y+"]")}t.create=r;function n(o){var s=o;return _e.objectLiteral(s)&&gi.is(s.start)&&gi.is(s.end)}t.is=n})(ur||(ur={}));var Tl;(function(t){function r(o,s){return{uri:o,range:s}}t.create=r;function n(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.string(s.uri)||_e.undefined(s.uri))}t.is=n})(Tl||(Tl={}));var np;(function(t){function r(o,s,p,y){return{targetUri:o,targetRange:s,targetSelectionRange:p,originSelectionRange:y}}t.create=r;function n(o){var s=o;return _e.defined(s)&&ur.is(s.targetRange)&&_e.string(s.targetUri)&&(ur.is(s.targetSelectionRange)||_e.undefined(s.targetSelectionRange))&&(ur.is(s.originSelectionRange)||_e.undefined(s.originSelectionRange))}t.is=n})(np||(np={}));var Kc;(function(t){function r(o,s,p,y){return{red:o,green:s,blue:p,alpha:y}}t.create=r;function n(o){var s=o;return _e.numberRange(s.red,0,1)&&_e.numberRange(s.green,0,1)&&_e.numberRange(s.blue,0,1)&&_e.numberRange(s.alpha,0,1)}t.is=n})(Kc||(Kc={}));var ip;(function(t){function r(o,s){return{range:o,color:s}}t.create=r;function n(o){var s=o;return ur.is(s.range)&&Kc.is(s.color)}t.is=n})(ip||(ip={}));var ap;(function(t){function r(o,s,p){return{label:o,textEdit:s,additionalTextEdits:p}}t.create=r;function n(o){var s=o;return _e.string(s.label)&&(_e.undefined(s.textEdit)||yi.is(s))&&(_e.undefined(s.additionalTextEdits)||_e.typedArray(s.additionalTextEdits,yi.is))}t.is=n})(ap||(ap={}));var Pl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Pl||(Pl={}));var op;(function(t){function r(o,s,p,y,E){var w={startLine:o,endLine:s};return _e.defined(p)&&(w.startCharacter=p),_e.defined(y)&&(w.endCharacter=y),_e.defined(E)&&(w.kind=E),w}t.create=r;function n(o){var s=o;return _e.uinteger(s.startLine)&&_e.uinteger(s.startLine)&&(_e.undefined(s.startCharacter)||_e.uinteger(s.startCharacter))&&(_e.undefined(s.endCharacter)||_e.uinteger(s.endCharacter))&&(_e.undefined(s.kind)||_e.string(s.kind))}t.is=n})(op||(op={}));var Yc;(function(t){function r(o,s){return{location:o,message:s}}t.create=r;function n(o){var s=o;return _e.defined(s)&&Tl.is(s.location)&&_e.string(s.message)}t.is=n})(Yc||(Yc={}));var $t;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})($t||($t={}));var sp;(function(t){t.Unnecessary=1,t.Deprecated=2})(sp||(sp={}));var lp;(function(t){function r(n){var o=n;return o!=null&&_e.string(o.href)}t.is=r})(lp||(lp={}));var la;(function(t){function r(o,s,p,y,E,w){var A={range:o,message:s};return _e.defined(p)&&(A.severity=p),_e.defined(y)&&(A.code=y),_e.defined(E)&&(A.source=E),_e.defined(w)&&(A.relatedInformation=w),A}t.create=r;function n(o){var s,p=o;return _e.defined(p)&&ur.is(p.range)&&_e.string(p.message)&&(_e.number(p.severity)||_e.undefined(p.severity))&&(_e.integer(p.code)||_e.string(p.code)||_e.undefined(p.code))&&(_e.undefined(p.codeDescription)||_e.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(_e.string(p.source)||_e.undefined(p.source))&&(_e.undefined(p.relatedInformation)||_e.typedArray(p.relatedInformation,Yc.is))}t.is=n})(la||(la={}));var Il;(function(t){function r(o,s){for(var p=[],y=2;y<arguments.length;y++)p[y-2]=arguments[y];var E={title:o,command:s};return _e.defined(p)&&p.length>0&&(E.arguments=p),E}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.string(s.title)&&_e.string(s.command)}t.is=n})(Il||(Il={}));var yi;(function(t){function r(p,y){return{range:p,newText:y}}t.replace=r;function n(p,y){return{range:{start:p,end:p},newText:y}}t.insert=n;function o(p){return{range:p,newText:""}}t.del=o;function s(p){var y=p;return _e.objectLiteral(y)&&_e.string(y.newText)&&ur.is(y.range)}t.is=s})(yi||(yi={}));var cs;(function(t){function r(o,s,p){var y={label:o};return s!==void 0&&(y.needsConfirmation=s),p!==void 0&&(y.description=p),y}t.create=r;function n(o){var s=o;return s!==void 0&&_e.objectLiteral(s)&&_e.string(s.label)&&(_e.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(_e.string(s.description)||s.description===void 0)}t.is=n})(cs||(cs={}));var bn;(function(t){function r(n){var o=n;return typeof o=="string"}t.is=r})(bn||(bn={}));var Oa;(function(t){function r(p,y,E){return{range:p,newText:y,annotationId:E}}t.replace=r;function n(p,y,E){return{range:{start:p,end:p},newText:y,annotationId:E}}t.insert=n;function o(p,y){return{range:p,newText:"",annotationId:y}}t.del=o;function s(p){var y=p;return yi.is(y)&&(cs.is(y.annotationId)||bn.is(y.annotationId))}t.is=s})(Oa||(Oa={}));var gf;(function(t){function r(o,s){return{textDocument:o,edits:s}}t.create=r;function n(o){var s=o;return _e.defined(s)&&mf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=n})(gf||(gf={}));var Fl;(function(t){function r(o,s,p){var y={kind:"create",uri:o};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function n(o){var s=o;return s&&s.kind==="create"&&_e.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||bn.is(s.annotationId))}t.is=n})(Fl||(Fl={}));var kl;(function(t){function r(o,s,p,y){var E={kind:"rename",oldUri:o,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(E.options=p),y!==void 0&&(E.annotationId=y),E}t.create=r;function n(o){var s=o;return s&&s.kind==="rename"&&_e.string(s.oldUri)&&_e.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||bn.is(s.annotationId))}t.is=n})(kl||(kl={}));var Ml;(function(t){function r(o,s,p){var y={kind:"delete",uri:o};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function n(o){var s=o;return s&&s.kind==="delete"&&_e.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||_e.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||_e.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||bn.is(s.annotationId))}t.is=n})(Ml||(Ml={}));var Jc;(function(t){function r(n){var o=n;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(function(s){return _e.string(s.kind)?Fl.is(s)||kl.is(s)||Ml.is(s):gf.is(s)}))}t.is=r})(Jc||(Jc={}));var yf=function(){function t(r,n){this.edits=r,this.changeAnnotations=n}return t.prototype.insert=function(r,n,o){var s,p;if(o===void 0?s=yi.insert(r,n):bn.is(o)?(p=o,s=Oa.insert(r,n,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Oa.insert(r,n,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,n,o){var s,p;if(o===void 0?s=yi.replace(r,n):bn.is(o)?(p=o,s=Oa.replace(r,n,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Oa.replace(r,n,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,n){var o,s;if(n===void 0?o=yi.del(r):bn.is(n)?(s=n,o=Oa.del(r,n)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(n),o=Oa.del(r,s)),this.edits.push(o),s!==void 0)return s},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),up=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,n){var o;if(bn.is(r)?o=r:(o=this.nextId(),n=r),this._annotations[o]!==void 0)throw new Error("Id "+o+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+o);return this._annotations[o]=n,this._size++,o},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),Rm=function(){function t(r){var n=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new up(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(o){if(gf.is(o)){var s=new yf(o.edits,n._changeAnnotations);n._textEditChanges[o.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(o){var s=new yf(r.changes[o]);n._textEditChanges[o]=s})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(r){if(mf.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:r.uri,version:r.version},o=this._textEditChanges[n.uri];if(!o){var s=[],p={textDocument:n,edits:s};this._workspaceEdit.documentChanges.push(p),o=new yf(s,this._changeAnnotations),this._textEditChanges[n.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var o=this._textEditChanges[r];if(!o){var s=[];this._workspaceEdit.changes[r]=s,o=new yf(s),this._textEditChanges[r]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new up,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,n,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;cs.is(n)||bn.is(n)?s=n:o=n;var p,y;if(s===void 0?p=Fl.create(r,o):(y=bn.is(s)?s:this._changeAnnotations.manage(s),p=Fl.create(r,o,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t.prototype.renameFile=function(r,n,o,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;cs.is(o)||bn.is(o)?p=o:s=o;var y,E;if(p===void 0?y=kl.create(r,n,s):(E=bn.is(p)?p:this._changeAnnotations.manage(p),y=kl.create(r,n,s,E)),this._workspaceEdit.documentChanges.push(y),E!==void 0)return E},t.prototype.deleteFile=function(r,n,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;cs.is(n)||bn.is(n)?s=n:o=n;var p,y;if(s===void 0?p=Ml.create(r,o):(y=bn.is(s)?s:this._changeAnnotations.manage(s),p=Ml.create(r,o,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t}(),fp;(function(t){function r(o){return{uri:o}}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.string(s.uri)}t.is=n})(fp||(fp={}));var cp;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&_e.integer(s.version)}t.is=n})(cp||(cp={}));var mf;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&(s.version===null||_e.integer(s.version))}t.is=n})(mf||(mf={}));var dp;(function(t){function r(o,s,p,y){return{uri:o,languageId:s,version:p,text:y}}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&_e.string(s.languageId)&&_e.integer(s.version)&&_e.string(s.text)}t.is=n})(dp||(dp={}));var ua;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(ua||(ua={})),function(t){function r(n){var o=n;return o===t.PlainText||o===t.Markdown}t.is=r}(ua||(ua={}));var Xc;(function(t){function r(n){var o=n;return _e.objectLiteral(n)&&ua.is(o.kind)&&_e.string(o.value)}t.is=r})(Xc||(Xc={}));var Jn;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Jn||(Jn={}));var _r;(function(t){t.PlainText=1,t.Snippet=2})(_r||(_r={}));var pp;(function(t){t.Deprecated=1})(pp||(pp={}));var hp;(function(t){function r(o,s,p){return{newText:o,insert:s,replace:p}}t.create=r;function n(o){var s=o;return s&&_e.string(s.newText)&&ur.is(s.insert)&&ur.is(s.replace)}t.is=n})(hp||(hp={}));var vp;(function(t){t.asIs=1,t.adjustIndentation=2})(vp||(vp={}));var Qc;(function(t){function r(n){return{label:n}}t.create=r})(Qc||(Qc={}));var gp;(function(t){function r(n,o){return{items:n||[],isIncomplete:!!o}}t.create=r})(gp||(gp={}));var xf;(function(t){function r(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function n(o){var s=o;return _e.string(s)||_e.objectLiteral(s)&&_e.string(s.language)&&_e.string(s.value)}t.is=n})(xf||(xf={}));var yp;(function(t){function r(n){var o=n;return!!o&&_e.objectLiteral(o)&&(Xc.is(o.contents)||xf.is(o.contents)||_e.typedArray(o.contents,xf.is))&&(n.range===void 0||ur.is(n.range))}t.is=r})(yp||(yp={}));var mp;(function(t){function r(n,o){return o?{label:n,documentation:o}:{label:n}}t.create=r})(mp||(mp={}));var xp;(function(t){function r(n,o){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var y={label:n};return _e.defined(o)&&(y.documentation=o),_e.defined(s)?y.parameters=s:y.parameters=[],y}t.create=r})(xp||(xp={}));var bp;(function(t){t.Text=1,t.Read=2,t.Write=3})(bp||(bp={}));var wp;(function(t){function r(n,o){var s={range:n};return _e.number(o)&&(s.kind=o),s}t.create=r})(wp||(wp={}));var Ni;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Ni||(Ni={}));var Sp;(function(t){t.Deprecated=1})(Sp||(Sp={}));var Ap;(function(t){function r(n,o,s,p,y){var E={name:n,kind:o,location:{uri:p,range:s}};return y&&(E.containerName=y),E}t.create=r})(Ap||(Ap={}));var Ep;(function(t){function r(o,s,p,y,E,w){var A={name:o,detail:s,kind:p,range:y,selectionRange:E};return w!==void 0&&(A.children=w),A}t.create=r;function n(o){var s=o;return s&&_e.string(s.name)&&_e.number(s.kind)&&ur.is(s.range)&&ur.is(s.selectionRange)&&(s.detail===void 0||_e.string(s.detail))&&(s.deprecated===void 0||_e.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=n})(Ep||(Ep={}));var Cp;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Cp||(Cp={}));var Op;(function(t){function r(o,s){var p={diagnostics:o};return s!=null&&(p.only=s),p}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.typedArray(s.diagnostics,la.is)&&(s.only===void 0||_e.typedArray(s.only,_e.string))}t.is=n})(Op||(Op={}));var Tp;(function(t){function r(o,s,p){var y={title:o},E=!0;return typeof s=="string"?(E=!1,y.kind=s):Il.is(s)?y.command=s:y.edit=s,E&&p!==void 0&&(y.kind=p),y}t.create=r;function n(o){var s=o;return s&&_e.string(s.title)&&(s.diagnostics===void 0||_e.typedArray(s.diagnostics,la.is))&&(s.kind===void 0||_e.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Il.is(s.command))&&(s.isPreferred===void 0||_e.boolean(s.isPreferred))&&(s.edit===void 0||Jc.is(s.edit))}t.is=n})(Tp||(Tp={}));var Pp;(function(t){function r(o,s){var p={range:o};return _e.defined(s)&&(p.data=s),p}t.create=r;function n(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.undefined(s.command)||Il.is(s.command))}t.is=n})(Pp||(Pp={}));var Ip;(function(t){function r(o,s){return{tabSize:o,insertSpaces:s}}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.uinteger(s.tabSize)&&_e.boolean(s.insertSpaces)}t.is=n})(Ip||(Ip={}));var Fp;(function(t){function r(o,s,p){return{range:o,target:s,data:p}}t.create=r;function n(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.undefined(s.target)||_e.string(s.target))}t.is=n})(Fp||(Fp={}));var bf;(function(t){function r(o,s){return{range:o,parent:s}}t.create=r;function n(o){var s=o;return s!==void 0&&ur.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=n})(bf||(bf={}));var Lm=null,kp;(function(t){function r(p,y,E,w){return new sg(p,y,E,w)}t.create=r;function n(p){var y=p;return!!(_e.defined(y)&&_e.string(y.uri)&&(_e.undefined(y.languageId)||_e.string(y.languageId))&&_e.uinteger(y.lineCount)&&_e.func(y.getText)&&_e.func(y.positionAt)&&_e.func(y.offsetAt))}t.is=n;function o(p,y){for(var E=p.getText(),w=s(y,function(ce,xe){var ge=ce.range.start.line-xe.range.start.line;return ge===0?ce.range.start.character-xe.range.start.character:ge}),A=E.length,k=w.length-1;k>=0;k--){var G=w[k],ne=p.offsetAt(G.range.start),re=p.offsetAt(G.range.end);if(re<=A)E=E.substring(0,ne)+G.newText+E.substring(re,E.length);else throw new Error("Overlapping edit");A=ne}return E}t.applyEdits=o;function s(p,y){if(p.length<=1)return p;var E=p.length/2|0,w=p.slice(0,E),A=p.slice(E);s(w,y),s(A,y);for(var k=0,G=0,ne=0;k<w.length&&G<A.length;){var re=y(w[k],A[G]);re<=0?p[ne++]=w[k++]:p[ne++]=A[G++]}for(;k<w.length;)p[ne++]=w[k++];for(;G<A.length;)p[ne++]=A[G++];return p}})(kp||(kp={}));var sg=function(){function t(r,n,o,s){this._uri=r,this._languageId=n,this._version=o,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),o=this.offsetAt(r.end);return this._content.substring(n,o)}return this._content},t.prototype.update=function(r,n){this._content=r.text,this._version=n,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],n=this._content,o=!0,s=0;s<n.length;s++){o&&(r.push(s),o=!1);var p=n.charAt(s);o=p==="\r"||p===`
305
+ `,p==="\r"&&s+1<n.length&&n.charAt(s+1)===`
306
+ `&&s++}o&&n.length>0&&r.push(n.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),o=0,s=n.length;if(s===0)return gi.create(0,r);for(;o<s;){var p=Math.floor((o+s)/2);n[p]>r?s=p:o=p+1}var y=o-1;return gi.create(y,r-n[y])},t.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var o=n[r.line],s=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),_e;(function(t){var r=Object.prototype.toString;function n(re){return typeof re!="undefined"}t.defined=n;function o(re){return typeof re=="undefined"}t.undefined=o;function s(re){return re===!0||re===!1}t.boolean=s;function p(re){return r.call(re)==="[object String]"}t.string=p;function y(re){return r.call(re)==="[object Number]"}t.number=y;function E(re,ce,xe){return r.call(re)==="[object Number]"&&ce<=re&&re<=xe}t.numberRange=E;function w(re){return r.call(re)==="[object Number]"&&-2147483648<=re&&re<=2147483647}t.integer=w;function A(re){return r.call(re)==="[object Number]"&&0<=re&&re<=2147483647}t.uinteger=A;function k(re){return r.call(re)==="[object Function]"}t.func=k;function G(re){return re!==null&&typeof re=="object"}t.objectLiteral=G;function ne(re,ce){return Array.isArray(re)&&re.every(ce)}t.typedArray=ne})(_e||(_e={}));var Mp=function(){function t(r,n,o,s){this._uri=r,this._languageId=n,this._version=o,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),o=this.offsetAt(r.end);return this._content.substring(n,o)}return this._content},t.prototype.update=function(r,n){for(var o=0,s=r;o<s.length;o++){var p=s[o];if(t.isIncremental(p)){var y=Lp(p.range),E=this.offsetAt(y.start),w=this.offsetAt(y.end);this._content=this._content.substring(0,E)+p.text+this._content.substring(w,this._content.length);var A=Math.max(y.start.line,0),k=Math.max(y.end.line,0),G=this._lineOffsets,ne=Rp(p.text,!1,E);if(k-A===ne.length)for(var re=0,ce=ne.length;re<ce;re++)G[re+A+1]=ne[re];else ne.length<1e4?G.splice.apply(G,[A+1,k-A].concat(ne)):this._lineOffsets=G=G.slice(0,A+1).concat(ne,G.slice(k+1));var xe=p.text.length-(w-E);if(xe!==0)for(var re=A+1+ne.length,ce=G.length;re<ce;re++)G[re]=G[re]+xe}else if(t.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=n},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Rp(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),o=0,s=n.length;if(s===0)return{line:0,character:r};for(;o<s;){var p=Math.floor((o+s)/2);n[p]>r?s=p:o=p+1}var y=o-1;return{line:y,character:r-n[y]}},t.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var o=n[r.line],s=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),t.isIncremental=function(r){var n=r;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")},t.isFull=function(r){var n=r;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0},t}(),wf;(function(t){function r(s,p,y,E){return new Mp(s,p,y,E)}t.create=r;function n(s,p,y){if(s instanceof Mp)return s.update(p,y),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function o(s,p){for(var y=s.getText(),E=Zc(p.map(lg),function(ce,xe){var ge=ce.range.start.line-xe.range.start.line;return ge===0?ce.range.start.character-xe.range.start.character:ge}),w=0,A=[],k=0,G=E;k<G.length;k++){var ne=G[k],re=s.offsetAt(ne.range.start);if(re<w)throw new Error("Overlapping edit");re>w&&A.push(y.substring(w,re)),ne.newText.length&&A.push(ne.newText),w=s.offsetAt(ne.range.end)}return A.push(y.substr(w)),A.join("")}t.applyEdits=o})(wf||(wf={}));function Zc(t,r){if(t.length<=1)return t;var n=t.length/2|0,o=t.slice(0,n),s=t.slice(n);Zc(o,r),Zc(s,r);for(var p=0,y=0,E=0;p<o.length&&y<s.length;){var w=r(o[p],s[y]);w<=0?t[E++]=o[p++]:t[E++]=s[y++]}for(;p<o.length;)t[E++]=o[p++];for(;y<s.length;)t[E++]=s[y++];return t}function Rp(t,r,n){n===void 0&&(n=0);for(var o=r?[n]:[],s=0;s<t.length;s++){var p=t.charCodeAt(s);(p===13||p===10)&&(p===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,o.push(n+s+1))}return o}function Lp(t){var r=t.start,n=t.end;return r.line>n.line||r.line===n.line&&r.character>n.character?{start:n,end:r}:t}function lg(t){var r=Lp(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var tr;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(tr||(tr={}));var Dp;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ua.Markdown,ua.PlainText],commitCharactersSupport:!0}}}}})(Dp||(Dp={}));var ho=function(){var t=function(r,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,n)};return function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),ug={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},vo=function(){function t(r,n,o){this.offset=n,this.length=o,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),fg=function(t){ho(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.type="null",s.value=null,s}return r}(vo),Np=function(t){ho(r,t);function r(n,o,s){var p=t.call(this,n,s)||this;return p.type="boolean",p.value=o,p}return r}(vo),cg=function(t){ho(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(vo),dg=function(t){ho(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(vo),Bp=function(t){ho(r,t);function r(n,o,s){var p=t.call(this,n,o,s)||this;return p.type="string",p.value="",p}return r}(vo),pg=function(t){ho(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(vo),hg=function(t){ho(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(vo);function kn(t){return Di(t)?t?{}:{not:{}}:t}var Up;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(Up||(Up={}));var vg=function(){function t(r,n){r===void 0&&(r=-1),n===void 0&&(n=null),this.focusOffset=r,this.exclude=n,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){var n;(n=this.schemas).push.apply(n,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||jp(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),_c=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),Mn=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var n=0,o=r;n<o.length;n++){var s=o[n];this.merge(s)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var n=0,o=this.problems;n<o.length;n++){var s=o[n];s.code===tr.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(p){return JSON.stringify(p)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var n=this.hasProblems();return n!==r.hasProblems()?n?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function gg(t,r){return r===void 0&&(r=[]),new Vp(t,r,[])}function Ta(t){return ig(t)}function qc(t){return ng(t)}function jp(t,r,n){return n===void 0&&(n=!1),r>=t.offset&&r<t.offset+t.length||n&&r===t.offset+t.length}var Vp=function(){function t(r,n,o){n===void 0&&(n=[]),o===void 0&&(o=[]),this.root=r,this.syntaxErrors=n,this.comments=o}return t.prototype.getNodeFromOffset=function(r,n){if(n===void 0&&(n=!1),this.root)return rg(this.root,r,n)},t.prototype.visit=function(r){if(this.root){var n=function(o){var s=r(o),p=o.children;if(Array.isArray(p))for(var y=0;y<p.length&&s;y++)s=n(p[y]);return s};n(this.root)}},t.prototype.validate=function(r,n){if(this.root&&n){var o=new Mn;return cn(this.root,n,o,_c.instance),o.problems.map(function(s){var p=ur.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return la.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,n,o){n===void 0&&(n=-1),o===void 0&&(o=null);var s=new vg(n,o);return this.root&&r&&cn(this.root,r,new Mn,s),s.schemas},t}();function cn(t,r,n,o){if(!t||!o.include(t))return;switch(t.type){case"object":w(t,r,n,o);break;case"array":E(t,r,n,o);break;case"string":y(t,r,n,o);break;case"number":p(t,r,n,o);break;case"property":return cn(t.valueNode,r,n,o)}s(),o.add({node:t,schema:r});function s(){function A(et){return t.type===et||et==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(A)||n.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(A(r.type)||n.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var k=0,G=r.allOf;k<G.length;k++){var ne=G[k];cn(t,kn(ne),n,o)}var re=kn(r.not);if(re){var ce=new Mn,xe=o.newSub();cn(t,re,ce,xe),ce.hasProblems()||n.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:"Matches a schema that is not allowed."});for(var ge=0,Ee=xe.schemas;ge<Ee.length;ge++){var we=Ee[ge];we.inverted=!we.inverted,o.add(we)}}var Te=function(et,St){for(var Nt=[],zt=null,or=0,Mr=et;or<Mr.length;or++){var Er=Mr[or],Qr=kn(Er),wr=new Mn,Nr=o.newSub();if(cn(t,Qr,wr,Nr),wr.hasProblems()||Nt.push(Qr),!zt)zt={schema:Qr,validationResult:wr,matchingSchemas:Nr};else if(!St&&!wr.hasProblems()&&!zt.validationResult.hasProblems())zt.matchingSchemas.merge(Nr),zt.validationResult.propertiesMatches+=wr.propertiesMatches,zt.validationResult.propertiesValueMatches+=wr.propertiesValueMatches;else{var wn=wr.compare(zt.validationResult);wn>0?zt={schema:Qr,validationResult:wr,matchingSchemas:Nr}:wn===0&&(zt.matchingSchemas.merge(Nr),zt.validationResult.mergeEnumValues(wr))}}return Nt.length>1&&St&&n.problems.push({location:{offset:t.offset,length:1},severity:$t.Warning,message:"Matches multiple schemas when only one must validate."}),zt!==null&&(n.merge(zt.validationResult),n.propertiesMatches+=zt.validationResult.propertiesMatches,n.propertiesValueMatches+=zt.validationResult.propertiesValueMatches,o.merge(zt.matchingSchemas)),Nt.length};Array.isArray(r.anyOf)&&Te(r.anyOf,!1),Array.isArray(r.oneOf)&&Te(r.oneOf,!0);var $e=function(et){var St=new Mn,Nt=o.newSub();cn(t,kn(et),St,Nt),n.merge(St),n.propertiesMatches+=St.propertiesMatches,n.propertiesValueMatches+=St.propertiesValueMatches,o.merge(Nt)},je=function(et,St,Nt){var zt=kn(et),or=new Mn,Mr=o.newSub();cn(t,zt,or,Mr),o.merge(Mr),or.hasProblems()?Nt&&$e(Nt):St&&$e(St)},He=kn(r.if);if(He&&je(He,kn(r.then),kn(r.else)),Array.isArray(r.enum)){for(var Ne=Ta(t),Ve=!1,We=0,Je=r.enum;We<Je.length;We++){var ze=Je[We];if(Ol(Ne,ze)){Ve=!0;break}}n.enumValues=r.enum,n.enumValueMatch=Ve,Ve||n.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:tr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(et){return JSON.stringify(et)}).join(", ")+"."})}if(sa(r.const)){var Ne=Ta(t);Ol(Ne,r.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:tr.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),n.enumValueMatch=!1),n.enumValues=[r.const]}r.deprecationMessage&&t.parent&&n.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:$t.Warning,message:r.deprecationMessage})}function p(A,k,G,ne){var re=A.value;Yn(k.multipleOf)&&re%k.multipleOf!=0&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is not divisible by "+k.multipleOf+"."});function ce($e,je){if(Yn(je))return je;if(Di(je)&&je)return $e}function xe($e,je){if(!Di(je)||!je)return $e}var ge=ce(k.minimum,k.exclusiveMinimum);Yn(ge)&&re<=ge&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is below the exclusive minimum of "+ge+"."});var Ee=ce(k.maximum,k.exclusiveMaximum);Yn(Ee)&&re>=Ee&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is above the exclusive maximum of "+Ee+"."});var we=xe(k.minimum,k.exclusiveMinimum);Yn(we)&&re<we&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is below the minimum of "+we+"."});var Te=xe(k.maximum,k.exclusiveMaximum);Yn(Te)&&re>Te&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is above the maximum of "+Te+"."})}function y(A,k,G,ne){if(Yn(k.minLength)&&A.value.length<k.minLength&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"String is shorter than the minimum length of "+k.minLength+"."}),Yn(k.maxLength)&&A.value.length>k.maxLength&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"String is longer than the maximum length of "+k.maxLength+"."}),og(k.pattern)){var re=new RegExp(k.pattern);re.test(A.value)||G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.patternErrorMessage||k.errorMessage||'String does not match the pattern of "'+k.pattern+'".'})}if(k.format)switch(k.format){case"uri":case"uri-reference":{var ce=void 0;if(!A.value)ce="URI expected.";else{var xe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(A.value);xe?!xe[2]&&k.format==="uri"&&(ce="URI with a scheme is expected."):ce="URI is expected."}ce&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.patternErrorMessage||k.errorMessage||"String is not a URI: "+ce})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var ge=ug[k.format];(!A.value||!ge.pattern.exec(A.value))&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.patternErrorMessage||k.errorMessage||ge.errorMessage});break;default:}}function E(A,k,G,ne){if(Array.isArray(k.items)){for(var re=k.items,ce=0;ce<re.length;ce++){var xe=re[ce],ge=kn(xe),Ee=new Mn,we=A.items[ce];we?(cn(we,ge,Ee,ne),G.mergePropertyMatch(Ee)):A.items.length>=re.length&&G.propertiesValueMatches++}if(A.items.length>re.length)if(typeof k.additionalItems=="object")for(var Te=re.length;Te<A.items.length;Te++){var Ee=new Mn;cn(A.items[Te],k.additionalItems,Ee,ne),G.mergePropertyMatch(Ee)}else k.additionalItems===!1&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has too many items according to schema. Expected "+re.length+" or fewer."})}else{var $e=kn(k.items);if($e)for(var je=0,He=A.items;je<He.length;je++){var we=He[je],Ee=new Mn;cn(we,$e,Ee,ne),G.mergePropertyMatch(Ee)}}var Ne=kn(k.contains);if(Ne){var Ve=A.items.some(function(ze){var et=new Mn;return cn(ze,Ne,et,_c.instance),!et.hasProblems()});Ve||G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.errorMessage||"Array does not contain required item."})}if(Yn(k.minItems)&&A.items.length<k.minItems&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has too few items. Expected "+k.minItems+" or more."}),Yn(k.maxItems)&&A.items.length>k.maxItems&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has too many items. Expected "+k.maxItems+" or fewer."}),k.uniqueItems===!0){var We=Ta(A),Je=We.some(function(ze,et){return et!==We.lastIndexOf(ze)});Je&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has duplicate items."})}}function w(A,k,G,ne){for(var re=Object.create(null),ce=[],xe=0,ge=A.properties;xe<ge.length;xe++){var Ee=ge[xe],we=Ee.keyNode.value;re[we]=Ee.valueNode,ce.push(we)}if(Array.isArray(k.required))for(var Te=0,$e=k.required;Te<$e.length;Te++){var je=$e[Te];if(!re[je]){var He=A.parent&&A.parent.type==="property"&&A.parent.keyNode,Ne=He?{offset:He.offset,length:He.length}:{offset:A.offset,length:1};G.problems.push({location:Ne,severity:$t.Warning,message:'Missing property "'+je+'".'})}}var Ve=function(xi){for(var Nl=ce.indexOf(xi);Nl>=0;)ce.splice(Nl,1),Nl=ce.indexOf(xi)};if(k.properties)for(var We=0,Je=Object.keys(k.properties);We<Je.length;We++){var je=Je[We];Ve(je);var ze=k.properties[je],et=re[je];if(et)if(Di(ze))if(ze)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ee=et.parent;G.problems.push({location:{offset:Ee.keyNode.offset,length:Ee.keyNode.length},severity:$t.Warning,message:k.errorMessage||"Property "+je+" is not allowed."})}else{var St=new Mn;cn(et,ze,St,ne),G.mergePropertyMatch(St)}}if(k.patternProperties)for(var Nt=0,zt=Object.keys(k.patternProperties);Nt<zt.length;Nt++)for(var or=zt[Nt],Mr=new RegExp(or),Er=0,Qr=ce.slice(0);Er<Qr.length;Er++){var je=Qr[Er];if(Mr.test(je)){Ve(je);var et=re[je];if(et){var ze=k.patternProperties[or];if(Di(ze))if(ze)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ee=et.parent;G.problems.push({location:{offset:Ee.keyNode.offset,length:Ee.keyNode.length},severity:$t.Warning,message:k.errorMessage||"Property "+je+" is not allowed."})}else{var St=new Mn;cn(et,ze,St,ne),G.mergePropertyMatch(St)}}}}if(typeof k.additionalProperties=="object")for(var wr=0,Nr=ce;wr<Nr.length;wr++){var je=Nr[wr],et=re[je];if(et){var St=new Mn;cn(et,k.additionalProperties,St,ne),G.mergePropertyMatch(St)}}else if(k.additionalProperties===!1&&ce.length>0)for(var wn=0,Yt=ce;wn<Yt.length;wn++){var je=Yt[wn],et=re[je];if(et){var Ee=et.parent;G.problems.push({location:{offset:Ee.keyNode.offset,length:Ee.keyNode.length},severity:$t.Warning,message:k.errorMessage||"Property "+je+" is not allowed."})}}if(Yn(k.maxProperties)&&A.properties.length>k.maxProperties&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Object has more properties than limit of "+k.maxProperties+"."}),Yn(k.minProperties)&&A.properties.length<k.minProperties&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Object has fewer properties than the required number of "+k.minProperties}),k.dependencies)for(var Rt=0,Ut=Object.keys(k.dependencies);Rt<Ut.length;Rt++){var we=Ut[Rt],sr=re[we];if(sr){var an=k.dependencies[we];if(Array.isArray(an))for(var yr=0,gs=an;yr<gs.length;yr++){var Ll=gs[yr];re[Ll]?G.propertiesValueMatches++:G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Object is missing property "+Ll+" required by property {$key}."})}else{var ze=kn(an);if(ze){var St=new Mn;cn(A,ze,St,ne),G.mergePropertyMatch(St)}}}}var go=kn(k.propertyNames);if(go)for(var Bi=0,Dl=A.properties;Bi<Dl.length;Bi++){var Pf=Dl[Bi],we=Pf.keyNode;we&&cn(we,go,G,_c.instance)}}}function yg(t,r){var n=[],o=-1,s=t.getText(),p=fs(s,!1),y=r&&r.collectComments?[]:void 0;function E(){for(;;){var He=p.scan();switch(G(),He){case 12:case 13:Array.isArray(y)&&y.push(ur.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return He}}}function w(He){return p.getToken()===He?(E(),!0):!1}function A(He,Ne,Ve,We,Je){if(Je===void 0&&(Je=$t.Error),n.length===0||Ve!==o){var ze=ur.create(t.positionAt(Ve),t.positionAt(We));n.push(la.create(ze,He,Je,Ne,t.languageId)),o=Ve}}function k(He,Ne,Ve,We,Je){Ve===void 0&&(Ve=null),We===void 0&&(We=[]),Je===void 0&&(Je=[]);var ze=p.getTokenOffset(),et=p.getTokenOffset()+p.getTokenLength();if(ze===et&&ze>0){for(ze--;ze>0&&/\s/.test(s.charAt(ze));)ze--;et=ze+1}if(A(He,Ne,ze,et),Ve&&ne(Ve,!1),We.length+Je.length>0)for(var St=p.getToken();St!==17;){if(We.indexOf(St)!==-1){E();break}else if(Je.indexOf(St)!==-1)break;St=E()}return Ve}function G(){switch(p.getTokenError()){case 4:return k("Invalid unicode sequence in string.",tr.InvalidUnicode),!0;case 5:return k("Invalid escape character in string.",tr.InvalidEscapeCharacter),!0;case 3:return k("Unexpected end of number.",tr.UnexpectedEndOfNumber),!0;case 1:return k("Unexpected end of comment.",tr.UnexpectedEndOfComment),!0;case 2:return k("Unexpected end of string.",tr.UnexpectedEndOfString),!0;case 6:return k("Invalid characters in string. Control characters must be escaped.",tr.InvalidCharacter),!0}return!1}function ne(He,Ne){return He.length=p.getTokenOffset()+p.getTokenLength()-He.offset,Ne&&E(),He}function re(He){if(p.getToken()!==3)return null;var Ne=new cg(He,p.getTokenOffset());E();for(var Ve=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||k("Value expected",tr.ValueExpected);var Je=p.getTokenOffset();if(E(),p.getToken()===4){We&&A("Trailing comma",tr.TrailingComma,Je,Je+1);continue}}else We&&k("Expected comma",tr.CommaExpected);var ze=Te(Ne,Ve++);ze?Ne.items.push(ze):k("Value expected",tr.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?k("Expected comma or closing bracket",tr.CommaOrCloseBacketExpected,Ne):ne(Ne,!0)}function ce(He,Ne){var Ve=new pg(He,p.getTokenOffset()),We=ge(Ve);if(!We)if(p.getToken()===16){k("Property keys must be doublequoted",tr.Undefined);var Je=new Bp(Ve,p.getTokenOffset(),p.getTokenLength());Je.value=p.getTokenValue(),We=Je,E()}else return null;Ve.keyNode=We;var ze=Ne[We.value];if(ze?(A("Duplicate object key",tr.DuplicateKey,Ve.keyNode.offset,Ve.keyNode.offset+Ve.keyNode.length,$t.Warning),typeof ze=="object"&&A("DuplicateKeyWarning",tr.DuplicateKey,ze.keyNode.offset,ze.keyNode.offset+ze.keyNode.length,$t.Warning),Ne[We.value]=!0):Ne[We.value]=Ve,p.getToken()===6)Ve.colonOffset=p.getTokenOffset(),E();else if(k("Colon expected",tr.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return Ve.length=We.length,Ve;var et=Te(Ve,We.value);return et?(Ve.valueNode=et,Ve.length=et.offset+et.length-Ve.offset,Ve):k("Value expected",tr.ValueExpected,Ve,[],[2,5])}function xe(He){if(p.getToken()!==1)return null;var Ne=new hg(He,p.getTokenOffset()),Ve=Object.create(null);E();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||k("Property expected",tr.PropertyExpected);var Je=p.getTokenOffset();if(E(),p.getToken()===2){We&&A("Trailing comma",tr.TrailingComma,Je,Je+1);continue}}else We&&k("Expected comma",tr.CommaExpected);var ze=ce(Ne,Ve);ze?Ne.properties.push(ze):k("Property expected",tr.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?k("Expected comma or closing brace",tr.CommaOrCloseBraceExpected,Ne):ne(Ne,!0)}function ge(He){if(p.getToken()!==10)return null;var Ne=new Bp(He,p.getTokenOffset());return Ne.value=p.getTokenValue(),ne(Ne,!0)}function Ee(He){if(p.getToken()!==11)return null;var Ne=new dg(He,p.getTokenOffset());if(p.getTokenError()===0){var Ve=p.getTokenValue();try{var We=JSON.parse(Ve);if(!Yn(We))return k("Invalid number format.",tr.Undefined,Ne);Ne.value=We}catch(Je){return k("Invalid number format.",tr.Undefined,Ne)}Ne.isInteger=Ve.indexOf(".")===-1}return ne(Ne,!0)}function we(He){var Ne;switch(p.getToken()){case 7:return ne(new fg(He,p.getTokenOffset()),!0);case 8:return ne(new Np(He,!0,p.getTokenOffset()),!0);case 9:return ne(new Np(He,!1,p.getTokenOffset()),!0);default:return null}}function Te(He,Ne){return re(He)||xe(He)||ge(He)||Ee(He)||we(He)}var $e=null,je=E();return je!==17&&($e=Te(null,null),$e?p.getToken()!==17&&k("End of file expected.",tr.Undefined):k("Expected a JSON object, array or literal.",tr.Undefined)),new Vp($e,n,y)}function ed(t,r,n){if(t!==null&&typeof t=="object"){var o=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
307
+ `,p=0;p<t.length;p++)s+=o+ed(t[p],o,n),p<t.length-1&&(s+=","),s+=`
308
+ `;return s+=r+"]",s}else{var y=Object.keys(t);if(y.length===0)return"{}";for(var s=`{
309
+ `,p=0;p<y.length;p++){var E=y[p];s+=o+JSON.stringify(E)+": "+ed(t[E],o,n),p<y.length-1&&(s+=","),s+=`
310
+ `}return s+=r+"}",s}}return n(t)}function mg(t,r){if(t.length<r.length)return!1;for(var n=0;n<r.length;n++)if(t[n]!==r[n])return!1;return!0}function td(t,r){var n=t.length-r.length;return n>0?t.lastIndexOf(r)===n:n===0?t===r:!1}function xg(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Dm(t,r){for(var n="";r>0;)(r&1)==1&&(n+=t),t+=t,r=r>>>1;return n}var bg=[",","}","]"],wg=[":"],Sg=function(){function t(r,n,o,s){n===void 0&&(n=[]),o===void 0&&(o=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=n,this.promiseConstructor=o,this.clientCapabilities=s,this.templateVarIdCounter=0}return t.prototype.doResolve=function(r){for(var n=this.contributions.length-1;n>=0;n--)if(this.contributions[n].resolveCompletion){var o=this.contributions[n].resolveCompletion(r);if(o)return o}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,n,o){var s=this,p={items:[],isIncomplete:!1},y=r.getText(),E=r.offsetAt(n),w=o.getNodeFromOffset(E,!0);if(this.isInComment(r,w?w.offset:0,E))return Promise.resolve(p);if(w&&E===w.offset+w.length&&E>0){var A=y[E-1];(w.type==="object"&&A==="}"||w.type==="array"&&A==="]")&&(w=w.parent)}var k=this.getCurrentWord(r,E),G=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))G=ur.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var ne=E-k.length;ne>0&&y[ne-1]==='"'&&ne--,G=ur.create(r.positionAt(ne),n)}var re=this.doesSupportsCommitCharacters(),ce={},xe={add:function(ge){var Ee=ce[ge.label];Ee?Ee.documentation||(Ee.documentation=ge.documentation):(ce[ge.label]=ge,G&&(ge.textEdit=yi.replace(G,ge.insertText)),re&&(ge.commitCharacters=ge.kind===Jn.Property?wg:bg),p.items.push(ge))},setAsIncomplete:function(){p.isIncomplete=!0},error:function(ge){console.error(ge)},log:function(ge){console.log(ge)},getNumberOfProposals:function(){return p.items.length}};return this.schemaService.getSchemaForResource(r.uri,o).then(function(ge){var Ee=[],we=!0,Te="",$e=null;if(w&&w.type==="string"){var je=w.parent;je&&je.type==="property"&&je.keyNode===w&&(we=!je.valueNode,$e=je,Te=y.substr(w.offset+1,w.length-2),je&&(w=je.parent))}if(w&&w.type==="object"){if(w.offset===E)return p;var He=w.properties;He.forEach(function(Je){(!$e||$e!==Je)&&(ce[Je.keyNode.value]=Qc.create("__"))});var Ne="";we&&(Ne=s.evaluateSeparatorAfter(r,r.offsetAt(G.end))),ge?s.getPropertyCompletions(ge,o,w,we,Ne,xe):s.getSchemaLessPropertyCompletions(o,w,Te,xe);var Ve=qc(w);s.contributions.forEach(function(Je){var ze=Je.collectPropertyCompletions(r.uri,Ve,k,we,Ne==="",xe);ze&&Ee.push(ze)}),!ge&&k.length>0&&y.charAt(E-k.length-1)!=='"'&&(xe.add({kind:Jn.Property,label:s.getLabelForValue(k),insertText:s.getInsertTextForProperty(k,null,!1,Ne),insertTextFormat:_r.Snippet,documentation:""}),xe.setAsIncomplete())}var We={};return ge?s.getValueCompletions(ge,o,w,E,r,xe,We):s.getSchemaLessValueCompletions(o,w,E,r,xe),s.contributions.length>0&&s.getContributedValueCompletions(o,w,E,r,xe,Ee),s.promiseConstructor.all(Ee).then(function(){if(xe.getNumberOfProposals()===0){var Je=E;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Je=w.offset+w.length);var ze=s.evaluateSeparatorAfter(r,Je);s.addFillerValueCompletions(We,ze,xe)}return p})})},t.prototype.getPropertyCompletions=function(r,n,o,s,p,y){var E=this,w=n.getMatchingSchemas(r.schema,o.offset);w.forEach(function(A){if(A.node===o&&!A.inverted){var k=A.schema.properties;k&&Object.keys(k).forEach(function(G){var ne=k[G],re=!1;if(typeof ne=="object"&&ne.allOf)for(var ce=0,xe=ne.allOf;ce<xe.length;ce++){var ge=xe[ce];if(ge.readOnly){re=!0;break}}if(typeof ne=="object"&&!ne.deprecationMessage&&!ne.doNotSuggest&&!re){var Ee={kind:Jn.Property,label:E.sanitizeLabel(G),insertText:E.getInsertTextForProperty(G,ne,s,p),insertTextFormat:_r.Snippet,filterText:E.getFilterTextForValue(G),documentation:E.fromMarkup(ne.markdownDescription)||ne.description||""};td(Ee.insertText,"$1"+p)&&(Ee.command={title:"Suggest",command:"editor.action.triggerSuggest"}),y.add(Ee)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,n,o,s){var p=this,y=function(w){w.properties.forEach(function(A){var k=A.keyNode.value;s.add({kind:Jn.Property,label:p.sanitizeLabel(k),insertText:p.getInsertTextForValue(k,""),insertTextFormat:_r.Snippet,filterText:p.getFilterTextForValue(k),documentation:""})})};if(n.parent)if(n.parent.type==="property"){var E=n.parent.keyNode.value;r.visit(function(w){return w.type==="property"&&w!==n.parent&&w.keyNode.value===E&&w.valueNode&&w.valueNode.type==="object"&&y(w.valueNode),!0})}else n.parent.type==="array"&&n.parent.items.forEach(function(w){w.type==="object"&&w!==n&&y(w)});else n.type==="object"&&s.add({kind:Jn.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:_r.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,n,o,s,p){var y=this,E=o;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(E=n.offset+n.length,n=n.parent),!n){p.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:_r.Snippet,documentation:""}),p.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:_r.Snippet,documentation:""});return}var w=this.evaluateSeparatorAfter(s,E),A=function(re){jp(re.parent,o,!0)||p.add({kind:y.getSuggestionKind(re.type),label:y.getLabelTextForMatchingNode(re,s),insertText:y.getInsertTextForMatchingNode(re,s,w),insertTextFormat:_r.Snippet,documentation:""}),re.type==="boolean"&&y.addBooleanValueCompletion(!re.value,w,p)};if(n.type==="property"&&o>n.colonOffset){var k=n.valueNode;if(k&&(o>k.offset+k.length||k.type==="object"||k.type==="array"))return;var G=n.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===G&&re.valueNode&&A(re.valueNode),!0}),G==="$schema"&&n.parent&&!n.parent.parent&&this.addDollarSchemaCompletions(w,p)}if(n.type==="array")if(n.parent&&n.parent.type==="property"){var ne=n.parent.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===ne&&re.valueNode&&re.valueNode.type==="array"&&re.valueNode.items.forEach(A),!0})}else n.items.forEach(A)},t.prototype.getValueCompletions=function(r,n,o,s,p,y,E){var w=this,A=s,k=null,G=null;if(o&&(o.type==="string"||o.type==="number"||o.type==="boolean"||o.type==="null")&&(A=o.offset+o.length,G=o,o=o.parent),!o){this.addSchemaValueCompletions(r.schema,"",y,E);return}if(o.type==="property"&&s>o.colonOffset){var ne=o.valueNode;if(ne&&s>ne.offset+ne.length)return;k=o.keyNode.value,o=o.parent}if(o&&(k!==null||o.type==="array")){var re=this.evaluateSeparatorAfter(p,A),ce=n.getMatchingSchemas(r.schema,o.offset,G);ce.forEach(function(xe){if(xe.node===o&&!xe.inverted&&xe.schema){if(o.type==="array"&&xe.schema.items)if(Array.isArray(xe.schema.items)){var ge=w.findItemAtOffset(o,p,s);ge<xe.schema.items.length&&w.addSchemaValueCompletions(xe.schema.items[ge],re,y,E)}else w.addSchemaValueCompletions(xe.schema.items,re,y,E);if(xe.schema.properties){var Ee=xe.schema.properties[k];Ee&&w.addSchemaValueCompletions(Ee,re,y,E)}}}),k==="$schema"&&!o.parent&&this.addDollarSchemaCompletions(re,y),E.boolean&&(this.addBooleanValueCompletion(!0,re,y),this.addBooleanValueCompletion(!1,re,y)),E.null&&this.addNullValueCompletion(re,y)}},t.prototype.getContributedValueCompletions=function(r,n,o,s,p,y){if(!n)this.contributions.forEach(function(k){var G=k.collectDefaultCompletions(s.uri,p);G&&y.push(G)});else if((n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(n=n.parent),n.type==="property"&&o>n.colonOffset){var E=n.keyNode.value,w=n.valueNode;if(!w||o<=w.offset+w.length){var A=qc(n.parent);this.contributions.forEach(function(k){var G=k.collectValueCompletions(s.uri,A,E,p);G&&y.push(G)})}}},t.prototype.addSchemaValueCompletions=function(r,n,o,s){var p=this;typeof r=="object"&&(this.addEnumValueCompletions(r,n,o),this.addDefaultValueCompletions(r,n,o),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(y){return p.addSchemaValueCompletions(y,n,o,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(y){return p.addSchemaValueCompletions(y,n,o,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(y){return p.addSchemaValueCompletions(y,n,o,s)}))},t.prototype.addDefaultValueCompletions=function(r,n,o,s){var p=this;s===void 0&&(s=0);var y=!1;if(sa(r.default)){for(var E=r.type,w=r.default,A=s;A>0;A--)w=[w],E="array";o.add({kind:this.getSuggestionKind(E),label:this.getLabelForValue(w),insertText:this.getInsertTextForValue(w,n),insertTextFormat:_r.Snippet}),y=!0}Array.isArray(r.examples)&&r.examples.forEach(function(k){for(var G=r.type,ne=k,re=s;re>0;re--)ne=[ne],G="array";o.add({kind:p.getSuggestionKind(G),label:p.getLabelForValue(ne),insertText:p.getInsertTextForValue(ne,n),insertTextFormat:_r.Snippet}),y=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(k){var G=r.type,ne=k.body,re=k.label,ce,xe;if(sa(ne)){for(var ge=r.type,Ee=s;Ee>0;Ee--)ne=[ne],ge="array";ce=p.getInsertTextForSnippetValue(ne,n),xe=p.getFilterTextForSnippetValue(ne),re=re||p.getLabelForSnippetValue(ne)}else if(typeof k.bodyText=="string"){for(var we="",Te="",$e="",Ee=s;Ee>0;Ee--)we=we+$e+`[
311
+ `,Te=Te+`
312
+ `+$e+"]",$e+=" ",G="array";ce=we+$e+k.bodyText.split(`
313
+ `).join(`
314
+ `+$e)+Te+n,re=re||p.sanitizeLabel(ce),xe=ce.replace(/[\n]/g,"")}o.add({kind:p.getSuggestionKind(G),label:re,documentation:p.fromMarkup(k.markdownDescription)||k.description,insertText:ce,insertTextFormat:_r.Snippet,filterText:xe}),y=!0}),!y&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,n,o,s+1)},t.prototype.addEnumValueCompletions=function(r,n,o){if(sa(r.const)&&o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,n),insertTextFormat:_r.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,p=r.enum.length;s<p;s++){var y=r.enum[s],E=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?E=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(E=r.enumDescriptions[s]),o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(y),insertText:this.getInsertTextForValue(y,n),insertTextFormat:_r.Snippet,documentation:E})}},t.prototype.collectTypes=function(r,n){if(!(Array.isArray(r.enum)||sa(r.const))){var o=r.type;Array.isArray(o)?o.forEach(function(s){return n[s]=!0}):n[o]=!0}},t.prototype.addFillerValueCompletions=function(r,n,o){r.object&&o.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},n),insertTextFormat:_r.Snippet,detail:"New object",documentation:""}),r.array&&o.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],n),insertTextFormat:_r.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(r,n,o){o.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,n),insertTextFormat:_r.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,n){n.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:_r.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,n){var o=this,s=this.schemaService.getRegisteredSchemaIds(function(p){return p==="http"||p==="https"});s.forEach(function(p){return n.add({kind:Jn.Module,label:o.getLabelForValue(p),filterText:o.getFilterTextForValue(p),insertText:o.getInsertTextForValue(p,r),insertTextFormat:_r.Snippet,documentation:""})})},t.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},t.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},t.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},t.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},t.prototype.getLabelForSnippetValue=function(r){var n=JSON.stringify(r);return n=n.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(n)},t.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},t.prototype.getInsertTextForValue=function(r,n){var o=JSON.stringify(r,null," ");return o==="{}"?"{$1}"+n:o==="[]"?"[$1]"+n:this.getInsertTextForPlainText(o+n)},t.prototype.getInsertTextForSnippetValue=function(r,n){var o=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return ed(r,"",o)+n},t.prototype.getInsertTextForGuessedValue=function(r,n){switch(typeof r){case"object":return r===null?"${1:null}"+n:this.getInsertTextForValue(r,n);case"string":var o=JSON.stringify(r);return o=o.substr(1,o.length-2),o=this.getInsertTextForPlainText(o),'"${1:'+o+'}"'+n;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+n}return this.getInsertTextForValue(r,n)},t.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var n=r;r=n.length>0?n[0]:null}if(!r)return Jn.Value;switch(r){case"string":return Jn.Value;case"object":return Jn.Module;case"property":return Jn.Property;default:return Jn.Value}},t.prototype.getLabelTextForMatchingNode=function(r,n){switch(r.type){case"array":return"[]";case"object":return"{}";default:var o=n.getText().substr(r.offset,r.length);return o}},t.prototype.getInsertTextForMatchingNode=function(r,n,o){switch(r.type){case"array":return this.getInsertTextForValue([],o);case"object":return this.getInsertTextForValue({},o);default:var s=n.getText().substr(r.offset,r.length)+o;return this.getInsertTextForPlainText(s)}},t.prototype.getInsertTextForProperty=function(r,n,o,s){var p=this.getInsertTextForValue(r,"");if(!o)return p;var y=p+": ",E,w=0;if(n){if(Array.isArray(n.defaultSnippets)){if(n.defaultSnippets.length===1){var A=n.defaultSnippets[0].body;sa(A)&&(E=this.getInsertTextForSnippetValue(A,""))}w+=n.defaultSnippets.length}if(n.enum&&(!E&&n.enum.length===1&&(E=this.getInsertTextForGuessedValue(n.enum[0],"")),w+=n.enum.length),sa(n.default)&&(E||(E=this.getInsertTextForGuessedValue(n.default,"")),w++),w===0){var k=Array.isArray(n.type)?n.type[0]:n.type;switch(k||(n.properties?k="object":n.items&&(k="array")),k){case"boolean":E="$1";break;case"string":E='"$1"';break;case"object":E="{$1}";break;case"array":E="[$1]";break;case"number":case"integer":E="${1:0}";break;case"null":E="${1:null}";break;default:return p}}}return(!E||w>1)&&(E="$1"),y+E+s},t.prototype.getCurrentWord=function(r,n){for(var o=n-1,s=r.getText();o>=0&&`
315
+ \r\v":{[,]}`.indexOf(s.charAt(o))===-1;)o--;return s.substring(o+1,n)},t.prototype.evaluateSeparatorAfter=function(r,n){var o=fs(r.getText(),!0);o.setPosition(n);var s=o.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,n,o){for(var s=fs(n.getText(),!0),p=r.items,y=p.length-1;y>=0;y--){var E=p[y];if(o>E.offset+E.length){s.setPosition(E.offset+E.length);var w=s.scan();return w===5&&o>=s.getTokenOffset()+s.getTokenLength()?y+1:y}else if(o>=E.offset)return y}return 0},t.prototype.isInComment=function(r,n,o){var s=fs(r.getText(),!1);s.setPosition(n);for(var p=s.scan();p!==17&&s.getTokenOffset()+s.getTokenLength()<o;)p=s.scan();return(p===12||p===13)&&s.getTokenOffset()<=o},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:ua.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!sa(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(ua.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!sa(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),Ag=function(){function t(r,n,o){n===void 0&&(n=[]),this.schemaService=r,this.contributions=n,this.promise=o||Promise}return t.prototype.doHover=function(r,n,o){var s=r.offsetAt(n),p=o.getNodeFromOffset(s);if(!p||(p.type==="object"||p.type==="array")&&s>p.offset+1&&s<p.offset+p.length-1)return this.promise.resolve(null);var y=p;if(p.type==="string"){var E=p.parent;if(E&&E.type==="property"&&E.keyNode===p&&(p=E.valueNode,!p))return this.promise.resolve(null)}for(var w=ur.create(r.positionAt(y.offset),r.positionAt(y.offset+y.length)),A=function(ce){var xe={contents:ce,range:w};return xe},k=qc(p),G=this.contributions.length-1;G>=0;G--){var ne=this.contributions[G],re=ne.getInfoContribution(r.uri,k);if(re)return re.then(function(ce){return A(ce)})}return this.schemaService.getSchemaForResource(r.uri,o).then(function(ce){if(ce){var xe=o.getMatchingSchemas(ce.schema,p.offset),ge=null,Ee=null,we=null,Te=null;xe.every(function(je){if(je.node===p&&!je.inverted&&je.schema&&(ge=ge||je.schema.title,Ee=Ee||je.schema.markdownDescription||rd(je.schema.description),je.schema.enum)){var He=je.schema.enum.indexOf(Ta(p));je.schema.markdownEnumDescriptions?we=je.schema.markdownEnumDescriptions[He]:je.schema.enumDescriptions&&(we=rd(je.schema.enumDescriptions[He])),we&&(Te=je.schema.enum[He],typeof Te!="string"&&(Te=JSON.stringify(Te)))}return!0});var $e="";return ge&&($e=rd(ge)),Ee&&($e.length>0&&($e+=`
316
+
317
+ `),$e+=Ee),we&&($e.length>0&&($e+=`
318
+
319
+ `),$e+="`"+Eg(Te)+"`: "+we),A([$e])}return null})},t}();function rd(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
320
+
321
+ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Eg(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var Cg=function(){var t=function(r,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,n)};return function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hr,Rl;if(typeof process=="object")Rl=!1;else if(typeof navigator=="object"){var Og=navigator.userAgent;Rl=Og.indexOf("Windows")>=0}function Nm(t){return 55296<=t&&t<=56319}function Bm(t){return 56320<=t&&t<=57343}function Um(t){return t>=97&&t<=102}function Tg(t){return t>=97&&t<=122}function Pg(t){return t>=65&&t<=90}function jm(t){return Tg(t)||Pg(t)}var Ig=/^\w[\w\d+.-]*$/,Fg=/^\//,kg=/^\/\//;function Mg(t,r){if(!t.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!Ig.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Fg.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(kg.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Rg(t,r){return!t&&!r?"file":t}function Lg(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==mi&&(r=mi+r):r=mi;break}return r}var hr="",mi="/",Dg=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,nd=function(){function t(r,n,o,s,p,y){y===void 0&&(y=!1),typeof r=="object"?(this.scheme=r.scheme||hr,this.authority=r.authority||hr,this.path=r.path||hr,this.query=r.query||hr,this.fragment=r.fragment||hr):(this.scheme=Rg(r,y),this.authority=n||hr,this.path=Lg(this.scheme,o||hr),this.query=s||hr,this.fragment=p||hr,Mg(this,y))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return Gp(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var n=r.scheme,o=r.authority,s=r.path,p=r.query,y=r.fragment;return n===void 0?n=this.scheme:n===null&&(n=hr),o===void 0?o=this.authority:o===null&&(o=hr),s===void 0?s=this.path:s===null&&(s=hr),p===void 0?p=this.query:p===null&&(p=hr),y===void 0?y=this.fragment:y===null&&(y=hr),n===this.scheme&&o===this.authority&&s===this.path&&p===this.query&&y===this.fragment?this:new ds(n,o,s,p,y)},t.parse=function(r,n){n===void 0&&(n=!1);var o=Dg.exec(r);return o?new ds(o[2]||hr,Sf(o[4]||hr),Sf(o[5]||hr),Sf(o[7]||hr),Sf(o[9]||hr),n):new ds(hr,hr,hr,hr,hr)},t.file=function(r){var n=hr;if(Rl&&(r=r.replace(/\\/g,mi)),r[0]===mi&&r[1]===mi){var o=r.indexOf(mi,2);o===-1?(n=r.substring(2),r=mi):(n=r.substring(2,o),r=r.substring(o)||mi)}return new ds("file",n,r,hr,hr)},t.from=function(r){return new ds(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),id(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var n=new ds(r);return n._formatted=r.external,n._fsPath=r._sep===Wp?r.fsPath:null,n}else return r},t}(),Wp=Rl?1:void 0,ds=function(t){Cg(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Gp(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(n){return n===void 0&&(n=!1),n?id(this,!0):(this._formatted||(this._formatted=id(this,!1)),this._formatted)},r.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=Wp),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n},r}(nd),Hp=(Hr={},Hr[58]="%3A",Hr[47]="%2F",Hr[63]="%3F",Hr[35]="%23",Hr[91]="%5B",Hr[93]="%5D",Hr[64]="%40",Hr[33]="%21",Hr[36]="%24",Hr[38]="%26",Hr[39]="%27",Hr[40]="%28",Hr[41]="%29",Hr[42]="%2A",Hr[43]="%2B",Hr[44]="%2C",Hr[59]="%3B",Hr[61]="%3D",Hr[32]="%20",Hr);function zp(t,r){for(var n=void 0,o=-1,s=0;s<t.length;s++){var p=t.charCodeAt(s);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||r&&p===47)o!==-1&&(n+=encodeURIComponent(t.substring(o,s)),o=-1),n!==void 0&&(n+=t.charAt(s));else{n===void 0&&(n=t.substr(0,s));var y=Hp[p];y!==void 0?(o!==-1&&(n+=encodeURIComponent(t.substring(o,s)),o=-1),n+=y):o===-1&&(o=s)}}return o!==-1&&(n+=encodeURIComponent(t.substring(o))),n!==void 0?n:t}function Ng(t){for(var r=void 0,n=0;n<t.length;n++){var o=t.charCodeAt(n);o===35||o===63?(r===void 0&&(r=t.substr(0,n)),r+=Hp[o]):r!==void 0&&(r+=t[n])}return r!==void 0?r:t}function Gp(t,r){var n;return t.authority&&t.path.length>1&&t.scheme==="file"?n="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,Rl&&(n=n.replace(/\//g,"\\")),n}function id(t,r){var n=r?Ng:zp,o="",s=t.scheme,p=t.authority,y=t.path,E=t.query,w=t.fragment;if(s&&(o+=s,o+=":"),(p||s==="file")&&(o+=mi,o+=mi),p){var A=p.indexOf("@");if(A!==-1){var k=p.substr(0,A);p=p.substr(A+1),A=k.indexOf(":"),A===-1?o+=n(k,!1):(o+=n(k.substr(0,A),!1),o+=":",o+=n(k.substr(A+1),!1)),o+="@"}p=p.toLowerCase(),A=p.indexOf(":"),A===-1?o+=n(p,!1):(o+=n(p.substr(0,A),!1),o+=p.substr(A))}if(y){if(y.length>=3&&y.charCodeAt(0)===47&&y.charCodeAt(2)===58){var G=y.charCodeAt(1);G>=65&&G<=90&&(y="/"+String.fromCharCode(G+32)+":"+y.substr(3))}else if(y.length>=2&&y.charCodeAt(1)===58){var G=y.charCodeAt(0);G>=65&&G<=90&&(y=String.fromCharCode(G+32)+":"+y.substr(2))}o+=n(y,!0)}return E&&(o+="?",o+=n(E,!1)),w&&(o+="#",o+=r?w:zp(w,!1)),o}function $p(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+$p(t.substr(3)):t}}var Kp=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Sf(t){return t.match(Kp)?t.replace(Kp,function(r){return $p(r)}):t}var Bg=function(){function t(r){try{this.patternRegExp=new RegExp(xg(r)+"$")}catch(n){this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(r){this.schemas.push(r)},t.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},t.prototype.getSchemas=function(){return this.schemas},t}(),Ug=function(){function t(r,n,o){this.service=r,this.url=n,this.dependencies={},o&&(this.unresolvedSchema=this.service.promise.resolve(new ps(o)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return r.service.resolveSchemaContent(n,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),ps=function(){function t(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return t}(),Yp=function(){function t(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return t.prototype.getSection=function(r){return kn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,n){if(!n||typeof n=="boolean"||r.length===0)return n;var o=r.shift();if(n.properties&&typeof n.properties[o])return this.getSectionRecursive(r,n.properties[o]);if(n.patternProperties)for(var s=0,p=Object.keys(n.patternProperties);s<p.length;s++){var y=p[s],E=new RegExp(y);if(E.test(o))return this.getSectionRecursive(r,n.patternProperties[y])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(r,n.additionalProperties);if(o.match("[0-9]+")){if(Array.isArray(n.items)){var w=parseInt(o,10);if(!isNaN(w)&&n.items[w])return this.getSectionRecursive(r,n.items[w])}else if(n.items)return this.getSectionRecursive(r,n.items)}}return null},t}(),jg=function(){function t(r,n,o){this.contextService=n,this.requestService=r,this.promiseConstructor=o||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(n){var o=nd.parse(n).scheme;return o!=="schemaservice"&&(!r||r(o))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var n=this,o=!1;r=this.normalizeId(r);for(var s=[r],p=Object.keys(this.schemasById).map(function(A){return n.schemasById[A]});s.length;)for(var y=s.pop(),E=0;E<p.length;E++){var w=p[E];w&&(w.url===y||w.dependencies[y])&&(w.url!==y&&s.push(w.url),w.clearSchema(),p[E]=void 0,o=!0)}return o},t.prototype.normalizeId=function(r){try{return nd.parse(r).toString()}catch(n){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var n=r.schemas;for(var o in n){var s=this.normalizeId(o);this.contributionSchemas[s]=this.addSchemaHandle(s,n[o])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var y in p){var E=p[y];this.contributionAssociations[y]=E;for(var w=this.getOrAddFilePatternAssociation(y),A=0,k=E;A<k.length;A++){var G=k[A],o=this.normalizeId(G);w.addSchema(o)}}}},t.prototype.addSchemaHandle=function(r,n){var o=new Ug(this,r,n);return this.schemasById[r]=o,o},t.prototype.getOrAddSchemaHandle=function(r,n){return this.schemasById[r]||this.addSchemaHandle(r,n)},t.prototype.getOrAddFilePatternAssociation=function(r){var n=this.filePatternAssociationById[r];return n||(n=new Bg(r),this.filePatternAssociationById[r]=n,this.filePatternAssociations.push(n)),n},t.prototype.registerExternalSchema=function(r,n,o){n===void 0&&(n=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,n)for(var p=0,y=n;p<y.length;p++){var E=y[p];this.getOrAddFilePatternAssociation(E).addSchema(s)}return o?this.addSchemaHandle(s,o):this.getOrAddSchemaHandle(s)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var n in this.contributionAssociations)for(var o=this.getOrAddFilePatternAssociation(n),s=0,p=this.contributionAssociations[n];s<p.length;s++){var y=p[s],r=this.normalizeId(y);o.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var n=this.normalizeId(r),o=this.schemasById[n];return o?o.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var n="Unable to load schema from '"+Af(r)+"'. No schema request service available";return this.promise.resolve(new ps({},[n]))}return this.requestService(r).then(function(o){if(!o){var s="Unable to load schema from '"+Af(r)+"': No content.";return new ps({},[s])}var p={},y=[];p=tg(o,y);var E=y.length?["Unable to parse content from '"+Af(r)+"': Parse error at offset "+y[0].offset]:[];return new ps(p,E)},function(o){var s="Unable to load schema from '"+Af(r)+"': "+o.toString();return new ps({},[s])})},t.prototype.resolveSchemaContent=function(r,n,o){var s=this,p=r.errors.slice(0),y=r.schema;if(y.$schema){var E=this.normalizeId(y.$schema);if(E==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Yp({},["Draft-03 schemas are not supported."]));E==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var w=this.contextService,A=function(re,ce){if(!ce)return re;var xe=re;return ce[0]==="/"&&(ce=ce.substr(1)),ce.split("/").some(function(ge){return xe=xe[ge],!xe}),xe},k=function(re,ce,xe,ge){var Ee=A(ce,ge);if(Ee)for(var we in Ee)Ee.hasOwnProperty(we)&&!re.hasOwnProperty(we)&&(re[we]=Ee[we]);else p.push("$ref '"+ge+"' in '"+xe+"' can not be resolved.")},G=function(re,ce,xe,ge,Ee){w&&!/^\w+:\/\/.*/.test(ce)&&(ce=w.resolveRelativePath(ce,ge)),ce=s.normalizeId(ce);var we=s.getOrAddSchemaHandle(ce);return we.getUnresolvedSchema().then(function(Te){if(Ee[ce]=!0,Te.errors.length){var $e=xe?ce+"#"+xe:ce;p.push("Problems loading reference '"+$e+"': "+Te.errors[0]+".")}return k(re,Te.schema,ce,xe),ne(re,Te.schema,ce,we.dependencies)})},ne=function(re,ce,xe,ge){if(!re||typeof re!="object")return Promise.resolve(null);for(var Ee=[re],we=[],Te=[],$e=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var St=et[ze];typeof St=="object"&&Ee.push(St)}},je=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var St=et[ze];if(typeof St=="object")for(var Nt in St){var zt=St[Nt];typeof zt=="object"&&Ee.push(zt)}}},He=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var St=et[ze];if(Array.isArray(St))for(var Nt=0,zt=St;Nt<zt.length;Nt++){var or=zt[Nt];typeof or=="object"&&Ee.push(or)}}},Ne=function(We){for(var Je=[];We.$ref;){var ze=We.$ref,et=ze.split("#",2);if(delete We.$ref,et[0].length>0){Te.push(G(We,et[0],et[1],xe,ge));return}else Je.indexOf(ze)===-1&&(k(We,ce,xe,et[1]),Je.push(ze))}$e(We.items,We.additionalProperties,We.not,We.contains,We.propertyNames,We.if,We.then,We.else),je(We.definitions,We.properties,We.patternProperties,We.dependencies),He(We.anyOf,We.allOf,We.oneOf,We.items)};Ee.length;){var Ve=Ee.pop();we.indexOf(Ve)>=0||(we.push(Ve),Ne(Ve))}return s.promise.all(Te)};return ne(y,y,n,o).then(function(re){return new Yp(y,p)})},t.prototype.getSchemaForResource=function(r,n){if(n&&n.root&&n.root.type==="object"){var o=n.root.properties.filter(function(ce){return ce.keyNode.value==="$schema"&&ce.valueNode&&ce.valueNode.type==="string"});if(o.length>0){var s=Ta(o[0].valueNode);if(s&&mg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var y=Object.create(null),E=[],w=0,A=this.filePatternAssociations;w<A.length;w++){var k=A[w];if(k.matchesPattern(r))for(var G=0,ne=k.getSchemas();G<ne.length;G++){var re=ne[G];y[re]||(E.push(re),y[re]=!0)}}return E.length>0?this.createCombinedSchema(r,E).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var o="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:n.map(function(p){return{$ref:p}})};return this.addSchemaHandle(o,s)},t}();function Af(t){try{}catch(r){}return t}var Vg=function(){function t(r,n){this.jsonSchemaService=r,this.promise=n,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:$t.Error)},t.prototype.doValidation=function(r,n,o,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var y=[],E={},w=function(G){var ne=G.range.start.line+" "+G.range.start.character+" "+G.message;E[ne]||(E[ne]=!0,y.push(G))},A=function(G){var ne=o?Qp(o.trailingCommas):$t.Error,re=o?Qp(o.comments):p.commentSeverity;if(G){if(G.errors.length&&n.root){var ce=n.root,xe=ce.type==="object"?ce.properties[0]:null;if(xe&&xe.keyNode.value==="$schema"){var ge=xe.valueNode||xe,Ee=ur.create(r.positionAt(ge.offset),r.positionAt(ge.offset+ge.length));w(la.create(Ee,G.errors[0],$t.Warning,tr.SchemaResolveError))}else{var Ee=ur.create(r.positionAt(ce.offset),r.positionAt(ce.offset+1));w(la.create(Ee,G.errors[0],$t.Warning,tr.SchemaResolveError))}}else{var we=n.validate(r,G.schema);we&&we.forEach(w)}Jp(G.schema)&&(re=void 0),Xp(G.schema)&&(ne=void 0)}for(var Te=0,$e=n.syntaxErrors;Te<$e.length;Te++){var je=$e[Te];if(je.code===tr.TrailingComma){if(typeof ne!="number")continue;je.severity=ne}w(je)}if(typeof re=="number"){var He="Comments are not permitted in JSON.";n.comments.forEach(function(Ne){w(la.create(Ne,He,re,tr.CommentNotPermitted))})}return y};if(s){var k=s.id||"schemaservice://untitled/"+Wg++;return this.jsonSchemaService.resolveSchemaContent(new ps(s),k,{}).then(function(G){return A(G)})}return this.jsonSchemaService.getSchemaForResource(r.uri,n).then(function(G){return A(G)})},t}(),Wg=0;function Jp(t){if(t&&typeof t=="object"){if(Di(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,n=t.allOf;r<n.length;r++){var o=n[r],s=Jp(o);if(Di(s))return s}}}function Xp(t){if(t&&typeof t=="object"){if(Di(t.allowTrailingCommas))return t.allowTrailingCommas;if(Di(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,n=t.allOf;r<n.length;r++){var o=n[r],s=Xp(o);if(Di(s))return s}}}function Qp(t){switch(t){case"error":return $t.Error;case"warning":return $t.Warning;case"ignore":return}}var Zp=48,Hg=57,zg=65,Ef=97,Gg=102;function zr(t){return t<Zp?0:t<=Hg?t-Zp:(t<Ef&&(t+=Ef-zg),t>=Ef&&t<=Gg?t-Ef+10:0)}function $g(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:zr(t.charCodeAt(1))*17/255,green:zr(t.charCodeAt(2))*17/255,blue:zr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:zr(t.charCodeAt(1))*17/255,green:zr(t.charCodeAt(2))*17/255,blue:zr(t.charCodeAt(3))*17/255,alpha:zr(t.charCodeAt(4))*17/255};case 7:return{red:(zr(t.charCodeAt(1))*16+zr(t.charCodeAt(2)))/255,green:(zr(t.charCodeAt(3))*16+zr(t.charCodeAt(4)))/255,blue:(zr(t.charCodeAt(5))*16+zr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(zr(t.charCodeAt(1))*16+zr(t.charCodeAt(2)))/255,green:(zr(t.charCodeAt(3))*16+zr(t.charCodeAt(4)))/255,blue:(zr(t.charCodeAt(5))*16+zr(t.charCodeAt(6)))/255,alpha:(zr(t.charCodeAt(7))*16+zr(t.charCodeAt(8)))/255}}return null}function Vm(t,r,n,o){return o===void 0&&(o=1),{red:t/255,green:r/255,blue:n/255,alpha:o}}var Kg=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,n,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=n.root;if(!p)return null;var y=o.resultLimit,E=r.uri;if((E==="vscode://defaultsettings/keybindings.json"||td(E.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],A=0,k=p.items;A<k.length;A++){var G=k[A];if(G.type==="object")for(var ne=0,re=G.properties;ne<re.length;ne++){var ce=re[ne];if(ce.keyNode.value==="key"&&ce.valueNode){var xe=Tl.create(r.uri,Pa(r,G));if(w.push({name:Ta(ce.valueNode),kind:Ni.Function,location:xe}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(E),w}}}return w}var ge=function(we,Te,$e){return y>=0&&(Te.type==="array"?Te.items.forEach(function(je){return ge(we,je,$e)}):Te.type==="object"&&Te.properties.forEach(function(je){if(y>=0){var He=je.valueNode;if(He){y--;var Ne=Tl.create(r.uri,Pa(r,je)),Ve=$e?$e+"."+je.keyNode.value:je.keyNode.value;we.push({name:s.getKeyLabel(je),kind:s.getSymbolKind(He.type),location:Ne,containerName:$e}),ge(we,He,Ve)}}})),we},Ee=ge([],p,void 0);return y<0&&(Ee.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(E)),Ee},t.prototype.findDocumentSymbols2=function(r,n,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=n.root;if(!p)return null;var y=o.resultLimit,E=r.uri;if((E==="vscode://defaultsettings/keybindings.json"||td(E.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],A=0,k=p.items;A<k.length;A++){var G=k[A];if(G.type==="object")for(var ne=0,re=G.properties;ne<re.length;ne++){var ce=re[ne];if(ce.keyNode.value==="key"&&ce.valueNode){var xe=Pa(r,G),ge=Pa(r,ce.keyNode);if(w.push({name:Ta(ce.valueNode),kind:Ni.Function,range:xe,selectionRange:ge}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(E),w}}}return w}var Ee=function(Te,$e){return y>=0&&($e.type==="array"?$e.items.forEach(function(je,He){if(je&&y>=0){y--;var Ne=Pa(r,je),Ve=Ne,We=String(He),Je=Ee([],je);Te.push({name:We,kind:s.getSymbolKind(je.type),range:Ne,selectionRange:Ve,children:Je})}}):$e.type==="object"&&$e.properties.forEach(function(je){var He=je.valueNode;if(He&&y>=0){y--;var Ne=Pa(r,je),Ve=Pa(r,je.keyNode),We=Ee([],He);Te.push({name:s.getKeyLabel(je),kind:s.getSymbolKind(He.type),range:Ne,selectionRange:Ve,children:We})}})),Te},we=Ee([],p);return y<0&&(we.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(E)),we},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Ni.Module;case"string":return Ni.String;case"number":return Ni.Number;case"array":return Ni.Array;case"boolean":return Ni.Boolean;default:return Ni.Variable}},t.prototype.getKeyLabel=function(r){var n=r.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},t.prototype.findDocumentColors=function(r,n,o){return this.schemaService.getSchemaForResource(r.uri,n).then(function(s){var p=[];if(s)for(var y=o&&typeof o.resultLimit=="number"?o.resultLimit:Number.MAX_VALUE,E=n.getMatchingSchemas(s.schema),w={},A=0,k=E;A<k.length;A++){var G=k[A];if(!G.inverted&&G.schema&&(G.schema.format==="color"||G.schema.format==="color-hex")&&G.node&&G.node.type==="string"){var ne=String(G.node.offset);if(!w[ne]){var re=$g(Ta(G.node));if(re){var ce=Pa(r,G.node);p.push({color:re,range:ce})}if(w[ne]=!0,y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,n,o,s){var p=[],y=Math.round(o.red*255),E=Math.round(o.green*255),w=Math.round(o.blue*255);function A(G){var ne=G.toString(16);return ne.length!==2?"0"+ne:ne}var k;return o.alpha===1?k="#"+A(y)+A(E)+A(w):k="#"+A(y)+A(E)+A(w)+A(Math.round(o.alpha*255)),p.push({label:k,textEdit:yi.replace(s,JSON.stringify(k))}),p},t}();function Pa(t,r){return ur.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var Yg={schemaAssociations:{},schemas:{}};function Jg(t,r){var n=[],o=[],s=[],p=-1,y=fs(t.getText(),!1),E=y.scan();function w(Je){n.push(Je),o.push(s.length)}for(;E!==17;){switch(E){case 1:case 3:{var A=t.positionAt(y.getTokenOffset()).line,k={startLine:A,endLine:A,kind:E===1?"object":"array"};s.push(k);break}case 2:case 4:{var G=E===2?"object":"array";if(s.length>0&&s[s.length-1].kind===G){var k=s.pop(),ne=t.positionAt(y.getTokenOffset()).line;k&&ne>k.startLine+1&&p!==k.startLine&&(k.endLine=ne-1,w(k),p=k.startLine)}break}case 13:{var A=t.positionAt(y.getTokenOffset()).line,re=t.positionAt(y.getTokenOffset()+y.getTokenLength()).line;y.getTokenError()===1&&A+1<t.lineCount?y.setPosition(t.offsetAt(gi.create(A+1,0))):A<re&&(w({startLine:A,endLine:re,kind:Pl.Comment}),p=A);break}case 12:{var ce=t.getText().substr(y.getTokenOffset(),y.getTokenLength()),xe=ce.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(xe){var ne=t.positionAt(y.getTokenOffset()).line;if(xe[1]){var k={startLine:ne,endLine:ne,kind:Pl.Region};s.push(k)}else{for(var ge=s.length-1;ge>=0&&s[ge].kind!==Pl.Region;)ge--;if(ge>=0){var k=s[ge];s.length=ge,ne>k.startLine&&p!==k.startLine&&(k.endLine=ne,w(k),p=k.startLine)}}}break}}E=y.scan()}var Ee=r&&r.rangeLimit;if(typeof Ee!="number"||n.length<=Ee)return n;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var we=[],Te=0,$e=o;Te<$e.length;Te++){var je=$e[Te];je<30&&(we[je]=(we[je]||0)+1)}for(var He=0,Ne=0,ge=0;ge<we.length;ge++){var Ve=we[ge];if(Ve){if(Ve+He>Ee){Ne=ge;break}He+=Ve}}for(var We=[],ge=0;ge<n.length;ge++){var je=o[ge];typeof je=="number"&&(je<Ne||je===Ne&&He++<Ee)&&We.push(n[ge])}return We}function Xg(t,r,n){function o(E){for(var w=t.offsetAt(E),A=n.getNodeFromOffset(w,!0),k=[];A;){switch(A.type){case"string":case"object":case"array":var G=A.offset+1,ne=A.offset+A.length-1;G<ne&&w>=G&&w<=ne&&k.push(s(G,ne)),k.push(s(A.offset,A.offset+A.length));break;case"number":case"boolean":case"null":case"property":k.push(s(A.offset,A.offset+A.length));break}if(A.type==="property"||A.parent&&A.parent.type==="array"){var re=y(A.offset+A.length,5);re!==-1&&k.push(s(A.offset,re))}A=A.parent}for(var ce=void 0,xe=k.length-1;xe>=0;xe--)ce=bf.create(k[xe],ce);return ce||(ce=bf.create(ur.create(E,E))),ce}function s(E,w){return ur.create(t.positionAt(E),t.positionAt(w))}var p=fs(t.getText(),!0);function y(E,w){p.setPosition(E);var A=p.scan();return A===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(o)}function Qg(t){var r=t.promiseConstructor||Promise,n=new jg(t.schemaRequestService,t.workspaceContext,r);n.setSchemaContributions(Yg);var o=new Sg(n,t.contributions,r,t.clientCapabilities),s=new Ag(n,t.contributions,r),p=new Kg(n),y=new Vg(n,r);return{configure:function(E){n.clearExternalSchemas(),E.schemas&&E.schemas.forEach(function(w){n.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),y.configure(E)},resetSchema:function(E){return n.onResourceChange(E)},doValidation:y.doValidation.bind(y),parseJSONDocument:function(E){return yg(E,{collectComments:!0})},newJSONDocument:function(E,w){return gg(E,w)},doComplete:o.doComplete.bind(o),findDocumentSymbols:p.findDocumentSymbols.bind(p),findDocumentSymbols2:p.findDocumentSymbols2.bind(p),findColorSymbols:function(E,w){return p.findDocumentColors(E,w).then(function(A){return A.map(function(k){return k.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:Jg,getSelectionRanges:Xg,format:function(E,w,A){var k=void 0;if(w){var G=E.offsetAt(w.start),ne=E.offsetAt(w.end)-G;k={offset:G,length:ne}}var re={tabSize:A?A.tabSize:4,insertSpaces:A?A.insertSpaces:!0,eol:`
322
+ `};return ag(E.getText(),k,re).map(function(ce){return yi.replace(ur.create(E.positionAt(ce.offset),E.positionAt(ce.offset+ce.length)),ce.content)})}}}var Wm=a(96876),Hm=a(4328),zm=a(3256),Gm=a(71707),$m=a(82801),Km=a(32095),Ym=a(86081),Jm=a(44254),Xm=a(75019),Qm=a(13837),_p=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});const hs=Qg({});ls.registerHelper("lint","json",function(t,r){return _p(this,null,function*(){const{schema:n,setError:o}=r;hs.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const s=wf.create(r.id+".json","json",0,t),p=hs.parseJSONDocument(s),y=yield hs.doValidation(s,p);return y.length?o&&o(y[0].message):o&&o(void 0),y.map(E=>({from:ls.Pos(E.range.start.line,E.range.start.character),to:ls.Pos(E.range.end.line,E.range.end.character),message:E.message}))})}),ls.registerHelper("hint","json",(t,r)=>_p(void 0,null,function*(){const n=r.schema;if(!n)return;hs.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const o=t.getDoc().getCursor(),s=t.getTokenAt(o),p=wf.create(r.id+".json","json",0,t.getValue()),y=hs.parseJSONDocument(p),E=yield hs.doComplete(p,{line:o.line,character:o.ch},y),w=k=>{let G="";for(;k--;)G+=" ";return G};let A=E?E.items.map(k=>({text:k.insertText,displayText:k.label,filter:k.filterText||k.label,from:{line:k.textEdit.range.start.line,ch:k.textEdit.range.start.character},to:{line:k.textEdit.range.end.line,ch:k.textEdit.range.end.character},hint:(G,ne,re)=>{const ce="_$__REDOC_CURSOR_HERE";let xe=re.text.replace(/(\$1|\${1:[^}]+})/,ce)||"";if(xe=xe.replace(/(\$\d+|\${[^}]+})/g,"")||"",G.setSelection(re.from,re.to),xe.indexOf(`
323
+ `)>-1){const Ee=G.getLine(G.getCursor().line).search(/(\S|$)/);xe=xe.replace(/\n/g,`
324
+ `+w(Ee))}G.replaceSelection(xe);const ge=G.getSearchCursor(ce,re.from);ge.findNext()&&(G.setCursor(ge.from()),ge.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(A=A.filter(k=>k.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:ls.Pos(o.line,s.start),to:ls.Pos(o.line,o.ch),list:A}}));var Zg=Object.defineProperty,_g=(t,r,n)=>r in t?Zg(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,Cf=(t,r,n)=>(_g(t,typeof r!="symbol"?r+"":r,n),n);const qg=Tt.createGlobalStyle`
325
+ .cm-s-material.CodeMirror {
326
+ background-color: var(--samples-panel-controls-background-color)!important;
327
+ color: var(--color-content-inverse)!important;
328
+ font-family: var(--code-font-family);
329
+ line-height: 18px;
330
+ padding: 10px;
331
+ }
332
+
333
+ .CodeMirror-lint-mark-error {
334
+ background-size: 4px;
335
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAVUlEQVR42mNgQAL/GRjigPg/EP8FYntkCX4gtoVKgvE/BoabcEVAhj6S5DUgfgFl/wFJ2gPxL6iuT1DF+kD2R5AYA5KRj6CS/FAMYvszIBltz4AFAAD9fz0YtLg13wAAAABJRU5ErkJggg==') !important;
336
+ }
337
+
338
+ .cm-s-material.CodeMirror-focused div.CodeMirror-selected {
339
+ background: rgba(255, 255, 255, 0.3) !important;
340
+ }
341
+
342
+ .cm-s-material .CodeMirror-code .cm-string.cm-property {
343
+ color: #9EFAA7;
344
+ }
345
+
346
+ .cm-s-material .CodeMirror-code .cm-string {
347
+ color: #FEE39E;
348
+ }
349
+
350
+ .cm-s-material .CodeMirror-code .cm-atom {
351
+ color: var(--color-content-inverse);
352
+ }
353
+
354
+ div .cm-s-material .CodeMirror-matchingbracket {
355
+ outline: 1px solid grey;
356
+ text-decoration: none;
357
+ }
358
+
359
+ .react-codemirror2 {
360
+ display: flex;
361
+ flex-direction: column;
362
+ justify-content: flex-start;
363
+ overflow: hidden;
364
+
365
+ flex: 1;
366
+ }
367
+
368
+ .CodeMirror {
369
+ flex: 1;
370
+ border-radius: var(--panels-border-radius);
371
+ }
372
+ `;class ey extends d.Component{constructor(){super(...arguments);Cf(this,"editor"),Cf(this,"_onKeyUp",(r,n)=>{/^[a-zA-Z0-9_":]$/.test(n.key)&&this.editor.execCommand("autocomplete")}),Cf(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),Cf(this,"refreshEditor",()=>{this.editor.refresh()})}componentDidMount(){setTimeout(()=>{this.editor.refresh()},0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:r}=this.props.fieldState,{setValue:n,setTouched:o,setError:s}=this.props.fieldApi,{onChange:p,onBlur:y,forwardedRef:E}=this.props;return d.createElement(d.Fragment,null,d.createElement(qg,null),d.createElement(Gv.fk,{editorDidMount:this.initEditor,value:r||"",ref:E||void 0,onBeforeChange:(w,A,k)=>{n(k),p&&p(k)},onBlur:w=>{o(),y&&y(w)},options:{mode:this.props.mode||Al.T.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":()=>this.editor.showHint({completeSingle:!0}),"Ctrl-Space":()=>this.editor.showHint({completeSingle:!0})},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const ty=$r(ey);var ry=Object.defineProperty,ny=Object.defineProperties,iy=Object.getOwnPropertyDescriptors,qp=Object.getOwnPropertySymbols,ay=Object.prototype.hasOwnProperty,oy=Object.prototype.propertyIsEnumerable,eh=(t,r,n)=>r in t?ry(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,sy=(t,r)=>{for(var n in r||(r={}))ay.call(r,n)&&eh(t,n,r[n]);if(qp)for(var n of qp(r))oy.call(r,n)&&eh(t,n,r[n]);return t},ly=(t,r)=>ny(t,iy(r)),uy=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});const fy=(0,Fa.Pi)(t=>{var r;const n=t.body.content,o=t.console.formApi,s=ne=>{var re;if(!n||!n.hasSample)return"";const ce=(re=n.active)==null?void 0:re.examples;if(!(ce==null?void 0:ce[ne]))return"";const xe=ce==null?void 0:ce[ne].value,ge=t.properties?zd()(xe,t.properties,{arrayMerge:Fn.lN}):xe;return JSON.stringify(ge,null,2)},p=(r=n==null?void 0:n.operation)==null?void 0:r.activeExampleName,y=ne=>{var re;(re=n==null?void 0:n.operation)==null||re.activateExampleName(ne),o.setValue("body",s(ne))},E=ne=>{if(!ne)return"";if(ne.mime===Al.T.URL_ENCODED)return ne.value;const re=ne.value,ce=t.properties?zd()(re,t.properties,{arrayMerge:Fn.lN}):re;return JSON.stringify(ce,null,2)},w=(ne,re)=>uy(void 0,null,function*(){const{setValue:ce}=o;ce(`body.${ne}`,re)});(0,d.useEffect)(()=>{p!==!1?p&&o.setValue("body",s(p)):o.setValue("body",JSON.stringify(t.properties||{},null,2))},[p]);const{validate:A,body:k}=t,G=ne=>d.createElement(Wt.DropdownOrLabel,ly(sy({},ne),{variant:"dark",fullWidth:!0,Label:zv,Dropdown:Kn.VD}));return d.createElement(d.Fragment,null,d.createElement(Wt.MediaTypesSwitch,{content:k.content,renderDropdown:G},ne=>{var re;const ce=ne.examples||{},xe=Object.keys(ce),ge=ne.schema,Ee=dt(ge||{},ne.name)||ne.name===Al.T.MULTIPART||ne.name===Al.T.URL_ENCODED,{exampleKey:we}=(0,Hc.C6)(ne.operation,ce),Te=ce[we];return d.createElement(d.Fragment,null,xe.length&&xe.length!==1&&d.createElement(Hc.b_,{examples:ce,onChange:y,exampleKey:we,panel:"try-it"})||null,Ee?d.createElement(Wv,{mediaType:ne,formApi:o,onChange:w.bind(void 0)}):d.createElement(ty,{id:"body"+t.id,field:"body",initialValue:E(Te),schema:(((re=t==null?void 0:t.resolvedBody)==null?void 0:re.content[ne.name])||{}).schema,mode:ne.name,validate:A}))}))}),cy=d.memo(fy);function dy({response:t}){return d.createElement(d.Fragment,null,d.createElement(Kn.EE,null," Body: "),py(t))}function py(t){return t.body?d.createElement(vi.JsonViewer,{data:t.body,jsonSampleExpandLevel:1}):t.fileInfo?d.createElement(Wt.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?d.createElement(vi.SourceCode,{lang:(0,Wt.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data,withCopyButton:!0}):d.createElement(Kn.w3,null,d.createElement("i",null,"(no content)")):null}function hy({headers:t}){const r=d.useContext(Wt.OptionsContext),[n,o]=d.useState(!0),{maxResponseHeadersToShowInTryIt:s}=r,p=Object.keys(t),y=!!s&&p.length>s,E=y&&n?[...p].splice(0,s):[...p],w=()=>{o(!n)};return d.createElement(d.Fragment,null,d.createElement(Kn.EE,null," Headers: "),d.createElement(Kn.w3,null,E.map(A=>d.createElement("div",{key:A},d.createElement(th,null,A,":"),d.createElement("code",null,t[A]))),y&&d.createElement(rh,{onClick:w},n?"Show more...":"Hide headers")))}const th=Tt.default.strong`
373
+ text-transform: capitalize;
374
+ display: inline-block;
375
+ padding-right: 5px;
376
+ `,rh=Tt.default.div`
377
+ cursor: pointer;
378
+ margin-top: 5px;
379
+ font-size: 14px;
380
+ `;th.displayName="HeaderName",rh.displayName="StyledShowMoreLabel";const vy=Tt.default.div`
381
+ margin-bottom: 10px;
382
+ `,ad=Tt.default.div`
383
+ display: inline-block;
384
+ margin-right: 20px;
385
+ padding: 2px 0;
386
+ text-align: center;
387
+ color: var(--color-content-inverse);
388
+ `,gy=(0,Tt.default)(ad)`
389
+ color: ${({code:t})=>t>=200&&t<300?"var(--response-success-text-color)":t>=300&&t<400?"var(--response-redirect-text-color)":t>400?"var(--response-error-text-color)":"var(--response-info-text-color)"};
390
+ `,nh=Tt.default.header`
391
+ font-weight: bold;
392
+ margin-bottom: 10px;
393
+ `,yy=Tt.default.code`
394
+ border-left: 3px solid #ff4040;
395
+ padding-left: 5px;
396
+ `;class my extends d.PureComponent{render(){const{error:r,response:n,time:o}=this.props,s=n||r&&r.response,p=s&&s.data&&s.data.length||0;let y;return p>1e6?y=(p/1e6).toFixed(2)+" MB":p>1e3?y=(p/1e3).toFixed(2)+" KB":y=p+" B",r&&!r.response||!s?d.createElement(d.Fragment,null,d.createElement(nh,null," Could not get any response "),d.createElement(yy,null,r&&r.message||"Unknown error"),d.createElement("br",null),d.createElement(nh,null," Why this might have happened:"),d.createElement("div",null," - CORS is misconfigured on the server"),d.createElement("div",null," - The server couldn't sent a response"),d.createElement("div",null," - No internet access"),d.createElement("div",null," - Documentation issue - contact API owner"),d.createElement("div",null," - Misconfigured security definition")):s?d.createElement(d.Fragment,null,d.createElement(vy,null,d.createElement(gy,{code:s.status},d.createElement("span",null," Status: "),s.status," ",s.statusText),d.createElement(ad,null,d.createElement("span",null," Time: "),o,"ms"),d.createElement(ad,null,d.createElement("span",null," Size: "),y)),d.createElement("div",null,d.createElement(hy,{headers:s.headers}),d.createElement(dy,{response:s}))):d.createElement(d.Fragment,null,"Something went wrong")}}var ih=a(55346);function xy(t,r,n){const o=r.path||{},s=r.query||{},p=Object.keys(s);let y=(0,gr.v5)(t,o);const E=w=>n.find(A=>A.name===w&&A.in==="query");return p.length&&(y+="?"+p.map(w=>{if(!s[w])return"";const A=E(w);return A?(0,Wt.serializeParameterValue)(A,s[w]):`${w}=${encodeURIComponent(s[w])}`}).filter(Boolean).join("&")),y}const by=({loading:t,operation:r,hasResponse:n,execute:o,params:s={}})=>d.createElement(Sy,null,d.createElement(ih._,null,d.createElement(Qd.FH,{type:r.httpVerb},r.httpVerb),d.createElement(ih.y,{wrap:"true"},xy(r.path,s,r.parameters))),d.createElement(wy,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&o()},t?"Sending...":n?"Resend":"Send")),wy=(0,Tt.default)(vi.Button)`
397
+ width: var(--try-it-panel-action-button-width);
398
+ `,Sy=(0,Tt.default)(Cn.k1)`
399
+ flex-direction: row;
400
+ align-items: flex-start;
401
+ flex-wrap: wrap;
402
+ `,Ay=d.memo(by);function Ey(t){const{name:r,value:n,description:o,variableEnum:s,onChange:p,defaultValue:y}=t,E=k=>p(k.target.value),w=k=>p(k.value),A=s?s.map((k,G)=>({value:k,idx:G})):[];return d.createElement(at.NI,null,d.createElement(at.lX,null,r,":"),A&&A.length?d.createElement(Kn.VD,{fullWidth:!0,variant:"dark",value:n,options:A,onChange:w}):d.createElement($n,{fullWidth:!0,value:n,onChange:E,placeholder:y,panel:"try-it"}),o&&d.createElement(Cy,null,o))}const Cy=Tt.default.small`
403
+ display: inline-block;
404
+ margin-top: 5px;
405
+ color: #d0d0d0;
406
+ `;var ah=Object.defineProperty,Oy=Object.defineProperties,Ty=Object.getOwnPropertyDescriptor,Py=Object.getOwnPropertyDescriptors,oh=Object.getOwnPropertySymbols,Iy=Object.prototype.hasOwnProperty,Fy=Object.prototype.propertyIsEnumerable,od=(t,r,n)=>r in t?ah(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,sh=(t,r)=>{for(var n in r||(r={}))Iy.call(r,n)&&od(t,n,r[n]);if(oh)for(var n of oh(r))Fy.call(r,n)&&od(t,n,r[n]);return t},lh=(t,r)=>Oy(t,Py(r)),ky=(t,r,n,o)=>{for(var s=o>1?void 0:o?Ty(r,n):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(o?y(r,n,s):y(s))||s);return o&&s&&ah(r,n,s),s},sd=(t,r,n)=>(od(t,typeof r!="symbol"?r+"":r,n),n);let ld=class extends d.Component{constructor(){super(...arguments);sd(this,"state",{activeIdx:0,variables:{}}),sd(this,"handleServerChange",t=>{const r=this.props.operation.servers.find(o=>o.url===t.serverUrl),n=(0,gr.mj)(r);this.props.onChange({url:t.serverUrl||"",variables:n}),(0,Gt.WW)("serverUrl",t.serverUrl||""),this.setState({variables:n})}),sd(this,"handleVariableChange",(t,r)=>{const n=this.props.operation.servers[this.state.activeIdx],o=r||r===""?r:(0,gr.mj)(n)[t],s=lh(sh({},this.state.variables),{[t]:o});this.setState({variables:s}),(0,gr.UY)(t,o),this.props.onChange(lh(sh({},n),{variables:s}))})}static getDerivedStateFromProps(t){const r=t.operation,n=(0,Gt.YQ)("serverUrl"),o=r.servers.findIndex(s=>s.url===n);return{activeIdx:o<0?0:o}}componentDidMount(){const t=(0,gr.fz)(this.props.operation.servers,this.state.activeIdx);this.props.onChange(t),this.setState({variables:t.variables})}render(){const{activeIdx:t}=this.state,n=this.props.operation.servers.map((s,p)=>({idx:p,serverUrl:s.url,value:`
407
+ ${(0,gr.nq)((0,gr.v5)(s.url,this.state.variables),s.variables)}
408
+ - ${s.description||"Default"}
409
+ `})),o=Object.keys(this.state.variables);return d.createElement(My,null,d.createElement(at.lX,{htmlFor:"server"},"Target server: "),d.createElement(at.NI,null,d.createElement(Kn.VD,{variant:"dark",value:n[t].value,options:n,fullWidth:!0,onChange:this.handleServerChange})),o.length?o.map(s=>{var p;const y=(p=this.props.operation.servers[this.state.activeIdx].variables)==null?void 0:p[s];if(y)return d.createElement(Ey,{key:s,name:s,value:this.state.variables[s],defaultValue:y.default,onChange:E=>this.handleVariableChange(s,E),variableEnum:y.enum,description:y.description})}):null)}};ld=ky([Fa.Pi],ld);const My=Tt.default.div`
410
+ margin-top: 20px;
411
+ `;var Ry=a(72940),Ly=Object.defineProperty,Dy=Object.defineProperties,Ny=Object.getOwnPropertyDescriptors,Of=Object.getOwnPropertySymbols,uh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,ch=(t,r,n)=>r in t?Ly(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,By=(t,r)=>{for(var n in r||(r={}))uh.call(r,n)&&ch(t,n,r[n]);if(Of)for(var n of Of(r))fh.call(r,n)&&ch(t,n,r[n]);return t},Uy=(t,r)=>Dy(t,Ny(r)),jy=(t,r)=>{var n={};for(var o in t)uh.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&Of)for(var o of Of(t))r.indexOf(o)<0&&fh.call(t,o)&&(n[o]=t[o]);return n};function ud(t){var r=t,{header:n,error:o,success:s}=r,p=jy(r,["header","error","success"]);const y=({toggle:E,expanded:w})=>d.createElement(Cn.h4,{onClick:E,isExpanded:w,"data-cy":p["data-cy"]},d.createElement(Cn.xz,null,d.createElement(Cn.Dx,null,n),d.createElement(Wt.ShelfIcon,{direction:w?"down":"right"})),o&&d.createElement(Wt.CrossIcon,{size:"14px",color:"--color-error-500"})||null,s&&d.createElement(Wt.LockIcon,{size:"14px",color:"--color-success-500"})||null);return d.createElement(Vy,Uy(By({},p),{header:y}))}const Vy=(0,Tt.default)(Cn.s_)`
412
+ ${Cn.h4} {
413
+ color: white;
414
+ border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
415
+ padding: 10px;
416
+ }
417
+
418
+ ${Wt.ShelfIcon} path {
419
+ fill: white;
420
+ }
421
+
422
+ ${Ry.N} {
423
+ padding: 15px 10px;
424
+ background-color: #3e4c59;
425
+ border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
426
+ border-top: 0;
427
+ }
428
+ `,Wy=Tt.default.div`
429
+ display: flex;
430
+ font-size: 12px;
431
+ button {
432
+ margin: 0;
433
+ }
434
+ `,dh=Tt.default.button`
435
+ outline: none;
436
+ border: none;
437
+ background-color: var(--try-it-panel-tab-background-color);
438
+ text-align: center;
439
+ cursor: pointer;
440
+ color: var(--color-content-inverse);
441
+ min-width: 80px;
442
+ min-height: 30px;
443
+ border-radius: var(--global-border-radius);
444
+ font-size: 12px;
445
+ padding: 0 10px;
446
+ border-top: 4px solid transparent;
447
+ border-bottom: 4px solid transparent;
448
+
449
+ &:first-child {
450
+ border-radius: var(--global-border-radius) 0 0 var(--global-border-radius);
451
+ }
452
+
453
+ &:last-child {
454
+ border-radius: 0 var(--global-border-radius) var(--global-border-radius) 0;
455
+ }
456
+
457
+ ${({active:t})=>t&&Tt.css`
458
+ border-bottom: 4px solid var(--try-it-panel-active-tab-border-color);
459
+ background-color: var(--try-it-panel-active-tab-background-color);
460
+ `||""}
461
+
462
+ ${({disabled:t})=>t&&Tt.css`
463
+ cursor: default;
464
+ color: var(--try-it-panel-disabled-tab-color);
465
+ `||""}
466
+ `;function Hy({onChange:t,active:r,hasResponse:n}){return d.createElement(Wy,null,d.createElement(dh,{onClick:()=>t(0),active:r===0},n?"Edit Request":"Request"),d.createElement(dh,{onClick:()=>n&&t(1),active:r===1,disabled:!n}," ","Response"," "))}var ph=Object.defineProperty,zy=Object.defineProperties,Gy=Object.getOwnPropertyDescriptor,$y=Object.getOwnPropertyDescriptors,Tf=Object.getOwnPropertySymbols,hh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,fd=(t,r,n)=>r in t?ph(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,Xr=(t,r)=>{for(var n in r||(r={}))hh.call(r,n)&&fd(t,n,r[n]);if(Tf)for(var n of Tf(r))vh.call(r,n)&&fd(t,n,r[n]);return t},Rn=(t,r)=>zy(t,$y(r)),gh=(t,r)=>{var n={};for(var o in t)hh.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&Tf)for(var o of Tf(t))r.indexOf(o)<0&&vh.call(t,o)&&(n[o]=t[o]);return n},Ky=(t,r,n,o)=>{for(var s=o>1?void 0:o?Gy(r,n):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(o?y(r,n,s):y(s))||s);return o&&s&&ph(r,n,s),s},vs=(t,r,n)=>(fd(t,typeof r!="symbol"?r+"":r,n),n),yh=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});function mh(t){return t.startsWith("//")?"https:"+t:t}const Yy={flex:1,display:"flex",flexDirection:"column"};let cd=class extends d.Component{constructor(t){super(t);vs(this,"formApi"),vs(this,"setFormApi",(r,n=r.getState())=>{var o=n,{values:s}=o,p=gh(o,["values"]);this.formApi=r,setTimeout(()=>{const y=Rn(Xr({},p),{values:Rn(Xr({},s),{query:(0,gr.FU)(s.query||{})})});this.setState({form:y})},0)}),vs(this,"handleChange",r=>{var n=r,{values:o}=n,s=gh(n,["values"]);const p=Rn(Xr({},s),{values:Rn(Xr({},o),{query:(0,gr.FU)(o.query||{})})});this.setState({form:p}),(0,gr.Hc)(p),this.props.operation.setRequestValues(o)}),vs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),vs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),vs(this,"handleExecute",()=>yh(this,null,function*(){var r,n,o,s,p,y,E;const{store:w,operation:A,onResponse:k}=this.props,{values:G,invalid:ne}=this.state.form;if(this.formApi.submitForm(),ne){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(n=(r=w==null?void 0:w.options.events)==null?void 0:r.tryItSent)==null||n.call(r,{eventType:bl.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:A.operationId,operationPath:A.path,operationHttpVerb:A.httpVerb,operationSummary:A.description});return}const re=this.props.operation.requestBody,ce=re&&re.content&&re.content.active&&re.content.active.name||"";let xe=G.body;if(/json/.test(ce))try{xe=JSON.parse(xe)}catch(ze){console.error(ze)}this.setState({loading:!0});const ge=this.state.resolvedRawSpec,Ee=(A.httpVerb||"").toLowerCase(),we=(0,Gt.U2)(ge,["paths",A.path,Ee,"servers"])||(0,Gt.U2)(ge,["paths",A.path,"servers"])||(0,Gt.U2)(ge,["servers"]);if(!we)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const Te=we.find(ze=>this.state.server.url.endsWith(ze.url.endsWith("/")?ze.url.substring(0,ze.url.length-1):ze.url)),$e=Date.now(),je=!!window.document.documentMode;let He,Ne=G.auth;if(G.auth){const ze=Object.keys(G.auth)[0],et=(0,Gt.dw)(ze);He=Rn(Xr({},ge),{components:Rn(Xr({},ge.components),{securitySchemes:Rn(Xr({},ge.components.securitySchemes),{[et]:Rn(Xr({},ge.components.securitySchemes[et]),{type:ge.components.securitySchemes[et].type==="openIdConnect"?"oauth2":ge.components.securitySchemes[et].type})})})}),Ne=Rn(Xr({},Ne),{[et]:Ne[ze]})}else He=Xr({},ge);const Ve=w.options.corsProxyUrl;Ve&&we.length&&(He.servers=we.map(ze=>Rn(Xr({},ze),{url:Ve+mh(ze.url)})),He.paths=Rn(Xr({},He.paths),{[A.path]:Rn(Xr({},He.paths[A.path]),{[Ee]:Rn(Xr({},He.paths[A.path][Ee]),{servers:void 0}),servers:void 0})}));const We=((s=(o=re==null?void 0:re.content)==null?void 0:o.active)==null?void 0:s.name)||null;if(We&&xe&&ct(We)){const ze=Object.values(xe);xe=ze.length>1?ze:ze[0]}const Je={userFetch:je&&a(54098).fetch,server:Ve?Ve+mh(Te.url):Te.url,serverVariables:this.state.server.variables,spec:He,pathName:A.path,method:A.httpVerb,parameters:Xr(Xr(Xr(Xr({},G.path),G.query),G.header),G.cookie),securities:{authorized:Ne},requestBody:xe,requestContentType:We,responseContentType:((p=G.header)==null?void 0:p.Accept)||null,requestInterceptor:(0,gr.Tz)(w.options,A,Ne==null?void 0:Ne.Authorization)};try{const ze=yield Lc.execute(Je),et=ze==null?void 0:ze.data;et instanceof Blob&&(ct(et.type)&&(ze.fileInfo={rawData:et,fileName:(0,gr.AM)(ze.headers)}),ze.data=yield et.text()),k==null||k({request:Je,response:ze}),this.setState({response:ze,error:void 0})}catch(ze){ze&&ze.response&&ze.response.data instanceof Blob&&(ze.response.data=yield ze.response.data.text(),k==null||k({request:Je,response:ze.response})),this.setState({response:void 0,error:ze})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-$e}),(E=(y=w==null?void 0:w.options.events)==null?void 0:y.tryItSent)==null||E.call(y,{eventType:bl.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:A.operationId,operationPath:A.path,operationHttpVerb:A.httpVerb,operationSummary:A.description})}})),this.state={form:{values:{path:(0,gr.ZS)(t.operation.parameters,"path"),cookie:(0,gr.ZS)(t.operation.parameters,"cookie"),header:(0,gr.ZS)(t.operation.parameters,"header"),query:(0,gr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return yh(this,null,function*(){const{store:t,operation:r}=this.props,n=yield t.dereferenceSpecForTryIt(r);this.setState({resolvedRawSpec:n}),this.formApi.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:n}=this.props,{shaking:o,activeTab:s,form:p,response:y,loading:E,error:w}=this.state,A=!!(y||w);return d.createElement(Xy,{shaking:o,className:r,rootElement:n},d.createElement(Cn.k1,null,d.createElement(Hy,{active:s,hasResponse:A,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Kn.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Kn.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Kn.RE,{hidden:s!==1},this.renderResponse()),d.createElement(Ay,{hasResponse:A,params:p.values,operation:t,loading:E,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:n,properties:o,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:y,server:E}=this.state,w=p.errors||{},A=w.path||w.cookie||w.header||w.query,k=y&&Wt.JsonPointer.get(y,r.pointer);let G=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!G||!p.values.auth[G])&&(G=void 0),G&&(p.values.auth[G].token!==void 0||p.values.auth[G].client_id!==void 0||p.values.auth[G].client_secret!==void 0)&&(!p.values.auth[G].token||!p.values.auth[G].token.access_token)&&(G=void 0),G&&p.values.auth[G].username!=null&&(!p.values.auth[G].username||!p.values.auth[G].password)&&(G=void 0);const ne=r.parameters||[],re=(t=n==null?void 0:n.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!y&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(d.Fragment,null,d.createElement(zl,{onChange:this.handleChange,getApi:this.setFormApi,style:Rn(Xr({},Yy),{margin:0})},d.createElement(Cn.UQ,{initialActiveIdx:r.security.length&&G?1:0},r.security.length&&d.createElement(ud,{header:(0,uo.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!G&&!!w.auth,success:!!G},re?d.createElement(Qy,{field:"auth",validate:gr.np},ce=>d.createElement(of.Q,{Hook:re,props:{server:E,operation:r,onChange:ce,OAuth2:m}})):d.createElement(Dv,{formApi:this.formApi,form:p,operation:r,activeServer:E.url,authCorsProxyUrl:n.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(ud,{header:(0,uo.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(cy,{validate:Jy,console:this,body:r.requestBody,id:r.id,resolvedBody:k.requestBody,properties:o}))||null,ne.length&&d.createElement(ud,{header:(0,uo.l)("tryItParameters"),"data-cy":"parameters-trigger",error:A,renderChildrenHidden:!0},d.createElement(Uh,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(ld,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:n}=this.state;return d.createElement(my,{response:t,error:r,time:n})}};cd=Ky([Fa.Pi],cd);function Jy(){}function Xy(t){const{shaking:r,className:n,children:o,rootElement:s}=t,[p]=(0,Gt.Bs)(s),y=d.useContext(Wt.StoreContext);return d.createElement(Kn.q2,{scrollYOffset:y==null?void 0:y.options.scrollYOffset,shaking:r,className:n,"data-cy":"console",fullWidth:p==null?void 0:p.width},o)}function Qy(t){const{fieldApi:r,render:n,userProps:o}=On(Xr({},t)),{setValue:s}=r,{children:p}=o;return n(d.createElement(d.Fragment,null,p(s)))}},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";h.exports=function(d){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var S=a.call(arguments,1),g,L=function(){if(this instanceof g){var W=b.apply(this,S.concat(a.call(arguments)));return Object(W)===W?W:this}else return b.apply(d,S.concat(a.call(arguments)))},D=Math.max(0,b.length-S.length),B=[],j=0;j<D;j++)B.push("$"+j);if(g=Function("binder","return function ("+B.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var q=function(){};q.prototype=b.prototype,g.prototype=new q,q.prototype=null}return g}},58612:(h,I,a)=>{"use strict";var c=a(17648);h.exports=Function.prototype.bind||c},40210:(h,I,a)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(ye){try{return x('"use strict"; return ('+ye+").constructor;")()}catch(be){}},S=Object.getOwnPropertyDescriptor;if(S)try{S({},"")}catch(ye){S=null}var g=function(){throw new d},L=S?function(){try{return arguments.callee,g}catch(ye){try{return S(arguments,"callee").get}catch(be){return g}}}():g,D=a(41405)(),B=Object.getPrototypeOf||function(ye){return ye.__proto__},j={},q=typeof Uint8Array=="undefined"?c:B(Uint8Array),W={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":D?B([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics=="undefined"?c:Atomics,"%BigInt%":typeof BigInt=="undefined"?c:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?c:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?c:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D?B(B([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!D?c:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?c:Promise,"%Proxy%":typeof Proxy=="undefined"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?c:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!D?c:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D?B(""[Symbol.iterator]()):c,"%Symbol%":D?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":q,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},M=function ye(be){var he;if(be==="%AsyncFunction%")he=b("async function () {}");else if(be==="%GeneratorFunction%")he=b("function* () {}");else if(be==="%AsyncGeneratorFunction%")he=b("async function* () {}");else if(be==="%AsyncGenerator%"){var ue=ye("%AsyncGeneratorFunction%");ue&&(he=ue.prototype)}else if(be==="%AsyncIteratorPrototype%"){var oe=ye("%AsyncGenerator%");oe&&(he=B(oe.prototype))}return W[be]=he,he},X={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=a(58612),C=a(17642),V=R.call(Function.call,Array.prototype.concat),J=R.call(Function.apply,Array.prototype.splice),_=R.call(Function.call,String.prototype.replace),Q=R.call(Function.call,String.prototype.slice),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,ee=function(be){var he=Q(be,0,1),ue=Q(be,-1);if(he==="%"&&ue!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(ue==="%"&&he!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var oe=[];return _(be,Y,function(Fe,Le,Me,Pe){oe[oe.length]=Me?_(Pe,fe,"$1"):Le||Fe}),oe},ie=function(be,he){var ue=be,oe;if(C(X,ue)&&(oe=X[ue],ue="%"+oe[0]+"%"),C(W,ue)){var Fe=W[ue];if(Fe===j&&(Fe=M(ue)),typeof Fe=="undefined"&&!he)throw new d("intrinsic "+be+" exists, but is not available. Please file an issue!");return{alias:oe,name:ue,value:Fe}}throw new v("intrinsic "+be+" does not exist!")};h.exports=function(be,he){if(typeof be!="string"||be.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof he!="boolean")throw new d('"allowMissing" argument must be a boolean');var ue=ee(be),oe=ue.length>0?ue[0]:"",Fe=ie("%"+oe+"%",he),Le=Fe.name,Me=Fe.value,Pe=!1,rt=Fe.alias;rt&&(oe=rt[0],J(ue,V([0,1],rt)));for(var Ze=1,Xe=!0;Ze<ue.length;Ze+=1){var ft=ue[Ze],ht=Q(ft,0,1),bt=Q(ft,-1);if((ht==='"'||ht==="'"||ht==="`"||bt==='"'||bt==="'"||bt==="`")&&ht!==bt)throw new v("property names with quotes must have matching quotes");if((ft==="constructor"||!Xe)&&(Pe=!0),oe+="."+ft,Le="%"+oe+"%",C(W,Le))Me=W[Le];else if(Me!=null){if(!(ft in Me)){if(!he)throw new d("base intrinsic for "+be+" exists, but the property is not available.");return}if(S&&Ze+1>=ue.length){var nt=S(Me,ft);Xe=!!nt,Xe&&"get"in nt&&!("originalValue"in nt.get)?Me=nt.get:Me=Me[ft]}else Xe=C(Me,ft),Me=Me[ft];Xe&&!Pe&&(W[Le]=Me)}}return Me}},41405:(h,I,a)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=a(55419);h.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},c=Symbol("test"),v=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var x=42;a[c]=x;for(c in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var d=Object.getOwnPropertySymbols(a);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(a,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(a,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,a)=>{"use strict";var c=a(58612);h.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(h,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(a,c,v,x,d){var b,S,g=d*8-x-1,L=(1<<g)-1,D=L>>1,B=-7,j=v?d-1:0,q=v?-1:1,W=a[c+j];for(j+=q,b=W&(1<<-B)-1,W>>=-B,B+=g;B>0;b=b*256+a[c+j],j+=q,B-=8);for(S=b&(1<<-B)-1,b>>=-B,B+=x;B>0;S=S*256+a[c+j],j+=q,B-=8);if(b===0)b=1-D;else{if(b===L)return S?NaN:(W?-1:1)*(1/0);S=S+Math.pow(2,x),b=b-D}return(W?-1:1)*S*Math.pow(2,b-x)},I.write=function(a,c,v,x,d,b){var S,g,L,D=b*8-d-1,B=(1<<D)-1,j=B>>1,q=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=x?0:b-1,M=x?1:-1,X=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,S=B):(S=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-S))<1&&(S--,L*=2),S+j>=1?c+=q/L:c+=q*Math.pow(2,1-j),c*L>=2&&(S++,L/=2),S+j>=B?(g=0,S=B):S+j>=1?(g=(c*L-1)*Math.pow(2,d),S=S+j):(g=c*Math.pow(2,j-1)*Math.pow(2,d),S=0));d>=8;a[v+W]=g&255,W+=M,g/=256,d-=8);for(S=S<<d|g,D+=d;D>0;a[v+W]=S&255,W+=M,S/=256,D-=8);a[v+W-M]|=X*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(a){return I.call(a)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,a)=>{"use strict";var c=a(51294);h.exports=c},51294:(h,I,a)=>{"use strict";var c=a(40028),v=a(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=a(53899),h.exports.Schema=a(82409),h.exports.FAILSAFE_SCHEMA=a(75322),h.exports.JSON_SCHEMA=a(65796),h.exports.CORE_SCHEMA=a(17318),h.exports.DEFAULT_SAFE_SCHEMA=a(5972),h.exports.DEFAULT_FULL_SCHEMA=a(19321),h.exports.load=c.load,h.exports.loadAll=c.loadAll,h.exports.safeLoad=c.safeLoad,h.exports.safeLoadAll=c.safeLoadAll,h.exports.dump=v.dump,h.exports.safeDump=v.safeDump,h.exports.YAMLException=a(14884),h.exports.MINIMAL_SCHEMA=a(75322),h.exports.SAFE_SCHEMA=a(5972),h.exports.DEFAULT_SCHEMA=a(19321),h.exports.scan=x("scan"),h.exports.parse=x("parse"),h.exports.compose=x("compose"),h.exports.addConstructor=x("addConstructor")},25596:h=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function a(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,S){var g,L,D,B;if(S)for(B=Object.keys(S),g=0,L=B.length;g<L;g+=1)D=B[g],b[D]=S[D];return b}function x(b,S){var g="",L;for(L=0;L<S;L+=1)g+=b;return g}function d(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}h.exports.isNothing=I,h.exports.isObject=a,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(19321),d=a(5972),b=Object.prototype.toString,S=Object.prototype.hasOwnProperty,g=9,L=10,D=13,B=32,j=33,q=34,W=35,M=37,X=38,R=39,C=42,V=44,J=45,_=58,Q=61,Y=62,fe=63,ee=64,ie=91,ye=93,be=96,he=123,ue=124,oe=125,Fe={};Fe[0]="\\0",Fe[7]="\\a",Fe[8]="\\b",Fe[9]="\\t",Fe[10]="\\n",Fe[11]="\\v",Fe[12]="\\f",Fe[13]="\\r",Fe[27]="\\e",Fe[34]='\\"',Fe[92]="\\\\",Fe[133]="\\N",Fe[160]="\\_",Fe[8232]="\\L",Fe[8233]="\\P";var Le=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Me(N,te){var de,ae,pe,Ae,Be,Ue,Qe;if(te===null)return{};for(de={},ae=Object.keys(te),pe=0,Ae=ae.length;pe<Ae;pe+=1)Be=ae[pe],Ue=String(te[Be]),Be.slice(0,2)==="!!"&&(Be="tag:yaml.org,2002:"+Be.slice(2)),Qe=N.compiledTypeMap.fallback[Be],Qe&&S.call(Qe.styleAliases,Ue)&&(Ue=Qe.styleAliases[Ue]),de[Be]=Ue;return de}function Pe(N){var te,de,ae;if(te=N.toString(16).toUpperCase(),N<=255)de="x",ae=2;else if(N<=65535)de="u",ae=4;else if(N<=4294967295)de="U",ae=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+de+c.repeat("0",ae-te.length)+te}function rt(N){this.schema=N.schema||x,this.indent=Math.max(1,N.indent||2),this.noArrayIndent=N.noArrayIndent||!1,this.skipInvalid=N.skipInvalid||!1,this.flowLevel=c.isNothing(N.flowLevel)?-1:N.flowLevel,this.styleMap=Me(this.schema,N.styles||null),this.sortKeys=N.sortKeys||!1,this.lineWidth=N.lineWidth||80,this.noRefs=N.noRefs||!1,this.noCompatMode=N.noCompatMode||!1,this.condenseFlow=N.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ze(N,te){for(var de=c.repeat(" ",te),ae=0,pe=-1,Ae="",Be,Ue=N.length;ae<Ue;)pe=N.indexOf(`
467
+ `,ae),pe===-1?(Be=N.slice(ae),ae=Ue):(Be=N.slice(ae,pe+1),ae=pe+1),Be.length&&Be!==`
468
+ `&&(Ae+=de),Ae+=Be;return Ae}function Xe(N,te){return`
469
+ `+c.repeat(" ",N.indent*te)}function ft(N,te){var de,ae,pe;for(de=0,ae=N.implicitTypes.length;de<ae;de+=1)if(pe=N.implicitTypes[de],pe.resolve(te))return!0;return!1}function ht(N){return N===B||N===g}function bt(N){return 32<=N&&N<=126||161<=N&&N<=55295&&N!==8232&&N!==8233||57344<=N&&N<=65533&&N!==65279||65536<=N&&N<=1114111}function nt(N){return bt(N)&&!ht(N)&&N!==65279&&N!==D&&N!==L}function ut(N,te){return bt(N)&&N!==65279&&N!==V&&N!==ie&&N!==ye&&N!==he&&N!==oe&&N!==_&&(N!==W||te&&nt(te))}function yt(N){return bt(N)&&N!==65279&&!ht(N)&&N!==J&&N!==fe&&N!==_&&N!==V&&N!==ie&&N!==ye&&N!==he&&N!==oe&&N!==W&&N!==X&&N!==C&&N!==j&&N!==ue&&N!==Q&&N!==Y&&N!==R&&N!==q&&N!==M&&N!==ee&&N!==be}function mt(N){var te=/^\n* /;return te.test(N)}var pt=1,Mt=2,kt=3,Et=4,Ht=5;function jt(N,te,de,ae,pe){var Ae,Be,Ue,Qe=!1,vt=!1,At=ae!==-1,Bt=-1,Pt=yt(N.charCodeAt(0))&&!ht(N.charCodeAt(N.length-1));if(te)for(Ae=0;Ae<N.length;Ae++){if(Be=N.charCodeAt(Ae),!bt(Be))return Ht;Ue=Ae>0?N.charCodeAt(Ae-1):null,Pt=Pt&&ut(Be,Ue)}else{for(Ae=0;Ae<N.length;Ae++){if(Be=N.charCodeAt(Ae),Be===L)Qe=!0,At&&(vt=vt||Ae-Bt-1>ae&&N[Bt+1]!==" ",Bt=Ae);else if(!bt(Be))return Ht;Ue=Ae>0?N.charCodeAt(Ae-1):null,Pt=Pt&&ut(Be,Ue)}vt=vt||At&&Ae-Bt-1>ae&&N[Bt+1]!==" "}return!Qe&&!vt?Pt&&!pe(N)?pt:Mt:de>9&&mt(N)?Ht:vt?Et:kt}function Vt(N,te,de,ae){N.dump=function(){if(te.length===0)return"''";if(!N.noCompatMode&&Le.indexOf(te)!==-1)return"'"+te+"'";var pe=N.indent*Math.max(1,de),Ae=N.lineWidth===-1?-1:Math.max(Math.min(N.lineWidth,40),N.lineWidth-pe),Be=ae||N.flowLevel>-1&&de>=N.flowLevel;function Ue(Qe){return ft(N,Qe)}switch(jt(te,Be,N.indent,Ae,Ue)){case pt:return te;case Mt:return"'"+te.replace(/'/g,"''")+"'";case kt:return"|"+wt(te,N.indent)+Dt(Ze(te,pe));case Et:return">"+wt(te,N.indent)+Dt(Ze(ve(te,Ae),pe));case Ht:return'"'+$(te,Ae)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function wt(N,te){var de=mt(N)?String(te):"",ae=N[N.length-1]===`
470
+ `,pe=ae&&(N[N.length-2]===`
471
+ `||N===`
472
+ `),Ae=pe?"+":ae?"":"-";return de+Ae+`
473
+ `}function Dt(N){return N[N.length-1]===`
474
+ `?N.slice(0,-1):N}function ve(N,te){for(var de=/(\n+)([^\n]*)/g,ae=function(){var vt=N.indexOf(`
475
+ `);return vt=vt!==-1?vt:N.length,de.lastIndex=vt,z(N.slice(0,vt),te)}(),pe=N[0]===`
476
+ `||N[0]===" ",Ae,Be;Be=de.exec(N);){var Ue=Be[1],Qe=Be[2];Ae=Qe[0]===" ",ae+=Ue+(!pe&&!Ae&&Qe!==""?`
477
+ `:"")+z(Qe,te),pe=Ae}return ae}function z(N,te){if(N===""||N[0]===" ")return N;for(var de=/ [^ ]/g,ae,pe=0,Ae,Be=0,Ue=0,Qe="";ae=de.exec(N);)Ue=ae.index,Ue-pe>te&&(Ae=Be>pe?Be:Ue,Qe+=`
478
+ `+N.slice(pe,Ae),pe=Ae+1),Be=Ue;return Qe+=`
479
+ `,N.length-pe>te&&Be>pe?Qe+=N.slice(pe,Be)+`
480
+ `+N.slice(Be+1):Qe+=N.slice(pe),Qe.slice(1)}function $(N){for(var te="",de,ae,pe,Ae=0;Ae<N.length;Ae++){if(de=N.charCodeAt(Ae),de>=55296&&de<=56319&&(ae=N.charCodeAt(Ae+1),ae>=56320&&ae<=57343)){te+=Pe((de-55296)*1024+ae-56320+65536),Ae++;continue}pe=Fe[de],te+=!pe&&bt(de)?N[Ae]:pe||Pe(de)}return te}function Se(N,te,de){var ae="",pe=N.tag,Ae,Be;for(Ae=0,Be=de.length;Ae<Be;Ae+=1)Re(N,te,de[Ae],!1,!1)&&(Ae!==0&&(ae+=","+(N.condenseFlow?"":" ")),ae+=N.dump);N.tag=pe,N.dump="["+ae+"]"}function Ie(N,te,de,ae){var pe="",Ae=N.tag,Be,Ue;for(Be=0,Ue=de.length;Be<Ue;Be+=1)Re(N,te+1,de[Be],!0,!0)&&((!ae||Be!==0)&&(pe+=Xe(N,te)),N.dump&&L===N.dump.charCodeAt(0)?pe+="-":pe+="- ",pe+=N.dump);N.tag=Ae,N.dump=pe||"[]"}function Ge(N,te,de){var ae="",pe=N.tag,Ae=Object.keys(de),Be,Ue,Qe,vt,At;for(Be=0,Ue=Ae.length;Be<Ue;Be+=1)At="",Be!==0&&(At+=", "),N.condenseFlow&&(At+='"'),Qe=Ae[Be],vt=de[Qe],!!Re(N,te,Qe,!1,!1)&&(N.dump.length>1024&&(At+="? "),At+=N.dump+(N.condenseFlow?'"':"")+":"+(N.condenseFlow?"":" "),!!Re(N,te,vt,!1,!1)&&(At+=N.dump,ae+=At));N.tag=pe,N.dump="{"+ae+"}"}function Ke(N,te,de,ae){var pe="",Ae=N.tag,Be=Object.keys(de),Ue,Qe,vt,At,Bt,Pt;if(N.sortKeys===!0)Be.sort();else if(typeof N.sortKeys=="function")Be.sort(N.sortKeys);else if(N.sortKeys)throw new v("sortKeys must be a boolean or a function");for(Ue=0,Qe=Be.length;Ue<Qe;Ue+=1)Pt="",(!ae||Ue!==0)&&(Pt+=Xe(N,te)),vt=Be[Ue],At=de[vt],!!Re(N,te+1,vt,!0,!0,!0)&&(Bt=N.tag!==null&&N.tag!=="?"||N.dump&&N.dump.length>1024,Bt&&(N.dump&&L===N.dump.charCodeAt(0)?Pt+="?":Pt+="? "),Pt+=N.dump,Bt&&(Pt+=Xe(N,te)),!!Re(N,te+1,At,!0,Bt)&&(N.dump&&L===N.dump.charCodeAt(0)?Pt+=":":Pt+=": ",Pt+=N.dump,pe+=Pt));N.tag=Ae,N.dump=pe||"{}"}function P(N,te,de){var ae,pe,Ae,Be,Ue,Qe;for(pe=de?N.explicitTypes:N.implicitTypes,Ae=0,Be=pe.length;Ae<Be;Ae+=1)if(Ue=pe[Ae],(Ue.instanceOf||Ue.predicate)&&(!Ue.instanceOf||typeof te=="object"&&te instanceof Ue.instanceOf)&&(!Ue.predicate||Ue.predicate(te))){if(N.tag=de?Ue.tag:"?",Ue.represent){if(Qe=N.styleMap[Ue.tag]||Ue.defaultStyle,b.call(Ue.represent)==="[object Function]")ae=Ue.represent(te,Qe);else if(S.call(Ue.represent,Qe))ae=Ue.represent[Qe](te,Qe);else throw new v("!<"+Ue.tag+'> tag resolver accepts not "'+Qe+'" style');N.dump=ae}return!0}return!1}function Re(N,te,de,ae,pe,Ae){N.tag=null,N.dump=de,P(N,de,!1)||P(N,de,!0);var Be=b.call(N.dump);ae&&(ae=N.flowLevel<0||N.flowLevel>te);var Ue=Be==="[object Object]"||Be==="[object Array]",Qe,vt;if(Ue&&(Qe=N.duplicates.indexOf(de),vt=Qe!==-1),(N.tag!==null&&N.tag!=="?"||vt||N.indent!==2&&te>0)&&(pe=!1),vt&&N.usedDuplicates[Qe])N.dump="*ref_"+Qe;else{if(Ue&&vt&&!N.usedDuplicates[Qe]&&(N.usedDuplicates[Qe]=!0),Be==="[object Object]")ae&&Object.keys(N.dump).length!==0?(Ke(N,te,N.dump,pe),vt&&(N.dump="&ref_"+Qe+N.dump)):(Ge(N,te,N.dump),vt&&(N.dump="&ref_"+Qe+" "+N.dump));else if(Be==="[object Array]"){var At=N.noArrayIndent&&te>0?te-1:te;ae&&N.dump.length!==0?(Ie(N,At,N.dump,pe),vt&&(N.dump="&ref_"+Qe+N.dump)):(Se(N,At,N.dump),vt&&(N.dump="&ref_"+Qe+" "+N.dump))}else if(Be==="[object String]")N.tag!=="?"&&Vt(N,N.dump,te,Ae);else{if(N.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+Be)}N.tag!==null&&N.tag!=="?"&&(N.dump="!<"+N.tag+"> "+N.dump)}return!0}function K(N,te){var de=[],ae=[],pe,Ae;for(T(N,de,ae),pe=0,Ae=ae.length;pe<Ae;pe+=1)te.duplicates.push(de[ae[pe]]);te.usedDuplicates=new Array(Ae)}function T(N,te,de){var ae,pe,Ae;if(N!==null&&typeof N=="object")if(pe=te.indexOf(N),pe!==-1)de.indexOf(pe)===-1&&de.push(pe);else if(te.push(N),Array.isArray(N))for(pe=0,Ae=N.length;pe<Ae;pe+=1)T(N[pe],te,de);else for(ae=Object.keys(N),pe=0,Ae=ae.length;pe<Ae;pe+=1)T(N[ae[pe]],te,de)}function O(N,te){te=te||{};var de=new rt(te);return de.noRefs||K(N,de),Re(de,0,N,!0,!0)?de.dump+`
481
+ `:""}function se(N,te){return O(N,c.extend({schema:d},te))}h.exports.dump=O,h.exports.safeDump=se},14884:h=>{"use strict";function I(a,c){Error.call(this),this.name="YAMLException",this.reason=a,this.mark=c,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I.prototype.toString=function(c){var v=this.name+": ";return v+=this.reason||"(unknown reason)",!c&&this.mark&&(v+=" "+this.mark.toString()),v},h.exports=I},40028:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(77334),d=a(5972),b=a(19321),S=Object.prototype.hasOwnProperty,g=1,L=2,D=3,B=4,j=1,q=2,W=3,M=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,X=/[\x85\u2028\u2029]/,R=/[,\[\]\{\}]/,C=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function J(P){return Object.prototype.toString.call(P)}function _(P){return P===10||P===13}function Q(P){return P===9||P===32}function Y(P){return P===9||P===32||P===10||P===13}function fe(P){return P===44||P===91||P===93||P===123||P===125}function ee(P){var Re;return 48<=P&&P<=57?P-48:(Re=P|32,97<=Re&&Re<=102?Re-97+10:-1)}function ie(P){return P===120?2:P===117?4:P===85?8:0}function ye(P){return 48<=P&&P<=57?P-48:-1}function be(P){return P===48?"\0":P===97?"\x07":P===98?"\b":P===116||P===9?" ":P===110?`
482
+ `:P===118?"\v":P===102?"\f":P===114?"\r":P===101?"":P===32?" ":P===34?'"':P===47?"/":P===92?"\\":P===78?"\x85":P===95?"\xA0":P===76?"\u2028":P===80?"\u2029":""}function he(P){return P<=65535?String.fromCharCode(P):String.fromCharCode((P-65536>>10)+55296,(P-65536&1023)+56320)}for(var ue=new Array(256),oe=new Array(256),Fe=0;Fe<256;Fe++)ue[Fe]=be(Fe)?1:0,oe[Fe]=be(Fe);function Le(P,Re){this.input=P,this.filename=Re.filename||null,this.schema=Re.schema||b,this.onWarning=Re.onWarning||null,this.legacy=Re.legacy||!1,this.json=Re.json||!1,this.listener=Re.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=P.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Me(P,Re){return new v(Re,new x(P.filename,P.input,P.position,P.line,P.position-P.lineStart))}function Pe(P,Re){throw Me(P,Re)}function rt(P,Re){P.onWarning&&P.onWarning.call(null,Me(P,Re))}var Ze={YAML:function(Re,K,T){var O,se,N;Re.version!==null&&Pe(Re,"duplication of %YAML directive"),T.length!==1&&Pe(Re,"YAML directive accepts exactly one argument"),O=/^([0-9]+)\.([0-9]+)$/.exec(T[0]),O===null&&Pe(Re,"ill-formed argument of the YAML directive"),se=parseInt(O[1],10),N=parseInt(O[2],10),se!==1&&Pe(Re,"unacceptable YAML version of the document"),Re.version=T[0],Re.checkLineBreaks=N<2,N!==1&&N!==2&&rt(Re,"unsupported YAML version of the document")},TAG:function(Re,K,T){var O,se;T.length!==2&&Pe(Re,"TAG directive accepts exactly two arguments"),O=T[0],se=T[1],C.test(O)||Pe(Re,"ill-formed tag handle (first argument) of the TAG directive"),S.call(Re.tagMap,O)&&Pe(Re,'there is a previously declared suffix for "'+O+'" tag handle'),V.test(se)||Pe(Re,"ill-formed tag prefix (second argument) of the TAG directive"),Re.tagMap[O]=se}};function Xe(P,Re,K,T){var O,se,N,te;if(Re<K){if(te=P.input.slice(Re,K),T)for(O=0,se=te.length;O<se;O+=1)N=te.charCodeAt(O),N===9||32<=N&&N<=1114111||Pe(P,"expected valid JSON character");else M.test(te)&&Pe(P,"the stream contains non-printable characters");P.result+=te}}function ft(P,Re,K,T){var O,se,N,te;for(c.isObject(K)||Pe(P,"cannot merge mappings; the provided source object is unacceptable"),O=Object.keys(K),N=0,te=O.length;N<te;N+=1)se=O[N],S.call(Re,se)||(Re[se]=K[se],T[se]=!0)}function ht(P,Re,K,T,O,se,N,te){var de,ae;if(Array.isArray(O))for(O=Array.prototype.slice.call(O),de=0,ae=O.length;de<ae;de+=1)Array.isArray(O[de])&&Pe(P,"nested arrays are not supported inside keys"),typeof O=="object"&&J(O[de])==="[object Object]"&&(O[de]="[object Object]");if(typeof O=="object"&&J(O)==="[object Object]"&&(O="[object Object]"),O=String(O),Re===null&&(Re={}),T==="tag:yaml.org,2002:merge")if(Array.isArray(se))for(de=0,ae=se.length;de<ae;de+=1)ft(P,Re,se[de],K);else ft(P,Re,se,K);else!P.json&&!S.call(K,O)&&S.call(Re,O)&&(P.line=N||P.line,P.position=te||P.position,Pe(P,"duplicated mapping key")),Re[O]=se,delete K[O];return Re}function bt(P){var Re;Re=P.input.charCodeAt(P.position),Re===10?P.position++:Re===13?(P.position++,P.input.charCodeAt(P.position)===10&&P.position++):Pe(P,"a line break is expected"),P.line+=1,P.lineStart=P.position}function nt(P,Re,K){for(var T=0,O=P.input.charCodeAt(P.position);O!==0;){for(;Q(O);)O=P.input.charCodeAt(++P.position);if(Re&&O===35)do O=P.input.charCodeAt(++P.position);while(O!==10&&O!==13&&O!==0);if(_(O))for(bt(P),O=P.input.charCodeAt(P.position),T++,P.lineIndent=0;O===32;)P.lineIndent++,O=P.input.charCodeAt(++P.position);else break}return K!==-1&&T!==0&&P.lineIndent<K&&rt(P,"deficient indentation"),T}function ut(P){var Re=P.position,K;return K=P.input.charCodeAt(Re),!!((K===45||K===46)&&K===P.input.charCodeAt(Re+1)&&K===P.input.charCodeAt(Re+2)&&(Re+=3,K=P.input.charCodeAt(Re),K===0||Y(K)))}function yt(P,Re){Re===1?P.result+=" ":Re>1&&(P.result+=c.repeat(`
483
+ `,Re-1))}function mt(P,Re,K){var T,O,se,N,te,de,ae,pe,Ae=P.kind,Be=P.result,Ue;if(Ue=P.input.charCodeAt(P.position),Y(Ue)||fe(Ue)||Ue===35||Ue===38||Ue===42||Ue===33||Ue===124||Ue===62||Ue===39||Ue===34||Ue===37||Ue===64||Ue===96||(Ue===63||Ue===45)&&(O=P.input.charCodeAt(P.position+1),Y(O)||K&&fe(O)))return!1;for(P.kind="scalar",P.result="",se=N=P.position,te=!1;Ue!==0;){if(Ue===58){if(O=P.input.charCodeAt(P.position+1),Y(O)||K&&fe(O))break}else if(Ue===35){if(T=P.input.charCodeAt(P.position-1),Y(T))break}else{if(P.position===P.lineStart&&ut(P)||K&&fe(Ue))break;if(_(Ue))if(de=P.line,ae=P.lineStart,pe=P.lineIndent,nt(P,!1,-1),P.lineIndent>=Re){te=!0,Ue=P.input.charCodeAt(P.position);continue}else{P.position=N,P.line=de,P.lineStart=ae,P.lineIndent=pe;break}}te&&(Xe(P,se,N,!1),yt(P,P.line-de),se=N=P.position,te=!1),Q(Ue)||(N=P.position+1),Ue=P.input.charCodeAt(++P.position)}return Xe(P,se,N,!1),P.result?!0:(P.kind=Ae,P.result=Be,!1)}function pt(P,Re){var K,T,O;if(K=P.input.charCodeAt(P.position),K!==39)return!1;for(P.kind="scalar",P.result="",P.position++,T=O=P.position;(K=P.input.charCodeAt(P.position))!==0;)if(K===39)if(Xe(P,T,P.position,!0),K=P.input.charCodeAt(++P.position),K===39)T=P.position,P.position++,O=P.position;else return!0;else _(K)?(Xe(P,T,O,!0),yt(P,nt(P,!1,Re)),T=O=P.position):P.position===P.lineStart&&ut(P)?Pe(P,"unexpected end of the document within a single quoted scalar"):(P.position++,O=P.position);Pe(P,"unexpected end of the stream within a single quoted scalar")}function Mt(P,Re){var K,T,O,se,N,te;if(te=P.input.charCodeAt(P.position),te!==34)return!1;for(P.kind="scalar",P.result="",P.position++,K=T=P.position;(te=P.input.charCodeAt(P.position))!==0;){if(te===34)return Xe(P,K,P.position,!0),P.position++,!0;if(te===92){if(Xe(P,K,P.position,!0),te=P.input.charCodeAt(++P.position),_(te))nt(P,!1,Re);else if(te<256&&ue[te])P.result+=oe[te],P.position++;else if((N=ie(te))>0){for(O=N,se=0;O>0;O--)te=P.input.charCodeAt(++P.position),(N=ee(te))>=0?se=(se<<4)+N:Pe(P,"expected hexadecimal character");P.result+=he(se),P.position++}else Pe(P,"unknown escape sequence");K=T=P.position}else _(te)?(Xe(P,K,T,!0),yt(P,nt(P,!1,Re)),K=T=P.position):P.position===P.lineStart&&ut(P)?Pe(P,"unexpected end of the document within a double quoted scalar"):(P.position++,T=P.position)}Pe(P,"unexpected end of the stream within a double quoted scalar")}function kt(P,Re){var K=!0,T,O=P.tag,se,N=P.anchor,te,de,ae,pe,Ae,Be={},Ue,Qe,vt,At;if(At=P.input.charCodeAt(P.position),At===91)de=93,Ae=!1,se=[];else if(At===123)de=125,Ae=!0,se={};else return!1;for(P.anchor!==null&&(P.anchorMap[P.anchor]=se),At=P.input.charCodeAt(++P.position);At!==0;){if(nt(P,!0,Re),At=P.input.charCodeAt(P.position),At===de)return P.position++,P.tag=O,P.anchor=N,P.kind=Ae?"mapping":"sequence",P.result=se,!0;K||Pe(P,"missed comma between flow collection entries"),Qe=Ue=vt=null,ae=pe=!1,At===63&&(te=P.input.charCodeAt(P.position+1),Y(te)&&(ae=pe=!0,P.position++,nt(P,!0,Re))),T=P.line,ve(P,Re,g,!1,!0),Qe=P.tag,Ue=P.result,nt(P,!0,Re),At=P.input.charCodeAt(P.position),(pe||P.line===T)&&At===58&&(ae=!0,At=P.input.charCodeAt(++P.position),nt(P,!0,Re),ve(P,Re,g,!1,!0),vt=P.result),Ae?ht(P,se,Be,Qe,Ue,vt):ae?se.push(ht(P,null,Be,Qe,Ue,vt)):se.push(Ue),nt(P,!0,Re),At=P.input.charCodeAt(P.position),At===44?(K=!0,At=P.input.charCodeAt(++P.position)):K=!1}Pe(P,"unexpected end of the stream within a flow collection")}function Et(P,Re){var K,T,O=j,se=!1,N=!1,te=Re,de=0,ae=!1,pe,Ae;if(Ae=P.input.charCodeAt(P.position),Ae===124)T=!1;else if(Ae===62)T=!0;else return!1;for(P.kind="scalar",P.result="";Ae!==0;)if(Ae=P.input.charCodeAt(++P.position),Ae===43||Ae===45)j===O?O=Ae===43?W:q:Pe(P,"repeat of a chomping mode identifier");else if((pe=ye(Ae))>=0)pe===0?Pe(P,"bad explicit indentation width of a block scalar; it cannot be less than one"):N?Pe(P,"repeat of an indentation width identifier"):(te=Re+pe-1,N=!0);else break;if(Q(Ae)){do Ae=P.input.charCodeAt(++P.position);while(Q(Ae));if(Ae===35)do Ae=P.input.charCodeAt(++P.position);while(!_(Ae)&&Ae!==0)}for(;Ae!==0;){for(bt(P),P.lineIndent=0,Ae=P.input.charCodeAt(P.position);(!N||P.lineIndent<te)&&Ae===32;)P.lineIndent++,Ae=P.input.charCodeAt(++P.position);if(!N&&P.lineIndent>te&&(te=P.lineIndent),_(Ae)){de++;continue}if(P.lineIndent<te){O===W?P.result+=c.repeat(`
484
+ `,se?1+de:de):O===j&&se&&(P.result+=`
485
+ `);break}for(T?Q(Ae)?(ae=!0,P.result+=c.repeat(`
486
+ `,se?1+de:de)):ae?(ae=!1,P.result+=c.repeat(`
487
+ `,de+1)):de===0?se&&(P.result+=" "):P.result+=c.repeat(`
488
+ `,de):P.result+=c.repeat(`
489
+ `,se?1+de:de),se=!0,N=!0,de=0,K=P.position;!_(Ae)&&Ae!==0;)Ae=P.input.charCodeAt(++P.position);Xe(P,K,P.position,!1)}return!0}function Ht(P,Re){var K,T=P.tag,O=P.anchor,se=[],N,te=!1,de;for(P.anchor!==null&&(P.anchorMap[P.anchor]=se),de=P.input.charCodeAt(P.position);de!==0&&!(de!==45||(N=P.input.charCodeAt(P.position+1),!Y(N)));){if(te=!0,P.position++,nt(P,!0,-1)&&P.lineIndent<=Re){se.push(null),de=P.input.charCodeAt(P.position);continue}if(K=P.line,ve(P,Re,D,!1,!0),se.push(P.result),nt(P,!0,-1),de=P.input.charCodeAt(P.position),(P.line===K||P.lineIndent>Re)&&de!==0)Pe(P,"bad indentation of a sequence entry");else if(P.lineIndent<Re)break}return te?(P.tag=T,P.anchor=O,P.kind="sequence",P.result=se,!0):!1}function jt(P,Re,K){var T,O,se,N,te=P.tag,de=P.anchor,ae={},pe={},Ae=null,Be=null,Ue=null,Qe=!1,vt=!1,At;for(P.anchor!==null&&(P.anchorMap[P.anchor]=ae),At=P.input.charCodeAt(P.position);At!==0;){if(T=P.input.charCodeAt(P.position+1),se=P.line,N=P.position,(At===63||At===58)&&Y(T))At===63?(Qe&&(ht(P,ae,pe,Ae,Be,null),Ae=Be=Ue=null),vt=!0,Qe=!0,O=!0):Qe?(Qe=!1,O=!0):Pe(P,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),P.position+=1,At=T;else if(ve(P,K,L,!1,!0))if(P.line===se){for(At=P.input.charCodeAt(P.position);Q(At);)At=P.input.charCodeAt(++P.position);if(At===58)At=P.input.charCodeAt(++P.position),Y(At)||Pe(P,"a whitespace character is expected after the key-value separator within a block mapping"),Qe&&(ht(P,ae,pe,Ae,Be,null),Ae=Be=Ue=null),vt=!0,Qe=!1,O=!1,Ae=P.tag,Be=P.result;else if(vt)Pe(P,"can not read an implicit mapping pair; a colon is missed");else return P.tag=te,P.anchor=de,!0}else if(vt)Pe(P,"can not read a block mapping entry; a multiline key may not be an implicit key");else return P.tag=te,P.anchor=de,!0;else break;if((P.line===se||P.lineIndent>Re)&&(ve(P,Re,B,!0,O)&&(Qe?Be=P.result:Ue=P.result),Qe||(ht(P,ae,pe,Ae,Be,Ue,se,N),Ae=Be=Ue=null),nt(P,!0,-1),At=P.input.charCodeAt(P.position)),P.lineIndent>Re&&At!==0)Pe(P,"bad indentation of a mapping entry");else if(P.lineIndent<Re)break}return Qe&&ht(P,ae,pe,Ae,Be,null),vt&&(P.tag=te,P.anchor=de,P.kind="mapping",P.result=ae),vt}function Vt(P){var Re,K=!1,T=!1,O,se,N;if(N=P.input.charCodeAt(P.position),N!==33)return!1;if(P.tag!==null&&Pe(P,"duplication of a tag property"),N=P.input.charCodeAt(++P.position),N===60?(K=!0,N=P.input.charCodeAt(++P.position)):N===33?(T=!0,O="!!",N=P.input.charCodeAt(++P.position)):O="!",Re=P.position,K){do N=P.input.charCodeAt(++P.position);while(N!==0&&N!==62);P.position<P.length?(se=P.input.slice(Re,P.position),N=P.input.charCodeAt(++P.position)):Pe(P,"unexpected end of the stream within a verbatim tag")}else{for(;N!==0&&!Y(N);)N===33&&(T?Pe(P,"tag suffix cannot contain exclamation marks"):(O=P.input.slice(Re-1,P.position+1),C.test(O)||Pe(P,"named tag handle cannot contain such characters"),T=!0,Re=P.position+1)),N=P.input.charCodeAt(++P.position);se=P.input.slice(Re,P.position),R.test(se)&&Pe(P,"tag suffix cannot contain flow indicator characters")}return se&&!V.test(se)&&Pe(P,"tag name cannot contain such characters: "+se),K?P.tag=se:S.call(P.tagMap,O)?P.tag=P.tagMap[O]+se:O==="!"?P.tag="!"+se:O==="!!"?P.tag="tag:yaml.org,2002:"+se:Pe(P,'undeclared tag handle "'+O+'"'),!0}function wt(P){var Re,K;if(K=P.input.charCodeAt(P.position),K!==38)return!1;for(P.anchor!==null&&Pe(P,"duplication of an anchor property"),K=P.input.charCodeAt(++P.position),Re=P.position;K!==0&&!Y(K)&&!fe(K);)K=P.input.charCodeAt(++P.position);return P.position===Re&&Pe(P,"name of an anchor node must contain at least one character"),P.anchor=P.input.slice(Re,P.position),!0}function Dt(P){var Re,K,T;if(T=P.input.charCodeAt(P.position),T!==42)return!1;for(T=P.input.charCodeAt(++P.position),Re=P.position;T!==0&&!Y(T)&&!fe(T);)T=P.input.charCodeAt(++P.position);return P.position===Re&&Pe(P,"name of an alias node must contain at least one character"),K=P.input.slice(Re,P.position),S.call(P.anchorMap,K)||Pe(P,'unidentified alias "'+K+'"'),P.result=P.anchorMap[K],nt(P,!0,-1),!0}function ve(P,Re,K,T,O){var se,N,te,de=1,ae=!1,pe=!1,Ae,Be,Ue,Qe,vt;if(P.listener!==null&&P.listener("open",P),P.tag=null,P.anchor=null,P.kind=null,P.result=null,se=N=te=B===K||D===K,T&&nt(P,!0,-1)&&(ae=!0,P.lineIndent>Re?de=1:P.lineIndent===Re?de=0:P.lineIndent<Re&&(de=-1)),de===1)for(;Vt(P)||wt(P);)nt(P,!0,-1)?(ae=!0,te=se,P.lineIndent>Re?de=1:P.lineIndent===Re?de=0:P.lineIndent<Re&&(de=-1)):te=!1;if(te&&(te=ae||O),(de===1||B===K)&&(g===K||L===K?Qe=Re:Qe=Re+1,vt=P.position-P.lineStart,de===1?te&&(Ht(P,vt)||jt(P,vt,Qe))||kt(P,Qe)?pe=!0:(N&&Et(P,Qe)||pt(P,Qe)||Mt(P,Qe)?pe=!0:Dt(P)?(pe=!0,(P.tag!==null||P.anchor!==null)&&Pe(P,"alias node should not have any properties")):mt(P,Qe,g===K)&&(pe=!0,P.tag===null&&(P.tag="?")),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):de===0&&(pe=te&&Ht(P,vt))),P.tag!==null&&P.tag!=="!")if(P.tag==="?"){for(P.result!==null&&P.kind!=="scalar"&&Pe(P,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+P.kind+'"'),Ae=0,Be=P.implicitTypes.length;Ae<Be;Ae+=1)if(Ue=P.implicitTypes[Ae],Ue.resolve(P.result)){P.result=Ue.construct(P.result),P.tag=Ue.tag,P.anchor!==null&&(P.anchorMap[P.anchor]=P.result);break}}else S.call(P.typeMap[P.kind||"fallback"],P.tag)?(Ue=P.typeMap[P.kind||"fallback"][P.tag],P.result!==null&&Ue.kind!==P.kind&&Pe(P,"unacceptable node kind for !<"+P.tag+'> tag; it should be "'+Ue.kind+'", not "'+P.kind+'"'),Ue.resolve(P.result)?(P.result=Ue.construct(P.result),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):Pe(P,"cannot resolve a node with !<"+P.tag+"> explicit tag")):Pe(P,"unknown tag !<"+P.tag+">");return P.listener!==null&&P.listener("close",P),P.tag!==null||P.anchor!==null||pe}function z(P){var Re=P.position,K,T,O,se=!1,N;for(P.version=null,P.checkLineBreaks=P.legacy,P.tagMap={},P.anchorMap={};(N=P.input.charCodeAt(P.position))!==0&&(nt(P,!0,-1),N=P.input.charCodeAt(P.position),!(P.lineIndent>0||N!==37));){for(se=!0,N=P.input.charCodeAt(++P.position),K=P.position;N!==0&&!Y(N);)N=P.input.charCodeAt(++P.position);for(T=P.input.slice(K,P.position),O=[],T.length<1&&Pe(P,"directive name must not be less than one character in length");N!==0;){for(;Q(N);)N=P.input.charCodeAt(++P.position);if(N===35){do N=P.input.charCodeAt(++P.position);while(N!==0&&!_(N));break}if(_(N))break;for(K=P.position;N!==0&&!Y(N);)N=P.input.charCodeAt(++P.position);O.push(P.input.slice(K,P.position))}N!==0&&bt(P),S.call(Ze,T)?Ze[T](P,T,O):rt(P,'unknown document directive "'+T+'"')}if(nt(P,!0,-1),P.lineIndent===0&&P.input.charCodeAt(P.position)===45&&P.input.charCodeAt(P.position+1)===45&&P.input.charCodeAt(P.position+2)===45?(P.position+=3,nt(P,!0,-1)):se&&Pe(P,"directives end mark is expected"),ve(P,P.lineIndent-1,B,!1,!0),nt(P,!0,-1),P.checkLineBreaks&&X.test(P.input.slice(Re,P.position))&&rt(P,"non-ASCII line breaks are interpreted as content"),P.documents.push(P.result),P.position===P.lineStart&&ut(P)){P.input.charCodeAt(P.position)===46&&(P.position+=3,nt(P,!0,-1));return}if(P.position<P.length-1)Pe(P,"end of the stream or a document separator is expected");else return}function $(P,Re){P=String(P),Re=Re||{},P.length!==0&&(P.charCodeAt(P.length-1)!==10&&P.charCodeAt(P.length-1)!==13&&(P+=`
490
+ `),P.charCodeAt(0)===65279&&(P=P.slice(1)));var K=new Le(P,Re),T=P.indexOf("\0");for(T!==-1&&(K.position=T,Pe(K,"null byte is not allowed in input")),K.input+="\0";K.input.charCodeAt(K.position)===32;)K.lineIndent+=1,K.position+=1;for(;K.position<K.length-1;)z(K);return K.documents}function Se(P,Re,K){Re!==null&&typeof Re=="object"&&typeof K=="undefined"&&(K=Re,Re=null);var T=$(P,K);if(typeof Re!="function")return T;for(var O=0,se=T.length;O<se;O+=1)Re(T[O])}function Ie(P,Re){var K=$(P,Re);if(K.length!==0){if(K.length===1)return K[0];throw new v("expected a single document in the stream, but found more")}}function Ge(P,Re,K){return typeof Re=="object"&&Re!==null&&typeof K=="undefined"&&(K=Re,Re=null),Se(P,Re,c.extend({schema:d},K))}function Ke(P,Re){return Ie(P,c.extend({schema:d},Re))}h.exports.loadAll=Se,h.exports.load=Ie,h.exports.safeLoadAll=Ge,h.exports.safeLoad=Ke},77334:(h,I,a)=>{"use strict";var c=a(25596);function v(x,d,b,S,g){this.name=x,this.buffer=d,this.position=b,this.line=S,this.column=g}v.prototype.getSnippet=function(d,b){var S,g,L,D,B;if(!this.buffer)return null;for(d=d||4,b=b||75,S="",g=this.position;g>0&&`\0\r
491
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(g-1))===-1;)if(g-=1,this.position-g>b/2-1){S=" ... ",g+=5;break}for(L="",D=this.position;D<this.buffer.length&&`\0\r
492
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(D))===-1;)if(D+=1,D-this.position>b/2-1){L=" ... ",D-=5;break}return B=this.buffer.slice(g,D),c.repeat(" ",d)+S+B+L+`
493
+ `+c.repeat(" ",d+this.position-g+S.length)+"^"},v.prototype.toString=function(d){var b,S="";return this.name&&(S+='in "'+this.name+'" '),S+="at line "+(this.line+1)+", column "+(this.column+1),d||(b=this.getSnippet(),b&&(S+=`:
494
+ `+b)),S},h.exports=v},82409:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(53899);function d(g,L,D){var B=[];return g.include.forEach(function(j){D=d(j,L,D)}),g[L].forEach(function(j){D.forEach(function(q,W){q.tag===j.tag&&q.kind===j.kind&&B.push(W)}),D.push(j)}),D.filter(function(j,q){return B.indexOf(q)===-1})}function b(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},L,D;function B(j){g[j.kind][j.tag]=g.fallback[j.tag]=j}for(L=0,D=arguments.length;L<D;L+=1)arguments[L].forEach(B);return g}function S(g){this.include=g.include||[],this.implicit=g.implicit||[],this.explicit=g.explicit||[],this.implicit.forEach(function(L){if(L.loadKind&&L.loadKind!=="scalar")throw new v("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=d(this,"implicit",[]),this.compiledExplicit=d(this,"explicit",[]),this.compiledTypeMap=b(this.compiledImplicit,this.compiledExplicit)}S.DEFAULT=null,S.create=function(){var L,D;switch(arguments.length){case 1:L=S.DEFAULT,D=arguments[0];break;case 2:L=arguments[0],D=arguments[1];break;default:throw new v("Wrong number of arguments for Schema.create function")}if(L=c.toArray(L),D=c.toArray(D),!L.every(function(B){return B instanceof S}))throw new v("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!D.every(function(B){return B instanceof x}))throw new v("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new S({include:L,explicit:D})},h.exports=S},17318:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(65796)]})},19321:(h,I,a)=>{"use strict";var c=a(82409);h.exports=c.DEFAULT=new c({include:[a(5972)],explicit:[a(70575),a(97287),a(89811)]})},5972:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(17318)],implicit:[a(56145),a(243)],explicit:[a(18964),a(3878),a(68244),a(67300)]})},75322:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({explicit:[a(79483),a(43745),a(86553)]})},65796:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(75322)],implicit:[a(3022),a(2648),a(95979),a(53456)]})},53899:(h,I,a)=>{"use strict";var c=a(14884),v=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function d(S){var g={};return S!==null&&Object.keys(S).forEach(function(L){S[L].forEach(function(D){g[String(D)]=L})}),g}function b(S,g){if(g=g||{},Object.keys(g).forEach(function(L){if(v.indexOf(L)===-1)throw new c('Unknown option "'+L+'" is met in definition of "'+S+'" YAML type.')}),this.tag=S,this.kind=g.kind||null,this.resolve=g.resolve||function(){return!0},this.construct=g.construct||function(L){return L},this.instanceOf=g.instanceOf||null,this.predicate=g.predicate||null,this.represent=g.represent||null,this.defaultStyle=g.defaultStyle||null,this.styleAliases=d(g.styleAliases||null),x.indexOf(this.kind)===-1)throw new c('Unknown kind "'+this.kind+'" is specified for "'+S+'" YAML type.')}h.exports=b},18964:(h,I,a)=>{"use strict";var c;try{var v=void 0;c=a(48764).Buffer}catch(D){}var x=a(53899),d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
495
+ \r`;function b(D){if(D===null)return!1;var B,j,q=0,W=D.length,M=d;for(j=0;j<W;j++)if(B=M.indexOf(D.charAt(j)),!(B>64)){if(B<0)return!1;q+=6}return q%8==0}function S(D){var B,j,q=D.replace(/[\r\n=]/g,""),W=q.length,M=d,X=0,R=[];for(B=0;B<W;B++)B%4==0&&B&&(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)),X=X<<6|M.indexOf(q.charAt(B));return j=W%4*6,j===0?(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)):j===18?(R.push(X>>10&255),R.push(X>>2&255)):j===12&&R.push(X>>4&255),c?c.from?c.from(R):new c(R):R}function g(D){var B="",j=0,q,W,M=D.length,X=d;for(q=0;q<M;q++)q%3==0&&q&&(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]),j=(j<<8)+D[q];return W=M%3,W===0?(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]):W===2?(B+=X[j>>10&63],B+=X[j>>4&63],B+=X[j<<2&63],B+=X[64]):W===1&&(B+=X[j>>2&63],B+=X[j<<4&63],B+=X[64],B+=X[64]),B}function L(D){return c&&c.isBuffer(D)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:S,predicate:L,represent:g})},2648:(h,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!1;var S=b.length;return S===4&&(b==="true"||b==="True"||b==="TRUE")||S===5&&(b==="false"||b==="False"||b==="FALSE")}function x(b){return b==="true"||b==="True"||b==="TRUE"}function d(b){return Object.prototype.toString.call(b)==="[object Boolean]"}h.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(h,I,a)=>{"use strict";var c=a(25596),v=a(53899),x=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d(D){return!(D===null||!x.test(D)||D[D.length-1]==="_")}function b(D){var B,j,q,W;return B=D.replace(/_/g,"").toLowerCase(),j=B[0]==="-"?-1:1,W=[],"+-".indexOf(B[0])>=0&&(B=B.slice(1)),B===".inf"?j===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:B===".nan"?NaN:B.indexOf(":")>=0?(B.split(":").forEach(function(M){W.unshift(parseFloat(M,10))}),B=0,q=1,W.forEach(function(M){B+=M*q,q*=60}),j*B):j*parseFloat(B,10)}var S=/^[-+]?[0-9]+e/;function g(D,B){var j;if(isNaN(D))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===D)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===D)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(D))return"-0.0";return j=D.toString(10),S.test(j)?j.replace("e",".e"):j}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&(D%1!=0||c.isNegativeZero(D))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(h,I,a)=>{"use strict";var c=a(25596),v=a(53899);function x(D){return 48<=D&&D<=57||65<=D&&D<=70||97<=D&&D<=102}function d(D){return 48<=D&&D<=55}function b(D){return 48<=D&&D<=57}function S(D){if(D===null)return!1;var B=D.length,j=0,q=!1,W;if(!B)return!1;if(W=D[j],(W==="-"||W==="+")&&(W=D[++j]),W==="0"){if(j+1===B)return!0;if(W=D[++j],W==="b"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(W!=="0"&&W!=="1")return!1;q=!0}return q&&W!=="_"}if(W==="x"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(!x(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}for(;j<B;j++)if(W=D[j],W!=="_"){if(!d(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}if(W==="_")return!1;for(;j<B;j++)if(W=D[j],W!=="_"){if(W===":")break;if(!b(D.charCodeAt(j)))return!1;q=!0}return!q||W==="_"?!1:W!==":"?!0:/^(:[0-5]?[0-9])+$/.test(D.slice(j))}function g(D){var B=D,j=1,q,W,M=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),q=B[0],(q==="-"||q==="+")&&(q==="-"&&(j=-1),B=B.slice(1),q=B[0]),B==="0"?0:q==="0"?B[1]==="b"?j*parseInt(B.slice(2),2):B[1]==="x"?j*parseInt(B,16):j*parseInt(B,8):B.indexOf(":")!==-1?(B.split(":").forEach(function(X){M.unshift(parseInt(X,10))}),B=0,W=1,M.forEach(function(X){B+=X*W,W*=60}),j*B):j*parseInt(B,10)}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&D%1==0&&!c.isNegativeZero(D)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:S,construct:g,predicate:L,represent:{binary:function(D){return D>=0?"0b"+D.toString(2):"-0b"+D.toString(2).slice(1)},octal:function(D){return D>=0?"0"+D.toString(8):"-0"+D.toString(8).slice(1)},decimal:function(D){return D.toString(10)},hexadecimal:function(D){return D>=0?"0x"+D.toString(16).toUpperCase():"-0x"+D.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,a)=>{"use strict";var c;try{var v=void 0;c=a(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var x=a(53899);function d(L){if(L===null)return!1;try{var D="("+L+")",B=c.parse(D,{range:!0});return!(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")}catch(j){return!1}}function b(L){var D="("+L+")",B=c.parse(D,{range:!0}),j=[],q;if(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return B.body[0].expression.params.forEach(function(W){j.push(W.name)}),q=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,D.slice(q[0]+1,q[1]-1)):new Function(j,"return "+D.slice(q[0],q[1]))}function S(L){return L.toString()}function g(L){return Object.prototype.toString.call(L)==="[object Function]"}h.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:b,predicate:g,represent:S})},97287:(h,I,a)=>{"use strict";var c=a(53899);function v(S){if(S===null||S.length===0)return!1;var g=S,L=/\/([gim]*)$/.exec(S),D="";return!(g[0]==="/"&&(L&&(D=L[1]),D.length>3||g[g.length-D.length-1]!=="/"))}function x(S){var g=S,L=/\/([gim]*)$/.exec(S),D="";return g[0]==="/"&&(L&&(D=L[1]),g=g.slice(1,g.length-D.length-1)),new RegExp(g,D)}function d(S){var g="/"+S.source+"/";return S.global&&(g+="g"),S.multiline&&(g+="m"),S.ignoreCase&&(g+="i"),g}function b(S){return Object.prototype.toString.call(S)==="[object RegExp]"}h.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},70575:(h,I,a)=>{"use strict";var c=a(53899);function v(){return!0}function x(){}function d(){return""}function b(S){return typeof S=="undefined"}h.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},86553:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,a)=>{"use strict";var c=a(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!0;var S=b.length;return S===1&&b==="~"||S===4&&(b==="null"||b==="Null"||b==="NULL")}function x(){return null}function d(b){return b===null}h.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(S){if(S===null)return!0;var g=[],L,D,B,j,q,W=S;for(L=0,D=W.length;L<D;L+=1){if(B=W[L],q=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!q)q=!0;else return!1;if(!q)return!1;if(g.indexOf(j)===-1)g.push(j);else return!1}return!0}function b(S){return S!==null?S:[]}h.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:b})},68244:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1){if(L=j[S],v.call(L)!=="[object Object]"||(D=Object.keys(L),D.length!==1))return!1;B[S]=[D[0],L[D[0]]]}return!0}function d(b){if(b===null)return[];var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1)L=j[S],D=Object.keys(L),B[S]=[D[0],L[D[0]]];return B}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty;function x(b){if(b===null)return!0;var S,g=b;for(S in g)if(v.call(g,S)&&g[S]!==null)return!1;return!0}function d(b){return b!==null?b:{}}h.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:d})},79483:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,a)=>{"use strict";var c=a(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function d(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var L,D,B,j,q,W,M,X=0,R=null,C,V,J;if(L=v.exec(g),L===null&&(L=x.exec(g)),L===null)throw new Error("Date resolve error");if(D=+L[1],B=+L[2]-1,j=+L[3],!L[4])return new Date(Date.UTC(D,B,j));if(q=+L[4],W=+L[5],M=+L[6],L[7]){for(X=L[7].slice(0,3);X.length<3;)X+="0";X=+X}return L[9]&&(C=+L[10],V=+(L[11]||0),R=(C*60+V)*6e4,L[9]==="-"&&(R=-R)),J=new Date(Date.UTC(D,B,j,q,W,M,X)),R&&J.setTime(J.getTime()-R),J}function S(g){return g.toISOString()}h.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:b,instanceOf:Date,represent:S})},18552:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,a)=>{var c=a(51789),v=a(80401),x=a(57667),d=a(21327),b=a(81866);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},38407:(h,I,a)=>{var c=a(27040),v=a(14125),x=a(82117),d=a(67518),b=a(13399);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},57071:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Map");h.exports=x},83369:(h,I,a)=>{var c=a(24785),v=a(11285),x=a(96e3),d=a(49916),b=a(95265);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},53818:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Set");h.exports=x},88668:(h,I,a)=>{var c=a(83369),v=a(90619),x=a(72385);function d(b){var S=-1,g=b==null?0:b.length;for(this.__data__=new c;++S<g;)this.add(b[S])}d.prototype.add=d.prototype.push=v,d.prototype.has=x,h.exports=d},46384:(h,I,a)=>{var c=a(38407),v=a(37465),x=a(63779),d=a(67599),b=a(44758),S=a(34309);function g(L){var D=this.__data__=new c(L);this.size=D.size}g.prototype.clear=v,g.prototype.delete=x,g.prototype.get=d,g.prototype.has=b,g.prototype.set=S,h.exports=g},62705:(h,I,a)=>{var c=a(55639),v=c.Symbol;h.exports=v},11149:(h,I,a)=>{var c=a(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(a,c,v){switch(v.length){case 0:return a.call(c);case 1:return a.call(c,v[0]);case 2:return a.call(c,v[0],v[1]);case 3:return a.call(c,v[0],v[1],v[2])}return a.apply(c,v)}h.exports=I},77412:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x&&c(a[v],v,a)!==!1;);return a}h.exports=I},34963:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=0,b=[];++v<x;){var S=a[v];c(S,v,a)&&(b[d++]=S)}return b}h.exports=I},14636:(h,I,a)=>{var c=a(22545),v=a(35694),x=a(1469),d=a(44144),b=a(65776),S=a(36719),g=Object.prototype,L=g.hasOwnProperty;function D(B,j){var q=x(B),W=!q&&v(B),M=!q&&!W&&d(B),X=!q&&!W&&!M&&S(B),R=q||W||M||X,C=R?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(R&&(J=="length"||M&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);return C}h.exports=D},29932:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=Array(x);++v<x;)d[v]=c(a[v],v,a);return d}h.exports=I},62488:h=>{function I(a,c){for(var v=-1,x=c.length,d=a.length;++v<x;)a[d+v]=c[v];return a}h.exports=I},82908:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x;)if(c(a[v],v,a))return!0;return!1}h.exports=I},34865:(h,I,a)=>{var c=a(89465),v=a(77813),x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L){var D=S[g];(!(d.call(S,g)&&v(D,L))||L===void 0&&!(g in S))&&c(S,g,L)}h.exports=b},18470:(h,I,a)=>{var c=a(77813);function v(x,d){for(var b=x.length;b--;)if(c(x[b][0],d))return b;return-1}h.exports=v},44037:(h,I,a)=>{var c=a(98363),v=a(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,a)=>{var c=a(98363),v=a(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,a)=>{var c=a(38777);function v(x,d,b){d=="__proto__"&&c?c(x,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[d]=b}h.exports=v},29750:h=>{function I(a,c,v){return a===a&&(v!==void 0&&(a=a<=v?a:v),c!==void 0&&(a=a>=c?a:c)),a}h.exports=I},85990:(h,I,a)=>{var c=a(46384),v=a(77412),x=a(34865),d=a(44037),b=a(63886),S=a(64626),g=a(278),L=a(18805),D=a(1911),B=a(58234),j=a(46904),q=a(98882),W=a(43824),M=a(29148),X=a(38517),R=a(1469),C=a(44144),V=a(56688),J=a(13218),_=a(72928),Q=a(3674),Y=a(81704),fe=1,ee=2,ie=4,ye="[object Arguments]",be="[object Array]",he="[object Boolean]",ue="[object Date]",oe="[object Error]",Fe="[object Function]",Le="[object GeneratorFunction]",Me="[object Map]",Pe="[object Number]",rt="[object Object]",Ze="[object RegExp]",Xe="[object Set]",ft="[object String]",ht="[object Symbol]",bt="[object WeakMap]",nt="[object ArrayBuffer]",ut="[object DataView]",yt="[object Float32Array]",mt="[object Float64Array]",pt="[object Int8Array]",Mt="[object Int16Array]",kt="[object Int32Array]",Et="[object Uint8Array]",Ht="[object Uint8ClampedArray]",jt="[object Uint16Array]",Vt="[object Uint32Array]",wt={};wt[ye]=wt[be]=wt[nt]=wt[ut]=wt[he]=wt[ue]=wt[yt]=wt[mt]=wt[pt]=wt[Mt]=wt[kt]=wt[Me]=wt[Pe]=wt[rt]=wt[Ze]=wt[Xe]=wt[ft]=wt[ht]=wt[Et]=wt[Ht]=wt[jt]=wt[Vt]=!0,wt[oe]=wt[Fe]=wt[bt]=!1;function Dt(ve,z,$,Se,Ie,Ge){var Ke,P=z&fe,Re=z&ee,K=z&ie;if($&&(Ke=Ie?$(ve,Se,Ie,Ge):$(ve)),Ke!==void 0)return Ke;if(!J(ve))return ve;var T=R(ve);if(T){if(Ke=W(ve),!P)return g(ve,Ke)}else{var O=q(ve),se=O==Fe||O==Le;if(C(ve))return S(ve,P);if(O==rt||O==ye||se&&!Ie){if(Ke=Re||se?{}:X(ve),!P)return Re?D(ve,b(Ke,ve)):L(ve,d(Ke,ve))}else{if(!wt[O])return Ie?ve:{};Ke=M(ve,O,P)}}Ge||(Ge=new c);var N=Ge.get(ve);if(N)return N;Ge.set(ve,Ke),_(ve)?ve.forEach(function(ae){Ke.add(Dt(ae,z,$,ae,ve,Ge))}):V(ve)&&ve.forEach(function(ae,pe){Ke.set(pe,Dt(ae,z,$,pe,ve,Ge))});var te=K?Re?j:B:Re?Y:Q,de=T?void 0:te(ve);return v(de||ve,function(ae,pe){de&&(pe=ae,ae=ve[pe]),x(Ke,pe,Dt(ae,z,$,pe,ve,Ge))}),Ke}h.exports=Dt},3118:(h,I,a)=>{var c=a(13218),v=Object.create,x=function(){function d(){}return function(b){if(!c(b))return{};if(v)return v(b);d.prototype=b;var S=new d;return d.prototype=void 0,S}}();h.exports=x},41848:h=>{function I(a,c,v,x){for(var d=a.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(a[b],b,a))return b;return-1}h.exports=I},35764:(h,I,a)=>{var c=a(62488),v=a(37285);function x(d,b,S,g,L){var D=-1,B=d.length;for(S||(S=v),L||(L=[]);++D<B;){var j=d[D];b>0&&S(j)?b>1?x(j,b-1,S,g,L):c(L,j):g||(L[L.length]=j)}return L}h.exports=x},97786:(h,I,a)=>{var c=a(71811),v=a(40327);function x(d,b){b=c(b,d);for(var S=0,g=b.length;d!=null&&S<g;)d=d[v(b[S++])];return S&&S==g?d:void 0}h.exports=x},68866:(h,I,a)=>{var c=a(62488),v=a(1469);function x(d,b,S){var g=b(d);return v(d)?g:c(g,S(d))}h.exports=x},44239:(h,I,a)=>{var c=a(62705),v=a(89607),x=a(2333),d="[object Null]",b="[object Undefined]",S=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:d:S&&S in Object(L)?v(L):x(L)}h.exports=g},13:h=>{function I(a,c){return a!=null&&c in Object(a)}h.exports=I},9454:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,a)=>{var c=a(2492),v=a(37005);function x(d,b,S,g,L){return d===b?!0:d==null||b==null||!v(d)&&!v(b)?d!==d&&b!==b:c(d,b,S,g,x,L)}h.exports=x},2492:(h,I,a)=>{var c=a(46384),v=a(67114),x=a(18351),d=a(16096),b=a(98882),S=a(1469),g=a(44144),L=a(36719),D=1,B="[object Arguments]",j="[object Array]",q="[object Object]",W=Object.prototype,M=W.hasOwnProperty;function X(R,C,V,J,_,Q){var Y=S(R),fe=S(C),ee=Y?j:b(R),ie=fe?j:b(C);ee=ee==B?q:ee,ie=ie==B?q:ie;var ye=ee==q,be=ie==q,he=ee==ie;if(he&&g(R)){if(!g(C))return!1;Y=!0,ye=!1}if(he&&!ye)return Q||(Q=new c),Y||L(R)?v(R,C,V,J,_,Q):x(R,C,ee,V,J,_,Q);if(!(V&D)){var ue=ye&&M.call(R,"__wrapped__"),oe=be&&M.call(C,"__wrapped__");if(ue||oe){var Fe=ue?R.value():R,Le=oe?C.value():C;return Q||(Q=new c),_(Fe,Le,V,J,Q)}}return he?(Q||(Q=new c),d(R,C,V,J,_,Q)):!1}h.exports=X},25588:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,a)=>{var c=a(46384),v=a(90939),x=1,d=2;function b(S,g,L,D){var B=L.length,j=B,q=!D;if(S==null)return!j;for(S=Object(S);B--;){var W=L[B];if(q&&W[2]?W[1]!==S[W[0]]:!(W[0]in S))return!1}for(;++B<j;){W=L[B];var M=W[0],X=S[M],R=W[1];if(q&&W[2]){if(X===void 0&&!(M in S))return!1}else{var C=new c;if(D)var V=D(X,R,M,S,g,C);if(!(V===void 0?v(R,X,x|d,D,C):V))return!1}}return!0}h.exports=b},28458:(h,I,a)=>{var c=a(23560),v=a(15346),x=a(13218),d=a(80346),b=/[\\^$.*+?()[\]{}|]/g,S=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,D=g.toString,B=L.hasOwnProperty,j=RegExp("^"+D.call(B).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function q(W){if(!x(W)||v(W))return!1;var M=c(W)?j:S;return M.test(d(W))}h.exports=q},29221:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,a)=>{var c=a(44239),v=a(41780),x=a(37005),d="[object Arguments]",b="[object Array]",S="[object Boolean]",g="[object Date]",L="[object Error]",D="[object Function]",B="[object Map]",j="[object Number]",q="[object Object]",W="[object RegExp]",M="[object Set]",X="[object String]",R="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",_="[object Float64Array]",Q="[object Int8Array]",Y="[object Int16Array]",fe="[object Int32Array]",ee="[object Uint8Array]",ie="[object Uint8ClampedArray]",ye="[object Uint16Array]",be="[object Uint32Array]",he={};he[J]=he[_]=he[Q]=he[Y]=he[fe]=he[ee]=he[ie]=he[ye]=he[be]=!0,he[d]=he[b]=he[C]=he[S]=he[V]=he[g]=he[L]=he[D]=he[B]=he[j]=he[q]=he[W]=he[M]=he[X]=he[R]=!1;function ue(oe){return x(oe)&&v(oe.length)&&!!he[c(oe)]}h.exports=ue},67206:(h,I,a)=>{var c=a(91573),v=a(16432),x=a(6557),d=a(1469),b=a(39601);function S(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?d(g)?v(g[0],g[1]):c(g):b(g)}h.exports=S},280:(h,I,a)=>{var c=a(25726),v=a(86916),x=Object.prototype,d=x.hasOwnProperty;function b(S){if(!c(S))return v(S);var g=[];for(var L in Object(S))d.call(S,L)&&L!="constructor"&&g.push(L);return g}h.exports=b},10313:(h,I,a)=>{var c=a(13218),v=a(25726),x=a(33498),d=Object.prototype,b=d.hasOwnProperty;function S(g){if(!c(g))return x(g);var L=v(g),D=[];for(var B in g)B=="constructor"&&(L||!b.call(g,B))||D.push(B);return D}h.exports=S},91573:(h,I,a)=>{var c=a(2958),v=a(1499),x=a(42634);function d(b){var S=v(b);return S.length==1&&S[0][2]?x(S[0][0],S[0][1]):function(g){return g===b||c(g,b,S)}}h.exports=d},16432:(h,I,a)=>{var c=a(90939),v=a(27361),x=a(79095),d=a(15403),b=a(89162),S=a(42634),g=a(40327),L=1,D=2;function B(j,q){return d(j)&&b(q)?S(g(j),q):function(W){var M=v(W,j);return M===void 0&&M===q?x(W,j):c(q,M,L|D)}}h.exports=B},25970:(h,I,a)=>{var c=a(63012),v=a(79095);function x(d,b){return c(d,b,function(S,g){return v(d,g)})}h.exports=x},63012:(h,I,a)=>{var c=a(97786),v=a(10611),x=a(71811);function d(b,S,g){for(var L=-1,D=S.length,B={};++L<D;){var j=S[L],q=c(b,j);g(q,j)&&v(B,x(j,b),q)}return B}h.exports=d},40371:h=>{function I(a){return function(c){return c==null?void 0:c[a]}}h.exports=I},79152:(h,I,a)=>{var c=a(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,a)=>{var c=a(6557),v=a(45357),x=a(30061);function d(b,S){return x(v(b,S,c),b+"")}h.exports=d},10611:(h,I,a)=>{var c=a(34865),v=a(71811),x=a(65776),d=a(13218),b=a(40327);function S(g,L,D,B){if(!d(g))return g;L=v(L,g);for(var j=-1,q=L.length,W=q-1,M=g;M!=null&&++j<q;){var X=b(L[j]),R=D;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=W){var C=M[X];R=B?B(C,X,M):void 0,R===void 0&&(R=d(C)?C:x(L[j+1])?[]:{})}c(M,X,R),M=M[X]}return g}h.exports=S},56560:(h,I,a)=>{var c=a(75703),v=a(38777),x=a(6557),d=v?function(b,S){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(S),writable:!0})}:x;h.exports=d},22545:h=>{function I(a,c){for(var v=-1,x=Array(a);++v<a;)x[v]=c(v);return x}h.exports=I},80531:(h,I,a)=>{var c=a(62705),v=a(29932),x=a(1469),d=a(33448),b=1/0,S=c?c.prototype:void 0,g=S?S.toString:void 0;function L(D){if(typeof D=="string")return D;if(x(D))return v(D,L)+"";if(d(D))return g?g.call(D):"";var B=D+"";return B=="0"&&1/D==-b?"-0":B}h.exports=L},27561:(h,I,a)=>{var c=a(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(a){return function(c){return a(c)}}h.exports=I},74757:h=>{function I(a,c){return a.has(c)}h.exports=I},71811:(h,I,a)=>{var c=a(1469),v=a(15403),x=a(55514),d=a(79833);function b(S,g){return c(S)?S:v(S,g)?[S]:x(d(S))}h.exports=b},74318:(h,I,a)=>{var c=a(11149);function v(x){var d=new x.constructor(x.byteLength);return new c(d).set(new c(x)),d}h.exports=v},64626:(h,I,a)=>{h=a.nmd(h);var c=a(55639),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d?c.Buffer:void 0,S=b?b.allocUnsafe:void 0;function g(L,D){if(D)return L.slice();var B=L.length,j=S?S(B):new L.constructor(B);return L.copy(j),j}h.exports=g},57157:(h,I,a)=>{var c=a(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}h.exports=v},93147:h=>{var I=/\w*$/;function a(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=a},40419:(h,I,a)=>{var c=a(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function d(b){return x?Object(x.call(b)):{}}h.exports=d},77133:(h,I,a)=>{var c=a(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}h.exports=v},278:h=>{function I(a,c){var v=-1,x=a.length;for(c||(c=Array(x));++v<x;)c[v]=a[v];return c}h.exports=I},98363:(h,I,a)=>{var c=a(34865),v=a(89465);function x(d,b,S,g){var L=!S;S||(S={});for(var D=-1,B=b.length;++D<B;){var j=b[D],q=g?g(S[j],d[j],j,S,d):void 0;q===void 0&&(q=d[j]),L?v(S,j,q):c(S,j,q)}return S}h.exports=x},18805:(h,I,a)=>{var c=a(98363),v=a(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,a)=>{var c=a(98363),v=a(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,a)=>{var c=a(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,a)=>{var c=a(5976),v=a(16612);function x(d){return c(function(b,S){var g=-1,L=S.length,D=L>1?S[L-1]:void 0,B=L>2?S[2]:void 0;for(D=d.length>3&&typeof D=="function"?(L--,D):void 0,B&&v(S[0],S[1],B)&&(D=L<3?void 0:D,L=1),b=Object(b);++g<L;){var j=S[g];j&&d(b,j,g,D)}return b})}h.exports=x},67740:(h,I,a)=>{var c=a(67206),v=a(98612),x=a(3674);function d(b){return function(S,g,L){var D=Object(S);if(!v(S)){var B=c(g,3);S=x(S),g=function(q){return B(D[q],q,D)}}var j=b(S,g,L);return j>-1?D[B?S[j]:j]:void 0}}h.exports=d},38777:(h,I,a)=>{var c=a(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,a)=>{var c=a(88668),v=a(82908),x=a(74757),d=1,b=2;function S(g,L,D,B,j,q){var W=D&d,M=g.length,X=L.length;if(M!=X&&!(W&&X>M))return!1;var R=q.get(g),C=q.get(L);if(R&&C)return R==L&&C==g;var V=-1,J=!0,_=D&b?new c:void 0;for(q.set(g,L),q.set(L,g);++V<M;){var Q=g[V],Y=L[V];if(B)var fe=W?B(Y,Q,V,L,g,q):B(Q,Y,V,g,L,q);if(fe!==void 0){if(fe)continue;J=!1;break}if(_){if(!v(L,function(ee,ie){if(!x(_,ie)&&(Q===ee||j(Q,ee,D,B,q)))return _.push(ie)})){J=!1;break}}else if(!(Q===Y||j(Q,Y,D,B,q))){J=!1;break}}return q.delete(g),q.delete(L),J}h.exports=S},18351:(h,I,a)=>{var c=a(62705),v=a(11149),x=a(77813),d=a(67114),b=a(68776),S=a(21814),g=1,L=2,D="[object Boolean]",B="[object Date]",j="[object Error]",q="[object Map]",W="[object Number]",M="[object RegExp]",X="[object Set]",R="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",_=c?c.prototype:void 0,Q=_?_.valueOf:void 0;function Y(fe,ee,ie,ye,be,he,ue){switch(ie){case J:if(fe.byteLength!=ee.byteLength||fe.byteOffset!=ee.byteOffset)return!1;fe=fe.buffer,ee=ee.buffer;case V:return!(fe.byteLength!=ee.byteLength||!he(new v(fe),new v(ee)));case D:case B:case W:return x(+fe,+ee);case j:return fe.name==ee.name&&fe.message==ee.message;case M:case R:return fe==ee+"";case q:var oe=b;case X:var Fe=ye&g;if(oe||(oe=S),fe.size!=ee.size&&!Fe)return!1;var Le=ue.get(fe);if(Le)return Le==ee;ye|=L,ue.set(fe,ee);var Me=d(oe(fe),oe(ee),ye,be,he,ue);return ue.delete(fe),Me;case C:if(Q)return Q.call(fe)==Q.call(ee)}return!1}h.exports=Y},16096:(h,I,a)=>{var c=a(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L,D,B,j){var q=L&v,W=c(S),M=W.length,X=c(g),R=X.length;if(M!=R&&!q)return!1;for(var C=M;C--;){var V=W[C];if(!(q?V in g:d.call(g,V)))return!1}var J=j.get(S),_=j.get(g);if(J&&_)return J==g&&_==S;var Q=!0;j.set(S,g),j.set(g,S);for(var Y=q;++C<M;){V=W[C];var fe=S[V],ee=g[V];if(D)var ie=q?D(ee,fe,V,g,S,j):D(fe,ee,V,S,g,j);if(!(ie===void 0?fe===ee||B(fe,ee,L,D,j):ie)){Q=!1;break}Y||(Y=V=="constructor")}if(Q&&!Y){var ye=S.constructor,be=g.constructor;ye!=be&&"constructor"in S&&"constructor"in g&&!(typeof ye=="function"&&ye instanceof ye&&typeof be=="function"&&be instanceof be)&&(Q=!1)}return j.delete(S),j.delete(g),Q}h.exports=b},99021:(h,I,a)=>{var c=a(85564),v=a(45357),x=a(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,a)=>{var c=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g;h.exports=c},58234:(h,I,a)=>{var c=a(68866),v=a(99551),x=a(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,a)=>{var c=a(68866),v=a(51442),x=a(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,a)=>{var c=a(37019);function v(x,d){var b=x.__data__;return c(d)?b[typeof d=="string"?"string":"hash"]:b.map}h.exports=v},1499:(h,I,a)=>{var c=a(89162),v=a(3674);function x(d){for(var b=v(d),S=b.length;S--;){var g=b[S],L=d[g];b[S]=[g,L,c(L)]}return b}h.exports=x},10852:(h,I,a)=>{var c=a(28458),v=a(47801);function x(d,b){var S=v(d,b);return c(S)?S:void 0}h.exports=x},85924:(h,I,a)=>{var c=a(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,a)=>{var c=a(62705),v=Object.prototype,x=v.hasOwnProperty,d=v.toString,b=c?c.toStringTag:void 0;function S(g){var L=x.call(g,b),D=g[b];try{g[b]=void 0;var B=!0}catch(q){}var j=d.call(g);return B&&(L?g[b]=D:delete g[b]),j}h.exports=S},99551:(h,I,a)=>{var c=a(34963),v=a(70479),x=Object.prototype,d=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,S=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return d.call(g,L)}))}:v;h.exports=S},51442:(h,I,a)=>{var c=a(62488),v=a(85924),x=a(99551),d=a(70479),b=Object.getOwnPropertySymbols,S=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:d;h.exports=S},98882:(h,I,a)=>{var c=a(18552),v=a(57071),x=a(53818),d=a(58525),b=a(70577),S=a(44239),g=a(80346),L="[object Map]",D="[object Object]",B="[object Promise]",j="[object Set]",q="[object WeakMap]",W="[object DataView]",M=g(c),X=g(v),R=g(x),C=g(d),V=g(b),J=S;(c&&J(new c(new ArrayBuffer(1)))!=W||v&&J(new v)!=L||x&&J(x.resolve())!=B||d&&J(new d)!=j||b&&J(new b)!=q)&&(J=function(_){var Q=S(_),Y=Q==D?_.constructor:void 0,fe=Y?g(Y):"";if(fe)switch(fe){case M:return W;case X:return L;case R:return B;case C:return j;case V:return q}return Q}),h.exports=J},47801:h=>{function I(a,c){return a==null?void 0:a[c]}h.exports=I},222:(h,I,a)=>{var c=a(71811),v=a(35694),x=a(1469),d=a(65776),b=a(41780),S=a(40327);function g(L,D,B){D=c(D,L);for(var j=-1,q=D.length,W=!1;++j<q;){var M=S(D[j]);if(!(W=L!=null&&B(L,M)))break;L=L[M]}return W||++j!=q?W:(q=L==null?0:L.length,!!q&&b(q)&&d(M,q)&&(x(L)||v(L)))}h.exports=g},51789:(h,I,a)=>{var c=a(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__",x=Object.prototype,d=x.hasOwnProperty;function b(S){var g=this.__data__;if(c){var L=g[S];return L===v?void 0:L}return d.call(g,S)?g[S]:void 0}h.exports=b},21327:(h,I,a)=>{var c=a(94536),v=Object.prototype,x=v.hasOwnProperty;function d(b){var S=this.__data__;return c?S[b]!==void 0:x.call(S,b)}h.exports=d},81866:(h,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__";function x(d,b){var S=this.__data__;return this.size+=this.has(d)?0:1,S[d]=c&&b===void 0?v:b,this}h.exports=x},43824:h=>{var I=Object.prototype,a=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&a.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,a)=>{var c=a(74318),v=a(57157),x=a(93147),d=a(40419),b=a(77133),S="[object Boolean]",g="[object Date]",L="[object Map]",D="[object Number]",B="[object RegExp]",j="[object Set]",q="[object String]",W="[object Symbol]",M="[object ArrayBuffer]",X="[object DataView]",R="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",_="[object Int32Array]",Q="[object Uint8Array]",Y="[object Uint8ClampedArray]",fe="[object Uint16Array]",ee="[object Uint32Array]";function ie(ye,be,he){var ue=ye.constructor;switch(be){case M:return c(ye);case S:case g:return new ue(+ye);case X:return v(ye,he);case R:case C:case V:case J:case _:case Q:case Y:case fe:case ee:return b(ye,he);case L:return new ue;case D:case q:return new ue(ye);case B:return x(ye);case j:return new ue;case W:return d(ye)}}h.exports=ie},38517:(h,I,a)=>{var c=a(3118),v=a(85924),x=a(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,a)=>{var c=a(62705),v=a(35694),x=a(1469),d=c?c.isConcatSpreadable:void 0;function b(S){return x(S)||v(S)||!!(d&&S&&S[d])}h.exports=b},65776:h=>{var I=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&a.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,a)=>{var c=a(77813),v=a(98612),x=a(65776),d=a(13218);function b(S,g,L){if(!d(L))return!1;var D=typeof g;return(D=="number"?v(L)&&x(g,L.length):D=="string"&&g in L)?c(L[g],S):!1}h.exports=b},15403:(h,I,a)=>{var c=a(1469),v=a(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function b(S,g){if(c(S))return!1;var L=typeof S;return L=="number"||L=="symbol"||L=="boolean"||S==null||v(S)?!0:d.test(S)||!x.test(S)||g!=null&&S in Object(g)}h.exports=b},37019:h=>{function I(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}h.exports=I},15346:(h,I,a)=>{var c=a(14429),v=function(){var d=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}();function x(d){return!!v&&v in d}h.exports=x},25726:h=>{var I=Object.prototype;function a(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=a},89162:(h,I,a)=>{var c=a(13218);function v(x){return x===x&&!c(x)}h.exports=v},27040:h=>{function I(){this.__data__=[],this.size=0}h.exports=I},14125:(h,I,a)=>{var c=a(18470),v=Array.prototype,x=v.splice;function d(b){var S=this.__data__,g=c(S,b);if(g<0)return!1;var L=S.length-1;return g==L?S.pop():x.call(S,g,1),--this.size,!0}h.exports=d},82117:(h,I,a)=>{var c=a(18470);function v(x){var d=this.__data__,b=c(d,x);return b<0?void 0:d[b][1]}h.exports=v},67518:(h,I,a)=>{var c=a(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,a)=>{var c=a(18470);function v(x,d){var b=this.__data__,S=c(b,x);return S<0?(++this.size,b.push([x,d])):b[S][1]=d,this}h.exports=v},24785:(h,I,a)=>{var c=a(1989),v=a(38407),x=a(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,a)=>{var c=a(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,a)=>{var c=a(45050);function v(x,d){var b=c(this,x),S=b.size;return b.set(x,d),this.size+=b.size==S?0:1,this}h.exports=v},68776:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(a,c){return function(v){return v==null?!1:v[a]===c&&(c!==void 0||a in Object(v))}}h.exports=I},24523:(h,I,a)=>{var c=a(88306),v=500;function x(d){var b=c(d,function(g){return S.size===v&&S.clear(),g}),S=b.cache;return b}h.exports=x},94536:(h,I,a)=>{var c=a(10852),v=c(Object,"create");h.exports=v},86916:(h,I,a)=>{var c=a(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(a){var c=[];if(a!=null)for(var v in Object(a))c.push(v);return c}h.exports=I},31167:(h,I,a)=>{h=a.nmd(h);var c=a(31957),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d&&c.process,S=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();h.exports=S},2333:h=>{var I=Object.prototype,a=I.toString;function c(v){return a.call(v)}h.exports=c},5569:h=>{function I(a,c){return function(v){return a(c(v))}}h.exports=I},45357:(h,I,a)=>{var c=a(96874),v=Math.max;function x(d,b,S){return b=v(b===void 0?d.length-1:b,0),function(){for(var g=arguments,L=-1,D=v(g.length-b,0),B=Array(D);++L<D;)B[L]=g[b+L];L=-1;for(var j=Array(b+1);++L<b;)j[L]=g[L];return j[b]=S(B),c(d,this,j)}}h.exports=x},55639:(h,I,a)=>{var c=a(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();h.exports=x},90619:h=>{var I="__lodash_hash_undefined__";function a(c){return this.__data__.set(c,I),this}h.exports=a},72385:h=>{function I(a){return this.__data__.has(a)}h.exports=I},21814:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,a)=>{var c=a(56560),v=a(21275),x=v(c);h.exports=x},21275:h=>{var I=800,a=16,c=Date.now;function v(x){var d=0,b=0;return function(){var S=c(),g=a-(S-b);if(b=S,g>0){if(++d>=I)return arguments[0]}else d=0;return x.apply(void 0,arguments)}}h.exports=v},37465:(h,I,a)=>{var c=a(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(a){var c=this.__data__,v=c.delete(a);return this.size=c.size,v}h.exports=I},67599:h=>{function I(a){return this.__data__.get(a)}h.exports=I},44758:h=>{function I(a){return this.__data__.has(a)}h.exports=I},34309:(h,I,a)=>{var c=a(38407),v=a(57071),x=a(83369),d=200;function b(S,g){var L=this.__data__;if(L instanceof c){var D=L.__data__;if(!v||D.length<d-1)return D.push([S,g]),this.size=++L.size,this;L=this.__data__=new x(D)}return L.set(S,g),this.size=L.size,this}h.exports=b},55514:(h,I,a)=>{var c=a(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,d=c(function(b){var S=[];return b.charCodeAt(0)===46&&S.push(""),b.replace(v,function(g,L,D,B){S.push(D?B.replace(x,"$1"):L||g)}),S});h.exports=d},40327:(h,I,a)=>{var c=a(33448),v=1/0;function x(d){if(typeof d=="string"||c(d))return d;var b=d+"";return b=="0"&&1/d==-v?"-0":b}h.exports=x},80346:h=>{var I=Function.prototype,a=I.toString;function c(v){if(v!=null){try{return a.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function a(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=a},28583:(h,I,a)=>{var c=a(34865),v=a(98363),x=a(21463),d=a(98612),b=a(25726),S=a(3674),g=Object.prototype,L=g.hasOwnProperty,D=x(function(B,j){if(b(j)||d(j)){v(j,S(j),B);return}for(var q in j)L.call(j,q)&&c(B,q,j[q])});h.exports=D},50361:(h,I,a)=>{var c=a(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(a){return function(){return a}}h.exports=I},77813:h=>{function I(a,c){return a===c||a!==a&&c!==c}h.exports=I},13311:(h,I,a)=>{var c=a(67740),v=a(30998),x=c(v);h.exports=x},30998:(h,I,a)=>{var c=a(41848),v=a(67206),x=a(40554),d=Math.max;function b(S,g,L){var D=S==null?0:S.length;if(!D)return-1;var B=L==null?0:x(L);return B<0&&(B=d(D+B,0)),c(S,v(g,3),B)}h.exports=b},85564:(h,I,a)=>{var c=a(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,a)=>{var c=a(97786);function v(x,d,b){var S=x==null?void 0:c(x,d);return S===void 0?b:S}h.exports=v},79095:(h,I,a)=>{var c=a(13),v=a(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(a){return a}h.exports=I},35694:(h,I,a)=>{var c=a(9454),v=a(37005),x=Object.prototype,d=x.hasOwnProperty,b=x.propertyIsEnumerable,S=c(function(){return arguments}())?c:function(g){return v(g)&&d.call(g,"callee")&&!b.call(g,"callee")};h.exports=S},1469:h=>{var I=Array.isArray;h.exports=I},98612:(h,I,a)=>{var c=a(23560),v=a(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,a)=>{h=a.nmd(h);var c=a(55639),v=a(95062),x=I&&!I.nodeType&&I,d=x&&!0&&h&&!h.nodeType&&h,b=d&&d.exports===x,S=b?c.Buffer:void 0,g=S?S.isBuffer:void 0,L=g||v;h.exports=L},41609:(h,I,a)=>{var c=a(280),v=a(98882),x=a(35694),d=a(1469),b=a(98612),S=a(44144),g=a(25726),L=a(36719),D="[object Map]",B="[object Set]",j=Object.prototype,q=j.hasOwnProperty;function W(M){if(M==null)return!0;if(b(M)&&(d(M)||typeof M=="string"||typeof M.splice=="function"||S(M)||L(M)||x(M)))return!M.length;var X=v(M);if(X==D||X==B)return!M.size;if(g(M))return!c(M).length;for(var R in M)if(q.call(M,R))return!1;return!0}h.exports=W},23560:(h,I,a)=>{var c=a(44239),v=a(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",S="[object Proxy]";function g(L){if(!v(L))return!1;var D=c(L);return D==d||D==b||D==x||D==S}h.exports=g},41780:h=>{var I=9007199254740991;function a(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=a},56688:(h,I,a)=>{var c=a(25588),v=a(7518),x=a(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(a){return a!=null&&typeof a=="object"}h.exports=I},68630:(h,I,a)=>{var c=a(44239),v=a(85924),x=a(37005),d="[object Object]",b=Function.prototype,S=Object.prototype,g=b.toString,L=S.hasOwnProperty,D=g.call(Object);function B(j){if(!x(j)||c(j)!=d)return!1;var q=v(j);if(q===null)return!0;var W=L.call(q,"constructor")&&q.constructor;return typeof W=="function"&&W instanceof W&&g.call(W)==D}h.exports=B},72928:(h,I,a)=>{var c=a(29221),v=a(7518),x=a(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,a)=>{var c=a(44239),v=a(1469),x=a(37005),d="[object String]";function b(S){return typeof S=="string"||!v(S)&&x(S)&&c(S)==d}h.exports=b},33448:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,a)=>{var c=a(38749),v=a(7518),x=a(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,a)=>{var c=a(14636),v=a(280),x=a(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,a)=>{var c=a(14636),v=a(10313),x=a(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,a)=>{var c=a(83369),v="Expected a function";function x(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var S=function(){var g=arguments,L=b?b.apply(this,g):g[0],D=S.cache;if(D.has(L))return D.get(L);var B=d.apply(this,g);return S.cache=D.set(L,B)||D,B};return S.cache=new(x.Cache||c),S}x.Cache=c,h.exports=x},50308:h=>{function I(){}h.exports=I},78718:(h,I,a)=>{var c=a(25970),v=a(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,a)=>{var c=a(40371),v=a(79152),x=a(15403),d=a(40327);function b(S){return x(S)?c(d(S)):v(S)}h.exports=b},10240:(h,I,a)=>{var c=a(29750),v=a(80531),x=a(40554),d=a(79833);function b(S,g,L){return S=d(S),L=L==null?0:c(x(L),0,S.length),g=v(g),S.slice(L,L+g.length)==g}h.exports=b},70479:h=>{function I(){return[]}h.exports=I},95062:h=>{function I(){return!1}h.exports=I},18601:(h,I,a)=>{var c=a(14841),v=1/0,x=17976931348623157e292;function d(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var S=b<0?-1:1;return S*x}return b===b?b:0}h.exports=d},40554:(h,I,a)=>{var c=a(18601);function v(x){var d=c(x),b=d%1;return d===d?b?d-b:d:0}h.exports=v},14841:(h,I,a)=>{var c=a(27561),v=a(13218),x=a(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function D(B){if(typeof B=="number")return B;if(x(B))return d;if(v(B)){var j=typeof B.valueOf=="function"?B.valueOf():B;B=v(j)?j+"":j}if(typeof B!="string")return B===0?B:+B;B=c(B);var q=S.test(B);return q||g.test(B)?L(B.slice(2),q?2:8):b.test(B)?d:+B}h.exports=D},79833:(h,I,a)=>{var c=a(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,a)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,x=c&&v&&typeof v.get=="function"?v.get:null,d=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,S=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,g=b&&S&&typeof S.get=="function"?S.get:null,L=b&&Set.prototype.forEach,D=typeof WeakMap=="function"&&WeakMap.prototype,B=D?WeakMap.prototype.has:null,j=typeof WeakSet=="function"&&WeakSet.prototype,q=j?WeakSet.prototype.has:null,W=typeof WeakRef=="function"&&WeakRef.prototype,M=W?WeakRef.prototype.deref:null,X=Boolean.prototype.valueOf,R=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=String.prototype.slice,_=String.prototype.replace,Q=String.prototype.toUpperCase,Y=String.prototype.toLowerCase,fe=RegExp.prototype.test,ee=Array.prototype.concat,ie=Array.prototype.join,ye=Array.prototype.slice,be=Math.floor,he=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ue=Object.getOwnPropertySymbols,oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe?"object":"symbol")?Symbol.toStringTag:null,Me=Object.prototype.propertyIsEnumerable,Pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function rt(ae,pe){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||fe.call(/e/,pe))return pe;var Ae=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var Be=ae<0?-be(-ae):be(ae);if(Be!==ae){var Ue=String(Be),Qe=J.call(pe,Ue.length+1);return _.call(Ue,Ae,"$&_")+"."+_.call(_.call(Qe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(pe,Ae,"$&_")}var Ze=a(24654),Xe=Ze.custom,ft=Et(Xe)?Xe:null;h.exports=function ae(pe,Ae,Be,Ue){var Qe=Ae||{};if(Vt(Qe,"quoteStyle")&&Qe.quoteStyle!=="single"&&Qe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Vt(Qe,"maxStringLength")&&(typeof Qe.maxStringLength=="number"?Qe.maxStringLength<0&&Qe.maxStringLength!==1/0:Qe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var vt=Vt(Qe,"customInspect")?Qe.customInspect:!0;if(typeof vt!="boolean"&&vt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Vt(Qe,"indent")&&Qe.indent!==null&&Qe.indent!==" "&&!(parseInt(Qe.indent,10)===Qe.indent&&Qe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Vt(Qe,"numericSeparator")&&typeof Qe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var At=Qe.numericSeparator;if(typeof pe=="undefined")return"undefined";if(pe===null)return"null";if(typeof pe=="boolean")return pe?"true":"false";if(typeof pe=="string")return P(pe,Qe);if(typeof pe=="number"){if(pe===0)return 1/0/pe>0?"0":"-0";var Bt=String(pe);return At?rt(pe,Bt):Bt}if(typeof pe=="bigint"){var Pt=String(pe)+"n";return At?rt(pe,Pt):Pt}var dn=typeof Qe.depth=="undefined"?5:Qe.depth;if(typeof Be=="undefined"&&(Be=0),Be>=dn&&dn>0&&typeof pe=="object")return nt(pe)?"[Array]":"[Object]";var Br=N(Qe,Be);if(typeof Ue=="undefined")Ue=[];else if(ve(Ue,pe)>=0)return"[Circular]";function Cr(Ur,Kr,Qn){if(Kr&&(Ue=ye.call(Ue),Ue.push(Kr)),Qn){var fr={depth:Qe.depth};return Vt(Qe,"quoteStyle")&&(fr.quoteStyle=Qe.quoteStyle),ae(Ur,fr,Be+1,Ue)}return ae(Ur,Qe,Be+1,Ue)}if(typeof pe=="function"&&!yt(pe)){var bi=Dt(pe),Gr=de(pe,Cr);return"[Function"+(bi?": "+bi:" (anonymous)")+"]"+(Gr.length>0?" { "+ie.call(Gr,", ")+" }":"")}if(Et(pe)){var ji=Fe?_.call(String(pe),/^(Symbol\(.*\))_[^)]*$/,"$1"):oe.call(pe);return typeof pe=="object"&&!Fe?K(ji):ji}if(Ke(pe)){for(var Nn="<"+Y.call(String(pe.nodeName)),pn=pe.attributes||[],On=0;On<pn.length;On++)Nn+=" "+pn[On].name+"="+ht(bt(pn[On].value),"double",Qe);return Nn+=">",pe.childNodes&&pe.childNodes.length&&(Nn+="..."),Nn+="</"+Y.call(String(pe.nodeName))+">",Nn}if(nt(pe)){if(pe.length===0)return"[]";var $r=de(pe,Cr);return Br&&!se($r)?"["+te($r,Br)+"]":"[ "+ie.call($r,", ")+" ]"}if(mt(pe)){var wi=de(pe,Cr);return!("cause"in Error.prototype)&&"cause"in pe&&!Me.call(pe,"cause")?"{ ["+String(pe)+"] "+ie.call(ee.call("[cause]: "+Cr(pe.cause),wi),", ")+" }":wi.length===0?"["+String(pe)+"]":"{ ["+String(pe)+"] "+ie.call(wi,", ")+" }"}if(typeof pe=="object"&&vt){if(ft&&typeof pe[ft]=="function"&&Ze)return Ze(pe,{depth:dn-Be});if(vt!=="symbol"&&typeof pe.inspect=="function")return pe.inspect()}if(z(pe)){var Si=[];return d.call(pe,function(Ur,Kr){Si.push(Cr(Kr,pe,!0)+" => "+Cr(Ur,pe))}),O("Map",x.call(pe),Si,Br)}if(Ie(pe)){var en=[];return L.call(pe,function(Ur){en.push(Cr(Ur,pe))}),O("Set",g.call(pe),en,Br)}if($(pe))return T("WeakMap");if(Ge(pe))return T("WeakSet");if(Se(pe))return T("WeakRef");if(Mt(pe))return K(Cr(Number(pe)));if(Ht(pe))return K(Cr(he.call(pe)));if(kt(pe))return K(X.call(pe));if(pt(pe))return K(Cr(String(pe)));if(!ut(pe)&&!yt(pe)){var hn=de(pe,Cr),Bn=Pe?Pe(pe)===Object.prototype:pe instanceof Object||pe.constructor===Object,Un=pe instanceof Object?"":"null prototype",vn=!Bn&&Le&&Object(pe)===pe&&Le in pe?J.call(wt(pe),8,-1):Un?"Object":"",Xn=Bn||typeof pe.constructor!="function"?"":pe.constructor.name?pe.constructor.name+" ":"",Ai=Xn+(vn||Un?"["+ie.call(ee.call([],vn||[],Un||[]),": ")+"] ":"");return hn.length===0?Ai+"{}":Br?Ai+"{"+te(hn,Br)+"}":Ai+"{ "+ie.call(hn,", ")+" }"}return String(pe)};function ht(ae,pe,Ae){var Be=(Ae.quoteStyle||pe)==="double"?'"':"'";return Be+ae+Be}function bt(ae){return _.call(String(ae),/"/g,"&quot;")}function nt(ae){return wt(ae)==="[object Array]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function ut(ae){return wt(ae)==="[object Date]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function yt(ae){return wt(ae)==="[object RegExp]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function mt(ae){return wt(ae)==="[object Error]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function pt(ae){return wt(ae)==="[object String]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function Mt(ae){return wt(ae)==="[object Number]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function kt(ae){return wt(ae)==="[object Boolean]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function Et(ae){if(Fe)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!oe)return!1;try{return oe.call(ae),!0}catch(pe){}return!1}function Ht(ae){if(!ae||typeof ae!="object"||!he)return!1;try{return he.call(ae),!0}catch(pe){}return!1}var jt=Object.prototype.hasOwnProperty||function(ae){return ae in this};function Vt(ae,pe){return jt.call(ae,pe)}function wt(ae){return R.call(ae)}function Dt(ae){if(ae.name)return ae.name;var pe=V.call(C.call(ae),/^function\s*([\w$]+)/);return pe?pe[1]:null}function ve(ae,pe){if(ae.indexOf)return ae.indexOf(pe);for(var Ae=0,Be=ae.length;Ae<Be;Ae++)if(ae[Ae]===pe)return Ae;return-1}function z(ae){if(!x||!ae||typeof ae!="object")return!1;try{x.call(ae);try{g.call(ae)}catch(pe){return!0}return ae instanceof Map}catch(pe){}return!1}function $(ae){if(!B||!ae||typeof ae!="object")return!1;try{B.call(ae,B);try{q.call(ae,q)}catch(pe){return!0}return ae instanceof WeakMap}catch(pe){}return!1}function Se(ae){if(!M||!ae||typeof ae!="object")return!1;try{return M.call(ae),!0}catch(pe){}return!1}function Ie(ae){if(!g||!ae||typeof ae!="object")return!1;try{g.call(ae);try{x.call(ae)}catch(pe){return!0}return ae instanceof Set}catch(pe){}return!1}function Ge(ae){if(!q||!ae||typeof ae!="object")return!1;try{q.call(ae,q);try{B.call(ae,B)}catch(pe){return!0}return ae instanceof WeakSet}catch(pe){}return!1}function Ke(ae){return!ae||typeof ae!="object"?!1:typeof HTMLElement!="undefined"&&ae instanceof HTMLElement?!0:typeof ae.nodeName=="string"&&typeof ae.getAttribute=="function"}function P(ae,pe){if(ae.length>pe.maxStringLength){var Ae=ae.length-pe.maxStringLength,Be="... "+Ae+" more character"+(Ae>1?"s":"");return P(J.call(ae,0,pe.maxStringLength),pe)+Be}var Ue=_.call(_.call(ae,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Re);return ht(Ue,"single",pe)}function Re(ae){var pe=ae.charCodeAt(0),Ae={8:"b",9:"t",10:"n",12:"f",13:"r"}[pe];return Ae?"\\"+Ae:"\\x"+(pe<16?"0":"")+Q.call(pe.toString(16))}function K(ae){return"Object("+ae+")"}function T(ae){return ae+" { ? }"}function O(ae,pe,Ae,Be){var Ue=Be?te(Ae,Be):ie.call(Ae,", ");return ae+" ("+pe+") {"+Ue+"}"}function se(ae){for(var pe=0;pe<ae.length;pe++)if(ve(ae[pe],`
496
+ `)>=0)return!1;return!0}function N(ae,pe){var Ae;if(ae.indent===" ")Ae=" ";else if(typeof ae.indent=="number"&&ae.indent>0)Ae=ie.call(Array(ae.indent+1)," ");else return null;return{base:Ae,prev:ie.call(Array(pe+1),Ae)}}function te(ae,pe){if(ae.length===0)return"";var Ae=`
497
+ `+pe.prev+pe.base;return Ae+ie.call(ae,","+Ae)+`
498
+ `+pe.prev}function de(ae,pe){var Ae=nt(ae),Be=[];if(Ae){Be.length=ae.length;for(var Ue=0;Ue<ae.length;Ue++)Be[Ue]=Vt(ae,Ue)?pe(ae[Ue],ae):""}var Qe=typeof ue=="function"?ue(ae):[],vt;if(Fe){vt={};for(var At=0;At<Qe.length;At++)vt["$"+Qe[At]]=Qe[At]}for(var Bt in ae)!Vt(ae,Bt)||Ae&&String(Number(Bt))===Bt&&Bt<ae.length||Fe&&vt["$"+Bt]instanceof Symbol||(fe.call(/[^\w$]/,Bt)?Be.push(pe(Bt,ae)+": "+pe(ae[Bt],ae)):Be.push(Bt+": "+pe(ae[Bt],ae)));if(typeof ue=="function")for(var Pt=0;Pt<Qe.length;Pt++)Me.call(ae,Qe[Pt])&&Be.push("["+pe(Qe[Pt])+"]: "+pe(ae[Qe[Pt]],ae));return Be}},9779:(h,I,a)=>{"use strict";var c=I,v=a(48764).Buffer;c.unescapeBuffer=function(L,D){for(var B=new v(L.length),j=0,q,W,M,X=0,R=0;X<=L.length;X++){var C=X<L.length?L.charCodeAt(X):NaN;switch(j){case 0:switch(C){case 37:q=0,W=0,j=1;break;case 43:D&&(C=32);default:B[R++]=C;break}break;case 1:if(M=C,C>=48&&C<=57)q=C-48;else if(C>=65&&C<=70)q=C-65+10;else if(C>=97&&C<=102)q=C-97+10;else{B[R++]=37,B[R++]=C,j=0;break}j=2;break;case 2:if(j=0,C>=48&&C<=57)W=C-48;else if(C>=65&&C<=70)W=C-65+10;else if(C>=97&&C<=102)W=C-97+10;else{B[R++]=37,B[R++]=M,B[R++]=C;break}B[R++]=16*q+W;break}}return B.slice(0,R-1)};function x(L,D){try{return decodeURIComponent(L)}catch(B){return c.unescapeBuffer(L,D).toString()}}c.unescape=x;for(var d=new Array(256),b=0;b<256;++b)d[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var D="",B=0,j=0;j<L.length;++j){var q=L.charCodeAt(j);if(!(q===33||q===45||q===46||q===95||q===126||q>=39&&q<=42||q>=48&&q<=57||q>=65&&q<=90||q>=97&&q<=122)){if(j-B>0&&(D+=L.slice(B,j)),q<128){B=j+1,D+=d[q];continue}if(q<2048){B=j+1,D+=d[192|q>>6]+d[128|q&63];continue}if(q<55296||q>=57344){B=j+1,D+=d[224|q>>12]+d[128|q>>6&63]+d[128|q&63];continue}++j;var W;if(j<L.length)W=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,q=65536+((q&1023)<<10|W),D+=d[240|q>>18]+d[128|q>>12&63]+d[128|q>>6&63]+d[128|q&63]}}return B===0?L:B<L.length?D+L.slice(B):D};var S=function(L){return typeof L=="string"?L:typeof L=="number"&&isFinite(L)?""+L:typeof L=="boolean"?L?"true":"false":""};c.stringify=c.encode=function(L,D,B,j){D=D||"&",B=B||"=";var q=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(q=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var W=Object.keys(L),M=W.length,X=M-1,R="",C=0;C<M;++C){var V=W[C],J=L[V],_=q(S(V))+B;if(Array.isArray(J)){for(var Q=J.length,Y=Q-1,fe=0;fe<Q;++fe)R+=_+q(S(J[fe])),fe<Y&&(R+=D);Q&&C<X&&(R+=D)}else R+=_+q(S(J)),C<X&&(R+=D)}return R}return""},c.parse=c.decode=function(L,D,B,j){D=D||"&",B=B||"=";var q={};if(typeof L!="string"||L.length===0)return q;typeof D!="string"&&(D+="");var W=B.length,M=D.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var R=1/0;X>0&&(R=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],_=0,Q=0,Y=0,fe="",ee="",ie=V,ye=V,be=0,he=0;he<L.length;++he){var ue=L.charCodeAt(he);if(ue===D.charCodeAt(Q)){if(++Q===M){var oe=he-Q+1;if(Y<W?_<oe&&(fe+=L.slice(_,oe)):_<oe&&(ee+=L.slice(_,oe)),ie&&(fe=g(fe,C)),ye&&(ee=g(ee,C)),J.indexOf(fe)===-1)q[fe]=ee,J[J.length]=fe;else{var Fe=q[fe];Fe instanceof Array?Fe[Fe.length]=ee:q[fe]=[Fe,ee]}if(--R==0)break;ie=ye=V,be=0,fe=ee="",_=he+1,Q=Y=0}continue}else Q=0,ye||(ue===37?be=1:be>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++be==3&&(ye=!0):be=0);if(Y<W)if(ue===B.charCodeAt(Y)){if(++Y===W){var oe=he-Y+1;_<oe&&(fe+=L.slice(_,oe)),be=0,_=he+1}continue}else Y=0,ie||(ue===37?be=1:be>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++be==3&&(ie=!0):be=0);ue===43&&(Y<W?(he-_>0&&(fe+=L.slice(_,he)),fe+="%20",ie=!0):(he-_>0&&(ee+=L.slice(_,he)),ee+="%20",ye=!0),_=he+1)}if(R>0&&(_<L.length||Y>0))if(_<L.length&&(Y<W?fe+=L.slice(_):Q<M&&(ee+=L.slice(_))),ie&&(fe=g(fe,C)),ye&&(ee=g(ee,C)),J.indexOf(fe)===-1)q[fe]=ee,J[J.length]=fe;else{var Fe=q[fe];Fe instanceof Array?Fe[Fe.length]=ee:q[fe]=[Fe,ee]}return q};function g(L,D){try{return D(L)}catch(B){return c.unescape(L,!0)}}},35310:(h,I,a)=>{"use strict";var c;function v(){return v=Object.assign||function(q){for(var W=1;W<arguments.length;W++){var M=arguments[W];for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&(q[X]=M[X])}return q},v.apply(this,arguments)}function x(q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(M){return typeof M}:x=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},x(q)}var d=function(){var q=function(M,X){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,C){R.__proto__=C}||function(R,C){for(var V in C)C.hasOwnProperty(V)&&(R[V]=C[V])},q(M,X)};return function(W,M){q(W,M);function X(){this.constructor=W}W.prototype=M===null?Object.create(M):(X.prototype=M.prototype,new X)}}();c={value:!0},c=I.fk=void 0;var b=a(67294),S=typeof navigator=="undefined"||a.g.PREVENT_CODEMIRROR_RENDER===!0,g;S||(g=a(4631));var L=function(){function q(){}return q.equals=function(W,M){var X=this,R=Object.keys,C=x(W),V=x(M);return W&&M&&C==="object"&&C===V?R(W).length===R(M).length&&R(W).every(function(J){return X.equals(W[J],M[J])}):W===M},q}(),D=function(){function q(W,M){this.editor=W,this.props=M}return q.prototype.delegateCursor=function(W,M,X){var R=this.editor.getDoc();X&&this.editor.focus(),M?R.setCursor(W):R.setCursor(W,null,{scroll:!1})},q.prototype.delegateScroll=function(W){this.editor.scrollTo(W.x,W.y)},q.prototype.delegateSelection=function(W,M){var X=this.editor.getDoc();X.setSelections(W),M&&this.editor.focus()},q.prototype.apply=function(W){W&&W.selection&&W.selection.ranges&&this.delegateSelection(W.selection.ranges,W.selection.focus||!1),W&&W.cursor&&this.delegateCursor(W.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1),W&&W.scroll&&this.delegateScroll(W.scroll)},q.prototype.applyNext=function(W,M,X){W&&W.selection&&W.selection.ranges&&M&&M.selection&&M.selection.ranges&&!L.equals(W.selection.ranges,M.selection.ranges)&&this.delegateSelection(M.selection.ranges,M.selection.focus||!1),W&&W.cursor&&M&&M.cursor&&!L.equals(W.cursor,M.cursor)&&this.delegateCursor(X.cursor||M.cursor,M.autoScroll||!1,M.autoCursor||!1),W&&W.scroll&&M&&M.scroll&&!L.equals(W.scroll,M.scroll)&&this.delegateScroll(M.scroll)},q.prototype.applyUserDefined=function(W,M){M&&M.cursor&&this.delegateCursor(M.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1)},q.prototype.wire=function(W){var M=this;Object.keys(W||{}).filter(function(X){return/^on/.test(X)}).forEach(function(X){switch(X){case"onBlur":M.editor.on("blur",function(R,C){M.props.onBlur(M.editor,C)});break;case"onContextMenu":{M.editor.on("contextmenu",function(R,C){M.props.onContextMenu(M.editor,C)});break}case"onCopy":{M.editor.on("copy",function(R,C){M.props.onCopy(M.editor,C)});break}case"onCursor":M.editor.on("cursorActivity",function(R){M.props.onCursor(M.editor,M.editor.getDoc().getCursor())});break;case"onCursorActivity":M.editor.on("cursorActivity",function(R){M.props.onCursorActivity(M.editor)});break;case"onCut":{M.editor.on("cut",function(R,C){M.props.onCut(M.editor,C)});break}case"onDblClick":{M.editor.on("dblclick",function(R,C){M.props.onDblClick(M.editor,C)});break}case"onDragEnter":M.editor.on("dragenter",function(R,C){M.props.onDragEnter(M.editor,C)});break;case"onDragLeave":{M.editor.on("dragleave",function(R,C){M.props.onDragLeave(M.editor,C)});break}case"onDragOver":M.editor.on("dragover",function(R,C){M.props.onDragOver(M.editor,C)});break;case"onDragStart":{M.editor.on("dragstart",function(R,C){M.props.onDragStart(M.editor,C)});break}case"onDrop":M.editor.on("drop",function(R,C){M.props.onDrop(M.editor,C)});break;case"onFocus":M.editor.on("focus",function(R,C){M.props.onFocus(M.editor,C)});break;case"onGutterClick":M.editor.on("gutterClick",function(R,C,V,J){M.props.onGutterClick(M.editor,C,V,J)});break;case"onInputRead":M.editor.on("inputRead",function(R,C){M.props.onInputRead(M.editor,C)});break;case"onKeyDown":M.editor.on("keydown",function(R,C){M.props.onKeyDown(M.editor,C)});break;case"onKeyHandled":M.editor.on("keyHandled",function(R,C,V){M.props.onKeyHandled(M.editor,C,V)});break;case"onKeyPress":M.editor.on("keypress",function(R,C){M.props.onKeyPress(M.editor,C)});break;case"onKeyUp":M.editor.on("keyup",function(R,C){M.props.onKeyUp(M.editor,C)});break;case"onMouseDown":{M.editor.on("mousedown",function(R,C){M.props.onMouseDown(M.editor,C)});break}case"onPaste":{M.editor.on("paste",function(R,C){M.props.onPaste(M.editor,C)});break}case"onRenderLine":{M.editor.on("renderLine",function(R,C,V){M.props.onRenderLine(M.editor,C,V)});break}case"onScroll":M.editor.on("scroll",function(R){M.props.onScroll(M.editor,M.editor.getScrollInfo())});break;case"onSelection":M.editor.on("beforeSelectionChange",function(R,C){M.props.onSelection(M.editor,C)});break;case"onTouchStart":{M.editor.on("touchstart",function(R,C){M.props.onTouchStart(M.editor,C)});break}case"onUpdate":M.editor.on("update",function(R){M.props.onUpdate(M.editor)});break;case"onViewportChange":M.editor.on("viewportChange",function(R,C,V){M.props.onViewportChange(M.editor,C,V)});break}})},q}(),B=function(q){d(W,q);function W(M){var X=q.call(this,M)||this;return S||(X.applied=!1,X.appliedNext=!1,X.appliedUserDefined=!1,X.deferred=null,X.emulating=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1),X}return W.prototype.hydrate=function(M){var X=this,R=M&&M.options?M.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){R.hasOwnProperty(J)&&X.editor.getOption(J)!==C[J]&&(X.editor.setOption(J,C[J]),X.mirror.setOption(J,C[J]))}),this.hydrated||(this.deferred?this.resolveChange(M.value):this.initChange(M.value||"")),this.hydrated=!0},W.prototype.initChange=function(M){this.emulating=!0;var X=this.editor.getDoc(),R=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(M||"",{line:0,ch:0},{line:R,ch:C}),this.mirror.setValue(M),X.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},W.prototype.resolveChange=function(M){this.emulating=!0;var X=this.editor.getDoc();if(this.deferred.origin==="undo"?X.undo():this.deferred.origin==="redo"?X.redo():X.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),M&&M!==X.getValue()){var R=X.getCursor();X.setValue(M),X.setCursor(R)}this.emulating=!1,this.deferred=null},W.prototype.mirrorChange=function(M){var X=this.editor.getDoc();return M.origin==="undo"?(X.setHistory(this.mirror.getHistory()),this.mirror.undo()):M.origin==="redo"?(X.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(M.text,M.from,M.to,M.origin),this.mirror.getValue()},W.prototype.componentDidMount=function(){var M=this;S||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new D(this.editor,this.props),this.mirror=g(function(){},this.props.options),this.editor.on("electricInput",function(){M.mirror.setHistory(M.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){M.mirror.setCursor(M.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(X,R){if(!M.emulating){R.cancel(),M.deferred=R;var C=M.mirrorChange(M.deferred);M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,M.deferred,C)}}),this.editor.on("change",function(X,R){!M.mounted||M.props.onChange&&M.props.onChange(M.editor,R,M.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},W.prototype.componentDidUpdate=function(M){if(!S){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(M,this.props,X),this.appliedNext=!0),this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(M,X){return!S},W.prototype.render=function(){var M=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return M.ref=C}})},W}(b.Component);I.fk=B;var j=function(q){d(W,q);function W(M){var X=q.call(this,M)||this;return S||(X.applied=!1,X.appliedUserDefined=!1,X.continueChange=!1,X.detached=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1,X.onBeforeChangeCb=function(){X.continueChange=!0}),X}return W.prototype.hydrate=function(M){var X=this,R=M&&M.options?M.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(Y){return X.editor.getOption(Y)!==C[Y]});if(V&&Object.keys(C).forEach(function(Y){R.hasOwnProperty(Y)&&X.editor.getOption(Y)!==C[Y]&&X.editor.setOption(Y,C[Y])}),!this.hydrated){var J=this.editor.getDoc(),_=J.lastLine(),Q=J.getLine(J.lastLine()).length;J.replaceRange(M.value||"",{line:0,ch:0},{line:_,ch:Q})}this.hydrated=!0},W.prototype.componentDidMount=function(){var M=this;S||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new D(this.editor,this.props),this.editor.on("beforeChange",function(X,R){M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,R,M.editor.getValue(),M.onBeforeChangeCb)}),this.editor.on("change",function(X,R){!M.mounted||!M.props.onChange||(M.props.onBeforeChange?M.continueChange&&M.props.onChange(M.editor,R,M.editor.getValue()):M.props.onChange(M.editor,R,M.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},W.prototype.componentDidUpdate=function(M){if(this.detached&&this.props.detach===!1&&(this.detached=!1,M.editorDidAttach&&M.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,M.editorDidDetach&&M.editorDidDetach(this.editor)),!(S||this.detached)){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!M.autoCursor&&M.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(M),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0)}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(M,X){var R=!0;return S&&(R=!1),this.detached&&M.detach&&(R=!1),R},W.prototype.render=function(){var M=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return M.ref=C}})},W}(b.Component);c=j},35666:h=>{var I=function(a){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,d=typeof Symbol=="function"?Symbol:{},b=d.iterator||"@@iterator",S=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function L(Le,Me,Pe){return Object.defineProperty(Le,Me,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),Le[Me]}try{L({},"")}catch(Le){L=function(Me,Pe,rt){return Me[Pe]=rt}}function D(Le,Me,Pe,rt){var Ze=Me&&Me.prototype instanceof R?Me:R,Xe=Object.create(Ze.prototype),ft=new ue(rt||[]);return Xe._invoke=ie(Le,Pe,ft),Xe}a.wrap=D;function B(Le,Me,Pe){try{return{type:"normal",arg:Le.call(Me,Pe)}}catch(rt){return{type:"throw",arg:rt}}}var j="suspendedStart",q="suspendedYield",W="executing",M="completed",X={};function R(){}function C(){}function V(){}var J={};J[b]=function(){return this};var _=Object.getPrototypeOf,Q=_&&_(_(oe([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var Y=V.prototype=R.prototype=Object.create(J);C.prototype=Y.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function fe(Le){["next","throw","return"].forEach(function(Me){L(Le,Me,function(Pe){return this._invoke(Me,Pe)})})}a.isGeneratorFunction=function(Le){var Me=typeof Le=="function"&&Le.constructor;return Me?Me===C||(Me.displayName||Me.name)==="GeneratorFunction":!1},a.mark=function(Le){return Object.setPrototypeOf?Object.setPrototypeOf(Le,V):(Le.__proto__=V,L(Le,g,"GeneratorFunction")),Le.prototype=Object.create(Y),Le},a.awrap=function(Le){return{__await:Le}};function ee(Le,Me){function Pe(Xe,ft,ht,bt){var nt=B(Le[Xe],Le,ft);if(nt.type==="throw")bt(nt.arg);else{var ut=nt.arg,yt=ut.value;return yt&&typeof yt=="object"&&v.call(yt,"__await")?Me.resolve(yt.__await).then(function(mt){Pe("next",mt,ht,bt)},function(mt){Pe("throw",mt,ht,bt)}):Me.resolve(yt).then(function(mt){ut.value=mt,ht(ut)},function(mt){return Pe("throw",mt,ht,bt)})}}var rt;function Ze(Xe,ft){function ht(){return new Me(function(bt,nt){Pe(Xe,ft,bt,nt)})}return rt=rt?rt.then(ht,ht):ht()}this._invoke=Ze}fe(ee.prototype),ee.prototype[S]=function(){return this},a.AsyncIterator=ee,a.async=function(Le,Me,Pe,rt,Ze){Ze===void 0&&(Ze=Promise);var Xe=new ee(D(Le,Me,Pe,rt),Ze);return a.isGeneratorFunction(Me)?Xe:Xe.next().then(function(ft){return ft.done?ft.value:Xe.next()})};function ie(Le,Me,Pe){var rt=j;return function(Xe,ft){if(rt===W)throw new Error("Generator is already running");if(rt===M){if(Xe==="throw")throw ft;return Fe()}for(Pe.method=Xe,Pe.arg=ft;;){var ht=Pe.delegate;if(ht){var bt=ye(ht,Pe);if(bt){if(bt===X)continue;return bt}}if(Pe.method==="next")Pe.sent=Pe._sent=Pe.arg;else if(Pe.method==="throw"){if(rt===j)throw rt=M,Pe.arg;Pe.dispatchException(Pe.arg)}else Pe.method==="return"&&Pe.abrupt("return",Pe.arg);rt=W;var nt=B(Le,Me,Pe);if(nt.type==="normal"){if(rt=Pe.done?M:q,nt.arg===X)continue;return{value:nt.arg,done:Pe.done}}else nt.type==="throw"&&(rt=M,Pe.method="throw",Pe.arg=nt.arg)}}}function ye(Le,Me){var Pe=Le.iterator[Me.method];if(Pe===x){if(Me.delegate=null,Me.method==="throw"){if(Le.iterator.return&&(Me.method="return",Me.arg=x,ye(Le,Me),Me.method==="throw"))return X;Me.method="throw",Me.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var rt=B(Pe,Le.iterator,Me.arg);if(rt.type==="throw")return Me.method="throw",Me.arg=rt.arg,Me.delegate=null,X;var Ze=rt.arg;if(!Ze)return Me.method="throw",Me.arg=new TypeError("iterator result is not an object"),Me.delegate=null,X;if(Ze.done)Me[Le.resultName]=Ze.value,Me.next=Le.nextLoc,Me.method!=="return"&&(Me.method="next",Me.arg=x);else return Ze;return Me.delegate=null,X}fe(Y),L(Y,g,"Generator"),Y[b]=function(){return this},Y.toString=function(){return"[object Generator]"};function be(Le){var Me={tryLoc:Le[0]};1 in Le&&(Me.catchLoc=Le[1]),2 in Le&&(Me.finallyLoc=Le[2],Me.afterLoc=Le[3]),this.tryEntries.push(Me)}function he(Le){var Me=Le.completion||{};Me.type="normal",delete Me.arg,Le.completion=Me}function ue(Le){this.tryEntries=[{tryLoc:"root"}],Le.forEach(be,this),this.reset(!0)}a.keys=function(Le){var Me=[];for(var Pe in Le)Me.push(Pe);return Me.reverse(),function rt(){for(;Me.length;){var Ze=Me.pop();if(Ze in Le)return rt.value=Ze,rt.done=!1,rt}return rt.done=!0,rt}};function oe(Le){if(Le){var Me=Le[b];if(Me)return Me.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Pe=-1,rt=function Ze(){for(;++Pe<Le.length;)if(v.call(Le,Pe))return Ze.value=Le[Pe],Ze.done=!1,Ze;return Ze.value=x,Ze.done=!0,Ze};return rt.next=rt}}return{next:Fe}}a.values=oe;function Fe(){return{value:x,done:!0}}return ue.prototype={constructor:ue,reset:function(Le){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(he),!Le)for(var Me in this)Me.charAt(0)==="t"&&v.call(this,Me)&&!isNaN(+Me.slice(1))&&(this[Me]=x)},stop:function(){this.done=!0;var Le=this.tryEntries[0],Me=Le.completion;if(Me.type==="throw")throw Me.arg;return this.rval},dispatchException:function(Le){if(this.done)throw Le;var Me=this;function Pe(bt,nt){return Xe.type="throw",Xe.arg=Le,Me.next=bt,nt&&(Me.method="next",Me.arg=x),!!nt}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Ze=this.tryEntries[rt],Xe=Ze.completion;if(Ze.tryLoc==="root")return Pe("end");if(Ze.tryLoc<=this.prev){var ft=v.call(Ze,"catchLoc"),ht=v.call(Ze,"finallyLoc");if(ft&&ht){if(this.prev<Ze.catchLoc)return Pe(Ze.catchLoc,!0);if(this.prev<Ze.finallyLoc)return Pe(Ze.finallyLoc)}else if(ft){if(this.prev<Ze.catchLoc)return Pe(Ze.catchLoc,!0)}else if(ht){if(this.prev<Ze.finallyLoc)return Pe(Ze.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Le,Me){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var rt=this.tryEntries[Pe];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Ze=rt;break}}Ze&&(Le==="break"||Le==="continue")&&Ze.tryLoc<=Me&&Me<=Ze.finallyLoc&&(Ze=null);var Xe=Ze?Ze.completion:{};return Xe.type=Le,Xe.arg=Me,Ze?(this.method="next",this.next=Ze.finallyLoc,X):this.complete(Xe)},complete:function(Le,Me){if(Le.type==="throw")throw Le.arg;return Le.type==="break"||Le.type==="continue"?this.next=Le.arg:Le.type==="return"?(this.rval=this.arg=Le.arg,this.method="return",this.next="end"):Le.type==="normal"&&Me&&(this.next=Me),X},finish:function(Le){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Pe=this.tryEntries[Me];if(Pe.finallyLoc===Le)return this.complete(Pe.completion,Pe.afterLoc),he(Pe),X}},catch:function(Le){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Pe=this.tryEntries[Me];if(Pe.tryLoc===Le){var rt=Pe.completion;if(rt.type==="throw"){var Ze=rt.arg;he(Pe)}return Ze}}throw new Error("illegal catch attempt")},delegateYield:function(Le,Me,Pe){return this.delegate={iterator:oe(Le),resultName:Me,nextLoc:Pe},this.method==="next"&&(this.arg=x),X}},a}(h.exports);try{regeneratorRuntime=I}catch(a){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,a)=>{"use strict";var c=a(40210),v=a(21924),x=a(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),S=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),D=v("WeakMap.prototype.has",!0),B=v("Map.prototype.get",!0),j=v("Map.prototype.set",!0),q=v("Map.prototype.has",!0),W=function(C,V){for(var J=C,_;(_=J.next)!==null;J=_)if(_.key===V)return J.next=_.next,_.next=C.next,C.next=_,_},M=function(C,V){var J=W(C,V);return J&&J.value},X=function(C,V,J){var _=W(C,V);_?_.value=J:C.next={key:V,next:C.next,value:J}},R=function(C,V){return!!W(C,V)};h.exports=function(){var V,J,_,Q={assert:function(Y){if(!Q.has(Y))throw new d("Side channel does not contain "+x(Y))},get:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return g(V,Y)}else if(S){if(J)return B(J,Y)}else if(_)return M(_,Y)},has:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return D(V,Y)}else if(S){if(J)return q(J,Y)}else if(_)return R(_,Y);return!1},set:function(Y,fe){b&&Y&&(typeof Y=="object"||typeof Y=="function")?(V||(V=new b),L(V,Y,fe)):S?(J||(J=new S),j(J,Y,fe)):(_||(_={key:{},next:null}),X(_,Y,fe))}};return Q}},13837:(h,I,a)=>{var c=a(93379),v=a(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},75019:(h,I,a)=>{var c=a(93379),v=a(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},86081:(h,I,a)=>{var c=a(93379),v=a(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},44254:(h,I,a)=>{var c=a(93379),v=a(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},88996:(h,I,a)=>{"use strict";/*!
499
+ * The buffer module from node.js, for the browser.
500
+ *
501
+ * @author Feross Aboukhadijeh <https://feross.org>
502
+ * @license MIT
503
+ */const c=a(79742),v=a(80645),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=g,I.SlowBuffer=V,I.INSPECT_MAX_BYTES=50;const d=2147483647;I.kMaxLength=d,g.TYPED_ARRAY_SUPPORT=b(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const K=new Uint8Array(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,Uint8Array.prototype),Object.setPrototypeOf(K,T),K.foo()===42}catch(K){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.byteOffset}});function S(K){if(K>d)throw new RangeError('The value "'+K+'" is invalid for option "size"');const T=new Uint8Array(K);return Object.setPrototypeOf(T,g.prototype),T}function g(K,T,O){if(typeof K=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(K)}return L(K,T,O)}g.poolSize=8192;function L(K,T,O){if(typeof K=="string")return q(K,T);if(ArrayBuffer.isView(K))return M(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Ie(K,ArrayBuffer)||K&&Ie(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ie(K,SharedArrayBuffer)||K&&Ie(K.buffer,SharedArrayBuffer)))return X(K,T,O);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const se=K.valueOf&&K.valueOf();if(se!=null&&se!==K)return g.from(se,T,O);const N=R(K);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return g.from(K[Symbol.toPrimitive]("string"),T,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}g.from=function(K,T,O){return L(K,T,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function D(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function B(K,T,O){return D(K),K<=0?S(K):T!==void 0?typeof O=="string"?S(K).fill(T,O):S(K).fill(T):S(K)}g.alloc=function(K,T,O){return B(K,T,O)};function j(K){return D(K),S(K<0?0:C(K)|0)}g.allocUnsafe=function(K){return j(K)},g.allocUnsafeSlow=function(K){return j(K)};function q(K,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const O=J(K,T)|0;let se=S(O);const N=se.write(K,T);return N!==O&&(se=se.slice(0,N)),se}function W(K){const T=K.length<0?0:C(K.length)|0,O=S(T);for(let se=0;se<T;se+=1)O[se]=K[se]&255;return O}function M(K){if(Ie(K,Uint8Array)){const T=new Uint8Array(K);return X(T.buffer,T.byteOffset,T.byteLength)}return W(K)}function X(K,T,O){if(T<0||K.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<T+(O||0))throw new RangeError('"length" is outside of buffer bounds');let se;return T===void 0&&O===void 0?se=new Uint8Array(K):O===void 0?se=new Uint8Array(K,T):se=new Uint8Array(K,T,O),Object.setPrototypeOf(se,g.prototype),se}function R(K){if(g.isBuffer(K)){const T=C(K.length)|0,O=S(T);return O.length===0||K.copy(O,0,0,T),O}if(K.length!==void 0)return typeof K.length!="number"||Ge(K.length)?S(0):W(K);if(K.type==="Buffer"&&Array.isArray(K.data))return W(K.data)}function C(K){if(K>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return K|0}function V(K){return+K!=K&&(K=0),g.alloc(+K)}g.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==g.prototype},g.compare=function(T,O){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),Ie(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(T)||!g.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===O)return 0;let se=T.length,N=O.length;for(let te=0,de=Math.min(se,N);te<de;++te)if(T[te]!==O[te]){se=T[te],N=O[te];break}return se<N?-1:N<se?1:0},g.isEncoding=function(T){switch(String(T).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(T,O){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return g.alloc(0);let se;if(O===void 0)for(O=0,se=0;se<T.length;++se)O+=T[se].length;const N=g.allocUnsafe(O);let te=0;for(se=0;se<T.length;++se){let de=T[se];if(Ie(de,Uint8Array))te+de.length>N.length?(g.isBuffer(de)||(de=g.from(de)),de.copy(N,te)):Uint8Array.prototype.set.call(N,de,te);else if(g.isBuffer(de))de.copy(N,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=de.length}return N};function J(K,T){if(g.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Ie(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);const O=K.length,se=arguments.length>2&&arguments[2]===!0;if(!se&&O===0)return 0;let N=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return Dt(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return $(K).length;default:if(N)return se?-1:Dt(K).length;T=(""+T).toLowerCase(),N=!0}}g.byteLength=J;function _(K,T,O){let se=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,T>>>=0,O<=T))return"";for(K||(K="utf8");;)switch(K){case"hex":return rt(this,T,O);case"utf8":case"utf-8":return oe(this,T,O);case"ascii":return Me(this,T,O);case"latin1":case"binary":return Pe(this,T,O);case"base64":return ue(this,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,T,O);default:if(se)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),se=!0}}g.prototype._isBuffer=!0;function Q(K,T,O){const se=K[T];K[T]=K[O],K[O]=se}g.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<T;O+=2)Q(this,O,O+1);return this},g.prototype.swap32=function(){const T=this.length;if(T%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<T;O+=4)Q(this,O,O+3),Q(this,O+1,O+2);return this},g.prototype.swap64=function(){const T=this.length;if(T%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<T;O+=8)Q(this,O,O+7),Q(this,O+1,O+6),Q(this,O+2,O+5),Q(this,O+3,O+4);return this},g.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?oe(this,0,T):_.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(T){if(!g.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:g.compare(this,T)===0},g.prototype.inspect=function(){let T="";const O=I.INSPECT_MAX_BYTES;return T=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(T+=" ... "),"<Buffer "+T+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(T,O,se,N,te){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(O===void 0&&(O=0),se===void 0&&(se=T?T.length:0),N===void 0&&(N=0),te===void 0&&(te=this.length),O<0||se>T.length||N<0||te>this.length)throw new RangeError("out of range index");if(N>=te&&O>=se)return 0;if(N>=te)return-1;if(O>=se)return 1;if(O>>>=0,se>>>=0,N>>>=0,te>>>=0,this===T)return 0;let de=te-N,ae=se-O;const pe=Math.min(de,ae),Ae=this.slice(N,te),Be=T.slice(O,se);for(let Ue=0;Ue<pe;++Ue)if(Ae[Ue]!==Be[Ue]){de=Ae[Ue],ae=Be[Ue];break}return de<ae?-1:ae<de?1:0};function Y(K,T,O,se,N){if(K.length===0)return-1;if(typeof O=="string"?(se=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,Ge(O)&&(O=N?0:K.length-1),O<0&&(O=K.length+O),O>=K.length){if(N)return-1;O=K.length-1}else if(O<0)if(N)O=0;else return-1;if(typeof T=="string"&&(T=g.from(T,se)),g.isBuffer(T))return T.length===0?-1:fe(K,T,O,se,N);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(K,T,O):Uint8Array.prototype.lastIndexOf.call(K,T,O):fe(K,[T],O,se,N);throw new TypeError("val must be string, number or Buffer")}function fe(K,T,O,se,N){let te=1,de=K.length,ae=T.length;if(se!==void 0&&(se=String(se).toLowerCase(),se==="ucs2"||se==="ucs-2"||se==="utf16le"||se==="utf-16le")){if(K.length<2||T.length<2)return-1;te=2,de/=2,ae/=2,O/=2}function pe(Be,Ue){return te===1?Be[Ue]:Be.readUInt16BE(Ue*te)}let Ae;if(N){let Be=-1;for(Ae=O;Ae<de;Ae++)if(pe(K,Ae)===pe(T,Be===-1?0:Ae-Be)){if(Be===-1&&(Be=Ae),Ae-Be+1===ae)return Be*te}else Be!==-1&&(Ae-=Ae-Be),Be=-1}else for(O+ae>de&&(O=de-ae),Ae=O;Ae>=0;Ae--){let Be=!0;for(let Ue=0;Ue<ae;Ue++)if(pe(K,Ae+Ue)!==pe(T,Ue)){Be=!1;break}if(Be)return Ae}return-1}g.prototype.includes=function(T,O,se){return this.indexOf(T,O,se)!==-1},g.prototype.indexOf=function(T,O,se){return Y(this,T,O,se,!0)},g.prototype.lastIndexOf=function(T,O,se){return Y(this,T,O,se,!1)};function ee(K,T,O,se){O=Number(O)||0;const N=K.length-O;se?(se=Number(se),se>N&&(se=N)):se=N;const te=T.length;se>te/2&&(se=te/2);let de;for(de=0;de<se;++de){const ae=parseInt(T.substr(de*2,2),16);if(Ge(ae))return de;K[O+de]=ae}return de}function ie(K,T,O,se){return Se(Dt(T,K.length-O),K,O,se)}function ye(K,T,O,se){return Se(ve(T),K,O,se)}function be(K,T,O,se){return Se($(T),K,O,se)}function he(K,T,O,se){return Se(z(T,K.length-O),K,O,se)}g.prototype.write=function(T,O,se,N){if(O===void 0)N="utf8",se=this.length,O=0;else if(se===void 0&&typeof O=="string")N=O,se=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(se)?(se=se>>>0,N===void 0&&(N="utf8")):(N=se,se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const te=this.length-O;if((se===void 0||se>te)&&(se=te),T.length>0&&(se<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let de=!1;for(;;)switch(N){case"hex":return ee(this,T,O,se);case"utf8":case"utf-8":return ie(this,T,O,se);case"ascii":case"latin1":case"binary":return ye(this,T,O,se);case"base64":return be(this,T,O,se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,T,O,se);default:if(de)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),de=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(K,T,O){return T===0&&O===K.length?c.fromByteArray(K):c.fromByteArray(K.slice(T,O))}function oe(K,T,O){O=Math.min(K.length,O);const se=[];let N=T;for(;N<O;){const te=K[N];let de=null,ae=te>239?4:te>223?3:te>191?2:1;if(N+ae<=O){let pe,Ae,Be,Ue;switch(ae){case 1:te<128&&(de=te);break;case 2:pe=K[N+1],(pe&192)==128&&(Ue=(te&31)<<6|pe&63,Ue>127&&(de=Ue));break;case 3:pe=K[N+1],Ae=K[N+2],(pe&192)==128&&(Ae&192)==128&&(Ue=(te&15)<<12|(pe&63)<<6|Ae&63,Ue>2047&&(Ue<55296||Ue>57343)&&(de=Ue));break;case 4:pe=K[N+1],Ae=K[N+2],Be=K[N+3],(pe&192)==128&&(Ae&192)==128&&(Be&192)==128&&(Ue=(te&15)<<18|(pe&63)<<12|(Ae&63)<<6|Be&63,Ue>65535&&Ue<1114112&&(de=Ue))}}de===null?(de=65533,ae=1):de>65535&&(de-=65536,se.push(de>>>10&1023|55296),de=56320|de&1023),se.push(de),N+=ae}return Le(se)}const Fe=4096;function Le(K){const T=K.length;if(T<=Fe)return String.fromCharCode.apply(String,K);let O="",se=0;for(;se<T;)O+=String.fromCharCode.apply(String,K.slice(se,se+=Fe));return O}function Me(K,T,O){let se="";O=Math.min(K.length,O);for(let N=T;N<O;++N)se+=String.fromCharCode(K[N]&127);return se}function Pe(K,T,O){let se="";O=Math.min(K.length,O);for(let N=T;N<O;++N)se+=String.fromCharCode(K[N]);return se}function rt(K,T,O){const se=K.length;(!T||T<0)&&(T=0),(!O||O<0||O>se)&&(O=se);let N="";for(let te=T;te<O;++te)N+=Ke[K[te]];return N}function Ze(K,T,O){const se=K.slice(T,O);let N="";for(let te=0;te<se.length-1;te+=2)N+=String.fromCharCode(se[te]+se[te+1]*256);return N}g.prototype.slice=function(T,O){const se=this.length;T=~~T,O=O===void 0?se:~~O,T<0?(T+=se,T<0&&(T=0)):T>se&&(T=se),O<0?(O+=se,O<0&&(O=0)):O>se&&(O=se),O<T&&(O=T);const N=this.subarray(T,O);return Object.setPrototypeOf(N,g.prototype),N};function Xe(K,T,O){if(K%1!=0||K<0)throw new RangeError("offset is not uint");if(K+T>O)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(T,O,se){T=T>>>0,O=O>>>0,se||Xe(T,O,this.length);let N=this[T],te=1,de=0;for(;++de<O&&(te*=256);)N+=this[T+de]*te;return N},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,O,se){T=T>>>0,O=O>>>0,se||Xe(T,O,this.length);let N=this[T+--O],te=1;for(;O>0&&(te*=256);)N+=this[T+--O]*te;return N},g.prototype.readUint8=g.prototype.readUInt8=function(T,O){return T=T>>>0,O||Xe(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},g.prototype.readBigUInt64LE=P(function(T){T=T>>>0,Ht(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&jt(T,this.length-8);const N=O+this[++T]*mr(2,8)+this[++T]*mr(2,16)+this[++T]*mr(2,24),te=this[++T]+this[++T]*mr(2,8)+this[++T]*mr(2,16)+se*mr(2,24);return BigInt(N)+(BigInt(te)<<BigInt(32))}),g.prototype.readBigUInt64BE=P(function(T){T=T>>>0,Ht(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&jt(T,this.length-8);const N=O*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+this[++T],te=this[++T]*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+se;return(BigInt(N)<<BigInt(32))+BigInt(te)}),g.prototype.readIntLE=function(T,O,se){T=T>>>0,O=O>>>0,se||Xe(T,O,this.length);let N=this[T],te=1,de=0;for(;++de<O&&(te*=256);)N+=this[T+de]*te;return te*=128,N>=te&&(N-=Math.pow(2,8*O)),N},g.prototype.readIntBE=function(T,O,se){T=T>>>0,O=O>>>0,se||Xe(T,O,this.length);let N=O,te=1,de=this[T+--N];for(;N>0&&(te*=256);)de+=this[T+--N]*te;return te*=128,de>=te&&(de-=Math.pow(2,8*O)),de},g.prototype.readInt8=function(T,O){return T=T>>>0,O||Xe(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,O){T=T>>>0,O||Xe(T,2,this.length);const se=this[T]|this[T+1]<<8;return se&32768?se|4294901760:se},g.prototype.readInt16BE=function(T,O){T=T>>>0,O||Xe(T,2,this.length);const se=this[T+1]|this[T]<<8;return se&32768?se|4294901760:se},g.prototype.readInt32LE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},g.prototype.readInt32BE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},g.prototype.readBigInt64LE=P(function(T){T=T>>>0,Ht(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&jt(T,this.length-8);const N=this[T+4]+this[T+5]*mr(2,8)+this[T+6]*mr(2,16)+(se<<24);return(BigInt(N)<<BigInt(32))+BigInt(O+this[++T]*mr(2,8)+this[++T]*mr(2,16)+this[++T]*mr(2,24))}),g.prototype.readBigInt64BE=P(function(T){T=T>>>0,Ht(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&jt(T,this.length-8);const N=(O<<24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+this[++T];return(BigInt(N)<<BigInt(32))+BigInt(this[++T]*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+se)}),g.prototype.readFloatLE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),v.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),v.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!1,52,8)};function ft(K,T,O,se,N,te){if(!g.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>N||T<te)throw new RangeError('"value" argument is out of bounds');if(O+se>K.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(T,O,se,N){if(T=+T,O=O>>>0,se=se>>>0,!N){const ae=Math.pow(2,8*se)-1;ft(this,T,O,se,ae,0)}let te=1,de=0;for(this[O]=T&255;++de<se&&(te*=256);)this[O+de]=T/te&255;return O+se},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(T,O,se,N){if(T=+T,O=O>>>0,se=se>>>0,!N){const ae=Math.pow(2,8*se)-1;ft(this,T,O,se,ae,0)}let te=se-1,de=1;for(this[O+te]=T&255;--te>=0&&(de*=256);)this[O+te]=T/de&255;return O+se},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,1,255,0),this[O]=T&255,O+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,2,65535,0),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,2,65535,0),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,4,4294967295,0),this[O+3]=T>>>24,this[O+2]=T>>>16,this[O+1]=T>>>8,this[O]=T&255,O+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,4,4294967295,0),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4};function ht(K,T,O,se,N){Et(T,se,N,K,O,7);let te=Number(T&BigInt(4294967295));K[O++]=te,te=te>>8,K[O++]=te,te=te>>8,K[O++]=te,te=te>>8,K[O++]=te;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,O}function bt(K,T,O,se,N){Et(T,se,N,K,O,7);let te=Number(T&BigInt(4294967295));K[O+7]=te,te=te>>8,K[O+6]=te,te=te>>8,K[O+5]=te,te=te>>8,K[O+4]=te;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O+3]=de,de=de>>8,K[O+2]=de,de=de>>8,K[O+1]=de,de=de>>8,K[O]=de,O+8}g.prototype.writeBigUInt64LE=P(function(T,O=0){return ht(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=P(function(T,O=0){return bt(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(T,O,se,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*se-1);ft(this,T,O,se,pe-1,-pe)}let te=0,de=1,ae=0;for(this[O]=T&255;++te<se&&(de*=256);)T<0&&ae===0&&this[O+te-1]!==0&&(ae=1),this[O+te]=(T/de>>0)-ae&255;return O+se},g.prototype.writeIntBE=function(T,O,se,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*se-1);ft(this,T,O,se,pe-1,-pe)}let te=se-1,de=1,ae=0;for(this[O+te]=T&255;--te>=0&&(de*=256);)T<0&&ae===0&&this[O+te+1]!==0&&(ae=1),this[O+te]=(T/de>>0)-ae&255;return O+se},g.prototype.writeInt8=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,1,127,-128),T<0&&(T=255+T+1),this[O]=T&255,O+1},g.prototype.writeInt16LE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,2,32767,-32768),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeInt16BE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,2,32767,-32768),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeInt32LE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,4,2147483647,-2147483648),this[O]=T&255,this[O+1]=T>>>8,this[O+2]=T>>>16,this[O+3]=T>>>24,O+4},g.prototype.writeInt32BE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4},g.prototype.writeBigInt64LE=P(function(T,O=0){return ht(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=P(function(T,O=0){return bt(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nt(K,T,O,se,N,te){if(O+se>K.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function ut(K,T,O,se,N){return T=+T,O=O>>>0,N||nt(K,T,O,4,34028234663852886e22,-34028234663852886e22),v.write(K,T,O,se,23,4),O+4}g.prototype.writeFloatLE=function(T,O,se){return ut(this,T,O,!0,se)},g.prototype.writeFloatBE=function(T,O,se){return ut(this,T,O,!1,se)};function yt(K,T,O,se,N){return T=+T,O=O>>>0,N||nt(K,T,O,8,17976931348623157e292,-17976931348623157e292),v.write(K,T,O,se,52,8),O+8}g.prototype.writeDoubleLE=function(T,O,se){return yt(this,T,O,!0,se)},g.prototype.writeDoubleBE=function(T,O,se){return yt(this,T,O,!1,se)},g.prototype.copy=function(T,O,se,N){if(!g.isBuffer(T))throw new TypeError("argument should be a Buffer");if(se||(se=0),!N&&N!==0&&(N=this.length),O>=T.length&&(O=T.length),O||(O=0),N>0&&N<se&&(N=se),N===se||T.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(se<0||se>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),T.length-O<N-se&&(N=T.length-O+se);const te=N-se;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(O,se,N):Uint8Array.prototype.set.call(T,this.subarray(se,N),O),te},g.prototype.fill=function(T,O,se,N){if(typeof T=="string"){if(typeof O=="string"?(N=O,O=0,se=this.length):typeof se=="string"&&(N=se,se=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!g.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(T.length===1){const de=T.charCodeAt(0);(N==="utf8"&&de<128||N==="latin1")&&(T=de)}}else typeof T=="number"?T=T&255:typeof T=="boolean"&&(T=Number(T));if(O<0||this.length<O||this.length<se)throw new RangeError("Out of range index");if(se<=O)return this;O=O>>>0,se=se===void 0?this.length:se>>>0,T||(T=0);let te;if(typeof T=="number")for(te=O;te<se;++te)this[te]=T;else{const de=g.isBuffer(T)?T:g.from(T,N),ae=de.length;if(ae===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(te=0;te<se-O;++te)this[te+O]=de[te%ae]}return this};const mt={};function pt(K,T,O){mt[K]=class extends O{constructor(){super();Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${K}]`,this.stack,delete this.name}get code(){return K}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${K}]: ${this.message}`}}}pt("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?`${K} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),pt("ERR_INVALID_ARG_TYPE",function(K,T){return`The "${K}" argument must be of type number. Received type ${typeof T}`},TypeError),pt("ERR_OUT_OF_RANGE",function(K,T,O){let se=`The value of "${K}" is out of range.`,N=O;return Number.isInteger(O)&&Math.abs(O)>mr(2,32)?N=Mt(String(O)):typeof O=="bigint"&&(N=String(O),(O>mr(BigInt(2),BigInt(32))||O<-mr(BigInt(2),BigInt(32)))&&(N=Mt(N)),N+="n"),se+=` It must be ${T}. Received ${N}`,se},RangeError);function Mt(K){let T="",O=K.length;const se=K[0]==="-"?1:0;for(;O>=se+4;O-=3)T=`_${K.slice(O-3,O)}${T}`;return`${K.slice(0,O)}${T}`}function kt(K,T,O){Ht(T,"offset"),(K[T]===void 0||K[T+O]===void 0)&&jt(T,K.length-(O+1))}function Et(K,T,O,se,N,te){if(K>O||K<T){const de=typeof T=="bigint"?"n":"";let ae;throw te>3?T===0||T===BigInt(0)?ae=`>= 0${de} and < 2${de} ** ${(te+1)*8}${de}`:ae=`>= -(2${de} ** ${(te+1)*8-1}${de}) and < 2 ** ${(te+1)*8-1}${de}`:ae=`>= ${T}${de} and <= ${O}${de}`,new mt.ERR_OUT_OF_RANGE("value",ae,K)}kt(se,N,te)}function Ht(K,T){if(typeof K!="number")throw new mt.ERR_INVALID_ARG_TYPE(T,"number",K)}function jt(K,T,O){throw Math.floor(K)!==K?(Ht(K,O),new mt.ERR_OUT_OF_RANGE(O||"offset","an integer",K)):T<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(O||"offset",`>= ${O?1:0} and <= ${T}`,K)}const Vt=/[^+/0-9A-Za-z-_]/g;function wt(K){if(K=K.split("=")[0],K=K.trim().replace(Vt,""),K.length<2)return"";for(;K.length%4!=0;)K=K+"=";return K}function Dt(K,T){T=T||1/0;let O;const se=K.length;let N=null;const te=[];for(let de=0;de<se;++de){if(O=K.charCodeAt(de),O>55295&&O<57344){if(!N){if(O>56319){(T-=3)>-1&&te.push(239,191,189);continue}else if(de+1===se){(T-=3)>-1&&te.push(239,191,189);continue}N=O;continue}if(O<56320){(T-=3)>-1&&te.push(239,191,189),N=O;continue}O=(N-55296<<10|O-56320)+65536}else N&&(T-=3)>-1&&te.push(239,191,189);if(N=null,O<128){if((T-=1)<0)break;te.push(O)}else if(O<2048){if((T-=2)<0)break;te.push(O>>6|192,O&63|128)}else if(O<65536){if((T-=3)<0)break;te.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((T-=4)<0)break;te.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return te}function ve(K){const T=[];for(let O=0;O<K.length;++O)T.push(K.charCodeAt(O)&255);return T}function z(K,T){let O,se,N;const te=[];for(let de=0;de<K.length&&!((T-=2)<0);++de)O=K.charCodeAt(de),se=O>>8,N=O%256,te.push(N),te.push(se);return te}function $(K){return c.toByteArray(wt(K))}function Se(K,T,O,se){let N;for(N=0;N<se&&!(N+O>=T.length||N>=K.length);++N)T[N+O]=K[N];return N}function Ie(K,T){return K instanceof T||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===T.name}function Ge(K){return K!==K}const Ke=function(){const K="0123456789abcdef",T=new Array(256);for(let O=0;O<16;++O){const se=O*16;for(let N=0;N<16;++N)T[se+N]=K[O]+K[N]}return T}();function P(K){return typeof BigInt=="undefined"?Re:K}function Re(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,a=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,a,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,a)=>{"use strict";var c=a(57347),v=a(73777),x=a(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,a)=>{"use strict";var c=a(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(W){return W.replace(/&#(\d+);/g,function(M,X){return String.fromCharCode(parseInt(X,10))})},S=function(W,M){return W&&typeof W=="string"&&M.comma&&W.indexOf(",")>-1?W.split(","):W},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",D=function(M,X){var R={},C=X.ignoreQueryPrefix?M.replace(/^\?/,""):M,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),_=-1,Q,Y=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?Y="utf-8":J[Q]===g&&(Y="iso-8859-1"),_=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==_){var fe=J[Q],ee=fe.indexOf("]="),ie=ee===-1?fe.indexOf("="):ee+1,ye,be;ie===-1?(ye=X.decoder(fe,d.decoder,Y,"key"),be=X.strictNullHandling?null:""):(ye=X.decoder(fe.slice(0,ie),d.decoder,Y,"key"),be=c.maybeMap(S(fe.slice(ie+1),X),function(he){return X.decoder(he,d.decoder,Y,"value")})),be&&X.interpretNumericEntities&&Y==="iso-8859-1"&&(be=b(be)),fe.indexOf("[]=")>-1&&(be=x(be)?[be]:be),v.call(R,ye)?R[ye]=c.combine(R[ye],be):R[ye]=be}return R},B=function(W,M,X,R){for(var C=R?M:S(M,X),V=W.length-1;V>=0;--V){var J,_=W[V];if(_==="[]"&&X.parseArrays)J=[].concat(C);else{J=X.plainObjects?Object.create(null):{};var Q=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,Y=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(Y)&&_!==Q&&String(Y)===Q&&Y>=0&&X.parseArrays&&Y<=X.arrayLimit?(J=[],J[Y]=C):J[Q]=C}C=J}return C},j=function(M,X,R,C){if(!!M){var V=R.allowDots?M.replace(/\.([^.[]+)/g,"[$1]"):M,J=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,Q=R.depth>0&&J.exec(V),Y=Q?V.slice(0,Q.index):V,fe=[];if(Y){if(!R.plainObjects&&v.call(Object.prototype,Y)&&!R.allowPrototypes)return;fe.push(Y)}for(var ee=0;R.depth>0&&(Q=_.exec(V))!==null&&ee<R.depth;){if(ee+=1,!R.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!R.allowPrototypes)return;fe.push(Q[1])}return Q&&fe.push("["+V.slice(Q.index)+"]"),B(fe,X,R,C)}},q=function(M){if(!M)return d;if(M.decoder!==null&&M.decoder!==void 0&&typeof M.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof M.charset!="undefined"&&M.charset!=="utf-8"&&M.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=typeof M.charset=="undefined"?d.charset:M.charset;return{allowDots:typeof M.allowDots=="undefined"?d.allowDots:!!M.allowDots,allowPrototypes:typeof M.allowPrototypes=="boolean"?M.allowPrototypes:d.allowPrototypes,allowSparse:typeof M.allowSparse=="boolean"?M.allowSparse:d.allowSparse,arrayLimit:typeof M.arrayLimit=="number"?M.arrayLimit:d.arrayLimit,charset:X,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:d.charsetSentinel,comma:typeof M.comma=="boolean"?M.comma:d.comma,decoder:typeof M.decoder=="function"?M.decoder:d.decoder,delimiter:typeof M.delimiter=="string"||c.isRegExp(M.delimiter)?M.delimiter:d.delimiter,depth:typeof M.depth=="number"||M.depth===!1?+M.depth:d.depth,ignoreQueryPrefix:M.ignoreQueryPrefix===!0,interpretNumericEntities:typeof M.interpretNumericEntities=="boolean"?M.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof M.parameterLimit=="number"?M.parameterLimit:d.parameterLimit,parseArrays:M.parseArrays!==!1,plainObjects:typeof M.plainObjects=="boolean"?M.plainObjects:d.plainObjects,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:d.strictNullHandling}};h.exports=function(W,M){var X=q(M);if(W===""||W===null||typeof W=="undefined")return X.plainObjects?Object.create(null):{};for(var R=typeof W=="string"?D(W,X):W,C=X.plainObjects?Object.create(null):{},V=Object.keys(R),J=0;J<V.length;++J){var _=V[J],Q=j(_,R[_],X,typeof W=="string");C=c.merge(C,Q,X)}return X.allowSparse===!0?C:c.compact(C)}},57347:(h,I,a)=>{"use strict";var c=a(37478),v=a(58760),x=a(24269),d=Object.prototype.hasOwnProperty,b={brackets:function(R){return R+"[]"},comma:"comma",indices:function(R,C){return R+"["+C+"]"},repeat:function(R){return R}},S=Array.isArray,g=Array.prototype.push,L=function(X,R){g.apply(X,S(R)?R:[R])},D=Date.prototype.toISOString,B=x.default,j={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:B,formatter:x.formatters[B],indices:!1,serializeDate:function(R){return D.call(R)},skipNulls:!1,strictNullHandling:!1},q=function(R){return typeof R=="string"||typeof R=="number"||typeof R=="boolean"||typeof R=="symbol"||typeof R=="bigint"},W=function X(R,C,V,J,_,Q,Y,fe,ee,ie,ye,be,he,ue,oe){var Fe=R;if(oe.has(R))throw new RangeError("Cyclic object value");if(typeof Y=="function"?Fe=Y(C,Fe):Fe instanceof Date?Fe=ie(Fe):V==="comma"&&S(Fe)&&(Fe=v.maybeMap(Fe,function(nt){return nt instanceof Date?ie(nt):nt})),Fe===null){if(J)return Q&&!he?Q(C,j.encoder,ue,"key",ye):C;Fe=""}if(q(Fe)||v.isBuffer(Fe)){if(Q){var Le=he?C:Q(C,j.encoder,ue,"key",ye);return[be(Le)+"="+be(Q(Fe,j.encoder,ue,"value",ye))]}return[be(C)+"="+be(String(Fe))]}var Me=[];if(typeof Fe=="undefined")return Me;var Pe;if(V==="comma"&&S(Fe))Pe=[{value:Fe.length>0?Fe.join(",")||null:void 0}];else if(S(Y))Pe=Y;else{var rt=Object.keys(Fe);Pe=fe?rt.sort(fe):rt}for(var Ze=0;Ze<Pe.length;++Ze){var Xe=Pe[Ze],ft=typeof Xe=="object"&&Xe.value!==void 0?Xe.value:Fe[Xe];if(!(_&&ft===null)){var ht=S(Fe)?typeof V=="function"?V(C,Xe):C:C+(ee?"."+Xe:"["+Xe+"]");oe.set(R,!0);var bt=c();L(Me,X(ft,ht,V,J,_,Q,Y,fe,ee,ie,ye,be,he,ue,bt))}}return Me},M=function(R){if(!R)return j;if(R.encoder!==null&&R.encoder!==void 0&&typeof R.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=R.charset||j.charset;if(typeof R.charset!="undefined"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var V=x.default;if(typeof R.format!="undefined"){if(!d.call(x.formatters,R.format))throw new TypeError("Unknown format option provided.");V=R.format}var J=x.formatters[V],_=j.filter;return(typeof R.filter=="function"||S(R.filter))&&(_=R.filter),{addQueryPrefix:typeof R.addQueryPrefix=="boolean"?R.addQueryPrefix:j.addQueryPrefix,allowDots:typeof R.allowDots=="undefined"?j.allowDots:!!R.allowDots,charset:C,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:j.charsetSentinel,delimiter:typeof R.delimiter=="undefined"?j.delimiter:R.delimiter,encode:typeof R.encode=="boolean"?R.encode:j.encode,encoder:typeof R.encoder=="function"?R.encoder:j.encoder,encodeValuesOnly:typeof R.encodeValuesOnly=="boolean"?R.encodeValuesOnly:j.encodeValuesOnly,filter:_,format:V,formatter:J,serializeDate:typeof R.serializeDate=="function"?R.serializeDate:j.serializeDate,skipNulls:typeof R.skipNulls=="boolean"?R.skipNulls:j.skipNulls,sort:typeof R.sort=="function"?R.sort:null,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:j.strictNullHandling}};h.exports=function(X,R){var C=X,V=M(R),J,_;typeof V.filter=="function"?(_=V.filter,C=_("",C)):S(V.filter)&&(_=V.filter,J=_);var Q=[];if(typeof C!="object"||C===null)return"";var Y;R&&R.arrayFormat in b?Y=R.arrayFormat:R&&"indices"in R?Y=R.indices?"indices":"repeat":Y="indices";var fe=b[Y];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var ee=c(),ie=0;ie<J.length;++ie){var ye=J[ie];V.skipNulls&&C[ye]===null||L(Q,W(C[ye],ye,fe,V.strictNullHandling,V.skipNulls,V.encode?V.encoder:null,V.filter,V.sort,V.allowDots,V.serializeDate,V.format,V.formatter,V.encodeValuesOnly,V.charset,ee))}var be=Q.join(V.delimiter),he=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?he+="utf8=%26%2310003%3B&":he+="utf8=%E2%9C%93&"),be.length>0?he+be:""}},58760:(h,I,a)=>{"use strict";var c=a(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var R=[],C=0;C<256;++C)R.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return R}(),b=function(C){for(;C.length>1;){var V=C.pop(),J=V.obj[V.prop];if(x(J)){for(var _=[],Q=0;Q<J.length;++Q)typeof J[Q]!="undefined"&&_.push(J[Q]);V.obj[V.prop]=_}}},S=function(C,V){for(var J=V&&V.plainObjects?Object.create(null):{},_=0;_<C.length;++_)typeof C[_]!="undefined"&&(J[_]=C[_]);return J},g=function R(C,V,J){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(J&&(J.plainObjects||J.allowPrototypes)||!v.call(Object.prototype,V))&&(C[V]=!0);else return[C,V];return C}if(!C||typeof C!="object")return[C].concat(V);var _=C;return x(C)&&!x(V)&&(_=S(C,J)),x(C)&&x(V)?(V.forEach(function(Q,Y){if(v.call(C,Y)){var fe=C[Y];fe&&typeof fe=="object"&&Q&&typeof Q=="object"?C[Y]=R(fe,Q,J):C.push(Q)}else C[Y]=Q}),C):Object.keys(V).reduce(function(Q,Y){var fe=V[Y];return v.call(Q,Y)?Q[Y]=R(Q[Y],fe,J):Q[Y]=fe,Q},_)},L=function(C,V){return Object.keys(V).reduce(function(J,_){return J[_]=V[_],J},C)},D=function(R,C,V){var J=R.replace(/\+/g," ");if(V==="iso-8859-1")return J.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(J)}catch(_){return J}},B=function(C,V,J,_,Q){if(C.length===0)return C;var Y=C;if(typeof C=="symbol"?Y=Symbol.prototype.toString.call(C):typeof C!="string"&&(Y=String(C)),J==="iso-8859-1")return escape(Y).replace(/%u[0-9a-f]{4}/gi,function(ye){return"%26%23"+parseInt(ye.slice(2),16)+"%3B"});for(var fe="",ee=0;ee<Y.length;++ee){var ie=Y.charCodeAt(ee);if(ie===45||ie===46||ie===95||ie===126||ie>=48&&ie<=57||ie>=65&&ie<=90||ie>=97&&ie<=122||Q===c.RFC1738&&(ie===40||ie===41)){fe+=Y.charAt(ee);continue}if(ie<128){fe=fe+d[ie];continue}if(ie<2048){fe=fe+(d[192|ie>>6]+d[128|ie&63]);continue}if(ie<55296||ie>=57344){fe=fe+(d[224|ie>>12]+d[128|ie>>6&63]+d[128|ie&63]);continue}ee+=1,ie=65536+((ie&1023)<<10|Y.charCodeAt(ee)&1023),fe+=d[240|ie>>18]+d[128|ie>>12&63]+d[128|ie>>6&63]+d[128|ie&63]}return fe},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],_=0;_<V.length;++_)for(var Q=V[_],Y=Q.obj[Q.prop],fe=Object.keys(Y),ee=0;ee<fe.length;++ee){var ie=fe[ee],ye=Y[ie];typeof ye=="object"&&ye!==null&&J.indexOf(ye)===-1&&(V.push({obj:Y,prop:ie}),J.push(ye))}return b(V),C},q=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},W=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},M=function(C,V){return[].concat(C,V)},X=function(C,V){if(x(C)){for(var J=[],_=0;_<C.length;_+=1)J.push(V(C[_]));return J}return V(C)};h.exports={arrayToObject:S,assign:L,combine:M,compact:j,decode:D,encode:B,isBuffer:W,isRegExp:q,maybeMap:X,merge:g}},13692:h=>{var I=h.exports=function(M){return new a(M)};function a(M){this.value=M}a.prototype.get=function(M){for(var X=this.value,R=0;R<M.length;R++){var C=M[R];if(!X||!W.call(X,C)){X=void 0;break}X=X[C]}return X},a.prototype.has=function(M){for(var X=this.value,R=0;R<M.length;R++){var C=M[R];if(!X||!W.call(X,C))return!1;X=X[C]}return!0},a.prototype.set=function(M,X){for(var R=this.value,C=0;C<M.length-1;C++){var V=M[C];W.call(R,V)||(R[V]={}),R=R[V]}return R[M[C]]=X,X},a.prototype.map=function(M){return c(this.value,M,!0)},a.prototype.forEach=function(M){return this.value=c(this.value,M,!1),this.value},a.prototype.reduce=function(M,X){var R=arguments.length===1,C=R?this.value:X;return this.forEach(function(V){(!this.isRoot||!R)&&(C=M.call(this,C,V))}),C},a.prototype.paths=function(){var M=[];return this.forEach(function(X){M.push(this.path)}),M},a.prototype.nodes=function(){var M=[];return this.forEach(function(X){M.push(this.node)}),M},a.prototype.clone=function(){var M=[],X=[];return function R(C){for(var V=0;V<M.length;V++)if(M[V]===C)return X[V];if(typeof C=="object"&&C!==null){var J=v(C);return M.push(C),X.push(J),q(x(C),function(_){J[_]=R(C[_])}),M.pop(),X.pop(),J}else return C}(this.value)};function c(M,X,R){var C=[],V=[],J=!0;return function _(Q){var Y=R?v(Q):Q,fe={},ee=!0,ie={node:Y,node_:Q,path:[].concat(C),parent:V[V.length-1],parents:V,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(he,ue){ie.isRoot||(ie.parent.node[ie.key]=he),ie.node=he,ue&&(ee=!1)},delete:function(he){delete ie.parent.node[ie.key],he&&(ee=!1)},remove:function(he){j(ie.parent.node)?ie.parent.node.splice(ie.key,1):delete ie.parent.node[ie.key],he&&(ee=!1)},keys:null,before:function(he){fe.before=he},after:function(he){fe.after=he},pre:function(he){fe.pre=he},post:function(he){fe.post=he},stop:function(){J=!1},block:function(){ee=!1}};if(!J)return ie;function ye(){if(typeof ie.node=="object"&&ie.node!==null){(!ie.keys||ie.node_!==ie.node)&&(ie.keys=x(ie.node)),ie.isLeaf=ie.keys.length==0;for(var he=0;he<V.length;he++)if(V[he].node_===Q){ie.circular=V[he];break}}else ie.isLeaf=!0,ie.keys=null;ie.notLeaf=!ie.isLeaf,ie.notRoot=!ie.isRoot}ye();var be=X.call(ie,ie.node);return be!==void 0&&ie.update&&ie.update(be),fe.before&&fe.before.call(ie,ie.node),ee&&(typeof ie.node=="object"&&ie.node!==null&&!ie.circular&&(V.push(ie),ye(),q(ie.keys,function(he,ue){C.push(he),fe.pre&&fe.pre.call(ie,ie.node[he],he);var oe=_(ie.node[he]);R&&W.call(ie.node,he)&&(ie.node[he]=oe.node),oe.isLast=ue==ie.keys.length-1,oe.isFirst=ue==0,fe.post&&fe.post.call(ie,oe),C.pop()}),V.pop()),fe.after&&fe.after.call(ie,ie.node)),ie}(M).node}function v(M){if(typeof M=="object"&&M!==null){var X;if(j(M))X=[];else if(b(M))X=new Date(M.getTime?M.getTime():M);else if(S(M))X=new RegExp(M);else if(g(M))X={message:M.message};else if(L(M))X=new Boolean(M);else if(D(M))X=new Number(M);else if(B(M))X=new String(M);else if(Object.create&&Object.getPrototypeOf)X=Object.create(Object.getPrototypeOf(M));else if(M.constructor===Object)X={};else{var R=M.constructor&&M.constructor.prototype||M.__proto__||{},C=function(){};C.prototype=R,X=new C}return q(x(M),function(V){X[V]=M[V]}),X}else return M}var x=Object.keys||function(X){var R=[];for(var C in X)R.push(C);return R};function d(M){return Object.prototype.toString.call(M)}function b(M){return d(M)==="[object Date]"}function S(M){return d(M)==="[object RegExp]"}function g(M){return d(M)==="[object Error]"}function L(M){return d(M)==="[object Boolean]"}function D(M){return d(M)==="[object Number]"}function B(M){return d(M)==="[object String]"}var j=Array.isArray||function(X){return Object.prototype.toString.call(X)==="[object Array]"},q=function(M,X){if(M.forEach)return M.forEach(X);for(var R=0;R<M.length;R++)X(M[R],R,M)};q(x(a.prototype),function(M){I[M]=function(X){var R=[].slice.call(arguments,1),C=new a(X);return C[M].apply(C,R)}});var W=Object.hasOwnProperty||function(M,X){return X in M}},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);