@redocly/openapi-docs 3.0.0-alpha.10 → 3.0.0-alpha.12

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 (1832) hide show
  1. package/bin/cli/commands/redocly-docs-cli.min.js +3513 -3332
  2. package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +3 -3
  3. package/dist/console.redocly-reference-docs.min.js +286 -286
  4. package/dist/oauth2-redirect.js +2 -2
  5. package/dist/redocly-reference-docs.min.js +5218 -5005
  6. package/lib/cli/commands/bundle.js +1 -1
  7. package/lib/components/ApiInfo/ApiInfo.d.ts +4 -0
  8. package/lib/components/ApiInfo/ApiInfo.js +2 -0
  9. package/lib/components/ApiInfo/index.d.ts +2 -0
  10. package/lib/{redoc-lib/src/components → components}/ApiInfo/index.js +0 -0
  11. package/lib/components/ApiInfo/styled.d.ts +4 -0
  12. package/lib/components/ApiInfo/styled.js +24 -0
  13. package/lib/components/ApiInfo/types.d.ts +4 -0
  14. package/lib/components/{console/AuthPanel → ApiInfo}/types.js +0 -0
  15. package/lib/components/CallbackSamples/CallbackReqSamples.d.ts +7 -0
  16. package/lib/components/CallbackSamples/CallbackReqSamples.js +4 -0
  17. package/lib/components/CallbackSamples/CallbackSamples.d.ts +7 -0
  18. package/lib/components/CallbackSamples/CallbackSamples.js +2 -0
  19. package/lib/components/CallbackSamples/index.d.ts +1 -0
  20. package/lib/components/CallbackSamples/index.js +2 -0
  21. package/lib/components/Callbacks/CallbackDetails.d.ts +6 -0
  22. package/lib/components/Callbacks/CallbackDetails.js +4 -0
  23. package/lib/components/Callbacks/CallbackOperation.d.ts +5 -0
  24. package/lib/components/Callbacks/CallbackOperation.js +2 -0
  25. package/lib/components/Callbacks/CallbackSummary.d.ts +6 -0
  26. package/lib/components/Callbacks/CallbackSummary.js +2 -0
  27. package/lib/components/Callbacks/CallbacksList.d.ts +6 -0
  28. package/lib/components/Callbacks/CallbacksList.js +2 -0
  29. package/lib/{redoc-lib/src/components → components}/Callbacks/index.d.ts +0 -0
  30. package/lib/{redoc-lib/src/components → components}/Callbacks/index.js +0 -0
  31. package/lib/{redoc-lib/src/components/Callbacks/CallbackTitle.d.ts → components/Callbacks/styled.d.ts} +0 -0
  32. package/lib/components/Callbacks/styled.js +7 -0
  33. package/lib/components/ContentItem/ContentItem.d.ts +11 -0
  34. package/lib/components/ContentItem/ContentItem.js +2 -0
  35. package/lib/{redoc-lib/src/components → components}/ContentItem/index.d.ts +0 -0
  36. package/lib/{redoc-lib/src/components → components}/ContentItem/index.js +0 -0
  37. package/lib/components/ContentItems/ContentItems.d.ts +9 -0
  38. package/lib/components/ContentItems/ContentItems.js +2 -0
  39. package/lib/{redoc-lib/src/components → components}/ContentItems/Skeleton.d.ts +0 -0
  40. package/lib/components/ContentItems/Skeleton.js +31 -0
  41. package/lib/{redoc-lib/src/components → components}/ContentItems/index.d.ts +0 -0
  42. package/lib/{redoc-lib/src/components → components}/ContentItems/index.js +0 -0
  43. package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +11 -0
  44. package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.js +2 -0
  45. package/lib/components/DiscriminatorDropdown/index.d.ts +1 -0
  46. package/lib/components/DiscriminatorDropdown/index.js +2 -0
  47. package/lib/components/Download/DownloadButtonWithLabel.d.ts +4 -0
  48. package/lib/components/Download/DownloadButtonWithLabel.js +21 -0
  49. package/lib/components/Download/DownloadLink.d.ts +2 -0
  50. package/lib/components/Download/DownloadLink.js +4 -0
  51. package/lib/components/Download/index.d.ts +3 -0
  52. package/lib/components/Download/index.js +2 -0
  53. package/lib/components/Download/types.d.ts +6 -0
  54. package/lib/components/{console/RequestBody → Download}/types.js +0 -0
  55. package/lib/components/DropdownOrLabel/DropdownOrLabel.d.ts +7 -0
  56. package/lib/components/DropdownOrLabel/DropdownOrLabel.js +8 -0
  57. package/lib/components/DropdownOrLabel/index.d.ts +1 -0
  58. package/lib/components/DropdownOrLabel/index.js +2 -0
  59. package/lib/components/Endpoint/Endpoint.js +1 -1
  60. package/lib/components/Endpoint/ServerList.js +1 -1
  61. package/lib/components/Endpoint/styled.js +1 -1
  62. package/lib/components/Endpoint/types.d.ts +2 -2
  63. package/lib/{redoc-lib/src/components → components/ErrorBoundary}/ErrorBoundary.d.ts +0 -0
  64. package/lib/{redoc-lib/src/components → components/ErrorBoundary}/ErrorBoundary.js +0 -0
  65. package/lib/components/ErrorBoundary/index.d.ts +1 -0
  66. package/lib/components/ErrorBoundary/index.js +2 -0
  67. package/lib/components/ExternalDocumentation/ExternalDocumentation.d.ts +8 -0
  68. package/lib/components/ExternalDocumentation/ExternalDocumentation.js +5 -0
  69. package/lib/components/ExternalDocumentation/index.d.ts +1 -0
  70. package/lib/components/ExternalDocumentation/index.js +2 -0
  71. package/lib/{redoc-lib/src/components/Fields/FieldContstraints.d.ts → components/Fields/ConstraintsView.d.ts} +0 -0
  72. package/lib/components/Fields/ConstraintsView.js +2 -0
  73. package/lib/components/Fields/DescriptionEnums.d.ts +4 -0
  74. package/lib/components/Fields/DescriptionEnums.js +2 -0
  75. package/lib/components/Fields/EnumValues.d.ts +3 -0
  76. package/lib/components/Fields/EnumValues.js +2 -0
  77. package/lib/components/Fields/Examples.d.ts +5 -0
  78. package/lib/components/Fields/Examples.js +2 -0
  79. package/lib/components/Fields/Extensions.d.ts +3 -0
  80. package/lib/components/Fields/Extensions.js +4 -0
  81. package/lib/components/Fields/Field.d.ts +4 -0
  82. package/lib/components/Fields/Field.js +2 -0
  83. package/lib/components/Fields/FieldDetail.d.ts +8 -0
  84. package/lib/components/Fields/FieldDetail.js +2 -0
  85. package/lib/components/Fields/FieldDetails.d.ts +4 -0
  86. package/lib/components/Fields/FieldDetails.js +2 -0
  87. package/lib/components/Fields/SimpleEnums.d.ts +4 -0
  88. package/lib/components/Fields/SimpleEnums.js +2 -0
  89. package/lib/components/Fields/index.d.ts +4 -0
  90. package/lib/components/Fields/index.js +2 -0
  91. package/lib/components/Fields/styled.d.ts +13 -0
  92. package/lib/components/Fields/styled.js +26 -0
  93. package/lib/components/Fields/types.d.ts +40 -0
  94. package/lib/components/{console/ServersDropdown → Fields}/types.js +0 -0
  95. package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +9 -0
  96. package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +2 -0
  97. package/lib/components/GenericChildrenSwitcher/index.d.ts +1 -0
  98. package/lib/components/GenericChildrenSwitcher/index.js +2 -0
  99. package/lib/components/Loading/Loading.d.ts +4 -0
  100. package/lib/components/Loading/Loading.js +9 -0
  101. package/lib/components/Loading/index.d.ts +1 -0
  102. package/lib/components/Loading/index.js +2 -0
  103. package/lib/{redoc-lib/src/components → components}/Markdown/AdvancedMarkdown.d.ts +0 -0
  104. package/lib/components/Markdown/AdvancedMarkdown.js +2 -0
  105. package/lib/{redoc-lib/src/components → components}/Markdown/Markdown.d.ts +0 -0
  106. package/lib/{redoc-lib/src/components → components}/Markdown/Markdown.js +0 -0
  107. package/lib/{redoc-lib/src/components → components}/Markdown/SanitizedMarkdownHTML.d.ts +0 -0
  108. package/lib/components/Markdown/SanitizedMarkdownHTML.js +2 -0
  109. package/lib/{redoc-lib/src/components → components}/Markdown/index.d.ts +0 -0
  110. package/lib/{redoc-lib/src/components → components}/Markdown/index.js +0 -0
  111. package/lib/{redoc-lib/src/components → components}/Markdown/styled.d.ts +0 -0
  112. package/lib/components/Markdown/styled.js +257 -0
  113. package/lib/components/Markdown/types.d.ts +16 -0
  114. package/lib/{redoc-lib/src/components → components}/Markdown/types.js +0 -0
  115. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +11 -0
  116. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.js +2 -0
  117. package/lib/components/MediaTypeSwitch/index.d.ts +1 -0
  118. package/lib/components/MediaTypeSwitch/index.js +2 -0
  119. package/lib/components/NextSectionButton.d.ts +3 -3
  120. package/lib/components/NextSectionButton.js +2 -2
  121. package/lib/components/Operation/Operation.d.ts +4 -0
  122. package/lib/components/Operation/Operation.js +8 -0
  123. package/lib/components/Operation/index.d.ts +2 -0
  124. package/lib/{redoc-lib/src/components → components}/Operation/index.js +0 -0
  125. package/lib/components/Operation/types.d.ts +6 -0
  126. package/lib/{redoc-lib/src/components/PayloadSamples → components/Operation}/types.js +0 -0
  127. package/lib/components/OperationParameters/OperationParameters.js +1 -1
  128. package/lib/components/OperationParameters/types.d.ts +1 -1
  129. package/lib/components/OperationParameters/utils.d.ts +2 -1
  130. package/lib/components/OperationParameters/utils.js +1 -1
  131. package/lib/components/Panel/ContentPanel.js +2 -2
  132. package/lib/components/Panel/ResponsePanel.js +2 -2
  133. package/lib/components/Parameters/BodyContent.d.ts +7 -0
  134. package/lib/components/Parameters/BodyContent.js +4 -0
  135. package/lib/components/Parameters/DropdownWithinHeader.d.ts +1 -0
  136. package/lib/components/Parameters/DropdownWithinHeader.js +2 -0
  137. package/lib/components/Parameters/Parameters.d.ts +6 -0
  138. package/lib/components/Parameters/Parameters.js +2 -0
  139. package/lib/components/Parameters/ParametersGroup.d.ts +9 -0
  140. package/lib/components/Parameters/ParametersGroup.js +16 -0
  141. package/lib/components/Parameters/index.d.ts +2 -0
  142. package/lib/components/Parameters/index.js +2 -0
  143. package/lib/components/PayloadSamples/Example.d.ts +2 -0
  144. package/lib/components/PayloadSamples/Example.js +2 -0
  145. package/lib/{redoc-lib/src/components → components}/PayloadSamples/ExampleValue.d.ts +0 -0
  146. package/lib/{redoc-lib/src/components → components}/PayloadSamples/ExampleValue.js +0 -0
  147. package/lib/components/PayloadSamples/ExternalExample.d.ts +2 -0
  148. package/lib/components/PayloadSamples/ExternalExample.js +2 -0
  149. package/lib/components/PayloadSamples/MediaTypeSamples.d.ts +4 -0
  150. package/lib/components/PayloadSamples/MediaTypeSamples.js +2 -0
  151. package/lib/components/PayloadSamples/PayloadSamples.d.ts +4 -0
  152. package/lib/components/PayloadSamples/PayloadSamples.js +2 -0
  153. package/lib/components/PayloadSamples/index.d.ts +6 -0
  154. package/lib/components/PayloadSamples/index.js +2 -0
  155. package/lib/{redoc-lib/src/components → components}/PayloadSamples/styled.d.ts +0 -0
  156. package/lib/{redoc-lib/src/components → components}/PayloadSamples/styled.js +0 -0
  157. package/lib/components/PayloadSamples/types.d.ts +25 -0
  158. package/lib/{redoc-lib/src/components/Responses → components/PayloadSamples}/types.js +0 -0
  159. package/lib/components/PayloadSamples/useExternalExample.d.ts +2 -0
  160. package/lib/{redoc-lib/src/components → components}/PayloadSamples/useExternalExample.js +0 -0
  161. package/lib/components/ProProviders.d.ts +2 -2
  162. package/lib/components/ProProviders.js +1 -1
  163. package/lib/components/RedoclyReferenceDocs.d.ts +6 -20
  164. package/lib/components/RedoclyReferenceDocs.js +8 -8
  165. package/lib/components/RedoclyReferenceDocsMultiStandalone.d.ts +2 -2
  166. package/lib/components/RedoclyReferenceDocsMultiStandalone.js +1 -1
  167. package/lib/components/RenderHook/RenderHook.d.ts +7 -0
  168. package/lib/{redoc-lib/src/components → components/RenderHook}/RenderHook.js +0 -0
  169. package/lib/components/RenderHook/index.d.ts +1 -0
  170. package/lib/components/RenderHook/index.js +2 -0
  171. package/lib/components/RequestSamples/CodeSample.d.ts +18 -0
  172. package/lib/components/RequestSamples/CodeSample.js +2 -0
  173. package/lib/components/RequestSamples/Example.d.ts +10 -0
  174. package/lib/components/RequestSamples/Example.js +2 -0
  175. package/lib/components/RequestSamples/RequestSamples.d.ts +14 -0
  176. package/lib/components/RequestSamples/RequestSamples.js +2 -0
  177. package/lib/components/RequestSamples/index.d.ts +2 -0
  178. package/lib/components/RequestSamples/index.js +2 -0
  179. package/lib/components/RequestSamples/useCodeSamples.d.ts +10 -0
  180. package/lib/{redoc-lib/src/components → components}/RequestSamples/useCodeSamples.js +0 -0
  181. package/lib/components/ResponseSamples/ResponseSamples.d.ts +5 -0
  182. package/lib/components/ResponseSamples/ResponseSamples.js +2 -0
  183. package/lib/components/ResponseSamples/index.d.ts +1 -0
  184. package/lib/components/ResponseSamples/index.js +2 -0
  185. package/lib/components/Responses/Response.d.ts +4 -0
  186. package/lib/components/Responses/Response.js +2 -0
  187. package/lib/components/Responses/ResponseDetails.d.ts +3 -0
  188. package/lib/components/Responses/ResponseDetails.js +4 -0
  189. package/lib/{redoc-lib/src/components → components}/Responses/ResponseHeaders.d.ts +0 -0
  190. package/lib/components/Responses/ResponseHeaders.js +2 -0
  191. package/lib/{redoc-lib/src/components → components}/Responses/ResponseSummary.d.ts +0 -0
  192. package/lib/components/Responses/ResponseSummary.js +2 -0
  193. package/lib/{redoc-lib/src/components → components}/Responses/ResponsesList.d.ts +0 -0
  194. package/lib/{redoc-lib/src/components → components}/Responses/ResponsesList.js +0 -0
  195. package/lib/components/Responses/index.d.ts +5 -0
  196. package/lib/components/Responses/index.js +2 -0
  197. package/lib/{redoc-lib/src/components → components}/Responses/styled.d.ts +0 -0
  198. package/lib/components/Responses/styled.js +14 -0
  199. package/lib/components/Responses/types.d.ts +12 -0
  200. package/lib/{redoc-lib/src/components/Schema → components/Responses}/types.js +0 -0
  201. package/lib/components/Samples/ExampleSwitch.d.ts +1 -1
  202. package/lib/components/Samples/ExampleSwitch.js +1 -1
  203. package/lib/components/Samples/SamplesTabs.js +1 -1
  204. package/lib/components/Samples/use-example-key.d.ts +1 -1
  205. package/lib/{redoc-lib/src/components → components}/Schema/ArraySchema.d.ts +0 -0
  206. package/lib/components/Schema/ArraySchema.js +4 -0
  207. package/lib/components/Schema/ObjectSchema.d.ts +3 -0
  208. package/lib/components/Schema/ObjectSchema.js +2 -0
  209. package/lib/components/Schema/OneOfSchema.d.ts +3 -0
  210. package/lib/components/Schema/OneOfSchema.js +2 -0
  211. package/lib/components/Schema/RecursiveSchema.d.ts +3 -0
  212. package/lib/components/Schema/RecursiveSchema.js +2 -0
  213. package/lib/components/Schema/Schema.d.ts +3 -0
  214. package/lib/components/Schema/Schema.js +2 -0
  215. package/lib/components/Schema/index.d.ts +5 -0
  216. package/lib/components/Schema/index.js +2 -0
  217. package/lib/components/Schema/types.d.ts +22 -0
  218. package/lib/{redoc-lib/src/components/SecuritySchemes → components/Schema}/types.js +0 -0
  219. package/lib/components/SchemaDefinition/SchemaDefinition.d.ts +15 -0
  220. package/lib/components/SchemaDefinition/SchemaDefinition.js +7 -0
  221. package/lib/components/SchemaDefinition/index.d.ts +1 -0
  222. package/lib/components/SchemaDefinition/index.js +2 -0
  223. package/lib/components/Search/MenuItemProSearch.d.ts +1 -22
  224. package/lib/components/Search/MenuItemProSearch.js +1 -9
  225. package/lib/components/Search/SearchBox.d.ts +8 -0
  226. package/lib/components/Search/SearchBox.js +2 -0
  227. package/lib/components/Search/SearchField.d.ts +1 -1
  228. package/lib/components/Search/index.d.ts +1 -1
  229. package/lib/components/Search/index.js +1 -1
  230. package/lib/components/Search/styled.d.ts +3 -0
  231. package/lib/components/Search/styled.js +9 -1
  232. package/lib/components/Search/types.d.ts +39 -0
  233. package/lib/{redoc-lib/src/services → components/Search}/types.js +0 -0
  234. package/lib/components/Search/utils.d.ts +11 -0
  235. package/lib/components/Search/utils.js +2 -0
  236. package/lib/components/SectionItem/SectionItem.d.ts +7 -0
  237. package/lib/components/SectionItem/SectionItem.js +2 -0
  238. package/lib/{redoc-lib/src/components → components}/SectionItem/index.d.ts +0 -0
  239. package/lib/{redoc-lib/src/components → components}/SectionItem/index.js +0 -0
  240. package/lib/components/SecurityRequirement/PanelDescription.d.ts +7 -0
  241. package/lib/components/SecurityRequirement/PanelDescription.js +2 -0
  242. package/lib/components/SecurityRequirement/RequiredScopesRow.d.ts +3 -0
  243. package/lib/components/SecurityRequirement/RequiredScopesRow.js +2 -0
  244. package/lib/components/SecurityRequirement/RequirementElement.d.ts +7 -0
  245. package/lib/components/SecurityRequirement/RequirementElement.js +24 -0
  246. package/lib/components/SecurityRequirement/SecurityDefs.d.ts +7 -0
  247. package/lib/components/SecurityRequirement/SecurityDefs.js +4 -0
  248. package/lib/components/SecurityRequirement/SecurityRequirement.d.ts +6 -0
  249. package/lib/components/SecurityRequirement/SecurityRequirement.js +24 -0
  250. package/lib/components/SecurityRequirement/constants.d.ts +6 -0
  251. package/lib/components/SecurityRequirement/constants.js +2 -0
  252. package/lib/components/SecurityRequirement/index.d.ts +3 -0
  253. package/lib/components/SecurityRequirement/index.js +2 -0
  254. package/lib/components/SecurityRequirement/styled.d.ts +1 -0
  255. package/lib/components/SecurityRequirement/styled.js +4 -0
  256. package/lib/{redoc-lib/src/components → components}/SecuritySchemes/SecuritySchemes.d.ts +0 -0
  257. package/lib/components/SecuritySchemes/SecuritySchemes.js +2 -0
  258. package/lib/{redoc-lib/src/components → components}/SecuritySchemes/helpers.d.ts +0 -0
  259. package/lib/{redoc-lib/src/components → components}/SecuritySchemes/helpers.js +0 -0
  260. package/lib/{redoc-lib/src/components → components}/SecuritySchemes/index.d.ts +0 -0
  261. package/lib/{redoc-lib/src/components → components}/SecuritySchemes/index.js +0 -0
  262. package/lib/{redoc-lib/src/components → components}/SecuritySchemes/types.d.ts +0 -0
  263. package/lib/components/SecuritySchemes/types.js +2 -0
  264. package/lib/{redoc-lib/src/components → components}/SeeMore/SeeMore.d.ts +0 -0
  265. package/lib/{redoc-lib/src/components → components}/SeeMore/SeeMore.js +0 -0
  266. package/lib/components/SeeMore/index.d.ts +1 -0
  267. package/lib/components/SeeMore/index.js +2 -0
  268. package/lib/components/SideMenu/MenuItem.d.ts +10 -0
  269. package/lib/components/SideMenu/MenuItem.js +2 -0
  270. package/lib/components/SideMenu/MenuItemEternalLink.d.ts +6 -0
  271. package/lib/components/SideMenu/MenuItemEternalLink.js +2 -0
  272. package/lib/components/SideMenu/MenuItemLinkOrLabel.d.ts +7 -0
  273. package/lib/components/SideMenu/MenuItemLinkOrLabel.js +2 -0
  274. package/lib/components/SideMenu/MenuItems.d.ts +2 -0
  275. package/lib/components/SideMenu/MenuItems.js +2 -0
  276. package/lib/components/SideMenu/MenuOperationItemContent.d.ts +7 -0
  277. package/lib/components/SideMenu/MenuOperationItemContent.js +8 -0
  278. package/lib/components/SideMenu/SideMenu.d.ts +5 -0
  279. package/lib/components/SideMenu/SideMenu.js +2 -0
  280. package/lib/components/SideMenu/index.d.ts +4 -0
  281. package/lib/components/SideMenu/index.js +2 -0
  282. package/lib/components/SideMenu/styled.d.ts +21 -0
  283. package/lib/components/SideMenu/styled.js +97 -0
  284. package/lib/components/SideMenu/types.d.ts +19 -0
  285. package/lib/components/SideMenu/types.js +2 -0
  286. package/lib/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +2 -0
  287. package/lib/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
  288. package/lib/components/SourceCodeWithFile/index.d.ts +1 -0
  289. package/lib/components/SourceCodeWithFile/index.js +2 -0
  290. package/lib/components/StickySidebar/StickyResponsiveSidebar.d.ts +11 -0
  291. package/lib/components/StickySidebar/StickyResponsiveSidebar.js +40 -0
  292. package/lib/components/StickySidebar/index.d.ts +1 -0
  293. package/lib/components/StickySidebar/index.js +2 -0
  294. package/lib/components/StoreProvider.d.ts +3 -4
  295. package/lib/components/StoreProvider.js +1 -1
  296. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +1 -1
  297. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +1 -1
  298. package/lib/components/common/CheckboxList.d.ts +2 -15
  299. package/lib/components/common/CheckboxList.js +1 -1
  300. package/lib/components/common/Dropdown/Dropdown.js +1 -1
  301. package/lib/components/common/Fields/fields-layout.d.ts +16 -0
  302. package/lib/components/common/Fields/fields-layout.js +228 -0
  303. package/lib/{redoc-lib/src/common-elements → components/common/Fields}/fields.d.ts +0 -0
  304. package/lib/components/common/Fields/fields.js +103 -0
  305. package/lib/components/common/Fields/index.d.ts +2 -0
  306. package/lib/components/common/Fields/index.js +2 -0
  307. package/lib/components/common/FileUpload/FileUpload.d.ts +1 -2
  308. package/lib/components/common/FileUpload/helper.d.ts +1 -2
  309. package/lib/components/common/LinkToField.d.ts +9 -0
  310. package/lib/components/common/LinkToField.js +27 -0
  311. package/lib/components/common/TextField.js +2 -2
  312. package/lib/{redoc-lib/src/common-elements → components/common}/headers.d.ts +0 -0
  313. package/lib/components/common/headers.js +36 -0
  314. package/lib/components/common/index.d.ts +12 -0
  315. package/lib/components/common/index.js +2 -0
  316. package/lib/{redoc-lib/src/common-elements → components/common}/linkify.d.ts +0 -0
  317. package/lib/components/common/linkify.js +55 -0
  318. package/lib/{redoc-lib/src/common-elements → components/common}/mixins.d.ts +0 -0
  319. package/lib/{redoc-lib/src/common-elements → components/common}/mixins.js +0 -0
  320. package/lib/components/common/panels.d.ts +13 -0
  321. package/lib/components/common/panels.js +91 -0
  322. package/lib/{redoc-lib/src/common-elements → components/common}/perfect-scrollbar.d.ts +0 -0
  323. package/lib/components/common/perfect-scrollbar.js +4 -0
  324. package/lib/{redoc-lib/src/common-elements → components/common}/schema.d.ts +0 -0
  325. package/lib/{redoc-lib/src/common-elements → components/common}/schema.js +0 -0
  326. package/lib/{redoc-lib/src/common-elements → components/common}/shelfs.d.ts +0 -0
  327. package/lib/{redoc-lib/src/common-elements → components/common}/shelfs.js +0 -0
  328. package/lib/components/icons/CrossIcon.d.ts +4 -0
  329. package/lib/components/icons/CrossIcon.js +11 -0
  330. package/lib/components/icons/FileIcon.d.ts +4 -0
  331. package/lib/components/icons/FileIcon.js +9 -0
  332. package/lib/components/icons/LinkIcon.d.ts +4 -0
  333. package/lib/components/icons/LinkIcon.js +11 -0
  334. package/lib/components/icons/LockIcon.d.ts +2 -0
  335. package/lib/components/icons/LockIcon.js +12 -0
  336. package/lib/components/icons/SearchIcon.d.ts +5 -0
  337. package/lib/components/icons/SearchIcon.js +11 -0
  338. package/lib/components/icons/ShelfIcon.d.ts +2 -0
  339. package/lib/components/icons/ShelfIcon.js +12 -0
  340. package/lib/components/icons/Spinner.d.ts +2 -0
  341. package/lib/components/icons/Spinner.js +19 -0
  342. package/lib/components/icons/index.d.ts +8 -0
  343. package/lib/components/icons/index.js +2 -0
  344. package/lib/components/icons/types.d.ts +10 -0
  345. package/lib/components/icons/types.js +2 -0
  346. package/lib/components/index.d.ts +28 -7
  347. package/lib/components/index.js +1 -1
  348. package/lib/components/pluggable/PullRight.js +2 -2
  349. package/lib/components/pluggable/RedocExample.d.ts +3 -6
  350. package/lib/components/pluggable/RedocExample.js +1 -1
  351. package/lib/components/pluggable/RedocRequestBody.d.ts +1 -4
  352. package/lib/components/pluggable/RedocRequestBody.js +1 -1
  353. package/lib/components/pluggable/RedocResponse.d.ts +2 -5
  354. package/lib/components/pluggable/RedocResponse.js +1 -1
  355. package/lib/components/pluggable/RedocSchema.d.ts +2 -5
  356. package/lib/components/pluggable/RedocSchema.js +1 -1
  357. package/lib/components/pluggable/index.d.ts +5 -5
  358. package/lib/components/pluggable/index.js +1 -1
  359. package/lib/components/pluggable/styled.components.js +2 -2
  360. package/lib/components/rightPanel/ActionPanel.d.ts +12 -0
  361. package/lib/components/rightPanel/ActionPanel.js +4 -0
  362. package/lib/components/rightPanel/AuthPanel/AuthPanel.d.ts +2 -0
  363. package/lib/components/rightPanel/AuthPanel/AuthPanel.js +2 -0
  364. package/lib/components/{console → rightPanel}/AuthPanel/index.d.ts +0 -0
  365. package/lib/components/{console → rightPanel}/AuthPanel/index.js +0 -0
  366. package/lib/components/rightPanel/AuthPanel/types.d.ts +14 -0
  367. package/lib/components/rightPanel/AuthPanel/types.js +2 -0
  368. package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.d.ts +5 -0
  369. package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.js +2 -0
  370. package/lib/components/{console/codemirror-helpers.d.ts → rightPanel/CodemirrorInput/helpers.d.ts} +0 -0
  371. package/lib/components/rightPanel/CodemirrorInput/helpers.js +2 -0
  372. package/lib/components/rightPanel/CodemirrorInput/index.d.ts +1 -0
  373. package/lib/components/rightPanel/CodemirrorInput/index.js +2 -0
  374. package/lib/components/rightPanel/CodemirrorInput/styled.d.ts +1 -0
  375. package/lib/components/rightPanel/CodemirrorInput/styled.js +50 -0
  376. package/lib/components/rightPanel/CodemirrorInput/types.d.ts +22 -0
  377. package/lib/components/rightPanel/CodemirrorInput/types.js +2 -0
  378. package/lib/components/rightPanel/Console/Console.d.ts +3 -0
  379. package/lib/components/rightPanel/Console/Console.js +2 -0
  380. package/lib/components/rightPanel/Console/ConsoleLazy.d.ts +2 -0
  381. package/lib/components/rightPanel/Console/ConsoleLazy.js +2 -0
  382. package/lib/components/rightPanel/Console/ConsoleWrapper.d.ts +6 -0
  383. package/lib/components/rightPanel/Console/ConsoleWrapper.js +2 -0
  384. package/lib/components/rightPanel/Console/Request.d.ts +12 -0
  385. package/lib/components/rightPanel/Console/Request.js +2 -0
  386. package/lib/components/rightPanel/Console/index.d.ts +1 -0
  387. package/lib/components/rightPanel/Console/index.js +2 -0
  388. package/lib/components/rightPanel/Console/types.d.ts +18 -0
  389. package/lib/components/rightPanel/Console/types.js +2 -0
  390. package/lib/components/{console → rightPanel}/ConsoleTabs/ConsoleTabs.d.ts +0 -0
  391. package/lib/components/{console → rightPanel}/ConsoleTabs/ConsoleTabs.js +0 -0
  392. package/lib/components/{console → rightPanel}/ConsoleTabs/index.d.ts +0 -0
  393. package/lib/components/{console → rightPanel}/ConsoleTabs/index.js +0 -0
  394. package/lib/components/{console → rightPanel}/ConsoleTabs/styled.d.ts +0 -0
  395. package/lib/components/{console → rightPanel}/ConsoleTabs/styled.js +0 -0
  396. package/lib/components/rightPanel/OAuth2Flow/Error.d.ts +7 -0
  397. package/lib/components/rightPanel/OAuth2Flow/Error.js +2 -0
  398. package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.d.ts +2 -0
  399. package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.js +2 -0
  400. package/lib/components/rightPanel/OAuth2Flow/index.d.ts +2 -0
  401. package/lib/components/rightPanel/OAuth2Flow/index.js +2 -0
  402. package/lib/components/rightPanel/OAuth2Flow/styled.d.ts +4 -0
  403. package/lib/components/rightPanel/OAuth2Flow/styled.js +14 -0
  404. package/lib/components/rightPanel/OAuth2Flow/types.d.ts +20 -0
  405. package/lib/components/rightPanel/OAuth2Flow/types.js +2 -0
  406. package/lib/components/rightPanel/OAuth2TokenInput.d.ts +21 -0
  407. package/lib/components/rightPanel/OAuth2TokenInput.js +2 -0
  408. package/lib/components/rightPanel/OpenIDConnect.d.ts +17 -0
  409. package/lib/components/{console → rightPanel}/OpenIDConnect.js +0 -0
  410. package/lib/components/rightPanel/ParameterArray.d.ts +9 -0
  411. package/lib/components/{console → rightPanel}/ParameterArray.js +0 -0
  412. package/lib/components/{console → rightPanel}/ParameterDropdown.d.ts +0 -0
  413. package/lib/components/rightPanel/ParameterDropdown.js +2 -0
  414. package/lib/components/rightPanel/RequestBody/Body.d.ts +3 -0
  415. package/lib/components/rightPanel/RequestBody/Body.js +2 -0
  416. package/lib/components/rightPanel/RequestBody/RequestBody.d.ts +3 -0
  417. package/lib/components/rightPanel/RequestBody/RequestBody.js +2 -0
  418. package/lib/components/{console → rightPanel}/RequestBody/index.d.ts +0 -0
  419. package/lib/components/{console → rightPanel}/RequestBody/index.js +0 -0
  420. package/lib/components/rightPanel/RequestBody/types.d.ts +16 -0
  421. package/lib/components/rightPanel/RequestBody/types.js +2 -0
  422. package/lib/components/rightPanel/RequestBodyForm.d.ts +8 -0
  423. package/lib/components/rightPanel/RequestBodyForm.js +10 -0
  424. package/lib/components/{console → rightPanel}/RequestMimeLabel.d.ts +0 -0
  425. package/lib/components/{console → rightPanel}/RequestMimeLabel.js +0 -0
  426. package/lib/components/rightPanel/ResponseBody.d.ts +4 -0
  427. package/lib/components/rightPanel/ResponseBody.js +2 -0
  428. package/lib/components/{console → rightPanel}/ResponseHeadersList.d.ts +0 -0
  429. package/lib/components/rightPanel/ResponseHeadersList.js +10 -0
  430. package/lib/components/rightPanel/ResponsePanel.d.ts +9 -0
  431. package/lib/components/rightPanel/ResponsePanel.js +18 -0
  432. package/lib/components/{console → rightPanel}/Scope.d.ts +0 -0
  433. package/lib/components/{console → rightPanel}/Scope.js +0 -0
  434. package/lib/components/{console → rightPanel}/ServerVariable.d.ts +0 -0
  435. package/lib/components/rightPanel/ServerVariable.js +5 -0
  436. package/lib/components/{console → rightPanel}/ServersDropdown/ServersDropdown.d.ts +0 -0
  437. package/lib/components/rightPanel/ServersDropdown/ServersDropdown.js +4 -0
  438. package/lib/components/{console → rightPanel}/ServersDropdown/index.d.ts +0 -0
  439. package/lib/components/{console → rightPanel}/ServersDropdown/index.js +0 -0
  440. package/lib/components/rightPanel/ServersDropdown/types.d.ts +6 -0
  441. package/lib/components/rightPanel/ServersDropdown/types.js +2 -0
  442. package/lib/components/{console → rightPanel}/TryItPanel.d.ts +0 -0
  443. package/lib/components/rightPanel/TryItPanel.js +14 -0
  444. package/lib/components/{console → rightPanel}/styled.d.ts +0 -0
  445. package/lib/components/{console → rightPanel}/styled.js +0 -0
  446. package/lib/components/rightPanel/types.d.ts +10 -0
  447. package/lib/components/rightPanel/types.js +2 -0
  448. package/lib/components/rightPanel/utils.d.ts +28 -0
  449. package/lib/components/rightPanel/utils.js +2 -0
  450. package/lib/components/styled.elements.d.ts +1 -1
  451. package/lib/components/styled.elements.js +4 -4
  452. package/lib/components/types.d.ts +1 -8
  453. package/lib/constants.d.ts +27 -2
  454. package/lib/constants.js +1 -1
  455. package/lib/context/OptionsProvider.d.ts +6 -0
  456. package/lib/context/OptionsProvider.js +2 -0
  457. package/lib/context/StoreProvider.d.ts +6 -0
  458. package/lib/context/StoreProvider.js +2 -0
  459. package/lib/context/index.d.ts +2 -0
  460. package/lib/context/index.js +2 -0
  461. package/lib/events/types.d.ts +3 -3
  462. package/lib/hooks/index.d.ts +1 -2
  463. package/lib/hooks/index.js +1 -1
  464. package/lib/hooks/usePrevious.d.ts +1 -0
  465. package/lib/hooks/usePrevious.js +2 -0
  466. package/lib/index.d.ts +5 -3
  467. package/lib/index.js +1 -1
  468. package/lib/models/ApiInfo.d.ts +17 -0
  469. package/lib/models/ApiInfo.js +2 -0
  470. package/lib/models/Callback.d.ts +11 -0
  471. package/lib/models/Callback.js +2 -0
  472. package/lib/models/Example.d.ts +17 -0
  473. package/lib/models/Example.js +2 -0
  474. package/lib/models/Field.d.ts +34 -0
  475. package/lib/models/Field.js +2 -0
  476. package/lib/models/Group.d.ts +26 -0
  477. package/lib/models/Group.js +2 -0
  478. package/lib/models/MediaContent.d.ts +31 -0
  479. package/lib/models/MediaContent.js +2 -0
  480. package/lib/models/MediaType.d.ts +27 -0
  481. package/lib/models/MediaType.js +2 -0
  482. package/lib/models/Operation.d.ts +92 -0
  483. package/lib/models/Operation.js +2 -0
  484. package/lib/models/RequestBody.d.ts +18 -0
  485. package/lib/models/RequestBody.js +2 -0
  486. package/lib/models/Response.d.ts +28 -0
  487. package/lib/models/Response.js +2 -0
  488. package/lib/models/Schema.d.ts +78 -0
  489. package/lib/models/Schema.js +2 -0
  490. package/lib/models/SecurityRequirement.d.ts +12 -0
  491. package/lib/{redoc-lib/src/services/models → models}/SecurityRequirement.js +0 -0
  492. package/lib/models/SecuritySchemes.d.ts +25 -0
  493. package/lib/{redoc-lib/src/services/models → models}/SecuritySchemes.js +0 -0
  494. package/lib/models/Webhook.d.ts +8 -0
  495. package/lib/models/Webhook.js +2 -0
  496. package/lib/models/file-upload.d.ts +1 -1
  497. package/lib/models/index.d.ts +15 -0
  498. package/lib/models/index.js +1 -1
  499. package/lib/models/types.d.ts +3 -0
  500. package/lib/models/types.js +2 -0
  501. package/lib/services/MarkdownRenderer.d.ts +23 -0
  502. package/lib/services/MarkdownRenderer.js +2 -0
  503. package/lib/{redoc-lib/src/services → services}/MarkerService.d.ts +0 -0
  504. package/lib/{redoc-lib/src/services → services}/MarkerService.js +0 -0
  505. package/lib/services/MenuBuilder.d.ts +63 -0
  506. package/lib/services/MenuBuilder.js +2 -0
  507. package/lib/services/OpenAPIParser.d.ts +51 -0
  508. package/lib/services/OpenAPIParser.js +2 -0
  509. package/lib/services/Options/NormalizedOptions.d.ts +2 -0
  510. package/lib/services/Options/NormalizedOptions.js +2 -0
  511. package/lib/services/Options/helpers.d.ts +8 -0
  512. package/lib/services/Options/helpers.js +2 -0
  513. package/lib/services/Options/index.d.ts +2 -0
  514. package/lib/services/Options/index.js +2 -0
  515. package/lib/services/Options/types.d.ts +258 -0
  516. package/lib/services/Options/types.js +2 -0
  517. package/lib/services/ProMenu.d.ts +8 -5
  518. package/lib/services/ProMenu.js +1 -1
  519. package/lib/services/ProStore.d.ts +16 -77
  520. package/lib/services/ProStore.js +1 -1
  521. package/lib/services/ScrollService.d.ts +18 -0
  522. package/lib/{redoc-lib/src/services → services}/ScrollService.js +0 -0
  523. package/lib/services/SpecStore.d.ts +18 -0
  524. package/lib/services/SpecStore.js +2 -0
  525. package/lib/services/VersionedSpecStore.d.ts +7 -5
  526. package/lib/services/VersionedSpecStore.js +1 -1
  527. package/lib/services/check.d.ts +1 -1
  528. package/lib/services/code-samples/generator.d.ts +3 -2
  529. package/lib/services/code-samples/generator.js +1 -1
  530. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +1 -1
  531. package/lib/services/code-samples/httpsnippet/helpers/lodash-int.js +1 -1
  532. package/lib/services/code-samples/httpsnippet/index.d.ts +1 -1
  533. package/lib/services/code-samples/httpsnippet/index.js +1 -1
  534. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  535. package/lib/services/code-samples/httpsnippet/targets/go/native.js +1 -1
  536. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.js +1 -1
  537. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.js +1 -1
  538. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -1
  539. package/lib/services/code-samples/httpsnippet/targets/node/fetch.js +1 -1
  540. package/lib/services/code-samples/httpsnippet/targets/php/curl.js +1 -1
  541. package/lib/services/code-samples/httpsnippet/targets/php/types.d.ts +2 -2
  542. package/lib/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
  543. package/lib/services/code-samples/httpsnippet/targets/r/httr.js +1 -1
  544. package/lib/services/code-samples/httpsnippet/targets/ruby/native.js +1 -1
  545. package/lib/services/code-samples/httpsnippet/targets/shell/curl.js +1 -1
  546. package/lib/services/code-samples/types.d.ts +2 -2
  547. package/lib/services/history/FakeHistoryService.d.ts +4 -4
  548. package/lib/{redoc-lib/src/services → services/history}/HistoryService.d.ts +0 -0
  549. package/lib/services/history/HistoryService.js +2 -0
  550. package/lib/services/history/ProHashHistoryService.d.ts +4 -4
  551. package/lib/services/history/ProHashHistoryService.js +1 -1
  552. package/lib/services/history/PushStateHistoryService.d.ts +4 -4
  553. package/lib/services/history/PushStateHistoryService.js +1 -1
  554. package/lib/services/history/helpers.d.ts +1 -1
  555. package/lib/services/history/index.d.ts +1 -0
  556. package/lib/services/history/index.js +1 -1
  557. package/lib/services/index.d.ts +13 -1
  558. package/lib/services/index.js +1 -1
  559. package/lib/{redoc-lib/src/services/Labels.d.ts → services/labels/LabelsService.d.ts} +0 -0
  560. package/lib/services/labels/LabelsService.js +2 -0
  561. package/lib/services/labels/index.d.ts +2 -0
  562. package/lib/services/labels/index.js +2 -0
  563. package/lib/services/labels/types.d.ts +28 -0
  564. package/lib/services/labels/types.js +2 -0
  565. package/lib/services/search/DeepSearchStore.d.ts +19 -0
  566. package/lib/services/search/DeepSearchStore.js +2 -0
  567. package/lib/services/search/RemoteSearch.d.ts +17 -0
  568. package/lib/services/search/RemoteSearch.js +2 -0
  569. package/lib/services/search/SearchStore.d.ts +14 -0
  570. package/lib/services/search/SearchStore.js +2 -0
  571. package/lib/{redoc-lib/src/services → services/search}/SearchWorker.worker.d.ts +0 -0
  572. package/lib/{redoc-lib/src/services → services/search}/SearchWorker.worker.js +0 -0
  573. package/lib/services/search/index.d.ts +4 -0
  574. package/lib/services/search/index.js +2 -0
  575. package/lib/services/search/types.d.ts +15 -0
  576. package/lib/services/search/types.js +2 -0
  577. package/lib/services/types.d.ts +197 -6
  578. package/lib/services/utils.js +1 -1
  579. package/lib/standalone.d.ts +5 -4
  580. package/lib/standalone.js +1 -1
  581. package/lib/testProviders.js +1 -1
  582. package/lib/types/index.d.ts +3 -0
  583. package/lib/types/index.js +2 -0
  584. package/lib/types/open-api.d.ts +337 -0
  585. package/lib/{redoc-lib/src/types → types}/open-api.js +0 -0
  586. package/lib/types/security.d.ts +11 -0
  587. package/lib/types/security.js +2 -0
  588. package/lib/{redoc-lib/src/types → types}/server.d.ts +0 -0
  589. package/lib/{redoc-lib/src/types → types}/server.js +0 -0
  590. package/lib/{redoc-lib/src/utils → utils}/JsonPointer.d.ts +0 -0
  591. package/lib/{redoc-lib/src/utils → utils}/JsonPointer.js +0 -0
  592. package/lib/utils/argValuesHelpers.d.ts +4 -0
  593. package/lib/utils/argValuesHelpers.js +2 -0
  594. package/lib/utils/debounce.d.ts +1 -0
  595. package/lib/utils/debounce.js +2 -0
  596. package/lib/{redoc-lib/src/utils → utils}/debug.d.ts +0 -0
  597. package/lib/{redoc-lib/src/utils → utils}/debug.js +0 -0
  598. package/lib/{redoc-lib/src/utils → utils}/decorators.d.ts +0 -0
  599. package/lib/{redoc-lib/src/utils → utils}/decorators.js +0 -0
  600. package/lib/{redoc-lib/src/utils → utils}/dom.d.ts +0 -0
  601. package/lib/{redoc-lib/src/utils → utils}/dom.js +0 -0
  602. package/lib/utils/helpers.d.ts +51 -0
  603. package/lib/utils/helpers.js +2 -0
  604. package/lib/{redoc-lib/src/utils → utils}/highlight.d.ts +0 -0
  605. package/lib/{redoc-lib/src/utils → utils}/highlight.js +0 -0
  606. package/lib/utils/index.d.ts +21 -0
  607. package/lib/utils/index.js +2 -0
  608. package/lib/{redoc-lib/src/utils → utils}/loadAndBundleSpec.d.ts +0 -0
  609. package/lib/utils/loadAndBundleSpec.js +2 -0
  610. package/lib/utils/local-storage.d.ts +2 -0
  611. package/lib/utils/local-storage.js +2 -0
  612. package/lib/utils/media-css.d.ts +8 -0
  613. package/lib/utils/media-css.js +2 -0
  614. package/lib/{redoc-lib/src/utils → utils}/memoize.d.ts +0 -0
  615. package/lib/{redoc-lib/src/utils → utils}/memoize.js +0 -0
  616. package/lib/{redoc-lib/src/utils → utils}/object.d.ts +0 -0
  617. package/lib/{redoc-lib/src/utils → utils}/object.js +0 -0
  618. package/lib/utils/openapi.d.ts +41 -0
  619. package/lib/utils/openapi.js +2 -0
  620. package/lib/utils/parameters.d.ts +2 -0
  621. package/lib/utils/parameters.js +2 -0
  622. package/lib/utils/security-details.d.ts +13 -0
  623. package/lib/utils/security-details.js +2 -0
  624. package/lib/utils/session-storage.d.ts +2 -0
  625. package/lib/utils/session-storage.js +2 -0
  626. package/lib/{redoc-lib/src/utils → utils}/sort.d.ts +0 -0
  627. package/lib/{redoc-lib/src/utils → utils}/sort.js +0 -0
  628. package/lib/utils/store.d.ts +3 -0
  629. package/lib/utils/store.js +2 -0
  630. package/lib/utils/string.d.ts +3 -0
  631. package/lib/utils/string.js +2 -0
  632. package/lib/{redoc-lib/src/utils → utils}/test-utils.d.ts +0 -0
  633. package/lib/{redoc-lib/src/utils → utils}/test-utils.js +0 -0
  634. package/lib/{redoc-lib/src/utils → utils}/theme-helpers.d.ts +0 -0
  635. package/lib/{redoc-lib/src/utils → utils}/theme-helpers.js +0 -0
  636. package/lib-esm/cli/commands/bundle.js +1 -1
  637. package/lib-esm/components/ApiInfo/ApiInfo.d.ts +4 -0
  638. package/lib-esm/components/ApiInfo/ApiInfo.js +2 -0
  639. package/lib-esm/components/ApiInfo/index.d.ts +2 -0
  640. package/lib-esm/{redoc-lib/src/components → components}/ApiInfo/index.js +0 -0
  641. package/lib-esm/components/ApiInfo/styled.d.ts +4 -0
  642. package/lib-esm/components/ApiInfo/styled.js +24 -0
  643. package/lib-esm/components/ApiInfo/types.d.ts +4 -0
  644. package/lib-esm/components/{console/AuthPanel → ApiInfo}/types.js +0 -0
  645. package/lib-esm/components/CallbackSamples/CallbackReqSamples.d.ts +7 -0
  646. package/lib-esm/components/CallbackSamples/CallbackReqSamples.js +4 -0
  647. package/lib-esm/components/CallbackSamples/CallbackSamples.d.ts +7 -0
  648. package/lib-esm/components/CallbackSamples/CallbackSamples.js +2 -0
  649. package/lib-esm/components/CallbackSamples/index.d.ts +1 -0
  650. package/lib-esm/components/CallbackSamples/index.js +2 -0
  651. package/lib-esm/components/Callbacks/CallbackDetails.d.ts +6 -0
  652. package/lib-esm/components/Callbacks/CallbackDetails.js +4 -0
  653. package/lib-esm/components/Callbacks/CallbackOperation.d.ts +5 -0
  654. package/lib-esm/components/Callbacks/CallbackOperation.js +2 -0
  655. package/lib-esm/components/Callbacks/CallbackSummary.d.ts +6 -0
  656. package/lib-esm/components/Callbacks/CallbackSummary.js +2 -0
  657. package/lib-esm/components/Callbacks/CallbacksList.d.ts +6 -0
  658. package/lib-esm/components/Callbacks/CallbacksList.js +2 -0
  659. package/lib-esm/{redoc-lib/src/components → components}/Callbacks/index.d.ts +0 -0
  660. package/lib-esm/{redoc-lib/src/components → components}/Callbacks/index.js +0 -0
  661. package/lib-esm/{redoc-lib/src/components/Callbacks/CallbackTitle.d.ts → components/Callbacks/styled.d.ts} +0 -0
  662. package/lib-esm/components/Callbacks/styled.js +7 -0
  663. package/lib-esm/components/ContentItem/ContentItem.d.ts +11 -0
  664. package/lib-esm/components/ContentItem/ContentItem.js +2 -0
  665. package/lib-esm/{redoc-lib/src/components → components}/ContentItem/index.d.ts +0 -0
  666. package/lib-esm/{redoc-lib/src/components → components}/ContentItem/index.js +0 -0
  667. package/lib-esm/components/ContentItems/ContentItems.d.ts +9 -0
  668. package/lib-esm/components/ContentItems/ContentItems.js +2 -0
  669. package/lib-esm/{redoc-lib/src/components → components}/ContentItems/Skeleton.d.ts +0 -0
  670. package/lib-esm/components/ContentItems/Skeleton.js +31 -0
  671. package/lib-esm/{redoc-lib/src/components → components}/ContentItems/index.d.ts +0 -0
  672. package/lib-esm/{redoc-lib/src/components → components}/ContentItems/index.js +0 -0
  673. package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +11 -0
  674. package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.js +2 -0
  675. package/lib-esm/components/DiscriminatorDropdown/index.d.ts +1 -0
  676. package/lib-esm/components/DiscriminatorDropdown/index.js +2 -0
  677. package/lib-esm/components/Download/DownloadButtonWithLabel.d.ts +4 -0
  678. package/lib-esm/components/Download/DownloadButtonWithLabel.js +21 -0
  679. package/lib-esm/components/Download/DownloadLink.d.ts +2 -0
  680. package/lib-esm/components/Download/DownloadLink.js +4 -0
  681. package/lib-esm/components/Download/index.d.ts +3 -0
  682. package/lib-esm/components/Download/index.js +2 -0
  683. package/lib-esm/components/Download/types.d.ts +6 -0
  684. package/lib-esm/components/{console/RequestBody → Download}/types.js +0 -0
  685. package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.d.ts +7 -0
  686. package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.js +8 -0
  687. package/lib-esm/components/DropdownOrLabel/index.d.ts +1 -0
  688. package/lib-esm/components/DropdownOrLabel/index.js +2 -0
  689. package/lib-esm/components/Endpoint/Endpoint.js +1 -1
  690. package/lib-esm/components/Endpoint/ServerList.js +1 -1
  691. package/lib-esm/components/Endpoint/styled.js +1 -1
  692. package/lib-esm/components/Endpoint/types.d.ts +2 -2
  693. package/lib-esm/{redoc-lib/src/components → components/ErrorBoundary}/ErrorBoundary.d.ts +0 -0
  694. package/lib-esm/{redoc-lib/src/components → components/ErrorBoundary}/ErrorBoundary.js +0 -0
  695. package/lib-esm/components/ErrorBoundary/index.d.ts +1 -0
  696. package/lib-esm/components/ErrorBoundary/index.js +2 -0
  697. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.d.ts +8 -0
  698. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.js +5 -0
  699. package/lib-esm/components/ExternalDocumentation/index.d.ts +1 -0
  700. package/lib-esm/components/ExternalDocumentation/index.js +2 -0
  701. package/lib-esm/{redoc-lib/src/components/Fields/FieldContstraints.d.ts → components/Fields/ConstraintsView.d.ts} +0 -0
  702. package/lib-esm/components/Fields/ConstraintsView.js +2 -0
  703. package/lib-esm/components/Fields/DescriptionEnums.d.ts +4 -0
  704. package/lib-esm/components/Fields/DescriptionEnums.js +2 -0
  705. package/lib-esm/components/Fields/EnumValues.d.ts +3 -0
  706. package/lib-esm/components/Fields/EnumValues.js +2 -0
  707. package/lib-esm/components/Fields/Examples.d.ts +5 -0
  708. package/lib-esm/components/Fields/Examples.js +2 -0
  709. package/lib-esm/components/Fields/Extensions.d.ts +3 -0
  710. package/lib-esm/components/Fields/Extensions.js +4 -0
  711. package/lib-esm/components/Fields/Field.d.ts +4 -0
  712. package/lib-esm/components/Fields/Field.js +2 -0
  713. package/lib-esm/components/Fields/FieldDetail.d.ts +8 -0
  714. package/lib-esm/components/Fields/FieldDetail.js +2 -0
  715. package/lib-esm/components/Fields/FieldDetails.d.ts +4 -0
  716. package/lib-esm/components/Fields/FieldDetails.js +2 -0
  717. package/lib-esm/components/Fields/SimpleEnums.d.ts +4 -0
  718. package/lib-esm/components/Fields/SimpleEnums.js +2 -0
  719. package/lib-esm/components/Fields/index.d.ts +4 -0
  720. package/lib-esm/components/Fields/index.js +2 -0
  721. package/lib-esm/components/Fields/styled.d.ts +13 -0
  722. package/lib-esm/components/Fields/styled.js +26 -0
  723. package/lib-esm/components/Fields/types.d.ts +40 -0
  724. package/lib-esm/components/{console/ServersDropdown → Fields}/types.js +0 -0
  725. package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +9 -0
  726. package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +2 -0
  727. package/lib-esm/components/GenericChildrenSwitcher/index.d.ts +1 -0
  728. package/lib-esm/components/GenericChildrenSwitcher/index.js +2 -0
  729. package/lib-esm/components/Loading/Loading.d.ts +4 -0
  730. package/lib-esm/components/Loading/Loading.js +9 -0
  731. package/lib-esm/components/Loading/index.d.ts +1 -0
  732. package/lib-esm/components/Loading/index.js +2 -0
  733. package/lib-esm/{redoc-lib/src/components → components}/Markdown/AdvancedMarkdown.d.ts +0 -0
  734. package/lib-esm/components/Markdown/AdvancedMarkdown.js +2 -0
  735. package/lib-esm/{redoc-lib/src/components → components}/Markdown/Markdown.d.ts +0 -0
  736. package/lib-esm/{redoc-lib/src/components → components}/Markdown/Markdown.js +0 -0
  737. package/lib-esm/{redoc-lib/src/components → components}/Markdown/SanitizedMarkdownHTML.d.ts +0 -0
  738. package/lib-esm/components/Markdown/SanitizedMarkdownHTML.js +2 -0
  739. package/lib-esm/{redoc-lib/src/components → components}/Markdown/index.d.ts +0 -0
  740. package/lib-esm/{redoc-lib/src/components → components}/Markdown/index.js +0 -0
  741. package/lib-esm/{redoc-lib/src/components → components}/Markdown/styled.d.ts +0 -0
  742. package/lib-esm/components/Markdown/styled.js +257 -0
  743. package/lib-esm/components/Markdown/types.d.ts +16 -0
  744. package/lib-esm/{redoc-lib/src/components → components}/Markdown/types.js +0 -0
  745. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +11 -0
  746. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.js +2 -0
  747. package/lib-esm/components/MediaTypeSwitch/index.d.ts +1 -0
  748. package/lib-esm/components/MediaTypeSwitch/index.js +2 -0
  749. package/lib-esm/components/NextSectionButton.d.ts +3 -3
  750. package/lib-esm/components/NextSectionButton.js +1 -1
  751. package/lib-esm/components/Operation/Operation.d.ts +4 -0
  752. package/lib-esm/components/Operation/Operation.js +8 -0
  753. package/lib-esm/components/Operation/index.d.ts +2 -0
  754. package/lib-esm/{redoc-lib/src/components → components}/Operation/index.js +0 -0
  755. package/lib-esm/components/Operation/types.d.ts +6 -0
  756. package/lib-esm/{redoc-lib/src/components/PayloadSamples → components/Operation}/types.js +0 -0
  757. package/lib-esm/components/OperationParameters/OperationParameters.js +1 -1
  758. package/lib-esm/components/OperationParameters/types.d.ts +1 -1
  759. package/lib-esm/components/OperationParameters/utils.d.ts +2 -1
  760. package/lib-esm/components/OperationParameters/utils.js +1 -1
  761. package/lib-esm/components/Panel/ContentPanel.js +1 -1
  762. package/lib-esm/components/Panel/ResponsePanel.js +1 -1
  763. package/lib-esm/components/Parameters/BodyContent.d.ts +7 -0
  764. package/lib-esm/components/Parameters/BodyContent.js +4 -0
  765. package/lib-esm/components/Parameters/DropdownWithinHeader.d.ts +1 -0
  766. package/lib-esm/components/Parameters/DropdownWithinHeader.js +2 -0
  767. package/lib-esm/components/Parameters/Parameters.d.ts +6 -0
  768. package/lib-esm/components/Parameters/Parameters.js +2 -0
  769. package/lib-esm/components/Parameters/ParametersGroup.d.ts +9 -0
  770. package/lib-esm/components/Parameters/ParametersGroup.js +16 -0
  771. package/lib-esm/components/Parameters/index.d.ts +2 -0
  772. package/lib-esm/components/Parameters/index.js +2 -0
  773. package/lib-esm/components/PayloadSamples/Example.d.ts +2 -0
  774. package/lib-esm/components/PayloadSamples/Example.js +2 -0
  775. package/lib-esm/{redoc-lib/src/components → components}/PayloadSamples/ExampleValue.d.ts +0 -0
  776. package/lib-esm/{redoc-lib/src/components → components}/PayloadSamples/ExampleValue.js +0 -0
  777. package/lib-esm/components/PayloadSamples/ExternalExample.d.ts +2 -0
  778. package/lib-esm/components/PayloadSamples/ExternalExample.js +2 -0
  779. package/lib-esm/components/PayloadSamples/MediaTypeSamples.d.ts +4 -0
  780. package/lib-esm/components/PayloadSamples/MediaTypeSamples.js +2 -0
  781. package/lib-esm/components/PayloadSamples/PayloadSamples.d.ts +4 -0
  782. package/lib-esm/components/PayloadSamples/PayloadSamples.js +2 -0
  783. package/lib-esm/components/PayloadSamples/index.d.ts +6 -0
  784. package/lib-esm/components/PayloadSamples/index.js +2 -0
  785. package/lib-esm/{redoc-lib/src/components → components}/PayloadSamples/styled.d.ts +0 -0
  786. package/lib-esm/{redoc-lib/src/components → components}/PayloadSamples/styled.js +0 -0
  787. package/lib-esm/components/PayloadSamples/types.d.ts +25 -0
  788. package/lib-esm/{redoc-lib/src/components/Responses → components/PayloadSamples}/types.js +0 -0
  789. package/lib-esm/components/PayloadSamples/useExternalExample.d.ts +2 -0
  790. package/lib-esm/{redoc-lib/src/components → components}/PayloadSamples/useExternalExample.js +0 -0
  791. package/lib-esm/components/ProProviders.d.ts +2 -2
  792. package/lib-esm/components/ProProviders.js +1 -1
  793. package/lib-esm/components/RedoclyReferenceDocs.d.ts +6 -20
  794. package/lib-esm/components/RedoclyReferenceDocs.js +2 -2
  795. package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.d.ts +2 -2
  796. package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.js +1 -1
  797. package/lib-esm/components/RenderHook/RenderHook.d.ts +7 -0
  798. package/lib-esm/{redoc-lib/src/components → components/RenderHook}/RenderHook.js +0 -0
  799. package/lib-esm/components/RenderHook/index.d.ts +1 -0
  800. package/lib-esm/components/RenderHook/index.js +2 -0
  801. package/lib-esm/components/RequestSamples/CodeSample.d.ts +18 -0
  802. package/lib-esm/components/RequestSamples/CodeSample.js +2 -0
  803. package/lib-esm/components/RequestSamples/Example.d.ts +10 -0
  804. package/lib-esm/components/RequestSamples/Example.js +2 -0
  805. package/lib-esm/components/RequestSamples/RequestSamples.d.ts +14 -0
  806. package/lib-esm/components/RequestSamples/RequestSamples.js +2 -0
  807. package/lib-esm/components/RequestSamples/index.d.ts +2 -0
  808. package/lib-esm/components/RequestSamples/index.js +2 -0
  809. package/lib-esm/components/RequestSamples/useCodeSamples.d.ts +10 -0
  810. package/lib-esm/{redoc-lib/src/components → components}/RequestSamples/useCodeSamples.js +0 -0
  811. package/lib-esm/components/ResponseSamples/ResponseSamples.d.ts +5 -0
  812. package/lib-esm/components/ResponseSamples/ResponseSamples.js +2 -0
  813. package/lib-esm/components/ResponseSamples/index.d.ts +1 -0
  814. package/lib-esm/components/ResponseSamples/index.js +2 -0
  815. package/lib-esm/components/Responses/Response.d.ts +4 -0
  816. package/lib-esm/components/Responses/Response.js +2 -0
  817. package/lib-esm/components/Responses/ResponseDetails.d.ts +3 -0
  818. package/lib-esm/components/Responses/ResponseDetails.js +4 -0
  819. package/lib-esm/{redoc-lib/src/components → components}/Responses/ResponseHeaders.d.ts +0 -0
  820. package/lib-esm/components/Responses/ResponseHeaders.js +2 -0
  821. package/lib-esm/{redoc-lib/src/components → components}/Responses/ResponseSummary.d.ts +0 -0
  822. package/lib-esm/components/Responses/ResponseSummary.js +2 -0
  823. package/lib-esm/{redoc-lib/src/components → components}/Responses/ResponsesList.d.ts +0 -0
  824. package/lib-esm/{redoc-lib/src/components → components}/Responses/ResponsesList.js +0 -0
  825. package/lib-esm/components/Responses/index.d.ts +5 -0
  826. package/lib-esm/components/Responses/index.js +2 -0
  827. package/lib-esm/{redoc-lib/src/components → components}/Responses/styled.d.ts +0 -0
  828. package/lib-esm/components/Responses/styled.js +14 -0
  829. package/lib-esm/components/Responses/types.d.ts +12 -0
  830. package/lib-esm/{redoc-lib/src/components/Schema → components/Responses}/types.js +0 -0
  831. package/lib-esm/components/Samples/ExampleSwitch.d.ts +1 -1
  832. package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
  833. package/lib-esm/components/Samples/SamplesTabs.js +1 -1
  834. package/lib-esm/components/Samples/use-example-key.d.ts +1 -1
  835. package/lib-esm/{redoc-lib/src/components → components}/Schema/ArraySchema.d.ts +0 -0
  836. package/lib-esm/components/Schema/ArraySchema.js +4 -0
  837. package/lib-esm/components/Schema/ObjectSchema.d.ts +3 -0
  838. package/lib-esm/components/Schema/ObjectSchema.js +2 -0
  839. package/lib-esm/components/Schema/OneOfSchema.d.ts +3 -0
  840. package/lib-esm/components/Schema/OneOfSchema.js +2 -0
  841. package/lib-esm/components/Schema/RecursiveSchema.d.ts +3 -0
  842. package/lib-esm/components/Schema/RecursiveSchema.js +2 -0
  843. package/lib-esm/components/Schema/Schema.d.ts +3 -0
  844. package/lib-esm/components/Schema/Schema.js +2 -0
  845. package/lib-esm/components/Schema/index.d.ts +5 -0
  846. package/lib-esm/components/Schema/index.js +2 -0
  847. package/lib-esm/components/Schema/types.d.ts +22 -0
  848. package/lib-esm/{redoc-lib/src/components/SecuritySchemes → components/Schema}/types.js +0 -0
  849. package/lib-esm/components/SchemaDefinition/SchemaDefinition.d.ts +15 -0
  850. package/lib-esm/components/SchemaDefinition/SchemaDefinition.js +7 -0
  851. package/lib-esm/components/SchemaDefinition/index.d.ts +1 -0
  852. package/lib-esm/components/SchemaDefinition/index.js +2 -0
  853. package/lib-esm/components/Search/MenuItemProSearch.d.ts +1 -22
  854. package/lib-esm/components/Search/MenuItemProSearch.js +1 -9
  855. package/lib-esm/components/Search/SearchBox.d.ts +8 -0
  856. package/lib-esm/components/Search/SearchBox.js +2 -0
  857. package/lib-esm/components/Search/SearchField.d.ts +1 -1
  858. package/lib-esm/components/Search/index.d.ts +1 -1
  859. package/lib-esm/components/Search/index.js +1 -1
  860. package/lib-esm/components/Search/styled.d.ts +3 -0
  861. package/lib-esm/components/Search/styled.js +8 -0
  862. package/lib-esm/components/Search/types.d.ts +39 -0
  863. package/lib-esm/{redoc-lib/src/services → components/Search}/types.js +0 -0
  864. package/lib-esm/components/Search/utils.d.ts +11 -0
  865. package/lib-esm/components/Search/utils.js +2 -0
  866. package/lib-esm/components/SectionItem/SectionItem.d.ts +7 -0
  867. package/lib-esm/components/SectionItem/SectionItem.js +2 -0
  868. package/lib-esm/{redoc-lib/src/components → components}/SectionItem/index.d.ts +0 -0
  869. package/lib-esm/{redoc-lib/src/components → components}/SectionItem/index.js +0 -0
  870. package/lib-esm/components/SecurityRequirement/PanelDescription.d.ts +7 -0
  871. package/lib-esm/components/SecurityRequirement/PanelDescription.js +2 -0
  872. package/lib-esm/components/SecurityRequirement/RequiredScopesRow.d.ts +3 -0
  873. package/lib-esm/components/SecurityRequirement/RequiredScopesRow.js +2 -0
  874. package/lib-esm/components/SecurityRequirement/RequirementElement.d.ts +7 -0
  875. package/lib-esm/components/SecurityRequirement/RequirementElement.js +24 -0
  876. package/lib-esm/components/SecurityRequirement/SecurityDefs.d.ts +7 -0
  877. package/lib-esm/components/SecurityRequirement/SecurityDefs.js +4 -0
  878. package/lib-esm/components/SecurityRequirement/SecurityRequirement.d.ts +6 -0
  879. package/lib-esm/components/SecurityRequirement/SecurityRequirement.js +24 -0
  880. package/lib-esm/components/SecurityRequirement/constants.d.ts +6 -0
  881. package/lib-esm/components/SecurityRequirement/constants.js +2 -0
  882. package/lib-esm/components/SecurityRequirement/index.d.ts +3 -0
  883. package/lib-esm/components/SecurityRequirement/index.js +2 -0
  884. package/lib-esm/components/SecurityRequirement/styled.d.ts +1 -0
  885. package/lib-esm/components/SecurityRequirement/styled.js +4 -0
  886. package/lib-esm/{redoc-lib/src/components → components}/SecuritySchemes/SecuritySchemes.d.ts +0 -0
  887. package/lib-esm/components/SecuritySchemes/SecuritySchemes.js +2 -0
  888. package/lib-esm/{redoc-lib/src/components → components}/SecuritySchemes/helpers.d.ts +0 -0
  889. package/lib-esm/{redoc-lib/src/components → components}/SecuritySchemes/helpers.js +0 -0
  890. package/lib-esm/{redoc-lib/src/components → components}/SecuritySchemes/index.d.ts +0 -0
  891. package/lib-esm/{redoc-lib/src/components → components}/SecuritySchemes/index.js +0 -0
  892. package/lib-esm/{redoc-lib/src/components → components}/SecuritySchemes/types.d.ts +0 -0
  893. package/lib-esm/components/SecuritySchemes/types.js +2 -0
  894. package/lib-esm/{redoc-lib/src/components → components}/SeeMore/SeeMore.d.ts +0 -0
  895. package/lib-esm/{redoc-lib/src/components → components}/SeeMore/SeeMore.js +0 -0
  896. package/lib-esm/components/SeeMore/index.d.ts +1 -0
  897. package/lib-esm/components/SeeMore/index.js +2 -0
  898. package/lib-esm/components/SideMenu/MenuItem.d.ts +10 -0
  899. package/lib-esm/components/SideMenu/MenuItem.js +2 -0
  900. package/lib-esm/components/SideMenu/MenuItemEternalLink.d.ts +6 -0
  901. package/lib-esm/components/SideMenu/MenuItemEternalLink.js +2 -0
  902. package/lib-esm/components/SideMenu/MenuItemLinkOrLabel.d.ts +7 -0
  903. package/lib-esm/components/SideMenu/MenuItemLinkOrLabel.js +2 -0
  904. package/lib-esm/components/SideMenu/MenuItems.d.ts +2 -0
  905. package/lib-esm/components/SideMenu/MenuItems.js +2 -0
  906. package/lib-esm/components/SideMenu/MenuOperationItemContent.d.ts +7 -0
  907. package/lib-esm/components/SideMenu/MenuOperationItemContent.js +8 -0
  908. package/lib-esm/components/SideMenu/SideMenu.d.ts +5 -0
  909. package/lib-esm/components/SideMenu/SideMenu.js +2 -0
  910. package/lib-esm/components/SideMenu/index.d.ts +4 -0
  911. package/lib-esm/components/SideMenu/index.js +2 -0
  912. package/lib-esm/components/SideMenu/styled.d.ts +21 -0
  913. package/lib-esm/components/SideMenu/styled.js +97 -0
  914. package/lib-esm/components/SideMenu/types.d.ts +19 -0
  915. package/lib-esm/components/SideMenu/types.js +2 -0
  916. package/lib-esm/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +2 -0
  917. package/lib-esm/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
  918. package/lib-esm/components/SourceCodeWithFile/index.d.ts +1 -0
  919. package/lib-esm/components/SourceCodeWithFile/index.js +2 -0
  920. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.d.ts +11 -0
  921. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.js +40 -0
  922. package/lib-esm/components/StickySidebar/index.d.ts +1 -0
  923. package/lib-esm/components/StickySidebar/index.js +2 -0
  924. package/lib-esm/components/StoreProvider.d.ts +3 -4
  925. package/lib-esm/components/StoreProvider.js +1 -1
  926. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +1 -1
  927. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +1 -1
  928. package/lib-esm/components/common/CheckboxList.d.ts +2 -15
  929. package/lib-esm/components/common/CheckboxList.js +1 -1
  930. package/lib-esm/components/common/Dropdown/Dropdown.js +1 -1
  931. package/lib-esm/components/common/Fields/fields-layout.d.ts +16 -0
  932. package/lib-esm/components/common/Fields/fields-layout.js +228 -0
  933. package/lib-esm/{redoc-lib/src/common-elements → components/common/Fields}/fields.d.ts +0 -0
  934. package/lib-esm/components/common/Fields/fields.js +103 -0
  935. package/lib-esm/components/common/Fields/index.d.ts +2 -0
  936. package/lib-esm/components/common/Fields/index.js +2 -0
  937. package/lib-esm/components/common/FileUpload/FileUpload.d.ts +1 -2
  938. package/lib-esm/components/common/FileUpload/helper.d.ts +1 -2
  939. package/lib-esm/components/common/LinkToField.d.ts +9 -0
  940. package/lib-esm/components/common/LinkToField.js +27 -0
  941. package/lib-esm/components/common/TextField.js +1 -1
  942. package/lib-esm/{redoc-lib/src/common-elements → components/common}/headers.d.ts +0 -0
  943. package/lib-esm/components/common/headers.js +36 -0
  944. package/lib-esm/components/common/index.d.ts +12 -0
  945. package/lib-esm/components/common/index.js +2 -0
  946. package/lib-esm/{redoc-lib/src/common-elements → components/common}/linkify.d.ts +0 -0
  947. package/lib-esm/components/common/linkify.js +55 -0
  948. package/lib-esm/{redoc-lib/src/common-elements → components/common}/mixins.d.ts +0 -0
  949. package/lib-esm/{redoc-lib/src/common-elements → components/common}/mixins.js +0 -0
  950. package/lib-esm/components/common/panels.d.ts +13 -0
  951. package/lib-esm/components/common/panels.js +91 -0
  952. package/lib-esm/{redoc-lib/src/common-elements → components/common}/perfect-scrollbar.d.ts +0 -0
  953. package/lib-esm/components/common/perfect-scrollbar.js +4 -0
  954. package/lib-esm/{redoc-lib/src/common-elements → components/common}/schema.d.ts +0 -0
  955. package/lib-esm/{redoc-lib/src/common-elements → components/common}/schema.js +0 -0
  956. package/lib-esm/{redoc-lib/src/common-elements → components/common}/shelfs.d.ts +0 -0
  957. package/lib-esm/{redoc-lib/src/common-elements → components/common}/shelfs.js +0 -0
  958. package/lib-esm/components/icons/CrossIcon.d.ts +4 -0
  959. package/lib-esm/components/icons/CrossIcon.js +11 -0
  960. package/lib-esm/components/icons/FileIcon.d.ts +4 -0
  961. package/lib-esm/components/icons/FileIcon.js +9 -0
  962. package/lib-esm/components/icons/LinkIcon.d.ts +4 -0
  963. package/lib-esm/components/icons/LinkIcon.js +11 -0
  964. package/lib-esm/components/icons/LockIcon.d.ts +2 -0
  965. package/lib-esm/components/icons/LockIcon.js +12 -0
  966. package/lib-esm/components/icons/SearchIcon.d.ts +5 -0
  967. package/lib-esm/components/icons/SearchIcon.js +11 -0
  968. package/lib-esm/components/icons/ShelfIcon.d.ts +2 -0
  969. package/lib-esm/components/icons/ShelfIcon.js +12 -0
  970. package/lib-esm/components/icons/Spinner.d.ts +2 -0
  971. package/lib-esm/components/icons/Spinner.js +19 -0
  972. package/lib-esm/components/icons/index.d.ts +8 -0
  973. package/lib-esm/components/icons/index.js +2 -0
  974. package/lib-esm/components/icons/types.d.ts +10 -0
  975. package/lib-esm/components/icons/types.js +2 -0
  976. package/lib-esm/components/index.d.ts +28 -7
  977. package/lib-esm/components/index.js +1 -1
  978. package/lib-esm/components/pluggable/PullRight.js +1 -1
  979. package/lib-esm/components/pluggable/RedocExample.d.ts +3 -6
  980. package/lib-esm/components/pluggable/RedocExample.js +1 -1
  981. package/lib-esm/components/pluggable/RedocRequestBody.d.ts +1 -4
  982. package/lib-esm/components/pluggable/RedocRequestBody.js +1 -1
  983. package/lib-esm/components/pluggable/RedocResponse.d.ts +2 -5
  984. package/lib-esm/components/pluggable/RedocResponse.js +1 -1
  985. package/lib-esm/components/pluggable/RedocSchema.d.ts +2 -5
  986. package/lib-esm/components/pluggable/RedocSchema.js +1 -1
  987. package/lib-esm/components/pluggable/index.d.ts +5 -5
  988. package/lib-esm/components/pluggable/index.js +1 -1
  989. package/lib-esm/components/pluggable/styled.components.js +1 -1
  990. package/lib-esm/components/rightPanel/ActionPanel.d.ts +12 -0
  991. package/lib-esm/components/rightPanel/ActionPanel.js +4 -0
  992. package/lib-esm/components/rightPanel/AuthPanel/AuthPanel.d.ts +2 -0
  993. package/lib-esm/components/rightPanel/AuthPanel/AuthPanel.js +2 -0
  994. package/lib-esm/components/{console → rightPanel}/AuthPanel/index.d.ts +0 -0
  995. package/lib-esm/components/{console → rightPanel}/AuthPanel/index.js +0 -0
  996. package/lib-esm/components/rightPanel/AuthPanel/types.d.ts +14 -0
  997. package/lib-esm/components/rightPanel/AuthPanel/types.js +2 -0
  998. package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.d.ts +5 -0
  999. package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.js +2 -0
  1000. package/lib-esm/components/{console/codemirror-helpers.d.ts → rightPanel/CodemirrorInput/helpers.d.ts} +0 -0
  1001. package/lib-esm/components/rightPanel/CodemirrorInput/helpers.js +2 -0
  1002. package/lib-esm/components/rightPanel/CodemirrorInput/index.d.ts +1 -0
  1003. package/lib-esm/components/rightPanel/CodemirrorInput/index.js +2 -0
  1004. package/lib-esm/components/rightPanel/CodemirrorInput/styled.d.ts +1 -0
  1005. package/lib-esm/components/rightPanel/CodemirrorInput/styled.js +50 -0
  1006. package/lib-esm/components/rightPanel/CodemirrorInput/types.d.ts +22 -0
  1007. package/lib-esm/components/rightPanel/CodemirrorInput/types.js +2 -0
  1008. package/lib-esm/components/rightPanel/Console/Console.d.ts +3 -0
  1009. package/lib-esm/components/rightPanel/Console/Console.js +2 -0
  1010. package/lib-esm/components/rightPanel/Console/ConsoleLazy.d.ts +2 -0
  1011. package/lib-esm/components/rightPanel/Console/ConsoleLazy.js +2 -0
  1012. package/lib-esm/components/rightPanel/Console/ConsoleWrapper.d.ts +6 -0
  1013. package/lib-esm/components/rightPanel/Console/ConsoleWrapper.js +2 -0
  1014. package/lib-esm/components/rightPanel/Console/Request.d.ts +12 -0
  1015. package/lib-esm/components/rightPanel/Console/Request.js +2 -0
  1016. package/lib-esm/components/rightPanel/Console/index.d.ts +1 -0
  1017. package/lib-esm/components/rightPanel/Console/index.js +2 -0
  1018. package/lib-esm/components/rightPanel/Console/types.d.ts +18 -0
  1019. package/lib-esm/components/rightPanel/Console/types.js +2 -0
  1020. package/lib-esm/components/{console → rightPanel}/ConsoleTabs/ConsoleTabs.d.ts +0 -0
  1021. package/lib-esm/components/{console → rightPanel}/ConsoleTabs/ConsoleTabs.js +0 -0
  1022. package/lib-esm/components/{console → rightPanel}/ConsoleTabs/index.d.ts +0 -0
  1023. package/lib-esm/components/{console → rightPanel}/ConsoleTabs/index.js +0 -0
  1024. package/lib-esm/components/{console → rightPanel}/ConsoleTabs/styled.d.ts +0 -0
  1025. package/lib-esm/components/{console → rightPanel}/ConsoleTabs/styled.js +0 -0
  1026. package/lib-esm/components/rightPanel/OAuth2Flow/Error.d.ts +7 -0
  1027. package/lib-esm/components/rightPanel/OAuth2Flow/Error.js +2 -0
  1028. package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.d.ts +2 -0
  1029. package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.js +2 -0
  1030. package/lib-esm/components/rightPanel/OAuth2Flow/index.d.ts +2 -0
  1031. package/lib-esm/components/rightPanel/OAuth2Flow/index.js +2 -0
  1032. package/lib-esm/components/rightPanel/OAuth2Flow/styled.d.ts +4 -0
  1033. package/lib-esm/components/rightPanel/OAuth2Flow/styled.js +14 -0
  1034. package/lib-esm/components/rightPanel/OAuth2Flow/types.d.ts +20 -0
  1035. package/lib-esm/components/rightPanel/OAuth2Flow/types.js +2 -0
  1036. package/lib-esm/components/rightPanel/OAuth2TokenInput.d.ts +21 -0
  1037. package/lib-esm/components/rightPanel/OAuth2TokenInput.js +2 -0
  1038. package/lib-esm/components/rightPanel/OpenIDConnect.d.ts +17 -0
  1039. package/lib-esm/components/{console → rightPanel}/OpenIDConnect.js +0 -0
  1040. package/lib-esm/components/rightPanel/ParameterArray.d.ts +9 -0
  1041. package/lib-esm/components/{console → rightPanel}/ParameterArray.js +0 -0
  1042. package/lib-esm/components/{console → rightPanel}/ParameterDropdown.d.ts +0 -0
  1043. package/lib-esm/components/rightPanel/ParameterDropdown.js +2 -0
  1044. package/lib-esm/components/rightPanel/RequestBody/Body.d.ts +3 -0
  1045. package/lib-esm/components/rightPanel/RequestBody/Body.js +2 -0
  1046. package/lib-esm/components/rightPanel/RequestBody/RequestBody.d.ts +3 -0
  1047. package/lib-esm/components/rightPanel/RequestBody/RequestBody.js +2 -0
  1048. package/lib-esm/components/{console → rightPanel}/RequestBody/index.d.ts +0 -0
  1049. package/lib-esm/components/{console → rightPanel}/RequestBody/index.js +0 -0
  1050. package/lib-esm/components/rightPanel/RequestBody/types.d.ts +16 -0
  1051. package/lib-esm/components/rightPanel/RequestBody/types.js +2 -0
  1052. package/lib-esm/components/rightPanel/RequestBodyForm.d.ts +8 -0
  1053. package/lib-esm/components/rightPanel/RequestBodyForm.js +10 -0
  1054. package/lib-esm/components/{console → rightPanel}/RequestMimeLabel.d.ts +0 -0
  1055. package/lib-esm/components/{console → rightPanel}/RequestMimeLabel.js +0 -0
  1056. package/lib-esm/components/rightPanel/ResponseBody.d.ts +4 -0
  1057. package/lib-esm/components/rightPanel/ResponseBody.js +2 -0
  1058. package/lib-esm/components/{console → rightPanel}/ResponseHeadersList.d.ts +0 -0
  1059. package/lib-esm/components/rightPanel/ResponseHeadersList.js +10 -0
  1060. package/lib-esm/components/rightPanel/ResponsePanel.d.ts +9 -0
  1061. package/lib-esm/components/rightPanel/ResponsePanel.js +18 -0
  1062. package/lib-esm/components/{console → rightPanel}/Scope.d.ts +0 -0
  1063. package/lib-esm/components/{console → rightPanel}/Scope.js +0 -0
  1064. package/lib-esm/components/{console → rightPanel}/ServerVariable.d.ts +0 -0
  1065. package/lib-esm/components/rightPanel/ServerVariable.js +5 -0
  1066. package/lib-esm/components/{console → rightPanel}/ServersDropdown/ServersDropdown.d.ts +0 -0
  1067. package/lib-esm/components/rightPanel/ServersDropdown/ServersDropdown.js +4 -0
  1068. package/lib-esm/components/{console → rightPanel}/ServersDropdown/index.d.ts +0 -0
  1069. package/lib-esm/components/{console → rightPanel}/ServersDropdown/index.js +0 -0
  1070. package/lib-esm/components/rightPanel/ServersDropdown/types.d.ts +6 -0
  1071. package/lib-esm/components/rightPanel/ServersDropdown/types.js +2 -0
  1072. package/lib-esm/components/{console → rightPanel}/TryItPanel.d.ts +0 -0
  1073. package/lib-esm/components/rightPanel/TryItPanel.js +14 -0
  1074. package/lib-esm/components/{console → rightPanel}/styled.d.ts +0 -0
  1075. package/lib-esm/components/{console → rightPanel}/styled.js +0 -0
  1076. package/lib-esm/components/rightPanel/types.d.ts +10 -0
  1077. package/lib-esm/components/rightPanel/types.js +2 -0
  1078. package/lib-esm/components/rightPanel/utils.d.ts +28 -0
  1079. package/lib-esm/components/rightPanel/utils.js +2 -0
  1080. package/lib-esm/components/styled.elements.d.ts +1 -1
  1081. package/lib-esm/components/styled.elements.js +1 -1
  1082. package/lib-esm/components/types.d.ts +1 -8
  1083. package/lib-esm/constants.d.ts +27 -2
  1084. package/lib-esm/constants.js +1 -1
  1085. package/lib-esm/context/OptionsProvider.d.ts +6 -0
  1086. package/lib-esm/context/OptionsProvider.js +2 -0
  1087. package/lib-esm/context/StoreProvider.d.ts +6 -0
  1088. package/lib-esm/context/StoreProvider.js +2 -0
  1089. package/lib-esm/context/index.d.ts +2 -0
  1090. package/lib-esm/context/index.js +2 -0
  1091. package/lib-esm/events/types.d.ts +3 -3
  1092. package/lib-esm/hooks/index.d.ts +1 -2
  1093. package/lib-esm/hooks/index.js +1 -1
  1094. package/lib-esm/hooks/usePrevious.d.ts +1 -0
  1095. package/lib-esm/hooks/usePrevious.js +2 -0
  1096. package/lib-esm/index.d.ts +5 -3
  1097. package/lib-esm/index.js +1 -1
  1098. package/lib-esm/models/ApiInfo.d.ts +17 -0
  1099. package/lib-esm/models/ApiInfo.js +2 -0
  1100. package/lib-esm/models/Callback.d.ts +11 -0
  1101. package/lib-esm/models/Callback.js +2 -0
  1102. package/lib-esm/models/Example.d.ts +17 -0
  1103. package/lib-esm/models/Example.js +2 -0
  1104. package/lib-esm/models/Field.d.ts +34 -0
  1105. package/lib-esm/models/Field.js +2 -0
  1106. package/lib-esm/models/Group.d.ts +26 -0
  1107. package/lib-esm/models/Group.js +2 -0
  1108. package/lib-esm/models/MediaContent.d.ts +31 -0
  1109. package/lib-esm/models/MediaContent.js +2 -0
  1110. package/lib-esm/models/MediaType.d.ts +27 -0
  1111. package/lib-esm/models/MediaType.js +2 -0
  1112. package/lib-esm/models/Operation.d.ts +92 -0
  1113. package/lib-esm/models/Operation.js +2 -0
  1114. package/lib-esm/models/RequestBody.d.ts +18 -0
  1115. package/lib-esm/models/RequestBody.js +2 -0
  1116. package/lib-esm/models/Response.d.ts +28 -0
  1117. package/lib-esm/models/Response.js +2 -0
  1118. package/lib-esm/models/Schema.d.ts +78 -0
  1119. package/lib-esm/models/Schema.js +2 -0
  1120. package/lib-esm/models/SecurityRequirement.d.ts +12 -0
  1121. package/lib-esm/{redoc-lib/src/services/models → models}/SecurityRequirement.js +0 -0
  1122. package/lib-esm/models/SecuritySchemes.d.ts +25 -0
  1123. package/lib-esm/{redoc-lib/src/services/models → models}/SecuritySchemes.js +0 -0
  1124. package/lib-esm/models/Webhook.d.ts +8 -0
  1125. package/lib-esm/models/Webhook.js +2 -0
  1126. package/lib-esm/models/file-upload.d.ts +1 -1
  1127. package/lib-esm/models/index.d.ts +15 -0
  1128. package/lib-esm/models/index.js +1 -1
  1129. package/lib-esm/models/types.d.ts +3 -0
  1130. package/lib-esm/models/types.js +2 -0
  1131. package/lib-esm/services/MarkdownRenderer.d.ts +23 -0
  1132. package/lib-esm/services/MarkdownRenderer.js +2 -0
  1133. package/lib-esm/{redoc-lib/src/services → services}/MarkerService.d.ts +0 -0
  1134. package/lib-esm/{redoc-lib/src/services → services}/MarkerService.js +0 -0
  1135. package/lib-esm/services/MenuBuilder.d.ts +63 -0
  1136. package/lib-esm/services/MenuBuilder.js +2 -0
  1137. package/lib-esm/services/OpenAPIParser.d.ts +51 -0
  1138. package/lib-esm/services/OpenAPIParser.js +2 -0
  1139. package/lib-esm/services/Options/NormalizedOptions.d.ts +2 -0
  1140. package/lib-esm/services/Options/NormalizedOptions.js +2 -0
  1141. package/lib-esm/services/Options/helpers.d.ts +8 -0
  1142. package/lib-esm/services/Options/helpers.js +2 -0
  1143. package/lib-esm/services/Options/index.d.ts +2 -0
  1144. package/lib-esm/services/Options/index.js +2 -0
  1145. package/lib-esm/services/Options/types.d.ts +258 -0
  1146. package/lib-esm/services/Options/types.js +2 -0
  1147. package/lib-esm/services/ProMenu.d.ts +8 -5
  1148. package/lib-esm/services/ProMenu.js +1 -1
  1149. package/lib-esm/services/ProStore.d.ts +16 -77
  1150. package/lib-esm/services/ProStore.js +1 -1
  1151. package/lib-esm/services/ScrollService.d.ts +18 -0
  1152. package/lib-esm/{redoc-lib/src/services → services}/ScrollService.js +0 -0
  1153. package/lib-esm/services/SpecStore.d.ts +18 -0
  1154. package/lib-esm/services/SpecStore.js +2 -0
  1155. package/lib-esm/services/VersionedSpecStore.d.ts +7 -5
  1156. package/lib-esm/services/VersionedSpecStore.js +1 -1
  1157. package/lib-esm/services/check.d.ts +1 -1
  1158. package/lib-esm/services/code-samples/generator.d.ts +3 -2
  1159. package/lib-esm/services/code-samples/generator.js +1 -1
  1160. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +1 -1
  1161. package/lib-esm/services/code-samples/httpsnippet/helpers/lodash-int.js +1 -1
  1162. package/lib-esm/services/code-samples/httpsnippet/index.d.ts +1 -1
  1163. package/lib-esm/services/code-samples/httpsnippet/index.js +1 -1
  1164. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  1165. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.js +1 -1
  1166. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.js +1 -1
  1167. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.js +1 -1
  1168. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -1
  1169. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.js +1 -1
  1170. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.js +1 -1
  1171. package/lib-esm/services/code-samples/httpsnippet/targets/php/types.d.ts +2 -2
  1172. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
  1173. package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.js +1 -1
  1174. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.js +1 -1
  1175. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.js +1 -1
  1176. package/lib-esm/services/code-samples/types.d.ts +2 -2
  1177. package/lib-esm/services/history/FakeHistoryService.d.ts +4 -4
  1178. package/lib-esm/{redoc-lib/src/services → services/history}/HistoryService.d.ts +0 -0
  1179. package/lib-esm/services/history/HistoryService.js +2 -0
  1180. package/lib-esm/services/history/ProHashHistoryService.d.ts +4 -4
  1181. package/lib-esm/services/history/ProHashHistoryService.js +1 -1
  1182. package/lib-esm/services/history/PushStateHistoryService.d.ts +4 -4
  1183. package/lib-esm/services/history/PushStateHistoryService.js +1 -1
  1184. package/lib-esm/services/history/helpers.d.ts +1 -1
  1185. package/lib-esm/services/history/index.d.ts +1 -0
  1186. package/lib-esm/services/history/index.js +1 -1
  1187. package/lib-esm/services/index.d.ts +13 -1
  1188. package/lib-esm/services/index.js +1 -1
  1189. package/lib-esm/{redoc-lib/src/services/Labels.d.ts → services/labels/LabelsService.d.ts} +0 -0
  1190. package/lib-esm/services/labels/LabelsService.js +2 -0
  1191. package/lib-esm/services/labels/index.d.ts +2 -0
  1192. package/lib-esm/services/labels/index.js +2 -0
  1193. package/lib-esm/services/labels/types.d.ts +28 -0
  1194. package/lib-esm/services/labels/types.js +2 -0
  1195. package/lib-esm/services/search/DeepSearchStore.d.ts +19 -0
  1196. package/lib-esm/services/search/DeepSearchStore.js +2 -0
  1197. package/lib-esm/services/search/RemoteSearch.d.ts +17 -0
  1198. package/lib-esm/services/search/RemoteSearch.js +2 -0
  1199. package/lib-esm/services/search/SearchStore.d.ts +14 -0
  1200. package/lib-esm/services/search/SearchStore.js +2 -0
  1201. package/lib-esm/{redoc-lib/src/services → services/search}/SearchWorker.worker.d.ts +0 -0
  1202. package/lib-esm/{redoc-lib/src/services → services/search}/SearchWorker.worker.js +0 -0
  1203. package/lib-esm/services/search/index.d.ts +4 -0
  1204. package/lib-esm/services/search/index.js +2 -0
  1205. package/lib-esm/services/search/types.d.ts +15 -0
  1206. package/lib-esm/services/search/types.js +2 -0
  1207. package/lib-esm/services/types.d.ts +197 -6
  1208. package/lib-esm/services/utils.js +1 -1
  1209. package/lib-esm/standalone.d.ts +5 -4
  1210. package/lib-esm/standalone.js +1 -1
  1211. package/lib-esm/testProviders.js +1 -1
  1212. package/lib-esm/types/index.d.ts +3 -0
  1213. package/lib-esm/types/index.js +2 -0
  1214. package/lib-esm/types/open-api.d.ts +337 -0
  1215. package/lib-esm/{redoc-lib/src/types → types}/open-api.js +0 -0
  1216. package/lib-esm/types/security.d.ts +11 -0
  1217. package/lib-esm/types/security.js +2 -0
  1218. package/lib-esm/{redoc-lib/src/types → types}/server.d.ts +0 -0
  1219. package/lib-esm/{redoc-lib/src/types → types}/server.js +0 -0
  1220. package/lib-esm/{redoc-lib/src/utils → utils}/JsonPointer.d.ts +0 -0
  1221. package/lib-esm/{redoc-lib/src/utils → utils}/JsonPointer.js +0 -0
  1222. package/lib-esm/utils/argValuesHelpers.d.ts +4 -0
  1223. package/lib-esm/utils/argValuesHelpers.js +2 -0
  1224. package/lib-esm/utils/debounce.d.ts +1 -0
  1225. package/lib-esm/utils/debounce.js +2 -0
  1226. package/lib-esm/{redoc-lib/src/utils → utils}/debug.d.ts +0 -0
  1227. package/lib-esm/{redoc-lib/src/utils → utils}/debug.js +0 -0
  1228. package/lib-esm/{redoc-lib/src/utils → utils}/decorators.d.ts +0 -0
  1229. package/lib-esm/{redoc-lib/src/utils → utils}/decorators.js +0 -0
  1230. package/lib-esm/{redoc-lib/src/utils → utils}/dom.d.ts +0 -0
  1231. package/lib-esm/{redoc-lib/src/utils → utils}/dom.js +0 -0
  1232. package/lib-esm/utils/helpers.d.ts +51 -0
  1233. package/lib-esm/utils/helpers.js +2 -0
  1234. package/lib-esm/{redoc-lib/src/utils → utils}/highlight.d.ts +0 -0
  1235. package/lib-esm/{redoc-lib/src/utils → utils}/highlight.js +0 -0
  1236. package/lib-esm/utils/index.d.ts +21 -0
  1237. package/lib-esm/utils/index.js +2 -0
  1238. package/lib-esm/{redoc-lib/src/utils → utils}/loadAndBundleSpec.d.ts +0 -0
  1239. package/lib-esm/utils/loadAndBundleSpec.js +2 -0
  1240. package/lib-esm/utils/local-storage.d.ts +2 -0
  1241. package/lib-esm/utils/local-storage.js +2 -0
  1242. package/lib-esm/utils/media-css.d.ts +8 -0
  1243. package/lib-esm/utils/media-css.js +2 -0
  1244. package/lib-esm/{redoc-lib/src/utils → utils}/memoize.d.ts +0 -0
  1245. package/lib-esm/{redoc-lib/src/utils → utils}/memoize.js +0 -0
  1246. package/lib-esm/{redoc-lib/src/utils → utils}/object.d.ts +0 -0
  1247. package/lib-esm/{redoc-lib/src/utils → utils}/object.js +0 -0
  1248. package/lib-esm/utils/openapi.d.ts +41 -0
  1249. package/lib-esm/utils/openapi.js +2 -0
  1250. package/lib-esm/utils/parameters.d.ts +2 -0
  1251. package/lib-esm/utils/parameters.js +2 -0
  1252. package/lib-esm/utils/security-details.d.ts +13 -0
  1253. package/lib-esm/utils/security-details.js +2 -0
  1254. package/lib-esm/utils/session-storage.d.ts +2 -0
  1255. package/lib-esm/utils/session-storage.js +2 -0
  1256. package/lib-esm/{redoc-lib/src/utils → utils}/sort.d.ts +0 -0
  1257. package/lib-esm/{redoc-lib/src/utils → utils}/sort.js +0 -0
  1258. package/lib-esm/utils/store.d.ts +3 -0
  1259. package/lib-esm/utils/store.js +2 -0
  1260. package/lib-esm/utils/string.d.ts +3 -0
  1261. package/lib-esm/utils/string.js +2 -0
  1262. package/lib-esm/{redoc-lib/src/utils → utils}/test-utils.d.ts +0 -0
  1263. package/lib-esm/{redoc-lib/src/utils → utils}/test-utils.js +0 -0
  1264. package/lib-esm/{redoc-lib/src/utils → utils}/theme-helpers.d.ts +0 -0
  1265. package/lib-esm/{redoc-lib/src/utils → utils}/theme-helpers.js +0 -0
  1266. package/package.json +10 -6
  1267. package/lib/components/Search/ProSearchBox.d.ts +0 -52
  1268. package/lib/components/Search/ProSearchBox.js +0 -2
  1269. package/lib/components/console/ActionPanel.d.ts +0 -12
  1270. package/lib/components/console/ActionPanel.js +0 -4
  1271. package/lib/components/console/AuthPanel/AuthPanel.d.ts +0 -13
  1272. package/lib/components/console/AuthPanel/AuthPanel.js +0 -2
  1273. package/lib/components/console/AuthPanel/types.d.ts +0 -14
  1274. package/lib/components/console/CodemirrorInput.d.ts +0 -39
  1275. package/lib/components/console/CodemirrorInput.js +0 -50
  1276. package/lib/components/console/Console.d.ts +0 -47
  1277. package/lib/components/console/Console.js +0 -2
  1278. package/lib/components/console/ConsoleLazy.d.ts +0 -2
  1279. package/lib/components/console/ConsoleLazy.js +0 -2
  1280. package/lib/components/console/OAuth2Flow.d.ts +0 -57
  1281. package/lib/components/console/OAuth2Flow.js +0 -14
  1282. package/lib/components/console/OAuth2TokenInput.d.ts +0 -35
  1283. package/lib/components/console/OAuth2TokenInput.js +0 -2
  1284. package/lib/components/console/OpenIDConnect.d.ts +0 -17
  1285. package/lib/components/console/ParameterArray.d.ts +0 -9
  1286. package/lib/components/console/ParameterDropdown.js +0 -2
  1287. package/lib/components/console/RequestBody/RequestBody.d.ts +0 -3
  1288. package/lib/components/console/RequestBody/RequestBody.js +0 -2
  1289. package/lib/components/console/RequestBody/types.d.ts +0 -10
  1290. package/lib/components/console/RequestBodyForm.d.ts +0 -9
  1291. package/lib/components/console/RequestBodyForm.js +0 -10
  1292. package/lib/components/console/ResponseBody.d.ts +0 -4
  1293. package/lib/components/console/ResponseBody.js +0 -2
  1294. package/lib/components/console/ResponseHeadersList.js +0 -10
  1295. package/lib/components/console/ResponsePanel.d.ts +0 -21
  1296. package/lib/components/console/ResponsePanel.js +0 -18
  1297. package/lib/components/console/ServerVariable.js +0 -5
  1298. package/lib/components/console/ServersDropdown/ServersDropdown.js +0 -4
  1299. package/lib/components/console/ServersDropdown/types.d.ts +0 -5
  1300. package/lib/components/console/TryItPanel.js +0 -14
  1301. package/lib/components/console/codemirror-helpers.js +0 -2
  1302. package/lib/components/console/utils.d.ts +0 -27
  1303. package/lib/components/console/utils.js +0 -2
  1304. package/lib/hooks/useMount.d.ts +0 -1
  1305. package/lib/hooks/useMount.js +0 -2
  1306. package/lib/hooks/useUnmount.d.ts +0 -1
  1307. package/lib/hooks/useUnmount.js +0 -2
  1308. package/lib/redoc-lib/index.d.ts +0 -1
  1309. package/lib/redoc-lib/index.js +0 -2
  1310. package/lib/redoc-lib/src/common-elements/Download.d.ts +0 -7
  1311. package/lib/redoc-lib/src/common-elements/Download.js +0 -4
  1312. package/lib/redoc-lib/src/common-elements/LinkToField.d.ts +0 -9
  1313. package/lib/redoc-lib/src/common-elements/LinkToField.js +0 -27
  1314. package/lib/redoc-lib/src/common-elements/fields-layout.d.ts +0 -15
  1315. package/lib/redoc-lib/src/common-elements/fields-layout.js +0 -228
  1316. package/lib/redoc-lib/src/common-elements/fields.js +0 -103
  1317. package/lib/redoc-lib/src/common-elements/headers.js +0 -36
  1318. package/lib/redoc-lib/src/common-elements/icons.d.ts +0 -41
  1319. package/lib/redoc-lib/src/common-elements/icons.js +0 -55
  1320. package/lib/redoc-lib/src/common-elements/index.d.ts +0 -9
  1321. package/lib/redoc-lib/src/common-elements/index.js +0 -2
  1322. package/lib/redoc-lib/src/common-elements/linkify.js +0 -55
  1323. package/lib/redoc-lib/src/common-elements/panels.d.ts +0 -13
  1324. package/lib/redoc-lib/src/common-elements/panels.js +0 -95
  1325. package/lib/redoc-lib/src/common-elements/perfect-scrollbar.js +0 -4
  1326. package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +0 -5
  1327. package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.js +0 -2
  1328. package/lib/redoc-lib/src/components/ApiInfo/index.d.ts +0 -1
  1329. package/lib/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +0 -8
  1330. package/lib/redoc-lib/src/components/ApiInfo/styled.elements.js +0 -24
  1331. package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +0 -11
  1332. package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +0 -4
  1333. package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +0 -12
  1334. package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +0 -2
  1335. package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +0 -8
  1336. package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.js +0 -4
  1337. package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +0 -5
  1338. package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.js +0 -2
  1339. package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +0 -6
  1340. package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.js +0 -2
  1341. package/lib/redoc-lib/src/components/Callbacks/CallbackTitle.js +0 -7
  1342. package/lib/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +0 -8
  1343. package/lib/redoc-lib/src/components/Callbacks/CallbacksList.js +0 -2
  1344. package/lib/redoc-lib/src/components/ContentItem/ContentItem.d.ts +0 -9
  1345. package/lib/redoc-lib/src/components/ContentItem/ContentItem.js +0 -2
  1346. package/lib/redoc-lib/src/components/ContentItems/ContentItems.d.ts +0 -8
  1347. package/lib/redoc-lib/src/components/ContentItems/ContentItems.js +0 -2
  1348. package/lib/redoc-lib/src/components/ContentItems/Skeleton.js +0 -31
  1349. package/lib/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +0 -10
  1350. package/lib/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.js +0 -2
  1351. package/lib/redoc-lib/src/components/DiscriminatorDropdown/index.d.ts +0 -1
  1352. package/lib/redoc-lib/src/components/DiscriminatorDropdown/index.js +0 -2
  1353. package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +0 -4
  1354. package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.js +0 -21
  1355. package/lib/redoc-lib/src/components/DownloadButton/index.d.ts +0 -1
  1356. package/lib/redoc-lib/src/components/DownloadButton/index.js +0 -2
  1357. package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -7
  1358. package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +0 -8
  1359. package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +0 -8
  1360. package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +0 -5
  1361. package/lib/redoc-lib/src/components/Fields/EnumValues.d.ts +0 -17
  1362. package/lib/redoc-lib/src/components/Fields/EnumValues.js +0 -13
  1363. package/lib/redoc-lib/src/components/Fields/Extensions.d.ts +0 -9
  1364. package/lib/redoc-lib/src/components/Fields/Extensions.js +0 -6
  1365. package/lib/redoc-lib/src/components/Fields/Field.d.ts +0 -20
  1366. package/lib/redoc-lib/src/components/Fields/Field.js +0 -2
  1367. package/lib/redoc-lib/src/components/Fields/FieldContstraints.js +0 -2
  1368. package/lib/redoc-lib/src/components/Fields/FieldDetail.d.ts +0 -10
  1369. package/lib/redoc-lib/src/components/Fields/FieldDetail.js +0 -2
  1370. package/lib/redoc-lib/src/components/Fields/FieldDetails.d.ts +0 -12
  1371. package/lib/redoc-lib/src/components/Fields/FieldDetails.js +0 -15
  1372. package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -22
  1373. package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +0 -2
  1374. package/lib/redoc-lib/src/components/Loading/Loading.d.ts +0 -5
  1375. package/lib/redoc-lib/src/components/Loading/Loading.js +0 -9
  1376. package/lib/redoc-lib/src/components/Loading/Spinner.d.ts +0 -6
  1377. package/lib/redoc-lib/src/components/Loading/Spinner.js +0 -19
  1378. package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +0 -2
  1379. package/lib/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.js +0 -2
  1380. package/lib/redoc-lib/src/components/Markdown/styled.js +0 -257
  1381. package/lib/redoc-lib/src/components/Markdown/types.d.ts +0 -16
  1382. package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +0 -13
  1383. package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +0 -2
  1384. package/lib/redoc-lib/src/components/Operation/Operation.d.ts +0 -7
  1385. package/lib/redoc-lib/src/components/Operation/Operation.js +0 -8
  1386. package/lib/redoc-lib/src/components/Operation/index.d.ts +0 -2
  1387. package/lib/redoc-lib/src/components/OptionsProvider.d.ts +0 -6
  1388. package/lib/redoc-lib/src/components/OptionsProvider.js +0 -2
  1389. package/lib/redoc-lib/src/components/Parameters/Parameters.d.ts +0 -10
  1390. package/lib/redoc-lib/src/components/Parameters/Parameters.js +0 -4
  1391. package/lib/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +0 -10
  1392. package/lib/redoc-lib/src/components/Parameters/ParametersGroup.js +0 -16
  1393. package/lib/redoc-lib/src/components/PayloadSamples/Example.d.ts +0 -3
  1394. package/lib/redoc-lib/src/components/PayloadSamples/Example.js +0 -2
  1395. package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +0 -2
  1396. package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +0 -2
  1397. package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +0 -2
  1398. package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +0 -2
  1399. package/lib/redoc-lib/src/components/PayloadSamples/index.d.ts +0 -5
  1400. package/lib/redoc-lib/src/components/PayloadSamples/index.js +0 -2
  1401. package/lib/redoc-lib/src/components/PayloadSamples/types.d.ts +0 -25
  1402. package/lib/redoc-lib/src/components/PayloadSamples/useExternalExample.d.ts +0 -2
  1403. package/lib/redoc-lib/src/components/RenderHook.d.ts +0 -6
  1404. package/lib/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +0 -16
  1405. package/lib/redoc-lib/src/components/RequestSamples/CodeSample.js +0 -2
  1406. package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +0 -12
  1407. package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.js +0 -2
  1408. package/lib/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +0 -9
  1409. package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.d.ts +0 -5
  1410. package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +0 -2
  1411. package/lib/redoc-lib/src/components/Responses/Response.d.ts +0 -2
  1412. package/lib/redoc-lib/src/components/Responses/Response.js +0 -2
  1413. package/lib/redoc-lib/src/components/Responses/ResponseDetails.d.ts +0 -5
  1414. package/lib/redoc-lib/src/components/Responses/ResponseDetails.js +0 -4
  1415. package/lib/redoc-lib/src/components/Responses/ResponseHeaders.js +0 -2
  1416. package/lib/redoc-lib/src/components/Responses/ResponseSummary.js +0 -2
  1417. package/lib/redoc-lib/src/components/Responses/index.d.ts +0 -1
  1418. package/lib/redoc-lib/src/components/Responses/index.js +0 -2
  1419. package/lib/redoc-lib/src/components/Responses/styled.js +0 -14
  1420. package/lib/redoc-lib/src/components/Responses/types.d.ts +0 -12
  1421. package/lib/redoc-lib/src/components/Schema/ArraySchema.js +0 -4
  1422. package/lib/redoc-lib/src/components/Schema/ObjectSchema.d.ts +0 -2
  1423. package/lib/redoc-lib/src/components/Schema/ObjectSchema.js +0 -2
  1424. package/lib/redoc-lib/src/components/Schema/OneOfSchema.d.ts +0 -2
  1425. package/lib/redoc-lib/src/components/Schema/OneOfSchema.js +0 -2
  1426. package/lib/redoc-lib/src/components/Schema/RecursiveSchema.d.ts +0 -2
  1427. package/lib/redoc-lib/src/components/Schema/RecursiveSchema.js +0 -2
  1428. package/lib/redoc-lib/src/components/Schema/Schema.d.ts +0 -2
  1429. package/lib/redoc-lib/src/components/Schema/Schema.js +0 -2
  1430. package/lib/redoc-lib/src/components/Schema/index.d.ts +0 -4
  1431. package/lib/redoc-lib/src/components/Schema/index.js +0 -2
  1432. package/lib/redoc-lib/src/components/Schema/types.d.ts +0 -22
  1433. package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +0 -21
  1434. package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +0 -7
  1435. package/lib/redoc-lib/src/components/SearchBox/SearchBox.d.ts +0 -30
  1436. package/lib/redoc-lib/src/components/SearchBox/SearchBox.js +0 -2
  1437. package/lib/redoc-lib/src/components/SearchBox/styled.d.ts +0 -6
  1438. package/lib/redoc-lib/src/components/SearchBox/styled.js +0 -53
  1439. package/lib/redoc-lib/src/components/SectionItem/SectionItem.d.ts +0 -6
  1440. package/lib/redoc-lib/src/components/SectionItem/SectionItem.js +0 -2
  1441. package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -3
  1442. package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +0 -2
  1443. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityDefs.d.ts +0 -8
  1444. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityDefs.js +0 -4
  1445. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +0 -12
  1446. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +0 -26
  1447. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.d.ts +0 -7
  1448. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +0 -24
  1449. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.d.ts +0 -7
  1450. package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +0 -2
  1451. package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +0 -2
  1452. package/lib/redoc-lib/src/components/SideMenu/MenuItem.d.ts +0 -17
  1453. package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +0 -19
  1454. package/lib/redoc-lib/src/components/SideMenu/MenuItems.d.ts +0 -17
  1455. package/lib/redoc-lib/src/components/SideMenu/MenuItems.js +0 -2
  1456. package/lib/redoc-lib/src/components/SideMenu/SideMenu.d.ts +0 -15
  1457. package/lib/redoc-lib/src/components/SideMenu/SideMenu.js +0 -2
  1458. package/lib/redoc-lib/src/components/SideMenu/index.d.ts +0 -4
  1459. package/lib/redoc-lib/src/components/SideMenu/index.js +0 -2
  1460. package/lib/redoc-lib/src/components/SideMenu/styled.elements.d.ts +0 -25
  1461. package/lib/redoc-lib/src/components/SideMenu/styled.elements.js +0 -86
  1462. package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +0 -2
  1463. package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +0 -2
  1464. package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +0 -25
  1465. package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +0 -40
  1466. package/lib/redoc-lib/src/components/StoreBuilder.d.ts +0 -6
  1467. package/lib/redoc-lib/src/components/StoreBuilder.js +0 -2
  1468. package/lib/redoc-lib/src/components/index.d.ts +0 -31
  1469. package/lib/redoc-lib/src/components/index.js +0 -2
  1470. package/lib/redoc-lib/src/empty.d.ts +0 -1
  1471. package/lib/redoc-lib/src/empty.js +0 -2
  1472. package/lib/redoc-lib/src/index.d.ts +0 -7
  1473. package/lib/redoc-lib/src/index.js +0 -2
  1474. package/lib/redoc-lib/src/services/HistoryService.js +0 -2
  1475. package/lib/redoc-lib/src/services/Labels.js +0 -2
  1476. package/lib/redoc-lib/src/services/MarkdownRenderer.d.ts +0 -23
  1477. package/lib/redoc-lib/src/services/MarkdownRenderer.js +0 -2
  1478. package/lib/redoc-lib/src/services/MenuBuilder.d.ts +0 -62
  1479. package/lib/redoc-lib/src/services/MenuBuilder.js +0 -2
  1480. package/lib/redoc-lib/src/services/OpenAPIParser.d.ts +0 -51
  1481. package/lib/redoc-lib/src/services/OpenAPIParser.js +0 -2
  1482. package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +0 -84
  1483. package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +0 -2
  1484. package/lib/redoc-lib/src/services/ScrollService.d.ts +0 -18
  1485. package/lib/redoc-lib/src/services/SearchStore.d.ts +0 -13
  1486. package/lib/redoc-lib/src/services/SearchStore.js +0 -2
  1487. package/lib/redoc-lib/src/services/SpecStore.d.ts +0 -18
  1488. package/lib/redoc-lib/src/services/SpecStore.js +0 -2
  1489. package/lib/redoc-lib/src/services/constants.d.ts +0 -6
  1490. package/lib/redoc-lib/src/services/constants.js +0 -2
  1491. package/lib/redoc-lib/src/services/index.d.ts +0 -12
  1492. package/lib/redoc-lib/src/services/index.js +0 -2
  1493. package/lib/redoc-lib/src/services/models/ApiInfo.d.ts +0 -17
  1494. package/lib/redoc-lib/src/services/models/ApiInfo.js +0 -2
  1495. package/lib/redoc-lib/src/services/models/Callback.d.ts +0 -11
  1496. package/lib/redoc-lib/src/services/models/Callback.js +0 -2
  1497. package/lib/redoc-lib/src/services/models/Example.d.ts +0 -17
  1498. package/lib/redoc-lib/src/services/models/Example.js +0 -2
  1499. package/lib/redoc-lib/src/services/models/Field.d.ts +0 -35
  1500. package/lib/redoc-lib/src/services/models/Field.js +0 -2
  1501. package/lib/redoc-lib/src/services/models/Group.model.d.ts +0 -25
  1502. package/lib/redoc-lib/src/services/models/Group.model.js +0 -2
  1503. package/lib/redoc-lib/src/services/models/MediaContent.d.ts +0 -31
  1504. package/lib/redoc-lib/src/services/models/MediaContent.js +0 -2
  1505. package/lib/redoc-lib/src/services/models/MediaType.d.ts +0 -27
  1506. package/lib/redoc-lib/src/services/models/MediaType.js +0 -2
  1507. package/lib/redoc-lib/src/services/models/Operation.d.ts +0 -93
  1508. package/lib/redoc-lib/src/services/models/Operation.js +0 -2
  1509. package/lib/redoc-lib/src/services/models/RequestBody.d.ts +0 -19
  1510. package/lib/redoc-lib/src/services/models/RequestBody.js +0 -2
  1511. package/lib/redoc-lib/src/services/models/Response.d.ts +0 -28
  1512. package/lib/redoc-lib/src/services/models/Response.js +0 -2
  1513. package/lib/redoc-lib/src/services/models/Schema.d.ts +0 -78
  1514. package/lib/redoc-lib/src/services/models/Schema.js +0 -2
  1515. package/lib/redoc-lib/src/services/models/SecurityRequirement.d.ts +0 -12
  1516. package/lib/redoc-lib/src/services/models/SecuritySchemes.d.ts +0 -25
  1517. package/lib/redoc-lib/src/services/models/Webhook.d.ts +0 -9
  1518. package/lib/redoc-lib/src/services/models/Webhook.js +0 -2
  1519. package/lib/redoc-lib/src/services/models/index.d.ts +0 -14
  1520. package/lib/redoc-lib/src/services/models/index.js +0 -2
  1521. package/lib/redoc-lib/src/services/types.d.ts +0 -226
  1522. package/lib/redoc-lib/src/theme.d.ts +0 -10
  1523. package/lib/redoc-lib/src/theme.js +0 -2
  1524. package/lib/redoc-lib/src/types/index.d.ts +0 -3
  1525. package/lib/redoc-lib/src/types/index.js +0 -2
  1526. package/lib/redoc-lib/src/types/open-api.d.ts +0 -338
  1527. package/lib/redoc-lib/src/utils/argValuesHelpers.d.ts +0 -4
  1528. package/lib/redoc-lib/src/utils/argValuesHelpers.js +0 -2
  1529. package/lib/redoc-lib/src/utils/css-variables.d.ts +0 -2
  1530. package/lib/redoc-lib/src/utils/css-variables.js +0 -2
  1531. package/lib/redoc-lib/src/utils/helpers.d.ts +0 -46
  1532. package/lib/redoc-lib/src/utils/helpers.js +0 -2
  1533. package/lib/redoc-lib/src/utils/index.d.ts +0 -14
  1534. package/lib/redoc-lib/src/utils/index.js +0 -2
  1535. package/lib/redoc-lib/src/utils/loadAndBundleSpec.js +0 -2
  1536. package/lib/redoc-lib/src/utils/media-css.d.ts +0 -13
  1537. package/lib/redoc-lib/src/utils/media-css.js +0 -2
  1538. package/lib/redoc-lib/src/utils/openapi.d.ts +0 -41
  1539. package/lib/redoc-lib/src/utils/openapi.js +0 -2
  1540. package/lib/redoc-lib/src/utils/string.d.ts +0 -1
  1541. package/lib/redoc-lib/src/utils/string.js +0 -2
  1542. package/lib/services/SearchStore.d.ts +0 -37
  1543. package/lib/services/SearchStore.js +0 -2
  1544. package/lib/services/store-types.d.ts +0 -4
  1545. package/lib/services/store-types.js +0 -2
  1546. package/lib/types.d.ts +0 -25
  1547. package/lib/types.js +0 -2
  1548. package/lib/utils.d.ts +0 -30
  1549. package/lib/utils.js +0 -2
  1550. package/lib-esm/components/Search/ProSearchBox.d.ts +0 -52
  1551. package/lib-esm/components/Search/ProSearchBox.js +0 -2
  1552. package/lib-esm/components/console/ActionPanel.d.ts +0 -12
  1553. package/lib-esm/components/console/ActionPanel.js +0 -4
  1554. package/lib-esm/components/console/AuthPanel/AuthPanel.d.ts +0 -13
  1555. package/lib-esm/components/console/AuthPanel/AuthPanel.js +0 -2
  1556. package/lib-esm/components/console/AuthPanel/types.d.ts +0 -14
  1557. package/lib-esm/components/console/CodemirrorInput.d.ts +0 -39
  1558. package/lib-esm/components/console/CodemirrorInput.js +0 -50
  1559. package/lib-esm/components/console/Console.d.ts +0 -47
  1560. package/lib-esm/components/console/Console.js +0 -2
  1561. package/lib-esm/components/console/ConsoleLazy.d.ts +0 -2
  1562. package/lib-esm/components/console/ConsoleLazy.js +0 -2
  1563. package/lib-esm/components/console/OAuth2Flow.d.ts +0 -57
  1564. package/lib-esm/components/console/OAuth2Flow.js +0 -14
  1565. package/lib-esm/components/console/OAuth2TokenInput.d.ts +0 -35
  1566. package/lib-esm/components/console/OAuth2TokenInput.js +0 -2
  1567. package/lib-esm/components/console/OpenIDConnect.d.ts +0 -17
  1568. package/lib-esm/components/console/ParameterArray.d.ts +0 -9
  1569. package/lib-esm/components/console/ParameterDropdown.js +0 -2
  1570. package/lib-esm/components/console/RequestBody/RequestBody.d.ts +0 -3
  1571. package/lib-esm/components/console/RequestBody/RequestBody.js +0 -2
  1572. package/lib-esm/components/console/RequestBody/types.d.ts +0 -10
  1573. package/lib-esm/components/console/RequestBodyForm.d.ts +0 -9
  1574. package/lib-esm/components/console/RequestBodyForm.js +0 -10
  1575. package/lib-esm/components/console/ResponseBody.d.ts +0 -4
  1576. package/lib-esm/components/console/ResponseBody.js +0 -2
  1577. package/lib-esm/components/console/ResponseHeadersList.js +0 -10
  1578. package/lib-esm/components/console/ResponsePanel.d.ts +0 -21
  1579. package/lib-esm/components/console/ResponsePanel.js +0 -18
  1580. package/lib-esm/components/console/ServerVariable.js +0 -5
  1581. package/lib-esm/components/console/ServersDropdown/ServersDropdown.js +0 -4
  1582. package/lib-esm/components/console/ServersDropdown/types.d.ts +0 -5
  1583. package/lib-esm/components/console/TryItPanel.js +0 -14
  1584. package/lib-esm/components/console/codemirror-helpers.js +0 -2
  1585. package/lib-esm/components/console/utils.d.ts +0 -27
  1586. package/lib-esm/components/console/utils.js +0 -2
  1587. package/lib-esm/hooks/useMount.d.ts +0 -1
  1588. package/lib-esm/hooks/useMount.js +0 -2
  1589. package/lib-esm/hooks/useUnmount.d.ts +0 -1
  1590. package/lib-esm/hooks/useUnmount.js +0 -2
  1591. package/lib-esm/redoc-lib/index.d.ts +0 -1
  1592. package/lib-esm/redoc-lib/index.js +0 -2
  1593. package/lib-esm/redoc-lib/src/common-elements/Download.d.ts +0 -7
  1594. package/lib-esm/redoc-lib/src/common-elements/Download.js +0 -4
  1595. package/lib-esm/redoc-lib/src/common-elements/LinkToField.d.ts +0 -9
  1596. package/lib-esm/redoc-lib/src/common-elements/LinkToField.js +0 -27
  1597. package/lib-esm/redoc-lib/src/common-elements/fields-layout.d.ts +0 -15
  1598. package/lib-esm/redoc-lib/src/common-elements/fields-layout.js +0 -228
  1599. package/lib-esm/redoc-lib/src/common-elements/fields.js +0 -103
  1600. package/lib-esm/redoc-lib/src/common-elements/headers.js +0 -36
  1601. package/lib-esm/redoc-lib/src/common-elements/icons.d.ts +0 -41
  1602. package/lib-esm/redoc-lib/src/common-elements/icons.js +0 -55
  1603. package/lib-esm/redoc-lib/src/common-elements/index.d.ts +0 -9
  1604. package/lib-esm/redoc-lib/src/common-elements/index.js +0 -2
  1605. package/lib-esm/redoc-lib/src/common-elements/linkify.js +0 -55
  1606. package/lib-esm/redoc-lib/src/common-elements/panels.d.ts +0 -13
  1607. package/lib-esm/redoc-lib/src/common-elements/panels.js +0 -95
  1608. package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.js +0 -4
  1609. package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +0 -5
  1610. package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.js +0 -2
  1611. package/lib-esm/redoc-lib/src/components/ApiInfo/index.d.ts +0 -1
  1612. package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +0 -8
  1613. package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.js +0 -24
  1614. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +0 -11
  1615. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +0 -4
  1616. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +0 -12
  1617. package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +0 -2
  1618. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +0 -8
  1619. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.js +0 -4
  1620. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +0 -5
  1621. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.js +0 -2
  1622. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +0 -6
  1623. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.js +0 -2
  1624. package/lib-esm/redoc-lib/src/components/Callbacks/CallbackTitle.js +0 -7
  1625. package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +0 -8
  1626. package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.js +0 -2
  1627. package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.d.ts +0 -9
  1628. package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.js +0 -2
  1629. package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.d.ts +0 -8
  1630. package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.js +0 -2
  1631. package/lib-esm/redoc-lib/src/components/ContentItems/Skeleton.js +0 -31
  1632. package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +0 -10
  1633. package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.js +0 -2
  1634. package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/index.d.ts +0 -1
  1635. package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/index.js +0 -2
  1636. package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +0 -4
  1637. package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.js +0 -21
  1638. package/lib-esm/redoc-lib/src/components/DownloadButton/index.d.ts +0 -1
  1639. package/lib-esm/redoc-lib/src/components/DownloadButton/index.js +0 -2
  1640. package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -7
  1641. package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +0 -8
  1642. package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +0 -8
  1643. package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +0 -5
  1644. package/lib-esm/redoc-lib/src/components/Fields/EnumValues.d.ts +0 -17
  1645. package/lib-esm/redoc-lib/src/components/Fields/EnumValues.js +0 -13
  1646. package/lib-esm/redoc-lib/src/components/Fields/Extensions.d.ts +0 -9
  1647. package/lib-esm/redoc-lib/src/components/Fields/Extensions.js +0 -6
  1648. package/lib-esm/redoc-lib/src/components/Fields/Field.d.ts +0 -20
  1649. package/lib-esm/redoc-lib/src/components/Fields/Field.js +0 -2
  1650. package/lib-esm/redoc-lib/src/components/Fields/FieldContstraints.js +0 -2
  1651. package/lib-esm/redoc-lib/src/components/Fields/FieldDetail.d.ts +0 -10
  1652. package/lib-esm/redoc-lib/src/components/Fields/FieldDetail.js +0 -2
  1653. package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.d.ts +0 -12
  1654. package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.js +0 -15
  1655. package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -22
  1656. package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +0 -2
  1657. package/lib-esm/redoc-lib/src/components/Loading/Loading.d.ts +0 -5
  1658. package/lib-esm/redoc-lib/src/components/Loading/Loading.js +0 -9
  1659. package/lib-esm/redoc-lib/src/components/Loading/Spinner.d.ts +0 -6
  1660. package/lib-esm/redoc-lib/src/components/Loading/Spinner.js +0 -19
  1661. package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +0 -2
  1662. package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.js +0 -2
  1663. package/lib-esm/redoc-lib/src/components/Markdown/styled.js +0 -257
  1664. package/lib-esm/redoc-lib/src/components/Markdown/types.d.ts +0 -16
  1665. package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +0 -13
  1666. package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +0 -2
  1667. package/lib-esm/redoc-lib/src/components/Operation/Operation.d.ts +0 -7
  1668. package/lib-esm/redoc-lib/src/components/Operation/Operation.js +0 -8
  1669. package/lib-esm/redoc-lib/src/components/Operation/index.d.ts +0 -2
  1670. package/lib-esm/redoc-lib/src/components/OptionsProvider.d.ts +0 -6
  1671. package/lib-esm/redoc-lib/src/components/OptionsProvider.js +0 -2
  1672. package/lib-esm/redoc-lib/src/components/Parameters/Parameters.d.ts +0 -10
  1673. package/lib-esm/redoc-lib/src/components/Parameters/Parameters.js +0 -4
  1674. package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +0 -10
  1675. package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.js +0 -16
  1676. package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.d.ts +0 -3
  1677. package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.js +0 -2
  1678. package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +0 -2
  1679. package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +0 -2
  1680. package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +0 -2
  1681. package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +0 -2
  1682. package/lib-esm/redoc-lib/src/components/PayloadSamples/index.d.ts +0 -5
  1683. package/lib-esm/redoc-lib/src/components/PayloadSamples/index.js +0 -2
  1684. package/lib-esm/redoc-lib/src/components/PayloadSamples/types.d.ts +0 -25
  1685. package/lib-esm/redoc-lib/src/components/PayloadSamples/useExternalExample.d.ts +0 -2
  1686. package/lib-esm/redoc-lib/src/components/RenderHook.d.ts +0 -6
  1687. package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +0 -16
  1688. package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.js +0 -2
  1689. package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +0 -12
  1690. package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.js +0 -2
  1691. package/lib-esm/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +0 -9
  1692. package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.d.ts +0 -5
  1693. package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +0 -2
  1694. package/lib-esm/redoc-lib/src/components/Responses/Response.d.ts +0 -2
  1695. package/lib-esm/redoc-lib/src/components/Responses/Response.js +0 -2
  1696. package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.d.ts +0 -5
  1697. package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.js +0 -4
  1698. package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.js +0 -2
  1699. package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.js +0 -2
  1700. package/lib-esm/redoc-lib/src/components/Responses/index.d.ts +0 -1
  1701. package/lib-esm/redoc-lib/src/components/Responses/index.js +0 -2
  1702. package/lib-esm/redoc-lib/src/components/Responses/styled.js +0 -14
  1703. package/lib-esm/redoc-lib/src/components/Responses/types.d.ts +0 -12
  1704. package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.js +0 -4
  1705. package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.d.ts +0 -2
  1706. package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.js +0 -2
  1707. package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.d.ts +0 -2
  1708. package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.js +0 -2
  1709. package/lib-esm/redoc-lib/src/components/Schema/RecursiveSchema.d.ts +0 -2
  1710. package/lib-esm/redoc-lib/src/components/Schema/RecursiveSchema.js +0 -2
  1711. package/lib-esm/redoc-lib/src/components/Schema/Schema.d.ts +0 -2
  1712. package/lib-esm/redoc-lib/src/components/Schema/Schema.js +0 -2
  1713. package/lib-esm/redoc-lib/src/components/Schema/index.d.ts +0 -4
  1714. package/lib-esm/redoc-lib/src/components/Schema/index.js +0 -2
  1715. package/lib-esm/redoc-lib/src/components/Schema/types.d.ts +0 -22
  1716. package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +0 -21
  1717. package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +0 -7
  1718. package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.d.ts +0 -30
  1719. package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.js +0 -2
  1720. package/lib-esm/redoc-lib/src/components/SearchBox/styled.d.ts +0 -6
  1721. package/lib-esm/redoc-lib/src/components/SearchBox/styled.js +0 -53
  1722. package/lib-esm/redoc-lib/src/components/SectionItem/SectionItem.d.ts +0 -6
  1723. package/lib-esm/redoc-lib/src/components/SectionItem/SectionItem.js +0 -2
  1724. package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -3
  1725. package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +0 -2
  1726. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityDefs.d.ts +0 -8
  1727. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityDefs.js +0 -4
  1728. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +0 -12
  1729. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +0 -26
  1730. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.d.ts +0 -7
  1731. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +0 -24
  1732. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.d.ts +0 -7
  1733. package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +0 -2
  1734. package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +0 -2
  1735. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.d.ts +0 -17
  1736. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +0 -19
  1737. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItems.d.ts +0 -17
  1738. package/lib-esm/redoc-lib/src/components/SideMenu/MenuItems.js +0 -2
  1739. package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.d.ts +0 -15
  1740. package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.js +0 -2
  1741. package/lib-esm/redoc-lib/src/components/SideMenu/index.d.ts +0 -4
  1742. package/lib-esm/redoc-lib/src/components/SideMenu/index.js +0 -2
  1743. package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.d.ts +0 -25
  1744. package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.js +0 -86
  1745. package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +0 -2
  1746. package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +0 -2
  1747. package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +0 -25
  1748. package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +0 -40
  1749. package/lib-esm/redoc-lib/src/components/StoreBuilder.d.ts +0 -6
  1750. package/lib-esm/redoc-lib/src/components/StoreBuilder.js +0 -2
  1751. package/lib-esm/redoc-lib/src/components/index.d.ts +0 -31
  1752. package/lib-esm/redoc-lib/src/components/index.js +0 -2
  1753. package/lib-esm/redoc-lib/src/empty.d.ts +0 -1
  1754. package/lib-esm/redoc-lib/src/empty.js +0 -2
  1755. package/lib-esm/redoc-lib/src/index.d.ts +0 -7
  1756. package/lib-esm/redoc-lib/src/index.js +0 -2
  1757. package/lib-esm/redoc-lib/src/services/HistoryService.js +0 -2
  1758. package/lib-esm/redoc-lib/src/services/Labels.js +0 -2
  1759. package/lib-esm/redoc-lib/src/services/MarkdownRenderer.d.ts +0 -23
  1760. package/lib-esm/redoc-lib/src/services/MarkdownRenderer.js +0 -2
  1761. package/lib-esm/redoc-lib/src/services/MenuBuilder.d.ts +0 -62
  1762. package/lib-esm/redoc-lib/src/services/MenuBuilder.js +0 -2
  1763. package/lib-esm/redoc-lib/src/services/OpenAPIParser.d.ts +0 -51
  1764. package/lib-esm/redoc-lib/src/services/OpenAPIParser.js +0 -2
  1765. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +0 -84
  1766. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +0 -2
  1767. package/lib-esm/redoc-lib/src/services/ScrollService.d.ts +0 -18
  1768. package/lib-esm/redoc-lib/src/services/SearchStore.d.ts +0 -13
  1769. package/lib-esm/redoc-lib/src/services/SearchStore.js +0 -2
  1770. package/lib-esm/redoc-lib/src/services/SpecStore.d.ts +0 -18
  1771. package/lib-esm/redoc-lib/src/services/SpecStore.js +0 -2
  1772. package/lib-esm/redoc-lib/src/services/constants.d.ts +0 -6
  1773. package/lib-esm/redoc-lib/src/services/constants.js +0 -2
  1774. package/lib-esm/redoc-lib/src/services/index.d.ts +0 -12
  1775. package/lib-esm/redoc-lib/src/services/index.js +0 -2
  1776. package/lib-esm/redoc-lib/src/services/models/ApiInfo.d.ts +0 -17
  1777. package/lib-esm/redoc-lib/src/services/models/ApiInfo.js +0 -2
  1778. package/lib-esm/redoc-lib/src/services/models/Callback.d.ts +0 -11
  1779. package/lib-esm/redoc-lib/src/services/models/Callback.js +0 -2
  1780. package/lib-esm/redoc-lib/src/services/models/Example.d.ts +0 -17
  1781. package/lib-esm/redoc-lib/src/services/models/Example.js +0 -2
  1782. package/lib-esm/redoc-lib/src/services/models/Field.d.ts +0 -35
  1783. package/lib-esm/redoc-lib/src/services/models/Field.js +0 -2
  1784. package/lib-esm/redoc-lib/src/services/models/Group.model.d.ts +0 -25
  1785. package/lib-esm/redoc-lib/src/services/models/Group.model.js +0 -2
  1786. package/lib-esm/redoc-lib/src/services/models/MediaContent.d.ts +0 -31
  1787. package/lib-esm/redoc-lib/src/services/models/MediaContent.js +0 -2
  1788. package/lib-esm/redoc-lib/src/services/models/MediaType.d.ts +0 -27
  1789. package/lib-esm/redoc-lib/src/services/models/MediaType.js +0 -2
  1790. package/lib-esm/redoc-lib/src/services/models/Operation.d.ts +0 -93
  1791. package/lib-esm/redoc-lib/src/services/models/Operation.js +0 -2
  1792. package/lib-esm/redoc-lib/src/services/models/RequestBody.d.ts +0 -19
  1793. package/lib-esm/redoc-lib/src/services/models/RequestBody.js +0 -2
  1794. package/lib-esm/redoc-lib/src/services/models/Response.d.ts +0 -28
  1795. package/lib-esm/redoc-lib/src/services/models/Response.js +0 -2
  1796. package/lib-esm/redoc-lib/src/services/models/Schema.d.ts +0 -78
  1797. package/lib-esm/redoc-lib/src/services/models/Schema.js +0 -2
  1798. package/lib-esm/redoc-lib/src/services/models/SecurityRequirement.d.ts +0 -12
  1799. package/lib-esm/redoc-lib/src/services/models/SecuritySchemes.d.ts +0 -25
  1800. package/lib-esm/redoc-lib/src/services/models/Webhook.d.ts +0 -9
  1801. package/lib-esm/redoc-lib/src/services/models/Webhook.js +0 -2
  1802. package/lib-esm/redoc-lib/src/services/models/index.d.ts +0 -14
  1803. package/lib-esm/redoc-lib/src/services/models/index.js +0 -2
  1804. package/lib-esm/redoc-lib/src/services/types.d.ts +0 -226
  1805. package/lib-esm/redoc-lib/src/theme.d.ts +0 -10
  1806. package/lib-esm/redoc-lib/src/theme.js +0 -2
  1807. package/lib-esm/redoc-lib/src/types/index.d.ts +0 -3
  1808. package/lib-esm/redoc-lib/src/types/index.js +0 -2
  1809. package/lib-esm/redoc-lib/src/types/open-api.d.ts +0 -338
  1810. package/lib-esm/redoc-lib/src/utils/argValuesHelpers.d.ts +0 -4
  1811. package/lib-esm/redoc-lib/src/utils/argValuesHelpers.js +0 -2
  1812. package/lib-esm/redoc-lib/src/utils/css-variables.d.ts +0 -2
  1813. package/lib-esm/redoc-lib/src/utils/css-variables.js +0 -2
  1814. package/lib-esm/redoc-lib/src/utils/helpers.d.ts +0 -46
  1815. package/lib-esm/redoc-lib/src/utils/helpers.js +0 -2
  1816. package/lib-esm/redoc-lib/src/utils/index.d.ts +0 -14
  1817. package/lib-esm/redoc-lib/src/utils/index.js +0 -2
  1818. package/lib-esm/redoc-lib/src/utils/loadAndBundleSpec.js +0 -2
  1819. package/lib-esm/redoc-lib/src/utils/media-css.d.ts +0 -13
  1820. package/lib-esm/redoc-lib/src/utils/media-css.js +0 -2
  1821. package/lib-esm/redoc-lib/src/utils/openapi.d.ts +0 -41
  1822. package/lib-esm/redoc-lib/src/utils/openapi.js +0 -2
  1823. package/lib-esm/redoc-lib/src/utils/string.d.ts +0 -1
  1824. package/lib-esm/redoc-lib/src/utils/string.js +0 -2
  1825. package/lib-esm/services/SearchStore.d.ts +0 -37
  1826. package/lib-esm/services/SearchStore.js +0 -2
  1827. package/lib-esm/services/store-types.d.ts +0 -4
  1828. package/lib-esm/services/store-types.js +0 -2
  1829. package/lib-esm/types.d.ts +0 -25
  1830. package/lib-esm/types.js +0 -2
  1831. package/lib-esm/utils.d.ts +0 -30
  1832. package/lib-esm/utils.js +0 -2
@@ -2,96 +2,172 @@
2
2
  * Redocly Reference Docs
3
3
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: "3.0.0-alpha.10"
6
- */(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{62680:(v,T,s)=>{"use strict";var p=s(67286),S=s(89429),A=S(p("String.prototype.indexOf"));v.exports=function(E,F){var U=p(E,!!F);return typeof U=="function"&&A(E,".prototype.")>-1?S(U):U}},89429:(v,T,s)=>{"use strict";var p=s(4090),S=s(67286),A=S("%Function.prototype.apply%"),h=S("%Function.prototype.call%"),E=S("%Reflect.apply%",!0)||p.call(h,A),F=S("%Object.getOwnPropertyDescriptor%",!0),U=S("%Object.defineProperty%",!0),_=S("%Math.max%");if(U)try{U({},"a",{value:1})}catch(le){U=null}v.exports=function(K){var ne=E(p,h,arguments);if(F&&U){var $=F(ne,"length");$.configurable&&U(ne,"length",{value:1+_(0,K.length-(arguments.length-1))})}return ne};var Q=function(){return E(p,A,arguments)};U?U(v.exports,"apply",{value:Q}):v.exports.apply=Q},61682:(v,T,s)=>{(function(p){p(s(23326))})(function(p){var S={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},A=p.Pos;p.defineOption("autoCloseBrackets",!1,function(L,C,k){k&&k!=p.Init&&(L.removeKeyMap(E),L.state.closeBrackets=null),C&&(F(h(C,"pairs")),L.state.closeBrackets=C,L.addKeyMap(E))});function h(L,C){return C=="pairs"&&typeof L=="string"?L:typeof L=="object"&&L[C]!=null?L[C]:S[C]}var E={Backspace:Q,Enter:le};function F(L){for(var C=0;C<L.length;C++){var k=L.charAt(C),B="'"+k+"'";E[B]||(E[B]=U(k))}}F(S.pairs+"`");function U(L){return function(C){return $(C,L)}}function _(L){var C=L.state.closeBrackets;if(!C||C.override)return C;var k=L.getModeAt(L.getCursor());return k.closeBrackets||C}function Q(L){var C=_(L);if(!C||L.getOption("disableInput"))return p.Pass;for(var k=h(C,"pairs"),B=L.listSelections(),X=0;X<B.length;X++){if(!B[X].empty())return p.Pass;var H=P(L,B[X].head);if(!H||k.indexOf(H)%2!=0)return p.Pass}for(var X=B.length-1;X>=0;X--){var D=B[X].head;L.replaceRange("",A(D.line,D.ch-1),A(D.line,D.ch+1),"+delete")}}function le(L){var C=_(L),k=C&&h(C,"explode");if(!k||L.getOption("disableInput"))return p.Pass;for(var B=L.listSelections(),X=0;X<B.length;X++){if(!B[X].empty())return p.Pass;var H=P(L,B[X].head);if(!H||k.indexOf(H)%2!=0)return p.Pass}L.operation(function(){var D=L.lineSeparator()||`
7
- `;L.replaceSelection(D+D,null),K(L,-1),B=L.listSelections();for(var re=0;re<B.length;re++){var J=B[re].head.line;L.indentLine(J,null,!0),L.indentLine(J+1,null,!0)}})}function K(L,C){for(var k=[],B=L.listSelections(),X=0,H=0;H<B.length;H++){var D=B[H];D.head==L.getCursor()&&(X=H);var re=D.head.ch||C>0?{line:D.head.line,ch:D.head.ch+C}:{line:D.head.line-1};k.push({anchor:re,head:re})}L.setSelections(k,X)}function ne(L){var C=p.cmpPos(L.anchor,L.head)>0;return{anchor:new A(L.anchor.line,L.anchor.ch+(C?-1:1)),head:new A(L.head.line,L.head.ch+(C?1:-1))}}function $(L,C){var k=_(L);if(!k||L.getOption("disableInput"))return p.Pass;var B=h(k,"pairs"),X=B.indexOf(C);if(X==-1)return p.Pass;for(var H=h(k,"closeBefore"),D=h(k,"triples"),re=B.charAt(X+1)==C,J=L.listSelections(),z=X%2==0,fe,pe=0;pe<J.length;pe++){var q=J[pe],Z=q.head,G,ve=L.getRange(Z,A(Z.line,Z.ch+1));if(z&&!q.empty())G="surround";else if((re||!z)&&ve==C)re&&Y(L,Z)?G="both":D.indexOf(C)>=0&&L.getRange(Z,A(Z.line,Z.ch+3))==C+C+C?G="skipThree":G="skip";else if(re&&Z.ch>1&&D.indexOf(C)>=0&&L.getRange(A(Z.line,Z.ch-2),Z)==C+C){if(Z.ch>2&&/\bstring/.test(L.getTokenTypeAt(A(Z.line,Z.ch-2))))return p.Pass;G="addFour"}else if(re){var Ie=Z.ch==0?" ":L.getRange(A(Z.line,Z.ch-1),Z);if(!p.isWordChar(ve)&&Ie!=C&&!p.isWordChar(Ie))G="both";else return p.Pass}else if(z&&(ve.length===0||/\s/.test(ve)||H.indexOf(ve)>-1))G="both";else return p.Pass;if(!fe)fe=G;else if(fe!=G)return p.Pass}var Ne=X%2?B.charAt(X-1):C,je=X%2?C:B.charAt(X+1);L.operation(function(){if(fe=="skip")K(L,1);else if(fe=="skipThree")K(L,3);else if(fe=="surround"){for(var tt=L.getSelections(),_e=0;_e<tt.length;_e++)tt[_e]=Ne+tt[_e]+je;L.replaceSelections(tt,"around"),tt=L.listSelections().slice();for(var _e=0;_e<tt.length;_e++)tt[_e]=ne(tt[_e]);L.setSelections(tt)}else fe=="both"?(L.replaceSelection(Ne+je,null),L.triggerElectric(Ne+je),K(L,-1)):fe=="addFour"&&(L.replaceSelection(Ne+Ne+Ne+Ne,"before"),K(L,1))})}function P(L,C){var k=L.getRange(A(C.line,C.ch-1),A(C.line,C.ch+1));return k.length==2?k:null}function Y(L,C){var k=L.getTokenAt(A(C.line,C.ch+1));return/\bstring/.test(k.type)&&k.start==C.ch&&(C.ch==0||!/\bstring/.test(L.getTokenTypeAt(C)))}})},32407:(v,T,s)=>{(function(p){p(s(23326))})(function(p){var S=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),A=p.Pos,h={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function E(K){return K&&K.bracketRegex||/[(){}[\]]/}function F(K,ne,$){var P=K.getLineHandle(ne.line),Y=ne.ch-1,L=$&&$.afterCursor;L==null&&(L=/(^| )cm-fat-cursor($| )/.test(K.getWrapperElement().className));var C=E($),k=!L&&Y>=0&&C.test(P.text.charAt(Y))&&h[P.text.charAt(Y)]||C.test(P.text.charAt(Y+1))&&h[P.text.charAt(++Y)];if(!k)return null;var B=k.charAt(1)==">"?1:-1;if($&&$.strict&&B>0!=(Y==ne.ch))return null;var X=K.getTokenTypeAt(A(ne.line,Y+1)),H=U(K,A(ne.line,Y+(B>0?1:0)),B,X,$);return H==null?null:{from:A(ne.line,Y),to:H&&H.pos,match:H&&H.ch==k.charAt(0),forward:B>0}}function U(K,ne,$,P,Y){for(var L=Y&&Y.maxScanLineLength||1e4,C=Y&&Y.maxScanLines||1e3,k=[],B=E(Y),X=$>0?Math.min(ne.line+C,K.lastLine()+1):Math.max(K.firstLine()-1,ne.line-C),H=ne.line;H!=X;H+=$){var D=K.getLine(H);if(!!D){var re=$>0?0:D.length-1,J=$>0?D.length:-1;if(!(D.length>L))for(H==ne.line&&(re=ne.ch-($<0?1:0));re!=J;re+=$){var z=D.charAt(re);if(B.test(z)&&(P===void 0||(K.getTokenTypeAt(A(H,re+1))||"")==(P||""))){var fe=h[z];if(fe&&fe.charAt(1)==">"==$>0)k.push(z);else if(k.length)k.pop();else return{pos:A(H,re),ch:z}}}}}return H-$==($>0?K.lastLine():K.firstLine())?!1:null}function _(K,ne,$){for(var P=K.state.matchBrackets.maxHighlightLineLength||1e3,Y=$&&$.highlightNonMatching,L=[],C=K.listSelections(),k=0;k<C.length;k++){var B=C[k].empty()&&F(K,C[k].head,$);if(B&&(B.match||Y!==!1)&&K.getLine(B.from.line).length<=P){var X=B.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";L.push(K.markText(B.from,A(B.from.line,B.from.ch+1),{className:X})),B.to&&K.getLine(B.to.line).length<=P&&L.push(K.markText(B.to,A(B.to.line,B.to.ch+1),{className:X}))}}if(L.length){S&&K.state.focused&&K.focus();var H=function(){K.operation(function(){for(var D=0;D<L.length;D++)L[D].clear()})};if(ne)setTimeout(H,800);else return H}}function Q(K){K.operation(function(){K.state.matchBrackets.currentlyHighlighted&&(K.state.matchBrackets.currentlyHighlighted(),K.state.matchBrackets.currentlyHighlighted=null),K.state.matchBrackets.currentlyHighlighted=_(K,!1,K.state.matchBrackets)})}function le(K){K.state.matchBrackets&&K.state.matchBrackets.currentlyHighlighted&&(K.state.matchBrackets.currentlyHighlighted(),K.state.matchBrackets.currentlyHighlighted=null)}p.defineOption("matchBrackets",!1,function(K,ne,$){$&&$!=p.Init&&(K.off("cursorActivity",Q),K.off("focus",Q),K.off("blur",le),le(K)),ne&&(K.state.matchBrackets=typeof ne=="object"?ne:{},K.on("cursorActivity",Q),K.on("focus",Q),K.on("blur",le))}),p.defineExtension("matchBrackets",function(){_(this,!0)}),p.defineExtension("findMatchingBracket",function(K,ne,$){return($||typeof ne=="boolean")&&($?($.strict=ne,ne=$):ne=ne?{strict:!0}:null),F(this,K,ne)}),p.defineExtension("scanForBracket",function(K,ne,$,P){return U(this,K,ne,$,P)})})},22130:(v,T,s)=>{(function(p){p(s(23326))})(function(p){"use strict";var S="CodeMirror-hint",A="CodeMirror-hint-active";p.showHint=function(L,C,k){if(!C)return L.showHint(k);k&&k.async&&(C.async=!0);var B={hint:C};if(k)for(var X in k)B[X]=k[X];return L.showHint(B)},p.defineExtension("showHint",function(L){L=U(this,this.getCursor("start"),L);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!L.hint.supportsSelection)return;for(var k=0;k<C.length;k++)if(C[k].head.line!=C[k].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var B=this.state.completionActive=new h(this,L);!B.options.hint||(p.signal(this,"startCompletion",this),B.update(!0))}}),p.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function h(L,C){if(this.cm=L,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 k=this;L.on("cursorActivity",this.activityFunc=function(){k.cursorActivity()})}}var E=window.requestAnimationFrame||function(L){return setTimeout(L,1e3/60)},F=window.cancelAnimationFrame||clearTimeout;h.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&&p.signal(this.data,"close"),this.widget&&this.widget.close(),p.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(L,C){var k=L.list[C],B=this;this.cm.operation(function(){k.hint?k.hint(B.cm,L,k):B.cm.replaceRange(_(k),k.from||L.from,k.to||L.to,"complete"),p.signal(L,"pick",k),B.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(F(this.debounce),this.debounce=0);var L=this.startPos;this.data&&(L=this.data.from);var C=this.cm.getCursor(),k=this.cm.getLine(C.line);if(C.line!=this.startPos.line||k.length-C.ch!=this.startLen-this.startPos.ch||C.ch<L.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(k.charAt(C.ch-1)))this.close();else{var B=this;this.debounce=E(function(){B.update()}),this.widget&&this.widget.disable()}},update:function(L){if(this.tick!=null){var C=this,k=++this.tick;$(this.options.hint,this.cm,this.options,function(B){C.tick==k&&C.finishUpdate(B,L)})}},finishUpdate:function(L,C){this.data&&p.signal(this.data,"update");var k=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=L,L&&L.list.length&&(k&&L.list.length==1?this.pick(L,0):(this.widget=new K(this,L),p.signal(L,"shown")))}};function U(L,C,k){var B=L.options.hintOptions,X={};for(var H in Y)X[H]=Y[H];if(B)for(var H in B)B[H]!==void 0&&(X[H]=B[H]);if(k)for(var H in k)k[H]!==void 0&&(X[H]=k[H]);return X.hint.resolve&&(X.hint=X.hint.resolve(L,C)),X}function _(L){return typeof L=="string"?L:L.text}function Q(L,C){var k={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},B=/Mac/.test(navigator.platform);B&&(k["Ctrl-P"]=function(){C.moveFocus(-1)},k["Ctrl-N"]=function(){C.moveFocus(1)});var X=L.options.customKeys,H=X?{}:k;function D(z,fe){var pe;typeof fe!="string"?pe=function(q){return fe(q,C)}:k.hasOwnProperty(fe)?pe=k[fe]:pe=fe,H[z]=pe}if(X)for(var re in X)X.hasOwnProperty(re)&&D(re,X[re]);var J=L.options.extraKeys;if(J)for(var re in J)J.hasOwnProperty(re)&&D(re,J[re]);return H}function le(L,C){for(;C&&C!=L;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==L)return C;C=C.parentNode}}function K(L,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=L,this.data=C,this.picked=!1;var k=this,B=L.cm,X=B.getInputField().ownerDocument,H=X.defaultView||X.parentWindow,D=this.hints=X.createElement("ul");D.setAttribute("role","listbox"),D.setAttribute("aria-expanded","true"),D.id=this.id;var re=L.cm.options.theme;D.className="CodeMirror-hints "+re,this.selectedHint=C.selectedHint||0;for(var J=C.list,z=0;z<J.length;++z){var fe=D.appendChild(X.createElement("li")),pe=J[z],q=S+(z!=this.selectedHint?"":" "+A);pe.className!=null&&(q=pe.className+" "+q),fe.className=q,z==this.selectedHint&&fe.setAttribute("aria-selected","true"),fe.id=this.id+"-"+z,fe.setAttribute("role","option"),pe.render?pe.render(fe,C,pe):fe.appendChild(X.createTextNode(pe.displayText||_(pe))),fe.hintId=z}var Z=L.options.container||X.body,G=B.cursorCoords(L.options.alignWithWord?C.from:null),ve=G.left,Ie=G.bottom,Ne=!0,je=0,tt=0;if(Z!==X.body){var _e=["absolute","relative","fixed"].indexOf(H.getComputedStyle(Z).position)!==-1,mt=_e?Z:Z.offsetParent,De=mt.getBoundingClientRect(),Oe=X.body.getBoundingClientRect();je=De.left-Oe.left-mt.scrollLeft,tt=De.top-Oe.top-mt.scrollTop}D.style.left=ve-je+"px",D.style.top=Ie-tt+"px";var Ue=H.innerWidth||Math.max(X.body.offsetWidth,X.documentElement.offsetWidth),Pe=H.innerHeight||Math.max(X.body.offsetHeight,X.documentElement.offsetHeight);Z.appendChild(D),B.getInputField().setAttribute("aria-autocomplete","list"),B.getInputField().setAttribute("aria-owns",this.id),B.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Ce=L.options.moveOnOverlap?D.getBoundingClientRect():new DOMRect,Ge=L.options.paddingForScrollbar?D.scrollHeight>D.clientHeight+1:!1,rt;setTimeout(function(){rt=B.getScrollInfo()});var $e=Ce.bottom-Pe;if($e>0){var et=Ce.bottom-Ce.top,Ze=Ce.top-(G.bottom-G.top)-2;Pe-Ce.top<Ze?(et>Ze&&(D.style.height=(et=Ze)+"px"),D.style.top=(Ie=G.top-et)+tt+"px",Ne=!1):D.style.height=Pe-Ce.top-2+"px"}var Ct=Ce.right-Ue;if(Ge&&(Ct+=B.display.nativeBarWidth),Ct>0&&(Ce.right-Ce.left>Ue&&(D.style.width=Ue-5+"px",Ct-=Ce.right-Ce.left-Ue),D.style.left=(ve=Math.max(G.left-Ct-je,0))+"px"),Ge)for(var kt=D.firstChild;kt;kt=kt.nextSibling)kt.style.paddingRight=B.display.nativeBarWidth+"px";if(B.addKeyMap(this.keyMap=Q(L,{moveFocus:function(xt,Ft){k.changeActive(k.selectedHint+xt,Ft)},setFocus:function(xt){k.changeActive(xt)},menuSize:function(){return k.screenAmount()},length:J.length,close:function(){L.close()},pick:function(){k.pick()},data:C})),L.options.closeOnUnfocus){var Zt;B.on("blur",this.onBlur=function(){Zt=setTimeout(function(){L.close()},100)}),B.on("focus",this.onFocus=function(){clearTimeout(Zt)})}B.on("scroll",this.onScroll=function(){var xt=B.getScrollInfo(),Ft=B.getWrapperElement().getBoundingClientRect();rt||(rt=B.getScrollInfo());var Kr=Ie+rt.top-xt.top,br=Kr-(H.pageYOffset||(X.documentElement||X.body).scrollTop);if(Ne||(br+=D.offsetHeight),br<=Ft.top||br>=Ft.bottom)return L.close();D.style.top=Kr+"px",D.style.left=ve+rt.left-xt.left+"px"}),p.on(D,"dblclick",function(xt){var Ft=le(D,xt.target||xt.srcElement);Ft&&Ft.hintId!=null&&(k.changeActive(Ft.hintId),k.pick())}),p.on(D,"click",function(xt){var Ft=le(D,xt.target||xt.srcElement);Ft&&Ft.hintId!=null&&(k.changeActive(Ft.hintId),L.options.completeOnSingleClick&&k.pick())}),p.on(D,"mousedown",function(){setTimeout(function(){B.focus()},20)});var lt=this.getSelectedHintRange();return(lt.from!==0||lt.to!==0)&&this.scrollToActive(),p.signal(C,"select",J[this.selectedHint],D.childNodes[this.selectedHint]),!0}K.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 L=this.completion.cm.getInputField();L.removeAttribute("aria-activedescendant"),L.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 L=this;this.keyMap={Enter:function(){L.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(L,C){if(L>=this.data.list.length?L=C?this.data.list.length-1:0:L<0&&(L=C?0:this.data.list.length-1),this.selectedHint!=L){var k=this.hints.childNodes[this.selectedHint];k&&(k.className=k.className.replace(" "+A,""),k.removeAttribute("aria-selected")),k=this.hints.childNodes[this.selectedHint=L],k.className+=" "+A,k.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",k.id),this.scrollToActive(),p.signal(this.data,"select",this.data.list[this.selectedHint],k)}},scrollToActive:function(){var L=this.getSelectedHintRange(),C=this.hints.childNodes[L.from],k=this.hints.childNodes[L.to],B=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-B.offsetTop:k.offsetTop+k.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=k.offsetTop+k.offsetHeight-this.hints.clientHeight+B.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var L=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-L),to:Math.min(this.data.list.length-1,this.selectedHint+L)}}};function ne(L,C){if(!L.somethingSelected())return C;for(var k=[],B=0;B<C.length;B++)C[B].supportsSelection&&k.push(C[B]);return k}function $(L,C,k,B){if(L.async)L(C,B,k);else{var X=L(C,k);X&&X.then?X.then(B):B(X)}}function P(L,C){var k=L.getHelpers(C,"hint"),B;if(k.length){var X=function(H,D,re){var J=ne(H,k);function z(fe){if(fe==J.length)return D(null);$(J[fe],H,re,function(pe){pe&&pe.list.length>0?D(pe):z(fe+1)})}z(0)};return X.async=!0,X.supportsSelection=!0,X}else return(B=L.getHelper(L.getCursor(),"hintWords"))?function(H){return p.hint.fromList(H,{words:B})}:p.hint.anyword?function(H,D){return p.hint.anyword(H,D)}:function(){}}p.registerHelper("hint","auto",{resolve:P}),p.registerHelper("hint","fromList",function(L,C){var k=L.getCursor(),B=L.getTokenAt(k),X,H=p.Pos(k.line,B.start),D=k;B.start<k.ch&&/\w/.test(B.string.charAt(k.ch-B.start-1))?X=B.string.substr(0,k.ch-B.start):(X="",H=k);for(var re=[],J=0;J<C.words.length;J++){var z=C.words[J];z.slice(0,X.length)==X&&re.push(z)}if(re.length)return{list:re,from:H,to:D}}),p.commands.autocomplete=p.showHint;var Y={hint:p.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};p.defineOption("hintOptions",null)})},29387:(v,T,s)=>{(function(p){p(s(23326))})(function(p){"use strict";var S="CodeMirror-lint-markers",A="CodeMirror-lint-line-";function h(D,re,J){var z=document.createElement("div");z.className="CodeMirror-lint-tooltip cm-s-"+D.options.theme,z.appendChild(J.cloneNode(!0)),D.state.lint.options.selfContain?D.getWrapperElement().appendChild(z):document.body.appendChild(z);function fe(pe){if(!z.parentNode)return p.off(document,"mousemove",fe);z.style.top=Math.max(0,pe.clientY-z.offsetHeight-5)+"px",z.style.left=pe.clientX+5+"px"}return p.on(document,"mousemove",fe),fe(re),z.style.opacity!=null&&(z.style.opacity=1),z}function E(D){D.parentNode&&D.parentNode.removeChild(D)}function F(D){!D.parentNode||(D.style.opacity==null&&E(D),D.style.opacity=0,setTimeout(function(){E(D)},600))}function U(D,re,J,z){var fe=h(D,re,J);function pe(){p.off(z,"mouseout",pe),fe&&(F(fe),fe=null)}var q=setInterval(function(){if(fe)for(var Z=z;;Z=Z.parentNode){if(Z&&Z.nodeType==11&&(Z=Z.host),Z==document.body)return;if(!Z){pe();break}}if(!fe)return clearInterval(q)},400);p.on(z,"mouseout",pe)}function _(D,re,J){this.marked=[],re instanceof Function&&(re={getAnnotations:re}),(!re||re===!0)&&(re={}),this.options={},this.linterOptions=re.options||{};for(var z in Q)this.options[z]=Q[z];for(var z in re)Q.hasOwnProperty(z)?re[z]!=null&&(this.options[z]=re[z]):re.options||(this.linterOptions[z]=re[z]);this.timeout=null,this.hasGutter=J,this.onMouseOver=function(fe){H(D,fe)},this.waitingFor=0}var Q={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function le(D){var re=D.state.lint;re.hasGutter&&D.clearGutter(S),re.options.highlightLines&&K(D);for(var J=0;J<re.marked.length;++J)re.marked[J].clear();re.marked.length=0}function K(D){D.eachLine(function(re){var J=re.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(re.wrapClass);J&&D.removeLineClass(re,"wrap",J[0])})}function ne(D,re,J,z,fe){var pe=document.createElement("div"),q=pe;return pe.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+J,z&&(q=pe.appendChild(document.createElement("div")),q.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),fe!=!1&&p.on(q,"mouseover",function(Z){U(D,Z,re,q)}),pe}function $(D,re){return D=="error"?D:re}function P(D){for(var re=[],J=0;J<D.length;++J){var z=D[J],fe=z.from.line;(re[fe]||(re[fe]=[])).push(z)}return re}function Y(D){var re=D.severity;re||(re="error");var J=document.createElement("div");return J.className="CodeMirror-lint-message CodeMirror-lint-message-"+re,typeof D.messageHTML!="undefined"?J.innerHTML=D.messageHTML:J.appendChild(document.createTextNode(D.message)),J}function L(D,re){var J=D.state.lint,z=++J.waitingFor;function fe(){z=-1,D.off("change",fe)}D.on("change",fe),re(D.getValue(),function(pe,q){D.off("change",fe),J.waitingFor==z&&(q&&pe instanceof p&&(pe=q),D.operation(function(){k(D,pe)}))},J.linterOptions,D)}function C(D){var re=D.state.lint;if(!!re){var J=re.options,z=J.getAnnotations||D.getHelper(p.Pos(0,0),"lint");if(!!z)if(J.async||z.async)L(D,z);else{var fe=z(D.getValue(),re.linterOptions,D);if(!fe)return;fe.then?fe.then(function(pe){D.operation(function(){k(D,pe)})}):D.operation(function(){k(D,fe)})}}}function k(D,re){var J=D.state.lint;if(!!J){var z=J.options;le(D);for(var fe=P(re),pe=0;pe<fe.length;++pe){var q=fe[pe];if(!!q){var Z=[];q=q.filter(function(tt){return Z.indexOf(tt.message)>-1?!1:Z.push(tt.message)});for(var G=null,ve=J.hasGutter&&document.createDocumentFragment(),Ie=0;Ie<q.length;++Ie){var Ne=q[Ie],je=Ne.severity;je||(je="error"),G=$(G,je),z.formatAnnotation&&(Ne=z.formatAnnotation(Ne)),J.hasGutter&&ve.appendChild(Y(Ne)),Ne.to&&J.marked.push(D.markText(Ne.from,Ne.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+je,__annotation:Ne}))}J.hasGutter&&D.setGutterMarker(pe,S,ne(D,ve,G,fe[pe].length>1,z.tooltips)),z.highlightLines&&D.addLineClass(pe,"wrap",A+G)}}z.onUpdateLinting&&z.onUpdateLinting(re,fe,D)}}function B(D){var re=D.state.lint;!re||(clearTimeout(re.timeout),re.timeout=setTimeout(function(){C(D)},re.options.delay))}function X(D,re,J){for(var z=J.target||J.srcElement,fe=document.createDocumentFragment(),pe=0;pe<re.length;pe++){var q=re[pe];fe.appendChild(Y(q))}U(D,J,fe,z)}function H(D,re){var J=re.target||re.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(J.className)){for(var z=J.getBoundingClientRect(),fe=(z.left+z.right)/2,pe=(z.top+z.bottom)/2,q=D.findMarksAt(D.coordsChar({left:fe,top:pe},"client")),Z=[],G=0;G<q.length;++G){var ve=q[G].__annotation;ve&&Z.push(ve)}Z.length&&X(D,Z,re)}}p.defineOption("lint",!1,function(D,re,J){if(J&&J!=p.Init&&(le(D),D.state.lint.options.lintOnChange!==!1&&D.off("change",B),p.off(D.getWrapperElement(),"mouseover",D.state.lint.onMouseOver),clearTimeout(D.state.lint.timeout),delete D.state.lint),re){for(var z=D.getOption("gutters"),fe=!1,pe=0;pe<z.length;++pe)z[pe]==S&&(fe=!0);var q=D.state.lint=new _(D,re,fe);q.options.lintOnChange&&D.on("change",B),q.options.tooltips!=!1&&q.options.tooltips!="gutter"&&p.on(D.getWrapperElement(),"mouseover",q.onMouseOver),C(D)}}),p.defineExtension("performLint",function(){C(this)})})},19757:(v,T,s)=>{(function(p){p(s(23326))})(function(p){"use strict";var S=p.Pos;function A(C){var k=C.flags;return k!=null?k:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function h(C,k){for(var B=A(C),X=B,H=0;H<k.length;H++)X.indexOf(k.charAt(H))==-1&&(X+=k.charAt(H));return B==X?C:new RegExp(C.source,X)}function E(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function F(C,k,B){k=h(k,"g");for(var X=B.line,H=B.ch,D=C.lastLine();X<=D;X++,H=0){k.lastIndex=H;var re=C.getLine(X),J=k.exec(re);if(J)return{from:S(X,J.index),to:S(X,J.index+J[0].length),match:J}}}function U(C,k,B){if(!E(k))return F(C,k,B);k=h(k,"gm");for(var X,H=1,D=B.line,re=C.lastLine();D<=re;){for(var J=0;J<H&&!(D>re);J++){var z=C.getLine(D++);X=X==null?z:X+`
8
- `+z}H=H*2,k.lastIndex=B.ch;var fe=k.exec(X);if(fe){var pe=X.slice(0,fe.index).split(`
9
- `),q=fe[0].split(`
10
- `),Z=B.line+pe.length-1,G=pe[pe.length-1].length;return{from:S(Z,G),to:S(Z+q.length-1,q.length==1?G+q[0].length:q[q.length-1].length),match:fe}}}}function _(C,k,B){for(var X,H=0;H<=C.length;){k.lastIndex=H;var D=k.exec(C);if(!D)break;var re=D.index+D[0].length;if(re>C.length-B)break;(!X||re>X.index+X[0].length)&&(X=D),H=D.index+1}return X}function Q(C,k,B){k=h(k,"g");for(var X=B.line,H=B.ch,D=C.firstLine();X>=D;X--,H=-1){var re=C.getLine(X),J=_(re,k,H<0?0:re.length-H);if(J)return{from:S(X,J.index),to:S(X,J.index+J[0].length),match:J}}}function le(C,k,B){if(!E(k))return Q(C,k,B);k=h(k,"gm");for(var X,H=1,D=C.getLine(B.line).length-B.ch,re=B.line,J=C.firstLine();re>=J;){for(var z=0;z<H&&re>=J;z++){var fe=C.getLine(re--);X=X==null?fe:fe+`
11
- `+X}H*=2;var pe=_(X,k,D);if(pe){var q=X.slice(0,pe.index).split(`
12
- `),Z=pe[0].split(`
13
- `),G=re+q.length,ve=q[q.length-1].length;return{from:S(G,ve),to:S(G+Z.length-1,Z.length==1?ve+Z[0].length:Z[Z.length-1].length),match:pe}}}}var K,ne;String.prototype.normalize?(K=function(C){return C.normalize("NFD").toLowerCase()},ne=function(C){return C.normalize("NFD")}):(K=function(C){return C.toLowerCase()},ne=function(C){return C});function $(C,k,B,X){if(C.length==k.length)return B;for(var H=0,D=B+Math.max(0,C.length-k.length);;){if(H==D)return H;var re=H+D>>1,J=X(C.slice(0,re)).length;if(J==B)return re;J>B?D=re:H=re+1}}function P(C,k,B,X){if(!k.length)return null;var H=X?K:ne,D=H(k).split(/\r|\n\r?/);e:for(var re=B.line,J=B.ch,z=C.lastLine()+1-D.length;re<=z;re++,J=0){var fe=C.getLine(re).slice(J),pe=H(fe);if(D.length==1){var q=pe.indexOf(D[0]);if(q==-1)continue e;var B=$(fe,pe,q,H)+J;return{from:S(re,$(fe,pe,q,H)+J),to:S(re,$(fe,pe,q+D[0].length,H)+J)}}else{var Z=pe.length-D[0].length;if(pe.slice(Z)!=D[0])continue e;for(var G=1;G<D.length-1;G++)if(H(C.getLine(re+G))!=D[G])continue e;var ve=C.getLine(re+D.length-1),Ie=H(ve),Ne=D[D.length-1];if(Ie.slice(0,Ne.length)!=Ne)continue e;return{from:S(re,$(fe,pe,Z,H)+J),to:S(re+D.length-1,$(ve,Ie,Ne.length,H))}}}}function Y(C,k,B,X){if(!k.length)return null;var H=X?K:ne,D=H(k).split(/\r|\n\r?/);e:for(var re=B.line,J=B.ch,z=C.firstLine()-1+D.length;re>=z;re--,J=-1){var fe=C.getLine(re);J>-1&&(fe=fe.slice(0,J));var pe=H(fe);if(D.length==1){var q=pe.lastIndexOf(D[0]);if(q==-1)continue e;return{from:S(re,$(fe,pe,q,H)),to:S(re,$(fe,pe,q+D[0].length,H))}}else{var Z=D[D.length-1];if(pe.slice(0,Z.length)!=Z)continue e;for(var G=1,B=re-D.length+1;G<D.length-1;G++)if(H(C.getLine(B+G))!=D[G])continue e;var ve=C.getLine(re+1-D.length),Ie=H(ve);if(Ie.slice(Ie.length-D[0].length)!=D[0])continue e;return{from:S(re+1-D.length,$(ve,Ie,ve.length-D[0].length,H)),to:S(re,$(fe,pe,Z.length,H))}}}}function L(C,k,B,X){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,B=B?C.clipPos(B):S(0,0),this.pos={from:B,to:B};var H;typeof X=="object"?H=X.caseFold:(H=X,X=null),typeof k=="string"?(H==null&&(H=!1),this.matches=function(D,re){return(D?Y:P)(C,k,re,H)}):(k=h(k,"gm"),!X||X.multiline!==!1?this.matches=function(D,re){return(D?le:U)(C,k,re)}:this.matches=function(D,re){return(D?Q:F)(C,k,re)})}L.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var k=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(k=S(k.line,k.ch),C?(k.ch--,k.ch<0&&(k.line--,k.ch=(this.doc.getLine(k.line)||"").length)):(k.ch++,k.ch>(this.doc.getLine(k.line)||"").length&&(k.ch=0,k.line++)),p.cmpPos(k,this.doc.clipPos(k))!=0))return this.atOccurrence=!1;var B=this.matches(C,k);if(this.afterEmptyMatch=B&&p.cmpPos(B.from,B.to)==0,B)return this.pos=B,this.atOccurrence=!0,this.pos.match||!0;var X=S(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:X,to:X},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,k){if(!!this.atOccurrence){var B=p.splitLines(C);this.doc.replaceRange(B,this.pos.from,this.pos.to,k),this.pos.to=S(this.pos.from.line+B.length-1,B[B.length-1].length+(B.length==1?this.pos.from.ch:0))}}},p.defineExtension("getSearchCursor",function(C,k,B){return new L(this.doc,C,k,B)}),p.defineDocExtension("getSearchCursor",function(C,k,B){return new L(this,C,k,B)}),p.defineExtension("selectMatches",function(C,k){for(var B=[],X=this.getSearchCursor(C,this.getCursor("from"),k);X.findNext()&&!(p.cmpPos(X.to(),this.getCursor("to"))>0);)B.push({anchor:X.from(),head:X.to()});B.length&&this.setSelections(B,0)})})},23326:function(v){(function(T,s){v.exports=s()})(this,function(){"use strict";var T=navigator.userAgent,s=navigator.platform,p=/gecko\/\d/i.test(T),S=/MSIE \d/.test(T),A=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(T),h=/Edge\/(\d+)/.exec(T),E=S||A||h,F=E&&(S?document.documentMode||6:+(h||A)[1]),U=!h&&/WebKit\//.test(T),_=U&&/Qt\/\d+\.\d+/.test(T),Q=!h&&/Chrome\/(\d+)/.exec(T),le=Q&&+Q[1],K=/Opera\//.test(T),ne=/Apple Computer/.test(navigator.vendor),$=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(T),P=/PhantomJS/.test(T),Y=ne&&(/Mobile\/\w+/.test(T)||navigator.maxTouchPoints>2),L=/Android/.test(T),C=Y||L||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(T),k=Y||/Mac/.test(s),B=/\bCrOS\b/.test(T),X=/win/i.test(s),H=K&&T.match(/Version\/(\d*\.\d*)/);H&&(H=Number(H[1])),H&&H>=15&&(K=!1,U=!0);var D=k&&(_||K&&(H==null||H<12.11)),re=p||E&&F>=9;function J(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var z=function(t,i){var u=t.className,l=J(i).exec(u);if(l){var c=u.slice(l.index+l[0].length);t.className=u.slice(0,l.index)+(c?l[1]+c:"")}};function fe(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function pe(t,i){return fe(t).appendChild(i)}function q(t,i,u,l){var c=document.createElement(t);if(u&&(c.className=u),l&&(c.style.cssText=l),typeof i=="string")c.appendChild(document.createTextNode(i));else if(i)for(var y=0;y<i.length;++y)c.appendChild(i[y]);return c}function Z(t,i,u,l){var c=q(t,i,u,l);return c.setAttribute("role","presentation"),c}var G;document.createRange?G=function(t,i,u,l){var c=document.createRange();return c.setEnd(l||t,u),c.setStart(t,i),c}:G=function(t,i,u){var l=document.body.createTextRange();try{l.moveToElementText(t.parentNode)}catch(c){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",i),l};function ve(t,i){if(i.nodeType==3&&(i=i.parentNode),t.contains)return t.contains(i);do if(i.nodeType==11&&(i=i.host),i==t)return!0;while(i=i.parentNode)}function Ie(t){var i;try{i=t.activeElement}catch(u){i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Ne(t,i){var u=t.className;J(i).test(u)||(t.className+=(u?" ":"")+i)}function je(t,i){for(var u=t.split(" "),l=0;l<u.length;l++)u[l]&&!J(u[l]).test(i)&&(i+=" "+u[l]);return i}var tt=function(t){t.select()};Y?tt=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:E&&(tt=function(t){try{t.select()}catch(i){}});function _e(t){return t.display.wrapper.ownerDocument}function mt(t){return _e(t).defaultView}function De(t){var i=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,i)}}function Oe(t,i,u){i||(i={});for(var l in t)t.hasOwnProperty(l)&&(u!==!1||!i.hasOwnProperty(l))&&(i[l]=t[l]);return i}function Ue(t,i,u,l,c){i==null&&(i=t.search(/[^\s\u00a0]/),i==-1&&(i=t.length));for(var y=l||0,w=c||0;;){var O=t.indexOf(" ",y);if(O<0||O>=i)return w+(i-y);w+=O-y,w+=u-w%u,y=O+1}}var Pe=function(){this.id=null,this.f=null,this.time=0,this.handler=De(this.onTimeout,this)};Pe.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Pe.prototype.set=function(t,i){this.f=i;var u=+new Date+t;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=u)};function Ce(t,i){for(var u=0;u<t.length;++u)if(t[u]==i)return u;return-1}var Ge=50,rt={toString:function(){return"CodeMirror.Pass"}},$e={scroll:!1},et={origin:"*mouse"},Ze={origin:"+move"};function Ct(t,i,u){for(var l=0,c=0;;){var y=t.indexOf(" ",l);y==-1&&(y=t.length);var w=y-l;if(y==t.length||c+w>=i)return l+Math.min(w,i-c);if(c+=y-l,c+=u-c%u,l=y+1,c>=i)return l}}var kt=[""];function Zt(t){for(;kt.length<=t;)kt.push(lt(kt)+" ");return kt[t]}function lt(t){return t[t.length-1]}function xt(t,i){for(var u=[],l=0;l<t.length;l++)u[l]=i(t[l],l);return u}function Ft(t,i,u){for(var l=0,c=u(i);l<t.length&&u(t[l])<=c;)l++;t.splice(l,0,i)}function Kr(){}function br(t,i){var u;return Object.create?u=Object.create(t):(Kr.prototype=t,u=new Kr),i&&Oe(i,u),u}var qr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function xr(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||qr.test(t))}function Yt(t,i){return i?i.source.indexOf("\\w")>-1&&xr(t)?!0:i.test(t):xr(t)}function dr(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i])return!1;return!0}var Xe=/[\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 gt(t){return t.charCodeAt(0)>=768&&Xe.test(t)}function Tt(t,i,u){for(;(u<0?i>0:i<t.length)&&gt(t.charAt(i));)i+=u;return i}function At(t,i,u){for(var l=i>u?-1:1;;){if(i==u)return i;var c=(i+u)/2,y=l<0?Math.ceil(c):Math.floor(c);if(y==i)return t(y)?i:u;t(y)?u=y:i=y+l}}function Ot(t,i,u,l){if(!t)return l(i,u,"ltr",0);for(var c=!1,y=0;y<t.length;++y){var w=t[y];(w.from<u&&w.to>i||i==u&&w.to==i)&&(l(Math.max(w.from,i),Math.min(w.to,u),w.level==1?"rtl":"ltr",y),c=!0)}c||l(i,u,"ltr")}var ct=null;function it(t,i,u){var l;ct=null;for(var c=0;c<t.length;++c){var y=t[c];if(y.from<i&&y.to>i)return c;y.to==i&&(y.from!=y.to&&u=="before"?l=c:ct=c),y.from==i&&(y.from!=y.to&&u!="before"?l=c:ct=c)}return l!=null?l:ct}var Et=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(V){return V<=247?t.charAt(V):1424<=V&&V<=1524?"R":1536<=V&&V<=1785?i.charAt(V-1536):1774<=V&&V<=2220?"r":8192<=V&&V<=8203?"w":V==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,y=/[LRr]/,w=/[Lb1n]/,O=/[1n]/;function R(V,oe,ce){this.level=V,this.from=oe,this.to=ce}return function(V,oe){var ce=oe=="ltr"?"L":"R";if(V.length==0||oe=="ltr"&&!l.test(V))return!1;for(var me=V.length,he=[],Te=0;Te<me;++Te)he.push(u(V.charCodeAt(Te)));for(var Le=0,ze=ce;Le<me;++Le){var Ye=he[Le];Ye=="m"?he[Le]=ze:ze=Ye}for(var Qe=0,Je=ce;Qe<me;++Qe){var qe=he[Qe];qe=="1"&&Je=="r"?he[Qe]="n":y.test(qe)&&(Je=qe,qe=="r"&&(he[Qe]="R"))}for(var ht=1,dt=he[0];ht<me-1;++ht){var Mt=he[ht];Mt=="+"&&dt=="1"&&he[ht+1]=="1"?he[ht]="1":Mt==","&&dt==he[ht+1]&&(dt=="1"||dt=="n")&&(he[ht]=dt),dt=Mt}for(var tr=0;tr<me;++tr){var Tr=he[tr];if(Tr==",")he[tr]="N";else if(Tr=="%"){var wt=void 0;for(wt=tr+1;wt<me&&he[wt]=="%";++wt);for(var xn=tr&&he[tr-1]=="!"||wt<me&&he[wt]=="1"?"1":"N",sn=tr;sn<wt;++sn)he[sn]=xn;tr=wt-1}}for(var Ar=0,Hr=ce;Ar<me;++Ar){var zr=he[Ar];Hr=="L"&&zr=="1"?he[Ar]="L":y.test(zr)&&(Hr=zr)}for(var Pr=0;Pr<me;++Pr)if(c.test(he[Pr])){var Cr=void 0;for(Cr=Pr+1;Cr<me&&c.test(he[Cr]);++Cr);for(var gr=(Pr?he[Pr-1]:ce)=="L",hn=(Cr<me?he[Cr]:ce)=="L",Ba=gr==hn?gr?"L":"R":ce,Si=Pr;Si<Cr;++Si)he[Si]=Ba;Pr=Cr-1}for(var Nr=[],Mn,Dr=0;Dr<me;)if(w.test(he[Dr])){var Nl=Dr;for(++Dr;Dr<me&&w.test(he[Dr]);++Dr);Nr.push(new R(0,Nl,Dr))}else{var wi=Dr,ji=Nr.length,Jn=oe=="rtl"?1:0;for(++Dr;Dr<me&&he[Dr]!="L";++Dr);for(var Qr=wi;Qr<Dr;)if(O.test(he[Qr])){wi<Qr&&(Nr.splice(ji,0,new R(1,wi,Qr)),ji+=Jn);var Nn=Qr;for(++Qr;Qr<Dr&&O.test(he[Qr]);++Qr);Nr.splice(ji,0,new R(2,Nn,Qr)),ji+=Jn,wi=Qr}else++Qr;wi<Dr&&Nr.splice(ji,0,new R(1,wi,Dr))}return oe=="ltr"&&(Nr[0].level==1&&(Mn=V.match(/^\s+/))&&(Nr[0].from=Mn[0].length,Nr.unshift(new R(0,0,Mn[0].length))),lt(Nr).level==1&&(Mn=V.match(/\s+$/))&&(lt(Nr).to-=Mn[0].length,Nr.push(new R(0,me-Mn[0].length,me)))),oe=="rtl"?Nr.reverse():Nr}}();function nt(t,i){var u=t.order;return u==null&&(u=t.order=Et(t.text,i)),u}var Ve=[],ue=function(t,i,u){if(t.addEventListener)t.addEventListener(i,u,!1);else if(t.attachEvent)t.attachEvent("on"+i,u);else{var l=t._handlers||(t._handlers={});l[i]=(l[i]||Ve).concat(u)}};function ge(t,i){return t._handlers&&t._handlers[i]||Ve}function Be(t,i,u){if(t.removeEventListener)t.removeEventListener(i,u,!1);else if(t.detachEvent)t.detachEvent("on"+i,u);else{var l=t._handlers,c=l&&l[i];if(c){var y=Ce(c,u);y>-1&&(l[i]=c.slice(0,y).concat(c.slice(y+1)))}}}function Ke(t,i){var u=ge(t,i);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),c=0;c<u.length;++c)u[c].apply(null,l)}function at(t,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ke(t,u||i.type,t,i),_n(i)||i.codemirrorIgnore}function bt(t){var i=t._handlers&&t._handlers.cursorActivity;if(!!i)for(var u=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Ce(u,i[l])==-1&&u.push(i[l])}function Rt(t,i){return ge(t,i).length>0}function pr(t){t.prototype.on=function(i,u){ue(this,i,u)},t.prototype.off=function(i,u){Be(this,i,u)}}function Lt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function jt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function _n(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Yr(t){Lt(t),jt(t)}function Jr(t){return t.target||t.srcElement}function si(t){var i=t.which;return i==null&&(t.button&1?i=1:t.button&2?i=3:t.button&4&&(i=2)),k&&t.ctrlKey&&i==1&&(i=3),i}var en=function(){if(E&&F<9)return!1;var t=q("div");return"draggable"in t||"dragDrop"in t}(),li;function ui(t){if(li==null){var i=q("span","\u200B");pe(t,q("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(li=i.offsetWidth<=1&&i.offsetHeight>2&&!(E&&F<8))}var u=li?q("span","\u200B"):q("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var tn;function Pn(t){if(tn!=null)return tn;var i=pe(t,document.createTextNode("A\u062EA")),u=G(i,0,1).getBoundingClientRect(),l=G(i,1,2).getBoundingClientRect();return fe(t),!u||u.left==u.right?!1:tn=l.right-u.right<3}var Vr=`
5
+ * Version: "3.0.0-alpha.12"
6
+ */(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{62680:(h,E,o)=>{"use strict";var d=o(67286),x=o(89429),w=x(d("String.prototype.indexOf"));h.exports=function(O,k){var U=d(O,!!k);return typeof U=="function"&&w(O,".prototype.")>-1?x(U):U}},89429:(h,E,o)=>{"use strict";var d=o(4090),x=o(67286),w=x("%Function.prototype.apply%"),A=x("%Function.prototype.call%"),O=x("%Reflect.apply%",!0)||d.call(A,w),k=x("%Object.getOwnPropertyDescriptor%",!0),U=x("%Object.defineProperty%",!0),Z=x("%Math.max%");if(U)try{U({},"a",{value:1})}catch(ue){U=null}h.exports=function(ne){var ie=O(d,A,arguments);if(k&&U){var Y=k(ie,"length");Y.configurable&&U(ie,"length",{value:1+Z(0,ne.length-(arguments.length-1))})}return ie};var re=function(){return O(d,w,arguments)};U?U(h.exports,"apply",{value:re}):h.exports.apply=re},61682:(h,E,o)=>{(function(d){d(o(23326))})(function(d){var x={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},w=d.Pos;d.defineOption("autoCloseBrackets",!1,function(D,C,F){F&&F!=d.Init&&(D.removeKeyMap(O),D.state.closeBrackets=null),C&&(k(A(C,"pairs")),D.state.closeBrackets=C,D.addKeyMap(O))});function A(D,C){return C=="pairs"&&typeof D=="string"?D:typeof D=="object"&&D[C]!=null?D[C]:x[C]}var O={Backspace:re,Enter:ue};function k(D){for(var C=0;C<D.length;C++){var F=D.charAt(C),V="'"+F+"'";O[V]||(O[V]=U(F))}}k(x.pairs+"`");function U(D){return function(C){return Y(C,D)}}function Z(D){var C=D.state.closeBrackets;if(!C||C.override)return C;var F=D.getModeAt(D.getCursor());return F.closeBrackets||C}function re(D){var C=Z(D);if(!C||D.getOption("disableInput"))return d.Pass;for(var F=A(C,"pairs"),V=D.listSelections(),X=0;X<V.length;X++){if(!V[X].empty())return d.Pass;var K=P(D,V[X].head);if(!K||F.indexOf(K)%2!=0)return d.Pass}for(var X=V.length-1;X>=0;X--){var W=V[X].head;D.replaceRange("",w(W.line,W.ch-1),w(W.line,W.ch+1),"+delete")}}function ue(D){var C=Z(D),F=C&&A(C,"explode");if(!F||D.getOption("disableInput"))return d.Pass;for(var V=D.listSelections(),X=0;X<V.length;X++){if(!V[X].empty())return d.Pass;var K=P(D,V[X].head);if(!K||F.indexOf(K)%2!=0)return d.Pass}D.operation(function(){var W=D.lineSeparator()||`
7
+ `;D.replaceSelection(W+W,null),ne(D,-1),V=D.listSelections();for(var te=0;te<V.length;te++){var J=V[te].head.line;D.indentLine(J,null,!0),D.indentLine(J+1,null,!0)}})}function ne(D,C){for(var F=[],V=D.listSelections(),X=0,K=0;K<V.length;K++){var W=V[K];W.head==D.getCursor()&&(X=K);var te=W.head.ch||C>0?{line:W.head.line,ch:W.head.ch+C}:{line:W.head.line-1};F.push({anchor:te,head:te})}D.setSelections(F,X)}function ie(D){var C=d.cmpPos(D.anchor,D.head)>0;return{anchor:new w(D.anchor.line,D.anchor.ch+(C?-1:1)),head:new w(D.head.line,D.head.ch+(C?1:-1))}}function Y(D,C){var F=Z(D);if(!F||D.getOption("disableInput"))return d.Pass;var V=A(F,"pairs"),X=V.indexOf(C);if(X==-1)return d.Pass;for(var K=A(F,"closeBefore"),W=A(F,"triples"),te=V.charAt(X+1)==C,J=D.listSelections(),H=X%2==0,fe,he=0;he<J.length;he++){var _=J[he],Q=_.head,z,ge=D.getRange(Q,w(Q.line,Q.ch+1));if(H&&!_.empty())z="surround";else if((te||!H)&&ge==C)te&&$(D,Q)?z="both":W.indexOf(C)>=0&&D.getRange(Q,w(Q.line,Q.ch+3))==C+C+C?z="skipThree":z="skip";else if(te&&Q.ch>1&&W.indexOf(C)>=0&&D.getRange(w(Q.line,Q.ch-2),Q)==C+C){if(Q.ch>2&&/\bstring/.test(D.getTokenTypeAt(w(Q.line,Q.ch-2))))return d.Pass;z="addFour"}else if(te){var Ee=Q.ch==0?" ":D.getRange(w(Q.line,Q.ch-1),Q);if(!d.isWordChar(ge)&&Ee!=C&&!d.isWordChar(Ee))z="both";else return d.Pass}else if(H&&(ge.length===0||/\s/.test(ge)||K.indexOf(ge)>-1))z="both";else return d.Pass;if(!fe)fe=z;else if(fe!=z)return d.Pass}var je=X%2?V.charAt(X-1):C,ke=X%2?C:V.charAt(X+1);D.operation(function(){if(fe=="skip")ne(D,1);else if(fe=="skipThree")ne(D,3);else if(fe=="surround"){for(var it=D.getSelections(),et=0;et<it.length;et++)it[et]=je+it[et]+ke;D.replaceSelections(it,"around"),it=D.listSelections().slice();for(var et=0;et<it.length;et++)it[et]=ie(it[et]);D.setSelections(it)}else fe=="both"?(D.replaceSelection(je+ke,null),D.triggerElectric(je+ke),ne(D,-1)):fe=="addFour"&&(D.replaceSelection(je+je+je+je,"before"),ne(D,1))})}function P(D,C){var F=D.getRange(w(C.line,C.ch-1),w(C.line,C.ch+1));return F.length==2?F:null}function $(D,C){var F=D.getTokenAt(w(C.line,C.ch+1));return/\bstring/.test(F.type)&&F.start==C.ch&&(C.ch==0||!/\bstring/.test(D.getTokenTypeAt(C)))}})},32407:(h,E,o)=>{(function(d){d(o(23326))})(function(d){var x=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),w=d.Pos,A={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function O(ne){return ne&&ne.bracketRegex||/[(){}[\]]/}function k(ne,ie,Y){var P=ne.getLineHandle(ie.line),$=ie.ch-1,D=Y&&Y.afterCursor;D==null&&(D=/(^| )cm-fat-cursor($| )/.test(ne.getWrapperElement().className));var C=O(Y),F=!D&&$>=0&&C.test(P.text.charAt($))&&A[P.text.charAt($)]||C.test(P.text.charAt($+1))&&A[P.text.charAt(++$)];if(!F)return null;var V=F.charAt(1)==">"?1:-1;if(Y&&Y.strict&&V>0!=($==ie.ch))return null;var X=ne.getTokenTypeAt(w(ie.line,$+1)),K=U(ne,w(ie.line,$+(V>0?1:0)),V,X,Y);return K==null?null:{from:w(ie.line,$),to:K&&K.pos,match:K&&K.ch==F.charAt(0),forward:V>0}}function U(ne,ie,Y,P,$){for(var D=$&&$.maxScanLineLength||1e4,C=$&&$.maxScanLines||1e3,F=[],V=O($),X=Y>0?Math.min(ie.line+C,ne.lastLine()+1):Math.max(ne.firstLine()-1,ie.line-C),K=ie.line;K!=X;K+=Y){var W=ne.getLine(K);if(!!W){var te=Y>0?0:W.length-1,J=Y>0?W.length:-1;if(!(W.length>D))for(K==ie.line&&(te=ie.ch-(Y<0?1:0));te!=J;te+=Y){var H=W.charAt(te);if(V.test(H)&&(P===void 0||(ne.getTokenTypeAt(w(K,te+1))||"")==(P||""))){var fe=A[H];if(fe&&fe.charAt(1)==">"==Y>0)F.push(H);else if(F.length)F.pop();else return{pos:w(K,te),ch:H}}}}}return K-Y==(Y>0?ne.lastLine():ne.firstLine())?!1:null}function Z(ne,ie,Y){for(var P=ne.state.matchBrackets.maxHighlightLineLength||1e3,$=Y&&Y.highlightNonMatching,D=[],C=ne.listSelections(),F=0;F<C.length;F++){var V=C[F].empty()&&k(ne,C[F].head,Y);if(V&&(V.match||$!==!1)&&ne.getLine(V.from.line).length<=P){var X=V.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";D.push(ne.markText(V.from,w(V.from.line,V.from.ch+1),{className:X})),V.to&&ne.getLine(V.to.line).length<=P&&D.push(ne.markText(V.to,w(V.to.line,V.to.ch+1),{className:X}))}}if(D.length){x&&ne.state.focused&&ne.focus();var K=function(){ne.operation(function(){for(var W=0;W<D.length;W++)D[W].clear()})};if(ie)setTimeout(K,800);else return K}}function re(ne){ne.operation(function(){ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null),ne.state.matchBrackets.currentlyHighlighted=Z(ne,!1,ne.state.matchBrackets)})}function ue(ne){ne.state.matchBrackets&&ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null)}d.defineOption("matchBrackets",!1,function(ne,ie,Y){Y&&Y!=d.Init&&(ne.off("cursorActivity",re),ne.off("focus",re),ne.off("blur",ue),ue(ne)),ie&&(ne.state.matchBrackets=typeof ie=="object"?ie:{},ne.on("cursorActivity",re),ne.on("focus",re),ne.on("blur",ue))}),d.defineExtension("matchBrackets",function(){Z(this,!0)}),d.defineExtension("findMatchingBracket",function(ne,ie,Y){return(Y||typeof ie=="boolean")&&(Y?(Y.strict=ie,ie=Y):ie=ie?{strict:!0}:null),k(this,ne,ie)}),d.defineExtension("scanForBracket",function(ne,ie,Y,P){return U(this,ne,ie,Y,P)})})},22130:(h,E,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x="CodeMirror-hint",w="CodeMirror-hint-active";d.showHint=function(D,C,F){if(!C)return D.showHint(F);F&&F.async&&(C.async=!0);var V={hint:C};if(F)for(var X in F)V[X]=F[X];return D.showHint(V)},d.defineExtension("showHint",function(D){D=U(this,this.getCursor("start"),D);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!D.hint.supportsSelection)return;for(var F=0;F<C.length;F++)if(C[F].head.line!=C[F].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var V=this.state.completionActive=new A(this,D);!V.options.hint||(d.signal(this,"startCompletion",this),V.update(!0))}}),d.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function A(D,C){if(this.cm=D,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 F=this;D.on("cursorActivity",this.activityFunc=function(){F.cursorActivity()})}}var O=window.requestAnimationFrame||function(D){return setTimeout(D,1e3/60)},k=window.cancelAnimationFrame||clearTimeout;A.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&&d.signal(this.data,"close"),this.widget&&this.widget.close(),d.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(D,C){var F=D.list[C],V=this;this.cm.operation(function(){F.hint?F.hint(V.cm,D,F):V.cm.replaceRange(Z(F),F.from||D.from,F.to||D.to,"complete"),d.signal(D,"pick",F),V.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(k(this.debounce),this.debounce=0);var D=this.startPos;this.data&&(D=this.data.from);var C=this.cm.getCursor(),F=this.cm.getLine(C.line);if(C.line!=this.startPos.line||F.length-C.ch!=this.startLen-this.startPos.ch||C.ch<D.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(F.charAt(C.ch-1)))this.close();else{var V=this;this.debounce=O(function(){V.update()}),this.widget&&this.widget.disable()}},update:function(D){if(this.tick!=null){var C=this,F=++this.tick;Y(this.options.hint,this.cm,this.options,function(V){C.tick==F&&C.finishUpdate(V,D)})}},finishUpdate:function(D,C){this.data&&d.signal(this.data,"update");var F=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=D,D&&D.list.length&&(F&&D.list.length==1?this.pick(D,0):(this.widget=new ne(this,D),d.signal(D,"shown")))}};function U(D,C,F){var V=D.options.hintOptions,X={};for(var K in $)X[K]=$[K];if(V)for(var K in V)V[K]!==void 0&&(X[K]=V[K]);if(F)for(var K in F)F[K]!==void 0&&(X[K]=F[K]);return X.hint.resolve&&(X.hint=X.hint.resolve(D,C)),X}function Z(D){return typeof D=="string"?D:D.text}function re(D,C){var F={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},V=/Mac/.test(navigator.platform);V&&(F["Ctrl-P"]=function(){C.moveFocus(-1)},F["Ctrl-N"]=function(){C.moveFocus(1)});var X=D.options.customKeys,K=X?{}:F;function W(H,fe){var he;typeof fe!="string"?he=function(_){return fe(_,C)}:F.hasOwnProperty(fe)?he=F[fe]:he=fe,K[H]=he}if(X)for(var te in X)X.hasOwnProperty(te)&&W(te,X[te]);var J=D.options.extraKeys;if(J)for(var te in J)J.hasOwnProperty(te)&&W(te,J[te]);return K}function ue(D,C){for(;C&&C!=D;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==D)return C;C=C.parentNode}}function ne(D,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=D,this.data=C,this.picked=!1;var F=this,V=D.cm,X=V.getInputField().ownerDocument,K=X.defaultView||X.parentWindow,W=this.hints=X.createElement("ul");W.setAttribute("role","listbox"),W.setAttribute("aria-expanded","true"),W.id=this.id;var te=D.cm.options.theme;W.className="CodeMirror-hints "+te,this.selectedHint=C.selectedHint||0;for(var J=C.list,H=0;H<J.length;++H){var fe=W.appendChild(X.createElement("li")),he=J[H],_=x+(H!=this.selectedHint?"":" "+w);he.className!=null&&(_=he.className+" "+_),fe.className=_,H==this.selectedHint&&fe.setAttribute("aria-selected","true"),fe.id=this.id+"-"+H,fe.setAttribute("role","option"),he.render?he.render(fe,C,he):fe.appendChild(X.createTextNode(he.displayText||Z(he))),fe.hintId=H}var Q=D.options.container||X.body,z=V.cursorCoords(D.options.alignWithWord?C.from:null),ge=z.left,Ee=z.bottom,je=!0,ke=0,it=0;if(Q!==X.body){var et=["absolute","relative","fixed"].indexOf(K.getComputedStyle(Q).position)!==-1,at=et?Q:Q.offsetParent,Tt=at.getBoundingClientRect(),St=X.body.getBoundingClientRect();ke=Tt.left-St.left-at.scrollLeft,it=Tt.top-St.top-at.scrollTop}W.style.left=ge-ke+"px",W.style.top=Ee-it+"px";var Le=K.innerWidth||Math.max(X.body.offsetWidth,X.documentElement.offsetWidth),Oe=K.innerHeight||Math.max(X.body.offsetHeight,X.documentElement.offsetHeight);Q.appendChild(W),V.getInputField().setAttribute("aria-autocomplete","list"),V.getInputField().setAttribute("aria-owns",this.id),V.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var be=D.options.moveOnOverlap?W.getBoundingClientRect():new DOMRect,De=D.options.paddingForScrollbar?W.scrollHeight>W.clientHeight+1:!1,Ge;setTimeout(function(){Ge=V.getScrollInfo()});var tt=be.bottom-Oe;if(tt>0){var Ze=be.bottom-be.top,bt=be.top-(z.bottom-z.top)-2;Oe-be.top<bt?(Ze>bt&&(W.style.height=(Ze=bt)+"px"),W.style.top=(Ee=z.top-Ze)+it+"px",je=!1):W.style.height=Oe-be.top-2+"px"}var Et=be.right-Le;if(De&&(Et+=V.display.nativeBarWidth),Et>0&&(be.right-be.left>Le&&(W.style.width=Le-5+"px",Et-=be.right-be.left-Le),W.style.left=(ge=Math.max(z.left-Et-ke,0))+"px"),De)for(var Xt=W.firstChild;Xt;Xt=Xt.nextSibling)Xt.style.paddingRight=V.display.nativeBarWidth+"px";if(V.addKeyMap(this.keyMap=re(D,{moveFocus:function(Xe,er){F.changeActive(F.selectedHint+Xe,er)},setFocus:function(Xe){F.changeActive(Xe)},menuSize:function(){return F.screenAmount()},length:J.length,close:function(){D.close()},pick:function(){F.pick()},data:C})),D.options.closeOnUnfocus){var zt;V.on("blur",this.onBlur=function(){zt=setTimeout(function(){D.close()},100)}),V.on("focus",this.onFocus=function(){clearTimeout(zt)})}V.on("scroll",this.onScroll=function(){var Xe=V.getScrollInfo(),er=V.getWrapperElement().getBoundingClientRect();Ge||(Ge=V.getScrollInfo());var Rt=Ee+Ge.top-Xe.top,Rr=Rt-(K.pageYOffset||(X.documentElement||X.body).scrollTop);if(je||(Rr+=W.offsetHeight),Rr<=er.top||Rr>=er.bottom)return D.close();W.style.top=Rt+"px",W.style.left=ge+Ge.left-Xe.left+"px"}),d.on(W,"dblclick",function(Xe){var er=ue(W,Xe.target||Xe.srcElement);er&&er.hintId!=null&&(F.changeActive(er.hintId),F.pick())}),d.on(W,"click",function(Xe){var er=ue(W,Xe.target||Xe.srcElement);er&&er.hintId!=null&&(F.changeActive(er.hintId),D.options.completeOnSingleClick&&F.pick())}),d.on(W,"mousedown",function(){setTimeout(function(){V.focus()},20)});var nt=this.getSelectedHintRange();return(nt.from!==0||nt.to!==0)&&this.scrollToActive(),d.signal(C,"select",J[this.selectedHint],W.childNodes[this.selectedHint]),!0}ne.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 D=this.completion.cm.getInputField();D.removeAttribute("aria-activedescendant"),D.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 D=this;this.keyMap={Enter:function(){D.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(D,C){if(D>=this.data.list.length?D=C?this.data.list.length-1:0:D<0&&(D=C?0:this.data.list.length-1),this.selectedHint!=D){var F=this.hints.childNodes[this.selectedHint];F&&(F.className=F.className.replace(" "+w,""),F.removeAttribute("aria-selected")),F=this.hints.childNodes[this.selectedHint=D],F.className+=" "+w,F.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",F.id),this.scrollToActive(),d.signal(this.data,"select",this.data.list[this.selectedHint],F)}},scrollToActive:function(){var D=this.getSelectedHintRange(),C=this.hints.childNodes[D.from],F=this.hints.childNodes[D.to],V=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-V.offsetTop:F.offsetTop+F.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=F.offsetTop+F.offsetHeight-this.hints.clientHeight+V.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var D=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-D),to:Math.min(this.data.list.length-1,this.selectedHint+D)}}};function ie(D,C){if(!D.somethingSelected())return C;for(var F=[],V=0;V<C.length;V++)C[V].supportsSelection&&F.push(C[V]);return F}function Y(D,C,F,V){if(D.async)D(C,V,F);else{var X=D(C,F);X&&X.then?X.then(V):V(X)}}function P(D,C){var F=D.getHelpers(C,"hint"),V;if(F.length){var X=function(K,W,te){var J=ie(K,F);function H(fe){if(fe==J.length)return W(null);Y(J[fe],K,te,function(he){he&&he.list.length>0?W(he):H(fe+1)})}H(0)};return X.async=!0,X.supportsSelection=!0,X}else return(V=D.getHelper(D.getCursor(),"hintWords"))?function(K){return d.hint.fromList(K,{words:V})}:d.hint.anyword?function(K,W){return d.hint.anyword(K,W)}:function(){}}d.registerHelper("hint","auto",{resolve:P}),d.registerHelper("hint","fromList",function(D,C){var F=D.getCursor(),V=D.getTokenAt(F),X,K=d.Pos(F.line,V.start),W=F;V.start<F.ch&&/\w/.test(V.string.charAt(F.ch-V.start-1))?X=V.string.substr(0,F.ch-V.start):(X="",K=F);for(var te=[],J=0;J<C.words.length;J++){var H=C.words[J];H.slice(0,X.length)==X&&te.push(H)}if(te.length)return{list:te,from:K,to:W}}),d.commands.autocomplete=d.showHint;var $={hint:d.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};d.defineOption("hintOptions",null)})},29387:(h,E,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x="CodeMirror-lint-markers",w="CodeMirror-lint-line-";function A(W,te,J){var H=document.createElement("div");H.className="CodeMirror-lint-tooltip cm-s-"+W.options.theme,H.appendChild(J.cloneNode(!0)),W.state.lint.options.selfContain?W.getWrapperElement().appendChild(H):document.body.appendChild(H);function fe(he){if(!H.parentNode)return d.off(document,"mousemove",fe);H.style.top=Math.max(0,he.clientY-H.offsetHeight-5)+"px",H.style.left=he.clientX+5+"px"}return d.on(document,"mousemove",fe),fe(te),H.style.opacity!=null&&(H.style.opacity=1),H}function O(W){W.parentNode&&W.parentNode.removeChild(W)}function k(W){!W.parentNode||(W.style.opacity==null&&O(W),W.style.opacity=0,setTimeout(function(){O(W)},600))}function U(W,te,J,H){var fe=A(W,te,J);function he(){d.off(H,"mouseout",he),fe&&(k(fe),fe=null)}var _=setInterval(function(){if(fe)for(var Q=H;;Q=Q.parentNode){if(Q&&Q.nodeType==11&&(Q=Q.host),Q==document.body)return;if(!Q){he();break}}if(!fe)return clearInterval(_)},400);d.on(H,"mouseout",he)}function Z(W,te,J){this.marked=[],te instanceof Function&&(te={getAnnotations:te}),(!te||te===!0)&&(te={}),this.options={},this.linterOptions=te.options||{};for(var H in re)this.options[H]=re[H];for(var H in te)re.hasOwnProperty(H)?te[H]!=null&&(this.options[H]=te[H]):te.options||(this.linterOptions[H]=te[H]);this.timeout=null,this.hasGutter=J,this.onMouseOver=function(fe){K(W,fe)},this.waitingFor=0}var re={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function ue(W){var te=W.state.lint;te.hasGutter&&W.clearGutter(x),te.options.highlightLines&&ne(W);for(var J=0;J<te.marked.length;++J)te.marked[J].clear();te.marked.length=0}function ne(W){W.eachLine(function(te){var J=te.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(te.wrapClass);J&&W.removeLineClass(te,"wrap",J[0])})}function ie(W,te,J,H,fe){var he=document.createElement("div"),_=he;return he.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+J,H&&(_=he.appendChild(document.createElement("div")),_.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),fe!=!1&&d.on(_,"mouseover",function(Q){U(W,Q,te,_)}),he}function Y(W,te){return W=="error"?W:te}function P(W){for(var te=[],J=0;J<W.length;++J){var H=W[J],fe=H.from.line;(te[fe]||(te[fe]=[])).push(H)}return te}function $(W){var te=W.severity;te||(te="error");var J=document.createElement("div");return J.className="CodeMirror-lint-message CodeMirror-lint-message-"+te,typeof W.messageHTML!="undefined"?J.innerHTML=W.messageHTML:J.appendChild(document.createTextNode(W.message)),J}function D(W,te){var J=W.state.lint,H=++J.waitingFor;function fe(){H=-1,W.off("change",fe)}W.on("change",fe),te(W.getValue(),function(he,_){W.off("change",fe),J.waitingFor==H&&(_&&he instanceof d&&(he=_),W.operation(function(){F(W,he)}))},J.linterOptions,W)}function C(W){var te=W.state.lint;if(!!te){var J=te.options,H=J.getAnnotations||W.getHelper(d.Pos(0,0),"lint");if(!!H)if(J.async||H.async)D(W,H);else{var fe=H(W.getValue(),te.linterOptions,W);if(!fe)return;fe.then?fe.then(function(he){W.operation(function(){F(W,he)})}):W.operation(function(){F(W,fe)})}}}function F(W,te){var J=W.state.lint;if(!!J){var H=J.options;ue(W);for(var fe=P(te),he=0;he<fe.length;++he){var _=fe[he];if(!!_){var Q=[];_=_.filter(function(it){return Q.indexOf(it.message)>-1?!1:Q.push(it.message)});for(var z=null,ge=J.hasGutter&&document.createDocumentFragment(),Ee=0;Ee<_.length;++Ee){var je=_[Ee],ke=je.severity;ke||(ke="error"),z=Y(z,ke),H.formatAnnotation&&(je=H.formatAnnotation(je)),J.hasGutter&&ge.appendChild($(je)),je.to&&J.marked.push(W.markText(je.from,je.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+ke,__annotation:je}))}J.hasGutter&&W.setGutterMarker(he,x,ie(W,ge,z,fe[he].length>1,H.tooltips)),H.highlightLines&&W.addLineClass(he,"wrap",w+z)}}H.onUpdateLinting&&H.onUpdateLinting(te,fe,W)}}function V(W){var te=W.state.lint;!te||(clearTimeout(te.timeout),te.timeout=setTimeout(function(){C(W)},te.options.delay))}function X(W,te,J){for(var H=J.target||J.srcElement,fe=document.createDocumentFragment(),he=0;he<te.length;he++){var _=te[he];fe.appendChild($(_))}U(W,J,fe,H)}function K(W,te){var J=te.target||te.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(J.className)){for(var H=J.getBoundingClientRect(),fe=(H.left+H.right)/2,he=(H.top+H.bottom)/2,_=W.findMarksAt(W.coordsChar({left:fe,top:he},"client")),Q=[],z=0;z<_.length;++z){var ge=_[z].__annotation;ge&&Q.push(ge)}Q.length&&X(W,Q,te)}}d.defineOption("lint",!1,function(W,te,J){if(J&&J!=d.Init&&(ue(W),W.state.lint.options.lintOnChange!==!1&&W.off("change",V),d.off(W.getWrapperElement(),"mouseover",W.state.lint.onMouseOver),clearTimeout(W.state.lint.timeout),delete W.state.lint),te){for(var H=W.getOption("gutters"),fe=!1,he=0;he<H.length;++he)H[he]==x&&(fe=!0);var _=W.state.lint=new Z(W,te,fe);_.options.lintOnChange&&W.on("change",V),_.options.tooltips!=!1&&_.options.tooltips!="gutter"&&d.on(W.getWrapperElement(),"mouseover",_.onMouseOver),C(W)}}),d.defineExtension("performLint",function(){C(this)})})},19757:(h,E,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x=d.Pos;function w(C){var F=C.flags;return F!=null?F:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function A(C,F){for(var V=w(C),X=V,K=0;K<F.length;K++)X.indexOf(F.charAt(K))==-1&&(X+=F.charAt(K));return V==X?C:new RegExp(C.source,X)}function O(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function k(C,F,V){F=A(F,"g");for(var X=V.line,K=V.ch,W=C.lastLine();X<=W;X++,K=0){F.lastIndex=K;var te=C.getLine(X),J=F.exec(te);if(J)return{from:x(X,J.index),to:x(X,J.index+J[0].length),match:J}}}function U(C,F,V){if(!O(F))return k(C,F,V);F=A(F,"gm");for(var X,K=1,W=V.line,te=C.lastLine();W<=te;){for(var J=0;J<K&&!(W>te);J++){var H=C.getLine(W++);X=X==null?H:X+`
8
+ `+H}K=K*2,F.lastIndex=V.ch;var fe=F.exec(X);if(fe){var he=X.slice(0,fe.index).split(`
9
+ `),_=fe[0].split(`
10
+ `),Q=V.line+he.length-1,z=he[he.length-1].length;return{from:x(Q,z),to:x(Q+_.length-1,_.length==1?z+_[0].length:_[_.length-1].length),match:fe}}}}function Z(C,F,V){for(var X,K=0;K<=C.length;){F.lastIndex=K;var W=F.exec(C);if(!W)break;var te=W.index+W[0].length;if(te>C.length-V)break;(!X||te>X.index+X[0].length)&&(X=W),K=W.index+1}return X}function re(C,F,V){F=A(F,"g");for(var X=V.line,K=V.ch,W=C.firstLine();X>=W;X--,K=-1){var te=C.getLine(X),J=Z(te,F,K<0?0:te.length-K);if(J)return{from:x(X,J.index),to:x(X,J.index+J[0].length),match:J}}}function ue(C,F,V){if(!O(F))return re(C,F,V);F=A(F,"gm");for(var X,K=1,W=C.getLine(V.line).length-V.ch,te=V.line,J=C.firstLine();te>=J;){for(var H=0;H<K&&te>=J;H++){var fe=C.getLine(te--);X=X==null?fe:fe+`
11
+ `+X}K*=2;var he=Z(X,F,W);if(he){var _=X.slice(0,he.index).split(`
12
+ `),Q=he[0].split(`
13
+ `),z=te+_.length,ge=_[_.length-1].length;return{from:x(z,ge),to:x(z+Q.length-1,Q.length==1?ge+Q[0].length:Q[Q.length-1].length),match:he}}}}var ne,ie;String.prototype.normalize?(ne=function(C){return C.normalize("NFD").toLowerCase()},ie=function(C){return C.normalize("NFD")}):(ne=function(C){return C.toLowerCase()},ie=function(C){return C});function Y(C,F,V,X){if(C.length==F.length)return V;for(var K=0,W=V+Math.max(0,C.length-F.length);;){if(K==W)return K;var te=K+W>>1,J=X(C.slice(0,te)).length;if(J==V)return te;J>V?W=te:K=te+1}}function P(C,F,V,X){if(!F.length)return null;var K=X?ne:ie,W=K(F).split(/\r|\n\r?/);e:for(var te=V.line,J=V.ch,H=C.lastLine()+1-W.length;te<=H;te++,J=0){var fe=C.getLine(te).slice(J),he=K(fe);if(W.length==1){var _=he.indexOf(W[0]);if(_==-1)continue e;var V=Y(fe,he,_,K)+J;return{from:x(te,Y(fe,he,_,K)+J),to:x(te,Y(fe,he,_+W[0].length,K)+J)}}else{var Q=he.length-W[0].length;if(he.slice(Q)!=W[0])continue e;for(var z=1;z<W.length-1;z++)if(K(C.getLine(te+z))!=W[z])continue e;var ge=C.getLine(te+W.length-1),Ee=K(ge),je=W[W.length-1];if(Ee.slice(0,je.length)!=je)continue e;return{from:x(te,Y(fe,he,Q,K)+J),to:x(te+W.length-1,Y(ge,Ee,je.length,K))}}}}function $(C,F,V,X){if(!F.length)return null;var K=X?ne:ie,W=K(F).split(/\r|\n\r?/);e:for(var te=V.line,J=V.ch,H=C.firstLine()-1+W.length;te>=H;te--,J=-1){var fe=C.getLine(te);J>-1&&(fe=fe.slice(0,J));var he=K(fe);if(W.length==1){var _=he.lastIndexOf(W[0]);if(_==-1)continue e;return{from:x(te,Y(fe,he,_,K)),to:x(te,Y(fe,he,_+W[0].length,K))}}else{var Q=W[W.length-1];if(he.slice(0,Q.length)!=Q)continue e;for(var z=1,V=te-W.length+1;z<W.length-1;z++)if(K(C.getLine(V+z))!=W[z])continue e;var ge=C.getLine(te+1-W.length),Ee=K(ge);if(Ee.slice(Ee.length-W[0].length)!=W[0])continue e;return{from:x(te+1-W.length,Y(ge,Ee,ge.length-W[0].length,K)),to:x(te,Y(fe,he,Q.length,K))}}}}function D(C,F,V,X){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,V=V?C.clipPos(V):x(0,0),this.pos={from:V,to:V};var K;typeof X=="object"?K=X.caseFold:(K=X,X=null),typeof F=="string"?(K==null&&(K=!1),this.matches=function(W,te){return(W?$:P)(C,F,te,K)}):(F=A(F,"gm"),!X||X.multiline!==!1?this.matches=function(W,te){return(W?ue:U)(C,F,te)}:this.matches=function(W,te){return(W?re:k)(C,F,te)})}D.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var F=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(F=x(F.line,F.ch),C?(F.ch--,F.ch<0&&(F.line--,F.ch=(this.doc.getLine(F.line)||"").length)):(F.ch++,F.ch>(this.doc.getLine(F.line)||"").length&&(F.ch=0,F.line++)),d.cmpPos(F,this.doc.clipPos(F))!=0))return this.atOccurrence=!1;var V=this.matches(C,F);if(this.afterEmptyMatch=V&&d.cmpPos(V.from,V.to)==0,V)return this.pos=V,this.atOccurrence=!0,this.pos.match||!0;var X=x(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:X,to:X},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,F){if(!!this.atOccurrence){var V=d.splitLines(C);this.doc.replaceRange(V,this.pos.from,this.pos.to,F),this.pos.to=x(this.pos.from.line+V.length-1,V[V.length-1].length+(V.length==1?this.pos.from.ch:0))}}},d.defineExtension("getSearchCursor",function(C,F,V){return new D(this.doc,C,F,V)}),d.defineDocExtension("getSearchCursor",function(C,F,V){return new D(this,C,F,V)}),d.defineExtension("selectMatches",function(C,F){for(var V=[],X=this.getSearchCursor(C,this.getCursor("from"),F);X.findNext()&&!(d.cmpPos(X.to(),this.getCursor("to"))>0);)V.push({anchor:X.from(),head:X.to()});V.length&&this.setSelections(V,0)})})},23326:function(h){(function(E,o){h.exports=o()})(this,function(){"use strict";var E=navigator.userAgent,o=navigator.platform,d=/gecko\/\d/i.test(E),x=/MSIE \d/.test(E),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(E),A=/Edge\/(\d+)/.exec(E),O=x||w||A,k=O&&(x?document.documentMode||6:+(A||w)[1]),U=!A&&/WebKit\//.test(E),Z=U&&/Qt\/\d+\.\d+/.test(E),re=!A&&/Chrome\/(\d+)/.exec(E),ue=re&&+re[1],ne=/Opera\//.test(E),ie=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(E),P=/PhantomJS/.test(E),$=ie&&(/Mobile\/\w+/.test(E)||navigator.maxTouchPoints>2),D=/Android/.test(E),C=$||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(E),F=$||/Mac/.test(o),V=/\bCrOS\b/.test(E),X=/win/i.test(o),K=ne&&E.match(/Version\/(\d*\.\d*)/);K&&(K=Number(K[1])),K&&K>=15&&(ne=!1,U=!0);var W=F&&(Z||ne&&(K==null||K<12.11)),te=d||O&&k>=9;function J(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var H=function(t,i){var u=t.className,l=J(i).exec(u);if(l){var f=u.slice(l.index+l[0].length);t.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function fe(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function he(t,i){return fe(t).appendChild(i)}function _(t,i,u,l){var f=document.createElement(t);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof i=="string")f.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)f.appendChild(i[g]);return f}function Q(t,i,u,l){var f=_(t,i,u,l);return f.setAttribute("role","presentation"),f}var z;document.createRange?z=function(t,i,u,l){var f=document.createRange();return f.setEnd(l||t,u),f.setStart(t,i),f}:z=function(t,i,u){var l=document.body.createTextRange();try{l.moveToElementText(t.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",i),l};function ge(t,i){if(i.nodeType==3&&(i=i.parentNode),t.contains)return t.contains(i);do if(i.nodeType==11&&(i=i.host),i==t)return!0;while(i=i.parentNode)}function Ee(t){var i;try{i=t.activeElement}catch(u){i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function je(t,i){var u=t.className;J(i).test(u)||(t.className+=(u?" ":"")+i)}function ke(t,i){for(var u=t.split(" "),l=0;l<u.length;l++)u[l]&&!J(u[l]).test(i)&&(i+=" "+u[l]);return i}var it=function(t){t.select()};$?it=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:O&&(it=function(t){try{t.select()}catch(i){}});function et(t){return t.display.wrapper.ownerDocument}function at(t){return et(t).defaultView}function Tt(t){var i=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,i)}}function St(t,i,u){i||(i={});for(var l in t)t.hasOwnProperty(l)&&(u!==!1||!i.hasOwnProperty(l))&&(i[l]=t[l]);return i}function Le(t,i,u,l,f){i==null&&(i=t.search(/[^\s\u00a0]/),i==-1&&(i=t.length));for(var g=l||0,S=f||0;;){var T=t.indexOf(" ",g);if(T<0||T>=i)return S+(i-g);S+=T-g,S+=u-S%u,g=T+1}}var Oe=function(){this.id=null,this.f=null,this.time=0,this.handler=Tt(this.onTimeout,this)};Oe.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Oe.prototype.set=function(t,i){this.f=i;var u=+new Date+t;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=u)};function be(t,i){for(var u=0;u<t.length;++u)if(t[u]==i)return u;return-1}var De=50,Ge={toString:function(){return"CodeMirror.Pass"}},tt={scroll:!1},Ze={origin:"*mouse"},bt={origin:"+move"};function Et(t,i,u){for(var l=0,f=0;;){var g=t.indexOf(" ",l);g==-1&&(g=t.length);var S=g-l;if(g==t.length||f+S>=i)return l+Math.min(S,i-f);if(f+=g-l,f+=u-f%u,l=g+1,f>=i)return l}}var Xt=[""];function zt(t){for(;Xt.length<=t;)Xt.push(nt(Xt)+" ");return Xt[t]}function nt(t){return t[t.length-1]}function Xe(t,i){for(var u=[],l=0;l<t.length;l++)u[l]=i(t[l],l);return u}function er(t,i,u){for(var l=0,f=u(i);l<t.length&&u(t[l])<=f;)l++;t.splice(l,0,i)}function Rt(){}function Rr(t,i){var u;return Object.create?u=Object.create(t):(Rt.prototype=t,u=new Rt),i&&St(i,u),u}var _e=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Mr(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||_e.test(t))}function Ar(t,i){return i?i.source.indexOf("\\w")>-1&&Mr(t)?!0:i.test(t):Mr(t)}function en(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i])return!1;return!0}var $e=/[\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 yt(t){return t.charCodeAt(0)>=768&&$e.test(t)}function Lt(t,i,u){for(;(u<0?i>0:i<t.length)&&yt(t.charAt(i));)i+=u;return i}function wt(t,i,u){for(var l=i>u?-1:1;;){if(i==u)return i;var f=(i+u)/2,g=l<0?Math.ceil(f):Math.floor(f);if(g==i)return t(g)?i:u;t(g)?u=g:i=g+l}}function Ft(t,i,u,l){if(!t)return l(i,u,"ltr",0);for(var f=!1,g=0;g<t.length;++g){var S=t[g];(S.from<u&&S.to>i||i==u&&S.to==i)&&(l(Math.max(S.from,i),Math.min(S.to,u),S.level==1?"rtl":"ltr",g),f=!0)}f||l(i,u,"ltr")}var dt=null;function vt(t,i,u){var l;dt=null;for(var f=0;f<t.length;++f){var g=t[f];if(g.from<i&&g.to>i)return f;g.to==i&&(g.from!=g.to&&u=="before"?l=f:dt=f),g.from==i&&(g.from!=g.to&&u!="before"?l=f:dt=f)}return l!=null?l:dt}var Pt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(j){return j<=247?t.charAt(j):1424<=j&&j<=1524?"R":1536<=j&&j<=1785?i.charAt(j-1536):1774<=j&&j<=2220?"r":8192<=j&&j<=8203?"w":j==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,g=/[LRr]/,S=/[Lb1n]/,T=/[1n]/;function M(j,le,de){this.level=j,this.from=le,this.to=de}return function(j,le){var de=le=="ltr"?"L":"R";if(j.length==0||le=="ltr"&&!l.test(j))return!1;for(var we=j.length,ye=[],Ie=0;Ie<we;++Ie)ye.push(u(j.charCodeAt(Ie)));for(var Ne=0,He=de;Ne<we;++Ne){var Ye=ye[Ne];Ye=="m"?ye[Ne]=He:He=Ye}for(var Qe=0,Je=de;Qe<we;++Qe){var rt=ye[Qe];rt=="1"&&Je=="r"?ye[Qe]="n":g.test(rt)&&(Je=rt,rt=="r"&&(ye[Qe]="R"))}for(var gt=1,ct=ye[0];gt<we-1;++gt){var Dt=ye[gt];Dt=="+"&&ct=="1"&&ye[gt+1]=="1"?ye[gt]="1":Dt==","&&ct==ye[gt+1]&&(ct=="1"||ct=="n")&&(ye[gt]=ct),ct=Dt}for(var dr=0;dr<we;++dr){var zr=ye[dr];if(zr==",")ye[dr]="N";else if(zr=="%"){var Sr=void 0;for(Sr=dr+1;Sr<we&&ye[Sr]=="%";++Sr);for(var An=dr&&ye[dr-1]=="!"||Sr<we&&ye[Sr]=="1"?"1":"N",Gt=dr;Gt<Sr;++Gt)ye[Gt]=An;dr=Sr-1}}for(var Nr=0,hn=de;Nr<we;++Nr){var L=ye[Nr];hn=="L"&&L=="1"?ye[Nr]="L":g.test(L)&&(hn=L)}for(var Bt=0;Bt<we;++Bt)if(f.test(ye[Bt])){var pt=void 0;for(pt=Bt+1;pt<we&&f.test(ye[pt]);++pt);for(var mr=(Bt?ye[Bt-1]:de)=="L",Fr=(pt<we?ye[pt]:de)=="L",Sa=mr==Fr?mr?"L":"R":de,Ri=Bt;Ri<pt;++Ri)ye[Ri]=Sa;Bt=pt-1}for(var Xr=[],Qn,Dr=0;Dr<we;)if(S.test(ye[Dr])){var ro=Dr;for(++Dr;Dr<we&&S.test(ye[Dr]);++Dr);Xr.push(new M(0,ro,Dr))}else{var Mi=Dr,Zi=Xr.length,qi=le=="rtl"?1:0;for(++Dr;Dr<we&&ye[Dr]!="L";++Dr);for(var Qr=Mi;Qr<Dr;)if(T.test(ye[Qr])){Mi<Qr&&(Xr.splice(Zi,0,new M(1,Mi,Qr)),Zi+=qi);var no=Qr;for(++Qr;Qr<Dr&&T.test(ye[Qr]);++Qr);Xr.splice(Zi,0,new M(2,no,Qr)),Zi+=qi,Mi=Qr}else++Qr;Mi<Dr&&Xr.splice(Zi,0,new M(1,Mi,Dr))}return le=="ltr"&&(Xr[0].level==1&&(Qn=j.match(/^\s+/))&&(Xr[0].from=Qn[0].length,Xr.unshift(new M(0,0,Qn[0].length))),nt(Xr).level==1&&(Qn=j.match(/\s+$/))&&(nt(Xr).to-=Qn[0].length,Xr.push(new M(0,we-Qn[0].length,we)))),le=="rtl"?Xr.reverse():Xr}}();function ot(t,i){var u=t.order;return u==null&&(u=t.order=Pt(t.text,i)),u}var Ve=[],ce=function(t,i,u){if(t.addEventListener)t.addEventListener(i,u,!1);else if(t.attachEvent)t.attachEvent("on"+i,u);else{var l=t._handlers||(t._handlers={});l[i]=(l[i]||Ve).concat(u)}};function xe(t,i){return t._handlers&&t._handlers[i]||Ve}function Be(t,i,u){if(t.removeEventListener)t.removeEventListener(i,u,!1);else if(t.detachEvent)t.detachEvent("on"+i,u);else{var l=t._handlers,f=l&&l[i];if(f){var g=be(f,u);g>-1&&(l[i]=f.slice(0,g).concat(f.slice(g+1)))}}}function Ke(t,i){var u=xe(t,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 st(t,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ke(t,u||i.type,t,i),zn(i)||i.codemirrorIgnore}function xt(t){var i=t._handlers&&t._handlers.cursorActivity;if(!!i)for(var u=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)be(u,i[l])==-1&&u.push(i[l])}function kt(t,i){return xe(t,i).length>0}function yr(t){t.prototype.on=function(i,u){ce(this,i,u)},t.prototype.off=function(i,u){Be(this,i,u)}}function Nt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Yt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function zn(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Ur(t){Nt(t),Yt(t)}function Kr(t){return t.target||t.srcElement}function vi(t){var i=t.which;return i==null&&(t.button&1?i=1:t.button&2?i=3:t.button&4&&(i=2)),F&&t.ctrlKey&&i==1&&(i=3),i}var tn=function(){if(O&&k<9)return!1;var t=_("div");return"draggable"in t||"dragDrop"in t}(),gi;function mi(t){if(gi==null){var i=_("span","\u200B");he(t,_("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(gi=i.offsetWidth<=1&&i.offsetHeight>2&&!(O&&k<8))}var u=gi?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var rn;function xr(t){if(rn!=null)return rn;var i=he(t,document.createTextNode("A\u062EA")),u=z(i,0,1).getBoundingClientRect(),l=z(i,1,2).getBoundingClientRect();return fe(t),!u||u.left==u.right?!1:rn=l.right-u.right<3}var Gn=`
14
14
 
15
- b`.split(/\n/).length!=3?function(t){for(var i=0,u=[],l=t.length;i<=l;){var c=t.indexOf(`
16
- `,i);c==-1&&(c=t.length);var y=t.slice(i,t.charAt(c-1)=="\r"?c-1:c),w=y.indexOf("\r");w!=-1?(u.push(y.slice(0,w)),i+=w+1):(u.push(y),i=c+1)}return u}:function(t){return t.split(/\r\n?|\n/)},Oi=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(i){return!1}}:function(t){var i;try{i=t.ownerDocument.selection.createRange()}catch(u){}return!i||i.parentElement()!=t?!1:i.compareEndPoints("StartToEnd",i)!=0},ha=function(){var t=q("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),An=null;function mn(t){if(An!=null)return An;var i=pe(t,q("span","x")),u=i.getBoundingClientRect(),l=G(i,0,1).getBoundingClientRect();return An=Math.abs(u.left-l.left)>1}var Cn={},En={};function In(t,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Cn[t]=i}function Ha(t,i){En[t]=i}function zn(t){if(typeof t=="string"&&En.hasOwnProperty(t))t=En[t];else if(t&&typeof t.name=="string"&&En.hasOwnProperty(t.name)){var i=En[t.name];typeof i=="string"&&(i={name:i}),t=br(i,t),t.name=i.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return zn("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return zn("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function fn(t,i){i=zn(i);var u=Cn[i.name];if(!u)return fn(t,"text/plain");var l=u(t,i);if(Sr.hasOwnProperty(i.name)){var c=Sr[i.name];for(var y in c)!c.hasOwnProperty(y)||(l.hasOwnProperty(y)&&(l["_"+y]=l[y]),l[y]=c[y])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var w in i.modeProps)l[w]=i.modeProps[w];return l}var Sr={};function fi(t,i){var u=Sr.hasOwnProperty(t)?Sr[t]:Sr[t]={};Oe(i,u)}function kn(t,i){if(i===!0)return i;if(t.copyState)return t.copyState(i);var u={};for(var l in i){var c=i[l];c instanceof Array&&(c=c.concat([])),u[l]=c}return u}function va(t,i){for(var u;t.innerMode&&(u=t.innerMode(i),!(!u||u.mode==t));)i=u.state,t=u.mode;return u||{mode:t,state:i}}function No(t,i,u){return t.startState?t.startState(i,u):!0}var sr=function(t,i,u){this.pos=this.start=0,this.string=t,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};sr.prototype.eol=function(){return this.pos>=this.string.length},sr.prototype.sol=function(){return this.pos==this.lineStart},sr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},sr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},sr.prototype.eat=function(t){var i=this.string.charAt(this.pos),u;if(typeof t=="string"?u=i==t:u=i&&(t.test?t.test(i):t(i)),u)return++this.pos,i},sr.prototype.eatWhile=function(t){for(var i=this.pos;this.eat(t););return this.pos>i},sr.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},sr.prototype.skipToEnd=function(){this.pos=this.string.length},sr.prototype.skipTo=function(t){var i=this.string.indexOf(t,this.pos);if(i>-1)return this.pos=i,!0},sr.prototype.backUp=function(t){this.pos-=t},sr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ue(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ue(this.string,this.lineStart,this.tabSize):0)},sr.prototype.indentation=function(){return Ue(this.string,null,this.tabSize)-(this.lineStart?Ue(this.string,this.lineStart,this.tabSize):0)},sr.prototype.match=function(t,i,u){if(typeof t=="string"){var l=function(w){return u?w.toLowerCase():w},c=this.string.substr(this.pos,t.length);if(l(c)==l(t))return i!==!1&&(this.pos+=t.length),!0}else{var y=this.string.slice(this.pos).match(t);return y&&y.index>0?null:(y&&i!==!1&&(this.pos+=y[0].length),y)}},sr.prototype.current=function(){return this.string.slice(this.start,this.pos)},sr.prototype.hideFirstChars=function(t,i){this.lineStart+=t;try{return i()}finally{this.lineStart-=t}},sr.prototype.lookAhead=function(t){var i=this.lineOracle;return i&&i.lookAhead(t)},sr.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function ot(t,i){if(i-=t.first,i<0||i>=t.size)throw new Error("There is no line "+(i+t.first)+" in the document.");for(var u=t;!u.lines;)for(var l=0;;++l){var c=u.children[l],y=c.chunkSize();if(i<y){u=c;break}i-=y}return u.lines[i]}function ci(t,i,u){var l=[],c=i.line;return t.iter(i.line,u.line+1,function(y){var w=y.text;c==u.line&&(w=w.slice(0,u.ch)),c==i.line&&(w=w.slice(i.ch)),l.push(w),++c}),l}function zi(t,i,u){var l=[];return t.iter(i,u,function(c){l.push(c.text)}),l}function cn(t,i){var u=i-t.height;if(u)for(var l=t;l;l=l.parent)l.height+=u}function zt(t){if(t.parent==null)return null;for(var i=t.parent,u=Ce(i.lines,t),l=i.parent;l;i=l,l=l.parent)for(var c=0;l.children[c]!=i;++c)u+=l.children[c].chunkSize();return u+i.first}function di(t,i){var u=t.first;e:do{for(var l=0;l<t.children.length;++l){var c=t.children[l],y=c.height;if(i<y){t=c;continue e}i-=y,u+=c.chunkSize()}return u}while(!t.lines);for(var w=0;w<t.lines.length;++w){var O=t.lines[w],R=O.height;if(i<R)break;i-=R}return u+w}function Gi(t,i){return i>=t.first&&i<t.first+t.size}function pi(t,i){return String(t.lineNumberFormatter(i+t.firstLineNumber))}function M(t,i,u){if(u===void 0&&(u=null),!(this instanceof M))return new M(t,i,u);this.line=t,this.ch=i,this.sticky=u}function ae(t,i){return t.line-i.line||t.ch-i.ch}function Fe(t,i){return t.sticky==i.sticky&&ae(t,i)==0}function He(t){return M(t.line,t.ch)}function St(t,i){return ae(t,i)<0?i:t}function Nt(t,i){return ae(t,i)<0?t:i}function Gt(t,i){return Math.max(t.first,Math.min(i,t.first+t.size-1))}function st(t,i){if(i.line<t.first)return M(t.first,0);var u=t.first+t.size-1;return i.line>u?M(u,ot(t,u).text.length):Fn(i,ot(t,i.line).text.length)}function Fn(t,i){var u=t.ch;return u==null||u>i?M(t.line,i):u<0?M(t.line,0):t}function Jt(t,i){for(var u=[],l=0;l<i.length;l++)u[l]=st(t,i[l]);return u}var Do=function(t,i){this.state=t,this.lookAhead=i},wr=function(t,i,u,l){this.state=i,this.doc=t,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};wr.prototype.lookAhead=function(t){var i=this.doc.getLine(this.line+t);return i!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),i},wr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},wr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},wr.fromSaved=function(t,i,u){return i instanceof Do?new wr(t,kn(t.mode,i.state),u,i.lookAhead):new wr(t,kn(t.mode,i),u)},wr.prototype.save=function(t){var i=t!==!1?kn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Do(i,this.maxLookAhead):i};function uu(t,i,u,l){var c=[t.state.modeGen],y={};wc(t,i.text,t.doc.mode,u,function(V,oe){return c.push(V,oe)},y,l);for(var w=u.state,O=function(V){u.baseTokens=c;var oe=t.state.overlays[V],ce=1,me=0;u.state=!0,wc(t,i.text,oe.mode,u,function(he,Te){for(var Le=ce;me<he;){var ze=c[ce];ze>he&&c.splice(ce,1,he,c[ce+1],ze),ce+=2,me=Math.min(he,ze)}if(!!Te)if(oe.opaque)c.splice(Le,ce-Le,he,"overlay "+Te),ce=Le+2;else for(;Le<ce;Le+=2){var Ye=c[Le+1];c[Le+1]=(Ye?Ye+" ":"")+"overlay "+Te}},y),u.state=w,u.baseTokens=null,u.baseTokenPos=1},R=0;R<t.state.overlays.length;++R)O(R);return{styles:c,classes:y.bgClass||y.textClass?y:null}}function Bo(t,i,u){if(!i.styles||i.styles[0]!=t.state.modeGen){var l=za(t,zt(i)),c=i.text.length>t.options.maxHighlightLength&&kn(t.doc.mode,l.state),y=uu(t,i,l);c&&(l.state=c),i.stateAfter=l.save(!c),i.styles=y.styles,y.classes?i.styleClasses=y.classes:i.styleClasses&&(i.styleClasses=null),u===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return i.styles}function za(t,i,u){var l=t.doc,c=t.display;if(!l.mode.startState)return new wr(l,!0,i);var y=gp(t,i,u),w=y>l.first&&ot(l,y-1).stateAfter,O=w?wr.fromSaved(l,w,y):new wr(l,No(l.mode),y);return l.iter(y,i,function(R){jo(t,R.text,O);var V=O.line;R.stateAfter=V==i-1||V%5==0||V>=c.viewFrom&&V<c.viewTo?O.save():null,O.nextLine()}),u&&(l.modeFrontier=O.line),O}function jo(t,i,u,l){var c=t.doc.mode,y=new sr(i,t.options.tabSize,u);for(y.start=y.pos=l||0,i==""&&ks(c,u.state);!y.eol();)Fs(c,y,u.state),y.start=y.pos}function ks(t,i){if(t.blankLine)return t.blankLine(i);if(!!t.innerMode){var u=va(t,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function Fs(t,i,u,l){for(var c=0;c<10;c++){l&&(l[0]=va(t,u).mode);var y=t.token(i,u);if(i.pos>i.start)return y}throw new Error("Mode "+t.name+" failed to advance stream.")}var fu=function(t,i,u){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=i||null,this.state=u};function cu(t,i,u,l){var c=t.doc,y=c.mode,w;i=st(c,i);var O=ot(c,i.line),R=za(t,i.line,u),V=new sr(O.text,t.options.tabSize,R),oe;for(l&&(oe=[]);(l||V.pos<i.ch)&&!V.eol();)V.start=V.pos,w=Fs(y,V,R.state),l&&oe.push(new fu(V,w,kn(c.mode,R.state)));return l?oe:new fu(V,w,R.state)}function du(t,i){if(t)for(;;){var u=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;t=t.slice(0,u.index)+t.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 t}function wc(t,i,u,l,c,y,w){var O=u.flattenSpans;O==null&&(O=t.options.flattenSpans);var R=0,V=null,oe=new sr(i,t.options.tabSize,l),ce,me=t.options.addModeClass&&[null];for(i==""&&du(ks(u,l.state),y);!oe.eol();){if(oe.pos>t.options.maxHighlightLength?(O=!1,w&&jo(t,i,l,oe.pos),oe.pos=i.length,ce=null):ce=du(Fs(u,oe,l.state,me),y),me){var he=me[0].name;he&&(ce="m-"+(ce?he+" "+ce:he))}if(!O||V!=ce){for(;R<oe.start;)R=Math.min(oe.start,R+5e3),c(R,V);V=ce}oe.start=oe.pos}for(;R<oe.pos;){var Te=Math.min(oe.pos,R+5e3);c(Te,V),R=Te}}function gp(t,i,u){for(var l,c,y=t.doc,w=u?-1:i-(t.doc.mode.innerMode?1e3:100),O=i;O>w;--O){if(O<=y.first)return y.first;var R=ot(y,O-1),V=R.stateAfter;if(V&&(!u||O+(V instanceof Do?V.lookAhead:0)<=y.modeFrontier))return O;var oe=Ue(R.text,null,t.options.tabSize);(c==null||l>oe)&&(c=O-1,l=oe)}return c}function Ac(t,i){if(t.modeFrontier=Math.min(t.modeFrontier,i),!(t.highlightFrontier<i-10)){for(var u=t.first,l=i-1;l>u;l--){var c=ot(t,l).stateAfter;if(c&&(!(c instanceof Do)||l+c.lookAhead<i)){u=l+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,u)}}var pu=!1,hi=!1;function Cc(){pu=!0}function Ec(){hi=!0}function Rs(t,i,u){this.marker=t,this.from=i,this.to=u}function Vo(t,i){if(t)for(var u=0;u<t.length;++u){var l=t[u];if(l.marker==i)return l}}function mp(t,i){for(var u,l=0;l<t.length;++l)t[l]!=i&&(u||(u=[])).push(t[l]);return u}function yp(t,i,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&t.markedSpans&&l.has(t.markedSpans)?t.markedSpans.push(i):(t.markedSpans=t.markedSpans?t.markedSpans.concat([i]):[i],l&&l.add(t.markedSpans)),i.marker.attachLine(t)}function Oc(t,i,u){var l;if(t)for(var c=0;c<t.length;++c){var y=t[c],w=y.marker,O=y.from==null||(w.inclusiveLeft?y.from<=i:y.from<i);if(O||y.from==i&&w.type=="bookmark"&&(!u||!y.marker.insertLeft)){var R=y.to==null||(w.inclusiveRight?y.to>=i:y.to>i);(l||(l=[])).push(new Rs(w,y.from,R?null:y.to))}}return l}function hu(t,i,u){var l;if(t)for(var c=0;c<t.length;++c){var y=t[c],w=y.marker,O=y.to==null||(w.inclusiveRight?y.to>=i:y.to>i);if(O||y.from==i&&w.type=="bookmark"&&(!u||y.marker.insertLeft)){var R=y.from==null||(w.inclusiveLeft?y.from<=i:y.from<i);(l||(l=[])).push(new Rs(w,R?null:y.from-i,y.to==null?null:y.to-i))}}return l}function Ls(t,i){if(i.full)return null;var u=Gi(t,i.from.line)&&ot(t,i.from.line).markedSpans,l=Gi(t,i.to.line)&&ot(t,i.to.line).markedSpans;if(!u&&!l)return null;var c=i.from.ch,y=i.to.ch,w=ae(i.from,i.to)==0,O=Oc(u,c,w),R=hu(l,y,w),V=i.text.length==1,oe=lt(i.text).length+(V?c:0);if(O)for(var ce=0;ce<O.length;++ce){var me=O[ce];if(me.to==null){var he=Vo(R,me.marker);he?V&&(me.to=he.to==null?null:he.to+oe):me.to=c}}if(R)for(var Te=0;Te<R.length;++Te){var Le=R[Te];if(Le.to!=null&&(Le.to+=oe),Le.from==null){var ze=Vo(O,Le.marker);ze||(Le.from=oe,V&&(O||(O=[])).push(Le))}else Le.from+=oe,V&&(O||(O=[])).push(Le)}O&&(O=Tc(O)),R&&R!=O&&(R=Tc(R));var Ye=[O];if(!V){var Qe=i.text.length-2,Je;if(Qe>0&&O)for(var qe=0;qe<O.length;++qe)O[qe].to==null&&(Je||(Je=[])).push(new Rs(O[qe].marker,null,null));for(var ht=0;ht<Qe;++ht)Ye.push(Je);Ye.push(R)}return Ye}function Tc(t){for(var i=0;i<t.length;++i){var u=t[i];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&t.splice(i--,1)}return t.length?t:null}function bp(t,i,u){var l=null;if(t.iter(i.line,u.line+1,function(he){if(he.markedSpans)for(var Te=0;Te<he.markedSpans.length;++Te){var Le=he.markedSpans[Te].marker;Le.readOnly&&(!l||Ce(l,Le)==-1)&&(l||(l=[])).push(Le)}}),!l)return null;for(var c=[{from:i,to:u}],y=0;y<l.length;++y)for(var w=l[y],O=w.find(0),R=0;R<c.length;++R){var V=c[R];if(!(ae(V.to,O.from)<0||ae(V.from,O.to)>0)){var oe=[R,1],ce=ae(V.from,O.from),me=ae(V.to,O.to);(ce<0||!w.inclusiveLeft&&!ce)&&oe.push({from:V.from,to:O.from}),(me>0||!w.inclusiveRight&&!me)&&oe.push({from:O.to,to:V.to}),c.splice.apply(c,oe),R+=oe.length-3}}return c}function Pc(t){var i=t.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(t);t.markedSpans=null}}function Ic(t,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(t);t.markedSpans=i}}function $i(t){return t.inclusiveLeft?-1:0}function Ga(t){return t.inclusiveRight?1:0}function ga(t,i){var u=t.lines.length-i.lines.length;if(u!=0)return u;var l=t.find(),c=i.find(),y=ae(l.from,c.from)||$i(t)-$i(i);if(y)return-y;var w=ae(l.to,c.to)||Ga(t)-Ga(i);return w||i.id-t.id}function vu(t,i){var u=hi&&t.markedSpans,l;if(u)for(var c=void 0,y=0;y<u.length;++y)c=u[y],c.marker.collapsed&&(i?c.from:c.to)==null&&(!l||ga(l,c.marker)<0)&&(l=c.marker);return l}function Ms(t){return vu(t,!0)}function $a(t){return vu(t,!1)}function gu(t,i){var u=hi&&t.markedSpans,l;if(u)for(var c=0;c<u.length;++c){var y=u[c];y.marker.collapsed&&(y.from==null||y.from<i)&&(y.to==null||y.to>i)&&(!l||ga(l,y.marker)<0)&&(l=y.marker)}return l}function mu(t,i,u,l,c){var y=ot(t,i),w=hi&&y.markedSpans;if(w)for(var O=0;O<w.length;++O){var R=w[O];if(!!R.marker.collapsed){var V=R.marker.find(0),oe=ae(V.from,u)||$i(R.marker)-$i(c),ce=ae(V.to,l)||Ga(R.marker)-Ga(c);if(!(oe>=0&&ce<=0||oe<=0&&ce>=0)&&(oe<=0&&(R.marker.inclusiveRight&&c.inclusiveLeft?ae(V.to,u)>=0:ae(V.to,u)>0)||oe>=0&&(R.marker.inclusiveRight&&c.inclusiveLeft?ae(V.from,l)<=0:ae(V.from,l)<0)))return!0}}}function yn(t){for(var i;i=Ms(t);)t=i.find(-1,!0).line;return t}function kc(t){for(var i;i=$a(t);)t=i.find(1,!0).line;return t}function yu(t){for(var i,u;i=$a(t);)t=i.find(1,!0).line,(u||(u=[])).push(t);return u}function lr(t,i){var u=ot(t,i),l=yn(u);return u==l?i:zt(l)}function bu(t,i){if(i>t.lastLine())return i;var u=ot(t,i),l;if(!Fr(t,u))return i;for(;l=$a(u);)u=l.find(1,!0).line;return zt(u)+1}function Fr(t,i){var u=hi&&i.markedSpans;if(u){for(var l=void 0,c=0;c<u.length;++c)if(l=u[c],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Ns(t,i,l))return!0}}}function Ns(t,i,u){if(u.to==null){var l=u.marker.find(1,!0);return Ns(t,l.line,Vo(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==i.text.length)return!0;for(var c=void 0,y=0;y<i.markedSpans.length;++y)if(c=i.markedSpans[y],c.marker.collapsed&&!c.marker.widgetNode&&c.from==u.to&&(c.to==null||c.to!=u.from)&&(c.marker.inclusiveLeft||u.marker.inclusiveRight)&&Ns(t,i,c))return!0}function qn(t){t=yn(t);for(var i=0,u=t.parent,l=0;l<u.lines.length;++l){var c=u.lines[l];if(c==t)break;i+=c.height}for(var y=u.parent;y;u=y,y=u.parent)for(var w=0;w<y.children.length;++w){var O=y.children[w];if(O==u)break;i+=O.height}return i}function Gn(t){if(t.height==0)return 0;for(var i=t.text.length,u,l=t;u=Ms(l);){var c=u.find(0,!0);l=c.from.line,i+=c.from.ch-c.to.ch}for(l=t;u=$a(l);){var y=u.find(0,!0);i-=l.text.length-y.from.ch,l=y.to.line,i+=l.text.length-y.to.ch}return i}function vi(t){var i=t.display,u=t.doc;i.maxLine=ot(u,u.first),i.maxLineLength=Gn(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var c=Gn(l);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=l)})}var Ti=function(t,i,u){this.text=t,Ic(this,i),this.height=u?u(this):1};Ti.prototype.lineNo=function(){return zt(this)},pr(Ti);function Ds(t,i,u,l){t.text=i,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Pc(t),Ic(t,u);var c=l?l(t):1;c!=t.height&&cn(t,c)}function Fc(t){t.parent=null,Pc(t)}var xu={},Bs={};function Uo(t,i){if(!t||/^\s*$/.test(t))return null;var u=i.addModeClass?Bs:xu;return u[t]||(u[t]=t.replace(/\S+/g,"cm-$&"))}function Pi(t,i){var u=Z("span",null,null,U?"padding-right: .1px":null),l={pre:Z("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};i.measure={};for(var c=0;c<=(i.rest?i.rest.length:0);c++){var y=c?i.rest[c-1]:i.line,w=void 0;l.pos=0,l.addToken=ar,Pn(t.display.measure)&&(w=nt(y,t.doc.direction))&&(l.addToken=Mc(l.addToken,w)),l.map=[];var O=i!=t.display.externalMeasured&&zt(y);$n(y,l,Bo(t,y,O)),y.styleClasses&&(y.styleClasses.bgClass&&(l.bgClass=je(y.styleClasses.bgClass,l.bgClass||"")),y.styleClasses.textClass&&(l.textClass=je(y.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(ui(t.display.measure))),c==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(U){var R=l.content.lastChild;(/\bcm-tab\b/.test(R.className)||R.querySelector&&R.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ke(t,"renderLine",t,i.line,l.pre),l.pre.className&&(l.textClass=je(l.pre.className,l.textClass||"")),l}function Rc(t){var i=q("span","\u2022","cm-invalidchar");return i.title="\\u"+t.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function ar(t,i,u,l,c,y,w){if(!!i){var O=t.splitSpaces?Lc(i,t.trailingSpace):i,R=t.cm.state.specialChars,V=!1,oe;if(!R.test(i))t.col+=i.length,oe=document.createTextNode(O),t.map.push(t.pos,t.pos+i.length,oe),E&&F<9&&(V=!0),t.pos+=i.length;else{oe=document.createDocumentFragment();for(var ce=0;;){R.lastIndex=ce;var me=R.exec(i),he=me?me.index-ce:i.length-ce;if(he){var Te=document.createTextNode(O.slice(ce,ce+he));E&&F<9?oe.appendChild(q("span",[Te])):oe.appendChild(Te),t.map.push(t.pos,t.pos+he,Te),t.col+=he,t.pos+=he}if(!me)break;ce+=he+1;var Le=void 0;if(me[0]==" "){var ze=t.cm.options.tabSize,Ye=ze-t.col%ze;Le=oe.appendChild(q("span",Zt(Ye),"cm-tab")),Le.setAttribute("role","presentation"),Le.setAttribute("cm-text"," "),t.col+=Ye}else me[0]=="\r"||me[0]==`
17
- `?(Le=oe.appendChild(q("span",me[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Le.setAttribute("cm-text",me[0]),t.col+=1):(Le=t.cm.options.specialCharPlaceholder(me[0]),Le.setAttribute("cm-text",me[0]),E&&F<9?oe.appendChild(q("span",[Le])):oe.appendChild(Le),t.col+=1);t.map.push(t.pos,t.pos+1,Le),t.pos++}}if(t.trailingSpace=O.charCodeAt(i.length-1)==32,u||l||c||V||y||w){var Qe=u||"";l&&(Qe+=l),c&&(Qe+=c);var Je=q("span",[oe],Qe,y);if(w)for(var qe in w)w.hasOwnProperty(qe)&&qe!="style"&&qe!="class"&&Je.setAttribute(qe,w[qe]);return t.content.appendChild(Je)}t.content.appendChild(oe)}}function Lc(t,i){if(t.length>1&&!/ /.test(t))return t;for(var u=i,l="",c=0;c<t.length;c++){var y=t.charAt(c);y==" "&&u&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(y="\xA0"),l+=y,u=y==" "}return l}function Mc(t,i){return function(u,l,c,y,w,O,R){c=c?c+" cm-force-border":"cm-force-border";for(var V=u.pos,oe=V+l.length;;){for(var ce=void 0,me=0;me<i.length&&(ce=i[me],!(ce.to>V&&ce.from<=V));me++);if(ce.to>=oe)return t(u,l,c,y,w,O,R);t(u,l.slice(0,ce.to-V),c,y,null,O,R),y=null,l=l.slice(ce.to-V),V=ce.to}}}function Su(t,i,u,l){var c=!l&&u.widgetNode;c&&t.map.push(t.pos,t.pos+i,c),!l&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",u.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=i,t.trailingSpace=!1}function $n(t,i,u){var l=t.markedSpans,c=t.text,y=0;if(!l){for(var w=1;w<u.length;w+=2)i.addToken(i,c.slice(y,y=u[w]),Uo(u[w+1],i.cm.options));return}for(var O=c.length,R=0,V=1,oe="",ce,me,he=0,Te,Le,ze,Ye,Qe;;){if(he==R){Te=Le=ze=me="",Qe=null,Ye=null,he=1/0;for(var Je=[],qe=void 0,ht=0;ht<l.length;++ht){var dt=l[ht],Mt=dt.marker;if(Mt.type=="bookmark"&&dt.from==R&&Mt.widgetNode)Je.push(Mt);else if(dt.from<=R&&(dt.to==null||dt.to>R||Mt.collapsed&&dt.to==R&&dt.from==R)){if(dt.to!=null&&dt.to!=R&&he>dt.to&&(he=dt.to,Le=""),Mt.className&&(Te+=" "+Mt.className),Mt.css&&(me=(me?me+";":"")+Mt.css),Mt.startStyle&&dt.from==R&&(ze+=" "+Mt.startStyle),Mt.endStyle&&dt.to==he&&(qe||(qe=[])).push(Mt.endStyle,dt.to),Mt.title&&((Qe||(Qe={})).title=Mt.title),Mt.attributes)for(var tr in Mt.attributes)(Qe||(Qe={}))[tr]=Mt.attributes[tr];Mt.collapsed&&(!Ye||ga(Ye.marker,Mt)<0)&&(Ye=dt)}else dt.from>R&&he>dt.from&&(he=dt.from)}if(qe)for(var Tr=0;Tr<qe.length;Tr+=2)qe[Tr+1]==he&&(Le+=" "+qe[Tr]);if(!Ye||Ye.from==R)for(var wt=0;wt<Je.length;++wt)Su(i,0,Je[wt]);if(Ye&&(Ye.from||0)==R){if(Su(i,(Ye.to==null?O+1:Ye.to)-R,Ye.marker,Ye.from==null),Ye.to==null)return;Ye.to==R&&(Ye=!1)}}if(R>=O)break;for(var xn=Math.min(O,he);;){if(oe){var sn=R+oe.length;if(!Ye){var Ar=sn>xn?oe.slice(0,xn-R):oe;i.addToken(i,Ar,ce?ce+Te:Te,ze,R+Ar.length==he?Le:"",me,Qe)}if(sn>=xn){oe=oe.slice(xn-R),R=xn;break}R=sn,ze=""}oe=c.slice(y,y=u[V++]),ce=Uo(u[V++],i.cm.options)}}}function js(t,i,u){this.line=i,this.rest=yu(i),this.size=this.rest?zt(lt(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Fr(t,i)}function Ka(t,i,u){for(var l=[],c,y=i;y<u;y=c){var w=new js(t.doc,ot(t.doc,y),y);c=y+w.size,l.push(w)}return l}var Ii=null;function Nc(t){Ii?Ii.ops.push(t):t.ownsGroup=Ii={ops:[t],delayedCallbacks:[]}}function ei(t){var i=t.delayedCallbacks,u=0;do{for(;u<i.length;u++)i[u].call(null);for(var l=0;l<t.ops.length;l++){var c=t.ops[l];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(u<i.length)}function Dc(t,i){var u=t.ownsGroup;if(!!u)try{ei(u)}finally{Ii=null,i(u)}}var gi=null;function Rr(t,i){var u=ge(t,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),c;Ii?c=Ii.delayedCallbacks:gi?c=gi:(c=gi=[],setTimeout(wu,0));for(var y=function(O){c.push(function(){return u[O].apply(null,l)})},w=0;w<u.length;++w)y(w)}}function wu(){var t=gi;gi=null;for(var i=0;i<t.length;++i)t[i]()}function Au(t,i,u,l){for(var c=0;c<i.changes.length;c++){var y=i.changes[c];y=="text"?jc(t,i):y=="gutter"?Cu(t,i,u,l):y=="class"?$t(t,i):y=="widget"&&Kt(t,i,l)}i.changes=null}function ma(t){return t.node==t.text&&(t.node=q("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),E&&F<8&&(t.node.style.zIndex=2)),t.node}function Bc(t,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=ma(i);i.background=l.insertBefore(q("div",null,u),l.firstChild),t.display.input.setUneditable(i.background)}}function Ya(t,i){var u=t.display.externalMeasured;return u&&u.line==i.line?(t.display.externalMeasured=null,i.measure=u.measure,u.built):Pi(t,i)}function jc(t,i){var u=i.text.className,l=Ya(t,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,$t(t,i)):u&&(i.text.className=u)}function $t(t,i){Bc(t,i),i.line.wrapClass?ma(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 Cu(t,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 c=ma(i);i.gutterBackground=q("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),t.display.input.setUneditable(i.gutterBackground),c.insertBefore(i.gutterBackground,i.text)}var y=i.line.gutterMarkers;if(t.options.lineNumbers||y){var w=ma(i),O=i.gutter=q("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(O.setAttribute("aria-hidden","true"),t.display.input.setUneditable(O),w.insertBefore(O,i.text),i.line.gutterClass&&(O.className+=" "+i.line.gutterClass),t.options.lineNumbers&&(!y||!y["CodeMirror-linenumbers"])&&(i.lineNumber=O.appendChild(q("div",pi(t.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),y)for(var R=0;R<t.display.gutterSpecs.length;++R){var V=t.display.gutterSpecs[R].className,oe=y.hasOwnProperty(V)&&y[V];oe&&O.appendChild(q("div",[oe],"CodeMirror-gutter-elt","left: "+l.gutterLeft[V]+"px; width: "+l.gutterWidth[V]+"px"))}}}function Kt(t,i,u){i.alignable&&(i.alignable=null);for(var l=J("CodeMirror-linewidget"),c=i.node.firstChild,y=void 0;c;c=y)y=c.nextSibling,l.test(c.className)&&i.node.removeChild(c);ut(t,i,u)}function Vc(t,i,u,l){var c=Ya(t,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),$t(t,i),Cu(t,i,u,l),ut(t,i,l),i.node}function ut(t,i,u){if(Eu(t,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)Eu(t,i.rest[l],i,u,!1)}function Eu(t,i,u,l,c){if(!!i.widgets)for(var y=ma(u),w=0,O=i.widgets;w<O.length;++w){var R=O[w],V=q("div",[R.node],"CodeMirror-linewidget"+(R.className?" "+R.className:""));R.handleMouseEvents||V.setAttribute("cm-ignore-events","true"),Ou(R,V,u,l),t.display.input.setUneditable(V),c&&R.above?y.insertBefore(V,u.gutter||u.text):y.appendChild(V),Rr(R,"redraw")}}function Ou(t,i,u,l){if(t.noHScroll){(u.alignable||(u.alignable=[])).push(i);var c=l.wrapperWidth;i.style.left=l.fixedPos+"px",t.coverGutter||(c-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=c+"px"}t.coverGutter&&(i.style.zIndex=5,i.style.position="relative",t.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ja(t){if(t.height!=null)return t.height;var i=t.doc.cm;if(!i)return 0;if(!ve(document.body,t.node)){var u="position: relative;";t.coverGutter&&(u+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),t.noHScroll&&(u+="width: "+i.display.wrapper.clientWidth+"px;"),pe(i.display.measure,q("div",[t.node],null,u))}return t.height=t.node.parentNode.offsetHeight}function Er(t,i){for(var u=Jr(i);u!=t.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==t.sizer&&u!=t.mover)return!0}function Vs(t){return t.lineSpace.offsetTop}function Us(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Wo(t){if(t.cachedPaddingH)return t.cachedPaddingH;var i=pe(t.measure,q("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)&&(t.cachedPaddingH=l),l}function Kn(t){return Ge-t.display.nativeBarWidth}function Ki(t){return t.display.scroller.clientWidth-Kn(t)-t.display.barWidth}function Ws(t){return t.display.scroller.clientHeight-Kn(t)-t.display.barHeight}function Uc(t,i,u){var l=t.options.lineWrapping,c=l&&Ki(t);if(!i.measure.heights||l&&i.measure.width!=c){var y=i.measure.heights=[];if(l){i.measure.width=c;for(var w=i.text.firstChild.getClientRects(),O=0;O<w.length-1;O++){var R=w[O],V=w[O+1];Math.abs(R.bottom-V.bottom)>2&&y.push((R.bottom+V.top)/2-u.top)}}y.push(u.bottom-u.top)}}function Tu(t,i,u){if(t.line==i)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var l=0;l<t.rest.length;l++)if(t.rest[l]==i)return{map:t.measure.maps[l],cache:t.measure.caches[l]};for(var c=0;c<t.rest.length;c++)if(zt(t.rest[c])>u)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}}function Wc(t,i){i=yn(i);var u=zt(i),l=t.display.externalMeasured=new js(t.doc,i,u);l.lineN=u;var c=l.built=Pi(t,l);return l.text=c.pre,pe(t.display.lineMeasure,c.pre),l}function Pu(t,i,u,l){return ti(t,ya(t,i),u,l)}function Hs(t,i){if(i>=t.display.viewFrom&&i<t.display.viewTo)return t.display.view[Zi(t,i)];var u=t.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function ya(t,i){var u=zt(i),l=Hs(t,u);l&&!l.text?l=null:l&&l.changes&&(Au(t,l,u,Js(t)),t.curOp.forceUpdate=!0),l||(l=Wc(t,i));var c=Tu(l,i,u);return{line:i,view:l,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function ti(t,i,u,l,c){i.before&&(u=-1);var y=u+(l||""),w;return i.cache.hasOwnProperty(y)?w=i.cache[y]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Uc(t,i.view,i.rect),i.hasHeights=!0),w=Fu(t,i,u,l),w.bogus||(i.cache[y]=w)),{left:w.left,right:w.right,top:c?w.rtop:w.top,bottom:c?w.rbottom:w.bottom}}var Iu={left:0,right:0,top:0,bottom:0};function ku(t,i,u){for(var l,c,y,w,O,R,V=0;V<t.length;V+=3)if(O=t[V],R=t[V+1],i<O?(c=0,y=1,w="left"):i<R?(c=i-O,y=c+1):(V==t.length-3||i==R&&t[V+3]>i)&&(y=R-O,c=y-1,i>=R&&(w="right")),c!=null){if(l=t[V+2],O==R&&u==(l.insertLeft?"left":"right")&&(w=u),u=="left"&&c==0)for(;V&&t[V-2]==t[V-3]&&t[V-1].insertLeft;)l=t[(V-=3)+2],w="left";if(u=="right"&&c==R-O)for(;V<t.length-3&&t[V+3]==t[V+4]&&!t[V+5].insertLeft;)l=t[(V+=3)+2],w="right";break}return{node:l,start:c,end:y,collapse:w,coverStart:O,coverEnd:R}}function Lr(t,i){var u=Iu;if(i=="left")for(var l=0;l<t.length&&(u=t[l]).left==u.right;l++);else for(var c=t.length-1;c>=0&&(u=t[c]).left==u.right;c--);return u}function Fu(t,i,u,l){var c=ku(i.map,u,l),y=c.node,w=c.start,O=c.end,R=c.collapse,V;if(y.nodeType==3){for(var oe=0;oe<4;oe++){for(;w&&gt(i.line.text.charAt(c.coverStart+w));)--w;for(;c.coverStart+O<c.coverEnd&&gt(i.line.text.charAt(c.coverStart+O));)++O;if(E&&F<9&&w==0&&O==c.coverEnd-c.coverStart?V=y.parentNode.getBoundingClientRect():V=Lr(G(y,w,O).getClientRects(),l),V.left||V.right||w==0)break;O=w,w=w-1,R="right"}E&&F<11&&(V=Xa(t.display.measure,V))}else{w>0&&(R=l="right");var ce;t.options.lineWrapping&&(ce=y.getClientRects()).length>1?V=ce[l=="right"?ce.length-1:0]:V=y.getBoundingClientRect()}if(E&&F<9&&!w&&(!V||!V.left&&!V.right)){var me=y.parentNode.getClientRects()[0];me?V={left:me.left,right:me.left+Xi(t.display),top:me.top,bottom:me.bottom}:V=Iu}for(var he=V.top-i.rect.top,Te=V.bottom-i.rect.top,Le=(he+Te)/2,ze=i.view.measure.heights,Ye=0;Ye<ze.length-1&&!(Le<ze[Ye]);Ye++);var Qe=Ye?ze[Ye-1]:0,Je=ze[Ye],qe={left:(R=="right"?V.right:V.left)-i.rect.left,right:(R=="left"?V.left:V.right)-i.rect.left,top:Qe,bottom:Je};return!V.left&&!V.right&&(qe.bogus=!0),t.options.singleCursorHeightPerLine||(qe.rtop=he,qe.rbottom=Te),qe}function Xa(t,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!mn(t))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 rn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var i=0;i<t.rest.length;i++)t.measure.caches[i]={}}function Ho(t){t.display.externalMeasure=null,fe(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)rn(t.display.view[i])}function Yi(t){Ho(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Ru(t){return Q&&L?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function Lu(t){return Q&&L?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function zs(t){var i=yn(t),u=i.widgets,l=0;if(u)for(var c=0;c<u.length;++c)u[c].above&&(l+=Ja(u[c]));return l}function zo(t,i,u,l,c){if(!c){var y=zs(i);u.top+=y,u.bottom+=y}if(l=="line")return u;l||(l="local");var w=qn(i);if(l=="local"?w+=Vs(t.display):w-=t.display.viewOffset,l=="page"||l=="window"){var O=t.display.lineSpace.getBoundingClientRect();w+=O.top+(l=="window"?0:Lu(_e(t)));var R=O.left+(l=="window"?0:Ru(_e(t)));u.left+=R,u.right+=R}return u.top+=w,u.bottom+=w,u}function Mu(t,i,u){if(u=="div")return i;var l=i.left,c=i.top;if(u=="page")l-=Ru(_e(t)),c-=Lu(_e(t));else if(u=="local"||!u){var y=t.display.sizer.getBoundingClientRect();l+=y.left,c+=y.top}var w=t.display.lineSpace.getBoundingClientRect();return{left:l-w.left,top:c-w.top}}function Go(t,i,u,l,c){return l||(l=ot(t.doc,i.line)),zo(t,l,Pu(t,l,i.ch,c),u)}function or(t,i,u,l,c,y){l=l||ot(t.doc,i.line),c||(c=ya(t,l));function w(Te,Le){var ze=ti(t,c,Te,Le?"right":"left",y);return Le?ze.left=ze.right:ze.right=ze.left,zo(t,l,ze,u)}var O=nt(l,t.doc.direction),R=i.ch,V=i.sticky;if(R>=l.text.length?(R=l.text.length,V="before"):R<=0&&(R=0,V="after"),!O)return w(V=="before"?R-1:R,V=="before");function oe(Te,Le,ze){var Ye=O[Le],Qe=Ye.level==1;return w(ze?Te-1:Te,Qe!=ze)}var ce=it(O,R,V),me=ct,he=oe(R,ce,V=="before");return me!=null&&(he.other=oe(R,me,V!="before")),he}function Gs(t,i){var u=0;i=st(t.doc,i),t.options.lineWrapping||(u=Xi(t.display)*i.ch);var l=ot(t.doc,i.line),c=qn(l)+Vs(t.display);return{left:u,right:u,top:c,bottom:c+l.height}}function $s(t,i,u,l,c){var y=M(t,i,u);return y.xRel=c,l&&(y.outside=l),y}function Qa(t,i,u){var l=t.doc;if(u+=t.display.viewOffset,u<0)return $s(l.first,0,null,-1,-1);var c=di(l,u),y=l.first+l.size-1;if(c>y)return $s(l.first+l.size-1,ot(l,y).text.length,null,1,1);i<0&&(i=0);for(var w=ot(l,c);;){var O=Nu(t,w,c,i,u),R=gu(w,O.ch+(O.xRel>0||O.outside>0?1:0));if(!R)return O;var V=R.find(1);if(V.line==c)return V;w=ot(l,c=V.line)}}function Ks(t,i,u,l){l-=zs(i);var c=i.text.length,y=At(function(w){return ti(t,u,w-1).bottom<=l},c,0);return c=At(function(w){return ti(t,u,w).top>l},y,c),{begin:y,end:c}}function Ys(t,i,u,l){u||(u=ya(t,i));var c=zo(t,i,ti(t,u,l),"line").top;return Ks(t,i,u,c)}function $o(t,i,u,l){return t.bottom<=u?!1:t.top>u?!0:(l?t.left:t.right)>i}function Nu(t,i,u,l,c){c-=qn(i);var y=ya(t,i),w=zs(i),O=0,R=i.text.length,V=!0,oe=nt(i,t.doc.direction);if(oe){var ce=(t.options.lineWrapping?Hc:Du)(t,i,u,y,oe,l,c);V=ce.level!=1,O=V?ce.from:ce.to-1,R=V?ce.to:ce.from-1}var me=null,he=null,Te=At(function(ht){var dt=ti(t,y,ht);return dt.top+=w,dt.bottom+=w,$o(dt,l,c,!1)?(dt.top<=c&&dt.left<=l&&(me=ht,he=dt),!0):!1},O,R),Le,ze,Ye=!1;if(he){var Qe=l-he.left<he.right-l,Je=Qe==V;Te=me+(Je?0:1),ze=Je?"after":"before",Le=Qe?he.left:he.right}else{!V&&(Te==R||Te==O)&&Te++,ze=Te==0?"after":Te==i.text.length?"before":ti(t,y,Te-(V?1:0)).bottom+w<=c==V?"after":"before";var qe=or(t,M(u,Te,ze),"line",i,y);Le=qe.left,Ye=c<qe.top?-1:c>=qe.bottom?1:0}return Te=Tt(i.text,Te,1),$s(u,Te,ze,Ye,l-Le)}function Du(t,i,u,l,c,y,w){var O=At(function(ce){var me=c[ce],he=me.level!=1;return $o(or(t,M(u,he?me.to:me.from,he?"before":"after"),"line",i,l),y,w,!0)},0,c.length-1),R=c[O];if(O>0){var V=R.level!=1,oe=or(t,M(u,V?R.from:R.to,V?"after":"before"),"line",i,l);$o(oe,y,w,!0)&&oe.top>w&&(R=c[O-1])}return R}function Hc(t,i,u,l,c,y,w){var O=Ks(t,i,l,w),R=O.begin,V=O.end;/\s/.test(i.text.charAt(V-1))&&V--;for(var oe=null,ce=null,me=0;me<c.length;me++){var he=c[me];if(!(he.from>=V||he.to<=R)){var Te=he.level!=1,Le=ti(t,l,Te?Math.min(V,he.to)-1:Math.max(R,he.from)).right,ze=Le<y?y-Le+1e9:Le-y;(!oe||ce>ze)&&(oe=he,ce=ze)}}return oe||(oe=c[c.length-1]),oe.from<R&&(oe={from:R,to:oe.to,level:oe.level}),oe.to>V&&(oe={from:oe.from,to:V,level:oe.level}),oe}var Ji;function ba(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Ji==null){Ji=q("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Ji.appendChild(document.createTextNode("x")),Ji.appendChild(q("br"));Ji.appendChild(document.createTextNode("x"))}pe(t.measure,Ji);var u=Ji.offsetHeight/50;return u>3&&(t.cachedTextHeight=u),fe(t.measure),u||1}function Xi(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var i=q("span","xxxxxxxxxx"),u=q("pre",[i],"CodeMirror-line-like");pe(t.measure,u);var l=i.getBoundingClientRect(),c=(l.right-l.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function Js(t){for(var i=t.display,u={},l={},c=i.gutters.clientLeft,y=i.gutters.firstChild,w=0;y;y=y.nextSibling,++w){var O=t.display.gutterSpecs[w].className;u[O]=y.offsetLeft+y.clientLeft+c,l[O]=y.clientWidth}return{fixedPos:Xs(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Xs(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Bu(t){var i=ba(t.display),u=t.options.lineWrapping,l=u&&Math.max(5,t.display.scroller.clientWidth/Xi(t.display)-3);return function(c){if(Fr(t.doc,c))return 0;var y=0;if(c.widgets)for(var w=0;w<c.widgets.length;w++)c.widgets[w].height&&(y+=c.widgets[w].height);return u?y+(Math.ceil(c.text.length/l)||1)*i:y+i}}function Ko(t){var i=t.doc,u=Bu(t);i.iter(function(l){var c=u(l);c!=l.height&&cn(l,c)})}function Qi(t,i,u,l){var c=t.display;if(!u&&Jr(i).getAttribute("cm-not-content")=="true")return null;var y,w,O=c.lineSpace.getBoundingClientRect();try{y=i.clientX-O.left,w=i.clientY-O.top}catch(ce){return null}var R=Qa(t,y,w),V;if(l&&R.xRel>0&&(V=ot(t.doc,R.line).text).length==R.ch){var oe=Ue(V,V.length,t.options.tabSize)-V.length;R=M(R.line,Math.max(0,Math.round((y-Wo(t.display).left)/Xi(t.display))-oe))}return R}function Zi(t,i){if(i>=t.display.viewTo||(i-=t.display.viewFrom,i<0))return null;for(var u=t.display.view,l=0;l<u.length;l++)if(i-=u[l].size,i<0)return l}function dn(t,i,u,l){i==null&&(i=t.doc.first),u==null&&(u=t.doc.first+t.doc.size),l||(l=0);var c=t.display;if(l&&u<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>i)&&(c.updateLineNumbers=i),t.curOp.viewChanged=!0,i>=c.viewTo)hi&&lr(t.doc,i)<c.viewTo&&Fi(t);else if(u<=c.viewFrom)hi&&bu(t.doc,u+l)>c.viewFrom?Fi(t):(c.viewFrom+=l,c.viewTo+=l);else if(i<=c.viewFrom&&u>=c.viewTo)Fi(t);else if(i<=c.viewFrom){var y=Yo(t,u,u+l,1);y?(c.view=c.view.slice(y.index),c.viewFrom=y.lineN,c.viewTo+=l):Fi(t)}else if(u>=c.viewTo){var w=Yo(t,i,i,-1);w?(c.view=c.view.slice(0,w.index),c.viewTo=w.lineN):Fi(t)}else{var O=Yo(t,i,i,-1),R=Yo(t,u,u+l,1);O&&R?(c.view=c.view.slice(0,O.index).concat(Ka(t,O.lineN,R.lineN)).concat(c.view.slice(R.index)),c.viewTo+=l):Fi(t)}var V=c.externalMeasured;V&&(u<V.lineN?V.lineN+=l:i<V.lineN+V.size&&(c.externalMeasured=null))}function ki(t,i,u){t.curOp.viewChanged=!0;var l=t.display,c=t.display.externalMeasured;if(c&&i>=c.lineN&&i<c.lineN+c.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var y=l.view[Zi(t,i)];if(y.node!=null){var w=y.changes||(y.changes=[]);Ce(w,u)==-1&&w.push(u)}}}function Fi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Yo(t,i,u,l){var c=Zi(t,i),y,w=t.display.view;if(!hi||u==t.doc.first+t.doc.size)return{index:c,lineN:u};for(var O=t.display.viewFrom,R=0;R<c;R++)O+=w[R].size;if(O!=i){if(l>0){if(c==w.length-1)return null;y=O+w[c].size-i,c++}else y=O-i;i+=y,u+=y}for(;lr(t.doc,u)!=u;){if(c==(l<0?0:w.length-1))return null;u+=l*w[c-(l<0?1:0)].size,c+=l}return{index:c,lineN:u}}function ju(t,i,u){var l=t.display,c=l.view;c.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=Ka(t,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=Ka(t,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Zi(t,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(Ka(t,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Zi(t,u)))),l.viewTo=u}function Vu(t){for(var i=t.display.view,u=0,l=0;l<i.length;l++){var c=i[l];!c.hidden&&(!c.node||c.changes)&&++u}return u}function Za(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Uu(t,i){i===void 0&&(i=!0);var u=t.doc,l={},c=l.cursors=document.createDocumentFragment(),y=l.selection=document.createDocumentFragment(),w=t.options.$customCursor;w&&(i=!0);for(var O=0;O<u.sel.ranges.length;O++)if(!(!i&&O==u.sel.primIndex)){var R=u.sel.ranges[O];if(!(R.from().line>=t.display.viewTo||R.to().line<t.display.viewFrom)){var V=R.empty();if(w){var oe=w(t,R);oe&&Qs(t,oe,c)}else(V||t.options.showCursorWhenSelecting)&&Qs(t,R.head,c);V||zc(t,R,y)}}return l}function Qs(t,i,u){var l=or(t,i,"div",null,null,!t.options.singleCursorHeightPerLine),c=u.appendChild(q("div","\xA0","CodeMirror-cursor"));if(c.style.left=l.left+"px",c.style.top=l.top+"px",c.style.height=Math.max(0,l.bottom-l.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var y=Go(t,i,"div",null,null),w=y.right-y.left;c.style.width=(w>0?w:t.defaultCharWidth())+"px"}if(l.other){var O=u.appendChild(q("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));O.style.display="",O.style.left=l.other.left+"px",O.style.top=l.other.top+"px",O.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Jo(t,i){return t.top-i.top||t.left-i.left}function zc(t,i,u){var l=t.display,c=t.doc,y=document.createDocumentFragment(),w=Wo(t.display),O=w.left,R=Math.max(l.sizerWidth,Ki(t)-l.sizer.offsetLeft)-w.right,V=c.direction=="ltr";function oe(Je,qe,ht,dt){qe<0&&(qe=0),qe=Math.round(qe),dt=Math.round(dt),y.appendChild(q("div",null,"CodeMirror-selected","position: absolute; left: "+Je+`px;
18
- top: `+qe+"px; width: "+(ht==null?R-Je:ht)+`px;
19
- height: `+(dt-qe)+"px"))}function ce(Je,qe,ht){var dt=ot(c,Je),Mt=dt.text.length,tr,Tr;function wt(Ar,Hr){return Go(t,M(Je,Ar),"div",dt,Hr)}function xn(Ar,Hr,zr){var Pr=Ys(t,dt,null,Ar),Cr=Hr=="ltr"==(zr=="after")?"left":"right",gr=zr=="after"?Pr.begin:Pr.end-(/\s/.test(dt.text.charAt(Pr.end-1))?2:1);return wt(gr,Cr)[Cr]}var sn=nt(dt,c.direction);return Ot(sn,qe||0,ht==null?Mt:ht,function(Ar,Hr,zr,Pr){var Cr=zr=="ltr",gr=wt(Ar,Cr?"left":"right"),hn=wt(Hr-1,Cr?"right":"left"),Ba=qe==null&&Ar==0,Si=ht==null&&Hr==Mt,Nr=Pr==0,Mn=!sn||Pr==sn.length-1;if(hn.top-gr.top<=3){var Dr=(V?Ba:Si)&&Nr,Nl=(V?Si:Ba)&&Mn,wi=Dr?O:(Cr?gr:hn).left,ji=Nl?R:(Cr?hn:gr).right;oe(wi,gr.top,ji-wi,gr.bottom)}else{var Jn,Qr,Nn,Dl;Cr?(Jn=V&&Ba&&Nr?O:gr.left,Qr=V?R:xn(Ar,zr,"before"),Nn=V?O:xn(Hr,zr,"after"),Dl=V&&Si&&Mn?R:hn.right):(Jn=V?xn(Ar,zr,"before"):O,Qr=!V&&Ba&&Nr?R:gr.right,Nn=!V&&Si&&Mn?O:hn.left,Dl=V?xn(Hr,zr,"after"):R),oe(Jn,gr.top,Qr-Jn,gr.bottom),gr.bottom<hn.top&&oe(O,gr.bottom,null,hn.top),oe(Nn,hn.top,Dl-Nn,hn.bottom)}(!tr||Jo(gr,tr)<0)&&(tr=gr),Jo(hn,tr)<0&&(tr=hn),(!Tr||Jo(gr,Tr)<0)&&(Tr=gr),Jo(hn,Tr)<0&&(Tr=hn)}),{start:tr,end:Tr}}var me=i.from(),he=i.to();if(me.line==he.line)ce(me.line,me.ch,he.ch);else{var Te=ot(c,me.line),Le=ot(c,he.line),ze=yn(Te)==yn(Le),Ye=ce(me.line,me.ch,ze?Te.text.length+1:null).end,Qe=ce(he.line,ze?0:null,he.ch).start;ze&&(Ye.top<Qe.top-2?(oe(Ye.right,Ye.top,null,Ye.bottom),oe(O,Qe.top,Qe.left,Qe.bottom)):oe(Ye.right,Ye.top,Qe.left-Ye.right,Ye.bottom)),Ye.bottom<Qe.top&&oe(O,Ye.bottom,null,Qe.top)}u.appendChild(y)}function Xo(t){if(!!t.state.focused){var i=t.display;clearInterval(i.blinker);var u=!0;i.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?i.blinker=setInterval(function(){t.hasFocus()||_i(t),i.cursorDiv.style.visibility=(u=!u)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Zs(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||Zo(t))}function Qo(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&_i(t))},100)}function Zo(t,i){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Ke(t,"focus",t,i),t.state.focused=!0,Ne(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),U&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Xo(t))}function _i(t,i){t.state.delayingBlurEvent||(t.state.focused&&(Ke(t,"blur",t,i),t.state.focused=!1,z(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function _o(t){for(var i=t.display,u=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),c=i.lineDiv.getBoundingClientRect().top,y=0,w=0;w<i.view.length;w++){var O=i.view[w],R=t.options.lineWrapping,V=void 0,oe=0;if(!O.hidden){if(c+=O.line.height,E&&F<8){var ce=O.node.offsetTop+O.node.offsetHeight;V=ce-u,u=ce}else{var me=O.node.getBoundingClientRect();V=me.bottom-me.top,!R&&O.text.firstChild&&(oe=O.text.firstChild.getBoundingClientRect().right-me.left-1)}var he=O.line.height-V;if((he>.005||he<-.005)&&(c<l&&(y-=he),cn(O.line,V),Wu(O.line),O.rest))for(var Te=0;Te<O.rest.length;Te++)Wu(O.rest[Te]);if(oe>t.display.sizerWidth){var Le=Math.ceil(oe/Xi(t.display));Le>t.display.maxLineLength&&(t.display.maxLineLength=Le,t.display.maxLine=O.line,t.display.maxLineChanged=!0)}}}Math.abs(y)>2&&(i.scroller.scrollTop+=y)}function Wu(t){if(t.widgets)for(var i=0;i<t.widgets.length;++i){var u=t.widgets[i],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function qo(t,i,u){var l=u&&u.top!=null?Math.max(0,u.top):t.scroller.scrollTop;l=Math.floor(l-Vs(t));var c=u&&u.bottom!=null?u.bottom:l+t.wrapper.clientHeight,y=di(i,l),w=di(i,c);if(u&&u.ensure){var O=u.ensure.from.line,R=u.ensure.to.line;O<y?(y=O,w=di(i,qn(ot(i,O))+t.wrapper.clientHeight)):Math.min(R,i.lastLine())>=w&&(y=di(i,qn(ot(i,R))-t.wrapper.clientHeight),w=R)}return{from:y,to:Math.max(w,y+1)}}function Hu(t,i){if(!at(t,"scrollCursorIntoView")){var u=t.display,l=u.sizer.getBoundingClientRect(),c=null,y=u.wrapper.ownerDocument;if(i.top+l.top<0?c=!0:i.bottom+l.top>(y.defaultView.innerHeight||y.documentElement.clientHeight)&&(c=!1),c!=null&&!P){var w=q("div","\u200B",null,`position: absolute;
20
- top: `+(i.top-u.viewOffset-Vs(t.display))+`px;
21
- height: `+(i.bottom-i.top+Kn(t)+u.barHeight)+`px;
22
- left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");t.display.lineSpace.appendChild(w),w.scrollIntoView(c),t.display.lineSpace.removeChild(w)}}}function Gc(t,i,u,l){l==null&&(l=0);var c;!t.options.lineWrapping&&i==u&&(u=i.sticky=="before"?M(i.line,i.ch+1,"before"):i,i=i.ch?M(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var y=0;y<5;y++){var w=!1,O=or(t,i),R=!u||u==i?O:or(t,u);c={left:Math.min(O.left,R.left),top:Math.min(O.top,R.top)-l,right:Math.max(O.left,R.left),bottom:Math.max(O.bottom,R.bottom)+l};var V=_a(t,c),oe=t.doc.scrollTop,ce=t.doc.scrollLeft;if(V.scrollTop!=null&&(to(t,V.scrollTop),Math.abs(t.doc.scrollTop-oe)>1&&(w=!0)),V.scrollLeft!=null&&(qi(t,V.scrollLeft),Math.abs(t.doc.scrollLeft-ce)>1&&(w=!0)),!w)break}return c}function zu(t,i){var u=_a(t,i);u.scrollTop!=null&&to(t,u.scrollTop),u.scrollLeft!=null&&qi(t,u.scrollLeft)}function _a(t,i){var u=t.display,l=ba(t.display);i.top<0&&(i.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:u.scroller.scrollTop,y=Ws(t),w={};i.bottom-i.top>y&&(i.bottom=i.top+y);var O=t.doc.height+Us(u),R=i.top<l,V=i.bottom>O-l;if(i.top<c)w.scrollTop=R?0:i.top;else if(i.bottom>c+y){var oe=Math.min(i.top,(V?O:i.bottom)-y);oe!=c&&(w.scrollTop=oe)}var ce=t.options.fixedGutter?0:u.gutters.offsetWidth,me=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:u.scroller.scrollLeft-ce,he=Ki(t)-u.gutters.offsetWidth,Te=i.right-i.left>he;return Te&&(i.right=i.left+he),i.left<10?w.scrollLeft=0:i.left<me?w.scrollLeft=Math.max(0,i.left+ce-(Te?0:10)):i.right>he+me-3&&(w.scrollLeft=i.right+(Te?0:10)-he),w}function _s(t,i){i!=null&&(eo(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+i)}function xa(t){eo(t);var i=t.getCursor();t.curOp.scrollToPos={from:i,to:i,margin:t.options.cursorScrollMargin}}function qa(t,i,u){(i!=null||u!=null)&&eo(t),i!=null&&(t.curOp.scrollLeft=i),u!=null&&(t.curOp.scrollTop=u)}function $c(t,i){eo(t),t.curOp.scrollToPos=i}function eo(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var u=Gs(t,i.from),l=Gs(t,i.to);Gu(t,u,l,i.margin)}}function Gu(t,i,u,l){var c=_a(t,{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});qa(t,c.scrollLeft,c.scrollTop)}function to(t,i){Math.abs(t.doc.scrollTop-i)<2||(p||tl(t,{top:i}),$u(t,i,!0),p&&tl(t),no(t,100))}function $u(t,i,u){i=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,i)),!(t.display.scroller.scrollTop==i&&!u)&&(t.doc.scrollTop=i,t.display.scrollbars.setScrollTop(i),t.display.scroller.scrollTop!=i&&(t.display.scroller.scrollTop=i))}function qi(t,i,u,l){i=Math.max(0,Math.min(i,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((u?i==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-i)<2)&&!l)&&(t.doc.scrollLeft=i,_u(t),t.display.scroller.scrollLeft!=i&&(t.display.scroller.scrollLeft=i),t.display.scrollbars.setScrollLeft(i))}function Sa(t){var i=t.display,u=i.gutters.offsetWidth,l=Math.round(t.doc.height+Us(t.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:t.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+Kn(t)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var ea=function(t,i,u){this.cm=u;var l=this.vert=q("div",[q("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=q("div",[q("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=c.tabIndex=-1,t(l),t(c),ue(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ue(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,E&&F<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ea.prototype.update=function(t){var i=t.scrollWidth>t.clientWidth+1,u=t.scrollHeight>t.clientHeight+1,l=t.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var c=t.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+c)+"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=t.barLeft+"px";var y=t.viewWidth-t.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+y)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:i?l:0}},ea.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ea.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ea.prototype.zeroWidthHack=function(){var t=k&&!$?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Pe,this.disableVert=new Pe},ea.prototype.enableZeroWidthBar=function(t,i,u){t.style.visibility="";function l(){var c=t.getBoundingClientRect(),y=u=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);y!=t?t.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},ea.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var ro=function(){};ro.prototype.update=function(){return{bottom:0,right:0}},ro.prototype.setScrollLeft=function(){},ro.prototype.setScrollTop=function(){},ro.prototype.clear=function(){};function wa(t,i){i||(i=Sa(t));var u=t.display.barWidth,l=t.display.barHeight;qs(t,i);for(var c=0;c<4&&u!=t.display.barWidth||l!=t.display.barHeight;c++)u!=t.display.barWidth&&t.options.lineWrapping&&_o(t),qs(t,Sa(t)),u=t.display.barWidth,l=t.display.barHeight}function qs(t,i){var u=t.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&&t.options.coverGutterNextToScrollbar&&t.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 Ku={native:ea,null:ro};function Yu(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&z(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Ku[t.options.scrollbarStyle](function(i){t.display.wrapper.insertBefore(i,t.display.scrollbarFiller),ue(i,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,u){u=="horizontal"?qi(t,i):to(t,i)},t),t.display.scrollbars.addClass&&Ne(t.display.wrapper,t.display.scrollbars.addClass)}var Kc=0;function Ri(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++Kc,markArrays:null},Nc(t.curOp)}function mi(t){var i=t.curOp;i&&Dc(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Li(u)})}function Li(t){for(var i=t.ops,u=0;u<i.length;u++)es(i[u]);for(var l=0;l<i.length;l++)Ju(i[l]);for(var c=0;c<i.length;c++)Xu(i[c]);for(var y=0;y<i.length;y++)ts(i[y]);for(var w=0;w<i.length;w++)el(i[w])}function es(t){var i=t.cm,u=i.display;Zu(i),t.updateMaxLine&&vi(i),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<u.viewFrom||t.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&i.options.lineWrapping,t.update=t.mustUpdate&&new io(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Ju(t){t.updatedDisplay=t.mustUpdate&&an(t.cm,t.update)}function Xu(t){var i=t.cm,u=i.display;t.updatedDisplay&&_o(i),t.barMeasure=Sa(i),u.maxLineChanged&&!i.options.lineWrapping&&(t.adjustWidthTo=Pu(i,u.maxLine,u.maxLine.text.length).left+3,i.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+t.adjustWidthTo+Kn(i)+i.display.barWidth),t.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+t.adjustWidthTo-Ki(i))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=u.input.prepareSelection())}function ts(t){var i=t.cm;t.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<i.doc.scrollLeft&&qi(i,Math.min(i.display.scroller.scrollLeft,t.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=t.focus&&t.focus==Ie(_e(i));t.preparedSelection&&i.display.input.showSelection(t.preparedSelection,u),(t.updatedDisplay||t.startHeight!=i.doc.height)&&wa(i,t.barMeasure),t.updatedDisplay&&rs(i,t.barMeasure),t.selectionChanged&&Xo(i),i.state.focused&&t.updateInput&&i.display.input.reset(t.typing),u&&Zs(t.cm)}function el(t){var i=t.cm,u=i.display,l=i.doc;if(t.updatedDisplay&&ra(i,t.update),u.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),t.scrollTop!=null&&$u(i,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&qi(i,t.scrollLeft,!0,!0),t.scrollToPos){var c=Gc(i,st(l,t.scrollToPos.from),st(l,t.scrollToPos.to),t.scrollToPos.margin);Hu(i,c)}var y=t.maybeHiddenMarkers,w=t.maybeUnhiddenMarkers;if(y)for(var O=0;O<y.length;++O)y[O].lines.length||Ke(y[O],"hide");if(w)for(var R=0;R<w.length;++R)w[R].lines.length&&Ke(w[R],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),t.changeObjs&&Ke(i,"changes",i,t.changeObjs),t.update&&t.update.finish()}function bn(t,i){if(t.curOp)return i();Ri(t);try{return i()}finally{mi(t)}}function Or(t,i){return function(){if(t.curOp)return i.apply(t,arguments);Ri(t);try{return i.apply(t,arguments)}finally{mi(t)}}}function nn(t){return function(){if(this.curOp)return t.apply(this,arguments);Ri(this);try{return t.apply(this,arguments)}finally{mi(this)}}}function Mr(t){return function(){var i=this.cm;if(!i||i.curOp)return t.apply(this,arguments);Ri(i);try{return t.apply(this,arguments)}finally{mi(i)}}}function no(t,i){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(i,De(Qu,t))}function Qu(t){var i=t.doc;if(!(i.highlightFrontier>=t.display.viewTo)){var u=+new Date+t.options.workTime,l=za(t,i.highlightFrontier),c=[];i.iter(l.line,Math.min(i.first+i.size,t.display.viewTo+500),function(y){if(l.line>=t.display.viewFrom){var w=y.styles,O=y.text.length>t.options.maxHighlightLength?kn(i.mode,l.state):null,R=uu(t,y,l,!0);O&&(l.state=O),y.styles=R.styles;var V=y.styleClasses,oe=R.classes;oe?y.styleClasses=oe:V&&(y.styleClasses=null);for(var ce=!w||w.length!=y.styles.length||V!=oe&&(!V||!oe||V.bgClass!=oe.bgClass||V.textClass!=oe.textClass),me=0;!ce&&me<w.length;++me)ce=w[me]!=y.styles[me];ce&&c.push(l.line),y.stateAfter=l.save(),l.nextLine()}else y.text.length<=t.options.maxHighlightLength&&jo(t,y.text,l),y.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return no(t,t.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),c.length&&bn(t,function(){for(var y=0;y<c.length;y++)ki(t,c[y],"text")})}}var io=function(t,i,u){var l=t.display;this.viewport=i,this.visible=qo(l,t.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Ki(t),this.force=u,this.dims=Js(t),this.events=[]};io.prototype.signal=function(t,i){Rt(t,i)&&this.events.push(arguments)},io.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ke.apply(null,this.events[t])};function Zu(t){var i=t.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Kn(t)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Kn(t)+"px",i.scrollbarsClipped=!0)}function ri(t){if(t.hasFocus())return null;var i=Ie(_e(t));if(!i||!ve(t.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=mt(t).getSelection();l.anchorNode&&l.extend&&ve(t.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function ta(t){if(!(!t||!t.activeElt||t.activeElt==Ie(t.activeElt.ownerDocument))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ve(document.body,t.anchorNode)&&ve(document.body,t.focusNode))){var i=t.activeElt.ownerDocument,u=i.defaultView.getSelection(),l=i.createRange();l.setEnd(t.anchorNode,t.anchorOffset),l.collapse(!1),u.removeAllRanges(),u.addRange(l),u.extend(t.focusNode,t.focusOffset)}}function an(t,i){var u=t.display,l=t.doc;if(i.editorIsHidden)return Fi(t),!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&&Vu(t)==0)return!1;nl(t)&&(Fi(t),i.dims=Js(t));var c=l.first+l.size,y=Math.max(i.visible.from-t.options.viewportMargin,l.first),w=Math.min(c,i.visible.to+t.options.viewportMargin);u.viewFrom<y&&y-u.viewFrom<20&&(y=Math.max(l.first,u.viewFrom)),u.viewTo>w&&u.viewTo-w<20&&(w=Math.min(c,u.viewTo)),hi&&(y=lr(t.doc,y),w=bu(t.doc,w));var O=y!=u.viewFrom||w!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;ju(t,y,w),u.viewOffset=qn(ot(t.doc,u.viewFrom)),t.display.mover.style.top=u.viewOffset+"px";var R=Vu(t);if(!O&&R==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var V=ri(t);return R>4&&(u.lineDiv.style.display="none"),Yc(t,u.updateLineNumbers,i.dims),R>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,ta(V),fe(u.cursorDiv),fe(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,O&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,no(t,400)),u.updateLineNumbers=null,!0}function ra(t,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!t.options.lineWrapping||i.oldDisplayWidth==Ki(t)){if(u&&u.top!=null&&(u={top:Math.min(t.doc.height+Us(t.display)-Ws(t),u.top)}),i.visible=qo(t.display,t.doc,u),i.visible.from>=t.display.viewFrom&&i.visible.to<=t.display.viewTo)break}else l&&(i.visible=qo(t.display,t.doc,u));if(!an(t,i))break;_o(t);var c=Sa(t);Za(t),wa(t,c),rs(t,c),i.force=!1}i.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(i.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function tl(t,i){var u=new io(t,i);if(an(t,u)){_o(t),ra(t,u);var l=Sa(t);Za(t),wa(t,l),rs(t,l),u.finish()}}function Yc(t,i,u){var l=t.display,c=t.options.lineNumbers,y=l.lineDiv,w=y.firstChild;function O(Te){var Le=Te.nextSibling;return U&&k&&t.display.currentWheelTarget==Te?Te.style.display="none":Te.parentNode.removeChild(Te),Le}for(var R=l.view,V=l.viewFrom,oe=0;oe<R.length;oe++){var ce=R[oe];if(!ce.hidden)if(!ce.node||ce.node.parentNode!=y){var me=Vc(t,ce,V,u);y.insertBefore(me,w)}else{for(;w!=ce.node;)w=O(w);var he=c&&i!=null&&i<=V&&ce.lineNumber;ce.changes&&(Ce(ce.changes,"gutter")>-1&&(he=!1),Au(t,ce,V,u)),he&&(fe(ce.lineNumber),ce.lineNumber.appendChild(document.createTextNode(pi(t.options,V)))),w=ce.node.nextSibling}V+=ce.size}for(;w;)w=O(w)}function rl(t){var i=t.gutters.offsetWidth;t.sizer.style.marginLeft=i+"px",Rr(t,"gutterChanged",t)}function rs(t,i){t.display.sizer.style.minHeight=i.docHeight+"px",t.display.heightForcer.style.top=i.docHeight+"px",t.display.gutters.style.height=i.docHeight+t.display.barHeight+Kn(t)+"px"}function _u(t){var i=t.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!t.options.fixedGutter))){for(var l=Xs(i)-i.scroller.scrollLeft+t.doc.scrollLeft,c=i.gutters.offsetWidth,y=l+"px",w=0;w<u.length;w++)if(!u[w].hidden){t.options.fixedGutter&&(u[w].gutter&&(u[w].gutter.style.left=y),u[w].gutterBackground&&(u[w].gutterBackground.style.left=y));var O=u[w].alignable;if(O)for(var R=0;R<O.length;R++)O[R].style.left=y}t.options.fixedGutter&&(i.gutters.style.left=l+c+"px")}}function nl(t){if(!t.options.lineNumbers)return!1;var i=t.doc,u=pi(t.options,i.first+i.size-1),l=t.display;if(u.length!=l.lineNumChars){var c=l.measure.appendChild(q("div",[q("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),y=c.firstChild.offsetWidth,w=c.offsetWidth-y;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(y,l.lineGutter.offsetWidth-w)+1,l.lineNumWidth=l.lineNumInnerWidth+w,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",rl(t.display),!0}return!1}function ns(t,i){for(var u=[],l=!1,c=0;c<t.length;c++){var y=t[c],w=null;if(typeof y!="string"&&(w=y.style,y=y.className),y=="CodeMirror-linenumbers")if(i)l=!0;else continue;u.push({className:y,style:w})}return i&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function na(t){var i=t.gutters,u=t.gutterSpecs;fe(i),t.lineGutter=null;for(var l=0;l<u.length;++l){var c=u[l],y=c.className,w=c.style,O=i.appendChild(q("div",null,"CodeMirror-gutter "+y));w&&(O.style.cssText=w),y=="CodeMirror-linenumbers"&&(t.lineGutter=O,O.style.width=(t.lineNumWidth||1)+"px")}i.style.display=u.length?"":"none",rl(t)}function ao(t){na(t.display),dn(t),_u(t)}function qu(t,i,u,l){var c=this;this.input=u,c.scrollbarFiller=q("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=q("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=Z("div",null,"CodeMirror-code"),c.selectionDiv=q("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=q("div",null,"CodeMirror-cursors"),c.measure=q("div",null,"CodeMirror-measure"),c.lineMeasure=q("div",null,"CodeMirror-measure"),c.lineSpace=Z("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var y=Z("div",[c.lineSpace],"CodeMirror-lines");c.mover=q("div",[y],null,"position: relative"),c.sizer=q("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=q("div",null,null,"position: absolute; height: "+Ge+"px; width: 1px;"),c.gutters=q("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=q("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=q("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),Q&&le>=105&&(c.wrapper.style.clipPath="inset(0px)"),c.wrapper.setAttribute("translate","no"),E&&F<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!U&&!(p&&C)&&(c.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(c.wrapper):t(c.wrapper)),c.viewFrom=c.viewTo=i.first,c.reportedViewFrom=c.reportedViewTo=i.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=ns(l.gutters,l.lineNumbers),na(c),u.init(c)}var pt=0,Rn=null;E?Rn=-.53:p?Rn=15:Q?Rn=-.7:ne&&(Rn=-1/3);function il(t){var i=t.wheelDeltaX,u=t.wheelDeltaY;return i==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(i=t.detail),u==null&&t.detail&&t.axis==t.VERTICAL_AXIS?u=t.detail:u==null&&(u=t.wheelDelta),{x:i,y:u}}function Mi(t){var i=il(t);return i.x*=Rn,i.y*=Rn,i}function al(t,i){Q&&le==102&&(t.display.chromeScrollHack==null?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var u=il(i),l=u.x,c=u.y,y=Rn;i.deltaMode===0&&(l=i.deltaX,c=i.deltaY,y=1);var w=t.display,O=w.scroller,R=O.scrollWidth>O.clientWidth,V=O.scrollHeight>O.clientHeight;if(!!(l&&R||c&&V)){if(c&&k&&U){e:for(var oe=i.target,ce=w.view;oe!=O;oe=oe.parentNode)for(var me=0;me<ce.length;me++)if(ce[me].node==oe){t.display.currentWheelTarget=oe;break e}}if(l&&!p&&!K&&y!=null){c&&V&&to(t,Math.max(0,O.scrollTop+c*y)),qi(t,Math.max(0,O.scrollLeft+l*y)),(!c||c&&V)&&Lt(i),w.wheelStartX=null;return}if(c&&y!=null){var he=c*y,Te=t.doc.scrollTop,Le=Te+w.wrapper.clientHeight;he<0?Te=Math.max(0,Te+he-50):Le=Math.min(t.doc.height,Le+he+50),tl(t,{top:Te,bottom:Le})}pt<20&&i.deltaMode!==0&&(w.wheelStartX==null?(w.wheelStartX=O.scrollLeft,w.wheelStartY=O.scrollTop,w.wheelDX=l,w.wheelDY=c,setTimeout(function(){if(w.wheelStartX!=null){var ze=O.scrollLeft-w.wheelStartX,Ye=O.scrollTop-w.wheelStartY,Qe=Ye&&w.wheelDY&&Ye/w.wheelDY||ze&&w.wheelDX&&ze/w.wheelDX;w.wheelStartX=w.wheelStartY=null,Qe&&(Rn=(Rn*pt+Qe)/(pt+1),++pt)}},200)):(w.wheelDX+=l,w.wheelDY+=c))}}var Ur=function(t,i){this.ranges=t,this.primIndex=i};Ur.prototype.primary=function(){return this.ranges[this.primIndex]},Ur.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var u=this.ranges[i],l=t.ranges[i];if(!Fe(u.anchor,l.anchor)||!Fe(u.head,l.head))return!1}return!0},Ur.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new Vt(He(this.ranges[i].anchor),He(this.ranges[i].head));return new Ur(t,this.primIndex)},Ur.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Ur.prototype.contains=function(t,i){i||(i=t);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(ae(i,l.from())>=0&&ae(t,l.to())<=0)return u}return-1};var Vt=function(t,i){this.anchor=t,this.head=i};Vt.prototype.from=function(){return Nt(this.anchor,this.head)},Vt.prototype.to=function(){return St(this.anchor,this.head)},Vt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function qt(t,i,u){var l=t&&t.options.selectionsMayTouch,c=i[u];i.sort(function(me,he){return ae(me.from(),he.from())}),u=Ce(i,c);for(var y=1;y<i.length;y++){var w=i[y],O=i[y-1],R=ae(O.to(),w.from());if(l&&!w.empty()?R>0:R>=0){var V=Nt(O.from(),w.from()),oe=St(O.to(),w.to()),ce=O.empty()?w.from()==w.head:O.from()==O.head;y<=u&&--u,i.splice(--y,2,new Vt(ce?oe:V,ce?V:oe))}}return new Ur(i,u)}function Yn(t,i){return new Ur([new Vt(t,i||t)],0)}function ni(t){return t.text?M(t.from.line+t.text.length-1,lt(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function ef(t,i){if(ae(t,i.from)<0)return t;if(ae(t,i.to)<=0)return ni(i);var u=t.line+i.text.length-(i.to.line-i.from.line)-1,l=t.ch;return t.line==i.to.line&&(l+=ni(i).ch-i.to.ch),M(u,l)}function ol(t,i){for(var u=[],l=0;l<t.sel.ranges.length;l++){var c=t.sel.ranges[l];u.push(new Vt(ef(c.anchor,i),ef(c.head,i)))}return qt(t.cm,u,t.sel.primIndex)}function tf(t,i,u){return t.line==i.line?M(u.line,t.ch-i.ch+u.ch):M(u.line+(t.line-i.line),t.ch)}function Jc(t,i,u){for(var l=[],c=M(t.first,0),y=c,w=0;w<i.length;w++){var O=i[w],R=tf(O.from,c,y),V=tf(ni(O),c,y);if(c=O.to,y=V,u=="around"){var oe=t.sel.ranges[w],ce=ae(oe.head,oe.anchor)<0;l[w]=new Vt(ce?V:R,ce?R:V)}else l[w]=new Vt(R,R)}return new Ur(l,t.sel.primIndex)}function sl(t){t.doc.mode=fn(t.options,t.doc.modeOption),Aa(t)}function Aa(t){t.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,no(t,100),t.state.modeGen++,t.curOp&&dn(t)}function rf(t,i){return i.from.ch==0&&i.to.ch==0&&lt(i.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function ll(t,i,u,l){function c(Qe){return u?u[Qe]:null}function y(Qe,Je,qe){Ds(Qe,Je,qe,l),Rr(Qe,"change",Qe,i)}function w(Qe,Je){for(var qe=[],ht=Qe;ht<Je;++ht)qe.push(new Ti(V[ht],c(ht),l));return qe}var O=i.from,R=i.to,V=i.text,oe=ot(t,O.line),ce=ot(t,R.line),me=lt(V),he=c(V.length-1),Te=R.line-O.line;if(i.full)t.insert(0,w(0,V.length)),t.remove(V.length,t.size-V.length);else if(rf(t,i)){var Le=w(0,V.length-1);y(ce,ce.text,he),Te&&t.remove(O.line,Te),Le.length&&t.insert(O.line,Le)}else if(oe==ce)if(V.length==1)y(oe,oe.text.slice(0,O.ch)+me+oe.text.slice(R.ch),he);else{var ze=w(1,V.length-1);ze.push(new Ti(me+oe.text.slice(R.ch),he,l)),y(oe,oe.text.slice(0,O.ch)+V[0],c(0)),t.insert(O.line+1,ze)}else if(V.length==1)y(oe,oe.text.slice(0,O.ch)+V[0]+ce.text.slice(R.ch),c(0)),t.remove(O.line+1,Te);else{y(oe,oe.text.slice(0,O.ch)+V[0],c(0)),y(ce,me+ce.text.slice(R.ch),he);var Ye=w(1,V.length-1);Te>1&&t.remove(O.line+1,Te-1),t.insert(O.line+1,Ye)}Rr(t,"change",t,i)}function Ni(t,i,u){function l(c,y,w){if(c.linked)for(var O=0;O<c.linked.length;++O){var R=c.linked[O];if(R.doc!=y){var V=w&&R.sharedHist;u&&!V||(i(R.doc,V),l(R.doc,c,V))}}}l(t,null,!0)}function nf(t,i){if(i.cm)throw new Error("This document is already in use.");t.doc=i,i.cm=t,Ko(t),sl(t),ia(t),t.options.direction=i.direction,t.options.lineWrapping||vi(t),t.options.mode=i.modeOption,dn(t)}function ia(t){(t.doc.direction=="rtl"?Ne:z)(t.display.lineDiv,"CodeMirror-rtl")}function Xc(t){bn(t,function(){ia(t),dn(t)})}function oo(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function ul(t,i){var u={from:He(i.from),to:ni(i),text:ci(t,i.from,i.to)};return is(t,u,i.from.line,i.to.line+1),Ni(t,function(l){return is(l,u,i.from.line,i.to.line+1)},!0),u}function af(t){for(;t.length;){var i=lt(t);if(i.ranges)t.pop();else break}}function Qc(t,i){if(i)return af(t.done),lt(t.done);if(t.done.length&&!lt(t.done).ranges)return lt(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),lt(t.done)}function of(t,i,u,l){var c=t.history;c.undone.length=0;var y=+new Date,w,O;if((c.lastOp==l||c.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&c.lastModTime>y-(t.cm?t.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(w=Qc(c,c.lastOp==l)))O=lt(w.changes),ae(i.from,i.to)==0&&ae(i.from,O.to)==0?O.to=ni(i):w.changes.push(ul(t,i));else{var R=lt(c.done);for((!R||!R.ranges)&&so(t.sel,c.done),w={changes:[ul(t,i)],generation:c.generation},c.done.push(w);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(u),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=y,c.lastOp=c.lastSelOp=l,c.lastOrigin=c.lastSelOrigin=i.origin,O||Ke(t,"historyAdded")}function sf(t,i,u,l){var c=i.charAt(0);return c=="*"||c=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function lf(t,i,u,l){var c=t.history,y=l&&l.origin;u==c.lastSelOp||y&&c.lastSelOrigin==y&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==y||sf(t,y,lt(c.done),i))?c.done[c.done.length-1]=i:so(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=y,c.lastSelOp=u,l&&l.clearRedo!==!1&&af(c.undone)}function so(t,i){var u=lt(i);u&&u.ranges&&u.equals(t)||i.push(t)}function is(t,i,u,l){var c=i["spans_"+t.id],y=0;t.iter(Math.max(t.first,u),Math.min(t.first+t.size,l),function(w){w.markedSpans&&((c||(c=i["spans_"+t.id]={}))[y]=w.markedSpans),++y})}function Zc(t){if(!t)return null;for(var i,u=0;u<t.length;++u)t[u].marker.explicitlyCleared?i||(i=t.slice(0,u)):i&&i.push(t[u]);return i?i.length?i:null:t}function lo(t,i){var u=i["spans_"+t.id];if(!u)return null;for(var l=[],c=0;c<i.text.length;++c)l.push(Zc(u[c]));return l}function uf(t,i){var u=lo(t,i),l=Ls(t,i);if(!u)return l;if(!l)return u;for(var c=0;c<u.length;++c){var y=u[c],w=l[c];if(y&&w){e:for(var O=0;O<w.length;++O){for(var R=w[O],V=0;V<y.length;++V)if(y[V].marker==R.marker)continue e;y.push(R)}}else w&&(u[c]=w)}return u}function Ca(t,i,u){for(var l=[],c=0;c<t.length;++c){var y=t[c];if(y.ranges){l.push(u?Ur.prototype.deepCopy.call(y):y);continue}var w=y.changes,O=[];l.push({changes:O});for(var R=0;R<w.length;++R){var V=w[R],oe=void 0;if(O.push({from:V.from,to:V.to,text:V.text}),i)for(var ce in V)(oe=ce.match(/^spans_(\d+)$/))&&Ce(i,Number(oe[1]))>-1&&(lt(O)[ce]=V[ce],delete V[ce])}}return l}function fl(t,i,u,l){if(l){var c=t.anchor;if(u){var y=ae(i,c)<0;y!=ae(u,c)<0?(c=i,i=u):y!=ae(i,u)<0&&(i=u)}return new Vt(c,i)}else return new Vt(u||i,i)}function as(t,i,u,l,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),Wr(t,new Ur([fl(t.sel.primary(),i,u,c)],0),l)}function os(t,i,u){for(var l=[],c=t.cm&&(t.cm.display.shift||t.extend),y=0;y<t.sel.ranges.length;y++)l[y]=fl(t.sel.ranges[y],i[y],null,c);var w=qt(t.cm,l,t.sel.primIndex);Wr(t,w,u)}function cl(t,i,u,l){var c=t.sel.ranges.slice(0);c[i]=u,Wr(t,qt(t.cm,c,t.sel.primIndex),l)}function ff(t,i,u,l){Wr(t,Yn(i,u),l)}function _c(t,i,u){var l={ranges:i.ranges,update:function(c){this.ranges=[];for(var y=0;y<c.length;y++)this.ranges[y]=new Vt(st(t,c[y].anchor),st(t,c[y].head))},origin:u&&u.origin};return Ke(t,"beforeSelectionChange",t,l),t.cm&&Ke(t.cm,"beforeSelectionChange",t.cm,l),l.ranges!=i.ranges?qt(t.cm,l.ranges,l.ranges.length-1):i}function cf(t,i,u){var l=t.history.done,c=lt(l);c&&c.ranges?(l[l.length-1]=i,ss(t,i,u)):Wr(t,i,u)}function Wr(t,i,u){ss(t,i,u),lf(t,t.sel,t.cm?t.cm.curOp.id:NaN,u)}function ss(t,i,u){(Rt(t,"beforeSelectionChange")||t.cm&&Rt(t.cm,"beforeSelectionChange"))&&(i=_c(t,i,u));var l=u&&u.bias||(ae(i.primary().head,t.sel.primary().head)<0?-1:1);uo(t,pf(t,i,l,!0)),!(u&&u.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&xa(t.cm)}function uo(t,i){i.equals(t.sel)||(t.sel=i,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,bt(t.cm)),Rr(t,"cursorActivity",t))}function df(t){uo(t,pf(t,t.sel,null,!1))}function pf(t,i,u,l){for(var c,y=0;y<i.ranges.length;y++){var w=i.ranges[y],O=i.ranges.length==t.sel.ranges.length&&t.sel.ranges[y],R=ls(t,w.anchor,O&&O.anchor,u,l),V=w.head==w.anchor?R:ls(t,w.head,O&&O.head,u,l);(c||R!=w.anchor||V!=w.head)&&(c||(c=i.ranges.slice(0,y)),c[y]=new Vt(R,V))}return c?qt(t.cm,c,i.primIndex):i}function Ea(t,i,u,l,c){var y=ot(t,i.line);if(y.markedSpans)for(var w=0;w<y.markedSpans.length;++w){var O=y.markedSpans[w],R=O.marker,V="selectLeft"in R?!R.selectLeft:R.inclusiveLeft,oe="selectRight"in R?!R.selectRight:R.inclusiveRight;if((O.from==null||(V?O.from<=i.ch:O.from<i.ch))&&(O.to==null||(oe?O.to>=i.ch:O.to>i.ch))){if(c&&(Ke(R,"beforeCursorEnter"),R.explicitlyCleared))if(y.markedSpans){--w;continue}else break;if(!R.atomic)continue;if(u){var ce=R.find(l<0?1:-1),me=void 0;if((l<0?oe:V)&&(ce=dl(t,ce,-l,ce&&ce.line==i.line?y:null)),ce&&ce.line==i.line&&(me=ae(ce,u))&&(l<0?me<0:me>0))return Ea(t,ce,i,l,c)}var he=R.find(l<0?-1:1);return(l<0?V:oe)&&(he=dl(t,he,l,he.line==i.line?y:null)),he?Ea(t,he,i,l,c):null}}return i}function ls(t,i,u,l,c){var y=l||1,w=Ea(t,i,u,y,c)||!c&&Ea(t,i,u,y,!0)||Ea(t,i,u,-y,c)||!c&&Ea(t,i,u,-y,!0);return w||(t.cantEdit=!0,M(t.first,0))}function dl(t,i,u,l){return u<0&&i.ch==0?i.line>t.first?st(t,M(i.line-1)):null:u>0&&i.ch==(l||ot(t,i.line)).text.length?i.line<t.first+t.size-1?M(i.line+1,0):null:new M(i.line,i.ch+u)}function pl(t){t.setSelection(M(t.firstLine(),0),M(t.lastLine()),$e)}function hf(t,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(c,y,w,O){c&&(l.from=st(t,c)),y&&(l.to=st(t,y)),w&&(l.text=w),O!==void 0&&(l.origin=O)}),Ke(t,"beforeChange",t,l),t.cm&&Ke(t.cm,"beforeChange",t.cm,l),l.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function aa(t,i,u){if(t.cm){if(!t.cm.curOp)return Or(t.cm,aa)(t,i,u);if(t.cm.state.suppressEdits)return}if(!((Rt(t,"beforeChange")||t.cm&&Rt(t.cm,"beforeChange"))&&(i=hf(t,i,!0),!i))){var l=pu&&!u&&bp(t,i.from,i.to);if(l)for(var c=l.length-1;c>=0;--c)vf(t,{from:l[c].from,to:l[c].to,text:c?[""]:i.text,origin:i.origin});else vf(t,i)}}function vf(t,i){if(!(i.text.length==1&&i.text[0]==""&&ae(i.from,i.to)==0)){var u=ol(t,i);of(t,i,u,t.cm?t.cm.curOp.id:NaN),co(t,i,u,Ls(t,i));var l=[];Ni(t,function(c,y){!y&&Ce(l,c.history)==-1&&(Ta(c.history,i),l.push(c.history)),co(c,i,null,Ls(c,i))})}}function fo(t,i,u){var l=t.cm&&t.cm.state.suppressEdits;if(!(l&&!u)){for(var c=t.history,y,w=t.sel,O=i=="undo"?c.done:c.undone,R=i=="undo"?c.undone:c.done,V=0;V<O.length&&(y=O[V],!(u?y.ranges&&!y.equals(t.sel):!y.ranges));V++);if(V!=O.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(y=O.pop(),y.ranges){if(so(y,R),u&&!y.equals(t.sel)){Wr(t,y,{clearRedo:!1});return}w=y}else if(l){O.push(y);return}else break;var oe=[];so(w,R),R.push({changes:oe,generation:c.generation}),c.generation=y.generation||++c.maxGeneration;for(var ce=Rt(t,"beforeChange")||t.cm&&Rt(t.cm,"beforeChange"),me=function(Le){var ze=y.changes[Le];if(ze.origin=i,ce&&!hf(t,ze,!1))return O.length=0,{};oe.push(ul(t,ze));var Ye=Le?ol(t,ze):lt(O);co(t,ze,Ye,uf(t,ze)),!Le&&t.cm&&t.cm.scrollIntoView({from:ze.from,to:ni(ze)});var Qe=[];Ni(t,function(Je,qe){!qe&&Ce(Qe,Je.history)==-1&&(Ta(Je.history,ze),Qe.push(Je.history)),co(Je,ze,null,uf(Je,ze))})},he=y.changes.length-1;he>=0;--he){var Te=me(he);if(Te)return Te.v}}}}function Xr(t,i){if(i!=0&&(t.first+=i,t.sel=new Ur(xt(t.sel.ranges,function(c){return new Vt(M(c.anchor.line+i,c.anchor.ch),M(c.head.line+i,c.head.ch))}),t.sel.primIndex),t.cm)){dn(t.cm,t.first,t.first-i,i);for(var u=t.cm.display,l=u.viewFrom;l<u.viewTo;l++)ki(t.cm,l,"gutter")}}function co(t,i,u,l){if(t.cm&&!t.cm.curOp)return Or(t.cm,co)(t,i,u,l);if(i.to.line<t.first){Xr(t,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>t.lastLine())){if(i.from.line<t.first){var c=i.text.length-1-(t.first-i.from.line);Xr(t,c),i={from:M(t.first,0),to:M(i.to.line+c,i.to.ch),text:[lt(i.text)],origin:i.origin}}var y=t.lastLine();i.to.line>y&&(i={from:i.from,to:M(y,ot(t,y).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ci(t,i.from,i.to),u||(u=ol(t,i)),t.cm?qc(t.cm,i,l):ll(t,i,l),ss(t,u,$e),t.cantEdit&&ls(t,M(t.firstLine(),0))&&(t.cantEdit=!1)}}function qc(t,i,u){var l=t.doc,c=t.display,y=i.from,w=i.to,O=!1,R=y.line;t.options.lineWrapping||(R=zt(yn(ot(l,y.line))),l.iter(R,w.line+1,function(he){if(he==c.maxLine)return O=!0,!0})),l.sel.contains(i.from,i.to)>-1&&bt(t),ll(l,i,u,Bu(t)),t.options.lineWrapping||(l.iter(R,y.line+i.text.length,function(he){var Te=Gn(he);Te>c.maxLineLength&&(c.maxLine=he,c.maxLineLength=Te,c.maxLineChanged=!0,O=!1)}),O&&(t.curOp.updateMaxLine=!0)),Ac(l,y.line),no(t,400);var V=i.text.length-(w.line-y.line)-1;i.full?dn(t):y.line==w.line&&i.text.length==1&&!rf(t.doc,i)?ki(t,y.line,"text"):dn(t,y.line,w.line+1,V);var oe=Rt(t,"changes"),ce=Rt(t,"change");if(ce||oe){var me={from:y,to:w,text:i.text,removed:i.removed,origin:i.origin};ce&&Rr(t,"change",t,me),oe&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(me)}t.display.selForContextMenu=null}function Oa(t,i,u,l,c){var y;l||(l=u),ae(l,u)<0&&(y=[l,u],u=y[0],l=y[1]),typeof i=="string"&&(i=t.splitLines(i)),aa(t,{from:u,to:l,text:i,origin:c})}function gf(t,i,u,l){u<t.line?t.line+=l:i<t.line&&(t.line=i,t.ch=0)}function mf(t,i,u,l){for(var c=0;c<t.length;++c){var y=t[c],w=!0;if(y.ranges){y.copied||(y=t[c]=y.deepCopy(),y.copied=!0);for(var O=0;O<y.ranges.length;O++)gf(y.ranges[O].anchor,i,u,l),gf(y.ranges[O].head,i,u,l);continue}for(var R=0;R<y.changes.length;++R){var V=y.changes[R];if(u<V.from.line)V.from=M(V.from.line+l,V.from.ch),V.to=M(V.to.line+l,V.to.ch);else if(i<=V.to.line){w=!1;break}}w||(t.splice(0,c+1),c=0)}}function Ta(t,i){var u=i.from.line,l=i.to.line,c=i.text.length-(l-u)-1;mf(t.done,u,l,c),mf(t.undone,u,l,c)}function po(t,i,u,l){var c=i,y=i;return typeof i=="number"?y=ot(t,Gt(t,i)):c=zt(i),c==null?null:(l(y,c)&&t.cm&&ki(t.cm,c,u),y)}function Pa(t){this.lines=t,this.parent=null;for(var i=0,u=0;u<t.length;++u)t[u].parent=this,i+=t[u].height;this.height=i}Pa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,i){for(var u=t,l=t+i;u<l;++u){var c=this.lines[u];this.height-=c.height,Fc(c),Rr(c,"delete")}this.lines.splice(t,i)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,i,u){this.height+=u,this.lines=this.lines.slice(0,t).concat(i).concat(this.lines.slice(t));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(t,i,u){for(var l=t+i;t<l;++t)if(u(this.lines[t]))return!0}};function oa(t){this.children=t;for(var i=0,u=0,l=0;l<t.length;++l){var c=t[l];i+=c.chunkSize(),u+=c.height,c.parent=this}this.size=i,this.height=u,this.parent=null}oa.prototype={chunkSize:function(){return this.size},removeInner:function(t,i){this.size-=i;for(var u=0;u<this.children.length;++u){var l=this.children[u],c=l.chunkSize();if(t<c){var y=Math.min(i,c-t),w=l.height;if(l.removeInner(t,y),this.height-=w-l.height,c==y&&(this.children.splice(u--,1),l.parent=null),(i-=y)==0)break;t=0}else t-=c}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Pa))){var O=[];this.collapse(O),this.children=[new Pa(O)],this.children[0].parent=this}},collapse:function(t){for(var i=0;i<this.children.length;++i)this.children[i].collapse(t)},insertInner:function(t,i,u){this.size+=i.length,this.height+=u;for(var l=0;l<this.children.length;++l){var c=this.children[l],y=c.chunkSize();if(t<=y){if(c.insertInner(t,i,u),c.lines&&c.lines.length>50){for(var w=c.lines.length%25+25,O=w;O<c.lines.length;){var R=new Pa(c.lines.slice(O,O+=25));c.height-=R.height,this.children.splice(++l,0,R),R.parent=this}c.lines=c.lines.slice(0,w),this.maybeSpill()}break}t-=y}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var i=t.children.splice(t.children.length-5,5),u=new oa(i);if(t.parent){t.size-=u.size,t.height-=u.height;var c=Ce(t.parent.children,t);t.parent.children.splice(c+1,0,u)}else{var l=new oa(t.children);l.parent=t,t.children=[l,u],t=l}u.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,i,u){for(var l=0;l<this.children.length;++l){var c=this.children[l],y=c.chunkSize();if(t<y){var w=Math.min(i,y-t);if(c.iterN(t,w,u))return!0;if((i-=w)==0)break;t=0}else t-=y}}};var ho=function(t,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=t,this.node=i};ho.prototype.clear=function(){var t=this.doc.cm,i=this.line.widgets,u=this.line,l=zt(u);if(!(l==null||!i)){for(var c=0;c<i.length;++c)i[c]==this&&i.splice(c--,1);i.length||(u.widgets=null);var y=Ja(this);cn(u,Math.max(0,u.height-y)),t&&(bn(t,function(){vo(t,u,-y),ki(t,l,"widget")}),Rr(t,"lineWidgetCleared",t,this,l))}},ho.prototype.changed=function(){var t=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var c=Ja(this)-i;!c||(Fr(this.doc,l)||cn(l,l.height+c),u&&bn(u,function(){u.curOp.forceUpdate=!0,vo(u,l,c),Rr(u,"lineWidgetChanged",u,t,zt(l))}))},pr(ho);function vo(t,i,u){qn(i)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&_s(t,u)}function go(t,i,u,l){var c=new ho(t,u,l),y=t.cm;return y&&c.noHScroll&&(y.display.alignWidgets=!0),po(t,i,"widget",function(w){var O=w.widgets||(w.widgets=[]);if(c.insertAt==null?O.push(c):O.splice(Math.min(O.length,Math.max(0,c.insertAt)),0,c),c.line=w,y&&!Fr(t,w)){var R=qn(w)<t.scrollTop;cn(w,w.height+Ja(c)),R&&_s(y,c.height),y.curOp.forceUpdate=!0}return!0}),y&&Rr(y,"lineWidgetAdded",y,c,typeof i=="number"?i:zt(i)),c}var hl=0,yi=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++hl};yi.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,i=t&&!t.curOp;if(i&&Ri(t),Rt(this,"clear")){var u=this.find();u&&Rr(this,"clear",u.from,u.to)}for(var l=null,c=null,y=0;y<this.lines.length;++y){var w=this.lines[y],O=Vo(w.markedSpans,this);t&&!this.collapsed?ki(t,zt(w),"text"):t&&(O.to!=null&&(c=zt(w)),O.from!=null&&(l=zt(w))),w.markedSpans=mp(w.markedSpans,O),O.from==null&&this.collapsed&&!Fr(this.doc,w)&&t&&cn(w,ba(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var R=0;R<this.lines.length;++R){var V=yn(this.lines[R]),oe=Gn(V);oe>t.display.maxLineLength&&(t.display.maxLine=V,t.display.maxLineLength=oe,t.display.maxLineChanged=!0)}l!=null&&t&&this.collapsed&&dn(t,l,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&df(t.doc)),t&&Rr(t,"markerCleared",t,this,l,c),i&&mi(t),this.parent&&this.parent.clear()}},yi.prototype.find=function(t,i){t==null&&this.type=="bookmark"&&(t=1);for(var u,l,c=0;c<this.lines.length;++c){var y=this.lines[c],w=Vo(y.markedSpans,this);if(w.from!=null&&(u=M(i?y:zt(y),w.from),t==-1))return u;if(w.to!=null&&(l=M(i?y:zt(y),w.to),t==1))return l}return u&&{from:u,to:l}},yi.prototype.changed=function(){var t=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||bn(l,function(){var c=i.line,y=zt(i.line),w=Hs(l,y);if(w&&(rn(w),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Fr(u.doc,c)&&u.height!=null){var O=u.height;u.height=null;var R=Ja(u)-O;R&&cn(c,c.height+R)}Rr(l,"markerChanged",l,t)})},yi.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ce(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},yi.prototype.detachLine=function(t){if(this.lines.splice(Ce(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},pr(yi);function Ia(t,i,u,l,c){if(l&&l.shared)return yo(t,i,u,l,c);if(t.cm&&!t.cm.curOp)return Or(t.cm,Ia)(t,i,u,l,c);var y=new yi(t,c),w=ae(i,u);if(l&&Oe(l,y,!1),w>0||w==0&&y.clearWhenEmpty!==!1)return y;if(y.replacedWith&&(y.collapsed=!0,y.widgetNode=Z("span",[y.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||y.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(y.widgetNode.insertLeft=!0)),y.collapsed){if(mu(t,i.line,i,u,y)||i.line!=u.line&&mu(t,u.line,i,u,y))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ec()}y.addToHistory&&of(t,{from:i,to:u,origin:"markText"},t.sel,NaN);var O=i.line,R=t.cm,V;if(t.iter(O,u.line+1,function(ce){R&&y.collapsed&&!R.options.lineWrapping&&yn(ce)==R.display.maxLine&&(V=!0),y.collapsed&&O!=i.line&&cn(ce,0),yp(ce,new Rs(y,O==i.line?i.ch:null,O==u.line?u.ch:null),t.cm&&t.cm.curOp),++O}),y.collapsed&&t.iter(i.line,u.line+1,function(ce){Fr(t,ce)&&cn(ce,0)}),y.clearOnEnter&&ue(y,"beforeCursorEnter",function(){return y.clear()}),y.readOnly&&(Cc(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),y.collapsed&&(y.id=++hl,y.atomic=!0),R){if(V&&(R.curOp.updateMaxLine=!0),y.collapsed)dn(R,i.line,u.line+1);else if(y.className||y.startStyle||y.endStyle||y.css||y.attributes||y.title)for(var oe=i.line;oe<=u.line;oe++)ki(R,oe,"text");y.atomic&&df(R.doc),Rr(R,"markerAdded",R,y)}return y}var mo=function(t,i){this.markers=t,this.primary=i;for(var u=0;u<t.length;++u)t[u].parent=this};mo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Rr(this,"clear")}},mo.prototype.find=function(t,i){return this.primary.find(t,i)},pr(mo);function yo(t,i,u,l,c){l=Oe(l),l.shared=!1;var y=[Ia(t,i,u,l,c)],w=y[0],O=l.widgetNode;return Ni(t,function(R){O&&(l.widgetNode=O.cloneNode(!0)),y.push(Ia(R,st(R,i),st(R,u),l,c));for(var V=0;V<R.linked.length;++V)if(R.linked[V].isParent)return;w=lt(y)}),new mo(y,w)}function vl(t){return t.findMarks(M(t.first,0),t.clipPos(M(t.lastLine())),function(i){return i.parent})}function yf(t,i){for(var u=0;u<i.length;u++){var l=i[u],c=l.find(),y=t.clipPos(c.from),w=t.clipPos(c.to);if(ae(y,w)){var O=Ia(t,y,w,l.primary,l.primary.type);l.markers.push(O),O.parent=l}}}function gl(t){for(var i=function(l){var c=t[l],y=[c.primary.doc];Ni(c.primary.doc,function(R){return y.push(R)});for(var w=0;w<c.markers.length;w++){var O=c.markers[w];Ce(y,O.doc)==-1&&(O.parent=null,c.markers.splice(w--,1))}},u=0;u<t.length;u++)i(u)}var bf=0,on=function(t,i,u,l,c){if(!(this instanceof on))return new on(t,i,u,l,c);u==null&&(u=0),oa.call(this,[new Pa([new Ti("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var y=M(u,0);this.sel=Yn(y),this.history=new oo(null),this.id=++bf,this.modeOption=i,this.lineSep=l,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),ll(this,{from:y,to:y,text:t}),Wr(this,Yn(y),$e)};on.prototype=br(oa.prototype,{constructor:on,iter:function(t,i,u){u?this.iterN(t-this.first,i-t,u):this.iterN(this.first,this.first+this.size,t)},insert:function(t,i){for(var u=0,l=0;l<i.length;++l)u+=i[l].height;this.insertInner(t-this.first,i,u)},remove:function(t,i){this.removeInner(t-this.first,i)},getValue:function(t){var i=zi(this,this.first,this.first+this.size);return t===!1?i:i.join(t||this.lineSeparator())},setValue:Mr(function(t){var i=M(this.first,0),u=this.first+this.size-1;aa(this,{from:i,to:M(u,ot(this,u).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&qa(this.cm,0,0),Wr(this,Yn(i),$e)}),replaceRange:function(t,i,u,l){i=st(this,i),u=u?st(this,u):i,Oa(this,t,i,u,l)},getRange:function(t,i,u){var l=ci(this,st(this,t),st(this,i));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(t){var i=this.getLineHandle(t);return i&&i.text},getLineHandle:function(t){if(Gi(this,t))return ot(this,t)},getLineNumber:function(t){return zt(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=ot(this,t)),yn(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return st(this,t)},getCursor:function(t){var i=this.sel.primary(),u;return t==null||t=="head"?u=i.head:t=="anchor"?u=i.anchor:t=="end"||t=="to"||t===!1?u=i.to():u=i.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Mr(function(t,i,u){ff(this,st(this,typeof t=="number"?M(t,i||0):t),null,u)}),setSelection:Mr(function(t,i,u){ff(this,st(this,t),st(this,i||t),u)}),extendSelection:Mr(function(t,i,u){as(this,st(this,t),i&&st(this,i),u)}),extendSelections:Mr(function(t,i){os(this,Jt(this,t),i)}),extendSelectionsBy:Mr(function(t,i){var u=xt(this.sel.ranges,t);os(this,Jt(this,u),i)}),setSelections:Mr(function(t,i,u){if(!!t.length){for(var l=[],c=0;c<t.length;c++)l[c]=new Vt(st(this,t[c].anchor),st(this,t[c].head||t[c].anchor));i==null&&(i=Math.min(t.length-1,this.sel.primIndex)),Wr(this,qt(this.cm,l,i),u)}}),addSelection:Mr(function(t,i,u){var l=this.sel.ranges.slice(0);l.push(new Vt(st(this,t),st(this,i||t))),Wr(this,qt(this.cm,l,l.length-1),u)}),getSelection:function(t){for(var i=this.sel.ranges,u,l=0;l<i.length;l++){var c=ci(this,i[l].from(),i[l].to());u=u?u.concat(c):c}return t===!1?u:u.join(t||this.lineSeparator())},getSelections:function(t){for(var i=[],u=this.sel.ranges,l=0;l<u.length;l++){var c=ci(this,u[l].from(),u[l].to());t!==!1&&(c=c.join(t||this.lineSeparator())),i[l]=c}return i},replaceSelection:function(t,i,u){for(var l=[],c=0;c<this.sel.ranges.length;c++)l[c]=t;this.replaceSelections(l,i,u||"+input")},replaceSelections:Mr(function(t,i,u){for(var l=[],c=this.sel,y=0;y<c.ranges.length;y++){var w=c.ranges[y];l[y]={from:w.from(),to:w.to(),text:this.splitLines(t[y]),origin:u}}for(var O=i&&i!="end"&&Jc(this,l,i),R=l.length-1;R>=0;R--)aa(this,l[R]);O?cf(this,O):this.cm&&xa(this.cm)}),undo:Mr(function(){fo(this,"undo")}),redo:Mr(function(){fo(this,"redo")}),undoSelection:Mr(function(){fo(this,"undo",!0)}),redoSelection:Mr(function(){fo(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,i=0,u=0,l=0;l<t.done.length;l++)t.done[l].ranges||++i;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++u;return{undo:i,redo:u}},clearHistory:function(){var t=this;this.history=new oo(this.history),Ni(this,function(i){return i.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ca(this.history.done),undone:Ca(this.history.undone)}},setHistory:function(t){var i=this.history=new oo(this.history);i.done=Ca(t.done.slice(0),null,!0),i.undone=Ca(t.undone.slice(0),null,!0)},setGutterMarker:Mr(function(t,i,u){return po(this,t,"gutter",function(l){var c=l.gutterMarkers||(l.gutterMarkers={});return c[i]=u,!u&&dr(c)&&(l.gutterMarkers=null),!0})}),clearGutter:Mr(function(t){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[t]&&po(i,u,"gutter",function(){return u.gutterMarkers[t]=null,dr(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(t){var i;if(typeof t=="number"){if(!Gi(this,t)||(i=t,t=ot(this,t),!t))return null}else if(i=zt(t),i==null)return null;return{line:i,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Mr(function(t,i,u){return po(this,t,i=="gutter"?"gutter":"class",function(l){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[c])l[c]=u;else{if(J(u).test(l[c]))return!1;l[c]+=" "+u}return!0})}),removeLineClass:Mr(function(t,i,u){return po(this,t,i=="gutter"?"gutter":"class",function(l){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",y=l[c];if(y)if(u==null)l[c]=null;else{var w=y.match(J(u));if(!w)return!1;var O=w.index+w[0].length;l[c]=y.slice(0,w.index)+(!w.index||O==y.length?"":" ")+y.slice(O)||null}else return!1;return!0})}),addLineWidget:Mr(function(t,i,u){return go(this,t,i,u)}),removeLineWidget:function(t){t.clear()},markText:function(t,i,u){return Ia(this,st(this,t),st(this,i),u,u&&u.type||"range")},setBookmark:function(t,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 t=st(this,t),Ia(this,t,t,u,"bookmark")},findMarksAt:function(t){t=st(this,t);var i=[],u=ot(this,t.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var c=u[l];(c.from==null||c.from<=t.ch)&&(c.to==null||c.to>=t.ch)&&i.push(c.marker.parent||c.marker)}return i},findMarks:function(t,i,u){t=st(this,t),i=st(this,i);var l=[],c=t.line;return this.iter(t.line,i.line+1,function(y){var w=y.markedSpans;if(w)for(var O=0;O<w.length;O++){var R=w[O];!(R.to!=null&&c==t.line&&t.ch>=R.to||R.from==null&&c!=t.line||R.from!=null&&c==i.line&&R.from>=i.ch)&&(!u||u(R.marker))&&l.push(R.marker.parent||R.marker)}++c}),l},getAllMarks:function(){var t=[];return this.iter(function(i){var u=i.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&t.push(u[l].marker)}),t},posFromIndex:function(t){var i,u=this.first,l=this.lineSeparator().length;return this.iter(function(c){var y=c.text.length+l;if(y>t)return i=t,!0;t-=y,++u}),st(this,M(u,i))},indexFromPos:function(t){t=st(this,t);var i=t.ch;if(t.line<this.first||t.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,t.line,function(l){i+=l.text.length+u}),i},copy:function(t){var i=new on(zi(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,t&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(t){t||(t={});var i=this.first,u=this.first+this.size;t.from!=null&&t.from>i&&(i=t.from),t.to!=null&&t.to<u&&(u=t.to);var l=new on(zi(this,i,u),t.mode||this.modeOption,i,this.lineSep,this.direction);return t.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:t.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],yf(l,vl(this)),l},unlinkDoc:function(t){if(t instanceof ur&&(t=t.doc),this.linked)for(var i=0;i<this.linked.length;++i){var u=this.linked[i];if(u.doc==t){this.linked.splice(i,1),t.unlinkDoc(this),gl(vl(this));break}}if(t.history==this.history){var l=[t.id];Ni(t,function(c){return l.push(c.id)},!0),t.history=new oo(null),t.history.done=Ca(this.history.done,l),t.history.undone=Ca(this.history.undone,l)}},iterLinkedDocs:function(t){Ni(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Vr(t)},lineSeparator:function(){return this.lineSep||`
23
- `},setDirection:Mr(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(i){return i.order=null}),this.cm&&Xc(this.cm))})}),on.prototype.eachLine=on.prototype.iter;var sa=0;function ed(t){var i=this;if(ml(i),!(at(i,t)||Er(i.display,t))){Lt(t),E&&(sa=+new Date);var u=Qi(i,t,!0),l=t.dataTransfer.files;if(!(!u||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var c=l.length,y=Array(c),w=0,O=function(){++w==c&&Or(i,function(){u=st(i.doc,u);var he={from:u,to:u,text:i.doc.splitLines(y.filter(function(Te){return Te!=null}).join(i.doc.lineSeparator())),origin:"paste"};aa(i.doc,he),cf(i.doc,Yn(st(i.doc,u),st(i.doc,ni(he))))})()},R=function(he,Te){if(i.options.allowDropFileTypes&&Ce(i.options.allowDropFileTypes,he.type)==-1){O();return}var Le=new FileReader;Le.onerror=function(){return O()},Le.onload=function(){var ze=Le.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ze)){O();return}y[Te]=ze,O()},Le.readAsText(he)},V=0;V<l.length;V++)R(l[V],V);else{if(i.state.draggingText&&i.doc.sel.contains(u)>-1){i.state.draggingText(t),setTimeout(function(){return i.display.input.focus()},20);return}try{var oe=t.dataTransfer.getData("Text");if(oe){var ce;if(i.state.draggingText&&!i.state.draggingText.copy&&(ce=i.listSelections()),ss(i.doc,Yn(u,u)),ce)for(var me=0;me<ce.length;++me)Oa(i.doc,"",ce[me].anchor,ce[me].head,"drag");i.replaceSelection(oe,"around","paste"),i.display.input.focus()}}catch(he){}}}}function td(t,i){if(E&&(!t.state.draggingText||+new Date-sa<100)){Yr(i);return}if(!(at(t,i)||Er(t.display,i))&&(i.dataTransfer.setData("Text",t.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!ne)){var u=q("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",K&&(u.width=u.height=1,t.display.wrapper.appendChild(u),u._top=u.offsetTop),i.dataTransfer.setDragImage(u,0,0),K&&u.parentNode.removeChild(u)}}function xf(t,i){var u=Qi(t,i);if(!!u){var l=document.createDocumentFragment();Qs(t,u,l),t.display.dragCursor||(t.display.dragCursor=q("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),pe(t.display.dragCursor,l)}}function ml(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Sf(t){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<i.length;l++){var c=i[l].CodeMirror;c&&u.push(c)}u.length&&u[0].operation(function(){for(var y=0;y<u.length;y++)t(u[y])})}}var yl=!1;function rd(){yl||(nd(),yl=!0)}function nd(){var t;ue(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,Sf(wf)},100))}),ue(window,"blur",function(){return Sf(_i)})}function wf(t){var i=t.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,t.setSize()}for(var Di={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"},bo=0;bo<10;bo++)Di[bo+48]=Di[bo+96]=String(bo);for(var xo=65;xo<=90;xo++)Di[xo]=String.fromCharCode(xo);for(var On=1;On<=12;On++)Di[On+111]=Di[On+63235]="F"+On;var bi={};bi.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"},bi.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"},bi.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"},bi.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"]},bi.default=k?bi.macDefault:bi.pcDefault;function bl(t){var i=t.split(/-(?!$)/);t=i[i.length-1];for(var u,l,c,y,w=0;w<i.length-1;w++){var O=i[w];if(/^(cmd|meta|m)$/i.test(O))y=!0;else if(/^a(lt)?$/i.test(O))u=!0;else if(/^(c|ctrl|control)$/i.test(O))l=!0;else if(/^s(hift)?$/i.test(O))c=!0;else throw new Error("Unrecognized modifier name: "+O)}return u&&(t="Alt-"+t),l&&(t="Ctrl-"+t),y&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function id(t){var i={};for(var u in t)if(t.hasOwnProperty(u)){var l=t[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete t[u];continue}for(var c=xt(u.split(" "),bl),y=0;y<c.length;y++){var w=void 0,O=void 0;y==c.length-1?(O=c.join(" "),w=l):(O=c.slice(0,y+1).join(" "),w="...");var R=i[O];if(!R)i[O]=w;else if(R!=w)throw new Error("Inconsistent bindings for "+O)}delete t[u]}for(var V in i)t[V]=i[V];return t}function ka(t,i,u,l){i=fs(i);var c=i.call?i.call(t,l):i[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&u(c))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ka(t,i.fallthrough,u,l);for(var y=0;y<i.fallthrough.length;y++){var w=ka(t,i.fallthrough[y],u,l);if(w)return w}}}function Af(t){var i=typeof t=="string"?t:Di[t.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function us(t,i,u){var l=t;return i.altKey&&l!="Alt"&&(t="Alt-"+t),(D?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(t="Ctrl-"+t),(D?i.ctrlKey:i.metaKey)&&l!="Mod"&&(t="Cmd-"+t),!u&&i.shiftKey&&l!="Shift"&&(t="Shift-"+t),t}function Cf(t,i){if(K&&t.keyCode==34&&t.char)return!1;var u=Di[t.keyCode];return u==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(u=t.code),us(u,t,i))}function fs(t){return typeof t=="string"?bi[t]:t}function Fa(t,i){for(var u=t.doc.sel.ranges,l=[],c=0;c<u.length;c++){for(var y=i(u[c]);l.length&&ae(y.from,lt(l).to)<=0;){var w=l.pop();if(ae(w.from,y.from)<0){y.from=w.from;break}}l.push(y)}bn(t,function(){for(var O=l.length-1;O>=0;O--)Oa(t.doc,"",l[O].from,l[O].to,"+delete");xa(t)})}function xl(t,i,u){var l=Tt(t.text,i+u,u);return l<0||l>t.text.length?null:l}function Sl(t,i,u){var l=xl(t,i.ch,u);return l==null?null:new M(i.line,l,u<0?"after":"before")}function wl(t,i,u,l,c){if(t){i.doc.direction=="rtl"&&(c=-c);var y=nt(u,i.doc.direction);if(y){var w=c<0?lt(y):y[0],O=c<0==(w.level==1),R=O?"after":"before",V;if(w.level>0||i.doc.direction=="rtl"){var oe=ya(i,u);V=c<0?u.text.length-1:0;var ce=ti(i,oe,V).top;V=At(function(me){return ti(i,oe,me).top==ce},c<0==(w.level==1)?w.from:w.to-1,V),R=="before"&&(V=xl(u,V,1))}else V=c<0?w.to:w.from;return new M(l,V,R)}}return new M(l,c<0?u.text.length:0,c<0?"before":"after")}function ad(t,i,u,l){var c=nt(i,t.doc.direction);if(!c)return Sl(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 y=it(c,u.ch,u.sticky),w=c[y];if(t.doc.direction=="ltr"&&w.level%2==0&&(l>0?w.to>u.ch:w.from<u.ch))return Sl(i,u,l);var O=function(Ye,Qe){return xl(i,Ye instanceof M?Ye.ch:Ye,Qe)},R,V=function(Ye){return t.options.lineWrapping?(R=R||ya(t,i),Ys(t,i,R,Ye)):{begin:0,end:i.text.length}},oe=V(u.sticky=="before"?O(u,-1):u.ch);if(t.doc.direction=="rtl"||w.level==1){var ce=w.level==1==l<0,me=O(u,ce?1:-1);if(me!=null&&(ce?me<=w.to&&me<=oe.end:me>=w.from&&me>=oe.begin)){var he=ce?"before":"after";return new M(u.line,me,he)}}var Te=function(Ye,Qe,Je){for(var qe=function(tr,Tr){return Tr?new M(u.line,O(tr,1),"before"):new M(u.line,tr,"after")};Ye>=0&&Ye<c.length;Ye+=Qe){var ht=c[Ye],dt=Qe>0==(ht.level!=1),Mt=dt?Je.begin:O(Je.end,-1);if(ht.from<=Mt&&Mt<ht.to||(Mt=dt?ht.from:O(ht.to,-1),Je.begin<=Mt&&Mt<Je.end))return qe(Mt,dt)}},Le=Te(y+l,l,oe);if(Le)return Le;var ze=l>0?oe.end:O(oe.begin,-1);return ze!=null&&!(l>0&&ze==i.text.length)&&(Le=Te(l>0?0:c.length-1,l,V(ze)),Le)?Le:null}var So={selectAll:pl,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),$e)},killLine:function(t){return Fa(t,function(i){if(i.empty()){var u=ot(t.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<t.lastLine()?{from:i.head,to:M(i.head.line+1,0)}:{from:i.head,to:M(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return Fa(t,function(i){return{from:M(i.from().line,0),to:st(t.doc,M(i.to().line+1,0))}})},delLineLeft:function(t){return Fa(t,function(i){return{from:M(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(t){return Fa(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(t){return Fa(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div");return{from:i.from(),to:l}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(M(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(M(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(i){return Ef(t,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(i){return Of(t,i.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(i){return od(t,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div")},Ze)},goLineLeft:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:0,top:u},"div")},Ze)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return l.ch<t.getLine(l.line).search(/\S/)?Of(t,i.head):l},Ze)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var i=[],u=t.listSelections(),l=t.options.tabSize,c=0;c<u.length;c++){var y=u[c].from(),w=Ue(t.getLine(y.line),y.ch,l);i.push(Zt(l-w%l))}t.replaceSelections(i)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return bn(t,function(){for(var i=t.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var c=i[l].head,y=ot(t.doc,c.line).text;if(y){if(c.ch==y.length&&(c=new M(c.line,c.ch-1)),c.ch>0)c=new M(c.line,c.ch+1),t.replaceRange(y.charAt(c.ch-1)+y.charAt(c.ch-2),M(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var w=ot(t.doc,c.line-1).text;w&&(c=new M(c.line,1),t.replaceRange(y.charAt(0)+t.doc.lineSeparator()+w.charAt(w.length-1),M(c.line-1,w.length-1),c,"+transpose"))}}u.push(new Vt(c,c))}t.setSelections(u)})},newlineAndIndent:function(t){return bn(t,function(){for(var i=t.listSelections(),u=i.length-1;u>=0;u--)t.replaceRange(t.doc.lineSeparator(),i[u].anchor,i[u].head,"+input");i=t.listSelections();for(var l=0;l<i.length;l++)t.indentLine(i[l].from().line,null,!0);xa(t)})},openLine:function(t){return t.replaceSelection(`
24
- `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Ef(t,i){var u=ot(t.doc,i),l=yn(u);return l!=u&&(i=zt(l)),wl(!0,t,l,i,1)}function od(t,i){var u=ot(t.doc,i),l=kc(u);return l!=u&&(i=zt(l)),wl(!0,t,u,i,-1)}function Of(t,i){var u=Ef(t,i.line),l=ot(t.doc,u.line),c=nt(l,t.doc.direction);if(!c||c[0].level==0){var y=Math.max(u.ch,l.text.search(/\S/)),w=i.line==u.line&&i.ch<=y&&i.ch;return M(u.line,w?0:y,u.sticky)}return u}function cs(t,i,u){if(typeof i=="string"&&(i=So[i],!i))return!1;t.display.input.ensurePolled();var l=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),u&&(t.display.shift=!1),c=i(t)!=rt}finally{t.display.shift=l,t.state.suppressEdits=!1}return c}function sd(t,i,u){for(var l=0;l<t.state.keyMaps.length;l++){var c=ka(i,t.state.keyMaps[l],u,t);if(c)return c}return t.options.extraKeys&&ka(i,t.options.extraKeys,u,t)||ka(i,t.options.keyMap,u,t)}var ld=new Pe;function wo(t,i,u,l){var c=t.state.keySeq;if(c){if(Af(i))return"handled";if(/\'$/.test(i)?t.state.keySeq=null:ld.set(50,function(){t.state.keySeq==c&&(t.state.keySeq=null,t.display.input.reset())}),Al(t,c+" "+i,u,l))return!0}return Al(t,i,u,l)}function Al(t,i,u,l){var c=sd(t,i,l);return c=="multi"&&(t.state.keySeq=i),c=="handled"&&Rr(t,"keyHandled",t,i,u),(c=="handled"||c=="multi")&&(Lt(u),Xo(t)),!!c}function Tf(t,i){var u=Cf(i,!0);return u?i.shiftKey&&!t.state.keySeq?wo(t,"Shift-"+u,i,function(l){return cs(t,l,!0)})||wo(t,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return cs(t,l)}):wo(t,u,i,function(l){return cs(t,l)}):!1}function Pf(t,i,u){return wo(t,"'"+u+"'",i,function(l){return cs(t,l,!0)})}var Ra=null;function Cl(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&(i.curOp.focus=Ie(_e(i)),!at(i,t))){E&&F<11&&t.keyCode==27&&(t.returnValue=!1);var u=t.keyCode;i.display.shift=u==16||t.shiftKey;var l=Tf(i,t);K&&(Ra=l?u:null,!l&&u==88&&!ha&&(k?t.metaKey:t.ctrlKey)&&i.replaceSelection("",null,"cut")),p&&!k&&!l&&u==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&ud(i)}}function ud(t){var i=t.display.lineDiv;Ne(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(z(i,"CodeMirror-crosshair"),Be(document,"keyup",u),Be(document,"mouseover",u))}ue(document,"keyup",u),ue(document,"mouseover",u)}function If(t){t.keyCode==16&&(this.doc.sel.shift=!1),at(this,t)}function kf(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&!(Er(i.display,t)||at(i,t)||t.ctrlKey&&!t.altKey||k&&t.metaKey)){var u=t.keyCode,l=t.charCode;if(K&&u==Ra){Ra=null,Lt(t);return}if(!(K&&(!t.which||t.which<10)&&Tf(i,t))){var c=String.fromCharCode(l==null?u:l);c!="\b"&&(Pf(i,t,c)||i.display.input.onKeyPress(t))}}}var la=400,El=function(t,i,u){this.time=t,this.pos=i,this.button=u};El.prototype.compare=function(t,i,u){return this.time+la>t&&ae(i,this.pos)==0&&u==this.button};var pn,Ao;function fd(t,i){var u=+new Date;return Ao&&Ao.compare(u,t,i)?(pn=Ao=null,"triple"):pn&&pn.compare(u,t,i)?(Ao=new El(u,t,i),pn=null,"double"):(pn=new El(u,t,i),Ao=null,"single")}function ua(t){var i=this,u=i.display;if(!(at(i,t)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=t.shiftKey,Er(u,t)){U||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Eo(i,t)){var l=Qi(i,t),c=si(t),y=l?fd(l,c):"single";mt(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(t),!(l&&Ol(i,c,l,y,t))&&(c==1?l?dd(i,l,y,t):Jr(t)==u.scroller&&Lt(t):c==2?(l&&as(i.doc,l),setTimeout(function(){return u.input.focus()},20)):c==3&&(re?i.display.input.onContextMenu(t):Qo(i)))}}}function Ol(t,i,u,l,c){var y="Click";return l=="double"?y="Double"+y:l=="triple"&&(y="Triple"+y),y=(i==1?"Left":i==2?"Middle":"Right")+y,wo(t,us(y,c),c,function(w){if(typeof w=="string"&&(w=So[w]),!w)return!1;var O=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),O=w(t,u)!=rt}finally{t.state.suppressEdits=!1}return O})}function cd(t,i,u){var l=t.getOption("configureMouse"),c=l?l(t,i,u):{};if(c.unit==null){var y=B?u.shiftKey&&u.metaKey:u.altKey;c.unit=y?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||u.shiftKey),c.addNew==null&&(c.addNew=k?u.metaKey:u.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(k?u.altKey:u.ctrlKey)),c}function dd(t,i,u,l){E?setTimeout(De(Zs,t),0):t.curOp.focus=Ie(_e(t));var c=cd(t,u,l),y=t.doc.sel,w;t.options.dragDrop&&en&&!t.isReadOnly()&&u=="single"&&(w=y.contains(i))>-1&&(ae((w=y.ranges[w]).from(),i)<0||i.xRel>0)&&(ae(w.to(),i)>0||i.xRel<0)?pd(t,l,i,c):hd(t,l,i,c)}function pd(t,i,u,l){var c=t.display,y=!1,w=Or(t,function(V){U&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Qo(t)),Be(c.wrapper.ownerDocument,"mouseup",w),Be(c.wrapper.ownerDocument,"mousemove",O),Be(c.scroller,"dragstart",R),Be(c.scroller,"drop",w),y||(Lt(V),l.addNew||as(t.doc,u,null,null,l.extend),U&&!ne||E&&F==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),O=function(V){y=y||Math.abs(i.clientX-V.clientX)+Math.abs(i.clientY-V.clientY)>=10},R=function(){return y=!0};U&&(c.scroller.draggable=!0),t.state.draggingText=w,w.copy=!l.moveOnDrag,ue(c.wrapper.ownerDocument,"mouseup",w),ue(c.wrapper.ownerDocument,"mousemove",O),ue(c.scroller,"dragstart",R),ue(c.scroller,"drop",w),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Ff(t,i,u){if(u=="char")return new Vt(i,i);if(u=="word")return t.findWordAt(i);if(u=="line")return new Vt(M(i.line,0),st(t.doc,M(i.line+1,0)));var l=u(t,i);return new Vt(l.from,l.to)}function hd(t,i,u,l){E&&Qo(t);var c=t.display,y=t.doc;Lt(i);var w,O,R=y.sel,V=R.ranges;if(l.addNew&&!l.extend?(O=y.sel.contains(u),O>-1?w=V[O]:w=new Vt(u,u)):(w=y.sel.primary(),O=y.sel.primIndex),l.unit=="rectangle")l.addNew||(w=new Vt(u,u)),u=Qi(t,i,!0,!0),O=-1;else{var oe=Ff(t,u,l.unit);l.extend?w=fl(w,oe.anchor,oe.head,l.extend):w=oe}l.addNew?O==-1?(O=V.length,Wr(y,qt(t,V.concat([w]),O),{scroll:!1,origin:"*mouse"})):V.length>1&&V[O].empty()&&l.unit=="char"&&!l.extend?(Wr(y,qt(t,V.slice(0,O).concat(V.slice(O+1)),0),{scroll:!1,origin:"*mouse"}),R=y.sel):cl(y,O,w,et):(O=0,Wr(y,new Ur([w],0),et),R=y.sel);var ce=u;function me(Je){if(ae(ce,Je)!=0)if(ce=Je,l.unit=="rectangle"){for(var qe=[],ht=t.options.tabSize,dt=Ue(ot(y,u.line).text,u.ch,ht),Mt=Ue(ot(y,Je.line).text,Je.ch,ht),tr=Math.min(dt,Mt),Tr=Math.max(dt,Mt),wt=Math.min(u.line,Je.line),xn=Math.min(t.lastLine(),Math.max(u.line,Je.line));wt<=xn;wt++){var sn=ot(y,wt).text,Ar=Ct(sn,tr,ht);tr==Tr?qe.push(new Vt(M(wt,Ar),M(wt,Ar))):sn.length>Ar&&qe.push(new Vt(M(wt,Ar),M(wt,Ct(sn,Tr,ht))))}qe.length||qe.push(new Vt(u,u)),Wr(y,qt(t,R.ranges.slice(0,O).concat(qe),O),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Je)}else{var Hr=w,zr=Ff(t,Je,l.unit),Pr=Hr.anchor,Cr;ae(zr.anchor,Pr)>0?(Cr=zr.head,Pr=Nt(Hr.from(),zr.anchor)):(Cr=zr.anchor,Pr=St(Hr.to(),zr.head));var gr=R.ranges.slice(0);gr[O]=Tl(t,new Vt(st(y,Pr),Cr)),Wr(y,qt(t,gr,O),et)}}var he=c.wrapper.getBoundingClientRect(),Te=0;function Le(Je){var qe=++Te,ht=Qi(t,Je,!0,l.unit=="rectangle");if(!!ht)if(ae(ht,ce)!=0){t.curOp.focus=Ie(_e(t)),me(ht);var dt=qo(c,y);(ht.line>=dt.to||ht.line<dt.from)&&setTimeout(Or(t,function(){Te==qe&&Le(Je)}),150)}else{var Mt=Je.clientY<he.top?-20:Je.clientY>he.bottom?20:0;Mt&&setTimeout(Or(t,function(){Te==qe&&(c.scroller.scrollTop+=Mt,Le(Je))}),50)}}function ze(Je){t.state.selectingText=!1,Te=1/0,Je&&(Lt(Je),c.input.focus()),Be(c.wrapper.ownerDocument,"mousemove",Ye),Be(c.wrapper.ownerDocument,"mouseup",Qe),y.history.lastSelOrigin=null}var Ye=Or(t,function(Je){Je.buttons===0||!si(Je)?ze(Je):Le(Je)}),Qe=Or(t,ze);t.state.selectingText=Qe,ue(c.wrapper.ownerDocument,"mousemove",Ye),ue(c.wrapper.ownerDocument,"mouseup",Qe)}function Tl(t,i){var u=i.anchor,l=i.head,c=ot(t.doc,u.line);if(ae(u,l)==0&&u.sticky==l.sticky)return i;var y=nt(c);if(!y)return i;var w=it(y,u.ch,u.sticky),O=y[w];if(O.from!=u.ch&&O.to!=u.ch)return i;var R=w+(O.from==u.ch==(O.level!=1)?0:1);if(R==0||R==y.length)return i;var V;if(l.line!=u.line)V=(l.line-u.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var oe=it(y,l.ch,l.sticky),ce=oe-w||(l.ch-u.ch)*(O.level==1?-1:1);oe==R-1||oe==R?V=ce<0:V=ce>0}var me=y[R+(V?-1:0)],he=V==(me.level==1),Te=he?me.from:me.to,Le=he?"after":"before";return u.ch==Te&&u.sticky==Le?i:new Vt(new M(u.line,Te,Le),l)}function Co(t,i,u,l){var c,y;if(i.touches)c=i.touches[0].clientX,y=i.touches[0].clientY;else try{c=i.clientX,y=i.clientY}catch(me){return!1}if(c>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;l&&Lt(i);var w=t.display,O=w.lineDiv.getBoundingClientRect();if(y>O.bottom||!Rt(t,u))return _n(i);y-=O.top-w.viewOffset;for(var R=0;R<t.display.gutterSpecs.length;++R){var V=w.gutters.childNodes[R];if(V&&V.getBoundingClientRect().right>=c){var oe=di(t.doc,y),ce=t.display.gutterSpecs[R];return Ke(t,u,t,oe,ce.className,i),_n(i)}}}function Eo(t,i){return Co(t,i,"gutterClick",!0)}function Rf(t,i){Er(t.display,i)||vd(t,i)||at(t,i,"contextmenu")||re||t.display.input.onContextMenu(i)}function vd(t,i){return Rt(t,"gutterContextMenu")?Co(t,i,"gutterContextMenu",!1):!1}function Pl(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Yi(t)}var La={toString:function(){return"CodeMirror.Init"}},Il={},Ma={};function Lf(t){var i=t.optionHandlers;function u(l,c,y,w){t.defaults[l]=c,y&&(i[l]=w?function(O,R,V){V!=La&&y(O,R,V)}:y)}t.defineOption=u,t.Init=La,u("value","",function(l,c){return l.setValue(c)},!0),u("mode",null,function(l,c){l.doc.modeOption=c,sl(l)},!0),u("indentUnit",2,sl,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Aa(l),Yi(l),dn(l)},!0),u("lineSeparator",null,function(l,c){if(l.doc.lineSep=c,!!c){var y=[],w=l.doc.first;l.doc.iter(function(R){for(var V=0;;){var oe=R.text.indexOf(c,V);if(oe==-1)break;V=oe+c.length,y.push(M(w,oe))}w++});for(var O=y.length-1;O>=0;O--)Oa(l.doc,c,y[O],M(y[O].line,y[O].ch+c.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,c,y){l.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),y!=La&&l.refresh()}),u("specialCharPlaceholder",Rc,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,c){return l.getInputField().spellcheck=c},!0),u("autocorrect",!1,function(l,c){return l.getInputField().autocorrect=c},!0),u("autocapitalize",!1,function(l,c){return l.getInputField().autocapitalize=c},!0),u("rtlMoveVisually",!X),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){Pl(l),ao(l)},!0),u("keyMap","default",function(l,c,y){var w=fs(c),O=y!=La&&fs(y);O&&O.detach&&O.detach(l,w),w.attach&&w.attach(l,O||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,md,!0),u("gutters",[],function(l,c){l.display.gutterSpecs=ns(c,l.options.lineNumbers),ao(l)},!0),u("fixedGutter",!0,function(l,c){l.display.gutters.style.left=c?Xs(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return wa(l)},!0),u("scrollbarStyle","native",function(l){Yu(l),wa(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,c){l.display.gutterSpecs=ns(l.options.gutters,c),ao(l)},!0),u("firstLineNumber",1,ao,!0),u("lineNumberFormatter",function(l){return l},ao,!0),u("showCursorWhenSelecting",!1,Za,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,c){c=="nocursor"&&(_i(l),l.display.input.blur()),l.display.input.readOnlyChanged(c)}),u("screenReaderLabel",null,function(l,c){c=c===""?null:c,l.display.input.screenReaderLabelChanged(c)}),u("disableInput",!1,function(l,c){c||l.display.input.reset()},!0),u("dragDrop",!0,gd),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Za,!0),u("singleCursorHeightPerLine",!0,Za,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Aa,!0),u("addModeClass",!1,Aa,!0),u("pollInterval",100),u("undoDepth",200,function(l,c){return l.doc.history.undoDepth=c}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,Aa,!0),u("moveInputWithCursor",!0,function(l,c){c||l.display.input.resetPosition()}),u("tabindex",null,function(l,c){return l.display.input.getField().tabIndex=c||""}),u("autofocus",null),u("direction","ltr",function(l,c){return l.doc.setDirection(c)},!0),u("phrases",null)}function gd(t,i,u){var l=u&&u!=La;if(!i!=!l){var c=t.display.dragFunctions,y=i?ue:Be;y(t.display.scroller,"dragstart",c.start),y(t.display.scroller,"dragenter",c.enter),y(t.display.scroller,"dragover",c.over),y(t.display.scroller,"dragleave",c.leave),y(t.display.scroller,"drop",c.drop)}}function md(t){t.options.lineWrapping?(Ne(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(z(t.display.wrapper,"CodeMirror-wrap"),vi(t)),Ko(t),dn(t),Yi(t),setTimeout(function(){return wa(t)},100)}function ur(t,i){var u=this;if(!(this instanceof ur))return new ur(t,i);this.options=i=i?Oe(i):{},Oe(Il,i,!1);var l=i.value;typeof l=="string"?l=new on(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var c=new ur.inputStyles[i.inputStyle](this),y=this.display=new qu(t,l,c,i);y.wrapper.CodeMirror=this,Pl(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yu(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 Pe,keySeq:null,specialChars:null},i.autofocus&&!C&&y.input.focus(),E&&F<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Mf(this),rd(),Ri(this),this.curOp.forceUpdate=!0,nf(this,l),i.autofocus&&!C||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Zo(u)},20):_i(this);for(var w in Ma)Ma.hasOwnProperty(w)&&Ma[w](this,i[w],La);nl(this),i.finishInit&&i.finishInit(this);for(var O=0;O<kl.length;++O)kl[O](this);mi(this),U&&i.lineWrapping&&getComputedStyle(y.lineDiv).textRendering=="optimizelegibility"&&(y.lineDiv.style.textRendering="auto")}ur.defaults=Il,ur.optionHandlers=Ma;function Mf(t){var i=t.display;ue(i.scroller,"mousedown",Or(t,ua)),E&&F<11?ue(i.scroller,"dblclick",Or(t,function(R){if(!at(t,R)){var V=Qi(t,R);if(!(!V||Eo(t,R)||Er(t.display,R))){Lt(R);var oe=t.findWordAt(V);as(t.doc,oe.anchor,oe.head)}}})):ue(i.scroller,"dblclick",function(R){return at(t,R)||Lt(R)}),ue(i.scroller,"contextmenu",function(R){return Rf(t,R)}),ue(i.input.getField(),"contextmenu",function(R){i.scroller.contains(R.target)||Rf(t,R)});var u,l={end:0};function c(){i.activeTouch&&(u=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function y(R){if(R.touches.length!=1)return!1;var V=R.touches[0];return V.radiusX<=1&&V.radiusY<=1}function w(R,V){if(V.left==null)return!0;var oe=V.left-R.left,ce=V.top-R.top;return oe*oe+ce*ce>20*20}ue(i.scroller,"touchstart",function(R){if(!at(t,R)&&!y(R)&&!Eo(t,R)){i.input.ensurePolled(),clearTimeout(u);var V=+new Date;i.activeTouch={start:V,moved:!1,prev:V-l.end<=300?l:null},R.touches.length==1&&(i.activeTouch.left=R.touches[0].pageX,i.activeTouch.top=R.touches[0].pageY)}}),ue(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ue(i.scroller,"touchend",function(R){var V=i.activeTouch;if(V&&!Er(i,R)&&V.left!=null&&!V.moved&&new Date-V.start<300){var oe=t.coordsChar(i.activeTouch,"page"),ce;!V.prev||w(V,V.prev)?ce=new Vt(oe,oe):!V.prev.prev||w(V,V.prev.prev)?ce=t.findWordAt(oe):ce=new Vt(M(oe.line,0),st(t.doc,M(oe.line+1,0))),t.setSelection(ce.anchor,ce.head),t.focus(),Lt(R)}c()}),ue(i.scroller,"touchcancel",c),ue(i.scroller,"scroll",function(){i.scroller.clientHeight&&(to(t,i.scroller.scrollTop),qi(t,i.scroller.scrollLeft,!0),Ke(t,"scroll",t))}),ue(i.scroller,"mousewheel",function(R){return al(t,R)}),ue(i.scroller,"DOMMouseScroll",function(R){return al(t,R)}),ue(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(R){at(t,R)||Yr(R)},over:function(R){at(t,R)||(xf(t,R),Yr(R))},start:function(R){return td(t,R)},drop:Or(t,ed),leave:function(R){at(t,R)||ml(t)}};var O=i.input.getField();ue(O,"keyup",function(R){return If.call(t,R)}),ue(O,"keydown",Or(t,Cl)),ue(O,"keypress",Or(t,kf)),ue(O,"focus",function(R){return Zo(t,R)}),ue(O,"blur",function(R){return _i(t,R)})}var kl=[];ur.defineInitHook=function(t){return kl.push(t)};function Na(t,i,u,l){var c=t.doc,y;u==null&&(u="add"),u=="smart"&&(c.mode.indent?y=za(t,i).state:u="prev");var w=t.options.tabSize,O=ot(c,i),R=Ue(O.text,null,w);O.stateAfter&&(O.stateAfter=null);var V=O.text.match(/^\s*/)[0],oe;if(!l&&!/\S/.test(O.text))oe=0,u="not";else if(u=="smart"&&(oe=c.mode.indent(y,O.text.slice(V.length),O.text),oe==rt||oe>150)){if(!l)return;u="prev"}u=="prev"?i>c.first?oe=Ue(ot(c,i-1).text,null,w):oe=0:u=="add"?oe=R+t.options.indentUnit:u=="subtract"?oe=R-t.options.indentUnit:typeof u=="number"&&(oe=R+u),oe=Math.max(0,oe);var ce="",me=0;if(t.options.indentWithTabs)for(var he=Math.floor(oe/w);he;--he)me+=w,ce+=" ";if(me<oe&&(ce+=Zt(oe-me)),ce!=V)return Oa(c,ce,M(i,0),M(i,V.length),"+input"),O.stateAfter=null,!0;for(var Te=0;Te<c.sel.ranges.length;Te++){var Le=c.sel.ranges[Te];if(Le.head.line==i&&Le.head.ch<V.length){var ze=M(i,V.length);cl(c,Te,new Vt(ze,ze));break}}}var Ln=null;function ds(t){Ln=t}function ps(t,i,u,l,c){var y=t.doc;t.display.shift=!1,l||(l=y.sel);var w=+new Date-200,O=c=="paste"||t.state.pasteIncoming>w,R=Vr(i),V=null;if(O&&l.ranges.length>1)if(Ln&&Ln.text.join(`
25
- `)==i){if(l.ranges.length%Ln.text.length==0){V=[];for(var oe=0;oe<Ln.text.length;oe++)V.push(y.splitLines(Ln.text[oe]))}}else R.length==l.ranges.length&&t.options.pasteLinesPerSelection&&(V=xt(R,function(Ye){return[Ye]}));for(var ce=t.curOp.updateInput,me=l.ranges.length-1;me>=0;me--){var he=l.ranges[me],Te=he.from(),Le=he.to();he.empty()&&(u&&u>0?Te=M(Te.line,Te.ch-u):t.state.overwrite&&!O?Le=M(Le.line,Math.min(ot(y,Le.line).text.length,Le.ch+lt(R).length)):O&&Ln&&Ln.lineWise&&Ln.text.join(`
26
- `)==R.join(`
27
- `)&&(Te=Le=M(Te.line,0)));var ze={from:Te,to:Le,text:V?V[me%V.length]:R,origin:c||(O?"paste":t.state.cutIncoming>w?"cut":"+input")};aa(t.doc,ze),Rr(t,"inputRead",t,ze)}i&&!O&&Rl(t,i),xa(t),t.curOp.updateInput<2&&(t.curOp.updateInput=ce),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Fl(t,i){var u=t.clipboardData&&t.clipboardData.getData("Text");if(u)return t.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&bn(i,function(){return ps(i,u,0,null,"paste")}),!0}function Rl(t,i){if(!(!t.options.electricChars||!t.options.smartIndent))for(var u=t.doc.sel,l=u.ranges.length-1;l>=0;l--){var c=u.ranges[l];if(!(c.head.ch>100||l&&u.ranges[l-1].head.line==c.head.line)){var y=t.getModeAt(c.head),w=!1;if(y.electricChars){for(var O=0;O<y.electricChars.length;O++)if(i.indexOf(y.electricChars.charAt(O))>-1){w=Na(t,c.head.line,"smart");break}}else y.electricInput&&y.electricInput.test(ot(t.doc,c.head.line).text.slice(0,c.head.ch))&&(w=Na(t,c.head.line,"smart"));w&&Rr(t,"electricInput",t,c.head.line)}}}function Nf(t){for(var i=[],u=[],l=0;l<t.doc.sel.ranges.length;l++){var c=t.doc.sel.ranges[l].head.line,y={anchor:M(c,0),head:M(c+1,0)};u.push(y),i.push(t.getRange(y.anchor,y.head))}return{text:i,ranges:u}}function Df(t,i,u,l){t.setAttribute("autocorrect",u?"":"off"),t.setAttribute("autocapitalize",l?"":"off"),t.setAttribute("spellcheck",!!i)}function Bf(){var t=q("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=q("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return U?t.style.width="1000px":t.setAttribute("wrap","off"),Y&&(t.style.border="1px solid black"),Df(t),i}function fa(t){var i=t.optionHandlers,u=t.helpers={};t.prototype={constructor:t,focus:function(){mt(this).focus(),this.display.input.focus()},setOption:function(l,c){var y=this.options,w=y[l];y[l]==c&&l!="mode"||(y[l]=c,i.hasOwnProperty(l)&&Or(this,i[l])(this,c,w),Ke(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,c){this.state.keyMaps[c?"push":"unshift"](fs(l))},removeKeyMap:function(l){for(var c=this.state.keyMaps,y=0;y<c.length;++y)if(c[y]==l||c[y].name==l)return c.splice(y,1),!0},addOverlay:nn(function(l,c){var y=l.token?l:t.getMode(this.options,l);if(y.startState)throw new Error("Overlays may not be stateful.");Ft(this.state.overlays,{mode:y,modeSpec:l,opaque:c&&c.opaque,priority:c&&c.priority||0},function(w){return w.priority}),this.state.modeGen++,dn(this)}),removeOverlay:nn(function(l){for(var c=this.state.overlays,y=0;y<c.length;++y){var w=c[y].modeSpec;if(w==l||typeof l=="string"&&w.name==l){c.splice(y,1),this.state.modeGen++,dn(this);return}}}),indentLine:nn(function(l,c,y){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),Gi(this.doc,l)&&Na(this,l,c,y)}),indentSelection:nn(function(l){for(var c=this.doc.sel.ranges,y=-1,w=0;w<c.length;w++){var O=c[w];if(O.empty())O.head.line>y&&(Na(this,O.head.line,l,!0),y=O.head.line,w==this.doc.sel.primIndex&&xa(this));else{var R=O.from(),V=O.to(),oe=Math.max(y,R.line);y=Math.min(this.lastLine(),V.line-(V.ch?0:1))+1;for(var ce=oe;ce<y;++ce)Na(this,ce,l);var me=this.doc.sel.ranges;R.ch==0&&c.length==me.length&&me[w].from().ch>0&&cl(this.doc,w,new Vt(R,me[w].to()),$e)}}}),getTokenAt:function(l,c){return cu(this,l,c)},getLineTokens:function(l,c){return cu(this,M(l),c,!0)},getTokenTypeAt:function(l){l=st(this.doc,l);var c=Bo(this,ot(this.doc,l.line)),y=0,w=(c.length-1)/2,O=l.ch,R;if(O==0)R=c[2];else for(;;){var V=y+w>>1;if((V?c[V*2-1]:0)>=O)w=V;else if(c[V*2+1]<O)y=V+1;else{R=c[V*2+2];break}}var oe=R?R.indexOf("overlay "):-1;return oe<0?R:oe==0?null:R.slice(0,oe-1)},getModeAt:function(l){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(l).state).mode:c},getHelper:function(l,c){return this.getHelpers(l,c)[0]},getHelpers:function(l,c){var y=[];if(!u.hasOwnProperty(c))return y;var w=u[c],O=this.getModeAt(l);if(typeof O[c]=="string")w[O[c]]&&y.push(w[O[c]]);else if(O[c])for(var R=0;R<O[c].length;R++){var V=w[O[c][R]];V&&y.push(V)}else O.helperType&&w[O.helperType]?y.push(w[O.helperType]):w[O.name]&&y.push(w[O.name]);for(var oe=0;oe<w._global.length;oe++){var ce=w._global[oe];ce.pred(O,this)&&Ce(y,ce.val)==-1&&y.push(ce.val)}return y},getStateAfter:function(l,c){var y=this.doc;return l=Gt(y,l==null?y.first+y.size-1:l),za(this,l+1,c).state},cursorCoords:function(l,c){var y,w=this.doc.sel.primary();return l==null?y=w.head:typeof l=="object"?y=st(this.doc,l):y=l?w.from():w.to(),or(this,y,c||"page")},charCoords:function(l,c){return Go(this,st(this.doc,l),c||"page")},coordsChar:function(l,c){return l=Mu(this,l,c||"page"),Qa(this,l.left,l.top)},lineAtHeight:function(l,c){return l=Mu(this,{top:l,left:0},c||"page").top,di(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,c,y){var w=!1,O;if(typeof l=="number"){var R=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>R&&(l=R,w=!0),O=ot(this.doc,l)}else O=l;return zo(this,O,{top:0,left:0},c||"page",y||w).top+(w?this.doc.height-qn(O):0)},defaultTextHeight:function(){return ba(this.display)},defaultCharWidth:function(){return Xi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,c,y,w,O){var R=this.display;l=or(this,st(this.doc,l));var V=l.bottom,oe=l.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),R.sizer.appendChild(c),w=="over")V=l.top;else if(w=="above"||w=="near"){var ce=Math.max(R.wrapper.clientHeight,this.doc.height),me=Math.max(R.sizer.clientWidth,R.lineSpace.clientWidth);(w=="above"||l.bottom+c.offsetHeight>ce)&&l.top>c.offsetHeight?V=l.top-c.offsetHeight:l.bottom+c.offsetHeight<=ce&&(V=l.bottom),oe+c.offsetWidth>me&&(oe=me-c.offsetWidth)}c.style.top=V+"px",c.style.left=c.style.right="",O=="right"?(oe=R.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(O=="left"?oe=0:O=="middle"&&(oe=(R.sizer.clientWidth-c.offsetWidth)/2),c.style.left=oe+"px"),y&&zu(this,{left:oe,top:V,right:oe+c.offsetWidth,bottom:V+c.offsetHeight})},triggerOnKeyDown:nn(Cl),triggerOnKeyPress:nn(kf),triggerOnKeyUp:If,triggerOnMouseDown:nn(ua),execCommand:function(l){if(So.hasOwnProperty(l))return So[l].call(null,this)},triggerElectric:nn(function(l){Rl(this,l)}),findPosH:function(l,c,y,w){var O=1;c<0&&(O=-1,c=-c);for(var R=st(this.doc,l),V=0;V<c&&(R=Ll(this.doc,R,O,y,w),!R.hitSide);++V);return R},moveH:nn(function(l,c){var y=this;this.extendSelectionsBy(function(w){return y.display.shift||y.doc.extend||w.empty()?Ll(y.doc,w.head,l,c,y.options.rtlMoveVisually):l<0?w.from():w.to()},Ze)}),deleteH:nn(function(l,c){var y=this.doc.sel,w=this.doc;y.somethingSelected()?w.replaceSelection("",null,"+delete"):Fa(this,function(O){var R=Ll(w,O.head,l,c,!1);return l<0?{from:R,to:O.head}:{from:O.head,to:R}})}),findPosV:function(l,c,y,w){var O=1,R=w;c<0&&(O=-1,c=-c);for(var V=st(this.doc,l),oe=0;oe<c;++oe){var ce=or(this,V,"div");if(R==null?R=ce.left:ce.left=R,V=jf(this,ce,O,y),V.hitSide)break}return V},moveV:nn(function(l,c){var y=this,w=this.doc,O=[],R=!this.display.shift&&!w.extend&&w.sel.somethingSelected();if(w.extendSelectionsBy(function(oe){if(R)return l<0?oe.from():oe.to();var ce=or(y,oe.head,"div");oe.goalColumn!=null&&(ce.left=oe.goalColumn),O.push(ce.left);var me=jf(y,ce,l,c);return c=="page"&&oe==w.sel.primary()&&_s(y,Go(y,me,"div").top-ce.top),me},Ze),O.length)for(var V=0;V<w.sel.ranges.length;V++)w.sel.ranges[V].goalColumn=O[V]}),findWordAt:function(l){var c=this.doc,y=ot(c,l.line).text,w=l.ch,O=l.ch;if(y){var R=this.getHelper(l,"wordChars");(l.sticky=="before"||O==y.length)&&w?--w:++O;for(var V=y.charAt(w),oe=Yt(V,R)?function(ce){return Yt(ce,R)}:/\s/.test(V)?function(ce){return/\s/.test(ce)}:function(ce){return!/\s/.test(ce)&&!Yt(ce)};w>0&&oe(y.charAt(w-1));)--w;for(;O<y.length&&oe(y.charAt(O));)++O}return new Vt(M(l.line,w),M(l.line,O))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ne(this.display.cursorDiv,"CodeMirror-overwrite"):z(this.display.cursorDiv,"CodeMirror-overwrite"),Ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ie(_e(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:nn(function(l,c){qa(this,l,c)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Kn(this)-this.display.barHeight,width:l.scrollWidth-Kn(this)-this.display.barWidth,clientHeight:Ws(this),clientWidth:Ki(this)}},scrollIntoView:nn(function(l,c){l==null?(l={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof l=="number"?l={from:M(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=c||0,l.from.line!=null?$c(this,l):Gu(this,l.from,l.to,l.margin)}),setSize:nn(function(l,c){var y=this,w=function(R){return typeof R=="number"||/^\d+$/.test(String(R))?R+"px":R};l!=null&&(this.display.wrapper.style.width=w(l)),c!=null&&(this.display.wrapper.style.height=w(c)),this.options.lineWrapping&&Ho(this);var O=this.display.viewFrom;this.doc.iter(O,this.display.viewTo,function(R){if(R.widgets){for(var V=0;V<R.widgets.length;V++)if(R.widgets[V].noHScroll){ki(y,O,"widget");break}}++O}),this.curOp.forceUpdate=!0,Ke(this,"refresh",this)}),operation:function(l){return bn(this,l)},startOperation:function(){return Ri(this)},endOperation:function(){return mi(this)},refresh:nn(function(){var l=this.display.cachedTextHeight;dn(this),this.curOp.forceUpdate=!0,Yi(this),qa(this,this.doc.scrollLeft,this.doc.scrollTop),rl(this.display),(l==null||Math.abs(l-ba(this.display))>.5||this.options.lineWrapping)&&Ko(this),Ke(this,"refresh",this)}),swapDoc:nn(function(l){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),nf(this,l),Yi(this),this.display.input.reset(),qa(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Rr(this,"swapDoc",this,c),c}),phrase:function(l){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,l)?c[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}},pr(t),t.registerHelper=function(l,c,y){u.hasOwnProperty(l)||(u[l]=t[l]={_global:[]}),u[l][c]=y},t.registerGlobalHelper=function(l,c,y,w){t.registerHelper(l,c,w),u[l]._global.push({pred:y,val:w})}}function Ll(t,i,u,l,c){var y=i,w=u,O=ot(t,i.line),R=c&&t.direction=="rtl"?-u:u;function V(){var Qe=i.line+R;return Qe<t.first||Qe>=t.first+t.size?!1:(i=new M(Qe,i.ch,i.sticky),O=ot(t,Qe))}function oe(Qe){var Je;if(l=="codepoint"){var qe=O.text.charCodeAt(i.ch+(u>0?0:-1));if(isNaN(qe))Je=null;else{var ht=u>0?qe>=55296&&qe<56320:qe>=56320&&qe<57343;Je=new M(i.line,Math.max(0,Math.min(O.text.length,i.ch+u*(ht?2:1))),-u)}}else c?Je=ad(t.cm,O,i,u):Je=Sl(O,i,u);if(Je==null)if(!Qe&&V())i=wl(c,t.cm,O,i.line,R);else return!1;else i=Je;return!0}if(l=="char"||l=="codepoint")oe();else if(l=="column")oe(!0);else if(l=="word"||l=="group")for(var ce=null,me=l=="group",he=t.cm&&t.cm.getHelper(i,"wordChars"),Te=!0;!(u<0&&!oe(!Te));Te=!1){var Le=O.text.charAt(i.ch)||`
28
- `,ze=Yt(Le,he)?"w":me&&Le==`
29
- `?"n":!me||/\s/.test(Le)?null:"p";if(me&&!Te&&!ze&&(ze="s"),ce&&ce!=ze){u<0&&(u=1,oe(),i.sticky="after");break}if(ze&&(ce=ze),u>0&&!oe(!Te))break}var Ye=ls(t,i,y,w,!0);return Fe(y,Ye)&&(Ye.hitSide=!0),Ye}function jf(t,i,u,l){var c=t.doc,y=i.left,w;if(l=="page"){var O=Math.min(t.display.wrapper.clientHeight,mt(t).innerHeight||c(t).documentElement.clientHeight),R=Math.max(O-.5*ba(t.display),3);w=(u>0?i.bottom:i.top)+u*R}else l=="line"&&(w=u>0?i.bottom+3:i.top-3);for(var V;V=Qa(t,y,w),!!V.outside;){if(u<0?w<=0:w>=c.height){V.hitSide=!0;break}w+=u*5}return V}var er=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Pe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};er.prototype.init=function(t){var i=this,u=this,l=u.cm,c=u.div=t.lineDiv;c.contentEditable=!0,Df(c,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function y(O){for(var R=O.target;R;R=R.parentNode){if(R==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(R.className))break}return!1}ue(c,"paste",function(O){!y(O)||at(l,O)||Fl(O,l)||F<=11&&setTimeout(Or(l,function(){return i.updateFromDOM()}),20)}),ue(c,"compositionstart",function(O){i.composing={data:O.data,done:!1}}),ue(c,"compositionupdate",function(O){i.composing||(i.composing={data:O.data,done:!1})}),ue(c,"compositionend",function(O){i.composing&&(O.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),ue(c,"touchstart",function(){return u.forceCompositionEnd()}),ue(c,"input",function(){i.composing||i.readFromDOMSoon()});function w(O){if(!(!y(O)||at(l,O))){if(l.somethingSelected())ds({lineWise:!1,text:l.getSelections()}),O.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var R=Nf(l);ds({lineWise:!0,text:R.text}),O.type=="cut"&&l.operation(function(){l.setSelections(R.ranges,0,$e),l.replaceSelection("",null,"cut")})}else return;if(O.clipboardData){O.clipboardData.clearData();var V=Ln.text.join(`
30
- `);if(O.clipboardData.setData("Text",V),O.clipboardData.getData("Text")==V){O.preventDefault();return}}var oe=Bf(),ce=oe.firstChild;l.display.lineSpace.insertBefore(oe,l.display.lineSpace.firstChild),ce.value=Ln.text.join(`
31
- `);var me=Ie(c.ownerDocument);tt(ce),setTimeout(function(){l.display.lineSpace.removeChild(oe),me.focus(),me==c&&u.showPrimarySelection()},50)}}ue(c,"copy",w),ue(c,"cut",w)},er.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},er.prototype.prepareSelection=function(){var t=Uu(this.cm,!1);return t.focus=Ie(this.div.ownerDocument)==this.div,t},er.prototype.showSelection=function(t,i){!t||!this.cm.display.view.length||((t.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(t))},er.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},er.prototype.showPrimarySelection=function(){var t=this.getSelection(),i=this.cm,u=i.doc.sel.primary(),l=u.from(),c=u.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||c.line<i.display.viewFrom){t.removeAllRanges();return}var y=Da(i,t.anchorNode,t.anchorOffset),w=Da(i,t.focusNode,t.focusOffset);if(!(y&&!y.bad&&w&&!w.bad&&ae(Nt(y,w),l)==0&&ae(St(y,w),c)==0)){var O=i.display.view,R=l.line>=i.display.viewFrom&&Vf(i,l)||{node:O[0].measure.map[2],offset:0},V=c.line<i.display.viewTo&&Vf(i,c);if(!V){var oe=O[O.length-1].measure,ce=oe.maps?oe.maps[oe.maps.length-1]:oe.map;V={node:ce[ce.length-1],offset:ce[ce.length-2]-ce[ce.length-3]}}if(!R||!V){t.removeAllRanges();return}var me=t.rangeCount&&t.getRangeAt(0),he;try{he=G(R.node,R.offset,V.offset,V.node)}catch(Te){}he&&(!p&&i.state.focused?(t.collapse(R.node,R.offset),he.collapsed||(t.removeAllRanges(),t.addRange(he))):(t.removeAllRanges(),t.addRange(he)),me&&t.anchorNode==null?t.addRange(me):p&&this.startGracePeriod()),this.rememberSelection()}},er.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},er.prototype.showMultipleSelections=function(t){pe(this.cm.display.cursorDiv,t.cursors),pe(this.cm.display.selectionDiv,t.selection)},er.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},er.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var i=t.getRangeAt(0).commonAncestorContainer;return ve(this.div,i)},er.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Ie(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},er.prototype.blur=function(){this.div.blur()},er.prototype.getField=function(){return this.div},er.prototype.supportsTouch=function(){return!0},er.prototype.receivedFocus=function(){var t=this,i=this;this.selectionInEditor()?setTimeout(function(){return t.pollSelection()},20):bn(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)},er.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},er.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),i=this.cm;if(L&&Q&&this.cm.display.gutterSpecs.length&&hs(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Da(i,t.anchorNode,t.anchorOffset),l=Da(i,t.focusNode,t.focusOffset);u&&l&&bn(i,function(){Wr(i.doc,Yn(u,l),$e),(u.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},er.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,i=t.display,u=t.doc.sel.primary(),l=u.from(),c=u.to();if(l.ch==0&&l.line>t.firstLine()&&(l=M(l.line-1,ot(t.doc,l.line-1).length)),c.ch==ot(t.doc,c.line).text.length&&c.line<t.lastLine()&&(c=M(c.line+1,0)),l.line<i.viewFrom||c.line>i.viewTo-1)return!1;var y,w,O;l.line==i.viewFrom||(y=Zi(t,l.line))==0?(w=zt(i.view[0].line),O=i.view[0].node):(w=zt(i.view[y].line),O=i.view[y-1].node.nextSibling);var R=Zi(t,c.line),V,oe;if(R==i.view.length-1?(V=i.viewTo-1,oe=i.lineDiv.lastChild):(V=zt(i.view[R+1].line)-1,oe=i.view[R+1].node.previousSibling),!O)return!1;for(var ce=t.doc.splitLines(Tn(t,O,oe,w,V)),me=ci(t.doc,M(w,0),M(V,ot(t.doc,V).text.length));ce.length>1&&me.length>1;)if(lt(ce)==lt(me))ce.pop(),me.pop(),V--;else if(ce[0]==me[0])ce.shift(),me.shift(),w++;else break;for(var he=0,Te=0,Le=ce[0],ze=me[0],Ye=Math.min(Le.length,ze.length);he<Ye&&Le.charCodeAt(he)==ze.charCodeAt(he);)++he;for(var Qe=lt(ce),Je=lt(me),qe=Math.min(Qe.length-(ce.length==1?he:0),Je.length-(me.length==1?he:0));Te<qe&&Qe.charCodeAt(Qe.length-Te-1)==Je.charCodeAt(Je.length-Te-1);)++Te;if(ce.length==1&&me.length==1&&w==l.line)for(;he&&he>l.ch&&Qe.charCodeAt(Qe.length-Te-1)==Je.charCodeAt(Je.length-Te-1);)he--,Te++;ce[ce.length-1]=Qe.slice(0,Qe.length-Te).replace(/^\u200b+/,""),ce[0]=ce[0].slice(he).replace(/\u200b+$/,"");var ht=M(w,he),dt=M(V,me.length?lt(me).length-Te:0);if(ce.length>1||ce[0]||ae(ht,dt))return Oa(t.doc,ce,ht,dt,"+input"),!0},er.prototype.ensurePolled=function(){this.forceCompositionEnd()},er.prototype.reset=function(){this.forceCompositionEnd()},er.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},er.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},er.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&bn(this.cm,function(){return dn(t.cm)})},er.prototype.setUneditable=function(t){t.contentEditable="false"},er.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Or(this.cm,ps)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},er.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},er.prototype.onContextMenu=function(){},er.prototype.resetPosition=function(){},er.prototype.needsContentAttribute=!0;function Vf(t,i){var u=Hs(t,i.line);if(!u||u.hidden)return null;var l=ot(t.doc,i.line),c=Tu(u,l,i.line),y=nt(l,t.doc.direction),w="left";if(y){var O=it(y,i.ch);w=O%2?"right":"left"}var R=ku(c.map,i.ch,w);return R.offset=R.collapse=="right"?R.end:R.start,R}function hs(t){for(var i=t;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Bi(t,i){return i&&(t.bad=!0),t}function Tn(t,i,u,l,c){var y="",w=!1,O=t.doc.lineSeparator(),R=!1;function V(he){return function(Te){return Te.id==he}}function oe(){w&&(y+=O,R&&(y+=O),w=R=!1)}function ce(he){he&&(oe(),y+=he)}function me(he){if(he.nodeType==1){var Te=he.getAttribute("cm-text");if(Te){ce(Te);return}var Le=he.getAttribute("cm-marker"),ze;if(Le){var Ye=t.findMarks(M(l,0),M(c+1,0),V(+Le));Ye.length&&(ze=Ye[0].find(0))&&ce(ci(t.doc,ze.from,ze.to).join(O));return}if(he.getAttribute("contenteditable")=="false")return;var Qe=/^(pre|div|p|li|table|br)$/i.test(he.nodeName);if(!/^br$/i.test(he.nodeName)&&he.textContent.length==0)return;Qe&&oe();for(var Je=0;Je<he.childNodes.length;Je++)me(he.childNodes[Je]);/^(pre|p)$/i.test(he.nodeName)&&(R=!0),Qe&&(w=!0)}else he.nodeType==3&&ce(he.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;me(i),i!=u;)i=i.nextSibling,R=!1;return y}function Da(t,i,u){var l;if(i==t.display.lineDiv){if(l=t.display.lineDiv.childNodes[u],!l)return Bi(t.clipPos(M(t.display.viewTo-1)),!0);i=null,u=0}else for(l=i;;l=l.parentNode){if(!l||l==t.display.lineDiv)return null;if(l.parentNode&&l.parentNode==t.display.lineDiv)break}for(var c=0;c<t.display.view.length;c++){var y=t.display.view[c];if(y.node==l)return xi(y,i,u)}}function xi(t,i,u){var l=t.text.firstChild,c=!1;if(!i||!ve(l,i))return Bi(M(zt(t.line),0),!0);if(i==l&&(c=!0,i=l.childNodes[u],u=0,!i)){var y=t.rest?lt(t.rest):t.line;return Bi(M(zt(y),y.text.length),c)}var w=i.nodeType==3?i:null,O=i;for(!w&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(w=i.firstChild,u&&(u=w.nodeValue.length));O.parentNode!=l;)O=O.parentNode;var R=t.measure,V=R.maps;function oe(ze,Ye,Qe){for(var Je=-1;Je<(V?V.length:0);Je++)for(var qe=Je<0?R.map:V[Je],ht=0;ht<qe.length;ht+=3){var dt=qe[ht+2];if(dt==ze||dt==Ye){var Mt=zt(Je<0?t.line:t.rest[Je]),tr=qe[ht]+Qe;return(Qe<0||dt!=ze)&&(tr=qe[ht+(Qe?1:0)]),M(Mt,tr)}}}var ce=oe(w,O,u);if(ce)return Bi(ce,c);for(var me=O.nextSibling,he=w?w.nodeValue.length-u:0;me;me=me.nextSibling){if(ce=oe(me,me.firstChild,0),ce)return Bi(M(ce.line,ce.ch-he),c);he+=me.textContent.length}for(var Te=O.previousSibling,Le=u;Te;Te=Te.previousSibling){if(ce=oe(Te,Te.firstChild,-1),ce)return Bi(M(ce.line,ce.ch+Le),c);Le+=Te.textContent.length}}var vr=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Pe,this.hasSelection=!1,this.composing=null,this.resetting=!1};vr.prototype.init=function(t){var i=this,u=this,l=this.cm;this.createField(t);var c=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),Y&&(c.style.width="0px"),ue(c,"input",function(){E&&F>=9&&i.hasSelection&&(i.hasSelection=null),u.poll()}),ue(c,"paste",function(w){at(l,w)||Fl(w,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function y(w){if(!at(l,w)){if(l.somethingSelected())ds({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var O=Nf(l);ds({lineWise:!0,text:O.text}),w.type=="cut"?l.setSelections(O.ranges,null,$e):(u.prevInput="",c.value=O.text.join(`
32
- `),tt(c))}else return;w.type=="cut"&&(l.state.cutIncoming=+new Date)}}ue(c,"cut",y),ue(c,"copy",y),ue(t.scroller,"paste",function(w){if(!(Er(t,w)||at(l,w))){if(!c.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var O=new Event("paste");O.clipboardData=w.clipboardData,c.dispatchEvent(O)}}),ue(t.lineSpace,"selectstart",function(w){Er(t,w)||Lt(w)}),ue(c,"compositionstart",function(){var w=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:w,range:l.markText(w,l.getCursor("to"),{className:"CodeMirror-composing"})}}),ue(c,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},vr.prototype.createField=function(t){this.wrapper=Bf(),this.textarea=this.wrapper.firstChild},vr.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},vr.prototype.prepareSelection=function(){var t=this.cm,i=t.display,u=t.doc,l=Uu(t);if(t.options.moveInputWithCursor){var c=or(t,u.sel.primary().head,"div"),y=i.wrapper.getBoundingClientRect(),w=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,c.top+w.top-y.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.left+w.left-y.left))}return l},vr.prototype.showSelection=function(t){var i=this.cm,u=i.display;pe(u.cursorDiv,t.cursors),pe(u.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},vr.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var u=i.getSelection();this.textarea.value=u,i.state.focused&&tt(this.textarea),E&&F>=9&&(this.hasSelection=u)}else t||(this.prevInput=this.textarea.value="",E&&F>=9&&(this.hasSelection=null));this.resetting=!1}},vr.prototype.getField=function(){return this.textarea},vr.prototype.supportsTouch=function(){return!1},vr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||Ie(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(t){}},vr.prototype.blur=function(){this.textarea.blur()},vr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},vr.prototype.receivedFocus=function(){this.slowPoll()},vr.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},vr.prototype.fastPoll=function(){var t=!1,i=this;i.pollingFast=!0;function u(){var l=i.poll();!l&&!t?(t=!0,i.polling.set(60,u)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,u)},vr.prototype.poll=function(){var t=this,i=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Oi(u)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var c=u.value;if(c==l&&!i.somethingSelected())return!1;if(E&&F>=9&&this.hasSelection===c||k&&/[\uf700-\uf7ff]/.test(c))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var y=c.charCodeAt(0);if(y==8203&&!l&&(l="\u200B"),y==8666)return this.reset(),this.cm.execCommand("undo")}for(var w=0,O=Math.min(l.length,c.length);w<O&&l.charCodeAt(w)==c.charCodeAt(w);)++w;return bn(i,function(){ps(i,c.slice(w),l.length-w,null,t.composing?"*compose":null),c.length>1e3||c.indexOf(`
33
- `)>-1?u.value=t.prevInput="":t.prevInput=c,t.composing&&(t.composing.range.clear(),t.composing.range=i.markText(t.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},vr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},vr.prototype.onKeyPress=function(){E&&F>=9&&(this.hasSelection=null),this.fastPoll()},vr.prototype.onContextMenu=function(t){var i=this,u=i.cm,l=u.display,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var y=Qi(u,t),w=l.scroller.scrollTop;if(!y||K)return;var O=u.options.resetSelectionOnContextMenu;O&&u.doc.sel.contains(y)==-1&&Or(u,Wr)(u.doc,Yn(y),$e);var R=c.style.cssText,V=i.wrapper.style.cssText,oe=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
34
- top: `+(t.clientY-oe.top-5)+"px; left: "+(t.clientX-oe.left-5)+`px;
35
- z-index: 1000; background: `+(E?"rgba(255, 255, 255, .05)":"transparent")+`;
36
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ce;U&&(ce=c.ownerDocument.defaultView.scrollY),l.input.focus(),U&&c.ownerDocument.defaultView.scrollTo(null,ce),l.input.reset(),u.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=he,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function me(){if(c.selectionStart!=null){var Le=u.somethingSelected(),ze="\u200B"+(Le?c.value:"");c.value="\u21DA",c.value=ze,i.prevInput=Le?"":"\u200B",c.selectionStart=1,c.selectionEnd=ze.length,l.selForContextMenu=u.doc.sel}}function he(){if(i.contextMenuPending==he&&(i.contextMenuPending=!1,i.wrapper.style.cssText=V,c.style.cssText=R,E&&F<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=w),c.selectionStart!=null)){(!E||E&&F<9)&&me();var Le=0,ze=function(){l.selForContextMenu==u.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput=="\u200B"?Or(u,pl)(u):Le++<10?l.detectingSelectAll=setTimeout(ze,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ze,200)}}if(E&&F>=9&&me(),re){Yr(t);var Te=function(){Be(window,"mouseup",Te),setTimeout(he,20)};ue(window,"mouseup",Te)}else setTimeout(he,50)},vr.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},vr.prototype.setUneditable=function(){},vr.prototype.needsContentAttribute=!1;function Uf(t,i){if(i=i?Oe(i):{},i.value=t.value,!i.tabindex&&t.tabIndex&&(i.tabindex=t.tabIndex),!i.placeholder&&t.placeholder&&(i.placeholder=t.placeholder),i.autofocus==null){var u=Ie(t.ownerDocument);i.autofocus=u==t||t.getAttribute("autofocus")!=null&&u==document.body}function l(){t.value=O.getValue()}var c;if(t.form&&(ue(t.form,"submit",l),!i.leaveSubmitMethodAlone)){var y=t.form;c=y.submit;try{var w=y.submit=function(){l(),y.submit=c,y.submit(),y.submit=w}}catch(R){}}i.finishInit=function(R){R.save=l,R.getTextArea=function(){return t},R.toTextArea=function(){R.toTextArea=isNaN,l(),t.parentNode.removeChild(R.getWrapperElement()),t.style.display="",t.form&&(Be(t.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=c))}},t.style.display="none";var O=ur(function(R){return t.parentNode.insertBefore(R,t.nextSibling)},i);return O}function xp(t){t.off=Be,t.on=ue,t.wheelEventPixels=Mi,t.Doc=on,t.splitLines=Vr,t.countColumn=Ue,t.findColumn=Ct,t.isWordChar=xr,t.Pass=rt,t.signal=Ke,t.Line=Ti,t.changeEnd=ni,t.scrollbarModel=Ku,t.Pos=M,t.cmpPos=ae,t.modes=Cn,t.mimeModes=En,t.resolveMode=zn,t.getMode=fn,t.modeExtensions=Sr,t.extendMode=fi,t.copyState=kn,t.startState=No,t.innerMode=va,t.commands=So,t.keyMap=bi,t.keyName=Cf,t.isModifierKey=Af,t.lookupKey=ka,t.normalizeKeyMap=id,t.StringStream=sr,t.SharedTextMarker=mo,t.TextMarker=yi,t.LineWidget=ho,t.e_preventDefault=Lt,t.e_stopPropagation=jt,t.e_stop=Yr,t.addClass=Ne,t.contains=ve,t.rmClass=z,t.keyNames=Di}Lf(ur),fa(ur);var Ml="iter insert remove copy getEditor constructor".split(" ");for(var Oo in on.prototype)on.prototype.hasOwnProperty(Oo)&&Ce(Ml,Oo)<0&&(ur.prototype[Oo]=function(t){return function(){return t.apply(this.doc,arguments)}}(on.prototype[Oo]));return pr(on),ur.inputStyles={textarea:vr,contenteditable:er},ur.defineMode=function(t){!ur.defaults.mode&&t!="null"&&(ur.defaults.mode=t),In.apply(this,arguments)},ur.defineMIME=Ha,ur.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),ur.defineMIME("text/plain","null"),ur.defineExtension=function(t,i){ur.prototype[t]=i},ur.defineDocExtension=function(t,i){on.prototype[t]=i},ur.fromTextArea=Uf,xp(ur),ur.version="5.65.9",ur})},49055:(v,T,s)=>{(function(p){p(s(23326))})(function(p){"use strict";p.defineMode("javascript",function(S,A){var h=S.indentUnit,E=A.statementIndent,F=A.jsonld,U=A.json||F,_=A.trackScope!==!1,Q=A.typescript,le=A.wordCharacters||/[\w$\xa1-\uffff]/,K=function(){function M(st){return{type:st,style:"keyword"}}var ae=M("keyword a"),Fe=M("keyword b"),He=M("keyword c"),St=M("keyword d"),Nt=M("operator"),Gt={type:"atom",style:"atom"};return{if:M("if"),while:ae,with:ae,else:Fe,do:Fe,try:Fe,finally:Fe,return:St,break:St,continue:St,new:M("new"),delete:He,void:He,throw:He,debugger:M("debugger"),var:M("var"),const:M("var"),let:M("var"),function:M("function"),catch:M("catch"),for:M("for"),switch:M("switch"),case:M("case"),default:M("default"),in:Nt,typeof:Nt,instanceof:Nt,true:Gt,false:Gt,null:Gt,undefined:Gt,NaN:Gt,Infinity:Gt,this:M("this"),class:M("class"),super:M("atom"),yield:He,export:M("export"),import:M("import"),extends:He,await:He}}(),ne=/[+\-*&%=<>!?|~^@]/,$=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function P(M){for(var ae=!1,Fe,He=!1;(Fe=M.next())!=null;){if(!ae){if(Fe=="/"&&!He)return;Fe=="["?He=!0:He&&Fe=="]"&&(He=!1)}ae=!ae&&Fe=="\\"}}var Y,L;function C(M,ae,Fe){return Y=M,L=Fe,ae}function k(M,ae){var Fe=M.next();if(Fe=='"'||Fe=="'")return ae.tokenize=B(Fe),ae.tokenize(M,ae);if(Fe=="."&&M.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(Fe=="."&&M.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Fe))return C(Fe);if(Fe=="="&&M.eat(">"))return C("=>","operator");if(Fe=="0"&&M.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(Fe))return M.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(Fe=="/")return M.eat("*")?(ae.tokenize=X,X(M,ae)):M.eat("/")?(M.skipToEnd(),C("comment","comment")):pi(M,ae,1)?(P(M),M.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(M.eat("="),C("operator","operator",M.current()));if(Fe=="`")return ae.tokenize=H,H(M,ae);if(Fe=="#"&&M.peek()=="!")return M.skipToEnd(),C("meta","meta");if(Fe=="#"&&M.eatWhile(le))return C("variable","property");if(Fe=="<"&&M.match("!--")||Fe=="-"&&M.match("->")&&!/\S/.test(M.string.slice(0,M.start)))return M.skipToEnd(),C("comment","comment");if(ne.test(Fe))return(Fe!=">"||!ae.lexical||ae.lexical.type!=">")&&(M.eat("=")?(Fe=="!"||Fe=="=")&&M.eat("="):/[<>*+\-|&?]/.test(Fe)&&(M.eat(Fe),Fe==">"&&M.eat(Fe))),Fe=="?"&&M.eat(".")?C("."):C("operator","operator",M.current());if(le.test(Fe)){M.eatWhile(le);var He=M.current();if(ae.lastType!="."){if(K.propertyIsEnumerable(He)){var St=K[He];return C(St.type,St.style,He)}if(He=="async"&&M.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",He)}return C("variable","variable",He)}}function B(M){return function(ae,Fe){var He=!1,St;if(F&&ae.peek()=="@"&&ae.match($))return Fe.tokenize=k,C("jsonld-keyword","meta");for(;(St=ae.next())!=null&&!(St==M&&!He);)He=!He&&St=="\\";return He||(Fe.tokenize=k),C("string","string")}}function X(M,ae){for(var Fe=!1,He;He=M.next();){if(He=="/"&&Fe){ae.tokenize=k;break}Fe=He=="*"}return C("comment","comment")}function H(M,ae){for(var Fe=!1,He;(He=M.next())!=null;){if(!Fe&&(He=="`"||He=="$"&&M.eat("{"))){ae.tokenize=k;break}Fe=!Fe&&He=="\\"}return C("quasi","string-2",M.current())}var D="([{}])";function re(M,ae){ae.fatArrowAt&&(ae.fatArrowAt=null);var Fe=M.string.indexOf("=>",M.start);if(!(Fe<0)){if(Q){var He=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(M.string.slice(M.start,Fe));He&&(Fe=He.index)}for(var St=0,Nt=!1,Gt=Fe-1;Gt>=0;--Gt){var st=M.string.charAt(Gt),Fn=D.indexOf(st);if(Fn>=0&&Fn<3){if(!St){++Gt;break}if(--St==0){st=="("&&(Nt=!0);break}}else if(Fn>=3&&Fn<6)++St;else if(le.test(st))Nt=!0;else if(/["'\/`]/.test(st))for(;;--Gt){if(Gt==0)return;var Jt=M.string.charAt(Gt-1);if(Jt==st&&M.string.charAt(Gt-2)!="\\"){Gt--;break}}else if(Nt&&!St){++Gt;break}}Nt&&!St&&(ae.fatArrowAt=Gt)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function z(M,ae,Fe,He,St,Nt){this.indented=M,this.column=ae,this.type=Fe,this.prev=St,this.info=Nt,He!=null&&(this.align=He)}function fe(M,ae){if(!_)return!1;for(var Fe=M.localVars;Fe;Fe=Fe.next)if(Fe.name==ae)return!0;for(var He=M.context;He;He=He.prev)for(var Fe=He.vars;Fe;Fe=Fe.next)if(Fe.name==ae)return!0}function pe(M,ae,Fe,He,St){var Nt=M.cc;for(q.state=M,q.stream=St,q.marked=null,q.cc=Nt,q.style=ae,M.lexical.hasOwnProperty("align")||(M.lexical.align=!0);;){var Gt=Nt.length?Nt.pop():U?et:rt;if(Gt(Fe,He)){for(;Nt.length&&Nt[Nt.length-1].lex;)Nt.pop()();return q.marked?q.marked:Fe=="variable"&&fe(M,He)?"variable-2":ae}}}var q={state:null,column:null,marked:null,cc:null};function Z(){for(var M=arguments.length-1;M>=0;M--)q.cc.push(arguments[M])}function G(){return Z.apply(null,arguments),!0}function ve(M,ae){for(var Fe=ae;Fe;Fe=Fe.next)if(Fe.name==M)return!0;return!1}function Ie(M){var ae=q.state;if(q.marked="def",!!_){if(ae.context){if(ae.lexical.info=="var"&&ae.context&&ae.context.block){var Fe=Ne(M,ae.context);if(Fe!=null){ae.context=Fe;return}}else if(!ve(M,ae.localVars)){ae.localVars=new _e(M,ae.localVars);return}}A.globalVars&&!ve(M,ae.globalVars)&&(ae.globalVars=new _e(M,ae.globalVars))}}function Ne(M,ae){if(ae)if(ae.block){var Fe=Ne(M,ae.prev);return Fe?Fe==ae.prev?ae:new tt(Fe,ae.vars,!0):null}else return ve(M,ae.vars)?ae:new tt(ae.prev,new _e(M,ae.vars),!1);else return null}function je(M){return M=="public"||M=="private"||M=="protected"||M=="abstract"||M=="readonly"}function tt(M,ae,Fe){this.prev=M,this.vars=ae,this.block=Fe}function _e(M,ae){this.name=M,this.next=ae}var mt=new _e("this",new _e("arguments",null));function De(){q.state.context=new tt(q.state.context,q.state.localVars,!1),q.state.localVars=mt}function Oe(){q.state.context=new tt(q.state.context,q.state.localVars,!0),q.state.localVars=null}De.lex=Oe.lex=!0;function Ue(){q.state.localVars=q.state.context.vars,q.state.context=q.state.context.prev}Ue.lex=!0;function Pe(M,ae){var Fe=function(){var He=q.state,St=He.indented;if(He.lexical.type=="stat")St=He.lexical.indented;else for(var Nt=He.lexical;Nt&&Nt.type==")"&&Nt.align;Nt=Nt.prev)St=Nt.indented;He.lexical=new z(St,q.stream.column(),M,null,He.lexical,ae)};return Fe.lex=!0,Fe}function Ce(){var M=q.state;M.lexical.prev&&(M.lexical.type==")"&&(M.indented=M.lexical.indented),M.lexical=M.lexical.prev)}Ce.lex=!0;function Ge(M){function ae(Fe){return Fe==M?G():M==";"||Fe=="}"||Fe==")"||Fe=="]"?Z():G(ae)}return ae}function rt(M,ae){return M=="var"?G(Pe("vardef",ae),si,Ge(";"),Ce):M=="keyword a"?G(Pe("form"),Ct,rt,Ce):M=="keyword b"?G(Pe("form"),rt,Ce):M=="keyword d"?q.stream.match(/^\s*$/,!1)?G():G(Pe("stat"),Zt,Ge(";"),Ce):M=="debugger"?G(Ge(";")):M=="{"?G(Pe("}"),Oe,Et,Ce,Ue):M==";"?G():M=="if"?(q.state.lexical.info=="else"&&q.state.cc[q.state.cc.length-1]==Ce&&q.state.cc.pop()(),G(Pe("form"),Ct,rt,Ce,Vr)):M=="function"?G(mn):M=="for"?G(Pe("form"),Oe,Oi,rt,Ue,Ce):M=="class"||Q&&ae=="interface"?(q.marked="keyword",G(Pe("form",M=="class"?M:ae),zn,Ce)):M=="variable"?Q&&ae=="declare"?(q.marked="keyword",G(rt)):Q&&(ae=="module"||ae=="enum"||ae=="type")&&q.stream.match(/^\s*\w/,!1)?(q.marked="keyword",ae=="enum"?G(zt):ae=="type"?G(En,Ge("operator"),Be,Ge(";")):G(Pe("form"),en,Ge("{"),Pe("}"),Et,Ce,Ce)):Q&&ae=="namespace"?(q.marked="keyword",G(Pe("form"),et,rt,Ce)):Q&&ae=="abstract"?(q.marked="keyword",G(rt)):G(Pe("stat"),Xe):M=="switch"?G(Pe("form"),Ct,Ge("{"),Pe("}","switch"),Oe,Et,Ce,Ce,Ue):M=="case"?G(et,Ge(":")):M=="default"?G(Ge(":")):M=="catch"?G(Pe("form"),De,$e,rt,Ce,Ue):M=="export"?G(Pe("stat"),kn,Ce):M=="import"?G(Pe("stat"),No,Ce):M=="async"?G(rt):ae=="@"?G(et,rt):Z(Pe("stat"),et,Ge(";"),Ce)}function $e(M){if(M=="(")return G(In,Ge(")"))}function et(M,ae){return kt(M,ae,!1)}function Ze(M,ae){return kt(M,ae,!0)}function Ct(M){return M!="("?Z():G(Pe(")"),Zt,Ge(")"),Ce)}function kt(M,ae,Fe){if(q.state.fatArrowAt==q.stream.start){var He=Fe?qr:br;if(M=="(")return G(De,Pe(")"),ct(In,")"),Ce,Ge("=>"),He,Ue);if(M=="variable")return Z(De,en,Ge("=>"),He,Ue)}var St=Fe?xt:lt;return J.hasOwnProperty(M)?G(St):M=="function"?G(mn,St):M=="class"||Q&&ae=="interface"?(q.marked="keyword",G(Pe("form"),Ha,Ce)):M=="keyword c"||M=="async"?G(Fe?Ze:et):M=="("?G(Pe(")"),Zt,Ge(")"),Ce,St):M=="operator"||M=="spread"?G(Fe?Ze:et):M=="["?G(Pe("]"),cn,Ce,St):M=="{"?it(Tt,"}",null,St):M=="quasi"?Z(Ft,St):M=="new"?G(xr(Fe)):G()}function Zt(M){return M.match(/[;\}\)\],]/)?Z():Z(et)}function lt(M,ae){return M==","?G(Zt):xt(M,ae,!1)}function xt(M,ae,Fe){var He=Fe==!1?lt:xt,St=Fe==!1?et:Ze;if(M=="=>")return G(De,Fe?qr:br,Ue);if(M=="operator")return/\+\+|--/.test(ae)||Q&&ae=="!"?G(He):Q&&ae=="<"&&q.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?G(Pe(">"),ct(Be,">"),Ce,He):ae=="?"?G(et,Ge(":"),St):G(St);if(M=="quasi")return Z(Ft,He);if(M!=";"){if(M=="(")return it(Ze,")","call",He);if(M==".")return G(gt,He);if(M=="[")return G(Pe("]"),Zt,Ge("]"),Ce,He);if(Q&&ae=="as")return q.marked="keyword",G(Be,He);if(M=="regexp")return q.state.lastType=q.marked="operator",q.stream.backUp(q.stream.pos-q.stream.start-1),G(St)}}function Ft(M,ae){return M!="quasi"?Z():ae.slice(ae.length-2)!="${"?G(Ft):G(Zt,Kr)}function Kr(M){if(M=="}")return q.marked="string-2",q.state.tokenize=H,G(Ft)}function br(M){return re(q.stream,q.state),Z(M=="{"?rt:et)}function qr(M){return re(q.stream,q.state),Z(M=="{"?rt:Ze)}function xr(M){return function(ae){return ae=="."?G(M?dr:Yt):ae=="variable"&&Q?G(_n,M?xt:lt):Z(M?Ze:et)}}function Yt(M,ae){if(ae=="target")return q.marked="keyword",G(lt)}function dr(M,ae){if(ae=="target")return q.marked="keyword",G(xt)}function Xe(M){return M==":"?G(Ce,rt):Z(lt,Ge(";"),Ce)}function gt(M){if(M=="variable")return q.marked="property",G()}function Tt(M,ae){if(M=="async")return q.marked="property",G(Tt);if(M=="variable"||q.style=="keyword"){if(q.marked="property",ae=="get"||ae=="set")return G(At);var Fe;return Q&&q.state.fatArrowAt==q.stream.start&&(Fe=q.stream.match(/^\s*:\s*/,!1))&&(q.state.fatArrowAt=q.stream.pos+Fe[0].length),G(Ot)}else{if(M=="number"||M=="string")return q.marked=F?"property":q.style+" property",G(Ot);if(M=="jsonld-keyword")return G(Ot);if(Q&&je(ae))return q.marked="keyword",G(Tt);if(M=="[")return G(et,nt,Ge("]"),Ot);if(M=="spread")return G(Ze,Ot);if(ae=="*")return q.marked="keyword",G(Tt);if(M==":")return Z(Ot)}}function At(M){return M!="variable"?Z(Ot):(q.marked="property",G(mn))}function Ot(M){if(M==":")return G(Ze);if(M=="(")return Z(mn)}function ct(M,ae,Fe){function He(St,Nt){if(Fe?Fe.indexOf(St)>-1:St==","){var Gt=q.state.lexical;return Gt.info=="call"&&(Gt.pos=(Gt.pos||0)+1),G(function(st,Fn){return st==ae||Fn==ae?Z():Z(M)},He)}return St==ae||Nt==ae?G():Fe&&Fe.indexOf(";")>-1?Z(M):G(Ge(ae))}return function(St,Nt){return St==ae||Nt==ae?G():Z(M,He)}}function it(M,ae,Fe){for(var He=3;He<arguments.length;He++)q.cc.push(arguments[He]);return G(Pe(ae,Fe),ct(M,ae),Ce)}function Et(M){return M=="}"?G():Z(rt,Et)}function nt(M,ae){if(Q){if(M==":")return G(Be);if(ae=="?")return G(nt)}}function Ve(M,ae){if(Q&&(M==":"||ae=="in"))return G(Be)}function ue(M){if(Q&&M==":")return q.stream.match(/^\s*\w+\s+is\b/,!1)?G(et,ge,Be):G(Be)}function ge(M,ae){if(ae=="is")return q.marked="keyword",G()}function Be(M,ae){if(ae=="keyof"||ae=="typeof"||ae=="infer"||ae=="readonly")return q.marked="keyword",G(ae=="typeof"?Ze:Be);if(M=="variable"||ae=="void")return q.marked="type",G(jt);if(ae=="|"||ae=="&")return G(Be);if(M=="string"||M=="number"||M=="atom")return G(jt);if(M=="[")return G(Pe("]"),ct(Be,"]",","),Ce,jt);if(M=="{")return G(Pe("}"),at,Ce,jt);if(M=="(")return G(ct(Lt,")"),Ke,jt);if(M=="<")return G(ct(Be,">"),Be);if(M=="quasi")return Z(Rt,jt)}function Ke(M){if(M=="=>")return G(Be)}function at(M){return M.match(/[\}\)\]]/)?G():M==","||M==";"?G(at):Z(bt,at)}function bt(M,ae){if(M=="variable"||q.style=="keyword")return q.marked="property",G(bt);if(ae=="?"||M=="number"||M=="string")return G(bt);if(M==":")return G(Be);if(M=="[")return G(Ge("variable"),Ve,Ge("]"),bt);if(M=="(")return Z(Cn,bt);if(!M.match(/[;\}\)\],]/))return G()}function Rt(M,ae){return M!="quasi"?Z():ae.slice(ae.length-2)!="${"?G(Rt):G(Be,pr)}function pr(M){if(M=="}")return q.marked="string-2",q.state.tokenize=H,G(Rt)}function Lt(M,ae){return M=="variable"&&q.stream.match(/^\s*[?:]/,!1)||ae=="?"?G(Lt):M==":"?G(Be):M=="spread"?G(Lt):Z(Be)}function jt(M,ae){if(ae=="<")return G(Pe(">"),ct(Be,">"),Ce,jt);if(ae=="|"||M=="."||ae=="&")return G(Be);if(M=="[")return G(Be,Ge("]"),jt);if(ae=="extends"||ae=="implements")return q.marked="keyword",G(Be);if(ae=="?")return G(Be,Ge(":"),Be)}function _n(M,ae){if(ae=="<")return G(Pe(">"),ct(Be,">"),Ce,jt)}function Yr(){return Z(Be,Jr)}function Jr(M,ae){if(ae=="=")return G(Be)}function si(M,ae){return ae=="enum"?(q.marked="keyword",G(zt)):Z(en,nt,tn,Pn)}function en(M,ae){if(Q&&je(ae))return q.marked="keyword",G(en);if(M=="variable")return Ie(ae),G();if(M=="spread")return G(en);if(M=="[")return it(ui,"]");if(M=="{")return it(li,"}")}function li(M,ae){return M=="variable"&&!q.stream.match(/^\s*:/,!1)?(Ie(ae),G(tn)):(M=="variable"&&(q.marked="property"),M=="spread"?G(en):M=="}"?Z():M=="["?G(et,Ge("]"),Ge(":"),li):G(Ge(":"),en,tn))}function ui(){return Z(en,tn)}function tn(M,ae){if(ae=="=")return G(Ze)}function Pn(M){if(M==",")return G(si)}function Vr(M,ae){if(M=="keyword b"&&ae=="else")return G(Pe("form","else"),rt,Ce)}function Oi(M,ae){if(ae=="await")return G(Oi);if(M=="(")return G(Pe(")"),ha,Ce)}function ha(M){return M=="var"?G(si,An):M=="variable"?G(An):Z(An)}function An(M,ae){return M==")"?G():M==";"?G(An):ae=="in"||ae=="of"?(q.marked="keyword",G(et,An)):Z(et,An)}function mn(M,ae){if(ae=="*")return q.marked="keyword",G(mn);if(M=="variable")return Ie(ae),G(mn);if(M=="(")return G(De,Pe(")"),ct(In,")"),Ce,ue,rt,Ue);if(Q&&ae=="<")return G(Pe(">"),ct(Yr,">"),Ce,mn)}function Cn(M,ae){if(ae=="*")return q.marked="keyword",G(Cn);if(M=="variable")return Ie(ae),G(Cn);if(M=="(")return G(De,Pe(")"),ct(In,")"),Ce,ue,Ue);if(Q&&ae=="<")return G(Pe(">"),ct(Yr,">"),Ce,Cn)}function En(M,ae){if(M=="keyword"||M=="variable")return q.marked="type",G(En);if(ae=="<")return G(Pe(">"),ct(Yr,">"),Ce)}function In(M,ae){return ae=="@"&&G(et,In),M=="spread"?G(In):Q&&je(ae)?(q.marked="keyword",G(In)):Q&&M=="this"?G(nt,tn):Z(en,nt,tn)}function Ha(M,ae){return M=="variable"?zn(M,ae):fn(M,ae)}function zn(M,ae){if(M=="variable")return Ie(ae),G(fn)}function fn(M,ae){if(ae=="<")return G(Pe(">"),ct(Yr,">"),Ce,fn);if(ae=="extends"||ae=="implements"||Q&&M==",")return ae=="implements"&&(q.marked="keyword"),G(Q?Be:et,fn);if(M=="{")return G(Pe("}"),Sr,Ce)}function Sr(M,ae){if(M=="async"||M=="variable"&&(ae=="static"||ae=="get"||ae=="set"||Q&&je(ae))&&q.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return q.marked="keyword",G(Sr);if(M=="variable"||q.style=="keyword")return q.marked="property",G(fi,Sr);if(M=="number"||M=="string")return G(fi,Sr);if(M=="[")return G(et,nt,Ge("]"),fi,Sr);if(ae=="*")return q.marked="keyword",G(Sr);if(Q&&M=="(")return Z(Cn,Sr);if(M==";"||M==",")return G(Sr);if(M=="}")return G();if(ae=="@")return G(et,Sr)}function fi(M,ae){if(ae=="!"||ae=="?")return G(fi);if(M==":")return G(Be,tn);if(ae=="=")return G(Ze);var Fe=q.state.lexical.prev,He=Fe&&Fe.info=="interface";return Z(He?Cn:mn)}function kn(M,ae){return ae=="*"?(q.marked="keyword",G(zi,Ge(";"))):ae=="default"?(q.marked="keyword",G(et,Ge(";"))):M=="{"?G(ct(va,"}"),zi,Ge(";")):Z(rt)}function va(M,ae){if(ae=="as")return q.marked="keyword",G(Ge("variable"));if(M=="variable")return Z(Ze,va)}function No(M){return M=="string"?G():M=="("?Z(et):M=="."?Z(lt):Z(sr,ot,zi)}function sr(M,ae){return M=="{"?it(sr,"}"):(M=="variable"&&Ie(ae),ae=="*"&&(q.marked="keyword"),G(ci))}function ot(M){if(M==",")return G(sr,ot)}function ci(M,ae){if(ae=="as")return q.marked="keyword",G(sr)}function zi(M,ae){if(ae=="from")return q.marked="keyword",G(et)}function cn(M){return M=="]"?G():Z(ct(Ze,"]"))}function zt(){return Z(Pe("form"),en,Ge("{"),Pe("}"),ct(di,"}"),Ce,Ce)}function di(){return Z(en,tn)}function Gi(M,ae){return M.lastType=="operator"||M.lastType==","||ne.test(ae.charAt(0))||/[,.]/.test(ae.charAt(0))}function pi(M,ae,Fe){return ae.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ae.lastType)||ae.lastType=="quasi"&&/\{\s*$/.test(M.string.slice(0,M.pos-(Fe||0)))}return{startState:function(M){var ae={tokenize:k,lastType:"sof",cc:[],lexical:new z((M||0)-h,0,"block",!1),localVars:A.localVars,context:A.localVars&&new tt(null,null,!1),indented:M||0};return A.globalVars&&typeof A.globalVars=="object"&&(ae.globalVars=A.globalVars),ae},token:function(M,ae){if(M.sol()&&(ae.lexical.hasOwnProperty("align")||(ae.lexical.align=!1),ae.indented=M.indentation(),re(M,ae)),ae.tokenize!=X&&M.eatSpace())return null;var Fe=ae.tokenize(M,ae);return Y=="comment"?Fe:(ae.lastType=Y=="operator"&&(L=="++"||L=="--")?"incdec":Y,pe(ae,Fe,Y,L,M))},indent:function(M,ae){if(M.tokenize==X||M.tokenize==H)return p.Pass;if(M.tokenize!=k)return 0;var Fe=ae&&ae.charAt(0),He=M.lexical,St;if(!/^\s*else\b/.test(ae))for(var Nt=M.cc.length-1;Nt>=0;--Nt){var Gt=M.cc[Nt];if(Gt==Ce)He=He.prev;else if(Gt!=Vr&&Gt!=Ue)break}for(;(He.type=="stat"||He.type=="form")&&(Fe=="}"||(St=M.cc[M.cc.length-1])&&(St==lt||St==xt)&&!/^[,\.=+\-*:?[\(]/.test(ae));)He=He.prev;E&&He.type==")"&&He.prev.type=="stat"&&(He=He.prev);var st=He.type,Fn=Fe==st;return st=="vardef"?He.indented+(M.lastType=="operator"||M.lastType==","?He.info.length+1:0):st=="form"&&Fe=="{"?He.indented:st=="form"?He.indented+h:st=="stat"?He.indented+(Gi(M,ae)?E||h:0):He.info=="switch"&&!Fn&&A.doubleIndentSwitch!=!1?He.indented+(/^(?:case|default)\b/.test(ae)?h:2*h):He.align?He.column+(Fn?0:1):He.indented+(Fn?0:h)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:U?null:"/*",blockCommentEnd:U?null:"*/",blockCommentContinue:U?null:" * ",lineComment:U?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:U?"json":"javascript",jsonldMode:F,jsonMode:U,expressionAllowed:pi,skipExpression:function(M){pe(M,"atom","atom","true",new p.StringStream("",2,null))}}}),p.registerHelper("wordChars","javascript",/[\w$]/),p.defineMIME("text/javascript","javascript"),p.defineMIME("text/ecmascript","javascript"),p.defineMIME("application/javascript","javascript"),p.defineMIME("application/x-javascript","javascript"),p.defineMIME("application/ecmascript","javascript"),p.defineMIME("application/json",{name:"javascript",json:!0}),p.defineMIME("application/x-json",{name:"javascript",json:!0}),p.defineMIME("application/manifest+json",{name:"javascript",json:!0}),p.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),p.defineMIME("text/typescript",{name:"javascript",typescript:!0}),p.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},13421:(v,T)=>{"use strict";/*!
15
+ b`.split(/\n/).length!=3?function(t){for(var i=0,u=[],l=t.length;i<=l;){var f=t.indexOf(`
16
+ `,i);f==-1&&(f=t.length);var g=t.slice(i,t.charAt(f-1)=="\r"?f-1:f),S=g.indexOf("\r");S!=-1?(u.push(g.slice(0,S)),i+=S+1):(u.push(g),i=f+1)}return u}:function(t){return t.split(/\r\n?|\n/)},Ui=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(i){return!1}}:function(t){var i;try{i=t.ownerDocument.selection.createRange()}catch(u){}return!i||i.parentElement()!=t?!1:i.compareEndPoints("StartToEnd",i)!=0},Wi=function(){var t=_("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),gn=null;function un(t){if(gn!=null)return gn;var i=he(t,_("span","x")),u=i.getBoundingClientRect(),l=z(i,0,1).getBoundingClientRect();return gn=Math.abs(u.left-l.left)>1}var mn={},yn={};function On(t,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),mn[t]=i}function lo(t,i){yn[t]=i}function $n(t){if(typeof t=="string"&&yn.hasOwnProperty(t))t=yn[t];else if(t&&typeof t.name=="string"&&yn.hasOwnProperty(t.name)){var i=yn[t.name];typeof i=="string"&&(i={name:i}),t=Rr(i,t),t.name=i.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return $n("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return $n("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function fn(t,i){i=$n(i);var u=mn[i.name];if(!u)return fn(t,"text/plain");var l=u(t,i);if(Cr.hasOwnProperty(i.name)){var f=Cr[i.name];for(var g in f)!f.hasOwnProperty(g)||(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=f[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var S in i.modeProps)l[S]=i.modeProps[S];return l}var Cr={};function yi(t,i){var u=Cr.hasOwnProperty(t)?Cr[t]:Cr[t]={};St(i,u)}function kn(t,i){if(i===!0)return i;if(t.copyState)return t.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 Ta(t,i){for(var u;t.innerMode&&(u=t.innerMode(i),!(!u||u.mode==t));)i=u.state,t=u.mode;return u||{mode:t,state:i}}function uo(t,i,u){return t.startState?t.startState(i,u):!0}var vr=function(t,i,u){this.pos=this.start=0,this.string=t,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};vr.prototype.eol=function(){return this.pos>=this.string.length},vr.prototype.sol=function(){return this.pos==this.lineStart},vr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},vr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},vr.prototype.eat=function(t){var i=this.string.charAt(this.pos),u;if(typeof t=="string"?u=i==t:u=i&&(t.test?t.test(i):t(i)),u)return++this.pos,i},vr.prototype.eatWhile=function(t){for(var i=this.pos;this.eat(t););return this.pos>i},vr.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},vr.prototype.skipToEnd=function(){this.pos=this.string.length},vr.prototype.skipTo=function(t){var i=this.string.indexOf(t,this.pos);if(i>-1)return this.pos=i,!0},vr.prototype.backUp=function(t){this.pos-=t},vr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},vr.prototype.indentation=function(){return Le(this.string,null,this.tabSize)-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},vr.prototype.match=function(t,i,u){if(typeof t=="string"){var l=function(S){return u?S.toLowerCase():S},f=this.string.substr(this.pos,t.length);if(l(f)==l(t))return i!==!1&&(this.pos+=t.length),!0}else{var g=this.string.slice(this.pos).match(t);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},vr.prototype.current=function(){return this.string.slice(this.start,this.pos)},vr.prototype.hideFirstChars=function(t,i){this.lineStart+=t;try{return i()}finally{this.lineStart-=t}},vr.prototype.lookAhead=function(t){var i=this.lineOracle;return i&&i.lookAhead(t)},vr.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function lt(t,i){if(i-=t.first,i<0||i>=t.size)throw new Error("There is no line "+(i+t.first)+" in the document.");for(var u=t;!u.lines;)for(var l=0;;++l){var f=u.children[l],g=f.chunkSize();if(i<g){u=f;break}i-=g}return u.lines[i]}function bi(t,i,u){var l=[],f=i.line;return t.iter(i.line,u.line+1,function(g){var S=g.text;f==u.line&&(S=S.slice(0,u.ch)),f==i.line&&(S=S.slice(i.ch)),l.push(S),++f}),l}function na(t,i,u){var l=[];return t.iter(i,u,function(f){l.push(f.text)}),l}function Rn(t,i){var u=i-t.height;if(u)for(var l=t;l;l=l.parent)l.height+=u}function tr(t){if(t.parent==null)return null;for(var i=t.parent,u=be(i.lines,t),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 ti(t,i){var u=t.first;e:do{for(var l=0;l<t.children.length;++l){var f=t.children[l],g=f.height;if(i<g){t=f;continue e}i-=g,u+=f.chunkSize()}return u}while(!t.lines);for(var S=0;S<t.lines.length;++S){var T=t.lines[S],M=T.height;if(i<M)break;i-=M}return u+S}function ia(t,i){return i>=t.first&&i<t.first+t.size}function Pa(t,i){return String(t.lineNumberFormatter(i+t.firstLineNumber))}function B(t,i,u){if(u===void 0&&(u=null),!(this instanceof B))return new B(t,i,u);this.line=t,this.ch=i,this.sticky=u}function se(t,i){return t.line-i.line||t.ch-i.ch}function Me(t,i){return t.sticky==i.sticky&&se(t,i)==0}function We(t){return B(t.line,t.ch)}function It(t,i){return se(t,i)<0?i:t}function Vt(t,i){return se(t,i)<0?t:i}function ir(t,i){return Math.max(t.first,Math.min(i,t.first+t.size-1))}function ut(t,i){if(i.line<t.first)return B(t.first,0);var u=t.first+t.size-1;return i.line>u?B(u,lt(t,u).text.length):Tn(i,lt(t,i.line).text.length)}function Tn(t,i){var u=t.ch;return u==null||u>i?B(t.line,i):u<0?B(t.line,0):t}function qo(t,i){for(var u=[],l=0;l<i.length;l++)u[l]=ut(t,i[l]);return u}var _o=function(t,i){this.state=t,this.lookAhead=i},ri=function(t,i,u,l){this.state=i,this.doc=t,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};ri.prototype.lookAhead=function(t){var i=this.doc.getLine(this.line+t);return i!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),i},ri.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ri.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ri.fromSaved=function(t,i,u){return i instanceof _o?new ri(t,kn(t.mode,i.state),u,i.lookAhead):new ri(t,kn(t.mode,i),u)},ri.prototype.save=function(t){var i=t!==!1?kn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _o(i,this.maxLookAhead):i};function al(t,i,u,l){var f=[t.state.modeGen],g={};Pu(t,i.text,t.doc.mode,u,function(j,le){return f.push(j,le)},g,l);for(var S=u.state,T=function(j){u.baseTokens=f;var le=t.state.overlays[j],de=1,we=0;u.state=!0,Pu(t,i.text,le.mode,u,function(ye,Ie){for(var Ne=de;we<ye;){var He=f[de];He>ye&&f.splice(de,1,ye,f[de+1],He),de+=2,we=Math.min(ye,He)}if(!!Ie)if(le.opaque)f.splice(Ne,de-Ne,ye,"overlay "+Ie),de=Ne+2;else for(;Ne<de;Ne+=2){var Ye=f[Ne+1];f[Ne+1]=(Ye?Ye+" ":"")+"overlay "+Ie}},g),u.state=S,u.baseTokens=null,u.baseTokenPos=1},M=0;M<t.state.overlays.length;++M)T(M);return{styles:f,classes:g.bgClass||g.textClass?g:null}}function Cu(t,i,u){if(!i.styles||i.styles[0]!=t.state.modeGen){var l=Ia(t,tr(i)),f=i.text.length>t.options.maxHighlightLength&&kn(t.doc.mode,l.state),g=al(t,i,l);f&&(l.state=f),i.stateAfter=l.save(!f),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),u===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return i.styles}function Ia(t,i,u){var l=t.doc,f=t.display;if(!l.mode.startState)return new ri(l,!0,i);var g=Tc(t,i,u),S=g>l.first&&lt(l,g-1).stateAfter,T=S?ri.fromSaved(l,S,g):new ri(l,uo(l.mode),g);return l.iter(g,i,function(M){fo(t,M.text,T);var j=T.line;M.stateAfter=j==i-1||j%5==0||j>=f.viewFrom&&j<f.viewTo?T.save():null,T.nextLine()}),u&&(l.modeFrontier=T.line),T}function fo(t,i,u,l){var f=t.doc.mode,g=new vr(i,t.options.tabSize,u);for(g.start=g.pos=l||0,i==""&&Eu(f,u.state);!g.eol();)ol(f,g,u.state),g.start=g.pos}function Eu(t,i){if(t.blankLine)return t.blankLine(i);if(!!t.innerMode){var u=Ta(t,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function ol(t,i,u,l){for(var f=0;f<10;f++){l&&(l[0]=Ta(t,u).mode);var g=t.token(i,u);if(i.pos>i.start)return g}throw new Error("Mode "+t.name+" failed to advance stream.")}var Ou=function(t,i,u){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=i||null,this.state=u};function Tu(t,i,u,l){var f=t.doc,g=f.mode,S;i=ut(f,i);var T=lt(f,i.line),M=Ia(t,i.line,u),j=new vr(T.text,t.options.tabSize,M),le;for(l&&(le=[]);(l||j.pos<i.ch)&&!j.eol();)j.start=j.pos,S=ol(g,j,M.state),l&&le.push(new Ou(j,S,kn(f.mode,M.state)));return l?le:new Ou(j,S,M.state)}function sl(t,i){if(t)for(;;){var u=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;t=t.slice(0,u.index)+t.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 t}function Pu(t,i,u,l,f,g,S){var T=u.flattenSpans;T==null&&(T=t.options.flattenSpans);var M=0,j=null,le=new vr(i,t.options.tabSize,l),de,we=t.options.addModeClass&&[null];for(i==""&&sl(Eu(u,l.state),g);!le.eol();){if(le.pos>t.options.maxHighlightLength?(T=!1,S&&fo(t,i,l,le.pos),le.pos=i.length,de=null):de=sl(ol(u,le,l.state,we),g),we){var ye=we[0].name;ye&&(de="m-"+(de?ye+" "+de:ye))}if(!T||j!=de){for(;M<le.start;)M=Math.min(le.start,M+5e3),f(M,j);j=de}le.start=le.pos}for(;M<le.pos;){var Ie=Math.min(le.pos,M+5e3);f(Ie,j),M=Ie}}function Tc(t,i,u){for(var l,f,g=t.doc,S=u?-1:i-(t.doc.mode.innerMode?1e3:100),T=i;T>S;--T){if(T<=g.first)return g.first;var M=lt(g,T-1),j=M.stateAfter;if(j&&(!u||T+(j instanceof _o?j.lookAhead:0)<=g.modeFrontier))return T;var le=Le(M.text,null,t.options.tabSize);(f==null||l>le)&&(f=T-1,l=le)}return f}function Pc(t,i){if(t.modeFrontier=Math.min(t.modeFrontier,i),!(t.highlightFrontier<i-10)){for(var u=t.first,l=i-1;l>u;l--){var f=lt(t,l).stateAfter;if(f&&(!(f instanceof _o)||l+f.lookAhead<i)){u=l+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,u)}}var Iu=!1,ni=!1;function Ic(){Iu=!0}function Fc(){ni=!0}function es(t,i,u){this.marker=t,this.from=i,this.to=u}function Fa(t,i){if(t)for(var u=0;u<t.length;++u){var l=t[u];if(l.marker==i)return l}}function kc(t,i){for(var u,l=0;l<t.length;++l)t[l]!=i&&(u||(u=[])).push(t[l]);return u}function Rc(t,i,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&t.markedSpans&&l.has(t.markedSpans)?t.markedSpans.push(i):(t.markedSpans=t.markedSpans?t.markedSpans.concat([i]):[i],l&&l.add(t.markedSpans)),i.marker.attachLine(t)}function Mc(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var g=t[f],S=g.marker,T=g.from==null||(S.inclusiveLeft?g.from<=i:g.from<i);if(T||g.from==i&&S.type=="bookmark"&&(!u||!g.marker.insertLeft)){var M=g.to==null||(S.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new es(S,g.from,M?null:g.to))}}return l}function Fu(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var g=t[f],S=g.marker,T=g.to==null||(S.inclusiveRight?g.to>=i:g.to>i);if(T||g.from==i&&S.type=="bookmark"&&(!u||g.marker.insertLeft)){var M=g.from==null||(S.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new es(S,M?null:g.from-i,g.to==null?null:g.to-i))}}return l}function co(t,i){if(i.full)return null;var u=ia(t,i.from.line)&&lt(t,i.from.line).markedSpans,l=ia(t,i.to.line)&&lt(t,i.to.line).markedSpans;if(!u&&!l)return null;var f=i.from.ch,g=i.to.ch,S=se(i.from,i.to)==0,T=Mc(u,f,S),M=Fu(l,g,S),j=i.text.length==1,le=nt(i.text).length+(j?f:0);if(T)for(var de=0;de<T.length;++de){var we=T[de];if(we.to==null){var ye=Fa(M,we.marker);ye?j&&(we.to=ye.to==null?null:ye.to+le):we.to=f}}if(M)for(var Ie=0;Ie<M.length;++Ie){var Ne=M[Ie];if(Ne.to!=null&&(Ne.to+=le),Ne.from==null){var He=Fa(T,Ne.marker);He||(Ne.from=le,j&&(T||(T=[])).push(Ne))}else Ne.from+=le,j&&(T||(T=[])).push(Ne)}T&&(T=xi(T)),M&&M!=T&&(M=xi(M));var Ye=[T];if(!j){var Qe=i.text.length-2,Je;if(Qe>0&&T)for(var rt=0;rt<T.length;++rt)T[rt].to==null&&(Je||(Je=[])).push(new es(T[rt].marker,null,null));for(var gt=0;gt<Qe;++gt)Ye.push(Je);Ye.push(M)}return Ye}function xi(t){for(var i=0;i<t.length;++i){var u=t[i];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&t.splice(i--,1)}return t.length?t:null}function ts(t,i,u){var l=null;if(t.iter(i.line,u.line+1,function(ye){if(ye.markedSpans)for(var Ie=0;Ie<ye.markedSpans.length;++Ie){var Ne=ye.markedSpans[Ie].marker;Ne.readOnly&&(!l||be(l,Ne)==-1)&&(l||(l=[])).push(Ne)}}),!l)return null;for(var f=[{from:i,to:u}],g=0;g<l.length;++g)for(var S=l[g],T=S.find(0),M=0;M<f.length;++M){var j=f[M];if(!(se(j.to,T.from)<0||se(j.from,T.to)>0)){var le=[M,1],de=se(j.from,T.from),we=se(j.to,T.to);(de<0||!S.inclusiveLeft&&!de)&&le.push({from:j.from,to:T.from}),(we>0||!S.inclusiveRight&&!we)&&le.push({from:T.to,to:j.to}),f.splice.apply(f,le),M+=le.length-3}}return f}function ll(t){var i=t.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(t);t.markedSpans=null}}function ul(t,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(t);t.markedSpans=i}}function aa(t){return t.inclusiveLeft?-1:0}function ka(t){return t.inclusiveRight?1:0}function fl(t,i){var u=t.lines.length-i.lines.length;if(u!=0)return u;var l=t.find(),f=i.find(),g=se(l.from,f.from)||aa(t)-aa(i);if(g)return-g;var S=se(l.to,f.to)||ka(t)-ka(i);return S||i.id-t.id}function cl(t,i){var u=ni&&t.markedSpans,l;if(u)for(var f=void 0,g=0;g<u.length;++g)f=u[g],f.marker.collapsed&&(i?f.from:f.to)==null&&(!l||fl(l,f.marker)<0)&&(l=f.marker);return l}function ku(t){return cl(t,!0)}function rs(t){return cl(t,!1)}function Lc(t,i){var u=ni&&t.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var g=u[f];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||fl(l,g.marker)<0)&&(l=g.marker)}return l}function dl(t,i,u,l,f){var g=lt(t,i),S=ni&&g.markedSpans;if(S)for(var T=0;T<S.length;++T){var M=S[T];if(!!M.marker.collapsed){var j=M.marker.find(0),le=se(j.from,u)||aa(M.marker)-aa(f),de=se(j.to,l)||ka(M.marker)-ka(f);if(!(le>=0&&de<=0||le<=0&&de>=0)&&(le<=0&&(M.marker.inclusiveRight&&f.inclusiveLeft?se(j.to,u)>=0:se(j.to,u)>0)||le>=0&&(M.marker.inclusiveRight&&f.inclusiveLeft?se(j.from,l)<=0:se(j.from,l)<0)))return!0}}}function Mn(t){for(var i;i=ku(t);)t=i.find(-1,!0).line;return t}function Ru(t){for(var i;i=rs(t);)t=i.find(1,!0).line;return t}function ii(t){for(var i,u;i=rs(t);)t=i.find(1,!0).line,(u||(u=[])).push(t);return u}function Si(t,i){var u=lt(t,i),l=Mn(u);return u==l?i:tr(l)}function cn(t,i){if(i>t.lastLine())return i;var u=lt(t,i),l;if(!Pn(t,u))return i;for(;l=rs(u);)u=l.find(1,!0).line;return tr(u)+1}function Pn(t,i){var u=ni&&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&&pl(t,i,l))return!0}}}function pl(t,i,u){if(u.to==null){var l=u.marker.find(1,!0);return pl(t,l.line,Fa(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==i.text.length)return!0;for(var f=void 0,g=0;g<i.markedSpans.length;++g)if(f=i.markedSpans[g],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&pl(t,i,f))return!0}function wi(t){t=Mn(t);for(var i=0,u=t.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==t)break;i+=f.height}for(var g=u.parent;g;u=g,g=u.parent)for(var S=0;S<g.children.length;++S){var T=g.children[S];if(T==u)break;i+=T.height}return i}function ns(t){if(t.height==0)return 0;for(var i=t.text.length,u,l=t;u=ku(l);){var f=u.find(0,!0);l=f.from.line,i+=f.from.ch-f.to.ch}for(l=t;u=rs(l);){var g=u.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function is(t){var i=t.display,u=t.doc;i.maxLine=lt(u,u.first),i.maxLineLength=ns(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var f=ns(l);f>i.maxLineLength&&(i.maxLineLength=f,i.maxLine=l)})}var Ra=function(t,i,u){this.text=t,ul(this,i),this.height=u?u(this):1};Ra.prototype.lineNo=function(){return tr(this)},yr(Ra);function Mu(t,i,u,l){t.text=i,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),ll(t),ul(t,u);var f=l?l(t):1;f!=t.height&&Rn(t,f)}function Lu(t){t.parent=null,ll(t)}var Ma={},Nc={};function hl(t,i){if(!t||/^\s*$/.test(t))return null;var u=i.addModeClass?Nc:Ma;return u[t]||(u[t]=t.replace(/\S+/g,"cm-$&"))}function mt(t,i){var u=Q("span",null,null,U?"padding-right: .1px":null),l={pre:Q("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};i.measure={};for(var f=0;f<=(i.rest?i.rest.length:0);f++){var g=f?i.rest[f-1]:i.line,S=void 0;l.pos=0,l.addToken=Nu,xr(t.display.measure)&&(S=ot(g,t.doc.direction))&&(l.addToken=Du(l.addToken,S)),l.map=[];var T=i!=t.display.externalMeasured&&tr(g);vl(g,l,Cu(t,g,T)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=ke(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=ke(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(mi(t.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(U){var M=l.content.lastChild;(/\bcm-tab\b/.test(M.className)||M.querySelector&&M.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ke(t,"renderLine",t,i.line,l.pre),l.pre.className&&(l.textClass=ke(l.pre.className,l.textClass||"")),l}function as(t){var i=_("span","\u2022","cm-invalidchar");return i.title="\\u"+t.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Nu(t,i,u,l,f,g,S){if(!!i){var T=t.splitSpaces?Hi(i,t.trailingSpace):i,M=t.cm.state.specialChars,j=!1,le;if(!M.test(i))t.col+=i.length,le=document.createTextNode(T),t.map.push(t.pos,t.pos+i.length,le),O&&k<9&&(j=!0),t.pos+=i.length;else{le=document.createDocumentFragment();for(var de=0;;){M.lastIndex=de;var we=M.exec(i),ye=we?we.index-de:i.length-de;if(ye){var Ie=document.createTextNode(T.slice(de,de+ye));O&&k<9?le.appendChild(_("span",[Ie])):le.appendChild(Ie),t.map.push(t.pos,t.pos+ye,Ie),t.col+=ye,t.pos+=ye}if(!we)break;de+=ye+1;var Ne=void 0;if(we[0]==" "){var He=t.cm.options.tabSize,Ye=He-t.col%He;Ne=le.appendChild(_("span",zt(Ye),"cm-tab")),Ne.setAttribute("role","presentation"),Ne.setAttribute("cm-text"," "),t.col+=Ye}else we[0]=="\r"||we[0]==`
17
+ `?(Ne=le.appendChild(_("span",we[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ne.setAttribute("cm-text",we[0]),t.col+=1):(Ne=t.cm.options.specialCharPlaceholder(we[0]),Ne.setAttribute("cm-text",we[0]),O&&k<9?le.appendChild(_("span",[Ne])):le.appendChild(Ne),t.col+=1);t.map.push(t.pos,t.pos+1,Ne),t.pos++}}if(t.trailingSpace=T.charCodeAt(i.length-1)==32,u||l||f||j||g||S){var Qe=u||"";l&&(Qe+=l),f&&(Qe+=f);var Je=_("span",[le],Qe,g);if(S)for(var rt in S)S.hasOwnProperty(rt)&&rt!="style"&&rt!="class"&&Je.setAttribute(rt,S[rt]);return t.content.appendChild(Je)}t.content.appendChild(le)}}function Hi(t,i){if(t.length>1&&!/ /.test(t))return t;for(var u=i,l="",f=0;f<t.length;f++){var g=t.charAt(f);g==" "&&u&&(f==t.length-1||t.charCodeAt(f+1)==32)&&(g="\xA0"),l+=g,u=g==" "}return l}function Du(t,i){return function(u,l,f,g,S,T,M){f=f?f+" cm-force-border":"cm-force-border";for(var j=u.pos,le=j+l.length;;){for(var de=void 0,we=0;we<i.length&&(de=i[we],!(de.to>j&&de.from<=j));we++);if(de.to>=le)return t(u,l,f,g,S,T,M);t(u,l.slice(0,de.to-j),f,g,null,T,M),g=null,l=l.slice(de.to-j),j=de.to}}}function oa(t,i,u,l){var f=!l&&u.widgetNode;f&&t.map.push(t.pos,t.pos+i,f),!l&&t.cm.display.input.needsContentAttribute&&(f||(f=t.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(t.cm.display.input.setUneditable(f),t.content.appendChild(f)),t.pos+=i,t.trailingSpace=!1}function vl(t,i,u){var l=t.markedSpans,f=t.text,g=0;if(!l){for(var S=1;S<u.length;S+=2)i.addToken(i,f.slice(g,g=u[S]),hl(u[S+1],i.cm.options));return}for(var T=f.length,M=0,j=1,le="",de,we,ye=0,Ie,Ne,He,Ye,Qe;;){if(ye==M){Ie=Ne=He=we="",Qe=null,Ye=null,ye=1/0;for(var Je=[],rt=void 0,gt=0;gt<l.length;++gt){var ct=l[gt],Dt=ct.marker;if(Dt.type=="bookmark"&&ct.from==M&&Dt.widgetNode)Je.push(Dt);else if(ct.from<=M&&(ct.to==null||ct.to>M||Dt.collapsed&&ct.to==M&&ct.from==M)){if(ct.to!=null&&ct.to!=M&&ye>ct.to&&(ye=ct.to,Ne=""),Dt.className&&(Ie+=" "+Dt.className),Dt.css&&(we=(we?we+";":"")+Dt.css),Dt.startStyle&&ct.from==M&&(He+=" "+Dt.startStyle),Dt.endStyle&&ct.to==ye&&(rt||(rt=[])).push(Dt.endStyle,ct.to),Dt.title&&((Qe||(Qe={})).title=Dt.title),Dt.attributes)for(var dr in Dt.attributes)(Qe||(Qe={}))[dr]=Dt.attributes[dr];Dt.collapsed&&(!Ye||fl(Ye.marker,Dt)<0)&&(Ye=ct)}else ct.from>M&&ye>ct.from&&(ye=ct.from)}if(rt)for(var zr=0;zr<rt.length;zr+=2)rt[zr+1]==ye&&(Ne+=" "+rt[zr]);if(!Ye||Ye.from==M)for(var Sr=0;Sr<Je.length;++Sr)oa(i,0,Je[Sr]);if(Ye&&(Ye.from||0)==M){if(oa(i,(Ye.to==null?T+1:Ye.to)-M,Ye.marker,Ye.from==null),Ye.to==null)return;Ye.to==M&&(Ye=!1)}}if(M>=T)break;for(var An=Math.min(T,ye);;){if(le){var Gt=M+le.length;if(!Ye){var Nr=Gt>An?le.slice(0,An-M):le;i.addToken(i,Nr,de?de+Ie:Ie,He,M+Nr.length==ye?Ne:"",we,Qe)}if(Gt>=An){le=le.slice(An-M),M=An;break}M=Gt,He=""}le=f.slice(g,g=u[j++]),de=hl(u[j++],i.cm.options)}}}function Tr(t,i,u){this.line=i,this.rest=ii(i),this.size=this.rest?tr(nt(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Pn(t,i)}function sa(t,i,u){for(var l=[],f,g=i;g<u;g=f){var S=new Tr(t.doc,lt(t.doc,g),g);f=g+S.size,l.push(S)}return l}var zi=null;function Dc(t){zi?zi.ops.push(t):t.ownsGroup=zi={ops:[t],delayedCallbacks:[]}}function Bc(t){var i=t.delayedCallbacks,u=0;do{for(;u<i.length;u++)i[u].call(null);for(var l=0;l<t.ops.length;l++){var f=t.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<i.length)}function jc(t,i){var u=t.ownsGroup;if(!!u)try{Bc(u)}finally{zi=null,i(u)}}var po=null;function Wr(t,i){var u=xe(t,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;zi?f=zi.delayedCallbacks:po?f=po:(f=po=[],setTimeout(Bu,0));for(var g=function(T){f.push(function(){return u[T].apply(null,l)})},S=0;S<u.length;++S)g(S)}}function Bu(){var t=po;po=null;for(var i=0;i<t.length;++i)t[i]()}function ju(t,i,u,l){for(var f=0;f<i.changes.length;f++){var g=i.changes[f];g=="text"?La(t,i):g=="gutter"?ml(t,i,u,l):g=="class"?gl(t,i):g=="widget"&&Uc(t,i,l)}i.changes=null}function ho(t){return t.node==t.text&&(t.node=_("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),O&&k<8&&(t.node.style.zIndex=2)),t.node}function Vc(t,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=ho(i);i.background=l.insertBefore(_("div",null,u),l.firstChild),t.display.input.setUneditable(i.background)}}function Vu(t,i){var u=t.display.externalMeasured;return u&&u.line==i.line?(t.display.externalMeasured=null,i.measure=u.measure,u.built):mt(t,i)}function La(t,i){var u=i.text.className,l=Vu(t,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,gl(t,i)):u&&(i.text.className=u)}function gl(t,i){Vc(t,i),i.line.wrapClass?ho(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 ml(t,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=ho(i);i.gutterBackground=_("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),t.display.input.setUneditable(i.gutterBackground),f.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(t.options.lineNumbers||g){var S=ho(i),T=i.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(T.setAttribute("aria-hidden","true"),t.display.input.setUneditable(T),S.insertBefore(T,i.text),i.line.gutterClass&&(T.className+=" "+i.line.gutterClass),t.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=T.appendChild(_("div",Pa(t.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),g)for(var M=0;M<t.display.gutterSpecs.length;++M){var j=t.display.gutterSpecs[M].className,le=g.hasOwnProperty(j)&&g[j];le&&T.appendChild(_("div",[le],"CodeMirror-gutter-elt","left: "+l.gutterLeft[j]+"px; width: "+l.gutterWidth[j]+"px"))}}}function Uc(t,i,u){i.alignable&&(i.alignable=null);for(var l=J("CodeMirror-linewidget"),f=i.node.firstChild,g=void 0;f;f=g)g=f.nextSibling,l.test(f.className)&&i.node.removeChild(f);Uu(t,i,u)}function Wc(t,i,u,l){var f=Vu(t,i);return i.text=i.node=f.pre,f.bgClass&&(i.bgClass=f.bgClass),f.textClass&&(i.textClass=f.textClass),gl(t,i),ml(t,i,u,l),Uu(t,i,l),i.node}function Uu(t,i,u){if(Wu(t,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)Wu(t,i.rest[l],i,u,!1)}function Wu(t,i,u,l,f){if(!!i.widgets)for(var g=ho(u),S=0,T=i.widgets;S<T.length;++S){var M=T[S],j=_("div",[M.node],"CodeMirror-linewidget"+(M.className?" "+M.className:""));M.handleMouseEvents||j.setAttribute("cm-ignore-events","true"),Hu(M,j,u,l),t.display.input.setUneditable(j),f&&M.above?g.insertBefore(j,u.gutter||u.text):g.appendChild(j),Wr(M,"redraw")}}function Hu(t,i,u,l){if(t.noHScroll){(u.alignable||(u.alignable=[])).push(i);var f=l.wrapperWidth;i.style.left=l.fixedPos+"px",t.coverGutter||(f-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=f+"px"}t.coverGutter&&(i.style.zIndex=5,i.style.position="relative",t.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Na(t){if(t.height!=null)return t.height;var i=t.doc.cm;if(!i)return 0;if(!ge(document.body,t.node)){var u="position: relative;";t.coverGutter&&(u+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),t.noHScroll&&(u+="width: "+i.display.wrapper.clientWidth+"px;"),he(i.display.measure,_("div",[t.node],null,u))}return t.height=t.node.parentNode.offsetHeight}function ai(t,i){for(var u=Kr(i);u!=t.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==t.sizer&&u!=t.mover)return!0}function Da(t){return t.lineSpace.offsetTop}function yl(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Ba(t){if(t.cachedPaddingH)return t.cachedPaddingH;var i=he(t.measure,_("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)&&(t.cachedPaddingH=l),l}function oi(t){return De-t.display.nativeBarWidth}function la(t){return t.display.scroller.clientWidth-oi(t)-t.display.barWidth}function bl(t){return t.display.scroller.clientHeight-oi(t)-t.display.barHeight}function Hc(t,i,u){var l=t.options.lineWrapping,f=l&&la(t);if(!i.measure.heights||l&&i.measure.width!=f){var g=i.measure.heights=[];if(l){i.measure.width=f;for(var S=i.text.firstChild.getClientRects(),T=0;T<S.length-1;T++){var M=S[T],j=S[T+1];Math.abs(M.bottom-j.bottom)>2&&g.push((M.bottom+j.top)/2-u.top)}}g.push(u.bottom-u.top)}}function os(t,i,u){if(t.line==i)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var l=0;l<t.rest.length;l++)if(t.rest[l]==i)return{map:t.measure.maps[l],cache:t.measure.caches[l]};for(var f=0;f<t.rest.length;f++)if(tr(t.rest[f])>u)return{map:t.measure.maps[f],cache:t.measure.caches[f],before:!0}}}function zc(t,i){i=Mn(i);var u=tr(i),l=t.display.externalMeasured=new Tr(t.doc,i,u);l.lineN=u;var f=l.built=mt(t,l);return l.text=f.pre,he(t.display.lineMeasure,f.pre),l}function zu(t,i,u,l){return Kn(t,ja(t,i),u,l)}function xl(t,i){if(i>=t.display.viewFrom&&i<t.display.viewTo)return t.display.view[Ai(t,i)];var u=t.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function ja(t,i){var u=tr(i),l=xl(t,u);l&&!l.text?l=null:l&&l.changes&&(ju(t,l,u,Tl(t)),t.curOp.forceUpdate=!0),l||(l=zc(t,i));var f=os(l,i,u);return{line:i,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Kn(t,i,u,l,f){i.before&&(u=-1);var g=u+(l||""),S;return i.cache.hasOwnProperty(g)?S=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Hc(t,i.view,i.rect),i.hasHeights=!0),S=$c(t,i,u,l),S.bogus||(i.cache[g]=S)),{left:S.left,right:S.right,top:f?S.rtop:S.top,bottom:f?S.rbottom:S.bottom}}var Gu={left:0,right:0,top:0,bottom:0};function vo(t,i,u){for(var l,f,g,S,T,M,j=0;j<t.length;j+=3)if(T=t[j],M=t[j+1],i<T?(f=0,g=1,S="left"):i<M?(f=i-T,g=f+1):(j==t.length-3||i==M&&t[j+3]>i)&&(g=M-T,f=g-1,i>=M&&(S="right")),f!=null){if(l=t[j+2],T==M&&u==(l.insertLeft?"left":"right")&&(S=u),u=="left"&&f==0)for(;j&&t[j-2]==t[j-3]&&t[j-1].insertLeft;)l=t[(j-=3)+2],S="left";if(u=="right"&&f==M-T)for(;j<t.length-3&&t[j+3]==t[j+4]&&!t[j+5].insertLeft;)l=t[(j+=3)+2],S="right";break}return{node:l,start:f,end:g,collapse:S,coverStart:T,coverEnd:M}}function Gc(t,i){var u=Gu;if(i=="left")for(var l=0;l<t.length&&(u=t[l]).left==u.right;l++);else for(var f=t.length-1;f>=0&&(u=t[f]).left==u.right;f--);return u}function $c(t,i,u,l){var f=vo(i.map,u,l),g=f.node,S=f.start,T=f.end,M=f.collapse,j;if(g.nodeType==3){for(var le=0;le<4;le++){for(;S&&yt(i.line.text.charAt(f.coverStart+S));)--S;for(;f.coverStart+T<f.coverEnd&&yt(i.line.text.charAt(f.coverStart+T));)++T;if(O&&k<9&&S==0&&T==f.coverEnd-f.coverStart?j=g.parentNode.getBoundingClientRect():j=Gc(z(g,S,T).getClientRects(),l),j.left||j.right||S==0)break;T=S,S=S-1,M="right"}O&&k<11&&(j=Kc(t.display.measure,j))}else{S>0&&(M=l="right");var de;t.options.lineWrapping&&(de=g.getClientRects()).length>1?j=de[l=="right"?de.length-1:0]:j=g.getBoundingClientRect()}if(O&&k<9&&!S&&(!j||!j.left&&!j.right)){var we=g.parentNode.getClientRects()[0];we?j={left:we.left,right:we.left+fa(t.display),top:we.top,bottom:we.bottom}:j=Gu}for(var ye=j.top-i.rect.top,Ie=j.bottom-i.rect.top,Ne=(ye+Ie)/2,He=i.view.measure.heights,Ye=0;Ye<He.length-1&&!(Ne<He[Ye]);Ye++);var Qe=Ye?He[Ye-1]:0,Je=He[Ye],rt={left:(M=="right"?j.right:j.left)-i.rect.left,right:(M=="left"?j.left:j.right)-i.rect.left,top:Qe,bottom:Je};return!j.left&&!j.right&&(rt.bogus=!0),t.options.singleCursorHeightPerLine||(rt.rtop=ye,rt.rbottom=Ie),rt}function Kc(t,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!un(t))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 $u(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var i=0;i<t.rest.length;i++)t.measure.caches[i]={}}function Sl(t){t.display.externalMeasure=null,fe(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)$u(t.display.view[i])}function Va(t){Sl(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Ku(t){return re&&D?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function wl(t){return re&&D?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function Al(t){var i=Mn(t),u=i.widgets,l=0;if(u)for(var f=0;f<u.length;++f)u[f].above&&(l+=Na(u[f]));return l}function go(t,i,u,l,f){if(!f){var g=Al(i);u.top+=g,u.bottom+=g}if(l=="line")return u;l||(l="local");var S=wi(i);if(l=="local"?S+=Da(t.display):S-=t.display.viewOffset,l=="page"||l=="window"){var T=t.display.lineSpace.getBoundingClientRect();S+=T.top+(l=="window"?0:wl(et(t)));var M=T.left+(l=="window"?0:Ku(et(t)));u.left+=M,u.right+=M}return u.top+=S,u.bottom+=S,u}function Yr(t,i,u){if(u=="div")return i;var l=i.left,f=i.top;if(u=="page")l-=Ku(et(t)),f-=wl(et(t));else if(u=="local"||!u){var g=t.display.sizer.getBoundingClientRect();l+=g.left,f+=g.top}var S=t.display.lineSpace.getBoundingClientRect();return{left:l-S.left,top:f-S.top}}function ss(t,i,u,l,f){return l||(l=lt(t.doc,i.line)),go(t,l,zu(t,l,i.ch,f),u)}function Yn(t,i,u,l,f,g){l=l||lt(t.doc,i.line),f||(f=ja(t,l));function S(Ie,Ne){var He=Kn(t,f,Ie,Ne?"right":"left",g);return Ne?He.left=He.right:He.right=He.left,go(t,l,He,u)}var T=ot(l,t.doc.direction),M=i.ch,j=i.sticky;if(M>=l.text.length?(M=l.text.length,j="before"):M<=0&&(M=0,j="after"),!T)return S(j=="before"?M-1:M,j=="before");function le(Ie,Ne,He){var Ye=T[Ne],Qe=Ye.level==1;return S(He?Ie-1:Ie,Qe!=He)}var de=vt(T,M,j),we=dt,ye=le(M,de,j=="before");return we!=null&&(ye.other=le(M,we,j!="before")),ye}function Yu(t,i){var u=0;i=ut(t.doc,i),t.options.lineWrapping||(u=fa(t.display)*i.ch);var l=lt(t.doc,i.line),f=wi(l)+Da(t.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Cl(t,i,u,l,f){var g=B(t,i,u);return g.xRel=f,l&&(g.outside=l),g}function El(t,i,u){var l=t.doc;if(u+=t.display.viewOffset,u<0)return Cl(l.first,0,null,-1,-1);var f=ti(l,u),g=l.first+l.size-1;if(f>g)return Cl(l.first+l.size-1,lt(l,g).text.length,null,1,1);i<0&&(i=0);for(var S=lt(l,f);;){var T=Ol(t,S,f,i,u),M=Lc(S,T.ch+(T.xRel>0||T.outside>0?1:0));if(!M)return T;var j=M.find(1);if(j.line==f)return j;S=lt(l,f=j.line)}}function Ua(t,i,u,l){l-=Al(i);var f=i.text.length,g=wt(function(S){return Kn(t,u,S-1).bottom<=l},f,0);return f=wt(function(S){return Kn(t,u,S).top>l},g,f),{begin:g,end:f}}function Ju(t,i,u,l){u||(u=ja(t,i));var f=go(t,i,Kn(t,u,l),"line").top;return Ua(t,i,u,f)}function ls(t,i,u,l){return t.bottom<=u?!1:t.top>u?!0:(l?t.left:t.right)>i}function Ol(t,i,u,l,f){f-=wi(i);var g=ja(t,i),S=Al(i),T=0,M=i.text.length,j=!0,le=ot(i,t.doc.direction);if(le){var de=(t.options.lineWrapping?us:Yc)(t,i,u,g,le,l,f);j=de.level!=1,T=j?de.from:de.to-1,M=j?de.to:de.from-1}var we=null,ye=null,Ie=wt(function(gt){var ct=Kn(t,g,gt);return ct.top+=S,ct.bottom+=S,ls(ct,l,f,!1)?(ct.top<=f&&ct.left<=l&&(we=gt,ye=ct),!0):!1},T,M),Ne,He,Ye=!1;if(ye){var Qe=l-ye.left<ye.right-l,Je=Qe==j;Ie=we+(Je?0:1),He=Je?"after":"before",Ne=Qe?ye.left:ye.right}else{!j&&(Ie==M||Ie==T)&&Ie++,He=Ie==0?"after":Ie==i.text.length?"before":Kn(t,g,Ie-(j?1:0)).bottom+S<=f==j?"after":"before";var rt=Yn(t,B(u,Ie,He),"line",i,g);Ne=rt.left,Ye=f<rt.top?-1:f>=rt.bottom?1:0}return Ie=Lt(i.text,Ie,1),Cl(u,Ie,He,Ye,l-Ne)}function Yc(t,i,u,l,f,g,S){var T=wt(function(de){var we=f[de],ye=we.level!=1;return ls(Yn(t,B(u,ye?we.to:we.from,ye?"before":"after"),"line",i,l),g,S,!0)},0,f.length-1),M=f[T];if(T>0){var j=M.level!=1,le=Yn(t,B(u,j?M.from:M.to,j?"after":"before"),"line",i,l);ls(le,g,S,!0)&&le.top>S&&(M=f[T-1])}return M}function us(t,i,u,l,f,g,S){var T=Ua(t,i,l,S),M=T.begin,j=T.end;/\s/.test(i.text.charAt(j-1))&&j--;for(var le=null,de=null,we=0;we<f.length;we++){var ye=f[we];if(!(ye.from>=j||ye.to<=M)){var Ie=ye.level!=1,Ne=Kn(t,l,Ie?Math.min(j,ye.to)-1:Math.max(M,ye.from)).right,He=Ne<g?g-Ne+1e9:Ne-g;(!le||de>He)&&(le=ye,de=He)}}return le||(le=f[f.length-1]),le.from<M&&(le={from:M,to:le.to,level:le.level}),le.to>j&&(le={from:le.from,to:j,level:le.level}),le}var Jn;function ua(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Jn==null){Jn=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Jn.appendChild(document.createTextNode("x")),Jn.appendChild(_("br"));Jn.appendChild(document.createTextNode("x"))}he(t.measure,Jn);var u=Jn.offsetHeight/50;return u>3&&(t.cachedTextHeight=u),fe(t.measure),u||1}function fa(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var i=_("span","xxxxxxxxxx"),u=_("pre",[i],"CodeMirror-line-like");he(t.measure,u);var l=i.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(t.cachedCharWidth=f),f||10}function Tl(t){for(var i=t.display,u={},l={},f=i.gutters.clientLeft,g=i.gutters.firstChild,S=0;g;g=g.nextSibling,++S){var T=t.display.gutterSpecs[S].className;u[T]=g.offsetLeft+g.clientLeft+f,l[T]=g.clientWidth}return{fixedPos:Pl(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Pl(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Wa(t){var i=ua(t.display),u=t.options.lineWrapping,l=u&&Math.max(5,t.display.scroller.clientWidth/fa(t.display)-3);return function(f){if(Pn(t.doc,f))return 0;var g=0;if(f.widgets)for(var S=0;S<f.widgets.length;S++)f.widgets[S].height&&(g+=f.widgets[S].height);return u?g+(Math.ceil(f.text.length/l)||1)*i:g+i}}function fs(t){var i=t.doc,u=Wa(t);i.iter(function(l){var f=u(l);f!=l.height&&Rn(l,f)})}function Gi(t,i,u,l){var f=t.display;if(!u&&Kr(i).getAttribute("cm-not-content")=="true")return null;var g,S,T=f.lineSpace.getBoundingClientRect();try{g=i.clientX-T.left,S=i.clientY-T.top}catch(de){return null}var M=El(t,g,S),j;if(l&&M.xRel>0&&(j=lt(t.doc,M.line).text).length==M.ch){var le=Le(j,j.length,t.options.tabSize)-j.length;M=B(M.line,Math.max(0,Math.round((g-Ba(t.display).left)/fa(t.display))-le))}return M}function Ai(t,i){if(i>=t.display.viewTo||(i-=t.display.viewFrom,i<0))return null;for(var u=t.display.view,l=0;l<u.length;l++)if(i-=u[l].size,i<0)return l}function nn(t,i,u,l){i==null&&(i=t.doc.first),u==null&&(u=t.doc.first+t.doc.size),l||(l=0);var f=t.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>i)&&(f.updateLineNumbers=i),t.curOp.viewChanged=!0,i>=f.viewTo)ni&&Si(t.doc,i)<f.viewTo&&In(t);else if(u<=f.viewFrom)ni&&cn(t.doc,u+l)>f.viewFrom?In(t):(f.viewFrom+=l,f.viewTo+=l);else if(i<=f.viewFrom&&u>=f.viewTo)In(t);else if(i<=f.viewFrom){var g=cs(t,u,u+l,1);g?(f.view=f.view.slice(g.index),f.viewFrom=g.lineN,f.viewTo+=l):In(t)}else if(u>=f.viewTo){var S=cs(t,i,i,-1);S?(f.view=f.view.slice(0,S.index),f.viewTo=S.lineN):In(t)}else{var T=cs(t,i,i,-1),M=cs(t,u,u+l,1);T&&M?(f.view=f.view.slice(0,T.index).concat(sa(t,T.lineN,M.lineN)).concat(f.view.slice(M.index)),f.viewTo+=l):In(t)}var j=f.externalMeasured;j&&(u<j.lineN?j.lineN+=l:i<j.lineN+j.size&&(f.externalMeasured=null))}function Ci(t,i,u){t.curOp.viewChanged=!0;var l=t.display,f=t.display.externalMeasured;if(f&&i>=f.lineN&&i<f.lineN+f.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[Ai(t,i)];if(g.node!=null){var S=g.changes||(g.changes=[]);be(S,u)==-1&&S.push(u)}}}function In(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function cs(t,i,u,l){var f=Ai(t,i),g,S=t.display.view;if(!ni||u==t.doc.first+t.doc.size)return{index:f,lineN:u};for(var T=t.display.viewFrom,M=0;M<f;M++)T+=S[M].size;if(T!=i){if(l>0){if(f==S.length-1)return null;g=T+S[f].size-i,f++}else g=T-i;i+=g,u+=g}for(;Si(t.doc,u)!=u;){if(f==(l<0?0:S.length-1))return null;u+=l*S[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function Jc(t,i,u){var l=t.display,f=l.view;f.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=sa(t,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=sa(t,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Ai(t,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(sa(t,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Ai(t,u)))),l.viewTo=u}function Il(t){for(var i=t.display.view,u=0,l=0;l<i.length;l++){var f=i[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Ha(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Xu(t,i){i===void 0&&(i=!0);var u=t.doc,l={},f=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),S=t.options.$customCursor;S&&(i=!0);for(var T=0;T<u.sel.ranges.length;T++)if(!(!i&&T==u.sel.primIndex)){var M=u.sel.ranges[T];if(!(M.from().line>=t.display.viewTo||M.to().line<t.display.viewFrom)){var j=M.empty();if(S){var le=S(t,M);le&&ds(t,le,f)}else(j||t.options.showCursorWhenSelecting)&&ds(t,M.head,f);j||Xc(t,M,g)}}return l}function ds(t,i,u){var l=Yn(t,i,"div",null,null,!t.options.singleCursorHeightPerLine),f=u.appendChild(_("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)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var g=ss(t,i,"div",null,null),S=g.right-g.left;f.style.width=(S>0?S:t.defaultCharWidth())+"px"}if(l.other){var T=u.appendChild(_("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));T.style.display="",T.style.left=l.other.left+"px",T.style.top=l.other.top+"px",T.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function ps(t,i){return t.top-i.top||t.left-i.left}function Xc(t,i,u){var l=t.display,f=t.doc,g=document.createDocumentFragment(),S=Ba(t.display),T=S.left,M=Math.max(l.sizerWidth,la(t)-l.sizer.offsetLeft)-S.right,j=f.direction=="ltr";function le(Je,rt,gt,ct){rt<0&&(rt=0),rt=Math.round(rt),ct=Math.round(ct),g.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+Je+`px;
18
+ top: `+rt+"px; width: "+(gt==null?M-Je:gt)+`px;
19
+ height: `+(ct-rt)+"px"))}function de(Je,rt,gt){var ct=lt(f,Je),Dt=ct.text.length,dr,zr;function Sr(Nr,hn){return ss(t,B(Je,Nr),"div",ct,hn)}function An(Nr,hn,L){var Bt=Ju(t,ct,null,Nr),pt=hn=="ltr"==(L=="after")?"left":"right",mr=L=="after"?Bt.begin:Bt.end-(/\s/.test(ct.text.charAt(Bt.end-1))?2:1);return Sr(mr,pt)[pt]}var Gt=ot(ct,f.direction);return Ft(Gt,rt||0,gt==null?Dt:gt,function(Nr,hn,L,Bt){var pt=L=="ltr",mr=Sr(Nr,pt?"left":"right"),Fr=Sr(hn-1,pt?"right":"left"),Sa=rt==null&&Nr==0,Ri=gt==null&&hn==Dt,Xr=Bt==0,Qn=!Gt||Bt==Gt.length-1;if(Fr.top-mr.top<=3){var Dr=(j?Sa:Ri)&&Xr,ro=(j?Ri:Sa)&&Qn,Mi=Dr?T:(pt?mr:Fr).left,Zi=ro?M:(pt?Fr:mr).right;le(Mi,mr.top,Zi-Mi,mr.bottom)}else{var qi,Qr,no,Ks;pt?(qi=j&&Sa&&Xr?T:mr.left,Qr=j?M:An(Nr,L,"before"),no=j?T:An(hn,L,"after"),Ks=j&&Ri&&Qn?M:Fr.right):(qi=j?An(Nr,L,"before"):T,Qr=!j&&Sa&&Xr?M:mr.right,no=!j&&Ri&&Qn?T:Fr.left,Ks=j?An(hn,L,"after"):M),le(qi,mr.top,Qr-qi,mr.bottom),mr.bottom<Fr.top&&le(T,mr.bottom,null,Fr.top),le(no,Fr.top,Ks-no,Fr.bottom)}(!dr||ps(mr,dr)<0)&&(dr=mr),ps(Fr,dr)<0&&(dr=Fr),(!zr||ps(mr,zr)<0)&&(zr=mr),ps(Fr,zr)<0&&(zr=Fr)}),{start:dr,end:zr}}var we=i.from(),ye=i.to();if(we.line==ye.line)de(we.line,we.ch,ye.ch);else{var Ie=lt(f,we.line),Ne=lt(f,ye.line),He=Mn(Ie)==Mn(Ne),Ye=de(we.line,we.ch,He?Ie.text.length+1:null).end,Qe=de(ye.line,He?0:null,ye.ch).start;He&&(Ye.top<Qe.top-2?(le(Ye.right,Ye.top,null,Ye.bottom),le(T,Qe.top,Qe.left,Qe.bottom)):le(Ye.right,Ye.top,Qe.left-Ye.right,Ye.bottom)),Ye.bottom<Qe.top&&le(T,Ye.bottom,null,Qe.top)}u.appendChild(g)}function hs(t){if(!!t.state.focused){var i=t.display;clearInterval(i.blinker);var u=!0;i.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?i.blinker=setInterval(function(){t.hasFocus()||bn(t),i.cursorDiv.style.visibility=(u=!u)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Qu(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||vs(t))}function Fl(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&bn(t))},100)}function vs(t,i){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Ke(t,"focus",t,i),t.state.focused=!0,je(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),U&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),hs(t))}function bn(t,i){t.state.delayingBlurEvent||(t.state.focused&&(Ke(t,"blur",t,i),t.state.focused=!1,H(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function gs(t){for(var i=t.display,u=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),f=i.lineDiv.getBoundingClientRect().top,g=0,S=0;S<i.view.length;S++){var T=i.view[S],M=t.options.lineWrapping,j=void 0,le=0;if(!T.hidden){if(f+=T.line.height,O&&k<8){var de=T.node.offsetTop+T.node.offsetHeight;j=de-u,u=de}else{var we=T.node.getBoundingClientRect();j=we.bottom-we.top,!M&&T.text.firstChild&&(le=T.text.firstChild.getBoundingClientRect().right-we.left-1)}var ye=T.line.height-j;if((ye>.005||ye<-.005)&&(f<l&&(g-=ye),Rn(T.line,j),ms(T.line),T.rest))for(var Ie=0;Ie<T.rest.length;Ie++)ms(T.rest[Ie]);if(le>t.display.sizerWidth){var Ne=Math.ceil(le/fa(t.display));Ne>t.display.maxLineLength&&(t.display.maxLineLength=Ne,t.display.maxLine=T.line,t.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function ms(t){if(t.widgets)for(var i=0;i<t.widgets.length;++i){var u=t.widgets[i],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function ys(t,i,u){var l=u&&u.top!=null?Math.max(0,u.top):t.scroller.scrollTop;l=Math.floor(l-Da(t));var f=u&&u.bottom!=null?u.bottom:l+t.wrapper.clientHeight,g=ti(i,l),S=ti(i,f);if(u&&u.ensure){var T=u.ensure.from.line,M=u.ensure.to.line;T<g?(g=T,S=ti(i,wi(lt(i,T))+t.wrapper.clientHeight)):Math.min(M,i.lastLine())>=S&&(g=ti(i,wi(lt(i,M))-t.wrapper.clientHeight),S=M)}return{from:g,to:Math.max(S,g+1)}}function Qc(t,i){if(!st(t,"scrollCursorIntoView")){var u=t.display,l=u.sizer.getBoundingClientRect(),f=null,g=u.wrapper.ownerDocument;if(i.top+l.top<0?f=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(f=!1),f!=null&&!P){var S=_("div","\u200B",null,`position: absolute;
20
+ top: `+(i.top-u.viewOffset-Da(t.display))+`px;
21
+ height: `+(i.bottom-i.top+oi(t)+u.barHeight)+`px;
22
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");t.display.lineSpace.appendChild(S),S.scrollIntoView(f),t.display.lineSpace.removeChild(S)}}}function Zc(t,i,u,l){l==null&&(l=0);var f;!t.options.lineWrapping&&i==u&&(u=i.sticky=="before"?B(i.line,i.ch+1,"before"):i,i=i.ch?B(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var S=!1,T=Yn(t,i),M=!u||u==i?T:Yn(t,u);f={left:Math.min(T.left,M.left),top:Math.min(T.top,M.top)-l,right:Math.max(T.left,M.left),bottom:Math.max(T.bottom,M.bottom)+l};var j=Rl(t,f),le=t.doc.scrollTop,de=t.doc.scrollLeft;if(j.scrollTop!=null&&(yo(t,j.scrollTop),Math.abs(t.doc.scrollTop-le)>1&&(S=!0)),j.scrollLeft!=null&&(ca(t,j.scrollLeft),Math.abs(t.doc.scrollLeft-de)>1&&(S=!0)),!S)break}return f}function kl(t,i){var u=Rl(t,i);u.scrollTop!=null&&yo(t,u.scrollTop),u.scrollLeft!=null&&ca(t,u.scrollLeft)}function Rl(t,i){var u=t.display,l=ua(t.display);i.top<0&&(i.top=0);var f=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:u.scroller.scrollTop,g=bl(t),S={};i.bottom-i.top>g&&(i.bottom=i.top+g);var T=t.doc.height+yl(u),M=i.top<l,j=i.bottom>T-l;if(i.top<f)S.scrollTop=M?0:i.top;else if(i.bottom>f+g){var le=Math.min(i.top,(j?T:i.bottom)-g);le!=f&&(S.scrollTop=le)}var de=t.options.fixedGutter?0:u.gutters.offsetWidth,we=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:u.scroller.scrollLeft-de,ye=la(t)-u.gutters.offsetWidth,Ie=i.right-i.left>ye;return Ie&&(i.right=i.left+ye),i.left<10?S.scrollLeft=0:i.left<we?S.scrollLeft=Math.max(0,i.left+de-(Ie?0:10)):i.right>ye+we-3&&(S.scrollLeft=i.right+(Ie?0:10)-ye),S}function Ml(t,i){i!=null&&(bs(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+i)}function za(t){bs(t);var i=t.getCursor();t.curOp.scrollToPos={from:i,to:i,margin:t.options.cursorScrollMargin}}function mo(t,i,u){(i!=null||u!=null)&&bs(t),i!=null&&(t.curOp.scrollLeft=i),u!=null&&(t.curOp.scrollTop=u)}function qc(t,i){bs(t),t.curOp.scrollToPos=i}function bs(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var u=Yu(t,i.from),l=Yu(t,i.to);Zu(t,u,l,i.margin)}}function Zu(t,i,u,l){var f=Rl(t,{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});mo(t,f.scrollLeft,f.scrollTop)}function yo(t,i){Math.abs(t.doc.scrollTop-i)<2||(d||Dl(t,{top:i}),qu(t,i,!0),d&&Dl(t),So(t,100))}function qu(t,i,u){i=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,i)),!(t.display.scroller.scrollTop==i&&!u)&&(t.doc.scrollTop=i,t.display.scrollbars.setScrollTop(i),t.display.scroller.scrollTop!=i&&(t.display.scroller.scrollTop=i))}function ca(t,i,u,l){i=Math.max(0,Math.min(i,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((u?i==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-i)<2)&&!l)&&(t.doc.scrollLeft=i,jl(t),t.display.scroller.scrollLeft!=i&&(t.display.scroller.scrollLeft=i),t.display.scrollbars.setScrollLeft(i))}function bo(t){var i=t.display,u=i.gutters.offsetWidth,l=Math.round(t.doc.height+yl(t.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:t.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+oi(t)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var da=function(t,i,u){this.cm=u;var l=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,t(l),t(f),ce(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ce(f,"scroll",function(){f.clientWidth&&i(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,O&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};da.prototype.update=function(t){var i=t.scrollWidth>t.clientWidth+1,u=t.scrollHeight>t.clientHeight+1,l=t.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var f=t.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.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=t.barLeft+"px";var g=t.viewWidth-t.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:i?l:0}},da.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},da.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},da.prototype.zeroWidthHack=function(){var t=F&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Oe,this.disableVert=new Oe},da.prototype.enableZeroWidthBar=function(t,i,u){t.style.visibility="";function l(){var f=t.getBoundingClientRect(),g=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);g!=t?t.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},da.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var xo=function(){};xo.prototype.update=function(){return{bottom:0,right:0}},xo.prototype.setScrollLeft=function(){},xo.prototype.setScrollTop=function(){},xo.prototype.clear=function(){};function Ga(t,i){i||(i=bo(t));var u=t.display.barWidth,l=t.display.barHeight;_u(t,i);for(var f=0;f<4&&u!=t.display.barWidth||l!=t.display.barHeight;f++)u!=t.display.barWidth&&t.options.lineWrapping&&gs(t),_u(t,bo(t)),u=t.display.barWidth,l=t.display.barHeight}function _u(t,i){var u=t.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&&t.options.coverGutterNextToScrollbar&&t.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 Ll={native:da,null:xo};function ef(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&H(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Ll[t.options.scrollbarStyle](function(i){t.display.wrapper.insertBefore(i,t.display.scrollbarFiller),ce(i,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,u){u=="horizontal"?ca(t,i):yo(t,i)},t),t.display.scrollbars.addClass&&je(t.display.wrapper,t.display.scrollbars.addClass)}var tf=0;function si(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++tf,markArrays:null},Dc(t.curOp)}function $i(t){var i=t.curOp;i&&jc(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;_c(u)})}function _c(t){for(var i=t.ops,u=0;u<i.length;u++)ed(i[u]);for(var l=0;l<i.length;l++)td(i[l]);for(var f=0;f<i.length;f++)pa(i[f]);for(var g=0;g<i.length;g++)rd(i[g]);for(var S=0;S<i.length;S++)Xn(i[S])}function ed(t){var i=t.cm,u=i.display;id(i),t.updateMaxLine&&is(i),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<u.viewFrom||t.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&i.options.lineWrapping,t.update=t.mustUpdate&&new xs(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function td(t){t.updatedDisplay=t.mustUpdate&&$a(t.cm,t.update)}function pa(t){var i=t.cm,u=i.display;t.updatedDisplay&&gs(i),t.barMeasure=bo(i),u.maxLineChanged&&!i.options.lineWrapping&&(t.adjustWidthTo=zu(i,u.maxLine,u.maxLine.text.length).left+3,i.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+t.adjustWidthTo+oi(i)+i.display.barWidth),t.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+t.adjustWidthTo-la(i))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=u.input.prepareSelection())}function rd(t){var i=t.cm;t.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<i.doc.scrollLeft&&ca(i,Math.min(i.display.scroller.scrollLeft,t.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=t.focus&&t.focus==Ee(et(i));t.preparedSelection&&i.display.input.showSelection(t.preparedSelection,u),(t.updatedDisplay||t.startHeight!=i.doc.height)&&Ga(i,t.barMeasure),t.updatedDisplay&&Bl(i,t.barMeasure),t.selectionChanged&&hs(i),i.state.focused&&t.updateInput&&i.display.input.reset(t.typing),u&&Qu(t.cm)}function Xn(t){var i=t.cm,u=i.display,l=i.doc;if(t.updatedDisplay&&Ss(i,t.update),u.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),t.scrollTop!=null&&qu(i,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&ca(i,t.scrollLeft,!0,!0),t.scrollToPos){var f=Zc(i,ut(l,t.scrollToPos.from),ut(l,t.scrollToPos.to),t.scrollToPos.margin);Qc(i,f)}var g=t.maybeHiddenMarkers,S=t.maybeUnhiddenMarkers;if(g)for(var T=0;T<g.length;++T)g[T].lines.length||Ke(g[T],"hide");if(S)for(var M=0;M<S.length;++M)S[M].lines.length&&Ke(S[M],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),t.changeObjs&&Ke(i,"changes",i,t.changeObjs),t.update&&t.update.finish()}function xn(t,i){if(t.curOp)return i();si(t);try{return i()}finally{$i(t)}}function Hr(t,i){return function(){if(t.curOp)return i.apply(t,arguments);si(t);try{return i.apply(t,arguments)}finally{$i(t)}}}function Pr(t){return function(){if(this.curOp)return t.apply(this,arguments);si(this);try{return t.apply(this,arguments)}finally{$i(this)}}}function Ir(t){return function(){var i=this.cm;if(!i||i.curOp)return t.apply(this,arguments);si(i);try{return t.apply(this,arguments)}finally{$i(i)}}}function So(t,i){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(i,Tt(nd,t))}function nd(t){var i=t.doc;if(!(i.highlightFrontier>=t.display.viewTo)){var u=+new Date+t.options.workTime,l=Ia(t,i.highlightFrontier),f=[];i.iter(l.line,Math.min(i.first+i.size,t.display.viewTo+500),function(g){if(l.line>=t.display.viewFrom){var S=g.styles,T=g.text.length>t.options.maxHighlightLength?kn(i.mode,l.state):null,M=al(t,g,l,!0);T&&(l.state=T),g.styles=M.styles;var j=g.styleClasses,le=M.classes;le?g.styleClasses=le:j&&(g.styleClasses=null);for(var de=!S||S.length!=g.styles.length||j!=le&&(!j||!le||j.bgClass!=le.bgClass||j.textClass!=le.textClass),we=0;!de&&we<S.length;++we)de=S[we]!=g.styles[we];de&&f.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=t.options.maxHighlightLength&&fo(t,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return So(t,t.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),f.length&&xn(t,function(){for(var g=0;g<f.length;g++)Ci(t,f[g],"text")})}}var xs=function(t,i,u){var l=t.display;this.viewport=i,this.visible=ys(l,t.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=la(t),this.force=u,this.dims=Tl(t),this.events=[]};xs.prototype.signal=function(t,i){kt(t,i)&&this.events.push(arguments)},xs.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ke.apply(null,this.events[t])};function id(t){var i=t.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=oi(t)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=oi(t)+"px",i.scrollbarsClipped=!0)}function ad(t){if(t.hasFocus())return null;var i=Ee(et(t));if(!i||!ge(t.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=at(t).getSelection();l.anchorNode&&l.extend&&ge(t.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Nl(t){if(!(!t||!t.activeElt||t.activeElt==Ee(t.activeElt.ownerDocument))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ge(document.body,t.anchorNode)&&ge(document.body,t.focusNode))){var i=t.activeElt.ownerDocument,u=i.defaultView.getSelection(),l=i.createRange();l.setEnd(t.anchorNode,t.anchorOffset),l.collapse(!1),u.removeAllRanges(),u.addRange(l),u.extend(t.focusNode,t.focusOffset)}}function $a(t,i){var u=t.display,l=t.doc;if(i.editorIsHidden)return In(t),!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&&Il(t)==0)return!1;As(t)&&(In(t),i.dims=Tl(t));var f=l.first+l.size,g=Math.max(i.visible.from-t.options.viewportMargin,l.first),S=Math.min(f,i.visible.to+t.options.viewportMargin);u.viewFrom<g&&g-u.viewFrom<20&&(g=Math.max(l.first,u.viewFrom)),u.viewTo>S&&u.viewTo-S<20&&(S=Math.min(f,u.viewTo)),ni&&(g=Si(t.doc,g),S=cn(t.doc,S));var T=g!=u.viewFrom||S!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;Jc(t,g,S),u.viewOffset=wi(lt(t.doc,u.viewFrom)),t.display.mover.style.top=u.viewOffset+"px";var M=Il(t);if(!T&&M==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var j=ad(t);return M>4&&(u.lineDiv.style.display="none"),od(t,u.updateLineNumbers,i.dims),M>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Nl(j),fe(u.cursorDiv),fe(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,T&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,So(t,400)),u.updateLineNumbers=null,!0}function Ss(t,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!t.options.lineWrapping||i.oldDisplayWidth==la(t)){if(u&&u.top!=null&&(u={top:Math.min(t.doc.height+yl(t.display)-bl(t),u.top)}),i.visible=ys(t.display,t.doc,u),i.visible.from>=t.display.viewFrom&&i.visible.to<=t.display.viewTo)break}else l&&(i.visible=ys(t.display,t.doc,u));if(!$a(t,i))break;gs(t);var f=bo(t);Ha(t),Ga(t,f),Bl(t,f),i.force=!1}i.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(i.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Dl(t,i){var u=new xs(t,i);if($a(t,u)){gs(t),Ss(t,u);var l=bo(t);Ha(t),Ga(t,l),Bl(t,l),u.finish()}}function od(t,i,u){var l=t.display,f=t.options.lineNumbers,g=l.lineDiv,S=g.firstChild;function T(Ie){var Ne=Ie.nextSibling;return U&&F&&t.display.currentWheelTarget==Ie?Ie.style.display="none":Ie.parentNode.removeChild(Ie),Ne}for(var M=l.view,j=l.viewFrom,le=0;le<M.length;le++){var de=M[le];if(!de.hidden)if(!de.node||de.node.parentNode!=g){var we=Wc(t,de,j,u);g.insertBefore(we,S)}else{for(;S!=de.node;)S=T(S);var ye=f&&i!=null&&i<=j&&de.lineNumber;de.changes&&(be(de.changes,"gutter")>-1&&(ye=!1),ju(t,de,j,u)),ye&&(fe(de.lineNumber),de.lineNumber.appendChild(document.createTextNode(Pa(t.options,j)))),S=de.node.nextSibling}j+=de.size}for(;S;)S=T(S)}function ws(t){var i=t.gutters.offsetWidth;t.sizer.style.marginLeft=i+"px",Wr(t,"gutterChanged",t)}function Bl(t,i){t.display.sizer.style.minHeight=i.docHeight+"px",t.display.heightForcer.style.top=i.docHeight+"px",t.display.gutters.style.height=i.docHeight+t.display.barHeight+oi(t)+"px"}function jl(t){var i=t.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!t.options.fixedGutter))){for(var l=Pl(i)-i.scroller.scrollLeft+t.doc.scrollLeft,f=i.gutters.offsetWidth,g=l+"px",S=0;S<u.length;S++)if(!u[S].hidden){t.options.fixedGutter&&(u[S].gutter&&(u[S].gutter.style.left=g),u[S].gutterBackground&&(u[S].gutterBackground.style.left=g));var T=u[S].alignable;if(T)for(var M=0;M<T.length;M++)T[M].style.left=g}t.options.fixedGutter&&(i.gutters.style.left=l+f+"px")}}function As(t){if(!t.options.lineNumbers)return!1;var i=t.doc,u=Pa(t.options,i.first+i.size-1),l=t.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(_("div",[_("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=f.firstChild.offsetWidth,S=f.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-S)+1,l.lineNumWidth=l.lineNumInnerWidth+S,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",ws(t.display),!0}return!1}function Cs(t,i){for(var u=[],l=!1,f=0;f<t.length;f++){var g=t[f],S=null;if(typeof g!="string"&&(S=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;u.push({className:g,style:S})}return i&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function rf(t){var i=t.gutters,u=t.gutterSpecs;fe(i),t.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],g=f.className,S=f.style,T=i.appendChild(_("div",null,"CodeMirror-gutter "+g));S&&(T.style.cssText=S),g=="CodeMirror-linenumbers"&&(t.lineGutter=T,T.style.width=(t.lineNumWidth||1)+"px")}i.style.display=u.length?"":"none",ws(t)}function wo(t){rf(t.display),nn(t),jl(t)}function nf(t,i,u,l){var f=this;this.input=u,f.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=Q("div",null,"CodeMirror-code"),f.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=_("div",null,"CodeMirror-cursors"),f.measure=_("div",null,"CodeMirror-measure"),f.lineMeasure=_("div",null,"CodeMirror-measure"),f.lineSpace=Q("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var g=Q("div",[f.lineSpace],"CodeMirror-lines");f.mover=_("div",[g],null,"position: relative"),f.sizer=_("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=_("div",null,null,"position: absolute; height: "+De+"px; width: 1px;"),f.gutters=_("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=_("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=_("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),re&&ue>=105&&(f.wrapper.style.clipPath="inset(0px)"),f.wrapper.setAttribute("translate","no"),O&&k<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!U&&!(d&&C)&&(f.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(f.wrapper):t(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=Cs(l.gutters,l.lineNumbers),rf(f),u.init(f)}var Ao=0,Ei=null;O?Ei=-.53:d?Ei=15:re?Ei=-.7:ie&&(Ei=-1/3);function Vl(t){var i=t.wheelDeltaX,u=t.wheelDeltaY;return i==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(i=t.detail),u==null&&t.detail&&t.axis==t.VERTICAL_AXIS?u=t.detail:u==null&&(u=t.wheelDelta),{x:i,y:u}}function af(t){var i=Vl(t);return i.x*=Ei,i.y*=Ei,i}function of(t,i){re&&ue==102&&(t.display.chromeScrollHack==null?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var u=Vl(i),l=u.x,f=u.y,g=Ei;i.deltaMode===0&&(l=i.deltaX,f=i.deltaY,g=1);var S=t.display,T=S.scroller,M=T.scrollWidth>T.clientWidth,j=T.scrollHeight>T.clientHeight;if(!!(l&&M||f&&j)){if(f&&F&&U){e:for(var le=i.target,de=S.view;le!=T;le=le.parentNode)for(var we=0;we<de.length;we++)if(de[we].node==le){t.display.currentWheelTarget=le;break e}}if(l&&!d&&!ne&&g!=null){f&&j&&yo(t,Math.max(0,T.scrollTop+f*g)),ca(t,Math.max(0,T.scrollLeft+l*g)),(!f||f&&j)&&Nt(i),S.wheelStartX=null;return}if(f&&g!=null){var ye=f*g,Ie=t.doc.scrollTop,Ne=Ie+S.wrapper.clientHeight;ye<0?Ie=Math.max(0,Ie+ye-50):Ne=Math.min(t.doc.height,Ne+ye+50),Dl(t,{top:Ie,bottom:Ne})}Ao<20&&i.deltaMode!==0&&(S.wheelStartX==null?(S.wheelStartX=T.scrollLeft,S.wheelStartY=T.scrollTop,S.wheelDX=l,S.wheelDY=f,setTimeout(function(){if(S.wheelStartX!=null){var He=T.scrollLeft-S.wheelStartX,Ye=T.scrollTop-S.wheelStartY,Qe=Ye&&S.wheelDY&&Ye/S.wheelDY||He&&S.wheelDX&&He/S.wheelDX;S.wheelStartX=S.wheelStartY=null,Qe&&(Ei=(Ei*Ao+Qe)/(Ao+1),++Ao)}},200)):(S.wheelDX+=l,S.wheelDY+=f))}}var Sn=function(t,i){this.ranges=t,this.primIndex=i};Sn.prototype.primary=function(){return this.ranges[this.primIndex]},Sn.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var u=this.ranges[i],l=t.ranges[i];if(!Me(u.anchor,l.anchor)||!Me(u.head,l.head))return!1}return!0},Sn.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new rr(We(this.ranges[i].anchor),We(this.ranges[i].head));return new Sn(t,this.primIndex)},Sn.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Sn.prototype.contains=function(t,i){i||(i=t);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(se(i,l.from())>=0&&se(t,l.to())<=0)return u}return-1};var rr=function(t,i){this.anchor=t,this.head=i};rr.prototype.from=function(){return Vt(this.anchor,this.head)},rr.prototype.to=function(){return It(this.anchor,this.head)},rr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ln(t,i,u){var l=t&&t.options.selectionsMayTouch,f=i[u];i.sort(function(we,ye){return se(we.from(),ye.from())}),u=be(i,f);for(var g=1;g<i.length;g++){var S=i[g],T=i[g-1],M=se(T.to(),S.from());if(l&&!S.empty()?M>0:M>=0){var j=Vt(T.from(),S.from()),le=It(T.to(),S.to()),de=T.empty()?S.from()==S.head:T.from()==T.head;g<=u&&--u,i.splice(--g,2,new rr(de?le:j,de?j:le))}}return new Sn(i,u)}function Ki(t,i){return new Sn([new rr(t,i||t)],0)}function Yi(t){return t.text?B(t.from.line+t.text.length-1,nt(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function sf(t,i){if(se(t,i.from)<0)return t;if(se(t,i.to)<=0)return Yi(i);var u=t.line+i.text.length-(i.to.line-i.from.line)-1,l=t.ch;return t.line==i.to.line&&(l+=Yi(i).ch-i.to.ch),B(u,l)}function Oi(t,i){for(var u=[],l=0;l<t.sel.ranges.length;l++){var f=t.sel.ranges[l];u.push(new rr(sf(f.anchor,i),sf(f.head,i)))}return Ln(t.cm,u,t.sel.primIndex)}function lf(t,i,u){return t.line==i.line?B(u.line,t.ch-i.ch+u.ch):B(u.line+(t.line-i.line),t.ch)}function sd(t,i,u){for(var l=[],f=B(t.first,0),g=f,S=0;S<i.length;S++){var T=i[S],M=lf(T.from,f,g),j=lf(Yi(T),f,g);if(f=T.to,g=j,u=="around"){var le=t.sel.ranges[S],de=se(le.head,le.anchor)<0;l[S]=new rr(de?j:M,de?M:j)}else l[S]=new rr(M,M)}return new Sn(l,t.sel.primIndex)}function Ul(t){t.doc.mode=fn(t.options,t.doc.modeOption),Co(t)}function Co(t){t.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,So(t,100),t.state.modeGen++,t.curOp&&nn(t)}function Eo(t,i){return i.from.ch==0&&i.to.ch==0&&nt(i.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Oo(t,i,u,l){function f(Qe){return u?u[Qe]:null}function g(Qe,Je,rt){Mu(Qe,Je,rt,l),Wr(Qe,"change",Qe,i)}function S(Qe,Je){for(var rt=[],gt=Qe;gt<Je;++gt)rt.push(new Ra(j[gt],f(gt),l));return rt}var T=i.from,M=i.to,j=i.text,le=lt(t,T.line),de=lt(t,M.line),we=nt(j),ye=f(j.length-1),Ie=M.line-T.line;if(i.full)t.insert(0,S(0,j.length)),t.remove(j.length,t.size-j.length);else if(Eo(t,i)){var Ne=S(0,j.length-1);g(de,de.text,ye),Ie&&t.remove(T.line,Ie),Ne.length&&t.insert(T.line,Ne)}else if(le==de)if(j.length==1)g(le,le.text.slice(0,T.ch)+we+le.text.slice(M.ch),ye);else{var He=S(1,j.length-1);He.push(new Ra(we+le.text.slice(M.ch),ye,l)),g(le,le.text.slice(0,T.ch)+j[0],f(0)),t.insert(T.line+1,He)}else if(j.length==1)g(le,le.text.slice(0,T.ch)+j[0]+de.text.slice(M.ch),f(0)),t.remove(T.line+1,Ie);else{g(le,le.text.slice(0,T.ch)+j[0],f(0)),g(de,we+de.text.slice(M.ch),ye);var Ye=S(1,j.length-1);Ie>1&&t.remove(T.line+1,Ie-1),t.insert(T.line+1,Ye)}Wr(t,"change",t,i)}function Lr(t,i,u){function l(f,g,S){if(f.linked)for(var T=0;T<f.linked.length;++T){var M=f.linked[T];if(M.doc!=g){var j=S&&M.sharedHist;u&&!j||(i(M.doc,j),l(M.doc,f,j))}}}l(t,null,!0)}function Es(t,i){if(i.cm)throw new Error("This document is already in use.");t.doc=i,i.cm=t,fs(t),Ul(t),li(t),t.options.direction=i.direction,t.options.lineWrapping||is(t),t.options.mode=i.modeOption,nn(t)}function li(t){(t.doc.direction=="rtl"?je:H)(t.display.lineDiv,"CodeMirror-rtl")}function uf(t){xn(t,function(){li(t),nn(t)})}function To(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function ff(t,i){var u={from:We(i.from),to:Yi(i),text:bi(t,i.from,i.to)};return df(t,u,i.from.line,i.to.line+1),Lr(t,function(l){return df(l,u,i.from.line,i.to.line+1)},!0),u}function Os(t){for(;t.length;){var i=nt(t);if(i.ranges)t.pop();else break}}function cf(t,i){if(i)return Os(t.done),nt(t.done);if(t.done.length&&!nt(t.done).ranges)return nt(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),nt(t.done)}function Wl(t,i,u,l){var f=t.history;f.undone.length=0;var g=+new Date,S,T;if((f.lastOp==l||f.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&f.lastModTime>g-(t.cm?t.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(S=cf(f,f.lastOp==l)))T=nt(S.changes),se(i.from,i.to)==0&&se(i.from,T.to)==0?T.to=Yi(i):S.changes.push(ff(t,i));else{var M=nt(f.done);for((!M||!M.ranges)&&Ti(t.sel,f.done),S={changes:[ff(t,i)],generation:f.generation},f.done.push(S);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=g,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=i.origin,T||Ke(t,"historyAdded")}function Er(t,i,u,l){var f=i.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function ld(t,i,u,l){var f=t.history,g=l&&l.origin;u==f.lastSelOp||g&&f.lastSelOrigin==g&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==g||Er(t,g,nt(f.done),i))?f.done[f.done.length-1]=i:Ti(i,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=g,f.lastSelOp=u,l&&l.clearRedo!==!1&&Os(f.undone)}function Ti(t,i){var u=nt(i);u&&u.ranges&&u.equals(t)||i.push(t)}function df(t,i,u,l){var f=i["spans_"+t.id],g=0;t.iter(Math.max(t.first,u),Math.min(t.first+t.size,l),function(S){S.markedSpans&&((f||(f=i["spans_"+t.id]={}))[g]=S.markedSpans),++g})}function Po(t){if(!t)return null;for(var i,u=0;u<t.length;++u)t[u].marker.explicitlyCleared?i||(i=t.slice(0,u)):i&&i.push(t[u]);return i?i.length?i:null:t}function ha(t,i){var u=i["spans_"+t.id];if(!u)return null;for(var l=[],f=0;f<i.text.length;++f)l.push(Po(u[f]));return l}function Pi(t,i){var u=ha(t,i),l=co(t,i);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var g=u[f],S=l[f];if(g&&S){e:for(var T=0;T<S.length;++T){for(var M=S[T],j=0;j<g.length;++j)if(g[j].marker==M.marker)continue e;g.push(M)}}else S&&(u[f]=S)}return u}function Ka(t,i,u){for(var l=[],f=0;f<t.length;++f){var g=t[f];if(g.ranges){l.push(u?Sn.prototype.deepCopy.call(g):g);continue}var S=g.changes,T=[];l.push({changes:T});for(var M=0;M<S.length;++M){var j=S[M],le=void 0;if(T.push({from:j.from,to:j.to,text:j.text}),i)for(var de in j)(le=de.match(/^spans_(\d+)$/))&&be(i,Number(le[1]))>-1&&(nt(T)[de]=j[de],delete j[de])}}return l}function Ya(t,i,u,l){if(l){var f=t.anchor;if(u){var g=se(i,f)<0;g!=se(u,f)<0?(f=i,i=u):g!=se(i,u)<0&&(i=u)}return new rr(f,i)}else return new rr(u||i,i)}function Io(t,i,u,l,f){f==null&&(f=t.cm&&(t.cm.display.shift||t.extend)),Jr(t,new Sn([Ya(t.sel.primary(),i,u,f)],0),l)}function Ja(t,i,u){for(var l=[],f=t.cm&&(t.cm.display.shift||t.extend),g=0;g<t.sel.ranges.length;g++)l[g]=Ya(t.sel.ranges[g],i[g],null,f);var S=Ln(t.cm,l,t.sel.primIndex);Jr(t,S,u)}function Fo(t,i,u,l){var f=t.sel.ranges.slice(0);f[i]=u,Jr(t,Ln(t.cm,f,t.sel.primIndex),l)}function pf(t,i,u,l){Jr(t,Ki(i,u),l)}function ud(t,i,u){var l={ranges:i.ranges,update:function(f){this.ranges=[];for(var g=0;g<f.length;g++)this.ranges[g]=new rr(ut(t,f[g].anchor),ut(t,f[g].head))},origin:u&&u.origin};return Ke(t,"beforeSelectionChange",t,l),t.cm&&Ke(t.cm,"beforeSelectionChange",t.cm,l),l.ranges!=i.ranges?Ln(t.cm,l.ranges,l.ranges.length-1):i}function hf(t,i,u){var l=t.history.done,f=nt(l);f&&f.ranges?(l[l.length-1]=i,Ts(t,i,u)):Jr(t,i,u)}function Jr(t,i,u){Ts(t,i,u),ld(t,t.sel,t.cm?t.cm.curOp.id:NaN,u)}function Ts(t,i,u){(kt(t,"beforeSelectionChange")||t.cm&&kt(t.cm,"beforeSelectionChange"))&&(i=ud(t,i,u));var l=u&&u.bias||(se(i.primary().head,t.sel.primary().head)<0?-1:1);vf(t,Ps(t,i,l,!0)),!(u&&u.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&za(t.cm)}function vf(t,i){i.equals(t.sel)||(t.sel=i,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,xt(t.cm)),Wr(t,"cursorActivity",t))}function gf(t){vf(t,Ps(t,t.sel,null,!1))}function Ps(t,i,u,l){for(var f,g=0;g<i.ranges.length;g++){var S=i.ranges[g],T=i.ranges.length==t.sel.ranges.length&&t.sel.ranges[g],M=Is(t,S.anchor,T&&T.anchor,u,l),j=S.head==S.anchor?M:Is(t,S.head,T&&T.head,u,l);(f||M!=S.anchor||j!=S.head)&&(f||(f=i.ranges.slice(0,g)),f[g]=new rr(M,j))}return f?Ln(t.cm,f,i.primIndex):i}function Ji(t,i,u,l,f){var g=lt(t,i.line);if(g.markedSpans)for(var S=0;S<g.markedSpans.length;++S){var T=g.markedSpans[S],M=T.marker,j="selectLeft"in M?!M.selectLeft:M.inclusiveLeft,le="selectRight"in M?!M.selectRight:M.inclusiveRight;if((T.from==null||(j?T.from<=i.ch:T.from<i.ch))&&(T.to==null||(le?T.to>=i.ch:T.to>i.ch))){if(f&&(Ke(M,"beforeCursorEnter"),M.explicitlyCleared))if(g.markedSpans){--S;continue}else break;if(!M.atomic)continue;if(u){var de=M.find(l<0?1:-1),we=void 0;if((l<0?le:j)&&(de=fd(t,de,-l,de&&de.line==i.line?g:null)),de&&de.line==i.line&&(we=se(de,u))&&(l<0?we<0:we>0))return Ji(t,de,i,l,f)}var ye=M.find(l<0?-1:1);return(l<0?j:le)&&(ye=fd(t,ye,l,ye.line==i.line?g:null)),ye?Ji(t,ye,i,l,f):null}}return i}function Is(t,i,u,l,f){var g=l||1,S=Ji(t,i,u,g,f)||!f&&Ji(t,i,u,g,!0)||Ji(t,i,u,-g,f)||!f&&Ji(t,i,u,-g,!0);return S||(t.cantEdit=!0,B(t.first,0))}function fd(t,i,u,l){return u<0&&i.ch==0?i.line>t.first?ut(t,B(i.line-1)):null:u>0&&i.ch==(l||lt(t,i.line)).text.length?i.line<t.first+t.size-1?B(i.line+1,0):null:new B(i.line,i.ch+u)}function mf(t){t.setSelection(B(t.firstLine(),0),B(t.lastLine()),tt)}function Hl(t,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,g,S,T){f&&(l.from=ut(t,f)),g&&(l.to=ut(t,g)),S&&(l.text=S),T!==void 0&&(l.origin=T)}),Ke(t,"beforeChange",t,l),t.cm&&Ke(t.cm,"beforeChange",t.cm,l),l.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function Jt(t,i,u){if(t.cm){if(!t.cm.curOp)return Hr(t.cm,Jt)(t,i,u);if(t.cm.state.suppressEdits)return}if(!((kt(t,"beforeChange")||t.cm&&kt(t.cm,"beforeChange"))&&(i=Hl(t,i,!0),!i))){var l=Iu&&!u&&ts(t,i.from,i.to);if(l)for(var f=l.length-1;f>=0;--f)yf(t,{from:l[f].from,to:l[f].to,text:f?[""]:i.text,origin:i.origin});else yf(t,i)}}function yf(t,i){if(!(i.text.length==1&&i.text[0]==""&&se(i.from,i.to)==0)){var u=Oi(t,i);Wl(t,i,u,t.cm?t.cm.curOp.id:NaN),Xi(t,i,u,co(t,i));var l=[];Lr(t,function(f,g){!g&&be(l,f.history)==-1&&(wf(f.history,i),l.push(f.history)),Xi(f,i,null,co(f,i))})}}function ko(t,i,u){var l=t.cm&&t.cm.state.suppressEdits;if(!(l&&!u)){for(var f=t.history,g,S=t.sel,T=i=="undo"?f.done:f.undone,M=i=="undo"?f.undone:f.done,j=0;j<T.length&&(g=T[j],!(u?g.ranges&&!g.equals(t.sel):!g.ranges));j++);if(j!=T.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(g=T.pop(),g.ranges){if(Ti(g,M),u&&!g.equals(t.sel)){Jr(t,g,{clearRedo:!1});return}S=g}else if(l){T.push(g);return}else break;var le=[];Ti(S,M),M.push({changes:le,generation:f.generation}),f.generation=g.generation||++f.maxGeneration;for(var de=kt(t,"beforeChange")||t.cm&&kt(t.cm,"beforeChange"),we=function(Ne){var He=g.changes[Ne];if(He.origin=i,de&&!Hl(t,He,!1))return T.length=0,{};le.push(ff(t,He));var Ye=Ne?Oi(t,He):nt(T);Xi(t,He,Ye,Pi(t,He)),!Ne&&t.cm&&t.cm.scrollIntoView({from:He.from,to:Yi(He)});var Qe=[];Lr(t,function(Je,rt){!rt&&be(Qe,Je.history)==-1&&(wf(Je.history,He),Qe.push(Je.history)),Xi(Je,He,null,Pi(Je,He))})},ye=g.changes.length-1;ye>=0;--ye){var Ie=we(ye);if(Ie)return Ie.v}}}}function bf(t,i){if(i!=0&&(t.first+=i,t.sel=new Sn(Xe(t.sel.ranges,function(f){return new rr(B(f.anchor.line+i,f.anchor.ch),B(f.head.line+i,f.head.ch))}),t.sel.primIndex),t.cm)){nn(t.cm,t.first,t.first-i,i);for(var u=t.cm.display,l=u.viewFrom;l<u.viewTo;l++)Ci(t.cm,l,"gutter")}}function Xi(t,i,u,l){if(t.cm&&!t.cm.curOp)return Hr(t.cm,Xi)(t,i,u,l);if(i.to.line<t.first){bf(t,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>t.lastLine())){if(i.from.line<t.first){var f=i.text.length-1-(t.first-i.from.line);bf(t,f),i={from:B(t.first,0),to:B(i.to.line+f,i.to.ch),text:[nt(i.text)],origin:i.origin}}var g=t.lastLine();i.to.line>g&&(i={from:i.from,to:B(g,lt(t,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=bi(t,i.from,i.to),u||(u=Oi(t,i)),t.cm?cd(t.cm,i,l):Oo(t,i,l),Ts(t,u,tt),t.cantEdit&&Is(t,B(t.firstLine(),0))&&(t.cantEdit=!1)}}function cd(t,i,u){var l=t.doc,f=t.display,g=i.from,S=i.to,T=!1,M=g.line;t.options.lineWrapping||(M=tr(Mn(lt(l,g.line))),l.iter(M,S.line+1,function(ye){if(ye==f.maxLine)return T=!0,!0})),l.sel.contains(i.from,i.to)>-1&&xt(t),Oo(l,i,u,Wa(t)),t.options.lineWrapping||(l.iter(M,g.line+i.text.length,function(ye){var Ie=ns(ye);Ie>f.maxLineLength&&(f.maxLine=ye,f.maxLineLength=Ie,f.maxLineChanged=!0,T=!1)}),T&&(t.curOp.updateMaxLine=!0)),Pc(l,g.line),So(t,400);var j=i.text.length-(S.line-g.line)-1;i.full?nn(t):g.line==S.line&&i.text.length==1&&!Eo(t.doc,i)?Ci(t,g.line,"text"):nn(t,g.line,S.line+1,j);var le=kt(t,"changes"),de=kt(t,"change");if(de||le){var we={from:g,to:S,text:i.text,removed:i.removed,origin:i.origin};de&&Wr(t,"change",t,we),le&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(we)}t.display.selForContextMenu=null}function Xa(t,i,u,l,f){var g;l||(l=u),se(l,u)<0&&(g=[l,u],u=g[0],l=g[1]),typeof i=="string"&&(i=t.splitLines(i)),Jt(t,{from:u,to:l,text:i,origin:f})}function xf(t,i,u,l){u<t.line?t.line+=l:i<t.line&&(t.line=i,t.ch=0)}function Sf(t,i,u,l){for(var f=0;f<t.length;++f){var g=t[f],S=!0;if(g.ranges){g.copied||(g=t[f]=g.deepCopy(),g.copied=!0);for(var T=0;T<g.ranges.length;T++)xf(g.ranges[T].anchor,i,u,l),xf(g.ranges[T].head,i,u,l);continue}for(var M=0;M<g.changes.length;++M){var j=g.changes[M];if(u<j.from.line)j.from=B(j.from.line+l,j.from.ch),j.to=B(j.to.line+l,j.to.ch);else if(i<=j.to.line){S=!1;break}}S||(t.splice(0,f+1),f=0)}}function wf(t,i){var u=i.from.line,l=i.to.line,f=i.text.length-(l-u)-1;Sf(t.done,u,l,f),Sf(t.undone,u,l,f)}function Ro(t,i,u,l){var f=i,g=i;return typeof i=="number"?g=lt(t,ir(t,i)):f=tr(i),f==null?null:(l(g,f)&&t.cm&&Ci(t.cm,f,u),g)}function Qa(t){this.lines=t,this.parent=null;for(var i=0,u=0;u<t.length;++u)t[u].parent=this,i+=t[u].height;this.height=i}Qa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,i){for(var u=t,l=t+i;u<l;++u){var f=this.lines[u];this.height-=f.height,Lu(f),Wr(f,"delete")}this.lines.splice(t,i)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,i,u){this.height+=u,this.lines=this.lines.slice(0,t).concat(i).concat(this.lines.slice(t));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(t,i,u){for(var l=t+i;t<l;++t)if(u(this.lines[t]))return!0}};function va(t){this.children=t;for(var i=0,u=0,l=0;l<t.length;++l){var f=t[l];i+=f.chunkSize(),u+=f.height,f.parent=this}this.size=i,this.height=u,this.parent=null}va.prototype={chunkSize:function(){return this.size},removeInner:function(t,i){this.size-=i;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(t<f){var g=Math.min(i,f-t),S=l.height;if(l.removeInner(t,g),this.height-=S-l.height,f==g&&(this.children.splice(u--,1),l.parent=null),(i-=g)==0)break;t=0}else t-=f}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Qa))){var T=[];this.collapse(T),this.children=[new Qa(T)],this.children[0].parent=this}},collapse:function(t){for(var i=0;i<this.children.length;++i)this.children[i].collapse(t)},insertInner:function(t,i,u){this.size+=i.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],g=f.chunkSize();if(t<=g){if(f.insertInner(t,i,u),f.lines&&f.lines.length>50){for(var S=f.lines.length%25+25,T=S;T<f.lines.length;){var M=new Qa(f.lines.slice(T,T+=25));f.height-=M.height,this.children.splice(++l,0,M),M.parent=this}f.lines=f.lines.slice(0,S),this.maybeSpill()}break}t-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var i=t.children.splice(t.children.length-5,5),u=new va(i);if(t.parent){t.size-=u.size,t.height-=u.height;var f=be(t.parent.children,t);t.parent.children.splice(f+1,0,u)}else{var l=new va(t.children);l.parent=t,t.children=[l,u],t=l}u.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,i,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],g=f.chunkSize();if(t<g){var S=Math.min(i,g-t);if(f.iterN(t,S,u))return!0;if((i-=S)==0)break;t=0}else t-=g}}};var ga=function(t,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=t,this.node=i};ga.prototype.clear=function(){var t=this.doc.cm,i=this.line.widgets,u=this.line,l=tr(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 g=Na(this);Rn(u,Math.max(0,u.height-g)),t&&(xn(t,function(){Af(t,u,-g),Ci(t,l,"widget")}),Wr(t,"lineWidgetCleared",t,this,l))}},ga.prototype.changed=function(){var t=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Na(this)-i;!f||(Pn(this.doc,l)||Rn(l,l.height+f),u&&xn(u,function(){u.curOp.forceUpdate=!0,Af(u,l,f),Wr(u,"lineWidgetChanged",u,t,tr(l))}))},yr(ga);function Af(t,i,u){wi(i)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Ml(t,u)}function dd(t,i,u,l){var f=new ga(t,u,l),g=t.cm;return g&&f.noHScroll&&(g.display.alignWidgets=!0),Ro(t,i,"widget",function(S){var T=S.widgets||(S.widgets=[]);if(f.insertAt==null?T.push(f):T.splice(Math.min(T.length,Math.max(0,f.insertAt)),0,f),f.line=S,g&&!Pn(t,S)){var M=wi(S)<t.scrollTop;Rn(S,S.height+Na(f)),M&&Ml(g,f.height),g.curOp.forceUpdate=!0}return!0}),g&&Wr(g,"lineWidgetAdded",g,f,typeof i=="number"?i:tr(i)),f}var Cf=0,Ii=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++Cf};Ii.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,i=t&&!t.curOp;if(i&&si(t),kt(this,"clear")){var u=this.find();u&&Wr(this,"clear",u.from,u.to)}for(var l=null,f=null,g=0;g<this.lines.length;++g){var S=this.lines[g],T=Fa(S.markedSpans,this);t&&!this.collapsed?Ci(t,tr(S),"text"):t&&(T.to!=null&&(f=tr(S)),T.from!=null&&(l=tr(S))),S.markedSpans=kc(S.markedSpans,T),T.from==null&&this.collapsed&&!Pn(this.doc,S)&&t&&Rn(S,ua(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var M=0;M<this.lines.length;++M){var j=Mn(this.lines[M]),le=ns(j);le>t.display.maxLineLength&&(t.display.maxLine=j,t.display.maxLineLength=le,t.display.maxLineChanged=!0)}l!=null&&t&&this.collapsed&&nn(t,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&gf(t.doc)),t&&Wr(t,"markerCleared",t,this,l,f),i&&$i(t),this.parent&&this.parent.clear()}},Ii.prototype.find=function(t,i){t==null&&this.type=="bookmark"&&(t=1);for(var u,l,f=0;f<this.lines.length;++f){var g=this.lines[f],S=Fa(g.markedSpans,this);if(S.from!=null&&(u=B(i?g:tr(g),S.from),t==-1))return u;if(S.to!=null&&(l=B(i?g:tr(g),S.to),t==1))return l}return u&&{from:u,to:l}},Ii.prototype.changed=function(){var t=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||xn(l,function(){var f=i.line,g=tr(i.line),S=xl(l,g);if(S&&($u(S),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Pn(u.doc,f)&&u.height!=null){var T=u.height;u.height=null;var M=Na(u)-T;M&&Rn(f,f.height+M)}Wr(l,"markerChanged",l,t)})},Ii.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||be(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Ii.prototype.detachLine=function(t){if(this.lines.splice(be(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},yr(Ii);function ui(t,i,u,l,f){if(l&&l.shared)return ma(t,i,u,l,f);if(t.cm&&!t.cm.curOp)return Hr(t.cm,ui)(t,i,u,l,f);var g=new Ii(t,f),S=se(i,u);if(l&&St(l,g,!1),S>0||S==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=Q("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(dl(t,i.line,i,u,g)||i.line!=u.line&&dl(t,u.line,i,u,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");Fc()}g.addToHistory&&Wl(t,{from:i,to:u,origin:"markText"},t.sel,NaN);var T=i.line,M=t.cm,j;if(t.iter(T,u.line+1,function(de){M&&g.collapsed&&!M.options.lineWrapping&&Mn(de)==M.display.maxLine&&(j=!0),g.collapsed&&T!=i.line&&Rn(de,0),Rc(de,new es(g,T==i.line?i.ch:null,T==u.line?u.ch:null),t.cm&&t.cm.curOp),++T}),g.collapsed&&t.iter(i.line,u.line+1,function(de){Pn(t,de)&&Rn(de,0)}),g.clearOnEnter&&ce(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(Ic(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),g.collapsed&&(g.id=++Cf,g.atomic=!0),M){if(j&&(M.curOp.updateMaxLine=!0),g.collapsed)nn(M,i.line,u.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var le=i.line;le<=u.line;le++)Ci(M,le,"text");g.atomic&&gf(M.doc),Wr(M,"markerAdded",M,g)}return g}var Za=function(t,i){this.markers=t,this.primary=i;for(var u=0;u<t.length;++u)t[u].parent=this};Za.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Wr(this,"clear")}},Za.prototype.find=function(t,i){return this.primary.find(t,i)},yr(Za);function ma(t,i,u,l,f){l=St(l),l.shared=!1;var g=[ui(t,i,u,l,f)],S=g[0],T=l.widgetNode;return Lr(t,function(M){T&&(l.widgetNode=T.cloneNode(!0)),g.push(ui(M,ut(M,i),ut(M,u),l,f));for(var j=0;j<M.linked.length;++j)if(M.linked[j].isParent)return;S=nt(g)}),new Za(g,S)}function Ef(t){return t.findMarks(B(t.first,0),t.clipPos(B(t.lastLine())),function(i){return i.parent})}function Of(t,i){for(var u=0;u<i.length;u++){var l=i[u],f=l.find(),g=t.clipPos(f.from),S=t.clipPos(f.to);if(se(g,S)){var T=ui(t,g,S,l.primary,l.primary.type);l.markers.push(T),T.parent=l}}}function pd(t){for(var i=function(l){var f=t[l],g=[f.primary.doc];Lr(f.primary.doc,function(M){return g.push(M)});for(var S=0;S<f.markers.length;S++){var T=f.markers[S];be(g,T.doc)==-1&&(T.parent=null,f.markers.splice(S--,1))}},u=0;u<t.length;u++)i(u)}var Tf=0,dn=function(t,i,u,l,f){if(!(this instanceof dn))return new dn(t,i,u,l,f);u==null&&(u=0),va.call(this,[new Qa([new Ra("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var g=B(u,0);this.sel=Ki(g),this.history=new To(null),this.id=++Tf,this.modeOption=i,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),Oo(this,{from:g,to:g,text:t}),Jr(this,Ki(g),tt)};dn.prototype=Rr(va.prototype,{constructor:dn,iter:function(t,i,u){u?this.iterN(t-this.first,i-t,u):this.iterN(this.first,this.first+this.size,t)},insert:function(t,i){for(var u=0,l=0;l<i.length;++l)u+=i[l].height;this.insertInner(t-this.first,i,u)},remove:function(t,i){this.removeInner(t-this.first,i)},getValue:function(t){var i=na(this,this.first,this.first+this.size);return t===!1?i:i.join(t||this.lineSeparator())},setValue:Ir(function(t){var i=B(this.first,0),u=this.first+this.size-1;Jt(this,{from:i,to:B(u,lt(this,u).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&mo(this.cm,0,0),Jr(this,Ki(i),tt)}),replaceRange:function(t,i,u,l){i=ut(this,i),u=u?ut(this,u):i,Xa(this,t,i,u,l)},getRange:function(t,i,u){var l=bi(this,ut(this,t),ut(this,i));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(t){var i=this.getLineHandle(t);return i&&i.text},getLineHandle:function(t){if(ia(this,t))return lt(this,t)},getLineNumber:function(t){return tr(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=lt(this,t)),Mn(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ut(this,t)},getCursor:function(t){var i=this.sel.primary(),u;return t==null||t=="head"?u=i.head:t=="anchor"?u=i.anchor:t=="end"||t=="to"||t===!1?u=i.to():u=i.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ir(function(t,i,u){pf(this,ut(this,typeof t=="number"?B(t,i||0):t),null,u)}),setSelection:Ir(function(t,i,u){pf(this,ut(this,t),ut(this,i||t),u)}),extendSelection:Ir(function(t,i,u){Io(this,ut(this,t),i&&ut(this,i),u)}),extendSelections:Ir(function(t,i){Ja(this,qo(this,t),i)}),extendSelectionsBy:Ir(function(t,i){var u=Xe(this.sel.ranges,t);Ja(this,qo(this,u),i)}),setSelections:Ir(function(t,i,u){if(!!t.length){for(var l=[],f=0;f<t.length;f++)l[f]=new rr(ut(this,t[f].anchor),ut(this,t[f].head||t[f].anchor));i==null&&(i=Math.min(t.length-1,this.sel.primIndex)),Jr(this,Ln(this.cm,l,i),u)}}),addSelection:Ir(function(t,i,u){var l=this.sel.ranges.slice(0);l.push(new rr(ut(this,t),ut(this,i||t))),Jr(this,Ln(this.cm,l,l.length-1),u)}),getSelection:function(t){for(var i=this.sel.ranges,u,l=0;l<i.length;l++){var f=bi(this,i[l].from(),i[l].to());u=u?u.concat(f):f}return t===!1?u:u.join(t||this.lineSeparator())},getSelections:function(t){for(var i=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=bi(this,u[l].from(),u[l].to());t!==!1&&(f=f.join(t||this.lineSeparator())),i[l]=f}return i},replaceSelection:function(t,i,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=t;this.replaceSelections(l,i,u||"+input")},replaceSelections:Ir(function(t,i,u){for(var l=[],f=this.sel,g=0;g<f.ranges.length;g++){var S=f.ranges[g];l[g]={from:S.from(),to:S.to(),text:this.splitLines(t[g]),origin:u}}for(var T=i&&i!="end"&&sd(this,l,i),M=l.length-1;M>=0;M--)Jt(this,l[M]);T?hf(this,T):this.cm&&za(this.cm)}),undo:Ir(function(){ko(this,"undo")}),redo:Ir(function(){ko(this,"redo")}),undoSelection:Ir(function(){ko(this,"undo",!0)}),redoSelection:Ir(function(){ko(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,i=0,u=0,l=0;l<t.done.length;l++)t.done[l].ranges||++i;for(var f=0;f<t.undone.length;f++)t.undone[f].ranges||++u;return{undo:i,redo:u}},clearHistory:function(){var t=this;this.history=new To(this.history),Lr(this,function(i){return i.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ka(this.history.done),undone:Ka(this.history.undone)}},setHistory:function(t){var i=this.history=new To(this.history);i.done=Ka(t.done.slice(0),null,!0),i.undone=Ka(t.undone.slice(0),null,!0)},setGutterMarker:Ir(function(t,i,u){return Ro(this,t,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[i]=u,!u&&en(f)&&(l.gutterMarkers=null),!0})}),clearGutter:Ir(function(t){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[t]&&Ro(i,u,"gutter",function(){return u.gutterMarkers[t]=null,en(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(t){var i;if(typeof t=="number"){if(!ia(this,t)||(i=t,t=lt(this,t),!t))return null}else if(i=tr(t),i==null)return null;return{line:i,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Ir(function(t,i,u){return Ro(this,t,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(J(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:Ir(function(t,i,u){return Ro(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[f];if(g)if(u==null)l[f]=null;else{var S=g.match(J(u));if(!S)return!1;var T=S.index+S[0].length;l[f]=g.slice(0,S.index)+(!S.index||T==g.length?"":" ")+g.slice(T)||null}else return!1;return!0})}),addLineWidget:Ir(function(t,i,u){return dd(this,t,i,u)}),removeLineWidget:function(t){t.clear()},markText:function(t,i,u){return ui(this,ut(this,t),ut(this,i),u,u&&u.type||"range")},setBookmark:function(t,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 t=ut(this,t),ui(this,t,t,u,"bookmark")},findMarksAt:function(t){t=ut(this,t);var i=[],u=lt(this,t.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=t.ch)&&(f.to==null||f.to>=t.ch)&&i.push(f.marker.parent||f.marker)}return i},findMarks:function(t,i,u){t=ut(this,t),i=ut(this,i);var l=[],f=t.line;return this.iter(t.line,i.line+1,function(g){var S=g.markedSpans;if(S)for(var T=0;T<S.length;T++){var M=S[T];!(M.to!=null&&f==t.line&&t.ch>=M.to||M.from==null&&f!=t.line||M.from!=null&&f==i.line&&M.from>=i.ch)&&(!u||u(M.marker))&&l.push(M.marker.parent||M.marker)}++f}),l},getAllMarks:function(){var t=[];return this.iter(function(i){var u=i.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&t.push(u[l].marker)}),t},posFromIndex:function(t){var i,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var g=f.text.length+l;if(g>t)return i=t,!0;t-=g,++u}),ut(this,B(u,i))},indexFromPos:function(t){t=ut(this,t);var i=t.ch;if(t.line<this.first||t.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,t.line,function(l){i+=l.text.length+u}),i},copy:function(t){var i=new dn(na(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,t&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(t){t||(t={});var i=this.first,u=this.first+this.size;t.from!=null&&t.from>i&&(i=t.from),t.to!=null&&t.to<u&&(u=t.to);var l=new dn(na(this,i,u),t.mode||this.modeOption,i,this.lineSep,this.direction);return t.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:t.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],Of(l,Ef(this)),l},unlinkDoc:function(t){if(t instanceof gr&&(t=t.doc),this.linked)for(var i=0;i<this.linked.length;++i){var u=this.linked[i];if(u.doc==t){this.linked.splice(i,1),t.unlinkDoc(this),pd(Ef(this));break}}if(t.history==this.history){var l=[t.id];Lr(t,function(f){return l.push(f.id)},!0),t.history=new To(null),t.history.done=Ka(this.history.done,l),t.history.undone=Ka(this.history.undone,l)}},iterLinkedDocs:function(t){Lr(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Gn(t)},lineSeparator:function(){return this.lineSep||`
23
+ `},setDirection:Ir(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(i){return i.order=null}),this.cm&&uf(this.cm))})}),dn.prototype.eachLine=dn.prototype.iter;var zl=0;function Fs(t){var i=this;if(Rs(i),!(st(i,t)||ai(i.display,t))){Nt(t),O&&(zl=+new Date);var u=Gi(i,t,!0),l=t.dataTransfer.files;if(!(!u||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,g=Array(f),S=0,T=function(){++S==f&&Hr(i,function(){u=ut(i.doc,u);var ye={from:u,to:u,text:i.doc.splitLines(g.filter(function(Ie){return Ie!=null}).join(i.doc.lineSeparator())),origin:"paste"};Jt(i.doc,ye),hf(i.doc,Ki(ut(i.doc,u),ut(i.doc,Yi(ye))))})()},M=function(ye,Ie){if(i.options.allowDropFileTypes&&be(i.options.allowDropFileTypes,ye.type)==-1){T();return}var Ne=new FileReader;Ne.onerror=function(){return T()},Ne.onload=function(){var He=Ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(He)){T();return}g[Ie]=He,T()},Ne.readAsText(ye)},j=0;j<l.length;j++)M(l[j],j);else{if(i.state.draggingText&&i.doc.sel.contains(u)>-1){i.state.draggingText(t),setTimeout(function(){return i.display.input.focus()},20);return}try{var le=t.dataTransfer.getData("Text");if(le){var de;if(i.state.draggingText&&!i.state.draggingText.copy&&(de=i.listSelections()),Ts(i.doc,Ki(u,u)),de)for(var we=0;we<de.length;++we)Xa(i.doc,"",de[we].anchor,de[we].head,"drag");i.replaceSelection(le,"around","paste"),i.display.input.focus()}}catch(ye){}}}}function hd(t,i){if(O&&(!t.state.draggingText||+new Date-zl<100)){Ur(i);return}if(!(st(t,i)||ai(t.display,i))&&(i.dataTransfer.setData("Text",t.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!ie)){var u=_("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ne&&(u.width=u.height=1,t.display.wrapper.appendChild(u),u._top=u.offsetTop),i.dataTransfer.setDragImage(u,0,0),ne&&u.parentNode.removeChild(u)}}function ks(t,i){var u=Gi(t,i);if(!!u){var l=document.createDocumentFragment();ds(t,u,l),t.display.dragCursor||(t.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),he(t.display.dragCursor,l)}}function Rs(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Pf(t){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 g=0;g<u.length;g++)t(u[g])})}}var If=!1;function vd(){If||(Ff(),If=!0)}function Ff(){var t;ce(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,Pf(kf)},100))}),ce(window,"blur",function(){return Pf(bn)})}function kf(t){var i=t.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,t.setSize()}for(var Qi={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"},Mo=0;Mo<10;Mo++)Qi[Mo+48]=Qi[Mo+96]=String(Mo);for(var Ms=65;Ms<=90;Ms++)Qi[Ms]=String.fromCharCode(Ms);for(var Lo=1;Lo<=12;Lo++)Qi[Lo+111]=Qi[Lo+63235]="F"+Lo;var Fi={};Fi.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"},Fi.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"},Fi.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"},Fi.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"]},Fi.default=F?Fi.macDefault:Fi.pcDefault;function gd(t){var i=t.split(/-(?!$)/);t=i[i.length-1];for(var u,l,f,g,S=0;S<i.length-1;S++){var T=i[S];if(/^(cmd|meta|m)$/i.test(T))g=!0;else if(/^a(lt)?$/i.test(T))u=!0;else if(/^(c|ctrl|control)$/i.test(T))l=!0;else if(/^s(hift)?$/i.test(T))f=!0;else throw new Error("Unrecognized modifier name: "+T)}return u&&(t="Alt-"+t),l&&(t="Ctrl-"+t),g&&(t="Cmd-"+t),f&&(t="Shift-"+t),t}function Rf(t){var i={};for(var u in t)if(t.hasOwnProperty(u)){var l=t[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete t[u];continue}for(var f=Xe(u.split(" "),gd),g=0;g<f.length;g++){var S=void 0,T=void 0;g==f.length-1?(T=f.join(" "),S=l):(T=f.slice(0,g+1).join(" "),S="...");var M=i[T];if(!M)i[T]=S;else if(M!=S)throw new Error("Inconsistent bindings for "+T)}delete t[u]}for(var j in i)t[j]=i[j];return t}function qa(t,i,u,l){i=ki(i);var f=i.call?i.call(t,l):i[t];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 qa(t,i.fallthrough,u,l);for(var g=0;g<i.fallthrough.length;g++){var S=qa(t,i.fallthrough[g],u,l);if(S)return S}}}function Ls(t){var i=typeof t=="string"?t:Qi[t.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Gl(t,i,u){var l=t;return i.altKey&&l!="Alt"&&(t="Alt-"+t),(W?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(t="Ctrl-"+t),(W?i.ctrlKey:i.metaKey)&&l!="Mod"&&(t="Cmd-"+t),!u&&i.shiftKey&&l!="Shift"&&(t="Shift-"+t),t}function Mf(t,i){if(ne&&t.keyCode==34&&t.char)return!1;var u=Qi[t.keyCode];return u==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(u=t.code),Gl(u,t,i))}function ki(t){return typeof t=="string"?Fi[t]:t}function wn(t,i){for(var u=t.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var g=i(u[f]);l.length&&se(g.from,nt(l).to)<=0;){var S=l.pop();if(se(S.from,g.from)<0){g.from=S.from;break}}l.push(g)}xn(t,function(){for(var T=l.length-1;T>=0;T--)Xa(t.doc,"",l[T].from,l[T].to,"+delete");za(t)})}function Ns(t,i,u){var l=Lt(t.text,i+u,u);return l<0||l>t.text.length?null:l}function $l(t,i,u){var l=Ns(t,i.ch,u);return l==null?null:new B(i.line,l,u<0?"after":"before")}function Kl(t,i,u,l,f){if(t){i.doc.direction=="rtl"&&(f=-f);var g=ot(u,i.doc.direction);if(g){var S=f<0?nt(g):g[0],T=f<0==(S.level==1),M=T?"after":"before",j;if(S.level>0||i.doc.direction=="rtl"){var le=ja(i,u);j=f<0?u.text.length-1:0;var de=Kn(i,le,j).top;j=wt(function(we){return Kn(i,le,we).top==de},f<0==(S.level==1)?S.from:S.to-1,j),M=="before"&&(j=Ns(u,j,1))}else j=f<0?S.to:S.from;return new B(l,j,M)}}return new B(l,f<0?u.text.length:0,f<0?"before":"after")}function md(t,i,u,l){var f=ot(i,t.doc.direction);if(!f)return $l(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 g=vt(f,u.ch,u.sticky),S=f[g];if(t.doc.direction=="ltr"&&S.level%2==0&&(l>0?S.to>u.ch:S.from<u.ch))return $l(i,u,l);var T=function(Ye,Qe){return Ns(i,Ye instanceof B?Ye.ch:Ye,Qe)},M,j=function(Ye){return t.options.lineWrapping?(M=M||ja(t,i),Ju(t,i,M,Ye)):{begin:0,end:i.text.length}},le=j(u.sticky=="before"?T(u,-1):u.ch);if(t.doc.direction=="rtl"||S.level==1){var de=S.level==1==l<0,we=T(u,de?1:-1);if(we!=null&&(de?we<=S.to&&we<=le.end:we>=S.from&&we>=le.begin)){var ye=de?"before":"after";return new B(u.line,we,ye)}}var Ie=function(Ye,Qe,Je){for(var rt=function(dr,zr){return zr?new B(u.line,T(dr,1),"before"):new B(u.line,dr,"after")};Ye>=0&&Ye<f.length;Ye+=Qe){var gt=f[Ye],ct=Qe>0==(gt.level!=1),Dt=ct?Je.begin:T(Je.end,-1);if(gt.from<=Dt&&Dt<gt.to||(Dt=ct?gt.from:T(gt.to,-1),Je.begin<=Dt&&Dt<Je.end))return rt(Dt,ct)}},Ne=Ie(g+l,l,le);if(Ne)return Ne;var He=l>0?le.end:T(le.begin,-1);return He!=null&&!(l>0&&He==i.text.length)&&(Ne=Ie(l>0?0:f.length-1,l,j(He)),Ne)?Ne:null}var _a={selectAll:mf,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),tt)},killLine:function(t){return wn(t,function(i){if(i.empty()){var u=lt(t.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<t.lastLine()?{from:i.head,to:B(i.head.line+1,0)}:{from:i.head,to:B(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return wn(t,function(i){return{from:B(i.from().line,0),to:ut(t.doc,B(i.to().line+1,0))}})},delLineLeft:function(t){return wn(t,function(i){return{from:B(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(t){return wn(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(t){return wn(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div");return{from:i.from(),to:l}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(B(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(B(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(i){return Lf(t,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(i){return Ds(t,i.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(i){return Nf(t,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div")},bt)},goLineLeft:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:0,top:u},"div")},bt)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return l.ch<t.getLine(l.line).search(/\S/)?Ds(t,i.head):l},bt)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var i=[],u=t.listSelections(),l=t.options.tabSize,f=0;f<u.length;f++){var g=u[f].from(),S=Le(t.getLine(g.line),g.ch,l);i.push(zt(l-S%l))}t.replaceSelections(i)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return xn(t,function(){for(var i=t.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var f=i[l].head,g=lt(t.doc,f.line).text;if(g){if(f.ch==g.length&&(f=new B(f.line,f.ch-1)),f.ch>0)f=new B(f.line,f.ch+1),t.replaceRange(g.charAt(f.ch-1)+g.charAt(f.ch-2),B(f.line,f.ch-2),f,"+transpose");else if(f.line>t.doc.first){var S=lt(t.doc,f.line-1).text;S&&(f=new B(f.line,1),t.replaceRange(g.charAt(0)+t.doc.lineSeparator()+S.charAt(S.length-1),B(f.line-1,S.length-1),f,"+transpose"))}}u.push(new rr(f,f))}t.setSelections(u)})},newlineAndIndent:function(t){return xn(t,function(){for(var i=t.listSelections(),u=i.length-1;u>=0;u--)t.replaceRange(t.doc.lineSeparator(),i[u].anchor,i[u].head,"+input");i=t.listSelections();for(var l=0;l<i.length;l++)t.indentLine(i[l].from().line,null,!0);za(t)})},openLine:function(t){return t.replaceSelection(`
24
+ `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Lf(t,i){var u=lt(t.doc,i),l=Mn(u);return l!=u&&(i=tr(l)),Kl(!0,t,l,i,1)}function Nf(t,i){var u=lt(t.doc,i),l=Ru(u);return l!=u&&(i=tr(l)),Kl(!0,t,u,i,-1)}function Ds(t,i){var u=Lf(t,i.line),l=lt(t.doc,u.line),f=ot(l,t.doc.direction);if(!f||f[0].level==0){var g=Math.max(u.ch,l.text.search(/\S/)),S=i.line==u.line&&i.ch<=g&&i.ch;return B(u.line,S?0:g,u.sticky)}return u}function No(t,i,u){if(typeof i=="string"&&(i=_a[i],!i))return!1;t.display.input.ensurePolled();var l=t.display.shift,f=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),u&&(t.display.shift=!1),f=i(t)!=Ge}finally{t.display.shift=l,t.state.suppressEdits=!1}return f}function Df(t,i,u){for(var l=0;l<t.state.keyMaps.length;l++){var f=qa(i,t.state.keyMaps[l],u,t);if(f)return f}return t.options.extraKeys&&qa(i,t.options.extraKeys,u,t)||qa(i,t.options.keyMap,u,t)}var yd=new Oe;function eo(t,i,u,l){var f=t.state.keySeq;if(f){if(Ls(i))return"handled";if(/\'$/.test(i)?t.state.keySeq=null:yd.set(50,function(){t.state.keySeq==f&&(t.state.keySeq=null,t.display.input.reset())}),Bf(t,f+" "+i,u,l))return!0}return Bf(t,i,u,l)}function Bf(t,i,u,l){var f=Df(t,i,l);return f=="multi"&&(t.state.keySeq=i),f=="handled"&&Wr(t,"keyHandled",t,i,u),(f=="handled"||f=="multi")&&(Nt(u),hs(t)),!!f}function Bs(t,i){var u=Mf(i,!0);return u?i.shiftKey&&!t.state.keySeq?eo(t,"Shift-"+u,i,function(l){return No(t,l,!0)})||eo(t,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return No(t,l)}):eo(t,u,i,function(l){return No(t,l)}):!1}function Yl(t,i,u){return eo(t,"'"+u+"'",i,function(l){return No(t,l,!0)})}var js=null;function Jl(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&(i.curOp.focus=Ee(et(i)),!st(i,t))){O&&k<11&&t.keyCode==27&&(t.returnValue=!1);var u=t.keyCode;i.display.shift=u==16||t.shiftKey;var l=Bs(i,t);ne&&(js=l?u:null,!l&&u==88&&!Wi&&(F?t.metaKey:t.ctrlKey)&&i.replaceSelection("",null,"cut")),d&&!F&&!l&&u==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&bd(i)}}function bd(t){var i=t.display.lineDiv;je(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(H(i,"CodeMirror-crosshair"),Be(document,"keyup",u),Be(document,"mouseover",u))}ce(document,"keyup",u),ce(document,"mouseover",u)}function jf(t){t.keyCode==16&&(this.doc.sel.shift=!1),st(this,t)}function Vs(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&!(ai(i.display,t)||st(i,t)||t.ctrlKey&&!t.altKey||F&&t.metaKey)){var u=t.keyCode,l=t.charCode;if(ne&&u==js){js=null,Nt(t);return}if(!(ne&&(!t.which||t.which<10)&&Bs(i,t))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Yl(i,t,f)||i.display.input.onKeyPress(t))}}}var xd=400,Xl=function(t,i,u){this.time=t,this.pos=i,this.button=u};Xl.prototype.compare=function(t,i,u){return this.time+xd>t&&se(i,this.pos)==0&&u==this.button};var Do,Bo;function Sd(t,i){var u=+new Date;return Bo&&Bo.compare(u,t,i)?(Do=Bo=null,"triple"):Do&&Do.compare(u,t,i)?(Bo=new Xl(u,t,i),Do=null,"double"):(Do=new Xl(u,t,i),Bo=null,"single")}function Vf(t){var i=this,u=i.display;if(!(st(i,t)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=t.shiftKey,ai(u,t)){U||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Ws(i,t)){var l=Gi(i,t),f=vi(t),g=l?Sd(l,f):"single";at(i).focus(),f==1&&i.state.selectingText&&i.state.selectingText(t),!(l&&Ql(i,f,l,g,t))&&(f==1?l?Uf(i,l,g,t):Kr(t)==u.scroller&&Nt(t):f==2?(l&&Io(i.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(te?i.display.input.onContextMenu(t):Fl(i)))}}}function Ql(t,i,u,l,f){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,eo(t,Gl(g,f),f,function(S){if(typeof S=="string"&&(S=_a[S]),!S)return!1;var T=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),T=S(t,u)!=Ge}finally{t.state.suppressEdits=!1}return T})}function Us(t,i,u){var l=t.getOption("configureMouse"),f=l?l(t,i,u):{};if(f.unit==null){var g=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(f.extend==null||t.doc.extend)&&(f.extend=t.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=F?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(F?u.altKey:u.ctrlKey)),f}function Uf(t,i,u,l){O?setTimeout(Tt(Qu,t),0):t.curOp.focus=Ee(et(t));var f=Us(t,u,l),g=t.doc.sel,S;t.options.dragDrop&&tn&&!t.isReadOnly()&&u=="single"&&(S=g.contains(i))>-1&&(se((S=g.ranges[S]).from(),i)<0||i.xRel>0)&&(se(S.to(),i)>0||i.xRel<0)?Wf(t,l,i,f):wd(t,l,i,f)}function Wf(t,i,u,l){var f=t.display,g=!1,S=Hr(t,function(j){U&&(f.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Fl(t)),Be(f.wrapper.ownerDocument,"mouseup",S),Be(f.wrapper.ownerDocument,"mousemove",T),Be(f.scroller,"dragstart",M),Be(f.scroller,"drop",S),g||(Nt(j),l.addNew||Io(t.doc,u,null,null,l.extend),U&&!ie||O&&k==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),T=function(j){g=g||Math.abs(i.clientX-j.clientX)+Math.abs(i.clientY-j.clientY)>=10},M=function(){return g=!0};U&&(f.scroller.draggable=!0),t.state.draggingText=S,S.copy=!l.moveOnDrag,ce(f.wrapper.ownerDocument,"mouseup",S),ce(f.wrapper.ownerDocument,"mousemove",T),ce(f.scroller,"dragstart",M),ce(f.scroller,"drop",S),t.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Hf(t,i,u){if(u=="char")return new rr(i,i);if(u=="word")return t.findWordAt(i);if(u=="line")return new rr(B(i.line,0),ut(t.doc,B(i.line+1,0)));var l=u(t,i);return new rr(l.from,l.to)}function wd(t,i,u,l){O&&Fl(t);var f=t.display,g=t.doc;Nt(i);var S,T,M=g.sel,j=M.ranges;if(l.addNew&&!l.extend?(T=g.sel.contains(u),T>-1?S=j[T]:S=new rr(u,u)):(S=g.sel.primary(),T=g.sel.primIndex),l.unit=="rectangle")l.addNew||(S=new rr(u,u)),u=Gi(t,i,!0,!0),T=-1;else{var le=Hf(t,u,l.unit);l.extend?S=Ya(S,le.anchor,le.head,l.extend):S=le}l.addNew?T==-1?(T=j.length,Jr(g,Ln(t,j.concat([S]),T),{scroll:!1,origin:"*mouse"})):j.length>1&&j[T].empty()&&l.unit=="char"&&!l.extend?(Jr(g,Ln(t,j.slice(0,T).concat(j.slice(T+1)),0),{scroll:!1,origin:"*mouse"}),M=g.sel):Fo(g,T,S,Ze):(T=0,Jr(g,new Sn([S],0),Ze),M=g.sel);var de=u;function we(Je){if(se(de,Je)!=0)if(de=Je,l.unit=="rectangle"){for(var rt=[],gt=t.options.tabSize,ct=Le(lt(g,u.line).text,u.ch,gt),Dt=Le(lt(g,Je.line).text,Je.ch,gt),dr=Math.min(ct,Dt),zr=Math.max(ct,Dt),Sr=Math.min(u.line,Je.line),An=Math.min(t.lastLine(),Math.max(u.line,Je.line));Sr<=An;Sr++){var Gt=lt(g,Sr).text,Nr=Et(Gt,dr,gt);dr==zr?rt.push(new rr(B(Sr,Nr),B(Sr,Nr))):Gt.length>Nr&&rt.push(new rr(B(Sr,Nr),B(Sr,Et(Gt,zr,gt))))}rt.length||rt.push(new rr(u,u)),Jr(g,Ln(t,M.ranges.slice(0,T).concat(rt),T),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Je)}else{var hn=S,L=Hf(t,Je,l.unit),Bt=hn.anchor,pt;se(L.anchor,Bt)>0?(pt=L.head,Bt=Vt(hn.from(),L.anchor)):(pt=L.anchor,Bt=It(hn.to(),L.head));var mr=M.ranges.slice(0);mr[T]=ya(t,new rr(ut(g,Bt),pt)),Jr(g,Ln(t,mr,T),Ze)}}var ye=f.wrapper.getBoundingClientRect(),Ie=0;function Ne(Je){var rt=++Ie,gt=Gi(t,Je,!0,l.unit=="rectangle");if(!!gt)if(se(gt,de)!=0){t.curOp.focus=Ee(et(t)),we(gt);var ct=ys(f,g);(gt.line>=ct.to||gt.line<ct.from)&&setTimeout(Hr(t,function(){Ie==rt&&Ne(Je)}),150)}else{var Dt=Je.clientY<ye.top?-20:Je.clientY>ye.bottom?20:0;Dt&&setTimeout(Hr(t,function(){Ie==rt&&(f.scroller.scrollTop+=Dt,Ne(Je))}),50)}}function He(Je){t.state.selectingText=!1,Ie=1/0,Je&&(Nt(Je),f.input.focus()),Be(f.wrapper.ownerDocument,"mousemove",Ye),Be(f.wrapper.ownerDocument,"mouseup",Qe),g.history.lastSelOrigin=null}var Ye=Hr(t,function(Je){Je.buttons===0||!vi(Je)?He(Je):Ne(Je)}),Qe=Hr(t,He);t.state.selectingText=Qe,ce(f.wrapper.ownerDocument,"mousemove",Ye),ce(f.wrapper.ownerDocument,"mouseup",Qe)}function ya(t,i){var u=i.anchor,l=i.head,f=lt(t.doc,u.line);if(se(u,l)==0&&u.sticky==l.sticky)return i;var g=ot(f);if(!g)return i;var S=vt(g,u.ch,u.sticky),T=g[S];if(T.from!=u.ch&&T.to!=u.ch)return i;var M=S+(T.from==u.ch==(T.level!=1)?0:1);if(M==0||M==g.length)return i;var j;if(l.line!=u.line)j=(l.line-u.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var le=vt(g,l.ch,l.sticky),de=le-S||(l.ch-u.ch)*(T.level==1?-1:1);le==M-1||le==M?j=de<0:j=de>0}var we=g[M+(j?-1:0)],ye=j==(we.level==1),Ie=ye?we.from:we.to,Ne=ye?"after":"before";return u.ch==Ie&&u.sticky==Ne?i:new rr(new B(u.line,Ie,Ne),l)}function Zl(t,i,u,l){var f,g;if(i.touches)f=i.touches[0].clientX,g=i.touches[0].clientY;else try{f=i.clientX,g=i.clientY}catch(we){return!1}if(f>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;l&&Nt(i);var S=t.display,T=S.lineDiv.getBoundingClientRect();if(g>T.bottom||!kt(t,u))return zn(i);g-=T.top-S.viewOffset;for(var M=0;M<t.display.gutterSpecs.length;++M){var j=S.gutters.childNodes[M];if(j&&j.getBoundingClientRect().right>=f){var le=ti(t.doc,g),de=t.display.gutterSpecs[M];return Ke(t,u,t,le,de.className,i),zn(i)}}}function Ws(t,i){return Zl(t,i,"gutterClick",!0)}function ql(t,i){ai(t.display,i)||Op(t,i)||st(t,i,"contextmenu")||te||t.display.input.onContextMenu(i)}function Op(t,i){return kt(t,"gutterContextMenu")?Zl(t,i,"gutterContextMenu",!1):!1}function jo(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Va(t)}var to={toString:function(){return"CodeMirror.Init"}},_l={},Hs={};function Ad(t){var i=t.optionHandlers;function u(l,f,g,S){t.defaults[l]=f,g&&(i[l]=S?function(T,M,j){j!=to&&g(T,M,j)}:g)}t.defineOption=u,t.Init=to,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Ul(l)},!0),u("indentUnit",2,Ul,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Co(l),Va(l),nn(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var g=[],S=l.doc.first;l.doc.iter(function(M){for(var j=0;;){var le=M.text.indexOf(f,j);if(le==-1)break;j=le+f.length,g.push(B(S,le))}S++});for(var T=g.length-1;T>=0;T--)Xa(l.doc,f,g[T],B(g[T].line,g[T].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,f,g){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),g!=to&&l.refresh()}),u("specialCharPlaceholder",as,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",C?"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",!X),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){jo(l),wo(l)},!0),u("keyMap","default",function(l,f,g){var S=ki(f),T=g!=to&&ki(g);T&&T.detach&&T.detach(l,S),S.attach&&S.attach(l,T||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Gf,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Cs(f,l.options.lineNumbers),wo(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Pl(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return Ga(l)},!0),u("scrollbarStyle","native",function(l){ef(l),Ga(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=Cs(l.options.gutters,f),wo(l)},!0),u("firstLineNumber",1,wo,!0),u("lineNumberFormatter",function(l){return l},wo,!0),u("showCursorWhenSelecting",!1,Ha,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(bn(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,zf),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Ha,!0),u("singleCursorHeightPerLine",!0,Ha,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Co,!0),u("addModeClass",!1,Co,!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,Co,!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 zf(t,i,u){var l=u&&u!=to;if(!i!=!l){var f=t.display.dragFunctions,g=i?ce:Be;g(t.display.scroller,"dragstart",f.start),g(t.display.scroller,"dragenter",f.enter),g(t.display.scroller,"dragover",f.over),g(t.display.scroller,"dragleave",f.leave),g(t.display.scroller,"drop",f.drop)}}function Gf(t){t.options.lineWrapping?(je(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(H(t.display.wrapper,"CodeMirror-wrap"),is(t)),fs(t),nn(t),Va(t),setTimeout(function(){return Ga(t)},100)}function gr(t,i){var u=this;if(!(this instanceof gr))return new gr(t,i);this.options=i=i?St(i):{},St(_l,i,!1);var l=i.value;typeof l=="string"?l=new dn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var f=new gr.inputStyles[i.inputStyle](this),g=this.display=new nf(t,l,f,i);g.wrapper.CodeMirror=this,jo(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ef(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 Oe,keySeq:null,specialChars:null},i.autofocus&&!C&&g.input.focus(),O&&k<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Cd(this),vd(),si(this),this.curOp.forceUpdate=!0,Es(this,l),i.autofocus&&!C||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&vs(u)},20):bn(this);for(var S in Hs)Hs.hasOwnProperty(S)&&Hs[S](this,i[S],to);As(this),i.finishInit&&i.finishInit(this);for(var T=0;T<zs.length;++T)zs[T](this);$i(this),U&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}gr.defaults=_l,gr.optionHandlers=Hs;function Cd(t){var i=t.display;ce(i.scroller,"mousedown",Hr(t,Vf)),O&&k<11?ce(i.scroller,"dblclick",Hr(t,function(M){if(!st(t,M)){var j=Gi(t,M);if(!(!j||Ws(t,M)||ai(t.display,M))){Nt(M);var le=t.findWordAt(j);Io(t.doc,le.anchor,le.head)}}})):ce(i.scroller,"dblclick",function(M){return st(t,M)||Nt(M)}),ce(i.scroller,"contextmenu",function(M){return ql(t,M)}),ce(i.input.getField(),"contextmenu",function(M){i.scroller.contains(M.target)||ql(t,M)});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 g(M){if(M.touches.length!=1)return!1;var j=M.touches[0];return j.radiusX<=1&&j.radiusY<=1}function S(M,j){if(j.left==null)return!0;var le=j.left-M.left,de=j.top-M.top;return le*le+de*de>20*20}ce(i.scroller,"touchstart",function(M){if(!st(t,M)&&!g(M)&&!Ws(t,M)){i.input.ensurePolled(),clearTimeout(u);var j=+new Date;i.activeTouch={start:j,moved:!1,prev:j-l.end<=300?l:null},M.touches.length==1&&(i.activeTouch.left=M.touches[0].pageX,i.activeTouch.top=M.touches[0].pageY)}}),ce(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ce(i.scroller,"touchend",function(M){var j=i.activeTouch;if(j&&!ai(i,M)&&j.left!=null&&!j.moved&&new Date-j.start<300){var le=t.coordsChar(i.activeTouch,"page"),de;!j.prev||S(j,j.prev)?de=new rr(le,le):!j.prev.prev||S(j,j.prev.prev)?de=t.findWordAt(le):de=new rr(B(le.line,0),ut(t.doc,B(le.line+1,0))),t.setSelection(de.anchor,de.head),t.focus(),Nt(M)}f()}),ce(i.scroller,"touchcancel",f),ce(i.scroller,"scroll",function(){i.scroller.clientHeight&&(yo(t,i.scroller.scrollTop),ca(t,i.scroller.scrollLeft,!0),Ke(t,"scroll",t))}),ce(i.scroller,"mousewheel",function(M){return of(t,M)}),ce(i.scroller,"DOMMouseScroll",function(M){return of(t,M)}),ce(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(M){st(t,M)||Ur(M)},over:function(M){st(t,M)||(ks(t,M),Ur(M))},start:function(M){return hd(t,M)},drop:Hr(t,Fs),leave:function(M){st(t,M)||Rs(t)}};var T=i.input.getField();ce(T,"keyup",function(M){return jf.call(t,M)}),ce(T,"keydown",Hr(t,Jl)),ce(T,"keypress",Hr(t,Vs)),ce(T,"focus",function(M){return vs(t,M)}),ce(T,"blur",function(M){return bn(t,M)})}var zs=[];gr.defineInitHook=function(t){return zs.push(t)};function Vo(t,i,u,l){var f=t.doc,g;u==null&&(u="add"),u=="smart"&&(f.mode.indent?g=Ia(t,i).state:u="prev");var S=t.options.tabSize,T=lt(f,i),M=Le(T.text,null,S);T.stateAfter&&(T.stateAfter=null);var j=T.text.match(/^\s*/)[0],le;if(!l&&!/\S/.test(T.text))le=0,u="not";else if(u=="smart"&&(le=f.mode.indent(g,T.text.slice(j.length),T.text),le==Ge||le>150)){if(!l)return;u="prev"}u=="prev"?i>f.first?le=Le(lt(f,i-1).text,null,S):le=0:u=="add"?le=M+t.options.indentUnit:u=="subtract"?le=M-t.options.indentUnit:typeof u=="number"&&(le=M+u),le=Math.max(0,le);var de="",we=0;if(t.options.indentWithTabs)for(var ye=Math.floor(le/S);ye;--ye)we+=S,de+=" ";if(we<le&&(de+=zt(le-we)),de!=j)return Xa(f,de,B(i,0),B(i,j.length),"+input"),T.stateAfter=null,!0;for(var Ie=0;Ie<f.sel.ranges.length;Ie++){var Ne=f.sel.ranges[Ie];if(Ne.head.line==i&&Ne.head.ch<j.length){var He=B(i,j.length);Fo(f,Ie,new rr(He,He));break}}}var pn=null;function Gs(t){pn=t}function Uo(t,i,u,l,f){var g=t.doc;t.display.shift=!1,l||(l=g.sel);var S=+new Date-200,T=f=="paste"||t.state.pasteIncoming>S,M=Gn(i),j=null;if(T&&l.ranges.length>1)if(pn&&pn.text.join(`
25
+ `)==i){if(l.ranges.length%pn.text.length==0){j=[];for(var le=0;le<pn.text.length;le++)j.push(g.splitLines(pn.text[le]))}}else M.length==l.ranges.length&&t.options.pasteLinesPerSelection&&(j=Xe(M,function(Ye){return[Ye]}));for(var de=t.curOp.updateInput,we=l.ranges.length-1;we>=0;we--){var ye=l.ranges[we],Ie=ye.from(),Ne=ye.to();ye.empty()&&(u&&u>0?Ie=B(Ie.line,Ie.ch-u):t.state.overwrite&&!T?Ne=B(Ne.line,Math.min(lt(g,Ne.line).text.length,Ne.ch+nt(M).length)):T&&pn&&pn.lineWise&&pn.text.join(`
26
+ `)==M.join(`
27
+ `)&&(Ie=Ne=B(Ie.line,0)));var He={from:Ie,to:Ne,text:j?j[we%j.length]:M,origin:f||(T?"paste":t.state.cutIncoming>S?"cut":"+input")};Jt(t.doc,He),Wr(t,"inputRead",t,He)}i&&!T&&Kf(t,i),za(t),t.curOp.updateInput<2&&(t.curOp.updateInput=de),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function $f(t,i){var u=t.clipboardData&&t.clipboardData.getData("Text");if(u)return t.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&xn(i,function(){return Uo(i,u,0,null,"paste")}),!0}function Kf(t,i){if(!(!t.options.electricChars||!t.options.smartIndent))for(var u=t.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 g=t.getModeAt(f.head),S=!1;if(g.electricChars){for(var T=0;T<g.electricChars.length;T++)if(i.indexOf(g.electricChars.charAt(T))>-1){S=Vo(t,f.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(lt(t.doc,f.head.line).text.slice(0,f.head.ch))&&(S=Vo(t,f.head.line,"smart"));S&&Wr(t,"electricInput",t,f.head.line)}}}function Wo(t){for(var i=[],u=[],l=0;l<t.doc.sel.ranges.length;l++){var f=t.doc.sel.ranges[l].head.line,g={anchor:B(f,0),head:B(f+1,0)};u.push(g),i.push(t.getRange(g.anchor,g.head))}return{text:i,ranges:u}}function eu(t,i,u,l){t.setAttribute("autocorrect",u?"on":"off"),t.setAttribute("autocapitalize",l?"on":"off"),t.setAttribute("spellcheck",!!i)}function Ed(){var t=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=_("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return U?t.style.width="1000px":t.setAttribute("wrap","off"),$&&(t.style.border="1px solid black"),i}function Od(t){var i=t.optionHandlers,u=t.helpers={};t.prototype={constructor:t,focus:function(){at(this).focus(),this.display.input.focus()},setOption:function(l,f){var g=this.options,S=g[l];g[l]==f&&l!="mode"||(g[l]=f,i.hasOwnProperty(l)&&Hr(this,i[l])(this,f,S),Ke(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"](ki(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,g=0;g<f.length;++g)if(f[g]==l||f[g].name==l)return f.splice(g,1),!0},addOverlay:Pr(function(l,f){var g=l.token?l:t.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");er(this.state.overlays,{mode:g,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(S){return S.priority}),this.state.modeGen++,nn(this)}),removeOverlay:Pr(function(l){for(var f=this.state.overlays,g=0;g<f.length;++g){var S=f[g].modeSpec;if(S==l||typeof l=="string"&&S.name==l){f.splice(g,1),this.state.modeGen++,nn(this);return}}}),indentLine:Pr(function(l,f,g){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),ia(this.doc,l)&&Vo(this,l,f,g)}),indentSelection:Pr(function(l){for(var f=this.doc.sel.ranges,g=-1,S=0;S<f.length;S++){var T=f[S];if(T.empty())T.head.line>g&&(Vo(this,T.head.line,l,!0),g=T.head.line,S==this.doc.sel.primIndex&&za(this));else{var M=T.from(),j=T.to(),le=Math.max(g,M.line);g=Math.min(this.lastLine(),j.line-(j.ch?0:1))+1;for(var de=le;de<g;++de)Vo(this,de,l);var we=this.doc.sel.ranges;M.ch==0&&f.length==we.length&&we[S].from().ch>0&&Fo(this.doc,S,new rr(M,we[S].to()),tt)}}}),getTokenAt:function(l,f){return Tu(this,l,f)},getLineTokens:function(l,f){return Tu(this,B(l),f,!0)},getTokenTypeAt:function(l){l=ut(this.doc,l);var f=Cu(this,lt(this.doc,l.line)),g=0,S=(f.length-1)/2,T=l.ch,M;if(T==0)M=f[2];else for(;;){var j=g+S>>1;if((j?f[j*2-1]:0)>=T)S=j;else if(f[j*2+1]<T)g=j+1;else{M=f[j*2+2];break}}var le=M?M.indexOf("overlay "):-1;return le<0?M:le==0?null:M.slice(0,le-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?t.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var g=[];if(!u.hasOwnProperty(f))return g;var S=u[f],T=this.getModeAt(l);if(typeof T[f]=="string")S[T[f]]&&g.push(S[T[f]]);else if(T[f])for(var M=0;M<T[f].length;M++){var j=S[T[f][M]];j&&g.push(j)}else T.helperType&&S[T.helperType]?g.push(S[T.helperType]):S[T.name]&&g.push(S[T.name]);for(var le=0;le<S._global.length;le++){var de=S._global[le];de.pred(T,this)&&be(g,de.val)==-1&&g.push(de.val)}return g},getStateAfter:function(l,f){var g=this.doc;return l=ir(g,l==null?g.first+g.size-1:l),Ia(this,l+1,f).state},cursorCoords:function(l,f){var g,S=this.doc.sel.primary();return l==null?g=S.head:typeof l=="object"?g=ut(this.doc,l):g=l?S.from():S.to(),Yn(this,g,f||"page")},charCoords:function(l,f){return ss(this,ut(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Yr(this,l,f||"page"),El(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Yr(this,{top:l,left:0},f||"page").top,ti(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,g){var S=!1,T;if(typeof l=="number"){var M=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>M&&(l=M,S=!0),T=lt(this.doc,l)}else T=l;return go(this,T,{top:0,left:0},f||"page",g||S).top+(S?this.doc.height-wi(T):0)},defaultTextHeight:function(){return ua(this.display)},defaultCharWidth:function(){return fa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,g,S,T){var M=this.display;l=Yn(this,ut(this.doc,l));var j=l.bottom,le=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),M.sizer.appendChild(f),S=="over")j=l.top;else if(S=="above"||S=="near"){var de=Math.max(M.wrapper.clientHeight,this.doc.height),we=Math.max(M.sizer.clientWidth,M.lineSpace.clientWidth);(S=="above"||l.bottom+f.offsetHeight>de)&&l.top>f.offsetHeight?j=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=de&&(j=l.bottom),le+f.offsetWidth>we&&(le=we-f.offsetWidth)}f.style.top=j+"px",f.style.left=f.style.right="",T=="right"?(le=M.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(T=="left"?le=0:T=="middle"&&(le=(M.sizer.clientWidth-f.offsetWidth)/2),f.style.left=le+"px"),g&&kl(this,{left:le,top:j,right:le+f.offsetWidth,bottom:j+f.offsetHeight})},triggerOnKeyDown:Pr(Jl),triggerOnKeyPress:Pr(Vs),triggerOnKeyUp:jf,triggerOnMouseDown:Pr(Vf),execCommand:function(l){if(_a.hasOwnProperty(l))return _a[l].call(null,this)},triggerElectric:Pr(function(l){Kf(this,l)}),findPosH:function(l,f,g,S){var T=1;f<0&&(T=-1,f=-f);for(var M=ut(this.doc,l),j=0;j<f&&(M=tu(this.doc,M,T,g,S),!M.hitSide);++j);return M},moveH:Pr(function(l,f){var g=this;this.extendSelectionsBy(function(S){return g.display.shift||g.doc.extend||S.empty()?tu(g.doc,S.head,l,f,g.options.rtlMoveVisually):l<0?S.from():S.to()},bt)}),deleteH:Pr(function(l,f){var g=this.doc.sel,S=this.doc;g.somethingSelected()?S.replaceSelection("",null,"+delete"):wn(this,function(T){var M=tu(S,T.head,l,f,!1);return l<0?{from:M,to:T.head}:{from:T.head,to:M}})}),findPosV:function(l,f,g,S){var T=1,M=S;f<0&&(T=-1,f=-f);for(var j=ut(this.doc,l),le=0;le<f;++le){var de=Yn(this,j,"div");if(M==null?M=de.left:de.left=M,j=ru(this,de,T,g),j.hitSide)break}return j},moveV:Pr(function(l,f){var g=this,S=this.doc,T=[],M=!this.display.shift&&!S.extend&&S.sel.somethingSelected();if(S.extendSelectionsBy(function(le){if(M)return l<0?le.from():le.to();var de=Yn(g,le.head,"div");le.goalColumn!=null&&(de.left=le.goalColumn),T.push(de.left);var we=ru(g,de,l,f);return f=="page"&&le==S.sel.primary()&&Ml(g,ss(g,we,"div").top-de.top),we},bt),T.length)for(var j=0;j<S.sel.ranges.length;j++)S.sel.ranges[j].goalColumn=T[j]}),findWordAt:function(l){var f=this.doc,g=lt(f,l.line).text,S=l.ch,T=l.ch;if(g){var M=this.getHelper(l,"wordChars");(l.sticky=="before"||T==g.length)&&S?--S:++T;for(var j=g.charAt(S),le=Ar(j,M)?function(de){return Ar(de,M)}:/\s/.test(j)?function(de){return/\s/.test(de)}:function(de){return!/\s/.test(de)&&!Ar(de)};S>0&&le(g.charAt(S-1));)--S;for(;T<g.length&&le(g.charAt(T));)++T}return new rr(B(l.line,S),B(l.line,T))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?je(this.display.cursorDiv,"CodeMirror-overwrite"):H(this.display.cursorDiv,"CodeMirror-overwrite"),Ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ee(et(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Pr(function(l,f){mo(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-oi(this)-this.display.barHeight,width:l.scrollWidth-oi(this)-this.display.barWidth,clientHeight:bl(this),clientWidth:la(this)}},scrollIntoView:Pr(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:B(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?qc(this,l):Zu(this,l.from,l.to,l.margin)}),setSize:Pr(function(l,f){var g=this,S=function(M){return typeof M=="number"||/^\d+$/.test(String(M))?M+"px":M};l!=null&&(this.display.wrapper.style.width=S(l)),f!=null&&(this.display.wrapper.style.height=S(f)),this.options.lineWrapping&&Sl(this);var T=this.display.viewFrom;this.doc.iter(T,this.display.viewTo,function(M){if(M.widgets){for(var j=0;j<M.widgets.length;j++)if(M.widgets[j].noHScroll){Ci(g,T,"widget");break}}++T}),this.curOp.forceUpdate=!0,Ke(this,"refresh",this)}),operation:function(l){return xn(this,l)},startOperation:function(){return si(this)},endOperation:function(){return $i(this)},refresh:Pr(function(){var l=this.display.cachedTextHeight;nn(this),this.curOp.forceUpdate=!0,Va(this),mo(this,this.doc.scrollLeft,this.doc.scrollTop),ws(this.display),(l==null||Math.abs(l-ua(this.display))>.5||this.options.lineWrapping)&&fs(this),Ke(this,"refresh",this)}),swapDoc:Pr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Es(this,l),Va(this),this.display.input.reset(),mo(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Wr(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}},yr(t),t.registerHelper=function(l,f,g){u.hasOwnProperty(l)||(u[l]=t[l]={_global:[]}),u[l][f]=g},t.registerGlobalHelper=function(l,f,g,S){t.registerHelper(l,f,S),u[l]._global.push({pred:g,val:S})}}function tu(t,i,u,l,f){var g=i,S=u,T=lt(t,i.line),M=f&&t.direction=="rtl"?-u:u;function j(){var Qe=i.line+M;return Qe<t.first||Qe>=t.first+t.size?!1:(i=new B(Qe,i.ch,i.sticky),T=lt(t,Qe))}function le(Qe){var Je;if(l=="codepoint"){var rt=T.text.charCodeAt(i.ch+(u>0?0:-1));if(isNaN(rt))Je=null;else{var gt=u>0?rt>=55296&&rt<56320:rt>=56320&&rt<57343;Je=new B(i.line,Math.max(0,Math.min(T.text.length,i.ch+u*(gt?2:1))),-u)}}else f?Je=md(t.cm,T,i,u):Je=$l(T,i,u);if(Je==null)if(!Qe&&j())i=Kl(f,t.cm,T,i.line,M);else return!1;else i=Je;return!0}if(l=="char"||l=="codepoint")le();else if(l=="column")le(!0);else if(l=="word"||l=="group")for(var de=null,we=l=="group",ye=t.cm&&t.cm.getHelper(i,"wordChars"),Ie=!0;!(u<0&&!le(!Ie));Ie=!1){var Ne=T.text.charAt(i.ch)||`
28
+ `,He=Ar(Ne,ye)?"w":we&&Ne==`
29
+ `?"n":!we||/\s/.test(Ne)?null:"p";if(we&&!Ie&&!He&&(He="s"),de&&de!=He){u<0&&(u=1,le(),i.sticky="after");break}if(He&&(de=He),u>0&&!le(!Ie))break}var Ye=Is(t,i,g,S,!0);return Me(g,Ye)&&(Ye.hitSide=!0),Ye}function ru(t,i,u,l){var f=t.doc,g=i.left,S;if(l=="page"){var T=Math.min(t.display.wrapper.clientHeight,at(t).innerHeight||f(t).documentElement.clientHeight),M=Math.max(T-.5*ua(t.display),3);S=(u>0?i.bottom:i.top)+u*M}else l=="line"&&(S=u>0?i.bottom+3:i.top-3);for(var j;j=El(t,g,S),!!j.outside;){if(u<0?S<=0:S>=f.height){j.hitSide=!0;break}S+=u*5}return j}var lr=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Oe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};lr.prototype.init=function(t){var i=this,u=this,l=u.cm,f=u.div=t.lineDiv;f.contentEditable=!0,eu(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(T){for(var M=T.target;M;M=M.parentNode){if(M==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(M.className))break}return!1}ce(f,"paste",function(T){!g(T)||st(l,T)||$f(T,l)||k<=11&&setTimeout(Hr(l,function(){return i.updateFromDOM()}),20)}),ce(f,"compositionstart",function(T){i.composing={data:T.data,done:!1}}),ce(f,"compositionupdate",function(T){i.composing||(i.composing={data:T.data,done:!1})}),ce(f,"compositionend",function(T){i.composing&&(T.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),ce(f,"touchstart",function(){return u.forceCompositionEnd()}),ce(f,"input",function(){i.composing||i.readFromDOMSoon()});function S(T){if(!(!g(T)||st(l,T))){if(l.somethingSelected())Gs({lineWise:!1,text:l.getSelections()}),T.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var M=Wo(l);Gs({lineWise:!0,text:M.text}),T.type=="cut"&&l.operation(function(){l.setSelections(M.ranges,0,tt),l.replaceSelection("",null,"cut")})}else return;if(T.clipboardData){T.clipboardData.clearData();var j=pn.text.join(`
30
+ `);if(T.clipboardData.setData("Text",j),T.clipboardData.getData("Text")==j){T.preventDefault();return}}var le=Ed(),de=le.firstChild;eu(de),l.display.lineSpace.insertBefore(le,l.display.lineSpace.firstChild),de.value=pn.text.join(`
31
+ `);var we=Ee(f.ownerDocument);it(de),setTimeout(function(){l.display.lineSpace.removeChild(le),we.focus(),we==f&&u.showPrimarySelection()},50)}}ce(f,"copy",S),ce(f,"cut",S)},lr.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},lr.prototype.prepareSelection=function(){var t=Xu(this.cm,!1);return t.focus=Ee(this.div.ownerDocument)==this.div,t},lr.prototype.showSelection=function(t,i){!t||!this.cm.display.view.length||((t.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(t))},lr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},lr.prototype.showPrimarySelection=function(){var t=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){t.removeAllRanges();return}var g=$s(i,t.anchorNode,t.anchorOffset),S=$s(i,t.focusNode,t.focusOffset);if(!(g&&!g.bad&&S&&!S.bad&&se(Vt(g,S),l)==0&&se(It(g,S),f)==0)){var T=i.display.view,M=l.line>=i.display.viewFrom&&Yf(i,l)||{node:T[0].measure.map[2],offset:0},j=f.line<i.display.viewTo&&Yf(i,f);if(!j){var le=T[T.length-1].measure,de=le.maps?le.maps[le.maps.length-1]:le.map;j={node:de[de.length-1],offset:de[de.length-2]-de[de.length-3]}}if(!M||!j){t.removeAllRanges();return}var we=t.rangeCount&&t.getRangeAt(0),ye;try{ye=z(M.node,M.offset,j.offset,j.node)}catch(Ie){}ye&&(!d&&i.state.focused?(t.collapse(M.node,M.offset),ye.collapsed||(t.removeAllRanges(),t.addRange(ye))):(t.removeAllRanges(),t.addRange(ye)),we&&t.anchorNode==null?t.addRange(we):d&&this.startGracePeriod()),this.rememberSelection()}},lr.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},lr.prototype.showMultipleSelections=function(t){he(this.cm.display.cursorDiv,t.cursors),he(this.cm.display.selectionDiv,t.selection)},lr.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},lr.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var i=t.getRangeAt(0).commonAncestorContainer;return ge(this.div,i)},lr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Ee(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},lr.prototype.blur=function(){this.div.blur()},lr.prototype.getField=function(){return this.div},lr.prototype.supportsTouch=function(){return!0},lr.prototype.receivedFocus=function(){var t=this,i=this;this.selectionInEditor()?setTimeout(function(){return t.pollSelection()},20):xn(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)},lr.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},lr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),i=this.cm;if(D&&re&&this.cm.display.gutterSpecs.length&&Td(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=$s(i,t.anchorNode,t.anchorOffset),l=$s(i,t.focusNode,t.focusOffset);u&&l&&xn(i,function(){Jr(i.doc,Ki(u,l),tt),(u.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},lr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,i=t.display,u=t.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>t.firstLine()&&(l=B(l.line-1,lt(t.doc,l.line-1).length)),f.ch==lt(t.doc,f.line).text.length&&f.line<t.lastLine()&&(f=B(f.line+1,0)),l.line<i.viewFrom||f.line>i.viewTo-1)return!1;var g,S,T;l.line==i.viewFrom||(g=Ai(t,l.line))==0?(S=tr(i.view[0].line),T=i.view[0].node):(S=tr(i.view[g].line),T=i.view[g-1].node.nextSibling);var M=Ai(t,f.line),j,le;if(M==i.view.length-1?(j=i.viewTo-1,le=i.lineDiv.lastChild):(j=tr(i.view[M+1].line)-1,le=i.view[M+1].node.previousSibling),!T)return!1;for(var de=t.doc.splitLines(Jf(t,T,le,S,j)),we=bi(t.doc,B(S,0),B(j,lt(t.doc,j).text.length));de.length>1&&we.length>1;)if(nt(de)==nt(we))de.pop(),we.pop(),j--;else if(de[0]==we[0])de.shift(),we.shift(),S++;else break;for(var ye=0,Ie=0,Ne=de[0],He=we[0],Ye=Math.min(Ne.length,He.length);ye<Ye&&Ne.charCodeAt(ye)==He.charCodeAt(ye);)++ye;for(var Qe=nt(de),Je=nt(we),rt=Math.min(Qe.length-(de.length==1?ye:0),Je.length-(we.length==1?ye:0));Ie<rt&&Qe.charCodeAt(Qe.length-Ie-1)==Je.charCodeAt(Je.length-Ie-1);)++Ie;if(de.length==1&&we.length==1&&S==l.line)for(;ye&&ye>l.ch&&Qe.charCodeAt(Qe.length-Ie-1)==Je.charCodeAt(Je.length-Ie-1);)ye--,Ie++;de[de.length-1]=Qe.slice(0,Qe.length-Ie).replace(/^\u200b+/,""),de[0]=de[0].slice(ye).replace(/\u200b+$/,"");var gt=B(S,ye),ct=B(j,we.length?nt(we).length-Ie:0);if(de.length>1||de[0]||se(gt,ct))return Xa(t.doc,de,gt,ct,"+input"),!0},lr.prototype.ensurePolled=function(){this.forceCompositionEnd()},lr.prototype.reset=function(){this.forceCompositionEnd()},lr.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},lr.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},lr.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&xn(this.cm,function(){return nn(t.cm)})},lr.prototype.setUneditable=function(t){t.contentEditable="false"},lr.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Hr(this.cm,Uo)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},lr.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},lr.prototype.onContextMenu=function(){},lr.prototype.resetPosition=function(){},lr.prototype.needsContentAttribute=!0;function Yf(t,i){var u=xl(t,i.line);if(!u||u.hidden)return null;var l=lt(t.doc,i.line),f=os(u,l,i.line),g=ot(l,t.doc.direction),S="left";if(g){var T=vt(g,i.ch);S=T%2?"right":"left"}var M=vo(f.map,i.ch,S);return M.offset=M.collapse=="right"?M.end:M.start,M}function Td(t){for(var i=t;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ba(t,i){return i&&(t.bad=!0),t}function Jf(t,i,u,l,f){var g="",S=!1,T=t.doc.lineSeparator(),M=!1;function j(ye){return function(Ie){return Ie.id==ye}}function le(){S&&(g+=T,M&&(g+=T),S=M=!1)}function de(ye){ye&&(le(),g+=ye)}function we(ye){if(ye.nodeType==1){var Ie=ye.getAttribute("cm-text");if(Ie){de(Ie);return}var Ne=ye.getAttribute("cm-marker"),He;if(Ne){var Ye=t.findMarks(B(l,0),B(f+1,0),j(+Ne));Ye.length&&(He=Ye[0].find(0))&&de(bi(t.doc,He.from,He.to).join(T));return}if(ye.getAttribute("contenteditable")=="false")return;var Qe=/^(pre|div|p|li|table|br)$/i.test(ye.nodeName);if(!/^br$/i.test(ye.nodeName)&&ye.textContent.length==0)return;Qe&&le();for(var Je=0;Je<ye.childNodes.length;Je++)we(ye.childNodes[Je]);/^(pre|p)$/i.test(ye.nodeName)&&(M=!0),Qe&&(S=!0)}else ye.nodeType==3&&de(ye.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;we(i),i!=u;)i=i.nextSibling,M=!1;return g}function $s(t,i,u){var l;if(i==t.display.lineDiv){if(l=t.display.lineDiv.childNodes[u],!l)return ba(t.clipPos(B(t.display.viewTo-1)),!0);i=null,u=0}else for(l=i;;l=l.parentNode){if(!l||l==t.display.lineDiv)return null;if(l.parentNode&&l.parentNode==t.display.lineDiv)break}for(var f=0;f<t.display.view.length;f++){var g=t.display.view[f];if(g.node==l)return Pd(g,i,u)}}function Pd(t,i,u){var l=t.text.firstChild,f=!1;if(!i||!ge(l,i))return ba(B(tr(t.line),0),!0);if(i==l&&(f=!0,i=l.childNodes[u],u=0,!i)){var g=t.rest?nt(t.rest):t.line;return ba(B(tr(g),g.text.length),f)}var S=i.nodeType==3?i:null,T=i;for(!S&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(S=i.firstChild,u&&(u=S.nodeValue.length));T.parentNode!=l;)T=T.parentNode;var M=t.measure,j=M.maps;function le(He,Ye,Qe){for(var Je=-1;Je<(j?j.length:0);Je++)for(var rt=Je<0?M.map:j[Je],gt=0;gt<rt.length;gt+=3){var ct=rt[gt+2];if(ct==He||ct==Ye){var Dt=tr(Je<0?t.line:t.rest[Je]),dr=rt[gt]+Qe;return(Qe<0||ct!=He)&&(dr=rt[gt+(Qe?1:0)]),B(Dt,dr)}}}var de=le(S,T,u);if(de)return ba(de,f);for(var we=T.nextSibling,ye=S?S.nodeValue.length-u:0;we;we=we.nextSibling){if(de=le(we,we.firstChild,0),de)return ba(B(de.line,de.ch-ye),f);ye+=we.textContent.length}for(var Ie=T.previousSibling,Ne=u;Ie;Ie=Ie.previousSibling){if(de=le(Ie,Ie.firstChild,-1),de)return ba(B(de.line,de.ch+Ne),f);Ne+=Ie.textContent.length}}var Or=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Oe,this.hasSelection=!1,this.composing=null,this.resetting=!1};Or.prototype.init=function(t){var i=this,u=this,l=this.cm;this.createField(t);var f=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),$&&(f.style.width="0px"),ce(f,"input",function(){O&&k>=9&&i.hasSelection&&(i.hasSelection=null),u.poll()}),ce(f,"paste",function(S){st(l,S)||$f(S,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function g(S){if(!st(l,S)){if(l.somethingSelected())Gs({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var T=Wo(l);Gs({lineWise:!0,text:T.text}),S.type=="cut"?l.setSelections(T.ranges,null,tt):(u.prevInput="",f.value=T.text.join(`
32
+ `),it(f))}else return;S.type=="cut"&&(l.state.cutIncoming=+new Date)}}ce(f,"cut",g),ce(f,"copy",g),ce(t.scroller,"paste",function(S){if(!(ai(t,S)||st(l,S))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var T=new Event("paste");T.clipboardData=S.clipboardData,f.dispatchEvent(T)}}),ce(t.lineSpace,"selectstart",function(S){ai(t,S)||Nt(S)}),ce(f,"compositionstart",function(){var S=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:S,range:l.markText(S,l.getCursor("to"),{className:"CodeMirror-composing"})}}),ce(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Or.prototype.createField=function(t){this.wrapper=Ed(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;eu(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Or.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Or.prototype.prepareSelection=function(){var t=this.cm,i=t.display,u=t.doc,l=Xu(t);if(t.options.moveInputWithCursor){var f=Yn(t,u.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),S=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,f.top+S.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,f.left+S.left-g.left))}return l},Or.prototype.showSelection=function(t){var i=this.cm,u=i.display;he(u.cursorDiv,t.cursors),he(u.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Or.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var u=i.getSelection();this.textarea.value=u,i.state.focused&&it(this.textarea),O&&k>=9&&(this.hasSelection=u)}else t||(this.prevInput=this.textarea.value="",O&&k>=9&&(this.hasSelection=null));this.resetting=!1}},Or.prototype.getField=function(){return this.textarea},Or.prototype.supportsTouch=function(){return!1},Or.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||Ee(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(t){}},Or.prototype.blur=function(){this.textarea.blur()},Or.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Or.prototype.receivedFocus=function(){this.slowPoll()},Or.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Or.prototype.fastPoll=function(){var t=!1,i=this;i.pollingFast=!0;function u(){var l=i.poll();!l&&!t?(t=!0,i.polling.set(60,u)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,u)},Or.prototype.poll=function(){var t=this,i=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Ui(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(O&&k>=9&&this.hasSelection===f||F&&/[\uf700-\uf7ff]/.test(f))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=f.charCodeAt(0);if(g==8203&&!l&&(l="\u200B"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var S=0,T=Math.min(l.length,f.length);S<T&&l.charCodeAt(S)==f.charCodeAt(S);)++S;return xn(i,function(){Uo(i,f.slice(S),l.length-S,null,t.composing?"*compose":null),f.length>1e3||f.indexOf(`
33
+ `)>-1?u.value=t.prevInput="":t.prevInput=f,t.composing&&(t.composing.range.clear(),t.composing.range=i.markText(t.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Or.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Or.prototype.onKeyPress=function(){O&&k>=9&&(this.hasSelection=null),this.fastPoll()},Or.prototype.onContextMenu=function(t){var i=this,u=i.cm,l=u.display,f=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=Gi(u,t),S=l.scroller.scrollTop;if(!g||ne)return;var T=u.options.resetSelectionOnContextMenu;T&&u.doc.sel.contains(g)==-1&&Hr(u,Jr)(u.doc,Ki(g),tt);var M=f.style.cssText,j=i.wrapper.style.cssText,le=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
34
+ top: `+(t.clientY-le.top-5)+"px; left: "+(t.clientX-le.left-5)+`px;
35
+ z-index: 1000; background: `+(O?"rgba(255, 255, 255, .05)":"transparent")+`;
36
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var de;U&&(de=f.ownerDocument.defaultView.scrollY),l.input.focus(),U&&f.ownerDocument.defaultView.scrollTo(null,de),l.input.reset(),u.somethingSelected()||(f.value=i.prevInput=" "),i.contextMenuPending=ye,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function we(){if(f.selectionStart!=null){var Ne=u.somethingSelected(),He="\u200B"+(Ne?f.value:"");f.value="\u21DA",f.value=He,i.prevInput=Ne?"":"\u200B",f.selectionStart=1,f.selectionEnd=He.length,l.selForContextMenu=u.doc.sel}}function ye(){if(i.contextMenuPending==ye&&(i.contextMenuPending=!1,i.wrapper.style.cssText=j,f.style.cssText=M,O&&k<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=S),f.selectionStart!=null)){(!O||O&&k<9)&&we();var Ne=0,He=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&i.prevInput=="\u200B"?Hr(u,mf)(u):Ne++<10?l.detectingSelectAll=setTimeout(He,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(He,200)}}if(O&&k>=9&&we(),te){Ur(t);var Ie=function(){Be(window,"mouseup",Ie),setTimeout(ye,20)};ce(window,"mouseup",Ie)}else setTimeout(ye,50)},Or.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Or.prototype.setUneditable=function(){},Or.prototype.needsContentAttribute=!1;function Id(t,i){if(i=i?St(i):{},i.value=t.value,!i.tabindex&&t.tabIndex&&(i.tabindex=t.tabIndex),!i.placeholder&&t.placeholder&&(i.placeholder=t.placeholder),i.autofocus==null){var u=Ee(t.ownerDocument);i.autofocus=u==t||t.getAttribute("autofocus")!=null&&u==document.body}function l(){t.value=T.getValue()}var f;if(t.form&&(ce(t.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=t.form;f=g.submit;try{var S=g.submit=function(){l(),g.submit=f,g.submit(),g.submit=S}}catch(M){}}i.finishInit=function(M){M.save=l,M.getTextArea=function(){return t},M.toTextArea=function(){M.toTextArea=isNaN,l(),t.parentNode.removeChild(M.getWrapperElement()),t.style.display="",t.form&&(Be(t.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=f))}},t.style.display="none";var T=gr(function(M){return t.parentNode.insertBefore(M,t.nextSibling)},i);return T}function Fd(t){t.off=Be,t.on=ce,t.wheelEventPixels=af,t.Doc=dn,t.splitLines=Gn,t.countColumn=Le,t.findColumn=Et,t.isWordChar=Mr,t.Pass=Ge,t.signal=Ke,t.Line=Ra,t.changeEnd=Yi,t.scrollbarModel=Ll,t.Pos=B,t.cmpPos=se,t.modes=mn,t.mimeModes=yn,t.resolveMode=$n,t.getMode=fn,t.modeExtensions=Cr,t.extendMode=yi,t.copyState=kn,t.startState=uo,t.innerMode=Ta,t.commands=_a,t.keyMap=Fi,t.keyName=Mf,t.isModifierKey=Ls,t.lookupKey=qa,t.normalizeKeyMap=Rf,t.StringStream=vr,t.SharedTextMarker=Za,t.TextMarker=Ii,t.LineWidget=ga,t.e_preventDefault=Nt,t.e_stopPropagation=Yt,t.e_stop=Ur,t.addClass=je,t.contains=ge,t.rmClass=H,t.keyNames=Qi}Ad(gr),Od(gr);var kd="iter insert remove copy getEditor constructor".split(" ");for(var xa in dn.prototype)dn.prototype.hasOwnProperty(xa)&&be(kd,xa)<0&&(gr.prototype[xa]=function(t){return function(){return t.apply(this.doc,arguments)}}(dn.prototype[xa]));return yr(dn),gr.inputStyles={textarea:Or,contenteditable:lr},gr.defineMode=function(t){!gr.defaults.mode&&t!="null"&&(gr.defaults.mode=t),On.apply(this,arguments)},gr.defineMIME=lo,gr.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),gr.defineMIME("text/plain","null"),gr.defineExtension=function(t,i){gr.prototype[t]=i},gr.defineDocExtension=function(t,i){dn.prototype[t]=i},gr.fromTextArea=Id,Fd(gr),gr.version="5.65.11",gr})},49055:(h,E,o)=>{(function(d){d(o(23326))})(function(d){"use strict";d.defineMode("javascript",function(x,w){var A=x.indentUnit,O=w.statementIndent,k=w.jsonld,U=w.json||k,Z=w.trackScope!==!1,re=w.typescript,ue=w.wordCharacters||/[\w$\xa1-\uffff]/,ne=function(){function B(ut){return{type:ut,style:"keyword"}}var se=B("keyword a"),Me=B("keyword b"),We=B("keyword c"),It=B("keyword d"),Vt=B("operator"),ir={type:"atom",style:"atom"};return{if:B("if"),while:se,with:se,else:Me,do:Me,try:Me,finally:Me,return:It,break:It,continue:It,new:B("new"),delete:We,void:We,throw:We,debugger:B("debugger"),var:B("var"),const:B("var"),let:B("var"),function:B("function"),catch:B("catch"),for:B("for"),switch:B("switch"),case:B("case"),default:B("default"),in:Vt,typeof:Vt,instanceof:Vt,true:ir,false:ir,null:ir,undefined:ir,NaN:ir,Infinity:ir,this:B("this"),class:B("class"),super:B("atom"),yield:We,export:B("export"),import:B("import"),extends:We,await:We}}(),ie=/[+\-*&%=<>!?|~^@]/,Y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function P(B){for(var se=!1,Me,We=!1;(Me=B.next())!=null;){if(!se){if(Me=="/"&&!We)return;Me=="["?We=!0:We&&Me=="]"&&(We=!1)}se=!se&&Me=="\\"}}var $,D;function C(B,se,Me){return $=B,D=Me,se}function F(B,se){var Me=B.next();if(Me=='"'||Me=="'")return se.tokenize=V(Me),se.tokenize(B,se);if(Me=="."&&B.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(Me=="."&&B.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Me))return C(Me);if(Me=="="&&B.eat(">"))return C("=>","operator");if(Me=="0"&&B.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(Me))return B.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(Me=="/")return B.eat("*")?(se.tokenize=X,X(B,se)):B.eat("/")?(B.skipToEnd(),C("comment","comment")):Pa(B,se,1)?(P(B),B.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(B.eat("="),C("operator","operator",B.current()));if(Me=="`")return se.tokenize=K,K(B,se);if(Me=="#"&&B.peek()=="!")return B.skipToEnd(),C("meta","meta");if(Me=="#"&&B.eatWhile(ue))return C("variable","property");if(Me=="<"&&B.match("!--")||Me=="-"&&B.match("->")&&!/\S/.test(B.string.slice(0,B.start)))return B.skipToEnd(),C("comment","comment");if(ie.test(Me))return(Me!=">"||!se.lexical||se.lexical.type!=">")&&(B.eat("=")?(Me=="!"||Me=="=")&&B.eat("="):/[<>*+\-|&?]/.test(Me)&&(B.eat(Me),Me==">"&&B.eat(Me))),Me=="?"&&B.eat(".")?C("."):C("operator","operator",B.current());if(ue.test(Me)){B.eatWhile(ue);var We=B.current();if(se.lastType!="."){if(ne.propertyIsEnumerable(We)){var It=ne[We];return C(It.type,It.style,We)}if(We=="async"&&B.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",We)}return C("variable","variable",We)}}function V(B){return function(se,Me){var We=!1,It;if(k&&se.peek()=="@"&&se.match(Y))return Me.tokenize=F,C("jsonld-keyword","meta");for(;(It=se.next())!=null&&!(It==B&&!We);)We=!We&&It=="\\";return We||(Me.tokenize=F),C("string","string")}}function X(B,se){for(var Me=!1,We;We=B.next();){if(We=="/"&&Me){se.tokenize=F;break}Me=We=="*"}return C("comment","comment")}function K(B,se){for(var Me=!1,We;(We=B.next())!=null;){if(!Me&&(We=="`"||We=="$"&&B.eat("{"))){se.tokenize=F;break}Me=!Me&&We=="\\"}return C("quasi","string-2",B.current())}var W="([{}])";function te(B,se){se.fatArrowAt&&(se.fatArrowAt=null);var Me=B.string.indexOf("=>",B.start);if(!(Me<0)){if(re){var We=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(B.string.slice(B.start,Me));We&&(Me=We.index)}for(var It=0,Vt=!1,ir=Me-1;ir>=0;--ir){var ut=B.string.charAt(ir),Tn=W.indexOf(ut);if(Tn>=0&&Tn<3){if(!It){++ir;break}if(--It==0){ut=="("&&(Vt=!0);break}}else if(Tn>=3&&Tn<6)++It;else if(ue.test(ut))Vt=!0;else if(/["'\/`]/.test(ut))for(;;--ir){if(ir==0)return;var qo=B.string.charAt(ir-1);if(qo==ut&&B.string.charAt(ir-2)!="\\"){ir--;break}}else if(Vt&&!It){++ir;break}}Vt&&!It&&(se.fatArrowAt=ir)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function H(B,se,Me,We,It,Vt){this.indented=B,this.column=se,this.type=Me,this.prev=It,this.info=Vt,We!=null&&(this.align=We)}function fe(B,se){if(!Z)return!1;for(var Me=B.localVars;Me;Me=Me.next)if(Me.name==se)return!0;for(var We=B.context;We;We=We.prev)for(var Me=We.vars;Me;Me=Me.next)if(Me.name==se)return!0}function he(B,se,Me,We,It){var Vt=B.cc;for(_.state=B,_.stream=It,_.marked=null,_.cc=Vt,_.style=se,B.lexical.hasOwnProperty("align")||(B.lexical.align=!0);;){var ir=Vt.length?Vt.pop():U?Ze:Ge;if(ir(Me,We)){for(;Vt.length&&Vt[Vt.length-1].lex;)Vt.pop()();return _.marked?_.marked:Me=="variable"&&fe(B,We)?"variable-2":se}}}var _={state:null,column:null,marked:null,cc:null};function Q(){for(var B=arguments.length-1;B>=0;B--)_.cc.push(arguments[B])}function z(){return Q.apply(null,arguments),!0}function ge(B,se){for(var Me=se;Me;Me=Me.next)if(Me.name==B)return!0;return!1}function Ee(B){var se=_.state;if(_.marked="def",!!Z){if(se.context){if(se.lexical.info=="var"&&se.context&&se.context.block){var Me=je(B,se.context);if(Me!=null){se.context=Me;return}}else if(!ge(B,se.localVars)){se.localVars=new et(B,se.localVars);return}}w.globalVars&&!ge(B,se.globalVars)&&(se.globalVars=new et(B,se.globalVars))}}function je(B,se){if(se)if(se.block){var Me=je(B,se.prev);return Me?Me==se.prev?se:new it(Me,se.vars,!0):null}else return ge(B,se.vars)?se:new it(se.prev,new et(B,se.vars),!1);else return null}function ke(B){return B=="public"||B=="private"||B=="protected"||B=="abstract"||B=="readonly"}function it(B,se,Me){this.prev=B,this.vars=se,this.block=Me}function et(B,se){this.name=B,this.next=se}var at=new et("this",new et("arguments",null));function Tt(){_.state.context=new it(_.state.context,_.state.localVars,!1),_.state.localVars=at}function St(){_.state.context=new it(_.state.context,_.state.localVars,!0),_.state.localVars=null}Tt.lex=St.lex=!0;function Le(){_.state.localVars=_.state.context.vars,_.state.context=_.state.context.prev}Le.lex=!0;function Oe(B,se){var Me=function(){var We=_.state,It=We.indented;if(We.lexical.type=="stat")It=We.lexical.indented;else for(var Vt=We.lexical;Vt&&Vt.type==")"&&Vt.align;Vt=Vt.prev)It=Vt.indented;We.lexical=new H(It,_.stream.column(),B,null,We.lexical,se)};return Me.lex=!0,Me}function be(){var B=_.state;B.lexical.prev&&(B.lexical.type==")"&&(B.indented=B.lexical.indented),B.lexical=B.lexical.prev)}be.lex=!0;function De(B){function se(Me){return Me==B?z():B==";"||Me=="}"||Me==")"||Me=="]"?Q():z(se)}return se}function Ge(B,se){return B=="var"?z(Oe("vardef",se),vi,De(";"),be):B=="keyword a"?z(Oe("form"),Et,Ge,be):B=="keyword b"?z(Oe("form"),Ge,be):B=="keyword d"?_.stream.match(/^\s*$/,!1)?z():z(Oe("stat"),zt,De(";"),be):B=="debugger"?z(De(";")):B=="{"?z(Oe("}"),St,Pt,be,Le):B==";"?z():B=="if"?(_.state.lexical.info=="else"&&_.state.cc[_.state.cc.length-1]==be&&_.state.cc.pop()(),z(Oe("form"),Et,Ge,be,Gn)):B=="function"?z(un):B=="for"?z(Oe("form"),St,Ui,Ge,Le,be):B=="class"||re&&se=="interface"?(_.marked="keyword",z(Oe("form",B=="class"?B:se),$n,be)):B=="variable"?re&&se=="declare"?(_.marked="keyword",z(Ge)):re&&(se=="module"||se=="enum"||se=="type")&&_.stream.match(/^\s*\w/,!1)?(_.marked="keyword",se=="enum"?z(tr):se=="type"?z(yn,De("operator"),Be,De(";")):z(Oe("form"),tn,De("{"),Oe("}"),Pt,be,be)):re&&se=="namespace"?(_.marked="keyword",z(Oe("form"),Ze,Ge,be)):re&&se=="abstract"?(_.marked="keyword",z(Ge)):z(Oe("stat"),$e):B=="switch"?z(Oe("form"),Et,De("{"),Oe("}","switch"),St,Pt,be,be,Le):B=="case"?z(Ze,De(":")):B=="default"?z(De(":")):B=="catch"?z(Oe("form"),Tt,tt,Ge,be,Le):B=="export"?z(Oe("stat"),kn,be):B=="import"?z(Oe("stat"),uo,be):B=="async"?z(Ge):se=="@"?z(Ze,Ge):Q(Oe("stat"),Ze,De(";"),be)}function tt(B){if(B=="(")return z(On,De(")"))}function Ze(B,se){return Xt(B,se,!1)}function bt(B,se){return Xt(B,se,!0)}function Et(B){return B!="("?Q():z(Oe(")"),zt,De(")"),be)}function Xt(B,se,Me){if(_.state.fatArrowAt==_.stream.start){var We=Me?_e:Rr;if(B=="(")return z(Tt,Oe(")"),dt(On,")"),be,De("=>"),We,Le);if(B=="variable")return Q(Tt,tn,De("=>"),We,Le)}var It=Me?Xe:nt;return J.hasOwnProperty(B)?z(It):B=="function"?z(un,It):B=="class"||re&&se=="interface"?(_.marked="keyword",z(Oe("form"),lo,be)):B=="keyword c"||B=="async"?z(Me?bt:Ze):B=="("?z(Oe(")"),zt,De(")"),be,It):B=="operator"||B=="spread"?z(Me?bt:Ze):B=="["?z(Oe("]"),Rn,be,It):B=="{"?vt(Lt,"}",null,It):B=="quasi"?Q(er,It):B=="new"?z(Mr(Me)):z()}function zt(B){return B.match(/[;\}\)\],]/)?Q():Q(Ze)}function nt(B,se){return B==","?z(zt):Xe(B,se,!1)}function Xe(B,se,Me){var We=Me==!1?nt:Xe,It=Me==!1?Ze:bt;if(B=="=>")return z(Tt,Me?_e:Rr,Le);if(B=="operator")return/\+\+|--/.test(se)||re&&se=="!"?z(We):re&&se=="<"&&_.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?z(Oe(">"),dt(Be,">"),be,We):se=="?"?z(Ze,De(":"),It):z(It);if(B=="quasi")return Q(er,We);if(B!=";"){if(B=="(")return vt(bt,")","call",We);if(B==".")return z(yt,We);if(B=="[")return z(Oe("]"),zt,De("]"),be,We);if(re&&se=="as")return _.marked="keyword",z(Be,We);if(B=="regexp")return _.state.lastType=_.marked="operator",_.stream.backUp(_.stream.pos-_.stream.start-1),z(It)}}function er(B,se){return B!="quasi"?Q():se.slice(se.length-2)!="${"?z(er):z(zt,Rt)}function Rt(B){if(B=="}")return _.marked="string-2",_.state.tokenize=K,z(er)}function Rr(B){return te(_.stream,_.state),Q(B=="{"?Ge:Ze)}function _e(B){return te(_.stream,_.state),Q(B=="{"?Ge:bt)}function Mr(B){return function(se){return se=="."?z(B?en:Ar):se=="variable"&&re?z(zn,B?Xe:nt):Q(B?bt:Ze)}}function Ar(B,se){if(se=="target")return _.marked="keyword",z(nt)}function en(B,se){if(se=="target")return _.marked="keyword",z(Xe)}function $e(B){return B==":"?z(be,Ge):Q(nt,De(";"),be)}function yt(B){if(B=="variable")return _.marked="property",z()}function Lt(B,se){if(B=="async")return _.marked="property",z(Lt);if(B=="variable"||_.style=="keyword"){if(_.marked="property",se=="get"||se=="set")return z(wt);var Me;return re&&_.state.fatArrowAt==_.stream.start&&(Me=_.stream.match(/^\s*:\s*/,!1))&&(_.state.fatArrowAt=_.stream.pos+Me[0].length),z(Ft)}else{if(B=="number"||B=="string")return _.marked=k?"property":_.style+" property",z(Ft);if(B=="jsonld-keyword")return z(Ft);if(re&&ke(se))return _.marked="keyword",z(Lt);if(B=="[")return z(Ze,ot,De("]"),Ft);if(B=="spread")return z(bt,Ft);if(se=="*")return _.marked="keyword",z(Lt);if(B==":")return Q(Ft)}}function wt(B){return B!="variable"?Q(Ft):(_.marked="property",z(un))}function Ft(B){if(B==":")return z(bt);if(B=="(")return Q(un)}function dt(B,se,Me){function We(It,Vt){if(Me?Me.indexOf(It)>-1:It==","){var ir=_.state.lexical;return ir.info=="call"&&(ir.pos=(ir.pos||0)+1),z(function(ut,Tn){return ut==se||Tn==se?Q():Q(B)},We)}return It==se||Vt==se?z():Me&&Me.indexOf(";")>-1?Q(B):z(De(se))}return function(It,Vt){return It==se||Vt==se?z():Q(B,We)}}function vt(B,se,Me){for(var We=3;We<arguments.length;We++)_.cc.push(arguments[We]);return z(Oe(se,Me),dt(B,se),be)}function Pt(B){return B=="}"?z():Q(Ge,Pt)}function ot(B,se){if(re){if(B==":")return z(Be);if(se=="?")return z(ot)}}function Ve(B,se){if(re&&(B==":"||se=="in"))return z(Be)}function ce(B){if(re&&B==":")return _.stream.match(/^\s*\w+\s+is\b/,!1)?z(Ze,xe,Be):z(Be)}function xe(B,se){if(se=="is")return _.marked="keyword",z()}function Be(B,se){if(se=="keyof"||se=="typeof"||se=="infer"||se=="readonly")return _.marked="keyword",z(se=="typeof"?bt:Be);if(B=="variable"||se=="void")return _.marked="type",z(Yt);if(se=="|"||se=="&")return z(Be);if(B=="string"||B=="number"||B=="atom")return z(Yt);if(B=="[")return z(Oe("]"),dt(Be,"]",","),be,Yt);if(B=="{")return z(Oe("}"),st,be,Yt);if(B=="(")return z(dt(Nt,")"),Ke,Yt);if(B=="<")return z(dt(Be,">"),Be);if(B=="quasi")return Q(kt,Yt)}function Ke(B){if(B=="=>")return z(Be)}function st(B){return B.match(/[\}\)\]]/)?z():B==","||B==";"?z(st):Q(xt,st)}function xt(B,se){if(B=="variable"||_.style=="keyword")return _.marked="property",z(xt);if(se=="?"||B=="number"||B=="string")return z(xt);if(B==":")return z(Be);if(B=="[")return z(De("variable"),Ve,De("]"),xt);if(B=="(")return Q(mn,xt);if(!B.match(/[;\}\)\],]/))return z()}function kt(B,se){return B!="quasi"?Q():se.slice(se.length-2)!="${"?z(kt):z(Be,yr)}function yr(B){if(B=="}")return _.marked="string-2",_.state.tokenize=K,z(kt)}function Nt(B,se){return B=="variable"&&_.stream.match(/^\s*[?:]/,!1)||se=="?"?z(Nt):B==":"?z(Be):B=="spread"?z(Nt):Q(Be)}function Yt(B,se){if(se=="<")return z(Oe(">"),dt(Be,">"),be,Yt);if(se=="|"||B=="."||se=="&")return z(Be);if(B=="[")return z(Be,De("]"),Yt);if(se=="extends"||se=="implements")return _.marked="keyword",z(Be);if(se=="?")return z(Be,De(":"),Be)}function zn(B,se){if(se=="<")return z(Oe(">"),dt(Be,">"),be,Yt)}function Ur(){return Q(Be,Kr)}function Kr(B,se){if(se=="=")return z(Be)}function vi(B,se){return se=="enum"?(_.marked="keyword",z(tr)):Q(tn,ot,rn,xr)}function tn(B,se){if(re&&ke(se))return _.marked="keyword",z(tn);if(B=="variable")return Ee(se),z();if(B=="spread")return z(tn);if(B=="[")return vt(mi,"]");if(B=="{")return vt(gi,"}")}function gi(B,se){return B=="variable"&&!_.stream.match(/^\s*:/,!1)?(Ee(se),z(rn)):(B=="variable"&&(_.marked="property"),B=="spread"?z(tn):B=="}"?Q():B=="["?z(Ze,De("]"),De(":"),gi):z(De(":"),tn,rn))}function mi(){return Q(tn,rn)}function rn(B,se){if(se=="=")return z(bt)}function xr(B){if(B==",")return z(vi)}function Gn(B,se){if(B=="keyword b"&&se=="else")return z(Oe("form","else"),Ge,be)}function Ui(B,se){if(se=="await")return z(Ui);if(B=="(")return z(Oe(")"),Wi,be)}function Wi(B){return B=="var"?z(vi,gn):B=="variable"?z(gn):Q(gn)}function gn(B,se){return B==")"?z():B==";"?z(gn):se=="in"||se=="of"?(_.marked="keyword",z(Ze,gn)):Q(Ze,gn)}function un(B,se){if(se=="*")return _.marked="keyword",z(un);if(B=="variable")return Ee(se),z(un);if(B=="(")return z(Tt,Oe(")"),dt(On,")"),be,ce,Ge,Le);if(re&&se=="<")return z(Oe(">"),dt(Ur,">"),be,un)}function mn(B,se){if(se=="*")return _.marked="keyword",z(mn);if(B=="variable")return Ee(se),z(mn);if(B=="(")return z(Tt,Oe(")"),dt(On,")"),be,ce,Le);if(re&&se=="<")return z(Oe(">"),dt(Ur,">"),be,mn)}function yn(B,se){if(B=="keyword"||B=="variable")return _.marked="type",z(yn);if(se=="<")return z(Oe(">"),dt(Ur,">"),be)}function On(B,se){return se=="@"&&z(Ze,On),B=="spread"?z(On):re&&ke(se)?(_.marked="keyword",z(On)):re&&B=="this"?z(ot,rn):Q(tn,ot,rn)}function lo(B,se){return B=="variable"?$n(B,se):fn(B,se)}function $n(B,se){if(B=="variable")return Ee(se),z(fn)}function fn(B,se){if(se=="<")return z(Oe(">"),dt(Ur,">"),be,fn);if(se=="extends"||se=="implements"||re&&B==",")return se=="implements"&&(_.marked="keyword"),z(re?Be:Ze,fn);if(B=="{")return z(Oe("}"),Cr,be)}function Cr(B,se){if(B=="async"||B=="variable"&&(se=="static"||se=="get"||se=="set"||re&&ke(se))&&_.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return _.marked="keyword",z(Cr);if(B=="variable"||_.style=="keyword")return _.marked="property",z(yi,Cr);if(B=="number"||B=="string")return z(yi,Cr);if(B=="[")return z(Ze,ot,De("]"),yi,Cr);if(se=="*")return _.marked="keyword",z(Cr);if(re&&B=="(")return Q(mn,Cr);if(B==";"||B==",")return z(Cr);if(B=="}")return z();if(se=="@")return z(Ze,Cr)}function yi(B,se){if(se=="!"||se=="?")return z(yi);if(B==":")return z(Be,rn);if(se=="=")return z(bt);var Me=_.state.lexical.prev,We=Me&&Me.info=="interface";return Q(We?mn:un)}function kn(B,se){return se=="*"?(_.marked="keyword",z(na,De(";"))):se=="default"?(_.marked="keyword",z(Ze,De(";"))):B=="{"?z(dt(Ta,"}"),na,De(";")):Q(Ge)}function Ta(B,se){if(se=="as")return _.marked="keyword",z(De("variable"));if(B=="variable")return Q(bt,Ta)}function uo(B){return B=="string"?z():B=="("?Q(Ze):B=="."?Q(nt):Q(vr,lt,na)}function vr(B,se){return B=="{"?vt(vr,"}"):(B=="variable"&&Ee(se),se=="*"&&(_.marked="keyword"),z(bi))}function lt(B){if(B==",")return z(vr,lt)}function bi(B,se){if(se=="as")return _.marked="keyword",z(vr)}function na(B,se){if(se=="from")return _.marked="keyword",z(Ze)}function Rn(B){return B=="]"?z():Q(dt(bt,"]"))}function tr(){return Q(Oe("form"),tn,De("{"),Oe("}"),dt(ti,"}"),be,be)}function ti(){return Q(tn,rn)}function ia(B,se){return B.lastType=="operator"||B.lastType==","||ie.test(se.charAt(0))||/[,.]/.test(se.charAt(0))}function Pa(B,se,Me){return se.tokenize==F&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(se.lastType)||se.lastType=="quasi"&&/\{\s*$/.test(B.string.slice(0,B.pos-(Me||0)))}return{startState:function(B){var se={tokenize:F,lastType:"sof",cc:[],lexical:new H((B||0)-A,0,"block",!1),localVars:w.localVars,context:w.localVars&&new it(null,null,!1),indented:B||0};return w.globalVars&&typeof w.globalVars=="object"&&(se.globalVars=w.globalVars),se},token:function(B,se){if(B.sol()&&(se.lexical.hasOwnProperty("align")||(se.lexical.align=!1),se.indented=B.indentation(),te(B,se)),se.tokenize!=X&&B.eatSpace())return null;var Me=se.tokenize(B,se);return $=="comment"?Me:(se.lastType=$=="operator"&&(D=="++"||D=="--")?"incdec":$,he(se,Me,$,D,B))},indent:function(B,se){if(B.tokenize==X||B.tokenize==K)return d.Pass;if(B.tokenize!=F)return 0;var Me=se&&se.charAt(0),We=B.lexical,It;if(!/^\s*else\b/.test(se))for(var Vt=B.cc.length-1;Vt>=0;--Vt){var ir=B.cc[Vt];if(ir==be)We=We.prev;else if(ir!=Gn&&ir!=Le)break}for(;(We.type=="stat"||We.type=="form")&&(Me=="}"||(It=B.cc[B.cc.length-1])&&(It==nt||It==Xe)&&!/^[,\.=+\-*:?[\(]/.test(se));)We=We.prev;O&&We.type==")"&&We.prev.type=="stat"&&(We=We.prev);var ut=We.type,Tn=Me==ut;return ut=="vardef"?We.indented+(B.lastType=="operator"||B.lastType==","?We.info.length+1:0):ut=="form"&&Me=="{"?We.indented:ut=="form"?We.indented+A:ut=="stat"?We.indented+(ia(B,se)?O||A:0):We.info=="switch"&&!Tn&&w.doubleIndentSwitch!=!1?We.indented+(/^(?:case|default)\b/.test(se)?A:2*A):We.align?We.column+(Tn?0:1):We.indented+(Tn?0:A)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:U?null:"/*",blockCommentEnd:U?null:"*/",blockCommentContinue:U?null:" * ",lineComment:U?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:U?"json":"javascript",jsonldMode:k,jsonMode:U,expressionAllowed:Pa,skipExpression:function(B){he(B,"atom","atom","true",new d.StringStream("",2,null))}}}),d.registerHelper("wordChars","javascript",/[\w$]/),d.defineMIME("text/javascript","javascript"),d.defineMIME("text/ecmascript","javascript"),d.defineMIME("application/javascript","javascript"),d.defineMIME("application/x-javascript","javascript"),d.defineMIME("application/ecmascript","javascript"),d.defineMIME("application/json",{name:"javascript",json:!0}),d.defineMIME("application/x-json",{name:"javascript",json:!0}),d.defineMIME("application/manifest+json",{name:"javascript",json:!0}),d.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),d.defineMIME("text/typescript",{name:"javascript",typescript:!0}),d.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},13421:(h,E)=>{"use strict";/*!
37
37
  * cookie
38
38
  * Copyright(c) 2012-2014 Roman Shtylman
39
39
  * Copyright(c) 2015 Douglas Christopher Wilson
40
40
  * MIT Licensed
41
- */T.parse=S,T.serialize=A;var s=Object.prototype.toString,p=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function S(_,Q){if(typeof _!="string")throw new TypeError("argument str must be a string");for(var le={},K=Q||{},ne=K.decode||h,$=0;$<_.length;){var P=_.indexOf("=",$);if(P===-1)break;var Y=_.indexOf(";",$);if(Y===-1)Y=_.length;else if(Y<P){$=_.lastIndexOf(";",P-1)+1;continue}var L=_.slice($,P).trim();if(le[L]===void 0){var C=_.slice(P+1,Y).trim();C.charCodeAt(0)===34&&(C=C.slice(1,-1)),le[L]=U(C,ne)}$=Y+1}return le}function A(_,Q,le){var K=le||{},ne=K.encode||E;if(typeof ne!="function")throw new TypeError("option encode is invalid");if(!p.test(_))throw new TypeError("argument name is invalid");var $=ne(Q);if($&&!p.test($))throw new TypeError("argument val is invalid");var P=_+"="+$;if(K.maxAge!=null){var Y=K.maxAge-0;if(isNaN(Y)||!isFinite(Y))throw new TypeError("option maxAge is invalid");P+="; Max-Age="+Math.floor(Y)}if(K.domain){if(!p.test(K.domain))throw new TypeError("option domain is invalid");P+="; Domain="+K.domain}if(K.path){if(!p.test(K.path))throw new TypeError("option path is invalid");P+="; Path="+K.path}if(K.expires){var L=K.expires;if(!F(L)||isNaN(L.valueOf()))throw new TypeError("option expires is invalid");P+="; Expires="+L.toUTCString()}if(K.httpOnly&&(P+="; HttpOnly"),K.secure&&(P+="; Secure"),K.priority){var C=typeof K.priority=="string"?K.priority.toLowerCase():K.priority;switch(C){case"low":P+="; Priority=Low";break;case"medium":P+="; Priority=Medium";break;case"high":P+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(K.sameSite){var k=typeof K.sameSite=="string"?K.sameSite.toLowerCase():K.sameSite;switch(k){case!0:P+="; SameSite=Strict";break;case"lax":P+="; SameSite=Lax";break;case"strict":P+="; SameSite=Strict";break;case"none":P+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return P}function h(_){return _.indexOf("%")!==-1?decodeURIComponent(_):_}function E(_){return encodeURIComponent(_)}function F(_){return s.call(_)==="[object Date]"||_ instanceof Date}function U(_,Q){try{return Q(_)}catch(le){return _}}},27129:(v,T,s)=>{var p=s(53822);v.exports=p},86250:(v,T,s)=>{var p=s(21434);v.exports=p},61347:(v,T,s)=>{var p=s(27710);v.exports=p},42142:(v,T,s)=>{var p=s(31585);v.exports=p},21106:(v,T,s)=>{var p=s(55603);v.exports=p},97497:(v,T,s)=>{var p=s(31206);v.exports=p},28385:(v,T,s)=>{var p=s(26174);v.exports=p},85874:(v,T,s)=>{var p=s(87511);v.exports=p},86843:(v,T,s)=>{var p=s(24741);v.exports=p},37528:(v,T,s)=>{var p=s(4963);v.exports=p},81471:(v,T,s)=>{var p=s(21025);v.exports=p},5271:(v,T,s)=>{var p=s(27820);v.exports=p},87275:(v,T,s)=>{var p=s(74194);v.exports=p},13772:(v,T,s)=>{var p=s(32854);v.exports=p},97574:(v,T,s)=>{var p=s(60002);v.exports=p},69373:(v,T,s)=>{var p=s(28980);v.exports=p},70033:(v,T,s)=>{var p=s(45636);v.exports=p},77443:(v,T,s)=>{var p=s(66672);v.exports=p},88362:(v,T,s)=>{var p=s(46618);v.exports=p},89821:(v,T,s)=>{var p=s(42285);v.exports=p},8008:(v,T,s)=>{var p=s(58535);v.exports=p},52221:(v,T,s)=>{s(5454),s(19173);var p=s(57545);v.exports=p.Array.from},75078:(v,T,s)=>{s(8118);var p=s(57545);v.exports=p.Array.isArray},66135:(v,T,s)=>{s(59106);var p=s(45607);v.exports=p("Array").concat},77237:(v,T,s)=>{s(98939),s(46663);var p=s(45607);v.exports=p("Array").entries},83971:(v,T,s)=>{s(73436);var p=s(45607);v.exports=p("Array").filter},42087:(v,T,s)=>{s(10880);var p=s(45607);v.exports=p("Array").find},60098:(v,T,s)=>{s(9823);var p=s(45607);v.exports=p("Array").forEach},54216:(v,T,s)=>{s(70024);var p=s(45607);v.exports=p("Array").includes},92089:(v,T,s)=>{s(62276);var p=s(45607);v.exports=p("Array").indexOf},6209:(v,T,s)=>{s(63838);var p=s(45607);v.exports=p("Array").map},49922:(v,T,s)=>{s(99523);var p=s(45607);v.exports=p("Array").reverse},52671:(v,T,s)=>{s(65818);var p=s(45607);v.exports=p("Array").slice},51375:(v,T,s)=>{s(12178);var p=s(45607);v.exports=p("Array").splice},65739:(v,T,s)=>{s(98939),s(5454);var p=s(78703);v.exports=p},74030:(v,T,s)=>{s(25067),v.exports=s(98576)},41484:(v,T,s)=>{var p=s(8902),S=s(66135),A=Array.prototype;v.exports=function(h){var E=h.concat;return h===A||p(A,h)&&E===A.concat?S:E}},53669:(v,T,s)=>{var p=s(8902),S=s(83971),A=Array.prototype;v.exports=function(h){var E=h.filter;return h===A||p(A,h)&&E===A.filter?S:E}},37506:(v,T,s)=>{var p=s(8902),S=s(42087),A=Array.prototype;v.exports=function(h){var E=h.find;return h===A||p(A,h)&&E===A.find?S:E}},13173:(v,T,s)=>{var p=s(8902),S=s(54216),A=s(62840),h=Array.prototype,E=String.prototype;v.exports=function(F){var U=F.includes;return F===h||p(h,F)&&U===h.includes?S:typeof F=="string"||F===E||p(E,F)&&U===E.includes?A:U}},92604:(v,T,s)=>{var p=s(8902),S=s(92089),A=Array.prototype;v.exports=function(h){var E=h.indexOf;return h===A||p(A,h)&&E===A.indexOf?S:E}},263:(v,T,s)=>{var p=s(8902),S=s(6209),A=Array.prototype;v.exports=function(h){var E=h.map;return h===A||p(A,h)&&E===A.map?S:E}},80432:(v,T,s)=>{var p=s(8902),S=s(49922),A=Array.prototype;v.exports=function(h){var E=h.reverse;return h===A||p(A,h)&&E===A.reverse?S:E}},77663:(v,T,s)=>{var p=s(8902),S=s(52671),A=Array.prototype;v.exports=function(h){var E=h.slice;return h===A||p(A,h)&&E===A.slice?S:E}},45063:(v,T,s)=>{var p=s(8902),S=s(51375),A=Array.prototype;v.exports=function(h){var E=h.splice;return h===A||p(A,h)&&E===A.splice?S:E}},7769:(v,T,s)=>{var p=s(8902),S=s(14820),A=String.prototype;v.exports=function(h){var E=h.startsWith;return typeof h=="string"||h===A||p(A,h)&&E===A.startsWith?S:E}},96056:(v,T,s)=>{s(59704);var p=s(57545),S=s(86298);p.JSON||(p.JSON={stringify:JSON.stringify}),v.exports=function(h,E,F){return S(p.JSON.stringify,null,arguments)}},99936:(v,T,s)=>{s(93582);var p=s(57545);v.exports=p.Object.assign},23213:(v,T,s)=>{s(73113);var p=s(57545),S=p.Object;v.exports=function(h,E){return S.create(h,E)}},38724:(v,T,s)=>{s(57585);var p=s(57545),S=p.Object,A=v.exports=function(E,F){return S.defineProperties(E,F)};S.defineProperties.sham&&(A.sham=!0)},63512:(v,T,s)=>{s(20297);var p=s(57545),S=p.Object,A=v.exports=function(E,F,U){return S.defineProperty(E,F,U)};S.defineProperty.sham&&(A.sham=!0)},2335:(v,T,s)=>{s(27442);var p=s(57545);v.exports=p.Object.entries},60632:(v,T,s)=>{s(89189);var p=s(57545),S=p.Object,A=v.exports=function(E,F){return S.getOwnPropertyDescriptor(E,F)};S.getOwnPropertyDescriptor.sham&&(A.sham=!0)},81056:(v,T,s)=>{s(62509);var p=s(57545);v.exports=p.Object.getOwnPropertyDescriptors},12921:(v,T,s)=>{s(36187);var p=s(57545);v.exports=p.Object.getOwnPropertySymbols},8168:(v,T,s)=>{s(19234);var p=s(57545);v.exports=p.Object.getPrototypeOf},38651:(v,T,s)=>{s(92647);var p=s(57545);v.exports=p.Object.keys},33083:(v,T,s)=>{s(13222);var p=s(57545);v.exports=p.Object.setPrototypeOf},93154:(v,T,s)=>{s(4242),s(98939),s(46663),s(59021),s(97884),s(78885),s(91868),s(5454);var p=s(57545);v.exports=p.Promise},62840:(v,T,s)=>{s(39247);var p=s(45607);v.exports=p("String").includes},14820:(v,T,s)=>{s(32991);var p=s(45607);v.exports=p("String").startsWith},85008:(v,T,s)=>{s(59106),s(46663),s(36187),s(19781),s(50492),s(66681),s(29594),s(63665),s(29017),s(11250),s(79786),s(90503),s(16565),s(69322),s(13610),s(36886),s(33514),s(68671),s(58556),s(71367);var p=s(57545);v.exports=p.Symbol},994:(v,T,s)=>{s(98939),s(46663),s(5454),s(63665);var p=s(89207);v.exports=p.f("iterator")},31293:(v,T,s)=>{s(98939),s(46663),s(33983);var p=s(57545);v.exports=p.WeakMap},62813:(v,T,s)=>{v.exports=s(52708)},68664:(v,T,s)=>{v.exports=s(58541)},21457:(v,T,s)=>{v.exports=s(37020)},36516:(v,T,s)=>{v.exports=s(79987)},87611:(v,T,s)=>{v.exports=s(86812)},4161:(v,T,s)=>{v.exports=s(51024)},75159:(v,T,s)=>{v.exports=s(32747)},87708:(v,T,s)=>{v.exports=s(85918)},42937:(v,T,s)=>{v.exports=s(21626)},69297:(v,T,s)=>{v.exports=s(77021)},10353:(v,T,s)=>{v.exports=s(18281)},8026:(v,T,s)=>{v.exports=s(90229)},67362:(v,T,s)=>{v.exports=s(53949)},57532:(v,T,s)=>{v.exports=s(11795)},61903:(v,T,s)=>{v.exports=s(75090)},42044:(v,T,s)=>{v.exports=s(27994)},60902:(v,T,s)=>{v.exports=s(45483)},2214:(v,T,s)=>{v.exports=s(35796)},983:(v,T,s)=>{v.exports=s(79918)},59256:(v,T,s)=>{v.exports=s(82185)},95659:(v,T,s)=>{v.exports=s(39982)},52708:(v,T,s)=>{var p=s(27129);v.exports=p},58541:(v,T,s)=>{var p=s(86250);v.exports=p},37020:(v,T,s)=>{var p=s(61347);v.exports=p},79987:(v,T,s)=>{s(5363);var p=s(42142);v.exports=p},86812:(v,T,s)=>{var p=s(21106);v.exports=p},51024:(v,T,s)=>{var p=s(97497);v.exports=p},32747:(v,T,s)=>{var p=s(28385);v.exports=p},85918:(v,T,s)=>{var p=s(85874);v.exports=p},21626:(v,T,s)=>{var p=s(86843);v.exports=p},77021:(v,T,s)=>{var p=s(37528);v.exports=p},18281:(v,T,s)=>{var p=s(81471);v.exports=p},90229:(v,T,s)=>{var p=s(5271);v.exports=p},53949:(v,T,s)=>{var p=s(87275);v.exports=p},11795:(v,T,s)=>{var p=s(13772);v.exports=p},75090:(v,T,s)=>{var p=s(97574);v.exports=p},27994:(v,T,s)=>{var p=s(69373);v.exports=p},45483:(v,T,s)=>{var p=s(70033);v.exports=p},35796:(v,T,s)=>{var p=s(77443);v.exports=p},79918:(v,T,s)=>{var p=s(88362);s(12752),s(14562),s(25363),s(69355),v.exports=p},82185:(v,T,s)=>{var p=s(89821);s(60177),s(9031),s(96658),s(54212),s(18658),s(71875),s(54592),s(26680),v.exports=p},39982:(v,T,s)=>{var p=s(8008);v.exports=p},66235:(v,T,s)=>{var p=s(16447),S=s(79288),A=TypeError;v.exports=function(h){if(p(h))return h;throw A(S(h)+" is not a function")}},71404:(v,T,s)=>{var p=s(22091),S=s(79288),A=TypeError;v.exports=function(h){if(p(h))return h;throw A(S(h)+" is not a constructor")}},7757:(v,T,s)=>{var p=s(16447),S=String,A=TypeError;v.exports=function(h){if(typeof h=="object"||p(h))return h;throw A("Can't set "+S(h)+" as a prototype")}},67423:v=>{v.exports=function(){}},46961:(v,T,s)=>{var p=s(8902),S=TypeError;v.exports=function(A,h){if(p(h,A))return A;throw S("Incorrect invocation")}},31138:(v,T,s)=>{var p=s(35744),S=String,A=TypeError;v.exports=function(h){if(p(h))return h;throw A(S(h)+" is not an object")}},80410:(v,T,s)=>{var p=s(76192);v.exports=p(function(){if(typeof ArrayBuffer=="function"){var S=new ArrayBuffer(8);Object.isExtensible(S)&&Object.defineProperty(S,"a",{value:8})}})},87397:(v,T,s)=>{"use strict";var p=s(50454).forEach,S=s(10424),A=S("forEach");v.exports=A?[].forEach:function(E){return p(this,E,arguments.length>1?arguments[1]:void 0)}},20841:(v,T,s)=>{"use strict";var p=s(8043),S=s(18922),A=s(71795),h=s(21635),E=s(96109),F=s(22091),U=s(84104),_=s(49361),Q=s(61669),le=s(78703),K=Array;v.exports=function($){var P=A($),Y=F(this),L=arguments.length,C=L>1?arguments[1]:void 0,k=C!==void 0;k&&(C=p(C,L>2?arguments[2]:void 0));var B=le(P),X=0,H,D,re,J,z,fe;if(B&&!(this===K&&E(B)))for(J=Q(P,B),z=J.next,D=Y?new this:[];!(re=S(z,J)).done;X++)fe=k?h(J,C,[re.value,X],!0):re.value,_(D,X,fe);else for(H=U(P),D=Y?new this(H):K(H);H>X;X++)fe=k?C(P[X],X):P[X],_(D,X,fe);return D.length=X,D}},48180:(v,T,s)=>{var p=s(20101),S=s(97739),A=s(84104),h=function(E){return function(F,U,_){var Q=p(F),le=A(Q),K=S(_,le),ne;if(E&&U!=U){for(;le>K;)if(ne=Q[K++],ne!=ne)return!0}else for(;le>K;K++)if((E||K in Q)&&Q[K]===U)return E||K||0;return!E&&-1}};v.exports={includes:h(!0),indexOf:h(!1)}},50454:(v,T,s)=>{var p=s(8043),S=s(84120),A=s(2202),h=s(71795),E=s(84104),F=s(71321),U=S([].push),_=function(Q){var le=Q==1,K=Q==2,ne=Q==3,$=Q==4,P=Q==6,Y=Q==7,L=Q==5||P;return function(C,k,B,X){for(var H=h(C),D=A(H),re=p(k,B),J=E(D),z=0,fe=X||F,pe=le?fe(C,J):K||Y?fe(C,0):void 0,q,Z;J>z;z++)if((L||z in D)&&(q=D[z],Z=re(q,z,H),Q))if(le)pe[z]=Z;else if(Z)switch(Q){case 3:return!0;case 5:return q;case 6:return z;case 2:U(pe,q)}else switch(Q){case 4:return!1;case 7:U(pe,q)}return P?-1:ne||$?$:pe}};v.exports={forEach:_(0),map:_(1),filter:_(2),some:_(3),every:_(4),find:_(5),findIndex:_(6),filterReject:_(7)}},90242:(v,T,s)=>{var p=s(76192),S=s(18182),A=s(14218),h=S("species");v.exports=function(E){return A>=51||!p(function(){var F=[],U=F.constructor={};return U[h]=function(){return{foo:1}},F[E](Boolean).foo!==1})}},10424:(v,T,s)=>{"use strict";var p=s(76192);v.exports=function(S,A){var h=[][S];return!!h&&p(function(){h.call(null,A||function(){return 1},1)})}},95072:(v,T,s)=>{"use strict";var p=s(50069),S=s(34770),A=TypeError,h=Object.getOwnPropertyDescriptor,E=p&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(F){return F instanceof TypeError}}();v.exports=E?function(F,U){if(S(F)&&!h(F,"length").writable)throw A("Cannot set read only .length");return F.length=U}:function(F,U){return F.length=U}},1923:(v,T,s)=>{var p=s(97739),S=s(84104),A=s(49361),h=Array,E=Math.max;v.exports=function(F,U,_){for(var Q=S(F),le=p(U,Q),K=p(_===void 0?Q:_,Q),ne=h(E(K-le,0)),$=0;le<K;le++,$++)A(ne,$,F[le]);return ne.length=$,ne}},93096:(v,T,s)=>{var p=s(84120);v.exports=p([].slice)},6614:(v,T,s)=>{var p=s(1923),S=Math.floor,A=function(F,U){var _=F.length,Q=S(_/2);return _<8?h(F,U):E(F,A(p(F,0,Q),U),A(p(F,Q),U),U)},h=function(F,U){for(var _=F.length,Q=1,le,K;Q<_;){for(K=Q,le=F[Q];K&&U(F[K-1],le)>0;)F[K]=F[--K];K!==Q++&&(F[K]=le)}return F},E=function(F,U,_,Q){for(var le=U.length,K=_.length,ne=0,$=0;ne<le||$<K;)F[ne+$]=ne<le&&$<K?Q(U[ne],_[$])<=0?U[ne++]:_[$++]:ne<le?U[ne++]:_[$++];return F};v.exports=A},83712:(v,T,s)=>{var p=s(34770),S=s(22091),A=s(35744),h=s(18182),E=h("species"),F=Array;v.exports=function(U){var _;return p(U)&&(_=U.constructor,S(_)&&(_===F||p(_.prototype))?_=void 0:A(_)&&(_=_[E],_===null&&(_=void 0))),_===void 0?F:_}},71321:(v,T,s)=>{var p=s(83712);v.exports=function(S,A){return new(p(S))(A===0?0:A)}},21635:(v,T,s)=>{var p=s(31138),S=s(66639);v.exports=function(A,h,E,F){try{return F?h(p(E)[0],E[1]):h(E)}catch(U){S(A,"throw",U)}}},19770:(v,T,s)=>{var p=s(18182),S=p("iterator"),A=!1;try{var h=0,E={next:function(){return{done:!!h++}},return:function(){A=!0}};E[S]=function(){return this},Array.from(E,function(){throw 2})}catch(F){}v.exports=function(F,U){if(!U&&!A)return!1;var _=!1;try{var Q={};Q[S]=function(){return{next:function(){return{done:_=!0}}}},F(Q)}catch(le){}return _}},29272:(v,T,s)=>{var p=s(41258),S=p({}.toString),A=p("".slice);v.exports=function(h){return A(S(h),8,-1)}},4696:(v,T,s)=>{var p=s(83471),S=s(16447),A=s(29272),h=s(18182),E=h("toStringTag"),F=Object,U=A(function(){return arguments}())=="Arguments",_=function(Q,le){try{return Q[le]}catch(K){}};v.exports=p?A:function(Q){var le,K,ne;return Q===void 0?"Undefined":Q===null?"Null":typeof(K=_(le=F(Q),E))=="string"?K:U?A(le):(ne=A(le))=="Object"&&S(le.callee)?"Arguments":ne}},51057:(v,T,s)=>{"use strict";var p=s(84120),S=s(35090),A=s(32861).getWeakData,h=s(46961),E=s(31138),F=s(75646),U=s(35744),_=s(33442),Q=s(50454),le=s(64500),K=s(73326),ne=K.set,$=K.getterFor,P=Q.find,Y=Q.findIndex,L=p([].splice),C=0,k=function(H){return H.frozen||(H.frozen=new B)},B=function(){this.entries=[]},X=function(H,D){return P(H.entries,function(re){return re[0]===D})};B.prototype={get:function(H){var D=X(this,H);if(D)return D[1]},has:function(H){return!!X(this,H)},set:function(H,D){var re=X(this,H);re?re[1]=D:this.entries.push([H,D])},delete:function(H){var D=Y(this.entries,function(re){return re[0]===H});return~D&&L(this.entries,D,1),!!~D}},v.exports={getConstructor:function(H,D,re,J){var z=H(function(Z,G){h(Z,fe),ne(Z,{type:D,id:C++,frozen:void 0}),F(G)||_(G,Z[J],{that:Z,AS_ENTRIES:re})}),fe=z.prototype,pe=$(D),q=function(Z,G,ve){var Ie=pe(Z),Ne=A(E(G),!0);return Ne===!0?k(Ie).set(G,ve):Ne[Ie.id]=ve,Z};return S(fe,{delete:function(Z){var G=pe(this);if(!U(Z))return!1;var ve=A(Z);return ve===!0?k(G).delete(Z):ve&&le(ve,G.id)&&delete ve[G.id]},has:function(G){var ve=pe(this);if(!U(G))return!1;var Ie=A(G);return Ie===!0?k(ve).has(G):Ie&&le(Ie,ve.id)}}),S(fe,re?{get:function(G){var ve=pe(this);if(U(G)){var Ie=A(G);return Ie===!0?k(ve).get(G):Ie?Ie[ve.id]:void 0}},set:function(G,ve){return q(this,G,ve)}}:{add:function(G){return q(this,G,!0)}}),z}}},34535:(v,T,s)=>{"use strict";var p=s(93085),S=s(98576),A=s(32861),h=s(76192),E=s(98711),F=s(33442),U=s(46961),_=s(16447),Q=s(35744),le=s(11284),K=s(42760).f,ne=s(50454).forEach,$=s(50069),P=s(73326),Y=P.set,L=P.getterFor;v.exports=function(C,k,B){var X=C.indexOf("Map")!==-1,H=C.indexOf("Weak")!==-1,D=X?"set":"add",re=S[C],J=re&&re.prototype,z={},fe;if(!$||!_(re)||!(H||J.forEach&&!h(function(){new re().entries().next()})))fe=B.getConstructor(k,C,X,D),A.enable();else{fe=k(function(Z,G){Y(U(Z,pe),{type:C,collection:new re}),G!=null&&F(G,Z[D],{that:Z,AS_ENTRIES:X})});var pe=fe.prototype,q=L(C);ne(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(Z){var G=Z=="add"||Z=="set";Z in J&&!(H&&Z=="clear")&&E(pe,Z,function(ve,Ie){var Ne=q(this).collection;if(!G&&H&&!Q(ve))return Z=="get"?void 0:!1;var je=Ne[Z](ve===0?0:ve,Ie);return G?this:je})}),H||K(pe,"size",{configurable:!0,get:function(){return q(this).collection.size}})}return le(fe,C,!1,!0),z[C]=fe,p({global:!0,forced:!0},z),H||B.setStrong(fe,C,X),fe}},97987:(v,T,s)=>{var p=s(64500),S=s(93011),A=s(5141),h=s(42760);v.exports=function(E,F,U){for(var _=S(F),Q=h.f,le=A.f,K=0;K<_.length;K++){var ne=_[K];!p(E,ne)&&!(U&&p(U,ne))&&Q(E,ne,le(F,ne))}}},83519:(v,T,s)=>{var p=s(18182),S=p("match");v.exports=function(A){var h=/./;try{"/./"[A](h)}catch(E){try{return h[S]=!1,"/./"[A](h)}catch(F){}}return!1}},4635:(v,T,s)=>{var p=s(76192);v.exports=!p(function(){function S(){}return S.prototype.constructor=null,Object.getPrototypeOf(new S)!==S.prototype})},87271:v=>{v.exports=function(T,s){return{value:T,done:s}}},98711:(v,T,s)=>{var p=s(50069),S=s(42760),A=s(90774);v.exports=p?function(h,E,F){return S.f(h,E,A(1,F))}:function(h,E,F){return h[E]=F,h}},90774:v=>{v.exports=function(T,s){return{enumerable:!(T&1),configurable:!(T&2),writable:!(T&4),value:s}}},49361:(v,T,s)=>{"use strict";var p=s(40077),S=s(42760),A=s(90774);v.exports=function(h,E,F){var U=p(E);U in h?S.f(h,U,A(0,F)):h[U]=F}},59362:(v,T,s)=>{var p=s(98711);v.exports=function(S,A,h,E){return E&&E.enumerable?S[A]=h:p(S,A,h),S}},35090:(v,T,s)=>{var p=s(59362);v.exports=function(S,A,h){for(var E in A)h&&h.unsafe&&S[E]?S[E]=A[E]:p(S,E,A[E],h);return S}},65098:(v,T,s)=>{var p=s(98576),S=Object.defineProperty;v.exports=function(A,h){try{S(p,A,{value:h,configurable:!0,writable:!0})}catch(E){p[A]=h}return h}},29970:(v,T,s)=>{"use strict";var p=s(79288),S=TypeError;v.exports=function(A,h){if(!delete A[h])throw S("Cannot delete property "+p(h)+" of "+p(A))}},50069:(v,T,s)=>{var p=s(76192);v.exports=!p(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},58382:v=>{var T=typeof document=="object"&&document.all,s=typeof T=="undefined"&&T!==void 0;v.exports={all:T,IS_HTMLDDA:s}},67449:(v,T,s)=>{var p=s(98576),S=s(35744),A=p.document,h=S(A)&&S(A.createElement);v.exports=function(E){return h?A.createElement(E):{}}},29425:v=>{var T=TypeError,s=9007199254740991;v.exports=function(p){if(p>s)throw T("Maximum allowed index exceeded");return p}},17365:v=>{v.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}},82957:(v,T,s)=>{var p=s(60659),S=s(58189);v.exports=!p&&!S&&typeof window=="object"&&typeof document=="object"},60659:v=>{v.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},29347:(v,T,s)=>{var p=s(78989),S=s(98576);v.exports=/ipad|iphone|ipod/i.test(p)&&S.Pebble!==void 0},69536:(v,T,s)=>{var p=s(78989);v.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(p)},58189:(v,T,s)=>{var p=s(29272),S=s(98576);v.exports=p(S.process)=="process"},5914:(v,T,s)=>{var p=s(78989);v.exports=/web0s(?!.*chrome)/i.test(p)},78989:(v,T,s)=>{var p=s(10150);v.exports=p("navigator","userAgent")||""},14218:(v,T,s)=>{var p=s(98576),S=s(78989),A=p.process,h=p.Deno,E=A&&A.versions||h&&h.version,F=E&&E.v8,U,_;F&&(U=F.split("."),_=U[0]>0&&U[0]<4?1:+(U[0]+U[1])),!_&&S&&(U=S.match(/Edge\/(\d+)/),(!U||U[1]>=74)&&(U=S.match(/Chrome\/(\d+)/),U&&(_=+U[1]))),v.exports=_},45607:(v,T,s)=>{var p=s(57545);v.exports=function(S){return p[S+"Prototype"]}},82952:v=>{v.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},14503:(v,T,s)=>{var p=s(84120),S=Error,A=p("".replace),h=function(U){return String(S(U).stack)}("zxcasd"),E=/\n\s*at [^:]*:[^\n]*/,F=E.test(h);v.exports=function(U,_){if(F&&typeof U=="string"&&!S.prepareStackTrace)for(;_--;)U=A(U,E,"");return U}},50274:(v,T,s)=>{var p=s(76192),S=s(90774);v.exports=!p(function(){var A=Error("a");return"stack"in A?(Object.defineProperty(A,"stack",S(1,7)),A.stack!==7):!0})},93085:(v,T,s)=>{"use strict";var p=s(98576),S=s(86298),A=s(84120),h=s(16447),E=s(5141).f,F=s(89245),U=s(57545),_=s(8043),Q=s(98711),le=s(64500),K=function(ne){var $=function(P,Y,L){if(this instanceof $){switch(arguments.length){case 0:return new ne;case 1:return new ne(P);case 2:return new ne(P,Y)}return new ne(P,Y,L)}return S(ne,this,arguments)};return $.prototype=ne.prototype,$};v.exports=function(ne,$){var P=ne.target,Y=ne.global,L=ne.stat,C=ne.proto,k=Y?p:L?p[P]:(p[P]||{}).prototype,B=Y?U:U[P]||Q(U,P,{})[P],X=B.prototype,H,D,re,J,z,fe,pe,q,Z;for(J in $)H=F(Y?J:P+(L?".":"#")+J,ne.forced),D=!H&&k&&le(k,J),fe=B[J],D&&(ne.dontCallGetSet?(Z=E(k,J),pe=Z&&Z.value):pe=k[J]),z=D&&pe?pe:$[J],!(D&&typeof fe==typeof z)&&(ne.bind&&D?q=_(z,p):ne.wrap&&D?q=K(z):C&&h(z)?q=A(z):q=z,(ne.sham||z&&z.sham||fe&&fe.sham)&&Q(q,"sham",!0),Q(B,J,q),C&&(re=P+"Prototype",le(U,re)||Q(U,re,{}),Q(U[re],J,z),ne.real&&X&&!X[J]&&Q(X,J,z)))}},76192:v=>{v.exports=function(T){try{return!!T()}catch(s){return!0}}},47636:(v,T,s)=>{var p=s(76192);v.exports=!p(function(){return Object.isExtensible(Object.preventExtensions({}))})},86298:(v,T,s)=>{var p=s(22784),S=Function.prototype,A=S.apply,h=S.call;v.exports=typeof Reflect=="object"&&Reflect.apply||(p?h.bind(A):function(){return h.apply(A,arguments)})},8043:(v,T,s)=>{var p=s(84120),S=s(66235),A=s(22784),h=p(p.bind);v.exports=function(E,F){return S(E),F===void 0?E:A?h(E,F):function(){return E.apply(F,arguments)}}},22784:(v,T,s)=>{var p=s(76192);v.exports=!p(function(){var S=function(){}.bind();return typeof S!="function"||S.hasOwnProperty("prototype")})},18922:(v,T,s)=>{var p=s(22784),S=Function.prototype.call;v.exports=p?S.bind(S):function(){return S.apply(S,arguments)}},22282:(v,T,s)=>{var p=s(50069),S=s(64500),A=Function.prototype,h=p&&Object.getOwnPropertyDescriptor,E=S(A,"name"),F=E&&function(){}.name==="something",U=E&&(!p||p&&h(A,"name").configurable);v.exports={EXISTS:E,PROPER:F,CONFIGURABLE:U}},41258:(v,T,s)=>{var p=s(22784),S=Function.prototype,A=S.call,h=p&&S.bind.bind(A,A);v.exports=function(E){return p?h(E):function(){return A.apply(E,arguments)}}},84120:(v,T,s)=>{var p=s(29272),S=s(41258);v.exports=function(A){if(p(A)==="Function")return S(A)}},10150:(v,T,s)=>{var p=s(57545),S=s(98576),A=s(16447),h=function(E){return A(E)?E:void 0};v.exports=function(E,F){return arguments.length<2?h(p[E])||h(S[E]):p[E]&&p[E][F]||S[E]&&S[E][F]}},78703:(v,T,s)=>{var p=s(4696),S=s(75037),A=s(75646),h=s(47771),E=s(18182),F=E("iterator");v.exports=function(U){if(!A(U))return S(U,F)||S(U,"@@iterator")||h[p(U)]}},61669:(v,T,s)=>{var p=s(18922),S=s(66235),A=s(31138),h=s(79288),E=s(78703),F=TypeError;v.exports=function(U,_){var Q=arguments.length<2?E(U):_;if(S(Q))return A(p(Q,U));throw F(h(U)+" is not iterable")}},75037:(v,T,s)=>{var p=s(66235),S=s(75646);v.exports=function(A,h){var E=A[h];return S(E)?void 0:p(E)}},98576:(v,T,s)=>{var p=function(S){return S&&S.Math==Math&&S};v.exports=p(typeof globalThis=="object"&&globalThis)||p(typeof window=="object"&&window)||p(typeof self=="object"&&self)||p(typeof s.g=="object"&&s.g)||function(){return this}()||Function("return this")()},64500:(v,T,s)=>{var p=s(84120),S=s(71795),A=p({}.hasOwnProperty);v.exports=Object.hasOwn||function(E,F){return A(S(E),F)}},14535:v=>{v.exports={}},63681:(v,T,s)=>{var p=s(98576);v.exports=function(S,A){var h=p.console;h&&h.error&&(arguments.length==1?h.error(S):h.error(S,A))}},47403:(v,T,s)=>{var p=s(10150);v.exports=p("document","documentElement")},80188:(v,T,s)=>{var p=s(50069),S=s(76192),A=s(67449);v.exports=!p&&!S(function(){return Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a!=7})},2202:(v,T,s)=>{var p=s(84120),S=s(76192),A=s(29272),h=Object,E=p("".split);v.exports=S(function(){return!h("z").propertyIsEnumerable(0)})?function(F){return A(F)=="String"?E(F,""):h(F)}:h},19516:(v,T,s)=>{var p=s(84120),S=s(16447),A=s(46434),h=p(Function.toString);S(A.inspectSource)||(A.inspectSource=function(E){return h(E)}),v.exports=A.inspectSource},10273:(v,T,s)=>{var p=s(35744),S=s(98711);v.exports=function(A,h){p(h)&&"cause"in h&&S(A,"cause",h.cause)}},32861:(v,T,s)=>{var p=s(93085),S=s(84120),A=s(14535),h=s(35744),E=s(64500),F=s(42760).f,U=s(92092),_=s(24052),Q=s(4532),le=s(42759),K=s(47636),ne=!1,$=le("meta"),P=0,Y=function(H){F(H,$,{value:{objectID:"O"+P++,weakData:{}}})},L=function(H,D){if(!h(H))return typeof H=="symbol"?H:(typeof H=="string"?"S":"P")+H;if(!E(H,$)){if(!Q(H))return"F";if(!D)return"E";Y(H)}return H[$].objectID},C=function(H,D){if(!E(H,$)){if(!Q(H))return!0;if(!D)return!1;Y(H)}return H[$].weakData},k=function(H){return K&&ne&&Q(H)&&!E(H,$)&&Y(H),H},B=function(){X.enable=function(){},ne=!0;var H=U.f,D=S([].splice),re={};re[$]=1,H(re).length&&(U.f=function(J){for(var z=H(J),fe=0,pe=z.length;fe<pe;fe++)if(z[fe]===$){D(z,fe,1);break}return z},p({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_.f}))},X=v.exports={enable:B,fastKey:L,getWeakData:C,onFreeze:k};A[$]=!0},73326:(v,T,s)=>{var p=s(55278),S=s(98576),A=s(35744),h=s(98711),E=s(64500),F=s(46434),U=s(69766),_=s(14535),Q="Object already initialized",le=S.TypeError,K=S.WeakMap,ne,$,P,Y=function(B){return P(B)?$(B):ne(B,{})},L=function(B){return function(X){var H;if(!A(X)||(H=$(X)).type!==B)throw le("Incompatible receiver, "+B+" required");return H}};if(p||F.state){var C=F.state||(F.state=new K);C.get=C.get,C.has=C.has,C.set=C.set,ne=function(B,X){if(C.has(B))throw le(Q);return X.facade=B,C.set(B,X),X},$=function(B){return C.get(B)||{}},P=function(B){return C.has(B)}}else{var k=U("state");_[k]=!0,ne=function(B,X){if(E(B,k))throw le(Q);return X.facade=B,h(B,k,X),X},$=function(B){return E(B,k)?B[k]:{}},P=function(B){return E(B,k)}}v.exports={set:ne,get:$,has:P,enforce:Y,getterFor:L}},96109:(v,T,s)=>{var p=s(18182),S=s(47771),A=p("iterator"),h=Array.prototype;v.exports=function(E){return E!==void 0&&(S.Array===E||h[A]===E)}},34770:(v,T,s)=>{var p=s(29272);v.exports=Array.isArray||function(A){return p(A)=="Array"}},16447:(v,T,s)=>{var p=s(58382),S=p.all;v.exports=p.IS_HTMLDDA?function(A){return typeof A=="function"||A===S}:function(A){return typeof A=="function"}},22091:(v,T,s)=>{var p=s(84120),S=s(76192),A=s(16447),h=s(4696),E=s(10150),F=s(19516),U=function(){},_=[],Q=E("Reflect","construct"),le=/^\s*(?:class|function)\b/,K=p(le.exec),ne=!le.exec(U),$=function(L){if(!A(L))return!1;try{return Q(U,_,L),!0}catch(C){return!1}},P=function(L){if(!A(L))return!1;switch(h(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ne||!!K(le,F(L))}catch(C){return!0}};P.sham=!0,v.exports=!Q||S(function(){var Y;return $($.call)||!$(Object)||!$(function(){Y=!0})||Y})?P:$},89245:(v,T,s)=>{var p=s(76192),S=s(16447),A=/#|\.prototype\./,h=function(Q,le){var K=F[E(Q)];return K==_?!0:K==U?!1:S(le)?p(le):!!le},E=h.normalize=function(Q){return String(Q).replace(A,".").toLowerCase()},F=h.data={},U=h.NATIVE="N",_=h.POLYFILL="P";v.exports=h},75646:v=>{v.exports=function(T){return T==null}},35744:(v,T,s)=>{var p=s(16447),S=s(58382),A=S.all;v.exports=S.IS_HTMLDDA?function(h){return typeof h=="object"?h!==null:p(h)||h===A}:function(h){return typeof h=="object"?h!==null:p(h)}},85546:v=>{v.exports=!0},94352:(v,T,s)=>{var p=s(35744),S=s(29272),A=s(18182),h=A("match");v.exports=function(E){var F;return p(E)&&((F=E[h])!==void 0?!!F:S(E)=="RegExp")}},23236:(v,T,s)=>{var p=s(10150),S=s(16447),A=s(8902),h=s(50615),E=Object;v.exports=h?function(F){return typeof F=="symbol"}:function(F){var U=p("Symbol");return S(U)&&A(U.prototype,E(F))}},33442:(v,T,s)=>{var p=s(8043),S=s(18922),A=s(31138),h=s(79288),E=s(96109),F=s(84104),U=s(8902),_=s(61669),Q=s(78703),le=s(66639),K=TypeError,ne=function(P,Y){this.stopped=P,this.result=Y},$=ne.prototype;v.exports=function(P,Y,L){var C=L&&L.that,k=!!(L&&L.AS_ENTRIES),B=!!(L&&L.IS_RECORD),X=!!(L&&L.IS_ITERATOR),H=!!(L&&L.INTERRUPTED),D=p(Y,C),re,J,z,fe,pe,q,Z,G=function(Ie){return re&&le(re,"normal",Ie),new ne(!0,Ie)},ve=function(Ie){return k?(A(Ie),H?D(Ie[0],Ie[1],G):D(Ie[0],Ie[1])):H?D(Ie,G):D(Ie)};if(B)re=P.iterator;else if(X)re=P;else{if(J=Q(P),!J)throw K(h(P)+" is not iterable");if(E(J)){for(z=0,fe=F(P);fe>z;z++)if(pe=ve(P[z]),pe&&U($,pe))return pe;return new ne(!1)}re=_(P,J)}for(q=B?P.next:re.next;!(Z=S(q,re)).done;){try{pe=ve(Z.value)}catch(Ie){le(re,"throw",Ie)}if(typeof pe=="object"&&pe&&U($,pe))return pe}return new ne(!1)}},66639:(v,T,s)=>{var p=s(18922),S=s(31138),A=s(75037);v.exports=function(h,E,F){var U,_;S(h);try{if(U=A(h,"return"),!U){if(E==="throw")throw F;return F}U=p(U,h)}catch(Q){_=!0,U=Q}if(E==="throw")throw F;if(_)throw U;return S(U),F}},25695:(v,T,s)=>{"use strict";var p=s(54413).IteratorPrototype,S=s(52853),A=s(90774),h=s(11284),E=s(47771),F=function(){return this};v.exports=function(U,_,Q,le){var K=_+" Iterator";return U.prototype=S(p,{next:A(+!le,Q)}),h(U,K,!1,!0),E[K]=F,U}},65297:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(85546),h=s(22282),E=s(16447),F=s(25695),U=s(89341),_=s(24469),Q=s(11284),le=s(98711),K=s(59362),ne=s(18182),$=s(47771),P=s(54413),Y=h.PROPER,L=h.CONFIGURABLE,C=P.IteratorPrototype,k=P.BUGGY_SAFARI_ITERATORS,B=ne("iterator"),X="keys",H="values",D="entries",re=function(){return this};v.exports=function(J,z,fe,pe,q,Z,G){F(fe,z,pe);var ve=function(Pe){if(Pe===q&&_e)return _e;if(!k&&Pe in je)return je[Pe];switch(Pe){case X:return function(){return new fe(this,Pe)};case H:return function(){return new fe(this,Pe)};case D:return function(){return new fe(this,Pe)}}return function(){return new fe(this)}},Ie=z+" Iterator",Ne=!1,je=J.prototype,tt=je[B]||je["@@iterator"]||q&&je[q],_e=!k&&tt||ve(q),mt=z=="Array"&&je.entries||tt,De,Oe,Ue;if(mt&&(De=U(mt.call(new J)),De!==Object.prototype&&De.next&&(!A&&U(De)!==C&&(_?_(De,C):E(De[B])||K(De,B,re)),Q(De,Ie,!0,!0),A&&($[Ie]=re))),Y&&q==H&&tt&&tt.name!==H&&(!A&&L?le(je,"name",H):(Ne=!0,_e=function(){return S(tt,this)})),q)if(Oe={values:ve(H),keys:Z?_e:ve(X),entries:ve(D)},G)for(Ue in Oe)(k||Ne||!(Ue in je))&&K(je,Ue,Oe[Ue]);else p({target:z,proto:!0,forced:k||Ne},Oe);return(!A||G)&&je[B]!==_e&&K(je,B,_e,{name:q}),$[z]=_e,Oe}},54413:(v,T,s)=>{"use strict";var p=s(76192),S=s(16447),A=s(35744),h=s(52853),E=s(89341),F=s(59362),U=s(18182),_=s(85546),Q=U("iterator"),le=!1,K,ne,$;[].keys&&($=[].keys(),"next"in $?(ne=E(E($)),ne!==Object.prototype&&(K=ne)):le=!0);var P=!A(K)||p(function(){var Y={};return K[Q].call(Y)!==Y});P?K={}:_&&(K=h(K)),S(K[Q])||F(K,Q,function(){return this}),v.exports={IteratorPrototype:K,BUGGY_SAFARI_ITERATORS:le}},47771:v=>{v.exports={}},84104:(v,T,s)=>{var p=s(8445);v.exports=function(S){return p(S.length)}},77679:v=>{var T=Math.ceil,s=Math.floor;v.exports=Math.trunc||function(S){var A=+S;return(A>0?s:T)(A)}},12950:(v,T,s)=>{var p=s(98576),S=s(8043),A=s(5141).f,h=s(67160).set,E=s(69536),F=s(29347),U=s(5914),_=s(58189),Q=p.MutationObserver||p.WebKitMutationObserver,le=p.document,K=p.process,ne=p.Promise,$=A(p,"queueMicrotask"),P=$&&$.value,Y,L,C,k,B,X,H,D;P||(Y=function(){var re,J;for(_&&(re=K.domain)&&re.exit();L;){J=L.fn,L=L.next;try{J()}catch(z){throw L?k():C=void 0,z}}C=void 0,re&&re.enter()},!E&&!_&&!U&&Q&&le?(B=!0,X=le.createTextNode(""),new Q(Y).observe(X,{characterData:!0}),k=function(){X.data=B=!B}):!F&&ne&&ne.resolve?(H=ne.resolve(void 0),H.constructor=ne,D=S(H.then,H),k=function(){D(Y)}):_?k=function(){K.nextTick(Y)}:(h=S(h,p),k=function(){h(Y)})),v.exports=P||function(re){var J={fn:re,next:void 0};C&&(C.next=J),L||(L=J,k()),C=J}},99438:(v,T,s)=>{"use strict";var p=s(66235),S=TypeError,A=function(h){var E,F;this.promise=new h(function(U,_){if(E!==void 0||F!==void 0)throw S("Bad Promise constructor");E=U,F=_}),this.resolve=p(E),this.reject=p(F)};v.exports.f=function(h){return new A(h)}},36016:(v,T,s)=>{var p=s(44845);v.exports=function(S,A){return S===void 0?arguments.length<2?"":A:p(S)}},9703:(v,T,s)=>{var p=s(94352),S=TypeError;v.exports=function(A){if(p(A))throw S("The method doesn't accept regular expressions");return A}},52503:(v,T,s)=>{"use strict";var p=s(50069),S=s(84120),A=s(18922),h=s(76192),E=s(57653),F=s(84750),U=s(56007),_=s(71795),Q=s(2202),le=Object.assign,K=Object.defineProperty,ne=S([].concat);v.exports=!le||h(function(){if(p&&le({b:1},le(K({},"a",{enumerable:!0,get:function(){K(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var $={},P={},Y=Symbol(),L="abcdefghijklmnopqrst";return $[Y]=7,L.split("").forEach(function(C){P[C]=C}),le({},$)[Y]!=7||E(le({},P)).join("")!=L})?function(P,Y){for(var L=_(P),C=arguments.length,k=1,B=F.f,X=U.f;C>k;)for(var H=Q(arguments[k++]),D=B?ne(E(H),B(H)):E(H),re=D.length,J=0,z;re>J;)z=D[J++],(!p||A(X,H,z))&&(L[z]=H[z]);return L}:le},52853:(v,T,s)=>{var p=s(31138),S=s(11187),A=s(82952),h=s(14535),E=s(47403),F=s(67449),U=s(69766),_=">",Q="<",le="prototype",K="script",ne=U("IE_PROTO"),$=function(){},P=function(B){return Q+K+_+B+Q+"/"+K+_},Y=function(B){B.write(P("")),B.close();var X=B.parentWindow.Object;return B=null,X},L=function(){var B=F("iframe"),X="java"+K+":",H;return B.style.display="none",E.appendChild(B),B.src=String(X),H=B.contentWindow.document,H.open(),H.write(P("document.F=Object")),H.close(),H.F},C,k=function(){try{C=new ActiveXObject("htmlfile")}catch(X){}k=typeof document!="undefined"?document.domain&&C?Y(C):L():Y(C);for(var B=A.length;B--;)delete k[le][A[B]];return k()};h[ne]=!0,v.exports=Object.create||function(X,H){var D;return X!==null?($[le]=p(X),D=new $,$[le]=null,D[ne]=X):D=k(),H===void 0?D:S.f(D,H)}},11187:(v,T,s)=>{var p=s(50069),S=s(69600),A=s(42760),h=s(31138),E=s(20101),F=s(57653);T.f=p&&!S?Object.defineProperties:function(_,Q){h(_);for(var le=E(Q),K=F(Q),ne=K.length,$=0,P;ne>$;)A.f(_,P=K[$++],le[P]);return _}},42760:(v,T,s)=>{var p=s(50069),S=s(80188),A=s(69600),h=s(31138),E=s(40077),F=TypeError,U=Object.defineProperty,_=Object.getOwnPropertyDescriptor,Q="enumerable",le="configurable",K="writable";T.f=p?A?function($,P,Y){if(h($),P=E(P),h(Y),typeof $=="function"&&P==="prototype"&&"value"in Y&&K in Y&&!Y[K]){var L=_($,P);L&&L[K]&&($[P]=Y.value,Y={configurable:le in Y?Y[le]:L[le],enumerable:Q in Y?Y[Q]:L[Q],writable:!1})}return U($,P,Y)}:U:function($,P,Y){if(h($),P=E(P),h(Y),S)try{return U($,P,Y)}catch(L){}if("get"in Y||"set"in Y)throw F("Accessors not supported");return"value"in Y&&($[P]=Y.value),$}},5141:(v,T,s)=>{var p=s(50069),S=s(18922),A=s(56007),h=s(90774),E=s(20101),F=s(40077),U=s(64500),_=s(80188),Q=Object.getOwnPropertyDescriptor;T.f=p?Q:function(K,ne){if(K=E(K),ne=F(ne),_)try{return Q(K,ne)}catch($){}if(U(K,ne))return h(!S(A.f,K,ne),K[ne])}},24052:(v,T,s)=>{var p=s(29272),S=s(20101),A=s(92092).f,h=s(1923),E=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],F=function(U){try{return A(U)}catch(_){return h(E)}};v.exports.f=function(_){return E&&p(_)=="Window"?F(_):A(S(_))}},92092:(v,T,s)=>{var p=s(57934),S=s(82952),A=S.concat("length","prototype");T.f=Object.getOwnPropertyNames||function(E){return p(E,A)}},84750:(v,T)=>{T.f=Object.getOwnPropertySymbols},89341:(v,T,s)=>{var p=s(64500),S=s(16447),A=s(71795),h=s(69766),E=s(4635),F=h("IE_PROTO"),U=Object,_=U.prototype;v.exports=E?U.getPrototypeOf:function(Q){var le=A(Q);if(p(le,F))return le[F];var K=le.constructor;return S(K)&&le instanceof K?K.prototype:le instanceof U?_:null}},4532:(v,T,s)=>{var p=s(76192),S=s(35744),A=s(29272),h=s(80410),E=Object.isExtensible,F=p(function(){E(1)});v.exports=F||h?function(_){return!S(_)||h&&A(_)=="ArrayBuffer"?!1:E?E(_):!0}:E},8902:(v,T,s)=>{var p=s(84120);v.exports=p({}.isPrototypeOf)},57934:(v,T,s)=>{var p=s(84120),S=s(64500),A=s(20101),h=s(48180).indexOf,E=s(14535),F=p([].push);v.exports=function(U,_){var Q=A(U),le=0,K=[],ne;for(ne in Q)!S(E,ne)&&S(Q,ne)&&F(K,ne);for(;_.length>le;)S(Q,ne=_[le++])&&(~h(K,ne)||F(K,ne));return K}},57653:(v,T,s)=>{var p=s(57934),S=s(82952);v.exports=Object.keys||function(h){return p(h,S)}},56007:(v,T)=>{"use strict";var s={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,S=p&&!s.call({1:2},1);T.f=S?function(h){var E=p(this,h);return!!E&&E.enumerable}:s},24469:(v,T,s)=>{var p=s(84120),S=s(31138),A=s(7757);v.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h=!1,E={},F;try{F=p(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),F(E,[]),h=E instanceof Array}catch(U){}return function(_,Q){return S(_),A(Q),h?F(_,Q):_.__proto__=Q,_}}():void 0)},75370:(v,T,s)=>{var p=s(50069),S=s(84120),A=s(57653),h=s(20101),E=s(56007).f,F=S(E),U=S([].push),_=function(Q){return function(le){for(var K=h(le),ne=A(K),$=ne.length,P=0,Y=[],L;$>P;)L=ne[P++],(!p||F(K,L))&&U(Y,Q?[L,K[L]]:K[L]);return Y}};v.exports={entries:_(!0),values:_(!1)}},40158:(v,T,s)=>{"use strict";var p=s(83471),S=s(4696);v.exports=p?{}.toString:function(){return"[object "+S(this)+"]"}},380:(v,T,s)=>{var p=s(18922),S=s(16447),A=s(35744),h=TypeError;v.exports=function(E,F){var U,_;if(F==="string"&&S(U=E.toString)&&!A(_=p(U,E))||S(U=E.valueOf)&&!A(_=p(U,E))||F!=="string"&&S(U=E.toString)&&!A(_=p(U,E)))return _;throw h("Can't convert object to primitive value")}},93011:(v,T,s)=>{var p=s(10150),S=s(84120),A=s(92092),h=s(84750),E=s(31138),F=S([].concat);v.exports=p("Reflect","ownKeys")||function(_){var Q=A.f(E(_)),le=h.f;return le?F(Q,le(_)):Q}},57545:v=>{v.exports={}},70892:v=>{v.exports=function(T){try{return{error:!1,value:T()}}catch(s){return{error:!0,value:s}}}},30511:(v,T,s)=>{var p=s(98576),S=s(15813),A=s(16447),h=s(89245),E=s(19516),F=s(18182),U=s(82957),_=s(60659),Q=s(85546),le=s(14218),K=S&&S.prototype,ne=F("species"),$=!1,P=A(p.PromiseRejectionEvent),Y=h("Promise",function(){var L=E(S),C=L!==String(S);if(!C&&le===66||Q&&!(K.catch&&K.finally))return!0;if(!le||le<51||!/native code/.test(L)){var k=new S(function(H){H(1)}),B=function(H){H(function(){},function(){})},X=k.constructor={};if(X[ne]=B,$=k.then(function(){})instanceof B,!$)return!0}return!C&&(U||_)&&!P});v.exports={CONSTRUCTOR:Y,REJECTION_EVENT:P,SUBCLASSING:$}},15813:(v,T,s)=>{var p=s(98576);v.exports=p.Promise},19126:(v,T,s)=>{var p=s(31138),S=s(35744),A=s(99438);v.exports=function(h,E){if(p(h),S(E)&&E.constructor===h)return E;var F=A.f(h),U=F.resolve;return U(E),F.promise}},52775:(v,T,s)=>{var p=s(15813),S=s(19770),A=s(30511).CONSTRUCTOR;v.exports=A||!S(function(h){p.all(h).then(void 0,function(){})})},6412:v=>{var T=function(){this.head=null,this.tail=null};T.prototype={add:function(s){var p={item:s,next:null};this.head?this.tail.next=p:this.head=p,this.tail=p},get:function(){var s=this.head;if(s)return this.head=s.next,this.tail===s&&(this.tail=null),s.item}},v.exports=T},13209:(v,T,s)=>{var p=s(75646),S=TypeError;v.exports=function(A){if(p(A))throw S("Can't call method on "+A);return A}},63656:(v,T,s)=>{"use strict";var p=s(10150),S=s(42760),A=s(18182),h=s(50069),E=A("species");v.exports=function(F){var U=p(F),_=S.f;h&&U&&!U[E]&&_(U,E,{configurable:!0,get:function(){return this}})}},11284:(v,T,s)=>{var p=s(83471),S=s(42760).f,A=s(98711),h=s(64500),E=s(40158),F=s(18182),U=F("toStringTag");v.exports=function(_,Q,le,K){if(_){var ne=le?_:_.prototype;h(ne,U)||S(ne,U,{configurable:!0,value:Q}),K&&!p&&A(ne,"toString",E)}}},69766:(v,T,s)=>{var p=s(98717),S=s(42759),A=p("keys");v.exports=function(h){return A[h]||(A[h]=S(h))}},46434:(v,T,s)=>{var p=s(98576),S=s(65098),A="__core-js_shared__",h=p[A]||S(A,{});v.exports=h},98717:(v,T,s)=>{var p=s(85546),S=s(46434);(v.exports=function(A,h){return S[A]||(S[A]=h!==void 0?h:{})})("versions",[]).push({version:"3.25.5",mode:p?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"})},84743:(v,T,s)=>{var p=s(31138),S=s(71404),A=s(75646),h=s(18182),E=h("species");v.exports=function(F,U){var _=p(F).constructor,Q;return _===void 0||A(Q=p(_)[E])?U:S(Q)}},863:(v,T,s)=>{var p=s(84120),S=s(41941),A=s(44845),h=s(13209),E=p("".charAt),F=p("".charCodeAt),U=p("".slice),_=function(Q){return function(le,K){var ne=A(h(le)),$=S(K),P=ne.length,Y,L;return $<0||$>=P?Q?"":void 0:(Y=F(ne,$),Y<55296||Y>56319||$+1===P||(L=F(ne,$+1))<56320||L>57343?Q?E(ne,$):Y:Q?U(ne,$,$+2):(Y-55296<<10)+(L-56320)+65536)}};v.exports={codeAt:_(!1),charAt:_(!0)}},36770:(v,T,s)=>{var p=s(14218),S=s(76192);v.exports=!!Object.getOwnPropertySymbols&&!S(function(){var A=Symbol();return!String(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&p&&p<41})},93407:(v,T,s)=>{var p=s(18922),S=s(10150),A=s(18182),h=s(59362);v.exports=function(){var E=S("Symbol"),F=E&&E.prototype,U=F&&F.valueOf,_=A("toPrimitive");F&&!F[_]&&h(F,_,function(Q){return p(U,this)},{arity:1})}},20031:(v,T,s)=>{var p=s(36770);v.exports=p&&!!Symbol.for&&!!Symbol.keyFor},67160:(v,T,s)=>{var p=s(98576),S=s(86298),A=s(8043),h=s(16447),E=s(64500),F=s(76192),U=s(47403),_=s(93096),Q=s(67449),le=s(67822),K=s(69536),ne=s(58189),$=p.setImmediate,P=p.clearImmediate,Y=p.process,L=p.Dispatch,C=p.Function,k=p.MessageChannel,B=p.String,X=0,H={},D="onreadystatechange",re,J,z,fe;try{re=p.location}catch(ve){}var pe=function(ve){if(E(H,ve)){var Ie=H[ve];delete H[ve],Ie()}},q=function(ve){return function(){pe(ve)}},Z=function(ve){pe(ve.data)},G=function(ve){p.postMessage(B(ve),re.protocol+"//"+re.host)};(!$||!P)&&($=function(Ie){le(arguments.length,1);var Ne=h(Ie)?Ie:C(Ie),je=_(arguments,1);return H[++X]=function(){S(Ne,void 0,je)},J(X),X},P=function(Ie){delete H[Ie]},ne?J=function(ve){Y.nextTick(q(ve))}:L&&L.now?J=function(ve){L.now(q(ve))}:k&&!K?(z=new k,fe=z.port2,z.port1.onmessage=Z,J=A(fe.postMessage,fe)):p.addEventListener&&h(p.postMessage)&&!p.importScripts&&re&&re.protocol!=="file:"&&!F(G)?(J=G,p.addEventListener("message",Z,!1)):D in Q("script")?J=function(ve){U.appendChild(Q("script"))[D]=function(){U.removeChild(this),pe(ve)}}:J=function(ve){setTimeout(q(ve),0)}),v.exports={set:$,clear:P}},97739:(v,T,s)=>{var p=s(41941),S=Math.max,A=Math.min;v.exports=function(h,E){var F=p(h);return F<0?S(F+E,0):A(F,E)}},20101:(v,T,s)=>{var p=s(2202),S=s(13209);v.exports=function(A){return p(S(A))}},41941:(v,T,s)=>{var p=s(77679);v.exports=function(S){var A=+S;return A!==A||A===0?0:p(A)}},8445:(v,T,s)=>{var p=s(41941),S=Math.min;v.exports=function(A){return A>0?S(p(A),9007199254740991):0}},71795:(v,T,s)=>{var p=s(13209),S=Object;v.exports=function(A){return S(p(A))}},97888:(v,T,s)=>{var p=s(18922),S=s(35744),A=s(23236),h=s(75037),E=s(380),F=s(18182),U=TypeError,_=F("toPrimitive");v.exports=function(Q,le){if(!S(Q)||A(Q))return Q;var K=h(Q,_),ne;if(K){if(le===void 0&&(le="default"),ne=p(K,Q,le),!S(ne)||A(ne))return ne;throw U("Can't convert object to primitive value")}return le===void 0&&(le="number"),E(Q,le)}},40077:(v,T,s)=>{var p=s(97888),S=s(23236);v.exports=function(A){var h=p(A,"string");return S(h)?h:h+""}},83471:(v,T,s)=>{var p=s(18182),S=p("toStringTag"),A={};A[S]="z",v.exports=String(A)==="[object z]"},44845:(v,T,s)=>{var p=s(4696),S=String;v.exports=function(A){if(p(A)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return S(A)}},79288:v=>{var T=String;v.exports=function(s){try{return T(s)}catch(p){return"Object"}}},42759:(v,T,s)=>{var p=s(84120),S=0,A=Math.random(),h=p(1 .toString);v.exports=function(E){return"Symbol("+(E===void 0?"":E)+")_"+h(++S+A,36)}},58552:(v,T,s)=>{var p=s(76192),S=s(18182),A=s(85546),h=S("iterator");v.exports=!p(function(){var E=new URL("b?a=1&b=2&c=3","http://a"),F=E.searchParams,U="";return E.pathname="c%20d",F.forEach(function(_,Q){F.delete("b"),U+=Q+_}),A&&!E.toJSON||!F.sort||E.href!=="http://a/c%20d?a=1&c=3"||F.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!F[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||U!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50615:(v,T,s)=>{var p=s(36770);v.exports=p&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},69600:(v,T,s)=>{var p=s(50069),S=s(76192);v.exports=p&&S(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},67822:v=>{var T=TypeError;v.exports=function(s,p){if(s<p)throw T("Not enough arguments");return s}},55278:(v,T,s)=>{var p=s(98576),S=s(16447),A=p.WeakMap;v.exports=S(A)&&/native code/.test(String(A))},48332:(v,T,s)=>{var p=s(57545),S=s(64500),A=s(89207),h=s(42760).f;v.exports=function(E){var F=p.Symbol||(p.Symbol={});S(F,E)||h(F,E,{value:A.f(E)})}},89207:(v,T,s)=>{var p=s(18182);T.f=p},18182:(v,T,s)=>{var p=s(98576),S=s(98717),A=s(64500),h=s(42759),E=s(36770),F=s(50615),U=S("wks"),_=p.Symbol,Q=_&&_.for,le=F?_:_&&_.withoutSetter||h;v.exports=function(K){if(!A(U,K)||!(E||typeof U[K]=="string")){var ne="Symbol."+K;E&&A(_,K)?U[K]=_[K]:F&&Q?U[K]=Q(ne):U[K]=le(ne)}return U[K]}},93820:(v,T,s)=>{"use strict";var p=s(93085),S=s(8902),A=s(89341),h=s(24469),E=s(97987),F=s(52853),U=s(98711),_=s(90774),Q=s(14503),le=s(10273),K=s(33442),ne=s(36016),$=s(18182),P=s(50274),Y=$("toStringTag"),L=Error,C=[].push,k=function(H,D){var re=arguments.length>2?arguments[2]:void 0,J=S(B,this),z;h?z=h(L(),J?A(this):B):(z=J?this:F(B),U(z,Y,"Error")),D!==void 0&&U(z,"message",ne(D)),P&&U(z,"stack",Q(z.stack,1)),le(z,re);var fe=[];return K(H,C,{that:fe}),U(z,"errors",fe),z};h?h(k,L):E(k,L,{name:!0});var B=k.prototype=F(L.prototype,{constructor:_(1,k),message:_(1,""),name:_(1,"AggregateError")});p({global:!0,constructor:!0,arity:2},{AggregateError:k})},4242:(v,T,s)=>{s(93820)},59106:(v,T,s)=>{"use strict";var p=s(93085),S=s(76192),A=s(34770),h=s(35744),E=s(71795),F=s(84104),U=s(29425),_=s(49361),Q=s(71321),le=s(90242),K=s(18182),ne=s(14218),$=K("isConcatSpreadable"),P=ne>=51||!S(function(){var k=[];return k[$]=!1,k.concat()[0]!==k}),Y=le("concat"),L=function(k){if(!h(k))return!1;var B=k[$];return B!==void 0?!!B:A(k)},C=!P||!Y;p({target:"Array",proto:!0,arity:1,forced:C},{concat:function(B){var X=E(this),H=Q(X,0),D=0,re,J,z,fe,pe;for(re=-1,z=arguments.length;re<z;re++)if(pe=re===-1?X:arguments[re],L(pe))for(fe=F(pe),U(D+fe),J=0;J<fe;J++,D++)J in pe&&_(H,D,pe[J]);else U(D+1),_(H,D++,pe);return H.length=D,H}})},73436:(v,T,s)=>{"use strict";var p=s(93085),S=s(50454).filter,A=s(90242),h=A("filter");p({target:"Array",proto:!0,forced:!h},{filter:function(F){return S(this,F,arguments.length>1?arguments[1]:void 0)}})},10880:(v,T,s)=>{"use strict";var p=s(93085),S=s(50454).find,A=s(67423),h="find",E=!0;h in[]&&Array(1)[h](function(){E=!1}),p({target:"Array",proto:!0,forced:E},{find:function(U){return S(this,U,arguments.length>1?arguments[1]:void 0)}}),A(h)},9823:(v,T,s)=>{"use strict";var p=s(93085),S=s(87397);p({target:"Array",proto:!0,forced:[].forEach!=S},{forEach:S})},19173:(v,T,s)=>{var p=s(93085),S=s(20841),A=s(19770),h=!A(function(E){Array.from(E)});p({target:"Array",stat:!0,forced:h},{from:S})},70024:(v,T,s)=>{"use strict";var p=s(93085),S=s(48180).includes,A=s(76192),h=s(67423),E=A(function(){return!Array(1).includes()});p({target:"Array",proto:!0,forced:E},{includes:function(U){return S(this,U,arguments.length>1?arguments[1]:void 0)}}),h("includes")},62276:(v,T,s)=>{"use strict";var p=s(93085),S=s(84120),A=s(48180).indexOf,h=s(10424),E=S([].indexOf),F=!!E&&1/E([1],1,-0)<0,U=h("indexOf");p({target:"Array",proto:!0,forced:F||!U},{indexOf:function(Q){var le=arguments.length>1?arguments[1]:void 0;return F?E(this,Q,le)||0:A(this,Q,le)}})},8118:(v,T,s)=>{var p=s(93085),S=s(34770);p({target:"Array",stat:!0},{isArray:S})},98939:(v,T,s)=>{"use strict";var p=s(20101),S=s(67423),A=s(47771),h=s(73326),E=s(42760).f,F=s(65297),U=s(87271),_=s(85546),Q=s(50069),le="Array Iterator",K=h.set,ne=h.getterFor(le);v.exports=F(Array,"Array",function(P,Y){K(this,{type:le,target:p(P),index:0,kind:Y})},function(){var P=ne(this),Y=P.target,L=P.kind,C=P.index++;return!Y||C>=Y.length?(P.target=void 0,U(void 0,!0)):L=="keys"?U(C,!1):L=="values"?U(Y[C],!1):U([C,Y[C]],!1)},"values");var $=A.Arguments=A.Array;if(S("keys"),S("values"),S("entries"),!_&&Q&&$.name!=="values")try{E($,"name",{value:"values"})}catch(P){}},63838:(v,T,s)=>{"use strict";var p=s(93085),S=s(50454).map,A=s(90242),h=A("map");p({target:"Array",proto:!0,forced:!h},{map:function(F){return S(this,F,arguments.length>1?arguments[1]:void 0)}})},99523:(v,T,s)=>{"use strict";var p=s(93085),S=s(84120),A=s(34770),h=S([].reverse),E=[1,2];p({target:"Array",proto:!0,forced:String(E)===String(E.reverse())},{reverse:function(){return A(this)&&(this.length=this.length),h(this)}})},65818:(v,T,s)=>{"use strict";var p=s(93085),S=s(34770),A=s(22091),h=s(35744),E=s(97739),F=s(84104),U=s(20101),_=s(49361),Q=s(18182),le=s(90242),K=s(93096),ne=le("slice"),$=Q("species"),P=Array,Y=Math.max;p({target:"Array",proto:!0,forced:!ne},{slice:function(C,k){var B=U(this),X=F(B),H=E(C,X),D=E(k===void 0?X:k,X),re,J,z;if(S(B)&&(re=B.constructor,A(re)&&(re===P||S(re.prototype))?re=void 0:h(re)&&(re=re[$],re===null&&(re=void 0)),re===P||re===void 0))return K(B,H,D);for(J=new(re===void 0?P:re)(Y(D-H,0)),z=0;H<D;H++,z++)H in B&&_(J,z,B[H]);return J.length=z,J}})},12178:(v,T,s)=>{"use strict";var p=s(93085),S=s(71795),A=s(97739),h=s(41941),E=s(84104),F=s(95072),U=s(29425),_=s(71321),Q=s(49361),le=s(29970),K=s(90242),ne=K("splice"),$=Math.max,P=Math.min;p({target:"Array",proto:!0,forced:!ne},{splice:function(L,C){var k=S(this),B=E(k),X=A(L,B),H=arguments.length,D,re,J,z,fe,pe;for(H===0?D=re=0:H===1?(D=0,re=B-X):(D=H-2,re=P($(h(C),0),B-X)),U(B+D-re),J=_(k,re),z=0;z<re;z++)fe=X+z,fe in k&&Q(J,z,k[fe]);if(J.length=re,D<re){for(z=X;z<B-re;z++)fe=z+re,pe=z+D,fe in k?k[pe]=k[fe]:le(k,pe);for(z=B;z>B-re+D;z--)le(k,z-1)}else if(D>re)for(z=B-re;z>X;z--)fe=z+re-1,pe=z+D-1,fe in k?k[pe]=k[fe]:le(k,pe);for(z=0;z<D;z++)k[z+X]=arguments[z+2];return F(k,B-re+D),J}})},25067:(v,T,s)=>{var p=s(93085),S=s(98576);p({global:!0,forced:S.globalThis!==S},{globalThis:S})},59704:(v,T,s)=>{var p=s(93085),S=s(10150),A=s(86298),h=s(18922),E=s(84120),F=s(76192),U=s(34770),_=s(16447),Q=s(35744),le=s(23236),K=s(93096),ne=s(36770),$=S("JSON","stringify"),P=E(/./.exec),Y=E("".charAt),L=E("".charCodeAt),C=E("".replace),k=E(1 .toString),B=/[\uD800-\uDFFF]/g,X=/^[\uD800-\uDBFF]$/,H=/^[\uDC00-\uDFFF]$/,D=!ne||F(function(){var fe=S("Symbol")();return $([fe])!="[null]"||$({a:fe})!="{}"||$(Object(fe))!="{}"}),re=F(function(){return $("\uDF06\uD834")!=='"\\udf06\\ud834"'||$("\uDEAD")!=='"\\udead"'}),J=function(fe,pe){var q=K(arguments),Z=pe;if(!(!Q(pe)&&fe===void 0||le(fe)))return U(pe)||(pe=function(G,ve){if(_(Z)&&(ve=h(Z,this,G,ve)),!le(ve))return ve}),q[1]=pe,A($,null,q)},z=function(fe,pe,q){var Z=Y(q,pe-1),G=Y(q,pe+1);return P(X,fe)&&!P(H,G)||P(H,fe)&&!P(X,Z)?"\\u"+k(L(fe,0),16):fe};$&&p({target:"JSON",stat:!0,arity:3,forced:D||re},{stringify:function(pe,q,Z){var G=K(arguments),ve=A(D?J:$,null,G);return re&&typeof ve=="string"?C(ve,B,z):ve}})},68671:(v,T,s)=>{var p=s(98576),S=s(11284);S(p.JSON,"JSON",!0)},58556:()=>{},93582:(v,T,s)=>{var p=s(93085),S=s(52503);p({target:"Object",stat:!0,arity:2,forced:Object.assign!==S},{assign:S})},73113:(v,T,s)=>{var p=s(93085),S=s(50069),A=s(52853);p({target:"Object",stat:!0,sham:!S},{create:A})},57585:(v,T,s)=>{var p=s(93085),S=s(50069),A=s(11187).f;p({target:"Object",stat:!0,forced:Object.defineProperties!==A,sham:!S},{defineProperties:A})},20297:(v,T,s)=>{var p=s(93085),S=s(50069),A=s(42760).f;p({target:"Object",stat:!0,forced:Object.defineProperty!==A,sham:!S},{defineProperty:A})},27442:(v,T,s)=>{var p=s(93085),S=s(75370).entries;p({target:"Object",stat:!0},{entries:function(h){return S(h)}})},89189:(v,T,s)=>{var p=s(93085),S=s(76192),A=s(20101),h=s(5141).f,E=s(50069),F=S(function(){h(1)}),U=!E||F;p({target:"Object",stat:!0,forced:U,sham:!E},{getOwnPropertyDescriptor:function(Q,le){return h(A(Q),le)}})},62509:(v,T,s)=>{var p=s(93085),S=s(50069),A=s(93011),h=s(20101),E=s(5141),F=s(49361);p({target:"Object",stat:!0,sham:!S},{getOwnPropertyDescriptors:function(_){for(var Q=h(_),le=E.f,K=A(Q),ne={},$=0,P,Y;K.length>$;)Y=le(Q,P=K[$++]),Y!==void 0&&F(ne,P,Y);return ne}})},17895:(v,T,s)=>{var p=s(93085),S=s(36770),A=s(76192),h=s(84750),E=s(71795),F=!S||A(function(){h.f(1)});p({target:"Object",stat:!0,forced:F},{getOwnPropertySymbols:function(_){var Q=h.f;return Q?Q(E(_)):[]}})},19234:(v,T,s)=>{var p=s(93085),S=s(76192),A=s(71795),h=s(89341),E=s(4635),F=S(function(){h(1)});p({target:"Object",stat:!0,forced:F,sham:!E},{getPrototypeOf:function(_){return h(A(_))}})},92647:(v,T,s)=>{var p=s(93085),S=s(71795),A=s(57653),h=s(76192),E=h(function(){A(1)});p({target:"Object",stat:!0,forced:E},{keys:function(U){return A(S(U))}})},13222:(v,T,s)=>{var p=s(93085),S=s(24469);p({target:"Object",stat:!0},{setPrototypeOf:S})},46663:()=>{},97884:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(66235),h=s(99438),E=s(70892),F=s(33442);p({target:"Promise",stat:!0},{allSettled:function(_){var Q=this,le=h.f(Q),K=le.resolve,ne=le.reject,$=E(function(){var P=A(Q.resolve),Y=[],L=0,C=1;F(_,function(k){var B=L++,X=!1;C++,S(P,Q,k).then(function(H){X||(X=!0,Y[B]={status:"fulfilled",value:H},--C||K(Y))},function(H){X||(X=!0,Y[B]={status:"rejected",reason:H},--C||K(Y))})}),--C||K(Y)});return $.error&&ne($.value),le.promise}})},89701:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(66235),h=s(99438),E=s(70892),F=s(33442),U=s(52775);p({target:"Promise",stat:!0,forced:U},{all:function(Q){var le=this,K=h.f(le),ne=K.resolve,$=K.reject,P=E(function(){var Y=A(le.resolve),L=[],C=0,k=1;F(Q,function(B){var X=C++,H=!1;k++,S(Y,le,B).then(function(D){H||(H=!0,L[X]=D,--k||ne(L))},$)}),--k||ne(L)});return P.error&&$(P.value),K.promise}})},78885:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(66235),h=s(10150),E=s(99438),F=s(70892),U=s(33442),_="No one promise resolved";p({target:"Promise",stat:!0},{any:function(le){var K=this,ne=h("AggregateError"),$=E.f(K),P=$.resolve,Y=$.reject,L=F(function(){var C=A(K.resolve),k=[],B=0,X=1,H=!1;U(le,function(D){var re=B++,J=!1;X++,S(C,K,D).then(function(z){J||H||(H=!0,P(z))},function(z){J||H||(J=!0,k[re]=z,--X||Y(new ne(k,_)))})}),--X||Y(new ne(k,_))});return L.error&&Y(L.value),$.promise}})},34025:(v,T,s)=>{"use strict";var p=s(93085),S=s(85546),A=s(30511).CONSTRUCTOR,h=s(15813),E=s(10150),F=s(16447),U=s(59362),_=h&&h.prototype;if(p({target:"Promise",proto:!0,forced:A,real:!0},{catch:function(le){return this.then(void 0,le)}}),!S&&F(h)){var Q=E("Promise").prototype.catch;_.catch!==Q&&U(_,"catch",Q,{unsafe:!0})}},60268:(v,T,s)=>{"use strict";var p=s(93085),S=s(85546),A=s(58189),h=s(98576),E=s(18922),F=s(59362),U=s(24469),_=s(11284),Q=s(63656),le=s(66235),K=s(16447),ne=s(35744),$=s(46961),P=s(84743),Y=s(67160).set,L=s(12950),C=s(63681),k=s(70892),B=s(6412),X=s(73326),H=s(15813),D=s(30511),re=s(99438),J="Promise",z=D.CONSTRUCTOR,fe=D.REJECTION_EVENT,pe=D.SUBCLASSING,q=X.getterFor(J),Z=X.set,G=H&&H.prototype,ve=H,Ie=G,Ne=h.TypeError,je=h.document,tt=h.process,_e=re.f,mt=_e,De=!!(je&&je.createEvent&&h.dispatchEvent),Oe="unhandledrejection",Ue="rejectionhandled",Pe=0,Ce=1,Ge=2,rt=1,$e=2,et,Ze,Ct,kt,Zt=function(Xe){var gt;return ne(Xe)&&K(gt=Xe.then)?gt:!1},lt=function(Xe,gt){var Tt=gt.value,At=gt.state==Ce,Ot=At?Xe.ok:Xe.fail,ct=Xe.resolve,it=Xe.reject,Et=Xe.domain,nt,Ve,ue;try{Ot?(At||(gt.rejection===$e&&qr(gt),gt.rejection=rt),Ot===!0?nt=Tt:(Et&&Et.enter(),nt=Ot(Tt),Et&&(Et.exit(),ue=!0)),nt===Xe.promise?it(Ne("Promise-chain cycle")):(Ve=Zt(nt))?E(Ve,nt,ct,it):ct(nt)):it(Tt)}catch(ge){Et&&!ue&&Et.exit(),it(ge)}},xt=function(Xe,gt){Xe.notified||(Xe.notified=!0,L(function(){for(var Tt=Xe.reactions,At;At=Tt.get();)lt(At,Xe);Xe.notified=!1,gt&&!Xe.rejection&&Kr(Xe)}))},Ft=function(Xe,gt,Tt){var At,Ot;De?(At=je.createEvent("Event"),At.promise=gt,At.reason=Tt,At.initEvent(Xe,!1,!0),h.dispatchEvent(At)):At={promise:gt,reason:Tt},!fe&&(Ot=h["on"+Xe])?Ot(At):Xe===Oe&&C("Unhandled promise rejection",Tt)},Kr=function(Xe){E(Y,h,function(){var gt=Xe.facade,Tt=Xe.value,At=br(Xe),Ot;if(At&&(Ot=k(function(){A?tt.emit("unhandledRejection",Tt,gt):Ft(Oe,gt,Tt)}),Xe.rejection=A||br(Xe)?$e:rt,Ot.error))throw Ot.value})},br=function(Xe){return Xe.rejection!==rt&&!Xe.parent},qr=function(Xe){E(Y,h,function(){var gt=Xe.facade;A?tt.emit("rejectionHandled",gt):Ft(Ue,gt,Xe.value)})},xr=function(Xe,gt,Tt){return function(At){Xe(gt,At,Tt)}},Yt=function(Xe,gt,Tt){Xe.done||(Xe.done=!0,Tt&&(Xe=Tt),Xe.value=gt,Xe.state=Ge,xt(Xe,!0))},dr=function(Xe,gt,Tt){if(!Xe.done){Xe.done=!0,Tt&&(Xe=Tt);try{if(Xe.facade===gt)throw Ne("Promise can't be resolved itself");var At=Zt(gt);At?L(function(){var Ot={done:!1};try{E(At,gt,xr(dr,Ot,Xe),xr(Yt,Ot,Xe))}catch(ct){Yt(Ot,ct,Xe)}}):(Xe.value=gt,Xe.state=Ce,xt(Xe,!1))}catch(Ot){Yt({done:!1},Ot,Xe)}}};if(z&&(ve=function(gt){$(this,Ie),le(gt),E(et,this);var Tt=q(this);try{gt(xr(dr,Tt),xr(Yt,Tt))}catch(At){Yt(Tt,At)}},Ie=ve.prototype,et=function(gt){Z(this,{type:J,done:!1,notified:!1,parent:!1,reactions:new B,rejection:!1,state:Pe,value:void 0})},et.prototype=F(Ie,"then",function(gt,Tt){var At=q(this),Ot=_e(P(this,ve));return At.parent=!0,Ot.ok=K(gt)?gt:!0,Ot.fail=K(Tt)&&Tt,Ot.domain=A?tt.domain:void 0,At.state==Pe?At.reactions.add(Ot):L(function(){lt(Ot,At)}),Ot.promise}),Ze=function(){var Xe=new et,gt=q(Xe);this.promise=Xe,this.resolve=xr(dr,gt),this.reject=xr(Yt,gt)},re.f=_e=function(Xe){return Xe===ve||Xe===Ct?new Ze(Xe):mt(Xe)},!S&&K(H)&&G!==Object.prototype)){kt=G.then,pe||F(G,"then",function(gt,Tt){var At=this;return new ve(function(Ot,ct){E(kt,At,Ot,ct)}).then(gt,Tt)},{unsafe:!0});try{delete G.constructor}catch(Xe){}U&&U(G,Ie)}p({global:!0,constructor:!0,wrap:!0,forced:z},{Promise:ve}),_(ve,J,!1,!0),Q(J)},91868:(v,T,s)=>{"use strict";var p=s(93085),S=s(85546),A=s(15813),h=s(76192),E=s(10150),F=s(16447),U=s(84743),_=s(19126),Q=s(59362),le=A&&A.prototype,K=!!A&&h(function(){le.finally.call({then:function(){}},function(){})});if(p({target:"Promise",proto:!0,real:!0,forced:K},{finally:function($){var P=U(this,E("Promise")),Y=F($);return this.then(Y?function(L){return _(P,$()).then(function(){return L})}:$,Y?function(L){return _(P,$()).then(function(){throw L})}:$)}}),!S&&F(A)){var ne=E("Promise").prototype.finally;le.finally!==ne&&Q(le,"finally",ne,{unsafe:!0})}},59021:(v,T,s)=>{s(60268),s(89701),s(34025),s(67196),s(85873),s(22931)},67196:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(66235),h=s(99438),E=s(70892),F=s(33442),U=s(52775);p({target:"Promise",stat:!0,forced:U},{race:function(Q){var le=this,K=h.f(le),ne=K.reject,$=E(function(){var P=A(le.resolve);F(Q,function(Y){S(P,le,Y).then(K.resolve,ne)})});return $.error&&ne($.value),K.promise}})},85873:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(99438),h=s(30511).CONSTRUCTOR;p({target:"Promise",stat:!0,forced:h},{reject:function(F){var U=A.f(this);return S(U.reject,void 0,F),U.promise}})},22931:(v,T,s)=>{"use strict";var p=s(93085),S=s(10150),A=s(85546),h=s(15813),E=s(30511).CONSTRUCTOR,F=s(19126),U=S("Promise"),_=A&&!E;p({target:"Promise",stat:!0,forced:A||E},{resolve:function(le){return F(_&&this===U?h:this,le)}})},71367:()=>{},39247:(v,T,s)=>{"use strict";var p=s(93085),S=s(84120),A=s(9703),h=s(13209),E=s(44845),F=s(83519),U=S("".indexOf);p({target:"String",proto:!0,forced:!F("includes")},{includes:function(Q){return!!~U(E(h(this)),E(A(Q)),arguments.length>1?arguments[1]:void 0)}})},5454:(v,T,s)=>{"use strict";var p=s(863).charAt,S=s(44845),A=s(73326),h=s(65297),E=s(87271),F="String Iterator",U=A.set,_=A.getterFor(F);h(String,"String",function(Q){U(this,{type:F,string:S(Q),index:0})},function(){var le=_(this),K=le.string,ne=le.index,$;return ne>=K.length?E(void 0,!0):($=p(K,ne),le.index+=$.length,E($,!1))})},32991:(v,T,s)=>{"use strict";var p=s(93085),S=s(84120),A=s(5141).f,h=s(8445),E=s(44845),F=s(9703),U=s(13209),_=s(83519),Q=s(85546),le=S("".startsWith),K=S("".slice),ne=Math.min,$=_("startsWith"),P=!Q&&!$&&!!function(){var Y=A(String.prototype,"startsWith");return Y&&!Y.writable}();p({target:"String",proto:!0,forced:!P&&!$},{startsWith:function(L){var C=E(U(this));F(L);var k=h(ne(arguments.length>1?arguments[1]:void 0,C.length)),B=E(L);return le?le(C,B,k):K(C,k,k+B.length)===B}})},19781:(v,T,s)=>{var p=s(48332);p("asyncIterator")},49351:(v,T,s)=>{"use strict";var p=s(93085),S=s(98576),A=s(18922),h=s(84120),E=s(85546),F=s(50069),U=s(36770),_=s(76192),Q=s(64500),le=s(8902),K=s(31138),ne=s(20101),$=s(40077),P=s(44845),Y=s(90774),L=s(52853),C=s(57653),k=s(92092),B=s(24052),X=s(84750),H=s(5141),D=s(42760),re=s(11187),J=s(56007),z=s(59362),fe=s(98717),pe=s(69766),q=s(14535),Z=s(42759),G=s(18182),ve=s(89207),Ie=s(48332),Ne=s(93407),je=s(11284),tt=s(73326),_e=s(50454).forEach,mt=pe("hidden"),De="Symbol",Oe="prototype",Ue=tt.set,Pe=tt.getterFor(De),Ce=Object[Oe],Ge=S.Symbol,rt=Ge&&Ge[Oe],$e=S.TypeError,et=S.QObject,Ze=H.f,Ct=D.f,kt=B.f,Zt=J.f,lt=h([].push),xt=fe("symbols"),Ft=fe("op-symbols"),Kr=fe("wks"),br=!et||!et[Oe]||!et[Oe].findChild,qr=F&&_(function(){return L(Ct({},"a",{get:function(){return Ct(this,"a",{value:7}).a}})).a!=7})?function(ct,it,Et){var nt=Ze(Ce,it);nt&&delete Ce[it],Ct(ct,it,Et),nt&&ct!==Ce&&Ct(Ce,it,nt)}:Ct,xr=function(ct,it){var Et=xt[ct]=L(rt);return Ue(Et,{type:De,tag:ct,description:it}),F||(Et.description=it),Et},Yt=function(it,Et,nt){it===Ce&&Yt(Ft,Et,nt),K(it);var Ve=$(Et);return K(nt),Q(xt,Ve)?(nt.enumerable?(Q(it,mt)&&it[mt][Ve]&&(it[mt][Ve]=!1),nt=L(nt,{enumerable:Y(0,!1)})):(Q(it,mt)||Ct(it,mt,Y(1,{})),it[mt][Ve]=!0),qr(it,Ve,nt)):Ct(it,Ve,nt)},dr=function(it,Et){K(it);var nt=ne(Et),Ve=C(nt).concat(Ot(nt));return _e(Ve,function(ue){(!F||A(gt,nt,ue))&&Yt(it,ue,nt[ue])}),it},Xe=function(it,Et){return Et===void 0?L(it):dr(L(it),Et)},gt=function(it){var Et=$(it),nt=A(Zt,this,Et);return this===Ce&&Q(xt,Et)&&!Q(Ft,Et)?!1:nt||!Q(this,Et)||!Q(xt,Et)||Q(this,mt)&&this[mt][Et]?nt:!0},Tt=function(it,Et){var nt=ne(it),Ve=$(Et);if(!(nt===Ce&&Q(xt,Ve)&&!Q(Ft,Ve))){var ue=Ze(nt,Ve);return ue&&Q(xt,Ve)&&!(Q(nt,mt)&&nt[mt][Ve])&&(ue.enumerable=!0),ue}},At=function(it){var Et=kt(ne(it)),nt=[];return _e(Et,function(Ve){!Q(xt,Ve)&&!Q(q,Ve)&&lt(nt,Ve)}),nt},Ot=function(ct){var it=ct===Ce,Et=kt(it?Ft:ne(ct)),nt=[];return _e(Et,function(Ve){Q(xt,Ve)&&(!it||Q(Ce,Ve))&&lt(nt,xt[Ve])}),nt};U||(Ge=function(){if(le(rt,this))throw $e("Symbol is not a constructor");var it=!arguments.length||arguments[0]===void 0?void 0:P(arguments[0]),Et=Z(it),nt=function(Ve){this===Ce&&A(nt,Ft,Ve),Q(this,mt)&&Q(this[mt],Et)&&(this[mt][Et]=!1),qr(this,Et,Y(1,Ve))};return F&&br&&qr(Ce,Et,{configurable:!0,set:nt}),xr(Et,it)},rt=Ge[Oe],z(rt,"toString",function(){return Pe(this).tag}),z(Ge,"withoutSetter",function(ct){return xr(Z(ct),ct)}),J.f=gt,D.f=Yt,re.f=dr,H.f=Tt,k.f=B.f=At,X.f=Ot,ve.f=function(ct){return xr(G(ct),ct)},F&&(Ct(rt,"description",{configurable:!0,get:function(){return Pe(this).description}}),E||z(Ce,"propertyIsEnumerable",gt,{unsafe:!0}))),p({global:!0,constructor:!0,wrap:!0,forced:!U,sham:!U},{Symbol:Ge}),_e(C(Kr),function(ct){Ie(ct)}),p({target:De,stat:!0,forced:!U},{useSetter:function(){br=!0},useSimple:function(){br=!1}}),p({target:"Object",stat:!0,forced:!U,sham:!F},{create:Xe,defineProperty:Yt,defineProperties:dr,getOwnPropertyDescriptor:Tt}),p({target:"Object",stat:!0,forced:!U},{getOwnPropertyNames:At}),Ne(),je(Ge,De),q[mt]=!0},50492:()=>{},19148:(v,T,s)=>{var p=s(93085),S=s(10150),A=s(64500),h=s(44845),E=s(98717),F=s(20031),U=E("string-to-symbol-registry"),_=E("symbol-to-string-registry");p({target:"Symbol",stat:!0,forced:!F},{for:function(Q){var le=h(Q);if(A(U,le))return U[le];var K=S("Symbol")(le);return U[le]=K,_[K]=le,K}})},66681:(v,T,s)=>{var p=s(48332);p("hasInstance")},29594:(v,T,s)=>{var p=s(48332);p("isConcatSpreadable")},63665:(v,T,s)=>{var p=s(48332);p("iterator")},36187:(v,T,s)=>{s(49351),s(19148),s(15991),s(59704),s(17895)},15991:(v,T,s)=>{var p=s(93085),S=s(64500),A=s(23236),h=s(79288),E=s(98717),F=s(20031),U=E("symbol-to-string-registry");p({target:"Symbol",stat:!0,forced:!F},{keyFor:function(Q){if(!A(Q))throw TypeError(h(Q)+" is not a symbol");if(S(U,Q))return U[Q]}})},11250:(v,T,s)=>{var p=s(48332);p("matchAll")},29017:(v,T,s)=>{var p=s(48332);p("match")},79786:(v,T,s)=>{var p=s(48332);p("replace")},90503:(v,T,s)=>{var p=s(48332);p("search")},16565:(v,T,s)=>{var p=s(48332);p("species")},69322:(v,T,s)=>{var p=s(48332);p("split")},13610:(v,T,s)=>{var p=s(48332),S=s(93407);p("toPrimitive"),S()},36886:(v,T,s)=>{var p=s(10150),S=s(48332),A=s(11284);S("toStringTag"),A(p("Symbol"),"Symbol")},33514:(v,T,s)=>{var p=s(48332);p("unscopables")},10572:(v,T,s)=>{"use strict";var p=s(98576),S=s(84120),A=s(35090),h=s(32861),E=s(34535),F=s(51057),U=s(35744),_=s(4532),Q=s(73326).enforce,le=s(55278),K=!p.ActiveXObject&&"ActiveXObject"in p,ne,$=function(X){return function(){return X(this,arguments.length?arguments[0]:void 0)}},P=E("WeakMap",$,F);if(le&&K){ne=F.getConstructor($,"WeakMap",!0),h.enable();var Y=P.prototype,L=S(Y.delete),C=S(Y.has),k=S(Y.get),B=S(Y.set);A(Y,{delete:function(X){if(U(X)&&!_(X)){var H=Q(this);return H.frozen||(H.frozen=new ne),L(this,X)||H.frozen.delete(X)}return L(this,X)},has:function(H){if(U(H)&&!_(H)){var D=Q(this);return D.frozen||(D.frozen=new ne),C(this,H)||D.frozen.has(H)}return C(this,H)},get:function(H){if(U(H)&&!_(H)){var D=Q(this);return D.frozen||(D.frozen=new ne),C(this,H)?k(this,H):D.frozen.get(H)}return k(this,H)},set:function(H,D){if(U(H)&&!_(H)){var re=Q(this);re.frozen||(re.frozen=new ne),C(this,H)?B(this,H,D):re.frozen.set(H,D)}else B(this,H,D);return this}})}},33983:(v,T,s)=>{s(10572)},12752:(v,T,s)=>{s(4242)},5363:(v,T,s)=>{s(25067)},14562:(v,T,s)=>{s(97884)},69355:(v,T,s)=>{s(78885)},25363:(v,T,s)=>{"use strict";var p=s(93085),S=s(99438),A=s(70892);p({target:"Promise",stat:!0,forced:!0},{try:function(h){var E=S.f(this),F=A(h);return(F.error?E.reject:E.resolve)(F.value),E.promise}})},60177:(v,T,s)=>{var p=s(48332);p("asyncDispose")},9031:(v,T,s)=>{var p=s(48332);p("dispose")},96658:(v,T,s)=>{var p=s(48332);p("matcher")},54212:(v,T,s)=>{var p=s(48332);p("metadataKey")},71875:(v,T,s)=>{var p=s(48332);p("metadata")},18658:(v,T,s)=>{var p=s(48332);p("observable")},54592:(v,T,s)=>{var p=s(48332);p("patternMatch")},26680:(v,T,s)=>{var p=s(48332);p("replaceAll")},80162:(v,T,s)=>{s(98939);var p=s(17365),S=s(98576),A=s(4696),h=s(98711),E=s(47771),F=s(18182),U=F("toStringTag");for(var _ in p){var Q=S[_],le=Q&&Q.prototype;le&&A(le)!==U&&h(le,U,_),E[_]=E.Array}},67054:(v,T,s)=>{"use strict";s(98939);var p=s(93085),S=s(98576),A=s(18922),h=s(84120),E=s(50069),F=s(58552),U=s(59362),_=s(35090),Q=s(11284),le=s(25695),K=s(73326),ne=s(46961),$=s(16447),P=s(64500),Y=s(8043),L=s(4696),C=s(31138),k=s(35744),B=s(44845),X=s(52853),H=s(90774),D=s(61669),re=s(78703),J=s(67822),z=s(18182),fe=s(6614),pe=z("iterator"),q="URLSearchParams",Z=q+"Iterator",G=K.set,ve=K.getterFor(q),Ie=K.getterFor(Z),Ne=Object.getOwnPropertyDescriptor,je=function(Ve){if(!E)return S[Ve];var ue=Ne(S,Ve);return ue&&ue.value},tt=je("fetch"),_e=je("Request"),mt=je("Headers"),De=_e&&_e.prototype,Oe=mt&&mt.prototype,Ue=S.RegExp,Pe=S.TypeError,Ce=S.decodeURIComponent,Ge=S.encodeURIComponent,rt=h("".charAt),$e=h([].join),et=h([].push),Ze=h("".replace),Ct=h([].shift),kt=h([].splice),Zt=h("".split),lt=h("".slice),xt=/\+/g,Ft=Array(4),Kr=function(Ve){return Ft[Ve-1]||(Ft[Ve-1]=Ue("((?:%[\\da-f]{2}){"+Ve+"})","gi"))},br=function(Ve){try{return Ce(Ve)}catch(ue){return Ve}},qr=function(Ve){var ue=Ze(Ve,xt," "),ge=4;try{return Ce(ue)}catch(Be){for(;ge;)ue=Ze(ue,Kr(ge--),br);return ue}},xr=/[!'()~]|%20/g,Yt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},dr=function(Ve){return Yt[Ve]},Xe=function(Ve){return Ze(Ge(Ve),xr,dr)},gt=le(function(ue,ge){G(this,{type:Z,iterator:D(ve(ue).entries),kind:ge})},"Iterator",function(){var ue=Ie(this),ge=ue.kind,Be=ue.iterator.next(),Ke=Be.value;return Be.done||(Be.value=ge==="keys"?Ke.key:ge==="values"?Ke.value:[Ke.key,Ke.value]),Be},!0),Tt=function(Ve){this.entries=[],this.url=null,Ve!==void 0&&(k(Ve)?this.parseObject(Ve):this.parseQuery(typeof Ve=="string"?rt(Ve,0)==="?"?lt(Ve,1):Ve:B(Ve)))};Tt.prototype={type:q,bindURL:function(Ve){this.url=Ve,this.update()},parseObject:function(Ve){var ue=re(Ve),ge,Be,Ke,at,bt,Rt,pr;if(ue)for(ge=D(Ve,ue),Be=ge.next;!(Ke=A(Be,ge)).done;){if(at=D(C(Ke.value)),bt=at.next,(Rt=A(bt,at)).done||(pr=A(bt,at)).done||!A(bt,at).done)throw Pe("Expected sequence with length 2");et(this.entries,{key:B(Rt.value),value:B(pr.value)})}else for(var Lt in Ve)P(Ve,Lt)&&et(this.entries,{key:Lt,value:B(Ve[Lt])})},parseQuery:function(Ve){if(Ve)for(var ue=Zt(Ve,"&"),ge=0,Be,Ke;ge<ue.length;)Be=ue[ge++],Be.length&&(Ke=Zt(Be,"="),et(this.entries,{key:qr(Ct(Ke)),value:qr($e(Ke,"="))}))},serialize:function(){for(var Ve=this.entries,ue=[],ge=0,Be;ge<Ve.length;)Be=Ve[ge++],et(ue,Xe(Be.key)+"="+Xe(Be.value));return $e(ue,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var At=function(){ne(this,Ot);var ue=arguments.length>0?arguments[0]:void 0;G(this,new Tt(ue))},Ot=At.prototype;if(_(Ot,{append:function(ue,ge){J(arguments.length,2);var Be=ve(this);et(Be.entries,{key:B(ue),value:B(ge)}),Be.updateURL()},delete:function(Ve){J(arguments.length,1);for(var ue=ve(this),ge=ue.entries,Be=B(Ve),Ke=0;Ke<ge.length;)ge[Ke].key===Be?kt(ge,Ke,1):Ke++;ue.updateURL()},get:function(ue){J(arguments.length,1);for(var ge=ve(this).entries,Be=B(ue),Ke=0;Ke<ge.length;Ke++)if(ge[Ke].key===Be)return ge[Ke].value;return null},getAll:function(ue){J(arguments.length,1);for(var ge=ve(this).entries,Be=B(ue),Ke=[],at=0;at<ge.length;at++)ge[at].key===Be&&et(Ke,ge[at].value);return Ke},has:function(ue){J(arguments.length,1);for(var ge=ve(this).entries,Be=B(ue),Ke=0;Ke<ge.length;)if(ge[Ke++].key===Be)return!0;return!1},set:function(ue,ge){J(arguments.length,1);for(var Be=ve(this),Ke=Be.entries,at=!1,bt=B(ue),Rt=B(ge),pr=0,Lt;pr<Ke.length;pr++)Lt=Ke[pr],Lt.key===bt&&(at?kt(Ke,pr--,1):(at=!0,Lt.value=Rt));at||et(Ke,{key:bt,value:Rt}),Be.updateURL()},sort:function(){var ue=ve(this);fe(ue.entries,function(ge,Be){return ge.key>Be.key?1:-1}),ue.updateURL()},forEach:function(ue){for(var ge=ve(this).entries,Be=Y(ue,arguments.length>1?arguments[1]:void 0),Ke=0,at;Ke<ge.length;)at=ge[Ke++],Be(at.value,at.key,this)},keys:function(){return new gt(this,"keys")},values:function(){return new gt(this,"values")},entries:function(){return new gt(this,"entries")}},{enumerable:!0}),U(Ot,pe,Ot.entries,{name:"entries"}),U(Ot,"toString",function(){return ve(this).serialize()},{enumerable:!0}),Q(At,q),p({global:!0,constructor:!0,forced:!F},{URLSearchParams:At}),!F&&$(mt)){var ct=h(Oe.has),it=h(Oe.set),Et=function(Ve){if(k(Ve)){var ue=Ve.body,ge;if(L(ue)===q)return ge=Ve.headers?new mt(Ve.headers):new mt,ct(ge,"content-type")||it(ge,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),X(Ve,{body:H(0,B(ue)),headers:H(0,ge)})}return Ve};if($(tt)&&p({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(ue){return tt(ue,arguments.length>1?Et(arguments[1]):{})}}),$(_e)){var nt=function(ue){return ne(this,De),new _e(ue,arguments.length>1?Et(arguments[1]):{})};De.constructor=nt,nt.prototype=De,p({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:nt})}}v.exports={URLSearchParams:At,getState:ve}},69336:(v,T,s)=>{s(67054)},53822:(v,T,s)=>{var p=s(52221);v.exports=p},21434:(v,T,s)=>{var p=s(75078);v.exports=p},51629:(v,T,s)=>{var p=s(77237);v.exports=p},46899:(v,T,s)=>{var p=s(60098);v.exports=p},27710:(v,T,s)=>{var p=s(65739);s(80162),v.exports=p},31585:(v,T,s)=>{var p=s(74030);v.exports=p},44877:(v,T,s)=>{var p=s(41484);v.exports=p},10140:(v,T,s)=>{s(80162);var p=s(4696),S=s(64500),A=s(8902),h=s(51629),E=Array.prototype,F={DOMTokenList:!0,NodeList:!0};v.exports=function(U){var _=U.entries;return U===E||A(E,U)&&_===E.entries||S(F,p(U))?h:_}},55603:(v,T,s)=>{var p=s(53669);v.exports=p},76237:(v,T,s)=>{var p=s(37506);v.exports=p},31206:(v,T,s)=>{s(80162);var p=s(4696),S=s(64500),A=s(8902),h=s(46899),E=Array.prototype,F={DOMTokenList:!0,NodeList:!0};v.exports=function(U){var _=U.forEach;return U===E||A(E,U)&&_===E.forEach||S(F,p(U))?h:_}},56515:(v,T,s)=>{var p=s(13173);v.exports=p},26174:(v,T,s)=>{var p=s(92604);v.exports=p},20057:(v,T,s)=>{var p=s(263);v.exports=p},87511:(v,T,s)=>{var p=s(80432);v.exports=p},24741:(v,T,s)=>{var p=s(77663);v.exports=p},8368:(v,T,s)=>{var p=s(45063);v.exports=p},342:(v,T,s)=>{var p=s(7769);v.exports=p},392:(v,T,s)=>{var p=s(96056);v.exports=p},28478:(v,T,s)=>{var p=s(99936);v.exports=p},4963:(v,T,s)=>{var p=s(23213);v.exports=p},21025:(v,T,s)=>{var p=s(38724);v.exports=p},27820:(v,T,s)=>{var p=s(63512);v.exports=p},58202:(v,T,s)=>{var p=s(2335);v.exports=p},74194:(v,T,s)=>{var p=s(60632);v.exports=p},32854:(v,T,s)=>{var p=s(81056);v.exports=p},60002:(v,T,s)=>{var p=s(12921);v.exports=p},28980:(v,T,s)=>{var p=s(8168);v.exports=p},45636:(v,T,s)=>{var p=s(38651);v.exports=p},66672:(v,T,s)=>{var p=s(33083);v.exports=p},46618:(v,T,s)=>{var p=s(93154);s(80162),v.exports=p},42285:(v,T,s)=>{var p=s(85008);s(80162),v.exports=p},58535:(v,T,s)=>{var p=s(994);s(80162),v.exports=p},72946:(v,T,s)=>{var p=s(32004);s(80162),v.exports=p},11235:(v,T,s)=>{var p=s(31293);s(80162),v.exports=p},32004:(v,T,s)=>{s(69336);var p=s(57545);v.exports=p.URLSearchParams},43616:function(){(function(v){var T=function(s){var p={searchParams:"URLSearchParams"in v,iterable:"Symbol"in v&&"iterator"in Symbol,blob:"FileReader"in v&&"Blob"in v&&function(){try{return new Blob,!0}catch(J){return!1}}(),formData:"FormData"in v,arrayBuffer:"ArrayBuffer"in v};function S(J){return J&&DataView.prototype.isPrototypeOf(J)}if(p.arrayBuffer)var A=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(J){return J&&A.indexOf(Object.prototype.toString.call(J))>-1};function E(J){if(typeof J!="string"&&(J=String(J)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(J))throw new TypeError("Invalid character in header field name");return J.toLowerCase()}function F(J){return typeof J!="string"&&(J=String(J)),J}function U(J){var z={next:function(){var fe=J.shift();return{done:fe===void 0,value:fe}}};return p.iterable&&(z[Symbol.iterator]=function(){return z}),z}function _(J){this.map={},J instanceof _?J.forEach(function(z,fe){this.append(fe,z)},this):Array.isArray(J)?J.forEach(function(z){this.append(z[0],z[1])},this):J&&Object.getOwnPropertyNames(J).forEach(function(z){this.append(z,J[z])},this)}_.prototype.append=function(J,z){J=E(J),z=F(z);var fe=this.map[J];this.map[J]=fe?fe+", "+z:z},_.prototype.delete=function(J){delete this.map[E(J)]},_.prototype.get=function(J){return J=E(J),this.has(J)?this.map[J]:null},_.prototype.has=function(J){return this.map.hasOwnProperty(E(J))},_.prototype.set=function(J,z){this.map[E(J)]=F(z)},_.prototype.forEach=function(J,z){for(var fe in this.map)this.map.hasOwnProperty(fe)&&J.call(z,this.map[fe],fe,this)},_.prototype.keys=function(){var J=[];return this.forEach(function(z,fe){J.push(fe)}),U(J)},_.prototype.values=function(){var J=[];return this.forEach(function(z){J.push(z)}),U(J)},_.prototype.entries=function(){var J=[];return this.forEach(function(z,fe){J.push([fe,z])}),U(J)},p.iterable&&(_.prototype[Symbol.iterator]=_.prototype.entries);function Q(J){if(J.bodyUsed)return Promise.reject(new TypeError("Already read"));J.bodyUsed=!0}function le(J){return new Promise(function(z,fe){J.onload=function(){z(J.result)},J.onerror=function(){fe(J.error)}})}function K(J){var z=new FileReader,fe=le(z);return z.readAsArrayBuffer(J),fe}function ne(J){var z=new FileReader,fe=le(z);return z.readAsText(J),fe}function $(J){for(var z=new Uint8Array(J),fe=new Array(z.length),pe=0;pe<z.length;pe++)fe[pe]=String.fromCharCode(z[pe]);return fe.join("")}function P(J){if(J.slice)return J.slice(0);var z=new Uint8Array(J.byteLength);return z.set(new Uint8Array(J)),z.buffer}function Y(){return this.bodyUsed=!1,this._initBody=function(J){this._bodyInit=J,J?typeof J=="string"?this._bodyText=J:p.blob&&Blob.prototype.isPrototypeOf(J)?this._bodyBlob=J:p.formData&&FormData.prototype.isPrototypeOf(J)?this._bodyFormData=J:p.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)?this._bodyText=J.toString():p.arrayBuffer&&p.blob&&S(J)?(this._bodyArrayBuffer=P(J.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):p.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(J)||h(J))?this._bodyArrayBuffer=P(J):this._bodyText=J=Object.prototype.toString.call(J):this._bodyText="",this.headers.get("content-type")||(typeof J=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):p.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},p.blob&&(this.blob=function(){var J=Q(this);if(J)return J;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?Q(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(K)}),this.text=function(){var J=Q(this);if(J)return J;if(this._bodyBlob)return ne(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve($(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(B)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(J){var z=J.toUpperCase();return L.indexOf(z)>-1?z:J}function k(J,z){z=z||{};var fe=z.body;if(J instanceof k){if(J.bodyUsed)throw new TypeError("Already read");this.url=J.url,this.credentials=J.credentials,z.headers||(this.headers=new _(J.headers)),this.method=J.method,this.mode=J.mode,this.signal=J.signal,!fe&&J._bodyInit!=null&&(fe=J._bodyInit,J.bodyUsed=!0)}else this.url=String(J);if(this.credentials=z.credentials||this.credentials||"same-origin",(z.headers||!this.headers)&&(this.headers=new _(z.headers)),this.method=C(z.method||this.method||"GET"),this.mode=z.mode||this.mode||null,this.signal=z.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)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function B(J){var z=new FormData;return J.trim().split("&").forEach(function(fe){if(fe){var pe=fe.split("="),q=pe.shift().replace(/\+/g," "),Z=pe.join("=").replace(/\+/g," ");z.append(decodeURIComponent(q),decodeURIComponent(Z))}}),z}function X(J){var z=new _,fe=J.replace(/\r?\n[\t ]+/g," ");return fe.split(/\r?\n/).forEach(function(pe){var q=pe.split(":"),Z=q.shift().trim();if(Z){var G=q.join(":").trim();z.append(Z,G)}}),z}Y.call(k.prototype);function H(J,z){z||(z={}),this.type="default",this.status=z.status===void 0?200:z.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in z?z.statusText:"OK",this.headers=new _(z.headers),this.url=z.url||"",this._initBody(J)}Y.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new _(this.headers),url:this.url})},H.error=function(){var J=new H(null,{status:0,statusText:""});return J.type="error",J};var D=[301,302,303,307,308];H.redirect=function(J,z){if(D.indexOf(z)===-1)throw new RangeError("Invalid status code");return new H(null,{status:z,headers:{location:J}})},s.DOMException=v.DOMException;try{new s.DOMException}catch(J){s.DOMException=function(z,fe){this.message=z,this.name=fe;var pe=Error(z);this.stack=pe.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function re(J,z){return new Promise(function(fe,pe){var q=new k(J,z);if(q.signal&&q.signal.aborted)return pe(new s.DOMException("Aborted","AbortError"));var Z=new XMLHttpRequest;function G(){Z.abort()}Z.onload=function(){var ve={status:Z.status,statusText:Z.statusText,headers:X(Z.getAllResponseHeaders()||"")};ve.url="responseURL"in Z?Z.responseURL:ve.headers.get("X-Request-URL");var Ie="response"in Z?Z.response:Z.responseText;fe(new H(Ie,ve))},Z.onerror=function(){pe(new TypeError("Network request failed"))},Z.ontimeout=function(){pe(new TypeError("Network request failed"))},Z.onabort=function(){pe(new s.DOMException("Aborted","AbortError"))},Z.open(q.method,q.url,!0),q.credentials==="include"?Z.withCredentials=!0:q.credentials==="omit"&&(Z.withCredentials=!1),"responseType"in Z&&p.blob&&(Z.responseType="blob"),q.headers.forEach(function(ve,Ie){Z.setRequestHeader(Ie,ve)}),q.signal&&(q.signal.addEventListener("abort",G),Z.onreadystatechange=function(){Z.readyState===4&&q.signal.removeEventListener("abort",G)}),Z.send(typeof q._bodyInit=="undefined"?null:q._bodyInit)})}return re.polyfill=!0,v.fetch||(v.fetch=re,v.Headers=_,v.Request=k,v.Response=H),s.Headers=_,s.Request=k,s.Response=H,s.fetch=re,Object.defineProperty(s,"__esModule",{value:!0}),s}({})})(typeof self!="undefined"?self:this)},96279:function(v,T){var s=typeof self!="undefined"?self:this,p=function(){function A(){this.fetch=!1,this.DOMException=s.DOMException}return A.prototype=s,new A}();(function(A){var h=function(E){var F={searchParams:"URLSearchParams"in A,iterable:"Symbol"in A&&"iterator"in Symbol,blob:"FileReader"in A&&"Blob"in A&&function(){try{return new Blob,!0}catch(Z){return!1}}(),formData:"FormData"in A,arrayBuffer:"ArrayBuffer"in A};function U(Z){return Z&&DataView.prototype.isPrototypeOf(Z)}if(F.arrayBuffer)var _=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Q=ArrayBuffer.isView||function(Z){return Z&&_.indexOf(Object.prototype.toString.call(Z))>-1};function le(Z){if(typeof Z!="string"&&(Z=String(Z)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Z))throw new TypeError("Invalid character in header field name");return Z.toLowerCase()}function K(Z){return typeof Z!="string"&&(Z=String(Z)),Z}function ne(Z){var G={next:function(){var ve=Z.shift();return{done:ve===void 0,value:ve}}};return F.iterable&&(G[Symbol.iterator]=function(){return G}),G}function $(Z){this.map={},Z instanceof $?Z.forEach(function(G,ve){this.append(ve,G)},this):Array.isArray(Z)?Z.forEach(function(G){this.append(G[0],G[1])},this):Z&&Object.getOwnPropertyNames(Z).forEach(function(G){this.append(G,Z[G])},this)}$.prototype.append=function(Z,G){Z=le(Z),G=K(G);var ve=this.map[Z];this.map[Z]=ve?ve+", "+G:G},$.prototype.delete=function(Z){delete this.map[le(Z)]},$.prototype.get=function(Z){return Z=le(Z),this.has(Z)?this.map[Z]:null},$.prototype.has=function(Z){return this.map.hasOwnProperty(le(Z))},$.prototype.set=function(Z,G){this.map[le(Z)]=K(G)},$.prototype.forEach=function(Z,G){for(var ve in this.map)this.map.hasOwnProperty(ve)&&Z.call(G,this.map[ve],ve,this)},$.prototype.keys=function(){var Z=[];return this.forEach(function(G,ve){Z.push(ve)}),ne(Z)},$.prototype.values=function(){var Z=[];return this.forEach(function(G){Z.push(G)}),ne(Z)},$.prototype.entries=function(){var Z=[];return this.forEach(function(G,ve){Z.push([ve,G])}),ne(Z)},F.iterable&&($.prototype[Symbol.iterator]=$.prototype.entries);function P(Z){if(Z.bodyUsed)return Promise.reject(new TypeError("Already read"));Z.bodyUsed=!0}function Y(Z){return new Promise(function(G,ve){Z.onload=function(){G(Z.result)},Z.onerror=function(){ve(Z.error)}})}function L(Z){var G=new FileReader,ve=Y(G);return G.readAsArrayBuffer(Z),ve}function C(Z){var G=new FileReader,ve=Y(G);return G.readAsText(Z),ve}function k(Z){for(var G=new Uint8Array(Z),ve=new Array(G.length),Ie=0;Ie<G.length;Ie++)ve[Ie]=String.fromCharCode(G[Ie]);return ve.join("")}function B(Z){if(Z.slice)return Z.slice(0);var G=new Uint8Array(Z.byteLength);return G.set(new Uint8Array(Z)),G.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(Z){this._bodyInit=Z,Z?typeof Z=="string"?this._bodyText=Z:F.blob&&Blob.prototype.isPrototypeOf(Z)?this._bodyBlob=Z:F.formData&&FormData.prototype.isPrototypeOf(Z)?this._bodyFormData=Z:F.searchParams&&URLSearchParams.prototype.isPrototypeOf(Z)?this._bodyText=Z.toString():F.arrayBuffer&&F.blob&&U(Z)?(this._bodyArrayBuffer=B(Z.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):F.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Z)||Q(Z))?this._bodyArrayBuffer=B(Z):this._bodyText=Z=Object.prototype.toString.call(Z):this._bodyText="",this.headers.get("content-type")||(typeof Z=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):F.searchParams&&URLSearchParams.prototype.isPrototypeOf(Z)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},F.blob&&(this.blob=function(){var Z=P(this);if(Z)return Z;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?P(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(L)}),this.text=function(){var Z=P(this);if(Z)return Z;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(k(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},F.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var H=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function D(Z){var G=Z.toUpperCase();return H.indexOf(G)>-1?G:Z}function re(Z,G){G=G||{};var ve=G.body;if(Z instanceof re){if(Z.bodyUsed)throw new TypeError("Already read");this.url=Z.url,this.credentials=Z.credentials,G.headers||(this.headers=new $(Z.headers)),this.method=Z.method,this.mode=Z.mode,this.signal=Z.signal,!ve&&Z._bodyInit!=null&&(ve=Z._bodyInit,Z.bodyUsed=!0)}else this.url=String(Z);if(this.credentials=G.credentials||this.credentials||"same-origin",(G.headers||!this.headers)&&(this.headers=new $(G.headers)),this.method=D(G.method||this.method||"GET"),this.mode=G.mode||this.mode||null,this.signal=G.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ve)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ve)}re.prototype.clone=function(){return new re(this,{body:this._bodyInit})};function J(Z){var G=new FormData;return Z.trim().split("&").forEach(function(ve){if(ve){var Ie=ve.split("="),Ne=Ie.shift().replace(/\+/g," "),je=Ie.join("=").replace(/\+/g," ");G.append(decodeURIComponent(Ne),decodeURIComponent(je))}}),G}function z(Z){var G=new $,ve=Z.replace(/\r?\n[\t ]+/g," ");return ve.split(/\r?\n/).forEach(function(Ie){var Ne=Ie.split(":"),je=Ne.shift().trim();if(je){var tt=Ne.join(":").trim();G.append(je,tt)}}),G}X.call(re.prototype);function fe(Z,G){G||(G={}),this.type="default",this.status=G.status===void 0?200:G.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in G?G.statusText:"OK",this.headers=new $(G.headers),this.url=G.url||"",this._initBody(Z)}X.call(fe.prototype),fe.prototype.clone=function(){return new fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new $(this.headers),url:this.url})},fe.error=function(){var Z=new fe(null,{status:0,statusText:""});return Z.type="error",Z};var pe=[301,302,303,307,308];fe.redirect=function(Z,G){if(pe.indexOf(G)===-1)throw new RangeError("Invalid status code");return new fe(null,{status:G,headers:{location:Z}})},E.DOMException=A.DOMException;try{new E.DOMException}catch(Z){E.DOMException=function(G,ve){this.message=G,this.name=ve;var Ie=Error(G);this.stack=Ie.stack},E.DOMException.prototype=Object.create(Error.prototype),E.DOMException.prototype.constructor=E.DOMException}function q(Z,G){return new Promise(function(ve,Ie){var Ne=new re(Z,G);if(Ne.signal&&Ne.signal.aborted)return Ie(new E.DOMException("Aborted","AbortError"));var je=new XMLHttpRequest;function tt(){je.abort()}je.onload=function(){var _e={status:je.status,statusText:je.statusText,headers:z(je.getAllResponseHeaders()||"")};_e.url="responseURL"in je?je.responseURL:_e.headers.get("X-Request-URL");var mt="response"in je?je.response:je.responseText;ve(new fe(mt,_e))},je.onerror=function(){Ie(new TypeError("Network request failed"))},je.ontimeout=function(){Ie(new TypeError("Network request failed"))},je.onabort=function(){Ie(new E.DOMException("Aborted","AbortError"))},je.open(Ne.method,Ne.url,!0),Ne.credentials==="include"?je.withCredentials=!0:Ne.credentials==="omit"&&(je.withCredentials=!1),"responseType"in je&&F.blob&&(je.responseType="blob"),Ne.headers.forEach(function(_e,mt){je.setRequestHeader(mt,_e)}),Ne.signal&&(Ne.signal.addEventListener("abort",tt),je.onreadystatechange=function(){je.readyState===4&&Ne.signal.removeEventListener("abort",tt)}),je.send(typeof Ne._bodyInit=="undefined"?null:Ne._bodyInit)})}return q.polyfill=!0,A.fetch||(A.fetch=q,A.Headers=$,A.Request=re,A.Response=fe),E.Headers=$,E.Request=re,E.Response=fe,E.fetch=q,Object.defineProperty(E,"__esModule",{value:!0}),E}({})})(p),p.fetch.ponyfill=!0,delete p.fetch.polyfill;var S=p;T=S.fetch,T.default=S.fetch,T.fetch=S.fetch,T.Headers=S.Headers,T.Request=S.Request,T.Response=S.Response,v.exports=T},6511:(v,T,s)=>{"use strict";s.r(T),s.d(T,{Console:()=>ep});var p={};s.r(p),s.d(p,{JsonPatchError:()=>i,_areEquals:()=>ce,applyOperation:()=>w,applyPatch:()=>O,applyReducer:()=>R,deepClone:()=>u,getValueByPointer:()=>y,validate:()=>oe,validator:()=>V});var S={};s.r(S),s.d(S,{compare:()=>dt,generate:()=>qe,observe:()=>Je,unobserve:()=>Qe});var A={};s.r(A),s.d(A,{cookie:()=>Rm,header:()=>Fm,path:()=>Pm,query:()=>Im});var h=s(2784);function E(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function F(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function U(e,r,n){return r&&F(e.prototype,r),n&&F(e,n),e}function _(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Q(){return Q=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Q.apply(this,arguments)}function le(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function K(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?le(Object(n),!0).forEach(function(a){_(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function ne(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&P(e,r)}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$(e)}function P(e,r){return P=Object.setPrototypeOf||function(a,o){return a.__proto__=o,a},P(e,r)}function Y(){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(e){return!1}}function L(e,r){if(e==null)return{};var n={},a=Object.keys(e),o,f;for(f=0;f<a.length;f++)o=a[f],!(r.indexOf(o)>=0)&&(n[o]=e[o]);return n}function C(e,r){if(e==null)return{};var n=L(e,r),a,o;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(e);for(o=0;o<f.length;o++)a=f[o],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}function k(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:k(e)}function X(e){var r=Y();return function(){var a=$(e),o;if(r){var f=$(this).constructor;o=Reflect.construct(a,arguments,f)}else o=a.apply(this,arguments);return B(this,o)}}function H(e,r){return J(e)||fe(e,r)||pe(e,r)||G()}function D(e){return re(e)||z(e)||pe(e)||Z()}function re(e){if(Array.isArray(e))return q(e)}function J(e){if(Array.isArray(e))return e}function z(e){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function fe(e,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],a=!0,o=!1,f=void 0;try{for(var d=e[Symbol.iterator](),m;!(a=(m=d.next()).done)&&(n.push(m.value),!(r&&n.length===r));a=!0);}catch(g){o=!0,f=g}finally{try{!a&&d.return!=null&&d.return()}finally{if(o)throw f}}return n}}function pe(e,r){if(!!e){if(typeof e=="string")return q(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,r)}}function q(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function Z(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
42
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
43
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ve(e,r){var n;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=pe(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(g){throw g},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
44
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,d=!1,m;return{s:function(){n=e[Symbol.iterator]()},n:function(){var g=n.next();return f=g.done,g},e:function(g){d=!0,m=g},f:function(){try{!f&&n.return!=null&&n.return()}finally{if(d)throw m}}}}function Ie(e,r){return r={exports:{}},e(r,r.exports),r.exports}var Ne=Ie(function(e){function r(x,I){for(var N=0,j=0;j<x.length;j++)N=(N<<5)-N+x.charCodeAt(j),N|=0;return I[Math.abs(N)%I.length]}function n(x,I){var N=I.namespace;if(I.useColors){var j=I.color,W="\x1B[3"+(j<8?j:"8;5;"+j),ee=" ".concat(W,";1m").concat(N," \x1B[0m");x[0]=ee+x[0].split(`
45
- `).join(`
46
- `+ee)}else x[0]=N+" "+x[0]}function a(x,I){if(x[0]=(I.useColors?"%c":"")+I.namespace,!!I.useColors){var N="color: "+I.color,j=0,W=0;x[0].replace(/%[a-zA-Z%]/g,function(ee){ee!=="%%"&&(j++,ee==="%c"&&(W=j))}),x.splice(W,0,N)}}var o=["#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 f(){var x;try{x=localStorage.getItem("debug")}catch(I){}return!x&&typeof process!="undefined"&&"env"in process&&(x={}.DEBUG),{namespaces:x||"",colors:o,useColors:!0,formatArgs:a}}function d(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:n}}function m(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,I=arguments.length>1?arguments[1]:void 0;return function(){for(var N=arguments.length,j=new Array(N),W=0;W<N;W++)j[W]=arguments[W];x&&j.unshift(x);var ee=I.namespaces.split(",").map(function(de){return de[de.length-1]==="*"?new RegExp("^"+de.slice(0,de.length-1)+".*$"):new RegExp("^"+de+"$")}),te=ee.some(function(de){return de.test(x)}),se={color:r(x,I.colors),namespace:x,useColors:I.useColors};if(!1)var ie}}function g(x){return m(x,d())}function b(x){return m(x,f())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?e.exports=b:e.exports=g}),je=Ne("informed:ObjMap "),tt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},_e=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,o=String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(f,d){return f!=null?f[d]:f},r);return o===void 0||o===r?a:o},mt=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},De=function(r){return r.replace(mt(r),"").replace(/\./,"")},Oe=function(r,n){var a=mt(n),o=De(n),f=a?_e(r,a):r;return!!(f&&Object.hasOwnProperty.call(f,o.replace(/\[(.*)\]/,"$1")))},Ue=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(o,f,d,m){return d===m.length-1?(o[f]=a,o[f]):o[f]===void 0?(Number.isInteger(+m[d+1])?o[f]=[]:o[f]={},o[f]):(Number.isInteger(+m[d+1])&&!Array.isArray(o[f])&&(o[f]=[]),o[f])},r)},Pe=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(o,f,d,m){return o===void 0?o:(d===m.length-1&&(delete o[f],a=!0),o[f])},r),a},Ce=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(o,f,d,m){return o===void 0?o:(d===m.length-1&&Array.isArray(o)&&(a=o.splice(f,1)),o[f])},r),a},Ge=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(r);return n.map(function(a){return r[a]})},rt=function(r){var n=tt(r);return Number.isInteger(+n[n.length-1])},$e=function(){function e(){E(this,e)}return U(e,null,[{key:"empty",value:function(n){return Ge(n).length===0}},{key:"get",value:function(n,a){var o=_e(n,a);return o}},{key:"has",value:function(n,a){return Oe(n,a)}},{key:"set",value:function(n,a,o){if(o!==void 0)je("SETTING",a,o),Ue(n,a,o);else if(rt(a)&&e.get(n,a)!==void 0){je("Special case SETTING",a,"to undefined"),Ue(n,a,void 0);var f=tt(a);f=f.slice(0,f.length-1),et(n,f)}else!rt(a)&&e.get(n,a)!==void 0&&(je("Special case REMOVING",a,"from object completley"),e.delete(n,a))}},{key:"delete",value:function(n,a){je("DELETE",a),rt(a)?(je("ARRAY",a),this.pullOut(n,a)):Pe(n,a);var o=tt(a);o=o.slice(0,o.length-1),et(n,o)}},{key:"pullOut",value:function(n,a){var o=tt(a),f=o[o.length-1];o=o.slice(0,o.length-1),je("Pulling out:",o,"index",f);var d=_e(n,o);je("Array",d),Array.isArray(d)&&Ce(d,f),et(n,o)}}]),e}();function et(e,r){if(r.length!==0){var n=_e(e,r);(Array.isArray(n)?n.every(function(a){return a==null}):JSON.stringify(n)==="{}")&&Pe(e,r),et(e,r.slice(0,r.length-1))}}var Ze=h.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),Ct=h.createContext({}),kt=h.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Zt=h.createContext(),lt=h.createContext(),xt=h.createContext(),Ft=h.createContext(),Kr=h.createContext(),br=h.createContext(),qr=h.createContext(),xr=h.createContext();function Yt(){var e=(0,h.useContext)(kt);return e}function dr(e){var r=(0,h.useRef)(),n=(0,h.useRef)(!0),a=(0,h.useState)(e),o=H(a,2),f=o[0],d=o[1];r.current=f;var m=function(x){r.current=x,n.current&&d(x)},g=function(){return r.current};return(0,h.useEffect)(function(){return function(){n.current=!1}},[]),[f,m,g]}var Xe=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},gt=function(r){var n={};if(r.inner){if(r.inner.length===0){$e.set(n,r.path,r.message);return}var a=ve(r.inner),o;try{for(a.s();!(o=a.n()).done;){var f=o.value;$e.get(n,f.path)||$e.set(n,f.path,f.message)}}catch(d){a.e(d)}finally{a.f()}}return n},Tt=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(o){var a=gt(o);return a}},At=function(r){if(r.inner){if(r.inner.length===0)return;var n=r.inner[0];return n.message}},Ot=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(a){return At(a)}},ct=function(r,n){r(n);var a={};return r.errors&&r.errors.forEach(function(o){var f=o.message,d=o.dataPath,m=o.keyword,g=o.params,b=d;m==="required"&&(b="".concat(b,".").concat(g.missingProperty)),b=b.replace(".",""),$e.set(a,b,f)}),a},it=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=Math.random()*16|0,a=r=="x"?n:n&3|8;return a.toString(16)})},Et=function(r,n){var a;return function(){for(var f=arguments.length,d=new Array(f),m=0;m<f;m++)d[m]=arguments[m];var g=function(){clearTimeout(a),r.apply(void 0,d)};clearTimeout(a),a=setTimeout(g,n)}},nt=function(r,n,a){var o=n["ui:control"],f=n["informed:props"],d=n["input:props"],m=n["ui:before"],g=n["ui:after"],b=n.oneOf,x=n.items,I=n.enum,N=n.title,j=n.minimum,W=n.maximum,ee=n.minLength,te=n.maxLength,se=n.pattern,ie=n.type,de=n.properties,we=it();d&&d.id&&(we=d.id);var xe={componentType:o,field:a?"".concat(a,".").concat(r):r,type:ie,uiBefore:m,uiAfter:g,properties:ie==="object"?de:void 0,items:ie==="array"?x:void 0,props:K(K({label:N,id:we,min:j,max:W,minLength:ee,maxLength:te,pattern:se},f),d)};if(b){var Ee=n.oneOf.map(function(Se){var ke=Se["input:props"],Me=ke===void 0?{}:ke;return K({value:Se.const,label:Se.title},Me)});xe.props.options=Ee}if(I){var ye=n.enum.map(function(Se){return{value:Se,label:Se}});xe.props.options=ye}if(x&&x.oneOf){var be=x.oneOf.map(function(Se){var ke=Se["input:props"],Me=ke===void 0?{}:ke;return K({value:Se.const,label:Se.title},Me)});xe.props.options=be}return xe},Ve=function(r,n,a){if(!r||n)return[];var o=r.properties,f=o===void 0?{}:o,d=r.allOf,m=r.propertyOrder,g=m===void 0?[]:m;if(Object.keys(f).length>0){var b=Object.keys(f).sort(function(x,I){var N=g.indexOf(x),j=g.indexOf(I);return(N>-1?N:g.length+1)-(j>-1?j:g.length+1)}).map(function(x){var I=f[x],N=nt(x,I,a);return N});return d&&b.push({componentType:"conditionals",allOf:d}),b}return[]},ue=function(r){var n=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return n="properties.".concat(n),n},ge=function(r,n){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(n);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Be=function(r,n){for(var a=0,o=-1,f=!0;f&&a<r.length;)r[a]==n[a]?o=a:f=!1,a=a+1;return o},Ke=function(r,n){if(!r)return{val:r,offset:0};var a="".concat(r),o=ge(n,a),f=o.findIndex(function(te){return typeof te!="string"}),d=o.length-D(o).reverse().findIndex(function(te){return typeof te!="string"}),m=[],g=a.split(""),b=0,x=0,I=Be(o.slice(0,f),g.slice(0,f));I>-1&&(b=I+1,m=m.concat(o.slice(0,I+1)),x=I+1),I<0&&(m=m.concat(o.slice(0,f)),x=f);for(var N=x;N<o.length;N++){var j=o[N];if(b!=g.length){var W=g[b];if(typeof j=="function")m.push(j(W)),b=b+1;else{var ee=typeof j=="string"?j===W:j.test(W);ee&&typeof j=="string"?(m.push(j),b=b+1):!ee&&typeof j=="string"?b!=g.length&&m.push(j):ee&&typeof j!="string"?(m.push(W),b=b+1):!ee&&typeof j!="string"&&(b=b+1,N=N-1)}}else if(typeof j=="string"&&N>=d)m.push(j);else break}return{value:m.join(""),offset:a?m.length-a.length:0}},at=function(r,n){var a,o,f=new Intl.NumberFormat(r,n),d=new Intl.NumberFormat(r),m=(a=(o=d.formatToParts(.1).find(function(te){var se=te.type;return se==="decimal"}))===null||o===void 0?void 0:o.value)!==null&&a!==void 0?a:".";function g(te,se){return te instanceof RegExp&&se instanceof RegExp&&te.source===se.source&&te.global===se.global&&te.ignoreCase===se.ignoreCase&&te.multiline===se.multiline}function b(te,se){for(var ie=te.length;ie--;)if(se(te[ie]))return ie;return-1}function x(te,se,ie){var de=D(te);return Array.isArray(ie)?de.splice.apply(de,[se,0].concat(D(ie))):de.splice(se,0,ie),de}function I(te){return"".concat(te).replace(/\D/g,"")}function N(te){return"".concat(te).split(m).map(function(se){return I(se)}).join(".")}function j(te){if(typeof te=="number")return te;var se=parseFloat(N(te));return Number.isNaN(se)?void 0:se}function W(te){var se=N(te),ie="".concat(se).split(".")[1],de=f.formatToParts(Number(se));ie==="0"&&de.push({type:"decimal",value:m},{type:"fraction",value:ie});var we=de.reduce(function(ye,be){var Se=be.type,ke=be.value;return["decimal","fraction"].includes(Se)&&ie==null?ye:["integer","fraction"].includes(Se)?[].concat(D(ye),D(ke.split("").filter(function(Me,Re){return Se==="fraction"?Re<ie.length:!0}).map(function(){return/\d/}))):Se==="currency"?[].concat(D(ye),D(ke.split(""))):[].concat(D(ye),[ke])},[]),xe=b(we,function(ye){return g(ye,/\d/)});we.indexOf(m)===-1&&"".concat(te).indexOf(m)!==-1&&(we=x(we,xe+1,[m,"[]"]),xe+=2);var Ee=we.slice(xe+1).join("");return we=[].concat(D(we.slice(0,xe+1)),[Ee]),we}var ee=function(se){if(se!=null)return j(se)};return{formatter:W,parser:ee}},bt=Object.freeze({__proto__:null,getChildDisplayName:Xe,yupToFormErrors:gt,validateYupSchema:Tt,yupToFormError:At,validateYupField:Ot,validateAjvSchema:ct,uuidv4:it,debounce:Et,computeFieldFromProperty:nt,computeFieldsFromSchema:Ve,getSchemaPathFromJsonPath:ue,informedFormat:Ke,createIntlNumberFormatter:at}),Rt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?h.useLayoutEffect:h.useEffect,pr=function(r){var n=r.value,a=r.inputRef,o=r.maintainCursor,f=o===void 0?!0:o,d=dr(0),m=H(d,3),g=m[0],b=m[1],x=m[2],I=dr(0),N=H(I,3),j=N[0],W=N[1],ee=N[2];return Rt(function(){if(a.current!=null&&x()){var te=x()+ee();ee()!=0&&f?a.current.setSelectionRange(te+1,te+1):f&&a.current.setSelectionRange(te,te)}},[n]),{setCursorOffset:W,setCursor:b,cursor:g,getCursor:x,cursorOffset:j}},Lt=function(r,n){var a=(0,h.useRef)(!0),o=a.current;(0,h.useEffect)(function(){if(o)a.current=!1;else return r()},n)},jt=Ne("informed:useField "),_n=function(r,n,a,o,f){if(r!=null){if(f)return f(r);if(n)return n(r);if(a&&!o){var d=Ke(r,a);return d.value}return r}},Yr=function(r,n,a,o){if(n&&a)return n(r);if(o){var f=Ke(r,o);return f.value}return r},Jr=function(r,n,a){var o=a.required;if(r||n)return function(f,d){if(n)return Ot(n,f);if(r)return r(f,d)};if(o)return function(f){return tn(f,o)}},si=function(r){var n=r.fieldType,a=r.setValue,o=r.onChange,f=r.multiple,d=r.ref,m=function(b){return a(b)};return(n==="text"||n==="textArea"||n==="number")&&(m=function(b){return a(b.target.value,b)}),n==="select"&&(m=function(){var b=Array.from(d.current).filter(function(x){return x.selected}).map(function(x){return x.value});a(f?b:b[0]||"")}),n==="checkbox"&&(m=function(b){a(b.target.checked),o&&o(b)}),function(g){m(g)}},en=function(r){var n=r.setTouched,a=r.onBlur;return function(o){n(!0),a&&a(o)}},li=function(r){var n=r.fieldType,a=r.maskedValue,o=r.multiple,f=r.value;switch(n){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return f||(o?[]:"");case"checkbox":return!!f;default:return f}},ui=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},tn=function(r,n){if(n&&(r==null||r===""))return typeof n=="string"?n:"This field is required"};function Pn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=e.field,a=e.validate,o=e.asyncValidate,f=e.validationSchema,d=e.mask,m=e.maskWithCursorOffset,g=e.format,b=e.parse,x=e.formatter,I=e.parser,N=e.initialValue,j=e.validateOnChange,W=e.validateOnBlur,ee=e.validateOnMount,te=e.asyncValidateOnBlur,se=e.maskOnBlur,ie=e.allowEmptyString,de=e.onValueChange,we=e.notify,xe=e.keepState,Ee=e.maintainCursor,ye=e.debug,be=e.shadow,Se=e.step,ke=e.fieldType,Me=e.multiple,Re=e.onChange,We=e.onBlur,It=e.formController,vt=e.relevant,rr=e.required,cr=e.keepStateIfRelevant,mr=e.initialize,$r=e.formatterDependencies,yr=$r===void 0?[]:$r,kr=C(e,["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,h.useState)(it()),Wt=H(wn,1),yt=Wt[0],Pt=(0,h.useContext)(Ze),nr=(0,h.useContext)(xr),ln=nr||cr,hr=Yt(),Is=(0,h.useRef)(),ru=(0,h.useRef)(!0),Ro=(0,h.useRef)(),Wi=(0,h.useRef)(!1),nu=function(){return!Wi.current},yc=function(){return Wi.current};It&&(Pt=It.updater,hr=It.getFormApi());var Ei=Jr(a,f,{required:rr}),iu=(0,h.useState)(function(){return Pt.getInitialValue(n)}),Lx=H(iu,1),Mx=Lx[0],bc=Pt.getSavedValue(n),xc,Sg;(xe||ln)&&bc?(jt("Setting field ".concat(vp,"'s kept state"),bc),xc=bc.value,Sg=bc.touched,hr.removeSavedState(vp)):N!=null?xc=N:xc=Mx;var Nx=dr(_n(xc,d,x,I,mr)),tp=H(Nx,3),au=tp[0],rp=tp[1],Dx=tp[2],Bx=dr(ee?Ei(au):void 0),np=H(Bx,3),wg=np[0],Ag=np[1],jx=np[2],Vx=dr(Sg),ip=H(Vx,3),Cg=ip[0],Ux=ip[1],Eg=ip[2],Wx=(0,h.useState)(function(){return Yr(au,g,b,x)}),Og=H(Wx,2),ap=Og[0],op=Og[1],Tg=(0,h.useRef)();Tg.current=ap;var Pg=(0,h.useRef)(N),Lo=(0,h.useRef)(n),Ig=(0,h.useRef)();Pg.current=N,Lo.current=n;var Hx=(0,h.useRef)(null),Hi=h.useMemo(function(){return r||Hx},[]),sp=pr({value:au,inputRef:Hi,maintainCursor:!!Ee}),lp=sp.getCursor,zx=sp.setCursor,up=sp.setCursorOffset,Gx=function(){return!0},fp=function(ir){var un=vt||Gx,Wn=hr.getFullField(Lo.current)||Lo.current,Ht={path:Wn,parentPath:Wn.replace(/(.*)[.[].*/,"$1"),get:function(Hn,lu){return $e.get(Hn,lu)}};return nr&&nr.relevant?un(ir,Ht)&&nr.relevant(ir,Ht):un(ir,Ht)},$x=dr(fp(hr.getValues())),cp=H($x,3),Sc=cp[0],Kx=cp[1],kg=cp[2],Yx=function(ir){return nr&&nr.relevant?nr.relevant(ir):!0},Jx=function(){var ir=fp(hr.getValues()),un=kg();return ir!=un&&Kx(ir),ir};(0,h.useEffect)(function(){!Sc&&!xe&&Is.current.reset()},[Sc]);var oi=function(){return be?hr.getDerrivedValue(n):Dx()},ou=function(ir){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wn=un.preventUpdate;Se&&hr.getStep()<Se?(jt("Setting ".concat(n,"'s error to undefined as we are not at that step")),Ag(void 0),Pt.setError(yt,void 0,!Wn)):(jt("Setting ".concat(n,"'s error to ").concat(ir)),Ag(ir),Pt.setError(yt,ir,!Wn))},dp=function(ir,un){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ht=ir;Wi.current=!0,jt("Setting ".concat(n," to ").concat(Ht)),mr&&(Ht=mr(Ht));var Mo=hr.getOptions(),Hn=Ht;if(Ht===""&&!ie&&!Wn.allowEmptyString&&!Mo.allowEmptyStrings&&(Ht=void 0),(e.type==="number"||ke==="number")&&Ht!==void 0&&(Ht=+Ht),un&&un.target&&un.target.selectionStart&&zx(un.target.selectionStart),d&&!se&&(Hn=d(Ht,lp()),Ht=d(Ht,lp())),m&&!se){var lu=m(Ht,lp());Hn=lu.value,Ht=lu.value,up(lu.offset)}if(g&&b&&(Ht=b(Ht),Hn=g(Ht)),x){var Fg=Ke(Ht,x);up(Fg.offset),Hn=Fg.value,Ht=Hn}I&&(Ht=Ht!=null?I(Ht):Ht),Ei&&j&&!Wn.initial&&(jt("Validating after change ".concat(n," ").concat(Ht)),ou(Ei(Ht,hr.getValues()))),rp(Ht),op(Hn),de&&de(Ht),Pt.setValue(yt,Ht,!Wn.preventUpdate)};Lt(function(){Is.current.setValue(Tg.current)},D(yr));var pp=function(ir,un){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ht=Wn.preventUpdate;if(jt("Field ".concat(n," has been touched")),Ei&&W&&!un&&ir&&(jt("Validating after blur ".concat(n," ").concat(oi())),ou(Ei(oi(),hr.getValues()))),o&&te&&!un&&ir&&(jt("Validating async after blur ".concat(n," ").concat(oi())),o(oi(),hr.getValues())),d&&se){var Mo=d(oi());rp(Mo),op(Mo),de&&de(Mo),Pt.setValue(yt,Mo,!Ht)}if(m&&se){var Hn=m(oi());up(Hn.offset),rp(Hn.value),op(Hn.value),de&&de(Hn.value),Pt.setValue(yt,Hn.value,!Ht)}Ux(ir),Pt.setTouched(yt,ir,!Ht)},Xx=function(){var ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},un=ir.preventUpdate,Wn=_n(Pg.current||Pt.getInitialValue(Lo.current),d,x,I,mr);dp(Wn,null,{initial:!0,preventUpdate:un}),ou(ee?Ei(Wn):void 0,{preventUpdate:un}),pp(void 0,!0,{preventUpdate:un}),Wi.current=!1},Qx=function(ir){Ei&&(jt("Field validating ".concat(n," ").concat(oi())),ou(Ei(oi(),ir||hr.getValues())))},Zx=function(ir){o&&(jt("Field async validating ".concat(n," ").concat(oi())),o(oi(),ir||hr.getValues()))},hp={setValue:dp,setTouched:pp,setError:ou,reset:Xx,validate:Qx,asyncValidate:Zx,getValue:oi,getTouched:Eg,getError:jx,getIsRelevant:kg,getDirty:yc,getPristine:nu,getFieldState:function(){return{value:oi(),touched:Eg(),dirty:yc(),pristine:nu()}},relevant:fp,multistepRelevant:Yx,checkRelevant:Jx};Is.current=hp;var su={value:au,error:wg,touched:Cg,maskedValue:ap,isRelevant:Sc,dirty:Wi.current,pristine:!Wi.current};be&&(su={error:wg,touched:Cg}),jt("Render",hr.getFullField(n),su),Rt(function(){var _r=hr.getFullField(Lo.current);return jt("Register",yt,Lo.current),Ro.current={field:_r,fieldId:yt,fieldApi:hp,fieldState:su,notify:we,keepState:xe,inMultistep:ln,shadow:be},Pt.register(yt,Ro.current),function(){var ir=hr.getFullField(Lo.current);jt("Deregister",yt,ir),Pt.deregister(yt)}},[]),(0,h.useEffect)(function(){var _r=hr.getFullField(n);return ru.current?ru.current=!1:(jt("Update",n,ln),Ro.current.field=_r,Pt.update(yt,Ro.current,Ig.current)),function(){Ig.current=_r}},[n]),Rt(function(){ye&&Hi&&(Hi.current.style.border="5px solid orange",setTimeout(function(){Hi.current.style.borderWidth="2px",Hi.current.style.borderStyle="inset",Hi.current.style.borderColor="initial",Hi.current.style.borderImage="initial"},500))});var _x=[].concat(D(Object.values(su)),D(Object.values(e)),D(Object.values(kr))),qx=function(ir){return(0,h.useMemo)(function(){return Sc?ir:null},D(_x))},vp=n,e1=si({fieldType:ke,setValue:dp,onChange:Re,multiple:Me,ref:Hi}),t1=en({setTouched:pp,onBlur:We}),r1=li({fieldType:ke,maskedValue:ap,multiple:Me,value:au}),n1=ui(ke);return{fieldState:su,fieldApi:hp,render:qx,ref:Hi,userProps:K(K({},kr),{},{multiple:Me,onChange:Re,onBlur:We,id:kr.id||yt}),informed:K({name:vp,multiple:Me,onChange:e1,onBlur:t1,value:r1,ref:Hi,type:n1,id:kr.id||yt},kr)}}var Vr=function(r){var n=h.forwardRef(function(a,o){var f=Pn(a,o),d=f.fieldState,m=f.fieldApi,g=f.render,b=f.ref,x=f.userProps;return g(h.createElement(r,Q({fieldApi:m,fieldState:d,field:a.field,forwardedRef:b,debug:a.debug,type:a.type},x)))});return n.displayName="asField(".concat(Xe(r),")"),n},Oi=Ne("informed:Text "),ha=function(r){var n=r.fieldApi,a=r.fieldState,o=C(r,["fieldApi","fieldState"]),f=a.maskedValue,d=n.setValue,m=n.setTouched,g=o.onChange,b=o.onBlur,x=o.field,I=o.initialValue,N=o.forwardedRef,j=o.debug,W=o.label,ee=o.title,te=o.id,se=C(o,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Oi("Render",x),Rt(function(){j&&N&&(N.current.style.background="red",setTimeout(function(){N.current.style.background="white"},500))}),h.createElement(h.Fragment,null,W?h.createElement("label",{htmlFor:te}," ",W," "):null,h.createElement("input",Q({},se,{id:te,name:x,ref:N,value:!f&&f!==0?"":f,onChange:function(de){d(de.target.value,de),g&&g(de)},onBlur:function(de){m(!0),b&&b(de)}})))},An=Vr(ha),mn=function(r){var n=r.fieldApi,a=r.fieldState,o=C(r,["fieldApi","fieldState"]),f=a.maskedValue,d=n.setValue,m=n.setTouched,g=o.onChange,b=o.onBlur,x=o.field,I=o.initialValue,N=o.forwardedRef,j=o.debug,W=o.label,ee=o.id,te=C(o,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return Rt(function(){j&&N&&(N.current.style.background="red",setTimeout(function(){N.current.style.background="white"},500))}),h.createElement(h.Fragment,null,W?h.createElement("label",{htmlFor:ee}," ",W," "):null,h.createElement("textarea",Q({},te,{id:ee,name:x,ref:N,value:f||"",onChange:function(ie){d(ie.target.value,ie),g&&g(ie)},onBlur:function(ie){m(!0),b&&b(ie)}})))},Cn=Vr(mn),En=Ne("informed:Select "),In=function(r){var n=r.fieldApi,a=r.fieldState,o=C(r,["fieldApi","fieldState"]),f=a.value,d=n.setTouched,m=o.onChange,g=o.onBlur,b=o.field,x=o.initialValue,I=o.options,N=o.children,j=o.forwardedRef,W=o.debug,ee=o.multiple,te=o.label,se=o.id,ie=C(o,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),de=(0,h.useRef)(),we=function(Ee){var ye=Array.from((j||de).current).filter(function(be){return be.selected}).map(function(be){return be.value});n.setValue(ee?ye:ye[0]||""),m&&Ee&&m(Ee)};return Rt(function(){W&&j&&(j.current.style.background="red",setTimeout(function(){j.current.style.background="white"},500))}),En("Render",b,f),h.createElement(h.Fragment,null,te?h.createElement("label",{htmlFor:se}," ",te," "):null,h.createElement("select",Q({},ie,{id:se,multiple:ee,name:b,ref:j||de,value:f||(ee?[]:""),onChange:we,onBlur:function(Ee){d(!0),g&&g(Ee)}}),I?I.map(function(xe){return h.createElement("option",{key:xe.value,value:xe.value,disabled:xe.disabled},xe.label)}):N))},Ha=Vr(In),zn=function(r){var n=r.fieldApi,a=r.fieldState,o=C(r,["fieldApi","fieldState"]),f=a.value,d=n.setValue,m=n.setTouched,g=o.onChange,b=o.onBlur,x=o.field,I=o.initialValue,N=o.debug,j=o.forwardedRef,W=o.id,ee=o.label,te=C(o,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return h.createElement(h.Fragment,null,ee?h.createElement("label",{htmlFor:W}," ",ee," "):null,h.createElement("input",Q({},te,{id:W,name:x,ref:j,checked:!!f,onChange:function(ie){d(ie.target.checked),g&&g(ie)},onBlur:function(ie){m(!0),b&&b(ie)},type:"checkbox"})))},fn=Vr(zn),Sr=function(r){return h.forwardRef(function(n,a){return h.createElement(Zt.Consumer,null,function(o){var f=o.radioGroupApi,d=o.radioGroupState;return h.createElement(r,Q({radioGroupApi:f,radioGroupState:d,ref:a},n))})})},fi=function(r){var n=r.radioGroupApi,a=r.radioGroupState,o=C(r,["radioGroupApi","radioGroupState"]),f=a.value,d=n.setValue,m=n.setTouched,g=n.onChange,b=n.onBlur,x=o.value,I=o.onChange,N=o.onBlur,j=o.field,W=o.initialValue,ee=o.forwardedRef,te=C(o,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return h.createElement("input",Q({},te,{name:j,ref:ee,value:x,checked:f===x,onChange:function(ie){!ie.target.checked||(d(x),I&&I(ie),g&&g(ie))},onBlur:function(ie){m(!0),N&&N(ie),b&&b(ie)},type:"radio"}))},kn=Sr(fi),va=function(e){ne(n,e);var r=X(n);function n(){return E(this,n),r.apply(this,arguments)}return U(n,[{key:"render",value:function(){var o=this.props,f=o.options,d=o.children;return h.createElement(Zt.Provider,{value:this.groupContext},f?f.map(function(m){return h.createElement("label",{key:m.value},m.label," ",h.createElement(kn,{value:m.value}))}):d)}},{key:"groupContext",get:function(){return{radioGroupApi:K(K({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),n}(h.Component),No=Vr(va);function sr(){return(0,h.useContext)(xt)}var ot=function(){var r=sr(),n=r.add;return h.createElement("button",{onClick:function(){n()},type:"button"},"Add")};function ci(){return(0,h.useContext)(Ft)}var zi=function(){var r=ci(),n=r.remove;return h.createElement("button",{onClick:function(){n()},type:"button"},"Remove")},cn=Ne("informed:useArrayField "),zt=function(r){var n=r.field,a=r.initialValue,o=r.validate,f=r.arrayFieldApiRef,d=C(r,["field","initialValue","validate","arrayFieldApiRef"]),m=Yt(),g=(0,h.useState)(new Map),b=H(g,1),x=b[0],I=(0,h.useContext)(Ze),N=m.getFullField(n),j=I.getInitialValue(n)||a||[],W=m.getSavedValue(N)&&m.getSavedValue(N).value,ee=dr(W||j),te=H(ee,3),se=te[0],ie=te[1],de=te[2],we=se?se.map(function(){return it()}):[],xe=dr(we),Ee=H(xe,3),ye=Ee[0],be=Ee[1],Se=Ee[2],ke=(0,h.useMemo)(function(){return function(Wt,yt){var Pt=Se()==null?0:Se().length;return o?o(Wt,Pt,yt):void 0}}),Me=Pn(K({field:n,validate:o?ke:void 0,shadow:!0},d)),Re=Me.fieldApi;Rt(function(){var Wt=function(Pt){Pt!==N&&(cn("".concat(N," changed")),RegExp("".concat(N,"\\[[0-9]+\\]")).test(Pt)&&Re.validate())};return m.emitter.on("value",Wt),function(){m.emitter.removeListener("value",Wt)}},[n]);var We=function(yt){cn("EXPECTING REMOVAL OF","".concat(n,"[").concat(yt,"] and ").concat(n,"[").concat(ye.length-1,"]")),I.expectRemoval("".concat(n,"[").concat(yt,"]")),I.expectRemoval("".concat(n,"[").concat(ye.length-1,"]"));var Pt=ye.slice(0,yt).concat(ye.slice(yt+1,ye.length));be(Pt);var nr=de(),ln=nr.slice(0,yt).concat(nr.slice(yt+1,nr.length));ie(ln)},It=function(yt,Pt){cn("Swapping","".concat(n,"[").concat(yt,"] and ").concat(n,"[").concat(Pt,"]"));var nr=D(ye);ye[yt]&&ye[Pt]?(nr[yt]=ye[Pt],nr[Pt]=ye[yt]):console.warn("Attempted to swap ".concat(yt," with ").concat(Pt," but one of them does not exist :(")),be(nr)},vt=function(){ye.push(it()),be(D(ye))},rr=function(yt){ye.push(it()),be(D(ye));var Pt=D(de());Pt[ye.length-1]=yt,ie(Pt)},cr=function(){var yt=I.getInitialValue(n)||a||[];ie(yt);var Pt=yt?yt.map(function(){return it()}):[];be(Pt)},mr=ye.map(function(Wt,yt){var Pt={remove:function(){return We(yt)}},nr={initialValue:se&&se[yt],key:Wt,field:"".concat(n,"[").concat(yt,"]"),index:yt};return K(K({arrayFieldItemApi:Pt,arrayFieldItemState:nr},Pt),nr)}),$r={add:vt,swap:It,addWithInitialValue:rr,reset:cr};f&&(f.current=$r);var yr={fields:mr,field:n},kr=K(K({},I),{},{register:function(yt,Pt){x.set(yt,Pt);for(var nr=arguments.length,ln=new Array(nr>2?nr-2:0),hr=2;hr<nr;hr++)ln[hr-2]=arguments[hr];I.register.apply(I,[yt,Pt].concat(ln))},deregister:function(yt){x.delete(yt);for(var Pt=arguments.length,nr=new Array(Pt>1?Pt-1:0),ln=1;ln<Pt;ln++)nr[ln-1]=arguments[ln];I.deregister.apply(I,[yt].concat(nr))},getInitialValue:function(yt){if(RegExp("".concat(N,"\\[[0-9]+\\]")).test(yt)){var Pt=yt.replace(n,""),nr=$e.get(de(),Pt);return cn("Resetting ".concat(Pt," to ").concat(nr)),nr}return I.getInitialValue(yt)}}),wn=function(yt){return h.createElement(Ze.Provider,{value:kr},h.createElement(xt.Provider,{value:$r},h.createElement(lt.Provider,{value:yr},yt)))};return{render:wn,add:vt,swap:It,addWithInitialValue:rr,fields:mr,arrayFieldState:yr,arrayFieldApi:$r,field:n}},di=function(r,n){return K(K({},n),{},{getValue:function(o){return n.getValue("".concat(r,".").concat(o))},getTouched:function(o){return n.getTouched("".concat(r,".").concat(o))},getError:function(o){return n.getError("".concat(r,".").concat(o))},setValue:function(o,f){return n.setValue("".concat(r,".").concat(o),f)},setTouched:function(o,f){return n.setTouched("".concat(r,".").concat(o),f)},setError:function(o,f){return n.setError("".concat(r,".").concat(o),f)},getInitialValue:function(o){return n.getInitialValue("".concat(r,".").concat(o))},getSavedValue:function(o){return n.getSavedValue("".concat(r,".").concat(o))},getFullField:function(o){return"".concat(n.getFullField(r),".").concat(o)}})};function Gi(e){var r=Yt(),n=(0,h.useMemo)(function(){return di(e,r)},[e]);return n}function pi(){var e=(0,h.useContext)(Ct);return e}var M=function(r){var n=r.when,a=r.children,o=pi(),f=n(o);return f?a:null},ae=function(r){var n=r.relevant,a=r.field,o=C(r,["relevant","field"]),f=Yt();if(n){var d=f.getFullField(a),m={path:d,parentPath:d.replace(/(.*)[.[].*/,"$1"),get:function(x,I){return $e.get(x,I)}},g=function(x){var I=x.values;return n(I,m)};return h.createElement(M,{when:g},h.createElement(Fe,Q({field:a},o)))}else return h.createElement(Fe,Q({field:a},o))},Fe=function(r){var n=r.children,a=C(r,["children"]),o=zt(a),f=o.render,d=o.arrayFieldState,m=o.arrayFieldApi,g=o.field;return f(typeof n=="function"?n(K(K({field:g,arrayFieldApi:m,arrayFieldState:d},m),d)):n)},He=function(r){var n=r.arrayFieldItemState,a=r.arrayFieldItemApi,o=r.children,f=(0,h.useContext)(Ze),d=Yt(),m=(0,h.useState)(0),g=H(m,2),b=g[0],x=g[1],I=(0,h.useState)(new Map),N=H(I,1),j=N[0],W=n.field,ee=Gi(W),te=function(){var ye=d.getState(),be=ye.values,Se=ye.errors,ke=ye.touched,Me={values:$e.get(be,W),errors:$e.get(Se,W),touched:$e.get(ke,W)};return Me};(0,h.useEffect)(function(){var Ee=function(be){var Se=be.slice(0,be.lastIndexOf("[")!=-1?be.lastIndexOf("]")+1:be.length);Se===W&&x(Math.random())};return d.emitter.on("value",Ee),function(){d.emitter.removeListener("value",Ee)}},[W]);var se=function(){j.forEach(function(ye){ye.fieldApi.reset()})},ie=te(),de=K(K({},f),{},{register:function(ye,be,Se){j.set(ye,be),f.register(ye,be,Se)},deregister:function(ye){j.delete(ye);for(var be=arguments.length,Se=new Array(be>1?be-1:0),ke=1;ke<be;ke++)Se[ke-1]=arguments[ke];f.deregister.apply(f,[ye].concat(Se))}}),we=K(K(K({},a),ee),{},{reset:se}),xe=K(K({},n),ie);return typeof o=="function"?h.createElement(Ze.Provider,{value:de},h.createElement(Ft.Provider,{value:we},h.createElement(Kr.Provider,{value:xe},o(K(K({arrayFieldItemApi:we,arrayFieldItemState:xe},we),xe))))):h.createElement(Ze.Provider,{value:de},h.createElement(Ft.Provider,{value:we},h.createElement(Kr.Provider,{value:xe},o)))};ae.Items=function(e){var r=e.children,n=(0,h.useContext)(lt),a=n.fields;return a.map(function(o){var f=o.arrayFieldItemState,d=o.arrayFieldItemApi,m=f.key;return h.createElement(He,{key:m,arrayFieldItemApi:d,arrayFieldItemState:f},r)})};var St=function(r){var n=r.components,a=(0,h.useContext)(Ze),o=a.fieldMap;return n?n.map(function(f,d){var m=f["ui:control"],g=o[m];return h.createElement(g,{key:"ui-comp-".concat(d)})}):null},Nt=Ne("informed:FormFields "),Gt=function e(r){var n=r.schema,a=r.prefix,o=r.onlyValidateSchema,f=(0,h.useContext)(Ze),d=f.fieldMap,m=(0,h.useMemo)(function(){var g=Ve(n,o,a),b=g.map(function(x,I){var N=x.field,j=x.props,W=x.type,ee=x.properties,te=x.items,se=x.componentType,ie=x.uiBefore,de=x.uiAfter,we=x.allOf,xe=d[se];return Nt("Rendering Field",N,x),!xe&&W==="object"&&ee?h.createElement(e,{schema:x,prefix:N,key:"ScheamField-".concat(I)}):!xe&&W==="array"&&te?h.createElement(st,Q({key:"ScheamField-".concat(I),field:N,items:te,uiBefore:ie,uiAfter:de},j)):xe&&se==="array"&&te&&W==="array"?h.createElement(xe,Q({key:"ScheamField-".concat(I),field:N,items:te,uiBefore:ie,uiAfter:de},j)):se==="conditionals"?we.map(function(Ee){var ye=Ee.then,be=Ee.if.properties,Se=function(Me){var Re=Me.values;return Object.keys(be).every(function(We){var It=be[We];return Re[We]===It.const})};return h.createElement(M,{key:"ScheamField-".concat(I),when:Se},h.createElement(e,{schema:ye}))}):xe?h.createElement(xe,Q({key:"ScheamField-".concat(I),field:N},j)):null});return b},[n,a]);return m},st=function(r){var n=r.field,a=r.items,o=r.uiBefore,f=r.uiAfter,d=C(r,["field","items","uiBefore","uiAfter"]);return h.createElement(ae,Q({field:n},d),h.createElement(St,{components:o}),h.createElement(ae.Items,null,function(m){var g=m.field;return h.createElement(h.Fragment,null,h.createElement(St,{components:a["ui:before"]}),h.createElement(Gt,{schema:a,prefix:g}),h.createElement(St,{components:a["ui:after"]}))}),h.createElement(St,{components:f}))},Fn={select:Ha,input:An,textarea:Cn,checkbox:fn,radio:No,add:ot,remove:zi,array:st},Jt=Ne("informed:Controller "),Do=function(r,n){var a=Object.keys(n).find(function(f){return r.includes(f)});if(!!a){var o=r.slice(0,a.length);return o===a}},wr=function(){},uu=function(){function e(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};E(this,e),this.options=n,this.subscriptions=new Map;var a=n.ajv,o=n.schema,f=n.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(o):null,this.fieldMap=f||Fn,this.fieldsById=new Map,this.fieldsByName={get:function(m){var g;return r.fieldsById.forEach(function(b){b&&b.field===m&&(g=b)}),g}},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:wr,setTouched:wr,setError:wr,reset:wr,validate:wr,getValue:wr,getTouched:wr,getError:wr,getFieldState:wr,checkRelevant:wr,getPristine:wr,getDirty:wr}},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(m,g){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=r.fieldsById.get(m);x.shadow||$e.set(r.state.values,x.field,x.fieldApi.getValue()),x.fieldApi.relevant(r.state.values)||$e.delete(r.state.values,x.field),r.fieldsById.forEach(function(I){var N=I.fieldApi.checkRelevant();(!I.fieldApi.multistepRelevant(r.state.values)||!N&&!I.keepState)&&($e.delete(r.state.values,I.field),$e.delete(r.state.touched,I.field),$e.delete(r.state.errors,I.field))}),b&&(r.emit("change"),r.emit("field",x.field),r.emit("value",x.field,g))},setTouched:function(m,g){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=r.fieldsById.get(m);!x.shadow&&x.fieldApi.getIsRelevant()&&$e.set(r.state.touched,x.field,x.fieldApi.getTouched()),x.shadow&&x.fieldApi.getError()!=null&&x.fieldApi.relevant(r.state.values)&&$e.set(r.state.touched,x.field,x.fieldApi.getTouched()),b&&(r.emit("change"),r.emit("field",x.field))},setError:function(m,g){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=r.fieldsById.get(m);!x.shadow&&x.fieldApi.getIsRelevant()&&$e.set(r.state.errors,x.field,x.fieldApi.getError());var I=$e.get(r.state.errors,x.field);(x.shadow&&x.fieldApi.getError()!=null&&x.fieldApi.relevant(r.state.values)||x.shadow&&x.fieldApi.getError()===void 0&&x.fieldApi.relevant(r.state.values)&&typeof I=="string")&&$e.set(r.state.errors,x.field,x.fieldApi.getError()),b&&(r.emit("change"),r.emit("field",x.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(d){delete r.state.error,r.notify(d)})}return U(e,[{key:"emit",value:function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),f=1;f<a;f++)o[f-1]=arguments[f];var d=this.subscriptions.get(n);d&&d.forEach(function(m){return m.apply(void 0,o)})}},{key:"on",value:function(n,a){this.subscriptions.get(n)||this.subscriptions.set(n,new Set);var o=this.subscriptions.get(n);o.add(a)}},{key:"removeListener",value:function(n,a){var o=this.subscriptions.get(n);o.delete(a)}},{key:"setOptions",value:function(n){this.options=n}},{key:"setValue",value:function(n,a,o){this.getField(n).fieldApi.setValue(a,null,K({allowEmptyString:this.options.allowEmptyStrings},o))}},{key:"setTouched",value:function(n,a){this.getField(n).fieldApi.setTouched(a)}},{key:"setError",value:function(n,a){this.getField(n).fieldApi.setError(a)}},{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,a){if(this.state.validating=this.state.validating-1,this.getError(n)||this.setError(n,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(Jt("Submit",this.state),this.emit("submit")):(Jt("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,a){$e.set(this.options.initialValues,n,a)}},{key:"getFormState",value:function(){return Jt("Returning form state"),K(K({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(n){var a=this.getValues();return $e.get(a,n)}},{key:"getValue",value:function(n){var a=this.getField(n).fieldApi.getValue();return Jt("Getting value for",n,a),a}},{key:"getTouched",value:function(n){var a=this.getField(n).fieldApi.getTouched();return Jt("Getting touched for",n,a),a}},{key:"getError",value:function(n){var a=this.getField(n).fieldApi.getError();return Jt("Getting error for",n,a),a}},{key:"getDirty",value:function(n){var a=this.getField(n).fieldApi.getDirty();return Jt("Getting dirty for",n,a),a}},{key:"getPristine",value:function(n){var a=this.getField(n).fieldApi.getPristine();return Jt("Getting pristine for",n,a),a}},{key:"getValues",value:function(){return Jt("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return Jt("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return Jt("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 a=this.fieldsByName.get(n);return a&&a.shadow?$e.get(this.savedValues,"shadow-".concat(n)):$e.get(this.savedValues,n)}},{key:"removeSavedState",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?$e.delete(this.savedValues,"shadow-".concat(n)):$e.delete(this.savedValues,n)}},{key:"getFullField",value:function(n){return n}},{key:"getInitialValue",value:function(n){return $e.get(this.options.initialValues,n)}},{key:"getField",value:function(n){Jt("Getting Field",n);var a=this.fieldsByName.get(n);return a||(console.warn("Attempting to get field ".concat(n," but it does not exist")),this.dummyField)}},{key:"notify",value:function(n){var a=this,o=this.getField(n);o&&o.notify&&o.notify.forEach(function(f){var d=".".concat(n),m="".concat(d.replace(/(.*)[.[].*/,"$1"),".").concat(f).slice(1),g=a.getField(m);g&&(Jt("Notifying",g.field),g.fieldApi.validate(),g.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!!($e.empty(n)&&!this.state.error)}},{key:"screenValid",value:function(){var n=Object.entries(this.onScreen).some(function(a){var o=H(a,2),f=o[1];return f.fieldApi.getError()});return!n}},{key:"invalid",value:function(){var n=this.getErrors();return!!(!$e.empty(n)||this.state.error)}},{key:"pristine",value:function(){var n=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(n=!1)}),n}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){Jt("Resetting"),this.fieldsById.forEach(function(n){n.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(n){Jt("Setting values"),this.fieldsById.forEach(function(a){var o=$e.get(n,a.field);o!==void 0&&a.fieldApi.setValue(o,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var n=this;Jt("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var o=Tt(this.options.validationSchema,a);this.fieldsById.forEach(function(g){if($e.has(o,g.field)){var b=$e.get(o,g.field);n.setError(g.field,b)}else n.setError(g.field,void 0)})}if(this.options.schema&&this.options.ajv){var f=ct(this.ajvValidate,a);this.fieldsById.forEach(function(g){if($e.has(f,g.field)){var b=$e.get(f,g.field);n.setError(g.field,b)}else n.setError(g.field,void 0)})}if(this.fieldsById.forEach(function(g){g.fieldApi.validate(a),g.fieldApi.setTouched(!0,!0)}),this.options.validate){var d=this.options.validate(a);this.setFormError(d)}if(this.options.validateFields){var m=this.options.validateFields(a);this.fieldsById.forEach(function(g){if($e.has(m,g.field)){var b=$e.get(m,g.field);n.setError(g.field,b)}})}}},{key:"asyncValidate",value:function(){Jt("Async Validating all fields");var n=this.getValues();this.fieldsById.forEach(function(a){a.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()?(Jt("Submit",this.state),this.emit("submit")):(Jt("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var n=this;this.fieldsById.forEach(function(a){n.emit("field",a.field)})}},{key:"register",value:function(n,a,o){var f=a.field,d=a.state;Jt("Register ID:",n,"Name:",f,d,"Initial",o);var m=f.slice(0,f.lastIndexOf("[")!=-1?f.lastIndexOf("]")+1:f.length),g;this.fieldsById.forEach(function(b,x){b&&b.field===f&&(g=x)}),g&&(a.keepState||a.inMultistep)?(Jt("Already Registered",f),this.fieldsById.delete(g)):g&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",f),Jt("Fields Registered",this.fieldsById.size),this.onScreen[n]=a,this.fieldsById.set(n,a),Jt("clearing expected removal",m),delete this.expectedRemovals[m],delete this.pulledOut[m],!a.shadow&&(this.updater.setValue(n,a.fieldApi.getValue(),!1),this.updater.setError(n,a.fieldApi.getError(),!1),this.updater.setTouched(n,a.fieldApi.getTouched(),!1),o||this.emit("change"),this.emit("field",f))}},{key:"deregister",value:function(n){var a=this.fieldsById.get(n),o=a.field;Jt("Deregister",n,o),delete this.onScreen[n];var f=Do(o,this.expectedRemovals),d=o.slice(0,o.lastIndexOf("[")!=-1?o.lastIndexOf("]")+1:o.length);(a.keepState||a.inMultistep)&&!f&&(Jt("Saving field ".concat(o,"'s value"),a.fieldApi.getFieldState()),a.shadow?$e.set(this.savedValues,"shadow-".concat(o),a.fieldApi.getFieldState()):$e.set(this.savedValues,o,a.fieldApi.getFieldState())),(f||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(Jt("Removing field",o),this.fieldsById.delete(n),f||($e.delete(this.state.values,o),$e.delete(this.state.touched,o),$e.delete(this.state.errors,o),a.shadow?$e.delete(this.savedValues,"shadow-".concat(o)):$e.delete(this.savedValues,o)),f&&this.pulledOut[d]&&(Jt("Pulling out",o,"with magic value",d),$e.pullOut(this.state.values,d),$e.pullOut(this.state.touched,d),$e.pullOut(this.state.errors,d),$e.pullOut(this.savedValues,d),delete this.pulledOut[d])),this.emit("change")}},{key:"expectRemoval",value:function(n){Jt("Expecting removal of",n),this.expectedRemovals[n]=!0,this.pulledOut[n]=!0}},{key:"update",value:function(n,a,o){Jt("Update",n,a.field,o,a.fieldState.value);var f=a.fieldApi.getValue(),d=a.fieldApi.getError(),m=a.fieldApi.getTouched(),g=this.fieldsByName.get(o);o&&!g&&($e.set(this.state.values,o),$e.set(this.state.errors,o),$e.set(this.state.touched,o)),$e.set(this.state.values,a.field,f),$e.set(this.state.errors,a.field,d),$e.set(this.state.touched,a.field,m),this.emit("change")}}]),e}(),Bo=Ne("informed:FormProvider "),za=function(r){var n=r.children,a=r.formApi,o=r.formController,f=r.formState,d=C(r,["children","formApi","formController","formState"]);if(Bo("Render FormProvider"),a)return Bo("Render FormProvider with given values"),h.createElement(Ze.Provider,{value:o.updater},h.createElement(kt.Provider,{value:a},h.createElement(Ct.Provider,{value:f},n)));Bo("Render FormProvider with generated values");var m=ks(d);return h.createElement(Ze.Provider,{value:m.formController.updater},h.createElement(kt.Provider,{value:m.formApi},h.createElement(Ct.Provider,{value:m.formState},n)))},jo=Ne("informed:useForm "),ks=function(r){var n=r.dontPreventDefault,a=r.initialValues,o=r.validate,f=r.validateFields,d=r.allowEmptyStrings,m=r.preventEnter,g=r.getApi,b=r.apiRef,x=r.onChange,I=r.onReset,N=r.onSubmit,j=r.onValueChange,W=r.onSubmitFailure,ee=r.validationSchema,te=r.schema,se=r.ajv,ie=r.fieldMap,de=r.onlyValidateSchema,we=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);jo("Render useForm");var xe=(0,h.useMemo)(function(){return{dontPreventDefault:n,initialValues:a,validate:o,validateFields:f,allowEmptyStrings:d,preventEnter:m,validationSchema:ee,schema:te,ajv:se,fieldMap:ie}},[n,a,o,f,d,m,ee,te,se,ie]),Ee=(0,h.useState)(function(){return new uu(xe)}),ye=H(Ee,1),be=ye[0];(0,h.useEffect)(function(){be.setOptions(xe)},[xe]),Rt(function(){be.mount()},[]);var Se=(0,h.useState)(function(){return be.getFormState()}),ke=H(Se,2),Me=ke[0],Re=ke[1];Rt(function(){var cr=function(){return x&&x(be.getFormState())},mr=function(){return I&&I()},$r=function(){return N&&N(be.getFormState().values)},yr=function(){return j&&j(be.getFormState().values)},kr=function(){return W&&W(be.getFormState().errors)};return be.on("change",cr),be.on("reset",mr),be.on("submit",$r),be.on("value",yr),be.on("failure",kr),function(){be.removeListener("change",cr),be.removeListener("reset",mr),be.removeListener("submit",$r),be.removeListener("value",yr),be.removeListener("failure",kr)}},[x,I,N,j,W]),(0,h.useState)(function(){var cr=function(){jo("Setting form state"),Re(be.getFormState())};be.on("change",cr),g&&g(be.getFormApi()),b&&(b.current=be.getFormApi())});var We=(0,h.useState)(function(){return be.getFormApi()}),It=H(We,1),vt=It[0],rr=function(mr){return h.createElement(za,{formApi:vt,formState:Me,formController:be},h.createElement(h.Fragment,null,mr||h.createElement(Gt,{schema:te,onlyValidateSchema:de})))};return{formApi:vt,formState:Me,formController:be,render:rr,userProps:we}},Fs=Ne("informed:Form "),fu=function(r){var n=r.children,a=r.render,o=r.component,f=C(r,["children","render","component"]);Fs("Render FORM");var d=ks(f),m=d.formApi,g=d.formController,b=d.formState,x=d.render,I=d.userProps,N=function(){var W={formState:b,formApi:m};return o?h.createElement(o,W,n):a?a(W):typeof n=="function"?n(W):n};return x(h.createElement("form",Q({},I,{onReset:g.reset,onSubmit:g.submitForm,onKeyDown:g.keyDown}),N()))},cu=function(r,n){return K(K({},n),{},{getValue:function(o){return n.getValue("".concat(r,".").concat(o))},getTouched:function(o){return n.getTouched("".concat(r,".").concat(o))},getError:function(o){return n.getError("".concat(r,".").concat(o))},setValue:function(o,f){return n.setValue("".concat(r,".").concat(o),f)},setTouched:function(o,f){return n.setTouched("".concat(r,".").concat(o),f)},setError:function(o,f){return n.setError("".concat(r,".").concat(o),f)},getInitialValue:function(o){return n.getInitialValue("".concat(r,".").concat(o))},getFullField:function(o){return"".concat(n.getFullField(r),".").concat(o)}})},du=function(r,n){var a=n.register,o=n.deregister,f=n.setValue,d=n.setTouched,m=n.setError,g=n.update,b=n.getField,x=n.expectRemoval,I=n.getInitialValue,N=n.fieldMap,j=n.getSavedValue;return{register:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return a.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},deregister:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return o.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},update:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return g.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},setValue:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return f.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},setTouched:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return d.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},setError:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return m.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},getField:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return b.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},expectRemoval:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return x.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},getInitialValue:function(ee){return I("".concat(r,".").concat(ee))},getSavedValue:function(ee){return j("".concat(r,".").concat(ee))},fieldMap:N}},wc=function(r){var n=r.scope,a=r.children,o=useContext(Ze),f=Yt(),d=pi(),m=useMemo(function(){return cu(n,f)},[n]),g=useMemo(function(){return du(n,o)},[n]);return React.createElement(Ze.Provider,{value:g},React.createElement(kt.Provider,{value:m},React.createElement(Ct.Provider,{value:d},a)))},gp=function(r){var n=pi(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(j){a[j]=n[j]}):a=n;var o=a,f=o.pristine,d=o.dirty,m=o.invalid,g=o.values,b=o.errors,x=o.touched,I=o.validating,N=o.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:f,dirty:d,invalid:m,values:g,errors:b,touched:x,validating:I,submitting:N},null,2)))},Ac=function(r){var n=r.initialStep,a=r.multistepApiRef,o=Yt(),f=o.getValues,d=o.validate,m=o.screenValid,g=(0,h.useState)(new Map),b=H(g,1),x=b[0],I=(0,h.useRef)(0),N=dr({current:n,steps:[],goal:null}),j=H(N,3),W=j[0],ee=j[1],te=j[2],se=(0,h.useState)(function(){var xe=function(){var be=te(),Se=be.current,ke=x.get(Se);return ke},Ee={getState:function(){return te()},getCurrentStep:xe,getStep:function(be){return x.get(be)},getNumberOfSteps:function(){return x.size},next:function(){if(d(),m()){var be=xe(),Se=be.getNext,ke=Se(),Me=typeof ke=="function"?ke(f()):ke;Me&&ee(function(Re){return K(K({},Re),{},{current:Me})})}},back:function(){var be=xe(),Se=be.getPrevious,ke=Se(),Me=typeof ke=="function"?ke(f()):ke;Me&&ee(function(Re){return K(K({},Re),{},{current:Me})})},setCurrent:function(be){if(be){var Se=x.get(be).index;Se<xe().index?ee(function(ke){return K(K({},ke),{},{current:be,goal:null})}):ee(function(ke){return K(K({},ke),{},{goal:be})})}},register:function(be,Se,ke){ke?(I.current=I.current+1,x.set(be,K(K({},Se),{},{index:I.current}))):ee(function(Me){return K(K({},Me),{},{steps:Array.from(x.keys())})})},deregister:function(be){x.delete(be),I.current=I.current-1,ee(function(Se){return K(K({},Se),{},{steps:Array.from(x.keys())})})}};return a&&(a.current=Ee),Ee}),ie=H(se,1),de=ie[0],we=function(Ee){return h.createElement(qr.Provider,{value:de},h.createElement(br.Provider,{value:W},Ee))};return K(K(K({},de),W),{},{render:we})};function pu(){return(0,h.useContext)(br)}function hi(){return(0,h.useContext)(qr)}var Cc=function(r){var n=r.step,a=r.next,o=r.previous,f=r.relevant,d=pi(),m=d.values,g=pu(),b=g.current,x=g.goal,I=hi(),N=I.register,j=I.deregister,W=I.next,ee=n===b,te=f?f(m):!0,se=(0,h.useRef)(a),ie=(0,h.useRef)(o),de=(0,h.useRef)();se.current=a,ie.current=o,de.current=f,(0,h.useState)(function(){N(n,{name:n,getNext:function(){return se.current},getPrevious:function(){return ie.current}},!0)}),(0,h.useEffect)(function(){return N(n,{name:n,getNext:function(){return se.current},getPrevious:function(){return ie.current}}),function(){j(n)}},[n]),(0,h.useEffect)(function(){x&&ee&&x!==n&&W()},[x,ee]);var we=function(Ee){return h.createElement(xr.Provider,{value:{relevant:function(be){return de.current?de.current(be):!0},multistep:!0}},ee&&te?Ee:null)};return{isCurrent:ee,isRelevant:te,step:n,render:we}};function Ec(e){var r=e.children,n=C(e,["children"]),a=Ac(n),o=a.render,f=C(a,["render"]);return o(typeof r=="function"?r(f):r)}Ec.Step=function(r){var n=r.children,a=C(r,["children"]),o=Cc(a),f=o.render;return f(n)};var Rs=function(r){var n=r.field,a=useContext(Ze),o=a.fieldMap,f=Yt(),d=f.getFullField,m=f.getOptions,g=d(n),b=m(),x=b.schema,I=ue(g),N=$e.get(x,I);if(!N)return null;var j=nt(n,N),W=j.props,ee=j.componentType,te=o[ee];return React.createElement(te,Q({field:n},W))},Vo=function(){var r=Yt(),n=r.getOptions,a=n(),o=a.schema;return React.createElement(Gt,{schema:o})},mp=function(r){return React.forwardRef(function(n,a){return React.createElement(kt.Consumer,null,function(o){return React.createElement(r,Q({formApi:o,ref:a},n))})})},yp=function(r){return React.forwardRef(function(n,a){return React.createElement(Ct.Consumer,null,function(o){return React.createElement(r,Q({formState:o,ref:a},n))})})},Oc=function(r,n){return{getValue:function(){return r.getValue(n)},setValue:function(o){return r.setValue(n,o)},getTouched:function(){return r.getTouched(n)},setTouched:function(o){return r.setTouched(n,o)},getError:function(){return r.getError(n)},setError:function(o){return r.setError(n,o)},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 hu(e){var r=Yt(),n=useMemo(function(){return Oc(r,e)},[e]);return n}function Ls(e){var r=hu(e),n=Yt(),a=React.useState(),o=H(a,2),f=o[1],d=React.useCallback(function(){return f({})},[]);return Rt(function(){var m=function(b){b===e&&d()};return n.emitter.on("field",m),function(){n.emitter.removeListener("field",m)}},[]),Rt(function(){d()},[]),r.getFieldState()||{}}var Tc=function(r){return function(n){return function(a){var o=Ls(r);return React.createElement(n,Q({fieldState:o},a))}}},bp=function(r){return function(n){return function(a){var o=hu(r);return React.createElement(n,Q({fieldApi:o},a))}}},Pc=function(r){var n=r.value,a=r.forwardedRef,o=r.children,f=C(r,["value","forwardedRef","children"]);return React.createElement("option",Q({ref:a,value:n,key:n},f),o)},Ic=null,$i=s(49086),Ga=s(25575),ga=s(24463),vu=s(84870),Ms=s(79494),$a=s(48145),gu=s(11807),mu=s(45055),yn=s(49800);function kc(e,r,n){return r in e?yn(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function yu(e,r){var n=Ga(e);if(ga){var a=ga(e);r&&(a=vu(a).call(a,function(o){return Ms(e,o).enumerable})),n.push.apply(n,a)}return n}function lr(e){for(var r=1;r<arguments.length;r++){var n,a,o=arguments[r]!=null?arguments[r]:{};r%2?$a(n=yu(Object(o),!0)).call(n,function(f){kc(e,f,o[f])}):gu?mu(e,gu(o)):$a(a=yu(Object(o))).call(a,function(f){yn(e,f,Ms(o,f))})}return e}var bu=s(45932),Fr=s.n(bu),Ns=s(51661),qn=s.n(Ns),Gn=s(883),vi=s(57829),Ti=s(5490),Ds=s(72010),Fc=s(72383),xu=s(50557);function Bs(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function Uo(e,r){var n;if(!!e){if(typeof e=="string")return Bs(e,r);var a=Fc(n=Object.prototype.toString.call(e)).call(n,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return xu(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Bs(e,r)}}function Pi(e,r){var n=typeof vi!="undefined"&&Ti(e)||e["@@iterator"];if(!n){if(Ds(e)||(n=Uo(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(b){throw b},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
47
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,d=!1,m;return{s:function(){n=n.call(e)},n:function(){var b=n.next();return f=b.done,b},e:function(b){d=!0,m=b},f:function(){try{!f&&n.return!=null&&n.return()}finally{if(d)throw m}}}}var Rc=s(92876);function ar(e){return ar=typeof vi=="function"&&typeof Rc=="symbol"?function(r){return typeof r}:function(r){return r&&typeof vi=="function"&&r.constructor===vi&&r!==vi.prototype?"symbol":typeof r},ar(e)}function Lc(e){if(Ds(e))return e}function Mc(e,r){var n=e==null?null:typeof vi!="undefined"&&Ti(e)||e["@@iterator"];if(n!=null){var a=[],o=!0,f=!1,d,m;try{for(n=n.call(e);!(o=(d=n.next()).done)&&(a.push(d.value),!(r&&a.length===r));o=!0);}catch(g){f=!0,m=g}finally{try{!o&&n.return!=null&&n.return()}finally{if(f)throw m}}return a}}function Su(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $n(e,r){return Lc(e)||Mc(e,r)||Uo(e,r)||Su()}var js=s(64772);function Ka(e,r,n,a,o,f,d){try{var m=e[f](d),g=m.value}catch(b){n(b);return}m.done?r(g):js.resolve(g).then(a,o)}function Ii(e){return function(){var r=this,n=arguments;return new js(function(a,o){var f=e.apply(r,n);function d(g){Ka(f,a,o,d,m,"next",g)}function m(g){Ka(f,a,o,d,m,"throw",g)}d(void 0)})}}var Nc=s(99732),ei=s.n(Nc),Dc=s(82985),gi=s.n(Dc),Rr=s(42126),wu=s.n(Rr),Au=s(48621),ma=s.n(Au),Bc=s(85337),Ya=s.n(Bc),jc=s(14903),$t=s.n(jc),Cu=s(2921),Kt=s.n(Cu),Vc=s(40192),ut=s.n(Vc),Eu=s(31175),Ou=s.n(Eu),Ja=s(40453),Er=s.n(Ja),Vs=s(43616),Us=s(37794),Wo=s.n(Us);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Kn(e){return typeof e=="undefined"||e===null}function Ki(e){return typeof e=="object"&&e!==null}function Ws(e){return Array.isArray(e)?e:Kn(e)?[]:[e]}function Uc(e,r){var n,a,o,f;if(r)for(f=Object.keys(r),n=0,a=f.length;n<a;n+=1)o=f[n],e[o]=r[o];return e}function Tu(e,r){var n="",a;for(a=0;a<r;a+=1)n+=e;return n}function Wc(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Pu=Kn,Hs=Ki,ya=Ws,ti=Tu,Iu=Wc,ku=Uc,Lr={isNothing:Pu,isObject:Hs,toArray:ya,repeat:ti,isNegativeZero:Iu,extend:ku};function Fu(e,r){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
41
+ */E.parse=x,E.serialize=w;var o=Object.prototype.toString,d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function x(Z,re){if(typeof Z!="string")throw new TypeError("argument str must be a string");for(var ue={},ne=re||{},ie=ne.decode||A,Y=0;Y<Z.length;){var P=Z.indexOf("=",Y);if(P===-1)break;var $=Z.indexOf(";",Y);if($===-1)$=Z.length;else if($<P){Y=Z.lastIndexOf(";",P-1)+1;continue}var D=Z.slice(Y,P).trim();if(ue[D]===void 0){var C=Z.slice(P+1,$).trim();C.charCodeAt(0)===34&&(C=C.slice(1,-1)),ue[D]=U(C,ie)}Y=$+1}return ue}function w(Z,re,ue){var ne=ue||{},ie=ne.encode||O;if(typeof ie!="function")throw new TypeError("option encode is invalid");if(!d.test(Z))throw new TypeError("argument name is invalid");var Y=ie(re);if(Y&&!d.test(Y))throw new TypeError("argument val is invalid");var P=Z+"="+Y;if(ne.maxAge!=null){var $=ne.maxAge-0;if(isNaN($)||!isFinite($))throw new TypeError("option maxAge is invalid");P+="; Max-Age="+Math.floor($)}if(ne.domain){if(!d.test(ne.domain))throw new TypeError("option domain is invalid");P+="; Domain="+ne.domain}if(ne.path){if(!d.test(ne.path))throw new TypeError("option path is invalid");P+="; Path="+ne.path}if(ne.expires){var D=ne.expires;if(!k(D)||isNaN(D.valueOf()))throw new TypeError("option expires is invalid");P+="; Expires="+D.toUTCString()}if(ne.httpOnly&&(P+="; HttpOnly"),ne.secure&&(P+="; Secure"),ne.priority){var C=typeof ne.priority=="string"?ne.priority.toLowerCase():ne.priority;switch(C){case"low":P+="; Priority=Low";break;case"medium":P+="; Priority=Medium";break;case"high":P+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(ne.sameSite){var F=typeof ne.sameSite=="string"?ne.sameSite.toLowerCase():ne.sameSite;switch(F){case!0:P+="; SameSite=Strict";break;case"lax":P+="; SameSite=Lax";break;case"strict":P+="; SameSite=Strict";break;case"none":P+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return P}function A(Z){return Z.indexOf("%")!==-1?decodeURIComponent(Z):Z}function O(Z){return encodeURIComponent(Z)}function k(Z){return o.call(Z)==="[object Date]"||Z instanceof Date}function U(Z,re){try{return re(Z)}catch(ue){return Z}}},27129:(h,E,o)=>{var d=o(53822);h.exports=d},86250:(h,E,o)=>{var d=o(21434);h.exports=d},61347:(h,E,o)=>{var d=o(27710);h.exports=d},42142:(h,E,o)=>{var d=o(31585);h.exports=d},21106:(h,E,o)=>{var d=o(55603);h.exports=d},97497:(h,E,o)=>{var d=o(31206);h.exports=d},28385:(h,E,o)=>{var d=o(26174);h.exports=d},85874:(h,E,o)=>{var d=o(87511);h.exports=d},86843:(h,E,o)=>{var d=o(24741);h.exports=d},37528:(h,E,o)=>{var d=o(4963);h.exports=d},81471:(h,E,o)=>{var d=o(21025);h.exports=d},5271:(h,E,o)=>{var d=o(27820);h.exports=d},87275:(h,E,o)=>{var d=o(74194);h.exports=d},13772:(h,E,o)=>{var d=o(32854);h.exports=d},97574:(h,E,o)=>{var d=o(60002);h.exports=d},69373:(h,E,o)=>{var d=o(28980);h.exports=d},70033:(h,E,o)=>{var d=o(45636);h.exports=d},77443:(h,E,o)=>{var d=o(66672);h.exports=d},88362:(h,E,o)=>{var d=o(46618);h.exports=d},89821:(h,E,o)=>{var d=o(42285);o(9031),h.exports=d},8008:(h,E,o)=>{var d=o(58535);h.exports=d},30164:(h,E,o)=>{var d=o(16042);h.exports=d},52221:(h,E,o)=>{o(5454),o(19173);var d=o(57545);h.exports=d.Array.from},75078:(h,E,o)=>{o(8118);var d=o(57545);h.exports=d.Array.isArray},66135:(h,E,o)=>{o(59106);var d=o(45607);h.exports=d("Array").concat},77237:(h,E,o)=>{o(98939),o(46663);var d=o(45607);h.exports=d("Array").entries},83971:(h,E,o)=>{o(73436);var d=o(45607);h.exports=d("Array").filter},42087:(h,E,o)=>{o(10880);var d=o(45607);h.exports=d("Array").find},60098:(h,E,o)=>{o(9823);var d=o(45607);h.exports=d("Array").forEach},54216:(h,E,o)=>{o(70024);var d=o(45607);h.exports=d("Array").includes},92089:(h,E,o)=>{o(62276);var d=o(45607);h.exports=d("Array").indexOf},6209:(h,E,o)=>{o(63838);var d=o(45607);h.exports=d("Array").map},49922:(h,E,o)=>{o(99523);var d=o(45607);h.exports=d("Array").reverse},52671:(h,E,o)=>{o(65818);var d=o(45607);h.exports=d("Array").slice},51375:(h,E,o)=>{o(12178);var d=o(45607);h.exports=d("Array").splice},65739:(h,E,o)=>{o(98939),o(5454);var d=o(78703);h.exports=d},74030:(h,E,o)=>{o(25067),h.exports=o(98576)},41484:(h,E,o)=>{var d=o(8902),x=o(66135),w=Array.prototype;h.exports=function(A){var O=A.concat;return A===w||d(w,A)&&O===w.concat?x:O}},53669:(h,E,o)=>{var d=o(8902),x=o(83971),w=Array.prototype;h.exports=function(A){var O=A.filter;return A===w||d(w,A)&&O===w.filter?x:O}},37506:(h,E,o)=>{var d=o(8902),x=o(42087),w=Array.prototype;h.exports=function(A){var O=A.find;return A===w||d(w,A)&&O===w.find?x:O}},13173:(h,E,o)=>{var d=o(8902),x=o(54216),w=o(62840),A=Array.prototype,O=String.prototype;h.exports=function(k){var U=k.includes;return k===A||d(A,k)&&U===A.includes?x:typeof k=="string"||k===O||d(O,k)&&U===O.includes?w:U}},92604:(h,E,o)=>{var d=o(8902),x=o(92089),w=Array.prototype;h.exports=function(A){var O=A.indexOf;return A===w||d(w,A)&&O===w.indexOf?x:O}},263:(h,E,o)=>{var d=o(8902),x=o(6209),w=Array.prototype;h.exports=function(A){var O=A.map;return A===w||d(w,A)&&O===w.map?x:O}},80432:(h,E,o)=>{var d=o(8902),x=o(49922),w=Array.prototype;h.exports=function(A){var O=A.reverse;return A===w||d(w,A)&&O===w.reverse?x:O}},77663:(h,E,o)=>{var d=o(8902),x=o(52671),w=Array.prototype;h.exports=function(A){var O=A.slice;return A===w||d(w,A)&&O===w.slice?x:O}},45063:(h,E,o)=>{var d=o(8902),x=o(51375),w=Array.prototype;h.exports=function(A){var O=A.splice;return A===w||d(w,A)&&O===w.splice?x:O}},7769:(h,E,o)=>{var d=o(8902),x=o(14820),w=String.prototype;h.exports=function(A){var O=A.startsWith;return typeof A=="string"||A===w||d(w,A)&&O===w.startsWith?x:O}},96056:(h,E,o)=>{o(59704);var d=o(57545),x=o(86298);d.JSON||(d.JSON={stringify:JSON.stringify}),h.exports=function(A,O,k){return x(d.JSON.stringify,null,arguments)}},99936:(h,E,o)=>{o(93582);var d=o(57545);h.exports=d.Object.assign},23213:(h,E,o)=>{o(73113);var d=o(57545),x=d.Object;h.exports=function(A,O){return x.create(A,O)}},38724:(h,E,o)=>{o(57585);var d=o(57545),x=d.Object,w=h.exports=function(O,k){return x.defineProperties(O,k)};x.defineProperties.sham&&(w.sham=!0)},63512:(h,E,o)=>{o(20297);var d=o(57545),x=d.Object,w=h.exports=function(O,k,U){return x.defineProperty(O,k,U)};x.defineProperty.sham&&(w.sham=!0)},2335:(h,E,o)=>{o(27442);var d=o(57545);h.exports=d.Object.entries},60632:(h,E,o)=>{o(89189);var d=o(57545),x=d.Object,w=h.exports=function(O,k){return x.getOwnPropertyDescriptor(O,k)};x.getOwnPropertyDescriptor.sham&&(w.sham=!0)},81056:(h,E,o)=>{o(62509);var d=o(57545);h.exports=d.Object.getOwnPropertyDescriptors},12921:(h,E,o)=>{o(36187);var d=o(57545);h.exports=d.Object.getOwnPropertySymbols},8168:(h,E,o)=>{o(19234);var d=o(57545);h.exports=d.Object.getPrototypeOf},38651:(h,E,o)=>{o(92647);var d=o(57545);h.exports=d.Object.keys},33083:(h,E,o)=>{o(13222);var d=o(57545);h.exports=d.Object.setPrototypeOf},93154:(h,E,o)=>{o(4242),o(98939),o(46663),o(59021),o(97884),o(78885),o(91868),o(5454);var d=o(57545);h.exports=d.Promise},62840:(h,E,o)=>{o(39247);var d=o(45607);h.exports=d("String").includes},14820:(h,E,o)=>{o(32991);var d=o(45607);h.exports=d("String").startsWith},85008:(h,E,o)=>{o(59106),o(46663),o(36187),o(19781),o(50492),o(66681),o(29594),o(63665),o(29017),o(11250),o(79786),o(90503),o(16565),o(69322),o(13610),o(36886),o(33514),o(68671),o(58556),o(71367);var d=o(57545);h.exports=d.Symbol},994:(h,E,o)=>{o(98939),o(46663),o(5454),o(63665);var d=o(89207);h.exports=d.f("iterator")},30290:(h,E,o)=>{o(12432),o(13610);var d=o(89207);h.exports=d.f("toPrimitive")},31293:(h,E,o)=>{o(98939),o(46663),o(33983);var d=o(57545);h.exports=d.WeakMap},62813:(h,E,o)=>{h.exports=o(52708)},68664:(h,E,o)=>{h.exports=o(58541)},21457:(h,E,o)=>{h.exports=o(37020)},36516:(h,E,o)=>{h.exports=o(79987)},87611:(h,E,o)=>{h.exports=o(86812)},4161:(h,E,o)=>{h.exports=o(51024)},75159:(h,E,o)=>{h.exports=o(32747)},87708:(h,E,o)=>{h.exports=o(85918)},42937:(h,E,o)=>{h.exports=o(21626)},69297:(h,E,o)=>{h.exports=o(77021)},10353:(h,E,o)=>{h.exports=o(18281)},8026:(h,E,o)=>{h.exports=o(90229)},67362:(h,E,o)=>{h.exports=o(53949)},57532:(h,E,o)=>{h.exports=o(11795)},61903:(h,E,o)=>{h.exports=o(75090)},42044:(h,E,o)=>{h.exports=o(27994)},60902:(h,E,o)=>{h.exports=o(45483)},2214:(h,E,o)=>{h.exports=o(35796)},983:(h,E,o)=>{h.exports=o(79918)},59256:(h,E,o)=>{h.exports=o(82185)},95659:(h,E,o)=>{h.exports=o(39982)},93698:(h,E,o)=>{h.exports=o(88241)},52708:(h,E,o)=>{var d=o(27129);h.exports=d},58541:(h,E,o)=>{var d=o(86250);h.exports=d},37020:(h,E,o)=>{var d=o(61347);h.exports=d},79987:(h,E,o)=>{o(5363);var d=o(42142);h.exports=d},86812:(h,E,o)=>{var d=o(21106);h.exports=d},51024:(h,E,o)=>{var d=o(97497);h.exports=d},32747:(h,E,o)=>{var d=o(28385);h.exports=d},85918:(h,E,o)=>{var d=o(85874);h.exports=d},21626:(h,E,o)=>{var d=o(86843);h.exports=d},77021:(h,E,o)=>{var d=o(37528);h.exports=d},18281:(h,E,o)=>{var d=o(81471);h.exports=d},90229:(h,E,o)=>{var d=o(5271);h.exports=d},53949:(h,E,o)=>{var d=o(87275);h.exports=d},11795:(h,E,o)=>{var d=o(13772);h.exports=d},75090:(h,E,o)=>{var d=o(97574);h.exports=d},27994:(h,E,o)=>{var d=o(69373);h.exports=d},45483:(h,E,o)=>{var d=o(70033);h.exports=d},35796:(h,E,o)=>{var d=o(77443);h.exports=d},79918:(h,E,o)=>{var d=o(88362);o(12752),o(14562),o(25363),o(69355),h.exports=d},82185:(h,E,o)=>{var d=o(89821);o(60177),o(96658),o(54212),o(18658),o(71875),o(54592),o(26680),h.exports=d},39982:(h,E,o)=>{var d=o(8008);h.exports=d},88241:(h,E,o)=>{var d=o(30164);h.exports=d},66235:(h,E,o)=>{var d=o(16447),x=o(79288),w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not a function")}},71404:(h,E,o)=>{var d=o(22091),x=o(79288),w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not a constructor")}},7757:(h,E,o)=>{var d=o(16447),x=String,w=TypeError;h.exports=function(A){if(typeof A=="object"||d(A))return A;throw w("Can't set "+x(A)+" as a prototype")}},67423:h=>{h.exports=function(){}},46961:(h,E,o)=>{var d=o(8902),x=TypeError;h.exports=function(w,A){if(d(A,w))return w;throw x("Incorrect invocation")}},31138:(h,E,o)=>{var d=o(35744),x=String,w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not an object")}},80410:(h,E,o)=>{var d=o(76192);h.exports=d(function(){if(typeof ArrayBuffer=="function"){var x=new ArrayBuffer(8);Object.isExtensible(x)&&Object.defineProperty(x,"a",{value:8})}})},87397:(h,E,o)=>{"use strict";var d=o(50454).forEach,x=o(10424),w=x("forEach");h.exports=w?[].forEach:function(O){return d(this,O,arguments.length>1?arguments[1]:void 0)}},20841:(h,E,o)=>{"use strict";var d=o(8043),x=o(18922),w=o(71795),A=o(21635),O=o(96109),k=o(22091),U=o(84104),Z=o(49361),re=o(61669),ue=o(78703),ne=Array;h.exports=function(Y){var P=w(Y),$=k(this),D=arguments.length,C=D>1?arguments[1]:void 0,F=C!==void 0;F&&(C=d(C,D>2?arguments[2]:void 0));var V=ue(P),X=0,K,W,te,J,H,fe;if(V&&!(this===ne&&O(V)))for(J=re(P,V),H=J.next,W=$?new this:[];!(te=x(H,J)).done;X++)fe=F?A(J,C,[te.value,X],!0):te.value,Z(W,X,fe);else for(K=U(P),W=$?new this(K):ne(K);K>X;X++)fe=F?C(P[X],X):P[X],Z(W,X,fe);return W.length=X,W}},48180:(h,E,o)=>{var d=o(20101),x=o(97739),w=o(84104),A=function(O){return function(k,U,Z){var re=d(k),ue=w(re),ne=x(Z,ue),ie;if(O&&U!=U){for(;ue>ne;)if(ie=re[ne++],ie!=ie)return!0}else for(;ue>ne;ne++)if((O||ne in re)&&re[ne]===U)return O||ne||0;return!O&&-1}};h.exports={includes:A(!0),indexOf:A(!1)}},50454:(h,E,o)=>{var d=o(8043),x=o(84120),w=o(2202),A=o(71795),O=o(84104),k=o(71321),U=x([].push),Z=function(re){var ue=re==1,ne=re==2,ie=re==3,Y=re==4,P=re==6,$=re==7,D=re==5||P;return function(C,F,V,X){for(var K=A(C),W=w(K),te=d(F,V),J=O(W),H=0,fe=X||k,he=ue?fe(C,J):ne||$?fe(C,0):void 0,_,Q;J>H;H++)if((D||H in W)&&(_=W[H],Q=te(_,H,K),re))if(ue)he[H]=Q;else if(Q)switch(re){case 3:return!0;case 5:return _;case 6:return H;case 2:U(he,_)}else switch(re){case 4:return!1;case 7:U(he,_)}return P?-1:ie||Y?Y:he}};h.exports={forEach:Z(0),map:Z(1),filter:Z(2),some:Z(3),every:Z(4),find:Z(5),findIndex:Z(6),filterReject:Z(7)}},90242:(h,E,o)=>{var d=o(76192),x=o(18182),w=o(14218),A=x("species");h.exports=function(O){return w>=51||!d(function(){var k=[],U=k.constructor={};return U[A]=function(){return{foo:1}},k[O](Boolean).foo!==1})}},10424:(h,E,o)=>{"use strict";var d=o(76192);h.exports=function(x,w){var A=[][x];return!!A&&d(function(){A.call(null,w||function(){return 1},1)})}},95072:(h,E,o)=>{"use strict";var d=o(50069),x=o(34770),w=TypeError,A=Object.getOwnPropertyDescriptor,O=d&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(k){return k instanceof TypeError}}();h.exports=O?function(k,U){if(x(k)&&!A(k,"length").writable)throw w("Cannot set read only .length");return k.length=U}:function(k,U){return k.length=U}},1923:(h,E,o)=>{var d=o(97739),x=o(84104),w=o(49361),A=Array,O=Math.max;h.exports=function(k,U,Z){for(var re=x(k),ue=d(U,re),ne=d(Z===void 0?re:Z,re),ie=A(O(ne-ue,0)),Y=0;ue<ne;ue++,Y++)w(ie,Y,k[ue]);return ie.length=Y,ie}},93096:(h,E,o)=>{var d=o(84120);h.exports=d([].slice)},6614:(h,E,o)=>{var d=o(1923),x=Math.floor,w=function(k,U){var Z=k.length,re=x(Z/2);return Z<8?A(k,U):O(k,w(d(k,0,re),U),w(d(k,re),U),U)},A=function(k,U){for(var Z=k.length,re=1,ue,ne;re<Z;){for(ne=re,ue=k[re];ne&&U(k[ne-1],ue)>0;)k[ne]=k[--ne];ne!==re++&&(k[ne]=ue)}return k},O=function(k,U,Z,re){for(var ue=U.length,ne=Z.length,ie=0,Y=0;ie<ue||Y<ne;)k[ie+Y]=ie<ue&&Y<ne?re(U[ie],Z[Y])<=0?U[ie++]:Z[Y++]:ie<ue?U[ie++]:Z[Y++];return k};h.exports=w},83712:(h,E,o)=>{var d=o(34770),x=o(22091),w=o(35744),A=o(18182),O=A("species"),k=Array;h.exports=function(U){var Z;return d(U)&&(Z=U.constructor,x(Z)&&(Z===k||d(Z.prototype))?Z=void 0:w(Z)&&(Z=Z[O],Z===null&&(Z=void 0))),Z===void 0?k:Z}},71321:(h,E,o)=>{var d=o(83712);h.exports=function(x,w){return new(d(x))(w===0?0:w)}},21635:(h,E,o)=>{var d=o(31138),x=o(66639);h.exports=function(w,A,O,k){try{return k?A(d(O)[0],O[1]):A(O)}catch(U){x(w,"throw",U)}}},19770:(h,E,o)=>{var d=o(18182),x=d("iterator"),w=!1;try{var A=0,O={next:function(){return{done:!!A++}},return:function(){w=!0}};O[x]=function(){return this},Array.from(O,function(){throw 2})}catch(k){}h.exports=function(k,U){if(!U&&!w)return!1;var Z=!1;try{var re={};re[x]=function(){return{next:function(){return{done:Z=!0}}}},k(re)}catch(ue){}return Z}},29272:(h,E,o)=>{var d=o(84120),x=d({}.toString),w=d("".slice);h.exports=function(A){return w(x(A),8,-1)}},4696:(h,E,o)=>{var d=o(83471),x=o(16447),w=o(29272),A=o(18182),O=A("toStringTag"),k=Object,U=w(function(){return arguments}())=="Arguments",Z=function(re,ue){try{return re[ue]}catch(ne){}};h.exports=d?w:function(re){var ue,ne,ie;return re===void 0?"Undefined":re===null?"Null":typeof(ne=Z(ue=k(re),O))=="string"?ne:U?w(ue):(ie=w(ue))=="Object"&&x(ue.callee)?"Arguments":ie}},51057:(h,E,o)=>{"use strict";var d=o(84120),x=o(35090),w=o(32861).getWeakData,A=o(46961),O=o(31138),k=o(75646),U=o(35744),Z=o(33442),re=o(50454),ue=o(64500),ne=o(73326),ie=ne.set,Y=ne.getterFor,P=re.find,$=re.findIndex,D=d([].splice),C=0,F=function(K){return K.frozen||(K.frozen=new V)},V=function(){this.entries=[]},X=function(K,W){return P(K.entries,function(te){return te[0]===W})};V.prototype={get:function(K){var W=X(this,K);if(W)return W[1]},has:function(K){return!!X(this,K)},set:function(K,W){var te=X(this,K);te?te[1]=W:this.entries.push([K,W])},delete:function(K){var W=$(this.entries,function(te){return te[0]===K});return~W&&D(this.entries,W,1),!!~W}},h.exports={getConstructor:function(K,W,te,J){var H=K(function(Q,z){A(Q,fe),ie(Q,{type:W,id:C++,frozen:void 0}),k(z)||Z(z,Q[J],{that:Q,AS_ENTRIES:te})}),fe=H.prototype,he=Y(W),_=function(Q,z,ge){var Ee=he(Q),je=w(O(z),!0);return je===!0?F(Ee).set(z,ge):je[Ee.id]=ge,Q};return x(fe,{delete:function(Q){var z=he(this);if(!U(Q))return!1;var ge=w(Q);return ge===!0?F(z).delete(Q):ge&&ue(ge,z.id)&&delete ge[z.id]},has:function(z){var ge=he(this);if(!U(z))return!1;var Ee=w(z);return Ee===!0?F(ge).has(z):Ee&&ue(Ee,ge.id)}}),x(fe,te?{get:function(z){var ge=he(this);if(U(z)){var Ee=w(z);return Ee===!0?F(ge).get(z):Ee?Ee[ge.id]:void 0}},set:function(z,ge){return _(this,z,ge)}}:{add:function(z){return _(this,z,!0)}}),H}}},34535:(h,E,o)=>{"use strict";var d=o(93085),x=o(98576),w=o(32861),A=o(76192),O=o(98711),k=o(33442),U=o(46961),Z=o(16447),re=o(35744),ue=o(11284),ne=o(42760).f,ie=o(50454).forEach,Y=o(50069),P=o(73326),$=P.set,D=P.getterFor;h.exports=function(C,F,V){var X=C.indexOf("Map")!==-1,K=C.indexOf("Weak")!==-1,W=X?"set":"add",te=x[C],J=te&&te.prototype,H={},fe;if(!Y||!Z(te)||!(K||J.forEach&&!A(function(){new te().entries().next()})))fe=V.getConstructor(F,C,X,W),w.enable();else{fe=F(function(Q,z){$(U(Q,he),{type:C,collection:new te}),z!=null&&k(z,Q[W],{that:Q,AS_ENTRIES:X})});var he=fe.prototype,_=D(C);ie(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(Q){var z=Q=="add"||Q=="set";Q in J&&!(K&&Q=="clear")&&O(he,Q,function(ge,Ee){var je=_(this).collection;if(!z&&K&&!re(ge))return Q=="get"?void 0:!1;var ke=je[Q](ge===0?0:ge,Ee);return z?this:ke})}),K||ne(he,"size",{configurable:!0,get:function(){return _(this).collection.size}})}return ue(fe,C,!1,!0),H[C]=fe,d({global:!0,forced:!0},H),K||V.setStrong(fe,C,X),fe}},97987:(h,E,o)=>{var d=o(64500),x=o(93011),w=o(5141),A=o(42760);h.exports=function(O,k,U){for(var Z=x(k),re=A.f,ue=w.f,ne=0;ne<Z.length;ne++){var ie=Z[ne];!d(O,ie)&&!(U&&d(U,ie))&&re(O,ie,ue(k,ie))}}},83519:(h,E,o)=>{var d=o(18182),x=d("match");h.exports=function(w){var A=/./;try{"/./"[w](A)}catch(O){try{return A[x]=!1,"/./"[w](A)}catch(k){}}return!1}},4635:(h,E,o)=>{var d=o(76192);h.exports=!d(function(){function x(){}return x.prototype.constructor=null,Object.getPrototypeOf(new x)!==x.prototype})},87271:h=>{h.exports=function(E,o){return{value:E,done:o}}},98711:(h,E,o)=>{var d=o(50069),x=o(42760),w=o(90774);h.exports=d?function(A,O,k){return x.f(A,O,w(1,k))}:function(A,O,k){return A[O]=k,A}},90774:h=>{h.exports=function(E,o){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:o}}},49361:(h,E,o)=>{"use strict";var d=o(40077),x=o(42760),w=o(90774);h.exports=function(A,O,k){var U=d(O);U in A?x.f(A,U,w(0,k)):A[U]=k}},59362:(h,E,o)=>{var d=o(98711);h.exports=function(x,w,A,O){return O&&O.enumerable?x[w]=A:d(x,w,A),x}},35090:(h,E,o)=>{var d=o(59362);h.exports=function(x,w,A){for(var O in w)A&&A.unsafe&&x[O]?x[O]=w[O]:d(x,O,w[O],A);return x}},65098:(h,E,o)=>{var d=o(98576),x=Object.defineProperty;h.exports=function(w,A){try{x(d,w,{value:A,configurable:!0,writable:!0})}catch(O){d[w]=A}return A}},29970:(h,E,o)=>{"use strict";var d=o(79288),x=TypeError;h.exports=function(w,A){if(!delete w[A])throw x("Cannot delete property "+d(A)+" of "+d(w))}},50069:(h,E,o)=>{var d=o(76192);h.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},58382:h=>{var E=typeof document=="object"&&document.all,o=typeof E=="undefined"&&E!==void 0;h.exports={all:E,IS_HTMLDDA:o}},67449:(h,E,o)=>{var d=o(98576),x=o(35744),w=d.document,A=x(w)&&x(w.createElement);h.exports=function(O){return A?w.createElement(O):{}}},29425:h=>{var E=TypeError,o=9007199254740991;h.exports=function(d){if(d>o)throw E("Maximum allowed index exceeded");return d}},17365: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}},82957:(h,E,o)=>{var d=o(60659),x=o(58189);h.exports=!d&&!x&&typeof window=="object"&&typeof document=="object"},60659:h=>{h.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},29347:(h,E,o)=>{var d=o(78989),x=o(98576);h.exports=/ipad|iphone|ipod/i.test(d)&&x.Pebble!==void 0},69536:(h,E,o)=>{var d=o(78989);h.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},58189:(h,E,o)=>{var d=o(29272),x=o(98576);h.exports=d(x.process)=="process"},5914:(h,E,o)=>{var d=o(78989);h.exports=/web0s(?!.*chrome)/i.test(d)},78989:(h,E,o)=>{var d=o(10150);h.exports=d("navigator","userAgent")||""},14218:(h,E,o)=>{var d=o(98576),x=o(78989),w=d.process,A=d.Deno,O=w&&w.versions||A&&A.version,k=O&&O.v8,U,Z;k&&(U=k.split("."),Z=U[0]>0&&U[0]<4?1:+(U[0]+U[1])),!Z&&x&&(U=x.match(/Edge\/(\d+)/),(!U||U[1]>=74)&&(U=x.match(/Chrome\/(\d+)/),U&&(Z=+U[1]))),h.exports=Z},45607:(h,E,o)=>{var d=o(57545);h.exports=function(x){return d[x+"Prototype"]}},82952:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},14503:(h,E,o)=>{var d=o(84120),x=Error,w=d("".replace),A=function(U){return String(x(U).stack)}("zxcasd"),O=/\n\s*at [^:]*:[^\n]*/,k=O.test(A);h.exports=function(U,Z){if(k&&typeof U=="string"&&!x.prepareStackTrace)for(;Z--;)U=w(U,O,"");return U}},50274:(h,E,o)=>{var d=o(76192),x=o(90774);h.exports=!d(function(){var w=Error("a");return"stack"in w?(Object.defineProperty(w,"stack",x(1,7)),w.stack!==7):!0})},93085:(h,E,o)=>{"use strict";var d=o(98576),x=o(86298),w=o(14914),A=o(16447),O=o(5141).f,k=o(89245),U=o(57545),Z=o(8043),re=o(98711),ue=o(64500),ne=function(ie){var Y=function(P,$,D){if(this instanceof Y){switch(arguments.length){case 0:return new ie;case 1:return new ie(P);case 2:return new ie(P,$)}return new ie(P,$,D)}return x(ie,this,arguments)};return Y.prototype=ie.prototype,Y};h.exports=function(ie,Y){var P=ie.target,$=ie.global,D=ie.stat,C=ie.proto,F=$?d:D?d[P]:(d[P]||{}).prototype,V=$?U:U[P]||re(U,P,{})[P],X=V.prototype,K,W,te,J,H,fe,he,_,Q;for(J in Y)K=k($?J:P+(D?".":"#")+J,ie.forced),W=!K&&F&&ue(F,J),fe=V[J],W&&(ie.dontCallGetSet?(Q=O(F,J),he=Q&&Q.value):he=F[J]),H=W&&he?he:Y[J],!(W&&typeof fe==typeof H)&&(ie.bind&&W?_=Z(H,d):ie.wrap&&W?_=ne(H):C&&A(H)?_=w(H):_=H,(ie.sham||H&&H.sham||fe&&fe.sham)&&re(_,"sham",!0),re(V,J,_),C&&(te=P+"Prototype",ue(U,te)||re(U,te,{}),re(U[te],J,H),ie.real&&X&&(K||!X[J])&&re(X,J,H)))}},76192:h=>{h.exports=function(E){try{return!!E()}catch(o){return!0}}},47636:(h,E,o)=>{var d=o(76192);h.exports=!d(function(){return Object.isExtensible(Object.preventExtensions({}))})},86298:(h,E,o)=>{var d=o(22784),x=Function.prototype,w=x.apply,A=x.call;h.exports=typeof Reflect=="object"&&Reflect.apply||(d?A.bind(w):function(){return A.apply(w,arguments)})},8043:(h,E,o)=>{var d=o(14914),x=o(66235),w=o(22784),A=d(d.bind);h.exports=function(O,k){return x(O),k===void 0?O:w?A(O,k):function(){return O.apply(k,arguments)}}},22784:(h,E,o)=>{var d=o(76192);h.exports=!d(function(){var x=function(){}.bind();return typeof x!="function"||x.hasOwnProperty("prototype")})},18922:(h,E,o)=>{var d=o(22784),x=Function.prototype.call;h.exports=d?x.bind(x):function(){return x.apply(x,arguments)}},22282:(h,E,o)=>{var d=o(50069),x=o(64500),w=Function.prototype,A=d&&Object.getOwnPropertyDescriptor,O=x(w,"name"),k=O&&function(){}.name==="something",U=O&&(!d||d&&A(w,"name").configurable);h.exports={EXISTS:O,PROPER:k,CONFIGURABLE:U}},14914:(h,E,o)=>{var d=o(29272),x=o(84120);h.exports=function(w){if(d(w)==="Function")return x(w)}},84120:(h,E,o)=>{var d=o(22784),x=Function.prototype,w=x.call,A=d&&x.bind.bind(w,w);h.exports=d?A:function(O){return function(){return w.apply(O,arguments)}}},10150:(h,E,o)=>{var d=o(57545),x=o(98576),w=o(16447),A=function(O){return w(O)?O:void 0};h.exports=function(O,k){return arguments.length<2?A(d[O])||A(x[O]):d[O]&&d[O][k]||x[O]&&x[O][k]}},78703:(h,E,o)=>{var d=o(4696),x=o(75037),w=o(75646),A=o(47771),O=o(18182),k=O("iterator");h.exports=function(U){if(!w(U))return x(U,k)||x(U,"@@iterator")||A[d(U)]}},61669:(h,E,o)=>{var d=o(18922),x=o(66235),w=o(31138),A=o(79288),O=o(78703),k=TypeError;h.exports=function(U,Z){var re=arguments.length<2?O(U):Z;if(x(re))return w(d(re,U));throw k(A(U)+" is not iterable")}},75037:(h,E,o)=>{var d=o(66235),x=o(75646);h.exports=function(w,A){var O=w[A];return x(O)?void 0:d(O)}},98576:(h,E,o)=>{var d=function(x){return x&&x.Math==Math&&x};h.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},64500:(h,E,o)=>{var d=o(84120),x=o(71795),w=d({}.hasOwnProperty);h.exports=Object.hasOwn||function(O,k){return w(x(O),k)}},14535:h=>{h.exports={}},63681:(h,E,o)=>{var d=o(98576);h.exports=function(x,w){var A=d.console;A&&A.error&&(arguments.length==1?A.error(x):A.error(x,w))}},47403:(h,E,o)=>{var d=o(10150);h.exports=d("document","documentElement")},80188:(h,E,o)=>{var d=o(50069),x=o(76192),w=o(67449);h.exports=!d&&!x(function(){return Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a!=7})},2202:(h,E,o)=>{var d=o(84120),x=o(76192),w=o(29272),A=Object,O=d("".split);h.exports=x(function(){return!A("z").propertyIsEnumerable(0)})?function(k){return w(k)=="String"?O(k,""):A(k)}:A},19516:(h,E,o)=>{var d=o(84120),x=o(16447),w=o(46434),A=d(Function.toString);x(w.inspectSource)||(w.inspectSource=function(O){return A(O)}),h.exports=w.inspectSource},10273:(h,E,o)=>{var d=o(35744),x=o(98711);h.exports=function(w,A){d(A)&&"cause"in A&&x(w,"cause",A.cause)}},32861:(h,E,o)=>{var d=o(93085),x=o(84120),w=o(14535),A=o(35744),O=o(64500),k=o(42760).f,U=o(92092),Z=o(24052),re=o(4532),ue=o(42759),ne=o(47636),ie=!1,Y=ue("meta"),P=0,$=function(K){k(K,Y,{value:{objectID:"O"+P++,weakData:{}}})},D=function(K,W){if(!A(K))return typeof K=="symbol"?K:(typeof K=="string"?"S":"P")+K;if(!O(K,Y)){if(!re(K))return"F";if(!W)return"E";$(K)}return K[Y].objectID},C=function(K,W){if(!O(K,Y)){if(!re(K))return!0;if(!W)return!1;$(K)}return K[Y].weakData},F=function(K){return ne&&ie&&re(K)&&!O(K,Y)&&$(K),K},V=function(){X.enable=function(){},ie=!0;var K=U.f,W=x([].splice),te={};te[Y]=1,K(te).length&&(U.f=function(J){for(var H=K(J),fe=0,he=H.length;fe<he;fe++)if(H[fe]===Y){W(H,fe,1);break}return H},d({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Z.f}))},X=h.exports={enable:V,fastKey:D,getWeakData:C,onFreeze:F};w[Y]=!0},73326:(h,E,o)=>{var d=o(55278),x=o(98576),w=o(35744),A=o(98711),O=o(64500),k=o(46434),U=o(69766),Z=o(14535),re="Object already initialized",ue=x.TypeError,ne=x.WeakMap,ie,Y,P,$=function(V){return P(V)?Y(V):ie(V,{})},D=function(V){return function(X){var K;if(!w(X)||(K=Y(X)).type!==V)throw ue("Incompatible receiver, "+V+" required");return K}};if(d||k.state){var C=k.state||(k.state=new ne);C.get=C.get,C.has=C.has,C.set=C.set,ie=function(V,X){if(C.has(V))throw ue(re);return X.facade=V,C.set(V,X),X},Y=function(V){return C.get(V)||{}},P=function(V){return C.has(V)}}else{var F=U("state");Z[F]=!0,ie=function(V,X){if(O(V,F))throw ue(re);return X.facade=V,A(V,F,X),X},Y=function(V){return O(V,F)?V[F]:{}},P=function(V){return O(V,F)}}h.exports={set:ie,get:Y,has:P,enforce:$,getterFor:D}},96109:(h,E,o)=>{var d=o(18182),x=o(47771),w=d("iterator"),A=Array.prototype;h.exports=function(O){return O!==void 0&&(x.Array===O||A[w]===O)}},34770:(h,E,o)=>{var d=o(29272);h.exports=Array.isArray||function(w){return d(w)=="Array"}},16447:(h,E,o)=>{var d=o(58382),x=d.all;h.exports=d.IS_HTMLDDA?function(w){return typeof w=="function"||w===x}:function(w){return typeof w=="function"}},22091:(h,E,o)=>{var d=o(84120),x=o(76192),w=o(16447),A=o(4696),O=o(10150),k=o(19516),U=function(){},Z=[],re=O("Reflect","construct"),ue=/^\s*(?:class|function)\b/,ne=d(ue.exec),ie=!ue.exec(U),Y=function(D){if(!w(D))return!1;try{return re(U,Z,D),!0}catch(C){return!1}},P=function(D){if(!w(D))return!1;switch(A(D)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ie||!!ne(ue,k(D))}catch(C){return!0}};P.sham=!0,h.exports=!re||x(function(){var $;return Y(Y.call)||!Y(Object)||!Y(function(){$=!0})||$})?P:Y},89245:(h,E,o)=>{var d=o(76192),x=o(16447),w=/#|\.prototype\./,A=function(re,ue){var ne=k[O(re)];return ne==Z?!0:ne==U?!1:x(ue)?d(ue):!!ue},O=A.normalize=function(re){return String(re).replace(w,".").toLowerCase()},k=A.data={},U=A.NATIVE="N",Z=A.POLYFILL="P";h.exports=A},75646:h=>{h.exports=function(E){return E==null}},35744:(h,E,o)=>{var d=o(16447),x=o(58382),w=x.all;h.exports=x.IS_HTMLDDA?function(A){return typeof A=="object"?A!==null:d(A)||A===w}:function(A){return typeof A=="object"?A!==null:d(A)}},85546:h=>{h.exports=!0},94352:(h,E,o)=>{var d=o(35744),x=o(29272),w=o(18182),A=w("match");h.exports=function(O){var k;return d(O)&&((k=O[A])!==void 0?!!k:x(O)=="RegExp")}},23236:(h,E,o)=>{var d=o(10150),x=o(16447),w=o(8902),A=o(50615),O=Object;h.exports=A?function(k){return typeof k=="symbol"}:function(k){var U=d("Symbol");return x(U)&&w(U.prototype,O(k))}},33442:(h,E,o)=>{var d=o(8043),x=o(18922),w=o(31138),A=o(79288),O=o(96109),k=o(84104),U=o(8902),Z=o(61669),re=o(78703),ue=o(66639),ne=TypeError,ie=function(P,$){this.stopped=P,this.result=$},Y=ie.prototype;h.exports=function(P,$,D){var C=D&&D.that,F=!!(D&&D.AS_ENTRIES),V=!!(D&&D.IS_RECORD),X=!!(D&&D.IS_ITERATOR),K=!!(D&&D.INTERRUPTED),W=d($,C),te,J,H,fe,he,_,Q,z=function(Ee){return te&&ue(te,"normal",Ee),new ie(!0,Ee)},ge=function(Ee){return F?(w(Ee),K?W(Ee[0],Ee[1],z):W(Ee[0],Ee[1])):K?W(Ee,z):W(Ee)};if(V)te=P.iterator;else if(X)te=P;else{if(J=re(P),!J)throw ne(A(P)+" is not iterable");if(O(J)){for(H=0,fe=k(P);fe>H;H++)if(he=ge(P[H]),he&&U(Y,he))return he;return new ie(!1)}te=Z(P,J)}for(_=V?P.next:te.next;!(Q=x(_,te)).done;){try{he=ge(Q.value)}catch(Ee){ue(te,"throw",Ee)}if(typeof he=="object"&&he&&U(Y,he))return he}return new ie(!1)}},66639:(h,E,o)=>{var d=o(18922),x=o(31138),w=o(75037);h.exports=function(A,O,k){var U,Z;x(A);try{if(U=w(A,"return"),!U){if(O==="throw")throw k;return k}U=d(U,A)}catch(re){Z=!0,U=re}if(O==="throw")throw k;if(Z)throw U;return x(U),k}},25695:(h,E,o)=>{"use strict";var d=o(54413).IteratorPrototype,x=o(52853),w=o(90774),A=o(11284),O=o(47771),k=function(){return this};h.exports=function(U,Z,re,ue){var ne=Z+" Iterator";return U.prototype=x(d,{next:w(+!ue,re)}),A(U,ne,!1,!0),O[ne]=k,U}},65297:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(85546),A=o(22282),O=o(16447),k=o(25695),U=o(89341),Z=o(24469),re=o(11284),ue=o(98711),ne=o(59362),ie=o(18182),Y=o(47771),P=o(54413),$=A.PROPER,D=A.CONFIGURABLE,C=P.IteratorPrototype,F=P.BUGGY_SAFARI_ITERATORS,V=ie("iterator"),X="keys",K="values",W="entries",te=function(){return this};h.exports=function(J,H,fe,he,_,Q,z){k(fe,H,he);var ge=function(Oe){if(Oe===_&&et)return et;if(!F&&Oe in ke)return ke[Oe];switch(Oe){case X:return function(){return new fe(this,Oe)};case K:return function(){return new fe(this,Oe)};case W:return function(){return new fe(this,Oe)}}return function(){return new fe(this)}},Ee=H+" Iterator",je=!1,ke=J.prototype,it=ke[V]||ke["@@iterator"]||_&&ke[_],et=!F&&it||ge(_),at=H=="Array"&&ke.entries||it,Tt,St,Le;if(at&&(Tt=U(at.call(new J)),Tt!==Object.prototype&&Tt.next&&(!w&&U(Tt)!==C&&(Z?Z(Tt,C):O(Tt[V])||ne(Tt,V,te)),re(Tt,Ee,!0,!0),w&&(Y[Ee]=te))),$&&_==K&&it&&it.name!==K&&(!w&&D?ue(ke,"name",K):(je=!0,et=function(){return x(it,this)})),_)if(St={values:ge(K),keys:Q?et:ge(X),entries:ge(W)},z)for(Le in St)(F||je||!(Le in ke))&&ne(ke,Le,St[Le]);else d({target:H,proto:!0,forced:F||je},St);return(!w||z)&&ke[V]!==et&&ne(ke,V,et,{name:_}),Y[H]=et,St}},54413:(h,E,o)=>{"use strict";var d=o(76192),x=o(16447),w=o(35744),A=o(52853),O=o(89341),k=o(59362),U=o(18182),Z=o(85546),re=U("iterator"),ue=!1,ne,ie,Y;[].keys&&(Y=[].keys(),"next"in Y?(ie=O(O(Y)),ie!==Object.prototype&&(ne=ie)):ue=!0);var P=!w(ne)||d(function(){var $={};return ne[re].call($)!==$});P?ne={}:Z&&(ne=A(ne)),x(ne[re])||k(ne,re,function(){return this}),h.exports={IteratorPrototype:ne,BUGGY_SAFARI_ITERATORS:ue}},47771:h=>{h.exports={}},84104:(h,E,o)=>{var d=o(8445);h.exports=function(x){return d(x.length)}},77679:h=>{var E=Math.ceil,o=Math.floor;h.exports=Math.trunc||function(x){var w=+x;return(w>0?o:E)(w)}},12950:(h,E,o)=>{var d=o(98576),x=o(8043),w=o(5141).f,A=o(67160).set,O=o(69536),k=o(29347),U=o(5914),Z=o(58189),re=d.MutationObserver||d.WebKitMutationObserver,ue=d.document,ne=d.process,ie=d.Promise,Y=w(d,"queueMicrotask"),P=Y&&Y.value,$,D,C,F,V,X,K,W;P||($=function(){var te,J;for(Z&&(te=ne.domain)&&te.exit();D;){J=D.fn,D=D.next;try{J()}catch(H){throw D?F():C=void 0,H}}C=void 0,te&&te.enter()},!O&&!Z&&!U&&re&&ue?(V=!0,X=ue.createTextNode(""),new re($).observe(X,{characterData:!0}),F=function(){X.data=V=!V}):!k&&ie&&ie.resolve?(K=ie.resolve(void 0),K.constructor=ie,W=x(K.then,K),F=function(){W($)}):Z?F=function(){ne.nextTick($)}:(A=x(A,d),F=function(){A($)})),h.exports=P||function(te){var J={fn:te,next:void 0};C&&(C.next=J),D||(D=J,F()),C=J}},99438:(h,E,o)=>{"use strict";var d=o(66235),x=TypeError,w=function(A){var O,k;this.promise=new A(function(U,Z){if(O!==void 0||k!==void 0)throw x("Bad Promise constructor");O=U,k=Z}),this.resolve=d(O),this.reject=d(k)};h.exports.f=function(A){return new w(A)}},36016:(h,E,o)=>{var d=o(44845);h.exports=function(x,w){return x===void 0?arguments.length<2?"":w:d(x)}},9703:(h,E,o)=>{var d=o(94352),x=TypeError;h.exports=function(w){if(d(w))throw x("The method doesn't accept regular expressions");return w}},52503:(h,E,o)=>{"use strict";var d=o(50069),x=o(84120),w=o(18922),A=o(76192),O=o(57653),k=o(84750),U=o(56007),Z=o(71795),re=o(2202),ue=Object.assign,ne=Object.defineProperty,ie=x([].concat);h.exports=!ue||A(function(){if(d&&ue({b:1},ue(ne({},"a",{enumerable:!0,get:function(){ne(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Y={},P={},$=Symbol(),D="abcdefghijklmnopqrst";return Y[$]=7,D.split("").forEach(function(C){P[C]=C}),ue({},Y)[$]!=7||O(ue({},P)).join("")!=D})?function(P,$){for(var D=Z(P),C=arguments.length,F=1,V=k.f,X=U.f;C>F;)for(var K=re(arguments[F++]),W=V?ie(O(K),V(K)):O(K),te=W.length,J=0,H;te>J;)H=W[J++],(!d||w(X,K,H))&&(D[H]=K[H]);return D}:ue},52853:(h,E,o)=>{var d=o(31138),x=o(11187),w=o(82952),A=o(14535),O=o(47403),k=o(67449),U=o(69766),Z=">",re="<",ue="prototype",ne="script",ie=U("IE_PROTO"),Y=function(){},P=function(V){return re+ne+Z+V+re+"/"+ne+Z},$=function(V){V.write(P("")),V.close();var X=V.parentWindow.Object;return V=null,X},D=function(){var V=k("iframe"),X="java"+ne+":",K;return V.style.display="none",O.appendChild(V),V.src=String(X),K=V.contentWindow.document,K.open(),K.write(P("document.F=Object")),K.close(),K.F},C,F=function(){try{C=new ActiveXObject("htmlfile")}catch(X){}F=typeof document!="undefined"?document.domain&&C?$(C):D():$(C);for(var V=w.length;V--;)delete F[ue][w[V]];return F()};A[ie]=!0,h.exports=Object.create||function(X,K){var W;return X!==null?(Y[ue]=d(X),W=new Y,Y[ue]=null,W[ie]=X):W=F(),K===void 0?W:x.f(W,K)}},11187:(h,E,o)=>{var d=o(50069),x=o(69600),w=o(42760),A=o(31138),O=o(20101),k=o(57653);E.f=d&&!x?Object.defineProperties:function(Z,re){A(Z);for(var ue=O(re),ne=k(re),ie=ne.length,Y=0,P;ie>Y;)w.f(Z,P=ne[Y++],ue[P]);return Z}},42760:(h,E,o)=>{var d=o(50069),x=o(80188),w=o(69600),A=o(31138),O=o(40077),k=TypeError,U=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,re="enumerable",ue="configurable",ne="writable";E.f=d?w?function(Y,P,$){if(A(Y),P=O(P),A($),typeof Y=="function"&&P==="prototype"&&"value"in $&&ne in $&&!$[ne]){var D=Z(Y,P);D&&D[ne]&&(Y[P]=$.value,$={configurable:ue in $?$[ue]:D[ue],enumerable:re in $?$[re]:D[re],writable:!1})}return U(Y,P,$)}:U:function(Y,P,$){if(A(Y),P=O(P),A($),x)try{return U(Y,P,$)}catch(D){}if("get"in $||"set"in $)throw k("Accessors not supported");return"value"in $&&(Y[P]=$.value),Y}},5141:(h,E,o)=>{var d=o(50069),x=o(18922),w=o(56007),A=o(90774),O=o(20101),k=o(40077),U=o(64500),Z=o(80188),re=Object.getOwnPropertyDescriptor;E.f=d?re:function(ne,ie){if(ne=O(ne),ie=k(ie),Z)try{return re(ne,ie)}catch(Y){}if(U(ne,ie))return A(!x(w.f,ne,ie),ne[ie])}},24052:(h,E,o)=>{var d=o(29272),x=o(20101),w=o(92092).f,A=o(1923),O=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],k=function(U){try{return w(U)}catch(Z){return A(O)}};h.exports.f=function(Z){return O&&d(Z)=="Window"?k(Z):w(x(Z))}},92092:(h,E,o)=>{var d=o(57934),x=o(82952),w=x.concat("length","prototype");E.f=Object.getOwnPropertyNames||function(O){return d(O,w)}},84750:(h,E)=>{E.f=Object.getOwnPropertySymbols},89341:(h,E,o)=>{var d=o(64500),x=o(16447),w=o(71795),A=o(69766),O=o(4635),k=A("IE_PROTO"),U=Object,Z=U.prototype;h.exports=O?U.getPrototypeOf:function(re){var ue=w(re);if(d(ue,k))return ue[k];var ne=ue.constructor;return x(ne)&&ue instanceof ne?ne.prototype:ue instanceof U?Z:null}},4532:(h,E,o)=>{var d=o(76192),x=o(35744),w=o(29272),A=o(80410),O=Object.isExtensible,k=d(function(){O(1)});h.exports=k||A?function(Z){return!x(Z)||A&&w(Z)=="ArrayBuffer"?!1:O?O(Z):!0}:O},8902:(h,E,o)=>{var d=o(84120);h.exports=d({}.isPrototypeOf)},57934:(h,E,o)=>{var d=o(84120),x=o(64500),w=o(20101),A=o(48180).indexOf,O=o(14535),k=d([].push);h.exports=function(U,Z){var re=w(U),ue=0,ne=[],ie;for(ie in re)!x(O,ie)&&x(re,ie)&&k(ne,ie);for(;Z.length>ue;)x(re,ie=Z[ue++])&&(~A(ne,ie)||k(ne,ie));return ne}},57653:(h,E,o)=>{var d=o(57934),x=o(82952);h.exports=Object.keys||function(A){return d(A,x)}},56007:(h,E)=>{"use strict";var o={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,x=d&&!o.call({1:2},1);E.f=x?function(A){var O=d(this,A);return!!O&&O.enumerable}:o},24469:(h,E,o)=>{var d=o(84120),x=o(31138),w=o(7757);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A=!1,O={},k;try{k=d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),k(O,[]),A=O instanceof Array}catch(U){}return function(Z,re){return x(Z),w(re),A?k(Z,re):Z.__proto__=re,Z}}():void 0)},75370:(h,E,o)=>{var d=o(50069),x=o(84120),w=o(57653),A=o(20101),O=o(56007).f,k=x(O),U=x([].push),Z=function(re){return function(ue){for(var ne=A(ue),ie=w(ne),Y=ie.length,P=0,$=[],D;Y>P;)D=ie[P++],(!d||k(ne,D))&&U($,re?[D,ne[D]]:ne[D]);return $}};h.exports={entries:Z(!0),values:Z(!1)}},40158:(h,E,o)=>{"use strict";var d=o(83471),x=o(4696);h.exports=d?{}.toString:function(){return"[object "+x(this)+"]"}},380:(h,E,o)=>{var d=o(18922),x=o(16447),w=o(35744),A=TypeError;h.exports=function(O,k){var U,Z;if(k==="string"&&x(U=O.toString)&&!w(Z=d(U,O))||x(U=O.valueOf)&&!w(Z=d(U,O))||k!=="string"&&x(U=O.toString)&&!w(Z=d(U,O)))return Z;throw A("Can't convert object to primitive value")}},93011:(h,E,o)=>{var d=o(10150),x=o(84120),w=o(92092),A=o(84750),O=o(31138),k=x([].concat);h.exports=d("Reflect","ownKeys")||function(Z){var re=w.f(O(Z)),ue=A.f;return ue?k(re,ue(Z)):re}},57545:h=>{h.exports={}},70892:h=>{h.exports=function(E){try{return{error:!1,value:E()}}catch(o){return{error:!0,value:o}}}},30511:(h,E,o)=>{var d=o(98576),x=o(15813),w=o(16447),A=o(89245),O=o(19516),k=o(18182),U=o(82957),Z=o(60659),re=o(85546),ue=o(14218),ne=x&&x.prototype,ie=k("species"),Y=!1,P=w(d.PromiseRejectionEvent),$=A("Promise",function(){var D=O(x),C=D!==String(x);if(!C&&ue===66||re&&!(ne.catch&&ne.finally))return!0;if(!ue||ue<51||!/native code/.test(D)){var F=new x(function(K){K(1)}),V=function(K){K(function(){},function(){})},X=F.constructor={};if(X[ie]=V,Y=F.then(function(){})instanceof V,!Y)return!0}return!C&&(U||Z)&&!P});h.exports={CONSTRUCTOR:$,REJECTION_EVENT:P,SUBCLASSING:Y}},15813:(h,E,o)=>{var d=o(98576);h.exports=d.Promise},19126:(h,E,o)=>{var d=o(31138),x=o(35744),w=o(99438);h.exports=function(A,O){if(d(A),x(O)&&O.constructor===A)return O;var k=w.f(A),U=k.resolve;return U(O),k.promise}},52775:(h,E,o)=>{var d=o(15813),x=o(19770),w=o(30511).CONSTRUCTOR;h.exports=w||!x(function(A){d.all(A).then(void 0,function(){})})},6412:h=>{var E=function(){this.head=null,this.tail=null};E.prototype={add:function(o){var d={item:o,next:null};this.head?this.tail.next=d:this.head=d,this.tail=d},get:function(){var o=this.head;if(o)return this.head=o.next,this.tail===o&&(this.tail=null),o.item}},h.exports=E},13209:(h,E,o)=>{var d=o(75646),x=TypeError;h.exports=function(w){if(d(w))throw x("Can't call method on "+w);return w}},63656:(h,E,o)=>{"use strict";var d=o(10150),x=o(42760),w=o(18182),A=o(50069),O=w("species");h.exports=function(k){var U=d(k),Z=x.f;A&&U&&!U[O]&&Z(U,O,{configurable:!0,get:function(){return this}})}},11284:(h,E,o)=>{var d=o(83471),x=o(42760).f,w=o(98711),A=o(64500),O=o(40158),k=o(18182),U=k("toStringTag");h.exports=function(Z,re,ue,ne){if(Z){var ie=ue?Z:Z.prototype;A(ie,U)||x(ie,U,{configurable:!0,value:re}),ne&&!d&&w(ie,"toString",O)}}},69766:(h,E,o)=>{var d=o(98717),x=o(42759),w=d("keys");h.exports=function(A){return w[A]||(w[A]=x(A))}},46434:(h,E,o)=>{var d=o(98576),x=o(65098),w="__core-js_shared__",A=d[w]||x(w,{});h.exports=A},98717:(h,E,o)=>{var d=o(85546),x=o(46434);(h.exports=function(w,A){return x[w]||(x[w]=A!==void 0?A:{})})("versions",[]).push({version:"3.27.1",mode:d?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"})},84743:(h,E,o)=>{var d=o(31138),x=o(71404),w=o(75646),A=o(18182),O=A("species");h.exports=function(k,U){var Z=d(k).constructor,re;return Z===void 0||w(re=d(Z)[O])?U:x(re)}},863:(h,E,o)=>{var d=o(84120),x=o(41941),w=o(44845),A=o(13209),O=d("".charAt),k=d("".charCodeAt),U=d("".slice),Z=function(re){return function(ue,ne){var ie=w(A(ue)),Y=x(ne),P=ie.length,$,D;return Y<0||Y>=P?re?"":void 0:($=k(ie,Y),$<55296||$>56319||Y+1===P||(D=k(ie,Y+1))<56320||D>57343?re?O(ie,Y):$:re?U(ie,Y,Y+2):($-55296<<10)+(D-56320)+65536)}};h.exports={codeAt:Z(!1),charAt:Z(!0)}},36770:(h,E,o)=>{var d=o(14218),x=o(76192);h.exports=!!Object.getOwnPropertySymbols&&!x(function(){var w=Symbol();return!String(w)||!(Object(w)instanceof Symbol)||!Symbol.sham&&d&&d<41})},93407:(h,E,o)=>{var d=o(18922),x=o(10150),w=o(18182),A=o(59362);h.exports=function(){var O=x("Symbol"),k=O&&O.prototype,U=k&&k.valueOf,Z=w("toPrimitive");k&&!k[Z]&&A(k,Z,function(re){return d(U,this)},{arity:1})}},20031:(h,E,o)=>{var d=o(36770);h.exports=d&&!!Symbol.for&&!!Symbol.keyFor},67160:(h,E,o)=>{var d=o(98576),x=o(86298),w=o(8043),A=o(16447),O=o(64500),k=o(76192),U=o(47403),Z=o(93096),re=o(67449),ue=o(67822),ne=o(69536),ie=o(58189),Y=d.setImmediate,P=d.clearImmediate,$=d.process,D=d.Dispatch,C=d.Function,F=d.MessageChannel,V=d.String,X=0,K={},W="onreadystatechange",te,J,H,fe;try{te=d.location}catch(ge){}var he=function(ge){if(O(K,ge)){var Ee=K[ge];delete K[ge],Ee()}},_=function(ge){return function(){he(ge)}},Q=function(ge){he(ge.data)},z=function(ge){d.postMessage(V(ge),te.protocol+"//"+te.host)};(!Y||!P)&&(Y=function(Ee){ue(arguments.length,1);var je=A(Ee)?Ee:C(Ee),ke=Z(arguments,1);return K[++X]=function(){x(je,void 0,ke)},J(X),X},P=function(Ee){delete K[Ee]},ie?J=function(ge){$.nextTick(_(ge))}:D&&D.now?J=function(ge){D.now(_(ge))}:F&&!ne?(H=new F,fe=H.port2,H.port1.onmessage=Q,J=w(fe.postMessage,fe)):d.addEventListener&&A(d.postMessage)&&!d.importScripts&&te&&te.protocol!=="file:"&&!k(z)?(J=z,d.addEventListener("message",Q,!1)):W in re("script")?J=function(ge){U.appendChild(re("script"))[W]=function(){U.removeChild(this),he(ge)}}:J=function(ge){setTimeout(_(ge),0)}),h.exports={set:Y,clear:P}},97739:(h,E,o)=>{var d=o(41941),x=Math.max,w=Math.min;h.exports=function(A,O){var k=d(A);return k<0?x(k+O,0):w(k,O)}},20101:(h,E,o)=>{var d=o(2202),x=o(13209);h.exports=function(w){return d(x(w))}},41941:(h,E,o)=>{var d=o(77679);h.exports=function(x){var w=+x;return w!==w||w===0?0:d(w)}},8445:(h,E,o)=>{var d=o(41941),x=Math.min;h.exports=function(w){return w>0?x(d(w),9007199254740991):0}},71795:(h,E,o)=>{var d=o(13209),x=Object;h.exports=function(w){return x(d(w))}},97888:(h,E,o)=>{var d=o(18922),x=o(35744),w=o(23236),A=o(75037),O=o(380),k=o(18182),U=TypeError,Z=k("toPrimitive");h.exports=function(re,ue){if(!x(re)||w(re))return re;var ne=A(re,Z),ie;if(ne){if(ue===void 0&&(ue="default"),ie=d(ne,re,ue),!x(ie)||w(ie))return ie;throw U("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),O(re,ue)}},40077:(h,E,o)=>{var d=o(97888),x=o(23236);h.exports=function(w){var A=d(w,"string");return x(A)?A:A+""}},83471:(h,E,o)=>{var d=o(18182),x=d("toStringTag"),w={};w[x]="z",h.exports=String(w)==="[object z]"},44845:(h,E,o)=>{var d=o(4696),x=String;h.exports=function(w){if(d(w)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return x(w)}},79288:h=>{var E=String;h.exports=function(o){try{return E(o)}catch(d){return"Object"}}},42759:(h,E,o)=>{var d=o(84120),x=0,w=Math.random(),A=d(1 .toString);h.exports=function(O){return"Symbol("+(O===void 0?"":O)+")_"+A(++x+w,36)}},58552:(h,E,o)=>{var d=o(76192),x=o(18182),w=o(85546),A=x("iterator");h.exports=!d(function(){var O=new URL("b?a=1&b=2&c=3","http://a"),k=O.searchParams,U="";return O.pathname="c%20d",k.forEach(function(Z,re){k.delete("b"),U+=re+Z}),w&&!O.toJSON||!k.sort||O.href!=="http://a/c%20d?a=1&c=3"||k.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!k[A]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||U!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50615:(h,E,o)=>{var d=o(36770);h.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},69600:(h,E,o)=>{var d=o(50069),x=o(76192);h.exports=d&&x(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},67822:h=>{var E=TypeError;h.exports=function(o,d){if(o<d)throw E("Not enough arguments");return o}},55278:(h,E,o)=>{var d=o(98576),x=o(16447),w=d.WeakMap;h.exports=x(w)&&/native code/.test(String(w))},48332:(h,E,o)=>{var d=o(57545),x=o(64500),w=o(89207),A=o(42760).f;h.exports=function(O){var k=d.Symbol||(d.Symbol={});x(k,O)||A(k,O,{value:w.f(O)})}},89207:(h,E,o)=>{var d=o(18182);E.f=d},18182:(h,E,o)=>{var d=o(98576),x=o(98717),w=o(64500),A=o(42759),O=o(36770),k=o(50615),U=x("wks"),Z=d.Symbol,re=Z&&Z.for,ue=k?Z:Z&&Z.withoutSetter||A;h.exports=function(ne){if(!w(U,ne)||!(O||typeof U[ne]=="string")){var ie="Symbol."+ne;O&&w(Z,ne)?U[ne]=Z[ne]:k&&re?U[ne]=re(ie):U[ne]=ue(ie)}return U[ne]}},93820:(h,E,o)=>{"use strict";var d=o(93085),x=o(8902),w=o(89341),A=o(24469),O=o(97987),k=o(52853),U=o(98711),Z=o(90774),re=o(14503),ue=o(10273),ne=o(33442),ie=o(36016),Y=o(18182),P=o(50274),$=Y("toStringTag"),D=Error,C=[].push,F=function(K,W){var te=arguments.length>2?arguments[2]:void 0,J=x(V,this),H;A?H=A(D(),J?w(this):V):(H=J?this:k(V),U(H,$,"Error")),W!==void 0&&U(H,"message",ie(W)),P&&U(H,"stack",re(H.stack,1)),ue(H,te);var fe=[];return ne(K,C,{that:fe}),U(H,"errors",fe),H};A?A(F,D):O(F,D,{name:!0});var V=F.prototype=k(D.prototype,{constructor:Z(1,F),message:Z(1,""),name:Z(1,"AggregateError")});d({global:!0,constructor:!0,arity:2},{AggregateError:F})},4242:(h,E,o)=>{o(93820)},59106:(h,E,o)=>{"use strict";var d=o(93085),x=o(76192),w=o(34770),A=o(35744),O=o(71795),k=o(84104),U=o(29425),Z=o(49361),re=o(71321),ue=o(90242),ne=o(18182),ie=o(14218),Y=ne("isConcatSpreadable"),P=ie>=51||!x(function(){var F=[];return F[Y]=!1,F.concat()[0]!==F}),$=ue("concat"),D=function(F){if(!A(F))return!1;var V=F[Y];return V!==void 0?!!V:w(F)},C=!P||!$;d({target:"Array",proto:!0,arity:1,forced:C},{concat:function(V){var X=O(this),K=re(X,0),W=0,te,J,H,fe,he;for(te=-1,H=arguments.length;te<H;te++)if(he=te===-1?X:arguments[te],D(he))for(fe=k(he),U(W+fe),J=0;J<fe;J++,W++)J in he&&Z(K,W,he[J]);else U(W+1),Z(K,W++,he);return K.length=W,K}})},73436:(h,E,o)=>{"use strict";var d=o(93085),x=o(50454).filter,w=o(90242),A=w("filter");d({target:"Array",proto:!0,forced:!A},{filter:function(k){return x(this,k,arguments.length>1?arguments[1]:void 0)}})},10880:(h,E,o)=>{"use strict";var d=o(93085),x=o(50454).find,w=o(67423),A="find",O=!0;A in[]&&Array(1)[A](function(){O=!1}),d({target:"Array",proto:!0,forced:O},{find:function(U){return x(this,U,arguments.length>1?arguments[1]:void 0)}}),w(A)},9823:(h,E,o)=>{"use strict";var d=o(93085),x=o(87397);d({target:"Array",proto:!0,forced:[].forEach!=x},{forEach:x})},19173:(h,E,o)=>{var d=o(93085),x=o(20841),w=o(19770),A=!w(function(O){Array.from(O)});d({target:"Array",stat:!0,forced:A},{from:x})},70024:(h,E,o)=>{"use strict";var d=o(93085),x=o(48180).includes,w=o(76192),A=o(67423),O=w(function(){return!Array(1).includes()});d({target:"Array",proto:!0,forced:O},{includes:function(U){return x(this,U,arguments.length>1?arguments[1]:void 0)}}),A("includes")},62276:(h,E,o)=>{"use strict";var d=o(93085),x=o(14914),w=o(48180).indexOf,A=o(10424),O=x([].indexOf),k=!!O&&1/O([1],1,-0)<0,U=A("indexOf");d({target:"Array",proto:!0,forced:k||!U},{indexOf:function(re){var ue=arguments.length>1?arguments[1]:void 0;return k?O(this,re,ue)||0:w(this,re,ue)}})},8118:(h,E,o)=>{var d=o(93085),x=o(34770);d({target:"Array",stat:!0},{isArray:x})},98939:(h,E,o)=>{"use strict";var d=o(20101),x=o(67423),w=o(47771),A=o(73326),O=o(42760).f,k=o(65297),U=o(87271),Z=o(85546),re=o(50069),ue="Array Iterator",ne=A.set,ie=A.getterFor(ue);h.exports=k(Array,"Array",function(P,$){ne(this,{type:ue,target:d(P),index:0,kind:$})},function(){var P=ie(this),$=P.target,D=P.kind,C=P.index++;return!$||C>=$.length?(P.target=void 0,U(void 0,!0)):D=="keys"?U(C,!1):D=="values"?U($[C],!1):U([C,$[C]],!1)},"values");var Y=w.Arguments=w.Array;if(x("keys"),x("values"),x("entries"),!Z&&re&&Y.name!=="values")try{O(Y,"name",{value:"values"})}catch(P){}},63838:(h,E,o)=>{"use strict";var d=o(93085),x=o(50454).map,w=o(90242),A=w("map");d({target:"Array",proto:!0,forced:!A},{map:function(k){return x(this,k,arguments.length>1?arguments[1]:void 0)}})},99523:(h,E,o)=>{"use strict";var d=o(93085),x=o(84120),w=o(34770),A=x([].reverse),O=[1,2];d({target:"Array",proto:!0,forced:String(O)===String(O.reverse())},{reverse:function(){return w(this)&&(this.length=this.length),A(this)}})},65818:(h,E,o)=>{"use strict";var d=o(93085),x=o(34770),w=o(22091),A=o(35744),O=o(97739),k=o(84104),U=o(20101),Z=o(49361),re=o(18182),ue=o(90242),ne=o(93096),ie=ue("slice"),Y=re("species"),P=Array,$=Math.max;d({target:"Array",proto:!0,forced:!ie},{slice:function(C,F){var V=U(this),X=k(V),K=O(C,X),W=O(F===void 0?X:F,X),te,J,H;if(x(V)&&(te=V.constructor,w(te)&&(te===P||x(te.prototype))?te=void 0:A(te)&&(te=te[Y],te===null&&(te=void 0)),te===P||te===void 0))return ne(V,K,W);for(J=new(te===void 0?P:te)($(W-K,0)),H=0;K<W;K++,H++)K in V&&Z(J,H,V[K]);return J.length=H,J}})},12178:(h,E,o)=>{"use strict";var d=o(93085),x=o(71795),w=o(97739),A=o(41941),O=o(84104),k=o(95072),U=o(29425),Z=o(71321),re=o(49361),ue=o(29970),ne=o(90242),ie=ne("splice"),Y=Math.max,P=Math.min;d({target:"Array",proto:!0,forced:!ie},{splice:function(D,C){var F=x(this),V=O(F),X=w(D,V),K=arguments.length,W,te,J,H,fe,he;for(K===0?W=te=0:K===1?(W=0,te=V-X):(W=K-2,te=P(Y(A(C),0),V-X)),U(V+W-te),J=Z(F,te),H=0;H<te;H++)fe=X+H,fe in F&&re(J,H,F[fe]);if(J.length=te,W<te){for(H=X;H<V-te;H++)fe=H+te,he=H+W,fe in F?F[he]=F[fe]:ue(F,he);for(H=V;H>V-te+W;H--)ue(F,H-1)}else if(W>te)for(H=V-te;H>X;H--)fe=H+te-1,he=H+W-1,fe in F?F[he]=F[fe]:ue(F,he);for(H=0;H<W;H++)F[H+X]=arguments[H+2];return k(F,V-te+W),J}})},12432:()=>{},25067:(h,E,o)=>{var d=o(93085),x=o(98576);d({global:!0,forced:x.globalThis!==x},{globalThis:x})},59704:(h,E,o)=>{var d=o(93085),x=o(10150),w=o(86298),A=o(18922),O=o(84120),k=o(76192),U=o(34770),Z=o(16447),re=o(35744),ue=o(23236),ne=o(93096),ie=o(36770),Y=x("JSON","stringify"),P=O(/./.exec),$=O("".charAt),D=O("".charCodeAt),C=O("".replace),F=O(1 .toString),V=/[\uD800-\uDFFF]/g,X=/^[\uD800-\uDBFF]$/,K=/^[\uDC00-\uDFFF]$/,W=!ie||k(function(){var fe=x("Symbol")();return Y([fe])!="[null]"||Y({a:fe})!="{}"||Y(Object(fe))!="{}"}),te=k(function(){return Y("\uDF06\uD834")!=='"\\udf06\\ud834"'||Y("\uDEAD")!=='"\\udead"'}),J=function(fe,he){var _=ne(arguments),Q=he;if(!(!re(he)&&fe===void 0||ue(fe)))return U(he)||(he=function(z,ge){if(Z(Q)&&(ge=A(Q,this,z,ge)),!ue(ge))return ge}),_[1]=he,w(Y,null,_)},H=function(fe,he,_){var Q=$(_,he-1),z=$(_,he+1);return P(X,fe)&&!P(K,z)||P(K,fe)&&!P(X,Q)?"\\u"+F(D(fe,0),16):fe};Y&&d({target:"JSON",stat:!0,arity:3,forced:W||te},{stringify:function(he,_,Q){var z=ne(arguments),ge=w(W?J:Y,null,z);return te&&typeof ge=="string"?C(ge,V,H):ge}})},68671:(h,E,o)=>{var d=o(98576),x=o(11284);x(d.JSON,"JSON",!0)},58556:()=>{},93582:(h,E,o)=>{var d=o(93085),x=o(52503);d({target:"Object",stat:!0,arity:2,forced:Object.assign!==x},{assign:x})},73113:(h,E,o)=>{var d=o(93085),x=o(50069),w=o(52853);d({target:"Object",stat:!0,sham:!x},{create:w})},57585:(h,E,o)=>{var d=o(93085),x=o(50069),w=o(11187).f;d({target:"Object",stat:!0,forced:Object.defineProperties!==w,sham:!x},{defineProperties:w})},20297:(h,E,o)=>{var d=o(93085),x=o(50069),w=o(42760).f;d({target:"Object",stat:!0,forced:Object.defineProperty!==w,sham:!x},{defineProperty:w})},27442:(h,E,o)=>{var d=o(93085),x=o(75370).entries;d({target:"Object",stat:!0},{entries:function(A){return x(A)}})},89189:(h,E,o)=>{var d=o(93085),x=o(76192),w=o(20101),A=o(5141).f,O=o(50069),k=x(function(){A(1)}),U=!O||k;d({target:"Object",stat:!0,forced:U,sham:!O},{getOwnPropertyDescriptor:function(re,ue){return A(w(re),ue)}})},62509:(h,E,o)=>{var d=o(93085),x=o(50069),w=o(93011),A=o(20101),O=o(5141),k=o(49361);d({target:"Object",stat:!0,sham:!x},{getOwnPropertyDescriptors:function(Z){for(var re=A(Z),ue=O.f,ne=w(re),ie={},Y=0,P,$;ne.length>Y;)$=ue(re,P=ne[Y++]),$!==void 0&&k(ie,P,$);return ie}})},17895:(h,E,o)=>{var d=o(93085),x=o(36770),w=o(76192),A=o(84750),O=o(71795),k=!x||w(function(){A.f(1)});d({target:"Object",stat:!0,forced:k},{getOwnPropertySymbols:function(Z){var re=A.f;return re?re(O(Z)):[]}})},19234:(h,E,o)=>{var d=o(93085),x=o(76192),w=o(71795),A=o(89341),O=o(4635),k=x(function(){A(1)});d({target:"Object",stat:!0,forced:k,sham:!O},{getPrototypeOf:function(Z){return A(w(Z))}})},92647:(h,E,o)=>{var d=o(93085),x=o(71795),w=o(57653),A=o(76192),O=A(function(){w(1)});d({target:"Object",stat:!0,forced:O},{keys:function(U){return w(x(U))}})},13222:(h,E,o)=>{var d=o(93085),x=o(24469);d({target:"Object",stat:!0},{setPrototypeOf:x})},46663:()=>{},97884:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),A=o(99438),O=o(70892),k=o(33442);d({target:"Promise",stat:!0},{allSettled:function(Z){var re=this,ue=A.f(re),ne=ue.resolve,ie=ue.reject,Y=O(function(){var P=w(re.resolve),$=[],D=0,C=1;k(Z,function(F){var V=D++,X=!1;C++,x(P,re,F).then(function(K){X||(X=!0,$[V]={status:"fulfilled",value:K},--C||ne($))},function(K){X||(X=!0,$[V]={status:"rejected",reason:K},--C||ne($))})}),--C||ne($)});return Y.error&&ie(Y.value),ue.promise}})},89701:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),A=o(99438),O=o(70892),k=o(33442),U=o(52775);d({target:"Promise",stat:!0,forced:U},{all:function(re){var ue=this,ne=A.f(ue),ie=ne.resolve,Y=ne.reject,P=O(function(){var $=w(ue.resolve),D=[],C=0,F=1;k(re,function(V){var X=C++,K=!1;F++,x($,ue,V).then(function(W){K||(K=!0,D[X]=W,--F||ie(D))},Y)}),--F||ie(D)});return P.error&&Y(P.value),ne.promise}})},78885:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),A=o(10150),O=o(99438),k=o(70892),U=o(33442),Z="No one promise resolved";d({target:"Promise",stat:!0},{any:function(ue){var ne=this,ie=A("AggregateError"),Y=O.f(ne),P=Y.resolve,$=Y.reject,D=k(function(){var C=w(ne.resolve),F=[],V=0,X=1,K=!1;U(ue,function(W){var te=V++,J=!1;X++,x(C,ne,W).then(function(H){J||K||(K=!0,P(H))},function(H){J||K||(J=!0,F[te]=H,--X||$(new ie(F,Z)))})}),--X||$(new ie(F,Z))});return D.error&&$(D.value),Y.promise}})},34025:(h,E,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(30511).CONSTRUCTOR,A=o(15813),O=o(10150),k=o(16447),U=o(59362),Z=A&&A.prototype;if(d({target:"Promise",proto:!0,forced:w,real:!0},{catch:function(ue){return this.then(void 0,ue)}}),!x&&k(A)){var re=O("Promise").prototype.catch;Z.catch!==re&&U(Z,"catch",re,{unsafe:!0})}},60268:(h,E,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(58189),A=o(98576),O=o(18922),k=o(59362),U=o(24469),Z=o(11284),re=o(63656),ue=o(66235),ne=o(16447),ie=o(35744),Y=o(46961),P=o(84743),$=o(67160).set,D=o(12950),C=o(63681),F=o(70892),V=o(6412),X=o(73326),K=o(15813),W=o(30511),te=o(99438),J="Promise",H=W.CONSTRUCTOR,fe=W.REJECTION_EVENT,he=W.SUBCLASSING,_=X.getterFor(J),Q=X.set,z=K&&K.prototype,ge=K,Ee=z,je=A.TypeError,ke=A.document,it=A.process,et=te.f,at=et,Tt=!!(ke&&ke.createEvent&&A.dispatchEvent),St="unhandledrejection",Le="rejectionhandled",Oe=0,be=1,De=2,Ge=1,tt=2,Ze,bt,Et,Xt,zt=function($e){var yt;return ie($e)&&ne(yt=$e.then)?yt:!1},nt=function($e,yt){var Lt=yt.value,wt=yt.state==be,Ft=wt?$e.ok:$e.fail,dt=$e.resolve,vt=$e.reject,Pt=$e.domain,ot,Ve,ce;try{Ft?(wt||(yt.rejection===tt&&_e(yt),yt.rejection=Ge),Ft===!0?ot=Lt:(Pt&&Pt.enter(),ot=Ft(Lt),Pt&&(Pt.exit(),ce=!0)),ot===$e.promise?vt(je("Promise-chain cycle")):(Ve=zt(ot))?O(Ve,ot,dt,vt):dt(ot)):vt(Lt)}catch(xe){Pt&&!ce&&Pt.exit(),vt(xe)}},Xe=function($e,yt){$e.notified||($e.notified=!0,D(function(){for(var Lt=$e.reactions,wt;wt=Lt.get();)nt(wt,$e);$e.notified=!1,yt&&!$e.rejection&&Rt($e)}))},er=function($e,yt,Lt){var wt,Ft;Tt?(wt=ke.createEvent("Event"),wt.promise=yt,wt.reason=Lt,wt.initEvent($e,!1,!0),A.dispatchEvent(wt)):wt={promise:yt,reason:Lt},!fe&&(Ft=A["on"+$e])?Ft(wt):$e===St&&C("Unhandled promise rejection",Lt)},Rt=function($e){O($,A,function(){var yt=$e.facade,Lt=$e.value,wt=Rr($e),Ft;if(wt&&(Ft=F(function(){w?it.emit("unhandledRejection",Lt,yt):er(St,yt,Lt)}),$e.rejection=w||Rr($e)?tt:Ge,Ft.error))throw Ft.value})},Rr=function($e){return $e.rejection!==Ge&&!$e.parent},_e=function($e){O($,A,function(){var yt=$e.facade;w?it.emit("rejectionHandled",yt):er(Le,yt,$e.value)})},Mr=function($e,yt,Lt){return function(wt){$e(yt,wt,Lt)}},Ar=function($e,yt,Lt){$e.done||($e.done=!0,Lt&&($e=Lt),$e.value=yt,$e.state=De,Xe($e,!0))},en=function($e,yt,Lt){if(!$e.done){$e.done=!0,Lt&&($e=Lt);try{if($e.facade===yt)throw je("Promise can't be resolved itself");var wt=zt(yt);wt?D(function(){var Ft={done:!1};try{O(wt,yt,Mr(en,Ft,$e),Mr(Ar,Ft,$e))}catch(dt){Ar(Ft,dt,$e)}}):($e.value=yt,$e.state=be,Xe($e,!1))}catch(Ft){Ar({done:!1},Ft,$e)}}};if(H&&(ge=function(yt){Y(this,Ee),ue(yt),O(Ze,this);var Lt=_(this);try{yt(Mr(en,Lt),Mr(Ar,Lt))}catch(wt){Ar(Lt,wt)}},Ee=ge.prototype,Ze=function(yt){Q(this,{type:J,done:!1,notified:!1,parent:!1,reactions:new V,rejection:!1,state:Oe,value:void 0})},Ze.prototype=k(Ee,"then",function(yt,Lt){var wt=_(this),Ft=et(P(this,ge));return wt.parent=!0,Ft.ok=ne(yt)?yt:!0,Ft.fail=ne(Lt)&&Lt,Ft.domain=w?it.domain:void 0,wt.state==Oe?wt.reactions.add(Ft):D(function(){nt(Ft,wt)}),Ft.promise}),bt=function(){var $e=new Ze,yt=_($e);this.promise=$e,this.resolve=Mr(en,yt),this.reject=Mr(Ar,yt)},te.f=et=function($e){return $e===ge||$e===Et?new bt($e):at($e)},!x&&ne(K)&&z!==Object.prototype)){Xt=z.then,he||k(z,"then",function(yt,Lt){var wt=this;return new ge(function(Ft,dt){O(Xt,wt,Ft,dt)}).then(yt,Lt)},{unsafe:!0});try{delete z.constructor}catch($e){}U&&U(z,Ee)}d({global:!0,constructor:!0,wrap:!0,forced:H},{Promise:ge}),Z(ge,J,!1,!0),re(J)},91868:(h,E,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(15813),A=o(76192),O=o(10150),k=o(16447),U=o(84743),Z=o(19126),re=o(59362),ue=w&&w.prototype,ne=!!w&&A(function(){ue.finally.call({then:function(){}},function(){})});if(d({target:"Promise",proto:!0,real:!0,forced:ne},{finally:function(Y){var P=U(this,O("Promise")),$=k(Y);return this.then($?function(D){return Z(P,Y()).then(function(){return D})}:Y,$?function(D){return Z(P,Y()).then(function(){throw D})}:Y)}}),!x&&k(w)){var ie=O("Promise").prototype.finally;ue.finally!==ie&&re(ue,"finally",ie,{unsafe:!0})}},59021:(h,E,o)=>{o(60268),o(89701),o(34025),o(67196),o(85873),o(22931)},67196:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),A=o(99438),O=o(70892),k=o(33442),U=o(52775);d({target:"Promise",stat:!0,forced:U},{race:function(re){var ue=this,ne=A.f(ue),ie=ne.reject,Y=O(function(){var P=w(ue.resolve);k(re,function($){x(P,ue,$).then(ne.resolve,ie)})});return Y.error&&ie(Y.value),ne.promise}})},85873:(h,E,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(99438),A=o(30511).CONSTRUCTOR;d({target:"Promise",stat:!0,forced:A},{reject:function(k){var U=w.f(this);return x(U.reject,void 0,k),U.promise}})},22931:(h,E,o)=>{"use strict";var d=o(93085),x=o(10150),w=o(85546),A=o(15813),O=o(30511).CONSTRUCTOR,k=o(19126),U=x("Promise"),Z=w&&!O;d({target:"Promise",stat:!0,forced:w||O},{resolve:function(ue){return k(Z&&this===U?A:this,ue)}})},71367:()=>{},39247:(h,E,o)=>{"use strict";var d=o(93085),x=o(84120),w=o(9703),A=o(13209),O=o(44845),k=o(83519),U=x("".indexOf);d({target:"String",proto:!0,forced:!k("includes")},{includes:function(re){return!!~U(O(A(this)),O(w(re)),arguments.length>1?arguments[1]:void 0)}})},5454:(h,E,o)=>{"use strict";var d=o(863).charAt,x=o(44845),w=o(73326),A=o(65297),O=o(87271),k="String Iterator",U=w.set,Z=w.getterFor(k);A(String,"String",function(re){U(this,{type:k,string:x(re),index:0})},function(){var ue=Z(this),ne=ue.string,ie=ue.index,Y;return ie>=ne.length?O(void 0,!0):(Y=d(ne,ie),ue.index+=Y.length,O(Y,!1))})},32991:(h,E,o)=>{"use strict";var d=o(93085),x=o(14914),w=o(5141).f,A=o(8445),O=o(44845),k=o(9703),U=o(13209),Z=o(83519),re=o(85546),ue=x("".startsWith),ne=x("".slice),ie=Math.min,Y=Z("startsWith"),P=!re&&!Y&&!!function(){var $=w(String.prototype,"startsWith");return $&&!$.writable}();d({target:"String",proto:!0,forced:!P&&!Y},{startsWith:function(D){var C=O(U(this));k(D);var F=A(ie(arguments.length>1?arguments[1]:void 0,C.length)),V=O(D);return ue?ue(C,V,F):ne(C,F,F+V.length)===V}})},19781:(h,E,o)=>{var d=o(48332);d("asyncIterator")},49351:(h,E,o)=>{"use strict";var d=o(93085),x=o(98576),w=o(18922),A=o(84120),O=o(85546),k=o(50069),U=o(36770),Z=o(76192),re=o(64500),ue=o(8902),ne=o(31138),ie=o(20101),Y=o(40077),P=o(44845),$=o(90774),D=o(52853),C=o(57653),F=o(92092),V=o(24052),X=o(84750),K=o(5141),W=o(42760),te=o(11187),J=o(56007),H=o(59362),fe=o(98717),he=o(69766),_=o(14535),Q=o(42759),z=o(18182),ge=o(89207),Ee=o(48332),je=o(93407),ke=o(11284),it=o(73326),et=o(50454).forEach,at=he("hidden"),Tt="Symbol",St="prototype",Le=it.set,Oe=it.getterFor(Tt),be=Object[St],De=x.Symbol,Ge=De&&De[St],tt=x.TypeError,Ze=x.QObject,bt=K.f,Et=W.f,Xt=V.f,zt=J.f,nt=A([].push),Xe=fe("symbols"),er=fe("op-symbols"),Rt=fe("wks"),Rr=!Ze||!Ze[St]||!Ze[St].findChild,_e=k&&Z(function(){return D(Et({},"a",{get:function(){return Et(this,"a",{value:7}).a}})).a!=7})?function(dt,vt,Pt){var ot=bt(be,vt);ot&&delete be[vt],Et(dt,vt,Pt),ot&&dt!==be&&Et(be,vt,ot)}:Et,Mr=function(dt,vt){var Pt=Xe[dt]=D(Ge);return Le(Pt,{type:Tt,tag:dt,description:vt}),k||(Pt.description=vt),Pt},Ar=function(vt,Pt,ot){vt===be&&Ar(er,Pt,ot),ne(vt);var Ve=Y(Pt);return ne(ot),re(Xe,Ve)?(ot.enumerable?(re(vt,at)&&vt[at][Ve]&&(vt[at][Ve]=!1),ot=D(ot,{enumerable:$(0,!1)})):(re(vt,at)||Et(vt,at,$(1,{})),vt[at][Ve]=!0),_e(vt,Ve,ot)):Et(vt,Ve,ot)},en=function(vt,Pt){ne(vt);var ot=ie(Pt),Ve=C(ot).concat(Ft(ot));return et(Ve,function(ce){(!k||w(yt,ot,ce))&&Ar(vt,ce,ot[ce])}),vt},$e=function(vt,Pt){return Pt===void 0?D(vt):en(D(vt),Pt)},yt=function(vt){var Pt=Y(vt),ot=w(zt,this,Pt);return this===be&&re(Xe,Pt)&&!re(er,Pt)?!1:ot||!re(this,Pt)||!re(Xe,Pt)||re(this,at)&&this[at][Pt]?ot:!0},Lt=function(vt,Pt){var ot=ie(vt),Ve=Y(Pt);if(!(ot===be&&re(Xe,Ve)&&!re(er,Ve))){var ce=bt(ot,Ve);return ce&&re(Xe,Ve)&&!(re(ot,at)&&ot[at][Ve])&&(ce.enumerable=!0),ce}},wt=function(vt){var Pt=Xt(ie(vt)),ot=[];return et(Pt,function(Ve){!re(Xe,Ve)&&!re(_,Ve)&&nt(ot,Ve)}),ot},Ft=function(dt){var vt=dt===be,Pt=Xt(vt?er:ie(dt)),ot=[];return et(Pt,function(Ve){re(Xe,Ve)&&(!vt||re(be,Ve))&&nt(ot,Xe[Ve])}),ot};U||(De=function(){if(ue(Ge,this))throw tt("Symbol is not a constructor");var vt=!arguments.length||arguments[0]===void 0?void 0:P(arguments[0]),Pt=Q(vt),ot=function(Ve){this===be&&w(ot,er,Ve),re(this,at)&&re(this[at],Pt)&&(this[at][Pt]=!1),_e(this,Pt,$(1,Ve))};return k&&Rr&&_e(be,Pt,{configurable:!0,set:ot}),Mr(Pt,vt)},Ge=De[St],H(Ge,"toString",function(){return Oe(this).tag}),H(De,"withoutSetter",function(dt){return Mr(Q(dt),dt)}),J.f=yt,W.f=Ar,te.f=en,K.f=Lt,F.f=V.f=wt,X.f=Ft,ge.f=function(dt){return Mr(z(dt),dt)},k&&(Et(Ge,"description",{configurable:!0,get:function(){return Oe(this).description}}),O||H(be,"propertyIsEnumerable",yt,{unsafe:!0}))),d({global:!0,constructor:!0,wrap:!0,forced:!U,sham:!U},{Symbol:De}),et(C(Rt),function(dt){Ee(dt)}),d({target:Tt,stat:!0,forced:!U},{useSetter:function(){Rr=!0},useSimple:function(){Rr=!1}}),d({target:"Object",stat:!0,forced:!U,sham:!k},{create:$e,defineProperty:Ar,defineProperties:en,getOwnPropertyDescriptor:Lt}),d({target:"Object",stat:!0,forced:!U},{getOwnPropertyNames:wt}),je(),ke(De,Tt),_[at]=!0},50492:()=>{},19148:(h,E,o)=>{var d=o(93085),x=o(10150),w=o(64500),A=o(44845),O=o(98717),k=o(20031),U=O("string-to-symbol-registry"),Z=O("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!k},{for:function(re){var ue=A(re);if(w(U,ue))return U[ue];var ne=x("Symbol")(ue);return U[ue]=ne,Z[ne]=ue,ne}})},66681:(h,E,o)=>{var d=o(48332);d("hasInstance")},29594:(h,E,o)=>{var d=o(48332);d("isConcatSpreadable")},63665:(h,E,o)=>{var d=o(48332);d("iterator")},36187:(h,E,o)=>{o(49351),o(19148),o(15991),o(59704),o(17895)},15991:(h,E,o)=>{var d=o(93085),x=o(64500),w=o(23236),A=o(79288),O=o(98717),k=o(20031),U=O("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!k},{keyFor:function(re){if(!w(re))throw TypeError(A(re)+" is not a symbol");if(x(U,re))return U[re]}})},11250:(h,E,o)=>{var d=o(48332);d("matchAll")},29017:(h,E,o)=>{var d=o(48332);d("match")},79786:(h,E,o)=>{var d=o(48332);d("replace")},90503:(h,E,o)=>{var d=o(48332);d("search")},16565:(h,E,o)=>{var d=o(48332);d("species")},69322:(h,E,o)=>{var d=o(48332);d("split")},13610:(h,E,o)=>{var d=o(48332),x=o(93407);d("toPrimitive"),x()},36886:(h,E,o)=>{var d=o(10150),x=o(48332),w=o(11284);x("toStringTag"),w(d("Symbol"),"Symbol")},33514:(h,E,o)=>{var d=o(48332);d("unscopables")},10572:(h,E,o)=>{"use strict";var d=o(47636),x=o(98576),w=o(84120),A=o(35090),O=o(32861),k=o(34535),U=o(51057),Z=o(35744),re=o(73326).enforce,ue=o(76192),ne=o(55278),ie=Object,Y=Array.isArray,P=ie.isExtensible,$=ie.isFrozen,D=ie.isSealed,C=ie.freeze,F=ie.seal,V={},X={},K=!x.ActiveXObject&&"ActiveXObject"in x,W,te=function(ge){return function(){return ge(this,arguments.length?arguments[0]:void 0)}},J=k("WeakMap",te,U),H=J.prototype,fe=w(H.set),he=function(){return d&&ue(function(){var ge=C([]);return fe(new J,ge,1),!$(ge)})};if(ne)if(K){W=U.getConstructor(te,"WeakMap",!0),O.enable();var _=w(H.delete),Q=w(H.has),z=w(H.get);A(H,{delete:function(ge){if(Z(ge)&&!P(ge)){var Ee=re(this);return Ee.frozen||(Ee.frozen=new W),_(this,ge)||Ee.frozen.delete(ge)}return _(this,ge)},has:function(Ee){if(Z(Ee)&&!P(Ee)){var je=re(this);return je.frozen||(je.frozen=new W),Q(this,Ee)||je.frozen.has(Ee)}return Q(this,Ee)},get:function(Ee){if(Z(Ee)&&!P(Ee)){var je=re(this);return je.frozen||(je.frozen=new W),Q(this,Ee)?z(this,Ee):je.frozen.get(Ee)}return z(this,Ee)},set:function(Ee,je){if(Z(Ee)&&!P(Ee)){var ke=re(this);ke.frozen||(ke.frozen=new W),Q(this,Ee)?fe(this,Ee,je):ke.frozen.set(Ee,je)}else fe(this,Ee,je);return this}})}else he()&&A(H,{set:function(Ee,je){var ke;return Y(Ee)&&($(Ee)?ke=V:D(Ee)&&(ke=X)),fe(this,Ee,je),ke==V&&C(Ee),ke==X&&F(Ee),this}})},33983:(h,E,o)=>{o(10572)},12752:(h,E,o)=>{o(4242)},5363:(h,E,o)=>{o(25067)},14562:(h,E,o)=>{o(97884)},69355:(h,E,o)=>{o(78885)},25363:(h,E,o)=>{"use strict";var d=o(93085),x=o(99438),w=o(70892);d({target:"Promise",stat:!0,forced:!0},{try:function(A){var O=x.f(this),k=w(A);return(k.error?O.reject:O.resolve)(k.value),O.promise}})},60177:(h,E,o)=>{var d=o(48332);d("asyncDispose")},9031:(h,E,o)=>{var d=o(48332);d("dispose")},96658:(h,E,o)=>{var d=o(48332);d("matcher")},54212:(h,E,o)=>{var d=o(48332);d("metadataKey")},71875:(h,E,o)=>{var d=o(48332);d("metadata")},18658:(h,E,o)=>{var d=o(48332);d("observable")},54592:(h,E,o)=>{var d=o(48332);d("patternMatch")},26680:(h,E,o)=>{var d=o(48332);d("replaceAll")},80162:(h,E,o)=>{o(98939);var d=o(17365),x=o(98576),w=o(4696),A=o(98711),O=o(47771),k=o(18182),U=k("toStringTag");for(var Z in d){var re=x[Z],ue=re&&re.prototype;ue&&w(ue)!==U&&A(ue,U,Z),O[Z]=O.Array}},67054:(h,E,o)=>{"use strict";o(98939);var d=o(93085),x=o(98576),w=o(18922),A=o(84120),O=o(50069),k=o(58552),U=o(59362),Z=o(35090),re=o(11284),ue=o(25695),ne=o(73326),ie=o(46961),Y=o(16447),P=o(64500),$=o(8043),D=o(4696),C=o(31138),F=o(35744),V=o(44845),X=o(52853),K=o(90774),W=o(61669),te=o(78703),J=o(67822),H=o(18182),fe=o(6614),he=H("iterator"),_="URLSearchParams",Q=_+"Iterator",z=ne.set,ge=ne.getterFor(_),Ee=ne.getterFor(Q),je=Object.getOwnPropertyDescriptor,ke=function(Ve){if(!O)return x[Ve];var ce=je(x,Ve);return ce&&ce.value},it=ke("fetch"),et=ke("Request"),at=ke("Headers"),Tt=et&&et.prototype,St=at&&at.prototype,Le=x.RegExp,Oe=x.TypeError,be=x.decodeURIComponent,De=x.encodeURIComponent,Ge=A("".charAt),tt=A([].join),Ze=A([].push),bt=A("".replace),Et=A([].shift),Xt=A([].splice),zt=A("".split),nt=A("".slice),Xe=/\+/g,er=Array(4),Rt=function(Ve){return er[Ve-1]||(er[Ve-1]=Le("((?:%[\\da-f]{2}){"+Ve+"})","gi"))},Rr=function(Ve){try{return be(Ve)}catch(ce){return Ve}},_e=function(Ve){var ce=bt(Ve,Xe," "),xe=4;try{return be(ce)}catch(Be){for(;xe;)ce=bt(ce,Rt(xe--),Rr);return ce}},Mr=/[!'()~]|%20/g,Ar={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},en=function(Ve){return Ar[Ve]},$e=function(Ve){return bt(De(Ve),Mr,en)},yt=ue(function(ce,xe){z(this,{type:Q,iterator:W(ge(ce).entries),kind:xe})},"Iterator",function(){var ce=Ee(this),xe=ce.kind,Be=ce.iterator.next(),Ke=Be.value;return Be.done||(Be.value=xe==="keys"?Ke.key:xe==="values"?Ke.value:[Ke.key,Ke.value]),Be},!0),Lt=function(Ve){this.entries=[],this.url=null,Ve!==void 0&&(F(Ve)?this.parseObject(Ve):this.parseQuery(typeof Ve=="string"?Ge(Ve,0)==="?"?nt(Ve,1):Ve:V(Ve)))};Lt.prototype={type:_,bindURL:function(Ve){this.url=Ve,this.update()},parseObject:function(Ve){var ce=te(Ve),xe,Be,Ke,st,xt,kt,yr;if(ce)for(xe=W(Ve,ce),Be=xe.next;!(Ke=w(Be,xe)).done;){if(st=W(C(Ke.value)),xt=st.next,(kt=w(xt,st)).done||(yr=w(xt,st)).done||!w(xt,st).done)throw Oe("Expected sequence with length 2");Ze(this.entries,{key:V(kt.value),value:V(yr.value)})}else for(var Nt in Ve)P(Ve,Nt)&&Ze(this.entries,{key:Nt,value:V(Ve[Nt])})},parseQuery:function(Ve){if(Ve)for(var ce=zt(Ve,"&"),xe=0,Be,Ke;xe<ce.length;)Be=ce[xe++],Be.length&&(Ke=zt(Be,"="),Ze(this.entries,{key:_e(Et(Ke)),value:_e(tt(Ke,"="))}))},serialize:function(){for(var Ve=this.entries,ce=[],xe=0,Be;xe<Ve.length;)Be=Ve[xe++],Ze(ce,$e(Be.key)+"="+$e(Be.value));return tt(ce,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var wt=function(){ie(this,Ft);var ce=arguments.length>0?arguments[0]:void 0;z(this,new Lt(ce))},Ft=wt.prototype;if(Z(Ft,{append:function(ce,xe){J(arguments.length,2);var Be=ge(this);Ze(Be.entries,{key:V(ce),value:V(xe)}),Be.updateURL()},delete:function(Ve){J(arguments.length,1);for(var ce=ge(this),xe=ce.entries,Be=V(Ve),Ke=0;Ke<xe.length;)xe[Ke].key===Be?Xt(xe,Ke,1):Ke++;ce.updateURL()},get:function(ce){J(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=0;Ke<xe.length;Ke++)if(xe[Ke].key===Be)return xe[Ke].value;return null},getAll:function(ce){J(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=[],st=0;st<xe.length;st++)xe[st].key===Be&&Ze(Ke,xe[st].value);return Ke},has:function(ce){J(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=0;Ke<xe.length;)if(xe[Ke++].key===Be)return!0;return!1},set:function(ce,xe){J(arguments.length,1);for(var Be=ge(this),Ke=Be.entries,st=!1,xt=V(ce),kt=V(xe),yr=0,Nt;yr<Ke.length;yr++)Nt=Ke[yr],Nt.key===xt&&(st?Xt(Ke,yr--,1):(st=!0,Nt.value=kt));st||Ze(Ke,{key:xt,value:kt}),Be.updateURL()},sort:function(){var ce=ge(this);fe(ce.entries,function(xe,Be){return xe.key>Be.key?1:-1}),ce.updateURL()},forEach:function(ce){for(var xe=ge(this).entries,Be=$(ce,arguments.length>1?arguments[1]:void 0),Ke=0,st;Ke<xe.length;)st=xe[Ke++],Be(st.value,st.key,this)},keys:function(){return new yt(this,"keys")},values:function(){return new yt(this,"values")},entries:function(){return new yt(this,"entries")}},{enumerable:!0}),U(Ft,he,Ft.entries,{name:"entries"}),U(Ft,"toString",function(){return ge(this).serialize()},{enumerable:!0}),re(wt,_),d({global:!0,constructor:!0,forced:!k},{URLSearchParams:wt}),!k&&Y(at)){var dt=A(St.has),vt=A(St.set),Pt=function(Ve){if(F(Ve)){var ce=Ve.body,xe;if(D(ce)===_)return xe=Ve.headers?new at(Ve.headers):new at,dt(xe,"content-type")||vt(xe,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),X(Ve,{body:K(0,V(ce)),headers:K(0,xe)})}return Ve};if(Y(it)&&d({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(ce){return it(ce,arguments.length>1?Pt(arguments[1]):{})}}),Y(et)){var ot=function(ce){return ie(this,Tt),new et(ce,arguments.length>1?Pt(arguments[1]):{})};Tt.constructor=ot,ot.prototype=Tt,d({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ot})}}h.exports={URLSearchParams:wt,getState:ge}},69336:(h,E,o)=>{o(67054)},53822:(h,E,o)=>{var d=o(52221);h.exports=d},21434:(h,E,o)=>{var d=o(75078);h.exports=d},51629:(h,E,o)=>{var d=o(77237);h.exports=d},46899:(h,E,o)=>{var d=o(60098);h.exports=d},27710:(h,E,o)=>{var d=o(65739);o(80162),h.exports=d},31585:(h,E,o)=>{var d=o(74030);h.exports=d},44877:(h,E,o)=>{var d=o(41484);h.exports=d},10140:(h,E,o)=>{o(80162);var d=o(4696),x=o(64500),w=o(8902),A=o(51629),O=Array.prototype,k={DOMTokenList:!0,NodeList:!0};h.exports=function(U){var Z=U.entries;return U===O||w(O,U)&&Z===O.entries||x(k,d(U))?A:Z}},55603:(h,E,o)=>{var d=o(53669);h.exports=d},76237:(h,E,o)=>{var d=o(37506);h.exports=d},31206:(h,E,o)=>{o(80162);var d=o(4696),x=o(64500),w=o(8902),A=o(46899),O=Array.prototype,k={DOMTokenList:!0,NodeList:!0};h.exports=function(U){var Z=U.forEach;return U===O||w(O,U)&&Z===O.forEach||x(k,d(U))?A:Z}},56515:(h,E,o)=>{var d=o(13173);h.exports=d},26174:(h,E,o)=>{var d=o(92604);h.exports=d},20057:(h,E,o)=>{var d=o(263);h.exports=d},87511:(h,E,o)=>{var d=o(80432);h.exports=d},24741:(h,E,o)=>{var d=o(77663);h.exports=d},8368:(h,E,o)=>{var d=o(45063);h.exports=d},342:(h,E,o)=>{var d=o(7769);h.exports=d},392:(h,E,o)=>{var d=o(96056);h.exports=d},28478:(h,E,o)=>{var d=o(99936);h.exports=d},4963:(h,E,o)=>{var d=o(23213);h.exports=d},21025:(h,E,o)=>{var d=o(38724);h.exports=d},27820:(h,E,o)=>{var d=o(63512);h.exports=d},58202:(h,E,o)=>{var d=o(2335);h.exports=d},74194:(h,E,o)=>{var d=o(60632);h.exports=d},32854:(h,E,o)=>{var d=o(81056);h.exports=d},60002:(h,E,o)=>{var d=o(12921);h.exports=d},28980:(h,E,o)=>{var d=o(8168);h.exports=d},45636:(h,E,o)=>{var d=o(38651);h.exports=d},66672:(h,E,o)=>{var d=o(33083);h.exports=d},46618:(h,E,o)=>{var d=o(93154);o(80162),h.exports=d},42285:(h,E,o)=>{var d=o(85008);o(80162),h.exports=d},58535:(h,E,o)=>{var d=o(994);o(80162),h.exports=d},16042:(h,E,o)=>{var d=o(30290);h.exports=d},72946:(h,E,o)=>{var d=o(32004);o(80162),h.exports=d},11235:(h,E,o)=>{var d=o(31293);o(80162),h.exports=d},32004:(h,E,o)=>{o(69336);var d=o(57545);h.exports=d.URLSearchParams},43616:function(){(function(h){var E=function(o){var d={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(J){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function x(J){return J&&DataView.prototype.isPrototypeOf(J)}if(d.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],A=ArrayBuffer.isView||function(J){return J&&w.indexOf(Object.prototype.toString.call(J))>-1};function O(J){if(typeof J!="string"&&(J=String(J)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(J))throw new TypeError("Invalid character in header field name");return J.toLowerCase()}function k(J){return typeof J!="string"&&(J=String(J)),J}function U(J){var H={next:function(){var fe=J.shift();return{done:fe===void 0,value:fe}}};return d.iterable&&(H[Symbol.iterator]=function(){return H}),H}function Z(J){this.map={},J instanceof Z?J.forEach(function(H,fe){this.append(fe,H)},this):Array.isArray(J)?J.forEach(function(H){this.append(H[0],H[1])},this):J&&Object.getOwnPropertyNames(J).forEach(function(H){this.append(H,J[H])},this)}Z.prototype.append=function(J,H){J=O(J),H=k(H);var fe=this.map[J];this.map[J]=fe?fe+", "+H:H},Z.prototype.delete=function(J){delete this.map[O(J)]},Z.prototype.get=function(J){return J=O(J),this.has(J)?this.map[J]:null},Z.prototype.has=function(J){return this.map.hasOwnProperty(O(J))},Z.prototype.set=function(J,H){this.map[O(J)]=k(H)},Z.prototype.forEach=function(J,H){for(var fe in this.map)this.map.hasOwnProperty(fe)&&J.call(H,this.map[fe],fe,this)},Z.prototype.keys=function(){var J=[];return this.forEach(function(H,fe){J.push(fe)}),U(J)},Z.prototype.values=function(){var J=[];return this.forEach(function(H){J.push(H)}),U(J)},Z.prototype.entries=function(){var J=[];return this.forEach(function(H,fe){J.push([fe,H])}),U(J)},d.iterable&&(Z.prototype[Symbol.iterator]=Z.prototype.entries);function re(J){if(J.bodyUsed)return Promise.reject(new TypeError("Already read"));J.bodyUsed=!0}function ue(J){return new Promise(function(H,fe){J.onload=function(){H(J.result)},J.onerror=function(){fe(J.error)}})}function ne(J){var H=new FileReader,fe=ue(H);return H.readAsArrayBuffer(J),fe}function ie(J){var H=new FileReader,fe=ue(H);return H.readAsText(J),fe}function Y(J){for(var H=new Uint8Array(J),fe=new Array(H.length),he=0;he<H.length;he++)fe[he]=String.fromCharCode(H[he]);return fe.join("")}function P(J){if(J.slice)return J.slice(0);var H=new Uint8Array(J.byteLength);return H.set(new Uint8Array(J)),H.buffer}function $(){return this.bodyUsed=!1,this._initBody=function(J){this._bodyInit=J,J?typeof J=="string"?this._bodyText=J:d.blob&&Blob.prototype.isPrototypeOf(J)?this._bodyBlob=J:d.formData&&FormData.prototype.isPrototypeOf(J)?this._bodyFormData=J:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)?this._bodyText=J.toString():d.arrayBuffer&&d.blob&&x(J)?(this._bodyArrayBuffer=P(J.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(J)||A(J))?this._bodyArrayBuffer=P(J):this._bodyText=J=Object.prototype.toString.call(J):this._bodyText="",this.headers.get("content-type")||(typeof J=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var J=re(this);if(J)return J;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?re(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(ne)}),this.text=function(){var J=re(this);if(J)return J;if(this._bodyBlob)return ie(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Y(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(V)}),this.json=function(){return this.text().then(JSON.parse)},this}var D=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(J){var H=J.toUpperCase();return D.indexOf(H)>-1?H:J}function F(J,H){H=H||{};var fe=H.body;if(J instanceof F){if(J.bodyUsed)throw new TypeError("Already read");this.url=J.url,this.credentials=J.credentials,H.headers||(this.headers=new Z(J.headers)),this.method=J.method,this.mode=J.mode,this.signal=J.signal,!fe&&J._bodyInit!=null&&(fe=J._bodyInit,J.bodyUsed=!0)}else this.url=String(J);if(this.credentials=H.credentials||this.credentials||"same-origin",(H.headers||!this.headers)&&(this.headers=new Z(H.headers)),this.method=C(H.method||this.method||"GET"),this.mode=H.mode||this.mode||null,this.signal=H.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)}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function V(J){var H=new FormData;return J.trim().split("&").forEach(function(fe){if(fe){var he=fe.split("="),_=he.shift().replace(/\+/g," "),Q=he.join("=").replace(/\+/g," ");H.append(decodeURIComponent(_),decodeURIComponent(Q))}}),H}function X(J){var H=new Z,fe=J.replace(/\r?\n[\t ]+/g," ");return fe.split(/\r?\n/).forEach(function(he){var _=he.split(":"),Q=_.shift().trim();if(Q){var z=_.join(":").trim();H.append(Q,z)}}),H}$.call(F.prototype);function K(J,H){H||(H={}),this.type="default",this.status=H.status===void 0?200:H.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in H?H.statusText:"OK",this.headers=new Z(H.headers),this.url=H.url||"",this._initBody(J)}$.call(K.prototype),K.prototype.clone=function(){return new K(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Z(this.headers),url:this.url})},K.error=function(){var J=new K(null,{status:0,statusText:""});return J.type="error",J};var W=[301,302,303,307,308];K.redirect=function(J,H){if(W.indexOf(H)===-1)throw new RangeError("Invalid status code");return new K(null,{status:H,headers:{location:J}})},o.DOMException=h.DOMException;try{new o.DOMException}catch(J){o.DOMException=function(H,fe){this.message=H,this.name=fe;var he=Error(H);this.stack=he.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function te(J,H){return new Promise(function(fe,he){var _=new F(J,H);if(_.signal&&_.signal.aborted)return he(new o.DOMException("Aborted","AbortError"));var Q=new XMLHttpRequest;function z(){Q.abort()}Q.onload=function(){var ge={status:Q.status,statusText:Q.statusText,headers:X(Q.getAllResponseHeaders()||"")};ge.url="responseURL"in Q?Q.responseURL:ge.headers.get("X-Request-URL");var Ee="response"in Q?Q.response:Q.responseText;fe(new K(Ee,ge))},Q.onerror=function(){he(new TypeError("Network request failed"))},Q.ontimeout=function(){he(new TypeError("Network request failed"))},Q.onabort=function(){he(new o.DOMException("Aborted","AbortError"))},Q.open(_.method,_.url,!0),_.credentials==="include"?Q.withCredentials=!0:_.credentials==="omit"&&(Q.withCredentials=!1),"responseType"in Q&&d.blob&&(Q.responseType="blob"),_.headers.forEach(function(ge,Ee){Q.setRequestHeader(Ee,ge)}),_.signal&&(_.signal.addEventListener("abort",z),Q.onreadystatechange=function(){Q.readyState===4&&_.signal.removeEventListener("abort",z)}),Q.send(typeof _._bodyInit=="undefined"?null:_._bodyInit)})}return te.polyfill=!0,h.fetch||(h.fetch=te,h.Headers=Z,h.Request=F,h.Response=K),o.Headers=Z,o.Request=F,o.Response=K,o.fetch=te,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},96279:function(h,E){var o=typeof self!="undefined"?self:this,d=function(){function w(){this.fetch=!1,this.DOMException=o.DOMException}return w.prototype=o,new w}();(function(w){var A=function(O){var k={searchParams:"URLSearchParams"in w,iterable:"Symbol"in w&&"iterator"in Symbol,blob:"FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(Q){return!1}}(),formData:"FormData"in w,arrayBuffer:"ArrayBuffer"in w};function U(Q){return Q&&DataView.prototype.isPrototypeOf(Q)}if(k.arrayBuffer)var Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],re=ArrayBuffer.isView||function(Q){return Q&&Z.indexOf(Object.prototype.toString.call(Q))>-1};function ue(Q){if(typeof Q!="string"&&(Q=String(Q)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Q))throw new TypeError("Invalid character in header field name");return Q.toLowerCase()}function ne(Q){return typeof Q!="string"&&(Q=String(Q)),Q}function ie(Q){var z={next:function(){var ge=Q.shift();return{done:ge===void 0,value:ge}}};return k.iterable&&(z[Symbol.iterator]=function(){return z}),z}function Y(Q){this.map={},Q instanceof Y?Q.forEach(function(z,ge){this.append(ge,z)},this):Array.isArray(Q)?Q.forEach(function(z){this.append(z[0],z[1])},this):Q&&Object.getOwnPropertyNames(Q).forEach(function(z){this.append(z,Q[z])},this)}Y.prototype.append=function(Q,z){Q=ue(Q),z=ne(z);var ge=this.map[Q];this.map[Q]=ge?ge+", "+z:z},Y.prototype.delete=function(Q){delete this.map[ue(Q)]},Y.prototype.get=function(Q){return Q=ue(Q),this.has(Q)?this.map[Q]:null},Y.prototype.has=function(Q){return this.map.hasOwnProperty(ue(Q))},Y.prototype.set=function(Q,z){this.map[ue(Q)]=ne(z)},Y.prototype.forEach=function(Q,z){for(var ge in this.map)this.map.hasOwnProperty(ge)&&Q.call(z,this.map[ge],ge,this)},Y.prototype.keys=function(){var Q=[];return this.forEach(function(z,ge){Q.push(ge)}),ie(Q)},Y.prototype.values=function(){var Q=[];return this.forEach(function(z){Q.push(z)}),ie(Q)},Y.prototype.entries=function(){var Q=[];return this.forEach(function(z,ge){Q.push([ge,z])}),ie(Q)},k.iterable&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);function P(Q){if(Q.bodyUsed)return Promise.reject(new TypeError("Already read"));Q.bodyUsed=!0}function $(Q){return new Promise(function(z,ge){Q.onload=function(){z(Q.result)},Q.onerror=function(){ge(Q.error)}})}function D(Q){var z=new FileReader,ge=$(z);return z.readAsArrayBuffer(Q),ge}function C(Q){var z=new FileReader,ge=$(z);return z.readAsText(Q),ge}function F(Q){for(var z=new Uint8Array(Q),ge=new Array(z.length),Ee=0;Ee<z.length;Ee++)ge[Ee]=String.fromCharCode(z[Ee]);return ge.join("")}function V(Q){if(Q.slice)return Q.slice(0);var z=new Uint8Array(Q.byteLength);return z.set(new Uint8Array(Q)),z.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(Q){this._bodyInit=Q,Q?typeof Q=="string"?this._bodyText=Q:k.blob&&Blob.prototype.isPrototypeOf(Q)?this._bodyBlob=Q:k.formData&&FormData.prototype.isPrototypeOf(Q)?this._bodyFormData=Q:k.searchParams&&URLSearchParams.prototype.isPrototypeOf(Q)?this._bodyText=Q.toString():k.arrayBuffer&&k.blob&&U(Q)?(this._bodyArrayBuffer=V(Q.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):k.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Q)||re(Q))?this._bodyArrayBuffer=V(Q):this._bodyText=Q=Object.prototype.toString.call(Q):this._bodyText="",this.headers.get("content-type")||(typeof Q=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):k.searchParams&&URLSearchParams.prototype.isPrototypeOf(Q)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},k.blob&&(this.blob=function(){var Q=P(this);if(Q)return Q;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?P(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(D)}),this.text=function(){var Q=P(this);if(Q)return Q;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(F(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},k.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var K=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function W(Q){var z=Q.toUpperCase();return K.indexOf(z)>-1?z:Q}function te(Q,z){z=z||{};var ge=z.body;if(Q instanceof te){if(Q.bodyUsed)throw new TypeError("Already read");this.url=Q.url,this.credentials=Q.credentials,z.headers||(this.headers=new Y(Q.headers)),this.method=Q.method,this.mode=Q.mode,this.signal=Q.signal,!ge&&Q._bodyInit!=null&&(ge=Q._bodyInit,Q.bodyUsed=!0)}else this.url=String(Q);if(this.credentials=z.credentials||this.credentials||"same-origin",(z.headers||!this.headers)&&(this.headers=new Y(z.headers)),this.method=W(z.method||this.method||"GET"),this.mode=z.mode||this.mode||null,this.signal=z.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ge)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ge)}te.prototype.clone=function(){return new te(this,{body:this._bodyInit})};function J(Q){var z=new FormData;return Q.trim().split("&").forEach(function(ge){if(ge){var Ee=ge.split("="),je=Ee.shift().replace(/\+/g," "),ke=Ee.join("=").replace(/\+/g," ");z.append(decodeURIComponent(je),decodeURIComponent(ke))}}),z}function H(Q){var z=new Y,ge=Q.replace(/\r?\n[\t ]+/g," ");return ge.split(/\r?\n/).forEach(function(Ee){var je=Ee.split(":"),ke=je.shift().trim();if(ke){var it=je.join(":").trim();z.append(ke,it)}}),z}X.call(te.prototype);function fe(Q,z){z||(z={}),this.type="default",this.status=z.status===void 0?200:z.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in z?z.statusText:"OK",this.headers=new Y(z.headers),this.url=z.url||"",this._initBody(Q)}X.call(fe.prototype),fe.prototype.clone=function(){return new fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},fe.error=function(){var Q=new fe(null,{status:0,statusText:""});return Q.type="error",Q};var he=[301,302,303,307,308];fe.redirect=function(Q,z){if(he.indexOf(z)===-1)throw new RangeError("Invalid status code");return new fe(null,{status:z,headers:{location:Q}})},O.DOMException=w.DOMException;try{new O.DOMException}catch(Q){O.DOMException=function(z,ge){this.message=z,this.name=ge;var Ee=Error(z);this.stack=Ee.stack},O.DOMException.prototype=Object.create(Error.prototype),O.DOMException.prototype.constructor=O.DOMException}function _(Q,z){return new Promise(function(ge,Ee){var je=new te(Q,z);if(je.signal&&je.signal.aborted)return Ee(new O.DOMException("Aborted","AbortError"));var ke=new XMLHttpRequest;function it(){ke.abort()}ke.onload=function(){var et={status:ke.status,statusText:ke.statusText,headers:H(ke.getAllResponseHeaders()||"")};et.url="responseURL"in ke?ke.responseURL:et.headers.get("X-Request-URL");var at="response"in ke?ke.response:ke.responseText;ge(new fe(at,et))},ke.onerror=function(){Ee(new TypeError("Network request failed"))},ke.ontimeout=function(){Ee(new TypeError("Network request failed"))},ke.onabort=function(){Ee(new O.DOMException("Aborted","AbortError"))},ke.open(je.method,je.url,!0),je.credentials==="include"?ke.withCredentials=!0:je.credentials==="omit"&&(ke.withCredentials=!1),"responseType"in ke&&k.blob&&(ke.responseType="blob"),je.headers.forEach(function(et,at){ke.setRequestHeader(at,et)}),je.signal&&(je.signal.addEventListener("abort",it),ke.onreadystatechange=function(){ke.readyState===4&&je.signal.removeEventListener("abort",it)}),ke.send(typeof je._bodyInit=="undefined"?null:je._bodyInit)})}return _.polyfill=!0,w.fetch||(w.fetch=_,w.Headers=Y,w.Request=te,w.Response=fe),O.Headers=Y,O.Request=te,O.Response=fe,O.fetch=_,Object.defineProperty(O,"__esModule",{value:!0}),O}({})})(d),d.fetch.ponyfill=!0,delete d.fetch.polyfill;var x=d;E=x.fetch,E.default=x.fetch,E.fetch=x.fetch,E.Headers=x.Headers,E.Request=x.Request,E.Response=x.Response,h.exports=E},45957:(h,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>k});var d=o(39601),x=o.n(d),w=o(82609),A=o.n(w),O=A()(x());O.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;box-sizing:border-box}.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}
42
+ `,""]);const k=O},73792:(h,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>F});var d=o(39601),x=o.n(d),w=o(82609),A=o.n(w),O=o(78991),k=o.n(O),U=new URL(o(17735),o.b),Z=new URL(o(56089),o.b),re=new URL(o(46050),o.b),ue=new URL(o(71090),o.b),ne=new URL(o(96192),o.b),ie=A()(x()),Y=k()(U),P=k()(Z),$=k()(re),D=k()(ue),C=k()(ne);ie.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("+Y+")}.CodeMirror-lint-mark-error{background-image:url("+P+")}.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("+$+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+D+")}.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}
43
+ `,""]);const F=ie},59062:(h,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>k});var d=o(39601),x=o.n(d),w=o(82609),A=o.n(w),O=A()(x());O.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;z-index:0}.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}
44
+ `,""]);const k=O},32024:(h,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>k});var d=o(39601),x=o.n(d),w=o(82609),A=o.n(w),O=A()(x());O.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}
45
+ `,""]);const k=O},78991:h=>{"use strict";h.exports=function(E,o){return o||(o={}),E&&(E=String(E.__esModule?E.default:E),/^['"].*['"]$/.test(E)&&(E=E.slice(1,-1)),o.hash&&(E+=o.hash),/["'() \t\n]|(%20)/.test(E)||o.needQuotes?'"'.concat(E.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):E)}},11157:(h,E,o)=>{"use strict";o.r(E),o.d(E,{Console:()=>Mx,ConsoleComponent:()=>bg});var d={};o.r(d),o.d(d,{JsonPatchError:()=>Er,_areEquals:()=>Ja,applyOperation:()=>ha,applyPatch:()=>Pi,applyReducer:()=>Ka,deepClone:()=>ld,getValueByPointer:()=>Po,validate:()=>Io,validator:()=>Ya});var x={};o.r(x),o.d(x,{compare:()=>Is,generate:()=>Ps,observe:()=>gf,unobserve:()=>vf});var w={};o.r(w),o.d(w,{cookie:()=>f,header:()=>l,path:()=>t,query:()=>i});var A=o(49086),O=o(25575),k=o(24463),U=o(84870),Z=o(79494),re=o(48145),ue=o(11807),ne=o(45055),ie=o(49800),Y=o(57829),P=o(92876);function $(e){return $=typeof Y=="function"&&typeof P=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Y=="function"&&r.constructor===Y&&r!==Y.prototype?"symbol":typeof r},$(e)}var D=o(92903);function C(e,r){if($(e)!=="object"||e===null)return e;var n=e[D];if(n!==void 0){var a=n.call(e,r||"default");if($(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function F(e){var r=C(e,"string");return $(r)==="symbol"?r:String(r)}function V(e,r,n){return r=F(r),r in e?ie(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function X(e,r){var n=O(e);if(k){var a=k(e);r&&(a=U(a).call(a,function(s){return Z(e,s).enumerable})),n.push.apply(n,a)}return n}function K(e){for(var r=1;r<arguments.length;r++){var n,a,s=arguments[r]!=null?arguments[r]:{};r%2?re(n=X(Object(s),!0)).call(n,function(c){V(e,c,s[c])}):ue?ne(e,ue(s)):re(a=X(Object(s))).call(a,function(c){ie(e,c,Z(s,c))})}return e}var W=o(45932),te=o.n(W),J=o(51661),H=o.n(J),fe=o(883),he=o(5490),_=o(72010),Q=o(72383),z=o(50557);function ge(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function Ee(e,r){var n;if(!!e){if(typeof e=="string")return ge(e,r);var a=Q(n=Object.prototype.toString.call(e)).call(n,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return z(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return ge(e,r)}}function je(e,r){var n=typeof Y!="undefined"&&he(e)||e["@@iterator"];if(!n){if(_(e)||(n=Ee(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,s=function(){};return{s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(y){throw y},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,p=!1,m;return{s:function(){n=n.call(e)},n:function(){var y=n.next();return c=y.done,y},e:function(y){p=!0,m=y},f:function(){try{!c&&n.return!=null&&n.return()}finally{if(p)throw m}}}}function ke(e){if(_(e))return e}function it(e,r){var n=e==null?null:typeof Y!="undefined"&&he(e)||e["@@iterator"];if(n!=null){var a,s,c,p,m=[],v=!0,y=!1;try{if(c=(n=n.call(e)).next,r===0){if(Object(n)!==n)return;v=!1}else for(;!(v=(a=c.call(n)).done)&&(m.push(a.value),m.length!==r);v=!0);}catch(b){y=!0,s=b}finally{try{if(!v&&n.return!=null&&(p=n.return(),Object(p)!==p))return}finally{if(y)throw s}}return m}}function et(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function at(e,r){return ke(e)||it(e,r)||Ee(e,r)||et()}var Tt=o(64772);function St(e,r,n,a,s,c,p){try{var m=e[c](p),v=m.value}catch(y){n(y);return}m.done?r(v):Tt.resolve(v).then(a,s)}function Le(e){return function(){var r=this,n=arguments;return new Tt(function(a,s){var c=e.apply(r,n);function p(v){St(c,a,s,p,m,"next",v)}function m(v){St(c,a,s,p,m,"throw",v)}p(void 0)})}}var Oe=o(99732),be=o.n(Oe),De=o(82985),Ge=o.n(De),tt=o(42126),Ze=o.n(tt),bt=o(48621),Et=o.n(bt),Xt=o(85337),zt=o.n(Xt),nt=o(14903),Xe=o.n(nt),er=o(2921),Rt=o.n(er),Rr=o(40192),_e=o.n(Rr),Mr=o(31175),Ar=o.n(Mr),en=o(40453),$e=o.n(en),yt=o(43616),Lt=o(37794),wt=o.n(Lt);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Ft(e){return typeof e=="undefined"||e===null}function dt(e){return typeof e=="object"&&e!==null}function vt(e){return Array.isArray(e)?e:Ft(e)?[]:[e]}function Pt(e,r){var n,a,s,c;if(r)for(c=Object.keys(r),n=0,a=c.length;n<a;n+=1)s=c[n],e[s]=r[s];return e}function ot(e,r){var n="",a;for(a=0;a<r;a+=1)n+=e;return n}function Ve(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var ce=Ft,xe=dt,Be=vt,Ke=ot,st=Ve,xt=Pt,kt={isNothing:ce,isObject:xe,toArray:Be,repeat:Ke,isNegativeZero:st,extend:xt};function yr(e,r){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
49
48
 
50
- `+e.mark.snippet),a+" "+n):a}function Xa(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Fu(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Xa.prototype=Object.create(Error.prototype),Xa.prototype.constructor=Xa,Xa.prototype.toString=function(r){return this.name+": "+Fu(this,r)};var rn=Xa;function Ho(e,r,n,a,o){var f="",d="",m=Math.floor(o/2)-1;return a-r>m&&(f=" ... ",r=a-m+f.length),n-a>m&&(d=" ...",n=a+m-d.length),{str:f+e.slice(r,n).replace(/\t/g,"\u2192")+d,pos:a-r+f.length}}function Yi(e,r){return Lr.repeat(" ",r-e.length)+e}function Ru(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,a=[0],o=[],f,d=-1;f=n.exec(e.buffer);)o.push(f.index),a.push(f.index+f[0].length),e.position<=f.index&&d<0&&(d=a.length-2);d<0&&(d=a.length-1);var m="",g,b,x=Math.min(e.line+r.linesAfter,o.length).toString().length,I=r.maxLength-(r.indent+x+3);for(g=1;g<=r.linesBefore&&!(d-g<0);g++)b=Ho(e.buffer,a[d-g],o[d-g],e.position-(a[d]-a[d-g]),I),m=Lr.repeat(" ",r.indent)+Yi((e.line-g+1).toString(),x)+" | "+b.str+`
51
- `+m;for(b=Ho(e.buffer,a[d],o[d],e.position,I),m+=Lr.repeat(" ",r.indent)+Yi((e.line+1).toString(),x)+" | "+b.str+`
52
- `,m+=Lr.repeat("-",r.indent+x+3+b.pos)+`^
53
- `,g=1;g<=r.linesAfter&&!(d+g>=o.length);g++)b=Ho(e.buffer,a[d+g],o[d+g],e.position-(a[d]-a[d+g]),I),m+=Lr.repeat(" ",r.indent)+Yi((e.line+g+1).toString(),x)+" | "+b.str+`
54
- `;return m.replace(/\n$/,"")}var Lu=Ru,zs=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],zo=["scalar","sequence","mapping"];function Mu(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){r[String(a)]=n})}),r}function Go(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(zs.indexOf(n)===-1)throw new rn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=Mu(r.styleAliases||null),zo.indexOf(this.kind)===-1)throw new rn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var or=Go;function Gs(e,r){var n=[];return e[r].forEach(function(a){var o=n.length;n.forEach(function(f,d){f.tag===a.tag&&f.kind===a.kind&&f.multi===a.multi&&(o=d)}),n[o]=a}),n}function $s(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function a(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(a);return e}function Qa(e){return this.extend(e)}Qa.prototype.extend=function(r){var n=[],a=[];if(r instanceof or)a.push(r);else if(Array.isArray(r))a=a.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(a=a.concat(r.explicit));else throw new rn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(f){if(!(f instanceof or))throw new rn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(f.loadKind&&f.loadKind!=="scalar")throw new rn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(f.multi)throw new rn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(f){if(!(f instanceof or))throw new rn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(Qa.prototype);return o.implicit=(this.implicit||[]).concat(n),o.explicit=(this.explicit||[]).concat(a),o.compiledImplicit=Gs(o,"implicit"),o.compiledExplicit=Gs(o,"explicit"),o.compiledTypeMap=$s(o.compiledImplicit,o.compiledExplicit),o};var Ks=Qa,Ys=new or("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),$o=new or("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Nu=new or("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Du=new Ks({explicit:[Ys,$o,Nu]});function Hc(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function Ji(){return null}function ba(e){return e===null}var Xi=new or("tag:yaml.org,2002:null",{kind:"scalar",resolve:Hc,construct:Ji,predicate:ba,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Js(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function Xs(e){return e==="true"||e==="True"||e==="TRUE"}function Bu(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Ko=new or("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Js,construct:Xs,predicate:Bu,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Qi(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Zi(e){return 48<=e&&e<=55}function dn(e){return 48<=e&&e<=57}function ki(e){if(e===null)return!1;var r=e.length,n=0,a=!1,o;if(!r)return!1;if(o=e[n],(o==="-"||o==="+")&&(o=e[++n]),o==="0"){if(n+1===r)return!0;if(o=e[++n],o==="b"){for(n++;n<r;n++)if(o=e[n],o!=="_"){if(o!=="0"&&o!=="1")return!1;a=!0}return a&&o!=="_"}if(o==="x"){for(n++;n<r;n++)if(o=e[n],o!=="_"){if(!Qi(e.charCodeAt(n)))return!1;a=!0}return a&&o!=="_"}if(o==="o"){for(n++;n<r;n++)if(o=e[n],o!=="_"){if(!Zi(e.charCodeAt(n)))return!1;a=!0}return a&&o!=="_"}}if(o==="_")return!1;for(;n<r;n++)if(o=e[n],o!=="_"){if(!dn(e.charCodeAt(n)))return!1;a=!0}return!(!a||o==="_")}function Fi(e){var r=e,n=1,a;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),a=r[0],(a==="-"||a==="+")&&(a==="-"&&(n=-1),r=r.slice(1),a=r[0]),r==="0")return 0;if(a==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function Yo(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Lr.isNegativeZero(e)}var ju=new or("tag:yaml.org,2002:int",{kind:"scalar",resolve:ki,construct:Fi,predicate:Yo,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Vu=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Za(e){return!(e===null||!Vu.test(e)||e[e.length-1]==="_")}function Uu(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var Qs=/^[-+]?[0-9]+e/;function Jo(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Lr.isNegativeZero(e))return"-0.0";return n=e.toString(10),Qs.test(n)?n.replace("e",".e"):n}function zc(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Lr.isNegativeZero(e))}var Xo=new or("tag:yaml.org,2002:float",{kind:"scalar",resolve:Za,construct:Uu,predicate:zc,represent:Jo,defaultStyle:"lowercase"}),Zs=Du.extend({implicit:[Xi,Ko,ju,Xo]}),Qo=Zs,Zo=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_i=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 _o(e){return e===null?!1:Zo.exec(e)!==null||_i.exec(e)!==null}function Wu(e){var r,n,a,o,f,d,m,g=0,b=null,x,I,N;if(r=Zo.exec(e),r===null&&(r=_i.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],a=+r[2]-1,o=+r[3],!r[4])return new Date(Date.UTC(n,a,o));if(f=+r[4],d=+r[5],m=+r[6],r[7]){for(g=r[7].slice(0,3);g.length<3;)g+="0";g=+g}return r[9]&&(x=+r[10],I=+(r[11]||0),b=(x*60+I)*6e4,r[9]==="-"&&(b=-b)),N=new Date(Date.UTC(n,a,o,f,d,m,g)),b&&N.setTime(N.getTime()-b),N}function qo(e){return e.toISOString()}var Hu=new or("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:_o,construct:Wu,instanceOf:Date,represent:qo});function Gc(e){return e==="<<"||e===null}var zu=new or("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Gc}),_a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
55
- \r`;function _s(e){if(e===null)return!1;var r,n,a=0,o=e.length,f=_a;for(n=0;n<o;n++)if(r=f.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;a+=6}return a%8===0}function xa(e){var r,n,a=e.replace(/[\r\n=]/g,""),o=a.length,f=_a,d=0,m=[];for(r=0;r<o;r++)r%4===0&&r&&(m.push(d>>16&255),m.push(d>>8&255),m.push(d&255)),d=d<<6|f.indexOf(a.charAt(r));return n=o%4*6,n===0?(m.push(d>>16&255),m.push(d>>8&255),m.push(d&255)):n===18?(m.push(d>>10&255),m.push(d>>2&255)):n===12&&m.push(d>>4&255),new Uint8Array(m)}function qa(e){var r="",n=0,a,o,f=e.length,d=_a;for(a=0;a<f;a++)a%3===0&&a&&(r+=d[n>>18&63],r+=d[n>>12&63],r+=d[n>>6&63],r+=d[n&63]),n=(n<<8)+e[a];return o=f%3,o===0?(r+=d[n>>18&63],r+=d[n>>12&63],r+=d[n>>6&63],r+=d[n&63]):o===2?(r+=d[n>>10&63],r+=d[n>>4&63],r+=d[n<<2&63],r+=d[64]):o===1&&(r+=d[n>>2&63],r+=d[n<<4&63],r+=d[64],r+=d[64]),r}function $c(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var eo=new or("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_s,construct:xa,predicate:$c,represent:qa}),Gu=Object.prototype.hasOwnProperty,to=Object.prototype.toString;function $u(e){if(e===null)return!0;var r=[],n,a,o,f,d,m=e;for(n=0,a=m.length;n<a;n+=1){if(o=m[n],d=!1,to.call(o)!=="[object Object]")return!1;for(f in o)if(Gu.call(o,f))if(!d)d=!0;else return!1;if(!d)return!1;if(r.indexOf(f)===-1)r.push(f);else return!1}return!0}function qi(e){return e!==null?e:[]}var Sa=new or("tag:yaml.org,2002:omap",{kind:"sequence",resolve:$u,construct:qi}),ea=Object.prototype.toString;function ro(e){if(e===null)return!0;var r,n,a,o,f,d=e;for(f=new Array(d.length),r=0,n=d.length;r<n;r+=1){if(a=d[r],ea.call(a)!=="[object Object]"||(o=Object.keys(a),o.length!==1))return!1;f[r]=[o[0],a[o[0]]]}return!0}function wa(e){if(e===null)return[];var r,n,a,o,f,d=e;for(f=new Array(d.length),r=0,n=d.length;r<n;r+=1)a=d[r],o=Object.keys(a),f[r]=[o[0],a[o[0]]];return f}var qs=new or("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ro,construct:wa}),Ku=Object.prototype.hasOwnProperty;function Yu(e){if(e===null)return!0;var r,n=e;for(r in n)if(Ku.call(n,r)&&n[r]!==null)return!1;return!0}function Kc(e){return e!==null?e:{}}var Ri=new or("tag:yaml.org,2002:set",{kind:"mapping",resolve:Yu,construct:Kc}),mi=Qo.extend({implicit:[Hu,zu],explicit:[eo,Sa,qs,Ri]}),Li=Object.prototype.hasOwnProperty,es=1,Ju=2,Xu=3,ts=4,el=1,bn=2,Or=3,nn=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Mr=/[\x85\u2028\u2029]/,no=/[,\[\]\{\}]/,Qu=/^(?:!|!!|![a-z\-]+!)$/i,io=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Zu(e){return Object.prototype.toString.call(e)}function ri(e){return e===10||e===13}function ta(e){return e===9||e===32}function an(e){return e===9||e===32||e===10||e===13}function ra(e){return e===44||e===91||e===93||e===123||e===125}function tl(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function Yc(e){return e===120?2:e===117?4:e===85?8:0}function rl(e){return 48<=e&&e<=57?e-48:-1}function rs(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
56
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function _u(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var nl=new Array(256),ns=new Array(256),na=0;na<256;na++)nl[na]=rs(na)?1:0,ns[na]=rs(na);function ao(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||mi,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function qu(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Lu(n),new rn(r,n)}function pt(e,r){throw qu(e,r)}function Rn(e,r){e.onWarning&&e.onWarning.call(null,qu(e,r))}var il={YAML:function(r,n,a){var o,f,d;r.version!==null&&pt(r,"duplication of %YAML directive"),a.length!==1&&pt(r,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),o===null&&pt(r,"ill-formed argument of the YAML directive"),f=parseInt(o[1],10),d=parseInt(o[2],10),f!==1&&pt(r,"unacceptable YAML version of the document"),r.version=a[0],r.checkLineBreaks=d<2,d!==1&&d!==2&&Rn(r,"unsupported YAML version of the document")},TAG:function(r,n,a){var o,f;a.length!==2&&pt(r,"TAG directive accepts exactly two arguments"),o=a[0],f=a[1],Qu.test(o)||pt(r,"ill-formed tag handle (first argument) of the TAG directive"),Li.call(r.tagMap,o)&&pt(r,'there is a previously declared suffix for "'+o+'" tag handle'),io.test(f)||pt(r,"ill-formed tag prefix (second argument) of the TAG directive");try{f=decodeURIComponent(f)}catch(d){pt(r,"tag prefix is malformed: "+f)}r.tagMap[o]=f}};function Mi(e,r,n,a){var o,f,d,m;if(r<n){if(m=e.input.slice(r,n),a)for(o=0,f=m.length;o<f;o+=1)d=m.charCodeAt(o),d===9||32<=d&&d<=1114111||pt(e,"expected valid JSON character");else nn.test(m)&&pt(e,"the stream contains non-printable characters");e.result+=m}}function al(e,r,n,a){var o,f,d,m;for(Lr.isObject(n)||pt(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(n),d=0,m=o.length;d<m;d+=1)f=o[d],Li.call(r,f)||(r[f]=n[f],a[f]=!0)}function Ur(e,r,n,a,o,f,d,m,g){var b,x;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),b=0,x=o.length;b<x;b+=1)Array.isArray(o[b])&&pt(e,"nested arrays are not supported inside keys"),typeof o=="object"&&Zu(o[b])==="[object Object]"&&(o[b]="[object Object]");if(typeof o=="object"&&Zu(o)==="[object Object]"&&(o="[object Object]"),o=String(o),r===null&&(r={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(f))for(b=0,x=f.length;b<x;b+=1)al(e,r,f[b],n);else al(e,r,f,n);else!e.json&&!Li.call(n,o)&&Li.call(r,o)&&(e.line=d||e.line,e.lineStart=m||e.lineStart,e.position=g||e.position,pt(e,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(r,o,{configurable:!0,enumerable:!0,writable:!0,value:f}):r[o]=f,delete n[o];return r}function Vt(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):pt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function qt(e,r,n){for(var a=0,o=e.input.charCodeAt(e.position);o!==0;){for(;ta(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(r&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(ri(o))for(Vt(e),o=e.input.charCodeAt(e.position),a++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return n!==-1&&a!==0&&e.lineIndent<n&&Rn(e,"deficient indentation"),a}function Yn(e){var r=e.position,n;return n=e.input.charCodeAt(r),!!((n===45||n===46)&&n===e.input.charCodeAt(r+1)&&n===e.input.charCodeAt(r+2)&&(r+=3,n=e.input.charCodeAt(r),n===0||an(n)))}function ni(e,r){r===1?e.result+=" ":r>1&&(e.result+=Lr.repeat(`
57
- `,r-1))}function ef(e,r,n){var a,o,f,d,m,g,b,x,I=e.kind,N=e.result,j;if(j=e.input.charCodeAt(e.position),an(j)||ra(j)||j===35||j===38||j===42||j===33||j===124||j===62||j===39||j===34||j===37||j===64||j===96||(j===63||j===45)&&(o=e.input.charCodeAt(e.position+1),an(o)||n&&ra(o)))return!1;for(e.kind="scalar",e.result="",f=d=e.position,m=!1;j!==0;){if(j===58){if(o=e.input.charCodeAt(e.position+1),an(o)||n&&ra(o))break}else if(j===35){if(a=e.input.charCodeAt(e.position-1),an(a))break}else{if(e.position===e.lineStart&&Yn(e)||n&&ra(j))break;if(ri(j))if(g=e.line,b=e.lineStart,x=e.lineIndent,qt(e,!1,-1),e.lineIndent>=r){m=!0,j=e.input.charCodeAt(e.position);continue}else{e.position=d,e.line=g,e.lineStart=b,e.lineIndent=x;break}}m&&(Mi(e,f,d,!1),ni(e,e.line-g),f=d=e.position,m=!1),ta(j)||(d=e.position+1),j=e.input.charCodeAt(++e.position)}return Mi(e,f,d,!1),e.result?!0:(e.kind=I,e.result=N,!1)}function ol(e,r){var n,a,o;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=o=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Mi(e,a,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)a=e.position,e.position++,o=e.position;else return!0;else ri(n)?(Mi(e,a,o,!0),ni(e,qt(e,!1,r)),a=o=e.position):e.position===e.lineStart&&Yn(e)?pt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);pt(e,"unexpected end of the stream within a single quoted scalar")}function tf(e,r){var n,a,o,f,d,m;if(m=e.input.charCodeAt(e.position),m!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(m=e.input.charCodeAt(e.position))!==0;){if(m===34)return Mi(e,n,e.position,!0),e.position++,!0;if(m===92){if(Mi(e,n,e.position,!0),m=e.input.charCodeAt(++e.position),ri(m))qt(e,!1,r);else if(m<256&&nl[m])e.result+=ns[m],e.position++;else if((d=Yc(m))>0){for(o=d,f=0;o>0;o--)m=e.input.charCodeAt(++e.position),(d=tl(m))>=0?f=(f<<4)+d:pt(e,"expected hexadecimal character");e.result+=_u(f),e.position++}else pt(e,"unknown escape sequence");n=a=e.position}else ri(m)?(Mi(e,n,a,!0),ni(e,qt(e,!1,r)),n=a=e.position):e.position===e.lineStart&&Yn(e)?pt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}pt(e,"unexpected end of the stream within a double quoted scalar")}function Jc(e,r){var n=!0,a,o,f,d=e.tag,m,g=e.anchor,b,x,I,N,j,W=Object.create(null),ee,te,se,ie;if(ie=e.input.charCodeAt(e.position),ie===91)x=93,j=!1,m=[];else if(ie===123)x=125,j=!0,m={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=m),ie=e.input.charCodeAt(++e.position);ie!==0;){if(qt(e,!0,r),ie=e.input.charCodeAt(e.position),ie===x)return e.position++,e.tag=d,e.anchor=g,e.kind=j?"mapping":"sequence",e.result=m,!0;n?ie===44&&pt(e,"expected the node content, but found ','"):pt(e,"missed comma between flow collection entries"),te=ee=se=null,I=N=!1,ie===63&&(b=e.input.charCodeAt(e.position+1),an(b)&&(I=N=!0,e.position++,qt(e,!0,r))),a=e.line,o=e.lineStart,f=e.position,ia(e,r,es,!1,!0),te=e.tag,ee=e.result,qt(e,!0,r),ie=e.input.charCodeAt(e.position),(N||e.line===a)&&ie===58&&(I=!0,ie=e.input.charCodeAt(++e.position),qt(e,!0,r),ia(e,r,es,!1,!0),se=e.result),j?Ur(e,m,W,te,ee,se,a,o,f):I?m.push(Ur(e,null,W,te,ee,se,a,o,f)):m.push(ee),qt(e,!0,r),ie=e.input.charCodeAt(e.position),ie===44?(n=!0,ie=e.input.charCodeAt(++e.position)):n=!1}pt(e,"unexpected end of the stream within a flow collection")}function sl(e,r){var n,a,o=el,f=!1,d=!1,m=r,g=0,b=!1,x,I;if(I=e.input.charCodeAt(e.position),I===124)a=!1;else if(I===62)a=!0;else return!1;for(e.kind="scalar",e.result="";I!==0;)if(I=e.input.charCodeAt(++e.position),I===43||I===45)el===o?o=I===43?Or:bn:pt(e,"repeat of a chomping mode identifier");else if((x=rl(I))>=0)x===0?pt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):d?pt(e,"repeat of an indentation width identifier"):(m=r+x-1,d=!0);else break;if(ta(I)){do I=e.input.charCodeAt(++e.position);while(ta(I));if(I===35)do I=e.input.charCodeAt(++e.position);while(!ri(I)&&I!==0)}for(;I!==0;){for(Vt(e),e.lineIndent=0,I=e.input.charCodeAt(e.position);(!d||e.lineIndent<m)&&I===32;)e.lineIndent++,I=e.input.charCodeAt(++e.position);if(!d&&e.lineIndent>m&&(m=e.lineIndent),ri(I)){g++;continue}if(e.lineIndent<m){o===Or?e.result+=Lr.repeat(`
58
- `,f?1+g:g):o===el&&f&&(e.result+=`
59
- `);break}for(a?ta(I)?(b=!0,e.result+=Lr.repeat(`
60
- `,f?1+g:g)):b?(b=!1,e.result+=Lr.repeat(`
61
- `,g+1)):g===0?f&&(e.result+=" "):e.result+=Lr.repeat(`
62
- `,g):e.result+=Lr.repeat(`
63
- `,f?1+g:g),f=!0,d=!0,g=0,n=e.position;!ri(I)&&I!==0;)I=e.input.charCodeAt(++e.position);Mi(e,n,e.position,!1)}return!0}function Aa(e,r){var n,a=e.tag,o=e.anchor,f=[],d,m=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),g=e.input.charCodeAt(e.position);g!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,pt(e,"tab characters must not be used in indentation")),!(g!==45||(d=e.input.charCodeAt(e.position+1),!an(d))));){if(m=!0,e.position++,qt(e,!0,-1)&&e.lineIndent<=r){f.push(null),g=e.input.charCodeAt(e.position);continue}if(n=e.line,ia(e,r,Xu,!1,!0),f.push(e.result),qt(e,!0,-1),g=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>r)&&g!==0)pt(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return m?(e.tag=a,e.anchor=o,e.kind="sequence",e.result=f,!0):!1}function rf(e,r,n){var a,o,f,d,m,g,b=e.tag,x=e.anchor,I={},N=Object.create(null),j=null,W=null,ee=null,te=!1,se=!1,ie;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=I),ie=e.input.charCodeAt(e.position);ie!==0;){if(!te&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,pt(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),f=e.line,(ie===63||ie===58)&&an(a))ie===63?(te&&(Ur(e,I,N,j,W,null,d,m,g),j=W=ee=null),se=!0,te=!0,o=!0):te?(te=!1,o=!0):pt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,ie=a;else{if(d=e.line,m=e.lineStart,g=e.position,!ia(e,n,Ju,!1,!0))break;if(e.line===f){for(ie=e.input.charCodeAt(e.position);ta(ie);)ie=e.input.charCodeAt(++e.position);if(ie===58)ie=e.input.charCodeAt(++e.position),an(ie)||pt(e,"a whitespace character is expected after the key-value separator within a block mapping"),te&&(Ur(e,I,N,j,W,null,d,m,g),j=W=ee=null),se=!0,te=!1,o=!1,j=e.tag,W=e.result;else if(se)pt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=b,e.anchor=x,!0}else if(se)pt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=b,e.anchor=x,!0}if((e.line===f||e.lineIndent>r)&&(te&&(d=e.line,m=e.lineStart,g=e.position),ia(e,r,ts,!0,o)&&(te?W=e.result:ee=e.result),te||(Ur(e,I,N,j,W,ee,d,m,g),j=W=ee=null),qt(e,!0,-1),ie=e.input.charCodeAt(e.position)),(e.line===f||e.lineIndent>r)&&ie!==0)pt(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return te&&Ur(e,I,N,j,W,null,d,m,g),se&&(e.tag=b,e.anchor=x,e.kind="mapping",e.result=I),se}function ll(e){var r,n=!1,a=!1,o,f,d;if(d=e.input.charCodeAt(e.position),d!==33)return!1;if(e.tag!==null&&pt(e,"duplication of a tag property"),d=e.input.charCodeAt(++e.position),d===60?(n=!0,d=e.input.charCodeAt(++e.position)):d===33?(a=!0,o="!!",d=e.input.charCodeAt(++e.position)):o="!",r=e.position,n){do d=e.input.charCodeAt(++e.position);while(d!==0&&d!==62);e.position<e.length?(f=e.input.slice(r,e.position),d=e.input.charCodeAt(++e.position)):pt(e,"unexpected end of the stream within a verbatim tag")}else{for(;d!==0&&!an(d);)d===33&&(a?pt(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(r-1,e.position+1),Qu.test(o)||pt(e,"named tag handle cannot contain such characters"),a=!0,r=e.position+1)),d=e.input.charCodeAt(++e.position);f=e.input.slice(r,e.position),no.test(f)&&pt(e,"tag suffix cannot contain flow indicator characters")}f&&!io.test(f)&&pt(e,"tag name cannot contain such characters: "+f);try{f=decodeURIComponent(f)}catch(m){pt(e,"tag name is malformed: "+f)}return n?e.tag=f:Li.call(e.tagMap,o)?e.tag=e.tagMap[o]+f:o==="!"?e.tag="!"+f:o==="!!"?e.tag="tag:yaml.org,2002:"+f:pt(e,'undeclared tag handle "'+o+'"'),!0}function Ni(e){var r,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&pt(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!an(n)&&!ra(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&pt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function nf(e){var r,n,a;if(a=e.input.charCodeAt(e.position),a!==42)return!1;for(a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!an(a)&&!ra(a);)a=e.input.charCodeAt(++e.position);return e.position===r&&pt(e,"name of an alias node must contain at least one character"),n=e.input.slice(r,e.position),Li.call(e.anchorMap,n)||pt(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],qt(e,!0,-1),!0}function ia(e,r,n,a,o){var f,d,m,g=1,b=!1,x=!1,I,N,j,W,ee,te;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,f=d=m=ts===n||Xu===n,a&&qt(e,!0,-1)&&(b=!0,e.lineIndent>r?g=1:e.lineIndent===r?g=0:e.lineIndent<r&&(g=-1)),g===1)for(;ll(e)||Ni(e);)qt(e,!0,-1)?(b=!0,m=f,e.lineIndent>r?g=1:e.lineIndent===r?g=0:e.lineIndent<r&&(g=-1)):m=!1;if(m&&(m=b||o),(g===1||ts===n)&&(es===n||Ju===n?ee=r:ee=r+1,te=e.position-e.lineStart,g===1?m&&(Aa(e,te)||rf(e,te,ee))||Jc(e,ee)?x=!0:(d&&sl(e,ee)||ol(e,ee)||tf(e,ee)?x=!0:nf(e)?(x=!0,(e.tag!==null||e.anchor!==null)&&pt(e,"alias node should not have any properties")):ef(e,ee,es===n)&&(x=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):g===0&&(x=m&&Aa(e,te))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&pt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),I=0,N=e.implicitTypes.length;I<N;I+=1)if(W=e.implicitTypes[I],W.resolve(e.result)){e.result=W.construct(e.result),e.tag=W.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Li.call(e.typeMap[e.kind||"fallback"],e.tag))W=e.typeMap[e.kind||"fallback"][e.tag];else for(W=null,j=e.typeMap.multi[e.kind||"fallback"],I=0,N=j.length;I<N;I+=1)if(e.tag.slice(0,j[I].tag.length)===j[I].tag){W=j[I];break}W||pt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&W.kind!==e.kind&&pt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+W.kind+'", not "'+e.kind+'"'),W.resolve(e.result,e.tag)?(e.result=W.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):pt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||x}function Xc(e){var r=e.position,n,a,o,f=!1,d;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(d=e.input.charCodeAt(e.position))!==0&&(qt(e,!0,-1),d=e.input.charCodeAt(e.position),!(e.lineIndent>0||d!==37));){for(f=!0,d=e.input.charCodeAt(++e.position),n=e.position;d!==0&&!an(d);)d=e.input.charCodeAt(++e.position);for(a=e.input.slice(n,e.position),o=[],a.length<1&&pt(e,"directive name must not be less than one character in length");d!==0;){for(;ta(d);)d=e.input.charCodeAt(++e.position);if(d===35){do d=e.input.charCodeAt(++e.position);while(d!==0&&!ri(d));break}if(ri(d))break;for(n=e.position;d!==0&&!an(d);)d=e.input.charCodeAt(++e.position);o.push(e.input.slice(n,e.position))}d!==0&&Vt(e),Li.call(il,a)?il[a](e,a,o):Rn(e,'unknown document directive "'+a+'"')}if(qt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,qt(e,!0,-1)):f&&pt(e,"directives end mark is expected"),ia(e,e.lineIndent-1,ts,!1,!0),qt(e,!0,-1),e.checkLineBreaks&&Mr.test(e.input.slice(r,e.position))&&Rn(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Yn(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,qt(e,!0,-1));return}if(e.position<e.length-1)pt(e,"end of the stream or a document separator is expected");else return}function oo(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
64
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new ao(e,r),a=e.indexOf("\0");for(a!==-1&&(n.position=a,pt(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Xc(n);return n.documents}function ul(e,r,n){r!==null&&typeof r=="object"&&typeof n=="undefined"&&(n=r,r=null);var a=oo(e,n);if(typeof r!="function")return a;for(var o=0,f=a.length;o<f;o+=1)r(a[o])}function af(e,r){var n=oo(e,r);if(n.length!==0){if(n.length===1)return n[0];throw new rn("expected a single document in the stream, but found more")}}var Qc=ul,of=af,sf={loadAll:Qc,load:of},lf=Object.prototype.toString,so=Object.prototype.hasOwnProperty,is=65279,Zc=9,lo=10,uf=13,Ca=32,fl=33,as=34,os=35,cl=37,ff=38,_c=39,cf=42,Wr=44,ss=45,uo=58,df=61,pf=62,Ea=63,ls=64,dl=91,pl=93,hf=96,aa=123,vf=124,fo=125,Xr={};Xr[0]="\\0",Xr[7]="\\a",Xr[8]="\\b",Xr[9]="\\t",Xr[10]="\\n",Xr[11]="\\v",Xr[12]="\\f",Xr[13]="\\r",Xr[27]="\\e",Xr[34]='\\"',Xr[92]="\\\\",Xr[133]="\\N",Xr[160]="\\_",Xr[8232]="\\L",Xr[8233]="\\P";var co=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],qc=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Oa(e,r){var n,a,o,f,d,m,g;if(r===null)return{};for(n={},a=Object.keys(r),o=0,f=a.length;o<f;o+=1)d=a[o],m=String(r[d]),d.slice(0,2)==="!!"&&(d="tag:yaml.org,2002:"+d.slice(2)),g=e.compiledTypeMap.fallback[d],g&&so.call(g.styleAliases,m)&&(m=g.styleAliases[m]),n[d]=m;return n}function gf(e){var r,n,a;if(r=e.toString(16).toUpperCase(),e<=255)n="x",a=2;else if(e<=65535)n="u",a=4;else if(e<=4294967295)n="U",a=8;else throw new rn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Lr.repeat("0",a-r.length)+r}var mf=1,Ta=2;function po(e){this.schema=e.schema||mi,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Lr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Oa(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Ta:mf,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Pa(e,r){for(var n=Lr.repeat(" ",r),a=0,o=-1,f="",d,m=e.length;a<m;)o=e.indexOf(`
65
- `,a),o===-1?(d=e.slice(a),a=m):(d=e.slice(a,o+1),a=o+1),d.length&&d!==`
66
- `&&(f+=n),f+=d;return f}function oa(e,r){return`
67
- `+Lr.repeat(" ",e.indent*r)}function ho(e,r){var n,a,o;for(n=0,a=e.implicitTypes.length;n<a;n+=1)if(o=e.implicitTypes[n],o.resolve(r))return!0;return!1}function vo(e){return e===Ca||e===Zc}function go(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==is||65536<=e&&e<=1114111}function hl(e){return go(e)&&e!==is&&e!==uf&&e!==lo}function yi(e,r,n){var a=hl(e),o=a&&!vo(e);return(n?a:a&&e!==Wr&&e!==dl&&e!==pl&&e!==aa&&e!==fo)&&e!==os&&!(r===uo&&!o)||hl(r)&&!vo(r)&&e===os||r===uo&&o}function Ia(e){return go(e)&&e!==is&&!vo(e)&&e!==ss&&e!==Ea&&e!==uo&&e!==Wr&&e!==dl&&e!==pl&&e!==aa&&e!==fo&&e!==os&&e!==ff&&e!==cf&&e!==fl&&e!==vf&&e!==df&&e!==pf&&e!==_c&&e!==as&&e!==cl&&e!==ls&&e!==hf}function mo(e){return!vo(e)&&e!==uo}function yo(e,r){var n=e.charCodeAt(r),a;return n>=55296&&n<=56319&&r+1<e.length&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function vl(e){var r=/^\n* /;return r.test(e)}var yf=1,gl=2,bf=3,on=4,sa=5;function ed(e,r,n,a,o,f,d,m){var g,b=0,x=null,I=!1,N=!1,j=a!==-1,W=-1,ee=Ia(yo(e,0))&&mo(yo(e,e.length-1));if(r||d)for(g=0;g<e.length;b>=65536?g+=2:g++){if(b=yo(e,g),!go(b))return sa;ee=ee&&yi(b,x,m),x=b}else{for(g=0;g<e.length;b>=65536?g+=2:g++){if(b=yo(e,g),b===lo)I=!0,j&&(N=N||g-W-1>a&&e[W+1]!==" ",W=g);else if(!go(b))return sa;ee=ee&&yi(b,x,m),x=b}N=N||j&&g-W-1>a&&e[W+1]!==" "}return!I&&!N?ee&&!d&&!o(e)?yf:f===Ta?sa:gl:n>9&&vl(e)?sa:d?f===Ta?sa:gl:N?on:bf}function td(e,r,n,a,o){e.dump=function(){if(r.length===0)return e.quotingType===Ta?'""':"''";if(!e.noCompatMode&&(co.indexOf(r)!==-1||qc.test(r)))return e.quotingType===Ta?'"'+r+'"':"'"+r+"'";var f=e.indent*Math.max(1,n),d=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-f),m=a||e.flowLevel>-1&&n>=e.flowLevel;function g(b){return ho(e,b)}switch(ed(r,m,e.indent,d,g,e.quotingType,e.forceQuotes&&!a,o)){case yf:return r;case gl:return"'"+r.replace(/'/g,"''")+"'";case bf:return"|"+xf(r,e.indent)+ml(Pa(r,f));case on:return">"+xf(r,e.indent)+ml(Pa(Sf(r,d),f));case sa:return'"'+rd(r)+'"';default:throw new rn("impossible error: invalid scalar style")}}()}function xf(e,r){var n=vl(e)?String(r):"",a=e[e.length-1]===`
68
- `,o=a&&(e[e.length-2]===`
49
+ `+e.mark.snippet),a+" "+n):a}function Nt(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=yr(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Nt.prototype=Object.create(Error.prototype),Nt.prototype.constructor=Nt,Nt.prototype.toString=function(r){return this.name+": "+yr(this,r)};var Yt=Nt;function zn(e,r,n,a,s){var c="",p="",m=Math.floor(s/2)-1;return a-r>m&&(c=" ... ",r=a-m+c.length),n-a>m&&(p=" ...",n=a+m-p.length),{str:c+e.slice(r,n).replace(/\t/g,"\u2192")+p,pos:a-r+c.length}}function Ur(e,r){return kt.repeat(" ",r-e.length)+e}function Kr(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,a=[0],s=[],c,p=-1;c=n.exec(e.buffer);)s.push(c.index),a.push(c.index+c[0].length),e.position<=c.index&&p<0&&(p=a.length-2);p<0&&(p=a.length-1);var m="",v,y,b=Math.min(e.line+r.linesAfter,s.length).toString().length,I=r.maxLength-(r.indent+b+3);for(v=1;v<=r.linesBefore&&!(p-v<0);v++)y=zn(e.buffer,a[p-v],s[p-v],e.position-(a[p]-a[p-v]),I),m=kt.repeat(" ",r.indent)+Ur((e.line-v+1).toString(),b)+" | "+y.str+`
50
+ `+m;for(y=zn(e.buffer,a[p],s[p],e.position,I),m+=kt.repeat(" ",r.indent)+Ur((e.line+1).toString(),b)+" | "+y.str+`
51
+ `,m+=kt.repeat("-",r.indent+b+3+y.pos)+`^
52
+ `,v=1;v<=r.linesAfter&&!(p+v>=s.length);v++)y=zn(e.buffer,a[p+v],s[p+v],e.position-(a[p]-a[p+v]),I),m+=kt.repeat(" ",r.indent)+Ur((e.line+v+1).toString(),b)+" | "+y.str+`
53
+ `;return m.replace(/\n$/,"")}var vi=Kr,tn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],gi=["scalar","sequence","mapping"];function mi(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){r[String(a)]=n})}),r}function rn(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(tn.indexOf(n)===-1)throw new Yt('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=mi(r.styleAliases||null),gi.indexOf(this.kind)===-1)throw new Yt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var xr=rn;function Gn(e,r){var n=[];return e[r].forEach(function(a){var s=n.length;n.forEach(function(c,p){c.tag===a.tag&&c.kind===a.kind&&c.multi===a.multi&&(s=p)}),n[s]=a}),n}function Ui(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function a(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(a);return e}function Wi(e){return this.extend(e)}Wi.prototype.extend=function(r){var n=[],a=[];if(r instanceof xr)a.push(r);else if(Array.isArray(r))a=a.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(a=a.concat(r.explicit));else throw new Yt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(c){if(!(c instanceof xr))throw new Yt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new Yt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new Yt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(c){if(!(c instanceof xr))throw new Yt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Wi.prototype);return s.implicit=(this.implicit||[]).concat(n),s.explicit=(this.explicit||[]).concat(a),s.compiledImplicit=Gn(s,"implicit"),s.compiledExplicit=Gn(s,"explicit"),s.compiledTypeMap=Ui(s.compiledImplicit,s.compiledExplicit),s};var gn=Wi,un=new xr("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),mn=new xr("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),yn=new xr("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),On=new gn({explicit:[un,mn,yn]});function lo(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function $n(){return null}function fn(e){return e===null}var Cr=new xr("tag:yaml.org,2002:null",{kind:"scalar",resolve:lo,construct:$n,predicate:fn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function yi(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function kn(e){return e==="true"||e==="True"||e==="TRUE"}function Ta(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var uo=new xr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:yi,construct:kn,predicate:Ta,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function vr(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function lt(e){return 48<=e&&e<=55}function bi(e){return 48<=e&&e<=57}function na(e){if(e===null)return!1;var r=e.length,n=0,a=!1,s;if(!r)return!1;if(s=e[n],(s==="-"||s==="+")&&(s=e[++n]),s==="0"){if(n+1===r)return!0;if(s=e[++n],s==="b"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(s!=="0"&&s!=="1")return!1;a=!0}return a&&s!=="_"}if(s==="x"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(!vr(e.charCodeAt(n)))return!1;a=!0}return a&&s!=="_"}if(s==="o"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(!lt(e.charCodeAt(n)))return!1;a=!0}return a&&s!=="_"}}if(s==="_")return!1;for(;n<r;n++)if(s=e[n],s!=="_"){if(!bi(e.charCodeAt(n)))return!1;a=!0}return!(!a||s==="_")}function Rn(e){var r=e,n=1,a;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),a=r[0],(a==="-"||a==="+")&&(a==="-"&&(n=-1),r=r.slice(1),a=r[0]),r==="0")return 0;if(a==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function tr(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!kt.isNegativeZero(e)}var ti=new xr("tag:yaml.org,2002:int",{kind:"scalar",resolve:na,construct:Rn,predicate:tr,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ia=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Pa(e){return!(e===null||!ia.test(e)||e[e.length-1]==="_")}function B(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var se=/^[-+]?[0-9]+e/;function Me(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(kt.isNegativeZero(e))return"-0.0";return n=e.toString(10),se.test(n)?n.replace("e",".e"):n}function We(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||kt.isNegativeZero(e))}var It=new xr("tag:yaml.org,2002:float",{kind:"scalar",resolve:Pa,construct:B,predicate:We,represent:Me,defaultStyle:"lowercase"}),Vt=On.extend({implicit:[Cr,uo,ti,It]}),ir=Vt,ut=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Tn=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 qo(e){return e===null?!1:ut.exec(e)!==null||Tn.exec(e)!==null}function _o(e){var r,n,a,s,c,p,m,v=0,y=null,b,I,R;if(r=ut.exec(e),r===null&&(r=Tn.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],a=+r[2]-1,s=+r[3],!r[4])return new Date(Date.UTC(n,a,s));if(c=+r[4],p=+r[5],m=+r[6],r[7]){for(v=r[7].slice(0,3);v.length<3;)v+="0";v=+v}return r[9]&&(b=+r[10],I=+(r[11]||0),y=(b*60+I)*6e4,r[9]==="-"&&(y=-y)),R=new Date(Date.UTC(n,a,s,c,p,m,v)),y&&R.setTime(R.getTime()-y),R}function ri(e){return e.toISOString()}var al=new xr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qo,construct:_o,instanceOf:Date,represent:ri});function Cu(e){return e==="<<"||e===null}var Ia=new xr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Cu}),fo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
54
+ \r`;function Eu(e){if(e===null)return!1;var r,n,a=0,s=e.length,c=fo;for(n=0;n<s;n++)if(r=c.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;a+=6}return a%8===0}function ol(e){var r,n,a=e.replace(/[\r\n=]/g,""),s=a.length,c=fo,p=0,m=[];for(r=0;r<s;r++)r%4===0&&r&&(m.push(p>>16&255),m.push(p>>8&255),m.push(p&255)),p=p<<6|c.indexOf(a.charAt(r));return n=s%4*6,n===0?(m.push(p>>16&255),m.push(p>>8&255),m.push(p&255)):n===18?(m.push(p>>10&255),m.push(p>>2&255)):n===12&&m.push(p>>4&255),new Uint8Array(m)}function Ou(e){var r="",n=0,a,s,c=e.length,p=fo;for(a=0;a<c;a++)a%3===0&&a&&(r+=p[n>>18&63],r+=p[n>>12&63],r+=p[n>>6&63],r+=p[n&63]),n=(n<<8)+e[a];return s=c%3,s===0?(r+=p[n>>18&63],r+=p[n>>12&63],r+=p[n>>6&63],r+=p[n&63]):s===2?(r+=p[n>>10&63],r+=p[n>>4&63],r+=p[n<<2&63],r+=p[64]):s===1&&(r+=p[n>>2&63],r+=p[n<<4&63],r+=p[64],r+=p[64]),r}function Tu(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var sl=new xr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Eu,construct:ol,predicate:Tu,represent:Ou}),Pu=Object.prototype.hasOwnProperty,Tc=Object.prototype.toString;function Pc(e){if(e===null)return!0;var r=[],n,a,s,c,p,m=e;for(n=0,a=m.length;n<a;n+=1){if(s=m[n],p=!1,Tc.call(s)!=="[object Object]")return!1;for(c in s)if(Pu.call(s,c))if(!p)p=!0;else return!1;if(!p)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function Iu(e){return e!==null?e:[]}var ni=new xr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Pc,construct:Iu}),Ic=Object.prototype.toString;function Fc(e){if(e===null)return!0;var r,n,a,s,c,p=e;for(c=new Array(p.length),r=0,n=p.length;r<n;r+=1){if(a=p[r],Ic.call(a)!=="[object Object]"||(s=Object.keys(a),s.length!==1))return!1;c[r]=[s[0],a[s[0]]]}return!0}function es(e){if(e===null)return[];var r,n,a,s,c,p=e;for(c=new Array(p.length),r=0,n=p.length;r<n;r+=1)a=p[r],s=Object.keys(a),c[r]=[s[0],a[s[0]]];return c}var Fa=new xr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Fc,construct:es}),kc=Object.prototype.hasOwnProperty;function Rc(e){if(e===null)return!0;var r,n=e;for(r in n)if(kc.call(n,r)&&n[r]!==null)return!1;return!0}function Mc(e){return e!==null?e:{}}var Fu=new xr("tag:yaml.org,2002:set",{kind:"mapping",resolve:Rc,construct:Mc}),co=ir.extend({implicit:[al,Ia],explicit:[sl,ni,Fa,Fu]}),xi=Object.prototype.hasOwnProperty,ts=1,ll=2,ul=3,aa=4,ka=1,fl=2,cl=3,ku=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,rs=/[\x85\u2028\u2029]/,Lc=/[,\[\]\{\}]/,dl=/^(?:!|!!|![a-z\-]+!)$/i,Mn=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ru(e){return Object.prototype.toString.call(e)}function ii(e){return e===10||e===13}function Si(e){return e===9||e===32}function cn(e){return e===9||e===32||e===10||e===13}function Pn(e){return e===44||e===91||e===93||e===123||e===125}function pl(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function wi(e){return e===120?2:e===117?4:e===85?8:0}function ns(e){return 48<=e&&e<=57?e-48:-1}function is(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
55
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Ra(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var Mu=new Array(256),Lu=new Array(256),Ma=0;Ma<256;Ma++)Mu[Ma]=is(Ma)?1:0,Lu[Ma]=is(Ma);function Nc(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||co,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function hl(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=vi(n),new Yt(r,n)}function mt(e,r){throw hl(e,r)}function as(e,r){e.onWarning&&e.onWarning.call(null,hl(e,r))}var Nu={YAML:function(r,n,a){var s,c,p;r.version!==null&&mt(r,"duplication of %YAML directive"),a.length!==1&&mt(r,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),s===null&&mt(r,"ill-formed argument of the YAML directive"),c=parseInt(s[1],10),p=parseInt(s[2],10),c!==1&&mt(r,"unacceptable YAML version of the document"),r.version=a[0],r.checkLineBreaks=p<2,p!==1&&p!==2&&as(r,"unsupported YAML version of the document")},TAG:function(r,n,a){var s,c;a.length!==2&&mt(r,"TAG directive accepts exactly two arguments"),s=a[0],c=a[1],dl.test(s)||mt(r,"ill-formed tag handle (first argument) of the TAG directive"),xi.call(r.tagMap,s)&&mt(r,'there is a previously declared suffix for "'+s+'" tag handle'),Mn.test(c)||mt(r,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch(p){mt(r,"tag prefix is malformed: "+c)}r.tagMap[s]=c}};function Hi(e,r,n,a){var s,c,p,m;if(r<n){if(m=e.input.slice(r,n),a)for(s=0,c=m.length;s<c;s+=1)p=m.charCodeAt(s),p===9||32<=p&&p<=1114111||mt(e,"expected valid JSON character");else ku.test(m)&&mt(e,"the stream contains non-printable characters");e.result+=m}}function Du(e,r,n,a){var s,c,p,m;for(kt.isObject(n)||mt(e,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(n),p=0,m=s.length;p<m;p+=1)c=s[p],xi.call(r,c)||(r[c]=n[c],a[c]=!0)}function oa(e,r,n,a,s,c,p,m,v){var y,b;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),y=0,b=s.length;y<b;y+=1)Array.isArray(s[y])&&mt(e,"nested arrays are not supported inside keys"),typeof s=="object"&&Ru(s[y])==="[object Object]"&&(s[y]="[object Object]");if(typeof s=="object"&&Ru(s)==="[object Object]"&&(s="[object Object]"),s=String(s),r===null&&(r={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(y=0,b=c.length;y<b;y+=1)Du(e,r,c[y],n);else Du(e,r,c,n);else!e.json&&!xi.call(n,s)&&xi.call(r,s)&&(e.line=p||e.line,e.lineStart=m||e.lineStart,e.position=v||e.position,mt(e,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(r,s,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[s]=c,delete n[s];return r}function vl(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):mt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Tr(e,r,n){for(var a=0,s=e.input.charCodeAt(e.position);s!==0;){for(;Si(s);)s===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(r&&s===35)do s=e.input.charCodeAt(++e.position);while(s!==10&&s!==13&&s!==0);if(ii(s))for(vl(e),s=e.input.charCodeAt(e.position),a++,e.lineIndent=0;s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);else break}return n!==-1&&a!==0&&e.lineIndent<n&&as(e,"deficient indentation"),a}function sa(e){var r=e.position,n;return n=e.input.charCodeAt(r),!!((n===45||n===46)&&n===e.input.charCodeAt(r+1)&&n===e.input.charCodeAt(r+2)&&(r+=3,n=e.input.charCodeAt(r),n===0||cn(n)))}function zi(e,r){r===1?e.result+=" ":r>1&&(e.result+=kt.repeat(`
56
+ `,r-1))}function Dc(e,r,n){var a,s,c,p,m,v,y,b,I=e.kind,R=e.result,N;if(N=e.input.charCodeAt(e.position),cn(N)||Pn(N)||N===35||N===38||N===42||N===33||N===124||N===62||N===39||N===34||N===37||N===64||N===96||(N===63||N===45)&&(s=e.input.charCodeAt(e.position+1),cn(s)||n&&Pn(s)))return!1;for(e.kind="scalar",e.result="",c=p=e.position,m=!1;N!==0;){if(N===58){if(s=e.input.charCodeAt(e.position+1),cn(s)||n&&Pn(s))break}else if(N===35){if(a=e.input.charCodeAt(e.position-1),cn(a))break}else{if(e.position===e.lineStart&&sa(e)||n&&Pn(N))break;if(ii(N))if(v=e.line,y=e.lineStart,b=e.lineIndent,Tr(e,!1,-1),e.lineIndent>=r){m=!0,N=e.input.charCodeAt(e.position);continue}else{e.position=p,e.line=v,e.lineStart=y,e.lineIndent=b;break}}m&&(Hi(e,c,p,!1),zi(e,e.line-v),c=p=e.position,m=!1),Si(N)||(p=e.position+1),N=e.input.charCodeAt(++e.position)}return Hi(e,c,p,!1),e.result?!0:(e.kind=I,e.result=R,!1)}function Bc(e,r){var n,a,s;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=s=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Hi(e,a,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)a=e.position,e.position++,s=e.position;else return!0;else ii(n)?(Hi(e,a,s,!0),zi(e,Tr(e,!1,r)),a=s=e.position):e.position===e.lineStart&&sa(e)?mt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);mt(e,"unexpected end of the stream within a single quoted scalar")}function jc(e,r){var n,a,s,c,p,m;if(m=e.input.charCodeAt(e.position),m!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(m=e.input.charCodeAt(e.position))!==0;){if(m===34)return Hi(e,n,e.position,!0),e.position++,!0;if(m===92){if(Hi(e,n,e.position,!0),m=e.input.charCodeAt(++e.position),ii(m))Tr(e,!1,r);else if(m<256&&Mu[m])e.result+=Lu[m],e.position++;else if((p=wi(m))>0){for(s=p,c=0;s>0;s--)m=e.input.charCodeAt(++e.position),(p=pl(m))>=0?c=(c<<4)+p:mt(e,"expected hexadecimal character");e.result+=Ra(c),e.position++}else mt(e,"unknown escape sequence");n=a=e.position}else ii(m)?(Hi(e,n,a,!0),zi(e,Tr(e,!1,r)),n=a=e.position):e.position===e.lineStart&&sa(e)?mt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}mt(e,"unexpected end of the stream within a double quoted scalar")}function po(e,r){var n=!0,a,s,c,p=e.tag,m,v=e.anchor,y,b,I,R,N,G=Object.create(null),ee,q,oe,ae;if(ae=e.input.charCodeAt(e.position),ae===91)b=93,N=!1,m=[];else if(ae===123)b=125,N=!0,m={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=m),ae=e.input.charCodeAt(++e.position);ae!==0;){if(Tr(e,!0,r),ae=e.input.charCodeAt(e.position),ae===b)return e.position++,e.tag=p,e.anchor=v,e.kind=N?"mapping":"sequence",e.result=m,!0;n?ae===44&&mt(e,"expected the node content, but found ','"):mt(e,"missed comma between flow collection entries"),q=ee=oe=null,I=R=!1,ae===63&&(y=e.input.charCodeAt(e.position+1),cn(y)&&(I=R=!0,e.position++,Tr(e,!0,r))),a=e.line,s=e.lineStart,c=e.position,La(e,r,ts,!1,!0),q=e.tag,ee=e.result,Tr(e,!0,r),ae=e.input.charCodeAt(e.position),(R||e.line===a)&&ae===58&&(I=!0,ae=e.input.charCodeAt(++e.position),Tr(e,!0,r),La(e,r,ts,!1,!0),oe=e.result),N?oa(e,m,G,q,ee,oe,a,s,c):I?m.push(oa(e,null,G,q,ee,oe,a,s,c)):m.push(ee),Tr(e,!0,r),ae=e.input.charCodeAt(e.position),ae===44?(n=!0,ae=e.input.charCodeAt(++e.position)):n=!1}mt(e,"unexpected end of the stream within a flow collection")}function Wr(e,r){var n,a,s=ka,c=!1,p=!1,m=r,v=0,y=!1,b,I;if(I=e.input.charCodeAt(e.position),I===124)a=!1;else if(I===62)a=!0;else return!1;for(e.kind="scalar",e.result="";I!==0;)if(I=e.input.charCodeAt(++e.position),I===43||I===45)ka===s?s=I===43?cl:fl:mt(e,"repeat of a chomping mode identifier");else if((b=ns(I))>=0)b===0?mt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?mt(e,"repeat of an indentation width identifier"):(m=r+b-1,p=!0);else break;if(Si(I)){do I=e.input.charCodeAt(++e.position);while(Si(I));if(I===35)do I=e.input.charCodeAt(++e.position);while(!ii(I)&&I!==0)}for(;I!==0;){for(vl(e),e.lineIndent=0,I=e.input.charCodeAt(e.position);(!p||e.lineIndent<m)&&I===32;)e.lineIndent++,I=e.input.charCodeAt(++e.position);if(!p&&e.lineIndent>m&&(m=e.lineIndent),ii(I)){v++;continue}if(e.lineIndent<m){s===cl?e.result+=kt.repeat(`
57
+ `,c?1+v:v):s===ka&&c&&(e.result+=`
58
+ `);break}for(a?Si(I)?(y=!0,e.result+=kt.repeat(`
59
+ `,c?1+v:v)):y?(y=!1,e.result+=kt.repeat(`
60
+ `,v+1)):v===0?c&&(e.result+=" "):e.result+=kt.repeat(`
61
+ `,v):e.result+=kt.repeat(`
62
+ `,c?1+v:v),c=!0,p=!0,v=0,n=e.position;!ii(I)&&I!==0;)I=e.input.charCodeAt(++e.position);Hi(e,n,e.position,!1)}return!0}function Bu(e,r){var n,a=e.tag,s=e.anchor,c=[],p,m=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),v=e.input.charCodeAt(e.position);v!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,mt(e,"tab characters must not be used in indentation")),!(v!==45||(p=e.input.charCodeAt(e.position+1),!cn(p))));){if(m=!0,e.position++,Tr(e,!0,-1)&&e.lineIndent<=r){c.push(null),v=e.input.charCodeAt(e.position);continue}if(n=e.line,La(e,r,ul,!1,!0),c.push(e.result),Tr(e,!0,-1),v=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>r)&&v!==0)mt(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return m?(e.tag=a,e.anchor=s,e.kind="sequence",e.result=c,!0):!1}function ju(e,r,n){var a,s,c,p,m,v,y=e.tag,b=e.anchor,I={},R=Object.create(null),N=null,G=null,ee=null,q=!1,oe=!1,ae;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=I),ae=e.input.charCodeAt(e.position);ae!==0;){if(!q&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,mt(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),c=e.line,(ae===63||ae===58)&&cn(a))ae===63?(q&&(oa(e,I,R,N,G,null,p,m,v),N=G=ee=null),oe=!0,q=!0,s=!0):q?(q=!1,s=!0):mt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,ae=a;else{if(p=e.line,m=e.lineStart,v=e.position,!La(e,n,ll,!1,!0))break;if(e.line===c){for(ae=e.input.charCodeAt(e.position);Si(ae);)ae=e.input.charCodeAt(++e.position);if(ae===58)ae=e.input.charCodeAt(++e.position),cn(ae)||mt(e,"a whitespace character is expected after the key-value separator within a block mapping"),q&&(oa(e,I,R,N,G,null,p,m,v),N=G=ee=null),oe=!0,q=!1,s=!1,N=e.tag,G=e.result;else if(oe)mt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=y,e.anchor=b,!0}else if(oe)mt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=y,e.anchor=b,!0}if((e.line===c||e.lineIndent>r)&&(q&&(p=e.line,m=e.lineStart,v=e.position),La(e,r,aa,!0,s)&&(q?G=e.result:ee=e.result),q||(oa(e,I,R,N,G,ee,p,m,v),N=G=ee=null),Tr(e,!0,-1),ae=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&ae!==0)mt(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return q&&oa(e,I,R,N,G,null,p,m,v),oe&&(e.tag=y,e.anchor=b,e.kind="mapping",e.result=I),oe}function ho(e){var r,n=!1,a=!1,s,c,p;if(p=e.input.charCodeAt(e.position),p!==33)return!1;if(e.tag!==null&&mt(e,"duplication of a tag property"),p=e.input.charCodeAt(++e.position),p===60?(n=!0,p=e.input.charCodeAt(++e.position)):p===33?(a=!0,s="!!",p=e.input.charCodeAt(++e.position)):s="!",r=e.position,n){do p=e.input.charCodeAt(++e.position);while(p!==0&&p!==62);e.position<e.length?(c=e.input.slice(r,e.position),p=e.input.charCodeAt(++e.position)):mt(e,"unexpected end of the stream within a verbatim tag")}else{for(;p!==0&&!cn(p);)p===33&&(a?mt(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(r-1,e.position+1),dl.test(s)||mt(e,"named tag handle cannot contain such characters"),a=!0,r=e.position+1)),p=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),Lc.test(c)&&mt(e,"tag suffix cannot contain flow indicator characters")}c&&!Mn.test(c)&&mt(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch(m){mt(e,"tag name is malformed: "+c)}return n?e.tag=c:xi.call(e.tagMap,s)?e.tag=e.tagMap[s]+c:s==="!"?e.tag="!"+c:s==="!!"?e.tag="tag:yaml.org,2002:"+c:mt(e,'undeclared tag handle "'+s+'"'),!0}function Vc(e){var r,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&mt(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!cn(n)&&!Pn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&mt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function Vu(e){var r,n,a;if(a=e.input.charCodeAt(e.position),a!==42)return!1;for(a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!cn(a)&&!Pn(a);)a=e.input.charCodeAt(++e.position);return e.position===r&&mt(e,"name of an alias node must contain at least one character"),n=e.input.slice(r,e.position),xi.call(e.anchorMap,n)||mt(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Tr(e,!0,-1),!0}function La(e,r,n,a,s){var c,p,m,v=1,y=!1,b=!1,I,R,N,G,ee,q;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=p=m=aa===n||ul===n,a&&Tr(e,!0,-1)&&(y=!0,e.lineIndent>r?v=1:e.lineIndent===r?v=0:e.lineIndent<r&&(v=-1)),v===1)for(;ho(e)||Vc(e);)Tr(e,!0,-1)?(y=!0,m=c,e.lineIndent>r?v=1:e.lineIndent===r?v=0:e.lineIndent<r&&(v=-1)):m=!1;if(m&&(m=y||s),(v===1||aa===n)&&(ts===n||ll===n?ee=r:ee=r+1,q=e.position-e.lineStart,v===1?m&&(Bu(e,q)||ju(e,q,ee))||po(e,ee)?b=!0:(p&&Wr(e,ee)||Bc(e,ee)||jc(e,ee)?b=!0:Vu(e)?(b=!0,(e.tag!==null||e.anchor!==null)&&mt(e,"alias node should not have any properties")):Dc(e,ee,ts===n)&&(b=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):v===0&&(b=m&&Bu(e,q))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&mt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),I=0,R=e.implicitTypes.length;I<R;I+=1)if(G=e.implicitTypes[I],G.resolve(e.result)){e.result=G.construct(e.result),e.tag=G.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(xi.call(e.typeMap[e.kind||"fallback"],e.tag))G=e.typeMap[e.kind||"fallback"][e.tag];else for(G=null,N=e.typeMap.multi[e.kind||"fallback"],I=0,R=N.length;I<R;I+=1)if(e.tag.slice(0,N[I].tag.length)===N[I].tag){G=N[I];break}G||mt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&G.kind!==e.kind&&mt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+G.kind+'", not "'+e.kind+'"'),G.resolve(e.result,e.tag)?(e.result=G.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):mt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||b}function gl(e){var r=e.position,n,a,s,c=!1,p;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(p=e.input.charCodeAt(e.position))!==0&&(Tr(e,!0,-1),p=e.input.charCodeAt(e.position),!(e.lineIndent>0||p!==37));){for(c=!0,p=e.input.charCodeAt(++e.position),n=e.position;p!==0&&!cn(p);)p=e.input.charCodeAt(++e.position);for(a=e.input.slice(n,e.position),s=[],a.length<1&&mt(e,"directive name must not be less than one character in length");p!==0;){for(;Si(p);)p=e.input.charCodeAt(++e.position);if(p===35){do p=e.input.charCodeAt(++e.position);while(p!==0&&!ii(p));break}if(ii(p))break;for(n=e.position;p!==0&&!cn(p);)p=e.input.charCodeAt(++e.position);s.push(e.input.slice(n,e.position))}p!==0&&vl(e),xi.call(Nu,a)?Nu[a](e,a,s):as(e,'unknown document directive "'+a+'"')}if(Tr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Tr(e,!0,-1)):c&&mt(e,"directives end mark is expected"),La(e,e.lineIndent-1,aa,!1,!0),Tr(e,!0,-1),e.checkLineBreaks&&rs.test(e.input.slice(r,e.position))&&as(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&sa(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Tr(e,!0,-1));return}if(e.position<e.length-1)mt(e,"end of the stream or a document separator is expected");else return}function ml(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
63
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new Nc(e,r),a=e.indexOf("\0");for(a!==-1&&(n.position=a,mt(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)gl(n);return n.documents}function Uc(e,r,n){r!==null&&typeof r=="object"&&typeof n=="undefined"&&(n=r,r=null);var a=ml(e,n);if(typeof r!="function")return a;for(var s=0,c=a.length;s<c;s+=1)r(a[s])}function Wc(e,r){var n=ml(e,r);if(n.length!==0){if(n.length===1)return n[0];throw new Yt("expected a single document in the stream, but found more")}}var Uu=Uc,Wu=Wc,Hu={loadAll:Uu,load:Wu},Na=Object.prototype.toString,ai=Object.prototype.hasOwnProperty,Da=65279,yl=9,Ba=10,oi=13,la=32,bl=33,Hc=34,os=35,zc=37,zu=38,xl=39,ja=42,Kn=44,Gu=45,vo=58,Gc=61,$c=62,Kc=63,$u=64,Sl=91,Va=93,Ku=96,wl=123,Al=124,go=125,Yr={};Yr[0]="\\0",Yr[7]="\\a",Yr[8]="\\b",Yr[9]="\\t",Yr[10]="\\n",Yr[11]="\\v",Yr[12]="\\f",Yr[13]="\\r",Yr[27]="\\e",Yr[34]='\\"',Yr[92]="\\\\",Yr[133]="\\N",Yr[160]="\\_",Yr[8232]="\\L",Yr[8233]="\\P";var ss=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Yn=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Yu(e,r){var n,a,s,c,p,m,v;if(r===null)return{};for(n={},a=Object.keys(r),s=0,c=a.length;s<c;s+=1)p=a[s],m=String(r[p]),p.slice(0,2)==="!!"&&(p="tag:yaml.org,2002:"+p.slice(2)),v=e.compiledTypeMap.fallback[p],v&&ai.call(v.styleAliases,m)&&(m=v.styleAliases[m]),n[p]=m;return n}function Cl(e){var r,n,a;if(r=e.toString(16).toUpperCase(),e<=255)n="x",a=2;else if(e<=65535)n="u",a=4;else if(e<=4294967295)n="U",a=8;else throw new Yt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+kt.repeat("0",a-r.length)+r}var El=1,Ua=2;function Ju(e){this.schema=e.schema||co,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=kt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Yu(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Ua:El,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ls(e,r){for(var n=kt.repeat(" ",r),a=0,s=-1,c="",p,m=e.length;a<m;)s=e.indexOf(`
64
+ `,a),s===-1?(p=e.slice(a),a=m):(p=e.slice(a,s+1),a=s+1),p.length&&p!==`
65
+ `&&(c+=n),c+=p;return c}function Ol(e,r){return`
66
+ `+kt.repeat(" ",e.indent*r)}function Yc(e,r){var n,a,s;for(n=0,a=e.implicitTypes.length;n<a;n+=1)if(s=e.implicitTypes[n],s.resolve(r))return!0;return!1}function us(e){return e===la||e===yl}function Jn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Da||65536<=e&&e<=1114111}function ua(e){return Jn(e)&&e!==Da&&e!==oi&&e!==Ba}function fa(e,r,n){var a=ua(e),s=a&&!us(e);return(n?a:a&&e!==Kn&&e!==Sl&&e!==Va&&e!==wl&&e!==go)&&e!==os&&!(r===vo&&!s)||ua(r)&&!us(r)&&e===os||r===vo&&s}function Tl(e){return Jn(e)&&e!==Da&&!us(e)&&e!==Gu&&e!==Kc&&e!==vo&&e!==Kn&&e!==Sl&&e!==Va&&e!==wl&&e!==go&&e!==os&&e!==zu&&e!==ja&&e!==bl&&e!==Al&&e!==Gc&&e!==$c&&e!==xl&&e!==Hc&&e!==zc&&e!==$u&&e!==Ku}function Pl(e){return!us(e)&&e!==vo}function Wa(e,r){var n=e.charCodeAt(r),a;return n>=55296&&n<=56319&&r+1<e.length&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function fs(e){var r=/^\n* /;return r.test(e)}var Gi=1,Ai=2,nn=3,Ci=4,In=5;function cs(e,r,n,a,s,c,p,m){var v,y=0,b=null,I=!1,R=!1,N=a!==-1,G=-1,ee=Tl(Wa(e,0))&&Pl(Wa(e,e.length-1));if(r||p)for(v=0;v<e.length;y>=65536?v+=2:v++){if(y=Wa(e,v),!Jn(y))return In;ee=ee&&fa(y,b,m),b=y}else{for(v=0;v<e.length;y>=65536?v+=2:v++){if(y=Wa(e,v),y===Ba)I=!0,N&&(R=R||v-G-1>a&&e[G+1]!==" ",G=v);else if(!Jn(y))return In;ee=ee&&fa(y,b,m),b=y}R=R||N&&v-G-1>a&&e[G+1]!==" "}return!I&&!R?ee&&!p&&!s(e)?Gi:c===Ua?In:Ai:n>9&&fs(e)?In:p?c===Ua?In:Ai:R?Ci:nn}function Jc(e,r,n,a,s){e.dump=function(){if(r.length===0)return e.quotingType===Ua?'""':"''";if(!e.noCompatMode&&(ss.indexOf(r)!==-1||Yn.test(r)))return e.quotingType===Ua?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,n),p=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),m=a||e.flowLevel>-1&&n>=e.flowLevel;function v(y){return Yc(e,y)}switch(cs(r,m,e.indent,p,v,e.quotingType,e.forceQuotes&&!a,s)){case Gi:return r;case Ai:return"'"+r.replace(/'/g,"''")+"'";case nn:return"|"+Il(r,e.indent)+Ha(ls(r,c));case Ci:return">"+Il(r,e.indent)+Ha(ls(Xu(r,p),c));case In:return'"'+ps(r)+'"';default:throw new Yt("impossible error: invalid scalar style")}}()}function Il(e,r){var n=fs(e)?String(r):"",a=e[e.length-1]===`
67
+ `,s=a&&(e[e.length-2]===`
69
68
  `||e===`
70
- `),f=o?"+":a?"":"-";return n+f+`
71
- `}function ml(e){return e[e.length-1]===`
72
- `?e.slice(0,-1):e}function Sf(e,r){for(var n=/(\n+)([^\n]*)/g,a=function(){var b=e.indexOf(`
73
- `);return b=b!==-1?b:e.length,n.lastIndex=b,yl(e.slice(0,b),r)}(),o=e[0]===`
74
- `||e[0]===" ",f,d;d=n.exec(e);){var m=d[1],g=d[2];f=g[0]===" ",a+=m+(!o&&!f&&g!==""?`
75
- `:"")+yl(g,r),o=f}return a}function yl(e,r){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,a,o=0,f,d=0,m=0,g="";a=n.exec(e);)m=a.index,m-o>r&&(f=d>o?d:m,g+=`
76
- `+e.slice(o,f),o=f+1),d=m;return g+=`
77
- `,e.length-o>r&&d>o?g+=e.slice(o,d)+`
78
- `+e.slice(d+1):g+=e.slice(o),g.slice(1)}function rd(e){for(var r="",n=0,a,o=0;o<e.length;n>=65536?o+=2:o++)n=yo(e,o),a=Xr[n],!a&&go(n)?(r+=e[o],n>=65536&&(r+=e[o+1])):r+=a||gf(n);return r}function nd(e,r,n){var a="",o=e.tag,f,d,m;for(f=0,d=n.length;f<d;f+=1)m=n[f],e.replacer&&(m=e.replacer.call(n,String(f),m)),(On(e,r,m,!1,!1)||typeof m=="undefined"&&On(e,r,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=o,e.dump="["+a+"]"}function wf(e,r,n,a){var o="",f=e.tag,d,m,g;for(d=0,m=n.length;d<m;d+=1)g=n[d],e.replacer&&(g=e.replacer.call(n,String(d),g)),(On(e,r+1,g,!0,!0,!1,!0)||typeof g=="undefined"&&On(e,r+1,null,!0,!0,!1,!0))&&((!a||o!=="")&&(o+=oa(e,r)),e.dump&&lo===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=f,e.dump=o||"[]"}function Di(e,r,n){var a="",o=e.tag,f=Object.keys(n),d,m,g,b,x;for(d=0,m=f.length;d<m;d+=1)x="",a!==""&&(x+=", "),e.condenseFlow&&(x+='"'),g=f[d],b=n[g],e.replacer&&(b=e.replacer.call(n,g,b)),On(e,r,g,!1,!1)&&(e.dump.length>1024&&(x+="? "),x+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),On(e,r,b,!1,!1)&&(x+=e.dump,a+=x));e.tag=o,e.dump="{"+a+"}"}function bo(e,r,n,a){var o="",f=e.tag,d=Object.keys(n),m,g,b,x,I,N;if(e.sortKeys===!0)d.sort();else if(typeof e.sortKeys=="function")d.sort(e.sortKeys);else if(e.sortKeys)throw new rn("sortKeys must be a boolean or a function");for(m=0,g=d.length;m<g;m+=1)N="",(!a||o!=="")&&(N+=oa(e,r)),b=d[m],x=n[b],e.replacer&&(x=e.replacer.call(n,b,x)),On(e,r+1,b,!0,!0,!0)&&(I=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,I&&(e.dump&&lo===e.dump.charCodeAt(0)?N+="?":N+="? "),N+=e.dump,I&&(N+=oa(e,r)),On(e,r+1,x,!0,I)&&(e.dump&&lo===e.dump.charCodeAt(0)?N+=":":N+=": ",N+=e.dump,o+=N));e.tag=f,e.dump=o||"{}"}function xo(e,r,n){var a,o,f,d,m,g;for(o=n?e.explicitTypes:e.implicitTypes,f=0,d=o.length;f<d;f+=1)if(m=o[f],(m.instanceOf||m.predicate)&&(!m.instanceOf||typeof r=="object"&&r instanceof m.instanceOf)&&(!m.predicate||m.predicate(r))){if(n?m.multi&&m.representName?e.tag=m.representName(r):e.tag=m.tag:e.tag="?",m.represent){if(g=e.styleMap[m.tag]||m.defaultStyle,lf.call(m.represent)==="[object Function]")a=m.represent(r,g);else if(so.call(m.represent,g))a=m.represent[g](r,g);else throw new rn("!<"+m.tag+'> tag resolver accepts not "'+g+'" style');e.dump=a}return!0}return!1}function On(e,r,n,a,o,f,d){e.tag=null,e.dump=n,xo(e,n,!1)||xo(e,n,!0);var m=lf.call(e.dump),g=a,b;a&&(a=e.flowLevel<0||e.flowLevel>r);var x=m==="[object Object]"||m==="[object Array]",I,N;if(x&&(I=e.duplicates.indexOf(n),N=I!==-1),(e.tag!==null&&e.tag!=="?"||N||e.indent!==2&&r>0)&&(o=!1),N&&e.usedDuplicates[I])e.dump="*ref_"+I;else{if(x&&N&&!e.usedDuplicates[I]&&(e.usedDuplicates[I]=!0),m==="[object Object]")a&&Object.keys(e.dump).length!==0?(bo(e,r,e.dump,o),N&&(e.dump="&ref_"+I+e.dump)):(Di(e,r,e.dump),N&&(e.dump="&ref_"+I+" "+e.dump));else if(m==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!d&&r>0?wf(e,r-1,e.dump,o):wf(e,r,e.dump,o),N&&(e.dump="&ref_"+I+e.dump)):(nd(e,r,e.dump),N&&(e.dump="&ref_"+I+" "+e.dump));else if(m==="[object String]")e.tag!=="?"&&td(e,e.dump,r,f,g);else{if(m==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new rn("unacceptable kind of an object to dump "+m)}e.tag!==null&&e.tag!=="?"&&(b=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?b="!"+b:b.slice(0,18)==="tag:yaml.org,2002:"?b="!!"+b.slice(18):b="!<"+b+">",e.dump=b+" "+e.dump)}return!0}function bi(e,r){var n=[],a=[],o,f;for(bl(e,n,a),o=0,f=a.length;o<f;o+=1)r.duplicates.push(n[a[o]]);r.usedDuplicates=new Array(f)}function bl(e,r,n){var a,o,f;if(e!==null&&typeof e=="object")if(o=r.indexOf(e),o!==-1)n.indexOf(o)===-1&&n.push(o);else if(r.push(e),Array.isArray(e))for(o=0,f=e.length;o<f;o+=1)bl(e[o],r,n);else for(a=Object.keys(e),o=0,f=a.length;o<f;o+=1)bl(e[a[o]],r,n)}function id(e,r){r=r||{};var n=new po(r);n.noRefs||bi(e,n);var a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),On(n,0,a,!0,!0)?n.dump+`
79
- `:""}var ka=id,Af={dump:ka};function us(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var Cf=or,fs=Ks,Fa=Du,xl=Zs,Sl=Qo,wl=mi,ad=sf.load,So=sf.loadAll,Ef=Af.dump,od=rn,Of={binary:eo,float:Xo,map:Nu,null:Xi,pairs:qs,set:Ri,timestamp:Hu,bool:Ko,int:ju,merge:zu,omap:Sa,seq:$o,str:Ys},cs=us("safeLoad","load"),sd=us("safeLoadAll","loadAll"),ld=us("safeDump","dump"),wo={Type:Cf,Schema:fs,FAILSAFE_SCHEMA:Fa,JSON_SCHEMA:xl,CORE_SCHEMA:Sl,DEFAULT_SCHEMA:wl,load:ad,loadAll:So,dump:Ef,YAMLException:od,types:Of,safeLoad:cs,safeLoadAll:sd,safeDump:ld};const Al=wo,Tf=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:window}(),{FormData:Pf,Blob:Ra,File:Cl}=Tf;function ud(e){if(Ds(e))return Bs(e)}function If(e){if(typeof vi!="undefined"&&Ti(e)!=null||e["@@iterator"]!=null)return xu(e)}function kf(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
80
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function la(e){return ud(e)||If(e)||Uo(e)||kf()}var El=s(71488),pn=s.n(El),Ao=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},fd=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function ua(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.escape,o=arguments.length>2?arguments[2]:void 0;return typeof e=="number"&&(e=e.toString()),typeof e!="string"||!e.length||!a?e:o?JSON.parse(e):$t()(r=la(e)).call(r,function(f){var d,m;if(fd(f)||Ao(f)&&a==="unsafe")return f;var g=new TextEncoder,b=$t()(d=$t()(m=ma()(g.encode(f))).call(m,function(x){var I;return pn()(I="0".concat(x.toString(16).toUpperCase())).call(I,-2)})).call(d,function(x){return"%".concat(x)}).join("");return b}).join("")}function Ol(e){var r=e.value;return Array.isArray(r)?cd(e):ar(r)==="object"?dd(e):pd(e)}function cd(e){var r=e.key,n=e.value,a=e.style,o=e.explode,f=e.escape,d=function(I){return ua(I,{escape:f})};if(a==="simple")return $t()(n).call(n,function(x){return d(x)}).join(",");if(a==="label")return".".concat($t()(n).call(n,function(x){return d(x)}).join("."));if(a==="matrix")return $t()(n).call(n,function(x){return d(x)}).reduce(function(x,I){var N;if(!x||o){var j,W;return ut()(j=ut()(W="".concat(x||"",";")).call(W,r,"=")).call(j,I)}return ut()(N="".concat(x,",")).call(N,I)},"");if(a==="form"){var m=o?"&".concat(r,"="):",";return $t()(n).call(n,function(x){return d(x)}).join(m)}if(a==="spaceDelimited"){var g=o?"".concat(r,"="):"";return $t()(n).call(n,function(x){return d(x)}).join(" ".concat(g))}if(a==="pipeDelimited"){var b=o?"".concat(r,"="):"";return $t()(n).call(n,function(x){return d(x)}).join("|".concat(b))}}function dd(e){var r=e.key,n=e.value,a=e.style,o=e.explode,f=e.escape,d=function(b){return ua(b,{escape:f})},m=Kt()(n);if(a==="simple")return m.reduce(function(g,b){var x,I,N,j=d(n[b]),W=o?"=":",",ee=g?"".concat(g,","):"";return ut()(x=ut()(I=ut()(N="".concat(ee)).call(N,b)).call(I,W)).call(x,j)},"");if(a==="label")return m.reduce(function(g,b){var x,I,N,j=d(n[b]),W=o?"=":".",ee=g?"".concat(g,"."):".";return ut()(x=ut()(I=ut()(N="".concat(ee)).call(N,b)).call(I,W)).call(x,j)},"");if(a==="matrix"&&o)return m.reduce(function(g,b){var x,I,N=d(n[b]),j=g?"".concat(g,";"):";";return ut()(x=ut()(I="".concat(j)).call(I,b,"=")).call(x,N)},"");if(a==="matrix")return m.reduce(function(g,b){var x,I,N=d(n[b]),j=g?"".concat(g,","):";".concat(r,"=");return ut()(x=ut()(I="".concat(j)).call(I,b,",")).call(x,N)},"");if(a==="form")return m.reduce(function(g,b){var x,I,N,j,W=d(n[b]),ee=g?ut()(x="".concat(g)).call(x,o?"&":","):"",te=o?"=":",";return ut()(I=ut()(N=ut()(j="".concat(ee)).call(j,b)).call(N,te)).call(I,W)},"")}function pd(e){var r=e.key,n=e.value,a=e.style,o=e.escape,f=function(g){return ua(g,{escape:o})};if(a==="simple")return f(n);if(a==="label")return".".concat(f(n));if(a==="matrix"){var d;return ut()(d=";".concat(r,"=")).call(d,f(n))}if(a==="form")return f(n);if(a==="deepObject")return f(n,{},!0)}var Ff=function(r,n){n.body=r};const hd=Ff;var Tl={serializeRes:Pl,mergeInQueryOrForm:Ln};function Co(e){return Eo.apply(this,arguments)}function Eo(){return Eo=Ii(ei().mark(function e(r){var n,a,o,f,d,m=arguments;return ei().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(n=m.length>1&&m[1]!==void 0?m[1]:{},ar(r)==="object"&&(n=r,r=n.url),n.headers=n.headers||{},Tl.mergeInQueryOrForm(n),n.headers&&Kt()(n.headers).forEach(function(x){var I=n.headers[x];typeof I=="string"&&(n.headers[x]=I.replace(/\n+/g," "))}),!n.requestInterceptor){b.next=12;break}return b.next=8,n.requestInterceptor(n);case 8:if(b.t0=b.sent,b.t0){b.next=11;break}b.t0=n;case 11:n=b.t0;case 12:return a=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(a)&&n.body instanceof Pf&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),b.prev=14,b.next=17,(n.userFetch||fetch)(n.url,n);case 17:return o=b.sent,b.next=20,Tl.serializeRes(o,r,n);case 20:if(o=b.sent,!n.responseInterceptor){b.next=28;break}return b.next=24,n.responseInterceptor(o);case 24:if(b.t1=b.sent,b.t1){b.next=27;break}b.t1=o;case 27:o=b.t1;case 28:b.next=39;break;case 30:if(b.prev=30,b.t2=b.catch(14),o){b.next=34;break}throw b.t2;case 34:throw f=new Error(o.statusText||"response status is ".concat(o.status)),f.status=o.status,f.statusCode=o.status,f.responseError=b.t2,f;case 39:if(o.ok){b.next=45;break}throw d=new Error(o.statusText||"response status is ".concat(o.status)),d.status=o.status,d.statusCode=o.status,d.response=o,d;case 45:return b.abrupt("return",o);case 46:case"end":return b.stop()}},e,null,[[14,30]])})),Eo.apply(this,arguments)}var Rf=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function vd(e,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(e):Al.load(e)}function Pl(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.loadSpec,o=a===void 0?!1:a,f={ok:e.ok,url:e.url||r,status:e.status,statusText:e.statusText,headers:Il(e.headers)},d=f.headers["content-type"],m=o||Rf(d),g=m?e.text:e.blob||e.buffer;return g.call(e).then(function(b){if(f.text=b,f.data=b,m)try{var x=vd(b,d);f.body=x,f.obj=x}catch(I){f.parseError=I}return f})}function La(e){var r=gi()(e).call(e,", ");return r?e.split(", "):e}function Il(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof wu()(e)!="function"?{}:ma()(wu()(e).call(e)).reduce(function(r,n){var a=$n(n,2),o=a[0],f=a[1];return r[o]=La(f),r},{})}function Ma(e,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(e&&ar(e)==="object"&&typeof e.uri=="string"):typeof Cl!="undefined"&&e instanceof Cl||typeof Ra!="undefined"&&e instanceof Ra||ArrayBuffer.isView(e)?!0:e!==null&&ar(e)==="object"&&typeof e.pipe=="function"}function Lf(e,r){return Array.isArray(e)&&e.some(function(n){return Ma(n,r)})}var gd={form:",",spaceDelimited:"%20",pipeDelimited:"|"},md={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function ur(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,o=r.allowEmptyValue,f=r.serializationOption,d=r.encoding,m=ar(r)==="object"&&!Array.isArray(r)?r.value:r,g=n?function(W){return W.toString()}:function(W){return encodeURIComponent(W)},b=g(e);if(typeof m=="undefined"&&o)return[[b,""]];if(Ma(m)||Lf(m))return[[b,m]];if(f)return Mf(e,m,n,f);if(d){if([ar(d.style),ar(d.explode),ar(d.allowReserved)].some(function(W){return W!=="undefined"})){var x=d.style,I=d.explode,N=d.allowReserved;return Mf(e,m,n,{style:x,explode:I,allowReserved:N})}if(d.contentType){if(d.contentType==="application/json"){var j=typeof m=="string"?m:Ya()(m);return[[b,g(j)]]}return[[b,g(m.toString())]]}return ar(m)!=="object"?[[b,g(m)]]:Array.isArray(m)&&m.every(function(W){return ar(W)!=="object"})?[[b,$t()(m).call(m,g).join(",")]]:[[b,g(Ya()(m))]]}return ar(m)!=="object"?[[b,g(m)]]:Array.isArray(m)?a==="multi"?[[b,$t()(m).call(m,g)]]:[[b,$t()(m).call(m,g).join(md[a||"csv"])]]:[[b,""]]}function Mf(e,r,n,a){var o,f=a.style||"form",d=typeof a.explode=="undefined"?f==="form":a.explode,m=n?!1:a&&a.allowReserved?"unsafe":"reserved",g=function(j){return ua(j,{escape:m})},b=n?function(N){return N}:function(N){return ua(N,{escape:m})};if(ar(r)!=="object")return[[b(e),g(r)]];if(Array.isArray(r))return d?[[b(e),$t()(r).call(r,g)]]:[[b(e),$t()(r).call(r,g).join(gd[f])]];if(f==="deepObject"){var x;return $t()(x=Kt()(r)).call(x,function(N){var j;return[b(ut()(j="".concat(e,"[")).call(j,N,"]")),g(r[N])]})}if(d){var I;return $t()(I=Kt()(r)).call(I,function(N){return[b(N),g(r[N])]})}return[[b(e),$t()(o=Kt()(r)).call(o,function(N){var j;return[ut()(j="".concat(b(N),",")).call(j,g(r[N]))]}).join(",")]]}function kl(e){return Ou()(e).reduce(function(r,n){var a=$n(n,2),o=a[0],f=a[1],d=Pi(ur(o,f,!0)),m;try{for(d.s();!(m=d.n()).done;){var g=$n(m.value,2),b=g[0],x=g[1];if(Array.isArray(x)){var I=Pi(x),N;try{for(I.s();!(N=I.n()).done;){var j=N.value;if(ArrayBuffer.isView(j)){var W=new Ra([j]);r.append(b,W)}else r.append(b,j)}}catch(te){I.e(te)}finally{I.f()}}else if(ArrayBuffer.isView(x)){var ee=new Ra([x]);r.append(b,ee)}else r.append(b,x)}}catch(te){d.e(te)}finally{d.f()}return r},new Pf)}function Na(e){var r=Kt()(e).reduce(function(n,a){var o=Pi(ur(a,e[a])),f;try{for(o.s();!(f=o.n()).done;){var d=$n(f.value,2),m=d[0],g=d[1];n[m]=g}}catch(b){o.e(b)}finally{o.f()}return n},{});return Wo().stringify(r,{encode:!1,indices:!1})||""}function Ln(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.url,n=r===void 0?"":r,a=e.query,o=e.form,f=function(){for(var ie=arguments.length,de=new Array(ie),we=0;we<ie;we++)de[we]=arguments[we];var xe=Er()(de).call(de,function(Ee){return Ee}).join("&");return xe?"?".concat(xe):""};if(o){var d=Kt()(o).some(function(se){var ie=o[se].value;return Ma(ie)||Lf(ie)}),m=e.headers["content-type"]||e.headers["Content-Type"];if(d||/multipart\/form-data/i.test(m)){var g=kl(e.form);hd(g,e)}else e.body=Na(o);delete e.form}if(a){var b=n.split("?"),x=$n(b,2),I=x[0],N=x[1],j="";if(N){var W=Wo().parse(N),ee=Kt()(a);ee.forEach(function(se){return delete W[se]}),j=Wo().stringify(W,{encode:!0})}var te=f(j,Na(a));e.url=I+te,delete e.query}return e}function ds(e,r,n){return n=n||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Tl.mergeInQueryOrForm(a),a=r(a),n(e(a))}}function ps(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Fl(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),yn(e,a.key,a)}}function Rl(e,r,n){return r&&Fl(e.prototype,r),n&&Fl(e,n),yn(e,"prototype",{writable:!1}),e}var Nf=s(35784),Df=s.n(Nf),Bf=s(22583),fa=s.n(Bf),Ll=s(93963),jf=s.n(Ll);/*!
69
+ `),c=s?"+":a?"":"-";return n+c+`
70
+ `}function Ha(e){return e[e.length-1]===`
71
+ `?e.slice(0,-1):e}function Xu(e,r){for(var n=/(\n+)([^\n]*)/g,a=function(){var y=e.indexOf(`
72
+ `);return y=y!==-1?y:e.length,n.lastIndex=y,ds(e.slice(0,y),r)}(),s=e[0]===`
73
+ `||e[0]===" ",c,p;p=n.exec(e);){var m=p[1],v=p[2];c=v[0]===" ",a+=m+(!s&&!c&&v!==""?`
74
+ `:"")+ds(v,r),s=c}return a}function ds(e,r){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,a,s=0,c,p=0,m=0,v="";a=n.exec(e);)m=a.index,m-s>r&&(c=p>s?p:m,v+=`
75
+ `+e.slice(s,c),s=c+1),p=m;return v+=`
76
+ `,e.length-s>r&&p>s?v+=e.slice(s,p)+`
77
+ `+e.slice(p+1):v+=e.slice(s),v.slice(1)}function ps(e){for(var r="",n=0,a,s=0;s<e.length;n>=65536?s+=2:s++)n=Wa(e,s),a=Yr[n],!a&&Jn(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=a||Cl(n);return r}function Xc(e,r,n){var a="",s=e.tag,c,p,m;for(c=0,p=n.length;c<p;c+=1)m=n[c],e.replacer&&(m=e.replacer.call(n,String(c),m)),(bn(e,r,m,!1,!1)||typeof m=="undefined"&&bn(e,r,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}function hs(e,r,n,a){var s="",c=e.tag,p,m,v;for(p=0,m=n.length;p<m;p+=1)v=n[p],e.replacer&&(v=e.replacer.call(n,String(p),v)),(bn(e,r+1,v,!0,!0,!1,!0)||typeof v=="undefined"&&bn(e,r+1,null,!0,!0,!1,!0))&&((!a||s!=="")&&(s+=Ol(e,r)),e.dump&&Ba===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=c,e.dump=s||"[]"}function Qu(e,r,n){var a="",s=e.tag,c=Object.keys(n),p,m,v,y,b;for(p=0,m=c.length;p<m;p+=1)b="",a!==""&&(b+=", "),e.condenseFlow&&(b+='"'),v=c[p],y=n[v],e.replacer&&(y=e.replacer.call(n,v,y)),bn(e,r,v,!1,!1)&&(e.dump.length>1024&&(b+="? "),b+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),bn(e,r,y,!1,!1)&&(b+=e.dump,a+=b));e.tag=s,e.dump="{"+a+"}"}function Fl(e,r,n,a){var s="",c=e.tag,p=Object.keys(n),m,v,y,b,I,R;if(e.sortKeys===!0)p.sort();else if(typeof e.sortKeys=="function")p.sort(e.sortKeys);else if(e.sortKeys)throw new Yt("sortKeys must be a boolean or a function");for(m=0,v=p.length;m<v;m+=1)R="",(!a||s!=="")&&(R+=Ol(e,r)),y=p[m],b=n[y],e.replacer&&(b=e.replacer.call(n,y,b)),bn(e,r+1,y,!0,!0,!0)&&(I=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,I&&(e.dump&&Ba===e.dump.charCodeAt(0)?R+="?":R+="? "),R+=e.dump,I&&(R+=Ol(e,r)),bn(e,r+1,b,!0,I)&&(e.dump&&Ba===e.dump.charCodeAt(0)?R+=":":R+=": ",R+=e.dump,s+=R));e.tag=c,e.dump=s||"{}"}function vs(e,r,n){var a,s,c,p,m,v;for(s=n?e.explicitTypes:e.implicitTypes,c=0,p=s.length;c<p;c+=1)if(m=s[c],(m.instanceOf||m.predicate)&&(!m.instanceOf||typeof r=="object"&&r instanceof m.instanceOf)&&(!m.predicate||m.predicate(r))){if(n?m.multi&&m.representName?e.tag=m.representName(r):e.tag=m.tag:e.tag="?",m.represent){if(v=e.styleMap[m.tag]||m.defaultStyle,Na.call(m.represent)==="[object Function]")a=m.represent(r,v);else if(ai.call(m.represent,v))a=m.represent[v](r,v);else throw new Yt("!<"+m.tag+'> tag resolver accepts not "'+v+'" style');e.dump=a}return!0}return!1}function bn(e,r,n,a,s,c,p){e.tag=null,e.dump=n,vs(e,n,!1)||vs(e,n,!0);var m=Na.call(e.dump),v=a,y;a&&(a=e.flowLevel<0||e.flowLevel>r);var b=m==="[object Object]"||m==="[object Array]",I,R;if(b&&(I=e.duplicates.indexOf(n),R=I!==-1),(e.tag!==null&&e.tag!=="?"||R||e.indent!==2&&r>0)&&(s=!1),R&&e.usedDuplicates[I])e.dump="*ref_"+I;else{if(b&&R&&!e.usedDuplicates[I]&&(e.usedDuplicates[I]=!0),m==="[object Object]")a&&Object.keys(e.dump).length!==0?(Fl(e,r,e.dump,s),R&&(e.dump="&ref_"+I+e.dump)):(Qu(e,r,e.dump),R&&(e.dump="&ref_"+I+" "+e.dump));else if(m==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!p&&r>0?hs(e,r-1,e.dump,s):hs(e,r,e.dump,s),R&&(e.dump="&ref_"+I+e.dump)):(Xc(e,r,e.dump),R&&(e.dump="&ref_"+I+" "+e.dump));else if(m==="[object String]")e.tag!=="?"&&Jc(e,e.dump,r,c,v);else{if(m==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Yt("unacceptable kind of an object to dump "+m)}e.tag!==null&&e.tag!=="?"&&(y=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?y="!"+y:y.slice(0,18)==="tag:yaml.org,2002:"?y="!!"+y.slice(18):y="!<"+y+">",e.dump=y+" "+e.dump)}return!0}function gs(e,r){var n=[],a=[],s,c;for(ms(e,n,a),s=0,c=a.length;s<c;s+=1)r.duplicates.push(n[a[s]]);r.usedDuplicates=new Array(c)}function ms(e,r,n){var a,s,c;if(e!==null&&typeof e=="object")if(s=r.indexOf(e),s!==-1)n.indexOf(s)===-1&&n.push(s);else if(r.push(e),Array.isArray(e))for(s=0,c=e.length;s<c;s+=1)ms(e[s],r,n);else for(a=Object.keys(e),s=0,c=a.length;s<c;s+=1)ms(e[a[s]],r,n)}function ys(e,r){r=r||{};var n=new Ju(r);n.noRefs||gs(e,n);var a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),bn(n,0,a,!0,!0)?n.dump+`
78
+ `:""}var Qc=ys,Zc={dump:Qc};function kl(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var Rl=xr,Ml=gn,za=On,mo=Vt,qc=ir,bs=co,Zu=Hu.load,yo=Hu.loadAll,qu=Zc.dump,ca=Yt,bo={binary:sl,float:It,map:yn,null:Cr,pairs:Fa,set:Fu,timestamp:al,bool:uo,int:ti,merge:Ia,omap:ni,seq:mn,str:un},da=kl("safeLoad","load"),xo=kl("safeLoadAll","loadAll"),Ga=kl("safeDump","dump"),_u={Type:Rl,Schema:Ml,FAILSAFE_SCHEMA:za,JSON_SCHEMA:mo,CORE_SCHEMA:qc,DEFAULT_SCHEMA:bs,load:Zu,loadAll:yo,dump:qu,YAMLException:ca,types:bo,safeLoad:da,safeLoadAll:xo,safeDump:Ga};const Ll=_u,ef=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:window}(),{FormData:tf,Blob:si,File:$i}=ef;function _c(e){if(_(e))return ge(e)}function ed(e){if(typeof Y!="undefined"&&he(e)!=null||e["@@iterator"]!=null)return z(e)}function td(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
79
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pa(e){return _c(e)||ed(e)||Ee(e)||td()}var rd=o(71488),Xn=o.n(rd),xn=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Hr=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Pr(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.escape,s=arguments.length>2?arguments[2]:void 0;return typeof e=="number"&&(e=e.toString()),typeof e!="string"||!e.length||!a?e:s?JSON.parse(e):Xe()(r=pa(e)).call(r,function(c){var p,m;if(Hr(c)||xn(c)&&a==="unsafe")return c;var v=new TextEncoder,y=Xe()(p=Xe()(m=Et()(v.encode(c))).call(m,function(b){var I;return Xn()(I="0".concat(b.toString(16).toUpperCase())).call(I,-2)})).call(p,function(b){return"%".concat(b)}).join("");return y}).join("")}function Ir(e){var r=e.value;return Array.isArray(r)?So(e):$(r)==="object"?nd(e):xs(e)}function So(e){var r=e.key,n=e.value,a=e.style,s=e.explode,c=e.escape,p=function(I){return Pr(I,{escape:c})};if(a==="simple")return Xe()(n).call(n,function(b){return p(b)}).join(",");if(a==="label")return".".concat(Xe()(n).call(n,function(b){return p(b)}).join("."));if(a==="matrix")return Xe()(n).call(n,function(b){return p(b)}).reduce(function(b,I){var R;if(!b||s){var N,G;return _e()(N=_e()(G="".concat(b||"",";")).call(G,r,"=")).call(N,I)}return _e()(R="".concat(b,",")).call(R,I)},"");if(a==="form"){var m=s?"&".concat(r,"="):",";return Xe()(n).call(n,function(b){return p(b)}).join(m)}if(a==="spaceDelimited"){var v=s?"".concat(r,"="):"";return Xe()(n).call(n,function(b){return p(b)}).join(" ".concat(v))}if(a==="pipeDelimited"){var y=s?"".concat(r,"="):"";return Xe()(n).call(n,function(b){return p(b)}).join("|".concat(y))}}function nd(e){var r=e.key,n=e.value,a=e.style,s=e.explode,c=e.escape,p=function(y){return Pr(y,{escape:c})},m=Rt()(n);if(a==="simple")return m.reduce(function(v,y){var b,I,R,N=p(n[y]),G=s?"=":",",ee=v?"".concat(v,","):"";return _e()(b=_e()(I=_e()(R="".concat(ee)).call(R,y)).call(I,G)).call(b,N)},"");if(a==="label")return m.reduce(function(v,y){var b,I,R,N=p(n[y]),G=s?"=":".",ee=v?"".concat(v,"."):".";return _e()(b=_e()(I=_e()(R="".concat(ee)).call(R,y)).call(I,G)).call(b,N)},"");if(a==="matrix"&&s)return m.reduce(function(v,y){var b,I,R=p(n[y]),N=v?"".concat(v,";"):";";return _e()(b=_e()(I="".concat(N)).call(I,y,"=")).call(b,R)},"");if(a==="matrix")return m.reduce(function(v,y){var b,I,R=p(n[y]),N=v?"".concat(v,","):";".concat(r,"=");return _e()(b=_e()(I="".concat(N)).call(I,y,",")).call(b,R)},"");if(a==="form")return m.reduce(function(v,y){var b,I,R,N,G=p(n[y]),ee=v?_e()(b="".concat(v)).call(b,s?"&":","):"",q=s?"=":",";return _e()(I=_e()(R=_e()(N="".concat(ee)).call(N,y)).call(R,q)).call(I,G)},"")}function xs(e){var r=e.key,n=e.value,a=e.style,s=e.escape,c=function(v){return Pr(v,{escape:s})};if(a==="simple")return c(n);if(a==="label")return".".concat(c(n));if(a==="matrix"){var p;return _e()(p=";".concat(r,"=")).call(p,c(n))}if(a==="form")return c(n);if(a==="deepObject")return c(n,{},!0)}var id=function(r,n){n.body=r};const ad=id;var Nl={serializeRes:ws,mergeInQueryOrForm:af};function $a(e){return Ss.apply(this,arguments)}function Ss(){return Ss=Le(be().mark(function e(r){var n,a,s,c,p,m=arguments;return be().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(n=m.length>1&&m[1]!==void 0?m[1]:{},$(r)==="object"&&(n=r,r=n.url),n.headers=n.headers||{},Nl.mergeInQueryOrForm(n),n.headers&&Rt()(n.headers).forEach(function(b){var I=n.headers[b];typeof I=="string"&&(n.headers[b]=I.replace(/\n+/g," "))}),!n.requestInterceptor){y.next=12;break}return y.next=8,n.requestInterceptor(n);case 8:if(y.t0=y.sent,y.t0){y.next=11;break}y.t0=n;case 11:n=y.t0;case 12:return a=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(a)&&n.body instanceof tf&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),y.prev=14,y.next=17,(n.userFetch||fetch)(n.url,n);case 17:return s=y.sent,y.next=20,Nl.serializeRes(s,r,n);case 20:if(s=y.sent,!n.responseInterceptor){y.next=28;break}return y.next=24,n.responseInterceptor(s);case 24:if(y.t1=y.sent,y.t1){y.next=27;break}y.t1=s;case 27:s=y.t1;case 28:y.next=39;break;case 30:if(y.prev=30,y.t2=y.catch(14),s){y.next=34;break}throw y.t2;case 34:throw c=new Error(s.statusText||"response status is ".concat(s.status)),c.status=s.status,c.statusCode=s.status,c.responseError=y.t2,c;case 39:if(s.ok){y.next=45;break}throw p=new Error(s.statusText||"response status is ".concat(s.status)),p.status=s.status,p.statusCode=s.status,p.response=s,p;case 45:return y.abrupt("return",s);case 46:case"end":return y.stop()}},e,null,[[14,30]])})),Ss.apply(this,arguments)}var Dl=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function od(e,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(e):Ll.load(e)}function ws(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.loadSpec,s=a===void 0?!1:a,c={ok:e.ok,url:e.url||r,status:e.status,statusText:e.statusText,headers:jl(e.headers)},p=c.headers["content-type"],m=s||Dl(p),v=m?e.text:e.blob||e.buffer;return v.call(e).then(function(y){if(c.text=y,c.data=y,m)try{var b=od(y,p);c.body=b,c.obj=b}catch(I){c.parseError=I}return c})}function Bl(e){var r=Ge()(e).call(e,", ");return r?e.split(", "):e}function jl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof Ze()(e)!="function"?{}:Et()(Ze()(e).call(e)).reduce(function(r,n){var a=at(n,2),s=a[0],c=a[1];return r[s]=Bl(c),r},{})}function As(e,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(e&&$(e)==="object"&&typeof e.uri=="string"):typeof $i!="undefined"&&e instanceof $i||typeof si!="undefined"&&e instanceof si||ArrayBuffer.isView(e)?!0:e!==null&&$(e)==="object"&&typeof e.pipe=="function"}function Cs(e,r){return Array.isArray(e)&&e.some(function(n){return As(n,r)})}var rf={form:",",spaceDelimited:"%20",pipeDelimited:"|"},wo={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function nf(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,s=r.allowEmptyValue,c=r.serializationOption,p=r.encoding,m=$(r)==="object"&&!Array.isArray(r)?r.value:r,v=n?function(G){return G.toString()}:function(G){return encodeURIComponent(G)},y=v(e);if(typeof m=="undefined"&&s)return[[y,""]];if(As(m)||Cs(m))return[[y,m]];if(c)return Ao(e,m,n,c);if(p){if([$(p.style),$(p.explode),$(p.allowReserved)].some(function(G){return G!=="undefined"})){var b=p.style,I=p.explode,R=p.allowReserved;return Ao(e,m,n,{style:b,explode:I,allowReserved:R})}if(p.contentType){if(p.contentType==="application/json"){var N=typeof m=="string"?m:zt()(m);return[[y,v(N)]]}return[[y,v(m.toString())]]}return $(m)!=="object"?[[y,v(m)]]:Array.isArray(m)&&m.every(function(G){return $(G)!=="object"})?[[y,Xe()(m).call(m,v).join(",")]]:[[y,v(zt()(m))]]}return $(m)!=="object"?[[y,v(m)]]:Array.isArray(m)?a==="multi"?[[y,Xe()(m).call(m,v)]]:[[y,Xe()(m).call(m,v).join(wo[a||"csv"])]]:[[y,""]]}function Ao(e,r,n,a){var s,c=a.style||"form",p=typeof a.explode=="undefined"?c==="form":a.explode,m=n?!1:a&&a.allowReserved?"unsafe":"reserved",v=function(N){return Pr(N,{escape:m})},y=n?function(R){return R}:function(R){return Pr(R,{escape:m})};if($(r)!=="object")return[[y(e),v(r)]];if(Array.isArray(r))return p?[[y(e),Xe()(r).call(r,v)]]:[[y(e),Xe()(r).call(r,v).join(rf[c])]];if(c==="deepObject"){var b;return Xe()(b=Rt()(r)).call(b,function(R){var N;return[y(_e()(N="".concat(e,"[")).call(N,R,"]")),v(r[R])]})}if(p){var I;return Xe()(I=Rt()(r)).call(I,function(R){return[y(R),v(r[R])]})}return[[y(e),Xe()(s=Rt()(r)).call(s,function(R){var N;return[_e()(N="".concat(y(R),",")).call(N,v(r[R]))]}).join(",")]]}function Ei(e){return Ar()(e).reduce(function(r,n){var a=at(n,2),s=a[0],c=a[1],p=je(nf(s,c,!0)),m;try{for(p.s();!(m=p.n()).done;){var v=at(m.value,2),y=v[0],b=v[1];if(Array.isArray(b)){var I=je(b),R;try{for(I.s();!(R=I.n()).done;){var N=R.value;if(ArrayBuffer.isView(N)){var G=new si([N]);r.append(y,G)}else r.append(y,N)}}catch(q){I.e(q)}finally{I.f()}}else if(ArrayBuffer.isView(b)){var ee=new si([b]);r.append(y,ee)}else r.append(y,b)}}catch(q){p.e(q)}finally{p.f()}return r},new tf)}function Vl(e){var r=Rt()(e).reduce(function(n,a){var s=je(nf(a,e[a])),c;try{for(s.s();!(c=s.n()).done;){var p=at(c.value,2),m=p[0],v=p[1];n[m]=v}}catch(y){s.e(y)}finally{s.f()}return n},{});return wt().stringify(r,{encode:!1,indices:!1})||""}function af(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.url,n=r===void 0?"":r,a=e.query,s=e.form,c=function(){for(var ae=arguments.length,pe=new Array(ae),ve=0;ve<ae;ve++)pe[ve]=arguments[ve];var me=$e()(pe).call(pe,function(Te){return Te}).join("&");return me?"?".concat(me):""};if(s){var p=Rt()(s).some(function(oe){var ae=s[oe].value;return As(ae)||Cs(ae)}),m=e.headers["content-type"]||e.headers["Content-Type"];if(p||/multipart\/form-data/i.test(m)){var v=Ei(e.form);ad(v,e)}else e.body=Vl(s);delete e.form}if(a){var y=n.split("?"),b=at(y,2),I=b[0],R=b[1],N="";if(R){var G=wt().parse(R),ee=Rt()(a);ee.forEach(function(oe){return delete G[oe]}),N=wt().stringify(G,{encode:!0})}var q=c(N,Vl(a));e.url=I+q,delete e.query}return e}function of(e,r,n){return n=n||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Nl.mergeInQueryOrForm(a),a=r(a),n(e(a))}}function Sn(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function rr(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),ie(e,F(a.key),a)}}function Ln(e,r,n){return r&&rr(e.prototype,r),n&&rr(e,n),ie(e,"prototype",{writable:!1}),e}var Ki=o(35784),Yi=o.n(Ki),sf=o(22583),Oi=o.n(sf),lf=o(93963),sd=o.n(lf);/*!
81
80
  * https://github.com/Starcounter-Jack/JSON-Patch
82
81
  * (c) 2017-2022 Joachim Wester
83
82
  * MIT licensed
84
- */var er=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var f in o)o.hasOwnProperty(f)&&(a[f]=o[f])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Vf=Object.prototype.hasOwnProperty;function hs(e,r){return Vf.call(e,r)}function Bi(e){if(Array.isArray(e)){for(var r=new Array(e.length),n=0;n<r.length;n++)r[n]=""+n;return r}if(Object.keys)return Object.keys(e);var a=[];for(var o in e)hs(e,o)&&a.push(o);return a}function Tn(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Da(e){for(var r=0,n=e.length,a;r<n;){if(a=e.charCodeAt(r),a>=48&&a<=57){r++;continue}return!1}return!0}function xi(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function vr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Uf(e,r){var n;for(var a in e)if(hs(e,a)){if(e[a]===r)return xi(a)+"/";if(typeof e[a]=="object"&&(n=Uf(e[a],r),n!=""))return xi(a)+"/"+n}return""}function xp(e,r){if(e===r)return"/";var n=Uf(e,r);if(n==="")throw new Error("Object not found in root");return"/"+n}function Ml(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var r=0,n=e.length;r<n;r++)if(Ml(e[r]))return!0}else if(typeof e=="object"){for(var a=Bi(e),o=a.length,f=0;f<o;f++)if(Ml(e[a[f]]))return!0}}return!1}function Oo(e,r){var n=[e];for(var a in r){var o=typeof r[a]=="object"?JSON.stringify(r[a],null,2):r[a];typeof o!="undefined"&&n.push(a+": "+o)}return n.join(`
85
- `)}var t=function(e){er(r,e);function r(n,a,o,f,d){var m=this.constructor,g=e.call(this,Oo(n,{name:a,index:o,operation:f,tree:d}))||this;return g.name=a,g.index=o,g.operation=f,g.tree=d,Object.setPrototypeOf(g,m.prototype),g.message=Oo(n,{name:a,index:o,operation:f,tree:d}),g}return r}(Error),i=t,u=Tn,l={add:function(e,r,n){return e[r]=this.value,{newDocument:n}},remove:function(e,r,n){var a=e[r];return delete e[r],{newDocument:n,removed:a}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:function(e,r,n){var a=y(n,this.path);a&&(a=Tn(a));var o=w(n,{op:"remove",path:this.from}).removed;return w(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:a}},copy:function(e,r,n){var a=y(n,this.from);return w(n,{op:"add",path:this.path,value:Tn(a)}),{newDocument:n}},test:function(e,r,n){return{newDocument:n,test:ce(e[r],this.value)}},_get:function(e,r,n){return this.value=e[r],{newDocument:n}}},c={add:function(e,r,n){return Da(r)?e.splice(r,0,this.value):e[r]=this.value,{newDocument:n,index:r}},remove:function(e,r,n){var a=e.splice(r,1);return{newDocument:n,removed:a[0]}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:l.move,copy:l.copy,test:l.test,_get:l._get};function y(e,r){if(r=="")return e;var n={op:"_get",path:r};return w(e,n),n.value}function w(e,r,n,a,o,f){if(n===void 0&&(n=!1),a===void 0&&(a=!0),o===void 0&&(o=!0),f===void 0&&(f=0),n&&(typeof n=="function"?n(r,0,e,r.path):V(r,0)),r.path===""){var d={newDocument:e};if(r.op==="add")return d.newDocument=r.value,d;if(r.op==="replace")return d.newDocument=r.value,d.removed=e,d;if(r.op==="move"||r.op==="copy")return d.newDocument=y(e,r.from),r.op==="move"&&(d.removed=e),d;if(r.op==="test"){if(d.test=ce(e,r.value),d.test===!1)throw new i("Test operation failed","TEST_OPERATION_FAILED",f,r,e);return d.newDocument=e,d}else{if(r.op==="remove")return d.removed=e,d.newDocument=null,d;if(r.op==="_get")return r.value=e,d;if(n)throw new i("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",f,r,e);return d}}else{a||(e=Tn(e));var m=r.path||"",g=m.split("/"),b=e,x=1,I=g.length,N=void 0,j=void 0,W=void 0;for(typeof n=="function"?W=n:W=V;;){if(j=g[x],j&&j.indexOf("~")!=-1&&(j=vr(j)),o&&(j=="__proto__"||j=="prototype"&&x>0&&g[x-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` 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&&N===void 0&&(b[j]===void 0?N=g.slice(0,x).join("/"):x==I-1&&(N=r.path),N!==void 0&&W(r,0,e,N)),x++,Array.isArray(b)){if(j==="-")j=b.length;else{if(n&&!Da(j))throw new i("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",f,r,e);Da(j)&&(j=~~j)}if(x>=I){if(n&&r.op==="add"&&j>b.length)throw new i("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",f,r,e);var d=c[r.op].call(r,b,j,e);if(d.test===!1)throw new i("Test operation failed","TEST_OPERATION_FAILED",f,r,e);return d}}else if(x>=I){var d=l[r.op].call(r,b,j,e);if(d.test===!1)throw new i("Test operation failed","TEST_OPERATION_FAILED",f,r,e);return d}if(b=b[j],n&&x<I&&(!b||typeof b!="object"))throw new i("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",f,r,e)}}}function O(e,r,n,a,o){if(a===void 0&&(a=!0),o===void 0&&(o=!0),n&&!Array.isArray(r))throw new i("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(e=Tn(e));for(var f=new Array(r.length),d=0,m=r.length;d<m;d++)f[d]=w(e,r[d],n,!0,o,d),e=f[d].newDocument;return f.newDocument=e,f}function R(e,r,n){var a=w(e,r);if(a.test===!1)throw new i("Test operation failed","TEST_OPERATION_FAILED",n,r,e);return a.newDocument}function V(e,r,n,a){if(typeof e!="object"||e===null||Array.isArray(e))throw new i("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,e,n);if(l[e.op]){if(typeof e.path!="string")throw new i("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,e,n);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new i('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new i("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new i("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Ml(e.value))throw new i("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,f=a.split("/").length;if(o!==f+1&&o!==f)throw new i("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==a)throw new i("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,e,n)}else if(e.op==="move"||e.op==="copy"){var d={op:"_get",path:e.from,value:void 0},m=oe([d],n);if(m&&m.name==="OPERATION_PATH_UNRESOLVABLE")throw new i("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,e,n)}}}else throw new i("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,e,n)}function oe(e,r,n){try{if(!Array.isArray(e))throw new i("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)O(Tn(r),Tn(e),n||!0);else{n=n||V;for(var a=0;a<e.length;a++)n(e[a],a,r,void 0)}}catch(o){if(o instanceof i)return o;throw o}}function ce(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){var n=Array.isArray(e),a=Array.isArray(r),o,f,d;if(n&&a){if(f=e.length,f!=r.length)return!1;for(o=f;o--!==0;)if(!ce(e[o],r[o]))return!1;return!0}if(n!=a)return!1;var m=Object.keys(e);if(f=m.length,f!==Object.keys(r).length)return!1;for(o=f;o--!==0;)if(!r.hasOwnProperty(m[o]))return!1;for(o=f;o--!==0;)if(d=m[o],!ce(e[d],r[d]))return!1;return!0}return e!==e&&r!==r}/*!
83
+ */var Ul=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Co=Object.prototype.hasOwnProperty;function Eo(e,r){return Co.call(e,r)}function Oo(e){if(Array.isArray(e)){for(var r=new Array(e.length),n=0;n<r.length;n++)r[n]=""+n;return r}if(Object.keys)return Object.keys(e);var a=[];for(var s in e)Eo(e,s)&&a.push(s);return a}function Lr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Es(e){for(var r=0,n=e.length,a;r<n;){if(a=e.charCodeAt(r),a>=48&&a<=57){r++;continue}return!1}return!0}function li(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function uf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function To(e,r){var n;for(var a in e)if(Eo(e,a)){if(e[a]===r)return li(a)+"/";if(typeof e[a]=="object"&&(n=To(e[a],r),n!=""))return li(a)+"/"+n}return""}function ff(e,r){if(e===r)return"/";var n=To(e,r);if(n==="")throw new Error("Object not found in root");return"/"+n}function Os(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var r=0,n=e.length;r<n;r++)if(Os(e[r]))return!0}else if(typeof e=="object"){for(var a=Oo(e),s=a.length,c=0;c<s;c++)if(Os(e[a[c]]))return!0}}return!1}function cf(e,r){var n=[e];for(var a in r){var s=typeof r[a]=="object"?JSON.stringify(r[a],null,2):r[a];typeof s!="undefined"&&n.push(a+": "+s)}return n.join(`
84
+ `)}var Wl=function(e){Ul(r,e);function r(n,a,s,c,p){var m=this.constructor,v=e.call(this,cf(n,{name:a,index:s,operation:c,tree:p}))||this;return v.name=a,v.index=s,v.operation=c,v.tree=p,Object.setPrototypeOf(v,m.prototype),v.message=cf(n,{name:a,index:s,operation:c,tree:p}),v}return r}(Error),Er=Wl,ld=Lr,Ti={add:function(e,r,n){return e[r]=this.value,{newDocument:n}},remove:function(e,r,n){var a=e[r];return delete e[r],{newDocument:n,removed:a}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:function(e,r,n){var a=Po(n,this.path);a&&(a=Lr(a));var s=ha(n,{op:"remove",path:this.from}).removed;return ha(n,{op:"add",path:this.path,value:s}),{newDocument:n,removed:a}},copy:function(e,r,n){var a=Po(n,this.from);return ha(n,{op:"add",path:this.path,value:Lr(a)}),{newDocument:n}},test:function(e,r,n){return{newDocument:n,test:Ja(e[r],this.value)}},_get:function(e,r,n){return this.value=e[r],{newDocument:n}}},df={add:function(e,r,n){return Es(r)?e.splice(r,0,this.value):e[r]=this.value,{newDocument:n,index:r}},remove:function(e,r,n){var a=e.splice(r,1);return{newDocument:n,removed:a[0]}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:Ti.move,copy:Ti.copy,test:Ti.test,_get:Ti._get};function Po(e,r){if(r=="")return e;var n={op:"_get",path:r};return ha(e,n),n.value}function ha(e,r,n,a,s,c){if(n===void 0&&(n=!1),a===void 0&&(a=!0),s===void 0&&(s=!0),c===void 0&&(c=0),n&&(typeof n=="function"?n(r,0,e,r.path):Ya(r,0)),r.path===""){var p={newDocument:e};if(r.op==="add")return p.newDocument=r.value,p;if(r.op==="replace")return p.newDocument=r.value,p.removed=e,p;if(r.op==="move"||r.op==="copy")return p.newDocument=Po(e,r.from),r.op==="move"&&(p.removed=e),p;if(r.op==="test"){if(p.test=Ja(e,r.value),p.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p.newDocument=e,p}else{if(r.op==="remove")return p.removed=e,p.newDocument=null,p;if(r.op==="_get")return r.value=e,p;if(n)throw new Er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",c,r,e);return p}}else{a||(e=Lr(e));var m=r.path||"",v=m.split("/"),y=e,b=1,I=v.length,R=void 0,N=void 0,G=void 0;for(typeof n=="function"?G=n:G=Ya;;){if(N=v[b],N&&N.indexOf("~")!=-1&&(N=uf(N)),s&&(N=="__proto__"||N=="prototype"&&b>0&&v[b-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` 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&&R===void 0&&(y[N]===void 0?R=v.slice(0,b).join("/"):b==I-1&&(R=r.path),R!==void 0&&G(r,0,e,R)),b++,Array.isArray(y)){if(N==="-")N=y.length;else{if(n&&!Es(N))throw new Er("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",c,r,e);Es(N)&&(N=~~N)}if(b>=I){if(n&&r.op==="add"&&N>y.length)throw new Er("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",c,r,e);var p=df[r.op].call(r,y,N,e);if(p.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p}}else if(b>=I){var p=Ti[r.op].call(r,y,N,e);if(p.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p}if(y=y[N],n&&b<I&&(!y||typeof y!="object"))throw new Er("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",c,r,e)}}}function Pi(e,r,n,a,s){if(a===void 0&&(a=!0),s===void 0&&(s=!0),n&&!Array.isArray(r))throw new Er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(e=Lr(e));for(var c=new Array(r.length),p=0,m=r.length;p<m;p++)c[p]=ha(e,r[p],n,!0,s,p),e=c[p].newDocument;return c.newDocument=e,c}function Ka(e,r,n){var a=ha(e,r);if(a.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",n,r,e);return a.newDocument}function Ya(e,r,n,a){if(typeof e!="object"||e===null||Array.isArray(e))throw new Er("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,e,n);if(Ti[e.op]){if(typeof e.path!="string")throw new Er("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,e,n);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new Er('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Er("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Os(e.value))throw new Er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,e,n);if(n){if(e.op=="add"){var s=e.path.split("/").length,c=a.split("/").length;if(s!==c+1&&s!==c)throw new Er("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==a)throw new Er("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,e,n)}else if(e.op==="move"||e.op==="copy"){var p={op:"_get",path:e.from,value:void 0},m=Io([p],n);if(m&&m.name==="OPERATION_PATH_UNRESOLVABLE")throw new Er("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,e,n)}}}else throw new Er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,e,n)}function Io(e,r,n){try{if(!Array.isArray(e))throw new Er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)Pi(Lr(r),Lr(e),n||!0);else{n=n||Ya;for(var a=0;a<e.length;a++)n(e[a],a,r,void 0)}}catch(s){if(s instanceof Er)return s;throw s}}function Ja(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){var n=Array.isArray(e),a=Array.isArray(r),s,c,p;if(n&&a){if(c=e.length,c!=r.length)return!1;for(s=c;s--!==0;)if(!Ja(e[s],r[s]))return!1;return!0}if(n!=a)return!1;var m=Object.keys(e);if(c=m.length,c!==Object.keys(r).length)return!1;for(s=c;s--!==0;)if(!r.hasOwnProperty(m[s]))return!1;for(s=c;s--!==0;)if(p=m[s],!Ja(e[p],r[p]))return!1;return!0}return e!==e&&r!==r}/*!
86
85
  * https://github.com/Starcounter-Jack/JSON-Patch
87
86
  * (c) 2017-2021 Joachim Wester
88
87
  * MIT license
89
- */var me=new WeakMap,he=function(){function e(r){this.observers=new Map,this.obj=r}return e}(),Te=function(){function e(r,n){this.callback=r,this.observer=n}return e}();function Le(e){return me.get(e)}function ze(e,r){return e.observers.get(r)}function Ye(e,r){e.observers.delete(r.callback)}function Qe(e,r){r.unobserve()}function Je(e,r){var n=[],a,o=Le(e);if(!o)o=new he(e),me.set(e,o);else{var f=ze(o,r);a=f&&f.observer}if(a)return a;if(a={},o.value=Tn(e),r){a.callback=r,a.next=null;var d=function(){qe(a)},m=function(){clearTimeout(a.next),a.next=setTimeout(d)};typeof window!="undefined"&&(window.addEventListener("mouseup",m),window.addEventListener("keyup",m),window.addEventListener("mousedown",m),window.addEventListener("keydown",m),window.addEventListener("change",m))}return a.patches=n,a.object=e,a.unobserve=function(){qe(a),clearTimeout(a.next),Ye(o,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",m),window.removeEventListener("keyup",m),window.removeEventListener("mousedown",m),window.removeEventListener("keydown",m),window.removeEventListener("change",m))},o.observers.set(r,new Te(r,a)),a}function qe(e,r){r===void 0&&(r=!1);var n=me.get(e.object);ht(n.value,e.object,e.patches,"",r),e.patches.length&&O(n.value,e.patches);var a=e.patches;return a.length>0&&(e.patches=[],e.callback&&e.callback(a)),a}function ht(e,r,n,a,o){if(r!==e){typeof r.toJSON=="function"&&(r=r.toJSON());for(var f=Bi(r),d=Bi(e),m=!1,g=!1,b=d.length-1;b>=0;b--){var x=d[b],I=e[x];if(hs(r,x)&&!(r[x]===void 0&&I!==void 0&&Array.isArray(r)===!1)){var N=r[x];typeof I=="object"&&I!=null&&typeof N=="object"&&N!=null&&Array.isArray(I)===Array.isArray(N)?ht(I,N,n,a+"/"+xi(x),o):I!==N&&(m=!0,o&&n.push({op:"test",path:a+"/"+xi(x),value:Tn(I)}),n.push({op:"replace",path:a+"/"+xi(x),value:Tn(N)}))}else Array.isArray(e)===Array.isArray(r)?(o&&n.push({op:"test",path:a+"/"+xi(x),value:Tn(I)}),n.push({op:"remove",path:a+"/"+xi(x)}),g=!0):(o&&n.push({op:"test",path:a,value:e}),n.push({op:"replace",path:a,value:r}),m=!0)}if(!(!g&&f.length==d.length))for(var b=0;b<f.length;b++){var x=f[b];!hs(e,x)&&r[x]!==void 0&&n.push({op:"add",path:a+"/"+xi(x),value:Tn(r[x])})}}}function dt(e,r,n){n===void 0&&(n=!1);var a=[];return ht(e,r,a,"",n),a}const Mt=Object.assign({},p,S,{JsonPatchError:t,deepClone:Tn,escapePathComponent:xi,unescapePathComponent:vr});var tr=s(39714),Tr=s.n(tr);const wt={add:Ar,replace:Hr,remove:zr,merge:Pr,mergeDeep:Cr,context:gr,getIn:Nl,applyPatch:xn,parentPathMatch:Dr,flatten:Jn,fullyNormalizeArray:wi,normalizeArray:ji,isPromise:Dl,forEachNew:hn,forEachNewPrimitive:Ba,isJsonPatch:wp,isContextPatch:Mg,isPatch:Hf,isMutation:Ap,isAdditiveMutation:Wf,isGenerator:Lg,isFunction:Sp,isObject:Nn,isError:Rg};function xn(e,r,n){if(n=n||{},r=lr(lr({},r),{},{path:r.path&&sn(r.path)}),r.op==="merge"){var a=yd(e,r.path);Fr()(a,r.value),O(e,[Hr(r.path,a)])}else if(r.op==="mergeDeep"){var o=yd(e,r.path),f=Tr()(o,r.value);e=O(e,[Hr(r.path,f)]).newDocument}else if(r.op==="add"&&r.path===""&&Nn(r.value)){var d=Kt()(r.value).reduce(function(I,N){return I.push({op:"add",path:"/".concat(sn(N)),value:r.value[N]}),I},[]);O(e,d)}else if(r.op==="replace"&&r.path===""){var m=r,g=m.value;n.allowMetaPatches&&r.meta&&Wf(r)&&(Array.isArray(r.value)||Nn(r.value))&&(g=lr(lr({},g),r.meta)),e=g}else if(O(e,[r]),n.allowMetaPatches&&r.meta&&Wf(r)&&(Array.isArray(r.value)||Nn(r.value))){var b=yd(e,r.path),x=lr(lr({},b),r.meta);O(e,[Hr(r.path,x)])}return e}function sn(e){return Array.isArray(e)?e.length<1?"":"/".concat($t()(e).call(e,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):e}function Ar(e,r){return{op:"add",path:e,value:r}}function Hr(e,r,n){return{op:"replace",path:e,value:r,meta:n}}function zr(e){return{op:"remove",path:e}}function Pr(e,r){return{type:"mutation",op:"merge",path:e,value:r}}function Cr(e,r){return{type:"mutation",op:"mergeDeep",path:e,value:r}}function gr(e,r){return{type:"context",path:e,value:r}}function hn(e,r){try{return Si(e,Mn,r)}catch(n){return n}}function Ba(e,r){try{return Si(e,Nr,r)}catch(n){return n}}function Si(e,r,n){var a,o=$t()(a=Er()(e).call(e,Wf)).call(a,function(m){return r(m.value,n,m.path)})||[],f=Jn(o),d=Qr(f);return d}function Nr(e,r,n){if(n=n||[],Array.isArray(e))return $t()(e).call(e,function(o,f){return Nr(o,r,ut()(n).call(n,f))});if(Nn(e)){var a;return $t()(a=Kt()(e)).call(a,function(o){return Nr(e[o],r,ut()(n).call(n,o))})}return r(e,n[n.length-1],n)}function Mn(e,r,n){n=n||[];var a=[];if(n.length>0){var o=r(e,n[n.length-1],n);o&&(a=ut()(a).call(a,o))}if(Array.isArray(e)){var f=$t()(e).call(e,function(g,b){return Mn(g,r,ut()(n).call(n,b))});f&&(a=ut()(a).call(a,f))}else if(Nn(e)){var d,m=$t()(d=Kt()(e)).call(d,function(g){return Mn(e[g],r,ut()(n).call(n,g))});m&&(a=ut()(a).call(a,m))}return a=Jn(a),a}function Dr(e,r){if(!Array.isArray(r))return!1;for(var n=0,a=r.length;n<a;n+=1)if(r[n]!==e[n])return!1;return!0}function Nl(e,r){return r.reduce(function(n,a){return typeof a!="undefined"&&n?n[a]:n},e)}function wi(e){return Qr(Jn(ji(e)))}function ji(e){return Array.isArray(e)?e:[e]}function Jn(e){var r;return ut()(r=[]).apply(r,la($t()(e).call(e,function(n){return Array.isArray(n)?Jn(n):n})))}function Qr(e){return Er()(e).call(e,function(r){return typeof r!="undefined"})}function Nn(e){return e&&ar(e)==="object"}function Dl(e){return Nn(e)&&Sp(e.then)}function Sp(e){return e&&typeof e=="function"}function Rg(e){return e instanceof Error}function wp(e){if(Hf(e)){var r=e.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Lg(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function Ap(e){return wp(e)||Hf(e)&&e.type==="mutation"}function Wf(e){return Ap(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function Mg(e){return Hf(e)&&e.type==="context"}function Hf(e){return e&&ar(e)==="object"}function yd(e,r){try{return y(e,r)}catch(n){return console.error(n),{}}}var Ng=s(36394),Dg=s.n(Ng),Bg=s(8304),Cp=s.n(Bg);function Ep(e,r){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,o=new Array(a),f=0;f<a;f++)o[f]=arguments[f];this.message=o[0],r&&r.apply(this,o)}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var jg=s(56855),Vg=s.n(jg),Ug=["properties"],Wg=["properties"],Hg=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],zg=["schema/example","items/example"];function Op(e){var r=e[e.length-1],n=e[e.length-2],a=e.join("/");return Ug.indexOf(r)>-1&&Wg.indexOf(n)===-1||Hg.indexOf(a)>-1||zg.some(function(o){return a.indexOf(o)>-1})}function Gg(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.specmap,o=n.getBaseUrlForNodePath,f=o===void 0?function(b){var x;return a.getContext(ut()(x=[]).call(x,la(r),la(b))).baseDoc}:o,d=n.targetKeys,m=d===void 0?["$ref","$$ref"]:d,g=[];return Vg()(e).forEach(function(){if(gi()(m).call(m,this.key)&&typeof this.node=="string"){var x=this.path,I=ut()(r).call(r,this.path),N=bd(this.node,f(x));g.push(a.replace(I,N))}}),g}function bd(e,r){var n,a=e.split("#"),o=$n(a,2),f=o[0],d=o[1],m=Gn.resolve(f||"",r||"");return d?ut()(n="".concat(m,"#")).call(n,d):m}var Tp="application/json, application/yaml",$g=/^([a-z]+:\/\/|\/\/)/i,vs=Ep("JSONRefError",function(r,n,a){this.originalError=a,Fr()(this,n||{})}),ca={},Pp=new(Dg()),Kg=[function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="examples"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="examples"&&e[6]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="examples"&&e[7]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[4]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"}],Yg=function(r){return Kg.some(function(n){return n(r)})},Jg={key:"$ref",plugin:function(r,n,a,o){var f=o.getInstance(),d=pn()(a).call(a,0,-1);if(!(Op(d)||Yg(d))){var m=o.getContext(a),g=m.baseDoc;if(typeof r!="string")return new vs("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:g,fullPath:a});var b=Fp(r),x=b[0],I=b[1]||"",N;try{N=g||x?kp(x,g):null}catch(ie){return xd(ie,{pointer:I,$ref:r,basePath:N,fullPath:a})}var j,W;if(em(I,N,d,o)&&!f.useCircularStructures){var ee=bd(r,N);return r===ee?null:wt.replace(a,ee)}if(N==null?(W=wd(I),j=o.get(W),typeof j=="undefined"&&(j=new vs("Could not resolve reference: ".concat(r),{pointer:I,$ref:r,baseDoc:g,fullPath:a}))):(j=Rp(N,I),j.__value!=null?j=j.__value:j=j.catch(function(ie){throw xd(ie,{pointer:I,$ref:r,baseDoc:g,fullPath:a})})),j instanceof Error)return[wt.remove(a),j];var te=bd(r,N),se=wt.replace(d,j,{$$ref:te});if(N&&N!==g)return[se,wt.context(d,{baseDoc:N})];try{if(!tm(o.state,se)||f.useCircularStructures)return se}catch(ie){return null}}}},Ip=Fr()(Jg,{docCache:ca,absoluteify:kp,clearCache:Qg,JSONRefError:vs,wrapError:xd,getDoc:Lp,split:Fp,extractFromDoc:Rp,fetchJSON:Zg,extract:Sd,jsonPointerToArray:wd,unescapeJsonPointerToken:Mp});const Xg=Ip;function kp(e,r){if(!$g.test(e)){if(!r){var n;throw new vs(ut()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(n,r,"'"))}return Gn.resolve(r,e)}return e}function xd(e,r){var n;if(e&&e.response&&e.response.body){var a;n=ut()(a="".concat(e.response.body.code," ")).call(a,e.response.body.message)}else n=e.message;return new vs("Could not resolve reference: ".concat(n),r,e)}function Fp(e){return(e+"").split("#")}function Rp(e,r){var n=ca[e];if(n&&!wt.isPromise(n))try{var a=Sd(r,n);return Fr()(fa().resolve(a),{__value:a})}catch(o){return fa().reject(o)}return Lp(e).then(function(o){return Sd(r,o)})}function Qg(e){typeof e!="undefined"?delete ca[e]:Kt()(ca).forEach(function(r){delete ca[r]})}function Lp(e){var r=ca[e];return r?wt.isPromise(r)?r:fa().resolve(r):(ca[e]=Ip.fetchJSON(e).then(function(n){return ca[e]=n,n}),ca[e])}function Zg(e){return fetch(e,{headers:{Accept:Tp},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Al.load(r)})}function Sd(e,r){var n=wd(e);if(n.length<1)return r;var a=wt.getIn(r,n);if(typeof a=="undefined")throw new vs("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return a}function wd(e){var r;if(typeof e!="string")throw new TypeError("Expected a string, got a ".concat(ar(e)));return e[0]==="/"&&(e=e.substr(1)),e===""?[]:$t()(r=e.split("/")).call(r,Mp)}function Mp(e){if(typeof e!="string")return e;var r=new(Cp())("=".concat(e.replace(/~1/g,"/").replace(/~0/g,"~")));return r.get("")}function Np(e){var r,n=new(Cp())([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]);return pn()(r=n.toString()).call(r,1)}function _g(e){return e.length===0?"":"/".concat($t()(e).call(e,Np).join("/"))}var qg=function(r){return!r||r==="/"||r==="#"};function Ad(e,r){if(qg(r))return!0;var n=e.charAt(r.length),a=pn()(r).call(r,-1);return e.indexOf(r)===0&&(!n||n==="/"||n==="#")&&a!=="#"}function em(e,r,n,a){var o,f,d=Pp.get(a);d||(d={},Pp.set(a,d));var m=_g(n),g=ut()(o="".concat(r||"<specmap-base>","#")).call(o,e),b=m.replace(/allOf\/\d+\/?/g,""),x=a.contextTree.get([]).baseDoc;if(r===x&&Ad(b,e))return!0;var I="",N=n.some(function(j){var W;return I=ut()(W="".concat(I,"/")).call(W,Np(j)),d[I]&&d[I].some(function(ee){return Ad(ee,g)||Ad(g,ee)})});if(N)return!0;d[b]=ut()(f=d[b]||[]).call(f,g)}function tm(e,r){var n=[e];return r.path.reduce(function(o,f){return n.push(o[f]),o[f]},e),a(r.value);function a(o){return wt.isObject(o)&&(n.indexOf(o)>=0||Kt()(o).some(function(f){return a(o[f])}))}}const rm={key:"allOf",plugin:function(r,n,a,o,f){if(!(f.meta&&f.meta.$$ref)){var d=pn()(a).call(a,0,-1);if(!Op(d)){if(!Array.isArray(r)){var m=new TypeError("allOf must be an array");return m.fullPath=a,m}var g=!1,b=f.value;if(d.forEach(function(j){!b||(b=b[j])}),b=lr({},b),Kt()(b).length!==0){delete b.allOf;var x=[];if(x.push(o.replace(d,{})),r.forEach(function(j,W){if(!o.isObject(j)){if(g)return null;g=!0;var ee=new TypeError("Elements in allOf must be objects");return ee.fullPath=a,x.push(ee)}x.push(o.mergeDeep(d,j));var te=pn()(a).call(a,0,-1),se=Gg(j,te,{getBaseUrlForNodePath:function(de){var we;return o.getContext(ut()(we=[]).call(we,la(a),[W],la(de))).baseDoc},specmap:o});x.push.apply(x,la(se))}),b.example){var I;x.push(o.remove(ut()(I=[]).call(I,d,"example")))}if(x.push(o.mergeDeep(d,b)),!b.$$ref){var N;x.push(o.remove(ut()(N=[]).call(N,d,"$$ref")))}return x}}}}},nm={key:"parameters",plugin:function(r,n,a,o){if(Array.isArray(r)&&r.length){var f=Fr()([],r),d=pn()(a).call(a,0,-1),m=lr({},wt.getIn(o.spec,d));return r.forEach(function(g,b){try{f[b].default=o.parameterMacro(m,g)}catch(I){var x=new Error(I);return x.fullPath=a,x}}),wt.replace(a,f)}return wt.replace(a,r)}},im={key:"properties",plugin:function(r,n,a,o){var f=lr({},r);for(var d in r)try{f[d].default=o.modelPropertyMacro(f[d])}catch(b){var m=new Error(b);return m.fullPath=a,m}var g=wt.replace(a,f);return g}};var am=function(){function e(r){ps(this,e),this.root=Cd(r||{})}return Rl(e,[{key:"set",value:function(n,a){var o=this.getParent(n,!0);if(!o){zf(this.root,a,null);return}var f=n[n.length-1],d=o.children;if(d[f]){zf(d[f],a,o);return}d[f]=Cd(a,o)}},{key:"get",value:function(n){if(n=n||[],n.length<1)return this.root.value;for(var a=this.root,o,f,d=0;d<n.length&&(f=n[d],o=a.children,!!o[f]);d+=1)a=o[f];return a&&a.protoValue}},{key:"getParent",value:function(n,a){return!n||n.length<1?null:n.length<2?this.root:pn()(n).call(n,0,-1).reduce(function(o,f){if(!o)return o;var d=o.children;return!d[f]&&a&&(d[f]=Cd(null,o)),d[f]},this.root)}}]),e}();function Cd(e,r){return zf({children:{}},e,r)}function zf(e,r,n){return e.value=r||{},e.protoValue=n?lr(lr({},n.protoValue),e.value):e.value,Kt()(e.children).forEach(function(a){var o=e.children[a];e.children[a]=zf(o,o.value,e)}),e}var Dp=100,Bp=function(){},om=function(){function e(r){var n=this,a,o;ps(this,e),Fr()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new am,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Fr()(Object.create(this),wt,{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=Er()(a=$t()(o=this.plugins).call(o,this.wrapPlugin.bind(this))).call(a,wt.isFunction),this.patches.push(wt.add([],this.spec)),this.patches.push(wt.context([],this.context)),this.updatePatches(this.patches)}return Rl(e,[{key:"debug",value:function(n){if(this.debugLevel===n){for(var a,o=arguments.length,f=new Array(o>1?o-1:0),d=1;d<o;d++)f[d-1]=arguments[d];(a=console).log.apply(a,f)}}},{key:"verbose",value:function(n){if(this.debugLevel==="verbose"){for(var a,o,f=arguments.length,d=new Array(f>1?f-1:0),m=1;m<f;m++)d[m-1]=arguments[m];(a=console).log.apply(a,ut()(o=["[".concat(n,"] ")]).call(o,d))}}},{key:"wrapPlugin",value:function(n,a){var o=this.pathDiscriminator,f=null,d;return n[this.pluginProp]?(f=n,d=n[this.pluginProp]):wt.isFunction(n)?d=n:wt.isObject(n)&&(d=m(n)),Fr()(d.bind(f),{pluginName:n.name||a,isGenerator:wt.isGenerator(d)});function m(g){var b=function(I,N){return Array.isArray(I)?I.every(function(j,W){return j===N[W]}):!0};return ei().mark(function x(I,N){var j,W,ee,te,se,ie;return ei().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:ie=function(Ee,ye,be){var Se,ke,Me,Re,We,It,vt,rr,cr,mr,$r,yr,kr;return ei().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(wt.isObject(Ee)){Wt.next=6;break}if(g.key!==ye[ye.length-1]){Wt.next=4;break}return Wt.next=4,g.plugin(Ee,g.key,ye,N);case 4:Wt.next=30;break;case 6:Se=ye.length-1,ke=ye[Se],Me=ye.indexOf("properties"),Re=ke==="properties"&&Se===Me,We=N.allowMetaPatches&&W[Ee.$$ref],It=0,vt=Kt()(Ee);case 12:if(!(It<vt.length)){Wt.next=30;break}if(rr=vt[It],cr=Ee[rr],mr=ut()(ye).call(ye,rr),$r=wt.isObject(cr),yr=Ee.$$ref,We){Wt.next=22;break}if(!$r){Wt.next=22;break}return N.allowMetaPatches&&yr&&(W[yr]=!0),Wt.delegateYield(ie(cr,mr,be),"t0",22);case 22:if(!(!Re&&rr===g.key)){Wt.next=27;break}if(kr=b(o,ye),!(!o||kr)){Wt.next=27;break}return Wt.next=27,g.plugin(cr,rr,mr,N,be);case 27:It++,Wt.next=12;break;case 30:case"end":return Wt.stop()}},j)},j=ei().mark(ie),W={},ee=Pi(Er()(I).call(I,wt.isAdditiveMutation)),we.prev=4,ee.s();case 6:if((te=ee.n()).done){we.next=11;break}return se=te.value,we.delegateYield(ie(se.value,se.path,se),"t0",9);case 9:we.next=6;break;case 11:we.next=16;break;case 13:we.prev=13,we.t1=we.catch(4),ee.e(we.t1);case 16:return we.prev=16,ee.f(),we.finish(16);case 19:case"end":return we.stop()}},x,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var n,a=this;return Df()(n=this.wrappedPlugins).call(n,function(o){var f=a.getMutationsForPlugin(o);return f.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var n;return fa().race($t()(n=this.promisedPatches).call(n,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(n){var a=this.constructor.getPluginName(n);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(n){return this.getPluginHistory(n).length}},{key:"getPluginHistoryTip",value:function(n){var a=this.getPluginHistory(n),o=a&&a[a.length-1];return o||{}}},{key:"getPluginMutationIndex",value:function(n){var a=this.getPluginHistoryTip(n).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(n,a){var o=this.constructor.getPluginName(n);this.pluginHistory[o]=this.pluginHistory[o]||[],this.pluginHistory[o].push(a)}},{key:"updatePatches",value:function(n){var a=this;wt.normalizeArray(n).forEach(function(o){if(o instanceof Error){a.errors.push(o);return}try{if(!wt.isObject(o)){a.debug("updatePatches","Got a non-object patch",o);return}if(a.showDebug&&a.allPatches.push(o),wt.isPromise(o.value)){a.promisedPatches.push(o),a.promisedPatchThen(o);return}if(wt.isContextPatch(o)){a.setContext(o.path,o.value);return}if(wt.isMutation(o)){a.updateMutations(o);return}}catch(f){console.error(f),a.errors.push(f)}})}},{key:"updateMutations",value:function(n){ar(n.value)==="object"&&!Array.isArray(n.value)&&this.allowMetaPatches&&(n.value=lr({},n.value));var a=wt.applyPatch(this.state,n,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(n),this.state=a)}},{key:"removePromisedPatch",value:function(n){var a,o=this.promisedPatches.indexOf(n);if(o<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}jf()(a=this.promisedPatches).call(a,o,1)}},{key:"promisedPatchThen",value:function(n){var a=this;return n.value=n.value.then(function(o){var f=lr(lr({},n),{},{value:o});a.removePromisedPatch(n),a.updatePatches(f)}).catch(function(o){a.removePromisedPatch(n),a.updatePatches(o)}),n.value}},{key:"getMutations",value:function(n,a){var o;return n=n||0,typeof a!="number"&&(a=this.mutations.length),pn()(o=this.mutations).call(o,n,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(n){var a=this.getPluginMutationIndex(n);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(n){return wt.getIn(this.state,n)}},{key:"_getContext",value:function(n){return this.contextTree.get(n)}},{key:"setContext",value:function(n,a){return this.contextTree.set(n,a)}},{key:"_hasRun",value:function(n){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(n||0)}},{key:"dispatch",value:function(){var n=this,a=this,o=this.nextPlugin();if(!o){var f=this.nextPromisedPatch();if(f)return f.then(function(){return n.dispatch()}).catch(function(){return n.dispatch()});var d={spec:this.state,errors:this.errors};return this.showDebug&&(d.patches=this.allPatches),fa().resolve(d)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[o]=(a.pluginCount[o]||0)+1,a.pluginCount[o]>Dp){var m;return fa().resolve({spec:a.state,errors:ut()(m=a.errors).call(m,new Error("We've reached a hard limit of ".concat(Dp," plugin runs")))})}if(o!==this.currentPlugin&&this.promisedPatches.length){var g,b=$t()(g=this.promisedPatches).call(g,function(N){return N.value});return fa().all($t()(b).call(b,function(N){return N.then(Bp,Bp)})).then(function(){return n.dispatch()})}return x();function x(){a.currentPlugin=o;var N=a.getCurrentMutations(),j=a.mutations.length-1;try{if(o.isGenerator){var W=Pi(o(N,a.getLib())),ee;try{for(W.s();!(ee=W.n()).done;){var te=ee.value;I(te)}}catch(ie){W.e(ie)}finally{W.f()}}else{var se=o(N,a.getLib());I(se)}}catch(ie){console.error(ie),I([Fr()(Object.create(ie),{plugin:o})])}finally{a.updatePluginHistory(o,{mutationIndex:j})}return a.dispatch()}function I(N){N&&(N=wt.fullyNormalizeArray(N),a.updatePatches(N,o))}}}],[{key:"getPluginName",value:function(n){return n.pluginName}},{key:"getPatchesOfType",value:function(n,a){return Er()(n).call(n,a)}}]),e}();function sm(e){return new om(e).dispatch()}var To={refs:Xg,allOf:rm,parameters:nm,properties:im},jp=function(r){return String.prototype.toLowerCase.call(r)},Vp=function(r){return r.replace(/[^\w]/gi,"_")};function Up(e){var r=e.openapi;return r?qn()(r).call(r,"3"):!1}function i1(e){var r=e.swagger;return r?_startsWithInstanceProperty(r).call(r,"2"):!1}function Gf(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=a.v2OperationIdCompatibilityMode;if(!e||ar(e)!=="object")return null;var f=(e.operationId||"").replace(/\s/g,"");return f.length?Vp(e.operationId):lm(r,n,{v2OperationIdCompatibilityMode:o})}function lm(e,r){var n,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=a.v2OperationIdCompatibilityMode;if(o){var f,d,m=ut()(f="".concat(r.toLowerCase(),"_")).call(f,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return m=m||ut()(d="".concat(e.substring(1),"_")).call(d,r),m.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return ut()(n="".concat(jp(r))).call(n,Vp(e))}function Wp(e,r){var n;return ut()(n="".concat(jp(r),"-")).call(n,e)}function um(e,r){return!e||!e.paths?null:fm(e,function(n){var a=n.pathName,o=n.method,f=n.operation;if(!f||ar(f)!=="object")return!1;var d=f.operationId,m=Gf(f,a,o),g=Wp(a,o);return[m,g,d].some(function(b){return b&&b===r})})}function fm(e,r){return Hp(e,r,!0)||null}function Hp(e,r,n){if(!e||ar(e)!=="object"||!e.paths||ar(e.paths)!=="object")return null;var a=e.paths;for(var o in a)for(var f in a[o])if(f.toUpperCase()!=="PARAMETERS"){var d=a[o][f];if(!(!d||ar(d)!=="object")){var m={spec:e,pathName:o,method:f.toUpperCase(),operation:d},g=r(m);if(n&&g)return m}}}function zp(e){var r=e.spec,n=r.paths,a={};if(!n||r.$$normalized)return e;for(var o in n){var f,d=n[o];if(!(d==null||!gi()(f=["object","function"]).call(f,ar(d)))){var m=d.parameters,g=function(N){var j,W=d[N];if(W==null||!gi()(j=["object","function"]).call(j,ar(W)))return"continue";var ee=Gf(W,o,N);if(ee){a[ee]?a[ee].push(W):a[ee]=[W];var te=a[ee];if(te.length>1)te.forEach(function(Re,We){var It;Re.__originalOperationId=Re.__originalOperationId||Re.operationId,Re.operationId=ut()(It="".concat(ee)).call(It,We+1)});else if(typeof W.operationId!="undefined"){var se=te[0];se.__originalOperationId=se.__originalOperationId||W.operationId,se.operationId=ee}}if(N!=="parameters"){var ie=[],de={};for(var we in r)(we==="produces"||we==="consumes"||we==="security")&&(de[we]=r[we],ie.push(de));if(m&&(de.parameters=m,ie.push(de)),ie.length){var xe=Pi(ie),Ee;try{for(xe.s();!(Ee=xe.n()).done;){var ye=Ee.value;for(var be in ye)if(!W[be])W[be]=ye[be];else if(be==="parameters"){var Se=Pi(ye[be]),ke;try{var Me=function(){var We=ke.value,It=W[be].some(function(vt){return vt.name&&vt.name===We.name||vt.$ref&&vt.$ref===We.$ref||vt.$$ref&&vt.$$ref===We.$$ref||vt===We});It||W[be].push(We)};for(Se.s();!(ke=Se.n()).done;)Me()}catch(Re){Se.e(Re)}finally{Se.f()}}}}catch(Re){xe.e(Re)}finally{xe.f()}}}};for(var b in d)var x=g(b)}}return r.$$normalized=!0,e}function Gp(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.requestInterceptor,a=r.responseInterceptor,o=e.withCredentials?"include":"same-origin";return function(f){return e({url:f,loadSpec:!0,requestInterceptor:n,responseInterceptor:a,headers:{Accept:Tp},credentials:o}).then(function(d){return d.body})}}function cm(){To.refs.clearCache()}function $p(e){var r=e.fetch,n=e.spec,a=e.url,o=e.mode,f=e.allowMetaPatches,d=f===void 0?!0:f,m=e.pathDiscriminator,g=e.modelPropertyMacro,b=e.parameterMacro,x=e.requestInterceptor,I=e.responseInterceptor,N=e.skipNormalization,j=e.useCircularStructures,W=e.http,ee=e.baseDoc;if(ee=ee||a,W=r||W||Co,!n)return Gp(W,{requestInterceptor:x,responseInterceptor:I})(ee).then(te);return te(n);function te(se){ee&&(To.refs.docCache[ee]=se),To.refs.fetchJSON=Gp(W,{requestInterceptor:x,responseInterceptor:I});var ie=[To.refs];return typeof b=="function"&&ie.push(To.parameters),typeof g=="function"&&ie.push(To.properties),o!=="strict"&&ie.push(To.allOf),sm({spec:se,context:{baseDoc:ee},plugins:ie,allowMetaPatches:d,pathDiscriminator:m,parameterMacro:b,modelPropertyMacro:g,useCircularStructures:j}).then(N?function(){var de=Ii(ei().mark(function we(xe){return ei().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",xe);case 1:case"end":return ye.stop()}},we)}));return function(we){return de.apply(this,arguments)}}():zp)}}var dm=s(72579),Bl=s.n(dm);function pm(e,r){return Ed.apply(this,arguments)}function Ed(){return Ed=Ii(ei().mark(function e(r,n){var a,o,f,d,m,g,b,x,I,N,j,W,ee=arguments;return ei().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return a=ee.length>2&&ee[2]!==void 0?ee[2]:{},o=a.returnEntireTree,f=a.baseDoc,d=a.requestInterceptor,m=a.responseInterceptor,g=a.parameterMacro,b=a.modelPropertyMacro,x=a.useCircularStructures,I={pathDiscriminator:n,baseDoc:f,requestInterceptor:d,responseInterceptor:m,parameterMacro:g,modelPropertyMacro:b,useCircularStructures:x},N=zp({spec:r}),j=N.spec,se.next=6,$p(lr(lr({},I),{},{spec:j,allowMetaPatches:!0,skipNormalization:!0}));case 6:return W=se.sent,!o&&Array.isArray(n)&&n.length&&(W.spec=Bl()(W.spec,n)||null),se.abrupt("return",W);case 9:case"end":return se.stop()}},e)})),Ed.apply(this,arguments)}var hm=function(){return null},vm=function(r){return Array.isArray(r)?r:[r]},$f={mapTagOperations:ym,makeExecute:gm};function gm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var n=r.pathName,a=r.method,o=r.operationId;return function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=e.requestInterceptor,g=e.responseInterceptor,b=e.userFetch;return e.execute(lr({spec:e.spec,requestInterceptor:m,responseInterceptor:g,userFetch:b,pathName:n,method:a,parameters:f,operationId:o},d))}}}function a1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=$f.makeExecute(e),n=$f.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r}),a={};for(var o in n){a[o]={operations:{}};for(var f in n[o])a[o].operations[f]={execute:n[o][f]}}return{apis:a}}function mm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=$f.makeExecute(e);return{apis:$f.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r})}}function ym(e){var r=e.spec,n=e.cb,a=n===void 0?hm:n,o=e.defaultTag,f=o===void 0?"default":o,d=e.v2OperationIdCompatibilityMode,m={},g={};return Hp(r,function(b){var x=b.pathName,I=b.method,N=b.operation,j=N.tags?vm(N.tags):[f];j.forEach(function(W){if(typeof W=="string"){g[W]=g[W]||{};var ee=g[W],te=Gf(N,x,I,{v2OperationIdCompatibilityMode:d}),se=a({spec:r,pathName:x,method:I,operation:N,operationId:te});if(m[te]){var ie;m[te]+=1,ee[ut()(ie="".concat(te)).call(ie,m[te])]=se}else if(typeof ee[te]!="undefined"){var de,we,xe=m[te]||1;m[te]=xe+1,ee[ut()(de="".concat(te)).call(de,m[te])]=se;var Ee=ee[te];delete ee[te],ee[ut()(we="".concat(te)).call(we,xe)]=Ee}else ee[te]=se}})}),g}var Kp=s(26405);function bm(e,r){if(e==null)return{};var n={},a=Ga(e),o,f;for(f=0;f<a.length;f++)o=a[f],!(Kp(r).call(r,o)>=0)&&(n[o]=e[o]);return n}function xm(e,r){if(e==null)return{};var n=bm(e,r),a,o;if(ga){var f=ga(e);for(o=0;o<f.length;o++)a=f[o],!(Kp(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}var Sm=s(13421);/*!
88
+ */var Fo=new WeakMap,pf=function(){function e(r){this.observers=new Map,this.obj=r}return e}(),ud=function(){function e(r,n){this.callback=r,this.observer=n}return e}();function hf(e){return Fo.get(e)}function Jr(e,r){return e.observers.get(r)}function Ts(e,r){e.observers.delete(r.callback)}function vf(e,r){r.unobserve()}function gf(e,r){var n=[],a,s=hf(e);if(!s)s=new pf(e),Fo.set(e,s);else{var c=Jr(s,r);a=c&&c.observer}if(a)return a;if(a={},s.value=Lr(e),r){a.callback=r,a.next=null;var p=function(){Ps(a)},m=function(){clearTimeout(a.next),a.next=setTimeout(p)};typeof window!="undefined"&&(window.addEventListener("mouseup",m),window.addEventListener("keyup",m),window.addEventListener("mousedown",m),window.addEventListener("keydown",m),window.addEventListener("change",m))}return a.patches=n,a.object=e,a.unobserve=function(){Ps(a),clearTimeout(a.next),Ts(s,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",m),window.removeEventListener("keyup",m),window.removeEventListener("mousedown",m),window.removeEventListener("keydown",m),window.removeEventListener("change",m))},s.observers.set(r,new ud(r,a)),a}function Ps(e,r){r===void 0&&(r=!1);var n=Fo.get(e.object);Ji(n.value,e.object,e.patches,"",r),e.patches.length&&Pi(n.value,e.patches);var a=e.patches;return a.length>0&&(e.patches=[],e.callback&&e.callback(a)),a}function Ji(e,r,n,a,s){if(r!==e){typeof r.toJSON=="function"&&(r=r.toJSON());for(var c=Oo(r),p=Oo(e),m=!1,v=!1,y=p.length-1;y>=0;y--){var b=p[y],I=e[b];if(Eo(r,b)&&!(r[b]===void 0&&I!==void 0&&Array.isArray(r)===!1)){var R=r[b];typeof I=="object"&&I!=null&&typeof R=="object"&&R!=null&&Array.isArray(I)===Array.isArray(R)?Ji(I,R,n,a+"/"+li(b),s):I!==R&&(m=!0,s&&n.push({op:"test",path:a+"/"+li(b),value:Lr(I)}),n.push({op:"replace",path:a+"/"+li(b),value:Lr(R)}))}else Array.isArray(e)===Array.isArray(r)?(s&&n.push({op:"test",path:a+"/"+li(b),value:Lr(I)}),n.push({op:"remove",path:a+"/"+li(b)}),v=!0):(s&&n.push({op:"test",path:a,value:e}),n.push({op:"replace",path:a,value:r}),m=!0)}if(!(!v&&c.length==p.length))for(var y=0;y<c.length;y++){var b=c[y];!Eo(e,b)&&r[b]!==void 0&&n.push({op:"add",path:a+"/"+li(b),value:Lr(r[b])})}}}function Is(e,r,n){n===void 0&&(n=!1);var a=[];return Ji(e,r,a,"",n),a}const fd=Object.assign({},d,x,{JsonPatchError:Wl,deepClone:Lr,escapePathComponent:li,unescapePathComponent:uf});var mf=o(39714),Hl=o.n(mf);const Jt={add:bf,replace:Xi,remove:cd,merge:Xa,mergeDeep:xf,context:Sf,getIn:dd,applyPatch:yf,parentPathMatch:Af,flatten:ui,fullyNormalizeArray:Cf,normalizeArray:Ii,isPromise:Ef,forEachNew:wf,forEachNewPrimitive:Ro,isJsonPatch:Tf,isContextPatch:hd,isPatch:ks,isMutation:zl,isAdditiveMutation:Fs,isGenerator:dn,isFunction:Of,isObject:ma,isError:pd};function yf(e,r,n){if(n=n||{},r=K(K({},r),{},{path:r.path&&ko(r.path)}),r.op==="merge"){var a=Rs(e,r.path);te()(a,r.value),Pi(e,[Xi(r.path,a)])}else if(r.op==="mergeDeep"){var s=Rs(e,r.path),c=Hl()(s,r.value);e=Pi(e,[Xi(r.path,c)]).newDocument}else if(r.op==="add"&&r.path===""&&ma(r.value)){var p=Rt()(r.value).reduce(function(I,R){return I.push({op:"add",path:"/".concat(ko(R)),value:r.value[R]}),I},[]);Pi(e,p)}else if(r.op==="replace"&&r.path===""){var m=r,v=m.value;n.allowMetaPatches&&r.meta&&Fs(r)&&(Array.isArray(r.value)||ma(r.value))&&(v=K(K({},v),r.meta)),e=v}else if(Pi(e,[r]),n.allowMetaPatches&&r.meta&&Fs(r)&&(Array.isArray(r.value)||ma(r.value))){var y=Rs(e,r.path),b=K(K({},y),r.meta);Pi(e,[Xi(r.path,b)])}return e}function ko(e){return Array.isArray(e)?e.length<1?"":"/".concat(Xe()(e).call(e,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):e}function bf(e,r){return{op:"add",path:e,value:r}}function Xi(e,r,n){return{op:"replace",path:e,value:r,meta:n}}function cd(e){return{op:"remove",path:e}}function Xa(e,r){return{type:"mutation",op:"merge",path:e,value:r}}function xf(e,r){return{type:"mutation",op:"mergeDeep",path:e,value:r}}function Sf(e,r){return{type:"context",path:e,value:r}}function wf(e,r){try{return Qa(e,ga,r)}catch(n){return n}}function Ro(e,r){try{return Qa(e,va,r)}catch(n){return n}}function Qa(e,r,n){var a,s=Xe()(a=$e()(e).call(e,Fs)).call(a,function(m){return r(m.value,n,m.path)})||[],c=ui(s),p=Za(c);return p}function va(e,r,n){if(n=n||[],Array.isArray(e))return Xe()(e).call(e,function(s,c){return va(s,r,_e()(n).call(n,c))});if(ma(e)){var a;return Xe()(a=Rt()(e)).call(a,function(s){return va(e[s],r,_e()(n).call(n,s))})}return r(e,n[n.length-1],n)}function ga(e,r,n){n=n||[];var a=[];if(n.length>0){var s=r(e,n[n.length-1],n);s&&(a=_e()(a).call(a,s))}if(Array.isArray(e)){var c=Xe()(e).call(e,function(v,y){return ga(v,r,_e()(n).call(n,y))});c&&(a=_e()(a).call(a,c))}else if(ma(e)){var p,m=Xe()(p=Rt()(e)).call(p,function(v){return ga(e[v],r,_e()(n).call(n,v))});m&&(a=_e()(a).call(a,m))}return a=ui(a),a}function Af(e,r){if(!Array.isArray(r))return!1;for(var n=0,a=r.length;n<a;n+=1)if(r[n]!==e[n])return!1;return!0}function dd(e,r){return r.reduce(function(n,a){return typeof a!="undefined"&&n?n[a]:n},e)}function Cf(e){return Za(ui(Ii(e)))}function Ii(e){return Array.isArray(e)?e:[e]}function ui(e){var r;return _e()(r=[]).apply(r,pa(Xe()(e).call(e,function(n){return Array.isArray(n)?ui(n):n})))}function Za(e){return $e()(e).call(e,function(r){return typeof r!="undefined"})}function ma(e){return e&&$(e)==="object"}function Ef(e){return ma(e)&&Of(e.then)}function Of(e){return e&&typeof e=="function"}function pd(e){return e instanceof Error}function Tf(e){if(ks(e)){var r=e.op;return r==="add"||r==="remove"||r==="replace"}return!1}function dn(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function zl(e){return Tf(e)||ks(e)&&e.type==="mutation"}function Fs(e){return zl(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function hd(e){return ks(e)&&e.type==="context"}function ks(e){return e&&$(e)==="object"}function Rs(e,r){try{return Po(e,r)}catch(n){return console.error(n),{}}}var Pf=o(36394),If=o.n(Pf),vd=o(8304),Ff=o.n(vd);function kf(e,r){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];this.message=s[0],r&&r.apply(this,s)}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var Qi=o(56855),Mo=o.n(Qi),Ms=["properties"],Lo=["properties"],Fi=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],gd=["schema/example","items/example"];function Rf(e){var r=e[e.length-1],n=e[e.length-2],a=e.join("/");return Ms.indexOf(r)>-1&&Lo.indexOf(n)===-1||Fi.indexOf(a)>-1||gd.some(function(s){return a.indexOf(s)>-1})}function qa(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.specmap,s=n.getBaseUrlForNodePath,c=s===void 0?function(y){var b;return a.getContext(_e()(b=[]).call(b,pa(r),pa(y))).baseDoc}:s,p=n.targetKeys,m=p===void 0?["$ref","$$ref"]:p,v=[];return Mo()(e).forEach(function(){if(Ge()(m).call(m,this.key)&&typeof this.node=="string"){var b=this.path,I=_e()(r).call(r,this.path),R=Ls(this.node,c(b));v.push(a.replace(I,R))}}),v}function Ls(e,r){var n,a=e.split("#"),s=at(a,2),c=s[0],p=s[1],m=fe.resolve(c||"",r||"");return p?_e()(n="".concat(m,"#")).call(n,p):m}var Gl="application/json, application/yaml",Mf=/^([a-z]+:\/\/|\/\/)/i,ki=kf("JSONRefError",function(r,n,a){this.originalError=a,te()(this,n||{})}),wn={},Ns=new(If()),$l=[function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="examples"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="examples"&&e[6]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="examples"&&e[7]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[4]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"}],Kl=function(r){return $l.some(function(n){return n(r)})},md={key:"$ref",plugin:function(r,n,a,s){var c=s.getInstance(),p=Xn()(a).call(a,0,-1);if(!(Rf(p)||Kl(p))){var m=s.getContext(a),v=m.baseDoc;if(typeof r!="string")return new ki("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:v,fullPath:a});var y=No(r),b=y[0],I=y[1]||"",R;try{R=v||b?Nf(b,v):null}catch(ae){return Ds(ae,{pointer:I,$ref:r,basePath:R,fullPath:a})}var N,G;if(xd(I,R,p,s)&&!c.useCircularStructures){var ee=Ls(r,R);return r===ee?null:Jt.replace(a,ee)}if(R==null?(G=Yl(I),N=s.get(G),typeof N=="undefined"&&(N=new ki("Could not resolve reference: ".concat(r),{pointer:I,$ref:r,baseDoc:v,fullPath:a}))):(N=Df(R,I),N.__value!=null?N=N.__value:N=N.catch(function(ae){throw Ds(ae,{pointer:I,$ref:r,baseDoc:v,fullPath:a})})),N instanceof Error)return[Jt.remove(a),N];var q=Ls(r,R),oe=Jt.replace(p,N,{$$ref:q});if(R&&R!==v)return[oe,Jt.context(p,{baseDoc:R})];try{if(!Xl(s.state,oe)||c.useCircularStructures)return oe}catch(ae){return null}}}},_a=te()(md,{docCache:wn,absoluteify:Nf,clearCache:yd,JSONRefError:ki,wrapError:Ds,getDoc:eo,split:No,extractFromDoc:Df,fetchJSON:Bf,extract:Bs,jsonPointerToArray:Yl,unescapeJsonPointerToken:js});const Lf=_a;function Nf(e,r){if(!Mf.test(e)){if(!r){var n;throw new ki(_e()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(n,r,"'"))}return fe.resolve(r,e)}return e}function Ds(e,r){var n;if(e&&e.response&&e.response.body){var a;n=_e()(a="".concat(e.response.body.code," ")).call(a,e.response.body.message)}else n=e.message;return new ki("Could not resolve reference: ".concat(n),r,e)}function No(e){return(e+"").split("#")}function Df(e,r){var n=wn[e];if(n&&!Jt.isPromise(n))try{var a=Bs(r,n);return te()(Oi().resolve(a),{__value:a})}catch(s){return Oi().reject(s)}return eo(e).then(function(s){return Bs(r,s)})}function yd(e){typeof e!="undefined"?delete wn[e]:Rt()(wn).forEach(function(r){delete wn[r]})}function eo(e){var r=wn[e];return r?Jt.isPromise(r)?r:Oi().resolve(r):(wn[e]=_a.fetchJSON(e).then(function(n){return wn[e]=n,n}),wn[e])}function Bf(e){return fetch(e,{headers:{Accept:Gl},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Ll.load(r)})}function Bs(e,r){var n=Yl(e);if(n.length<1)return r;var a=Jt.getIn(r,n);if(typeof a=="undefined")throw new ki("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return a}function Yl(e){var r;if(typeof e!="string")throw new TypeError("Expected a string, got a ".concat($(e)));return e[0]==="/"&&(e=e.substr(1)),e===""?[]:Xe()(r=e.split("/")).call(r,js)}function js(e){if(typeof e!="string")return e;var r=new(Ff())("=".concat(e.replace(/~1/g,"/").replace(/~0/g,"~")));return r.get("")}function Jl(e){var r,n=new(Ff())([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]);return Xn()(r=n.toString()).call(r,1)}function bd(e){return e.length===0?"":"/".concat(Xe()(e).call(e,Jl).join("/"))}var jf=function(r){return!r||r==="/"||r==="#"};function Vs(e,r){if(jf(r))return!0;var n=e.charAt(r.length),a=Xn()(r).call(r,-1);return e.indexOf(r)===0&&(!n||n==="/"||n==="#")&&a!=="#"}function xd(e,r,n,a){var s,c,p=Ns.get(a);p||(p={},Ns.set(a,p));var m=bd(n),v=_e()(s="".concat(r||"<specmap-base>","#")).call(s,e),y=m.replace(/allOf\/\d+\/?/g,""),b=a.contextTree.get([]).baseDoc;if(r===b&&Vs(y,e))return!0;var I="",R=n.some(function(N){var G;return I=_e()(G="".concat(I,"/")).call(G,Jl(N)),p[I]&&p[I].some(function(ee){return Vs(ee,v)||Vs(v,ee)})});if(R)return!0;p[y]=_e()(c=p[y]||[]).call(c,v)}function Xl(e,r){var n=[e];return r.path.reduce(function(s,c){return n.push(s[c]),s[c]},e),a(r.value);function a(s){return Jt.isObject(s)&&(n.indexOf(s)>=0||Rt()(s).some(function(c){return a(s[c])}))}}const Do={key:"allOf",plugin:function(r,n,a,s,c){if(!(c.meta&&c.meta.$$ref)){var p=Xn()(a).call(a,0,-1);if(!Rf(p)){if(!Array.isArray(r)){var m=new TypeError("allOf must be an array");return m.fullPath=a,m}var v=!1,y=c.value;if(p.forEach(function(N){!y||(y=y[N])}),y=K({},y),Rt()(y).length!==0){delete y.allOf;var b=[];if(b.push(s.replace(p,{})),r.forEach(function(N,G){if(!s.isObject(N)){if(v)return null;v=!0;var ee=new TypeError("Elements in allOf must be objects");return ee.fullPath=a,b.push(ee)}b.push(s.mergeDeep(p,N));var q=Xn()(a).call(a,0,-1),oe=qa(N,q,{getBaseUrlForNodePath:function(pe){var ve;return s.getContext(_e()(ve=[]).call(ve,pa(a),[G],pa(pe))).baseDoc},specmap:s});b.push.apply(b,pa(oe))}),y.example){var I;b.push(s.remove(_e()(I=[]).call(I,p,"example")))}if(b.push(s.mergeDeep(p,y)),!y.$$ref){var R;b.push(s.remove(_e()(R=[]).call(R,p,"$$ref")))}return b}}}}},Bo={key:"parameters",plugin:function(r,n,a,s){if(Array.isArray(r)&&r.length){var c=te()([],r),p=Xn()(a).call(a,0,-1),m=K({},Jt.getIn(s.spec,p));return r.forEach(function(v,y){try{c[y].default=s.parameterMacro(m,v)}catch(I){var b=new Error(I);return b.fullPath=a,b}}),Jt.replace(a,c)}return Jt.replace(a,r)}},Sd={key:"properties",plugin:function(r,n,a,s){var c=K({},r);for(var p in r)try{c[p].default=s.modelPropertyMacro(c[p])}catch(y){var m=new Error(y);return m.fullPath=a,m}var v=Jt.replace(a,c);return v}};var Vf=function(){function e(r){Sn(this,e),this.root=Ql(r||{})}return Ln(e,[{key:"set",value:function(n,a){var s=this.getParent(n,!0);if(!s){Us(this.root,a,null);return}var c=n[n.length-1],p=s.children;if(p[c]){Us(p[c],a,s);return}p[c]=Ql(a,s)}},{key:"get",value:function(n){if(n=n||[],n.length<1)return this.root.value;for(var a=this.root,s,c,p=0;p<n.length&&(c=n[p],s=a.children,!!s[c]);p+=1)a=s[c];return a&&a.protoValue}},{key:"getParent",value:function(n,a){return!n||n.length<1?null:n.length<2?this.root:Xn()(n).call(n,0,-1).reduce(function(s,c){if(!s)return s;var p=s.children;return!p[c]&&a&&(p[c]=Ql(null,s)),p[c]},this.root)}}]),e}();function Ql(e,r){return Us({children:{}},e,r)}function Us(e,r,n){return e.value=r||{},e.protoValue=n?K(K({},n.protoValue),e.value):e.value,Rt()(e.children).forEach(function(a){var s=e.children[a];e.children[a]=Us(s,s.value,e)}),e}var Uf=100,Wf=function(){},Hf=function(){function e(r){var n=this,a,s;Sn(this,e),te()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Vf,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:te()(Object.create(this),Jt,{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=$e()(a=Xe()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,Jt.isFunction),this.patches.push(Jt.add([],this.spec)),this.patches.push(Jt.context([],this.context)),this.updatePatches(this.patches)}return Ln(e,[{key:"debug",value:function(n){if(this.debugLevel===n){for(var a,s=arguments.length,c=new Array(s>1?s-1:0),p=1;p<s;p++)c[p-1]=arguments[p];(a=console).log.apply(a,c)}}},{key:"verbose",value:function(n){if(this.debugLevel==="verbose"){for(var a,s,c=arguments.length,p=new Array(c>1?c-1:0),m=1;m<c;m++)p[m-1]=arguments[m];(a=console).log.apply(a,_e()(s=["[".concat(n,"] ")]).call(s,p))}}},{key:"wrapPlugin",value:function(n,a){var s=this.pathDiscriminator,c=null,p;return n[this.pluginProp]?(c=n,p=n[this.pluginProp]):Jt.isFunction(n)?p=n:Jt.isObject(n)&&(p=m(n)),te()(p.bind(c),{pluginName:n.name||a,isGenerator:Jt.isGenerator(p)});function m(v){var y=function(I,R){return Array.isArray(I)?I.every(function(N,G){return N===R[G]}):!0};return be().mark(function b(I,R){var N,G,ee,q,oe,ae;return be().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:ae=function(Te,Ae,Se){var Ce,Fe,Re,Ue,ze,Ct,qe,nr,ur,jt,fr,$t,cr;return be().wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(Jt.isObject(Te)){Ut.next=6;break}if(v.key!==Ae[Ae.length-1]){Ut.next=4;break}return Ut.next=4,v.plugin(Te,v.key,Ae,R);case 4:Ut.next=30;break;case 6:Ce=Ae.length-1,Fe=Ae[Ce],Re=Ae.indexOf("properties"),Ue=Fe==="properties"&&Ce===Re,ze=R.allowMetaPatches&&G[Te.$$ref],Ct=0,qe=Rt()(Te);case 12:if(!(Ct<qe.length)){Ut.next=30;break}if(nr=qe[Ct],ur=Te[nr],jt=_e()(Ae).call(Ae,nr),fr=Jt.isObject(ur),$t=Te.$$ref,ze){Ut.next=22;break}if(!fr){Ut.next=22;break}return R.allowMetaPatches&&$t&&(G[$t]=!0),Ut.delegateYield(ae(ur,jt,Se),"t0",22);case 22:if(!(!Ue&&nr===v.key)){Ut.next=27;break}if(cr=y(s,Ae),!(!s||cr)){Ut.next=27;break}return Ut.next=27,v.plugin(ur,nr,jt,R,Se);case 27:Ct++,Ut.next=12;break;case 30:case"end":return Ut.stop()}},N)},N=be().mark(ae),G={},ee=je($e()(I).call(I,Jt.isAdditiveMutation)),ve.prev=4,ee.s();case 6:if((q=ee.n()).done){ve.next=11;break}return oe=q.value,ve.delegateYield(ae(oe.value,oe.path,oe),"t0",9);case 9:ve.next=6;break;case 11:ve.next=16;break;case 13:ve.prev=13,ve.t1=ve.catch(4),ee.e(ve.t1);case 16:return ve.prev=16,ee.f(),ve.finish(16);case 19:case"end":return ve.stop()}},b,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var n,a=this;return Yi()(n=this.wrappedPlugins).call(n,function(s){var c=a.getMutationsForPlugin(s);return c.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var n;return Oi().race(Xe()(n=this.promisedPatches).call(n,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(n){var a=this.constructor.getPluginName(n);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(n){return this.getPluginHistory(n).length}},{key:"getPluginHistoryTip",value:function(n){var a=this.getPluginHistory(n),s=a&&a[a.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(n){var a=this.getPluginHistoryTip(n).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(n,a){var s=this.constructor.getPluginName(n);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(a)}},{key:"updatePatches",value:function(n){var a=this;Jt.normalizeArray(n).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!Jt.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),Jt.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(Jt.isContextPatch(s)){a.setContext(s.path,s.value);return}if(Jt.isMutation(s)){a.updateMutations(s);return}}catch(c){console.error(c),a.errors.push(c)}})}},{key:"updateMutations",value:function(n){$(n.value)==="object"&&!Array.isArray(n.value)&&this.allowMetaPatches&&(n.value=K({},n.value));var a=Jt.applyPatch(this.state,n,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(n),this.state=a)}},{key:"removePromisedPatch",value:function(n){var a,s=this.promisedPatches.indexOf(n);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}sd()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(n){var a=this;return n.value=n.value.then(function(s){var c=K(K({},n),{},{value:s});a.removePromisedPatch(n),a.updatePatches(c)}).catch(function(s){a.removePromisedPatch(n),a.updatePatches(s)}),n.value}},{key:"getMutations",value:function(n,a){var s;return n=n||0,typeof a!="number"&&(a=this.mutations.length),Xn()(s=this.mutations).call(s,n,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(n){var a=this.getPluginMutationIndex(n);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(n){return Jt.getIn(this.state,n)}},{key:"_getContext",value:function(n){return this.contextTree.get(n)}},{key:"setContext",value:function(n,a){return this.contextTree.set(n,a)}},{key:"_hasRun",value:function(n){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(n||0)}},{key:"dispatch",value:function(){var n=this,a=this,s=this.nextPlugin();if(!s){var c=this.nextPromisedPatch();if(c)return c.then(function(){return n.dispatch()}).catch(function(){return n.dispatch()});var p={spec:this.state,errors:this.errors};return this.showDebug&&(p.patches=this.allPatches),Oi().resolve(p)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>Uf){var m;return Oi().resolve({spec:a.state,errors:_e()(m=a.errors).call(m,new Error("We've reached a hard limit of ".concat(Uf," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var v,y=Xe()(v=this.promisedPatches).call(v,function(R){return R.value});return Oi().all(Xe()(y).call(y,function(R){return R.then(Wf,Wf)})).then(function(){return n.dispatch()})}return b();function b(){a.currentPlugin=s;var R=a.getCurrentMutations(),N=a.mutations.length-1;try{if(s.isGenerator){var G=je(s(R,a.getLib())),ee;try{for(G.s();!(ee=G.n()).done;){var q=ee.value;I(q)}}catch(ae){G.e(ae)}finally{G.f()}}else{var oe=s(R,a.getLib());I(oe)}}catch(ae){console.error(ae),I([te()(Object.create(ae),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:N})}return a.dispatch()}function I(R){R&&(R=Jt.fullyNormalizeArray(R),a.updatePatches(R,s))}}}],[{key:"getPluginName",value:function(n){return n.pluginName}},{key:"getPatchesOfType",value:function(n,a){return $e()(n).call(n,a)}}]),e}();function wd(e){return new Hf(e).dispatch()}var ya={refs:Lf,allOf:Do,parameters:Bo,properties:Sd},Zl=function(r){return String.prototype.toLowerCase.call(r)},Ws=function(r){return r.replace(/[^\w]/gi,"_")};function ql(e){var r=e.openapi;return r?H()(r).call(r,"3"):!1}function Op(e){var r=e.swagger;return r?_startsWithInstanceProperty(r).call(r,"2"):!1}function jo(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.v2OperationIdCompatibilityMode;if(!e||$(e)!=="object")return null;var c=(e.operationId||"").replace(/\s/g,"");return c.length?Ws(e.operationId):to(r,n,{v2OperationIdCompatibilityMode:s})}function to(e,r){var n,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var c,p,m=_e()(c="".concat(r.toLowerCase(),"_")).call(c,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return m=m||_e()(p="".concat(e.substring(1),"_")).call(p,r),m.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return _e()(n="".concat(Zl(r))).call(n,Ws(e))}function _l(e,r){var n;return _e()(n="".concat(Zl(r),"-")).call(n,e)}function Hs(e,r){return!e||!e.paths?null:Ad(e,function(n){var a=n.pathName,s=n.method,c=n.operation;if(!c||$(c)!=="object")return!1;var p=c.operationId,m=jo(c,a,s),v=_l(a,s);return[m,v,p].some(function(y){return y&&y===r})})}function Ad(e,r){return zf(e,r,!0)||null}function zf(e,r,n){if(!e||$(e)!=="object"||!e.paths||$(e.paths)!=="object")return null;var a=e.paths;for(var s in a)for(var c in a[s])if(c.toUpperCase()!=="PARAMETERS"){var p=a[s][c];if(!(!p||$(p)!=="object")){var m={spec:e,pathName:s,method:c.toUpperCase(),operation:p},v=r(m);if(n&&v)return m}}}function Gf(e){var r=e.spec,n=r.paths,a={};if(!n||r.$$normalized)return e;for(var s in n){var c,p=n[s];if(!(p==null||!Ge()(c=["object","function"]).call(c,$(p)))){var m=p.parameters,v=function(R){var N,G=p[R];if(G==null||!Ge()(N=["object","function"]).call(N,$(G)))return"continue";var ee=jo(G,s,R);if(ee){a[ee]?a[ee].push(G):a[ee]=[G];var q=a[ee];if(q.length>1)q.forEach(function(Ue,ze){var Ct;Ue.__originalOperationId=Ue.__originalOperationId||Ue.operationId,Ue.operationId=_e()(Ct="".concat(ee)).call(Ct,ze+1)});else if(typeof G.operationId!="undefined"){var oe=q[0];oe.__originalOperationId=oe.__originalOperationId||G.operationId,oe.operationId=ee}}if(R!=="parameters"){var ae=[],pe={};for(var ve in r)(ve==="produces"||ve==="consumes"||ve==="security")&&(pe[ve]=r[ve],ae.push(pe));if(m&&(pe.parameters=m,ae.push(pe)),ae.length){var me=je(ae),Te;try{for(me.s();!(Te=me.n()).done;){var Ae=Te.value;for(var Se in Ae)if(!G[Se])G[Se]=Ae[Se];else if(Se==="parameters"){var Ce=je(Ae[Se]),Fe;try{var Re=function(){var ze=Fe.value,Ct=G[Se].some(function(qe){return qe.name&&qe.name===ze.name||qe.$ref&&qe.$ref===ze.$ref||qe.$$ref&&qe.$$ref===ze.$$ref||qe===ze});Ct||G[Se].push(ze)};for(Ce.s();!(Fe=Ce.n()).done;)Re()}catch(Ue){Ce.e(Ue)}finally{Ce.f()}}}}catch(Ue){me.e(Ue)}finally{me.f()}}}};for(var y in p)var b=v(y)}}return r.$$normalized=!0,e}function gr(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.requestInterceptor,a=r.responseInterceptor,s=e.withCredentials?"include":"same-origin";return function(c){return e({url:c,loadSpec:!0,requestInterceptor:n,responseInterceptor:a,headers:{Accept:Gl},credentials:s}).then(function(p){return p.body})}}function Cd(){ya.refs.clearCache()}function zs(e){var r=e.fetch,n=e.spec,a=e.url,s=e.mode,c=e.allowMetaPatches,p=c===void 0?!0:c,m=e.pathDiscriminator,v=e.modelPropertyMacro,y=e.parameterMacro,b=e.requestInterceptor,I=e.responseInterceptor,R=e.skipNormalization,N=e.useCircularStructures,G=e.http,ee=e.baseDoc;if(ee=ee||a,G=r||G||$a,!n)return gr(G,{requestInterceptor:b,responseInterceptor:I})(ee).then(q);return q(n);function q(oe){ee&&(ya.refs.docCache[ee]=oe),ya.refs.fetchJSON=gr(G,{requestInterceptor:b,responseInterceptor:I});var ae=[ya.refs];return typeof y=="function"&&ae.push(ya.parameters),typeof v=="function"&&ae.push(ya.properties),s!=="strict"&&ae.push(ya.allOf),wd({spec:oe,context:{baseDoc:ee},plugins:ae,allowMetaPatches:p,pathDiscriminator:m,parameterMacro:y,modelPropertyMacro:v,useCircularStructures:N}).then(R?function(){var pe=Le(be().mark(function ve(me){return be().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.abrupt("return",me);case 1:case"end":return Ae.stop()}},ve)}));return function(ve){return pe.apply(this,arguments)}}():Gf)}}var Vo=o(72579),pn=o.n(Vo);function Gs(e,r){return Uo.apply(this,arguments)}function Uo(){return Uo=Le(be().mark(function e(r,n){var a,s,c,p,m,v,y,b,I,R,N,G,ee=arguments;return be().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return a=ee.length>2&&ee[2]!==void 0?ee[2]:{},s=a.returnEntireTree,c=a.baseDoc,p=a.requestInterceptor,m=a.responseInterceptor,v=a.parameterMacro,y=a.modelPropertyMacro,b=a.useCircularStructures,I={pathDiscriminator:n,baseDoc:c,requestInterceptor:p,responseInterceptor:m,parameterMacro:v,modelPropertyMacro:y,useCircularStructures:b},R=Gf({spec:r}),N=R.spec,oe.next=6,zs(K(K({},I),{},{spec:N,allowMetaPatches:!0,skipNormalization:!0}));case 6:return G=oe.sent,!s&&Array.isArray(n)&&n.length&&(G.spec=pn()(G.spec,n)||null),oe.abrupt("return",G);case 9:case"end":return oe.stop()}},e)})),Uo.apply(this,arguments)}var $f=function(){return null},Kf=function(r){return Array.isArray(r)?r:[r]},Wo={mapTagOperations:tu,makeExecute:eu};function eu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var n=r.pathName,a=r.method,s=r.operationId;return function(c){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=e.requestInterceptor,v=e.responseInterceptor,y=e.userFetch;return e.execute(K({spec:e.spec,requestInterceptor:m,responseInterceptor:v,userFetch:y,pathName:n,method:a,parameters:c,operationId:s},p))}}}function Ed(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Wo.makeExecute(e),n=Wo.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r}),a={};for(var s in n){a[s]={operations:{}};for(var c in n[s])a[s].operations[c]={execute:n[s][c]}}return{apis:a}}function Od(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Wo.makeExecute(e);return{apis:Wo.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r})}}function tu(e){var r=e.spec,n=e.cb,a=n===void 0?$f:n,s=e.defaultTag,c=s===void 0?"default":s,p=e.v2OperationIdCompatibilityMode,m={},v={};return zf(r,function(y){var b=y.pathName,I=y.method,R=y.operation,N=R.tags?Kf(R.tags):[c];N.forEach(function(G){if(typeof G=="string"){v[G]=v[G]||{};var ee=v[G],q=jo(R,b,I,{v2OperationIdCompatibilityMode:p}),oe=a({spec:r,pathName:b,method:I,operation:R,operationId:q});if(m[q]){var ae;m[q]+=1,ee[_e()(ae="".concat(q)).call(ae,m[q])]=oe}else if(typeof ee[q]!="undefined"){var pe,ve,me=m[q]||1;m[q]=me+1,ee[_e()(pe="".concat(q)).call(pe,m[q])]=oe;var Te=ee[q];delete ee[q],ee[_e()(ve="".concat(q)).call(ve,me)]=Te}else ee[q]=oe}})}),v}var ru=o(26405);function lr(e,r){if(e==null)return{};var n={},a=O(e),s,c;for(c=0;c<a.length;c++)s=a[c],!(ru(r).call(r,s)>=0)&&(n[s]=e[s]);return n}function Yf(e,r){if(e==null)return{};var n=lr(e,r),a,s;if(k){var c=k(e);for(s=0;s<c.length;s++)a=c[s],!(ru(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}var Td=o(13421);/*!
90
89
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
91
90
  *
92
91
  * Copyright (c) 2014-2017, Jon Schlinkert.
93
92
  * Released under the MIT License.
94
- */function Yp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jp(e){var r,n;return Yp(e)===!1?!1:(r=e.constructor,r===void 0?!0:(n=r.prototype,!(Yp(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const wm={body:Am,header:Em,query:Tm,path:Om,formData:Cm};function Am(e){var r=e.req,n=e.value;r.body=n}function Cm(e){var r=e.req,n=e.value,a=e.parameter;(n||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:n,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Em(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[n.name]=a)}function Om(e){var r=e.req,n=e.value,a=e.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(n))}function Tm(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},n===!1&&a.type==="boolean"&&(n="false"),n===0&&["number","integer"].indexOf(a.type)>-1&&(n="0"),n)r.query[a.name]={collectionFormat:a.collectionFormat,value:n};else if(a.allowEmptyValue&&n!==void 0){var o=a.name;r.query[o]=r.query[o]||{},r.query[o].allowEmptyValue=!0}}function Kf(e,r){return gi()(r).call(r,"application/json")?typeof e=="string"?e:Ya()(e):e.toString()}function Pm(e){var r=e.req,n=e.value,a=e.parameter,o=a.name,f=a.style,d=a.explode,m=a.content;if(m){var g=Kt()(m)[0];r.url=r.url.split("{".concat(o,"}")).join(ua(Kf(n,g),{escape:!0}));return}var b=Ol({key:a.name,value:n,style:f||"simple",explode:d||!1,escape:!0});r.url=r.url.split("{".concat(o,"}")).join(b)}function Im(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},a.content){var o=Kt()(a.content)[0];r.query[a.name]=Kf(n,o);return}if(n===!1&&(n="false"),n===0&&(n="0"),n){var f=a.style,d=a.explode,m=a.allowReserved;r.query[a.name]={value:n,serializationOption:{style:f,explode:d,allowReserved:m}}}else if(a.allowEmptyValue&&n!==void 0){var g=a.name;r.query[g]=r.query[g]||{},r.query[g].allowEmptyValue=!0}}var km=["accept","authorization","content-type"];function Fm(e){var r=e.req,n=e.parameter,a=e.value;if(r.headers=r.headers||{},!(km.indexOf(n.name.toLowerCase())>-1)){if(n.content){var o=Kt()(n.content)[0];r.headers[n.name]=Kf(a,o);return}typeof a!="undefined"&&(r.headers[n.name]=Ol({key:n.name,value:a,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function Rm(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{};var o=ar(a);if(n.content){var f,d=Kt()(n.content)[0];r.headers.Cookie=ut()(f="".concat(n.name,"=")).call(f,Kf(a,d));return}if(o!=="undefined"){var m=o==="object"&&!Array.isArray(a)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=m+Ol({key:n.name,value:a,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var Lm=s(1858),Xp=s.n(Lm),Mm=function(){return typeof Xp()!="undefined"?Xp():typeof self!="undefined"?self:window}(),Nm=Mm.btoa;const Qp=Nm;function Dm(e,r){var n=e.operation,a=e.requestBody,o=e.securities,f=e.spec,d=e.attachContentTypeForEmptyPayload,m=e.requestContentType;r=Bm({request:r,securities:o,operation:n,spec:f});var g=n.requestBody||{},b=Kt()(g.content||{}),x=m&&b.indexOf(m)>-1;if(a||d){if(m&&x)r.headers["Content-Type"]=m;else if(!m){var I=b[0];I&&(r.headers["Content-Type"]=I,m=I)}}else m&&x&&(r.headers["Content-Type"]=m);if(!e.responseContentType&&n.responses){var N,j=Er()(N=Ou()(n.responses)).call(N,function(ee){var te=$n(ee,2),se=te[0],ie=te[1],de=parseInt(se,10);return de>=200&&de<300&&Jp(ie.content)}).reduce(function(ee,te){var se=$n(te,2),ie=se[1];return ut()(ee).call(ee,Kt()(ie.content))},[]);j.length>0&&(r.headers.accept=j.join(", "))}if(a)if(m){if(b.indexOf(m)>-1)if(m==="application/x-www-form-urlencoded"||m==="multipart/form-data")if(ar(a)==="object"){var W=(g.content[m]||{}).encoding||{};r.form={},Kt()(a).forEach(function(ee){r.form[ee]={value:a[ee],encoding:W[ee]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function Bm(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,o=e.operation,f=o===void 0?{}:o,d=e.spec,m=lr({},r),g=a.authorized,b=g===void 0?{}:g,x=f.security||d.security||[],I=b&&!!Kt()(b).length,N=Bl()(d,["components","securitySchemes"])||{};return m.headers=m.headers||{},m.query=m.query||{},!Kt()(a).length||!I||!x||Array.isArray(f.security)&&!f.security.length?r:(x.forEach(function(j){Kt()(j).forEach(function(W){var ee=b[W],te=N[W];if(!!ee){var se=ee.value||ee,ie=te.type;if(ee){if(ie==="apiKey")te.in==="query"&&(m.query[te.name]=se),te.in==="header"&&(m.headers[te.name]=se),te.in==="cookie"&&(m.cookies[te.name]=se);else if(ie==="http"){if(/^basic$/i.test(te.scheme)){var de,we=se.username||"",xe=se.password||"",Ee=Qp(ut()(de="".concat(we,":")).call(de,xe));m.headers.Authorization="Basic ".concat(Ee)}/^bearer$/i.test(te.scheme)&&(m.headers.Authorization="Bearer ".concat(se))}else if(ie==="oauth2"||ie==="openIdConnect"){var ye,be=ee.token||{},Se=te["x-tokenName"]||"access_token",ke=be[Se],Me=be.token_type;(!Me||Me.toLowerCase()==="bearer")&&(Me="Bearer"),m.headers.Authorization=ut()(ye="".concat(Me," ")).call(ye,ke)}}}})}),m)}function jm(e,r){var n=e.spec,a=e.operation,o=e.securities,f=e.requestContentType,d=e.responseContentType,m=e.attachContentTypeForEmptyPayload;if(r=Vm({request:r,securities:o,operation:a,spec:n}),r.body||r.form||m){var g,b;if(f)r.headers["Content-Type"]=f;else if(Array.isArray(a.consumes)){var x=$n(a.consumes,1);r.headers["Content-Type"]=x[0]}else if(Array.isArray(n.consumes)){var I=$n(n.consumes,1);r.headers["Content-Type"]=I[0]}else a.parameters&&Er()(g=a.parameters).call(g,function(te){return te.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&Er()(b=a.parameters).call(b,function(te){return te.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(f){var N,j,W=a.parameters&&Er()(N=a.parameters).call(N,function(te){return te.in==="body"}).length>0,ee=a.parameters&&Er()(j=a.parameters).call(j,function(te){return te.in==="formData"}).length>0;(W||ee)&&(r.headers["Content-Type"]=f)}return!d&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function Vm(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,o=e.operation,f=o===void 0?{}:o,d=e.spec,m=lr({},r),g=a.authorized,b=g===void 0?{}:g,x=a.specSecurity,I=x===void 0?[]:x,N=f.security||I,j=b&&!!Kt()(b).length,W=d.securityDefinitions;return m.headers=m.headers||{},m.query=m.query||{},!Kt()(a).length||!j||!N||Array.isArray(f.security)&&!f.security.length?r:(N.forEach(function(ee){Kt()(ee).forEach(function(te){var se=b[te];if(!!se){var ie=se.token,de=se.value||se,we=W[te],xe=we.type,Ee=we["x-tokenName"]||"access_token",ye=ie&&ie[Ee],be=ie&&ie.token_type;if(se){if(xe==="apiKey"){var Se=we.in==="query"?"query":"headers";m[Se]=m[Se]||{},m[Se][we.name]=de}else if(xe==="basic")if(de.header)m.headers.authorization=de.header;else{var ke,Me=de.username||"",Re=de.password||"";de.base64=Qp(ut()(ke="".concat(Me,":")).call(ke,Re)),m.headers.authorization="Basic ".concat(de.base64)}else if(xe==="oauth2"&&ye){var We;be=!be||be.toLowerCase()==="bearer"?"Bearer":be,m.headers.authorization=ut()(We="".concat(be," ")).call(We,ye)}}}})}),m)}var Um=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Zp=function(r){return Array.isArray(r)?r:[]},Wm=Ep("OperationNotFoundError",function(r,n,a){this.originalError=a,Fr()(this,n||{})}),Hm=function(r,n){return Er()(n).call(n,function(a){return a.name===r})},zm=function(r){var n={};r.forEach(function(o){n[o.in]||(n[o.in]={}),n[o.in][o.name]=o});var a=[];return Kt()(n).forEach(function(o){Kt()(n[o]).forEach(function(f){a.push(n[o][f])})}),a},Gm={buildRequest:_p};function $m(e){var r=e.http,n=e.fetch,a=e.spec,o=e.operationId,f=e.pathName,d=e.method,m=e.parameters,g=e.securities,b=xm(e,Um),x=r||n||Co;f&&d&&!o&&(o=Wp(f,d));var I=Gm.buildRequest(lr({spec:a,operationId:o,parameters:m,securities:g,http:x},b));return I.body&&(Jp(I.body)||Array.isArray(I.body))&&(I.body=Ya()(I.body)),x(I)}function _p(e){var r,n,a=e.spec,o=e.operationId,f=e.responseContentType,d=e.scheme,m=e.requestInterceptor,g=e.responseInterceptor,b=e.contextUrl,x=e.userFetch,I=e.server,N=e.serverVariables,j=e.http,W=e.signal,ee=e.parameters,te=e.parameterBuilders,se=Up(a);te||(se?te=A:te=wm);var ie=j&&j.withCredentials?"include":"same-origin",de={url:"",credentials:ie,headers:{},cookies:{}};W&&(de.signal=W),m&&(de.requestInterceptor=m),g&&(de.responseInterceptor=g),x&&(de.userFetch=x);var we=um(a,o);if(!we)throw new Wm("Operation ".concat(o," not found"));var xe=we.operation,Ee=xe===void 0?{}:xe,ye=we.method,be=we.pathName;if(de.url+=qp({spec:a,scheme:d,contextUrl:b,server:I,serverVariables:N,pathName:be,method:ye}),!o)return delete de.cookies,de;de.url+=be,de.method="".concat(ye).toUpperCase(),ee=ee||{};var Se=a.paths[be]||{};f&&(de.headers.accept=f);var ke=zm(ut()(r=ut()(n=[]).call(n,Zp(Ee.parameters))).call(r,Zp(Se.parameters)));ke.forEach(function(We){var It=te[We.in],vt;if(We.in==="body"&&We.schema&&We.schema.properties&&(vt=ee),vt=We&&We.name&&ee[We.name],typeof vt=="undefined"){var rr;vt=We&&We.name&&ee[ut()(rr="".concat(We.in,".")).call(rr,We.name)]}else if(Hm(We.name,ke).length>1){var cr;console.warn(ut()(cr="Parameter '".concat(We.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(cr,We.name,"' and the passed-in parameter values did not define an 'in' value."))}if(vt!==null){if(typeof We.default!="undefined"&&typeof vt=="undefined"&&(vt=We.default),typeof vt=="undefined"&&We.required&&!We.allowEmptyValue)throw new Error("Required parameter ".concat(We.name," is not provided"));if(se&&We.schema&&We.schema.type==="object"&&typeof vt=="string")try{vt=JSON.parse(vt)}catch(mr){throw new Error("Could not parse object parameter value string as JSON")}It&&It({req:de,parameter:We,value:vt,operation:Ee,spec:a})}});var Me=lr(lr({},e),{},{operation:Ee});if(se?de=Dm(Me,de):de=jm(Me,de),de.cookies&&Kt()(de.cookies).length){var Re=Kt()(de.cookies).reduce(function(We,It){var vt=de.cookies[It],rr=We?"&":"",cr=Sm.serialize(It,vt);return We+rr+cr},"");de.headers.Cookie=Re}return de.cookies&&delete de.cookies,Ln(de),de}var Od=function(r){return r?r.replace(/\W/g,""):null};function qp(e){var r=Up(e.spec);return r?Km(e):Xm(e)}function Km(e){var r=e.spec,n=e.pathName,a=e.method,o=e.server,f=e.contextUrl,d=e.serverVariables,m=d===void 0?{}:d,g=Bl()(r,["paths",n,(a||"").toLowerCase(),"servers"])||Bl()(r,["paths",n,"servers"])||Bl()(r,["servers"]),b="",x=null;if(o&&g&&g.length){var I=$t()(g).call(g,function(W){return W.url});I.indexOf(o)>-1&&(b=o,x=g[I.indexOf(o)])}if(!b&&g&&g.length){b=g[0].url;var N=$n(g,1);x=N[0]}if(b.indexOf("{")>-1){var j=Jm(b);j.forEach(function(W){if(x.variables&&x.variables[W]){var ee=x.variables[W],te=m[W]||ee.default,se=new RegExp("{".concat(W,"}"),"g");b=b.replace(se,te)}})}return Ym(b,f)}function Ym(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e&&r?Gn.parse(Gn.resolve(r,e)):Gn.parse(e),a=Gn.parse(r),o=Od(n.protocol)||Od(a.protocol)||"",f=n.host||a.host,d=n.pathname||"",m;if(o&&f){var g;m=ut()(g="".concat(o,"://")).call(g,f+d)}else m=d;return m[m.length-1]==="/"?pn()(m).call(m,0,-1):m}function Jm(e){for(var r=[],n=/{([^}]+)}/g,a;a=n.exec(e);)r.push(a[1]);return r}function Xm(e){var r=e.spec,n=e.scheme,a=e.contextUrl,o=a===void 0?"":a,f=Gn.parse(o),d=Array.isArray(r.schemes)?r.schemes[0]:null,m=n||d||Od(f.protocol)||"http",g=r.host||f.host||"",b=r.basePath||"",x;if(m&&g){var I;x=ut()(I="".concat(m,"://")).call(I,g+b)}else x=b;return x[x.length-1]==="/"?pn()(x).call(x,0,-1):x}Ir.http=Co,Ir.makeHttp=ds.bind(null,Ir.http),Ir.resolve=$p,Ir.resolveSubtree=pm,Ir.execute=$m,Ir.serializeRes=Pl,Ir.serializeHeaders=Il,Ir.clearCache=cm,Ir.makeApisTagOperation=mm,Ir.buildRequest=_p,Ir.helpers={opId:Gf},Ir.getBaseUrl=qp;function Ir(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string"?n.url=e:n=e,!(this instanceof Ir))return new Ir(n);Fr()(this,n);var a=this.resolve().then(function(){return r.disableInterfaces||Fr()(r,Ir.makeApisTagOperation(r)),r});return a.client=this,a}Ir.prototype={http:Co,execute:function(r){return this.applyDefaults(),Ir.execute(lr({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 Ir.resolve(lr({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,skipNormalization:this.skipNormalization||!1},n)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Ir.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&qn()(n).call(n,"http")){var a=Gn.parse(n);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var o1=Ir.helpers;const Qm=Ir;var Bt=s(10400),Xn=s(8136),Zm=s(99561),jl=s(89519),Yf=s(91419),eh=s(56642),ja=s(67262),_m=Object.defineProperty,qm=Object.defineProperties,ey=Object.getOwnPropertyDescriptors,th=Object.getOwnPropertySymbols,ty=Object.prototype.hasOwnProperty,ry=Object.prototype.propertyIsEnumerable,rh=(e,r,n)=>r in e?_m(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Vl=(e,r)=>{for(var n in r||(r={}))ty.call(r,n)&&rh(e,n,r[n]);if(th)for(var n of th(r))ry.call(r,n)&&rh(e,n,r[n]);return e},ny=(e,r)=>qm(e,ey(r)),Jf=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});const nh="/oauth2-redirect.html";class Ai{static authorizeImplicit({authorizationUrl:r,clientId:n,scopes:a,extraParams:o={},routingBasePath:f,redirectUri:d,successCallback:m,errorCallback:g}){const b=(0,ja.p8)({date:new Date().toString()}),x=new URL(r),I=f==="/"?"":f,N=`${window.location.origin}${I}${nh}`;x.searchParams.set("client_id",n),x.searchParams.set("redirect_uri",d||N),x.searchParams.set("response_type","token"),x.searchParams.set("state",b),Array.isArray(a)&&x.searchParams.set("scope",a.join(" "));for(const j in o)x.searchParams.set(j,o[j]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:n,scopes:a},state:b,successCallback:j=>{m(j),Ai.clearRedirectData("implicit")},errorCallback:j=>{g(j),Ai.clearRedirectData("implicit")}},window.open(x.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:n,clientId:a,clientSecret:o,codeVerifier:f,codeChallenge:d,scopes:m,extraParams:g={},extraHeaders:b={},routingBasePath:x,redirectUri:I,successCallback:N,errorCallback:j}){const W=new URL(r),ee=x==="/"?"":x,te=`${window.location.origin}${ee}${nh}`,se=(0,ja.p8)({date:new Date().toString()});W.searchParams.set("client_id",a),W.searchParams.set("redirect_uri",I||te),W.searchParams.set("response_type","code"),W.searchParams.set("state",se),Array.isArray(m)&&W.searchParams.set("scope",m.join(" ")),d&&(W.searchParams.set("code_challenge",d),W.searchParams.set("code_challenge_method","S256"));for(const ie in g)W.searchParams.set(ie,g[ie]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:m},state:se,successCallback:ie=>Jf(this,[ie],function*({auth_code:de}){try{const we=yield fetch(n,{method:"POST",headers:Vl({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},b),body:eh.stringify(Vl(ny(Vl({client_id:a,client_secret:o},f&&{code_verifier:f}),{code:de,grant_type:"authorization_code",redirect_uri:I||te}),g))});yield ih(we,N,j)}catch(we){j(we)}Ai.clearRedirectData("authorizationCode")}),errorCallback:ie=>{j(ie),Ai.clearRedirectData("authorizationCode")}},window.open(W.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return Jf(this,arguments,function*({tokenUrl:n,clientId:a,clientSecret:o,scopes:f=[],extraParams:d={},extraHeaders:m={},successCallback:g,errorCallback:b}){try{const x=JSON.parse(JSON.stringify(Vl({client_id:a,client_secret:o,grant_type:"client_credentials",scope:Array.isArray(f)&&f.length?f.join(" "):void 0},d))),I=yield fetch(n,{method:"POST",headers:Vl({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},m),body:eh.stringify(x)});yield ih(I,g,b)}catch(x){b(x)}})}}const s1=new Ai;function ih(e,r,n){return Jf(this,null,function*(){if(e.ok){const a=yield e.json();r(a)}else n(new Error((e.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield e.json()):yield e.text()))})}function ah(e){return Jf(this,null,function*(){return(0,ja.rS)(yield(0,ja.JQ)(e))})}var l1=s(20340),gs=(e=>(e.STRING="string",e.ARRAY="array",e.OBJECT="object",e))(gs||{}),Td=(e=>(e.BYTE="byte",e.BASE64="base64",e.BINARY="binary",e))(Td||{}),oh=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});const sh=Object.values(Td),iy=["application/octet-stream","application/pdf","application/gzip","application/zip"],lh=["image/","audio/","video/"];function uh(e){if(lh.some(r=>e.startsWith(r)))return e}function Xf(e){return iy.includes(e)?!0:lh.some(r=>e.startsWith(r))}function ay(e){const r=e.type==="array"?e.items:e;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const n=r.contentMediaType||"",a=r.format||r.contentEncoding||(Xf(n)?"binary":"");return r.type===gs.STRING&&sh.includes(a)}function fh(e,r){if(!e||!e.type||e.type==="any")return Xf(r);const n=e.format||e.contentEncoding||"";return e.type===gs.STRING&&sh.includes(n)}function ch(e){return new Promise((r,n)=>{const a=new FileReader;a.onload=()=>{const f=a.result.replace(/data:.*\/.*;base64,/g,"");r(f)},a.onerror=()=>n(a.error),a.readAsDataURL(e)})}function dh({format:e,contentEncoding:r,contentMediaType:n}){return[e,r,n].includes(Td.BASE64)}function oy(e,r){return oh(this,null,function*(){const n=Object.values(e);let a=n.length===1?n[0]:n;return r.type===gs.STRING&&dh(r)?a=yield ch(n[0]):r.type===gs.ARRAY&&r.items&&(dh(r.items)?a=yield Promise.all(n.map(f=>oh(this,null,function*(){return yield ch(f)}))):a=n),a})}var ft=s(45091),Ut=s(41195),Qf=s(88635),ph=s(54302),sy=Object.defineProperty,ly=Object.defineProperties,uy=Object.getOwnPropertyDescriptors,Zf=Object.getOwnPropertySymbols,hh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,gh=(e,r,n)=>r in e?sy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,_f=(e,r)=>{for(var n in r||(r={}))hh.call(r,n)&&gh(e,n,r[n]);if(Zf)for(var n of Zf(r))vh.call(r,n)&&gh(e,n,r[n]);return e},fy=(e,r)=>ly(e,uy(r)),cy=(e,r)=>{var n={};for(var a in e)hh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Zf)for(var a of Zf(e))r.indexOf(a)<0&&vh.call(e,a)&&(n[a]=e[a]);return n};const mh=e=>Ut.iv`
93
+ */function ba(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jf(e){var r,n;return ba(e)===!1?!1:(r=e.constructor,r===void 0?!0:(n=r.prototype,!(ba(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const $s={body:Pd,header:Id,query:kd,path:Fd,formData:Or};function Pd(e){var r=e.req,n=e.value;r.body=n}function Or(e){var r=e.req,n=e.value,a=e.parameter;(n||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:n,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Id(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[n.name]=a)}function Fd(e){var r=e.req,n=e.value,a=e.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(n))}function kd(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},n===!1&&a.type==="boolean"&&(n="false"),n===0&&["number","integer"].indexOf(a.type)>-1&&(n="0"),n)r.query[a.name]={collectionFormat:a.collectionFormat,value:n};else if(a.allowEmptyValue&&n!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function xa(e,r){return Ge()(r).call(r,"application/json")?typeof e=="string"?e:zt()(e):e.toString()}function t(e){var r=e.req,n=e.value,a=e.parameter,s=a.name,c=a.style,p=a.explode,m=a.content;if(m){var v=Rt()(m)[0];r.url=r.url.split("{".concat(s,"}")).join(Pr(xa(n,v),{escape:!0}));return}var y=Ir({key:a.name,value:n,style:c||"simple",explode:p||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(y)}function i(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},a.content){var s=Rt()(a.content)[0];r.query[a.name]=xa(n,s);return}if(n===!1&&(n="false"),n===0&&(n="0"),n){var c=a.style,p=a.explode,m=a.allowReserved;r.query[a.name]={value:n,serializationOption:{style:c,explode:p,allowReserved:m}}}else if(a.allowEmptyValue&&n!==void 0){var v=a.name;r.query[v]=r.query[v]||{},r.query[v].allowEmptyValue=!0}}var u=["accept","authorization","content-type"];function l(e){var r=e.req,n=e.parameter,a=e.value;if(r.headers=r.headers||{},!(u.indexOf(n.name.toLowerCase())>-1)){if(n.content){var s=Rt()(n.content)[0];r.headers[n.name]=xa(a,s);return}typeof a!="undefined"&&(r.headers[n.name]=Ir({key:n.name,value:a,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function f(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{};var s=$(a);if(n.content){var c,p=Rt()(n.content)[0];r.headers.Cookie=_e()(c="".concat(n.name,"=")).call(c,xa(a,p));return}if(s!=="undefined"){var m=s==="object"&&!Array.isArray(a)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=m+Ir({key:n.name,value:a,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var g=o(1858),S=o.n(g),T=function(){return typeof S()!="undefined"?S():typeof self!="undefined"?self:window}(),M=T.btoa;const j=M;function le(e,r){var n=e.operation,a=e.requestBody,s=e.securities,c=e.spec,p=e.attachContentTypeForEmptyPayload,m=e.requestContentType;r=de({request:r,securities:s,operation:n,spec:c});var v=n.requestBody||{},y=Rt()(v.content||{}),b=m&&y.indexOf(m)>-1;if(a||p){if(m&&b)r.headers["Content-Type"]=m;else if(!m){var I=y[0];I&&(r.headers["Content-Type"]=I,m=I)}}else m&&b&&(r.headers["Content-Type"]=m);if(!e.responseContentType&&n.responses){var R,N=$e()(R=Ar()(n.responses)).call(R,function(ee){var q=at(ee,2),oe=q[0],ae=q[1],pe=parseInt(oe,10);return pe>=200&&pe<300&&Jf(ae.content)}).reduce(function(ee,q){var oe=at(q,2),ae=oe[1];return _e()(ee).call(ee,Rt()(ae.content))},[]);N.length>0&&(r.headers.accept=N.join(", "))}if(a)if(m){if(y.indexOf(m)>-1)if(m==="application/x-www-form-urlencoded"||m==="multipart/form-data")if($(a)==="object"){var G=(v.content[m]||{}).encoding||{};r.form={},Rt()(a).forEach(function(ee){r.form[ee]={value:a[ee],encoding:G[ee]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function de(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,s=e.operation,c=s===void 0?{}:s,p=e.spec,m=K({},r),v=a.authorized,y=v===void 0?{}:v,b=c.security||p.security||[],I=y&&!!Rt()(y).length,R=pn()(p,["components","securitySchemes"])||{};return m.headers=m.headers||{},m.query=m.query||{},!Rt()(a).length||!I||!b||Array.isArray(c.security)&&!c.security.length?r:(b.forEach(function(N){Rt()(N).forEach(function(G){var ee=y[G],q=R[G];if(!!ee){var oe=ee.value||ee,ae=q.type;if(ee){if(ae==="apiKey")q.in==="query"&&(m.query[q.name]=oe),q.in==="header"&&(m.headers[q.name]=oe),q.in==="cookie"&&(m.cookies[q.name]=oe);else if(ae==="http"){if(/^basic$/i.test(q.scheme)){var pe,ve=oe.username||"",me=oe.password||"",Te=j(_e()(pe="".concat(ve,":")).call(pe,me));m.headers.Authorization="Basic ".concat(Te)}/^bearer$/i.test(q.scheme)&&(m.headers.Authorization="Bearer ".concat(oe))}else if(ae==="oauth2"||ae==="openIdConnect"){var Ae,Se=ee.token||{},Ce=q["x-tokenName"]||"access_token",Fe=Se[Ce],Re=Se.token_type;(!Re||Re.toLowerCase()==="bearer")&&(Re="Bearer"),m.headers.Authorization=_e()(Ae="".concat(Re," ")).call(Ae,Fe)}}}})}),m)}function we(e,r){var n=e.spec,a=e.operation,s=e.securities,c=e.requestContentType,p=e.responseContentType,m=e.attachContentTypeForEmptyPayload;if(r=ye({request:r,securities:s,operation:a,spec:n}),r.body||r.form||m){var v,y;if(c)r.headers["Content-Type"]=c;else if(Array.isArray(a.consumes)){var b=at(a.consumes,1);r.headers["Content-Type"]=b[0]}else if(Array.isArray(n.consumes)){var I=at(n.consumes,1);r.headers["Content-Type"]=I[0]}else a.parameters&&$e()(v=a.parameters).call(v,function(q){return q.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&$e()(y=a.parameters).call(y,function(q){return q.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(c){var R,N,G=a.parameters&&$e()(R=a.parameters).call(R,function(q){return q.in==="body"}).length>0,ee=a.parameters&&$e()(N=a.parameters).call(N,function(q){return q.in==="formData"}).length>0;(G||ee)&&(r.headers["Content-Type"]=c)}return!p&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function ye(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,s=e.operation,c=s===void 0?{}:s,p=e.spec,m=K({},r),v=a.authorized,y=v===void 0?{}:v,b=a.specSecurity,I=b===void 0?[]:b,R=c.security||I,N=y&&!!Rt()(y).length,G=p.securityDefinitions;return m.headers=m.headers||{},m.query=m.query||{},!Rt()(a).length||!N||!R||Array.isArray(c.security)&&!c.security.length?r:(R.forEach(function(ee){Rt()(ee).forEach(function(q){var oe=y[q];if(!!oe){var ae=oe.token,pe=oe.value||oe,ve=G[q],me=ve.type,Te=ve["x-tokenName"]||"access_token",Ae=ae&&ae[Te],Se=ae&&ae.token_type;if(oe){if(me==="apiKey"){var Ce=ve.in==="query"?"query":"headers";m[Ce]=m[Ce]||{},m[Ce][ve.name]=pe}else if(me==="basic")if(pe.header)m.headers.authorization=pe.header;else{var Fe,Re=pe.username||"",Ue=pe.password||"";pe.base64=j(_e()(Fe="".concat(Re,":")).call(Fe,Ue)),m.headers.authorization="Basic ".concat(pe.base64)}else if(me==="oauth2"&&Ae){var ze;Se=!Se||Se.toLowerCase()==="bearer"?"Bearer":Se,m.headers.authorization=_e()(ze="".concat(Se," ")).call(ze,Ae)}}}})}),m)}var Ie=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Ne=function(r){return Array.isArray(r)?r:[]},He=kf("OperationNotFoundError",function(r,n,a){this.originalError=a,te()(this,n||{})}),Ye=function(r,n){return $e()(n).call(n,function(a){return a.name===r})},Qe=function(r){var n={};r.forEach(function(s){n[s.in]||(n[s.in]={}),n[s.in][s.name]=s});var a=[];return Rt()(n).forEach(function(s){Rt()(n[s]).forEach(function(c){a.push(n[s][c])})}),a},Je={buildRequest:gt};function rt(e){var r=e.http,n=e.fetch,a=e.spec,s=e.operationId,c=e.pathName,p=e.method,m=e.parameters,v=e.securities,y=Yf(e,Ie),b=r||n||$a;c&&p&&!s&&(s=_l(c,p));var I=Je.buildRequest(K({spec:a,operationId:s,parameters:m,securities:v,http:b},y));return I.body&&(Jf(I.body)||Array.isArray(I.body))&&(I.body=zt()(I.body)),b(I)}function gt(e){var r,n,a=e.spec,s=e.operationId,c=e.responseContentType,p=e.scheme,m=e.requestInterceptor,v=e.responseInterceptor,y=e.contextUrl,b=e.userFetch,I=e.server,R=e.serverVariables,N=e.http,G=e.signal,ee=e.parameters,q=e.parameterBuilders,oe=ql(a);q||(oe?q=w:q=$s);var ae=N&&N.withCredentials?"include":"same-origin",pe={url:"",credentials:ae,headers:{},cookies:{}};G&&(pe.signal=G),m&&(pe.requestInterceptor=m),v&&(pe.responseInterceptor=v),b&&(pe.userFetch=b);var ve=Hs(a,s);if(!ve)throw new He("Operation ".concat(s," not found"));var me=ve.operation,Te=me===void 0?{}:me,Ae=ve.method,Se=ve.pathName;if(pe.url+=Dt({spec:a,scheme:p,contextUrl:y,server:I,serverVariables:R,pathName:Se,method:Ae}),!s)return delete pe.cookies,pe;pe.url+=Se,pe.method="".concat(Ae).toUpperCase(),ee=ee||{};var Ce=a.paths[Se]||{};c&&(pe.headers.accept=c);var Fe=Qe(_e()(r=_e()(n=[]).call(n,Ne(Te.parameters))).call(r,Ne(Ce.parameters)));Fe.forEach(function(ze){var Ct=q[ze.in],qe;if(ze.in==="body"&&ze.schema&&ze.schema.properties&&(qe=ee),qe=ze&&ze.name&&ee[ze.name],typeof qe=="undefined"){var nr;qe=ze&&ze.name&&ee[_e()(nr="".concat(ze.in,".")).call(nr,ze.name)]}else if(Ye(ze.name,Fe).length>1){var ur;console.warn(_e()(ur="Parameter '".concat(ze.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(ur,ze.name,"' and the passed-in parameter values did not define an 'in' value."))}if(qe!==null){if(typeof ze.default!="undefined"&&typeof qe=="undefined"&&(qe=ze.default),typeof qe=="undefined"&&ze.required&&!ze.allowEmptyValue)throw new Error("Required parameter ".concat(ze.name," is not provided"));if(oe&&ze.schema&&ze.schema.type==="object"&&typeof qe=="string")try{qe=JSON.parse(qe)}catch(jt){throw new Error("Could not parse object parameter value string as JSON")}Ct&&Ct({req:pe,parameter:ze,value:qe,operation:Te,spec:a})}});var Re=K(K({},e),{},{operation:Te});if(oe?pe=le(Re,pe):pe=we(Re,pe),pe.cookies&&Rt()(pe.cookies).length){var Ue=Rt()(pe.cookies).reduce(function(ze,Ct){var qe=pe.cookies[Ct],nr=ze?"&":"",ur=Td.serialize(Ct,qe);return ze+nr+ur},"");pe.headers.Cookie=Ue}return pe.cookies&&delete pe.cookies,af(pe),pe}var ct=function(r){return r?r.replace(/\W/g,""):null};function Dt(e){var r=ql(e.spec);return r?dr(e):An(e)}function dr(e){var r=e.spec,n=e.pathName,a=e.method,s=e.server,c=e.contextUrl,p=e.serverVariables,m=p===void 0?{}:p,v=pn()(r,["paths",n,(a||"").toLowerCase(),"servers"])||pn()(r,["paths",n,"servers"])||pn()(r,["servers"]),y="",b=null;if(s&&v&&v.length){var I=Xe()(v).call(v,function(G){return G.url});I.indexOf(s)>-1&&(y=s,b=v[I.indexOf(s)])}if(!y&&v&&v.length){y=v[0].url;var R=at(v,1);b=R[0]}if(y.indexOf("{")>-1){var N=Sr(y);N.forEach(function(G){if(b.variables&&b.variables[G]){var ee=b.variables[G],q=m[G]||ee.default,oe=new RegExp("{".concat(G,"}"),"g");y=y.replace(oe,q)}})}return zr(y,c)}function zr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e&&r?fe.parse(fe.resolve(r,e)):fe.parse(e),a=fe.parse(r),s=ct(n.protocol)||ct(a.protocol)||"",c=n.host||a.host,p=n.pathname||"",m;if(s&&c){var v;m=_e()(v="".concat(s,"://")).call(v,c+p)}else m=p;return m[m.length-1]==="/"?Xn()(m).call(m,0,-1):m}function Sr(e){for(var r=[],n=/{([^}]+)}/g,a;a=n.exec(e);)r.push(a[1]);return r}function An(e){var r=e.spec,n=e.scheme,a=e.contextUrl,s=a===void 0?"":a,c=fe.parse(s),p=Array.isArray(r.schemes)?r.schemes[0]:null,m=n||p||ct(c.protocol)||"http",v=r.host||c.host||"",y=r.basePath||"",b;if(m&&v){var I;b=_e()(I="".concat(m,"://")).call(I,v+y)}else b=y;return b[b.length-1]==="/"?Xn()(b).call(b,0,-1):b}Gt.http=$a,Gt.makeHttp=of.bind(null,Gt.http),Gt.resolve=zs,Gt.resolveSubtree=Gs,Gt.execute=rt,Gt.serializeRes=ws,Gt.serializeHeaders=jl,Gt.clearCache=Cd,Gt.makeApisTagOperation=Od,Gt.buildRequest=gt,Gt.helpers={opId:jo},Gt.getBaseUrl=Dt;function Gt(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string"?n.url=e:n=e,!(this instanceof Gt))return new Gt(n);te()(this,n);var a=this.resolve().then(function(){return r.disableInterfaces||te()(r,Gt.makeApisTagOperation(r)),r});return a.client=this,a}Gt.prototype={http:$a,execute:function(r){return this.applyDefaults(),Gt.execute(K({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 Gt.resolve(K({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,skipNormalization:this.skipNormalization||!1},n)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Gt.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&H()(n).call(n,"http")){var a=fe.parse(n);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Nr=Gt.helpers;const hn=Gt;var L=o(2784),Bt=o(3853),pt=o(27020),mr=o(77532),Fr=o(96087),Sa=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const Ri=Object.values(Fr.FileUploadFormats),Xr=["application/octet-stream","application/pdf","application/gzip","application/zip"],Qn=["image/","audio/","video/"];function Dr(e){if(Qn.some(r=>e.startsWith(r)))return e}function ro(e){return Xr.includes(e)?!0:Qn.some(r=>e.startsWith(r))}function Mi(e){const r=e.type==="array"?e.items:e;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const n=r.contentMediaType||"",a=r.format||r.contentEncoding||(ro(n)?"binary":"");return r.type===Fr.DefinitionTypes.STRING&&Ri.includes(a)}function Zi(e,r){if(!e||!e.type||e.type==="any")return ro(r);const n=e.format||e.contentEncoding||"";return e.type===Fr.DefinitionTypes.STRING&&Ri.includes(n)}function qi(e){return new Promise((r,n)=>{const a=new FileReader;a.onload=()=>{const c=a.result.replace(/data:.*\/.*;base64,/g,"");r(c)},a.onerror=()=>n(a.error),a.readAsDataURL(e)})}function Qr({format:e,contentEncoding:r,contentMediaType:n}){return[e,r,n].includes(Fr.FileUploadFormats.BASE64)}function no(e,r){return Sa(this,null,function*(){const n=Object.values(e);let a=n.length===1?n[0]:n;return r.type===Fr.DefinitionTypes.STRING&&Qr(r)?a=yield qi(n[0]):r.type===Fr.DefinitionTypes.ARRAY&&r.items&&(Qr(r.items)?a=yield Promise.all(n.map(c=>Sa(this,null,function*(){return yield qi(c)}))):a=n),a})}var Ks=o(93892),ar=o(80127),Qt=o(41195),Nn=o(43284),Fg=o(16610);function kg({response:e}){return L.createElement(L.Fragment,null,L.createElement(Nn.EE,null," Body: "),Rg(e))}function Rg(e){return e.body?L.createElement(Bt.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?L.createElement(Fg.s,{fileInfo:e.fileInfo}):e.data!==null?e.data?L.createElement(Bt.SourceCode,{lang:(0,pt.M)(e.headers["Content-Type"]||"text/plain"),source:e.data,withCopyButton:!0}):L.createElement(Nn.w3,null,L.createElement("i",null,"(no content)")):null}var Xf=o(79978);function Mg({headers:e}){const r=(0,L.useContext)(Xf.jI),[n,a]=(0,L.useState)(!0),{maxResponseHeadersToShowInTryIt:s}=r,c=Object.keys(e),p=!!s&&c.length>s,m=p&&n?[...c].splice(0,s):[...c],v=()=>{a(!n)};return L.createElement(L.Fragment,null,L.createElement(Nn.EE,null," Headers: "),L.createElement(Nn.w3,null,m.map(y=>L.createElement("div",{key:y},L.createElement(Tp,null,y,":"),L.createElement("code",null,e[y]))),p&&L.createElement(Pp,{onClick:v},n?"Show more...":"Hide headers")))}const Tp=Qt.ZP.strong`
94
+ text-transform: capitalize;
95
+ display: inline-block;
96
+ padding-right: 5px;
97
+ `,Pp=Qt.ZP.div`
98
+ cursor: pointer;
99
+ margin-top: 5px;
100
+ font-size: 14px;
101
+ `;Tp.displayName="HeaderName",Pp.displayName="StyledShowMoreLabel";const Lg=Qt.ZP.div`
102
+ margin-bottom: 10px;
103
+ `,Rd=Qt.ZP.div`
104
+ display: inline-block;
105
+ margin-right: 20px;
106
+ padding: 2px 0;
107
+ text-align: center;
108
+ color: var(--text-color-inverse);
109
+ `,Ng=(0,Qt.ZP)(Rd)`
110
+ color: ${({code:e})=>e>=200&&e<300?"var(--response-success-text-color)":e>=300&&e<400?"var(--response-redirect-text-color)":e>400?"var(--response-error-text-color)":"var(--response-info-text-color)"};
111
+ `,Ip=Qt.ZP.header`
112
+ font-weight: bold;
113
+ margin-bottom: 10px;
114
+ `,Dg=Qt.ZP.code`
115
+ border-left: 3px solid #ff4040;
116
+ padding-left: 5px;
117
+ `,Bg=({error:e,response:r,time:n})=>{const a=r||e&&e.response,s=a&&a.data&&a.data.length||0;let c;return s>1e6?c=(s/1e6).toFixed(2)+" MB":s>1e3?c=(s/1e3).toFixed(2)+" KB":c=s+" B",e&&!e.response||!a?L.createElement(L.Fragment,null,L.createElement(Ip,null," Could not get any response "),L.createElement(Dg,null,e&&e.message||"Unknown error"),L.createElement("br",null),L.createElement(Ip,null," Why this might have happened:"),L.createElement("div",null," - CORS is misconfigured on the server"),L.createElement("div",null," - The server couldn't send a response"),L.createElement("div",null," - No internet access"),L.createElement("div",null," - Documentation issue - contact API owner"),L.createElement("div",null," - Misconfigured security definition")):a?L.createElement(L.Fragment,null,L.createElement(Lg,null,L.createElement(Ng,{code:a.status},L.createElement("span",null," Status: "),a.status," ",a.statusText),L.createElement(Rd,null,L.createElement("span",null," Time: "),n,"ms"),L.createElement(Rd,null,L.createElement("span",null," Size: "),c)),L.createElement("div",null,L.createElement(Mg,{headers:a.headers}),L.createElement(kg,{response:a}))):L.createElement(L.Fragment,null,"Something went wrong")},jg=Qt.ZP.div`
118
+ display: flex;
119
+ font-size: 12px;
120
+ button {
121
+ margin: 0;
122
+ }
123
+ `,Fp=Qt.ZP.button`
124
+ outline: none;
125
+ border: none;
126
+ background-color: var(--panel-try-it-tabs-background-color);
127
+ text-align: center;
128
+ cursor: pointer;
129
+ color: var(--panel-try-it-tabs-text-color);
130
+ min-width: 80px;
131
+ min-height: 30px;
132
+ border-radius: var(--border-radius);
133
+ font-size: var(--panel-try-it-tabs-font-size);
134
+ font-family: var(--panel-try-it-tabs-font-family);
135
+ font-weight: var(--panel-try-it-tabs-font-weight);
136
+ padding: 0 10px;
137
+ border-bottom: 4px solid var(--panel-try-it-tabs-border-color);
138
+
139
+ &:first-child {
140
+ border-radius: var(--border-radius) 0 0 var(--border-radius);
141
+ }
142
+
143
+ &:last-child {
144
+ border-radius: 0 var(--border-radius) var(--border-radius) 0;
145
+ }
146
+
147
+ &:hover:not(:disabled) {
148
+ border-color: var(--panel-try-it-tabs-hover-border-color);
149
+ background-color: var(--panel-try-it-tabs-hover-background-color);
150
+ }
151
+
152
+ ${({active:e})=>e&&Qt.iv`
153
+ border-color: var(--panel-try-it-tabs-active-border-color);
154
+ background-color: var(--panel-try-it-tabs-active-background-color);
155
+ `||""}
156
+
157
+ ${({disabled:e})=>e&&Qt.iv`
158
+ cursor: default;
159
+ border-color: var(--panel-try-it-tabs-disables-border-color)
160
+ background-color: var(--panel-try-it-tabs-disabled-background-color);
161
+ color: var(--panel-try-it-tabs-disabled-text-color);
162
+ `||""}
163
+ `;function Vg({onChange:e,active:r,hasResponse:n}){return L.createElement(jg,null,L.createElement(Fp,{onClick:()=>e(0),active:r===0},n?"Edit Request":"Request"),L.createElement(Fp,{onClick:()=>n&&e(1),active:r===1,disabled:!n}," ","Response"," "))}var kp=o(46521),Rp=o(50397);function Ug(e,r,n){const a=r.path||{},s=r.query||{},c=Object.keys(s);let p=(0,ar.v5)(e,a);const m=v=>n.find(y=>y.name===v&&y.in==="query");return c.length&&(p+="?"+c.map(v=>{if(!s[v])return"";const y=m(v);return y?(0,pt.d$)(y,s[v]):`${v}=${encodeURIComponent(s[v])}`}).filter(Boolean).join("&")),p}const Wg=({loading:e,operation:r,hasResponse:n,execute:a,params:s={}})=>L.createElement(mr.k1,null,L.createElement(kp.__,null,L.createElement(Rp.FH,{type:r.httpVerb},r.httpVerb),L.createElement(kp.y$,{wrap:"true"},Ug(r.path,s,r.parameters))),L.createElement(Hg,{"data-cy":"send-button",color:"primary",blinking:e,onClick:()=>!e&&a()},e?"Sending...":n?"Resend":"Send")),Hg=(0,Qt.ZP)(Bt.Button)`
164
+ width: var(--panel-try-it-action-button-width);
165
+ `,zg=(0,L.memo)(Wg);function Md(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Mp(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ld(e,r,n){return r&&Mp(e.prototype,r),n&&Mp(e,n),e}function Gg(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Br(){return Br=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Br.apply(this,arguments)}function Lp(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,a)}return n}function Mt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Lp(Object(n),!0).forEach(function(a){Gg(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function $g(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Nd(e,r)}function Qf(e){return Qf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qf(e)}function Nd(e,r){return Nd=Object.setPrototypeOf||function(a,s){return a.__proto__=s,a},Nd(e,r)}function Kg(){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(e){return!1}}function Yg(e,r){if(e==null)return{};var n={},a=Object.keys(e),s,c;for(c=0;c<a.length;c++)s=a[c],!(r.indexOf(s)>=0)&&(n[s]=e[s]);return n}function jr(e,r){if(e==null)return{};var n=Yg(e,r),a,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)a=c[s],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}function Jg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xg(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:Jg(e)}function Qg(e){var r=Kg();return function(){var a=Qf(e),s;if(r){var c=Qf(this).constructor;s=Reflect.construct(a,arguments,c)}else s=a.apply(this,arguments);return Xg(this,s)}}function kr(e,r){return qg(e)||em(e,r)||Dd(e,r)||rm()}function an(e){return Zg(e)||_g(e)||Dd(e)||tm()}function Zg(e){if(Array.isArray(e))return Bd(e)}function qg(e){if(Array.isArray(e))return e}function _g(e){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function em(e,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],a=!0,s=!1,c=void 0;try{for(var p=e[Symbol.iterator](),m;!(a=(m=p.next()).done)&&(n.push(m.value),!(r&&n.length===r));a=!0);}catch(v){s=!0,c=v}finally{try{!a&&p.return!=null&&p.return()}finally{if(s)throw c}}return n}}function Dd(e,r){if(!!e){if(typeof e=="string")return Bd(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bd(e,r)}}function Bd(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function tm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
166
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
167
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nm(e,r){var n;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Dd(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,s=function(){};return{s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(v){throw v},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
168
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,p=!1,m;return{s:function(){n=e[Symbol.iterator]()},n:function(){var v=n.next();return c=v.done,v},e:function(v){p=!0,m=v},f:function(){try{!c&&n.return!=null&&n.return()}finally{if(p)throw m}}}}function im(e,r){return r={exports:{}},e(r,r.exports),r.exports}var _i=im(function(e){function r(b,I){for(var R=0,N=0;N<b.length;N++)R=(R<<5)-R+b.charCodeAt(N),R|=0;return I[Math.abs(R)%I.length]}function n(b,I){var R=I.namespace;if(I.useColors){var N=I.color,G="\x1B[3"+(N<8?N:"8;5;"+N),ee=" ".concat(G,";1m").concat(R," \x1B[0m");b[0]=ee+b[0].split(`
169
+ `).join(`
170
+ `+ee)}else b[0]=R+" "+b[0]}function a(b,I){if(b[0]=(I.useColors?"%c":"")+I.namespace,!!I.useColors){var R="color: "+I.color,N=0,G=0;b[0].replace(/%[a-zA-Z%]/g,function(ee){ee!=="%%"&&(N++,ee==="%c"&&(G=N))}),b.splice(G,0,R)}}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 c(){var b;try{b=localStorage.getItem("debug")}catch(I){}return!b&&typeof process!="undefined"&&"env"in process&&(b={}.DEBUG),{namespaces:b||"",colors:s,useColors:!0,formatArgs:a}}function p(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:n}}function m(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,I=arguments.length>1?arguments[1]:void 0;return function(){for(var R=arguments.length,N=new Array(R),G=0;G<R;G++)N[G]=arguments[G];b&&N.unshift(b);var ee=I.namespaces.split(",").map(function(pe){return pe[pe.length-1]==="*"?new RegExp("^"+pe.slice(0,pe.length-1)+".*$"):new RegExp("^"+pe+"$")}),q=ee.some(function(pe){return pe.test(b)}),oe={color:r(b,I.colors),namespace:b,useColors:I.useColors};if(!1)var ae}}function v(b){return m(b,p())}function y(b){return m(b,c())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?e.exports=y:e.exports=v}),Ho=_i("informed:ObjMap "),Zf=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},qf=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(c,p){return c!=null?c[p]:c},r);return s===void 0||s===r?a:s},Np=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},am=function(r){return r.replace(Np(r),"").replace(/\./,"")},om=function(r,n){var a=Np(n),s=am(n),c=a?qf(r,a):r;return!!(c&&Object.hasOwnProperty.call(c,s.replace(/\[(.*)\]/,"$1")))},Dp=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,c,p,m){return p===m.length-1?(s[c]=a,s[c]):s[c]===void 0?(Number.isInteger(+m[p+1])?s[c]=[]:s[c]={},s[c]):(Number.isInteger(+m[p+1])&&!Array.isArray(s[c])&&(s[c]=[]),s[c])},r)},Bp=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,c,p,m){return s===void 0?s:(p===m.length-1&&(delete s[c],a=!0),s[c])},r),a},sm=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,c,p,m){return s===void 0?s:(p===m.length-1&&Array.isArray(s)&&(a=s.splice(c,1)),s[c])},r),a},lm=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(r);return n.map(function(a){return r[a]})},jd=function(r){var n=Zf(r);return Number.isInteger(+n[n.length-1])},At=function(){function e(){Md(this,e)}return Ld(e,null,[{key:"empty",value:function(n){return lm(n).length===0}},{key:"get",value:function(n,a){var s=qf(n,a);return s}},{key:"has",value:function(n,a){return om(n,a)}},{key:"set",value:function(n,a,s){if(s!==void 0)Ho("SETTING",a,s),Dp(n,a,s);else if(jd(a)&&e.get(n,a)!==void 0){Ho("Special case SETTING",a,"to undefined"),Dp(n,a,void 0);var c=Zf(a);c=c.slice(0,c.length-1),_f(n,c)}else!jd(a)&&e.get(n,a)!==void 0&&(Ho("Special case REMOVING",a,"from object completley"),e.delete(n,a))}},{key:"delete",value:function(n,a){Ho("DELETE",a),jd(a)?(Ho("ARRAY",a),this.pullOut(n,a)):Bp(n,a);var s=Zf(a);s=s.slice(0,s.length-1),_f(n,s)}},{key:"pullOut",value:function(n,a){var s=Zf(a),c=s[s.length-1];s=s.slice(0,s.length-1),Ho("Pulling out:",s,"index",c);var p=qf(n,s);Ho("Array",p),Array.isArray(p)&&sm(p,c),_f(n,s)}}]),e}();function _f(e,r){if(r.length!==0){var n=qf(e,r);(Array.isArray(n)?n.every(function(a){return a==null}):JSON.stringify(n)==="{}")&&Bp(e,r),_f(e,r.slice(0,r.length-1))}}var Zn=L.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),nu=L.createContext({}),iu=L.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),jp=L.createContext(),Vp=L.createContext(),Up=L.createContext(),Vd=L.createContext(),Wp=L.createContext(),Hp=L.createContext(),zp=L.createContext(),Gp=L.createContext();function Li(){var e=(0,L.useContext)(iu);return e}function wa(e){var r=(0,L.useRef)(),n=(0,L.useRef)(!0),a=(0,L.useState)(e),s=kr(a,2),c=s[0],p=s[1];r.current=c;var m=function(b){r.current=b,n.current&&p(b)},v=function(){return r.current};return(0,L.useEffect)(function(){return function(){n.current=!1}},[]),[c,m,v]}var $p=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},Kp=function(r){var n={};if(r.inner){if(r.inner.length===0){At.set(n,r.path,r.message);return}var a=nm(r.inner),s;try{for(a.s();!(s=a.n()).done;){var c=s.value;At.get(n,c.path)||At.set(n,c.path,c.message)}}catch(p){a.e(p)}finally{a.f()}}return n},Yp=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(s){var a=Kp(s);return a}},Jp=function(r){if(r.inner){if(r.inner.length===0)return;var n=r.inner[0];return n.message}},Xp=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(a){return Jp(a)}},Qp=function(r,n){r(n);var a={};return r.errors&&r.errors.forEach(function(s){var c=s.message,p=s.dataPath,m=s.keyword,v=s.params,y=p;m==="required"&&(y="".concat(y,".").concat(v.missingProperty)),y=y.replace(".",""),At.set(a,y,c)}),a},zo=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=Math.random()*16|0,a=r=="x"?n:n&3|8;return a.toString(16)})},um=function(r,n){var a;return function(){for(var c=arguments.length,p=new Array(c),m=0;m<c;m++)p[m]=arguments[m];var v=function(){clearTimeout(a),r.apply(void 0,p)};clearTimeout(a),a=setTimeout(v,n)}},Ud=function(r,n,a){var s=n["ui:control"],c=n["informed:props"],p=n["input:props"],m=n["ui:before"],v=n["ui:after"],y=n.oneOf,b=n.items,I=n.enum,R=n.title,N=n.minimum,G=n.maximum,ee=n.minLength,q=n.maxLength,oe=n.pattern,ae=n.type,pe=n.properties,ve=zo();p&&p.id&&(ve=p.id);var me={componentType:s,field:a?"".concat(a,".").concat(r):r,type:ae,uiBefore:m,uiAfter:v,properties:ae==="object"?pe:void 0,items:ae==="array"?b:void 0,props:Mt(Mt({label:R,id:ve,min:N,max:G,minLength:ee,maxLength:q,pattern:oe},c),p)};if(y){var Te=n.oneOf.map(function(Ce){var Fe=Ce["input:props"],Re=Fe===void 0?{}:Fe;return Mt({value:Ce.const,label:Ce.title},Re)});me.props.options=Te}if(I){var Ae=n.enum.map(function(Ce){return{value:Ce,label:Ce}});me.props.options=Ae}if(b&&b.oneOf){var Se=b.oneOf.map(function(Ce){var Fe=Ce["input:props"],Re=Fe===void 0?{}:Fe;return Mt({value:Ce.const,label:Ce.title},Re)});me.props.options=Se}return me},Zp=function(r,n,a){if(!r||n)return[];var s=r.properties,c=s===void 0?{}:s,p=r.allOf,m=r.propertyOrder,v=m===void 0?[]:m;if(Object.keys(c).length>0){var y=Object.keys(c).sort(function(b,I){var R=v.indexOf(b),N=v.indexOf(I);return(R>-1?R:v.length+1)-(N>-1?N:v.length+1)}).map(function(b){var I=c[b],R=Ud(b,I,a);return R});return p&&y.push({componentType:"conditionals",allOf:p}),y}return[]},qp=function(r){var n=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return n="properties.".concat(n),n},fm=function(r,n){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(n);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},cm=function(r,n){for(var a=0,s=-1,c=!0;c&&a<r.length;)r[a]==n[a]?s=a:c=!1,a=a+1;return s},ec=function(r,n){if(!r)return{val:r,offset:0};var a="".concat(r),s=fm(n,a),c=s.findIndex(function(q){return typeof q!="string"}),p=s.length-an(s).reverse().findIndex(function(q){return typeof q!="string"}),m=[],v=a.split(""),y=0,b=0,I=cm(s.slice(0,c),v.slice(0,c));I>-1&&(y=I+1,m=m.concat(s.slice(0,I+1)),b=I+1),I<0&&(m=m.concat(s.slice(0,c)),b=c);for(var R=b;R<s.length;R++){var N=s[R];if(y!=v.length){var G=v[y];if(typeof N=="function")m.push(N(G)),y=y+1;else{var ee=typeof N=="string"?N===G:N.test(G);ee&&typeof N=="string"?(m.push(N),y=y+1):!ee&&typeof N=="string"?y!=v.length&&m.push(N):ee&&typeof N!="string"?(m.push(G),y=y+1):!ee&&typeof N!="string"&&(y=y+1,R=R-1)}}else if(typeof N=="string"&&R>=p)m.push(N);else break}return{value:m.join(""),offset:a?m.length-a.length:0}},dm=function(r,n){var a,s,c=new Intl.NumberFormat(r,n),p=new Intl.NumberFormat(r),m=(a=(s=p.formatToParts(.1).find(function(q){var oe=q.type;return oe==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:".";function v(q,oe){return q instanceof RegExp&&oe instanceof RegExp&&q.source===oe.source&&q.global===oe.global&&q.ignoreCase===oe.ignoreCase&&q.multiline===oe.multiline}function y(q,oe){for(var ae=q.length;ae--;)if(oe(q[ae]))return ae;return-1}function b(q,oe,ae){var pe=an(q);return Array.isArray(ae)?pe.splice.apply(pe,[oe,0].concat(an(ae))):pe.splice(oe,0,ae),pe}function I(q){return"".concat(q).replace(/\D/g,"")}function R(q){return"".concat(q).split(m).map(function(oe){return I(oe)}).join(".")}function N(q){if(typeof q=="number")return q;var oe=parseFloat(R(q));return Number.isNaN(oe)?void 0:oe}function G(q){var oe=R(q),ae="".concat(oe).split(".")[1],pe=c.formatToParts(Number(oe));ae==="0"&&pe.push({type:"decimal",value:m},{type:"fraction",value:ae});var ve=pe.reduce(function(Ae,Se){var Ce=Se.type,Fe=Se.value;return["decimal","fraction"].includes(Ce)&&ae==null?Ae:["integer","fraction"].includes(Ce)?[].concat(an(Ae),an(Fe.split("").filter(function(Re,Ue){return Ce==="fraction"?Ue<ae.length:!0}).map(function(){return/\d/}))):Ce==="currency"?[].concat(an(Ae),an(Fe.split(""))):[].concat(an(Ae),[Fe])},[]),me=y(ve,function(Ae){return v(Ae,/\d/)});ve.indexOf(m)===-1&&"".concat(q).indexOf(m)!==-1&&(ve=b(ve,me+1,[m,"[]"]),me+=2);var Te=ve.slice(me+1).join("");return ve=[].concat(an(ve.slice(0,me+1)),[Te]),ve}var ee=function(oe){if(oe!=null)return N(oe)};return{formatter:G,parser:ee}},r1=Object.freeze({__proto__:null,getChildDisplayName:$p,yupToFormErrors:Kp,validateYupSchema:Yp,yupToFormError:Jp,validateYupField:Xp,validateAjvSchema:Qp,uuidv4:zo,debounce:um,computeFieldFromProperty:Ud,computeFieldsFromSchema:Zp,getSchemaPathFromJsonPath:qp,informedFormat:ec,createIntlNumberFormatter:dm}),Ni=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?L.useLayoutEffect:L.useEffect,pm=function(r){var n=r.value,a=r.inputRef,s=r.maintainCursor,c=s===void 0?!0:s,p=wa(0),m=kr(p,3),v=m[0],y=m[1],b=m[2],I=wa(0),R=kr(I,3),N=R[0],G=R[1],ee=R[2];return Ni(function(){if(a.current!=null&&b()){var q=b()+ee();ee()!=0&&c?a.current.setSelectionRange(q+1,q+1):c&&a.current.setSelectionRange(q,q)}},[n]),{setCursorOffset:G,setCursor:y,cursor:v,getCursor:b,cursorOffset:N}},hm=function(r,n){var a=(0,L.useRef)(!0),s=a.current;(0,L.useEffect)(function(){if(s)a.current=!1;else return r()},n)},Dn=_i("informed:useField "),_p=function(r,n,a,s,c){if(r!=null){if(c)return c(r);if(n)return n(r);if(a&&!s){var p=ec(r,a);return p.value}return r}},vm=function(r,n,a,s){if(n&&a)return n(r);if(s){var c=ec(r,s);return c.value}return r},gm=function(r,n,a){var s=a.required;if(r||n)return function(c,p){if(n)return Xp(n,c);if(r)return r(c,p)};if(s)return function(c){return Sm(c,s)}},mm=function(r){var n=r.fieldType,a=r.setValue,s=r.onChange,c=r.multiple,p=r.ref,m=function(y){return a(y)};return(n==="text"||n==="textArea"||n==="number")&&(m=function(y){return a(y.target.value,y)}),n==="select"&&(m=function(){var y=Array.from(p.current).filter(function(b){return b.selected}).map(function(b){return b.value});a(c?y:y[0]||"")}),n==="checkbox"&&(m=function(y){a(y.target.checked),s&&s(y)}),function(v){m(v)}},ym=function(r){var n=r.setTouched,a=r.onBlur;return function(s){n(!0),a&&a(s)}},bm=function(r){var n=r.fieldType,a=r.maskedValue,s=r.multiple,c=r.value;switch(n){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return c||(s?[]:"");case"checkbox":return!!c;default:return c}},xm=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},Sm=function(r,n){if(n&&(r==null||r===""))return typeof n=="string"?n:"This field is required"};function au(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=e.field,a=e.validate,s=e.asyncValidate,c=e.validationSchema,p=e.mask,m=e.maskWithCursorOffset,v=e.format,y=e.parse,b=e.formatter,I=e.parser,R=e.initialValue,N=e.validateOnChange,G=e.validateOnBlur,ee=e.validateOnMount,q=e.asyncValidateOnBlur,oe=e.maskOnBlur,ae=e.allowEmptyString,pe=e.onValueChange,ve=e.notify,me=e.keepState,Te=e.maintainCursor,Ae=e.debug,Se=e.shadow,Ce=e.step,Fe=e.fieldType,Re=e.multiple,Ue=e.onChange,ze=e.onBlur,Ct=e.formController,qe=e.relevant,nr=e.required,ur=e.keepStateIfRelevant,jt=e.initialize,fr=e.formatterDependencies,$t=fr===void 0?[]:fr,cr=jr(e,["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"]),wr=(0,L.useState)(zo()),Ut=kr(wr,1),ft=Ut[0],Ot=(0,L.useContext)(Zn),Zt=(0,L.useContext)(Gp),Wt=Zt||ur,Kt=Li(),qr=(0,L.useRef)(),Un=(0,L.useRef)(!0),pi=(0,L.useRef)(),Vr=(0,L.useRef)(!1),sn=function(){return!Vr.current},Jo=function(){return Vr.current};Ct&&(Ot=Ct.updater,Kt=Ct.getFormApi());var Fn=gm(a,c,{required:nr}),Xo=(0,L.useState)(function(){return Ot.getInitialValue(n)}),cp=kr(Xo,1),ji=cp[0],Vi=Ot.getSavedValue(n),Oa,il;(me||Wt)&&Vi?(Dn("Setting field ".concat(Ep,"'s kept state"),Vi),Oa=Vi.value,il=Vi.touched,Kt.removeSavedState(Ep)):R!=null?Oa=R:Oa=ji;var xu=wa(_p(Oa,p,b,I,jt)),qt=kr(xu,3),En=qt[0],dp=qt[1],Lx=qt[2],Nx=wa(ee?Fn(En):void 0),pp=kr(Nx,3),xg=pp[0],Sg=pp[1],Dx=pp[2],Bx=wa(il),hp=kr(Bx,3),wg=hp[0],jx=hp[1],Ag=hp[2],Vx=(0,L.useState)(function(){return vm(En,v,y,b)}),Cg=kr(Vx,2),vp=Cg[0],gp=Cg[1],Eg=(0,L.useRef)();Eg.current=vp;var Og=(0,L.useRef)(R),Qo=(0,L.useRef)(n),Tg=(0,L.useRef)();Og.current=R,Qo.current=n;var Ux=(0,L.useRef)(null),ra=L.useMemo(function(){return r||Ux},[]),mp=pm({value:En,inputRef:ra,maintainCursor:!!Te}),yp=mp.getCursor,Wx=mp.setCursor,bp=mp.setCursorOffset,Hx=function(){return!0},xp=function(pr){var ln=qe||Hx,Wn=Kt.getFullField(Qo.current)||Qo.current,_t={path:Wn,parentPath:Wn.replace(/(.*)[.[].*/,"$1"),get:function(Hn,Au){return At.get(Hn,Au)}};return Zt&&Zt.relevant?ln(pr,_t)&&Zt.relevant(pr,_t):ln(pr,_t)},zx=wa(xp(Kt.getValues())),Sp=kr(zx,3),Oc=Sp[0],Gx=Sp[1],Pg=Sp[2],$x=function(pr){return Zt&&Zt.relevant?Zt.relevant(pr):!0},Kx=function(){var pr=xp(Kt.getValues()),ln=Pg();return pr!=ln&&Gx(pr),pr};(0,L.useEffect)(function(){!Oc&&!me&&qr.current.reset()},[Oc]);var hi=function(){return Se?Kt.getDerrivedValue(n):Lx()},Su=function(pr){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wn=ln.preventUpdate;Ce&&Kt.getStep()<Ce?(Dn("Setting ".concat(n,"'s error to undefined as we are not at that step")),Sg(void 0),Ot.setError(ft,void 0,!Wn)):(Dn("Setting ".concat(n,"'s error to ").concat(pr)),Sg(pr),Ot.setError(ft,pr,!Wn))},wp=function(pr,ln){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_t=pr;Vr.current=!0,Dn("Setting ".concat(n," to ").concat(_t)),jt&&(_t=jt(_t));var Zo=Kt.getOptions(),Hn=_t;if(_t===""&&!ae&&!Wn.allowEmptyString&&!Zo.allowEmptyStrings&&(_t=void 0),(e.type==="number"||Fe==="number")&&_t!==void 0&&(_t=+_t),ln&&ln.target&&ln.target.selectionStart&&Wx(ln.target.selectionStart),p&&!oe&&(Hn=p(_t,yp()),_t=p(_t,yp())),m&&!oe){var Au=m(_t,yp());Hn=Au.value,_t=Au.value,bp(Au.offset)}if(v&&y&&(_t=y(_t),Hn=v(_t)),b){var Ig=ec(_t,b);bp(Ig.offset),Hn=Ig.value,_t=Hn}I&&(_t=_t!=null?I(_t):_t),Fn&&N&&!Wn.initial&&(Dn("Validating after change ".concat(n," ").concat(_t)),Su(Fn(_t,Kt.getValues()))),dp(_t),gp(Hn),pe&&pe(_t),Ot.setValue(ft,_t,!Wn.preventUpdate)};hm(function(){qr.current.setValue(Eg.current)},an($t));var Ap=function(pr,ln){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_t=Wn.preventUpdate;if(Dn("Field ".concat(n," has been touched")),Fn&&G&&!ln&&pr&&(Dn("Validating after blur ".concat(n," ").concat(hi())),Su(Fn(hi(),Kt.getValues()))),s&&q&&!ln&&pr&&(Dn("Validating async after blur ".concat(n," ").concat(hi())),s(hi(),Kt.getValues())),p&&oe){var Zo=p(hi());dp(Zo),gp(Zo),pe&&pe(Zo),Ot.setValue(ft,Zo,!_t)}if(m&&oe){var Hn=m(hi());bp(Hn.offset),dp(Hn.value),gp(Hn.value),pe&&pe(Hn.value),Ot.setValue(ft,Hn.value,!_t)}jx(pr),Ot.setTouched(ft,pr,!_t)},Yx=function(){var pr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ln=pr.preventUpdate,Wn=_p(Og.current||Ot.getInitialValue(Qo.current),p,b,I,jt);wp(Wn,null,{initial:!0,preventUpdate:ln}),Su(ee?Fn(Wn):void 0,{preventUpdate:ln}),Ap(void 0,!0,{preventUpdate:ln}),Vr.current=!1},Jx=function(pr){Fn&&(Dn("Field validating ".concat(n," ").concat(hi())),Su(Fn(hi(),pr||Kt.getValues())))},Xx=function(pr){s&&(Dn("Field async validating ".concat(n," ").concat(hi())),s(hi(),pr||Kt.getValues()))},Cp={setValue:wp,setTouched:Ap,setError:Su,reset:Yx,validate:Jx,asyncValidate:Xx,getValue:hi,getTouched:Ag,getError:Dx,getIsRelevant:Pg,getDirty:Jo,getPristine:sn,getFieldState:function(){return{value:hi(),touched:Ag(),dirty:Jo(),pristine:sn()}},relevant:xp,multistepRelevant:$x,checkRelevant:Kx};qr.current=Cp;var wu={value:En,error:xg,touched:wg,maskedValue:vp,isRelevant:Oc,dirty:Vr.current,pristine:!Vr.current};Se&&(wu={error:xg,touched:wg}),Dn("Render",Kt.getFullField(n),wu),Ni(function(){var _r=Kt.getFullField(Qo.current);return Dn("Register",ft,Qo.current),pi.current={field:_r,fieldId:ft,fieldApi:Cp,fieldState:wu,notify:ve,keepState:me,inMultistep:Wt,shadow:Se},Ot.register(ft,pi.current),function(){var pr=Kt.getFullField(Qo.current);Dn("Deregister",ft,pr),Ot.deregister(ft)}},[]),(0,L.useEffect)(function(){var _r=Kt.getFullField(n);return Un.current?Un.current=!1:(Dn("Update",n,Wt),pi.current.field=_r,Ot.update(ft,pi.current,Tg.current)),function(){Tg.current=_r}},[n]),Ni(function(){Ae&&ra&&(ra.current.style.border="5px solid orange",setTimeout(function(){ra.current.style.borderWidth="2px",ra.current.style.borderStyle="inset",ra.current.style.borderColor="initial",ra.current.style.borderImage="initial"},500))});var Qx=[].concat(an(Object.values(wu)),an(Object.values(e)),an(Object.values(cr))),Zx=function(pr){return(0,L.useMemo)(function(){return Oc?pr:null},an(Qx))},Ep=n,qx=mm({fieldType:Fe,setValue:wp,onChange:Ue,multiple:Re,ref:ra}),_x=ym({setTouched:Ap,onBlur:ze}),e1=bm({fieldType:Fe,maskedValue:vp,multiple:Re,value:En}),t1=xm(Fe);return{fieldState:wu,fieldApi:Cp,render:Zx,ref:ra,userProps:Mt(Mt({},cr),{},{multiple:Re,onChange:Ue,onBlur:ze,id:cr.id||ft}),informed:Mt({name:Ep,multiple:Re,onChange:qx,onBlur:_x,value:e1,ref:ra,type:t1,id:cr.id||ft},cr)}}var Aa=function(r){var n=L.forwardRef(function(a,s){var c=au(a,s),p=c.fieldState,m=c.fieldApi,v=c.render,y=c.ref,b=c.userProps;return v(L.createElement(r,Br({fieldApi:m,fieldState:p,field:a.field,forwardedRef:y,debug:a.debug,type:a.type},b)))});return n.displayName="asField(".concat($p(r),")"),n},wm=_i("informed:Text "),Am=function(r){var n=r.fieldApi,a=r.fieldState,s=jr(r,["fieldApi","fieldState"]),c=a.maskedValue,p=n.setValue,m=n.setTouched,v=s.onChange,y=s.onBlur,b=s.field,I=s.initialValue,R=s.forwardedRef,N=s.debug,G=s.label,ee=s.title,q=s.id,oe=jr(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return wm("Render",b),Ni(function(){N&&R&&(R.current.style.background="red",setTimeout(function(){R.current.style.background="white"},500))}),L.createElement(L.Fragment,null,G?L.createElement("label",{htmlFor:q}," ",G," "):null,L.createElement("input",Br({},oe,{id:q,name:b,ref:R,value:!c&&c!==0?"":c,onChange:function(pe){p(pe.target.value,pe),v&&v(pe)},onBlur:function(pe){m(!0),y&&y(pe)}})))},Cm=Aa(Am),Em=function(r){var n=r.fieldApi,a=r.fieldState,s=jr(r,["fieldApi","fieldState"]),c=a.maskedValue,p=n.setValue,m=n.setTouched,v=s.onChange,y=s.onBlur,b=s.field,I=s.initialValue,R=s.forwardedRef,N=s.debug,G=s.label,ee=s.id,q=jr(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return Ni(function(){N&&R&&(R.current.style.background="red",setTimeout(function(){R.current.style.background="white"},500))}),L.createElement(L.Fragment,null,G?L.createElement("label",{htmlFor:ee}," ",G," "):null,L.createElement("textarea",Br({},q,{id:ee,name:b,ref:R,value:c||"",onChange:function(ae){p(ae.target.value,ae),v&&v(ae)},onBlur:function(ae){m(!0),y&&y(ae)}})))},Om=Aa(Em),Tm=_i("informed:Select "),Pm=function(r){var n=r.fieldApi,a=r.fieldState,s=jr(r,["fieldApi","fieldState"]),c=a.value,p=n.setTouched,m=s.onChange,v=s.onBlur,y=s.field,b=s.initialValue,I=s.options,R=s.children,N=s.forwardedRef,G=s.debug,ee=s.multiple,q=s.label,oe=s.id,ae=jr(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),pe=(0,L.useRef)(),ve=function(Te){var Ae=Array.from((N||pe).current).filter(function(Se){return Se.selected}).map(function(Se){return Se.value});n.setValue(ee?Ae:Ae[0]||""),m&&Te&&m(Te)};return Ni(function(){G&&N&&(N.current.style.background="red",setTimeout(function(){N.current.style.background="white"},500))}),Tm("Render",y,c),L.createElement(L.Fragment,null,q?L.createElement("label",{htmlFor:oe}," ",q," "):null,L.createElement("select",Br({},ae,{id:oe,multiple:ee,name:y,ref:N||pe,value:c||(ee?[]:""),onChange:ve,onBlur:function(Te){p(!0),v&&v(Te)}}),I?I.map(function(me){return L.createElement("option",{key:me.value,value:me.value,disabled:me.disabled},me.label)}):R))},Im=Aa(Pm),Fm=function(r){var n=r.fieldApi,a=r.fieldState,s=jr(r,["fieldApi","fieldState"]),c=a.value,p=n.setValue,m=n.setTouched,v=s.onChange,y=s.onBlur,b=s.field,I=s.initialValue,R=s.debug,N=s.forwardedRef,G=s.id,ee=s.label,q=jr(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return L.createElement(L.Fragment,null,ee?L.createElement("label",{htmlFor:G}," ",ee," "):null,L.createElement("input",Br({},q,{id:G,name:b,ref:N,checked:!!c,onChange:function(ae){p(ae.target.checked),v&&v(ae)},onBlur:function(ae){m(!0),y&&y(ae)},type:"checkbox"})))},km=Aa(Fm),Rm=function(r){return L.forwardRef(function(n,a){return L.createElement(jp.Consumer,null,function(s){var c=s.radioGroupApi,p=s.radioGroupState;return L.createElement(r,Br({radioGroupApi:c,radioGroupState:p,ref:a},n))})})},Mm=function(r){var n=r.radioGroupApi,a=r.radioGroupState,s=jr(r,["radioGroupApi","radioGroupState"]),c=a.value,p=n.setValue,m=n.setTouched,v=n.onChange,y=n.onBlur,b=s.value,I=s.onChange,R=s.onBlur,N=s.field,G=s.initialValue,ee=s.forwardedRef,q=jr(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return L.createElement("input",Br({},q,{name:N,ref:ee,value:b,checked:c===b,onChange:function(ae){!ae.target.checked||(p(b),I&&I(ae),v&&v(ae))},onBlur:function(ae){m(!0),R&&R(ae),y&&y(ae)},type:"radio"}))},Lm=Rm(Mm),Nm=function(e){$g(n,e);var r=Qg(n);function n(){return Md(this,n),r.apply(this,arguments)}return Ld(n,[{key:"render",value:function(){var s=this.props,c=s.options,p=s.children;return L.createElement(jp.Provider,{value:this.groupContext},c?c.map(function(m){return L.createElement("label",{key:m.value},m.label," ",L.createElement(Lm,{value:m.value}))}):p)}},{key:"groupContext",get:function(){return{radioGroupApi:Mt(Mt({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),n}(L.Component),Dm=Aa(Nm);function Bm(){return(0,L.useContext)(Up)}var jm=function(){var r=Bm(),n=r.add;return L.createElement("button",{onClick:function(){n()},type:"button"},"Add")};function Vm(){return(0,L.useContext)(Vd)}var Um=function(){var r=Vm(),n=r.remove;return L.createElement("button",{onClick:function(){n()},type:"button"},"Remove")},tc=_i("informed:useArrayField "),Wm=function(r){var n=r.field,a=r.initialValue,s=r.validate,c=r.arrayFieldApiRef,p=jr(r,["field","initialValue","validate","arrayFieldApiRef"]),m=Li(),v=(0,L.useState)(new Map),y=kr(v,1),b=y[0],I=(0,L.useContext)(Zn),R=m.getFullField(n),N=I.getInitialValue(n)||a||[],G=m.getSavedValue(R)&&m.getSavedValue(R).value,ee=wa(G||N),q=kr(ee,3),oe=q[0],ae=q[1],pe=q[2],ve=oe?oe.map(function(){return zo()}):[],me=wa(ve),Te=kr(me,3),Ae=Te[0],Se=Te[1],Ce=Te[2],Fe=(0,L.useMemo)(function(){return function(Ut,ft){var Ot=Ce()==null?0:Ce().length;return s?s(Ut,Ot,ft):void 0}}),Re=au(Mt({field:n,validate:s?Fe:void 0,shadow:!0},p)),Ue=Re.fieldApi;Ni(function(){var Ut=function(Ot){Ot!==R&&(tc("".concat(R," changed")),RegExp("".concat(R,"\\[[0-9]+\\]")).test(Ot)&&Ue.validate())};return m.emitter.on("value",Ut),function(){m.emitter.removeListener("value",Ut)}},[n]);var ze=function(ft){tc("EXPECTING REMOVAL OF","".concat(n,"[").concat(ft,"] and ").concat(n,"[").concat(Ae.length-1,"]")),I.expectRemoval("".concat(n,"[").concat(ft,"]")),I.expectRemoval("".concat(n,"[").concat(Ae.length-1,"]"));var Ot=Ae.slice(0,ft).concat(Ae.slice(ft+1,Ae.length));Se(Ot);var Zt=pe(),Wt=Zt.slice(0,ft).concat(Zt.slice(ft+1,Zt.length));ae(Wt)},Ct=function(ft,Ot){tc("Swapping","".concat(n,"[").concat(ft,"] and ").concat(n,"[").concat(Ot,"]"));var Zt=an(Ae);Ae[ft]&&Ae[Ot]?(Zt[ft]=Ae[Ot],Zt[Ot]=Ae[ft]):console.warn("Attempted to swap ".concat(ft," with ").concat(Ot," but one of them does not exist :(")),Se(Zt)},qe=function(){Ae.push(zo()),Se(an(Ae))},nr=function(ft){Ae.push(zo()),Se(an(Ae));var Ot=an(pe());Ot[Ae.length-1]=ft,ae(Ot)},ur=function(){var ft=I.getInitialValue(n)||a||[];ae(ft);var Ot=ft?ft.map(function(){return zo()}):[];Se(Ot)},jt=Ae.map(function(Ut,ft){var Ot={remove:function(){return ze(ft)}},Zt={initialValue:oe&&oe[ft],key:Ut,field:"".concat(n,"[").concat(ft,"]"),index:ft};return Mt(Mt({arrayFieldItemApi:Ot,arrayFieldItemState:Zt},Ot),Zt)}),fr={add:qe,swap:Ct,addWithInitialValue:nr,reset:ur};c&&(c.current=fr);var $t={fields:jt,field:n},cr=Mt(Mt({},I),{},{register:function(ft,Ot){b.set(ft,Ot);for(var Zt=arguments.length,Wt=new Array(Zt>2?Zt-2:0),Kt=2;Kt<Zt;Kt++)Wt[Kt-2]=arguments[Kt];I.register.apply(I,[ft,Ot].concat(Wt))},deregister:function(ft){b.delete(ft);for(var Ot=arguments.length,Zt=new Array(Ot>1?Ot-1:0),Wt=1;Wt<Ot;Wt++)Zt[Wt-1]=arguments[Wt];I.deregister.apply(I,[ft].concat(Zt))},getInitialValue:function(ft){if(RegExp("".concat(R,"\\[[0-9]+\\]")).test(ft)){var Ot=ft.replace(n,""),Zt=At.get(pe(),Ot);return tc("Resetting ".concat(Ot," to ").concat(Zt)),Zt}return I.getInitialValue(ft)}}),wr=function(ft){return L.createElement(Zn.Provider,{value:cr},L.createElement(Up.Provider,{value:fr},L.createElement(Vp.Provider,{value:$t},ft)))};return{render:wr,add:qe,swap:Ct,addWithInitialValue:nr,fields:jt,arrayFieldState:$t,arrayFieldApi:fr,field:n}},Hm=function(r,n){return Mt(Mt({},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,c){return n.setValue("".concat(r,".").concat(s),c)},setTouched:function(s,c){return n.setTouched("".concat(r,".").concat(s),c)},setError:function(s,c){return n.setError("".concat(r,".").concat(s),c)},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 zm(e){var r=Li(),n=(0,L.useMemo)(function(){return Hm(e,r)},[e]);return n}function rc(){var e=(0,L.useContext)(nu);return e}var eh=function(r){var n=r.when,a=r.children,s=rc(),c=n(s);return c?a:null},Wd=function(r){var n=r.relevant,a=r.field,s=jr(r,["relevant","field"]),c=Li();if(n){var p=c.getFullField(a),m={path:p,parentPath:p.replace(/(.*)[.[].*/,"$1"),get:function(b,I){return At.get(b,I)}},v=function(b){var I=b.values;return n(I,m)};return L.createElement(eh,{when:v},L.createElement(th,Br({field:a},s)))}else return L.createElement(th,Br({field:a},s))},th=function(r){var n=r.children,a=jr(r,["children"]),s=Wm(a),c=s.render,p=s.arrayFieldState,m=s.arrayFieldApi,v=s.field;return c(typeof n=="function"?n(Mt(Mt({field:v,arrayFieldApi:m,arrayFieldState:p},m),p)):n)},Gm=function(r){var n=r.arrayFieldItemState,a=r.arrayFieldItemApi,s=r.children,c=(0,L.useContext)(Zn),p=Li(),m=(0,L.useState)(0),v=kr(m,2),y=v[0],b=v[1],I=(0,L.useState)(new Map),R=kr(I,1),N=R[0],G=n.field,ee=zm(G),q=function(){var Ae=p.getState(),Se=Ae.values,Ce=Ae.errors,Fe=Ae.touched,Re={values:At.get(Se,G),errors:At.get(Ce,G),touched:At.get(Fe,G)};return Re};(0,L.useEffect)(function(){var Te=function(Se){var Ce=Se.slice(0,Se.lastIndexOf("[")!=-1?Se.lastIndexOf("]")+1:Se.length);Ce===G&&b(Math.random())};return p.emitter.on("value",Te),function(){p.emitter.removeListener("value",Te)}},[G]);var oe=function(){N.forEach(function(Ae){Ae.fieldApi.reset()})},ae=q(),pe=Mt(Mt({},c),{},{register:function(Ae,Se,Ce){N.set(Ae,Se),c.register(Ae,Se,Ce)},deregister:function(Ae){N.delete(Ae);for(var Se=arguments.length,Ce=new Array(Se>1?Se-1:0),Fe=1;Fe<Se;Fe++)Ce[Fe-1]=arguments[Fe];c.deregister.apply(c,[Ae].concat(Ce))}}),ve=Mt(Mt(Mt({},a),ee),{},{reset:oe}),me=Mt(Mt({},n),ae);return typeof s=="function"?L.createElement(Zn.Provider,{value:pe},L.createElement(Vd.Provider,{value:ve},L.createElement(Wp.Provider,{value:me},s(Mt(Mt({arrayFieldItemApi:ve,arrayFieldItemState:me},ve),me))))):L.createElement(Zn.Provider,{value:pe},L.createElement(Vd.Provider,{value:ve},L.createElement(Wp.Provider,{value:me},s)))};Wd.Items=function(e){var r=e.children,n=(0,L.useContext)(Vp),a=n.fields;return a.map(function(s){var c=s.arrayFieldItemState,p=s.arrayFieldItemApi,m=c.key;return L.createElement(Gm,{key:m,arrayFieldItemApi:p,arrayFieldItemState:c},r)})};var nc=function(r){var n=r.components,a=(0,L.useContext)(Zn),s=a.fieldMap;return n?n.map(function(c,p){var m=c["ui:control"],v=s[m];return L.createElement(v,{key:"ui-comp-".concat(p)})}):null},$m=_i("informed:FormFields "),Hd=function e(r){var n=r.schema,a=r.prefix,s=r.onlyValidateSchema,c=(0,L.useContext)(Zn),p=c.fieldMap,m=(0,L.useMemo)(function(){var v=Zp(n,s,a),y=v.map(function(b,I){var R=b.field,N=b.props,G=b.type,ee=b.properties,q=b.items,oe=b.componentType,ae=b.uiBefore,pe=b.uiAfter,ve=b.allOf,me=p[oe];return $m("Rendering Field",R,b),!me&&G==="object"&&ee?L.createElement(e,{schema:b,prefix:R,key:"ScheamField-".concat(I)}):!me&&G==="array"&&q?L.createElement(rh,Br({key:"ScheamField-".concat(I),field:R,items:q,uiBefore:ae,uiAfter:pe},N)):me&&oe==="array"&&q&&G==="array"?L.createElement(me,Br({key:"ScheamField-".concat(I),field:R,items:q,uiBefore:ae,uiAfter:pe},N)):oe==="conditionals"?ve.map(function(Te){var Ae=Te.then,Se=Te.if.properties,Ce=function(Re){var Ue=Re.values;return Object.keys(Se).every(function(ze){var Ct=Se[ze];return Ue[ze]===Ct.const})};return L.createElement(eh,{key:"ScheamField-".concat(I),when:Ce},L.createElement(e,{schema:Ae}))}):me?L.createElement(me,Br({key:"ScheamField-".concat(I),field:R},N)):null});return y},[n,a]);return m},rh=function(r){var n=r.field,a=r.items,s=r.uiBefore,c=r.uiAfter,p=jr(r,["field","items","uiBefore","uiAfter"]);return L.createElement(Wd,Br({field:n},p),L.createElement(nc,{components:s}),L.createElement(Wd.Items,null,function(m){var v=m.field;return L.createElement(L.Fragment,null,L.createElement(nc,{components:a["ui:before"]}),L.createElement(Hd,{schema:a,prefix:v}),L.createElement(nc,{components:a["ui:after"]}))}),L.createElement(nc,{components:c}))},Km={select:Im,input:Cm,textarea:Om,checkbox:km,radio:Dm,add:jm,remove:Um,array:rh},hr=_i("informed:Controller "),Ym=function(r,n){var a=Object.keys(n).find(function(c){return r.includes(c)});if(!!a){var s=r.slice(0,a.length);return s===a}},fi=function(){},Jm=function(){function e(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Md(this,e),this.options=n,this.subscriptions=new Map;var a=n.ajv,s=n.schema,c=n.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(s):null,this.fieldMap=c||Km,this.fieldsById=new Map,this.fieldsByName={get:function(m){var v;return r.fieldsById.forEach(function(y){y&&y.field===m&&(v=y)}),v}},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:fi,setTouched:fi,setError:fi,reset:fi,validate:fi,getValue:fi,getTouched:fi,getError:fi,getFieldState:fi,checkRelevant:fi,getPristine:fi,getDirty:fi}},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(m,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(m);b.shadow||At.set(r.state.values,b.field,b.fieldApi.getValue()),b.fieldApi.relevant(r.state.values)||At.delete(r.state.values,b.field),r.fieldsById.forEach(function(I){var R=I.fieldApi.checkRelevant();(!I.fieldApi.multistepRelevant(r.state.values)||!R&&!I.keepState)&&(At.delete(r.state.values,I.field),At.delete(r.state.touched,I.field),At.delete(r.state.errors,I.field))}),y&&(r.emit("change"),r.emit("field",b.field),r.emit("value",b.field,v))},setTouched:function(m,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(m);!b.shadow&&b.fieldApi.getIsRelevant()&&At.set(r.state.touched,b.field,b.fieldApi.getTouched()),b.shadow&&b.fieldApi.getError()!=null&&b.fieldApi.relevant(r.state.values)&&At.set(r.state.touched,b.field,b.fieldApi.getTouched()),y&&(r.emit("change"),r.emit("field",b.field))},setError:function(m,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(m);!b.shadow&&b.fieldApi.getIsRelevant()&&At.set(r.state.errors,b.field,b.fieldApi.getError());var I=At.get(r.state.errors,b.field);(b.shadow&&b.fieldApi.getError()!=null&&b.fieldApi.relevant(r.state.values)||b.shadow&&b.fieldApi.getError()===void 0&&b.fieldApi.relevant(r.state.values)&&typeof I=="string")&&At.set(r.state.errors,b.field,b.fieldApi.getError()),y&&(r.emit("change"),r.emit("field",b.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(p){delete r.state.error,r.notify(p)})}return Ld(e,[{key:"emit",value:function(n){for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];var p=this.subscriptions.get(n);p&&p.forEach(function(m){return m.apply(void 0,s)})}},{key:"on",value:function(n,a){this.subscriptions.get(n)||this.subscriptions.set(n,new Set);var s=this.subscriptions.get(n);s.add(a)}},{key:"removeListener",value:function(n,a){var s=this.subscriptions.get(n);s.delete(a)}},{key:"setOptions",value:function(n){this.options=n}},{key:"setValue",value:function(n,a,s){this.getField(n).fieldApi.setValue(a,null,Mt({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(n,a){this.getField(n).fieldApi.setTouched(a)}},{key:"setError",value:function(n,a){this.getField(n).fieldApi.setError(a)}},{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,a){if(this.state.validating=this.state.validating-1,this.getError(n)||this.setError(n,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(hr("Submit",this.state),this.emit("submit")):(hr("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,a){At.set(this.options.initialValues,n,a)}},{key:"getFormState",value:function(){return hr("Returning form state"),Mt(Mt({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(n){var a=this.getValues();return At.get(a,n)}},{key:"getValue",value:function(n){var a=this.getField(n).fieldApi.getValue();return hr("Getting value for",n,a),a}},{key:"getTouched",value:function(n){var a=this.getField(n).fieldApi.getTouched();return hr("Getting touched for",n,a),a}},{key:"getError",value:function(n){var a=this.getField(n).fieldApi.getError();return hr("Getting error for",n,a),a}},{key:"getDirty",value:function(n){var a=this.getField(n).fieldApi.getDirty();return hr("Getting dirty for",n,a),a}},{key:"getPristine",value:function(n){var a=this.getField(n).fieldApi.getPristine();return hr("Getting pristine for",n,a),a}},{key:"getValues",value:function(){return hr("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return hr("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return hr("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 a=this.fieldsByName.get(n);return a&&a.shadow?At.get(this.savedValues,"shadow-".concat(n)):At.get(this.savedValues,n)}},{key:"removeSavedState",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?At.delete(this.savedValues,"shadow-".concat(n)):At.delete(this.savedValues,n)}},{key:"getFullField",value:function(n){return n}},{key:"getInitialValue",value:function(n){return At.get(this.options.initialValues,n)}},{key:"getField",value:function(n){hr("Getting Field",n);var a=this.fieldsByName.get(n);return a||(console.warn("Attempting to get field ".concat(n," but it does not exist")),this.dummyField)}},{key:"notify",value:function(n){var a=this,s=this.getField(n);s&&s.notify&&s.notify.forEach(function(c){var p=".".concat(n),m="".concat(p.replace(/(.*)[.[].*/,"$1"),".").concat(c).slice(1),v=a.getField(m);v&&(hr("Notifying",v.field),v.fieldApi.validate(),v.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!!(At.empty(n)&&!this.state.error)}},{key:"screenValid",value:function(){var n=Object.entries(this.onScreen).some(function(a){var s=kr(a,2),c=s[1];return c.fieldApi.getError()});return!n}},{key:"invalid",value:function(){var n=this.getErrors();return!!(!At.empty(n)||this.state.error)}},{key:"pristine",value:function(){var n=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(n=!1)}),n}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){hr("Resetting"),this.fieldsById.forEach(function(n){n.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(n){hr("Setting values"),this.fieldsById.forEach(function(a){var s=At.get(n,a.field);s!==void 0&&a.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var n=this;hr("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var s=Yp(this.options.validationSchema,a);this.fieldsById.forEach(function(v){if(At.has(s,v.field)){var y=At.get(s,v.field);n.setError(v.field,y)}else n.setError(v.field,void 0)})}if(this.options.schema&&this.options.ajv){var c=Qp(this.ajvValidate,a);this.fieldsById.forEach(function(v){if(At.has(c,v.field)){var y=At.get(c,v.field);n.setError(v.field,y)}else n.setError(v.field,void 0)})}if(this.fieldsById.forEach(function(v){v.fieldApi.validate(a),v.fieldApi.setTouched(!0,!0)}),this.options.validate){var p=this.options.validate(a);this.setFormError(p)}if(this.options.validateFields){var m=this.options.validateFields(a);this.fieldsById.forEach(function(v){if(At.has(m,v.field)){var y=At.get(m,v.field);n.setError(v.field,y)}})}}},{key:"asyncValidate",value:function(){hr("Async Validating all fields");var n=this.getValues();this.fieldsById.forEach(function(a){a.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()?(hr("Submit",this.state),this.emit("submit")):(hr("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var n=this;this.fieldsById.forEach(function(a){n.emit("field",a.field)})}},{key:"register",value:function(n,a,s){var c=a.field,p=a.state;hr("Register ID:",n,"Name:",c,p,"Initial",s);var m=c.slice(0,c.lastIndexOf("[")!=-1?c.lastIndexOf("]")+1:c.length),v;this.fieldsById.forEach(function(y,b){y&&y.field===c&&(v=b)}),v&&(a.keepState||a.inMultistep)?(hr("Already Registered",c),this.fieldsById.delete(v)):v&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",c),hr("Fields Registered",this.fieldsById.size),this.onScreen[n]=a,this.fieldsById.set(n,a),hr("clearing expected removal",m),delete this.expectedRemovals[m],delete this.pulledOut[m],!a.shadow&&(this.updater.setValue(n,a.fieldApi.getValue(),!1),this.updater.setError(n,a.fieldApi.getError(),!1),this.updater.setTouched(n,a.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",c))}},{key:"deregister",value:function(n){var a=this.fieldsById.get(n),s=a.field;hr("Deregister",n,s),delete this.onScreen[n];var c=Ym(s,this.expectedRemovals),p=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(a.keepState||a.inMultistep)&&!c&&(hr("Saving field ".concat(s,"'s value"),a.fieldApi.getFieldState()),a.shadow?At.set(this.savedValues,"shadow-".concat(s),a.fieldApi.getFieldState()):At.set(this.savedValues,s,a.fieldApi.getFieldState())),(c||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(hr("Removing field",s),this.fieldsById.delete(n),c||(At.delete(this.state.values,s),At.delete(this.state.touched,s),At.delete(this.state.errors,s),a.shadow?At.delete(this.savedValues,"shadow-".concat(s)):At.delete(this.savedValues,s)),c&&this.pulledOut[p]&&(hr("Pulling out",s,"with magic value",p),At.pullOut(this.state.values,p),At.pullOut(this.state.touched,p),At.pullOut(this.state.errors,p),At.pullOut(this.savedValues,p),delete this.pulledOut[p])),this.emit("change")}},{key:"expectRemoval",value:function(n){hr("Expecting removal of",n),this.expectedRemovals[n]=!0,this.pulledOut[n]=!0}},{key:"update",value:function(n,a,s){hr("Update",n,a.field,s,a.fieldState.value);var c=a.fieldApi.getValue(),p=a.fieldApi.getError(),m=a.fieldApi.getTouched(),v=this.fieldsByName.get(s);s&&!v&&(At.set(this.state.values,s),At.set(this.state.errors,s),At.set(this.state.touched,s)),At.set(this.state.values,a.field,c),At.set(this.state.errors,a.field,p),At.set(this.state.touched,a.field,m),this.emit("change")}}]),e}(),zd=_i("informed:FormProvider "),Xm=function(r){var n=r.children,a=r.formApi,s=r.formController,c=r.formState,p=jr(r,["children","formApi","formController","formState"]);if(zd("Render FormProvider"),a)return zd("Render FormProvider with given values"),L.createElement(Zn.Provider,{value:s.updater},L.createElement(iu.Provider,{value:a},L.createElement(nu.Provider,{value:c},n)));zd("Render FormProvider with generated values");var m=ih(p);return L.createElement(Zn.Provider,{value:m.formController.updater},L.createElement(iu.Provider,{value:m.formApi},L.createElement(nu.Provider,{value:m.formState},n)))},nh=_i("informed:useForm "),ih=function(r){var n=r.dontPreventDefault,a=r.initialValues,s=r.validate,c=r.validateFields,p=r.allowEmptyStrings,m=r.preventEnter,v=r.getApi,y=r.apiRef,b=r.onChange,I=r.onReset,R=r.onSubmit,N=r.onValueChange,G=r.onSubmitFailure,ee=r.validationSchema,q=r.schema,oe=r.ajv,ae=r.fieldMap,pe=r.onlyValidateSchema,ve=jr(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);nh("Render useForm");var me=(0,L.useMemo)(function(){return{dontPreventDefault:n,initialValues:a,validate:s,validateFields:c,allowEmptyStrings:p,preventEnter:m,validationSchema:ee,schema:q,ajv:oe,fieldMap:ae}},[n,a,s,c,p,m,ee,q,oe,ae]),Te=(0,L.useState)(function(){return new Jm(me)}),Ae=kr(Te,1),Se=Ae[0];(0,L.useEffect)(function(){Se.setOptions(me)},[me]),Ni(function(){Se.mount()},[]);var Ce=(0,L.useState)(function(){return Se.getFormState()}),Fe=kr(Ce,2),Re=Fe[0],Ue=Fe[1];Ni(function(){var ur=function(){return b&&b(Se.getFormState())},jt=function(){return I&&I()},fr=function(){return R&&R(Se.getFormState().values)},$t=function(){return N&&N(Se.getFormState().values)},cr=function(){return G&&G(Se.getFormState().errors)};return Se.on("change",ur),Se.on("reset",jt),Se.on("submit",fr),Se.on("value",$t),Se.on("failure",cr),function(){Se.removeListener("change",ur),Se.removeListener("reset",jt),Se.removeListener("submit",fr),Se.removeListener("value",$t),Se.removeListener("failure",cr)}},[b,I,R,N,G]),(0,L.useState)(function(){var ur=function(){nh("Setting form state"),Ue(Se.getFormState())};Se.on("change",ur),v&&v(Se.getFormApi()),y&&(y.current=Se.getFormApi())});var ze=(0,L.useState)(function(){return Se.getFormApi()}),Ct=kr(ze,1),qe=Ct[0],nr=function(jt){return L.createElement(Xm,{formApi:qe,formState:Re,formController:Se},L.createElement(L.Fragment,null,jt||L.createElement(Hd,{schema:q,onlyValidateSchema:pe})))};return{formApi:qe,formState:Re,formController:Se,render:nr,userProps:ve}},Qm=_i("informed:Form "),Zm=function(r){var n=r.children,a=r.render,s=r.component,c=jr(r,["children","render","component"]);Qm("Render FORM");var p=ih(c),m=p.formApi,v=p.formController,y=p.formState,b=p.render,I=p.userProps,R=function(){var G={formState:y,formApi:m};return s?L.createElement(s,G,n):a?a(G):typeof n=="function"?n(G):n};return b(L.createElement("form",Br({},I,{onReset:v.reset,onSubmit:v.submitForm,onKeyDown:v.keyDown}),R()))},qm=function(r,n){return Mt(Mt({},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,c){return n.setValue("".concat(r,".").concat(s),c)},setTouched:function(s,c){return n.setTouched("".concat(r,".").concat(s),c)},setError:function(s,c){return n.setError("".concat(r,".").concat(s),c)},getInitialValue:function(s){return n.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(n.getFullField(r),".").concat(s)}})},_m=function(r,n){var a=n.register,s=n.deregister,c=n.setValue,p=n.setTouched,m=n.setError,v=n.update,y=n.getField,b=n.expectRemoval,I=n.getInitialValue,R=n.fieldMap,N=n.getSavedValue;return{register:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return a.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},deregister:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return s.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},update:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return v.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},setValue:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return c.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},setTouched:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return p.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},setError:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return m.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},getField:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return y.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},expectRemoval:function(ee){for(var q=arguments.length,oe=new Array(q>1?q-1:0),ae=1;ae<q;ae++)oe[ae-1]=arguments[ae];return b.apply(void 0,["".concat(r,".").concat(ee)].concat(oe))},getInitialValue:function(ee){return I("".concat(r,".").concat(ee))},getSavedValue:function(ee){return N("".concat(r,".").concat(ee))},fieldMap:R}},n1=function(r){var n=r.scope,a=r.children,s=useContext(Zn),c=Li(),p=rc(),m=useMemo(function(){return qm(n,c)},[n]),v=useMemo(function(){return _m(n,s)},[n]);return React.createElement(Zn.Provider,{value:v},React.createElement(iu.Provider,{value:m},React.createElement(nu.Provider,{value:p},a)))},i1=function(r){var n=rc(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(N){a[N]=n[N]}):a=n;var s=a,c=s.pristine,p=s.dirty,m=s.invalid,v=s.values,y=s.errors,b=s.touched,I=s.validating,R=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:c,dirty:p,invalid:m,values:v,errors:y,touched:b,validating:I,submitting:R},null,2)))},ey=function(r){var n=r.initialStep,a=r.multistepApiRef,s=Li(),c=s.getValues,p=s.validate,m=s.screenValid,v=(0,L.useState)(new Map),y=kr(v,1),b=y[0],I=(0,L.useRef)(0),R=wa({current:n,steps:[],goal:null}),N=kr(R,3),G=N[0],ee=N[1],q=N[2],oe=(0,L.useState)(function(){var me=function(){var Se=q(),Ce=Se.current,Fe=b.get(Ce);return Fe},Te={getState:function(){return q()},getCurrentStep:me,getStep:function(Se){return b.get(Se)},getNumberOfSteps:function(){return b.size},next:function(){if(p(),m()){var Se=me(),Ce=Se.getNext,Fe=Ce(),Re=typeof Fe=="function"?Fe(c()):Fe;Re&&ee(function(Ue){return Mt(Mt({},Ue),{},{current:Re})})}},back:function(){var Se=me(),Ce=Se.getPrevious,Fe=Ce(),Re=typeof Fe=="function"?Fe(c()):Fe;Re&&ee(function(Ue){return Mt(Mt({},Ue),{},{current:Re})})},setCurrent:function(Se){if(Se){var Ce=b.get(Se).index;Ce<me().index?ee(function(Fe){return Mt(Mt({},Fe),{},{current:Se,goal:null})}):ee(function(Fe){return Mt(Mt({},Fe),{},{goal:Se})})}},register:function(Se,Ce,Fe){Fe?(I.current=I.current+1,b.set(Se,Mt(Mt({},Ce),{},{index:I.current}))):ee(function(Re){return Mt(Mt({},Re),{},{steps:Array.from(b.keys())})})},deregister:function(Se){b.delete(Se),I.current=I.current-1,ee(function(Ce){return Mt(Mt({},Ce),{},{steps:Array.from(b.keys())})})}};return a&&(a.current=Te),Te}),ae=kr(oe,1),pe=ae[0],ve=function(Te){return L.createElement(zp.Provider,{value:pe},L.createElement(Hp.Provider,{value:G},Te))};return Mt(Mt(Mt({},pe),G),{},{render:ve})};function ty(){return(0,L.useContext)(Hp)}function ry(){return(0,L.useContext)(zp)}var ny=function(r){var n=r.step,a=r.next,s=r.previous,c=r.relevant,p=rc(),m=p.values,v=ty(),y=v.current,b=v.goal,I=ry(),R=I.register,N=I.deregister,G=I.next,ee=n===y,q=c?c(m):!0,oe=(0,L.useRef)(a),ae=(0,L.useRef)(s),pe=(0,L.useRef)();oe.current=a,ae.current=s,pe.current=c,(0,L.useState)(function(){R(n,{name:n,getNext:function(){return oe.current},getPrevious:function(){return ae.current}},!0)}),(0,L.useEffect)(function(){return R(n,{name:n,getNext:function(){return oe.current},getPrevious:function(){return ae.current}}),function(){N(n)}},[n]),(0,L.useEffect)(function(){b&&ee&&b!==n&&G()},[b,ee]);var ve=function(Te){return L.createElement(Gp.Provider,{value:{relevant:function(Se){return pe.current?pe.current(Se):!0},multistep:!0}},ee&&q?Te:null)};return{isCurrent:ee,isRelevant:q,step:n,render:ve}};function iy(e){var r=e.children,n=jr(e,["children"]),a=ey(n),s=a.render,c=jr(a,["render"]);return s(typeof r=="function"?r(c):r)}iy.Step=function(r){var n=r.children,a=jr(r,["children"]),s=ny(a),c=s.render;return c(n)};var a1=function(r){var n=r.field,a=useContext(Zn),s=a.fieldMap,c=Li(),p=c.getFullField,m=c.getOptions,v=p(n),y=m(),b=y.schema,I=qp(v),R=At.get(b,I);if(!R)return null;var N=Ud(n,R),G=N.props,ee=N.componentType,q=s[ee];return React.createElement(q,Br({field:n},G))},o1=function(){var r=Li(),n=r.getOptions,a=n(),s=a.schema;return React.createElement(Hd,{schema:s})},s1=function(r){return React.forwardRef(function(n,a){return React.createElement(iu.Consumer,null,function(s){return React.createElement(r,Br({formApi:s,ref:a},n))})})},l1=function(r){return React.forwardRef(function(n,a){return React.createElement(nu.Consumer,null,function(s){return React.createElement(r,Br({formState:s,ref:a},n))})})},ay=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 ah(e){var r=Li(),n=useMemo(function(){return ay(r,e)},[e]);return n}function oy(e){var r=ah(e),n=Li(),a=React.useState(),s=kr(a,2),c=s[1],p=React.useCallback(function(){return c({})},[]);return Ni(function(){var m=function(y){y===e&&p()};return n.emitter.on("field",m),function(){n.emitter.removeListener("field",m)}},[]),Ni(function(){p()},[]),r.getFieldState()||{}}var u1=function(r){return function(n){return function(a){var s=oy(r);return React.createElement(n,Br({fieldState:s},a))}}},f1=function(r){return function(n){return function(a){var s=ah(r);return React.createElement(n,Br({fieldApi:s},a))}}},c1=function(r){var n=r.value,a=r.forwardedRef,s=r.children,c=jr(r,["value","forwardedRef","children"]);return React.createElement("option",Br({ref:a,value:n,key:n},c),s)},d1=null,oh=o(56642),io=o(67262),sy=Object.defineProperty,ly=Object.defineProperties,uy=Object.getOwnPropertyDescriptors,sh=Object.getOwnPropertySymbols,fy=Object.prototype.hasOwnProperty,cy=Object.prototype.propertyIsEnumerable,lh=(e,r,n)=>r in e?sy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ou=(e,r)=>{for(var n in r||(r={}))fy.call(r,n)&&lh(e,n,r[n]);if(sh)for(var n of sh(r))cy.call(r,n)&&lh(e,n,r[n]);return e},dy=(e,r)=>ly(e,uy(r)),ic=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const uh="/oauth2-redirect.html";class Di{static authorizeImplicit({authorizationUrl:r,clientId:n,scopes:a,extraParams:s={},routingBasePath:c,redirectUri:p,successCallback:m,errorCallback:v}){const y=(0,io.p8)({date:new Date().toString()}),b=new URL(r),I=c==="/"?"":c,R=`${window.location.origin}${I}${uh}`;b.searchParams.set("client_id",n),b.searchParams.set("redirect_uri",p||R),b.searchParams.set("response_type","token"),b.searchParams.set("state",y),Array.isArray(a)&&b.searchParams.set("scope",a.join(" "));for(const N in s)b.searchParams.set(N,s[N]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:n,scopes:a},state:y,successCallback:N=>{m(N),Di.clearRedirectData("implicit")},errorCallback:N=>{v(N),Di.clearRedirectData("implicit")}},window.open(b.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:n,clientId:a,clientSecret:s,codeVerifier:c,codeChallenge:p,scopes:m,extraParams:v={},extraHeaders:y={},routingBasePath:b,redirectUri:I,successCallback:R,errorCallback:N}){const G=new URL(r),ee=b==="/"?"":b,q=`${window.location.origin}${ee}${uh}`,oe=(0,io.p8)({date:new Date().toString()});G.searchParams.set("client_id",a),G.searchParams.set("redirect_uri",I||q),G.searchParams.set("response_type","code"),G.searchParams.set("state",oe),Array.isArray(m)&&G.searchParams.set("scope",m.join(" ")),p&&(G.searchParams.set("code_challenge",p),G.searchParams.set("code_challenge_method","S256"));for(const ae in v)G.searchParams.set(ae,v[ae]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:m},state:oe,successCallback:ae=>ic(this,[ae],function*({auth_code:pe}){try{const ve=yield fetch(n,{method:"POST",headers:ou({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},y),body:oh.stringify(ou(dy(ou({client_id:a,client_secret:s},c&&{code_verifier:c}),{code:pe,grant_type:"authorization_code",redirect_uri:I||q}),v))});yield fh(ve,R,N)}catch(ve){N(ve)}Di.clearRedirectData("authorizationCode")}),errorCallback:ae=>{N(ae),Di.clearRedirectData("authorizationCode")}},window.open(G.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return ic(this,arguments,function*({tokenUrl:n,clientId:a,clientSecret:s,scopes:c=[],extraParams:p={},extraHeaders:m={},successCallback:v,errorCallback:y}){try{const b=JSON.parse(JSON.stringify(ou({client_id:a,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(c)&&c.length?c.join(" "):void 0},p))),I=yield fetch(n,{method:"POST",headers:ou({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},m),body:oh.stringify(b)});yield fh(I,v,y)}catch(b){y(b)}})}}const p1=new Di;function fh(e,r,n){return ic(this,null,function*(){if(e.ok){const a=yield e.json();r(a)}else n(new Error((e.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield e.json()):yield e.text()))})}function ch(e){return ic(this,null,function*(){return(0,io.rS)(yield(0,io.JQ)(e))})}var su=o(3682),ht=o(45091),py=o(31453),hy=o(43454),vy=Object.defineProperty,gy=Object.defineProperties,my=Object.getOwnPropertyDescriptors,ac=Object.getOwnPropertySymbols,dh=Object.prototype.hasOwnProperty,ph=Object.prototype.propertyIsEnumerable,hh=(e,r,n)=>r in e?vy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,oc=(e,r)=>{for(var n in r||(r={}))dh.call(r,n)&&hh(e,n,r[n]);if(ac)for(var n of ac(r))ph.call(r,n)&&hh(e,n,r[n]);return e},yy=(e,r)=>gy(e,my(r)),by=(e,r)=>{var n={};for(var a in e)dh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&ac)for(var a of ac(e))r.indexOf(a)<0&&ph.call(e,a)&&(n[a]=e[a]);return n};const vh=e=>Qt.iv`
95
171
  border: var(--input-border);
96
172
  outline: none;
97
173
  padding: var(--input-padding);
@@ -120,16 +196,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
120
196
  &:-webkit-autofill {
121
197
  background-color: var(--panel-${e}-input-background-color);
122
198
  }
123
- `,yh=Ut.ZP.div`
199
+ `,gh=Qt.ZP.div`
124
200
  display: ${({type:e})=>e==="hidden"?"none":"inline-block"};
125
201
  ${({fullWidth:e})=>e?"width: 100%;":""}
126
- `,dy=Ut.ZP.div`
202
+ `,xy=Qt.ZP.div`
127
203
  position: relative;
128
- `,py=Ut.ZP.input`
129
- ${({panel:e})=>mh(e)}
204
+ `,Sy=Qt.ZP.input`
205
+ ${({panel:e})=>vh(e)}
130
206
  ${({inputType:e,inputActionButton:r})=>e==="password"||r?"padding-right: 40px;":""};
131
207
  ${({fullWidth:e})=>e?"width: 100%;":""}
132
- `,bh=Ut.ZP.span`
208
+ `,mh=Qt.ZP.span`
133
209
  position: absolute;
134
210
  right: 0;
135
211
  line-height: normal;
@@ -139,7 +215,115 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
139
215
  cursor: pointer;
140
216
  text-align: center;
141
217
  color: var(--panel-samples-text-color);
142
- `;function hy(e,r){var n=e,{fullWidth:a,errorMessage:o,type:f,inputActionButton:d,panel:m="samples"}=n,g=cy(n,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[b,x]=(0,h.useState)(f==="password"),I=(0,h.useCallback)(()=>{x(!b)},[b]);return h.createElement(yh,{fullWidth:a,type:f},h.createElement(dy,null,h.createElement(py,_f({fullWidth:a,inputActionButton:d,type:b?"password":"text",inputType:f,ref:r,panel:m},g)),d?h.createElement(bh,{onClick:d.onClick},d.label):f==="password"?h.createElement(bh,{onClick:I},b?"show":"hide"):null),o?h.createElement(ft.Xq,null,o):null)}const Ul=(0,h.forwardRef)(hy);function Dn(e){const r=Pn(_f({fieldType:"text"},e)),{userProps:n,render:a,fieldState:o}=r,f=r.informed;return a(h.createElement(Ul,fy(_f(_f({},n),f),{errorMessage:o.error})))}const Wl=Vr(({initValue:e,options:r,fieldApi:n,fieldState:a})=>{const o=r.map((b,x)=>({value:b.title||b.value,idx:x,origValue:b.value})),f=o.find(b=>b.origValue===e),[d,m]=(0,h.useState)(f==null?void 0:f.value);(0,Qf.b6)(()=>{e&&n.setValue(e)});const g=(0,h.useCallback)(b=>{n.setValue(o[b.idx].origValue),m(o[b.idx].value)},[n,o]);return h.createElement(yh,{fullWidth:!0},h.createElement(ph.Dropdown,{fullWidth:!0,variant:"dark",value:d,options:o,onChange:g}),a.error?h.createElement(ft.Xq,null,a.error):null)});var Bn=s(55158);const vy=Vr(({initValue:e,paramEnum:r,fieldApi:n})=>{const[a,o]=(0,h.useState)(),f=r.map((g,b)=>({idx:b,value:g})),d=g=>{n.setValue(g.value),o(g.value)};(0,Qf.b6)(()=>{if(!!e)if(Array.isArray(e)){const g=e.length?e[0]:"";o(g),n.setValue(g)}else o(e),n.setValue(e)});const m=()=>{n.setValue(""),o("")};return h.createElement(Bn.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:a,options:f,handleClear:m,onChange:d})}),gy=({name:e,param:r,place:n,renderParameter:a})=>{var o,f,d,m,g;const[b,x]=h.useState([]),I=()=>{x([...b,b.length?b[b.length-1]+1:0])},N=W=>{x(b.filter(ee=>ee!==W))},j=(o=r.schema.items)!=null&&o.fields?(f=r.schema.items)==null?void 0:f.fields:[{schema:((d=r.schema.items)==null?void 0:d.schema)||r.schema.items,name:"",required:r.required,description:(m=r.schema.items)==null?void 0:m.description,externalDocs:(g=r.schema.items)==null?void 0:g.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return h.createElement(h.Fragment,null,h.createElement(xh,null,h.createElement(ft.lX,{required:r.required},e,"(",b.length," items)"),h.createElement("span",{onClick:I},"Add item +")),b==null?void 0:b.map((W,ee)=>h.createElement(xh,{key:W},h.createElement(my,{onClick:()=>N(W)},"delete"),j.map(te=>a(te,n,`${e}.[${W}]`,`[${ee}]${te.name&&"."+te.name}`)))))},xh=Ut.ZP.div`
218
+ `;function wy(e,r){var n=e,{fullWidth:a,errorMessage:s,type:c,inputActionButton:p,panel:m="samples"}=n,v=by(n,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[y,b]=(0,L.useState)(c==="password"),I=(0,L.useCallback)(()=>{b(!y)},[y]);return L.createElement(gh,{fullWidth:a,type:c},L.createElement(xy,null,L.createElement(Sy,oc({fullWidth:a,inputActionButton:p,type:y?"password":"text",inputType:c,ref:r,panel:m},v)),p?L.createElement(mh,{onClick:p.onClick},p.label):c==="password"?L.createElement(mh,{onClick:I},y?"show":"hide"):null),s?L.createElement(ht.Xq,null,s):null)}const lu=(0,L.forwardRef)(wy);function Bn(e){const r=au(oc({fieldType:"text"},e)),{userProps:n,render:a,fieldState:s}=r,c=r.informed;return a(L.createElement(lu,yy(oc(oc({},n),c),{errorMessage:s.error})))}const uu=Aa(({initValue:e,options:r,fieldApi:n,fieldState:a})=>{const s=r.map((y,b)=>({value:y.title||y.value,idx:b,origValue:y.value})),c=s.find(y=>y.origValue===e),[p,m]=(0,L.useState)(c==null?void 0:c.value);(0,Bt.useMount)(()=>{e&&n.setValue(e)});const v=(0,L.useCallback)(y=>{n.setValue(s[y.idx].origValue),m(s[y.idx].value)},[n,s]);return L.createElement(gh,{fullWidth:!0},L.createElement(hy.Dropdown,{fullWidth:!0,variant:"dark",value:p,options:s,onChange:v}),a.error?L.createElement(ht.Xq,null,a.error):null)});function Ay({name:e,value:r,description:n,variableEnum:a,onChange:s,defaultValue:c}){const p=(0,L.useCallback)(y=>s(y.target.value),[s]),m=(0,L.useCallback)(y=>s(y.value),[s]),v=a?a.map((y,b)=>({value:y,idx:b})):[];return L.createElement(ht.NI,null,L.createElement(ht.lX,null,e,":"),v&&v.length?L.createElement(Nn.VD,{fullWidth:!0,variant:"dark",value:r,options:v,onChange:m}):L.createElement(lu,{fullWidth:!0,value:r,onChange:p,placeholder:c,panel:"try-it"}),n&&L.createElement(Cy,{compact:!0,source:n}))}const Cy=(0,Qt.ZP)(py.Markdown)`
219
+ margin-top: 5px;
220
+ color: #d0d0d0;
221
+ `;var Ey=Object.defineProperty,Oy=Object.defineProperties,Ty=Object.getOwnPropertyDescriptors,yh=Object.getOwnPropertySymbols,Py=Object.prototype.hasOwnProperty,Iy=Object.prototype.propertyIsEnumerable,bh=(e,r,n)=>r in e?Ey(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,xh=(e,r)=>{for(var n in r||(r={}))Py.call(r,n)&&bh(e,n,r[n]);if(yh)for(var n of yh(r))Iy.call(r,n)&&bh(e,n,r[n]);return e},Sh=(e,r)=>Oy(e,Ty(r));const Fy=(0,A.Pi)(({operation:e,onChange:r})=>{const n=(0,pt.YQ)("serverUrl"),a=e.servers.findIndex(R=>R.url===n),[s,c]=(0,L.useState)(a<0?0:a),[p,m]=(0,L.useState)({});(0,Bt.useMount)(()=>{const R=(0,ar.fz)(e.servers,s);r(R),m(R.variables)});const v=R=>{const N=e.servers.find(q=>q.url===R.serverUrl),G=e.servers.findIndex(q=>q.url===R.serverUrl),ee=(0,ar.mj)(N);r({url:R.serverUrl||"",variables:ee}),(0,pt.WW)("serverUrl",R.serverUrl||""),c(G),m(ee)},y=(R,N)=>{const G=e.servers[s],ee=N||N===""?N:(0,ar.mj)(G)[R],q=Sh(xh({},p),{[R]:ee});m(q),(0,ar.UY)(R,ee),r(Sh(xh({},G),{variables:q}))},b=e.servers.map((R,N)=>({idx:N,serverUrl:R.url,value:`
222
+ ${(0,ar.nq)((0,ar.v5)(R.url,p),R.variables)}
223
+ - ${R.description||"Default"}
224
+ `})),I=Object.keys(p);return L.createElement(ky,{"data-cy":"console-target-server"},L.createElement(ht.lX,{htmlFor:"server"},"Target server: "),L.createElement(ht.NI,null,L.createElement(Nn.VD,{variant:"dark",value:b[s].value,options:b,fullWidth:!0,onChange:v})),I==null?void 0:I.map(R=>{var N;const G=(N=e.servers[s].variables)==null?void 0:N[R];if(G)return L.createElement(Ay,{key:R,name:R,value:p[R],defaultValue:G.default,onChange:ee=>y(R,ee),variableEnum:G.enum,description:G.description})}))}),ky=Qt.ZP.div`
225
+ margin-bottom: 20px;
226
+ `;var wh=o(27341),Ry=Object.defineProperty,My=Object.defineProperties,Ly=Object.getOwnPropertyDescriptors,sc=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Ch=Object.prototype.propertyIsEnumerable,Eh=(e,r,n)=>r in e?Ry(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ny=(e,r)=>{for(var n in r||(r={}))Ah.call(r,n)&&Eh(e,n,r[n]);if(sc)for(var n of sc(r))Ch.call(r,n)&&Eh(e,n,r[n]);return e},Dy=(e,r)=>My(e,Ly(r)),By=(e,r)=>{var n={};for(var a in e)Ah.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&sc)for(var a of sc(e))r.indexOf(a)<0&&Ch.call(e,a)&&(n[a]=e[a]);return n};function Gd(e){var r=e,{header:n,error:a,success:s}=r,c=By(r,["header","error","success"]);const p=({toggle:m,expanded:v=!1})=>L.createElement(Bt.PanelHeader,{onClick:m,expanded:v,"data-cy":c["data-cy"]},L.createElement(mr.xz,null,L.createElement(Bt.PanelHeaderTitle,null,n),L.createElement(Bt.ShelfIcon,{direction:v?"down":"right"})),a&&L.createElement(wh.CrossIcon,{size:"14px",color:"--color-error-500"})||null,s&&L.createElement(wh.LockIcon,{size:"14px",color:"--color-success-500"})||null);return L.createElement(jy,Dy(Ny({className:"panel-try-it-nested"},c),{header:p}))}const jy=(0,Qt.ZP)(Bt.Panel)`
227
+ ${Bt.PanelHeader} {
228
+ border: 1px solid
229
+ ${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-heading-border-color)"};
230
+ padding: 10px;
231
+ }
232
+
233
+ ${Bt.PanelBody} {
234
+ border: 1px solid
235
+ ${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-body-border-color)"};
236
+ border-top: 0;
237
+ }
238
+ `;var Vy=o(76479),Uy=o(78051),Wy=o(61747);const Hy=(0,Qt.ZP)(Rp.A3)`
239
+ border-radius: var(--panel-border-radius);
240
+ margin-bottom: 10px;
241
+ `;var lc=o(41199),$d=o(74032),zy=Object.defineProperty,uc=Object.getOwnPropertySymbols,Oh=Object.prototype.hasOwnProperty,Th=Object.prototype.propertyIsEnumerable,Ph=(e,r,n)=>r in e?zy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Gy=(e,r)=>{for(var n in r||(r={}))Oh.call(r,n)&&Ph(e,n,r[n]);if(uc)for(var n of uc(r))Th.call(r,n)&&Ph(e,n,r[n]);return e},Ih=(e,r)=>{var n={};for(var a in e)Oh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&uc)for(var a of uc(e))r.indexOf(a)<0&&Th.call(e,a)&&(n[a]=e[a]);return n},$y=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const Fh=(0,L.forwardRef)((e,r)=>{var n=Ih(e,[]);const a=n,{schema:s,contentName:c,onChange:p,name:m}=a,v=Ih(a,["schema","contentName","onChange","name"]),{render:y}=au(Gy({field:m},v)),b=I=>$y(void 0,null,function*(){const R=yield no(I.target.files,s);p(c,R)});return y(L.createElement("input",{"data-cy":"file-upload-input",type:"file",id:n.id,className:n.className,name:n.name,onChange:b,multiple:n.multiple,accept:n.accept,ref:r}))});Fh.displayName="FileUpload";const Ky=(0,A.Pi)(e=>{var r;const{mediaType:n,onChange:a,formApi:s}=e,c=n.examples||{},{exampleKey:p}=(0,$d.C6)(n.operation,c),m=(r=c[p])==null?void 0:r.rawValue,v=Yy(n);(0,L.useEffect)(()=>s&&v.forEach(b=>{var I,R;const N=m==null?void 0:m[b.name],G=(R=(I=b.example)!=null?I:N==null?void 0:N.example)!=null?R:N,ee=typeof G=="object"?JSON.stringify(G):G;G!==void 0&&s.setValue("body."+b.name,`${ee}`)}),[p]);const y=n.schema||{};return Zi(y,n.name)?L.createElement(kh,null,L.createElement(ht.NI,null,L.createElement(Rh,{fullWidth:!0,id:`body.${n.name}`,name:`body.${n.name}`,accept:Dr(n.name),schema:y,contentName:n.name,onChange:a}))):y.type!==Fr.DefinitionTypes.OBJECT&&!v?(console.warn(`Invalid schema for request body and mime type: "${n.name}"`,y),null):L.createElement(kh,null,v.map(b=>{const I=b.schema||{contentMediaType:"",type:"",description:""},R=n.name===lc.Tr.MULTIPART&&Mi(I),N=I.contentMediaType||"",G=R?L.createElement(Rh,{fullWidth:!0,id:"body."+b.name,name:"body."+b.name,accept:Dr(N),multiple:I.type==="array",schema:I,contentName:b.name,onChange:a}):L.createElement(Bn,{fullWidth:!0,id:"body."+b.name,field:"body."+b.name,placeholder:I.description||b.name,panel:"try-it"});return L.createElement(ht.NI,{key:b.name},L.createElement(ht.lX,null,b.name,":"),G)}))});function Yy(e){var r,n,a,s,c;return((n=(r=e.schema)==null?void 0:r.oneOf)!=null&&n.length?((s=e.schema)==null?void 0:s.oneOf[(a=e.schema)==null?void 0:a.activeOneOf].fields)||[]:((c=e.schema)==null?void 0:c.fields)||[]).filter(p=>!p.schema.readOnly)}const kh=Qt.ZP.div`
242
+ > div {
243
+ margin-top: 10px;
244
+ }
245
+ `,Rh=(0,Qt.ZP)(Fh)`
246
+ ${vh("try-it")};
247
+ ${({inputType:e})=>e==="password"?"padding-right: 40px;":""};
248
+ ${({fullWidth:e})=>e?"width: 100%;":""}
249
+ `;var Jy=o(63277),Ys=o(23326);function fc(e,r){r===void 0&&(r=!1);var n=e.length,a=0,s="",c=0,p=16,m=0,v=0,y=0,b=0,I=0;function R(pe,ve){for(var me=0,Te=0;me<pe||!ve;){var Ae=e.charCodeAt(a);if(Ae>=48&&Ae<=57)Te=Te*16+Ae-48;else if(Ae>=65&&Ae<=70)Te=Te*16+Ae-65+10;else if(Ae>=97&&Ae<=102)Te=Te*16+Ae-97+10;else break;a++,me++}return me<pe&&(Te=-1),Te}function N(pe){a=pe,s="",c=0,p=16,I=0}function G(){var pe=a;if(e.charCodeAt(a)===48)a++;else for(a++;a<e.length&&Js(e.charCodeAt(a));)a++;if(a<e.length&&e.charCodeAt(a)===46)if(a++,a<e.length&&Js(e.charCodeAt(a)))for(a++;a<e.length&&Js(e.charCodeAt(a));)a++;else return I=3,e.substring(pe,a);var ve=a;if(a<e.length&&(e.charCodeAt(a)===69||e.charCodeAt(a)===101))if(a++,(a<e.length&&e.charCodeAt(a)===43||e.charCodeAt(a)===45)&&a++,a<e.length&&Js(e.charCodeAt(a))){for(a++;a<e.length&&Js(e.charCodeAt(a));)a++;ve=a}else I=3;return e.substring(pe,ve)}function ee(){for(var pe="",ve=a;;){if(a>=n){pe+=e.substring(ve,a),I=2;break}var me=e.charCodeAt(a);if(me===34){pe+=e.substring(ve,a),a++;break}if(me===92){if(pe+=e.substring(ve,a),a++,a>=n){I=2;break}var Te=e.charCodeAt(a++);switch(Te){case 34:pe+='"';break;case 92:pe+="\\";break;case 47:pe+="/";break;case 98:pe+="\b";break;case 102:pe+="\f";break;case 110:pe+=`
250
+ `;break;case 114:pe+="\r";break;case 116:pe+=" ";break;case 117:var Ae=R(4,!0);Ae>=0?pe+=String.fromCharCode(Ae):I=4;break;default:I=5}ve=a;continue}if(me>=0&&me<=31)if(fu(me)){pe+=e.substring(ve,a),I=2;break}else I=6;a++}return pe}function q(){if(s="",I=0,c=a,v=m,b=y,a>=n)return c=n,p=17;var pe=e.charCodeAt(a);if(Kd(pe)){do a++,s+=String.fromCharCode(pe),pe=e.charCodeAt(a);while(Kd(pe));return p=15}if(fu(pe))return a++,s+=String.fromCharCode(pe),pe===13&&e.charCodeAt(a)===10&&(a++,s+=`
251
+ `),m++,y=a,p=14;switch(pe){case 123:return a++,p=1;case 125:return a++,p=2;case 91:return a++,p=3;case 93:return a++,p=4;case 58:return a++,p=6;case 44:return a++,p=5;case 34:return a++,s=ee(),p=10;case 47:var ve=a-1;if(e.charCodeAt(a+1)===47){for(a+=2;a<n&&!fu(e.charCodeAt(a));)a++;return s=e.substring(ve,a),p=12}if(e.charCodeAt(a+1)===42){a+=2;for(var me=n-1,Te=!1;a<me;){var Ae=e.charCodeAt(a);if(Ae===42&&e.charCodeAt(a+1)===47){a+=2,Te=!0;break}a++,fu(Ae)&&(Ae===13&&e.charCodeAt(a)===10&&a++,m++,y=a)}return Te||(a++,I=1),s=e.substring(ve,a),p=13}return s+=String.fromCharCode(pe),a++,p=16;case 45:if(s+=String.fromCharCode(pe),a++,a===n||!Js(e.charCodeAt(a)))return p=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=G(),p=11;default:for(;a<n&&oe(pe);)a++,pe=e.charCodeAt(a);if(c!==a){switch(s=e.substring(c,a),s){case"true":return p=8;case"false":return p=9;case"null":return p=7}return p=16}return s+=String.fromCharCode(pe),a++,p=16}}function oe(pe){if(Kd(pe)||fu(pe))return!1;switch(pe){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function ae(){var pe;do pe=q();while(pe>=12&&pe<=15);return pe}return{setPosition:N,getPosition:function(){return a},scan:r?ae:q,getToken:function(){return p},getTokenValue:function(){return s},getTokenOffset:function(){return c},getTokenLength:function(){return a-c},getTokenStartLine:function(){return v},getTokenStartCharacter:function(){return c-b},getTokenError:function(){return I}}}function Kd(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function fu(e){return e===10||e===13||e===8232||e===8233}function Js(e){return e>=48&&e<=57}function Xy(e,r,n){var a,s,c,p,m;if(r){for(p=r.offset,m=p+r.length,c=p;c>0&&!Mh(e,c-1);)c--;for(var v=m;v<e.length&&!Mh(e,v);)v++;s=e.substring(c,v),a=Qy(s,n)}else s=e,a=0,c=0,p=0,m=e.length;var y=Zy(n,e),b=!1,I=0,R;n.insertSpaces?R=Yd(" ",n.tabSize||4):R=" ";var N=fc(s,!1),G=!1;function ee(){return y+Yd(R,a+I)}function q(){var Re=N.scan();for(b=!1;Re===15||Re===14;)b=b||Re===14,Re=N.scan();return G=Re===16||N.getTokenError()!==0,Re}var oe=[];function ae(Re,Ue,ze){!G&&Ue<m&&ze>p&&e.substring(Ue,ze)!==Re&&oe.push({offset:Ue,length:ze-Ue,content:Re})}var pe=q();if(pe!==17){var ve=N.getTokenOffset()+c,me=Yd(R,a);ae(me,c,ve)}for(;pe!==17;){for(var Te=N.getTokenOffset()+N.getTokenLength()+c,Ae=q(),Se="";!b&&(Ae===12||Ae===13);){var Ce=N.getTokenOffset()+c;ae(" ",Te,Ce),Te=N.getTokenOffset()+N.getTokenLength()+c,Se=Ae===12?ee():"",Ae=q()}if(Ae===2)pe!==1&&(I--,Se=ee());else if(Ae===4)pe!==3&&(I--,Se=ee());else{switch(pe){case 3:case 1:I++,Se=ee();break;case 5:case 12:Se=ee();break;case 13:b?Se=ee():Se=" ";break;case 6:Se=" ";break;case 10:if(Ae===6){Se="";break}case 7:case 8:case 9:case 11:case 2:case 4:Ae===12||Ae===13?Se=" ":Ae!==5&&Ae!==17&&(G=!0);break;case 16:G=!0;break}b&&(Ae===12||Ae===13)&&(Se=ee())}var Fe=N.getTokenOffset()+c;ae(Se,Te,Fe),pe=Ae}return oe}function Yd(e,r){for(var n="",a=0;a<r;a++)n+=e;return n}function Qy(e,r){for(var n=0,a=0,s=r.tabSize||4;n<e.length;){var c=e.charAt(n);if(c===" ")a++;else if(c===" ")a+=s;else break;n++}return Math.floor(a/s)}function Zy(e,r){for(var n=0;n<r.length;n++){var a=r.charAt(n);if(a==="\r")return n+1<r.length&&r.charAt(n+1)===`
252
+ `?`\r
253
+ `:"\r";if(a===`
254
+ `)return`
255
+ `}return e&&e.eol||`
256
+ `}function Mh(e,r){return`\r
257
+ `.indexOf(e.charAt(r))!==-1}var cu;(function(e){e.DEFAULT={allowTrailingComma:!1}})(cu||(cu={}));function qy(e,r){var n=[],a=new Object,s=void 0,c={value:{},offset:0,length:0,type:"object",parent:void 0},p=!1;function m(v,y,b,I){c.value=v,c.offset=y,c.length=b,c.type=I,c.colonOffset=void 0,s=c}try{cc(e,{onObjectBegin:function(v,y){if(r<=v)throw a;s=void 0,p=r>v,n.push("")},onObjectProperty:function(v,y,b){if(r<y||(m(v,y,b,"property"),n[n.length-1]=v,r<=y+b))throw a},onObjectEnd:function(v,y){if(r<=v)throw a;s=void 0,n.pop()},onArrayBegin:function(v,y){if(r<=v)throw a;s=void 0,n.push(0)},onArrayEnd:function(v,y){if(r<=v)throw a;s=void 0,n.pop()},onLiteralValue:function(v,y,b){if(r<y||(m(v,y,b,Dh(v)),r<=y+b))throw a},onSeparator:function(v,y,b){if(r<=y)throw a;if(v===":"&&s&&s.type==="property")s.colonOffset=y,p=!1,s=void 0;else if(v===","){var I=n[n.length-1];typeof I=="number"?n[n.length-1]=I+1:(p=!0,n[n.length-1]=""),s=void 0}}})}catch(v){if(v!==a)throw v}return{path:n,previousNode:s,isAtPropertyKey:p,matches:function(v){for(var y=0,b=0;y<v.length&&b<n.length;b++)if(v[y]===n[b]||v[y]==="*")y++;else if(v[y]!=="**")return!1;return y===v.length}}}function _y(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=cu.DEFAULT);var a=null,s=[],c=[];function p(v){Array.isArray(s)?s.push(v):a!==null&&(s[a]=v)}var m={onObjectBegin:function(){var v={};p(v),c.push(s),s=v,a=null},onObjectProperty:function(v){a=v},onObjectEnd:function(){s=c.pop()},onArrayBegin:function(){var v=[];p(v),c.push(s),s=v,a=null},onArrayEnd:function(){s=c.pop()},onLiteralValue:p,onError:function(v,y,b){r.push({error:v,offset:y,length:b})}};return cc(e,m,n),s[0]}function e0(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=cu.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(v){a.type==="property"&&(a.length=v-a.offset,a=a.parent)}function c(v){return a.children.push(v),v}var p={onObjectBegin:function(v){a=c({type:"object",offset:v,length:-1,parent:a,children:[]})},onObjectProperty:function(v,y,b){a=c({type:"property",offset:y,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:v,offset:y,length:b,parent:a})},onObjectEnd:function(v,y){s(v+y),a.length=v+y-a.offset,a=a.parent,s(v+y)},onArrayBegin:function(v,y){a=c({type:"array",offset:v,length:-1,parent:a,children:[]})},onArrayEnd:function(v,y){a.length=v+y-a.offset,a=a.parent,s(v+y)},onLiteralValue:function(v,y,b){c({type:Dh(v),offset:y,length:b,parent:a,value:v}),s(y+b)},onSeparator:function(v,y,b){a.type==="property"&&(v===":"?a.colonOffset=y:v===","&&s(y))},onError:function(v,y,b){r.push({error:v,offset:y,length:b})}};cc(e,p,n);var m=a.children[0];return m&&delete m.parent,m}function t0(e,r){if(!!e){for(var n=e,a=0,s=r;a<s.length;a++){var c=s[a];if(typeof c=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var p=!1,m=0,v=n.children;m<v.length;m++){var y=v[m];if(Array.isArray(y.children)&&y.children[0].value===c){n=y.children[1],p=!0;break}}if(!p)return}else{var b=c;if(n.type!=="array"||b<0||!Array.isArray(n.children)||b>=n.children.length)return;n=n.children[b]}}return n}}function Lh(e){if(!e.parent||!e.parent.children)return[];var r=Lh(e.parent);if(e.parent.type==="property"){var n=e.parent.children[0].value;r.push(n)}else if(e.parent.type==="array"){var a=e.parent.children.indexOf(e);a!==-1&&r.push(a)}return r}function Jd(e){switch(e.type){case"array":return e.children.map(Jd);case"object":for(var r=Object.create(null),n=0,a=e.children;n<a.length;n++){var s=a[n],c=s.children[1];c&&(r[s.children[0].value]=Jd(c))}return r;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function r0(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}function Nh(e,r,n){if(n===void 0&&(n=!1),r0(e,r,n)){var a=e.children;if(Array.isArray(a))for(var s=0;s<a.length&&a[s].offset<=r;s++){var c=Nh(a[s],r,n);if(c)return c}return e}}function cc(e,r,n){n===void 0&&(n=cu.DEFAULT);var a=fc(e,!1);function s(Ce){return Ce?function(){return Ce(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function c(Ce){return Ce?function(Fe){return Ce(Fe,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var p=s(r.onObjectBegin),m=c(r.onObjectProperty),v=s(r.onObjectEnd),y=s(r.onArrayBegin),b=s(r.onArrayEnd),I=c(r.onLiteralValue),R=c(r.onSeparator),N=s(r.onComment),G=c(r.onError),ee=n&&n.disallowComments,q=n&&n.allowTrailingComma;function oe(){for(;;){var Ce=a.scan();switch(a.getTokenError()){case 4:ae(14);break;case 5:ae(15);break;case 3:ae(13);break;case 1:ee||ae(11);break;case 2:ae(12);break;case 6:ae(16);break}switch(Ce){case 12:case 13:ee?ae(10):N();break;case 16:ae(1);break;case 15:case 14:break;default:return Ce}}}function ae(Ce,Fe,Re){if(Fe===void 0&&(Fe=[]),Re===void 0&&(Re=[]),G(Ce),Fe.length+Re.length>0)for(var Ue=a.getToken();Ue!==17;){if(Fe.indexOf(Ue)!==-1){oe();break}else if(Re.indexOf(Ue)!==-1)break;Ue=oe()}}function pe(Ce){var Fe=a.getTokenValue();return Ce?I(Fe):m(Fe),oe(),!0}function ve(){switch(a.getToken()){case 11:var Ce=a.getTokenValue(),Fe=Number(Ce);isNaN(Fe)&&(ae(2),Fe=0),I(Fe);break;case 7:I(null);break;case 8:I(!0);break;case 9:I(!1);break;default:return!1}return oe(),!0}function me(){return a.getToken()!==10?(ae(3,[],[2,5]),!1):(pe(!1),a.getToken()===6?(R(":"),oe(),Se()||ae(4,[],[2,5])):ae(5,[],[2,5]),!0)}function Te(){p(),oe();for(var Ce=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(Ce||ae(4,[],[]),R(","),oe(),a.getToken()===2&&q)break}else Ce&&ae(6,[],[]);me()||ae(4,[],[2,5]),Ce=!0}return v(),a.getToken()!==2?ae(7,[2],[]):oe(),!0}function Ae(){y(),oe();for(var Ce=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(Ce||ae(4,[],[]),R(","),oe(),a.getToken()===4&&q)break}else Ce&&ae(6,[],[]);Se()||ae(4,[],[4,5]),Ce=!0}return b(),a.getToken()!==4?ae(8,[4],[]):oe(),!0}function Se(){switch(a.getToken()){case 3:return Ae();case 1:return Te();case 10:return pe(!0);default:return ve()}}return oe(),a.getToken()===17?n.allowEmptyContent?!0:(ae(4,[],[]),!1):Se()?(a.getToken()!==17&&ae(9,[],[]),!0):(ae(4,[],[]),!1)}function n0(e,r){var n=fc(e),a=[],s,c=0,p;do switch(p=n.getPosition(),s=n.scan(),s){case 12:case 13:case 17:c!==p&&a.push(e.substring(c,p)),r!==void 0&&a.push(n.getTokenValue().replace(/[^\r\n]/g,r)),c=n.getPosition();break}while(s!==17);return a.join("")}function Dh(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function v1(e,r,n){return i0(e,r,void 0,n)}function i0(e,r,n,a){for(var s,c=r.slice(),p=[],m=parseTree(e,p),v=void 0,y=void 0;c.length>0&&(y=c.pop(),v=findNodeAtLocation(m,c),v===void 0&&n!==void 0);)typeof y=="string"?n=(s={},s[y]=n,s):n=[n];if(v)if(v.type==="object"&&typeof y=="string"&&Array.isArray(v.children)){var b=findNodeAtLocation(v,[y]);if(b!==void 0)if(n===void 0){if(!b.parent)throw new Error("Malformed AST");var I=v.children.indexOf(b.parent),R=void 0,N=b.parent.offset+b.parent.length;if(I>0){var G=v.children[I-1];R=G.offset+G.length}else if(R=v.offset+1,v.children.length>1){var ee=v.children[1];N=ee.offset}return Go(e,{offset:R,length:N-R,content:""},a)}else return Go(e,{offset:b.offset,length:b.length,content:JSON.stringify(n)},a);else{if(n===void 0)return[];var q=JSON.stringify(y)+": "+JSON.stringify(n),oe=a.getInsertionIndex?a.getInsertionIndex(v.children.map(function(Ce){return Ce.children[0].value})):v.children.length,ae=void 0;if(oe>0){var G=v.children[oe-1];ae={offset:G.offset+G.length,length:0,content:","+q}}else v.children.length===0?ae={offset:v.offset+1,length:0,content:q}:ae={offset:v.offset+1,length:0,content:q+","};return Go(e,ae,a)}}else if(v.type==="array"&&typeof y=="number"&&Array.isArray(v.children)){var pe=y;if(pe===-1){var q=""+JSON.stringify(n),ae=void 0;if(v.children.length===0)ae={offset:v.offset+1,length:0,content:q};else{var G=v.children[v.children.length-1];ae={offset:G.offset+G.length,length:0,content:","+q}}return Go(e,ae,a)}else if(n===void 0&&v.children.length>=0){var ve=y,me=v.children[ve],ae=void 0;if(v.children.length===1)ae={offset:v.offset+1,length:v.length-2,content:""};else if(v.children.length-1===ve){var G=v.children[ve-1],Te=G.offset+G.length,Ae=v.offset+v.length;ae={offset:Te,length:Ae-2-Te,content:""}}else ae={offset:me.offset,length:v.children[ve+1].offset-me.offset,content:""};return Go(e,ae,a)}else if(n!==void 0){var ae=void 0,q=""+JSON.stringify(n);if(!a.isArrayInsertion&&v.children.length>y){var Se=v.children[y];ae={offset:Se.offset,length:Se.length,content:q}}else if(v.children.length===0||y===0)ae={offset:v.offset+1,length:0,content:v.children.length===0?q:q+","};else{var oe=y>v.children.length?v.children.length:y,G=v.children[oe-1];ae={offset:G.offset+G.length,length:0,content:","+q}}return Go(e,ae,a)}else throw new Error("Can not "+(n===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+pe+" as length is not sufficient")}else throw new Error("Can not add "+(typeof y!="number"?"index":"property")+" to parent of type "+v.type);else{if(n===void 0)throw new Error("Can not delete in empty document");return Go(e,{offset:m?m.offset:0,length:m?m.length:0,content:JSON.stringify(n)},a)}}function Go(e,r,n){if(!n.formattingOptions)return[r];var a=Bh(e,r),s=r.offset,c=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(a,s-1);)s--;for(;c<a.length&&!isEOL(a,c);)c++}for(var p=format(a,{offset:s,length:c-s},n.formattingOptions),m=p.length-1;m>=0;m--){var v=p[m];a=Bh(a,v),s=Math.min(s,v.offset),c=Math.max(c,v.offset+v.length),c+=v.content.length-v.length}var y=e.length-(a.length-c)-s;return[{offset:s,length:y,content:a.substring(s,c)}]}function Bh(e,r){return e.substring(0,r.offset)+r.content+e.substring(r.offset+r.length)}function g1(e,r){return`\r
258
+ `.indexOf(e.charAt(r))!==-1}var Xs=fc,m1=qy,a0=_y,y1=e0,b1=t0,o0=Nh,s0=Lh,l0=Jd,x1=cc,S1=n0;function w1(e){switch(e){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 u0(e,r,n){return Xy(e,r,n)}function A1(e,r,n,a){return edit.setProperty(e,r,n,a)}function C1(e,r){for(var n=r.length-1;n>=0;n--)e=edit.applyEdit(e,r[n]);return e}function du(e,r){if(e===r)return!0;if(e==null||r===null||r===void 0||typeof e!=typeof r||typeof e!="object"||Array.isArray(e)!==Array.isArray(r))return!1;var n,a;if(Array.isArray(e)){if(e.length!==r.length)return!1;for(n=0;n<e.length;n++)if(!du(e[n],r[n]))return!1}else{var s=[];for(a in e)s.push(a);s.sort();var c=[];for(a in r)c.push(a);if(c.sort(),!du(s,c))return!1;for(n=0;n<s.length;n++)if(!du(e[s[n]],r[s[n]]))return!1}return!0}function qn(e){return typeof e=="number"}function Ca(e){return typeof e!="undefined"}function ea(e){return typeof e=="boolean"}function f0(e){return typeof e=="string"}var jh;(function(e){function r(n){return typeof n=="string"}e.is=r})(jh||(jh={}));var Xd;(function(e){function r(n){return typeof n=="string"}e.is=r})(Xd||(Xd={}));var Vh;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(Vh||(Vh={}));var dc;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(dc||(dc={}));var ci;(function(e){function r(a,s){return a===Number.MAX_VALUE&&(a=dc.MAX_VALUE),s===Number.MAX_VALUE&&(s=dc.MAX_VALUE),{line:a,character:s}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.uinteger(s.line)&&Pe.uinteger(s.character)}e.is=n})(ci||(ci={}));var sr;(function(e){function r(a,s,c,p){if(Pe.uinteger(a)&&Pe.uinteger(s)&&Pe.uinteger(c)&&Pe.uinteger(p))return{start:ci.create(a,s),end:ci.create(c,p)};if(ci.is(a)&&ci.is(s))return{start:a,end:s};throw new Error("Range#create called with invalid arguments[".concat(a,", ").concat(s,", ").concat(c,", ").concat(p,"]"))}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&ci.is(s.start)&&ci.is(s.end)}e.is=n})(sr||(sr={}));var Qs;(function(e){function r(a,s){return{uri:a,range:s}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&sr.is(s.range)&&(Pe.string(s.uri)||Pe.undefined(s.uri))}e.is=n})(Qs||(Qs={}));var Uh;(function(e){function r(a,s,c,p){return{targetUri:a,targetRange:s,targetSelectionRange:c,originSelectionRange:p}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&sr.is(s.targetRange)&&Pe.string(s.targetUri)&&sr.is(s.targetSelectionRange)&&(sr.is(s.originSelectionRange)||Pe.undefined(s.originSelectionRange))}e.is=n})(Uh||(Uh={}));var Qd;(function(e){function r(a,s,c,p){return{red:a,green:s,blue:c,alpha:p}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.numberRange(s.red,0,1)&&Pe.numberRange(s.green,0,1)&&Pe.numberRange(s.blue,0,1)&&Pe.numberRange(s.alpha,0,1)}e.is=n})(Qd||(Qd={}));var Wh;(function(e){function r(a,s){return{range:a,color:s}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&sr.is(s.range)&&Qd.is(s.color)}e.is=n})(Wh||(Wh={}));var Hh;(function(e){function r(a,s,c){return{label:a,textEdit:s,additionalTextEdits:c}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.string(s.label)&&(Pe.undefined(s.textEdit)||di.is(s))&&(Pe.undefined(s.additionalTextEdits)||Pe.typedArray(s.additionalTextEdits,di.is))}e.is=n})(Hh||(Hh={}));var pu;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(pu||(pu={}));var zh;(function(e){function r(a,s,c,p,m,v){var y={startLine:a,endLine:s};return Pe.defined(c)&&(y.startCharacter=c),Pe.defined(p)&&(y.endCharacter=p),Pe.defined(m)&&(y.kind=m),Pe.defined(v)&&(y.collapsedText=v),y}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.uinteger(s.startLine)&&Pe.uinteger(s.startLine)&&(Pe.undefined(s.startCharacter)||Pe.uinteger(s.startCharacter))&&(Pe.undefined(s.endCharacter)||Pe.uinteger(s.endCharacter))&&(Pe.undefined(s.kind)||Pe.string(s.kind))}e.is=n})(zh||(zh={}));var Zd;(function(e){function r(a,s){return{location:a,message:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Qs.is(s.location)&&Pe.string(s.message)}e.is=n})(Zd||(Zd={}));var Ht;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Ht||(Ht={}));var Gh;(function(e){e.Unnecessary=1,e.Deprecated=2})(Gh||(Gh={}));var $h;(function(e){function r(n){var a=n;return Pe.objectLiteral(a)&&Pe.string(a.href)}e.is=r})($h||($h={}));var Ea;(function(e){function r(a,s,c,p,m,v){var y={range:a,message:s};return Pe.defined(c)&&(y.severity=c),Pe.defined(p)&&(y.code=p),Pe.defined(m)&&(y.source=m),Pe.defined(v)&&(y.relatedInformation=v),y}e.create=r;function n(a){var s,c=a;return Pe.defined(c)&&sr.is(c.range)&&Pe.string(c.message)&&(Pe.number(c.severity)||Pe.undefined(c.severity))&&(Pe.integer(c.code)||Pe.string(c.code)||Pe.undefined(c.code))&&(Pe.undefined(c.codeDescription)||Pe.string((s=c.codeDescription)===null||s===void 0?void 0:s.href))&&(Pe.string(c.source)||Pe.undefined(c.source))&&(Pe.undefined(c.relatedInformation)||Pe.typedArray(c.relatedInformation,Zd.is))}e.is=n})(Ea||(Ea={}));var Zs;(function(e){function r(a,s){for(var c=[],p=2;p<arguments.length;p++)c[p-2]=arguments[p];var m={title:a,command:s};return Pe.defined(c)&&c.length>0&&(m.arguments=c),m}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.title)&&Pe.string(s.command)}e.is=n})(Zs||(Zs={}));var di;(function(e){function r(c,p){return{range:c,newText:p}}e.replace=r;function n(c,p){return{range:{start:c,end:c},newText:p}}e.insert=n;function a(c){return{range:c,newText:""}}e.del=a;function s(c){var p=c;return Pe.objectLiteral(p)&&Pe.string(p.newText)&&sr.is(p.range)}e.is=s})(di||(di={}));var qs;(function(e){function r(a,s,c){var p={label:a};return s!==void 0&&(p.needsConfirmation=s),c!==void 0&&(p.description=c),p}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.string(s.label)&&(Pe.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(Pe.string(s.description)||s.description===void 0)}e.is=n})(qs||(qs={}));var Cn;(function(e){function r(n){var a=n;return Pe.string(a)}e.is=r})(Cn||(Cn={}));var ao;(function(e){function r(c,p,m){return{range:c,newText:p,annotationId:m}}e.replace=r;function n(c,p,m){return{range:{start:c,end:c},newText:p,annotationId:m}}e.insert=n;function a(c,p){return{range:c,newText:"",annotationId:p}}e.del=a;function s(c){var p=c;return di.is(p)&&(qs.is(p.annotationId)||Cn.is(p.annotationId))}e.is=s})(ao||(ao={}));var pc;(function(e){function r(a,s){return{textDocument:a,edits:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&vc.is(s.textDocument)&&Array.isArray(s.edits)}e.is=n})(pc||(pc={}));var hu;(function(e){function r(a,s,c){var p={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(p.options=s),c!==void 0&&(p.annotationId=c),p}e.create=r;function n(a){var s=a;return s&&s.kind==="create"&&Pe.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||Pe.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Pe.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Cn.is(s.annotationId))}e.is=n})(hu||(hu={}));var vu;(function(e){function r(a,s,c,p){var m={kind:"rename",oldUri:a,newUri:s};return c!==void 0&&(c.overwrite!==void 0||c.ignoreIfExists!==void 0)&&(m.options=c),p!==void 0&&(m.annotationId=p),m}e.create=r;function n(a){var s=a;return s&&s.kind==="rename"&&Pe.string(s.oldUri)&&Pe.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||Pe.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Pe.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Cn.is(s.annotationId))}e.is=n})(vu||(vu={}));var gu;(function(e){function r(a,s,c){var p={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(p.options=s),c!==void 0&&(p.annotationId=c),p}e.create=r;function n(a){var s=a;return s&&s.kind==="delete"&&Pe.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||Pe.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||Pe.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Cn.is(s.annotationId))}e.is=n})(gu||(gu={}));var qd;(function(e){function r(n){var a=n;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(s){return Pe.string(s.kind)?hu.is(s)||vu.is(s)||gu.is(s):pc.is(s)}))}e.is=r})(qd||(qd={}));var hc=function(){function e(r,n){this.edits=r,this.changeAnnotations=n}return e.prototype.insert=function(r,n,a){var s,c;if(a===void 0?s=di.insert(r,n):Cn.is(a)?(c=a,s=ao.insert(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(a),s=ao.insert(r,n,c)),this.edits.push(s),c!==void 0)return c},e.prototype.replace=function(r,n,a){var s,c;if(a===void 0?s=di.replace(r,n):Cn.is(a)?(c=a,s=ao.replace(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(a),s=ao.replace(r,n,c)),this.edits.push(s),c!==void 0)return c},e.prototype.delete=function(r,n){var a,s;if(n===void 0?a=di.del(r):Cn.is(n)?(s=n,a=ao.del(r,n)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(n),a=ao.del(r,s)),this.edits.push(a),s!==void 0)return s},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Kh=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(r,n){var a;if(Cn.is(r)?a=r:(a=this.nextId(),n=r),this._annotations[a]!==void 0)throw new Error("Id ".concat(a," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(a));return this._annotations[a]=n,this._size++,a},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),E1=function(){function e(r){var n=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new Kh(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(pc.is(a)){var s=new hc(a.edits,n._changeAnnotations);n._textEditChanges[a.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(a){var s=new hc(r.changes[a]);n._textEditChanges[a]=s})):this._workspaceEdit={}}return Object.defineProperty(e.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}),e.prototype.getTextEditChange=function(r){if(vc.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},a=this._textEditChanges[n.uri];if(!a){var s=[],c={textDocument:n,edits:s};this._workspaceEdit.documentChanges.push(c),a=new hc(s,this._changeAnnotations),this._textEditChanges[n.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var s=[];this._workspaceEdit.changes[r]=s,a=new hc(s),this._textEditChanges[r]=a}return a}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Kh,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;qs.is(n)||Cn.is(n)?s=n:a=n;var c,p;if(s===void 0?c=hu.create(r,a):(p=Cn.is(s)?s:this._changeAnnotations.manage(s),c=hu.create(r,a,p)),this._workspaceEdit.documentChanges.push(c),p!==void 0)return p},e.prototype.renameFile=function(r,n,a,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var c;qs.is(a)||Cn.is(a)?c=a:s=a;var p,m;if(c===void 0?p=vu.create(r,n,s):(m=Cn.is(c)?c:this._changeAnnotations.manage(c),p=vu.create(r,n,s,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},e.prototype.deleteFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;qs.is(n)||Cn.is(n)?s=n:a=n;var c,p;if(s===void 0?c=gu.create(r,a):(p=Cn.is(s)?s:this._changeAnnotations.manage(s),c=gu.create(r,a,p)),this._workspaceEdit.documentChanges.push(c),p!==void 0)return p},e}(),Yh;(function(e){function r(a){return{uri:a}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.uri)}e.is=n})(Yh||(Yh={}));var Jh;(function(e){function r(a,s){return{uri:a,version:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.uri)&&Pe.integer(s.version)}e.is=n})(Jh||(Jh={}));var vc;(function(e){function r(a,s){return{uri:a,version:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.uri)&&(s.version===null||Pe.integer(s.version))}e.is=n})(vc||(vc={}));var Xh;(function(e){function r(a,s,c,p){return{uri:a,languageId:s,version:c,text:p}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.uri)&&Pe.string(s.languageId)&&Pe.integer(s.version)&&Pe.string(s.text)}e.is=n})(Xh||(Xh={}));var $o;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(n){var a=n;return a===e.PlainText||a===e.Markdown}e.is=r})($o||($o={}));var mu;(function(e){function r(n){var a=n;return Pe.objectLiteral(n)&&$o.is(a.kind)&&Pe.string(a.value)}e.is=r})(mu||(mu={}));var _n;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(_n||(_n={}));var Zr;(function(e){e.PlainText=1,e.Snippet=2})(Zr||(Zr={}));var Qh;(function(e){e.Deprecated=1})(Qh||(Qh={}));var Zh;(function(e){function r(a,s,c){return{newText:a,insert:s,replace:c}}e.create=r;function n(a){var s=a;return s&&Pe.string(s.newText)&&sr.is(s.insert)&&sr.is(s.replace)}e.is=n})(Zh||(Zh={}));var qh;(function(e){e.asIs=1,e.adjustIndentation=2})(qh||(qh={}));var _h;(function(e){function r(n){var a=n;return a&&(Pe.string(a.detail)||a.detail===void 0)&&(Pe.string(a.description)||a.description===void 0)}e.is=r})(_h||(_h={}));var _d;(function(e){function r(n){return{label:n}}e.create=r})(_d||(_d={}));var ev;(function(e){function r(n,a){return{items:n||[],isIncomplete:!!a}}e.create=r})(ev||(ev={}));var gc;(function(e){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function n(a){var s=a;return Pe.string(s)||Pe.objectLiteral(s)&&Pe.string(s.language)&&Pe.string(s.value)}e.is=n})(gc||(gc={}));var tv;(function(e){function r(n){var a=n;return!!a&&Pe.objectLiteral(a)&&(mu.is(a.contents)||gc.is(a.contents)||Pe.typedArray(a.contents,gc.is))&&(n.range===void 0||sr.is(n.range))}e.is=r})(tv||(tv={}));var rv;(function(e){function r(n,a){return a?{label:n,documentation:a}:{label:n}}e.create=r})(rv||(rv={}));var nv;(function(e){function r(n,a){for(var s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var p={label:n};return Pe.defined(a)&&(p.documentation=a),Pe.defined(s)?p.parameters=s:p.parameters=[],p}e.create=r})(nv||(nv={}));var iv;(function(e){e.Text=1,e.Read=2,e.Write=3})(iv||(iv={}));var av;(function(e){function r(n,a){var s={range:n};return Pe.number(a)&&(s.kind=a),s}e.create=r})(av||(av={}));var ta;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(ta||(ta={}));var ov;(function(e){e.Deprecated=1})(ov||(ov={}));var sv;(function(e){function r(n,a,s,c,p){var m={name:n,kind:a,location:{uri:c,range:s}};return p&&(m.containerName=p),m}e.create=r})(sv||(sv={}));var lv;(function(e){function r(n,a,s,c){return c!==void 0?{name:n,kind:a,location:{uri:s,range:c}}:{name:n,kind:a,location:{uri:s}}}e.create=r})(lv||(lv={}));var uv;(function(e){function r(a,s,c,p,m,v){var y={name:a,detail:s,kind:c,range:p,selectionRange:m};return v!==void 0&&(y.children=v),y}e.create=r;function n(a){var s=a;return s&&Pe.string(s.name)&&Pe.number(s.kind)&&sr.is(s.range)&&sr.is(s.selectionRange)&&(s.detail===void 0||Pe.string(s.detail))&&(s.deprecated===void 0||Pe.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}e.is=n})(uv||(uv={}));var fv;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(fv||(fv={}));var mc;(function(e){e.Invoked=1,e.Automatic=2})(mc||(mc={}));var cv;(function(e){function r(a,s,c){var p={diagnostics:a};return s!=null&&(p.only=s),c!=null&&(p.triggerKind=c),p}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.typedArray(s.diagnostics,Ea.is)&&(s.only===void 0||Pe.typedArray(s.only,Pe.string))&&(s.triggerKind===void 0||s.triggerKind===mc.Invoked||s.triggerKind===mc.Automatic)}e.is=n})(cv||(cv={}));var dv;(function(e){function r(a,s,c){var p={title:a},m=!0;return typeof s=="string"?(m=!1,p.kind=s):Zs.is(s)?p.command=s:p.edit=s,m&&c!==void 0&&(p.kind=c),p}e.create=r;function n(a){var s=a;return s&&Pe.string(s.title)&&(s.diagnostics===void 0||Pe.typedArray(s.diagnostics,Ea.is))&&(s.kind===void 0||Pe.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Zs.is(s.command))&&(s.isPreferred===void 0||Pe.boolean(s.isPreferred))&&(s.edit===void 0||qd.is(s.edit))}e.is=n})(dv||(dv={}));var pv;(function(e){function r(a,s){var c={range:a};return Pe.defined(s)&&(c.data=s),c}e.create=r;function n(a){var s=a;return Pe.defined(s)&&sr.is(s.range)&&(Pe.undefined(s.command)||Zs.is(s.command))}e.is=n})(pv||(pv={}));var hv;(function(e){function r(a,s){return{tabSize:a,insertSpaces:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.uinteger(s.tabSize)&&Pe.boolean(s.insertSpaces)}e.is=n})(hv||(hv={}));var vv;(function(e){function r(a,s,c){return{range:a,target:s,data:c}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&sr.is(s.range)&&(Pe.undefined(s.target)||Pe.string(s.target))}e.is=n})(vv||(vv={}));var yc;(function(e){function r(a,s){return{range:a,parent:s}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&sr.is(s.range)&&(s.parent===void 0||e.is(s.parent))}e.is=n})(yc||(yc={}));var gv;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(gv||(gv={}));var mv;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(mv||(mv={}));var yv;(function(e){function r(n){var a=n;return Pe.objectLiteral(a)&&(a.resultId===void 0||typeof a.resultId=="string")&&Array.isArray(a.data)&&(a.data.length===0||typeof a.data[0]=="number")}e.is=r})(yv||(yv={}));var bv;(function(e){function r(a,s){return{range:a,text:s}}e.create=r;function n(a){var s=a;return s!=null&&sr.is(s.range)&&Pe.string(s.text)}e.is=n})(bv||(bv={}));var xv;(function(e){function r(a,s,c){return{range:a,variableName:s,caseSensitiveLookup:c}}e.create=r;function n(a){var s=a;return s!=null&&sr.is(s.range)&&Pe.boolean(s.caseSensitiveLookup)&&(Pe.string(s.variableName)||s.variableName===void 0)}e.is=n})(xv||(xv={}));var Sv;(function(e){function r(a,s){return{range:a,expression:s}}e.create=r;function n(a){var s=a;return s!=null&&sr.is(s.range)&&(Pe.string(s.expression)||s.expression===void 0)}e.is=n})(Sv||(Sv={}));var wv;(function(e){function r(a,s){return{frameId:a,stoppedLocation:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&sr.is(a.stoppedLocation)}e.is=n})(wv||(wv={}));var ep;(function(e){e.Type=1,e.Parameter=2;function r(n){return n===1||n===2}e.is=r})(ep||(ep={}));var tp;(function(e){function r(a){return{value:a}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&(s.tooltip===void 0||Pe.string(s.tooltip)||mu.is(s.tooltip))&&(s.location===void 0||Qs.is(s.location))&&(s.command===void 0||Zs.is(s.command))}e.is=n})(tp||(tp={}));var Av;(function(e){function r(a,s,c){var p={position:a,label:s};return c!==void 0&&(p.kind=c),p}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&ci.is(s.position)&&(Pe.string(s.label)||Pe.typedArray(s.label,tp.is))&&(s.kind===void 0||ep.is(s.kind))&&s.textEdits===void 0||Pe.typedArray(s.textEdits,di.is)&&(s.tooltip===void 0||Pe.string(s.tooltip)||mu.is(s.tooltip))&&(s.paddingLeft===void 0||Pe.boolean(s.paddingLeft))&&(s.paddingRight===void 0||Pe.boolean(s.paddingRight))}e.is=n})(Av||(Av={}));var Cv;(function(e){function r(n){var a=n;return Pe.objectLiteral(a)&&Xd.is(a.uri)&&Pe.string(a.name)}e.is=r})(Cv||(Cv={}));var O1=null,Ev;(function(e){function r(c,p,m,v){return new c0(c,p,m,v)}e.create=r;function n(c){var p=c;return!!(Pe.defined(p)&&Pe.string(p.uri)&&(Pe.undefined(p.languageId)||Pe.string(p.languageId))&&Pe.uinteger(p.lineCount)&&Pe.func(p.getText)&&Pe.func(p.positionAt)&&Pe.func(p.offsetAt))}e.is=n;function a(c,p){for(var m=c.getText(),v=s(p,function(G,ee){var q=G.range.start.line-ee.range.start.line;return q===0?G.range.start.character-ee.range.start.character:q}),y=m.length,b=v.length-1;b>=0;b--){var I=v[b],R=c.offsetAt(I.range.start),N=c.offsetAt(I.range.end);if(N<=y)m=m.substring(0,R)+I.newText+m.substring(N,m.length);else throw new Error("Overlapping edit");y=R}return m}e.applyEdits=a;function s(c,p){if(c.length<=1)return c;var m=c.length/2|0,v=c.slice(0,m),y=c.slice(m);s(v,p),s(y,p);for(var b=0,I=0,R=0;b<v.length&&I<y.length;){var N=p(v[b],y[I]);N<=0?c[R++]=v[b++]:c[R++]=y[I++]}for(;b<v.length;)c[R++]=v[b++];for(;I<y.length;)c[R++]=y[I++];return c}})(Ev||(Ev={}));var c0=function(){function e(r,n,a,s){this._uri=r,this._languageId=n,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content},e.prototype.update=function(r,n){this._content=r.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],n=this._content,a=!0,s=0;s<n.length;s++){a&&(r.push(s),a=!1);var c=n.charAt(s);a=c==="\r"||c===`
259
+ `,c==="\r"&&s+1<n.length&&n.charAt(s+1)===`
260
+ `&&s++}a&&n.length>0&&r.push(n.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),a=0,s=n.length;if(s===0)return ci.create(0,r);for(;a<s;){var c=Math.floor((a+s)/2);n[c]>r?s=c:a=c+1}var p=a-1;return ci.create(p,r-n[p])},e.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var a=n[r.line],s=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),Pe;(function(e){var r=Object.prototype.toString;function n(N){return typeof N!="undefined"}e.defined=n;function a(N){return typeof N=="undefined"}e.undefined=a;function s(N){return N===!0||N===!1}e.boolean=s;function c(N){return r.call(N)==="[object String]"}e.string=c;function p(N){return r.call(N)==="[object Number]"}e.number=p;function m(N,G,ee){return r.call(N)==="[object Number]"&&G<=N&&N<=ee}e.numberRange=m;function v(N){return r.call(N)==="[object Number]"&&-2147483648<=N&&N<=2147483647}e.integer=v;function y(N){return r.call(N)==="[object Number]"&&0<=N&&N<=2147483647}e.uinteger=y;function b(N){return r.call(N)==="[object Function]"}e.func=b;function I(N){return N!==null&&typeof N=="object"}e.objectLiteral=I;function R(N,G){return Array.isArray(N)&&N.every(G)}e.typedArray=R})(Pe||(Pe={}));var d0=function(e,r,n){if(n||arguments.length===2)for(var a=0,s=r.length,c;a<s;a++)(c||!(a in r))&&(c||(c=Array.prototype.slice.call(r,0,a)),c[a]=r[a]);return e.concat(c||Array.prototype.slice.call(r))},Ov=function(){function e(r,n,a,s){this._uri=r,this._languageId=n,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content},e.prototype.update=function(r,n){for(var a=0,s=r;a<s.length;a++){var c=s[a];if(e.isIncremental(c)){var p=Pv(c.range),m=this.offsetAt(p.start),v=this.offsetAt(p.end);this._content=this._content.substring(0,m)+c.text+this._content.substring(v,this._content.length);var y=Math.max(p.start.line,0),b=Math.max(p.end.line,0),I=this._lineOffsets,R=Tv(c.text,!1,m);if(b-y===R.length)for(var N=0,G=R.length;N<G;N++)I[N+y+1]=R[N];else R.length<1e4?I.splice.apply(I,d0([y+1,b-y],R,!1)):this._lineOffsets=I=I.slice(0,y+1).concat(R,I.slice(b+1));var ee=c.text.length-(v-m);if(ee!==0)for(var N=y+1+R.length,G=I.length;N<G;N++)I[N]=I[N]+ee}else if(e.isFull(c))this._content=c.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=n},e.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Tv(this._content,!0)),this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),a=0,s=n.length;if(s===0)return{line:0,character:r};for(;a<s;){var c=Math.floor((a+s)/2);n[c]>r?s=c:a=c+1}var p=a-1;return{line:p,character:r-n[p]}},e.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var a=n[r.line],s=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e.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")},e.isFull=function(r){var n=r;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0},e}(),bc;(function(e){function r(s,c,p,m){return new Ov(s,c,p,m)}e.create=r;function n(s,c,p){if(s instanceof Ov)return s.update(c,p),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function a(s,c){for(var p=s.getText(),m=rp(c.map(p0),function(G,ee){var q=G.range.start.line-ee.range.start.line;return q===0?G.range.start.character-ee.range.start.character:q}),v=0,y=[],b=0,I=m;b<I.length;b++){var R=I[b],N=s.offsetAt(R.range.start);if(N<v)throw new Error("Overlapping edit");N>v&&y.push(p.substring(v,N)),R.newText.length&&y.push(R.newText),v=s.offsetAt(R.range.end)}return y.push(p.substr(v)),y.join("")}e.applyEdits=a})(bc||(bc={}));function rp(e,r){if(e.length<=1)return e;var n=e.length/2|0,a=e.slice(0,n),s=e.slice(n);rp(a,r),rp(s,r);for(var c=0,p=0,m=0;c<a.length&&p<s.length;){var v=r(a[c],s[p]);v<=0?e[m++]=a[c++]:e[m++]=s[p++]}for(;c<a.length;)e[m++]=a[c++];for(;p<s.length;)e[m++]=s[p++];return e}function Tv(e,r,n){n===void 0&&(n=0);for(var a=r?[n]:[],s=0;s<e.length;s++){var c=e.charCodeAt(s);(c===13||c===10)&&(c===13&&s+1<e.length&&e.charCodeAt(s+1)===10&&s++,a.push(n+s+1))}return a}function Pv(e){var r=e.start,n=e.end;return r.line>n.line||r.line===n.line&&r.character>n.character?{start:n,end:r}:e}function p0(e){var r=Pv(e.range);return r!==e.range?{newText:e.newText,range:r}:e}var or;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(or||(or={}));var Iv;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[$o.Markdown,$o.PlainText],commitCharactersSupport:!0}}}}})(Iv||(Iv={}));var Ko=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),h0={"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,}))$/}},Yo=function(){function e(r,n,a){this.offset=n,this.length=a,this.parent=r}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),v0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="null",s.value=null,s}return r}(Yo),Fv=function(e){Ko(r,e);function r(n,a,s){var c=e.call(this,n,s)||this;return c.type="boolean",c.value=a,c}return r}(Yo),g0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(Yo),m0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(Yo),kv=function(e){Ko(r,e);function r(n,a,s){var c=e.call(this,n,a,s)||this;return c.type="string",c.value="",c}return r}(Yo),y0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||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}(Yo),b0=function(e){Ko(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(Yo);function jn(e){return ea(e)?e?{}:{not:{}}:e}var Rv;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Rv||(Rv={}));var x0=function(){function e(r,n){r===void 0&&(r=-1),n===void 0&&(n=null),this.focusOffset=r,this.exclude=n,this.schemas=[]}return e.prototype.add=function(r){this.schemas.push(r)},e.prototype.merge=function(r){var n;(n=this.schemas).push.apply(n,r.schemas)},e.prototype.include=function(r){return(this.focusOffset===-1||Mv(r,this.focusOffset))&&r!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),np=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.add=function(r){},e.prototype.merge=function(r){},e.prototype.include=function(r){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Vn=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(r){for(var n=0,a=r;n<a.length;n++){var s=a[n];this.merge(s)}},e.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},e.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var n=0,a=this.problems;n<a.length;n++){var s=a[n];s.code===or.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(c){return JSON.stringify(c)}).join(", ")+".")}}},e.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++},e.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},e}();function S0(e,r){return r===void 0&&(r=[]),new Lv(e,r,[])}function oo(e){return l0(e)}function ip(e){return s0(e)}function Mv(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}var Lv=function(){function e(r,n,a){n===void 0&&(n=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=n,this.comments=a}return e.prototype.getNodeFromOffset=function(r,n){if(n===void 0&&(n=!1),this.root)return o0(this.root,r,n)},e.prototype.visit=function(r){if(this.root){var n=function(a){var s=r(a),c=a.children;if(Array.isArray(c))for(var p=0;p<c.length&&s;p++)s=n(c[p]);return s};n(this.root)}},e.prototype.validate=function(r,n){if(this.root&&n){var a=new Vn;return vn(this.root,n,a,np.instance),a.problems.map(function(s){var c=sr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return Ea.create(c,s.message,s.severity,s.code)})}return null},e.prototype.getMatchingSchemas=function(r,n,a){n===void 0&&(n=-1),a===void 0&&(a=null);var s=new x0(n,a);return this.root&&r&&vn(this.root,r,new Vn,s),s.schemas},e}();function vn(e,r,n,a){if(!e||!a.include(e))return;switch(e.type){case"object":v(e,r,n,a);break;case"array":m(e,r,n,a);break;case"string":p(e,r,n,a);break;case"number":c(e,r,n,a);break;case"property":return vn(e.valueNode,r,n,a)}s(),a.add({node:e,schema:r});function s(){function y(Ue){return e.type===Ue||Ue==="integer"&&e.type==="number"&&e.isInteger||r.nullable&&e.value===null}if(Array.isArray(r.type)?r.type.some(y)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(y(r.type)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var b=0,I=r.allOf;b<I.length;b++){var R=I[b];vn(e,jn(R),n,a)}var N=jn(r.not);if(N){var G=new Vn,ee=a.newSub();vn(e,N,G,ee),G.hasProblems()||n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,message:"Matches a schema that is not allowed."});for(var q=0,oe=ee.schemas;q<oe.length;q++){var ae=oe[q];ae.inverted=!ae.inverted,a.add(ae)}}var pe=function(Ue,ze){for(var Ct=[],qe=null,nr=0,ur=Ue;nr<ur.length;nr++){var jt=ur[nr],fr=jn(jt),$t=new Vn,cr=a.newSub();if(vn(e,fr,$t,cr),$t.hasProblems()||Ct.push(fr),!qe)qe={schema:fr,validationResult:$t,matchingSchemas:cr};else if(!ze&&!$t.hasProblems()&&!qe.validationResult.hasProblems())qe.matchingSchemas.merge(cr),qe.validationResult.propertiesMatches+=$t.propertiesMatches,qe.validationResult.propertiesValueMatches+=$t.propertiesValueMatches;else{var wr=$t.compare(qe.validationResult);wr>0?qe={schema:fr,validationResult:$t,matchingSchemas:cr}:wr===0&&(qe.matchingSchemas.merge(cr),qe.validationResult.mergeEnumValues($t))}}return Ct.length>1&&ze&&n.problems.push({location:{offset:e.offset,length:1},severity:Ht.Warning,message:"Matches multiple schemas when only one must validate."}),qe!==null&&(n.merge(qe.validationResult),n.propertiesMatches+=qe.validationResult.propertiesMatches,n.propertiesValueMatches+=qe.validationResult.propertiesValueMatches,a.merge(qe.matchingSchemas)),Ct.length};Array.isArray(r.anyOf)&&pe(r.anyOf,!1),Array.isArray(r.oneOf)&&pe(r.oneOf,!0);var ve=function(Ue){var ze=new Vn,Ct=a.newSub();vn(e,jn(Ue),ze,Ct),n.merge(ze),n.propertiesMatches+=ze.propertiesMatches,n.propertiesValueMatches+=ze.propertiesValueMatches,a.merge(Ct)},me=function(Ue,ze,Ct){var qe=jn(Ue),nr=new Vn,ur=a.newSub();vn(e,qe,nr,ur),a.merge(ur),nr.hasProblems()?Ct&&ve(Ct):ze&&ve(ze)},Te=jn(r.if);if(Te&&me(Te,jn(r.then),jn(r.else)),Array.isArray(r.enum)){for(var Ae=oo(e),Se=!1,Ce=0,Fe=r.enum;Ce<Fe.length;Ce++){var Re=Fe[Ce];if(du(Ae,Re)){Se=!0;break}}n.enumValues=r.enum,n.enumValueMatch=Se,Se||n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,code:or.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(Ue){return JSON.stringify(Ue)}).join(", ")+"."})}if(Ca(r.const)){var Ae=oo(e);du(Ae,r.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:e.offset,length:e.length},severity:Ht.Warning,code:or.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),n.enumValueMatch=!1),n.enumValues=[r.const]}r.deprecationMessage&&e.parent&&n.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:Ht.Warning,message:r.deprecationMessage})}function c(y,b,I,R){var N=y.value;qn(b.multipleOf)&&N%b.multipleOf!==0&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is not divisible by "+b.multipleOf+"."});function G(ve,me){if(qn(me))return me;if(ea(me)&&me)return ve}function ee(ve,me){if(!ea(me)||!me)return ve}var q=G(b.minimum,b.exclusiveMinimum);qn(q)&&N<=q&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is below the exclusive minimum of "+q+"."});var oe=G(b.maximum,b.exclusiveMaximum);qn(oe)&&N>=oe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is above the exclusive maximum of "+oe+"."});var ae=ee(b.minimum,b.exclusiveMinimum);qn(ae)&&N<ae&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is below the minimum of "+ae+"."});var pe=ee(b.maximum,b.exclusiveMaximum);qn(pe)&&N>pe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Value is above the maximum of "+pe+"."})}function p(y,b,I,R){if(qn(b.minLength)&&y.value.length<b.minLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"String is shorter than the minimum length of "+b.minLength+"."}),qn(b.maxLength)&&y.value.length>b.maxLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"String is longer than the maximum length of "+b.maxLength+"."}),f0(b.pattern)){var N=new RegExp(b.pattern);N.test(y.value)||I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:b.patternErrorMessage||b.errorMessage||'String does not match the pattern of "'+b.pattern+'".'})}if(b.format)switch(b.format){case"uri":case"uri-reference":{var G=void 0;if(!y.value)G="URI expected.";else{var ee=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(y.value);ee?!ee[2]&&b.format==="uri"&&(G="URI with a scheme is expected."):G="URI is expected."}G&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:b.patternErrorMessage||b.errorMessage||"String is not a URI: "+G})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var q=h0[b.format];(!y.value||!q.pattern.exec(y.value))&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:b.patternErrorMessage||b.errorMessage||q.errorMessage});break;default:}}function m(y,b,I,R){if(Array.isArray(b.items)){for(var N=b.items,G=0;G<N.length;G++){var ee=N[G],q=jn(ee),oe=new Vn,ae=y.items[G];ae?(vn(ae,q,oe,R),I.mergePropertyMatch(oe)):y.items.length>=N.length&&I.propertiesValueMatches++}if(y.items.length>N.length)if(typeof b.additionalItems=="object")for(var pe=N.length;pe<y.items.length;pe++){var oe=new Vn;vn(y.items[pe],b.additionalItems,oe,R),I.mergePropertyMatch(oe)}else b.additionalItems===!1&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Array has too many items according to schema. Expected "+N.length+" or fewer."})}else{var ve=jn(b.items);if(ve)for(var me=0,Te=y.items;me<Te.length;me++){var ae=Te[me],oe=new Vn;vn(ae,ve,oe,R),I.mergePropertyMatch(oe)}}var Ae=jn(b.contains);if(Ae){var Se=y.items.some(function(Re){var Ue=new Vn;return vn(Re,Ae,Ue,np.instance),!Ue.hasProblems()});Se||I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:b.errorMessage||"Array does not contain required item."})}if(qn(b.minItems)&&y.items.length<b.minItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Array has too few items. Expected "+b.minItems+" or more."}),qn(b.maxItems)&&y.items.length>b.maxItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Array has too many items. Expected "+b.maxItems+" or fewer."}),b.uniqueItems===!0){var Ce=oo(y),Fe=Ce.some(function(Re,Ue){return Ue!==Ce.lastIndexOf(Re)});Fe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Array has duplicate items."})}}function v(y,b,I,R){for(var N=Object.create(null),G=[],ee=0,q=y.properties;ee<q.length;ee++){var oe=q[ee],ae=oe.keyNode.value;N[ae]=oe.valueNode,G.push(ae)}if(Array.isArray(b.required))for(var pe=0,ve=b.required;pe<ve.length;pe++){var me=ve[pe];if(!N[me]){var Te=y.parent&&y.parent.type==="property"&&y.parent.keyNode,Ae=Te?{offset:Te.offset,length:Te.length}:{offset:y.offset,length:1};I.problems.push({location:Ae,severity:Ht.Warning,message:'Missing property "'+me+'".'})}}var Se=function(Fn){for(var Xo=G.indexOf(Fn);Xo>=0;)G.splice(Xo,1),Xo=G.indexOf(Fn)};if(b.properties)for(var Ce=0,Fe=Object.keys(b.properties);Ce<Fe.length;Ce++){var me=Fe[Ce];Se(me);var Re=b.properties[me],Ue=N[me];if(Ue)if(ea(Re))if(Re)I.propertiesMatches++,I.propertiesValueMatches++;else{var oe=Ue.parent;I.problems.push({location:{offset:oe.keyNode.offset,length:oe.keyNode.length},severity:Ht.Warning,message:b.errorMessage||"Property "+me+" is not allowed."})}else{var ze=new Vn;vn(Ue,Re,ze,R),I.mergePropertyMatch(ze)}}if(b.patternProperties)for(var Ct=0,qe=Object.keys(b.patternProperties);Ct<qe.length;Ct++)for(var nr=qe[Ct],ur=new RegExp(nr),jt=0,fr=G.slice(0);jt<fr.length;jt++){var me=fr[jt];if(ur.test(me)){Se(me);var Ue=N[me];if(Ue){var Re=b.patternProperties[nr];if(ea(Re))if(Re)I.propertiesMatches++,I.propertiesValueMatches++;else{var oe=Ue.parent;I.problems.push({location:{offset:oe.keyNode.offset,length:oe.keyNode.length},severity:Ht.Warning,message:b.errorMessage||"Property "+me+" is not allowed."})}else{var ze=new Vn;vn(Ue,Re,ze,R),I.mergePropertyMatch(ze)}}}}if(typeof b.additionalProperties=="object")for(var $t=0,cr=G;$t<cr.length;$t++){var me=cr[$t],Ue=N[me];if(Ue){var ze=new Vn;vn(Ue,b.additionalProperties,ze,R),I.mergePropertyMatch(ze)}}else if(b.additionalProperties===!1&&G.length>0)for(var wr=0,Ut=G;wr<Ut.length;wr++){var me=Ut[wr],Ue=N[me];if(Ue){var oe=Ue.parent;I.problems.push({location:{offset:oe.keyNode.offset,length:oe.keyNode.length},severity:Ht.Warning,message:b.errorMessage||"Property "+me+" is not allowed."})}}if(qn(b.maxProperties)&&y.properties.length>b.maxProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Object has more properties than limit of "+b.maxProperties+"."}),qn(b.minProperties)&&y.properties.length<b.minProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Object has fewer properties than the required number of "+b.minProperties}),b.dependencies)for(var ft=0,Ot=Object.keys(b.dependencies);ft<Ot.length;ft++){var ae=Ot[ft],Zt=N[ae];if(Zt){var Wt=b.dependencies[ae];if(Array.isArray(Wt))for(var Kt=0,qr=Wt;Kt<qr.length;Kt++){var Un=qr[Kt];N[Un]?I.propertiesValueMatches++:I.problems.push({location:{offset:y.offset,length:y.length},severity:Ht.Warning,message:"Object is missing property "+Un+" required by property {$key}."})}else{var Re=jn(Wt);if(Re){var ze=new Vn;vn(y,Re,ze,R),I.mergePropertyMatch(ze)}}}}var pi=jn(b.propertyNames);if(pi)for(var Vr=0,sn=y.properties;Vr<sn.length;Vr++){var Jo=sn[Vr],ae=Jo.keyNode;ae&&vn(ae,pi,I,np.instance)}}}function w0(e,r){var n=[],a=-1,s=e.getText(),c=Xs(s,!1),p=r&&r.collectComments?[]:void 0;function m(){for(;;){var Te=c.scan();switch(I(),Te){case 12:case 13:Array.isArray(p)&&p.push(sr.create(e.positionAt(c.getTokenOffset()),e.positionAt(c.getTokenOffset()+c.getTokenLength())));break;case 15:case 14:break;default:return Te}}}function v(Te){return c.getToken()===Te?(m(),!0):!1}function y(Te,Ae,Se,Ce,Fe){if(Fe===void 0&&(Fe=Ht.Error),n.length===0||Se!==a){var Re=sr.create(e.positionAt(Se),e.positionAt(Ce));n.push(Ea.create(Re,Te,Fe,Ae,e.languageId)),a=Se}}function b(Te,Ae,Se,Ce,Fe){Se===void 0&&(Se=null),Ce===void 0&&(Ce=[]),Fe===void 0&&(Fe=[]);var Re=c.getTokenOffset(),Ue=c.getTokenOffset()+c.getTokenLength();if(Re===Ue&&Re>0){for(Re--;Re>0&&/\s/.test(s.charAt(Re));)Re--;Ue=Re+1}if(y(Te,Ae,Re,Ue),Se&&R(Se,!1),Ce.length+Fe.length>0)for(var ze=c.getToken();ze!==17;){if(Ce.indexOf(ze)!==-1){m();break}else if(Fe.indexOf(ze)!==-1)break;ze=m()}return Se}function I(){switch(c.getTokenError()){case 4:return b("Invalid unicode sequence in string.",or.InvalidUnicode),!0;case 5:return b("Invalid escape character in string.",or.InvalidEscapeCharacter),!0;case 3:return b("Unexpected end of number.",or.UnexpectedEndOfNumber),!0;case 1:return b("Unexpected end of comment.",or.UnexpectedEndOfComment),!0;case 2:return b("Unexpected end of string.",or.UnexpectedEndOfString),!0;case 6:return b("Invalid characters in string. Control characters must be escaped.",or.InvalidCharacter),!0}return!1}function R(Te,Ae){return Te.length=c.getTokenOffset()+c.getTokenLength()-Te.offset,Ae&&m(),Te}function N(Te){if(c.getToken()!==3)return null;var Ae=new g0(Te,c.getTokenOffset());m();for(var Se=0,Ce=!1;c.getToken()!==4&&c.getToken()!==17;){if(c.getToken()===5){Ce||b("Value expected",or.ValueExpected);var Fe=c.getTokenOffset();if(m(),c.getToken()===4){Ce&&y("Trailing comma",or.TrailingComma,Fe,Fe+1);continue}}else Ce&&b("Expected comma",or.CommaExpected);var Re=pe(Ae,Se++);Re?Ae.items.push(Re):b("Value expected",or.ValueExpected,null,[],[4,5]),Ce=!0}return c.getToken()!==4?b("Expected comma or closing bracket",or.CommaOrCloseBacketExpected,Ae):R(Ae,!0)}function G(Te,Ae){var Se=new y0(Te,c.getTokenOffset()),Ce=q(Se);if(!Ce)if(c.getToken()===16){b("Property keys must be doublequoted",or.Undefined);var Fe=new kv(Se,c.getTokenOffset(),c.getTokenLength());Fe.value=c.getTokenValue(),Ce=Fe,m()}else return null;Se.keyNode=Ce;var Re=Ae[Ce.value];if(Re?(y("Duplicate object key",or.DuplicateKey,Se.keyNode.offset,Se.keyNode.offset+Se.keyNode.length,Ht.Warning),typeof Re=="object"&&y("DuplicateKeyWarning",or.DuplicateKey,Re.keyNode.offset,Re.keyNode.offset+Re.keyNode.length,Ht.Warning),Ae[Ce.value]=!0):Ae[Ce.value]=Se,c.getToken()===6)Se.colonOffset=c.getTokenOffset(),m();else if(b("Colon expected",or.ColonExpected),c.getToken()===10&&e.positionAt(Ce.offset+Ce.length).line<e.positionAt(c.getTokenOffset()).line)return Se.length=Ce.length,Se;var Ue=pe(Se,Ce.value);return Ue?(Se.valueNode=Ue,Se.length=Ue.offset+Ue.length-Se.offset,Se):b("Value expected",or.ValueExpected,Se,[],[2,5])}function ee(Te){if(c.getToken()!==1)return null;var Ae=new b0(Te,c.getTokenOffset()),Se=Object.create(null);m();for(var Ce=!1;c.getToken()!==2&&c.getToken()!==17;){if(c.getToken()===5){Ce||b("Property expected",or.PropertyExpected);var Fe=c.getTokenOffset();if(m(),c.getToken()===2){Ce&&y("Trailing comma",or.TrailingComma,Fe,Fe+1);continue}}else Ce&&b("Expected comma",or.CommaExpected);var Re=G(Ae,Se);Re?Ae.properties.push(Re):b("Property expected",or.PropertyExpected,null,[],[2,5]),Ce=!0}return c.getToken()!==2?b("Expected comma or closing brace",or.CommaOrCloseBraceExpected,Ae):R(Ae,!0)}function q(Te){if(c.getToken()!==10)return null;var Ae=new kv(Te,c.getTokenOffset());return Ae.value=c.getTokenValue(),R(Ae,!0)}function oe(Te){if(c.getToken()!==11)return null;var Ae=new m0(Te,c.getTokenOffset());if(c.getTokenError()===0){var Se=c.getTokenValue();try{var Ce=JSON.parse(Se);if(!qn(Ce))return b("Invalid number format.",or.Undefined,Ae);Ae.value=Ce}catch(Fe){return b("Invalid number format.",or.Undefined,Ae)}Ae.isInteger=Se.indexOf(".")===-1}return R(Ae,!0)}function ae(Te){var Ae;switch(c.getToken()){case 7:return R(new v0(Te,c.getTokenOffset()),!0);case 8:return R(new Fv(Te,!0,c.getTokenOffset()),!0);case 9:return R(new Fv(Te,!1,c.getTokenOffset()),!0);default:return null}}function pe(Te,Ae){return N(Te)||ee(Te)||q(Te)||oe(Te)||ae(Te)}var ve=null,me=m();return me!==17&&(ve=pe(null,null),ve?c.getToken()!==17&&b("End of file expected.",or.Undefined):b("Expected a JSON object, array or literal.",or.Undefined)),new Lv(ve,n,p)}function ap(e,r,n){if(e!==null&&typeof e=="object"){var a=r+" ";if(Array.isArray(e)){if(e.length===0)return"[]";for(var s=`[
261
+ `,c=0;c<e.length;c++)s+=a+ap(e[c],a,n),c<e.length-1&&(s+=","),s+=`
262
+ `;return s+=r+"]",s}else{var p=Object.keys(e);if(p.length===0)return"{}";for(var s=`{
263
+ `,c=0;c<p.length;c++){var m=p[c];s+=a+JSON.stringify(m)+": "+ap(e[m],a,n),c<p.length-1&&(s+=","),s+=`
264
+ `}return s+=r+"}",s}}return n(e)}function A0(e,r){if(e.length<r.length)return!1;for(var n=0;n<r.length;n++)if(e[n]!==r[n])return!1;return!0}function op(e,r){var n=e.length-r.length;return n>0?e.lastIndexOf(r)===n:n===0?e===r:!1}function C0(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function T1(e,r){for(var n="";r>0;)(r&1)===1&&(n+=e),e+=e,r=r>>>1;return n}var E0=[",","}","]"],O0=[":"],T0=function(){function e(r,n,a,s){n===void 0&&(n=[]),a===void 0&&(a=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=n,this.promiseConstructor=a,this.clientCapabilities=s,this.templateVarIdCounter=0}return e.prototype.doResolve=function(r){for(var n=this.contributions.length-1;n>=0;n--)if(this.contributions[n].resolveCompletion){var a=this.contributions[n].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},e.prototype.doComplete=function(r,n,a){var s=this,c={items:[],isIncomplete:!1},p=r.getText(),m=r.offsetAt(n),v=a.getNodeFromOffset(m,!0);if(this.isInComment(r,v?v.offset:0,m))return Promise.resolve(c);if(v&&m===v.offset+v.length&&m>0){var y=p[m-1];(v.type==="object"&&y==="}"||v.type==="array"&&y==="]")&&(v=v.parent)}var b=this.getCurrentWord(r,m),I=null;if(v&&(v.type==="string"||v.type==="number"||v.type==="boolean"||v.type==="null"))I=sr.create(r.positionAt(v.offset),r.positionAt(v.offset+v.length));else{var R=m-b.length;R>0&&p[R-1]==='"'&&R--,I=sr.create(r.positionAt(R),n)}var N=this.doesSupportsCommitCharacters(),G={},ee={add:function(q){var oe=G[q.label];oe?oe.documentation||(oe.documentation=q.documentation):(G[q.label]=q,I&&(q.textEdit=di.replace(I,q.insertText)),N&&(q.commitCharacters=q.kind===_n.Property?O0:E0),c.items.push(q))},setAsIncomplete:function(){c.isIncomplete=!0},error:function(q){console.error(q)},log:function(q){console.log(q)},getNumberOfProposals:function(){return c.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(q){var oe=[],ae=!0,pe="",ve=null;if(v&&v.type==="string"){var me=v.parent;me&&me.type==="property"&&me.keyNode===v&&(ae=!me.valueNode,ve=me,pe=p.substr(v.offset+1,v.length-2),me&&(v=me.parent))}if(v&&v.type==="object"){if(v.offset===m)return c;var Te=v.properties;Te.forEach(function(Fe){(!ve||ve!==Fe)&&(G[Fe.keyNode.value]=_d.create("__"))});var Ae="";ae&&(Ae=s.evaluateSeparatorAfter(r,r.offsetAt(I.end))),q?s.getPropertyCompletions(q,a,v,ae,Ae,ee):s.getSchemaLessPropertyCompletions(a,v,pe,ee);var Se=ip(v);s.contributions.forEach(function(Fe){var Re=Fe.collectPropertyCompletions(r.uri,Se,b,ae,Ae==="",ee);Re&&oe.push(Re)}),!q&&b.length>0&&p.charAt(m-b.length-1)!=='"'&&(ee.add({kind:_n.Property,label:s.getLabelForValue(b),insertText:s.getInsertTextForProperty(b,null,!1,Ae),insertTextFormat:Zr.Snippet,documentation:""}),ee.setAsIncomplete())}var Ce={};return q?s.getValueCompletions(q,a,v,m,r,ee,Ce):s.getSchemaLessValueCompletions(a,v,m,r,ee),s.contributions.length>0&&s.getContributedValueCompletions(a,v,m,r,ee,oe),s.promiseConstructor.all(oe).then(function(){if(ee.getNumberOfProposals()===0){var Fe=m;v&&(v.type==="string"||v.type==="number"||v.type==="boolean"||v.type==="null")&&(Fe=v.offset+v.length);var Re=s.evaluateSeparatorAfter(r,Fe);s.addFillerValueCompletions(Ce,Re,ee)}return c})})},e.prototype.getPropertyCompletions=function(r,n,a,s,c,p){var m=this,v=n.getMatchingSchemas(r.schema,a.offset);v.forEach(function(y){if(y.node===a&&!y.inverted){var b=y.schema.properties;b&&Object.keys(b).forEach(function(I){var R=b[I],N=!1;if(typeof R=="object"&&R.allOf)for(var G=0,ee=R.allOf;G<ee.length;G++){var q=ee[G];if(q.readOnly){N=!0;break}}if(typeof R=="object"&&!R.deprecationMessage&&!R.doNotSuggest&&!N){var oe={kind:_n.Property,label:m.sanitizeLabel(I),insertText:m.getInsertTextForProperty(I,R,s,c),insertTextFormat:Zr.Snippet,filterText:m.getFilterTextForValue(I),documentation:m.fromMarkup(R.markdownDescription)||R.description||""};op(oe.insertText,"$1"+c)&&(oe.command={title:"Suggest",command:"editor.action.triggerSuggest"}),p.add(oe)}})}})},e.prototype.getSchemaLessPropertyCompletions=function(r,n,a,s){var c=this,p=function(v){v.properties.forEach(function(y){var b=y.keyNode.value;s.add({kind:_n.Property,label:c.sanitizeLabel(b),insertText:c.getInsertTextForValue(b,""),insertTextFormat:Zr.Snippet,filterText:c.getFilterTextForValue(b),documentation:""})})};if(n.parent)if(n.parent.type==="property"){var m=n.parent.keyNode.value;r.visit(function(v){return v.type==="property"&&v!==n.parent&&v.keyNode.value===m&&v.valueNode&&v.valueNode.type==="object"&&p(v.valueNode),!0})}else n.parent.type==="array"&&n.parent.items.forEach(function(v){v.type==="object"&&v!==n&&p(v)});else n.type==="object"&&s.add({kind:_n.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Zr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(r,n,a,s,c){var p=this,m=a;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(m=n.offset+n.length,n=n.parent),!n){c.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Zr.Snippet,documentation:""}),c.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Zr.Snippet,documentation:""});return}var v=this.evaluateSeparatorAfter(s,m),y=function(N){Mv(N.parent,a,!0)||c.add({kind:p.getSuggestionKind(N.type),label:p.getLabelTextForMatchingNode(N,s),insertText:p.getInsertTextForMatchingNode(N,s,v),insertTextFormat:Zr.Snippet,documentation:""}),N.type==="boolean"&&p.addBooleanValueCompletion(!N.value,v,c)};if(n.type==="property"&&a>n.colonOffset){var b=n.valueNode;if(b&&(a>b.offset+b.length||b.type==="object"||b.type==="array"))return;var I=n.keyNode.value;r.visit(function(N){return N.type==="property"&&N.keyNode.value===I&&N.valueNode&&y(N.valueNode),!0}),I==="$schema"&&n.parent&&!n.parent.parent&&this.addDollarSchemaCompletions(v,c)}if(n.type==="array")if(n.parent&&n.parent.type==="property"){var R=n.parent.keyNode.value;r.visit(function(N){return N.type==="property"&&N.keyNode.value===R&&N.valueNode&&N.valueNode.type==="array"&&N.valueNode.items.forEach(y),!0})}else n.items.forEach(y)},e.prototype.getValueCompletions=function(r,n,a,s,c,p,m){var v=this,y=s,b=null,I=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(y=a.offset+a.length,I=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",p,m);return}if(a.type==="property"&&s>a.colonOffset){var R=a.valueNode;if(R&&s>R.offset+R.length)return;b=a.keyNode.value,a=a.parent}if(a&&(b!==null||a.type==="array")){var N=this.evaluateSeparatorAfter(c,y),G=n.getMatchingSchemas(r.schema,a.offset,I);G.forEach(function(ee){if(ee.node===a&&!ee.inverted&&ee.schema){if(a.type==="array"&&ee.schema.items)if(Array.isArray(ee.schema.items)){var q=v.findItemAtOffset(a,c,s);q<ee.schema.items.length&&v.addSchemaValueCompletions(ee.schema.items[q],N,p,m)}else v.addSchemaValueCompletions(ee.schema.items,N,p,m);if(ee.schema.properties){var oe=ee.schema.properties[b];oe&&v.addSchemaValueCompletions(oe,N,p,m)}}}),b==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(N,p),m.boolean&&(this.addBooleanValueCompletion(!0,N,p),this.addBooleanValueCompletion(!1,N,p)),m.null&&this.addNullValueCompletion(N,p)}},e.prototype.getContributedValueCompletions=function(r,n,a,s,c,p){if(!n)this.contributions.forEach(function(b){var I=b.collectDefaultCompletions(s.uri,c);I&&p.push(I)});else if((n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(n=n.parent),n.type==="property"&&a>n.colonOffset){var m=n.keyNode.value,v=n.valueNode;if(!v||a<=v.offset+v.length){var y=ip(n.parent);this.contributions.forEach(function(b){var I=b.collectValueCompletions(s.uri,y,m,c);I&&p.push(I)})}}},e.prototype.addSchemaValueCompletions=function(r,n,a,s){var c=this;typeof r=="object"&&(this.addEnumValueCompletions(r,n,a),this.addDefaultValueCompletions(r,n,a),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,s)}))},e.prototype.addDefaultValueCompletions=function(r,n,a,s){var c=this;s===void 0&&(s=0);var p=!1;if(Ca(r.default)){for(var m=r.type,v=r.default,y=s;y>0;y--)v=[v],m="array";a.add({kind:this.getSuggestionKind(m),label:this.getLabelForValue(v),insertText:this.getInsertTextForValue(v,n),insertTextFormat:Zr.Snippet}),p=!0}Array.isArray(r.examples)&&r.examples.forEach(function(b){for(var I=r.type,R=b,N=s;N>0;N--)R=[R],I="array";a.add({kind:c.getSuggestionKind(I),label:c.getLabelForValue(R),insertText:c.getInsertTextForValue(R,n),insertTextFormat:Zr.Snippet}),p=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(b){var I=r.type,R=b.body,N=b.label,G,ee;if(Ca(R)){for(var q=r.type,oe=s;oe>0;oe--)R=[R],q="array";G=c.getInsertTextForSnippetValue(R,n),ee=c.getFilterTextForSnippetValue(R),N=N||c.getLabelForSnippetValue(R)}else if(typeof b.bodyText=="string"){for(var ae="",pe="",ve="",oe=s;oe>0;oe--)ae=ae+ve+`[
265
+ `,pe=pe+`
266
+ `+ve+"]",ve+=" ",I="array";G=ae+ve+b.bodyText.split(`
267
+ `).join(`
268
+ `+ve)+pe+n,N=N||c.sanitizeLabel(G),ee=G.replace(/[\n]/g,"")}a.add({kind:c.getSuggestionKind(I),label:N,documentation:c.fromMarkup(b.markdownDescription)||b.description,insertText:G,insertTextFormat:Zr.Snippet,filterText:ee}),p=!0}),!p&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,n,a,s+1)},e.prototype.addEnumValueCompletions=function(r,n,a){if(Ca(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,n),insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,c=r.enum.length;s<c;s++){var p=r.enum[s],m=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?m=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(m=r.enumDescriptions[s]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(p),insertText:this.getInsertTextForValue(p,n),insertTextFormat:Zr.Snippet,documentation:m})}},e.prototype.collectTypes=function(r,n){if(!(Array.isArray(r.enum)||Ca(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(s){return n[s]=!0}):n[a]=!0}},e.prototype.addFillerValueCompletions=function(r,n,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},n),insertTextFormat:Zr.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],n),insertTextFormat:Zr.Snippet,detail:"New array",documentation:""})},e.prototype.addBooleanValueCompletion=function(r,n,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,n),insertTextFormat:Zr.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(r,n){n.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Zr.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(r,n){var a=this,s=this.schemaService.getRegisteredSchemaIds(function(c){return c==="http"||c==="https"});s.forEach(function(c){return n.add({kind:_n.Module,label:a.getLabelForValue(c),filterText:a.getFilterTextForValue(c),insertText:a.getInsertTextForValue(c,r),insertTextFormat:Zr.Snippet,documentation:""})})},e.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},e.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},e.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},e.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(r){var n=JSON.stringify(r);return n=n.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(n)},e.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(r,n){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+n:a==="[]"?"[$1]"+n:this.getInsertTextForPlainText(a+n)},e.prototype.getInsertTextForSnippetValue=function(r,n){var a=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return ap(r,"",a)+n},e.prototype.getInsertTextForGuessedValue=function(r,n){switch(typeof r){case"object":return r===null?"${1:null}"+n:this.getInsertTextForValue(r,n);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+n;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+n}return this.getInsertTextForValue(r,n)},e.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var n=r;r=n.length>0?n[0]:null}if(!r)return _n.Value;switch(r){case"string":return _n.Value;case"object":return _n.Module;case"property":return _n.Property;default:return _n.Value}},e.prototype.getLabelTextForMatchingNode=function(r,n){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=n.getText().substr(r.offset,r.length);return a}},e.prototype.getInsertTextForMatchingNode=function(r,n,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var s=n.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(s)}},e.prototype.getInsertTextForProperty=function(r,n,a,s){var c=this.getInsertTextForValue(r,"");if(!a)return c;var p=c+": ",m,v=0;if(n){if(Array.isArray(n.defaultSnippets)){if(n.defaultSnippets.length===1){var y=n.defaultSnippets[0].body;Ca(y)&&(m=this.getInsertTextForSnippetValue(y,""))}v+=n.defaultSnippets.length}if(n.enum&&(!m&&n.enum.length===1&&(m=this.getInsertTextForGuessedValue(n.enum[0],"")),v+=n.enum.length),Ca(n.default)&&(m||(m=this.getInsertTextForGuessedValue(n.default,"")),v++),v===0){var b=Array.isArray(n.type)?n.type[0]:n.type;switch(b||(n.properties?b="object":n.items&&(b="array")),b){case"boolean":m="$1";break;case"string":m='"$1"';break;case"object":m="{$1}";break;case"array":m="[$1]";break;case"number":case"integer":m="${1:0}";break;case"null":m="${1:null}";break;default:return c}}}return(!m||v>1)&&(m="$1"),p+m+s},e.prototype.getCurrentWord=function(r,n){for(var a=n-1,s=r.getText();a>=0&&`
269
+ \r\v":{[,]}`.indexOf(s.charAt(a))===-1;)a--;return s.substring(a+1,n)},e.prototype.evaluateSeparatorAfter=function(r,n){var a=Xs(r.getText(),!0);a.setPosition(n);var s=a.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(r,n,a){for(var s=Xs(n.getText(),!0),c=r.items,p=c.length-1;p>=0;p--){var m=c[p];if(a>m.offset+m.length){s.setPosition(m.offset+m.length);var v=s.scan();return v===5&&a>=s.getTokenOffset()+s.getTokenLength()?p+1:p}else if(a>=m.offset)return p}return 0},e.prototype.isInComment=function(r,n,a){var s=Xs(r.getText(),!1);s.setPosition(n);for(var c=s.scan();c!==17&&s.getTokenOffset()+s.getTokenLength()<a;)c=s.scan();return(c===12||c===13)&&s.getTokenOffset()<=a},e.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:$o.Markdown,value:r}},e.prototype.doesSupportMarkdown=function(){if(!Ca(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($o.Markdown)!==-1}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!Ca(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),P0=function(){function e(r,n,a){n===void 0&&(n=[]),this.schemaService=r,this.contributions=n,this.promise=a||Promise}return e.prototype.doHover=function(r,n,a){var s=r.offsetAt(n),c=a.getNodeFromOffset(s);if(!c||(c.type==="object"||c.type==="array")&&s>c.offset+1&&s<c.offset+c.length-1)return this.promise.resolve(null);var p=c;if(c.type==="string"){var m=c.parent;if(m&&m.type==="property"&&m.keyNode===c&&(c=m.valueNode,!c))return this.promise.resolve(null)}for(var v=sr.create(r.positionAt(p.offset),r.positionAt(p.offset+p.length)),y=function(G){var ee={contents:G,range:v};return ee},b=ip(c),I=this.contributions.length-1;I>=0;I--){var R=this.contributions[I],N=R.getInfoContribution(r.uri,b);if(N)return N.then(function(G){return y(G)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function(G){if(G){var ee=a.getMatchingSchemas(G.schema,c.offset),q=null,oe=null,ae=null,pe=null;ee.every(function(me){if(me.node===c&&!me.inverted&&me.schema&&(q=q||me.schema.title,oe=oe||me.schema.markdownDescription||sp(me.schema.description),me.schema.enum)){var Te=me.schema.enum.indexOf(oo(c));me.schema.markdownEnumDescriptions?ae=me.schema.markdownEnumDescriptions[Te]:me.schema.enumDescriptions&&(ae=sp(me.schema.enumDescriptions[Te])),ae&&(pe=me.schema.enum[Te],typeof pe!="string"&&(pe=JSON.stringify(pe)))}return!0});var ve="";return q&&(ve=sp(q)),oe&&(ve.length>0&&(ve+=`
270
+
271
+ `),ve+=oe),ae&&(ve.length>0&&(ve+=`
272
+
273
+ `),ve+="`"+I0(pe)+"`: "+ae),y([ve])}return null})},e}();function sp(e){if(e){var r=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
274
+
275
+ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function I0(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var F0=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Gr,yu;if(typeof process=="object")yu=!1;else if(typeof navigator=="object"){var k0=navigator.userAgent;yu=k0.indexOf("Windows")>=0}function P1(e){return 55296<=e&&e<=56319}function I1(e){return 56320<=e&&e<=57343}function F1(e){return e>=97&&e<=102}function R0(e){return e>=97&&e<=122}function M0(e){return e>=65&&e<=90}function k1(e){return R0(e)||M0(e)}var L0=/^\w[\w\d+.-]*$/,N0=/^\//,D0=/^\/\//;function B0(e,r){if(!e.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!L0.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!N0.test(e.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(D0.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function j0(e,r){return!e&&!r?"file":e}function V0(e,r){switch(e){case"https":case"http":case"file":r?r[0]!==Bi&&(r=Bi+r):r=Bi;break}return r}var br="",Bi="/",U0=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,lp=function(){function e(r,n,a,s,c,p){p===void 0&&(p=!1),typeof r=="object"?(this.scheme=r.scheme||br,this.authority=r.authority||br,this.path=r.path||br,this.query=r.query||br,this.fragment=r.fragment||br):(this.scheme=j0(r,p),this.authority=n||br,this.path=V0(this.scheme,a||br),this.query=s||br,this.fragment=c||br,B0(this,p))}return e.isUri=function(r){return r instanceof e?!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(e.prototype,"fsPath",{get:function(){return jv(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(r){if(!r)return this;var n=r.scheme,a=r.authority,s=r.path,c=r.query,p=r.fragment;return n===void 0?n=this.scheme:n===null&&(n=br),a===void 0?a=this.authority:a===null&&(a=br),s===void 0?s=this.path:s===null&&(s=br),c===void 0?c=this.query:c===null&&(c=br),p===void 0?p=this.fragment:p===null&&(p=br),n===this.scheme&&a===this.authority&&s===this.path&&c===this.query&&p===this.fragment?this:new _s(n,a,s,c,p)},e.parse=function(r,n){n===void 0&&(n=!1);var a=U0.exec(r);return a?new _s(a[2]||br,xc(a[4]||br),xc(a[5]||br),xc(a[7]||br),xc(a[9]||br),n):new _s(br,br,br,br,br)},e.file=function(r){var n=br;if(yu&&(r=r.replace(/\\/g,Bi)),r[0]===Bi&&r[1]===Bi){var a=r.indexOf(Bi,2);a===-1?(n=r.substring(2),r=Bi):(n=r.substring(2,a),r=r.substring(a)||Bi)}return new _s("file",n,r,br,br)},e.from=function(r){return new _s(r.scheme,r.authority,r.path,r.query,r.fragment)},e.prototype.toString=function(r){return r===void 0&&(r=!1),up(this,r)},e.prototype.toJSON=function(){return this},e.revive=function(r){if(r){if(r instanceof e)return r;var n=new _s(r);return n._formatted=r.external,n._fsPath=r._sep===Nv?r.fsPath:null,n}else return r},e}(),Nv=yu?1:void 0,_s=function(e){F0(r,e);function r(){var n=e!==null&&e.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=jv(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(n){return n===void 0&&(n=!1),n?up(this,!0):(this._formatted||(this._formatted=up(this,!1)),this._formatted)},r.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=Nv),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}(lp),Dv=(Gr={},Gr[58]="%3A",Gr[47]="%2F",Gr[63]="%3F",Gr[35]="%23",Gr[91]="%5B",Gr[93]="%5D",Gr[64]="%40",Gr[33]="%21",Gr[36]="%24",Gr[38]="%26",Gr[39]="%27",Gr[40]="%28",Gr[41]="%29",Gr[42]="%2A",Gr[43]="%2B",Gr[44]="%2C",Gr[59]="%3B",Gr[61]="%3D",Gr[32]="%20",Gr);function Bv(e,r){for(var n=void 0,a=-1,s=0;s<e.length;s++){var c=e.charCodeAt(s);if(c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===45||c===46||c===95||c===126||r&&c===47)a!==-1&&(n+=encodeURIComponent(e.substring(a,s)),a=-1),n!==void 0&&(n+=e.charAt(s));else{n===void 0&&(n=e.substr(0,s));var p=Dv[c];p!==void 0?(a!==-1&&(n+=encodeURIComponent(e.substring(a,s)),a=-1),n+=p):a===-1&&(a=s)}}return a!==-1&&(n+=encodeURIComponent(e.substring(a))),n!==void 0?n:e}function W0(e){for(var r=void 0,n=0;n<e.length;n++){var a=e.charCodeAt(n);a===35||a===63?(r===void 0&&(r=e.substr(0,n)),r+=Dv[a]):r!==void 0&&(r+=e[n])}return r!==void 0?r:e}function jv(e,r){var n;return e.authority&&e.path.length>1&&e.scheme==="file"?n="//"+e.authority+e.path:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?r?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,yu&&(n=n.replace(/\//g,"\\")),n}function up(e,r){var n=r?W0:Bv,a="",s=e.scheme,c=e.authority,p=e.path,m=e.query,v=e.fragment;if(s&&(a+=s,a+=":"),(c||s==="file")&&(a+=Bi,a+=Bi),c){var y=c.indexOf("@");if(y!==-1){var b=c.substr(0,y);c=c.substr(y+1),y=b.indexOf(":"),y===-1?a+=n(b,!1):(a+=n(b.substr(0,y),!1),a+=":",a+=n(b.substr(y+1),!1)),a+="@"}c=c.toLowerCase(),y=c.indexOf(":"),y===-1?a+=n(c,!1):(a+=n(c.substr(0,y),!1),a+=c.substr(y))}if(p){if(p.length>=3&&p.charCodeAt(0)===47&&p.charCodeAt(2)===58){var I=p.charCodeAt(1);I>=65&&I<=90&&(p="/"+String.fromCharCode(I+32)+":"+p.substr(3))}else if(p.length>=2&&p.charCodeAt(1)===58){var I=p.charCodeAt(0);I>=65&&I<=90&&(p=String.fromCharCode(I+32)+":"+p.substr(2))}a+=n(p,!0)}return m&&(a+="?",a+=n(m,!1)),v&&(a+="#",a+=r?v:Bv(v,!1)),a}function Vv(e){try{return decodeURIComponent(e)}catch(r){return e.length>3?e.substr(0,3)+Vv(e.substr(3)):e}}var Uv=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function xc(e){return e.match(Uv)?e.replace(Uv,function(r){return Vv(r)}):e}var H0=function(){function e(r){try{this.patternRegExp=new RegExp(C0(r)+"$")}catch(n){this.patternRegExp=null}this.schemas=[]}return e.prototype.addSchema=function(r){this.schemas.push(r)},e.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},e.prototype.getSchemas=function(){return this.schemas},e}(),z0=function(){function e(r,n,a){this.service=r,this.url=n,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new el(a)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.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},e.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},e}(),el=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e}(),Wv=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e.prototype.getSection=function(r){return jn(this.getSectionRecursive(r,this.schema))},e.prototype.getSectionRecursive=function(r,n){if(!n||typeof n=="boolean"||r.length===0)return n;var a=r.shift();if(n.properties&&typeof n.properties[a])return this.getSectionRecursive(r,n.properties[a]);if(n.patternProperties)for(var s=0,c=Object.keys(n.patternProperties);s<c.length;s++){var p=c[s],m=new RegExp(p);if(m.test(a))return this.getSectionRecursive(r,n.patternProperties[p])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(r,n.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(n.items)){var v=parseInt(a,10);if(!isNaN(v)&&n.items[v])return this.getSectionRecursive(r,n.items[v])}else if(n.items)return this.getSectionRecursive(r,n.items)}}return null},e}(),G0=function(){function e(r,n,a){this.contextService=n,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(n){var a=lp.parse(n).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(r){var n=this,a=!1;r=this.normalizeId(r);for(var s=[r],c=Object.keys(this.schemasById).map(function(y){return n.schemasById[y]});s.length;)for(var p=s.pop(),m=0;m<c.length;m++){var v=c[m];v&&(v.url===p||v.dependencies[p])&&(v.url!==p&&s.push(v.url),v.clearSchema(),c[m]=void 0,a=!0)}return a},e.prototype.normalizeId=function(r){try{return lp.parse(r).toString()}catch(n){return r}},e.prototype.setSchemaContributions=function(r){if(r.schemas){var n=r.schemas;for(var a in n){var s=this.normalizeId(a);this.contributionSchemas[s]=this.addSchemaHandle(s,n[a])}}if(r.schemaAssociations){var c=r.schemaAssociations;for(var p in c){var m=c[p];this.contributionAssociations[p]=m;for(var v=this.getOrAddFilePatternAssociation(p),y=0,b=m;y<b.length;y++){var I=b[y],a=this.normalizeId(I);v.addSchema(a)}}}},e.prototype.addSchemaHandle=function(r,n){var a=new z0(this,r,n);return this.schemasById[r]=a,a},e.prototype.getOrAddSchemaHandle=function(r,n){return this.schemasById[r]||this.addSchemaHandle(r,n)},e.prototype.getOrAddFilePatternAssociation=function(r){var n=this.filePatternAssociationById[r];return n||(n=new H0(r),this.filePatternAssociationById[r]=n,this.filePatternAssociations.push(n)),n},e.prototype.registerExternalSchema=function(r,n,a){n===void 0&&(n=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,n)for(var c=0,p=n;c<p.length;c++){var m=p[c];this.getOrAddFilePatternAssociation(m).addSchema(s)}return a?this.addSchemaHandle(s,a):this.getOrAddSchemaHandle(s)},e.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 a=this.getOrAddFilePatternAssociation(n),s=0,c=this.contributionAssociations[n];s<c.length;s++){var p=c[s],r=this.normalizeId(p);a.addSchema(r)}},e.prototype.getResolvedSchema=function(r){var n=this.normalizeId(r),a=this.schemasById[n];return a?a.getResolvedSchema():this.promise.resolve(null)},e.prototype.loadSchema=function(r){if(!this.requestService){var n="Unable to load schema from '"+Sc(r)+"'. No schema request service available";return this.promise.resolve(new el({},[n]))}return this.requestService(r).then(function(a){if(!a){var s="Unable to load schema from '"+Sc(r)+"': No content.";return new el({},[s])}var c={},p=[];c=a0(a,p);var m=p.length?["Unable to parse content from '"+Sc(r)+"': Parse error at offset "+p[0].offset]:[];return new el(c,m)},function(a){var s="Unable to load schema from '"+Sc(r)+"': "+a.toString();return new el({},[s])})},e.prototype.resolveSchemaContent=function(r,n,a){var s=this,c=r.errors.slice(0),p=r.schema;if(p.$schema){var m=this.normalizeId(p.$schema);if(m==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Wv({},["Draft-03 schemas are not supported."]));m==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var v=this.contextService,y=function(N,G){if(!G)return N;var ee=N;return G[0]==="/"&&(G=G.substr(1)),G.split("/").some(function(q){return ee=ee[q],!ee}),ee},b=function(N,G,ee,q){var oe=y(G,q);if(oe)for(var ae in oe)oe.hasOwnProperty(ae)&&!N.hasOwnProperty(ae)&&(N[ae]=oe[ae]);else c.push("$ref '"+q+"' in '"+ee+"' can not be resolved.")},I=function(N,G,ee,q,oe){v&&!/^\w+:\/\/.*/.test(G)&&(G=v.resolveRelativePath(G,q)),G=s.normalizeId(G);var ae=s.getOrAddSchemaHandle(G);return ae.getUnresolvedSchema().then(function(pe){if(oe[G]=!0,pe.errors.length){var ve=ee?G+"#"+ee:G;c.push("Problems loading reference '"+ve+"': "+pe.errors[0]+".")}return b(N,pe.schema,G,ee),R(N,pe.schema,G,ae.dependencies)})},R=function(N,G,ee,q){if(!N||typeof N!="object")return Promise.resolve(null);for(var oe=[N],ae=[],pe=[],ve=function(){for(var Ce=[],Fe=0;Fe<arguments.length;Fe++)Ce[Fe]=arguments[Fe];for(var Re=0,Ue=Ce;Re<Ue.length;Re++){var ze=Ue[Re];typeof ze=="object"&&oe.push(ze)}},me=function(){for(var Ce=[],Fe=0;Fe<arguments.length;Fe++)Ce[Fe]=arguments[Fe];for(var Re=0,Ue=Ce;Re<Ue.length;Re++){var ze=Ue[Re];if(typeof ze=="object")for(var Ct in ze){var qe=ze[Ct];typeof qe=="object"&&oe.push(qe)}}},Te=function(){for(var Ce=[],Fe=0;Fe<arguments.length;Fe++)Ce[Fe]=arguments[Fe];for(var Re=0,Ue=Ce;Re<Ue.length;Re++){var ze=Ue[Re];if(Array.isArray(ze))for(var Ct=0,qe=ze;Ct<qe.length;Ct++){var nr=qe[Ct];typeof nr=="object"&&oe.push(nr)}}},Ae=function(Ce){for(var Fe=[];Ce.$ref;){var Re=Ce.$ref,Ue=Re.split("#",2);if(delete Ce.$ref,Ue[0].length>0){pe.push(I(Ce,Ue[0],Ue[1],ee,q));return}else Fe.indexOf(Re)===-1&&(b(Ce,G,ee,Ue[1]),Fe.push(Re))}ve(Ce.items,Ce.additionalProperties,Ce.not,Ce.contains,Ce.propertyNames,Ce.if,Ce.then,Ce.else),me(Ce.definitions,Ce.properties,Ce.patternProperties,Ce.dependencies),Te(Ce.anyOf,Ce.allOf,Ce.oneOf,Ce.items)};oe.length;){var Se=oe.pop();ae.indexOf(Se)>=0||(ae.push(Se),Ae(Se))}return s.promise.all(pe)};return R(p,p,n,a).then(function(N){return new Wv(p,c)})},e.prototype.getSchemaForResource=function(r,n){if(n&&n.root&&n.root.type==="object"){var a=n.root.properties.filter(function(G){return G.keyNode.value==="$schema"&&G.valueNode&&G.valueNode.type==="string"});if(a.length>0){var s=oo(a[0].valueNode);if(s&&A0(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var c=this.normalizeId(s);return this.getOrAddSchemaHandle(c).getResolvedSchema()}}}for(var p=Object.create(null),m=[],v=0,y=this.filePatternAssociations;v<y.length;v++){var b=y[v];if(b.matchesPattern(r))for(var I=0,R=b.getSchemas();I<R.length;I++){var N=R[I];p[N]||(m.push(N),p[N]=!0)}}return m.length>0?this.createCombinedSchema(r,m).getResolvedSchema():this.promise.resolve(null)},e.prototype.createCombinedSchema=function(r,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:n.map(function(c){return{$ref:c}})};return this.addSchemaHandle(a,s)},e}();function Sc(e){try{}catch(r){}return e}var $0=function(){function e(r,n){this.jsonSchemaService=r,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Ht.Error)},e.prototype.doValidation=function(r,n,a,s){var c=this;if(!this.validationEnabled)return this.promise.resolve([]);var p=[],m={},v=function(I){var R=I.range.start.line+" "+I.range.start.character+" "+I.message;m[R]||(m[R]=!0,p.push(I))},y=function(I){var R=a?Gv(a.trailingCommas):Ht.Error,N=a?Gv(a.comments):c.commentSeverity;if(I){if(I.errors.length&&n.root){var G=n.root,ee=G.type==="object"?G.properties[0]:null;if(ee&&ee.keyNode.value==="$schema"){var q=ee.valueNode||ee,oe=sr.create(r.positionAt(q.offset),r.positionAt(q.offset+q.length));v(Ea.create(oe,I.errors[0],Ht.Warning,or.SchemaResolveError))}else{var oe=sr.create(r.positionAt(G.offset),r.positionAt(G.offset+1));v(Ea.create(oe,I.errors[0],Ht.Warning,or.SchemaResolveError))}}else{var ae=n.validate(r,I.schema);ae&&ae.forEach(v)}Hv(I.schema)&&(N=void 0),zv(I.schema)&&(R=void 0)}for(var pe=0,ve=n.syntaxErrors;pe<ve.length;pe++){var me=ve[pe];if(me.code===or.TrailingComma){if(typeof R!="number")continue;me.severity=R}v(me)}if(typeof N=="number"){var Te="Comments are not permitted in JSON.";n.comments.forEach(function(Ae){v(Ea.create(Ae,Te,N,or.CommentNotPermitted))})}return p};if(s){var b=s.id||"schemaservice://untitled/"+K0++;return this.jsonSchemaService.resolveSchemaContent(new el(s),b,{}).then(function(I){return y(I)})}return this.jsonSchemaService.getSchemaForResource(r.uri,n).then(function(I){return y(I)})},e}(),K0=0;function Hv(e){if(e&&typeof e=="object"){if(ea(e.allowComments))return e.allowComments;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],s=Hv(a);if(ea(s))return s}}}function zv(e){if(e&&typeof e=="object"){if(ea(e.allowTrailingCommas))return e.allowTrailingCommas;if(ea(e.allowsTrailingCommas))return e.allowsTrailingCommas;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],s=zv(a);if(ea(s))return s}}}function Gv(e){switch(e){case"error":return Ht.Error;case"warning":return Ht.Warning;case"ignore":return}}var $v=48,Y0=57,J0=65,wc=97,X0=102;function $r(e){return e<$v?0:e<=Y0?e-$v:(e<wc&&(e+=wc-J0),e>=wc&&e<=X0?e-wc+10:0)}function Q0(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:$r(e.charCodeAt(1))*17/255,green:$r(e.charCodeAt(2))*17/255,blue:$r(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:$r(e.charCodeAt(1))*17/255,green:$r(e.charCodeAt(2))*17/255,blue:$r(e.charCodeAt(3))*17/255,alpha:$r(e.charCodeAt(4))*17/255};case 7:return{red:($r(e.charCodeAt(1))*16+$r(e.charCodeAt(2)))/255,green:($r(e.charCodeAt(3))*16+$r(e.charCodeAt(4)))/255,blue:($r(e.charCodeAt(5))*16+$r(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:($r(e.charCodeAt(1))*16+$r(e.charCodeAt(2)))/255,green:($r(e.charCodeAt(3))*16+$r(e.charCodeAt(4)))/255,blue:($r(e.charCodeAt(5))*16+$r(e.charCodeAt(6)))/255,alpha:($r(e.charCodeAt(7))*16+$r(e.charCodeAt(8)))/255}}return null}function R1(e,r,n,a){return a===void 0&&(a=1),{red:e/255,green:r/255,blue:n/255,alpha:a}}var Z0=function(){function e(r){this.schemaService=r}return e.prototype.findDocumentSymbols=function(r,n,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var c=n.root;if(!c)return null;var p=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||op(m.toLowerCase(),"/user/keybindings.json"))&&c.type==="array"){for(var v=[],y=0,b=c.items;y<b.length;y++){var I=b[y];if(I.type==="object")for(var R=0,N=I.properties;R<N.length;R++){var G=N[R];if(G.keyNode.value==="key"&&G.valueNode){var ee=Qs.create(r.uri,so(r,I));if(v.push({name:oo(G.valueNode),kind:ta.Function,location:ee}),p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),v}}}return v}var q=function(ae,pe,ve){return p>=0&&(pe.type==="array"?pe.items.forEach(function(me){return q(ae,me,ve)}):pe.type==="object"&&pe.properties.forEach(function(me){if(p>=0){var Te=me.valueNode;if(Te){p--;var Ae=Qs.create(r.uri,so(r,me)),Se=ve?ve+"."+me.keyNode.value:me.keyNode.value;ae.push({name:s.getKeyLabel(me),kind:s.getSymbolKind(Te.type),location:Ae,containerName:ve}),q(ae,Te,Se)}}})),ae},oe=q([],c,void 0);return p<0&&(oe.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),oe},e.prototype.findDocumentSymbols2=function(r,n,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var c=n.root;if(!c)return null;var p=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||op(m.toLowerCase(),"/user/keybindings.json"))&&c.type==="array"){for(var v=[],y=0,b=c.items;y<b.length;y++){var I=b[y];if(I.type==="object")for(var R=0,N=I.properties;R<N.length;R++){var G=N[R];if(G.keyNode.value==="key"&&G.valueNode){var ee=so(r,I),q=so(r,G.keyNode);if(v.push({name:oo(G.valueNode),kind:ta.Function,range:ee,selectionRange:q}),p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),v}}}return v}var oe=function(pe,ve){return p>=0&&(ve.type==="array"?ve.items.forEach(function(me,Te){if(me&&p>=0){p--;var Ae=so(r,me),Se=Ae,Ce=String(Te),Fe=oe([],me);pe.push({name:Ce,kind:s.getSymbolKind(me.type),range:Ae,selectionRange:Se,children:Fe})}}):ve.type==="object"&&ve.properties.forEach(function(me){var Te=me.valueNode;if(Te&&p>=0){p--;var Ae=so(r,me),Se=so(r,me.keyNode),Ce=oe([],Te);pe.push({name:s.getKeyLabel(me),kind:s.getSymbolKind(Te.type),range:Ae,selectionRange:Se,children:Ce})}})),pe},ae=oe([],c);return p<0&&(ae.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),ae},e.prototype.getSymbolKind=function(r){switch(r){case"object":return ta.Module;case"string":return ta.String;case"number":return ta.Number;case"array":return ta.Array;case"boolean":return ta.Boolean;default:return ta.Variable}},e.prototype.getKeyLabel=function(r){var n=r.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},e.prototype.findDocumentColors=function(r,n,a){return this.schemaService.getSchemaForResource(r.uri,n).then(function(s){var c=[];if(s)for(var p=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,m=n.getMatchingSchemas(s.schema),v={},y=0,b=m;y<b.length;y++){var I=b[y];if(!I.inverted&&I.schema&&(I.schema.format==="color"||I.schema.format==="color-hex")&&I.node&&I.node.type==="string"){var R=String(I.node.offset);if(!v[R]){var N=Q0(oo(I.node));if(N){var G=so(r,I.node);c.push({color:N,range:G})}if(v[R]=!0,p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),c}}}return c})},e.prototype.getColorPresentations=function(r,n,a,s){var c=[],p=Math.round(a.red*255),m=Math.round(a.green*255),v=Math.round(a.blue*255);function y(I){var R=I.toString(16);return R.length!==2?"0"+R:R}var b;return a.alpha===1?b="#"+y(p)+y(m)+y(v):b="#"+y(p)+y(m)+y(v)+y(Math.round(a.alpha*255)),c.push({label:b,textEdit:di.replace(s,JSON.stringify(b))}),c},e}();function so(e,r){return sr.create(e.positionAt(r.offset),e.positionAt(r.offset+r.length))}var q0={schemaAssociations:{},schemas:{}};function _0(e,r){var n=[],a=[],s=[],c=-1,p=Xs(e.getText(),!1),m=p.scan();function v(Fe){n.push(Fe),a.push(s.length)}for(;m!==17;){switch(m){case 1:case 3:{var y=e.positionAt(p.getTokenOffset()).line,b={startLine:y,endLine:y,kind:m===1?"object":"array"};s.push(b);break}case 2:case 4:{var I=m===2?"object":"array";if(s.length>0&&s[s.length-1].kind===I){var b=s.pop(),R=e.positionAt(p.getTokenOffset()).line;b&&R>b.startLine+1&&c!==b.startLine&&(b.endLine=R-1,v(b),c=b.startLine)}break}case 13:{var y=e.positionAt(p.getTokenOffset()).line,N=e.positionAt(p.getTokenOffset()+p.getTokenLength()).line;p.getTokenError()===1&&y+1<e.lineCount?p.setPosition(e.offsetAt(ci.create(y+1,0))):y<N&&(v({startLine:y,endLine:N,kind:pu.Comment}),c=y);break}case 12:{var G=e.getText().substr(p.getTokenOffset(),p.getTokenLength()),ee=G.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ee){var R=e.positionAt(p.getTokenOffset()).line;if(ee[1]){var b={startLine:R,endLine:R,kind:pu.Region};s.push(b)}else{for(var q=s.length-1;q>=0&&s[q].kind!==pu.Region;)q--;if(q>=0){var b=s[q];s.length=q,R>b.startLine&&c!==b.startLine&&(b.endLine=R,v(b),c=b.startLine)}}}break}}m=p.scan()}var oe=r&&r.rangeLimit;if(typeof oe!="number"||n.length<=oe)return n;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(e.uri);for(var ae=[],pe=0,ve=a;pe<ve.length;pe++){var me=ve[pe];me<30&&(ae[me]=(ae[me]||0)+1)}for(var Te=0,Ae=0,q=0;q<ae.length;q++){var Se=ae[q];if(Se){if(Se+Te>oe){Ae=q;break}Te+=Se}}for(var Ce=[],q=0;q<n.length;q++){var me=a[q];typeof me=="number"&&(me<Ae||me===Ae&&Te++<oe)&&Ce.push(n[q])}return Ce}function eb(e,r,n){function a(m){for(var v=e.offsetAt(m),y=n.getNodeFromOffset(v,!0),b=[];y;){switch(y.type){case"string":case"object":case"array":var I=y.offset+1,R=y.offset+y.length-1;I<R&&v>=I&&v<=R&&b.push(s(I,R)),b.push(s(y.offset,y.offset+y.length));break;case"number":case"boolean":case"null":case"property":b.push(s(y.offset,y.offset+y.length));break}if(y.type==="property"||y.parent&&y.parent.type==="array"){var N=p(y.offset+y.length,5);N!==-1&&b.push(s(y.offset,N))}y=y.parent}for(var G=void 0,ee=b.length-1;ee>=0;ee--)G=yc.create(b[ee],G);return G||(G=yc.create(sr.create(m,m))),G}function s(m,v){return sr.create(e.positionAt(m),e.positionAt(v))}var c=Xs(e.getText(),!0);function p(m,v){c.setPosition(m);var y=c.scan();return y===v?c.getTokenOffset()+c.getTokenLength():-1}return r.map(a)}function tb(e){var r=e.promiseConstructor||Promise,n=new G0(e.schemaRequestService,e.workspaceContext,r);n.setSchemaContributions(q0);var a=new T0(n,e.contributions,r,e.clientCapabilities),s=new P0(n,e.contributions,r),c=new Z0(n),p=new $0(n,r);return{configure:function(m){n.clearExternalSchemas(),m.schemas&&m.schemas.forEach(function(v){n.registerExternalSchema(v.uri,v.fileMatch,v.schema)}),p.configure(m)},resetSchema:function(m){return n.onResourceChange(m)},doValidation:p.doValidation.bind(p),parseJSONDocument:function(m){return w0(m,{collectComments:!0})},newJSONDocument:function(m,v){return S0(m,v)},doComplete:a.doComplete.bind(a),findDocumentSymbols:c.findDocumentSymbols.bind(c),findDocumentSymbols2:c.findDocumentSymbols2.bind(c),findColorSymbols:function(m,v){return c.findDocumentColors(m,v).then(function(y){return y.map(function(b){return b.range})})},findDocumentColors:c.findDocumentColors.bind(c),getColorPresentations:c.getColorPresentations.bind(c),doHover:s.doHover.bind(s),getFoldingRanges:_0,getSelectionRanges:eb,format:function(m,v,y){var b=void 0;if(v){var I=m.offsetAt(v.start),R=m.offsetAt(v.end)-I;b={offset:I,length:R}}var N={tabSize:y?y.tabSize:4,insertSpaces:y?y.insertSpaces:!0,eol:`
276
+ `};return u0(m.getText(),b,N).map(function(G){return di.replace(sr.create(m.positionAt(G.offset),m.positionAt(G.offset+G.length)),G.content)})}}}var M1=o(49055),L1=o(32407),N1=o(29387),D1=o(22130),B1=o(61682),j1=o(19757),V1=o(76239),U1=o(49032),W1=o(4570),H1=o(79375),Kv=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const tl=tb({});Ys.registerHelper("lint","json",function(e,r){return Kv(this,null,function*(){const{schema:n,setError:a}=r;tl.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const s=bc.create(r.id+".json","json",0,e),c=tl.parseJSONDocument(s),p=yield tl.doValidation(s,c);return p.length?a&&a(p[0].message):a&&a(void 0),p.map(m=>({from:Ys.Pos(m.range.start.line,m.range.start.character),to:Ys.Pos(m.range.end.line,m.range.end.character),message:m.message}))})}),Ys.registerHelper("hint","json",(e,r)=>Kv(void 0,null,function*(){const n=r.schema;if(!n)return;tl.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const a=e.getDoc().getCursor(),s=e.getTokenAt(a),c=bc.create(r.id+".json","json",0,e.getValue()),p=tl.parseJSONDocument(c),m=yield tl.doComplete(c,{line:a.line,character:a.ch},p),v=b=>{let I="";for(;b--;)I+=" ";return I};let y=m?m.items.map(b=>({text:b.insertText,displayText:b.label,filter:b.filterText||b.label,from:{line:b.textEdit.range.start.line,ch:b.textEdit.range.start.character},to:{line:b.textEdit.range.end.line,ch:b.textEdit.range.end.character},hint:(I,R,N)=>{const G="_$__REDOC_CURSOR_HERE";let ee=N.text.replace(/(\$1|\${1:[^}]+})/,G)||"";if(ee=ee.replace(/(\$\d+|\${[^}]+})/g,"")||"",I.setSelection(N.from,N.to),ee.indexOf(`
277
+ `)>-1){const oe=I.getLine(I.getCursor().line).search(/(\S|$)/);ee=ee.replace(/\n/g,`
278
+ `+v(oe))}I.replaceSelection(ee);const q=I.getSearchCursor(G,N.from);q.findNext()&&(I.setCursor(q.from()),q.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(y=y.filter(b=>b.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:Ys.Pos(a.line,s.start),to:Ys.Pos(a.line,a.ch),list:y}}));const rb=Qt.vJ`
279
+ .cm-s-material.CodeMirror {
280
+ background-color: var(--panel-samples-controls-background-color)!important;
281
+ color: var(--text-color-inverse)!important;
282
+ font-family: var(--code-font-family);
283
+ line-height: 18px;
284
+ padding: 10px;
285
+ }
286
+
287
+ .CodeMirror-lint-mark-error {
288
+ background-size: 4px;
289
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAVUlEQVR42mNgQAL/GRjigPg/EP8FYntkCX4gtoVKgvE/BoabcEVAhj6S5DUgfgFl/wFJ2gPxL6iuT1DF+kD2R5AYA5KRj6CS/FAMYvszIBltz4AFAAD9fz0YtLg13wAAAABJRU5ErkJggg==') !important;
290
+ }
291
+
292
+ .cm-s-material.CodeMirror-focused div.CodeMirror-selected {
293
+ background: rgba(255, 255, 255, 0.3) !important;
294
+ }
295
+
296
+ .cm-s-material .CodeMirror-code .cm-string.cm-property {
297
+ color: var(--code-block-tokens-property-string-color);
298
+ }
299
+
300
+ .cm-s-material .CodeMirror-code .cm-string {
301
+ color: var(--code-block-tokens-string-color);
302
+ }
303
+
304
+ .cm-s-material .CodeMirror-code .cm-atom {
305
+ color: var(--text-color-inverse);
306
+ }
307
+
308
+ div .cm-s-material .CodeMirror-matchingbracket {
309
+ outline: 1px solid grey;
310
+ text-decoration: none;
311
+ }
312
+
313
+ .react-codemirror2 {
314
+ display: flex;
315
+ flex-direction: column;
316
+ justify-content: flex-start;
317
+ overflow: hidden;
318
+
319
+ flex: 1;
320
+ }
321
+
322
+ .CodeMirror {
323
+ flex: 1;
324
+ border-radius: var(--panel-border-radius);
325
+ }
326
+ `,nb=Aa(({fieldState:e,fieldApi:r,onChange:n,onBlur:a,forwardedRef:s,id:c,mode:p,schema:m})=>{let v;const y=(oe,ae)=>{/^[a-zA-Z0-9_":]$/.test(ae.key)&&v.execCommand("autocomplete")},b=oe=>{v=oe,v.on("keyup",y)},I=()=>{v.refresh()},R=()=>v.showHint({completeSingle:!0});(0,Bt.useMount)(()=>{setTimeout(()=>{v.refresh()},0),document.addEventListener("click",I)}),(0,Bt.useUnmount)(()=>{document.removeEventListener("click",I)});const{value:N}=e,{setValue:G,setTouched:ee,setError:q}=r;return L.createElement(L.Fragment,null,L.createElement(rb,null),L.createElement(Jy.fk,{editorDidMount:b,value:N||"",ref:s,onBeforeChange:(oe,ae,pe)=>{G(pe),n&&n(pe)},onBlur:oe=>{ee(!1),a&&a(oe)},options:{mode:p||lc.Tr.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":R,"Ctrl-Space":R},hintOptions:{id:c,completeSingle:!1,schema:m},lint:{id:c,schema:m,setError:q}}}))});function ib({mediaType:e,mediaContent:r,properties:n,id:a,resolvedBody:s,formApi:c,getActiveSample:p,validate:m}){const v=e.examples||{},y=Object.keys(v),b=e.schema,I=Zi(b||{},e.name)||e.name===lc.Tr.MULTIPART||e.name===lc.Tr.URL_ENCODED,{exampleKey:R}=(0,$d.C6)(e.operation,v),N=(0,pt.YQ)((0,ar.P6)(a,e.name,R,v))||(0,ar.oY)(v[R],n),G=(0,L.useCallback)((oe="",ae="",pe=[])=>ve=>{(0,pt.WW)((0,ar.P6)(a,oe,ae,pe),ve)},[a]),ee=(0,L.useCallback)(oe=>{r==null||r.activateExampleName(oe),c.setValue("body",p(oe))},[c,p,r]),q=(0,L.useCallback)((oe,ae)=>{c.setValue(`body.${oe}`,ae)},[c]);return L.createElement(L.Fragment,null,y.length&&y.length!==1&&L.createElement($d.b_,{examples:v,onChange:ee,exampleKey:R,panel:"try-it"})||null,I?L.createElement(Ky,{mediaType:e,formApi:c,onChange:q}):L.createElement(nb,{id:"body"+a,field:"body",initialValue:N,schema:((s==null?void 0:s.content[e.name])||{}).schema,mode:e.name,validate:m,onChange:G(e.name,R,v)}))}const ab=(0,A.Pi)(ib);var ob=Object.defineProperty,sb=Object.defineProperties,lb=Object.getOwnPropertyDescriptors,Yv=Object.getOwnPropertySymbols,ub=Object.prototype.hasOwnProperty,fb=Object.prototype.propertyIsEnumerable,Jv=(e,r,n)=>r in e?ob(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,cb=(e,r)=>{for(var n in r||(r={}))ub.call(r,n)&&Jv(e,n,r[n]);if(Yv)for(var n of Yv(r))fb.call(r,n)&&Jv(e,n,r[n]);return e},db=(e,r)=>sb(e,lb(r));function pb({body:e,formApi:r,resolvedBody:n,properties:a,id:s,validate:c}){var p,m;const v=e.content,y=(0,L.useCallback)(R=>{var N;if(!v||!v.hasSample)return"";const G=(N=v.active)==null?void 0:N.examples;if(!(G!=null&&G[R]))return"";const ee=G==null?void 0:G[R].value,q=a?Hl()(ee,a,{arrayMerge:io.lN}):ee;return JSON.stringify(q,null,2)},[v,a]),b=(p=v==null?void 0:v.operation)==null?void 0:p.activeExampleName;(0,L.useEffect)(()=>{var R,N;if((R=v==null?void 0:v.operation)!=null&&R.activeMimeName){const G=(0,ar.P6)(s,v.operation.activeMimeName,b,(N=v==null?void 0:v.active)==null?void 0:N.examples);r.setValue("body",(0,pt.YQ)(G)||y(b||""))}else r.setValue("body",JSON.stringify(a||{},null,2))},[b,(m=v==null?void 0:v.operation)==null?void 0:m.activeMimeName,v==null?void 0:v.active]);const I=R=>L.createElement(Vy.C,db(cb({},R),{variant:"dark",fullWidth:!0,Label:Hy,Dropdown:Wy.Lt}));return L.createElement(L.Fragment,null,L.createElement(Uy.d,{content:e.content,renderDropdown:I},R=>L.createElement(ab,{mediaType:R,mediaContent:v,resolvedBody:n,id:s,properties:a,getActiveSample:y,formApi:r,validate:c})))}const hb=(0,A.Pi)(pb);var vb=o(61687);const gb=Aa(({initValue:e,paramEnum:r,fieldApi:n})=>{const[a,s]=(0,L.useState)(),c=r.map((v,y)=>({idx:y,value:v})),p=v=>{n.setValue(v.value),s(v.value)};(0,Bt.useMount)(()=>{if(!!e)if(Array.isArray(e)){const v=e.length?e[0]:"";s(v),n.setValue(v)}else s(e),n.setValue(e)});const m=()=>{n.setValue(""),s("")};return L.createElement(Nn.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:a,options:c,handleClear:m,onChange:p})}),mb=({name:e,param:r,place:n,renderParameter:a})=>{var s,c,p,m,v;const[y,b]=L.useState([]),I=()=>{b([...y,y.length?y[y.length-1]+1:0])},R=G=>{b(y.filter(ee=>ee!==G))},N=(s=r.schema.items)!=null&&s.fields?(c=r.schema.items)==null?void 0:c.fields:[{schema:((p=r.schema.items)==null?void 0:p.schema)||r.schema.items,name:"",required:r.required,description:(m=r.schema.items)==null?void 0:m.description,externalDocs:(v=r.schema.items)==null?void 0:v.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return L.createElement(L.Fragment,null,L.createElement(Xv,null,L.createElement(ht.lX,{required:r.required},e,"(",y.length," items)"),L.createElement("span",{onClick:I},"Add item +")),y==null?void 0:y.map((G,ee)=>L.createElement(Xv,{key:G},L.createElement(yb,{onClick:()=>R(G)},"delete"),N.map(q=>a(q,n,`${e}.[${G}]`,`[${ee}]${q.name&&"."+q.name}`)))))},Xv=Qt.ZP.div`
143
327
  display: flex;
144
328
  width: 100%;
145
329
  align-items: center;
@@ -160,12 +344,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
160
344
  color: #fff;
161
345
  }
162
346
  }
163
- `,my=Ut.ZP.span`
347
+ `,yb=Qt.ZP.span`
164
348
  background: transparent;
165
349
  border: none;
166
350
  cursor: pointer;
167
351
  position: relative;
168
- `;var Hl=(e=>(e.ARRAY="array",e.OBJECT="object",e))(Hl||{});function yy({schema:e,example:r}){return`(${e.type})`+(r?` ${r}`:"")}function by(e){const r={};return e.forEach(n=>{n.in&&(r[n.in]||(r[n.in]=[]),r[n.in].push(n))}),r}function xy({schema:e,required:r}){return n=>{if(r&&!n)return"Field is required";if(r&&e.type===Hl.ARRAY&&Array.isArray(n)){if(n.length>(e.rawSchema&&e.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${e.rawSchema.maxItems}`;if(n.length<(e.rawSchema&&e.rawSchema.minItems||0)){const a=e.rawSchema.minItems;return`You should select at least ${a===1?`${a} item`:`${a} items`}`}}}}function Sy(e){if(e.type===Hl.ARRAY){const r=e.default||e.example;if(!r&&typeof e.rawSchema.items!="boolean"&&Array.isArray(e.rawSchema.items)){if(e.rawSchema.items[0].default)return[e.rawSchema.items[0].default];if(e.rawSchema.items[0].example)return[e.rawSchema.items[0].example]}if(!r&&typeof e.rawSchema.items!="boolean"&&!Array.isArray(e.rawSchema.items)&&(0,Xn.isObject)(e.rawSchema.items)){if(e.rawSchema.items.default)return[e.rawSchema.items.default];if(e.rawSchema.items.example)return[e.rawSchema.items.example]}return r||[]}else return(Number.isInteger(e.default)?e.default.toString():e.default)||e.example}function wy({oneOfType:e}){return e}const Ay=["path","query","cookie","header"];function Cy({id:e,param:r,values:n}){const a=(0,h.useMemo)(()=>xy(r),[r]),o=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,f=Sy(r.schema),d=e.split(".").map(m=>(0,Bt.dw)(m));return o?h.createElement(ft.NI,null,h.createElement(vy,{initValue:f,paramEnum:o,field:e})):h.createElement(Dn,{fullWidth:!0,"data-cy":"parameter-input",id:e,field:e,placeholder:yy(r),validate:a,initialValue:f||(0,Bt.U2)(n,d),validateOnBlur:!0,validateOnChange:!0})}function Ey({values:e,operation:r}){const n=(0,h.useMemo)(()=>by(r.parameters||[]),[r]),a=(f,d,m,g)=>{var b;const x=m?(0,Bt.s1)(m,f.name):f.name,I=wy(f.schema),N=m?[d,m]:[f.in],j=(0,Bt.s1)(...N,(0,Bt.A8)(f.name));return I&&console.warn(`Unsupported parameter definition: "${I}"`),f.schema.type===Hl.ARRAY?h.createElement(gy,{key:j,name:x,param:f,place:d,renderParameter:a}):f.schema.type===Hl.OBJECT?(b=f.schema.fields)==null?void 0:b.map(W=>a(W,d,x)):h.createElement(ft.NI,{key:j},h.createElement(ft.lX,{required:f.required},g||x,":"),I?h.createElement(ft.GE,null,"Unsupported field schema definition"):h.createElement(Cy,{id:j,param:f,values:e}))},o=f=>{const d=n[f];return!d||!d.length?null:h.createElement(h.Fragment,{key:f},h.createElement(ft.NI,null,h.createElement(ft.iG,null," # ",f," parameters "),h.createElement("span",null,"\xA0")),d.map(m=>a(m,f)))};return h.createElement(ft.iA,null,Ay.map(o))}var Sh=s(93892),Xt=s(34469),Oy=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function Ty(e){return Oy(this,null,function*(){return(yield fetch(e)).json()})}const Py=Ut.ZP.div`
352
+ `;var bu=(e=>(e.ARRAY="array",e.OBJECT="object",e))(bu||{});function bb({schema:e,example:r}){return`(${e.type})`+(r?` ${r}`:"")}function xb(e){const r={};return e.forEach(n=>{n.in&&(r[n.in]||(r[n.in]=[]),r[n.in].push(n))}),r}function Sb({schema:e,required:r}){return n=>{if(r&&!n)return"Field is required";if(r&&e.type===bu.ARRAY&&Array.isArray(n)){if(n.length>(e.rawSchema&&e.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${e.rawSchema.maxItems}`;if(n.length<(e.rawSchema&&e.rawSchema.minItems||0)){const a=e.rawSchema.minItems;return`You should select at least ${a===1?`${a} item`:`${a} items`}`}}}}function wb(e){if(e.type===bu.ARRAY){const r=e.default||e.example;if(!r&&typeof e.rawSchema.items!="boolean"&&Array.isArray(e.rawSchema.items)){if(e.rawSchema.items[0].default)return[e.rawSchema.items[0].default];if(e.rawSchema.items[0].example)return[e.rawSchema.items[0].example]}if(!r&&typeof e.rawSchema.items!="boolean"&&!Array.isArray(e.rawSchema.items)&&(0,pt.Kn)(e.rawSchema.items)){if(e.rawSchema.items.default)return[e.rawSchema.items.default];if(e.rawSchema.items.example)return[e.rawSchema.items.example]}return r||[]}else return(Number.isInteger(e.default)?e.default.toString():e.default)||e.example}function Ab({oneOfType:e}){return e}const Cb=["path","query","cookie","header"];function Eb({id:e,param:r,values:n}){const a=(0,L.useMemo)(()=>Sb(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,c=wb(r.schema),p=e.split(".").map(m=>(0,pt.dw)(m));return s?L.createElement(ht.NI,null,L.createElement(gb,{initValue:c,paramEnum:s,field:e})):L.createElement(Bn,{fullWidth:!0,"data-cy":"parameter-input",id:e,field:e,placeholder:bb(r),validate:a,initialValue:c||(0,pt.U2)(n,p),validateOnBlur:!0,validateOnChange:!0})}function Ob({values:e,operation:r}){const n=(0,L.useMemo)(()=>xb(r.parameters||[]),[r]),a=(c,p,m,v)=>{var y;const b=m?(0,pt.s1)(m,c.name):c.name,I=Ab(c.schema),R=m?[p,m]:[c.in],N=(0,pt.s1)(...R,(0,pt.A8)(c.name));return I&&console.warn(`Unsupported parameter definition: "${I}"`),c.schema.type===bu.ARRAY?L.createElement(mb,{key:N,name:b,param:c,place:p,renderParameter:a}):c.schema.type===bu.OBJECT?(y=c.schema.fields)==null?void 0:y.map(G=>a(G,p,b)):L.createElement(ht.NI,{key:N},L.createElement(ht.lX,{required:c.required},v||b,":"),I?L.createElement(ht.GE,null,"Unsupported field schema definition"):L.createElement(Eb,{id:N,param:c,values:e}))},s=c=>{const p=n[c];return!p||!p.length?null:L.createElement(L.Fragment,{key:c},L.createElement(ht.NI,null,L.createElement(ht.iG,null," # ",c," parameters "),L.createElement("span",null,"\xA0")),p.map(m=>a(m,c)))};return L.createElement(ht.iA,null,Cb.map(s))}var Tb=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function Pb(e){return Tb(this,null,function*(){return(yield fetch(e)).json()})}const Ib=Qt.ZP.div`
169
353
  position: relative;
170
354
  height: 4px;
171
355
  display: block;
@@ -267,7 +451,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
267
451
  right: -8%;
268
452
  }
269
453
  }
270
- `,wh=()=>h.createElement(Py,null,h.createElement("div",{className:"indeterminate"}));var vn=s(81804),Iy=Object.defineProperty,ky=Object.defineProperties,Fy=Object.getOwnPropertyDescriptors,Ah=Object.getOwnPropertySymbols,Ry=Object.prototype.hasOwnProperty,Ly=Object.prototype.propertyIsEnumerable,Ch=(e,r,n)=>r in e?Iy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,My=(e,r)=>{for(var n in r||(r={}))Ry.call(r,n)&&Ch(e,n,r[n]);if(Ah)for(var n of Ah(r))Ly.call(r,n)&&Ch(e,n,r[n]);return e},Ny=(e,r)=>ky(e,Fy(r));const Dy=Ut.ZP.input`
454
+ `,Qv=()=>L.createElement(Ib,null,L.createElement("div",{className:"indeterminate"})),Fb=Qt.ZP.div`
455
+ font-family: var(--font-family-monospaced);
456
+ margin-top: 10px;
457
+ line-height: 1;
458
+ padding-left: 10px;
459
+ border-left: 1px solid gray;
460
+ `,kb=Qt.ZP.div`
461
+ margin-bottom: 15px;
462
+ `,Rb=Qt.ZP.div`
463
+ padding: 8px 0 20px;
464
+ `,Mb=Qt.ZP.div`
465
+ padding: 4px 0;
466
+ `;var Lb=Object.defineProperty,Nb=Object.defineProperties,Db=Object.getOwnPropertyDescriptors,Zv=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,jb=Object.prototype.propertyIsEnumerable,qv=(e,r,n)=>r in e?Lb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Vb=(e,r)=>{for(var n in r||(r={}))Bb.call(r,n)&&qv(e,n,r[n]);if(Zv)for(var n of Zv(r))jb.call(r,n)&&qv(e,n,r[n]);return e},Ub=(e,r)=>Nb(e,Db(r));const Wb=Qt.ZP.input`
271
467
  cursor: pointer;
272
468
  margin-left: 0;
273
469
  margin-right: 5px;
@@ -276,7 +472,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
276
472
  align-self: baseline;
277
473
  margin-top: 0;
278
474
  margin-bottom: 0;
279
- `,By=Ut.ZP.label`
475
+ `,Hb=Qt.ZP.label`
280
476
  display: inline-block;
281
477
  cursor: pointer;
282
478
  vertical-align: middle;
@@ -286,7 +482,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
286
482
 
287
483
  overflow-wrap: break-word;
288
484
  line-height: 20px;
289
- `,jy=Ut.ZP.div`
485
+ `,zb=Qt.ZP.div`
290
486
  width: ${({fullWidth:e})=>e?"100%":"50%"};
291
487
  display: inline-flex;
292
488
  align-items: center;
@@ -300,208 +496,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
300
496
  margin-top: 5px;
301
497
  }
302
498
  `}
303
- `;function Vy(e,r){const{fullWidth:n,id:a,label:o,nowrap:f}=e;return h.createElement(jy,{fullWidth:n,nowrap:f},h.createElement(Dy,Ny(My({},e),{type:"checkbox",ref:r})),h.createElement(By,{htmlFor:a},o))}const Eh=(0,h.forwardRef)(Vy);var Uy=Object.defineProperty,Wy=(e,r,n)=>r in e?Uy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Hy=(e,r,n)=>(Wy(e,typeof r!="symbol"?r+"":r,n),n);const zy=11;class Gy extends h.Component{constructor(){super(...arguments),Hy(this,"state",{collapsed:!0})}onCheckBoxClick(r){const n=r.target.value,a=r.target.checked;this.props.fieldApi.setTouched(!0);const o=this.props.fieldApi.getValue()||[];let f;if(a)f=[...o,n];else{const d=o.indexOf(n);f=[...o.slice(0,d),...o.slice(d+1)]}this.props.fieldApi.setValue(f)}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:a,maxDisplayedItems:o,showControls:f,trimItemsLength:d}=this.props,{collapsed:m}=this.state,g=n.getError(),b=o||zy,x=d&&this.state.collapsed?r.slice(0,b):r;return h.createElement("div",null,f?h.createElement(Ky,null,h.createElement(vn.SamplesControlButton,{onClick:()=>{this.selectAll()}},"Select all"),h.createElement(vn.SamplesControlButton,{onClick:()=>{this.clearAll()}},"Clear")):null,h.createElement("div",null,x.map(I=>h.createElement(Eh,{fullWidth:!0,id:I,value:I,checked:this.isFieldChecked(I),label:I,key:I,onChange:N=>{this.onCheckBoxClick(N),a&&n.validate()}})),r.length>b&&d?h.createElement(Yy,{onClick:()=>{this.toggle()}},m?"Show all":"Collapse"):null),g?h.createElement(ft.Xq,null,g):"")}}const $y=Vr(Gy),Ky=(0,Ut.ZP)(vn.SampleControls)`
499
+ `;function Gb(e,r){const{fullWidth:n,id:a,label:s,nowrap:c}=e;return L.createElement(zb,{fullWidth:n,nowrap:c},L.createElement(Wb,Ub(Vb({},e),{type:"checkbox",ref:r})),L.createElement(Hb,{htmlFor:a},s))}const _v=(0,L.forwardRef)(Gb),$b=11,Kb=Aa(({items:e,fieldApi:r,validateOnChange:n,maxDisplayedItems:a,showControls:s,trimItemsLength:c})=>{const[p,m]=(0,L.useState)(!0),v=q=>{const oe=q.target.value,ae=q.target.checked;r.setTouched(!0);const pe=r.getValue()||[];let ve;if(ae)ve=[...pe,oe];else{const me=pe.indexOf(oe);ve=[...pe.slice(0,me),...pe.slice(me+1)]}r.setValue(ve)},y=q=>r.getValue().includes(q),b=()=>{m(q=>!q)},I=()=>{r.setValue(e)},R=()=>{r.setValue([])},N=r.getError(),G=a||$b,ee=c&&p?e.slice(0,G):e;return L.createElement("div",null,s?L.createElement(Yb,null,L.createElement(Bt.SamplesControlButton,{onClick:()=>{I()}},"Select all"),L.createElement(Bt.SamplesControlButton,{onClick:()=>{R()}},"Clear")):null,L.createElement("div",null,ee.map(q=>L.createElement(_v,{fullWidth:!0,id:q,value:q,checked:y(q),label:q,key:q,onChange:oe=>{v(oe),n&&r.validate()}})),e.length>G&&c?L.createElement(Jb,{onClick:()=>{b()}},p?"Show all":"Collapse"):null),N?L.createElement(ht.Xq,null,N):"")}),Yb=(0,Qt.ZP)(Bt.SampleControls)`
304
500
  opacity: 1;
305
501
  text-align: left;
306
- `,Yy=(0,Ut.ZP)(vn.SamplesControlButton)`
502
+ `,Jb=(0,Qt.ZP)(Bt.SamplesControlButton)`
307
503
  float: right;
308
- `;function Oh(e){const{scopes:r,id:n}=e;let a=[];try{a=JSON.parse((0,Bt.YQ)(`auth.${n}.scopes`))}catch(o){}return!r||!r.length?h.createElement(h.Fragment,null):h.createElement(ft.NI,null,h.createElement(ft.lX,null," Scopes: "),h.createElement($y,{field:`auth.${n}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}var Jy=Object.defineProperty,Xy=Object.defineProperties,Qy=Object.getOwnPropertyDescriptors,Th=Object.getOwnPropertySymbols,Zy=Object.prototype.hasOwnProperty,_y=Object.prototype.propertyIsEnumerable,Pd=(e,r,n)=>r in e?Jy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,qf=(e,r)=>{for(var n in r||(r={}))Zy.call(r,n)&&Pd(e,n,r[n]);if(Th)for(var n of Th(r))_y.call(r,n)&&Pd(e,n,r[n]);return e},Id=(e,r)=>Xy(e,Qy(r)),zl=(e,r,n)=>(Pd(e,typeof r!="symbol"?r+"":r,n),n),qy=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function e0(e){if(!e)return"Field is required"}class Gl extends h.Component{constructor(){super(...arguments),zl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),zl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),zl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),zl(this,"handleCodeVerifierChange",r=>qy(this,[r],function*({target:{value:n}}){const a=yield ah(n);this.setState({codeVerifier:n,validCodeChallenge:a})}))}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,ja.CY)(43);ah(r).then(n=>{this.setState({codeVerifier:r,codeChallenge:n,validCodeChallenge:n})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:n,usePkce:a,id:o,tokenUrl:f,authCorsProxyUrl:d,tokenEndpointAuthMethod:m}=this.props;if(!(0,ja.Qr)(this.errors))return;this.setState({loading:!0,error:null});const g=d?d+(0,Xt.jg)(r):r,b=d&&f?d+(0,Xt.jg)(f):f,x=this.props.formApi.getValue(`auth.${o}.scopes`),I={authorizationUrl:g.startsWith("http")?g:this.props.server+g,clientId:this.values.client_id,scopes:x,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:N=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,N),this.setState({loading:!1,error:null})},errorCallback:N=>{this.setState({loading:!1,error:(N==null?void 0:N.message)||"Failed to retrieve the access token"})}};if(n==="implicit"&&Ai.authorizeImplicit(I),!(0,Xt.xl)(m)){console.log(`Unsupported token endpoint auth method: ${m}`);return}n==="authorizationCode"&&Ai.authorizeAuthorizationCode(qf(Id(qf({},I),{tokenUrl:b!=null&&b.startsWith("http")?b:this.props.server+b,clientSecret:this.values.client_secret,extraHeaders:(0,Xt.Or)({authMethod:m,clientId:this.values.client_id,clientSecret:this.values.client_secret})}),a&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),Ai.clearRedirectData(this.props.flow)}render(){const{error:r,loading:n}=this.state,{id:a,scopes:o,authorizationUrl:f,flow:d,usePkce:m,defaultValues:g}=this.props;if(!f)return h.createElement(ft.Xq,null,"No flow info");let b=(0,Bt.YQ)(`auth.${a}.token`)||JSON.stringify(g==null?void 0:g.token);b=b?JSON.parse(b):"";const x=(0,Bt.Al)(a,"client_id"),I={field:`auth.${a}.client_id`,fullWidth:!0,initialValue:(0,Bt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(g==null?void 0:g.client_id),initValue:(0,Bt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(g==null?void 0:g.client_id),placeholder:"Your OAuth2 app Client ID",validate:e0,validateOnBlur:!0,validateOnChange:!0};return h.createElement("div",null,h.createElement(ft.n5,null,h.createElement(ft.NI,null,h.createElement(ft.lX,null," Client ID: "),x?h.createElement(Wl,Id(qf({},I),{options:x})):h.createElement(Dn,Id(qf({},I),{"data-cy":"client-id-input",panel:"try-it"}))),d==="authorizationCode"&&h.createElement(h.Fragment,null,(!(m!=null&&m.hideClientSecretInput)||!m)&&h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Client Secret:"),h.createElement(Dn,{type:"password",fullWidth:!0,field:`auth.${a}.client_secret`,initialValue:(0,Bt.YQ)(`auth.${a}.client_secret`)||(g==null?void 0:g.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),m&&!m.disableManualConfiguration&&h.createElement(n0,null,h.createElement(Eh,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&h.createElement(i0,null,h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Code Verifier"),h.createElement(Ul,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,panel:"try-it","data-cy":"code-verifier-input"})),h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Code Challenge"),h.createElement(Ul,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:N}})=>{this.setState({codeChallenge:N})},inputActionButton:this.pkceInputActionButtonProps,panel:"try-it","data-cy":"code-challenge-input"}))))),h.createElement(Dn,{fullWidth:!0,field:`auth.${a}.token`,type:"hidden",initialValue:b,panel:"try-it"}),h.createElement(Oh,{id:a,scopes:o}),this.values.token&&this.values.token.access_token?h.createElement(ft.NI,null,h.createElement(ft.lX,null," Access Token: "),h.createElement(Ul,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token,panel:"try-it"})):null),h.createElement(r0,null,this.values.token&&this.values.token.access_token?h.createElement(vn.Button,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):n?h.createElement(h.Fragment,null,h.createElement(vn.Button,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),h.createElement(wh,null)):h.createElement(vn.Button,{fullWidth:!0,disabled:!(0,ja.Qr)(this.errors),onClick:()=>{this.handleAuthorize(f)}},"Authorize")),n||r||!this.values.token||!this.values.token.access_token&&h.createElement(ft.n5,null,h.createElement(ft.NI,null,n?h.createElement(ft.GE,null,"Please, finish your authorization flow or cancel authorization."):r?h.createElement(h.Fragment,null,h.createElement(t0,null,h.createElement(ft.Xq,null,r))):!this.values.token||!this.values.token.access_token?h.createElement(ft.GE,null," No Access Token. Please, Authorize. "):null)))}}zl(Gl,"contextType",Xn.OptionsContext);const t0=Ut.ZP.div`
309
- font-family: var(--font-family-monospaced);
310
- margin-top: 10px;
311
- line-height: 1;
312
- padding-left: 10px;
313
- border-left: 1px solid gray;
314
- `,r0=Ut.ZP.div`
315
- margin-bottom: 15px;
316
- `,n0=Ut.ZP.div`
317
- padding: 8px 0 20px;
318
- `,i0=Ut.ZP.div`
319
- padding: 4px 0;
320
- `;var a0=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function o0(e){var r,n;const{scheme:a,defaultValues:o}=e,[f,d]=(0,h.useState)({}),[m,g]=(0,h.useState)(),[b,x]=(0,h.useState)(!1);(0,h.useEffect)(()=>{I(a.openIdConnectUrl)},[a.openIdConnectUrl]);const I=N=>a0(this,null,function*(){x(!0),g("");try{const j=yield Ty(N);d(j)}catch(j){g(j.message)}x(!1)});return b?h.createElement(s0,null):m?h.createElement(Ph,{message:m}):h.createElement("div",null,h.createElement("div",null,(r=f==null?void 0:f.response_types_supported)!=null&&r.includes("token")?h.createElement(h.Fragment,null,h.createElement(Bn.S6,null,"OAuth2 Implicit Flow"),h.createElement(Gl,{key:e.id,authorizationUrl:f.authorization_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:f.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,flow:"implicit",defaultValues:o})):(n=f==null?void 0:f.response_types_supported)!=null&&n.includes("code")?h.createElement(h.Fragment,null,h.createElement(Bn.S6,null,"OAuth2 Authorization Flow"),h.createElement(Gl,{key:e.id,authorizationUrl:f.authorization_endpoint,tokenUrl:f.token_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:f.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,tokenEndpointAuthMethod:f==null?void 0:f.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:o})):h.createElement("div",null,"Unsupported flow")))}function s0(){return h.createElement("div",null,h.createElement("div",null,h.createElement("div",null,"Fetching OpenID Connect metadata..."),h.createElement(wh,null)))}function Ph({message:e}){return h.createElement("div",null,h.createElement("div",null,h.createElement(ft.Xq,null,e)))}var l0=Object.defineProperty,u0=Object.defineProperties,f0=Object.getOwnPropertyDescriptors,Ih=Object.getOwnPropertySymbols,c0=Object.prototype.hasOwnProperty,d0=Object.prototype.propertyIsEnumerable,kd=(e,r,n)=>r in e?l0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,kh=(e,r)=>{for(var n in r||(r={}))c0.call(r,n)&&kd(e,n,r[n]);if(Ih)for(var n of Ih(r))d0.call(r,n)&&kd(e,n,r[n]);return e},Fh=(e,r)=>u0(e,f0(r)),ec=(e,r,n)=>(kd(e,typeof r!="symbol"?r+"":r,n),n),p0=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function h0(e){if(!e)return"Token is required"}class v0 extends h.Component{constructor(){super(...arguments),ec(this,"state",{error:"",loading:!1,tokenMasked:!0}),ec(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,Bt.WW)(`auth.${this.props.id}.token`,"")}),ec(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),ec(this,"requestToken",()=>p0(this,null,function*(){if(this.state.loading)return;const{server:r,flow:n,authCorsProxyUrl:a}=this.props,o=a&&n.tokenUrl?a+(0,Xt.jg)(n.tokenUrl):n.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const f=this.values.client_id,d=this.values.client_secret;if(!f||!d){console.log("Provide client_id and client_secret");return}this.setState({loading:!0});const m=n["x-tokenEndpointAuthMethod"];if(!(0,Xt.xl)(m)){console.log(`Unsupported token endpoint auth method: ${m}`);return}yield Ai.authorizeClientCredentials({tokenUrl:o.startsWith("http")?o:r+o,clientId:f,clientSecret:d,scopes:this.values.scopes,extraHeaders:(0,Xt.Or)({authMethod:m,clientId:f,clientSecret:d}),successCallback:g=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,g),this.setState({loading:!1})},errorCallback:g=>{this.clearToken(),this.setState({error:g.message,loading:!1})}})}))}get values(){var r,n,a;return((a=(n=(r=this.props.form)==null?void 0:r.values)==null?void 0:n.auth)==null?void 0:a[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:a}=this.state,{id:o,defaultValues:f}=this.props,d=Object.keys(this.props.flow.scopes);let m=(0,Bt.YQ)(`auth.${o}.token`)||JSON.stringify(f==null?void 0:f.token);m=m?JSON.parse(m):"";const g=(0,Bt.Al)(o,"client_id"),b={field:`auth.${o}.client_id`,fullWidth:!0,initialValue:(0,Bt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(f==null?void 0:f.client_id),initValue:(0,Bt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(f==null?void 0:f.client_id),placeholder:"Your OAuth2 app Client ID"};return h.createElement(h.Fragment,null,h.createElement(ft.n5,null,h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Client ID:"),g?h.createElement(Wl,Fh(kh({},b),{options:g})):h.createElement(Dn,Fh(kh({},b),{type:"password",panel:"try-it"}))),h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Client Secret:"),h.createElement(Dn,{type:"password",fullWidth:!0,field:`auth.${o}.client_secret`,initialValue:(0,Bt.YQ)(`auth.${o}.client_secret`)||(f==null?void 0:f.client_secret),panel:"try-it"})),h.createElement(Dn,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:m,validate:h0}),h.createElement(Oh,{id:o,scopes:d})),h.createElement(vn.Button,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),h.createElement(ft.ph,null," Access Token "),n?h.createElement(ft.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",h.createElement("pre",null,n)," "):this.values.token&&this.values.token.access_token?h.createElement(ft.TR,null,h.createElement(ft.WA,{length:this.values.token.access_token.length,masked:a},this.values.token.access_token),h.createElement(ft.lf,{onClick:this.toggleTokenMask},a?"Show":"Hide"," "),h.createElement(ft.h,{onClick:this.clearToken}," Clear ")):h.createElement(ft.Xq,{style:{marginBottom:"1em"}},"No token"))}}const g0=v0;var m0=Object.defineProperty,y0=Object.defineProperties,b0=Object.getOwnPropertyDescriptors,Rh=Object.getOwnPropertySymbols,x0=Object.prototype.hasOwnProperty,S0=Object.prototype.propertyIsEnumerable,Fd=(e,r,n)=>r in e?m0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ms=(e,r)=>{for(var n in r||(r={}))x0.call(r,n)&&Fd(e,n,r[n]);if(Rh)for(var n of Rh(r))S0.call(r,n)&&Fd(e,n,r[n]);return e},ys=(e,r)=>y0(e,b0(r)),Lh=(e,r,n)=>(Fd(e,typeof r!="symbol"?r+"":r,n),n);class w0 extends h.Component{constructor(){super(...arguments),Lh(this,"state",{activeScheme:0}),Lh(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,Bt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const a=r.operation.security.map(d=>d.schemes.map(m=>m.id).join(" and ")),o=(0,Bt.YQ)("securityRequirementName"),f=a.findIndex(d=>d===o);return{activeScheme:f<0?0:f}}render(){const{securityDefaults:r}=this.props,{activeScheme:n}=this.state,a=this.props.operation.security,f=a.map(d=>d.schemes.map(m=>m.id).join(" and ")).filter(Boolean).map((d,m)=>({value:d,idx:m}));return f.length===0?h.createElement(Ph,{message:"Cannot find security schema in the definition"}):h.createElement(h.Fragment,null,h.createElement(ft.n5,null,f.length>1&&h.createElement(ft.NI,null,h.createElement(ft.lX,null," Security scheme: "),h.createElement(Bn.VD,{variant:"dark",fullWidth:!0,options:f,value:f[n].value,onChange:this.handleSchemeChange}))||null,a[n].schemes.map(d=>{var m,g,b,x,I,N,j;const W=(0,Bt.A8)(d.id);if(d.type==="apiKey"){const ee=(0,Bt.Al)(W,""),te={field:`auth.${W}`,fullWidth:!0,initialValue:(0,Xt.NG)(d)||(0,Bt.YQ)(`auth.${W}`)||(r==null?void 0:r[W]),initValue:(0,Xt.NG)(d)||(0,Bt.YQ)(`auth.${W}`)||(r==null?void 0:r[W]),validate:Xt.np,validateOnBlur:!0,validateOnChange:!0};return h.createElement(ft.NI,{key:W},h.createElement(ft.lX,null," ",d.name,": "),ee?h.createElement(Wl,ys(ms({},te),{options:ee})):h.createElement(Dn,ys(ms({},te),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(d.type==="http"){if(d.scheme==="basic"){const ee=(0,Bt.Al)(W,"username"),te={field:`auth.${W}.username`,fullWidth:!0,initialValue:(0,Bt.YQ)(`auth.${W}.username`)||((m=r==null?void 0:r[W])==null?void 0:m.username),initValue:(0,Bt.YQ)(`auth.${W}.username`)||((g=r==null?void 0:r[W])==null?void 0:g.username),validate:Xt.np,validateOnBlur:!0,validateOnChange:!0};return h.createElement(h.Fragment,{key:W},h.createElement(ft.NI,null,h.createElement(ft.lX,null," ",(0,jl.l)("tryItAuthBasicUsername"),": "),ee?h.createElement(Wl,ys(ms({},te),{options:ee})):h.createElement(Dn,ys(ms({},te),{panel:"try-it"}))),h.createElement(ft.NI,null,h.createElement(ft.lX,null," ",(0,jl.l)("tryItAuthBasicPassword"),": "),h.createElement(Dn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${W}.password`,initialValue:(0,Bt.YQ)(`auth.${W}.password`)||((b=r==null?void 0:r[W])==null?void 0:b.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(d.scheme==="bearer"){const ee=(0,Bt.Al)(W,""),te={field:`auth.${W}`,fullWidth:!0,initialValue:(0,Bt.YQ)(`auth.${W}`)||(r==null?void 0:r[W]),initValue:(0,Bt.YQ)(`auth.${W}`)||(r==null?void 0:r[W]),validate:Xt.np,validateOnBlur:!0,validateOnChange:!0};return h.createElement(h.Fragment,{key:W},h.createElement(ft.NI,null,h.createElement(ft.lX,null," Bearer Token: "),ee?h.createElement(Wl,ys(ms({},te),{options:ee})):h.createElement(Dn,ys(ms({},te),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(d.type==="oauth2"&&d.flows&&d.flows.clientCredentials)return h.createElement(g0,{key:W,flow:d.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:W,form:this.props.form,formApi:this.props.formApi,clientId:d.flows.clientCredentials["x-defaultClientId"]||d["x-defaultClientId"],defaultValues:r==null?void 0:r[W]});if(d.type==="oauth2"&&d.flows&&d.flows.implicit)return h.createElement(Gl,{key:W,authorizationUrl:d.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((I=(x=d==null?void 0:d.flows)==null?void 0:x.implicit)==null?void 0:I.scopes)||{}),server:this.props.activeServer,id:W,form:this.props.form,formApi:this.props.formApi,clientId:d.flows.implicit["x-defaultClientId"]||d["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[W]});if(d.type==="oauth2"&&d.flows&&d.flows.authorizationCode)return h.createElement(Gl,{key:W,authorizationUrl:d.flows.authorizationCode.authorizationUrl,tokenUrl:d.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((N=d.flows.authorizationCode)==null?void 0:N.scopes)||{}),server:this.props.activeServer,id:W,form:this.props.form,formApi:this.props.formApi,clientId:d.flows.authorizationCode["x-defaultClientId"]||d["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:d.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:d.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[W]});if(d.type==="oauth2"){let ee=(0,Bt.YQ)(`auth.${W}.token`)||JSON.stringify((j=r==null?void 0:r[W])==null?void 0:j.token);return ee=ee?JSON.parse(ee):{},h.createElement(h.Fragment,{key:W},h.createElement(ft.NI,null,h.createElement(ft.lX,null," Access Token Type: "),h.createElement(Dn,{fullWidth:!0,field:`auth.${W}.token.token_type`,initialValue:ee.token_type||"Bearer",panel:"try-it"})),h.createElement(ft.NI,null,h.createElement(ft.lX,null," Access Token: "),h.createElement(Dn,{type:"password",fullWidth:!0,field:`auth.${W}.token.access_token`,validate:Xt.np,initialValue:ee.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(d.type==="openIdConnect")return h.createElement(o0,{key:W,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:W,form:this.props.form,formApi:this.props.formApi,scheme:d,clientId:d["x-defaultClientId"],defaultValues:r==null?void 0:r[W]})}})),h.createElement("small",null,h.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Rd=s(74032),tc=s(43940),A0=Object.defineProperty,rc=Object.getOwnPropertySymbols,Mh=Object.prototype.hasOwnProperty,Nh=Object.prototype.propertyIsEnumerable,Dh=(e,r,n)=>r in e?A0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,C0=(e,r)=>{for(var n in r||(r={}))Mh.call(r,n)&&Dh(e,n,r[n]);if(rc)for(var n of rc(r))Nh.call(r,n)&&Dh(e,n,r[n]);return e},Bh=(e,r)=>{var n={};for(var a in e)Mh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&rc)for(var a of rc(e))r.indexOf(a)<0&&Nh.call(e,a)&&(n[a]=e[a]);return n},E0=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});const jh=(0,h.forwardRef)((e,r)=>{var n=Bh(e,[]);const a=n,{schema:o,contentName:f,onChange:d,name:m}=a,g=Bh(a,["schema","contentName","onChange","name"]),{render:b}=Pn(C0({field:m},g)),x=I=>E0(void 0,null,function*(){const N=yield oy(I.target.files,o);d(f,N)});return b(h.createElement("input",{"data-cy":"file-upload-input",type:"file",id:n.id,className:n.className,name:n.name,onChange:x,multiple:n.multiple,accept:n.accept,ref:r}))});jh.displayName="FileUpload";const O0=(0,$i.Pi)(e=>{var r;const{mediaType:n,onChange:a,formApi:o}=e,f=n.examples||{},{exampleKey:d}=(0,Rd.C6)(n.operation,f),m=(r=f[d])==null?void 0:r.rawValue,g=T0(n);(0,h.useEffect)(()=>o&&g.forEach(x=>{var I,N;const j=m==null?void 0:m[x.name],W=(N=(I=x.example)!=null?I:j==null?void 0:j.example)!=null?N:j,ee=typeof W=="object"?JSON.stringify(W):W;W!==void 0&&o.setValue("body."+x.name,`${ee}`)}),[d]);const b=n.schema||{};return fh(b,n.name)?h.createElement(Vh,null,h.createElement(ft.NI,null,h.createElement(Uh,{fullWidth:!0,id:`body.${n.name}`,name:`body.${n.name}`,accept:uh(n.name),schema:b,contentName:n.name,onChange:a}))):b.type!==gs.OBJECT&&!g?(console.warn(`Invalid schema for request body and mime type: "${n.name}"`,b),null):h.createElement(Vh,null,g.map(x=>{const I=x.schema||{contentMediaType:"",type:"",description:""},N=n.name===tc.T.MULTIPART&&ay(I),j=I.contentMediaType||"",W=N?h.createElement(Uh,{fullWidth:!0,id:"body."+x.name,name:"body."+x.name,accept:uh(j),multiple:I.type==="array",schema:I,contentName:x.name,onChange:a}):h.createElement(Dn,{fullWidth:!0,id:"body."+x.name,field:"body."+x.name,placeholder:I.description||x.name,panel:"try-it"});return h.createElement(ft.NI,{key:x.name},h.createElement(ft.lX,null,x.name,":"),W)}))});function T0(e){var r,n,a,o,f;return((n=(r=e.schema)==null?void 0:r.oneOf)!=null&&n.length?((o=e.schema)==null?void 0:o.oneOf[(a=e.schema)==null?void 0:a.activeOneOf].fields)||[]:((f=e.schema)==null?void 0:f.fields)||[]).filter(d=>!d.schema.readOnly)}const Vh=Ut.ZP.div`
321
- > div {
322
- margin-top: 10px;
323
- }
324
- `,Uh=(0,Ut.ZP)(jh)`
325
- ${mh("try-it")};
326
- ${({inputType:e})=>e==="password"?"padding-right: 40px;":""};
327
- ${({fullWidth:e})=>e?"width: 100%;":""}
328
- `;var Wh=s(50397);const P0=(0,Ut.ZP)(Wh.A3)`
329
- border-radius: var(--panel-border-radius);
330
- margin-bottom: 10px;
331
- `;var I0=s(63277),bs=s(23326);function nc(e,r){r===void 0&&(r=!1);var n=e.length,a=0,o="",f=0,d=16,m=0,g=0,b=0,x=0,I=0;function N(de,we){for(var xe=0,Ee=0;xe<de||!we;){var ye=e.charCodeAt(a);if(ye>=48&&ye<=57)Ee=Ee*16+ye-48;else if(ye>=65&&ye<=70)Ee=Ee*16+ye-65+10;else if(ye>=97&&ye<=102)Ee=Ee*16+ye-97+10;else break;a++,xe++}return xe<de&&(Ee=-1),Ee}function j(de){a=de,o="",f=0,d=16,I=0}function W(){var de=a;if(e.charCodeAt(a)===48)a++;else for(a++;a<e.length&&xs(e.charCodeAt(a));)a++;if(a<e.length&&e.charCodeAt(a)===46)if(a++,a<e.length&&xs(e.charCodeAt(a)))for(a++;a<e.length&&xs(e.charCodeAt(a));)a++;else return I=3,e.substring(de,a);var we=a;if(a<e.length&&(e.charCodeAt(a)===69||e.charCodeAt(a)===101))if(a++,(a<e.length&&e.charCodeAt(a)===43||e.charCodeAt(a)===45)&&a++,a<e.length&&xs(e.charCodeAt(a))){for(a++;a<e.length&&xs(e.charCodeAt(a));)a++;we=a}else I=3;return e.substring(de,we)}function ee(){for(var de="",we=a;;){if(a>=n){de+=e.substring(we,a),I=2;break}var xe=e.charCodeAt(a);if(xe===34){de+=e.substring(we,a),a++;break}if(xe===92){if(de+=e.substring(we,a),a++,a>=n){I=2;break}var Ee=e.charCodeAt(a++);switch(Ee){case 34:de+='"';break;case 92:de+="\\";break;case 47:de+="/";break;case 98:de+="\b";break;case 102:de+="\f";break;case 110:de+=`
332
- `;break;case 114:de+="\r";break;case 116:de+=" ";break;case 117:var ye=N(4,!0);ye>=0?de+=String.fromCharCode(ye):I=4;break;default:I=5}we=a;continue}if(xe>=0&&xe<=31)if($l(xe)){de+=e.substring(we,a),I=2;break}else I=6;a++}return de}function te(){if(o="",I=0,f=a,g=m,x=b,a>=n)return f=n,d=17;var de=e.charCodeAt(a);if(Ld(de)){do a++,o+=String.fromCharCode(de),de=e.charCodeAt(a);while(Ld(de));return d=15}if($l(de))return a++,o+=String.fromCharCode(de),de===13&&e.charCodeAt(a)===10&&(a++,o+=`
333
- `),m++,b=a,d=14;switch(de){case 123:return a++,d=1;case 125:return a++,d=2;case 91:return a++,d=3;case 93:return a++,d=4;case 58:return a++,d=6;case 44:return a++,d=5;case 34:return a++,o=ee(),d=10;case 47:var we=a-1;if(e.charCodeAt(a+1)===47){for(a+=2;a<n&&!$l(e.charCodeAt(a));)a++;return o=e.substring(we,a),d=12}if(e.charCodeAt(a+1)===42){a+=2;for(var xe=n-1,Ee=!1;a<xe;){var ye=e.charCodeAt(a);if(ye===42&&e.charCodeAt(a+1)===47){a+=2,Ee=!0;break}a++,$l(ye)&&(ye===13&&e.charCodeAt(a)===10&&a++,m++,b=a)}return Ee||(a++,I=1),o=e.substring(we,a),d=13}return o+=String.fromCharCode(de),a++,d=16;case 45:if(o+=String.fromCharCode(de),a++,a===n||!xs(e.charCodeAt(a)))return d=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=W(),d=11;default:for(;a<n&&se(de);)a++,de=e.charCodeAt(a);if(f!==a){switch(o=e.substring(f,a),o){case"true":return d=8;case"false":return d=9;case"null":return d=7}return d=16}return o+=String.fromCharCode(de),a++,d=16}}function se(de){if(Ld(de)||$l(de))return!1;switch(de){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function ie(){var de;do de=te();while(de>=12&&de<=15);return de}return{setPosition:j,getPosition:function(){return a},scan:r?ie:te,getToken:function(){return d},getTokenValue:function(){return o},getTokenOffset:function(){return f},getTokenLength:function(){return a-f},getTokenStartLine:function(){return g},getTokenStartCharacter:function(){return f-x},getTokenError:function(){return I}}}function Ld(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function $l(e){return e===10||e===13||e===8232||e===8233}function xs(e){return e>=48&&e<=57}function k0(e,r,n){var a,o,f,d,m;if(r){for(d=r.offset,m=d+r.length,f=d;f>0&&!Hh(e,f-1);)f--;for(var g=m;g<e.length&&!Hh(e,g);)g++;o=e.substring(f,g),a=F0(o,n)}else o=e,a=0,f=0,d=0,m=e.length;var b=R0(n,e),x=!1,I=0,N;n.insertSpaces?N=Md(" ",n.tabSize||4):N=" ";var j=nc(o,!1),W=!1;function ee(){return b+Md(N,a+I)}function te(){var Me=j.scan();for(x=!1;Me===15||Me===14;)x=x||Me===14,Me=j.scan();return W=Me===16||j.getTokenError()!==0,Me}var se=[];function ie(Me,Re,We){!W&&Re<m&&We>d&&e.substring(Re,We)!==Me&&se.push({offset:Re,length:We-Re,content:Me})}var de=te();if(de!==17){var we=j.getTokenOffset()+f,xe=Md(N,a);ie(xe,f,we)}for(;de!==17;){for(var Ee=j.getTokenOffset()+j.getTokenLength()+f,ye=te(),be="";!x&&(ye===12||ye===13);){var Se=j.getTokenOffset()+f;ie(" ",Ee,Se),Ee=j.getTokenOffset()+j.getTokenLength()+f,be=ye===12?ee():"",ye=te()}if(ye===2)de!==1&&(I--,be=ee());else if(ye===4)de!==3&&(I--,be=ee());else{switch(de){case 3:case 1:I++,be=ee();break;case 5:case 12:be=ee();break;case 13:x?be=ee():be=" ";break;case 6:be=" ";break;case 10:if(ye===6){be="";break}case 7:case 8:case 9:case 11:case 2:case 4:ye===12||ye===13?be=" ":ye!==5&&ye!==17&&(W=!0);break;case 16:W=!0;break}x&&(ye===12||ye===13)&&(be=ee())}var ke=j.getTokenOffset()+f;ie(be,Ee,ke),de=ye}return se}function Md(e,r){for(var n="",a=0;a<r;a++)n+=e;return n}function F0(e,r){for(var n=0,a=0,o=r.tabSize||4;n<e.length;){var f=e.charAt(n);if(f===" ")a++;else if(f===" ")a+=o;else break;n++}return Math.floor(a/o)}function R0(e,r){for(var n=0;n<r.length;n++){var a=r.charAt(n);if(a==="\r")return n+1<r.length&&r.charAt(n+1)===`
334
- `?`\r
335
- `:"\r";if(a===`
336
- `)return`
337
- `}return e&&e.eol||`
338
- `}function Hh(e,r){return`\r
339
- `.indexOf(e.charAt(r))!==-1}var Kl;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Kl||(Kl={}));function L0(e,r){var n=[],a=new Object,o=void 0,f={value:{},offset:0,length:0,type:"object",parent:void 0},d=!1;function m(g,b,x,I){f.value=g,f.offset=b,f.length=x,f.type=I,f.colonOffset=void 0,o=f}try{ic(e,{onObjectBegin:function(g,b){if(r<=g)throw a;o=void 0,d=r>g,n.push("")},onObjectProperty:function(g,b,x){if(r<b||(m(g,b,x,"property"),n[n.length-1]=g,r<=b+x))throw a},onObjectEnd:function(g,b){if(r<=g)throw a;o=void 0,n.pop()},onArrayBegin:function(g,b){if(r<=g)throw a;o=void 0,n.push(0)},onArrayEnd:function(g,b){if(r<=g)throw a;o=void 0,n.pop()},onLiteralValue:function(g,b,x){if(r<b||(m(g,b,x,$h(g)),r<=b+x))throw a},onSeparator:function(g,b,x){if(r<=b)throw a;if(g===":"&&o&&o.type==="property")o.colonOffset=b,d=!1,o=void 0;else if(g===","){var I=n[n.length-1];typeof I=="number"?n[n.length-1]=I+1:(d=!0,n[n.length-1]=""),o=void 0}}})}catch(g){if(g!==a)throw g}return{path:n,previousNode:o,isAtPropertyKey:d,matches:function(g){for(var b=0,x=0;b<g.length&&x<n.length;x++)if(g[b]===n[x]||g[b]==="*")b++;else if(g[b]!=="**")return!1;return b===g.length}}}function M0(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=Kl.DEFAULT);var a=null,o=[],f=[];function d(g){Array.isArray(o)?o.push(g):a!==null&&(o[a]=g)}var m={onObjectBegin:function(){var g={};d(g),f.push(o),o=g,a=null},onObjectProperty:function(g){a=g},onObjectEnd:function(){o=f.pop()},onArrayBegin:function(){var g=[];d(g),f.push(o),o=g,a=null},onArrayEnd:function(){o=f.pop()},onLiteralValue:d,onError:function(g,b,x){r.push({error:g,offset:b,length:x})}};return ic(e,m,n),o[0]}function N0(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=Kl.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function o(g){a.type==="property"&&(a.length=g-a.offset,a=a.parent)}function f(g){return a.children.push(g),g}var d={onObjectBegin:function(g){a=f({type:"object",offset:g,length:-1,parent:a,children:[]})},onObjectProperty:function(g,b,x){a=f({type:"property",offset:b,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:g,offset:b,length:x,parent:a})},onObjectEnd:function(g,b){o(g+b),a.length=g+b-a.offset,a=a.parent,o(g+b)},onArrayBegin:function(g,b){a=f({type:"array",offset:g,length:-1,parent:a,children:[]})},onArrayEnd:function(g,b){a.length=g+b-a.offset,a=a.parent,o(g+b)},onLiteralValue:function(g,b,x){f({type:$h(g),offset:b,length:x,parent:a,value:g}),o(b+x)},onSeparator:function(g,b,x){a.type==="property"&&(g===":"?a.colonOffset=b:g===","&&o(b))},onError:function(g,b,x){r.push({error:g,offset:b,length:x})}};ic(e,d,n);var m=a.children[0];return m&&delete m.parent,m}function D0(e,r){if(!!e){for(var n=e,a=0,o=r;a<o.length;a++){var f=o[a];if(typeof f=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var d=!1,m=0,g=n.children;m<g.length;m++){var b=g[m];if(Array.isArray(b.children)&&b.children[0].value===f){n=b.children[1],d=!0;break}}if(!d)return}else{var x=f;if(n.type!=="array"||x<0||!Array.isArray(n.children)||x>=n.children.length)return;n=n.children[x]}}return n}}function zh(e){if(!e.parent||!e.parent.children)return[];var r=zh(e.parent);if(e.parent.type==="property"){var n=e.parent.children[0].value;r.push(n)}else if(e.parent.type==="array"){var a=e.parent.children.indexOf(e);a!==-1&&r.push(a)}return r}function Nd(e){switch(e.type){case"array":return e.children.map(Nd);case"object":for(var r=Object.create(null),n=0,a=e.children;n<a.length;n++){var o=a[n],f=o.children[1];f&&(r[o.children[0].value]=Nd(f))}return r;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function B0(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}function Gh(e,r,n){if(n===void 0&&(n=!1),B0(e,r,n)){var a=e.children;if(Array.isArray(a))for(var o=0;o<a.length&&a[o].offset<=r;o++){var f=Gh(a[o],r,n);if(f)return f}return e}}function ic(e,r,n){n===void 0&&(n=Kl.DEFAULT);var a=nc(e,!1);function o(Se){return Se?function(){return Se(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function f(Se){return Se?function(ke){return Se(ke,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var d=o(r.onObjectBegin),m=f(r.onObjectProperty),g=o(r.onObjectEnd),b=o(r.onArrayBegin),x=o(r.onArrayEnd),I=f(r.onLiteralValue),N=f(r.onSeparator),j=o(r.onComment),W=f(r.onError),ee=n&&n.disallowComments,te=n&&n.allowTrailingComma;function se(){for(;;){var Se=a.scan();switch(a.getTokenError()){case 4:ie(14);break;case 5:ie(15);break;case 3:ie(13);break;case 1:ee||ie(11);break;case 2:ie(12);break;case 6:ie(16);break}switch(Se){case 12:case 13:ee?ie(10):j();break;case 16:ie(1);break;case 15:case 14:break;default:return Se}}}function ie(Se,ke,Me){if(ke===void 0&&(ke=[]),Me===void 0&&(Me=[]),W(Se),ke.length+Me.length>0)for(var Re=a.getToken();Re!==17;){if(ke.indexOf(Re)!==-1){se();break}else if(Me.indexOf(Re)!==-1)break;Re=se()}}function de(Se){var ke=a.getTokenValue();return Se?I(ke):m(ke),se(),!0}function we(){switch(a.getToken()){case 11:var Se=a.getTokenValue(),ke=Number(Se);isNaN(ke)&&(ie(2),ke=0),I(ke);break;case 7:I(null);break;case 8:I(!0);break;case 9:I(!1);break;default:return!1}return se(),!0}function xe(){return a.getToken()!==10?(ie(3,[],[2,5]),!1):(de(!1),a.getToken()===6?(N(":"),se(),be()||ie(4,[],[2,5])):ie(5,[],[2,5]),!0)}function Ee(){d(),se();for(var Se=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(Se||ie(4,[],[]),N(","),se(),a.getToken()===2&&te)break}else Se&&ie(6,[],[]);xe()||ie(4,[],[2,5]),Se=!0}return g(),a.getToken()!==2?ie(7,[2],[]):se(),!0}function ye(){b(),se();for(var Se=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(Se||ie(4,[],[]),N(","),se(),a.getToken()===4&&te)break}else Se&&ie(6,[],[]);be()||ie(4,[],[4,5]),Se=!0}return x(),a.getToken()!==4?ie(8,[4],[]):se(),!0}function be(){switch(a.getToken()){case 3:return ye();case 1:return Ee();case 10:return de(!0);default:return we()}}return se(),a.getToken()===17?n.allowEmptyContent?!0:(ie(4,[],[]),!1):be()?(a.getToken()!==17&&ie(9,[],[]),!0):(ie(4,[],[]),!1)}function j0(e,r){var n=nc(e),a=[],o,f=0,d;do switch(d=n.getPosition(),o=n.scan(),o){case 12:case 13:case 17:f!==d&&a.push(e.substring(f,d)),r!==void 0&&a.push(n.getTokenValue().replace(/[^\r\n]/g,r)),f=n.getPosition();break}while(o!==17);return a.join("")}function $h(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function c1(e,r,n){return V0(e,r,void 0,n)}function V0(e,r,n,a){for(var o,f=r.slice(),d=[],m=parseTree(e,d),g=void 0,b=void 0;f.length>0&&(b=f.pop(),g=findNodeAtLocation(m,f),g===void 0&&n!==void 0);)typeof b=="string"?n=(o={},o[b]=n,o):n=[n];if(g)if(g.type==="object"&&typeof b=="string"&&Array.isArray(g.children)){var x=findNodeAtLocation(g,[b]);if(x!==void 0)if(n===void 0){if(!x.parent)throw new Error("Malformed AST");var I=g.children.indexOf(x.parent),N=void 0,j=x.parent.offset+x.parent.length;if(I>0){var W=g.children[I-1];N=W.offset+W.length}else if(N=g.offset+1,g.children.length>1){var ee=g.children[1];j=ee.offset}return Po(e,{offset:N,length:j-N,content:""},a)}else return Po(e,{offset:x.offset,length:x.length,content:JSON.stringify(n)},a);else{if(n===void 0)return[];var te=JSON.stringify(b)+": "+JSON.stringify(n),se=a.getInsertionIndex?a.getInsertionIndex(g.children.map(function(Se){return Se.children[0].value})):g.children.length,ie=void 0;if(se>0){var W=g.children[se-1];ie={offset:W.offset+W.length,length:0,content:","+te}}else g.children.length===0?ie={offset:g.offset+1,length:0,content:te}:ie={offset:g.offset+1,length:0,content:te+","};return Po(e,ie,a)}}else if(g.type==="array"&&typeof b=="number"&&Array.isArray(g.children)){var de=b;if(de===-1){var te=""+JSON.stringify(n),ie=void 0;if(g.children.length===0)ie={offset:g.offset+1,length:0,content:te};else{var W=g.children[g.children.length-1];ie={offset:W.offset+W.length,length:0,content:","+te}}return Po(e,ie,a)}else if(n===void 0&&g.children.length>=0){var we=b,xe=g.children[we],ie=void 0;if(g.children.length===1)ie={offset:g.offset+1,length:g.length-2,content:""};else if(g.children.length-1===we){var W=g.children[we-1],Ee=W.offset+W.length,ye=g.offset+g.length;ie={offset:Ee,length:ye-2-Ee,content:""}}else ie={offset:xe.offset,length:g.children[we+1].offset-xe.offset,content:""};return Po(e,ie,a)}else if(n!==void 0){var ie=void 0,te=""+JSON.stringify(n);if(!a.isArrayInsertion&&g.children.length>b){var be=g.children[b];ie={offset:be.offset,length:be.length,content:te}}else if(g.children.length===0||b===0)ie={offset:g.offset+1,length:0,content:g.children.length===0?te:te+","};else{var se=b>g.children.length?g.children.length:b,W=g.children[se-1];ie={offset:W.offset+W.length,length:0,content:","+te}}return Po(e,ie,a)}else throw new Error("Can not "+(n===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+de+" as length is not sufficient")}else throw new Error("Can not add "+(typeof b!="number"?"index":"property")+" to parent of type "+g.type);else{if(n===void 0)throw new Error("Can not delete in empty document");return Po(e,{offset:m?m.offset:0,length:m?m.length:0,content:JSON.stringify(n)},a)}}function Po(e,r,n){if(!n.formattingOptions)return[r];var a=Kh(e,r),o=r.offset,f=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;o>0&&!isEOL(a,o-1);)o--;for(;f<a.length&&!isEOL(a,f);)f++}for(var d=format(a,{offset:o,length:f-o},n.formattingOptions),m=d.length-1;m>=0;m--){var g=d[m];a=Kh(a,g),o=Math.min(o,g.offset),f=Math.max(f,g.offset+g.length),f+=g.content.length-g.length}var b=e.length-(a.length-f)-o;return[{offset:o,length:b,content:a.substring(o,f)}]}function Kh(e,r){return e.substring(0,r.offset)+r.content+e.substring(r.offset+r.length)}function d1(e,r){return`\r
340
- `.indexOf(e.charAt(r))!==-1}var Ss=nc,p1=L0,U0=M0,h1=N0,v1=D0,W0=Gh,H0=zh,z0=Nd,g1=ic,m1=j0;function y1(e){switch(e){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 G0(e,r,n){return k0(e,r,n)}function b1(e,r,n,a){return edit.setProperty(e,r,n,a)}function x1(e,r){for(var n=r.length-1;n>=0;n--)e=edit.applyEdit(e,r[n]);return e}function Yl(e,r){if(e===r)return!0;if(e==null||r===null||r===void 0||typeof e!=typeof r||typeof e!="object"||Array.isArray(e)!==Array.isArray(r))return!1;var n,a;if(Array.isArray(e)){if(e.length!==r.length)return!1;for(n=0;n<e.length;n++)if(!Yl(e[n],r[n]))return!1}else{var o=[];for(a in e)o.push(a);o.sort();var f=[];for(a in r)f.push(a);if(f.sort(),!Yl(o,f))return!1;for(n=0;n<o.length;n++)if(!Yl(e[o[n]],r[o[n]]))return!1}return!0}function Qn(e){return typeof e=="number"}function da(e){return typeof e!="undefined"}function Vi(e){return typeof e=="boolean"}function $0(e){return typeof e=="string"}var Yh;(function(e){function r(n){return typeof n=="string"}e.is=r})(Yh||(Yh={}));var Dd;(function(e){function r(n){return typeof n=="string"}e.is=r})(Dd||(Dd={}));var Jh;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(Jh||(Jh={}));var ac;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(ac||(ac={}));var ii;(function(e){function r(a,o){return a===Number.MAX_VALUE&&(a=ac.MAX_VALUE),o===Number.MAX_VALUE&&(o=ac.MAX_VALUE),{line:a,character:o}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.uinteger(o.line)&&Ae.uinteger(o.character)}e.is=n})(ii||(ii={}));var _t;(function(e){function r(a,o,f,d){if(Ae.uinteger(a)&&Ae.uinteger(o)&&Ae.uinteger(f)&&Ae.uinteger(d))return{start:ii.create(a,o),end:ii.create(f,d)};if(ii.is(a)&&ii.is(o))return{start:a,end:o};throw new Error("Range#create called with invalid arguments[".concat(a,", ").concat(o,", ").concat(f,", ").concat(d,"]"))}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&ii.is(o.start)&&ii.is(o.end)}e.is=n})(_t||(_t={}));var ws;(function(e){function r(a,o){return{uri:a,range:o}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&_t.is(o.range)&&(Ae.string(o.uri)||Ae.undefined(o.uri))}e.is=n})(ws||(ws={}));var Xh;(function(e){function r(a,o,f,d){return{targetUri:a,targetRange:o,targetSelectionRange:f,originSelectionRange:d}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&_t.is(o.targetRange)&&Ae.string(o.targetUri)&&_t.is(o.targetSelectionRange)&&(_t.is(o.originSelectionRange)||Ae.undefined(o.originSelectionRange))}e.is=n})(Xh||(Xh={}));var Bd;(function(e){function r(a,o,f,d){return{red:a,green:o,blue:f,alpha:d}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.numberRange(o.red,0,1)&&Ae.numberRange(o.green,0,1)&&Ae.numberRange(o.blue,0,1)&&Ae.numberRange(o.alpha,0,1)}e.is=n})(Bd||(Bd={}));var Qh;(function(e){function r(a,o){return{range:a,color:o}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&_t.is(o.range)&&Bd.is(o.color)}e.is=n})(Qh||(Qh={}));var Zh;(function(e){function r(a,o,f){return{label:a,textEdit:o,additionalTextEdits:f}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.string(o.label)&&(Ae.undefined(o.textEdit)||ai.is(o))&&(Ae.undefined(o.additionalTextEdits)||Ae.typedArray(o.additionalTextEdits,ai.is))}e.is=n})(Zh||(Zh={}));var Jl;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Jl||(Jl={}));var _h;(function(e){function r(a,o,f,d,m,g){var b={startLine:a,endLine:o};return Ae.defined(f)&&(b.startCharacter=f),Ae.defined(d)&&(b.endCharacter=d),Ae.defined(m)&&(b.kind=m),Ae.defined(g)&&(b.collapsedText=g),b}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.uinteger(o.startLine)&&Ae.uinteger(o.startLine)&&(Ae.undefined(o.startCharacter)||Ae.uinteger(o.startCharacter))&&(Ae.undefined(o.endCharacter)||Ae.uinteger(o.endCharacter))&&(Ae.undefined(o.kind)||Ae.string(o.kind))}e.is=n})(_h||(_h={}));var jd;(function(e){function r(a,o){return{location:a,message:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&ws.is(o.location)&&Ae.string(o.message)}e.is=n})(jd||(jd={}));var Dt;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Dt||(Dt={}));var qh;(function(e){e.Unnecessary=1,e.Deprecated=2})(qh||(qh={}));var ev;(function(e){function r(n){var a=n;return Ae.objectLiteral(a)&&Ae.string(a.href)}e.is=r})(ev||(ev={}));var pa;(function(e){function r(a,o,f,d,m,g){var b={range:a,message:o};return Ae.defined(f)&&(b.severity=f),Ae.defined(d)&&(b.code=d),Ae.defined(m)&&(b.source=m),Ae.defined(g)&&(b.relatedInformation=g),b}e.create=r;function n(a){var o,f=a;return Ae.defined(f)&&_t.is(f.range)&&Ae.string(f.message)&&(Ae.number(f.severity)||Ae.undefined(f.severity))&&(Ae.integer(f.code)||Ae.string(f.code)||Ae.undefined(f.code))&&(Ae.undefined(f.codeDescription)||Ae.string((o=f.codeDescription)===null||o===void 0?void 0:o.href))&&(Ae.string(f.source)||Ae.undefined(f.source))&&(Ae.undefined(f.relatedInformation)||Ae.typedArray(f.relatedInformation,jd.is))}e.is=n})(pa||(pa={}));var As;(function(e){function r(a,o){for(var f=[],d=2;d<arguments.length;d++)f[d-2]=arguments[d];var m={title:a,command:o};return Ae.defined(f)&&f.length>0&&(m.arguments=f),m}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.title)&&Ae.string(o.command)}e.is=n})(As||(As={}));var ai;(function(e){function r(f,d){return{range:f,newText:d}}e.replace=r;function n(f,d){return{range:{start:f,end:f},newText:d}}e.insert=n;function a(f){return{range:f,newText:""}}e.del=a;function o(f){var d=f;return Ae.objectLiteral(d)&&Ae.string(d.newText)&&_t.is(d.range)}e.is=o})(ai||(ai={}));var Cs;(function(e){function r(a,o,f){var d={label:a};return o!==void 0&&(d.needsConfirmation=o),f!==void 0&&(d.description=f),d}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.string(o.label)&&(Ae.boolean(o.needsConfirmation)||o.needsConfirmation===void 0)&&(Ae.string(o.description)||o.description===void 0)}e.is=n})(Cs||(Cs={}));var Sn;(function(e){function r(n){var a=n;return Ae.string(a)}e.is=r})(Sn||(Sn={}));var Va;(function(e){function r(f,d,m){return{range:f,newText:d,annotationId:m}}e.replace=r;function n(f,d,m){return{range:{start:f,end:f},newText:d,annotationId:m}}e.insert=n;function a(f,d){return{range:f,newText:"",annotationId:d}}e.del=a;function o(f){var d=f;return ai.is(d)&&(Cs.is(d.annotationId)||Sn.is(d.annotationId))}e.is=o})(Va||(Va={}));var oc;(function(e){function r(a,o){return{textDocument:a,edits:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&lc.is(o.textDocument)&&Array.isArray(o.edits)}e.is=n})(oc||(oc={}));var Xl;(function(e){function r(a,o,f){var d={kind:"create",uri:a};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(d.options=o),f!==void 0&&(d.annotationId=f),d}e.create=r;function n(a){var o=a;return o&&o.kind==="create"&&Ae.string(o.uri)&&(o.options===void 0||(o.options.overwrite===void 0||Ae.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Ae.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Xl||(Xl={}));var Ql;(function(e){function r(a,o,f,d){var m={kind:"rename",oldUri:a,newUri:o};return f!==void 0&&(f.overwrite!==void 0||f.ignoreIfExists!==void 0)&&(m.options=f),d!==void 0&&(m.annotationId=d),m}e.create=r;function n(a){var o=a;return o&&o.kind==="rename"&&Ae.string(o.oldUri)&&Ae.string(o.newUri)&&(o.options===void 0||(o.options.overwrite===void 0||Ae.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Ae.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Ql||(Ql={}));var Zl;(function(e){function r(a,o,f){var d={kind:"delete",uri:a};return o!==void 0&&(o.recursive!==void 0||o.ignoreIfNotExists!==void 0)&&(d.options=o),f!==void 0&&(d.annotationId=f),d}e.create=r;function n(a){var o=a;return o&&o.kind==="delete"&&Ae.string(o.uri)&&(o.options===void 0||(o.options.recursive===void 0||Ae.boolean(o.options.recursive))&&(o.options.ignoreIfNotExists===void 0||Ae.boolean(o.options.ignoreIfNotExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Zl||(Zl={}));var Vd;(function(e){function r(n){var a=n;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(o){return Ae.string(o.kind)?Xl.is(o)||Ql.is(o)||Zl.is(o):oc.is(o)}))}e.is=r})(Vd||(Vd={}));var sc=function(){function e(r,n){this.edits=r,this.changeAnnotations=n}return e.prototype.insert=function(r,n,a){var o,f;if(a===void 0?o=ai.insert(r,n):Sn.is(a)?(f=a,o=Va.insert(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(a),o=Va.insert(r,n,f)),this.edits.push(o),f!==void 0)return f},e.prototype.replace=function(r,n,a){var o,f;if(a===void 0?o=ai.replace(r,n):Sn.is(a)?(f=a,o=Va.replace(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(a),o=Va.replace(r,n,f)),this.edits.push(o),f!==void 0)return f},e.prototype.delete=function(r,n){var a,o;if(n===void 0?a=ai.del(r):Sn.is(n)?(o=n,a=Va.del(r,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),a=Va.del(r,o)),this.edits.push(a),o!==void 0)return o},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),tv=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(r,n){var a;if(Sn.is(r)?a=r:(a=this.nextId(),n=r),this._annotations[a]!==void 0)throw new Error("Id ".concat(a," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(a));return this._annotations[a]=n,this._size++,a},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),S1=function(){function e(r){var n=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new tv(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(oc.is(a)){var o=new sc(a.edits,n._changeAnnotations);n._textEditChanges[a.textDocument.uri]=o}})):r.changes&&Object.keys(r.changes).forEach(function(a){var o=new sc(r.changes[a]);n._textEditChanges[a]=o})):this._workspaceEdit={}}return Object.defineProperty(e.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}),e.prototype.getTextEditChange=function(r){if(lc.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},a=this._textEditChanges[n.uri];if(!a){var o=[],f={textDocument:n,edits:o};this._workspaceEdit.documentChanges.push(f),a=new sc(o,this._changeAnnotations),this._textEditChanges[n.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var o=[];this._workspaceEdit.changes[r]=o,a=new sc(o),this._textEditChanges[r]=a}return a}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new tv,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;Cs.is(n)||Sn.is(n)?o=n:a=n;var f,d;if(o===void 0?f=Xl.create(r,a):(d=Sn.is(o)?o:this._changeAnnotations.manage(o),f=Xl.create(r,a,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d},e.prototype.renameFile=function(r,n,a,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var f;Cs.is(a)||Sn.is(a)?f=a:o=a;var d,m;if(f===void 0?d=Ql.create(r,n,o):(m=Sn.is(f)?f:this._changeAnnotations.manage(f),d=Ql.create(r,n,o,m)),this._workspaceEdit.documentChanges.push(d),m!==void 0)return m},e.prototype.deleteFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;Cs.is(n)||Sn.is(n)?o=n:a=n;var f,d;if(o===void 0?f=Zl.create(r,a):(d=Sn.is(o)?o:this._changeAnnotations.manage(o),f=Zl.create(r,a,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d},e}(),rv;(function(e){function r(a){return{uri:a}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.uri)}e.is=n})(rv||(rv={}));var nv;(function(e){function r(a,o){return{uri:a,version:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.uri)&&Ae.integer(o.version)}e.is=n})(nv||(nv={}));var lc;(function(e){function r(a,o){return{uri:a,version:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.uri)&&(o.version===null||Ae.integer(o.version))}e.is=n})(lc||(lc={}));var iv;(function(e){function r(a,o,f,d){return{uri:a,languageId:o,version:f,text:d}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.uri)&&Ae.string(o.languageId)&&Ae.integer(o.version)&&Ae.string(o.text)}e.is=n})(iv||(iv={}));var Io;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(n){var a=n;return a===e.PlainText||a===e.Markdown}e.is=r})(Io||(Io={}));var _l;(function(e){function r(n){var a=n;return Ae.objectLiteral(n)&&Io.is(a.kind)&&Ae.string(a.value)}e.is=r})(_l||(_l={}));var Zn;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Zn||(Zn={}));var Zr;(function(e){e.PlainText=1,e.Snippet=2})(Zr||(Zr={}));var av;(function(e){e.Deprecated=1})(av||(av={}));var ov;(function(e){function r(a,o,f){return{newText:a,insert:o,replace:f}}e.create=r;function n(a){var o=a;return o&&Ae.string(o.newText)&&_t.is(o.insert)&&_t.is(o.replace)}e.is=n})(ov||(ov={}));var sv;(function(e){e.asIs=1,e.adjustIndentation=2})(sv||(sv={}));var lv;(function(e){function r(n){var a=n;return a&&(Ae.string(a.detail)||a.detail===void 0)&&(Ae.string(a.description)||a.description===void 0)}e.is=r})(lv||(lv={}));var Ud;(function(e){function r(n){return{label:n}}e.create=r})(Ud||(Ud={}));var uv;(function(e){function r(n,a){return{items:n||[],isIncomplete:!!a}}e.create=r})(uv||(uv={}));var uc;(function(e){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function n(a){var o=a;return Ae.string(o)||Ae.objectLiteral(o)&&Ae.string(o.language)&&Ae.string(o.value)}e.is=n})(uc||(uc={}));var fv;(function(e){function r(n){var a=n;return!!a&&Ae.objectLiteral(a)&&(_l.is(a.contents)||uc.is(a.contents)||Ae.typedArray(a.contents,uc.is))&&(n.range===void 0||_t.is(n.range))}e.is=r})(fv||(fv={}));var cv;(function(e){function r(n,a){return a?{label:n,documentation:a}:{label:n}}e.create=r})(cv||(cv={}));var dv;(function(e){function r(n,a){for(var o=[],f=2;f<arguments.length;f++)o[f-2]=arguments[f];var d={label:n};return Ae.defined(a)&&(d.documentation=a),Ae.defined(o)?d.parameters=o:d.parameters=[],d}e.create=r})(dv||(dv={}));var pv;(function(e){e.Text=1,e.Read=2,e.Write=3})(pv||(pv={}));var hv;(function(e){function r(n,a){var o={range:n};return Ae.number(a)&&(o.kind=a),o}e.create=r})(hv||(hv={}));var Ui;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Ui||(Ui={}));var vv;(function(e){e.Deprecated=1})(vv||(vv={}));var gv;(function(e){function r(n,a,o,f,d){var m={name:n,kind:a,location:{uri:f,range:o}};return d&&(m.containerName=d),m}e.create=r})(gv||(gv={}));var mv;(function(e){function r(n,a,o,f){return f!==void 0?{name:n,kind:a,location:{uri:o,range:f}}:{name:n,kind:a,location:{uri:o}}}e.create=r})(mv||(mv={}));var yv;(function(e){function r(a,o,f,d,m,g){var b={name:a,detail:o,kind:f,range:d,selectionRange:m};return g!==void 0&&(b.children=g),b}e.create=r;function n(a){var o=a;return o&&Ae.string(o.name)&&Ae.number(o.kind)&&_t.is(o.range)&&_t.is(o.selectionRange)&&(o.detail===void 0||Ae.string(o.detail))&&(o.deprecated===void 0||Ae.boolean(o.deprecated))&&(o.children===void 0||Array.isArray(o.children))&&(o.tags===void 0||Array.isArray(o.tags))}e.is=n})(yv||(yv={}));var bv;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(bv||(bv={}));var fc;(function(e){e.Invoked=1,e.Automatic=2})(fc||(fc={}));var xv;(function(e){function r(a,o,f){var d={diagnostics:a};return o!=null&&(d.only=o),f!=null&&(d.triggerKind=f),d}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.typedArray(o.diagnostics,pa.is)&&(o.only===void 0||Ae.typedArray(o.only,Ae.string))&&(o.triggerKind===void 0||o.triggerKind===fc.Invoked||o.triggerKind===fc.Automatic)}e.is=n})(xv||(xv={}));var Sv;(function(e){function r(a,o,f){var d={title:a},m=!0;return typeof o=="string"?(m=!1,d.kind=o):As.is(o)?d.command=o:d.edit=o,m&&f!==void 0&&(d.kind=f),d}e.create=r;function n(a){var o=a;return o&&Ae.string(o.title)&&(o.diagnostics===void 0||Ae.typedArray(o.diagnostics,pa.is))&&(o.kind===void 0||Ae.string(o.kind))&&(o.edit!==void 0||o.command!==void 0)&&(o.command===void 0||As.is(o.command))&&(o.isPreferred===void 0||Ae.boolean(o.isPreferred))&&(o.edit===void 0||Vd.is(o.edit))}e.is=n})(Sv||(Sv={}));var wv;(function(e){function r(a,o){var f={range:a};return Ae.defined(o)&&(f.data=o),f}e.create=r;function n(a){var o=a;return Ae.defined(o)&&_t.is(o.range)&&(Ae.undefined(o.command)||As.is(o.command))}e.is=n})(wv||(wv={}));var Av;(function(e){function r(a,o){return{tabSize:a,insertSpaces:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.uinteger(o.tabSize)&&Ae.boolean(o.insertSpaces)}e.is=n})(Av||(Av={}));var Cv;(function(e){function r(a,o,f){return{range:a,target:o,data:f}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&_t.is(o.range)&&(Ae.undefined(o.target)||Ae.string(o.target))}e.is=n})(Cv||(Cv={}));var cc;(function(e){function r(a,o){return{range:a,parent:o}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&_t.is(o.range)&&(o.parent===void 0||e.is(o.parent))}e.is=n})(cc||(cc={}));var Ev;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Ev||(Ev={}));var Ov;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Ov||(Ov={}));var Tv;(function(e){function r(n){var a=n;return Ae.objectLiteral(a)&&(a.resultId===void 0||typeof a.resultId=="string")&&Array.isArray(a.data)&&(a.data.length===0||typeof a.data[0]=="number")}e.is=r})(Tv||(Tv={}));var Pv;(function(e){function r(a,o){return{range:a,text:o}}e.create=r;function n(a){var o=a;return o!=null&&_t.is(o.range)&&Ae.string(o.text)}e.is=n})(Pv||(Pv={}));var Iv;(function(e){function r(a,o,f){return{range:a,variableName:o,caseSensitiveLookup:f}}e.create=r;function n(a){var o=a;return o!=null&&_t.is(o.range)&&Ae.boolean(o.caseSensitiveLookup)&&(Ae.string(o.variableName)||o.variableName===void 0)}e.is=n})(Iv||(Iv={}));var kv;(function(e){function r(a,o){return{range:a,expression:o}}e.create=r;function n(a){var o=a;return o!=null&&_t.is(o.range)&&(Ae.string(o.expression)||o.expression===void 0)}e.is=n})(kv||(kv={}));var Fv;(function(e){function r(a,o){return{frameId:a,stoppedLocation:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&_t.is(a.stoppedLocation)}e.is=n})(Fv||(Fv={}));var Wd;(function(e){e.Type=1,e.Parameter=2;function r(n){return n===1||n===2}e.is=r})(Wd||(Wd={}));var Hd;(function(e){function r(a){return{value:a}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&(o.tooltip===void 0||Ae.string(o.tooltip)||_l.is(o.tooltip))&&(o.location===void 0||ws.is(o.location))&&(o.command===void 0||As.is(o.command))}e.is=n})(Hd||(Hd={}));var Rv;(function(e){function r(a,o,f){var d={position:a,label:o};return f!==void 0&&(d.kind=f),d}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&ii.is(o.position)&&(Ae.string(o.label)||Ae.typedArray(o.label,Hd.is))&&(o.kind===void 0||Wd.is(o.kind))&&o.textEdits===void 0||Ae.typedArray(o.textEdits,ai.is)&&(o.tooltip===void 0||Ae.string(o.tooltip)||_l.is(o.tooltip))&&(o.paddingLeft===void 0||Ae.boolean(o.paddingLeft))&&(o.paddingRight===void 0||Ae.boolean(o.paddingRight))}e.is=n})(Rv||(Rv={}));var Lv;(function(e){function r(n){var a=n;return Ae.objectLiteral(a)&&Dd.is(a.uri)&&Ae.string(a.name)}e.is=r})(Lv||(Lv={}));var w1=null,Mv;(function(e){function r(f,d,m,g){return new K0(f,d,m,g)}e.create=r;function n(f){var d=f;return!!(Ae.defined(d)&&Ae.string(d.uri)&&(Ae.undefined(d.languageId)||Ae.string(d.languageId))&&Ae.uinteger(d.lineCount)&&Ae.func(d.getText)&&Ae.func(d.positionAt)&&Ae.func(d.offsetAt))}e.is=n;function a(f,d){for(var m=f.getText(),g=o(d,function(W,ee){var te=W.range.start.line-ee.range.start.line;return te===0?W.range.start.character-ee.range.start.character:te}),b=m.length,x=g.length-1;x>=0;x--){var I=g[x],N=f.offsetAt(I.range.start),j=f.offsetAt(I.range.end);if(j<=b)m=m.substring(0,N)+I.newText+m.substring(j,m.length);else throw new Error("Overlapping edit");b=N}return m}e.applyEdits=a;function o(f,d){if(f.length<=1)return f;var m=f.length/2|0,g=f.slice(0,m),b=f.slice(m);o(g,d),o(b,d);for(var x=0,I=0,N=0;x<g.length&&I<b.length;){var j=d(g[x],b[I]);j<=0?f[N++]=g[x++]:f[N++]=b[I++]}for(;x<g.length;)f[N++]=g[x++];for(;I<b.length;)f[N++]=b[I++];return f}})(Mv||(Mv={}));var K0=function(){function e(r,n,a,o){this._uri=r,this._languageId=n,this._version=a,this._content=o,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content},e.prototype.update=function(r,n){this._content=r.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],n=this._content,a=!0,o=0;o<n.length;o++){a&&(r.push(o),a=!1);var f=n.charAt(o);a=f==="\r"||f===`
341
- `,f==="\r"&&o+1<n.length&&n.charAt(o+1)===`
342
- `&&o++}a&&n.length>0&&r.push(n.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),a=0,o=n.length;if(o===0)return ii.create(0,r);for(;a<o;){var f=Math.floor((a+o)/2);n[f]>r?o=f:a=f+1}var d=a-1;return ii.create(d,r-n[d])},e.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var a=n[r.line],o=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,o),a)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),Ae;(function(e){var r=Object.prototype.toString;function n(j){return typeof j!="undefined"}e.defined=n;function a(j){return typeof j=="undefined"}e.undefined=a;function o(j){return j===!0||j===!1}e.boolean=o;function f(j){return r.call(j)==="[object String]"}e.string=f;function d(j){return r.call(j)==="[object Number]"}e.number=d;function m(j,W,ee){return r.call(j)==="[object Number]"&&W<=j&&j<=ee}e.numberRange=m;function g(j){return r.call(j)==="[object Number]"&&-2147483648<=j&&j<=2147483647}e.integer=g;function b(j){return r.call(j)==="[object Number]"&&0<=j&&j<=2147483647}e.uinteger=b;function x(j){return r.call(j)==="[object Function]"}e.func=x;function I(j){return j!==null&&typeof j=="object"}e.objectLiteral=I;function N(j,W){return Array.isArray(j)&&j.every(W)}e.typedArray=N})(Ae||(Ae={}));class ql{constructor(r,n,a,o){this._uri=r,this._languageId=n,this._version=a,this._content=o,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(r){if(r){const n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content}update(r,n){for(let a of r)if(ql.isIncremental(a)){const o=Dv(a.range),f=this.offsetAt(o.start),d=this.offsetAt(o.end);this._content=this._content.substring(0,f)+a.text+this._content.substring(d,this._content.length);const m=Math.max(o.start.line,0),g=Math.max(o.end.line,0);let b=this._lineOffsets;const x=Nv(a.text,!1,f);if(g-m===x.length)for(let N=0,j=x.length;N<j;N++)b[N+m+1]=x[N];else x.length<1e4?b.splice(m+1,g-m,...x):this._lineOffsets=b=b.slice(0,m+1).concat(x,b.slice(g+1));const I=a.text.length-(d-f);if(I!==0)for(let N=m+1+x.length,j=b.length;N<j;N++)b[N]=b[N]+I}else if(ql.isFull(a))this._content=a.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Nv(this._content,!0)),this._lineOffsets}positionAt(r){r=Math.max(Math.min(r,this._content.length),0);let n=this.getLineOffsets(),a=0,o=n.length;if(o===0)return{line:0,character:r};for(;a<o;){let d=Math.floor((a+o)/2);n[d]>r?o=d:a=d+1}let f=a-1;return{line:f,character:r-n[f]}}offsetAt(r){let n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;let a=n[r.line],o=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,o),a)}get lineCount(){return this.getLineOffsets().length}static isIncremental(r){let n=r;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(r){let n=r;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}}var dc;(function(e){function r(o,f,d,m){return new ql(o,f,d,m)}e.create=r;function n(o,f,d){if(o instanceof ql)return o.update(f,d),o;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function a(o,f){let d=o.getText(),m=zd(f.map(Y0),(x,I)=>{let N=x.range.start.line-I.range.start.line;return N===0?x.range.start.character-I.range.start.character:N}),g=0;const b=[];for(const x of m){let I=o.offsetAt(x.range.start);if(I<g)throw new Error("Overlapping edit");I>g&&b.push(d.substring(g,I)),x.newText.length&&b.push(x.newText),g=o.offsetAt(x.range.end)}return b.push(d.substr(g)),b.join("")}e.applyEdits=a})(dc||(dc={}));function zd(e,r){if(e.length<=1)return e;const n=e.length/2|0,a=e.slice(0,n),o=e.slice(n);zd(a,r),zd(o,r);let f=0,d=0,m=0;for(;f<a.length&&d<o.length;)r(a[f],o[d])<=0?e[m++]=a[f++]:e[m++]=o[d++];for(;f<a.length;)e[m++]=a[f++];for(;d<o.length;)e[m++]=o[d++];return e}function Nv(e,r,n=0){const a=r?[n]:[];for(let o=0;o<e.length;o++){let f=e.charCodeAt(o);(f===13||f===10)&&(f===13&&o+1<e.length&&e.charCodeAt(o+1)===10&&o++,a.push(n+o+1))}return a}function Dv(e){const r=e.start,n=e.end;return r.line>n.line||r.line===n.line&&r.character>n.character?{start:n,end:r}:e}function Y0(e){const r=Dv(e.range);return r!==e.range?{newText:e.newText,range:r}:e}var Qt;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(Qt||(Qt={}));var Bv;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Io.Markdown,Io.PlainText],commitCharactersSupport:!0}}}}})(Bv||(Bv={}));var ko=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var f in o)o.hasOwnProperty(f)&&(a[f]=o[f])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),J0={"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,}))$/}},Fo=function(){function e(r,n,a){this.offset=n,this.length=a,this.parent=r}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),X0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="null",o.value=null,o}return r}(Fo),jv=function(e){ko(r,e);function r(n,a,o){var f=e.call(this,n,o)||this;return f.type="boolean",f.value=a,f}return r}(Fo),Q0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="array",o.items=[],o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(Fo),Z0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="number",o.isInteger=!0,o.value=Number.NaN,o}return r}(Fo),Vv=function(e){ko(r,e);function r(n,a,o){var f=e.call(this,n,a,o)||this;return f.type="string",f.value="",f}return r}(Fo),_0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="property",o.colonOffset=-1,o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(Fo),q0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="object",o.properties=[],o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(Fo);function jn(e){return Vi(e)?e?{}:{not:{}}:e}var Uv;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Uv||(Uv={}));var eb=function(){function e(r,n){r===void 0&&(r=-1),n===void 0&&(n=null),this.focusOffset=r,this.exclude=n,this.schemas=[]}return e.prototype.add=function(r){this.schemas.push(r)},e.prototype.merge=function(r){var n;(n=this.schemas).push.apply(n,r.schemas)},e.prototype.include=function(r){return(this.focusOffset===-1||Wv(r,this.focusOffset))&&r!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),Gd=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.add=function(r){},e.prototype.merge=function(r){},e.prototype.include=function(r){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Vn=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(r){for(var n=0,a=r;n<a.length;n++){var o=a[n];this.merge(o)}},e.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},e.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var n=0,a=this.problems;n<a.length;n++){var o=a[n];o.code===Qt.EnumValueMismatch&&(o.message="Value is not accepted. Valid values: "+this.enumValues.map(function(f){return JSON.stringify(f)}).join(", ")+".")}}},e.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++},e.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},e}();function tb(e,r){return r===void 0&&(r=[]),new Hv(e,r,[])}function Ua(e){return z0(e)}function $d(e){return H0(e)}function Wv(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}var Hv=function(){function e(r,n,a){n===void 0&&(n=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=n,this.comments=a}return e.prototype.getNodeFromOffset=function(r,n){if(n===void 0&&(n=!1),this.root)return W0(this.root,r,n)},e.prototype.visit=function(r){if(this.root){var n=function(a){var o=r(a),f=a.children;if(Array.isArray(f))for(var d=0;d<f.length&&o;d++)o=n(f[d]);return o};n(this.root)}},e.prototype.validate=function(r,n){if(this.root&&n){var a=new Vn;return gn(this.root,n,a,Gd.instance),a.problems.map(function(o){var f=_t.create(r.positionAt(o.location.offset),r.positionAt(o.location.offset+o.location.length));return pa.create(f,o.message,o.severity,o.code)})}return null},e.prototype.getMatchingSchemas=function(r,n,a){n===void 0&&(n=-1),a===void 0&&(a=null);var o=new eb(n,a);return this.root&&r&&gn(this.root,r,new Vn,o),o.schemas},e}();function gn(e,r,n,a){if(!e||!a.include(e))return;switch(e.type){case"object":g(e,r,n,a);break;case"array":m(e,r,n,a);break;case"string":d(e,r,n,a);break;case"number":f(e,r,n,a);break;case"property":return gn(e.valueNode,r,n,a)}o(),a.add({node:e,schema:r});function o(){function b(Re){return e.type===Re||Re==="integer"&&e.type==="number"&&e.isInteger||r.nullable&&e.value===null}if(Array.isArray(r.type)?r.type.some(b)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(b(r.type)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var x=0,I=r.allOf;x<I.length;x++){var N=I[x];gn(e,jn(N),n,a)}var j=jn(r.not);if(j){var W=new Vn,ee=a.newSub();gn(e,j,W,ee),W.hasProblems()||n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,message:"Matches a schema that is not allowed."});for(var te=0,se=ee.schemas;te<se.length;te++){var ie=se[te];ie.inverted=!ie.inverted,a.add(ie)}}var de=function(Re,We){for(var It=[],vt=null,rr=0,cr=Re;rr<cr.length;rr++){var mr=cr[rr],$r=jn(mr),yr=new Vn,kr=a.newSub();if(gn(e,$r,yr,kr),yr.hasProblems()||It.push($r),!vt)vt={schema:$r,validationResult:yr,matchingSchemas:kr};else if(!We&&!yr.hasProblems()&&!vt.validationResult.hasProblems())vt.matchingSchemas.merge(kr),vt.validationResult.propertiesMatches+=yr.propertiesMatches,vt.validationResult.propertiesValueMatches+=yr.propertiesValueMatches;else{var wn=yr.compare(vt.validationResult);wn>0?vt={schema:$r,validationResult:yr,matchingSchemas:kr}:wn===0&&(vt.matchingSchemas.merge(kr),vt.validationResult.mergeEnumValues(yr))}}return It.length>1&&We&&n.problems.push({location:{offset:e.offset,length:1},severity:Dt.Warning,message:"Matches multiple schemas when only one must validate."}),vt!==null&&(n.merge(vt.validationResult),n.propertiesMatches+=vt.validationResult.propertiesMatches,n.propertiesValueMatches+=vt.validationResult.propertiesValueMatches,a.merge(vt.matchingSchemas)),It.length};Array.isArray(r.anyOf)&&de(r.anyOf,!1),Array.isArray(r.oneOf)&&de(r.oneOf,!0);var we=function(Re){var We=new Vn,It=a.newSub();gn(e,jn(Re),We,It),n.merge(We),n.propertiesMatches+=We.propertiesMatches,n.propertiesValueMatches+=We.propertiesValueMatches,a.merge(It)},xe=function(Re,We,It){var vt=jn(Re),rr=new Vn,cr=a.newSub();gn(e,vt,rr,cr),a.merge(cr),rr.hasProblems()?It&&we(It):We&&we(We)},Ee=jn(r.if);if(Ee&&xe(Ee,jn(r.then),jn(r.else)),Array.isArray(r.enum)){for(var ye=Ua(e),be=!1,Se=0,ke=r.enum;Se<ke.length;Se++){var Me=ke[Se];if(Yl(ye,Me)){be=!0;break}}n.enumValues=r.enum,n.enumValueMatch=be,be||n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,code:Qt.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(Re){return JSON.stringify(Re)}).join(", ")+"."})}if(da(r.const)){var ye=Ua(e);Yl(ye,r.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,code:Qt.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),n.enumValueMatch=!1),n.enumValues=[r.const]}r.deprecationMessage&&e.parent&&n.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:Dt.Warning,message:r.deprecationMessage})}function f(b,x,I,N){var j=b.value;Qn(x.multipleOf)&&j%x.multipleOf!==0&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is not divisible by "+x.multipleOf+"."});function W(we,xe){if(Qn(xe))return xe;if(Vi(xe)&&xe)return we}function ee(we,xe){if(!Vi(xe)||!xe)return we}var te=W(x.minimum,x.exclusiveMinimum);Qn(te)&&j<=te&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is below the exclusive minimum of "+te+"."});var se=W(x.maximum,x.exclusiveMaximum);Qn(se)&&j>=se&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is above the exclusive maximum of "+se+"."});var ie=ee(x.minimum,x.exclusiveMinimum);Qn(ie)&&j<ie&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is below the minimum of "+ie+"."});var de=ee(x.maximum,x.exclusiveMaximum);Qn(de)&&j>de&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is above the maximum of "+de+"."})}function d(b,x,I,N){if(Qn(x.minLength)&&b.value.length<x.minLength&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"String is shorter than the minimum length of "+x.minLength+"."}),Qn(x.maxLength)&&b.value.length>x.maxLength&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"String is longer than the maximum length of "+x.maxLength+"."}),$0(x.pattern)){var j=new RegExp(x.pattern);j.test(b.value)||I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:x.patternErrorMessage||x.errorMessage||'String does not match the pattern of "'+x.pattern+'".'})}if(x.format)switch(x.format){case"uri":case"uri-reference":{var W=void 0;if(!b.value)W="URI expected.";else{var ee=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(b.value);ee?!ee[2]&&x.format==="uri"&&(W="URI with a scheme is expected."):W="URI is expected."}W&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:x.patternErrorMessage||x.errorMessage||"String is not a URI: "+W})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var te=J0[x.format];(!b.value||!te.pattern.exec(b.value))&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:x.patternErrorMessage||x.errorMessage||te.errorMessage});break;default:}}function m(b,x,I,N){if(Array.isArray(x.items)){for(var j=x.items,W=0;W<j.length;W++){var ee=j[W],te=jn(ee),se=new Vn,ie=b.items[W];ie?(gn(ie,te,se,N),I.mergePropertyMatch(se)):b.items.length>=j.length&&I.propertiesValueMatches++}if(b.items.length>j.length)if(typeof x.additionalItems=="object")for(var de=j.length;de<b.items.length;de++){var se=new Vn;gn(b.items[de],x.additionalItems,se,N),I.mergePropertyMatch(se)}else x.additionalItems===!1&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Array has too many items according to schema. Expected "+j.length+" or fewer."})}else{var we=jn(x.items);if(we)for(var xe=0,Ee=b.items;xe<Ee.length;xe++){var ie=Ee[xe],se=new Vn;gn(ie,we,se,N),I.mergePropertyMatch(se)}}var ye=jn(x.contains);if(ye){var be=b.items.some(function(Me){var Re=new Vn;return gn(Me,ye,Re,Gd.instance),!Re.hasProblems()});be||I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:x.errorMessage||"Array does not contain required item."})}if(Qn(x.minItems)&&b.items.length<x.minItems&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Array has too few items. Expected "+x.minItems+" or more."}),Qn(x.maxItems)&&b.items.length>x.maxItems&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Array has too many items. Expected "+x.maxItems+" or fewer."}),x.uniqueItems===!0){var Se=Ua(b),ke=Se.some(function(Me,Re){return Re!==Se.lastIndexOf(Me)});ke&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Array has duplicate items."})}}function g(b,x,I,N){for(var j=Object.create(null),W=[],ee=0,te=b.properties;ee<te.length;ee++){var se=te[ee],ie=se.keyNode.value;j[ie]=se.valueNode,W.push(ie)}if(Array.isArray(x.required))for(var de=0,we=x.required;de<we.length;de++){var xe=we[de];if(!j[xe]){var Ee=b.parent&&b.parent.type==="property"&&b.parent.keyNode,ye=Ee?{offset:Ee.offset,length:Ee.length}:{offset:b.offset,length:1};I.problems.push({location:ye,severity:Dt.Warning,message:'Missing property "'+xe+'".'})}}var be=function(Ei){for(var iu=W.indexOf(Ei);iu>=0;)W.splice(iu,1),iu=W.indexOf(Ei)};if(x.properties)for(var Se=0,ke=Object.keys(x.properties);Se<ke.length;Se++){var xe=ke[Se];be(xe);var Me=x.properties[xe],Re=j[xe];if(Re)if(Vi(Me))if(Me)I.propertiesMatches++,I.propertiesValueMatches++;else{var se=Re.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:Dt.Warning,message:x.errorMessage||"Property "+xe+" is not allowed."})}else{var We=new Vn;gn(Re,Me,We,N),I.mergePropertyMatch(We)}}if(x.patternProperties)for(var It=0,vt=Object.keys(x.patternProperties);It<vt.length;It++)for(var rr=vt[It],cr=new RegExp(rr),mr=0,$r=W.slice(0);mr<$r.length;mr++){var xe=$r[mr];if(cr.test(xe)){be(xe);var Re=j[xe];if(Re){var Me=x.patternProperties[rr];if(Vi(Me))if(Me)I.propertiesMatches++,I.propertiesValueMatches++;else{var se=Re.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:Dt.Warning,message:x.errorMessage||"Property "+xe+" is not allowed."})}else{var We=new Vn;gn(Re,Me,We,N),I.mergePropertyMatch(We)}}}}if(typeof x.additionalProperties=="object")for(var yr=0,kr=W;yr<kr.length;yr++){var xe=kr[yr],Re=j[xe];if(Re){var We=new Vn;gn(Re,x.additionalProperties,We,N),I.mergePropertyMatch(We)}}else if(x.additionalProperties===!1&&W.length>0)for(var wn=0,Wt=W;wn<Wt.length;wn++){var xe=Wt[wn],Re=j[xe];if(Re){var se=Re.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:Dt.Warning,message:x.errorMessage||"Property "+xe+" is not allowed."})}}if(Qn(x.maxProperties)&&b.properties.length>x.maxProperties&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Object has more properties than limit of "+x.maxProperties+"."}),Qn(x.minProperties)&&b.properties.length<x.minProperties&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Object has fewer properties than the required number of "+x.minProperties}),x.dependencies)for(var yt=0,Pt=Object.keys(x.dependencies);yt<Pt.length;yt++){var ie=Pt[yt],nr=j[ie];if(nr){var ln=x.dependencies[ie];if(Array.isArray(ln))for(var hr=0,Is=ln;hr<Is.length;hr++){var ru=Is[hr];j[ru]?I.propertiesValueMatches++:I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Object is missing property "+ru+" required by property {$key}."})}else{var Me=jn(ln);if(Me){var We=new Vn;gn(b,Me,We,N),I.mergePropertyMatch(We)}}}}var Ro=jn(x.propertyNames);if(Ro)for(var Wi=0,nu=b.properties;Wi<nu.length;Wi++){var yc=nu[Wi],ie=yc.keyNode;ie&&gn(ie,Ro,I,Gd.instance)}}}function rb(e,r){var n=[],a=-1,o=e.getText(),f=Ss(o,!1),d=r&&r.collectComments?[]:void 0;function m(){for(;;){var Ee=f.scan();switch(I(),Ee){case 12:case 13:Array.isArray(d)&&d.push(_t.create(e.positionAt(f.getTokenOffset()),e.positionAt(f.getTokenOffset()+f.getTokenLength())));break;case 15:case 14:break;default:return Ee}}}function g(Ee){return f.getToken()===Ee?(m(),!0):!1}function b(Ee,ye,be,Se,ke){if(ke===void 0&&(ke=Dt.Error),n.length===0||be!==a){var Me=_t.create(e.positionAt(be),e.positionAt(Se));n.push(pa.create(Me,Ee,ke,ye,e.languageId)),a=be}}function x(Ee,ye,be,Se,ke){be===void 0&&(be=null),Se===void 0&&(Se=[]),ke===void 0&&(ke=[]);var Me=f.getTokenOffset(),Re=f.getTokenOffset()+f.getTokenLength();if(Me===Re&&Me>0){for(Me--;Me>0&&/\s/.test(o.charAt(Me));)Me--;Re=Me+1}if(b(Ee,ye,Me,Re),be&&N(be,!1),Se.length+ke.length>0)for(var We=f.getToken();We!==17;){if(Se.indexOf(We)!==-1){m();break}else if(ke.indexOf(We)!==-1)break;We=m()}return be}function I(){switch(f.getTokenError()){case 4:return x("Invalid unicode sequence in string.",Qt.InvalidUnicode),!0;case 5:return x("Invalid escape character in string.",Qt.InvalidEscapeCharacter),!0;case 3:return x("Unexpected end of number.",Qt.UnexpectedEndOfNumber),!0;case 1:return x("Unexpected end of comment.",Qt.UnexpectedEndOfComment),!0;case 2:return x("Unexpected end of string.",Qt.UnexpectedEndOfString),!0;case 6:return x("Invalid characters in string. Control characters must be escaped.",Qt.InvalidCharacter),!0}return!1}function N(Ee,ye){return Ee.length=f.getTokenOffset()+f.getTokenLength()-Ee.offset,ye&&m(),Ee}function j(Ee){if(f.getToken()!==3)return null;var ye=new Q0(Ee,f.getTokenOffset());m();for(var be=0,Se=!1;f.getToken()!==4&&f.getToken()!==17;){if(f.getToken()===5){Se||x("Value expected",Qt.ValueExpected);var ke=f.getTokenOffset();if(m(),f.getToken()===4){Se&&b("Trailing comma",Qt.TrailingComma,ke,ke+1);continue}}else Se&&x("Expected comma",Qt.CommaExpected);var Me=de(ye,be++);Me?ye.items.push(Me):x("Value expected",Qt.ValueExpected,null,[],[4,5]),Se=!0}return f.getToken()!==4?x("Expected comma or closing bracket",Qt.CommaOrCloseBacketExpected,ye):N(ye,!0)}function W(Ee,ye){var be=new _0(Ee,f.getTokenOffset()),Se=te(be);if(!Se)if(f.getToken()===16){x("Property keys must be doublequoted",Qt.Undefined);var ke=new Vv(be,f.getTokenOffset(),f.getTokenLength());ke.value=f.getTokenValue(),Se=ke,m()}else return null;be.keyNode=Se;var Me=ye[Se.value];if(Me?(b("Duplicate object key",Qt.DuplicateKey,be.keyNode.offset,be.keyNode.offset+be.keyNode.length,Dt.Warning),typeof Me=="object"&&b("DuplicateKeyWarning",Qt.DuplicateKey,Me.keyNode.offset,Me.keyNode.offset+Me.keyNode.length,Dt.Warning),ye[Se.value]=!0):ye[Se.value]=be,f.getToken()===6)be.colonOffset=f.getTokenOffset(),m();else if(x("Colon expected",Qt.ColonExpected),f.getToken()===10&&e.positionAt(Se.offset+Se.length).line<e.positionAt(f.getTokenOffset()).line)return be.length=Se.length,be;var Re=de(be,Se.value);return Re?(be.valueNode=Re,be.length=Re.offset+Re.length-be.offset,be):x("Value expected",Qt.ValueExpected,be,[],[2,5])}function ee(Ee){if(f.getToken()!==1)return null;var ye=new q0(Ee,f.getTokenOffset()),be=Object.create(null);m();for(var Se=!1;f.getToken()!==2&&f.getToken()!==17;){if(f.getToken()===5){Se||x("Property expected",Qt.PropertyExpected);var ke=f.getTokenOffset();if(m(),f.getToken()===2){Se&&b("Trailing comma",Qt.TrailingComma,ke,ke+1);continue}}else Se&&x("Expected comma",Qt.CommaExpected);var Me=W(ye,be);Me?ye.properties.push(Me):x("Property expected",Qt.PropertyExpected,null,[],[2,5]),Se=!0}return f.getToken()!==2?x("Expected comma or closing brace",Qt.CommaOrCloseBraceExpected,ye):N(ye,!0)}function te(Ee){if(f.getToken()!==10)return null;var ye=new Vv(Ee,f.getTokenOffset());return ye.value=f.getTokenValue(),N(ye,!0)}function se(Ee){if(f.getToken()!==11)return null;var ye=new Z0(Ee,f.getTokenOffset());if(f.getTokenError()===0){var be=f.getTokenValue();try{var Se=JSON.parse(be);if(!Qn(Se))return x("Invalid number format.",Qt.Undefined,ye);ye.value=Se}catch(ke){return x("Invalid number format.",Qt.Undefined,ye)}ye.isInteger=be.indexOf(".")===-1}return N(ye,!0)}function ie(Ee){var ye;switch(f.getToken()){case 7:return N(new X0(Ee,f.getTokenOffset()),!0);case 8:return N(new jv(Ee,!0,f.getTokenOffset()),!0);case 9:return N(new jv(Ee,!1,f.getTokenOffset()),!0);default:return null}}function de(Ee,ye){return j(Ee)||ee(Ee)||te(Ee)||se(Ee)||ie(Ee)}var we=null,xe=m();return xe!==17&&(we=de(null,null),we?f.getToken()!==17&&x("End of file expected.",Qt.Undefined):x("Expected a JSON object, array or literal.",Qt.Undefined)),new Hv(we,n,d)}function Kd(e,r,n){if(e!==null&&typeof e=="object"){var a=r+" ";if(Array.isArray(e)){if(e.length===0)return"[]";for(var o=`[
343
- `,f=0;f<e.length;f++)o+=a+Kd(e[f],a,n),f<e.length-1&&(o+=","),o+=`
344
- `;return o+=r+"]",o}else{var d=Object.keys(e);if(d.length===0)return"{}";for(var o=`{
345
- `,f=0;f<d.length;f++){var m=d[f];o+=a+JSON.stringify(m)+": "+Kd(e[m],a,n),f<d.length-1&&(o+=","),o+=`
346
- `}return o+=r+"}",o}}return n(e)}function nb(e,r){if(e.length<r.length)return!1;for(var n=0;n<r.length;n++)if(e[n]!==r[n])return!1;return!0}function Yd(e,r){var n=e.length-r.length;return n>0?e.lastIndexOf(r)===n:n===0?e===r:!1}function ib(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function A1(e,r){for(var n="";r>0;)(r&1)===1&&(n+=e),e+=e,r=r>>>1;return n}var ab=[",","}","]"],ob=[":"],sb=function(){function e(r,n,a,o){n===void 0&&(n=[]),a===void 0&&(a=Promise),o===void 0&&(o={}),this.schemaService=r,this.contributions=n,this.promiseConstructor=a,this.clientCapabilities=o,this.templateVarIdCounter=0}return e.prototype.doResolve=function(r){for(var n=this.contributions.length-1;n>=0;n--)if(this.contributions[n].resolveCompletion){var a=this.contributions[n].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},e.prototype.doComplete=function(r,n,a){var o=this,f={items:[],isIncomplete:!1},d=r.getText(),m=r.offsetAt(n),g=a.getNodeFromOffset(m,!0);if(this.isInComment(r,g?g.offset:0,m))return Promise.resolve(f);if(g&&m===g.offset+g.length&&m>0){var b=d[m-1];(g.type==="object"&&b==="}"||g.type==="array"&&b==="]")&&(g=g.parent)}var x=this.getCurrentWord(r,m),I=null;if(g&&(g.type==="string"||g.type==="number"||g.type==="boolean"||g.type==="null"))I=_t.create(r.positionAt(g.offset),r.positionAt(g.offset+g.length));else{var N=m-x.length;N>0&&d[N-1]==='"'&&N--,I=_t.create(r.positionAt(N),n)}var j=this.doesSupportsCommitCharacters(),W={},ee={add:function(te){var se=W[te.label];se?se.documentation||(se.documentation=te.documentation):(W[te.label]=te,I&&(te.textEdit=ai.replace(I,te.insertText)),j&&(te.commitCharacters=te.kind===Zn.Property?ob:ab),f.items.push(te))},setAsIncomplete:function(){f.isIncomplete=!0},error:function(te){console.error(te)},log:function(te){console.log(te)},getNumberOfProposals:function(){return f.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(te){var se=[],ie=!0,de="",we=null;if(g&&g.type==="string"){var xe=g.parent;xe&&xe.type==="property"&&xe.keyNode===g&&(ie=!xe.valueNode,we=xe,de=d.substr(g.offset+1,g.length-2),xe&&(g=xe.parent))}if(g&&g.type==="object"){if(g.offset===m)return f;var Ee=g.properties;Ee.forEach(function(ke){(!we||we!==ke)&&(W[ke.keyNode.value]=Ud.create("__"))});var ye="";ie&&(ye=o.evaluateSeparatorAfter(r,r.offsetAt(I.end))),te?o.getPropertyCompletions(te,a,g,ie,ye,ee):o.getSchemaLessPropertyCompletions(a,g,de,ee);var be=$d(g);o.contributions.forEach(function(ke){var Me=ke.collectPropertyCompletions(r.uri,be,x,ie,ye==="",ee);Me&&se.push(Me)}),!te&&x.length>0&&d.charAt(m-x.length-1)!=='"'&&(ee.add({kind:Zn.Property,label:o.getLabelForValue(x),insertText:o.getInsertTextForProperty(x,null,!1,ye),insertTextFormat:Zr.Snippet,documentation:""}),ee.setAsIncomplete())}var Se={};return te?o.getValueCompletions(te,a,g,m,r,ee,Se):o.getSchemaLessValueCompletions(a,g,m,r,ee),o.contributions.length>0&&o.getContributedValueCompletions(a,g,m,r,ee,se),o.promiseConstructor.all(se).then(function(){if(ee.getNumberOfProposals()===0){var ke=m;g&&(g.type==="string"||g.type==="number"||g.type==="boolean"||g.type==="null")&&(ke=g.offset+g.length);var Me=o.evaluateSeparatorAfter(r,ke);o.addFillerValueCompletions(Se,Me,ee)}return f})})},e.prototype.getPropertyCompletions=function(r,n,a,o,f,d){var m=this,g=n.getMatchingSchemas(r.schema,a.offset);g.forEach(function(b){if(b.node===a&&!b.inverted){var x=b.schema.properties;x&&Object.keys(x).forEach(function(I){var N=x[I],j=!1;if(typeof N=="object"&&N.allOf)for(var W=0,ee=N.allOf;W<ee.length;W++){var te=ee[W];if(te.readOnly){j=!0;break}}if(typeof N=="object"&&!N.deprecationMessage&&!N.doNotSuggest&&!j){var se={kind:Zn.Property,label:m.sanitizeLabel(I),insertText:m.getInsertTextForProperty(I,N,o,f),insertTextFormat:Zr.Snippet,filterText:m.getFilterTextForValue(I),documentation:m.fromMarkup(N.markdownDescription)||N.description||""};Yd(se.insertText,"$1"+f)&&(se.command={title:"Suggest",command:"editor.action.triggerSuggest"}),d.add(se)}})}})},e.prototype.getSchemaLessPropertyCompletions=function(r,n,a,o){var f=this,d=function(g){g.properties.forEach(function(b){var x=b.keyNode.value;o.add({kind:Zn.Property,label:f.sanitizeLabel(x),insertText:f.getInsertTextForValue(x,""),insertTextFormat:Zr.Snippet,filterText:f.getFilterTextForValue(x),documentation:""})})};if(n.parent)if(n.parent.type==="property"){var m=n.parent.keyNode.value;r.visit(function(g){return g.type==="property"&&g!==n.parent&&g.keyNode.value===m&&g.valueNode&&g.valueNode.type==="object"&&d(g.valueNode),!0})}else n.parent.type==="array"&&n.parent.items.forEach(function(g){g.type==="object"&&g!==n&&d(g)});else n.type==="object"&&o.add({kind:Zn.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Zr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(r,n,a,o,f){var d=this,m=a;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(m=n.offset+n.length,n=n.parent),!n){f.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Zr.Snippet,documentation:""}),f.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Zr.Snippet,documentation:""});return}var g=this.evaluateSeparatorAfter(o,m),b=function(j){Wv(j.parent,a,!0)||f.add({kind:d.getSuggestionKind(j.type),label:d.getLabelTextForMatchingNode(j,o),insertText:d.getInsertTextForMatchingNode(j,o,g),insertTextFormat:Zr.Snippet,documentation:""}),j.type==="boolean"&&d.addBooleanValueCompletion(!j.value,g,f)};if(n.type==="property"&&a>n.colonOffset){var x=n.valueNode;if(x&&(a>x.offset+x.length||x.type==="object"||x.type==="array"))return;var I=n.keyNode.value;r.visit(function(j){return j.type==="property"&&j.keyNode.value===I&&j.valueNode&&b(j.valueNode),!0}),I==="$schema"&&n.parent&&!n.parent.parent&&this.addDollarSchemaCompletions(g,f)}if(n.type==="array")if(n.parent&&n.parent.type==="property"){var N=n.parent.keyNode.value;r.visit(function(j){return j.type==="property"&&j.keyNode.value===N&&j.valueNode&&j.valueNode.type==="array"&&j.valueNode.items.forEach(b),!0})}else n.items.forEach(b)},e.prototype.getValueCompletions=function(r,n,a,o,f,d,m){var g=this,b=o,x=null,I=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(b=a.offset+a.length,I=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",d,m);return}if(a.type==="property"&&o>a.colonOffset){var N=a.valueNode;if(N&&o>N.offset+N.length)return;x=a.keyNode.value,a=a.parent}if(a&&(x!==null||a.type==="array")){var j=this.evaluateSeparatorAfter(f,b),W=n.getMatchingSchemas(r.schema,a.offset,I);W.forEach(function(ee){if(ee.node===a&&!ee.inverted&&ee.schema){if(a.type==="array"&&ee.schema.items)if(Array.isArray(ee.schema.items)){var te=g.findItemAtOffset(a,f,o);te<ee.schema.items.length&&g.addSchemaValueCompletions(ee.schema.items[te],j,d,m)}else g.addSchemaValueCompletions(ee.schema.items,j,d,m);if(ee.schema.properties){var se=ee.schema.properties[x];se&&g.addSchemaValueCompletions(se,j,d,m)}}}),x==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(j,d),m.boolean&&(this.addBooleanValueCompletion(!0,j,d),this.addBooleanValueCompletion(!1,j,d)),m.null&&this.addNullValueCompletion(j,d)}},e.prototype.getContributedValueCompletions=function(r,n,a,o,f,d){if(!n)this.contributions.forEach(function(x){var I=x.collectDefaultCompletions(o.uri,f);I&&d.push(I)});else if((n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(n=n.parent),n.type==="property"&&a>n.colonOffset){var m=n.keyNode.value,g=n.valueNode;if(!g||a<=g.offset+g.length){var b=$d(n.parent);this.contributions.forEach(function(x){var I=x.collectValueCompletions(o.uri,b,m,f);I&&d.push(I)})}}},e.prototype.addSchemaValueCompletions=function(r,n,a,o){var f=this;typeof r=="object"&&(this.addEnumValueCompletions(r,n,a),this.addDefaultValueCompletions(r,n,a),this.collectTypes(r,o),Array.isArray(r.allOf)&&r.allOf.forEach(function(d){return f.addSchemaValueCompletions(d,n,a,o)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(d){return f.addSchemaValueCompletions(d,n,a,o)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(d){return f.addSchemaValueCompletions(d,n,a,o)}))},e.prototype.addDefaultValueCompletions=function(r,n,a,o){var f=this;o===void 0&&(o=0);var d=!1;if(da(r.default)){for(var m=r.type,g=r.default,b=o;b>0;b--)g=[g],m="array";a.add({kind:this.getSuggestionKind(m),label:this.getLabelForValue(g),insertText:this.getInsertTextForValue(g,n),insertTextFormat:Zr.Snippet}),d=!0}Array.isArray(r.examples)&&r.examples.forEach(function(x){for(var I=r.type,N=x,j=o;j>0;j--)N=[N],I="array";a.add({kind:f.getSuggestionKind(I),label:f.getLabelForValue(N),insertText:f.getInsertTextForValue(N,n),insertTextFormat:Zr.Snippet}),d=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(x){var I=r.type,N=x.body,j=x.label,W,ee;if(da(N)){for(var te=r.type,se=o;se>0;se--)N=[N],te="array";W=f.getInsertTextForSnippetValue(N,n),ee=f.getFilterTextForSnippetValue(N),j=j||f.getLabelForSnippetValue(N)}else if(typeof x.bodyText=="string"){for(var ie="",de="",we="",se=o;se>0;se--)ie=ie+we+`[
347
- `,de=de+`
348
- `+we+"]",we+=" ",I="array";W=ie+we+x.bodyText.split(`
349
- `).join(`
350
- `+we)+de+n,j=j||f.sanitizeLabel(W),ee=W.replace(/[\n]/g,"")}a.add({kind:f.getSuggestionKind(I),label:j,documentation:f.fromMarkup(x.markdownDescription)||x.description,insertText:W,insertTextFormat:Zr.Snippet,filterText:ee}),d=!0}),!d&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,n,a,o+1)},e.prototype.addEnumValueCompletions=function(r,n,a){if(da(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,n),insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var o=0,f=r.enum.length;o<f;o++){var d=r.enum[o],m=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&o<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?m=this.fromMarkup(r.markdownEnumDescriptions[o]):r.enumDescriptions&&o<r.enumDescriptions.length&&(m=r.enumDescriptions[o]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(d),insertText:this.getInsertTextForValue(d,n),insertTextFormat:Zr.Snippet,documentation:m})}},e.prototype.collectTypes=function(r,n){if(!(Array.isArray(r.enum)||da(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(o){return n[o]=!0}):n[a]=!0}},e.prototype.addFillerValueCompletions=function(r,n,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},n),insertTextFormat:Zr.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],n),insertTextFormat:Zr.Snippet,detail:"New array",documentation:""})},e.prototype.addBooleanValueCompletion=function(r,n,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,n),insertTextFormat:Zr.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(r,n){n.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Zr.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(r,n){var a=this,o=this.schemaService.getRegisteredSchemaIds(function(f){return f==="http"||f==="https"});o.forEach(function(f){return n.add({kind:Zn.Module,label:a.getLabelForValue(f),filterText:a.getFilterTextForValue(f),insertText:a.getInsertTextForValue(f,r),insertTextFormat:Zr.Snippet,documentation:""})})},e.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},e.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},e.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},e.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(r){var n=JSON.stringify(r);return n=n.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(n)},e.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(r,n){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+n:a==="[]"?"[$1]"+n:this.getInsertTextForPlainText(a+n)},e.prototype.getInsertTextForSnippetValue=function(r,n){var a=function(o){return typeof o=="string"&&o[0]==="^"?o.substr(1):JSON.stringify(o)};return Kd(r,"",a)+n},e.prototype.getInsertTextForGuessedValue=function(r,n){switch(typeof r){case"object":return r===null?"${1:null}"+n:this.getInsertTextForValue(r,n);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+n;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+n}return this.getInsertTextForValue(r,n)},e.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var n=r;r=n.length>0?n[0]:null}if(!r)return Zn.Value;switch(r){case"string":return Zn.Value;case"object":return Zn.Module;case"property":return Zn.Property;default:return Zn.Value}},e.prototype.getLabelTextForMatchingNode=function(r,n){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=n.getText().substr(r.offset,r.length);return a}},e.prototype.getInsertTextForMatchingNode=function(r,n,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var o=n.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(o)}},e.prototype.getInsertTextForProperty=function(r,n,a,o){var f=this.getInsertTextForValue(r,"");if(!a)return f;var d=f+": ",m,g=0;if(n){if(Array.isArray(n.defaultSnippets)){if(n.defaultSnippets.length===1){var b=n.defaultSnippets[0].body;da(b)&&(m=this.getInsertTextForSnippetValue(b,""))}g+=n.defaultSnippets.length}if(n.enum&&(!m&&n.enum.length===1&&(m=this.getInsertTextForGuessedValue(n.enum[0],"")),g+=n.enum.length),da(n.default)&&(m||(m=this.getInsertTextForGuessedValue(n.default,"")),g++),g===0){var x=Array.isArray(n.type)?n.type[0]:n.type;switch(x||(n.properties?x="object":n.items&&(x="array")),x){case"boolean":m="$1";break;case"string":m='"$1"';break;case"object":m="{$1}";break;case"array":m="[$1]";break;case"number":case"integer":m="${1:0}";break;case"null":m="${1:null}";break;default:return f}}}return(!m||g>1)&&(m="$1"),d+m+o},e.prototype.getCurrentWord=function(r,n){for(var a=n-1,o=r.getText();a>=0&&`
351
- \r\v":{[,]}`.indexOf(o.charAt(a))===-1;)a--;return o.substring(a+1,n)},e.prototype.evaluateSeparatorAfter=function(r,n){var a=Ss(r.getText(),!0);a.setPosition(n);var o=a.scan();switch(o){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(r,n,a){for(var o=Ss(n.getText(),!0),f=r.items,d=f.length-1;d>=0;d--){var m=f[d];if(a>m.offset+m.length){o.setPosition(m.offset+m.length);var g=o.scan();return g===5&&a>=o.getTokenOffset()+o.getTokenLength()?d+1:d}else if(a>=m.offset)return d}return 0},e.prototype.isInComment=function(r,n,a){var o=Ss(r.getText(),!1);o.setPosition(n);for(var f=o.scan();f!==17&&o.getTokenOffset()+o.getTokenLength()<a;)f=o.scan();return(f===12||f===13)&&o.getTokenOffset()<=a},e.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:Io.Markdown,value:r}},e.prototype.doesSupportMarkdown=function(){if(!da(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(Io.Markdown)!==-1}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!da(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),lb=function(){function e(r,n,a){n===void 0&&(n=[]),this.schemaService=r,this.contributions=n,this.promise=a||Promise}return e.prototype.doHover=function(r,n,a){var o=r.offsetAt(n),f=a.getNodeFromOffset(o);if(!f||(f.type==="object"||f.type==="array")&&o>f.offset+1&&o<f.offset+f.length-1)return this.promise.resolve(null);var d=f;if(f.type==="string"){var m=f.parent;if(m&&m.type==="property"&&m.keyNode===f&&(f=m.valueNode,!f))return this.promise.resolve(null)}for(var g=_t.create(r.positionAt(d.offset),r.positionAt(d.offset+d.length)),b=function(W){var ee={contents:W,range:g};return ee},x=$d(f),I=this.contributions.length-1;I>=0;I--){var N=this.contributions[I],j=N.getInfoContribution(r.uri,x);if(j)return j.then(function(W){return b(W)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function(W){if(W){var ee=a.getMatchingSchemas(W.schema,f.offset),te=null,se=null,ie=null,de=null;ee.every(function(xe){if(xe.node===f&&!xe.inverted&&xe.schema&&(te=te||xe.schema.title,se=se||xe.schema.markdownDescription||Jd(xe.schema.description),xe.schema.enum)){var Ee=xe.schema.enum.indexOf(Ua(f));xe.schema.markdownEnumDescriptions?ie=xe.schema.markdownEnumDescriptions[Ee]:xe.schema.enumDescriptions&&(ie=Jd(xe.schema.enumDescriptions[Ee])),ie&&(de=xe.schema.enum[Ee],typeof de!="string"&&(de=JSON.stringify(de)))}return!0});var we="";return te&&(we=Jd(te)),se&&(we.length>0&&(we+=`
352
-
353
- `),we+=se),ie&&(we.length>0&&(we+=`
354
-
355
- `),we+="`"+ub(de)+"`: "+ie),b([we])}return null})},e}();function Jd(e){if(e){var r=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
356
-
357
- $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function ub(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var fb=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var f in o)o.hasOwnProperty(f)&&(a[f]=o[f])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Br,eu;if(typeof process=="object")eu=!1;else if(typeof navigator=="object"){var cb=navigator.userAgent;eu=cb.indexOf("Windows")>=0}function C1(e){return 55296<=e&&e<=56319}function E1(e){return 56320<=e&&e<=57343}function O1(e){return e>=97&&e<=102}function db(e){return e>=97&&e<=122}function pb(e){return e>=65&&e<=90}function T1(e){return db(e)||pb(e)}var hb=/^\w[\w\d+.-]*$/,vb=/^\//,gb=/^\/\//;function mb(e,r){if(!e.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!hb.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!vb.test(e.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(gb.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function yb(e,r){return!e&&!r?"file":e}function bb(e,r){switch(e){case"https":case"http":case"file":r?r[0]!==Ci&&(r=Ci+r):r=Ci;break}return r}var fr="",Ci="/",xb=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Xd=function(){function e(r,n,a,o,f,d){d===void 0&&(d=!1),typeof r=="object"?(this.scheme=r.scheme||fr,this.authority=r.authority||fr,this.path=r.path||fr,this.query=r.query||fr,this.fragment=r.fragment||fr):(this.scheme=yb(r,d),this.authority=n||fr,this.path=bb(this.scheme,a||fr),this.query=o||fr,this.fragment=f||fr,mb(this,d))}return e.isUri=function(r){return r instanceof e?!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(e.prototype,"fsPath",{get:function(){return Kv(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(r){if(!r)return this;var n=r.scheme,a=r.authority,o=r.path,f=r.query,d=r.fragment;return n===void 0?n=this.scheme:n===null&&(n=fr),a===void 0?a=this.authority:a===null&&(a=fr),o===void 0?o=this.path:o===null&&(o=fr),f===void 0?f=this.query:f===null&&(f=fr),d===void 0?d=this.fragment:d===null&&(d=fr),n===this.scheme&&a===this.authority&&o===this.path&&f===this.query&&d===this.fragment?this:new Es(n,a,o,f,d)},e.parse=function(r,n){n===void 0&&(n=!1);var a=xb.exec(r);return a?new Es(a[2]||fr,pc(a[4]||fr),pc(a[5]||fr),pc(a[7]||fr),pc(a[9]||fr),n):new Es(fr,fr,fr,fr,fr)},e.file=function(r){var n=fr;if(eu&&(r=r.replace(/\\/g,Ci)),r[0]===Ci&&r[1]===Ci){var a=r.indexOf(Ci,2);a===-1?(n=r.substring(2),r=Ci):(n=r.substring(2,a),r=r.substring(a)||Ci)}return new Es("file",n,r,fr,fr)},e.from=function(r){return new Es(r.scheme,r.authority,r.path,r.query,r.fragment)},e.prototype.toString=function(r){return r===void 0&&(r=!1),Qd(this,r)},e.prototype.toJSON=function(){return this},e.revive=function(r){if(r){if(r instanceof e)return r;var n=new Es(r);return n._formatted=r.external,n._fsPath=r._sep===zv?r.fsPath:null,n}else return r},e}(),zv=eu?1:void 0,Es=function(e){fb(r,e);function r(){var n=e!==null&&e.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=Kv(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(n){return n===void 0&&(n=!1),n?Qd(this,!0):(this._formatted||(this._formatted=Qd(this,!1)),this._formatted)},r.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=zv),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}(Xd),Gv=(Br={},Br[58]="%3A",Br[47]="%2F",Br[63]="%3F",Br[35]="%23",Br[91]="%5B",Br[93]="%5D",Br[64]="%40",Br[33]="%21",Br[36]="%24",Br[38]="%26",Br[39]="%27",Br[40]="%28",Br[41]="%29",Br[42]="%2A",Br[43]="%2B",Br[44]="%2C",Br[59]="%3B",Br[61]="%3D",Br[32]="%20",Br);function $v(e,r){for(var n=void 0,a=-1,o=0;o<e.length;o++){var f=e.charCodeAt(o);if(f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===45||f===46||f===95||f===126||r&&f===47)a!==-1&&(n+=encodeURIComponent(e.substring(a,o)),a=-1),n!==void 0&&(n+=e.charAt(o));else{n===void 0&&(n=e.substr(0,o));var d=Gv[f];d!==void 0?(a!==-1&&(n+=encodeURIComponent(e.substring(a,o)),a=-1),n+=d):a===-1&&(a=o)}}return a!==-1&&(n+=encodeURIComponent(e.substring(a))),n!==void 0?n:e}function Sb(e){for(var r=void 0,n=0;n<e.length;n++){var a=e.charCodeAt(n);a===35||a===63?(r===void 0&&(r=e.substr(0,n)),r+=Gv[a]):r!==void 0&&(r+=e[n])}return r!==void 0?r:e}function Kv(e,r){var n;return e.authority&&e.path.length>1&&e.scheme==="file"?n="//"+e.authority+e.path:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?r?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,eu&&(n=n.replace(/\//g,"\\")),n}function Qd(e,r){var n=r?Sb:$v,a="",o=e.scheme,f=e.authority,d=e.path,m=e.query,g=e.fragment;if(o&&(a+=o,a+=":"),(f||o==="file")&&(a+=Ci,a+=Ci),f){var b=f.indexOf("@");if(b!==-1){var x=f.substr(0,b);f=f.substr(b+1),b=x.indexOf(":"),b===-1?a+=n(x,!1):(a+=n(x.substr(0,b),!1),a+=":",a+=n(x.substr(b+1),!1)),a+="@"}f=f.toLowerCase(),b=f.indexOf(":"),b===-1?a+=n(f,!1):(a+=n(f.substr(0,b),!1),a+=f.substr(b))}if(d){if(d.length>=3&&d.charCodeAt(0)===47&&d.charCodeAt(2)===58){var I=d.charCodeAt(1);I>=65&&I<=90&&(d="/"+String.fromCharCode(I+32)+":"+d.substr(3))}else if(d.length>=2&&d.charCodeAt(1)===58){var I=d.charCodeAt(0);I>=65&&I<=90&&(d=String.fromCharCode(I+32)+":"+d.substr(2))}a+=n(d,!0)}return m&&(a+="?",a+=n(m,!1)),g&&(a+="#",a+=r?g:$v(g,!1)),a}function Yv(e){try{return decodeURIComponent(e)}catch(r){return e.length>3?e.substr(0,3)+Yv(e.substr(3)):e}}var Jv=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function pc(e){return e.match(Jv)?e.replace(Jv,function(r){return Yv(r)}):e}var wb=function(){function e(r){try{this.patternRegExp=new RegExp(ib(r)+"$")}catch(n){this.patternRegExp=null}this.schemas=[]}return e.prototype.addSchema=function(r){this.schemas.push(r)},e.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},e.prototype.getSchemas=function(){return this.schemas},e}(),Ab=function(){function e(r,n,a){this.service=r,this.url=n,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new Os(a)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.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},e.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},e}(),Os=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e}(),Xv=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e.prototype.getSection=function(r){return jn(this.getSectionRecursive(r,this.schema))},e.prototype.getSectionRecursive=function(r,n){if(!n||typeof n=="boolean"||r.length===0)return n;var a=r.shift();if(n.properties&&typeof n.properties[a])return this.getSectionRecursive(r,n.properties[a]);if(n.patternProperties)for(var o=0,f=Object.keys(n.patternProperties);o<f.length;o++){var d=f[o],m=new RegExp(d);if(m.test(a))return this.getSectionRecursive(r,n.patternProperties[d])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(r,n.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(n.items)){var g=parseInt(a,10);if(!isNaN(g)&&n.items[g])return this.getSectionRecursive(r,n.items[g])}else if(n.items)return this.getSectionRecursive(r,n.items)}}return null},e}(),Cb=function(){function e(r,n,a){this.contextService=n,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(n){var a=Xd.parse(n).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(r){var n=this,a=!1;r=this.normalizeId(r);for(var o=[r],f=Object.keys(this.schemasById).map(function(b){return n.schemasById[b]});o.length;)for(var d=o.pop(),m=0;m<f.length;m++){var g=f[m];g&&(g.url===d||g.dependencies[d])&&(g.url!==d&&o.push(g.url),g.clearSchema(),f[m]=void 0,a=!0)}return a},e.prototype.normalizeId=function(r){try{return Xd.parse(r).toString()}catch(n){return r}},e.prototype.setSchemaContributions=function(r){if(r.schemas){var n=r.schemas;for(var a in n){var o=this.normalizeId(a);this.contributionSchemas[o]=this.addSchemaHandle(o,n[a])}}if(r.schemaAssociations){var f=r.schemaAssociations;for(var d in f){var m=f[d];this.contributionAssociations[d]=m;for(var g=this.getOrAddFilePatternAssociation(d),b=0,x=m;b<x.length;b++){var I=x[b],a=this.normalizeId(I);g.addSchema(a)}}}},e.prototype.addSchemaHandle=function(r,n){var a=new Ab(this,r,n);return this.schemasById[r]=a,a},e.prototype.getOrAddSchemaHandle=function(r,n){return this.schemasById[r]||this.addSchemaHandle(r,n)},e.prototype.getOrAddFilePatternAssociation=function(r){var n=this.filePatternAssociationById[r];return n||(n=new wb(r),this.filePatternAssociationById[r]=n,this.filePatternAssociations.push(n)),n},e.prototype.registerExternalSchema=function(r,n,a){n===void 0&&(n=null);var o=this.normalizeId(r);if(this.registeredSchemasIds[o]=!0,n)for(var f=0,d=n;f<d.length;f++){var m=d[f];this.getOrAddFilePatternAssociation(m).addSchema(o)}return a?this.addSchemaHandle(o,a):this.getOrAddSchemaHandle(o)},e.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 a=this.getOrAddFilePatternAssociation(n),o=0,f=this.contributionAssociations[n];o<f.length;o++){var d=f[o],r=this.normalizeId(d);a.addSchema(r)}},e.prototype.getResolvedSchema=function(r){var n=this.normalizeId(r),a=this.schemasById[n];return a?a.getResolvedSchema():this.promise.resolve(null)},e.prototype.loadSchema=function(r){if(!this.requestService){var n="Unable to load schema from '"+hc(r)+"'. No schema request service available";return this.promise.resolve(new Os({},[n]))}return this.requestService(r).then(function(a){if(!a){var o="Unable to load schema from '"+hc(r)+"': No content.";return new Os({},[o])}var f={},d=[];f=U0(a,d);var m=d.length?["Unable to parse content from '"+hc(r)+"': Parse error at offset "+d[0].offset]:[];return new Os(f,m)},function(a){var o="Unable to load schema from '"+hc(r)+"': "+a.toString();return new Os({},[o])})},e.prototype.resolveSchemaContent=function(r,n,a){var o=this,f=r.errors.slice(0),d=r.schema;if(d.$schema){var m=this.normalizeId(d.$schema);if(m==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Xv({},["Draft-03 schemas are not supported."]));m==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var g=this.contextService,b=function(j,W){if(!W)return j;var ee=j;return W[0]==="/"&&(W=W.substr(1)),W.split("/").some(function(te){return ee=ee[te],!ee}),ee},x=function(j,W,ee,te){var se=b(W,te);if(se)for(var ie in se)se.hasOwnProperty(ie)&&!j.hasOwnProperty(ie)&&(j[ie]=se[ie]);else f.push("$ref '"+te+"' in '"+ee+"' can not be resolved.")},I=function(j,W,ee,te,se){g&&!/^\w+:\/\/.*/.test(W)&&(W=g.resolveRelativePath(W,te)),W=o.normalizeId(W);var ie=o.getOrAddSchemaHandle(W);return ie.getUnresolvedSchema().then(function(de){if(se[W]=!0,de.errors.length){var we=ee?W+"#"+ee:W;f.push("Problems loading reference '"+we+"': "+de.errors[0]+".")}return x(j,de.schema,W,ee),N(j,de.schema,W,ie.dependencies)})},N=function(j,W,ee,te){if(!j||typeof j!="object")return Promise.resolve(null);for(var se=[j],ie=[],de=[],we=function(){for(var Se=[],ke=0;ke<arguments.length;ke++)Se[ke]=arguments[ke];for(var Me=0,Re=Se;Me<Re.length;Me++){var We=Re[Me];typeof We=="object"&&se.push(We)}},xe=function(){for(var Se=[],ke=0;ke<arguments.length;ke++)Se[ke]=arguments[ke];for(var Me=0,Re=Se;Me<Re.length;Me++){var We=Re[Me];if(typeof We=="object")for(var It in We){var vt=We[It];typeof vt=="object"&&se.push(vt)}}},Ee=function(){for(var Se=[],ke=0;ke<arguments.length;ke++)Se[ke]=arguments[ke];for(var Me=0,Re=Se;Me<Re.length;Me++){var We=Re[Me];if(Array.isArray(We))for(var It=0,vt=We;It<vt.length;It++){var rr=vt[It];typeof rr=="object"&&se.push(rr)}}},ye=function(Se){for(var ke=[];Se.$ref;){var Me=Se.$ref,Re=Me.split("#",2);if(delete Se.$ref,Re[0].length>0){de.push(I(Se,Re[0],Re[1],ee,te));return}else ke.indexOf(Me)===-1&&(x(Se,W,ee,Re[1]),ke.push(Me))}we(Se.items,Se.additionalProperties,Se.not,Se.contains,Se.propertyNames,Se.if,Se.then,Se.else),xe(Se.definitions,Se.properties,Se.patternProperties,Se.dependencies),Ee(Se.anyOf,Se.allOf,Se.oneOf,Se.items)};se.length;){var be=se.pop();ie.indexOf(be)>=0||(ie.push(be),ye(be))}return o.promise.all(de)};return N(d,d,n,a).then(function(j){return new Xv(d,f)})},e.prototype.getSchemaForResource=function(r,n){if(n&&n.root&&n.root.type==="object"){var a=n.root.properties.filter(function(W){return W.keyNode.value==="$schema"&&W.valueNode&&W.valueNode.type==="string"});if(a.length>0){var o=Ua(a[0].valueNode);if(o&&nb(o,".")&&this.contextService&&(o=this.contextService.resolveRelativePath(o,r)),o){var f=this.normalizeId(o);return this.getOrAddSchemaHandle(f).getResolvedSchema()}}}for(var d=Object.create(null),m=[],g=0,b=this.filePatternAssociations;g<b.length;g++){var x=b[g];if(x.matchesPattern(r))for(var I=0,N=x.getSchemas();I<N.length;I++){var j=N[I];d[j]||(m.push(j),d[j]=!0)}}return m.length>0?this.createCombinedSchema(r,m).getResolvedSchema():this.promise.resolve(null)},e.prototype.createCombinedSchema=function(r,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),o={allOf:n.map(function(f){return{$ref:f}})};return this.addSchemaHandle(a,o)},e}();function hc(e){try{}catch(r){}return e}var Eb=function(){function e(r,n){this.jsonSchemaService=r,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Dt.Error)},e.prototype.doValidation=function(r,n,a,o){var f=this;if(!this.validationEnabled)return this.promise.resolve([]);var d=[],m={},g=function(I){var N=I.range.start.line+" "+I.range.start.character+" "+I.message;m[N]||(m[N]=!0,d.push(I))},b=function(I){var N=a?_v(a.trailingCommas):Dt.Error,j=a?_v(a.comments):f.commentSeverity;if(I){if(I.errors.length&&n.root){var W=n.root,ee=W.type==="object"?W.properties[0]:null;if(ee&&ee.keyNode.value==="$schema"){var te=ee.valueNode||ee,se=_t.create(r.positionAt(te.offset),r.positionAt(te.offset+te.length));g(pa.create(se,I.errors[0],Dt.Warning,Qt.SchemaResolveError))}else{var se=_t.create(r.positionAt(W.offset),r.positionAt(W.offset+1));g(pa.create(se,I.errors[0],Dt.Warning,Qt.SchemaResolveError))}}else{var ie=n.validate(r,I.schema);ie&&ie.forEach(g)}Qv(I.schema)&&(j=void 0),Zv(I.schema)&&(N=void 0)}for(var de=0,we=n.syntaxErrors;de<we.length;de++){var xe=we[de];if(xe.code===Qt.TrailingComma){if(typeof N!="number")continue;xe.severity=N}g(xe)}if(typeof j=="number"){var Ee="Comments are not permitted in JSON.";n.comments.forEach(function(ye){g(pa.create(ye,Ee,j,Qt.CommentNotPermitted))})}return d};if(o){var x=o.id||"schemaservice://untitled/"+Ob++;return this.jsonSchemaService.resolveSchemaContent(new Os(o),x,{}).then(function(I){return b(I)})}return this.jsonSchemaService.getSchemaForResource(r.uri,n).then(function(I){return b(I)})},e}(),Ob=0;function Qv(e){if(e&&typeof e=="object"){if(Vi(e.allowComments))return e.allowComments;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],o=Qv(a);if(Vi(o))return o}}}function Zv(e){if(e&&typeof e=="object"){if(Vi(e.allowTrailingCommas))return e.allowTrailingCommas;if(Vi(e.allowsTrailingCommas))return e.allowsTrailingCommas;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],o=Zv(a);if(Vi(o))return o}}}function _v(e){switch(e){case"error":return Dt.Error;case"warning":return Dt.Warning;case"ignore":return}}var qv=48,Tb=57,Pb=65,vc=97,Ib=102;function jr(e){return e<qv?0:e<=Tb?e-qv:(e<vc&&(e+=vc-Pb),e>=vc&&e<=Ib?e-vc+10:0)}function kb(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:jr(e.charCodeAt(1))*17/255,green:jr(e.charCodeAt(2))*17/255,blue:jr(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:jr(e.charCodeAt(1))*17/255,green:jr(e.charCodeAt(2))*17/255,blue:jr(e.charCodeAt(3))*17/255,alpha:jr(e.charCodeAt(4))*17/255};case 7:return{red:(jr(e.charCodeAt(1))*16+jr(e.charCodeAt(2)))/255,green:(jr(e.charCodeAt(3))*16+jr(e.charCodeAt(4)))/255,blue:(jr(e.charCodeAt(5))*16+jr(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(jr(e.charCodeAt(1))*16+jr(e.charCodeAt(2)))/255,green:(jr(e.charCodeAt(3))*16+jr(e.charCodeAt(4)))/255,blue:(jr(e.charCodeAt(5))*16+jr(e.charCodeAt(6)))/255,alpha:(jr(e.charCodeAt(7))*16+jr(e.charCodeAt(8)))/255}}return null}function P1(e,r,n,a){return a===void 0&&(a=1),{red:e/255,green:r/255,blue:n/255,alpha:a}}var Fb=function(){function e(r){this.schemaService=r}return e.prototype.findDocumentSymbols=function(r,n,a){var o=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var f=n.root;if(!f)return null;var d=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||Yd(m.toLowerCase(),"/user/keybindings.json"))&&f.type==="array"){for(var g=[],b=0,x=f.items;b<x.length;b++){var I=x[b];if(I.type==="object")for(var N=0,j=I.properties;N<j.length;N++){var W=j[N];if(W.keyNode.value==="key"&&W.valueNode){var ee=ws.create(r.uri,Wa(r,I));if(g.push({name:Ua(W.valueNode),kind:Ui.Function,location:ee}),d--,d<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),g}}}return g}var te=function(ie,de,we){return d>=0&&(de.type==="array"?de.items.forEach(function(xe){return te(ie,xe,we)}):de.type==="object"&&de.properties.forEach(function(xe){if(d>=0){var Ee=xe.valueNode;if(Ee){d--;var ye=ws.create(r.uri,Wa(r,xe)),be=we?we+"."+xe.keyNode.value:xe.keyNode.value;ie.push({name:o.getKeyLabel(xe),kind:o.getSymbolKind(Ee.type),location:ye,containerName:we}),te(ie,Ee,be)}}})),ie},se=te([],f,void 0);return d<0&&(se.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),se},e.prototype.findDocumentSymbols2=function(r,n,a){var o=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var f=n.root;if(!f)return null;var d=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||Yd(m.toLowerCase(),"/user/keybindings.json"))&&f.type==="array"){for(var g=[],b=0,x=f.items;b<x.length;b++){var I=x[b];if(I.type==="object")for(var N=0,j=I.properties;N<j.length;N++){var W=j[N];if(W.keyNode.value==="key"&&W.valueNode){var ee=Wa(r,I),te=Wa(r,W.keyNode);if(g.push({name:Ua(W.valueNode),kind:Ui.Function,range:ee,selectionRange:te}),d--,d<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),g}}}return g}var se=function(de,we){return d>=0&&(we.type==="array"?we.items.forEach(function(xe,Ee){if(xe&&d>=0){d--;var ye=Wa(r,xe),be=ye,Se=String(Ee),ke=se([],xe);de.push({name:Se,kind:o.getSymbolKind(xe.type),range:ye,selectionRange:be,children:ke})}}):we.type==="object"&&we.properties.forEach(function(xe){var Ee=xe.valueNode;if(Ee&&d>=0){d--;var ye=Wa(r,xe),be=Wa(r,xe.keyNode),Se=se([],Ee);de.push({name:o.getKeyLabel(xe),kind:o.getSymbolKind(Ee.type),range:ye,selectionRange:be,children:Se})}})),de},ie=se([],f);return d<0&&(ie.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),ie},e.prototype.getSymbolKind=function(r){switch(r){case"object":return Ui.Module;case"string":return Ui.String;case"number":return Ui.Number;case"array":return Ui.Array;case"boolean":return Ui.Boolean;default:return Ui.Variable}},e.prototype.getKeyLabel=function(r){var n=r.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},e.prototype.findDocumentColors=function(r,n,a){return this.schemaService.getSchemaForResource(r.uri,n).then(function(o){var f=[];if(o)for(var d=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,m=n.getMatchingSchemas(o.schema),g={},b=0,x=m;b<x.length;b++){var I=x[b];if(!I.inverted&&I.schema&&(I.schema.format==="color"||I.schema.format==="color-hex")&&I.node&&I.node.type==="string"){var N=String(I.node.offset);if(!g[N]){var j=kb(Ua(I.node));if(j){var W=Wa(r,I.node);f.push({color:j,range:W})}if(g[N]=!0,d--,d<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),f}}}return f})},e.prototype.getColorPresentations=function(r,n,a,o){var f=[],d=Math.round(a.red*255),m=Math.round(a.green*255),g=Math.round(a.blue*255);function b(I){var N=I.toString(16);return N.length!==2?"0"+N:N}var x;return a.alpha===1?x="#"+b(d)+b(m)+b(g):x="#"+b(d)+b(m)+b(g)+b(Math.round(a.alpha*255)),f.push({label:x,textEdit:ai.replace(o,JSON.stringify(x))}),f},e}();function Wa(e,r){return _t.create(e.positionAt(r.offset),e.positionAt(r.offset+r.length))}var Rb={schemaAssociations:{},schemas:{}};function Lb(e,r){var n=[],a=[],o=[],f=-1,d=Ss(e.getText(),!1),m=d.scan();function g(ke){n.push(ke),a.push(o.length)}for(;m!==17;){switch(m){case 1:case 3:{var b=e.positionAt(d.getTokenOffset()).line,x={startLine:b,endLine:b,kind:m===1?"object":"array"};o.push(x);break}case 2:case 4:{var I=m===2?"object":"array";if(o.length>0&&o[o.length-1].kind===I){var x=o.pop(),N=e.positionAt(d.getTokenOffset()).line;x&&N>x.startLine+1&&f!==x.startLine&&(x.endLine=N-1,g(x),f=x.startLine)}break}case 13:{var b=e.positionAt(d.getTokenOffset()).line,j=e.positionAt(d.getTokenOffset()+d.getTokenLength()).line;d.getTokenError()===1&&b+1<e.lineCount?d.setPosition(e.offsetAt(ii.create(b+1,0))):b<j&&(g({startLine:b,endLine:j,kind:Jl.Comment}),f=b);break}case 12:{var W=e.getText().substr(d.getTokenOffset(),d.getTokenLength()),ee=W.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ee){var N=e.positionAt(d.getTokenOffset()).line;if(ee[1]){var x={startLine:N,endLine:N,kind:Jl.Region};o.push(x)}else{for(var te=o.length-1;te>=0&&o[te].kind!==Jl.Region;)te--;if(te>=0){var x=o[te];o.length=te,N>x.startLine&&f!==x.startLine&&(x.endLine=N,g(x),f=x.startLine)}}}break}}m=d.scan()}var se=r&&r.rangeLimit;if(typeof se!="number"||n.length<=se)return n;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(e.uri);for(var ie=[],de=0,we=a;de<we.length;de++){var xe=we[de];xe<30&&(ie[xe]=(ie[xe]||0)+1)}for(var Ee=0,ye=0,te=0;te<ie.length;te++){var be=ie[te];if(be){if(be+Ee>se){ye=te;break}Ee+=be}}for(var Se=[],te=0;te<n.length;te++){var xe=a[te];typeof xe=="number"&&(xe<ye||xe===ye&&Ee++<se)&&Se.push(n[te])}return Se}function Mb(e,r,n){function a(m){for(var g=e.offsetAt(m),b=n.getNodeFromOffset(g,!0),x=[];b;){switch(b.type){case"string":case"object":case"array":var I=b.offset+1,N=b.offset+b.length-1;I<N&&g>=I&&g<=N&&x.push(o(I,N)),x.push(o(b.offset,b.offset+b.length));break;case"number":case"boolean":case"null":case"property":x.push(o(b.offset,b.offset+b.length));break}if(b.type==="property"||b.parent&&b.parent.type==="array"){var j=d(b.offset+b.length,5);j!==-1&&x.push(o(b.offset,j))}b=b.parent}for(var W=void 0,ee=x.length-1;ee>=0;ee--)W=cc.create(x[ee],W);return W||(W=cc.create(_t.create(m,m))),W}function o(m,g){return _t.create(e.positionAt(m),e.positionAt(g))}var f=Ss(e.getText(),!0);function d(m,g){f.setPosition(m);var b=f.scan();return b===g?f.getTokenOffset()+f.getTokenLength():-1}return r.map(a)}function Nb(e){var r=e.promiseConstructor||Promise,n=new Cb(e.schemaRequestService,e.workspaceContext,r);n.setSchemaContributions(Rb);var a=new sb(n,e.contributions,r,e.clientCapabilities),o=new lb(n,e.contributions,r),f=new Fb(n),d=new Eb(n,r);return{configure:function(m){n.clearExternalSchemas(),m.schemas&&m.schemas.forEach(function(g){n.registerExternalSchema(g.uri,g.fileMatch,g.schema)}),d.configure(m)},resetSchema:function(m){return n.onResourceChange(m)},doValidation:d.doValidation.bind(d),parseJSONDocument:function(m){return rb(m,{collectComments:!0})},newJSONDocument:function(m,g){return tb(m,g)},doComplete:a.doComplete.bind(a),findDocumentSymbols:f.findDocumentSymbols.bind(f),findDocumentSymbols2:f.findDocumentSymbols2.bind(f),findColorSymbols:function(m,g){return f.findDocumentColors(m,g).then(function(b){return b.map(function(x){return x.range})})},findDocumentColors:f.findDocumentColors.bind(f),getColorPresentations:f.getColorPresentations.bind(f),doHover:o.doHover.bind(o),getFoldingRanges:Lb,getSelectionRanges:Mb,format:function(m,g,b){var x=void 0;if(g){var I=m.offsetAt(g.start),N=m.offsetAt(g.end)-I;x={offset:I,length:N}}var j={tabSize:b?b.tabSize:4,insertSpaces:b?b.insertSpaces:!0,eol:`
358
- `};return G0(m.getText(),x,j).map(function(W){return ai.replace(_t.create(m.positionAt(W.offset),m.positionAt(W.offset+W.length)),W.content)})}}}var I1=s(49055),k1=s(32407),F1=s(29387),R1=s(22130),L1=s(61682),M1=s(19757),N1=s(46830),D1=s(59176),B1=s(6364),j1=s(53513),eg=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});const Ts=Nb({});bs.registerHelper("lint","json",function(e,r){return eg(this,null,function*(){const{schema:n,setError:a}=r;Ts.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const o=dc.create(r.id+".json","json",0,e),f=Ts.parseJSONDocument(o),d=yield Ts.doValidation(o,f);return d.length?a&&a(d[0].message):a&&a(void 0),d.map(m=>({from:bs.Pos(m.range.start.line,m.range.start.character),to:bs.Pos(m.range.end.line,m.range.end.character),message:m.message}))})}),bs.registerHelper("hint","json",(e,r)=>eg(void 0,null,function*(){const n=r.schema;if(!n)return;Ts.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const a=e.getDoc().getCursor(),o=e.getTokenAt(a),f=dc.create(r.id+".json","json",0,e.getValue()),d=Ts.parseJSONDocument(f),m=yield Ts.doComplete(f,{line:a.line,character:a.ch},d),g=x=>{let I="";for(;x--;)I+=" ";return I};let b=m?m.items.map(x=>({text:x.insertText,displayText:x.label,filter:x.filterText||x.label,from:{line:x.textEdit.range.start.line,ch:x.textEdit.range.start.character},to:{line:x.textEdit.range.end.line,ch:x.textEdit.range.end.character},hint:(I,N,j)=>{const W="_$__REDOC_CURSOR_HERE";let ee=j.text.replace(/(\$1|\${1:[^}]+})/,W)||"";if(ee=ee.replace(/(\$\d+|\${[^}]+})/g,"")||"",I.setSelection(j.from,j.to),ee.indexOf(`
359
- `)>-1){const se=I.getLine(I.getCursor().line).search(/(\S|$)/);ee=ee.replace(/\n/g,`
360
- `+g(se))}I.replaceSelection(ee);const te=I.getSearchCursor(W,j.from);te.findNext()&&(I.setCursor(te.from()),te.replace(""))}})):[];return/(property|string)/.test(o.type||"")&&(b=b.filter(x=>x.filter.replace(/(^"|"$)/g,"").startsWith(o.string.replace(/(^"|"$)/g,"")))),{from:bs.Pos(a.line,o.start),to:bs.Pos(a.line,a.ch),list:b}}));var Db=Object.defineProperty,Bb=(e,r,n)=>r in e?Db(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,tu=(e,r,n)=>(Bb(e,typeof r!="symbol"?r+"":r,n),n);const jb=Ut.vJ`
361
- .cm-s-material.CodeMirror {
362
- background-color: var(--panel-samples-controls-background-color)!important;
363
- color: var(--text-color-inverse)!important;
364
- font-family: var(--code-font-family);
365
- line-height: 18px;
366
- padding: 10px;
367
- }
368
-
369
- .CodeMirror-lint-mark-error {
370
- background-size: 4px;
371
- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAVUlEQVR42mNgQAL/GRjigPg/EP8FYntkCX4gtoVKgvE/BoabcEVAhj6S5DUgfgFl/wFJ2gPxL6iuT1DF+kD2R5AYA5KRj6CS/FAMYvszIBltz4AFAAD9fz0YtLg13wAAAABJRU5ErkJggg==') !important;
372
- }
373
-
374
- .cm-s-material.CodeMirror-focused div.CodeMirror-selected {
375
- background: rgba(255, 255, 255, 0.3) !important;
376
- }
377
-
378
- .cm-s-material .CodeMirror-code .cm-string.cm-property {
379
- color: var(--code-block-tokens-property-string-color);
380
- }
381
-
382
- .cm-s-material .CodeMirror-code .cm-string {
383
- color: var(--code-block-tokens-string-color);
384
- }
385
-
386
- .cm-s-material .CodeMirror-code .cm-atom {
387
- color: var(--text-color-inverse);
388
- }
389
-
390
- div .cm-s-material .CodeMirror-matchingbracket {
391
- outline: 1px solid grey;
392
- text-decoration: none;
393
- }
394
-
395
- .react-codemirror2 {
396
- display: flex;
397
- flex-direction: column;
398
- justify-content: flex-start;
399
- overflow: hidden;
400
-
401
- flex: 1;
402
- }
403
-
404
- .CodeMirror {
405
- flex: 1;
406
- border-radius: var(--panel-border-radius);
407
- }
408
- `;class Vb extends h.PureComponent{constructor(){super(...arguments),tu(this,"editor"),tu(this,"_onKeyUp",(r,n)=>{/^[a-zA-Z0-9_":]$/.test(n.key)&&this.editor.execCommand("autocomplete")}),tu(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),tu(this,"refreshEditor",()=>{this.editor.refresh()}),tu(this,"showHintHandler",()=>this.editor.showHint({completeSingle:!0}))}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:a,setError:o}=this.props.fieldApi,{onChange:f,onBlur:d,forwardedRef:m}=this.props;return h.createElement(h.Fragment,null,h.createElement(jb,null),h.createElement(I0.fk,{editorDidMount:this.initEditor,value:r||"",ref:m,onBeforeChange:(g,b,x)=>{n(x),f&&f(x)},onBlur:g=>{a(!1),d&&d(g)},options:{mode:this.props.mode||tc.T.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":this.showHintHandler,"Ctrl-Space":this.showHintHandler},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:o}}}))}}const Ub=Vr(Vb);var Wb=Object.defineProperty,Hb=Object.defineProperties,zb=Object.getOwnPropertyDescriptors,tg=Object.getOwnPropertySymbols,Gb=Object.prototype.hasOwnProperty,$b=Object.prototype.propertyIsEnumerable,rg=(e,r,n)=>r in e?Wb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Kb=(e,r)=>{for(var n in r||(r={}))Gb.call(r,n)&&rg(e,n,r[n]);if(tg)for(var n of tg(r))$b.call(r,n)&&rg(e,n,r[n]);return e},Yb=(e,r)=>Hb(e,zb(r));const Jb=(0,$i.Pi)(({body:e,formApi:r,resolvedBody:n,properties:a,id:o,validate:f})=>{var d,m;const g=e.content,b=ee=>{var te;if(!g||!g.hasSample)return"";const se=(te=g.active)==null?void 0:te.examples;if(!(se!=null&&se[ee]))return"";const ie=se==null?void 0:se[ee].value,de=a?Tr()(ie,a,{arrayMerge:ja.lN}):ie;return JSON.stringify(de,null,2)},x=(d=g==null?void 0:g.operation)==null?void 0:d.activeExampleName,I=ee=>{g==null||g.activateExampleName(ee),r.setValue("body",b(ee))},N=(ee,te)=>{r.setValue(`body.${ee}`,te)};(0,h.useEffect)(()=>{var ee,te;if((ee=g==null?void 0:g.operation)!=null&&ee.activeMimeName){const se=(0,Xt.P6)(o,g.operation.activeMimeName,x,(te=g==null?void 0:g.active)==null?void 0:te.examples);r.setValue("body",(0,Bt.YQ)(se)||b(x||""))}else r.setValue("body",JSON.stringify(a||{},null,2))},[x,(m=g==null?void 0:g.operation)==null?void 0:m.activeMimeName,g==null?void 0:g.active]);const j=ee=>h.createElement(Xn.DropdownOrLabel,Yb(Kb({},ee),{variant:"dark",fullWidth:!0,Label:P0,Dropdown:ph.Dropdown})),W=(0,h.useCallback)((ee="",te="",se=[])=>ie=>{(0,Bt.WW)((0,Xt.P6)(o,ee,te,se),ie)},[o]);return h.createElement(h.Fragment,null,h.createElement(Xn.MediaTypesSwitch,{content:e.content,renderDropdown:j},ee=>{const te=ee.examples||{},se=Object.keys(te),ie=ee.schema,de=fh(ie||{},ee.name)||ee.name===tc.T.MULTIPART||ee.name===tc.T.URL_ENCODED,{exampleKey:we}=(0,Rd.C6)(ee.operation,te),xe=(0,Bt.YQ)((0,Xt.P6)(o,ee.name,we,te))||(0,Xt.oY)(te[we],a);return h.createElement(h.Fragment,null,se.length&&se.length!==1&&h.createElement(Rd.b_,{examples:te,onChange:I,exampleKey:we,panel:"try-it"})||null,de?h.createElement(O0,{mediaType:ee,formApi:r,onChange:N}):h.createElement(Ub,{id:"body"+o,field:"body",initialValue:xe,schema:((n==null?void 0:n.content[ee.name])||{}).schema,mode:ee.name,validate:f,onChange:W(ee.name,we,te)}))}))}),Xb=(0,h.memo)(Jb);function Qb({response:e}){return h.createElement(h.Fragment,null,h.createElement(Bn.EE,null," Body: "),Zb(e))}function Zb(e){return e.body?h.createElement(vn.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?h.createElement(Xn.SourceCodeWithFile,{fileInfo:e.fileInfo}):e.data!==null?e.data?h.createElement(vn.SourceCode,{lang:(0,Xn.langFromMime)(e.headers["Content-Type"]||"text/plain"),source:e.data,withCopyButton:!0}):h.createElement(Bn.w3,null,h.createElement("i",null,"(no content)")):null}function _b({headers:e}){const r=(0,h.useContext)(Xn.OptionsContext),[n,a]=(0,h.useState)(!0),{maxResponseHeadersToShowInTryIt:o}=r,f=Object.keys(e),d=!!o&&f.length>o,m=d&&n?[...f].splice(0,o):[...f],g=()=>{a(!n)};return h.createElement(h.Fragment,null,h.createElement(Bn.EE,null," Headers: "),h.createElement(Bn.w3,null,m.map(b=>h.createElement("div",{key:b},h.createElement(ng,null,b,":"),h.createElement("code",null,e[b]))),d&&h.createElement(ig,{onClick:g},n?"Show more...":"Hide headers")))}const ng=Ut.ZP.strong`
409
- text-transform: capitalize;
410
- display: inline-block;
411
- padding-right: 5px;
412
- `,ig=Ut.ZP.div`
413
- cursor: pointer;
414
- margin-top: 5px;
415
- font-size: 14px;
416
- `;ng.displayName="HeaderName",ig.displayName="StyledShowMoreLabel";const qb=Ut.ZP.div`
417
- margin-bottom: 10px;
418
- `,Zd=Ut.ZP.div`
419
- display: inline-block;
420
- margin-right: 20px;
421
- padding: 2px 0;
422
- text-align: center;
423
- color: var(--text-color-inverse);
424
- `,ex=(0,Ut.ZP)(Zd)`
425
- color: ${({code:e})=>e>=200&&e<300?"var(--response-success-text-color)":e>=300&&e<400?"var(--response-redirect-text-color)":e>400?"var(--response-error-text-color)":"var(--response-info-text-color)"};
426
- `,ag=Ut.ZP.header`
427
- font-weight: bold;
428
- margin-bottom: 10px;
429
- `,tx=Ut.ZP.code`
430
- border-left: 3px solid #ff4040;
431
- padding-left: 5px;
432
- `;class rx extends h.PureComponent{render(){const{error:r,response:n,time:a}=this.props,o=n||r&&r.response,f=o&&o.data&&o.data.length||0;let d;return f>1e6?d=(f/1e6).toFixed(2)+" MB":f>1e3?d=(f/1e3).toFixed(2)+" KB":d=f+" B",r&&!r.response||!o?h.createElement(h.Fragment,null,h.createElement(ag,null," Could not get any response "),h.createElement(tx,null,r&&r.message||"Unknown error"),h.createElement("br",null),h.createElement(ag,null," Why this might have happened:"),h.createElement("div",null," - CORS is misconfigured on the server"),h.createElement("div",null," - The server couldn't send a response"),h.createElement("div",null," - No internet access"),h.createElement("div",null," - Documentation issue - contact API owner"),h.createElement("div",null," - Misconfigured security definition")):o?h.createElement(h.Fragment,null,h.createElement(qb,null,h.createElement(ex,{code:o.status},h.createElement("span",null," Status: "),o.status," ",o.statusText),h.createElement(Zd,null,h.createElement("span",null," Time: "),a,"ms"),h.createElement(Zd,null,h.createElement("span",null," Size: "),d)),h.createElement("div",null,h.createElement(_b,{headers:o.headers}),h.createElement(Qb,{response:o}))):h.createElement(h.Fragment,null,"Something went wrong")}}var og=s(46521);function nx(e,r,n){const a=r.path||{},o=r.query||{},f=Object.keys(o);let d=(0,Xt.v5)(e,a);const m=g=>n.find(b=>b.name===g&&b.in==="query");return f.length&&(d+="?"+f.map(g=>{if(!o[g])return"";const b=m(g);return b?(0,Xn.serializeParameterValue)(b,o[g]):`${g}=${encodeURIComponent(o[g])}`}).filter(Boolean).join("&")),d}const ix=({loading:e,operation:r,hasResponse:n,execute:a,params:o={}})=>h.createElement(Yf.k1,null,h.createElement(og.__,null,h.createElement(Wh.FH,{type:r.httpVerb},r.httpVerb),h.createElement(og.y$,{wrap:"true"},nx(r.path,o,r.parameters))),h.createElement(ax,{"data-cy":"send-button",color:"primary",blinking:e,onClick:()=>!e&&a()},e?"Sending...":n?"Resend":"Send")),ax=(0,Ut.ZP)(vn.Button)`
433
- width: var(--panel-try-it-action-button-width);
434
- `,ox=(0,h.memo)(ix);function sx({name:e,value:r,description:n,variableEnum:a,onChange:o,defaultValue:f}){const d=(0,h.useCallback)(b=>o(b.target.value),[o]),m=(0,h.useCallback)(b=>o(b.value),[o]),g=a?a.map((b,x)=>({value:b,idx:x})):[];return h.createElement(ft.NI,null,h.createElement(ft.lX,null,e,":"),g&&g.length?h.createElement(Bn.VD,{fullWidth:!0,variant:"dark",value:r,options:g,onChange:m}):h.createElement(Ul,{fullWidth:!0,value:r,onChange:d,placeholder:f,panel:"try-it"}),n&&h.createElement(lx,{compact:!0,source:n}))}const lx=(0,Ut.ZP)(Xn.Markdown)`
435
- margin-top: 5px;
436
- color: #d0d0d0;
437
- `;var ux=Object.defineProperty,fx=Object.defineProperties,cx=Object.getOwnPropertyDescriptors,sg=Object.getOwnPropertySymbols,dx=Object.prototype.hasOwnProperty,px=Object.prototype.propertyIsEnumerable,lg=(e,r,n)=>r in e?ux(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ug=(e,r)=>{for(var n in r||(r={}))dx.call(r,n)&&lg(e,n,r[n]);if(sg)for(var n of sg(r))px.call(r,n)&&lg(e,n,r[n]);return e},fg=(e,r)=>fx(e,cx(r));const hx=(0,$i.Pi)(({operation:e,onChange:r})=>{const n=(0,Bt.YQ)("serverUrl"),a=e.servers.findIndex(N=>N.url===n),[o,f]=(0,h.useState)(a<0?0:a),[d,m]=(0,h.useState)({});(0,Qf.b6)(()=>{const N=(0,Xt.fz)(e.servers,o);r(N),m(N.variables)});const g=N=>{const j=e.servers.find(te=>te.url===N.serverUrl),W=e.servers.findIndex(te=>te.url===N.serverUrl),ee=(0,Xt.mj)(j);r({url:N.serverUrl||"",variables:ee}),(0,Bt.WW)("serverUrl",N.serverUrl||""),f(W),m(ee)},b=(N,j)=>{const W=e.servers[o],ee=j||j===""?j:(0,Xt.mj)(W)[N],te=fg(ug({},d),{[N]:ee});m(te),(0,Xt.UY)(N,ee),r(fg(ug({},W),{variables:te}))},x=e.servers.map((N,j)=>({idx:j,serverUrl:N.url,value:`
438
- ${(0,Xt.nq)((0,Xt.v5)(N.url,d),N.variables)}
439
- - ${N.description||"Default"}
440
- `})),I=Object.keys(d);return h.createElement(vx,{"data-cy":"console-target-server"},h.createElement(ft.lX,{htmlFor:"server"},"Target server: "),h.createElement(ft.NI,null,h.createElement(Bn.VD,{variant:"dark",value:x[o].value,options:x,fullWidth:!0,onChange:g})),I==null?void 0:I.map(N=>{var j;const W=(j=e.servers[o].variables)==null?void 0:j[N];if(W)return h.createElement(sx,{key:N,name:N,value:d[N],defaultValue:W.default,onChange:ee=>b(N,ee),variableEnum:W.enum,description:W.description})}))}),vx=Ut.ZP.div`
441
- margin-bottom: 20px;
442
- `;var gx=Object.defineProperty,mx=Object.defineProperties,yx=Object.getOwnPropertyDescriptors,gc=Object.getOwnPropertySymbols,cg=Object.prototype.hasOwnProperty,dg=Object.prototype.propertyIsEnumerable,pg=(e,r,n)=>r in e?gx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,bx=(e,r)=>{for(var n in r||(r={}))cg.call(r,n)&&pg(e,n,r[n]);if(gc)for(var n of gc(r))dg.call(r,n)&&pg(e,n,r[n]);return e},xx=(e,r)=>mx(e,yx(r)),Sx=(e,r)=>{var n={};for(var a in e)cg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&gc)for(var a of gc(e))r.indexOf(a)<0&&dg.call(e,a)&&(n[a]=e[a]);return n};function _d(e){var r=e,{header:n,error:a,success:o}=r,f=Sx(r,["header","error","success"]);const d=({toggle:m,expanded:g=!1})=>h.createElement(vn.PanelHeader,{onClick:m,expanded:g,"data-cy":f["data-cy"]},h.createElement(Yf.xz,null,h.createElement(vn.PanelHeaderTitle,null,n),h.createElement(vn.ShelfIcon,{direction:g?"down":"right"})),a&&h.createElement(Xn.CrossIcon,{size:"14px",color:"--color-error-500"})||null,o&&h.createElement(Xn.LockIcon,{size:"14px",color:"--color-success-500"})||null);return h.createElement(wx,xx(bx({className:"panel-try-it-nested"},f),{header:d}))}const wx=(0,Ut.ZP)(vn.Panel)`
443
- ${vn.PanelHeader} {
444
- border: 1px solid
445
- ${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-heading-border-color)"};
446
- padding: 10px;
447
- }
448
-
449
- ${vn.PanelBody} {
450
- border: 1px solid
451
- ${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-body-border-color)"};
452
- border-top: 0;
453
- }
454
- `,Ax=Ut.ZP.div`
455
- display: flex;
456
- font-size: 12px;
457
- button {
458
- margin: 0;
459
- }
460
- `,hg=Ut.ZP.button`
461
- outline: none;
462
- border: none;
463
- background-color: var(--panel-try-it-tabs-background-color);
464
- text-align: center;
465
- cursor: pointer;
466
- color: var(--panel-try-it-tabs-text-color);
467
- min-width: 80px;
468
- min-height: 30px;
469
- border-radius: var(--border-radius);
470
- font-size: var(--panel-try-it-tabs-font-size);
471
- font-family: var(--panel-try-it-tabs-font-family);
472
- font-weight: var(--panel-try-it-tabs-font-weight);
473
- padding: 0 10px;
474
- border-bottom: 4px solid var(--panel-try-it-tabs-border-color);
475
-
476
- &:first-child {
477
- border-radius: var(--border-radius) 0 0 var(--border-radius);
478
- }
479
-
480
- &:last-child {
481
- border-radius: 0 var(--border-radius) var(--border-radius) 0;
482
- }
483
-
484
- &:hover:not(:disabled) {
485
- border-color: var(--panel-try-it-tabs-hover-border-color);
486
- background-color: var(--panel-try-it-tabs-hover-background-color);
487
- }
488
-
489
- ${({active:e})=>e&&Ut.iv`
490
- border-color: var(--panel-try-it-tabs-active-border-color);
491
- background-color: var(--panel-try-it-tabs-active-background-color);
492
- `||""}
493
-
494
- ${({disabled:e})=>e&&Ut.iv`
495
- cursor: default;
496
- border-color: var(--panel-try-it-tabs-disables-border-color)
497
- background-color: var(--panel-try-it-tabs-disabled-background-color);
498
- color: var(--panel-try-it-tabs-disabled-text-color);
499
- `||""}
500
- `;function Cx({onChange:e,active:r,hasResponse:n}){return h.createElement(Ax,null,h.createElement(hg,{onClick:()=>e(0),active:r===0},n?"Edit Request":"Request"),h.createElement(hg,{onClick:()=>n&&e(1),active:r===1,disabled:!n}," ","Response"," "))}var vg=Object.defineProperty,Ex=Object.defineProperties,Ox=Object.getOwnPropertyDescriptor,Tx=Object.getOwnPropertyDescriptors,mc=Object.getOwnPropertySymbols,gg=Object.prototype.hasOwnProperty,mg=Object.prototype.propertyIsEnumerable,qd=(e,r,n)=>r in e?vg(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Gr=(e,r)=>{for(var n in r||(r={}))gg.call(r,n)&&qd(e,n,r[n]);if(mc)for(var n of mc(r))mg.call(r,n)&&qd(e,n,r[n]);return e},Un=(e,r)=>Ex(e,Tx(r)),yg=(e,r)=>{var n={};for(var a in e)gg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&mc)for(var a of mc(e))r.indexOf(a)<0&&mg.call(e,a)&&(n[a]=e[a]);return n},Px=(e,r,n,a)=>{for(var o=a>1?void 0:a?Ox(r,n):r,f=e.length-1,d;f>=0;f--)(d=e[f])&&(o=(a?d(r,n,o):d(o))||o);return a&&o&&vg(r,n,o),o},Ps=(e,r,n)=>(qd(e,typeof r!="symbol"?r+"":r,n),n),bg=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function xg(e){return e.startsWith("//")?"https:"+e:e}const Ix={flex:1,display:"flex",flexDirection:"column"};let ep=class extends h.Component{constructor(e){super(e),Ps(this,"formApi"),Ps(this,"setFormApi",(r,n=r.getState())=>{var a=n,{values:o}=a,f=yg(a,["values"]);this.formApi=r,setTimeout(()=>{const d=Un(Gr({},f),{values:Un(Gr({},o),{query:(0,Xt.FU)(o.query||{})})});this.setState({form:d})},0)}),Ps(this,"handleChange",r=>{var n=r,{values:a}=n,o=yg(n,["values"]);const f=Un(Gr({},o),{values:Un(Gr({},a),{query:(0,Xt.FU)(a.query||{})})});this.setState({form:f}),(0,Xt.Hc)(f),this.props.operation.setRequestValues(a)}),Ps(this,"handleTabChange",r=>{this.setState({activeTab:r})}),Ps(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),Ps(this,"handleExecute",()=>bg(this,null,function*(){var r,n,a,o,f,d,m,g;const{store:b,operation:x,onResponse:I}=this.props,{values:N,invalid:j}=this.state.form;if((r=this.formApi)==null||r.submitForm(),j){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(a=(n=b==null?void 0:b.options.events)==null?void 0:n.tryItSent)==null||a.call(n,{eventType:Sh.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:x.operationId,operationPath:x.path,operationHttpVerb:x.httpVerb,operationSummary:x.description});return}const{servers:W,requestBody:ee}=this.props.operation,te=ee&&ee.content&&ee.content.active&&ee.content.active.name||"";let se=N.body;if(/json/.test(te))try{se=JSON.parse(se)}catch(Re){console.error(Re)}this.setState({loading:!0});const ie=this.state.resolvedRawSpec,de=(x.httpVerb||"").toLowerCase();if(!W)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 we=W.find(Re=>this.state.server.url.endsWith(Re.url.endsWith("/")?Re.url.substring(0,Re.url.length-1):Re.url)),xe=Date.now(),Ee=!!window.document.documentMode;let ye,be=N.auth;if(N.auth){const Re=Object.keys(N.auth)[0],We=(0,Bt.dw)(Re);ye=Un(Gr({},ie),{components:Un(Gr({},ie==null?void 0:ie.components),{securitySchemes:Un(Gr({},ie==null?void 0:ie.components.securitySchemes),{[We]:Un(Gr({},ie==null?void 0:ie.components.securitySchemes[We]),{type:(ie==null?void 0:ie.components.securitySchemes[We].type)==="openIdConnect"?"oauth2":ie==null?void 0:ie.components.securitySchemes[We].type})})})}),be=Un(Gr({},be),{[We]:be[Re]})}else ye=Gr({},ie);ye.servers=W;const Se=b.options.corsProxyUrl;Se&&W.length&&(ye.servers=W.map(Re=>Un(Gr({},Re),{url:Se+xg(Re.url)})),ye.paths=Un(Gr({},ye.paths),{[x.path]:Un(Gr({},ye.paths[x.path]),{[de]:Un(Gr({},ye.paths[x.path][de]),{servers:void 0}),servers:void 0})}));const ke=((f=(o=ee==null?void 0:ee.content)==null?void 0:o.active)==null?void 0:f.name)||null;if(ke&&se&&Xf(ke)){const Re=Object.values(se);se=Re.length>1?Re:Re[0]}const Me={userFetch:Ee&&s(96279).fetch,server:Se?Se+xg(we.url):we.url,serverVariables:this.state.server.variables,spec:ye,pathName:x.path,method:x.httpVerb,parameters:Gr(Gr(Gr(Gr({},N.path),N.query),N.header),N.cookie),securities:{authorized:be},requestBody:se,requestContentType:ke,responseContentType:((d=N.header)==null?void 0:d.Accept)||null,requestInterceptor:(0,Xt.Tz)(b.options,x,be==null?void 0:be.Authorization)};try{const Re=yield Qm.execute(Me),We=Re==null?void 0:Re.data;We instanceof Blob&&(Xf(We.type)&&(Re.fileInfo={rawData:We,fileName:(0,Xt.AM)(Re.headers)}),Re.data=yield We.text()),I==null||I({request:Me,response:Re}),this.setState({response:Re,error:void 0})}catch(Re){Re&&Re.response&&Re.response.data instanceof Blob&&(Re.response.data=yield Re.response.data.text(),I==null||I({request:Me,response:Re.response})),this.setState({response:void 0,error:Re})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-xe}),(g=(m=b==null?void 0:b.options.events)==null?void 0:m.tryItSent)==null||g.call(m,{eventType:Sh.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:x.operationId,operationPath:x.path,operationHttpVerb:x.httpVerb,operationSummary:x.description})}})),this.state={form:{values:{path:(0,Xt.ZS)(e.operation.parameters,"path"),cookie:(0,Xt.ZS)(e.operation.parameters,"cookie"),header:(0,Xt.ZS)(e.operation.parameters,"header"),query:(0,Xt.ZS)(e.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return bg(this,null,function*(){var e;const{store:r,operation:n}=this.props,a=yield r.dereferenceSpecForTryIt(n);this.setState({resolvedRawSpec:a}),(e=this.formApi)==null||e.setValues({})})}componentDidUpdate(e){e.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:e,className:r,rootElement:n}=this.props,{shaking:a,activeTab:o,form:f,response:d,loading:m,error:g}=this.state,b=!!(d||g);return h.createElement(Fx,{shaking:a,className:r,rootElement:n},h.createElement(Yf.Hc,null,h.createElement(Cx,{active:o,hasResponse:b,onChange:this.handleTabChange}),this.props.onClose&&h.createElement(Bn.PZ,{onClick:this.props.onClose}," \u2715 ")),h.createElement(Bn.RE,{hidden:o!==0,"data-cy":"console-request-body"},this.renderRequest()),h.createElement(Bn.RE,{hidden:o!==1,"data-cy":"console-response-body"},this.renderResponse()),h.createElement(ox,{hasResponse:b,params:f.values,operation:e,loading:m,execute:this.handleExecute}))}renderRequest(){var e;const{operation:r,store:n,properties:a,securityDefaults:o}=this.props,{form:f,resolvedRawSpec:d,server:m}=this.state,g=f.errors||{},b=g.path||g.cookie||g.header||g.query,x=d&&Xn.JsonPointer.get(d,r.pointer);let I=f.values&&f.values.auth&&Object.keys(f.values.auth)[0];(!I||!f.values.auth[I])&&(I=void 0),I&&(f.values.auth[I].token!==void 0||f.values.auth[I].client_id!==void 0||f.values.auth[I].client_secret!==void 0)&&(!f.values.auth[I].token||!f.values.auth[I].token.access_token)&&(I=void 0),I&&f.values.auth[I].username!=null&&(!f.values.auth[I].username||!f.values.auth[I].password)&&(I=void 0);const N=r.parameters||[],j=(e=n==null?void 0:n.options.hooks)==null?void 0:e.ReplaceTryItSecurityPanel;return!d&&h.createElement(h.Fragment,null,"Loading...")||h.createElement(fu,{onChange:this.handleChange,getApi:this.setFormApi,style:Un(Gr({},Ix),{margin:0})},h.createElement(hx,{operation:r,onChange:this.handleServerChange}),h.createElement(Yf.UQ,{initialActiveIdx:r.security.length&&I?1:0},r.security.length&&this.formApi&&h.createElement(_d,{header:(0,jl.l)("tryItAuth"),"data-cy":"security-trigger",error:!I&&!!g.auth,success:!!I,renderChildrenHidden:!0},j?h.createElement(Rx,{field:"auth",validate:Xt.np},W=>h.createElement(Zm.Q,{Hook:j,props:{server:m,operation:r,onChange:W,OAuth2:Ai}})):h.createElement(w0,{formApi:this.formApi,form:f,operation:r,activeServer:m.url,authCorsProxyUrl:n.options.authCorsProxyUrl,securityDefaults:o}))||null,r.requestBody&&this.formApi&&h.createElement(_d,{header:(0,jl.l)("tryItBody"),"data-cy":"body-trigger",error:!!g.body,renderChildrenHidden:!0},h.createElement(Xb,{validate:kx,formApi:this.formApi,body:r.requestBody,id:r.id,resolvedBody:x==null?void 0:x.requestBody,properties:a}))||null,N.length&&h.createElement(_d,{header:(0,jl.l)("tryItParameters"),"data-cy":"parameters-trigger",error:b,renderChildrenHidden:!0},h.createElement(Ey,{operation:r,values:f.values,errors:f.errors||{}}))||null))}renderResponse(){const{response:e,error:r,time:n}=this.state;return h.createElement(rx,{response:e,error:r,time:n})}};ep=Px([$i.Pi],ep);function kx(){}function Fx(e){const{shaking:r,className:n,children:a,rootElement:o}=e,[f]=(0,Qf.Bs)(o),d=(0,h.useContext)(Xn.StoreContext);return h.createElement(Bn.q2,{scrollYOffset:d==null?void 0:d.options.scrollYOffset,shaking:r,className:n,"data-cy":"console",fullWidth:f==null?void 0:f.width},a)}function Rx(e){const{fieldApi:r,render:n,userProps:a}=Pn(Gr({},e)),{setValue:o}=r,{children:f}=a;return n(h.createElement(h.Fragment,null,f(o)))}},20340:()=>{},37795:v=>{"use strict";var T="Function.prototype.bind called on incompatible ",s=Array.prototype.slice,p=Object.prototype.toString,S="[object Function]";v.exports=function(h){var E=this;if(typeof E!="function"||p.call(E)!==S)throw new TypeError(T+E);for(var F=s.call(arguments,1),U,_=function(){if(this instanceof U){var $=E.apply(this,F.concat(s.call(arguments)));return Object($)===$?$:this}else return E.apply(h,F.concat(s.call(arguments)))},Q=Math.max(0,E.length-F.length),le=[],K=0;K<Q;K++)le.push("$"+K);if(U=Function("binder","return function ("+le.join(",")+"){ return binder.apply(this,arguments); }")(_),E.prototype){var ne=function(){};ne.prototype=E.prototype,U.prototype=new ne,ne.prototype=null}return U}},4090:(v,T,s)=>{"use strict";var p=s(37795);v.exports=Function.prototype.bind||p},67286:(v,T,s)=>{"use strict";var p,S=SyntaxError,A=Function,h=TypeError,E=function(pe){try{return A('"use strict"; return ('+pe+").constructor;")()}catch(q){}},F=Object.getOwnPropertyDescriptor;if(F)try{F({},"")}catch(pe){F=null}var U=function(){throw new h},_=F?function(){try{return arguments.callee,U}catch(pe){try{return F(arguments,"callee").get}catch(q){return U}}}():U,Q=s(32636)(),le=Object.getPrototypeOf||function(pe){return pe.__proto__},K={},ne=typeof Uint8Array=="undefined"?p:le(Uint8Array),$={"%AggregateError%":typeof AggregateError=="undefined"?p:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?p:ArrayBuffer,"%ArrayIteratorPrototype%":Q?le([][Symbol.iterator]()):p,"%AsyncFromSyncIteratorPrototype%":p,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":typeof Atomics=="undefined"?p:Atomics,"%BigInt%":typeof BigInt=="undefined"?p:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?p:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?p:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?p:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?p:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":K,"%Int8Array%":typeof Int8Array=="undefined"?p:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?p:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?p:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Q?le(le([][Symbol.iterator]())):p,"%JSON%":typeof JSON=="object"?JSON:p,"%Map%":typeof Map=="undefined"?p:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Q?p:le(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?p:Promise,"%Proxy%":typeof Proxy=="undefined"?p:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?p:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?p:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Q?p:le(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?p:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Q?le(""[Symbol.iterator]()):p,"%Symbol%":Q?Symbol:p,"%SyntaxError%":S,"%ThrowTypeError%":_,"%TypedArray%":ne,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array=="undefined"?p:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?p:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?p:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?p:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?p:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?p:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?p:WeakSet},P=function pe(q){var Z;if(q==="%AsyncFunction%")Z=E("async function () {}");else if(q==="%GeneratorFunction%")Z=E("function* () {}");else if(q==="%AsyncGeneratorFunction%")Z=E("async function* () {}");else if(q==="%AsyncGenerator%"){var G=pe("%AsyncGeneratorFunction%");G&&(Z=G.prototype)}else if(q==="%AsyncIteratorPrototype%"){var ve=pe("%AsyncGenerator%");ve&&(Z=le(ve.prototype))}return $[q]=Z,Z},Y={"%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"]},L=s(4090),C=s(23198),k=L.call(Function.call,Array.prototype.concat),B=L.call(Function.apply,Array.prototype.splice),X=L.call(Function.call,String.prototype.replace),H=L.call(Function.call,String.prototype.slice),D=L.call(Function.call,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,z=function(q){var Z=H(q,0,1),G=H(q,-1);if(Z==="%"&&G!=="%")throw new S("invalid intrinsic syntax, expected closing `%`");if(G==="%"&&Z!=="%")throw new S("invalid intrinsic syntax, expected opening `%`");var ve=[];return X(q,re,function(Ie,Ne,je,tt){ve[ve.length]=je?X(tt,J,"$1"):Ne||Ie}),ve},fe=function(q,Z){var G=q,ve;if(C(Y,G)&&(ve=Y[G],G="%"+ve[0]+"%"),C($,G)){var Ie=$[G];if(Ie===K&&(Ie=P(G)),typeof Ie=="undefined"&&!Z)throw new h("intrinsic "+q+" exists, but is not available. Please file an issue!");return{alias:ve,name:G,value:Ie}}throw new S("intrinsic "+q+" does not exist!")};v.exports=function(q,Z){if(typeof q!="string"||q.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Z!="boolean")throw new h('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,q)===null)throw new S("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=z(q),ve=G.length>0?G[0]:"",Ie=fe("%"+ve+"%",Z),Ne=Ie.name,je=Ie.value,tt=!1,_e=Ie.alias;_e&&(ve=_e[0],B(G,k([0,1],_e)));for(var mt=1,De=!0;mt<G.length;mt+=1){var Oe=G[mt],Ue=H(Oe,0,1),Pe=H(Oe,-1);if((Ue==='"'||Ue==="'"||Ue==="`"||Pe==='"'||Pe==="'"||Pe==="`")&&Ue!==Pe)throw new S("property names with quotes must have matching quotes");if((Oe==="constructor"||!De)&&(tt=!0),ve+="."+Oe,Ne="%"+ve+"%",C($,Ne))je=$[Ne];else if(je!=null){if(!(Oe in je)){if(!Z)throw new h("base intrinsic for "+q+" exists, but the property is not available.");return}if(F&&mt+1>=G.length){var Ce=F(je,Oe);De=!!Ce,De&&"get"in Ce&&!("originalValue"in Ce.get)?je=Ce.get:je=je[Oe]}else De=C(je,Oe),je=je[Oe];De&&!tt&&($[Ne]=je)}}return je}},32636:(v,T,s)=>{"use strict";var p=typeof Symbol!="undefined"&&Symbol,S=s(66679);v.exports=function(){return typeof p!="function"||typeof Symbol!="function"||typeof p("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:S()}},66679:v=>{"use strict";v.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},p=Symbol("test"),S=Object(p);if(typeof p=="string"||Object.prototype.toString.call(p)!=="[object Symbol]"||Object.prototype.toString.call(S)!=="[object Symbol]")return!1;var A=42;s[p]=A;for(p in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var h=Object.getOwnPropertySymbols(s);if(h.length!==1||h[0]!==p||!Object.prototype.propertyIsEnumerable.call(s,p))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(s,p);if(E.value!==A||E.enumerable!==!0)return!1}return!0}},23198:(v,T,s)=>{"use strict";var p=s(4090);v.exports=p.call(Function.call,Object.prototype.hasOwnProperty)},89612:(v,T,s)=>{var p=s(52118),S=s(96909),A=s(98138),h=s(4174),E=s(7942);function F(U){var _=-1,Q=U==null?0:U.length;for(this.clear();++_<Q;){var le=U[_];this.set(le[0],le[1])}}F.prototype.clear=p,F.prototype.delete=S,F.prototype.get=A,F.prototype.has=h,F.prototype.set=E,v.exports=F},80235:(v,T,s)=>{var p=s(3945),S=s(21846),A=s(88028),h=s(72344),E=s(94769);function F(U){var _=-1,Q=U==null?0:U.length;for(this.clear();++_<Q;){var le=U[_];this.set(le[0],le[1])}}F.prototype.clear=p,F.prototype.delete=S,F.prototype.get=A,F.prototype.has=h,F.prototype.set=E,v.exports=F},10326:(v,T,s)=>{var p=s(38761),S=s(37772),A=p(S,"Map");v.exports=A},96738:(v,T,s)=>{var p=s(92411),S=s(36417),A=s(86928),h=s(79493),E=s(24150);function F(U){var _=-1,Q=U==null?0:U.length;for(this.clear();++_<Q;){var le=U[_];this.set(le[0],le[1])}}F.prototype.clear=p,F.prototype.delete=S,F.prototype.get=A,F.prototype.has=h,F.prototype.set=E,v.exports=F},50857:(v,T,s)=>{var p=s(37772),S=p.Symbol;v.exports=S},50343:v=>{function T(s,p){for(var S=-1,A=s==null?0:s.length,h=Array(A);++S<A;)h[S]=p(s[S],S,s);return h}v.exports=T},22218:(v,T,s)=>{var p=s(41225);function S(A,h){for(var E=A.length;E--;)if(p(A[E][0],h))return E;return-1}v.exports=S},13324:(v,T,s)=>{var p=s(17297),S=s(33812);function A(h,E){E=p(E,h);for(var F=0,U=E.length;h!=null&&F<U;)h=h[S(E[F++])];return F&&F==U?h:void 0}v.exports=A},53366:(v,T,s)=>{var p=s(50857),S=s(62107),A=s(37157),h="[object Null]",E="[object Undefined]",F=p?p.toStringTag:void 0;function U(_){return _==null?_===void 0?E:h:F&&F in Object(_)?S(_):A(_)}v.exports=U},6840:(v,T,s)=>{var p=s(61049),S=s(47394),A=s(29259),h=s(87035),E=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,U=Function.prototype,_=Object.prototype,Q=U.toString,le=_.hasOwnProperty,K=RegExp("^"+Q.call(le).replace(E,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ne($){if(!A($)||S($))return!1;var P=p($)?K:F;return P.test(h($))}v.exports=ne},1054:(v,T,s)=>{var p=s(50857),S=s(50343),A=s(86152),h=s(4795),E=1/0,F=p?p.prototype:void 0,U=F?F.toString:void 0;function _(Q){if(typeof Q=="string")return Q;if(A(Q))return S(Q,_)+"";if(h(Q))return U?U.call(Q):"";var le=Q+"";return le=="0"&&1/Q==-E?"-0":le}v.exports=_},17297:(v,T,s)=>{var p=s(86152),S=s(21401),A=s(54452),h=s(66188);function E(F,U){return p(F)?F:S(F,U)?[F]:A(h(F))}v.exports=E},24019:(v,T,s)=>{var p=s(37772),S=p["__core-js_shared__"];v.exports=S},51242:(v,T,s)=>{var p=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g;v.exports=p},27937:(v,T,s)=>{var p=s(98304);function S(A,h){var E=A.__data__;return p(h)?E[typeof h=="string"?"string":"hash"]:E.map}v.exports=S},38761:(v,T,s)=>{var p=s(6840),S=s(98109);function A(h,E){var F=S(h,E);return p(F)?F:void 0}v.exports=A},62107:(v,T,s)=>{var p=s(50857),S=Object.prototype,A=S.hasOwnProperty,h=S.toString,E=p?p.toStringTag:void 0;function F(U){var _=A.call(U,E),Q=U[E];try{U[E]=void 0;var le=!0}catch(ne){}var K=h.call(U);return le&&(_?U[E]=Q:delete U[E]),K}v.exports=F},98109:v=>{function T(s,p){return s==null?void 0:s[p]}v.exports=T},52118:(v,T,s)=>{var p=s(99191);function S(){this.__data__=p?p(null):{},this.size=0}v.exports=S},96909:v=>{function T(s){var p=this.has(s)&&delete this.__data__[s];return this.size-=p?1:0,p}v.exports=T},98138:(v,T,s)=>{var p=s(99191),S="__lodash_hash_undefined__",A=Object.prototype,h=A.hasOwnProperty;function E(F){var U=this.__data__;if(p){var _=U[F];return _===S?void 0:_}return h.call(U,F)?U[F]:void 0}v.exports=E},4174:(v,T,s)=>{var p=s(99191),S=Object.prototype,A=S.hasOwnProperty;function h(E){var F=this.__data__;return p?F[E]!==void 0:A.call(F,E)}v.exports=h},7942:(v,T,s)=>{var p=s(99191),S="__lodash_hash_undefined__";function A(h,E){var F=this.__data__;return this.size+=this.has(h)?0:1,F[h]=p&&E===void 0?S:E,this}v.exports=A},21401:(v,T,s)=>{var p=s(86152),S=s(4795),A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;function E(F,U){if(p(F))return!1;var _=typeof F;return _=="number"||_=="symbol"||_=="boolean"||F==null||S(F)?!0:h.test(F)||!A.test(F)||U!=null&&F in Object(U)}v.exports=E},98304:v=>{function T(s){var p=typeof s;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?s!=="__proto__":s===null}v.exports=T},47394:(v,T,s)=>{var p=s(24019),S=function(){var h=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}();function A(h){return!!S&&S in h}v.exports=A},3945:v=>{function T(){this.__data__=[],this.size=0}v.exports=T},21846:(v,T,s)=>{var p=s(22218),S=Array.prototype,A=S.splice;function h(E){var F=this.__data__,U=p(F,E);if(U<0)return!1;var _=F.length-1;return U==_?F.pop():A.call(F,U,1),--this.size,!0}v.exports=h},88028:(v,T,s)=>{var p=s(22218);function S(A){var h=this.__data__,E=p(h,A);return E<0?void 0:h[E][1]}v.exports=S},72344:(v,T,s)=>{var p=s(22218);function S(A){return p(this.__data__,A)>-1}v.exports=S},94769:(v,T,s)=>{var p=s(22218);function S(A,h){var E=this.__data__,F=p(E,A);return F<0?(++this.size,E.push([A,h])):E[F][1]=h,this}v.exports=S},92411:(v,T,s)=>{var p=s(89612),S=s(80235),A=s(10326);function h(){this.size=0,this.__data__={hash:new p,map:new(A||S),string:new p}}v.exports=h},36417:(v,T,s)=>{var p=s(27937);function S(A){var h=p(this,A).delete(A);return this.size-=h?1:0,h}v.exports=S},86928:(v,T,s)=>{var p=s(27937);function S(A){return p(this,A).get(A)}v.exports=S},79493:(v,T,s)=>{var p=s(27937);function S(A){return p(this,A).has(A)}v.exports=S},24150:(v,T,s)=>{var p=s(27937);function S(A,h){var E=p(this,A),F=E.size;return E.set(A,h),this.size+=E.size==F?0:1,this}v.exports=S},77777:(v,T,s)=>{var p=s(30733),S=500;function A(h){var E=p(h,function(U){return F.size===S&&F.clear(),U}),F=E.cache;return E}v.exports=A},99191:(v,T,s)=>{var p=s(38761),S=p(Object,"create");v.exports=S},37157:v=>{var T=Object.prototype,s=T.toString;function p(S){return s.call(S)}v.exports=p},37772:(v,T,s)=>{var p=s(51242),S=typeof self=="object"&&self&&self.Object===Object&&self,A=p||S||Function("return this")();v.exports=A},54452:(v,T,s)=>{var p=s(77777),S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/\\(\\)?/g,h=p(function(E){var F=[];return E.charCodeAt(0)===46&&F.push(""),E.replace(S,function(U,_,Q,le){F.push(Q?le.replace(A,"$1"):_||U)}),F});v.exports=h},33812:(v,T,s)=>{var p=s(4795),S=1/0;function A(h){if(typeof h=="string"||p(h))return h;var E=h+"";return E=="0"&&1/h==-S?"-0":E}v.exports=A},87035:v=>{var T=Function.prototype,s=T.toString;function p(S){if(S!=null){try{return s.call(S)}catch(A){}try{return S+""}catch(A){}}return""}v.exports=p},41225:v=>{function T(s,p){return s===p||s!==s&&p!==p}v.exports=T},72579:(v,T,s)=>{var p=s(13324);function S(A,h,E){var F=A==null?void 0:p(A,h);return F===void 0?E:F}v.exports=S},86152:v=>{var T=Array.isArray;v.exports=T},61049:(v,T,s)=>{var p=s(53366),S=s(29259),A="[object AsyncFunction]",h="[object Function]",E="[object GeneratorFunction]",F="[object Proxy]";function U(_){if(!S(_))return!1;var Q=p(_);return Q==h||Q==E||Q==A||Q==F}v.exports=U},29259:v=>{function T(s){var p=typeof s;return s!=null&&(p=="object"||p=="function")}v.exports=T},15125:v=>{function T(s){return s!=null&&typeof s=="object"}v.exports=T},4795:(v,T,s)=>{var p=s(53366),S=s(15125),A="[object Symbol]";function h(E){return typeof E=="symbol"||S(E)&&p(E)==A}v.exports=h},30733:(v,T,s)=>{var p=s(96738),S="Expected a function";function A(h,E){if(typeof h!="function"||E!=null&&typeof E!="function")throw new TypeError(S);var F=function(){var U=arguments,_=E?E.apply(this,U):U[0],Q=F.cache;if(Q.has(_))return Q.get(_);var le=h.apply(this,U);return F.cache=Q.set(_,le)||Q,le};return F.cache=new(A.Cache||p),F}A.Cache=p,v.exports=A},66188:(v,T,s)=>{var p=s(1054);function S(A){return A==null?"":p(A)}v.exports=S},99500:(v,T,s)=>{var p=typeof Map=="function"&&Map.prototype,S=Object.getOwnPropertyDescriptor&&p?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,A=p&&S&&typeof S.get=="function"?S.get:null,h=p&&Map.prototype.forEach,E=typeof Set=="function"&&Set.prototype,F=Object.getOwnPropertyDescriptor&&E?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,U=E&&F&&typeof F.get=="function"?F.get:null,_=E&&Set.prototype.forEach,Q=typeof WeakMap=="function"&&WeakMap.prototype,le=Q?WeakMap.prototype.has:null,K=typeof WeakSet=="function"&&WeakSet.prototype,ne=K?WeakSet.prototype.has:null,$=typeof WeakRef=="function"&&WeakRef.prototype,P=$?WeakRef.prototype.deref:null,Y=Boolean.prototype.valueOf,L=Object.prototype.toString,C=Function.prototype.toString,k=String.prototype.match,B=String.prototype.slice,X=String.prototype.replace,H=String.prototype.toUpperCase,D=String.prototype.toLowerCase,re=RegExp.prototype.test,J=Array.prototype.concat,z=Array.prototype.join,fe=Array.prototype.slice,pe=Math.floor,q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Z=Object.getOwnPropertySymbols,G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ve=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ie=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ve?"object":"symbol")?Symbol.toStringTag:null,Ne=Object.prototype.propertyIsEnumerable,je=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ue){return ue.__proto__}:null);function tt(ue,ge){if(ue===1/0||ue===-1/0||ue!==ue||ue&&ue>-1e3&&ue<1e3||re.call(/e/,ge))return ge;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ue=="number"){var Ke=ue<0?-pe(-ue):pe(ue);if(Ke!==ue){var at=String(Ke),bt=B.call(ge,at.length+1);return X.call(at,Be,"$&_")+"."+X.call(X.call(bt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return X.call(ge,Be,"$&_")}var _e=s(53260),mt=_e.custom,De=Ct(mt)?mt:null;v.exports=function ue(ge,Be,Ke,at){var bt=Be||{};if(lt(bt,"quoteStyle")&&bt.quoteStyle!=="single"&&bt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lt(bt,"maxStringLength")&&(typeof bt.maxStringLength=="number"?bt.maxStringLength<0&&bt.maxStringLength!==1/0:bt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Rt=lt(bt,"customInspect")?bt.customInspect:!0;if(typeof Rt!="boolean"&&Rt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(lt(bt,"indent")&&bt.indent!==null&&bt.indent!==" "&&!(parseInt(bt.indent,10)===bt.indent&&bt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(lt(bt,"numericSeparator")&&typeof bt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var pr=bt.numericSeparator;if(typeof ge=="undefined")return"undefined";if(ge===null)return"null";if(typeof ge=="boolean")return ge?"true":"false";if(typeof ge=="string")return gt(ge,bt);if(typeof ge=="number"){if(ge===0)return 1/0/ge>0?"0":"-0";var Lt=String(ge);return pr?tt(ge,Lt):Lt}if(typeof ge=="bigint"){var jt=String(ge)+"n";return pr?tt(ge,jt):jt}var _n=typeof bt.depth=="undefined"?5:bt.depth;if(typeof Ke=="undefined"&&(Ke=0),Ke>=_n&&_n>0&&typeof ge=="object")return Pe(ge)?"[Array]":"[Object]";var Yr=Et(bt,Ke);if(typeof at=="undefined")at=[];else if(Kr(at,ge)>=0)return"[Circular]";function Jr(fn,Sr,fi){if(Sr&&(at=fe.call(at),at.push(Sr)),fi){var kn={depth:bt.depth};return lt(bt,"quoteStyle")&&(kn.quoteStyle=bt.quoteStyle),ue(fn,kn,Ke+1,at)}return ue(fn,bt,Ke+1,at)}if(typeof ge=="function"&&!Ge(ge)){var si=Ft(ge),en=Ve(ge,Jr);return"[Function"+(si?": "+si:" (anonymous)")+"]"+(en.length>0?" { "+z.call(en,", ")+" }":"")}if(Ct(ge)){var li=ve?X.call(String(ge),/^(Symbol\(.*\))_[^)]*$/,"$1"):G.call(ge);return typeof ge=="object"&&!ve?At(li):li}if(Xe(ge)){for(var ui="<"+D.call(String(ge.nodeName)),tn=ge.attributes||[],Pn=0;Pn<tn.length;Pn++)ui+=" "+tn[Pn].name+"="+Oe(Ue(tn[Pn].value),"double",bt);return ui+=">",ge.childNodes&&ge.childNodes.length&&(ui+="..."),ui+="</"+D.call(String(ge.nodeName))+">",ui}if(Pe(ge)){if(ge.length===0)return"[]";var Vr=Ve(ge,Jr);return Yr&&!it(Vr)?"["+nt(Vr,Yr)+"]":"[ "+z.call(Vr,", ")+" ]"}if(rt(ge)){var Oi=Ve(ge,Jr);return!("cause"in Error.prototype)&&"cause"in ge&&!Ne.call(ge,"cause")?"{ ["+String(ge)+"] "+z.call(J.call("[cause]: "+Jr(ge.cause),Oi),", ")+" }":Oi.length===0?"["+String(ge)+"]":"{ ["+String(ge)+"] "+z.call(Oi,", ")+" }"}if(typeof ge=="object"&&Rt){if(De&&typeof ge[De]=="function"&&_e)return _e(ge,{depth:_n-Ke});if(Rt!=="symbol"&&typeof ge.inspect=="function")return ge.inspect()}if(br(ge)){var ha=[];return h.call(ge,function(fn,Sr){ha.push(Jr(Sr,ge,!0)+" => "+Jr(fn,ge))}),ct("Map",A.call(ge),ha,Yr)}if(Yt(ge)){var An=[];return _.call(ge,function(fn){An.push(Jr(fn,ge))}),ct("Set",U.call(ge),An,Yr)}if(qr(ge))return Ot("WeakMap");if(dr(ge))return Ot("WeakSet");if(xr(ge))return Ot("WeakRef");if(et(ge))return At(Jr(Number(ge)));if(kt(ge))return At(Jr(q.call(ge)));if(Ze(ge))return At(Y.call(ge));if($e(ge))return At(Jr(String(ge)));if(!Ce(ge)&&!Ge(ge)){var mn=Ve(ge,Jr),Cn=je?je(ge)===Object.prototype:ge instanceof Object||ge.constructor===Object,En=ge instanceof Object?"":"null prototype",In=!Cn&&Ie&&Object(ge)===ge&&Ie in ge?B.call(xt(ge),8,-1):En?"Object":"",Ha=Cn||typeof ge.constructor!="function"?"":ge.constructor.name?ge.constructor.name+" ":"",zn=Ha+(In||En?"["+z.call(J.call([],In||[],En||[]),": ")+"] ":"");return mn.length===0?zn+"{}":Yr?zn+"{"+nt(mn,Yr)+"}":zn+"{ "+z.call(mn,", ")+" }"}return String(ge)};function Oe(ue,ge,Be){var Ke=(Be.quoteStyle||ge)==="double"?'"':"'";return Ke+ue+Ke}function Ue(ue){return X.call(String(ue),/"/g,"&quot;")}function Pe(ue){return xt(ue)==="[object Array]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function Ce(ue){return xt(ue)==="[object Date]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function Ge(ue){return xt(ue)==="[object RegExp]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function rt(ue){return xt(ue)==="[object Error]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function $e(ue){return xt(ue)==="[object String]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function et(ue){return xt(ue)==="[object Number]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function Ze(ue){return xt(ue)==="[object Boolean]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function Ct(ue){if(ve)return ue&&typeof ue=="object"&&ue instanceof Symbol;if(typeof ue=="symbol")return!0;if(!ue||typeof ue!="object"||!G)return!1;try{return G.call(ue),!0}catch(ge){}return!1}function kt(ue){if(!ue||typeof ue!="object"||!q)return!1;try{return q.call(ue),!0}catch(ge){}return!1}var Zt=Object.prototype.hasOwnProperty||function(ue){return ue in this};function lt(ue,ge){return Zt.call(ue,ge)}function xt(ue){return L.call(ue)}function Ft(ue){if(ue.name)return ue.name;var ge=k.call(C.call(ue),/^function\s*([\w$]+)/);return ge?ge[1]:null}function Kr(ue,ge){if(ue.indexOf)return ue.indexOf(ge);for(var Be=0,Ke=ue.length;Be<Ke;Be++)if(ue[Be]===ge)return Be;return-1}function br(ue){if(!A||!ue||typeof ue!="object")return!1;try{A.call(ue);try{U.call(ue)}catch(ge){return!0}return ue instanceof Map}catch(ge){}return!1}function qr(ue){if(!le||!ue||typeof ue!="object")return!1;try{le.call(ue,le);try{ne.call(ue,ne)}catch(ge){return!0}return ue instanceof WeakMap}catch(ge){}return!1}function xr(ue){if(!P||!ue||typeof ue!="object")return!1;try{return P.call(ue),!0}catch(ge){}return!1}function Yt(ue){if(!U||!ue||typeof ue!="object")return!1;try{U.call(ue);try{A.call(ue)}catch(ge){return!0}return ue instanceof Set}catch(ge){}return!1}function dr(ue){if(!ne||!ue||typeof ue!="object")return!1;try{ne.call(ue,ne);try{le.call(ue,le)}catch(ge){return!0}return ue instanceof WeakSet}catch(ge){}return!1}function Xe(ue){return!ue||typeof ue!="object"?!1:typeof HTMLElement!="undefined"&&ue instanceof HTMLElement?!0:typeof ue.nodeName=="string"&&typeof ue.getAttribute=="function"}function gt(ue,ge){if(ue.length>ge.maxStringLength){var Be=ue.length-ge.maxStringLength,Ke="... "+Be+" more character"+(Be>1?"s":"");return gt(B.call(ue,0,ge.maxStringLength),ge)+Ke}var at=X.call(X.call(ue,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Tt);return Oe(at,"single",ge)}function Tt(ue){var ge=ue.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[ge];return Be?"\\"+Be:"\\x"+(ge<16?"0":"")+H.call(ge.toString(16))}function At(ue){return"Object("+ue+")"}function Ot(ue){return ue+" { ? }"}function ct(ue,ge,Be,Ke){var at=Ke?nt(Be,Ke):z.call(Be,", ");return ue+" ("+ge+") {"+at+"}"}function it(ue){for(var ge=0;ge<ue.length;ge++)if(Kr(ue[ge],`
501
- `)>=0)return!1;return!0}function Et(ue,ge){var Be;if(ue.indent===" ")Be=" ";else if(typeof ue.indent=="number"&&ue.indent>0)Be=z.call(Array(ue.indent+1)," ");else return null;return{base:Be,prev:z.call(Array(ge+1),Be)}}function nt(ue,ge){if(ue.length===0)return"";var Be=`
502
- `+ge.prev+ge.base;return Be+z.call(ue,","+Be)+`
503
- `+ge.prev}function Ve(ue,ge){var Be=Pe(ue),Ke=[];if(Be){Ke.length=ue.length;for(var at=0;at<ue.length;at++)Ke[at]=lt(ue,at)?ge(ue[at],ue):""}var bt=typeof Z=="function"?Z(ue):[],Rt;if(ve){Rt={};for(var pr=0;pr<bt.length;pr++)Rt["$"+bt[pr]]=bt[pr]}for(var Lt in ue)!lt(ue,Lt)||Be&&String(Number(Lt))===Lt&&Lt<ue.length||ve&&Rt["$"+Lt]instanceof Symbol||(re.call(/[^\w$]/,Lt)?Ke.push(ge(Lt,ue)+": "+ge(ue[Lt],ue)):Ke.push(Lt+": "+ge(ue[Lt],ue)));if(typeof Z=="function")for(var jt=0;jt<bt.length;jt++)Ne.call(ue,bt[jt])&&Ke.push("["+ge(bt[jt])+"]: "+ge(ue[bt[jt]],ue));return Ke}},85527:v=>{"use strict";var T=String.prototype.replace,s=/%20/g,p={RFC1738:"RFC1738",RFC3986:"RFC3986"};v.exports={default:p.RFC3986,formatters:{RFC1738:function(S){return T.call(S,s,"+")},RFC3986:function(S){return String(S)}},RFC1738:p.RFC1738,RFC3986:p.RFC3986}},37794:(v,T,s)=>{"use strict";var p=s(66845),S=s(29166),A=s(85527);v.exports={formats:A,parse:S,stringify:p}},29166:(v,T,s)=>{"use strict";var p=s(12493),S=Object.prototype.hasOwnProperty,A=Array.isArray,h={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:p.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},E=function($){return $.replace(/&#(\d+);/g,function(P,Y){return String.fromCharCode(parseInt(Y,10))})},F=function($,P){return $&&typeof $=="string"&&P.comma&&$.indexOf(",")>-1?$.split(","):$},U="utf8=%26%2310003%3B",_="utf8=%E2%9C%93",Q=function(P,Y){var L={},C=Y.ignoreQueryPrefix?P.replace(/^\?/,""):P,k=Y.parameterLimit===1/0?void 0:Y.parameterLimit,B=C.split(Y.delimiter,k),X=-1,H,D=Y.charset;if(Y.charsetSentinel)for(H=0;H<B.length;++H)B[H].indexOf("utf8=")===0&&(B[H]===_?D="utf-8":B[H]===U&&(D="iso-8859-1"),X=H,H=B.length);for(H=0;H<B.length;++H)if(H!==X){var re=B[H],J=re.indexOf("]="),z=J===-1?re.indexOf("="):J+1,fe,pe;z===-1?(fe=Y.decoder(re,h.decoder,D,"key"),pe=Y.strictNullHandling?null:""):(fe=Y.decoder(re.slice(0,z),h.decoder,D,"key"),pe=p.maybeMap(F(re.slice(z+1),Y),function(q){return Y.decoder(q,h.decoder,D,"value")})),pe&&Y.interpretNumericEntities&&D==="iso-8859-1"&&(pe=E(pe)),re.indexOf("[]=")>-1&&(pe=A(pe)?[pe]:pe),S.call(L,fe)?L[fe]=p.combine(L[fe],pe):L[fe]=pe}return L},le=function($,P,Y,L){for(var C=L?P:F(P,Y),k=$.length-1;k>=0;--k){var B,X=$[k];if(X==="[]"&&Y.parseArrays)B=[].concat(C);else{B=Y.plainObjects?Object.create(null):{};var H=X.charAt(0)==="["&&X.charAt(X.length-1)==="]"?X.slice(1,-1):X,D=parseInt(H,10);!Y.parseArrays&&H===""?B={0:C}:!isNaN(D)&&X!==H&&String(D)===H&&D>=0&&Y.parseArrays&&D<=Y.arrayLimit?(B=[],B[D]=C):H!=="__proto__"&&(B[H]=C)}C=B}return C},K=function(P,Y,L,C){if(!!P){var k=L.allowDots?P.replace(/\.([^.[]+)/g,"[$1]"):P,B=/(\[[^[\]]*])/,X=/(\[[^[\]]*])/g,H=L.depth>0&&B.exec(k),D=H?k.slice(0,H.index):k,re=[];if(D){if(!L.plainObjects&&S.call(Object.prototype,D)&&!L.allowPrototypes)return;re.push(D)}for(var J=0;L.depth>0&&(H=X.exec(k))!==null&&J<L.depth;){if(J+=1,!L.plainObjects&&S.call(Object.prototype,H[1].slice(1,-1))&&!L.allowPrototypes)return;re.push(H[1])}return H&&re.push("["+k.slice(H.index)+"]"),le(re,Y,L,C)}},ne=function(P){if(!P)return h;if(P.decoder!==null&&P.decoder!==void 0&&typeof P.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof P.charset!="undefined"&&P.charset!=="utf-8"&&P.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var Y=typeof P.charset=="undefined"?h.charset:P.charset;return{allowDots:typeof P.allowDots=="undefined"?h.allowDots:!!P.allowDots,allowPrototypes:typeof P.allowPrototypes=="boolean"?P.allowPrototypes:h.allowPrototypes,allowSparse:typeof P.allowSparse=="boolean"?P.allowSparse:h.allowSparse,arrayLimit:typeof P.arrayLimit=="number"?P.arrayLimit:h.arrayLimit,charset:Y,charsetSentinel:typeof P.charsetSentinel=="boolean"?P.charsetSentinel:h.charsetSentinel,comma:typeof P.comma=="boolean"?P.comma:h.comma,decoder:typeof P.decoder=="function"?P.decoder:h.decoder,delimiter:typeof P.delimiter=="string"||p.isRegExp(P.delimiter)?P.delimiter:h.delimiter,depth:typeof P.depth=="number"||P.depth===!1?+P.depth:h.depth,ignoreQueryPrefix:P.ignoreQueryPrefix===!0,interpretNumericEntities:typeof P.interpretNumericEntities=="boolean"?P.interpretNumericEntities:h.interpretNumericEntities,parameterLimit:typeof P.parameterLimit=="number"?P.parameterLimit:h.parameterLimit,parseArrays:P.parseArrays!==!1,plainObjects:typeof P.plainObjects=="boolean"?P.plainObjects:h.plainObjects,strictNullHandling:typeof P.strictNullHandling=="boolean"?P.strictNullHandling:h.strictNullHandling}};v.exports=function($,P){var Y=ne(P);if($===""||$===null||typeof $=="undefined")return Y.plainObjects?Object.create(null):{};for(var L=typeof $=="string"?Q($,Y):$,C=Y.plainObjects?Object.create(null):{},k=Object.keys(L),B=0;B<k.length;++B){var X=k[B],H=K(X,L[X],Y,typeof $=="string");C=p.merge(C,H,Y)}return Y.allowSparse===!0?C:p.compact(C)}},66845:(v,T,s)=>{"use strict";var p=s(74294),S=s(12493),A=s(85527),h=Object.prototype.hasOwnProperty,E={brackets:function(k){return k+"[]"},comma:"comma",indices:function(k,B){return k+"["+B+"]"},repeat:function(k){return k}},F=Array.isArray,U=String.prototype.split,_=Array.prototype.push,Q=function(C,k){_.apply(C,F(k)?k:[k])},le=Date.prototype.toISOString,K=A.default,ne={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:S.encode,encodeValuesOnly:!1,format:K,formatter:A.formatters[K],indices:!1,serializeDate:function(k){return le.call(k)},skipNulls:!1,strictNullHandling:!1},$=function(k){return typeof k=="string"||typeof k=="number"||typeof k=="boolean"||typeof k=="symbol"||typeof k=="bigint"},P={},Y=function C(k,B,X,H,D,re,J,z,fe,pe,q,Z,G,ve,Ie){for(var Ne=k,je=Ie,tt=0,_e=!1;(je=je.get(P))!==void 0&&!_e;){var mt=je.get(k);if(tt+=1,typeof mt!="undefined"){if(mt===tt)throw new RangeError("Cyclic object value");_e=!0}typeof je.get(P)=="undefined"&&(tt=0)}if(typeof J=="function"?Ne=J(B,Ne):Ne instanceof Date?Ne=pe(Ne):X==="comma"&&F(Ne)&&(Ne=S.maybeMap(Ne,function(Zt){return Zt instanceof Date?pe(Zt):Zt})),Ne===null){if(H)return re&&!G?re(B,ne.encoder,ve,"key",q):B;Ne=""}if($(Ne)||S.isBuffer(Ne)){if(re){var De=G?B:re(B,ne.encoder,ve,"key",q);if(X==="comma"&&G){for(var Oe=U.call(String(Ne),","),Ue="",Pe=0;Pe<Oe.length;++Pe)Ue+=(Pe===0?"":",")+Z(re(Oe[Pe],ne.encoder,ve,"value",q));return[Z(De)+"="+Ue]}return[Z(De)+"="+Z(re(Ne,ne.encoder,ve,"value",q))]}return[Z(B)+"="+Z(String(Ne))]}var Ce=[];if(typeof Ne=="undefined")return Ce;var Ge;if(X==="comma"&&F(Ne))Ge=[{value:Ne.length>0?Ne.join(",")||null:void 0}];else if(F(J))Ge=J;else{var rt=Object.keys(Ne);Ge=z?rt.sort(z):rt}for(var $e=0;$e<Ge.length;++$e){var et=Ge[$e],Ze=typeof et=="object"&&typeof et.value!="undefined"?et.value:Ne[et];if(!(D&&Ze===null)){var Ct=F(Ne)?typeof X=="function"?X(B,et):B:B+(fe?"."+et:"["+et+"]");Ie.set(k,tt);var kt=p();kt.set(P,Ie),Q(Ce,C(Ze,Ct,X,H,D,re,J,z,fe,pe,q,Z,G,ve,kt))}}return Ce},L=function(k){if(!k)return ne;if(k.encoder!==null&&typeof k.encoder!="undefined"&&typeof k.encoder!="function")throw new TypeError("Encoder has to be a function.");var B=k.charset||ne.charset;if(typeof k.charset!="undefined"&&k.charset!=="utf-8"&&k.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=A.default;if(typeof k.format!="undefined"){if(!h.call(A.formatters,k.format))throw new TypeError("Unknown format option provided.");X=k.format}var H=A.formatters[X],D=ne.filter;return(typeof k.filter=="function"||F(k.filter))&&(D=k.filter),{addQueryPrefix:typeof k.addQueryPrefix=="boolean"?k.addQueryPrefix:ne.addQueryPrefix,allowDots:typeof k.allowDots=="undefined"?ne.allowDots:!!k.allowDots,charset:B,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:ne.charsetSentinel,delimiter:typeof k.delimiter=="undefined"?ne.delimiter:k.delimiter,encode:typeof k.encode=="boolean"?k.encode:ne.encode,encoder:typeof k.encoder=="function"?k.encoder:ne.encoder,encodeValuesOnly:typeof k.encodeValuesOnly=="boolean"?k.encodeValuesOnly:ne.encodeValuesOnly,filter:D,format:X,formatter:H,serializeDate:typeof k.serializeDate=="function"?k.serializeDate:ne.serializeDate,skipNulls:typeof k.skipNulls=="boolean"?k.skipNulls:ne.skipNulls,sort:typeof k.sort=="function"?k.sort:null,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:ne.strictNullHandling}};v.exports=function(C,k){var B=C,X=L(k),H,D;typeof X.filter=="function"?(D=X.filter,B=D("",B)):F(X.filter)&&(D=X.filter,H=D);var re=[];if(typeof B!="object"||B===null)return"";var J;k&&k.arrayFormat in E?J=k.arrayFormat:k&&"indices"in k?J=k.indices?"indices":"repeat":J="indices";var z=E[J];H||(H=Object.keys(B)),X.sort&&H.sort(X.sort);for(var fe=p(),pe=0;pe<H.length;++pe){var q=H[pe];X.skipNulls&&B[q]===null||Q(re,Y(B[q],q,z,X.strictNullHandling,X.skipNulls,X.encode?X.encoder:null,X.filter,X.sort,X.allowDots,X.serializeDate,X.format,X.formatter,X.encodeValuesOnly,X.charset,fe))}var Z=re.join(X.delimiter),G=X.addQueryPrefix===!0?"?":"";return X.charsetSentinel&&(X.charset==="iso-8859-1"?G+="utf8=%26%2310003%3B&":G+="utf8=%E2%9C%93&"),Z.length>0?G+Z:""}},12493:(v,T,s)=>{"use strict";var p=s(85527),S=Object.prototype.hasOwnProperty,A=Array.isArray,h=function(){for(var L=[],C=0;C<256;++C)L.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return L}(),E=function(C){for(;C.length>1;){var k=C.pop(),B=k.obj[k.prop];if(A(B)){for(var X=[],H=0;H<B.length;++H)typeof B[H]!="undefined"&&X.push(B[H]);k.obj[k.prop]=X}}},F=function(C,k){for(var B=k&&k.plainObjects?Object.create(null):{},X=0;X<C.length;++X)typeof C[X]!="undefined"&&(B[X]=C[X]);return B},U=function L(C,k,B){if(!k)return C;if(typeof k!="object"){if(A(C))C.push(k);else if(C&&typeof C=="object")(B&&(B.plainObjects||B.allowPrototypes)||!S.call(Object.prototype,k))&&(C[k]=!0);else return[C,k];return C}if(!C||typeof C!="object")return[C].concat(k);var X=C;return A(C)&&!A(k)&&(X=F(C,B)),A(C)&&A(k)?(k.forEach(function(H,D){if(S.call(C,D)){var re=C[D];re&&typeof re=="object"&&H&&typeof H=="object"?C[D]=L(re,H,B):C.push(H)}else C[D]=H}),C):Object.keys(k).reduce(function(H,D){var re=k[D];return S.call(H,D)?H[D]=L(H[D],re,B):H[D]=re,H},X)},_=function(C,k){return Object.keys(k).reduce(function(B,X){return B[X]=k[X],B},C)},Q=function(L,C,k){var B=L.replace(/\+/g," ");if(k==="iso-8859-1")return B.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(B)}catch(X){return B}},le=function(C,k,B,X,H){if(C.length===0)return C;var D=C;if(typeof C=="symbol"?D=Symbol.prototype.toString.call(C):typeof C!="string"&&(D=String(C)),B==="iso-8859-1")return escape(D).replace(/%u[0-9a-f]{4}/gi,function(fe){return"%26%23"+parseInt(fe.slice(2),16)+"%3B"});for(var re="",J=0;J<D.length;++J){var z=D.charCodeAt(J);if(z===45||z===46||z===95||z===126||z>=48&&z<=57||z>=65&&z<=90||z>=97&&z<=122||H===p.RFC1738&&(z===40||z===41)){re+=D.charAt(J);continue}if(z<128){re=re+h[z];continue}if(z<2048){re=re+(h[192|z>>6]+h[128|z&63]);continue}if(z<55296||z>=57344){re=re+(h[224|z>>12]+h[128|z>>6&63]+h[128|z&63]);continue}J+=1,z=65536+((z&1023)<<10|D.charCodeAt(J)&1023),re+=h[240|z>>18]+h[128|z>>12&63]+h[128|z>>6&63]+h[128|z&63]}return re},K=function(C){for(var k=[{obj:{o:C},prop:"o"}],B=[],X=0;X<k.length;++X)for(var H=k[X],D=H.obj[H.prop],re=Object.keys(D),J=0;J<re.length;++J){var z=re[J],fe=D[z];typeof fe=="object"&&fe!==null&&B.indexOf(fe)===-1&&(k.push({obj:D,prop:z}),B.push(fe))}return E(k),C},ne=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},$=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},P=function(C,k){return[].concat(C,k)},Y=function(C,k){if(A(C)){for(var B=[],X=0;X<C.length;X+=1)B.push(k(C[X]));return B}return k(C)};v.exports={arrayToObject:F,assign:_,combine:P,compact:K,decode:Q,encode:le,isBuffer:$,isRegExp:ne,maybeMap:Y,merge:U}},63277:(v,T,s)=>{"use strict";var p;function S(){return S=Object.assign||function(ne){for(var $=1;$<arguments.length;$++){var P=arguments[$];for(var Y in P)Object.prototype.hasOwnProperty.call(P,Y)&&(ne[Y]=P[Y])}return ne},S.apply(this,arguments)}function A(ne){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(P){return typeof P}:A=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},A(ne)}var h=function(){var ne=function(P,Y){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,C){L.__proto__=C}||function(L,C){for(var k in C)C.hasOwnProperty(k)&&(L[k]=C[k])},ne(P,Y)};return function($,P){ne($,P);function Y(){this.constructor=$}$.prototype=P===null?Object.create(P):(Y.prototype=P.prototype,new Y)}}();p={value:!0},p=T.fk=void 0;var E=s(2784),F=typeof navigator=="undefined"||s.g.PREVENT_CODEMIRROR_RENDER===!0,U;F||(U=s(23326));var _=function(){function ne(){}return ne.equals=function($,P){var Y=this,L=Object.keys,C=A($),k=A(P);return $&&P&&C==="object"&&C===k?L($).length===L(P).length&&L($).every(function(B){return Y.equals($[B],P[B])}):$===P},ne}(),Q=function(){function ne($,P){this.editor=$,this.props=P}return ne.prototype.delegateCursor=function($,P,Y){var L=this.editor.getDoc();Y&&this.editor.focus(),P?L.setCursor($):L.setCursor($,null,{scroll:!1})},ne.prototype.delegateScroll=function($){this.editor.scrollTo($.x,$.y)},ne.prototype.delegateSelection=function($,P){var Y=this.editor.getDoc();Y.setSelections($),P&&this.editor.focus()},ne.prototype.apply=function($){$&&$.selection&&$.selection.ranges&&this.delegateSelection($.selection.ranges,$.selection.focus||!1),$&&$.cursor&&this.delegateCursor($.cursor,$.autoScroll||!1,this.editor.getOption("autofocus")||!1),$&&$.scroll&&this.delegateScroll($.scroll)},ne.prototype.applyNext=function($,P,Y){$&&$.selection&&$.selection.ranges&&P&&P.selection&&P.selection.ranges&&!_.equals($.selection.ranges,P.selection.ranges)&&this.delegateSelection(P.selection.ranges,P.selection.focus||!1),$&&$.cursor&&P&&P.cursor&&!_.equals($.cursor,P.cursor)&&this.delegateCursor(Y.cursor||P.cursor,P.autoScroll||!1,P.autoCursor||!1),$&&$.scroll&&P&&P.scroll&&!_.equals($.scroll,P.scroll)&&this.delegateScroll(P.scroll)},ne.prototype.applyUserDefined=function($,P){P&&P.cursor&&this.delegateCursor(P.cursor,$.autoScroll||!1,this.editor.getOption("autofocus")||!1)},ne.prototype.wire=function($){var P=this;Object.keys($||{}).filter(function(Y){return/^on/.test(Y)}).forEach(function(Y){switch(Y){case"onBlur":P.editor.on("blur",function(L,C){P.props.onBlur(P.editor,C)});break;case"onContextMenu":{P.editor.on("contextmenu",function(L,C){P.props.onContextMenu(P.editor,C)});break}case"onCopy":{P.editor.on("copy",function(L,C){P.props.onCopy(P.editor,C)});break}case"onCursor":P.editor.on("cursorActivity",function(L){P.props.onCursor(P.editor,P.editor.getDoc().getCursor())});break;case"onCursorActivity":P.editor.on("cursorActivity",function(L){P.props.onCursorActivity(P.editor)});break;case"onCut":{P.editor.on("cut",function(L,C){P.props.onCut(P.editor,C)});break}case"onDblClick":{P.editor.on("dblclick",function(L,C){P.props.onDblClick(P.editor,C)});break}case"onDragEnter":P.editor.on("dragenter",function(L,C){P.props.onDragEnter(P.editor,C)});break;case"onDragLeave":{P.editor.on("dragleave",function(L,C){P.props.onDragLeave(P.editor,C)});break}case"onDragOver":P.editor.on("dragover",function(L,C){P.props.onDragOver(P.editor,C)});break;case"onDragStart":{P.editor.on("dragstart",function(L,C){P.props.onDragStart(P.editor,C)});break}case"onDrop":P.editor.on("drop",function(L,C){P.props.onDrop(P.editor,C)});break;case"onFocus":P.editor.on("focus",function(L,C){P.props.onFocus(P.editor,C)});break;case"onGutterClick":P.editor.on("gutterClick",function(L,C,k,B){P.props.onGutterClick(P.editor,C,k,B)});break;case"onInputRead":P.editor.on("inputRead",function(L,C){P.props.onInputRead(P.editor,C)});break;case"onKeyDown":P.editor.on("keydown",function(L,C){P.props.onKeyDown(P.editor,C)});break;case"onKeyHandled":P.editor.on("keyHandled",function(L,C,k){P.props.onKeyHandled(P.editor,C,k)});break;case"onKeyPress":P.editor.on("keypress",function(L,C){P.props.onKeyPress(P.editor,C)});break;case"onKeyUp":P.editor.on("keyup",function(L,C){P.props.onKeyUp(P.editor,C)});break;case"onMouseDown":{P.editor.on("mousedown",function(L,C){P.props.onMouseDown(P.editor,C)});break}case"onPaste":{P.editor.on("paste",function(L,C){P.props.onPaste(P.editor,C)});break}case"onRenderLine":{P.editor.on("renderLine",function(L,C,k){P.props.onRenderLine(P.editor,C,k)});break}case"onScroll":P.editor.on("scroll",function(L){P.props.onScroll(P.editor,P.editor.getScrollInfo())});break;case"onSelection":P.editor.on("beforeSelectionChange",function(L,C){P.props.onSelection(P.editor,C)});break;case"onTouchStart":{P.editor.on("touchstart",function(L,C){P.props.onTouchStart(P.editor,C)});break}case"onUpdate":P.editor.on("update",function(L){P.props.onUpdate(P.editor)});break;case"onViewportChange":P.editor.on("viewportChange",function(L,C,k){P.props.onViewportChange(P.editor,C,k)});break}})},ne}(),le=function(ne){h($,ne);function $(P){var Y=ne.call(this,P)||this;return F||(Y.applied=!1,Y.appliedNext=!1,Y.appliedUserDefined=!1,Y.deferred=null,Y.emulating=!1,Y.hydrated=!1,Y.initCb=function(){Y.props.editorDidConfigure&&Y.props.editorDidConfigure(Y.editor)},Y.mounted=!1),Y}return $.prototype.hydrate=function(P){var Y=this,L=P&&P.options?P.options:{},C=S({},U.defaults,this.editor.options,L),k=Object.keys(C).some(function(B){return Y.editor.getOption(B)!==C[B]});k&&Object.keys(C).forEach(function(B){L.hasOwnProperty(B)&&Y.editor.getOption(B)!==C[B]&&(Y.editor.setOption(B,C[B]),Y.mirror.setOption(B,C[B]))}),this.hydrated||(this.deferred?this.resolveChange(P.value):this.initChange(P.value||"")),this.hydrated=!0},$.prototype.initChange=function(P){this.emulating=!0;var Y=this.editor.getDoc(),L=Y.lastLine(),C=Y.getLine(Y.lastLine()).length;Y.replaceRange(P||"",{line:0,ch:0},{line:L,ch:C}),this.mirror.setValue(P),Y.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},$.prototype.resolveChange=function(P){this.emulating=!0;var Y=this.editor.getDoc();if(this.deferred.origin==="undo"?Y.undo():this.deferred.origin==="redo"?Y.redo():Y.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),P&&P!==Y.getValue()){var L=Y.getCursor();Y.setValue(P),Y.setCursor(L)}this.emulating=!1,this.deferred=null},$.prototype.mirrorChange=function(P){var Y=this.editor.getDoc();return P.origin==="undo"?(Y.setHistory(this.mirror.getHistory()),this.mirror.undo()):P.origin==="redo"?(Y.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(P.text,P.from,P.to,P.origin),this.mirror.getValue()},$.prototype.componentDidMount=function(){var P=this;F||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new Q(this.editor,this.props),this.mirror=U(function(){},this.props.options),this.editor.on("electricInput",function(){P.mirror.setHistory(P.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){P.mirror.setCursor(P.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(Y,L){if(!P.emulating){L.cancel(),P.deferred=L;var C=P.mirrorChange(P.deferred);P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,P.deferred,C)}}),this.editor.on("change",function(Y,L){!P.mounted||P.props.onChange&&P.props.onChange(P.editor,L,P.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))},$.prototype.componentDidUpdate=function(P){if(!F){var Y={cursor:null};this.props.value!==P.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(Y.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(P,this.props,Y),this.appliedNext=!0),this.shared.applyUserDefined(P,Y),this.appliedUserDefined=!0}},$.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},$.prototype.shouldComponentUpdate=function(P,Y){return!F},$.prototype.render=function(){var P=this;if(F)return null;var Y=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return E.createElement("div",{className:Y,ref:function(C){return P.ref=C}})},$}(E.Component);T.fk=le;var K=function(ne){h($,ne);function $(P){var Y=ne.call(this,P)||this;return F||(Y.applied=!1,Y.appliedUserDefined=!1,Y.continueChange=!1,Y.detached=!1,Y.hydrated=!1,Y.initCb=function(){Y.props.editorDidConfigure&&Y.props.editorDidConfigure(Y.editor)},Y.mounted=!1,Y.onBeforeChangeCb=function(){Y.continueChange=!0}),Y}return $.prototype.hydrate=function(P){var Y=this,L=P&&P.options?P.options:{},C=S({},U.defaults,this.editor.options,L),k=Object.keys(C).some(function(D){return Y.editor.getOption(D)!==C[D]});if(k&&Object.keys(C).forEach(function(D){L.hasOwnProperty(D)&&Y.editor.getOption(D)!==C[D]&&Y.editor.setOption(D,C[D])}),!this.hydrated){var B=this.editor.getDoc(),X=B.lastLine(),H=B.getLine(B.lastLine()).length;B.replaceRange(P.value||"",{line:0,ch:0},{line:X,ch:H})}this.hydrated=!0},$.prototype.componentDidMount=function(){var P=this;F||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new Q(this.editor,this.props),this.editor.on("beforeChange",function(Y,L){P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,L,P.editor.getValue(),P.onBeforeChangeCb)}),this.editor.on("change",function(Y,L){!P.mounted||!P.props.onChange||(P.props.onBeforeChange?P.continueChange&&P.props.onChange(P.editor,L,P.editor.getValue()):P.props.onChange(P.editor,L,P.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))},$.prototype.componentDidUpdate=function(P){if(this.detached&&this.props.detach===!1&&(this.detached=!1,P.editorDidAttach&&P.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,P.editorDidDetach&&P.editorDidDetach(this.editor)),!(F||this.detached)){var Y={cursor:null};this.props.value!==P.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!P.autoCursor&&P.autoCursor!==void 0&&(Y.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(P),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(P,Y),this.appliedUserDefined=!0)}},$.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},$.prototype.shouldComponentUpdate=function(P,Y){var L=!0;return F&&(L=!1),this.detached&&P.detach&&(L=!1),L},$.prototype.render=function(){var P=this;if(F)return null;var Y=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return E.createElement("div",{className:Y,ref:function(C){return P.ref=C}})},$}(E.Component);p=K},74294:(v,T,s)=>{"use strict";var p=s(67286),S=s(62680),A=s(99500),h=p("%TypeError%"),E=p("%WeakMap%",!0),F=p("%Map%",!0),U=S("WeakMap.prototype.get",!0),_=S("WeakMap.prototype.set",!0),Q=S("WeakMap.prototype.has",!0),le=S("Map.prototype.get",!0),K=S("Map.prototype.set",!0),ne=S("Map.prototype.has",!0),$=function(C,k){for(var B=C,X;(X=B.next)!==null;B=X)if(X.key===k)return B.next=X.next,X.next=C.next,C.next=X,X},P=function(C,k){var B=$(C,k);return B&&B.value},Y=function(C,k,B){var X=$(C,k);X?X.value=B:C.next={key:k,next:C.next,value:B}},L=function(C,k){return!!$(C,k)};v.exports=function(){var k,B,X,H={assert:function(D){if(!H.has(D))throw new h("Side channel does not contain "+A(D))},get:function(D){if(E&&D&&(typeof D=="object"||typeof D=="function")){if(k)return U(k,D)}else if(F){if(B)return le(B,D)}else if(X)return P(X,D)},has:function(D){if(E&&D&&(typeof D=="object"||typeof D=="function")){if(k)return Q(k,D)}else if(F){if(B)return ne(B,D)}else if(X)return L(X,D);return!1},set:function(D,re){E&&D&&(typeof D=="object"||typeof D=="function")?(k||(k=new E),_(k,D,re)):F?(B||(B=new F),K(B,D,re)):(X||(X={key:{},next:null}),Y(X,D,re))}};return H}},56855:v=>{var T=v.exports=function(P){return new s(P)};function s(P){this.value=P}s.prototype.get=function(P){for(var Y=this.value,L=0;L<P.length;L++){var C=P[L];if(!Y||!$.call(Y,C)){Y=void 0;break}Y=Y[C]}return Y},s.prototype.has=function(P){for(var Y=this.value,L=0;L<P.length;L++){var C=P[L];if(!Y||!$.call(Y,C))return!1;Y=Y[C]}return!0},s.prototype.set=function(P,Y){for(var L=this.value,C=0;C<P.length-1;C++){var k=P[C];$.call(L,k)||(L[k]={}),L=L[k]}return L[P[C]]=Y,Y},s.prototype.map=function(P){return p(this.value,P,!0)},s.prototype.forEach=function(P){return this.value=p(this.value,P,!1),this.value},s.prototype.reduce=function(P,Y){var L=arguments.length===1,C=L?this.value:Y;return this.forEach(function(k){(!this.isRoot||!L)&&(C=P.call(this,C,k))}),C},s.prototype.paths=function(){var P=[];return this.forEach(function(Y){P.push(this.path)}),P},s.prototype.nodes=function(){var P=[];return this.forEach(function(Y){P.push(this.node)}),P},s.prototype.clone=function(){var P=[],Y=[];return function L(C){for(var k=0;k<P.length;k++)if(P[k]===C)return Y[k];if(typeof C=="object"&&C!==null){var B=S(C);return P.push(C),Y.push(B),ne(A(C),function(X){B[X]=L(C[X])}),P.pop(),Y.pop(),B}else return C}(this.value)};function p(P,Y,L){var C=[],k=[],B=!0;return function X(H){var D=L?S(H):H,re={},J=!0,z={node:D,node_:H,path:[].concat(C),parent:k[k.length-1],parents:k,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(q,Z){z.isRoot||(z.parent.node[z.key]=q),z.node=q,Z&&(J=!1)},delete:function(q){delete z.parent.node[z.key],q&&(J=!1)},remove:function(q){K(z.parent.node)?z.parent.node.splice(z.key,1):delete z.parent.node[z.key],q&&(J=!1)},keys:null,before:function(q){re.before=q},after:function(q){re.after=q},pre:function(q){re.pre=q},post:function(q){re.post=q},stop:function(){B=!1},block:function(){J=!1}};if(!B)return z;function fe(){if(typeof z.node=="object"&&z.node!==null){(!z.keys||z.node_!==z.node)&&(z.keys=A(z.node)),z.isLeaf=z.keys.length==0;for(var q=0;q<k.length;q++)if(k[q].node_===H){z.circular=k[q];break}}else z.isLeaf=!0,z.keys=null;z.notLeaf=!z.isLeaf,z.notRoot=!z.isRoot}fe();var pe=Y.call(z,z.node);return pe!==void 0&&z.update&&z.update(pe),re.before&&re.before.call(z,z.node),J&&(typeof z.node=="object"&&z.node!==null&&!z.circular&&(k.push(z),fe(),ne(z.keys,function(q,Z){C.push(q),re.pre&&re.pre.call(z,z.node[q],q);var G=X(z.node[q]);L&&$.call(z.node,q)&&(z.node[q]=G.node),G.isLast=Z==z.keys.length-1,G.isFirst=Z==0,re.post&&re.post.call(z,G),C.pop()}),k.pop()),re.after&&re.after.call(z,z.node)),z}(P).node}function S(P){if(typeof P=="object"&&P!==null){var Y;if(K(P))Y=[];else if(E(P))Y=new Date(P.getTime?P.getTime():P);else if(F(P))Y=new RegExp(P);else if(U(P))Y={message:P.message};else if(_(P))Y=new Boolean(P);else if(Q(P))Y=new Number(P);else if(le(P))Y=new String(P);else if(Object.create&&Object.getPrototypeOf)Y=Object.create(Object.getPrototypeOf(P));else if(P.constructor===Object)Y={};else{var L=P.constructor&&P.constructor.prototype||P.__proto__||{},C=function(){};C.prototype=L,Y=new C}return ne(A(P),function(k){Y[k]=P[k]}),Y}else return P}var A=Object.keys||function(Y){var L=[];for(var C in Y)L.push(C);return L};function h(P){return Object.prototype.toString.call(P)}function E(P){return h(P)==="[object Date]"}function F(P){return h(P)==="[object RegExp]"}function U(P){return h(P)==="[object Error]"}function _(P){return h(P)==="[object Boolean]"}function Q(P){return h(P)==="[object Number]"}function le(P){return h(P)==="[object String]"}var K=Array.isArray||function(Y){return Object.prototype.toString.call(Y)==="[object Array]"},ne=function(P,Y){if(P.forEach)return P.forEach(Y);for(var L=0;L<P.length;L++)Y(P[L],L,P)};ne(A(s.prototype),function(P){T[P]=function(Y){var L=[].slice.call(arguments,1),C=new s(Y);return C[P].apply(C,L)}});var $=Object.hasOwnProperty||function(P,Y){return Y in P}},84591:(v,T,s)=>{"use strict";s.r(T),s.d(T,{default:()=>F});var p=s(8081),S=s.n(p),A=s(23645),h=s.n(A),E=h()(S());E.push([v.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;box-sizing:border-box}.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}
504
- `,""]);const F=E},51232:(v,T,s)=>{"use strict";s.r(T),s.d(T,{default:()=>k});var p=s(8081),S=s.n(p),A=s(23645),h=s.n(A),E=s(61667),F=s.n(E),U=new URL(s(17735),s.b),_=new URL(s(56089),s.b),Q=new URL(s(46050),s.b),le=new URL(s(71090),s.b),K=new URL(s(96192),s.b),ne=h()(S()),$=F()(U),P=F()(_),Y=F()(Q),L=F()(le),C=F()(K);ne.push([v.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("+$+")}.CodeMirror-lint-mark-error{background-image:url("+P+")}.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("+Y+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+L+")}.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}
505
- `,""]);const k=ne},66072:(v,T,s)=>{"use strict";s.r(T),s.d(T,{default:()=>F});var p=s(8081),S=s.n(p),A=s(23645),h=s.n(A),E=h()(S());E.push([v.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;z-index:0}.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}
506
- `,""]);const F=E},16887:(v,T,s)=>{"use strict";s.r(T),s.d(T,{default:()=>F});var p=s(8081),S=s.n(p),A=s(23645),h=s.n(A),E=h()(S());E.push([v.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}
507
- `,""]);const F=E},61667:v=>{"use strict";v.exports=function(T,s){return s||(s={}),T&&(T=String(T.__esModule?T.default:T),/^['"].*['"]$/.test(T)&&(T=T.slice(1,-1)),s.hash&&(T+=s.hash),/["'() \t\n]|(%20)/.test(T)||s.needQuotes?'"'.concat(T.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):T)}},53513:(v,T,s)=>{var p=s(93379),S=s(84591);S=S.__esModule?S.default:S,typeof S=="string"&&(S=[[v.id,S,""]]);var A={};A.insert="head",A.singleton=!1;var h=p(S,A);v.exports=S.locals||{}},6364:(v,T,s)=>{var p=s(93379),S=s(51232);S=S.__esModule?S.default:S,typeof S=="string"&&(S=[[v.id,S,""]]);var A={};A.insert="head",A.singleton=!1;var h=p(S,A);v.exports=S.locals||{}},46830:(v,T,s)=>{var p=s(93379),S=s(66072);S=S.__esModule?S.default:S,typeof S=="string"&&(S=[[v.id,S,""]]);var A={};A.insert="head",A.singleton=!1;var h=p(S,A);v.exports=S.locals||{}},59176:(v,T,s)=>{var p=s(93379),S=s(16887);S=S.__esModule?S.default:S,typeof S=="string"&&(S=[[v.id,S,""]]);var A={};A.insert="head",A.singleton=!1;var h=p(S,A);v.exports=S.locals||{}},56089:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},53260:()=>{},48621:(v,T,s)=>{v.exports=s(53822)},40192:(v,T,s)=>{v.exports=s(44877)},42126:(v,T,s)=>{v.exports=s(10140)},40453:(v,T,s)=>{v.exports=s(55603)},35784:(v,T,s)=>{v.exports=s(76237)},82985:(v,T,s)=>{v.exports=s(56515)},14903:(v,T,s)=>{v.exports=s(20057)},71488:(v,T,s)=>{v.exports=s(24741)},93963:(v,T,s)=>{v.exports=s(8368)},51661:(v,T,s)=>{v.exports=s(342)},85337:(v,T,s)=>{v.exports=s(392)},45932:(v,T,s)=>{v.exports=s(28478)},31175:(v,T,s)=>{v.exports=s(58202)},2921:(v,T,s)=>{v.exports=s(45636)},22583:(v,T,s)=>{v.exports=s(46618)},8304:(v,T,s)=>{v.exports=s(72946)},36394:(v,T,s)=>{v.exports=s(11235)},50557:(v,T,s)=>{v.exports=s(62813)},72010:(v,T,s)=>{v.exports=s(68664)},5490:(v,T,s)=>{v.exports=s(21457)},1858:(v,T,s)=>{v.exports=s(36516)},84870:(v,T,s)=>{v.exports=s(87611)},48145:(v,T,s)=>{v.exports=s(4161)},26405:(v,T,s)=>{v.exports=s(75159)},9600:(v,T,s)=>{v.exports=s(87708)},72383:(v,T,s)=>{v.exports=s(42937)},8626:(v,T,s)=>{v.exports=s(69297)},45055:(v,T,s)=>{v.exports=s(10353)},49800:(v,T,s)=>{v.exports=s(8026)},79494:(v,T,s)=>{v.exports=s(67362)},11807:(v,T,s)=>{v.exports=s(57532)},24463:(v,T,s)=>{v.exports=s(61903)},21889:(v,T,s)=>{v.exports=s(42044)},25575:(v,T,s)=>{v.exports=s(60902)},68861:(v,T,s)=>{v.exports=s(2214)},64772:(v,T,s)=>{v.exports=s(983)},57829:(v,T,s)=>{v.exports=s(59256)},92876:(v,T,s)=>{v.exports=s(95659)},18730:(v,T,s)=>{var p=s(94978).default,S=s(57829),A=s(49800),h=s(8626),E=s(21889),F=s(48145),U=s(68861),_=s(64772),Q=s(9600),le=s(72383);function K(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v.exports=K=function(){return ne},v.exports.__esModule=!0,v.exports.default=v.exports;var ne={},$=Object.prototype,P=$.hasOwnProperty,Y=typeof S=="function"?S:{},L=Y.iterator||"@@iterator",C=Y.asyncIterator||"@@asyncIterator",k=Y.toStringTag||"@@toStringTag";function B(De,Oe,Ue){return A(De,Oe,{value:Ue,enumerable:!0,configurable:!0,writable:!0}),De[Oe]}try{B({},"")}catch(De){B=function(Ue,Pe,Ce){return Ue[Pe]=Ce}}function X(De,Oe,Ue,Pe){var Ce=Oe&&Oe.prototype instanceof re?Oe:re,Ge=h(Ce.prototype),rt=new tt(Pe||[]);return Ge._invoke=function($e,et,Ze){var Ct="suspendedStart";return function(kt,Zt){if(Ct==="executing")throw new Error("Generator is already running");if(Ct==="completed"){if(kt==="throw")throw Zt;return mt()}for(Ze.method=kt,Ze.arg=Zt;;){var lt=Ze.delegate;if(lt){var xt=Ie(lt,Ze);if(xt){if(xt===D)continue;return xt}}if(Ze.method==="next")Ze.sent=Ze._sent=Ze.arg;else if(Ze.method==="throw"){if(Ct==="suspendedStart")throw Ct="completed",Ze.arg;Ze.dispatchException(Ze.arg)}else Ze.method==="return"&&Ze.abrupt("return",Ze.arg);Ct="executing";var Ft=H($e,et,Ze);if(Ft.type==="normal"){if(Ct=Ze.done?"completed":"suspendedYield",Ft.arg===D)continue;return{value:Ft.arg,done:Ze.done}}Ft.type==="throw"&&(Ct="completed",Ze.method="throw",Ze.arg=Ft.arg)}}}(De,Ue,rt),Ge}function H(De,Oe,Ue){try{return{type:"normal",arg:De.call(Oe,Ue)}}catch(Pe){return{type:"throw",arg:Pe}}}ne.wrap=X;var D={};function re(){}function J(){}function z(){}var fe={};B(fe,L,function(){return this});var pe=E,q=pe&&pe(pe(_e([])));q&&q!==$&&P.call(q,L)&&(fe=q);var Z=z.prototype=re.prototype=h(fe);function G(De){var Oe;F(Oe=["next","throw","return"]).call(Oe,function(Ue){B(De,Ue,function(Pe){return this._invoke(Ue,Pe)})})}function ve(De,Oe){function Ue(Ce,Ge,rt,$e){var et=H(De[Ce],De,Ge);if(et.type!=="throw"){var Ze=et.arg,Ct=Ze.value;return Ct&&p(Ct)=="object"&&P.call(Ct,"__await")?Oe.resolve(Ct.__await).then(function(kt){Ue("next",kt,rt,$e)},function(kt){Ue("throw",kt,rt,$e)}):Oe.resolve(Ct).then(function(kt){Ze.value=kt,rt(Ze)},function(kt){return Ue("throw",kt,rt,$e)})}$e(et.arg)}var Pe;this._invoke=function(Ce,Ge){function rt(){return new Oe(function($e,et){Ue(Ce,Ge,$e,et)})}return Pe=Pe?Pe.then(rt,rt):rt()}}function Ie(De,Oe){var Ue=De.iterator[Oe.method];if(Ue===void 0){if(Oe.delegate=null,Oe.method==="throw"){if(De.iterator.return&&(Oe.method="return",Oe.arg=void 0,Ie(De,Oe),Oe.method==="throw"))return D;Oe.method="throw",Oe.arg=new TypeError("The iterator does not provide a 'throw' method")}return D}var Pe=H(Ue,De.iterator,Oe.arg);if(Pe.type==="throw")return Oe.method="throw",Oe.arg=Pe.arg,Oe.delegate=null,D;var Ce=Pe.arg;return Ce?Ce.done?(Oe[De.resultName]=Ce.value,Oe.next=De.nextLoc,Oe.method!=="return"&&(Oe.method="next",Oe.arg=void 0),Oe.delegate=null,D):Ce:(Oe.method="throw",Oe.arg=new TypeError("iterator result is not an object"),Oe.delegate=null,D)}function Ne(De){var Oe={tryLoc:De[0]};1 in De&&(Oe.catchLoc=De[1]),2 in De&&(Oe.finallyLoc=De[2],Oe.afterLoc=De[3]),this.tryEntries.push(Oe)}function je(De){var Oe=De.completion||{};Oe.type="normal",delete Oe.arg,De.completion=Oe}function tt(De){this.tryEntries=[{tryLoc:"root"}],F(De).call(De,Ne,this),this.reset(!0)}function _e(De){if(De){var Oe=De[L];if(Oe)return Oe.call(De);if(typeof De.next=="function")return De;if(!isNaN(De.length)){var Ue=-1,Pe=function Ce(){for(;++Ue<De.length;)if(P.call(De,Ue))return Ce.value=De[Ue],Ce.done=!1,Ce;return Ce.value=void 0,Ce.done=!0,Ce};return Pe.next=Pe}}return{next:mt}}function mt(){return{value:void 0,done:!0}}return J.prototype=z,B(Z,"constructor",z),B(z,"constructor",J),J.displayName=B(z,k,"GeneratorFunction"),ne.isGeneratorFunction=function(De){var Oe=typeof De=="function"&&De.constructor;return!!Oe&&(Oe===J||(Oe.displayName||Oe.name)==="GeneratorFunction")},ne.mark=function(De){return U?U(De,z):(De.__proto__=z,B(De,k,"GeneratorFunction")),De.prototype=h(Z),De},ne.awrap=function(De){return{__await:De}},G(ve.prototype),B(ve.prototype,C,function(){return this}),ne.AsyncIterator=ve,ne.async=function(De,Oe,Ue,Pe,Ce){Ce===void 0&&(Ce=_);var Ge=new ve(X(De,Oe,Ue,Pe),Ce);return ne.isGeneratorFunction(Oe)?Ge:Ge.next().then(function(rt){return rt.done?rt.value:Ge.next()})},G(Z),B(Z,k,"Generator"),B(Z,L,function(){return this}),B(Z,"toString",function(){return"[object Generator]"}),ne.keys=function(De){var Oe=[];for(var Ue in De)Oe.push(Ue);return Q(Oe).call(Oe),function Pe(){for(;Oe.length;){var Ce=Oe.pop();if(Ce in De)return Pe.value=Ce,Pe.done=!1,Pe}return Pe.done=!0,Pe}},ne.values=_e,tt.prototype={constructor:tt,reset:function(Oe){var Ue;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,F(Ue=this.tryEntries).call(Ue,je),!Oe)for(var Pe in this)Pe.charAt(0)==="t"&&P.call(this,Pe)&&!isNaN(+le(Pe).call(Pe,1))&&(this[Pe]=void 0)},stop:function(){this.done=!0;var Oe=this.tryEntries[0].completion;if(Oe.type==="throw")throw Oe.arg;return this.rval},dispatchException:function(Oe){if(this.done)throw Oe;var Ue=this;function Pe(Ze,Ct){return rt.type="throw",rt.arg=Oe,Ue.next=Ze,Ct&&(Ue.method="next",Ue.arg=void 0),!!Ct}for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var Ge=this.tryEntries[Ce],rt=Ge.completion;if(Ge.tryLoc==="root")return Pe("end");if(Ge.tryLoc<=this.prev){var $e=P.call(Ge,"catchLoc"),et=P.call(Ge,"finallyLoc");if($e&&et){if(this.prev<Ge.catchLoc)return Pe(Ge.catchLoc,!0);if(this.prev<Ge.finallyLoc)return Pe(Ge.finallyLoc)}else if($e){if(this.prev<Ge.catchLoc)return Pe(Ge.catchLoc,!0)}else{if(!et)throw new Error("try statement without catch or finally");if(this.prev<Ge.finallyLoc)return Pe(Ge.finallyLoc)}}}},abrupt:function(Oe,Ue){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var Ce=this.tryEntries[Pe];if(Ce.tryLoc<=this.prev&&P.call(Ce,"finallyLoc")&&this.prev<Ce.finallyLoc){var Ge=Ce;break}}Ge&&(Oe==="break"||Oe==="continue")&&Ge.tryLoc<=Ue&&Ue<=Ge.finallyLoc&&(Ge=null);var rt=Ge?Ge.completion:{};return rt.type=Oe,rt.arg=Ue,Ge?(this.method="next",this.next=Ge.finallyLoc,D):this.complete(rt)},complete:function(Oe,Ue){if(Oe.type==="throw")throw Oe.arg;return Oe.type==="break"||Oe.type==="continue"?this.next=Oe.arg:Oe.type==="return"?(this.rval=this.arg=Oe.arg,this.method="return",this.next="end"):Oe.type==="normal"&&Ue&&(this.next=Ue),D},finish:function(Oe){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var Pe=this.tryEntries[Ue];if(Pe.finallyLoc===Oe)return this.complete(Pe.completion,Pe.afterLoc),je(Pe),D}},catch:function(Oe){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var Pe=this.tryEntries[Ue];if(Pe.tryLoc===Oe){var Ce=Pe.completion;if(Ce.type==="throw"){var Ge=Ce.arg;je(Pe)}return Ge}}throw new Error("illegal catch attempt")},delegateYield:function(Oe,Ue,Pe){return this.delegate={iterator:_e(Oe),resultName:Ue,nextLoc:Pe},this.method==="next"&&(this.arg=void 0),D}},ne}v.exports=K,v.exports.__esModule=!0,v.exports.default=v.exports},94978:(v,T,s)=>{var p=s(57829),S=s(92876);function A(h){return v.exports=A=typeof p=="function"&&typeof S=="symbol"?function(E){return typeof E}:function(E){return E&&typeof p=="function"&&E.constructor===p&&E!==p.prototype?"symbol":typeof E},v.exports.__esModule=!0,v.exports.default=v.exports,A(h)}v.exports=A,v.exports.__esModule=!0,v.exports.default=v.exports},99732:(v,T,s)=>{var p=s(18730)();v.exports=p;try{regeneratorRuntime=p}catch(S){typeof globalThis=="object"?globalThis.regeneratorRuntime=p:Function("r","regeneratorRuntime = r")(p)}}}]);
504
+ `;function eg(e){const{scopes:r,id:n}=e;let a=[];try{a=JSON.parse((0,pt.YQ)(`auth.${n}.scopes`))}catch(s){}return!r||!r.length?L.createElement(L.Fragment,null):L.createElement(ht.NI,null,L.createElement(ht.lX,null," Scopes: "),L.createElement(Kb,{field:`auth.${n}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}const Xb=({token:e,loading:r,error:n})=>r?L.createElement(ht.GE,null,"Please, finish your authorization flow or cancel authorization."):n?L.createElement(Fb,null,L.createElement(ht.Xq,null,n)):e!=null&&e.access_token?null:L.createElement(ht.GE,null," No Access Token. Please, Authorize. ");var Qb=Object.defineProperty,Zb=Object.defineProperties,qb=Object.getOwnPropertyDescriptors,tg=Object.getOwnPropertySymbols,_b=Object.prototype.hasOwnProperty,ex=Object.prototype.propertyIsEnumerable,rg=(e,r,n)=>r in e?Qb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ac=(e,r)=>{for(var n in r||(r={}))_b.call(r,n)&&rg(e,n,r[n]);if(tg)for(var n of tg(r))ex.call(r,n)&&rg(e,n,r[n]);return e},fp=(e,r)=>Zb(e,qb(r)),tx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function rx(e){if(!e)return"Field is required"}const Cc=({usePkce:e,form:r,id:n,formApi:a,flow:s,tokenUrl:c,authCorsProxyUrl:p,tokenEndpointAuthMethod:m,server:v,scopes:y,authorizationUrl:b,defaultValues:I,clientId:R})=>{var N,G,ee,q;const{oAuth2RedirectURI:oe,routingBasePath:ae}=(0,L.useContext)(Xf.jI),[pe,ve]=(0,L.useState)(null),[me,Te]=(0,L.useState)(!1),[Ae,Se]=(0,L.useState)(!1),[Ce,Fe]=(0,L.useState)(void 0),[Re,Ue]=(0,L.useState)(void 0),[ze,Ct]=(0,L.useState)(void 0),qe=((G=(N=r.values)==null?void 0:N.auth)==null?void 0:G[n])||{},nr=((q=(ee=r.errors)==null?void 0:ee.auth)==null?void 0:q[n])||{},ur=Ce!==void 0&&Re!==ze?{label:"sync",onClick:()=>{Ce&&Ue(ze)}}:void 0;(0,L.useEffect)(()=>{if(e){const Wt=(0,io.CY)(43);ch(Wt).then(Kt=>{Fe(Wt),Ue(Kt),Ct(Kt)})}},[e]);const jt=Wt=>{if(!Wt||(a.validate(),!(0,io.Qr)(nr)))return;Te(!0),ve(null);const Kt=p?p+(0,ar.jg)(Wt):Wt,qr=p&&c?p+(0,ar.jg)(c):c,Un=a.getValue(`auth.${n}.scopes`),pi={authorizationUrl:Kt.startsWith("http")?Kt:v+Kt,clientId:qe.client_id,scopes:Un,redirectUri:oe,routingBasePath:ae,successCallback:Vr=>{a.setValue(`auth.${n}.token`,Vr),Te(!1),ve(null)},errorCallback:Vr=>{Te(!1),ve((Vr==null?void 0:Vr.message)||"Failed to retrieve the access token")}};if(s==="implicit"&&Di.authorizeImplicit(pi),!(0,ar.xl)(m)){console.log(`Unsupported token endpoint auth method: ${m}`);return}s==="authorizationCode"&&Di.authorizeAuthorizationCode(Ac(fp(Ac({},pi),{tokenUrl:qr!=null&&qr.startsWith("http")?qr:v+qr,clientSecret:qe.client_secret,extraHeaders:(0,ar.Or)({authMethod:m,clientId:qe.client_id,clientSecret:qe.client_secret})}),e&&{codeVerifier:Ce,codeChallenge:Re}))},fr=()=>{cr(),ve(null)},$t=()=>{Te(!1),ve(null),Di.clearRedirectData(s)},cr=()=>{a.setValue(`auth.${n}.token`,"")},wr=()=>{Se(Wt=>!Wt)},Ut=Wt=>tx(void 0,[Wt],function*({target:{value:Kt}}){const qr=yield ch(Kt);Fe(Kt),Ct(qr)});if(!b)return L.createElement(ht.Xq,null,"No flow info");let ft=(0,pt.YQ)(`auth.${n}.token`)||JSON.stringify(I==null?void 0:I.token);ft=ft?JSON.parse(ft):"";const Ot=(0,pt.Al)(n,"client_id"),Zt={field:`auth.${n}.client_id`,fullWidth:!0,initialValue:(0,pt.YQ)(`auth.${n}.client_id`)||R||(I==null?void 0:I.client_id),initValue:(0,pt.YQ)(`auth.${n}.client_id`)||R||(I==null?void 0:I.client_id),placeholder:"Your OAuth2 app Client ID",validate:rx,validateOnBlur:!0,validateOnChange:!0};return L.createElement("div",null,L.createElement(ht.n5,null,L.createElement(ht.NI,null,L.createElement(ht.lX,null," Client ID: "),Ot?L.createElement(uu,fp(Ac({},Zt),{options:Ot})):L.createElement(Bn,fp(Ac({},Zt),{"data-cy":"client-id-input",panel:"try-it"}))),s==="authorizationCode"&&L.createElement(L.Fragment,null,(!(e!=null&&e.hideClientSecretInput)||!e)&&L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Client Secret:"),L.createElement(Bn,{type:"password",fullWidth:!0,field:`auth.${n}.client_secret`,initialValue:(0,pt.YQ)(`auth.${n}.client_secret`)||(I==null?void 0:I.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),e&&!e.disableManualConfiguration&&L.createElement(Rb,null,L.createElement(_v,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:Ae,onChange:wr,"data-cy":"pkce-options-toggle"}),Ae&&L.createElement(Mb,null,L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Code Verifier"),L.createElement(lu,{fullWidth:!0,value:Ce,onChange:Ut,panel:"try-it","data-cy":"code-verifier-input"})),L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Code Challenge"),L.createElement(lu,{fullWidth:!0,value:Re,onChange:({target:{value:Wt}})=>{Ue(Wt)},inputActionButton:ur,panel:"try-it","data-cy":"code-challenge-input"}))))),L.createElement(Bn,{fullWidth:!0,field:`auth.${n}.token`,type:"hidden",initialValue:ft,panel:"try-it"}),L.createElement(eg,{id:n,scopes:y}),qe.token&&qe.token.access_token?L.createElement(ht.NI,null,L.createElement(ht.lX,null," Access Token: "),L.createElement(lu,{disabled:!0,type:"password",fullWidth:!0,value:qe.token.access_token,panel:"try-it"})):null),L.createElement(kb,null,qe.token&&qe.token.access_token?L.createElement(Bt.Button,{fullWidth:!0,onClick:fr},"Log out"):me?L.createElement(L.Fragment,null,L.createElement(Bt.Button,{fullWidth:!0,onClick:$t},"Cancel"),L.createElement(Qv,null)):L.createElement(Bt.Button,{fullWidth:!0,disabled:!(0,io.Qr)(nr),onClick:()=>{jt(b)}},"Authorize")),me||pe||!qe.token||!qe.token.access_token&&L.createElement(Xb,{loading:me,error:pe,token:qe.token}))};var nx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function ix(e){var r,n;const{scheme:a,defaultValues:s}=e,[c,p]=(0,L.useState)({}),[m,v]=(0,L.useState)(),[y,b]=(0,L.useState)(!1);(0,L.useEffect)(()=>{I(a.openIdConnectUrl)},[a.openIdConnectUrl]);const I=R=>nx(this,null,function*(){b(!0),v("");try{const N=yield Pb(R);p(N)}catch(N){v(N.message)}b(!1)});return y?L.createElement(ax,null):m?L.createElement(ng,{message:m}):L.createElement("div",null,L.createElement("div",null,(r=c==null?void 0:c.response_types_supported)!=null&&r.includes("token")?L.createElement(L.Fragment,null,L.createElement(Nn.S6,null,"OAuth2 Implicit Flow"),L.createElement(Cc,{key:e.id,authorizationUrl:c.authorization_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,flow:"implicit",defaultValues:s})):(n=c==null?void 0:c.response_types_supported)!=null&&n.includes("code")?L.createElement(L.Fragment,null,L.createElement(Nn.S6,null,"OAuth2 Authorization Flow"),L.createElement(Cc,{key:e.id,authorizationUrl:c.authorization_endpoint,tokenUrl:c.token_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,tokenEndpointAuthMethod:c==null?void 0:c.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):L.createElement("div",null,"Unsupported flow")))}function ax(){return L.createElement("div",null,L.createElement("div",null,L.createElement("div",null,"Fetching OpenID Connect metadata..."),L.createElement(Qv,null)))}function ng({message:e}){return L.createElement("div",null,L.createElement("div",null,L.createElement(ht.Xq,null,e)))}var ox=Object.defineProperty,sx=Object.defineProperties,lx=Object.getOwnPropertyDescriptors,ig=Object.getOwnPropertySymbols,ux=Object.prototype.hasOwnProperty,fx=Object.prototype.propertyIsEnumerable,ag=(e,r,n)=>r in e?ox(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,og=(e,r)=>{for(var n in r||(r={}))ux.call(r,n)&&ag(e,n,r[n]);if(ig)for(var n of ig(r))fx.call(r,n)&&ag(e,n,r[n]);return e},sg=(e,r)=>sx(e,lx(r)),cx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function dx(e){if(!e)return"Token is required"}const px=({form:e,id:r,formApi:n,server:a,flow:s,authCorsProxyUrl:c,defaultValues:p,clientId:m})=>{var v,y,b,I;const[R,N]=(0,L.useState)(""),[G,ee]=(0,L.useState)(!1),[q,oe]=(0,L.useState)(!0),ae=((y=(v=e==null?void 0:e.values)==null?void 0:v.auth)==null?void 0:y[r])||{},pe=((I=(b=e.errors)==null?void 0:b.auth)==null?void 0:I[r])||{},ve=()=>{n.setValue(`auth.${r}.token`,""),(0,pt.WW)(`auth.${r}.token`,"")},me=()=>{oe(Re=>!Re)},Te=()=>cx(void 0,null,function*(){if(G)return;const Re=c&&s.tokenUrl?c+(0,ar.jg)(s.tokenUrl):s.tokenUrl;if(pe.client_id||pe.client_secret){console.log("Provide client_id and client_secret");return}const Ue=ae.client_id,ze=ae.client_secret;if(!Ue||!ze){console.log("Provide client_id and client_secret");return}ee(!0);const Ct=s["x-tokenEndpointAuthMethod"];if(!(0,ar.xl)(Ct)){console.log(`Unsupported token endpoint auth method: ${Ct}`);return}yield Di.authorizeClientCredentials({tokenUrl:Re.startsWith("http")?Re:a+Re,clientId:Ue,clientSecret:ze,scopes:ae.scopes,extraHeaders:(0,ar.Or)({authMethod:Ct,clientId:Ue,clientSecret:ze}),successCallback:qe=>{n.setValue(`auth.${r}.token`,qe),ee(!1)},errorCallback:qe=>{ve(),N(qe.message),ee(!1)}})}),Ae=Object.keys(s.scopes);let Se=(0,pt.YQ)(`auth.${r}.token`)||JSON.stringify(p==null?void 0:p.token);Se=Se?JSON.parse(Se):"";const Ce=(0,pt.Al)(r,"client_id"),Fe={field:`auth.${r}.client_id`,fullWidth:!0,initialValue:(0,pt.YQ)(`auth.${r}.client_id`)||m||(p==null?void 0:p.client_id),initValue:(0,pt.YQ)(`auth.${r}.client_id`)||m||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return L.createElement(L.Fragment,null,L.createElement(ht.n5,null,L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Client ID:"),Ce?L.createElement(uu,sg(og({},Fe),{options:Ce})):L.createElement(Bn,sg(og({},Fe),{type:"password",panel:"try-it"}))),L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Client Secret:"),L.createElement(Bn,{type:"password",fullWidth:!0,field:`auth.${r}.client_secret`,initialValue:(0,pt.YQ)(`auth.${r}.client_secret`)||(p==null?void 0:p.client_secret),panel:"try-it"})),L.createElement(Bn,{fullWidth:!0,field:`auth.${r}.token`,type:"hidden",initialValue:Se,validate:dx}),L.createElement(eg,{id:r,scopes:Ae})),L.createElement(Bt.Button,{color:"primary",onClick:Te,blinking:G},G?"Loading...":"Request Token"),L.createElement(ht.ph,null," Access Token "),R?L.createElement(ht.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",L.createElement("pre",null,R)," "):ae.token&&ae.token.access_token?L.createElement(ht.TR,null,L.createElement(ht.WA,{length:ae.token.access_token.length,masked:q},ae.token.access_token),L.createElement(ht.lf,{onClick:me},q?"Show":"Hide"," "),L.createElement(ht.h,{onClick:ve}," Clear ")):L.createElement(ht.Xq,{style:{marginBottom:"1em"}},"No token"))};var hx=Object.defineProperty,vx=Object.defineProperties,gx=Object.getOwnPropertyDescriptors,lg=Object.getOwnPropertySymbols,mx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable,ug=(e,r,n)=>r in e?hx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,rl=(e,r)=>{for(var n in r||(r={}))mx.call(r,n)&&ug(e,n,r[n]);if(lg)for(var n of lg(r))yx.call(r,n)&&ug(e,n,r[n]);return e},nl=(e,r)=>vx(e,gx(r));const bx=({securityDefaults:e,operation:r,activeServer:n,authCorsProxyUrl:a,form:s,formApi:c})=>{const[p,m]=(0,L.useState)(0);(0,L.useEffect)(()=>{const R=r.security.map(ee=>ee.schemes.map(q=>q.id).join(" and ")),N=(0,pt.YQ)("securityRequirementName"),G=R.findIndex(ee=>ee===N);m(G<0?0:G)},[r]);const v=R=>{m(R.idx),(0,pt.WW)("securityRequirementName",R.value)},y=r.security,I=y.map(R=>R.schemes.map(N=>N.id).join(" and ")).filter(Boolean).map((R,N)=>({value:R,idx:N}));return I.length===0?L.createElement(ng,{message:"Cannot find security schema in the definition"}):L.createElement(L.Fragment,null,L.createElement(ht.n5,null,I.length>1&&L.createElement(ht.NI,null,L.createElement(ht.lX,null," Security scheme: "),L.createElement(Nn.VD,{variant:"dark",fullWidth:!0,options:I,value:I[p].value,onChange:v}))||null,y[p].schemes.map(R=>{var N,G,ee,q,oe,ae,pe;const ve=(0,pt.A8)(R.id);if(R.type==="apiKey"){const me=(0,pt.Al)(ve,""),Te={field:`auth.${ve}`,fullWidth:!0,initialValue:(0,ar.NG)(R)||(0,pt.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),initValue:(0,ar.NG)(R)||(0,pt.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),validate:ar.np,validateOnBlur:!0,validateOnChange:!0};return L.createElement(ht.NI,{key:ve},L.createElement(ht.lX,null," ",R.name,": "),me?L.createElement(uu,nl(rl({},Te),{options:me})):L.createElement(Bn,nl(rl({},Te),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(R.type==="http"){if(R.scheme==="basic"){const me=(0,pt.Al)(ve,"username"),Te={field:`auth.${ve}.username`,fullWidth:!0,initialValue:(0,pt.YQ)(`auth.${ve}.username`)||((N=e==null?void 0:e[ve])==null?void 0:N.username),initValue:(0,pt.YQ)(`auth.${ve}.username`)||((G=e==null?void 0:e[ve])==null?void 0:G.username),validate:ar.np,validateOnBlur:!0,validateOnChange:!0};return L.createElement(L.Fragment,{key:ve},L.createElement(ht.NI,null,L.createElement(ht.lX,null," ",(0,su.l)("tryItAuthBasicUsername"),": "),me?L.createElement(uu,nl(rl({},Te),{options:me})):L.createElement(Bn,nl(rl({},Te),{panel:"try-it"}))),L.createElement(ht.NI,null,L.createElement(ht.lX,null," ",(0,su.l)("tryItAuthBasicPassword"),": "),L.createElement(Bn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${ve}.password`,initialValue:(0,pt.YQ)(`auth.${ve}.password`)||((ee=e==null?void 0:e[ve])==null?void 0:ee.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(R.scheme==="bearer"){const me=(0,pt.Al)(ve,""),Te={field:`auth.${ve}`,fullWidth:!0,initialValue:(0,pt.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),initValue:(0,pt.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),validate:ar.np,validateOnBlur:!0,validateOnChange:!0};return L.createElement(L.Fragment,{key:ve},L.createElement(ht.NI,null,L.createElement(ht.lX,null," Bearer Token: "),me?L.createElement(uu,nl(rl({},Te),{options:me})):L.createElement(Bn,nl(rl({},Te),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(R.type==="oauth2"&&R.flows&&R.flows.clientCredentials)return L.createElement(px,{key:ve,flow:R.flows.clientCredentials,server:n,authCorsProxyUrl:a,id:ve,form:s,formApi:c,clientId:R.flows.clientCredentials["x-defaultClientId"]||R["x-defaultClientId"],defaultValues:e==null?void 0:e[ve]});if(R.type==="oauth2"&&R.flows&&R.flows.implicit)return L.createElement(Cc,{key:ve,authorizationUrl:R.flows.implicit.authorizationUrl,authCorsProxyUrl:a,scopes:Object.keys(((oe=(q=R==null?void 0:R.flows)==null?void 0:q.implicit)==null?void 0:oe.scopes)||{}),server:n,id:ve,form:s,formApi:c,clientId:R.flows.implicit["x-defaultClientId"]||R["x-defaultClientId"],flow:"implicit",defaultValues:e==null?void 0:e[ve]});if(R.type==="oauth2"&&R.flows&&R.flows.authorizationCode)return L.createElement(Cc,{key:ve,authorizationUrl:R.flows.authorizationCode.authorizationUrl,tokenUrl:R.flows.authorizationCode.tokenUrl,authCorsProxyUrl:a,scopes:Object.keys(((ae=R.flows.authorizationCode)==null?void 0:ae.scopes)||{}),server:n,id:ve,form:s,formApi:c,clientId:R.flows.authorizationCode["x-defaultClientId"]||R["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:R.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:R.flows.authorizationCode["x-usePkce"],defaultValues:e==null?void 0:e[ve]});if(R.type==="oauth2"){let me=(0,pt.YQ)(`auth.${ve}.token`)||JSON.stringify((pe=e==null?void 0:e[ve])==null?void 0:pe.token);return me=me?JSON.parse(me):{},L.createElement(L.Fragment,{key:ve},L.createElement(ht.NI,null,L.createElement(ht.lX,null," Access Token Type: "),L.createElement(Bn,{fullWidth:!0,field:`auth.${ve}.token.token_type`,initialValue:me.token_type||"Bearer",panel:"try-it"})),L.createElement(ht.NI,null,L.createElement(ht.lX,null," Access Token: "),L.createElement(Bn,{type:"password",fullWidth:!0,field:`auth.${ve}.token.access_token`,validate:ar.np,initialValue:me.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(R.type==="openIdConnect")return L.createElement(ix,{key:ve,server:n,authCorsProxyUrl:a,id:ve,form:s,formApi:c,scheme:R,clientId:R["x-defaultClientId"],defaultValues:e==null?void 0:e[ve]})}})),L.createElement("small",null,L.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))};var xx=Object.defineProperty,fg=Object.getOwnPropertySymbols,Sx=Object.prototype.hasOwnProperty,wx=Object.prototype.propertyIsEnumerable,cg=(e,r,n)=>r in e?xx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ax=(e,r)=>{for(var n in r||(r={}))Sx.call(r,n)&&cg(e,n,r[n]);if(fg)for(var n of fg(r))wx.call(r,n)&&cg(e,n,r[n]);return e};const Cx=({operation:e,properties:r,securityDefaults:n,form:a,resolvedRawSpec:s,server:c,formApi:p,setFormApi:m,handleChange:v,handleServerChange:y})=>{const b=a.errors||{},I=b.path||b.cookie||b.header||b.query,{hooks:R,authCorsProxyUrl:N}=(0,L.useContext)(Xf.jI),G=s&&pt.IB.get(s,e.pointer);let ee=a.values&&a.values.auth&&Object.keys(a.values.auth)[0];(!ee||!a.values.auth[ee])&&(ee=void 0),ee&&(a.values.auth[ee].token!==void 0||a.values.auth[ee].client_id!==void 0||a.values.auth[ee].client_secret!==void 0)&&(!a.values.auth[ee].token||!a.values.auth[ee].token.access_token)&&(ee=void 0),ee&&a.values.auth[ee].username!=null&&(!a.values.auth[ee].username||!a.values.auth[ee].password)&&(ee=void 0);const q=e.parameters||[];return!s&&L.createElement(L.Fragment,null,"Loading...")||L.createElement(Zm,{onChange:v,getApi:m,style:{flex:1,display:"flex",flexDirection:"column",margin:0}},L.createElement(Fy,{operation:e,onChange:y}),L.createElement(mr.UQ,{initialActiveIdx:e.security.length&&ee?1:0},e.security.length&&p&&L.createElement(Gd,{header:(0,su.l)("tryItAuth"),"data-cy":"security-trigger",error:!ee&&!!b.auth,success:!!ee,renderChildrenHidden:!0},R!=null&&R.ReplaceTryItSecurityPanel?L.createElement(Ex,{field:"auth",validate:ar.np},oe=>L.createElement(vb.Q,{Hook:R==null?void 0:R.ReplaceTryItSecurityPanel,props:{server:c,operation:e,onChange:oe,OAuth2:Di}})):L.createElement(bx,{formApi:p,form:a,operation:e,activeServer:c.url,authCorsProxyUrl:N,securityDefaults:n}))||null,e.requestBody&&p&&L.createElement(Gd,{header:(0,su.l)("tryItBody"),"data-cy":"body-trigger",error:!!b.body,renderChildrenHidden:!0},L.createElement(hb,{validate:Ox,formApi:p,body:e.requestBody,id:e.id,resolvedBody:G==null?void 0:G.requestBody,properties:r}))||null,q.length&&L.createElement(Gd,{header:(0,su.l)("tryItParameters"),"data-cy":"parameters-trigger",error:I,renderChildrenHidden:!0},L.createElement(Ob,{operation:e,values:a.values,errors:a.errors||{}}))||null))};function Ex(e){const{fieldApi:r,render:n,userProps:a}=au(Ax({},e)),{setValue:s}=r,{children:c}=a;return n(L.createElement(L.Fragment,null,c(s)))}function Ox(){}const Tx=(0,A.Pi)(Cx);var dg=o(39448);const Px=e=>{const{shaking:r,className:n,children:a,rootElement:s}=e,[c]=(0,dg.B)(s),p=(0,L.useContext)(Xf.xf);return L.createElement(Nn.q2,{scrollYOffset:p==null?void 0:p.options.scrollYOffset,shaking:r,className:n,"data-cy":"console",fullWidth:c==null?void 0:c.width},a)},Ix=(0,A.Pi)(Px);var Fx=Object.defineProperty,kx=Object.defineProperties,Rx=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,pg=Object.prototype.hasOwnProperty,hg=Object.prototype.propertyIsEnumerable,vg=(e,r,n)=>r in e?Fx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,on=(e,r)=>{for(var n in r||(r={}))pg.call(r,n)&&vg(e,n,r[n]);if(Ec)for(var n of Ec(r))hg.call(r,n)&&vg(e,n,r[n]);return e},ei=(e,r)=>kx(e,Rx(r)),gg=(e,r)=>{var n={};for(var a in e)pg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Ec)for(var a of Ec(e))r.indexOf(a)<0&&hg.call(e,a)&&(n[a]=e[a]);return n},mg=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{m(n.next(v))}catch(y){s(y)}},p=v=>{try{m(n.throw(v))}catch(y){s(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function yg(e){return e.startsWith("//")?"https:"+e:e}const bg=({operation:e,store:r,onResponse:n,className:a,rootElement:s,properties:c,securityDefaults:p,onClose:m})=>{let v=(0,L.useRef)();const[y,b]=(0,L.useState)(e.activeServer),[I,R]=(0,L.useState)(0),[N,G]=(0,L.useState)(!1),[ee,q]=(0,L.useState)(!1),[oe,ae]=(0,L.useState)({values:{path:(0,ar.ZS)(e.parameters,"path"),cookie:(0,ar.ZS)(e.parameters,"cookie"),header:(0,ar.ZS)(e.parameters,"header"),query:(0,ar.ZS)(e.parameters,"query")}}),[pe,ve]=(0,L.useState)(),[me,Te]=(0,L.useState)(),[Ae,Se]=(0,L.useState)(),[Ce,Fe]=(0,L.useState)(),Re=(0,dg.D)(e),Ue=(jt,fr=jt.getState())=>{var $t=fr,{values:cr}=$t,wr=gg($t,["values"]);v.current=jt,setTimeout(()=>{ae(ei(on({},wr),{values:ei(on({},cr),{query:(0,ar.FU)(cr.query||{})})}))},0)},ze=(0,L.useCallback)(jt=>{var fr=jt,{values:$t}=fr,cr=gg(fr,["values"]);const wr=ei(on({},cr),{values:ei(on({},$t),{query:(0,ar.FU)($t.query||{})})});ae(wr),(0,ar.Hc)(wr),e.setRequestValues($t)},[e]),Ct=jt=>{R(jt)},qe=jt=>{b(jt),e.setActiveServer(jt)},nr=()=>mg(void 0,null,function*(){var jt,fr,$t,cr,wr,Ut,ft,Ot,Zt;const{values:Wt,invalid:Kt}=((jt=v==null?void 0:v.current)==null?void 0:jt.getState())||oe||{};if((fr=v.current)==null||fr.submitForm(),Kt){q(!0),setTimeout(()=>q(!1),1e3),(cr=($t=r==null?void 0:r.options.events)==null?void 0:$t.tryItSent)==null||cr.call($t,{eventType:Ks.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description});return}const{servers:qr,requestBody:Un}=e,pi=Un&&Un.content&&Un.content.active&&Un.content.active.name||"";let Vr=Wt.body;if(/json/.test(pi))try{Vr=JSON.parse(Vr)}catch(qt){console.error(qt)}G(!0);const sn=pe,Jo=(e.httpVerb||"").toLowerCase();if(!qr)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 Fn=qr.find(qt=>y.url.endsWith(qt.url.endsWith("/")?qt.url.substring(0,qt.url.length-1):qt.url)),Xo=Date.now(),cp=!!window.document.documentMode;let ji,Vi=Wt.auth;if(Wt.auth){const qt=Object.keys(Wt.auth)[0],En=(0,pt.dw)(qt);ji=ei(on({},sn),{components:ei(on({},sn==null?void 0:sn.components),{securitySchemes:ei(on({},sn==null?void 0:sn.components.securitySchemes),{[En]:ei(on({},sn==null?void 0:sn.components.securitySchemes[En]),{type:(sn==null?void 0:sn.components.securitySchemes[En].type)==="openIdConnect"?"oauth2":sn==null?void 0:sn.components.securitySchemes[En].type})})})}),Vi=ei(on({},Vi),{[En]:Vi[qt]})}else ji=on({},sn);ji.servers=qr;const Oa=r.options.corsProxyUrl;Oa&&qr.length&&(ji.servers=qr.map(qt=>ei(on({},qt),{url:Oa+yg(qt.url)})),ji.paths=ei(on({},ji.paths),{[e.path]:ei(on({},ji.paths[e.path]),{[Jo]:ei(on({},ji.paths[e.path][Jo]),{servers:void 0}),servers:void 0})}));const il=((Ut=(wr=Un==null?void 0:Un.content)==null?void 0:wr.active)==null?void 0:Ut.name)||null;if(il&&Vr&&ro(il)){const qt=Object.values(Vr);Vr=qt.length>1?qt:qt[0]}const xu={userFetch:cp&&o(96279).fetch,server:Oa?Oa+yg(Fn.url):Fn.url,serverVariables:Fn.variables,spec:ji,pathName:e.path,method:e.httpVerb,parameters:on(on(on(on({},Wt.path),Wt.query),Wt.header),Wt.cookie),securities:{authorized:Vi},requestBody:Vr,requestContentType:il,responseContentType:((ft=Wt.header)==null?void 0:ft.Accept)||null,requestInterceptor:(0,ar.Tz)(r.options,e,Vi==null?void 0:Vi.Authorization)};try{const qt=yield hn.execute(xu),En=qt==null?void 0:qt.data;En instanceof Blob&&(ro(En.type)&&(qt.fileInfo={rawData:En,fileName:(0,ar.AM)(qt.headers)}),qt.data=yield En.text()),n==null||n({request:xu,response:qt}),Fe(qt),Se(void 0)}catch(qt){qt&&qt.response&&qt.response.data instanceof Blob&&(qt.response.data=yield qt.response.data.text(),n==null||n({request:xu,response:qt.response})),Fe(void 0),Se(qt)}finally{G(!1),R(1),Te(Date.now()-Xo),(Zt=(Ot=r==null?void 0:r.options.events)==null?void 0:Ot.tryItSent)==null||Zt.call(Ot,{eventType:Ks.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description})}});(0,Bt.useMount)(()=>mg(void 0,null,function*(){var jt;const fr=yield r.dereferenceSpecForTryIt(e);ve(fr),(jt=v.current)==null||jt.setValues({})})),(0,L.useEffect)(()=>{Re!==e&&(Fe(void 0),Se(void 0),R(0))},[e,Re]);const ur=!!(Ce||Ae);return L.createElement(Ix,{shaking:ee,className:a,rootElement:s},L.createElement(mr.Hc,null,L.createElement(Vg,{active:I,hasResponse:ur,onChange:Ct}),m&&L.createElement(Nn.PZ,{onClick:m}," \u2715 ")),L.createElement(Nn.RE,{hidden:I!==0,"data-cy":"console-request-body"},L.createElement(Tx,{operation:e,properties:c,securityDefaults:p,form:oe,resolvedRawSpec:pe,server:y,formApi:v.current,setFormApi:Ue,handleChange:ze,handleServerChange:qe})),L.createElement(Nn.RE,{hidden:I!==1,"data-cy":"console-response-body"},L.createElement(Bg,{response:Ce,error:Ae,time:me}),";"),L.createElement(zg,{hasResponse:ur,params:oe.values,operation:e,loading:N,execute:nr}))},Mx=(0,A.Pi)(bg)},37795:h=>{"use strict";var E="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,d=Object.prototype.toString,x="[object Function]";h.exports=function(A){var O=this;if(typeof O!="function"||d.call(O)!==x)throw new TypeError(E+O);for(var k=o.call(arguments,1),U,Z=function(){if(this instanceof U){var Y=O.apply(this,k.concat(o.call(arguments)));return Object(Y)===Y?Y:this}else return O.apply(A,k.concat(o.call(arguments)))},re=Math.max(0,O.length-k.length),ue=[],ne=0;ne<re;ne++)ue.push("$"+ne);if(U=Function("binder","return function ("+ue.join(",")+"){ return binder.apply(this,arguments); }")(Z),O.prototype){var ie=function(){};ie.prototype=O.prototype,U.prototype=new ie,ie.prototype=null}return U}},4090:(h,E,o)=>{"use strict";var d=o(37795);h.exports=Function.prototype.bind||d},67286:(h,E,o)=>{"use strict";var d,x=SyntaxError,w=Function,A=TypeError,O=function(he){try{return w('"use strict"; return ('+he+").constructor;")()}catch(_){}},k=Object.getOwnPropertyDescriptor;if(k)try{k({},"")}catch(he){k=null}var U=function(){throw new A},Z=k?function(){try{return arguments.callee,U}catch(he){try{return k(arguments,"callee").get}catch(_){return U}}}():U,re=o(32636)(),ue=Object.getPrototypeOf||function(he){return he.__proto__},ne={},ie=typeof Uint8Array=="undefined"?d:ue(Uint8Array),Y={"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":re?ue([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%Atomics%":typeof Atomics=="undefined"?d:Atomics,"%BigInt%":typeof BigInt=="undefined"?d:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?d:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?d:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":ne,"%Int8Array%":typeof Int8Array=="undefined"?d:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?d:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re?ue(ue([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!re?d:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?d:Promise,"%Proxy%":typeof Proxy=="undefined"?d:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?d:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!re?d:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re?ue(""[Symbol.iterator]()):d,"%Symbol%":re?Symbol:d,"%SyntaxError%":x,"%ThrowTypeError%":Z,"%TypedArray%":ie,"%TypeError%":A,"%Uint8Array%":typeof Uint8Array=="undefined"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?d:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?d:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?d:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?d:WeakSet},P=function he(_){var Q;if(_==="%AsyncFunction%")Q=O("async function () {}");else if(_==="%GeneratorFunction%")Q=O("function* () {}");else if(_==="%AsyncGeneratorFunction%")Q=O("async function* () {}");else if(_==="%AsyncGenerator%"){var z=he("%AsyncGeneratorFunction%");z&&(Q=z.prototype)}else if(_==="%AsyncIteratorPrototype%"){var ge=he("%AsyncGenerator%");ge&&(Q=ue(ge.prototype))}return Y[_]=Q,Q},$={"%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"]},D=o(4090),C=o(23198),F=D.call(Function.call,Array.prototype.concat),V=D.call(Function.apply,Array.prototype.splice),X=D.call(Function.call,String.prototype.replace),K=D.call(Function.call,String.prototype.slice),W=D.call(Function.call,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,H=function(_){var Q=K(_,0,1),z=K(_,-1);if(Q==="%"&&z!=="%")throw new x("invalid intrinsic syntax, expected closing `%`");if(z==="%"&&Q!=="%")throw new x("invalid intrinsic syntax, expected opening `%`");var ge=[];return X(_,te,function(Ee,je,ke,it){ge[ge.length]=ke?X(it,J,"$1"):je||Ee}),ge},fe=function(_,Q){var z=_,ge;if(C($,z)&&(ge=$[z],z="%"+ge[0]+"%"),C(Y,z)){var Ee=Y[z];if(Ee===ne&&(Ee=P(z)),typeof Ee=="undefined"&&!Q)throw new A("intrinsic "+_+" exists, but is not available. Please file an issue!");return{alias:ge,name:z,value:Ee}}throw new x("intrinsic "+_+" does not exist!")};h.exports=function(_,Q){if(typeof _!="string"||_.length===0)throw new A("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Q!="boolean")throw new A('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,_)===null)throw new x("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var z=H(_),ge=z.length>0?z[0]:"",Ee=fe("%"+ge+"%",Q),je=Ee.name,ke=Ee.value,it=!1,et=Ee.alias;et&&(ge=et[0],V(z,F([0,1],et)));for(var at=1,Tt=!0;at<z.length;at+=1){var St=z[at],Le=K(St,0,1),Oe=K(St,-1);if((Le==='"'||Le==="'"||Le==="`"||Oe==='"'||Oe==="'"||Oe==="`")&&Le!==Oe)throw new x("property names with quotes must have matching quotes");if((St==="constructor"||!Tt)&&(it=!0),ge+="."+St,je="%"+ge+"%",C(Y,je))ke=Y[je];else if(ke!=null){if(!(St in ke)){if(!Q)throw new A("base intrinsic for "+_+" exists, but the property is not available.");return}if(k&&at+1>=z.length){var be=k(ke,St);Tt=!!be,Tt&&"get"in be&&!("originalValue"in be.get)?ke=be.get:ke=ke[St]}else Tt=C(ke,St),ke=ke[St];Tt&&!it&&(Y[je]=ke)}}return ke}},32636:(h,E,o)=>{"use strict";var d=typeof Symbol!="undefined"&&Symbol,x=o(66679);h.exports=function(){return typeof d!="function"||typeof Symbol!="function"||typeof d("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x()}},66679:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},d=Symbol("test"),x=Object(d);if(typeof d=="string"||Object.prototype.toString.call(d)!=="[object Symbol]"||Object.prototype.toString.call(x)!=="[object Symbol]")return!1;var w=42;o[d]=w;for(d in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var A=Object.getOwnPropertySymbols(o);if(A.length!==1||A[0]!==d||!Object.prototype.propertyIsEnumerable.call(o,d))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var O=Object.getOwnPropertyDescriptor(o,d);if(O.value!==w||O.enumerable!==!0)return!1}return!0}},23198:(h,E,o)=>{"use strict";var d=o(4090);h.exports=d.call(Function.call,Object.prototype.hasOwnProperty)},89612:(h,E,o)=>{var d=o(52118),x=o(96909),w=o(98138),A=o(4174),O=o(7942);function k(U){var Z=-1,re=U==null?0:U.length;for(this.clear();++Z<re;){var ue=U[Z];this.set(ue[0],ue[1])}}k.prototype.clear=d,k.prototype.delete=x,k.prototype.get=w,k.prototype.has=A,k.prototype.set=O,h.exports=k},80235:(h,E,o)=>{var d=o(3945),x=o(21846),w=o(88028),A=o(72344),O=o(94769);function k(U){var Z=-1,re=U==null?0:U.length;for(this.clear();++Z<re;){var ue=U[Z];this.set(ue[0],ue[1])}}k.prototype.clear=d,k.prototype.delete=x,k.prototype.get=w,k.prototype.has=A,k.prototype.set=O,h.exports=k},10326:(h,E,o)=>{var d=o(38761),x=o(37772),w=d(x,"Map");h.exports=w},96738:(h,E,o)=>{var d=o(92411),x=o(36417),w=o(86928),A=o(79493),O=o(24150);function k(U){var Z=-1,re=U==null?0:U.length;for(this.clear();++Z<re;){var ue=U[Z];this.set(ue[0],ue[1])}}k.prototype.clear=d,k.prototype.delete=x,k.prototype.get=w,k.prototype.has=A,k.prototype.set=O,h.exports=k},50857:(h,E,o)=>{var d=o(37772),x=d.Symbol;h.exports=x},50343:h=>{function E(o,d){for(var x=-1,w=o==null?0:o.length,A=Array(w);++x<w;)A[x]=d(o[x],x,o);return A}h.exports=E},22218:(h,E,o)=>{var d=o(41225);function x(w,A){for(var O=w.length;O--;)if(d(w[O][0],A))return O;return-1}h.exports=x},13324:(h,E,o)=>{var d=o(17297),x=o(33812);function w(A,O){O=d(O,A);for(var k=0,U=O.length;A!=null&&k<U;)A=A[x(O[k++])];return k&&k==U?A:void 0}h.exports=w},53366:(h,E,o)=>{var d=o(50857),x=o(62107),w=o(37157),A="[object Null]",O="[object Undefined]",k=d?d.toStringTag:void 0;function U(Z){return Z==null?Z===void 0?O:A:k&&k in Object(Z)?x(Z):w(Z)}h.exports=U},6840:(h,E,o)=>{var d=o(61049),x=o(47394),w=o(29259),A=o(87035),O=/[\\^$.*+?()[\]{}|]/g,k=/^\[object .+?Constructor\]$/,U=Function.prototype,Z=Object.prototype,re=U.toString,ue=Z.hasOwnProperty,ne=RegExp("^"+re.call(ue).replace(O,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ie(Y){if(!w(Y)||x(Y))return!1;var P=d(Y)?ne:k;return P.test(A(Y))}h.exports=ie},1054:(h,E,o)=>{var d=o(50857),x=o(50343),w=o(86152),A=o(4795),O=1/0,k=d?d.prototype:void 0,U=k?k.toString:void 0;function Z(re){if(typeof re=="string")return re;if(w(re))return x(re,Z)+"";if(A(re))return U?U.call(re):"";var ue=re+"";return ue=="0"&&1/re==-O?"-0":ue}h.exports=Z},17297:(h,E,o)=>{var d=o(86152),x=o(21401),w=o(54452),A=o(66188);function O(k,U){return d(k)?k:x(k,U)?[k]:w(A(k))}h.exports=O},24019:(h,E,o)=>{var d=o(37772),x=d["__core-js_shared__"];h.exports=x},51242:(h,E,o)=>{var d=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;h.exports=d},27937:(h,E,o)=>{var d=o(98304);function x(w,A){var O=w.__data__;return d(A)?O[typeof A=="string"?"string":"hash"]:O.map}h.exports=x},38761:(h,E,o)=>{var d=o(6840),x=o(98109);function w(A,O){var k=x(A,O);return d(k)?k:void 0}h.exports=w},62107:(h,E,o)=>{var d=o(50857),x=Object.prototype,w=x.hasOwnProperty,A=x.toString,O=d?d.toStringTag:void 0;function k(U){var Z=w.call(U,O),re=U[O];try{U[O]=void 0;var ue=!0}catch(ie){}var ne=A.call(U);return ue&&(Z?U[O]=re:delete U[O]),ne}h.exports=k},98109:h=>{function E(o,d){return o==null?void 0:o[d]}h.exports=E},52118:(h,E,o)=>{var d=o(99191);function x(){this.__data__=d?d(null):{},this.size=0}h.exports=x},96909:h=>{function E(o){var d=this.has(o)&&delete this.__data__[o];return this.size-=d?1:0,d}h.exports=E},98138:(h,E,o)=>{var d=o(99191),x="__lodash_hash_undefined__",w=Object.prototype,A=w.hasOwnProperty;function O(k){var U=this.__data__;if(d){var Z=U[k];return Z===x?void 0:Z}return A.call(U,k)?U[k]:void 0}h.exports=O},4174:(h,E,o)=>{var d=o(99191),x=Object.prototype,w=x.hasOwnProperty;function A(O){var k=this.__data__;return d?k[O]!==void 0:w.call(k,O)}h.exports=A},7942:(h,E,o)=>{var d=o(99191),x="__lodash_hash_undefined__";function w(A,O){var k=this.__data__;return this.size+=this.has(A)?0:1,k[A]=d&&O===void 0?x:O,this}h.exports=w},21401:(h,E,o)=>{var d=o(86152),x=o(4795),w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/;function O(k,U){if(d(k))return!1;var Z=typeof k;return Z=="number"||Z=="symbol"||Z=="boolean"||k==null||x(k)?!0:A.test(k)||!w.test(k)||U!=null&&k in Object(U)}h.exports=O},98304:h=>{function E(o){var d=typeof o;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?o!=="__proto__":o===null}h.exports=E},47394:(h,E,o)=>{var d=o(24019),x=function(){var A=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();function w(A){return!!x&&x in A}h.exports=w},3945:h=>{function E(){this.__data__=[],this.size=0}h.exports=E},21846:(h,E,o)=>{var d=o(22218),x=Array.prototype,w=x.splice;function A(O){var k=this.__data__,U=d(k,O);if(U<0)return!1;var Z=k.length-1;return U==Z?k.pop():w.call(k,U,1),--this.size,!0}h.exports=A},88028:(h,E,o)=>{var d=o(22218);function x(w){var A=this.__data__,O=d(A,w);return O<0?void 0:A[O][1]}h.exports=x},72344:(h,E,o)=>{var d=o(22218);function x(w){return d(this.__data__,w)>-1}h.exports=x},94769:(h,E,o)=>{var d=o(22218);function x(w,A){var O=this.__data__,k=d(O,w);return k<0?(++this.size,O.push([w,A])):O[k][1]=A,this}h.exports=x},92411:(h,E,o)=>{var d=o(89612),x=o(80235),w=o(10326);function A(){this.size=0,this.__data__={hash:new d,map:new(w||x),string:new d}}h.exports=A},36417:(h,E,o)=>{var d=o(27937);function x(w){var A=d(this,w).delete(w);return this.size-=A?1:0,A}h.exports=x},86928:(h,E,o)=>{var d=o(27937);function x(w){return d(this,w).get(w)}h.exports=x},79493:(h,E,o)=>{var d=o(27937);function x(w){return d(this,w).has(w)}h.exports=x},24150:(h,E,o)=>{var d=o(27937);function x(w,A){var O=d(this,w),k=O.size;return O.set(w,A),this.size+=O.size==k?0:1,this}h.exports=x},77777:(h,E,o)=>{var d=o(30733),x=500;function w(A){var O=d(A,function(U){return k.size===x&&k.clear(),U}),k=O.cache;return O}h.exports=w},99191:(h,E,o)=>{var d=o(38761),x=d(Object,"create");h.exports=x},37157:h=>{var E=Object.prototype,o=E.toString;function d(x){return o.call(x)}h.exports=d},37772:(h,E,o)=>{var d=o(51242),x=typeof self=="object"&&self&&self.Object===Object&&self,w=d||x||Function("return this")();h.exports=w},54452:(h,E,o)=>{var d=o(77777),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/\\(\\)?/g,A=d(function(O){var k=[];return O.charCodeAt(0)===46&&k.push(""),O.replace(x,function(U,Z,re,ue){k.push(re?ue.replace(w,"$1"):Z||U)}),k});h.exports=A},33812:(h,E,o)=>{var d=o(4795),x=1/0;function w(A){if(typeof A=="string"||d(A))return A;var O=A+"";return O=="0"&&1/A==-x?"-0":O}h.exports=w},87035:h=>{var E=Function.prototype,o=E.toString;function d(x){if(x!=null){try{return o.call(x)}catch(w){}try{return x+""}catch(w){}}return""}h.exports=d},41225:h=>{function E(o,d){return o===d||o!==o&&d!==d}h.exports=E},72579:(h,E,o)=>{var d=o(13324);function x(w,A,O){var k=w==null?void 0:d(w,A);return k===void 0?O:k}h.exports=x},86152:h=>{var E=Array.isArray;h.exports=E},61049:(h,E,o)=>{var d=o(53366),x=o(29259),w="[object AsyncFunction]",A="[object Function]",O="[object GeneratorFunction]",k="[object Proxy]";function U(Z){if(!x(Z))return!1;var re=d(Z);return re==A||re==O||re==w||re==k}h.exports=U},29259:h=>{function E(o){var d=typeof o;return o!=null&&(d=="object"||d=="function")}h.exports=E},15125:h=>{function E(o){return o!=null&&typeof o=="object"}h.exports=E},4795:(h,E,o)=>{var d=o(53366),x=o(15125),w="[object Symbol]";function A(O){return typeof O=="symbol"||x(O)&&d(O)==w}h.exports=A},30733:(h,E,o)=>{var d=o(96738),x="Expected a function";function w(A,O){if(typeof A!="function"||O!=null&&typeof O!="function")throw new TypeError(x);var k=function(){var U=arguments,Z=O?O.apply(this,U):U[0],re=k.cache;if(re.has(Z))return re.get(Z);var ue=A.apply(this,U);return k.cache=re.set(Z,ue)||re,ue};return k.cache=new(w.Cache||d),k}w.Cache=d,h.exports=w},66188:(h,E,o)=>{var d=o(1054);function x(w){return w==null?"":d(w)}h.exports=x},99500:(h,E,o)=>{var d=typeof Map=="function"&&Map.prototype,x=Object.getOwnPropertyDescriptor&&d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,w=d&&x&&typeof x.get=="function"?x.get:null,A=d&&Map.prototype.forEach,O=typeof Set=="function"&&Set.prototype,k=Object.getOwnPropertyDescriptor&&O?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,U=O&&k&&typeof k.get=="function"?k.get:null,Z=O&&Set.prototype.forEach,re=typeof WeakMap=="function"&&WeakMap.prototype,ue=re?WeakMap.prototype.has:null,ne=typeof WeakSet=="function"&&WeakSet.prototype,ie=ne?WeakSet.prototype.has:null,Y=typeof WeakRef=="function"&&WeakRef.prototype,P=Y?WeakRef.prototype.deref:null,$=Boolean.prototype.valueOf,D=Object.prototype.toString,C=Function.prototype.toString,F=String.prototype.match,V=String.prototype.slice,X=String.prototype.replace,K=String.prototype.toUpperCase,W=String.prototype.toLowerCase,te=RegExp.prototype.test,J=Array.prototype.concat,H=Array.prototype.join,fe=Array.prototype.slice,he=Math.floor,_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Q=Object.getOwnPropertySymbols,z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ge=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ee=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ge?"object":"symbol")?Symbol.toStringTag:null,je=Object.prototype.propertyIsEnumerable,ke=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ce){return ce.__proto__}:null);function it(ce,xe){if(ce===1/0||ce===-1/0||ce!==ce||ce&&ce>-1e3&&ce<1e3||te.call(/e/,xe))return xe;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ce=="number"){var Ke=ce<0?-he(-ce):he(ce);if(Ke!==ce){var st=String(Ke),xt=V.call(xe,st.length+1);return X.call(st,Be,"$&_")+"."+X.call(X.call(xt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return X.call(xe,Be,"$&_")}var et=o(53260),at=et.custom,Tt=Et(at)?at:null;h.exports=function ce(xe,Be,Ke,st){var xt=Be||{};if(nt(xt,"quoteStyle")&&xt.quoteStyle!=="single"&&xt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(nt(xt,"maxStringLength")&&(typeof xt.maxStringLength=="number"?xt.maxStringLength<0&&xt.maxStringLength!==1/0:xt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var kt=nt(xt,"customInspect")?xt.customInspect:!0;if(typeof kt!="boolean"&&kt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(nt(xt,"indent")&&xt.indent!==null&&xt.indent!==" "&&!(parseInt(xt.indent,10)===xt.indent&&xt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(nt(xt,"numericSeparator")&&typeof xt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var yr=xt.numericSeparator;if(typeof xe=="undefined")return"undefined";if(xe===null)return"null";if(typeof xe=="boolean")return xe?"true":"false";if(typeof xe=="string")return yt(xe,xt);if(typeof xe=="number"){if(xe===0)return 1/0/xe>0?"0":"-0";var Nt=String(xe);return yr?it(xe,Nt):Nt}if(typeof xe=="bigint"){var Yt=String(xe)+"n";return yr?it(xe,Yt):Yt}var zn=typeof xt.depth=="undefined"?5:xt.depth;if(typeof Ke=="undefined"&&(Ke=0),Ke>=zn&&zn>0&&typeof xe=="object")return Oe(xe)?"[Array]":"[Object]";var Ur=Pt(xt,Ke);if(typeof st=="undefined")st=[];else if(Rt(st,xe)>=0)return"[Circular]";function Kr(fn,Cr,yi){if(Cr&&(st=fe.call(st),st.push(Cr)),yi){var kn={depth:xt.depth};return nt(xt,"quoteStyle")&&(kn.quoteStyle=xt.quoteStyle),ce(fn,kn,Ke+1,st)}return ce(fn,xt,Ke+1,st)}if(typeof xe=="function"&&!De(xe)){var vi=er(xe),tn=Ve(xe,Kr);return"[Function"+(vi?": "+vi:" (anonymous)")+"]"+(tn.length>0?" { "+H.call(tn,", ")+" }":"")}if(Et(xe)){var gi=ge?X.call(String(xe),/^(Symbol\(.*\))_[^)]*$/,"$1"):z.call(xe);return typeof xe=="object"&&!ge?wt(gi):gi}if($e(xe)){for(var mi="<"+W.call(String(xe.nodeName)),rn=xe.attributes||[],xr=0;xr<rn.length;xr++)mi+=" "+rn[xr].name+"="+St(Le(rn[xr].value),"double",xt);return mi+=">",xe.childNodes&&xe.childNodes.length&&(mi+="..."),mi+="</"+W.call(String(xe.nodeName))+">",mi}if(Oe(xe)){if(xe.length===0)return"[]";var Gn=Ve(xe,Kr);return Ur&&!vt(Gn)?"["+ot(Gn,Ur)+"]":"[ "+H.call(Gn,", ")+" ]"}if(Ge(xe)){var Ui=Ve(xe,Kr);return!("cause"in Error.prototype)&&"cause"in xe&&!je.call(xe,"cause")?"{ ["+String(xe)+"] "+H.call(J.call("[cause]: "+Kr(xe.cause),Ui),", ")+" }":Ui.length===0?"["+String(xe)+"]":"{ ["+String(xe)+"] "+H.call(Ui,", ")+" }"}if(typeof xe=="object"&&kt){if(Tt&&typeof xe[Tt]=="function"&&et)return et(xe,{depth:zn-Ke});if(kt!=="symbol"&&typeof xe.inspect=="function")return xe.inspect()}if(Rr(xe)){var Wi=[];return A.call(xe,function(fn,Cr){Wi.push(Kr(Cr,xe,!0)+" => "+Kr(fn,xe))}),dt("Map",w.call(xe),Wi,Ur)}if(Ar(xe)){var gn=[];return Z.call(xe,function(fn){gn.push(Kr(fn,xe))}),dt("Set",U.call(xe),gn,Ur)}if(_e(xe))return Ft("WeakMap");if(en(xe))return Ft("WeakSet");if(Mr(xe))return Ft("WeakRef");if(Ze(xe))return wt(Kr(Number(xe)));if(Xt(xe))return wt(Kr(_.call(xe)));if(bt(xe))return wt($.call(xe));if(tt(xe))return wt(Kr(String(xe)));if(!be(xe)&&!De(xe)){var un=Ve(xe,Kr),mn=ke?ke(xe)===Object.prototype:xe instanceof Object||xe.constructor===Object,yn=xe instanceof Object?"":"null prototype",On=!mn&&Ee&&Object(xe)===xe&&Ee in xe?V.call(Xe(xe),8,-1):yn?"Object":"",lo=mn||typeof xe.constructor!="function"?"":xe.constructor.name?xe.constructor.name+" ":"",$n=lo+(On||yn?"["+H.call(J.call([],On||[],yn||[]),": ")+"] ":"");return un.length===0?$n+"{}":Ur?$n+"{"+ot(un,Ur)+"}":$n+"{ "+H.call(un,", ")+" }"}return String(xe)};function St(ce,xe,Be){var Ke=(Be.quoteStyle||xe)==="double"?'"':"'";return Ke+ce+Ke}function Le(ce){return X.call(String(ce),/"/g,"&quot;")}function Oe(ce){return Xe(ce)==="[object Array]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function be(ce){return Xe(ce)==="[object Date]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function De(ce){return Xe(ce)==="[object RegExp]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function Ge(ce){return Xe(ce)==="[object Error]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function tt(ce){return Xe(ce)==="[object String]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function Ze(ce){return Xe(ce)==="[object Number]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function bt(ce){return Xe(ce)==="[object Boolean]"&&(!Ee||!(typeof ce=="object"&&Ee in ce))}function Et(ce){if(ge)return ce&&typeof ce=="object"&&ce instanceof Symbol;if(typeof ce=="symbol")return!0;if(!ce||typeof ce!="object"||!z)return!1;try{return z.call(ce),!0}catch(xe){}return!1}function Xt(ce){if(!ce||typeof ce!="object"||!_)return!1;try{return _.call(ce),!0}catch(xe){}return!1}var zt=Object.prototype.hasOwnProperty||function(ce){return ce in this};function nt(ce,xe){return zt.call(ce,xe)}function Xe(ce){return D.call(ce)}function er(ce){if(ce.name)return ce.name;var xe=F.call(C.call(ce),/^function\s*([\w$]+)/);return xe?xe[1]:null}function Rt(ce,xe){if(ce.indexOf)return ce.indexOf(xe);for(var Be=0,Ke=ce.length;Be<Ke;Be++)if(ce[Be]===xe)return Be;return-1}function Rr(ce){if(!w||!ce||typeof ce!="object")return!1;try{w.call(ce);try{U.call(ce)}catch(xe){return!0}return ce instanceof Map}catch(xe){}return!1}function _e(ce){if(!ue||!ce||typeof ce!="object")return!1;try{ue.call(ce,ue);try{ie.call(ce,ie)}catch(xe){return!0}return ce instanceof WeakMap}catch(xe){}return!1}function Mr(ce){if(!P||!ce||typeof ce!="object")return!1;try{return P.call(ce),!0}catch(xe){}return!1}function Ar(ce){if(!U||!ce||typeof ce!="object")return!1;try{U.call(ce);try{w.call(ce)}catch(xe){return!0}return ce instanceof Set}catch(xe){}return!1}function en(ce){if(!ie||!ce||typeof ce!="object")return!1;try{ie.call(ce,ie);try{ue.call(ce,ue)}catch(xe){return!0}return ce instanceof WeakSet}catch(xe){}return!1}function $e(ce){return!ce||typeof ce!="object"?!1:typeof HTMLElement!="undefined"&&ce instanceof HTMLElement?!0:typeof ce.nodeName=="string"&&typeof ce.getAttribute=="function"}function yt(ce,xe){if(ce.length>xe.maxStringLength){var Be=ce.length-xe.maxStringLength,Ke="... "+Be+" more character"+(Be>1?"s":"");return yt(V.call(ce,0,xe.maxStringLength),xe)+Ke}var st=X.call(X.call(ce,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Lt);return St(st,"single",xe)}function Lt(ce){var xe=ce.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[xe];return Be?"\\"+Be:"\\x"+(xe<16?"0":"")+K.call(xe.toString(16))}function wt(ce){return"Object("+ce+")"}function Ft(ce){return ce+" { ? }"}function dt(ce,xe,Be,Ke){var st=Ke?ot(Be,Ke):H.call(Be,", ");return ce+" ("+xe+") {"+st+"}"}function vt(ce){for(var xe=0;xe<ce.length;xe++)if(Rt(ce[xe],`
505
+ `)>=0)return!1;return!0}function Pt(ce,xe){var Be;if(ce.indent===" ")Be=" ";else if(typeof ce.indent=="number"&&ce.indent>0)Be=H.call(Array(ce.indent+1)," ");else return null;return{base:Be,prev:H.call(Array(xe+1),Be)}}function ot(ce,xe){if(ce.length===0)return"";var Be=`
506
+ `+xe.prev+xe.base;return Be+H.call(ce,","+Be)+`
507
+ `+xe.prev}function Ve(ce,xe){var Be=Oe(ce),Ke=[];if(Be){Ke.length=ce.length;for(var st=0;st<ce.length;st++)Ke[st]=nt(ce,st)?xe(ce[st],ce):""}var xt=typeof Q=="function"?Q(ce):[],kt;if(ge){kt={};for(var yr=0;yr<xt.length;yr++)kt["$"+xt[yr]]=xt[yr]}for(var Nt in ce)!nt(ce,Nt)||Be&&String(Number(Nt))===Nt&&Nt<ce.length||ge&&kt["$"+Nt]instanceof Symbol||(te.call(/[^\w$]/,Nt)?Ke.push(xe(Nt,ce)+": "+xe(ce[Nt],ce)):Ke.push(Nt+": "+xe(ce[Nt],ce)));if(typeof Q=="function")for(var Yt=0;Yt<xt.length;Yt++)je.call(ce,xt[Yt])&&Ke.push("["+xe(xt[Yt])+"]: "+xe(ce[xt[Yt]],ce));return Ke}},85527:h=>{"use strict";var E=String.prototype.replace,o=/%20/g,d={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:d.RFC3986,formatters:{RFC1738:function(x){return E.call(x,o,"+")},RFC3986:function(x){return String(x)}},RFC1738:d.RFC1738,RFC3986:d.RFC3986}},37794:(h,E,o)=>{"use strict";var d=o(66845),x=o(29166),w=o(85527);h.exports={formats:w,parse:x,stringify:d}},29166:(h,E,o)=>{"use strict";var d=o(12493),x=Object.prototype.hasOwnProperty,w=Array.isArray,A={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:d.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},O=function(Y){return Y.replace(/&#(\d+);/g,function(P,$){return String.fromCharCode(parseInt($,10))})},k=function(Y,P){return Y&&typeof Y=="string"&&P.comma&&Y.indexOf(",")>-1?Y.split(","):Y},U="utf8=%26%2310003%3B",Z="utf8=%E2%9C%93",re=function(P,$){var D={},C=$.ignoreQueryPrefix?P.replace(/^\?/,""):P,F=$.parameterLimit===1/0?void 0:$.parameterLimit,V=C.split($.delimiter,F),X=-1,K,W=$.charset;if($.charsetSentinel)for(K=0;K<V.length;++K)V[K].indexOf("utf8=")===0&&(V[K]===Z?W="utf-8":V[K]===U&&(W="iso-8859-1"),X=K,K=V.length);for(K=0;K<V.length;++K)if(K!==X){var te=V[K],J=te.indexOf("]="),H=J===-1?te.indexOf("="):J+1,fe,he;H===-1?(fe=$.decoder(te,A.decoder,W,"key"),he=$.strictNullHandling?null:""):(fe=$.decoder(te.slice(0,H),A.decoder,W,"key"),he=d.maybeMap(k(te.slice(H+1),$),function(_){return $.decoder(_,A.decoder,W,"value")})),he&&$.interpretNumericEntities&&W==="iso-8859-1"&&(he=O(he)),te.indexOf("[]=")>-1&&(he=w(he)?[he]:he),x.call(D,fe)?D[fe]=d.combine(D[fe],he):D[fe]=he}return D},ue=function(Y,P,$,D){for(var C=D?P:k(P,$),F=Y.length-1;F>=0;--F){var V,X=Y[F];if(X==="[]"&&$.parseArrays)V=[].concat(C);else{V=$.plainObjects?Object.create(null):{};var K=X.charAt(0)==="["&&X.charAt(X.length-1)==="]"?X.slice(1,-1):X,W=parseInt(K,10);!$.parseArrays&&K===""?V={0:C}:!isNaN(W)&&X!==K&&String(W)===K&&W>=0&&$.parseArrays&&W<=$.arrayLimit?(V=[],V[W]=C):K!=="__proto__"&&(V[K]=C)}C=V}return C},ne=function(P,$,D,C){if(!!P){var F=D.allowDots?P.replace(/\.([^.[]+)/g,"[$1]"):P,V=/(\[[^[\]]*])/,X=/(\[[^[\]]*])/g,K=D.depth>0&&V.exec(F),W=K?F.slice(0,K.index):F,te=[];if(W){if(!D.plainObjects&&x.call(Object.prototype,W)&&!D.allowPrototypes)return;te.push(W)}for(var J=0;D.depth>0&&(K=X.exec(F))!==null&&J<D.depth;){if(J+=1,!D.plainObjects&&x.call(Object.prototype,K[1].slice(1,-1))&&!D.allowPrototypes)return;te.push(K[1])}return K&&te.push("["+F.slice(K.index)+"]"),ue(te,$,D,C)}},ie=function(P){if(!P)return A;if(P.decoder!==null&&P.decoder!==void 0&&typeof P.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof P.charset!="undefined"&&P.charset!=="utf-8"&&P.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var $=typeof P.charset=="undefined"?A.charset:P.charset;return{allowDots:typeof P.allowDots=="undefined"?A.allowDots:!!P.allowDots,allowPrototypes:typeof P.allowPrototypes=="boolean"?P.allowPrototypes:A.allowPrototypes,allowSparse:typeof P.allowSparse=="boolean"?P.allowSparse:A.allowSparse,arrayLimit:typeof P.arrayLimit=="number"?P.arrayLimit:A.arrayLimit,charset:$,charsetSentinel:typeof P.charsetSentinel=="boolean"?P.charsetSentinel:A.charsetSentinel,comma:typeof P.comma=="boolean"?P.comma:A.comma,decoder:typeof P.decoder=="function"?P.decoder:A.decoder,delimiter:typeof P.delimiter=="string"||d.isRegExp(P.delimiter)?P.delimiter:A.delimiter,depth:typeof P.depth=="number"||P.depth===!1?+P.depth:A.depth,ignoreQueryPrefix:P.ignoreQueryPrefix===!0,interpretNumericEntities:typeof P.interpretNumericEntities=="boolean"?P.interpretNumericEntities:A.interpretNumericEntities,parameterLimit:typeof P.parameterLimit=="number"?P.parameterLimit:A.parameterLimit,parseArrays:P.parseArrays!==!1,plainObjects:typeof P.plainObjects=="boolean"?P.plainObjects:A.plainObjects,strictNullHandling:typeof P.strictNullHandling=="boolean"?P.strictNullHandling:A.strictNullHandling}};h.exports=function(Y,P){var $=ie(P);if(Y===""||Y===null||typeof Y=="undefined")return $.plainObjects?Object.create(null):{};for(var D=typeof Y=="string"?re(Y,$):Y,C=$.plainObjects?Object.create(null):{},F=Object.keys(D),V=0;V<F.length;++V){var X=F[V],K=ne(X,D[X],$,typeof Y=="string");C=d.merge(C,K,$)}return $.allowSparse===!0?C:d.compact(C)}},66845:(h,E,o)=>{"use strict";var d=o(74294),x=o(12493),w=o(85527),A=Object.prototype.hasOwnProperty,O={brackets:function(F){return F+"[]"},comma:"comma",indices:function(F,V){return F+"["+V+"]"},repeat:function(F){return F}},k=Array.isArray,U=String.prototype.split,Z=Array.prototype.push,re=function(C,F){Z.apply(C,k(F)?F:[F])},ue=Date.prototype.toISOString,ne=w.default,ie={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:x.encode,encodeValuesOnly:!1,format:ne,formatter:w.formatters[ne],indices:!1,serializeDate:function(F){return ue.call(F)},skipNulls:!1,strictNullHandling:!1},Y=function(F){return typeof F=="string"||typeof F=="number"||typeof F=="boolean"||typeof F=="symbol"||typeof F=="bigint"},P={},$=function C(F,V,X,K,W,te,J,H,fe,he,_,Q,z,ge,Ee,je){for(var ke=F,it=je,et=0,at=!1;(it=it.get(P))!==void 0&&!at;){var Tt=it.get(F);if(et+=1,typeof Tt!="undefined"){if(Tt===et)throw new RangeError("Cyclic object value");at=!0}typeof it.get(P)=="undefined"&&(et=0)}if(typeof H=="function"?ke=H(V,ke):ke instanceof Date?ke=_(ke):X==="comma"&&k(ke)&&(ke=x.maybeMap(ke,function(Xe){return Xe instanceof Date?_(Xe):Xe})),ke===null){if(W)return J&&!ge?J(V,ie.encoder,Ee,"key",Q):V;ke=""}if(Y(ke)||x.isBuffer(ke)){if(J){var St=ge?V:J(V,ie.encoder,Ee,"key",Q);if(X==="comma"&&ge){for(var Le=U.call(String(ke),","),Oe="",be=0;be<Le.length;++be)Oe+=(be===0?"":",")+z(J(Le[be],ie.encoder,Ee,"value",Q));return[z(St)+(K&&k(ke)&&Le.length===1?"[]":"")+"="+Oe]}return[z(St)+"="+z(J(ke,ie.encoder,Ee,"value",Q))]}return[z(V)+"="+z(String(ke))]}var De=[];if(typeof ke=="undefined")return De;var Ge;if(X==="comma"&&k(ke))Ge=[{value:ke.length>0?ke.join(",")||null:void 0}];else if(k(H))Ge=H;else{var tt=Object.keys(ke);Ge=fe?tt.sort(fe):tt}for(var Ze=K&&k(ke)&&ke.length===1?V+"[]":V,bt=0;bt<Ge.length;++bt){var Et=Ge[bt],Xt=typeof Et=="object"&&typeof Et.value!="undefined"?Et.value:ke[Et];if(!(te&&Xt===null)){var zt=k(ke)?typeof X=="function"?X(Ze,Et):Ze:Ze+(he?"."+Et:"["+Et+"]");je.set(F,et);var nt=d();nt.set(P,je),re(De,C(Xt,zt,X,K,W,te,J,H,fe,he,_,Q,z,ge,Ee,nt))}}return De},D=function(F){if(!F)return ie;if(F.encoder!==null&&typeof F.encoder!="undefined"&&typeof F.encoder!="function")throw new TypeError("Encoder has to be a function.");var V=F.charset||ie.charset;if(typeof F.charset!="undefined"&&F.charset!=="utf-8"&&F.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=w.default;if(typeof F.format!="undefined"){if(!A.call(w.formatters,F.format))throw new TypeError("Unknown format option provided.");X=F.format}var K=w.formatters[X],W=ie.filter;return(typeof F.filter=="function"||k(F.filter))&&(W=F.filter),{addQueryPrefix:typeof F.addQueryPrefix=="boolean"?F.addQueryPrefix:ie.addQueryPrefix,allowDots:typeof F.allowDots=="undefined"?ie.allowDots:!!F.allowDots,charset:V,charsetSentinel:typeof F.charsetSentinel=="boolean"?F.charsetSentinel:ie.charsetSentinel,delimiter:typeof F.delimiter=="undefined"?ie.delimiter:F.delimiter,encode:typeof F.encode=="boolean"?F.encode:ie.encode,encoder:typeof F.encoder=="function"?F.encoder:ie.encoder,encodeValuesOnly:typeof F.encodeValuesOnly=="boolean"?F.encodeValuesOnly:ie.encodeValuesOnly,filter:W,format:X,formatter:K,serializeDate:typeof F.serializeDate=="function"?F.serializeDate:ie.serializeDate,skipNulls:typeof F.skipNulls=="boolean"?F.skipNulls:ie.skipNulls,sort:typeof F.sort=="function"?F.sort:null,strictNullHandling:typeof F.strictNullHandling=="boolean"?F.strictNullHandling:ie.strictNullHandling}};h.exports=function(C,F){var V=C,X=D(F),K,W;typeof X.filter=="function"?(W=X.filter,V=W("",V)):k(X.filter)&&(W=X.filter,K=W);var te=[];if(typeof V!="object"||V===null)return"";var J;F&&F.arrayFormat in O?J=F.arrayFormat:F&&"indices"in F?J=F.indices?"indices":"repeat":J="indices";var H=O[J];if(F&&"commaRoundTrip"in F&&typeof F.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var fe=H==="comma"&&F&&F.commaRoundTrip;K||(K=Object.keys(V)),X.sort&&K.sort(X.sort);for(var he=d(),_=0;_<K.length;++_){var Q=K[_];X.skipNulls&&V[Q]===null||re(te,$(V[Q],Q,H,fe,X.strictNullHandling,X.skipNulls,X.encode?X.encoder:null,X.filter,X.sort,X.allowDots,X.serializeDate,X.format,X.formatter,X.encodeValuesOnly,X.charset,he))}var z=te.join(X.delimiter),ge=X.addQueryPrefix===!0?"?":"";return X.charsetSentinel&&(X.charset==="iso-8859-1"?ge+="utf8=%26%2310003%3B&":ge+="utf8=%E2%9C%93&"),z.length>0?ge+z:""}},12493:(h,E,o)=>{"use strict";var d=o(85527),x=Object.prototype.hasOwnProperty,w=Array.isArray,A=function(){for(var D=[],C=0;C<256;++C)D.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return D}(),O=function(C){for(;C.length>1;){var F=C.pop(),V=F.obj[F.prop];if(w(V)){for(var X=[],K=0;K<V.length;++K)typeof V[K]!="undefined"&&X.push(V[K]);F.obj[F.prop]=X}}},k=function(C,F){for(var V=F&&F.plainObjects?Object.create(null):{},X=0;X<C.length;++X)typeof C[X]!="undefined"&&(V[X]=C[X]);return V},U=function D(C,F,V){if(!F)return C;if(typeof F!="object"){if(w(C))C.push(F);else if(C&&typeof C=="object")(V&&(V.plainObjects||V.allowPrototypes)||!x.call(Object.prototype,F))&&(C[F]=!0);else return[C,F];return C}if(!C||typeof C!="object")return[C].concat(F);var X=C;return w(C)&&!w(F)&&(X=k(C,V)),w(C)&&w(F)?(F.forEach(function(K,W){if(x.call(C,W)){var te=C[W];te&&typeof te=="object"&&K&&typeof K=="object"?C[W]=D(te,K,V):C.push(K)}else C[W]=K}),C):Object.keys(F).reduce(function(K,W){var te=F[W];return x.call(K,W)?K[W]=D(K[W],te,V):K[W]=te,K},X)},Z=function(C,F){return Object.keys(F).reduce(function(V,X){return V[X]=F[X],V},C)},re=function(D,C,F){var V=D.replace(/\+/g," ");if(F==="iso-8859-1")return V.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(V)}catch(X){return V}},ue=function(C,F,V,X,K){if(C.length===0)return C;var W=C;if(typeof C=="symbol"?W=Symbol.prototype.toString.call(C):typeof C!="string"&&(W=String(C)),V==="iso-8859-1")return escape(W).replace(/%u[0-9a-f]{4}/gi,function(fe){return"%26%23"+parseInt(fe.slice(2),16)+"%3B"});for(var te="",J=0;J<W.length;++J){var H=W.charCodeAt(J);if(H===45||H===46||H===95||H===126||H>=48&&H<=57||H>=65&&H<=90||H>=97&&H<=122||K===d.RFC1738&&(H===40||H===41)){te+=W.charAt(J);continue}if(H<128){te=te+A[H];continue}if(H<2048){te=te+(A[192|H>>6]+A[128|H&63]);continue}if(H<55296||H>=57344){te=te+(A[224|H>>12]+A[128|H>>6&63]+A[128|H&63]);continue}J+=1,H=65536+((H&1023)<<10|W.charCodeAt(J)&1023),te+=A[240|H>>18]+A[128|H>>12&63]+A[128|H>>6&63]+A[128|H&63]}return te},ne=function(C){for(var F=[{obj:{o:C},prop:"o"}],V=[],X=0;X<F.length;++X)for(var K=F[X],W=K.obj[K.prop],te=Object.keys(W),J=0;J<te.length;++J){var H=te[J],fe=W[H];typeof fe=="object"&&fe!==null&&V.indexOf(fe)===-1&&(F.push({obj:W,prop:H}),V.push(fe))}return O(F),C},ie=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},Y=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},P=function(C,F){return[].concat(C,F)},$=function(C,F){if(w(C)){for(var V=[],X=0;X<C.length;X+=1)V.push(F(C[X]));return V}return F(C)};h.exports={arrayToObject:k,assign:Z,combine:P,compact:ne,decode:re,encode:ue,isBuffer:Y,isRegExp:ie,maybeMap:$,merge:U}},63277:(h,E,o)=>{"use strict";var d;function x(){return x=Object.assign||function(ie){for(var Y=1;Y<arguments.length;Y++){var P=arguments[Y];for(var $ in P)Object.prototype.hasOwnProperty.call(P,$)&&(ie[$]=P[$])}return ie},x.apply(this,arguments)}function w(ie){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(P){return typeof P}:w=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},w(ie)}var A=function(){var ie=function(P,$){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,C){D.__proto__=C}||function(D,C){for(var F in C)C.hasOwnProperty(F)&&(D[F]=C[F])},ie(P,$)};return function(Y,P){ie(Y,P);function $(){this.constructor=Y}Y.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}}();d={value:!0},d=E.fk=void 0;var O=o(2784),k=typeof navigator=="undefined"||o.g.PREVENT_CODEMIRROR_RENDER===!0,U;k||(U=o(23326));var Z=function(){function ie(){}return ie.equals=function(Y,P){var $=this,D=Object.keys,C=w(Y),F=w(P);return Y&&P&&C==="object"&&C===F?D(Y).length===D(P).length&&D(Y).every(function(V){return $.equals(Y[V],P[V])}):Y===P},ie}(),re=function(){function ie(Y,P){this.editor=Y,this.props=P}return ie.prototype.delegateCursor=function(Y,P,$){var D=this.editor.getDoc();$&&this.editor.focus(),P?D.setCursor(Y):D.setCursor(Y,null,{scroll:!1})},ie.prototype.delegateScroll=function(Y){this.editor.scrollTo(Y.x,Y.y)},ie.prototype.delegateSelection=function(Y,P){var $=this.editor.getDoc();$.setSelections(Y),P&&this.editor.focus()},ie.prototype.apply=function(Y){Y&&Y.selection&&Y.selection.ranges&&this.delegateSelection(Y.selection.ranges,Y.selection.focus||!1),Y&&Y.cursor&&this.delegateCursor(Y.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1),Y&&Y.scroll&&this.delegateScroll(Y.scroll)},ie.prototype.applyNext=function(Y,P,$){Y&&Y.selection&&Y.selection.ranges&&P&&P.selection&&P.selection.ranges&&!Z.equals(Y.selection.ranges,P.selection.ranges)&&this.delegateSelection(P.selection.ranges,P.selection.focus||!1),Y&&Y.cursor&&P&&P.cursor&&!Z.equals(Y.cursor,P.cursor)&&this.delegateCursor($.cursor||P.cursor,P.autoScroll||!1,P.autoCursor||!1),Y&&Y.scroll&&P&&P.scroll&&!Z.equals(Y.scroll,P.scroll)&&this.delegateScroll(P.scroll)},ie.prototype.applyUserDefined=function(Y,P){P&&P.cursor&&this.delegateCursor(P.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1)},ie.prototype.wire=function(Y){var P=this;Object.keys(Y||{}).filter(function($){return/^on/.test($)}).forEach(function($){switch($){case"onBlur":P.editor.on("blur",function(D,C){P.props.onBlur(P.editor,C)});break;case"onContextMenu":{P.editor.on("contextmenu",function(D,C){P.props.onContextMenu(P.editor,C)});break}case"onCopy":{P.editor.on("copy",function(D,C){P.props.onCopy(P.editor,C)});break}case"onCursor":P.editor.on("cursorActivity",function(D){P.props.onCursor(P.editor,P.editor.getDoc().getCursor())});break;case"onCursorActivity":P.editor.on("cursorActivity",function(D){P.props.onCursorActivity(P.editor)});break;case"onCut":{P.editor.on("cut",function(D,C){P.props.onCut(P.editor,C)});break}case"onDblClick":{P.editor.on("dblclick",function(D,C){P.props.onDblClick(P.editor,C)});break}case"onDragEnter":P.editor.on("dragenter",function(D,C){P.props.onDragEnter(P.editor,C)});break;case"onDragLeave":{P.editor.on("dragleave",function(D,C){P.props.onDragLeave(P.editor,C)});break}case"onDragOver":P.editor.on("dragover",function(D,C){P.props.onDragOver(P.editor,C)});break;case"onDragStart":{P.editor.on("dragstart",function(D,C){P.props.onDragStart(P.editor,C)});break}case"onDrop":P.editor.on("drop",function(D,C){P.props.onDrop(P.editor,C)});break;case"onFocus":P.editor.on("focus",function(D,C){P.props.onFocus(P.editor,C)});break;case"onGutterClick":P.editor.on("gutterClick",function(D,C,F,V){P.props.onGutterClick(P.editor,C,F,V)});break;case"onInputRead":P.editor.on("inputRead",function(D,C){P.props.onInputRead(P.editor,C)});break;case"onKeyDown":P.editor.on("keydown",function(D,C){P.props.onKeyDown(P.editor,C)});break;case"onKeyHandled":P.editor.on("keyHandled",function(D,C,F){P.props.onKeyHandled(P.editor,C,F)});break;case"onKeyPress":P.editor.on("keypress",function(D,C){P.props.onKeyPress(P.editor,C)});break;case"onKeyUp":P.editor.on("keyup",function(D,C){P.props.onKeyUp(P.editor,C)});break;case"onMouseDown":{P.editor.on("mousedown",function(D,C){P.props.onMouseDown(P.editor,C)});break}case"onPaste":{P.editor.on("paste",function(D,C){P.props.onPaste(P.editor,C)});break}case"onRenderLine":{P.editor.on("renderLine",function(D,C,F){P.props.onRenderLine(P.editor,C,F)});break}case"onScroll":P.editor.on("scroll",function(D){P.props.onScroll(P.editor,P.editor.getScrollInfo())});break;case"onSelection":P.editor.on("beforeSelectionChange",function(D,C){P.props.onSelection(P.editor,C)});break;case"onTouchStart":{P.editor.on("touchstart",function(D,C){P.props.onTouchStart(P.editor,C)});break}case"onUpdate":P.editor.on("update",function(D){P.props.onUpdate(P.editor)});break;case"onViewportChange":P.editor.on("viewportChange",function(D,C,F){P.props.onViewportChange(P.editor,C,F)});break}})},ie}(),ue=function(ie){A(Y,ie);function Y(P){var $=ie.call(this,P)||this;return k||($.applied=!1,$.appliedNext=!1,$.appliedUserDefined=!1,$.deferred=null,$.emulating=!1,$.hydrated=!1,$.initCb=function(){$.props.editorDidConfigure&&$.props.editorDidConfigure($.editor)},$.mounted=!1),$}return Y.prototype.hydrate=function(P){var $=this,D=P&&P.options?P.options:{},C=x({},U.defaults,this.editor.options,D),F=Object.keys(C).some(function(V){return $.editor.getOption(V)!==C[V]});F&&Object.keys(C).forEach(function(V){D.hasOwnProperty(V)&&$.editor.getOption(V)!==C[V]&&($.editor.setOption(V,C[V]),$.mirror.setOption(V,C[V]))}),this.hydrated||(this.deferred?this.resolveChange(P.value):this.initChange(P.value||"")),this.hydrated=!0},Y.prototype.initChange=function(P){this.emulating=!0;var $=this.editor.getDoc(),D=$.lastLine(),C=$.getLine($.lastLine()).length;$.replaceRange(P||"",{line:0,ch:0},{line:D,ch:C}),this.mirror.setValue(P),$.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},Y.prototype.resolveChange=function(P){this.emulating=!0;var $=this.editor.getDoc();if(this.deferred.origin==="undo"?$.undo():this.deferred.origin==="redo"?$.redo():$.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),P&&P!==$.getValue()){var D=$.getCursor();$.setValue(P),$.setCursor(D)}this.emulating=!1,this.deferred=null},Y.prototype.mirrorChange=function(P){var $=this.editor.getDoc();return P.origin==="undo"?($.setHistory(this.mirror.getHistory()),this.mirror.undo()):P.origin==="redo"?($.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(P.text,P.from,P.to,P.origin),this.mirror.getValue()},Y.prototype.componentDidMount=function(){var P=this;k||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new re(this.editor,this.props),this.mirror=U(function(){},this.props.options),this.editor.on("electricInput",function(){P.mirror.setHistory(P.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){P.mirror.setCursor(P.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function($,D){if(!P.emulating){D.cancel(),P.deferred=D;var C=P.mirrorChange(P.deferred);P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,P.deferred,C)}}),this.editor.on("change",function($,D){!P.mounted||P.props.onChange&&P.props.onChange(P.editor,D,P.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))},Y.prototype.componentDidUpdate=function(P){if(!k){var $={cursor:null};this.props.value!==P.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&($.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(P,this.props,$),this.appliedNext=!0),this.shared.applyUserDefined(P,$),this.appliedUserDefined=!0}},Y.prototype.componentWillUnmount=function(){k||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},Y.prototype.shouldComponentUpdate=function(P,$){return!k},Y.prototype.render=function(){var P=this;if(k)return null;var $=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return O.createElement("div",{className:$,ref:function(C){return P.ref=C}})},Y}(O.Component);E.fk=ue;var ne=function(ie){A(Y,ie);function Y(P){var $=ie.call(this,P)||this;return k||($.applied=!1,$.appliedUserDefined=!1,$.continueChange=!1,$.detached=!1,$.hydrated=!1,$.initCb=function(){$.props.editorDidConfigure&&$.props.editorDidConfigure($.editor)},$.mounted=!1,$.onBeforeChangeCb=function(){$.continueChange=!0}),$}return Y.prototype.hydrate=function(P){var $=this,D=P&&P.options?P.options:{},C=x({},U.defaults,this.editor.options,D),F=Object.keys(C).some(function(W){return $.editor.getOption(W)!==C[W]});if(F&&Object.keys(C).forEach(function(W){D.hasOwnProperty(W)&&$.editor.getOption(W)!==C[W]&&$.editor.setOption(W,C[W])}),!this.hydrated){var V=this.editor.getDoc(),X=V.lastLine(),K=V.getLine(V.lastLine()).length;V.replaceRange(P.value||"",{line:0,ch:0},{line:X,ch:K})}this.hydrated=!0},Y.prototype.componentDidMount=function(){var P=this;k||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new re(this.editor,this.props),this.editor.on("beforeChange",function($,D){P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,D,P.editor.getValue(),P.onBeforeChangeCb)}),this.editor.on("change",function($,D){!P.mounted||!P.props.onChange||(P.props.onBeforeChange?P.continueChange&&P.props.onChange(P.editor,D,P.editor.getValue()):P.props.onChange(P.editor,D,P.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))},Y.prototype.componentDidUpdate=function(P){if(this.detached&&this.props.detach===!1&&(this.detached=!1,P.editorDidAttach&&P.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,P.editorDidDetach&&P.editorDidDetach(this.editor)),!(k||this.detached)){var $={cursor:null};this.props.value!==P.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!P.autoCursor&&P.autoCursor!==void 0&&($.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(P),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(P,$),this.appliedUserDefined=!0)}},Y.prototype.componentWillUnmount=function(){k||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},Y.prototype.shouldComponentUpdate=function(P,$){var D=!0;return k&&(D=!1),this.detached&&P.detach&&(D=!1),D},Y.prototype.render=function(){var P=this;if(k)return null;var $=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return O.createElement("div",{className:$,ref:function(C){return P.ref=C}})},Y}(O.Component);d=ne},74294:(h,E,o)=>{"use strict";var d=o(67286),x=o(62680),w=o(99500),A=d("%TypeError%"),O=d("%WeakMap%",!0),k=d("%Map%",!0),U=x("WeakMap.prototype.get",!0),Z=x("WeakMap.prototype.set",!0),re=x("WeakMap.prototype.has",!0),ue=x("Map.prototype.get",!0),ne=x("Map.prototype.set",!0),ie=x("Map.prototype.has",!0),Y=function(C,F){for(var V=C,X;(X=V.next)!==null;V=X)if(X.key===F)return V.next=X.next,X.next=C.next,C.next=X,X},P=function(C,F){var V=Y(C,F);return V&&V.value},$=function(C,F,V){var X=Y(C,F);X?X.value=V:C.next={key:F,next:C.next,value:V}},D=function(C,F){return!!Y(C,F)};h.exports=function(){var F,V,X,K={assert:function(W){if(!K.has(W))throw new A("Side channel does not contain "+w(W))},get:function(W){if(O&&W&&(typeof W=="object"||typeof W=="function")){if(F)return U(F,W)}else if(k){if(V)return ue(V,W)}else if(X)return P(X,W)},has:function(W){if(O&&W&&(typeof W=="object"||typeof W=="function")){if(F)return re(F,W)}else if(k){if(V)return ie(V,W)}else if(X)return D(X,W);return!1},set:function(W,te){O&&W&&(typeof W=="object"||typeof W=="function")?(F||(F=new O),Z(F,W,te)):k?(V||(V=new k),ne(V,W,te)):(X||(X={key:{},next:null}),$(X,W,te))}};return K}},79375:(h,E,o)=>{var d=o(46062),x=o(45957);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},4570:(h,E,o)=>{var d=o(46062),x=o(73792);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},76239:(h,E,o)=>{var d=o(46062),x=o(59062);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},49032:(h,E,o)=>{var d=o(46062),x=o(32024);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},56855:h=>{"use strict";function E(P){return Object.prototype.toString.call(P)}function o(P){return E(P)==="[object Date]"}function d(P){return E(P)==="[object RegExp]"}function x(P){return E(P)==="[object Error]"}function w(P){return E(P)==="[object Boolean]"}function A(P){return E(P)==="[object Number]"}function O(P){return E(P)==="[object String]"}var k=Array.isArray||function($){return Object.prototype.toString.call($)==="[object Array]"};function U(P,$){if(P.forEach)return P.forEach($);for(var D=0;D<P.length;D++)$(P[D],D,P)}var Z=Object.keys||function($){var D=[];for(var C in $)D.push(C);return D},re=Object.prototype.hasOwnProperty||function(P,$){return $ in P};function ue(P){if(typeof P=="object"&&P!==null){var $;if(k(P))$=[];else if(o(P))$=new Date(P.getTime?P.getTime():P);else if(d(P))$=new RegExp(P);else if(x(P))$={message:P.message};else if(w(P)||A(P)||O(P))$=Object(P);else if(Object.create&&Object.getPrototypeOf)$=Object.create(Object.getPrototypeOf(P));else if(P.constructor===Object)$={};else{var D=P.constructor&&P.constructor.prototype||P.__proto__||{},C=function(){};C.prototype=D,$=new C}return U(Z(P),function(F){$[F]=P[F]}),$}return P}function ne(P,$,D){var C=[],F=[],V=!0;return function X(K){var W=D?ue(K):K,te={},J=!0,H={node:W,node_:K,path:[].concat(C),parent:F[F.length-1],parents:F,key:C[C.length-1],isRoot:C.length===0,level:C.length,circular:null,update:function(_,Q){H.isRoot||(H.parent.node[H.key]=_),H.node=_,Q&&(J=!1)},delete:function(_){delete H.parent.node[H.key],_&&(J=!1)},remove:function(_){k(H.parent.node)?H.parent.node.splice(H.key,1):delete H.parent.node[H.key],_&&(J=!1)},keys:null,before:function(_){te.before=_},after:function(_){te.after=_},pre:function(_){te.pre=_},post:function(_){te.post=_},stop:function(){V=!1},block:function(){J=!1}};if(!V)return H;function fe(){if(typeof H.node=="object"&&H.node!==null){(!H.keys||H.node_!==H.node)&&(H.keys=Z(H.node)),H.isLeaf=H.keys.length===0;for(var _=0;_<F.length;_++)if(F[_].node_===K){H.circular=F[_];break}}else H.isLeaf=!0,H.keys=null;H.notLeaf=!H.isLeaf,H.notRoot=!H.isRoot}fe();var he=$.call(H,H.node);return he!==void 0&&H.update&&H.update(he),te.before&&te.before.call(H,H.node),J&&(typeof H.node=="object"&&H.node!==null&&!H.circular&&(F.push(H),fe(),U(H.keys,function(_,Q){C.push(_),te.pre&&te.pre.call(H,H.node[_],_);var z=X(H.node[_]);D&&re.call(H.node,_)&&(H.node[_]=z.node),z.isLast=Q===H.keys.length-1,z.isFirst=Q===0,te.post&&te.post.call(H,z),C.pop()}),F.pop()),te.after&&te.after.call(H,H.node)),H}(P).node}function ie(P){this.value=P}ie.prototype.get=function(P){for(var $=this.value,D=0;D<P.length;D++){var C=P[D];if(!$||!re.call($,C))return;$=$[C]}return $},ie.prototype.has=function(P){for(var $=this.value,D=0;D<P.length;D++){var C=P[D];if(!$||!re.call($,C))return!1;$=$[C]}return!0},ie.prototype.set=function(P,$){for(var D=this.value,C=0;C<P.length-1;C++){var F=P[C];re.call(D,F)||(D[F]={}),D=D[F]}return D[P[C]]=$,$},ie.prototype.map=function(P){return ne(this.value,P,!0)},ie.prototype.forEach=function(P){return this.value=ne(this.value,P,!1),this.value},ie.prototype.reduce=function(P,$){var D=arguments.length===1,C=D?this.value:$;return this.forEach(function(F){(!this.isRoot||!D)&&(C=P.call(this,C,F))}),C},ie.prototype.paths=function(){var P=[];return this.forEach(function(){P.push(this.path)}),P},ie.prototype.nodes=function(){var P=[];return this.forEach(function(){P.push(this.node)}),P},ie.prototype.clone=function(){var P=[],$=[];return function D(C){for(var F=0;F<P.length;F++)if(P[F]===C)return $[F];if(typeof C=="object"&&C!==null){var V=ue(C);return P.push(C),$.push(V),U(Z(C),function(X){V[X]=D(C[X])}),P.pop(),$.pop(),V}return C}(this.value)};function Y(P){return new ie(P)}U(Z(ie.prototype),function(P){Y[P]=function($){var D=[].slice.call(arguments,1),C=new ie($);return C[P].apply(C,D)}}),h.exports=Y},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="},53260:()=>{},48621:(h,E,o)=>{h.exports=o(53822)},40192:(h,E,o)=>{h.exports=o(44877)},42126:(h,E,o)=>{h.exports=o(10140)},40453:(h,E,o)=>{h.exports=o(55603)},35784:(h,E,o)=>{h.exports=o(76237)},82985:(h,E,o)=>{h.exports=o(56515)},14903:(h,E,o)=>{h.exports=o(20057)},71488:(h,E,o)=>{h.exports=o(24741)},93963:(h,E,o)=>{h.exports=o(8368)},51661:(h,E,o)=>{h.exports=o(342)},85337:(h,E,o)=>{h.exports=o(392)},45932:(h,E,o)=>{h.exports=o(28478)},31175:(h,E,o)=>{h.exports=o(58202)},2921:(h,E,o)=>{h.exports=o(45636)},22583:(h,E,o)=>{h.exports=o(46618)},8304:(h,E,o)=>{h.exports=o(72946)},36394:(h,E,o)=>{h.exports=o(11235)},50557:(h,E,o)=>{h.exports=o(62813)},72010:(h,E,o)=>{h.exports=o(68664)},5490:(h,E,o)=>{h.exports=o(21457)},1858:(h,E,o)=>{h.exports=o(36516)},84870:(h,E,o)=>{h.exports=o(87611)},48145:(h,E,o)=>{h.exports=o(4161)},26405:(h,E,o)=>{h.exports=o(75159)},9600:(h,E,o)=>{h.exports=o(87708)},72383:(h,E,o)=>{h.exports=o(42937)},8626:(h,E,o)=>{h.exports=o(69297)},45055:(h,E,o)=>{h.exports=o(10353)},49800:(h,E,o)=>{h.exports=o(8026)},79494:(h,E,o)=>{h.exports=o(67362)},11807:(h,E,o)=>{h.exports=o(57532)},24463:(h,E,o)=>{h.exports=o(61903)},21889:(h,E,o)=>{h.exports=o(42044)},25575:(h,E,o)=>{h.exports=o(60902)},68861:(h,E,o)=>{h.exports=o(2214)},64772:(h,E,o)=>{h.exports=o(983)},57829:(h,E,o)=>{h.exports=o(59256)},92876:(h,E,o)=>{h.exports=o(95659)},92903:(h,E,o)=>{h.exports=o(93698)},18730:(h,E,o)=>{var d=o(69696).default,x=o(49800),w=o(57829),A=o(8626),O=o(21889),k=o(48145),U=o(68861),Z=o(64772),re=o(9600),ue=o(72383);function ne(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h.exports=ne=function(){return ie},h.exports.__esModule=!0,h.exports.default=h.exports;var ie={},Y=Object.prototype,P=Y.hasOwnProperty,$=x||function(Le,Oe,be){Le[Oe]=be.value},D=typeof w=="function"?w:{},C=D.iterator||"@@iterator",F=D.asyncIterator||"@@asyncIterator",V=D.toStringTag||"@@toStringTag";function X(Le,Oe,be){return x(Le,Oe,{value:be,enumerable:!0,configurable:!0,writable:!0}),Le[Oe]}try{X({},"")}catch(Le){X=function(be,De,Ge){return be[De]=Ge}}function K(Le,Oe,be,De){var Ge=Oe&&Oe.prototype instanceof J?Oe:J,tt=A(Ge.prototype),Ze=new at(De||[]);return $(tt,"_invoke",{value:je(Le,be,Ze)}),tt}function W(Le,Oe,be){try{return{type:"normal",arg:Le.call(Oe,be)}}catch(De){return{type:"throw",arg:De}}}ie.wrap=K;var te={};function J(){}function H(){}function fe(){}var he={};X(he,C,function(){return this});var _=O,Q=_&&_(_(Tt([])));Q&&Q!==Y&&P.call(Q,C)&&(he=Q);var z=fe.prototype=J.prototype=A(he);function ge(Le){var Oe;k(Oe=["next","throw","return"]).call(Oe,function(be){X(Le,be,function(De){return this._invoke(be,De)})})}function Ee(Le,Oe){function be(Ge,tt,Ze,bt){var Et=W(Le[Ge],Le,tt);if(Et.type!=="throw"){var Xt=Et.arg,zt=Xt.value;return zt&&d(zt)=="object"&&P.call(zt,"__await")?Oe.resolve(zt.__await).then(function(nt){be("next",nt,Ze,bt)},function(nt){be("throw",nt,Ze,bt)}):Oe.resolve(zt).then(function(nt){Xt.value=nt,Ze(Xt)},function(nt){return be("throw",nt,Ze,bt)})}bt(Et.arg)}var De;$(this,"_invoke",{value:function(tt,Ze){function bt(){return new Oe(function(Et,Xt){be(tt,Ze,Et,Xt)})}return De=De?De.then(bt,bt):bt()}})}function je(Le,Oe,be){var De="suspendedStart";return function(Ge,tt){if(De==="executing")throw new Error("Generator is already running");if(De==="completed"){if(Ge==="throw")throw tt;return St()}for(be.method=Ge,be.arg=tt;;){var Ze=be.delegate;if(Ze){var bt=ke(Ze,be);if(bt){if(bt===te)continue;return bt}}if(be.method==="next")be.sent=be._sent=be.arg;else if(be.method==="throw"){if(De==="suspendedStart")throw De="completed",be.arg;be.dispatchException(be.arg)}else be.method==="return"&&be.abrupt("return",be.arg);De="executing";var Et=W(Le,Oe,be);if(Et.type==="normal"){if(De=be.done?"completed":"suspendedYield",Et.arg===te)continue;return{value:Et.arg,done:be.done}}Et.type==="throw"&&(De="completed",be.method="throw",be.arg=Et.arg)}}}function ke(Le,Oe){var be=Oe.method,De=Le.iterator[be];if(De===void 0)return Oe.delegate=null,be==="throw"&&Le.iterator.return&&(Oe.method="return",Oe.arg=void 0,ke(Le,Oe),Oe.method==="throw")||be!=="return"&&(Oe.method="throw",Oe.arg=new TypeError("The iterator does not provide a '"+be+"' method")),te;var Ge=W(De,Le.iterator,Oe.arg);if(Ge.type==="throw")return Oe.method="throw",Oe.arg=Ge.arg,Oe.delegate=null,te;var tt=Ge.arg;return tt?tt.done?(Oe[Le.resultName]=tt.value,Oe.next=Le.nextLoc,Oe.method!=="return"&&(Oe.method="next",Oe.arg=void 0),Oe.delegate=null,te):tt:(Oe.method="throw",Oe.arg=new TypeError("iterator result is not an object"),Oe.delegate=null,te)}function it(Le){var Oe={tryLoc:Le[0]};1 in Le&&(Oe.catchLoc=Le[1]),2 in Le&&(Oe.finallyLoc=Le[2],Oe.afterLoc=Le[3]),this.tryEntries.push(Oe)}function et(Le){var Oe=Le.completion||{};Oe.type="normal",delete Oe.arg,Le.completion=Oe}function at(Le){this.tryEntries=[{tryLoc:"root"}],k(Le).call(Le,it,this),this.reset(!0)}function Tt(Le){if(Le){var Oe=Le[C];if(Oe)return Oe.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var be=-1,De=function Ge(){for(;++be<Le.length;)if(P.call(Le,be))return Ge.value=Le[be],Ge.done=!1,Ge;return Ge.value=void 0,Ge.done=!0,Ge};return De.next=De}}return{next:St}}function St(){return{value:void 0,done:!0}}return H.prototype=fe,$(z,"constructor",{value:fe,configurable:!0}),$(fe,"constructor",{value:H,configurable:!0}),H.displayName=X(fe,V,"GeneratorFunction"),ie.isGeneratorFunction=function(Le){var Oe=typeof Le=="function"&&Le.constructor;return!!Oe&&(Oe===H||(Oe.displayName||Oe.name)==="GeneratorFunction")},ie.mark=function(Le){return U?U(Le,fe):(Le.__proto__=fe,X(Le,V,"GeneratorFunction")),Le.prototype=A(z),Le},ie.awrap=function(Le){return{__await:Le}},ge(Ee.prototype),X(Ee.prototype,F,function(){return this}),ie.AsyncIterator=Ee,ie.async=function(Le,Oe,be,De,Ge){Ge===void 0&&(Ge=Z);var tt=new Ee(K(Le,Oe,be,De),Ge);return ie.isGeneratorFunction(Oe)?tt:tt.next().then(function(Ze){return Ze.done?Ze.value:tt.next()})},ge(z),X(z,V,"Generator"),X(z,C,function(){return this}),X(z,"toString",function(){return"[object Generator]"}),ie.keys=function(Le){var Oe=Object(Le),be=[];for(var De in Oe)be.push(De);return re(be).call(be),function Ge(){for(;be.length;){var tt=be.pop();if(tt in Oe)return Ge.value=tt,Ge.done=!1,Ge}return Ge.done=!0,Ge}},ie.values=Tt,at.prototype={constructor:at,reset:function(Oe){var be;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,k(be=this.tryEntries).call(be,et),!Oe)for(var De in this)De.charAt(0)==="t"&&P.call(this,De)&&!isNaN(+ue(De).call(De,1))&&(this[De]=void 0)},stop:function(){this.done=!0;var Oe=this.tryEntries[0].completion;if(Oe.type==="throw")throw Oe.arg;return this.rval},dispatchException:function(Oe){if(this.done)throw Oe;var be=this;function De(Xt,zt){return Ze.type="throw",Ze.arg=Oe,be.next=Xt,zt&&(be.method="next",be.arg=void 0),!!zt}for(var Ge=this.tryEntries.length-1;Ge>=0;--Ge){var tt=this.tryEntries[Ge],Ze=tt.completion;if(tt.tryLoc==="root")return De("end");if(tt.tryLoc<=this.prev){var bt=P.call(tt,"catchLoc"),Et=P.call(tt,"finallyLoc");if(bt&&Et){if(this.prev<tt.catchLoc)return De(tt.catchLoc,!0);if(this.prev<tt.finallyLoc)return De(tt.finallyLoc)}else if(bt){if(this.prev<tt.catchLoc)return De(tt.catchLoc,!0)}else{if(!Et)throw new Error("try statement without catch or finally");if(this.prev<tt.finallyLoc)return De(tt.finallyLoc)}}}},abrupt:function(Oe,be){for(var De=this.tryEntries.length-1;De>=0;--De){var Ge=this.tryEntries[De];if(Ge.tryLoc<=this.prev&&P.call(Ge,"finallyLoc")&&this.prev<Ge.finallyLoc){var tt=Ge;break}}tt&&(Oe==="break"||Oe==="continue")&&tt.tryLoc<=be&&be<=tt.finallyLoc&&(tt=null);var Ze=tt?tt.completion:{};return Ze.type=Oe,Ze.arg=be,tt?(this.method="next",this.next=tt.finallyLoc,te):this.complete(Ze)},complete:function(Oe,be){if(Oe.type==="throw")throw Oe.arg;return Oe.type==="break"||Oe.type==="continue"?this.next=Oe.arg:Oe.type==="return"?(this.rval=this.arg=Oe.arg,this.method="return",this.next="end"):Oe.type==="normal"&&be&&(this.next=be),te},finish:function(Oe){for(var be=this.tryEntries.length-1;be>=0;--be){var De=this.tryEntries[be];if(De.finallyLoc===Oe)return this.complete(De.completion,De.afterLoc),et(De),te}},catch:function(Oe){for(var be=this.tryEntries.length-1;be>=0;--be){var De=this.tryEntries[be];if(De.tryLoc===Oe){var Ge=De.completion;if(Ge.type==="throw"){var tt=Ge.arg;et(De)}return tt}}throw new Error("illegal catch attempt")},delegateYield:function(Oe,be,De){return this.delegate={iterator:Tt(Oe),resultName:be,nextLoc:De},this.method==="next"&&(this.arg=void 0),te}},ie}h.exports=ne,h.exports.__esModule=!0,h.exports.default=h.exports},69696:(h,E,o)=>{var d=o(57829),x=o(92876);function w(A){return h.exports=w=typeof d=="function"&&typeof x=="symbol"?function(O){return typeof O}:function(O){return O&&typeof d=="function"&&O.constructor===d&&O!==d.prototype?"symbol":typeof O},h.exports.__esModule=!0,h.exports.default=h.exports,w(A)}h.exports=w,h.exports.__esModule=!0,h.exports.default=h.exports},99732:(h,E,o)=>{var d=o(18730)();h.exports=d;try{regeneratorRuntime=d}catch(x){typeof globalThis=="object"?globalThis.regeneratorRuntime=d:Function("r","regeneratorRuntime = r")(d)}}}]);