prettier-plugin-solidity 2.0.0-beta.3 → 2.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (687) hide show
  1. package/README.md +1 -1
  2. package/dist/slang-nodes/AbicoderPragma.js +3 -4
  3. package/dist/slang-nodes/AbicoderPragma.js.map +1 -1
  4. package/dist/slang-nodes/AdditiveExpression.js +4 -5
  5. package/dist/slang-nodes/AdditiveExpression.js.map +1 -1
  6. package/dist/slang-nodes/AddressType.js +2 -2
  7. package/dist/slang-nodes/AddressType.js.map +1 -1
  8. package/dist/slang-nodes/AndExpression.js +4 -5
  9. package/dist/slang-nodes/AndExpression.js.map +1 -1
  10. package/dist/slang-nodes/ArgumentsDeclaration.js +4 -5
  11. package/dist/slang-nodes/ArgumentsDeclaration.js.map +1 -1
  12. package/dist/slang-nodes/ArrayExpression.js +3 -4
  13. package/dist/slang-nodes/ArrayExpression.js.map +1 -1
  14. package/dist/slang-nodes/ArrayTypeName.js +4 -5
  15. package/dist/slang-nodes/ArrayTypeName.js.map +1 -1
  16. package/dist/slang-nodes/ArrayValues.js +3 -4
  17. package/dist/slang-nodes/ArrayValues.js.map +1 -1
  18. package/dist/slang-nodes/AssemblyFlags.js +3 -4
  19. package/dist/slang-nodes/AssemblyFlags.js.map +1 -1
  20. package/dist/slang-nodes/AssemblyFlagsDeclaration.js +3 -4
  21. package/dist/slang-nodes/AssemblyFlagsDeclaration.js.map +1 -1
  22. package/dist/slang-nodes/AssemblyStatement.js +5 -9
  23. package/dist/slang-nodes/AssemblyStatement.js.map +1 -1
  24. package/dist/slang-nodes/AssignmentExpression.js +4 -5
  25. package/dist/slang-nodes/AssignmentExpression.js.map +1 -1
  26. package/dist/slang-nodes/BitwiseAndExpression.js +4 -5
  27. package/dist/slang-nodes/BitwiseAndExpression.js.map +1 -1
  28. package/dist/slang-nodes/BitwiseOrExpression.js +4 -5
  29. package/dist/slang-nodes/BitwiseOrExpression.js.map +1 -1
  30. package/dist/slang-nodes/BitwiseXorExpression.js +4 -5
  31. package/dist/slang-nodes/BitwiseXorExpression.js.map +1 -1
  32. package/dist/slang-nodes/Block.js +3 -4
  33. package/dist/slang-nodes/Block.js.map +1 -1
  34. package/dist/slang-nodes/BreakStatement.js +2 -2
  35. package/dist/slang-nodes/BreakStatement.js.map +1 -1
  36. package/dist/slang-nodes/CallOptions.js +3 -4
  37. package/dist/slang-nodes/CallOptions.js.map +1 -1
  38. package/dist/slang-nodes/CallOptionsExpression.js +4 -5
  39. package/dist/slang-nodes/CallOptionsExpression.js.map +1 -1
  40. package/dist/slang-nodes/CatchClause.js +4 -7
  41. package/dist/slang-nodes/CatchClause.js.map +1 -1
  42. package/dist/slang-nodes/CatchClauseError.js +4 -7
  43. package/dist/slang-nodes/CatchClauseError.js.map +1 -1
  44. package/dist/slang-nodes/CatchClauses.js +3 -4
  45. package/dist/slang-nodes/CatchClauses.js.map +1 -1
  46. package/dist/slang-nodes/ComparisonExpression.js +4 -5
  47. package/dist/slang-nodes/ComparisonExpression.js.map +1 -1
  48. package/dist/slang-nodes/ConditionalExpression.js +5 -6
  49. package/dist/slang-nodes/ConditionalExpression.js.map +1 -1
  50. package/dist/slang-nodes/ConstantDefinition.js +5 -6
  51. package/dist/slang-nodes/ConstantDefinition.js.map +1 -1
  52. package/dist/slang-nodes/ConstructorAttribute.js +3 -4
  53. package/dist/slang-nodes/ConstructorAttribute.js.map +1 -1
  54. package/dist/slang-nodes/ConstructorAttributes.js +3 -4
  55. package/dist/slang-nodes/ConstructorAttributes.js.map +1 -1
  56. package/dist/slang-nodes/ConstructorDefinition.js +5 -6
  57. package/dist/slang-nodes/ConstructorDefinition.js.map +1 -1
  58. package/dist/slang-nodes/ContinueStatement.js +2 -2
  59. package/dist/slang-nodes/ContinueStatement.js.map +1 -1
  60. package/dist/slang-nodes/ContractDefinition.js +5 -8
  61. package/dist/slang-nodes/ContractDefinition.js.map +1 -1
  62. package/dist/slang-nodes/ContractMember.js +15 -16
  63. package/dist/slang-nodes/ContractMember.js.map +1 -1
  64. package/dist/slang-nodes/ContractMembers.js +3 -4
  65. package/dist/slang-nodes/ContractMembers.js.map +1 -1
  66. package/dist/slang-nodes/DecimalNumberExpression.js +3 -4
  67. package/dist/slang-nodes/DecimalNumberExpression.js.map +1 -1
  68. package/dist/slang-nodes/DoWhileStatement.js +4 -5
  69. package/dist/slang-nodes/DoWhileStatement.js.map +1 -1
  70. package/dist/slang-nodes/ElementaryType.js +3 -4
  71. package/dist/slang-nodes/ElementaryType.js.map +1 -1
  72. package/dist/slang-nodes/ElseBranch.js +3 -4
  73. package/dist/slang-nodes/ElseBranch.js.map +1 -1
  74. package/dist/slang-nodes/EmitStatement.js +4 -5
  75. package/dist/slang-nodes/EmitStatement.js.map +1 -1
  76. package/dist/slang-nodes/EnumDefinition.js +4 -5
  77. package/dist/slang-nodes/EnumDefinition.js.map +1 -1
  78. package/dist/slang-nodes/EnumMembers.js +3 -4
  79. package/dist/slang-nodes/EnumMembers.js.map +1 -1
  80. package/dist/slang-nodes/EqualityExpression.js +4 -5
  81. package/dist/slang-nodes/EqualityExpression.js.map +1 -1
  82. package/dist/slang-nodes/ErrorDefinition.js +4 -5
  83. package/dist/slang-nodes/ErrorDefinition.js.map +1 -1
  84. package/dist/slang-nodes/ErrorParameter.js +4 -5
  85. package/dist/slang-nodes/ErrorParameter.js.map +1 -1
  86. package/dist/slang-nodes/ErrorParameters.js +3 -4
  87. package/dist/slang-nodes/ErrorParameters.js.map +1 -1
  88. package/dist/slang-nodes/ErrorParametersDeclaration.js +3 -4
  89. package/dist/slang-nodes/ErrorParametersDeclaration.js.map +1 -1
  90. package/dist/slang-nodes/EventDefinition.js +4 -5
  91. package/dist/slang-nodes/EventDefinition.js.map +1 -1
  92. package/dist/slang-nodes/EventParameter.js +4 -5
  93. package/dist/slang-nodes/EventParameter.js.map +1 -1
  94. package/dist/slang-nodes/EventParameters.js +3 -4
  95. package/dist/slang-nodes/EventParameters.js.map +1 -1
  96. package/dist/slang-nodes/EventParametersDeclaration.js +3 -4
  97. package/dist/slang-nodes/EventParametersDeclaration.js.map +1 -1
  98. package/dist/slang-nodes/ExperimentalFeature.js +4 -5
  99. package/dist/slang-nodes/ExperimentalFeature.js.map +1 -1
  100. package/dist/slang-nodes/ExperimentalPragma.js +3 -4
  101. package/dist/slang-nodes/ExperimentalPragma.js.map +1 -1
  102. package/dist/slang-nodes/ExponentiationExpression.js +4 -5
  103. package/dist/slang-nodes/ExponentiationExpression.js.map +1 -1
  104. package/dist/slang-nodes/Expression.js +30 -31
  105. package/dist/slang-nodes/Expression.js.map +1 -1
  106. package/dist/slang-nodes/ExpressionStatement.js +3 -4
  107. package/dist/slang-nodes/ExpressionStatement.js.map +1 -1
  108. package/dist/slang-nodes/FallbackFunctionAttribute.js +4 -5
  109. package/dist/slang-nodes/FallbackFunctionAttribute.js.map +1 -1
  110. package/dist/slang-nodes/FallbackFunctionAttributes.js +3 -4
  111. package/dist/slang-nodes/FallbackFunctionAttributes.js.map +1 -1
  112. package/dist/slang-nodes/FallbackFunctionDefinition.js +6 -9
  113. package/dist/slang-nodes/FallbackFunctionDefinition.js.map +1 -1
  114. package/dist/slang-nodes/ForStatement.js +6 -9
  115. package/dist/slang-nodes/ForStatement.js.map +1 -1
  116. package/dist/slang-nodes/ForStatementCondition.js +3 -4
  117. package/dist/slang-nodes/ForStatementCondition.js.map +1 -1
  118. package/dist/slang-nodes/ForStatementInitialization.js +5 -6
  119. package/dist/slang-nodes/ForStatementInitialization.js.map +1 -1
  120. package/dist/slang-nodes/FunctionAttribute.js +4 -5
  121. package/dist/slang-nodes/FunctionAttribute.js.map +1 -1
  122. package/dist/slang-nodes/FunctionAttributes.js +3 -4
  123. package/dist/slang-nodes/FunctionAttributes.js.map +1 -1
  124. package/dist/slang-nodes/FunctionBody.js +3 -4
  125. package/dist/slang-nodes/FunctionBody.js.map +1 -1
  126. package/dist/slang-nodes/FunctionCallExpression.js +4 -5
  127. package/dist/slang-nodes/FunctionCallExpression.js.map +1 -1
  128. package/dist/slang-nodes/FunctionDefinition.js +7 -10
  129. package/dist/slang-nodes/FunctionDefinition.js.map +1 -1
  130. package/dist/slang-nodes/FunctionName.js +3 -4
  131. package/dist/slang-nodes/FunctionName.js.map +1 -1
  132. package/dist/slang-nodes/FunctionType.js +5 -6
  133. package/dist/slang-nodes/FunctionType.js.map +1 -1
  134. package/dist/slang-nodes/FunctionTypeAttribute.js +2 -2
  135. package/dist/slang-nodes/FunctionTypeAttribute.js.map +1 -1
  136. package/dist/slang-nodes/FunctionTypeAttributes.js +3 -4
  137. package/dist/slang-nodes/FunctionTypeAttributes.js.map +1 -1
  138. package/dist/slang-nodes/HexNumberExpression.js +3 -4
  139. package/dist/slang-nodes/HexNumberExpression.js.map +1 -1
  140. package/dist/slang-nodes/HexStringLiteral.js +2 -2
  141. package/dist/slang-nodes/HexStringLiteral.js.map +1 -1
  142. package/dist/slang-nodes/HexStringLiterals.js +3 -4
  143. package/dist/slang-nodes/HexStringLiterals.js.map +1 -1
  144. package/dist/slang-nodes/Identifier.js +5 -6
  145. package/dist/slang-nodes/Identifier.js.map +1 -1
  146. package/dist/slang-nodes/IdentifierPath.js +3 -4
  147. package/dist/slang-nodes/IdentifierPath.js.map +1 -1
  148. package/dist/slang-nodes/IfStatement.js +5 -6
  149. package/dist/slang-nodes/IfStatement.js.map +1 -1
  150. package/dist/slang-nodes/ImportAlias.js +3 -4
  151. package/dist/slang-nodes/ImportAlias.js.map +1 -1
  152. package/dist/slang-nodes/ImportClause.js +5 -6
  153. package/dist/slang-nodes/ImportClause.js.map +1 -1
  154. package/dist/slang-nodes/ImportDeconstruction.js +4 -5
  155. package/dist/slang-nodes/ImportDeconstruction.js.map +1 -1
  156. package/dist/slang-nodes/ImportDeconstructionSymbol.js +4 -5
  157. package/dist/slang-nodes/ImportDeconstructionSymbol.js.map +1 -1
  158. package/dist/slang-nodes/ImportDeconstructionSymbols.js +3 -4
  159. package/dist/slang-nodes/ImportDeconstructionSymbols.js.map +1 -1
  160. package/dist/slang-nodes/ImportDirective.js +3 -4
  161. package/dist/slang-nodes/ImportDirective.js.map +1 -1
  162. package/dist/slang-nodes/IndexAccessEnd.js +3 -4
  163. package/dist/slang-nodes/IndexAccessEnd.js.map +1 -1
  164. package/dist/slang-nodes/IndexAccessExpression.js +5 -8
  165. package/dist/slang-nodes/IndexAccessExpression.js.map +1 -1
  166. package/dist/slang-nodes/InheritanceSpecifier.js +3 -4
  167. package/dist/slang-nodes/InheritanceSpecifier.js.map +1 -1
  168. package/dist/slang-nodes/InheritanceType.js +4 -5
  169. package/dist/slang-nodes/InheritanceType.js.map +1 -1
  170. package/dist/slang-nodes/InheritanceTypes.js +3 -4
  171. package/dist/slang-nodes/InheritanceTypes.js.map +1 -1
  172. package/dist/slang-nodes/InterfaceDefinition.js +5 -8
  173. package/dist/slang-nodes/InterfaceDefinition.js.map +1 -1
  174. package/dist/slang-nodes/InterfaceMembers.js +3 -4
  175. package/dist/slang-nodes/InterfaceMembers.js.map +1 -1
  176. package/dist/slang-nodes/LibraryDefinition.js +4 -5
  177. package/dist/slang-nodes/LibraryDefinition.js.map +1 -1
  178. package/dist/slang-nodes/LibraryMembers.js +3 -4
  179. package/dist/slang-nodes/LibraryMembers.js.map +1 -1
  180. package/dist/slang-nodes/MappingKey.js +4 -5
  181. package/dist/slang-nodes/MappingKey.js.map +1 -1
  182. package/dist/slang-nodes/MappingKeyType.js +4 -5
  183. package/dist/slang-nodes/MappingKeyType.js.map +1 -1
  184. package/dist/slang-nodes/MappingType.js +4 -5
  185. package/dist/slang-nodes/MappingType.js.map +1 -1
  186. package/dist/slang-nodes/MappingValue.js +4 -5
  187. package/dist/slang-nodes/MappingValue.js.map +1 -1
  188. package/dist/slang-nodes/MemberAccessExpression.js +4 -5
  189. package/dist/slang-nodes/MemberAccessExpression.js.map +1 -1
  190. package/dist/slang-nodes/ModifierAttribute.js +3 -4
  191. package/dist/slang-nodes/ModifierAttribute.js.map +1 -1
  192. package/dist/slang-nodes/ModifierAttributes.js +3 -4
  193. package/dist/slang-nodes/ModifierAttributes.js.map +1 -1
  194. package/dist/slang-nodes/ModifierDefinition.js +6 -10
  195. package/dist/slang-nodes/ModifierDefinition.js.map +1 -1
  196. package/dist/slang-nodes/ModifierInvocation.js +4 -5
  197. package/dist/slang-nodes/ModifierInvocation.js.map +1 -1
  198. package/dist/slang-nodes/MultiLineComment.js +4 -5
  199. package/dist/slang-nodes/MultiLineComment.js.map +1 -1
  200. package/dist/slang-nodes/MultiLineNatSpecComment.js +4 -5
  201. package/dist/slang-nodes/MultiLineNatSpecComment.js.map +1 -1
  202. package/dist/slang-nodes/MultiplicativeExpression.js +4 -5
  203. package/dist/slang-nodes/MultiplicativeExpression.js.map +1 -1
  204. package/dist/slang-nodes/NamedArgument.js +4 -5
  205. package/dist/slang-nodes/NamedArgument.js.map +1 -1
  206. package/dist/slang-nodes/NamedArgumentGroup.js +3 -4
  207. package/dist/slang-nodes/NamedArgumentGroup.js.map +1 -1
  208. package/dist/slang-nodes/NamedArguments.js +3 -4
  209. package/dist/slang-nodes/NamedArguments.js.map +1 -1
  210. package/dist/slang-nodes/NamedArgumentsDeclaration.js +3 -4
  211. package/dist/slang-nodes/NamedArgumentsDeclaration.js.map +1 -1
  212. package/dist/slang-nodes/NamedImport.js +4 -5
  213. package/dist/slang-nodes/NamedImport.js.map +1 -1
  214. package/dist/slang-nodes/NewExpression.js +3 -4
  215. package/dist/slang-nodes/NewExpression.js.map +1 -1
  216. package/dist/slang-nodes/NumberUnit.js +2 -2
  217. package/dist/slang-nodes/NumberUnit.js.map +1 -1
  218. package/dist/slang-nodes/OrExpression.js +4 -5
  219. package/dist/slang-nodes/OrExpression.js.map +1 -1
  220. package/dist/slang-nodes/OverridePaths.js +3 -4
  221. package/dist/slang-nodes/OverridePaths.js.map +1 -1
  222. package/dist/slang-nodes/OverridePathsDeclaration.js +3 -4
  223. package/dist/slang-nodes/OverridePathsDeclaration.js.map +1 -1
  224. package/dist/slang-nodes/OverrideSpecifier.js +3 -4
  225. package/dist/slang-nodes/OverrideSpecifier.js.map +1 -1
  226. package/dist/slang-nodes/Parameter.js +5 -8
  227. package/dist/slang-nodes/Parameter.js.map +1 -1
  228. package/dist/slang-nodes/Parameters.js +3 -4
  229. package/dist/slang-nodes/Parameters.js.map +1 -1
  230. package/dist/slang-nodes/ParametersDeclaration.js +3 -4
  231. package/dist/slang-nodes/ParametersDeclaration.js.map +1 -1
  232. package/dist/slang-nodes/PathImport.js +4 -5
  233. package/dist/slang-nodes/PathImport.js.map +1 -1
  234. package/dist/slang-nodes/PositionalArguments.js +3 -4
  235. package/dist/slang-nodes/PositionalArguments.js.map +1 -1
  236. package/dist/slang-nodes/PositionalArgumentsDeclaration.js +3 -4
  237. package/dist/slang-nodes/PositionalArgumentsDeclaration.js.map +1 -1
  238. package/dist/slang-nodes/PostfixExpression.js +3 -4
  239. package/dist/slang-nodes/PostfixExpression.js.map +1 -1
  240. package/dist/slang-nodes/Pragma.js +5 -6
  241. package/dist/slang-nodes/Pragma.js.map +1 -1
  242. package/dist/slang-nodes/PragmaDirective.js +3 -4
  243. package/dist/slang-nodes/PragmaDirective.js.map +1 -1
  244. package/dist/slang-nodes/PrefixExpression.js +3 -4
  245. package/dist/slang-nodes/PrefixExpression.js.map +1 -1
  246. package/dist/slang-nodes/ReceiveFunctionAttribute.js +4 -5
  247. package/dist/slang-nodes/ReceiveFunctionAttribute.js.map +1 -1
  248. package/dist/slang-nodes/ReceiveFunctionAttributes.js +3 -4
  249. package/dist/slang-nodes/ReceiveFunctionAttributes.js.map +1 -1
  250. package/dist/slang-nodes/ReceiveFunctionDefinition.js +5 -6
  251. package/dist/slang-nodes/ReceiveFunctionDefinition.js.map +1 -1
  252. package/dist/slang-nodes/ReturnStatement.js +3 -4
  253. package/dist/slang-nodes/ReturnStatement.js.map +1 -1
  254. package/dist/slang-nodes/ReturnsDeclaration.js +3 -4
  255. package/dist/slang-nodes/ReturnsDeclaration.js.map +1 -1
  256. package/dist/slang-nodes/RevertStatement.js +4 -7
  257. package/dist/slang-nodes/RevertStatement.js.map +1 -1
  258. package/dist/slang-nodes/ShiftExpression.js +4 -5
  259. package/dist/slang-nodes/ShiftExpression.js.map +1 -1
  260. package/dist/slang-nodes/SimpleVersionLiteral.js +2 -2
  261. package/dist/slang-nodes/SimpleVersionLiteral.js.map +1 -1
  262. package/dist/slang-nodes/SingleLineComment.js +4 -5
  263. package/dist/slang-nodes/SingleLineComment.js.map +1 -1
  264. package/dist/slang-nodes/SingleLineNatSpecComment.js +4 -5
  265. package/dist/slang-nodes/SingleLineNatSpecComment.js.map +1 -1
  266. package/dist/slang-nodes/SourceUnit.js +3 -4
  267. package/dist/slang-nodes/SourceUnit.js.map +1 -1
  268. package/dist/slang-nodes/SourceUnitMember.js +15 -16
  269. package/dist/slang-nodes/SourceUnitMember.js.map +1 -1
  270. package/dist/slang-nodes/SourceUnitMembers.js +3 -4
  271. package/dist/slang-nodes/SourceUnitMembers.js.map +1 -1
  272. package/dist/slang-nodes/StateVariableAttribute.js +3 -4
  273. package/dist/slang-nodes/StateVariableAttribute.js.map +1 -1
  274. package/dist/slang-nodes/StateVariableAttributes.js +3 -4
  275. package/dist/slang-nodes/StateVariableAttributes.js.map +1 -1
  276. package/dist/slang-nodes/StateVariableDefinition.js +6 -7
  277. package/dist/slang-nodes/StateVariableDefinition.js.map +1 -1
  278. package/dist/slang-nodes/StateVariableDefinitionValue.js +3 -4
  279. package/dist/slang-nodes/StateVariableDefinitionValue.js.map +1 -1
  280. package/dist/slang-nodes/Statement.js +19 -20
  281. package/dist/slang-nodes/Statement.js.map +1 -1
  282. package/dist/slang-nodes/Statements.js +3 -4
  283. package/dist/slang-nodes/Statements.js.map +1 -1
  284. package/dist/slang-nodes/StorageLocation.js +2 -2
  285. package/dist/slang-nodes/StorageLocation.js.map +1 -1
  286. package/dist/slang-nodes/StringExpression.js +7 -8
  287. package/dist/slang-nodes/StringExpression.js.map +1 -1
  288. package/dist/slang-nodes/StringLiteral.js +2 -2
  289. package/dist/slang-nodes/StringLiteral.js.map +1 -1
  290. package/dist/slang-nodes/StringLiterals.js +3 -4
  291. package/dist/slang-nodes/StringLiterals.js.map +1 -1
  292. package/dist/slang-nodes/StructDefinition.js +4 -5
  293. package/dist/slang-nodes/StructDefinition.js.map +1 -1
  294. package/dist/slang-nodes/StructMember.js +4 -5
  295. package/dist/slang-nodes/StructMember.js.map +1 -1
  296. package/dist/slang-nodes/StructMembers.js +3 -4
  297. package/dist/slang-nodes/StructMembers.js.map +1 -1
  298. package/dist/slang-nodes/ThrowStatement.js +2 -2
  299. package/dist/slang-nodes/ThrowStatement.js.map +1 -1
  300. package/dist/slang-nodes/TryStatement.js +6 -10
  301. package/dist/slang-nodes/TryStatement.js.map +1 -1
  302. package/dist/slang-nodes/TupleDeconstructionElement.js +3 -4
  303. package/dist/slang-nodes/TupleDeconstructionElement.js.map +1 -1
  304. package/dist/slang-nodes/TupleDeconstructionElements.js +3 -4
  305. package/dist/slang-nodes/TupleDeconstructionElements.js.map +1 -1
  306. package/dist/slang-nodes/TupleDeconstructionStatement.js +4 -5
  307. package/dist/slang-nodes/TupleDeconstructionStatement.js.map +1 -1
  308. package/dist/slang-nodes/TupleExpression.js +3 -4
  309. package/dist/slang-nodes/TupleExpression.js.map +1 -1
  310. package/dist/slang-nodes/TupleMember.js +4 -5
  311. package/dist/slang-nodes/TupleMember.js.map +1 -1
  312. package/dist/slang-nodes/TupleValue.js +3 -4
  313. package/dist/slang-nodes/TupleValue.js.map +1 -1
  314. package/dist/slang-nodes/TupleValues.js +3 -4
  315. package/dist/slang-nodes/TupleValues.js.map +1 -1
  316. package/dist/slang-nodes/TypeExpression.js +3 -4
  317. package/dist/slang-nodes/TypeExpression.js.map +1 -1
  318. package/dist/slang-nodes/TypeName.js +7 -8
  319. package/dist/slang-nodes/TypeName.js.map +1 -1
  320. package/dist/slang-nodes/TypedTupleMember.js +5 -8
  321. package/dist/slang-nodes/TypedTupleMember.js.map +1 -1
  322. package/dist/slang-nodes/UncheckedBlock.js +3 -4
  323. package/dist/slang-nodes/UncheckedBlock.js.map +1 -1
  324. package/dist/slang-nodes/UnicodeStringLiteral.js +2 -2
  325. package/dist/slang-nodes/UnicodeStringLiteral.js.map +1 -1
  326. package/dist/slang-nodes/UnicodeStringLiterals.js +3 -4
  327. package/dist/slang-nodes/UnicodeStringLiterals.js.map +1 -1
  328. package/dist/slang-nodes/UnnamedFunctionAttribute.js +3 -4
  329. package/dist/slang-nodes/UnnamedFunctionAttribute.js.map +1 -1
  330. package/dist/slang-nodes/UnnamedFunctionAttributes.js +3 -4
  331. package/dist/slang-nodes/UnnamedFunctionAttributes.js.map +1 -1
  332. package/dist/slang-nodes/UnnamedFunctionDefinition.js +5 -6
  333. package/dist/slang-nodes/UnnamedFunctionDefinition.js.map +1 -1
  334. package/dist/slang-nodes/UntypedTupleMember.js +4 -7
  335. package/dist/slang-nodes/UntypedTupleMember.js.map +1 -1
  336. package/dist/slang-nodes/UserDefinedValueTypeDefinition.js +4 -5
  337. package/dist/slang-nodes/UserDefinedValueTypeDefinition.js.map +1 -1
  338. package/dist/slang-nodes/UsingAlias.js +3 -4
  339. package/dist/slang-nodes/UsingAlias.js.map +1 -1
  340. package/dist/slang-nodes/UsingClause.js +4 -5
  341. package/dist/slang-nodes/UsingClause.js.map +1 -1
  342. package/dist/slang-nodes/UsingDeconstruction.js +3 -4
  343. package/dist/slang-nodes/UsingDeconstruction.js.map +1 -1
  344. package/dist/slang-nodes/UsingDeconstructionSymbol.js +4 -5
  345. package/dist/slang-nodes/UsingDeconstructionSymbol.js.map +1 -1
  346. package/dist/slang-nodes/UsingDeconstructionSymbols.js +3 -4
  347. package/dist/slang-nodes/UsingDeconstructionSymbols.js.map +1 -1
  348. package/dist/slang-nodes/UsingDirective.js +4 -5
  349. package/dist/slang-nodes/UsingDirective.js.map +1 -1
  350. package/dist/slang-nodes/UsingOperator.js +2 -2
  351. package/dist/slang-nodes/UsingOperator.js.map +1 -1
  352. package/dist/slang-nodes/UsingTarget.js +3 -4
  353. package/dist/slang-nodes/UsingTarget.js.map +1 -1
  354. package/dist/slang-nodes/VariableDeclarationStatement.js +6 -10
  355. package/dist/slang-nodes/VariableDeclarationStatement.js.map +1 -1
  356. package/dist/slang-nodes/VariableDeclarationType.js +3 -4
  357. package/dist/slang-nodes/VariableDeclarationType.js.map +1 -1
  358. package/dist/slang-nodes/VariableDeclarationValue.js +3 -4
  359. package/dist/slang-nodes/VariableDeclarationValue.js.map +1 -1
  360. package/dist/slang-nodes/VersionExpression.js +4 -5
  361. package/dist/slang-nodes/VersionExpression.js.map +1 -1
  362. package/dist/slang-nodes/VersionExpressionSet.js +3 -4
  363. package/dist/slang-nodes/VersionExpressionSet.js.map +1 -1
  364. package/dist/slang-nodes/VersionExpressionSets.js +3 -4
  365. package/dist/slang-nodes/VersionExpressionSets.js.map +1 -1
  366. package/dist/slang-nodes/VersionLiteral.js +3 -4
  367. package/dist/slang-nodes/VersionLiteral.js.map +1 -1
  368. package/dist/slang-nodes/VersionOperator.js +2 -2
  369. package/dist/slang-nodes/VersionOperator.js.map +1 -1
  370. package/dist/slang-nodes/VersionPragma.js +3 -4
  371. package/dist/slang-nodes/VersionPragma.js.map +1 -1
  372. package/dist/slang-nodes/VersionRange.js +4 -5
  373. package/dist/slang-nodes/VersionRange.js.map +1 -1
  374. package/dist/slang-nodes/VersionTerm.js +4 -7
  375. package/dist/slang-nodes/VersionTerm.js.map +1 -1
  376. package/dist/slang-nodes/WhileStatement.js +4 -5
  377. package/dist/slang-nodes/WhileStatement.js.map +1 -1
  378. package/dist/slang-nodes/YulArguments.js +3 -4
  379. package/dist/slang-nodes/YulArguments.js.map +1 -1
  380. package/dist/slang-nodes/YulAssignmentOperator.js +3 -4
  381. package/dist/slang-nodes/YulAssignmentOperator.js.map +1 -1
  382. package/dist/slang-nodes/YulBlock.js +3 -4
  383. package/dist/slang-nodes/YulBlock.js.map +1 -1
  384. package/dist/slang-nodes/YulBreakStatement.js +2 -2
  385. package/dist/slang-nodes/YulBreakStatement.js.map +1 -1
  386. package/dist/slang-nodes/YulBuiltInFunction.js +2 -2
  387. package/dist/slang-nodes/YulBuiltInFunction.js.map +1 -1
  388. package/dist/slang-nodes/YulColonAndEqual.js +2 -2
  389. package/dist/slang-nodes/YulColonAndEqual.js.map +1 -1
  390. package/dist/slang-nodes/YulContinueStatement.js +2 -2
  391. package/dist/slang-nodes/YulContinueStatement.js.map +1 -1
  392. package/dist/slang-nodes/YulDefaultCase.js +3 -4
  393. package/dist/slang-nodes/YulDefaultCase.js.map +1 -1
  394. package/dist/slang-nodes/YulEqualAndColon.js +2 -2
  395. package/dist/slang-nodes/YulEqualAndColon.js.map +1 -1
  396. package/dist/slang-nodes/YulExpression.js +6 -7
  397. package/dist/slang-nodes/YulExpression.js.map +1 -1
  398. package/dist/slang-nodes/YulForStatement.js +6 -7
  399. package/dist/slang-nodes/YulForStatement.js.map +1 -1
  400. package/dist/slang-nodes/YulFunctionCallExpression.js +4 -5
  401. package/dist/slang-nodes/YulFunctionCallExpression.js.map +1 -1
  402. package/dist/slang-nodes/YulFunctionDefinition.js +6 -9
  403. package/dist/slang-nodes/YulFunctionDefinition.js.map +1 -1
  404. package/dist/slang-nodes/YulIdentifier.js +5 -6
  405. package/dist/slang-nodes/YulIdentifier.js.map +1 -1
  406. package/dist/slang-nodes/YulIfStatement.js +4 -5
  407. package/dist/slang-nodes/YulIfStatement.js.map +1 -1
  408. package/dist/slang-nodes/YulLabel.js +3 -4
  409. package/dist/slang-nodes/YulLabel.js.map +1 -1
  410. package/dist/slang-nodes/YulLeaveStatement.js +2 -2
  411. package/dist/slang-nodes/YulLeaveStatement.js.map +1 -1
  412. package/dist/slang-nodes/YulLiteral.js +4 -5
  413. package/dist/slang-nodes/YulLiteral.js.map +1 -1
  414. package/dist/slang-nodes/YulParameters.js +3 -4
  415. package/dist/slang-nodes/YulParameters.js.map +1 -1
  416. package/dist/slang-nodes/YulParametersDeclaration.js +3 -4
  417. package/dist/slang-nodes/YulParametersDeclaration.js.map +1 -1
  418. package/dist/slang-nodes/YulPath.js +3 -4
  419. package/dist/slang-nodes/YulPath.js.map +1 -1
  420. package/dist/slang-nodes/YulPathComponent.js +3 -4
  421. package/dist/slang-nodes/YulPathComponent.js.map +1 -1
  422. package/dist/slang-nodes/YulPaths.js +3 -4
  423. package/dist/slang-nodes/YulPaths.js.map +1 -1
  424. package/dist/slang-nodes/YulReturnsDeclaration.js +3 -4
  425. package/dist/slang-nodes/YulReturnsDeclaration.js.map +1 -1
  426. package/dist/slang-nodes/YulStackAssignmentOperator.js +3 -4
  427. package/dist/slang-nodes/YulStackAssignmentOperator.js.map +1 -1
  428. package/dist/slang-nodes/YulStackAssignmentStatement.js +4 -5
  429. package/dist/slang-nodes/YulStackAssignmentStatement.js.map +1 -1
  430. package/dist/slang-nodes/YulStatement.js +15 -16
  431. package/dist/slang-nodes/YulStatement.js.map +1 -1
  432. package/dist/slang-nodes/YulStatements.js +3 -4
  433. package/dist/slang-nodes/YulStatements.js.map +1 -1
  434. package/dist/slang-nodes/YulSwitchCase.js +4 -5
  435. package/dist/slang-nodes/YulSwitchCase.js.map +1 -1
  436. package/dist/slang-nodes/YulSwitchCases.js +3 -4
  437. package/dist/slang-nodes/YulSwitchCases.js.map +1 -1
  438. package/dist/slang-nodes/YulSwitchStatement.js +4 -5
  439. package/dist/slang-nodes/YulSwitchStatement.js.map +1 -1
  440. package/dist/slang-nodes/YulValueCase.js +4 -5
  441. package/dist/slang-nodes/YulValueCase.js.map +1 -1
  442. package/dist/slang-nodes/YulVariableAssignmentStatement.js +5 -6
  443. package/dist/slang-nodes/YulVariableAssignmentStatement.js.map +1 -1
  444. package/dist/slang-nodes/YulVariableDeclarationStatement.js +4 -5
  445. package/dist/slang-nodes/YulVariableDeclarationStatement.js.map +1 -1
  446. package/dist/slang-nodes/YulVariableDeclarationValue.js +4 -5
  447. package/dist/slang-nodes/YulVariableDeclarationValue.js.map +1 -1
  448. package/dist/slang-nodes/YulVariableNames.js +3 -4
  449. package/dist/slang-nodes/YulVariableNames.js.map +1 -1
  450. package/dist/slang-utils/create-parser.js +57 -25
  451. package/dist/slang-utils/create-parser.js.map +1 -1
  452. package/dist/slang-utils/metadata.js +32 -15
  453. package/dist/slang-utils/metadata.js.map +1 -1
  454. package/dist/slangSolidityParser.js +5 -14
  455. package/dist/slangSolidityParser.js.map +1 -1
  456. package/dist/standalone.js +1 -2
  457. package/dist/standalone.js.map +1 -1
  458. package/package.json +9 -11
  459. package/src/slang-nodes/AbicoderPragma.ts +3 -4
  460. package/src/slang-nodes/AdditiveExpression.ts +4 -9
  461. package/src/slang-nodes/AddressType.ts +2 -2
  462. package/src/slang-nodes/AndExpression.ts +4 -9
  463. package/src/slang-nodes/ArgumentsDeclaration.ts +2 -9
  464. package/src/slang-nodes/ArrayExpression.ts +4 -9
  465. package/src/slang-nodes/ArrayTypeName.ts +5 -10
  466. package/src/slang-nodes/ArrayValues.ts +4 -11
  467. package/src/slang-nodes/AssemblyFlags.ts +4 -11
  468. package/src/slang-nodes/AssemblyFlagsDeclaration.ts +2 -4
  469. package/src/slang-nodes/AssemblyStatement.ts +6 -14
  470. package/src/slang-nodes/AssignmentExpression.ts +5 -10
  471. package/src/slang-nodes/BitwiseAndExpression.ts +4 -9
  472. package/src/slang-nodes/BitwiseOrExpression.ts +4 -9
  473. package/src/slang-nodes/BitwiseXorExpression.ts +4 -9
  474. package/src/slang-nodes/Block.ts +3 -4
  475. package/src/slang-nodes/BreakStatement.ts +2 -2
  476. package/src/slang-nodes/CallOptions.ts +3 -10
  477. package/src/slang-nodes/CallOptionsExpression.ts +5 -10
  478. package/src/slang-nodes/CatchClause.ts +5 -12
  479. package/src/slang-nodes/CatchClauseError.ts +5 -16
  480. package/src/slang-nodes/CatchClauses.ts +4 -11
  481. package/src/slang-nodes/ComparisonExpression.ts +4 -9
  482. package/src/slang-nodes/ConditionalExpression.ts +6 -19
  483. package/src/slang-nodes/ConstantDefinition.ts +6 -11
  484. package/src/slang-nodes/ConstructorAttribute.ts +3 -8
  485. package/src/slang-nodes/ConstructorAttributes.ts +3 -8
  486. package/src/slang-nodes/ConstructorDefinition.ts +6 -19
  487. package/src/slang-nodes/ContinueStatement.ts +2 -2
  488. package/src/slang-nodes/ContractDefinition.ts +5 -16
  489. package/src/slang-nodes/ContractMember.ts +4 -24
  490. package/src/slang-nodes/ContractMembers.ts +3 -10
  491. package/src/slang-nodes/DecimalNumberExpression.ts +3 -4
  492. package/src/slang-nodes/DoWhileStatement.ts +5 -10
  493. package/src/slang-nodes/ElementaryType.ts +3 -4
  494. package/src/slang-nodes/ElseBranch.ts +4 -9
  495. package/src/slang-nodes/EmitStatement.ts +5 -14
  496. package/src/slang-nodes/EnumDefinition.ts +4 -5
  497. package/src/slang-nodes/EnumMembers.ts +3 -6
  498. package/src/slang-nodes/EqualityExpression.ts +4 -9
  499. package/src/slang-nodes/ErrorDefinition.ts +5 -14
  500. package/src/slang-nodes/ErrorParameter.ts +5 -10
  501. package/src/slang-nodes/ErrorParameters.ts +4 -11
  502. package/src/slang-nodes/ErrorParametersDeclaration.ts +2 -4
  503. package/src/slang-nodes/EventDefinition.ts +5 -14
  504. package/src/slang-nodes/EventParameter.ts +5 -10
  505. package/src/slang-nodes/EventParameters.ts +4 -11
  506. package/src/slang-nodes/EventParametersDeclaration.ts +2 -4
  507. package/src/slang-nodes/ExperimentalFeature.ts +4 -9
  508. package/src/slang-nodes/ExperimentalPragma.ts +4 -9
  509. package/src/slang-nodes/ExponentiationExpression.ts +3 -5
  510. package/src/slang-nodes/Expression.ts +6 -40
  511. package/src/slang-nodes/ExpressionStatement.ts +4 -9
  512. package/src/slang-nodes/FallbackFunctionAttribute.ts +2 -6
  513. package/src/slang-nodes/FallbackFunctionAttributes.ts +2 -5
  514. package/src/slang-nodes/FallbackFunctionDefinition.ts +5 -17
  515. package/src/slang-nodes/ForStatement.ts +5 -17
  516. package/src/slang-nodes/ForStatementCondition.ts +3 -8
  517. package/src/slang-nodes/ForStatementInitialization.ts +1 -6
  518. package/src/slang-nodes/FunctionAttribute.ts +3 -10
  519. package/src/slang-nodes/FunctionAttributes.ts +4 -11
  520. package/src/slang-nodes/FunctionBody.ts +3 -8
  521. package/src/slang-nodes/FunctionCallExpression.ts +3 -9
  522. package/src/slang-nodes/FunctionDefinition.ts +8 -23
  523. package/src/slang-nodes/FunctionName.ts +3 -4
  524. package/src/slang-nodes/FunctionType.ts +6 -15
  525. package/src/slang-nodes/FunctionTypeAttribute.ts +2 -2
  526. package/src/slang-nodes/FunctionTypeAttributes.ts +3 -6
  527. package/src/slang-nodes/HexNumberExpression.ts +3 -4
  528. package/src/slang-nodes/HexStringLiteral.ts +2 -6
  529. package/src/slang-nodes/HexStringLiterals.ts +4 -11
  530. package/src/slang-nodes/Identifier.ts +6 -6
  531. package/src/slang-nodes/IdentifierPath.ts +3 -6
  532. package/src/slang-nodes/IfStatement.ts +5 -10
  533. package/src/slang-nodes/ImportAlias.ts +3 -4
  534. package/src/slang-nodes/ImportClause.ts +4 -18
  535. package/src/slang-nodes/ImportDeconstruction.ts +5 -10
  536. package/src/slang-nodes/ImportDeconstructionSymbol.ts +4 -5
  537. package/src/slang-nodes/ImportDeconstructionSymbols.ts +3 -6
  538. package/src/slang-nodes/ImportDirective.ts +4 -9
  539. package/src/slang-nodes/IndexAccessEnd.ts +3 -8
  540. package/src/slang-nodes/IndexAccessExpression.ts +6 -13
  541. package/src/slang-nodes/InheritanceSpecifier.ts +4 -9
  542. package/src/slang-nodes/InheritanceType.ts +5 -14
  543. package/src/slang-nodes/InheritanceTypes.ts +4 -11
  544. package/src/slang-nodes/InterfaceDefinition.ts +5 -16
  545. package/src/slang-nodes/InterfaceMembers.ts +3 -10
  546. package/src/slang-nodes/LibraryDefinition.ts +5 -10
  547. package/src/slang-nodes/LibraryMembers.ts +3 -10
  548. package/src/slang-nodes/MappingKey.ts +4 -5
  549. package/src/slang-nodes/MappingKeyType.ts +4 -11
  550. package/src/slang-nodes/MappingType.ts +5 -10
  551. package/src/slang-nodes/MappingValue.ts +5 -10
  552. package/src/slang-nodes/MemberAccessExpression.ts +3 -5
  553. package/src/slang-nodes/ModifierAttribute.ts +3 -4
  554. package/src/slang-nodes/ModifierAttributes.ts +3 -6
  555. package/src/slang-nodes/ModifierDefinition.ts +6 -18
  556. package/src/slang-nodes/ModifierInvocation.ts +5 -14
  557. package/src/slang-nodes/MultiLineComment.ts +5 -5
  558. package/src/slang-nodes/MultiLineNatSpecComment.ts +5 -5
  559. package/src/slang-nodes/MultiplicativeExpression.ts +3 -5
  560. package/src/slang-nodes/NamedArgument.ts +5 -10
  561. package/src/slang-nodes/NamedArgumentGroup.ts +4 -9
  562. package/src/slang-nodes/NamedArguments.ts +3 -10
  563. package/src/slang-nodes/NamedArgumentsDeclaration.ts +2 -8
  564. package/src/slang-nodes/NamedImport.ts +5 -10
  565. package/src/slang-nodes/NewExpression.ts +4 -9
  566. package/src/slang-nodes/NumberUnit.ts +2 -2
  567. package/src/slang-nodes/OrExpression.ts +4 -9
  568. package/src/slang-nodes/OverridePaths.ts +3 -6
  569. package/src/slang-nodes/OverridePathsDeclaration.ts +3 -4
  570. package/src/slang-nodes/OverrideSpecifier.ts +3 -7
  571. package/src/slang-nodes/Parameter.ts +5 -15
  572. package/src/slang-nodes/Parameters.ts +4 -11
  573. package/src/slang-nodes/ParametersDeclaration.ts +4 -9
  574. package/src/slang-nodes/PathImport.ts +5 -10
  575. package/src/slang-nodes/PositionalArguments.ts +4 -11
  576. package/src/slang-nodes/PositionalArgumentsDeclaration.ts +3 -9
  577. package/src/slang-nodes/PostfixExpression.ts +4 -9
  578. package/src/slang-nodes/Pragma.ts +4 -16
  579. package/src/slang-nodes/PragmaDirective.ts +4 -9
  580. package/src/slang-nodes/PrefixExpression.ts +3 -8
  581. package/src/slang-nodes/ReceiveFunctionAttribute.ts +2 -6
  582. package/src/slang-nodes/ReceiveFunctionAttributes.ts +2 -5
  583. package/src/slang-nodes/ReceiveFunctionDefinition.ts +4 -14
  584. package/src/slang-nodes/ReturnStatement.ts +3 -8
  585. package/src/slang-nodes/ReturnsDeclaration.ts +4 -13
  586. package/src/slang-nodes/RevertStatement.ts +5 -16
  587. package/src/slang-nodes/ShiftExpression.ts +4 -9
  588. package/src/slang-nodes/SimpleVersionLiteral.ts +2 -2
  589. package/src/slang-nodes/SingleLineComment.ts +5 -5
  590. package/src/slang-nodes/SingleLineNatSpecComment.ts +5 -5
  591. package/src/slang-nodes/SourceUnit.ts +3 -8
  592. package/src/slang-nodes/SourceUnitMember.ts +4 -24
  593. package/src/slang-nodes/SourceUnitMembers.ts +3 -10
  594. package/src/slang-nodes/StateVariableAttribute.ts +3 -4
  595. package/src/slang-nodes/StateVariableAttributes.ts +3 -6
  596. package/src/slang-nodes/StateVariableDefinition.ts +5 -11
  597. package/src/slang-nodes/StateVariableDefinitionValue.ts +2 -4
  598. package/src/slang-nodes/Statement.ts +7 -35
  599. package/src/slang-nodes/Statements.ts +3 -10
  600. package/src/slang-nodes/StorageLocation.ts +2 -2
  601. package/src/slang-nodes/StringExpression.ts +2 -12
  602. package/src/slang-nodes/StringLiteral.ts +2 -6
  603. package/src/slang-nodes/StringLiterals.ts +4 -11
  604. package/src/slang-nodes/StructDefinition.ts +5 -10
  605. package/src/slang-nodes/StructMember.ts +5 -10
  606. package/src/slang-nodes/StructMembers.ts +4 -11
  607. package/src/slang-nodes/ThrowStatement.ts +2 -2
  608. package/src/slang-nodes/TryStatement.ts +6 -14
  609. package/src/slang-nodes/TupleDeconstructionElement.ts +2 -4
  610. package/src/slang-nodes/TupleDeconstructionElements.ts +2 -5
  611. package/src/slang-nodes/TupleDeconstructionStatement.ts +3 -9
  612. package/src/slang-nodes/TupleExpression.ts +4 -9
  613. package/src/slang-nodes/TupleMember.ts +3 -10
  614. package/src/slang-nodes/TupleValue.ts +3 -8
  615. package/src/slang-nodes/TupleValues.ts +4 -11
  616. package/src/slang-nodes/TypeExpression.ts +4 -9
  617. package/src/slang-nodes/TypeName.ts +5 -22
  618. package/src/slang-nodes/TypedTupleMember.ts +6 -16
  619. package/src/slang-nodes/UncheckedBlock.ts +4 -9
  620. package/src/slang-nodes/UnicodeStringLiteral.ts +2 -6
  621. package/src/slang-nodes/UnicodeStringLiterals.ts +3 -8
  622. package/src/slang-nodes/UnnamedFunctionAttribute.ts +2 -4
  623. package/src/slang-nodes/UnnamedFunctionAttributes.ts +2 -5
  624. package/src/slang-nodes/UnnamedFunctionDefinition.ts +4 -14
  625. package/src/slang-nodes/UntypedTupleMember.ts +4 -10
  626. package/src/slang-nodes/UserDefinedValueTypeDefinition.ts +4 -5
  627. package/src/slang-nodes/UsingAlias.ts +3 -4
  628. package/src/slang-nodes/UsingClause.ts +4 -9
  629. package/src/slang-nodes/UsingDeconstruction.ts +3 -4
  630. package/src/slang-nodes/UsingDeconstructionSymbol.ts +4 -5
  631. package/src/slang-nodes/UsingDeconstructionSymbols.ts +3 -6
  632. package/src/slang-nodes/UsingDirective.ts +5 -10
  633. package/src/slang-nodes/UsingOperator.ts +2 -2
  634. package/src/slang-nodes/UsingTarget.ts +3 -8
  635. package/src/slang-nodes/VariableDeclarationStatement.ts +5 -17
  636. package/src/slang-nodes/VariableDeclarationType.ts +2 -4
  637. package/src/slang-nodes/VariableDeclarationValue.ts +2 -4
  638. package/src/slang-nodes/VersionExpression.ts +4 -11
  639. package/src/slang-nodes/VersionExpressionSet.ts +3 -6
  640. package/src/slang-nodes/VersionExpressionSets.ts +3 -6
  641. package/src/slang-nodes/VersionLiteral.ts +3 -4
  642. package/src/slang-nodes/VersionOperator.ts +2 -2
  643. package/src/slang-nodes/VersionPragma.ts +3 -4
  644. package/src/slang-nodes/VersionRange.ts +4 -5
  645. package/src/slang-nodes/VersionTerm.ts +4 -7
  646. package/src/slang-nodes/WhileStatement.ts +5 -10
  647. package/src/slang-nodes/YulArguments.ts +4 -11
  648. package/src/slang-nodes/YulAssignmentOperator.ts +3 -4
  649. package/src/slang-nodes/YulBlock.ts +4 -9
  650. package/src/slang-nodes/YulBreakStatement.ts +2 -2
  651. package/src/slang-nodes/YulBuiltInFunction.ts +2 -2
  652. package/src/slang-nodes/YulColonAndEqual.ts +2 -2
  653. package/src/slang-nodes/YulContinueStatement.ts +2 -2
  654. package/src/slang-nodes/YulDefaultCase.ts +4 -9
  655. package/src/slang-nodes/YulEqualAndColon.ts +2 -2
  656. package/src/slang-nodes/YulExpression.ts +5 -16
  657. package/src/slang-nodes/YulForStatement.ts +7 -12
  658. package/src/slang-nodes/YulFunctionCallExpression.ts +3 -5
  659. package/src/slang-nodes/YulFunctionDefinition.ts +6 -13
  660. package/src/slang-nodes/YulIdentifier.ts +6 -6
  661. package/src/slang-nodes/YulIfStatement.ts +5 -10
  662. package/src/slang-nodes/YulLabel.ts +3 -4
  663. package/src/slang-nodes/YulLeaveStatement.ts +2 -2
  664. package/src/slang-nodes/YulLiteral.ts +2 -9
  665. package/src/slang-nodes/YulParameters.ts +3 -6
  666. package/src/slang-nodes/YulParametersDeclaration.ts +3 -4
  667. package/src/slang-nodes/YulPath.ts +3 -6
  668. package/src/slang-nodes/YulPathComponent.ts +3 -4
  669. package/src/slang-nodes/YulPaths.ts +3 -6
  670. package/src/slang-nodes/YulReturnsDeclaration.ts +3 -4
  671. package/src/slang-nodes/YulStackAssignmentOperator.ts +3 -4
  672. package/src/slang-nodes/YulStackAssignmentStatement.ts +5 -9
  673. package/src/slang-nodes/YulStatement.ts +8 -28
  674. package/src/slang-nodes/YulStatements.ts +3 -10
  675. package/src/slang-nodes/YulSwitchCase.ts +2 -9
  676. package/src/slang-nodes/YulSwitchCases.ts +4 -11
  677. package/src/slang-nodes/YulSwitchStatement.ts +5 -10
  678. package/src/slang-nodes/YulValueCase.ts +5 -10
  679. package/src/slang-nodes/YulVariableAssignmentStatement.ts +4 -6
  680. package/src/slang-nodes/YulVariableDeclarationStatement.ts +3 -9
  681. package/src/slang-nodes/YulVariableDeclarationValue.ts +3 -5
  682. package/src/slang-nodes/YulVariableNames.ts +3 -6
  683. package/src/slang-utils/create-parser.ts +81 -27
  684. package/src/slang-utils/metadata.ts +33 -17
  685. package/src/slangSolidityParser.ts +5 -21
  686. package/src/types.d.ts +0 -1
  687. package/dist/standalone.js.LICENSE.txt +0 -5
@@ -1,3 +1,2 @@
1
- /*! For license information please see standalone.js.LICENSE.txt */
2
- var t,e,r,s,i,n,a={3121:function(t,e,r){var s;"undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self&&self,s=()=>{var t=(()=>{var t=Object.defineProperty,e={};((e,r)=>{for(var s in r)t(e,s,{get:r[s],enumerable:!0})})(e,{ParserError:()=>Ie,parse:()=>De,tokenize:()=>Ne,visit:()=>Oe});var r={92:()=>{}},s={};function i(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={exports:{}};return r[t](n,n.exports,i),n.exports}i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};(()=>{i.d(n,{dx:()=>W,q2:()=>Ct,FO:()=>Ee,xf:()=>ke,Gy:()=>Ke,s4:()=>Nt,c7:()=>De,_7:()=>ce,tx:()=>_e,gp:()=>xe,cK:()=>At,zs:()=>ge,AV:()=>ke,Xp:()=>x,VS:()=>v,ul:()=>z,hW:()=>Yt,x1:()=>Xt,z5:()=>ee,oN:()=>de,TB:()=>pe,u1:()=>me,_b:()=>Pe,$F:()=>se,_T:()=>Fe,db:()=>ie,Zx:()=>te,_x:()=>Pt,r8:()=>q,JI:()=>I,TP:()=>N,WU:()=>t,Nj:()=>h,ZP:()=>Xe});class t{constructor(){this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null}getTokenSource(){return this.source[0]}getInputStream(){return this.source[1]}get text(){return this._text}set text(t){this._text=t}}function e(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!(t[r]===e[r]||t[r].equals&&t[r].equals(e[r])))return!1;return!0}t.INVALID_TYPE=0,t.EPSILON=-2,t.MIN_USER_TOKEN_TYPE=1,t.EOF=-1,t.DEFAULT_CHANNEL=0,t.HIDDEN_CHANNEL=1;const r=Math.round(Math.random()*Math.pow(2,32));function s(t){if(!t)return 0;const e=typeof t,s="string"===e?t:!("object"!==e||!t.toString)&&t.toString();if(!s)return 0;let i,n;const a=3&s.length,o=s.length-a;let c=r;const l=3432918353,h=461845907;let u=0;for(;u<o;)n=255&s.charCodeAt(u)|(255&s.charCodeAt(++u))<<8|(255&s.charCodeAt(++u))<<16|(255&s.charCodeAt(++u))<<24,++u,n=(65535&n)*l+(((n>>>16)*l&65535)<<16)&4294967295,n=n<<15|n>>>17,n=(65535&n)*h+(((n>>>16)*h&65535)<<16)&4294967295,c^=n,c=c<<13|c>>>19,i=5*(65535&c)+((5*(c>>>16)&65535)<<16)&4294967295,c=27492+(65535&i)+((58964+(i>>>16)&65535)<<16);switch(n=0,a){case 3:n^=(255&s.charCodeAt(u+2))<<16;case 2:n^=(255&s.charCodeAt(u+1))<<8;case 1:n^=255&s.charCodeAt(u),n=(65535&n)*l+(((n>>>16)*l&65535)<<16)&4294967295,n=n<<15|n>>>17,n=(65535&n)*h+(((n>>>16)*h&65535)<<16)&4294967295,c^=n}return c^=s.length,c^=c>>>16,c=2246822507*(65535&c)+((2246822507*(c>>>16)&65535)<<16)&4294967295,c^=c>>>13,c=3266489909*(65535&c)+((3266489909*(c>>>16)&65535)<<16)&4294967295,c^=c>>>16,c>>>0}class a{constructor(){this.count=0,this.hash=0}update(){for(let t=0;t<arguments.length;t++){const e=arguments[t];if(null!=e)if(Array.isArray(e))this.update.apply(this,e);else{let t=0;switch(typeof e){case"undefined":case"function":continue;case"number":case"boolean":t=e;break;case"string":t=s(e);break;default:e.updateHashCode?e.updateHashCode(this):console.log("No updateHashCode for "+e.toString());continue}t*=3432918353,t=t<<15|t>>>17,t*=461845907,this.count=this.count+1;let r=this.hash^t;r=r<<13|r>>>19,r=5*r+3864292196,this.hash=r}}}finish(){let t=this.hash^4*this.count;return t^=t>>>16,t*=2246822507,t^=t>>>13,t*=3266489909,t^=t>>>16,t}static hashStuff(){const t=new a;return t.update.apply(t,arguments),t.finish()}}function o(t){return t?"string"==typeof t?s(t):t.hashCode():-1}function c(t,e){return t?t.equals(e):t===e}function l(t){return null===t?"null":t}function h(t){return Array.isArray(t)?"["+t.map(l).join(", ")+"]":"null"}const u="h-";class d{constructor(t,e){this.data={},this.hashFunction=t||o,this.equalsFunction=e||c}add(t){const e=u+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++)if(this.equalsFunction(t,r[e]))return r[e];return r.push(t),t}return this.data[e]=[t],t}has(t){return null!=this.get(t)}get(t){const e=u+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++)if(this.equalsFunction(t,r[e]))return r[e]}return null}values(){return Object.keys(this.data).filter((t=>t.startsWith(u))).flatMap((t=>this.data[t]),this)}toString(){return h(this.values())}get length(){return Object.keys(this.data).filter((t=>t.startsWith(u))).map((t=>this.data[t].length),this).reduce(((t,e)=>t+e),0)}}class p{hashCode(){const t=new a;return this.updateHashCode(t),t.finish()}evaluate(t,e){}evalPrecedence(t,e){return this}static andContext(t,e){if(null===t||t===p.NONE)return e;if(null===e||e===p.NONE)return t;const r=new m(t,e);return 1===r.opnds.length?r.opnds[0]:r}static orContext(t,e){if(null===t)return e;if(null===e)return t;if(t===p.NONE||e===p.NONE)return p.NONE;const r=new y(t,e);return 1===r.opnds.length?r.opnds[0]:r}}class m extends p{constructor(t,e){super();const r=new d;t instanceof m?t.opnds.map((function(t){r.add(t)})):r.add(t),e instanceof m?e.opnds.map((function(t){r.add(t)})):r.add(e);const s=f(r);if(s.length>0){let t=null;s.map((function(e){(null===t||e.precedence<t.precedence)&&(t=e)})),r.add(t)}this.opnds=Array.from(r.values())}equals(t){return this===t||t instanceof m&&e(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"AND")}evaluate(t,e){for(let r=0;r<this.opnds.length;r++)if(!this.opnds[r].evaluate(t,e))return!1;return!0}evalPrecedence(t,e){let r=!1;const s=[];for(let i=0;i<this.opnds.length;i++){const n=this.opnds[i],a=n.evalPrecedence(t,e);if(r|=a!==n,null===a)return null;a!==p.NONE&&s.push(a)}if(!r)return this;if(0===s.length)return p.NONE;let i=null;return s.map((function(t){i=null===i?t:p.andContext(i,t)})),i}toString(){const t=this.opnds.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("&&")}}class y extends p{constructor(t,e){super();const r=new d;t instanceof y?t.opnds.map((function(t){r.add(t)})):r.add(t),e instanceof y?e.opnds.map((function(t){r.add(t)})):r.add(e);const s=f(r);if(s.length>0){const t=s.sort((function(t,e){return t.compareTo(e)})),e=t[t.length-1];r.add(e)}this.opnds=Array.from(r.values())}equals(t){return this===t||t instanceof y&&e(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"OR")}evaluate(t,e){for(let r=0;r<this.opnds.length;r++)if(this.opnds[r].evaluate(t,e))return!0;return!1}evalPrecedence(t,e){let r=!1;const s=[];for(let i=0;i<this.opnds.length;i++){const n=this.opnds[i],a=n.evalPrecedence(t,e);if(r|=a!==n,a===p.NONE)return p.NONE;null!==a&&s.push(a)}return r?(0===s.length||s.map((function(t){return t})),null):this}toString(){const t=this.opnds.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("||")}}function f(t){const e=[];return t.values().map((function(t){t instanceof p.PrecedencePredicate&&e.push(t)})),e}function g(t,e){if(null===t){const t={state:null,alt:null,context:null,semanticContext:null};return e&&(t.reachesIntoOuterContext=0),t}{const r={};return r.state=t.state||null,r.alt=void 0===t.alt?null:t.alt,r.context=t.context||null,r.semanticContext=t.semanticContext||null,e&&(r.reachesIntoOuterContext=t.reachesIntoOuterContext||0,r.precedenceFilterSuppressed=t.precedenceFilterSuppressed||!1),r}}class w{constructor(t,e){this.checkContext(t,e),t=g(t),e=g(e,!0),this.state=null!==t.state?t.state:e.state,this.alt=null!==t.alt?t.alt:e.alt,this.context=null!==t.context?t.context:e.context,this.semanticContext=null!==t.semanticContext?t.semanticContext:null!==e.semanticContext?e.semanticContext:p.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,this.precedenceFilterSuppressed=e.precedenceFilterSuppressed}checkContext(t,e){null!==t.context&&void 0!==t.context||null!==e&&null!==e.context&&void 0!==e.context||(this.context=null)}hashCode(){const t=new a;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}equals(t){return this===t||t instanceof w&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&(null===this.context?null===t.context:this.context.equals(t.context))&&this.semanticContext.equals(t.semanticContext)&&this.precedenceFilterSuppressed===t.precedenceFilterSuppressed}hashCodeForConfigSet(){const t=new a;return t.update(this.state.stateNumber,this.alt,this.semanticContext),t.finish()}equalsForConfigSet(t){return this===t||t instanceof w&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&this.semanticContext.equals(t.semanticContext)}toString(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==p.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}class x{constructor(t,e){this.start=t,this.stop=e}clone(){return new x(this.start,this.stop)}contains(t){return t>=this.start&&t<this.stop}toString(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()}get length(){return this.stop-this.start}}x.INVALID_INTERVAL=new x(-1,-2);class v{constructor(){this.intervals=null,this.readOnly=!1}first(e){return null===this.intervals||0===this.intervals.length?t.INVALID_TYPE:this.intervals[0].start}addOne(t){this.addInterval(new x(t,t+1))}addRange(t,e){this.addInterval(new x(t,e+1))}addInterval(t){if(null===this.intervals)this.intervals=[],this.intervals.push(t.clone());else{for(let e=0;e<this.intervals.length;e++){const r=this.intervals[e];if(t.stop<r.start)return void this.intervals.splice(e,0,t);if(t.stop===r.start)return void(this.intervals[e]=new x(t.start,r.stop));if(t.start<=r.stop)return this.intervals[e]=new x(Math.min(r.start,t.start),Math.max(r.stop,t.stop)),void this.reduce(e)}this.intervals.push(t.clone())}}addSet(t){return null!==t.intervals&&t.intervals.forEach((t=>this.addInterval(t)),this),this}reduce(t){if(t<this.intervals.length-1){const e=this.intervals[t],r=this.intervals[t+1];e.stop>=r.stop?(this.intervals.splice(t+1,1),this.reduce(t)):e.stop>=r.start&&(this.intervals[t]=new x(e.start,r.stop),this.intervals.splice(t+1,1))}}complement(t,e){const r=new v;return r.addInterval(new x(t,e+1)),null!==this.intervals&&this.intervals.forEach((t=>r.removeRange(t))),r}contains(t){if(null===this.intervals)return!1;for(let e=0;e<this.intervals.length;e++)if(this.intervals[e].contains(t))return!0;return!1}removeRange(t){if(t.start===t.stop-1)this.removeOne(t.start);else if(null!==this.intervals){let e=0;for(let r=0;r<this.intervals.length;r++){const r=this.intervals[e];if(t.stop<=r.start)return;if(t.start>r.start&&t.stop<r.stop){this.intervals[e]=new x(r.start,t.start);const s=new x(t.stop,r.stop);return void this.intervals.splice(e,0,s)}t.start<=r.start&&t.stop>=r.stop?(this.intervals.splice(e,1),e-=1):t.start<r.stop?this.intervals[e]=new x(r.start,t.start):t.stop<r.stop&&(this.intervals[e]=new x(t.stop,r.stop)),e+=1}}}removeOne(t){if(null!==this.intervals)for(let e=0;e<this.intervals.length;e++){const r=this.intervals[e];if(t<r.start)return;if(t===r.start&&t===r.stop-1)return void this.intervals.splice(e,1);if(t===r.start)return void(this.intervals[e]=new x(r.start+1,r.stop));if(t===r.stop-1)return void(this.intervals[e]=new x(r.start,r.stop-1));if(t<r.stop-1){const s=new x(r.start,t);return r.start=t+1,void this.intervals.splice(e,0,s)}}}toString(t,e,r){return t=t||null,e=e||null,r=r||!1,null===this.intervals?"{}":null!==t||null!==e?this.toTokenString(t,e):r?this.toCharString():this.toIndexString()}toCharString(){const e=[];for(let r=0;r<this.intervals.length;r++){const s=this.intervals[r];s.stop===s.start+1?s.start===t.EOF?e.push("<EOF>"):e.push("'"+String.fromCharCode(s.start)+"'"):e.push("'"+String.fromCharCode(s.start)+"'..'"+String.fromCharCode(s.stop-1)+"'")}return e.length>1?"{"+e.join(", ")+"}":e[0]}toIndexString(){const e=[];for(let r=0;r<this.intervals.length;r++){const s=this.intervals[r];s.stop===s.start+1?s.start===t.EOF?e.push("<EOF>"):e.push(s.start.toString()):e.push(s.start.toString()+".."+(s.stop-1).toString())}return e.length>1?"{"+e.join(", ")+"}":e[0]}toTokenString(t,e){const r=[];for(let s=0;s<this.intervals.length;s++){const i=this.intervals[s];for(let s=i.start;s<i.stop;s++)r.push(this.elementName(t,e,s))}return r.length>1?"{"+r.join(", ")+"}":r[0]}elementName(e,r,s){return s===t.EOF?"<EOF>":s===t.EPSILON?"<EPSILON>":e[s]||r[s]}get length(){return this.intervals.map((t=>t.length)).reduce(((t,e)=>t+e))}}class b{constructor(){this.atn=null,this.stateNumber=b.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}toString(){return this.stateNumber}equals(t){return t instanceof b&&this.stateNumber===t.stateNumber}isNonGreedyExitState(){return!1}addTransition(t,e){void 0===e&&(e=-1),0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===e?this.transitions.push(t):this.transitions.splice(e,1,t)}}b.INVALID_TYPE=0,b.BASIC=1,b.RULE_START=2,b.BLOCK_START=3,b.PLUS_BLOCK_START=4,b.STAR_BLOCK_START=5,b.TOKEN_START=6,b.RULE_STOP=7,b.BLOCK_END=8,b.STAR_LOOP_BACK=9,b.STAR_LOOP_ENTRY=10,b.PLUS_LOOP_BACK=11,b.LOOP_END=12,b.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],b.INVALID_STATE_NUMBER=-1;class _ extends b{constructor(){return super(),this.stateType=b.RULE_STOP,this}}class E{constructor(t){if(null==t)throw"target cannot be null.";this.target=t,this.isEpsilon=!1,this.label=null}}E.EPSILON=1,E.RANGE=2,E.RULE=3,E.PREDICATE=4,E.ATOM=5,E.ACTION=6,E.SET=7,E.NOT_SET=8,E.WILDCARD=9,E.PRECEDENCE=10,E.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],E.serializationTypes={EpsilonTransition:E.EPSILON,RangeTransition:E.RANGE,RuleTransition:E.RULE,PredicateTransition:E.PREDICATE,AtomTransition:E.ATOM,ActionTransition:E.ACTION,SetTransition:E.SET,NotSetTransition:E.NOT_SET,WildcardTransition:E.WILDCARD,PrecedencePredicateTransition:E.PRECEDENCE};class T extends E{constructor(t,e,r,s){super(t),this.ruleIndex=e,this.precedence=r,this.followState=s,this.serializationType=E.RULE,this.isEpsilon=!0}matches(t,e,r){return!1}}class S extends E{constructor(e,r){super(e),this.serializationType=E.SET,null!=r?this.label=r:(this.label=new v,this.label.addOne(t.INVALID_TYPE))}matches(t,e,r){return this.label.contains(t)}toString(){return this.label.toString()}}class k extends S{constructor(t,e){super(t,e),this.serializationType=E.NOT_SET}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}}class R extends E{constructor(t){super(t),this.serializationType=E.WILDCARD}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}}class C extends E{constructor(t){super(t)}}class A{}class K extends A{}class L extends K{}class I extends L{get ruleContext(){throw new Error("missing interface implementation")}}class N extends L{}class D extends N{}const O={toStringTree:function(t,e,r){e=e||null,null!==(r=r||null)&&(e=r.ruleNames);let s=O.getNodeText(t,e);s=s.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r");const i=t.getChildCount();if(0===i)return s;let n="("+s+" ";i>0&&(s=O.toStringTree(t.getChild(0),e),n=n.concat(s));for(let r=1;r<i;r++)s=O.toStringTree(t.getChild(r),e),n=n.concat(" "+s);return n=n.concat(")"),n},getNodeText:function(e,r,s){if(r=r||null,null!==(s=s||null)&&(r=s.ruleNames),null!==r){if(e instanceof I){const t=e.ruleContext.getAltNumber();return 0!=t?r[e.ruleIndex]+":"+t:r[e.ruleIndex]}if(e instanceof D)return e.toString();if(e instanceof N&&null!==e.symbol)return e.symbol.text}const i=e.getPayload();return i instanceof t?i.text:e.getPayload().toString()},getChildren:function(t){const e=[];for(let r=0;r<t.getChildCount();r++)e.push(t.getChild(r));return e},getAncestors:function(t){let e=[];for(t=t.getParent();null!==t;)e=[t].concat(e),t=t.getParent();return e},findAllTokenNodes:function(t,e){return O.findAllNodes(t,e,!0)},findAllRuleNodes:function(t,e){return O.findAllNodes(t,e,!1)},findAllNodes:function(t,e,r){const s=[];return O._findAllNodes(t,e,r,s),s},_findAllNodes:function(t,e,r,s){r&&t instanceof N?t.symbol.type===e&&s.push(t):!r&&t instanceof I&&t.ruleIndex===e&&s.push(t);for(let i=0;i<t.getChildCount();i++)O._findAllNodes(t.getChild(i),e,r,s)},descendants:function(t){let e=[t];for(let r=0;r<t.getChildCount();r++)e=e.concat(O.descendants(t.getChild(r)));return e}},P=O;class q extends I{constructor(t,e){super(),this.parentCtx=t||null,this.invokingState=e||-1}depth(){let t=0,e=this;for(;null!==e;)e=e.parentCtx,t+=1;return t}isEmpty(){return-1===this.invokingState}getSourceInterval(){return x.INVALID_INTERVAL}get ruleContext(){return this}getPayload(){return this}getText(){return 0===this.getChildCount()?"":this.children.map((function(t){return t.getText()})).join("")}getAltNumber(){return 0}setAltNumber(t){}getChild(t){return null}getChildCount(){return 0}accept(t){return t.visitChildren(this)}toStringTree(t,e){return P.toStringTree(this,t,e)}toString(t,e){t=t||null,e=e||null;let r=this,s="[";for(;null!==r&&r!==e;){if(null===t)r.isEmpty()||(s+=r.invokingState);else{const e=r.ruleIndex;s+=e>=0&&e<t.length?t[e]:""+e}null===r.parentCtx||null===t&&r.parentCtx.isEmpty()||(s+=" "),r=r.parentCtx}return s+="]",s}}class Y{constructor(t){this.cachedHashCode=t}isEmpty(){return this===Y.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===Y.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}}Y.EMPTY=null,Y.EMPTY_RETURN_STATE=2147483647,Y.globalNodeCount=1,Y.id=Y.globalNodeCount,Y.trace_atn_sim=!1;class F extends Y{constructor(t,e){const r=new a;return r.update(t,e),super(r.finish()),this.parents=t,this.returnStates=e,this}isEmpty(){return this.returnStates[0]===Y.EMPTY_RETURN_STATE}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}equals(t){return this===t||t instanceof F&&this.hashCode()===t.hashCode()&&e(this.returnStates,t.returnStates)&&e(this.parents,t.parents)}toString(){if(this.isEmpty())return"[]";{let t="[";for(let e=0;e<this.returnStates.length;e++)e>0&&(t+=", "),this.returnStates[e]!==Y.EMPTY_RETURN_STATE?(t+=this.returnStates[e],null!==this.parents[e]?t=t+" "+this.parents[e]:t+="null"):t+="$";return t+"]"}}get length(){return this.returnStates.length}}class M extends Y{constructor(t,e){let r=0;const s=new a;null!==t?s.update(t,e):s.update(1),r=s.finish(),super(r),this.parentCtx=t,this.returnState=e}getParent(t){return this.parentCtx}getReturnState(t){return this.returnState}equals(t){return this===t||t instanceof M&&this.hashCode()===t.hashCode()&&this.returnState===t.returnState&&(null==this.parentCtx?null==t.parentCtx:this.parentCtx.equals(t.parentCtx))}toString(){const t=null===this.parentCtx?"":this.parentCtx.toString();return 0===t.length?this.returnState===Y.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t}get length(){return 1}static create(t,e){return e===Y.EMPTY_RETURN_STATE&&null===t?Y.EMPTY:new M(t,e)}}class U extends M{constructor(){super(null,Y.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(t){return null}getReturnState(t){return this.returnState}equals(t){return this===t}toString(){return"$"}}Y.EMPTY=new U;const B="h-";class V{constructor(t,e){this.data={},this.hashFunction=t||o,this.equalsFunction=e||c}set(t,e){const r=B+this.hashFunction(t);if(r in this.data){const s=this.data[r];for(let r=0;r<s.length;r++){const i=s[r];if(this.equalsFunction(t,i.key)){const t=i.value;return i.value=e,t}}return s.push({key:t,value:e}),e}return this.data[r]=[{key:t,value:e}],e}containsKey(t){const e=B+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++){const s=r[e];if(this.equalsFunction(t,s.key))return!0}}return!1}get(t){const e=B+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++){const s=r[e];if(this.equalsFunction(t,s.key))return s.value}}return null}entries(){return Object.keys(this.data).filter((t=>t.startsWith(B))).flatMap((t=>this.data[t]),this)}getKeys(){return this.entries().map((t=>t.key))}getValues(){return this.entries().map((t=>t.value))}toString(){return"["+this.entries().map((t=>"{"+t.key+":"+t.value+"}")).join(", ")+"]"}get length(){return Object.keys(this.data).filter((t=>t.startsWith(B))).map((t=>this.data[t].length),this).reduce(((t,e)=>t+e),0)}}function H(t,e){if(null==e&&(e=q.EMPTY),null===e.parentCtx||e===q.EMPTY)return Y.EMPTY;const r=H(t,e.parentCtx),s=t.states[e.invokingState].transitions[0];return M.create(r,s.followState.stateNumber)}function j(t,e,r){if(t.isEmpty())return t;let s=r.get(t)||null;if(null!==s)return s;if(s=e.get(t),null!==s)return r.set(t,s),s;let i=!1,n=[];for(let s=0;s<n.length;s++){const a=j(t.getParent(s),e,r);if(i||a!==t.getParent(s)){if(!i){n=[];for(let e=0;e<t.length;e++)n[e]=t.getParent(e);i=!0}n[s]=a}}if(!i)return e.add(t),r.set(t,t),t;let a=null;return a=0===n.length?Y.EMPTY:1===n.length?M.create(n[0],t.getReturnState(0)):new F(n,t.returnStates),e.add(a),r.set(a,a),r.set(t,a),a}function $(t,e,r,s){if(t===e)return t;if(t instanceof M&&e instanceof M)return function(t,e,r,s){if(null!==s){let r=s.get(t,e);if(null!==r)return r;if(r=s.get(e,t),null!==r)return r}const i=function(t,e,r){if(r){if(t===Y.EMPTY)return Y.EMPTY;if(e===Y.EMPTY)return Y.EMPTY}else{if(t===Y.EMPTY&&e===Y.EMPTY)return Y.EMPTY;if(t===Y.EMPTY){const t=[e.returnState,Y.EMPTY_RETURN_STATE],r=[e.parentCtx,null];return new F(r,t)}if(e===Y.EMPTY){const e=[t.returnState,Y.EMPTY_RETURN_STATE],r=[t.parentCtx,null];return new F(r,e)}}return null}(t,e,r);if(null!==i)return null!==s&&s.set(t,e,i),i;if(t.returnState===e.returnState){const i=$(t.parentCtx,e.parentCtx,r,s);if(i===t.parentCtx)return t;if(i===e.parentCtx)return e;const n=M.create(i,t.returnState);return null!==s&&s.set(t,e,n),n}{let r=null;if((t===e||null!==t.parentCtx&&t.parentCtx===e.parentCtx)&&(r=t.parentCtx),null!==r){const i=[t.returnState,e.returnState];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState);const n=new F([r,r],i);return null!==s&&s.set(t,e,n),n}const i=[t.returnState,e.returnState];let n=[t.parentCtx,e.parentCtx];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState,n=[e.parentCtx,t.parentCtx]);const a=new F(n,i);return null!==s&&s.set(t,e,a),a}}(t,e,r,s);if(r){if(t instanceof U)return t;if(e instanceof U)return e}return t instanceof M&&(t=new F([t.getParent()],[t.returnState])),e instanceof M&&(e=new F([e.getParent()],[e.returnState])),function(t,e,r,s){if(null!==s){let r=s.get(t,e);if(null!==r)return Y.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),r;if(r=s.get(e,t),null!==r)return Y.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),r}let i=0,n=0,a=0,o=new Array(t.returnStates.length+e.returnStates.length).fill(0),c=new Array(t.returnStates.length+e.returnStates.length).fill(null);for(;i<t.returnStates.length&&n<e.returnStates.length;){const l=t.parents[i],h=e.parents[n];if(t.returnStates[i]===e.returnStates[n]){const e=t.returnStates[i];e===Y.EMPTY_RETURN_STATE&&null===l&&null===h||null!==l&&null!==h&&l===h?(c[a]=l,o[a]=e):(c[a]=$(l,h,r,s),o[a]=e),i+=1,n+=1}else t.returnStates[i]<e.returnStates[n]?(c[a]=l,o[a]=t.returnStates[i],i+=1):(c[a]=h,o[a]=e.returnStates[n],n+=1);a+=1}if(i<t.returnStates.length)for(let e=i;e<t.returnStates.length;e++)c[a]=t.parents[e],o[a]=t.returnStates[e],a+=1;else for(let t=n;t<e.returnStates.length;t++)c[a]=e.parents[t],o[a]=e.returnStates[t],a+=1;if(a<c.length){if(1===a){const r=M.create(c[0],o[0]);return null!==s&&s.set(t,e,r),r}c=c.slice(0,a),o=o.slice(0,a)}const l=new F(c,o);return l.equals(t)?(null!==s&&s.set(t,e,t),Y.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> a"),t):l.equals(e)?(null!==s&&s.set(t,e,e),Y.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> b"),e):(function(t){const e=new V;for(let r=0;r<t.length;r++){const s=t[r];e.containsKey(s)||e.set(s,s)}for(let r=0;r<t.length;r++)t[r]=e.get(t[r])}(c),null!==s&&s.set(t,e,l),Y.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> "+l),l)}(t,e,r,s)}class G{constructor(){this.data=[]}add(t){this.data[t]=!0}or(t){Object.keys(t.data).map((t=>this.add(t)),this)}remove(t){delete this.data[t]}has(t){return!0===this.data[t]}values(){return Object.keys(this.data)}minValue(){return Math.min.apply(null,this.values())}hashCode(){return a.hashStuff(this.values())}equals(t){return t instanceof G&&e(this.data,t.data)}toString(){return"{"+this.values().join(", ")+"}"}get length(){return this.values().length}}class z{constructor(t){this.atn=t}getDecisionLookahead(t){if(null===t)return null;const e=t.transitions.length,r=[];for(let s=0;s<e;s++){r[s]=new v;const e=new d,i=!1;this._LOOK(t.transition(s).target,null,Y.EMPTY,r[s],e,new G,i,!1),(0===r[s].length||r[s].contains(z.HIT_PRED))&&(r[s]=null)}return r}LOOK(t,e,r){const s=new v,i=null!==(r=r||null)?H(t.atn,r):null;return this._LOOK(t,e,i,s,new d,new G,!0,!0),s}_LOOK(e,r,s,i,n,a,o,c){const l=new w({state:e,alt:0,context:s},null);if(!n.has(l)){if(n.add(l),e===r){if(null===s)return void i.addOne(t.EPSILON);if(s.isEmpty()&&c)return void i.addOne(t.EOF)}if(e instanceof _){if(null===s)return void i.addOne(t.EPSILON);if(s.isEmpty()&&c)return void i.addOne(t.EOF);if(s!==Y.EMPTY){const t=a.has(e.ruleIndex);try{a.remove(e.ruleIndex);for(let t=0;t<s.length;t++){const e=this.atn.states[s.getReturnState(t)];this._LOOK(e,r,s.getParent(t),i,n,a,o,c)}}finally{t&&a.add(e.ruleIndex)}return}}for(let l=0;l<e.transitions.length;l++){const h=e.transitions[l];if(h.constructor===T){if(a.has(h.target.ruleIndex))continue;const t=M.create(s,h.followState.stateNumber);try{a.add(h.target.ruleIndex),this._LOOK(h.target,r,t,i,n,a,o,c)}finally{a.remove(h.target.ruleIndex)}}else if(h instanceof C)o?this._LOOK(h.target,r,s,i,n,a,o,c):i.addOne(z.HIT_PRED);else if(h.isEpsilon)this._LOOK(h.target,r,s,i,n,a,o,c);else if(h.constructor===R)i.addRange(t.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{let e=h.label;null!==e&&(h instanceof k&&(e=e.complement(t.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),i.addSet(e))}}}}}z.HIT_PRED=t.INVALID_TYPE;class W{constructor(t,e){this.grammarType=t,this.maxTokenType=e,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}nextTokensInContext(t,e){return new z(this).LOOK(t,null,e)}nextTokensNoContext(t){return null!==t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokensInContext(t,null),t.nextTokenWithinRule.readOnly=!0),t.nextTokenWithinRule}nextTokens(t,e){return void 0===e?this.nextTokensNoContext(t):this.nextTokensInContext(t,e)}addState(t){null!==t&&(t.atn=this,t.stateNumber=this.states.length),this.states.push(t)}removeState(t){this.states[t.stateNumber]=null}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,t.decision}getDecisionState(t){return 0===this.decisionToState.length?null:this.decisionToState[t]}getExpectedTokens(e,r){if(e<0||e>=this.states.length)throw"Invalid state number.";const s=this.states[e];let i=this.nextTokens(s);if(!i.contains(t.EPSILON))return i;const n=new v;for(n.addSet(i),n.removeOne(t.EPSILON);null!==r&&r.invokingState>=0&&i.contains(t.EPSILON);){const e=this.states[r.invokingState].transitions[0];i=this.nextTokens(e.followState),n.addSet(i),n.removeOne(t.EPSILON),r=r.parentCtx}return i.contains(t.EPSILON)&&n.addOne(t.EOF),n}}W.INVALID_ALT_NUMBER=0;class X extends b{constructor(){super(),this.stateType=b.BASIC}}class Q extends b{constructor(){return super(),this.decision=-1,this.nonGreedy=!1,this}}class J extends Q{constructor(){return super(),this.endState=null,this}}class Z extends b{constructor(){return super(),this.stateType=b.BLOCK_END,this.startState=null,this}}class tt extends b{constructor(){return super(),this.stateType=b.LOOP_END,this.loopBackState=null,this}}class et extends b{constructor(){return super(),this.stateType=b.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}}class rt extends Q{constructor(){return super(),this.stateType=b.TOKEN_START,this}}class st extends Q{constructor(){return super(),this.stateType=b.PLUS_LOOP_BACK,this}}class it extends b{constructor(){return super(),this.stateType=b.STAR_LOOP_BACK,this}}class nt extends Q{constructor(){return super(),this.stateType=b.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}}class at extends J{constructor(){return super(),this.stateType=b.PLUS_BLOCK_START,this.loopBackState=null,this}}class ot extends J{constructor(){return super(),this.stateType=b.STAR_BLOCK_START,this}}class ct extends J{constructor(){return super(),this.stateType=b.BLOCK_START,this}}class lt extends E{constructor(t,e){super(t),this.label_=e,this.label=this.makeLabel(),this.serializationType=E.ATOM}makeLabel(){const t=new v;return t.addOne(this.label_),t}matches(t,e,r){return this.label_===t}toString(){return this.label_}}class ht extends E{constructor(t,e,r){super(t),this.serializationType=E.RANGE,this.start=e,this.stop=r,this.label=this.makeLabel()}makeLabel(){const t=new v;return t.addRange(this.start,this.stop),t}matches(t,e,r){return t>=this.start&&t<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}}class ut extends E{constructor(t,e,r,s){super(t),this.serializationType=E.ACTION,this.ruleIndex=e,this.actionIndex=void 0===r?-1:r,this.isCtxDependent=void 0!==s&&s,this.isEpsilon=!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}}class dt extends E{constructor(t,e){super(t),this.serializationType=E.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=e}matches(t,e,r){return!1}toString(){return"epsilon"}}class pt extends p{constructor(t,e,r){super(),this.ruleIndex=void 0===t?-1:t,this.predIndex=void 0===e?-1:e,this.isCtxDependent=void 0!==r&&r}evaluate(t,e){const r=this.isCtxDependent?e:null;return t.sempred(r,this.ruleIndex,this.predIndex)}updateHashCode(t){t.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}equals(t){return this===t||t instanceof pt&&this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}p.NONE=new pt;class mt extends C{constructor(t,e,r,s){super(t),this.serializationType=E.PREDICATE,this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=s,this.isEpsilon=!0}matches(t,e,r){return!1}getPredicate(){return new pt(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}}class yt extends p{constructor(t){super(),this.precedence=void 0===t?0:t}evaluate(t,e){return t.precpred(e,this.precedence)}evalPrecedence(t,e){return t.precpred(e,this.precedence)?p.NONE:null}compareTo(t){return this.precedence-t.precedence}updateHashCode(t){t.update(this.precedence)}equals(t){return this===t||t instanceof yt&&this.precedence===t.precedence}toString(){return"{"+this.precedence+">=prec}?"}}p.PrecedencePredicate=yt;class ft extends C{constructor(t,e){super(t),this.serializationType=E.PRECEDENCE,this.precedence=e,this.isEpsilon=!0}matches(t,e,r){return!1}getPredicate(){return new yt(this.precedence)}toString(){return this.precedence+" >= _p"}}class gt{constructor(t){void 0===t&&(t=null),this.readOnly=!1,this.verifyATN=null===t||t.verifyATN,this.generateRuleBypassTransitions=null!==t&&t.generateRuleBypassTransitions}}gt.defaultOptions=new gt,gt.defaultOptions.readOnly=!0;class wt{constructor(t){this.actionType=t,this.isPositionDependent=!1}hashCode(){const t=new a;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.actionType)}equals(t){return this===t}}class xt extends wt{constructor(){super(6)}execute(t){t.skip()}toString(){return"skip"}}xt.INSTANCE=new xt;class vt extends wt{constructor(t){super(0),this.channel=t}execute(t){t._channel=this.channel}updateHashCode(t){t.update(this.actionType,this.channel)}equals(t){return this===t||t instanceof vt&&this.channel===t.channel}toString(){return"channel("+this.channel+")"}}class bt extends wt{constructor(t,e){super(1),this.ruleIndex=t,this.actionIndex=e,this.isPositionDependent=!0}execute(t){t.action(null,this.ruleIndex,this.actionIndex)}updateHashCode(t){t.update(this.actionType,this.ruleIndex,this.actionIndex)}equals(t){return this===t||t instanceof bt&&this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex}}class _t extends wt{constructor(){super(3)}execute(t){t.more()}toString(){return"more"}}_t.INSTANCE=new _t;class Et extends wt{constructor(t){super(7),this.type=t}execute(t){t.type=this.type}updateHashCode(t){t.update(this.actionType,this.type)}equals(t){return this===t||t instanceof Et&&this.type===t.type}toString(){return"type("+this.type+")"}}class Tt extends wt{constructor(t){super(5),this.mode=t}execute(t){t.pushMode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof Tt&&this.mode===t.mode}toString(){return"pushMode("+this.mode+")"}}class St extends wt{constructor(){super(4)}execute(t){t.popMode()}toString(){return"popMode"}}St.INSTANCE=new St;class kt extends wt{constructor(t){super(2),this.mode=t}execute(t){t.mode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof kt&&this.mode===t.mode}toString(){return"mode("+this.mode+")"}}function Rt(t,e){const r=[];return r[t-1]=e,r.map((function(t){return e}))}class Ct{constructor(t){null==t&&(t=gt.defaultOptions),this.deserializationOptions=t,this.stateFactories=null,this.actionFactories=null}deserialize(t){const e=this.reset(t);this.checkVersion(e),e&&this.skipUUID();const r=this.readATN();this.readStates(r,e),this.readRules(r,e),this.readModes(r);const s=[];return this.readSets(r,s,this.readInt.bind(this)),e&&this.readSets(r,s,this.readInt32.bind(this)),this.readEdges(r,s),this.readDecisions(r),this.readLexerActions(r,e),this.markPrecedenceDecisions(r),this.verifyATN(r),this.deserializationOptions.generateRuleBypassTransitions&&1===r.grammarType&&(this.generateRuleBypassTransitions(r),this.verifyATN(r)),r}reset(t){if(3===(t.charCodeAt?t.charCodeAt(0):t[0])){const e=function(t){const e=t.charCodeAt(0);return e>1?e-2:e+65534},r=t.split("").map(e);return r[0]=t.charCodeAt(0),this.data=r,this.pos=0,!0}return this.data=t,this.pos=0,!1}skipUUID(){let t=0;for(;t++<8;)this.readInt()}checkVersion(t){const e=this.readInt();if(!t&&4!==e)throw"Could not deserialize ATN with version "+e+" (expected 4)."}readATN(){const t=this.readInt(),e=this.readInt();return new W(t,e)}readStates(t,e){let r,s,i;const n=[],a=[],o=this.readInt();for(let r=0;r<o;r++){const r=this.readInt();if(r===b.INVALID_TYPE){t.addState(null);continue}let s=this.readInt();e&&65535===s&&(s=-1);const i=this.stateFactory(r,s);if(r===b.LOOP_END){const t=this.readInt();n.push([i,t])}else if(i instanceof J){const t=this.readInt();a.push([i,t])}t.addState(i)}for(r=0;r<n.length;r++)s=n[r],s[0].loopBackState=t.states[s[1]];for(r=0;r<a.length;r++)s=a[r],s[0].endState=t.states[s[1]];let c=this.readInt();for(r=0;r<c;r++)i=this.readInt(),t.states[i].nonGreedy=!0;let l=this.readInt();for(r=0;r<l;r++)i=this.readInt(),t.states[i].isPrecedenceRule=!0}readRules(e,r){let s;const i=this.readInt();for(0===e.grammarType&&(e.ruleToTokenType=Rt(i,0)),e.ruleToStartState=Rt(i,0),s=0;s<i;s++){const i=this.readInt();if(e.ruleToStartState[s]=e.states[i],0===e.grammarType){let i=this.readInt();r&&65535===i&&(i=t.EOF),e.ruleToTokenType[s]=i}}for(e.ruleToStopState=Rt(i,0),s=0;s<e.states.length;s++){const t=e.states[s];t instanceof _&&(e.ruleToStopState[t.ruleIndex]=t,e.ruleToStartState[t.ruleIndex].stopState=t)}}readModes(t){const e=this.readInt();for(let r=0;r<e;r++){let e=this.readInt();t.modeToStartState.push(t.states[e])}}readSets(t,e,r){const s=this.readInt();for(let t=0;t<s;t++){const t=new v;e.push(t);const s=this.readInt();0!==this.readInt()&&t.addOne(-1);for(let e=0;e<s;e++){const e=r(),s=r();t.addRange(e,s)}}}readEdges(t,e){let r,s,i,n,a;const o=this.readInt();for(r=0;r<o;r++){const r=this.readInt(),s=this.readInt(),i=this.readInt(),a=this.readInt(),o=this.readInt(),c=this.readInt();n=this.edgeFactory(t,i,r,s,a,o,c,e),t.states[r].addTransition(n)}for(r=0;r<t.states.length;r++)for(i=t.states[r],s=0;s<i.transitions.length;s++){const e=i.transitions[s];if(!(e instanceof T))continue;let r=-1;t.ruleToStartState[e.target.ruleIndex].isPrecedenceRule&&0===e.precedence&&(r=e.target.ruleIndex),n=new dt(e.followState,r),t.ruleToStopState[e.target.ruleIndex].addTransition(n)}for(r=0;r<t.states.length;r++){if(i=t.states[r],i instanceof J){if(null===i.endState)throw"IllegalState";if(null!==i.endState.startState)throw"IllegalState";i.endState.startState=i}if(i instanceof st)for(s=0;s<i.transitions.length;s++)a=i.transitions[s].target,a instanceof at&&(a.loopBackState=i);else if(i instanceof it)for(s=0;s<i.transitions.length;s++)a=i.transitions[s].target,a instanceof nt&&(a.loopBackState=i)}}readDecisions(t){const e=this.readInt();for(let r=0;r<e;r++){const e=this.readInt(),s=t.states[e];t.decisionToState.push(s),s.decision=r}}readLexerActions(t,e){if(0===t.grammarType){const r=this.readInt();t.lexerActions=Rt(r,null);for(let s=0;s<r;s++){const r=this.readInt();let i=this.readInt();e&&65535===i&&(i=-1);let n=this.readInt();e&&65535===n&&(n=-1),t.lexerActions[s]=this.lexerActionFactory(r,i,n)}}}generateRuleBypassTransitions(t){let e;const r=t.ruleToStartState.length;for(e=0;e<r;e++)t.ruleToTokenType[e]=t.maxTokenType+e+1;for(e=0;e<r;e++)this.generateRuleBypassTransition(t,e)}generateRuleBypassTransition(t,e){let r,s;const i=new ct;i.ruleIndex=e,t.addState(i);const n=new Z;n.ruleIndex=e,t.addState(n),i.endState=n,t.defineDecisionState(i),n.startState=i;let a=null,o=null;if(t.ruleToStartState[e].isPrecedenceRule){for(o=null,r=0;r<t.states.length;r++)if(s=t.states[r],this.stateIsEndStateFor(s,e)){o=s,a=s.loopBackState.transitions[0];break}if(null===a)throw"Couldn't identify final state of the precedence rule prefix section."}else o=t.ruleToStopState[e];for(r=0;r<t.states.length;r++){s=t.states[r];for(let t=0;t<s.transitions.length;t++){const e=s.transitions[t];e!==a&&e.target===o&&(e.target=n)}}const c=t.ruleToStartState[e],l=c.transitions.length;for(;l>0;)i.addTransition(c.transitions[l-1]),c.transitions=c.transitions.slice(-1);t.ruleToStartState[e].addTransition(new dt(i)),n.addTransition(new dt(o));const h=new X;t.addState(h),h.addTransition(new lt(n,t.ruleToTokenType[e])),i.addTransition(new dt(h))}stateIsEndStateFor(t,e){if(t.ruleIndex!==e)return null;if(!(t instanceof nt))return null;const r=t.transitions[t.transitions.length-1].target;return r instanceof tt&&r.epsilonOnlyTransitions&&r.transitions[0].target instanceof _?t:null}markPrecedenceDecisions(t){for(let e=0;e<t.states.length;e++){const r=t.states[e];if(r instanceof nt&&t.ruleToStartState[r.ruleIndex].isPrecedenceRule){const t=r.transitions[r.transitions.length-1].target;t instanceof tt&&t.epsilonOnlyTransitions&&t.transitions[0].target instanceof _&&(r.isPrecedenceDecision=!0)}}}verifyATN(t){if(this.deserializationOptions.verifyATN)for(let e=0;e<t.states.length;e++){const r=t.states[e];if(null!==r)if(this.checkCondition(r.epsilonOnlyTransitions||r.transitions.length<=1),r instanceof at)this.checkCondition(null!==r.loopBackState);else if(r instanceof nt)if(this.checkCondition(null!==r.loopBackState),this.checkCondition(2===r.transitions.length),r.transitions[0].target instanceof ot)this.checkCondition(r.transitions[1].target instanceof tt),this.checkCondition(!r.nonGreedy);else{if(!(r.transitions[0].target instanceof tt))throw"IllegalState";this.checkCondition(r.transitions[1].target instanceof ot),this.checkCondition(r.nonGreedy)}else r instanceof it?(this.checkCondition(1===r.transitions.length),this.checkCondition(r.transitions[0].target instanceof nt)):r instanceof tt?this.checkCondition(null!==r.loopBackState):r instanceof et?this.checkCondition(null!==r.stopState):r instanceof J?this.checkCondition(null!==r.endState):r instanceof Z?this.checkCondition(null!==r.startState):r instanceof Q?this.checkCondition(r.transitions.length<=1||r.decision>=0):this.checkCondition(r.transitions.length<=1||r instanceof _)}}checkCondition(t,e){if(!t)throw null==e&&(e="IllegalState"),e}readInt(){return this.data[this.pos++]}readInt32(){return this.readInt()|this.readInt()<<16}edgeFactory(e,r,s,i,n,a,o,c){const l=e.states[i];switch(r){case E.EPSILON:return new dt(l);case E.RANGE:return new ht(l,0!==o?t.EOF:n,a);case E.RULE:return new T(e.states[n],a,o,l);case E.PREDICATE:return new mt(l,n,a,0!==o);case E.PRECEDENCE:return new ft(l,n);case E.ATOM:return new lt(l,0!==o?t.EOF:n);case E.ACTION:return new ut(l,n,a,0!==o);case E.SET:return new S(l,c[n]);case E.NOT_SET:return new k(l,c[n]);case E.WILDCARD:return new R(l);default:throw"The specified transition type: "+r+" is not valid."}}stateFactory(t,e){if(null===this.stateFactories){const t=[];t[b.INVALID_TYPE]=null,t[b.BASIC]=()=>new X,t[b.RULE_START]=()=>new et,t[b.BLOCK_START]=()=>new ct,t[b.PLUS_BLOCK_START]=()=>new at,t[b.STAR_BLOCK_START]=()=>new ot,t[b.TOKEN_START]=()=>new rt,t[b.RULE_STOP]=()=>new _,t[b.BLOCK_END]=()=>new Z,t[b.STAR_LOOP_BACK]=()=>new it,t[b.STAR_LOOP_ENTRY]=()=>new nt,t[b.PLUS_LOOP_BACK]=()=>new st,t[b.LOOP_END]=()=>new tt,this.stateFactories=t}if(t>this.stateFactories.length||null===this.stateFactories[t])throw"The specified state type "+t+" is not valid.";{const r=this.stateFactories[t]();if(null!==r)return r.ruleIndex=e,r}}lexerActionFactory(t,e,r){if(null===this.actionFactories){const t=[];t[0]=(t,e)=>new vt(t),t[1]=(t,e)=>new bt(t,e),t[2]=(t,e)=>new kt(t),t[3]=(t,e)=>_t.INSTANCE,t[4]=(t,e)=>St.INSTANCE,t[5]=(t,e)=>new Tt(t),t[6]=(t,e)=>xt.INSTANCE,t[7]=(t,e)=>new Et(t),this.actionFactories=t}if(t>this.actionFactories.length||null===this.actionFactories[t])throw"The specified lexer action type "+t+" is not valid.";return this.actionFactories[t](e,r)}}class At{syntaxError(t,e,r,s,i,n){}reportAmbiguity(t,e,r,s,i,n,a){}reportAttemptingFullContext(t,e,r,s,i,n){}reportContextSensitivity(t,e,r,s,i,n){}}class Kt extends At{constructor(){super()}syntaxError(t,e,r,s,i,n){console.error("line "+r+":"+s+" "+i)}}Kt.INSTANCE=new Kt;class Lt extends At{constructor(t){if(super(),null===t)throw"delegates";return this.delegates=t,this}syntaxError(t,e,r,s,i,n){this.delegates.map((a=>a.syntaxError(t,e,r,s,i,n)))}reportAmbiguity(t,e,r,s,i,n,a){this.delegates.map((o=>o.reportAmbiguity(t,e,r,s,i,n,a)))}reportAttemptingFullContext(t,e,r,s,i,n){this.delegates.map((a=>a.reportAttemptingFullContext(t,e,r,s,i,n)))}reportContextSensitivity(t,e,r,s,i,n){this.delegates.map((a=>a.reportContextSensitivity(t,e,r,s,i,n)))}}class It{constructor(){this._listeners=[Kt.INSTANCE],this._interp=null,this._stateNumber=-1}checkVersion(t){const e="4.13.1";e!==t&&console.log("ANTLR runtime and generated code versions disagree: "+e+"!="+t)}addErrorListener(t){this._listeners.push(t)}removeErrorListeners(){this._listeners=[]}getLiteralNames(){return Object.getPrototypeOf(this).constructor.literalNames||[]}getSymbolicNames(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}getTokenNames(){if(!this.tokenNames){const t=this.getLiteralNames(),e=this.getSymbolicNames(),r=t.length>e.length?t.length:e.length;this.tokenNames=[];for(let s=0;s<r;s++)this.tokenNames[s]=t[s]||e[s]||"<INVALID"}return this.tokenNames}getTokenTypeMap(){const e=this.getTokenNames();if(null===e)throw"The current recognizer does not provide a list of token names.";let r=this.tokenTypeMapCache[e];return void 0===r&&(r=e.reduce((function(t,e,r){t[e]=r})),r.EOF=t.EOF,this.tokenTypeMapCache[e]=r),r}getRuleIndexMap(){const t=this.ruleNames;if(null===t)throw"The current recognizer does not provide a list of rule names.";let e=this.ruleIndexMapCache[t];return void 0===e&&(e=t.reduce((function(t,e,r){t[e]=r})),this.ruleIndexMapCache[t]=e),e}getTokenType(e){const r=this.getTokenTypeMap()[e];return void 0!==r?r:t.INVALID_TYPE}getErrorHeader(t){return"line "+t.getOffendingToken().line+":"+t.getOffendingToken().column}getTokenErrorDisplay(e){if(null===e)return"<no token>";let r=e.text;return null===r&&(r=e.type===t.EOF?"<EOF>":"<"+e.type+">"),r=r.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"),"'"+r+"'"}getErrorListenerDispatch(){return new Lt(this._listeners)}sempred(t,e,r){return!0}precpred(t,e){return!0}get atn(){return this._interp.atn}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}It.tokenTypeMapCache={},It.ruleIndexMapCache={};class Nt extends t{constructor(e,r,s,i,n){super(),this.source=void 0!==e?e:Nt.EMPTY_SOURCE,this.type=void 0!==r?r:null,this.channel=void 0!==s?s:t.DEFAULT_CHANNEL,this.start=void 0!==i?i:-1,this.stop=void 0!==n?n:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=e[0].line,this.column=e[0].column):this.column=-1}clone(){const t=new Nt(this.source,this.type,this.channel,this.start,this.stop);return t.tokenIndex=this.tokenIndex,t.line=this.line,t.column=this.column,t.text=this.text,t}cloneWithType(e){const r=new Nt(this.source,e,this.channel,this.start,this.stop);return r.tokenIndex=this.tokenIndex,r.line=this.line,r.column=this.column,e===t.EOF&&(r.text=""),r}toString(){let t=this.text;return t=null!==t?t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+t+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}get text(){if(null!==this._text)return this._text;const t=this.getInputStream();if(null===t)return null;const e=t.size;return this.start<e&&this.stop<e?t.getText(this.start,this.stop):"<EOF>"}set text(t){this._text=t}}Nt.EMPTY_SOURCE=[null,null];class Dt{}class Ot extends Dt{constructor(t){super(),this.copyText=void 0!==t&&t}create(t,e,r,s,i,n,a,o){const c=new Nt(t,e,s,i,n);return c.line=a,c.column=o,null!==r?c.text=r:this.copyText&&null!==t[1]&&(c.text=t[1].getText(i,n)),c}createThin(t,e){const r=new Nt(null,t);return r.text=e,r}}Ot.DEFAULT=new Ot;class Pt extends Error{constructor(t){super(t.message),Error.captureStackTrace&&Error.captureStackTrace(this,Pt),this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}}class qt extends Pt{constructor(t,e,r,s){super({message:"",recognizer:t,input:e,ctx:null}),this.startIndex=r,this.deadEndConfigs=s}toString(){let t="";return this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getText(new x(this.startIndex,this.startIndex))),"LexerNoViableAltException"+t}}class Yt extends It{constructor(e){super(),this._input=e,this._factory=Ot.DEFAULT,this._tokenFactorySourcePair=[this,e],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=t.DEFAULT_CHANNEL,this._type=t.INVALID_TYPE,this._modeStack=[],this._mode=Yt.DEFAULT_MODE,this._text=null}reset(){null!==this._input&&this._input.seek(0),this._token=null,this._type=t.INVALID_TYPE,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=Yt.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}nextToken(){if(null===this._input)throw"nextToken requires a non-null input stream.";const e=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;let e=!1;for(;;){this._type=t.INVALID_TYPE;let r=Yt.SKIP;try{r=this._interp.match(this._input,this._mode)}catch(t){if(!(t instanceof Pt))throw console.log(t.stack),t;this.notifyListeners(t),this.recover(t)}if(this._input.LA(1)===t.EOF&&(this._hitEOF=!0),this._type===t.INVALID_TYPE&&(this._type=r),this._type===Yt.SKIP){e=!0;break}if(this._type!==Yt.MORE)break}if(!e)return null===this._token&&this.emit(),this._token}}finally{this._input.release(e)}}skip(){this._type=Yt.SKIP}more(){this._type=Yt.MORE}mode(t){this._mode=t}pushMode(t){this._interp.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode}emitToken(t){this._token=t}emit(){const t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(t),t}emitEOF(){const e=this.column,r=this.line,s=this._factory.create(this._tokenFactorySourcePair,t.EOF,null,t.DEFAULT_CHANNEL,this._input.index,this._input.index-1,r,e);return this.emitToken(s),s}getCharIndex(){return this._input.index}getAllTokens(){const e=[];let r=this.nextToken();for(;r.type!==t.EOF;)e.push(r),r=this.nextToken();return e}notifyListeners(t){const e=this._tokenStartCharIndex,r=this._input.index,s=this._input.getText(e,r),i="token recognition error at: '"+this.getErrorDisplay(s)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,i,t)}getErrorDisplay(t){const e=[];for(let r=0;r<t.length;r++)e.push(t[r]);return e.join("")}getErrorDisplayForChar(e){return e.charCodeAt(0)===t.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e}getCharErrorDisplay(t){return"'"+this.getErrorDisplayForChar(t)+"'"}recover(e){this._input.LA(1)!==t.EOF&&(e instanceof qt?this._interp.consume(this._input):this._input.consume())}get inputStream(){return this._input}set inputStream(t){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=t,this._tokenFactorySourcePair=[this,this._input]}get sourceName(){return this._input.sourceName}get type(){return this._type}set type(t){this._type=t}get line(){return this._interp.line}set line(t){this._interp.line=t}get column(){return this._interp.column}set column(t){this._interp.column=t}get text(){return null!==this._text?this._text:this._interp.getText(this._input)}set text(t){this._text=t}}function Ft(t){return t.hashCodeForConfigSet()}function Mt(t,e){return t===e||null!==t&&null!==e&&t.equalsForConfigSet(e)}Yt.DEFAULT_MODE=0,Yt.MORE=-2,Yt.SKIP=-3,Yt.DEFAULT_TOKEN_CHANNEL=t.DEFAULT_CHANNEL,Yt.HIDDEN=t.HIDDEN_CHANNEL,Yt.MIN_CHAR_VALUE=0,Yt.MAX_CHAR_VALUE=1114111;class Ut{constructor(t){this.configLookup=new d(Ft,Mt),this.fullCtx=void 0===t||t,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}add(t,e){if(void 0===e&&(e=null),this.readOnly)throw"This set is readonly";t.semanticContext!==p.NONE&&(this.hasSemanticContext=!0),t.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);const r=this.configLookup.add(t);if(r===t)return this.cachedHashCode=-1,this.configs.push(t),!0;const s=!this.fullCtx,i=$(r.context,t.context,s,e);return r.reachesIntoOuterContext=Math.max(r.reachesIntoOuterContext,t.reachesIntoOuterContext),t.precedenceFilterSuppressed&&(r.precedenceFilterSuppressed=!0),r.context=i,!0}getStates(){const t=new d;for(let e=0;e<this.configs.length;e++)t.add(this.configs[e].state);return t}getPredicates(){const t=[];for(let e=0;e<this.configs.length;e++){const r=this.configs[e].semanticContext;r!==p.NONE&&t.push(r.semanticContext)}return t}optimizeConfigs(t){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(let e=0;e<this.configs.length;e++){const r=this.configs[e];r.context=t.getCachedContext(r.context)}}addAll(t){for(let e=0;e<t.length;e++)this.add(t[e]);return!1}equals(t){return this===t||t instanceof Ut&&e(this.configs,t.configs)&&this.fullCtx===t.fullCtx&&this.uniqueAlt===t.uniqueAlt&&this.conflictingAlts===t.conflictingAlts&&this.hasSemanticContext===t.hasSemanticContext&&this.dipsIntoOuterContext===t.dipsIntoOuterContext}hashCode(){const t=new a;return t.update(this.configs),t.finish()}updateHashCode(t){this.readOnly?(-1===this.cachedHashCode&&(this.cachedHashCode=this.hashCode()),t.update(this.cachedHashCode)):t.update(this.hashCode())}isEmpty(){return 0===this.configs.length}contains(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(t)}containsFast(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(t)}clear(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new d}setReadonly(t){this.readOnly=t,t&&(this.configLookup=null)}toString(){return h(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==W.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}get items(){return this.configs}get length(){return this.configs.length}}class Bt{constructor(t,e){return null===t&&(t=-1),null===e&&(e=new Ut),this.stateNumber=t,this.configs=e,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}getAltSet(){const t=new d;if(null!==this.configs)for(let e=0;e<this.configs.length;e++){const r=this.configs[e];t.add(r.alt)}return 0===t.length?null:t}equals(t){return this===t||t instanceof Bt&&this.configs.equals(t.configs)}toString(){let t=this.stateNumber+":"+this.configs;return this.isAcceptState&&(t+="=>",null!==this.predicates?t+=this.predicates:t+=this.prediction),t}hashCode(){const t=new a;return t.update(this.configs),t.finish()}}class Vt{constructor(t,e){return this.atn=t,this.sharedContextCache=e,this}getCachedContext(t){if(null===this.sharedContextCache)return t;const e=new V;return j(t,this.sharedContextCache,e)}}Vt.ERROR=new Bt(2147483647,new Ut);class Ht extends Ut{constructor(){super(),this.configLookup=new d}}class jt extends w{constructor(t,e){super(t,e);const r=t.lexerActionExecutor||null;return this.lexerActionExecutor=r||(null!==e?e.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==e&&this.checkNonGreedyDecision(e,this.state),this.hashCodeForConfigSet=jt.prototype.hashCode,this.equalsForConfigSet=jt.prototype.equals,this}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}equals(t){return this===t||t instanceof jt&&this.passedThroughNonGreedyDecision===t.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(t.lexerActionExecutor):!t.lexerActionExecutor)&&super.equals(t)}checkNonGreedyDecision(t,e){return t.passedThroughNonGreedyDecision||e instanceof Q&&e.nonGreedy}}class $t extends wt{constructor(t,e){super(e.actionType),this.offset=t,this.action=e,this.isPositionDependent=!0}execute(t){this.action.execute(t)}updateHashCode(t){t.update(this.actionType,this.offset,this.action)}equals(t){return this===t||t instanceof $t&&this.offset===t.offset&&this.action===t.action}}class Gt{constructor(t){return this.lexerActions=null===t?[]:t,this.cachedHashCode=a.hashStuff(t),this}fixOffsetBeforeMatch(t){let e=null;for(let r=0;r<this.lexerActions.length;r++)!this.lexerActions[r].isPositionDependent||this.lexerActions[r]instanceof $t||(null===e&&(e=this.lexerActions.concat([])),e[r]=new $t(t,this.lexerActions[r]));return null===e?this:new Gt(e)}execute(t,e,r){let s=!1;const i=e.index;try{for(let n=0;n<this.lexerActions.length;n++){let a=this.lexerActions[n];if(a instanceof $t){const t=a.offset;e.seek(r+t),a=a.action,s=r+t!==i}else a.isPositionDependent&&(e.seek(i),s=!1);a.execute(t)}}finally{s&&e.seek(i)}}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}equals(t){if(this===t)return!0;if(t instanceof Gt){if(this.cachedHashCode!=t.cachedHashCode)return!1;if(this.lexerActions.length!=t.lexerActions.length)return!1;{const e=this.lexerActions.length;for(let r=0;r<e;++r)if(!this.lexerActions[r].equals(t.lexerActions[r]))return!1;return!0}}return!1}static append(t,e){if(null===t)return new Gt([e]);const r=t.lexerActions.concat([e]);return new Gt(r)}}function zt(t){t.index=-1,t.line=0,t.column=-1,t.dfaState=null}class Wt{constructor(){zt(this)}reset(){zt(this)}}class Xt extends Vt{constructor(t,e,r,s){super(e,s),this.decisionToDFA=r,this.recog=t,this.startIndex=-1,this.line=1,this.column=0,this.mode=Yt.DEFAULT_MODE,this.prevAccept=new Wt}copyState(t){this.column=t.column,this.line=t.line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;const r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();const r=this.decisionToDFA[e];return null===r.s0?this.matchATN(t):this.execATN(t,r.s0)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=Yt.DEFAULT_MODE}matchATN(t){const e=this.atn.modeToStartState[this.mode];Xt.debug&&console.log("matchATN mode "+this.mode+" start: "+e);const r=this.mode,s=this.computeStartState(t,e),i=s.hasSemanticContext;s.hasSemanticContext=!1;const n=this.addDFAState(s);i||(this.decisionToDFA[this.mode].s0=n);const a=this.execATN(t,n);return Xt.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[r].toLexerString()),a}execATN(e,r){Xt.debug&&console.log("start state closure="+r.configs),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let s=e.LA(1),i=r;for(;;){Xt.debug&&console.log("execATN loop starting closure: "+i.configs);let r=this.getExistingTargetState(i,s);if(null===r&&(r=this.computeTargetState(e,i,s)),r===Vt.ERROR)break;if(s!==t.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),s===t.EOF))break;s=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,s)}getExistingTargetState(t,e){if(null===t.edges||e<Xt.MIN_DFA_EDGE||e>Xt.MAX_DFA_EDGE)return null;let r=t.edges[e-Xt.MIN_DFA_EDGE];return void 0===r&&(r=null),Xt.debug&&null!==r&&console.log("reuse state "+t.stateNumber+" edge to "+r.stateNumber),r}computeTargetState(t,e,r){const s=new Ht;return this.getReachableConfigSet(t,e.configs,s,r),0===s.items.length?(s.hasSemanticContext||this.addDFAEdge(e,r,Vt.ERROR),Vt.ERROR):this.addDFAEdge(e,r,null,s)}failOrAccept(e,r,s,i){if(null!==this.prevAccept.dfaState){const t=e.dfaState.lexerActionExecutor;return this.accept(r,t,this.startIndex,e.index,e.line,e.column),e.dfaState.prediction}if(i===t.EOF&&r.index===this.startIndex)return t.EOF;throw new qt(this.recog,r,this.startIndex,s)}getReachableConfigSet(e,r,s,i){let n=W.INVALID_ALT_NUMBER;for(let a=0;a<r.items.length;a++){const o=r.items[a],c=o.alt===n;if(!c||!o.passedThroughNonGreedyDecision){Xt.debug&&console.log("testing %s at %s\n",this.getTokenName(i),o.toString(this.recog,!0));for(let r=0;r<o.state.transitions.length;r++){const a=o.state.transitions[r],l=this.getReachableTarget(a,i);if(null!==l){let r=o.lexerActionExecutor;null!==r&&(r=r.fixOffsetBeforeMatch(e.index-this.startIndex));const a=i===t.EOF,h=new jt({state:l,lexerActionExecutor:r},o);this.closure(e,h,s,c,!0,a)&&(n=o.alt)}}}}}accept(t,e,r,s,i,n){Xt.debug&&console.log("ACTION %s\n",e),t.seek(s),this.line=i,this.column=n,null!==e&&null!==this.recog&&e.execute(this.recog,t,r)}getReachableTarget(t,e){return t.matches(e,0,Yt.MAX_CHAR_VALUE)?t.target:null}computeStartState(t,e){const r=Y.EMPTY,s=new Ht;for(let i=0;i<e.transitions.length;i++){const n=e.transitions[i].target,a=new jt({state:n,alt:i+1,context:r},null);this.closure(t,a,s,!1,!1,!1)}return s}closure(t,e,r,s,i,n){let a=null;if(Xt.debug&&console.log("closure("+e.toString(this.recog,!0)+")"),e.state instanceof _){if(Xt.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.ruleNames[e.state.ruleIndex],e):console.log("closure at rule stop %s\n",e)),null===e.context||e.context.hasEmptyPath()){if(null===e.context||e.context.isEmpty())return r.add(e),!0;r.add(new jt({state:e.state,context:Y.EMPTY},e)),s=!0}if(null!==e.context&&!e.context.isEmpty())for(let o=0;o<e.context.length;o++)if(e.context.getReturnState(o)!==Y.EMPTY_RETURN_STATE){const c=e.context.getParent(o),l=this.atn.states[e.context.getReturnState(o)];a=new jt({state:l,context:c},e),s=this.closure(t,a,r,s,i,n)}return s}e.state.epsilonOnlyTransitions||s&&e.passedThroughNonGreedyDecision||r.add(e);for(let o=0;o<e.state.transitions.length;o++){const c=e.state.transitions[o];a=this.getEpsilonTarget(t,e,c,r,i,n),null!==a&&(s=this.closure(t,a,r,s,i,n))}return s}getEpsilonTarget(e,r,s,i,n,a){let o=null;if(s.serializationType===E.RULE){const t=M.create(r.context,s.followState.stateNumber);o=new jt({state:s.target,context:t},r)}else{if(s.serializationType===E.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(s.serializationType===E.PREDICATE)Xt.debug&&console.log("EVAL rule "+s.ruleIndex+":"+s.predIndex),i.hasSemanticContext=!0,this.evaluatePredicate(e,s.ruleIndex,s.predIndex,n)&&(o=new jt({state:s.target},r));else if(s.serializationType===E.ACTION)if(null===r.context||r.context.hasEmptyPath()){const t=Gt.append(r.lexerActionExecutor,this.atn.lexerActions[s.actionIndex]);o=new jt({state:s.target,lexerActionExecutor:t},r)}else o=new jt({state:s.target},r);else s.serializationType===E.EPSILON?o=new jt({state:s.target},r):s.serializationType!==E.ATOM&&s.serializationType!==E.RANGE&&s.serializationType!==E.SET||a&&s.matches(t.EOF,0,Yt.MAX_CHAR_VALUE)&&(o=new jt({state:s.target},r))}return o}evaluatePredicate(t,e,r,s){if(null===this.recog)return!0;if(!s)return this.recog.sempred(null,e,r);const i=this.column,n=this.line,a=t.index,o=t.mark();try{return this.consume(t),this.recog.sempred(null,e,r)}finally{this.column=i,this.line=n,t.seek(a),t.release(o)}}captureSimState(t,e,r){t.index=e.index,t.line=this.line,t.column=this.column,t.dfaState=r}addDFAEdge(t,e,r,s){if(void 0===r&&(r=null),void 0===s&&(s=null),null===r&&null!==s){const t=s.hasSemanticContext;if(s.hasSemanticContext=!1,r=this.addDFAState(s),t)return r}return e<Xt.MIN_DFA_EDGE||e>Xt.MAX_DFA_EDGE||(Xt.debug&&console.log("EDGE "+t+" -> "+r+" upon "+e),null===t.edges&&(t.edges=[]),t.edges[e-Xt.MIN_DFA_EDGE]=r),r}addDFAState(t){const e=new Bt(null,t);let r=null;for(let e=0;e<t.items.length;e++){const s=t.items[e];if(s.state instanceof _){r=s;break}}null!==r&&(e.isAcceptState=!0,e.lexerActionExecutor=r.lexerActionExecutor,e.prediction=this.atn.ruleToTokenType[r.state.ruleIndex]);const s=this.decisionToDFA[this.mode],i=s.states.get(e);if(null!==i)return i;const n=e;return n.stateNumber=s.states.length,t.setReadonly(!0),n.configs=t,s.states.add(n),n}getDFA(t){return this.decisionToDFA[t]}getText(t){return t.getText(this.startIndex,t.index-1)}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}}Xt.debug=!1,Xt.dfa_debug=!1,Xt.MIN_DFA_EDGE=0,Xt.MAX_DFA_EDGE=127;class Qt{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}}class Jt{constructor(){this.data={}}get(t){return this.data["k-"+t]||null}set(t,e){this.data["k-"+t]=e}values(){return Object.keys(this.data).filter((t=>t.startsWith("k-"))).map((t=>this.data[t]),this)}}const Zt={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(t,e){if(Zt.allConfigsInRuleStopStates(e))return!0;if(t===Zt.SLL&&e.hasSemanticContext){const t=new Ut;for(let r=0;r<e.items.length;r++){let s=e.items[r];s=new w({semanticContext:p.NONE},s),t.add(s)}e=t}const r=Zt.getConflictingAltSubsets(e);return Zt.hasConflictingAltSet(r)&&!Zt.hasStateAssociatedWithOneAlt(e)},hasConfigInRuleStopState:function(t){for(let e=0;e<t.items.length;e++)if(t.items[e].state instanceof _)return!0;return!1},allConfigsInRuleStopStates:function(t){for(let e=0;e<t.items.length;e++)if(!(t.items[e].state instanceof _))return!1;return!0},resolvesToJustOneViableAlt:function(t){return Zt.getSingleViableAlt(t)},allSubsetsConflict:function(t){return!Zt.hasNonConflictingAltSet(t)},hasNonConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(1===t[e].length)return!0;return!1},hasConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(t[e].length>1)return!0;return!1},allSubsetsEqual:function(t){let e=null;for(let r=0;r<t.length;r++){const s=t[r];if(null===e)e=s;else if(s!==e)return!1}return!0},getUniqueAlt:function(t){const e=Zt.getAlts(t);return 1===e.length?e.minValue():W.INVALID_ALT_NUMBER},getAlts:function(t){const e=new G;return t.map((function(t){e.or(t)})),e},getConflictingAltSubsets:function(t){const e=new V;return e.hashFunction=function(t){a.hashStuff(t.state.stateNumber,t.context)},e.equalsFunction=function(t,e){return t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)},t.items.map((function(t){let r=e.get(t);null===r&&(r=new G,e.set(t,r)),r.add(t.alt)})),e.getValues()},getStateToAltMap:function(t){const e=new Jt;return t.items.map((function(t){let r=e.get(t.state);null===r&&(r=new G,e.set(t.state,r)),r.add(t.alt)})),e},hasStateAssociatedWithOneAlt:function(t){const e=Zt.getStateToAltMap(t).values();for(let t=0;t<e.length;t++)if(1===e[t].length)return!0;return!1},getSingleViableAlt:function(t){let e=null;for(let r=0;r<t.length;r++){const s=t[r].minValue();if(null===e)e=s;else if(e!==s)return W.INVALID_ALT_NUMBER}return e}},te=Zt;class ee extends Pt{constructor(t,e,r,s,i,n){n=n||t._ctx,s=s||t.getCurrentToken(),r=r||t.getCurrentToken(),e=e||t.getInputStream(),super({message:"",recognizer:t,input:e,ctx:n}),this.deadEndConfigs=i,this.startToken=r,this.offendingToken=s}}class re{constructor(t){this.defaultMapCtor=t||V,this.cacheMap=new this.defaultMapCtor}get(t,e){const r=this.cacheMap.get(t)||null;return null===r?null:r.get(e)||null}set(t,e,r){let s=this.cacheMap.get(t)||null;null===s&&(s=new this.defaultMapCtor,this.cacheMap.set(t,s)),s.set(e,r)}}class se extends Vt{constructor(t,e,r,s){super(e,s),this.parser=t,this.decisionToDFA=r,this.predictionMode=te.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this.debug=!1,this.debug_closure=!1,this.debug_add=!1,this.trace_atn_sim=!1,this.dfa_debug=!1,this.retry_debug=!1}reset(){}adaptivePredict(t,e,r){(this.debug||this.trace_atn_sim)&&console.log("adaptivePredict decision "+e+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column),this._input=t,this._startIndex=t.index,this._outerContext=r;const s=this.decisionToDFA[e];this._dfa=s;const i=t.mark(),n=t.index;try{let e;if(e=s.precedenceDfa?s.getPrecedenceStartState(this.parser.getPrecedence()):s.s0,null===e){null===r&&(r=q.EMPTY),this.debug&&console.log("predictATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+r.toString(this.parser.ruleNames));const i=!1;let n=this.computeStartState(s.atnStartState,q.EMPTY,i);s.precedenceDfa?(s.s0.configs=n,n=this.applyPrecedenceFilter(n),e=this.addDFAState(s,new Bt(null,n)),s.setPrecedenceStartState(this.parser.getPrecedence(),e)):(e=this.addDFAState(s,new Bt(null,n)),s.s0=e)}const i=this.execATN(s,e,t,n,r);return this.debug&&console.log("DFA after predictATN: "+s.toString(this.parser.literalNames,this.parser.symbolicNames)),i}finally{this._dfa=null,this.mergeCache=null,t.seek(n),t.release(i)}}execATN(e,r,s,i,n){let a;(this.debug||this.trace_atn_sim)&&console.log("execATN decision "+e.decision+", DFA state "+r+", LA(1)=="+this.getLookaheadName(s)+" line "+s.LT(1).line+":"+s.LT(1).column);let o=r;this.debug&&console.log("s0 = "+r);let c=s.LA(1);for(;;){let r=this.getExistingTargetState(o,c);if(null===r&&(r=this.computeTargetState(e,o,c)),r===Vt.ERROR){const t=this.noViableAlt(s,n,o.configs,i);if(s.seek(i),a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(o.configs,n),a!==W.INVALID_ALT_NUMBER)return a;throw t}if(r.requiresFullContext&&this.predictionMode!==te.SLL){let t=null;if(null!==r.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");const e=s.index;if(e!==i&&s.seek(i),t=this.evalSemanticContext(r.predicates,n,!0),1===t.length)return this.debug&&console.log("Full LL avoided"),t.minValue();e!==i&&s.seek(e)}this.dfa_debug&&console.log("ctx sensitive state "+n+" in "+r);const o=!0,c=this.computeStartState(e.atnStartState,n,o);return this.reportAttemptingFullContext(e,t,r.configs,i,s.index),a=this.execATNWithFullContext(e,r,c,s,i,n),a}if(r.isAcceptState){if(null===r.predicates)return r.prediction;const t=s.index;s.seek(i);const a=this.evalSemanticContext(r.predicates,n,!0);if(0===a.length)throw this.noViableAlt(s,n,r.configs,i);return 1===a.length||this.reportAmbiguity(e,r,i,t,!1,a,r.configs),a.minValue()}o=r,c!==t.EOF&&(s.consume(),c=s.LA(1))}}getExistingTargetState(t,e){const r=t.edges;return null===r?null:r[e+1]||null}computeTargetState(t,e,r){const s=this.computeReachSet(e.configs,r,!1);if(null===s)return this.addDFAEdge(t,e,r,Vt.ERROR),Vt.ERROR;let i=new Bt(null,s);const n=this.getUniqueAlt(s);if(this.debug){const t=te.getConflictingAltSubsets(s);console.log("SLL altSubSets="+h(t)+", configs="+s+", predict="+n+", allSubsetsConflict="+te.allSubsetsConflict(t)+", conflictingAlts="+this.getConflictingAlts(s))}return n!==W.INVALID_ALT_NUMBER?(i.isAcceptState=!0,i.configs.uniqueAlt=n,i.prediction=n):te.hasSLLConflictTerminatingPrediction(this.predictionMode,s)&&(i.configs.conflictingAlts=this.getConflictingAlts(s),i.requiresFullContext=!0,i.isAcceptState=!0,i.prediction=i.configs.conflictingAlts.minValue()),i.isAcceptState&&i.configs.hasSemanticContext&&(this.predicateDFAState(i,this.atn.getDecisionState(t.decision)),null!==i.predicates&&(i.prediction=W.INVALID_ALT_NUMBER)),i=this.addDFAEdge(t,e,r,i),i}predicateDFAState(t,e){const r=e.transitions.length,s=this.getConflictingAltsOrUniqueAlt(t.configs),i=this.getPredsForAmbigAlts(s,t.configs,r);null!==i?(t.predicates=this.getPredicatePredictions(s,i),t.prediction=W.INVALID_ALT_NUMBER):t.prediction=s.minValue()}execATNWithFullContext(e,r,s,i,n,a){(this.debug||this.trace_atn_sim)&&console.log("execATNWithFullContext "+s);let o,c=!1,l=s;i.seek(n);let h=i.LA(1),u=-1;for(;;){if(o=this.computeReachSet(l,h,!0),null===o){const t=this.noViableAlt(i,a,l,n);i.seek(n);const e=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(l,a);if(e!==W.INVALID_ALT_NUMBER)return e;throw t}const e=te.getConflictingAltSubsets(o);if(this.debug&&console.log("LL altSubSets="+e+", predict="+te.getUniqueAlt(e)+", resolvesToJustOneViableAlt="+te.resolvesToJustOneViableAlt(e)),o.uniqueAlt=this.getUniqueAlt(o),o.uniqueAlt!==W.INVALID_ALT_NUMBER){u=o.uniqueAlt;break}if(this.predictionMode!==te.LL_EXACT_AMBIG_DETECTION){if(u=te.resolvesToJustOneViableAlt(e),u!==W.INVALID_ALT_NUMBER)break}else if(te.allSubsetsConflict(e)&&te.allSubsetsEqual(e)){c=!0,u=te.getSingleViableAlt(e);break}l=o,h!==t.EOF&&(i.consume(),h=i.LA(1))}return o.uniqueAlt!==W.INVALID_ALT_NUMBER?(this.reportContextSensitivity(e,u,o,n,i.index),u):(this.reportAmbiguity(e,r,n,i.index,c,null,o),u)}computeReachSet(e,r,s){this.debug&&console.log("in computeReachSet, starting closure: "+e),null===this.mergeCache&&(this.mergeCache=new re);const i=new Ut(s);let n=null;for(let a=0;a<e.items.length;a++){const o=e.items[a];if(this.debug&&console.log("testing "+this.getTokenName(r)+" at "+o),o.state instanceof _)(s||r===t.EOF)&&(null===n&&(n=[]),n.push(o),this.debug_add&&console.log("added "+o+" to skippedStopStates"));else for(let t=0;t<o.state.transitions.length;t++){const e=o.state.transitions[t],s=this.getReachableTarget(e,r);if(null!==s){const t=new w({state:s},o);i.add(t,this.mergeCache),this.debug_add&&console.log("added "+t+" to intermediate")}}}let a=null;if(null===n&&r!==t.EOF&&(1===i.items.length||this.getUniqueAlt(i)!==W.INVALID_ALT_NUMBER)&&(a=i),null===a){a=new Ut(s);const e=new d,n=r===t.EOF;for(let t=0;t<i.items.length;t++)this.closure(i.items[t],a,e,!1,s,n)}if(r===t.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===i)),!(null===n||s&&te.hasConfigInRuleStopState(a)))for(let t=0;t<n.length;t++)a.add(n[t],this.mergeCache);return this.trace_atn_sim&&console.log("computeReachSet "+e+" -> "+a),0===a.items.length?null:a}removeAllConfigsNotInRuleStopState(e,r){if(te.allConfigsInRuleStopStates(e))return e;const s=new Ut(e.fullCtx);for(let i=0;i<e.items.length;i++){const n=e.items[i];if(n.state instanceof _)s.add(n,this.mergeCache);else if(r&&n.state.epsilonOnlyTransitions&&this.atn.nextTokens(n.state).contains(t.EPSILON)){const t=this.atn.ruleToStopState[n.state.ruleIndex];s.add(new w({state:t},n),this.mergeCache)}}return s}computeStartState(t,e,r){const s=H(this.atn,e),i=new Ut(r);this.trace_atn_sim&&console.log("computeStartState from ATN state "+t+" initialContext="+s.toString(this.parser));for(let e=0;e<t.transitions.length;e++){const n=t.transitions[e].target,a=new w({state:n,alt:e+1,context:s},null),o=new d;this.closure(a,i,o,!0,r,!1)}return i}applyPrecedenceFilter(t){let e;const r=[],s=new Ut(t.fullCtx);for(let i=0;i<t.items.length;i++){if(e=t.items[i],1!==e.alt)continue;const n=e.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==n&&(r[e.state.stateNumber]=e.context,n!==e.semanticContext?s.add(new w({semanticContext:n},e),this.mergeCache):s.add(e,this.mergeCache))}for(let i=0;i<t.items.length;i++)if(e=t.items[i],1!==e.alt){if(!e.precedenceFilterSuppressed){const t=r[e.state.stateNumber]||null;if(null!==t&&t.equals(e.context))continue}s.add(e,this.mergeCache)}return s}getReachableTarget(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null}getPredsForAmbigAlts(t,e,r){let s=[];for(let r=0;r<e.items.length;r++){const i=e.items[r];t.has(i.alt)&&(s[i.alt]=p.orContext(s[i.alt]||null,i.semanticContext))}let i=0;for(let t=1;t<r+1;t++){const e=s[t]||null;null===e?s[t]=p.NONE:e!==p.NONE&&(i+=1)}return 0===i&&(s=null),this.debug&&console.log("getPredsForAmbigAlts result "+h(s)),s}getPredicatePredictions(t,e){const r=[];let s=!1;for(let i=1;i<e.length;i++){const n=e[i];null!==t&&t.has(i)&&r.push(new Qt(n,i)),n!==p.NONE&&(s=!0)}return s?r:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(t,e){const r=this.splitAccordingToSemanticValidity(t,e),s=r[0],i=r[1];let n=this.getAltThatFinishedDecisionEntryRule(s);return n!==W.INVALID_ALT_NUMBER||i.items.length>0&&(n=this.getAltThatFinishedDecisionEntryRule(i),n!==W.INVALID_ALT_NUMBER)?n:W.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(t){const e=[];for(let r=0;r<t.items.length;r++){const s=t.items[r];(s.reachesIntoOuterContext>0||s.state instanceof _&&s.context.hasEmptyPath())&&e.indexOf(s.alt)<0&&e.push(s.alt)}return 0===e.length?W.INVALID_ALT_NUMBER:Math.min.apply(null,e)}splitAccordingToSemanticValidity(t,e){const r=new Ut(t.fullCtx),s=new Ut(t.fullCtx);for(let i=0;i<t.items.length;i++){const n=t.items[i];n.semanticContext!==p.NONE?n.semanticContext.evaluate(this.parser,e)?r.add(n):s.add(n):r.add(n)}return[r,s]}evalSemanticContext(t,e,r){const s=new G;for(let i=0;i<t.length;i++){const n=t[i];if(n.pred===p.NONE){if(s.add(n.alt),!r)break;continue}const a=n.pred.evaluate(this.parser,e);if((this.debug||this.dfa_debug)&&console.log("eval pred "+n+"="+a),a&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+n.alt),s.add(n.alt),!r))break}return s}closure(t,e,r,s,i,n){this.closureCheckingStopState(t,e,r,s,i,0,n)}closureCheckingStopState(t,e,r,s,i,n,a){if((this.trace_atn_sim||this.debug_closure)&&console.log("closure("+t.toString(this.parser,!0)+")"),t.state instanceof _){if(!t.context.isEmpty()){for(let o=0;o<t.context.length;o++){if(t.context.getReturnState(o)===Y.EMPTY_RETURN_STATE){if(i){e.add(new w({state:t.state,context:Y.EMPTY},t),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,e,r,s,i,n,a);continue}const c=this.atn.states[t.context.getReturnState(o)],l=t.context.getParent(o),h={state:c,alt:t.alt,context:l,semanticContext:t.semanticContext},u=new w(h,null);u.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(u,e,r,s,i,n-1,a)}return}if(i)return void e.add(t,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,e,r,s,i,n,a)}closure_(t,e,r,s,i,n,a){const o=t.state;o.epsilonOnlyTransitions||e.add(t,this.mergeCache);for(let c=0;c<o.transitions.length;c++){if(0===c&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const l=o.transitions[c],h=s&&!(l instanceof ut),u=this.getEpsilonTarget(t,l,h,0===n,i,a);if(null!==u){let s=n;if(t.state instanceof _){if(null!==this._dfa&&this._dfa.precedenceDfa&&l.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(u.precedenceFilterSuppressed=!0),u.reachesIntoOuterContext+=1,r.add(u)!==u)continue;e.dipsIntoOuterContext=!0,s-=1,this.debug&&console.log("dips into outer ctx: "+u)}else{if(!l.isEpsilon&&r.add(u)!==u)continue;l instanceof T&&s>=0&&(s+=1)}this.closureCheckingStopState(u,e,r,h,i,s,a)}}}canDropLoopEntryEdgeInLeftRecursiveRule(t){const e=t.state;if(e.stateType!==b.STAR_LOOP_ENTRY)return!1;if(e.stateType!==b.STAR_LOOP_ENTRY||!e.isPrecedenceDecision||t.context.isEmpty()||t.context.hasEmptyPath())return!1;const r=t.context.length;for(let s=0;s<r;s++)if(this.atn.states[t.context.getReturnState(s)].ruleIndex!==e.ruleIndex)return!1;const s=e.transitions[0].target.endState.stateNumber,i=this.atn.states[s];for(let s=0;s<r;s++){const r=t.context.getReturnState(s),n=this.atn.states[r];if(1!==n.transitions.length||!n.transitions[0].isEpsilon)return!1;const a=n.transitions[0].target;if(!(n.stateType===b.BLOCK_END&&a===e||n===i||a===i||a.stateType===b.BLOCK_END&&1===a.transitions.length&&a.transitions[0].isEpsilon&&a.transitions[0].target===e))return!1}return!0}getRuleName(t){return null!==this.parser&&t>=0?this.parser.ruleNames[t]:"<rule "+t+">"}getEpsilonTarget(e,r,s,i,n,a){switch(r.serializationType){case E.RULE:return this.ruleTransition(e,r);case E.PRECEDENCE:return this.precedenceTransition(e,r,s,i,n);case E.PREDICATE:return this.predTransition(e,r,s,i,n);case E.ACTION:return this.actionTransition(e,r);case E.EPSILON:return new w({state:r.target},e);case E.ATOM:case E.RANGE:case E.SET:return a&&r.matches(t.EOF,0,1)?new w({state:r.target},e):null;default:return null}}actionTransition(t,e){if(this.debug){const t=-1===e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+t)}return new w({state:e.target},t)}precedenceTransition(t,e,r,s,i){this.debug&&(console.log("PRED (collectPredicates="+r+") "+e.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+h(this.parser.getRuleInvocationStack())));let n=null;if(r&&s)if(i){const r=this._input.index;this._input.seek(this._startIndex);const s=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),s&&(n=new w({state:e.target},t))}else{const r=p.andContext(t.semanticContext,e.getPredicate());n=new w({state:e.target,semanticContext:r},t)}else n=new w({state:e.target},t);return this.debug&&console.log("config from pred transition="+n),n}predTransition(t,e,r,s,i){this.debug&&(console.log("PRED (collectPredicates="+r+") "+e.ruleIndex+":"+e.predIndex+", ctx dependent="+e.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+h(this.parser.getRuleInvocationStack())));let n=null;if(r&&(e.isCtxDependent&&s||!e.isCtxDependent))if(i){const r=this._input.index;this._input.seek(this._startIndex);const s=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),s&&(n=new w({state:e.target},t))}else{const r=p.andContext(t.semanticContext,e.getPredicate());n=new w({state:e.target,semanticContext:r},t)}else n=new w({state:e.target},t);return this.debug&&console.log("config from pred transition="+n),n}ruleTransition(t,e){this.debug&&console.log("CALL rule "+this.getRuleName(e.target.ruleIndex)+", ctx="+t.context);const r=e.followState,s=M.create(t.context,r.stateNumber);return new w({state:e.target,context:s},t)}getConflictingAlts(t){const e=te.getConflictingAltSubsets(t);return te.getAlts(e)}getConflictingAltsOrUniqueAlt(t){let e=null;return t.uniqueAlt!==W.INVALID_ALT_NUMBER?(e=new G,e.add(t.uniqueAlt)):e=t.conflictingAlts,e}getTokenName(e){if(e===t.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(e>=this.parser.literalNames.length&&e>=this.parser.symbolicNames.length))return(this.parser.literalNames[e]||this.parser.symbolicNames[e])+"<"+e+">";console.log(e+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+e}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");const e=t.getDeadEndConfigs();for(let t=0;t<e.length;t++){const r=e[t];let s="no edges";if(r.state.transitions.length>0){const t=r.state.transitions[0];t instanceof lt?s="Atom "+this.getTokenName(t.label):t instanceof S&&(s=(t instanceof k?"~":"")+"Set "+t.set)}console.error(r.toString(this.parser,!0)+":"+s)}}noViableAlt(t,e,r,s){return new ee(this.parser,t,t.get(s),t.LT(1),r,e)}getUniqueAlt(t){let e=W.INVALID_ALT_NUMBER;for(let r=0;r<t.items.length;r++){const s=t.items[r];if(e===W.INVALID_ALT_NUMBER)e=s.alt;else if(s.alt!==e)return W.INVALID_ALT_NUMBER}return e}addDFAEdge(t,e,r,s){if(this.debug&&console.log("EDGE "+e+" -> "+s+" upon "+this.getTokenName(r)),null===s)return null;if(s=this.addDFAState(t,s),null===e||r<-1||r>this.atn.maxTokenType)return s;if(null===e.edges&&(e.edges=[]),e.edges[r+1]=s,this.debug){const e=null===this.parser?null:this.parser.literalNames,r=null===this.parser?null:this.parser.symbolicNames;console.log("DFA=\n"+t.toString(e,r))}return s}addDFAState(t,e){if(e===Vt.ERROR)return e;const r=t.states.get(e);return null!==r?(this.trace_atn_sim&&console.log("addDFAState "+e+" exists"),r):(e.stateNumber=t.states.length,e.configs.readOnly||(e.configs.optimizeConfigs(this),e.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+e),t.states.add(e),this.debug&&console.log("adding new DFA state: "+e),e)}reportAttemptingFullContext(t,e,r,s,i){if(this.debug||this.retry_debug){const e=new x(s,i+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+r+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,t,s,i,e,r)}reportContextSensitivity(t,e,r,s,i){if(this.debug||this.retry_debug){const e=new x(s,i+1);console.log("reportContextSensitivity decision="+t.decision+":"+r+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,t,s,i,e,r)}reportAmbiguity(t,e,r,s,i,n,a){if(this.debug||this.retry_debug){const t=new x(r,s+1);console.log("reportAmbiguity "+n+":"+a+", input="+this.parser.getTokenStream().getText(t))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,t,r,s,i,n,a)}}class ie{constructor(){this.cache=new V}add(t){if(t===Y.EMPTY)return Y.EMPTY;const e=this.cache.get(t)||null;return null!==e?e:(this.cache.set(t,t),t)}get(t){return this.cache.get(t)||null}get length(){return this.cache.length}}const ne={ATN:W,ATNDeserializer:Ct,LexerATNSimulator:Xt,ParserATNSimulator:se,PredictionMode:te,PredictionContextCache:ie};class ae{constructor(t,e,r){this.dfa=t,this.literalNames=e||[],this.symbolicNames=r||[]}toString(){if(null===this.dfa.s0)return null;let t="";const e=this.dfa.sortedStates();for(let r=0;r<e.length;r++){const s=e[r];if(null!==s.edges){const e=s.edges.length;for(let r=0;r<e;r++){const e=s.edges[r]||null;null!==e&&2147483647!==e.stateNumber&&(t=t.concat(this.getStateString(s)),t=t.concat("-"),t=t.concat(this.getEdgeLabel(r)),t=t.concat("->"),t=t.concat(this.getStateString(e)),t=t.concat("\n"))}}}return 0===t.length?null:t}getEdgeLabel(t){return 0===t?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[t-1]||this.symbolicNames[t-1]:String.fromCharCode(t-1)}getStateString(t){const e=(t.isAcceptState?":":"")+"s"+t.stateNumber+(t.requiresFullContext?"^":"");return t.isAcceptState?null!==t.predicates?e+"=>"+h(t.predicates):e+"=>"+t.prediction.toString():e}}class oe extends ae{constructor(t){super(t,null)}getEdgeLabel(t){return"'"+String.fromCharCode(t)+"'"}}class ce{constructor(t,e){if(void 0===e&&(e=0),this.atnStartState=t,this.decision=e,this._states=new d,this.s0=null,this.precedenceDfa=!1,t instanceof nt&&t.isPrecedenceDecision){this.precedenceDfa=!0;const t=new Bt(null,new Ut);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}}getPrecedenceStartState(t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return t<0||t>=this.s0.edges.length?null:this.s0.edges[t]||null}setPrecedenceStartState(t,e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";t<0||(this.s0.edges[t]=e)}setPrecedenceDfa(t){if(this.precedenceDfa!==t){if(this._states=new d,t){const t=new Bt(null,new Ut);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}else this.s0=null;this.precedenceDfa=t}}sortedStates(){return this._states.values().sort((function(t,e){return t.stateNumber-e.stateNumber}))}toString(t,e){return t=t||null,e=e||null,null===this.s0?"":new ae(this,t,e).toString()}toLexerString(){return null===this.s0?"":new oe(this).toString()}get states(){return this._states}}const le={DFA:ce,DFASerializer:ae,LexerDFASerializer:oe,PredPrediction:Qt},he={PredictionContext:Y},ue={Interval:x,IntervalSet:v};class de{visitTerminal(t){}visitErrorNode(t){}enterEveryRule(t){}exitEveryRule(t){}}class pe{visit(t){return Array.isArray(t)?t.map((function(t){return t.accept(this)}),this):t.accept(this)}visitChildren(t){return t.children?this.visit(t.children):null}visitTerminal(t){}visitErrorNode(t){}}class me{walk(t,e){if(e instanceof D||void 0!==e.isErrorNode&&e.isErrorNode())t.visitErrorNode(e);else if(e instanceof N)t.visitTerminal(e);else{this.enterRule(t,e);for(let r=0;r<e.getChildCount();r++){const s=e.getChild(r);this.walk(t,s)}this.exitRule(t,e)}}enterRule(t,e){const r=e.ruleContext;t.enterEveryRule(r),r.enterRule(t)}exitRule(t,e){const r=e.ruleContext;r.exitRule(t),t.exitEveryRule(r)}}me.DEFAULT=new me;const ye={Trees:P,RuleNode:I,ErrorNode:D,TerminalNode:N,ParseTreeListener:de,ParseTreeVisitor:pe,ParseTreeWalker:me};class fe extends Pt{constructor(t){super({message:"",recognizer:t,input:t.getInputStream(),ctx:t._ctx}),this.offendingToken=t.getCurrentToken()}}class ge extends Pt{constructor(t,e,r){super({message:we(e,r||null),recognizer:t,input:t.getInputStream(),ctx:t._ctx});const s=t._interp.atn.states[t.state].transitions[0];s instanceof mt?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken()}}function we(t,e){return null!==e?e:"failed predicate: {"+t+"}?"}class xe extends At{constructor(t){super(),t=t||!0,this.exactOnly=t}reportAmbiguity(t,e,r,s,i,n,a){if(this.exactOnly&&!i)return;const o="reportAmbiguity d="+this.getDecisionDescription(t,e)+": ambigAlts="+this.getConflictingAlts(n,a)+", input='"+t.getTokenStream().getText(new x(r,s))+"'";t.notifyErrorListeners(o)}reportAttemptingFullContext(t,e,r,s,i,n){const a="reportAttemptingFullContext d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new x(r,s))+"'";t.notifyErrorListeners(a)}reportContextSensitivity(t,e,r,s,i,n){const a="reportContextSensitivity d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new x(r,s))+"'";t.notifyErrorListeners(a)}getDecisionDescription(t,e){const r=e.decision,s=e.atnStartState.ruleIndex,i=t.ruleNames;if(s<0||s>=i.length)return""+r;const n=i[s]||null;return null===n||0===n.length?""+r:`${r} (${n})`}getConflictingAlts(t,e){if(null!==t)return t;const r=new G;for(let t=0;t<e.items.length;t++)r.add(e.items[t].alt);return`{${r.values().join(", ")}}`}}class ve extends Error{constructor(){super(),Error.captureStackTrace(this,ve)}}class be{reset(t){}recoverInline(t){}recover(t,e){}sync(t){}inErrorRecoveryMode(t){}reportError(t){}}class _e extends be{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof ee?this.reportNoViableAlternative(t,e):e instanceof fe?this.reportInputMismatch(t,e):e instanceof ge?this.reportFailedPredicate(t,e):(console.log("unknown recognition error type: "+e.constructor.name),console.log(e.stack),t.notifyErrorListeners(e.getOffendingToken(),e.getMessage(),e)))}recover(t,e){this.lastErrorIndex===t.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(t.state)>=0&&t.consume(),this.lastErrorIndex=t._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(t.state);const r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(e){if(this.inErrorRecoveryMode(e))return;const r=e._interp.atn.states[e.state],s=e.getTokenStream().LA(1),i=e.atn.nextTokens(r);if(i.contains(s))return this.nextTokensContext=null,void(this.nextTokenState=b.INVALID_STATE_NUMBER);if(i.contains(t.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=e._ctx,this.nextTokensState=e._stateNumber);else switch(r.stateType){case b.BLOCK_START:case b.STAR_BLOCK_START:case b.PLUS_BLOCK_START:case b.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new fe(e);case b.PLUS_LOOP_BACK:case b.STAR_LOOP_BACK:{this.reportUnwantedToken(e);const t=new v;t.addSet(e.getExpectedTokens());const r=t.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,r)}}}reportNoViableAlternative(e,r){const s=e.getTokenStream();let i;i=null!==s?r.startToken.type===t.EOF?"<EOF>":s.getText(new x(r.startToken.tokenIndex,r.offendingToken.tokenIndex)):"<unknown input>";const n="no viable alternative at input "+this.escapeWSAndQuote(i);e.notifyErrorListeners(n,r.offendingToken,r)}reportInputMismatch(t,e){const r="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(r,e.offendingToken,e)}reportFailedPredicate(t,e){const r="rule "+t.ruleNames[t._ctx.ruleIndex]+" "+e.message;t.notifyErrorListeners(r,e.offendingToken,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(r,e,null)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),r="missing "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,null)}recoverInline(t){const e=this.singleTokenDeletion(t);if(null!==e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new fe(t)}singleTokenInsertion(t){const e=t.getTokenStream().LA(1),r=t._interp.atn,s=r.states[t.state].transitions[0].target;return!!r.nextTokens(s,t._ctx).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){const e=t.getTokenStream().LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();const e=t.getCurrentToken();return this.reportMatch(t),e}return null}getMissingSymbol(e){const r=e.getCurrentToken(),s=this.getExpectedTokens(e).first();let i;i=s===t.EOF?"<missing EOF>":"<missing "+e.literalNames[s]+">";let n=r;const a=e.getTokenStream().LT(-1);return n.type===t.EOF&&null!==a&&(n=a),e.getTokenFactory().create(n.source,s,i,t.DEFAULT_CHANNEL,-1,-1,n.line,n.column)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(e){if(null===e)return"<no token>";let r=e.text;return null===r&&(r=e.type===t.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(r)}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(e){const r=e._interp.atn;let s=e._ctx;const i=new v;for(;null!==s&&s.invokingState>=0;){const t=r.states[s.invokingState].transitions[0],e=r.nextTokens(t.followState);i.addSet(e),s=s.parentCtx}return i.removeOne(t.EPSILON),i}consumeUntil(e,r){let s=e.getTokenStream().LA(1);for(;s!==t.EOF&&!r.contains(s);)e.consume(),s=e.getTokenStream().LA(1)}}class Ee extends _e{constructor(){super()}recover(t,e){let r=t._ctx;for(;null!==r;)r.exception=e,r=r.parentCtx;throw new ve(e)}recoverInline(t){this.recover(t,new fe(t))}sync(t){}}const Te={RecognitionException:Pt,NoViableAltException:ee,LexerNoViableAltException:qt,InputMismatchException:fe,FailedPredicateException:ge,DiagnosticErrorListener:xe,BailErrorStrategy:Ee,DefaultErrorStrategy:_e,ErrorListener:At};class Se{constructor(t,e){if(this.name="<empty>",this.strdata=t,this.decodeToUnicodeCodePoints=e||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let t=0;t<this.strdata.length;){const e=this.strdata.codePointAt(t);this.data.push(e),t+=e<=65535?1:2}else{this.data=new Array(this.strdata.length);for(let t=0;t<this.strdata.length;t++)this.data[t]=this.strdata.charCodeAt(t)}this._size=this.data.length}reset(){this._index=0}consume(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}LA(e){if(0===e)return 0;e<0&&(e+=1);const r=this._index+e-1;return r<0||r>=this._size?t.EOF:this.data[r]}LT(t){return this.LA(t)}mark(){return-1}release(t){}seek(t){t<=this._index?this._index=t:this._index=Math.min(t,this._size)}getText(t,e){if(e>=this._size&&(e=this._size-1),t>=this._size)return"";if(this.decodeToUnicodeCodePoints){let r="";for(let s=t;s<=e;s++)r+=String.fromCodePoint(this.data[s]);return r}return this.strdata.slice(t,e+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}class ke extends Se{constructor(t,e){super(t,e)}}var Re=i(92);const Ce="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;class Ae extends ke{static fromPath(t,e,r){if(!Ce)throw new Error("FileStream is only available when running in Node!");Re.readFile(t,e,(function(t,e){let s=null;null!==e&&(s=new Se(e,!0)),r(t,s)}))}constructor(t,e,r){if(!Ce)throw new Error("FileStream is only available when running in Node!");super(Re.readFileSync(t,e||"utf-8"),r),this.fileName=t}}const Ke={fromString:function(t){return new Se(t,!0)},fromBlob:function(t,e,r,s){const i=new window.FileReader;i.onload=function(t){const e=new Se(t.target.result,!0);r(e)},i.onerror=s,i.readAsText(t,e)},fromBuffer:function(t,e){return new Se(t.toString(e),!0)},fromPath:function(t,e,r){Ae.fromPath(t,e,r)},fromPathSync:function(t,e){return new Ae(t,e)}},Le={arrayToString:h,stringToCharArray:function(t){let e=new Uint16Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}};class Ie{}class Ne extends Ie{constructor(t){super(),this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(t){}reset(){this.seek(0)}seek(t){this.lazyInit(),this.index=this.adjustSeekIndex(t)}get size(){return this.tokens.length}get(t){return this.lazyInit(),this.tokens[t]}consume(){let e=!1;if(e=this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length),!e&&this.LA(1)===t.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}sync(t){const e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(e){if(this.fetchedEOF)return 0;for(let r=0;r<e;r++){const e=this.tokenSource.nextToken();if(e.tokenIndex=this.tokens.length,this.tokens.push(e),e.type===t.EOF)return this.fetchedEOF=!0,r+1}return e}getTokens(e,r,s){if(void 0===s&&(s=null),e<0||r<0)return null;this.lazyInit();const i=[];r>=this.tokens.length&&(r=this.tokens.length-1);for(let n=e;n<r;n++){const e=this.tokens[n];if(e.type===t.EOF)break;(null===s||s.contains(e.type))&&i.push(e)}return i}LA(t){return this.LT(t).type}LB(t){return this.index-t<0?null:this.tokens[this.index-t]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);const e=this.index+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.index&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(t){this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,r){if(this.sync(e),e>=this.tokens.length)return-1;let s=this.tokens[e];for(;s.channel!==this.channel;){if(s.type===t.EOF)return-1;e+=1,this.sync(e),s=this.tokens[e]}return e}previousTokenOnChannel(t,e){for(;t>=0&&this.tokens[t].channel!==e;)t-=1;return t}getHiddenTokensToRight(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const r=this.nextTokenOnChannel(t+1,Yt.DEFAULT_TOKEN_CHANNEL),s=t+1,i=-1===r?this.tokens.length-1:r;return this.filterForChannel(s,i,e)}getHiddenTokensToLeft(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const r=this.previousTokenOnChannel(t-1,Yt.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return null;const s=r+1,i=t-1;return this.filterForChannel(s,i,e)}filterForChannel(t,e,r){const s=[];for(let i=t;i<e+1;i++){const t=this.tokens[i];-1===r?t.channel!==Yt.DEFAULT_TOKEN_CHANNEL&&s.push(t):t.channel===r&&s.push(t)}return 0===s.length?null:s}getSourceName(){return this.tokenSource.getSourceName()}getText(e){this.lazyInit(),this.fill(),e||(e=new x(0,this.tokens.length-1));let r=e.start;r instanceof t&&(r=r.tokenIndex);let s=e.stop;if(s instanceof t&&(s=s.tokenIndex),null===r||null===s||r<0||s<0)return"";s>=this.tokens.length&&(s=this.tokens.length-1);let i="";for(let e=r;e<s+1;e++){const r=this.tokens[e];if(r.type===t.EOF)break;i+=r.text}return i}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}}Object.defineProperty(Ne,"size",{get:function(){return this.tokens.length}});class De extends Ne{constructor(e,r){super(e),this.channel=void 0===r?t.DEFAULT_CHANNEL:r}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}LB(t){if(0===t||this.index-t<0)return null;let e=this.index,r=1;for(;r<=t;)e=this.previousTokenOnChannel(e-1,this.channel),r+=1;return e<0?null:this.tokens[e]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);let e=this.index,r=1;for(;r<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),r+=1;return this.tokens[e]}getNumberOfOnChannelTokens(){let e=0;this.fill();for(let r=0;r<this.tokens.length;r++){const s=this.tokens[r];if(s.channel===this.channel&&(e+=1),s.type===t.EOF)break}return e}}class Oe extends de{constructor(t){super(),this.parser=t}enterEveryRule(t){console.log("enter "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(t){console.log("consume "+t.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(t){console.log("exit "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}class Pe extends It{constructor(t){super(),this._input=null,this._errHandler=new _e,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(t)}reset(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()}match(t){let e=this.getCurrentToken();return e.type===t?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e}matchWildcard(){let t=this.getCurrentToken();return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t}getParseListeners(){return this._parseListeners||[]}addParseListener(t){if(null===t)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(t)}removeParseListener(t){if(null!==this._parseListeners){const e=this._parseListeners.indexOf(t);e>=0&&this._parseListeners.splice(e,1),0===this._parseListeners.length&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.forEach((function(e){e.enterEveryRule(t),t.enterRule(e)}))}}triggerExitRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.slice(0).reverse().forEach((function(e){t.exitRule(e),e.exitEveryRule(t)}))}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(t){this._input.tokenSource._factory=t}getATNWithBypassAlts(){const t=this.getSerializedATN();if(null===t)throw"The current parser does not support an ATN with bypass alternatives.";let e=this.bypassAltsAtnCache[t];if(null===e){const r=new gt;r.generateRuleBypassTransitions=!0,e=new Ct(r).deserialize(t),this.bypassAltsAtnCache[t]=e}return e}getInputStream(){return this.getTokenStream()}setInputStream(t){this.setTokenStream(t)}getTokenStream(){return this._input}setTokenStream(t){this._input=null,this.reset(),this._input=t}get syntaxErrorsCount(){return this._syntaxErrors}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){r=r||null,null===(e=e||null)&&(e=this.getCurrentToken()),this._syntaxErrors+=1;const s=e.line,i=e.column;this.getErrorListenerDispatch().syntaxError(this,e,s,i,t,r)}consume(){const e=this.getCurrentToken();e.type!==t.EOF&&this.getInputStream().consume();const r=null!==this._parseListeners&&this._parseListeners.length>0;if(this.buildParseTrees||r){let t;t=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(e):this._ctx.addTokenNode(e),t.invokingState=this.state,r&&this._parseListeners.forEach((function(e){t instanceof D||void 0!==t.isErrorNode&&t.isErrorNode()?e.visitErrorNode(t):t instanceof N&&e.visitTerminal(t)}))}return e}addContextToParseTree(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)}enterRule(t,e,r){this.state=e,this._ctx=t,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(t,e){t.setAltNumber(e),this.buildParseTrees&&this._ctx!==t&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(t)),this._ctx=t}getPrecedence(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(t,e,r,s){this.state=e,this._precedenceStack.push(s),this._ctx=t,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){const s=this._ctx;s.parentCtx=t,s.invokingState=e,s.stop=this._input.LT(-1),this._ctx=t,this._ctx.start=s.start,this.buildParseTrees&&this._ctx.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);const e=this._ctx,r=this.getParseListeners();if(null!==r&&r.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=t;e.parentCtx=t,this.buildParseTrees&&null!==t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;null!==e;){if(e.ruleIndex===t)return e;e=e.parentCtx}return null}precpred(t,e){return e>=this._precedenceStack[this._precedenceStack.length-1]}inContext(t){return!1}isExpectedToken(e){const r=this._interp.atn;let s=this._ctx;const i=r.states[this.state];let n=r.nextTokens(i);if(n.contains(e))return!0;if(!n.contains(t.EPSILON))return!1;for(;null!==s&&s.invokingState>=0&&n.contains(t.EPSILON);){const t=r.states[s.invokingState].transitions[0];if(n=r.nextTokens(t.followState),n.contains(e))return!0;s=s.parentCtx}return!(!n.contains(t.EPSILON)||e!==t.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){const t=this._interp.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){const e=this.getRuleIndexMap()[t];return null!==e?e:-1}getRuleInvocationStack(t){null===(t=t||null)&&(t=this._ctx);const e=[];for(;null!==t;){const r=t.ruleIndex;r<0?e.push("n/a"):e.push(this.ruleNames[r]),t=t.parentCtx}return e}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let t=!1;for(let e=0;e<this._interp.decisionToDFA.length;e++){const r=this._interp.decisionToDFA[e];r.states.length>0&&(t&&console.log(),this.printer.println("Decision "+r.decision+":"),this.printer.print(r.toString(this.literalNames,this.symbolicNames)),t=!0)}}getSourceName(){return this._input.sourceName}setTrace(t){t?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new Oe(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}Pe.bypassAltsAtnCache={};class qe extends N{constructor(t){super(),this.parentCtx=null,this.symbol=t}getChild(t){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return x.INVALID_INTERVAL;const t=this.symbol.tokenIndex;return new x(t,t)}getChildCount(){return 0}accept(t){return t.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===t.EOF?"<EOF>":this.symbol.text}}class Ye extends qe{constructor(t){super(t)}isErrorNode(){return!0}accept(t){return t.visitErrorNode(this)}}class Fe extends q{constructor(t,e){super(t,e),this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(t){this.parentCtx=t.parentCtx,this.invokingState=t.invokingState,this.children=null,this.start=t.start,this.stop=t.stop,t.children&&(this.children=[],t.children.map((function(t){t instanceof Ye&&(this.children.push(t),t.parentCtx=this)}),this))}enterRule(t){}exitRule(t){}addChild(t){return null===this.children&&(this.children=[]),this.children.push(t),t}removeLastChild(){null!==this.children&&this.children.pop()}addTokenNode(t){const e=new qe(t);return this.addChild(e),e.parentCtx=this,e}addErrorNode(t){const e=new Ye(t);return this.addChild(e),e.parentCtx=this,e}getChild(t,e){if(e=e||null,null===this.children||t<0||t>=this.children.length)return null;if(null===e)return this.children[t];for(let r=0;r<this.children.length;r++){const s=this.children[r];if(s instanceof e){if(0===t)return s;t-=1}}return null}getToken(t,e){if(null===this.children||e<0||e>=this.children.length)return null;for(let r=0;r<this.children.length;r++){const s=this.children[r];if(s instanceof N&&s.symbol.type===t){if(0===e)return s;e-=1}}return null}getTokens(t){if(null===this.children)return[];{const e=[];for(let r=0;r<this.children.length;r++){const s=this.children[r];s instanceof N&&s.symbol.type===t&&e.push(s)}return e}}getTypedRuleContext(t,e){return this.getChild(e,t)}getTypedRuleContexts(t){if(null===this.children)return[];{const e=[];for(let r=0;r<this.children.length;r++){const s=this.children[r];s instanceof t&&e.push(s)}return e}}getChildCount(){return null===this.children?0:this.children.length}getSourceInterval(){return null===this.start||null===this.stop?x.INVALID_INTERVAL:new x(this.start.tokenIndex,this.stop.tokenIndex)}}q.EMPTY=new Fe;class Me{constructor(t){this.tokens=t,this.programs=new Map}getTokenStream(){return this.tokens}insertAfter(t,e){let r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Me.DEFAULT_PROGRAM_NAME;r="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(s),n=new ze(this.tokens,r,i.length,e);i.push(n)}insertBefore(t,e){let r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Me.DEFAULT_PROGRAM_NAME;r="number"==typeof t?t:t.tokenIndex;const i=this.getProgram(s),n=new Ge(this.tokens,r,i.length,e);i.push(n)}replaceSingle(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Me.DEFAULT_PROGRAM_NAME;this.replace(t,t,e,r)}replace(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Me.DEFAULT_PROGRAM_NAME;if("number"!=typeof t&&(t=t.tokenIndex),"number"!=typeof e&&(e=e.tokenIndex),t>e||t<0||e<0||e>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${e}(size=${this.tokens.size})`);let i=this.getProgram(s),n=new We(this.tokens,t,e,i.length,r);i.push(n)}delete(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Me.DEFAULT_PROGRAM_NAME;void 0===e&&(e=t),this.replace(t,e,null,r)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){const e=[];return this.programs.set(t,e),e}getText(e){let r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.DEFAULT_PROGRAM_NAME;r=e instanceof x?e:new x(0,this.tokens.size-1),"string"==typeof e&&(s=e);const i=this.programs.get(s);let n=r.start,a=r.stop;if(a>this.tokens.size-1&&(a=this.tokens.size-1),n<0&&(n=0),null==i||0===i.length)return this.tokens.getText(new x(n,a));let o=[],c=this.reduceToSingleOperationPerIndex(i),l=n;for(;l<=a&&l<this.tokens.size;){let e=c.get(l);c.delete(l);let r=this.tokens.get(l);null==e?(r.type!==t.EOF&&o.push(String(r.text)),l++):l=e.execute(o)}if(a===this.tokens.size-1)for(const t of c.values())t.index>=this.tokens.size-1&&o.push(t.text.toString());return o.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof We))continue;let s=r,i=this.getKindOfOps(t,Ge,e);for(let e of i)e.index===s.index?(t[e.instructionIndex]=void 0,s.text=e.text.toString()+(null!=s.text?s.text.toString():"")):e.index>s.index&&e.index<=s.lastIndex&&(t[e.instructionIndex]=void 0);let n=this.getKindOfOps(t,We,e);for(let e of n){if(e.index>=s.index&&e.lastIndex<=s.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndex<s.index||e.index>s.lastIndex;if(null!=e.text||null!=s.text||r){if(!r)throw new Error(`replace op boundaries of ${s} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,s.index=Math.min(e.index,s.index),s.lastIndex=Math.max(e.lastIndex,s.lastIndex)}}for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof Ge))continue;let s=r,i=this.getKindOfOps(t,Ge,e);for(let e of i)e.index===s.index&&(e instanceof ze?(s.text=this.catOpText(e.text,s.text),t[e.instructionIndex]=void 0):e instanceof Ge&&(s.text=this.catOpText(s.text,e.text),t[e.instructionIndex]=void 0));let n=this.getKindOfOps(t,We,e);for(let r of n)if(s.index!==r.index){if(s.index>=r.index&&s.index<=r.lastIndex)throw new Error(`insert op ${s} within boundaries of previous ${r}`)}else r.text=this.catOpText(s.text,r.text),t[e]=void 0}let e=new Map;for(let r of t)if(null!=r){if(null!=e.get(r.index))throw new Error("should only be one op per index");e.set(r.index,r)}return e}catOpText(t,e){let r="",s="";return null!=t&&(r=t.toString()),null!=e&&(s=e.toString()),r+s}getKindOfOps(t,e,r){return t.slice(0,r).filter((t=>t&&t instanceof e))}}var Ue,Be,Ve,He,je;Ue=Me,Ve="default",He="DEFAULT_PROGRAM_NAME",(Be="symbol"==typeof(je=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var s=r.call(t,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(He))?je:String(je))in Ue?Object.defineProperty(Ue,Be,{value:Ve,enumerable:!0,configurable:!0,writable:!0}):Ue[Be]=Ve;class $e{constructor(t,e,r,s){this.tokens=t,this.instructionIndex=r,this.index=e,this.text=void 0===s?"":s}toString(){let t=this.constructor.name;const e=t.indexOf("$");return t=t.substring(e+1,t.length),"<"+t+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}class Ge extends $e{constructor(t,e,r,s){super(t,e,r,s)}execute(e){return this.text&&e.push(this.text.toString()),this.tokens.get(this.index).type!==t.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}}class ze extends Ge{constructor(t,e,r,s){super(t,e+1,r,s)}}class We extends $e{constructor(t,e,r,s,i){super(t,e,s,i),this.lastIndex=r}execute(t){return this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}const Xe={atn:ne,dfa:le,context:he,misc:ue,tree:ye,error:Te,Token:t,CommonToken:Nt,CharStreams:Ke,CharStream:ke,InputStream:ke,CommonTokenStream:De,Lexer:Yt,Parser:Pe,ParserRuleContext:Fe,Interval:x,IntervalSet:v,LL1Analyzer:z,Utils:Le,TokenStreamRewriter:Me}})();var a=n.dx,o=n.q2,c=n.xf,l=n.c7,h=n._7,u=n.cK,d=n.zs,p=n.hW,m=n.x1,y=n.z5,f=n.TB,g=n._b,w=n.$F,x=n._T,v=n.db,b=n._x,_=n.WU,E=class extends p{constructor(t){super(t),this._interp=new m(this,E._ATN,E.DecisionsToDFA,new v)}get grammarFileName(){return"Solidity.g4"}get literalNames(){return E.literalNames}get symbolicNames(){return E.symbolicNames}get ruleNames(){return E.ruleNames}get serializedATN(){return E._serializedATN}get channelNames(){return E.channelNames}get modeNames(){return E.modeNames}static get _ATN(){return E.__ATN||(E.__ATN=(new o).deserialize(E._serializedATN)),E.__ATN}},T=E;T.T__0=1,T.T__1=2,T.T__2=3,T.T__3=4,T.T__4=5,T.T__5=6,T.T__6=7,T.T__7=8,T.T__8=9,T.T__9=10,T.T__10=11,T.T__11=12,T.T__12=13,T.T__13=14,T.T__14=15,T.T__15=16,T.T__16=17,T.T__17=18,T.T__18=19,T.T__19=20,T.T__20=21,T.T__21=22,T.T__22=23,T.T__23=24,T.T__24=25,T.T__25=26,T.T__26=27,T.T__27=28,T.T__28=29,T.T__29=30,T.T__30=31,T.T__31=32,T.T__32=33,T.T__33=34,T.T__34=35,T.T__35=36,T.T__36=37,T.T__37=38,T.T__38=39,T.T__39=40,T.T__40=41,T.T__41=42,T.T__42=43,T.T__43=44,T.T__44=45,T.T__45=46,T.T__46=47,T.T__47=48,T.T__48=49,T.T__49=50,T.T__50=51,T.T__51=52,T.T__52=53,T.T__53=54,T.T__54=55,T.T__55=56,T.T__56=57,T.T__57=58,T.T__58=59,T.T__59=60,T.T__60=61,T.T__61=62,T.T__62=63,T.T__63=64,T.T__64=65,T.T__65=66,T.T__66=67,T.T__67=68,T.T__68=69,T.T__69=70,T.T__70=71,T.T__71=72,T.T__72=73,T.T__73=74,T.T__74=75,T.T__75=76,T.T__76=77,T.T__77=78,T.T__78=79,T.T__79=80,T.T__80=81,T.T__81=82,T.T__82=83,T.T__83=84,T.T__84=85,T.T__85=86,T.T__86=87,T.T__87=88,T.T__88=89,T.T__89=90,T.T__90=91,T.T__91=92,T.T__92=93,T.T__93=94,T.T__94=95,T.T__95=96,T.Int=97,T.Uint=98,T.Byte=99,T.Fixed=100,T.Ufixed=101,T.BooleanLiteral=102,T.DecimalNumber=103,T.HexNumber=104,T.NumberUnit=105,T.HexLiteralFragment=106,T.ReservedKeyword=107,T.AnonymousKeyword=108,T.BreakKeyword=109,T.ConstantKeyword=110,T.ImmutableKeyword=111,T.ContinueKeyword=112,T.LeaveKeyword=113,T.ExternalKeyword=114,T.IndexedKeyword=115,T.InternalKeyword=116,T.PayableKeyword=117,T.PrivateKeyword=118,T.PublicKeyword=119,T.VirtualKeyword=120,T.PureKeyword=121,T.TypeKeyword=122,T.ViewKeyword=123,T.GlobalKeyword=124,T.ConstructorKeyword=125,T.FallbackKeyword=126,T.ReceiveKeyword=127,T.Identifier=128,T.StringLiteralFragment=129,T.VersionLiteral=130,T.WS=131,T.COMMENT=132,T.LINE_COMMENT=133,T.EOF=_.EOF,T.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],T.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],T.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],T.modeNames=["DEFAULT_MODE"],T.ruleNames=["T__0","T__1","T__2","T__3","T__4","T__5","T__6","T__7","T__8","T__9","T__10","T__11","T__12","T__13","T__14","T__15","T__16","T__17","T__18","T__19","T__20","T__21","T__22","T__23","T__24","T__25","T__26","T__27","T__28","T__29","T__30","T__31","T__32","T__33","T__34","T__35","T__36","T__37","T__38","T__39","T__40","T__41","T__42","T__43","T__44","T__45","T__46","T__47","T__48","T__49","T__50","T__51","T__52","T__53","T__54","T__55","T__56","T__57","T__58","T__59","T__60","T__61","T__62","T__63","T__64","T__65","T__66","T__67","T__68","T__69","T__70","T__71","T__72","T__73","T__74","T__75","T__76","T__77","T__78","T__79","T__80","T__81","T__82","T__83","T__84","T__85","T__86","T__87","T__88","T__89","T__90","T__91","T__92","T__93","T__94","T__95","Int","Uint","Byte","Fixed","Ufixed","NumberOfBits","NumberOfBytes","BooleanLiteral","DecimalNumber","DecimalDigits","HexNumber","HexDigits","NumberUnit","HexLiteralFragment","HexCharacter","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","IdentifierStart","IdentifierPart","StringLiteralFragment","DoubleQuotedStringCharacter","SingleQuotedStringCharacter","VersionLiteral","WS","COMMENT","LINE_COMMENT"],T._serializedATN=[4,0,133,1336,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,33,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,67,1,67,1,67,1,68,1,68,1,68,1,68,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,72,1,72,1,72,1,73,1,73,1,73,1,74,1,74,1,74,1,75,1,75,1,75,1,76,1,76,1,77,1,77,1,77,1,78,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,83,1,83,1,83,1,84,1,84,1,84,1,85,1,85,1,85,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,3,96,722,8,96,1,97,1,97,1,97,1,97,1,97,1,97,3,97,730,8,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,3,98,739,8,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,4,99,750,8,99,11,99,12,99,751,3,99,754,8,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,4,100,766,8,100,11,100,12,100,767,3,100,770,8,100,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,3,101,855,8,101,1,102,1,102,1,102,1,102,1,102,3,102,862,8,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,3,103,873,8,103,1,104,1,104,3,104,877,8,104,1,104,1,104,3,104,881,8,104,1,104,1,104,3,104,885,8,104,1,104,3,104,888,8,104,1,105,1,105,3,105,892,8,105,1,105,5,105,895,8,105,10,105,12,105,898,9,105,1,106,1,106,1,106,1,106,1,107,1,107,3,107,906,8,107,1,107,5,107,909,8,107,10,107,12,107,912,9,107,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,3,108,970,8,108,1,109,1,109,1,109,1,109,1,109,1,109,3,109,978,8,109,1,109,1,109,1,109,3,109,983,8,109,1,109,3,109,986,8,109,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,3,111,1078,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,5,132,1240,8,132,10,132,12,132,1243,9,132,1,133,1,133,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135,1256,8,135,1,135,1,135,5,135,1260,8,135,10,135,12,135,1263,9,135,1,135,1,135,1,135,5,135,1268,8,135,10,135,12,135,1271,9,135,1,135,3,135,1274,8,135,1,136,1,136,1,136,3,136,1279,8,136,1,137,1,137,1,137,3,137,1284,8,137,1,138,4,138,1287,8,138,11,138,12,138,1288,1,138,1,138,4,138,1293,8,138,11,138,12,138,1294,1,138,1,138,4,138,1299,8,138,11,138,12,138,1300,3,138,1303,8,138,1,139,4,139,1306,8,139,11,139,12,139,1307,1,139,1,139,1,140,1,140,1,140,1,140,5,140,1316,8,140,10,140,12,140,1319,9,140,1,140,1,140,1,140,1,140,1,140,1,141,1,141,1,141,1,141,5,141,1330,8,141,10,141,12,141,1333,9,141,1,141,1,141,1,1317,0,142,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143,72,145,73,147,74,149,75,151,76,153,77,155,78,157,79,159,80,161,81,163,82,165,83,167,84,169,85,171,86,173,87,175,88,177,89,179,90,181,91,183,92,185,93,187,94,189,95,191,96,193,97,195,98,197,99,199,100,201,101,203,0,205,0,207,102,209,103,211,0,213,104,215,0,217,105,219,106,221,0,223,107,225,108,227,109,229,110,231,111,233,112,235,113,237,114,239,115,241,116,243,117,245,118,247,119,249,120,251,121,253,122,255,123,257,124,259,125,261,126,263,127,265,128,267,0,269,0,271,129,273,0,275,0,277,130,279,131,281,132,283,133,1,0,13,1,0,48,57,1,0,49,57,1,0,49,50,1,0,48,50,2,0,69,69,101,101,2,0,88,88,120,120,3,0,48,57,65,70,97,102,4,0,36,36,65,90,95,95,97,122,5,0,36,36,48,57,65,90,95,95,97,122,4,0,10,10,13,13,34,34,92,92,4,0,10,10,13,13,39,39,92,92,3,0,9,10,12,13,32,32,2,0,10,10,13,13,1418,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,213,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,271,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,1,285,1,0,0,0,3,292,1,0,0,0,5,294,1,0,0,0,7,296,1,0,0,0,9,299,1,0,0,0,11,301,1,0,0,0,13,303,1,0,0,0,15,306,1,0,0,0,17,308,1,0,0,0,19,310,1,0,0,0,21,313,1,0,0,0,23,315,1,0,0,0,25,318,1,0,0,0,27,325,1,0,0,0,29,330,1,0,0,0,31,332,1,0,0,0,33,334,1,0,0,0,35,336,1,0,0,0,37,345,1,0,0,0,39,354,1,0,0,0,41,364,1,0,0,0,43,372,1,0,0,0,45,375,1,0,0,0,47,377,1,0,0,0,49,379,1,0,0,0,51,385,1,0,0,0,53,391,1,0,0,0,55,395,1,0,0,0,57,397,1,0,0,0,59,399,1,0,0,0,61,401,1,0,0,0,63,403,1,0,0,0,65,405,1,0,0,0,67,407,1,0,0,0,69,410,1,0,0,0,71,413,1,0,0,0,73,420,1,0,0,0,75,429,1,0,0,0,77,438,1,0,0,0,79,446,1,0,0,0,81,452,1,0,0,0,83,457,1,0,0,0,85,459,1,0,0,0,87,461,1,0,0,0,89,469,1,0,0,0,91,471,1,0,0,0,93,479,1,0,0,0,95,482,1,0,0,0,97,489,1,0,0,0,99,497,1,0,0,0,101,506,1,0,0,0,103,509,1,0,0,0,105,514,1,0,0,0,107,518,1,0,0,0,109,524,1,0,0,0,111,530,1,0,0,0,113,540,1,0,0,0,115,549,1,0,0,0,117,552,1,0,0,0,119,559,1,0,0,0,121,565,1,0,0,0,123,570,1,0,0,0,125,577,1,0,0,0,127,581,1,0,0,0,129,586,1,0,0,0,131,593,1,0,0,0,133,598,1,0,0,0,135,601,1,0,0,0,137,604,1,0,0,0,139,608,1,0,0,0,141,610,1,0,0,0,143,617,1,0,0,0,145,619,1,0,0,0,147,622,1,0,0,0,149,625,1,0,0,0,151,628,1,0,0,0,153,631,1,0,0,0,155,633,1,0,0,0,157,636,1,0,0,0,159,639,1,0,0,0,161,642,1,0,0,0,163,646,1,0,0,0,165,650,1,0,0,0,167,653,1,0,0,0,169,656,1,0,0,0,171,659,1,0,0,0,173,662,1,0,0,0,175,665,1,0,0,0,177,669,1,0,0,0,179,672,1,0,0,0,181,675,1,0,0,0,183,682,1,0,0,0,185,687,1,0,0,0,187,695,1,0,0,0,189,698,1,0,0,0,191,707,1,0,0,0,193,716,1,0,0,0,195,723,1,0,0,0,197,731,1,0,0,0,199,740,1,0,0,0,201,755,1,0,0,0,203,854,1,0,0,0,205,861,1,0,0,0,207,872,1,0,0,0,209,880,1,0,0,0,211,889,1,0,0,0,213,899,1,0,0,0,215,903,1,0,0,0,217,969,1,0,0,0,219,971,1,0,0,0,221,987,1,0,0,0,223,1077,1,0,0,0,225,1079,1,0,0,0,227,1089,1,0,0,0,229,1095,1,0,0,0,231,1104,1,0,0,0,233,1114,1,0,0,0,235,1123,1,0,0,0,237,1129,1,0,0,0,239,1138,1,0,0,0,241,1146,1,0,0,0,243,1155,1,0,0,0,245,1163,1,0,0,0,247,1171,1,0,0,0,249,1178,1,0,0,0,251,1186,1,0,0,0,253,1191,1,0,0,0,255,1196,1,0,0,0,257,1201,1,0,0,0,259,1208,1,0,0,0,261,1220,1,0,0,0,263,1229,1,0,0,0,265,1237,1,0,0,0,267,1244,1,0,0,0,269,1246,1,0,0,0,271,1255,1,0,0,0,273,1278,1,0,0,0,275,1283,1,0,0,0,277,1286,1,0,0,0,279,1305,1,0,0,0,281,1311,1,0,0,0,283,1325,1,0,0,0,285,286,5,112,0,0,286,287,5,114,0,0,287,288,5,97,0,0,288,289,5,103,0,0,289,290,5,109,0,0,290,291,5,97,0,0,291,2,1,0,0,0,292,293,5,59,0,0,293,4,1,0,0,0,294,295,5,42,0,0,295,6,1,0,0,0,296,297,5,124,0,0,297,298,5,124,0,0,298,8,1,0,0,0,299,300,5,94,0,0,300,10,1,0,0,0,301,302,5,126,0,0,302,12,1,0,0,0,303,304,5,62,0,0,304,305,5,61,0,0,305,14,1,0,0,0,306,307,5,62,0,0,307,16,1,0,0,0,308,309,5,60,0,0,309,18,1,0,0,0,310,311,5,60,0,0,311,312,5,61,0,0,312,20,1,0,0,0,313,314,5,61,0,0,314,22,1,0,0,0,315,316,5,97,0,0,316,317,5,115,0,0,317,24,1,0,0,0,318,319,5,105,0,0,319,320,5,109,0,0,320,321,5,112,0,0,321,322,5,111,0,0,322,323,5,114,0,0,323,324,5,116,0,0,324,26,1,0,0,0,325,326,5,102,0,0,326,327,5,114,0,0,327,328,5,111,0,0,328,329,5,109,0,0,329,28,1,0,0,0,330,331,5,123,0,0,331,30,1,0,0,0,332,333,5,44,0,0,333,32,1,0,0,0,334,335,5,125,0,0,335,34,1,0,0,0,336,337,5,97,0,0,337,338,5,98,0,0,338,339,5,115,0,0,339,340,5,116,0,0,340,341,5,114,0,0,341,342,5,97,0,0,342,343,5,99,0,0,343,344,5,116,0,0,344,36,1,0,0,0,345,346,5,99,0,0,346,347,5,111,0,0,347,348,5,110,0,0,348,349,5,116,0,0,349,350,5,114,0,0,350,351,5,97,0,0,351,352,5,99,0,0,352,353,5,116,0,0,353,38,1,0,0,0,354,355,5,105,0,0,355,356,5,110,0,0,356,357,5,116,0,0,357,358,5,101,0,0,358,359,5,114,0,0,359,360,5,102,0,0,360,361,5,97,0,0,361,362,5,99,0,0,362,363,5,101,0,0,363,40,1,0,0,0,364,365,5,108,0,0,365,366,5,105,0,0,366,367,5,98,0,0,367,368,5,114,0,0,368,369,5,97,0,0,369,370,5,114,0,0,370,371,5,121,0,0,371,42,1,0,0,0,372,373,5,105,0,0,373,374,5,115,0,0,374,44,1,0,0,0,375,376,5,40,0,0,376,46,1,0,0,0,377,378,5,41,0,0,378,48,1,0,0,0,379,380,5,101,0,0,380,381,5,114,0,0,381,382,5,114,0,0,382,383,5,111,0,0,383,384,5,114,0,0,384,50,1,0,0,0,385,386,5,117,0,0,386,387,5,115,0,0,387,388,5,105,0,0,388,389,5,110,0,0,389,390,5,103,0,0,390,52,1,0,0,0,391,392,5,102,0,0,392,393,5,111,0,0,393,394,5,114,0,0,394,54,1,0,0,0,395,396,5,124,0,0,396,56,1,0,0,0,397,398,5,38,0,0,398,58,1,0,0,0,399,400,5,43,0,0,400,60,1,0,0,0,401,402,5,45,0,0,402,62,1,0,0,0,403,404,5,47,0,0,404,64,1,0,0,0,405,406,5,37,0,0,406,66,1,0,0,0,407,408,5,61,0,0,408,409,5,61,0,0,409,68,1,0,0,0,410,411,5,33,0,0,411,412,5,61,0,0,412,70,1,0,0,0,413,414,5,115,0,0,414,415,5,116,0,0,415,416,5,114,0,0,416,417,5,117,0,0,417,418,5,99,0,0,418,419,5,116,0,0,419,72,1,0,0,0,420,421,5,109,0,0,421,422,5,111,0,0,422,423,5,100,0,0,423,424,5,105,0,0,424,425,5,102,0,0,425,426,5,105,0,0,426,427,5,101,0,0,427,428,5,114,0,0,428,74,1,0,0,0,429,430,5,102,0,0,430,431,5,117,0,0,431,432,5,110,0,0,432,433,5,99,0,0,433,434,5,116,0,0,434,435,5,105,0,0,435,436,5,111,0,0,436,437,5,110,0,0,437,76,1,0,0,0,438,439,5,114,0,0,439,440,5,101,0,0,440,441,5,116,0,0,441,442,5,117,0,0,442,443,5,114,0,0,443,444,5,110,0,0,444,445,5,115,0,0,445,78,1,0,0,0,446,447,5,101,0,0,447,448,5,118,0,0,448,449,5,101,0,0,449,450,5,110,0,0,450,451,5,116,0,0,451,80,1,0,0,0,452,453,5,101,0,0,453,454,5,110,0,0,454,455,5,117,0,0,455,456,5,109,0,0,456,82,1,0,0,0,457,458,5,91,0,0,458,84,1,0,0,0,459,460,5,93,0,0,460,86,1,0,0,0,461,462,5,97,0,0,462,463,5,100,0,0,463,464,5,100,0,0,464,465,5,114,0,0,465,466,5,101,0,0,466,467,5,115,0,0,467,468,5,115,0,0,468,88,1,0,0,0,469,470,5,46,0,0,470,90,1,0,0,0,471,472,5,109,0,0,472,473,5,97,0,0,473,474,5,112,0,0,474,475,5,112,0,0,475,476,5,105,0,0,476,477,5,110,0,0,477,478,5,103,0,0,478,92,1,0,0,0,479,480,5,61,0,0,480,481,5,62,0,0,481,94,1,0,0,0,482,483,5,109,0,0,483,484,5,101,0,0,484,485,5,109,0,0,485,486,5,111,0,0,486,487,5,114,0,0,487,488,5,121,0,0,488,96,1,0,0,0,489,490,5,115,0,0,490,491,5,116,0,0,491,492,5,111,0,0,492,493,5,114,0,0,493,494,5,97,0,0,494,495,5,103,0,0,495,496,5,101,0,0,496,98,1,0,0,0,497,498,5,99,0,0,498,499,5,97,0,0,499,500,5,108,0,0,500,501,5,108,0,0,501,502,5,100,0,0,502,503,5,97,0,0,503,504,5,116,0,0,504,505,5,97,0,0,505,100,1,0,0,0,506,507,5,105,0,0,507,508,5,102,0,0,508,102,1,0,0,0,509,510,5,101,0,0,510,511,5,108,0,0,511,512,5,115,0,0,512,513,5,101,0,0,513,104,1,0,0,0,514,515,5,116,0,0,515,516,5,114,0,0,516,517,5,121,0,0,517,106,1,0,0,0,518,519,5,99,0,0,519,520,5,97,0,0,520,521,5,116,0,0,521,522,5,99,0,0,522,523,5,104,0,0,523,108,1,0,0,0,524,525,5,119,0,0,525,526,5,104,0,0,526,527,5,105,0,0,527,528,5,108,0,0,528,529,5,101,0,0,529,110,1,0,0,0,530,531,5,117,0,0,531,532,5,110,0,0,532,533,5,99,0,0,533,534,5,104,0,0,534,535,5,101,0,0,535,536,5,99,0,0,536,537,5,107,0,0,537,538,5,101,0,0,538,539,5,100,0,0,539,112,1,0,0,0,540,541,5,97,0,0,541,542,5,115,0,0,542,543,5,115,0,0,543,544,5,101,0,0,544,545,5,109,0,0,545,546,5,98,0,0,546,547,5,108,0,0,547,548,5,121,0,0,548,114,1,0,0,0,549,550,5,100,0,0,550,551,5,111,0,0,551,116,1,0,0,0,552,553,5,114,0,0,553,554,5,101,0,0,554,555,5,116,0,0,555,556,5,117,0,0,556,557,5,114,0,0,557,558,5,110,0,0,558,118,1,0,0,0,559,560,5,116,0,0,560,561,5,104,0,0,561,562,5,114,0,0,562,563,5,111,0,0,563,564,5,119,0,0,564,120,1,0,0,0,565,566,5,101,0,0,566,567,5,109,0,0,567,568,5,105,0,0,568,569,5,116,0,0,569,122,1,0,0,0,570,571,5,114,0,0,571,572,5,101,0,0,572,573,5,118,0,0,573,574,5,101,0,0,574,575,5,114,0,0,575,576,5,116,0,0,576,124,1,0,0,0,577,578,5,118,0,0,578,579,5,97,0,0,579,580,5,114,0,0,580,126,1,0,0,0,581,582,5,98,0,0,582,583,5,111,0,0,583,584,5,111,0,0,584,585,5,108,0,0,585,128,1,0,0,0,586,587,5,115,0,0,587,588,5,116,0,0,588,589,5,114,0,0,589,590,5,105,0,0,590,591,5,110,0,0,591,592,5,103,0,0,592,130,1,0,0,0,593,594,5,98,0,0,594,595,5,121,0,0,595,596,5,116,0,0,596,597,5,101,0,0,597,132,1,0,0,0,598,599,5,43,0,0,599,600,5,43,0,0,600,134,1,0,0,0,601,602,5,45,0,0,602,603,5,45,0,0,603,136,1,0,0,0,604,605,5,110,0,0,605,606,5,101,0,0,606,607,5,119,0,0,607,138,1,0,0,0,608,609,5,58,0,0,609,140,1,0,0,0,610,611,5,100,0,0,611,612,5,101,0,0,612,613,5,108,0,0,613,614,5,101,0,0,614,615,5,116,0,0,615,616,5,101,0,0,616,142,1,0,0,0,617,618,5,33,0,0,618,144,1,0,0,0,619,620,5,42,0,0,620,621,5,42,0,0,621,146,1,0,0,0,622,623,5,60,0,0,623,624,5,60,0,0,624,148,1,0,0,0,625,626,5,62,0,0,626,627,5,62,0,0,627,150,1,0,0,0,628,629,5,38,0,0,629,630,5,38,0,0,630,152,1,0,0,0,631,632,5,63,0,0,632,154,1,0,0,0,633,634,5,124,0,0,634,635,5,61,0,0,635,156,1,0,0,0,636,637,5,94,0,0,637,638,5,61,0,0,638,158,1,0,0,0,639,640,5,38,0,0,640,641,5,61,0,0,641,160,1,0,0,0,642,643,5,60,0,0,643,644,5,60,0,0,644,645,5,61,0,0,645,162,1,0,0,0,646,647,5,62,0,0,647,648,5,62,0,0,648,649,5,61,0,0,649,164,1,0,0,0,650,651,5,43,0,0,651,652,5,61,0,0,652,166,1,0,0,0,653,654,5,45,0,0,654,655,5,61,0,0,655,168,1,0,0,0,656,657,5,42,0,0,657,658,5,61,0,0,658,170,1,0,0,0,659,660,5,47,0,0,660,661,5,61,0,0,661,172,1,0,0,0,662,663,5,37,0,0,663,664,5,61,0,0,664,174,1,0,0,0,665,666,5,108,0,0,666,667,5,101,0,0,667,668,5,116,0,0,668,176,1,0,0,0,669,670,5,58,0,0,670,671,5,61,0,0,671,178,1,0,0,0,672,673,5,61,0,0,673,674,5,58,0,0,674,180,1,0,0,0,675,676,5,115,0,0,676,677,5,119,0,0,677,678,5,105,0,0,678,679,5,116,0,0,679,680,5,99,0,0,680,681,5,104,0,0,681,182,1,0,0,0,682,683,5,99,0,0,683,684,5,97,0,0,684,685,5,115,0,0,685,686,5,101,0,0,686,184,1,0,0,0,687,688,5,100,0,0,688,689,5,101,0,0,689,690,5,102,0,0,690,691,5,97,0,0,691,692,5,117,0,0,692,693,5,108,0,0,693,694,5,116,0,0,694,186,1,0,0,0,695,696,5,45,0,0,696,697,5,62,0,0,697,188,1,0,0,0,698,699,5,99,0,0,699,700,5,97,0,0,700,701,5,108,0,0,701,702,5,108,0,0,702,703,5,98,0,0,703,704,5,97,0,0,704,705,5,99,0,0,705,706,5,107,0,0,706,190,1,0,0,0,707,708,5,111,0,0,708,709,5,118,0,0,709,710,5,101,0,0,710,711,5,114,0,0,711,712,5,114,0,0,712,713,5,105,0,0,713,714,5,100,0,0,714,715,5,101,0,0,715,192,1,0,0,0,716,717,5,105,0,0,717,718,5,110,0,0,718,719,5,116,0,0,719,721,1,0,0,0,720,722,3,203,101,0,721,720,1,0,0,0,721,722,1,0,0,0,722,194,1,0,0,0,723,724,5,117,0,0,724,725,5,105,0,0,725,726,5,110,0,0,726,727,5,116,0,0,727,729,1,0,0,0,728,730,3,203,101,0,729,728,1,0,0,0,729,730,1,0,0,0,730,196,1,0,0,0,731,732,5,98,0,0,732,733,5,121,0,0,733,734,5,116,0,0,734,735,5,101,0,0,735,736,5,115,0,0,736,738,1,0,0,0,737,739,3,205,102,0,738,737,1,0,0,0,738,739,1,0,0,0,739,198,1,0,0,0,740,741,5,102,0,0,741,742,5,105,0,0,742,743,5,120,0,0,743,744,5,101,0,0,744,745,5,100,0,0,745,753,1,0,0,0,746,747,3,203,101,0,747,749,5,120,0,0,748,750,7,0,0,0,749,748,1,0,0,0,750,751,1,0,0,0,751,749,1,0,0,0,751,752,1,0,0,0,752,754,1,0,0,0,753,746,1,0,0,0,753,754,1,0,0,0,754,200,1,0,0,0,755,756,5,117,0,0,756,757,5,102,0,0,757,758,5,105,0,0,758,759,5,120,0,0,759,760,5,101,0,0,760,761,5,100,0,0,761,769,1,0,0,0,762,763,3,203,101,0,763,765,5,120,0,0,764,766,7,0,0,0,765,764,1,0,0,0,766,767,1,0,0,0,767,765,1,0,0,0,767,768,1,0,0,0,768,770,1,0,0,0,769,762,1,0,0,0,769,770,1,0,0,0,770,202,1,0,0,0,771,855,5,56,0,0,772,773,5,49,0,0,773,855,5,54,0,0,774,775,5,50,0,0,775,855,5,52,0,0,776,777,5,51,0,0,777,855,5,50,0,0,778,779,5,52,0,0,779,855,5,48,0,0,780,781,5,52,0,0,781,855,5,56,0,0,782,783,5,53,0,0,783,855,5,54,0,0,784,785,5,54,0,0,785,855,5,52,0,0,786,787,5,55,0,0,787,855,5,50,0,0,788,789,5,56,0,0,789,855,5,48,0,0,790,791,5,56,0,0,791,855,5,56,0,0,792,793,5,57,0,0,793,855,5,54,0,0,794,795,5,49,0,0,795,796,5,48,0,0,796,855,5,52,0,0,797,798,5,49,0,0,798,799,5,49,0,0,799,855,5,50,0,0,800,801,5,49,0,0,801,802,5,50,0,0,802,855,5,48,0,0,803,804,5,49,0,0,804,805,5,50,0,0,805,855,5,56,0,0,806,807,5,49,0,0,807,808,5,51,0,0,808,855,5,54,0,0,809,810,5,49,0,0,810,811,5,52,0,0,811,855,5,52,0,0,812,813,5,49,0,0,813,814,5,53,0,0,814,855,5,50,0,0,815,816,5,49,0,0,816,817,5,54,0,0,817,855,5,48,0,0,818,819,5,49,0,0,819,820,5,54,0,0,820,855,5,56,0,0,821,822,5,49,0,0,822,823,5,55,0,0,823,855,5,54,0,0,824,825,5,49,0,0,825,826,5,56,0,0,826,855,5,52,0,0,827,828,5,49,0,0,828,829,5,57,0,0,829,855,5,50,0,0,830,831,5,50,0,0,831,832,5,48,0,0,832,855,5,48,0,0,833,834,5,50,0,0,834,835,5,48,0,0,835,855,5,56,0,0,836,837,5,50,0,0,837,838,5,49,0,0,838,855,5,54,0,0,839,840,5,50,0,0,840,841,5,50,0,0,841,855,5,52,0,0,842,843,5,50,0,0,843,844,5,51,0,0,844,855,5,50,0,0,845,846,5,50,0,0,846,847,5,52,0,0,847,855,5,48,0,0,848,849,5,50,0,0,849,850,5,52,0,0,850,855,5,56,0,0,851,852,5,50,0,0,852,853,5,53,0,0,853,855,5,54,0,0,854,771,1,0,0,0,854,772,1,0,0,0,854,774,1,0,0,0,854,776,1,0,0,0,854,778,1,0,0,0,854,780,1,0,0,0,854,782,1,0,0,0,854,784,1,0,0,0,854,786,1,0,0,0,854,788,1,0,0,0,854,790,1,0,0,0,854,792,1,0,0,0,854,794,1,0,0,0,854,797,1,0,0,0,854,800,1,0,0,0,854,803,1,0,0,0,854,806,1,0,0,0,854,809,1,0,0,0,854,812,1,0,0,0,854,815,1,0,0,0,854,818,1,0,0,0,854,821,1,0,0,0,854,824,1,0,0,0,854,827,1,0,0,0,854,830,1,0,0,0,854,833,1,0,0,0,854,836,1,0,0,0,854,839,1,0,0,0,854,842,1,0,0,0,854,845,1,0,0,0,854,848,1,0,0,0,854,851,1,0,0,0,855,204,1,0,0,0,856,862,7,1,0,0,857,858,7,2,0,0,858,862,7,0,0,0,859,860,5,51,0,0,860,862,7,3,0,0,861,856,1,0,0,0,861,857,1,0,0,0,861,859,1,0,0,0,862,206,1,0,0,0,863,864,5,116,0,0,864,865,5,114,0,0,865,866,5,117,0,0,866,873,5,101,0,0,867,868,5,102,0,0,868,869,5,97,0,0,869,870,5,108,0,0,870,871,5,115,0,0,871,873,5,101,0,0,872,863,1,0,0,0,872,867,1,0,0,0,873,208,1,0,0,0,874,881,3,211,105,0,875,877,3,211,105,0,876,875,1,0,0,0,876,877,1,0,0,0,877,878,1,0,0,0,878,879,5,46,0,0,879,881,3,211,105,0,880,874,1,0,0,0,880,876,1,0,0,0,881,887,1,0,0,0,882,884,7,4,0,0,883,885,5,45,0,0,884,883,1,0,0,0,884,885,1,0,0,0,885,886,1,0,0,0,886,888,3,211,105,0,887,882,1,0,0,0,887,888,1,0,0,0,888,210,1,0,0,0,889,896,7,0,0,0,890,892,5,95,0,0,891,890,1,0,0,0,891,892,1,0,0,0,892,893,1,0,0,0,893,895,7,0,0,0,894,891,1,0,0,0,895,898,1,0,0,0,896,894,1,0,0,0,896,897,1,0,0,0,897,212,1,0,0,0,898,896,1,0,0,0,899,900,5,48,0,0,900,901,7,5,0,0,901,902,3,215,107,0,902,214,1,0,0,0,903,910,3,221,110,0,904,906,5,95,0,0,905,904,1,0,0,0,905,906,1,0,0,0,906,907,1,0,0,0,907,909,3,221,110,0,908,905,1,0,0,0,909,912,1,0,0,0,910,908,1,0,0,0,910,911,1,0,0,0,911,216,1,0,0,0,912,910,1,0,0,0,913,914,5,119,0,0,914,915,5,101,0,0,915,970,5,105,0,0,916,917,5,103,0,0,917,918,5,119,0,0,918,919,5,101,0,0,919,970,5,105,0,0,920,921,5,115,0,0,921,922,5,122,0,0,922,923,5,97,0,0,923,924,5,98,0,0,924,970,5,111,0,0,925,926,5,102,0,0,926,927,5,105,0,0,927,928,5,110,0,0,928,929,5,110,0,0,929,930,5,101,0,0,930,970,5,121,0,0,931,932,5,101,0,0,932,933,5,116,0,0,933,934,5,104,0,0,934,935,5,101,0,0,935,970,5,114,0,0,936,937,5,115,0,0,937,938,5,101,0,0,938,939,5,99,0,0,939,940,5,111,0,0,940,941,5,110,0,0,941,942,5,100,0,0,942,970,5,115,0,0,943,944,5,109,0,0,944,945,5,105,0,0,945,946,5,110,0,0,946,947,5,117,0,0,947,948,5,116,0,0,948,949,5,101,0,0,949,970,5,115,0,0,950,951,5,104,0,0,951,952,5,111,0,0,952,953,5,117,0,0,953,954,5,114,0,0,954,970,5,115,0,0,955,956,5,100,0,0,956,957,5,97,0,0,957,958,5,121,0,0,958,970,5,115,0,0,959,960,5,119,0,0,960,961,5,101,0,0,961,962,5,101,0,0,962,963,5,107,0,0,963,970,5,115,0,0,964,965,5,121,0,0,965,966,5,101,0,0,966,967,5,97,0,0,967,968,5,114,0,0,968,970,5,115,0,0,969,913,1,0,0,0,969,916,1,0,0,0,969,920,1,0,0,0,969,925,1,0,0,0,969,931,1,0,0,0,969,936,1,0,0,0,969,943,1,0,0,0,969,950,1,0,0,0,969,955,1,0,0,0,969,959,1,0,0,0,969,964,1,0,0,0,970,218,1,0,0,0,971,972,5,104,0,0,972,973,5,101,0,0,973,974,5,120,0,0,974,985,1,0,0,0,975,977,5,34,0,0,976,978,3,215,107,0,977,976,1,0,0,0,977,978,1,0,0,0,978,979,1,0,0,0,979,986,5,34,0,0,980,982,5,39,0,0,981,983,3,215,107,0,982,981,1,0,0,0,982,983,1,0,0,0,983,984,1,0,0,0,984,986,5,39,0,0,985,975,1,0,0,0,985,980,1,0,0,0,986,220,1,0,0,0,987,988,7,6,0,0,988,222,1,0,0,0,989,990,5,97,0,0,990,991,5,98,0,0,991,992,5,115,0,0,992,993,5,116,0,0,993,994,5,114,0,0,994,995,5,97,0,0,995,996,5,99,0,0,996,1078,5,116,0,0,997,998,5,97,0,0,998,999,5,102,0,0,999,1e3,5,116,0,0,1e3,1001,5,101,0,0,1001,1078,5,114,0,0,1002,1003,5,99,0,0,1003,1004,5,97,0,0,1004,1005,5,115,0,0,1005,1078,5,101,0,0,1006,1007,5,99,0,0,1007,1008,5,97,0,0,1008,1009,5,116,0,0,1009,1010,5,99,0,0,1010,1078,5,104,0,0,1011,1012,5,100,0,0,1012,1013,5,101,0,0,1013,1014,5,102,0,0,1014,1015,5,97,0,0,1015,1016,5,117,0,0,1016,1017,5,108,0,0,1017,1078,5,116,0,0,1018,1019,5,102,0,0,1019,1020,5,105,0,0,1020,1021,5,110,0,0,1021,1022,5,97,0,0,1022,1078,5,108,0,0,1023,1024,5,105,0,0,1024,1078,5,110,0,0,1025,1026,5,105,0,0,1026,1027,5,110,0,0,1027,1028,5,108,0,0,1028,1029,5,105,0,0,1029,1030,5,110,0,0,1030,1078,5,101,0,0,1031,1032,5,108,0,0,1032,1033,5,101,0,0,1033,1078,5,116,0,0,1034,1035,5,109,0,0,1035,1036,5,97,0,0,1036,1037,5,116,0,0,1037,1038,5,99,0,0,1038,1078,5,104,0,0,1039,1040,5,110,0,0,1040,1041,5,117,0,0,1041,1042,5,108,0,0,1042,1078,5,108,0,0,1043,1044,5,111,0,0,1044,1078,5,102,0,0,1045,1046,5,114,0,0,1046,1047,5,101,0,0,1047,1048,5,108,0,0,1048,1049,5,111,0,0,1049,1050,5,99,0,0,1050,1051,5,97,0,0,1051,1052,5,116,0,0,1052,1053,5,97,0,0,1053,1054,5,98,0,0,1054,1055,5,108,0,0,1055,1078,5,101,0,0,1056,1057,5,115,0,0,1057,1058,5,116,0,0,1058,1059,5,97,0,0,1059,1060,5,116,0,0,1060,1061,5,105,0,0,1061,1078,5,99,0,0,1062,1063,5,115,0,0,1063,1064,5,119,0,0,1064,1065,5,105,0,0,1065,1066,5,116,0,0,1066,1067,5,99,0,0,1067,1078,5,104,0,0,1068,1069,5,116,0,0,1069,1070,5,114,0,0,1070,1078,5,121,0,0,1071,1072,5,116,0,0,1072,1073,5,121,0,0,1073,1074,5,112,0,0,1074,1075,5,101,0,0,1075,1076,5,111,0,0,1076,1078,5,102,0,0,1077,989,1,0,0,0,1077,997,1,0,0,0,1077,1002,1,0,0,0,1077,1006,1,0,0,0,1077,1011,1,0,0,0,1077,1018,1,0,0,0,1077,1023,1,0,0,0,1077,1025,1,0,0,0,1077,1031,1,0,0,0,1077,1034,1,0,0,0,1077,1039,1,0,0,0,1077,1043,1,0,0,0,1077,1045,1,0,0,0,1077,1056,1,0,0,0,1077,1062,1,0,0,0,1077,1068,1,0,0,0,1077,1071,1,0,0,0,1078,224,1,0,0,0,1079,1080,5,97,0,0,1080,1081,5,110,0,0,1081,1082,5,111,0,0,1082,1083,5,110,0,0,1083,1084,5,121,0,0,1084,1085,5,109,0,0,1085,1086,5,111,0,0,1086,1087,5,117,0,0,1087,1088,5,115,0,0,1088,226,1,0,0,0,1089,1090,5,98,0,0,1090,1091,5,114,0,0,1091,1092,5,101,0,0,1092,1093,5,97,0,0,1093,1094,5,107,0,0,1094,228,1,0,0,0,1095,1096,5,99,0,0,1096,1097,5,111,0,0,1097,1098,5,110,0,0,1098,1099,5,115,0,0,1099,1100,5,116,0,0,1100,1101,5,97,0,0,1101,1102,5,110,0,0,1102,1103,5,116,0,0,1103,230,1,0,0,0,1104,1105,5,105,0,0,1105,1106,5,109,0,0,1106,1107,5,109,0,0,1107,1108,5,117,0,0,1108,1109,5,116,0,0,1109,1110,5,97,0,0,1110,1111,5,98,0,0,1111,1112,5,108,0,0,1112,1113,5,101,0,0,1113,232,1,0,0,0,1114,1115,5,99,0,0,1115,1116,5,111,0,0,1116,1117,5,110,0,0,1117,1118,5,116,0,0,1118,1119,5,105,0,0,1119,1120,5,110,0,0,1120,1121,5,117,0,0,1121,1122,5,101,0,0,1122,234,1,0,0,0,1123,1124,5,108,0,0,1124,1125,5,101,0,0,1125,1126,5,97,0,0,1126,1127,5,118,0,0,1127,1128,5,101,0,0,1128,236,1,0,0,0,1129,1130,5,101,0,0,1130,1131,5,120,0,0,1131,1132,5,116,0,0,1132,1133,5,101,0,0,1133,1134,5,114,0,0,1134,1135,5,110,0,0,1135,1136,5,97,0,0,1136,1137,5,108,0,0,1137,238,1,0,0,0,1138,1139,5,105,0,0,1139,1140,5,110,0,0,1140,1141,5,100,0,0,1141,1142,5,101,0,0,1142,1143,5,120,0,0,1143,1144,5,101,0,0,1144,1145,5,100,0,0,1145,240,1,0,0,0,1146,1147,5,105,0,0,1147,1148,5,110,0,0,1148,1149,5,116,0,0,1149,1150,5,101,0,0,1150,1151,5,114,0,0,1151,1152,5,110,0,0,1152,1153,5,97,0,0,1153,1154,5,108,0,0,1154,242,1,0,0,0,1155,1156,5,112,0,0,1156,1157,5,97,0,0,1157,1158,5,121,0,0,1158,1159,5,97,0,0,1159,1160,5,98,0,0,1160,1161,5,108,0,0,1161,1162,5,101,0,0,1162,244,1,0,0,0,1163,1164,5,112,0,0,1164,1165,5,114,0,0,1165,1166,5,105,0,0,1166,1167,5,118,0,0,1167,1168,5,97,0,0,1168,1169,5,116,0,0,1169,1170,5,101,0,0,1170,246,1,0,0,0,1171,1172,5,112,0,0,1172,1173,5,117,0,0,1173,1174,5,98,0,0,1174,1175,5,108,0,0,1175,1176,5,105,0,0,1176,1177,5,99,0,0,1177,248,1,0,0,0,1178,1179,5,118,0,0,1179,1180,5,105,0,0,1180,1181,5,114,0,0,1181,1182,5,116,0,0,1182,1183,5,117,0,0,1183,1184,5,97,0,0,1184,1185,5,108,0,0,1185,250,1,0,0,0,1186,1187,5,112,0,0,1187,1188,5,117,0,0,1188,1189,5,114,0,0,1189,1190,5,101,0,0,1190,252,1,0,0,0,1191,1192,5,116,0,0,1192,1193,5,121,0,0,1193,1194,5,112,0,0,1194,1195,5,101,0,0,1195,254,1,0,0,0,1196,1197,5,118,0,0,1197,1198,5,105,0,0,1198,1199,5,101,0,0,1199,1200,5,119,0,0,1200,256,1,0,0,0,1201,1202,5,103,0,0,1202,1203,5,108,0,0,1203,1204,5,111,0,0,1204,1205,5,98,0,0,1205,1206,5,97,0,0,1206,1207,5,108,0,0,1207,258,1,0,0,0,1208,1209,5,99,0,0,1209,1210,5,111,0,0,1210,1211,5,110,0,0,1211,1212,5,115,0,0,1212,1213,5,116,0,0,1213,1214,5,114,0,0,1214,1215,5,117,0,0,1215,1216,5,99,0,0,1216,1217,5,116,0,0,1217,1218,5,111,0,0,1218,1219,5,114,0,0,1219,260,1,0,0,0,1220,1221,5,102,0,0,1221,1222,5,97,0,0,1222,1223,5,108,0,0,1223,1224,5,108,0,0,1224,1225,5,98,0,0,1225,1226,5,97,0,0,1226,1227,5,99,0,0,1227,1228,5,107,0,0,1228,262,1,0,0,0,1229,1230,5,114,0,0,1230,1231,5,101,0,0,1231,1232,5,99,0,0,1232,1233,5,101,0,0,1233,1234,5,105,0,0,1234,1235,5,118,0,0,1235,1236,5,101,0,0,1236,264,1,0,0,0,1237,1241,3,267,133,0,1238,1240,3,269,134,0,1239,1238,1,0,0,0,1240,1243,1,0,0,0,1241,1239,1,0,0,0,1241,1242,1,0,0,0,1242,266,1,0,0,0,1243,1241,1,0,0,0,1244,1245,7,7,0,0,1245,268,1,0,0,0,1246,1247,7,8,0,0,1247,270,1,0,0,0,1248,1249,5,117,0,0,1249,1250,5,110,0,0,1250,1251,5,105,0,0,1251,1252,5,99,0,0,1252,1253,5,111,0,0,1253,1254,5,100,0,0,1254,1256,5,101,0,0,1255,1248,1,0,0,0,1255,1256,1,0,0,0,1256,1273,1,0,0,0,1257,1261,5,34,0,0,1258,1260,3,273,136,0,1259,1258,1,0,0,0,1260,1263,1,0,0,0,1261,1259,1,0,0,0,1261,1262,1,0,0,0,1262,1264,1,0,0,0,1263,1261,1,0,0,0,1264,1274,5,34,0,0,1265,1269,5,39,0,0,1266,1268,3,275,137,0,1267,1266,1,0,0,0,1268,1271,1,0,0,0,1269,1267,1,0,0,0,1269,1270,1,0,0,0,1270,1272,1,0,0,0,1271,1269,1,0,0,0,1272,1274,5,39,0,0,1273,1257,1,0,0,0,1273,1265,1,0,0,0,1274,272,1,0,0,0,1275,1279,8,9,0,0,1276,1277,5,92,0,0,1277,1279,9,0,0,0,1278,1275,1,0,0,0,1278,1276,1,0,0,0,1279,274,1,0,0,0,1280,1284,8,10,0,0,1281,1282,5,92,0,0,1282,1284,9,0,0,0,1283,1280,1,0,0,0,1283,1281,1,0,0,0,1284,276,1,0,0,0,1285,1287,7,0,0,0,1286,1285,1,0,0,0,1287,1288,1,0,0,0,1288,1286,1,0,0,0,1288,1289,1,0,0,0,1289,1290,1,0,0,0,1290,1292,5,46,0,0,1291,1293,7,0,0,0,1292,1291,1,0,0,0,1293,1294,1,0,0,0,1294,1292,1,0,0,0,1294,1295,1,0,0,0,1295,1302,1,0,0,0,1296,1298,5,46,0,0,1297,1299,7,0,0,0,1298,1297,1,0,0,0,1299,1300,1,0,0,0,1300,1298,1,0,0,0,1300,1301,1,0,0,0,1301,1303,1,0,0,0,1302,1296,1,0,0,0,1302,1303,1,0,0,0,1303,278,1,0,0,0,1304,1306,7,11,0,0,1305,1304,1,0,0,0,1306,1307,1,0,0,0,1307,1305,1,0,0,0,1307,1308,1,0,0,0,1308,1309,1,0,0,0,1309,1310,6,139,0,0,1310,280,1,0,0,0,1311,1312,5,47,0,0,1312,1313,5,42,0,0,1313,1317,1,0,0,0,1314,1316,9,0,0,0,1315,1314,1,0,0,0,1316,1319,1,0,0,0,1317,1318,1,0,0,0,1317,1315,1,0,0,0,1318,1320,1,0,0,0,1319,1317,1,0,0,0,1320,1321,5,42,0,0,1321,1322,5,47,0,0,1322,1323,1,0,0,0,1323,1324,6,140,1,0,1324,282,1,0,0,0,1325,1326,5,47,0,0,1326,1327,5,47,0,0,1327,1331,1,0,0,0,1328,1330,8,12,0,0,1329,1328,1,0,0,0,1330,1333,1,0,0,0,1331,1329,1,0,0,0,1331,1332,1,0,0,0,1332,1334,1,0,0,0,1333,1331,1,0,0,0,1334,1335,6,141,1,0,1335,284,1,0,0,0,38,0,721,729,738,751,753,767,769,854,861,872,876,880,884,887,891,896,905,910,969,977,982,985,1077,1241,1255,1261,1269,1273,1278,1283,1288,1294,1300,1302,1307,1317,1331,2,6,0,0,0,1,0],T.DecisionsToDFA=E._ATN.decisionToState.map(((t,e)=>new h(t,e)));var S=T,k=class extends g{get grammarFileName(){return"Solidity.g4"}get literalNames(){return k.literalNames}get symbolicNames(){return k.symbolicNames}get ruleNames(){return k.ruleNames}get serializedATN(){return k._serializedATN}createFailedPredicateException(t,e){return new d(this,t,e)}constructor(t){super(t),this._interp=new w(this,k._ATN,k.DecisionsToDFA,new v)}sourceUnit(){let t,e=new A(this,this._ctx,this.state);this.enterRule(e,0,k.RULE_sourceUnit);try{for(this.enterOuterAlt(e,1),this.state=215,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&104620034)||0==(t-36&-32)&&0!=(1<<t-36&2080392501)||0==(t-95&-32)&&0!=(1<<t-95&3896770685)||127===t||128===t;){switch(this.state=213,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,0,this._ctx)){case 1:this.state=202,this.pragmaDirective();break;case 2:this.state=203,this.importDirective();break;case 3:this.state=204,this.contractDefinition();break;case 4:this.state=205,this.enumDefinition();break;case 5:this.state=206,this.eventDefinition();break;case 6:this.state=207,this.structDefinition();break;case 7:this.state=208,this.functionDefinition();break;case 8:this.state=209,this.fileLevelConstant();break;case 9:this.state=210,this.customErrorDefinition();break;case 10:this.state=211,this.typeDefinition();break;case 11:this.state=212,this.usingForDeclaration()}this.state=217,this._errHandler.sync(this),t=this._input.LA(1)}this.state=218,this.match(k.EOF)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pragmaDirective(){let t=new K(this,this._ctx,this.state);this.enterRule(t,2,k.RULE_pragmaDirective);try{this.enterOuterAlt(t,1),this.state=220,this.match(k.T__0),this.state=221,this.pragmaName(),this.state=222,this.pragmaValue(),this.state=223,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}pragmaName(){let t=new L(this,this._ctx,this.state);this.enterRule(t,4,k.RULE_pragmaName);try{this.enterOuterAlt(t,1),this.state=225,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}pragmaValue(){let t=new I(this,this._ctx,this.state);this.enterRule(t,6,k.RULE_pragmaValue);try{switch(this.state=230,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,2,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=227,this.match(k.T__2);break;case 2:this.enterOuterAlt(t,2),this.state=228,this.version();break;case 3:this.enterOuterAlt(t,3),this.state=229,this.expression(0)}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}version(){let t,e=new N(this,this._ctx,this.state);this.enterRule(e,8,k.RULE_version);try{for(this.enterOuterAlt(e,1),this.state=232,this.versionConstraint(),this.state=239,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&4080)||103===t||130===t;)this.state=234,this._errHandler.sync(this),t=this._input.LA(1),4===t&&(this.state=233,this.match(k.T__3)),this.state=236,this.versionConstraint(),this.state=241,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}versionOperator(){let t,e=new D(this,this._ctx,this.state);this.enterRule(e,10,k.RULE_versionOperator);try{this.enterOuterAlt(e,1),this.state=242,t=this._input.LA(1),0!=(-32&t)||0==(1<<t&4064)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}versionConstraint(){let t,e=new O(this,this._ctx,this.state);this.enterRule(e,12,k.RULE_versionConstraint);try{switch(this.state=252,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=245,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&4064)&&(this.state=244,this.versionOperator()),this.state=247,this.match(k.VersionLiteral);break;case 2:this.enterOuterAlt(e,2),this.state=249,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&4064)&&(this.state=248,this.versionOperator()),this.state=251,this.match(k.DecimalNumber)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importDeclaration(){let t,e=new P(this,this._ctx,this.state);this.enterRule(e,14,k.RULE_importDeclaration);try{this.enterOuterAlt(e,1),this.state=254,this.identifier(),this.state=257,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=255,this.match(k.T__11),this.state=256,this.identifier())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importDirective(){let t,e=new q(this,this._ctx,this.state);this.enterRule(e,16,k.RULE_importDirective);try{switch(this.state=295,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=259,this.match(k.T__12),this.state=260,this.importPath(),this.state=263,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=261,this.match(k.T__11),this.state=262,this.identifier()),this.state=265,this.match(k.T__1);break;case 2:switch(this.enterOuterAlt(e,2),this.state=267,this.match(k.T__12),this.state=270,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=268,this.match(k.T__2);break;case 14:case 25:case 44:case 50:case 62:case 95:case 113:case 117:case 124:case 125:case 127:case 128:this.state=269,this.identifier();break;default:throw new y(this)}this.state=274,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=272,this.match(k.T__11),this.state=273,this.identifier()),this.state=276,this.match(k.T__13),this.state=277,this.importPath(),this.state=278,this.match(k.T__1);break;case 3:for(this.enterOuterAlt(e,3),this.state=280,this.match(k.T__12),this.state=281,this.match(k.T__14),this.state=282,this.importDeclaration(),this.state=287,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=283,this.match(k.T__15),this.state=284,this.importDeclaration(),this.state=289,this._errHandler.sync(this),t=this._input.LA(1);this.state=290,this.match(k.T__16),this.state=291,this.match(k.T__13),this.state=292,this.importPath(),this.state=293,this.match(k.T__1)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importPath(){let t=new Y(this,this._ctx,this.state);this.enterRule(t,18,k.RULE_importPath);try{this.enterOuterAlt(t,1),this.state=297,this.match(k.StringLiteralFragment)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}contractDefinition(){let t,e=new F(this,this._ctx,this.state);this.enterRule(e,20,k.RULE_contractDefinition);try{if(this.enterOuterAlt(e,1),this.state=300,this._errHandler.sync(this),t=this._input.LA(1),18===t&&(this.state=299,this.match(k.T__17)),this.state=302,t=this._input.LA(1),0!=(-32&t)||0==(1<<t&3670016)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=303,this.identifier(),this.state=313,this._errHandler.sync(this),t=this._input.LA(1),22===t)for(this.state=304,this.match(k.T__21),this.state=305,this.inheritanceSpecifier(),this.state=310,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=306,this.match(k.T__15),this.state=307,this.inheritanceSpecifier(),this.state=312,this._errHandler.sync(this),t=this._input.LA(1);for(this.state=315,this.match(k.T__14),this.state=319,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&100679680)||0==(t-36&-32)&&0!=(1<<t-36&2080392503)||0==(t-95&-32)&&0!=(1<<t-95&3896770685)||127===t||128===t;)this.state=316,this.contractPart(),this.state=321,this._errHandler.sync(this),t=this._input.LA(1);this.state=322,this.match(k.T__16)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}inheritanceSpecifier(){let t,e=new M(this,this._ctx,this.state);this.enterRule(e,22,k.RULE_inheritanceSpecifier);try{this.enterOuterAlt(e,1),this.state=324,this.userDefinedTypeName(),this.state=330,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=325,this.match(k.T__22),this.state=327,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=326,this.expressionList()),this.state=329,this.match(k.T__23))}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}contractPart(){let t=new U(this,this._ctx,this.state);this.enterRule(t,24,k.RULE_contractPart);try{switch(this.state=341,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,20,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=332,this.stateVariableDeclaration();break;case 2:this.enterOuterAlt(t,2),this.state=333,this.usingForDeclaration();break;case 3:this.enterOuterAlt(t,3),this.state=334,this.structDefinition();break;case 4:this.enterOuterAlt(t,4),this.state=335,this.modifierDefinition();break;case 5:this.enterOuterAlt(t,5),this.state=336,this.functionDefinition();break;case 6:this.enterOuterAlt(t,6),this.state=337,this.eventDefinition();break;case 7:this.enterOuterAlt(t,7),this.state=338,this.enumDefinition();break;case 8:this.enterOuterAlt(t,8),this.state=339,this.customErrorDefinition();break;case 9:this.enterOuterAlt(t,9),this.state=340,this.typeDefinition()}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}stateVariableDeclaration(){let t,e=new B(this,this._ctx,this.state);this.enterRule(e,26,k.RULE_stateVariableDeclaration);try{for(this.enterOuterAlt(e,1),this.state=343,this.typeName(0),this.state=352,this._errHandler.sync(this),t=this._input.LA(1);0==(t-96&-32)&&0!=(1<<t-96&13680641);){switch(this.state=350,this._errHandler.sync(this),this._input.LA(1)){case 119:this.state=344,this.match(k.PublicKeyword);break;case 116:this.state=345,this.match(k.InternalKeyword);break;case 118:this.state=346,this.match(k.PrivateKeyword);break;case 110:this.state=347,this.match(k.ConstantKeyword);break;case 111:this.state=348,this.match(k.ImmutableKeyword);break;case 96:this.state=349,this.overrideSpecifier();break;default:throw new y(this)}this.state=354,this._errHandler.sync(this),t=this._input.LA(1)}this.state=355,this.identifier(),this.state=358,this._errHandler.sync(this),t=this._input.LA(1),11===t&&(this.state=356,this.match(k.T__10),this.state=357,this.expression(0)),this.state=360,this.match(k.T__1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}fileLevelConstant(){let t=new V(this,this._ctx,this.state);this.enterRule(t,28,k.RULE_fileLevelConstant);try{this.enterOuterAlt(t,1),this.state=362,this.typeName(0),this.state=363,this.match(k.ConstantKeyword),this.state=364,this.identifier(),this.state=365,this.match(k.T__10),this.state=366,this.expression(0),this.state=367,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}customErrorDefinition(){let t=new H(this,this._ctx,this.state);this.enterRule(t,30,k.RULE_customErrorDefinition);try{this.enterOuterAlt(t,1),this.state=369,this.match(k.T__24),this.state=370,this.identifier(),this.state=371,this.parameterList(),this.state=372,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}typeDefinition(){let t=new j(this,this._ctx,this.state);this.enterRule(t,32,k.RULE_typeDefinition);try{this.enterOuterAlt(t,1),this.state=374,this.match(k.TypeKeyword),this.state=375,this.identifier(),this.state=376,this.match(k.T__21),this.state=377,this.elementaryTypeName(),this.state=378,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}usingForDeclaration(){let t,e=new $(this,this._ctx,this.state);this.enterRule(e,34,k.RULE_usingForDeclaration);try{switch(this.enterOuterAlt(e,1),this.state=380,this.match(k.T__25),this.state=381,this.usingForObject(),this.state=382,this.match(k.T__26),this.state=385,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=383,this.match(k.T__2);break;case 14:case 25:case 38:case 44:case 46:case 50:case 62:case 63:case 64:case 65:case 66:case 95:case 97:case 98:case 99:case 100:case 101:case 113:case 117:case 124:case 125:case 127:case 128:this.state=384,this.typeName(0);break;default:throw new y(this)}this.state=388,this._errHandler.sync(this),t=this._input.LA(1),124===t&&(this.state=387,this.match(k.GlobalKeyword)),this.state=390,this.match(k.T__1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}usingForObject(){let t,e=new G(this,this._ctx,this.state);this.enterRule(e,36,k.RULE_usingForObject);try{switch(this.state=404,this._errHandler.sync(this),this._input.LA(1)){case 14:case 25:case 44:case 50:case 62:case 95:case 113:case 117:case 124:case 125:case 127:case 128:this.enterOuterAlt(e,1),this.state=392,this.userDefinedTypeName();break;case 15:for(this.enterOuterAlt(e,2),this.state=393,this.match(k.T__14),this.state=394,this.usingForObjectDirective(),this.state=399,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=395,this.match(k.T__15),this.state=396,this.usingForObjectDirective(),this.state=401,this._errHandler.sync(this),t=this._input.LA(1);this.state=402,this.match(k.T__16);break;default:throw new y(this)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}usingForObjectDirective(){let t,e=new z(this,this._ctx,this.state);this.enterRule(e,38,k.RULE_usingForObjectDirective);try{this.enterOuterAlt(e,1),this.state=406,this.userDefinedTypeName(),this.state=409,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=407,this.match(k.T__11),this.state=408,this.userDefinableOperators())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}userDefinableOperators(){let t,e=new W(this,this._ctx,this.state);this.enterRule(e,40,k.RULE_userDefinableOperators);try{this.enterOuterAlt(e,1),this.state=411,t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&4026533864)||0==(t-32&-32)&&0!=(1<<t-32&15)?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}structDefinition(){let t,e=new X(this,this._ctx,this.state);this.enterRule(e,42,k.RULE_structDefinition);try{if(this.enterOuterAlt(e,1),this.state=413,this.match(k.T__35),this.state=414,this.identifier(),this.state=415,this.match(k.T__14),this.state=426,this._errHandler.sync(this),t=this._input.LA(1),14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)for(this.state=416,this.variableDeclaration(),this.state=417,this.match(k.T__1),this.state=423,this._errHandler.sync(this),t=this._input.LA(1);14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t;)this.state=418,this.variableDeclaration(),this.state=419,this.match(k.T__1),this.state=425,this._errHandler.sync(this),t=this._input.LA(1);this.state=428,this.match(k.T__16)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}modifierDefinition(){let t,e=new Q(this,this._ctx,this.state);this.enterRule(e,44,k.RULE_modifierDefinition);try{for(this.enterOuterAlt(e,1),this.state=430,this.match(k.T__36),this.state=431,this.identifier(),this.state=433,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=432,this.parameterList()),this.state=439,this._errHandler.sync(this),t=this._input.LA(1);96===t||120===t;){switch(this.state=437,this._errHandler.sync(this),this._input.LA(1)){case 120:this.state=435,this.match(k.VirtualKeyword);break;case 96:this.state=436,this.overrideSpecifier();break;default:throw new y(this)}this.state=441,this._errHandler.sync(this),t=this._input.LA(1)}switch(this.state=444,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=442,this.match(k.T__1);break;case 15:this.state=443,this.block();break;default:throw new y(this)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}modifierInvocation(){let t,e=new J(this,this._ctx,this.state);this.enterRule(e,46,k.RULE_modifierInvocation);try{this.enterOuterAlt(e,1),this.state=446,this.identifier(),this.state=452,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=447,this.match(k.T__22),this.state=449,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=448,this.expressionList()),this.state=451,this.match(k.T__23))}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionDefinition(){let t,e=new Z(this,this._ctx,this.state);this.enterRule(e,48,k.RULE_functionDefinition);try{switch(this.enterOuterAlt(e,1),this.state=454,this.functionDescriptor(),this.state=455,this.parameterList(),this.state=456,this.modifierList(),this.state=458,this._errHandler.sync(this),t=this._input.LA(1),39===t&&(this.state=457,this.returnParameters()),this.state=462,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=460,this.match(k.T__1);break;case 15:this.state=461,this.block();break;default:throw new y(this)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionDescriptor(){let t,e=new tt(this,this._ctx,this.state);this.enterRule(e,50,k.RULE_functionDescriptor);try{switch(this.state=471,this._errHandler.sync(this),this._input.LA(1)){case 38:this.enterOuterAlt(e,1),this.state=464,this.match(k.T__37),this.state=466,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=465,this.identifier());break;case 125:this.enterOuterAlt(e,2),this.state=468,this.match(k.ConstructorKeyword);break;case 126:this.enterOuterAlt(e,3),this.state=469,this.match(k.FallbackKeyword);break;case 127:this.enterOuterAlt(e,4),this.state=470,this.match(k.ReceiveKeyword);break;default:throw new y(this)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}returnParameters(){let t=new et(this,this._ctx,this.state);this.enterRule(t,52,k.RULE_returnParameters);try{this.enterOuterAlt(t,1),this.state=473,this.match(k.T__38),this.state=474,this.parameterList()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}modifierList(){let t,e=new rt(this,this._ctx,this.state);this.enterRule(e,54,k.RULE_modifierList);try{for(this.enterOuterAlt(e,1),this.state=486,this._errHandler.sync(this),t=this._input.LA(1);14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&2011987971)||127===t||128===t;){switch(this.state=484,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,41,this._ctx)){case 1:this.state=476,this.match(k.ExternalKeyword);break;case 2:this.state=477,this.match(k.PublicKeyword);break;case 3:this.state=478,this.match(k.InternalKeyword);break;case 4:this.state=479,this.match(k.PrivateKeyword);break;case 5:this.state=480,this.match(k.VirtualKeyword);break;case 6:this.state=481,this.stateMutability();break;case 7:this.state=482,this.modifierInvocation();break;case 8:this.state=483,this.overrideSpecifier()}this.state=488,this._errHandler.sync(this),t=this._input.LA(1)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}eventDefinition(){let t,e=new st(this,this._ctx,this.state);this.enterRule(e,56,k.RULE_eventDefinition);try{this.enterOuterAlt(e,1),this.state=489,this.match(k.T__39),this.state=490,this.identifier(),this.state=491,this.eventParameterList(),this.state=493,this._errHandler.sync(this),t=this._input.LA(1),108===t&&(this.state=492,this.match(k.AnonymousKeyword)),this.state=495,this.match(k.T__1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}enumValue(){let t=new it(this,this._ctx,this.state);this.enterRule(t,58,k.RULE_enumValue);try{this.enterOuterAlt(t,1),this.state=497,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}enumDefinition(){let t,e=new nt(this,this._ctx,this.state);this.enterRule(e,60,k.RULE_enumDefinition);try{for(this.enterOuterAlt(e,1),this.state=499,this.match(k.T__40),this.state=500,this.identifier(),this.state=501,this.match(k.T__14),this.state=503,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=502,this.enumValue()),this.state=509,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=505,this.match(k.T__15),this.state=506,this.enumValue(),this.state=511,this._errHandler.sync(this),t=this._input.LA(1);this.state=512,this.match(k.T__16)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}parameterList(){let t,e=new at(this,this._ctx,this.state);this.enterRule(e,62,k.RULE_parameterList);try{if(this.enterOuterAlt(e,1),this.state=514,this.match(k.T__22),this.state=523,this._errHandler.sync(this),t=this._input.LA(1),14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)for(this.state=515,this.parameter(),this.state=520,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=516,this.match(k.T__15),this.state=517,this.parameter(),this.state=522,this._errHandler.sync(this),t=this._input.LA(1);this.state=525,this.match(k.T__23)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}parameter(){let t,e=new ot(this,this._ctx,this.state);this.enterRule(e,64,k.RULE_parameter);try{this.enterOuterAlt(e,1),this.state=527,this.typeName(0),this.state=529,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,48,this._ctx)&&(this.state=528,this.storageLocation()),this.state=532,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=531,this.identifier())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}eventParameterList(){let t,e=new ct(this,this._ctx,this.state);this.enterRule(e,66,k.RULE_eventParameterList);try{if(this.enterOuterAlt(e,1),this.state=534,this.match(k.T__22),this.state=543,this._errHandler.sync(this),t=this._input.LA(1),14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)for(this.state=535,this.eventParameter(),this.state=540,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=536,this.match(k.T__15),this.state=537,this.eventParameter(),this.state=542,this._errHandler.sync(this),t=this._input.LA(1);this.state=545,this.match(k.T__23)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}eventParameter(){let t,e=new lt(this,this._ctx,this.state);this.enterRule(e,68,k.RULE_eventParameter);try{this.enterOuterAlt(e,1),this.state=547,this.typeName(0),this.state=549,this._errHandler.sync(this),t=this._input.LA(1),115===t&&(this.state=548,this.match(k.IndexedKeyword)),this.state=552,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=551,this.identifier())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionTypeParameterList(){let t,e=new ht(this,this._ctx,this.state);this.enterRule(e,70,k.RULE_functionTypeParameterList);try{if(this.enterOuterAlt(e,1),this.state=554,this.match(k.T__22),this.state=563,this._errHandler.sync(this),t=this._input.LA(1),14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)for(this.state=555,this.functionTypeParameter(),this.state=560,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=556,this.match(k.T__15),this.state=557,this.functionTypeParameter(),this.state=562,this._errHandler.sync(this),t=this._input.LA(1);this.state=565,this.match(k.T__23)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionTypeParameter(){let t,e=new ut(this,this._ctx,this.state);this.enterRule(e,72,k.RULE_functionTypeParameter);try{this.enterOuterAlt(e,1),this.state=567,this.typeName(0),this.state=569,this._errHandler.sync(this),t=this._input.LA(1),0==(t-48&-32)&&0!=(1<<t-48&7)&&(this.state=568,this.storageLocation())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}variableDeclaration(){let t=new dt(this,this._ctx,this.state);this.enterRule(t,74,k.RULE_variableDeclaration);try{this.enterOuterAlt(t,1),this.state=571,this.typeName(0),this.state=573,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,57,this._ctx)&&(this.state=572,this.storageLocation()),this.state=575,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}typeName(t){void 0===t&&(t=0);let e,r=this._ctx,s=this.state,i=new pt(this,this._ctx,s),n=i;this.enterRecursionRule(i,76,k.RULE_typeName,t);try{let t;switch(this.enterOuterAlt(i,1),this.state=584,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,58,this._ctx)){case 1:this.state=578,this.elementaryTypeName();break;case 2:this.state=579,this.userDefinedTypeName();break;case 3:this.state=580,this.mapping();break;case 4:this.state=581,this.functionTypeName();break;case 5:this.state=582,this.match(k.T__43),this.state=583,this.match(k.PayableKeyword)}for(this._ctx.stop=this._input.LT(-1),this.state=594,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,60,this._ctx);2!==t&&t!==a.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),n=i,i=new pt(this,r,s),this.pushNewRecursionContext(i,76,k.RULE_typeName),this.state=586,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=587,this.match(k.T__41),this.state=589,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&3263184960)||0==(e-38&-32)&&0!=(1<<e-38&4278194513)||0==(e-71&-32)&&0!=(1<<e-71&4244635651)||0==(e-103&-32)&&0!=(1<<e-103&124273675))&&(this.state=588,this.expression(0)),this.state=591,this.match(k.T__42)}this.state=596,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,60,this._ctx)}}catch(t){if(!(t instanceof b))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}userDefinedTypeName(){let t=new mt(this,this._ctx,this.state);this.enterRule(t,78,k.RULE_userDefinedTypeName);try{let e;for(this.enterOuterAlt(t,1),this.state=597,this.identifier(),this.state=602,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,61,this._ctx);2!==e&&e!==a.INVALID_ALT_NUMBER;)1===e&&(this.state=598,this.match(k.T__44),this.state=599,this.identifier()),this.state=604,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,61,this._ctx)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mappingKey(){let t=new yt(this,this._ctx,this.state);this.enterRule(t,80,k.RULE_mappingKey);try{switch(this.state=607,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,62,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=605,this.elementaryTypeName();break;case 2:this.enterOuterAlt(t,2),this.state=606,this.userDefinedTypeName()}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mapping(){let t,e=new ft(this,this._ctx,this.state);this.enterRule(e,82,k.RULE_mapping);try{this.enterOuterAlt(e,1),this.state=609,this.match(k.T__45),this.state=610,this.match(k.T__22),this.state=611,this.mappingKey(),this.state=613,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=612,this.mappingKeyName()),this.state=615,this.match(k.T__46),this.state=616,this.typeName(0),this.state=618,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=617,this.mappingValueName()),this.state=620,this.match(k.T__23)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mappingKeyName(){let t=new gt(this,this._ctx,this.state);this.enterRule(t,84,k.RULE_mappingKeyName);try{this.enterOuterAlt(t,1),this.state=622,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mappingValueName(){let t=new wt(this,this._ctx,this.state);this.enterRule(t,86,k.RULE_mappingValueName);try{this.enterOuterAlt(t,1),this.state=624,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}functionTypeName(){let t=new xt(this,this._ctx,this.state);this.enterRule(t,88,k.RULE_functionTypeName);try{let e;for(this.enterOuterAlt(t,1),this.state=626,this.match(k.T__37),this.state=627,this.functionTypeParameterList(),this.state=633,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,66,this._ctx);2!==e&&e!==a.INVALID_ALT_NUMBER;){if(1===e)switch(this.state=631,this._errHandler.sync(this),this._input.LA(1)){case 116:this.state=628,this.match(k.InternalKeyword);break;case 114:this.state=629,this.match(k.ExternalKeyword);break;case 110:case 117:case 121:case 123:this.state=630,this.stateMutability();break;default:throw new y(this)}this.state=635,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,66,this._ctx)}this.state=638,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,67,this._ctx)&&(this.state=636,this.match(k.T__38),this.state=637,this.functionTypeParameterList())}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}storageLocation(){let t,e=new vt(this,this._ctx,this.state);this.enterRule(e,90,k.RULE_storageLocation);try{this.enterOuterAlt(e,1),this.state=640,t=this._input.LA(1),0!=(t-48&-32)||0==(1<<t-48&7)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}stateMutability(){let t,e=new bt(this,this._ctx,this.state);this.enterRule(e,92,k.RULE_stateMutability);try{this.enterOuterAlt(e,1),this.state=642,t=this._input.LA(1),0!=(t-110&-32)||0==(1<<t-110&10369)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}block(){let t,e=new _t(this,this._ctx,this.state);this.enterRule(e,94,k.RULE_block);try{for(this.enterOuterAlt(e,1),this.state=644,this.match(k.T__14),this.state=648,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&3397435456)||0==(t-38&-32)&&0!=(1<<t-38&4294881617)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124274251);)this.state=645,this.statement(),this.state=650,this._errHandler.sync(this),t=this._input.LA(1);this.state=651,this.match(k.T__16)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}statement(){let t=new Et(this,this._ctx,this.state);this.enterRule(t,96,k.RULE_statement);try{switch(this.state=668,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,69,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=653,this.ifStatement();break;case 2:this.enterOuterAlt(t,2),this.state=654,this.tryStatement();break;case 3:this.enterOuterAlt(t,3),this.state=655,this.whileStatement();break;case 4:this.enterOuterAlt(t,4),this.state=656,this.forStatement();break;case 5:this.enterOuterAlt(t,5),this.state=657,this.block();break;case 6:this.enterOuterAlt(t,6),this.state=658,this.inlineAssemblyStatement();break;case 7:this.enterOuterAlt(t,7),this.state=659,this.doWhileStatement();break;case 8:this.enterOuterAlt(t,8),this.state=660,this.continueStatement();break;case 9:this.enterOuterAlt(t,9),this.state=661,this.breakStatement();break;case 10:this.enterOuterAlt(t,10),this.state=662,this.returnStatement();break;case 11:this.enterOuterAlt(t,11),this.state=663,this.throwStatement();break;case 12:this.enterOuterAlt(t,12),this.state=664,this.emitStatement();break;case 13:this.enterOuterAlt(t,13),this.state=665,this.simpleStatement();break;case 14:this.enterOuterAlt(t,14),this.state=666,this.uncheckedStatement();break;case 15:this.enterOuterAlt(t,15),this.state=667,this.revertStatement()}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expressionStatement(){let t=new Tt(this,this._ctx,this.state);this.enterRule(t,98,k.RULE_expressionStatement);try{this.enterOuterAlt(t,1),this.state=670,this.expression(0),this.state=671,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}ifStatement(){let t=new St(this,this._ctx,this.state);this.enterRule(t,100,k.RULE_ifStatement);try{this.enterOuterAlt(t,1),this.state=673,this.match(k.T__50),this.state=674,this.match(k.T__22),this.state=675,this.expression(0),this.state=676,this.match(k.T__23),this.state=677,this.statement(),this.state=680,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,70,this._ctx)&&(this.state=678,this.match(k.T__51),this.state=679,this.statement())}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}tryStatement(){let t,e=new kt(this,this._ctx,this.state);this.enterRule(e,102,k.RULE_tryStatement);try{this.enterOuterAlt(e,1),this.state=682,this.match(k.T__52),this.state=683,this.expression(0),this.state=685,this._errHandler.sync(this),t=this._input.LA(1),39===t&&(this.state=684,this.returnParameters()),this.state=687,this.block(),this.state=689,this._errHandler.sync(this),t=this._input.LA(1);do{this.state=688,this.catchClause(),this.state=691,this._errHandler.sync(this),t=this._input.LA(1)}while(54===t)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}catchClause(){let t,e=new Rt(this,this._ctx,this.state);this.enterRule(e,104,k.RULE_catchClause);try{this.enterOuterAlt(e,1),this.state=693,this.match(k.T__53),this.state=698,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&41959424)||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=695,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=694,this.identifier()),this.state=697,this.parameterList()),this.state=700,this.block()}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}whileStatement(){let t=new Ct(this,this._ctx,this.state);this.enterRule(t,106,k.RULE_whileStatement);try{this.enterOuterAlt(t,1),this.state=702,this.match(k.T__54),this.state=703,this.match(k.T__22),this.state=704,this.expression(0),this.state=705,this.match(k.T__23),this.state=706,this.statement()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}simpleStatement(){let t=new At(this,this._ctx,this.state);this.enterRule(t,108,k.RULE_simpleStatement);try{switch(this.enterOuterAlt(t,1),this.state=710,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,75,this._ctx)){case 1:this.state=708,this.variableDeclarationStatement();break;case 2:this.state=709,this.expressionStatement()}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}uncheckedStatement(){let t=new Kt(this,this._ctx,this.state);this.enterRule(t,110,k.RULE_uncheckedStatement);try{this.enterOuterAlt(t,1),this.state=712,this.match(k.T__55),this.state=713,this.block()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}forStatement(){let t,e=new Lt(this,this._ctx,this.state);this.enterRule(e,112,k.RULE_forStatement);try{switch(this.enterOuterAlt(e,1),this.state=715,this.match(k.T__26),this.state=716,this.match(k.T__22),this.state=719,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 30:case 31:case 38:case 42:case 44:case 46:case 50:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 72:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 106:case 113:case 117:case 122:case 124:case 125:case 127:case 128:case 129:this.state=717,this.simpleStatement();break;case 2:this.state=718,this.match(k.T__1);break;default:throw new y(this)}switch(this.state=723,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 30:case 31:case 38:case 42:case 44:case 46:case 50:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 72:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 106:case 113:case 117:case 122:case 124:case 125:case 127:case 128:case 129:this.state=721,this.expressionStatement();break;case 2:this.state=722,this.match(k.T__1);break;default:throw new y(this)}this.state=726,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=725,this.expression(0)),this.state=728,this.match(k.T__23),this.state=729,this.statement()}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}inlineAssemblyStatement(){let t,e=new It(this,this._ctx,this.state);this.enterRule(e,114,k.RULE_inlineAssemblyStatement);try{this.enterOuterAlt(e,1),this.state=731,this.match(k.T__56),this.state=733,this._errHandler.sync(this),t=this._input.LA(1),129===t&&(this.state=732,this.match(k.StringLiteralFragment)),this.state=739,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=735,this.match(k.T__22),this.state=736,this.inlineAssemblyStatementFlag(),this.state=737,this.match(k.T__23)),this.state=741,this.assemblyBlock()}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}inlineAssemblyStatementFlag(){let t=new Nt(this,this._ctx,this.state);this.enterRule(t,116,k.RULE_inlineAssemblyStatementFlag);try{this.enterOuterAlt(t,1),this.state=743,this.stringLiteral()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}doWhileStatement(){let t=new Dt(this,this._ctx,this.state);this.enterRule(t,118,k.RULE_doWhileStatement);try{this.enterOuterAlt(t,1),this.state=745,this.match(k.T__57),this.state=746,this.statement(),this.state=747,this.match(k.T__54),this.state=748,this.match(k.T__22),this.state=749,this.expression(0),this.state=750,this.match(k.T__23),this.state=751,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}continueStatement(){let t=new Ot(this,this._ctx,this.state);this.enterRule(t,120,k.RULE_continueStatement);try{this.enterOuterAlt(t,1),this.state=753,this.match(k.ContinueKeyword),this.state=754,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}breakStatement(){let t=new Pt(this,this._ctx,this.state);this.enterRule(t,122,k.RULE_breakStatement);try{this.enterOuterAlt(t,1),this.state=756,this.match(k.BreakKeyword),this.state=757,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}returnStatement(){let t,e=new qt(this,this._ctx,this.state);this.enterRule(e,124,k.RULE_returnStatement);try{this.enterOuterAlt(e,1),this.state=759,this.match(k.T__58),this.state=761,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=760,this.expression(0)),this.state=763,this.match(k.T__1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}throwStatement(){let t=new Yt(this,this._ctx,this.state);this.enterRule(t,126,k.RULE_throwStatement);try{this.enterOuterAlt(t,1),this.state=765,this.match(k.T__59),this.state=766,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}emitStatement(){let t=new Ft(this,this._ctx,this.state);this.enterRule(t,128,k.RULE_emitStatement);try{this.enterOuterAlt(t,1),this.state=768,this.match(k.T__60),this.state=769,this.functionCall(),this.state=770,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}revertStatement(){let t=new Mt(this,this._ctx,this.state);this.enterRule(t,130,k.RULE_revertStatement);try{this.enterOuterAlt(t,1),this.state=772,this.match(k.T__61),this.state=773,this.functionCall(),this.state=774,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}variableDeclarationStatement(){let t,e=new Ut(this,this._ctx,this.state);this.enterRule(e,132,k.RULE_variableDeclarationStatement);try{switch(this.enterOuterAlt(e,1),this.state=783,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,82,this._ctx)){case 1:this.state=776,this.match(k.T__62),this.state=777,this.identifierList();break;case 2:this.state=778,this.variableDeclaration();break;case 3:this.state=779,this.match(k.T__22),this.state=780,this.variableDeclarationList(),this.state=781,this.match(k.T__23)}this.state=787,this._errHandler.sync(this),t=this._input.LA(1),11===t&&(this.state=785,this.match(k.T__10),this.state=786,this.expression(0)),this.state=789,this.match(k.T__1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}variableDeclarationList(){let t,e=new Bt(this,this._ctx,this.state);this.enterRule(e,134,k.RULE_variableDeclarationList);try{for(this.enterOuterAlt(e,1),this.state=792,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)&&(this.state=791,this.variableDeclaration()),this.state=800,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=794,this.match(k.T__15),this.state=796,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)&&(this.state=795,this.variableDeclaration()),this.state=802,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}identifierList(){let t,e=new Vt(this,this._ctx,this.state);this.enterRule(e,136,k.RULE_identifierList);try{let r;for(this.enterOuterAlt(e,1),this.state=803,this.match(k.T__22),this.state=810,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,88,this._ctx);2!==r&&r!==a.INVALID_ALT_NUMBER;)1===r&&(this.state=805,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=804,this.identifier()),this.state=807,this.match(k.T__15)),this.state=812,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,88,this._ctx);this.state=814,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=813,this.identifier()),this.state=816,this.match(k.T__23)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}elementaryTypeName(){let t,e=new Ht(this,this._ctx,this.state);this.enterRule(e,138,k.RULE_elementaryTypeName);try{this.enterOuterAlt(e,1),this.state=818,t=this._input.LA(1),0==(t-44&-32)&&0!=(1<<t-44&7864321)||0==(t-97&-32)&&0!=(1<<t-97&31)?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expression(t){void 0===t&&(t=0);let e,r=this._ctx,s=this.state,i=new jt(this,this._ctx,s),n=i,o=140;this.enterRecursionRule(i,140,k.RULE_expression,t);try{let t;switch(this.enterOuterAlt(i,1),this.state=838,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,90,this._ctx)){case 1:this.state=821,this.match(k.T__68),this.state=822,this.typeName(0);break;case 2:this.state=823,this.match(k.T__22),this.state=824,this.expression(0),this.state=825,this.match(k.T__23);break;case 3:this.state=827,e=this._input.LA(1),67!==e&&68!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=828,this.expression(19);break;case 4:this.state=829,e=this._input.LA(1),30!==e&&31!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=830,this.expression(18);break;case 5:this.state=831,this.match(k.T__70),this.state=832,this.expression(17);break;case 6:this.state=833,this.match(k.T__71),this.state=834,this.expression(16);break;case 7:this.state=835,this.match(k.T__5),this.state=836,this.expression(15);break;case 8:this.state=837,this.primaryExpression()}for(this._ctx.stop=this._input.LT(-1),this.state=914,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,94,this._ctx);2!==t&&t!==a.INVALID_ALT_NUMBER;){if(1===t)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),n=i,this.state=912,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,93,this._ctx)){case 1:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=840,!this.precpred(this._ctx,14))throw this.createFailedPredicateException("this.precpred(this._ctx, 14)");this.state=841,this.match(k.T__72),this.state=842,this.expression(14);break;case 2:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=843,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=844,e=this._input.LA(1),0!=(e-3&-32)||0==(1<<e-3&1610612737)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=845,this.expression(14);break;case 3:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=846,!this.precpred(this._ctx,12))throw this.createFailedPredicateException("this.precpred(this._ctx, 12)");this.state=847,e=this._input.LA(1),30!==e&&31!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=848,this.expression(13);break;case 4:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=849,!this.precpred(this._ctx,11))throw this.createFailedPredicateException("this.precpred(this._ctx, 11)");this.state=850,e=this._input.LA(1),74!==e&&75!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=851,this.expression(12);break;case 5:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=852,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=853,this.match(k.T__28),this.state=854,this.expression(11);break;case 6:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=855,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=856,this.match(k.T__4),this.state=857,this.expression(10);break;case 7:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=858,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=859,this.match(k.T__27),this.state=860,this.expression(9);break;case 8:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=861,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=862,e=this._input.LA(1),0!=(-32&e)||0==(1<<e&1920)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=863,this.expression(8);break;case 9:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=864,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=865,e=this._input.LA(1),34!==e&&35!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=866,this.expression(7);break;case 10:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=867,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=868,this.match(k.T__75),this.state=869,this.expression(6);break;case 11:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=870,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=871,this.match(k.T__3),this.state=872,this.expression(5);break;case 12:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=873,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=874,this.match(k.T__76),this.state=875,this.expression(0),this.state=876,this.match(k.T__69),this.state=877,this.expression(3);break;case 13:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=879,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=880,e=this._input.LA(1),11===e||0==(e-78&-32)&&0!=(1<<e-78&1023)?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=881,this.expression(3);break;case 14:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=882,!this.precpred(this._ctx,27))throw this.createFailedPredicateException("this.precpred(this._ctx, 27)");this.state=883,e=this._input.LA(1),67!==e&&68!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume());break;case 15:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=884,!this.precpred(this._ctx,25))throw this.createFailedPredicateException("this.precpred(this._ctx, 25)");this.state=885,this.match(k.T__41),this.state=886,this.expression(0),this.state=887,this.match(k.T__42);break;case 16:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=889,!this.precpred(this._ctx,24))throw this.createFailedPredicateException("this.precpred(this._ctx, 24)");this.state=890,this.match(k.T__41),this.state=892,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&3263184960)||0==(e-38&-32)&&0!=(1<<e-38&4278194513)||0==(e-71&-32)&&0!=(1<<e-71&4244635651)||0==(e-103&-32)&&0!=(1<<e-103&124273675))&&(this.state=891,this.expression(0)),this.state=894,this.match(k.T__69),this.state=896,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&3263184960)||0==(e-38&-32)&&0!=(1<<e-38&4278194513)||0==(e-71&-32)&&0!=(1<<e-71&4244635651)||0==(e-103&-32)&&0!=(1<<e-103&124273675))&&(this.state=895,this.expression(0)),this.state=898,this.match(k.T__42);break;case 17:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=899,!this.precpred(this._ctx,23))throw this.createFailedPredicateException("this.precpred(this._ctx, 23)");this.state=900,this.match(k.T__44),this.state=901,this.identifier();break;case 18:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=902,!this.precpred(this._ctx,22))throw this.createFailedPredicateException("this.precpred(this._ctx, 22)");this.state=903,this.match(k.T__14),this.state=904,this.nameValueList(),this.state=905,this.match(k.T__16);break;case 19:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=907,!this.precpred(this._ctx,21))throw this.createFailedPredicateException("this.precpred(this._ctx, 21)");this.state=908,this.match(k.T__22),this.state=909,this.functionCallArguments(),this.state=910,this.match(k.T__23)}this.state=916,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,94,this._ctx)}}catch(t){if(!(t instanceof b))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}primaryExpression(){let t=new $t(this,this._ctx,this.state);this.enterRule(t,142,k.RULE_primaryExpression);try{switch(this.state=926,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,95,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=917,this.match(k.BooleanLiteral);break;case 2:this.enterOuterAlt(t,2),this.state=918,this.numberLiteral();break;case 3:this.enterOuterAlt(t,3),this.state=919,this.hexLiteral();break;case 4:this.enterOuterAlt(t,4),this.state=920,this.stringLiteral();break;case 5:this.enterOuterAlt(t,5),this.state=921,this.identifier();break;case 6:this.enterOuterAlt(t,6),this.state=922,this.match(k.TypeKeyword);break;case 7:this.enterOuterAlt(t,7),this.state=923,this.match(k.PayableKeyword);break;case 8:this.enterOuterAlt(t,8),this.state=924,this.tupleExpression();break;case 9:this.enterOuterAlt(t,9),this.state=925,this.typeName(0)}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expressionList(){let t,e=new Gt(this,this._ctx,this.state);this.enterRule(e,144,k.RULE_expressionList);try{for(this.enterOuterAlt(e,1),this.state=928,this.expression(0),this.state=933,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=929,this.match(k.T__15),this.state=930,this.expression(0),this.state=935,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}nameValueList(){let t,e=new zt(this,this._ctx,this.state);this.enterRule(e,146,k.RULE_nameValueList);try{let r;for(this.enterOuterAlt(e,1),this.state=936,this.nameValue(),this.state=941,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,97,this._ctx);2!==r&&r!==a.INVALID_ALT_NUMBER;)1===r&&(this.state=937,this.match(k.T__15),this.state=938,this.nameValue()),this.state=943,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,97,this._ctx);this.state=945,this._errHandler.sync(this),t=this._input.LA(1),16===t&&(this.state=944,this.match(k.T__15))}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}nameValue(){let t=new Wt(this,this._ctx,this.state);this.enterRule(t,148,k.RULE_nameValue);try{this.enterOuterAlt(t,1),this.state=947,this.identifier(),this.state=948,this.match(k.T__69),this.state=949,this.expression(0)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}functionCallArguments(){let t,e=new Xt(this,this._ctx,this.state);this.enterRule(e,150,k.RULE_functionCallArguments);try{switch(this.state=959,this._errHandler.sync(this),this._input.LA(1)){case 15:this.enterOuterAlt(e,1),this.state=951,this.match(k.T__14),this.state=953,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=952,this.nameValueList()),this.state=955,this.match(k.T__16);break;case 6:case 14:case 23:case 24:case 25:case 30:case 31:case 38:case 42:case 44:case 46:case 50:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 72:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 106:case 113:case 117:case 122:case 124:case 125:case 127:case 128:case 129:this.enterOuterAlt(e,2),this.state=957,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=956,this.expressionList());break;default:throw new y(this)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionCall(){let t=new Qt(this,this._ctx,this.state);this.enterRule(t,152,k.RULE_functionCall);try{this.enterOuterAlt(t,1),this.state=961,this.expression(0),this.state=962,this.match(k.T__22),this.state=963,this.functionCallArguments(),this.state=964,this.match(k.T__23)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyBlock(){let t,e=new Jt(this,this._ctx,this.state);this.enterRule(e,154,k.RULE_assemblyBlock);try{for(this.enterOuterAlt(e,1),this.state=966,this.match(k.T__14),this.state=970,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&176209920)||0==(t-38&-32)&&0!=(1<<t-38&287322177)||0==(t-88&-32)&&0!=(1<<t-88&589676681)||0==(t-124&-32)&&0!=(1<<t-124&59);)this.state=967,this.assemblyItem(),this.state=972,this._errHandler.sync(this),t=this._input.LA(1);this.state=973,this.match(k.T__16)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyItem(){let t=new Zt(this,this._ctx,this.state);this.enterRule(t,156,k.RULE_assemblyItem);try{switch(this.state=992,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,103,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=975,this.identifier();break;case 2:this.enterOuterAlt(t,2),this.state=976,this.assemblyBlock();break;case 3:this.enterOuterAlt(t,3),this.state=977,this.assemblyExpression();break;case 4:this.enterOuterAlt(t,4),this.state=978,this.assemblyLocalDefinition();break;case 5:this.enterOuterAlt(t,5),this.state=979,this.assemblyAssignment();break;case 6:this.enterOuterAlt(t,6),this.state=980,this.assemblyStackAssignment();break;case 7:this.enterOuterAlt(t,7),this.state=981,this.labelDefinition();break;case 8:this.enterOuterAlt(t,8),this.state=982,this.assemblySwitch();break;case 9:this.enterOuterAlt(t,9),this.state=983,this.assemblyFunctionDefinition();break;case 10:this.enterOuterAlt(t,10),this.state=984,this.assemblyFor();break;case 11:this.enterOuterAlt(t,11),this.state=985,this.assemblyIf();break;case 12:this.enterOuterAlt(t,12),this.state=986,this.match(k.BreakKeyword);break;case 13:this.enterOuterAlt(t,13),this.state=987,this.match(k.ContinueKeyword);break;case 14:this.enterOuterAlt(t,14),this.state=988,this.match(k.LeaveKeyword);break;case 15:this.enterOuterAlt(t,15),this.state=989,this.numberLiteral();break;case 16:this.enterOuterAlt(t,16),this.state=990,this.stringLiteral();break;case 17:this.enterOuterAlt(t,17),this.state=991,this.hexLiteral()}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyExpression(){let t=new te(this,this._ctx,this.state);this.enterRule(t,158,k.RULE_assemblyExpression);try{switch(this.state=997,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,104,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=994,this.assemblyCall();break;case 2:this.enterOuterAlt(t,2),this.state=995,this.assemblyLiteral();break;case 3:this.enterOuterAlt(t,3),this.state=996,this.assemblyMember()}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyMember(){let t=new ee(this,this._ctx,this.state);this.enterRule(t,160,k.RULE_assemblyMember);try{this.enterOuterAlt(t,1),this.state=999,this.identifier(),this.state=1e3,this.match(k.T__44),this.state=1001,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyCall(){let t,e=new re(this,this._ctx,this.state);this.enterRule(e,162,k.RULE_assemblyCall);try{switch(this.enterOuterAlt(e,1),this.state=1007,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,105,this._ctx)){case 1:this.state=1003,this.match(k.T__58);break;case 2:this.state=1004,this.match(k.T__43);break;case 3:this.state=1005,this.match(k.T__65);break;case 4:this.state=1006,this.identifier()}if(this.state=1021,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,108,this._ctx)){for(this.state=1009,this.match(k.T__22),this.state=1011,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&4489281)||0==(t-95&-32)&&0!=(1<<t-95&1615072129)||0==(t-127&-32)&&0!=(1<<t-127&7))&&(this.state=1010,this.assemblyExpression()),this.state=1017,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1013,this.match(k.T__15),this.state=1014,this.assemblyExpression(),this.state=1019,this._errHandler.sync(this),t=this._input.LA(1);this.state=1020,this.match(k.T__23)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyLocalDefinition(){let t,e=new se(this,this._ctx,this.state);this.enterRule(e,164,k.RULE_assemblyLocalDefinition);try{this.enterOuterAlt(e,1),this.state=1023,this.match(k.T__87),this.state=1024,this.assemblyIdentifierOrList(),this.state=1027,this._errHandler.sync(this),t=this._input.LA(1),89===t&&(this.state=1025,this.match(k.T__88),this.state=1026,this.assemblyExpression())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyAssignment(){let t=new ie(this,this._ctx,this.state);this.enterRule(t,166,k.RULE_assemblyAssignment);try{this.enterOuterAlt(t,1),this.state=1029,this.assemblyIdentifierOrList(),this.state=1030,this.match(k.T__88),this.state=1031,this.assemblyExpression()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIdentifierOrList(){let t=new ne(this,this._ctx,this.state);this.enterRule(t,168,k.RULE_assemblyIdentifierOrList);try{switch(this.state=1040,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,110,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=1033,this.identifier();break;case 2:this.enterOuterAlt(t,2),this.state=1034,this.assemblyMember();break;case 3:this.enterOuterAlt(t,3),this.state=1035,this.assemblyIdentifierList();break;case 4:this.enterOuterAlt(t,4),this.state=1036,this.match(k.T__22),this.state=1037,this.assemblyIdentifierList(),this.state=1038,this.match(k.T__23)}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIdentifierList(){let t,e=new ae(this,this._ctx,this.state);this.enterRule(e,170,k.RULE_assemblyIdentifierList);try{for(this.enterOuterAlt(e,1),this.state=1042,this.identifier(),this.state=1047,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1043,this.match(k.T__15),this.state=1044,this.identifier(),this.state=1049,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyStackAssignment(){let t=new oe(this,this._ctx,this.state);this.enterRule(t,172,k.RULE_assemblyStackAssignment);try{this.enterOuterAlt(t,1),this.state=1050,this.assemblyExpression(),this.state=1051,this.match(k.T__89),this.state=1052,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}labelDefinition(){let t=new ce(this,this._ctx,this.state);this.enterRule(t,174,k.RULE_labelDefinition);try{this.enterOuterAlt(t,1),this.state=1054,this.identifier(),this.state=1055,this.match(k.T__69)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblySwitch(){let t,e=new le(this,this._ctx,this.state);this.enterRule(e,176,k.RULE_assemblySwitch);try{for(this.enterOuterAlt(e,1),this.state=1057,this.match(k.T__90),this.state=1058,this.assemblyExpression(),this.state=1062,this._errHandler.sync(this),t=this._input.LA(1);92===t||93===t;)this.state=1059,this.assemblyCase(),this.state=1064,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyCase(){let t=new he(this,this._ctx,this.state);this.enterRule(t,178,k.RULE_assemblyCase);try{switch(this.state=1071,this._errHandler.sync(this),this._input.LA(1)){case 92:this.enterOuterAlt(t,1),this.state=1065,this.match(k.T__91),this.state=1066,this.assemblyLiteral(),this.state=1067,this.assemblyBlock();break;case 93:this.enterOuterAlt(t,2),this.state=1069,this.match(k.T__92),this.state=1070,this.assemblyBlock();break;default:throw new y(this)}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyFunctionDefinition(){let t,e=new ue(this,this._ctx,this.state);this.enterRule(e,180,k.RULE_assemblyFunctionDefinition);try{this.enterOuterAlt(e,1),this.state=1073,this.match(k.T__37),this.state=1074,this.identifier(),this.state=1075,this.match(k.T__22),this.state=1077,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=1076,this.assemblyIdentifierList()),this.state=1079,this.match(k.T__23),this.state=1081,this._errHandler.sync(this),t=this._input.LA(1),94===t&&(this.state=1080,this.assemblyFunctionReturns()),this.state=1083,this.assemblyBlock()}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyFunctionReturns(){let t=new de(this,this._ctx,this.state);this.enterRule(t,182,k.RULE_assemblyFunctionReturns);try{this.enterOuterAlt(t,1),this.state=1085,this.match(k.T__93),this.state=1086,this.assemblyIdentifierList()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyFor(){let t=new pe(this,this._ctx,this.state);this.enterRule(t,184,k.RULE_assemblyFor);try{switch(this.enterOuterAlt(t,1),this.state=1088,this.match(k.T__26),this.state=1091,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1089,this.assemblyBlock();break;case 14:case 25:case 44:case 50:case 59:case 62:case 66:case 95:case 102:case 103:case 104:case 106:case 113:case 117:case 124:case 125:case 127:case 128:case 129:this.state=1090,this.assemblyExpression();break;default:throw new y(this)}switch(this.state=1093,this.assemblyExpression(),this.state=1096,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1094,this.assemblyBlock();break;case 14:case 25:case 44:case 50:case 59:case 62:case 66:case 95:case 102:case 103:case 104:case 106:case 113:case 117:case 124:case 125:case 127:case 128:case 129:this.state=1095,this.assemblyExpression();break;default:throw new y(this)}this.state=1098,this.assemblyBlock()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIf(){let t=new me(this,this._ctx,this.state);this.enterRule(t,186,k.RULE_assemblyIf);try{this.enterOuterAlt(t,1),this.state=1100,this.match(k.T__50),this.state=1101,this.assemblyExpression(),this.state=1102,this.assemblyBlock()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyLiteral(){let t=new ye(this,this._ctx,this.state);this.enterRule(t,188,k.RULE_assemblyLiteral);try{switch(this.state=1109,this._errHandler.sync(this),this._input.LA(1)){case 129:this.enterOuterAlt(t,1),this.state=1104,this.stringLiteral();break;case 103:this.enterOuterAlt(t,2),this.state=1105,this.match(k.DecimalNumber);break;case 104:this.enterOuterAlt(t,3),this.state=1106,this.match(k.HexNumber);break;case 106:this.enterOuterAlt(t,4),this.state=1107,this.hexLiteral();break;case 102:this.enterOuterAlt(t,5),this.state=1108,this.match(k.BooleanLiteral);break;default:throw new y(this)}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}tupleExpression(){let t,e=new fe(this,this._ctx,this.state);this.enterRule(e,190,k.RULE_tupleExpression);try{switch(this.state=1137,this._errHandler.sync(this),this._input.LA(1)){case 23:for(this.enterOuterAlt(e,1),this.state=1111,this.match(k.T__22),this.state=1113,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=1112,this.expression(0)),this.state=1121,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1115,this.match(k.T__15),this.state=1117,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=1116,this.expression(0)),this.state=1123,this._errHandler.sync(this),t=this._input.LA(1);this.state=1124,this.match(k.T__23);break;case 42:if(this.enterOuterAlt(e,2),this.state=1125,this.match(k.T__41),this.state=1134,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))for(this.state=1126,this.expression(0),this.state=1131,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1127,this.match(k.T__15),this.state=1128,this.expression(0),this.state=1133,this._errHandler.sync(this),t=this._input.LA(1);this.state=1136,this.match(k.T__42);break;default:throw new y(this)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}numberLiteral(){let t,e=new ge(this,this._ctx,this.state);this.enterRule(e,192,k.RULE_numberLiteral);try{this.enterOuterAlt(e,1),this.state=1139,t=this._input.LA(1),103!==t&&104!==t?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=1141,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,125,this._ctx)&&(this.state=1140,this.match(k.NumberUnit))}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}identifier(){let t,e=new we(this,this._ctx,this.state);this.enterRule(e,194,k.RULE_identifier);try{this.enterOuterAlt(e,1),this.state=1143,t=this._input.LA(1),14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}hexLiteral(){let t=new xe(this,this._ctx,this.state);this.enterRule(t,196,k.RULE_hexLiteral);try{let e;this.enterOuterAlt(t,1),this.state=1146,this._errHandler.sync(this),e=1;do{if(1!==e)throw new y(this);this.state=1145,this.match(k.HexLiteralFragment),this.state=1148,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,126,this._ctx)}while(2!==e&&e!==a.INVALID_ALT_NUMBER)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}overrideSpecifier(){let t,e=new ve(this,this._ctx,this.state);this.enterRule(e,198,k.RULE_overrideSpecifier);try{if(this.enterOuterAlt(e,1),this.state=1150,this.match(k.T__95),this.state=1162,this._errHandler.sync(this),t=this._input.LA(1),23===t){for(this.state=1151,this.match(k.T__22),this.state=1152,this.userDefinedTypeName(),this.state=1157,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1153,this.match(k.T__15),this.state=1154,this.userDefinedTypeName(),this.state=1159,this._errHandler.sync(this),t=this._input.LA(1);this.state=1160,this.match(k.T__23)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}stringLiteral(){let t=new be(this,this._ctx,this.state);this.enterRule(t,200,k.RULE_stringLiteral);try{let e;this.enterOuterAlt(t,1),this.state=1165,this._errHandler.sync(this),e=1;do{if(1!==e)throw new y(this);this.state=1164,this.match(k.StringLiteralFragment),this.state=1167,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,129,this._ctx)}while(2!==e&&e!==a.INVALID_ALT_NUMBER)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sempred(t,e,r){switch(e){case 38:return this.typeName_sempred(t,r);case 70:return this.expression_sempred(t,r)}return!0}typeName_sempred(t,e){return 0!==e||this.precpred(this._ctx,3)}expression_sempred(t,e){switch(e){case 1:return this.precpred(this._ctx,14);case 2:return this.precpred(this._ctx,13);case 3:return this.precpred(this._ctx,12);case 4:return this.precpred(this._ctx,11);case 5:return this.precpred(this._ctx,10);case 6:return this.precpred(this._ctx,9);case 7:return this.precpred(this._ctx,8);case 8:return this.precpred(this._ctx,7);case 9:return this.precpred(this._ctx,6);case 10:return this.precpred(this._ctx,5);case 11:return this.precpred(this._ctx,4);case 12:return this.precpred(this._ctx,3);case 13:return this.precpred(this._ctx,2);case 14:return this.precpred(this._ctx,27);case 15:return this.precpred(this._ctx,25);case 16:return this.precpred(this._ctx,24);case 17:return this.precpred(this._ctx,23);case 18:return this.precpred(this._ctx,22);case 19:return this.precpred(this._ctx,21)}return!0}static get _ATN(){return k.__ATN||(k.__ATN=(new o).deserialize(k._serializedATN)),k.__ATN}},R=k;R.T__0=1,R.T__1=2,R.T__2=3,R.T__3=4,R.T__4=5,R.T__5=6,R.T__6=7,R.T__7=8,R.T__8=9,R.T__9=10,R.T__10=11,R.T__11=12,R.T__12=13,R.T__13=14,R.T__14=15,R.T__15=16,R.T__16=17,R.T__17=18,R.T__18=19,R.T__19=20,R.T__20=21,R.T__21=22,R.T__22=23,R.T__23=24,R.T__24=25,R.T__25=26,R.T__26=27,R.T__27=28,R.T__28=29,R.T__29=30,R.T__30=31,R.T__31=32,R.T__32=33,R.T__33=34,R.T__34=35,R.T__35=36,R.T__36=37,R.T__37=38,R.T__38=39,R.T__39=40,R.T__40=41,R.T__41=42,R.T__42=43,R.T__43=44,R.T__44=45,R.T__45=46,R.T__46=47,R.T__47=48,R.T__48=49,R.T__49=50,R.T__50=51,R.T__51=52,R.T__52=53,R.T__53=54,R.T__54=55,R.T__55=56,R.T__56=57,R.T__57=58,R.T__58=59,R.T__59=60,R.T__60=61,R.T__61=62,R.T__62=63,R.T__63=64,R.T__64=65,R.T__65=66,R.T__66=67,R.T__67=68,R.T__68=69,R.T__69=70,R.T__70=71,R.T__71=72,R.T__72=73,R.T__73=74,R.T__74=75,R.T__75=76,R.T__76=77,R.T__77=78,R.T__78=79,R.T__79=80,R.T__80=81,R.T__81=82,R.T__82=83,R.T__83=84,R.T__84=85,R.T__85=86,R.T__86=87,R.T__87=88,R.T__88=89,R.T__89=90,R.T__90=91,R.T__91=92,R.T__92=93,R.T__93=94,R.T__94=95,R.T__95=96,R.Int=97,R.Uint=98,R.Byte=99,R.Fixed=100,R.Ufixed=101,R.BooleanLiteral=102,R.DecimalNumber=103,R.HexNumber=104,R.NumberUnit=105,R.HexLiteralFragment=106,R.ReservedKeyword=107,R.AnonymousKeyword=108,R.BreakKeyword=109,R.ConstantKeyword=110,R.ImmutableKeyword=111,R.ContinueKeyword=112,R.LeaveKeyword=113,R.ExternalKeyword=114,R.IndexedKeyword=115,R.InternalKeyword=116,R.PayableKeyword=117,R.PrivateKeyword=118,R.PublicKeyword=119,R.VirtualKeyword=120,R.PureKeyword=121,R.TypeKeyword=122,R.ViewKeyword=123,R.GlobalKeyword=124,R.ConstructorKeyword=125,R.FallbackKeyword=126,R.ReceiveKeyword=127,R.Identifier=128,R.StringLiteralFragment=129,R.VersionLiteral=130,R.WS=131,R.COMMENT=132,R.LINE_COMMENT=133,R.EOF=_.EOF,R.RULE_sourceUnit=0,R.RULE_pragmaDirective=1,R.RULE_pragmaName=2,R.RULE_pragmaValue=3,R.RULE_version=4,R.RULE_versionOperator=5,R.RULE_versionConstraint=6,R.RULE_importDeclaration=7,R.RULE_importDirective=8,R.RULE_importPath=9,R.RULE_contractDefinition=10,R.RULE_inheritanceSpecifier=11,R.RULE_contractPart=12,R.RULE_stateVariableDeclaration=13,R.RULE_fileLevelConstant=14,R.RULE_customErrorDefinition=15,R.RULE_typeDefinition=16,R.RULE_usingForDeclaration=17,R.RULE_usingForObject=18,R.RULE_usingForObjectDirective=19,R.RULE_userDefinableOperators=20,R.RULE_structDefinition=21,R.RULE_modifierDefinition=22,R.RULE_modifierInvocation=23,R.RULE_functionDefinition=24,R.RULE_functionDescriptor=25,R.RULE_returnParameters=26,R.RULE_modifierList=27,R.RULE_eventDefinition=28,R.RULE_enumValue=29,R.RULE_enumDefinition=30,R.RULE_parameterList=31,R.RULE_parameter=32,R.RULE_eventParameterList=33,R.RULE_eventParameter=34,R.RULE_functionTypeParameterList=35,R.RULE_functionTypeParameter=36,R.RULE_variableDeclaration=37,R.RULE_typeName=38,R.RULE_userDefinedTypeName=39,R.RULE_mappingKey=40,R.RULE_mapping=41,R.RULE_mappingKeyName=42,R.RULE_mappingValueName=43,R.RULE_functionTypeName=44,R.RULE_storageLocation=45,R.RULE_stateMutability=46,R.RULE_block=47,R.RULE_statement=48,R.RULE_expressionStatement=49,R.RULE_ifStatement=50,R.RULE_tryStatement=51,R.RULE_catchClause=52,R.RULE_whileStatement=53,R.RULE_simpleStatement=54,R.RULE_uncheckedStatement=55,R.RULE_forStatement=56,R.RULE_inlineAssemblyStatement=57,R.RULE_inlineAssemblyStatementFlag=58,R.RULE_doWhileStatement=59,R.RULE_continueStatement=60,R.RULE_breakStatement=61,R.RULE_returnStatement=62,R.RULE_throwStatement=63,R.RULE_emitStatement=64,R.RULE_revertStatement=65,R.RULE_variableDeclarationStatement=66,R.RULE_variableDeclarationList=67,R.RULE_identifierList=68,R.RULE_elementaryTypeName=69,R.RULE_expression=70,R.RULE_primaryExpression=71,R.RULE_expressionList=72,R.RULE_nameValueList=73,R.RULE_nameValue=74,R.RULE_functionCallArguments=75,R.RULE_functionCall=76,R.RULE_assemblyBlock=77,R.RULE_assemblyItem=78,R.RULE_assemblyExpression=79,R.RULE_assemblyMember=80,R.RULE_assemblyCall=81,R.RULE_assemblyLocalDefinition=82,R.RULE_assemblyAssignment=83,R.RULE_assemblyIdentifierOrList=84,R.RULE_assemblyIdentifierList=85,R.RULE_assemblyStackAssignment=86,R.RULE_labelDefinition=87,R.RULE_assemblySwitch=88,R.RULE_assemblyCase=89,R.RULE_assemblyFunctionDefinition=90,R.RULE_assemblyFunctionReturns=91,R.RULE_assemblyFor=92,R.RULE_assemblyIf=93,R.RULE_assemblyLiteral=94,R.RULE_tupleExpression=95,R.RULE_numberLiteral=96,R.RULE_identifier=97,R.RULE_hexLiteral=98,R.RULE_overrideSpecifier=99,R.RULE_stringLiteral=100,R.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],R.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],R.ruleNames=["sourceUnit","pragmaDirective","pragmaName","pragmaValue","version","versionOperator","versionConstraint","importDeclaration","importDirective","importPath","contractDefinition","inheritanceSpecifier","contractPart","stateVariableDeclaration","fileLevelConstant","customErrorDefinition","typeDefinition","usingForDeclaration","usingForObject","usingForObjectDirective","userDefinableOperators","structDefinition","modifierDefinition","modifierInvocation","functionDefinition","functionDescriptor","returnParameters","modifierList","eventDefinition","enumValue","enumDefinition","parameterList","parameter","eventParameterList","eventParameter","functionTypeParameterList","functionTypeParameter","variableDeclaration","typeName","userDefinedTypeName","mappingKey","mapping","mappingKeyName","mappingValueName","functionTypeName","storageLocation","stateMutability","block","statement","expressionStatement","ifStatement","tryStatement","catchClause","whileStatement","simpleStatement","uncheckedStatement","forStatement","inlineAssemblyStatement","inlineAssemblyStatementFlag","doWhileStatement","continueStatement","breakStatement","returnStatement","throwStatement","emitStatement","revertStatement","variableDeclarationStatement","variableDeclarationList","identifierList","elementaryTypeName","expression","primaryExpression","expressionList","nameValueList","nameValue","functionCallArguments","functionCall","assemblyBlock","assemblyItem","assemblyExpression","assemblyMember","assemblyCall","assemblyLocalDefinition","assemblyAssignment","assemblyIdentifierOrList","assemblyIdentifierList","assemblyStackAssignment","labelDefinition","assemblySwitch","assemblyCase","assemblyFunctionDefinition","assemblyFunctionReturns","assemblyFor","assemblyIf","assemblyLiteral","tupleExpression","numberLiteral","identifier","hexLiteral","overrideSpecifier","stringLiteral"],R._serializedATN=[4,1,133,1170,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,5,0,214,8,0,10,0,12,0,217,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,3,1,3,1,3,3,3,231,8,3,1,4,1,4,3,4,235,8,4,1,4,5,4,238,8,4,10,4,12,4,241,9,4,1,5,1,5,1,6,3,6,246,8,6,1,6,1,6,3,6,250,8,6,1,6,3,6,253,8,6,1,7,1,7,1,7,3,7,258,8,7,1,8,1,8,1,8,1,8,3,8,264,8,8,1,8,1,8,1,8,1,8,1,8,3,8,271,8,8,1,8,1,8,3,8,275,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,5,8,286,8,8,10,8,12,8,289,9,8,1,8,1,8,1,8,1,8,1,8,3,8,296,8,8,1,9,1,9,1,10,3,10,301,8,10,1,10,1,10,1,10,1,10,1,10,1,10,5,10,309,8,10,10,10,12,10,312,9,10,3,10,314,8,10,1,10,1,10,5,10,318,8,10,10,10,12,10,321,9,10,1,10,1,10,1,11,1,11,1,11,3,11,328,8,11,1,11,3,11,331,8,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,342,8,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,5,13,351,8,13,10,13,12,13,354,9,13,1,13,1,13,1,13,3,13,359,8,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,3,17,386,8,17,1,17,3,17,389,8,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,5,18,398,8,18,10,18,12,18,401,9,18,1,18,1,18,3,18,405,8,18,1,19,1,19,1,19,3,19,410,8,19,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,5,21,422,8,21,10,21,12,21,425,9,21,3,21,427,8,21,1,21,1,21,1,22,1,22,1,22,3,22,434,8,22,1,22,1,22,5,22,438,8,22,10,22,12,22,441,9,22,1,22,1,22,3,22,445,8,22,1,23,1,23,1,23,3,23,450,8,23,1,23,3,23,453,8,23,1,24,1,24,1,24,1,24,3,24,459,8,24,1,24,1,24,3,24,463,8,24,1,25,1,25,3,25,467,8,25,1,25,1,25,1,25,3,25,472,8,25,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,5,27,485,8,27,10,27,12,27,488,9,27,1,28,1,28,1,28,1,28,3,28,494,8,28,1,28,1,28,1,29,1,29,1,30,1,30,1,30,1,30,3,30,504,8,30,1,30,1,30,5,30,508,8,30,10,30,12,30,511,9,30,1,30,1,30,1,31,1,31,1,31,1,31,5,31,519,8,31,10,31,12,31,522,9,31,3,31,524,8,31,1,31,1,31,1,32,1,32,3,32,530,8,32,1,32,3,32,533,8,32,1,33,1,33,1,33,1,33,5,33,539,8,33,10,33,12,33,542,9,33,3,33,544,8,33,1,33,1,33,1,34,1,34,3,34,550,8,34,1,34,3,34,553,8,34,1,35,1,35,1,35,1,35,5,35,559,8,35,10,35,12,35,562,9,35,3,35,564,8,35,1,35,1,35,1,36,1,36,3,36,570,8,36,1,37,1,37,3,37,574,8,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,585,8,38,1,38,1,38,1,38,3,38,590,8,38,1,38,5,38,593,8,38,10,38,12,38,596,9,38,1,39,1,39,1,39,5,39,601,8,39,10,39,12,39,604,9,39,1,40,1,40,3,40,608,8,40,1,41,1,41,1,41,1,41,3,41,614,8,41,1,41,1,41,1,41,3,41,619,8,41,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,44,1,44,1,44,5,44,632,8,44,10,44,12,44,635,9,44,1,44,1,44,3,44,639,8,44,1,45,1,45,1,46,1,46,1,47,1,47,5,47,647,8,47,10,47,12,47,650,9,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,3,48,669,8,48,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,3,50,681,8,50,1,51,1,51,1,51,3,51,686,8,51,1,51,1,51,4,51,690,8,51,11,51,12,51,691,1,52,1,52,3,52,696,8,52,1,52,3,52,699,8,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,3,54,711,8,54,1,55,1,55,1,55,1,56,1,56,1,56,1,56,3,56,720,8,56,1,56,1,56,3,56,724,8,56,1,56,3,56,727,8,56,1,56,1,56,1,56,1,57,1,57,3,57,734,8,57,1,57,1,57,1,57,1,57,3,57,740,8,57,1,57,1,57,1,58,1,58,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,62,1,62,3,62,762,8,62,1,62,1,62,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66,3,66,784,8,66,1,66,1,66,3,66,788,8,66,1,66,1,66,1,67,3,67,793,8,67,1,67,1,67,3,67,797,8,67,5,67,799,8,67,10,67,12,67,802,9,67,1,68,1,68,3,68,806,8,68,1,68,5,68,809,8,68,10,68,12,68,812,9,68,1,68,3,68,815,8,68,1,68,1,68,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,3,70,839,8,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,3,70,893,8,70,1,70,1,70,3,70,897,8,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,5,70,913,8,70,10,70,12,70,916,9,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,927,8,71,1,72,1,72,1,72,5,72,932,8,72,10,72,12,72,935,9,72,1,73,1,73,1,73,5,73,940,8,73,10,73,12,73,943,9,73,1,73,3,73,946,8,73,1,74,1,74,1,74,1,74,1,75,1,75,3,75,954,8,75,1,75,1,75,3,75,958,8,75,3,75,960,8,75,1,76,1,76,1,76,1,76,1,76,1,77,1,77,5,77,969,8,77,10,77,12,77,972,9,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,993,8,78,1,79,1,79,1,79,3,79,998,8,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,3,81,1008,8,81,1,81,1,81,3,81,1012,8,81,1,81,1,81,5,81,1016,8,81,10,81,12,81,1019,9,81,1,81,3,81,1022,8,81,1,82,1,82,1,82,1,82,3,82,1028,8,82,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,84,3,84,1041,8,84,1,85,1,85,1,85,5,85,1046,8,85,10,85,12,85,1049,9,85,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,88,1,88,1,88,5,88,1061,8,88,10,88,12,88,1064,9,88,1,89,1,89,1,89,1,89,1,89,1,89,3,89,1072,8,89,1,90,1,90,1,90,1,90,3,90,1078,8,90,1,90,1,90,3,90,1082,8,90,1,90,1,90,1,91,1,91,1,91,1,92,1,92,1,92,3,92,1092,8,92,1,92,1,92,1,92,3,92,1097,8,92,1,92,1,92,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,3,94,1110,8,94,1,95,1,95,3,95,1114,8,95,1,95,1,95,3,95,1118,8,95,5,95,1120,8,95,10,95,12,95,1123,9,95,1,95,1,95,1,95,1,95,1,95,5,95,1130,8,95,10,95,12,95,1133,9,95,3,95,1135,8,95,1,95,3,95,1138,8,95,1,96,1,96,3,96,1142,8,96,1,97,1,97,1,98,4,98,1147,8,98,11,98,12,98,1148,1,99,1,99,1,99,1,99,1,99,5,99,1156,8,99,10,99,12,99,1159,9,99,1,99,1,99,3,99,1163,8,99,1,100,4,100,1166,8,100,11,100,12,100,1167,1,100,0,2,76,140,101,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,0,15,1,0,5,11,1,0,19,21,3,0,3,3,5,10,28,35,1,0,48,50,4,0,110,110,117,117,121,121,123,123,3,0,44,44,63,66,97,101,1,0,67,68,1,0,30,31,2,0,3,3,32,33,1,0,74,75,1,0,7,10,1,0,34,35,2,0,11,11,78,87,1,0,103,104,10,0,14,14,25,25,44,44,50,50,62,62,95,95,113,113,117,117,124,125,127,128,1299,0,215,1,0,0,0,2,220,1,0,0,0,4,225,1,0,0,0,6,230,1,0,0,0,8,232,1,0,0,0,10,242,1,0,0,0,12,252,1,0,0,0,14,254,1,0,0,0,16,295,1,0,0,0,18,297,1,0,0,0,20,300,1,0,0,0,22,324,1,0,0,0,24,341,1,0,0,0,26,343,1,0,0,0,28,362,1,0,0,0,30,369,1,0,0,0,32,374,1,0,0,0,34,380,1,0,0,0,36,404,1,0,0,0,38,406,1,0,0,0,40,411,1,0,0,0,42,413,1,0,0,0,44,430,1,0,0,0,46,446,1,0,0,0,48,454,1,0,0,0,50,471,1,0,0,0,52,473,1,0,0,0,54,486,1,0,0,0,56,489,1,0,0,0,58,497,1,0,0,0,60,499,1,0,0,0,62,514,1,0,0,0,64,527,1,0,0,0,66,534,1,0,0,0,68,547,1,0,0,0,70,554,1,0,0,0,72,567,1,0,0,0,74,571,1,0,0,0,76,584,1,0,0,0,78,597,1,0,0,0,80,607,1,0,0,0,82,609,1,0,0,0,84,622,1,0,0,0,86,624,1,0,0,0,88,626,1,0,0,0,90,640,1,0,0,0,92,642,1,0,0,0,94,644,1,0,0,0,96,668,1,0,0,0,98,670,1,0,0,0,100,673,1,0,0,0,102,682,1,0,0,0,104,693,1,0,0,0,106,702,1,0,0,0,108,710,1,0,0,0,110,712,1,0,0,0,112,715,1,0,0,0,114,731,1,0,0,0,116,743,1,0,0,0,118,745,1,0,0,0,120,753,1,0,0,0,122,756,1,0,0,0,124,759,1,0,0,0,126,765,1,0,0,0,128,768,1,0,0,0,130,772,1,0,0,0,132,783,1,0,0,0,134,792,1,0,0,0,136,803,1,0,0,0,138,818,1,0,0,0,140,838,1,0,0,0,142,926,1,0,0,0,144,928,1,0,0,0,146,936,1,0,0,0,148,947,1,0,0,0,150,959,1,0,0,0,152,961,1,0,0,0,154,966,1,0,0,0,156,992,1,0,0,0,158,997,1,0,0,0,160,999,1,0,0,0,162,1007,1,0,0,0,164,1023,1,0,0,0,166,1029,1,0,0,0,168,1040,1,0,0,0,170,1042,1,0,0,0,172,1050,1,0,0,0,174,1054,1,0,0,0,176,1057,1,0,0,0,178,1071,1,0,0,0,180,1073,1,0,0,0,182,1085,1,0,0,0,184,1088,1,0,0,0,186,1100,1,0,0,0,188,1109,1,0,0,0,190,1137,1,0,0,0,192,1139,1,0,0,0,194,1143,1,0,0,0,196,1146,1,0,0,0,198,1150,1,0,0,0,200,1165,1,0,0,0,202,214,3,2,1,0,203,214,3,16,8,0,204,214,3,20,10,0,205,214,3,60,30,0,206,214,3,56,28,0,207,214,3,42,21,0,208,214,3,48,24,0,209,214,3,28,14,0,210,214,3,30,15,0,211,214,3,32,16,0,212,214,3,34,17,0,213,202,1,0,0,0,213,203,1,0,0,0,213,204,1,0,0,0,213,205,1,0,0,0,213,206,1,0,0,0,213,207,1,0,0,0,213,208,1,0,0,0,213,209,1,0,0,0,213,210,1,0,0,0,213,211,1,0,0,0,213,212,1,0,0,0,214,217,1,0,0,0,215,213,1,0,0,0,215,216,1,0,0,0,216,218,1,0,0,0,217,215,1,0,0,0,218,219,5,0,0,1,219,1,1,0,0,0,220,221,5,1,0,0,221,222,3,4,2,0,222,223,3,6,3,0,223,224,5,2,0,0,224,3,1,0,0,0,225,226,3,194,97,0,226,5,1,0,0,0,227,231,5,3,0,0,228,231,3,8,4,0,229,231,3,140,70,0,230,227,1,0,0,0,230,228,1,0,0,0,230,229,1,0,0,0,231,7,1,0,0,0,232,239,3,12,6,0,233,235,5,4,0,0,234,233,1,0,0,0,234,235,1,0,0,0,235,236,1,0,0,0,236,238,3,12,6,0,237,234,1,0,0,0,238,241,1,0,0,0,239,237,1,0,0,0,239,240,1,0,0,0,240,9,1,0,0,0,241,239,1,0,0,0,242,243,7,0,0,0,243,11,1,0,0,0,244,246,3,10,5,0,245,244,1,0,0,0,245,246,1,0,0,0,246,247,1,0,0,0,247,253,5,130,0,0,248,250,3,10,5,0,249,248,1,0,0,0,249,250,1,0,0,0,250,251,1,0,0,0,251,253,5,103,0,0,252,245,1,0,0,0,252,249,1,0,0,0,253,13,1,0,0,0,254,257,3,194,97,0,255,256,5,12,0,0,256,258,3,194,97,0,257,255,1,0,0,0,257,258,1,0,0,0,258,15,1,0,0,0,259,260,5,13,0,0,260,263,3,18,9,0,261,262,5,12,0,0,262,264,3,194,97,0,263,261,1,0,0,0,263,264,1,0,0,0,264,265,1,0,0,0,265,266,5,2,0,0,266,296,1,0,0,0,267,270,5,13,0,0,268,271,5,3,0,0,269,271,3,194,97,0,270,268,1,0,0,0,270,269,1,0,0,0,271,274,1,0,0,0,272,273,5,12,0,0,273,275,3,194,97,0,274,272,1,0,0,0,274,275,1,0,0,0,275,276,1,0,0,0,276,277,5,14,0,0,277,278,3,18,9,0,278,279,5,2,0,0,279,296,1,0,0,0,280,281,5,13,0,0,281,282,5,15,0,0,282,287,3,14,7,0,283,284,5,16,0,0,284,286,3,14,7,0,285,283,1,0,0,0,286,289,1,0,0,0,287,285,1,0,0,0,287,288,1,0,0,0,288,290,1,0,0,0,289,287,1,0,0,0,290,291,5,17,0,0,291,292,5,14,0,0,292,293,3,18,9,0,293,294,5,2,0,0,294,296,1,0,0,0,295,259,1,0,0,0,295,267,1,0,0,0,295,280,1,0,0,0,296,17,1,0,0,0,297,298,5,129,0,0,298,19,1,0,0,0,299,301,5,18,0,0,300,299,1,0,0,0,300,301,1,0,0,0,301,302,1,0,0,0,302,303,7,1,0,0,303,313,3,194,97,0,304,305,5,22,0,0,305,310,3,22,11,0,306,307,5,16,0,0,307,309,3,22,11,0,308,306,1,0,0,0,309,312,1,0,0,0,310,308,1,0,0,0,310,311,1,0,0,0,311,314,1,0,0,0,312,310,1,0,0,0,313,304,1,0,0,0,313,314,1,0,0,0,314,315,1,0,0,0,315,319,5,15,0,0,316,318,3,24,12,0,317,316,1,0,0,0,318,321,1,0,0,0,319,317,1,0,0,0,319,320,1,0,0,0,320,322,1,0,0,0,321,319,1,0,0,0,322,323,5,17,0,0,323,21,1,0,0,0,324,330,3,78,39,0,325,327,5,23,0,0,326,328,3,144,72,0,327,326,1,0,0,0,327,328,1,0,0,0,328,329,1,0,0,0,329,331,5,24,0,0,330,325,1,0,0,0,330,331,1,0,0,0,331,23,1,0,0,0,332,342,3,26,13,0,333,342,3,34,17,0,334,342,3,42,21,0,335,342,3,44,22,0,336,342,3,48,24,0,337,342,3,56,28,0,338,342,3,60,30,0,339,342,3,30,15,0,340,342,3,32,16,0,341,332,1,0,0,0,341,333,1,0,0,0,341,334,1,0,0,0,341,335,1,0,0,0,341,336,1,0,0,0,341,337,1,0,0,0,341,338,1,0,0,0,341,339,1,0,0,0,341,340,1,0,0,0,342,25,1,0,0,0,343,352,3,76,38,0,344,351,5,119,0,0,345,351,5,116,0,0,346,351,5,118,0,0,347,351,5,110,0,0,348,351,5,111,0,0,349,351,3,198,99,0,350,344,1,0,0,0,350,345,1,0,0,0,350,346,1,0,0,0,350,347,1,0,0,0,350,348,1,0,0,0,350,349,1,0,0,0,351,354,1,0,0,0,352,350,1,0,0,0,352,353,1,0,0,0,353,355,1,0,0,0,354,352,1,0,0,0,355,358,3,194,97,0,356,357,5,11,0,0,357,359,3,140,70,0,358,356,1,0,0,0,358,359,1,0,0,0,359,360,1,0,0,0,360,361,5,2,0,0,361,27,1,0,0,0,362,363,3,76,38,0,363,364,5,110,0,0,364,365,3,194,97,0,365,366,5,11,0,0,366,367,3,140,70,0,367,368,5,2,0,0,368,29,1,0,0,0,369,370,5,25,0,0,370,371,3,194,97,0,371,372,3,62,31,0,372,373,5,2,0,0,373,31,1,0,0,0,374,375,5,122,0,0,375,376,3,194,97,0,376,377,5,22,0,0,377,378,3,138,69,0,378,379,5,2,0,0,379,33,1,0,0,0,380,381,5,26,0,0,381,382,3,36,18,0,382,385,5,27,0,0,383,386,5,3,0,0,384,386,3,76,38,0,385,383,1,0,0,0,385,384,1,0,0,0,386,388,1,0,0,0,387,389,5,124,0,0,388,387,1,0,0,0,388,389,1,0,0,0,389,390,1,0,0,0,390,391,5,2,0,0,391,35,1,0,0,0,392,405,3,78,39,0,393,394,5,15,0,0,394,399,3,38,19,0,395,396,5,16,0,0,396,398,3,38,19,0,397,395,1,0,0,0,398,401,1,0,0,0,399,397,1,0,0,0,399,400,1,0,0,0,400,402,1,0,0,0,401,399,1,0,0,0,402,403,5,17,0,0,403,405,1,0,0,0,404,392,1,0,0,0,404,393,1,0,0,0,405,37,1,0,0,0,406,409,3,78,39,0,407,408,5,12,0,0,408,410,3,40,20,0,409,407,1,0,0,0,409,410,1,0,0,0,410,39,1,0,0,0,411,412,7,2,0,0,412,41,1,0,0,0,413,414,5,36,0,0,414,415,3,194,97,0,415,426,5,15,0,0,416,417,3,74,37,0,417,423,5,2,0,0,418,419,3,74,37,0,419,420,5,2,0,0,420,422,1,0,0,0,421,418,1,0,0,0,422,425,1,0,0,0,423,421,1,0,0,0,423,424,1,0,0,0,424,427,1,0,0,0,425,423,1,0,0,0,426,416,1,0,0,0,426,427,1,0,0,0,427,428,1,0,0,0,428,429,5,17,0,0,429,43,1,0,0,0,430,431,5,37,0,0,431,433,3,194,97,0,432,434,3,62,31,0,433,432,1,0,0,0,433,434,1,0,0,0,434,439,1,0,0,0,435,438,5,120,0,0,436,438,3,198,99,0,437,435,1,0,0,0,437,436,1,0,0,0,438,441,1,0,0,0,439,437,1,0,0,0,439,440,1,0,0,0,440,444,1,0,0,0,441,439,1,0,0,0,442,445,5,2,0,0,443,445,3,94,47,0,444,442,1,0,0,0,444,443,1,0,0,0,445,45,1,0,0,0,446,452,3,194,97,0,447,449,5,23,0,0,448,450,3,144,72,0,449,448,1,0,0,0,449,450,1,0,0,0,450,451,1,0,0,0,451,453,5,24,0,0,452,447,1,0,0,0,452,453,1,0,0,0,453,47,1,0,0,0,454,455,3,50,25,0,455,456,3,62,31,0,456,458,3,54,27,0,457,459,3,52,26,0,458,457,1,0,0,0,458,459,1,0,0,0,459,462,1,0,0,0,460,463,5,2,0,0,461,463,3,94,47,0,462,460,1,0,0,0,462,461,1,0,0,0,463,49,1,0,0,0,464,466,5,38,0,0,465,467,3,194,97,0,466,465,1,0,0,0,466,467,1,0,0,0,467,472,1,0,0,0,468,472,5,125,0,0,469,472,5,126,0,0,470,472,5,127,0,0,471,464,1,0,0,0,471,468,1,0,0,0,471,469,1,0,0,0,471,470,1,0,0,0,472,51,1,0,0,0,473,474,5,39,0,0,474,475,3,62,31,0,475,53,1,0,0,0,476,485,5,114,0,0,477,485,5,119,0,0,478,485,5,116,0,0,479,485,5,118,0,0,480,485,5,120,0,0,481,485,3,92,46,0,482,485,3,46,23,0,483,485,3,198,99,0,484,476,1,0,0,0,484,477,1,0,0,0,484,478,1,0,0,0,484,479,1,0,0,0,484,480,1,0,0,0,484,481,1,0,0,0,484,482,1,0,0,0,484,483,1,0,0,0,485,488,1,0,0,0,486,484,1,0,0,0,486,487,1,0,0,0,487,55,1,0,0,0,488,486,1,0,0,0,489,490,5,40,0,0,490,491,3,194,97,0,491,493,3,66,33,0,492,494,5,108,0,0,493,492,1,0,0,0,493,494,1,0,0,0,494,495,1,0,0,0,495,496,5,2,0,0,496,57,1,0,0,0,497,498,3,194,97,0,498,59,1,0,0,0,499,500,5,41,0,0,500,501,3,194,97,0,501,503,5,15,0,0,502,504,3,58,29,0,503,502,1,0,0,0,503,504,1,0,0,0,504,509,1,0,0,0,505,506,5,16,0,0,506,508,3,58,29,0,507,505,1,0,0,0,508,511,1,0,0,0,509,507,1,0,0,0,509,510,1,0,0,0,510,512,1,0,0,0,511,509,1,0,0,0,512,513,5,17,0,0,513,61,1,0,0,0,514,523,5,23,0,0,515,520,3,64,32,0,516,517,5,16,0,0,517,519,3,64,32,0,518,516,1,0,0,0,519,522,1,0,0,0,520,518,1,0,0,0,520,521,1,0,0,0,521,524,1,0,0,0,522,520,1,0,0,0,523,515,1,0,0,0,523,524,1,0,0,0,524,525,1,0,0,0,525,526,5,24,0,0,526,63,1,0,0,0,527,529,3,76,38,0,528,530,3,90,45,0,529,528,1,0,0,0,529,530,1,0,0,0,530,532,1,0,0,0,531,533,3,194,97,0,532,531,1,0,0,0,532,533,1,0,0,0,533,65,1,0,0,0,534,543,5,23,0,0,535,540,3,68,34,0,536,537,5,16,0,0,537,539,3,68,34,0,538,536,1,0,0,0,539,542,1,0,0,0,540,538,1,0,0,0,540,541,1,0,0,0,541,544,1,0,0,0,542,540,1,0,0,0,543,535,1,0,0,0,543,544,1,0,0,0,544,545,1,0,0,0,545,546,5,24,0,0,546,67,1,0,0,0,547,549,3,76,38,0,548,550,5,115,0,0,549,548,1,0,0,0,549,550,1,0,0,0,550,552,1,0,0,0,551,553,3,194,97,0,552,551,1,0,0,0,552,553,1,0,0,0,553,69,1,0,0,0,554,563,5,23,0,0,555,560,3,72,36,0,556,557,5,16,0,0,557,559,3,72,36,0,558,556,1,0,0,0,559,562,1,0,0,0,560,558,1,0,0,0,560,561,1,0,0,0,561,564,1,0,0,0,562,560,1,0,0,0,563,555,1,0,0,0,563,564,1,0,0,0,564,565,1,0,0,0,565,566,5,24,0,0,566,71,1,0,0,0,567,569,3,76,38,0,568,570,3,90,45,0,569,568,1,0,0,0,569,570,1,0,0,0,570,73,1,0,0,0,571,573,3,76,38,0,572,574,3,90,45,0,573,572,1,0,0,0,573,574,1,0,0,0,574,575,1,0,0,0,575,576,3,194,97,0,576,75,1,0,0,0,577,578,6,38,-1,0,578,585,3,138,69,0,579,585,3,78,39,0,580,585,3,82,41,0,581,585,3,88,44,0,582,583,5,44,0,0,583,585,5,117,0,0,584,577,1,0,0,0,584,579,1,0,0,0,584,580,1,0,0,0,584,581,1,0,0,0,584,582,1,0,0,0,585,594,1,0,0,0,586,587,10,3,0,0,587,589,5,42,0,0,588,590,3,140,70,0,589,588,1,0,0,0,589,590,1,0,0,0,590,591,1,0,0,0,591,593,5,43,0,0,592,586,1,0,0,0,593,596,1,0,0,0,594,592,1,0,0,0,594,595,1,0,0,0,595,77,1,0,0,0,596,594,1,0,0,0,597,602,3,194,97,0,598,599,5,45,0,0,599,601,3,194,97,0,600,598,1,0,0,0,601,604,1,0,0,0,602,600,1,0,0,0,602,603,1,0,0,0,603,79,1,0,0,0,604,602,1,0,0,0,605,608,3,138,69,0,606,608,3,78,39,0,607,605,1,0,0,0,607,606,1,0,0,0,608,81,1,0,0,0,609,610,5,46,0,0,610,611,5,23,0,0,611,613,3,80,40,0,612,614,3,84,42,0,613,612,1,0,0,0,613,614,1,0,0,0,614,615,1,0,0,0,615,616,5,47,0,0,616,618,3,76,38,0,617,619,3,86,43,0,618,617,1,0,0,0,618,619,1,0,0,0,619,620,1,0,0,0,620,621,5,24,0,0,621,83,1,0,0,0,622,623,3,194,97,0,623,85,1,0,0,0,624,625,3,194,97,0,625,87,1,0,0,0,626,627,5,38,0,0,627,633,3,70,35,0,628,632,5,116,0,0,629,632,5,114,0,0,630,632,3,92,46,0,631,628,1,0,0,0,631,629,1,0,0,0,631,630,1,0,0,0,632,635,1,0,0,0,633,631,1,0,0,0,633,634,1,0,0,0,634,638,1,0,0,0,635,633,1,0,0,0,636,637,5,39,0,0,637,639,3,70,35,0,638,636,1,0,0,0,638,639,1,0,0,0,639,89,1,0,0,0,640,641,7,3,0,0,641,91,1,0,0,0,642,643,7,4,0,0,643,93,1,0,0,0,644,648,5,15,0,0,645,647,3,96,48,0,646,645,1,0,0,0,647,650,1,0,0,0,648,646,1,0,0,0,648,649,1,0,0,0,649,651,1,0,0,0,650,648,1,0,0,0,651,652,5,17,0,0,652,95,1,0,0,0,653,669,3,100,50,0,654,669,3,102,51,0,655,669,3,106,53,0,656,669,3,112,56,0,657,669,3,94,47,0,658,669,3,114,57,0,659,669,3,118,59,0,660,669,3,120,60,0,661,669,3,122,61,0,662,669,3,124,62,0,663,669,3,126,63,0,664,669,3,128,64,0,665,669,3,108,54,0,666,669,3,110,55,0,667,669,3,130,65,0,668,653,1,0,0,0,668,654,1,0,0,0,668,655,1,0,0,0,668,656,1,0,0,0,668,657,1,0,0,0,668,658,1,0,0,0,668,659,1,0,0,0,668,660,1,0,0,0,668,661,1,0,0,0,668,662,1,0,0,0,668,663,1,0,0,0,668,664,1,0,0,0,668,665,1,0,0,0,668,666,1,0,0,0,668,667,1,0,0,0,669,97,1,0,0,0,670,671,3,140,70,0,671,672,5,2,0,0,672,99,1,0,0,0,673,674,5,51,0,0,674,675,5,23,0,0,675,676,3,140,70,0,676,677,5,24,0,0,677,680,3,96,48,0,678,679,5,52,0,0,679,681,3,96,48,0,680,678,1,0,0,0,680,681,1,0,0,0,681,101,1,0,0,0,682,683,5,53,0,0,683,685,3,140,70,0,684,686,3,52,26,0,685,684,1,0,0,0,685,686,1,0,0,0,686,687,1,0,0,0,687,689,3,94,47,0,688,690,3,104,52,0,689,688,1,0,0,0,690,691,1,0,0,0,691,689,1,0,0,0,691,692,1,0,0,0,692,103,1,0,0,0,693,698,5,54,0,0,694,696,3,194,97,0,695,694,1,0,0,0,695,696,1,0,0,0,696,697,1,0,0,0,697,699,3,62,31,0,698,695,1,0,0,0,698,699,1,0,0,0,699,700,1,0,0,0,700,701,3,94,47,0,701,105,1,0,0,0,702,703,5,55,0,0,703,704,5,23,0,0,704,705,3,140,70,0,705,706,5,24,0,0,706,707,3,96,48,0,707,107,1,0,0,0,708,711,3,132,66,0,709,711,3,98,49,0,710,708,1,0,0,0,710,709,1,0,0,0,711,109,1,0,0,0,712,713,5,56,0,0,713,714,3,94,47,0,714,111,1,0,0,0,715,716,5,27,0,0,716,719,5,23,0,0,717,720,3,108,54,0,718,720,5,2,0,0,719,717,1,0,0,0,719,718,1,0,0,0,720,723,1,0,0,0,721,724,3,98,49,0,722,724,5,2,0,0,723,721,1,0,0,0,723,722,1,0,0,0,724,726,1,0,0,0,725,727,3,140,70,0,726,725,1,0,0,0,726,727,1,0,0,0,727,728,1,0,0,0,728,729,5,24,0,0,729,730,3,96,48,0,730,113,1,0,0,0,731,733,5,57,0,0,732,734,5,129,0,0,733,732,1,0,0,0,733,734,1,0,0,0,734,739,1,0,0,0,735,736,5,23,0,0,736,737,3,116,58,0,737,738,5,24,0,0,738,740,1,0,0,0,739,735,1,0,0,0,739,740,1,0,0,0,740,741,1,0,0,0,741,742,3,154,77,0,742,115,1,0,0,0,743,744,3,200,100,0,744,117,1,0,0,0,745,746,5,58,0,0,746,747,3,96,48,0,747,748,5,55,0,0,748,749,5,23,0,0,749,750,3,140,70,0,750,751,5,24,0,0,751,752,5,2,0,0,752,119,1,0,0,0,753,754,5,112,0,0,754,755,5,2,0,0,755,121,1,0,0,0,756,757,5,109,0,0,757,758,5,2,0,0,758,123,1,0,0,0,759,761,5,59,0,0,760,762,3,140,70,0,761,760,1,0,0,0,761,762,1,0,0,0,762,763,1,0,0,0,763,764,5,2,0,0,764,125,1,0,0,0,765,766,5,60,0,0,766,767,5,2,0,0,767,127,1,0,0,0,768,769,5,61,0,0,769,770,3,152,76,0,770,771,5,2,0,0,771,129,1,0,0,0,772,773,5,62,0,0,773,774,3,152,76,0,774,775,5,2,0,0,775,131,1,0,0,0,776,777,5,63,0,0,777,784,3,136,68,0,778,784,3,74,37,0,779,780,5,23,0,0,780,781,3,134,67,0,781,782,5,24,0,0,782,784,1,0,0,0,783,776,1,0,0,0,783,778,1,0,0,0,783,779,1,0,0,0,784,787,1,0,0,0,785,786,5,11,0,0,786,788,3,140,70,0,787,785,1,0,0,0,787,788,1,0,0,0,788,789,1,0,0,0,789,790,5,2,0,0,790,133,1,0,0,0,791,793,3,74,37,0,792,791,1,0,0,0,792,793,1,0,0,0,793,800,1,0,0,0,794,796,5,16,0,0,795,797,3,74,37,0,796,795,1,0,0,0,796,797,1,0,0,0,797,799,1,0,0,0,798,794,1,0,0,0,799,802,1,0,0,0,800,798,1,0,0,0,800,801,1,0,0,0,801,135,1,0,0,0,802,800,1,0,0,0,803,810,5,23,0,0,804,806,3,194,97,0,805,804,1,0,0,0,805,806,1,0,0,0,806,807,1,0,0,0,807,809,5,16,0,0,808,805,1,0,0,0,809,812,1,0,0,0,810,808,1,0,0,0,810,811,1,0,0,0,811,814,1,0,0,0,812,810,1,0,0,0,813,815,3,194,97,0,814,813,1,0,0,0,814,815,1,0,0,0,815,816,1,0,0,0,816,817,5,24,0,0,817,137,1,0,0,0,818,819,7,5,0,0,819,139,1,0,0,0,820,821,6,70,-1,0,821,822,5,69,0,0,822,839,3,76,38,0,823,824,5,23,0,0,824,825,3,140,70,0,825,826,5,24,0,0,826,839,1,0,0,0,827,828,7,6,0,0,828,839,3,140,70,19,829,830,7,7,0,0,830,839,3,140,70,18,831,832,5,71,0,0,832,839,3,140,70,17,833,834,5,72,0,0,834,839,3,140,70,16,835,836,5,6,0,0,836,839,3,140,70,15,837,839,3,142,71,0,838,820,1,0,0,0,838,823,1,0,0,0,838,827,1,0,0,0,838,829,1,0,0,0,838,831,1,0,0,0,838,833,1,0,0,0,838,835,1,0,0,0,838,837,1,0,0,0,839,914,1,0,0,0,840,841,10,14,0,0,841,842,5,73,0,0,842,913,3,140,70,14,843,844,10,13,0,0,844,845,7,8,0,0,845,913,3,140,70,14,846,847,10,12,0,0,847,848,7,7,0,0,848,913,3,140,70,13,849,850,10,11,0,0,850,851,7,9,0,0,851,913,3,140,70,12,852,853,10,10,0,0,853,854,5,29,0,0,854,913,3,140,70,11,855,856,10,9,0,0,856,857,5,5,0,0,857,913,3,140,70,10,858,859,10,8,0,0,859,860,5,28,0,0,860,913,3,140,70,9,861,862,10,7,0,0,862,863,7,10,0,0,863,913,3,140,70,8,864,865,10,6,0,0,865,866,7,11,0,0,866,913,3,140,70,7,867,868,10,5,0,0,868,869,5,76,0,0,869,913,3,140,70,6,870,871,10,4,0,0,871,872,5,4,0,0,872,913,3,140,70,5,873,874,10,3,0,0,874,875,5,77,0,0,875,876,3,140,70,0,876,877,5,70,0,0,877,878,3,140,70,3,878,913,1,0,0,0,879,880,10,2,0,0,880,881,7,12,0,0,881,913,3,140,70,3,882,883,10,27,0,0,883,913,7,6,0,0,884,885,10,25,0,0,885,886,5,42,0,0,886,887,3,140,70,0,887,888,5,43,0,0,888,913,1,0,0,0,889,890,10,24,0,0,890,892,5,42,0,0,891,893,3,140,70,0,892,891,1,0,0,0,892,893,1,0,0,0,893,894,1,0,0,0,894,896,5,70,0,0,895,897,3,140,70,0,896,895,1,0,0,0,896,897,1,0,0,0,897,898,1,0,0,0,898,913,5,43,0,0,899,900,10,23,0,0,900,901,5,45,0,0,901,913,3,194,97,0,902,903,10,22,0,0,903,904,5,15,0,0,904,905,3,146,73,0,905,906,5,17,0,0,906,913,1,0,0,0,907,908,10,21,0,0,908,909,5,23,0,0,909,910,3,150,75,0,910,911,5,24,0,0,911,913,1,0,0,0,912,840,1,0,0,0,912,843,1,0,0,0,912,846,1,0,0,0,912,849,1,0,0,0,912,852,1,0,0,0,912,855,1,0,0,0,912,858,1,0,0,0,912,861,1,0,0,0,912,864,1,0,0,0,912,867,1,0,0,0,912,870,1,0,0,0,912,873,1,0,0,0,912,879,1,0,0,0,912,882,1,0,0,0,912,884,1,0,0,0,912,889,1,0,0,0,912,899,1,0,0,0,912,902,1,0,0,0,912,907,1,0,0,0,913,916,1,0,0,0,914,912,1,0,0,0,914,915,1,0,0,0,915,141,1,0,0,0,916,914,1,0,0,0,917,927,5,102,0,0,918,927,3,192,96,0,919,927,3,196,98,0,920,927,3,200,100,0,921,927,3,194,97,0,922,927,5,122,0,0,923,927,5,117,0,0,924,927,3,190,95,0,925,927,3,76,38,0,926,917,1,0,0,0,926,918,1,0,0,0,926,919,1,0,0,0,926,920,1,0,0,0,926,921,1,0,0,0,926,922,1,0,0,0,926,923,1,0,0,0,926,924,1,0,0,0,926,925,1,0,0,0,927,143,1,0,0,0,928,933,3,140,70,0,929,930,5,16,0,0,930,932,3,140,70,0,931,929,1,0,0,0,932,935,1,0,0,0,933,931,1,0,0,0,933,934,1,0,0,0,934,145,1,0,0,0,935,933,1,0,0,0,936,941,3,148,74,0,937,938,5,16,0,0,938,940,3,148,74,0,939,937,1,0,0,0,940,943,1,0,0,0,941,939,1,0,0,0,941,942,1,0,0,0,942,945,1,0,0,0,943,941,1,0,0,0,944,946,5,16,0,0,945,944,1,0,0,0,945,946,1,0,0,0,946,147,1,0,0,0,947,948,3,194,97,0,948,949,5,70,0,0,949,950,3,140,70,0,950,149,1,0,0,0,951,953,5,15,0,0,952,954,3,146,73,0,953,952,1,0,0,0,953,954,1,0,0,0,954,955,1,0,0,0,955,960,5,17,0,0,956,958,3,144,72,0,957,956,1,0,0,0,957,958,1,0,0,0,958,960,1,0,0,0,959,951,1,0,0,0,959,957,1,0,0,0,960,151,1,0,0,0,961,962,3,140,70,0,962,963,5,23,0,0,963,964,3,150,75,0,964,965,5,24,0,0,965,153,1,0,0,0,966,970,5,15,0,0,967,969,3,156,78,0,968,967,1,0,0,0,969,972,1,0,0,0,970,968,1,0,0,0,970,971,1,0,0,0,971,973,1,0,0,0,972,970,1,0,0,0,973,974,5,17,0,0,974,155,1,0,0,0,975,993,3,194,97,0,976,993,3,154,77,0,977,993,3,158,79,0,978,993,3,164,82,0,979,993,3,166,83,0,980,993,3,172,86,0,981,993,3,174,87,0,982,993,3,176,88,0,983,993,3,180,90,0,984,993,3,184,92,0,985,993,3,186,93,0,986,993,5,109,0,0,987,993,5,112,0,0,988,993,5,113,0,0,989,993,3,192,96,0,990,993,3,200,100,0,991,993,3,196,98,0,992,975,1,0,0,0,992,976,1,0,0,0,992,977,1,0,0,0,992,978,1,0,0,0,992,979,1,0,0,0,992,980,1,0,0,0,992,981,1,0,0,0,992,982,1,0,0,0,992,983,1,0,0,0,992,984,1,0,0,0,992,985,1,0,0,0,992,986,1,0,0,0,992,987,1,0,0,0,992,988,1,0,0,0,992,989,1,0,0,0,992,990,1,0,0,0,992,991,1,0,0,0,993,157,1,0,0,0,994,998,3,162,81,0,995,998,3,188,94,0,996,998,3,160,80,0,997,994,1,0,0,0,997,995,1,0,0,0,997,996,1,0,0,0,998,159,1,0,0,0,999,1e3,3,194,97,0,1e3,1001,5,45,0,0,1001,1002,3,194,97,0,1002,161,1,0,0,0,1003,1008,5,59,0,0,1004,1008,5,44,0,0,1005,1008,5,66,0,0,1006,1008,3,194,97,0,1007,1003,1,0,0,0,1007,1004,1,0,0,0,1007,1005,1,0,0,0,1007,1006,1,0,0,0,1008,1021,1,0,0,0,1009,1011,5,23,0,0,1010,1012,3,158,79,0,1011,1010,1,0,0,0,1011,1012,1,0,0,0,1012,1017,1,0,0,0,1013,1014,5,16,0,0,1014,1016,3,158,79,0,1015,1013,1,0,0,0,1016,1019,1,0,0,0,1017,1015,1,0,0,0,1017,1018,1,0,0,0,1018,1020,1,0,0,0,1019,1017,1,0,0,0,1020,1022,5,24,0,0,1021,1009,1,0,0,0,1021,1022,1,0,0,0,1022,163,1,0,0,0,1023,1024,5,88,0,0,1024,1027,3,168,84,0,1025,1026,5,89,0,0,1026,1028,3,158,79,0,1027,1025,1,0,0,0,1027,1028,1,0,0,0,1028,165,1,0,0,0,1029,1030,3,168,84,0,1030,1031,5,89,0,0,1031,1032,3,158,79,0,1032,167,1,0,0,0,1033,1041,3,194,97,0,1034,1041,3,160,80,0,1035,1041,3,170,85,0,1036,1037,5,23,0,0,1037,1038,3,170,85,0,1038,1039,5,24,0,0,1039,1041,1,0,0,0,1040,1033,1,0,0,0,1040,1034,1,0,0,0,1040,1035,1,0,0,0,1040,1036,1,0,0,0,1041,169,1,0,0,0,1042,1047,3,194,97,0,1043,1044,5,16,0,0,1044,1046,3,194,97,0,1045,1043,1,0,0,0,1046,1049,1,0,0,0,1047,1045,1,0,0,0,1047,1048,1,0,0,0,1048,171,1,0,0,0,1049,1047,1,0,0,0,1050,1051,3,158,79,0,1051,1052,5,90,0,0,1052,1053,3,194,97,0,1053,173,1,0,0,0,1054,1055,3,194,97,0,1055,1056,5,70,0,0,1056,175,1,0,0,0,1057,1058,5,91,0,0,1058,1062,3,158,79,0,1059,1061,3,178,89,0,1060,1059,1,0,0,0,1061,1064,1,0,0,0,1062,1060,1,0,0,0,1062,1063,1,0,0,0,1063,177,1,0,0,0,1064,1062,1,0,0,0,1065,1066,5,92,0,0,1066,1067,3,188,94,0,1067,1068,3,154,77,0,1068,1072,1,0,0,0,1069,1070,5,93,0,0,1070,1072,3,154,77,0,1071,1065,1,0,0,0,1071,1069,1,0,0,0,1072,179,1,0,0,0,1073,1074,5,38,0,0,1074,1075,3,194,97,0,1075,1077,5,23,0,0,1076,1078,3,170,85,0,1077,1076,1,0,0,0,1077,1078,1,0,0,0,1078,1079,1,0,0,0,1079,1081,5,24,0,0,1080,1082,3,182,91,0,1081,1080,1,0,0,0,1081,1082,1,0,0,0,1082,1083,1,0,0,0,1083,1084,3,154,77,0,1084,181,1,0,0,0,1085,1086,5,94,0,0,1086,1087,3,170,85,0,1087,183,1,0,0,0,1088,1091,5,27,0,0,1089,1092,3,154,77,0,1090,1092,3,158,79,0,1091,1089,1,0,0,0,1091,1090,1,0,0,0,1092,1093,1,0,0,0,1093,1096,3,158,79,0,1094,1097,3,154,77,0,1095,1097,3,158,79,0,1096,1094,1,0,0,0,1096,1095,1,0,0,0,1097,1098,1,0,0,0,1098,1099,3,154,77,0,1099,185,1,0,0,0,1100,1101,5,51,0,0,1101,1102,3,158,79,0,1102,1103,3,154,77,0,1103,187,1,0,0,0,1104,1110,3,200,100,0,1105,1110,5,103,0,0,1106,1110,5,104,0,0,1107,1110,3,196,98,0,1108,1110,5,102,0,0,1109,1104,1,0,0,0,1109,1105,1,0,0,0,1109,1106,1,0,0,0,1109,1107,1,0,0,0,1109,1108,1,0,0,0,1110,189,1,0,0,0,1111,1113,5,23,0,0,1112,1114,3,140,70,0,1113,1112,1,0,0,0,1113,1114,1,0,0,0,1114,1121,1,0,0,0,1115,1117,5,16,0,0,1116,1118,3,140,70,0,1117,1116,1,0,0,0,1117,1118,1,0,0,0,1118,1120,1,0,0,0,1119,1115,1,0,0,0,1120,1123,1,0,0,0,1121,1119,1,0,0,0,1121,1122,1,0,0,0,1122,1124,1,0,0,0,1123,1121,1,0,0,0,1124,1138,5,24,0,0,1125,1134,5,42,0,0,1126,1131,3,140,70,0,1127,1128,5,16,0,0,1128,1130,3,140,70,0,1129,1127,1,0,0,0,1130,1133,1,0,0,0,1131,1129,1,0,0,0,1131,1132,1,0,0,0,1132,1135,1,0,0,0,1133,1131,1,0,0,0,1134,1126,1,0,0,0,1134,1135,1,0,0,0,1135,1136,1,0,0,0,1136,1138,5,43,0,0,1137,1111,1,0,0,0,1137,1125,1,0,0,0,1138,191,1,0,0,0,1139,1141,7,13,0,0,1140,1142,5,105,0,0,1141,1140,1,0,0,0,1141,1142,1,0,0,0,1142,193,1,0,0,0,1143,1144,7,14,0,0,1144,195,1,0,0,0,1145,1147,5,106,0,0,1146,1145,1,0,0,0,1147,1148,1,0,0,0,1148,1146,1,0,0,0,1148,1149,1,0,0,0,1149,197,1,0,0,0,1150,1162,5,96,0,0,1151,1152,5,23,0,0,1152,1157,3,78,39,0,1153,1154,5,16,0,0,1154,1156,3,78,39,0,1155,1153,1,0,0,0,1156,1159,1,0,0,0,1157,1155,1,0,0,0,1157,1158,1,0,0,0,1158,1160,1,0,0,0,1159,1157,1,0,0,0,1160,1161,5,24,0,0,1161,1163,1,0,0,0,1162,1151,1,0,0,0,1162,1163,1,0,0,0,1163,199,1,0,0,0,1164,1166,5,129,0,0,1165,1164,1,0,0,0,1166,1167,1,0,0,0,1167,1165,1,0,0,0,1167,1168,1,0,0,0,1168,201,1,0,0,0,130,213,215,230,234,239,245,249,252,257,263,270,274,287,295,300,310,313,319,327,330,341,350,352,358,385,388,399,404,409,423,426,433,437,439,444,449,452,458,462,466,471,484,486,493,503,509,520,523,529,532,540,543,549,552,560,563,569,573,584,589,594,602,607,613,618,631,633,638,648,668,680,685,691,695,698,710,719,723,726,733,739,761,783,787,792,796,800,805,810,814,838,892,896,912,914,926,933,941,945,953,957,959,970,992,997,1007,1011,1017,1021,1027,1040,1047,1062,1071,1077,1081,1091,1096,1109,1113,1117,1121,1131,1134,1137,1141,1148,1157,1162,1167],R.DecisionsToDFA=k._ATN.decisionToState.map(((t,e)=>new h(t,e)));var C=R,A=class extends x{constructor(t,e,r){super(e,r),this.parser=t}EOF(){return this.getToken(R.EOF,0)}pragmaDirective_list(){return this.getTypedRuleContexts(K)}pragmaDirective(t){return this.getTypedRuleContext(K,t)}importDirective_list(){return this.getTypedRuleContexts(q)}importDirective(t){return this.getTypedRuleContext(q,t)}contractDefinition_list(){return this.getTypedRuleContexts(F)}contractDefinition(t){return this.getTypedRuleContext(F,t)}enumDefinition_list(){return this.getTypedRuleContexts(nt)}enumDefinition(t){return this.getTypedRuleContext(nt,t)}eventDefinition_list(){return this.getTypedRuleContexts(st)}eventDefinition(t){return this.getTypedRuleContext(st,t)}structDefinition_list(){return this.getTypedRuleContexts(X)}structDefinition(t){return this.getTypedRuleContext(X,t)}functionDefinition_list(){return this.getTypedRuleContexts(Z)}functionDefinition(t){return this.getTypedRuleContext(Z,t)}fileLevelConstant_list(){return this.getTypedRuleContexts(V)}fileLevelConstant(t){return this.getTypedRuleContext(V,t)}customErrorDefinition_list(){return this.getTypedRuleContexts(H)}customErrorDefinition(t){return this.getTypedRuleContext(H,t)}typeDefinition_list(){return this.getTypedRuleContexts(j)}typeDefinition(t){return this.getTypedRuleContext(j,t)}usingForDeclaration_list(){return this.getTypedRuleContexts($)}usingForDeclaration(t){return this.getTypedRuleContext($,t)}get ruleIndex(){return R.RULE_sourceUnit}enterRule(t){t.enterSourceUnit&&t.enterSourceUnit(this)}exitRule(t){t.exitSourceUnit&&t.exitSourceUnit(this)}accept(t){return t.visitSourceUnit?t.visitSourceUnit(this):t.visitChildren(this)}},K=class extends x{constructor(t,e,r){super(e,r),this.parser=t}pragmaName(){return this.getTypedRuleContext(L,0)}pragmaValue(){return this.getTypedRuleContext(I,0)}get ruleIndex(){return R.RULE_pragmaDirective}enterRule(t){t.enterPragmaDirective&&t.enterPragmaDirective(this)}exitRule(t){t.exitPragmaDirective&&t.exitPragmaDirective(this)}accept(t){return t.visitPragmaDirective?t.visitPragmaDirective(this):t.visitChildren(this)}},L=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_pragmaName}enterRule(t){t.enterPragmaName&&t.enterPragmaName(this)}exitRule(t){t.exitPragmaName&&t.exitPragmaName(this)}accept(t){return t.visitPragmaName?t.visitPragmaName(this):t.visitChildren(this)}},I=class extends x{constructor(t,e,r){super(e,r),this.parser=t}version(){return this.getTypedRuleContext(N,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_pragmaValue}enterRule(t){t.enterPragmaValue&&t.enterPragmaValue(this)}exitRule(t){t.exitPragmaValue&&t.exitPragmaValue(this)}accept(t){return t.visitPragmaValue?t.visitPragmaValue(this):t.visitChildren(this)}},N=class extends x{constructor(t,e,r){super(e,r),this.parser=t}versionConstraint_list(){return this.getTypedRuleContexts(O)}versionConstraint(t){return this.getTypedRuleContext(O,t)}get ruleIndex(){return R.RULE_version}enterRule(t){t.enterVersion&&t.enterVersion(this)}exitRule(t){t.exitVersion&&t.exitVersion(this)}accept(t){return t.visitVersion?t.visitVersion(this):t.visitChildren(this)}},D=class extends x{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return R.RULE_versionOperator}enterRule(t){t.enterVersionOperator&&t.enterVersionOperator(this)}exitRule(t){t.exitVersionOperator&&t.exitVersionOperator(this)}accept(t){return t.visitVersionOperator?t.visitVersionOperator(this):t.visitChildren(this)}},O=class extends x{constructor(t,e,r){super(e,r),this.parser=t}VersionLiteral(){return this.getToken(R.VersionLiteral,0)}versionOperator(){return this.getTypedRuleContext(D,0)}DecimalNumber(){return this.getToken(R.DecimalNumber,0)}get ruleIndex(){return R.RULE_versionConstraint}enterRule(t){t.enterVersionConstraint&&t.enterVersionConstraint(this)}exitRule(t){t.exitVersionConstraint&&t.exitVersionConstraint(this)}accept(t){return t.visitVersionConstraint?t.visitVersionConstraint(this):t.visitChildren(this)}},P=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(we)}identifier(t){return this.getTypedRuleContext(we,t)}get ruleIndex(){return R.RULE_importDeclaration}enterRule(t){t.enterImportDeclaration&&t.enterImportDeclaration(this)}exitRule(t){t.exitImportDeclaration&&t.exitImportDeclaration(this)}accept(t){return t.visitImportDeclaration?t.visitImportDeclaration(this):t.visitChildren(this)}},q=class extends x{constructor(t,e,r){super(e,r),this.parser=t}importPath(){return this.getTypedRuleContext(Y,0)}identifier_list(){return this.getTypedRuleContexts(we)}identifier(t){return this.getTypedRuleContext(we,t)}importDeclaration_list(){return this.getTypedRuleContexts(P)}importDeclaration(t){return this.getTypedRuleContext(P,t)}get ruleIndex(){return R.RULE_importDirective}enterRule(t){t.enterImportDirective&&t.enterImportDirective(this)}exitRule(t){t.exitImportDirective&&t.exitImportDirective(this)}accept(t){return t.visitImportDirective?t.visitImportDirective(this):t.visitChildren(this)}},Y=class extends x{constructor(t,e,r){super(e,r),this.parser=t}StringLiteralFragment(){return this.getToken(R.StringLiteralFragment,0)}get ruleIndex(){return R.RULE_importPath}enterRule(t){t.enterImportPath&&t.enterImportPath(this)}exitRule(t){t.exitImportPath&&t.exitImportPath(this)}accept(t){return t.visitImportPath?t.visitImportPath(this):t.visitChildren(this)}},F=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}inheritanceSpecifier_list(){return this.getTypedRuleContexts(M)}inheritanceSpecifier(t){return this.getTypedRuleContext(M,t)}contractPart_list(){return this.getTypedRuleContexts(U)}contractPart(t){return this.getTypedRuleContext(U,t)}get ruleIndex(){return R.RULE_contractDefinition}enterRule(t){t.enterContractDefinition&&t.enterContractDefinition(this)}exitRule(t){t.exitContractDefinition&&t.exitContractDefinition(this)}accept(t){return t.visitContractDefinition?t.visitContractDefinition(this):t.visitChildren(this)}},M=class extends x{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}expressionList(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return R.RULE_inheritanceSpecifier}enterRule(t){t.enterInheritanceSpecifier&&t.enterInheritanceSpecifier(this)}exitRule(t){t.exitInheritanceSpecifier&&t.exitInheritanceSpecifier(this)}accept(t){return t.visitInheritanceSpecifier?t.visitInheritanceSpecifier(this):t.visitChildren(this)}},U=class extends x{constructor(t,e,r){super(e,r),this.parser=t}stateVariableDeclaration(){return this.getTypedRuleContext(B,0)}usingForDeclaration(){return this.getTypedRuleContext($,0)}structDefinition(){return this.getTypedRuleContext(X,0)}modifierDefinition(){return this.getTypedRuleContext(Q,0)}functionDefinition(){return this.getTypedRuleContext(Z,0)}eventDefinition(){return this.getTypedRuleContext(st,0)}enumDefinition(){return this.getTypedRuleContext(nt,0)}customErrorDefinition(){return this.getTypedRuleContext(H,0)}typeDefinition(){return this.getTypedRuleContext(j,0)}get ruleIndex(){return R.RULE_contractPart}enterRule(t){t.enterContractPart&&t.enterContractPart(this)}exitRule(t){t.exitContractPart&&t.exitContractPart(this)}accept(t){return t.visitContractPart?t.visitContractPart(this):t.visitChildren(this)}},B=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}identifier(){return this.getTypedRuleContext(we,0)}PublicKeyword_list(){return this.getTokens(R.PublicKeyword)}PublicKeyword(t){return this.getToken(R.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(R.InternalKeyword)}InternalKeyword(t){return this.getToken(R.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(R.PrivateKeyword)}PrivateKeyword(t){return this.getToken(R.PrivateKeyword,t)}ConstantKeyword_list(){return this.getTokens(R.ConstantKeyword)}ConstantKeyword(t){return this.getToken(R.ConstantKeyword,t)}ImmutableKeyword_list(){return this.getTokens(R.ImmutableKeyword)}ImmutableKeyword(t){return this.getToken(R.ImmutableKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(ve)}overrideSpecifier(t){return this.getTypedRuleContext(ve,t)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_stateVariableDeclaration}enterRule(t){t.enterStateVariableDeclaration&&t.enterStateVariableDeclaration(this)}exitRule(t){t.exitStateVariableDeclaration&&t.exitStateVariableDeclaration(this)}accept(t){return t.visitStateVariableDeclaration?t.visitStateVariableDeclaration(this):t.visitChildren(this)}},V=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}ConstantKeyword(){return this.getToken(R.ConstantKeyword,0)}identifier(){return this.getTypedRuleContext(we,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_fileLevelConstant}enterRule(t){t.enterFileLevelConstant&&t.enterFileLevelConstant(this)}exitRule(t){t.exitFileLevelConstant&&t.exitFileLevelConstant(this)}accept(t){return t.visitFileLevelConstant?t.visitFileLevelConstant(this):t.visitChildren(this)}},H=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}parameterList(){return this.getTypedRuleContext(at,0)}get ruleIndex(){return R.RULE_customErrorDefinition}enterRule(t){t.enterCustomErrorDefinition&&t.enterCustomErrorDefinition(this)}exitRule(t){t.exitCustomErrorDefinition&&t.exitCustomErrorDefinition(this)}accept(t){return t.visitCustomErrorDefinition?t.visitCustomErrorDefinition(this):t.visitChildren(this)}},j=class extends x{constructor(t,e,r){super(e,r),this.parser=t}TypeKeyword(){return this.getToken(R.TypeKeyword,0)}identifier(){return this.getTypedRuleContext(we,0)}elementaryTypeName(){return this.getTypedRuleContext(Ht,0)}get ruleIndex(){return R.RULE_typeDefinition}enterRule(t){t.enterTypeDefinition&&t.enterTypeDefinition(this)}exitRule(t){t.exitTypeDefinition&&t.exitTypeDefinition(this)}accept(t){return t.visitTypeDefinition?t.visitTypeDefinition(this):t.visitChildren(this)}},$=class extends x{constructor(t,e,r){super(e,r),this.parser=t}usingForObject(){return this.getTypedRuleContext(G,0)}typeName(){return this.getTypedRuleContext(pt,0)}GlobalKeyword(){return this.getToken(R.GlobalKeyword,0)}get ruleIndex(){return R.RULE_usingForDeclaration}enterRule(t){t.enterUsingForDeclaration&&t.enterUsingForDeclaration(this)}exitRule(t){t.exitUsingForDeclaration&&t.exitUsingForDeclaration(this)}accept(t){return t.visitUsingForDeclaration?t.visitUsingForDeclaration(this):t.visitChildren(this)}},G=class extends x{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}usingForObjectDirective_list(){return this.getTypedRuleContexts(z)}usingForObjectDirective(t){return this.getTypedRuleContext(z,t)}get ruleIndex(){return R.RULE_usingForObject}enterRule(t){t.enterUsingForObject&&t.enterUsingForObject(this)}exitRule(t){t.exitUsingForObject&&t.exitUsingForObject(this)}accept(t){return t.visitUsingForObject?t.visitUsingForObject(this):t.visitChildren(this)}},z=class extends x{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}userDefinableOperators(){return this.getTypedRuleContext(W,0)}get ruleIndex(){return R.RULE_usingForObjectDirective}enterRule(t){t.enterUsingForObjectDirective&&t.enterUsingForObjectDirective(this)}exitRule(t){t.exitUsingForObjectDirective&&t.exitUsingForObjectDirective(this)}accept(t){return t.visitUsingForObjectDirective?t.visitUsingForObjectDirective(this):t.visitChildren(this)}},W=class extends x{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return R.RULE_userDefinableOperators}enterRule(t){t.enterUserDefinableOperators&&t.enterUserDefinableOperators(this)}exitRule(t){t.exitUserDefinableOperators&&t.exitUserDefinableOperators(this)}accept(t){return t.visitUserDefinableOperators?t.visitUserDefinableOperators(this):t.visitChildren(this)}},X=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}variableDeclaration_list(){return this.getTypedRuleContexts(dt)}variableDeclaration(t){return this.getTypedRuleContext(dt,t)}get ruleIndex(){return R.RULE_structDefinition}enterRule(t){t.enterStructDefinition&&t.enterStructDefinition(this)}exitRule(t){t.exitStructDefinition&&t.exitStructDefinition(this)}accept(t){return t.visitStructDefinition?t.visitStructDefinition(this):t.visitChildren(this)}},Q=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}block(){return this.getTypedRuleContext(_t,0)}parameterList(){return this.getTypedRuleContext(at,0)}VirtualKeyword_list(){return this.getTokens(R.VirtualKeyword)}VirtualKeyword(t){return this.getToken(R.VirtualKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(ve)}overrideSpecifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return R.RULE_modifierDefinition}enterRule(t){t.enterModifierDefinition&&t.enterModifierDefinition(this)}exitRule(t){t.exitModifierDefinition&&t.exitModifierDefinition(this)}accept(t){return t.visitModifierDefinition?t.visitModifierDefinition(this):t.visitChildren(this)}},J=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}expressionList(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return R.RULE_modifierInvocation}enterRule(t){t.enterModifierInvocation&&t.enterModifierInvocation(this)}exitRule(t){t.exitModifierInvocation&&t.exitModifierInvocation(this)}accept(t){return t.visitModifierInvocation?t.visitModifierInvocation(this):t.visitChildren(this)}},Z=class extends x{constructor(t,e,r){super(e,r),this.parser=t}functionDescriptor(){return this.getTypedRuleContext(tt,0)}parameterList(){return this.getTypedRuleContext(at,0)}modifierList(){return this.getTypedRuleContext(rt,0)}block(){return this.getTypedRuleContext(_t,0)}returnParameters(){return this.getTypedRuleContext(et,0)}get ruleIndex(){return R.RULE_functionDefinition}enterRule(t){t.enterFunctionDefinition&&t.enterFunctionDefinition(this)}exitRule(t){t.exitFunctionDefinition&&t.exitFunctionDefinition(this)}accept(t){return t.visitFunctionDefinition?t.visitFunctionDefinition(this):t.visitChildren(this)}},tt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}ConstructorKeyword(){return this.getToken(R.ConstructorKeyword,0)}FallbackKeyword(){return this.getToken(R.FallbackKeyword,0)}ReceiveKeyword(){return this.getToken(R.ReceiveKeyword,0)}get ruleIndex(){return R.RULE_functionDescriptor}enterRule(t){t.enterFunctionDescriptor&&t.enterFunctionDescriptor(this)}exitRule(t){t.exitFunctionDescriptor&&t.exitFunctionDescriptor(this)}accept(t){return t.visitFunctionDescriptor?t.visitFunctionDescriptor(this):t.visitChildren(this)}},et=class extends x{constructor(t,e,r){super(e,r),this.parser=t}parameterList(){return this.getTypedRuleContext(at,0)}get ruleIndex(){return R.RULE_returnParameters}enterRule(t){t.enterReturnParameters&&t.enterReturnParameters(this)}exitRule(t){t.exitReturnParameters&&t.exitReturnParameters(this)}accept(t){return t.visitReturnParameters?t.visitReturnParameters(this):t.visitChildren(this)}},rt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}ExternalKeyword_list(){return this.getTokens(R.ExternalKeyword)}ExternalKeyword(t){return this.getToken(R.ExternalKeyword,t)}PublicKeyword_list(){return this.getTokens(R.PublicKeyword)}PublicKeyword(t){return this.getToken(R.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(R.InternalKeyword)}InternalKeyword(t){return this.getToken(R.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(R.PrivateKeyword)}PrivateKeyword(t){return this.getToken(R.PrivateKeyword,t)}VirtualKeyword_list(){return this.getTokens(R.VirtualKeyword)}VirtualKeyword(t){return this.getToken(R.VirtualKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(bt)}stateMutability(t){return this.getTypedRuleContext(bt,t)}modifierInvocation_list(){return this.getTypedRuleContexts(J)}modifierInvocation(t){return this.getTypedRuleContext(J,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(ve)}overrideSpecifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return R.RULE_modifierList}enterRule(t){t.enterModifierList&&t.enterModifierList(this)}exitRule(t){t.exitModifierList&&t.exitModifierList(this)}accept(t){return t.visitModifierList?t.visitModifierList(this):t.visitChildren(this)}},st=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}eventParameterList(){return this.getTypedRuleContext(ct,0)}AnonymousKeyword(){return this.getToken(R.AnonymousKeyword,0)}get ruleIndex(){return R.RULE_eventDefinition}enterRule(t){t.enterEventDefinition&&t.enterEventDefinition(this)}exitRule(t){t.exitEventDefinition&&t.exitEventDefinition(this)}accept(t){return t.visitEventDefinition?t.visitEventDefinition(this):t.visitChildren(this)}},it=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_enumValue}enterRule(t){t.enterEnumValue&&t.enterEnumValue(this)}exitRule(t){t.exitEnumValue&&t.exitEnumValue(this)}accept(t){return t.visitEnumValue?t.visitEnumValue(this):t.visitChildren(this)}},nt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}enumValue_list(){return this.getTypedRuleContexts(it)}enumValue(t){return this.getTypedRuleContext(it,t)}get ruleIndex(){return R.RULE_enumDefinition}enterRule(t){t.enterEnumDefinition&&t.enterEnumDefinition(this)}exitRule(t){t.exitEnumDefinition&&t.exitEnumDefinition(this)}accept(t){return t.visitEnumDefinition?t.visitEnumDefinition(this):t.visitChildren(this)}},at=class extends x{constructor(t,e,r){super(e,r),this.parser=t}parameter_list(){return this.getTypedRuleContexts(ot)}parameter(t){return this.getTypedRuleContext(ot,t)}get ruleIndex(){return R.RULE_parameterList}enterRule(t){t.enterParameterList&&t.enterParameterList(this)}exitRule(t){t.exitParameterList&&t.exitParameterList(this)}accept(t){return t.visitParameterList?t.visitParameterList(this):t.visitChildren(this)}},ot=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}storageLocation(){return this.getTypedRuleContext(vt,0)}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_parameter}enterRule(t){t.enterParameter&&t.enterParameter(this)}exitRule(t){t.exitParameter&&t.exitParameter(this)}accept(t){return t.visitParameter?t.visitParameter(this):t.visitChildren(this)}},ct=class extends x{constructor(t,e,r){super(e,r),this.parser=t}eventParameter_list(){return this.getTypedRuleContexts(lt)}eventParameter(t){return this.getTypedRuleContext(lt,t)}get ruleIndex(){return R.RULE_eventParameterList}enterRule(t){t.enterEventParameterList&&t.enterEventParameterList(this)}exitRule(t){t.exitEventParameterList&&t.exitEventParameterList(this)}accept(t){return t.visitEventParameterList?t.visitEventParameterList(this):t.visitChildren(this)}},lt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}IndexedKeyword(){return this.getToken(R.IndexedKeyword,0)}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_eventParameter}enterRule(t){t.enterEventParameter&&t.enterEventParameter(this)}exitRule(t){t.exitEventParameter&&t.exitEventParameter(this)}accept(t){return t.visitEventParameter?t.visitEventParameter(this):t.visitChildren(this)}},ht=class extends x{constructor(t,e,r){super(e,r),this.parser=t}functionTypeParameter_list(){return this.getTypedRuleContexts(ut)}functionTypeParameter(t){return this.getTypedRuleContext(ut,t)}get ruleIndex(){return R.RULE_functionTypeParameterList}enterRule(t){t.enterFunctionTypeParameterList&&t.enterFunctionTypeParameterList(this)}exitRule(t){t.exitFunctionTypeParameterList&&t.exitFunctionTypeParameterList(this)}accept(t){return t.visitFunctionTypeParameterList?t.visitFunctionTypeParameterList(this):t.visitChildren(this)}},ut=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}storageLocation(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return R.RULE_functionTypeParameter}enterRule(t){t.enterFunctionTypeParameter&&t.enterFunctionTypeParameter(this)}exitRule(t){t.exitFunctionTypeParameter&&t.exitFunctionTypeParameter(this)}accept(t){return t.visitFunctionTypeParameter?t.visitFunctionTypeParameter(this):t.visitChildren(this)}},dt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}identifier(){return this.getTypedRuleContext(we,0)}storageLocation(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return R.RULE_variableDeclaration}enterRule(t){t.enterVariableDeclaration&&t.enterVariableDeclaration(this)}exitRule(t){t.exitVariableDeclaration&&t.exitVariableDeclaration(this)}accept(t){return t.visitVariableDeclaration?t.visitVariableDeclaration(this):t.visitChildren(this)}},pt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext(Ht,0)}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}mapping(){return this.getTypedRuleContext(ft,0)}functionTypeName(){return this.getTypedRuleContext(xt,0)}PayableKeyword(){return this.getToken(R.PayableKeyword,0)}typeName(){return this.getTypedRuleContext(pt,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_typeName}enterRule(t){t.enterTypeName&&t.enterTypeName(this)}exitRule(t){t.exitTypeName&&t.exitTypeName(this)}accept(t){return t.visitTypeName?t.visitTypeName(this):t.visitChildren(this)}},mt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(we)}identifier(t){return this.getTypedRuleContext(we,t)}get ruleIndex(){return R.RULE_userDefinedTypeName}enterRule(t){t.enterUserDefinedTypeName&&t.enterUserDefinedTypeName(this)}exitRule(t){t.exitUserDefinedTypeName&&t.exitUserDefinedTypeName(this)}accept(t){return t.visitUserDefinedTypeName?t.visitUserDefinedTypeName(this):t.visitChildren(this)}},yt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext(Ht,0)}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}get ruleIndex(){return R.RULE_mappingKey}enterRule(t){t.enterMappingKey&&t.enterMappingKey(this)}exitRule(t){t.exitMappingKey&&t.exitMappingKey(this)}accept(t){return t.visitMappingKey?t.visitMappingKey(this):t.visitChildren(this)}},ft=class extends x{constructor(t,e,r){super(e,r),this.parser=t}mappingKey(){return this.getTypedRuleContext(yt,0)}typeName(){return this.getTypedRuleContext(pt,0)}mappingKeyName(){return this.getTypedRuleContext(gt,0)}mappingValueName(){return this.getTypedRuleContext(wt,0)}get ruleIndex(){return R.RULE_mapping}enterRule(t){t.enterMapping&&t.enterMapping(this)}exitRule(t){t.exitMapping&&t.exitMapping(this)}accept(t){return t.visitMapping?t.visitMapping(this):t.visitChildren(this)}},gt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_mappingKeyName}enterRule(t){t.enterMappingKeyName&&t.enterMappingKeyName(this)}exitRule(t){t.exitMappingKeyName&&t.exitMappingKeyName(this)}accept(t){return t.visitMappingKeyName?t.visitMappingKeyName(this):t.visitChildren(this)}},wt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_mappingValueName}enterRule(t){t.enterMappingValueName&&t.enterMappingValueName(this)}exitRule(t){t.exitMappingValueName&&t.exitMappingValueName(this)}accept(t){return t.visitMappingValueName?t.visitMappingValueName(this):t.visitChildren(this)}},xt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}functionTypeParameterList_list(){return this.getTypedRuleContexts(ht)}functionTypeParameterList(t){return this.getTypedRuleContext(ht,t)}InternalKeyword_list(){return this.getTokens(R.InternalKeyword)}InternalKeyword(t){return this.getToken(R.InternalKeyword,t)}ExternalKeyword_list(){return this.getTokens(R.ExternalKeyword)}ExternalKeyword(t){return this.getToken(R.ExternalKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(bt)}stateMutability(t){return this.getTypedRuleContext(bt,t)}get ruleIndex(){return R.RULE_functionTypeName}enterRule(t){t.enterFunctionTypeName&&t.enterFunctionTypeName(this)}exitRule(t){t.exitFunctionTypeName&&t.exitFunctionTypeName(this)}accept(t){return t.visitFunctionTypeName?t.visitFunctionTypeName(this):t.visitChildren(this)}},vt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return R.RULE_storageLocation}enterRule(t){t.enterStorageLocation&&t.enterStorageLocation(this)}exitRule(t){t.exitStorageLocation&&t.exitStorageLocation(this)}accept(t){return t.visitStorageLocation?t.visitStorageLocation(this):t.visitChildren(this)}},bt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}PureKeyword(){return this.getToken(R.PureKeyword,0)}ConstantKeyword(){return this.getToken(R.ConstantKeyword,0)}ViewKeyword(){return this.getToken(R.ViewKeyword,0)}PayableKeyword(){return this.getToken(R.PayableKeyword,0)}get ruleIndex(){return R.RULE_stateMutability}enterRule(t){t.enterStateMutability&&t.enterStateMutability(this)}exitRule(t){t.exitStateMutability&&t.exitStateMutability(this)}accept(t){return t.visitStateMutability?t.visitStateMutability(this):t.visitChildren(this)}},_t=class extends x{constructor(t,e,r){super(e,r),this.parser=t}statement_list(){return this.getTypedRuleContexts(Et)}statement(t){return this.getTypedRuleContext(Et,t)}get ruleIndex(){return R.RULE_block}enterRule(t){t.enterBlock&&t.enterBlock(this)}exitRule(t){t.exitBlock&&t.exitBlock(this)}accept(t){return t.visitBlock?t.visitBlock(this):t.visitChildren(this)}},Et=class extends x{constructor(t,e,r){super(e,r),this.parser=t}ifStatement(){return this.getTypedRuleContext(St,0)}tryStatement(){return this.getTypedRuleContext(kt,0)}whileStatement(){return this.getTypedRuleContext(Ct,0)}forStatement(){return this.getTypedRuleContext(Lt,0)}block(){return this.getTypedRuleContext(_t,0)}inlineAssemblyStatement(){return this.getTypedRuleContext(It,0)}doWhileStatement(){return this.getTypedRuleContext(Dt,0)}continueStatement(){return this.getTypedRuleContext(Ot,0)}breakStatement(){return this.getTypedRuleContext(Pt,0)}returnStatement(){return this.getTypedRuleContext(qt,0)}throwStatement(){return this.getTypedRuleContext(Yt,0)}emitStatement(){return this.getTypedRuleContext(Ft,0)}simpleStatement(){return this.getTypedRuleContext(At,0)}uncheckedStatement(){return this.getTypedRuleContext(Kt,0)}revertStatement(){return this.getTypedRuleContext(Mt,0)}get ruleIndex(){return R.RULE_statement}enterRule(t){t.enterStatement&&t.enterStatement(this)}exitRule(t){t.exitStatement&&t.exitStatement(this)}accept(t){return t.visitStatement?t.visitStatement(this):t.visitChildren(this)}},Tt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_expressionStatement}enterRule(t){t.enterExpressionStatement&&t.enterExpressionStatement(this)}exitRule(t){t.exitExpressionStatement&&t.exitExpressionStatement(this)}accept(t){return t.visitExpressionStatement?t.visitExpressionStatement(this):t.visitChildren(this)}},St=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(jt,0)}statement_list(){return this.getTypedRuleContexts(Et)}statement(t){return this.getTypedRuleContext(Et,t)}get ruleIndex(){return R.RULE_ifStatement}enterRule(t){t.enterIfStatement&&t.enterIfStatement(this)}exitRule(t){t.exitIfStatement&&t.exitIfStatement(this)}accept(t){return t.visitIfStatement?t.visitIfStatement(this):t.visitChildren(this)}},kt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(jt,0)}block(){return this.getTypedRuleContext(_t,0)}returnParameters(){return this.getTypedRuleContext(et,0)}catchClause_list(){return this.getTypedRuleContexts(Rt)}catchClause(t){return this.getTypedRuleContext(Rt,t)}get ruleIndex(){return R.RULE_tryStatement}enterRule(t){t.enterTryStatement&&t.enterTryStatement(this)}exitRule(t){t.exitTryStatement&&t.exitTryStatement(this)}accept(t){return t.visitTryStatement?t.visitTryStatement(this):t.visitChildren(this)}},Rt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}block(){return this.getTypedRuleContext(_t,0)}parameterList(){return this.getTypedRuleContext(at,0)}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_catchClause}enterRule(t){t.enterCatchClause&&t.enterCatchClause(this)}exitRule(t){t.exitCatchClause&&t.exitCatchClause(this)}accept(t){return t.visitCatchClause?t.visitCatchClause(this):t.visitChildren(this)}},Ct=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(jt,0)}statement(){return this.getTypedRuleContext(Et,0)}get ruleIndex(){return R.RULE_whileStatement}enterRule(t){t.enterWhileStatement&&t.enterWhileStatement(this)}exitRule(t){t.exitWhileStatement&&t.exitWhileStatement(this)}accept(t){return t.visitWhileStatement?t.visitWhileStatement(this):t.visitChildren(this)}},At=class extends x{constructor(t,e,r){super(e,r),this.parser=t}variableDeclarationStatement(){return this.getTypedRuleContext(Ut,0)}expressionStatement(){return this.getTypedRuleContext(Tt,0)}get ruleIndex(){return R.RULE_simpleStatement}enterRule(t){t.enterSimpleStatement&&t.enterSimpleStatement(this)}exitRule(t){t.exitSimpleStatement&&t.exitSimpleStatement(this)}accept(t){return t.visitSimpleStatement?t.visitSimpleStatement(this):t.visitChildren(this)}},Kt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}block(){return this.getTypedRuleContext(_t,0)}get ruleIndex(){return R.RULE_uncheckedStatement}enterRule(t){t.enterUncheckedStatement&&t.enterUncheckedStatement(this)}exitRule(t){t.exitUncheckedStatement&&t.exitUncheckedStatement(this)}accept(t){return t.visitUncheckedStatement?t.visitUncheckedStatement(this):t.visitChildren(this)}},Lt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}statement(){return this.getTypedRuleContext(Et,0)}simpleStatement(){return this.getTypedRuleContext(At,0)}expressionStatement(){return this.getTypedRuleContext(Tt,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_forStatement}enterRule(t){t.enterForStatement&&t.enterForStatement(this)}exitRule(t){t.exitForStatement&&t.exitForStatement(this)}accept(t){return t.visitForStatement?t.visitForStatement(this):t.visitChildren(this)}},It=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyBlock(){return this.getTypedRuleContext(Jt,0)}StringLiteralFragment(){return this.getToken(R.StringLiteralFragment,0)}inlineAssemblyStatementFlag(){return this.getTypedRuleContext(Nt,0)}get ruleIndex(){return R.RULE_inlineAssemblyStatement}enterRule(t){t.enterInlineAssemblyStatement&&t.enterInlineAssemblyStatement(this)}exitRule(t){t.exitInlineAssemblyStatement&&t.exitInlineAssemblyStatement(this)}accept(t){return t.visitInlineAssemblyStatement?t.visitInlineAssemblyStatement(this):t.visitChildren(this)}},Nt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}stringLiteral(){return this.getTypedRuleContext(be,0)}get ruleIndex(){return R.RULE_inlineAssemblyStatementFlag}enterRule(t){t.enterInlineAssemblyStatementFlag&&t.enterInlineAssemblyStatementFlag(this)}exitRule(t){t.exitInlineAssemblyStatementFlag&&t.exitInlineAssemblyStatementFlag(this)}accept(t){return t.visitInlineAssemblyStatementFlag?t.visitInlineAssemblyStatementFlag(this):t.visitChildren(this)}},Dt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}statement(){return this.getTypedRuleContext(Et,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_doWhileStatement}enterRule(t){t.enterDoWhileStatement&&t.enterDoWhileStatement(this)}exitRule(t){t.exitDoWhileStatement&&t.exitDoWhileStatement(this)}accept(t){return t.visitDoWhileStatement?t.visitDoWhileStatement(this):t.visitChildren(this)}},Ot=class extends x{constructor(t,e,r){super(e,r),this.parser=t}ContinueKeyword(){return this.getToken(R.ContinueKeyword,0)}get ruleIndex(){return R.RULE_continueStatement}enterRule(t){t.enterContinueStatement&&t.enterContinueStatement(this)}exitRule(t){t.exitContinueStatement&&t.exitContinueStatement(this)}accept(t){return t.visitContinueStatement?t.visitContinueStatement(this):t.visitChildren(this)}},Pt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}BreakKeyword(){return this.getToken(R.BreakKeyword,0)}get ruleIndex(){return R.RULE_breakStatement}enterRule(t){t.enterBreakStatement&&t.enterBreakStatement(this)}exitRule(t){t.exitBreakStatement&&t.exitBreakStatement(this)}accept(t){return t.visitBreakStatement?t.visitBreakStatement(this):t.visitChildren(this)}},qt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_returnStatement}enterRule(t){t.enterReturnStatement&&t.enterReturnStatement(this)}exitRule(t){t.exitReturnStatement&&t.exitReturnStatement(this)}accept(t){return t.visitReturnStatement?t.visitReturnStatement(this):t.visitChildren(this)}},Yt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return R.RULE_throwStatement}enterRule(t){t.enterThrowStatement&&t.enterThrowStatement(this)}exitRule(t){t.exitThrowStatement&&t.exitThrowStatement(this)}accept(t){return t.visitThrowStatement?t.visitThrowStatement(this):t.visitChildren(this)}},Ft=class extends x{constructor(t,e,r){super(e,r),this.parser=t}functionCall(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return R.RULE_emitStatement}enterRule(t){t.enterEmitStatement&&t.enterEmitStatement(this)}exitRule(t){t.exitEmitStatement&&t.exitEmitStatement(this)}accept(t){return t.visitEmitStatement?t.visitEmitStatement(this):t.visitChildren(this)}},Mt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}functionCall(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return R.RULE_revertStatement}enterRule(t){t.enterRevertStatement&&t.enterRevertStatement(this)}exitRule(t){t.exitRevertStatement&&t.exitRevertStatement(this)}accept(t){return t.visitRevertStatement?t.visitRevertStatement(this):t.visitChildren(this)}},Ut=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifierList(){return this.getTypedRuleContext(Vt,0)}variableDeclaration(){return this.getTypedRuleContext(dt,0)}variableDeclarationList(){return this.getTypedRuleContext(Bt,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_variableDeclarationStatement}enterRule(t){t.enterVariableDeclarationStatement&&t.enterVariableDeclarationStatement(this)}exitRule(t){t.exitVariableDeclarationStatement&&t.exitVariableDeclarationStatement(this)}accept(t){return t.visitVariableDeclarationStatement?t.visitVariableDeclarationStatement(this):t.visitChildren(this)}},Bt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}variableDeclaration_list(){return this.getTypedRuleContexts(dt)}variableDeclaration(t){return this.getTypedRuleContext(dt,t)}get ruleIndex(){return R.RULE_variableDeclarationList}enterRule(t){t.enterVariableDeclarationList&&t.enterVariableDeclarationList(this)}exitRule(t){t.exitVariableDeclarationList&&t.exitVariableDeclarationList(this)}accept(t){return t.visitVariableDeclarationList?t.visitVariableDeclarationList(this):t.visitChildren(this)}},Vt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(we)}identifier(t){return this.getTypedRuleContext(we,t)}get ruleIndex(){return R.RULE_identifierList}enterRule(t){t.enterIdentifierList&&t.enterIdentifierList(this)}exitRule(t){t.exitIdentifierList&&t.exitIdentifierList(this)}accept(t){return t.visitIdentifierList?t.visitIdentifierList(this):t.visitChildren(this)}},Ht=class extends x{constructor(t,e,r){super(e,r),this.parser=t}Int(){return this.getToken(R.Int,0)}Uint(){return this.getToken(R.Uint,0)}Byte(){return this.getToken(R.Byte,0)}Fixed(){return this.getToken(R.Fixed,0)}Ufixed(){return this.getToken(R.Ufixed,0)}get ruleIndex(){return R.RULE_elementaryTypeName}enterRule(t){t.enterElementaryTypeName&&t.enterElementaryTypeName(this)}exitRule(t){t.exitElementaryTypeName&&t.exitElementaryTypeName(this)}accept(t){return t.visitElementaryTypeName?t.visitElementaryTypeName(this):t.visitChildren(this)}},jt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}expression_list(){return this.getTypedRuleContexts(jt)}expression(t){return this.getTypedRuleContext(jt,t)}primaryExpression(){return this.getTypedRuleContext($t,0)}identifier(){return this.getTypedRuleContext(we,0)}nameValueList(){return this.getTypedRuleContext(zt,0)}functionCallArguments(){return this.getTypedRuleContext(Xt,0)}get ruleIndex(){return R.RULE_expression}enterRule(t){t.enterExpression&&t.enterExpression(this)}exitRule(t){t.exitExpression&&t.exitExpression(this)}accept(t){return t.visitExpression?t.visitExpression(this):t.visitChildren(this)}},$t=class extends x{constructor(t,e,r){super(e,r),this.parser=t}BooleanLiteral(){return this.getToken(R.BooleanLiteral,0)}numberLiteral(){return this.getTypedRuleContext(ge,0)}hexLiteral(){return this.getTypedRuleContext(xe,0)}stringLiteral(){return this.getTypedRuleContext(be,0)}identifier(){return this.getTypedRuleContext(we,0)}TypeKeyword(){return this.getToken(R.TypeKeyword,0)}PayableKeyword(){return this.getToken(R.PayableKeyword,0)}tupleExpression(){return this.getTypedRuleContext(fe,0)}typeName(){return this.getTypedRuleContext(pt,0)}get ruleIndex(){return R.RULE_primaryExpression}enterRule(t){t.enterPrimaryExpression&&t.enterPrimaryExpression(this)}exitRule(t){t.exitPrimaryExpression&&t.exitPrimaryExpression(this)}accept(t){return t.visitPrimaryExpression?t.visitPrimaryExpression(this):t.visitChildren(this)}},Gt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression_list(){return this.getTypedRuleContexts(jt)}expression(t){return this.getTypedRuleContext(jt,t)}get ruleIndex(){return R.RULE_expressionList}enterRule(t){t.enterExpressionList&&t.enterExpressionList(this)}exitRule(t){t.exitExpressionList&&t.exitExpressionList(this)}accept(t){return t.visitExpressionList?t.visitExpressionList(this):t.visitChildren(this)}},zt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}nameValue_list(){return this.getTypedRuleContexts(Wt)}nameValue(t){return this.getTypedRuleContext(Wt,t)}get ruleIndex(){return R.RULE_nameValueList}enterRule(t){t.enterNameValueList&&t.enterNameValueList(this)}exitRule(t){t.exitNameValueList&&t.exitNameValueList(this)}accept(t){return t.visitNameValueList?t.visitNameValueList(this):t.visitChildren(this)}},Wt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_nameValue}enterRule(t){t.enterNameValue&&t.enterNameValue(this)}exitRule(t){t.exitNameValue&&t.exitNameValue(this)}accept(t){return t.visitNameValue?t.visitNameValue(this):t.visitChildren(this)}},Xt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}nameValueList(){return this.getTypedRuleContext(zt,0)}expressionList(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return R.RULE_functionCallArguments}enterRule(t){t.enterFunctionCallArguments&&t.enterFunctionCallArguments(this)}exitRule(t){t.exitFunctionCallArguments&&t.exitFunctionCallArguments(this)}accept(t){return t.visitFunctionCallArguments?t.visitFunctionCallArguments(this):t.visitChildren(this)}},Qt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(jt,0)}functionCallArguments(){return this.getTypedRuleContext(Xt,0)}get ruleIndex(){return R.RULE_functionCall}enterRule(t){t.enterFunctionCall&&t.enterFunctionCall(this)}exitRule(t){t.exitFunctionCall&&t.exitFunctionCall(this)}accept(t){return t.visitFunctionCall?t.visitFunctionCall(this):t.visitChildren(this)}},Jt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyItem_list(){return this.getTypedRuleContexts(Zt)}assemblyItem(t){return this.getTypedRuleContext(Zt,t)}get ruleIndex(){return R.RULE_assemblyBlock}enterRule(t){t.enterAssemblyBlock&&t.enterAssemblyBlock(this)}exitRule(t){t.exitAssemblyBlock&&t.exitAssemblyBlock(this)}accept(t){return t.visitAssemblyBlock?t.visitAssemblyBlock(this):t.visitChildren(this)}},Zt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}assemblyBlock(){return this.getTypedRuleContext(Jt,0)}assemblyExpression(){return this.getTypedRuleContext(te,0)}assemblyLocalDefinition(){return this.getTypedRuleContext(se,0)}assemblyAssignment(){return this.getTypedRuleContext(ie,0)}assemblyStackAssignment(){return this.getTypedRuleContext(oe,0)}labelDefinition(){return this.getTypedRuleContext(ce,0)}assemblySwitch(){return this.getTypedRuleContext(le,0)}assemblyFunctionDefinition(){return this.getTypedRuleContext(ue,0)}assemblyFor(){return this.getTypedRuleContext(pe,0)}assemblyIf(){return this.getTypedRuleContext(me,0)}BreakKeyword(){return this.getToken(R.BreakKeyword,0)}ContinueKeyword(){return this.getToken(R.ContinueKeyword,0)}LeaveKeyword(){return this.getToken(R.LeaveKeyword,0)}numberLiteral(){return this.getTypedRuleContext(ge,0)}stringLiteral(){return this.getTypedRuleContext(be,0)}hexLiteral(){return this.getTypedRuleContext(xe,0)}get ruleIndex(){return R.RULE_assemblyItem}enterRule(t){t.enterAssemblyItem&&t.enterAssemblyItem(this)}exitRule(t){t.exitAssemblyItem&&t.exitAssemblyItem(this)}accept(t){return t.visitAssemblyItem?t.visitAssemblyItem(this):t.visitChildren(this)}},te=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyCall(){return this.getTypedRuleContext(re,0)}assemblyLiteral(){return this.getTypedRuleContext(ye,0)}assemblyMember(){return this.getTypedRuleContext(ee,0)}get ruleIndex(){return R.RULE_assemblyExpression}enterRule(t){t.enterAssemblyExpression&&t.enterAssemblyExpression(this)}exitRule(t){t.exitAssemblyExpression&&t.exitAssemblyExpression(this)}accept(t){return t.visitAssemblyExpression?t.visitAssemblyExpression(this):t.visitChildren(this)}},ee=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(we)}identifier(t){return this.getTypedRuleContext(we,t)}get ruleIndex(){return R.RULE_assemblyMember}enterRule(t){t.enterAssemblyMember&&t.enterAssemblyMember(this)}exitRule(t){t.exitAssemblyMember&&t.exitAssemblyMember(this)}accept(t){return t.visitAssemblyMember?t.visitAssemblyMember(this):t.visitChildren(this)}},re=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}assemblyExpression_list(){return this.getTypedRuleContexts(te)}assemblyExpression(t){return this.getTypedRuleContext(te,t)}get ruleIndex(){return R.RULE_assemblyCall}enterRule(t){t.enterAssemblyCall&&t.enterAssemblyCall(this)}exitRule(t){t.exitAssemblyCall&&t.exitAssemblyCall(this)}accept(t){return t.visitAssemblyCall?t.visitAssemblyCall(this):t.visitChildren(this)}},se=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(ne,0)}assemblyExpression(){return this.getTypedRuleContext(te,0)}get ruleIndex(){return R.RULE_assemblyLocalDefinition}enterRule(t){t.enterAssemblyLocalDefinition&&t.enterAssemblyLocalDefinition(this)}exitRule(t){t.exitAssemblyLocalDefinition&&t.exitAssemblyLocalDefinition(this)}accept(t){return t.visitAssemblyLocalDefinition?t.visitAssemblyLocalDefinition(this):t.visitChildren(this)}},ie=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(ne,0)}assemblyExpression(){return this.getTypedRuleContext(te,0)}get ruleIndex(){return R.RULE_assemblyAssignment}enterRule(t){t.enterAssemblyAssignment&&t.enterAssemblyAssignment(this)}exitRule(t){t.exitAssemblyAssignment&&t.exitAssemblyAssignment(this)}accept(t){return t.visitAssemblyAssignment?t.visitAssemblyAssignment(this):t.visitChildren(this)}},ne=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}assemblyMember(){return this.getTypedRuleContext(ee,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ae,0)}get ruleIndex(){return R.RULE_assemblyIdentifierOrList}enterRule(t){t.enterAssemblyIdentifierOrList&&t.enterAssemblyIdentifierOrList(this)}exitRule(t){t.exitAssemblyIdentifierOrList&&t.exitAssemblyIdentifierOrList(this)}accept(t){return t.visitAssemblyIdentifierOrList?t.visitAssemblyIdentifierOrList(this):t.visitChildren(this)}},ae=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(we)}identifier(t){return this.getTypedRuleContext(we,t)}get ruleIndex(){return R.RULE_assemblyIdentifierList}enterRule(t){t.enterAssemblyIdentifierList&&t.enterAssemblyIdentifierList(this)}exitRule(t){t.exitAssemblyIdentifierList&&t.exitAssemblyIdentifierList(this)}accept(t){return t.visitAssemblyIdentifierList?t.visitAssemblyIdentifierList(this):t.visitChildren(this)}},oe=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(te,0)}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_assemblyStackAssignment}enterRule(t){t.enterAssemblyStackAssignment&&t.enterAssemblyStackAssignment(this)}exitRule(t){t.exitAssemblyStackAssignment&&t.exitAssemblyStackAssignment(this)}accept(t){return t.visitAssemblyStackAssignment?t.visitAssemblyStackAssignment(this):t.visitChildren(this)}},ce=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_labelDefinition}enterRule(t){t.enterLabelDefinition&&t.enterLabelDefinition(this)}exitRule(t){t.exitLabelDefinition&&t.exitLabelDefinition(this)}accept(t){return t.visitLabelDefinition?t.visitLabelDefinition(this):t.visitChildren(this)}},le=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(te,0)}assemblyCase_list(){return this.getTypedRuleContexts(he)}assemblyCase(t){return this.getTypedRuleContext(he,t)}get ruleIndex(){return R.RULE_assemblySwitch}enterRule(t){t.enterAssemblySwitch&&t.enterAssemblySwitch(this)}exitRule(t){t.exitAssemblySwitch&&t.exitAssemblySwitch(this)}accept(t){return t.visitAssemblySwitch?t.visitAssemblySwitch(this):t.visitChildren(this)}},he=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyLiteral(){return this.getTypedRuleContext(ye,0)}assemblyBlock(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return R.RULE_assemblyCase}enterRule(t){t.enterAssemblyCase&&t.enterAssemblyCase(this)}exitRule(t){t.exitAssemblyCase&&t.exitAssemblyCase(this)}accept(t){return t.visitAssemblyCase?t.visitAssemblyCase(this):t.visitChildren(this)}},ue=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}assemblyBlock(){return this.getTypedRuleContext(Jt,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ae,0)}assemblyFunctionReturns(){return this.getTypedRuleContext(de,0)}get ruleIndex(){return R.RULE_assemblyFunctionDefinition}enterRule(t){t.enterAssemblyFunctionDefinition&&t.enterAssemblyFunctionDefinition(this)}exitRule(t){t.exitAssemblyFunctionDefinition&&t.exitAssemblyFunctionDefinition(this)}accept(t){return t.visitAssemblyFunctionDefinition?t.visitAssemblyFunctionDefinition(this):t.visitChildren(this)}},de=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierList(){return this.getTypedRuleContext(ae,0)}get ruleIndex(){return R.RULE_assemblyFunctionReturns}enterRule(t){t.enterAssemblyFunctionReturns&&t.enterAssemblyFunctionReturns(this)}exitRule(t){t.exitAssemblyFunctionReturns&&t.exitAssemblyFunctionReturns(this)}accept(t){return t.visitAssemblyFunctionReturns?t.visitAssemblyFunctionReturns(this):t.visitChildren(this)}},pe=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression_list(){return this.getTypedRuleContexts(te)}assemblyExpression(t){return this.getTypedRuleContext(te,t)}assemblyBlock_list(){return this.getTypedRuleContexts(Jt)}assemblyBlock(t){return this.getTypedRuleContext(Jt,t)}get ruleIndex(){return R.RULE_assemblyFor}enterRule(t){t.enterAssemblyFor&&t.enterAssemblyFor(this)}exitRule(t){t.exitAssemblyFor&&t.exitAssemblyFor(this)}accept(t){return t.visitAssemblyFor?t.visitAssemblyFor(this):t.visitChildren(this)}},me=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(te,0)}assemblyBlock(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return R.RULE_assemblyIf}enterRule(t){t.enterAssemblyIf&&t.enterAssemblyIf(this)}exitRule(t){t.exitAssemblyIf&&t.exitAssemblyIf(this)}accept(t){return t.visitAssemblyIf?t.visitAssemblyIf(this):t.visitChildren(this)}},ye=class extends x{constructor(t,e,r){super(e,r),this.parser=t}stringLiteral(){return this.getTypedRuleContext(be,0)}DecimalNumber(){return this.getToken(R.DecimalNumber,0)}HexNumber(){return this.getToken(R.HexNumber,0)}hexLiteral(){return this.getTypedRuleContext(xe,0)}BooleanLiteral(){return this.getToken(R.BooleanLiteral,0)}get ruleIndex(){return R.RULE_assemblyLiteral}enterRule(t){t.enterAssemblyLiteral&&t.enterAssemblyLiteral(this)}exitRule(t){t.exitAssemblyLiteral&&t.exitAssemblyLiteral(this)}accept(t){return t.visitAssemblyLiteral?t.visitAssemblyLiteral(this):t.visitChildren(this)}},fe=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression_list(){return this.getTypedRuleContexts(jt)}expression(t){return this.getTypedRuleContext(jt,t)}get ruleIndex(){return R.RULE_tupleExpression}enterRule(t){t.enterTupleExpression&&t.enterTupleExpression(this)}exitRule(t){t.exitTupleExpression&&t.exitTupleExpression(this)}accept(t){return t.visitTupleExpression?t.visitTupleExpression(this):t.visitChildren(this)}},ge=class extends x{constructor(t,e,r){super(e,r),this.parser=t}DecimalNumber(){return this.getToken(R.DecimalNumber,0)}HexNumber(){return this.getToken(R.HexNumber,0)}NumberUnit(){return this.getToken(R.NumberUnit,0)}get ruleIndex(){return R.RULE_numberLiteral}enterRule(t){t.enterNumberLiteral&&t.enterNumberLiteral(this)}exitRule(t){t.exitNumberLiteral&&t.exitNumberLiteral(this)}accept(t){return t.visitNumberLiteral?t.visitNumberLiteral(this):t.visitChildren(this)}},we=class extends x{constructor(t,e,r){super(e,r),this.parser=t}ReceiveKeyword(){return this.getToken(R.ReceiveKeyword,0)}GlobalKeyword(){return this.getToken(R.GlobalKeyword,0)}ConstructorKeyword(){return this.getToken(R.ConstructorKeyword,0)}PayableKeyword(){return this.getToken(R.PayableKeyword,0)}LeaveKeyword(){return this.getToken(R.LeaveKeyword,0)}Identifier(){return this.getToken(R.Identifier,0)}get ruleIndex(){return R.RULE_identifier}enterRule(t){t.enterIdentifier&&t.enterIdentifier(this)}exitRule(t){t.exitIdentifier&&t.exitIdentifier(this)}accept(t){return t.visitIdentifier?t.visitIdentifier(this):t.visitChildren(this)}},xe=class extends x{constructor(t,e,r){super(e,r),this.parser=t}HexLiteralFragment_list(){return this.getTokens(R.HexLiteralFragment)}HexLiteralFragment(t){return this.getToken(R.HexLiteralFragment,t)}get ruleIndex(){return R.RULE_hexLiteral}enterRule(t){t.enterHexLiteral&&t.enterHexLiteral(this)}exitRule(t){t.exitHexLiteral&&t.exitHexLiteral(this)}accept(t){return t.visitHexLiteral?t.visitHexLiteral(this):t.visitChildren(this)}},ve=class extends x{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName_list(){return this.getTypedRuleContexts(mt)}userDefinedTypeName(t){return this.getTypedRuleContext(mt,t)}get ruleIndex(){return R.RULE_overrideSpecifier}enterRule(t){t.enterOverrideSpecifier&&t.enterOverrideSpecifier(this)}exitRule(t){t.exitOverrideSpecifier&&t.exitOverrideSpecifier(this)}accept(t){return t.visitOverrideSpecifier?t.visitOverrideSpecifier(this):t.visitChildren(this)}},be=class extends x{constructor(t,e,r){super(e,r),this.parser=t}StringLiteralFragment_list(){return this.getTokens(R.StringLiteralFragment)}StringLiteralFragment(t){return this.getToken(R.StringLiteralFragment,t)}get ruleIndex(){return R.RULE_stringLiteral}enterRule(t){t.enterStringLiteral&&t.enterStringLiteral(this)}exitRule(t){t.exitStringLiteral&&t.exitStringLiteral(this)}accept(t){return t.visitStringLiteral?t.visitStringLiteral(this):t.visitChildren(this)}},_e=["SourceUnit","PragmaDirective","ImportDirective","ContractDefinition","InheritanceSpecifier","StateVariableDeclaration","UsingForDeclaration","StructDefinition","ModifierDefinition","ModifierInvocation","FunctionDefinition","EventDefinition","CustomErrorDefinition","RevertStatement","EnumValue","EnumDefinition","VariableDeclaration","UserDefinedTypeName","Mapping","ArrayTypeName","FunctionTypeName","Block","ExpressionStatement","IfStatement","WhileStatement","ForStatement","InlineAssemblyStatement","DoWhileStatement","ContinueStatement","Break","Continue","BreakStatement","ReturnStatement","EmitStatement","ThrowStatement","VariableDeclarationStatement","ElementaryTypeName","FunctionCall","AssemblyBlock","AssemblyCall","AssemblyLocalDefinition","AssemblyAssignment","AssemblyStackAssignment","LabelDefinition","AssemblySwitch","AssemblyCase","AssemblyFunctionDefinition","AssemblyFor","AssemblyIf","TupleExpression","NameValueExpression","BooleanLiteral","NumberLiteral","Identifier","BinaryOperation","UnaryOperation","NewExpression","Conditional","StringLiteral","HexLiteral","HexNumber","DecimalNumber","MemberAccess","IndexAccess","IndexRangeAccess","NameValueList","UncheckedStatement","TryStatement","CatchClause","FileLevelConstant","AssemblyMemberAccess","TypeDefinition"],Ee=["+","-","*","/","**","%","<<",">>","&&","||","&","^","<",">","<=",">=","==","!=","=","^=","&=","<<=",">>=","+=","-=","*=","/=","%=","|","|="],Te=["-","+","++","--","~","after","delete","!"],Se=class extends f{constructor(t){super(),this.options=t,this.result=null}defaultResult(){throw new Error("Unknown node")}aggregateResult(){return{type:""}}visitSourceUnit(t){const e={type:"SourceUnit",children:(t.children??[]).slice(0,-1).map((t=>this.visit(t)))},r=this._addMeta(e,t);return this.result=r,r}visitContractPart(t){return this.visit(t.getChild(0))}visitContractDefinition(t){const e=this._toText(t.identifier()),r=this._toText(t.getChild(0));this._currentContract=e;const s={type:"ContractDefinition",name:e,baseContracts:t.inheritanceSpecifier_list().map((t=>this.visitInheritanceSpecifier(t))),subNodes:t.contractPart_list().map((t=>this.visit(t))),kind:r};return this._addMeta(s,t)}visitStateVariableDeclaration(t){const e=this.visitTypeName(t.typeName()),r=t.identifier(),s=this._toText(r);let i=null;const n=t.expression();n&&(i=this.visitExpression(n));let a="default";t.InternalKeyword_list().length>0?a="internal":t.PublicKeyword_list().length>0?a="public":t.PrivateKeyword_list().length>0&&(a="private");let o,c=!1;t.ConstantKeyword_list().length>0&&(c=!0);const l=t.overrideSpecifier_list();o=0===l.length?null:l[0].userDefinedTypeName_list().map((t=>this.visitUserDefinedTypeName(t)));let h=!1;t.ImmutableKeyword_list().length>0&&(h=!0);const u={type:"VariableDeclaration",typeName:e,name:s,identifier:this.visitIdentifier(r),expression:i,visibility:a,isStateVar:!0,isDeclaredConst:c,isIndexed:!1,isImmutable:h,override:o,storageLocation:null},d={type:"StateVariableDeclaration",variables:[this._addMeta(u,t)],initialValue:i};return this._addMeta(d,t)}visitVariableDeclaration(t){let e=null;const r=t.storageLocation();r&&(e=this._toText(r));const s=t.identifier(),i={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:this._toText(s),identifier:this.visitIdentifier(s),storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(i,t)}visitVariableDeclarationStatement(t){let e=[];const r=t.variableDeclaration(),s=t.identifierList(),i=t.variableDeclarationList();r?e=[this.visitVariableDeclaration(r)]:s?e=this.buildIdentifierList(s):i&&(e=this.buildVariableDeclarationList(i));let n=null;const a=t.expression();a&&(n=this.visitExpression(a));const o={type:"VariableDeclarationStatement",variables:e,initialValue:n};return this._addMeta(o,t)}visitStatement(t){return this.visit(t.getChild(0))}visitSimpleStatement(t){return this.visit(t.getChild(0))}visitEventDefinition(t){const e=t.eventParameterList().eventParameter_list().map((t=>{const e=this.visitTypeName(t.typeName());let r=null;const s=t.identifier();s&&(r=this._toText(s));const i={type:"VariableDeclaration",typeName:e,name:r,identifier:s?this.visitIdentifier(s):null,isStateVar:!1,isIndexed:Boolean(t.IndexedKeyword()),storageLocation:null,expression:null};return this._addMeta(i,t)})),r={type:"EventDefinition",name:this._toText(t.identifier()),parameters:e,isAnonymous:Boolean(t.AnonymousKeyword())};return this._addMeta(r,t)}visitBlock(t){const e={type:"Block",statements:t.statement_list().map((t=>this.visitStatement(t)))};return this._addMeta(e,t)}visitParameter(t){let e=null;const r=t.storageLocation();r&&(e=this._toText(r));let s=null;const i=t.identifier();i&&(s=this._toText(i));const n={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:s,identifier:i?this.visitIdentifier(i):null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(n,t)}visitFunctionDefinition(t){let e=!1,r=!1,s=!1,i=!1,n=null,a=[],o=null,c="default",l=null;const h=t.block();h&&(l=this.visitBlock(h));const u=t.modifierList().modifierInvocation_list().map((t=>this.visitModifierInvocation(t)));let d=null;t.modifierList().stateMutability_list().length>0&&(d=this._stateMutabilityToText(t.modifierList().stateMutability(0)));const p=t.returnParameters();switch(this._toText(t.functionDescriptor().getChild(0))){case"constructor":a=t.parameterList().parameter_list().map((t=>this.visit(t))),c=t.modifierList().InternalKeyword_list().length>0?"internal":t.modifierList().PublicKeyword_list().length>0?"public":"default",e=!0;break;case"fallback":a=t.parameterList().parameter_list().map((t=>this.visit(t))),o=p?this.visitReturnParameters(p):null,c="external",r=!0;break;case"receive":c="external",s=!0;break;case"function":{const s=t.functionDescriptor().identifier();n=s?this._toText(s):"",a=t.parameterList().parameter_list().map((t=>this.visit(t))),o=p?this.visitReturnParameters(p):null,t.modifierList().ExternalKeyword_list().length>0?c="external":t.modifierList().InternalKeyword_list().length>0?c="internal":t.modifierList().PublicKeyword_list().length>0?c="public":t.modifierList().PrivateKeyword_list().length>0&&(c="private"),e=n===this._currentContract,r=""===n;break}}let m;t.modifierList().VirtualKeyword_list().length>0&&(i=!0);const y=t.modifierList().overrideSpecifier_list();m=0===y.length?null:y[0].userDefinedTypeName_list().map((t=>this.visitUserDefinedTypeName(t)));const f={type:"FunctionDefinition",name:n,parameters:a,returnParameters:o,body:l,visibility:c,modifiers:u,override:m,isConstructor:e,isReceiveEther:s,isFallback:r,isVirtual:i,stateMutability:d};return this._addMeta(f,t)}visitEnumDefinition(t){const e={type:"EnumDefinition",name:this._toText(t.identifier()),members:t.enumValue_list().map((t=>this.visitEnumValue(t)))};return this._addMeta(e,t)}visitEnumValue(t){const e={type:"EnumValue",name:this._toText(t.identifier())};return this._addMeta(e,t)}visitElementaryTypeName(t){const e={type:"ElementaryTypeName",name:this._toText(t),stateMutability:null};return this._addMeta(e,t)}visitIdentifier(t){const e={type:"Identifier",name:this._toText(t)};return this._addMeta(e,t)}visitTypeName(t){if(t.children&&t.children.length>2){let e=null;if(4===t.children.length){const r=t.expression();if(null==r)throw new Error("Assertion error: a typeName with 4 children should have an expression");e=this.visitExpression(r)}const r={type:"ArrayTypeName",baseTypeName:this.visitTypeName(t.typeName()),length:e};return this._addMeta(r,t)}if(2===t.children?.length){const e={type:"ElementaryTypeName",name:this._toText(t.getChild(0)),stateMutability:this._toText(t.getChild(1))};return this._addMeta(e,t)}if(t.elementaryTypeName())return this.visitElementaryTypeName(t.elementaryTypeName());if(t.userDefinedTypeName())return this.visitUserDefinedTypeName(t.userDefinedTypeName());if(t.mapping())return this.visitMapping(t.mapping());if(t.functionTypeName())return this.visitFunctionTypeName(t.functionTypeName());throw new Error("Assertion error: unhandled type name case")}visitUserDefinedTypeName(t){const e={type:"UserDefinedTypeName",namePath:this._toText(t)};return this._addMeta(e,t)}visitUsingForDeclaration(t){let e=null;const r=t.typeName();r&&(e=this.visitTypeName(r));const s=Boolean(t.GlobalKeyword()),i=t.usingForObject(),n=i.userDefinedTypeName();let a;if(n)a={type:"UsingForDeclaration",isGlobal:s,typeName:e,libraryName:this._toText(n),functions:[],operators:[]};else{const t=i.usingForObjectDirective_list(),r=[],n=[];for(const e of t){r.push(this._toText(e.userDefinedTypeName()));const t=e.userDefinableOperators();t?n.push(this._toText(t)):n.push(null)}a={type:"UsingForDeclaration",isGlobal:s,typeName:e,libraryName:null,functions:r,operators:n}}return this._addMeta(a,t)}visitPragmaDirective(t){const e=t.pragmaValue().version();let r=this._toText(t.pragmaValue());e?.children&&(r=e.children.map((t=>this._toText(t))).join(" "));const s={type:"PragmaDirective",name:this._toText(t.pragmaName()),value:r};return this._addMeta(s,t)}visitInheritanceSpecifier(t){const e=t.expressionList(),r=e?e.expression_list().map((t=>this.visitExpression(t))):[],s={type:"InheritanceSpecifier",baseName:this.visitUserDefinedTypeName(t.userDefinedTypeName()),arguments:r};return this._addMeta(s,t)}visitModifierInvocation(t){const e=t.expressionList();let r;r=null!=e?e.expression_list().map((t=>this.visit(t))):t.children&&t.children.length>1?[]:null;const s={type:"ModifierInvocation",name:this._toText(t.identifier()),arguments:r};return this._addMeta(s,t)}visitFunctionTypeName(t){const e=t.functionTypeParameterList(0).functionTypeParameter_list().map((t=>this.visitFunctionTypeParameter(t)));let r=[];t.functionTypeParameterList_list().length>1&&(r=t.functionTypeParameterList(1).functionTypeParameter_list().map((t=>this.visitFunctionTypeParameter(t))));let s="default";t.InternalKeyword_list().length>0?s="internal":t.ExternalKeyword_list().length>0&&(s="external");let i=null;t.stateMutability_list().length>0&&(i=this._toText(t.stateMutability(0)));const n={type:"FunctionTypeName",parameterTypes:e,returnTypes:r,visibility:s,stateMutability:i};return this._addMeta(n,t)}visitFunctionTypeParameter(t){let e=null;t.storageLocation()&&(e=this._toText(t.storageLocation()));const r={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:null,identifier:null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(r,t)}visitThrowStatement(t){return this._addMeta({type:"ThrowStatement"},t)}visitReturnStatement(t){let e=null;const r=t.expression();r&&(e=this.visitExpression(r));const s={type:"ReturnStatement",expression:e};return this._addMeta(s,t)}visitEmitStatement(t){const e={type:"EmitStatement",eventCall:this.visitFunctionCall(t.functionCall())};return this._addMeta(e,t)}visitCustomErrorDefinition(t){const e={type:"CustomErrorDefinition",name:this._toText(t.identifier()),parameters:this.visitParameterList(t.parameterList())};return this._addMeta(e,t)}visitTypeDefinition(t){const e={type:"TypeDefinition",name:this._toText(t.identifier()),definition:this.visitElementaryTypeName(t.elementaryTypeName())};return this._addMeta(e,t)}visitRevertStatement(t){const e={type:"RevertStatement",revertCall:this.visitFunctionCall(t.functionCall())};return this._addMeta(e,t)}visitFunctionCall(t){let e=[];const r=[],s=[],i=t.functionCallArguments(),n=i.expressionList(),a=i.nameValueList();if(n)e=n.expression_list().map((t=>this.visitExpression(t)));else if(a)for(const t of a.nameValue_list())e.push(this.visitExpression(t.expression())),r.push(this._toText(t.identifier())),s.push(this.visitIdentifier(t.identifier()));const o={type:"FunctionCall",expression:this.visitExpression(t.expression()),arguments:e,names:r,identifiers:s};return this._addMeta(o,t)}visitStructDefinition(t){const e={type:"StructDefinition",name:this._toText(t.identifier()),members:t.variableDeclaration_list().map((t=>this.visitVariableDeclaration(t)))};return this._addMeta(e,t)}visitWhileStatement(t){const e={type:"WhileStatement",condition:this.visitExpression(t.expression()),body:this.visitStatement(t.statement())};return this._addMeta(e,t)}visitDoWhileStatement(t){const e={type:"DoWhileStatement",condition:this.visitExpression(t.expression()),body:this.visitStatement(t.statement())};return this._addMeta(e,t)}visitIfStatement(t){const e=this.visitStatement(t.statement(0));let r=null;t.statement_list().length>1&&(r=this.visitStatement(t.statement(1)));const s={type:"IfStatement",condition:this.visitExpression(t.expression()),trueBody:e,falseBody:r};return this._addMeta(s,t)}visitTryStatement(t){let e=null;const r=t.returnParameters();r&&(e=this.visitReturnParameters(r));const s=t.catchClause_list().map((t=>this.visitCatchClause(t))),i={type:"TryStatement",expression:this.visitExpression(t.expression()),returnParameters:e,body:this.visitBlock(t.block()),catchClauses:s};return this._addMeta(i,t)}visitCatchClause(t){let e=null;if(t.parameterList()&&(e=this.visitParameterList(t.parameterList())),t.identifier()&&"Error"!==this._toText(t.identifier())&&"Panic"!==this._toText(t.identifier()))throw new Error('Expected "Error" or "Panic" identifier in catch clause');let r=null;const s=t.identifier();s&&(r=this._toText(s));const i={type:"CatchClause",isReasonStringType:"Error"===r,kind:r,parameters:e,body:this.visitBlock(t.block())};return this._addMeta(i,t)}visitExpressionStatement(t){if(!t)return null;const e={type:"ExpressionStatement",expression:this.visitExpression(t.expression())};return this._addMeta(e,t)}visitNumberLiteral(t){const e=this._toText(t.getChild(0));let r=null;2===t.children?.length&&(r=this._toText(t.getChild(1)));const s={type:"NumberLiteral",number:e,subdenomination:r};return this._addMeta(s,t)}visitMappingKey(t){if(t.elementaryTypeName())return this.visitElementaryTypeName(t.elementaryTypeName());if(t.userDefinedTypeName())return this.visitUserDefinedTypeName(t.userDefinedTypeName());throw new Error("Expected MappingKey to have either elementaryTypeName or userDefinedTypeName")}visitMapping(t){const e=t.mappingKeyName(),r=t.mappingValueName(),s={type:"Mapping",keyType:this.visitMappingKey(t.mappingKey()),keyName:e?this.visitIdentifier(e.identifier()):null,valueType:this.visitTypeName(t.typeName()),valueName:r?this.visitIdentifier(r.identifier()):null};return this._addMeta(s,t)}visitModifierDefinition(t){let e=null;t.parameterList()&&(e=this.visitParameterList(t.parameterList()));let r,s=!1;t.VirtualKeyword_list().length>0&&(s=!0);const i=t.overrideSpecifier_list();r=0===i.length?null:i[0].userDefinedTypeName_list().map((t=>this.visitUserDefinedTypeName(t)));let n=null;const a=t.block();a&&(n=this.visitBlock(a));const o={type:"ModifierDefinition",name:this._toText(t.identifier()),parameters:e,body:n,isVirtual:s,override:r};return this._addMeta(o,t)}visitUncheckedStatement(t){const e={type:"UncheckedStatement",block:this.visitBlock(t.block())};return this._addMeta(e,t)}visitExpression(t){let e;switch(t.children.length){case 1:{const e=t.primaryExpression();if(null==e)throw new Error("Assertion error: primary expression should exist when children length is 1");return this.visitPrimaryExpression(e)}case 2:if(e=this._toText(t.getChild(0)),"new"===e){const e={type:"NewExpression",typeName:this.visitTypeName(t.typeName())};return this._addMeta(e,t)}if(Te.includes(e)){const r={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.expression(0)),isPrefix:!0};return this._addMeta(r,t)}if(e=this._toText(t.getChild(1)),["++","--"].includes(e)){const r={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.expression(0)),isPrefix:!1};return this._addMeta(r,t)}break;case 3:if("("===this._toText(t.getChild(0))&&")"===this._toText(t.getChild(2))){const e={type:"TupleExpression",components:[this.visitExpression(t.expression(0))],isArray:!1};return this._addMeta(e,t)}if(e=this._toText(t.getChild(1)),"."===e){const e={type:"MemberAccess",expression:this.visitExpression(t.expression(0)),memberName:this._toText(t.identifier())};return this._addMeta(e,t)}if(function(t){return Ee.includes(t)}(e)){const r={type:"BinaryOperation",operator:e,left:this.visitExpression(t.expression(0)),right:this.visitExpression(t.expression(1))};return this._addMeta(r,t)}break;case 4:if("("===this._toText(t.getChild(1))&&")"===this._toText(t.getChild(3))){let e=[];const r=[],s=[],i=t.functionCallArguments();if(i.expressionList())e=i.expressionList().expression_list().map((t=>this.visitExpression(t)));else if(i.nameValueList())for(const t of i.nameValueList().nameValue_list())e.push(this.visitExpression(t.expression())),r.push(this._toText(t.identifier())),s.push(this.visitIdentifier(t.identifier()));const n={type:"FunctionCall",expression:this.visitExpression(t.expression(0)),arguments:e,names:r,identifiers:s};return this._addMeta(n,t)}if("["===this._toText(t.getChild(1))&&"]"===this._toText(t.getChild(3))){if(":"===t.getChild(2).getText()){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0))};return this._addMeta(e,t)}const e={type:"IndexAccess",base:this.visitExpression(t.expression(0)),index:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}if("{"===this._toText(t.getChild(1))&&"}"===this._toText(t.getChild(3))){const e={type:"NameValueExpression",expression:this.visitExpression(t.expression(0)),arguments:this.visitNameValueList(t.nameValueList())};return this._addMeta(e,t)}break;case 5:if("?"===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))){const e={type:"Conditional",condition:this.visitExpression(t.expression(0)),trueExpression:this.visitExpression(t.expression(1)),falseExpression:this.visitExpression(t.expression(2))};return this._addMeta(e,t)}if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(2))&&"]"===this._toText(t.getChild(4))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexEnd:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))&&"]"===this._toText(t.getChild(4))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexStart:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}break;case 6:if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))&&"]"===this._toText(t.getChild(5))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexStart:this.visitExpression(t.expression(1)),indexEnd:this.visitExpression(t.expression(2))};return this._addMeta(e,t)}}throw new Error("Unrecognized expression")}visitNameValueList(t){const e=[],r=[],s=[];for(const i of t.nameValue_list())e.push(this._toText(i.identifier())),r.push(this.visitIdentifier(i.identifier())),s.push(this.visitExpression(i.expression()));const i={type:"NameValueList",names:e,identifiers:r,arguments:s};return this._addMeta(i,t)}visitFileLevelConstant(t){const e={type:"FileLevelConstant",typeName:this.visitTypeName(t.typeName()),name:this._toText(t.identifier()),initialValue:this.visitExpression(t.expression()),isDeclaredConst:!0,isImmutable:!1};return this._addMeta(e,t)}visitForStatement(t){let e=this.visitExpressionStatement(t.expressionStatement());e&&(e=e.expression);const r={type:"ForStatement",initExpression:t.simpleStatement()?this.visitSimpleStatement(t.simpleStatement()):null,conditionExpression:e,loopExpression:{type:"ExpressionStatement",expression:t.expression()?this.visitExpression(t.expression()):null},body:this.visitStatement(t.statement())};return this._addMeta(r,t)}visitHexLiteral(t){const e=t.HexLiteralFragment_list().map((t=>this._toText(t))).map((t=>t.substring(4,t.length-1))),r={type:"HexLiteral",value:e.join(""),parts:e};return this._addMeta(r,t)}visitPrimaryExpression(t){if(t.BooleanLiteral()){const e={type:"BooleanLiteral",value:"true"===this._toText(t.BooleanLiteral())};return this._addMeta(e,t)}if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());if(t.stringLiteral()){const e=t.stringLiteral().StringLiteralFragment_list().map((t=>{let e=this._toText(t);const r="unicode"===e.slice(0,7);r&&(e=e.slice(7));const s="'"===e[0],i=e.substring(1,e.length-1);return{value:s?i.replace(new RegExp("\\\\'","g"),"'"):i.replace(new RegExp('\\\\"',"g"),'"'),isUnicode:r}})),r=e.map((t=>t.value)),s={type:"StringLiteral",value:r.join(""),parts:r,isUnicode:e.map((t=>t.isUnicode))};return this._addMeta(s,t)}if(t.numberLiteral())return this.visitNumberLiteral(t.numberLiteral());if(t.TypeKeyword()){const e={type:"Identifier",name:"type"};return this._addMeta(e,t)}return t.typeName()?this.visitTypeName(t.typeName()):this.visit(t.getChild(0))}visitTupleExpression(t){const e=t.children.slice(1,-1),r={type:"TupleExpression",components:this._mapCommasToNulls(e).map((t=>null===t?null:this.visit(t))),isArray:"["===this._toText(t.getChild(0))};return this._addMeta(r,t)}buildIdentifierList(t){const e=t.children.slice(1,-1),r=t.identifier_list();let s=0;return this._mapCommasToNulls(e).map((t=>{if(null===t)return null;const e=r[s];s++;const i={type:"VariableDeclaration",name:this._toText(e),identifier:this.visitIdentifier(e),isStateVar:!1,isIndexed:!1,typeName:null,storageLocation:null,expression:null};return this._addMeta(i,e)}))}buildVariableDeclarationList(t){const e=t.variableDeclaration_list();let r=0;return this._mapCommasToNulls(t.children??[]).map((t=>{if(!t)return null;const s=e[r];r++;let i=null;s.storageLocation()&&(i=this._toText(s.storageLocation()));const n=s.identifier(),a={type:"VariableDeclaration",name:this._toText(n),identifier:this.visitIdentifier(n),typeName:this.visitTypeName(s.typeName()),storageLocation:i,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(a,s)}))}visitImportDirective(t){const e=this._toText(t.importPath());let r=null,s=null,i=null,n=null;if(t.importDeclaration_list().length>0)i=t.importDeclaration_list().map((t=>{const e=this._toText(t.identifier(0));let r=null;return t.identifier_list().length>1&&(r=this._toText(t.identifier(1))),[e,r]})),n=t.importDeclaration_list().map((t=>{const e=this.visitIdentifier(t.identifier(0));let r=null;return t.identifier_list().length>1&&(r=this.visitIdentifier(t.identifier(1))),[e,r]}));else{const e=t.identifier_list();if(0===e.length);else if(1===e.length){const e=t.identifier(0);r=this._toText(e),s=this.visitIdentifier(e)}else{if(2!==e.length)throw new Error("Assertion error: an import should have one or two identifiers");{const e=t.identifier(1);r=this._toText(e),s=this.visitIdentifier(e)}}}const a=e.substring(1,e.length-1),o={type:"StringLiteral",value:a,parts:[a],isUnicode:[!1]},c={type:"ImportDirective",path:a,pathLiteral:this._addMeta(o,t.importPath()),unitAlias:r,unitAliasIdentifier:s,symbolAliases:i,symbolAliasesIdentifiers:n};return this._addMeta(c,t)}buildEventParameterList(t){return t.eventParameter_list().map((t=>{const e=this.visit(t.typeName()),r=t.identifier();return{type:"VariableDeclaration",typeName:e,name:r?this._toText(r):null,isStateVar:!1,isIndexed:!!t.IndexedKeyword()}}))}visitReturnParameters(t){return this.visitParameterList(t.parameterList())}visitParameterList(t){return t.parameter_list().map((t=>this.visitParameter(t)))}visitInlineAssemblyStatement(t){let e=null;t.StringLiteralFragment()&&(e=this._toText(t.StringLiteralFragment()),e=e.substring(1,e.length-1));const r=[],s=t.inlineAssemblyStatementFlag();if(s){const t=this._toText(s.stringLiteral());r.push(t.slice(1,t.length-1))}const i={type:"InlineAssemblyStatement",language:e,flags:r,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(i,t)}visitAssemblyBlock(t){const e={type:"AssemblyBlock",operations:t.assemblyItem_list().map((t=>this.visitAssemblyItem(t)))};return this._addMeta(e,t)}visitAssemblyItem(t){let e;if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());if(t.stringLiteral()){e=this._toText(t.stringLiteral());const r=e.substring(1,e.length-1),s={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(s,t)}if(t.BreakKeyword()){const e={type:"Break"};return this._addMeta(e,t)}if(t.ContinueKeyword()){const e={type:"Continue"};return this._addMeta(e,t)}return this.visit(t.getChild(0))}visitAssemblyExpression(t){return this.visit(t.getChild(0))}visitAssemblyCall(t){const e={type:"AssemblyCall",functionName:this._toText(t.getChild(0)),arguments:t.assemblyExpression_list().map((t=>this.visitAssemblyExpression(t)))};return this._addMeta(e,t)}visitAssemblyLiteral(t){let e;if(t.stringLiteral()){e=this._toText(t);const r=e.substring(1,e.length-1),s={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(s,t)}if(t.BooleanLiteral()){const e={type:"BooleanLiteral",value:"true"===this._toText(t.BooleanLiteral())};return this._addMeta(e,t)}if(t.DecimalNumber()){const e={type:"DecimalNumber",value:this._toText(t)};return this._addMeta(e,t)}if(t.HexNumber()){const e={type:"HexNumber",value:this._toText(t)};return this._addMeta(e,t)}if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());throw new Error("Should never reach here")}visitAssemblySwitch(t){const e={type:"AssemblySwitch",expression:this.visitAssemblyExpression(t.assemblyExpression()),cases:t.assemblyCase_list().map((t=>this.visitAssemblyCase(t)))};return this._addMeta(e,t)}visitAssemblyCase(t){let e=null;"case"===this._toText(t.getChild(0))&&(e=this.visitAssemblyLiteral(t.assemblyLiteral()));const r={type:"AssemblyCase",block:this.visitAssemblyBlock(t.assemblyBlock()),value:e,default:null===e};return this._addMeta(r,t)}visitAssemblyLocalDefinition(t){const e=t.assemblyIdentifierOrList();let r;r=e.identifier()?[this.visitIdentifier(e.identifier())]:e.assemblyMember()?[this.visitAssemblyMember(e.assemblyMember())]:e.assemblyIdentifierList().identifier_list().map((t=>this.visitIdentifier(t)));let s=null;t.assemblyExpression()&&(s=this.visitAssemblyExpression(t.assemblyExpression()));const i={type:"AssemblyLocalDefinition",names:r,expression:s};return this._addMeta(i,t)}visitAssemblyFunctionDefinition(t){const e=t.assemblyIdentifierList(),r=e?e.identifier_list().map((t=>this.visitIdentifier(t))):[],s=t.assemblyFunctionReturns(),i=s?s.assemblyIdentifierList().identifier_list().map((t=>this.visitIdentifier(t))):[],n={type:"AssemblyFunctionDefinition",name:this._toText(t.identifier()),arguments:r,returnArguments:i,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(n,t)}visitAssemblyAssignment(t){const e=t.assemblyIdentifierOrList();let r;r=e.identifier()?[this.visitIdentifier(e.identifier())]:e.assemblyMember()?[this.visitAssemblyMember(e.assemblyMember())]:e.assemblyIdentifierList().identifier_list().map((t=>this.visitIdentifier(t)));const s={type:"AssemblyAssignment",names:r,expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(s,t)}visitAssemblyMember(t){const[e,r]=t.identifier_list(),s={type:"AssemblyMemberAccess",expression:this.visitIdentifier(e),memberName:this.visitIdentifier(r)};return this._addMeta(s,t)}visitLabelDefinition(t){const e={type:"LabelDefinition",name:this._toText(t.identifier())};return this._addMeta(e,t)}visitAssemblyStackAssignment(t){const e={type:"AssemblyStackAssignment",name:this._toText(t.identifier()),expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(e,t)}visitAssemblyFor(t){const e={type:"AssemblyFor",pre:this.visit(t.getChild(1)),condition:this.visit(t.getChild(2)),post:this.visit(t.getChild(3)),body:this.visit(t.getChild(4))};return this._addMeta(e,t)}visitAssemblyIf(t){const e={type:"AssemblyIf",condition:this.visitAssemblyExpression(t.assemblyExpression()),body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(e,t)}visitContinueStatement(t){return this._addMeta({type:"ContinueStatement"},t)}visitBreakStatement(t){return this._addMeta({type:"BreakStatement"},t)}_toText(t){const e=t.getText();if(null==e)throw new Error("Assertion error: text should never be undefined");return e}_stateMutabilityToText(t){if(t.PureKeyword())return"pure";if(t.ConstantKeyword())return"constant";if(t.PayableKeyword())return"payable";if(t.ViewKeyword())return"view";throw new Error("Assertion error: non-exhaustive stateMutability check")}_loc(t){return{start:{line:t.start.line,column:t.start.column},end:{line:t.stop?t.stop.line:t.start.line,column:t.stop?t.stop.column:t.start.column}}}_range(t){return[t.start.start,t.stop?.stop??t.start.start]}_addMeta(t,e){const r={type:t.type};return!0===this.options.loc&&(t.loc=this._loc(e)),!0===this.options.range&&(t.range=this._range(e)),{...r,...t}}_mapCommasToNulls(t){if(0===t.length)return[];const e=[];let r=!0;for(const s of t)if(r)","===this._toText(s)?e.push(null):(e.push(s),r=!1);else{if(","!==this._toText(s))throw new Error("expected comma");r=!0}return r&&e.push(null),e}},ke=class extends u{constructor(){super(),this._errors=[]}syntaxError(t,e,r,s,i){this._errors.push({message:i,line:r,column:s})}getErrors(){return this._errors}hasErrors(){return this._errors.length>0}},Re={1:"pragma",2:";",3:"*",4:"||",5:"^",6:"~",7:">=",8:">",9:"<",10:"<=",11:"=",12:"as",13:"import",14:"from",15:"{",16:",",17:"}",18:"abstract",19:"contract",20:"interface",21:"library",22:"is",23:"(",24:")",25:"error",26:"using",27:"for",28:"|",29:"&",30:"+",31:"-",32:"/",33:"%",34:"==",35:"!=",36:"struct",37:"modifier",38:"function",39:"returns",40:"event",41:"enum",42:"[",43:"]",44:"address",45:".",46:"mapping",47:"=>",48:"memory",49:"storage",50:"calldata",51:"if",52:"else",53:"try",54:"catch",55:"while",56:"unchecked",57:"assembly",58:"do",59:"return",60:"throw",61:"emit",62:"revert",63:"var",64:"bool",65:"string",66:"byte",67:"++",68:"--",69:"new",70:":",71:"delete",72:"!",73:"**",74:"<<",75:">>",76:"&&",77:"?",78:"|=",79:"^=",80:"&=",81:"<<=",82:">>=",83:"+=",84:"-=",85:"*=",86:"/=",87:"%=",88:"let",89:":=",90:"=:",91:"switch",92:"case",93:"default",94:"->",95:"callback",96:"override",97:"Int",98:"Uint",99:"Byte",100:"Fixed",101:"Ufixed",102:"BooleanLiteral",103:"DecimalNumber",104:"HexNumber",105:"NumberUnit",106:"HexLiteralFragment",107:"ReservedKeyword",108:"anonymous",109:"break",110:"constant",111:"immutable",112:"continue",113:"leave",114:"external",115:"indexed",116:"internal",117:"payable",118:"private",119:"public",120:"virtual",121:"pure",122:"type",123:"view",124:"global",125:"constructor",126:"fallback",127:"receive",128:"Identifier",129:"StringLiteralFragment",130:"VersionLiteral",131:"WS",132:"COMMENT",133:"LINE_COMMENT"},Ce=["var","bool","address","string","Int","Uint","Byte","Fixed","UFixed"];function Ae(t){return[t.start,t.stop+1]}function Ke(t){const e=(t.text??"").split(/\r?\n/),r=e.length-1;return{start:{line:t.line,column:t.column},end:{line:t.line+r,column:e[r].length+(0===r?t.column:0)}}}function Le(t,e){return t.map((t=>{var r;const s={type:"Identifier"===(r=Re[t.type.toString()])||"from"===r?"Identifier":"TrueLiteral"===r||"FalseLiteral"===r?"Boolean":"VersionLiteral"===r?"Version":"StringLiteral"===r?"String":Ce.includes(r)?"Type":"NumberUnit"===r?"Subdenomination":"DecimalNumber"===r?"Numeric":"HexLiteral"===r?"Hex":"ReservedKeyword"===r?"Reserved":/^\W+$/.test(r)?"Punctuator":"Keyword",value:t.text};return!0===e.range&&(s.range=Ae(t)),!0===e.loc&&(s.loc=Ke(t)),s}))}var Ie=class extends Error{constructor(t){super();const{message:e,line:r,column:s}=t.errors[0];this.message=`${e} (${r}:${s})`,this.errors=t.errors,void 0!==Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack}};function Ne(t,e={}){const r=new c(t);return Le(new S(r).getAllTokens(),e)}function De(t,e={}){const r=new c(t),s=new S(r),i=new l(s),n=new C(i),a=new ke;s.removeErrorListeners(),s.addErrorListener(a),n.removeErrorListeners(),n.addErrorListener(a),n.buildParseTrees=!0;const o=n.sourceUnit(),h=new Se(e);h.visit(o);const u=h.result;if(null===u)throw new Error("ast should never be null");if(!0===e.tokens&&(u.tokens=Le(i.tokens,e)),!0===e.comments&&(u.comments=function(t,e,r){return t.filter((t=>t.channel===e)).map((t=>{const e=t.text.startsWith("//")?{type:"LineComment",value:t.text.slice(2)}:{type:"BlockComment",value:t.text.slice(2,-2)};return!0===r.range&&(e.range=Ae(t)),!0===r.loc&&(e.loc=Ke(t)),e}))}(i.tokens,s.channelNames.indexOf("HIDDEN"),e)),a.hasErrors()){if(!0!==e.tolerant)throw new Ie({errors:a.getErrors()});u.errors=a.getErrors()}return u}function Oe(t,e,r){if(Array.isArray(t)&&t.forEach((t=>Oe(t,e,r))),!function(t){if("object"!=typeof t||null===t)return!1;const e=t;return!(!Object.prototype.hasOwnProperty.call(e,"type")||"string"!=typeof e.type)&&_e.includes(e.type)}(t))return;let s=!0;if(void 0!==e[t.type]&&(s=e[t.type](t,r)),!1===s)return;for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&Oe(t[r],e,t);const i=t.type+":exit";void 0!==e[i]&&e[i](t,r)}return e})();return t},t.exports=s()},3904:(t,e,r)=>{const s=Symbol("SemVer ANY");class i{static get ANY(){return s}constructor(t,e){if(e=n(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),l("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===s?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(t){const e=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=s}toString(){return this.value}test(t){if(l("Comparator.test",t,this.options.loose),this.semver===s||t===s)return!0;if("string"==typeof t)try{t=new h(t,this.options)}catch(t){return!1}return c(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(t.value,e).test(this.value):""===t.operator?""===t.value||new u(this.value,e).test(t.semver):!((e=n(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!t.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!t.operator.startsWith("<"))&&(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))&&!(c(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))&&!(c(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}}t.exports=i;const n=r(8587),{safeRe:a,t:o}=r(9718),c=r(2111),l=r(7272),h=r(3908),u=r(8311)},8311:(t,e,r)=>{const s=/\s+/g;class i{constructor(t,e){if(e=a(e),t instanceof i)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new i(t.raw,e);if(t instanceof o)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().replace(s," "),this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!g(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&w(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");const e=this.set[t];for(let t=0;t<e.length;t++)t>0&&(this.formatted+=" "),this.formatted+=e[t].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){const e=((this.options.includePrerelease&&y)|(this.options.loose&&f))+":"+t,r=n.get(e);if(r)return r;const s=this.options.loose,i=s?h[u.HYPHENRANGELOOSE]:h[u.HYPHENRANGE];t=t.replace(i,K(this.options.includePrerelease)),c("hyphen replace",t),t=t.replace(h[u.COMPARATORTRIM],d),c("comparator trim",t),t=t.replace(h[u.TILDETRIM],p),c("tilde trim",t),t=t.replace(h[u.CARETTRIM],m),c("caret trim",t);let a=t.split(" ").map((t=>v(t,this.options))).join(" ").split(/\s+/).map((t=>A(t,this.options)));s&&(a=a.filter((t=>(c("loose invalid filter",t,this.options),!!t.match(h[u.COMPARATORLOOSE]))))),c("range list",a);const l=new Map,w=a.map((t=>new o(t,this.options)));for(const t of w){if(g(t))return[t];l.set(t.value,t)}l.size>1&&l.has("")&&l.delete("");const x=[...l.values()];return n.set(e,x),x}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Range is required");return this.set.some((r=>x(r,e)&&t.set.some((t=>x(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new l(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(L(this.set[e],t,this.options))return!0;return!1}}t.exports=i;const n=new(r(8794)),a=r(8587),o=r(3904),c=r(7272),l=r(3908),{safeRe:h,t:u,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:m}=r(9718),{FLAG_INCLUDE_PRERELEASE:y,FLAG_LOOSE:f}=r(6874),g=t=>"<0.0.0-0"===t.value,w=t=>""===t.value,x=(t,e)=>{let r=!0;const s=t.slice();let i=s.pop();for(;r&&s.length;)r=s.every((t=>i.intersects(t,e))),i=s.pop();return r},v=(t,e)=>(c("comp",t,e),t=T(t,e),c("caret",t),t=_(t,e),c("tildes",t),t=k(t,e),c("xrange",t),t=C(t,e),c("stars",t),t),b=t=>!t||"x"===t.toLowerCase()||"*"===t,_=(t,e)=>t.trim().split(/\s+/).map((t=>E(t,e))).join(" "),E=(t,e)=>{const r=e.loose?h[u.TILDELOOSE]:h[u.TILDE];return t.replace(r,((e,r,s,i,n)=>{let a;return c("tilde",t,e,r,s,i,n),b(r)?a="":b(s)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?a=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:n?(c("replaceTilde pr",n),a=`>=${r}.${s}.${i}-${n} <${r}.${+s+1}.0-0`):a=`>=${r}.${s}.${i} <${r}.${+s+1}.0-0`,c("tilde return",a),a}))},T=(t,e)=>t.trim().split(/\s+/).map((t=>S(t,e))).join(" "),S=(t,e)=>{c("caret",t,e);const r=e.loose?h[u.CARETLOOSE]:h[u.CARET],s=e.includePrerelease?"-0":"";return t.replace(r,((e,r,i,n,a)=>{let o;return c("caret",t,e,r,i,n,a),b(r)?o="":b(i)?o=`>=${r}.0.0${s} <${+r+1}.0.0-0`:b(n)?o="0"===r?`>=${r}.${i}.0${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${s} <${+r+1}.0.0-0`:a?(c("replaceCaret pr",a),o="0"===r?"0"===i?`>=${r}.${i}.${n}-${a} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n}-${a} <${+r+1}.0.0-0`):(c("no pr"),o="0"===r?"0"===i?`>=${r}.${i}.${n}${s} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n} <${+r+1}.0.0-0`),c("caret return",o),o}))},k=(t,e)=>(c("replaceXRanges",t,e),t.split(/\s+/).map((t=>R(t,e))).join(" ")),R=(t,e)=>{t=t.trim();const r=e.loose?h[u.XRANGELOOSE]:h[u.XRANGE];return t.replace(r,((r,s,i,n,a,o)=>{c("xRange",t,r,s,i,n,a,o);const l=b(i),h=l||b(n),u=h||b(a),d=u;return"="===s&&d&&(s=""),o=e.includePrerelease?"-0":"",l?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(h&&(n=0),a=0,">"===s?(s=">=",h?(i=+i+1,n=0,a=0):(n=+n+1,a=0)):"<="===s&&(s="<",h?i=+i+1:n=+n+1),"<"===s&&(o="-0"),r=`${s+i}.${n}.${a}${o}`):h?r=`>=${i}.0.0${o} <${+i+1}.0.0-0`:u&&(r=`>=${i}.${n}.0${o} <${i}.${+n+1}.0-0`),c("xRange return",r),r}))},C=(t,e)=>(c("replaceStars",t,e),t.trim().replace(h[u.STAR],"")),A=(t,e)=>(c("replaceGTE0",t,e),t.trim().replace(h[e.includePrerelease?u.GTE0PRE:u.GTE0],"")),K=t=>(e,r,s,i,n,a,o,c,l,h,u,d)=>`${r=b(s)?"":b(i)?`>=${s}.0.0${t?"-0":""}`:b(n)?`>=${s}.${i}.0${t?"-0":""}`:a?`>=${r}`:`>=${r}${t?"-0":""}`} ${c=b(l)?"":b(h)?`<${+l+1}.0.0-0`:b(u)?`<${l}.${+h+1}.0-0`:d?`<=${l}.${h}.${u}-${d}`:t?`<${l}.${h}.${+u+1}-0`:`<=${c}`}`.trim(),L=(t,e,r)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(c(t[r].semver),t[r].semver!==o.ANY&&t[r].semver.prerelease.length>0){const s=t[r].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}},3908:(t,e,r)=>{const s=r(7272),{MAX_LENGTH:i,MAX_SAFE_INTEGER:n}=r(6874),{safeRe:a,t:o}=r(9718),c=r(8587),{compareIdentifiers:l}=r(1123);class h{constructor(t,e){if(e=c(e),t instanceof h){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>i)throw new TypeError(`version is longer than ${i} characters`);s("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?a[o.LOOSE]:a[o.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<n)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(s("SemVer.compare",this.version,this.options,t),!(t instanceof h)){if("string"==typeof t&&t===this.version)return 0;t=new h(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof h||(t=new h(t,this.options)),l(this.major,t.major)||l(this.minor,t.minor)||l(this.patch,t.patch)}comparePre(t){if(t instanceof h||(t=new h(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],i=t.prerelease[e];if(s("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return l(r,i)}while(++e)}compareBuild(t){t instanceof h||(t=new h(t,this.options));let e=0;do{const r=this.build[e],i=t.build[e];if(s("build compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return l(r,i)}while(++e)}inc(t,e,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,r),this.inc("pre",e,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,r),this.inc("pre",e,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(r)?1:0;if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let s=this.prerelease.length;for(;--s>=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let s=[e,t];!1===r&&(s=[e]),0===l(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=h},7414:(t,e,r)=>{const s=r(144);t.exports=(t,e)=>{const r=s(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},2111:(t,e,r)=>{const s=r(4641),i=r(3999),n=r(5580),a=r(4089),o=r(7059),c=r(5200);t.exports=(t,e,r,l)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return s(t,r,l);case"!=":return i(t,r,l);case">":return n(t,r,l);case">=":return a(t,r,l);case"<":return o(t,r,l);case"<=":return c(t,r,l);default:throw new TypeError(`Invalid operator: ${e}`)}}},6170:(t,e,r)=>{const s=r(3908),i=r(144),{safeRe:n,t:a}=r(9718);t.exports=(t,e)=>{if(t instanceof s)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){const s=e.includePrerelease?n[a.COERCERTLFULL]:n[a.COERCERTL];let i;for(;(i=s.exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&i.index+i[0].length===r.index+r[0].length||(r=i),s.lastIndex=i.index+i[1].length+i[2].length;s.lastIndex=-1}else r=t.match(e.includePrerelease?n[a.COERCEFULL]:n[a.COERCE]);if(null===r)return null;const o=r[2],c=r[3]||"0",l=r[4]||"0",h=e.includePrerelease&&r[5]?`-${r[5]}`:"",u=e.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${o}.${c}.${l}${h}${u}`,e)}},909:(t,e,r)=>{const s=r(3908);t.exports=(t,e,r)=>{const i=new s(t,r),n=new s(e,r);return i.compare(n)||i.compareBuild(n)}},1763:(t,e,r)=>{const s=r(560);t.exports=(t,e)=>s(t,e,!0)},560:(t,e,r)=>{const s=r(3908);t.exports=(t,e,r)=>new s(t,r).compare(new s(e,r))},1832:(t,e,r)=>{const s=r(144);t.exports=(t,e)=>{const r=s(t,null,!0),i=s(e,null,!0),n=r.compare(i);if(0===n)return null;const a=n>0,o=a?r:i,c=a?i:r,l=!!o.prerelease.length;if(c.prerelease.length&&!l)return c.patch||c.minor?o.patch?"patch":o.minor?"minor":"major":"major";const h=l?"pre":"";return r.major!==i.major?h+"major":r.minor!==i.minor?h+"minor":r.patch!==i.patch?h+"patch":"prerelease"}},4641:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>0===s(t,e,r)},5580:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)>0},4089:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)>=0},3007:(t,e,r)=>{const s=r(3908);t.exports=(t,e,r,i,n)=>{"string"==typeof r&&(n=i,i=r,r=void 0);try{return new s(t instanceof s?t.version:t,r).inc(e,i,n).version}catch(t){return null}}},7059:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)<0},5200:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)<=0},2938:(t,e,r)=>{const s=r(3908);t.exports=(t,e)=>new s(t,e).major},6254:(t,e,r)=>{const s=r(3908);t.exports=(t,e)=>new s(t,e).minor},3999:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>0!==s(t,e,r)},144:(t,e,r)=>{const s=r(3908);t.exports=(t,e,r=!1)=>{if(t instanceof s)return t;try{return new s(t,e)}catch(t){if(!r)return null;throw t}}},4493:(t,e,r)=>{const s=r(3908);t.exports=(t,e)=>new s(t,e).patch},1729:(t,e,r)=>{const s=r(144);t.exports=(t,e)=>{const r=s(t,e);return r&&r.prerelease.length?r.prerelease:null}},9970:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(e,t,r)},4277:(t,e,r)=>{const s=r(909);t.exports=(t,e)=>t.sort(((t,r)=>s(r,t,e)))},7638:(t,e,r)=>{const s=r(8311);t.exports=(t,e,r)=>{try{e=new s(e,r)}catch(t){return!1}return e.test(t)}},6308:(t,e,r)=>{const s=r(909);t.exports=(t,e)=>t.sort(((t,r)=>s(t,r,e)))},6953:(t,e,r)=>{const s=r(144);t.exports=(t,e)=>{const r=s(t,e);return r?r.version:null}},9589:(t,e,r)=>{const s=r(9718),i=r(6874),n=r(3908),a=r(1123),o=r(144),c=r(6953),l=r(7414),h=r(3007),u=r(1832),d=r(2938),p=r(6254),m=r(4493),y=r(1729),f=r(560),g=r(9970),w=r(1763),x=r(909),v=r(6308),b=r(4277),_=r(5580),E=r(7059),T=r(4641),S=r(3999),k=r(4089),R=r(5200),C=r(2111),A=r(6170),K=r(3904),L=r(8311),I=r(7638),N=r(7631),D=r(9628),O=r(270),P=r(1261),q=r(3874),Y=r(7075),F=r(5571),M=r(5342),U=r(6780),B=r(2525),V=r(5032);t.exports={parse:o,valid:c,clean:l,inc:h,diff:u,major:d,minor:p,patch:m,prerelease:y,compare:f,rcompare:g,compareLoose:w,compareBuild:x,sort:v,rsort:b,gt:_,lt:E,eq:T,neq:S,gte:k,lte:R,cmp:C,coerce:A,Comparator:K,Range:L,satisfies:I,toComparators:N,maxSatisfying:D,minSatisfying:O,minVersion:P,validRange:q,outside:Y,gtr:F,ltr:M,intersects:U,simplifyRange:B,subset:V,SemVer:n,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},6874:t=>{const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7272:t=>{const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=e},1123:t=>{const e=/^[0-9]+$/,r=(t,r)=>{const s=e.test(t),i=e.test(r);return s&&i&&(t=+t,r=+r),t===r?0:s&&!i?-1:i&&!s?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},8794:t=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(t){const e=this.map.get(t);return void 0===e?void 0:(this.map.delete(t),this.map.set(t,e),e)}delete(t){return this.map.delete(t)}set(t,e){if(!this.delete(t)&&void 0!==e){if(this.map.size>=this.max){const t=this.map.keys().next().value;this.delete(t)}this.map.set(t,e)}return this}}},8587:t=>{const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},9718:(t,e,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:n}=r(6874),a=r(7272),o=(e=t.exports={}).re=[],c=e.safeRe=[],l=e.src=[],h=e.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",n],[d,i]],m=(t,e,r)=>{const s=(t=>{for(const[e,r]of p)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=u++;a(t,i,e),h[t]=i,l[i]=e,o[i]=new RegExp(e,r?"g":void 0),c[i]=new RegExp(s,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${l[h.NUMERICIDENTIFIER]})\\.(${l[h.NUMERICIDENTIFIER]})\\.(${l[h.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${l[h.NUMERICIDENTIFIERLOOSE]})\\.(${l[h.NUMERICIDENTIFIERLOOSE]})\\.(${l[h.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${l[h.NUMERICIDENTIFIER]}|${l[h.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${l[h.NUMERICIDENTIFIERLOOSE]}|${l[h.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${l[h.PRERELEASEIDENTIFIER]}(?:\\.${l[h.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${l[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[h.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${l[h.BUILDIDENTIFIER]}(?:\\.${l[h.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${l[h.MAINVERSION]}${l[h.PRERELEASE]}?${l[h.BUILD]}?`),m("FULL",`^${l[h.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${l[h.MAINVERSIONLOOSE]}${l[h.PRERELEASELOOSE]}?${l[h.BUILD]}?`),m("LOOSE",`^${l[h.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${l[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${l[h.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${l[h.XRANGEIDENTIFIER]})(?:\\.(${l[h.XRANGEIDENTIFIER]})(?:\\.(${l[h.XRANGEIDENTIFIER]})(?:${l[h.PRERELEASE]})?${l[h.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${l[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[h.XRANGEIDENTIFIERLOOSE]})(?:${l[h.PRERELEASELOOSE]})?${l[h.BUILD]}?)?)?`),m("XRANGE",`^${l[h.GTLT]}\\s*${l[h.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${l[h.GTLT]}\\s*${l[h.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),m("COERCE",`${l[h.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",l[h.COERCEPLAIN]+`(?:${l[h.PRERELEASE]})?`+`(?:${l[h.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",l[h.COERCE],!0),m("COERCERTLFULL",l[h.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${l[h.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",m("TILDE",`^${l[h.LONETILDE]}${l[h.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${l[h.LONETILDE]}${l[h.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${l[h.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",m("CARET",`^${l[h.LONECARET]}${l[h.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${l[h.LONECARET]}${l[h.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${l[h.GTLT]}\\s*(${l[h.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${l[h.GTLT]}\\s*(${l[h.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${l[h.GTLT]}\\s*(${l[h.LOOSEPLAIN]}|${l[h.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${l[h.XRANGEPLAIN]})\\s+-\\s+(${l[h.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${l[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[h.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5571:(t,e,r)=>{const s=r(7075);t.exports=(t,e,r)=>s(t,e,">",r)},6780:(t,e,r)=>{const s=r(8311);t.exports=(t,e,r)=>(t=new s(t,r),e=new s(e,r),t.intersects(e,r))},5342:(t,e,r)=>{const s=r(7075);t.exports=(t,e,r)=>s(t,e,"<",r)},9628:(t,e,r)=>{const s=r(3908),i=r(8311);t.exports=(t,e,r)=>{let n=null,a=null,o=null;try{o=new i(e,r)}catch(t){return null}return t.forEach((t=>{o.test(t)&&(n&&-1!==a.compare(t)||(n=t,a=new s(n,r)))})),n}},270:(t,e,r)=>{const s=r(3908),i=r(8311);t.exports=(t,e,r)=>{let n=null,a=null,o=null;try{o=new i(e,r)}catch(t){return null}return t.forEach((t=>{o.test(t)&&(n&&1!==a.compare(t)||(n=t,a=new s(n,r)))})),n}},1261:(t,e,r)=>{const s=r(3908),i=r(8311),n=r(5580);t.exports=(t,e)=>{t=new i(t,e);let r=new s("0.0.0");if(t.test(r))return r;if(r=new s("0.0.0-0"),t.test(r))return r;r=null;for(let e=0;e<t.set.length;++e){const i=t.set[e];let a=null;i.forEach((t=>{const e=new s(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":a&&!n(e,a)||(a=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!a||r&&!n(r,a)||(r=a)}return r&&t.test(r)?r:null}},7075:(t,e,r)=>{const s=r(3908),i=r(3904),{ANY:n}=i,a=r(8311),o=r(7638),c=r(5580),l=r(7059),h=r(5200),u=r(4089);t.exports=(t,e,r,d)=>{let p,m,y,f,g;switch(t=new s(t,d),e=new a(e,d),r){case">":p=c,m=h,y=l,f=">",g=">=";break;case"<":p=l,m=u,y=c,f="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(t,e,d))return!1;for(let r=0;r<e.set.length;++r){const s=e.set[r];let a=null,o=null;if(s.forEach((t=>{t.semver===n&&(t=new i(">=0.0.0")),a=a||t,o=o||t,p(t.semver,a.semver,d)?a=t:y(t.semver,o.semver,d)&&(o=t)})),a.operator===f||a.operator===g)return!1;if((!o.operator||o.operator===f)&&m(t,o.semver))return!1;if(o.operator===g&&y(t,o.semver))return!1}return!0}},2525:(t,e,r)=>{const s=r(7638),i=r(560);t.exports=(t,e,r)=>{const n=[];let a=null,o=null;const c=t.sort(((t,e)=>i(t,e,r)));for(const t of c)s(t,e,r)?(o=t,a||(a=t)):(o&&n.push([a,o]),o=null,a=null);a&&n.push([a,null]);const l=[];for(const[t,e]of n)t===e?l.push(t):e||t!==c[0]?e?t===c[0]?l.push(`<=${e}`):l.push(`${t} - ${e}`):l.push(`>=${t}`):l.push("*");const h=l.join(" || "),u="string"==typeof e.raw?e.raw:String(e);return h.length<u.length?h:e}},5032:(t,e,r)=>{const s=r(8311),i=r(3904),{ANY:n}=i,a=r(7638),o=r(560),c=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],h=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===n){if(1===e.length&&e[0].semver===n)return!0;t=r.includePrerelease?c:l}if(1===e.length&&e[0].semver===n){if(r.includePrerelease)return!0;e=l}const s=new Set;let i,h,p,m,y,f,g;for(const e of t)">"===e.operator||">="===e.operator?i=u(i,e,r):"<"===e.operator||"<="===e.operator?h=d(h,e,r):s.add(e.semver);if(s.size>1)return null;if(i&&h){if(p=o(i.semver,h.semver,r),p>0)return null;if(0===p&&(">="!==i.operator||"<="!==h.operator))return null}for(const t of s){if(i&&!a(t,String(i),r))return null;if(h&&!a(t,String(h),r))return null;for(const s of e)if(!a(t,String(s),r))return!1;return!0}let w=!(!h||r.includePrerelease||!h.semver.prerelease.length)&&h.semver,x=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;w&&1===w.prerelease.length&&"<"===h.operator&&0===w.prerelease[0]&&(w=!1);for(const t of e){if(g=g||">"===t.operator||">="===t.operator,f=f||"<"===t.operator||"<="===t.operator,i)if(x&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===x.major&&t.semver.minor===x.minor&&t.semver.patch===x.patch&&(x=!1),">"===t.operator||">="===t.operator){if(m=u(i,t,r),m===t&&m!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(t),r))return!1;if(h)if(w&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch&&(w=!1),"<"===t.operator||"<="===t.operator){if(y=d(h,t,r),y===t&&y!==h)return!1}else if("<="===h.operator&&!a(h.semver,String(t),r))return!1;if(!t.operator&&(h||i)&&0!==p)return!1}return!(i&&f&&!h&&0!==p||h&&g&&!i&&0!==p||x||w)},u=(t,e,r)=>{if(!t)return e;const s=o(t.semver,e.semver,r);return s>0?t:s<0||">"===e.operator&&">="===t.operator?e:t},d=(t,e,r)=>{if(!t)return e;const s=o(t.semver,e.semver,r);return s<0?t:s>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>{if(t===e)return!0;t=new s(t,r),e=new s(e,r);let i=!1;t:for(const s of t.set){for(const t of e.set){const e=h(s,t,r);if(i=i||null!==e,e)continue t}if(i)return!1}return!0}},7631:(t,e,r)=>{const s=r(8311);t.exports=(t,e)=>new s(t,e).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")))},3874:(t,e,r)=>{const s=r(8311);t.exports=(t,e)=>{try{return new s(t,e).range||"*"}catch(t){return null}}},7058:(t,e,r)=>{const s=r(1571),i=r(5237),n=t.exports=(t,e)=>{const r={...e,block:!0,line:!0};return s(i(t,r),r)};n.block=(t,e)=>{const r={...e,block:!0};return s(i(t,r),r)},n.line=(t,e)=>{const r={...e,line:!0};return s(i(t,r),r)},n.first=(t,e)=>{const r={...e,block:!0,line:!0,first:!0};return s(i(t,r),r)},n.parse=i},4044:t=>{class e{constructor(t){this.type=t.type,t.value&&(this.value=t.value),t.match&&(this.match=t.match),this.newline=t.newline||""}get protected(){return Boolean(this.match)&&"!"===this.match[1]}}t.exports={Node:e,Block:class extends e{constructor(t){super(t),this.nodes=t.nodes||[]}push(t){this.nodes.push(t)}get protected(){return this.nodes.length>0&&!0===this.nodes[0].protected}}}},1571:t=>{t.exports=(t,e={})=>{const r=!0===e.safe||!0===e.keepProtected;let s=!1;const i=(t,n)=>{let a,o,c="";for(const n of t.nodes)switch(n.type){case"block":if(e.first&&!0===s){c+=i(n,t);break}if(!0===e.preserveNewlines){a=i(n,t),o=a.split("\n"),c+="\n".repeat(o.length-1);break}if(!0===r&&!0===n.protected){c+=i(n,t);break}s=!0;break;case"line":if(e.first&&!0===s){c+=n.value;break}!0===r&&!0===n.protected&&(c+=n.value),s=!0;break;default:c+=n.value||""}return c};return i(t)}},9545:(t,e)=>{e.ada={LINE_REGEX:/^--.*/},e.apl={LINE_REGEX:/^⍝.*/},e.applescript={BLOCK_OPEN_REGEX:/^\(\*/,BLOCK_CLOSE_REGEX:/^\*\)/},e.csharp={LINE_REGEX:/^\/\/.*/},e.haskell={BLOCK_OPEN_REGEX:/^\{-/,BLOCK_CLOSE_REGEX:/^-\}/,LINE_REGEX:/^--.*/},e.html={BLOCK_OPEN_REGEX:/^\n*<!--(?!-?>)/,BLOCK_CLOSE_REGEX:/^(?<!(?:<!-))-->/,BLOCK_CLOSE_LOOSE_REGEX:/^(?<!(?:<!-))--\s*>/,BLOCK_CLOSE_STRICT_NEWLINE_REGEX:/^(?<!(?:<!-))-->(\s*\n+|\n*)/,BLOCK_CLOSE_STRICT_LOOSE_REGEX:/^(?<!(?:<!-))--\s*>(\s*\n+|\n*)/},e.javascript={BLOCK_OPEN_REGEX:/^\/\*\*?(!?)/,BLOCK_CLOSE_REGEX:/^\*\/(\n?)/,LINE_REGEX:/^\/\/(!?).*/},e.lua={BLOCK_OPEN_REGEX:/^--\[\[/,BLOCK_CLOSE_REGEX:/^\]\]/,LINE_REGEX:/^--.*/},e.matlab={BLOCK_OPEN_REGEX:/^%{/,BLOCK_CLOSE_REGEX:/^%}/,LINE_REGEX:/^%.*/},e.perl={LINE_REGEX:/^#.*/},e.php={...e.javascript,LINE_REGEX:/^(#|\/\/).*?(?=\?>|\n)/},e.python={BLOCK_OPEN_REGEX:/^"""/,BLOCK_CLOSE_REGEX:/^"""/,LINE_REGEX:/^#.*/},e.ruby={BLOCK_OPEN_REGEX:/^=begin/,BLOCK_CLOSE_REGEX:/^=end/,LINE_REGEX:/^#.*/},e.shebang=e.hashbang={LINE_REGEX:/^#!.*/},e.c=e.javascript,e.csharp=e.javascript,e.css=e.javascript,e.java=e.javascript,e.js=e.javascript,e.less=e.javascript,e.pascal=e.applescript,e.ocaml=e.applescript,e.sass=e.javascript,e.sql=e.ada,e.swift=e.javascript,e.ts=e.javascript,e.typscript=e.javascript,e.xml=e.html},5237:(t,e,r)=>{const{Node:s,Block:i}=r(4044),n=r(9545),a=/^\\./,o=/^(['"`])((?:\\.|[^\1])+?)(\1)/,c=/^\r*\n/;t.exports=(t,e={})=>{if("string"!=typeof t)throw new TypeError("Expected input to be a string");const r=new i({type:"root",nodes:[]}),l=[r],h=(e.language||"javascript").toLowerCase(),u=n[h];if(void 0===u)throw new Error(`Language "${h}" is not supported by strip-comments`);const{LINE_REGEX:d,BLOCK_OPEN_REGEX:p,BLOCK_CLOSE_REGEX:m}=u;let y,f,g=r,w=t,x=!1;[p,m].filter(Boolean).every((t=>'^"""'===t.source))&&(x=!0);const v=(t=w[0]||"")=>(w=w.slice(t.length),t),b=(t,e="text")=>{const r=t.exec(w);if(r)return v(r[0]),{type:e,value:r[0],match:r}},_=t=>{f&&"text"===f.type&&"text"===t.type?f.value+=t.value:(g.push(t),t.nodes&&(l.push(t),g=t),f=t)},E=()=>{if("root"===g.type)throw new SyntaxError("Unclosed block comment");l.pop(),g=l[l.length-1]};for(;""!==w;)(y=b(a,"text"))?_(new s(y)):"block"===g.type||f&&/\w$/.test(f.value)||x&&w.startsWith('"""')||!(y=b(o,"text"))?(y=b(c,"newline"))?_(new s(y)):!p||!e.block||x&&"block"===g.type||!(y=b(p,"open"))?m&&"block"===g.type&&e.block&&(y=b(m,"close"))?(y.newline=y.match[1]||"",_(new s(y)),E()):d&&"block"!==g.type&&e.line&&(y=b(d,"line"))||(y=b(/^[a-zABD-Z0-9\t ]+/,"text"))?_(new s(y)):_(new s({type:"text",value:v(w[0])})):(_(new i({type:"block"})),_(new s(y))):_(new s(y));return r}},8965:(t,e,r)=>{r.d(e,{A:()=>n});const s=new Set(["loc","range","comments","isEmpty"]);function i(){}i.ignoredProperties=s;const n=i},8156:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>R});var i=r(4687),n=r(1815),a=r(8965),o=r(7671),c=r(1410),l=r(4242),h=r(1071),u=r(3927),d=r(466),p=r(7540),m=r(9060),y=t([n,u,d,p]);[n,u,d,p]=y.then?(await y)():y;const f="slang-solidity",g="solidity-parse",w="slang-ast",x="solidity-ast",v=[{linguistLanguageId:237469032,name:"Solidity",aceMode:"text",tmScope:"source.solidity",extensions:[".sol"],parsers:[f,g],vscodeLanguageIds:["solidity"]}],b=Object.assign({astFormat:x,parse:l.A},o.A),_={[f]:{astFormat:w,parse:u.A,locStart:m.z,locEnd:m.I},[g]:b},E=t=>"string"!=typeof t&&void 0!==t&&t.kind&&!(0,p.C)(t),T={canAttachComment:t=>"string"==typeof t.type&&"BlockComment"!==t.type&&"LineComment"!==t.type,handleComments:{ownLine:i.bd,endOfLine:i.rN,remaining:i.F7},isBlockComment:i.tN,massageAstNode:a.A,print:h.A,printComment:i.X5},S={canAttachComment:E,handleComments:n.X,isBlockComment:p.t,massageAstNode:a.A,print:d.A,printComment:n.o},k={bracketSpacing:!1,tabWidth:4},R={languages:v,parsers:_,printers:{[w]:S,[x]:T},options:c.A,defaultOptions:k};s()}catch(t){s(t)}}))},1410:(t,e,r)=>{r.d(e,{A:()=>n});const s="Global",i="Common",n={printWidth:{category:s,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},tabWidth:{type:"int",category:s,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{category:s,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},bracketSpacing:{category:i,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:i,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},experimentalTernaries:{category:"JavaScript",type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},compiler:{category:"Solidity",type:"string",description:"The Solidity compiler version to help us avoid critical errors in format for the wrong version."}}},7611:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{X:()=>l});var i=r(769),n=t([i]);function a(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,l={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,ast:s,isLastComment:n};return i.A.some((t=>t(l)))}function o(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,l={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,ast:s,isLastComment:n};return i.A.some((t=>t(l)))}function c(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,l={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,ast:s,isLastComment:n};return i.A.some((t=>t(l)))}i=(n.then?(await n)():n)[0];const l={ownLine:a,endOfLine:o,remaining:c};s()}catch(h){s(h)}}))},9111:(t,e,r)=>{r.d(e,{A:()=>a});var s=r(838);const{addDanglingComment:i,addLeadingComment:n}=s.util;function a(t,e){0===t.items.length?i(t,e,!1):n(t.items[0],e)}},7085:(t,e,r)=>{r.d(e,{A:()=>a});var s=r(838);const{addDanglingComment:i,addTrailingComment:n}=s.util;function a(t,e){0===t.items.length?i(t,e,!1):n(t.items[t.items.length-1],e)}},2038:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(4675),n=r(9111),a=r(7085),o=t([i]);function c({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.Block&&((null==t?void 0:t.kind)===i.q3.Statements?((0,a.A)(t,s),!0):(null==r?void 0:r.kind)===i.q3.Statements&&((0,n.A)(r,s),!0))}i=(o.then?(await o)():o)[0],s()}catch(l){s(l)}}))},4597:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(4675),n=r(838),a=r(9060),o=r(7085),c=t([i]);i=(c.then?(await c)():c)[0];const{addLeadingComment:l,addTrailingComment:h}=n.util;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){if((null==r?void 0:r.kind)!==i.q3.ContractDefinition)return!1;const u=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c));return(null==s?void 0:s.kind)===i.q3.InheritanceSpecifier||(null==s?void 0:s.kind)===i.q3.ContractMembers&&"{"!==u?(l(r,c),!0):(null==e?void 0:e.kind)===i.q3.ContractMembers?((0,o.A)(e,c),!0):"{"===u&&(null==e?void 0:e.kind)===i.q3.InheritanceSpecifier&&e.types.items.length>0&&(h(e.types.items[e.types.items.length-1],c),!0)}s()}catch(d){s(d)}}))},7265:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(4675),n=r(838),a=r(9111),o=t([i]);i=(o.then?(await o)():o)[0];const{addLeadingComment:c}=n.util;function l({enclosingNode:t,followingNode:e,comment:r}){return!((null==t?void 0:t.kind)!==i.q3.ElseBranch||!e||e!==t.body||e.variant.kind!==i.q3.IfStatement||(e.variant.body.variant.kind===i.q3.Block?(0,a.A)(e.variant.body.variant.statements,r):c(e.variant.body.variant,r),0))}s()}catch(h){s(h)}}))},8534:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(4675),n=r(838),a=r(9060),o=r(9111),c=t([i]);i=(c.then?(await c)():c)[0];const{addLeadingComment:l,addTrailingComment:h}=n.util;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){return!((null==r?void 0:r.kind)!==i.q3.IfStatement||!s)&&(")"===n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c))?(h(e,c),!0):e===r.body&&s===r.elseBranch?(h(e.variant,c),!0):s.kind===i.q3.IfStatement?(s.body.variant.kind===i.q3.Block?(0,o.A)(s.body.variant.statements,c):l(s.body.variant,c),!0):r.body===s&&(s.variant.kind===i.q3.Block?(0,o.A)(s.variant.statements,c):l(s,c),!0))}s()}catch(d){s(d)}}))},6318:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(4675),n=r(838),a=r(9060),o=r(9111),c=r(7085),l=t([i]);function h({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:l}){if((null==r?void 0:r.kind)!==i.q3.InterfaceDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(l));return(null==e?void 0:e.kind)===i.q3.InterfaceMembers?((0,c.A)(e,l),!0):"{"===h&&(null==s?void 0:s.kind)===i.q3.InterfaceMembers&&((0,o.A)(s,l),!0)}i=(l.then?(await l)():l)[0],s()}catch(u){s(u)}}))},6718:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(4675),n=r(838),a=r(9060),o=r(9111),c=r(7085),l=t([i]);function h({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:l}){if((null==r?void 0:r.kind)!==i.q3.LibraryDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(l));return(null==e?void 0:e.kind)===i.q3.LibraryMembers?((0,c.A)(e,l),!0):"{"===h&&(null==s?void 0:s.kind)===i.q3.LibraryMembers&&((0,o.A)(s,l),!0)}i=(l.then?(await l)():l)[0],s()}catch(u){s(u)}}))},4923:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(4675),n=r(838),a=r(9060),o=r(9111),c=t([i]);i=(c.then?(await c)():c)[0];const{addTrailingComment:l}=n.util;function h({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){if((null==r?void 0:r.kind)!==i.q3.ModifierInvocation)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c));return(null==e?void 0:e.kind)===i.q3.IdentifierPath&&"("===h&&(null==s?void 0:s.kind)===i.q3.ArgumentsDeclaration&&s.variant.kind===i.q3.PositionalArgumentsDeclaration&&(0===s.variant.arguments.items.length?l(r,c):(0,o.A)(s.variant.arguments,c),!0)}s()}catch(u){s(u)}}))},2120:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(4675),n=r(9111),a=r(7085),o=t([i]);function c({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.ParametersDeclaration&&((null==t?void 0:t.kind)===i.q3.Parameters?((0,a.A)(t,s),!0):(null==r?void 0:r.kind)===i.q3.Parameters&&((0,n.A)(r,s),!0))}i=(o.then?(await o)():o)[0],s()}catch(l){s(l)}}))},3273:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(4675),n=r(9111),a=r(7085),o=t([i]);function c({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.PositionalArgumentsDeclaration&&((null==t?void 0:t.kind)===i.q3.PositionalArguments?((0,a.A)(t,s),!0):(null==r?void 0:r.kind)===i.q3.PositionalArguments&&((0,n.A)(r,s),!0))}i=(o.then?(await o)():o)[0],s()}catch(l){s(l)}}))},5710:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(4675),n=r(838),a=r(9060),o=r(9111),c=t([i]);i=(c.then?(await c)():c)[0];const{addLeadingComment:l,addTrailingComment:h}=n.util;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){return!((null==r?void 0:r.kind)!==i.q3.WhileStatement||!s)&&(")"===n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c))||r.condition===e?(h(e,c),!0):r.body===s&&(s.variant.kind===i.q3.Block?(0,o.A)(s.variant.statements,c):l(s,c),!0))}s()}catch(d){s(d)}}))},543:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(4675),n=r(838),a=t([i]);i=(a.then?(await a)():a)[0];const{addLeadingComment:o,addDanglingComment:c}=n.util;function l({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.YulBlock&&((null==t?void 0:t.kind)===i.q3.YulStatements&&0===t.items.length?(c(t,s,!1),!0):(null==r?void 0:r.kind)===i.q3.YulStatements&&r.items.length>0&&(o(r.items[0],s),!0))}s()}catch(h){s(h)}}))},769:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>f});var i=r(2038),n=r(4597),a=r(7265),o=r(8534),c=r(6318),l=r(6718),h=r(4923),u=r(2120),d=r(3273),p=r(5710),m=r(543),y=t([i,n,a,o,c,l,h,u,d,p,m]);[i,n,a,o,c,l,h,u,d,p,m]=y.then?(await y)():y;const f=[i.A,n.A,a.A,o.A,c.A,l.A,h.A,u.A,d.A,p.A,m.A];s()}catch(t){s(t)}}))},1815:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{X:()=>i.X,o:()=>n.X});var i=r(7611),n=r(7431),a=t([i,n]);[i,n]=a.then?(await a)():a,s()}catch(t){s(t)}}))},7431:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{X:()=>a});var i=r(7540),n=t([i]);function a(t){const e=t.getNode();if((0,i.C)(e))return e.print();throw new Error(`Not a comment: ${JSON.stringify(e)}`)}i=(n.then?(await n)():n)[0],s()}catch(o){s(o)}}))},1475:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Y:()=>c});var i=r(4675),n=r(801),a=r(2291),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.AbicoderPragma;const r=(0,n.s)(t,e),{offsets:s}=r;this.version=new a.g(t.version,s[0]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["abicoder ",t.call(e,"version")]}}s()}catch(t){s(t)}}))},2054:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>u});var i=r(4675),n=r(4209),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["%"]);class u{constructor(t,e,r){this.kind=i.q3.AdditiveExpression;let s=(0,o.s)(t,e);const{offsets:n}=s;this.leftOperand=new c.r(t.leftOperand,n[0],r),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,n[1],r),s=(0,o.D)(s,[this.leftOperand,this.rightOperand]),this.comments=s.comments,this.loc=s.loc,this.leftOperand=h(this.leftOperand),this.rightOperand=h(this.rightOperand)}print(t,e,r){return(0,n.W)(this,t,e,r)}}s()}catch(t){s(t)}}))},7614:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>c});var i=r(4675),n=r(801),a=r(1e3),o=t([i,n]);[i,n]=o.then?(await o)():o;class c{constructor(t,e){var r;this.kind=i.q3.AddressType;const s=(0,n.s)(t,e);this.payableKeyword=null===(r=t.payableKeyword)||void 0===r?void 0:r.unparse(),this.comments=s.comments,this.loc=s.loc}print(){return(0,a.I)(" ",["address",this.payableKeyword])}}s()}catch(t){s(t)}}))},2745:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>l});var i=r(4675),n=r(8409),a=r(801),o=r(8926),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.AndExpression;let s=(0,a.s)(t,e);const{offsets:n}=s;this.leftOperand=new o.r(t.leftOperand,n[0],r),this.operator=t.operator.unparse(),this.rightOperand=new o.r(t.rightOperand,n[1],r),s=(0,a.D)(s,[this.leftOperand,this.rightOperand]),this.comments=s.comments,this.loc=s.loc}print(t,e,r){return(0,n.a)(this,t,e,r)}}s()}catch(t){s(t)}}))},5756:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>l});var i=r(4675),n=r(801),a=r(9182),o=r(5451),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.ArgumentsDeclaration;let s=(0,n.s)(t,e);const{offsets:c}=s;switch(t.variant.cst.kind){case i.q3.PositionalArgumentsDeclaration:this.variant=new a.V(t.variant,c[0],r);break;case i.q3.NamedArgumentsDeclaration:this.variant=new o.Q(t.variant,c[0],r);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},6233:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>h});var i=r(838),n=r(4675),a=r(801),o=r(3857),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{group:l}=i.doc.builders;class h{constructor(t,e,r){this.kind=n.q3.ArrayExpression;let s=(0,a.s)(t,e);const{offsets:i}=s;this.items=new o.A(t.items,i[0],r),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return l(["[",t.call(e,"items"),"]"])}}s()}catch(t){s(t)}}))},4968:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{f:()=>l});var i=r(4675),n=r(801),a=r(9979),o=r(8926),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.ArrayTypeName;let s=(0,n.s)(t,e);const{offsets:c}=s;this.operand=new a.C(t.operand,c[0],r),t.index&&(this.index=new o.r(t.index,c[1],r)),s=(0,n.D)(s,[this.operand,this.index]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"operand"),"[",t.call(e,"index"),"]"]}}s()}catch(t){s(t)}}))},3857:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(8926),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.ArrayValues;let s=(0,a.s)(t,e,!0);const{offsets:n}=s;this.items=t.items.map(((t,e)=>new o.r(t,n[e],r))),this.separators=t.separators.map((t=>t.unparse())),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},7041:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Y:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(3562),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.AssemblyFlags;let s=(0,a.s)(t,e,!0);const{offsets:n}=s;this.items=t.items.map(((t,e)=>new o.L(t,n[e],r))),this.separators=t.separators.map((t=>t.unparse())),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},8085:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{e:()=>c});var i=r(4675),n=r(801),a=r(7041),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.AssemblyFlagsDeclaration;let s=(0,n.s)(t,e);const{offsets:o}=s;this.flags=new a.Y(t.flags,o[0],r),s=(0,n.D)(s,[this.flags]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["(",t.call(e,"flags"),")"]}}s()}catch(t){s(t)}}))},7299:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{I:()=>u});var i=r(4675),n=r(801),a=r(1e3),o=r(3562),c=r(8085),l=r(2319),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;class u{constructor(t,e,r){this.kind=i.q3.AssemblyStatement;let s=(0,n.s)(t,e);const{offsets:a}=s;let h=0;t.label&&(this.label=new o.L(t.label,a[h],r),h+=1),t.flags&&(this.flags=new c.e(t.flags,a[h],r),h+=1),this.body=new l.M(t.body,a[h],r),s=(0,n.D)(s,[this.label,this.flags,this.body]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,a.I)(" ",["assembly",t.call(e,"label"),t.call(e,"flags"),t.call(e,"body")])}}s()}catch(t){s(t)}}))},5287:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{k:()=>p});var i=r(4675),n=r(838),a=r(1376),o=r(801),c=r(8926),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{group:h,indent:u,line:d}=n.doc.builders;class p{constructor(t,e,r){this.kind=i.q3.AssignmentExpression;let s=(0,o.s)(t,e);const{offsets:n}=s;this.leftOperand=new c.r(t.leftOperand,n[0],r),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,n[1],r),s=(0,o.D)(s,[this.leftOperand,this.rightOperand]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"leftOperand"),` ${this.operator}`,this.rightOperand.variant.kind!==i.hP.Identifier&&(0,a.D)(this.rightOperand.variant)?h(u([d,t.call(e,"rightOperand")])):[" ",t.call(e,"rightOperand")]]}}s()}catch(t){s(t)}}))},7162:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{J:()=>u});var i=r(4675),n=r(4209),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["+","-","*","/","**","<<",">>"]);class u{constructor(t,e,r){this.kind=i.q3.BitwiseAndExpression;let s=(0,o.s)(t,e);const{offsets:n}=s;this.leftOperand=new c.r(t.leftOperand,n[0],r),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,n[1],r),s=(0,o.D)(s,[this.leftOperand,this.rightOperand]),this.comments=s.comments,this.loc=s.loc,this.leftOperand=h(this.leftOperand),this.rightOperand=h(this.rightOperand)}print(t,e,r){return(0,n.W)(this,t,e,r)}}s()}catch(t){s(t)}}))},7438:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{J:()=>u});var i=r(4675),n=r(4209),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["+","-","*","/","**","<<",">>","&","^"]);class u{constructor(t,e,r){this.kind=i.q3.BitwiseOrExpression;let s=(0,o.s)(t,e);const{offsets:n}=s;this.leftOperand=new c.r(t.leftOperand,n[0],r),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,n[1],r),s=(0,o.D)(s,[this.leftOperand,this.rightOperand]),this.comments=s.comments,this.loc=s.loc,this.leftOperand=h(this.leftOperand),this.rightOperand=h(this.rightOperand)}print(t,e,r){return(0,n.W)(this,t,e,r)}}s()}catch(t){s(t)}}))},4654:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>u});var i=r(4675),n=r(4209),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["+","-","*","/","**","<<",">>","&"]);class u{constructor(t,e,r){this.kind=i.q3.BitwiseXorExpression;let s=(0,o.s)(t,e);const{offsets:n}=s;this.leftOperand=new c.r(t.leftOperand,n[0],r),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,n[1],r),s=(0,o.D)(s,[this.leftOperand,this.rightOperand]),this.comments=s.comments,this.loc=s.loc,this.leftOperand=h(this.leftOperand),this.rightOperand=h(this.rightOperand)}print(t,e,r){return(0,n.W)(this,t,e,r)}}s()}catch(t){s(t)}}))},6511:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{e:()=>c});var i=r(4675),n=r(801),a=r(1322),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.Block;let s=(0,n.s)(t,e);const{offsets:o}=s;this.statements=new a.$(t.statements,o[0],r),s=(0,n.D)(s,[this.statements]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["{",t.call(e,"statements"),"}"]}}s()}catch(t){s(t)}}))},3144:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{V:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.BreakStatement;const r=(0,n.s)(t,e);this.comments=r.comments,this.loc=r.loc}print(){return"break;"}}s()}catch(t){s(t)}}))},6380:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>d});var i=r(838),n=r(4675),a=r(7578),o=r(801),c=r(316),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{line:h,softline:u}=i.doc.builders;class d{constructor(t,e,r){this.kind=n.q3.CallOptions;let s=(0,o.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new c.j(t,i[e],r))),this.separators=t.separators.map((t=>t.unparse())),s=(0,o.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(t){s(t)}}))},2514:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{X:()=>l});var i=r(4675),n=r(801),a=r(8926),o=r(6380),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.CallOptionsExpression;let s=(0,n.s)(t,e);const{offsets:c}=s;this.operand=new a.r(t.operand,c[0],r),this.options=new o.p(t.options,c[1],r),s=(0,n.D)(s,[this.operand,this.options]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"operand"),"{",t.call(e,"options"),"}"]}}s()}catch(t){s(t)}}))},1292:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{D:()=>l});var i=r(4675),n=r(801),a=r(8152),o=r(6511),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.CatchClause;let s=(0,n.s)(t,e);const{offsets:c}=s;let l=0;t.error&&(this.error=new a.$(t.error,c[l],r),l+=1),this.body=new o.e(t.body,c[l],r),s=(0,n.D)(s,[this.error,this.body]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["catch ",t.call(e,"error"),t.call(e,"body")]}}s()}catch(t){s(t)}}))},8152:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(2291),c=r(9002),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{group:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.CatchClauseError;let s=(0,a.s)(t,e);const{offsets:i}=s;let l=0;t.name&&(this.name=new o.g(t.name,i[l]),l+=1),this.parameters=new c.Z(t.parameters,i[l],r),s=(0,a.D)(s,[this.parameters]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"name"),h(t.call(e,"parameters"))," "]}}s()}catch(t){s(t)}}))},7259:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{m:()=>h});var i=r(838),n=r(4675),a=r(801),o=r(1292),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{join:l}=i.doc.builders;class h{constructor(t,e,r){this.kind=n.q3.CatchClauses;let s=(0,a.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new o.D(t,i[e],r))),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return l(" ",t.map(e,"items"))}}s()}catch(t){s(t)}}))},1467:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{u:()=>l});var i=r(4675),n=r(8041),a=r(801),o=r(8926),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.ComparisonExpression;let s=(0,a.s)(t,e);const{offsets:n}=s;this.leftOperand=new o.r(t.leftOperand,n[0],r),this.operator=t.operator.unparse(),this.rightOperand=new o.r(t.rightOperand,n[1],r),s=(0,a.D)(s,[this.leftOperand,this.rightOperand]),this.comments=s.comments,this.loc=s.loc}print(t,e,r){return(0,n.u)(this,t,e,r)}}s()}catch(t){s(t)}}))},6312:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{T:()=>x});var i=r(838),n=r(4675),a=r(8941),o=r(801),c=r(8926),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{group:h,hardline:u,ifBreak:d,indent:p,line:m,softline:y}=i.doc.builders;function f(t){return t.useTabs?"\t":t.tabWidth>2?" ".repeat(t.tabWidth-1):" "}function g(t,e,r,s){const i=e.getNode(2),o=i.kind===n.q3.ConditionalExpression,c=o&&i.trueExpression.variant===t,l="string"!=typeof t.falseExpression.variant&&(t.falseExpression.variant.kind===n.q3.TupleExpression||t.falseExpression.variant.kind===n.q3.ConditionalExpression),g=e.call(r,"operand"),w=h(["string"!=typeof t.operand.variant&&t.operand.variant.kind===n.q3.TupleExpression?g:d(["(",(0,a.K)(g),")"],g)," ?"]),x=p([c?u:m,e.call(r,"trueExpression")]),v=h([w,x],{id:Symbol("Slang.ConditionalExpression.trueExpression")}),b=e.call(r,"falseExpression"),_=[o?u:m,":",l?[" ",b]:d([f(s),p(b)],[" ",b],{groupId:v.id})],E=h([v,_]);return i.kind===n.q3.VariableDeclarationValue?h(p([y,E])):E}function w(t,e){return h([t.call(e,"operand"),p([t.getNode(2).kind===n.q3.ConditionalExpression?u:m,"? ",t.call(e,"trueExpression"),m,": ",t.call(e,"falseExpression")])])}class x{constructor(t,e,r){this.kind=n.q3.ConditionalExpression;let s=(0,o.s)(t,e);const{offsets:i}=s;if(this.operand=new c.r(t.operand,i[0],r),this.trueExpression=new c.r(t.trueExpression,i[1],r),this.falseExpression=new c.r(t.falseExpression,i[2],r),s=(0,o.D)(s,[this.operand,this.trueExpression,this.falseExpression]),this.comments=s.comments,this.loc=s.loc,r.experimentalTernaries){const t=this.operand.loc;for(;"string"!=typeof this.operand.variant&&this.operand.variant.kind===n.q3.TupleExpression&&1===this.operand.variant.items.items.length&&("string"==typeof this.operand.variant.items.items[0].expression.variant||this.operand.variant.items.items[0].expression.variant.kind!==n.q3.ConditionalExpression);)this.operand=this.operand.variant.items.items[0].expression;this.operand.loc=t}}print(t,e,r){return r.experimentalTernaries?g(this,t,e,r):w(t,e)}}s()}catch(v){s(v)}}))},9885:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{y:()=>h});var i=r(4675),n=r(801),a=r(9979),o=r(2291),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;class h{constructor(t,e,r){this.kind=i.q3.ConstantDefinition;let s=(0,n.s)(t,e);const{offsets:l}=s;this.typeName=new a.C(t.typeName,l[0],r),this.name=new o.g(t.name,l[1]),this.value=new c.r(t.value,l[2],r),s=(0,n.D)(s,[this.typeName,this.value]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"typeName")," constant ",t.call(e,"name")," = ",t.call(e,"value"),";"]}}s()}catch(t){s(t)}}))},4192:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{F:()=>c});var i=r(4675),n=r(801),a=r(1699),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.ConstructorAttribute;let s=(0,n.s)(t,e);const{offsets:o}=s;this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.u(t.variant,o[0],r),s=(0,n.D)(s,"string"==typeof this.variant?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},2567:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{O:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(4192),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.ConstructorAttributes;let s=(0,o.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new c.F(t,i[e],r))),s=(0,o.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},5959:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{s:()=>u});var i=r(4675),n=r(304),a=r(801),o=r(9002),c=r(2567),l=r(6511),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;class u{constructor(t,e,r){this.kind=i.q3.ConstructorDefinition;let s=(0,a.s)(t,e);const{offsets:n}=s;this.parameters=new o.Z(t.parameters,n[0],r),this.attributes=new c.O(t.attributes,n[1],r),this.body=new l.e(t.body,n[2],r),s=(0,a.D)(s,[this.parameters,this.attributes,this.body]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,n.c)("constructor",this,t,e)}}s()}catch(t){s(t)}}))},9892:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.ContinueStatement;const r=(0,n.s)(t,e);this.comments=r.comments,this.loc=r.loc}print(){return"continue;"}}s()}catch(t){s(t)}}))},2795:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{e:()=>m});var i=r(838),n=r(9589),a=r(4675),o=r(801),c=r(2291),l=r(3892),h=r(5907),u=t([a,o,c,l,h]);[a,o,c,l,h]=u.then?(await u)():u;const{group:d,line:p}=i.doc.builders;class m{constructor(t,e,r){var s;this.kind=a.q3.ContractDefinition;let i=(0,o.s)(t,e);const{offsets:n}=i;this.abstractKeyword=null===(s=t.abstractKeyword)||void 0===s?void 0:s.unparse(),this.name=new c.g(t.name,n[0]);let u=1;t.inheritance&&(this.inheritance=new l.R(t.inheritance,n[u],r),u+=1),this.members=new h.I(t.members,n[u],r),i=(0,o.D)(i,[this.inheritance,this.members]),this.comments=i.comments,this.loc=i.loc,this.cleanModifierInvocationArguments(r)}cleanModifierInvocationArguments(t){const e=(0,n.coerce)(t.compiler);if(e&&!(0,n.satisfies)(e,">=0.5.0"))for(const t of this.members.items)t.variant.kind===a.q3.FunctionDefinition&&t.variant.name.variant.value!==this.name.value&&t.variant.cleanModifierInvocationArguments()}print(t,e){return[d([this.abstractKeyword?"abstract ":"","contract ",t.call(e,"name"),this.inheritance?[" ",t.call(e,"inheritance")]:p,"{"]),t.call(e,"members"),"}"]}}s()}catch(t){s(t)}}))},4468:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{B:()=>v});var i=r(4675),n=r(801),a=r(33),o=r(7281),c=r(5959),l=r(9394),h=r(9640),u=r(6871),d=r(1204),p=r(8324),m=r(3820),y=r(4351),f=r(918),g=r(897),w=r(7260),x=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]=x.then?(await x)():x;class v{constructor(t,e,r){this.kind=i.q3.ContractMember;let s=(0,n.s)(t,e);const{offsets:x}=s;switch(t.variant.cst.kind){case i.q3.UsingDirective:this.variant=new a.K(t.variant,x[0],r);break;case i.q3.FunctionDefinition:this.variant=new o.W(t.variant,x[0],r);break;case i.q3.ConstructorDefinition:this.variant=new c.s(t.variant,x[0],r);break;case i.q3.ReceiveFunctionDefinition:this.variant=new l.p(t.variant,x[0],r);break;case i.q3.FallbackFunctionDefinition:this.variant=new h.o(t.variant,x[0],r);break;case i.q3.UnnamedFunctionDefinition:this.variant=new u.u(t.variant,x[0],r);break;case i.q3.ModifierDefinition:this.variant=new d.z(t.variant,x[0],r);break;case i.q3.StructDefinition:this.variant=new p.Z(t.variant,x[0],r);break;case i.q3.EnumDefinition:this.variant=new m.P(t.variant,x[0]);break;case i.q3.EventDefinition:this.variant=new y.w(t.variant,x[0],r);break;case i.q3.StateVariableDefinition:this.variant=new f.z(t.variant,x[0],r);break;case i.q3.ErrorDefinition:this.variant=new g.e(t.variant,x[0],r);break;case i.q3.UserDefinedValueTypeDefinition:this.variant=new w.z(t.variant,x[0]);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},5907:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{I:()=>p});var i=r(838),n=r(4675),a=r(8941),o=r(7134),c=r(1041),l=r(801),h=r(4468),u=t([n,o,c,l,h]);[n,o,c,l,h]=u.then?(await u)():u;const{hardline:d}=i.doc.builders;class p{constructor(t,e,r){this.kind=n.q3.ContractMembers;let s=(0,l.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new h.B(t,i[e],r))),s=(0,l.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e,r){return 0===this.items.length&&0===this.comments.length?"":(0,a.K)([(0,c.V)(t,e,r),(0,o.i)(t)],{firstSeparator:d,grouped:!1})}}s()}catch(t){s(t)}}))},1390:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(4675),n=r(801),a=r(1e3),o=r(6603),c=t([i,n,o]);[i,n,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.DecimalNumberExpression;let r=(0,n.s)(t,e);const{offsets:s}=r;this.literal=t.literal.unparse(),t.unit&&(this.unit=new o.c(t.unit,s[0])),r=(0,n.D)(r,[this.unit]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.I)(" ",[this.literal,t.call(e,"unit")])}}s()}catch(t){s(t)}}))},8943:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{I:()=>m});var i=r(838),n=r(4675),a=r(8941),o=r(801),c=r(5211),l=r(8926),h=t([n,o,c,l]);[n,o,c,l]=h.then?(await h)():h;const{group:u,indent:d,line:p}=i.doc.builders;class m{constructor(t,e,r){this.kind=n.q3.DoWhileStatement;let s=(0,o.s)(t,e);const{offsets:i}=s;this.body=new c.W(t.body,i[0],r),this.condition=new l.r(t.condition,i[1],r),s=(0,o.D)(s,[this.body,this.condition]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["do",this.body.variant.kind===n.q3.Block?[" ",t.call(e,"body")," "]:u([d([p,t.call(e,"body")]),p]),"while (",(0,a.K)(t.call(e,"condition")),");"]}}s()}catch(t){s(t)}}))},3198:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>c});var i=r(4675),n=r(801),a=r(7614),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.ElementaryType;let r=(0,n.s)(t,e);const{offsets:s}=r;this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.R(t.variant,s[0]),r=(0,n.D)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},3117:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{O:()=>m});var i=r(838),n=r(4675),a=r(6563),o=r(801),c=r(5211),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{group:h,indent:u,line:d}=i.doc.builders,p=(0,a.n)([n.q3.Block,n.q3.IfStatement]);class m{constructor(t,e,r){this.kind=n.q3.ElseBranch;let s=(0,o.s)(t,e);const{offsets:i}=s;this.body=new c.W(t.body,i[0],r),s=(0,o.D)(s,[this.body]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["else",p(this.body.variant)?[" ",t.call(e,"body")]:h(u([d,t.call(e,"body")]))]}}s()}catch(t){s(t)}}))},3406:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{x:()=>l});var i=r(4675),n=r(801),a=r(2912),o=r(5756),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.EmitStatement;let s=(0,n.s)(t,e);const{offsets:c}=s;this.event=new a.D(t.event,c[0]),this.arguments=new o.Z(t.arguments,c[1],r),s=(0,n.D)(s,[this.event,this.arguments]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["emit ",t.call(e,"event"),t.call(e,"arguments"),";"]}}s()}catch(t){s(t)}}))},3820:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{P:()=>l});var i=r(4675),n=r(801),a=r(2291),o=r(2238),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.EnumDefinition;let r=(0,n.s)(t,e);const{offsets:s}=r;this.name=new a.g(t.name,s[0]),this.members=new o.P(t.members,s[1]),r=(0,n.D)(r,[this.members]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["enum ",t.call(e,"name")," {",t.call(e,"members"),"}"]}}s()}catch(t){s(t)}}))},2238:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{P:()=>u});var i=r(838),n=r(4675),a=r(7578),o=r(801),c=r(2291),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{hardline:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.EnumMembers;const r=(0,o.s)(t,e,!0),{offsets:s}=r;this.items=t.items.map(((t,e)=>new c.g(t,s[e]))),this.separators=t.separators.map((t=>t.unparse())),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.J)(t.map(e,"items"),{firstSeparator:h})}}s()}catch(t){s(t)}}))},6442:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{t:()=>l});var i=r(4675),n=r(8041),a=r(801),o=r(8926),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.EqualityExpression;let s=(0,a.s)(t,e);const{offsets:n}=s;this.leftOperand=new o.r(t.leftOperand,n[0],r),this.operator=t.operator.unparse(),this.rightOperand=new o.r(t.rightOperand,n[1],r),s=(0,a.D)(s,[this.leftOperand,this.rightOperand]),this.comments=s.comments,this.loc=s.loc}print(t,e,r){return(0,n.u)(this,t,e,r)}}s()}catch(t){s(t)}}))},897:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{e:()=>l});var i=r(4675),n=r(801),a=r(2291),o=r(1142),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.ErrorDefinition;let s=(0,n.s)(t,e);const{offsets:c}=s;this.name=new a.g(t.name,c[0]),this.members=new o.$(t.members,c[1],r),s=(0,n.D)(s,[this.members]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["error ",t.call(e,"name"),t.call(e,"members"),";"]}}s()}catch(t){s(t)}}))},7105:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{m:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(9979),c=r(2291),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e,r){this.kind=i.q3.ErrorParameter;let s=(0,n.s)(t,e);const{offsets:a}=s;this.typeName=new o.C(t.typeName,a[0],r),t.name&&(this.name=new c.g(t.name,a[1])),s=(0,n.D)(s,[this.typeName]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,a.I)(" ",[t.call(e,"typeName"),t.call(e,"name")])}}s()}catch(t){s(t)}}))},2048:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{h:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(7105),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.ErrorParameters;let s=(0,a.s)(t,e,!0);const{offsets:n}=s;this.items=t.items.map(((t,e)=>new o.m(t,n[e],r))),this.separators=t.separators.map((t=>t.unparse())),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return this.items.length>0?(0,n.J)(t.map(e,"items")):""}}s()}catch(t){s(t)}}))},1142:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>c});var i=r(4675),n=r(801),a=r(2048),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.ErrorParametersDeclaration;let s=(0,n.s)(t,e);const{offsets:o}=s;this.parameters=new a.h(t.parameters,o[0],r),s=(0,n.D)(s,[this.parameters]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}}))},4351:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{w:()=>l});var i=r(4675),n=r(801),a=r(2828),o=r(2291),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){var s;this.kind=i.q3.EventDefinition;let c=(0,n.s)(t,e);const{offsets:l}=c;this.name=new o.g(t.name,l[0]),this.parameters=new a.$(t.parameters,l[1],r),this.anonymousKeyword=null===(s=t.anonymousKeyword)||void 0===s?void 0:s.unparse(),c=(0,n.D)(c,[this.parameters]),this.comments=c.comments,this.loc=c.loc}print(t,e){return["event ",t.call(e,"name"),t.call(e,"parameters"),this.anonymousKeyword?" anonymous":"",";"]}}s()}catch(t){s(t)}}))},4027:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Q:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(9979),c=r(2291),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e,r){var s;this.kind=i.q3.EventParameter;let a=(0,n.s)(t,e);const{offsets:l}=a;this.typeName=new o.C(t.typeName,l[0],r),this.indexedKeyword=null===(s=t.indexedKeyword)||void 0===s?void 0:s.unparse(),t.name&&(this.name=new c.g(t.name,l[1])),a=(0,n.D)(a,[this.typeName]),this.comments=a.comments,this.loc=a.loc}print(t,e){return(0,a.I)(" ",[t.call(e,"typeName"),this.indexedKeyword,t.call(e,"name")])}}s()}catch(t){s(t)}}))},170:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(4027),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.EventParameters;let s=(0,a.s)(t,e,!0);const{offsets:n}=s;this.items=t.items.map(((t,e)=>new o.Q(t,n[e],r))),this.separators=t.separators.map((t=>t.unparse())),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return this.items.length>0?(0,n.J)(t.map(e,"items")):""}}s()}catch(t){s(t)}}))},2828:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>c});var i=r(4675),n=r(801),a=r(170),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.EventParametersDeclaration;let s=(0,n.s)(t,e);const{offsets:o}=s;this.parameters=new a.p(t.parameters,o[0],r),s=(0,n.D)(s,[this.parameters]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}}))},2254:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>l});var i=r(4675),n=r(801),a=r(3562),o=r(2291),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.ExperimentalFeature;let s=(0,n.s)(t,e);const{offsets:c}=s;this.variant=t.variant instanceof i.xo?new o.g(t.variant,c[0]):new a.L(t.variant,c[0],r),s=(0,n.D)(s,this.variant.kind===i.hP.Identifier?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},6162:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>c});var i=r(4675),n=r(801),a=r(2254),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.ExperimentalPragma;let s=(0,n.s)(t,e);const{offsets:o}=s;this.feature=new a.R(t.feature,o[0],r),s=(0,n.D)(s,[this.feature]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["experimental ",t.call(e,"feature")]}}s()}catch(t){s(t)}}))},6121:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>y});var i=r(838),n=r(4675),a=r(1059),o=r(142),c=r(801),l=r(8926),h=t([n,a,o,c,l]);[n,a,o,c,l]=h.then?(await h)():h;const{group:u,indent:d}=i.doc.builders,p=(0,o.H)(["**"]),m=(0,a.f)((()=>t=>u(t)),(()=>t=>d(t)));class y{constructor(t,e,r){this.kind=n.q3.ExponentiationExpression;let s=(0,c.s)(t,e);const{offsets:i}=s;this.leftOperand=new l.r(t.leftOperand,i[0],r),this.operator=t.operator.unparse(),this.rightOperand=new l.r(t.rightOperand,i[1],r),s=(0,c.D)(s,[this.leftOperand,this.rightOperand]),this.comments=s.comments,this.loc=s.loc,this.rightOperand=p(this.rightOperand),this.leftOperand=p(this.leftOperand)}print(t,e,r){return m(this,t,e,r)}}s()}catch(t){s(t)}}))},8926:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>O});var i=r(4675),n=r(801),a=r(5287),o=r(6312),c=r(8947),l=r(2745),h=r(6442),u=r(1467),d=r(7438),p=r(4654),m=r(7162),y=r(4852),f=r(2054),g=r(8968),w=r(6121),x=r(4109),v=r(8802),b=r(9894),_=r(2514),E=r(4138),T=r(4882),S=r(6010),k=r(4274),R=r(86),C=r(6233),A=r(9804),K=r(1390),L=r(9511),I=r(3198),N=r(2291),D=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T,S,k,R,C,A,K,L,I,N]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T,S,k,R,C,A,K,L,I,N]=D.then?(await D)():D;class O{constructor(t,e,r){this.kind=i.q3.Expression;let s=(0,n.s)(t,e);const{offsets:D}=s;if(t.variant instanceof i.xo)this.variant=new N.g(t.variant,D[0]);else switch(t.variant.cst.kind){case i.q3.AssignmentExpression:this.variant=new a.k(t.variant,D[0],r);break;case i.q3.ConditionalExpression:this.variant=new o.T(t.variant,D[0],r);break;case i.q3.OrExpression:this.variant=new c.K(t.variant,D[0],r);break;case i.q3.AndExpression:this.variant=new l.g(t.variant,D[0],r);break;case i.q3.EqualityExpression:this.variant=new h.t(t.variant,D[0],r);break;case i.q3.ComparisonExpression:this.variant=new u.u(t.variant,D[0],r);break;case i.q3.BitwiseOrExpression:this.variant=new d.J(t.variant,D[0],r);break;case i.q3.BitwiseXorExpression:this.variant=new p.R(t.variant,D[0],r);break;case i.q3.BitwiseAndExpression:this.variant=new m.J(t.variant,D[0],r);break;case i.q3.ShiftExpression:this.variant=new y.Z(t.variant,D[0],r);break;case i.q3.AdditiveExpression:this.variant=new f.z(t.variant,D[0],r);break;case i.q3.MultiplicativeExpression:this.variant=new g.d(t.variant,D[0],r);break;case i.q3.ExponentiationExpression:this.variant=new w.g(t.variant,D[0],r);break;case i.q3.PostfixExpression:this.variant=new x._(t.variant,D[0],r);break;case i.q3.PrefixExpression:this.variant=new v.B(t.variant,D[0],r);break;case i.q3.FunctionCallExpression:this.variant=new b.j(t.variant,D[0],r);break;case i.q3.CallOptionsExpression:this.variant=new _.X(t.variant,D[0],r);break;case i.q3.MemberAccessExpression:this.variant=new E.n(t.variant,D[0],r);break;case i.q3.IndexAccessExpression:this.variant=new T.z(t.variant,D[0],r);break;case i.q3.NewExpression:this.variant=new S.Z(t.variant,D[0],r);break;case i.q3.TupleExpression:this.variant=new k.b(t.variant,D[0],r);break;case i.q3.TypeExpression:this.variant=new R.j(t.variant,D[0],r);break;case i.q3.ArrayExpression:this.variant=new C.g(t.variant,D[0],r);break;case i.q3.HexNumberExpression:this.variant=new A.$(t.variant,D[0]);break;case i.q3.DecimalNumberExpression:this.variant=new K.j(t.variant,D[0]);break;case i.q3.StringExpression:this.variant=new L.O(t.variant,D[0],r);break;case i.q3.ElementaryType:this.variant=new I.$(t.variant,D[0]);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,this.variant.kind===i.hP.Identifier?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},6157:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Q:()=>c});var i=r(4675),n=r(801),a=r(8926),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.ExpressionStatement;let s=(0,n.s)(t,e);const{offsets:o}=s;this.expression=new a.r(t.expression,o[0],r),s=(0,n.D)(s,[this.expression]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"expression"),";"]}}s()}catch(t){s(t)}}))},7532:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{h:()=>l});var i=r(4675),n=r(801),a=r(1699),o=r(7178),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.FallbackFunctionAttribute;let s=(0,n.s)(t,e);const{offsets:c}=s;if(t.variant instanceof i.xo)this.variant=t.variant.unparse();else switch(t.variant.cst.kind){case i.q3.ModifierInvocation:this.variant=new a.u(t.variant,c[0],r);break;case i.q3.OverrideSpecifier:this.variant=new o.l(t.variant,c[0]);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,"string"==typeof this.variant?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},7435:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(7532),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.FallbackFunctionAttributes;let s=(0,o.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new c.h(t,i[e],r))),s=(0,o.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},9640:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{o:()=>d});var i=r(4675),n=r(304),a=r(801),o=r(9002),c=r(7435),l=r(7181),h=r(1580),u=t([i,a,o,c,l,h]);[i,a,o,c,l,h]=u.then?(await u)():u;class d{constructor(t,e,r){this.kind=i.q3.FallbackFunctionDefinition;let s=(0,a.s)(t,e);const{offsets:n}=s;this.parameters=new o.Z(t.parameters,n[0],r),this.attributes=new c.i(t.attributes,n[1],r);let u=2;t.returns&&(this.returns=new l.I(t.returns,n[u],r),u+=1),this.body=new h.r(t.body,n[u],r),s=(0,a.D)(s,[this.parameters,this.attributes,this.returns,this.body]),this.comments=s.comments,this.loc=s.loc,this.cleanModifierInvocationArguments()}cleanModifierInvocationArguments(){for(const t of this.attributes.items)"string"!=typeof t.variant&&t.variant.kind===i.q3.ModifierInvocation&&t.variant.cleanModifierInvocationArguments()}print(t,e){return(0,n.c)("fallback",this,t,e)}}s()}catch(t){s(t)}}))},3816:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>f});var i=r(4675),n=r(838),a=r(7578),o=r(801),c=r(6716),l=r(91),h=r(8926),u=r(5211),d=t([i,o,c,l,h,u]);[i,o,c,l,h,u]=d.then?(await d)():d;const{group:p,indent:m,line:y}=n.doc.builders;class f{constructor(t,e,r){this.kind=i.q3.ForStatement;let s=(0,o.s)(t,e);const{offsets:n}=s;this.initialization=new c.n(t.initialization,n[0],r),this.condition=new l.Q(t.condition,n[1],r);let a=2;t.iterator&&(this.iterator=new h.r(t.iterator,n[a],r),a+=1),this.body=new u.W(t.body,n[a],r),s=(0,o.D)(s,[this.initialization,this.condition,this.iterator,this.body]),this.comments=s.comments,this.loc=s.loc}print(t,e){const r=t.call(e,"initialization"),s=t.call(e,"condition"),n=t.call(e,"iterator");return["for (",(0,a.J)([r,s,n],{separator:";"!==r||";"!==s||""!==n?y:""}),")",this.body.variant.kind===i.q3.Block?[" ",t.call(e,"body")]:p(m([y,t.call(e,"body")]))]}}s()}catch(t){s(t)}}))},91:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Q:()=>c});var i=r(4675),n=r(801),a=r(6157),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.ForStatementCondition;let s=(0,n.s)(t,e);const{offsets:o}=s;this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.Q(t.variant,o[0],r),s=(0,n.D)(s,"string"==typeof this.variant?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},6716:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{n:()=>h});var i=r(4675),n=r(801),a=r(6157),o=r(2421),c=r(6773),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;class h{constructor(t,e,r){this.kind=i.q3.ForStatementInitialization;let s=(0,n.s)(t,e);const{offsets:l}=s;if(t.variant instanceof i.xo)this.variant=t.variant.unparse();else switch(t.variant.cst.kind){case i.q3.ExpressionStatement:this.variant=new a.Q(t.variant,l[0],r);break;case i.q3.VariableDeclarationStatement:this.variant=new o._(t.variant,l[0],r);break;case i.q3.TupleDeconstructionStatement:this.variant=new c.a(t.variant,l[0],r);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,"string"==typeof this.variant?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},5798:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{V:()=>l});var i=r(4675),n=r(801),a=r(1699),o=r(7178),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.FunctionAttribute;let s=(0,n.s)(t,e);const{offsets:c}=s;if(t.variant instanceof i.xo)this.variant=t.variant.unparse();else switch(t.variant.cst.kind){case i.q3.ModifierInvocation:this.variant=new a.u(t.variant,c[0],r);break;case i.q3.OverrideSpecifier:this.variant=new o.l(t.variant,c[0]);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,"string"==typeof this.variant?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},3685:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{S:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(5798),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.FunctionAttributes;let s=(0,o.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new c.V(t,i[e],r))),s=(0,o.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},1580:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>c});var i=r(4675),n=r(801),a=r(6511),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.FunctionBody;let s=(0,n.s)(t,e);const{offsets:o}=s;this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.e(t.variant,o[0],r),s=(0,n.D)(s,"string"==typeof this.variant?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},9894:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>m});var i=r(838),n=r(4675),a=r(4079),o=r(801),c=r(8926),l=r(5756),h=t([n,o,c,l]);[n,o,c,l]=h.then?(await h)():h;const{group:u,indentIfBreak:d,label:p}=i.doc.builders;class m{constructor(t,e,r){this.kind=n.q3.FunctionCallExpression;let s=(0,o.s)(t,e);const{offsets:i}=s;this.operand=new c.r(t.operand,i[0],r),this.arguments=new l.Z(t.arguments,i[1],r),s=(0,o.D)(s,[this.operand,this.arguments]),this.comments=s.comments,this.loc=s.loc}print(t,e){let r=t.call(e,"operand"),s=t.call(e,"arguments");return(0,a.J)(r)&&"MemberAccessChain"===r.label?(r=u(r.contents,{id:Symbol("FunctionCallExpression.operand")}),s=d(s,{groupId:r.id}),p("MemberAccessChain",[r,s])):[r,s].flat()}}s()}catch(t){s(t)}}))},7281:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{W:()=>m});var i=r(9589),n=r(4675),a=r(304),o=r(801),c=r(1615),l=r(9002),h=r(3685),u=r(7181),d=r(1580),p=t([n,o,c,l,h,u,d]);[n,o,c,l,h,u,d]=p.then?(await p)():p;class m{constructor(t,e,r){this.kind=n.q3.FunctionDefinition;let s=(0,o.s)(t,e);const{offsets:a}=s;this.name=new c.s(t.name,a[0]),this.parameters=new l.Z(t.parameters,a[1],r),this.attributes=new h.S(t.attributes,a[2],r);let p=3;t.returns&&(this.returns=new u.I(t.returns,a[p],r),p+=1),this.body=new d.r(t.body,a[p],r),s=(0,o.D)(s,[this.name,this.parameters,this.attributes,this.returns,this.body]),this.comments=s.comments,this.loc=s.loc;const m=(0,i.coerce)(r.compiler);m&&(0,i.satisfies)(m,">=0.5.0")&&this.cleanModifierInvocationArguments()}cleanModifierInvocationArguments(){for(const t of this.attributes.items)"string"!=typeof t.variant&&t.variant.kind===n.q3.ModifierInvocation&&t.variant.cleanModifierInvocationArguments()}print(t,e){return(0,a.c)(["function ",t.call(e,"name")],this,t,e)}}s()}catch(t){s(t)}}))},1615:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{s:()=>c});var i=r(4675),n=r(801),a=r(2291),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.FunctionName;const r=(0,n.s)(t,e),{offsets:s}=r;this.variant=new a.g(t.variant,s[0]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},3476:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>u});var i=r(4675),n=r(304),a=r(801),o=r(9002),c=r(221),l=r(7181),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;class u{constructor(t,e,r){this.kind=i.q3.FunctionType;let s=(0,a.s)(t,e);const{offsets:n}=s;this.parameters=new o.Z(t.parameters,n[0],r),this.attributes=new c.C(t.attributes,n[1]),t.returns&&(this.returns=new l.I(t.returns,n[2],r)),s=(0,a.D)(s,[this.parameters,this.attributes,this.returns]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,n.c)("function",this,t,e)}}s()}catch(t){s(t)}}))},6222:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{l:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.FunctionTypeAttribute;const r=(0,n.s)(t,e);this.variant=t.variant.unparse(),this.comments=r.comments,this.loc=r.loc}print(){return this.variant}}s()}catch(t){s(t)}}))},221:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(6222),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.FunctionTypeAttributes;let r=(0,o.s)(t,e,!0);const{offsets:s}=r;this.items=t.items.map(((t,e)=>new c.l(t,s[e]))),r=(0,o.D)(r,[this.items]),this.comments=r.comments,this.loc=r.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},9804:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>l});var i=r(4675),n=r(801),a=r(1e3),o=r(6603),c=t([i,n,o]);[i,n,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.HexNumberExpression;let r=(0,n.s)(t,e);const{offsets:s}=r;this.literal=t.literal.unparse(),t.unit&&(this.unit=new o.c(t.unit,s[0])),r=(0,n.D)(r,[this.unit]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.I)(" ",[this.literal,t.call(e,"unit")])}}s()}catch(t){s(t)}}))},5191:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>c});var i=r(4675),n=r(1529),a=r(801),o=t([i,a]);[i,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.HexStringLiteral;const s=(0,a.s)(t,e);this.variant=t.variant.unparse(),this.comments=s.comments,this.loc=s.loc,this.variant=`hex${(0,n.T)(this.variant.slice(4,-1),r)}`}print(){return this.variant}}s()}catch(t){s(t)}}))},7598:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{P:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(5191),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.HexStringLiterals;let s=(0,a.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new o.C(t,i[e],r))),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return l(h,t.map(e,"items"))}}s()}catch(t){s(t)}}))},2291:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>a});var i=r(4675),n=t([i]);i=(n.then?(await n)():n)[0];class a{constructor(t,e){this.kind=i.hP.Identifier,this.value=t.unparse(),this.comments=[],this.loc={start:e,end:e+t.textLength.utf16}}print(){return this.value}}s()}catch(t){s(t)}}))},2912:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{D:()=>c});var i=r(4675),n=r(801),a=r(2291),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.IdentifierPath;const r=(0,n.s)(t,e),{offsets:s}=r;this.items=t.items.map(((t,e)=>new a.g(t,s[e]))),this.separators=t.separators.map((t=>t.unparse())),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.map(e,"items").map(((t,e)=>0===e?t:[this.separators[e-1],t]))}}s()}catch(t){s(t)}}))},7978:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{v:()=>g});var i=r(838),n=r(4675),a=r(8941),o=r(801),c=r(7540),l=r(8926),h=r(5211),u=r(3117),d=t([n,o,c,l,h,u]);[n,o,c,l,h,u]=d.then?(await d)():d;const{group:p,hardline:m,indent:y,line:f}=i.doc.builders;class g{constructor(t,e,r){this.kind=n.q3.IfStatement;let s=(0,o.s)(t,e);const{offsets:i}=s;this.condition=new l.r(t.condition,i[0],r),this.body=new h.W(t.body,i[1],r),t.elseBranch&&(this.elseBranch=new u.O(t.elseBranch,i[2],r)),s=(0,o.D)(s,[this.condition,this.body,this.elseBranch]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["if (",(0,a.K)(t.call(e,"condition")),")",this.body.variant.kind===n.q3.Block?[" ",t.call(e,"body")]:p(y([f,t.call(e,"body")]),{shouldBreak:this.body.variant.kind===n.q3.IfStatement}),this.elseBranch?[this.body.variant.kind!==n.q3.Block||this.body.variant.comments.some((t=>!(0,c.t)(t)||"ownLine"===t.placement))?m:" ",t.call(e,"elseBranch")]:""]}}s()}catch(t){s(t)}}))},6485:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{G:()=>c});var i=r(4675),n=r(801),a=r(2291),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.ImportAlias;const r=(0,n.s)(t,e),{offsets:s}=r;this.identifier=new a.g(t.identifier,s[0]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[" as ",t.call(e,"identifier")]}}s()}catch(t){s(t)}}))},5996:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>h});var i=r(4675),n=r(801),a=r(9150),o=r(3534),c=r(979),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;class h{constructor(t,e,r){this.kind=i.q3.ImportClause;let s=(0,n.s)(t,e);const{offsets:l}=s;switch(t.variant.cst.kind){case i.q3.PathImport:this.variant=new a.N(t.variant,l[0],r);break;case i.q3.NamedImport:this.variant=new o.R(t.variant,l[0],r);break;case i.q3.ImportDeconstruction:this.variant=new c.q(t.variant,l[0],r);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},979:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{q:()=>l});var i=r(4675),n=r(801),a=r(2386),o=r(3562),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.ImportDeconstruction;let s=(0,n.s)(t,e);const{offsets:c}=s;this.symbols=new a.z(t.symbols,c[0]),this.path=new o.L(t.path,c[1],r),s=(0,n.D)(s,[this.symbols,this.path]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["{",t.call(e,"symbols"),"} from ",t.call(e,"path")]}}s()}catch(t){s(t)}}))},4163:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>l});var i=r(4675),n=r(801),a=r(2291),o=r(6485),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.ImportDeconstructionSymbol;let r=(0,n.s)(t,e);const{offsets:s}=r;this.name=new a.g(t.name,s[0]),t.alias&&(this.alias=new o.G(t.alias,s[1])),r=(0,n.D)(r,[this.alias]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"name"),t.call(e,"alias")]}}s()}catch(t){s(t)}}))},2386:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>p});var i=r(838),n=r(9589),a=r(4675),o=r(7578),c=r(801),l=r(4163),h=t([a,c,l]);[a,c,l]=h.then?(await h)():h;const{line:u,softline:d}=i.doc.builders;class p{constructor(t,e){this.kind=a.q3.ImportDeconstructionSymbols;let r=(0,c.s)(t,e,!0);const{offsets:s}=r;this.items=t.items.map(((t,e)=>new l.g(t,s[e]))),this.separators=t.separators.map((t=>t.unparse())),r=(0,c.D)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){const s=(0,n.coerce)(r.compiler);return(0,o.J)(t.map(e,"items"),s&&(0,n.satisfies)(s,">=0.7.4")?{firstSeparator:r.bracketSpacing?u:d,separator:[",",u]}:{firstSeparator:r.bracketSpacing?" ":"",separator:", "})}}s()}catch(t){s(t)}}))},8668:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>c});var i=r(4675),n=r(801),a=r(5996),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.ImportDirective;let s=(0,n.s)(t,e);const{offsets:o}=s;this.clause=new a.r(t.clause,o[0],r),s=(0,n.D)(s,[this.clause]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["import ",t.call(e,"clause"),";"]}}s()}catch(t){s(t)}}))},4899:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Q:()=>c});var i=r(4675),n=r(801),a=r(8926),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.IndexAccessEnd;let s=(0,n.s)(t,e);const{offsets:o}=s;t.end&&(this.end=new a.r(t.end,o[0],r)),s=(0,n.D)(s,[this.end]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[":",t.call(e,"end")]}}s()}catch(t){s(t)}}))},4882:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>f});var i=r(838),n=r(4675),a=r(4079),o=r(801),c=r(8926),l=r(4899),h=t([n,o,c,l]);[n,o,c,l]=h.then?(await h)():h;const{group:u,indent:d,indentIfBreak:p,label:m,softline:y}=i.doc.builders;class f{constructor(t,e,r){this.kind=n.q3.IndexAccessExpression;let s=(0,o.s)(t,e);const{offsets:i}=s;this.operand=new c.r(t.operand,i[0],r);let a=1;t.start&&(this.start=new c.r(t.start,i[a],r),a+=1),t.end&&(this.end=new l.Q(t.end,i[a],r)),s=(0,o.D)(s,[this.operand,this.start,this.end]),this.comments=s.comments,this.loc=s.loc}print(t,e){let r=t.call(e,"operand"),s=u(["[",d([y,t.call(e,"start"),t.call(e,"end")]),y,"]"]);return(0,a.J)(r)&&"MemberAccessChain"===r.label?(r=u(r.contents,{id:Symbol("IndexAccessExpression.operand")}),s=p(s,{groupId:r.id}),m("MemberAccessChain",[r,s])):[r,s].flat()}}s()}catch(t){s(t)}}))},3892:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>c});var i=r(4675),n=r(801),a=r(3717),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.InheritanceSpecifier;let s=(0,n.s)(t,e);const{offsets:o}=s;this.types=new a.W(t.types,o[0],r),s=(0,n.D)(s,[this.types]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["is",t.call(e,"types")]}}s()}catch(t){s(t)}}))},3990:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>l});var i=r(4675),n=r(801),a=r(2912),o=r(5756),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.InheritanceType;let s=(0,n.s)(t,e);const{offsets:c}=s;this.typeName=new a.D(t.typeName,c[0]),t.arguments&&(this.arguments=new o.Z(t.arguments,c[1],r)),s=(0,n.D)(s,[this.typeName,this.arguments]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"typeName"),t.call(e,"arguments")]}}s()}catch(t){s(t)}}))},3717:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{W:()=>u});var i=r(838),n=r(4675),a=r(7578),o=r(801),c=r(3990),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.InheritanceTypes;let s=(0,o.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new c.H(t,i[e],r))),this.separators=t.separators.map((t=>t.unparse())),s=(0,o.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,a.J)(t.map(e,"items"),{firstSeparator:h})}}s()}catch(t){s(t)}}))},3692:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{J:()=>p});var i=r(838),n=r(4675),a=r(801),o=r(2291),c=r(3892),l=r(7646),h=t([n,a,o,c,l]);[n,a,o,c,l]=h.then?(await h)():h;const{group:u,line:d}=i.doc.builders;class p{constructor(t,e,r){this.kind=n.q3.InterfaceDefinition;let s=(0,a.s)(t,e);const{offsets:i}=s;this.name=new o.g(t.name,i[0]);let h=1;t.inheritance&&(this.inheritance=new c.R(t.inheritance,i[h],r),h+=1),this.members=new l.l(t.members,i[h],r),s=(0,a.D)(s,[this.inheritance,this.members]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[u(["interface ",t.call(e,"name"),this.inheritance?[" ",t.call(e,"inheritance")]:d,"{"]),t.call(e,"members"),"}"]}}s()}catch(t){s(t)}}))},7646:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{l:()=>d});var i=r(838),n=r(4675),a=r(8941),o=r(1041),c=r(801),l=r(4468),h=t([n,o,c,l]);[n,o,c,l]=h.then?(await h)():h;const{hardline:u}=i.doc.builders;class d{constructor(t,e,r){this.kind=n.q3.InterfaceMembers;let s=(0,c.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new l.B(t,i[e],r))),s=(0,c.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e,r){return this.items.length>0?(0,a.K)((0,o.V)(t,e,r),{firstSeparator:u,grouped:!1}):""}}s()}catch(t){s(t)}}))},1132:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{J:()=>d});var i=r(838),n=r(4675),a=r(801),o=r(2291),c=r(910),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{group:h,line:u}=i.doc.builders;class d{constructor(t,e,r){this.kind=n.q3.LibraryDefinition;let s=(0,a.s)(t,e);const{offsets:i}=s;this.name=new o.g(t.name,i[0]),this.members=new c.r(t.members,i[1],r),s=(0,a.D)(s,[this.members]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[h(["library ",t.call(e,"name"),u,"{"]),t.call(e,"members"),"}"]}}s()}catch(t){s(t)}}))},910:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>d});var i=r(838),n=r(4675),a=r(8941),o=r(1041),c=r(801),l=r(4468),h=t([n,o,c,l]);[n,o,c,l]=h.then?(await h)():h;const{hardline:u}=i.doc.builders;class d{constructor(t,e,r){this.kind=n.q3.LibraryMembers;let s=(0,c.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new l.B(t,i[e],r))),s=(0,c.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e,r){return this.items.length>0?(0,a.K)((0,o.V)(t,e,r),{firstSeparator:u,grouped:!1}):""}}s()}catch(t){s(t)}}))},2585:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{a:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(305),c=r(2291),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e){this.kind=i.q3.MappingKey;let r=(0,n.s)(t,e);const{offsets:s}=r;this.keyType=new o.o(t.keyType,s[0]),t.name&&(this.name=new c.g(t.name,s[1])),r=(0,n.D)(r,[this.keyType]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.I)(" ",[t.call(e,"keyType"),t.call(e,"name")])}}s()}catch(t){s(t)}}))},305:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{o:()=>l});var i=r(4675),n=r(801),a=r(3198),o=r(2912),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.MappingKeyType;let r=(0,n.s)(t,e);const{offsets:s}=r;switch(t.variant.cst.kind){case i.q3.ElementaryType:this.variant=new a.$(t.variant,s[0]);break;case i.q3.IdentifierPath:this.variant=new o.D(t.variant,s[0]);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},9184:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{d:()=>l});var i=r(4675),n=r(801),a=r(2585),o=r(8615),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.MappingType;let s=(0,n.s)(t,e);const{offsets:c}=s;this.keyType=new a.a(t.keyType,c[0]),this.valueType=new o.k(t.valueType,c[1],r),s=(0,n.D)(s,[this.keyType,this.valueType]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["mapping(",t.call(e,"keyType")," => ",t.call(e,"valueType"),")"]}}s()}catch(t){s(t)}}))},8615:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{k:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(9979),c=r(2291),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e,r){this.kind=i.q3.MappingValue;let s=(0,n.s)(t,e);const{offsets:a}=s;this.typeName=new o.C(t.typeName,a[0],r),t.name&&(this.name=new c.g(t.name,a[1])),s=(0,n.D)(s,[this.typeName]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,a.I)(" ",[t.call(e,"typeName"),t.call(e,"name")])}}s()}catch(t){s(t)}}))},4138:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{n:()=>x});var i=r(838),n=r(4675),a=r(4079),o=r(6563),c=r(801),l=r(8926),h=r(2291),u=t([n,c,l,h]);[n,c,l,h]=u.then?(await u)():u;const{group:d,indent:p,label:m,softline:y}=i.doc.builders,f=(0,o.n)([n.q3.FunctionCallExpression,n.q3.IndexAccessExpression,n.q3.MemberAccessExpression]);function g(t,e){for(let r=0,s=t,i=e.getNode(r+2);f(i);r+=2,s=i,i=e.getNode(r+2))switch(i.kind){case n.q3.MemberAccessExpression:return!1;case n.q3.IndexAccessExpression:case n.q3.FunctionCallExpression:if(s!==i.operand.variant)return!0}return!0}function w(t){const e=t.findIndex((t=>(0,a.J)(t)&&"separator"===t.label));return m("MemberAccessChain",[t.slice(0,e),d(p(t.slice(e)))])}class x{constructor(t,e,r){this.kind=n.q3.MemberAccessExpression;let s=(0,c.s)(t,e);const{offsets:i}=s;this.operand=new l.r(t.operand,i[0],r),this.member=new h.g(t.member,i[1]),s=(0,c.D)(s,[this.operand]),this.comments=s.comments,this.loc=s.loc}print(t,e){let r=t.call(e,"operand");Array.isArray(r)&&(r=r.flat());const s=[r,m("separator",[y,"."]),t.call(e,"member")].flat();return g(this,t)?w(s):s}}s()}catch(v){s(v)}}))},2085:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K:()=>c});var i=r(4675),n=r(801),a=r(7178),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.ModifierAttribute;let r=(0,n.s)(t,e);const{offsets:s}=r;this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.l(t.variant,s[0]),r=(0,n.D)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},4652:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(2085),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.ModifierAttributes;let r=(0,o.s)(t,e,!0);const{offsets:s}=r;this.items=t.items.map(((t,e)=>new c.K(t,s[e]))),r=(0,o.D)(r,[this.items]),this.comments=r.comments,this.loc=r.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},1204:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>p});var i=r(4675),n=r(304),a=r(801),o=r(2291),c=r(9002),l=r(4716),h=r(4652),u=r(1580),d=t([i,a,o,c,l,h,u]);[i,a,o,c,l,h,u]=d.then?(await d)():d;class p{constructor(t,e,r){this.kind=i.q3.ModifierDefinition;let s=(0,a.s)(t,e);const{offsets:n}=s;this.name=new o.g(t.name,n[0]);let d=1;if(t.parameters&&(this.parameters=new c.Z(t.parameters,n[d],r),d+=1),this.attributes=new h.r(t.attributes,n[d]),d+=1,this.body=new u.r(t.body,n[d],r),s=(0,a.D)(s,[this.parameters,this.attributes,this.body]),this.comments=s.comments,this.loc=s.loc,!this.parameters){const t=this.attributes.loc.start-this.attributes.loc.leadingOffset,e={start:t,end:t,leadingOffset:0,trailingOffset:0};this.parameters=Object.assign(Object.create(c.Z.prototype),{kind:i.q3.ParametersDeclaration,loc:Object.assign({},e),comments:[],parameters:Object.assign(Object.create(l.H.prototype),{kind:i.q3.Parameters,loc:Object.assign({},e),comments:[],items:[],separators:[]})})}}print(t,e){return(0,n.c)(["modifier ",t.call(e,"name")],this,t,e)}}s()}catch(t){s(t)}}))},1699:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{u:()=>l});var i=r(4675),n=r(801),a=r(2912),o=r(5756),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.ModifierInvocation;let s=(0,n.s)(t,e);const{offsets:c}=s;this.name=new a.D(t.name,c[0]),t.arguments&&(this.arguments=new o.Z(t.arguments,c[1],r)),s=(0,n.D)(s,[this.name,this.arguments]),this.comments=s.comments,this.loc=s.loc}cleanModifierInvocationArguments(){this.arguments&&this.arguments.variant.kind===i.q3.PositionalArgumentsDeclaration&&this.arguments.variant.isEmpty()&&delete this.arguments}print(t,e){return[t.call(e,"name"),t.call(e,"arguments")]}}s()}catch(t){s(t)}}))},7088:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>u});var i=r(4675),n=r(838),a=r(9959),o=r(7958),c=t([i]);i=(c.then?(await c)():c)[0];const{join:l,literalline:h}=n.doc.builders;class u{constructor(t,e){this.kind=i.hP.MultiLineComment,this.value=t.unparse(),this.loc={start:e,end:e+t.textLength.utf16}}print(){return(0,a.f)(this)?(0,o.a)(this):l(h,this.value.split("\n"))}}s()}catch(t){s(t)}}))},7576:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>u});var i=r(4675),n=r(838),a=r(9959),o=r(7958),c=t([i]);i=(c.then?(await c)():c)[0];const{join:l,literalline:h}=n.doc.builders;class u{constructor(t,e){this.kind=i.hP.MultiLineNatSpecComment,this.value=t.unparse(),this.loc={start:e,end:e+t.textLength.utf16}}print(){return(0,a.f)(this)?(0,o.a)(this):l(h,this.value.split("\n"))}}s()}catch(t){s(t)}}))},8968:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{d:()=>p});var i=r(4675),n=r(4209),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["/","%"]),u=(0,a.H)(["*","%"]),d=(0,a.H)(["*","/","%"]);class p{constructor(t,e,r){this.kind=i.q3.MultiplicativeExpression;let s=(0,o.s)(t,e);const{offsets:n}=s;switch(this.leftOperand=new c.r(t.leftOperand,n[0],r),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,n[1],r),s=(0,o.D)(s,[this.leftOperand,this.rightOperand]),this.comments=s.comments,this.loc=s.loc,this.operator){case"*":this.leftOperand=h(this.leftOperand);break;case"/":this.leftOperand=u(this.leftOperand);break;case"%":this.leftOperand=d(this.leftOperand);break;default:throw new Error(`Unexpected operator: ${this.operator}`)}}print(t,e,r){return(0,n.W)(this,t,e,r)}}s()}catch(t){s(t)}}))},316:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(4675),n=r(801),a=r(2291),o=r(8926),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.NamedArgument;let s=(0,n.s)(t,e);const{offsets:c}=s;this.name=new a.g(t.name,c[0]),this.value=new o.r(t.value,c[1],r),s=(0,n.D)(s,[this.value]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"name"),": ",t.call(e,"value")]}}s()}catch(t){s(t)}}))},4797:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{S:()=>c});var i=r(4675),n=r(801),a=r(2603),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.NamedArgumentGroup;let s=(0,n.s)(t,e);const{offsets:o}=s;this.arguments=new a.q(t.arguments,o[0],r),s=(0,n.D)(s,[this.arguments]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["{",t.call(e,"arguments"),"}"]}}s()}catch(t){s(t)}}))},2603:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{q:()=>d});var i=r(838),n=r(4675),a=r(7578),o=r(801),c=r(316),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{line:h,softline:u}=i.doc.builders;class d{constructor(t,e,r){this.kind=n.q3.NamedArguments;let s=(0,o.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new c.j(t,i[e],r))),this.separators=t.separators.map((t=>t.unparse())),s=(0,o.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(t){s(t)}}))},5451:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Q:()=>c});var i=r(4675),n=r(801),a=r(4797),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.NamedArgumentsDeclaration;let s=(0,n.s)(t,e);const{offsets:o}=s;t.arguments&&(this.arguments=new a.S(t.arguments,o[0],r)),s=(0,n.D)(s,[this.arguments]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["(",t.call(e,"arguments"),")"]}}s()}catch(t){s(t)}}))},3534:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>l});var i=r(4675),n=r(801),a=r(6485),o=r(3562),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.NamedImport;let s=(0,n.s)(t,e);const{offsets:c}=s;this.alias=new a.G(t.alias,c[0]),this.path=new o.L(t.path,c[1],r),s=(0,n.D)(s,[this.alias,this.path]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["*",t.call(e,"alias")," from ",t.call(e,"path")]}}s()}catch(t){s(t)}}))},6010:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>c});var i=r(4675),n=r(801),a=r(9979),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.NewExpression;let s=(0,n.s)(t,e);const{offsets:o}=s;this.typeName=new a.C(t.typeName,o[0],r),s=(0,n.D)(s,[this.typeName]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["new ",t.call(e,"typeName")]}}s()}catch(t){s(t)}}))},6603:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{c:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.NumberUnit;const r=(0,n.s)(t,e);this.variant=t.variant.unparse(),this.comments=r.comments,this.loc=r.loc}print(){return this.variant}}s()}catch(t){s(t)}}))},8947:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K:()=>u});var i=r(4675),n=r(8409),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["&&"]);class u{constructor(t,e,r){this.kind=i.q3.OrExpression;let s=(0,o.s)(t,e);const{offsets:n}=s;this.leftOperand=new c.r(t.leftOperand,n[0],r),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,n[1],r),s=(0,o.D)(s,[this.leftOperand,this.rightOperand]),this.comments=s.comments,this.loc=s.loc,this.leftOperand=h(this.leftOperand),this.rightOperand=h(this.rightOperand)}print(t,e,r){return(0,n.a)(this,t,e,r)}}s()}catch(t){s(t)}}))},2818:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>l});var i=r(4675),n=r(801),a=r(7578),o=r(2912),c=t([i,n,o]);[i,n,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.OverridePaths;let r=(0,n.s)(t,e,!0);const{offsets:s}=r;this.items=t.items.map(((t,e)=>new o.D(t,s[e]))),this.separators=t.separators.map((t=>t.unparse())),r=(0,n.D)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},6004:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{v:()=>c});var i=r(4675),n=r(801),a=r(2818),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.OverridePathsDeclaration;let r=(0,n.s)(t,e);const{offsets:s}=r;this.paths=new a.r(t.paths,s[0]),r=(0,n.D)(r,[this.paths]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["(",t.call(e,"paths"),")"]}}s()}catch(t){s(t)}}))},7178:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{l:()=>c});var i=r(4675),n=r(801),a=r(6004),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.OverrideSpecifier;let r=(0,n.s)(t,e);const{offsets:s}=r;t.overridden&&(this.overridden=new a.v(t.overridden,s[0])),r=(0,n.D)(r,[this.overridden]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["override",t.call(e,"overridden")]}}s()}catch(t){s(t)}}))},3541:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{k:()=>p});var i=r(4675),n=r(838),a=r(801),o=r(1e3),c=r(9979),l=r(1616),h=r(2291),u=t([i,a,c,l,h]);[i,a,c,l,h]=u.then?(await u)():u;const{group:d}=n.doc.builders;class p{constructor(t,e,r){this.kind=i.q3.Parameter;let s=(0,a.s)(t,e);const{offsets:n}=s;this.typeName=new c.C(t.typeName,n[0],r);let o=1;t.storageLocation&&(this.storageLocation=new l.$(t.storageLocation,n[o]),o+=1),t.name&&(this.name=new h.g(t.name,n[o])),s=(0,a.D)(s,[this.typeName,this.storageLocation]),this.comments=s.comments,this.loc=s.loc}print(t,e){return d((0,o.I)(" ",[t.call(e,"typeName"),t.call(e,"storageLocation"),t.call(e,"name")]))}}s()}catch(t){s(t)}}))},4716:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>u});var i=r(4675),n=r(7578),a=r(8941),o=r(7134),c=r(801),l=r(3541),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u{constructor(t,e,r){this.kind=i.q3.Parameters;let s=(0,c.s)(t,e,!0);const{offsets:n}=s;this.items=t.items.map(((t,e)=>new l.k(t,n[e],r))),this.separators=t.separators.map((t=>t.unparse())),s=(0,c.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){if(this.items.length>0)return(0,n.J)(t.map(e,"items"),{grouped:!1});const r=(0,o.i)(t);return r.length>0?(0,a.K)(r):""}}s()}catch(t){s(t)}}))},9002:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>c});var i=r(4675),n=r(801),a=r(4716),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.ParametersDeclaration;let s=(0,n.s)(t,e);const{offsets:o}=s;this.parameters=new a.H(t.parameters,o[0],r),s=(0,n.D)(s,[this.parameters]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}}))},9150:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{N:()=>l});var i=r(4675),n=r(801),a=r(3562),o=r(6485),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.PathImport;let s=(0,n.s)(t,e);const{offsets:c}=s;this.path=new a.L(t.path,c[0],r),t.alias&&(this.alias=new o.G(t.alias,c[1])),s=(0,n.D)(s,[this.path,this.alias]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"path"),t.call(e,"alias")]}}s()}catch(t){s(t)}}))},4872:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{T:()=>u});var i=r(4675),n=r(7134),a=r(8941),o=r(7578),c=r(801),l=r(8926),h=t([i,n,c,l]);[i,n,c,l]=h.then?(await h)():h;class u{constructor(t,e,r){this.kind=i.q3.PositionalArguments;let s=(0,c.s)(t,e,!0);const{offsets:n}=s;this.items=t.items.map(((t,e)=>new l.r(t,n[e],r))),this.separators=t.separators.map((t=>t.unparse())),s=(0,c.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){if(this.items.length>0)return(0,o.J)(t.map(e,"items"));const r=(0,n.i)(t);return r.length>0?(0,a.K)(r):""}}s()}catch(t){s(t)}}))},9182:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{V:()=>l});var i=r(4675),n=r(801),a=r(7540),o=r(4872),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.PositionalArgumentsDeclaration;let s=(0,n.s)(t,e);const{offsets:c}=s;this.arguments=new o.T(t.arguments,c[0],r),s=(0,n.D)(s,[this.arguments]),this.comments=s.comments,this.loc=s.loc;const l=0===this.arguments.items.length&&!this.comments.some((t=>(0,a.t)(t)));this.isEmpty=()=>l}print(t,e){return["(",t.call(e,"arguments"),")"]}}s()}catch(t){s(t)}}))},4109:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{_:()=>c});var i=r(4675),n=r(801),a=r(8926),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.PostfixExpression;let s=(0,n.s)(t,e);const{offsets:o}=s;this.operand=new a.r(t.operand,o[0],r),this.operator=t.operator.unparse(),s=(0,n.D)(s,[this.operand]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"operand"),this.operator]}}s()}catch(t){s(t)}}))},2440:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{n:()=>h});var i=r(4675),n=r(801),a=r(1475),o=r(6162),c=r(8234),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;class h{constructor(t,e,r){this.kind=i.q3.Pragma;let s=(0,n.s)(t,e);const{offsets:l}=s;switch(t.variant.cst.kind){case i.q3.AbicoderPragma:this.variant=new a.Y(t.variant,l[0]);break;case i.q3.ExperimentalPragma:this.variant=new o.j(t.variant,l[0],r);break;case i.q3.VersionPragma:this.variant=new c.h(t.variant,l[0]);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},5887:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K:()=>c});var i=r(4675),n=r(801),a=r(2440),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.PragmaDirective;let s=(0,n.s)(t,e);const{offsets:o}=s;this.pragma=new a.n(t.pragma,o[0],r),s=(0,n.D)(s,[this.pragma]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["pragma ",t.call(e,"pragma"),";"]}}s()}catch(t){s(t)}}))},8802:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{B:()=>c});var i=r(4675),n=r(801),a=r(8926),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.PrefixExpression;let s=(0,n.s)(t,e);const{offsets:o}=s;this.operator=t.operator.unparse(),this.operand=new a.r(t.operand,o[0],r),s=(0,n.D)(s,[this.operand]),this.comments=s.comments,this.loc=s.loc,"delete"===this.operator&&(this.operator=`${this.operator} `)}print(t,e){return[this.operator,t.call(e,"operand")]}}s()}catch(t){s(t)}}))},4700:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Y:()=>l});var i=r(4675),n=r(801),a=r(1699),o=r(7178),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.ReceiveFunctionAttribute;let s=(0,n.s)(t,e);const{offsets:c}=s;if(t.variant instanceof i.xo)this.variant=t.variant.unparse();else switch(t.variant.cst.kind){case i.q3.ModifierInvocation:this.variant=new a.u(t.variant,c[0],r);break;case i.q3.OverrideSpecifier:this.variant=new o.l(t.variant,c[0]);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,"string"==typeof this.variant?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},694:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{P:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(4700),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.ReceiveFunctionAttributes;let s=(0,o.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new c.Y(t,i[e],r))),s=(0,o.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},9394:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>u});var i=r(4675),n=r(304),a=r(801),o=r(9002),c=r(694),l=r(1580),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;class u{constructor(t,e,r){this.kind=i.q3.ReceiveFunctionDefinition;let s=(0,a.s)(t,e);const{offsets:n}=s;this.parameters=new o.Z(t.parameters,n[0],r),this.attributes=new c.P(t.attributes,n[1],r),this.body=new l.r(t.body,n[2],r),s=(0,a.D)(s,[this.parameters,this.attributes,this.body]),this.comments=s.comments,this.loc=s.loc,this.cleanModifierInvocationArguments()}cleanModifierInvocationArguments(){for(const t of this.attributes.items)"string"!=typeof t.variant&&t.variant.kind===i.q3.ModifierInvocation&&t.variant.cleanModifierInvocationArguments()}print(t,e){return(0,n.c)("receive",this,t,e)}}s()}catch(t){s(t)}}))},2993:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{c:()=>p});var i=r(838),n=r(4675),a=r(801),o=r(8926),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{group:l,indent:h,line:u}=i.doc.builders;function d(t,e,r,s){return t.expression?"string"!=typeof t.expression.variant&&(t.expression.variant.kind===n.q3.TupleExpression||s.experimentalTernaries&&t.expression.variant.kind===n.q3.ConditionalExpression)?[" ",e.call(r,"expression")]:l(h([u,e.call(r,"expression")])):""}class p{constructor(t,e,r){this.kind=n.q3.ReturnStatement;let s=(0,a.s)(t,e);const{offsets:i}=s;t.expression&&(this.expression=new o.r(t.expression,i[0],r)),s=(0,a.D)(s,[this.expression]),this.comments=s.comments,this.loc=s.loc}print(t,e,r){return["return",d(this,t,e,r),";"]}}s()}catch(m){s(m)}}))},7181:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{I:()=>h});var i=r(838),n=r(4675),a=r(801),o=r(9002),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{group:l}=i.doc.builders;class h{constructor(t,e,r){this.kind=n.q3.ReturnsDeclaration;let s=(0,a.s)(t,e);const{offsets:i}=s;this.variables=new o.Z(t.variables,i[0],r),s=(0,a.D)(s,[this.variables]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["returns ",l(t.call(e,"variables"))]}}s()}catch(t){s(t)}}))},6133:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(2912),c=r(5756),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e,r){this.kind=i.q3.RevertStatement;let s=(0,n.s)(t,e);const{offsets:a}=s;let l=0;t.error&&(this.error=new o.D(t.error,a[l]),l+=1),this.arguments=new c.Z(t.arguments,a[l],r),s=(0,n.D)(s,[this.error,this.arguments]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[(0,a.I)(" ",["revert",t.call(e,"error")]),t.call(e,"arguments"),";"]}}s()}catch(t){s(t)}}))},4852:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>d});var i=r(4675),n=r(4209),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["+","-","*","/","**","<<",">>"]),u=(0,a.H)(["+","-","*","/","**"]);class d{constructor(t,e,r){this.kind=i.q3.ShiftExpression;let s=(0,o.s)(t,e);const{offsets:n}=s;this.leftOperand=new c.r(t.leftOperand,n[0],r),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,n[1],r),s=(0,o.D)(s,[this.leftOperand,this.rightOperand]),this.comments=s.comments,this.loc=s.loc,this.leftOperand=h(this.leftOperand),this.rightOperand=u(this.rightOperand)}print(t,e,r){return(0,n.W)(this,t,e,r)}}s()}catch(t){s(t)}}))},717:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.SimpleVersionLiteral;const r=(0,n.s)(t,e,!0);this.items=t.items.map((t=>t.unparse())),this.separators=t.separators.map((t=>t.unparse())),this.comments=r.comments,this.loc=r.loc}print(){return this.items.map(((t,e)=>0===e?t:[this.separators[e-1],t]))}}s()}catch(t){s(t)}}))},9441:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{a:()=>a});var i=r(4675),n=t([i]);i=(n.then?(await n)():n)[0];class a{constructor(t,e){this.kind=i.hP.SingleLineComment,this.value=t.unparse(),this.loc={start:e,end:e+t.textLength.utf16}}print(){return this.value.trimEnd()}}s()}catch(t){s(t)}}))},4867:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{c:()=>a});var i=r(4675),n=t([i]);i=(n.then?(await n)():n)[0];class a{constructor(t,e){this.kind=i.hP.SingleLineNatSpecComment,this.value=t.unparse(),this.loc={start:e,end:e+t.textLength.utf16}}print(){return this.value.trimEnd()}}s()}catch(t){s(t)}}))},6811:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{M:()=>h});var i=r(838),n=r(4675),a=r(801),o=r(6404),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{line:l}=i.doc.builders;class h{constructor(t,e,r){this.kind=n.q3.SourceUnit;let s=(0,a.s)(t,e);const{offsets:i}=s;this.members=new o.d(t.members,i[0],r),s=(0,a.D)(s,[this.members]),this.comments=s.comments.sort(((t,e)=>t.loc.start-e.loc.start)),this.loc=s.loc}print(t,e,r){return[t.call(e,"members"),r.parentParser?"":l]}}s()}catch(t){s(t)}}))},3357:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>v});var i=r(4675),n=r(801),a=r(5887),o=r(8668),c=r(2795),l=r(3692),h=r(1132),u=r(8324),d=r(3820),p=r(7281),m=r(9885),y=r(897),f=r(7260),g=r(33),w=r(4351),x=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]=x.then?(await x)():x;class v{constructor(t,e,r){this.kind=i.q3.SourceUnitMember;let s=(0,n.s)(t,e);const{offsets:x}=s;switch(t.variant.cst.kind){case i.q3.PragmaDirective:this.variant=new a.K(t.variant,x[0],r);break;case i.q3.ImportDirective:this.variant=new o.p(t.variant,x[0],r);break;case i.q3.ContractDefinition:this.variant=new c.e(t.variant,x[0],r);break;case i.q3.InterfaceDefinition:this.variant=new l.J(t.variant,x[0],r);break;case i.q3.LibraryDefinition:this.variant=new h.J(t.variant,x[0],r);break;case i.q3.StructDefinition:this.variant=new u.Z(t.variant,x[0],r);break;case i.q3.EnumDefinition:this.variant=new d.P(t.variant,x[0]);break;case i.q3.FunctionDefinition:this.variant=new p.W(t.variant,x[0],r);break;case i.q3.ConstantDefinition:this.variant=new m.y(t.variant,x[0],r);break;case i.q3.ErrorDefinition:this.variant=new y.e(t.variant,x[0],r);break;case i.q3.UserDefinedValueTypeDefinition:this.variant=new f.z(t.variant,x[0]);break;case i.q3.UsingDirective:this.variant=new g.K(t.variant,x[0],r);break;case i.q3.EventDefinition:this.variant=new w.w(t.variant,x[0],r);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},6404:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{d:()=>l});var i=r(4675),n=r(1041),a=r(801),o=r(3357),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.SourceUnitMembers;let s=(0,a.s)(t,e,!0);const{offsets:n}=s;this.items=t.items.map(((t,e)=>new o.A(t,n[e],r))),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e,r){return(0,n.V)(t,e,r)}}s()}catch(t){s(t)}}))},2203:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{c:()=>c});var i=r(4675),n=r(801),a=r(7178),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.StateVariableAttribute;let r=(0,n.s)(t,e);const{offsets:s}=r;this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.l(t.variant,s[0]),r=(0,n.D)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},3002:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{T:()=>u});var i=r(4675),n=r(838),a=r(801),o=r(3111),c=r(2203),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u{constructor(t,e){this.kind=i.q3.StateVariableAttributes;let r=(0,a.s)(t,e,!0);const{offsets:s}=r;this.items=t.items.map(((t,e)=>new c.c(t,s[e]))),r=(0,a.D)(r,[this.items]),this.comments=r.comments,this.loc=r.loc,this.items=this.items.sort(o.k)}print(t,e){return this.items.length?t.map(e,"items").map((t=>[h,t])):""}}s()}catch(t){s(t)}}))},918:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>y});var i=r(4675),n=r(838),a=r(801),o=r(9979),c=r(3002),l=r(2291),h=r(4965),u=t([i,a,o,c,l,h]);[i,a,o,c,l,h]=u.then?(await u)():u;const{group:d,indent:p,indentIfBreak:m}=n.doc.builders;class y{constructor(t,e,r){this.kind=i.q3.StateVariableDefinition;let s=(0,a.s)(t,e);const{offsets:n}=s;this.typeName=new o.C(t.typeName,n[0],r),this.attributes=new c.T(t.attributes,n[1]),this.name=new l.g(t.name,n[2]),t.value&&(this.value=new h.S(t.value,n[3],r)),s=(0,a.D)(s,[this.typeName,this.attributes,this.value]),this.comments=s.comments,this.loc=s.loc}print(t,e){const r=d(p(t.call(e,"attributes")),{id:Symbol("Slang.StateVariableDefinition.attributes")});return[t.call(e,"typeName"),r," ",t.call(e,"name"),this.value?m(t.call(e,"value"),{groupId:r.id}):"",";"]}}s()}catch(t){s(t)}}))},4965:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{S:()=>d});var i=r(838),n=r(4675),a=r(801),o=r(8926),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{group:l,indent:h,line:u}=i.doc.builders;class d{constructor(t,e,r){this.kind=n.q3.StateVariableDefinitionValue;let s=(0,a.s)(t,e);const{offsets:i}=s;this.value=new o.r(t.value,i[0],r),s=(0,a.D)(s,[this.value]),this.comments=s.comments,this.loc=s.loc}print(t,e){return"string"!=typeof this.value.variant&&this.value.variant.kind===n.q3.ArrayExpression?[" = ",t.call(e,"value")]:l([" =",h([u,t.call(e,"value")])])}}s()}catch(t){s(t)}}))},5211:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{W:()=>T});var i=r(4675),n=r(801),a=r(6157),o=r(2421),c=r(6773),l=r(7978),h=r(3816),u=r(826),d=r(8943),p=r(9892),m=r(3144),y=r(2993),f=r(1553),g=r(3406),w=r(698),x=r(6133),v=r(7299),b=r(6511),_=r(6470),E=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_]=E.then?(await E)():E;class T{constructor(t,e,r){this.kind=i.q3.Statement;let s=(0,n.s)(t,e);const{offsets:E}=s;switch(t.variant.cst.kind){case i.q3.ExpressionStatement:this.variant=new a.Q(t.variant,E[0],r);break;case i.q3.VariableDeclarationStatement:this.variant=new o._(t.variant,E[0],r);break;case i.q3.TupleDeconstructionStatement:this.variant=new c.a(t.variant,E[0],r);break;case i.q3.IfStatement:this.variant=new l.v(t.variant,E[0],r);break;case i.q3.ForStatement:this.variant=new h.p(t.variant,E[0],r);break;case i.q3.WhileStatement:this.variant=new u.x(t.variant,E[0],r);break;case i.q3.DoWhileStatement:this.variant=new d.I(t.variant,E[0],r);break;case i.q3.ContinueStatement:this.variant=new p.H(t.variant,E[0]);break;case i.q3.BreakStatement:this.variant=new m.V(t.variant,E[0]);break;case i.q3.ReturnStatement:this.variant=new y.c(t.variant,E[0],r);break;case i.q3.ThrowStatement:this.variant=new f.e(t.variant,E[0]);break;case i.q3.EmitStatement:this.variant=new g.x(t.variant,E[0],r);break;case i.q3.TryStatement:this.variant=new w.H(t.variant,E[0],r);break;case i.q3.RevertStatement:this.variant=new x.i(t.variant,E[0],r);break;case i.q3.AssemblyStatement:this.variant=new v.I(t.variant,E[0],r);break;case i.q3.Block:this.variant=new b.e(t.variant,E[0],r);break;case i.q3.UncheckedBlock:this.variant=new _.E(t.variant,E[0],r);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},1322:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>p});var i=r(838),n=r(4675),a=r(8941),o=r(7134),c=r(1041),l=r(801),h=r(5211),u=t([n,o,c,l,h]);[n,o,c,l,h]=u.then?(await u)():u;const{hardline:d}=i.doc.builders;class p{constructor(t,e,r){this.kind=n.q3.Statements;let s=(0,l.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new h.W(t,i[e],r))),s=(0,l.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e,r){return 0===this.items.length&&0===this.comments.length?"":(0,a.K)([(0,c.V)(t,e,r),(0,o.i)(t)],{firstSeparator:d,grouped:!1})}}s()}catch(t){s(t)}}))},1616:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.StorageLocation;const r=(0,n.s)(t,e);this.variant=t.variant.unparse(),this.comments=r.comments,this.loc=r.loc}print(){return this.variant}}s()}catch(t){s(t)}}))},9511:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{O:()=>d});var i=r(4675),n=r(801),a=r(3562),o=r(1073),c=r(5191),l=r(7598),h=r(8580),u=t([i,n,a,o,c,l,h]);[i,n,a,o,c,l,h]=u.then?(await u)():u;class d{constructor(t,e,r){this.kind=i.q3.StringExpression;let s=(0,n.s)(t,e);const{offsets:u}=s;switch(t.variant.cst.kind){case i.q3.StringLiteral:this.variant=new a.L(t.variant,u[0],r);break;case i.q3.StringLiterals:this.variant=new o.K(t.variant,u[0],r);break;case i.q3.HexStringLiteral:this.variant=new c.C(t.variant,u[0],r);break;case i.q3.HexStringLiterals:this.variant=new l.P(t.variant,u[0],r);break;case i.q3.UnicodeStringLiterals:this.variant=new h.Z(t.variant,u[0],r);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},3562:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{L:()=>c});var i=r(4675),n=r(1529),a=r(801),o=t([i,a]);[i,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.StringLiteral;const s=(0,a.s)(t,e);this.variant=t.variant.unparse(),this.comments=s.comments,this.loc=s.loc,this.variant=(0,n.T)(this.variant.slice(1,-1),r)}print(){return this.variant}}s()}catch(t){s(t)}}))},1073:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(3562),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.StringLiterals;let s=(0,a.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new o.L(t,i[e],r))),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return l(h,t.map(e,"items"))}}s()}catch(t){s(t)}}))},8324:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>l});var i=r(4675),n=r(801),a=r(2291),o=r(7462),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.StructDefinition;let s=(0,n.s)(t,e);const{offsets:c}=s;this.name=new a.g(t.name,c[0]),this.members=new o.N(t.members,c[1],r),s=(0,n.D)(s,[this.members]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["struct ",t.call(e,"name")," {",t.call(e,"members"),"}"]}}s()}catch(t){s(t)}}))},5839:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Y:()=>l});var i=r(4675),n=r(801),a=r(9979),o=r(2291),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.StructMember;let s=(0,n.s)(t,e);const{offsets:c}=s;this.typeName=new a.C(t.typeName,c[0],r),this.name=new o.g(t.name,c[1]),s=(0,n.D)(s,[this.typeName]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"typeName")," ",t.call(e,"name"),";"]}}s()}catch(t){s(t)}}))},7462:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{N:()=>u});var i=r(838),n=r(4675),a=r(7578),o=r(801),c=r(5839),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{hardline:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.StructMembers;let s=(0,o.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new c.Y(t,i[e],r))),s=(0,o.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return this.items.length>0?(0,a.J)(t.map(e,"items"),{firstSeparator:h,separator:h}):""}}s()}catch(t){s(t)}}))},1553:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{e:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.ThrowStatement;const r=(0,n.s)(t,e);this.comments=r.comments,this.loc=r.loc}print(){return"throw;"}}s()}catch(t){s(t)}}))},698:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>y});var i=r(838),n=r(4675),a=r(8941),o=r(801),c=r(1e3),l=r(8926),h=r(7181),u=r(6511),d=r(7259),p=t([n,o,l,h,u,d]);[n,o,l,h,u,d]=p.then?(await p)():p;const{line:m}=i.doc.builders;class y{constructor(t,e,r){this.kind=n.q3.TryStatement;let s=(0,o.s)(t,e);const{offsets:i}=s;this.expression=new l.r(t.expression,i[0],r);let a=1;t.returns&&(this.returns=new h.I(t.returns,i[a],r),a+=1),this.body=new u.e(t.body,i[a],r),a+=1,this.catchClauses=new d.m(t.catchClauses,i[a],r),s=(0,o.D)(s,[this.expression,this.returns,this.body,this.catchClauses]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["try",(0,a.K)(t.call(e,"expression"),{firstSeparator:m}),(0,c.I)(" ",[t.call(e,"returns"),t.call(e,"body"),t.call(e,"catchClauses")])]}}s()}catch(t){s(t)}}))},9400:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>c});var i=r(4675),n=r(801),a=r(7562),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.TupleDeconstructionElement;let s=(0,n.s)(t,e);const{offsets:o}=s;t.member&&(this.member=new a.n(t.member,o[0],r)),s=(0,n.D)(s,[this.member]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"member")}}s()}catch(t){s(t)}}))},9839:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Y:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(9400),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.TupleDeconstructionElements;let s=(0,a.s)(t,e,!0);const{offsets:n}=s;this.items=t.items.map(((t,e)=>new o.r(t,n[e],r))),this.separators=t.separators.map((t=>t.unparse())),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},6773:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{a:()=>d});var i=r(4675),n=r(838),a=r(801),o=r(9839),c=r(8926),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{group:h,indentIfBreak:u}=n.doc.builders;class d{constructor(t,e,r){var s;this.kind=i.q3.TupleDeconstructionStatement;let n=(0,a.s)(t,e);const{offsets:l}=n;this.varKeyword=null===(s=t.varKeyword)||void 0===s?void 0:s.unparse(),this.elements=new o.Y(t.elements,l[0],r),this.expression=new c.r(t.expression,l[1],r),n=(0,a.D)(n,[this.elements,this.expression]),this.comments=n.comments,this.loc=n.loc}print(t,e){const r=h([this.varKeyword?"var (":"(",t.call(e,"elements"),")"],{id:Symbol("Slang.VariableDeclarationStatement.variables")});return[r,u([" = ",t.call(e,"expression"),";"],{groupId:r.id})]}}s()}catch(t){s(t)}}))},4274:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{b:()=>c});var i=r(4675),n=r(801),a=r(1634),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.TupleExpression;let s=(0,n.s)(t,e);const{offsets:o}=s;this.items=new a.X(t.items,o[0],r),s=(0,n.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["(",t.call(e,"items"),")"]}}s()}catch(t){s(t)}}))},7562:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{n:()=>l});var i=r(4675),n=r(801),a=r(3700),o=r(539),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.TupleMember;let s=(0,n.s)(t,e);const{offsets:c}=s;switch(t.variant.cst.kind){case i.q3.TypedTupleMember:this.variant=new a.Z(t.variant,c[0],r);break;case i.q3.UntypedTupleMember:this.variant=new o.i(t.variant,c[0]);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},7651:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{E:()=>c});var i=r(4675),n=r(801),a=r(8926),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.TupleValue;let s=(0,n.s)(t,e);const{offsets:o}=s;t.expression&&(this.expression=new a.r(t.expression,o[0],r)),s=(0,n.D)(s,[this.expression]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"expression")}}s()}catch(t){s(t)}}))},1634:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{X:()=>h});var i=r(4675),n=r(7578),a=r(1376),o=r(801),c=r(7651),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h{constructor(t,e,r){this.kind=i.q3.TupleValues;let s=(0,o.s)(t,e,!0);const{offsets:n}=s;this.items=t.items.map(((t,e)=>new c.E(t,n[e],r))),this.separators=t.separators.map((t=>t.unparse())),s=(0,o.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return 1===this.items.length&&this.items[0].expression&&this.items[0].expression.variant.kind!==i.hP.Identifier&&(0,a.D)(this.items[0].expression.variant)?t.map(e,"items"):(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},86:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>c});var i=r(4675),n=r(801),a=r(9979),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.TypeExpression;let s=(0,n.s)(t,e);const{offsets:o}=s;this.typeName=new a.C(t.typeName,o[0],r),s=(0,n.D)(s,[this.typeName]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["type(",t.call(e,"typeName"),")"]}}s()}catch(t){s(t)}}))},9979:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>d});var i=r(4675),n=r(801),a=r(4968),o=r(3476),c=r(9184),l=r(3198),h=r(2912),u=t([i,n,a,o,c,l,h]);[i,n,a,o,c,l,h]=u.then?(await u)():u;class d{constructor(t,e,r){this.kind=i.q3.TypeName;let s=(0,n.s)(t,e);const{offsets:u}=s;switch(t.variant.cst.kind){case i.q3.ArrayTypeName:this.variant=new a.f(t.variant,u[0],r);break;case i.q3.FunctionType:this.variant=new o.R(t.variant,u[0],r);break;case i.q3.MappingType:this.variant=new c.d(t.variant,u[0],r);break;case i.q3.ElementaryType:this.variant=new l.$(t.variant,u[0]);break;case i.q3.IdentifierPath:this.variant=new h.D(t.variant,u[0]);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},3700:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>u});var i=r(4675),n=r(801),a=r(1e3),o=r(9979),c=r(1616),l=r(2291),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;class u{constructor(t,e,r){this.kind=i.q3.TypedTupleMember;let s=(0,n.s)(t,e);const{offsets:a}=s;this.typeName=new o.C(t.typeName,a[0],r);let h=1;t.storageLocation&&(this.storageLocation=new c.$(t.storageLocation,a[h]),h+=1),this.name=new l.g(t.name,a[h]),s=(0,n.D)(s,[this.typeName,this.storageLocation]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,a.I)(" ",[t.call(e,"typeName"),t.call(e,"storageLocation"),t.call(e,"name")])}}s()}catch(t){s(t)}}))},6470:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{E:()=>c});var i=r(4675),n=r(801),a=r(6511),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.UncheckedBlock;let s=(0,n.s)(t,e);const{offsets:o}=s;this.block=new a.e(t.block,o[0],r),s=(0,n.D)(s,[this.block]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["unchecked ",t.call(e,"block")]}}s()}catch(t){s(t)}}))},1309:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{G:()=>c});var i=r(4675),n=r(1529),a=r(801),o=t([i,a]);[i,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.UnicodeStringLiteral;const s=(0,a.s)(t,e);this.variant=t.variant.unparse(),this.comments=s.comments,this.loc=s.loc,this.variant=`unicode${(0,n.T)(this.variant.slice(8,-1),r)}`}print(){return this.variant}}s()}catch(t){s(t)}}))},8580:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(1309),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.UnicodeStringLiterals;let s=(0,a.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new o.G(t,i[e],r))),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return l(h,t.map(e,"items"))}}s()}catch(t){s(t)}}))},2080:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{L:()=>c});var i=r(4675),n=r(801),a=r(1699),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.UnnamedFunctionAttribute;let s=(0,n.s)(t,e);const{offsets:o}=s;this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.u(t.variant,o[0],r),s=(0,n.D)(s,"string"==typeof this.variant?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},2263:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{q:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(2080),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.UnnamedFunctionAttributes;let s=(0,o.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new c.L(t,i[e],r))),s=(0,o.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},6871:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{u:()=>u});var i=r(4675),n=r(304),a=r(801),o=r(9002),c=r(2263),l=r(1580),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;class u{constructor(t,e,r){this.kind=i.q3.UnnamedFunctionDefinition;let s=(0,a.s)(t,e);const{offsets:n}=s;this.parameters=new o.Z(t.parameters,n[0],r),this.attributes=new c.q(t.attributes,n[1],r),this.body=new l.r(t.body,n[2],r),s=(0,a.D)(s,[this.parameters,this.attributes,this.body]),this.comments=s.comments,this.loc=s.loc,this.cleanModifierInvocationArguments()}cleanModifierInvocationArguments(){for(const t of this.attributes.items)"string"!=typeof t.variant&&t.variant.cleanModifierInvocationArguments()}print(t,e){return(0,n.c)("function",this,t,e)}}s()}catch(t){s(t)}}))},539:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(1616),c=r(2291),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e){this.kind=i.q3.UntypedTupleMember;let r=(0,n.s)(t,e);const{offsets:s}=r;let a=0;t.storageLocation&&(this.storageLocation=new o.$(t.storageLocation,s[a]),a+=1),this.name=new c.g(t.name,s[a]),r=(0,n.D)(r,[this.storageLocation]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.I)(" ",[t.call(e,"storageLocation"),t.call(e,"name")])}}s()}catch(t){s(t)}}))},7260:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>l});var i=r(4675),n=r(801),a=r(2291),o=r(3198),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.UserDefinedValueTypeDefinition;let r=(0,n.s)(t,e);const{offsets:s}=r;this.name=new a.g(t.name,s[0]),this.valueType=new o.$(t.valueType,s[1]),r=(0,n.D)(r,[this.valueType]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["type ",t.call(e,"name")," is ",t.call(e,"valueType"),";"]}}s()}catch(t){s(t)}}))},4916:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>c});var i=r(4675),n=r(801),a=r(7818),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.UsingAlias;let r=(0,n.s)(t,e);const{offsets:s}=r;this.operator=new a.Z(t.operator,s[0]),r=(0,n.D)(r,[this.operator]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[" as ",t.call(e,"operator")]}}s()}catch(t){s(t)}}))},6575:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>l});var i=r(4675),n=r(801),a=r(2912),o=r(7972),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.UsingClause;let r=(0,n.s)(t,e);const{offsets:s}=r;switch(t.variant.cst.kind){case i.q3.IdentifierPath:this.variant=new a.D(t.variant,s[0]);break;case i.q3.UsingDeconstruction:this.variant=new o.r(t.variant,s[0]);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},7972:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>c});var i=r(4675),n=r(801),a=r(983),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.UsingDeconstruction;let r=(0,n.s)(t,e);const{offsets:s}=r;this.symbols=new a.e(t.symbols,s[0]),r=(0,n.D)(r,[this.symbols]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["{",t.call(e,"symbols"),"}"]}}s()}catch(t){s(t)}}))},4288:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{B:()=>l});var i=r(4675),n=r(801),a=r(2912),o=r(4916),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.UsingDeconstructionSymbol;let r=(0,n.s)(t,e);const{offsets:s}=r;this.name=new a.D(t.name,s[0]),t.alias&&(this.alias=new o.j(t.alias,s[1])),r=(0,n.D)(r,[this.name,this.alias]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"name"),t.call(e,"alias")]}}s()}catch(t){s(t)}}))},983:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{e:()=>d});var i=r(838),n=r(4675),a=r(7578),o=r(801),c=r(4288),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{line:h,softline:u}=i.doc.builders;class d{constructor(t,e){this.kind=n.q3.UsingDeconstructionSymbols;let r=(0,o.s)(t,e,!0);const{offsets:s}=r;this.items=t.items.map(((t,e)=>new c.B(t,s[e]))),this.separators=t.separators.map((t=>t.unparse())),r=(0,o.D)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(t){s(t)}}))},33:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(6575),c=r(2399),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e,r){var s;this.kind=i.q3.UsingDirective;let a=(0,n.s)(t,e);const{offsets:l}=a;this.clause=new o.g(t.clause,l[0]),this.target=new c.A(t.target,l[1],r),this.globalKeyword=null===(s=t.globalKeyword)||void 0===s?void 0:s.unparse(),a=(0,n.D)(a,[this.clause,this.target]),this.comments=a.comments,this.loc=a.loc}print(t,e){return[(0,a.I)(" ",["using",t.call(e,"clause"),"for",t.call(e,"target"),this.globalKeyword]),";"]}}s()}catch(t){s(t)}}))},7818:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.UsingOperator;const r=(0,n.s)(t,e);this.variant=t.variant.unparse(),this.comments=r.comments,this.loc=r.loc}print(){return this.variant}}s()}catch(t){s(t)}}))},2399:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(4675),n=r(801),a=r(9979),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.UsingTarget;let s=(0,n.s)(t,e);const{offsets:o}=s;this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.C(t.variant,o[0],r),s=(0,n.D)(s,"string"==typeof this.variant?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},2421:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{_:()=>f});var i=r(4675),n=r(838),a=r(801),o=r(6030),c=r(1616),l=r(2291),h=r(1829),u=t([i,a,o,c,l,h]);[i,a,o,c,l,h]=u.then?(await u)():u;const{group:d,indent:p,indentIfBreak:m,line:y}=n.doc.builders;class f{constructor(t,e,r){this.kind=i.q3.VariableDeclarationStatement;let s=(0,a.s)(t,e);const{offsets:n}=s;this.variableType=new o.L(t.variableType,n[0],r);let u=1;t.storageLocation&&(this.storageLocation=new c.$(t.storageLocation,n[u]),u+=1),this.name=new l.g(t.name,n[u]),u+=1,t.value&&(this.value=new h.y(t.value,n[u],r)),s=(0,a.D)(s,[this.variableType,this.storageLocation,this.value]),this.comments=s.comments,this.loc=s.loc}print(t,e){const r=d([t.call(e,"variableType"),p([this.storageLocation?[y,t.call(e,"storageLocation")]:""," ",t.call(e,"name")])],{id:Symbol("Slang.VariableDeclarationStatement.variables")});return[r,m(t.call(e,"value"),{groupId:r.id}),";"]}}s()}catch(t){s(t)}}))},6030:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{L:()=>c});var i=r(4675),n=r(801),a=r(9979),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.VariableDeclarationType;let s=(0,n.s)(t,e);const{offsets:o}=s;this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.C(t.variant,o[0],r),s=(0,n.D)(s,"string"==typeof this.variant?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},1829:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{y:()=>c});var i=r(4675),n=r(801),a=r(8926),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.VariableDeclarationValue;let s=(0,n.s)(t,e);const{offsets:o}=s;this.expression=new a.r(t.expression,o[0],r),s=(0,n.D)(s,[this.expression]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[" = ",t.call(e,"expression")]}}s()}catch(t){s(t)}}))},852:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{L:()=>l});var i=r(4675),n=r(801),a=r(8225),o=r(6336),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.VersionExpression;let r=(0,n.s)(t,e);const{offsets:s}=r;switch(t.variant.cst.kind){case i.q3.VersionRange:this.variant=new a.G(t.variant,s[0]);break;case i.q3.VersionTerm:this.variant=new o.B(t.variant,s[0]);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},3586:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{T:()=>h});var i=r(838),n=r(4675),a=r(801),o=r(852),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{join:l}=i.doc.builders;class h{constructor(t,e){this.kind=n.q3.VersionExpressionSet;let r=(0,a.s)(t,e,!0);const{offsets:s}=r;this.items=t.items.map(((t,e)=>new o.L(t,s[e]))),r=(0,a.D)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return l(" ",t.map(e,"items"))}}s()}catch(t){s(t)}}))},4313:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{k:()=>c});var i=r(4675),n=r(801),a=r(3586),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.VersionExpressionSets;let r=(0,n.s)(t,e,!0);const{offsets:s}=r;this.items=t.items.map(((t,e)=>new a.T(t,s[e]))),this.separators=t.separators.map((t=>t.unparse())),r=(0,n.D)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.map(e,"items").map(((t,e)=>0===e?t:[` ${this.separators[e-1]} `,t]))}}s()}catch(t){s(t)}}))},3091:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{w:()=>c});var i=r(4675),n=r(801),a=r(717),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.VersionLiteral;let r=(0,n.s)(t,e);const{offsets:s}=r;this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.i(t.variant,s[0]),r=(0,n.D)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},2754:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{X:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.VersionOperator;const r=(0,n.s)(t,e);this.variant=t.variant.unparse(),this.comments=r.comments,this.loc=r.loc}print(){return this.variant}}s()}catch(t){s(t)}}))},8234:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{h:()=>c});var i=r(4675),n=r(801),a=r(4313),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.VersionPragma;let r=(0,n.s)(t,e);const{offsets:s}=r;this.sets=new a.k(t.sets,s[0]),r=(0,n.D)(r,[this.sets]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["solidity ",t.call(e,"sets")]}}s()}catch(t){s(t)}}))},8225:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{G:()=>c});var i=r(4675),n=r(801),a=r(3091),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.VersionRange;let r=(0,n.s)(t,e);const{offsets:s}=r;this.start=new a.w(t.start,s[0]),this.end=new a.w(t.end,s[1]),r=(0,n.D)(r,[this.start,this.end]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"start")," - ",t.call(e,"end")]}}s()}catch(t){s(t)}}))},6336:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{B:()=>l});var i=r(4675),n=r(801),a=r(2754),o=r(3091),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.VersionTerm;let r=(0,n.s)(t,e);const{offsets:s}=r;let c=0;t.operator&&(this.operator=new a.X(t.operator,s[c]),c+=1),this.literal=new o.w(t.literal,s[c]),r=(0,n.D)(r,[this.operator,this.literal]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"operator"),t.call(e,"literal")]}}s()}catch(t){s(t)}}))},826:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{x:()=>m});var i=r(838),n=r(4675),a=r(8941),o=r(801),c=r(8926),l=r(5211),h=t([n,o,c,l]);[n,o,c,l]=h.then?(await h)():h;const{group:u,indent:d,line:p}=i.doc.builders;class m{constructor(t,e,r){this.kind=n.q3.WhileStatement;let s=(0,o.s)(t,e);const{offsets:i}=s;this.condition=new c.r(t.condition,i[0],r),this.body=new l.W(t.body,i[1],r),s=(0,o.D)(s,[this.condition,this.body]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["while (",(0,a.K)(t.call(e,"condition")),")",this.body.variant.kind===n.q3.Block?[" ",t.call(e,"body")]:u(d([p,t.call(e,"body")]))]}}s()}catch(t){s(t)}}))},9466:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(9838),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.YulArguments;let s=(0,a.s)(t,e,!0);const{offsets:n}=s;this.items=t.items.map(((t,e)=>new o.h(t,n[e],r))),this.separators=t.separators.map((t=>t.unparse())),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},5101:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{W:()=>c});var i=r(4675),n=r(801),a=r(8906),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.YulAssignmentOperator;let r=(0,n.s)(t,e);const{offsets:s}=r;this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.d(t.variant,s[0]),r=(0,n.D)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},2319:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{M:()=>c});var i=r(4675),n=r(801),a=r(1514),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.YulBlock;let s=(0,n.s)(t,e);const{offsets:o}=s;this.statements=new a.f(t.statements,o[0],r),s=(0,n.D)(s,[this.statements]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["{",t.call(e,"statements"),"}"]}}s()}catch(t){s(t)}}))},2888:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{b:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.YulBreakStatement;const r=(0,n.s)(t,e);this.comments=r.comments,this.loc=r.loc}print(){return"break"}}s()}catch(t){s(t)}}))},5789:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{E:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.YulBuiltInFunction;const r=(0,n.s)(t,e);this.variant=t.variant.unparse(),this.comments=r.comments,this.loc=r.loc}print(){return this.variant}}s()}catch(t){s(t)}}))},8906:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{d:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.YulColonAndEqual;const r=(0,n.s)(t,e);this.comments=r.comments,this.loc=r.loc}print(){return":="}}s()}catch(t){s(t)}}))},900:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{N:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.YulContinueStatement;const r=(0,n.s)(t,e);this.comments=r.comments,this.loc=r.loc}print(){return"continue"}}s()}catch(t){s(t)}}))},3495:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{a:()=>c});var i=r(4675),n=r(801),a=r(2319),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e,r){this.kind=i.q3.YulDefaultCase;let s=(0,n.s)(t,e);const{offsets:o}=s;this.body=new a.M(t.body,o[0],r),s=(0,n.D)(s,[this.body]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["default ",t.call(e,"body")]}}s()}catch(t){s(t)}}))},2830:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{T:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.YulEqualAndColon;const r=(0,n.s)(t,e);this.comments=r.comments,this.loc=r.loc}print(){return"=:"}}s()}catch(t){s(t)}}))},9838:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{h:()=>u});var i=r(4675),n=r(801),a=r(9878),o=r(7769),c=r(5789),l=r(3859),h=t([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u{constructor(t,e,r){this.kind=i.q3.YulExpression;let s=(0,n.s)(t,e);const{offsets:h}=s;switch(t.variant.cst.kind){case i.q3.YulFunctionCallExpression:this.variant=new a.V(t.variant,h[0],r);break;case i.q3.YulLiteral:this.variant=new o.K(t.variant,h[0],r);break;case i.q3.YulBuiltInFunction:this.variant=new c.E(t.variant,h[0]);break;case i.q3.YulPath:this.variant=new l.i(t.variant,h[0]);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},9192:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{D:()=>u});var i=r(4675),n=r(838),a=r(801),o=r(2319),c=r(9838),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{join:h}=n.doc.builders;class u{constructor(t,e,r){this.kind=i.q3.YulForStatement;let s=(0,a.s)(t,e);const{offsets:n}=s;this.initialization=new o.M(t.initialization,n[0],r),this.condition=new c.h(t.condition,n[1],r),this.iterator=new o.M(t.iterator,n[2],r),this.body=new o.M(t.body,n[3],r),s=(0,a.D)(s,[this.initialization,this.condition,this.iterator,this.body]),this.comments=s.comments,this.loc=s.loc}print(t,e){return h(" ",["for",t.call(e,"initialization"),t.call(e,"condition"),t.call(e,"iterator"),t.call(e,"body")])}}s()}catch(t){s(t)}}))},9878:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{V:()=>l});var i=r(4675),n=r(801),a=r(9838),o=r(9466),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.YulFunctionCallExpression;let s=(0,n.s)(t,e);const{offsets:c}=s;this.operand=new a.h(t.operand,c[0],r),this.arguments=new o.H(t.arguments,c[1],r),s=(0,n.D)(s,[this.operand,this.arguments]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"operand"),"(",t.call(e,"arguments"),")"]}}s()}catch(t){s(t)}}))},3457:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>u});var i=r(4675),n=r(801),a=r(5427),o=r(8026),c=r(3437),l=r(2319),h=t([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u{constructor(t,e,r){this.kind=i.q3.YulFunctionDefinition;let s=(0,n.s)(t,e);const{offsets:h}=s;this.name=new a.E(t.name,h[0]),this.parameters=new o.f(t.parameters,h[1]);let u=2;t.returns&&(this.returns=new c.c(t.returns,h[u]),u+=1),this.body=new l.M(t.body,h[u],r),s=(0,n.D)(s,[this.parameters,this.returns,this.body]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["function ",t.call(e,"name"),t.call(e,"parameters"),t.call(e,"returns")||" ",t.call(e,"body")]}}s()}catch(t){s(t)}}))},5427:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{E:()=>a});var i=r(4675),n=t([i]);i=(n.then?(await n)():n)[0];class a{constructor(t,e){this.kind=i.hP.YulIdentifier,this.value=t.unparse(),this.comments=[],this.loc={start:e,end:e+t.textLength.utf16}}print(){return this.value}}s()}catch(t){s(t)}}))},6570:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{N:()=>l});var i=r(4675),n=r(801),a=r(9838),o=r(2319),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.YulIfStatement;let s=(0,n.s)(t,e);const{offsets:c}=s;this.condition=new a.h(t.condition,c[0],r),this.body=new o.M(t.body,c[1],r),s=(0,n.D)(s,[this.condition,this.body]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["if ",t.call(e,"condition")," ",t.call(e,"body")]}}s()}catch(t){s(t)}}))},672:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(5427),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{dedent:l,line:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.YulLabel;const r=(0,a.s)(t,e),{offsets:s}=r;this.label=new o.E(t.label,s[0]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[l(h),t.call(e,"label"),":"]}}s()}catch(t){s(t)}}))},9976:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{d:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t,e){this.kind=i.q3.YulLeaveStatement;const r=(0,n.s)(t,e);this.comments=r.comments,this.loc=r.loc}print(){return"leave"}}s()}catch(t){s(t)}}))},7769:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K:()=>l});var i=r(4675),n=r(801),a=r(5191),o=r(3562),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.YulLiteral;let s=(0,n.s)(t,e);const{offsets:c}=s;if(t.variant instanceof i.xo)this.variant=t.variant.unparse();else switch(t.variant.cst.kind){case i.q3.HexStringLiteral:this.variant=new a.C(t.variant,c[0],r);break;case i.q3.StringLiteral:this.variant=new o.L(t.variant,c[0],r);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,"string"==typeof this.variant?[]:[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},9388:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(5427),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.YulParameters;const r=(0,a.s)(t,e,!0),{offsets:s}=r;this.items=t.items.map(((t,e)=>new o.E(t,s[e]))),this.separators=t.separators.map((t=>t.unparse())),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},8026:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{f:()=>c});var i=r(4675),n=r(801),a=r(9388),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.YulParametersDeclaration;let r=(0,n.s)(t,e);const{offsets:s}=r;this.parameters=new a.j(t.parameters,s[0]),r=(0,n.D)(r,[this.parameters]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}}))},3859:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>c});var i=r(4675),n=r(801),a=r(4400),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.YulPath;let r=(0,n.s)(t,e,!0);const{offsets:s}=r;this.items=t.items.map(((t,e)=>new a.j(t,s[e]))),this.separators=t.separators.map((t=>t.unparse())),r=(0,n.D)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.map(e,"items").map(((t,e)=>0===e?t:[this.separators[e-1],t]))}}s()}catch(t){s(t)}}))},4400:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>c});var i=r(4675),n=r(801),a=r(5427),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.YulPathComponent;const r=(0,n.s)(t,e),{offsets:s}=r;this.variant=new a.E(t.variant,s[0]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},8578:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{F:()=>c});var i=r(4675),n=r(801),a=r(3859),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.YulPaths;let r=(0,n.s)(t,e,!0);const{offsets:s}=r;this.items=t.items.map(((t,e)=>new a.i(t,s[e]))),this.separators=t.separators.map((t=>t.unparse())),r=(0,n.D)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.map(e,"items").map(((t,e)=>0===e?t:[this.separators[e-1],t]))}}s()}catch(t){s(t)}}))},3437:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{c:()=>u});var i=r(838),n=r(4675),a=r(8941),o=r(801),c=r(8634),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.YulReturnsDeclaration;let r=(0,o.s)(t,e);const{offsets:s}=r;this.variables=new c.b(t.variables,s[0]),r=(0,o.D)(r,[this.variables]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.K)(["->",t.call(e,"variables")],{firstSeparator:h})}}s()}catch(t){s(t)}}))},5003:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>c});var i=r(4675),n=r(801),a=r(2830),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.YulStackAssignmentOperator;let r=(0,n.s)(t,e);const{offsets:s}=r;this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.T(t.variant,s[0]),r=(0,n.D)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},5394:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{f:()=>d});var i=r(4675),n=r(838),a=r(801),o=r(8941),c=r(5003),l=r(5427),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d{constructor(t,e){this.kind=i.q3.YulStackAssignmentStatement;let r=(0,a.s)(t,e);const{offsets:s}=r;this.assignment=new c.g(t.assignment,s[0]),this.variable=new l.E(t.variable,s[1]),r=(0,a.D)(r,[this.assignment]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"assignment"),(0,o.K)(t.call(e,"variable"),{firstSeparator:u,lastSeparator:""})]}}s()}catch(t){s(t)}}))},6155:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>v});var i=r(4675),n=r(801),a=r(2319),o=r(3457),c=r(8453),l=r(3752),h=r(5394),u=r(6570),d=r(9192),p=r(1335),m=r(9976),y=r(2888),f=r(900),g=r(672),w=r(9838),x=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]=x.then?(await x)():x;class v{constructor(t,e,r){this.kind=i.q3.YulStatement;let s=(0,n.s)(t,e);const{offsets:x}=s;switch(t.variant.cst.kind){case i.q3.YulBlock:this.variant=new a.M(t.variant,x[0],r);break;case i.q3.YulFunctionDefinition:this.variant=new o.g(t.variant,x[0],r);break;case i.q3.YulVariableDeclarationStatement:this.variant=new c.O(t.variant,x[0],r);break;case i.q3.YulVariableAssignmentStatement:this.variant=new l.x(t.variant,x[0],r);break;case i.q3.YulStackAssignmentStatement:this.variant=new h.f(t.variant,x[0]);break;case i.q3.YulIfStatement:this.variant=new u.N(t.variant,x[0],r);break;case i.q3.YulForStatement:this.variant=new d.D(t.variant,x[0],r);break;case i.q3.YulSwitchStatement:this.variant=new p.Q(t.variant,x[0],r);break;case i.q3.YulLeaveStatement:this.variant=new m.d(t.variant,x[0]);break;case i.q3.YulBreakStatement:this.variant=new y.b(t.variant,x[0]);break;case i.q3.YulContinueStatement:this.variant=new f.N(t.variant,x[0]);break;case i.q3.YulLabel:this.variant=new g.p(t.variant,x[0]);break;case i.q3.YulExpression:this.variant=new w.h(t.variant,x[0],r);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},1514:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{f:()=>p});var i=r(838),n=r(4675),a=r(8941),o=r(7134),c=r(1041),l=r(801),h=r(6155),u=t([n,o,c,l,h]);[n,o,c,l,h]=u.then?(await u)():u;const{hardline:d}=i.doc.builders;class p{constructor(t,e,r){this.kind=n.q3.YulStatements;let s=(0,l.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new h.C(t,i[e],r))),s=(0,l.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e,r){return 0===this.items.length&&0===this.comments.length?"":(0,a.K)([(0,c.V)(t,e,r),(0,o.i)(t)],{firstSeparator:d,grouped:!1})}}s()}catch(t){s(t)}}))},2688:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>l});var i=r(4675),n=r(801),a=r(3495),o=r(3211),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.YulSwitchCase;let s=(0,n.s)(t,e);const{offsets:c}=s;switch(t.variant.cst.kind){case i.q3.YulDefaultCase:this.variant=new a.a(t.variant,c[0],r);break;case i.q3.YulValueCase:this.variant=new o.G(t.variant,c[0],r);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}s=(0,n.D)(s,[this.variant]),this.comments=s.comments,this.loc=s.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},9543:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{q:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(2688),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{hardline:l,join:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.YulSwitchCases;let s=(0,a.s)(t,e,!0);const{offsets:i}=s;this.items=t.items.map(((t,e)=>new o.p(t,i[e],r))),s=(0,a.D)(s,[this.items]),this.comments=s.comments,this.loc=s.loc}print(t,e){return h(l,t.map(e,"items"))}}s()}catch(t){s(t)}}))},1335:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Q:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(9838),c=r(9543),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{hardline:h}=i.doc.builders;class u{constructor(t,e,r){this.kind=n.q3.YulSwitchStatement;let s=(0,a.s)(t,e);const{offsets:i}=s;this.expression=new o.h(t.expression,i[0],r),this.cases=new c.q(t.cases,i[1],r),s=(0,a.D)(s,[this.expression,this.cases]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["switch ",t.call(e,"expression"),h,t.call(e,"cases")]}}s()}catch(t){s(t)}}))},3211:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{G:()=>l});var i=r(4675),n=r(801),a=r(7769),o=r(2319),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.YulValueCase;let s=(0,n.s)(t,e);const{offsets:c}=s;this.value=new a.K(t.value,c[0],r),this.body=new o.M(t.body,c[1],r),s=(0,n.D)(s,[this.value,this.body]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["case ",t.call(e,"value")," ",t.call(e,"body")]}}s()}catch(t){s(t)}}))},3752:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{x:()=>d});var i=r(4675),n=r(838),a=r(801),o=r(8578),c=r(5101),l=r(9838),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;const{join:u}=n.doc.builders;class d{constructor(t,e,r){this.kind=i.q3.YulVariableAssignmentStatement;let s=(0,a.s)(t,e);const{offsets:n}=s;this.variables=new o.F(t.variables,n[0]),this.assignment=new c.W(t.assignment,n[1]),this.expression=new l.h(t.expression,n[2],r),s=(0,a.D)(s,[this.variables,this.assignment,this.expression]),this.comments=s.comments,this.loc=s.loc}print(t,e){return u(" ",[t.call(e,"variables"),t.call(e,"assignment"),t.call(e,"expression")])}}s()}catch(t){s(t)}}))},8453:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{O:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(9861),c=r(8634),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e,r){this.kind=i.q3.YulVariableDeclarationStatement;let s=(0,n.s)(t,e);const{offsets:a}=s;this.variables=new c.b(t.variables,a[0]),t.value&&(this.value=new o.S(t.value,a[1],r)),s=(0,n.D)(s,[this.value]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,a.I)(" ",[["let",t.call(e,"variables")],t.call(e,"value")])}}s()}catch(t){s(t)}}))},9861:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{S:()=>l});var i=r(4675),n=r(801),a=r(5101),o=r(9838),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e,r){this.kind=i.q3.YulVariableDeclarationValue;let s=(0,n.s)(t,e);const{offsets:c}=s;this.assignment=new a.W(t.assignment,c[0]),this.expression=new o.h(t.expression,c[1],r),s=(0,n.D)(s,[this.assignment,this.expression]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[t.call(e,"assignment")," ",t.call(e,"expression")]}}s()}catch(t){s(t)}}))},8634:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{b:()=>u});var i=r(4675),n=r(838),a=r(7578),o=r(801),c=r(5427),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u{constructor(t,e){this.kind=i.q3.YulVariableNames;const r=(0,o.s)(t,e,!0),{offsets:s}=r;this.items=t.items.map(((t,e)=>new c.E(t,s[e]))),this.separators=t.separators.map((t=>t.unparse())),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.J)(t.map(e,"items"),{firstSeparator:h,lastSeparator:""})}}s()}catch(t){s(t)}}))},1059:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{f:()=>u});var i=r(4675),n=r(838),a=r(1376),o=t([i,a]);[i,a]=o.then?(await o)():o;const{group:c,line:l}=n.doc.builders;function h(t,e,r){const s=[l,e.call(r,"rightOperand")];return t.leftOperand.variant.kind!==i.hP.Identifier&&(0,a.D)(t.leftOperand.variant)||(0,a.D)(e.getNode(2))?s:c(s)}const u=(t,e)=>(r,s,i,n)=>{const a=t(s),o=e(s,n);return a([s.call(i,"leftOperand"),` ${r.operator}`,o(h(r,s,i))])};s()}catch(d){s(d)}}))},4209:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{W:()=>m});var i=r(4675),n=r(838),a=r(1059),o=r(6563),c=t([i,a]);[i,a]=c.then?(await c)():c;const{group:l,indent:h}=n.doc.builders,u=(0,o.n)([i.q3.AdditiveExpression,i.q3.MultiplicativeExpression,i.q3.ExponentiationExpression,i.q3.AssignmentExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.AndExpression,i.q3.OrExpression,i.q3.ShiftExpression]),d=t=>e=>{const r=t.getNode(2);return u(r)?e:l(e)},p=t=>e=>{let r=t.getNode();for(let s=2;;s+=2){const n=t.getNode(s);if(n.kind===i.q3.ReturnStatement)break;if(!u(n))return h(e);if(r===n.rightOperand.variant)break;r=n}return e},m=(0,a.f)(d,p);s()}catch(t){s(t)}}))},7134:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>u});var i=r(838),n=r(7431),a=r(7540),o=r(1e3),c=t([n,a]);[n,a]=c.then?(await c)():c;const{breakParent:l,line:h}=i.doc.builders;function u(t){return(0,o.I)(h,t.map((t=>{const e=t.getNode();if(e.trailing||e.leading||e.printed)return"";e.printed=!0;const r=(0,n.X)(t);return(0,a.t)(e)?r:[r,l]}),"comments"))}s()}catch(d){s(d)}}))},8041:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{u:()=>m});var i=r(4675),n=r(838),a=r(6563),o=r(1376),c=r(1059),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{group:h,indent:u}=n.doc.builders,d=(0,a.n)([i.q3.ReturnStatement,i.q3.IfStatement,i.q3.WhileStatement]),p=t=>e=>{let r=t.getNode();for(let s=2;;s+=2){const n=t.getNode(s);if(n.kind===i.q3.ExpressionStatement){if(t.getNode(s+1).kind===i.q3.ForStatementCondition)break;return u(e)}if(d(n))break;if(!(0,o.D)(n))return u(e);if(r===n.rightOperand.variant)break;r=n}return e},m=(0,c.f)((()=>t=>h(t)),p);s()}catch(t){s(t)}}))},304:(t,e,r)=>{r.d(e,{c:()=>l});var s=r(838),i=r(1e3);const{dedent:n,group:a,indent:o,line:c}=s.doc.builders;function l(t,e,r,s){return[a([t,r.call(s,"parameters"),o(a([(0,i.I)(c,[r.call(s,"attributes"),r.call(s,"returns")]),e.body&&";"!==e.body.variant?n(c):""]))]),r.call(s,"body")]}},7958:(t,e,r)=>{r.d(e,{a:()=>a});var s=r(838);const{hardline:i,join:n}=s.doc.builders;function a(t){const e=t.value.split("\n");return n(i,e.map(((t,r)=>0===r?t.trimEnd():` ${r<e.length-1?t.trim():t.trimStart()}`)))}},8409:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{a:()=>y});var i=r(4675),n=r(838),a=r(6563),o=r(1376),c=r(1059),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{group:h,indent:u}=n.doc.builders,d=(0,a.n)([i.q3.ReturnStatement,i.q3.IfStatement,i.q3.WhileStatement]),p=t=>e=>(0,o.D)(t.getNode(2))?e:h(e),m=(t,e)=>r=>{let s=t.getNode();for(let n=2;;n+=2){const a=t.getNode(n);if(d(a))break;if(e.experimentalTernaries&&a.kind===i.q3.ConditionalExpression&&a.operand.variant===s)break;if(!(0,o.D)(a))return u(r);if(s===a.rightOperand.variant)break;s=a}return r},y=(0,c.f)(p,m);s()}catch(t){s(t)}}))},1041:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{V:()=>l});var i=r(4675),n=r(838),a=r(9060),o=t([i]);i=(o.then?(await o)():o)[0];const{hardline:c}=n.doc.builders;function l(t,e,r){return t.map((t=>{const s=t.getNode();return[t.isFirst||s.kind===i.q3.YulStatement&&s.variant.kind===i.q3.YulLabel?"":c,e(t),!t.isLast&&n.util.isNextLineEmpty(r.originalText,(0,a.I)(s))?c:""]}),"items")}s()}catch(h){s(h)}}))},8941:(t,e,r)=>{r.d(e,{K:()=>o});var s=r(838);const{group:i,indent:n,softline:a}=s.doc.builders;function o(t,{firstSeparator:e=a,lastSeparator:r=e,grouped:s=!0}={}){return s?i([n([e,t]),r]):[n([e,t]),r]}},7578:(t,e,r)=>{r.d(e,{J:()=>o});var s=r(838),i=r(8941);const{join:n,line:a}=s.doc.builders;function o(t,{firstSeparator:e,separator:r=[",",a],lastSeparator:s,grouped:o}={}){return(0,i.K)(n(r,t),{firstSeparator:e,lastSeparator:s,grouped:o})}},1529:(t,e,r)=>{r.d(e,{T:()=>a});var s=r(838);const i="'",n='"';function a(t,e){const r=e.singleQuote?i:n,a=r===i?n:i;let o=0,c=0;for(const e of t)e===r?o++:e===a&&c++;const l=o>c?a:r;return s.util.makeString(t,l)}},142:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>u});var i=r(4675),n=r(1376),a=r(8926),o=r(4274),c=r(1634),l=r(7651),h=t([i,n,a,o,c,l]);function u(t){const e=new Set(t);return t=>{if(t.variant.kind!==i.hP.Identifier&&(0,n.D)(t.variant)&&e.has(t.variant.operator)){const{loc:e}=t;return Object.assign(Object.create(a.r.prototype),{kind:i.q3.Expression,loc:Object.assign({},e),comments:[],variant:Object.assign(Object.create(o.b.prototype),{kind:i.q3.TupleExpression,loc:Object.assign({},e),comments:[],items:Object.assign(Object.create(c.X.prototype),{kind:i.q3.TupleValues,loc:Object.assign({},e),comments:[],items:[Object.assign(Object.create(l.E.prototype),{kind:i.q3.TupleValue,loc:Object.assign({},e),comments:[],expression:t})],separators:[]})})})}return t}}[i,n,a,o,c,l]=h.then?(await h)():h,s()}catch(d){s(d)}}))},6563:(t,e,r)=>{function s(t){const e=new Set(t);return t=>e.has(t.kind)}r.d(e,{n:()=>s})},4254:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>d});var i=r(4675),n=r(6424),a=r(7058),o=r.n(a),c=r(9589),l=t([i,n]);[i,n]=l.then?(await l)():l;const h=n.iX.supportedVersions(),u=Array.from(h.reduce(((t,e)=>(t.add(`^${(0,c.major)(e)}.${(0,c.minor)(e)}.0`),t)),new Set)).reverse().reduce(((t,e)=>(t.push((0,c.maxSatisfying)(h,e)),t.push((0,c.minSatisfying)(h,e)),t)),[]);function d(t){let e=[];for(const r of u)try{e=p(t,r);break}catch(t){}const r=e.reduce(((t,e)=>{if(!(0,c.validRange)(e))throw new Error("Couldn't infer any version from the ranges in the pragmas.");return t.filter((t=>(0,c.satisfies)(t,e)))}),h);return r.length>0?n.iX.create(r[r.length-1]):n.iX.create(h[h.length-1])}function p(t,e){const r=n.iX.create(e).parse(i.q3.SourceUnit,t),s=i.XK.parse("[VersionPragma @versionRanges [VersionExpressionSets]]"),a=r.createTreeCursor().query([s]),c=[];let l;for(;l=a.next();)c.push(o()(l.captures.versionRanges[0].node.unparse(),{keepProtected:!0}));if(0===c.length){if(r.isValid())return[e];throw new Error(`Using version ${e} did not find any pragma statement and does not parse without errors.`)}return c}s()}catch(m){s(m)}}))},1376:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{D:()=>o});var i=r(4675),n=r(6563),a=t([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.q3.AdditiveExpression,i.q3.MultiplicativeExpression,i.q3.ExponentiationExpression,i.q3.AssignmentExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.ComparisonExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression,i.q3.ShiftExpression]);s()}catch(t){s(t)}}))},7540:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>c,t:()=>o});var i=r(4675),n=r(6563),a=t([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.hP.MultiLineComment,i.hP.MultiLineNatSpecComment]),c=(0,n.n)([i.hP.MultiLineComment,i.hP.MultiLineNatSpecComment,i.hP.SingleLineComment,i.hP.SingleLineNatSpecComment]);s()}catch(t){s(t)}}))},9959:(t,e,r)=>{function s(t){const e=t.value.slice(1,-1).split("\n");return e.length>1&&e.every((t=>"*"===t.trimStart()[0]))}r.d(e,{f:()=>s})},4079:(t,e,r)=>{function s(t){return"label"===t.type}r.d(e,{J:()=>s})},1e3:(t,e,r)=>{r.d(e,{I:()=>n});var s=r(838);const{join:i}=s.doc.builders;function n(t,e){return i(t,e.filter(Boolean))}},9060:(t,e,r)=>{function s(t){return"string"==typeof t||void 0===t?-1:t.loc.start}function i(t){return"string"==typeof t||void 0===t?-1:t.loc.end}r.d(e,{I:()=>i,z:()=>s})},801:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{D:()=>y,s:()=>p});var i=r(4675),n=r(6563),a=r(7088),o=r(7576),c=r(9441),l=r(4867),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;const u=(0,n.n)([i.hP.MultiLineComment,i.hP.MultiLineNatSpecComment,i.hP.SingleLineComment,i.hP.SingleLineNatSpecComment,i.hP.EndOfLine,i.hP.Whitespace]);function d(t){let e=0;for(const r of t){if(r.isNonterminalNode()||!u(r))return e;e+=r.textLength.utf16}return e}function p(t,e,r=!1){if(void 0===e)throw new Error("Can't initiate metadata with an undefined initialOffset");const s=t.cst.children.map((t=>t.node));let n=e;const h=[],u=s.reduce(((t,e)=>{if(e.isNonterminalNode())t.push(n);else switch(e.kind){case i.hP.MultiLineComment:h.push(new a.j(e,n));break;case i.hP.MultiLineNatSpecComment:h.push(new o.H(e,n));break;case i.hP.SingleLineComment:h.push(new c.a(e,n));break;case i.hP.SingleLineNatSpecComment:h.push(new l.c(e,n));break;case i.hP.Identifier:case i.hP.YulIdentifier:t.push(n)}return n+=e.textLength.utf16,t}),[]),p=r?0:d(s),m=r?0:d(s.reverse()),y={start:e+p,end:e+t.cst.textLength.utf16-m,leadingOffset:p,trailingOffset:m};return{comments:h,loc:y,offsets:u}}function m(t,e){if(e){if(Array.isArray(e))return e.reduce(m,t);e.comments.length>0&&t.push(...e.comments.splice(0))}return t}function y(t,e){const r=e.reduce(m,t.comments),{loc:s}=t;if(0===s.leadingOffset)for(const t of e){if(void 0===t||Array.isArray(t))continue;const e=t.loc;if(e.start-e.leadingOffset===s.start){s.leadingOffset=e.leadingOffset,s.start+=e.leadingOffset;break}}if(0===s.trailingOffset)for(const t of e.reverse()){if(void 0===t||Array.isArray(t))continue;const e=t.loc;if(e.end+e.trailingOffset===s.end){s.trailingOffset=e.trailingOffset,s.end-=e.trailingOffset;break}}return{comments:r,loc:s,offsets:[]}}s()}catch(f){s(f)}}))},1408:(t,e,r)=>{function s(t){console.warn(`\r[prettier-solidity] ${t}`)}r.d(e,{o:()=>s})},3111:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{k:()=>c});var i=r(4675),n=t([i]);i=(n.then?(await n)():n)[0];const a=new Set(["external","internal","public","private"]),o=new Set(["pure","constant","payable","view"]);function c(t,e){const r=t.variant,s=e.variant,n="string"==typeof r,c="string"==typeof s;if(n&&!c)return-1;if(c&&!n)return 1;if(n&&c){if(a.has(r))return-1;if(a.has(s))return 1;if(o.has(r))return-1;if(o.has(s))return 1}if(!n&&!c){if(r.kind===i.q3.OverrideSpecifier&&s.kind===i.q3.ModifierInvocation)return-1;if(s.kind===i.q3.OverrideSpecifier&&r.kind===i.q3.ModifierInvocation)return 1}return 0}s()}catch(l){s(l)}}))},466:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(7540),n=r(9060),a=t([i]);function o(t){return t.comments&&t.comments.some((t=>"prettier-ignore"===t.value.slice(2,(0,i.t)(t)?-2:void 0).trim()))}function c(t){const e=t.getNode();if(null==e||"object"!=typeof e)return;const r=Object.keys(e);for(const s of r)switch(s){case"kind":case"loc":case"print":break;case"comments":t.each((t=>{t.getNode().printed=!0}),"comments");break;default:const r=e[s];if("object"==typeof r){if(Array.isArray(r))return void t.each(c,s);t.call(c,s)}}}function l(t,e,r){const s=t.getNode();return null==s?"":o(s)?(c(t),e.originalText.slice((0,n.z)(s),(0,n.I)(s))):s.print(t,r,e)}i=(a.then?(await a)():a)[0];const h=l;s()}catch(u){s(u)}}))},3927:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>p});var i=r(6424),n=r(4675),a=r(3013),o=r(9589),c=r(4254),l=r(1408),h=r(6811),u=t([i,n,a,c,h]);[i,n,a,c,h]=u.then?(await u)():u;const d=i.iX.supportedVersions();function p(t,e){const r=(0,o.maxSatisfying)(d,e.compiler),s=r&&d.includes(r)?i.iX.create(r):(0,c.C)(t),u=s.parse(n.q3.SourceUnit,t);if((0,l.o)(r?`Using version ${s.version} based on the compiler option provided.`:`Inferred version ${s.version} based on the pragma statements in the code.`),u.isValid())return e.compiler=s.version,new h.M(new a.Mk(u.tree.asNonterminalNode()),0,e);throw new Error(u.errors[0].message)}s()}catch(m){s(m)}}))},7870:(t,e,r)=>{t.exports=r.p+"31ca71009a37f38d3a02.wasm"},1112:(t,e,r)=>{t.exports=r.p+"8c7945c354c0e90e3eea.wasm"},9719:(t,e,r)=>{t.exports=r.p+"ffc577b688b8d07825c1.wasm"},450:(t,e,r)=>{t.exports=r.p+"fe6fce76f8236b8b86c6.wasm"},1221:t=>{t.exports=Object("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{})["fs/promises"]},838:t=>{t.exports=Object("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{}).prettier},8664:(t,e,r)=>{r.d(e,{NS:()=>u,Uo:()=>g,bX:()=>f,cA:()=>l,vF:()=>w}),r(4863);var s=r(9340);const{InputStream:i,OutputStream:n}=s.oS,a=Symbol.dispose??Symbol.for("dispose");let o=[],c=[];const l={getEnvironment:()=>o,getArguments:()=>c,initialCwd:()=>"/"};class h extends Error{constructor(t){super("Component exited "+(t?"successfully":"with error")),this.exitError=!0,this.ok=t}}const u={exit(t){throw new h("err"===t.tag)}},d=new i({blockingRead(t){},subscribe(){},[a](){}});let p=new TextDecoder;const m=new n({write(t){10==t[t.length-1]&&(t=t.subarray(0,t.length-1)),console.log(p.decode(t))},blockingFlush(){},[a](){}}),y=new n({write(t){10==t[t.length-1]&&(t=t.subarray(0,t.length-1)),console.error(p.decode(t))},blockingFlush(){},[a](){}}),f={InputStream:i,getStdin:()=>d},g={OutputStream:n,getStdout:()=>m},w={OutputStream:n,getStderr:()=>y};class x{}new x,new x,new class{}},4863:(t,e,r)=>{r.d(e,{gK:()=>y,jw:()=>m});var s=r(9340);r(8664);const{InputStream:i,OutputStream:n}=s.oS;const a={seconds:BigInt(0),nanoseconds:0};function o(t,e,r){"."===e&&p&&u(p[0])===t&&(e="/").startsWith("/")&&"/"!==e&&(e=e.slice(1));let s,i=t;do{if(!i||!i.dir)throw"not-directory";s=e.indexOf("/");const t=-1===s?e:e.slice(0,s);if(".."===t)throw"no-entry";"."===t||""===t||(i=!i.dir[t]&&r.create?i.dir[t]=r.directory?{dir:{}}:{source:new Uint8Array([])}:i.dir[t]),e=e.slice(s+1)}while(-1!==s);if(!i)throw"no-entry";return i}function c(t){return"string"==typeof t.source&&(t.source=(new TextEncoder).encode(t.source)),t.source}class l{constructor(t){this.idx=0,this.entries=t}readDirectoryEntry(){if(this.idx===this.entries.length)return null;const[t,e]=this.entries[this.idx];return this.idx+=1,{name:t,type:e.dir?"directory":"regular-file"}}}class h{#t;#e;#r=0;_getEntry(t){return t.#e}constructor(t,e){e?this.#t=t:this.#e=t}readViaStream(t){const e=c(this.#e);let r=Number(t);return new i({blockingRead(t){if(r===e.byteLength)throw{tag:"closed"};const s=e.slice(r,r+Number(t));return r+=s.byteLength,s}})}writeViaStream(t){const e=this.#e;let r=Number(t);return new n({write(t){const s=new Uint8Array(t.byteLength+e.source.byteLength);return s.set(e.source,0),s.set(t,r),r+=t.byteLength,e.source=s,t.byteLength}})}appendViaStream(){console.log("[filesystem] APPEND STREAM")}advise(t,e,r,s){console.log("[filesystem] ADVISE",t,e,r,s)}syncData(){console.log("[filesystem] SYNC DATA")}getFlags(){console.log("[filesystem] FLAGS FOR")}getType(){return this.#t?"fifo":this.#e.dir?"directory":this.#e.source?"regular-file":"unknown"}setSize(t){console.log("[filesystem] SET SIZE",t)}setTimes(t,e){console.log("[filesystem] SET TIMES",t,e)}read(t,e){const r=c(this.#e);return[r.slice(e,e+t),e+t>=r.byteLength]}write(t,e){if(0!==e)throw"invalid-seek";return this.#e.source=t,t.byteLength}readDirectory(){if(!this.#e?.dir)throw"bad-descriptor";return new l(Object.entries(this.#e.dir).sort((([t],[e])=>t>e?1:-1)))}sync(){console.log("[filesystem] SYNC")}createDirectoryAt(t){if(o(this.#e,t,{create:!0,directory:!0}).source)throw"exist"}stat(){let t="unknown",e=BigInt(0);if(this.#e.source){t="regular-file";const r=c(this.#e);e=BigInt(r.byteLength)}else this.#e.dir&&(t="directory");return{type:t,linkCount:BigInt(0),size:e,dataAccessTimestamp:a,dataModificationTimestamp:a,statusChangeTimestamp:a}}statAt(t,e){const r=o(this.#e,e,{create:!1,directory:!1});let s="unknown",i=BigInt(0);if(r.source){s="regular-file";const t=c(r);i=BigInt(t.byteLength)}else r.dir&&(s="directory");return{type:s,linkCount:BigInt(0),size:i,dataAccessTimestamp:a,dataModificationTimestamp:a,statusChangeTimestamp:a}}setTimesAt(){console.log("[filesystem] SET TIMES AT")}linkAt(){console.log("[filesystem] LINK AT")}openAt(t,e,r,s,i){const n=o(this.#e,e,r);return new h(n)}readlinkAt(){console.log("[filesystem] READLINK AT")}removeDirectoryAt(){console.log("[filesystem] REMOVE DIR AT")}renameAt(){console.log("[filesystem] RENAME AT")}symlinkAt(){console.log("[filesystem] SYMLINK AT")}unlinkFileAt(){console.log("[filesystem] UNLINK FILE AT")}isSameObject(t){return t===this}metadataHash(){let t=BigInt(0);return t+=BigInt(this.#r),{upper:t,lower:BigInt(0)}}metadataHashAt(t,e){let r=BigInt(0);return r+=BigInt(this.#r),{upper:r,lower:BigInt(0)}}}const u=h.prototype._getEntry;delete h.prototype._getEntry;let d=[[new h({dir:{}}),"/"]],p=d[0];const m={getDirectories:()=>d},y={Descriptor:h,DirectoryEntryStream:l}},9340:(t,e,r)=>{r.d(e,{oS:()=>a,z3:()=>n});let s=0;const i=Symbol.dispose||Symbol.for("dispose"),n={Error:class{constructor(t){this.msg=t}toDebugString(){return this.msg}}},a={InputStream:class{constructor(t){t||console.trace("no handler"),this.id=++s,this.handler=t}read(t){return this.handler.read?this.handler.read(t):this.handler.blockingRead.call(this,t)}blockingRead(t){return this.handler.blockingRead.call(this,t)}skip(t){if(this.handler.skip)return this.handler.skip.call(this,t);if(this.handler.read){const e=this.handler.read.call(this,t);return BigInt(e.byteLength)}return this.blockingSkip.call(this,t)}blockingSkip(t){if(this.handler.blockingSkip)return this.handler.blockingSkip.call(this,t);const e=this.handler.blockingRead.call(this,t);return BigInt(e.byteLength)}subscribe(){console.log(`[streams] Subscribe to input stream ${this.id}`)}[i](){this.handler.drop&&this.handler.drop.call(this)}},OutputStream:class{constructor(t){t||console.trace("no handler"),this.id=++s,this.open=!0,this.handler=t}checkWrite(t){return this.open?this.handler.checkWrite?this.handler.checkWrite.call(this,t):1000000n:0n}write(t){this.handler.write.call(this,t)}blockingWriteAndFlush(t){this.handler.write.call(this,t)}flush(){this.handler.flush&&this.handler.flush.call(this)}blockingFlush(){this.open=!0}writeZeroes(t){this.write.call(this,new Uint8Array(Number(t)))}blockingWriteZeroes(t){this.blockingWrite.call(this,new Uint8Array(Number(t)))}blockingWriteZeroesAndFlush(t){this.blockingWriteAndFlush.call(this,new Uint8Array(Number(t)))}splice(t,e){const r=Math.min(e,this.checkWrite.call(this)),s=t.read(r);return this.write.call(this,s),s.byteLength}blockingSplice(t,e){console.log(`[streams] Blocking splice ${this.id}`)}forward(t){console.log(`[streams] Forward ${this.id}`)}subscribe(){console.log(`[streams] Subscribe to output stream ${this.id}`)}[i](){}}}},3888:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Mk:()=>o});var i=r(1901),n=r(4675),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{members:new xr(t)}})),hs(this.cst.kind,n.q3.SourceUnit)}get members(){return this.fetch().members}}class c{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{pragmaKeyword:t,pragma:new Ae(e),semicolon:r}})),hs(this.cst.kind,n.q3.PragmaDirective)}get pragmaKeyword(){return this.fetch().pragmaKeyword}get pragma(){return this.fetch().pragma}get semicolon(){return this.fetch().semicolon}}class l{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{abicoderKeyword:t,version:e}})),hs(this.cst.kind,n.q3.AbicoderPragma)}get abicoderKeyword(){return this.fetch().abicoderKeyword}get version(){return this.fetch().version}}class h{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{experimentalKeyword:t,feature:new Ke(e)}})),hs(this.cst.kind,n.q3.ExperimentalPragma)}get experimentalKeyword(){return this.fetch().experimentalKeyword}get feature(){return this.fetch().feature}}class u{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{solidityKeyword:t,sets:new Mr(e)}})),hs(this.cst.kind,n.q3.VersionPragma)}get solidityKeyword(){return this.fetch().solidityKeyword}get sets(){return this.fetch().sets}}class d{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{start:new Ne(t),minus:e,end:new Ne(r)}})),hs(this.cst.kind,n.q3.VersionRange)}get start(){return this.fetch().start}get minus(){return this.fetch().minus}get end(){return this.fetch().end}}class p{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operator:void 0===t?void 0:new Ie(t),literal:new Ne(e)}})),hs(this.cst.kind,n.q3.VersionTerm)}get operator(){return this.fetch().operator}get literal(){return this.fetch().literal}}class m{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{importKeyword:t,clause:new De(e),semicolon:r}})),hs(this.cst.kind,n.q3.ImportDirective)}get importKeyword(){return this.fetch().importKeyword}get clause(){return this.fetch().clause}get semicolon(){return this.fetch().semicolon}}class y{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{path:new cr(t),alias:void 0===e?void 0:new x(e)}})),hs(this.cst.kind,n.q3.PathImport)}get path(){return this.fetch().path}get alias(){return this.fetch().alias}}class f{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{asterisk:t,alias:new x(e),fromKeyword:r,path:new cr(s)}})),hs(this.cst.kind,n.q3.NamedImport)}get asterisk(){return this.fetch().asterisk}get alias(){return this.fetch().alias}get fromKeyword(){return this.fetch().fromKeyword}get path(){return this.fetch().path}}class g{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,symbols:new Br(e),closeBrace:r,fromKeyword:s,path:new cr(n)}})),hs(this.cst.kind,n.q3.ImportDeconstruction)}get openBrace(){return this.fetch().openBrace}get symbols(){return this.fetch().symbols}get closeBrace(){return this.fetch().closeBrace}get fromKeyword(){return this.fetch().fromKeyword}get path(){return this.fetch().path}}class w{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:t,alias:void 0===e?void 0:new x(e)}})),hs(this.cst.kind,n.q3.ImportDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class x{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:t,identifier:e}})),hs(this.cst.kind,n.q3.ImportAlias)}get asKeyword(){return this.fetch().asKeyword}get identifier(){return this.fetch().identifier}}class v{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{usingKeyword:t,clause:new Oe(e),forKeyword:r,target:new qe(s),globalKeyword:void 0===n?void 0:n,semicolon:a}})),hs(this.cst.kind,n.q3.UsingDirective)}get usingKeyword(){return this.fetch().usingKeyword}get clause(){return this.fetch().clause}get forKeyword(){return this.fetch().forKeyword}get target(){return this.fetch().target}get globalKeyword(){return this.fetch().globalKeyword}get semicolon(){return this.fetch().semicolon}}class b{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,symbols:new Vr(e),closeBrace:r}})),hs(this.cst.kind,n.q3.UsingDeconstruction)}get openBrace(){return this.fetch().openBrace}get symbols(){return this.fetch().symbols}get closeBrace(){return this.fetch().closeBrace}}class _{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:new ss(t),alias:void 0===e?void 0:new E(e)}})),hs(this.cst.kind,n.q3.UsingDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class E{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:t,operator:new Pe(e)}})),hs(this.cst.kind,n.q3.UsingAlias)}get asKeyword(){return this.fetch().asKeyword}get operator(){return this.fetch().operator}}class T{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{abstractKeyword:void 0===t?void 0:t,contractKeyword:e,name:r,inheritance:void 0===s?void 0:new S(s),openBrace:n,members:new br(a),closeBrace:o}})),hs(this.cst.kind,n.q3.ContractDefinition)}get abstractKeyword(){return this.fetch().abstractKeyword}get contractKeyword(){return this.fetch().contractKeyword}get name(){return this.fetch().name}get inheritance(){return this.fetch().inheritance}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class S{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{isKeyword:t,types:new Hr(e)}})),hs(this.cst.kind,n.q3.InheritanceSpecifier)}get isKeyword(){return this.fetch().isKeyword}get types(){return this.fetch().types}}class k{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ss(t),arguments:void 0===e?void 0:new nr(e)}})),hs(this.cst.kind,n.q3.InheritanceType)}get typeName(){return this.fetch().typeName}get arguments(){return this.fetch().arguments}}class R{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{interfaceKeyword:t,name:e,inheritance:void 0===r?void 0:new S(r),openBrace:s,members:new _r(n),closeBrace:a}})),hs(this.cst.kind,n.q3.InterfaceDefinition)}get interfaceKeyword(){return this.fetch().interfaceKeyword}get name(){return this.fetch().name}get inheritance(){return this.fetch().inheritance}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class C{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{libraryKeyword:t,name:e,openBrace:r,members:new Er(s),closeBrace:n}})),hs(this.cst.kind,n.q3.LibraryDefinition)}get libraryKeyword(){return this.fetch().libraryKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class A{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{structKeyword:t,name:e,openBrace:r,members:new Tr(s),closeBrace:n}})),hs(this.cst.kind,n.q3.StructDefinition)}get structKeyword(){return this.fetch().structKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class K{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),name:e,semicolon:r}})),hs(this.cst.kind,n.q3.StructMember)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}get semicolon(){return this.fetch().semicolon}}class L{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{enumKeyword:t,name:e,openBrace:r,members:new jr(s),closeBrace:n}})),hs(this.cst.kind,n.q3.EnumDefinition)}get enumKeyword(){return this.fetch().enumKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class I{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),constantKeyword:e,name:r,equal:s,value:new ir(n),semicolon:a}})),hs(this.cst.kind,n.q3.ConstantDefinition)}get typeName(){return this.fetch().typeName}get constantKeyword(){return this.fetch().constantKeyword}get name(){return this.fetch().name}get equal(){return this.fetch().equal}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class N{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),attributes:new Sr(e),name:r,value:void 0===s?void 0:new D(s),semicolon:n}})),hs(this.cst.kind,n.q3.StateVariableDefinition)}get typeName(){return this.fetch().typeName}get attributes(){return this.fetch().attributes}get name(){return this.fetch().name}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class D{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,value:new ir(e)}})),hs(this.cst.kind,n.q3.StateVariableDefinitionValue)}get equal(){return this.fetch().equal}get value(){return this.fetch().value}}class O{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,name:new Me(e),parameters:new P(r),attributes:new kr(s),returns:void 0===n?void 0:new M(n),body:new Be(a)}})),hs(this.cst.kind,n.q3.FunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class P{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new $r(e),closeParen:r}})),hs(this.cst.kind,n.q3.ParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class q{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),storageLocation:void 0===e?void 0:new er(e),name:void 0===r?void 0:r}})),hs(this.cst.kind,n.q3.Parameter)}get typeName(){return this.fetch().typeName}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class Y{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{overrideKeyword:t,overridden:void 0===e?void 0:new F(e)}})),hs(this.cst.kind,n.q3.OverrideSpecifier)}get overrideKeyword(){return this.fetch().overrideKeyword}get overridden(){return this.fetch().overridden}}class F{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,paths:new Gr(e),closeParen:r}})),hs(this.cst.kind,n.q3.OverridePathsDeclaration)}get openParen(){return this.fetch().openParen}get paths(){return this.fetch().paths}get closeParen(){return this.fetch().closeParen}}class M{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{returnsKeyword:t,variables:new P(e)}})),hs(this.cst.kind,n.q3.ReturnsDeclaration)}get returnsKeyword(){return this.fetch().returnsKeyword}get variables(){return this.fetch().variables}}class U{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{constructorKeyword:t,parameters:new P(e),attributes:new Rr(r),body:new at(s)}})),hs(this.cst.kind,n.q3.ConstructorDefinition)}get constructorKeyword(){return this.fetch().constructorKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class B{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new P(e),attributes:new Cr(r),body:new Be(s)}})),hs(this.cst.kind,n.q3.UnnamedFunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class V{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{fallbackKeyword:t,parameters:new P(e),attributes:new Ar(r),returns:void 0===s?void 0:new M(s),body:new Be(n)}})),hs(this.cst.kind,n.q3.FallbackFunctionDefinition)}get fallbackKeyword(){return this.fetch().fallbackKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class H{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{receiveKeyword:t,parameters:new P(e),attributes:new Kr(r),body:new Be(s)}})),hs(this.cst.kind,n.q3.ReceiveFunctionDefinition)}get receiveKeyword(){return this.fetch().receiveKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class j{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{modifierKeyword:t,name:e,parameters:void 0===r?void 0:new P(r),attributes:new Lr(s),body:new Be(n)}})),hs(this.cst.kind,n.q3.ModifierDefinition)}get modifierKeyword(){return this.fetch().modifierKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class ${constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:new ss(t),arguments:void 0===e?void 0:new nr(e)}})),hs(this.cst.kind,n.q3.ModifierInvocation)}get name(){return this.fetch().name}get arguments(){return this.fetch().arguments}}class G{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{eventKeyword:t,name:e,parameters:new z(r),anonymousKeyword:void 0===s?void 0:s,semicolon:n}})),hs(this.cst.kind,n.q3.EventDefinition)}get eventKeyword(){return this.fetch().eventKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get anonymousKeyword(){return this.fetch().anonymousKeyword}get semicolon(){return this.fetch().semicolon}}class z{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new zr(e),closeParen:r}})),hs(this.cst.kind,n.q3.EventParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class W{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),indexedKeyword:void 0===e?void 0:e,name:void 0===r?void 0:r}})),hs(this.cst.kind,n.q3.EventParameter)}get typeName(){return this.fetch().typeName}get indexedKeyword(){return this.fetch().indexedKeyword}get name(){return this.fetch().name}}class X{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:t,name:e,isKeyword:r,valueType:new Qe(s),semicolon:n}})),hs(this.cst.kind,n.q3.UserDefinedValueTypeDefinition)}get typeKeyword(){return this.fetch().typeKeyword}get name(){return this.fetch().name}get isKeyword(){return this.fetch().isKeyword}get valueType(){return this.fetch().valueType}get semicolon(){return this.fetch().semicolon}}class Q{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{errorKeyword:t,name:e,members:new J(r),semicolon:s}})),hs(this.cst.kind,n.q3.ErrorDefinition)}get errorKeyword(){return this.fetch().errorKeyword}get name(){return this.fetch().name}get members(){return this.fetch().members}get semicolon(){return this.fetch().semicolon}}class J{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new Wr(e),closeParen:r}})),hs(this.cst.kind,n.q3.ErrorParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class Z{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),name:void 0===e?void 0:e}})),hs(this.cst.kind,n.q3.ErrorParameter)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}}class tt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new ze(t),openBracket:e,index:void 0===r?void 0:new ir(r),closeBracket:s}})),hs(this.cst.kind,n.q3.ArrayTypeName)}get operand(){return this.fetch().operand}get openBracket(){return this.fetch().openBracket}get index(){return this.fetch().index}get closeBracket(){return this.fetch().closeBracket}}class et{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new P(e),attributes:new Ir(r),returns:void 0===s?void 0:new M(s)}})),hs(this.cst.kind,n.q3.FunctionType)}get functionKeyword(){return this.fetch().functionKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}}class rt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{mappingKeyword:t,openParen:e,keyType:new st(r),equalGreaterThan:s,valueType:new it(n),closeParen:a}})),hs(this.cst.kind,n.q3.MappingType)}get mappingKeyword(){return this.fetch().mappingKeyword}get openParen(){return this.fetch().openParen}get keyType(){return this.fetch().keyType}get equalGreaterThan(){return this.fetch().equalGreaterThan}get valueType(){return this.fetch().valueType}get closeParen(){return this.fetch().closeParen}}class st{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{keyType:new Xe(t),name:void 0===e?void 0:e}})),hs(this.cst.kind,n.q3.MappingKey)}get keyType(){return this.fetch().keyType}get name(){return this.fetch().name}}class it{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),name:void 0===e?void 0:e}})),hs(this.cst.kind,n.q3.MappingValue)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}}class nt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{addressKeyword:t,payableKeyword:void 0===e?void 0:e}})),hs(this.cst.kind,n.q3.AddressType)}get addressKeyword(){return this.fetch().addressKeyword}get payableKeyword(){return this.fetch().payableKeyword}}class at{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,statements:new Nr(e),closeBrace:r}})),hs(this.cst.kind,n.q3.Block)}get openBrace(){return this.fetch().openBrace}get statements(){return this.fetch().statements}get closeBrace(){return this.fetch().closeBrace}}class ot{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{uncheckedKeyword:t,block:new at(e)}})),hs(this.cst.kind,n.q3.UncheckedBlock)}get uncheckedKeyword(){return this.fetch().uncheckedKeyword}get block(){return this.fetch().block}}class ct{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{expression:new ir(t),semicolon:e}})),hs(this.cst.kind,n.q3.ExpressionStatement)}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class lt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{assemblyKeyword:t,label:void 0===e?void 0:new cr(e),flags:void 0===r?void 0:new ht(r),body:new ce(s)}})),hs(this.cst.kind,n.q3.AssemblyStatement)}get assemblyKeyword(){return this.fetch().assemblyKeyword}get label(){return this.fetch().label}get flags(){return this.fetch().flags}get body(){return this.fetch().body}}class ht{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,flags:new Xr(e),closeParen:r}})),hs(this.cst.kind,n.q3.AssemblyFlagsDeclaration)}get openParen(){return this.fetch().openParen}get flags(){return this.fetch().flags}get closeParen(){return this.fetch().closeParen}}class ut{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{varKeyword:void 0===t?void 0:t,openParen:e,elements:new Qr(r),closeParen:s,equal:n,expression:new ir(a),semicolon:o}})),hs(this.cst.kind,n.q3.TupleDeconstructionStatement)}get varKeyword(){return this.fetch().varKeyword}get openParen(){return this.fetch().openParen}get elements(){return this.fetch().elements}get closeParen(){return this.fetch().closeParen}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class dt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{member:void 0===t?void 0:new Ze(t)}})),hs(this.cst.kind,n.q3.TupleDeconstructionElement)}get member(){return this.fetch().member}}class pt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),storageLocation:void 0===e?void 0:new er(e),name:r}})),hs(this.cst.kind,n.q3.TypedTupleMember)}get typeName(){return this.fetch().typeName}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class mt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{storageLocation:void 0===t?void 0:new er(t),name:e}})),hs(this.cst.kind,n.q3.UntypedTupleMember)}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class yt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{variableType:new tr(t),storageLocation:void 0===e?void 0:new er(e),name:r,value:void 0===s?void 0:new ft(s),semicolon:n}})),hs(this.cst.kind,n.q3.VariableDeclarationStatement)}get variableType(){return this.fetch().variableType}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class ft{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,expression:new ir(e)}})),hs(this.cst.kind,n.q3.VariableDeclarationValue)}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}}class gt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:t,openParen:e,condition:new ir(r),closeParen:s,body:new Je(n),elseBranch:void 0===a?void 0:new wt(a)}})),hs(this.cst.kind,n.q3.IfStatement)}get ifKeyword(){return this.fetch().ifKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}get elseBranch(){return this.fetch().elseBranch}}class wt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{elseKeyword:t,body:new Je(e)}})),hs(this.cst.kind,n.q3.ElseBranch)}get elseKeyword(){return this.fetch().elseKeyword}get body(){return this.fetch().body}}class xt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{forKeyword:t,openParen:e,initialization:new rr(r),condition:new sr(s),iterator:void 0===n?void 0:new ir(n),closeParen:a,body:new Je(o)}})),hs(this.cst.kind,n.q3.ForStatement)}get forKeyword(){return this.fetch().forKeyword}get openParen(){return this.fetch().openParen}get initialization(){return this.fetch().initialization}get condition(){return this.fetch().condition}get iterator(){return this.fetch().iterator}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}}class vt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{whileKeyword:t,openParen:e,condition:new ir(r),closeParen:s,body:new Je(n)}})),hs(this.cst.kind,n.q3.WhileStatement)}get whileKeyword(){return this.fetch().whileKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}}class bt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{doKeyword:t,body:new Je(e),whileKeyword:r,openParen:s,condition:new ir(n),closeParen:a,semicolon:o}})),hs(this.cst.kind,n.q3.DoWhileStatement)}get doKeyword(){return this.fetch().doKeyword}get body(){return this.fetch().body}get whileKeyword(){return this.fetch().whileKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get semicolon(){return this.fetch().semicolon}}class _t{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:t,semicolon:e}})),hs(this.cst.kind,n.q3.ContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}get semicolon(){return this.fetch().semicolon}}class Et{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:t,semicolon:e}})),hs(this.cst.kind,n.q3.BreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}get semicolon(){return this.fetch().semicolon}}class Tt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{returnKeyword:t,expression:void 0===e?void 0:new ir(e),semicolon:r}})),hs(this.cst.kind,n.q3.ReturnStatement)}get returnKeyword(){return this.fetch().returnKeyword}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class St{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{emitKeyword:t,event:new ss(e),arguments:new nr(r),semicolon:s}})),hs(this.cst.kind,n.q3.EmitStatement)}get emitKeyword(){return this.fetch().emitKeyword}get event(){return this.fetch().event}get arguments(){return this.fetch().arguments}get semicolon(){return this.fetch().semicolon}}class kt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{tryKeyword:t,expression:new ir(e),returns:void 0===r?void 0:new M(r),body:new at(s),catchClauses:new Dr(n)}})),hs(this.cst.kind,n.q3.TryStatement)}get tryKeyword(){return this.fetch().tryKeyword}get expression(){return this.fetch().expression}get returns(){return this.fetch().returns}get body(){return this.fetch().body}get catchClauses(){return this.fetch().catchClauses}}class Rt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{catchKeyword:t,error:void 0===e?void 0:new Ct(e),body:new at(r)}})),hs(this.cst.kind,n.q3.CatchClause)}get catchKeyword(){return this.fetch().catchKeyword}get error(){return this.fetch().error}get body(){return this.fetch().body}}class Ct{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:void 0===t?void 0:t,parameters:new P(e)}})),hs(this.cst.kind,n.q3.CatchClauseError)}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}}class At{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{revertKeyword:t,error:void 0===e?void 0:new ss(e),arguments:new nr(r),semicolon:s}})),hs(this.cst.kind,n.q3.RevertStatement)}get revertKeyword(){return this.fetch().revertKeyword}get error(){return this.fetch().error}get arguments(){return this.fetch().arguments}get semicolon(){return this.fetch().semicolon}}class Kt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{throwKeyword:t,semicolon:e}})),hs(this.cst.kind,n.q3.ThrowStatement)}get throwKeyword(){return this.fetch().throwKeyword}get semicolon(){return this.fetch().semicolon}}class Lt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.AssignmentExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class It{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),questionMark:e,trueExpression:new ir(r),colon:s,falseExpression:new ir(n)}})),hs(this.cst.kind,n.q3.ConditionalExpression)}get operand(){return this.fetch().operand}get questionMark(){return this.fetch().questionMark}get trueExpression(){return this.fetch().trueExpression}get colon(){return this.fetch().colon}get falseExpression(){return this.fetch().falseExpression}}class Nt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.OrExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Dt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.AndExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ot{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.EqualityExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Pt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.ComparisonExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class qt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.BitwiseOrExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Yt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.BitwiseXorExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ft{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.BitwiseAndExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Mt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.ShiftExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ut{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.AdditiveExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Bt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.MultiplicativeExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Vt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.ExponentiationExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ht{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),operator:e}})),hs(this.cst.kind,n.q3.PostfixExpression)}get operand(){return this.fetch().operand}get operator(){return this.fetch().operator}}class jt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operator:t,operand:new ir(e)}})),hs(this.cst.kind,n.q3.PrefixExpression)}get operator(){return this.fetch().operator}get operand(){return this.fetch().operand}}class $t{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),arguments:new nr(e)}})),hs(this.cst.kind,n.q3.FunctionCallExpression)}get operand(){return this.fetch().operand}get arguments(){return this.fetch().arguments}}class Gt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),openBrace:e,options:new ts(r),closeBrace:s}})),hs(this.cst.kind,n.q3.CallOptionsExpression)}get operand(){return this.fetch().operand}get openBrace(){return this.fetch().openBrace}get options(){return this.fetch().options}get closeBrace(){return this.fetch().closeBrace}}class zt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),period:e,member:r}})),hs(this.cst.kind,n.q3.MemberAccessExpression)}get operand(){return this.fetch().operand}get period(){return this.fetch().period}get member(){return this.fetch().member}}class Wt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),openBracket:e,start:void 0===r?void 0:new ir(r),end:void 0===s?void 0:new Xt(s),closeBracket:n}})),hs(this.cst.kind,n.q3.IndexAccessExpression)}get operand(){return this.fetch().operand}get openBracket(){return this.fetch().openBracket}get start(){return this.fetch().start}get end(){return this.fetch().end}get closeBracket(){return this.fetch().closeBracket}}class Xt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{colon:t,end:void 0===e?void 0:new ir(e)}})),hs(this.cst.kind,n.q3.IndexAccessEnd)}get colon(){return this.fetch().colon}get end(){return this.fetch().end}}class Qt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,arguments:new Jr(e),closeParen:r}})),hs(this.cst.kind,n.q3.PositionalArgumentsDeclaration)}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class Jt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,arguments:void 0===e?void 0:new Zt(e),closeParen:r}})),hs(this.cst.kind,n.q3.NamedArgumentsDeclaration)}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class Zt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,arguments:new Zr(e),closeBrace:r}})),hs(this.cst.kind,n.q3.NamedArgumentGroup)}get openBrace(){return this.fetch().openBrace}get arguments(){return this.fetch().arguments}get closeBrace(){return this.fetch().closeBrace}}class te{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{name:t,colon:e,value:new ir(r)}})),hs(this.cst.kind,n.q3.NamedArgument)}get name(){return this.fetch().name}get colon(){return this.fetch().colon}get value(){return this.fetch().value}}class ee{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:t,openParen:e,typeName:new ze(r),closeParen:s}})),hs(this.cst.kind,n.q3.TypeExpression)}get typeKeyword(){return this.fetch().typeKeyword}get openParen(){return this.fetch().openParen}get typeName(){return this.fetch().typeName}get closeParen(){return this.fetch().closeParen}}class re{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{newKeyword:t,typeName:new ze(e)}})),hs(this.cst.kind,n.q3.NewExpression)}get newKeyword(){return this.fetch().newKeyword}get typeName(){return this.fetch().typeName}}class se{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,items:new es(e),closeParen:r}})),hs(this.cst.kind,n.q3.TupleExpression)}get openParen(){return this.fetch().openParen}get items(){return this.fetch().items}get closeParen(){return this.fetch().closeParen}}class ie{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{expression:void 0===t?void 0:new ir(t)}})),hs(this.cst.kind,n.q3.TupleValue)}get expression(){return this.fetch().expression}}class ne{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBracket:t,items:new rs(e),closeBracket:r}})),hs(this.cst.kind,n.q3.ArrayExpression)}get openBracket(){return this.fetch().openBracket}get items(){return this.fetch().items}get closeBracket(){return this.fetch().closeBracket}}class ae{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{literal:t,unit:void 0===e?void 0:new ar(e)}})),hs(this.cst.kind,n.q3.HexNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}}class oe{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{literal:t,unit:void 0===e?void 0:new ar(e)}})),hs(this.cst.kind,n.q3.DecimalNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}}class ce{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,statements:new Yr(e),closeBrace:r}})),hs(this.cst.kind,n.q3.YulBlock)}get openBrace(){return this.fetch().openBrace}get statements(){return this.fetch().statements}get closeBrace(){return this.fetch().closeBrace}}class le{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,name:e,parameters:new he(r),returns:void 0===s?void 0:new ue(s),body:new ce(n)}})),hs(this.cst.kind,n.q3.YulFunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class he{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new is(e),closeParen:r}})),hs(this.cst.kind,n.q3.YulParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class ue{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{minusGreaterThan:t,variables:new ns(e)}})),hs(this.cst.kind,n.q3.YulReturnsDeclaration)}get minusGreaterThan(){return this.fetch().minusGreaterThan}get variables(){return this.fetch().variables}}class de{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{letKeyword:t,variables:new ns(e),value:void 0===r?void 0:new pe(r)}})),hs(this.cst.kind,n.q3.YulVariableDeclarationStatement)}get letKeyword(){return this.fetch().letKeyword}get variables(){return this.fetch().variables}get value(){return this.fetch().value}}class pe{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{assignment:new dr(t),expression:new yr(e)}})),hs(this.cst.kind,n.q3.YulVariableDeclarationValue)}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}}class me{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{variables:new os(t),assignment:new dr(e),expression:new yr(r)}})),hs(this.cst.kind,n.q3.YulVariableAssignmentStatement)}get variables(){return this.fetch().variables}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}}class ye{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{colon:t,equal:e}})),hs(this.cst.kind,n.q3.YulColonAndEqual)}get colon(){return this.fetch().colon}get equal(){return this.fetch().equal}}class fe{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{assignment:new pr(t),variable:e}})),hs(this.cst.kind,n.q3.YulStackAssignmentStatement)}get assignment(){return this.fetch().assignment}get variable(){return this.fetch().variable}}class ge{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,colon:e}})),hs(this.cst.kind,n.q3.YulEqualAndColon)}get equal(){return this.fetch().equal}get colon(){return this.fetch().colon}}class we{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:t,condition:new yr(e),body:new ce(r)}})),hs(this.cst.kind,n.q3.YulIfStatement)}get ifKeyword(){return this.fetch().ifKeyword}get condition(){return this.fetch().condition}get body(){return this.fetch().body}}class xe{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{forKeyword:t,initialization:new ce(e),condition:new yr(r),iterator:new ce(s),body:new ce(n)}})),hs(this.cst.kind,n.q3.YulForStatement)}get forKeyword(){return this.fetch().forKeyword}get initialization(){return this.fetch().initialization}get condition(){return this.fetch().condition}get iterator(){return this.fetch().iterator}get body(){return this.fetch().body}}class ve{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{switchKeyword:t,expression:new yr(e),cases:new Fr(r)}})),hs(this.cst.kind,n.q3.YulSwitchStatement)}get switchKeyword(){return this.fetch().switchKeyword}get expression(){return this.fetch().expression}get cases(){return this.fetch().cases}}class be{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{defaultKeyword:t,body:new ce(e)}})),hs(this.cst.kind,n.q3.YulDefaultCase)}get defaultKeyword(){return this.fetch().defaultKeyword}get body(){return this.fetch().body}}class _e{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{caseKeyword:t,value:new wr(e),body:new ce(r)}})),hs(this.cst.kind,n.q3.YulValueCase)}get caseKeyword(){return this.fetch().caseKeyword}get value(){return this.fetch().value}get body(){return this.fetch().body}}class Ee{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{leaveKeyword:t}})),hs(this.cst.kind,n.q3.YulLeaveStatement)}get leaveKeyword(){return this.fetch().leaveKeyword}}class Te{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:t}})),hs(this.cst.kind,n.q3.YulBreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}}class Se{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:t}})),hs(this.cst.kind,n.q3.YulContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}}class ke{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{label:t,colon:e}})),hs(this.cst.kind,n.q3.YulLabel)}get label(){return this.fetch().label}get colon(){return this.fetch().colon}}class Re{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new yr(t),openParen:e,arguments:new as(r),closeParen:s}})),hs(this.cst.kind,n.q3.YulFunctionCallExpression)}get operand(){return this.fetch().operand}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class Ce{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PragmaDirective:return new c(t);case n.q3.ImportDirective:return new m(t);case n.q3.ContractDefinition:return new T(t);case n.q3.InterfaceDefinition:return new R(t);case n.q3.LibraryDefinition:return new C(t);case n.q3.StructDefinition:return new A(t);case n.q3.EnumDefinition:return new L(t);case n.q3.FunctionDefinition:return new O(t);case n.q3.ErrorDefinition:return new Q(t);case n.q3.UserDefinedValueTypeDefinition:return new X(t);case n.q3.UsingDirective:return new v(t);case n.q3.EventDefinition:return new G(t);case n.q3.ConstantDefinition:return new I(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.SourceUnitMember)}get variant(){return this.fetch()}}class Ae{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.AbicoderPragma:return new l(t);case n.q3.ExperimentalPragma:return new h(t);case n.q3.VersionPragma:return new u(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.Pragma)}get variant(){return this.fetch()}}class Ke{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.StringLiteral)return new cr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.ExperimentalFeature)}get variant(){return this.fetch()}}class Le{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.VersionRange:return new d(t);case n.q3.VersionTerm:return new p(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.VersionExpression)}get variant(){return this.fetch()}}class Ie{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.VersionOperator)}get variant(){return this.fetch()}}class Ne{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.SimpleVersionLiteral)return new Ur(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.VersionLiteral)}get variant(){return this.fetch()}}class De{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PathImport:return new y(t);case n.q3.NamedImport:return new f(t);case n.q3.ImportDeconstruction:return new g(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.ImportClause)}get variant(){return this.fetch()}}class Oe{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.IdentifierPath:return new ss(t);case n.q3.UsingDeconstruction:return new b(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.UsingClause)}get variant(){return this.fetch()}}class Pe{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.UsingOperator)}get variant(){return this.fetch()}}class qe{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.TypeName)return new ze(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.UsingTarget)}get variant(){return this.fetch()}}class Ye{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.UsingDirective:return new v(t);case n.q3.FunctionDefinition:return new O(t);case n.q3.ConstructorDefinition:return new U(t);case n.q3.ReceiveFunctionDefinition:return new H(t);case n.q3.FallbackFunctionDefinition:return new V(t);case n.q3.UnnamedFunctionDefinition:return new B(t);case n.q3.ModifierDefinition:return new j(t);case n.q3.StructDefinition:return new A(t);case n.q3.EnumDefinition:return new L(t);case n.q3.EventDefinition:return new G(t);case n.q3.ErrorDefinition:return new Q(t);case n.q3.UserDefinedValueTypeDefinition:return new X(t);case n.q3.StateVariableDefinition:return new N(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.ContractMember)}get variant(){return this.fetch()}}class Fe{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.OverrideSpecifier)return new Y(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.StateVariableAttribute)}get variant(){return this.fetch()}}class Me{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.FunctionName)}get variant(){return this.fetch()}}class Ue{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new $(t);case n.q3.OverrideSpecifier:return new Y(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.FunctionAttribute)}get variant(){return this.fetch()}}class Be{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.Block)return new at(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.FunctionBody)}get variant(){return this.fetch()}}class Ve{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ModifierInvocation)return new $(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.ConstructorAttribute)}get variant(){return this.fetch()}}class He{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ModifierInvocation)return new $(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.UnnamedFunctionAttribute)}get variant(){return this.fetch()}}class je{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new $(t);case n.q3.OverrideSpecifier:return new Y(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.FallbackFunctionAttribute)}get variant(){return this.fetch()}}class $e{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new $(t);case n.q3.OverrideSpecifier:return new Y(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.ReceiveFunctionAttribute)}get variant(){return this.fetch()}}class Ge{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.OverrideSpecifier)return new Y(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.ModifierAttribute)}get variant(){return this.fetch()}}class ze{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.ArrayTypeName:return new tt(t);case n.q3.FunctionType:return new et(t);case n.q3.MappingType:return new rt(t);case n.q3.ElementaryType:return new Qe(t);case n.q3.IdentifierPath:return new ss(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.TypeName)}get variant(){return this.fetch()}}class We{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.FunctionTypeAttribute)}get variant(){return this.fetch()}}class Xe{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.ElementaryType:return new Qe(t);case n.q3.IdentifierPath:return new ss(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.MappingKeyType)}get variant(){return this.fetch()}}class Qe{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.AddressType)return new nt(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.ElementaryType)}get variant(){return this.fetch()}}class Je{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.IfStatement:return new gt(t);case n.q3.ForStatement:return new xt(t);case n.q3.WhileStatement:return new vt(t);case n.q3.DoWhileStatement:return new bt(t);case n.q3.ContinueStatement:return new _t(t);case n.q3.BreakStatement:return new Et(t);case n.q3.ReturnStatement:return new Tt(t);case n.q3.ThrowStatement:return new Kt(t);case n.q3.EmitStatement:return new St(t);case n.q3.TryStatement:return new kt(t);case n.q3.RevertStatement:return new At(t);case n.q3.AssemblyStatement:return new lt(t);case n.q3.Block:return new at(t);case n.q3.UncheckedBlock:return new ot(t);case n.q3.TupleDeconstructionStatement:return new ut(t);case n.q3.VariableDeclarationStatement:return new yt(t);case n.q3.ExpressionStatement:return new ct(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.Statement)}get variant(){return this.fetch()}}class Ze{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.TypedTupleMember:return new pt(t);case n.q3.UntypedTupleMember:return new mt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.TupleMember)}get variant(){return this.fetch()}}class tr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.TypeName)return new ze(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.VariableDeclarationType)}get variant(){return this.fetch()}}class er{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.StorageLocation)}get variant(){return this.fetch()}}class rr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.TupleDeconstructionStatement:return new ut(t);case n.q3.VariableDeclarationStatement:return new yt(t);case n.q3.ExpressionStatement:return new ct(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.ForStatementInitialization)}get variant(){return this.fetch()}}class sr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ExpressionStatement)return new ct(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.ForStatementCondition)}get variant(){return this.fetch()}}class ir{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.AssignmentExpression:return new Lt(t);case n.q3.ConditionalExpression:return new It(t);case n.q3.OrExpression:return new Nt(t);case n.q3.AndExpression:return new Dt(t);case n.q3.EqualityExpression:return new Ot(t);case n.q3.ComparisonExpression:return new Pt(t);case n.q3.BitwiseOrExpression:return new qt(t);case n.q3.BitwiseXorExpression:return new Yt(t);case n.q3.BitwiseAndExpression:return new Ft(t);case n.q3.ShiftExpression:return new Mt(t);case n.q3.AdditiveExpression:return new Ut(t);case n.q3.MultiplicativeExpression:return new Bt(t);case n.q3.ExponentiationExpression:return new Vt(t);case n.q3.PostfixExpression:return new Ht(t);case n.q3.PrefixExpression:return new jt(t);case n.q3.FunctionCallExpression:return new $t(t);case n.q3.CallOptionsExpression:return new Gt(t);case n.q3.MemberAccessExpression:return new zt(t);case n.q3.IndexAccessExpression:return new Wt(t);case n.q3.NewExpression:return new re(t);case n.q3.TupleExpression:return new se(t);case n.q3.TypeExpression:return new ee(t);case n.q3.ArrayExpression:return new ne(t);case n.q3.HexNumberExpression:return new ae(t);case n.q3.DecimalNumberExpression:return new oe(t);case n.q3.StringExpression:return new or(t);case n.q3.ElementaryType:return new Qe(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.Expression)}get variant(){return this.fetch()}}class nr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PositionalArgumentsDeclaration:return new Qt(t);case n.q3.NamedArgumentsDeclaration:return new Jt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.ArgumentsDeclaration)}get variant(){return this.fetch()}}class ar{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.NumberUnit)}get variant(){return this.fetch()}}class or{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.StringLiteral:return new cr(t);case n.q3.StringLiterals:return new Or(t);case n.q3.HexStringLiteral:return new lr(t);case n.q3.HexStringLiterals:return new Pr(t);case n.q3.UnicodeStringLiterals:return new qr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.StringExpression)}get variant(){return this.fetch()}}class cr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.StringLiteral)}get variant(){return this.fetch()}}class lr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.HexStringLiteral)}get variant(){return this.fetch()}}class hr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.UnicodeStringLiteral)}get variant(){return this.fetch()}}class ur{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulBlock:return new ce(t);case n.q3.YulFunctionDefinition:return new le(t);case n.q3.YulStackAssignmentStatement:return new fe(t);case n.q3.YulIfStatement:return new we(t);case n.q3.YulForStatement:return new xe(t);case n.q3.YulSwitchStatement:return new ve(t);case n.q3.YulLeaveStatement:return new Ee(t);case n.q3.YulBreakStatement:return new Te(t);case n.q3.YulContinueStatement:return new Se(t);case n.q3.YulLabel:return new ke(t);case n.q3.YulVariableDeclarationStatement:return new de(t);case n.q3.YulVariableAssignmentStatement:return new me(t);case n.q3.YulExpression:return new yr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.YulStatement)}get variant(){return this.fetch()}}class dr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.YulColonAndEqual)return new ye(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.YulAssignmentOperator)}get variant(){return this.fetch()}}class pr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.YulEqualAndColon)return new ge(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.YulStackAssignmentOperator)}get variant(){return this.fetch()}}class mr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulDefaultCase:return new be(t);case n.q3.YulValueCase:return new _e(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.YulSwitchCase)}get variant(){return this.fetch()}}class yr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulFunctionCallExpression:return new Re(t);case n.q3.YulLiteral:return new wr(t);case n.q3.YulBuiltInFunction:return new gr(t);case n.q3.YulPath:return new cs(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.YulExpression)}get variant(){return this.fetch()}}class fr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.YulPathComponent)}get variant(){return this.fetch()}}class gr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.YulBuiltInFunction)}get variant(){return this.fetch()}}class wr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.HexStringLiteral:return new lr(t);case n.q3.StringLiteral:return new cr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.YulLiteral)}get variant(){return this.fetch()}}class xr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ce(t))))),hs(this.cst.kind,n.q3.SourceUnitMembers)}get items(){return this.fetch()}}class vr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Le(t))))),hs(this.cst.kind,n.q3.VersionExpressionSet)}get items(){return this.fetch()}}class br{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ye(t))))),hs(this.cst.kind,n.q3.ContractMembers)}get items(){return this.fetch()}}class _r{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ye(t))))),hs(this.cst.kind,n.q3.InterfaceMembers)}get items(){return this.fetch()}}class Er{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ye(t))))),hs(this.cst.kind,n.q3.LibraryMembers)}get items(){return this.fetch()}}class Tr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new K(t))))),hs(this.cst.kind,n.q3.StructMembers)}get items(){return this.fetch()}}class Sr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Fe(t))))),hs(this.cst.kind,n.q3.StateVariableAttributes)}get items(){return this.fetch()}}class kr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ue(t))))),hs(this.cst.kind,n.q3.FunctionAttributes)}get items(){return this.fetch()}}class Rr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ve(t))))),hs(this.cst.kind,n.q3.ConstructorAttributes)}get items(){return this.fetch()}}class Cr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new He(t))))),hs(this.cst.kind,n.q3.UnnamedFunctionAttributes)}get items(){return this.fetch()}}class Ar{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new je(t))))),hs(this.cst.kind,n.q3.FallbackFunctionAttributes)}get items(){return this.fetch()}}class Kr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new $e(t))))),hs(this.cst.kind,n.q3.ReceiveFunctionAttributes)}get items(){return this.fetch()}}class Lr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ge(t))))),hs(this.cst.kind,n.q3.ModifierAttributes)}get items(){return this.fetch()}}class Ir{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new We(t))))),hs(this.cst.kind,n.q3.FunctionTypeAttributes)}get items(){return this.fetch()}}class Nr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Je(t))))),hs(this.cst.kind,n.q3.Statements)}get items(){return this.fetch()}}class Dr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Rt(t))))),hs(this.cst.kind,n.q3.CatchClauses)}get items(){return this.fetch()}}class Or{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new cr(t))))),hs(this.cst.kind,n.q3.StringLiterals)}get items(){return this.fetch()}}class Pr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new lr(t))))),hs(this.cst.kind,n.q3.HexStringLiterals)}get items(){return this.fetch()}}class qr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new hr(t))))),hs(this.cst.kind,n.q3.UnicodeStringLiterals)}get items(){return this.fetch()}}class Yr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new ur(t))))),hs(this.cst.kind,n.q3.YulStatements)}get items(){return this.fetch()}}class Fr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new mr(t))))),hs(this.cst.kind,n.q3.YulSwitchCases)}get items(){return this.fetch()}}class Mr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new vr(t))),separators:e}})),hs(this.cst.kind,n.q3.VersionExpressionSets)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Ur{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),hs(this.cst.kind,n.q3.SimpleVersionLiteral)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Br{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new w(t))),separators:e}})),hs(this.cst.kind,n.q3.ImportDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Vr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new _(t))),separators:e}})),hs(this.cst.kind,n.q3.UsingDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Hr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new k(t))),separators:e}})),hs(this.cst.kind,n.q3.InheritanceTypes)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class jr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),hs(this.cst.kind,n.q3.EnumMembers)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class $r{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new q(t))),separators:e}})),hs(this.cst.kind,n.q3.Parameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Gr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ss(t))),separators:e}})),hs(this.cst.kind,n.q3.OverridePaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class zr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new W(t))),separators:e}})),hs(this.cst.kind,n.q3.EventParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Wr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new Z(t))),separators:e}})),hs(this.cst.kind,n.q3.ErrorParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Xr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new cr(t))),separators:e}})),hs(this.cst.kind,n.q3.AssemblyFlags)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Qr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new dt(t))),separators:e}})),hs(this.cst.kind,n.q3.TupleDeconstructionElements)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Jr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ir(t))),separators:e}})),hs(this.cst.kind,n.q3.PositionalArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Zr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new te(t))),separators:e}})),hs(this.cst.kind,n.q3.NamedArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ts{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new te(t))),separators:e}})),hs(this.cst.kind,n.q3.CallOptions)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class es{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ie(t))),separators:e}})),hs(this.cst.kind,n.q3.TupleValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class rs{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ir(t))),separators:e}})),hs(this.cst.kind,n.q3.ArrayValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ss{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),hs(this.cst.kind,n.q3.IdentifierPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class is{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),hs(this.cst.kind,n.q3.YulParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ns{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),hs(this.cst.kind,n.q3.YulVariableNames)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class as{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new yr(t))),separators:e}})),hs(this.cst.kind,n.q3.YulArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class os{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new cs(t))),separators:e}})),hs(this.cst.kind,n.q3.YulPaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class cs{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new fr(t))),separators:e}})),hs(this.cst.kind,n.q3.YulPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}function ls(t){let e;return()=>(void 0===e&&(e=t()),e)}function hs(t,e){if(t!==e)throw new Error(`AST node '${e}' can only be initialized with a CST node of the same kind. Received '${t}' instead.`)}s()}catch(us){s(us)}}))},3013:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Mk:()=>i.Mk});var i=r(3888),n=t([i]);i=(n.then?(await n)():n)[0],s()}catch(t){s(t)}}))},4675:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{XK:()=>l,hP:()=>o,q3:()=>a,xo:()=>c});var i=r(1901),n=t([i]);const a=(i=(n.then?(await n)():n)[0]).tQ.NonterminalKind,o=i.tQ.TerminalKind,c=(i.tQ.TerminalKindExtensions,i.tQ.EdgeLabel,i.tQ.NodeVariant,i.tQ.NonterminalNode,i.tQ.TerminalNode),l=(i.tQ.Cursor,i.tQ.Query);i.tQ.QueryMatchIterator,s()}catch(t){s(t)}}))},6424:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{iX:()=>a});var i=r(1901),n=t([i]);const a=(i=(n.then?(await n)():n)[0]).K3.Parser;i.K3.ParseError,i.K3.ParseOutput,s()}catch(t){s(t)}}))},1406:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K3:()=>Ie,Rj:()=>Ke,tQ:()=>Le});var i=r(8664),n=r(4863),a=r(9340);const{getEnvironment:u}=i.cA,{exit:d}=i.NS,{getStderr:p}=i.vF,{getStdin:m}=i.bX,{getStdout:y}=i.Uo,{getDirectories:f}=n.jw,{Descriptor:g,filesystemErrorCode:w}=n.gK,{Error:x}=a.z3,{InputStream:v,OutputStream:b}=a.oS;let _=[],E=new DataView(new ArrayBuffer);const T=t=>E.buffer===t.buffer?E:E=new DataView(t.buffer),S=()=>{},k="undefined"!=typeof process&&process.versions&&process.versions.node;let R;async function C(t){return k?(R=R||await Promise.resolve().then(r.t.bind(r,1221,19)),WebAssembly.compile(await R.readFile(t))):fetch(t).then(WebAssembly.compileStreaming)}function A(t){return"undefined"==typeof FinalizationRegistry?{unregister(){}}:new FinalizationRegistry(t)}function K(t){if(t&&I.call(t,"payload"))return t.payload;if(t instanceof Error)throw t;return t}const L=[],I=Object.prototype.hasOwnProperty,N=WebAssembly.instantiate,D=1<<30;function O(t,e){const r=t[0]&~D;return 0===r?(t.push(0),t.push(e|D),(t.length>>1)-1):(t[0]=t[r<<1],t[r<<1]=0,t[1+(r<<1)]=e|D,r)}function P(t,e){const r=t[e<<1],s=t[1+(e<<1)],i=0!=(s&D),n=s&~D;if(0===s||0!=(r&D))throw new TypeError("Invalid handle");return t[e<<1]=t[0]|D,t[0]=e|D,{rep:n,scope:r,own:i}}const q=Symbol.for("cabiDispose"),Y=Symbol("handle"),F=Symbol.for("cabiRep"),M=Symbol.dispose||Symbol.for("dispose"),U=t=>BigInt.asUintN(64,BigInt(t));function B(t){return t>>>0}const V=new TextDecoder,H=new TextEncoder;let j=0;function $(t,e,r){if("string"!=typeof t)throw new TypeError("expected a string");if(0===t.length)return j=0,1;let s=H.encode(t),i=e(0,0,1,s.length);return new Uint8Array(r.buffer).set(s,i),j=s.length,i}const G=Symbol.for("nodejs.util.inspect.custom");let z,W;const X=[D,0],Q=new Map;let J=0;function Z(){const t=p();if(!(t instanceof b))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=t[Y];if(!e){const r=t[F]||++J;Q.set(r,t),e=O(X,r)}return e}function tt(t){let e;e=t?{tag:"err",val:void 0}:{tag:"ok",val:void 0},d(e)}L[1]=X;const et=[D,0],rt=new Map;let st,it,nt,at=0;function ot(){const t=m();if(!(t instanceof v))throw new TypeError('Resource error: Not a valid "InputStream" resource.');var e=t[Y];if(!e){const r=t[F]||++at;rt.set(r,t),e=O(et,r)}return e}function ct(){const t=y();if(!(t instanceof b))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=t[Y];if(!e){const r=t[F]||++J;Q.set(r,t),e=O(X,r)}return e}L[2]=et;const lt=[D,0],ht=new Map;let ut=0;function dt(t){var e=f(),r=e.length,s=nt(0,0,4,12*r);for(let t=0;t<e.length;t++){const r=e[t],l=s+12*t;var[i,n]=r;if(!(i instanceof g))throw new TypeError('Resource error: Not a valid "Descriptor" resource.');var a=i[Y];if(!a){const t=i[F]||++ut;ht.set(t,i),a=O(lt,t)}T(it).setInt32(l+0,a,!0);var o=$(n,nt,it),c=j;T(it).setInt32(l+8,c,!0),T(it).setInt32(l+4,o,!0)}T(it).setInt32(t+4,r,!0),T(it).setInt32(t+0,s,!0)}function pt(t,e,r){var s=t,i=lt[1+(s<<1)]&~D,n=ht.get(i);let a;n||(n=Object.create(g.prototype),Object.defineProperty(n,Y,{writable:!0,value:s}),Object.defineProperty(n,F,{writable:!0,value:i})),_.push(n);try{a={tag:"ok",val:n.writeViaStream(BigInt.asUintN(64,e))}}catch(t){a={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var o=a;switch(o.tag){case"ok":{const t=o.val;if(T(it).setInt8(r+0,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var c=t[Y];if(!c){const e=t[F]||++J;Q.set(e,t),c=O(X,e)}T(it).setInt32(r+4,c,!0);break}case"err":{const t=o.val;T(it).setInt8(r+0,1,!0);var l=t;let e;switch(l){case"access":e=0;break;case"would-block":e=1;break;case"already":e=2;break;case"bad-descriptor":e=3;break;case"busy":e=4;break;case"deadlock":e=5;break;case"quota":e=6;break;case"exist":e=7;break;case"file-too-large":e=8;break;case"illegal-byte-sequence":e=9;break;case"in-progress":e=10;break;case"interrupted":e=11;break;case"invalid":e=12;break;case"io":e=13;break;case"is-directory":e=14;break;case"loop":e=15;break;case"too-many-links":e=16;break;case"message-size":e=17;break;case"name-too-long":e=18;break;case"no-device":e=19;break;case"no-entry":e=20;break;case"no-lock":e=21;break;case"insufficient-memory":e=22;break;case"insufficient-space":e=23;break;case"not-directory":e=24;break;case"not-empty":e=25;break;case"not-recoverable":e=26;break;case"unsupported":e=27;break;case"no-tty":e=28;break;case"no-such-device":e=29;break;case"overflow":e=30;break;case"not-permitted":e=31;break;case"pipe":e=32;break;case"read-only":e=33;break;case"invalid-seek":e=34;break;case"text-file-busy":e=35;break;case"cross-device":e=36;break;default:throw new TypeError(`"${l}" is not one of the cases of error-code`)}T(it).setInt8(r+4,e,!0);break}default:throw new TypeError("invalid variant specified for result")}}function mt(t,e){var r=t,s=lt[1+(r<<1)]&~D,i=ht.get(s);let n;i||(i=Object.create(g.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,F,{writable:!0,value:s})),_.push(i);try{n={tag:"ok",val:i.appendViaStream()}}catch(t){n={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var a=n;switch(a.tag){case"ok":{const t=a.val;if(T(it).setInt8(e+0,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var o=t[Y];if(!o){const e=t[F]||++J;Q.set(e,t),o=O(X,e)}T(it).setInt32(e+4,o,!0);break}case"err":{const t=a.val;T(it).setInt8(e+0,1,!0);var c=t;let r;switch(c){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${c}" is not one of the cases of error-code`)}T(it).setInt8(e+4,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function yt(t,e){var r=t,s=lt[1+(r<<1)]&~D,i=ht.get(s);let n;i||(i=Object.create(g.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,F,{writable:!0,value:s})),_.push(i);try{n={tag:"ok",val:i.getType()}}catch(t){n={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var a=n;switch(a.tag){case"ok":{const t=a.val;T(it).setInt8(e+0,0,!0);var o=t;let r;switch(o){case"unknown":r=0;break;case"block-device":r=1;break;case"character-device":r=2;break;case"directory":r=3;break;case"fifo":r=4;break;case"symbolic-link":r=5;break;case"regular-file":r=6;break;case"socket":r=7;break;default:throw new TypeError(`"${o}" is not one of the cases of descriptor-type`)}T(it).setInt8(e+1,r,!0);break}case"err":{const t=a.val;T(it).setInt8(e+0,1,!0);var c=t;let r;switch(c){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${c}" is not one of the cases of error-code`)}T(it).setInt8(e+1,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function ft(t,e){var r=t,s=lt[1+(r<<1)]&~D,i=ht.get(s);let n;i||(i=Object.create(g.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,F,{writable:!0,value:s})),_.push(i);try{n={tag:"ok",val:i.stat()}}catch(t){n={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var a=n;switch(a.tag){case"ok":{const t=a.val;T(it).setInt8(e+0,0,!0);var{type:o,linkCount:c,size:l,dataAccessTimestamp:h,dataModificationTimestamp:u,statusChangeTimestamp:d}=t,p=o;let r;switch(p){case"unknown":r=0;break;case"block-device":r=1;break;case"character-device":r=2;break;case"directory":r=3;break;case"fifo":r=4;break;case"symbolic-link":r=5;break;case"regular-file":r=6;break;case"socket":r=7;break;default:throw new TypeError(`"${p}" is not one of the cases of descriptor-type`)}T(it).setInt8(e+8,r,!0),T(it).setBigInt64(e+16,U(c),!0),T(it).setBigInt64(e+24,U(l),!0);var m=h;if(null==m)T(it).setInt8(e+32,0,!0);else{const t=m;T(it).setInt8(e+32,1,!0);var{seconds:y,nanoseconds:f}=t;T(it).setBigInt64(e+40,U(y),!0),T(it).setInt32(e+48,B(f),!0)}var w=u;if(null==w)T(it).setInt8(e+56,0,!0);else{const t=w;T(it).setInt8(e+56,1,!0);var{seconds:x,nanoseconds:v}=t;T(it).setBigInt64(e+64,U(x),!0),T(it).setInt32(e+72,B(v),!0)}var b=d;if(null==b)T(it).setInt8(e+80,0,!0);else{const t=b;T(it).setInt8(e+80,1,!0);var{seconds:E,nanoseconds:S}=t;T(it).setBigInt64(e+88,U(E),!0),T(it).setInt32(e+96,B(S),!0)}break}case"err":{const t=a.val;T(it).setInt8(e+0,1,!0);var k=t;let r;switch(k){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${k}" is not one of the cases of error-code`)}T(it).setInt8(e+8,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}L[3]=lt;const gt=[D,0],wt=new Map;let xt,vt,bt,_t,Et,Tt,St,kt,Rt,Ct,At,Kt=0;function Lt(t,e){var r=t,s=gt[1+(r<<1)]&~D,i=wt.get(s);i||(i=Object.create(x.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,F,{writable:!0,value:s})),_.push(i);const n=w(i);for(const t of _)t[Y]=null;_=[];var a=n;if(null==a)T(it).setInt8(e+0,0,!0);else{const t=a;T(it).setInt8(e+0,1,!0);var o=t;let r;switch(o){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${o}" is not one of the cases of error-code`)}T(it).setInt8(e+1,r,!0)}}function It(t,e){var r=t,s=X[1+(r<<1)]&~D,i=Q.get(s);let n;i||(i=Object.create(b.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,F,{writable:!0,value:s})),_.push(i);try{n={tag:"ok",val:i.checkWrite()}}catch(t){n={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var a=n;switch(a.tag){case"ok":{const t=a.val;T(it).setInt8(e+0,0,!0),T(it).setBigInt64(e+8,U(t),!0);break}case"err":{const t=a.val;T(it).setInt8(e+0,1,!0);var o=t;switch(o.tag){case"last-operation-failed":{const t=o.val;if(T(it).setInt8(e+8,0,!0),!(t instanceof x))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=t[Y];if(!c){const e=t[F]||++Kt;wt.set(e,t),c=O(gt,e)}T(it).setInt32(e+12,c,!0);break}case"closed":T(it).setInt8(e+8,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(o.tag)}\` (received \`${o}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Nt(t,e,r,s){var i=t,n=X[1+(i<<1)]&~D,a=Q.get(n);a||(a=Object.create(b.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,F,{writable:!0,value:n})),_.push(a);var o=e,c=r,l=new Uint8Array(it.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.write(l)}}catch(t){h={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var u=h;switch(u.tag){case"ok":u.val,T(it).setInt8(s+0,0,!0);break;case"err":{const t=u.val;T(it).setInt8(s+0,1,!0);var d=t;switch(d.tag){case"last-operation-failed":{const t=d.val;if(T(it).setInt8(s+4,0,!0),!(t instanceof x))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=t[Y];if(!p){const e=t[F]||++Kt;wt.set(e,t),p=O(gt,e)}T(it).setInt32(s+8,p,!0);break}case"closed":T(it).setInt8(s+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(d.tag)}\` (received \`${d}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Dt(t,e,r,s){var i=t,n=X[1+(i<<1)]&~D,a=Q.get(n);a||(a=Object.create(b.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,F,{writable:!0,value:n})),_.push(a);var o=e,c=r,l=new Uint8Array(it.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.blockingWriteAndFlush(l)}}catch(t){h={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var u=h;switch(u.tag){case"ok":u.val,T(it).setInt8(s+0,0,!0);break;case"err":{const t=u.val;T(it).setInt8(s+0,1,!0);var d=t;switch(d.tag){case"last-operation-failed":{const t=d.val;if(T(it).setInt8(s+4,0,!0),!(t instanceof x))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=t[Y];if(!p){const e=t[F]||++Kt;wt.set(e,t),p=O(gt,e)}T(it).setInt32(s+8,p,!0);break}case"closed":T(it).setInt8(s+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(d.tag)}\` (received \`${d}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Ot(t,e){var r=t,s=X[1+(r<<1)]&~D,i=Q.get(s);let n;i||(i=Object.create(b.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,F,{writable:!0,value:s})),_.push(i);try{n={tag:"ok",val:i.blockingFlush()}}catch(t){n={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var a=n;switch(a.tag){case"ok":a.val,T(it).setInt8(e+0,0,!0);break;case"err":{const t=a.val;T(it).setInt8(e+0,1,!0);var o=t;switch(o.tag){case"last-operation-failed":{const t=o.val;if(T(it).setInt8(e+4,0,!0),!(t instanceof x))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=t[Y];if(!c){const e=t[F]||++Kt;wt.set(e,t),c=O(gt,e)}T(it).setInt32(e+8,c,!0);break}case"closed":T(it).setInt8(e+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(o.tag)}\` (received \`${o}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Pt(t){var e=u(),r=e.length,s=nt(0,0,4,16*r);for(let t=0;t<e.length;t++){const r=e[t],h=s+16*t;var[i,n]=r,a=$(i,nt,it),o=j;T(it).setInt32(h+4,o,!0),T(it).setInt32(h+0,a,!0);var c=$(n,nt,it),l=j;T(it).setInt32(h+12,l,!0),T(it).setInt32(h+8,c,!0)}T(it).setInt32(t+4,r,!0),T(it).setInt32(t+0,s,!0)}L[0]=gt;const qt=[D,0],Yt=A((t=>{const{rep:e}=P(qt,t);z[16](e)}));L[4]=qt;const Ft=O.bind(null,qt),Mt=[D,0],Ut=A((t=>{const{rep:e}=P(Mt,t);z[17](e)}));L[5]=Mt;const Bt=O.bind(null,Mt),Vt=[D,0],Ht=A((t=>{const{rep:e}=P(Vt,t);z[18](e)}));L[6]=Vt;const jt=O.bind(null,Vt);function $t(t){const e=P(qt,t);e.own&&z[16](e.rep)}function Gt(t){const e=P(Mt,t);e.own&&z[17](e.rep)}function zt(t){const e=P(Vt,t);e.own&&z[18](e.rep)}const Wt=[D,0],Xt=A((t=>{const{rep:e}=P(Wt,t);z[20](e)}));L[8]=Wt;const Qt=O.bind(null,Wt);function Jt(t){const e=P(Wt,t);e.own&&z[20](e.rep)}const Zt=[D,0],te=A((t=>{const{rep:e}=P(Zt,t);z[19](e)}));L[7]=Zt;const ee=O.bind(null,Zt);function re(t){const e=P(Zt,t);e.own&&z[19](e.rep)}const se=[D,0],ie=A((t=>{const{rep:e}=P(se,t);z[22](e)}));L[9]=se;const ne=O.bind(null,se);function ae(t){const e=P(se,t);e.own&&z[22](e.rep)}const oe=[D,0],ce=A((t=>{const{rep:e}=P(oe,t);z[24](e)}));L[11]=oe;const le=O.bind(null,oe);function he(t){const e=P(oe,t);e.own&&z[24](e.rep)}const ue=[D,0],de=A((t=>{const{rep:e}=P(ue,t);z[23](e)}));L[10]=ue;const pe=O.bind(null,ue);function me(t){const e=P(ue,t);e.own&&z[23](e.rep)}function ye(t){const e=P(gt,t);if(e.own){const t=wt.get(e.rep);t?(t[M]&&t[M](),wt.delete(e.rep)):x[q]&&x[q](e.rep)}}function fe(t){const e=P(et,t);if(e.own){const t=rt.get(e.rep);t?(t[M]&&t[M](),rt.delete(e.rep)):v[q]&&v[q](e.rep)}}function ge(t){const e=P(X,t);if(e.own){const t=Q.get(e.rep);t?(t[M]&&t[M](),Q.delete(e.rep)):b[q]&&b[q](e.rep)}}function we(t){const e=P(lt,t);if(e.own){const t=ht.get(e.rep);t?(t[M]&&t[M](),ht.delete(e.rep)):g[q]&&g[q](e.rep)}}class xe{constructor(){throw new Error('"TerminalKindExtensions" resource does not define a constructor')}}xe.isTrivia=function(t){return!!W["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-trivia"](c[t])},xe.isValid=function(t){return!!W["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-valid"](c[t])};class ve{constructor(){throw new Error('"NonterminalNode" resource does not define a constructor')}}ve.prototype[G]=function(t,e,r){const s=Object.getPrototypeOf(this)[G];try{return delete Object.getPrototypeOf(this)[G],r(this,{...e,depth:t,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[G]=s}},Object.defineProperty(ve.prototype,"id",{get:function(){var t=this[Y];if(!t||0==(qt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=qt[1+(t<<1)]&~D;return W["nomic-foundation:slang/cst#[method]nonterminal-node.id"](e)>>>0}}),Object.defineProperty(ve.prototype,"kind",{get:function(){var t=this[Y];if(!t||0==(qt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=qt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]nonterminal-node.kind"](e);return o[r]}}),Object.defineProperty(ve.prototype,"textLength",{get:function(){var t=this[Y];if(!t||0==(qt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=qt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]nonterminal-node.text-length"](e);return{utf8:T(it).getInt32(r+0,!0)>>>0,utf16:T(it).getInt32(r+4,!0)>>>0,line:T(it).getInt32(r+8,!0)>>>0,column:T(it).getInt32(r+12,!0)>>>0}}}),Object.defineProperty(ve.prototype,"children",{get:function(){var t=this[Y];if(!t||0==(qt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=qt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]nonterminal-node.children"](e);var s=T(it).getInt32(r+4,!0),i=T(it).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+12*t;let r,s;switch(r=T(it).getUint8(e+0,!0)?l[T(it).getUint8(e+1,!0)]:void 0,T(it).getUint8(e+4,!0)){case 0:var a=T(it).getInt32(e+8,!0),o=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Yt.register(o,a,o),Object.defineProperty(o,M,{writable:!0,value:function(){Yt.unregister(o),P(qt,a),o[M]=S,o[Y]=null,z[16](qt[1+(a<<1)]&~D)}}),s=o;break;case 1:var c=T(it).getInt32(e+8,!0),h=new.target===be?this:Object.create(be.prototype);Object.defineProperty(h,Y,{writable:!0,value:c}),Ut.register(h,c,h),Object.defineProperty(h,M,{writable:!0,value:function(){Ut.unregister(h),P(Mt,c),h[M]=S,h[Y]=null,z[17](Mt[1+(c<<1)]&~D)}}),s=h}n.push({label:r,node:s})}return vt(r),n}}),ve.prototype.unparse=function(){var t=this[Y];if(!t||0==(qt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=qt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]nonterminal-node.unparse"](e);var s=T(it).getInt32(r+0,!0),i=T(it).getInt32(r+4,!0),n=V.decode(new Uint8Array(it.buffer,s,i));return bt(r),n},ve.prototype.toJson=function(){var t=this[Y];if(!t||0==(qt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=qt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]nonterminal-node.to-json"](e);var s=T(it).getInt32(r+0,!0),i=T(it).getInt32(r+4,!0),n=V.decode(new Uint8Array(it.buffer,s,i));return bt(r),n},ve.prototype.createCursor=function(t){var e=this[Y];if(!e||0==(qt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=qt[1+(e<<1)]&~D,{utf8:s,utf16:i,line:n,column:a}=t,o=W["nomic-foundation:slang/cst#[method]nonterminal-node.create-cursor"](r,B(s),B(i),B(n),B(a)),c=new.target===_e?this:Object.create(_e.prototype);return Object.defineProperty(c,Y,{writable:!0,value:o}),Ht.register(c,o,c),Object.defineProperty(c,M,{writable:!0,value:function(){Ht.unregister(c),P(Vt,o),c[M]=S,c[Y]=null,z[18](Vt[1+(o<<1)]&~D)}}),c};class be{constructor(){throw new Error('"TerminalNode" resource does not define a constructor')}}be.prototype[G]=function(t,e,r){const s=Object.getPrototypeOf(this)[G];try{return delete Object.getPrototypeOf(this)[G],r(this,{...e,depth:t,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[G]=s}},Object.defineProperty(be.prototype,"id",{get:function(){var t=this[Y];if(!t||0==(Mt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Mt[1+(t<<1)]&~D;return W["nomic-foundation:slang/cst#[method]terminal-node.id"](e)>>>0}}),Object.defineProperty(be.prototype,"kind",{get:function(){var t=this[Y];if(!t||0==(Mt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Mt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]terminal-node.kind"](e);return c[r]}}),Object.defineProperty(be.prototype,"textLength",{get:function(){var t=this[Y];if(!t||0==(Mt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Mt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]terminal-node.text-length"](e);return{utf8:T(it).getInt32(r+0,!0)>>>0,utf16:T(it).getInt32(r+4,!0)>>>0,line:T(it).getInt32(r+8,!0)>>>0,column:T(it).getInt32(r+12,!0)>>>0}}}),Object.defineProperty(be.prototype,"children",{get:function(){var t=this[Y];if(!t||0==(Mt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Mt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]terminal-node.children"](e);var s=T(it).getInt32(r+4,!0),i=T(it).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+12*t;let r,s;switch(r=T(it).getUint8(e+0,!0)?l[T(it).getUint8(e+1,!0)]:void 0,T(it).getUint8(e+4,!0)){case 0:var a=T(it).getInt32(e+8,!0),o=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Yt.register(o,a,o),Object.defineProperty(o,M,{writable:!0,value:function(){Yt.unregister(o),P(qt,a),o[M]=S,o[Y]=null,z[16](qt[1+(a<<1)]&~D)}}),s=o;break;case 1:var c=T(it).getInt32(e+8,!0),h=new.target===be?this:Object.create(be.prototype);Object.defineProperty(h,Y,{writable:!0,value:c}),Ut.register(h,c,h),Object.defineProperty(h,M,{writable:!0,value:function(){Ut.unregister(h),P(Mt,c),h[M]=S,h[Y]=null,z[17](Mt[1+(c<<1)]&~D)}}),s=h}n.push({label:r,node:s})}return vt(r),n}}),be.prototype.unparse=function(){var t=this[Y];if(!t||0==(Mt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Mt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]terminal-node.unparse"](e);var s=T(it).getInt32(r+0,!0),i=T(it).getInt32(r+4,!0),n=V.decode(new Uint8Array(it.buffer,s,i));return bt(r),n},be.prototype.toJson=function(){var t=this[Y];if(!t||0==(Mt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Mt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]terminal-node.to-json"](e);var s=T(it).getInt32(r+0,!0),i=T(it).getInt32(r+4,!0),n=V.decode(new Uint8Array(it.buffer,s,i));return bt(r),n};class _e{constructor(){throw new Error('"Cursor" resource does not define a constructor')}}_e.prototype.reset=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;W["nomic-foundation:slang/cst#[method]cursor.reset"](e)},_e.prototype.complete=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;W["nomic-foundation:slang/cst#[method]cursor.complete"](e)},_e.prototype.isCompleted=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.is-completed"](e)},_e.prototype.clone=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D,r=W["nomic-foundation:slang/cst#[method]cursor.clone"](e),s=new.target===_e?this:Object.create(_e.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Ht.register(s,r,s),Object.defineProperty(s,M,{writable:!0,value:function(){Ht.unregister(s),P(Vt,r),s[M]=S,s[Y]=null,z[18](Vt[1+(r<<1)]&~D)}}),s},_e.prototype.spawn=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D,r=W["nomic-foundation:slang/cst#[method]cursor.spawn"](e),s=new.target===_e?this:Object.create(_e.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Ht.register(s,r,s),Object.defineProperty(s,M,{writable:!0,value:function(){Ht.unregister(s),P(Vt,r),s[M]=S,s[Y]=null,z[18](Vt[1+(r<<1)]&~D)}}),s},Object.defineProperty(_e.prototype,"node",{get:function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]cursor.node"](e);let s;switch(T(it).getUint8(r+0,!0)){case 0:var i=T(it).getInt32(r+4,!0),n=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Yt.register(n,i,n),Object.defineProperty(n,M,{writable:!0,value:function(){Yt.unregister(n),P(qt,i),n[M]=S,n[Y]=null,z[16](qt[1+(i<<1)]&~D)}}),s=n;break;case 1:var a=T(it).getInt32(r+4,!0),o=new.target===be?this:Object.create(be.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Ut.register(o,a,o),Object.defineProperty(o,M,{writable:!0,value:function(){Ut.unregister(o),P(Mt,a),o[M]=S,o[Y]=null,z[17](Mt[1+(a<<1)]&~D)}}),s=o}return s}}),Object.defineProperty(_e.prototype,"label",{get:function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]cursor.label"](e);let s;return s=T(it).getUint8(r+0,!0)?l[T(it).getUint8(r+1,!0)]:void 0,s}}),Object.defineProperty(_e.prototype,"textOffset",{get:function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]cursor.text-offset"](e);return{utf8:T(it).getInt32(r+0,!0)>>>0,utf16:T(it).getInt32(r+4,!0)>>>0,line:T(it).getInt32(r+8,!0)>>>0,column:T(it).getInt32(r+12,!0)>>>0}}}),Object.defineProperty(_e.prototype,"textRange",{get:function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]cursor.text-range"](e);return{start:{utf8:T(it).getInt32(r+0,!0)>>>0,utf16:T(it).getInt32(r+4,!0)>>>0,line:T(it).getInt32(r+8,!0)>>>0,column:T(it).getInt32(r+12,!0)>>>0},end:{utf8:T(it).getInt32(r+16,!0)>>>0,utf16:T(it).getInt32(r+20,!0)>>>0,line:T(it).getInt32(r+24,!0)>>>0,column:T(it).getInt32(r+28,!0)>>>0}}}}),Object.defineProperty(_e.prototype,"depth",{get:function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return W["nomic-foundation:slang/cst#[method]cursor.depth"](e)>>>0}}),Object.defineProperty(_e.prototype,"ancestors",{get:function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]cursor.ancestors"](e);var s=T(it).getInt32(r+4,!0),i=T(it).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=T(it).getInt32(e+0,!0),o=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Yt.register(o,a,o),Object.defineProperty(o,M,{writable:!0,value:function(){Yt.unregister(o),P(qt,a),o[M]=S,o[Y]=null,z[16](qt[1+(a<<1)]&~D)}}),n.push(o)}return _t(r),n}}),_e.prototype.goToNext=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-next"](e)},_e.prototype.goToNextNonDescendent=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-next-non-descendent"](e)},_e.prototype.goToPrevious=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-previous"](e)},_e.prototype.goToParent=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-parent"](e)},_e.prototype.goToFirstChild=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-first-child"](e)},_e.prototype.goToLastChild=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-last-child"](e)},_e.prototype.goToNthChild=function(t){var e=this[Y];if(!e||0==(Vt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=Vt[1+(e<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-nth-child"](r,B(t))},_e.prototype.goToNextSibling=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-next-sibling"](e)},_e.prototype.goToPreviousSibling=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-previous-sibling"](e)},_e.prototype.goToNextTerminal=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal"](e)},_e.prototype.goToNextTerminalWithKind=function(t){var e=this[Y];if(!e||0==(Vt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=Vt[1+(e<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kind"](r,c[t])},_e.prototype.goToNextTerminalWithKinds=function(t){var e=this[Y];if(!e||0==(Vt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=Vt[1+(e<<1)]&~D,s=t,i=s.length,n=Et(0,0,2,2*i);for(let t=0;t<s.length;t++){const e=s[t],r=n+2*t;T(it).setInt16(r+0,c[e],!0)}return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kinds"](r,n,i)},_e.prototype.goToNextNonterminal=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal"](e)},_e.prototype.goToNextNonterminalWithKind=function(t){var e=this[Y];if(!e||0==(Vt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=Vt[1+(e<<1)]&~D;return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kind"](r,o[t])},_e.prototype.goToNextNonterminalWithKinds=function(t){var e=this[Y];if(!e||0==(Vt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=Vt[1+(e<<1)]&~D,s=t,i=s.length,n=Et(0,0,1,1*i);for(let t=0;t<s.length;t++){const e=s[t],r=n+1*t;T(it).setInt8(r+0,o[e],!0)}return!!W["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kinds"](r,n,i)},_e.prototype.query=function(t){var e=this[Y];if(!e||0==(Vt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=Vt[1+(e<<1)]&~D,s=t,i=s.length,n=Et(0,0,4,4*i);for(let t=0;t<s.length;t++){const e=n+4*t;var a=s[t][Y];if(!a||0==(Zt[1+(a<<1)]&D))throw new TypeError('Resource error: Not a valid "Query" resource.');var o=Zt[1+(a<<1)]&~D;T(it).setInt32(e+0,o,!0)}var c=W["nomic-foundation:slang/cst#[method]cursor.query"](r,n,i),l=new.target===Te?this:Object.create(Te.prototype);return Object.defineProperty(l,Y,{writable:!0,value:c}),Xt.register(l,c,l),Object.defineProperty(l,M,{writable:!0,value:function(){Xt.unregister(l),P(Wt,c),l[M]=S,l[Y]=null,z[20](Wt[1+(c<<1)]&~D)}}),l};class Ee{constructor(){throw new Error('"Query" resource does not define a constructor')}}Ee.parse=function(t){var e=$(t,Et,it),r=j;const s=W["nomic-foundation:slang/cst#[static]query.parse"](e,r);let i;if(T(it).getUint8(s+0,!0)){var n=T(it).getInt32(s+4,!0),a=T(it).getInt32(s+8,!0);i={tag:"err",val:{message:V.decode(new Uint8Array(it.buffer,n,a)),line:T(it).getInt32(s+12,!0)>>>0,column:T(it).getInt32(s+16,!0)>>>0}}}else{var o=T(it).getInt32(s+4,!0),c=new.target===Ee?this:Object.create(Ee.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),te.register(c,o,c),Object.defineProperty(c,M,{writable:!0,value:function(){te.unregister(c),P(Zt,o),c[M]=S,c[Y]=null,z[19](Zt[1+(o<<1)]&~D)}}),i={tag:"ok",val:c}}if(Tt(s),"err"===i.tag)throw i.val;return i.val};class Te{constructor(){throw new Error('"QueryMatchIterator" resource does not define a constructor')}}Te.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},Te.prototype.next=function(){var t=this[Y];if(!t||0==(Wt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "QueryMatchIterator" resource.');var e=Wt[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/cst#[method]query-match-iterator.next"](e);let s;if(T(it).getUint8(r+0,!0)){var i=T(it).getInt32(r+12,!0),n=T(it).getInt32(r+8,!0),a=[];for(let t=0;t<i;t++){const e=n+16*t;var o=T(it).getInt32(e+0,!0),c=T(it).getInt32(e+4,!0),l=V.decode(new Uint8Array(it.buffer,o,c)),h=T(it).getInt32(e+12,!0),u=T(it).getInt32(e+8,!0),d=[];for(let t=0;t<h;t++){const e=u+4*t;var p=T(it).getInt32(e+0,!0),m=new.target===_e?this:Object.create(_e.prototype);Object.defineProperty(m,Y,{writable:!0,value:p}),Ht.register(m,p,m),Object.defineProperty(m,M,{writable:!0,value:function(){Ht.unregister(m),P(Vt,p),m[M]=S,m[Y]=null,z[18](Vt[1+(p<<1)]&~D)}}),d.push(m)}a.push([l,d])}s={queryNumber:T(it).getInt32(r+4,!0)>>>0,captures:a.reduce(((t,e)=>(t[e[0]]=e[1],t)),{})}}else s=void 0;return St(r),s};var o={};o[o.AbicoderPragma=0]="AbicoderPragma",o[o.AdditiveExpression=1]="AdditiveExpression",o[o.AddressType=2]="AddressType",o[o.AndExpression=3]="AndExpression",o[o.ArgumentsDeclaration=4]="ArgumentsDeclaration",o[o.ArrayExpression=5]="ArrayExpression",o[o.ArrayTypeName=6]="ArrayTypeName",o[o.ArrayValues=7]="ArrayValues",o[o.AssemblyFlags=8]="AssemblyFlags",o[o.AssemblyFlagsDeclaration=9]="AssemblyFlagsDeclaration",o[o.AssemblyStatement=10]="AssemblyStatement",o[o.AssignmentExpression=11]="AssignmentExpression",o[o.BitwiseAndExpression=12]="BitwiseAndExpression",o[o.BitwiseOrExpression=13]="BitwiseOrExpression",o[o.BitwiseXorExpression=14]="BitwiseXorExpression",o[o.Block=15]="Block",o[o.BreakStatement=16]="BreakStatement",o[o.CallOptions=17]="CallOptions",o[o.CallOptionsExpression=18]="CallOptionsExpression",o[o.CatchClause=19]="CatchClause",o[o.CatchClauseError=20]="CatchClauseError",o[o.CatchClauses=21]="CatchClauses",o[o.ComparisonExpression=22]="ComparisonExpression",o[o.ConditionalExpression=23]="ConditionalExpression",o[o.ConstantDefinition=24]="ConstantDefinition",o[o.ConstructorAttribute=25]="ConstructorAttribute",o[o.ConstructorAttributes=26]="ConstructorAttributes",o[o.ConstructorDefinition=27]="ConstructorDefinition",o[o.ContinueStatement=28]="ContinueStatement",o[o.ContractDefinition=29]="ContractDefinition",o[o.ContractMember=30]="ContractMember",o[o.ContractMembers=31]="ContractMembers",o[o.DecimalNumberExpression=32]="DecimalNumberExpression",o[o.DoWhileStatement=33]="DoWhileStatement",o[o.ElementaryType=34]="ElementaryType",o[o.ElseBranch=35]="ElseBranch",o[o.EmitStatement=36]="EmitStatement",o[o.EnumDefinition=37]="EnumDefinition",o[o.EnumMembers=38]="EnumMembers",o[o.EqualityExpression=39]="EqualityExpression",o[o.ErrorDefinition=40]="ErrorDefinition",o[o.ErrorParameter=41]="ErrorParameter",o[o.ErrorParameters=42]="ErrorParameters",o[o.ErrorParametersDeclaration=43]="ErrorParametersDeclaration",o[o.EventDefinition=44]="EventDefinition",o[o.EventParameter=45]="EventParameter",o[o.EventParameters=46]="EventParameters",o[o.EventParametersDeclaration=47]="EventParametersDeclaration",o[o.ExperimentalFeature=48]="ExperimentalFeature",o[o.ExperimentalPragma=49]="ExperimentalPragma",o[o.ExponentiationExpression=50]="ExponentiationExpression",o[o.Expression=51]="Expression",o[o.ExpressionStatement=52]="ExpressionStatement",o[o.FallbackFunctionAttribute=53]="FallbackFunctionAttribute",o[o.FallbackFunctionAttributes=54]="FallbackFunctionAttributes",o[o.FallbackFunctionDefinition=55]="FallbackFunctionDefinition",o[o.ForStatement=56]="ForStatement",o[o.ForStatementCondition=57]="ForStatementCondition",o[o.ForStatementInitialization=58]="ForStatementInitialization",o[o.FunctionAttribute=59]="FunctionAttribute",o[o.FunctionAttributes=60]="FunctionAttributes",o[o.FunctionBody=61]="FunctionBody",o[o.FunctionCallExpression=62]="FunctionCallExpression",o[o.FunctionDefinition=63]="FunctionDefinition",o[o.FunctionName=64]="FunctionName",o[o.FunctionType=65]="FunctionType",o[o.FunctionTypeAttribute=66]="FunctionTypeAttribute",o[o.FunctionTypeAttributes=67]="FunctionTypeAttributes",o[o.HexNumberExpression=68]="HexNumberExpression",o[o.HexStringLiteral=69]="HexStringLiteral",o[o.HexStringLiterals=70]="HexStringLiterals",o[o.IdentifierPath=71]="IdentifierPath",o[o.IfStatement=72]="IfStatement",o[o.ImportAlias=73]="ImportAlias",o[o.ImportClause=74]="ImportClause",o[o.ImportDeconstruction=75]="ImportDeconstruction",o[o.ImportDeconstructionSymbol=76]="ImportDeconstructionSymbol",o[o.ImportDeconstructionSymbols=77]="ImportDeconstructionSymbols",o[o.ImportDirective=78]="ImportDirective",o[o.IndexAccessEnd=79]="IndexAccessEnd",o[o.IndexAccessExpression=80]="IndexAccessExpression",o[o.InheritanceSpecifier=81]="InheritanceSpecifier",o[o.InheritanceType=82]="InheritanceType",o[o.InheritanceTypes=83]="InheritanceTypes",o[o.InterfaceDefinition=84]="InterfaceDefinition",o[o.InterfaceMembers=85]="InterfaceMembers",o[o.LibraryDefinition=86]="LibraryDefinition",o[o.LibraryMembers=87]="LibraryMembers",o[o.MappingKey=88]="MappingKey",o[o.MappingKeyType=89]="MappingKeyType",o[o.MappingType=90]="MappingType",o[o.MappingValue=91]="MappingValue",o[o.MemberAccessExpression=92]="MemberAccessExpression",o[o.ModifierAttribute=93]="ModifierAttribute",o[o.ModifierAttributes=94]="ModifierAttributes",o[o.ModifierDefinition=95]="ModifierDefinition",o[o.ModifierInvocation=96]="ModifierInvocation",o[o.MultiplicativeExpression=97]="MultiplicativeExpression",o[o.NamedArgument=98]="NamedArgument",o[o.NamedArgumentGroup=99]="NamedArgumentGroup",o[o.NamedArguments=100]="NamedArguments",o[o.NamedArgumentsDeclaration=101]="NamedArgumentsDeclaration",o[o.NamedImport=102]="NamedImport",o[o.NewExpression=103]="NewExpression",o[o.NumberUnit=104]="NumberUnit",o[o.OrExpression=105]="OrExpression",o[o.OverridePaths=106]="OverridePaths",o[o.OverridePathsDeclaration=107]="OverridePathsDeclaration",o[o.OverrideSpecifier=108]="OverrideSpecifier",o[o.Parameter=109]="Parameter",o[o.Parameters=110]="Parameters",o[o.ParametersDeclaration=111]="ParametersDeclaration",o[o.PathImport=112]="PathImport",o[o.PositionalArguments=113]="PositionalArguments",o[o.PositionalArgumentsDeclaration=114]="PositionalArgumentsDeclaration",o[o.PostfixExpression=115]="PostfixExpression",o[o.Pragma=116]="Pragma",o[o.PragmaDirective=117]="PragmaDirective",o[o.PrefixExpression=118]="PrefixExpression",o[o.ReceiveFunctionAttribute=119]="ReceiveFunctionAttribute",o[o.ReceiveFunctionAttributes=120]="ReceiveFunctionAttributes",o[o.ReceiveFunctionDefinition=121]="ReceiveFunctionDefinition",o[o.ReturnStatement=122]="ReturnStatement",o[o.ReturnsDeclaration=123]="ReturnsDeclaration",o[o.RevertStatement=124]="RevertStatement",o[o.ShiftExpression=125]="ShiftExpression",o[o.SimpleVersionLiteral=126]="SimpleVersionLiteral",o[o.SourceUnit=127]="SourceUnit",o[o.SourceUnitMember=128]="SourceUnitMember",o[o.SourceUnitMembers=129]="SourceUnitMembers",o[o.StateVariableAttribute=130]="StateVariableAttribute",o[o.StateVariableAttributes=131]="StateVariableAttributes",o[o.StateVariableDefinition=132]="StateVariableDefinition",o[o.StateVariableDefinitionValue=133]="StateVariableDefinitionValue",o[o.Statement=134]="Statement",o[o.Statements=135]="Statements",o[o.StorageLocation=136]="StorageLocation",o[o.StringExpression=137]="StringExpression",o[o.StringLiteral=138]="StringLiteral",o[o.StringLiterals=139]="StringLiterals",o[o.StructDefinition=140]="StructDefinition",o[o.StructMember=141]="StructMember",o[o.StructMembers=142]="StructMembers",o[o.ThrowStatement=143]="ThrowStatement",o[o.TryStatement=144]="TryStatement",o[o.TupleDeconstructionElement=145]="TupleDeconstructionElement",o[o.TupleDeconstructionElements=146]="TupleDeconstructionElements",o[o.TupleDeconstructionStatement=147]="TupleDeconstructionStatement",o[o.TupleExpression=148]="TupleExpression",o[o.TupleMember=149]="TupleMember",o[o.TupleValue=150]="TupleValue",o[o.TupleValues=151]="TupleValues",o[o.TypeExpression=152]="TypeExpression",o[o.TypeName=153]="TypeName",o[o.TypedTupleMember=154]="TypedTupleMember",o[o.UncheckedBlock=155]="UncheckedBlock",o[o.UnicodeStringLiteral=156]="UnicodeStringLiteral",o[o.UnicodeStringLiterals=157]="UnicodeStringLiterals",o[o.UnnamedFunctionAttribute=158]="UnnamedFunctionAttribute",o[o.UnnamedFunctionAttributes=159]="UnnamedFunctionAttributes",o[o.UnnamedFunctionDefinition=160]="UnnamedFunctionDefinition",o[o.UntypedTupleMember=161]="UntypedTupleMember",o[o.UserDefinedValueTypeDefinition=162]="UserDefinedValueTypeDefinition",o[o.UsingAlias=163]="UsingAlias",o[o.UsingClause=164]="UsingClause",o[o.UsingDeconstruction=165]="UsingDeconstruction",o[o.UsingDeconstructionSymbol=166]="UsingDeconstructionSymbol",o[o.UsingDeconstructionSymbols=167]="UsingDeconstructionSymbols",o[o.UsingDirective=168]="UsingDirective",o[o.UsingOperator=169]="UsingOperator",o[o.UsingTarget=170]="UsingTarget",o[o.VariableDeclarationStatement=171]="VariableDeclarationStatement",o[o.VariableDeclarationType=172]="VariableDeclarationType",o[o.VariableDeclarationValue=173]="VariableDeclarationValue",o[o.VersionExpression=174]="VersionExpression",o[o.VersionExpressionSet=175]="VersionExpressionSet",o[o.VersionExpressionSets=176]="VersionExpressionSets",o[o.VersionLiteral=177]="VersionLiteral",o[o.VersionOperator=178]="VersionOperator",o[o.VersionPragma=179]="VersionPragma",o[o.VersionRange=180]="VersionRange",o[o.VersionTerm=181]="VersionTerm",o[o.WhileStatement=182]="WhileStatement",o[o.YulArguments=183]="YulArguments",o[o.YulAssignmentOperator=184]="YulAssignmentOperator",o[o.YulBlock=185]="YulBlock",o[o.YulBreakStatement=186]="YulBreakStatement",o[o.YulBuiltInFunction=187]="YulBuiltInFunction",o[o.YulColonAndEqual=188]="YulColonAndEqual",o[o.YulContinueStatement=189]="YulContinueStatement",o[o.YulDefaultCase=190]="YulDefaultCase",o[o.YulEqualAndColon=191]="YulEqualAndColon",o[o.YulExpression=192]="YulExpression",o[o.YulForStatement=193]="YulForStatement",o[o.YulFunctionCallExpression=194]="YulFunctionCallExpression",o[o.YulFunctionDefinition=195]="YulFunctionDefinition",o[o.YulIfStatement=196]="YulIfStatement",o[o.YulLabel=197]="YulLabel",o[o.YulLeaveStatement=198]="YulLeaveStatement",o[o.YulLiteral=199]="YulLiteral",o[o.YulParameters=200]="YulParameters",o[o.YulParametersDeclaration=201]="YulParametersDeclaration",o[o.YulPath=202]="YulPath",o[o.YulPathComponent=203]="YulPathComponent",o[o.YulPaths=204]="YulPaths",o[o.YulReturnsDeclaration=205]="YulReturnsDeclaration",o[o.YulStackAssignmentOperator=206]="YulStackAssignmentOperator",o[o.YulStackAssignmentStatement=207]="YulStackAssignmentStatement",o[o.YulStatement=208]="YulStatement",o[o.YulStatements=209]="YulStatements",o[o.YulSwitchCase=210]="YulSwitchCase",o[o.YulSwitchCases=211]="YulSwitchCases",o[o.YulSwitchStatement=212]="YulSwitchStatement",o[o.YulValueCase=213]="YulValueCase",o[o.YulVariableAssignmentStatement=214]="YulVariableAssignmentStatement",o[o.YulVariableDeclarationStatement=215]="YulVariableDeclarationStatement",o[o.YulVariableDeclarationValue=216]="YulVariableDeclarationValue",o[o.YulVariableNames=217]="YulVariableNames";var c={};c[c.Unrecognized=0]="Unrecognized",c[c.Missing=1]="Missing",c[c.AbicoderKeyword=2]="AbicoderKeyword",c[c.AbstractKeyword=3]="AbstractKeyword",c[c.AddressKeyword=4]="AddressKeyword",c[c.AfterKeyword=5]="AfterKeyword",c[c.AliasKeyword=6]="AliasKeyword",c[c.Ampersand=7]="Ampersand",c[c.AmpersandAmpersand=8]="AmpersandAmpersand",c[c.AmpersandEqual=9]="AmpersandEqual",c[c.AnonymousKeyword=10]="AnonymousKeyword",c[c.ApplyKeyword=11]="ApplyKeyword",c[c.AsKeyword=12]="AsKeyword",c[c.AssemblyKeyword=13]="AssemblyKeyword",c[c.Asterisk=14]="Asterisk",c[c.AsteriskAsterisk=15]="AsteriskAsterisk",c[c.AsteriskEqual=16]="AsteriskEqual",c[c.AutoKeyword=17]="AutoKeyword",c[c.Bang=18]="Bang",c[c.BangEqual=19]="BangEqual",c[c.Bar=20]="Bar",c[c.BarBar=21]="BarBar",c[c.BarEqual=22]="BarEqual",c[c.BoolKeyword=23]="BoolKeyword",c[c.BreakKeyword=24]="BreakKeyword",c[c.ByteKeyword=25]="ByteKeyword",c[c.BytesKeyword=26]="BytesKeyword",c[c.CallDataKeyword=27]="CallDataKeyword",c[c.Caret=28]="Caret",c[c.CaretEqual=29]="CaretEqual",c[c.CaseKeyword=30]="CaseKeyword",c[c.CatchKeyword=31]="CatchKeyword",c[c.CloseBrace=32]="CloseBrace",c[c.CloseBracket=33]="CloseBracket",c[c.CloseParen=34]="CloseParen",c[c.Colon=35]="Colon",c[c.ColonEqual=36]="ColonEqual",c[c.Comma=37]="Comma",c[c.ConstantKeyword=38]="ConstantKeyword",c[c.ConstructorKeyword=39]="ConstructorKeyword",c[c.ContinueKeyword=40]="ContinueKeyword",c[c.ContractKeyword=41]="ContractKeyword",c[c.CopyOfKeyword=42]="CopyOfKeyword",c[c.DaysKeyword=43]="DaysKeyword",c[c.DecimalLiteral=44]="DecimalLiteral",c[c.DefaultKeyword=45]="DefaultKeyword",c[c.DefineKeyword=46]="DefineKeyword",c[c.DeleteKeyword=47]="DeleteKeyword",c[c.DoKeyword=48]="DoKeyword",c[c.DoubleQuotedHexStringLiteral=49]="DoubleQuotedHexStringLiteral",c[c.DoubleQuotedStringLiteral=50]="DoubleQuotedStringLiteral",c[c.DoubleQuotedUnicodeStringLiteral=51]="DoubleQuotedUnicodeStringLiteral",c[c.DoubleQuotedVersionLiteral=52]="DoubleQuotedVersionLiteral",c[c.ElseKeyword=53]="ElseKeyword",c[c.EmitKeyword=54]="EmitKeyword",c[c.EndOfLine=55]="EndOfLine",c[c.EnumKeyword=56]="EnumKeyword",c[c.Equal=57]="Equal",c[c.EqualColon=58]="EqualColon",c[c.EqualEqual=59]="EqualEqual",c[c.EqualGreaterThan=60]="EqualGreaterThan",c[c.ErrorKeyword=61]="ErrorKeyword",c[c.EtherKeyword=62]="EtherKeyword",c[c.EventKeyword=63]="EventKeyword",c[c.ExperimentalKeyword=64]="ExperimentalKeyword",c[c.ExternalKeyword=65]="ExternalKeyword",c[c.FallbackKeyword=66]="FallbackKeyword",c[c.FalseKeyword=67]="FalseKeyword",c[c.FinalKeyword=68]="FinalKeyword",c[c.FinneyKeyword=69]="FinneyKeyword",c[c.FixedKeyword=70]="FixedKeyword",c[c.ForKeyword=71]="ForKeyword",c[c.FromKeyword=72]="FromKeyword",c[c.FunctionKeyword=73]="FunctionKeyword",c[c.GlobalKeyword=74]="GlobalKeyword",c[c.GreaterThan=75]="GreaterThan",c[c.GreaterThanEqual=76]="GreaterThanEqual",c[c.GreaterThanGreaterThan=77]="GreaterThanGreaterThan",c[c.GreaterThanGreaterThanEqual=78]="GreaterThanGreaterThanEqual",c[c.GreaterThanGreaterThanGreaterThan=79]="GreaterThanGreaterThanGreaterThan",c[c.GreaterThanGreaterThanGreaterThanEqual=80]="GreaterThanGreaterThanGreaterThanEqual",c[c.GweiKeyword=81]="GweiKeyword",c[c.HexKeyword=82]="HexKeyword",c[c.HexLiteral=83]="HexLiteral",c[c.HoursKeyword=84]="HoursKeyword",c[c.Identifier=85]="Identifier",c[c.IfKeyword=86]="IfKeyword",c[c.ImmutableKeyword=87]="ImmutableKeyword",c[c.ImplementsKeyword=88]="ImplementsKeyword",c[c.ImportKeyword=89]="ImportKeyword",c[c.InKeyword=90]="InKeyword",c[c.IndexedKeyword=91]="IndexedKeyword",c[c.InlineKeyword=92]="InlineKeyword",c[c.IntKeyword=93]="IntKeyword",c[c.InterfaceKeyword=94]="InterfaceKeyword",c[c.InternalKeyword=95]="InternalKeyword",c[c.IsKeyword=96]="IsKeyword",c[c.LessThan=97]="LessThan",c[c.LessThanEqual=98]="LessThanEqual",c[c.LessThanLessThan=99]="LessThanLessThan",c[c.LessThanLessThanEqual=100]="LessThanLessThanEqual",c[c.LetKeyword=101]="LetKeyword",c[c.LibraryKeyword=102]="LibraryKeyword",c[c.MacroKeyword=103]="MacroKeyword",c[c.MappingKeyword=104]="MappingKeyword",c[c.MatchKeyword=105]="MatchKeyword",c[c.MemoryKeyword=106]="MemoryKeyword",c[c.Minus=107]="Minus",c[c.MinusEqual=108]="MinusEqual",c[c.MinusGreaterThan=109]="MinusGreaterThan",c[c.MinusMinus=110]="MinusMinus",c[c.MinutesKeyword=111]="MinutesKeyword",c[c.ModifierKeyword=112]="ModifierKeyword",c[c.MultiLineComment=113]="MultiLineComment",c[c.MultiLineNatSpecComment=114]="MultiLineNatSpecComment",c[c.MutableKeyword=115]="MutableKeyword",c[c.NewKeyword=116]="NewKeyword",c[c.NullKeyword=117]="NullKeyword",c[c.OfKeyword=118]="OfKeyword",c[c.OpenBrace=119]="OpenBrace",c[c.OpenBracket=120]="OpenBracket",c[c.OpenParen=121]="OpenParen",c[c.OverrideKeyword=122]="OverrideKeyword",c[c.PartialKeyword=123]="PartialKeyword",c[c.PayableKeyword=124]="PayableKeyword",c[c.Percent=125]="Percent",c[c.PercentEqual=126]="PercentEqual",c[c.Period=127]="Period",c[c.Plus=128]="Plus",c[c.PlusEqual=129]="PlusEqual",c[c.PlusPlus=130]="PlusPlus",c[c.PragmaKeyword=131]="PragmaKeyword",c[c.PrivateKeyword=132]="PrivateKeyword",c[c.PromiseKeyword=133]="PromiseKeyword",c[c.PublicKeyword=134]="PublicKeyword",c[c.PureKeyword=135]="PureKeyword",c[c.QuestionMark=136]="QuestionMark",c[c.ReceiveKeyword=137]="ReceiveKeyword",c[c.ReferenceKeyword=138]="ReferenceKeyword",c[c.RelocatableKeyword=139]="RelocatableKeyword",c[c.ReturnKeyword=140]="ReturnKeyword",c[c.ReturnsKeyword=141]="ReturnsKeyword",c[c.RevertKeyword=142]="RevertKeyword",c[c.SealedKeyword=143]="SealedKeyword",c[c.SecondsKeyword=144]="SecondsKeyword",c[c.Semicolon=145]="Semicolon",c[c.SingleLineComment=146]="SingleLineComment",c[c.SingleLineNatSpecComment=147]="SingleLineNatSpecComment",c[c.SingleQuotedHexStringLiteral=148]="SingleQuotedHexStringLiteral",c[c.SingleQuotedStringLiteral=149]="SingleQuotedStringLiteral",c[c.SingleQuotedUnicodeStringLiteral=150]="SingleQuotedUnicodeStringLiteral",c[c.SingleQuotedVersionLiteral=151]="SingleQuotedVersionLiteral",c[c.SizeOfKeyword=152]="SizeOfKeyword",c[c.Slash=153]="Slash",c[c.SlashEqual=154]="SlashEqual",c[c.SolidityKeyword=155]="SolidityKeyword",c[c.StaticKeyword=156]="StaticKeyword",c[c.StorageKeyword=157]="StorageKeyword",c[c.StringKeyword=158]="StringKeyword",c[c.StructKeyword=159]="StructKeyword",c[c.SupportsKeyword=160]="SupportsKeyword",c[c.SwitchKeyword=161]="SwitchKeyword",c[c.SzaboKeyword=162]="SzaboKeyword",c[c.ThrowKeyword=163]="ThrowKeyword",c[c.Tilde=164]="Tilde",c[c.TransientKeyword=165]="TransientKeyword",c[c.TrueKeyword=166]="TrueKeyword",c[c.TryKeyword=167]="TryKeyword",c[c.TypeDefKeyword=168]="TypeDefKeyword",c[c.TypeKeyword=169]="TypeKeyword",c[c.TypeOfKeyword=170]="TypeOfKeyword",c[c.UfixedKeyword=171]="UfixedKeyword",c[c.UintKeyword=172]="UintKeyword",c[c.UncheckedKeyword=173]="UncheckedKeyword",c[c.UsingKeyword=174]="UsingKeyword",c[c.VarKeyword=175]="VarKeyword",c[c.VersionSpecifier=176]="VersionSpecifier",c[c.ViewKeyword=177]="ViewKeyword",c[c.VirtualKeyword=178]="VirtualKeyword",c[c.WeeksKeyword=179]="WeeksKeyword",c[c.WeiKeyword=180]="WeiKeyword",c[c.WhileKeyword=181]="WhileKeyword",c[c.Whitespace=182]="Whitespace",c[c.YearsKeyword=183]="YearsKeyword",c[c.YulAbstractKeyword=184]="YulAbstractKeyword",c[c.YulAddKeyword=185]="YulAddKeyword",c[c.YulAddModKeyword=186]="YulAddModKeyword",c[c.YulAddressKeyword=187]="YulAddressKeyword",c[c.YulAfterKeyword=188]="YulAfterKeyword",c[c.YulAliasKeyword=189]="YulAliasKeyword",c[c.YulAndKeyword=190]="YulAndKeyword",c[c.YulAnonymousKeyword=191]="YulAnonymousKeyword",c[c.YulApplyKeyword=192]="YulApplyKeyword",c[c.YulAsKeyword=193]="YulAsKeyword",c[c.YulAssemblyKeyword=194]="YulAssemblyKeyword",c[c.YulAutoKeyword=195]="YulAutoKeyword",c[c.YulBalanceKeyword=196]="YulBalanceKeyword",c[c.YulBaseFeeKeyword=197]="YulBaseFeeKeyword",c[c.YulBlobBaseFeeKeyword=198]="YulBlobBaseFeeKeyword",c[c.YulBlobHashKeyword=199]="YulBlobHashKeyword",c[c.YulBlockHashKeyword=200]="YulBlockHashKeyword",c[c.YulBoolKeyword=201]="YulBoolKeyword",c[c.YulBreakKeyword=202]="YulBreakKeyword",c[c.YulByteKeyword=203]="YulByteKeyword",c[c.YulBytesKeyword=204]="YulBytesKeyword",c[c.YulCallCodeKeyword=205]="YulCallCodeKeyword",c[c.YulCallDataCopyKeyword=206]="YulCallDataCopyKeyword",c[c.YulCallDataKeyword=207]="YulCallDataKeyword",c[c.YulCallDataLoadKeyword=208]="YulCallDataLoadKeyword",c[c.YulCallDataSizeKeyword=209]="YulCallDataSizeKeyword",c[c.YulCallKeyword=210]="YulCallKeyword",c[c.YulCallValueKeyword=211]="YulCallValueKeyword",c[c.YulCallerKeyword=212]="YulCallerKeyword",c[c.YulCaseKeyword=213]="YulCaseKeyword",c[c.YulCatchKeyword=214]="YulCatchKeyword",c[c.YulChainIdKeyword=215]="YulChainIdKeyword",c[c.YulCoinBaseKeyword=216]="YulCoinBaseKeyword",c[c.YulConstantKeyword=217]="YulConstantKeyword",c[c.YulConstructorKeyword=218]="YulConstructorKeyword",c[c.YulContinueKeyword=219]="YulContinueKeyword",c[c.YulContractKeyword=220]="YulContractKeyword",c[c.YulCopyOfKeyword=221]="YulCopyOfKeyword",c[c.YulCreate2Keyword=222]="YulCreate2Keyword",c[c.YulCreateKeyword=223]="YulCreateKeyword",c[c.YulDaysKeyword=224]="YulDaysKeyword",c[c.YulDecimalLiteral=225]="YulDecimalLiteral",c[c.YulDefaultKeyword=226]="YulDefaultKeyword",c[c.YulDefineKeyword=227]="YulDefineKeyword",c[c.YulDelegateCallKeyword=228]="YulDelegateCallKeyword",c[c.YulDeleteKeyword=229]="YulDeleteKeyword",c[c.YulDifficultyKeyword=230]="YulDifficultyKeyword",c[c.YulDivKeyword=231]="YulDivKeyword",c[c.YulDoKeyword=232]="YulDoKeyword",c[c.YulElseKeyword=233]="YulElseKeyword",c[c.YulEmitKeyword=234]="YulEmitKeyword",c[c.YulEnumKeyword=235]="YulEnumKeyword",c[c.YulEqKeyword=236]="YulEqKeyword",c[c.YulEtherKeyword=237]="YulEtherKeyword",c[c.YulEventKeyword=238]="YulEventKeyword",c[c.YulExpKeyword=239]="YulExpKeyword",c[c.YulExtCodeCopyKeyword=240]="YulExtCodeCopyKeyword",c[c.YulExtCodeHashKeyword=241]="YulExtCodeHashKeyword",c[c.YulExtCodeSizeKeyword=242]="YulExtCodeSizeKeyword",c[c.YulExternalKeyword=243]="YulExternalKeyword",c[c.YulFallbackKeyword=244]="YulFallbackKeyword",c[c.YulFalseKeyword=245]="YulFalseKeyword",c[c.YulFinalKeyword=246]="YulFinalKeyword",c[c.YulFinneyKeyword=247]="YulFinneyKeyword",c[c.YulFixedKeyword=248]="YulFixedKeyword",c[c.YulForKeyword=249]="YulForKeyword",c[c.YulFunctionKeyword=250]="YulFunctionKeyword",c[c.YulGasKeyword=251]="YulGasKeyword",c[c.YulGasLimitKeyword=252]="YulGasLimitKeyword",c[c.YulGasPriceKeyword=253]="YulGasPriceKeyword",c[c.YulGtKeyword=254]="YulGtKeyword",c[c.YulGweiKeyword=255]="YulGweiKeyword",c[c.YulHexKeyword=256]="YulHexKeyword",c[c.YulHexLiteral=257]="YulHexLiteral",c[c.YulHoursKeyword=258]="YulHoursKeyword",c[c.YulIdentifier=259]="YulIdentifier",c[c.YulIfKeyword=260]="YulIfKeyword",c[c.YulImmutableKeyword=261]="YulImmutableKeyword",c[c.YulImplementsKeyword=262]="YulImplementsKeyword",c[c.YulImportKeyword=263]="YulImportKeyword",c[c.YulInKeyword=264]="YulInKeyword",c[c.YulIndexedKeyword=265]="YulIndexedKeyword",c[c.YulInlineKeyword=266]="YulInlineKeyword",c[c.YulIntKeyword=267]="YulIntKeyword",c[c.YulInterfaceKeyword=268]="YulInterfaceKeyword",c[c.YulInternalKeyword=269]="YulInternalKeyword",c[c.YulInvalidKeyword=270]="YulInvalidKeyword",c[c.YulIsKeyword=271]="YulIsKeyword",c[c.YulIsZeroKeyword=272]="YulIsZeroKeyword",c[c.YulKeccak256Keyword=273]="YulKeccak256Keyword",c[c.YulLeaveKeyword=274]="YulLeaveKeyword",c[c.YulLetKeyword=275]="YulLetKeyword",c[c.YulLibraryKeyword=276]="YulLibraryKeyword",c[c.YulLog0Keyword=277]="YulLog0Keyword",c[c.YulLog1Keyword=278]="YulLog1Keyword",c[c.YulLog2Keyword=279]="YulLog2Keyword",c[c.YulLog3Keyword=280]="YulLog3Keyword",c[c.YulLog4Keyword=281]="YulLog4Keyword",c[c.YulLtKeyword=282]="YulLtKeyword",c[c.YulMcopyKeyword=283]="YulMcopyKeyword",c[c.YulMloadKeyword=284]="YulMloadKeyword",c[c.YulMsizeKeyword=285]="YulMsizeKeyword",c[c.YulMstore8Keyword=286]="YulMstore8Keyword",c[c.YulMstoreKeyword=287]="YulMstoreKeyword",c[c.YulMacroKeyword=288]="YulMacroKeyword",c[c.YulMappingKeyword=289]="YulMappingKeyword",c[c.YulMatchKeyword=290]="YulMatchKeyword",c[c.YulMemoryKeyword=291]="YulMemoryKeyword",c[c.YulMinutesKeyword=292]="YulMinutesKeyword",c[c.YulModKeyword=293]="YulModKeyword",c[c.YulModifierKeyword=294]="YulModifierKeyword",c[c.YulMulKeyword=295]="YulMulKeyword",c[c.YulMulModKeyword=296]="YulMulModKeyword",c[c.YulMutableKeyword=297]="YulMutableKeyword",c[c.YulNewKeyword=298]="YulNewKeyword",c[c.YulNotKeyword=299]="YulNotKeyword",c[c.YulNullKeyword=300]="YulNullKeyword",c[c.YulNumberKeyword=301]="YulNumberKeyword",c[c.YulOfKeyword=302]="YulOfKeyword",c[c.YulOrKeyword=303]="YulOrKeyword",c[c.YulOriginKeyword=304]="YulOriginKeyword",c[c.YulOverrideKeyword=305]="YulOverrideKeyword",c[c.YulPartialKeyword=306]="YulPartialKeyword",c[c.YulPayableKeyword=307]="YulPayableKeyword",c[c.YulPopKeyword=308]="YulPopKeyword",c[c.YulPragmaKeyword=309]="YulPragmaKeyword",c[c.YulPrevRandaoKeyword=310]="YulPrevRandaoKeyword",c[c.YulPrivateKeyword=311]="YulPrivateKeyword",c[c.YulPromiseKeyword=312]="YulPromiseKeyword",c[c.YulPublicKeyword=313]="YulPublicKeyword",c[c.YulPureKeyword=314]="YulPureKeyword",c[c.YulReceiveKeyword=315]="YulReceiveKeyword",c[c.YulReferenceKeyword=316]="YulReferenceKeyword",c[c.YulRelocatableKeyword=317]="YulRelocatableKeyword",c[c.YulReturnDataCopyKeyword=318]="YulReturnDataCopyKeyword",c[c.YulReturnDataSizeKeyword=319]="YulReturnDataSizeKeyword",c[c.YulReturnKeyword=320]="YulReturnKeyword",c[c.YulReturnsKeyword=321]="YulReturnsKeyword",c[c.YulRevertKeyword=322]="YulRevertKeyword",c[c.YulSdivKeyword=323]="YulSdivKeyword",c[c.YulSloadKeyword=324]="YulSloadKeyword",c[c.YulSmodKeyword=325]="YulSmodKeyword",c[c.YulSstoreKeyword=326]="YulSstoreKeyword",c[c.YulSarKeyword=327]="YulSarKeyword",c[c.YulSealedKeyword=328]="YulSealedKeyword",c[c.YulSecondsKeyword=329]="YulSecondsKeyword",c[c.YulSelfBalanceKeyword=330]="YulSelfBalanceKeyword",c[c.YulSelfDestructKeyword=331]="YulSelfDestructKeyword",c[c.YulSgtKeyword=332]="YulSgtKeyword",c[c.YulSha3Keyword=333]="YulSha3Keyword",c[c.YulShlKeyword=334]="YulShlKeyword",c[c.YulShrKeyword=335]="YulShrKeyword",c[c.YulSignExtendKeyword=336]="YulSignExtendKeyword",c[c.YulSizeOfKeyword=337]="YulSizeOfKeyword",c[c.YulSltKeyword=338]="YulSltKeyword",c[c.YulStaticCallKeyword=339]="YulStaticCallKeyword",c[c.YulStaticKeyword=340]="YulStaticKeyword",c[c.YulStopKeyword=341]="YulStopKeyword",c[c.YulStorageKeyword=342]="YulStorageKeyword",c[c.YulStringKeyword=343]="YulStringKeyword",c[c.YulStructKeyword=344]="YulStructKeyword",c[c.YulSubKeyword=345]="YulSubKeyword",c[c.YulSuicideKeyword=346]="YulSuicideKeyword",c[c.YulSupportsKeyword=347]="YulSupportsKeyword",c[c.YulSwitchKeyword=348]="YulSwitchKeyword",c[c.YulSzaboKeyword=349]="YulSzaboKeyword",c[c.YulTloadKeyword=350]="YulTloadKeyword",c[c.YulTstoreKeyword=351]="YulTstoreKeyword",c[c.YulThrowKeyword=352]="YulThrowKeyword",c[c.YulTimestampKeyword=353]="YulTimestampKeyword",c[c.YulTrueKeyword=354]="YulTrueKeyword",c[c.YulTryKeyword=355]="YulTryKeyword",c[c.YulTypeDefKeyword=356]="YulTypeDefKeyword",c[c.YulTypeKeyword=357]="YulTypeKeyword",c[c.YulTypeOfKeyword=358]="YulTypeOfKeyword",c[c.YulUfixedKeyword=359]="YulUfixedKeyword",c[c.YulUintKeyword=360]="YulUintKeyword",c[c.YulUncheckedKeyword=361]="YulUncheckedKeyword",c[c.YulUsingKeyword=362]="YulUsingKeyword",c[c.YulVarKeyword=363]="YulVarKeyword",c[c.YulViewKeyword=364]="YulViewKeyword",c[c.YulVirtualKeyword=365]="YulVirtualKeyword",c[c.YulWeeksKeyword=366]="YulWeeksKeyword",c[c.YulWeiKeyword=367]="YulWeiKeyword",c[c.YulWhileKeyword=368]="YulWhileKeyword",c[c.YulXorKeyword=369]="YulXorKeyword",c[c.YulYearsKeyword=370]="YulYearsKeyword";var l={};l[l.Item=0]="Item",l[l.Variant=1]="Variant",l[l.Separator=2]="Separator",l[l.Operand=3]="Operand",l[l.LeftOperand=4]="LeftOperand",l[l.RightOperand=5]="RightOperand",l[l.LeadingTrivia=6]="LeadingTrivia",l[l.TrailingTrivia=7]="TrailingTrivia",l[l.AbicoderKeyword=8]="AbicoderKeyword",l[l.AbstractKeyword=9]="AbstractKeyword",l[l.AddressKeyword=10]="AddressKeyword",l[l.Alias=11]="Alias",l[l.AnonymousKeyword=12]="AnonymousKeyword",l[l.Arguments=13]="Arguments",l[l.AsKeyword=14]="AsKeyword",l[l.AssemblyKeyword=15]="AssemblyKeyword",l[l.Assignment=16]="Assignment",l[l.Asterisk=17]="Asterisk",l[l.Attributes=18]="Attributes",l[l.Block=19]="Block",l[l.Body=20]="Body",l[l.BreakKeyword=21]="BreakKeyword",l[l.CaseKeyword=22]="CaseKeyword",l[l.Cases=23]="Cases",l[l.CatchClauses=24]="CatchClauses",l[l.CatchKeyword=25]="CatchKeyword",l[l.Clause=26]="Clause",l[l.CloseBrace=27]="CloseBrace",l[l.CloseBracket=28]="CloseBracket",l[l.CloseParen=29]="CloseParen",l[l.Colon=30]="Colon",l[l.Condition=31]="Condition",l[l.ConstantKeyword=32]="ConstantKeyword",l[l.ConstructorKeyword=33]="ConstructorKeyword",l[l.ContinueKeyword=34]="ContinueKeyword",l[l.ContractKeyword=35]="ContractKeyword",l[l.DefaultKeyword=36]="DefaultKeyword",l[l.DoKeyword=37]="DoKeyword",l[l.Elements=38]="Elements",l[l.ElseBranch=39]="ElseBranch",l[l.ElseKeyword=40]="ElseKeyword",l[l.EmitKeyword=41]="EmitKeyword",l[l.End=42]="End",l[l.EnumKeyword=43]="EnumKeyword",l[l.Equal=44]="Equal",l[l.EqualGreaterThan=45]="EqualGreaterThan",l[l.Error=46]="Error",l[l.ErrorKeyword=47]="ErrorKeyword",l[l.Event=48]="Event",l[l.EventKeyword=49]="EventKeyword",l[l.ExperimentalKeyword=50]="ExperimentalKeyword",l[l.Expression=51]="Expression",l[l.FallbackKeyword=52]="FallbackKeyword",l[l.FalseExpression=53]="FalseExpression",l[l.Feature=54]="Feature",l[l.Flags=55]="Flags",l[l.ForKeyword=56]="ForKeyword",l[l.FromKeyword=57]="FromKeyword",l[l.FunctionKeyword=58]="FunctionKeyword",l[l.GlobalKeyword=59]="GlobalKeyword",l[l.Identifier=60]="Identifier",l[l.IfKeyword=61]="IfKeyword",l[l.ImportKeyword=62]="ImportKeyword",l[l.Index=63]="Index",l[l.IndexedKeyword=64]="IndexedKeyword",l[l.Inheritance=65]="Inheritance",l[l.Initialization=66]="Initialization",l[l.InterfaceKeyword=67]="InterfaceKeyword",l[l.IsKeyword=68]="IsKeyword",l[l.Items=69]="Items",l[l.Iterator=70]="Iterator",l[l.KeyType=71]="KeyType",l[l.Label=72]="Label",l[l.LeaveKeyword=73]="LeaveKeyword",l[l.LetKeyword=74]="LetKeyword",l[l.LibraryKeyword=75]="LibraryKeyword",l[l.Literal=76]="Literal",l[l.MappingKeyword=77]="MappingKeyword",l[l.Member=78]="Member",l[l.Members=79]="Members",l[l.Minus=80]="Minus",l[l.MinusGreaterThan=81]="MinusGreaterThan",l[l.ModifierKeyword=82]="ModifierKeyword",l[l.Name=83]="Name",l[l.NewKeyword=84]="NewKeyword",l[l.OpenBrace=85]="OpenBrace",l[l.OpenBracket=86]="OpenBracket",l[l.OpenParen=87]="OpenParen",l[l.Operator=88]="Operator",l[l.Options=89]="Options",l[l.Overridden=90]="Overridden",l[l.OverrideKeyword=91]="OverrideKeyword",l[l.Parameters=92]="Parameters",l[l.Path=93]="Path",l[l.Paths=94]="Paths",l[l.PayableKeyword=95]="PayableKeyword",l[l.Period=96]="Period",l[l.Pragma=97]="Pragma",l[l.PragmaKeyword=98]="PragmaKeyword",l[l.QuestionMark=99]="QuestionMark",l[l.ReceiveKeyword=100]="ReceiveKeyword",l[l.ReturnKeyword=101]="ReturnKeyword",l[l.Returns=102]="Returns",l[l.ReturnsKeyword=103]="ReturnsKeyword",l[l.RevertKeyword=104]="RevertKeyword",l[l.Semicolon=105]="Semicolon",l[l.Sets=106]="Sets",l[l.SolidityKeyword=107]="SolidityKeyword",l[l.Start=108]="Start",l[l.Statements=109]="Statements",l[l.StorageLocation=110]="StorageLocation",l[l.StructKeyword=111]="StructKeyword",l[l.SwitchKeyword=112]="SwitchKeyword",l[l.Symbols=113]="Symbols",l[l.Target=114]="Target",l[l.ThrowKeyword=115]="ThrowKeyword",l[l.TrueExpression=116]="TrueExpression",l[l.TryKeyword=117]="TryKeyword",l[l.TypeKeyword=118]="TypeKeyword",l[l.TypeName=119]="TypeName",l[l.Types=120]="Types",l[l.UncheckedKeyword=121]="UncheckedKeyword",l[l.Unit=122]="Unit",l[l.UsingKeyword=123]="UsingKeyword",l[l.Value=124]="Value",l[l.ValueType=125]="ValueType",l[l.VarKeyword=126]="VarKeyword",l[l.Variable=127]="Variable",l[l.VariableType=128]="VariableType",l[l.Variables=129]="Variables",l[l.Version=130]="Version",l[l.WhileKeyword=131]="WhileKeyword";var h={NonterminalNode:"NonterminalNode"};Object.defineProperty(ve.prototype,"nodeVariant",{get:function(){return h.NonterminalNode}}),ve.prototype.asNonterminalNode=function(){return this},ve.prototype.isNonterminalNode=function(){return!0},ve.prototype.asTerminalNode=function(){},ve.prototype.isTerminalNode=function(){return!1},h.TerminalNode="TerminalNode",Object.defineProperty(be.prototype,"nodeVariant",{get:function(){return h.TerminalNode}}),be.prototype.asTerminalNode=function(){return this},be.prototype.isTerminalNode=function(){return!0},be.prototype.asNonterminalNode=function(){},be.prototype.isNonterminalNode=function(){return!1};class Se{constructor(){throw new Error('"Selectors" resource does not define a constructor')}}Se.sequence=function(t){var e=t[Y];if(!e||0==(qt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=qt[1+(e<<1)]&~D;const s=W["nomic-foundation:slang/ast#[static]selectors.sequence"](r);let i;if(T(it).getUint8(s+0,!0)){var n=T(it).getInt32(s+4,!0),a=T(it).getInt32(s+8,!0);i={tag:"err",val:V.decode(new Uint8Array(it.buffer,n,a))}}else{var o=T(it).getInt32(s+8,!0),c=T(it).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+12*t;let r;if(T(it).getUint8(e+0,!0)){let t;switch(T(it).getUint8(e+4,!0)){case 0:var h=T(it).getInt32(e+8,!0),u=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),Yt.register(u,h,u),Object.defineProperty(u,M,{writable:!0,value:function(){Yt.unregister(u),P(qt,h),u[M]=S,u[Y]=null,z[16](qt[1+(h<<1)]&~D)}}),t=u;break;case 1:var d=T(it).getInt32(e+8,!0),p=new.target===be?this:Object.create(be.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),Ut.register(p,d,p),Object.defineProperty(p,M,{writable:!0,value:function(){Ut.unregister(p),P(Mt,d),p[M]=S,p[Y]=null,z[17](Mt[1+(d<<1)]&~D)}}),t=p}r=t}else r=void 0;l.push(r)}i={tag:"ok",val:l}}if(kt(s),"err"===i.tag)throw i.val;return i.val},Se.choice=function(t){var e=t[Y];if(!e||0==(qt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=qt[1+(e<<1)]&~D;const s=W["nomic-foundation:slang/ast#[static]selectors.choice"](r);let i;if(T(it).getUint8(s+0,!0)){var n=T(it).getInt32(s+4,!0),a=T(it).getInt32(s+8,!0);i={tag:"err",val:V.decode(new Uint8Array(it.buffer,n,a))}}else{let t;switch(T(it).getUint8(s+4,!0)){case 0:var o=T(it).getInt32(s+8,!0),c=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),Yt.register(c,o,c),Object.defineProperty(c,M,{writable:!0,value:function(){Yt.unregister(c),P(qt,o),c[M]=S,c[Y]=null,z[16](qt[1+(o<<1)]&~D)}}),t=c;break;case 1:var l=T(it).getInt32(s+8,!0),h=new.target===be?this:Object.create(be.prototype);Object.defineProperty(h,Y,{writable:!0,value:l}),Ut.register(h,l,h),Object.defineProperty(h,M,{writable:!0,value:function(){Ut.unregister(h),P(Mt,l),h[M]=S,h[Y]=null,z[17](Mt[1+(l<<1)]&~D)}}),t=h}i={tag:"ok",val:t}}if(Tt(s),"err"===i.tag)throw i.val;return i.val},Se.repeated=function(t){var e=t[Y];if(!e||0==(qt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=qt[1+(e<<1)]&~D;const s=W["nomic-foundation:slang/ast#[static]selectors.repeated"](r);let i;if(T(it).getUint8(s+0,!0)){var n=T(it).getInt32(s+4,!0),a=T(it).getInt32(s+8,!0);i={tag:"err",val:V.decode(new Uint8Array(it.buffer,n,a))}}else{var o=T(it).getInt32(s+8,!0),c=T(it).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+8*t;let r;switch(T(it).getUint8(e+0,!0)){case 0:var h=T(it).getInt32(e+4,!0),u=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),Yt.register(u,h,u),Object.defineProperty(u,M,{writable:!0,value:function(){Yt.unregister(u),P(qt,h),u[M]=S,u[Y]=null,z[16](qt[1+(h<<1)]&~D)}}),r=u;break;case 1:var d=T(it).getInt32(e+4,!0),p=new.target===be?this:Object.create(be.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),Ut.register(p,d,p),Object.defineProperty(p,M,{writable:!0,value:function(){Ut.unregister(p),P(Mt,d),p[M]=S,p[Y]=null,z[17](Mt[1+(d<<1)]&~D)}}),r=p}l.push(r)}i={tag:"ok",val:l}}if(Rt(s),"err"===i.tag)throw i.val;return i.val},Se.separated=function(t){var e=t[Y];if(!e||0==(qt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=qt[1+(e<<1)]&~D;const s=W["nomic-foundation:slang/ast#[static]selectors.separated"](r);let i;if(T(it).getUint8(s+0,!0)){var n=T(it).getInt32(s+4,!0),a=T(it).getInt32(s+8,!0);i={tag:"err",val:V.decode(new Uint8Array(it.buffer,n,a))}}else{var o=T(it).getInt32(s+8,!0),c=T(it).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+8*t;var h=T(it).getInt32(e+4,!0),u=T(it).getInt32(e+0,!0),d=[];for(let t=0;t<h;t++){const e=u+8*t;let r;switch(T(it).getUint8(e+0,!0)){case 0:var p=T(it).getInt32(e+4,!0),m=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(m,Y,{writable:!0,value:p}),Yt.register(m,p,m),Object.defineProperty(m,M,{writable:!0,value:function(){Yt.unregister(m),P(qt,p),m[M]=S,m[Y]=null,z[16](qt[1+(p<<1)]&~D)}}),r=m;break;case 1:var y=T(it).getInt32(e+4,!0),f=new.target===be?this:Object.create(be.prototype);Object.defineProperty(f,Y,{writable:!0,value:y}),Ut.register(f,y,f),Object.defineProperty(f,M,{writable:!0,value:function(){Ut.unregister(f),P(Mt,y),f[M]=S,f[Y]=null,z[17](Mt[1+(y<<1)]&~D)}}),r=f}d.push(r)}l.push(d)}i={tag:"ok",val:l}}if(Ct(s),"err"===i.tag)throw i.val;return i.val};class ke{constructor(){throw new Error('"Parser" resource does not define a constructor')}}ke.rootKind=function(){const t=W["nomic-foundation:slang/parser#[static]parser.root-kind"]();return o[t]},ke.supportedVersions=function(){const t=W["nomic-foundation:slang/parser#[static]parser.supported-versions"]();var e=T(it).getInt32(t+4,!0),r=T(it).getInt32(t+0,!0),s=[];for(let t=0;t<e;t++){const e=r+8*t;var i=T(it).getInt32(e+0,!0),n=T(it).getInt32(e+4,!0),a=V.decode(new Uint8Array(it.buffer,i,n));s.push(a)}return At(t),s},ke.create=function(t){var e=$(t,Et,it),r=j;const s=W["nomic-foundation:slang/parser#[static]parser.create"](e,r);let i;if(T(it).getUint8(s+0,!0)){var n=T(it).getInt32(s+4,!0),a=T(it).getInt32(s+8,!0);i={tag:"err",val:V.decode(new Uint8Array(it.buffer,n,a))}}else{var o=T(it).getInt32(s+4,!0),c=new.target===ke?this:Object.create(ke.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),ie.register(c,o,c),Object.defineProperty(c,M,{writable:!0,value:function(){ie.unregister(c),P(se,o),c[M]=S,c[Y]=null,z[22](se[1+(o<<1)]&~D)}}),i={tag:"ok",val:c}}if(Tt(s),"err"===i.tag)throw i.val;return i.val},Object.defineProperty(ke.prototype,"version",{get:function(){var t=this[Y];if(!t||0==(se[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Parser" resource.');var e=se[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/parser#[method]parser.version"](e);var s=T(it).getInt32(r+0,!0),i=T(it).getInt32(r+4,!0),n=V.decode(new Uint8Array(it.buffer,s,i));return bt(r),n}}),ke.prototype.parse=function(t,e){var r=this[Y];if(!r||0==(se[1+(r<<1)]&D))throw new TypeError('Resource error: Not a valid "Parser" resource.');var s=se[1+(r<<1)]&~D,i=$(e,Et,it),n=j,a=W["nomic-foundation:slang/parser#[method]parser.parse"](s,o[t],i,n),c=new.target===Ce?this:Object.create(Ce.prototype);return Object.defineProperty(c,Y,{writable:!0,value:a}),ce.register(c,a,c),Object.defineProperty(c,M,{writable:!0,value:function(){ce.unregister(c),P(oe,a),c[M]=S,c[Y]=null,z[24](oe[1+(a<<1)]&~D)}}),c};class Re{constructor(){throw new Error('"ParseError" resource does not define a constructor')}}Object.defineProperty(Re.prototype,"textRange",{get:function(){var t=this[Y];if(!t||0==(ue[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "ParseError" resource.');var e=ue[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/parser#[method]parse-error.text-range"](e);return{start:{utf8:T(it).getInt32(r+0,!0)>>>0,utf16:T(it).getInt32(r+4,!0)>>>0,line:T(it).getInt32(r+8,!0)>>>0,column:T(it).getInt32(r+12,!0)>>>0},end:{utf8:T(it).getInt32(r+16,!0)>>>0,utf16:T(it).getInt32(r+20,!0)>>>0,line:T(it).getInt32(r+24,!0)>>>0,column:T(it).getInt32(r+28,!0)>>>0}}}}),Object.defineProperty(Re.prototype,"message",{get:function(){var t=this[Y];if(!t||0==(ue[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "ParseError" resource.');var e=ue[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/parser#[method]parse-error.message"](e);var s=T(it).getInt32(r+0,!0),i=T(it).getInt32(r+4,!0),n=V.decode(new Uint8Array(it.buffer,s,i));return bt(r),n}});class Ce{constructor(){throw new Error('"ParseOutput" resource does not define a constructor')}}Object.defineProperty(Ce.prototype,"tree",{get:function(){var t=this[Y];if(!t||0==(oe[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=oe[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/parser#[method]parse-output.tree"](e);let s;switch(T(it).getUint8(r+0,!0)){case 0:var i=T(it).getInt32(r+4,!0),n=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Yt.register(n,i,n),Object.defineProperty(n,M,{writable:!0,value:function(){Yt.unregister(n),P(qt,i),n[M]=S,n[Y]=null,z[16](qt[1+(i<<1)]&~D)}}),s=n;break;case 1:var a=T(it).getInt32(r+4,!0),o=new.target===be?this:Object.create(be.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Ut.register(o,a,o),Object.defineProperty(o,M,{writable:!0,value:function(){Ut.unregister(o),P(Mt,a),o[M]=S,o[Y]=null,z[17](Mt[1+(a<<1)]&~D)}}),s=o}return s}}),Object.defineProperty(Ce.prototype,"errors",{get:function(){var t=this[Y];if(!t||0==(oe[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=oe[1+(t<<1)]&~D;const r=W["nomic-foundation:slang/parser#[method]parse-output.errors"](e);var s=T(it).getInt32(r+4,!0),i=T(it).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=T(it).getInt32(e+0,!0),o=new.target===Re?this:Object.create(Re.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),de.register(o,a,o),Object.defineProperty(o,M,{writable:!0,value:function(){de.unregister(o),P(ue,a),o[M]=S,o[Y]=null,z[23](ue[1+(a<<1)]&~D)}}),n.push(o)}return _t(r),n}}),Ce.prototype.isValid=function(){var t=this[Y];if(!t||0==(oe[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=oe[1+(t<<1)]&~D;return!!W["nomic-foundation:slang/parser#[method]parse-output.is-valid"](e)},Ce.prototype.createTreeCursor=function(){var t=this[Y];if(!t||0==(oe[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=oe[1+(t<<1)]&~D,r=W["nomic-foundation:slang/parser#[method]parse-output.create-tree-cursor"](e),s=new.target===_e?this:Object.create(_e.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Ht.register(s,r,s),Object.defineProperty(s,M,{writable:!0,value:function(){Ht.unregister(s),P(Vt,r),s[M]=S,s[Y]=null,z[18](Vt[1+(r<<1)]&~D)}}),s};const Ae=(async()=>{const t=C(new URL(r(7870),r.b)),e=C(new URL(r(1112),r.b)),s=C(new URL(r(9719),r.b)),i=C(new URL(r(450),r.b));({exports:z}=await N(await s)),({exports:W}=await N(await t,{"[export]nomic-foundation:slang/cst":{"[resource-drop]cursor":zt,"[resource-drop]nonterminal-node":$t,"[resource-drop]query":re,"[resource-drop]query-match-iterator":Jt,"[resource-drop]terminal-node":Gt,"[resource-new]cursor":jt,"[resource-new]nonterminal-node":Ft,"[resource-new]query":ee,"[resource-new]query-match-iterator":Qt,"[resource-new]terminal-node":Bt},"[export]nomic-foundation:slang/parser":{"[resource-drop]parse-error":me,"[resource-drop]parse-output":he,"[resource-drop]parser":ae,"[resource-new]parse-error":pe,"[resource-new]parse-output":le,"[resource-new]parser":ne},wasi_snapshot_preview1:{environ_get:z[12],environ_sizes_get:z[13],fd_write:z[11],proc_exit:z[14]}})),({exports:st}=await N(await e,{__main_module__:{cabi_realloc:W.cabi_realloc},env:{memory:W.memory},"wasi:cli/environment@0.2.0":{"get-environment":z[10]},"wasi:cli/exit@0.2.0":{exit:tt},"wasi:cli/stderr@0.2.0":{"get-stderr":Z},"wasi:cli/stdin@0.2.0":{"get-stdin":ot},"wasi:cli/stdout@0.2.0":{"get-stdout":ct},"wasi:filesystem/preopens@0.2.0":{"get-directories":z[0]},"wasi:filesystem/types@0.2.0":{"[method]descriptor.append-via-stream":z[2],"[method]descriptor.get-type":z[3],"[method]descriptor.stat":z[4],"[method]descriptor.write-via-stream":z[1],"[resource-drop]descriptor":we,"filesystem-error-code":z[5]},"wasi:io/error@0.2.0":{"[resource-drop]error":ye},"wasi:io/streams@0.2.0":{"[method]output-stream.blocking-flush":z[9],"[method]output-stream.blocking-write-and-flush":z[8],"[method]output-stream.check-write":z[6],"[method]output-stream.write":z[7],"[resource-drop]input-stream":fe,"[resource-drop]output-stream":ge}})),it=W.memory,nt=st.cabi_import_realloc,({exports:xt}=await N(await i,{"":{$imports:z.$imports,0:dt,1:pt,10:Pt,11:st.fd_write,12:st.environ_get,13:st.environ_sizes_get,14:st.proc_exit,15:W["nomic-foundation:slang/cst#[dtor]terminal-kind-extensions"],16:W["nomic-foundation:slang/cst#[dtor]nonterminal-node"],17:W["nomic-foundation:slang/cst#[dtor]terminal-node"],18:W["nomic-foundation:slang/cst#[dtor]cursor"],19:W["nomic-foundation:slang/cst#[dtor]query"],2:mt,20:W["nomic-foundation:slang/cst#[dtor]query-match-iterator"],21:W["nomic-foundation:slang/ast#[dtor]selectors"],22:W["nomic-foundation:slang/parser#[dtor]parser"],23:W["nomic-foundation:slang/parser#[dtor]parse-error"],24:W["nomic-foundation:slang/parser#[dtor]parse-output"],3:yt,4:ft,5:Lt,6:It,7:Nt,8:Dt,9:Ot}})),vt=W["cabi_post_nomic-foundation:slang/cst#[method]nonterminal-node.children"],bt=W["cabi_post_nomic-foundation:slang/cst#[method]nonterminal-node.to-json"],_t=W["cabi_post_nomic-foundation:slang/cst#[method]cursor.ancestors"],Et=W.cabi_realloc,Tt=W["cabi_post_nomic-foundation:slang/ast#[static]selectors.choice"],St=W["cabi_post_nomic-foundation:slang/cst#[method]query-match-iterator.next"],kt=W["cabi_post_nomic-foundation:slang/ast#[static]selectors.sequence"],Rt=W["cabi_post_nomic-foundation:slang/ast#[static]selectors.repeated"],Ct=W["cabi_post_nomic-foundation:slang/ast#[static]selectors.separated"],At=W["cabi_post_nomic-foundation:slang/parser#[static]parser.supported-versions"]})();await Ae;const Ke={Selectors:Se},Le={Cursor:_e,EdgeLabel:{Item:"Item",Variant:"Variant",Separator:"Separator",Operand:"Operand",LeftOperand:"LeftOperand",RightOperand:"RightOperand",LeadingTrivia:"LeadingTrivia",TrailingTrivia:"TrailingTrivia",AbicoderKeyword:"AbicoderKeyword",AbstractKeyword:"AbstractKeyword",AddressKeyword:"AddressKeyword",Alias:"Alias",AnonymousKeyword:"AnonymousKeyword",Arguments:"Arguments",AsKeyword:"AsKeyword",AssemblyKeyword:"AssemblyKeyword",Assignment:"Assignment",Asterisk:"Asterisk",Attributes:"Attributes",Block:"Block",Body:"Body",BreakKeyword:"BreakKeyword",CaseKeyword:"CaseKeyword",Cases:"Cases",CatchClauses:"CatchClauses",CatchKeyword:"CatchKeyword",Clause:"Clause",CloseBrace:"CloseBrace",CloseBracket:"CloseBracket",CloseParen:"CloseParen",Colon:"Colon",Condition:"Condition",ConstantKeyword:"ConstantKeyword",ConstructorKeyword:"ConstructorKeyword",ContinueKeyword:"ContinueKeyword",ContractKeyword:"ContractKeyword",DefaultKeyword:"DefaultKeyword",DoKeyword:"DoKeyword",Elements:"Elements",ElseBranch:"ElseBranch",ElseKeyword:"ElseKeyword",EmitKeyword:"EmitKeyword",End:"End",EnumKeyword:"EnumKeyword",Equal:"Equal",EqualGreaterThan:"EqualGreaterThan",Error:"Error",ErrorKeyword:"ErrorKeyword",Event:"Event",EventKeyword:"EventKeyword",ExperimentalKeyword:"ExperimentalKeyword",Expression:"Expression",FallbackKeyword:"FallbackKeyword",FalseExpression:"FalseExpression",Feature:"Feature",Flags:"Flags",ForKeyword:"ForKeyword",FromKeyword:"FromKeyword",FunctionKeyword:"FunctionKeyword",GlobalKeyword:"GlobalKeyword",Identifier:"Identifier",IfKeyword:"IfKeyword",ImportKeyword:"ImportKeyword",Index:"Index",IndexedKeyword:"IndexedKeyword",Inheritance:"Inheritance",Initialization:"Initialization",InterfaceKeyword:"InterfaceKeyword",IsKeyword:"IsKeyword",Items:"Items",Iterator:"Iterator",KeyType:"KeyType",Label:"Label",LeaveKeyword:"LeaveKeyword",LetKeyword:"LetKeyword",LibraryKeyword:"LibraryKeyword",Literal:"Literal",MappingKeyword:"MappingKeyword",Member:"Member",Members:"Members",Minus:"Minus",MinusGreaterThan:"MinusGreaterThan",ModifierKeyword:"ModifierKeyword",Name:"Name",NewKeyword:"NewKeyword",OpenBrace:"OpenBrace",OpenBracket:"OpenBracket",OpenParen:"OpenParen",Operator:"Operator",Options:"Options",Overridden:"Overridden",OverrideKeyword:"OverrideKeyword",Parameters:"Parameters",Path:"Path",Paths:"Paths",PayableKeyword:"PayableKeyword",Period:"Period",Pragma:"Pragma",PragmaKeyword:"PragmaKeyword",QuestionMark:"QuestionMark",ReceiveKeyword:"ReceiveKeyword",ReturnKeyword:"ReturnKeyword",Returns:"Returns",ReturnsKeyword:"ReturnsKeyword",RevertKeyword:"RevertKeyword",Semicolon:"Semicolon",Sets:"Sets",SolidityKeyword:"SolidityKeyword",Start:"Start",Statements:"Statements",StorageLocation:"StorageLocation",StructKeyword:"StructKeyword",SwitchKeyword:"SwitchKeyword",Symbols:"Symbols",Target:"Target",ThrowKeyword:"ThrowKeyword",TrueExpression:"TrueExpression",TryKeyword:"TryKeyword",TypeKeyword:"TypeKeyword",TypeName:"TypeName",Types:"Types",UncheckedKeyword:"UncheckedKeyword",Unit:"Unit",UsingKeyword:"UsingKeyword",Value:"Value",ValueType:"ValueType",VarKeyword:"VarKeyword",Variable:"Variable",VariableType:"VariableType",Variables:"Variables",Version:"Version",WhileKeyword:"WhileKeyword"},NodeVariant:h,NonterminalKind:{AbicoderPragma:"AbicoderPragma",AdditiveExpression:"AdditiveExpression",AddressType:"AddressType",AndExpression:"AndExpression",ArgumentsDeclaration:"ArgumentsDeclaration",ArrayExpression:"ArrayExpression",ArrayTypeName:"ArrayTypeName",ArrayValues:"ArrayValues",AssemblyFlags:"AssemblyFlags",AssemblyFlagsDeclaration:"AssemblyFlagsDeclaration",AssemblyStatement:"AssemblyStatement",AssignmentExpression:"AssignmentExpression",BitwiseAndExpression:"BitwiseAndExpression",BitwiseOrExpression:"BitwiseOrExpression",BitwiseXorExpression:"BitwiseXorExpression",Block:"Block",BreakStatement:"BreakStatement",CallOptions:"CallOptions",CallOptionsExpression:"CallOptionsExpression",CatchClause:"CatchClause",CatchClauseError:"CatchClauseError",CatchClauses:"CatchClauses",ComparisonExpression:"ComparisonExpression",ConditionalExpression:"ConditionalExpression",ConstantDefinition:"ConstantDefinition",ConstructorAttribute:"ConstructorAttribute",ConstructorAttributes:"ConstructorAttributes",ConstructorDefinition:"ConstructorDefinition",ContinueStatement:"ContinueStatement",ContractDefinition:"ContractDefinition",ContractMember:"ContractMember",ContractMembers:"ContractMembers",DecimalNumberExpression:"DecimalNumberExpression",DoWhileStatement:"DoWhileStatement",ElementaryType:"ElementaryType",ElseBranch:"ElseBranch",EmitStatement:"EmitStatement",EnumDefinition:"EnumDefinition",EnumMembers:"EnumMembers",EqualityExpression:"EqualityExpression",ErrorDefinition:"ErrorDefinition",ErrorParameter:"ErrorParameter",ErrorParameters:"ErrorParameters",ErrorParametersDeclaration:"ErrorParametersDeclaration",EventDefinition:"EventDefinition",EventParameter:"EventParameter",EventParameters:"EventParameters",EventParametersDeclaration:"EventParametersDeclaration",ExperimentalFeature:"ExperimentalFeature",ExperimentalPragma:"ExperimentalPragma",ExponentiationExpression:"ExponentiationExpression",Expression:"Expression",ExpressionStatement:"ExpressionStatement",FallbackFunctionAttribute:"FallbackFunctionAttribute",FallbackFunctionAttributes:"FallbackFunctionAttributes",FallbackFunctionDefinition:"FallbackFunctionDefinition",ForStatement:"ForStatement",ForStatementCondition:"ForStatementCondition",ForStatementInitialization:"ForStatementInitialization",FunctionAttribute:"FunctionAttribute",FunctionAttributes:"FunctionAttributes",FunctionBody:"FunctionBody",FunctionCallExpression:"FunctionCallExpression",FunctionDefinition:"FunctionDefinition",FunctionName:"FunctionName",FunctionType:"FunctionType",FunctionTypeAttribute:"FunctionTypeAttribute",FunctionTypeAttributes:"FunctionTypeAttributes",HexNumberExpression:"HexNumberExpression",HexStringLiteral:"HexStringLiteral",HexStringLiterals:"HexStringLiterals",IdentifierPath:"IdentifierPath",IfStatement:"IfStatement",ImportAlias:"ImportAlias",ImportClause:"ImportClause",ImportDeconstruction:"ImportDeconstruction",ImportDeconstructionSymbol:"ImportDeconstructionSymbol",ImportDeconstructionSymbols:"ImportDeconstructionSymbols",ImportDirective:"ImportDirective",IndexAccessEnd:"IndexAccessEnd",IndexAccessExpression:"IndexAccessExpression",InheritanceSpecifier:"InheritanceSpecifier",InheritanceType:"InheritanceType",InheritanceTypes:"InheritanceTypes",InterfaceDefinition:"InterfaceDefinition",InterfaceMembers:"InterfaceMembers",LibraryDefinition:"LibraryDefinition",LibraryMembers:"LibraryMembers",MappingKey:"MappingKey",MappingKeyType:"MappingKeyType",MappingType:"MappingType",MappingValue:"MappingValue",MemberAccessExpression:"MemberAccessExpression",ModifierAttribute:"ModifierAttribute",ModifierAttributes:"ModifierAttributes",ModifierDefinition:"ModifierDefinition",ModifierInvocation:"ModifierInvocation",MultiplicativeExpression:"MultiplicativeExpression",NamedArgument:"NamedArgument",NamedArgumentGroup:"NamedArgumentGroup",NamedArguments:"NamedArguments",NamedArgumentsDeclaration:"NamedArgumentsDeclaration",NamedImport:"NamedImport",NewExpression:"NewExpression",NumberUnit:"NumberUnit",OrExpression:"OrExpression",OverridePaths:"OverridePaths",OverridePathsDeclaration:"OverridePathsDeclaration",OverrideSpecifier:"OverrideSpecifier",Parameter:"Parameter",Parameters:"Parameters",ParametersDeclaration:"ParametersDeclaration",PathImport:"PathImport",PositionalArguments:"PositionalArguments",PositionalArgumentsDeclaration:"PositionalArgumentsDeclaration",PostfixExpression:"PostfixExpression",Pragma:"Pragma",PragmaDirective:"PragmaDirective",PrefixExpression:"PrefixExpression",ReceiveFunctionAttribute:"ReceiveFunctionAttribute",ReceiveFunctionAttributes:"ReceiveFunctionAttributes",ReceiveFunctionDefinition:"ReceiveFunctionDefinition",ReturnStatement:"ReturnStatement",ReturnsDeclaration:"ReturnsDeclaration",RevertStatement:"RevertStatement",ShiftExpression:"ShiftExpression",SimpleVersionLiteral:"SimpleVersionLiteral",SourceUnit:"SourceUnit",SourceUnitMember:"SourceUnitMember",SourceUnitMembers:"SourceUnitMembers",StateVariableAttribute:"StateVariableAttribute",StateVariableAttributes:"StateVariableAttributes",StateVariableDefinition:"StateVariableDefinition",StateVariableDefinitionValue:"StateVariableDefinitionValue",Statement:"Statement",Statements:"Statements",StorageLocation:"StorageLocation",StringExpression:"StringExpression",StringLiteral:"StringLiteral",StringLiterals:"StringLiterals",StructDefinition:"StructDefinition",StructMember:"StructMember",StructMembers:"StructMembers",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TupleDeconstructionElement:"TupleDeconstructionElement",TupleDeconstructionElements:"TupleDeconstructionElements",TupleDeconstructionStatement:"TupleDeconstructionStatement",TupleExpression:"TupleExpression",TupleMember:"TupleMember",TupleValue:"TupleValue",TupleValues:"TupleValues",TypeExpression:"TypeExpression",TypeName:"TypeName",TypedTupleMember:"TypedTupleMember",UncheckedBlock:"UncheckedBlock",UnicodeStringLiteral:"UnicodeStringLiteral",UnicodeStringLiterals:"UnicodeStringLiterals",UnnamedFunctionAttribute:"UnnamedFunctionAttribute",UnnamedFunctionAttributes:"UnnamedFunctionAttributes",UnnamedFunctionDefinition:"UnnamedFunctionDefinition",UntypedTupleMember:"UntypedTupleMember",UserDefinedValueTypeDefinition:"UserDefinedValueTypeDefinition",UsingAlias:"UsingAlias",UsingClause:"UsingClause",UsingDeconstruction:"UsingDeconstruction",UsingDeconstructionSymbol:"UsingDeconstructionSymbol",UsingDeconstructionSymbols:"UsingDeconstructionSymbols",UsingDirective:"UsingDirective",UsingOperator:"UsingOperator",UsingTarget:"UsingTarget",VariableDeclarationStatement:"VariableDeclarationStatement",VariableDeclarationType:"VariableDeclarationType",VariableDeclarationValue:"VariableDeclarationValue",VersionExpression:"VersionExpression",VersionExpressionSet:"VersionExpressionSet",VersionExpressionSets:"VersionExpressionSets",VersionLiteral:"VersionLiteral",VersionOperator:"VersionOperator",VersionPragma:"VersionPragma",VersionRange:"VersionRange",VersionTerm:"VersionTerm",WhileStatement:"WhileStatement",YulArguments:"YulArguments",YulAssignmentOperator:"YulAssignmentOperator",YulBlock:"YulBlock",YulBreakStatement:"YulBreakStatement",YulBuiltInFunction:"YulBuiltInFunction",YulColonAndEqual:"YulColonAndEqual",YulContinueStatement:"YulContinueStatement",YulDefaultCase:"YulDefaultCase",YulEqualAndColon:"YulEqualAndColon",YulExpression:"YulExpression",YulForStatement:"YulForStatement",YulFunctionCallExpression:"YulFunctionCallExpression",YulFunctionDefinition:"YulFunctionDefinition",YulIfStatement:"YulIfStatement",YulLabel:"YulLabel",YulLeaveStatement:"YulLeaveStatement",YulLiteral:"YulLiteral",YulParameters:"YulParameters",YulParametersDeclaration:"YulParametersDeclaration",YulPath:"YulPath",YulPathComponent:"YulPathComponent",YulPaths:"YulPaths",YulReturnsDeclaration:"YulReturnsDeclaration",YulStackAssignmentOperator:"YulStackAssignmentOperator",YulStackAssignmentStatement:"YulStackAssignmentStatement",YulStatement:"YulStatement",YulStatements:"YulStatements",YulSwitchCase:"YulSwitchCase",YulSwitchCases:"YulSwitchCases",YulSwitchStatement:"YulSwitchStatement",YulValueCase:"YulValueCase",YulVariableAssignmentStatement:"YulVariableAssignmentStatement",YulVariableDeclarationStatement:"YulVariableDeclarationStatement",YulVariableDeclarationValue:"YulVariableDeclarationValue",YulVariableNames:"YulVariableNames"},NonterminalNode:ve,Query:Ee,QueryMatchIterator:Te,TerminalKind:{Unrecognized:"Unrecognized",Missing:"Missing",AbicoderKeyword:"AbicoderKeyword",AbstractKeyword:"AbstractKeyword",AddressKeyword:"AddressKeyword",AfterKeyword:"AfterKeyword",AliasKeyword:"AliasKeyword",Ampersand:"Ampersand",AmpersandAmpersand:"AmpersandAmpersand",AmpersandEqual:"AmpersandEqual",AnonymousKeyword:"AnonymousKeyword",ApplyKeyword:"ApplyKeyword",AsKeyword:"AsKeyword",AssemblyKeyword:"AssemblyKeyword",Asterisk:"Asterisk",AsteriskAsterisk:"AsteriskAsterisk",AsteriskEqual:"AsteriskEqual",AutoKeyword:"AutoKeyword",Bang:"Bang",BangEqual:"BangEqual",Bar:"Bar",BarBar:"BarBar",BarEqual:"BarEqual",BoolKeyword:"BoolKeyword",BreakKeyword:"BreakKeyword",ByteKeyword:"ByteKeyword",BytesKeyword:"BytesKeyword",CallDataKeyword:"CallDataKeyword",Caret:"Caret",CaretEqual:"CaretEqual",CaseKeyword:"CaseKeyword",CatchKeyword:"CatchKeyword",CloseBrace:"CloseBrace",CloseBracket:"CloseBracket",CloseParen:"CloseParen",Colon:"Colon",ColonEqual:"ColonEqual",Comma:"Comma",ConstantKeyword:"ConstantKeyword",ConstructorKeyword:"ConstructorKeyword",ContinueKeyword:"ContinueKeyword",ContractKeyword:"ContractKeyword",CopyOfKeyword:"CopyOfKeyword",DaysKeyword:"DaysKeyword",DecimalLiteral:"DecimalLiteral",DefaultKeyword:"DefaultKeyword",DefineKeyword:"DefineKeyword",DeleteKeyword:"DeleteKeyword",DoKeyword:"DoKeyword",DoubleQuotedHexStringLiteral:"DoubleQuotedHexStringLiteral",DoubleQuotedStringLiteral:"DoubleQuotedStringLiteral",DoubleQuotedUnicodeStringLiteral:"DoubleQuotedUnicodeStringLiteral",DoubleQuotedVersionLiteral:"DoubleQuotedVersionLiteral",ElseKeyword:"ElseKeyword",EmitKeyword:"EmitKeyword",EndOfLine:"EndOfLine",EnumKeyword:"EnumKeyword",Equal:"Equal",EqualColon:"EqualColon",EqualEqual:"EqualEqual",EqualGreaterThan:"EqualGreaterThan",ErrorKeyword:"ErrorKeyword",EtherKeyword:"EtherKeyword",EventKeyword:"EventKeyword",ExperimentalKeyword:"ExperimentalKeyword",ExternalKeyword:"ExternalKeyword",FallbackKeyword:"FallbackKeyword",FalseKeyword:"FalseKeyword",FinalKeyword:"FinalKeyword",FinneyKeyword:"FinneyKeyword",FixedKeyword:"FixedKeyword",ForKeyword:"ForKeyword",FromKeyword:"FromKeyword",FunctionKeyword:"FunctionKeyword",GlobalKeyword:"GlobalKeyword",GreaterThan:"GreaterThan",GreaterThanEqual:"GreaterThanEqual",GreaterThanGreaterThan:"GreaterThanGreaterThan",GreaterThanGreaterThanEqual:"GreaterThanGreaterThanEqual",GreaterThanGreaterThanGreaterThan:"GreaterThanGreaterThanGreaterThan",GreaterThanGreaterThanGreaterThanEqual:"GreaterThanGreaterThanGreaterThanEqual",GweiKeyword:"GweiKeyword",HexKeyword:"HexKeyword",HexLiteral:"HexLiteral",HoursKeyword:"HoursKeyword",Identifier:"Identifier",IfKeyword:"IfKeyword",ImmutableKeyword:"ImmutableKeyword",ImplementsKeyword:"ImplementsKeyword",ImportKeyword:"ImportKeyword",InKeyword:"InKeyword",IndexedKeyword:"IndexedKeyword",InlineKeyword:"InlineKeyword",IntKeyword:"IntKeyword",InterfaceKeyword:"InterfaceKeyword",InternalKeyword:"InternalKeyword",IsKeyword:"IsKeyword",LessThan:"LessThan",LessThanEqual:"LessThanEqual",LessThanLessThan:"LessThanLessThan",LessThanLessThanEqual:"LessThanLessThanEqual",LetKeyword:"LetKeyword",LibraryKeyword:"LibraryKeyword",MacroKeyword:"MacroKeyword",MappingKeyword:"MappingKeyword",MatchKeyword:"MatchKeyword",MemoryKeyword:"MemoryKeyword",Minus:"Minus",MinusEqual:"MinusEqual",MinusGreaterThan:"MinusGreaterThan",MinusMinus:"MinusMinus",MinutesKeyword:"MinutesKeyword",ModifierKeyword:"ModifierKeyword",MultiLineComment:"MultiLineComment",MultiLineNatSpecComment:"MultiLineNatSpecComment",MutableKeyword:"MutableKeyword",NewKeyword:"NewKeyword",NullKeyword:"NullKeyword",OfKeyword:"OfKeyword",OpenBrace:"OpenBrace",OpenBracket:"OpenBracket",OpenParen:"OpenParen",OverrideKeyword:"OverrideKeyword",PartialKeyword:"PartialKeyword",PayableKeyword:"PayableKeyword",Percent:"Percent",PercentEqual:"PercentEqual",Period:"Period",Plus:"Plus",PlusEqual:"PlusEqual",PlusPlus:"PlusPlus",PragmaKeyword:"PragmaKeyword",PrivateKeyword:"PrivateKeyword",PromiseKeyword:"PromiseKeyword",PublicKeyword:"PublicKeyword",PureKeyword:"PureKeyword",QuestionMark:"QuestionMark",ReceiveKeyword:"ReceiveKeyword",ReferenceKeyword:"ReferenceKeyword",RelocatableKeyword:"RelocatableKeyword",ReturnKeyword:"ReturnKeyword",ReturnsKeyword:"ReturnsKeyword",RevertKeyword:"RevertKeyword",SealedKeyword:"SealedKeyword",SecondsKeyword:"SecondsKeyword",Semicolon:"Semicolon",SingleLineComment:"SingleLineComment",SingleLineNatSpecComment:"SingleLineNatSpecComment",SingleQuotedHexStringLiteral:"SingleQuotedHexStringLiteral",SingleQuotedStringLiteral:"SingleQuotedStringLiteral",SingleQuotedUnicodeStringLiteral:"SingleQuotedUnicodeStringLiteral",SingleQuotedVersionLiteral:"SingleQuotedVersionLiteral",SizeOfKeyword:"SizeOfKeyword",Slash:"Slash",SlashEqual:"SlashEqual",SolidityKeyword:"SolidityKeyword",StaticKeyword:"StaticKeyword",StorageKeyword:"StorageKeyword",StringKeyword:"StringKeyword",StructKeyword:"StructKeyword",SupportsKeyword:"SupportsKeyword",SwitchKeyword:"SwitchKeyword",SzaboKeyword:"SzaboKeyword",ThrowKeyword:"ThrowKeyword",Tilde:"Tilde",TransientKeyword:"TransientKeyword",TrueKeyword:"TrueKeyword",TryKeyword:"TryKeyword",TypeDefKeyword:"TypeDefKeyword",TypeKeyword:"TypeKeyword",TypeOfKeyword:"TypeOfKeyword",UfixedKeyword:"UfixedKeyword",UintKeyword:"UintKeyword",UncheckedKeyword:"UncheckedKeyword",UsingKeyword:"UsingKeyword",VarKeyword:"VarKeyword",VersionSpecifier:"VersionSpecifier",ViewKeyword:"ViewKeyword",VirtualKeyword:"VirtualKeyword",WeeksKeyword:"WeeksKeyword",WeiKeyword:"WeiKeyword",WhileKeyword:"WhileKeyword",Whitespace:"Whitespace",YearsKeyword:"YearsKeyword",YulAbstractKeyword:"YulAbstractKeyword",YulAddKeyword:"YulAddKeyword",YulAddModKeyword:"YulAddModKeyword",YulAddressKeyword:"YulAddressKeyword",YulAfterKeyword:"YulAfterKeyword",YulAliasKeyword:"YulAliasKeyword",YulAndKeyword:"YulAndKeyword",YulAnonymousKeyword:"YulAnonymousKeyword",YulApplyKeyword:"YulApplyKeyword",YulAsKeyword:"YulAsKeyword",YulAssemblyKeyword:"YulAssemblyKeyword",YulAutoKeyword:"YulAutoKeyword",YulBalanceKeyword:"YulBalanceKeyword",YulBaseFeeKeyword:"YulBaseFeeKeyword",YulBlobBaseFeeKeyword:"YulBlobBaseFeeKeyword",YulBlobHashKeyword:"YulBlobHashKeyword",YulBlockHashKeyword:"YulBlockHashKeyword",YulBoolKeyword:"YulBoolKeyword",YulBreakKeyword:"YulBreakKeyword",YulByteKeyword:"YulByteKeyword",YulBytesKeyword:"YulBytesKeyword",YulCallCodeKeyword:"YulCallCodeKeyword",YulCallDataCopyKeyword:"YulCallDataCopyKeyword",YulCallDataKeyword:"YulCallDataKeyword",YulCallDataLoadKeyword:"YulCallDataLoadKeyword",YulCallDataSizeKeyword:"YulCallDataSizeKeyword",YulCallKeyword:"YulCallKeyword",YulCallValueKeyword:"YulCallValueKeyword",YulCallerKeyword:"YulCallerKeyword",YulCaseKeyword:"YulCaseKeyword",YulCatchKeyword:"YulCatchKeyword",YulChainIdKeyword:"YulChainIdKeyword",YulCoinBaseKeyword:"YulCoinBaseKeyword",YulConstantKeyword:"YulConstantKeyword",YulConstructorKeyword:"YulConstructorKeyword",YulContinueKeyword:"YulContinueKeyword",YulContractKeyword:"YulContractKeyword",YulCopyOfKeyword:"YulCopyOfKeyword",YulCreate2Keyword:"YulCreate2Keyword",YulCreateKeyword:"YulCreateKeyword",YulDaysKeyword:"YulDaysKeyword",YulDecimalLiteral:"YulDecimalLiteral",YulDefaultKeyword:"YulDefaultKeyword",YulDefineKeyword:"YulDefineKeyword",YulDelegateCallKeyword:"YulDelegateCallKeyword",YulDeleteKeyword:"YulDeleteKeyword",YulDifficultyKeyword:"YulDifficultyKeyword",YulDivKeyword:"YulDivKeyword",YulDoKeyword:"YulDoKeyword",YulElseKeyword:"YulElseKeyword",YulEmitKeyword:"YulEmitKeyword",YulEnumKeyword:"YulEnumKeyword",YulEqKeyword:"YulEqKeyword",YulEtherKeyword:"YulEtherKeyword",YulEventKeyword:"YulEventKeyword",YulExpKeyword:"YulExpKeyword",YulExtCodeCopyKeyword:"YulExtCodeCopyKeyword",YulExtCodeHashKeyword:"YulExtCodeHashKeyword",YulExtCodeSizeKeyword:"YulExtCodeSizeKeyword",YulExternalKeyword:"YulExternalKeyword",YulFallbackKeyword:"YulFallbackKeyword",YulFalseKeyword:"YulFalseKeyword",YulFinalKeyword:"YulFinalKeyword",YulFinneyKeyword:"YulFinneyKeyword",YulFixedKeyword:"YulFixedKeyword",YulForKeyword:"YulForKeyword",YulFunctionKeyword:"YulFunctionKeyword",YulGasKeyword:"YulGasKeyword",YulGasLimitKeyword:"YulGasLimitKeyword",YulGasPriceKeyword:"YulGasPriceKeyword",YulGtKeyword:"YulGtKeyword",YulGweiKeyword:"YulGweiKeyword",YulHexKeyword:"YulHexKeyword",YulHexLiteral:"YulHexLiteral",YulHoursKeyword:"YulHoursKeyword",YulIdentifier:"YulIdentifier",YulIfKeyword:"YulIfKeyword",YulImmutableKeyword:"YulImmutableKeyword",YulImplementsKeyword:"YulImplementsKeyword",YulImportKeyword:"YulImportKeyword",YulInKeyword:"YulInKeyword",YulIndexedKeyword:"YulIndexedKeyword",YulInlineKeyword:"YulInlineKeyword",YulIntKeyword:"YulIntKeyword",YulInterfaceKeyword:"YulInterfaceKeyword",YulInternalKeyword:"YulInternalKeyword",YulInvalidKeyword:"YulInvalidKeyword",YulIsKeyword:"YulIsKeyword",YulIsZeroKeyword:"YulIsZeroKeyword",YulKeccak256Keyword:"YulKeccak256Keyword",YulLeaveKeyword:"YulLeaveKeyword",YulLetKeyword:"YulLetKeyword",YulLibraryKeyword:"YulLibraryKeyword",YulLog0Keyword:"YulLog0Keyword",YulLog1Keyword:"YulLog1Keyword",YulLog2Keyword:"YulLog2Keyword",YulLog3Keyword:"YulLog3Keyword",YulLog4Keyword:"YulLog4Keyword",YulLtKeyword:"YulLtKeyword",YulMcopyKeyword:"YulMcopyKeyword",YulMloadKeyword:"YulMloadKeyword",YulMsizeKeyword:"YulMsizeKeyword",YulMstore8Keyword:"YulMstore8Keyword",YulMstoreKeyword:"YulMstoreKeyword",YulMacroKeyword:"YulMacroKeyword",YulMappingKeyword:"YulMappingKeyword",YulMatchKeyword:"YulMatchKeyword",YulMemoryKeyword:"YulMemoryKeyword",YulMinutesKeyword:"YulMinutesKeyword",YulModKeyword:"YulModKeyword",YulModifierKeyword:"YulModifierKeyword",YulMulKeyword:"YulMulKeyword",YulMulModKeyword:"YulMulModKeyword",YulMutableKeyword:"YulMutableKeyword",YulNewKeyword:"YulNewKeyword",YulNotKeyword:"YulNotKeyword",YulNullKeyword:"YulNullKeyword",YulNumberKeyword:"YulNumberKeyword",YulOfKeyword:"YulOfKeyword",YulOrKeyword:"YulOrKeyword",YulOriginKeyword:"YulOriginKeyword",YulOverrideKeyword:"YulOverrideKeyword",YulPartialKeyword:"YulPartialKeyword",YulPayableKeyword:"YulPayableKeyword",YulPopKeyword:"YulPopKeyword",YulPragmaKeyword:"YulPragmaKeyword",YulPrevRandaoKeyword:"YulPrevRandaoKeyword",YulPrivateKeyword:"YulPrivateKeyword",YulPromiseKeyword:"YulPromiseKeyword",YulPublicKeyword:"YulPublicKeyword",YulPureKeyword:"YulPureKeyword",YulReceiveKeyword:"YulReceiveKeyword",YulReferenceKeyword:"YulReferenceKeyword",YulRelocatableKeyword:"YulRelocatableKeyword",YulReturnDataCopyKeyword:"YulReturnDataCopyKeyword",YulReturnDataSizeKeyword:"YulReturnDataSizeKeyword",YulReturnKeyword:"YulReturnKeyword",YulReturnsKeyword:"YulReturnsKeyword",YulRevertKeyword:"YulRevertKeyword",YulSdivKeyword:"YulSdivKeyword",YulSloadKeyword:"YulSloadKeyword",YulSmodKeyword:"YulSmodKeyword",YulSstoreKeyword:"YulSstoreKeyword",YulSarKeyword:"YulSarKeyword",YulSealedKeyword:"YulSealedKeyword",YulSecondsKeyword:"YulSecondsKeyword",YulSelfBalanceKeyword:"YulSelfBalanceKeyword",YulSelfDestructKeyword:"YulSelfDestructKeyword",YulSgtKeyword:"YulSgtKeyword",YulSha3Keyword:"YulSha3Keyword",YulShlKeyword:"YulShlKeyword",YulShrKeyword:"YulShrKeyword",YulSignExtendKeyword:"YulSignExtendKeyword",YulSizeOfKeyword:"YulSizeOfKeyword",YulSltKeyword:"YulSltKeyword",YulStaticCallKeyword:"YulStaticCallKeyword",YulStaticKeyword:"YulStaticKeyword",YulStopKeyword:"YulStopKeyword",YulStorageKeyword:"YulStorageKeyword",YulStringKeyword:"YulStringKeyword",YulStructKeyword:"YulStructKeyword",YulSubKeyword:"YulSubKeyword",YulSuicideKeyword:"YulSuicideKeyword",YulSupportsKeyword:"YulSupportsKeyword",YulSwitchKeyword:"YulSwitchKeyword",YulSzaboKeyword:"YulSzaboKeyword",YulTloadKeyword:"YulTloadKeyword",YulTstoreKeyword:"YulTstoreKeyword",YulThrowKeyword:"YulThrowKeyword",YulTimestampKeyword:"YulTimestampKeyword",YulTrueKeyword:"YulTrueKeyword",YulTryKeyword:"YulTryKeyword",YulTypeDefKeyword:"YulTypeDefKeyword",YulTypeKeyword:"YulTypeKeyword",YulTypeOfKeyword:"YulTypeOfKeyword",YulUfixedKeyword:"YulUfixedKeyword",YulUintKeyword:"YulUintKeyword",YulUncheckedKeyword:"YulUncheckedKeyword",YulUsingKeyword:"YulUsingKeyword",YulVarKeyword:"YulVarKeyword",YulViewKeyword:"YulViewKeyword",YulVirtualKeyword:"YulVirtualKeyword",YulWeeksKeyword:"YulWeeksKeyword",YulWeiKeyword:"YulWeiKeyword",YulWhileKeyword:"YulWhileKeyword",YulXorKeyword:"YulXorKeyword",YulYearsKeyword:"YulYearsKeyword"},TerminalKindExtensions:xe,TerminalNode:be},Ie={ParseError:Re,ParseOutput:Ce,Parser:ke};s()}catch(Ne){s(Ne)}}),1)},1901:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K3:()=>i.K3,Rj:()=>i.Rj,tQ:()=>i.tQ});var i=r(1406),n=t([i]);i=(n.then?(await n)():n)[0],s()}catch(t){s(t)}}))},4687:(t,e,r)=>{r.d(e,{tN:()=>K,X5:()=>N,rN:()=>C,bd:()=>R,F7:()=>A});var s=r(838),i=r(1331);const{addLeadingComment:n,addTrailingComment:a,addDanglingComment:o,hasNewline:c,hasNewlineInRange:l}=s.util;function h(t,e){if(!t.body)return void o(t,e);const r=t.body.filter((t=>"EmptyStatement"!==t.type));0===r.length?o(t,e):n(r[0],e)}function u(t,e){"BlockStatement"===t.type?h(t,e):n(t,e)}function d(t,e,r,s,c,l){return!(!r||"IfStatement"!==r.type||!s)&&(")"===(0,i.u2)(t,c,l.locEnd)?(a(e,c),!0):e===r.trueBody&&s===r.falseBody?("ExpressionStatement"===e.type?a(e,c):o(r,c),!0):"ExpressionStatement"===s.type?(h(s,c),!0):"IfStatement"===s.type?(u(s.trueBody,c),!0):r.trueBody===s&&(n(s,c),!0))}function p(t,e,r,s,n,o){return!(!r||"WhileStatement"!==r.type||!s)&&(")"===(0,i.u2)(t,n,o.locEnd)?(a(e,n),!0):"BlockStatement"===s.type&&(h(s,n),!0))}function m(t,e,r,s){return!(!t||"TryStatement"!==t.type&&"CatchClause"!==t.type||!r||("CatchClause"===t.type&&e?(a(e,s),0):"BlockStatement"===r.type?(h(r,s),0):"TryStatement"===r.type?(u(r.finalizer,s),0):"CatchClause"!==r.type||(u(r.body,s),0)))}function y(t,e,r,s){return!(!(t&&("ClassDeclaration"===t.type||"ClassExpression"===t.type)&&t.decorators&&t.decorators.length>0)||r&&"Decorator"===r.type||(t.decorators&&0!==t.decorators.length?a(t.decorators[t.decorators.length-1],s):n(t,s),0))}function f(t,e,r,s,n){return(e&&r&&("Property"===e.type||"MethodDefinition"===e.type)&&"Identifier"===r.type&&e.key===r&&":"!==(0,i.u2)(t,r,n.locEnd)||!(!r||!e||"Decorator"!==r.type||"ClassMethod"!==e.type&&"ClassProperty"!==e.type&&"TSAbstractClassProperty"!==e.type&&"TSAbstractMethodDefinition"!==e.type&&"MethodDefinition"!==e.type))&&(a(r,s),!0)}function g(t,e,r,s,n,o){return(e&&"FunctionTypeParam"===e.type&&r&&"FunctionTypeAnnotation"===r.type&&s&&"FunctionTypeParam"!==s.type||!(!e||"Identifier"!==e.type&&"AssignmentPattern"!==e.type||!r||"ArrowFunctionExpression"!==r.type&&"FunctionExpression"!==r.type&&"FunctionDeclaration"!==r.type&&"ObjectMethod"!==r.type&&"ClassMethod"!==r.type||")"!==(0,i.u2)(t,n,o.locEnd)))&&(a(e,n),!0)}function w(t,e){return!(!t||"ImportSpecifier"!==t.type||(n(t,e),0))}function x(t,e,r,s){return e&&e.body&&0===e.body.length?(s?o(e,r):n(e,r),!0):!(!t||"Program"!==t.type||0!==t.body.length||!t.directives||0!==t.directives.length||(s?o(t,r):n(t,r),0))}const{addLeadingComment:v,addTrailingComment:b,addDanglingComment:_}=s.util,{addLeadingComment:E,addTrailingComment:T,addDanglingComment:S}=s.util,k=[function({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:n,options:a}){if(!r||"ContractDefinition"!==r.type)return!1;const o=(0,i.u2)(t,n,a.locEnd);return"InheritanceSpecifier"===s?.type||"{"===o?"InheritanceSpecifier"===e?.type?(b(e,n),!0):(v(r,n),!0):0===r.subNodes.length&&(_(r,n),!0)},function({text:t,precedingNode:e,enclosingNode:r,comment:s,options:n}){if(!r||"ModifierInvocation"!==r.type)return!1;const a=(0,i.u2)(t,s,n.locEnd);return"("===a?(E(r,s),!0):")"===a&&(e?(T(e,s),!0):"LineComment"===s.type?(E(r,s),!0):(S(r,s),!0))}];function R(t,e,r,s,i){const{precedingNode:o,enclosingNode:l,followingNode:h}=t,u={text:e,precedingNode:o,enclosingNode:l,followingNode:h,comment:t,options:r};return!(!k.some((t=>t(u)))&&!function(t,e,r,s,i){const{precedingNode:o,enclosingNode:l,followingNode:h}=t;return!!(g(e,o,l,h,t,r)||function(t,e,r){return!(!t||"MemberExpression"!==t.type||!e||"Identifier"!==e.type||(n(t,r),0))}(l,h,t)||d(e,o,l,h,t,r)||p(e,o,l,h,t,r)||m(l,o,h,t)||y(l,0,h,t)||w(l,t)||function(t,e,r){return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type||(n(t,r),0))}(l,0,t)||function(t,e,r,s){return!(!e||"UnionTypeAnnotation"!==e.type&&"TSUnionType"!==e.type||(a(t,s),0))}(o,l,0,t)||x(l,s,t,i)||function(t,e,r,s,i){return!!(r&&"ImportSpecifier"===r.type&&e&&"ImportDeclaration"===e.type&&c(t,i.locEnd(s)))&&(a(r,s),!0)}(e,l,o,t,r)||function(t,e){return!(!t||"AssignmentPattern"!==t.type||(n(t,e),0))}(l,t)||f(e,l,o,t,r))}(t,e,r,s,i))}function C(t,e,r,s,i){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,h={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,options:r};return!(!k.some((t=>t(h)))&&!function(t,e,r,s,i){const{precedingNode:a,enclosingNode:o,followingNode:c}=t;return!!(g(e,a,o,c,t,r)||function(t,e,r,s,i,a){const o=e&&!l(i,a.locEnd(e),a.locStart(s));return!(e&&o||!t||"ConditionalExpression"!==t.type||!r||(n(r,s),0))}(o,a,c,t,e,r)||w(o,t)||d(e,a,o,c,t,r)||p(e,a,o,c,t,r)||m(o,a,c,t)||y(o,0,c,t)||function(t,e){return!(!t||"LabeledStatement"!==t.type||(n(t,e),0))}(o,t)||function(t,e,r){return!!(e&&"CallExpression"===e.type&&t&&e.callee===t&&e.arguments.length>0)&&(n(e.arguments[0],r),!0)}(a,o,t)||function(t,e){return!(!t||"Property"!==t.type&&"ObjectProperty"!==t.type||(n(t,e),0))}(o,t)||x(o,s,t,i)||function(t,e,r){return!(!t||"TypeAlias"!==t.type||(n(t,r),0))}(o,0,t)||function(t,e,r){return!(!t||"VariableDeclarator"!==t.type&&"AssignmentExpression"!==t.type||!e||"ObjectExpression"!==e.type&&"ArrayExpression"!==e.type&&"TemplateLiteral"!==e.type&&"TaggedTemplateExpression"!==e.type||(n(e,r),0))}(o,c,t))}(t,e,r,s,i))}function A(t,e,r,s,c){const{precedingNode:l,enclosingNode:h,followingNode:u}=t,m={text:e,precedingNode:l,enclosingNode:h,followingNode:u,comment:t,options:r};return!(!k.some((t=>t(m)))&&!function(t,e,r,s,c){const{precedingNode:l,enclosingNode:h,followingNode:u}=t;return!!(d(e,l,h,u,t,r)||p(e,l,h,u,t,r)||function(t,e,r){return!(!t||"ObjectProperty"!==t.type&&"Property"!==t.type||!t.shorthand||t.key!==e||"AssignmentPattern"!==t.value.type||(a(t.value.left,r),0))}(h,l,t)||function(t,e,r,s){return!(")"!==(0,i.u2)(t,r,s.locEnd)||(!e||("FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&("ArrowFunctionExpression"!==e.type||"CallExpression"===e.body.type&&0!==e.body.arguments.length)&&"ClassMethod"!==e.type&&"ObjectMethod"!==e.type||0!==e.params.length)&&("CallExpression"!==e.type&&"NewExpression"!==e.type||0!==e.arguments.length)?!e||"MethodDefinition"!==e.type||0!==e.value.params.length||(o(e.value,r),0):(o(e,r),0)))}(e,h,t,r)||f(e,h,l,t,r)||x(h,s,t,c)||function(t,e,r,s){if(!e||"ArrowFunctionExpression"!==e.type)return!1;const i=getNextNonSpaceNonCommentCharacterIndex(t,r,s);return"=>"===t.substr(i,2)&&(o(e,r),!0)}(e,h,t,r)||function(t,e,r,s,n){return!("("!==(0,i.u2)(t,s,n.locEnd)||!r||!e||"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ClassMethod"!==e.type&&"MethodDefinition"!==e.type&&"ObjectMethod"!==e.type||(a(r,s),0))}(e,h,l,t,r)||function(t,e,r,s,i){return!(!e||"TSMappedType"!==e.type||(s&&"TSTypeParameter"===s.type&&s.name?(n(s.name,i),0):!r||"TSTypeParameter"!==r.type||!r.constraint||(a(r.constraint,i),0)))}(0,h,l,u,t)||function(t,e){return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label||(a(t,e),0))}(h,t))}(t,e,r,s,c))}function K(t){return"BlockComment"===t.type}const{hardline:L,join:I}=s.doc.builders;function N(t,e){const r=t.getValue();switch(r.type){case"BlockComment":if(function(t){const e=`*${t.value}*`.split("\n");return e.length>1&&e.every((t=>"*"===t.trim()[0]))}(r)){const t=function(t){const e=t.value.split("\n");return["/*",I(L,e.map(((t,r)=>0===r?t.trimEnd():` ${r<e.length-1?t.trim():t.trimStart()}`))),"*/"]}(r);return r.trailing&&!s.util.hasNewline(e.originalText,e.locStart(r),{backwards:!0})?[L,t]:t}return`/*${r.value}*/`;case"LineComment":return`//${r.value.trimEnd()}`;default:throw new Error(`Not a comment: ${JSON.stringify(r)}`)}}},1331:(t,e,r)=>{r.d(e,{NE:()=>o,OU:()=>i,d7:()=>n,u2:()=>a});var s=r(838);const i=(0,r(4523).vm)("^2.3.0");function n(t,e){return i?s.util.isNextLineEmptyAfterIndex(t,e):s.util.isNextLineEmpty(t,e)}function a(t,e,r){return i?t.charAt(s.util.getNextNonSpaceNonCommentCharacterIndex(t,e,r)):s.util.getNextNonSpaceNonCommentCharacter(t,r(e))}function o(t,e,r){return i?r===t.getParentNode()[e].length-1:t.isLast}},2101:(t,e,r)=>{function s(t){console.warn(`\r[prettier-solidity] ${t}`)}r.d(e,{o:()=>s})},4523:(t,e,r)=>{r.d(e,{Tz:()=>a,vm:()=>n,yX:()=>o});var s=r(838),i=r(7638);const n=t=>i(s.version,t);function a(t,e){const r={quote:'"',regex:/"/g},i={quote:"'",regex:/'/g},n=e.singleQuote?i:r,a=n===i?r:i;let o=!1;(t.includes(n.quote)||t.includes(a.quote))&&(o=(t.match(n.regex)||[]).length>(t.match(a.regex)||[]).length);const c=o?a.quote:n.quote;return s.util.makeString(t,c)}function o(t){return t?.comments?.length>0&&t.comments.some((t=>"prettier-ignore"===t.value.trim()))}},7671:(t,e,r)=>{function s(t,e){return e.range?e.range[t]:e.expression?.range?e.expression.range[t]:null}r.d(e,{A:()=>i});const i={locEnd:t=>s(1,t),locStart:t=>s(0,t)}},4242:(t,e,r)=>{r.d(e,{A:()=>c});var s=r(3121),i=r(6170),n=r(7638),a=r(2101);const o=(t,e)=>"BinaryOperation"===t.type&&e.includes(t.operator)?{type:"TupleExpression",components:[t],isArray:!1}:t,c=function(t,e,r=e){const c=i(r.compiler),l=s.parse(t,{loc:!0,range:!0,comments:!0});return s.visit(l,{PragmaDirective(t){"solidity"===t.name&&c&&(n(c,t.value)||(0,a.o)(`The compiler option is set to '${r.compiler}', which does not satisfy 'pragma solidity ${t.value}'.`))},ModifierDefinition(t){t.parameters||(t.parameters=[])},FunctionDefinition(t){t.isConstructor||t.modifiers.forEach((t=>{0===t.arguments?.length&&(t.arguments=null)}))},ForStatement(t){t.initExpression&&(t.initExpression.omitSemicolon=!0),t.loopExpression.omitSemicolon=!0},HexLiteral(t){const e=t.value.slice(4,-1);t.value=r.singleQuote?`hex'${e}'`:`hex"${e}"`},Conditional(t){if(r.experimentalTernaries)for(;"TupleExpression"===t.condition.type&&!t.condition.isArray&&1===t.condition.components.length&&"Conditional"!==t.condition.components[0].type;)[t.condition]=t.condition.components},BinaryOperation(t){switch(t.operator){case"+":case"-":t.left=o(t.left,["%"]),t.right=o(t.right,["%"]);break;case"*":t.left=o(t.left,["/","%"]);break;case"/":t.left=o(t.left,["*","%"]);break;case"%":t.left=o(t.left,["*","/","%"]);break;case"**":if(!c)break;if(n(c,">=0.8.0")){t.right=o(t.right,["**"]);break}if("BinaryOperation"===t.right.type&&"**"===t.right.operator){const e={type:"BinaryOperation",operator:"**",left:t.left,right:t.right.left};t.left={type:"TupleExpression",components:[e],isArray:!1},t.right=t.right.right}break;case"<<":case">>":t.left=o(t.left,["+","-","*","/","**","<<",">>"]),t.right=o(t.right,["+","-","*","/","**"]);break;case"&":t.left=o(t.left,["+","-","*","/","**","<<",">>"]),t.right=o(t.right,["+","-","*","/","**","<<",">>"]);break;case"|":t.left=o(t.left,["+","-","*","/","**","<<",">>","&","^"]),t.right=o(t.right,["+","-","*","/","**","<<",">>","&","^"]);break;case"^":t.left=o(t.left,["+","-","*","/","**","<<",">>","&"]),t.right=o(t.right,["+","-","*","/","**","<<",">>","&"]);break;case"||":t.left=o(t.left,["&&"]),t.right=o(t.right,["&&"])}}}),l}},1071:(t,e,r)=>{r.d(e,{A:()=>Os});var s={};r.r(s),r.d(s,{arithmetic:()=>H,assignment:()=>z,bit:()=>W,comparison:()=>M,exponentiation:()=>Z,logical:()=>st,shift:()=>it});var i={};r.r(i),r.d(i,{ArrayTypeName:()=>n,AssemblyAssignment:()=>c,AssemblyBlock:()=>b,AssemblyCall:()=>_,AssemblyCase:()=>E,AssemblyFor:()=>S,AssemblyFunctionDefinition:()=>R,AssemblyIf:()=>C,AssemblyLocalDefinition:()=>K,AssemblyMemberAccess:()=>L,AssemblyStackAssignment:()=>N,AssemblySwitch:()=>P,BinaryOperation:()=>nt,Block:()=>ct,BooleanLiteral:()=>lt,Break:()=>ht,BreakStatement:()=>ut,CatchClause:()=>pt,Conditional:()=>vt,Continue:()=>bt,ContinueStatement:()=>_t,ContractDefinition:()=>Ct,CustomErrorDefinition:()=>Kt,DecimalNumber:()=>Lt,DoWhileStatement:()=>Pt,ElementaryTypeName:()=>Yt,EmitStatement:()=>Ft,EnumDefinition:()=>Bt,EnumValue:()=>Vt,EventDefinition:()=>jt,ExpressionStatement:()=>Gt,FileLevelConstant:()=>zt,ForStatement:()=>re,FunctionCall:()=>ce,FunctionDefinition:()=>Te,FunctionTypeName:()=>Le,HexLiteral:()=>Oe,HexNumber:()=>Pe,Identifier:()=>qe,IfStatement:()=>Ve,ImportDirective:()=>We,IndexAccess:()=>er,IndexRangeAccess:()=>rr,InheritanceSpecifier:()=>ir,InlineAssemblyStatement:()=>nr,LabelDefinition:()=>cr,Mapping:()=>hr,MemberAccess:()=>yr,ModifierDefinition:()=>Tr,ModifierInvocation:()=>kr,NameValueExpression:()=>Rr,NameValueList:()=>Kr,NewExpression:()=>Lr,NumberLiteral:()=>Ir,PragmaDirective:()=>Nr,ReturnStatement:()=>Yr,RevertStatement:()=>Fr,SourceUnit:()=>Ur,StateVariableDeclaration:()=>$r,StringLiteral:()=>Wr,StructDefinition:()=>Qr,ThrowStatement:()=>Jr,TryStatement:()=>es,TupleExpression:()=>is,TypeDefinition:()=>ns,UnaryOperation:()=>as,UncheckedStatement:()=>cs,UserDefinedTypeName:()=>ls,UsingForDeclaration:()=>ds,VariableDeclaration:()=>Es,VariableDeclarationStatement:()=>ks,WhileStatement:()=>Ls});const n={print:({node:t,path:e,print:r})=>[e.call(r,"baseTypeName"),"[",t.length?e.call(r,"length"):"","]"]};var a=r(838);const{join:o}=a.doc.builders,c={print:({path:t,print:e})=>[o(", ",t.map(e,"names"))," := ",t.call(e,"expression")]};var l=r(1331);const{group:h,indent:u,join:d,line:p,softline:m,hardline:y}=a.doc.builders,f=(t,e,r,s=(()=>!0))=>{if(!t.comments)return"";const i=d(p,e.map((t=>{const e=t.getValue();return e.trailing||e.leading||e.printed?null:s(e)?(e.printed=!0,r.printer.printComment(t,r)):null}),"comments").filter(Boolean));return l.OU?i.parts:i};function g(t,e,r,s){const i=[];return t.each(((t,n)=>{const a=t.getValue(),o=a.type;0!==i.length&&"LabelDefinition"!==o&&i.push(y),i.push(s(t)),!(0,l.NE)(t,e,n)&&(0,l.d7)(r.originalText,r.locEnd(a)+1)&&i.push(y)}),e),i}const w=(t,{firstSeparator:e=m,lastSeparator:r=e,grouped:s=!0}={})=>{const i=[u([e,t]),r];return s?h(i):i},x=(t,{firstSeparator:e,separator:r=[",",p],lastSeparator:s,grouped:i}={})=>w(d(r,t),{firstSeparator:e,lastSeparator:s,grouped:i}),{hardline:v}=a.doc.builders,b={print:({node:t,options:e,path:r,print:s})=>0!==t.operations.length||t.comments?["{",w([g(r,"operations",e,s),f(t,r,e)],{firstSeparator:v,grouped:!1}),"}"]:"{}"},_={print:({node:t,path:e,print:r,options:s})=>0===t.arguments.length&&")"!==s.originalText.charAt(s.locEnd(t))?t.functionName:[t.functionName,"(",x(e.map(r,"arguments")),")"]},E={print:({node:t,path:e,print:r})=>[t.default?"default":["case ",e.call(r,"value")]," ",e.call(r,"block")]},{join:T}=a.doc.builders,S={print:({path:t,print:e})=>T(" ",["for",t.call(e,"pre"),t.call(e,"condition"),t.call(e,"post"),t.call(e,"body")])},{line:k}=a.doc.builders,R={print:({node:t,path:e,print:r})=>["function ",t.name,"(",x(e.map(r,"arguments")),")",0===t.returnArguments.length?" ":w(["->",x(e.map(r,"returnArguments"),{firstSeparator:k,lastSeparator:""})],{firstSeparator:k}),e.call(r,"body")]},C={print:({path:t,print:e})=>["if ",t.call(e,"condition")," ",t.call(e,"body")]},{line:A}=a.doc.builders,K={print:({node:t,path:e,print:r})=>{const s=["let",x(e.map(r,"names"),{firstSeparator:A})];return null!==t.expression&&(s.push(":= "),s.push(e.call(r,"expression"))),s}},L={print:({path:t,print:e})=>[t.call(e,"expression"),".",t.call(e,"memberName")]},{hardline:I}=a.doc.builders,N={print:({node:t,path:e,print:r})=>[e.call(r,"expression"),I,"=: ",t.name]},{hardline:D,join:O}=a.doc.builders,P={print:({path:t,print:e})=>["switch ",t.call(e,"expression"),D,O(D,t.map(e,"cases"))]},{group:q,indent:Y,line:F}=a.doc.builders,M={match:t=>["<",">","<=",">=","==","!="].includes(t),print:(t,e,r)=>{const s=(t=>e=>{let r=t.getNode();for(let s=0;;s+=1){const i=t.getParentNode(s);if("ReturnStatement"===i.type)return e;if("IfStatement"===i.type)return e;if("ForStatement"===i.type)return e;if("WhileStatement"===i.type)return e;if("BinaryOperation"!==i.type)return Y(e);if(r===i.right)return e;r=i}})(e),i=[t.operator,F,e.call(r,"right")],n="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return q([e.call(r,"left")," ",s(n?q(i):i)])}},{group:U,line:B,indent:V}=a.doc.builders,H={match:t=>["+","-","*","/","%"].includes(t),print:(t,e,r)=>{const s=(t=>e=>{const r=t.getParentNode();return"BinaryOperation"!==r.type||M.match(r.operator)?U(e):e})(e),i=(t=>e=>{let r=t.getNode();for(let s=0;;s+=1){const i=t.getParentNode(s);if("ReturnStatement"===i.type)return e;if("BinaryOperation"!==i.type||M.match(i.operator))return V(e);if(r===i.right)return e;r=i}})(e),n=[t.operator,B,e.call(r,"right")],a="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return s([e.call(r,"left")," ",i(a?U(n):n)])}},{group:j,line:$,indent:G}=a.doc.builders,z={match:t=>["=","|=","^=","&=","<<=",">>=","+=","-=","*=","/=","%="].includes(t),print:(t,e,r)=>[e.call(r,"left")," ",t.operator,"BinaryOperation"===t.right.type?j(G([$,e.call(r,"right")])):[" ",e.call(r,"right")]]},W={match:t=>["&","|","^"].includes(t),print:H.print},{group:X,indent:Q,line:J}=a.doc.builders,Z={match:t=>"**"===t,print:(t,e,r)=>{const s=[" ",t.operator,J,e.call(r,"right")],i="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return X([e.call(r,"left"),Q(i?X(s):s)])}},{group:tt,line:et,indent:rt}=a.doc.builders,st={match:t=>["&&","||"].includes(t),print:(t,e,r,s)=>{const i=(t=>e=>"BinaryOperation"===t.getParentNode().type?e:tt(e))(e),n=((t,e)=>r=>{let s=t.getNode();for(let i=0;;i+=1){const n=t.getParentNode(i);if("ReturnStatement"===n.type)return r;if("IfStatement"===n.type)return r;if("WhileStatement"===n.type)return r;if(e.experimentalTernaries&&"Conditional"===n.type&&n.condition===s)return r;if("BinaryOperation"!==n.type)return rt(r);if(s===n.right)return r;s=n}})(e,s),a=[t.operator,et,e.call(r,"right")],o="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return i([e.call(r,"left")," ",n(o?tt(a):a)])}},it={match:t=>["<<",">>"].includes(t),print:H.print},nt={print:({node:t,path:e,print:r,options:i})=>{const n=Object.values(s).find((e=>e.match(t.operator)));if(void 0===n)throw new Error(`Assertion error: no printer found for operator ${JSON.stringify(t.operator)}`);return n.print(t,e,r,i)}},{hardline:at,indent:ot}=a.doc.builders,ct={print:({node:t,options:e,path:r,print:s})=>0!==t.statements.length||t.comments?["{",ot([at,g(r,"statements",e,s),f(t,r,e)]),at,"}"]:"{}"},lt={print:({node:t})=>t.value?"true":"false"},ht={print:()=>"break"},ut={print:()=>"break;"},dt=(t,e,r)=>t.parameters?[t.kind||"","(",x(e.map(r,"parameters")),") "]:"",pt={print:({node:t,path:e,print:r})=>["catch ",dt(t,e,r),e.call(r,"body")]},{group:mt,hardline:yt,ifBreak:ft,indent:gt,line:wt,softline:xt}=a.doc.builders,vt={print:({node:t,path:e,print:r,options:s})=>s.experimentalTernaries?((t,e,r,s)=>{const i=e.getParentNode(),n="Conditional"===i.type,a=n&&i.trueExpression===t,o="Conditional"===t.falseExpression.type,c=e.call(r,"condition"),l=mt(["TupleExpression"===t.condition.type?c:ft(["(",w(c),")"],c)," ?"]),h=gt([a?yt:wt,e.call(r,"trueExpression")]),u=mt([l,h],{id:Symbol("Conditional.trueExpression")});let d=" ";!o&&(s.tabWidth>2||s.useTabs)&&(d=s.useTabs?"\t":" ".repeat(s.tabWidth-1));const p=e.call(r,"falseExpression"),m=[n?yt:wt,":",o?[" ",p]:ft([d,gt(p)],[" ",p],{groupId:u.id})],y=mt([u,m]);return"VariableDeclarationStatement"===i.type?gt([xt,y]):y})(t,e,r,s):((t,e)=>mt([t.call(e,"condition"),gt(["Conditional"===t.getParentNode().type?yt:wt,"? ",t.call(e,"trueExpression"),wt,": ",t.call(e,"falseExpression")])]))(e,r)},bt={print:()=>"continue"},_t={print:()=>"continue;"},{group:Et,line:Tt,hardline:St}=a.doc.builders,kt=(t,e,r)=>t.baseContracts.length>0?[" is",x(e.map(r,"baseContracts"),{firstSeparator:Tt})]:Tt,Rt=(t,e,r,s)=>{const i=f(t,e,r);return t.subNodes.length>0||i?.length?w([g(e,"subNodes",r,s),i],{firstSeparator:St,grouped:!1}):""},Ct={print:({node:t,options:e,path:r,print:s})=>[Et(["abstract"===t.kind?"abstract contract":t.kind," ",t.name,kt(t,r,s),"{"]),Rt(t,r,e,s),"}"]},At=(t,e,r)=>t.parameters?.length>0?x(e.map(r,"parameters")):"",Kt={print:({node:t,path:e,print:r})=>["error ",t.name,"(",At(t,e,r),");"]},Lt={print:({node:t})=>t.value},{group:It,indent:Nt,line:Dt}=a.doc.builders,Ot=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")," "]:It([Nt([Dt,e.call(r,"body")]),Dt]),Pt={print:({node:t,path:e,print:r})=>["do",Ot(t,e,r),"while (",w(e.call(r,"condition")),");"]},qt=t=>t.stateMutability?.length>0?[" ",t.stateMutability]:"",Yt={print:({node:t})=>[t.name,qt(t)]},Ft={print:({path:t,print:e})=>["emit ",t.call(e,"eventCall"),";"]},{group:Mt,hardline:Ut}=a.doc.builders,Bt={print:({node:t,path:e,print:r})=>Mt(["enum ",t.name," {",x(e.map(r,"members"),{firstSeparator:Ut}),"}"])},Vt={print:({node:t})=>t.name},Ht=(t,e,r)=>t.parameters?.length>0?x(e.map(r,"parameters")):"",jt={print:({node:t,path:e,print:r})=>["event ",t.name,"(",Ht(t,e,r),")",t.isAnonymous?" anonymous":"",";"]},{hardline:$t}=a.doc.builders,Gt={print:({node:t,options:e,path:r,print:s})=>{const i=[];if("IfStatement"===r.getParentNode().type&&t.comments?.length){const s=f(t,r,e);s?.length&&(i.push(s),i.push($t))}return i.push(r.call(s,"expression")),i.push(t.omitSemicolon?"":";"),i}},zt={print:({node:t,path:e,print:r})=>[e.call(r,"typeName")," constant ",t.name," = ",e.call(r,"initialValue"),";"]},{group:Wt,indent:Xt,line:Qt}=a.doc.builders,Jt=(t,e,r)=>t.initExpression?e.call(r,"initExpression"):"",Zt=(t,e,r)=>t.conditionExpression?e.call(r,"conditionExpression"):"",te=(t,e,r)=>t.loopExpression.expression?e.call(r,"loopExpression"):"",ee=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:Wt(Xt([Qt,e.call(r,"body")])),re={print:({node:t,path:e,print:r})=>["for (",x([Jt(t,e,r),Zt(t,e,r),te(t,e,r)],{separator:t.initExpression||t.conditionExpression||t.loopExpression.expression?[";",Qt]:";"}),")",ee(t,e,r)]},{group:se,indentIfBreak:ie,label:ne,line:ae,softline:oe}=a.doc.builders,ce={print:({node:t,path:e,print:r,options:s})=>{let i=e.call(r,"expression"),n=")";return t.arguments?.length>0&&(n=t.identifiers?.length>0?((t,e,r)=>{const s=t.map(e,"identifiers");return["{",x(t.map(e,"arguments").map(((t,e)=>[s[e],": ",t])),{firstSeparator:r.bracketSpacing?ae:oe,lastSeparator:[r.bracketSpacing?ae:oe,"})"]})]})(e,r,s):((t,e)=>x(t.map(e,"arguments"),{lastSeparator:[oe,")"]}))(e,r)),"MemberAccessChain"===i.label?(i=se(i.contents,{id:Symbol("FunctionCall.expression")}),n=ie(n,{groupId:i.id}),ne("MemberAccessChain",[i,"(",n])):[i,"(",n].flat()}},{dedent:le,group:he,indent:ue,join:de,line:pe}=a.doc.builders,me=(t,e)=>t.isConstructor&&!t.name?"constructor":t.name?`function ${t.name}`:t.isReceiveEther?"receive":{fallback:"fallback",function:"function"}[e.originalText.slice(e.locStart(t),e.locStart(t)+8)],ye=(t,e,r,s,i)=>{if(e[t]?.length>0)return x(r.map(s,t),{grouped:!1});if(e.comments?.length>0){const t=f(e,r,i,(t=>")"===(0,l.u2)(i.originalText,t,i.locEnd)));return t.length>0?w(t):""}return""},fe=t=>t.visibility&&"default"!==t.visibility?[pe,t.visibility]:"",ge=t=>t.isVirtual?[pe,"virtual"]:"",we=(t,e,r)=>t.override?0===t.override.length?[pe,"override"]:[pe,"override(",x(e.map(r,"override")),")"]:"",xe=t=>t.stateMutability?[pe,t.stateMutability]:"",ve=(t,e,r)=>t.modifiers.length>0?[pe,de(pe,e.map(r,"modifiers"))]:"",be=(t,e,r,s)=>t.returnParameters?[pe,"returns (",he(ye("returnParameters",t,e,r,s)),")"]:"",_e=t=>t.body?le(pe):";",Ee=(t,e,r)=>t.body?e.call(r,"body"):"",Te={print:({node:t,path:e,print:r,options:s})=>[he([me(t,s),"(",ye("parameters",t,e,r,s),")",ue(he([f(t,e,s),fe(t),xe(t),ge(t),we(t,e,r),ve(t,e,r),be(t,e,r,s),_e(t)]))]),Ee(t,e,r)]},{group:Se,indent:ke,line:Re}=a.doc.builders,Ce=(t,e,r)=>t.returnTypes.length>0?[Re,"returns (",x(e.map(r,"returnTypes")),")"]:"",Ae=t=>t.visibility&&"default"!==t.visibility?[Re,t.visibility]:"",Ke=t=>t.stateMutability&&"default"!==t.stateMutability?[Re,t.stateMutability]:"",Le={print:({node:t,path:e,print:r})=>Se(["function(",x(e.map(r,"parameterTypes"),{grouped:!1}),")",ke(Se([Ae(t),Ke(t),Ce(t,e,r)]))])};var Ie=r(4523);const{join:Ne,hardline:De}=a.doc.builders,Oe={print:({node:t,options:e})=>{const r=t.parts.map((t=>`hex${(0,Ie.Tz)(t,e)}`));return Ne(De,r)}},Pe={print:({node:t})=>t.value},qe={print:({node:t})=>t.name},{group:Ye,hardline:Fe,indent:Me,line:Ue}=a.doc.builders,Be=(t,e,r)=>"Block"===t.falseBody.type||"IfStatement"===t.falseBody.type?[" ",e.call(r,"falseBody")]:Ye(Me([Ue,e.call(r,"falseBody")])),Ve={print:({node:t,options:e,path:r,print:s})=>{const i=(t.comments||[]).filter((t=>!t.leading&&!t.trailing)),n=[];return n.push("if (",w(r.call(s,"condition")),")"),n.push(((t,e,r)=>{if("Block"===t.trueBody.type)return[" ",e.call(r,"trueBody")];const s="IfStatement"===t.trueBody.type;return Ye(Me([s?Fe:Ue,e.call(r,"trueBody")]))})(t,r,s)),i.length&&t.falseBody&&(n.push(Fe),n.push(f(t,r,e))),n.push(((t,e,r,s)=>t.falseBody?["Block"===t.trueBody.type&&0===s.length?" ":Fe,"else",Be(t,e,r)]:"")(t,r,s,i)),n}};var He=r(6170),je=r(7638);const{group:$e,line:Ge,softline:ze}=a.doc.builders,We={print:({node:t,options:e})=>{const r=(0,Ie.Tz)(t.path,e);let s;if(t.unitAlias)s=[r," as ",t.unitAlias];else if(t.symbolAliases){const i=He(e.compiler),n=t.symbolAliases.map((([t,e])=>e?`${t} as ${e}`:t));let a,o;i&&je(i,">=0.7.4")?(a=e.bracketSpacing?Ge:ze,o=[",",Ge]):(a=e.bracketSpacing?" ":"",o=", "),s=["{",x(n,{firstSeparator:a,separator:o}),"} from ",r]}else s=r;return $e(["import ",s,";"])}},{group:Xe,indent:Qe,indentIfBreak:Je,label:Ze,softline:tr}=a.doc.builders,er={print:({path:t,print:e})=>{let r=t.call(e,"base"),s=Xe([Qe([tr,t.call(e,"index")]),tr,"]"]);return"MemberAccessChain"===r.label?(r=Xe(r.contents,{id:Symbol("IndexAccess.base")}),s=Je(s,{groupId:r.id}),Ze("MemberAccessChain",[r,"[",s])):[r,"[",s].flat()}},rr={print:({node:t,path:e,print:r})=>[e.call(r,"base"),"[",t.indexStart?e.call(r,"indexStart"):"",":",t.indexEnd?e.call(r,"indexEnd"):"","]"]},sr=(t,e,r)=>t.arguments?.length?["(",x(e.map(r,"arguments")),")"]:"",ir={print:({node:t,path:e,print:r})=>[e.call(r,"baseName"),sr(t,e,r)]},nr={print:({node:t,path:e,print:r,options:s})=>["assembly ",t.language?`${(0,Ie.Tz)(t.language,s)} `:"",t.flags?.length>0?["(",x(t.flags.map((t=>(0,Ie.Tz)(t,s)))),") "]:"",e.call(r,"body")]},{dedent:ar,line:or}=a.doc.builders,cr={print:({node:t})=>[ar(or),t.name,":"]},lr=(t,e,r,s)=>e[`${t}Name`]?[r.call(s,`${t}Type`)," ",r.call(s,`${t}Name`)]:r.call(s,`${t}Type`),hr={print:({node:t,path:e,print:r})=>["mapping(",lr("key",t,e,r)," => ",lr("value",t,e,r),")"]},{group:ur,indent:dr,label:pr,softline:mr}=a.doc.builders,yr={print:({node:t,path:e,print:r})=>{let s=e.call(r,"expression");Array.isArray(s)&&(s=s.flat());const i=[s,pr("separator",[mr,"."]),t.memberName].flat();return((t,e)=>{let r=0,s=t,i=e.getParentNode(r);for(;i&&["FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(i.type);){switch(i.type){case"MemberAccess":return!1;case"IndexAccess":if(s!==i.base)return!0;break;case"FunctionCall":if(s!==i.expression)return!0}r+=1,s=i,i=e.getParentNode(r)}return!0})(t,e)?(t=>{const e=t.findIndex((t=>"separator"===t.label)),r=t.slice(0,e),s=ur(dr(t.slice(e)));return pr("MemberAccessChain",ur([r,s]))})(i):i}},{dedent:fr,group:gr,indent:wr,line:xr}=a.doc.builders,vr=(t,e,r)=>t.parameters?.length>0?["(",x(e.map(r,"parameters"),{separator:[",",xr]}),")"]:"()",br=t=>t.isVirtual?[xr,"virtual"]:"",_r=(t,e,r)=>t.override?0===t.override.length?[xr,"override"]:[xr,"override(",x(e.map(r,"override")),")"]:"",Er=(t,e,r)=>t.body?t.isVirtual?gr(e.call(r,"body")):[e.call(r,"body")]:";",Tr={print:({node:t,path:e,print:r})=>["modifier ",t.name,vr(t,e,r),gr(wr([br(t),_r(t,e,r),t.body?fr(xr):""])),Er(t,e,r)]},Sr=(t,e,r,s)=>t.arguments?t.arguments.length>0?["(",x(e.map(r,"arguments")),")"]:"()":t.comments?.some((t=>!t.leading&&!t.trailing&&!t.printed))?["(",f(t,e,s),")"]:"",kr={print:({node:t,path:e,print:r,options:s})=>[t.name,Sr(t,e,r,s)]},Rr={print:({path:t,print:e})=>[t.call(e,"expression"),"{",t.call(e,"arguments"),"}"]},{line:Cr,softline:Ar}=a.doc.builders,Kr={print:({node:t,path:e,print:r,options:s})=>x(e.map(r,"arguments").map(((e,r)=>[t.names[r],": ",e])),{firstSeparator:s.bracketSpacing?Cr:Ar})},Lr={print:({path:t,print:e})=>["new ",t.call(e,"typeName")]},Ir={print:({node:t})=>t.subdenomination?[t.number," ",t.subdenomination]:t.number},Nr={print:({node:t})=>["pragma ",t.name," ",t.value,";"]},{group:Dr,indent:Or,line:Pr}=a.doc.builders,qr=(t,e,r,s)=>t.expression?"TupleExpression"===t.expression.type||s.experimentalTernaries&&"Conditional"===t.expression.type?[" ",e.call(r,"expression")]:Dr(Or([Pr,e.call(r,"expression")])):"",Yr={print:({node:t,path:e,print:r,options:s})=>["return",qr(t,e,r,s),";"]},Fr={print:({path:t,print:e})=>["revert ",t.call(e,"revertCall"),";"]},{line:Mr}=a.doc.builders,Ur={print:({options:t,path:e,print:r})=>[g(e,"children",t,r),t.parentParser?"":Mr]},{group:Br,indent:Vr,line:Hr}=a.doc.builders,jr=(t,e,r)=>t.initialValue?"TupleExpression"===t.initialValue.type?[" = ",e.call(r,"initialValue")]:Br([" =",Vr([Hr,e.call(r,"initialValue")])]):"",$r={print:({node:t,path:e,print:r})=>[...e.map(r,"variables"),jr(t,e,r),";"]},{join:Gr,hardline:zr}=a.doc.builders,Wr={print:({node:t,options:e})=>{const r=t.parts.map(((r,s)=>(t.isUnicode[s]?"unicode":"")+(0,Ie.Tz)(r,e)));return Gr(zr,r)}},{hardline:Xr}=a.doc.builders,Qr={print:({node:t,path:e,print:r})=>["struct ",t.name," {",t.members.length>0?x(e.map(r,"members"),{firstSeparator:Xr,separator:[";",Xr],lastSeparator:[";",Xr]}):"","}"]},Jr={print:()=>"throw;"},{join:Zr,line:ts}=a.doc.builders,es={print:({node:t,path:e,print:r})=>{let s=["try",w(e.call(r,"expression"),{firstSeparator:ts})];const i=((t,e,r)=>t.returnParameters?["returns (",x(e.map(r,"returnParameters")),")"]:"")(t,e,r);return i&&(s=s.concat([i," "])),s=s.concat([e.call(r,"body")," ",Zr(" ",e.map(r,"catchClauses"))]),s}},{group:rs}=a.doc.builders,ss=(t,e,r)=>1===t.components?.length&&"BinaryOperation"===t.components[0].type?e.map(r,"components"):x(e.map(r,"components")),is={print:({node:t,path:e,print:r})=>rs([t.isArray?"[":"(",ss(t,e,r),t.isArray?"]":")"])},ns={print:({node:t})=>["type ",t.name," is ",t.definition.name,";"]},as={print:({node:t,path:e,print:r})=>t.isPrefix?[t.operator,"delete"===t.operator?" ":"",e.call(r,"subExpression")]:[e.call(r,"subExpression"),t.operator]},{group:os}=a.doc.builders,cs={print:({path:t,print:e})=>os(["unchecked ",t.call(e,"block")])},ls={print:({node:t})=>t.namePath},{line:hs,softline:us}=a.doc.builders,ds={print:({node:t,path:e,print:r,options:s})=>["using ",t.functions?.length?["{",x(t.functions.map(((e,r)=>t.operators[r]?[e," as ",t.operators[r]]:e)),{firstSeparator:s.bracketSpacing?hs:us}),"}"]:t.libraryName," for ",t.typeName?e.call(r,"typeName"):"*",t.isGlobal?" global;":";"]},{group:ps,indent:ms,line:ys}=a.doc.builders,fs=t=>t.isIndexed?" indexed":"",gs=t=>t.visibility&&"default"!==t.visibility?[ys,t.visibility]:"",ws=t=>t.isDeclaredConst?" constant":"",xs=t=>t.storageLocation&&"default"!==t.visibility?[ys,t.storageLocation]:"",vs=t=>t.isImmutable?" immutable":"",bs=(t,e,r)=>t.override?0===t.override.length?[ys,"override"]:[ys,"override(",x(e.map(r,"override")),")"]:"",_s=t=>t.name?[" ",t.name]:"",Es={print:({node:t,path:e,print:r})=>t.typeName?ps([e.call(r,"typeName"),ms([fs(t),gs(t),ws(t),xs(t),vs(t),bs(t,e,r),_s(t)])]):t.name},{group:Ts,indentIfBreak:Ss}=a.doc.builders,ks={print:({node:t,path:e,print:r})=>{const s=0===t.variables.filter((t=>t?.typeName)).length,i=Ts([s?"var ":"",(n=e.map(r,"variables"),a=t.variables.length>1||s,a?["(",x(n),")"]:n)],{id:Symbol("VariableDeclarationStatement.variables")});var n,a;const o=((t,e,r)=>t.initialValue?[" = ",e.call(r,"initialValue")]:"")(t,e,r);return Ts([i,Ss(o,{groupId:i.id}),t.omitSemicolon?"":";"])}},{group:Rs,indent:Cs,line:As}=a.doc.builders,Ks=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:Rs(Cs([As,e.call(r,"body")])),Ls={print:({node:t,path:e,print:r})=>["while (",w(e.call(r,"condition")),")",Ks(t,e,r)]};var Is=r(2101);const Ns=function t(e){const r=e.getValue();null!==r&&"object"==typeof r&&Object.keys(r).forEach((s=>{switch(s){case"loc":case"range":break;case"comments":e.each((t=>{t.getValue().printed=!0}),"comments");break;default:if("object"==typeof r[s]){if(Array.isArray(r[s]))return void e.each(t,s);e.call(t,s)}}}))},Ds=function(t){let e;return()=>(void 0===e&&((0,Is.o)("'solidity-parse' has been deprecated, please use 'slang-solidity'."),e=!0),e)}(),Os=function(t,e,r){Ds();const s=t.getValue();if(null===s)return"";if(!(s.type in i))throw new Error(`Unknown type: ${JSON.stringify(s.type)}`);return(0,Ie.yX)(s)?(Ns(t),e.originalText.slice(e.locStart(s),e.locEnd(s)+1)):i[s.type].print({node:s,options:e,path:t,print:r})}}},o={};function c(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return a[t].call(r.exports,r,r.exports,c),r.exports}t="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",e="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",s=t=>{t&&t.d<1&&(t.d=1,t.forEach((t=>t.r--)),t.forEach((t=>t.r--?t.r++:t())))},c.a=(i,n,a)=>{var o;a&&((o=[]).d=-1);var c,l,h,u=new Set,d=i.exports,p=new Promise(((t,e)=>{h=e,l=t}));p[e]=d,p[t]=t=>(o&&t(o),u.forEach(t),p.catch((t=>{}))),i.exports=p,n((i=>{var n;c=(i=>i.map((i=>{if(null!==i&&"object"==typeof i){if(i[t])return i;if(i.then){var n=[];n.d=0,i.then((t=>{a[e]=t,s(n)}),(t=>{a[r]=t,s(n)}));var a={};return a[t]=t=>t(n),a}}var o={};return o[t]=t=>{},o[e]=i,o})))(i);var a=()=>c.map((t=>{if(t[r])throw t[r];return t[e]})),l=new Promise((e=>{(n=()=>e(a)).r=0;var r=t=>t!==o&&!u.has(t)&&(u.add(t),t&&!t.d&&(n.r++,t.push(n)));c.map((e=>e[t](r)))}));return n.r?l:a()}),(t=>(t?h(p[r]=t):l(d),s(o)))),o&&o.d<0&&(o.d=0)},c.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return c.d(e,{a:e}),e},n=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,c.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var r=Object.create(null);c.r(r);var s={};i=i||[null,n({}),n([]),n(n)];for(var a=2&e&&t;"object"==typeof a&&!~i.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>t[e]));return s.default=()=>t,c.d(r,s),r},c.d=(t,e)=>{for(var r in e)c.o(e,r)&&!c.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),c.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),c.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;if("string"==typeof import.meta.url&&(t=import.meta.url),!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=t})(),c.b=void 0;var l=c(8156),h=(l=await l).A;export{h as default};var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{};u.prettierPlugins=u.prettierPlugins||{},u.prettierPlugins.solidity=h;
1
+ var t,e,r,s,i={3121:function(t,e,r){var s;"undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:"undefined"!=typeof self&&self,s=()=>{var t=(()=>{var t=Object.defineProperty,e={};((e,r)=>{for(var s in r)t(e,s,{get:r[s],enumerable:!0})})(e,{ParserError:()=>Ie,parse:()=>De,tokenize:()=>Ne,visit:()=>Oe});var r={92:()=>{}},s={};function i(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={exports:{}};return r[t](n,n.exports,i),n.exports}i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};(()=>{i.d(n,{dx:()=>z,q2:()=>At,FO:()=>Ee,xf:()=>ke,Gy:()=>Ke,s4:()=>Nt,c7:()=>De,_7:()=>ce,tx:()=>_e,gp:()=>xe,cK:()=>Ct,zs:()=>ge,AV:()=>ke,Xp:()=>x,VS:()=>v,ul:()=>G,hW:()=>Yt,x1:()=>Wt,z5:()=>ee,oN:()=>de,TB:()=>pe,u1:()=>me,_b:()=>Pe,$F:()=>se,_T:()=>Fe,db:()=>ie,Zx:()=>te,_x:()=>Pt,r8:()=>q,JI:()=>I,TP:()=>N,WU:()=>t,Nj:()=>h,ZP:()=>We});class t{constructor(){this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null}getTokenSource(){return this.source[0]}getInputStream(){return this.source[1]}get text(){return this._text}set text(t){this._text=t}}function e(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!(t[r]===e[r]||t[r].equals&&t[r].equals(e[r])))return!1;return!0}t.INVALID_TYPE=0,t.EPSILON=-2,t.MIN_USER_TOKEN_TYPE=1,t.EOF=-1,t.DEFAULT_CHANNEL=0,t.HIDDEN_CHANNEL=1;const r=Math.round(Math.random()*Math.pow(2,32));function s(t){if(!t)return 0;const e=typeof t,s="string"===e?t:!("object"!==e||!t.toString)&&t.toString();if(!s)return 0;let i,n;const a=3&s.length,o=s.length-a;let c=r;const l=3432918353,h=461845907;let u=0;for(;u<o;)n=255&s.charCodeAt(u)|(255&s.charCodeAt(++u))<<8|(255&s.charCodeAt(++u))<<16|(255&s.charCodeAt(++u))<<24,++u,n=(65535&n)*l+(((n>>>16)*l&65535)<<16)&4294967295,n=n<<15|n>>>17,n=(65535&n)*h+(((n>>>16)*h&65535)<<16)&4294967295,c^=n,c=c<<13|c>>>19,i=5*(65535&c)+((5*(c>>>16)&65535)<<16)&4294967295,c=27492+(65535&i)+((58964+(i>>>16)&65535)<<16);switch(n=0,a){case 3:n^=(255&s.charCodeAt(u+2))<<16;case 2:n^=(255&s.charCodeAt(u+1))<<8;case 1:n^=255&s.charCodeAt(u),n=(65535&n)*l+(((n>>>16)*l&65535)<<16)&4294967295,n=n<<15|n>>>17,n=(65535&n)*h+(((n>>>16)*h&65535)<<16)&4294967295,c^=n}return c^=s.length,c^=c>>>16,c=2246822507*(65535&c)+((2246822507*(c>>>16)&65535)<<16)&4294967295,c^=c>>>13,c=3266489909*(65535&c)+((3266489909*(c>>>16)&65535)<<16)&4294967295,c^=c>>>16,c>>>0}class a{constructor(){this.count=0,this.hash=0}update(){for(let t=0;t<arguments.length;t++){const e=arguments[t];if(null!=e)if(Array.isArray(e))this.update.apply(this,e);else{let t=0;switch(typeof e){case"undefined":case"function":continue;case"number":case"boolean":t=e;break;case"string":t=s(e);break;default:e.updateHashCode?e.updateHashCode(this):console.log("No updateHashCode for "+e.toString());continue}t*=3432918353,t=t<<15|t>>>17,t*=461845907,this.count=this.count+1;let r=this.hash^t;r=r<<13|r>>>19,r=5*r+3864292196,this.hash=r}}}finish(){let t=this.hash^4*this.count;return t^=t>>>16,t*=2246822507,t^=t>>>13,t*=3266489909,t^=t>>>16,t}static hashStuff(){const t=new a;return t.update.apply(t,arguments),t.finish()}}function o(t){return t?"string"==typeof t?s(t):t.hashCode():-1}function c(t,e){return t?t.equals(e):t===e}function l(t){return null===t?"null":t}function h(t){return Array.isArray(t)?"["+t.map(l).join(", ")+"]":"null"}const u="h-";class d{constructor(t,e){this.data={},this.hashFunction=t||o,this.equalsFunction=e||c}add(t){const e=u+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++)if(this.equalsFunction(t,r[e]))return r[e];return r.push(t),t}return this.data[e]=[t],t}has(t){return null!=this.get(t)}get(t){const e=u+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++)if(this.equalsFunction(t,r[e]))return r[e]}return null}values(){return Object.keys(this.data).filter((t=>t.startsWith(u))).flatMap((t=>this.data[t]),this)}toString(){return h(this.values())}get length(){return Object.keys(this.data).filter((t=>t.startsWith(u))).map((t=>this.data[t].length),this).reduce(((t,e)=>t+e),0)}}class p{hashCode(){const t=new a;return this.updateHashCode(t),t.finish()}evaluate(t,e){}evalPrecedence(t,e){return this}static andContext(t,e){if(null===t||t===p.NONE)return e;if(null===e||e===p.NONE)return t;const r=new m(t,e);return 1===r.opnds.length?r.opnds[0]:r}static orContext(t,e){if(null===t)return e;if(null===e)return t;if(t===p.NONE||e===p.NONE)return p.NONE;const r=new y(t,e);return 1===r.opnds.length?r.opnds[0]:r}}class m extends p{constructor(t,e){super();const r=new d;t instanceof m?t.opnds.map((function(t){r.add(t)})):r.add(t),e instanceof m?e.opnds.map((function(t){r.add(t)})):r.add(e);const s=f(r);if(s.length>0){let t=null;s.map((function(e){(null===t||e.precedence<t.precedence)&&(t=e)})),r.add(t)}this.opnds=Array.from(r.values())}equals(t){return this===t||t instanceof m&&e(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"AND")}evaluate(t,e){for(let r=0;r<this.opnds.length;r++)if(!this.opnds[r].evaluate(t,e))return!1;return!0}evalPrecedence(t,e){let r=!1;const s=[];for(let i=0;i<this.opnds.length;i++){const n=this.opnds[i],a=n.evalPrecedence(t,e);if(r|=a!==n,null===a)return null;a!==p.NONE&&s.push(a)}if(!r)return this;if(0===s.length)return p.NONE;let i=null;return s.map((function(t){i=null===i?t:p.andContext(i,t)})),i}toString(){const t=this.opnds.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("&&")}}class y extends p{constructor(t,e){super();const r=new d;t instanceof y?t.opnds.map((function(t){r.add(t)})):r.add(t),e instanceof y?e.opnds.map((function(t){r.add(t)})):r.add(e);const s=f(r);if(s.length>0){const t=s.sort((function(t,e){return t.compareTo(e)})),e=t[t.length-1];r.add(e)}this.opnds=Array.from(r.values())}equals(t){return this===t||t instanceof y&&e(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"OR")}evaluate(t,e){for(let r=0;r<this.opnds.length;r++)if(this.opnds[r].evaluate(t,e))return!0;return!1}evalPrecedence(t,e){let r=!1;const s=[];for(let i=0;i<this.opnds.length;i++){const n=this.opnds[i],a=n.evalPrecedence(t,e);if(r|=a!==n,a===p.NONE)return p.NONE;null!==a&&s.push(a)}return r?(0===s.length||s.map((function(t){return t})),null):this}toString(){const t=this.opnds.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("||")}}function f(t){const e=[];return t.values().map((function(t){t instanceof p.PrecedencePredicate&&e.push(t)})),e}function g(t,e){if(null===t){const t={state:null,alt:null,context:null,semanticContext:null};return e&&(t.reachesIntoOuterContext=0),t}{const r={};return r.state=t.state||null,r.alt=void 0===t.alt?null:t.alt,r.context=t.context||null,r.semanticContext=t.semanticContext||null,e&&(r.reachesIntoOuterContext=t.reachesIntoOuterContext||0,r.precedenceFilterSuppressed=t.precedenceFilterSuppressed||!1),r}}class w{constructor(t,e){this.checkContext(t,e),t=g(t),e=g(e,!0),this.state=null!==t.state?t.state:e.state,this.alt=null!==t.alt?t.alt:e.alt,this.context=null!==t.context?t.context:e.context,this.semanticContext=null!==t.semanticContext?t.semanticContext:null!==e.semanticContext?e.semanticContext:p.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,this.precedenceFilterSuppressed=e.precedenceFilterSuppressed}checkContext(t,e){null!==t.context&&void 0!==t.context||null!==e&&null!==e.context&&void 0!==e.context||(this.context=null)}hashCode(){const t=new a;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}equals(t){return this===t||t instanceof w&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&(null===this.context?null===t.context:this.context.equals(t.context))&&this.semanticContext.equals(t.semanticContext)&&this.precedenceFilterSuppressed===t.precedenceFilterSuppressed}hashCodeForConfigSet(){const t=new a;return t.update(this.state.stateNumber,this.alt,this.semanticContext),t.finish()}equalsForConfigSet(t){return this===t||t instanceof w&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&this.semanticContext.equals(t.semanticContext)}toString(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==p.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}class x{constructor(t,e){this.start=t,this.stop=e}clone(){return new x(this.start,this.stop)}contains(t){return t>=this.start&&t<this.stop}toString(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()}get length(){return this.stop-this.start}}x.INVALID_INTERVAL=new x(-1,-2);class v{constructor(){this.intervals=null,this.readOnly=!1}first(e){return null===this.intervals||0===this.intervals.length?t.INVALID_TYPE:this.intervals[0].start}addOne(t){this.addInterval(new x(t,t+1))}addRange(t,e){this.addInterval(new x(t,e+1))}addInterval(t){if(null===this.intervals)this.intervals=[],this.intervals.push(t.clone());else{for(let e=0;e<this.intervals.length;e++){const r=this.intervals[e];if(t.stop<r.start)return void this.intervals.splice(e,0,t);if(t.stop===r.start)return void(this.intervals[e]=new x(t.start,r.stop));if(t.start<=r.stop)return this.intervals[e]=new x(Math.min(r.start,t.start),Math.max(r.stop,t.stop)),void this.reduce(e)}this.intervals.push(t.clone())}}addSet(t){return null!==t.intervals&&t.intervals.forEach((t=>this.addInterval(t)),this),this}reduce(t){if(t<this.intervals.length-1){const e=this.intervals[t],r=this.intervals[t+1];e.stop>=r.stop?(this.intervals.splice(t+1,1),this.reduce(t)):e.stop>=r.start&&(this.intervals[t]=new x(e.start,r.stop),this.intervals.splice(t+1,1))}}complement(t,e){const r=new v;return r.addInterval(new x(t,e+1)),null!==this.intervals&&this.intervals.forEach((t=>r.removeRange(t))),r}contains(t){if(null===this.intervals)return!1;for(let e=0;e<this.intervals.length;e++)if(this.intervals[e].contains(t))return!0;return!1}removeRange(t){if(t.start===t.stop-1)this.removeOne(t.start);else if(null!==this.intervals){let e=0;for(let r=0;r<this.intervals.length;r++){const r=this.intervals[e];if(t.stop<=r.start)return;if(t.start>r.start&&t.stop<r.stop){this.intervals[e]=new x(r.start,t.start);const s=new x(t.stop,r.stop);return void this.intervals.splice(e,0,s)}t.start<=r.start&&t.stop>=r.stop?(this.intervals.splice(e,1),e-=1):t.start<r.stop?this.intervals[e]=new x(r.start,t.start):t.stop<r.stop&&(this.intervals[e]=new x(t.stop,r.stop)),e+=1}}}removeOne(t){if(null!==this.intervals)for(let e=0;e<this.intervals.length;e++){const r=this.intervals[e];if(t<r.start)return;if(t===r.start&&t===r.stop-1)return void this.intervals.splice(e,1);if(t===r.start)return void(this.intervals[e]=new x(r.start+1,r.stop));if(t===r.stop-1)return void(this.intervals[e]=new x(r.start,r.stop-1));if(t<r.stop-1){const s=new x(r.start,t);return r.start=t+1,void this.intervals.splice(e,0,s)}}}toString(t,e,r){return t=t||null,e=e||null,r=r||!1,null===this.intervals?"{}":null!==t||null!==e?this.toTokenString(t,e):r?this.toCharString():this.toIndexString()}toCharString(){const e=[];for(let r=0;r<this.intervals.length;r++){const s=this.intervals[r];s.stop===s.start+1?s.start===t.EOF?e.push("<EOF>"):e.push("'"+String.fromCharCode(s.start)+"'"):e.push("'"+String.fromCharCode(s.start)+"'..'"+String.fromCharCode(s.stop-1)+"'")}return e.length>1?"{"+e.join(", ")+"}":e[0]}toIndexString(){const e=[];for(let r=0;r<this.intervals.length;r++){const s=this.intervals[r];s.stop===s.start+1?s.start===t.EOF?e.push("<EOF>"):e.push(s.start.toString()):e.push(s.start.toString()+".."+(s.stop-1).toString())}return e.length>1?"{"+e.join(", ")+"}":e[0]}toTokenString(t,e){const r=[];for(let s=0;s<this.intervals.length;s++){const i=this.intervals[s];for(let s=i.start;s<i.stop;s++)r.push(this.elementName(t,e,s))}return r.length>1?"{"+r.join(", ")+"}":r[0]}elementName(e,r,s){return s===t.EOF?"<EOF>":s===t.EPSILON?"<EPSILON>":e[s]||r[s]}get length(){return this.intervals.map((t=>t.length)).reduce(((t,e)=>t+e))}}class b{constructor(){this.atn=null,this.stateNumber=b.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}toString(){return this.stateNumber}equals(t){return t instanceof b&&this.stateNumber===t.stateNumber}isNonGreedyExitState(){return!1}addTransition(t,e){void 0===e&&(e=-1),0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===e?this.transitions.push(t):this.transitions.splice(e,1,t)}}b.INVALID_TYPE=0,b.BASIC=1,b.RULE_START=2,b.BLOCK_START=3,b.PLUS_BLOCK_START=4,b.STAR_BLOCK_START=5,b.TOKEN_START=6,b.RULE_STOP=7,b.BLOCK_END=8,b.STAR_LOOP_BACK=9,b.STAR_LOOP_ENTRY=10,b.PLUS_LOOP_BACK=11,b.LOOP_END=12,b.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],b.INVALID_STATE_NUMBER=-1;class _ extends b{constructor(){return super(),this.stateType=b.RULE_STOP,this}}class E{constructor(t){if(null==t)throw"target cannot be null.";this.target=t,this.isEpsilon=!1,this.label=null}}E.EPSILON=1,E.RANGE=2,E.RULE=3,E.PREDICATE=4,E.ATOM=5,E.ACTION=6,E.SET=7,E.NOT_SET=8,E.WILDCARD=9,E.PRECEDENCE=10,E.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],E.serializationTypes={EpsilonTransition:E.EPSILON,RangeTransition:E.RANGE,RuleTransition:E.RULE,PredicateTransition:E.PREDICATE,AtomTransition:E.ATOM,ActionTransition:E.ACTION,SetTransition:E.SET,NotSetTransition:E.NOT_SET,WildcardTransition:E.WILDCARD,PrecedencePredicateTransition:E.PRECEDENCE};class T extends E{constructor(t,e,r,s){super(t),this.ruleIndex=e,this.precedence=r,this.followState=s,this.serializationType=E.RULE,this.isEpsilon=!0}matches(t,e,r){return!1}}class S extends E{constructor(e,r){super(e),this.serializationType=E.SET,null!=r?this.label=r:(this.label=new v,this.label.addOne(t.INVALID_TYPE))}matches(t,e,r){return this.label.contains(t)}toString(){return this.label.toString()}}class k extends S{constructor(t,e){super(t,e),this.serializationType=E.NOT_SET}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}}class R extends E{constructor(t){super(t),this.serializationType=E.WILDCARD}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}}class A extends E{constructor(t){super(t)}}class C{}class K extends C{}class L extends K{}class I extends L{get ruleContext(){throw new Error("missing interface implementation")}}class N extends L{}class D extends N{}const O={toStringTree:function(t,e,r){e=e||null,null!==(r=r||null)&&(e=r.ruleNames);let s=O.getNodeText(t,e);s=s.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r");const i=t.getChildCount();if(0===i)return s;let n="("+s+" ";i>0&&(s=O.toStringTree(t.getChild(0),e),n=n.concat(s));for(let r=1;r<i;r++)s=O.toStringTree(t.getChild(r),e),n=n.concat(" "+s);return n=n.concat(")"),n},getNodeText:function(e,r,s){if(r=r||null,null!==(s=s||null)&&(r=s.ruleNames),null!==r){if(e instanceof I){const t=e.ruleContext.getAltNumber();return 0!=t?r[e.ruleIndex]+":"+t:r[e.ruleIndex]}if(e instanceof D)return e.toString();if(e instanceof N&&null!==e.symbol)return e.symbol.text}const i=e.getPayload();return i instanceof t?i.text:e.getPayload().toString()},getChildren:function(t){const e=[];for(let r=0;r<t.getChildCount();r++)e.push(t.getChild(r));return e},getAncestors:function(t){let e=[];for(t=t.getParent();null!==t;)e=[t].concat(e),t=t.getParent();return e},findAllTokenNodes:function(t,e){return O.findAllNodes(t,e,!0)},findAllRuleNodes:function(t,e){return O.findAllNodes(t,e,!1)},findAllNodes:function(t,e,r){const s=[];return O._findAllNodes(t,e,r,s),s},_findAllNodes:function(t,e,r,s){r&&t instanceof N?t.symbol.type===e&&s.push(t):!r&&t instanceof I&&t.ruleIndex===e&&s.push(t);for(let i=0;i<t.getChildCount();i++)O._findAllNodes(t.getChild(i),e,r,s)},descendants:function(t){let e=[t];for(let r=0;r<t.getChildCount();r++)e=e.concat(O.descendants(t.getChild(r)));return e}},P=O;class q extends I{constructor(t,e){super(),this.parentCtx=t||null,this.invokingState=e||-1}depth(){let t=0,e=this;for(;null!==e;)e=e.parentCtx,t+=1;return t}isEmpty(){return-1===this.invokingState}getSourceInterval(){return x.INVALID_INTERVAL}get ruleContext(){return this}getPayload(){return this}getText(){return 0===this.getChildCount()?"":this.children.map((function(t){return t.getText()})).join("")}getAltNumber(){return 0}setAltNumber(t){}getChild(t){return null}getChildCount(){return 0}accept(t){return t.visitChildren(this)}toStringTree(t,e){return P.toStringTree(this,t,e)}toString(t,e){t=t||null,e=e||null;let r=this,s="[";for(;null!==r&&r!==e;){if(null===t)r.isEmpty()||(s+=r.invokingState);else{const e=r.ruleIndex;s+=e>=0&&e<t.length?t[e]:""+e}null===r.parentCtx||null===t&&r.parentCtx.isEmpty()||(s+=" "),r=r.parentCtx}return s+="]",s}}class Y{constructor(t){this.cachedHashCode=t}isEmpty(){return this===Y.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===Y.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}}Y.EMPTY=null,Y.EMPTY_RETURN_STATE=2147483647,Y.globalNodeCount=1,Y.id=Y.globalNodeCount,Y.trace_atn_sim=!1;class F extends Y{constructor(t,e){const r=new a;return r.update(t,e),super(r.finish()),this.parents=t,this.returnStates=e,this}isEmpty(){return this.returnStates[0]===Y.EMPTY_RETURN_STATE}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}equals(t){return this===t||t instanceof F&&this.hashCode()===t.hashCode()&&e(this.returnStates,t.returnStates)&&e(this.parents,t.parents)}toString(){if(this.isEmpty())return"[]";{let t="[";for(let e=0;e<this.returnStates.length;e++)e>0&&(t+=", "),this.returnStates[e]!==Y.EMPTY_RETURN_STATE?(t+=this.returnStates[e],null!==this.parents[e]?t=t+" "+this.parents[e]:t+="null"):t+="$";return t+"]"}}get length(){return this.returnStates.length}}class M extends Y{constructor(t,e){let r=0;const s=new a;null!==t?s.update(t,e):s.update(1),r=s.finish(),super(r),this.parentCtx=t,this.returnState=e}getParent(t){return this.parentCtx}getReturnState(t){return this.returnState}equals(t){return this===t||t instanceof M&&this.hashCode()===t.hashCode()&&this.returnState===t.returnState&&(null==this.parentCtx?null==t.parentCtx:this.parentCtx.equals(t.parentCtx))}toString(){const t=null===this.parentCtx?"":this.parentCtx.toString();return 0===t.length?this.returnState===Y.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t}get length(){return 1}static create(t,e){return e===Y.EMPTY_RETURN_STATE&&null===t?Y.EMPTY:new M(t,e)}}class U extends M{constructor(){super(null,Y.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(t){return null}getReturnState(t){return this.returnState}equals(t){return this===t}toString(){return"$"}}Y.EMPTY=new U;const B="h-";class V{constructor(t,e){this.data={},this.hashFunction=t||o,this.equalsFunction=e||c}set(t,e){const r=B+this.hashFunction(t);if(r in this.data){const s=this.data[r];for(let r=0;r<s.length;r++){const i=s[r];if(this.equalsFunction(t,i.key)){const t=i.value;return i.value=e,t}}return s.push({key:t,value:e}),e}return this.data[r]=[{key:t,value:e}],e}containsKey(t){const e=B+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++){const s=r[e];if(this.equalsFunction(t,s.key))return!0}}return!1}get(t){const e=B+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++){const s=r[e];if(this.equalsFunction(t,s.key))return s.value}}return null}entries(){return Object.keys(this.data).filter((t=>t.startsWith(B))).flatMap((t=>this.data[t]),this)}getKeys(){return this.entries().map((t=>t.key))}getValues(){return this.entries().map((t=>t.value))}toString(){return"["+this.entries().map((t=>"{"+t.key+":"+t.value+"}")).join(", ")+"]"}get length(){return Object.keys(this.data).filter((t=>t.startsWith(B))).map((t=>this.data[t].length),this).reduce(((t,e)=>t+e),0)}}function H(t,e){if(null==e&&(e=q.EMPTY),null===e.parentCtx||e===q.EMPTY)return Y.EMPTY;const r=H(t,e.parentCtx),s=t.states[e.invokingState].transitions[0];return M.create(r,s.followState.stateNumber)}function j(t,e,r){if(t.isEmpty())return t;let s=r.get(t)||null;if(null!==s)return s;if(s=e.get(t),null!==s)return r.set(t,s),s;let i=!1,n=[];for(let s=0;s<n.length;s++){const a=j(t.getParent(s),e,r);if(i||a!==t.getParent(s)){if(!i){n=[];for(let e=0;e<t.length;e++)n[e]=t.getParent(e);i=!0}n[s]=a}}if(!i)return e.add(t),r.set(t,t),t;let a=null;return a=0===n.length?Y.EMPTY:1===n.length?M.create(n[0],t.getReturnState(0)):new F(n,t.returnStates),e.add(a),r.set(a,a),r.set(t,a),a}function $(t,e,r,s){if(t===e)return t;if(t instanceof M&&e instanceof M)return function(t,e,r,s){if(null!==s){let r=s.get(t,e);if(null!==r)return r;if(r=s.get(e,t),null!==r)return r}const i=function(t,e,r){if(r){if(t===Y.EMPTY)return Y.EMPTY;if(e===Y.EMPTY)return Y.EMPTY}else{if(t===Y.EMPTY&&e===Y.EMPTY)return Y.EMPTY;if(t===Y.EMPTY){const t=[e.returnState,Y.EMPTY_RETURN_STATE],r=[e.parentCtx,null];return new F(r,t)}if(e===Y.EMPTY){const e=[t.returnState,Y.EMPTY_RETURN_STATE],r=[t.parentCtx,null];return new F(r,e)}}return null}(t,e,r);if(null!==i)return null!==s&&s.set(t,e,i),i;if(t.returnState===e.returnState){const i=$(t.parentCtx,e.parentCtx,r,s);if(i===t.parentCtx)return t;if(i===e.parentCtx)return e;const n=M.create(i,t.returnState);return null!==s&&s.set(t,e,n),n}{let r=null;if((t===e||null!==t.parentCtx&&t.parentCtx===e.parentCtx)&&(r=t.parentCtx),null!==r){const i=[t.returnState,e.returnState];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState);const n=new F([r,r],i);return null!==s&&s.set(t,e,n),n}const i=[t.returnState,e.returnState];let n=[t.parentCtx,e.parentCtx];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState,n=[e.parentCtx,t.parentCtx]);const a=new F(n,i);return null!==s&&s.set(t,e,a),a}}(t,e,r,s);if(r){if(t instanceof U)return t;if(e instanceof U)return e}return t instanceof M&&(t=new F([t.getParent()],[t.returnState])),e instanceof M&&(e=new F([e.getParent()],[e.returnState])),function(t,e,r,s){if(null!==s){let r=s.get(t,e);if(null!==r)return Y.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),r;if(r=s.get(e,t),null!==r)return Y.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),r}let i=0,n=0,a=0,o=new Array(t.returnStates.length+e.returnStates.length).fill(0),c=new Array(t.returnStates.length+e.returnStates.length).fill(null);for(;i<t.returnStates.length&&n<e.returnStates.length;){const l=t.parents[i],h=e.parents[n];if(t.returnStates[i]===e.returnStates[n]){const e=t.returnStates[i];e===Y.EMPTY_RETURN_STATE&&null===l&&null===h||null!==l&&null!==h&&l===h?(c[a]=l,o[a]=e):(c[a]=$(l,h,r,s),o[a]=e),i+=1,n+=1}else t.returnStates[i]<e.returnStates[n]?(c[a]=l,o[a]=t.returnStates[i],i+=1):(c[a]=h,o[a]=e.returnStates[n],n+=1);a+=1}if(i<t.returnStates.length)for(let e=i;e<t.returnStates.length;e++)c[a]=t.parents[e],o[a]=t.returnStates[e],a+=1;else for(let t=n;t<e.returnStates.length;t++)c[a]=e.parents[t],o[a]=e.returnStates[t],a+=1;if(a<c.length){if(1===a){const r=M.create(c[0],o[0]);return null!==s&&s.set(t,e,r),r}c=c.slice(0,a),o=o.slice(0,a)}const l=new F(c,o);return l.equals(t)?(null!==s&&s.set(t,e,t),Y.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> a"),t):l.equals(e)?(null!==s&&s.set(t,e,e),Y.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> b"),e):(function(t){const e=new V;for(let r=0;r<t.length;r++){const s=t[r];e.containsKey(s)||e.set(s,s)}for(let r=0;r<t.length;r++)t[r]=e.get(t[r])}(c),null!==s&&s.set(t,e,l),Y.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> "+l),l)}(t,e,r,s)}class Q{constructor(){this.data=[]}add(t){this.data[t]=!0}or(t){Object.keys(t.data).map((t=>this.add(t)),this)}remove(t){delete this.data[t]}has(t){return!0===this.data[t]}values(){return Object.keys(this.data)}minValue(){return Math.min.apply(null,this.values())}hashCode(){return a.hashStuff(this.values())}equals(t){return t instanceof Q&&e(this.data,t.data)}toString(){return"{"+this.values().join(", ")+"}"}get length(){return this.values().length}}class G{constructor(t){this.atn=t}getDecisionLookahead(t){if(null===t)return null;const e=t.transitions.length,r=[];for(let s=0;s<e;s++){r[s]=new v;const e=new d,i=!1;this._LOOK(t.transition(s).target,null,Y.EMPTY,r[s],e,new Q,i,!1),(0===r[s].length||r[s].contains(G.HIT_PRED))&&(r[s]=null)}return r}LOOK(t,e,r){const s=new v,i=null!==(r=r||null)?H(t.atn,r):null;return this._LOOK(t,e,i,s,new d,new Q,!0,!0),s}_LOOK(e,r,s,i,n,a,o,c){const l=new w({state:e,alt:0,context:s},null);if(!n.has(l)){if(n.add(l),e===r){if(null===s)return void i.addOne(t.EPSILON);if(s.isEmpty()&&c)return void i.addOne(t.EOF)}if(e instanceof _){if(null===s)return void i.addOne(t.EPSILON);if(s.isEmpty()&&c)return void i.addOne(t.EOF);if(s!==Y.EMPTY){const t=a.has(e.ruleIndex);try{a.remove(e.ruleIndex);for(let t=0;t<s.length;t++){const e=this.atn.states[s.getReturnState(t)];this._LOOK(e,r,s.getParent(t),i,n,a,o,c)}}finally{t&&a.add(e.ruleIndex)}return}}for(let l=0;l<e.transitions.length;l++){const h=e.transitions[l];if(h.constructor===T){if(a.has(h.target.ruleIndex))continue;const t=M.create(s,h.followState.stateNumber);try{a.add(h.target.ruleIndex),this._LOOK(h.target,r,t,i,n,a,o,c)}finally{a.remove(h.target.ruleIndex)}}else if(h instanceof A)o?this._LOOK(h.target,r,s,i,n,a,o,c):i.addOne(G.HIT_PRED);else if(h.isEpsilon)this._LOOK(h.target,r,s,i,n,a,o,c);else if(h.constructor===R)i.addRange(t.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{let e=h.label;null!==e&&(h instanceof k&&(e=e.complement(t.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),i.addSet(e))}}}}}G.HIT_PRED=t.INVALID_TYPE;class z{constructor(t,e){this.grammarType=t,this.maxTokenType=e,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}nextTokensInContext(t,e){return new G(this).LOOK(t,null,e)}nextTokensNoContext(t){return null!==t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokensInContext(t,null),t.nextTokenWithinRule.readOnly=!0),t.nextTokenWithinRule}nextTokens(t,e){return void 0===e?this.nextTokensNoContext(t):this.nextTokensInContext(t,e)}addState(t){null!==t&&(t.atn=this,t.stateNumber=this.states.length),this.states.push(t)}removeState(t){this.states[t.stateNumber]=null}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,t.decision}getDecisionState(t){return 0===this.decisionToState.length?null:this.decisionToState[t]}getExpectedTokens(e,r){if(e<0||e>=this.states.length)throw"Invalid state number.";const s=this.states[e];let i=this.nextTokens(s);if(!i.contains(t.EPSILON))return i;const n=new v;for(n.addSet(i),n.removeOne(t.EPSILON);null!==r&&r.invokingState>=0&&i.contains(t.EPSILON);){const e=this.states[r.invokingState].transitions[0];i=this.nextTokens(e.followState),n.addSet(i),n.removeOne(t.EPSILON),r=r.parentCtx}return i.contains(t.EPSILON)&&n.addOne(t.EOF),n}}z.INVALID_ALT_NUMBER=0;class W extends b{constructor(){super(),this.stateType=b.BASIC}}class X extends b{constructor(){return super(),this.decision=-1,this.nonGreedy=!1,this}}class J extends X{constructor(){return super(),this.endState=null,this}}class Z extends b{constructor(){return super(),this.stateType=b.BLOCK_END,this.startState=null,this}}class tt extends b{constructor(){return super(),this.stateType=b.LOOP_END,this.loopBackState=null,this}}class et extends b{constructor(){return super(),this.stateType=b.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}}class rt extends X{constructor(){return super(),this.stateType=b.TOKEN_START,this}}class st extends X{constructor(){return super(),this.stateType=b.PLUS_LOOP_BACK,this}}class it extends b{constructor(){return super(),this.stateType=b.STAR_LOOP_BACK,this}}class nt extends X{constructor(){return super(),this.stateType=b.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}}class at extends J{constructor(){return super(),this.stateType=b.PLUS_BLOCK_START,this.loopBackState=null,this}}class ot extends J{constructor(){return super(),this.stateType=b.STAR_BLOCK_START,this}}class ct extends J{constructor(){return super(),this.stateType=b.BLOCK_START,this}}class lt extends E{constructor(t,e){super(t),this.label_=e,this.label=this.makeLabel(),this.serializationType=E.ATOM}makeLabel(){const t=new v;return t.addOne(this.label_),t}matches(t,e,r){return this.label_===t}toString(){return this.label_}}class ht extends E{constructor(t,e,r){super(t),this.serializationType=E.RANGE,this.start=e,this.stop=r,this.label=this.makeLabel()}makeLabel(){const t=new v;return t.addRange(this.start,this.stop),t}matches(t,e,r){return t>=this.start&&t<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}}class ut extends E{constructor(t,e,r,s){super(t),this.serializationType=E.ACTION,this.ruleIndex=e,this.actionIndex=void 0===r?-1:r,this.isCtxDependent=void 0!==s&&s,this.isEpsilon=!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}}class dt extends E{constructor(t,e){super(t),this.serializationType=E.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=e}matches(t,e,r){return!1}toString(){return"epsilon"}}class pt extends p{constructor(t,e,r){super(),this.ruleIndex=void 0===t?-1:t,this.predIndex=void 0===e?-1:e,this.isCtxDependent=void 0!==r&&r}evaluate(t,e){const r=this.isCtxDependent?e:null;return t.sempred(r,this.ruleIndex,this.predIndex)}updateHashCode(t){t.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}equals(t){return this===t||t instanceof pt&&this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}p.NONE=new pt;class mt extends A{constructor(t,e,r,s){super(t),this.serializationType=E.PREDICATE,this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=s,this.isEpsilon=!0}matches(t,e,r){return!1}getPredicate(){return new pt(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}}class yt extends p{constructor(t){super(),this.precedence=void 0===t?0:t}evaluate(t,e){return t.precpred(e,this.precedence)}evalPrecedence(t,e){return t.precpred(e,this.precedence)?p.NONE:null}compareTo(t){return this.precedence-t.precedence}updateHashCode(t){t.update(this.precedence)}equals(t){return this===t||t instanceof yt&&this.precedence===t.precedence}toString(){return"{"+this.precedence+">=prec}?"}}p.PrecedencePredicate=yt;class ft extends A{constructor(t,e){super(t),this.serializationType=E.PRECEDENCE,this.precedence=e,this.isEpsilon=!0}matches(t,e,r){return!1}getPredicate(){return new yt(this.precedence)}toString(){return this.precedence+" >= _p"}}class gt{constructor(t){void 0===t&&(t=null),this.readOnly=!1,this.verifyATN=null===t||t.verifyATN,this.generateRuleBypassTransitions=null!==t&&t.generateRuleBypassTransitions}}gt.defaultOptions=new gt,gt.defaultOptions.readOnly=!0;class wt{constructor(t){this.actionType=t,this.isPositionDependent=!1}hashCode(){const t=new a;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.actionType)}equals(t){return this===t}}class xt extends wt{constructor(){super(6)}execute(t){t.skip()}toString(){return"skip"}}xt.INSTANCE=new xt;class vt extends wt{constructor(t){super(0),this.channel=t}execute(t){t._channel=this.channel}updateHashCode(t){t.update(this.actionType,this.channel)}equals(t){return this===t||t instanceof vt&&this.channel===t.channel}toString(){return"channel("+this.channel+")"}}class bt extends wt{constructor(t,e){super(1),this.ruleIndex=t,this.actionIndex=e,this.isPositionDependent=!0}execute(t){t.action(null,this.ruleIndex,this.actionIndex)}updateHashCode(t){t.update(this.actionType,this.ruleIndex,this.actionIndex)}equals(t){return this===t||t instanceof bt&&this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex}}class _t extends wt{constructor(){super(3)}execute(t){t.more()}toString(){return"more"}}_t.INSTANCE=new _t;class Et extends wt{constructor(t){super(7),this.type=t}execute(t){t.type=this.type}updateHashCode(t){t.update(this.actionType,this.type)}equals(t){return this===t||t instanceof Et&&this.type===t.type}toString(){return"type("+this.type+")"}}class Tt extends wt{constructor(t){super(5),this.mode=t}execute(t){t.pushMode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof Tt&&this.mode===t.mode}toString(){return"pushMode("+this.mode+")"}}class St extends wt{constructor(){super(4)}execute(t){t.popMode()}toString(){return"popMode"}}St.INSTANCE=new St;class kt extends wt{constructor(t){super(2),this.mode=t}execute(t){t.mode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof kt&&this.mode===t.mode}toString(){return"mode("+this.mode+")"}}function Rt(t,e){const r=[];return r[t-1]=e,r.map((function(t){return e}))}class At{constructor(t){null==t&&(t=gt.defaultOptions),this.deserializationOptions=t,this.stateFactories=null,this.actionFactories=null}deserialize(t){const e=this.reset(t);this.checkVersion(e),e&&this.skipUUID();const r=this.readATN();this.readStates(r,e),this.readRules(r,e),this.readModes(r);const s=[];return this.readSets(r,s,this.readInt.bind(this)),e&&this.readSets(r,s,this.readInt32.bind(this)),this.readEdges(r,s),this.readDecisions(r),this.readLexerActions(r,e),this.markPrecedenceDecisions(r),this.verifyATN(r),this.deserializationOptions.generateRuleBypassTransitions&&1===r.grammarType&&(this.generateRuleBypassTransitions(r),this.verifyATN(r)),r}reset(t){if(3===(t.charCodeAt?t.charCodeAt(0):t[0])){const e=function(t){const e=t.charCodeAt(0);return e>1?e-2:e+65534},r=t.split("").map(e);return r[0]=t.charCodeAt(0),this.data=r,this.pos=0,!0}return this.data=t,this.pos=0,!1}skipUUID(){let t=0;for(;t++<8;)this.readInt()}checkVersion(t){const e=this.readInt();if(!t&&4!==e)throw"Could not deserialize ATN with version "+e+" (expected 4)."}readATN(){const t=this.readInt(),e=this.readInt();return new z(t,e)}readStates(t,e){let r,s,i;const n=[],a=[],o=this.readInt();for(let r=0;r<o;r++){const r=this.readInt();if(r===b.INVALID_TYPE){t.addState(null);continue}let s=this.readInt();e&&65535===s&&(s=-1);const i=this.stateFactory(r,s);if(r===b.LOOP_END){const t=this.readInt();n.push([i,t])}else if(i instanceof J){const t=this.readInt();a.push([i,t])}t.addState(i)}for(r=0;r<n.length;r++)s=n[r],s[0].loopBackState=t.states[s[1]];for(r=0;r<a.length;r++)s=a[r],s[0].endState=t.states[s[1]];let c=this.readInt();for(r=0;r<c;r++)i=this.readInt(),t.states[i].nonGreedy=!0;let l=this.readInt();for(r=0;r<l;r++)i=this.readInt(),t.states[i].isPrecedenceRule=!0}readRules(e,r){let s;const i=this.readInt();for(0===e.grammarType&&(e.ruleToTokenType=Rt(i,0)),e.ruleToStartState=Rt(i,0),s=0;s<i;s++){const i=this.readInt();if(e.ruleToStartState[s]=e.states[i],0===e.grammarType){let i=this.readInt();r&&65535===i&&(i=t.EOF),e.ruleToTokenType[s]=i}}for(e.ruleToStopState=Rt(i,0),s=0;s<e.states.length;s++){const t=e.states[s];t instanceof _&&(e.ruleToStopState[t.ruleIndex]=t,e.ruleToStartState[t.ruleIndex].stopState=t)}}readModes(t){const e=this.readInt();for(let r=0;r<e;r++){let e=this.readInt();t.modeToStartState.push(t.states[e])}}readSets(t,e,r){const s=this.readInt();for(let t=0;t<s;t++){const t=new v;e.push(t);const s=this.readInt();0!==this.readInt()&&t.addOne(-1);for(let e=0;e<s;e++){const e=r(),s=r();t.addRange(e,s)}}}readEdges(t,e){let r,s,i,n,a;const o=this.readInt();for(r=0;r<o;r++){const r=this.readInt(),s=this.readInt(),i=this.readInt(),a=this.readInt(),o=this.readInt(),c=this.readInt();n=this.edgeFactory(t,i,r,s,a,o,c,e),t.states[r].addTransition(n)}for(r=0;r<t.states.length;r++)for(i=t.states[r],s=0;s<i.transitions.length;s++){const e=i.transitions[s];if(!(e instanceof T))continue;let r=-1;t.ruleToStartState[e.target.ruleIndex].isPrecedenceRule&&0===e.precedence&&(r=e.target.ruleIndex),n=new dt(e.followState,r),t.ruleToStopState[e.target.ruleIndex].addTransition(n)}for(r=0;r<t.states.length;r++){if(i=t.states[r],i instanceof J){if(null===i.endState)throw"IllegalState";if(null!==i.endState.startState)throw"IllegalState";i.endState.startState=i}if(i instanceof st)for(s=0;s<i.transitions.length;s++)a=i.transitions[s].target,a instanceof at&&(a.loopBackState=i);else if(i instanceof it)for(s=0;s<i.transitions.length;s++)a=i.transitions[s].target,a instanceof nt&&(a.loopBackState=i)}}readDecisions(t){const e=this.readInt();for(let r=0;r<e;r++){const e=this.readInt(),s=t.states[e];t.decisionToState.push(s),s.decision=r}}readLexerActions(t,e){if(0===t.grammarType){const r=this.readInt();t.lexerActions=Rt(r,null);for(let s=0;s<r;s++){const r=this.readInt();let i=this.readInt();e&&65535===i&&(i=-1);let n=this.readInt();e&&65535===n&&(n=-1),t.lexerActions[s]=this.lexerActionFactory(r,i,n)}}}generateRuleBypassTransitions(t){let e;const r=t.ruleToStartState.length;for(e=0;e<r;e++)t.ruleToTokenType[e]=t.maxTokenType+e+1;for(e=0;e<r;e++)this.generateRuleBypassTransition(t,e)}generateRuleBypassTransition(t,e){let r,s;const i=new ct;i.ruleIndex=e,t.addState(i);const n=new Z;n.ruleIndex=e,t.addState(n),i.endState=n,t.defineDecisionState(i),n.startState=i;let a=null,o=null;if(t.ruleToStartState[e].isPrecedenceRule){for(o=null,r=0;r<t.states.length;r++)if(s=t.states[r],this.stateIsEndStateFor(s,e)){o=s,a=s.loopBackState.transitions[0];break}if(null===a)throw"Couldn't identify final state of the precedence rule prefix section."}else o=t.ruleToStopState[e];for(r=0;r<t.states.length;r++){s=t.states[r];for(let t=0;t<s.transitions.length;t++){const e=s.transitions[t];e!==a&&e.target===o&&(e.target=n)}}const c=t.ruleToStartState[e],l=c.transitions.length;for(;l>0;)i.addTransition(c.transitions[l-1]),c.transitions=c.transitions.slice(-1);t.ruleToStartState[e].addTransition(new dt(i)),n.addTransition(new dt(o));const h=new W;t.addState(h),h.addTransition(new lt(n,t.ruleToTokenType[e])),i.addTransition(new dt(h))}stateIsEndStateFor(t,e){if(t.ruleIndex!==e)return null;if(!(t instanceof nt))return null;const r=t.transitions[t.transitions.length-1].target;return r instanceof tt&&r.epsilonOnlyTransitions&&r.transitions[0].target instanceof _?t:null}markPrecedenceDecisions(t){for(let e=0;e<t.states.length;e++){const r=t.states[e];if(r instanceof nt&&t.ruleToStartState[r.ruleIndex].isPrecedenceRule){const t=r.transitions[r.transitions.length-1].target;t instanceof tt&&t.epsilonOnlyTransitions&&t.transitions[0].target instanceof _&&(r.isPrecedenceDecision=!0)}}}verifyATN(t){if(this.deserializationOptions.verifyATN)for(let e=0;e<t.states.length;e++){const r=t.states[e];if(null!==r)if(this.checkCondition(r.epsilonOnlyTransitions||r.transitions.length<=1),r instanceof at)this.checkCondition(null!==r.loopBackState);else if(r instanceof nt)if(this.checkCondition(null!==r.loopBackState),this.checkCondition(2===r.transitions.length),r.transitions[0].target instanceof ot)this.checkCondition(r.transitions[1].target instanceof tt),this.checkCondition(!r.nonGreedy);else{if(!(r.transitions[0].target instanceof tt))throw"IllegalState";this.checkCondition(r.transitions[1].target instanceof ot),this.checkCondition(r.nonGreedy)}else r instanceof it?(this.checkCondition(1===r.transitions.length),this.checkCondition(r.transitions[0].target instanceof nt)):r instanceof tt?this.checkCondition(null!==r.loopBackState):r instanceof et?this.checkCondition(null!==r.stopState):r instanceof J?this.checkCondition(null!==r.endState):r instanceof Z?this.checkCondition(null!==r.startState):r instanceof X?this.checkCondition(r.transitions.length<=1||r.decision>=0):this.checkCondition(r.transitions.length<=1||r instanceof _)}}checkCondition(t,e){if(!t)throw null==e&&(e="IllegalState"),e}readInt(){return this.data[this.pos++]}readInt32(){return this.readInt()|this.readInt()<<16}edgeFactory(e,r,s,i,n,a,o,c){const l=e.states[i];switch(r){case E.EPSILON:return new dt(l);case E.RANGE:return new ht(l,0!==o?t.EOF:n,a);case E.RULE:return new T(e.states[n],a,o,l);case E.PREDICATE:return new mt(l,n,a,0!==o);case E.PRECEDENCE:return new ft(l,n);case E.ATOM:return new lt(l,0!==o?t.EOF:n);case E.ACTION:return new ut(l,n,a,0!==o);case E.SET:return new S(l,c[n]);case E.NOT_SET:return new k(l,c[n]);case E.WILDCARD:return new R(l);default:throw"The specified transition type: "+r+" is not valid."}}stateFactory(t,e){if(null===this.stateFactories){const t=[];t[b.INVALID_TYPE]=null,t[b.BASIC]=()=>new W,t[b.RULE_START]=()=>new et,t[b.BLOCK_START]=()=>new ct,t[b.PLUS_BLOCK_START]=()=>new at,t[b.STAR_BLOCK_START]=()=>new ot,t[b.TOKEN_START]=()=>new rt,t[b.RULE_STOP]=()=>new _,t[b.BLOCK_END]=()=>new Z,t[b.STAR_LOOP_BACK]=()=>new it,t[b.STAR_LOOP_ENTRY]=()=>new nt,t[b.PLUS_LOOP_BACK]=()=>new st,t[b.LOOP_END]=()=>new tt,this.stateFactories=t}if(t>this.stateFactories.length||null===this.stateFactories[t])throw"The specified state type "+t+" is not valid.";{const r=this.stateFactories[t]();if(null!==r)return r.ruleIndex=e,r}}lexerActionFactory(t,e,r){if(null===this.actionFactories){const t=[];t[0]=(t,e)=>new vt(t),t[1]=(t,e)=>new bt(t,e),t[2]=(t,e)=>new kt(t),t[3]=(t,e)=>_t.INSTANCE,t[4]=(t,e)=>St.INSTANCE,t[5]=(t,e)=>new Tt(t),t[6]=(t,e)=>xt.INSTANCE,t[7]=(t,e)=>new Et(t),this.actionFactories=t}if(t>this.actionFactories.length||null===this.actionFactories[t])throw"The specified lexer action type "+t+" is not valid.";return this.actionFactories[t](e,r)}}class Ct{syntaxError(t,e,r,s,i,n){}reportAmbiguity(t,e,r,s,i,n,a){}reportAttemptingFullContext(t,e,r,s,i,n){}reportContextSensitivity(t,e,r,s,i,n){}}class Kt extends Ct{constructor(){super()}syntaxError(t,e,r,s,i,n){console.error("line "+r+":"+s+" "+i)}}Kt.INSTANCE=new Kt;class Lt extends Ct{constructor(t){if(super(),null===t)throw"delegates";return this.delegates=t,this}syntaxError(t,e,r,s,i,n){this.delegates.map((a=>a.syntaxError(t,e,r,s,i,n)))}reportAmbiguity(t,e,r,s,i,n,a){this.delegates.map((o=>o.reportAmbiguity(t,e,r,s,i,n,a)))}reportAttemptingFullContext(t,e,r,s,i,n){this.delegates.map((a=>a.reportAttemptingFullContext(t,e,r,s,i,n)))}reportContextSensitivity(t,e,r,s,i,n){this.delegates.map((a=>a.reportContextSensitivity(t,e,r,s,i,n)))}}class It{constructor(){this._listeners=[Kt.INSTANCE],this._interp=null,this._stateNumber=-1}checkVersion(t){const e="4.13.1";e!==t&&console.log("ANTLR runtime and generated code versions disagree: "+e+"!="+t)}addErrorListener(t){this._listeners.push(t)}removeErrorListeners(){this._listeners=[]}getLiteralNames(){return Object.getPrototypeOf(this).constructor.literalNames||[]}getSymbolicNames(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}getTokenNames(){if(!this.tokenNames){const t=this.getLiteralNames(),e=this.getSymbolicNames(),r=t.length>e.length?t.length:e.length;this.tokenNames=[];for(let s=0;s<r;s++)this.tokenNames[s]=t[s]||e[s]||"<INVALID"}return this.tokenNames}getTokenTypeMap(){const e=this.getTokenNames();if(null===e)throw"The current recognizer does not provide a list of token names.";let r=this.tokenTypeMapCache[e];return void 0===r&&(r=e.reduce((function(t,e,r){t[e]=r})),r.EOF=t.EOF,this.tokenTypeMapCache[e]=r),r}getRuleIndexMap(){const t=this.ruleNames;if(null===t)throw"The current recognizer does not provide a list of rule names.";let e=this.ruleIndexMapCache[t];return void 0===e&&(e=t.reduce((function(t,e,r){t[e]=r})),this.ruleIndexMapCache[t]=e),e}getTokenType(e){const r=this.getTokenTypeMap()[e];return void 0!==r?r:t.INVALID_TYPE}getErrorHeader(t){return"line "+t.getOffendingToken().line+":"+t.getOffendingToken().column}getTokenErrorDisplay(e){if(null===e)return"<no token>";let r=e.text;return null===r&&(r=e.type===t.EOF?"<EOF>":"<"+e.type+">"),r=r.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"),"'"+r+"'"}getErrorListenerDispatch(){return new Lt(this._listeners)}sempred(t,e,r){return!0}precpred(t,e){return!0}get atn(){return this._interp.atn}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}It.tokenTypeMapCache={},It.ruleIndexMapCache={};class Nt extends t{constructor(e,r,s,i,n){super(),this.source=void 0!==e?e:Nt.EMPTY_SOURCE,this.type=void 0!==r?r:null,this.channel=void 0!==s?s:t.DEFAULT_CHANNEL,this.start=void 0!==i?i:-1,this.stop=void 0!==n?n:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=e[0].line,this.column=e[0].column):this.column=-1}clone(){const t=new Nt(this.source,this.type,this.channel,this.start,this.stop);return t.tokenIndex=this.tokenIndex,t.line=this.line,t.column=this.column,t.text=this.text,t}cloneWithType(e){const r=new Nt(this.source,e,this.channel,this.start,this.stop);return r.tokenIndex=this.tokenIndex,r.line=this.line,r.column=this.column,e===t.EOF&&(r.text=""),r}toString(){let t=this.text;return t=null!==t?t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+t+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}get text(){if(null!==this._text)return this._text;const t=this.getInputStream();if(null===t)return null;const e=t.size;return this.start<e&&this.stop<e?t.getText(this.start,this.stop):"<EOF>"}set text(t){this._text=t}}Nt.EMPTY_SOURCE=[null,null];class Dt{}class Ot extends Dt{constructor(t){super(),this.copyText=void 0!==t&&t}create(t,e,r,s,i,n,a,o){const c=new Nt(t,e,s,i,n);return c.line=a,c.column=o,null!==r?c.text=r:this.copyText&&null!==t[1]&&(c.text=t[1].getText(i,n)),c}createThin(t,e){const r=new Nt(null,t);return r.text=e,r}}Ot.DEFAULT=new Ot;class Pt extends Error{constructor(t){super(t.message),Error.captureStackTrace&&Error.captureStackTrace(this,Pt),this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}}class qt extends Pt{constructor(t,e,r,s){super({message:"",recognizer:t,input:e,ctx:null}),this.startIndex=r,this.deadEndConfigs=s}toString(){let t="";return this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getText(new x(this.startIndex,this.startIndex))),"LexerNoViableAltException"+t}}class Yt extends It{constructor(e){super(),this._input=e,this._factory=Ot.DEFAULT,this._tokenFactorySourcePair=[this,e],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=t.DEFAULT_CHANNEL,this._type=t.INVALID_TYPE,this._modeStack=[],this._mode=Yt.DEFAULT_MODE,this._text=null}reset(){null!==this._input&&this._input.seek(0),this._token=null,this._type=t.INVALID_TYPE,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=Yt.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}nextToken(){if(null===this._input)throw"nextToken requires a non-null input stream.";const e=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;let e=!1;for(;;){this._type=t.INVALID_TYPE;let r=Yt.SKIP;try{r=this._interp.match(this._input,this._mode)}catch(t){if(!(t instanceof Pt))throw console.log(t.stack),t;this.notifyListeners(t),this.recover(t)}if(this._input.LA(1)===t.EOF&&(this._hitEOF=!0),this._type===t.INVALID_TYPE&&(this._type=r),this._type===Yt.SKIP){e=!0;break}if(this._type!==Yt.MORE)break}if(!e)return null===this._token&&this.emit(),this._token}}finally{this._input.release(e)}}skip(){this._type=Yt.SKIP}more(){this._type=Yt.MORE}mode(t){this._mode=t}pushMode(t){this._interp.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode}emitToken(t){this._token=t}emit(){const t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(t),t}emitEOF(){const e=this.column,r=this.line,s=this._factory.create(this._tokenFactorySourcePair,t.EOF,null,t.DEFAULT_CHANNEL,this._input.index,this._input.index-1,r,e);return this.emitToken(s),s}getCharIndex(){return this._input.index}getAllTokens(){const e=[];let r=this.nextToken();for(;r.type!==t.EOF;)e.push(r),r=this.nextToken();return e}notifyListeners(t){const e=this._tokenStartCharIndex,r=this._input.index,s=this._input.getText(e,r),i="token recognition error at: '"+this.getErrorDisplay(s)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,i,t)}getErrorDisplay(t){const e=[];for(let r=0;r<t.length;r++)e.push(t[r]);return e.join("")}getErrorDisplayForChar(e){return e.charCodeAt(0)===t.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e}getCharErrorDisplay(t){return"'"+this.getErrorDisplayForChar(t)+"'"}recover(e){this._input.LA(1)!==t.EOF&&(e instanceof qt?this._interp.consume(this._input):this._input.consume())}get inputStream(){return this._input}set inputStream(t){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=t,this._tokenFactorySourcePair=[this,this._input]}get sourceName(){return this._input.sourceName}get type(){return this._type}set type(t){this._type=t}get line(){return this._interp.line}set line(t){this._interp.line=t}get column(){return this._interp.column}set column(t){this._interp.column=t}get text(){return null!==this._text?this._text:this._interp.getText(this._input)}set text(t){this._text=t}}function Ft(t){return t.hashCodeForConfigSet()}function Mt(t,e){return t===e||null!==t&&null!==e&&t.equalsForConfigSet(e)}Yt.DEFAULT_MODE=0,Yt.MORE=-2,Yt.SKIP=-3,Yt.DEFAULT_TOKEN_CHANNEL=t.DEFAULT_CHANNEL,Yt.HIDDEN=t.HIDDEN_CHANNEL,Yt.MIN_CHAR_VALUE=0,Yt.MAX_CHAR_VALUE=1114111;class Ut{constructor(t){this.configLookup=new d(Ft,Mt),this.fullCtx=void 0===t||t,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}add(t,e){if(void 0===e&&(e=null),this.readOnly)throw"This set is readonly";t.semanticContext!==p.NONE&&(this.hasSemanticContext=!0),t.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);const r=this.configLookup.add(t);if(r===t)return this.cachedHashCode=-1,this.configs.push(t),!0;const s=!this.fullCtx,i=$(r.context,t.context,s,e);return r.reachesIntoOuterContext=Math.max(r.reachesIntoOuterContext,t.reachesIntoOuterContext),t.precedenceFilterSuppressed&&(r.precedenceFilterSuppressed=!0),r.context=i,!0}getStates(){const t=new d;for(let e=0;e<this.configs.length;e++)t.add(this.configs[e].state);return t}getPredicates(){const t=[];for(let e=0;e<this.configs.length;e++){const r=this.configs[e].semanticContext;r!==p.NONE&&t.push(r.semanticContext)}return t}optimizeConfigs(t){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(let e=0;e<this.configs.length;e++){const r=this.configs[e];r.context=t.getCachedContext(r.context)}}addAll(t){for(let e=0;e<t.length;e++)this.add(t[e]);return!1}equals(t){return this===t||t instanceof Ut&&e(this.configs,t.configs)&&this.fullCtx===t.fullCtx&&this.uniqueAlt===t.uniqueAlt&&this.conflictingAlts===t.conflictingAlts&&this.hasSemanticContext===t.hasSemanticContext&&this.dipsIntoOuterContext===t.dipsIntoOuterContext}hashCode(){const t=new a;return t.update(this.configs),t.finish()}updateHashCode(t){this.readOnly?(-1===this.cachedHashCode&&(this.cachedHashCode=this.hashCode()),t.update(this.cachedHashCode)):t.update(this.hashCode())}isEmpty(){return 0===this.configs.length}contains(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(t)}containsFast(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(t)}clear(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new d}setReadonly(t){this.readOnly=t,t&&(this.configLookup=null)}toString(){return h(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==z.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}get items(){return this.configs}get length(){return this.configs.length}}class Bt{constructor(t,e){return null===t&&(t=-1),null===e&&(e=new Ut),this.stateNumber=t,this.configs=e,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}getAltSet(){const t=new d;if(null!==this.configs)for(let e=0;e<this.configs.length;e++){const r=this.configs[e];t.add(r.alt)}return 0===t.length?null:t}equals(t){return this===t||t instanceof Bt&&this.configs.equals(t.configs)}toString(){let t=this.stateNumber+":"+this.configs;return this.isAcceptState&&(t+="=>",null!==this.predicates?t+=this.predicates:t+=this.prediction),t}hashCode(){const t=new a;return t.update(this.configs),t.finish()}}class Vt{constructor(t,e){return this.atn=t,this.sharedContextCache=e,this}getCachedContext(t){if(null===this.sharedContextCache)return t;const e=new V;return j(t,this.sharedContextCache,e)}}Vt.ERROR=new Bt(2147483647,new Ut);class Ht extends Ut{constructor(){super(),this.configLookup=new d}}class jt extends w{constructor(t,e){super(t,e);const r=t.lexerActionExecutor||null;return this.lexerActionExecutor=r||(null!==e?e.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==e&&this.checkNonGreedyDecision(e,this.state),this.hashCodeForConfigSet=jt.prototype.hashCode,this.equalsForConfigSet=jt.prototype.equals,this}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}equals(t){return this===t||t instanceof jt&&this.passedThroughNonGreedyDecision===t.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(t.lexerActionExecutor):!t.lexerActionExecutor)&&super.equals(t)}checkNonGreedyDecision(t,e){return t.passedThroughNonGreedyDecision||e instanceof X&&e.nonGreedy}}class $t extends wt{constructor(t,e){super(e.actionType),this.offset=t,this.action=e,this.isPositionDependent=!0}execute(t){this.action.execute(t)}updateHashCode(t){t.update(this.actionType,this.offset,this.action)}equals(t){return this===t||t instanceof $t&&this.offset===t.offset&&this.action===t.action}}class Qt{constructor(t){return this.lexerActions=null===t?[]:t,this.cachedHashCode=a.hashStuff(t),this}fixOffsetBeforeMatch(t){let e=null;for(let r=0;r<this.lexerActions.length;r++)!this.lexerActions[r].isPositionDependent||this.lexerActions[r]instanceof $t||(null===e&&(e=this.lexerActions.concat([])),e[r]=new $t(t,this.lexerActions[r]));return null===e?this:new Qt(e)}execute(t,e,r){let s=!1;const i=e.index;try{for(let n=0;n<this.lexerActions.length;n++){let a=this.lexerActions[n];if(a instanceof $t){const t=a.offset;e.seek(r+t),a=a.action,s=r+t!==i}else a.isPositionDependent&&(e.seek(i),s=!1);a.execute(t)}}finally{s&&e.seek(i)}}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}equals(t){if(this===t)return!0;if(t instanceof Qt){if(this.cachedHashCode!=t.cachedHashCode)return!1;if(this.lexerActions.length!=t.lexerActions.length)return!1;{const e=this.lexerActions.length;for(let r=0;r<e;++r)if(!this.lexerActions[r].equals(t.lexerActions[r]))return!1;return!0}}return!1}static append(t,e){if(null===t)return new Qt([e]);const r=t.lexerActions.concat([e]);return new Qt(r)}}function Gt(t){t.index=-1,t.line=0,t.column=-1,t.dfaState=null}class zt{constructor(){Gt(this)}reset(){Gt(this)}}class Wt extends Vt{constructor(t,e,r,s){super(e,s),this.decisionToDFA=r,this.recog=t,this.startIndex=-1,this.line=1,this.column=0,this.mode=Yt.DEFAULT_MODE,this.prevAccept=new zt}copyState(t){this.column=t.column,this.line=t.line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;const r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();const r=this.decisionToDFA[e];return null===r.s0?this.matchATN(t):this.execATN(t,r.s0)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=Yt.DEFAULT_MODE}matchATN(t){const e=this.atn.modeToStartState[this.mode];Wt.debug&&console.log("matchATN mode "+this.mode+" start: "+e);const r=this.mode,s=this.computeStartState(t,e),i=s.hasSemanticContext;s.hasSemanticContext=!1;const n=this.addDFAState(s);i||(this.decisionToDFA[this.mode].s0=n);const a=this.execATN(t,n);return Wt.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[r].toLexerString()),a}execATN(e,r){Wt.debug&&console.log("start state closure="+r.configs),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let s=e.LA(1),i=r;for(;;){Wt.debug&&console.log("execATN loop starting closure: "+i.configs);let r=this.getExistingTargetState(i,s);if(null===r&&(r=this.computeTargetState(e,i,s)),r===Vt.ERROR)break;if(s!==t.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),s===t.EOF))break;s=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,s)}getExistingTargetState(t,e){if(null===t.edges||e<Wt.MIN_DFA_EDGE||e>Wt.MAX_DFA_EDGE)return null;let r=t.edges[e-Wt.MIN_DFA_EDGE];return void 0===r&&(r=null),Wt.debug&&null!==r&&console.log("reuse state "+t.stateNumber+" edge to "+r.stateNumber),r}computeTargetState(t,e,r){const s=new Ht;return this.getReachableConfigSet(t,e.configs,s,r),0===s.items.length?(s.hasSemanticContext||this.addDFAEdge(e,r,Vt.ERROR),Vt.ERROR):this.addDFAEdge(e,r,null,s)}failOrAccept(e,r,s,i){if(null!==this.prevAccept.dfaState){const t=e.dfaState.lexerActionExecutor;return this.accept(r,t,this.startIndex,e.index,e.line,e.column),e.dfaState.prediction}if(i===t.EOF&&r.index===this.startIndex)return t.EOF;throw new qt(this.recog,r,this.startIndex,s)}getReachableConfigSet(e,r,s,i){let n=z.INVALID_ALT_NUMBER;for(let a=0;a<r.items.length;a++){const o=r.items[a],c=o.alt===n;if(!c||!o.passedThroughNonGreedyDecision){Wt.debug&&console.log("testing %s at %s\n",this.getTokenName(i),o.toString(this.recog,!0));for(let r=0;r<o.state.transitions.length;r++){const a=o.state.transitions[r],l=this.getReachableTarget(a,i);if(null!==l){let r=o.lexerActionExecutor;null!==r&&(r=r.fixOffsetBeforeMatch(e.index-this.startIndex));const a=i===t.EOF,h=new jt({state:l,lexerActionExecutor:r},o);this.closure(e,h,s,c,!0,a)&&(n=o.alt)}}}}}accept(t,e,r,s,i,n){Wt.debug&&console.log("ACTION %s\n",e),t.seek(s),this.line=i,this.column=n,null!==e&&null!==this.recog&&e.execute(this.recog,t,r)}getReachableTarget(t,e){return t.matches(e,0,Yt.MAX_CHAR_VALUE)?t.target:null}computeStartState(t,e){const r=Y.EMPTY,s=new Ht;for(let i=0;i<e.transitions.length;i++){const n=e.transitions[i].target,a=new jt({state:n,alt:i+1,context:r},null);this.closure(t,a,s,!1,!1,!1)}return s}closure(t,e,r,s,i,n){let a=null;if(Wt.debug&&console.log("closure("+e.toString(this.recog,!0)+")"),e.state instanceof _){if(Wt.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.ruleNames[e.state.ruleIndex],e):console.log("closure at rule stop %s\n",e)),null===e.context||e.context.hasEmptyPath()){if(null===e.context||e.context.isEmpty())return r.add(e),!0;r.add(new jt({state:e.state,context:Y.EMPTY},e)),s=!0}if(null!==e.context&&!e.context.isEmpty())for(let o=0;o<e.context.length;o++)if(e.context.getReturnState(o)!==Y.EMPTY_RETURN_STATE){const c=e.context.getParent(o),l=this.atn.states[e.context.getReturnState(o)];a=new jt({state:l,context:c},e),s=this.closure(t,a,r,s,i,n)}return s}e.state.epsilonOnlyTransitions||s&&e.passedThroughNonGreedyDecision||r.add(e);for(let o=0;o<e.state.transitions.length;o++){const c=e.state.transitions[o];a=this.getEpsilonTarget(t,e,c,r,i,n),null!==a&&(s=this.closure(t,a,r,s,i,n))}return s}getEpsilonTarget(e,r,s,i,n,a){let o=null;if(s.serializationType===E.RULE){const t=M.create(r.context,s.followState.stateNumber);o=new jt({state:s.target,context:t},r)}else{if(s.serializationType===E.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(s.serializationType===E.PREDICATE)Wt.debug&&console.log("EVAL rule "+s.ruleIndex+":"+s.predIndex),i.hasSemanticContext=!0,this.evaluatePredicate(e,s.ruleIndex,s.predIndex,n)&&(o=new jt({state:s.target},r));else if(s.serializationType===E.ACTION)if(null===r.context||r.context.hasEmptyPath()){const t=Qt.append(r.lexerActionExecutor,this.atn.lexerActions[s.actionIndex]);o=new jt({state:s.target,lexerActionExecutor:t},r)}else o=new jt({state:s.target},r);else s.serializationType===E.EPSILON?o=new jt({state:s.target},r):s.serializationType!==E.ATOM&&s.serializationType!==E.RANGE&&s.serializationType!==E.SET||a&&s.matches(t.EOF,0,Yt.MAX_CHAR_VALUE)&&(o=new jt({state:s.target},r))}return o}evaluatePredicate(t,e,r,s){if(null===this.recog)return!0;if(!s)return this.recog.sempred(null,e,r);const i=this.column,n=this.line,a=t.index,o=t.mark();try{return this.consume(t),this.recog.sempred(null,e,r)}finally{this.column=i,this.line=n,t.seek(a),t.release(o)}}captureSimState(t,e,r){t.index=e.index,t.line=this.line,t.column=this.column,t.dfaState=r}addDFAEdge(t,e,r,s){if(void 0===r&&(r=null),void 0===s&&(s=null),null===r&&null!==s){const t=s.hasSemanticContext;if(s.hasSemanticContext=!1,r=this.addDFAState(s),t)return r}return e<Wt.MIN_DFA_EDGE||e>Wt.MAX_DFA_EDGE||(Wt.debug&&console.log("EDGE "+t+" -> "+r+" upon "+e),null===t.edges&&(t.edges=[]),t.edges[e-Wt.MIN_DFA_EDGE]=r),r}addDFAState(t){const e=new Bt(null,t);let r=null;for(let e=0;e<t.items.length;e++){const s=t.items[e];if(s.state instanceof _){r=s;break}}null!==r&&(e.isAcceptState=!0,e.lexerActionExecutor=r.lexerActionExecutor,e.prediction=this.atn.ruleToTokenType[r.state.ruleIndex]);const s=this.decisionToDFA[this.mode],i=s.states.get(e);if(null!==i)return i;const n=e;return n.stateNumber=s.states.length,t.setReadonly(!0),n.configs=t,s.states.add(n),n}getDFA(t){return this.decisionToDFA[t]}getText(t){return t.getText(this.startIndex,t.index-1)}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}}Wt.debug=!1,Wt.dfa_debug=!1,Wt.MIN_DFA_EDGE=0,Wt.MAX_DFA_EDGE=127;class Xt{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}}class Jt{constructor(){this.data={}}get(t){return this.data["k-"+t]||null}set(t,e){this.data["k-"+t]=e}values(){return Object.keys(this.data).filter((t=>t.startsWith("k-"))).map((t=>this.data[t]),this)}}const Zt={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(t,e){if(Zt.allConfigsInRuleStopStates(e))return!0;if(t===Zt.SLL&&e.hasSemanticContext){const t=new Ut;for(let r=0;r<e.items.length;r++){let s=e.items[r];s=new w({semanticContext:p.NONE},s),t.add(s)}e=t}const r=Zt.getConflictingAltSubsets(e);return Zt.hasConflictingAltSet(r)&&!Zt.hasStateAssociatedWithOneAlt(e)},hasConfigInRuleStopState:function(t){for(let e=0;e<t.items.length;e++)if(t.items[e].state instanceof _)return!0;return!1},allConfigsInRuleStopStates:function(t){for(let e=0;e<t.items.length;e++)if(!(t.items[e].state instanceof _))return!1;return!0},resolvesToJustOneViableAlt:function(t){return Zt.getSingleViableAlt(t)},allSubsetsConflict:function(t){return!Zt.hasNonConflictingAltSet(t)},hasNonConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(1===t[e].length)return!0;return!1},hasConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(t[e].length>1)return!0;return!1},allSubsetsEqual:function(t){let e=null;for(let r=0;r<t.length;r++){const s=t[r];if(null===e)e=s;else if(s!==e)return!1}return!0},getUniqueAlt:function(t){const e=Zt.getAlts(t);return 1===e.length?e.minValue():z.INVALID_ALT_NUMBER},getAlts:function(t){const e=new Q;return t.map((function(t){e.or(t)})),e},getConflictingAltSubsets:function(t){const e=new V;return e.hashFunction=function(t){a.hashStuff(t.state.stateNumber,t.context)},e.equalsFunction=function(t,e){return t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)},t.items.map((function(t){let r=e.get(t);null===r&&(r=new Q,e.set(t,r)),r.add(t.alt)})),e.getValues()},getStateToAltMap:function(t){const e=new Jt;return t.items.map((function(t){let r=e.get(t.state);null===r&&(r=new Q,e.set(t.state,r)),r.add(t.alt)})),e},hasStateAssociatedWithOneAlt:function(t){const e=Zt.getStateToAltMap(t).values();for(let t=0;t<e.length;t++)if(1===e[t].length)return!0;return!1},getSingleViableAlt:function(t){let e=null;for(let r=0;r<t.length;r++){const s=t[r].minValue();if(null===e)e=s;else if(e!==s)return z.INVALID_ALT_NUMBER}return e}},te=Zt;class ee extends Pt{constructor(t,e,r,s,i,n){n=n||t._ctx,s=s||t.getCurrentToken(),r=r||t.getCurrentToken(),e=e||t.getInputStream(),super({message:"",recognizer:t,input:e,ctx:n}),this.deadEndConfigs=i,this.startToken=r,this.offendingToken=s}}class re{constructor(t){this.defaultMapCtor=t||V,this.cacheMap=new this.defaultMapCtor}get(t,e){const r=this.cacheMap.get(t)||null;return null===r?null:r.get(e)||null}set(t,e,r){let s=this.cacheMap.get(t)||null;null===s&&(s=new this.defaultMapCtor,this.cacheMap.set(t,s)),s.set(e,r)}}class se extends Vt{constructor(t,e,r,s){super(e,s),this.parser=t,this.decisionToDFA=r,this.predictionMode=te.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this.debug=!1,this.debug_closure=!1,this.debug_add=!1,this.trace_atn_sim=!1,this.dfa_debug=!1,this.retry_debug=!1}reset(){}adaptivePredict(t,e,r){(this.debug||this.trace_atn_sim)&&console.log("adaptivePredict decision "+e+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column),this._input=t,this._startIndex=t.index,this._outerContext=r;const s=this.decisionToDFA[e];this._dfa=s;const i=t.mark(),n=t.index;try{let e;if(e=s.precedenceDfa?s.getPrecedenceStartState(this.parser.getPrecedence()):s.s0,null===e){null===r&&(r=q.EMPTY),this.debug&&console.log("predictATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+r.toString(this.parser.ruleNames));const i=!1;let n=this.computeStartState(s.atnStartState,q.EMPTY,i);s.precedenceDfa?(s.s0.configs=n,n=this.applyPrecedenceFilter(n),e=this.addDFAState(s,new Bt(null,n)),s.setPrecedenceStartState(this.parser.getPrecedence(),e)):(e=this.addDFAState(s,new Bt(null,n)),s.s0=e)}const i=this.execATN(s,e,t,n,r);return this.debug&&console.log("DFA after predictATN: "+s.toString(this.parser.literalNames,this.parser.symbolicNames)),i}finally{this._dfa=null,this.mergeCache=null,t.seek(n),t.release(i)}}execATN(e,r,s,i,n){let a;(this.debug||this.trace_atn_sim)&&console.log("execATN decision "+e.decision+", DFA state "+r+", LA(1)=="+this.getLookaheadName(s)+" line "+s.LT(1).line+":"+s.LT(1).column);let o=r;this.debug&&console.log("s0 = "+r);let c=s.LA(1);for(;;){let r=this.getExistingTargetState(o,c);if(null===r&&(r=this.computeTargetState(e,o,c)),r===Vt.ERROR){const t=this.noViableAlt(s,n,o.configs,i);if(s.seek(i),a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(o.configs,n),a!==z.INVALID_ALT_NUMBER)return a;throw t}if(r.requiresFullContext&&this.predictionMode!==te.SLL){let t=null;if(null!==r.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");const e=s.index;if(e!==i&&s.seek(i),t=this.evalSemanticContext(r.predicates,n,!0),1===t.length)return this.debug&&console.log("Full LL avoided"),t.minValue();e!==i&&s.seek(e)}this.dfa_debug&&console.log("ctx sensitive state "+n+" in "+r);const o=!0,c=this.computeStartState(e.atnStartState,n,o);return this.reportAttemptingFullContext(e,t,r.configs,i,s.index),a=this.execATNWithFullContext(e,r,c,s,i,n),a}if(r.isAcceptState){if(null===r.predicates)return r.prediction;const t=s.index;s.seek(i);const a=this.evalSemanticContext(r.predicates,n,!0);if(0===a.length)throw this.noViableAlt(s,n,r.configs,i);return 1===a.length||this.reportAmbiguity(e,r,i,t,!1,a,r.configs),a.minValue()}o=r,c!==t.EOF&&(s.consume(),c=s.LA(1))}}getExistingTargetState(t,e){const r=t.edges;return null===r?null:r[e+1]||null}computeTargetState(t,e,r){const s=this.computeReachSet(e.configs,r,!1);if(null===s)return this.addDFAEdge(t,e,r,Vt.ERROR),Vt.ERROR;let i=new Bt(null,s);const n=this.getUniqueAlt(s);if(this.debug){const t=te.getConflictingAltSubsets(s);console.log("SLL altSubSets="+h(t)+", configs="+s+", predict="+n+", allSubsetsConflict="+te.allSubsetsConflict(t)+", conflictingAlts="+this.getConflictingAlts(s))}return n!==z.INVALID_ALT_NUMBER?(i.isAcceptState=!0,i.configs.uniqueAlt=n,i.prediction=n):te.hasSLLConflictTerminatingPrediction(this.predictionMode,s)&&(i.configs.conflictingAlts=this.getConflictingAlts(s),i.requiresFullContext=!0,i.isAcceptState=!0,i.prediction=i.configs.conflictingAlts.minValue()),i.isAcceptState&&i.configs.hasSemanticContext&&(this.predicateDFAState(i,this.atn.getDecisionState(t.decision)),null!==i.predicates&&(i.prediction=z.INVALID_ALT_NUMBER)),i=this.addDFAEdge(t,e,r,i),i}predicateDFAState(t,e){const r=e.transitions.length,s=this.getConflictingAltsOrUniqueAlt(t.configs),i=this.getPredsForAmbigAlts(s,t.configs,r);null!==i?(t.predicates=this.getPredicatePredictions(s,i),t.prediction=z.INVALID_ALT_NUMBER):t.prediction=s.minValue()}execATNWithFullContext(e,r,s,i,n,a){(this.debug||this.trace_atn_sim)&&console.log("execATNWithFullContext "+s);let o,c=!1,l=s;i.seek(n);let h=i.LA(1),u=-1;for(;;){if(o=this.computeReachSet(l,h,!0),null===o){const t=this.noViableAlt(i,a,l,n);i.seek(n);const e=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(l,a);if(e!==z.INVALID_ALT_NUMBER)return e;throw t}const e=te.getConflictingAltSubsets(o);if(this.debug&&console.log("LL altSubSets="+e+", predict="+te.getUniqueAlt(e)+", resolvesToJustOneViableAlt="+te.resolvesToJustOneViableAlt(e)),o.uniqueAlt=this.getUniqueAlt(o),o.uniqueAlt!==z.INVALID_ALT_NUMBER){u=o.uniqueAlt;break}if(this.predictionMode!==te.LL_EXACT_AMBIG_DETECTION){if(u=te.resolvesToJustOneViableAlt(e),u!==z.INVALID_ALT_NUMBER)break}else if(te.allSubsetsConflict(e)&&te.allSubsetsEqual(e)){c=!0,u=te.getSingleViableAlt(e);break}l=o,h!==t.EOF&&(i.consume(),h=i.LA(1))}return o.uniqueAlt!==z.INVALID_ALT_NUMBER?(this.reportContextSensitivity(e,u,o,n,i.index),u):(this.reportAmbiguity(e,r,n,i.index,c,null,o),u)}computeReachSet(e,r,s){this.debug&&console.log("in computeReachSet, starting closure: "+e),null===this.mergeCache&&(this.mergeCache=new re);const i=new Ut(s);let n=null;for(let a=0;a<e.items.length;a++){const o=e.items[a];if(this.debug&&console.log("testing "+this.getTokenName(r)+" at "+o),o.state instanceof _)(s||r===t.EOF)&&(null===n&&(n=[]),n.push(o),this.debug_add&&console.log("added "+o+" to skippedStopStates"));else for(let t=0;t<o.state.transitions.length;t++){const e=o.state.transitions[t],s=this.getReachableTarget(e,r);if(null!==s){const t=new w({state:s},o);i.add(t,this.mergeCache),this.debug_add&&console.log("added "+t+" to intermediate")}}}let a=null;if(null===n&&r!==t.EOF&&(1===i.items.length||this.getUniqueAlt(i)!==z.INVALID_ALT_NUMBER)&&(a=i),null===a){a=new Ut(s);const e=new d,n=r===t.EOF;for(let t=0;t<i.items.length;t++)this.closure(i.items[t],a,e,!1,s,n)}if(r===t.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===i)),!(null===n||s&&te.hasConfigInRuleStopState(a)))for(let t=0;t<n.length;t++)a.add(n[t],this.mergeCache);return this.trace_atn_sim&&console.log("computeReachSet "+e+" -> "+a),0===a.items.length?null:a}removeAllConfigsNotInRuleStopState(e,r){if(te.allConfigsInRuleStopStates(e))return e;const s=new Ut(e.fullCtx);for(let i=0;i<e.items.length;i++){const n=e.items[i];if(n.state instanceof _)s.add(n,this.mergeCache);else if(r&&n.state.epsilonOnlyTransitions&&this.atn.nextTokens(n.state).contains(t.EPSILON)){const t=this.atn.ruleToStopState[n.state.ruleIndex];s.add(new w({state:t},n),this.mergeCache)}}return s}computeStartState(t,e,r){const s=H(this.atn,e),i=new Ut(r);this.trace_atn_sim&&console.log("computeStartState from ATN state "+t+" initialContext="+s.toString(this.parser));for(let e=0;e<t.transitions.length;e++){const n=t.transitions[e].target,a=new w({state:n,alt:e+1,context:s},null),o=new d;this.closure(a,i,o,!0,r,!1)}return i}applyPrecedenceFilter(t){let e;const r=[],s=new Ut(t.fullCtx);for(let i=0;i<t.items.length;i++){if(e=t.items[i],1!==e.alt)continue;const n=e.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==n&&(r[e.state.stateNumber]=e.context,n!==e.semanticContext?s.add(new w({semanticContext:n},e),this.mergeCache):s.add(e,this.mergeCache))}for(let i=0;i<t.items.length;i++)if(e=t.items[i],1!==e.alt){if(!e.precedenceFilterSuppressed){const t=r[e.state.stateNumber]||null;if(null!==t&&t.equals(e.context))continue}s.add(e,this.mergeCache)}return s}getReachableTarget(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null}getPredsForAmbigAlts(t,e,r){let s=[];for(let r=0;r<e.items.length;r++){const i=e.items[r];t.has(i.alt)&&(s[i.alt]=p.orContext(s[i.alt]||null,i.semanticContext))}let i=0;for(let t=1;t<r+1;t++){const e=s[t]||null;null===e?s[t]=p.NONE:e!==p.NONE&&(i+=1)}return 0===i&&(s=null),this.debug&&console.log("getPredsForAmbigAlts result "+h(s)),s}getPredicatePredictions(t,e){const r=[];let s=!1;for(let i=1;i<e.length;i++){const n=e[i];null!==t&&t.has(i)&&r.push(new Xt(n,i)),n!==p.NONE&&(s=!0)}return s?r:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(t,e){const r=this.splitAccordingToSemanticValidity(t,e),s=r[0],i=r[1];let n=this.getAltThatFinishedDecisionEntryRule(s);return n!==z.INVALID_ALT_NUMBER||i.items.length>0&&(n=this.getAltThatFinishedDecisionEntryRule(i),n!==z.INVALID_ALT_NUMBER)?n:z.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(t){const e=[];for(let r=0;r<t.items.length;r++){const s=t.items[r];(s.reachesIntoOuterContext>0||s.state instanceof _&&s.context.hasEmptyPath())&&e.indexOf(s.alt)<0&&e.push(s.alt)}return 0===e.length?z.INVALID_ALT_NUMBER:Math.min.apply(null,e)}splitAccordingToSemanticValidity(t,e){const r=new Ut(t.fullCtx),s=new Ut(t.fullCtx);for(let i=0;i<t.items.length;i++){const n=t.items[i];n.semanticContext!==p.NONE?n.semanticContext.evaluate(this.parser,e)?r.add(n):s.add(n):r.add(n)}return[r,s]}evalSemanticContext(t,e,r){const s=new Q;for(let i=0;i<t.length;i++){const n=t[i];if(n.pred===p.NONE){if(s.add(n.alt),!r)break;continue}const a=n.pred.evaluate(this.parser,e);if((this.debug||this.dfa_debug)&&console.log("eval pred "+n+"="+a),a&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+n.alt),s.add(n.alt),!r))break}return s}closure(t,e,r,s,i,n){this.closureCheckingStopState(t,e,r,s,i,0,n)}closureCheckingStopState(t,e,r,s,i,n,a){if((this.trace_atn_sim||this.debug_closure)&&console.log("closure("+t.toString(this.parser,!0)+")"),t.state instanceof _){if(!t.context.isEmpty()){for(let o=0;o<t.context.length;o++){if(t.context.getReturnState(o)===Y.EMPTY_RETURN_STATE){if(i){e.add(new w({state:t.state,context:Y.EMPTY},t),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,e,r,s,i,n,a);continue}const c=this.atn.states[t.context.getReturnState(o)],l=t.context.getParent(o),h={state:c,alt:t.alt,context:l,semanticContext:t.semanticContext},u=new w(h,null);u.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(u,e,r,s,i,n-1,a)}return}if(i)return void e.add(t,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,e,r,s,i,n,a)}closure_(t,e,r,s,i,n,a){const o=t.state;o.epsilonOnlyTransitions||e.add(t,this.mergeCache);for(let c=0;c<o.transitions.length;c++){if(0===c&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const l=o.transitions[c],h=s&&!(l instanceof ut),u=this.getEpsilonTarget(t,l,h,0===n,i,a);if(null!==u){let s=n;if(t.state instanceof _){if(null!==this._dfa&&this._dfa.precedenceDfa&&l.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(u.precedenceFilterSuppressed=!0),u.reachesIntoOuterContext+=1,r.add(u)!==u)continue;e.dipsIntoOuterContext=!0,s-=1,this.debug&&console.log("dips into outer ctx: "+u)}else{if(!l.isEpsilon&&r.add(u)!==u)continue;l instanceof T&&s>=0&&(s+=1)}this.closureCheckingStopState(u,e,r,h,i,s,a)}}}canDropLoopEntryEdgeInLeftRecursiveRule(t){const e=t.state;if(e.stateType!==b.STAR_LOOP_ENTRY)return!1;if(e.stateType!==b.STAR_LOOP_ENTRY||!e.isPrecedenceDecision||t.context.isEmpty()||t.context.hasEmptyPath())return!1;const r=t.context.length;for(let s=0;s<r;s++)if(this.atn.states[t.context.getReturnState(s)].ruleIndex!==e.ruleIndex)return!1;const s=e.transitions[0].target.endState.stateNumber,i=this.atn.states[s];for(let s=0;s<r;s++){const r=t.context.getReturnState(s),n=this.atn.states[r];if(1!==n.transitions.length||!n.transitions[0].isEpsilon)return!1;const a=n.transitions[0].target;if(!(n.stateType===b.BLOCK_END&&a===e||n===i||a===i||a.stateType===b.BLOCK_END&&1===a.transitions.length&&a.transitions[0].isEpsilon&&a.transitions[0].target===e))return!1}return!0}getRuleName(t){return null!==this.parser&&t>=0?this.parser.ruleNames[t]:"<rule "+t+">"}getEpsilonTarget(e,r,s,i,n,a){switch(r.serializationType){case E.RULE:return this.ruleTransition(e,r);case E.PRECEDENCE:return this.precedenceTransition(e,r,s,i,n);case E.PREDICATE:return this.predTransition(e,r,s,i,n);case E.ACTION:return this.actionTransition(e,r);case E.EPSILON:return new w({state:r.target},e);case E.ATOM:case E.RANGE:case E.SET:return a&&r.matches(t.EOF,0,1)?new w({state:r.target},e):null;default:return null}}actionTransition(t,e){if(this.debug){const t=-1===e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+t)}return new w({state:e.target},t)}precedenceTransition(t,e,r,s,i){this.debug&&(console.log("PRED (collectPredicates="+r+") "+e.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+h(this.parser.getRuleInvocationStack())));let n=null;if(r&&s)if(i){const r=this._input.index;this._input.seek(this._startIndex);const s=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),s&&(n=new w({state:e.target},t))}else{const r=p.andContext(t.semanticContext,e.getPredicate());n=new w({state:e.target,semanticContext:r},t)}else n=new w({state:e.target},t);return this.debug&&console.log("config from pred transition="+n),n}predTransition(t,e,r,s,i){this.debug&&(console.log("PRED (collectPredicates="+r+") "+e.ruleIndex+":"+e.predIndex+", ctx dependent="+e.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+h(this.parser.getRuleInvocationStack())));let n=null;if(r&&(e.isCtxDependent&&s||!e.isCtxDependent))if(i){const r=this._input.index;this._input.seek(this._startIndex);const s=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),s&&(n=new w({state:e.target},t))}else{const r=p.andContext(t.semanticContext,e.getPredicate());n=new w({state:e.target,semanticContext:r},t)}else n=new w({state:e.target},t);return this.debug&&console.log("config from pred transition="+n),n}ruleTransition(t,e){this.debug&&console.log("CALL rule "+this.getRuleName(e.target.ruleIndex)+", ctx="+t.context);const r=e.followState,s=M.create(t.context,r.stateNumber);return new w({state:e.target,context:s},t)}getConflictingAlts(t){const e=te.getConflictingAltSubsets(t);return te.getAlts(e)}getConflictingAltsOrUniqueAlt(t){let e=null;return t.uniqueAlt!==z.INVALID_ALT_NUMBER?(e=new Q,e.add(t.uniqueAlt)):e=t.conflictingAlts,e}getTokenName(e){if(e===t.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(e>=this.parser.literalNames.length&&e>=this.parser.symbolicNames.length))return(this.parser.literalNames[e]||this.parser.symbolicNames[e])+"<"+e+">";console.log(e+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+e}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");const e=t.getDeadEndConfigs();for(let t=0;t<e.length;t++){const r=e[t];let s="no edges";if(r.state.transitions.length>0){const t=r.state.transitions[0];t instanceof lt?s="Atom "+this.getTokenName(t.label):t instanceof S&&(s=(t instanceof k?"~":"")+"Set "+t.set)}console.error(r.toString(this.parser,!0)+":"+s)}}noViableAlt(t,e,r,s){return new ee(this.parser,t,t.get(s),t.LT(1),r,e)}getUniqueAlt(t){let e=z.INVALID_ALT_NUMBER;for(let r=0;r<t.items.length;r++){const s=t.items[r];if(e===z.INVALID_ALT_NUMBER)e=s.alt;else if(s.alt!==e)return z.INVALID_ALT_NUMBER}return e}addDFAEdge(t,e,r,s){if(this.debug&&console.log("EDGE "+e+" -> "+s+" upon "+this.getTokenName(r)),null===s)return null;if(s=this.addDFAState(t,s),null===e||r<-1||r>this.atn.maxTokenType)return s;if(null===e.edges&&(e.edges=[]),e.edges[r+1]=s,this.debug){const e=null===this.parser?null:this.parser.literalNames,r=null===this.parser?null:this.parser.symbolicNames;console.log("DFA=\n"+t.toString(e,r))}return s}addDFAState(t,e){if(e===Vt.ERROR)return e;const r=t.states.get(e);return null!==r?(this.trace_atn_sim&&console.log("addDFAState "+e+" exists"),r):(e.stateNumber=t.states.length,e.configs.readOnly||(e.configs.optimizeConfigs(this),e.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+e),t.states.add(e),this.debug&&console.log("adding new DFA state: "+e),e)}reportAttemptingFullContext(t,e,r,s,i){if(this.debug||this.retry_debug){const e=new x(s,i+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+r+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,t,s,i,e,r)}reportContextSensitivity(t,e,r,s,i){if(this.debug||this.retry_debug){const e=new x(s,i+1);console.log("reportContextSensitivity decision="+t.decision+":"+r+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,t,s,i,e,r)}reportAmbiguity(t,e,r,s,i,n,a){if(this.debug||this.retry_debug){const t=new x(r,s+1);console.log("reportAmbiguity "+n+":"+a+", input="+this.parser.getTokenStream().getText(t))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,t,r,s,i,n,a)}}class ie{constructor(){this.cache=new V}add(t){if(t===Y.EMPTY)return Y.EMPTY;const e=this.cache.get(t)||null;return null!==e?e:(this.cache.set(t,t),t)}get(t){return this.cache.get(t)||null}get length(){return this.cache.length}}const ne={ATN:z,ATNDeserializer:At,LexerATNSimulator:Wt,ParserATNSimulator:se,PredictionMode:te,PredictionContextCache:ie};class ae{constructor(t,e,r){this.dfa=t,this.literalNames=e||[],this.symbolicNames=r||[]}toString(){if(null===this.dfa.s0)return null;let t="";const e=this.dfa.sortedStates();for(let r=0;r<e.length;r++){const s=e[r];if(null!==s.edges){const e=s.edges.length;for(let r=0;r<e;r++){const e=s.edges[r]||null;null!==e&&2147483647!==e.stateNumber&&(t=t.concat(this.getStateString(s)),t=t.concat("-"),t=t.concat(this.getEdgeLabel(r)),t=t.concat("->"),t=t.concat(this.getStateString(e)),t=t.concat("\n"))}}}return 0===t.length?null:t}getEdgeLabel(t){return 0===t?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[t-1]||this.symbolicNames[t-1]:String.fromCharCode(t-1)}getStateString(t){const e=(t.isAcceptState?":":"")+"s"+t.stateNumber+(t.requiresFullContext?"^":"");return t.isAcceptState?null!==t.predicates?e+"=>"+h(t.predicates):e+"=>"+t.prediction.toString():e}}class oe extends ae{constructor(t){super(t,null)}getEdgeLabel(t){return"'"+String.fromCharCode(t)+"'"}}class ce{constructor(t,e){if(void 0===e&&(e=0),this.atnStartState=t,this.decision=e,this._states=new d,this.s0=null,this.precedenceDfa=!1,t instanceof nt&&t.isPrecedenceDecision){this.precedenceDfa=!0;const t=new Bt(null,new Ut);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}}getPrecedenceStartState(t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return t<0||t>=this.s0.edges.length?null:this.s0.edges[t]||null}setPrecedenceStartState(t,e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";t<0||(this.s0.edges[t]=e)}setPrecedenceDfa(t){if(this.precedenceDfa!==t){if(this._states=new d,t){const t=new Bt(null,new Ut);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}else this.s0=null;this.precedenceDfa=t}}sortedStates(){return this._states.values().sort((function(t,e){return t.stateNumber-e.stateNumber}))}toString(t,e){return t=t||null,e=e||null,null===this.s0?"":new ae(this,t,e).toString()}toLexerString(){return null===this.s0?"":new oe(this).toString()}get states(){return this._states}}const le={DFA:ce,DFASerializer:ae,LexerDFASerializer:oe,PredPrediction:Xt},he={PredictionContext:Y},ue={Interval:x,IntervalSet:v};class de{visitTerminal(t){}visitErrorNode(t){}enterEveryRule(t){}exitEveryRule(t){}}class pe{visit(t){return Array.isArray(t)?t.map((function(t){return t.accept(this)}),this):t.accept(this)}visitChildren(t){return t.children?this.visit(t.children):null}visitTerminal(t){}visitErrorNode(t){}}class me{walk(t,e){if(e instanceof D||void 0!==e.isErrorNode&&e.isErrorNode())t.visitErrorNode(e);else if(e instanceof N)t.visitTerminal(e);else{this.enterRule(t,e);for(let r=0;r<e.getChildCount();r++){const s=e.getChild(r);this.walk(t,s)}this.exitRule(t,e)}}enterRule(t,e){const r=e.ruleContext;t.enterEveryRule(r),r.enterRule(t)}exitRule(t,e){const r=e.ruleContext;r.exitRule(t),t.exitEveryRule(r)}}me.DEFAULT=new me;const ye={Trees:P,RuleNode:I,ErrorNode:D,TerminalNode:N,ParseTreeListener:de,ParseTreeVisitor:pe,ParseTreeWalker:me};class fe extends Pt{constructor(t){super({message:"",recognizer:t,input:t.getInputStream(),ctx:t._ctx}),this.offendingToken=t.getCurrentToken()}}class ge extends Pt{constructor(t,e,r){super({message:we(e,r||null),recognizer:t,input:t.getInputStream(),ctx:t._ctx});const s=t._interp.atn.states[t.state].transitions[0];s instanceof mt?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken()}}function we(t,e){return null!==e?e:"failed predicate: {"+t+"}?"}class xe extends Ct{constructor(t){super(),t=t||!0,this.exactOnly=t}reportAmbiguity(t,e,r,s,i,n,a){if(this.exactOnly&&!i)return;const o="reportAmbiguity d="+this.getDecisionDescription(t,e)+": ambigAlts="+this.getConflictingAlts(n,a)+", input='"+t.getTokenStream().getText(new x(r,s))+"'";t.notifyErrorListeners(o)}reportAttemptingFullContext(t,e,r,s,i,n){const a="reportAttemptingFullContext d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new x(r,s))+"'";t.notifyErrorListeners(a)}reportContextSensitivity(t,e,r,s,i,n){const a="reportContextSensitivity d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new x(r,s))+"'";t.notifyErrorListeners(a)}getDecisionDescription(t,e){const r=e.decision,s=e.atnStartState.ruleIndex,i=t.ruleNames;if(s<0||s>=i.length)return""+r;const n=i[s]||null;return null===n||0===n.length?""+r:`${r} (${n})`}getConflictingAlts(t,e){if(null!==t)return t;const r=new Q;for(let t=0;t<e.items.length;t++)r.add(e.items[t].alt);return`{${r.values().join(", ")}}`}}class ve extends Error{constructor(){super(),Error.captureStackTrace(this,ve)}}class be{reset(t){}recoverInline(t){}recover(t,e){}sync(t){}inErrorRecoveryMode(t){}reportError(t){}}class _e extends be{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof ee?this.reportNoViableAlternative(t,e):e instanceof fe?this.reportInputMismatch(t,e):e instanceof ge?this.reportFailedPredicate(t,e):(console.log("unknown recognition error type: "+e.constructor.name),console.log(e.stack),t.notifyErrorListeners(e.getOffendingToken(),e.getMessage(),e)))}recover(t,e){this.lastErrorIndex===t.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(t.state)>=0&&t.consume(),this.lastErrorIndex=t._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(t.state);const r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(e){if(this.inErrorRecoveryMode(e))return;const r=e._interp.atn.states[e.state],s=e.getTokenStream().LA(1),i=e.atn.nextTokens(r);if(i.contains(s))return this.nextTokensContext=null,void(this.nextTokenState=b.INVALID_STATE_NUMBER);if(i.contains(t.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=e._ctx,this.nextTokensState=e._stateNumber);else switch(r.stateType){case b.BLOCK_START:case b.STAR_BLOCK_START:case b.PLUS_BLOCK_START:case b.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new fe(e);case b.PLUS_LOOP_BACK:case b.STAR_LOOP_BACK:{this.reportUnwantedToken(e);const t=new v;t.addSet(e.getExpectedTokens());const r=t.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,r)}}}reportNoViableAlternative(e,r){const s=e.getTokenStream();let i;i=null!==s?r.startToken.type===t.EOF?"<EOF>":s.getText(new x(r.startToken.tokenIndex,r.offendingToken.tokenIndex)):"<unknown input>";const n="no viable alternative at input "+this.escapeWSAndQuote(i);e.notifyErrorListeners(n,r.offendingToken,r)}reportInputMismatch(t,e){const r="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(r,e.offendingToken,e)}reportFailedPredicate(t,e){const r="rule "+t.ruleNames[t._ctx.ruleIndex]+" "+e.message;t.notifyErrorListeners(r,e.offendingToken,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(r,e,null)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),r="missing "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,null)}recoverInline(t){const e=this.singleTokenDeletion(t);if(null!==e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new fe(t)}singleTokenInsertion(t){const e=t.getTokenStream().LA(1),r=t._interp.atn,s=r.states[t.state].transitions[0].target;return!!r.nextTokens(s,t._ctx).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){const e=t.getTokenStream().LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();const e=t.getCurrentToken();return this.reportMatch(t),e}return null}getMissingSymbol(e){const r=e.getCurrentToken(),s=this.getExpectedTokens(e).first();let i;i=s===t.EOF?"<missing EOF>":"<missing "+e.literalNames[s]+">";let n=r;const a=e.getTokenStream().LT(-1);return n.type===t.EOF&&null!==a&&(n=a),e.getTokenFactory().create(n.source,s,i,t.DEFAULT_CHANNEL,-1,-1,n.line,n.column)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(e){if(null===e)return"<no token>";let r=e.text;return null===r&&(r=e.type===t.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(r)}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(e){const r=e._interp.atn;let s=e._ctx;const i=new v;for(;null!==s&&s.invokingState>=0;){const t=r.states[s.invokingState].transitions[0],e=r.nextTokens(t.followState);i.addSet(e),s=s.parentCtx}return i.removeOne(t.EPSILON),i}consumeUntil(e,r){let s=e.getTokenStream().LA(1);for(;s!==t.EOF&&!r.contains(s);)e.consume(),s=e.getTokenStream().LA(1)}}class Ee extends _e{constructor(){super()}recover(t,e){let r=t._ctx;for(;null!==r;)r.exception=e,r=r.parentCtx;throw new ve(e)}recoverInline(t){this.recover(t,new fe(t))}sync(t){}}const Te={RecognitionException:Pt,NoViableAltException:ee,LexerNoViableAltException:qt,InputMismatchException:fe,FailedPredicateException:ge,DiagnosticErrorListener:xe,BailErrorStrategy:Ee,DefaultErrorStrategy:_e,ErrorListener:Ct};class Se{constructor(t,e){if(this.name="<empty>",this.strdata=t,this.decodeToUnicodeCodePoints=e||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let t=0;t<this.strdata.length;){const e=this.strdata.codePointAt(t);this.data.push(e),t+=e<=65535?1:2}else{this.data=new Array(this.strdata.length);for(let t=0;t<this.strdata.length;t++)this.data[t]=this.strdata.charCodeAt(t)}this._size=this.data.length}reset(){this._index=0}consume(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}LA(e){if(0===e)return 0;e<0&&(e+=1);const r=this._index+e-1;return r<0||r>=this._size?t.EOF:this.data[r]}LT(t){return this.LA(t)}mark(){return-1}release(t){}seek(t){t<=this._index?this._index=t:this._index=Math.min(t,this._size)}getText(t,e){if(e>=this._size&&(e=this._size-1),t>=this._size)return"";if(this.decodeToUnicodeCodePoints){let r="";for(let s=t;s<=e;s++)r+=String.fromCodePoint(this.data[s]);return r}return this.strdata.slice(t,e+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}class ke extends Se{constructor(t,e){super(t,e)}}var Re=i(92);const Ae="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;class Ce extends ke{static fromPath(t,e,r){if(!Ae)throw new Error("FileStream is only available when running in Node!");Re.readFile(t,e,(function(t,e){let s=null;null!==e&&(s=new Se(e,!0)),r(t,s)}))}constructor(t,e,r){if(!Ae)throw new Error("FileStream is only available when running in Node!");super(Re.readFileSync(t,e||"utf-8"),r),this.fileName=t}}const Ke={fromString:function(t){return new Se(t,!0)},fromBlob:function(t,e,r,s){const i=new window.FileReader;i.onload=function(t){const e=new Se(t.target.result,!0);r(e)},i.onerror=s,i.readAsText(t,e)},fromBuffer:function(t,e){return new Se(t.toString(e),!0)},fromPath:function(t,e,r){Ce.fromPath(t,e,r)},fromPathSync:function(t,e){return new Ce(t,e)}},Le={arrayToString:h,stringToCharArray:function(t){let e=new Uint16Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}};class Ie{}class Ne extends Ie{constructor(t){super(),this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(t){}reset(){this.seek(0)}seek(t){this.lazyInit(),this.index=this.adjustSeekIndex(t)}get size(){return this.tokens.length}get(t){return this.lazyInit(),this.tokens[t]}consume(){let e=!1;if(e=this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length),!e&&this.LA(1)===t.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}sync(t){const e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(e){if(this.fetchedEOF)return 0;for(let r=0;r<e;r++){const e=this.tokenSource.nextToken();if(e.tokenIndex=this.tokens.length,this.tokens.push(e),e.type===t.EOF)return this.fetchedEOF=!0,r+1}return e}getTokens(e,r,s){if(void 0===s&&(s=null),e<0||r<0)return null;this.lazyInit();const i=[];r>=this.tokens.length&&(r=this.tokens.length-1);for(let n=e;n<r;n++){const e=this.tokens[n];if(e.type===t.EOF)break;(null===s||s.contains(e.type))&&i.push(e)}return i}LA(t){return this.LT(t).type}LB(t){return this.index-t<0?null:this.tokens[this.index-t]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);const e=this.index+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.index&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(t){this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,r){if(this.sync(e),e>=this.tokens.length)return-1;let s=this.tokens[e];for(;s.channel!==this.channel;){if(s.type===t.EOF)return-1;e+=1,this.sync(e),s=this.tokens[e]}return e}previousTokenOnChannel(t,e){for(;t>=0&&this.tokens[t].channel!==e;)t-=1;return t}getHiddenTokensToRight(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const r=this.nextTokenOnChannel(t+1,Yt.DEFAULT_TOKEN_CHANNEL),s=t+1,i=-1===r?this.tokens.length-1:r;return this.filterForChannel(s,i,e)}getHiddenTokensToLeft(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const r=this.previousTokenOnChannel(t-1,Yt.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return null;const s=r+1,i=t-1;return this.filterForChannel(s,i,e)}filterForChannel(t,e,r){const s=[];for(let i=t;i<e+1;i++){const t=this.tokens[i];-1===r?t.channel!==Yt.DEFAULT_TOKEN_CHANNEL&&s.push(t):t.channel===r&&s.push(t)}return 0===s.length?null:s}getSourceName(){return this.tokenSource.getSourceName()}getText(e){this.lazyInit(),this.fill(),e||(e=new x(0,this.tokens.length-1));let r=e.start;r instanceof t&&(r=r.tokenIndex);let s=e.stop;if(s instanceof t&&(s=s.tokenIndex),null===r||null===s||r<0||s<0)return"";s>=this.tokens.length&&(s=this.tokens.length-1);let i="";for(let e=r;e<s+1;e++){const r=this.tokens[e];if(r.type===t.EOF)break;i+=r.text}return i}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}}Object.defineProperty(Ne,"size",{get:function(){return this.tokens.length}});class De extends Ne{constructor(e,r){super(e),this.channel=void 0===r?t.DEFAULT_CHANNEL:r}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}LB(t){if(0===t||this.index-t<0)return null;let e=this.index,r=1;for(;r<=t;)e=this.previousTokenOnChannel(e-1,this.channel),r+=1;return e<0?null:this.tokens[e]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);let e=this.index,r=1;for(;r<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),r+=1;return this.tokens[e]}getNumberOfOnChannelTokens(){let e=0;this.fill();for(let r=0;r<this.tokens.length;r++){const s=this.tokens[r];if(s.channel===this.channel&&(e+=1),s.type===t.EOF)break}return e}}class Oe extends de{constructor(t){super(),this.parser=t}enterEveryRule(t){console.log("enter "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(t){console.log("consume "+t.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(t){console.log("exit "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}class Pe extends It{constructor(t){super(),this._input=null,this._errHandler=new _e,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(t)}reset(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()}match(t){let e=this.getCurrentToken();return e.type===t?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e}matchWildcard(){let t=this.getCurrentToken();return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t}getParseListeners(){return this._parseListeners||[]}addParseListener(t){if(null===t)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(t)}removeParseListener(t){if(null!==this._parseListeners){const e=this._parseListeners.indexOf(t);e>=0&&this._parseListeners.splice(e,1),0===this._parseListeners.length&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.forEach((function(e){e.enterEveryRule(t),t.enterRule(e)}))}}triggerExitRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.slice(0).reverse().forEach((function(e){t.exitRule(e),e.exitEveryRule(t)}))}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(t){this._input.tokenSource._factory=t}getATNWithBypassAlts(){const t=this.getSerializedATN();if(null===t)throw"The current parser does not support an ATN with bypass alternatives.";let e=this.bypassAltsAtnCache[t];if(null===e){const r=new gt;r.generateRuleBypassTransitions=!0,e=new At(r).deserialize(t),this.bypassAltsAtnCache[t]=e}return e}getInputStream(){return this.getTokenStream()}setInputStream(t){this.setTokenStream(t)}getTokenStream(){return this._input}setTokenStream(t){this._input=null,this.reset(),this._input=t}get syntaxErrorsCount(){return this._syntaxErrors}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){r=r||null,null===(e=e||null)&&(e=this.getCurrentToken()),this._syntaxErrors+=1;const s=e.line,i=e.column;this.getErrorListenerDispatch().syntaxError(this,e,s,i,t,r)}consume(){const e=this.getCurrentToken();e.type!==t.EOF&&this.getInputStream().consume();const r=null!==this._parseListeners&&this._parseListeners.length>0;if(this.buildParseTrees||r){let t;t=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(e):this._ctx.addTokenNode(e),t.invokingState=this.state,r&&this._parseListeners.forEach((function(e){t instanceof D||void 0!==t.isErrorNode&&t.isErrorNode()?e.visitErrorNode(t):t instanceof N&&e.visitTerminal(t)}))}return e}addContextToParseTree(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)}enterRule(t,e,r){this.state=e,this._ctx=t,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(t,e){t.setAltNumber(e),this.buildParseTrees&&this._ctx!==t&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(t)),this._ctx=t}getPrecedence(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(t,e,r,s){this.state=e,this._precedenceStack.push(s),this._ctx=t,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){const s=this._ctx;s.parentCtx=t,s.invokingState=e,s.stop=this._input.LT(-1),this._ctx=t,this._ctx.start=s.start,this.buildParseTrees&&this._ctx.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);const e=this._ctx,r=this.getParseListeners();if(null!==r&&r.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=t;e.parentCtx=t,this.buildParseTrees&&null!==t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;null!==e;){if(e.ruleIndex===t)return e;e=e.parentCtx}return null}precpred(t,e){return e>=this._precedenceStack[this._precedenceStack.length-1]}inContext(t){return!1}isExpectedToken(e){const r=this._interp.atn;let s=this._ctx;const i=r.states[this.state];let n=r.nextTokens(i);if(n.contains(e))return!0;if(!n.contains(t.EPSILON))return!1;for(;null!==s&&s.invokingState>=0&&n.contains(t.EPSILON);){const t=r.states[s.invokingState].transitions[0];if(n=r.nextTokens(t.followState),n.contains(e))return!0;s=s.parentCtx}return!(!n.contains(t.EPSILON)||e!==t.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){const t=this._interp.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){const e=this.getRuleIndexMap()[t];return null!==e?e:-1}getRuleInvocationStack(t){null===(t=t||null)&&(t=this._ctx);const e=[];for(;null!==t;){const r=t.ruleIndex;r<0?e.push("n/a"):e.push(this.ruleNames[r]),t=t.parentCtx}return e}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let t=!1;for(let e=0;e<this._interp.decisionToDFA.length;e++){const r=this._interp.decisionToDFA[e];r.states.length>0&&(t&&console.log(),this.printer.println("Decision "+r.decision+":"),this.printer.print(r.toString(this.literalNames,this.symbolicNames)),t=!0)}}getSourceName(){return this._input.sourceName}setTrace(t){t?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new Oe(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}Pe.bypassAltsAtnCache={};class qe extends N{constructor(t){super(),this.parentCtx=null,this.symbol=t}getChild(t){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return x.INVALID_INTERVAL;const t=this.symbol.tokenIndex;return new x(t,t)}getChildCount(){return 0}accept(t){return t.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===t.EOF?"<EOF>":this.symbol.text}}class Ye extends qe{constructor(t){super(t)}isErrorNode(){return!0}accept(t){return t.visitErrorNode(this)}}class Fe extends q{constructor(t,e){super(t,e),this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(t){this.parentCtx=t.parentCtx,this.invokingState=t.invokingState,this.children=null,this.start=t.start,this.stop=t.stop,t.children&&(this.children=[],t.children.map((function(t){t instanceof Ye&&(this.children.push(t),t.parentCtx=this)}),this))}enterRule(t){}exitRule(t){}addChild(t){return null===this.children&&(this.children=[]),this.children.push(t),t}removeLastChild(){null!==this.children&&this.children.pop()}addTokenNode(t){const e=new qe(t);return this.addChild(e),e.parentCtx=this,e}addErrorNode(t){const e=new Ye(t);return this.addChild(e),e.parentCtx=this,e}getChild(t,e){if(e=e||null,null===this.children||t<0||t>=this.children.length)return null;if(null===e)return this.children[t];for(let r=0;r<this.children.length;r++){const s=this.children[r];if(s instanceof e){if(0===t)return s;t-=1}}return null}getToken(t,e){if(null===this.children||e<0||e>=this.children.length)return null;for(let r=0;r<this.children.length;r++){const s=this.children[r];if(s instanceof N&&s.symbol.type===t){if(0===e)return s;e-=1}}return null}getTokens(t){if(null===this.children)return[];{const e=[];for(let r=0;r<this.children.length;r++){const s=this.children[r];s instanceof N&&s.symbol.type===t&&e.push(s)}return e}}getTypedRuleContext(t,e){return this.getChild(e,t)}getTypedRuleContexts(t){if(null===this.children)return[];{const e=[];for(let r=0;r<this.children.length;r++){const s=this.children[r];s instanceof t&&e.push(s)}return e}}getChildCount(){return null===this.children?0:this.children.length}getSourceInterval(){return null===this.start||null===this.stop?x.INVALID_INTERVAL:new x(this.start.tokenIndex,this.stop.tokenIndex)}}q.EMPTY=new Fe;class Me{constructor(t){this.tokens=t,this.programs=new Map}getTokenStream(){return this.tokens}insertAfter(t,e){let r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Me.DEFAULT_PROGRAM_NAME;r="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(s),n=new Ge(this.tokens,r,i.length,e);i.push(n)}insertBefore(t,e){let r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Me.DEFAULT_PROGRAM_NAME;r="number"==typeof t?t:t.tokenIndex;const i=this.getProgram(s),n=new Qe(this.tokens,r,i.length,e);i.push(n)}replaceSingle(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Me.DEFAULT_PROGRAM_NAME;this.replace(t,t,e,r)}replace(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Me.DEFAULT_PROGRAM_NAME;if("number"!=typeof t&&(t=t.tokenIndex),"number"!=typeof e&&(e=e.tokenIndex),t>e||t<0||e<0||e>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${e}(size=${this.tokens.size})`);let i=this.getProgram(s),n=new ze(this.tokens,t,e,i.length,r);i.push(n)}delete(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Me.DEFAULT_PROGRAM_NAME;void 0===e&&(e=t),this.replace(t,e,null,r)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){const e=[];return this.programs.set(t,e),e}getText(e){let r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.DEFAULT_PROGRAM_NAME;r=e instanceof x?e:new x(0,this.tokens.size-1),"string"==typeof e&&(s=e);const i=this.programs.get(s);let n=r.start,a=r.stop;if(a>this.tokens.size-1&&(a=this.tokens.size-1),n<0&&(n=0),null==i||0===i.length)return this.tokens.getText(new x(n,a));let o=[],c=this.reduceToSingleOperationPerIndex(i),l=n;for(;l<=a&&l<this.tokens.size;){let e=c.get(l);c.delete(l);let r=this.tokens.get(l);null==e?(r.type!==t.EOF&&o.push(String(r.text)),l++):l=e.execute(o)}if(a===this.tokens.size-1)for(const t of c.values())t.index>=this.tokens.size-1&&o.push(t.text.toString());return o.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof ze))continue;let s=r,i=this.getKindOfOps(t,Qe,e);for(let e of i)e.index===s.index?(t[e.instructionIndex]=void 0,s.text=e.text.toString()+(null!=s.text?s.text.toString():"")):e.index>s.index&&e.index<=s.lastIndex&&(t[e.instructionIndex]=void 0);let n=this.getKindOfOps(t,ze,e);for(let e of n){if(e.index>=s.index&&e.lastIndex<=s.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndex<s.index||e.index>s.lastIndex;if(null!=e.text||null!=s.text||r){if(!r)throw new Error(`replace op boundaries of ${s} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,s.index=Math.min(e.index,s.index),s.lastIndex=Math.max(e.lastIndex,s.lastIndex)}}for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof Qe))continue;let s=r,i=this.getKindOfOps(t,Qe,e);for(let e of i)e.index===s.index&&(e instanceof Ge?(s.text=this.catOpText(e.text,s.text),t[e.instructionIndex]=void 0):e instanceof Qe&&(s.text=this.catOpText(s.text,e.text),t[e.instructionIndex]=void 0));let n=this.getKindOfOps(t,ze,e);for(let r of n)if(s.index!==r.index){if(s.index>=r.index&&s.index<=r.lastIndex)throw new Error(`insert op ${s} within boundaries of previous ${r}`)}else r.text=this.catOpText(s.text,r.text),t[e]=void 0}let e=new Map;for(let r of t)if(null!=r){if(null!=e.get(r.index))throw new Error("should only be one op per index");e.set(r.index,r)}return e}catOpText(t,e){let r="",s="";return null!=t&&(r=t.toString()),null!=e&&(s=e.toString()),r+s}getKindOfOps(t,e,r){return t.slice(0,r).filter((t=>t&&t instanceof e))}}var Ue,Be,Ve,He,je;Ue=Me,Ve="default",He="DEFAULT_PROGRAM_NAME",(Be="symbol"==typeof(je=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var s=r.call(t,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(He))?je:String(je))in Ue?Object.defineProperty(Ue,Be,{value:Ve,enumerable:!0,configurable:!0,writable:!0}):Ue[Be]=Ve;class $e{constructor(t,e,r,s){this.tokens=t,this.instructionIndex=r,this.index=e,this.text=void 0===s?"":s}toString(){let t=this.constructor.name;const e=t.indexOf("$");return t=t.substring(e+1,t.length),"<"+t+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}class Qe extends $e{constructor(t,e,r,s){super(t,e,r,s)}execute(e){return this.text&&e.push(this.text.toString()),this.tokens.get(this.index).type!==t.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}}class Ge extends Qe{constructor(t,e,r,s){super(t,e+1,r,s)}}class ze extends $e{constructor(t,e,r,s,i){super(t,e,s,i),this.lastIndex=r}execute(t){return this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}const We={atn:ne,dfa:le,context:he,misc:ue,tree:ye,error:Te,Token:t,CommonToken:Nt,CharStreams:Ke,CharStream:ke,InputStream:ke,CommonTokenStream:De,Lexer:Yt,Parser:Pe,ParserRuleContext:Fe,Interval:x,IntervalSet:v,LL1Analyzer:G,Utils:Le,TokenStreamRewriter:Me}})();var a=n.dx,o=n.q2,c=n.xf,l=n.c7,h=n._7,u=n.cK,d=n.zs,p=n.hW,m=n.x1,y=n.z5,f=n.TB,g=n._b,w=n.$F,x=n._T,v=n.db,b=n._x,_=n.WU,E=class extends p{constructor(t){super(t),this._interp=new m(this,E._ATN,E.DecisionsToDFA,new v)}get grammarFileName(){return"Solidity.g4"}get literalNames(){return E.literalNames}get symbolicNames(){return E.symbolicNames}get ruleNames(){return E.ruleNames}get serializedATN(){return E._serializedATN}get channelNames(){return E.channelNames}get modeNames(){return E.modeNames}static get _ATN(){return E.__ATN||(E.__ATN=(new o).deserialize(E._serializedATN)),E.__ATN}},T=E;T.T__0=1,T.T__1=2,T.T__2=3,T.T__3=4,T.T__4=5,T.T__5=6,T.T__6=7,T.T__7=8,T.T__8=9,T.T__9=10,T.T__10=11,T.T__11=12,T.T__12=13,T.T__13=14,T.T__14=15,T.T__15=16,T.T__16=17,T.T__17=18,T.T__18=19,T.T__19=20,T.T__20=21,T.T__21=22,T.T__22=23,T.T__23=24,T.T__24=25,T.T__25=26,T.T__26=27,T.T__27=28,T.T__28=29,T.T__29=30,T.T__30=31,T.T__31=32,T.T__32=33,T.T__33=34,T.T__34=35,T.T__35=36,T.T__36=37,T.T__37=38,T.T__38=39,T.T__39=40,T.T__40=41,T.T__41=42,T.T__42=43,T.T__43=44,T.T__44=45,T.T__45=46,T.T__46=47,T.T__47=48,T.T__48=49,T.T__49=50,T.T__50=51,T.T__51=52,T.T__52=53,T.T__53=54,T.T__54=55,T.T__55=56,T.T__56=57,T.T__57=58,T.T__58=59,T.T__59=60,T.T__60=61,T.T__61=62,T.T__62=63,T.T__63=64,T.T__64=65,T.T__65=66,T.T__66=67,T.T__67=68,T.T__68=69,T.T__69=70,T.T__70=71,T.T__71=72,T.T__72=73,T.T__73=74,T.T__74=75,T.T__75=76,T.T__76=77,T.T__77=78,T.T__78=79,T.T__79=80,T.T__80=81,T.T__81=82,T.T__82=83,T.T__83=84,T.T__84=85,T.T__85=86,T.T__86=87,T.T__87=88,T.T__88=89,T.T__89=90,T.T__90=91,T.T__91=92,T.T__92=93,T.T__93=94,T.T__94=95,T.T__95=96,T.Int=97,T.Uint=98,T.Byte=99,T.Fixed=100,T.Ufixed=101,T.BooleanLiteral=102,T.DecimalNumber=103,T.HexNumber=104,T.NumberUnit=105,T.HexLiteralFragment=106,T.ReservedKeyword=107,T.AnonymousKeyword=108,T.BreakKeyword=109,T.ConstantKeyword=110,T.ImmutableKeyword=111,T.ContinueKeyword=112,T.LeaveKeyword=113,T.ExternalKeyword=114,T.IndexedKeyword=115,T.InternalKeyword=116,T.PayableKeyword=117,T.PrivateKeyword=118,T.PublicKeyword=119,T.VirtualKeyword=120,T.PureKeyword=121,T.TypeKeyword=122,T.ViewKeyword=123,T.GlobalKeyword=124,T.ConstructorKeyword=125,T.FallbackKeyword=126,T.ReceiveKeyword=127,T.Identifier=128,T.StringLiteralFragment=129,T.VersionLiteral=130,T.WS=131,T.COMMENT=132,T.LINE_COMMENT=133,T.EOF=_.EOF,T.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],T.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],T.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],T.modeNames=["DEFAULT_MODE"],T.ruleNames=["T__0","T__1","T__2","T__3","T__4","T__5","T__6","T__7","T__8","T__9","T__10","T__11","T__12","T__13","T__14","T__15","T__16","T__17","T__18","T__19","T__20","T__21","T__22","T__23","T__24","T__25","T__26","T__27","T__28","T__29","T__30","T__31","T__32","T__33","T__34","T__35","T__36","T__37","T__38","T__39","T__40","T__41","T__42","T__43","T__44","T__45","T__46","T__47","T__48","T__49","T__50","T__51","T__52","T__53","T__54","T__55","T__56","T__57","T__58","T__59","T__60","T__61","T__62","T__63","T__64","T__65","T__66","T__67","T__68","T__69","T__70","T__71","T__72","T__73","T__74","T__75","T__76","T__77","T__78","T__79","T__80","T__81","T__82","T__83","T__84","T__85","T__86","T__87","T__88","T__89","T__90","T__91","T__92","T__93","T__94","T__95","Int","Uint","Byte","Fixed","Ufixed","NumberOfBits","NumberOfBytes","BooleanLiteral","DecimalNumber","DecimalDigits","HexNumber","HexDigits","NumberUnit","HexLiteralFragment","HexCharacter","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","IdentifierStart","IdentifierPart","StringLiteralFragment","DoubleQuotedStringCharacter","SingleQuotedStringCharacter","VersionLiteral","WS","COMMENT","LINE_COMMENT"],T._serializedATN=[4,0,133,1336,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,33,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,67,1,67,1,67,1,68,1,68,1,68,1,68,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,72,1,72,1,72,1,73,1,73,1,73,1,74,1,74,1,74,1,75,1,75,1,75,1,76,1,76,1,77,1,77,1,77,1,78,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,83,1,83,1,83,1,84,1,84,1,84,1,85,1,85,1,85,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,3,96,722,8,96,1,97,1,97,1,97,1,97,1,97,1,97,3,97,730,8,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,3,98,739,8,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,4,99,750,8,99,11,99,12,99,751,3,99,754,8,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,4,100,766,8,100,11,100,12,100,767,3,100,770,8,100,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,3,101,855,8,101,1,102,1,102,1,102,1,102,1,102,3,102,862,8,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,3,103,873,8,103,1,104,1,104,3,104,877,8,104,1,104,1,104,3,104,881,8,104,1,104,1,104,3,104,885,8,104,1,104,3,104,888,8,104,1,105,1,105,3,105,892,8,105,1,105,5,105,895,8,105,10,105,12,105,898,9,105,1,106,1,106,1,106,1,106,1,107,1,107,3,107,906,8,107,1,107,5,107,909,8,107,10,107,12,107,912,9,107,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,3,108,970,8,108,1,109,1,109,1,109,1,109,1,109,1,109,3,109,978,8,109,1,109,1,109,1,109,3,109,983,8,109,1,109,3,109,986,8,109,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,3,111,1078,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,5,132,1240,8,132,10,132,12,132,1243,9,132,1,133,1,133,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135,1256,8,135,1,135,1,135,5,135,1260,8,135,10,135,12,135,1263,9,135,1,135,1,135,1,135,5,135,1268,8,135,10,135,12,135,1271,9,135,1,135,3,135,1274,8,135,1,136,1,136,1,136,3,136,1279,8,136,1,137,1,137,1,137,3,137,1284,8,137,1,138,4,138,1287,8,138,11,138,12,138,1288,1,138,1,138,4,138,1293,8,138,11,138,12,138,1294,1,138,1,138,4,138,1299,8,138,11,138,12,138,1300,3,138,1303,8,138,1,139,4,139,1306,8,139,11,139,12,139,1307,1,139,1,139,1,140,1,140,1,140,1,140,5,140,1316,8,140,10,140,12,140,1319,9,140,1,140,1,140,1,140,1,140,1,140,1,141,1,141,1,141,1,141,5,141,1330,8,141,10,141,12,141,1333,9,141,1,141,1,141,1,1317,0,142,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143,72,145,73,147,74,149,75,151,76,153,77,155,78,157,79,159,80,161,81,163,82,165,83,167,84,169,85,171,86,173,87,175,88,177,89,179,90,181,91,183,92,185,93,187,94,189,95,191,96,193,97,195,98,197,99,199,100,201,101,203,0,205,0,207,102,209,103,211,0,213,104,215,0,217,105,219,106,221,0,223,107,225,108,227,109,229,110,231,111,233,112,235,113,237,114,239,115,241,116,243,117,245,118,247,119,249,120,251,121,253,122,255,123,257,124,259,125,261,126,263,127,265,128,267,0,269,0,271,129,273,0,275,0,277,130,279,131,281,132,283,133,1,0,13,1,0,48,57,1,0,49,57,1,0,49,50,1,0,48,50,2,0,69,69,101,101,2,0,88,88,120,120,3,0,48,57,65,70,97,102,4,0,36,36,65,90,95,95,97,122,5,0,36,36,48,57,65,90,95,95,97,122,4,0,10,10,13,13,34,34,92,92,4,0,10,10,13,13,39,39,92,92,3,0,9,10,12,13,32,32,2,0,10,10,13,13,1418,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,213,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,271,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,1,285,1,0,0,0,3,292,1,0,0,0,5,294,1,0,0,0,7,296,1,0,0,0,9,299,1,0,0,0,11,301,1,0,0,0,13,303,1,0,0,0,15,306,1,0,0,0,17,308,1,0,0,0,19,310,1,0,0,0,21,313,1,0,0,0,23,315,1,0,0,0,25,318,1,0,0,0,27,325,1,0,0,0,29,330,1,0,0,0,31,332,1,0,0,0,33,334,1,0,0,0,35,336,1,0,0,0,37,345,1,0,0,0,39,354,1,0,0,0,41,364,1,0,0,0,43,372,1,0,0,0,45,375,1,0,0,0,47,377,1,0,0,0,49,379,1,0,0,0,51,385,1,0,0,0,53,391,1,0,0,0,55,395,1,0,0,0,57,397,1,0,0,0,59,399,1,0,0,0,61,401,1,0,0,0,63,403,1,0,0,0,65,405,1,0,0,0,67,407,1,0,0,0,69,410,1,0,0,0,71,413,1,0,0,0,73,420,1,0,0,0,75,429,1,0,0,0,77,438,1,0,0,0,79,446,1,0,0,0,81,452,1,0,0,0,83,457,1,0,0,0,85,459,1,0,0,0,87,461,1,0,0,0,89,469,1,0,0,0,91,471,1,0,0,0,93,479,1,0,0,0,95,482,1,0,0,0,97,489,1,0,0,0,99,497,1,0,0,0,101,506,1,0,0,0,103,509,1,0,0,0,105,514,1,0,0,0,107,518,1,0,0,0,109,524,1,0,0,0,111,530,1,0,0,0,113,540,1,0,0,0,115,549,1,0,0,0,117,552,1,0,0,0,119,559,1,0,0,0,121,565,1,0,0,0,123,570,1,0,0,0,125,577,1,0,0,0,127,581,1,0,0,0,129,586,1,0,0,0,131,593,1,0,0,0,133,598,1,0,0,0,135,601,1,0,0,0,137,604,1,0,0,0,139,608,1,0,0,0,141,610,1,0,0,0,143,617,1,0,0,0,145,619,1,0,0,0,147,622,1,0,0,0,149,625,1,0,0,0,151,628,1,0,0,0,153,631,1,0,0,0,155,633,1,0,0,0,157,636,1,0,0,0,159,639,1,0,0,0,161,642,1,0,0,0,163,646,1,0,0,0,165,650,1,0,0,0,167,653,1,0,0,0,169,656,1,0,0,0,171,659,1,0,0,0,173,662,1,0,0,0,175,665,1,0,0,0,177,669,1,0,0,0,179,672,1,0,0,0,181,675,1,0,0,0,183,682,1,0,0,0,185,687,1,0,0,0,187,695,1,0,0,0,189,698,1,0,0,0,191,707,1,0,0,0,193,716,1,0,0,0,195,723,1,0,0,0,197,731,1,0,0,0,199,740,1,0,0,0,201,755,1,0,0,0,203,854,1,0,0,0,205,861,1,0,0,0,207,872,1,0,0,0,209,880,1,0,0,0,211,889,1,0,0,0,213,899,1,0,0,0,215,903,1,0,0,0,217,969,1,0,0,0,219,971,1,0,0,0,221,987,1,0,0,0,223,1077,1,0,0,0,225,1079,1,0,0,0,227,1089,1,0,0,0,229,1095,1,0,0,0,231,1104,1,0,0,0,233,1114,1,0,0,0,235,1123,1,0,0,0,237,1129,1,0,0,0,239,1138,1,0,0,0,241,1146,1,0,0,0,243,1155,1,0,0,0,245,1163,1,0,0,0,247,1171,1,0,0,0,249,1178,1,0,0,0,251,1186,1,0,0,0,253,1191,1,0,0,0,255,1196,1,0,0,0,257,1201,1,0,0,0,259,1208,1,0,0,0,261,1220,1,0,0,0,263,1229,1,0,0,0,265,1237,1,0,0,0,267,1244,1,0,0,0,269,1246,1,0,0,0,271,1255,1,0,0,0,273,1278,1,0,0,0,275,1283,1,0,0,0,277,1286,1,0,0,0,279,1305,1,0,0,0,281,1311,1,0,0,0,283,1325,1,0,0,0,285,286,5,112,0,0,286,287,5,114,0,0,287,288,5,97,0,0,288,289,5,103,0,0,289,290,5,109,0,0,290,291,5,97,0,0,291,2,1,0,0,0,292,293,5,59,0,0,293,4,1,0,0,0,294,295,5,42,0,0,295,6,1,0,0,0,296,297,5,124,0,0,297,298,5,124,0,0,298,8,1,0,0,0,299,300,5,94,0,0,300,10,1,0,0,0,301,302,5,126,0,0,302,12,1,0,0,0,303,304,5,62,0,0,304,305,5,61,0,0,305,14,1,0,0,0,306,307,5,62,0,0,307,16,1,0,0,0,308,309,5,60,0,0,309,18,1,0,0,0,310,311,5,60,0,0,311,312,5,61,0,0,312,20,1,0,0,0,313,314,5,61,0,0,314,22,1,0,0,0,315,316,5,97,0,0,316,317,5,115,0,0,317,24,1,0,0,0,318,319,5,105,0,0,319,320,5,109,0,0,320,321,5,112,0,0,321,322,5,111,0,0,322,323,5,114,0,0,323,324,5,116,0,0,324,26,1,0,0,0,325,326,5,102,0,0,326,327,5,114,0,0,327,328,5,111,0,0,328,329,5,109,0,0,329,28,1,0,0,0,330,331,5,123,0,0,331,30,1,0,0,0,332,333,5,44,0,0,333,32,1,0,0,0,334,335,5,125,0,0,335,34,1,0,0,0,336,337,5,97,0,0,337,338,5,98,0,0,338,339,5,115,0,0,339,340,5,116,0,0,340,341,5,114,0,0,341,342,5,97,0,0,342,343,5,99,0,0,343,344,5,116,0,0,344,36,1,0,0,0,345,346,5,99,0,0,346,347,5,111,0,0,347,348,5,110,0,0,348,349,5,116,0,0,349,350,5,114,0,0,350,351,5,97,0,0,351,352,5,99,0,0,352,353,5,116,0,0,353,38,1,0,0,0,354,355,5,105,0,0,355,356,5,110,0,0,356,357,5,116,0,0,357,358,5,101,0,0,358,359,5,114,0,0,359,360,5,102,0,0,360,361,5,97,0,0,361,362,5,99,0,0,362,363,5,101,0,0,363,40,1,0,0,0,364,365,5,108,0,0,365,366,5,105,0,0,366,367,5,98,0,0,367,368,5,114,0,0,368,369,5,97,0,0,369,370,5,114,0,0,370,371,5,121,0,0,371,42,1,0,0,0,372,373,5,105,0,0,373,374,5,115,0,0,374,44,1,0,0,0,375,376,5,40,0,0,376,46,1,0,0,0,377,378,5,41,0,0,378,48,1,0,0,0,379,380,5,101,0,0,380,381,5,114,0,0,381,382,5,114,0,0,382,383,5,111,0,0,383,384,5,114,0,0,384,50,1,0,0,0,385,386,5,117,0,0,386,387,5,115,0,0,387,388,5,105,0,0,388,389,5,110,0,0,389,390,5,103,0,0,390,52,1,0,0,0,391,392,5,102,0,0,392,393,5,111,0,0,393,394,5,114,0,0,394,54,1,0,0,0,395,396,5,124,0,0,396,56,1,0,0,0,397,398,5,38,0,0,398,58,1,0,0,0,399,400,5,43,0,0,400,60,1,0,0,0,401,402,5,45,0,0,402,62,1,0,0,0,403,404,5,47,0,0,404,64,1,0,0,0,405,406,5,37,0,0,406,66,1,0,0,0,407,408,5,61,0,0,408,409,5,61,0,0,409,68,1,0,0,0,410,411,5,33,0,0,411,412,5,61,0,0,412,70,1,0,0,0,413,414,5,115,0,0,414,415,5,116,0,0,415,416,5,114,0,0,416,417,5,117,0,0,417,418,5,99,0,0,418,419,5,116,0,0,419,72,1,0,0,0,420,421,5,109,0,0,421,422,5,111,0,0,422,423,5,100,0,0,423,424,5,105,0,0,424,425,5,102,0,0,425,426,5,105,0,0,426,427,5,101,0,0,427,428,5,114,0,0,428,74,1,0,0,0,429,430,5,102,0,0,430,431,5,117,0,0,431,432,5,110,0,0,432,433,5,99,0,0,433,434,5,116,0,0,434,435,5,105,0,0,435,436,5,111,0,0,436,437,5,110,0,0,437,76,1,0,0,0,438,439,5,114,0,0,439,440,5,101,0,0,440,441,5,116,0,0,441,442,5,117,0,0,442,443,5,114,0,0,443,444,5,110,0,0,444,445,5,115,0,0,445,78,1,0,0,0,446,447,5,101,0,0,447,448,5,118,0,0,448,449,5,101,0,0,449,450,5,110,0,0,450,451,5,116,0,0,451,80,1,0,0,0,452,453,5,101,0,0,453,454,5,110,0,0,454,455,5,117,0,0,455,456,5,109,0,0,456,82,1,0,0,0,457,458,5,91,0,0,458,84,1,0,0,0,459,460,5,93,0,0,460,86,1,0,0,0,461,462,5,97,0,0,462,463,5,100,0,0,463,464,5,100,0,0,464,465,5,114,0,0,465,466,5,101,0,0,466,467,5,115,0,0,467,468,5,115,0,0,468,88,1,0,0,0,469,470,5,46,0,0,470,90,1,0,0,0,471,472,5,109,0,0,472,473,5,97,0,0,473,474,5,112,0,0,474,475,5,112,0,0,475,476,5,105,0,0,476,477,5,110,0,0,477,478,5,103,0,0,478,92,1,0,0,0,479,480,5,61,0,0,480,481,5,62,0,0,481,94,1,0,0,0,482,483,5,109,0,0,483,484,5,101,0,0,484,485,5,109,0,0,485,486,5,111,0,0,486,487,5,114,0,0,487,488,5,121,0,0,488,96,1,0,0,0,489,490,5,115,0,0,490,491,5,116,0,0,491,492,5,111,0,0,492,493,5,114,0,0,493,494,5,97,0,0,494,495,5,103,0,0,495,496,5,101,0,0,496,98,1,0,0,0,497,498,5,99,0,0,498,499,5,97,0,0,499,500,5,108,0,0,500,501,5,108,0,0,501,502,5,100,0,0,502,503,5,97,0,0,503,504,5,116,0,0,504,505,5,97,0,0,505,100,1,0,0,0,506,507,5,105,0,0,507,508,5,102,0,0,508,102,1,0,0,0,509,510,5,101,0,0,510,511,5,108,0,0,511,512,5,115,0,0,512,513,5,101,0,0,513,104,1,0,0,0,514,515,5,116,0,0,515,516,5,114,0,0,516,517,5,121,0,0,517,106,1,0,0,0,518,519,5,99,0,0,519,520,5,97,0,0,520,521,5,116,0,0,521,522,5,99,0,0,522,523,5,104,0,0,523,108,1,0,0,0,524,525,5,119,0,0,525,526,5,104,0,0,526,527,5,105,0,0,527,528,5,108,0,0,528,529,5,101,0,0,529,110,1,0,0,0,530,531,5,117,0,0,531,532,5,110,0,0,532,533,5,99,0,0,533,534,5,104,0,0,534,535,5,101,0,0,535,536,5,99,0,0,536,537,5,107,0,0,537,538,5,101,0,0,538,539,5,100,0,0,539,112,1,0,0,0,540,541,5,97,0,0,541,542,5,115,0,0,542,543,5,115,0,0,543,544,5,101,0,0,544,545,5,109,0,0,545,546,5,98,0,0,546,547,5,108,0,0,547,548,5,121,0,0,548,114,1,0,0,0,549,550,5,100,0,0,550,551,5,111,0,0,551,116,1,0,0,0,552,553,5,114,0,0,553,554,5,101,0,0,554,555,5,116,0,0,555,556,5,117,0,0,556,557,5,114,0,0,557,558,5,110,0,0,558,118,1,0,0,0,559,560,5,116,0,0,560,561,5,104,0,0,561,562,5,114,0,0,562,563,5,111,0,0,563,564,5,119,0,0,564,120,1,0,0,0,565,566,5,101,0,0,566,567,5,109,0,0,567,568,5,105,0,0,568,569,5,116,0,0,569,122,1,0,0,0,570,571,5,114,0,0,571,572,5,101,0,0,572,573,5,118,0,0,573,574,5,101,0,0,574,575,5,114,0,0,575,576,5,116,0,0,576,124,1,0,0,0,577,578,5,118,0,0,578,579,5,97,0,0,579,580,5,114,0,0,580,126,1,0,0,0,581,582,5,98,0,0,582,583,5,111,0,0,583,584,5,111,0,0,584,585,5,108,0,0,585,128,1,0,0,0,586,587,5,115,0,0,587,588,5,116,0,0,588,589,5,114,0,0,589,590,5,105,0,0,590,591,5,110,0,0,591,592,5,103,0,0,592,130,1,0,0,0,593,594,5,98,0,0,594,595,5,121,0,0,595,596,5,116,0,0,596,597,5,101,0,0,597,132,1,0,0,0,598,599,5,43,0,0,599,600,5,43,0,0,600,134,1,0,0,0,601,602,5,45,0,0,602,603,5,45,0,0,603,136,1,0,0,0,604,605,5,110,0,0,605,606,5,101,0,0,606,607,5,119,0,0,607,138,1,0,0,0,608,609,5,58,0,0,609,140,1,0,0,0,610,611,5,100,0,0,611,612,5,101,0,0,612,613,5,108,0,0,613,614,5,101,0,0,614,615,5,116,0,0,615,616,5,101,0,0,616,142,1,0,0,0,617,618,5,33,0,0,618,144,1,0,0,0,619,620,5,42,0,0,620,621,5,42,0,0,621,146,1,0,0,0,622,623,5,60,0,0,623,624,5,60,0,0,624,148,1,0,0,0,625,626,5,62,0,0,626,627,5,62,0,0,627,150,1,0,0,0,628,629,5,38,0,0,629,630,5,38,0,0,630,152,1,0,0,0,631,632,5,63,0,0,632,154,1,0,0,0,633,634,5,124,0,0,634,635,5,61,0,0,635,156,1,0,0,0,636,637,5,94,0,0,637,638,5,61,0,0,638,158,1,0,0,0,639,640,5,38,0,0,640,641,5,61,0,0,641,160,1,0,0,0,642,643,5,60,0,0,643,644,5,60,0,0,644,645,5,61,0,0,645,162,1,0,0,0,646,647,5,62,0,0,647,648,5,62,0,0,648,649,5,61,0,0,649,164,1,0,0,0,650,651,5,43,0,0,651,652,5,61,0,0,652,166,1,0,0,0,653,654,5,45,0,0,654,655,5,61,0,0,655,168,1,0,0,0,656,657,5,42,0,0,657,658,5,61,0,0,658,170,1,0,0,0,659,660,5,47,0,0,660,661,5,61,0,0,661,172,1,0,0,0,662,663,5,37,0,0,663,664,5,61,0,0,664,174,1,0,0,0,665,666,5,108,0,0,666,667,5,101,0,0,667,668,5,116,0,0,668,176,1,0,0,0,669,670,5,58,0,0,670,671,5,61,0,0,671,178,1,0,0,0,672,673,5,61,0,0,673,674,5,58,0,0,674,180,1,0,0,0,675,676,5,115,0,0,676,677,5,119,0,0,677,678,5,105,0,0,678,679,5,116,0,0,679,680,5,99,0,0,680,681,5,104,0,0,681,182,1,0,0,0,682,683,5,99,0,0,683,684,5,97,0,0,684,685,5,115,0,0,685,686,5,101,0,0,686,184,1,0,0,0,687,688,5,100,0,0,688,689,5,101,0,0,689,690,5,102,0,0,690,691,5,97,0,0,691,692,5,117,0,0,692,693,5,108,0,0,693,694,5,116,0,0,694,186,1,0,0,0,695,696,5,45,0,0,696,697,5,62,0,0,697,188,1,0,0,0,698,699,5,99,0,0,699,700,5,97,0,0,700,701,5,108,0,0,701,702,5,108,0,0,702,703,5,98,0,0,703,704,5,97,0,0,704,705,5,99,0,0,705,706,5,107,0,0,706,190,1,0,0,0,707,708,5,111,0,0,708,709,5,118,0,0,709,710,5,101,0,0,710,711,5,114,0,0,711,712,5,114,0,0,712,713,5,105,0,0,713,714,5,100,0,0,714,715,5,101,0,0,715,192,1,0,0,0,716,717,5,105,0,0,717,718,5,110,0,0,718,719,5,116,0,0,719,721,1,0,0,0,720,722,3,203,101,0,721,720,1,0,0,0,721,722,1,0,0,0,722,194,1,0,0,0,723,724,5,117,0,0,724,725,5,105,0,0,725,726,5,110,0,0,726,727,5,116,0,0,727,729,1,0,0,0,728,730,3,203,101,0,729,728,1,0,0,0,729,730,1,0,0,0,730,196,1,0,0,0,731,732,5,98,0,0,732,733,5,121,0,0,733,734,5,116,0,0,734,735,5,101,0,0,735,736,5,115,0,0,736,738,1,0,0,0,737,739,3,205,102,0,738,737,1,0,0,0,738,739,1,0,0,0,739,198,1,0,0,0,740,741,5,102,0,0,741,742,5,105,0,0,742,743,5,120,0,0,743,744,5,101,0,0,744,745,5,100,0,0,745,753,1,0,0,0,746,747,3,203,101,0,747,749,5,120,0,0,748,750,7,0,0,0,749,748,1,0,0,0,750,751,1,0,0,0,751,749,1,0,0,0,751,752,1,0,0,0,752,754,1,0,0,0,753,746,1,0,0,0,753,754,1,0,0,0,754,200,1,0,0,0,755,756,5,117,0,0,756,757,5,102,0,0,757,758,5,105,0,0,758,759,5,120,0,0,759,760,5,101,0,0,760,761,5,100,0,0,761,769,1,0,0,0,762,763,3,203,101,0,763,765,5,120,0,0,764,766,7,0,0,0,765,764,1,0,0,0,766,767,1,0,0,0,767,765,1,0,0,0,767,768,1,0,0,0,768,770,1,0,0,0,769,762,1,0,0,0,769,770,1,0,0,0,770,202,1,0,0,0,771,855,5,56,0,0,772,773,5,49,0,0,773,855,5,54,0,0,774,775,5,50,0,0,775,855,5,52,0,0,776,777,5,51,0,0,777,855,5,50,0,0,778,779,5,52,0,0,779,855,5,48,0,0,780,781,5,52,0,0,781,855,5,56,0,0,782,783,5,53,0,0,783,855,5,54,0,0,784,785,5,54,0,0,785,855,5,52,0,0,786,787,5,55,0,0,787,855,5,50,0,0,788,789,5,56,0,0,789,855,5,48,0,0,790,791,5,56,0,0,791,855,5,56,0,0,792,793,5,57,0,0,793,855,5,54,0,0,794,795,5,49,0,0,795,796,5,48,0,0,796,855,5,52,0,0,797,798,5,49,0,0,798,799,5,49,0,0,799,855,5,50,0,0,800,801,5,49,0,0,801,802,5,50,0,0,802,855,5,48,0,0,803,804,5,49,0,0,804,805,5,50,0,0,805,855,5,56,0,0,806,807,5,49,0,0,807,808,5,51,0,0,808,855,5,54,0,0,809,810,5,49,0,0,810,811,5,52,0,0,811,855,5,52,0,0,812,813,5,49,0,0,813,814,5,53,0,0,814,855,5,50,0,0,815,816,5,49,0,0,816,817,5,54,0,0,817,855,5,48,0,0,818,819,5,49,0,0,819,820,5,54,0,0,820,855,5,56,0,0,821,822,5,49,0,0,822,823,5,55,0,0,823,855,5,54,0,0,824,825,5,49,0,0,825,826,5,56,0,0,826,855,5,52,0,0,827,828,5,49,0,0,828,829,5,57,0,0,829,855,5,50,0,0,830,831,5,50,0,0,831,832,5,48,0,0,832,855,5,48,0,0,833,834,5,50,0,0,834,835,5,48,0,0,835,855,5,56,0,0,836,837,5,50,0,0,837,838,5,49,0,0,838,855,5,54,0,0,839,840,5,50,0,0,840,841,5,50,0,0,841,855,5,52,0,0,842,843,5,50,0,0,843,844,5,51,0,0,844,855,5,50,0,0,845,846,5,50,0,0,846,847,5,52,0,0,847,855,5,48,0,0,848,849,5,50,0,0,849,850,5,52,0,0,850,855,5,56,0,0,851,852,5,50,0,0,852,853,5,53,0,0,853,855,5,54,0,0,854,771,1,0,0,0,854,772,1,0,0,0,854,774,1,0,0,0,854,776,1,0,0,0,854,778,1,0,0,0,854,780,1,0,0,0,854,782,1,0,0,0,854,784,1,0,0,0,854,786,1,0,0,0,854,788,1,0,0,0,854,790,1,0,0,0,854,792,1,0,0,0,854,794,1,0,0,0,854,797,1,0,0,0,854,800,1,0,0,0,854,803,1,0,0,0,854,806,1,0,0,0,854,809,1,0,0,0,854,812,1,0,0,0,854,815,1,0,0,0,854,818,1,0,0,0,854,821,1,0,0,0,854,824,1,0,0,0,854,827,1,0,0,0,854,830,1,0,0,0,854,833,1,0,0,0,854,836,1,0,0,0,854,839,1,0,0,0,854,842,1,0,0,0,854,845,1,0,0,0,854,848,1,0,0,0,854,851,1,0,0,0,855,204,1,0,0,0,856,862,7,1,0,0,857,858,7,2,0,0,858,862,7,0,0,0,859,860,5,51,0,0,860,862,7,3,0,0,861,856,1,0,0,0,861,857,1,0,0,0,861,859,1,0,0,0,862,206,1,0,0,0,863,864,5,116,0,0,864,865,5,114,0,0,865,866,5,117,0,0,866,873,5,101,0,0,867,868,5,102,0,0,868,869,5,97,0,0,869,870,5,108,0,0,870,871,5,115,0,0,871,873,5,101,0,0,872,863,1,0,0,0,872,867,1,0,0,0,873,208,1,0,0,0,874,881,3,211,105,0,875,877,3,211,105,0,876,875,1,0,0,0,876,877,1,0,0,0,877,878,1,0,0,0,878,879,5,46,0,0,879,881,3,211,105,0,880,874,1,0,0,0,880,876,1,0,0,0,881,887,1,0,0,0,882,884,7,4,0,0,883,885,5,45,0,0,884,883,1,0,0,0,884,885,1,0,0,0,885,886,1,0,0,0,886,888,3,211,105,0,887,882,1,0,0,0,887,888,1,0,0,0,888,210,1,0,0,0,889,896,7,0,0,0,890,892,5,95,0,0,891,890,1,0,0,0,891,892,1,0,0,0,892,893,1,0,0,0,893,895,7,0,0,0,894,891,1,0,0,0,895,898,1,0,0,0,896,894,1,0,0,0,896,897,1,0,0,0,897,212,1,0,0,0,898,896,1,0,0,0,899,900,5,48,0,0,900,901,7,5,0,0,901,902,3,215,107,0,902,214,1,0,0,0,903,910,3,221,110,0,904,906,5,95,0,0,905,904,1,0,0,0,905,906,1,0,0,0,906,907,1,0,0,0,907,909,3,221,110,0,908,905,1,0,0,0,909,912,1,0,0,0,910,908,1,0,0,0,910,911,1,0,0,0,911,216,1,0,0,0,912,910,1,0,0,0,913,914,5,119,0,0,914,915,5,101,0,0,915,970,5,105,0,0,916,917,5,103,0,0,917,918,5,119,0,0,918,919,5,101,0,0,919,970,5,105,0,0,920,921,5,115,0,0,921,922,5,122,0,0,922,923,5,97,0,0,923,924,5,98,0,0,924,970,5,111,0,0,925,926,5,102,0,0,926,927,5,105,0,0,927,928,5,110,0,0,928,929,5,110,0,0,929,930,5,101,0,0,930,970,5,121,0,0,931,932,5,101,0,0,932,933,5,116,0,0,933,934,5,104,0,0,934,935,5,101,0,0,935,970,5,114,0,0,936,937,5,115,0,0,937,938,5,101,0,0,938,939,5,99,0,0,939,940,5,111,0,0,940,941,5,110,0,0,941,942,5,100,0,0,942,970,5,115,0,0,943,944,5,109,0,0,944,945,5,105,0,0,945,946,5,110,0,0,946,947,5,117,0,0,947,948,5,116,0,0,948,949,5,101,0,0,949,970,5,115,0,0,950,951,5,104,0,0,951,952,5,111,0,0,952,953,5,117,0,0,953,954,5,114,0,0,954,970,5,115,0,0,955,956,5,100,0,0,956,957,5,97,0,0,957,958,5,121,0,0,958,970,5,115,0,0,959,960,5,119,0,0,960,961,5,101,0,0,961,962,5,101,0,0,962,963,5,107,0,0,963,970,5,115,0,0,964,965,5,121,0,0,965,966,5,101,0,0,966,967,5,97,0,0,967,968,5,114,0,0,968,970,5,115,0,0,969,913,1,0,0,0,969,916,1,0,0,0,969,920,1,0,0,0,969,925,1,0,0,0,969,931,1,0,0,0,969,936,1,0,0,0,969,943,1,0,0,0,969,950,1,0,0,0,969,955,1,0,0,0,969,959,1,0,0,0,969,964,1,0,0,0,970,218,1,0,0,0,971,972,5,104,0,0,972,973,5,101,0,0,973,974,5,120,0,0,974,985,1,0,0,0,975,977,5,34,0,0,976,978,3,215,107,0,977,976,1,0,0,0,977,978,1,0,0,0,978,979,1,0,0,0,979,986,5,34,0,0,980,982,5,39,0,0,981,983,3,215,107,0,982,981,1,0,0,0,982,983,1,0,0,0,983,984,1,0,0,0,984,986,5,39,0,0,985,975,1,0,0,0,985,980,1,0,0,0,986,220,1,0,0,0,987,988,7,6,0,0,988,222,1,0,0,0,989,990,5,97,0,0,990,991,5,98,0,0,991,992,5,115,0,0,992,993,5,116,0,0,993,994,5,114,0,0,994,995,5,97,0,0,995,996,5,99,0,0,996,1078,5,116,0,0,997,998,5,97,0,0,998,999,5,102,0,0,999,1e3,5,116,0,0,1e3,1001,5,101,0,0,1001,1078,5,114,0,0,1002,1003,5,99,0,0,1003,1004,5,97,0,0,1004,1005,5,115,0,0,1005,1078,5,101,0,0,1006,1007,5,99,0,0,1007,1008,5,97,0,0,1008,1009,5,116,0,0,1009,1010,5,99,0,0,1010,1078,5,104,0,0,1011,1012,5,100,0,0,1012,1013,5,101,0,0,1013,1014,5,102,0,0,1014,1015,5,97,0,0,1015,1016,5,117,0,0,1016,1017,5,108,0,0,1017,1078,5,116,0,0,1018,1019,5,102,0,0,1019,1020,5,105,0,0,1020,1021,5,110,0,0,1021,1022,5,97,0,0,1022,1078,5,108,0,0,1023,1024,5,105,0,0,1024,1078,5,110,0,0,1025,1026,5,105,0,0,1026,1027,5,110,0,0,1027,1028,5,108,0,0,1028,1029,5,105,0,0,1029,1030,5,110,0,0,1030,1078,5,101,0,0,1031,1032,5,108,0,0,1032,1033,5,101,0,0,1033,1078,5,116,0,0,1034,1035,5,109,0,0,1035,1036,5,97,0,0,1036,1037,5,116,0,0,1037,1038,5,99,0,0,1038,1078,5,104,0,0,1039,1040,5,110,0,0,1040,1041,5,117,0,0,1041,1042,5,108,0,0,1042,1078,5,108,0,0,1043,1044,5,111,0,0,1044,1078,5,102,0,0,1045,1046,5,114,0,0,1046,1047,5,101,0,0,1047,1048,5,108,0,0,1048,1049,5,111,0,0,1049,1050,5,99,0,0,1050,1051,5,97,0,0,1051,1052,5,116,0,0,1052,1053,5,97,0,0,1053,1054,5,98,0,0,1054,1055,5,108,0,0,1055,1078,5,101,0,0,1056,1057,5,115,0,0,1057,1058,5,116,0,0,1058,1059,5,97,0,0,1059,1060,5,116,0,0,1060,1061,5,105,0,0,1061,1078,5,99,0,0,1062,1063,5,115,0,0,1063,1064,5,119,0,0,1064,1065,5,105,0,0,1065,1066,5,116,0,0,1066,1067,5,99,0,0,1067,1078,5,104,0,0,1068,1069,5,116,0,0,1069,1070,5,114,0,0,1070,1078,5,121,0,0,1071,1072,5,116,0,0,1072,1073,5,121,0,0,1073,1074,5,112,0,0,1074,1075,5,101,0,0,1075,1076,5,111,0,0,1076,1078,5,102,0,0,1077,989,1,0,0,0,1077,997,1,0,0,0,1077,1002,1,0,0,0,1077,1006,1,0,0,0,1077,1011,1,0,0,0,1077,1018,1,0,0,0,1077,1023,1,0,0,0,1077,1025,1,0,0,0,1077,1031,1,0,0,0,1077,1034,1,0,0,0,1077,1039,1,0,0,0,1077,1043,1,0,0,0,1077,1045,1,0,0,0,1077,1056,1,0,0,0,1077,1062,1,0,0,0,1077,1068,1,0,0,0,1077,1071,1,0,0,0,1078,224,1,0,0,0,1079,1080,5,97,0,0,1080,1081,5,110,0,0,1081,1082,5,111,0,0,1082,1083,5,110,0,0,1083,1084,5,121,0,0,1084,1085,5,109,0,0,1085,1086,5,111,0,0,1086,1087,5,117,0,0,1087,1088,5,115,0,0,1088,226,1,0,0,0,1089,1090,5,98,0,0,1090,1091,5,114,0,0,1091,1092,5,101,0,0,1092,1093,5,97,0,0,1093,1094,5,107,0,0,1094,228,1,0,0,0,1095,1096,5,99,0,0,1096,1097,5,111,0,0,1097,1098,5,110,0,0,1098,1099,5,115,0,0,1099,1100,5,116,0,0,1100,1101,5,97,0,0,1101,1102,5,110,0,0,1102,1103,5,116,0,0,1103,230,1,0,0,0,1104,1105,5,105,0,0,1105,1106,5,109,0,0,1106,1107,5,109,0,0,1107,1108,5,117,0,0,1108,1109,5,116,0,0,1109,1110,5,97,0,0,1110,1111,5,98,0,0,1111,1112,5,108,0,0,1112,1113,5,101,0,0,1113,232,1,0,0,0,1114,1115,5,99,0,0,1115,1116,5,111,0,0,1116,1117,5,110,0,0,1117,1118,5,116,0,0,1118,1119,5,105,0,0,1119,1120,5,110,0,0,1120,1121,5,117,0,0,1121,1122,5,101,0,0,1122,234,1,0,0,0,1123,1124,5,108,0,0,1124,1125,5,101,0,0,1125,1126,5,97,0,0,1126,1127,5,118,0,0,1127,1128,5,101,0,0,1128,236,1,0,0,0,1129,1130,5,101,0,0,1130,1131,5,120,0,0,1131,1132,5,116,0,0,1132,1133,5,101,0,0,1133,1134,5,114,0,0,1134,1135,5,110,0,0,1135,1136,5,97,0,0,1136,1137,5,108,0,0,1137,238,1,0,0,0,1138,1139,5,105,0,0,1139,1140,5,110,0,0,1140,1141,5,100,0,0,1141,1142,5,101,0,0,1142,1143,5,120,0,0,1143,1144,5,101,0,0,1144,1145,5,100,0,0,1145,240,1,0,0,0,1146,1147,5,105,0,0,1147,1148,5,110,0,0,1148,1149,5,116,0,0,1149,1150,5,101,0,0,1150,1151,5,114,0,0,1151,1152,5,110,0,0,1152,1153,5,97,0,0,1153,1154,5,108,0,0,1154,242,1,0,0,0,1155,1156,5,112,0,0,1156,1157,5,97,0,0,1157,1158,5,121,0,0,1158,1159,5,97,0,0,1159,1160,5,98,0,0,1160,1161,5,108,0,0,1161,1162,5,101,0,0,1162,244,1,0,0,0,1163,1164,5,112,0,0,1164,1165,5,114,0,0,1165,1166,5,105,0,0,1166,1167,5,118,0,0,1167,1168,5,97,0,0,1168,1169,5,116,0,0,1169,1170,5,101,0,0,1170,246,1,0,0,0,1171,1172,5,112,0,0,1172,1173,5,117,0,0,1173,1174,5,98,0,0,1174,1175,5,108,0,0,1175,1176,5,105,0,0,1176,1177,5,99,0,0,1177,248,1,0,0,0,1178,1179,5,118,0,0,1179,1180,5,105,0,0,1180,1181,5,114,0,0,1181,1182,5,116,0,0,1182,1183,5,117,0,0,1183,1184,5,97,0,0,1184,1185,5,108,0,0,1185,250,1,0,0,0,1186,1187,5,112,0,0,1187,1188,5,117,0,0,1188,1189,5,114,0,0,1189,1190,5,101,0,0,1190,252,1,0,0,0,1191,1192,5,116,0,0,1192,1193,5,121,0,0,1193,1194,5,112,0,0,1194,1195,5,101,0,0,1195,254,1,0,0,0,1196,1197,5,118,0,0,1197,1198,5,105,0,0,1198,1199,5,101,0,0,1199,1200,5,119,0,0,1200,256,1,0,0,0,1201,1202,5,103,0,0,1202,1203,5,108,0,0,1203,1204,5,111,0,0,1204,1205,5,98,0,0,1205,1206,5,97,0,0,1206,1207,5,108,0,0,1207,258,1,0,0,0,1208,1209,5,99,0,0,1209,1210,5,111,0,0,1210,1211,5,110,0,0,1211,1212,5,115,0,0,1212,1213,5,116,0,0,1213,1214,5,114,0,0,1214,1215,5,117,0,0,1215,1216,5,99,0,0,1216,1217,5,116,0,0,1217,1218,5,111,0,0,1218,1219,5,114,0,0,1219,260,1,0,0,0,1220,1221,5,102,0,0,1221,1222,5,97,0,0,1222,1223,5,108,0,0,1223,1224,5,108,0,0,1224,1225,5,98,0,0,1225,1226,5,97,0,0,1226,1227,5,99,0,0,1227,1228,5,107,0,0,1228,262,1,0,0,0,1229,1230,5,114,0,0,1230,1231,5,101,0,0,1231,1232,5,99,0,0,1232,1233,5,101,0,0,1233,1234,5,105,0,0,1234,1235,5,118,0,0,1235,1236,5,101,0,0,1236,264,1,0,0,0,1237,1241,3,267,133,0,1238,1240,3,269,134,0,1239,1238,1,0,0,0,1240,1243,1,0,0,0,1241,1239,1,0,0,0,1241,1242,1,0,0,0,1242,266,1,0,0,0,1243,1241,1,0,0,0,1244,1245,7,7,0,0,1245,268,1,0,0,0,1246,1247,7,8,0,0,1247,270,1,0,0,0,1248,1249,5,117,0,0,1249,1250,5,110,0,0,1250,1251,5,105,0,0,1251,1252,5,99,0,0,1252,1253,5,111,0,0,1253,1254,5,100,0,0,1254,1256,5,101,0,0,1255,1248,1,0,0,0,1255,1256,1,0,0,0,1256,1273,1,0,0,0,1257,1261,5,34,0,0,1258,1260,3,273,136,0,1259,1258,1,0,0,0,1260,1263,1,0,0,0,1261,1259,1,0,0,0,1261,1262,1,0,0,0,1262,1264,1,0,0,0,1263,1261,1,0,0,0,1264,1274,5,34,0,0,1265,1269,5,39,0,0,1266,1268,3,275,137,0,1267,1266,1,0,0,0,1268,1271,1,0,0,0,1269,1267,1,0,0,0,1269,1270,1,0,0,0,1270,1272,1,0,0,0,1271,1269,1,0,0,0,1272,1274,5,39,0,0,1273,1257,1,0,0,0,1273,1265,1,0,0,0,1274,272,1,0,0,0,1275,1279,8,9,0,0,1276,1277,5,92,0,0,1277,1279,9,0,0,0,1278,1275,1,0,0,0,1278,1276,1,0,0,0,1279,274,1,0,0,0,1280,1284,8,10,0,0,1281,1282,5,92,0,0,1282,1284,9,0,0,0,1283,1280,1,0,0,0,1283,1281,1,0,0,0,1284,276,1,0,0,0,1285,1287,7,0,0,0,1286,1285,1,0,0,0,1287,1288,1,0,0,0,1288,1286,1,0,0,0,1288,1289,1,0,0,0,1289,1290,1,0,0,0,1290,1292,5,46,0,0,1291,1293,7,0,0,0,1292,1291,1,0,0,0,1293,1294,1,0,0,0,1294,1292,1,0,0,0,1294,1295,1,0,0,0,1295,1302,1,0,0,0,1296,1298,5,46,0,0,1297,1299,7,0,0,0,1298,1297,1,0,0,0,1299,1300,1,0,0,0,1300,1298,1,0,0,0,1300,1301,1,0,0,0,1301,1303,1,0,0,0,1302,1296,1,0,0,0,1302,1303,1,0,0,0,1303,278,1,0,0,0,1304,1306,7,11,0,0,1305,1304,1,0,0,0,1306,1307,1,0,0,0,1307,1305,1,0,0,0,1307,1308,1,0,0,0,1308,1309,1,0,0,0,1309,1310,6,139,0,0,1310,280,1,0,0,0,1311,1312,5,47,0,0,1312,1313,5,42,0,0,1313,1317,1,0,0,0,1314,1316,9,0,0,0,1315,1314,1,0,0,0,1316,1319,1,0,0,0,1317,1318,1,0,0,0,1317,1315,1,0,0,0,1318,1320,1,0,0,0,1319,1317,1,0,0,0,1320,1321,5,42,0,0,1321,1322,5,47,0,0,1322,1323,1,0,0,0,1323,1324,6,140,1,0,1324,282,1,0,0,0,1325,1326,5,47,0,0,1326,1327,5,47,0,0,1327,1331,1,0,0,0,1328,1330,8,12,0,0,1329,1328,1,0,0,0,1330,1333,1,0,0,0,1331,1329,1,0,0,0,1331,1332,1,0,0,0,1332,1334,1,0,0,0,1333,1331,1,0,0,0,1334,1335,6,141,1,0,1335,284,1,0,0,0,38,0,721,729,738,751,753,767,769,854,861,872,876,880,884,887,891,896,905,910,969,977,982,985,1077,1241,1255,1261,1269,1273,1278,1283,1288,1294,1300,1302,1307,1317,1331,2,6,0,0,0,1,0],T.DecisionsToDFA=E._ATN.decisionToState.map(((t,e)=>new h(t,e)));var S=T,k=class extends g{get grammarFileName(){return"Solidity.g4"}get literalNames(){return k.literalNames}get symbolicNames(){return k.symbolicNames}get ruleNames(){return k.ruleNames}get serializedATN(){return k._serializedATN}createFailedPredicateException(t,e){return new d(this,t,e)}constructor(t){super(t),this._interp=new w(this,k._ATN,k.DecisionsToDFA,new v)}sourceUnit(){let t,e=new C(this,this._ctx,this.state);this.enterRule(e,0,k.RULE_sourceUnit);try{for(this.enterOuterAlt(e,1),this.state=215,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&104620034)||0==(t-36&-32)&&0!=(1<<t-36&2080392501)||0==(t-95&-32)&&0!=(1<<t-95&3896770685)||127===t||128===t;){switch(this.state=213,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,0,this._ctx)){case 1:this.state=202,this.pragmaDirective();break;case 2:this.state=203,this.importDirective();break;case 3:this.state=204,this.contractDefinition();break;case 4:this.state=205,this.enumDefinition();break;case 5:this.state=206,this.eventDefinition();break;case 6:this.state=207,this.structDefinition();break;case 7:this.state=208,this.functionDefinition();break;case 8:this.state=209,this.fileLevelConstant();break;case 9:this.state=210,this.customErrorDefinition();break;case 10:this.state=211,this.typeDefinition();break;case 11:this.state=212,this.usingForDeclaration()}this.state=217,this._errHandler.sync(this),t=this._input.LA(1)}this.state=218,this.match(k.EOF)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pragmaDirective(){let t=new K(this,this._ctx,this.state);this.enterRule(t,2,k.RULE_pragmaDirective);try{this.enterOuterAlt(t,1),this.state=220,this.match(k.T__0),this.state=221,this.pragmaName(),this.state=222,this.pragmaValue(),this.state=223,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}pragmaName(){let t=new L(this,this._ctx,this.state);this.enterRule(t,4,k.RULE_pragmaName);try{this.enterOuterAlt(t,1),this.state=225,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}pragmaValue(){let t=new I(this,this._ctx,this.state);this.enterRule(t,6,k.RULE_pragmaValue);try{switch(this.state=230,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,2,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=227,this.match(k.T__2);break;case 2:this.enterOuterAlt(t,2),this.state=228,this.version();break;case 3:this.enterOuterAlt(t,3),this.state=229,this.expression(0)}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}version(){let t,e=new N(this,this._ctx,this.state);this.enterRule(e,8,k.RULE_version);try{for(this.enterOuterAlt(e,1),this.state=232,this.versionConstraint(),this.state=239,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&4080)||103===t||130===t;)this.state=234,this._errHandler.sync(this),t=this._input.LA(1),4===t&&(this.state=233,this.match(k.T__3)),this.state=236,this.versionConstraint(),this.state=241,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}versionOperator(){let t,e=new D(this,this._ctx,this.state);this.enterRule(e,10,k.RULE_versionOperator);try{this.enterOuterAlt(e,1),this.state=242,t=this._input.LA(1),0!=(-32&t)||0==(1<<t&4064)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}versionConstraint(){let t,e=new O(this,this._ctx,this.state);this.enterRule(e,12,k.RULE_versionConstraint);try{switch(this.state=252,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=245,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&4064)&&(this.state=244,this.versionOperator()),this.state=247,this.match(k.VersionLiteral);break;case 2:this.enterOuterAlt(e,2),this.state=249,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&4064)&&(this.state=248,this.versionOperator()),this.state=251,this.match(k.DecimalNumber)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importDeclaration(){let t,e=new P(this,this._ctx,this.state);this.enterRule(e,14,k.RULE_importDeclaration);try{this.enterOuterAlt(e,1),this.state=254,this.identifier(),this.state=257,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=255,this.match(k.T__11),this.state=256,this.identifier())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importDirective(){let t,e=new q(this,this._ctx,this.state);this.enterRule(e,16,k.RULE_importDirective);try{switch(this.state=295,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=259,this.match(k.T__12),this.state=260,this.importPath(),this.state=263,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=261,this.match(k.T__11),this.state=262,this.identifier()),this.state=265,this.match(k.T__1);break;case 2:switch(this.enterOuterAlt(e,2),this.state=267,this.match(k.T__12),this.state=270,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=268,this.match(k.T__2);break;case 14:case 25:case 44:case 50:case 62:case 95:case 113:case 117:case 124:case 125:case 127:case 128:this.state=269,this.identifier();break;default:throw new y(this)}this.state=274,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=272,this.match(k.T__11),this.state=273,this.identifier()),this.state=276,this.match(k.T__13),this.state=277,this.importPath(),this.state=278,this.match(k.T__1);break;case 3:for(this.enterOuterAlt(e,3),this.state=280,this.match(k.T__12),this.state=281,this.match(k.T__14),this.state=282,this.importDeclaration(),this.state=287,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=283,this.match(k.T__15),this.state=284,this.importDeclaration(),this.state=289,this._errHandler.sync(this),t=this._input.LA(1);this.state=290,this.match(k.T__16),this.state=291,this.match(k.T__13),this.state=292,this.importPath(),this.state=293,this.match(k.T__1)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importPath(){let t=new Y(this,this._ctx,this.state);this.enterRule(t,18,k.RULE_importPath);try{this.enterOuterAlt(t,1),this.state=297,this.match(k.StringLiteralFragment)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}contractDefinition(){let t,e=new F(this,this._ctx,this.state);this.enterRule(e,20,k.RULE_contractDefinition);try{if(this.enterOuterAlt(e,1),this.state=300,this._errHandler.sync(this),t=this._input.LA(1),18===t&&(this.state=299,this.match(k.T__17)),this.state=302,t=this._input.LA(1),0!=(-32&t)||0==(1<<t&3670016)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=303,this.identifier(),this.state=313,this._errHandler.sync(this),t=this._input.LA(1),22===t)for(this.state=304,this.match(k.T__21),this.state=305,this.inheritanceSpecifier(),this.state=310,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=306,this.match(k.T__15),this.state=307,this.inheritanceSpecifier(),this.state=312,this._errHandler.sync(this),t=this._input.LA(1);for(this.state=315,this.match(k.T__14),this.state=319,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&100679680)||0==(t-36&-32)&&0!=(1<<t-36&2080392503)||0==(t-95&-32)&&0!=(1<<t-95&3896770685)||127===t||128===t;)this.state=316,this.contractPart(),this.state=321,this._errHandler.sync(this),t=this._input.LA(1);this.state=322,this.match(k.T__16)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}inheritanceSpecifier(){let t,e=new M(this,this._ctx,this.state);this.enterRule(e,22,k.RULE_inheritanceSpecifier);try{this.enterOuterAlt(e,1),this.state=324,this.userDefinedTypeName(),this.state=330,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=325,this.match(k.T__22),this.state=327,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=326,this.expressionList()),this.state=329,this.match(k.T__23))}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}contractPart(){let t=new U(this,this._ctx,this.state);this.enterRule(t,24,k.RULE_contractPart);try{switch(this.state=341,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,20,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=332,this.stateVariableDeclaration();break;case 2:this.enterOuterAlt(t,2),this.state=333,this.usingForDeclaration();break;case 3:this.enterOuterAlt(t,3),this.state=334,this.structDefinition();break;case 4:this.enterOuterAlt(t,4),this.state=335,this.modifierDefinition();break;case 5:this.enterOuterAlt(t,5),this.state=336,this.functionDefinition();break;case 6:this.enterOuterAlt(t,6),this.state=337,this.eventDefinition();break;case 7:this.enterOuterAlt(t,7),this.state=338,this.enumDefinition();break;case 8:this.enterOuterAlt(t,8),this.state=339,this.customErrorDefinition();break;case 9:this.enterOuterAlt(t,9),this.state=340,this.typeDefinition()}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}stateVariableDeclaration(){let t,e=new B(this,this._ctx,this.state);this.enterRule(e,26,k.RULE_stateVariableDeclaration);try{for(this.enterOuterAlt(e,1),this.state=343,this.typeName(0),this.state=352,this._errHandler.sync(this),t=this._input.LA(1);0==(t-96&-32)&&0!=(1<<t-96&13680641);){switch(this.state=350,this._errHandler.sync(this),this._input.LA(1)){case 119:this.state=344,this.match(k.PublicKeyword);break;case 116:this.state=345,this.match(k.InternalKeyword);break;case 118:this.state=346,this.match(k.PrivateKeyword);break;case 110:this.state=347,this.match(k.ConstantKeyword);break;case 111:this.state=348,this.match(k.ImmutableKeyword);break;case 96:this.state=349,this.overrideSpecifier();break;default:throw new y(this)}this.state=354,this._errHandler.sync(this),t=this._input.LA(1)}this.state=355,this.identifier(),this.state=358,this._errHandler.sync(this),t=this._input.LA(1),11===t&&(this.state=356,this.match(k.T__10),this.state=357,this.expression(0)),this.state=360,this.match(k.T__1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}fileLevelConstant(){let t=new V(this,this._ctx,this.state);this.enterRule(t,28,k.RULE_fileLevelConstant);try{this.enterOuterAlt(t,1),this.state=362,this.typeName(0),this.state=363,this.match(k.ConstantKeyword),this.state=364,this.identifier(),this.state=365,this.match(k.T__10),this.state=366,this.expression(0),this.state=367,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}customErrorDefinition(){let t=new H(this,this._ctx,this.state);this.enterRule(t,30,k.RULE_customErrorDefinition);try{this.enterOuterAlt(t,1),this.state=369,this.match(k.T__24),this.state=370,this.identifier(),this.state=371,this.parameterList(),this.state=372,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}typeDefinition(){let t=new j(this,this._ctx,this.state);this.enterRule(t,32,k.RULE_typeDefinition);try{this.enterOuterAlt(t,1),this.state=374,this.match(k.TypeKeyword),this.state=375,this.identifier(),this.state=376,this.match(k.T__21),this.state=377,this.elementaryTypeName(),this.state=378,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}usingForDeclaration(){let t,e=new $(this,this._ctx,this.state);this.enterRule(e,34,k.RULE_usingForDeclaration);try{switch(this.enterOuterAlt(e,1),this.state=380,this.match(k.T__25),this.state=381,this.usingForObject(),this.state=382,this.match(k.T__26),this.state=385,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=383,this.match(k.T__2);break;case 14:case 25:case 38:case 44:case 46:case 50:case 62:case 63:case 64:case 65:case 66:case 95:case 97:case 98:case 99:case 100:case 101:case 113:case 117:case 124:case 125:case 127:case 128:this.state=384,this.typeName(0);break;default:throw new y(this)}this.state=388,this._errHandler.sync(this),t=this._input.LA(1),124===t&&(this.state=387,this.match(k.GlobalKeyword)),this.state=390,this.match(k.T__1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}usingForObject(){let t,e=new Q(this,this._ctx,this.state);this.enterRule(e,36,k.RULE_usingForObject);try{switch(this.state=404,this._errHandler.sync(this),this._input.LA(1)){case 14:case 25:case 44:case 50:case 62:case 95:case 113:case 117:case 124:case 125:case 127:case 128:this.enterOuterAlt(e,1),this.state=392,this.userDefinedTypeName();break;case 15:for(this.enterOuterAlt(e,2),this.state=393,this.match(k.T__14),this.state=394,this.usingForObjectDirective(),this.state=399,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=395,this.match(k.T__15),this.state=396,this.usingForObjectDirective(),this.state=401,this._errHandler.sync(this),t=this._input.LA(1);this.state=402,this.match(k.T__16);break;default:throw new y(this)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}usingForObjectDirective(){let t,e=new G(this,this._ctx,this.state);this.enterRule(e,38,k.RULE_usingForObjectDirective);try{this.enterOuterAlt(e,1),this.state=406,this.userDefinedTypeName(),this.state=409,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=407,this.match(k.T__11),this.state=408,this.userDefinableOperators())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}userDefinableOperators(){let t,e=new z(this,this._ctx,this.state);this.enterRule(e,40,k.RULE_userDefinableOperators);try{this.enterOuterAlt(e,1),this.state=411,t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&4026533864)||0==(t-32&-32)&&0!=(1<<t-32&15)?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}structDefinition(){let t,e=new W(this,this._ctx,this.state);this.enterRule(e,42,k.RULE_structDefinition);try{if(this.enterOuterAlt(e,1),this.state=413,this.match(k.T__35),this.state=414,this.identifier(),this.state=415,this.match(k.T__14),this.state=426,this._errHandler.sync(this),t=this._input.LA(1),14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)for(this.state=416,this.variableDeclaration(),this.state=417,this.match(k.T__1),this.state=423,this._errHandler.sync(this),t=this._input.LA(1);14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t;)this.state=418,this.variableDeclaration(),this.state=419,this.match(k.T__1),this.state=425,this._errHandler.sync(this),t=this._input.LA(1);this.state=428,this.match(k.T__16)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}modifierDefinition(){let t,e=new X(this,this._ctx,this.state);this.enterRule(e,44,k.RULE_modifierDefinition);try{for(this.enterOuterAlt(e,1),this.state=430,this.match(k.T__36),this.state=431,this.identifier(),this.state=433,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=432,this.parameterList()),this.state=439,this._errHandler.sync(this),t=this._input.LA(1);96===t||120===t;){switch(this.state=437,this._errHandler.sync(this),this._input.LA(1)){case 120:this.state=435,this.match(k.VirtualKeyword);break;case 96:this.state=436,this.overrideSpecifier();break;default:throw new y(this)}this.state=441,this._errHandler.sync(this),t=this._input.LA(1)}switch(this.state=444,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=442,this.match(k.T__1);break;case 15:this.state=443,this.block();break;default:throw new y(this)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}modifierInvocation(){let t,e=new J(this,this._ctx,this.state);this.enterRule(e,46,k.RULE_modifierInvocation);try{this.enterOuterAlt(e,1),this.state=446,this.identifier(),this.state=452,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=447,this.match(k.T__22),this.state=449,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=448,this.expressionList()),this.state=451,this.match(k.T__23))}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionDefinition(){let t,e=new Z(this,this._ctx,this.state);this.enterRule(e,48,k.RULE_functionDefinition);try{switch(this.enterOuterAlt(e,1),this.state=454,this.functionDescriptor(),this.state=455,this.parameterList(),this.state=456,this.modifierList(),this.state=458,this._errHandler.sync(this),t=this._input.LA(1),39===t&&(this.state=457,this.returnParameters()),this.state=462,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=460,this.match(k.T__1);break;case 15:this.state=461,this.block();break;default:throw new y(this)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionDescriptor(){let t,e=new tt(this,this._ctx,this.state);this.enterRule(e,50,k.RULE_functionDescriptor);try{switch(this.state=471,this._errHandler.sync(this),this._input.LA(1)){case 38:this.enterOuterAlt(e,1),this.state=464,this.match(k.T__37),this.state=466,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=465,this.identifier());break;case 125:this.enterOuterAlt(e,2),this.state=468,this.match(k.ConstructorKeyword);break;case 126:this.enterOuterAlt(e,3),this.state=469,this.match(k.FallbackKeyword);break;case 127:this.enterOuterAlt(e,4),this.state=470,this.match(k.ReceiveKeyword);break;default:throw new y(this)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}returnParameters(){let t=new et(this,this._ctx,this.state);this.enterRule(t,52,k.RULE_returnParameters);try{this.enterOuterAlt(t,1),this.state=473,this.match(k.T__38),this.state=474,this.parameterList()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}modifierList(){let t,e=new rt(this,this._ctx,this.state);this.enterRule(e,54,k.RULE_modifierList);try{for(this.enterOuterAlt(e,1),this.state=486,this._errHandler.sync(this),t=this._input.LA(1);14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&2011987971)||127===t||128===t;){switch(this.state=484,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,41,this._ctx)){case 1:this.state=476,this.match(k.ExternalKeyword);break;case 2:this.state=477,this.match(k.PublicKeyword);break;case 3:this.state=478,this.match(k.InternalKeyword);break;case 4:this.state=479,this.match(k.PrivateKeyword);break;case 5:this.state=480,this.match(k.VirtualKeyword);break;case 6:this.state=481,this.stateMutability();break;case 7:this.state=482,this.modifierInvocation();break;case 8:this.state=483,this.overrideSpecifier()}this.state=488,this._errHandler.sync(this),t=this._input.LA(1)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}eventDefinition(){let t,e=new st(this,this._ctx,this.state);this.enterRule(e,56,k.RULE_eventDefinition);try{this.enterOuterAlt(e,1),this.state=489,this.match(k.T__39),this.state=490,this.identifier(),this.state=491,this.eventParameterList(),this.state=493,this._errHandler.sync(this),t=this._input.LA(1),108===t&&(this.state=492,this.match(k.AnonymousKeyword)),this.state=495,this.match(k.T__1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}enumValue(){let t=new it(this,this._ctx,this.state);this.enterRule(t,58,k.RULE_enumValue);try{this.enterOuterAlt(t,1),this.state=497,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}enumDefinition(){let t,e=new nt(this,this._ctx,this.state);this.enterRule(e,60,k.RULE_enumDefinition);try{for(this.enterOuterAlt(e,1),this.state=499,this.match(k.T__40),this.state=500,this.identifier(),this.state=501,this.match(k.T__14),this.state=503,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=502,this.enumValue()),this.state=509,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=505,this.match(k.T__15),this.state=506,this.enumValue(),this.state=511,this._errHandler.sync(this),t=this._input.LA(1);this.state=512,this.match(k.T__16)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}parameterList(){let t,e=new at(this,this._ctx,this.state);this.enterRule(e,62,k.RULE_parameterList);try{if(this.enterOuterAlt(e,1),this.state=514,this.match(k.T__22),this.state=523,this._errHandler.sync(this),t=this._input.LA(1),14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)for(this.state=515,this.parameter(),this.state=520,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=516,this.match(k.T__15),this.state=517,this.parameter(),this.state=522,this._errHandler.sync(this),t=this._input.LA(1);this.state=525,this.match(k.T__23)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}parameter(){let t,e=new ot(this,this._ctx,this.state);this.enterRule(e,64,k.RULE_parameter);try{this.enterOuterAlt(e,1),this.state=527,this.typeName(0),this.state=529,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,48,this._ctx)&&(this.state=528,this.storageLocation()),this.state=532,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=531,this.identifier())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}eventParameterList(){let t,e=new ct(this,this._ctx,this.state);this.enterRule(e,66,k.RULE_eventParameterList);try{if(this.enterOuterAlt(e,1),this.state=534,this.match(k.T__22),this.state=543,this._errHandler.sync(this),t=this._input.LA(1),14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)for(this.state=535,this.eventParameter(),this.state=540,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=536,this.match(k.T__15),this.state=537,this.eventParameter(),this.state=542,this._errHandler.sync(this),t=this._input.LA(1);this.state=545,this.match(k.T__23)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}eventParameter(){let t,e=new lt(this,this._ctx,this.state);this.enterRule(e,68,k.RULE_eventParameter);try{this.enterOuterAlt(e,1),this.state=547,this.typeName(0),this.state=549,this._errHandler.sync(this),t=this._input.LA(1),115===t&&(this.state=548,this.match(k.IndexedKeyword)),this.state=552,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=551,this.identifier())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionTypeParameterList(){let t,e=new ht(this,this._ctx,this.state);this.enterRule(e,70,k.RULE_functionTypeParameterList);try{if(this.enterOuterAlt(e,1),this.state=554,this.match(k.T__22),this.state=563,this._errHandler.sync(this),t=this._input.LA(1),14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)for(this.state=555,this.functionTypeParameter(),this.state=560,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=556,this.match(k.T__15),this.state=557,this.functionTypeParameter(),this.state=562,this._errHandler.sync(this),t=this._input.LA(1);this.state=565,this.match(k.T__23)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionTypeParameter(){let t,e=new ut(this,this._ctx,this.state);this.enterRule(e,72,k.RULE_functionTypeParameter);try{this.enterOuterAlt(e,1),this.state=567,this.typeName(0),this.state=569,this._errHandler.sync(this),t=this._input.LA(1),0==(t-48&-32)&&0!=(1<<t-48&7)&&(this.state=568,this.storageLocation())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}variableDeclaration(){let t=new dt(this,this._ctx,this.state);this.enterRule(t,74,k.RULE_variableDeclaration);try{this.enterOuterAlt(t,1),this.state=571,this.typeName(0),this.state=573,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,57,this._ctx)&&(this.state=572,this.storageLocation()),this.state=575,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}typeName(t){void 0===t&&(t=0);let e,r=this._ctx,s=this.state,i=new pt(this,this._ctx,s),n=i;this.enterRecursionRule(i,76,k.RULE_typeName,t);try{let t;switch(this.enterOuterAlt(i,1),this.state=584,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,58,this._ctx)){case 1:this.state=578,this.elementaryTypeName();break;case 2:this.state=579,this.userDefinedTypeName();break;case 3:this.state=580,this.mapping();break;case 4:this.state=581,this.functionTypeName();break;case 5:this.state=582,this.match(k.T__43),this.state=583,this.match(k.PayableKeyword)}for(this._ctx.stop=this._input.LT(-1),this.state=594,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,60,this._ctx);2!==t&&t!==a.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),n=i,i=new pt(this,r,s),this.pushNewRecursionContext(i,76,k.RULE_typeName),this.state=586,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=587,this.match(k.T__41),this.state=589,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&3263184960)||0==(e-38&-32)&&0!=(1<<e-38&4278194513)||0==(e-71&-32)&&0!=(1<<e-71&4244635651)||0==(e-103&-32)&&0!=(1<<e-103&124273675))&&(this.state=588,this.expression(0)),this.state=591,this.match(k.T__42)}this.state=596,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,60,this._ctx)}}catch(t){if(!(t instanceof b))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}userDefinedTypeName(){let t=new mt(this,this._ctx,this.state);this.enterRule(t,78,k.RULE_userDefinedTypeName);try{let e;for(this.enterOuterAlt(t,1),this.state=597,this.identifier(),this.state=602,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,61,this._ctx);2!==e&&e!==a.INVALID_ALT_NUMBER;)1===e&&(this.state=598,this.match(k.T__44),this.state=599,this.identifier()),this.state=604,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,61,this._ctx)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mappingKey(){let t=new yt(this,this._ctx,this.state);this.enterRule(t,80,k.RULE_mappingKey);try{switch(this.state=607,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,62,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=605,this.elementaryTypeName();break;case 2:this.enterOuterAlt(t,2),this.state=606,this.userDefinedTypeName()}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mapping(){let t,e=new ft(this,this._ctx,this.state);this.enterRule(e,82,k.RULE_mapping);try{this.enterOuterAlt(e,1),this.state=609,this.match(k.T__45),this.state=610,this.match(k.T__22),this.state=611,this.mappingKey(),this.state=613,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=612,this.mappingKeyName()),this.state=615,this.match(k.T__46),this.state=616,this.typeName(0),this.state=618,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=617,this.mappingValueName()),this.state=620,this.match(k.T__23)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mappingKeyName(){let t=new gt(this,this._ctx,this.state);this.enterRule(t,84,k.RULE_mappingKeyName);try{this.enterOuterAlt(t,1),this.state=622,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mappingValueName(){let t=new wt(this,this._ctx,this.state);this.enterRule(t,86,k.RULE_mappingValueName);try{this.enterOuterAlt(t,1),this.state=624,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}functionTypeName(){let t=new xt(this,this._ctx,this.state);this.enterRule(t,88,k.RULE_functionTypeName);try{let e;for(this.enterOuterAlt(t,1),this.state=626,this.match(k.T__37),this.state=627,this.functionTypeParameterList(),this.state=633,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,66,this._ctx);2!==e&&e!==a.INVALID_ALT_NUMBER;){if(1===e)switch(this.state=631,this._errHandler.sync(this),this._input.LA(1)){case 116:this.state=628,this.match(k.InternalKeyword);break;case 114:this.state=629,this.match(k.ExternalKeyword);break;case 110:case 117:case 121:case 123:this.state=630,this.stateMutability();break;default:throw new y(this)}this.state=635,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,66,this._ctx)}this.state=638,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,67,this._ctx)&&(this.state=636,this.match(k.T__38),this.state=637,this.functionTypeParameterList())}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}storageLocation(){let t,e=new vt(this,this._ctx,this.state);this.enterRule(e,90,k.RULE_storageLocation);try{this.enterOuterAlt(e,1),this.state=640,t=this._input.LA(1),0!=(t-48&-32)||0==(1<<t-48&7)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}stateMutability(){let t,e=new bt(this,this._ctx,this.state);this.enterRule(e,92,k.RULE_stateMutability);try{this.enterOuterAlt(e,1),this.state=642,t=this._input.LA(1),0!=(t-110&-32)||0==(1<<t-110&10369)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}block(){let t,e=new _t(this,this._ctx,this.state);this.enterRule(e,94,k.RULE_block);try{for(this.enterOuterAlt(e,1),this.state=644,this.match(k.T__14),this.state=648,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&3397435456)||0==(t-38&-32)&&0!=(1<<t-38&4294881617)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124274251);)this.state=645,this.statement(),this.state=650,this._errHandler.sync(this),t=this._input.LA(1);this.state=651,this.match(k.T__16)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}statement(){let t=new Et(this,this._ctx,this.state);this.enterRule(t,96,k.RULE_statement);try{switch(this.state=668,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,69,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=653,this.ifStatement();break;case 2:this.enterOuterAlt(t,2),this.state=654,this.tryStatement();break;case 3:this.enterOuterAlt(t,3),this.state=655,this.whileStatement();break;case 4:this.enterOuterAlt(t,4),this.state=656,this.forStatement();break;case 5:this.enterOuterAlt(t,5),this.state=657,this.block();break;case 6:this.enterOuterAlt(t,6),this.state=658,this.inlineAssemblyStatement();break;case 7:this.enterOuterAlt(t,7),this.state=659,this.doWhileStatement();break;case 8:this.enterOuterAlt(t,8),this.state=660,this.continueStatement();break;case 9:this.enterOuterAlt(t,9),this.state=661,this.breakStatement();break;case 10:this.enterOuterAlt(t,10),this.state=662,this.returnStatement();break;case 11:this.enterOuterAlt(t,11),this.state=663,this.throwStatement();break;case 12:this.enterOuterAlt(t,12),this.state=664,this.emitStatement();break;case 13:this.enterOuterAlt(t,13),this.state=665,this.simpleStatement();break;case 14:this.enterOuterAlt(t,14),this.state=666,this.uncheckedStatement();break;case 15:this.enterOuterAlt(t,15),this.state=667,this.revertStatement()}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expressionStatement(){let t=new Tt(this,this._ctx,this.state);this.enterRule(t,98,k.RULE_expressionStatement);try{this.enterOuterAlt(t,1),this.state=670,this.expression(0),this.state=671,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}ifStatement(){let t=new St(this,this._ctx,this.state);this.enterRule(t,100,k.RULE_ifStatement);try{this.enterOuterAlt(t,1),this.state=673,this.match(k.T__50),this.state=674,this.match(k.T__22),this.state=675,this.expression(0),this.state=676,this.match(k.T__23),this.state=677,this.statement(),this.state=680,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,70,this._ctx)&&(this.state=678,this.match(k.T__51),this.state=679,this.statement())}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}tryStatement(){let t,e=new kt(this,this._ctx,this.state);this.enterRule(e,102,k.RULE_tryStatement);try{this.enterOuterAlt(e,1),this.state=682,this.match(k.T__52),this.state=683,this.expression(0),this.state=685,this._errHandler.sync(this),t=this._input.LA(1),39===t&&(this.state=684,this.returnParameters()),this.state=687,this.block(),this.state=689,this._errHandler.sync(this),t=this._input.LA(1);do{this.state=688,this.catchClause(),this.state=691,this._errHandler.sync(this),t=this._input.LA(1)}while(54===t)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}catchClause(){let t,e=new Rt(this,this._ctx,this.state);this.enterRule(e,104,k.RULE_catchClause);try{this.enterOuterAlt(e,1),this.state=693,this.match(k.T__53),this.state=698,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&41959424)||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=695,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=694,this.identifier()),this.state=697,this.parameterList()),this.state=700,this.block()}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}whileStatement(){let t=new At(this,this._ctx,this.state);this.enterRule(t,106,k.RULE_whileStatement);try{this.enterOuterAlt(t,1),this.state=702,this.match(k.T__54),this.state=703,this.match(k.T__22),this.state=704,this.expression(0),this.state=705,this.match(k.T__23),this.state=706,this.statement()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}simpleStatement(){let t=new Ct(this,this._ctx,this.state);this.enterRule(t,108,k.RULE_simpleStatement);try{switch(this.enterOuterAlt(t,1),this.state=710,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,75,this._ctx)){case 1:this.state=708,this.variableDeclarationStatement();break;case 2:this.state=709,this.expressionStatement()}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}uncheckedStatement(){let t=new Kt(this,this._ctx,this.state);this.enterRule(t,110,k.RULE_uncheckedStatement);try{this.enterOuterAlt(t,1),this.state=712,this.match(k.T__55),this.state=713,this.block()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}forStatement(){let t,e=new Lt(this,this._ctx,this.state);this.enterRule(e,112,k.RULE_forStatement);try{switch(this.enterOuterAlt(e,1),this.state=715,this.match(k.T__26),this.state=716,this.match(k.T__22),this.state=719,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 30:case 31:case 38:case 42:case 44:case 46:case 50:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 72:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 106:case 113:case 117:case 122:case 124:case 125:case 127:case 128:case 129:this.state=717,this.simpleStatement();break;case 2:this.state=718,this.match(k.T__1);break;default:throw new y(this)}switch(this.state=723,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 30:case 31:case 38:case 42:case 44:case 46:case 50:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 72:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 106:case 113:case 117:case 122:case 124:case 125:case 127:case 128:case 129:this.state=721,this.expressionStatement();break;case 2:this.state=722,this.match(k.T__1);break;default:throw new y(this)}this.state=726,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=725,this.expression(0)),this.state=728,this.match(k.T__23),this.state=729,this.statement()}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}inlineAssemblyStatement(){let t,e=new It(this,this._ctx,this.state);this.enterRule(e,114,k.RULE_inlineAssemblyStatement);try{this.enterOuterAlt(e,1),this.state=731,this.match(k.T__56),this.state=733,this._errHandler.sync(this),t=this._input.LA(1),129===t&&(this.state=732,this.match(k.StringLiteralFragment)),this.state=739,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=735,this.match(k.T__22),this.state=736,this.inlineAssemblyStatementFlag(),this.state=737,this.match(k.T__23)),this.state=741,this.assemblyBlock()}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}inlineAssemblyStatementFlag(){let t=new Nt(this,this._ctx,this.state);this.enterRule(t,116,k.RULE_inlineAssemblyStatementFlag);try{this.enterOuterAlt(t,1),this.state=743,this.stringLiteral()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}doWhileStatement(){let t=new Dt(this,this._ctx,this.state);this.enterRule(t,118,k.RULE_doWhileStatement);try{this.enterOuterAlt(t,1),this.state=745,this.match(k.T__57),this.state=746,this.statement(),this.state=747,this.match(k.T__54),this.state=748,this.match(k.T__22),this.state=749,this.expression(0),this.state=750,this.match(k.T__23),this.state=751,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}continueStatement(){let t=new Ot(this,this._ctx,this.state);this.enterRule(t,120,k.RULE_continueStatement);try{this.enterOuterAlt(t,1),this.state=753,this.match(k.ContinueKeyword),this.state=754,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}breakStatement(){let t=new Pt(this,this._ctx,this.state);this.enterRule(t,122,k.RULE_breakStatement);try{this.enterOuterAlt(t,1),this.state=756,this.match(k.BreakKeyword),this.state=757,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}returnStatement(){let t,e=new qt(this,this._ctx,this.state);this.enterRule(e,124,k.RULE_returnStatement);try{this.enterOuterAlt(e,1),this.state=759,this.match(k.T__58),this.state=761,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=760,this.expression(0)),this.state=763,this.match(k.T__1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}throwStatement(){let t=new Yt(this,this._ctx,this.state);this.enterRule(t,126,k.RULE_throwStatement);try{this.enterOuterAlt(t,1),this.state=765,this.match(k.T__59),this.state=766,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}emitStatement(){let t=new Ft(this,this._ctx,this.state);this.enterRule(t,128,k.RULE_emitStatement);try{this.enterOuterAlt(t,1),this.state=768,this.match(k.T__60),this.state=769,this.functionCall(),this.state=770,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}revertStatement(){let t=new Mt(this,this._ctx,this.state);this.enterRule(t,130,k.RULE_revertStatement);try{this.enterOuterAlt(t,1),this.state=772,this.match(k.T__61),this.state=773,this.functionCall(),this.state=774,this.match(k.T__1)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}variableDeclarationStatement(){let t,e=new Ut(this,this._ctx,this.state);this.enterRule(e,132,k.RULE_variableDeclarationStatement);try{switch(this.enterOuterAlt(e,1),this.state=783,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,82,this._ctx)){case 1:this.state=776,this.match(k.T__62),this.state=777,this.identifierList();break;case 2:this.state=778,this.variableDeclaration();break;case 3:this.state=779,this.match(k.T__22),this.state=780,this.variableDeclarationList(),this.state=781,this.match(k.T__23)}this.state=787,this._errHandler.sync(this),t=this._input.LA(1),11===t&&(this.state=785,this.match(k.T__10),this.state=786,this.expression(0)),this.state=789,this.match(k.T__1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}variableDeclarationList(){let t,e=new Bt(this,this._ctx,this.state);this.enterRule(e,134,k.RULE_variableDeclarationList);try{for(this.enterOuterAlt(e,1),this.state=792,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)&&(this.state=791,this.variableDeclaration()),this.state=800,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=794,this.match(k.T__15),this.state=796,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)&&(this.state=795,this.variableDeclaration()),this.state=802,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}identifierList(){let t,e=new Vt(this,this._ctx,this.state);this.enterRule(e,136,k.RULE_identifierList);try{let r;for(this.enterOuterAlt(e,1),this.state=803,this.match(k.T__22),this.state=810,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,88,this._ctx);2!==r&&r!==a.INVALID_ALT_NUMBER;)1===r&&(this.state=805,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=804,this.identifier()),this.state=807,this.match(k.T__15)),this.state=812,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,88,this._ctx);this.state=814,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=813,this.identifier()),this.state=816,this.match(k.T__23)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}elementaryTypeName(){let t,e=new Ht(this,this._ctx,this.state);this.enterRule(e,138,k.RULE_elementaryTypeName);try{this.enterOuterAlt(e,1),this.state=818,t=this._input.LA(1),0==(t-44&-32)&&0!=(1<<t-44&7864321)||0==(t-97&-32)&&0!=(1<<t-97&31)?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expression(t){void 0===t&&(t=0);let e,r=this._ctx,s=this.state,i=new jt(this,this._ctx,s),n=i,o=140;this.enterRecursionRule(i,140,k.RULE_expression,t);try{let t;switch(this.enterOuterAlt(i,1),this.state=838,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,90,this._ctx)){case 1:this.state=821,this.match(k.T__68),this.state=822,this.typeName(0);break;case 2:this.state=823,this.match(k.T__22),this.state=824,this.expression(0),this.state=825,this.match(k.T__23);break;case 3:this.state=827,e=this._input.LA(1),67!==e&&68!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=828,this.expression(19);break;case 4:this.state=829,e=this._input.LA(1),30!==e&&31!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=830,this.expression(18);break;case 5:this.state=831,this.match(k.T__70),this.state=832,this.expression(17);break;case 6:this.state=833,this.match(k.T__71),this.state=834,this.expression(16);break;case 7:this.state=835,this.match(k.T__5),this.state=836,this.expression(15);break;case 8:this.state=837,this.primaryExpression()}for(this._ctx.stop=this._input.LT(-1),this.state=914,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,94,this._ctx);2!==t&&t!==a.INVALID_ALT_NUMBER;){if(1===t)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),n=i,this.state=912,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,93,this._ctx)){case 1:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=840,!this.precpred(this._ctx,14))throw this.createFailedPredicateException("this.precpred(this._ctx, 14)");this.state=841,this.match(k.T__72),this.state=842,this.expression(14);break;case 2:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=843,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=844,e=this._input.LA(1),0!=(e-3&-32)||0==(1<<e-3&1610612737)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=845,this.expression(14);break;case 3:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=846,!this.precpred(this._ctx,12))throw this.createFailedPredicateException("this.precpred(this._ctx, 12)");this.state=847,e=this._input.LA(1),30!==e&&31!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=848,this.expression(13);break;case 4:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=849,!this.precpred(this._ctx,11))throw this.createFailedPredicateException("this.precpred(this._ctx, 11)");this.state=850,e=this._input.LA(1),74!==e&&75!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=851,this.expression(12);break;case 5:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=852,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=853,this.match(k.T__28),this.state=854,this.expression(11);break;case 6:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=855,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=856,this.match(k.T__4),this.state=857,this.expression(10);break;case 7:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=858,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=859,this.match(k.T__27),this.state=860,this.expression(9);break;case 8:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=861,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=862,e=this._input.LA(1),0!=(-32&e)||0==(1<<e&1920)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=863,this.expression(8);break;case 9:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=864,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=865,e=this._input.LA(1),34!==e&&35!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=866,this.expression(7);break;case 10:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=867,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=868,this.match(k.T__75),this.state=869,this.expression(6);break;case 11:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=870,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=871,this.match(k.T__3),this.state=872,this.expression(5);break;case 12:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=873,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=874,this.match(k.T__76),this.state=875,this.expression(0),this.state=876,this.match(k.T__69),this.state=877,this.expression(3);break;case 13:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=879,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=880,e=this._input.LA(1),11===e||0==(e-78&-32)&&0!=(1<<e-78&1023)?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=881,this.expression(3);break;case 14:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=882,!this.precpred(this._ctx,27))throw this.createFailedPredicateException("this.precpred(this._ctx, 27)");this.state=883,e=this._input.LA(1),67!==e&&68!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume());break;case 15:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=884,!this.precpred(this._ctx,25))throw this.createFailedPredicateException("this.precpred(this._ctx, 25)");this.state=885,this.match(k.T__41),this.state=886,this.expression(0),this.state=887,this.match(k.T__42);break;case 16:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=889,!this.precpred(this._ctx,24))throw this.createFailedPredicateException("this.precpred(this._ctx, 24)");this.state=890,this.match(k.T__41),this.state=892,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&3263184960)||0==(e-38&-32)&&0!=(1<<e-38&4278194513)||0==(e-71&-32)&&0!=(1<<e-71&4244635651)||0==(e-103&-32)&&0!=(1<<e-103&124273675))&&(this.state=891,this.expression(0)),this.state=894,this.match(k.T__69),this.state=896,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&3263184960)||0==(e-38&-32)&&0!=(1<<e-38&4278194513)||0==(e-71&-32)&&0!=(1<<e-71&4244635651)||0==(e-103&-32)&&0!=(1<<e-103&124273675))&&(this.state=895,this.expression(0)),this.state=898,this.match(k.T__42);break;case 17:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=899,!this.precpred(this._ctx,23))throw this.createFailedPredicateException("this.precpred(this._ctx, 23)");this.state=900,this.match(k.T__44),this.state=901,this.identifier();break;case 18:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=902,!this.precpred(this._ctx,22))throw this.createFailedPredicateException("this.precpred(this._ctx, 22)");this.state=903,this.match(k.T__14),this.state=904,this.nameValueList(),this.state=905,this.match(k.T__16);break;case 19:if(i=new jt(this,r,s),this.pushNewRecursionContext(i,o,k.RULE_expression),this.state=907,!this.precpred(this._ctx,21))throw this.createFailedPredicateException("this.precpred(this._ctx, 21)");this.state=908,this.match(k.T__22),this.state=909,this.functionCallArguments(),this.state=910,this.match(k.T__23)}this.state=916,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,94,this._ctx)}}catch(t){if(!(t instanceof b))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}primaryExpression(){let t=new $t(this,this._ctx,this.state);this.enterRule(t,142,k.RULE_primaryExpression);try{switch(this.state=926,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,95,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=917,this.match(k.BooleanLiteral);break;case 2:this.enterOuterAlt(t,2),this.state=918,this.numberLiteral();break;case 3:this.enterOuterAlt(t,3),this.state=919,this.hexLiteral();break;case 4:this.enterOuterAlt(t,4),this.state=920,this.stringLiteral();break;case 5:this.enterOuterAlt(t,5),this.state=921,this.identifier();break;case 6:this.enterOuterAlt(t,6),this.state=922,this.match(k.TypeKeyword);break;case 7:this.enterOuterAlt(t,7),this.state=923,this.match(k.PayableKeyword);break;case 8:this.enterOuterAlt(t,8),this.state=924,this.tupleExpression();break;case 9:this.enterOuterAlt(t,9),this.state=925,this.typeName(0)}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expressionList(){let t,e=new Qt(this,this._ctx,this.state);this.enterRule(e,144,k.RULE_expressionList);try{for(this.enterOuterAlt(e,1),this.state=928,this.expression(0),this.state=933,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=929,this.match(k.T__15),this.state=930,this.expression(0),this.state=935,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}nameValueList(){let t,e=new Gt(this,this._ctx,this.state);this.enterRule(e,146,k.RULE_nameValueList);try{let r;for(this.enterOuterAlt(e,1),this.state=936,this.nameValue(),this.state=941,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,97,this._ctx);2!==r&&r!==a.INVALID_ALT_NUMBER;)1===r&&(this.state=937,this.match(k.T__15),this.state=938,this.nameValue()),this.state=943,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,97,this._ctx);this.state=945,this._errHandler.sync(this),t=this._input.LA(1),16===t&&(this.state=944,this.match(k.T__15))}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}nameValue(){let t=new zt(this,this._ctx,this.state);this.enterRule(t,148,k.RULE_nameValue);try{this.enterOuterAlt(t,1),this.state=947,this.identifier(),this.state=948,this.match(k.T__69),this.state=949,this.expression(0)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}functionCallArguments(){let t,e=new Wt(this,this._ctx,this.state);this.enterRule(e,150,k.RULE_functionCallArguments);try{switch(this.state=959,this._errHandler.sync(this),this._input.LA(1)){case 15:this.enterOuterAlt(e,1),this.state=951,this.match(k.T__14),this.state=953,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=952,this.nameValueList()),this.state=955,this.match(k.T__16);break;case 6:case 14:case 23:case 24:case 25:case 30:case 31:case 38:case 42:case 44:case 46:case 50:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 72:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 106:case 113:case 117:case 122:case 124:case 125:case 127:case 128:case 129:this.enterOuterAlt(e,2),this.state=957,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=956,this.expressionList());break;default:throw new y(this)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionCall(){let t=new Xt(this,this._ctx,this.state);this.enterRule(t,152,k.RULE_functionCall);try{this.enterOuterAlt(t,1),this.state=961,this.expression(0),this.state=962,this.match(k.T__22),this.state=963,this.functionCallArguments(),this.state=964,this.match(k.T__23)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyBlock(){let t,e=new Jt(this,this._ctx,this.state);this.enterRule(e,154,k.RULE_assemblyBlock);try{for(this.enterOuterAlt(e,1),this.state=966,this.match(k.T__14),this.state=970,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&176209920)||0==(t-38&-32)&&0!=(1<<t-38&287322177)||0==(t-88&-32)&&0!=(1<<t-88&589676681)||0==(t-124&-32)&&0!=(1<<t-124&59);)this.state=967,this.assemblyItem(),this.state=972,this._errHandler.sync(this),t=this._input.LA(1);this.state=973,this.match(k.T__16)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyItem(){let t=new Zt(this,this._ctx,this.state);this.enterRule(t,156,k.RULE_assemblyItem);try{switch(this.state=992,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,103,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=975,this.identifier();break;case 2:this.enterOuterAlt(t,2),this.state=976,this.assemblyBlock();break;case 3:this.enterOuterAlt(t,3),this.state=977,this.assemblyExpression();break;case 4:this.enterOuterAlt(t,4),this.state=978,this.assemblyLocalDefinition();break;case 5:this.enterOuterAlt(t,5),this.state=979,this.assemblyAssignment();break;case 6:this.enterOuterAlt(t,6),this.state=980,this.assemblyStackAssignment();break;case 7:this.enterOuterAlt(t,7),this.state=981,this.labelDefinition();break;case 8:this.enterOuterAlt(t,8),this.state=982,this.assemblySwitch();break;case 9:this.enterOuterAlt(t,9),this.state=983,this.assemblyFunctionDefinition();break;case 10:this.enterOuterAlt(t,10),this.state=984,this.assemblyFor();break;case 11:this.enterOuterAlt(t,11),this.state=985,this.assemblyIf();break;case 12:this.enterOuterAlt(t,12),this.state=986,this.match(k.BreakKeyword);break;case 13:this.enterOuterAlt(t,13),this.state=987,this.match(k.ContinueKeyword);break;case 14:this.enterOuterAlt(t,14),this.state=988,this.match(k.LeaveKeyword);break;case 15:this.enterOuterAlt(t,15),this.state=989,this.numberLiteral();break;case 16:this.enterOuterAlt(t,16),this.state=990,this.stringLiteral();break;case 17:this.enterOuterAlt(t,17),this.state=991,this.hexLiteral()}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyExpression(){let t=new te(this,this._ctx,this.state);this.enterRule(t,158,k.RULE_assemblyExpression);try{switch(this.state=997,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,104,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=994,this.assemblyCall();break;case 2:this.enterOuterAlt(t,2),this.state=995,this.assemblyLiteral();break;case 3:this.enterOuterAlt(t,3),this.state=996,this.assemblyMember()}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyMember(){let t=new ee(this,this._ctx,this.state);this.enterRule(t,160,k.RULE_assemblyMember);try{this.enterOuterAlt(t,1),this.state=999,this.identifier(),this.state=1e3,this.match(k.T__44),this.state=1001,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyCall(){let t,e=new re(this,this._ctx,this.state);this.enterRule(e,162,k.RULE_assemblyCall);try{switch(this.enterOuterAlt(e,1),this.state=1007,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,105,this._ctx)){case 1:this.state=1003,this.match(k.T__58);break;case 2:this.state=1004,this.match(k.T__43);break;case 3:this.state=1005,this.match(k.T__65);break;case 4:this.state=1006,this.identifier()}if(this.state=1021,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,108,this._ctx)){for(this.state=1009,this.match(k.T__22),this.state=1011,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&4489281)||0==(t-95&-32)&&0!=(1<<t-95&1615072129)||0==(t-127&-32)&&0!=(1<<t-127&7))&&(this.state=1010,this.assemblyExpression()),this.state=1017,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1013,this.match(k.T__15),this.state=1014,this.assemblyExpression(),this.state=1019,this._errHandler.sync(this),t=this._input.LA(1);this.state=1020,this.match(k.T__23)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyLocalDefinition(){let t,e=new se(this,this._ctx,this.state);this.enterRule(e,164,k.RULE_assemblyLocalDefinition);try{this.enterOuterAlt(e,1),this.state=1023,this.match(k.T__87),this.state=1024,this.assemblyIdentifierOrList(),this.state=1027,this._errHandler.sync(this),t=this._input.LA(1),89===t&&(this.state=1025,this.match(k.T__88),this.state=1026,this.assemblyExpression())}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyAssignment(){let t=new ie(this,this._ctx,this.state);this.enterRule(t,166,k.RULE_assemblyAssignment);try{this.enterOuterAlt(t,1),this.state=1029,this.assemblyIdentifierOrList(),this.state=1030,this.match(k.T__88),this.state=1031,this.assemblyExpression()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIdentifierOrList(){let t=new ne(this,this._ctx,this.state);this.enterRule(t,168,k.RULE_assemblyIdentifierOrList);try{switch(this.state=1040,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,110,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=1033,this.identifier();break;case 2:this.enterOuterAlt(t,2),this.state=1034,this.assemblyMember();break;case 3:this.enterOuterAlt(t,3),this.state=1035,this.assemblyIdentifierList();break;case 4:this.enterOuterAlt(t,4),this.state=1036,this.match(k.T__22),this.state=1037,this.assemblyIdentifierList(),this.state=1038,this.match(k.T__23)}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIdentifierList(){let t,e=new ae(this,this._ctx,this.state);this.enterRule(e,170,k.RULE_assemblyIdentifierList);try{for(this.enterOuterAlt(e,1),this.state=1042,this.identifier(),this.state=1047,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1043,this.match(k.T__15),this.state=1044,this.identifier(),this.state=1049,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyStackAssignment(){let t=new oe(this,this._ctx,this.state);this.enterRule(t,172,k.RULE_assemblyStackAssignment);try{this.enterOuterAlt(t,1),this.state=1050,this.assemblyExpression(),this.state=1051,this.match(k.T__89),this.state=1052,this.identifier()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}labelDefinition(){let t=new ce(this,this._ctx,this.state);this.enterRule(t,174,k.RULE_labelDefinition);try{this.enterOuterAlt(t,1),this.state=1054,this.identifier(),this.state=1055,this.match(k.T__69)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblySwitch(){let t,e=new le(this,this._ctx,this.state);this.enterRule(e,176,k.RULE_assemblySwitch);try{for(this.enterOuterAlt(e,1),this.state=1057,this.match(k.T__90),this.state=1058,this.assemblyExpression(),this.state=1062,this._errHandler.sync(this),t=this._input.LA(1);92===t||93===t;)this.state=1059,this.assemblyCase(),this.state=1064,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyCase(){let t=new he(this,this._ctx,this.state);this.enterRule(t,178,k.RULE_assemblyCase);try{switch(this.state=1071,this._errHandler.sync(this),this._input.LA(1)){case 92:this.enterOuterAlt(t,1),this.state=1065,this.match(k.T__91),this.state=1066,this.assemblyLiteral(),this.state=1067,this.assemblyBlock();break;case 93:this.enterOuterAlt(t,2),this.state=1069,this.match(k.T__92),this.state=1070,this.assemblyBlock();break;default:throw new y(this)}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyFunctionDefinition(){let t,e=new ue(this,this._ctx,this.state);this.enterRule(e,180,k.RULE_assemblyFunctionDefinition);try{this.enterOuterAlt(e,1),this.state=1073,this.match(k.T__37),this.state=1074,this.identifier(),this.state=1075,this.match(k.T__22),this.state=1077,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=1076,this.assemblyIdentifierList()),this.state=1079,this.match(k.T__23),this.state=1081,this._errHandler.sync(this),t=this._input.LA(1),94===t&&(this.state=1080,this.assemblyFunctionReturns()),this.state=1083,this.assemblyBlock()}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyFunctionReturns(){let t=new de(this,this._ctx,this.state);this.enterRule(t,182,k.RULE_assemblyFunctionReturns);try{this.enterOuterAlt(t,1),this.state=1085,this.match(k.T__93),this.state=1086,this.assemblyIdentifierList()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyFor(){let t=new pe(this,this._ctx,this.state);this.enterRule(t,184,k.RULE_assemblyFor);try{switch(this.enterOuterAlt(t,1),this.state=1088,this.match(k.T__26),this.state=1091,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1089,this.assemblyBlock();break;case 14:case 25:case 44:case 50:case 59:case 62:case 66:case 95:case 102:case 103:case 104:case 106:case 113:case 117:case 124:case 125:case 127:case 128:case 129:this.state=1090,this.assemblyExpression();break;default:throw new y(this)}switch(this.state=1093,this.assemblyExpression(),this.state=1096,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1094,this.assemblyBlock();break;case 14:case 25:case 44:case 50:case 59:case 62:case 66:case 95:case 102:case 103:case 104:case 106:case 113:case 117:case 124:case 125:case 127:case 128:case 129:this.state=1095,this.assemblyExpression();break;default:throw new y(this)}this.state=1098,this.assemblyBlock()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIf(){let t=new me(this,this._ctx,this.state);this.enterRule(t,186,k.RULE_assemblyIf);try{this.enterOuterAlt(t,1),this.state=1100,this.match(k.T__50),this.state=1101,this.assemblyExpression(),this.state=1102,this.assemblyBlock()}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyLiteral(){let t=new ye(this,this._ctx,this.state);this.enterRule(t,188,k.RULE_assemblyLiteral);try{switch(this.state=1109,this._errHandler.sync(this),this._input.LA(1)){case 129:this.enterOuterAlt(t,1),this.state=1104,this.stringLiteral();break;case 103:this.enterOuterAlt(t,2),this.state=1105,this.match(k.DecimalNumber);break;case 104:this.enterOuterAlt(t,3),this.state=1106,this.match(k.HexNumber);break;case 106:this.enterOuterAlt(t,4),this.state=1107,this.hexLiteral();break;case 102:this.enterOuterAlt(t,5),this.state=1108,this.match(k.BooleanLiteral);break;default:throw new y(this)}}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}tupleExpression(){let t,e=new fe(this,this._ctx,this.state);this.enterRule(e,190,k.RULE_tupleExpression);try{switch(this.state=1137,this._errHandler.sync(this),this._input.LA(1)){case 23:for(this.enterOuterAlt(e,1),this.state=1111,this.match(k.T__22),this.state=1113,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=1112,this.expression(0)),this.state=1121,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1115,this.match(k.T__15),this.state=1117,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=1116,this.expression(0)),this.state=1123,this._errHandler.sync(this),t=this._input.LA(1);this.state=1124,this.match(k.T__23);break;case 42:if(this.enterOuterAlt(e,2),this.state=1125,this.match(k.T__41),this.state=1134,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))for(this.state=1126,this.expression(0),this.state=1131,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1127,this.match(k.T__15),this.state=1128,this.expression(0),this.state=1133,this._errHandler.sync(this),t=this._input.LA(1);this.state=1136,this.match(k.T__42);break;default:throw new y(this)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}numberLiteral(){let t,e=new ge(this,this._ctx,this.state);this.enterRule(e,192,k.RULE_numberLiteral);try{this.enterOuterAlt(e,1),this.state=1139,t=this._input.LA(1),103!==t&&104!==t?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=1141,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,125,this._ctx)&&(this.state=1140,this.match(k.NumberUnit))}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}identifier(){let t,e=new we(this,this._ctx,this.state);this.enterRule(e,194,k.RULE_identifier);try{this.enterOuterAlt(e,1),this.state=1143,t=this._input.LA(1),14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}hexLiteral(){let t=new xe(this,this._ctx,this.state);this.enterRule(t,196,k.RULE_hexLiteral);try{let e;this.enterOuterAlt(t,1),this.state=1146,this._errHandler.sync(this),e=1;do{if(1!==e)throw new y(this);this.state=1145,this.match(k.HexLiteralFragment),this.state=1148,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,126,this._ctx)}while(2!==e&&e!==a.INVALID_ALT_NUMBER)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}overrideSpecifier(){let t,e=new ve(this,this._ctx,this.state);this.enterRule(e,198,k.RULE_overrideSpecifier);try{if(this.enterOuterAlt(e,1),this.state=1150,this.match(k.T__95),this.state=1162,this._errHandler.sync(this),t=this._input.LA(1),23===t){for(this.state=1151,this.match(k.T__22),this.state=1152,this.userDefinedTypeName(),this.state=1157,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1153,this.match(k.T__15),this.state=1154,this.userDefinedTypeName(),this.state=1159,this._errHandler.sync(this),t=this._input.LA(1);this.state=1160,this.match(k.T__23)}}catch(t){if(!(t instanceof b))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}stringLiteral(){let t=new be(this,this._ctx,this.state);this.enterRule(t,200,k.RULE_stringLiteral);try{let e;this.enterOuterAlt(t,1),this.state=1165,this._errHandler.sync(this),e=1;do{if(1!==e)throw new y(this);this.state=1164,this.match(k.StringLiteralFragment),this.state=1167,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,129,this._ctx)}while(2!==e&&e!==a.INVALID_ALT_NUMBER)}catch(e){if(!(e instanceof b))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sempred(t,e,r){switch(e){case 38:return this.typeName_sempred(t,r);case 70:return this.expression_sempred(t,r)}return!0}typeName_sempred(t,e){return 0!==e||this.precpred(this._ctx,3)}expression_sempred(t,e){switch(e){case 1:return this.precpred(this._ctx,14);case 2:return this.precpred(this._ctx,13);case 3:return this.precpred(this._ctx,12);case 4:return this.precpred(this._ctx,11);case 5:return this.precpred(this._ctx,10);case 6:return this.precpred(this._ctx,9);case 7:return this.precpred(this._ctx,8);case 8:return this.precpred(this._ctx,7);case 9:return this.precpred(this._ctx,6);case 10:return this.precpred(this._ctx,5);case 11:return this.precpred(this._ctx,4);case 12:return this.precpred(this._ctx,3);case 13:return this.precpred(this._ctx,2);case 14:return this.precpred(this._ctx,27);case 15:return this.precpred(this._ctx,25);case 16:return this.precpred(this._ctx,24);case 17:return this.precpred(this._ctx,23);case 18:return this.precpred(this._ctx,22);case 19:return this.precpred(this._ctx,21)}return!0}static get _ATN(){return k.__ATN||(k.__ATN=(new o).deserialize(k._serializedATN)),k.__ATN}},R=k;R.T__0=1,R.T__1=2,R.T__2=3,R.T__3=4,R.T__4=5,R.T__5=6,R.T__6=7,R.T__7=8,R.T__8=9,R.T__9=10,R.T__10=11,R.T__11=12,R.T__12=13,R.T__13=14,R.T__14=15,R.T__15=16,R.T__16=17,R.T__17=18,R.T__18=19,R.T__19=20,R.T__20=21,R.T__21=22,R.T__22=23,R.T__23=24,R.T__24=25,R.T__25=26,R.T__26=27,R.T__27=28,R.T__28=29,R.T__29=30,R.T__30=31,R.T__31=32,R.T__32=33,R.T__33=34,R.T__34=35,R.T__35=36,R.T__36=37,R.T__37=38,R.T__38=39,R.T__39=40,R.T__40=41,R.T__41=42,R.T__42=43,R.T__43=44,R.T__44=45,R.T__45=46,R.T__46=47,R.T__47=48,R.T__48=49,R.T__49=50,R.T__50=51,R.T__51=52,R.T__52=53,R.T__53=54,R.T__54=55,R.T__55=56,R.T__56=57,R.T__57=58,R.T__58=59,R.T__59=60,R.T__60=61,R.T__61=62,R.T__62=63,R.T__63=64,R.T__64=65,R.T__65=66,R.T__66=67,R.T__67=68,R.T__68=69,R.T__69=70,R.T__70=71,R.T__71=72,R.T__72=73,R.T__73=74,R.T__74=75,R.T__75=76,R.T__76=77,R.T__77=78,R.T__78=79,R.T__79=80,R.T__80=81,R.T__81=82,R.T__82=83,R.T__83=84,R.T__84=85,R.T__85=86,R.T__86=87,R.T__87=88,R.T__88=89,R.T__89=90,R.T__90=91,R.T__91=92,R.T__92=93,R.T__93=94,R.T__94=95,R.T__95=96,R.Int=97,R.Uint=98,R.Byte=99,R.Fixed=100,R.Ufixed=101,R.BooleanLiteral=102,R.DecimalNumber=103,R.HexNumber=104,R.NumberUnit=105,R.HexLiteralFragment=106,R.ReservedKeyword=107,R.AnonymousKeyword=108,R.BreakKeyword=109,R.ConstantKeyword=110,R.ImmutableKeyword=111,R.ContinueKeyword=112,R.LeaveKeyword=113,R.ExternalKeyword=114,R.IndexedKeyword=115,R.InternalKeyword=116,R.PayableKeyword=117,R.PrivateKeyword=118,R.PublicKeyword=119,R.VirtualKeyword=120,R.PureKeyword=121,R.TypeKeyword=122,R.ViewKeyword=123,R.GlobalKeyword=124,R.ConstructorKeyword=125,R.FallbackKeyword=126,R.ReceiveKeyword=127,R.Identifier=128,R.StringLiteralFragment=129,R.VersionLiteral=130,R.WS=131,R.COMMENT=132,R.LINE_COMMENT=133,R.EOF=_.EOF,R.RULE_sourceUnit=0,R.RULE_pragmaDirective=1,R.RULE_pragmaName=2,R.RULE_pragmaValue=3,R.RULE_version=4,R.RULE_versionOperator=5,R.RULE_versionConstraint=6,R.RULE_importDeclaration=7,R.RULE_importDirective=8,R.RULE_importPath=9,R.RULE_contractDefinition=10,R.RULE_inheritanceSpecifier=11,R.RULE_contractPart=12,R.RULE_stateVariableDeclaration=13,R.RULE_fileLevelConstant=14,R.RULE_customErrorDefinition=15,R.RULE_typeDefinition=16,R.RULE_usingForDeclaration=17,R.RULE_usingForObject=18,R.RULE_usingForObjectDirective=19,R.RULE_userDefinableOperators=20,R.RULE_structDefinition=21,R.RULE_modifierDefinition=22,R.RULE_modifierInvocation=23,R.RULE_functionDefinition=24,R.RULE_functionDescriptor=25,R.RULE_returnParameters=26,R.RULE_modifierList=27,R.RULE_eventDefinition=28,R.RULE_enumValue=29,R.RULE_enumDefinition=30,R.RULE_parameterList=31,R.RULE_parameter=32,R.RULE_eventParameterList=33,R.RULE_eventParameter=34,R.RULE_functionTypeParameterList=35,R.RULE_functionTypeParameter=36,R.RULE_variableDeclaration=37,R.RULE_typeName=38,R.RULE_userDefinedTypeName=39,R.RULE_mappingKey=40,R.RULE_mapping=41,R.RULE_mappingKeyName=42,R.RULE_mappingValueName=43,R.RULE_functionTypeName=44,R.RULE_storageLocation=45,R.RULE_stateMutability=46,R.RULE_block=47,R.RULE_statement=48,R.RULE_expressionStatement=49,R.RULE_ifStatement=50,R.RULE_tryStatement=51,R.RULE_catchClause=52,R.RULE_whileStatement=53,R.RULE_simpleStatement=54,R.RULE_uncheckedStatement=55,R.RULE_forStatement=56,R.RULE_inlineAssemblyStatement=57,R.RULE_inlineAssemblyStatementFlag=58,R.RULE_doWhileStatement=59,R.RULE_continueStatement=60,R.RULE_breakStatement=61,R.RULE_returnStatement=62,R.RULE_throwStatement=63,R.RULE_emitStatement=64,R.RULE_revertStatement=65,R.RULE_variableDeclarationStatement=66,R.RULE_variableDeclarationList=67,R.RULE_identifierList=68,R.RULE_elementaryTypeName=69,R.RULE_expression=70,R.RULE_primaryExpression=71,R.RULE_expressionList=72,R.RULE_nameValueList=73,R.RULE_nameValue=74,R.RULE_functionCallArguments=75,R.RULE_functionCall=76,R.RULE_assemblyBlock=77,R.RULE_assemblyItem=78,R.RULE_assemblyExpression=79,R.RULE_assemblyMember=80,R.RULE_assemblyCall=81,R.RULE_assemblyLocalDefinition=82,R.RULE_assemblyAssignment=83,R.RULE_assemblyIdentifierOrList=84,R.RULE_assemblyIdentifierList=85,R.RULE_assemblyStackAssignment=86,R.RULE_labelDefinition=87,R.RULE_assemblySwitch=88,R.RULE_assemblyCase=89,R.RULE_assemblyFunctionDefinition=90,R.RULE_assemblyFunctionReturns=91,R.RULE_assemblyFor=92,R.RULE_assemblyIf=93,R.RULE_assemblyLiteral=94,R.RULE_tupleExpression=95,R.RULE_numberLiteral=96,R.RULE_identifier=97,R.RULE_hexLiteral=98,R.RULE_overrideSpecifier=99,R.RULE_stringLiteral=100,R.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],R.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],R.ruleNames=["sourceUnit","pragmaDirective","pragmaName","pragmaValue","version","versionOperator","versionConstraint","importDeclaration","importDirective","importPath","contractDefinition","inheritanceSpecifier","contractPart","stateVariableDeclaration","fileLevelConstant","customErrorDefinition","typeDefinition","usingForDeclaration","usingForObject","usingForObjectDirective","userDefinableOperators","structDefinition","modifierDefinition","modifierInvocation","functionDefinition","functionDescriptor","returnParameters","modifierList","eventDefinition","enumValue","enumDefinition","parameterList","parameter","eventParameterList","eventParameter","functionTypeParameterList","functionTypeParameter","variableDeclaration","typeName","userDefinedTypeName","mappingKey","mapping","mappingKeyName","mappingValueName","functionTypeName","storageLocation","stateMutability","block","statement","expressionStatement","ifStatement","tryStatement","catchClause","whileStatement","simpleStatement","uncheckedStatement","forStatement","inlineAssemblyStatement","inlineAssemblyStatementFlag","doWhileStatement","continueStatement","breakStatement","returnStatement","throwStatement","emitStatement","revertStatement","variableDeclarationStatement","variableDeclarationList","identifierList","elementaryTypeName","expression","primaryExpression","expressionList","nameValueList","nameValue","functionCallArguments","functionCall","assemblyBlock","assemblyItem","assemblyExpression","assemblyMember","assemblyCall","assemblyLocalDefinition","assemblyAssignment","assemblyIdentifierOrList","assemblyIdentifierList","assemblyStackAssignment","labelDefinition","assemblySwitch","assemblyCase","assemblyFunctionDefinition","assemblyFunctionReturns","assemblyFor","assemblyIf","assemblyLiteral","tupleExpression","numberLiteral","identifier","hexLiteral","overrideSpecifier","stringLiteral"],R._serializedATN=[4,1,133,1170,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,5,0,214,8,0,10,0,12,0,217,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,3,1,3,1,3,3,3,231,8,3,1,4,1,4,3,4,235,8,4,1,4,5,4,238,8,4,10,4,12,4,241,9,4,1,5,1,5,1,6,3,6,246,8,6,1,6,1,6,3,6,250,8,6,1,6,3,6,253,8,6,1,7,1,7,1,7,3,7,258,8,7,1,8,1,8,1,8,1,8,3,8,264,8,8,1,8,1,8,1,8,1,8,1,8,3,8,271,8,8,1,8,1,8,3,8,275,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,5,8,286,8,8,10,8,12,8,289,9,8,1,8,1,8,1,8,1,8,1,8,3,8,296,8,8,1,9,1,9,1,10,3,10,301,8,10,1,10,1,10,1,10,1,10,1,10,1,10,5,10,309,8,10,10,10,12,10,312,9,10,3,10,314,8,10,1,10,1,10,5,10,318,8,10,10,10,12,10,321,9,10,1,10,1,10,1,11,1,11,1,11,3,11,328,8,11,1,11,3,11,331,8,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,342,8,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,5,13,351,8,13,10,13,12,13,354,9,13,1,13,1,13,1,13,3,13,359,8,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,3,17,386,8,17,1,17,3,17,389,8,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,5,18,398,8,18,10,18,12,18,401,9,18,1,18,1,18,3,18,405,8,18,1,19,1,19,1,19,3,19,410,8,19,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,5,21,422,8,21,10,21,12,21,425,9,21,3,21,427,8,21,1,21,1,21,1,22,1,22,1,22,3,22,434,8,22,1,22,1,22,5,22,438,8,22,10,22,12,22,441,9,22,1,22,1,22,3,22,445,8,22,1,23,1,23,1,23,3,23,450,8,23,1,23,3,23,453,8,23,1,24,1,24,1,24,1,24,3,24,459,8,24,1,24,1,24,3,24,463,8,24,1,25,1,25,3,25,467,8,25,1,25,1,25,1,25,3,25,472,8,25,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,5,27,485,8,27,10,27,12,27,488,9,27,1,28,1,28,1,28,1,28,3,28,494,8,28,1,28,1,28,1,29,1,29,1,30,1,30,1,30,1,30,3,30,504,8,30,1,30,1,30,5,30,508,8,30,10,30,12,30,511,9,30,1,30,1,30,1,31,1,31,1,31,1,31,5,31,519,8,31,10,31,12,31,522,9,31,3,31,524,8,31,1,31,1,31,1,32,1,32,3,32,530,8,32,1,32,3,32,533,8,32,1,33,1,33,1,33,1,33,5,33,539,8,33,10,33,12,33,542,9,33,3,33,544,8,33,1,33,1,33,1,34,1,34,3,34,550,8,34,1,34,3,34,553,8,34,1,35,1,35,1,35,1,35,5,35,559,8,35,10,35,12,35,562,9,35,3,35,564,8,35,1,35,1,35,1,36,1,36,3,36,570,8,36,1,37,1,37,3,37,574,8,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,585,8,38,1,38,1,38,1,38,3,38,590,8,38,1,38,5,38,593,8,38,10,38,12,38,596,9,38,1,39,1,39,1,39,5,39,601,8,39,10,39,12,39,604,9,39,1,40,1,40,3,40,608,8,40,1,41,1,41,1,41,1,41,3,41,614,8,41,1,41,1,41,1,41,3,41,619,8,41,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,44,1,44,1,44,5,44,632,8,44,10,44,12,44,635,9,44,1,44,1,44,3,44,639,8,44,1,45,1,45,1,46,1,46,1,47,1,47,5,47,647,8,47,10,47,12,47,650,9,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,3,48,669,8,48,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,3,50,681,8,50,1,51,1,51,1,51,3,51,686,8,51,1,51,1,51,4,51,690,8,51,11,51,12,51,691,1,52,1,52,3,52,696,8,52,1,52,3,52,699,8,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,3,54,711,8,54,1,55,1,55,1,55,1,56,1,56,1,56,1,56,3,56,720,8,56,1,56,1,56,3,56,724,8,56,1,56,3,56,727,8,56,1,56,1,56,1,56,1,57,1,57,3,57,734,8,57,1,57,1,57,1,57,1,57,3,57,740,8,57,1,57,1,57,1,58,1,58,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,62,1,62,3,62,762,8,62,1,62,1,62,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66,3,66,784,8,66,1,66,1,66,3,66,788,8,66,1,66,1,66,1,67,3,67,793,8,67,1,67,1,67,3,67,797,8,67,5,67,799,8,67,10,67,12,67,802,9,67,1,68,1,68,3,68,806,8,68,1,68,5,68,809,8,68,10,68,12,68,812,9,68,1,68,3,68,815,8,68,1,68,1,68,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,3,70,839,8,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,3,70,893,8,70,1,70,1,70,3,70,897,8,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,5,70,913,8,70,10,70,12,70,916,9,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,927,8,71,1,72,1,72,1,72,5,72,932,8,72,10,72,12,72,935,9,72,1,73,1,73,1,73,5,73,940,8,73,10,73,12,73,943,9,73,1,73,3,73,946,8,73,1,74,1,74,1,74,1,74,1,75,1,75,3,75,954,8,75,1,75,1,75,3,75,958,8,75,3,75,960,8,75,1,76,1,76,1,76,1,76,1,76,1,77,1,77,5,77,969,8,77,10,77,12,77,972,9,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,993,8,78,1,79,1,79,1,79,3,79,998,8,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,3,81,1008,8,81,1,81,1,81,3,81,1012,8,81,1,81,1,81,5,81,1016,8,81,10,81,12,81,1019,9,81,1,81,3,81,1022,8,81,1,82,1,82,1,82,1,82,3,82,1028,8,82,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,84,3,84,1041,8,84,1,85,1,85,1,85,5,85,1046,8,85,10,85,12,85,1049,9,85,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,88,1,88,1,88,5,88,1061,8,88,10,88,12,88,1064,9,88,1,89,1,89,1,89,1,89,1,89,1,89,3,89,1072,8,89,1,90,1,90,1,90,1,90,3,90,1078,8,90,1,90,1,90,3,90,1082,8,90,1,90,1,90,1,91,1,91,1,91,1,92,1,92,1,92,3,92,1092,8,92,1,92,1,92,1,92,3,92,1097,8,92,1,92,1,92,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,3,94,1110,8,94,1,95,1,95,3,95,1114,8,95,1,95,1,95,3,95,1118,8,95,5,95,1120,8,95,10,95,12,95,1123,9,95,1,95,1,95,1,95,1,95,1,95,5,95,1130,8,95,10,95,12,95,1133,9,95,3,95,1135,8,95,1,95,3,95,1138,8,95,1,96,1,96,3,96,1142,8,96,1,97,1,97,1,98,4,98,1147,8,98,11,98,12,98,1148,1,99,1,99,1,99,1,99,1,99,5,99,1156,8,99,10,99,12,99,1159,9,99,1,99,1,99,3,99,1163,8,99,1,100,4,100,1166,8,100,11,100,12,100,1167,1,100,0,2,76,140,101,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,0,15,1,0,5,11,1,0,19,21,3,0,3,3,5,10,28,35,1,0,48,50,4,0,110,110,117,117,121,121,123,123,3,0,44,44,63,66,97,101,1,0,67,68,1,0,30,31,2,0,3,3,32,33,1,0,74,75,1,0,7,10,1,0,34,35,2,0,11,11,78,87,1,0,103,104,10,0,14,14,25,25,44,44,50,50,62,62,95,95,113,113,117,117,124,125,127,128,1299,0,215,1,0,0,0,2,220,1,0,0,0,4,225,1,0,0,0,6,230,1,0,0,0,8,232,1,0,0,0,10,242,1,0,0,0,12,252,1,0,0,0,14,254,1,0,0,0,16,295,1,0,0,0,18,297,1,0,0,0,20,300,1,0,0,0,22,324,1,0,0,0,24,341,1,0,0,0,26,343,1,0,0,0,28,362,1,0,0,0,30,369,1,0,0,0,32,374,1,0,0,0,34,380,1,0,0,0,36,404,1,0,0,0,38,406,1,0,0,0,40,411,1,0,0,0,42,413,1,0,0,0,44,430,1,0,0,0,46,446,1,0,0,0,48,454,1,0,0,0,50,471,1,0,0,0,52,473,1,0,0,0,54,486,1,0,0,0,56,489,1,0,0,0,58,497,1,0,0,0,60,499,1,0,0,0,62,514,1,0,0,0,64,527,1,0,0,0,66,534,1,0,0,0,68,547,1,0,0,0,70,554,1,0,0,0,72,567,1,0,0,0,74,571,1,0,0,0,76,584,1,0,0,0,78,597,1,0,0,0,80,607,1,0,0,0,82,609,1,0,0,0,84,622,1,0,0,0,86,624,1,0,0,0,88,626,1,0,0,0,90,640,1,0,0,0,92,642,1,0,0,0,94,644,1,0,0,0,96,668,1,0,0,0,98,670,1,0,0,0,100,673,1,0,0,0,102,682,1,0,0,0,104,693,1,0,0,0,106,702,1,0,0,0,108,710,1,0,0,0,110,712,1,0,0,0,112,715,1,0,0,0,114,731,1,0,0,0,116,743,1,0,0,0,118,745,1,0,0,0,120,753,1,0,0,0,122,756,1,0,0,0,124,759,1,0,0,0,126,765,1,0,0,0,128,768,1,0,0,0,130,772,1,0,0,0,132,783,1,0,0,0,134,792,1,0,0,0,136,803,1,0,0,0,138,818,1,0,0,0,140,838,1,0,0,0,142,926,1,0,0,0,144,928,1,0,0,0,146,936,1,0,0,0,148,947,1,0,0,0,150,959,1,0,0,0,152,961,1,0,0,0,154,966,1,0,0,0,156,992,1,0,0,0,158,997,1,0,0,0,160,999,1,0,0,0,162,1007,1,0,0,0,164,1023,1,0,0,0,166,1029,1,0,0,0,168,1040,1,0,0,0,170,1042,1,0,0,0,172,1050,1,0,0,0,174,1054,1,0,0,0,176,1057,1,0,0,0,178,1071,1,0,0,0,180,1073,1,0,0,0,182,1085,1,0,0,0,184,1088,1,0,0,0,186,1100,1,0,0,0,188,1109,1,0,0,0,190,1137,1,0,0,0,192,1139,1,0,0,0,194,1143,1,0,0,0,196,1146,1,0,0,0,198,1150,1,0,0,0,200,1165,1,0,0,0,202,214,3,2,1,0,203,214,3,16,8,0,204,214,3,20,10,0,205,214,3,60,30,0,206,214,3,56,28,0,207,214,3,42,21,0,208,214,3,48,24,0,209,214,3,28,14,0,210,214,3,30,15,0,211,214,3,32,16,0,212,214,3,34,17,0,213,202,1,0,0,0,213,203,1,0,0,0,213,204,1,0,0,0,213,205,1,0,0,0,213,206,1,0,0,0,213,207,1,0,0,0,213,208,1,0,0,0,213,209,1,0,0,0,213,210,1,0,0,0,213,211,1,0,0,0,213,212,1,0,0,0,214,217,1,0,0,0,215,213,1,0,0,0,215,216,1,0,0,0,216,218,1,0,0,0,217,215,1,0,0,0,218,219,5,0,0,1,219,1,1,0,0,0,220,221,5,1,0,0,221,222,3,4,2,0,222,223,3,6,3,0,223,224,5,2,0,0,224,3,1,0,0,0,225,226,3,194,97,0,226,5,1,0,0,0,227,231,5,3,0,0,228,231,3,8,4,0,229,231,3,140,70,0,230,227,1,0,0,0,230,228,1,0,0,0,230,229,1,0,0,0,231,7,1,0,0,0,232,239,3,12,6,0,233,235,5,4,0,0,234,233,1,0,0,0,234,235,1,0,0,0,235,236,1,0,0,0,236,238,3,12,6,0,237,234,1,0,0,0,238,241,1,0,0,0,239,237,1,0,0,0,239,240,1,0,0,0,240,9,1,0,0,0,241,239,1,0,0,0,242,243,7,0,0,0,243,11,1,0,0,0,244,246,3,10,5,0,245,244,1,0,0,0,245,246,1,0,0,0,246,247,1,0,0,0,247,253,5,130,0,0,248,250,3,10,5,0,249,248,1,0,0,0,249,250,1,0,0,0,250,251,1,0,0,0,251,253,5,103,0,0,252,245,1,0,0,0,252,249,1,0,0,0,253,13,1,0,0,0,254,257,3,194,97,0,255,256,5,12,0,0,256,258,3,194,97,0,257,255,1,0,0,0,257,258,1,0,0,0,258,15,1,0,0,0,259,260,5,13,0,0,260,263,3,18,9,0,261,262,5,12,0,0,262,264,3,194,97,0,263,261,1,0,0,0,263,264,1,0,0,0,264,265,1,0,0,0,265,266,5,2,0,0,266,296,1,0,0,0,267,270,5,13,0,0,268,271,5,3,0,0,269,271,3,194,97,0,270,268,1,0,0,0,270,269,1,0,0,0,271,274,1,0,0,0,272,273,5,12,0,0,273,275,3,194,97,0,274,272,1,0,0,0,274,275,1,0,0,0,275,276,1,0,0,0,276,277,5,14,0,0,277,278,3,18,9,0,278,279,5,2,0,0,279,296,1,0,0,0,280,281,5,13,0,0,281,282,5,15,0,0,282,287,3,14,7,0,283,284,5,16,0,0,284,286,3,14,7,0,285,283,1,0,0,0,286,289,1,0,0,0,287,285,1,0,0,0,287,288,1,0,0,0,288,290,1,0,0,0,289,287,1,0,0,0,290,291,5,17,0,0,291,292,5,14,0,0,292,293,3,18,9,0,293,294,5,2,0,0,294,296,1,0,0,0,295,259,1,0,0,0,295,267,1,0,0,0,295,280,1,0,0,0,296,17,1,0,0,0,297,298,5,129,0,0,298,19,1,0,0,0,299,301,5,18,0,0,300,299,1,0,0,0,300,301,1,0,0,0,301,302,1,0,0,0,302,303,7,1,0,0,303,313,3,194,97,0,304,305,5,22,0,0,305,310,3,22,11,0,306,307,5,16,0,0,307,309,3,22,11,0,308,306,1,0,0,0,309,312,1,0,0,0,310,308,1,0,0,0,310,311,1,0,0,0,311,314,1,0,0,0,312,310,1,0,0,0,313,304,1,0,0,0,313,314,1,0,0,0,314,315,1,0,0,0,315,319,5,15,0,0,316,318,3,24,12,0,317,316,1,0,0,0,318,321,1,0,0,0,319,317,1,0,0,0,319,320,1,0,0,0,320,322,1,0,0,0,321,319,1,0,0,0,322,323,5,17,0,0,323,21,1,0,0,0,324,330,3,78,39,0,325,327,5,23,0,0,326,328,3,144,72,0,327,326,1,0,0,0,327,328,1,0,0,0,328,329,1,0,0,0,329,331,5,24,0,0,330,325,1,0,0,0,330,331,1,0,0,0,331,23,1,0,0,0,332,342,3,26,13,0,333,342,3,34,17,0,334,342,3,42,21,0,335,342,3,44,22,0,336,342,3,48,24,0,337,342,3,56,28,0,338,342,3,60,30,0,339,342,3,30,15,0,340,342,3,32,16,0,341,332,1,0,0,0,341,333,1,0,0,0,341,334,1,0,0,0,341,335,1,0,0,0,341,336,1,0,0,0,341,337,1,0,0,0,341,338,1,0,0,0,341,339,1,0,0,0,341,340,1,0,0,0,342,25,1,0,0,0,343,352,3,76,38,0,344,351,5,119,0,0,345,351,5,116,0,0,346,351,5,118,0,0,347,351,5,110,0,0,348,351,5,111,0,0,349,351,3,198,99,0,350,344,1,0,0,0,350,345,1,0,0,0,350,346,1,0,0,0,350,347,1,0,0,0,350,348,1,0,0,0,350,349,1,0,0,0,351,354,1,0,0,0,352,350,1,0,0,0,352,353,1,0,0,0,353,355,1,0,0,0,354,352,1,0,0,0,355,358,3,194,97,0,356,357,5,11,0,0,357,359,3,140,70,0,358,356,1,0,0,0,358,359,1,0,0,0,359,360,1,0,0,0,360,361,5,2,0,0,361,27,1,0,0,0,362,363,3,76,38,0,363,364,5,110,0,0,364,365,3,194,97,0,365,366,5,11,0,0,366,367,3,140,70,0,367,368,5,2,0,0,368,29,1,0,0,0,369,370,5,25,0,0,370,371,3,194,97,0,371,372,3,62,31,0,372,373,5,2,0,0,373,31,1,0,0,0,374,375,5,122,0,0,375,376,3,194,97,0,376,377,5,22,0,0,377,378,3,138,69,0,378,379,5,2,0,0,379,33,1,0,0,0,380,381,5,26,0,0,381,382,3,36,18,0,382,385,5,27,0,0,383,386,5,3,0,0,384,386,3,76,38,0,385,383,1,0,0,0,385,384,1,0,0,0,386,388,1,0,0,0,387,389,5,124,0,0,388,387,1,0,0,0,388,389,1,0,0,0,389,390,1,0,0,0,390,391,5,2,0,0,391,35,1,0,0,0,392,405,3,78,39,0,393,394,5,15,0,0,394,399,3,38,19,0,395,396,5,16,0,0,396,398,3,38,19,0,397,395,1,0,0,0,398,401,1,0,0,0,399,397,1,0,0,0,399,400,1,0,0,0,400,402,1,0,0,0,401,399,1,0,0,0,402,403,5,17,0,0,403,405,1,0,0,0,404,392,1,0,0,0,404,393,1,0,0,0,405,37,1,0,0,0,406,409,3,78,39,0,407,408,5,12,0,0,408,410,3,40,20,0,409,407,1,0,0,0,409,410,1,0,0,0,410,39,1,0,0,0,411,412,7,2,0,0,412,41,1,0,0,0,413,414,5,36,0,0,414,415,3,194,97,0,415,426,5,15,0,0,416,417,3,74,37,0,417,423,5,2,0,0,418,419,3,74,37,0,419,420,5,2,0,0,420,422,1,0,0,0,421,418,1,0,0,0,422,425,1,0,0,0,423,421,1,0,0,0,423,424,1,0,0,0,424,427,1,0,0,0,425,423,1,0,0,0,426,416,1,0,0,0,426,427,1,0,0,0,427,428,1,0,0,0,428,429,5,17,0,0,429,43,1,0,0,0,430,431,5,37,0,0,431,433,3,194,97,0,432,434,3,62,31,0,433,432,1,0,0,0,433,434,1,0,0,0,434,439,1,0,0,0,435,438,5,120,0,0,436,438,3,198,99,0,437,435,1,0,0,0,437,436,1,0,0,0,438,441,1,0,0,0,439,437,1,0,0,0,439,440,1,0,0,0,440,444,1,0,0,0,441,439,1,0,0,0,442,445,5,2,0,0,443,445,3,94,47,0,444,442,1,0,0,0,444,443,1,0,0,0,445,45,1,0,0,0,446,452,3,194,97,0,447,449,5,23,0,0,448,450,3,144,72,0,449,448,1,0,0,0,449,450,1,0,0,0,450,451,1,0,0,0,451,453,5,24,0,0,452,447,1,0,0,0,452,453,1,0,0,0,453,47,1,0,0,0,454,455,3,50,25,0,455,456,3,62,31,0,456,458,3,54,27,0,457,459,3,52,26,0,458,457,1,0,0,0,458,459,1,0,0,0,459,462,1,0,0,0,460,463,5,2,0,0,461,463,3,94,47,0,462,460,1,0,0,0,462,461,1,0,0,0,463,49,1,0,0,0,464,466,5,38,0,0,465,467,3,194,97,0,466,465,1,0,0,0,466,467,1,0,0,0,467,472,1,0,0,0,468,472,5,125,0,0,469,472,5,126,0,0,470,472,5,127,0,0,471,464,1,0,0,0,471,468,1,0,0,0,471,469,1,0,0,0,471,470,1,0,0,0,472,51,1,0,0,0,473,474,5,39,0,0,474,475,3,62,31,0,475,53,1,0,0,0,476,485,5,114,0,0,477,485,5,119,0,0,478,485,5,116,0,0,479,485,5,118,0,0,480,485,5,120,0,0,481,485,3,92,46,0,482,485,3,46,23,0,483,485,3,198,99,0,484,476,1,0,0,0,484,477,1,0,0,0,484,478,1,0,0,0,484,479,1,0,0,0,484,480,1,0,0,0,484,481,1,0,0,0,484,482,1,0,0,0,484,483,1,0,0,0,485,488,1,0,0,0,486,484,1,0,0,0,486,487,1,0,0,0,487,55,1,0,0,0,488,486,1,0,0,0,489,490,5,40,0,0,490,491,3,194,97,0,491,493,3,66,33,0,492,494,5,108,0,0,493,492,1,0,0,0,493,494,1,0,0,0,494,495,1,0,0,0,495,496,5,2,0,0,496,57,1,0,0,0,497,498,3,194,97,0,498,59,1,0,0,0,499,500,5,41,0,0,500,501,3,194,97,0,501,503,5,15,0,0,502,504,3,58,29,0,503,502,1,0,0,0,503,504,1,0,0,0,504,509,1,0,0,0,505,506,5,16,0,0,506,508,3,58,29,0,507,505,1,0,0,0,508,511,1,0,0,0,509,507,1,0,0,0,509,510,1,0,0,0,510,512,1,0,0,0,511,509,1,0,0,0,512,513,5,17,0,0,513,61,1,0,0,0,514,523,5,23,0,0,515,520,3,64,32,0,516,517,5,16,0,0,517,519,3,64,32,0,518,516,1,0,0,0,519,522,1,0,0,0,520,518,1,0,0,0,520,521,1,0,0,0,521,524,1,0,0,0,522,520,1,0,0,0,523,515,1,0,0,0,523,524,1,0,0,0,524,525,1,0,0,0,525,526,5,24,0,0,526,63,1,0,0,0,527,529,3,76,38,0,528,530,3,90,45,0,529,528,1,0,0,0,529,530,1,0,0,0,530,532,1,0,0,0,531,533,3,194,97,0,532,531,1,0,0,0,532,533,1,0,0,0,533,65,1,0,0,0,534,543,5,23,0,0,535,540,3,68,34,0,536,537,5,16,0,0,537,539,3,68,34,0,538,536,1,0,0,0,539,542,1,0,0,0,540,538,1,0,0,0,540,541,1,0,0,0,541,544,1,0,0,0,542,540,1,0,0,0,543,535,1,0,0,0,543,544,1,0,0,0,544,545,1,0,0,0,545,546,5,24,0,0,546,67,1,0,0,0,547,549,3,76,38,0,548,550,5,115,0,0,549,548,1,0,0,0,549,550,1,0,0,0,550,552,1,0,0,0,551,553,3,194,97,0,552,551,1,0,0,0,552,553,1,0,0,0,553,69,1,0,0,0,554,563,5,23,0,0,555,560,3,72,36,0,556,557,5,16,0,0,557,559,3,72,36,0,558,556,1,0,0,0,559,562,1,0,0,0,560,558,1,0,0,0,560,561,1,0,0,0,561,564,1,0,0,0,562,560,1,0,0,0,563,555,1,0,0,0,563,564,1,0,0,0,564,565,1,0,0,0,565,566,5,24,0,0,566,71,1,0,0,0,567,569,3,76,38,0,568,570,3,90,45,0,569,568,1,0,0,0,569,570,1,0,0,0,570,73,1,0,0,0,571,573,3,76,38,0,572,574,3,90,45,0,573,572,1,0,0,0,573,574,1,0,0,0,574,575,1,0,0,0,575,576,3,194,97,0,576,75,1,0,0,0,577,578,6,38,-1,0,578,585,3,138,69,0,579,585,3,78,39,0,580,585,3,82,41,0,581,585,3,88,44,0,582,583,5,44,0,0,583,585,5,117,0,0,584,577,1,0,0,0,584,579,1,0,0,0,584,580,1,0,0,0,584,581,1,0,0,0,584,582,1,0,0,0,585,594,1,0,0,0,586,587,10,3,0,0,587,589,5,42,0,0,588,590,3,140,70,0,589,588,1,0,0,0,589,590,1,0,0,0,590,591,1,0,0,0,591,593,5,43,0,0,592,586,1,0,0,0,593,596,1,0,0,0,594,592,1,0,0,0,594,595,1,0,0,0,595,77,1,0,0,0,596,594,1,0,0,0,597,602,3,194,97,0,598,599,5,45,0,0,599,601,3,194,97,0,600,598,1,0,0,0,601,604,1,0,0,0,602,600,1,0,0,0,602,603,1,0,0,0,603,79,1,0,0,0,604,602,1,0,0,0,605,608,3,138,69,0,606,608,3,78,39,0,607,605,1,0,0,0,607,606,1,0,0,0,608,81,1,0,0,0,609,610,5,46,0,0,610,611,5,23,0,0,611,613,3,80,40,0,612,614,3,84,42,0,613,612,1,0,0,0,613,614,1,0,0,0,614,615,1,0,0,0,615,616,5,47,0,0,616,618,3,76,38,0,617,619,3,86,43,0,618,617,1,0,0,0,618,619,1,0,0,0,619,620,1,0,0,0,620,621,5,24,0,0,621,83,1,0,0,0,622,623,3,194,97,0,623,85,1,0,0,0,624,625,3,194,97,0,625,87,1,0,0,0,626,627,5,38,0,0,627,633,3,70,35,0,628,632,5,116,0,0,629,632,5,114,0,0,630,632,3,92,46,0,631,628,1,0,0,0,631,629,1,0,0,0,631,630,1,0,0,0,632,635,1,0,0,0,633,631,1,0,0,0,633,634,1,0,0,0,634,638,1,0,0,0,635,633,1,0,0,0,636,637,5,39,0,0,637,639,3,70,35,0,638,636,1,0,0,0,638,639,1,0,0,0,639,89,1,0,0,0,640,641,7,3,0,0,641,91,1,0,0,0,642,643,7,4,0,0,643,93,1,0,0,0,644,648,5,15,0,0,645,647,3,96,48,0,646,645,1,0,0,0,647,650,1,0,0,0,648,646,1,0,0,0,648,649,1,0,0,0,649,651,1,0,0,0,650,648,1,0,0,0,651,652,5,17,0,0,652,95,1,0,0,0,653,669,3,100,50,0,654,669,3,102,51,0,655,669,3,106,53,0,656,669,3,112,56,0,657,669,3,94,47,0,658,669,3,114,57,0,659,669,3,118,59,0,660,669,3,120,60,0,661,669,3,122,61,0,662,669,3,124,62,0,663,669,3,126,63,0,664,669,3,128,64,0,665,669,3,108,54,0,666,669,3,110,55,0,667,669,3,130,65,0,668,653,1,0,0,0,668,654,1,0,0,0,668,655,1,0,0,0,668,656,1,0,0,0,668,657,1,0,0,0,668,658,1,0,0,0,668,659,1,0,0,0,668,660,1,0,0,0,668,661,1,0,0,0,668,662,1,0,0,0,668,663,1,0,0,0,668,664,1,0,0,0,668,665,1,0,0,0,668,666,1,0,0,0,668,667,1,0,0,0,669,97,1,0,0,0,670,671,3,140,70,0,671,672,5,2,0,0,672,99,1,0,0,0,673,674,5,51,0,0,674,675,5,23,0,0,675,676,3,140,70,0,676,677,5,24,0,0,677,680,3,96,48,0,678,679,5,52,0,0,679,681,3,96,48,0,680,678,1,0,0,0,680,681,1,0,0,0,681,101,1,0,0,0,682,683,5,53,0,0,683,685,3,140,70,0,684,686,3,52,26,0,685,684,1,0,0,0,685,686,1,0,0,0,686,687,1,0,0,0,687,689,3,94,47,0,688,690,3,104,52,0,689,688,1,0,0,0,690,691,1,0,0,0,691,689,1,0,0,0,691,692,1,0,0,0,692,103,1,0,0,0,693,698,5,54,0,0,694,696,3,194,97,0,695,694,1,0,0,0,695,696,1,0,0,0,696,697,1,0,0,0,697,699,3,62,31,0,698,695,1,0,0,0,698,699,1,0,0,0,699,700,1,0,0,0,700,701,3,94,47,0,701,105,1,0,0,0,702,703,5,55,0,0,703,704,5,23,0,0,704,705,3,140,70,0,705,706,5,24,0,0,706,707,3,96,48,0,707,107,1,0,0,0,708,711,3,132,66,0,709,711,3,98,49,0,710,708,1,0,0,0,710,709,1,0,0,0,711,109,1,0,0,0,712,713,5,56,0,0,713,714,3,94,47,0,714,111,1,0,0,0,715,716,5,27,0,0,716,719,5,23,0,0,717,720,3,108,54,0,718,720,5,2,0,0,719,717,1,0,0,0,719,718,1,0,0,0,720,723,1,0,0,0,721,724,3,98,49,0,722,724,5,2,0,0,723,721,1,0,0,0,723,722,1,0,0,0,724,726,1,0,0,0,725,727,3,140,70,0,726,725,1,0,0,0,726,727,1,0,0,0,727,728,1,0,0,0,728,729,5,24,0,0,729,730,3,96,48,0,730,113,1,0,0,0,731,733,5,57,0,0,732,734,5,129,0,0,733,732,1,0,0,0,733,734,1,0,0,0,734,739,1,0,0,0,735,736,5,23,0,0,736,737,3,116,58,0,737,738,5,24,0,0,738,740,1,0,0,0,739,735,1,0,0,0,739,740,1,0,0,0,740,741,1,0,0,0,741,742,3,154,77,0,742,115,1,0,0,0,743,744,3,200,100,0,744,117,1,0,0,0,745,746,5,58,0,0,746,747,3,96,48,0,747,748,5,55,0,0,748,749,5,23,0,0,749,750,3,140,70,0,750,751,5,24,0,0,751,752,5,2,0,0,752,119,1,0,0,0,753,754,5,112,0,0,754,755,5,2,0,0,755,121,1,0,0,0,756,757,5,109,0,0,757,758,5,2,0,0,758,123,1,0,0,0,759,761,5,59,0,0,760,762,3,140,70,0,761,760,1,0,0,0,761,762,1,0,0,0,762,763,1,0,0,0,763,764,5,2,0,0,764,125,1,0,0,0,765,766,5,60,0,0,766,767,5,2,0,0,767,127,1,0,0,0,768,769,5,61,0,0,769,770,3,152,76,0,770,771,5,2,0,0,771,129,1,0,0,0,772,773,5,62,0,0,773,774,3,152,76,0,774,775,5,2,0,0,775,131,1,0,0,0,776,777,5,63,0,0,777,784,3,136,68,0,778,784,3,74,37,0,779,780,5,23,0,0,780,781,3,134,67,0,781,782,5,24,0,0,782,784,1,0,0,0,783,776,1,0,0,0,783,778,1,0,0,0,783,779,1,0,0,0,784,787,1,0,0,0,785,786,5,11,0,0,786,788,3,140,70,0,787,785,1,0,0,0,787,788,1,0,0,0,788,789,1,0,0,0,789,790,5,2,0,0,790,133,1,0,0,0,791,793,3,74,37,0,792,791,1,0,0,0,792,793,1,0,0,0,793,800,1,0,0,0,794,796,5,16,0,0,795,797,3,74,37,0,796,795,1,0,0,0,796,797,1,0,0,0,797,799,1,0,0,0,798,794,1,0,0,0,799,802,1,0,0,0,800,798,1,0,0,0,800,801,1,0,0,0,801,135,1,0,0,0,802,800,1,0,0,0,803,810,5,23,0,0,804,806,3,194,97,0,805,804,1,0,0,0,805,806,1,0,0,0,806,807,1,0,0,0,807,809,5,16,0,0,808,805,1,0,0,0,809,812,1,0,0,0,810,808,1,0,0,0,810,811,1,0,0,0,811,814,1,0,0,0,812,810,1,0,0,0,813,815,3,194,97,0,814,813,1,0,0,0,814,815,1,0,0,0,815,816,1,0,0,0,816,817,5,24,0,0,817,137,1,0,0,0,818,819,7,5,0,0,819,139,1,0,0,0,820,821,6,70,-1,0,821,822,5,69,0,0,822,839,3,76,38,0,823,824,5,23,0,0,824,825,3,140,70,0,825,826,5,24,0,0,826,839,1,0,0,0,827,828,7,6,0,0,828,839,3,140,70,19,829,830,7,7,0,0,830,839,3,140,70,18,831,832,5,71,0,0,832,839,3,140,70,17,833,834,5,72,0,0,834,839,3,140,70,16,835,836,5,6,0,0,836,839,3,140,70,15,837,839,3,142,71,0,838,820,1,0,0,0,838,823,1,0,0,0,838,827,1,0,0,0,838,829,1,0,0,0,838,831,1,0,0,0,838,833,1,0,0,0,838,835,1,0,0,0,838,837,1,0,0,0,839,914,1,0,0,0,840,841,10,14,0,0,841,842,5,73,0,0,842,913,3,140,70,14,843,844,10,13,0,0,844,845,7,8,0,0,845,913,3,140,70,14,846,847,10,12,0,0,847,848,7,7,0,0,848,913,3,140,70,13,849,850,10,11,0,0,850,851,7,9,0,0,851,913,3,140,70,12,852,853,10,10,0,0,853,854,5,29,0,0,854,913,3,140,70,11,855,856,10,9,0,0,856,857,5,5,0,0,857,913,3,140,70,10,858,859,10,8,0,0,859,860,5,28,0,0,860,913,3,140,70,9,861,862,10,7,0,0,862,863,7,10,0,0,863,913,3,140,70,8,864,865,10,6,0,0,865,866,7,11,0,0,866,913,3,140,70,7,867,868,10,5,0,0,868,869,5,76,0,0,869,913,3,140,70,6,870,871,10,4,0,0,871,872,5,4,0,0,872,913,3,140,70,5,873,874,10,3,0,0,874,875,5,77,0,0,875,876,3,140,70,0,876,877,5,70,0,0,877,878,3,140,70,3,878,913,1,0,0,0,879,880,10,2,0,0,880,881,7,12,0,0,881,913,3,140,70,3,882,883,10,27,0,0,883,913,7,6,0,0,884,885,10,25,0,0,885,886,5,42,0,0,886,887,3,140,70,0,887,888,5,43,0,0,888,913,1,0,0,0,889,890,10,24,0,0,890,892,5,42,0,0,891,893,3,140,70,0,892,891,1,0,0,0,892,893,1,0,0,0,893,894,1,0,0,0,894,896,5,70,0,0,895,897,3,140,70,0,896,895,1,0,0,0,896,897,1,0,0,0,897,898,1,0,0,0,898,913,5,43,0,0,899,900,10,23,0,0,900,901,5,45,0,0,901,913,3,194,97,0,902,903,10,22,0,0,903,904,5,15,0,0,904,905,3,146,73,0,905,906,5,17,0,0,906,913,1,0,0,0,907,908,10,21,0,0,908,909,5,23,0,0,909,910,3,150,75,0,910,911,5,24,0,0,911,913,1,0,0,0,912,840,1,0,0,0,912,843,1,0,0,0,912,846,1,0,0,0,912,849,1,0,0,0,912,852,1,0,0,0,912,855,1,0,0,0,912,858,1,0,0,0,912,861,1,0,0,0,912,864,1,0,0,0,912,867,1,0,0,0,912,870,1,0,0,0,912,873,1,0,0,0,912,879,1,0,0,0,912,882,1,0,0,0,912,884,1,0,0,0,912,889,1,0,0,0,912,899,1,0,0,0,912,902,1,0,0,0,912,907,1,0,0,0,913,916,1,0,0,0,914,912,1,0,0,0,914,915,1,0,0,0,915,141,1,0,0,0,916,914,1,0,0,0,917,927,5,102,0,0,918,927,3,192,96,0,919,927,3,196,98,0,920,927,3,200,100,0,921,927,3,194,97,0,922,927,5,122,0,0,923,927,5,117,0,0,924,927,3,190,95,0,925,927,3,76,38,0,926,917,1,0,0,0,926,918,1,0,0,0,926,919,1,0,0,0,926,920,1,0,0,0,926,921,1,0,0,0,926,922,1,0,0,0,926,923,1,0,0,0,926,924,1,0,0,0,926,925,1,0,0,0,927,143,1,0,0,0,928,933,3,140,70,0,929,930,5,16,0,0,930,932,3,140,70,0,931,929,1,0,0,0,932,935,1,0,0,0,933,931,1,0,0,0,933,934,1,0,0,0,934,145,1,0,0,0,935,933,1,0,0,0,936,941,3,148,74,0,937,938,5,16,0,0,938,940,3,148,74,0,939,937,1,0,0,0,940,943,1,0,0,0,941,939,1,0,0,0,941,942,1,0,0,0,942,945,1,0,0,0,943,941,1,0,0,0,944,946,5,16,0,0,945,944,1,0,0,0,945,946,1,0,0,0,946,147,1,0,0,0,947,948,3,194,97,0,948,949,5,70,0,0,949,950,3,140,70,0,950,149,1,0,0,0,951,953,5,15,0,0,952,954,3,146,73,0,953,952,1,0,0,0,953,954,1,0,0,0,954,955,1,0,0,0,955,960,5,17,0,0,956,958,3,144,72,0,957,956,1,0,0,0,957,958,1,0,0,0,958,960,1,0,0,0,959,951,1,0,0,0,959,957,1,0,0,0,960,151,1,0,0,0,961,962,3,140,70,0,962,963,5,23,0,0,963,964,3,150,75,0,964,965,5,24,0,0,965,153,1,0,0,0,966,970,5,15,0,0,967,969,3,156,78,0,968,967,1,0,0,0,969,972,1,0,0,0,970,968,1,0,0,0,970,971,1,0,0,0,971,973,1,0,0,0,972,970,1,0,0,0,973,974,5,17,0,0,974,155,1,0,0,0,975,993,3,194,97,0,976,993,3,154,77,0,977,993,3,158,79,0,978,993,3,164,82,0,979,993,3,166,83,0,980,993,3,172,86,0,981,993,3,174,87,0,982,993,3,176,88,0,983,993,3,180,90,0,984,993,3,184,92,0,985,993,3,186,93,0,986,993,5,109,0,0,987,993,5,112,0,0,988,993,5,113,0,0,989,993,3,192,96,0,990,993,3,200,100,0,991,993,3,196,98,0,992,975,1,0,0,0,992,976,1,0,0,0,992,977,1,0,0,0,992,978,1,0,0,0,992,979,1,0,0,0,992,980,1,0,0,0,992,981,1,0,0,0,992,982,1,0,0,0,992,983,1,0,0,0,992,984,1,0,0,0,992,985,1,0,0,0,992,986,1,0,0,0,992,987,1,0,0,0,992,988,1,0,0,0,992,989,1,0,0,0,992,990,1,0,0,0,992,991,1,0,0,0,993,157,1,0,0,0,994,998,3,162,81,0,995,998,3,188,94,0,996,998,3,160,80,0,997,994,1,0,0,0,997,995,1,0,0,0,997,996,1,0,0,0,998,159,1,0,0,0,999,1e3,3,194,97,0,1e3,1001,5,45,0,0,1001,1002,3,194,97,0,1002,161,1,0,0,0,1003,1008,5,59,0,0,1004,1008,5,44,0,0,1005,1008,5,66,0,0,1006,1008,3,194,97,0,1007,1003,1,0,0,0,1007,1004,1,0,0,0,1007,1005,1,0,0,0,1007,1006,1,0,0,0,1008,1021,1,0,0,0,1009,1011,5,23,0,0,1010,1012,3,158,79,0,1011,1010,1,0,0,0,1011,1012,1,0,0,0,1012,1017,1,0,0,0,1013,1014,5,16,0,0,1014,1016,3,158,79,0,1015,1013,1,0,0,0,1016,1019,1,0,0,0,1017,1015,1,0,0,0,1017,1018,1,0,0,0,1018,1020,1,0,0,0,1019,1017,1,0,0,0,1020,1022,5,24,0,0,1021,1009,1,0,0,0,1021,1022,1,0,0,0,1022,163,1,0,0,0,1023,1024,5,88,0,0,1024,1027,3,168,84,0,1025,1026,5,89,0,0,1026,1028,3,158,79,0,1027,1025,1,0,0,0,1027,1028,1,0,0,0,1028,165,1,0,0,0,1029,1030,3,168,84,0,1030,1031,5,89,0,0,1031,1032,3,158,79,0,1032,167,1,0,0,0,1033,1041,3,194,97,0,1034,1041,3,160,80,0,1035,1041,3,170,85,0,1036,1037,5,23,0,0,1037,1038,3,170,85,0,1038,1039,5,24,0,0,1039,1041,1,0,0,0,1040,1033,1,0,0,0,1040,1034,1,0,0,0,1040,1035,1,0,0,0,1040,1036,1,0,0,0,1041,169,1,0,0,0,1042,1047,3,194,97,0,1043,1044,5,16,0,0,1044,1046,3,194,97,0,1045,1043,1,0,0,0,1046,1049,1,0,0,0,1047,1045,1,0,0,0,1047,1048,1,0,0,0,1048,171,1,0,0,0,1049,1047,1,0,0,0,1050,1051,3,158,79,0,1051,1052,5,90,0,0,1052,1053,3,194,97,0,1053,173,1,0,0,0,1054,1055,3,194,97,0,1055,1056,5,70,0,0,1056,175,1,0,0,0,1057,1058,5,91,0,0,1058,1062,3,158,79,0,1059,1061,3,178,89,0,1060,1059,1,0,0,0,1061,1064,1,0,0,0,1062,1060,1,0,0,0,1062,1063,1,0,0,0,1063,177,1,0,0,0,1064,1062,1,0,0,0,1065,1066,5,92,0,0,1066,1067,3,188,94,0,1067,1068,3,154,77,0,1068,1072,1,0,0,0,1069,1070,5,93,0,0,1070,1072,3,154,77,0,1071,1065,1,0,0,0,1071,1069,1,0,0,0,1072,179,1,0,0,0,1073,1074,5,38,0,0,1074,1075,3,194,97,0,1075,1077,5,23,0,0,1076,1078,3,170,85,0,1077,1076,1,0,0,0,1077,1078,1,0,0,0,1078,1079,1,0,0,0,1079,1081,5,24,0,0,1080,1082,3,182,91,0,1081,1080,1,0,0,0,1081,1082,1,0,0,0,1082,1083,1,0,0,0,1083,1084,3,154,77,0,1084,181,1,0,0,0,1085,1086,5,94,0,0,1086,1087,3,170,85,0,1087,183,1,0,0,0,1088,1091,5,27,0,0,1089,1092,3,154,77,0,1090,1092,3,158,79,0,1091,1089,1,0,0,0,1091,1090,1,0,0,0,1092,1093,1,0,0,0,1093,1096,3,158,79,0,1094,1097,3,154,77,0,1095,1097,3,158,79,0,1096,1094,1,0,0,0,1096,1095,1,0,0,0,1097,1098,1,0,0,0,1098,1099,3,154,77,0,1099,185,1,0,0,0,1100,1101,5,51,0,0,1101,1102,3,158,79,0,1102,1103,3,154,77,0,1103,187,1,0,0,0,1104,1110,3,200,100,0,1105,1110,5,103,0,0,1106,1110,5,104,0,0,1107,1110,3,196,98,0,1108,1110,5,102,0,0,1109,1104,1,0,0,0,1109,1105,1,0,0,0,1109,1106,1,0,0,0,1109,1107,1,0,0,0,1109,1108,1,0,0,0,1110,189,1,0,0,0,1111,1113,5,23,0,0,1112,1114,3,140,70,0,1113,1112,1,0,0,0,1113,1114,1,0,0,0,1114,1121,1,0,0,0,1115,1117,5,16,0,0,1116,1118,3,140,70,0,1117,1116,1,0,0,0,1117,1118,1,0,0,0,1118,1120,1,0,0,0,1119,1115,1,0,0,0,1120,1123,1,0,0,0,1121,1119,1,0,0,0,1121,1122,1,0,0,0,1122,1124,1,0,0,0,1123,1121,1,0,0,0,1124,1138,5,24,0,0,1125,1134,5,42,0,0,1126,1131,3,140,70,0,1127,1128,5,16,0,0,1128,1130,3,140,70,0,1129,1127,1,0,0,0,1130,1133,1,0,0,0,1131,1129,1,0,0,0,1131,1132,1,0,0,0,1132,1135,1,0,0,0,1133,1131,1,0,0,0,1134,1126,1,0,0,0,1134,1135,1,0,0,0,1135,1136,1,0,0,0,1136,1138,5,43,0,0,1137,1111,1,0,0,0,1137,1125,1,0,0,0,1138,191,1,0,0,0,1139,1141,7,13,0,0,1140,1142,5,105,0,0,1141,1140,1,0,0,0,1141,1142,1,0,0,0,1142,193,1,0,0,0,1143,1144,7,14,0,0,1144,195,1,0,0,0,1145,1147,5,106,0,0,1146,1145,1,0,0,0,1147,1148,1,0,0,0,1148,1146,1,0,0,0,1148,1149,1,0,0,0,1149,197,1,0,0,0,1150,1162,5,96,0,0,1151,1152,5,23,0,0,1152,1157,3,78,39,0,1153,1154,5,16,0,0,1154,1156,3,78,39,0,1155,1153,1,0,0,0,1156,1159,1,0,0,0,1157,1155,1,0,0,0,1157,1158,1,0,0,0,1158,1160,1,0,0,0,1159,1157,1,0,0,0,1160,1161,5,24,0,0,1161,1163,1,0,0,0,1162,1151,1,0,0,0,1162,1163,1,0,0,0,1163,199,1,0,0,0,1164,1166,5,129,0,0,1165,1164,1,0,0,0,1166,1167,1,0,0,0,1167,1165,1,0,0,0,1167,1168,1,0,0,0,1168,201,1,0,0,0,130,213,215,230,234,239,245,249,252,257,263,270,274,287,295,300,310,313,319,327,330,341,350,352,358,385,388,399,404,409,423,426,433,437,439,444,449,452,458,462,466,471,484,486,493,503,509,520,523,529,532,540,543,549,552,560,563,569,573,584,589,594,602,607,613,618,631,633,638,648,668,680,685,691,695,698,710,719,723,726,733,739,761,783,787,792,796,800,805,810,814,838,892,896,912,914,926,933,941,945,953,957,959,970,992,997,1007,1011,1017,1021,1027,1040,1047,1062,1071,1077,1081,1091,1096,1109,1113,1117,1121,1131,1134,1137,1141,1148,1157,1162,1167],R.DecisionsToDFA=k._ATN.decisionToState.map(((t,e)=>new h(t,e)));var A=R,C=class extends x{constructor(t,e,r){super(e,r),this.parser=t}EOF(){return this.getToken(R.EOF,0)}pragmaDirective_list(){return this.getTypedRuleContexts(K)}pragmaDirective(t){return this.getTypedRuleContext(K,t)}importDirective_list(){return this.getTypedRuleContexts(q)}importDirective(t){return this.getTypedRuleContext(q,t)}contractDefinition_list(){return this.getTypedRuleContexts(F)}contractDefinition(t){return this.getTypedRuleContext(F,t)}enumDefinition_list(){return this.getTypedRuleContexts(nt)}enumDefinition(t){return this.getTypedRuleContext(nt,t)}eventDefinition_list(){return this.getTypedRuleContexts(st)}eventDefinition(t){return this.getTypedRuleContext(st,t)}structDefinition_list(){return this.getTypedRuleContexts(W)}structDefinition(t){return this.getTypedRuleContext(W,t)}functionDefinition_list(){return this.getTypedRuleContexts(Z)}functionDefinition(t){return this.getTypedRuleContext(Z,t)}fileLevelConstant_list(){return this.getTypedRuleContexts(V)}fileLevelConstant(t){return this.getTypedRuleContext(V,t)}customErrorDefinition_list(){return this.getTypedRuleContexts(H)}customErrorDefinition(t){return this.getTypedRuleContext(H,t)}typeDefinition_list(){return this.getTypedRuleContexts(j)}typeDefinition(t){return this.getTypedRuleContext(j,t)}usingForDeclaration_list(){return this.getTypedRuleContexts($)}usingForDeclaration(t){return this.getTypedRuleContext($,t)}get ruleIndex(){return R.RULE_sourceUnit}enterRule(t){t.enterSourceUnit&&t.enterSourceUnit(this)}exitRule(t){t.exitSourceUnit&&t.exitSourceUnit(this)}accept(t){return t.visitSourceUnit?t.visitSourceUnit(this):t.visitChildren(this)}},K=class extends x{constructor(t,e,r){super(e,r),this.parser=t}pragmaName(){return this.getTypedRuleContext(L,0)}pragmaValue(){return this.getTypedRuleContext(I,0)}get ruleIndex(){return R.RULE_pragmaDirective}enterRule(t){t.enterPragmaDirective&&t.enterPragmaDirective(this)}exitRule(t){t.exitPragmaDirective&&t.exitPragmaDirective(this)}accept(t){return t.visitPragmaDirective?t.visitPragmaDirective(this):t.visitChildren(this)}},L=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_pragmaName}enterRule(t){t.enterPragmaName&&t.enterPragmaName(this)}exitRule(t){t.exitPragmaName&&t.exitPragmaName(this)}accept(t){return t.visitPragmaName?t.visitPragmaName(this):t.visitChildren(this)}},I=class extends x{constructor(t,e,r){super(e,r),this.parser=t}version(){return this.getTypedRuleContext(N,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_pragmaValue}enterRule(t){t.enterPragmaValue&&t.enterPragmaValue(this)}exitRule(t){t.exitPragmaValue&&t.exitPragmaValue(this)}accept(t){return t.visitPragmaValue?t.visitPragmaValue(this):t.visitChildren(this)}},N=class extends x{constructor(t,e,r){super(e,r),this.parser=t}versionConstraint_list(){return this.getTypedRuleContexts(O)}versionConstraint(t){return this.getTypedRuleContext(O,t)}get ruleIndex(){return R.RULE_version}enterRule(t){t.enterVersion&&t.enterVersion(this)}exitRule(t){t.exitVersion&&t.exitVersion(this)}accept(t){return t.visitVersion?t.visitVersion(this):t.visitChildren(this)}},D=class extends x{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return R.RULE_versionOperator}enterRule(t){t.enterVersionOperator&&t.enterVersionOperator(this)}exitRule(t){t.exitVersionOperator&&t.exitVersionOperator(this)}accept(t){return t.visitVersionOperator?t.visitVersionOperator(this):t.visitChildren(this)}},O=class extends x{constructor(t,e,r){super(e,r),this.parser=t}VersionLiteral(){return this.getToken(R.VersionLiteral,0)}versionOperator(){return this.getTypedRuleContext(D,0)}DecimalNumber(){return this.getToken(R.DecimalNumber,0)}get ruleIndex(){return R.RULE_versionConstraint}enterRule(t){t.enterVersionConstraint&&t.enterVersionConstraint(this)}exitRule(t){t.exitVersionConstraint&&t.exitVersionConstraint(this)}accept(t){return t.visitVersionConstraint?t.visitVersionConstraint(this):t.visitChildren(this)}},P=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(we)}identifier(t){return this.getTypedRuleContext(we,t)}get ruleIndex(){return R.RULE_importDeclaration}enterRule(t){t.enterImportDeclaration&&t.enterImportDeclaration(this)}exitRule(t){t.exitImportDeclaration&&t.exitImportDeclaration(this)}accept(t){return t.visitImportDeclaration?t.visitImportDeclaration(this):t.visitChildren(this)}},q=class extends x{constructor(t,e,r){super(e,r),this.parser=t}importPath(){return this.getTypedRuleContext(Y,0)}identifier_list(){return this.getTypedRuleContexts(we)}identifier(t){return this.getTypedRuleContext(we,t)}importDeclaration_list(){return this.getTypedRuleContexts(P)}importDeclaration(t){return this.getTypedRuleContext(P,t)}get ruleIndex(){return R.RULE_importDirective}enterRule(t){t.enterImportDirective&&t.enterImportDirective(this)}exitRule(t){t.exitImportDirective&&t.exitImportDirective(this)}accept(t){return t.visitImportDirective?t.visitImportDirective(this):t.visitChildren(this)}},Y=class extends x{constructor(t,e,r){super(e,r),this.parser=t}StringLiteralFragment(){return this.getToken(R.StringLiteralFragment,0)}get ruleIndex(){return R.RULE_importPath}enterRule(t){t.enterImportPath&&t.enterImportPath(this)}exitRule(t){t.exitImportPath&&t.exitImportPath(this)}accept(t){return t.visitImportPath?t.visitImportPath(this):t.visitChildren(this)}},F=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}inheritanceSpecifier_list(){return this.getTypedRuleContexts(M)}inheritanceSpecifier(t){return this.getTypedRuleContext(M,t)}contractPart_list(){return this.getTypedRuleContexts(U)}contractPart(t){return this.getTypedRuleContext(U,t)}get ruleIndex(){return R.RULE_contractDefinition}enterRule(t){t.enterContractDefinition&&t.enterContractDefinition(this)}exitRule(t){t.exitContractDefinition&&t.exitContractDefinition(this)}accept(t){return t.visitContractDefinition?t.visitContractDefinition(this):t.visitChildren(this)}},M=class extends x{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}expressionList(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return R.RULE_inheritanceSpecifier}enterRule(t){t.enterInheritanceSpecifier&&t.enterInheritanceSpecifier(this)}exitRule(t){t.exitInheritanceSpecifier&&t.exitInheritanceSpecifier(this)}accept(t){return t.visitInheritanceSpecifier?t.visitInheritanceSpecifier(this):t.visitChildren(this)}},U=class extends x{constructor(t,e,r){super(e,r),this.parser=t}stateVariableDeclaration(){return this.getTypedRuleContext(B,0)}usingForDeclaration(){return this.getTypedRuleContext($,0)}structDefinition(){return this.getTypedRuleContext(W,0)}modifierDefinition(){return this.getTypedRuleContext(X,0)}functionDefinition(){return this.getTypedRuleContext(Z,0)}eventDefinition(){return this.getTypedRuleContext(st,0)}enumDefinition(){return this.getTypedRuleContext(nt,0)}customErrorDefinition(){return this.getTypedRuleContext(H,0)}typeDefinition(){return this.getTypedRuleContext(j,0)}get ruleIndex(){return R.RULE_contractPart}enterRule(t){t.enterContractPart&&t.enterContractPart(this)}exitRule(t){t.exitContractPart&&t.exitContractPart(this)}accept(t){return t.visitContractPart?t.visitContractPart(this):t.visitChildren(this)}},B=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}identifier(){return this.getTypedRuleContext(we,0)}PublicKeyword_list(){return this.getTokens(R.PublicKeyword)}PublicKeyword(t){return this.getToken(R.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(R.InternalKeyword)}InternalKeyword(t){return this.getToken(R.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(R.PrivateKeyword)}PrivateKeyword(t){return this.getToken(R.PrivateKeyword,t)}ConstantKeyword_list(){return this.getTokens(R.ConstantKeyword)}ConstantKeyword(t){return this.getToken(R.ConstantKeyword,t)}ImmutableKeyword_list(){return this.getTokens(R.ImmutableKeyword)}ImmutableKeyword(t){return this.getToken(R.ImmutableKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(ve)}overrideSpecifier(t){return this.getTypedRuleContext(ve,t)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_stateVariableDeclaration}enterRule(t){t.enterStateVariableDeclaration&&t.enterStateVariableDeclaration(this)}exitRule(t){t.exitStateVariableDeclaration&&t.exitStateVariableDeclaration(this)}accept(t){return t.visitStateVariableDeclaration?t.visitStateVariableDeclaration(this):t.visitChildren(this)}},V=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}ConstantKeyword(){return this.getToken(R.ConstantKeyword,0)}identifier(){return this.getTypedRuleContext(we,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_fileLevelConstant}enterRule(t){t.enterFileLevelConstant&&t.enterFileLevelConstant(this)}exitRule(t){t.exitFileLevelConstant&&t.exitFileLevelConstant(this)}accept(t){return t.visitFileLevelConstant?t.visitFileLevelConstant(this):t.visitChildren(this)}},H=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}parameterList(){return this.getTypedRuleContext(at,0)}get ruleIndex(){return R.RULE_customErrorDefinition}enterRule(t){t.enterCustomErrorDefinition&&t.enterCustomErrorDefinition(this)}exitRule(t){t.exitCustomErrorDefinition&&t.exitCustomErrorDefinition(this)}accept(t){return t.visitCustomErrorDefinition?t.visitCustomErrorDefinition(this):t.visitChildren(this)}},j=class extends x{constructor(t,e,r){super(e,r),this.parser=t}TypeKeyword(){return this.getToken(R.TypeKeyword,0)}identifier(){return this.getTypedRuleContext(we,0)}elementaryTypeName(){return this.getTypedRuleContext(Ht,0)}get ruleIndex(){return R.RULE_typeDefinition}enterRule(t){t.enterTypeDefinition&&t.enterTypeDefinition(this)}exitRule(t){t.exitTypeDefinition&&t.exitTypeDefinition(this)}accept(t){return t.visitTypeDefinition?t.visitTypeDefinition(this):t.visitChildren(this)}},$=class extends x{constructor(t,e,r){super(e,r),this.parser=t}usingForObject(){return this.getTypedRuleContext(Q,0)}typeName(){return this.getTypedRuleContext(pt,0)}GlobalKeyword(){return this.getToken(R.GlobalKeyword,0)}get ruleIndex(){return R.RULE_usingForDeclaration}enterRule(t){t.enterUsingForDeclaration&&t.enterUsingForDeclaration(this)}exitRule(t){t.exitUsingForDeclaration&&t.exitUsingForDeclaration(this)}accept(t){return t.visitUsingForDeclaration?t.visitUsingForDeclaration(this):t.visitChildren(this)}},Q=class extends x{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}usingForObjectDirective_list(){return this.getTypedRuleContexts(G)}usingForObjectDirective(t){return this.getTypedRuleContext(G,t)}get ruleIndex(){return R.RULE_usingForObject}enterRule(t){t.enterUsingForObject&&t.enterUsingForObject(this)}exitRule(t){t.exitUsingForObject&&t.exitUsingForObject(this)}accept(t){return t.visitUsingForObject?t.visitUsingForObject(this):t.visitChildren(this)}},G=class extends x{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}userDefinableOperators(){return this.getTypedRuleContext(z,0)}get ruleIndex(){return R.RULE_usingForObjectDirective}enterRule(t){t.enterUsingForObjectDirective&&t.enterUsingForObjectDirective(this)}exitRule(t){t.exitUsingForObjectDirective&&t.exitUsingForObjectDirective(this)}accept(t){return t.visitUsingForObjectDirective?t.visitUsingForObjectDirective(this):t.visitChildren(this)}},z=class extends x{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return R.RULE_userDefinableOperators}enterRule(t){t.enterUserDefinableOperators&&t.enterUserDefinableOperators(this)}exitRule(t){t.exitUserDefinableOperators&&t.exitUserDefinableOperators(this)}accept(t){return t.visitUserDefinableOperators?t.visitUserDefinableOperators(this):t.visitChildren(this)}},W=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}variableDeclaration_list(){return this.getTypedRuleContexts(dt)}variableDeclaration(t){return this.getTypedRuleContext(dt,t)}get ruleIndex(){return R.RULE_structDefinition}enterRule(t){t.enterStructDefinition&&t.enterStructDefinition(this)}exitRule(t){t.exitStructDefinition&&t.exitStructDefinition(this)}accept(t){return t.visitStructDefinition?t.visitStructDefinition(this):t.visitChildren(this)}},X=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}block(){return this.getTypedRuleContext(_t,0)}parameterList(){return this.getTypedRuleContext(at,0)}VirtualKeyword_list(){return this.getTokens(R.VirtualKeyword)}VirtualKeyword(t){return this.getToken(R.VirtualKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(ve)}overrideSpecifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return R.RULE_modifierDefinition}enterRule(t){t.enterModifierDefinition&&t.enterModifierDefinition(this)}exitRule(t){t.exitModifierDefinition&&t.exitModifierDefinition(this)}accept(t){return t.visitModifierDefinition?t.visitModifierDefinition(this):t.visitChildren(this)}},J=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}expressionList(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return R.RULE_modifierInvocation}enterRule(t){t.enterModifierInvocation&&t.enterModifierInvocation(this)}exitRule(t){t.exitModifierInvocation&&t.exitModifierInvocation(this)}accept(t){return t.visitModifierInvocation?t.visitModifierInvocation(this):t.visitChildren(this)}},Z=class extends x{constructor(t,e,r){super(e,r),this.parser=t}functionDescriptor(){return this.getTypedRuleContext(tt,0)}parameterList(){return this.getTypedRuleContext(at,0)}modifierList(){return this.getTypedRuleContext(rt,0)}block(){return this.getTypedRuleContext(_t,0)}returnParameters(){return this.getTypedRuleContext(et,0)}get ruleIndex(){return R.RULE_functionDefinition}enterRule(t){t.enterFunctionDefinition&&t.enterFunctionDefinition(this)}exitRule(t){t.exitFunctionDefinition&&t.exitFunctionDefinition(this)}accept(t){return t.visitFunctionDefinition?t.visitFunctionDefinition(this):t.visitChildren(this)}},tt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}ConstructorKeyword(){return this.getToken(R.ConstructorKeyword,0)}FallbackKeyword(){return this.getToken(R.FallbackKeyword,0)}ReceiveKeyword(){return this.getToken(R.ReceiveKeyword,0)}get ruleIndex(){return R.RULE_functionDescriptor}enterRule(t){t.enterFunctionDescriptor&&t.enterFunctionDescriptor(this)}exitRule(t){t.exitFunctionDescriptor&&t.exitFunctionDescriptor(this)}accept(t){return t.visitFunctionDescriptor?t.visitFunctionDescriptor(this):t.visitChildren(this)}},et=class extends x{constructor(t,e,r){super(e,r),this.parser=t}parameterList(){return this.getTypedRuleContext(at,0)}get ruleIndex(){return R.RULE_returnParameters}enterRule(t){t.enterReturnParameters&&t.enterReturnParameters(this)}exitRule(t){t.exitReturnParameters&&t.exitReturnParameters(this)}accept(t){return t.visitReturnParameters?t.visitReturnParameters(this):t.visitChildren(this)}},rt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}ExternalKeyword_list(){return this.getTokens(R.ExternalKeyword)}ExternalKeyword(t){return this.getToken(R.ExternalKeyword,t)}PublicKeyword_list(){return this.getTokens(R.PublicKeyword)}PublicKeyword(t){return this.getToken(R.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(R.InternalKeyword)}InternalKeyword(t){return this.getToken(R.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(R.PrivateKeyword)}PrivateKeyword(t){return this.getToken(R.PrivateKeyword,t)}VirtualKeyword_list(){return this.getTokens(R.VirtualKeyword)}VirtualKeyword(t){return this.getToken(R.VirtualKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(bt)}stateMutability(t){return this.getTypedRuleContext(bt,t)}modifierInvocation_list(){return this.getTypedRuleContexts(J)}modifierInvocation(t){return this.getTypedRuleContext(J,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(ve)}overrideSpecifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return R.RULE_modifierList}enterRule(t){t.enterModifierList&&t.enterModifierList(this)}exitRule(t){t.exitModifierList&&t.exitModifierList(this)}accept(t){return t.visitModifierList?t.visitModifierList(this):t.visitChildren(this)}},st=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}eventParameterList(){return this.getTypedRuleContext(ct,0)}AnonymousKeyword(){return this.getToken(R.AnonymousKeyword,0)}get ruleIndex(){return R.RULE_eventDefinition}enterRule(t){t.enterEventDefinition&&t.enterEventDefinition(this)}exitRule(t){t.exitEventDefinition&&t.exitEventDefinition(this)}accept(t){return t.visitEventDefinition?t.visitEventDefinition(this):t.visitChildren(this)}},it=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_enumValue}enterRule(t){t.enterEnumValue&&t.enterEnumValue(this)}exitRule(t){t.exitEnumValue&&t.exitEnumValue(this)}accept(t){return t.visitEnumValue?t.visitEnumValue(this):t.visitChildren(this)}},nt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}enumValue_list(){return this.getTypedRuleContexts(it)}enumValue(t){return this.getTypedRuleContext(it,t)}get ruleIndex(){return R.RULE_enumDefinition}enterRule(t){t.enterEnumDefinition&&t.enterEnumDefinition(this)}exitRule(t){t.exitEnumDefinition&&t.exitEnumDefinition(this)}accept(t){return t.visitEnumDefinition?t.visitEnumDefinition(this):t.visitChildren(this)}},at=class extends x{constructor(t,e,r){super(e,r),this.parser=t}parameter_list(){return this.getTypedRuleContexts(ot)}parameter(t){return this.getTypedRuleContext(ot,t)}get ruleIndex(){return R.RULE_parameterList}enterRule(t){t.enterParameterList&&t.enterParameterList(this)}exitRule(t){t.exitParameterList&&t.exitParameterList(this)}accept(t){return t.visitParameterList?t.visitParameterList(this):t.visitChildren(this)}},ot=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}storageLocation(){return this.getTypedRuleContext(vt,0)}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_parameter}enterRule(t){t.enterParameter&&t.enterParameter(this)}exitRule(t){t.exitParameter&&t.exitParameter(this)}accept(t){return t.visitParameter?t.visitParameter(this):t.visitChildren(this)}},ct=class extends x{constructor(t,e,r){super(e,r),this.parser=t}eventParameter_list(){return this.getTypedRuleContexts(lt)}eventParameter(t){return this.getTypedRuleContext(lt,t)}get ruleIndex(){return R.RULE_eventParameterList}enterRule(t){t.enterEventParameterList&&t.enterEventParameterList(this)}exitRule(t){t.exitEventParameterList&&t.exitEventParameterList(this)}accept(t){return t.visitEventParameterList?t.visitEventParameterList(this):t.visitChildren(this)}},lt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}IndexedKeyword(){return this.getToken(R.IndexedKeyword,0)}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_eventParameter}enterRule(t){t.enterEventParameter&&t.enterEventParameter(this)}exitRule(t){t.exitEventParameter&&t.exitEventParameter(this)}accept(t){return t.visitEventParameter?t.visitEventParameter(this):t.visitChildren(this)}},ht=class extends x{constructor(t,e,r){super(e,r),this.parser=t}functionTypeParameter_list(){return this.getTypedRuleContexts(ut)}functionTypeParameter(t){return this.getTypedRuleContext(ut,t)}get ruleIndex(){return R.RULE_functionTypeParameterList}enterRule(t){t.enterFunctionTypeParameterList&&t.enterFunctionTypeParameterList(this)}exitRule(t){t.exitFunctionTypeParameterList&&t.exitFunctionTypeParameterList(this)}accept(t){return t.visitFunctionTypeParameterList?t.visitFunctionTypeParameterList(this):t.visitChildren(this)}},ut=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}storageLocation(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return R.RULE_functionTypeParameter}enterRule(t){t.enterFunctionTypeParameter&&t.enterFunctionTypeParameter(this)}exitRule(t){t.exitFunctionTypeParameter&&t.exitFunctionTypeParameter(this)}accept(t){return t.visitFunctionTypeParameter?t.visitFunctionTypeParameter(this):t.visitChildren(this)}},dt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}identifier(){return this.getTypedRuleContext(we,0)}storageLocation(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return R.RULE_variableDeclaration}enterRule(t){t.enterVariableDeclaration&&t.enterVariableDeclaration(this)}exitRule(t){t.exitVariableDeclaration&&t.exitVariableDeclaration(this)}accept(t){return t.visitVariableDeclaration?t.visitVariableDeclaration(this):t.visitChildren(this)}},pt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext(Ht,0)}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}mapping(){return this.getTypedRuleContext(ft,0)}functionTypeName(){return this.getTypedRuleContext(xt,0)}PayableKeyword(){return this.getToken(R.PayableKeyword,0)}typeName(){return this.getTypedRuleContext(pt,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_typeName}enterRule(t){t.enterTypeName&&t.enterTypeName(this)}exitRule(t){t.exitTypeName&&t.exitTypeName(this)}accept(t){return t.visitTypeName?t.visitTypeName(this):t.visitChildren(this)}},mt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(we)}identifier(t){return this.getTypedRuleContext(we,t)}get ruleIndex(){return R.RULE_userDefinedTypeName}enterRule(t){t.enterUserDefinedTypeName&&t.enterUserDefinedTypeName(this)}exitRule(t){t.exitUserDefinedTypeName&&t.exitUserDefinedTypeName(this)}accept(t){return t.visitUserDefinedTypeName?t.visitUserDefinedTypeName(this):t.visitChildren(this)}},yt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext(Ht,0)}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}get ruleIndex(){return R.RULE_mappingKey}enterRule(t){t.enterMappingKey&&t.enterMappingKey(this)}exitRule(t){t.exitMappingKey&&t.exitMappingKey(this)}accept(t){return t.visitMappingKey?t.visitMappingKey(this):t.visitChildren(this)}},ft=class extends x{constructor(t,e,r){super(e,r),this.parser=t}mappingKey(){return this.getTypedRuleContext(yt,0)}typeName(){return this.getTypedRuleContext(pt,0)}mappingKeyName(){return this.getTypedRuleContext(gt,0)}mappingValueName(){return this.getTypedRuleContext(wt,0)}get ruleIndex(){return R.RULE_mapping}enterRule(t){t.enterMapping&&t.enterMapping(this)}exitRule(t){t.exitMapping&&t.exitMapping(this)}accept(t){return t.visitMapping?t.visitMapping(this):t.visitChildren(this)}},gt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_mappingKeyName}enterRule(t){t.enterMappingKeyName&&t.enterMappingKeyName(this)}exitRule(t){t.exitMappingKeyName&&t.exitMappingKeyName(this)}accept(t){return t.visitMappingKeyName?t.visitMappingKeyName(this):t.visitChildren(this)}},wt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_mappingValueName}enterRule(t){t.enterMappingValueName&&t.enterMappingValueName(this)}exitRule(t){t.exitMappingValueName&&t.exitMappingValueName(this)}accept(t){return t.visitMappingValueName?t.visitMappingValueName(this):t.visitChildren(this)}},xt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}functionTypeParameterList_list(){return this.getTypedRuleContexts(ht)}functionTypeParameterList(t){return this.getTypedRuleContext(ht,t)}InternalKeyword_list(){return this.getTokens(R.InternalKeyword)}InternalKeyword(t){return this.getToken(R.InternalKeyword,t)}ExternalKeyword_list(){return this.getTokens(R.ExternalKeyword)}ExternalKeyword(t){return this.getToken(R.ExternalKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(bt)}stateMutability(t){return this.getTypedRuleContext(bt,t)}get ruleIndex(){return R.RULE_functionTypeName}enterRule(t){t.enterFunctionTypeName&&t.enterFunctionTypeName(this)}exitRule(t){t.exitFunctionTypeName&&t.exitFunctionTypeName(this)}accept(t){return t.visitFunctionTypeName?t.visitFunctionTypeName(this):t.visitChildren(this)}},vt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return R.RULE_storageLocation}enterRule(t){t.enterStorageLocation&&t.enterStorageLocation(this)}exitRule(t){t.exitStorageLocation&&t.exitStorageLocation(this)}accept(t){return t.visitStorageLocation?t.visitStorageLocation(this):t.visitChildren(this)}},bt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}PureKeyword(){return this.getToken(R.PureKeyword,0)}ConstantKeyword(){return this.getToken(R.ConstantKeyword,0)}ViewKeyword(){return this.getToken(R.ViewKeyword,0)}PayableKeyword(){return this.getToken(R.PayableKeyword,0)}get ruleIndex(){return R.RULE_stateMutability}enterRule(t){t.enterStateMutability&&t.enterStateMutability(this)}exitRule(t){t.exitStateMutability&&t.exitStateMutability(this)}accept(t){return t.visitStateMutability?t.visitStateMutability(this):t.visitChildren(this)}},_t=class extends x{constructor(t,e,r){super(e,r),this.parser=t}statement_list(){return this.getTypedRuleContexts(Et)}statement(t){return this.getTypedRuleContext(Et,t)}get ruleIndex(){return R.RULE_block}enterRule(t){t.enterBlock&&t.enterBlock(this)}exitRule(t){t.exitBlock&&t.exitBlock(this)}accept(t){return t.visitBlock?t.visitBlock(this):t.visitChildren(this)}},Et=class extends x{constructor(t,e,r){super(e,r),this.parser=t}ifStatement(){return this.getTypedRuleContext(St,0)}tryStatement(){return this.getTypedRuleContext(kt,0)}whileStatement(){return this.getTypedRuleContext(At,0)}forStatement(){return this.getTypedRuleContext(Lt,0)}block(){return this.getTypedRuleContext(_t,0)}inlineAssemblyStatement(){return this.getTypedRuleContext(It,0)}doWhileStatement(){return this.getTypedRuleContext(Dt,0)}continueStatement(){return this.getTypedRuleContext(Ot,0)}breakStatement(){return this.getTypedRuleContext(Pt,0)}returnStatement(){return this.getTypedRuleContext(qt,0)}throwStatement(){return this.getTypedRuleContext(Yt,0)}emitStatement(){return this.getTypedRuleContext(Ft,0)}simpleStatement(){return this.getTypedRuleContext(Ct,0)}uncheckedStatement(){return this.getTypedRuleContext(Kt,0)}revertStatement(){return this.getTypedRuleContext(Mt,0)}get ruleIndex(){return R.RULE_statement}enterRule(t){t.enterStatement&&t.enterStatement(this)}exitRule(t){t.exitStatement&&t.exitStatement(this)}accept(t){return t.visitStatement?t.visitStatement(this):t.visitChildren(this)}},Tt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_expressionStatement}enterRule(t){t.enterExpressionStatement&&t.enterExpressionStatement(this)}exitRule(t){t.exitExpressionStatement&&t.exitExpressionStatement(this)}accept(t){return t.visitExpressionStatement?t.visitExpressionStatement(this):t.visitChildren(this)}},St=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(jt,0)}statement_list(){return this.getTypedRuleContexts(Et)}statement(t){return this.getTypedRuleContext(Et,t)}get ruleIndex(){return R.RULE_ifStatement}enterRule(t){t.enterIfStatement&&t.enterIfStatement(this)}exitRule(t){t.exitIfStatement&&t.exitIfStatement(this)}accept(t){return t.visitIfStatement?t.visitIfStatement(this):t.visitChildren(this)}},kt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(jt,0)}block(){return this.getTypedRuleContext(_t,0)}returnParameters(){return this.getTypedRuleContext(et,0)}catchClause_list(){return this.getTypedRuleContexts(Rt)}catchClause(t){return this.getTypedRuleContext(Rt,t)}get ruleIndex(){return R.RULE_tryStatement}enterRule(t){t.enterTryStatement&&t.enterTryStatement(this)}exitRule(t){t.exitTryStatement&&t.exitTryStatement(this)}accept(t){return t.visitTryStatement?t.visitTryStatement(this):t.visitChildren(this)}},Rt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}block(){return this.getTypedRuleContext(_t,0)}parameterList(){return this.getTypedRuleContext(at,0)}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_catchClause}enterRule(t){t.enterCatchClause&&t.enterCatchClause(this)}exitRule(t){t.exitCatchClause&&t.exitCatchClause(this)}accept(t){return t.visitCatchClause?t.visitCatchClause(this):t.visitChildren(this)}},At=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(jt,0)}statement(){return this.getTypedRuleContext(Et,0)}get ruleIndex(){return R.RULE_whileStatement}enterRule(t){t.enterWhileStatement&&t.enterWhileStatement(this)}exitRule(t){t.exitWhileStatement&&t.exitWhileStatement(this)}accept(t){return t.visitWhileStatement?t.visitWhileStatement(this):t.visitChildren(this)}},Ct=class extends x{constructor(t,e,r){super(e,r),this.parser=t}variableDeclarationStatement(){return this.getTypedRuleContext(Ut,0)}expressionStatement(){return this.getTypedRuleContext(Tt,0)}get ruleIndex(){return R.RULE_simpleStatement}enterRule(t){t.enterSimpleStatement&&t.enterSimpleStatement(this)}exitRule(t){t.exitSimpleStatement&&t.exitSimpleStatement(this)}accept(t){return t.visitSimpleStatement?t.visitSimpleStatement(this):t.visitChildren(this)}},Kt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}block(){return this.getTypedRuleContext(_t,0)}get ruleIndex(){return R.RULE_uncheckedStatement}enterRule(t){t.enterUncheckedStatement&&t.enterUncheckedStatement(this)}exitRule(t){t.exitUncheckedStatement&&t.exitUncheckedStatement(this)}accept(t){return t.visitUncheckedStatement?t.visitUncheckedStatement(this):t.visitChildren(this)}},Lt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}statement(){return this.getTypedRuleContext(Et,0)}simpleStatement(){return this.getTypedRuleContext(Ct,0)}expressionStatement(){return this.getTypedRuleContext(Tt,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_forStatement}enterRule(t){t.enterForStatement&&t.enterForStatement(this)}exitRule(t){t.exitForStatement&&t.exitForStatement(this)}accept(t){return t.visitForStatement?t.visitForStatement(this):t.visitChildren(this)}},It=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyBlock(){return this.getTypedRuleContext(Jt,0)}StringLiteralFragment(){return this.getToken(R.StringLiteralFragment,0)}inlineAssemblyStatementFlag(){return this.getTypedRuleContext(Nt,0)}get ruleIndex(){return R.RULE_inlineAssemblyStatement}enterRule(t){t.enterInlineAssemblyStatement&&t.enterInlineAssemblyStatement(this)}exitRule(t){t.exitInlineAssemblyStatement&&t.exitInlineAssemblyStatement(this)}accept(t){return t.visitInlineAssemblyStatement?t.visitInlineAssemblyStatement(this):t.visitChildren(this)}},Nt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}stringLiteral(){return this.getTypedRuleContext(be,0)}get ruleIndex(){return R.RULE_inlineAssemblyStatementFlag}enterRule(t){t.enterInlineAssemblyStatementFlag&&t.enterInlineAssemblyStatementFlag(this)}exitRule(t){t.exitInlineAssemblyStatementFlag&&t.exitInlineAssemblyStatementFlag(this)}accept(t){return t.visitInlineAssemblyStatementFlag?t.visitInlineAssemblyStatementFlag(this):t.visitChildren(this)}},Dt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}statement(){return this.getTypedRuleContext(Et,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_doWhileStatement}enterRule(t){t.enterDoWhileStatement&&t.enterDoWhileStatement(this)}exitRule(t){t.exitDoWhileStatement&&t.exitDoWhileStatement(this)}accept(t){return t.visitDoWhileStatement?t.visitDoWhileStatement(this):t.visitChildren(this)}},Ot=class extends x{constructor(t,e,r){super(e,r),this.parser=t}ContinueKeyword(){return this.getToken(R.ContinueKeyword,0)}get ruleIndex(){return R.RULE_continueStatement}enterRule(t){t.enterContinueStatement&&t.enterContinueStatement(this)}exitRule(t){t.exitContinueStatement&&t.exitContinueStatement(this)}accept(t){return t.visitContinueStatement?t.visitContinueStatement(this):t.visitChildren(this)}},Pt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}BreakKeyword(){return this.getToken(R.BreakKeyword,0)}get ruleIndex(){return R.RULE_breakStatement}enterRule(t){t.enterBreakStatement&&t.enterBreakStatement(this)}exitRule(t){t.exitBreakStatement&&t.exitBreakStatement(this)}accept(t){return t.visitBreakStatement?t.visitBreakStatement(this):t.visitChildren(this)}},qt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_returnStatement}enterRule(t){t.enterReturnStatement&&t.enterReturnStatement(this)}exitRule(t){t.exitReturnStatement&&t.exitReturnStatement(this)}accept(t){return t.visitReturnStatement?t.visitReturnStatement(this):t.visitChildren(this)}},Yt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return R.RULE_throwStatement}enterRule(t){t.enterThrowStatement&&t.enterThrowStatement(this)}exitRule(t){t.exitThrowStatement&&t.exitThrowStatement(this)}accept(t){return t.visitThrowStatement?t.visitThrowStatement(this):t.visitChildren(this)}},Ft=class extends x{constructor(t,e,r){super(e,r),this.parser=t}functionCall(){return this.getTypedRuleContext(Xt,0)}get ruleIndex(){return R.RULE_emitStatement}enterRule(t){t.enterEmitStatement&&t.enterEmitStatement(this)}exitRule(t){t.exitEmitStatement&&t.exitEmitStatement(this)}accept(t){return t.visitEmitStatement?t.visitEmitStatement(this):t.visitChildren(this)}},Mt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}functionCall(){return this.getTypedRuleContext(Xt,0)}get ruleIndex(){return R.RULE_revertStatement}enterRule(t){t.enterRevertStatement&&t.enterRevertStatement(this)}exitRule(t){t.exitRevertStatement&&t.exitRevertStatement(this)}accept(t){return t.visitRevertStatement?t.visitRevertStatement(this):t.visitChildren(this)}},Ut=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifierList(){return this.getTypedRuleContext(Vt,0)}variableDeclaration(){return this.getTypedRuleContext(dt,0)}variableDeclarationList(){return this.getTypedRuleContext(Bt,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_variableDeclarationStatement}enterRule(t){t.enterVariableDeclarationStatement&&t.enterVariableDeclarationStatement(this)}exitRule(t){t.exitVariableDeclarationStatement&&t.exitVariableDeclarationStatement(this)}accept(t){return t.visitVariableDeclarationStatement?t.visitVariableDeclarationStatement(this):t.visitChildren(this)}},Bt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}variableDeclaration_list(){return this.getTypedRuleContexts(dt)}variableDeclaration(t){return this.getTypedRuleContext(dt,t)}get ruleIndex(){return R.RULE_variableDeclarationList}enterRule(t){t.enterVariableDeclarationList&&t.enterVariableDeclarationList(this)}exitRule(t){t.exitVariableDeclarationList&&t.exitVariableDeclarationList(this)}accept(t){return t.visitVariableDeclarationList?t.visitVariableDeclarationList(this):t.visitChildren(this)}},Vt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(we)}identifier(t){return this.getTypedRuleContext(we,t)}get ruleIndex(){return R.RULE_identifierList}enterRule(t){t.enterIdentifierList&&t.enterIdentifierList(this)}exitRule(t){t.exitIdentifierList&&t.exitIdentifierList(this)}accept(t){return t.visitIdentifierList?t.visitIdentifierList(this):t.visitChildren(this)}},Ht=class extends x{constructor(t,e,r){super(e,r),this.parser=t}Int(){return this.getToken(R.Int,0)}Uint(){return this.getToken(R.Uint,0)}Byte(){return this.getToken(R.Byte,0)}Fixed(){return this.getToken(R.Fixed,0)}Ufixed(){return this.getToken(R.Ufixed,0)}get ruleIndex(){return R.RULE_elementaryTypeName}enterRule(t){t.enterElementaryTypeName&&t.enterElementaryTypeName(this)}exitRule(t){t.exitElementaryTypeName&&t.exitElementaryTypeName(this)}accept(t){return t.visitElementaryTypeName?t.visitElementaryTypeName(this):t.visitChildren(this)}},jt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(pt,0)}expression_list(){return this.getTypedRuleContexts(jt)}expression(t){return this.getTypedRuleContext(jt,t)}primaryExpression(){return this.getTypedRuleContext($t,0)}identifier(){return this.getTypedRuleContext(we,0)}nameValueList(){return this.getTypedRuleContext(Gt,0)}functionCallArguments(){return this.getTypedRuleContext(Wt,0)}get ruleIndex(){return R.RULE_expression}enterRule(t){t.enterExpression&&t.enterExpression(this)}exitRule(t){t.exitExpression&&t.exitExpression(this)}accept(t){return t.visitExpression?t.visitExpression(this):t.visitChildren(this)}},$t=class extends x{constructor(t,e,r){super(e,r),this.parser=t}BooleanLiteral(){return this.getToken(R.BooleanLiteral,0)}numberLiteral(){return this.getTypedRuleContext(ge,0)}hexLiteral(){return this.getTypedRuleContext(xe,0)}stringLiteral(){return this.getTypedRuleContext(be,0)}identifier(){return this.getTypedRuleContext(we,0)}TypeKeyword(){return this.getToken(R.TypeKeyword,0)}PayableKeyword(){return this.getToken(R.PayableKeyword,0)}tupleExpression(){return this.getTypedRuleContext(fe,0)}typeName(){return this.getTypedRuleContext(pt,0)}get ruleIndex(){return R.RULE_primaryExpression}enterRule(t){t.enterPrimaryExpression&&t.enterPrimaryExpression(this)}exitRule(t){t.exitPrimaryExpression&&t.exitPrimaryExpression(this)}accept(t){return t.visitPrimaryExpression?t.visitPrimaryExpression(this):t.visitChildren(this)}},Qt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression_list(){return this.getTypedRuleContexts(jt)}expression(t){return this.getTypedRuleContext(jt,t)}get ruleIndex(){return R.RULE_expressionList}enterRule(t){t.enterExpressionList&&t.enterExpressionList(this)}exitRule(t){t.exitExpressionList&&t.exitExpressionList(this)}accept(t){return t.visitExpressionList?t.visitExpressionList(this):t.visitChildren(this)}},Gt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}nameValue_list(){return this.getTypedRuleContexts(zt)}nameValue(t){return this.getTypedRuleContext(zt,t)}get ruleIndex(){return R.RULE_nameValueList}enterRule(t){t.enterNameValueList&&t.enterNameValueList(this)}exitRule(t){t.exitNameValueList&&t.exitNameValueList(this)}accept(t){return t.visitNameValueList?t.visitNameValueList(this):t.visitChildren(this)}},zt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}expression(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return R.RULE_nameValue}enterRule(t){t.enterNameValue&&t.enterNameValue(this)}exitRule(t){t.exitNameValue&&t.exitNameValue(this)}accept(t){return t.visitNameValue?t.visitNameValue(this):t.visitChildren(this)}},Wt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}nameValueList(){return this.getTypedRuleContext(Gt,0)}expressionList(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return R.RULE_functionCallArguments}enterRule(t){t.enterFunctionCallArguments&&t.enterFunctionCallArguments(this)}exitRule(t){t.exitFunctionCallArguments&&t.exitFunctionCallArguments(this)}accept(t){return t.visitFunctionCallArguments?t.visitFunctionCallArguments(this):t.visitChildren(this)}},Xt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(jt,0)}functionCallArguments(){return this.getTypedRuleContext(Wt,0)}get ruleIndex(){return R.RULE_functionCall}enterRule(t){t.enterFunctionCall&&t.enterFunctionCall(this)}exitRule(t){t.exitFunctionCall&&t.exitFunctionCall(this)}accept(t){return t.visitFunctionCall?t.visitFunctionCall(this):t.visitChildren(this)}},Jt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyItem_list(){return this.getTypedRuleContexts(Zt)}assemblyItem(t){return this.getTypedRuleContext(Zt,t)}get ruleIndex(){return R.RULE_assemblyBlock}enterRule(t){t.enterAssemblyBlock&&t.enterAssemblyBlock(this)}exitRule(t){t.exitAssemblyBlock&&t.exitAssemblyBlock(this)}accept(t){return t.visitAssemblyBlock?t.visitAssemblyBlock(this):t.visitChildren(this)}},Zt=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}assemblyBlock(){return this.getTypedRuleContext(Jt,0)}assemblyExpression(){return this.getTypedRuleContext(te,0)}assemblyLocalDefinition(){return this.getTypedRuleContext(se,0)}assemblyAssignment(){return this.getTypedRuleContext(ie,0)}assemblyStackAssignment(){return this.getTypedRuleContext(oe,0)}labelDefinition(){return this.getTypedRuleContext(ce,0)}assemblySwitch(){return this.getTypedRuleContext(le,0)}assemblyFunctionDefinition(){return this.getTypedRuleContext(ue,0)}assemblyFor(){return this.getTypedRuleContext(pe,0)}assemblyIf(){return this.getTypedRuleContext(me,0)}BreakKeyword(){return this.getToken(R.BreakKeyword,0)}ContinueKeyword(){return this.getToken(R.ContinueKeyword,0)}LeaveKeyword(){return this.getToken(R.LeaveKeyword,0)}numberLiteral(){return this.getTypedRuleContext(ge,0)}stringLiteral(){return this.getTypedRuleContext(be,0)}hexLiteral(){return this.getTypedRuleContext(xe,0)}get ruleIndex(){return R.RULE_assemblyItem}enterRule(t){t.enterAssemblyItem&&t.enterAssemblyItem(this)}exitRule(t){t.exitAssemblyItem&&t.exitAssemblyItem(this)}accept(t){return t.visitAssemblyItem?t.visitAssemblyItem(this):t.visitChildren(this)}},te=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyCall(){return this.getTypedRuleContext(re,0)}assemblyLiteral(){return this.getTypedRuleContext(ye,0)}assemblyMember(){return this.getTypedRuleContext(ee,0)}get ruleIndex(){return R.RULE_assemblyExpression}enterRule(t){t.enterAssemblyExpression&&t.enterAssemblyExpression(this)}exitRule(t){t.exitAssemblyExpression&&t.exitAssemblyExpression(this)}accept(t){return t.visitAssemblyExpression?t.visitAssemblyExpression(this):t.visitChildren(this)}},ee=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(we)}identifier(t){return this.getTypedRuleContext(we,t)}get ruleIndex(){return R.RULE_assemblyMember}enterRule(t){t.enterAssemblyMember&&t.enterAssemblyMember(this)}exitRule(t){t.exitAssemblyMember&&t.exitAssemblyMember(this)}accept(t){return t.visitAssemblyMember?t.visitAssemblyMember(this):t.visitChildren(this)}},re=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}assemblyExpression_list(){return this.getTypedRuleContexts(te)}assemblyExpression(t){return this.getTypedRuleContext(te,t)}get ruleIndex(){return R.RULE_assemblyCall}enterRule(t){t.enterAssemblyCall&&t.enterAssemblyCall(this)}exitRule(t){t.exitAssemblyCall&&t.exitAssemblyCall(this)}accept(t){return t.visitAssemblyCall?t.visitAssemblyCall(this):t.visitChildren(this)}},se=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(ne,0)}assemblyExpression(){return this.getTypedRuleContext(te,0)}get ruleIndex(){return R.RULE_assemblyLocalDefinition}enterRule(t){t.enterAssemblyLocalDefinition&&t.enterAssemblyLocalDefinition(this)}exitRule(t){t.exitAssemblyLocalDefinition&&t.exitAssemblyLocalDefinition(this)}accept(t){return t.visitAssemblyLocalDefinition?t.visitAssemblyLocalDefinition(this):t.visitChildren(this)}},ie=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(ne,0)}assemblyExpression(){return this.getTypedRuleContext(te,0)}get ruleIndex(){return R.RULE_assemblyAssignment}enterRule(t){t.enterAssemblyAssignment&&t.enterAssemblyAssignment(this)}exitRule(t){t.exitAssemblyAssignment&&t.exitAssemblyAssignment(this)}accept(t){return t.visitAssemblyAssignment?t.visitAssemblyAssignment(this):t.visitChildren(this)}},ne=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}assemblyMember(){return this.getTypedRuleContext(ee,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ae,0)}get ruleIndex(){return R.RULE_assemblyIdentifierOrList}enterRule(t){t.enterAssemblyIdentifierOrList&&t.enterAssemblyIdentifierOrList(this)}exitRule(t){t.exitAssemblyIdentifierOrList&&t.exitAssemblyIdentifierOrList(this)}accept(t){return t.visitAssemblyIdentifierOrList?t.visitAssemblyIdentifierOrList(this):t.visitChildren(this)}},ae=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(we)}identifier(t){return this.getTypedRuleContext(we,t)}get ruleIndex(){return R.RULE_assemblyIdentifierList}enterRule(t){t.enterAssemblyIdentifierList&&t.enterAssemblyIdentifierList(this)}exitRule(t){t.exitAssemblyIdentifierList&&t.exitAssemblyIdentifierList(this)}accept(t){return t.visitAssemblyIdentifierList?t.visitAssemblyIdentifierList(this):t.visitChildren(this)}},oe=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(te,0)}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_assemblyStackAssignment}enterRule(t){t.enterAssemblyStackAssignment&&t.enterAssemblyStackAssignment(this)}exitRule(t){t.exitAssemblyStackAssignment&&t.exitAssemblyStackAssignment(this)}accept(t){return t.visitAssemblyStackAssignment?t.visitAssemblyStackAssignment(this):t.visitChildren(this)}},ce=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}get ruleIndex(){return R.RULE_labelDefinition}enterRule(t){t.enterLabelDefinition&&t.enterLabelDefinition(this)}exitRule(t){t.exitLabelDefinition&&t.exitLabelDefinition(this)}accept(t){return t.visitLabelDefinition?t.visitLabelDefinition(this):t.visitChildren(this)}},le=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(te,0)}assemblyCase_list(){return this.getTypedRuleContexts(he)}assemblyCase(t){return this.getTypedRuleContext(he,t)}get ruleIndex(){return R.RULE_assemblySwitch}enterRule(t){t.enterAssemblySwitch&&t.enterAssemblySwitch(this)}exitRule(t){t.exitAssemblySwitch&&t.exitAssemblySwitch(this)}accept(t){return t.visitAssemblySwitch?t.visitAssemblySwitch(this):t.visitChildren(this)}},he=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyLiteral(){return this.getTypedRuleContext(ye,0)}assemblyBlock(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return R.RULE_assemblyCase}enterRule(t){t.enterAssemblyCase&&t.enterAssemblyCase(this)}exitRule(t){t.exitAssemblyCase&&t.exitAssemblyCase(this)}accept(t){return t.visitAssemblyCase?t.visitAssemblyCase(this):t.visitChildren(this)}},ue=class extends x{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(we,0)}assemblyBlock(){return this.getTypedRuleContext(Jt,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ae,0)}assemblyFunctionReturns(){return this.getTypedRuleContext(de,0)}get ruleIndex(){return R.RULE_assemblyFunctionDefinition}enterRule(t){t.enterAssemblyFunctionDefinition&&t.enterAssemblyFunctionDefinition(this)}exitRule(t){t.exitAssemblyFunctionDefinition&&t.exitAssemblyFunctionDefinition(this)}accept(t){return t.visitAssemblyFunctionDefinition?t.visitAssemblyFunctionDefinition(this):t.visitChildren(this)}},de=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierList(){return this.getTypedRuleContext(ae,0)}get ruleIndex(){return R.RULE_assemblyFunctionReturns}enterRule(t){t.enterAssemblyFunctionReturns&&t.enterAssemblyFunctionReturns(this)}exitRule(t){t.exitAssemblyFunctionReturns&&t.exitAssemblyFunctionReturns(this)}accept(t){return t.visitAssemblyFunctionReturns?t.visitAssemblyFunctionReturns(this):t.visitChildren(this)}},pe=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression_list(){return this.getTypedRuleContexts(te)}assemblyExpression(t){return this.getTypedRuleContext(te,t)}assemblyBlock_list(){return this.getTypedRuleContexts(Jt)}assemblyBlock(t){return this.getTypedRuleContext(Jt,t)}get ruleIndex(){return R.RULE_assemblyFor}enterRule(t){t.enterAssemblyFor&&t.enterAssemblyFor(this)}exitRule(t){t.exitAssemblyFor&&t.exitAssemblyFor(this)}accept(t){return t.visitAssemblyFor?t.visitAssemblyFor(this):t.visitChildren(this)}},me=class extends x{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(te,0)}assemblyBlock(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return R.RULE_assemblyIf}enterRule(t){t.enterAssemblyIf&&t.enterAssemblyIf(this)}exitRule(t){t.exitAssemblyIf&&t.exitAssemblyIf(this)}accept(t){return t.visitAssemblyIf?t.visitAssemblyIf(this):t.visitChildren(this)}},ye=class extends x{constructor(t,e,r){super(e,r),this.parser=t}stringLiteral(){return this.getTypedRuleContext(be,0)}DecimalNumber(){return this.getToken(R.DecimalNumber,0)}HexNumber(){return this.getToken(R.HexNumber,0)}hexLiteral(){return this.getTypedRuleContext(xe,0)}BooleanLiteral(){return this.getToken(R.BooleanLiteral,0)}get ruleIndex(){return R.RULE_assemblyLiteral}enterRule(t){t.enterAssemblyLiteral&&t.enterAssemblyLiteral(this)}exitRule(t){t.exitAssemblyLiteral&&t.exitAssemblyLiteral(this)}accept(t){return t.visitAssemblyLiteral?t.visitAssemblyLiteral(this):t.visitChildren(this)}},fe=class extends x{constructor(t,e,r){super(e,r),this.parser=t}expression_list(){return this.getTypedRuleContexts(jt)}expression(t){return this.getTypedRuleContext(jt,t)}get ruleIndex(){return R.RULE_tupleExpression}enterRule(t){t.enterTupleExpression&&t.enterTupleExpression(this)}exitRule(t){t.exitTupleExpression&&t.exitTupleExpression(this)}accept(t){return t.visitTupleExpression?t.visitTupleExpression(this):t.visitChildren(this)}},ge=class extends x{constructor(t,e,r){super(e,r),this.parser=t}DecimalNumber(){return this.getToken(R.DecimalNumber,0)}HexNumber(){return this.getToken(R.HexNumber,0)}NumberUnit(){return this.getToken(R.NumberUnit,0)}get ruleIndex(){return R.RULE_numberLiteral}enterRule(t){t.enterNumberLiteral&&t.enterNumberLiteral(this)}exitRule(t){t.exitNumberLiteral&&t.exitNumberLiteral(this)}accept(t){return t.visitNumberLiteral?t.visitNumberLiteral(this):t.visitChildren(this)}},we=class extends x{constructor(t,e,r){super(e,r),this.parser=t}ReceiveKeyword(){return this.getToken(R.ReceiveKeyword,0)}GlobalKeyword(){return this.getToken(R.GlobalKeyword,0)}ConstructorKeyword(){return this.getToken(R.ConstructorKeyword,0)}PayableKeyword(){return this.getToken(R.PayableKeyword,0)}LeaveKeyword(){return this.getToken(R.LeaveKeyword,0)}Identifier(){return this.getToken(R.Identifier,0)}get ruleIndex(){return R.RULE_identifier}enterRule(t){t.enterIdentifier&&t.enterIdentifier(this)}exitRule(t){t.exitIdentifier&&t.exitIdentifier(this)}accept(t){return t.visitIdentifier?t.visitIdentifier(this):t.visitChildren(this)}},xe=class extends x{constructor(t,e,r){super(e,r),this.parser=t}HexLiteralFragment_list(){return this.getTokens(R.HexLiteralFragment)}HexLiteralFragment(t){return this.getToken(R.HexLiteralFragment,t)}get ruleIndex(){return R.RULE_hexLiteral}enterRule(t){t.enterHexLiteral&&t.enterHexLiteral(this)}exitRule(t){t.exitHexLiteral&&t.exitHexLiteral(this)}accept(t){return t.visitHexLiteral?t.visitHexLiteral(this):t.visitChildren(this)}},ve=class extends x{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName_list(){return this.getTypedRuleContexts(mt)}userDefinedTypeName(t){return this.getTypedRuleContext(mt,t)}get ruleIndex(){return R.RULE_overrideSpecifier}enterRule(t){t.enterOverrideSpecifier&&t.enterOverrideSpecifier(this)}exitRule(t){t.exitOverrideSpecifier&&t.exitOverrideSpecifier(this)}accept(t){return t.visitOverrideSpecifier?t.visitOverrideSpecifier(this):t.visitChildren(this)}},be=class extends x{constructor(t,e,r){super(e,r),this.parser=t}StringLiteralFragment_list(){return this.getTokens(R.StringLiteralFragment)}StringLiteralFragment(t){return this.getToken(R.StringLiteralFragment,t)}get ruleIndex(){return R.RULE_stringLiteral}enterRule(t){t.enterStringLiteral&&t.enterStringLiteral(this)}exitRule(t){t.exitStringLiteral&&t.exitStringLiteral(this)}accept(t){return t.visitStringLiteral?t.visitStringLiteral(this):t.visitChildren(this)}},_e=["SourceUnit","PragmaDirective","ImportDirective","ContractDefinition","InheritanceSpecifier","StateVariableDeclaration","UsingForDeclaration","StructDefinition","ModifierDefinition","ModifierInvocation","FunctionDefinition","EventDefinition","CustomErrorDefinition","RevertStatement","EnumValue","EnumDefinition","VariableDeclaration","UserDefinedTypeName","Mapping","ArrayTypeName","FunctionTypeName","Block","ExpressionStatement","IfStatement","WhileStatement","ForStatement","InlineAssemblyStatement","DoWhileStatement","ContinueStatement","Break","Continue","BreakStatement","ReturnStatement","EmitStatement","ThrowStatement","VariableDeclarationStatement","ElementaryTypeName","FunctionCall","AssemblyBlock","AssemblyCall","AssemblyLocalDefinition","AssemblyAssignment","AssemblyStackAssignment","LabelDefinition","AssemblySwitch","AssemblyCase","AssemblyFunctionDefinition","AssemblyFor","AssemblyIf","TupleExpression","NameValueExpression","BooleanLiteral","NumberLiteral","Identifier","BinaryOperation","UnaryOperation","NewExpression","Conditional","StringLiteral","HexLiteral","HexNumber","DecimalNumber","MemberAccess","IndexAccess","IndexRangeAccess","NameValueList","UncheckedStatement","TryStatement","CatchClause","FileLevelConstant","AssemblyMemberAccess","TypeDefinition"],Ee=["+","-","*","/","**","%","<<",">>","&&","||","&","^","<",">","<=",">=","==","!=","=","^=","&=","<<=",">>=","+=","-=","*=","/=","%=","|","|="],Te=["-","+","++","--","~","after","delete","!"],Se=class extends f{constructor(t){super(),this.options=t,this.result=null}defaultResult(){throw new Error("Unknown node")}aggregateResult(){return{type:""}}visitSourceUnit(t){const e={type:"SourceUnit",children:(t.children??[]).slice(0,-1).map((t=>this.visit(t)))},r=this._addMeta(e,t);return this.result=r,r}visitContractPart(t){return this.visit(t.getChild(0))}visitContractDefinition(t){const e=this._toText(t.identifier()),r=this._toText(t.getChild(0));this._currentContract=e;const s={type:"ContractDefinition",name:e,baseContracts:t.inheritanceSpecifier_list().map((t=>this.visitInheritanceSpecifier(t))),subNodes:t.contractPart_list().map((t=>this.visit(t))),kind:r};return this._addMeta(s,t)}visitStateVariableDeclaration(t){const e=this.visitTypeName(t.typeName()),r=t.identifier(),s=this._toText(r);let i=null;const n=t.expression();n&&(i=this.visitExpression(n));let a="default";t.InternalKeyword_list().length>0?a="internal":t.PublicKeyword_list().length>0?a="public":t.PrivateKeyword_list().length>0&&(a="private");let o,c=!1;t.ConstantKeyword_list().length>0&&(c=!0);const l=t.overrideSpecifier_list();o=0===l.length?null:l[0].userDefinedTypeName_list().map((t=>this.visitUserDefinedTypeName(t)));let h=!1;t.ImmutableKeyword_list().length>0&&(h=!0);const u={type:"VariableDeclaration",typeName:e,name:s,identifier:this.visitIdentifier(r),expression:i,visibility:a,isStateVar:!0,isDeclaredConst:c,isIndexed:!1,isImmutable:h,override:o,storageLocation:null},d={type:"StateVariableDeclaration",variables:[this._addMeta(u,t)],initialValue:i};return this._addMeta(d,t)}visitVariableDeclaration(t){let e=null;const r=t.storageLocation();r&&(e=this._toText(r));const s=t.identifier(),i={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:this._toText(s),identifier:this.visitIdentifier(s),storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(i,t)}visitVariableDeclarationStatement(t){let e=[];const r=t.variableDeclaration(),s=t.identifierList(),i=t.variableDeclarationList();r?e=[this.visitVariableDeclaration(r)]:s?e=this.buildIdentifierList(s):i&&(e=this.buildVariableDeclarationList(i));let n=null;const a=t.expression();a&&(n=this.visitExpression(a));const o={type:"VariableDeclarationStatement",variables:e,initialValue:n};return this._addMeta(o,t)}visitStatement(t){return this.visit(t.getChild(0))}visitSimpleStatement(t){return this.visit(t.getChild(0))}visitEventDefinition(t){const e=t.eventParameterList().eventParameter_list().map((t=>{const e=this.visitTypeName(t.typeName());let r=null;const s=t.identifier();s&&(r=this._toText(s));const i={type:"VariableDeclaration",typeName:e,name:r,identifier:s?this.visitIdentifier(s):null,isStateVar:!1,isIndexed:Boolean(t.IndexedKeyword()),storageLocation:null,expression:null};return this._addMeta(i,t)})),r={type:"EventDefinition",name:this._toText(t.identifier()),parameters:e,isAnonymous:Boolean(t.AnonymousKeyword())};return this._addMeta(r,t)}visitBlock(t){const e={type:"Block",statements:t.statement_list().map((t=>this.visitStatement(t)))};return this._addMeta(e,t)}visitParameter(t){let e=null;const r=t.storageLocation();r&&(e=this._toText(r));let s=null;const i=t.identifier();i&&(s=this._toText(i));const n={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:s,identifier:i?this.visitIdentifier(i):null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(n,t)}visitFunctionDefinition(t){let e=!1,r=!1,s=!1,i=!1,n=null,a=[],o=null,c="default",l=null;const h=t.block();h&&(l=this.visitBlock(h));const u=t.modifierList().modifierInvocation_list().map((t=>this.visitModifierInvocation(t)));let d=null;t.modifierList().stateMutability_list().length>0&&(d=this._stateMutabilityToText(t.modifierList().stateMutability(0)));const p=t.returnParameters();switch(this._toText(t.functionDescriptor().getChild(0))){case"constructor":a=t.parameterList().parameter_list().map((t=>this.visit(t))),c=t.modifierList().InternalKeyword_list().length>0?"internal":t.modifierList().PublicKeyword_list().length>0?"public":"default",e=!0;break;case"fallback":a=t.parameterList().parameter_list().map((t=>this.visit(t))),o=p?this.visitReturnParameters(p):null,c="external",r=!0;break;case"receive":c="external",s=!0;break;case"function":{const s=t.functionDescriptor().identifier();n=s?this._toText(s):"",a=t.parameterList().parameter_list().map((t=>this.visit(t))),o=p?this.visitReturnParameters(p):null,t.modifierList().ExternalKeyword_list().length>0?c="external":t.modifierList().InternalKeyword_list().length>0?c="internal":t.modifierList().PublicKeyword_list().length>0?c="public":t.modifierList().PrivateKeyword_list().length>0&&(c="private"),e=n===this._currentContract,r=""===n;break}}let m;t.modifierList().VirtualKeyword_list().length>0&&(i=!0);const y=t.modifierList().overrideSpecifier_list();m=0===y.length?null:y[0].userDefinedTypeName_list().map((t=>this.visitUserDefinedTypeName(t)));const f={type:"FunctionDefinition",name:n,parameters:a,returnParameters:o,body:l,visibility:c,modifiers:u,override:m,isConstructor:e,isReceiveEther:s,isFallback:r,isVirtual:i,stateMutability:d};return this._addMeta(f,t)}visitEnumDefinition(t){const e={type:"EnumDefinition",name:this._toText(t.identifier()),members:t.enumValue_list().map((t=>this.visitEnumValue(t)))};return this._addMeta(e,t)}visitEnumValue(t){const e={type:"EnumValue",name:this._toText(t.identifier())};return this._addMeta(e,t)}visitElementaryTypeName(t){const e={type:"ElementaryTypeName",name:this._toText(t),stateMutability:null};return this._addMeta(e,t)}visitIdentifier(t){const e={type:"Identifier",name:this._toText(t)};return this._addMeta(e,t)}visitTypeName(t){if(t.children&&t.children.length>2){let e=null;if(4===t.children.length){const r=t.expression();if(null==r)throw new Error("Assertion error: a typeName with 4 children should have an expression");e=this.visitExpression(r)}const r={type:"ArrayTypeName",baseTypeName:this.visitTypeName(t.typeName()),length:e};return this._addMeta(r,t)}if(2===t.children?.length){const e={type:"ElementaryTypeName",name:this._toText(t.getChild(0)),stateMutability:this._toText(t.getChild(1))};return this._addMeta(e,t)}if(t.elementaryTypeName())return this.visitElementaryTypeName(t.elementaryTypeName());if(t.userDefinedTypeName())return this.visitUserDefinedTypeName(t.userDefinedTypeName());if(t.mapping())return this.visitMapping(t.mapping());if(t.functionTypeName())return this.visitFunctionTypeName(t.functionTypeName());throw new Error("Assertion error: unhandled type name case")}visitUserDefinedTypeName(t){const e={type:"UserDefinedTypeName",namePath:this._toText(t)};return this._addMeta(e,t)}visitUsingForDeclaration(t){let e=null;const r=t.typeName();r&&(e=this.visitTypeName(r));const s=Boolean(t.GlobalKeyword()),i=t.usingForObject(),n=i.userDefinedTypeName();let a;if(n)a={type:"UsingForDeclaration",isGlobal:s,typeName:e,libraryName:this._toText(n),functions:[],operators:[]};else{const t=i.usingForObjectDirective_list(),r=[],n=[];for(const e of t){r.push(this._toText(e.userDefinedTypeName()));const t=e.userDefinableOperators();t?n.push(this._toText(t)):n.push(null)}a={type:"UsingForDeclaration",isGlobal:s,typeName:e,libraryName:null,functions:r,operators:n}}return this._addMeta(a,t)}visitPragmaDirective(t){const e=t.pragmaValue().version();let r=this._toText(t.pragmaValue());e?.children&&(r=e.children.map((t=>this._toText(t))).join(" "));const s={type:"PragmaDirective",name:this._toText(t.pragmaName()),value:r};return this._addMeta(s,t)}visitInheritanceSpecifier(t){const e=t.expressionList(),r=e?e.expression_list().map((t=>this.visitExpression(t))):[],s={type:"InheritanceSpecifier",baseName:this.visitUserDefinedTypeName(t.userDefinedTypeName()),arguments:r};return this._addMeta(s,t)}visitModifierInvocation(t){const e=t.expressionList();let r;r=null!=e?e.expression_list().map((t=>this.visit(t))):t.children&&t.children.length>1?[]:null;const s={type:"ModifierInvocation",name:this._toText(t.identifier()),arguments:r};return this._addMeta(s,t)}visitFunctionTypeName(t){const e=t.functionTypeParameterList(0).functionTypeParameter_list().map((t=>this.visitFunctionTypeParameter(t)));let r=[];t.functionTypeParameterList_list().length>1&&(r=t.functionTypeParameterList(1).functionTypeParameter_list().map((t=>this.visitFunctionTypeParameter(t))));let s="default";t.InternalKeyword_list().length>0?s="internal":t.ExternalKeyword_list().length>0&&(s="external");let i=null;t.stateMutability_list().length>0&&(i=this._toText(t.stateMutability(0)));const n={type:"FunctionTypeName",parameterTypes:e,returnTypes:r,visibility:s,stateMutability:i};return this._addMeta(n,t)}visitFunctionTypeParameter(t){let e=null;t.storageLocation()&&(e=this._toText(t.storageLocation()));const r={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:null,identifier:null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(r,t)}visitThrowStatement(t){return this._addMeta({type:"ThrowStatement"},t)}visitReturnStatement(t){let e=null;const r=t.expression();r&&(e=this.visitExpression(r));const s={type:"ReturnStatement",expression:e};return this._addMeta(s,t)}visitEmitStatement(t){const e={type:"EmitStatement",eventCall:this.visitFunctionCall(t.functionCall())};return this._addMeta(e,t)}visitCustomErrorDefinition(t){const e={type:"CustomErrorDefinition",name:this._toText(t.identifier()),parameters:this.visitParameterList(t.parameterList())};return this._addMeta(e,t)}visitTypeDefinition(t){const e={type:"TypeDefinition",name:this._toText(t.identifier()),definition:this.visitElementaryTypeName(t.elementaryTypeName())};return this._addMeta(e,t)}visitRevertStatement(t){const e={type:"RevertStatement",revertCall:this.visitFunctionCall(t.functionCall())};return this._addMeta(e,t)}visitFunctionCall(t){let e=[];const r=[],s=[],i=t.functionCallArguments(),n=i.expressionList(),a=i.nameValueList();if(n)e=n.expression_list().map((t=>this.visitExpression(t)));else if(a)for(const t of a.nameValue_list())e.push(this.visitExpression(t.expression())),r.push(this._toText(t.identifier())),s.push(this.visitIdentifier(t.identifier()));const o={type:"FunctionCall",expression:this.visitExpression(t.expression()),arguments:e,names:r,identifiers:s};return this._addMeta(o,t)}visitStructDefinition(t){const e={type:"StructDefinition",name:this._toText(t.identifier()),members:t.variableDeclaration_list().map((t=>this.visitVariableDeclaration(t)))};return this._addMeta(e,t)}visitWhileStatement(t){const e={type:"WhileStatement",condition:this.visitExpression(t.expression()),body:this.visitStatement(t.statement())};return this._addMeta(e,t)}visitDoWhileStatement(t){const e={type:"DoWhileStatement",condition:this.visitExpression(t.expression()),body:this.visitStatement(t.statement())};return this._addMeta(e,t)}visitIfStatement(t){const e=this.visitStatement(t.statement(0));let r=null;t.statement_list().length>1&&(r=this.visitStatement(t.statement(1)));const s={type:"IfStatement",condition:this.visitExpression(t.expression()),trueBody:e,falseBody:r};return this._addMeta(s,t)}visitTryStatement(t){let e=null;const r=t.returnParameters();r&&(e=this.visitReturnParameters(r));const s=t.catchClause_list().map((t=>this.visitCatchClause(t))),i={type:"TryStatement",expression:this.visitExpression(t.expression()),returnParameters:e,body:this.visitBlock(t.block()),catchClauses:s};return this._addMeta(i,t)}visitCatchClause(t){let e=null;if(t.parameterList()&&(e=this.visitParameterList(t.parameterList())),t.identifier()&&"Error"!==this._toText(t.identifier())&&"Panic"!==this._toText(t.identifier()))throw new Error('Expected "Error" or "Panic" identifier in catch clause');let r=null;const s=t.identifier();s&&(r=this._toText(s));const i={type:"CatchClause",isReasonStringType:"Error"===r,kind:r,parameters:e,body:this.visitBlock(t.block())};return this._addMeta(i,t)}visitExpressionStatement(t){if(!t)return null;const e={type:"ExpressionStatement",expression:this.visitExpression(t.expression())};return this._addMeta(e,t)}visitNumberLiteral(t){const e=this._toText(t.getChild(0));let r=null;2===t.children?.length&&(r=this._toText(t.getChild(1)));const s={type:"NumberLiteral",number:e,subdenomination:r};return this._addMeta(s,t)}visitMappingKey(t){if(t.elementaryTypeName())return this.visitElementaryTypeName(t.elementaryTypeName());if(t.userDefinedTypeName())return this.visitUserDefinedTypeName(t.userDefinedTypeName());throw new Error("Expected MappingKey to have either elementaryTypeName or userDefinedTypeName")}visitMapping(t){const e=t.mappingKeyName(),r=t.mappingValueName(),s={type:"Mapping",keyType:this.visitMappingKey(t.mappingKey()),keyName:e?this.visitIdentifier(e.identifier()):null,valueType:this.visitTypeName(t.typeName()),valueName:r?this.visitIdentifier(r.identifier()):null};return this._addMeta(s,t)}visitModifierDefinition(t){let e=null;t.parameterList()&&(e=this.visitParameterList(t.parameterList()));let r,s=!1;t.VirtualKeyword_list().length>0&&(s=!0);const i=t.overrideSpecifier_list();r=0===i.length?null:i[0].userDefinedTypeName_list().map((t=>this.visitUserDefinedTypeName(t)));let n=null;const a=t.block();a&&(n=this.visitBlock(a));const o={type:"ModifierDefinition",name:this._toText(t.identifier()),parameters:e,body:n,isVirtual:s,override:r};return this._addMeta(o,t)}visitUncheckedStatement(t){const e={type:"UncheckedStatement",block:this.visitBlock(t.block())};return this._addMeta(e,t)}visitExpression(t){let e;switch(t.children.length){case 1:{const e=t.primaryExpression();if(null==e)throw new Error("Assertion error: primary expression should exist when children length is 1");return this.visitPrimaryExpression(e)}case 2:if(e=this._toText(t.getChild(0)),"new"===e){const e={type:"NewExpression",typeName:this.visitTypeName(t.typeName())};return this._addMeta(e,t)}if(Te.includes(e)){const r={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.expression(0)),isPrefix:!0};return this._addMeta(r,t)}if(e=this._toText(t.getChild(1)),["++","--"].includes(e)){const r={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.expression(0)),isPrefix:!1};return this._addMeta(r,t)}break;case 3:if("("===this._toText(t.getChild(0))&&")"===this._toText(t.getChild(2))){const e={type:"TupleExpression",components:[this.visitExpression(t.expression(0))],isArray:!1};return this._addMeta(e,t)}if(e=this._toText(t.getChild(1)),"."===e){const e={type:"MemberAccess",expression:this.visitExpression(t.expression(0)),memberName:this._toText(t.identifier())};return this._addMeta(e,t)}if(function(t){return Ee.includes(t)}(e)){const r={type:"BinaryOperation",operator:e,left:this.visitExpression(t.expression(0)),right:this.visitExpression(t.expression(1))};return this._addMeta(r,t)}break;case 4:if("("===this._toText(t.getChild(1))&&")"===this._toText(t.getChild(3))){let e=[];const r=[],s=[],i=t.functionCallArguments();if(i.expressionList())e=i.expressionList().expression_list().map((t=>this.visitExpression(t)));else if(i.nameValueList())for(const t of i.nameValueList().nameValue_list())e.push(this.visitExpression(t.expression())),r.push(this._toText(t.identifier())),s.push(this.visitIdentifier(t.identifier()));const n={type:"FunctionCall",expression:this.visitExpression(t.expression(0)),arguments:e,names:r,identifiers:s};return this._addMeta(n,t)}if("["===this._toText(t.getChild(1))&&"]"===this._toText(t.getChild(3))){if(":"===t.getChild(2).getText()){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0))};return this._addMeta(e,t)}const e={type:"IndexAccess",base:this.visitExpression(t.expression(0)),index:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}if("{"===this._toText(t.getChild(1))&&"}"===this._toText(t.getChild(3))){const e={type:"NameValueExpression",expression:this.visitExpression(t.expression(0)),arguments:this.visitNameValueList(t.nameValueList())};return this._addMeta(e,t)}break;case 5:if("?"===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))){const e={type:"Conditional",condition:this.visitExpression(t.expression(0)),trueExpression:this.visitExpression(t.expression(1)),falseExpression:this.visitExpression(t.expression(2))};return this._addMeta(e,t)}if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(2))&&"]"===this._toText(t.getChild(4))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexEnd:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))&&"]"===this._toText(t.getChild(4))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexStart:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}break;case 6:if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))&&"]"===this._toText(t.getChild(5))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexStart:this.visitExpression(t.expression(1)),indexEnd:this.visitExpression(t.expression(2))};return this._addMeta(e,t)}}throw new Error("Unrecognized expression")}visitNameValueList(t){const e=[],r=[],s=[];for(const i of t.nameValue_list())e.push(this._toText(i.identifier())),r.push(this.visitIdentifier(i.identifier())),s.push(this.visitExpression(i.expression()));const i={type:"NameValueList",names:e,identifiers:r,arguments:s};return this._addMeta(i,t)}visitFileLevelConstant(t){const e={type:"FileLevelConstant",typeName:this.visitTypeName(t.typeName()),name:this._toText(t.identifier()),initialValue:this.visitExpression(t.expression()),isDeclaredConst:!0,isImmutable:!1};return this._addMeta(e,t)}visitForStatement(t){let e=this.visitExpressionStatement(t.expressionStatement());e&&(e=e.expression);const r={type:"ForStatement",initExpression:t.simpleStatement()?this.visitSimpleStatement(t.simpleStatement()):null,conditionExpression:e,loopExpression:{type:"ExpressionStatement",expression:t.expression()?this.visitExpression(t.expression()):null},body:this.visitStatement(t.statement())};return this._addMeta(r,t)}visitHexLiteral(t){const e=t.HexLiteralFragment_list().map((t=>this._toText(t))).map((t=>t.substring(4,t.length-1))),r={type:"HexLiteral",value:e.join(""),parts:e};return this._addMeta(r,t)}visitPrimaryExpression(t){if(t.BooleanLiteral()){const e={type:"BooleanLiteral",value:"true"===this._toText(t.BooleanLiteral())};return this._addMeta(e,t)}if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());if(t.stringLiteral()){const e=t.stringLiteral().StringLiteralFragment_list().map((t=>{let e=this._toText(t);const r="unicode"===e.slice(0,7);r&&(e=e.slice(7));const s="'"===e[0],i=e.substring(1,e.length-1);return{value:s?i.replace(new RegExp("\\\\'","g"),"'"):i.replace(new RegExp('\\\\"',"g"),'"'),isUnicode:r}})),r=e.map((t=>t.value)),s={type:"StringLiteral",value:r.join(""),parts:r,isUnicode:e.map((t=>t.isUnicode))};return this._addMeta(s,t)}if(t.numberLiteral())return this.visitNumberLiteral(t.numberLiteral());if(t.TypeKeyword()){const e={type:"Identifier",name:"type"};return this._addMeta(e,t)}return t.typeName()?this.visitTypeName(t.typeName()):this.visit(t.getChild(0))}visitTupleExpression(t){const e=t.children.slice(1,-1),r={type:"TupleExpression",components:this._mapCommasToNulls(e).map((t=>null===t?null:this.visit(t))),isArray:"["===this._toText(t.getChild(0))};return this._addMeta(r,t)}buildIdentifierList(t){const e=t.children.slice(1,-1),r=t.identifier_list();let s=0;return this._mapCommasToNulls(e).map((t=>{if(null===t)return null;const e=r[s];s++;const i={type:"VariableDeclaration",name:this._toText(e),identifier:this.visitIdentifier(e),isStateVar:!1,isIndexed:!1,typeName:null,storageLocation:null,expression:null};return this._addMeta(i,e)}))}buildVariableDeclarationList(t){const e=t.variableDeclaration_list();let r=0;return this._mapCommasToNulls(t.children??[]).map((t=>{if(!t)return null;const s=e[r];r++;let i=null;s.storageLocation()&&(i=this._toText(s.storageLocation()));const n=s.identifier(),a={type:"VariableDeclaration",name:this._toText(n),identifier:this.visitIdentifier(n),typeName:this.visitTypeName(s.typeName()),storageLocation:i,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(a,s)}))}visitImportDirective(t){const e=this._toText(t.importPath());let r=null,s=null,i=null,n=null;if(t.importDeclaration_list().length>0)i=t.importDeclaration_list().map((t=>{const e=this._toText(t.identifier(0));let r=null;return t.identifier_list().length>1&&(r=this._toText(t.identifier(1))),[e,r]})),n=t.importDeclaration_list().map((t=>{const e=this.visitIdentifier(t.identifier(0));let r=null;return t.identifier_list().length>1&&(r=this.visitIdentifier(t.identifier(1))),[e,r]}));else{const e=t.identifier_list();if(0===e.length);else if(1===e.length){const e=t.identifier(0);r=this._toText(e),s=this.visitIdentifier(e)}else{if(2!==e.length)throw new Error("Assertion error: an import should have one or two identifiers");{const e=t.identifier(1);r=this._toText(e),s=this.visitIdentifier(e)}}}const a=e.substring(1,e.length-1),o={type:"StringLiteral",value:a,parts:[a],isUnicode:[!1]},c={type:"ImportDirective",path:a,pathLiteral:this._addMeta(o,t.importPath()),unitAlias:r,unitAliasIdentifier:s,symbolAliases:i,symbolAliasesIdentifiers:n};return this._addMeta(c,t)}buildEventParameterList(t){return t.eventParameter_list().map((t=>{const e=this.visit(t.typeName()),r=t.identifier();return{type:"VariableDeclaration",typeName:e,name:r?this._toText(r):null,isStateVar:!1,isIndexed:!!t.IndexedKeyword()}}))}visitReturnParameters(t){return this.visitParameterList(t.parameterList())}visitParameterList(t){return t.parameter_list().map((t=>this.visitParameter(t)))}visitInlineAssemblyStatement(t){let e=null;t.StringLiteralFragment()&&(e=this._toText(t.StringLiteralFragment()),e=e.substring(1,e.length-1));const r=[],s=t.inlineAssemblyStatementFlag();if(s){const t=this._toText(s.stringLiteral());r.push(t.slice(1,t.length-1))}const i={type:"InlineAssemblyStatement",language:e,flags:r,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(i,t)}visitAssemblyBlock(t){const e={type:"AssemblyBlock",operations:t.assemblyItem_list().map((t=>this.visitAssemblyItem(t)))};return this._addMeta(e,t)}visitAssemblyItem(t){let e;if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());if(t.stringLiteral()){e=this._toText(t.stringLiteral());const r=e.substring(1,e.length-1),s={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(s,t)}if(t.BreakKeyword()){const e={type:"Break"};return this._addMeta(e,t)}if(t.ContinueKeyword()){const e={type:"Continue"};return this._addMeta(e,t)}return this.visit(t.getChild(0))}visitAssemblyExpression(t){return this.visit(t.getChild(0))}visitAssemblyCall(t){const e={type:"AssemblyCall",functionName:this._toText(t.getChild(0)),arguments:t.assemblyExpression_list().map((t=>this.visitAssemblyExpression(t)))};return this._addMeta(e,t)}visitAssemblyLiteral(t){let e;if(t.stringLiteral()){e=this._toText(t);const r=e.substring(1,e.length-1),s={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(s,t)}if(t.BooleanLiteral()){const e={type:"BooleanLiteral",value:"true"===this._toText(t.BooleanLiteral())};return this._addMeta(e,t)}if(t.DecimalNumber()){const e={type:"DecimalNumber",value:this._toText(t)};return this._addMeta(e,t)}if(t.HexNumber()){const e={type:"HexNumber",value:this._toText(t)};return this._addMeta(e,t)}if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());throw new Error("Should never reach here")}visitAssemblySwitch(t){const e={type:"AssemblySwitch",expression:this.visitAssemblyExpression(t.assemblyExpression()),cases:t.assemblyCase_list().map((t=>this.visitAssemblyCase(t)))};return this._addMeta(e,t)}visitAssemblyCase(t){let e=null;"case"===this._toText(t.getChild(0))&&(e=this.visitAssemblyLiteral(t.assemblyLiteral()));const r={type:"AssemblyCase",block:this.visitAssemblyBlock(t.assemblyBlock()),value:e,default:null===e};return this._addMeta(r,t)}visitAssemblyLocalDefinition(t){const e=t.assemblyIdentifierOrList();let r;r=e.identifier()?[this.visitIdentifier(e.identifier())]:e.assemblyMember()?[this.visitAssemblyMember(e.assemblyMember())]:e.assemblyIdentifierList().identifier_list().map((t=>this.visitIdentifier(t)));let s=null;t.assemblyExpression()&&(s=this.visitAssemblyExpression(t.assemblyExpression()));const i={type:"AssemblyLocalDefinition",names:r,expression:s};return this._addMeta(i,t)}visitAssemblyFunctionDefinition(t){const e=t.assemblyIdentifierList(),r=e?e.identifier_list().map((t=>this.visitIdentifier(t))):[],s=t.assemblyFunctionReturns(),i=s?s.assemblyIdentifierList().identifier_list().map((t=>this.visitIdentifier(t))):[],n={type:"AssemblyFunctionDefinition",name:this._toText(t.identifier()),arguments:r,returnArguments:i,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(n,t)}visitAssemblyAssignment(t){const e=t.assemblyIdentifierOrList();let r;r=e.identifier()?[this.visitIdentifier(e.identifier())]:e.assemblyMember()?[this.visitAssemblyMember(e.assemblyMember())]:e.assemblyIdentifierList().identifier_list().map((t=>this.visitIdentifier(t)));const s={type:"AssemblyAssignment",names:r,expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(s,t)}visitAssemblyMember(t){const[e,r]=t.identifier_list(),s={type:"AssemblyMemberAccess",expression:this.visitIdentifier(e),memberName:this.visitIdentifier(r)};return this._addMeta(s,t)}visitLabelDefinition(t){const e={type:"LabelDefinition",name:this._toText(t.identifier())};return this._addMeta(e,t)}visitAssemblyStackAssignment(t){const e={type:"AssemblyStackAssignment",name:this._toText(t.identifier()),expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(e,t)}visitAssemblyFor(t){const e={type:"AssemblyFor",pre:this.visit(t.getChild(1)),condition:this.visit(t.getChild(2)),post:this.visit(t.getChild(3)),body:this.visit(t.getChild(4))};return this._addMeta(e,t)}visitAssemblyIf(t){const e={type:"AssemblyIf",condition:this.visitAssemblyExpression(t.assemblyExpression()),body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(e,t)}visitContinueStatement(t){return this._addMeta({type:"ContinueStatement"},t)}visitBreakStatement(t){return this._addMeta({type:"BreakStatement"},t)}_toText(t){const e=t.getText();if(null==e)throw new Error("Assertion error: text should never be undefined");return e}_stateMutabilityToText(t){if(t.PureKeyword())return"pure";if(t.ConstantKeyword())return"constant";if(t.PayableKeyword())return"payable";if(t.ViewKeyword())return"view";throw new Error("Assertion error: non-exhaustive stateMutability check")}_loc(t){return{start:{line:t.start.line,column:t.start.column},end:{line:t.stop?t.stop.line:t.start.line,column:t.stop?t.stop.column:t.start.column}}}_range(t){return[t.start.start,t.stop?.stop??t.start.start]}_addMeta(t,e){const r={type:t.type};return!0===this.options.loc&&(t.loc=this._loc(e)),!0===this.options.range&&(t.range=this._range(e)),{...r,...t}}_mapCommasToNulls(t){if(0===t.length)return[];const e=[];let r=!0;for(const s of t)if(r)","===this._toText(s)?e.push(null):(e.push(s),r=!1);else{if(","!==this._toText(s))throw new Error("expected comma");r=!0}return r&&e.push(null),e}},ke=class extends u{constructor(){super(),this._errors=[]}syntaxError(t,e,r,s,i){this._errors.push({message:i,line:r,column:s})}getErrors(){return this._errors}hasErrors(){return this._errors.length>0}},Re={1:"pragma",2:";",3:"*",4:"||",5:"^",6:"~",7:">=",8:">",9:"<",10:"<=",11:"=",12:"as",13:"import",14:"from",15:"{",16:",",17:"}",18:"abstract",19:"contract",20:"interface",21:"library",22:"is",23:"(",24:")",25:"error",26:"using",27:"for",28:"|",29:"&",30:"+",31:"-",32:"/",33:"%",34:"==",35:"!=",36:"struct",37:"modifier",38:"function",39:"returns",40:"event",41:"enum",42:"[",43:"]",44:"address",45:".",46:"mapping",47:"=>",48:"memory",49:"storage",50:"calldata",51:"if",52:"else",53:"try",54:"catch",55:"while",56:"unchecked",57:"assembly",58:"do",59:"return",60:"throw",61:"emit",62:"revert",63:"var",64:"bool",65:"string",66:"byte",67:"++",68:"--",69:"new",70:":",71:"delete",72:"!",73:"**",74:"<<",75:">>",76:"&&",77:"?",78:"|=",79:"^=",80:"&=",81:"<<=",82:">>=",83:"+=",84:"-=",85:"*=",86:"/=",87:"%=",88:"let",89:":=",90:"=:",91:"switch",92:"case",93:"default",94:"->",95:"callback",96:"override",97:"Int",98:"Uint",99:"Byte",100:"Fixed",101:"Ufixed",102:"BooleanLiteral",103:"DecimalNumber",104:"HexNumber",105:"NumberUnit",106:"HexLiteralFragment",107:"ReservedKeyword",108:"anonymous",109:"break",110:"constant",111:"immutable",112:"continue",113:"leave",114:"external",115:"indexed",116:"internal",117:"payable",118:"private",119:"public",120:"virtual",121:"pure",122:"type",123:"view",124:"global",125:"constructor",126:"fallback",127:"receive",128:"Identifier",129:"StringLiteralFragment",130:"VersionLiteral",131:"WS",132:"COMMENT",133:"LINE_COMMENT"},Ae=["var","bool","address","string","Int","Uint","Byte","Fixed","UFixed"];function Ce(t){return[t.start,t.stop+1]}function Ke(t){const e=(t.text??"").split(/\r?\n/),r=e.length-1;return{start:{line:t.line,column:t.column},end:{line:t.line+r,column:e[r].length+(0===r?t.column:0)}}}function Le(t,e){return t.map((t=>{var r;const s={type:"Identifier"===(r=Re[t.type.toString()])||"from"===r?"Identifier":"TrueLiteral"===r||"FalseLiteral"===r?"Boolean":"VersionLiteral"===r?"Version":"StringLiteral"===r?"String":Ae.includes(r)?"Type":"NumberUnit"===r?"Subdenomination":"DecimalNumber"===r?"Numeric":"HexLiteral"===r?"Hex":"ReservedKeyword"===r?"Reserved":/^\W+$/.test(r)?"Punctuator":"Keyword",value:t.text};return!0===e.range&&(s.range=Ce(t)),!0===e.loc&&(s.loc=Ke(t)),s}))}var Ie=class extends Error{constructor(t){super();const{message:e,line:r,column:s}=t.errors[0];this.message=`${e} (${r}:${s})`,this.errors=t.errors,void 0!==Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack}};function Ne(t,e={}){const r=new c(t);return Le(new S(r).getAllTokens(),e)}function De(t,e={}){const r=new c(t),s=new S(r),i=new l(s),n=new A(i),a=new ke;s.removeErrorListeners(),s.addErrorListener(a),n.removeErrorListeners(),n.addErrorListener(a),n.buildParseTrees=!0;const o=n.sourceUnit(),h=new Se(e);h.visit(o);const u=h.result;if(null===u)throw new Error("ast should never be null");if(!0===e.tokens&&(u.tokens=Le(i.tokens,e)),!0===e.comments&&(u.comments=function(t,e,r){return t.filter((t=>t.channel===e)).map((t=>{const e=t.text.startsWith("//")?{type:"LineComment",value:t.text.slice(2)}:{type:"BlockComment",value:t.text.slice(2,-2)};return!0===r.range&&(e.range=Ce(t)),!0===r.loc&&(e.loc=Ke(t)),e}))}(i.tokens,s.channelNames.indexOf("HIDDEN"),e)),a.hasErrors()){if(!0!==e.tolerant)throw new Ie({errors:a.getErrors()});u.errors=a.getErrors()}return u}function Oe(t,e,r){if(Array.isArray(t)&&t.forEach((t=>Oe(t,e,r))),!function(t){if("object"!=typeof t||null===t)return!1;const e=t;return!(!Object.prototype.hasOwnProperty.call(e,"type")||"string"!=typeof e.type)&&_e.includes(e.type)}(t))return;let s=!0;if(void 0!==e[t.type]&&(s=e[t.type](t,r)),!1===s)return;for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&Oe(t[r],e,t);const i=t.type+":exit";void 0!==e[i]&&e[i](t,r)}return e})();return t},t.exports=s()},3904:(t,e,r)=>{const s=Symbol("SemVer ANY");class i{static get ANY(){return s}constructor(t,e){if(e=n(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),l("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===s?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(t){const e=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=s}toString(){return this.value}test(t){if(l("Comparator.test",t,this.options.loose),this.semver===s||t===s)return!0;if("string"==typeof t)try{t=new h(t,this.options)}catch(t){return!1}return c(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(t.value,e).test(this.value):""===t.operator?""===t.value||new u(this.value,e).test(t.semver):!((e=n(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!t.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!t.operator.startsWith("<"))&&(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))&&!(c(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))&&!(c(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}}t.exports=i;const n=r(8587),{safeRe:a,t:o}=r(9718),c=r(2111),l=r(7272),h=r(3908),u=r(8311)},8311:(t,e,r)=>{const s=/\s+/g;class i{constructor(t,e){if(e=a(e),t instanceof i)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new i(t.raw,e);if(t instanceof o)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().replace(s," "),this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!g(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&w(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");const e=this.set[t];for(let t=0;t<e.length;t++)t>0&&(this.formatted+=" "),this.formatted+=e[t].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){const e=((this.options.includePrerelease&&y)|(this.options.loose&&f))+":"+t,r=n.get(e);if(r)return r;const s=this.options.loose,i=s?h[u.HYPHENRANGELOOSE]:h[u.HYPHENRANGE];t=t.replace(i,K(this.options.includePrerelease)),c("hyphen replace",t),t=t.replace(h[u.COMPARATORTRIM],d),c("comparator trim",t),t=t.replace(h[u.TILDETRIM],p),c("tilde trim",t),t=t.replace(h[u.CARETTRIM],m),c("caret trim",t);let a=t.split(" ").map((t=>v(t,this.options))).join(" ").split(/\s+/).map((t=>C(t,this.options)));s&&(a=a.filter((t=>(c("loose invalid filter",t,this.options),!!t.match(h[u.COMPARATORLOOSE]))))),c("range list",a);const l=new Map,w=a.map((t=>new o(t,this.options)));for(const t of w){if(g(t))return[t];l.set(t.value,t)}l.size>1&&l.has("")&&l.delete("");const x=[...l.values()];return n.set(e,x),x}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Range is required");return this.set.some((r=>x(r,e)&&t.set.some((t=>x(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new l(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(L(this.set[e],t,this.options))return!0;return!1}}t.exports=i;const n=new(r(8794)),a=r(8587),o=r(3904),c=r(7272),l=r(3908),{safeRe:h,t:u,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:m}=r(9718),{FLAG_INCLUDE_PRERELEASE:y,FLAG_LOOSE:f}=r(6874),g=t=>"<0.0.0-0"===t.value,w=t=>""===t.value,x=(t,e)=>{let r=!0;const s=t.slice();let i=s.pop();for(;r&&s.length;)r=s.every((t=>i.intersects(t,e))),i=s.pop();return r},v=(t,e)=>(c("comp",t,e),t=T(t,e),c("caret",t),t=_(t,e),c("tildes",t),t=k(t,e),c("xrange",t),t=A(t,e),c("stars",t),t),b=t=>!t||"x"===t.toLowerCase()||"*"===t,_=(t,e)=>t.trim().split(/\s+/).map((t=>E(t,e))).join(" "),E=(t,e)=>{const r=e.loose?h[u.TILDELOOSE]:h[u.TILDE];return t.replace(r,((e,r,s,i,n)=>{let a;return c("tilde",t,e,r,s,i,n),b(r)?a="":b(s)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?a=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:n?(c("replaceTilde pr",n),a=`>=${r}.${s}.${i}-${n} <${r}.${+s+1}.0-0`):a=`>=${r}.${s}.${i} <${r}.${+s+1}.0-0`,c("tilde return",a),a}))},T=(t,e)=>t.trim().split(/\s+/).map((t=>S(t,e))).join(" "),S=(t,e)=>{c("caret",t,e);const r=e.loose?h[u.CARETLOOSE]:h[u.CARET],s=e.includePrerelease?"-0":"";return t.replace(r,((e,r,i,n,a)=>{let o;return c("caret",t,e,r,i,n,a),b(r)?o="":b(i)?o=`>=${r}.0.0${s} <${+r+1}.0.0-0`:b(n)?o="0"===r?`>=${r}.${i}.0${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${s} <${+r+1}.0.0-0`:a?(c("replaceCaret pr",a),o="0"===r?"0"===i?`>=${r}.${i}.${n}-${a} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n}-${a} <${+r+1}.0.0-0`):(c("no pr"),o="0"===r?"0"===i?`>=${r}.${i}.${n}${s} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n} <${+r+1}.0.0-0`),c("caret return",o),o}))},k=(t,e)=>(c("replaceXRanges",t,e),t.split(/\s+/).map((t=>R(t,e))).join(" ")),R=(t,e)=>{t=t.trim();const r=e.loose?h[u.XRANGELOOSE]:h[u.XRANGE];return t.replace(r,((r,s,i,n,a,o)=>{c("xRange",t,r,s,i,n,a,o);const l=b(i),h=l||b(n),u=h||b(a),d=u;return"="===s&&d&&(s=""),o=e.includePrerelease?"-0":"",l?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(h&&(n=0),a=0,">"===s?(s=">=",h?(i=+i+1,n=0,a=0):(n=+n+1,a=0)):"<="===s&&(s="<",h?i=+i+1:n=+n+1),"<"===s&&(o="-0"),r=`${s+i}.${n}.${a}${o}`):h?r=`>=${i}.0.0${o} <${+i+1}.0.0-0`:u&&(r=`>=${i}.${n}.0${o} <${i}.${+n+1}.0-0`),c("xRange return",r),r}))},A=(t,e)=>(c("replaceStars",t,e),t.trim().replace(h[u.STAR],"")),C=(t,e)=>(c("replaceGTE0",t,e),t.trim().replace(h[e.includePrerelease?u.GTE0PRE:u.GTE0],"")),K=t=>(e,r,s,i,n,a,o,c,l,h,u,d)=>`${r=b(s)?"":b(i)?`>=${s}.0.0${t?"-0":""}`:b(n)?`>=${s}.${i}.0${t?"-0":""}`:a?`>=${r}`:`>=${r}${t?"-0":""}`} ${c=b(l)?"":b(h)?`<${+l+1}.0.0-0`:b(u)?`<${l}.${+h+1}.0-0`:d?`<=${l}.${h}.${u}-${d}`:t?`<${l}.${h}.${+u+1}-0`:`<=${c}`}`.trim(),L=(t,e,r)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(c(t[r].semver),t[r].semver!==o.ANY&&t[r].semver.prerelease.length>0){const s=t[r].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}},3908:(t,e,r)=>{const s=r(7272),{MAX_LENGTH:i,MAX_SAFE_INTEGER:n}=r(6874),{safeRe:a,t:o}=r(9718),c=r(8587),{compareIdentifiers:l}=r(1123);class h{constructor(t,e){if(e=c(e),t instanceof h){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>i)throw new TypeError(`version is longer than ${i} characters`);s("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?a[o.LOOSE]:a[o.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<n)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(s("SemVer.compare",this.version,this.options,t),!(t instanceof h)){if("string"==typeof t&&t===this.version)return 0;t=new h(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof h||(t=new h(t,this.options)),l(this.major,t.major)||l(this.minor,t.minor)||l(this.patch,t.patch)}comparePre(t){if(t instanceof h||(t=new h(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],i=t.prerelease[e];if(s("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return l(r,i)}while(++e)}compareBuild(t){t instanceof h||(t=new h(t,this.options));let e=0;do{const r=this.build[e],i=t.build[e];if(s("build compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return l(r,i)}while(++e)}inc(t,e,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,r),this.inc("pre",e,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,r),this.inc("pre",e,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(r)?1:0;if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let s=this.prerelease.length;for(;--s>=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let s=[e,t];!1===r&&(s=[e]),0===l(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=h},7414:(t,e,r)=>{const s=r(144);t.exports=(t,e)=>{const r=s(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},2111:(t,e,r)=>{const s=r(4641),i=r(3999),n=r(5580),a=r(4089),o=r(7059),c=r(5200);t.exports=(t,e,r,l)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return s(t,r,l);case"!=":return i(t,r,l);case">":return n(t,r,l);case">=":return a(t,r,l);case"<":return o(t,r,l);case"<=":return c(t,r,l);default:throw new TypeError(`Invalid operator: ${e}`)}}},6170:(t,e,r)=>{const s=r(3908),i=r(144),{safeRe:n,t:a}=r(9718);t.exports=(t,e)=>{if(t instanceof s)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){const s=e.includePrerelease?n[a.COERCERTLFULL]:n[a.COERCERTL];let i;for(;(i=s.exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&i.index+i[0].length===r.index+r[0].length||(r=i),s.lastIndex=i.index+i[1].length+i[2].length;s.lastIndex=-1}else r=t.match(e.includePrerelease?n[a.COERCEFULL]:n[a.COERCE]);if(null===r)return null;const o=r[2],c=r[3]||"0",l=r[4]||"0",h=e.includePrerelease&&r[5]?`-${r[5]}`:"",u=e.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${o}.${c}.${l}${h}${u}`,e)}},909:(t,e,r)=>{const s=r(3908);t.exports=(t,e,r)=>{const i=new s(t,r),n=new s(e,r);return i.compare(n)||i.compareBuild(n)}},1763:(t,e,r)=>{const s=r(560);t.exports=(t,e)=>s(t,e,!0)},560:(t,e,r)=>{const s=r(3908);t.exports=(t,e,r)=>new s(t,r).compare(new s(e,r))},1832:(t,e,r)=>{const s=r(144);t.exports=(t,e)=>{const r=s(t,null,!0),i=s(e,null,!0),n=r.compare(i);if(0===n)return null;const a=n>0,o=a?r:i,c=a?i:r,l=!!o.prerelease.length;if(c.prerelease.length&&!l)return c.patch||c.minor?o.patch?"patch":o.minor?"minor":"major":"major";const h=l?"pre":"";return r.major!==i.major?h+"major":r.minor!==i.minor?h+"minor":r.patch!==i.patch?h+"patch":"prerelease"}},4641:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>0===s(t,e,r)},5580:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)>0},4089:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)>=0},3007:(t,e,r)=>{const s=r(3908);t.exports=(t,e,r,i,n)=>{"string"==typeof r&&(n=i,i=r,r=void 0);try{return new s(t instanceof s?t.version:t,r).inc(e,i,n).version}catch(t){return null}}},7059:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)<0},5200:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)<=0},2938:(t,e,r)=>{const s=r(3908);t.exports=(t,e)=>new s(t,e).major},6254:(t,e,r)=>{const s=r(3908);t.exports=(t,e)=>new s(t,e).minor},3999:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>0!==s(t,e,r)},144:(t,e,r)=>{const s=r(3908);t.exports=(t,e,r=!1)=>{if(t instanceof s)return t;try{return new s(t,e)}catch(t){if(!r)return null;throw t}}},4493:(t,e,r)=>{const s=r(3908);t.exports=(t,e)=>new s(t,e).patch},1729:(t,e,r)=>{const s=r(144);t.exports=(t,e)=>{const r=s(t,e);return r&&r.prerelease.length?r.prerelease:null}},9970:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(e,t,r)},4277:(t,e,r)=>{const s=r(909);t.exports=(t,e)=>t.sort(((t,r)=>s(r,t,e)))},7638:(t,e,r)=>{const s=r(8311);t.exports=(t,e,r)=>{try{e=new s(e,r)}catch(t){return!1}return e.test(t)}},6308:(t,e,r)=>{const s=r(909);t.exports=(t,e)=>t.sort(((t,r)=>s(t,r,e)))},6953:(t,e,r)=>{const s=r(144);t.exports=(t,e)=>{const r=s(t,e);return r?r.version:null}},9589:(t,e,r)=>{const s=r(9718),i=r(6874),n=r(3908),a=r(1123),o=r(144),c=r(6953),l=r(7414),h=r(3007),u=r(1832),d=r(2938),p=r(6254),m=r(4493),y=r(1729),f=r(560),g=r(9970),w=r(1763),x=r(909),v=r(6308),b=r(4277),_=r(5580),E=r(7059),T=r(4641),S=r(3999),k=r(4089),R=r(5200),A=r(2111),C=r(6170),K=r(3904),L=r(8311),I=r(7638),N=r(7631),D=r(9628),O=r(270),P=r(1261),q=r(3874),Y=r(7075),F=r(5571),M=r(5342),U=r(6780),B=r(2525),V=r(5032);t.exports={parse:o,valid:c,clean:l,inc:h,diff:u,major:d,minor:p,patch:m,prerelease:y,compare:f,rcompare:g,compareLoose:w,compareBuild:x,sort:v,rsort:b,gt:_,lt:E,eq:T,neq:S,gte:k,lte:R,cmp:A,coerce:C,Comparator:K,Range:L,satisfies:I,toComparators:N,maxSatisfying:D,minSatisfying:O,minVersion:P,validRange:q,outside:Y,gtr:F,ltr:M,intersects:U,simplifyRange:B,subset:V,SemVer:n,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},6874:t=>{const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7272:t=>{const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=e},1123:t=>{const e=/^[0-9]+$/,r=(t,r)=>{const s=e.test(t),i=e.test(r);return s&&i&&(t=+t,r=+r),t===r?0:s&&!i?-1:i&&!s?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},8794:t=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(t){const e=this.map.get(t);return void 0===e?void 0:(this.map.delete(t),this.map.set(t,e),e)}delete(t){return this.map.delete(t)}set(t,e){if(!this.delete(t)&&void 0!==e){if(this.map.size>=this.max){const t=this.map.keys().next().value;this.delete(t)}this.map.set(t,e)}return this}}},8587:t=>{const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},9718:(t,e,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:n}=r(6874),a=r(7272),o=(e=t.exports={}).re=[],c=e.safeRe=[],l=e.src=[],h=e.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",n],[d,i]],m=(t,e,r)=>{const s=(t=>{for(const[e,r]of p)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=u++;a(t,i,e),h[t]=i,l[i]=e,o[i]=new RegExp(e,r?"g":void 0),c[i]=new RegExp(s,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${l[h.NUMERICIDENTIFIER]})\\.(${l[h.NUMERICIDENTIFIER]})\\.(${l[h.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${l[h.NUMERICIDENTIFIERLOOSE]})\\.(${l[h.NUMERICIDENTIFIERLOOSE]})\\.(${l[h.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${l[h.NUMERICIDENTIFIER]}|${l[h.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${l[h.NUMERICIDENTIFIERLOOSE]}|${l[h.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${l[h.PRERELEASEIDENTIFIER]}(?:\\.${l[h.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${l[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[h.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${l[h.BUILDIDENTIFIER]}(?:\\.${l[h.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${l[h.MAINVERSION]}${l[h.PRERELEASE]}?${l[h.BUILD]}?`),m("FULL",`^${l[h.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${l[h.MAINVERSIONLOOSE]}${l[h.PRERELEASELOOSE]}?${l[h.BUILD]}?`),m("LOOSE",`^${l[h.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${l[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${l[h.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${l[h.XRANGEIDENTIFIER]})(?:\\.(${l[h.XRANGEIDENTIFIER]})(?:\\.(${l[h.XRANGEIDENTIFIER]})(?:${l[h.PRERELEASE]})?${l[h.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${l[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[h.XRANGEIDENTIFIERLOOSE]})(?:${l[h.PRERELEASELOOSE]})?${l[h.BUILD]}?)?)?`),m("XRANGE",`^${l[h.GTLT]}\\s*${l[h.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${l[h.GTLT]}\\s*${l[h.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),m("COERCE",`${l[h.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",l[h.COERCEPLAIN]+`(?:${l[h.PRERELEASE]})?`+`(?:${l[h.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",l[h.COERCE],!0),m("COERCERTLFULL",l[h.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${l[h.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",m("TILDE",`^${l[h.LONETILDE]}${l[h.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${l[h.LONETILDE]}${l[h.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${l[h.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",m("CARET",`^${l[h.LONECARET]}${l[h.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${l[h.LONECARET]}${l[h.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${l[h.GTLT]}\\s*(${l[h.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${l[h.GTLT]}\\s*(${l[h.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${l[h.GTLT]}\\s*(${l[h.LOOSEPLAIN]}|${l[h.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${l[h.XRANGEPLAIN]})\\s+-\\s+(${l[h.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${l[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[h.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5571:(t,e,r)=>{const s=r(7075);t.exports=(t,e,r)=>s(t,e,">",r)},6780:(t,e,r)=>{const s=r(8311);t.exports=(t,e,r)=>(t=new s(t,r),e=new s(e,r),t.intersects(e,r))},5342:(t,e,r)=>{const s=r(7075);t.exports=(t,e,r)=>s(t,e,"<",r)},9628:(t,e,r)=>{const s=r(3908),i=r(8311);t.exports=(t,e,r)=>{let n=null,a=null,o=null;try{o=new i(e,r)}catch(t){return null}return t.forEach((t=>{o.test(t)&&(n&&-1!==a.compare(t)||(n=t,a=new s(n,r)))})),n}},270:(t,e,r)=>{const s=r(3908),i=r(8311);t.exports=(t,e,r)=>{let n=null,a=null,o=null;try{o=new i(e,r)}catch(t){return null}return t.forEach((t=>{o.test(t)&&(n&&1!==a.compare(t)||(n=t,a=new s(n,r)))})),n}},1261:(t,e,r)=>{const s=r(3908),i=r(8311),n=r(5580);t.exports=(t,e)=>{t=new i(t,e);let r=new s("0.0.0");if(t.test(r))return r;if(r=new s("0.0.0-0"),t.test(r))return r;r=null;for(let e=0;e<t.set.length;++e){const i=t.set[e];let a=null;i.forEach((t=>{const e=new s(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":a&&!n(e,a)||(a=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!a||r&&!n(r,a)||(r=a)}return r&&t.test(r)?r:null}},7075:(t,e,r)=>{const s=r(3908),i=r(3904),{ANY:n}=i,a=r(8311),o=r(7638),c=r(5580),l=r(7059),h=r(5200),u=r(4089);t.exports=(t,e,r,d)=>{let p,m,y,f,g;switch(t=new s(t,d),e=new a(e,d),r){case">":p=c,m=h,y=l,f=">",g=">=";break;case"<":p=l,m=u,y=c,f="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(t,e,d))return!1;for(let r=0;r<e.set.length;++r){const s=e.set[r];let a=null,o=null;if(s.forEach((t=>{t.semver===n&&(t=new i(">=0.0.0")),a=a||t,o=o||t,p(t.semver,a.semver,d)?a=t:y(t.semver,o.semver,d)&&(o=t)})),a.operator===f||a.operator===g)return!1;if((!o.operator||o.operator===f)&&m(t,o.semver))return!1;if(o.operator===g&&y(t,o.semver))return!1}return!0}},2525:(t,e,r)=>{const s=r(7638),i=r(560);t.exports=(t,e,r)=>{const n=[];let a=null,o=null;const c=t.sort(((t,e)=>i(t,e,r)));for(const t of c)s(t,e,r)?(o=t,a||(a=t)):(o&&n.push([a,o]),o=null,a=null);a&&n.push([a,null]);const l=[];for(const[t,e]of n)t===e?l.push(t):e||t!==c[0]?e?t===c[0]?l.push(`<=${e}`):l.push(`${t} - ${e}`):l.push(`>=${t}`):l.push("*");const h=l.join(" || "),u="string"==typeof e.raw?e.raw:String(e);return h.length<u.length?h:e}},5032:(t,e,r)=>{const s=r(8311),i=r(3904),{ANY:n}=i,a=r(7638),o=r(560),c=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],h=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===n){if(1===e.length&&e[0].semver===n)return!0;t=r.includePrerelease?c:l}if(1===e.length&&e[0].semver===n){if(r.includePrerelease)return!0;e=l}const s=new Set;let i,h,p,m,y,f,g;for(const e of t)">"===e.operator||">="===e.operator?i=u(i,e,r):"<"===e.operator||"<="===e.operator?h=d(h,e,r):s.add(e.semver);if(s.size>1)return null;if(i&&h){if(p=o(i.semver,h.semver,r),p>0)return null;if(0===p&&(">="!==i.operator||"<="!==h.operator))return null}for(const t of s){if(i&&!a(t,String(i),r))return null;if(h&&!a(t,String(h),r))return null;for(const s of e)if(!a(t,String(s),r))return!1;return!0}let w=!(!h||r.includePrerelease||!h.semver.prerelease.length)&&h.semver,x=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;w&&1===w.prerelease.length&&"<"===h.operator&&0===w.prerelease[0]&&(w=!1);for(const t of e){if(g=g||">"===t.operator||">="===t.operator,f=f||"<"===t.operator||"<="===t.operator,i)if(x&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===x.major&&t.semver.minor===x.minor&&t.semver.patch===x.patch&&(x=!1),">"===t.operator||">="===t.operator){if(m=u(i,t,r),m===t&&m!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(t),r))return!1;if(h)if(w&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch&&(w=!1),"<"===t.operator||"<="===t.operator){if(y=d(h,t,r),y===t&&y!==h)return!1}else if("<="===h.operator&&!a(h.semver,String(t),r))return!1;if(!t.operator&&(h||i)&&0!==p)return!1}return!(i&&f&&!h&&0!==p||h&&g&&!i&&0!==p||x||w)},u=(t,e,r)=>{if(!t)return e;const s=o(t.semver,e.semver,r);return s>0?t:s<0||">"===e.operator&&">="===t.operator?e:t},d=(t,e,r)=>{if(!t)return e;const s=o(t.semver,e.semver,r);return s<0?t:s>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>{if(t===e)return!0;t=new s(t,r),e=new s(e,r);let i=!1;t:for(const s of t.set){for(const t of e.set){const e=h(s,t,r);if(i=i||null!==e,e)continue t}if(i)return!1}return!0}},7631:(t,e,r)=>{const s=r(8311);t.exports=(t,e)=>new s(t,e).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")))},3874:(t,e,r)=>{const s=r(8311);t.exports=(t,e)=>{try{return new s(t,e).range||"*"}catch(t){return null}}},8965:(t,e,r)=>{r.d(e,{A:()=>n});const s=new Set(["loc","range","comments","isEmpty"]);function i(){}i.ignoredProperties=s;const n=i},8156:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>R});var i=r(4687),n=r(1815),a=r(8965),o=r(7671),c=r(1410),l=r(4242),h=r(1071),u=r(3927),d=r(466),p=r(7540),m=r(9060),y=t([n,u,d,p]);[n,u,d,p]=y.then?(await y)():y;const f="slang-solidity",g="solidity-parse",w="slang-ast",x="solidity-ast",v=[{linguistLanguageId:237469032,name:"Solidity",aceMode:"text",tmScope:"source.solidity",extensions:[".sol"],parsers:[f,g],vscodeLanguageIds:["solidity"]}],b=Object.assign({astFormat:x,parse:l.A},o.A),_={[f]:{astFormat:w,parse:u.A,locStart:m.z,locEnd:m.I},[g]:b},E=t=>"string"!=typeof t&&void 0!==t&&t.kind&&!(0,p.C)(t),T={canAttachComment:t=>"string"==typeof t.type&&"BlockComment"!==t.type&&"LineComment"!==t.type,handleComments:{ownLine:i.bd,endOfLine:i.rN,remaining:i.F7},isBlockComment:i.tN,massageAstNode:a.A,print:h.A,printComment:i.X5},S={canAttachComment:E,handleComments:n.X,isBlockComment:p.t,massageAstNode:a.A,print:d.A,printComment:n.o},k={bracketSpacing:!1,tabWidth:4},R={languages:v,parsers:_,printers:{[w]:S,[x]:T},options:c.A,defaultOptions:k};s()}catch(t){s(t)}}))},1410:(t,e,r)=>{r.d(e,{A:()=>n});const s="Global",i="Common",n={printWidth:{category:s,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},tabWidth:{type:"int",category:s,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{category:s,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},bracketSpacing:{category:i,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:i,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},experimentalTernaries:{category:"JavaScript",type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},compiler:{category:"Solidity",type:"string",description:"The Solidity compiler version to help us avoid critical errors in format for the wrong version."}}},7611:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{X:()=>l});var i=r(769),n=t([i]);function a(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,l={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,ast:s,isLastComment:n};return i.A.some((t=>t(l)))}function o(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,l={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,ast:s,isLastComment:n};return i.A.some((t=>t(l)))}function c(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,l={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,ast:s,isLastComment:n};return i.A.some((t=>t(l)))}i=(n.then?(await n)():n)[0];const l={ownLine:a,endOfLine:o,remaining:c};s()}catch(h){s(h)}}))},9111:(t,e,r)=>{r.d(e,{A:()=>a});var s=r(838);const{addDanglingComment:i,addLeadingComment:n}=s.util;function a(t,e){0===t.items.length?i(t,e,!1):n(t.items[0],e)}},7085:(t,e,r)=>{r.d(e,{A:()=>a});var s=r(838);const{addDanglingComment:i,addTrailingComment:n}=s.util;function a(t,e){0===t.items.length?i(t,e,!1):n(t.items[t.items.length-1],e)}},2038:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(4675),n=r(9111),a=r(7085),o=t([i]);function c({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.Block&&((null==t?void 0:t.kind)===i.q3.Statements?((0,a.A)(t,s),!0):(null==r?void 0:r.kind)===i.q3.Statements&&((0,n.A)(r,s),!0))}i=(o.then?(await o)():o)[0],s()}catch(l){s(l)}}))},4597:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(4675),n=r(838),a=r(9060),o=r(7085),c=t([i]);i=(c.then?(await c)():c)[0];const{addLeadingComment:l,addTrailingComment:h}=n.util;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){if((null==r?void 0:r.kind)!==i.q3.ContractDefinition)return!1;const u=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c));return(null==s?void 0:s.kind)===i.q3.InheritanceSpecifier||(null==s?void 0:s.kind)===i.q3.ContractMembers&&"{"!==u?(l(r,c),!0):(null==e?void 0:e.kind)===i.q3.ContractMembers?((0,o.A)(e,c),!0):"{"===u&&(null==e?void 0:e.kind)===i.q3.InheritanceSpecifier&&e.types.items.length>0&&(h(e.types.items[e.types.items.length-1],c),!0)}s()}catch(d){s(d)}}))},7265:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(4675),n=r(838),a=r(9111),o=t([i]);i=(o.then?(await o)():o)[0];const{addLeadingComment:c}=n.util;function l({enclosingNode:t,followingNode:e,comment:r}){return!((null==t?void 0:t.kind)!==i.q3.ElseBranch||!e||e!==t.body||e.variant.kind!==i.q3.IfStatement||(e.variant.body.variant.kind===i.q3.Block?(0,a.A)(e.variant.body.variant.statements,r):c(e.variant.body.variant,r),0))}s()}catch(h){s(h)}}))},8534:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(4675),n=r(838),a=r(9060),o=r(9111),c=t([i]);i=(c.then?(await c)():c)[0];const{addLeadingComment:l,addTrailingComment:h}=n.util;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){return!((null==r?void 0:r.kind)!==i.q3.IfStatement||!s)&&(")"===n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c))?(h(e,c),!0):e===r.body&&s===r.elseBranch?(h(e.variant,c),!0):s.kind===i.q3.IfStatement?(s.body.variant.kind===i.q3.Block?(0,o.A)(s.body.variant.statements,c):l(s.body.variant,c),!0):r.body===s&&(s.variant.kind===i.q3.Block?(0,o.A)(s.variant.statements,c):l(s,c),!0))}s()}catch(d){s(d)}}))},6318:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(4675),n=r(838),a=r(9060),o=r(9111),c=r(7085),l=t([i]);function h({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:l}){if((null==r?void 0:r.kind)!==i.q3.InterfaceDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(l));return(null==e?void 0:e.kind)===i.q3.InterfaceMembers?((0,c.A)(e,l),!0):"{"===h&&(null==s?void 0:s.kind)===i.q3.InterfaceMembers&&((0,o.A)(s,l),!0)}i=(l.then?(await l)():l)[0],s()}catch(u){s(u)}}))},6718:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(4675),n=r(838),a=r(9060),o=r(9111),c=r(7085),l=t([i]);function h({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:l}){if((null==r?void 0:r.kind)!==i.q3.LibraryDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(l));return(null==e?void 0:e.kind)===i.q3.LibraryMembers?((0,c.A)(e,l),!0):"{"===h&&(null==s?void 0:s.kind)===i.q3.LibraryMembers&&((0,o.A)(s,l),!0)}i=(l.then?(await l)():l)[0],s()}catch(u){s(u)}}))},4923:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(4675),n=r(838),a=r(9060),o=r(9111),c=t([i]);i=(c.then?(await c)():c)[0];const{addTrailingComment:l}=n.util;function h({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){if((null==r?void 0:r.kind)!==i.q3.ModifierInvocation)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c));return(null==e?void 0:e.kind)===i.q3.IdentifierPath&&"("===h&&(null==s?void 0:s.kind)===i.q3.ArgumentsDeclaration&&s.variant.kind===i.q3.PositionalArgumentsDeclaration&&(0===s.variant.arguments.items.length?l(r,c):(0,o.A)(s.variant.arguments,c),!0)}s()}catch(u){s(u)}}))},2120:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(4675),n=r(9111),a=r(7085),o=t([i]);function c({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.ParametersDeclaration&&((null==t?void 0:t.kind)===i.q3.Parameters?((0,a.A)(t,s),!0):(null==r?void 0:r.kind)===i.q3.Parameters&&((0,n.A)(r,s),!0))}i=(o.then?(await o)():o)[0],s()}catch(l){s(l)}}))},3273:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(4675),n=r(9111),a=r(7085),o=t([i]);function c({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.PositionalArgumentsDeclaration&&((null==t?void 0:t.kind)===i.q3.PositionalArguments?((0,a.A)(t,s),!0):(null==r?void 0:r.kind)===i.q3.PositionalArguments&&((0,n.A)(r,s),!0))}i=(o.then?(await o)():o)[0],s()}catch(l){s(l)}}))},5710:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(4675),n=r(838),a=r(9060),o=r(9111),c=t([i]);i=(c.then?(await c)():c)[0];const{addLeadingComment:l,addTrailingComment:h}=n.util;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){return!((null==r?void 0:r.kind)!==i.q3.WhileStatement||!s)&&(")"===n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c))||r.condition===e?(h(e,c),!0):r.body===s&&(s.variant.kind===i.q3.Block?(0,o.A)(s.variant.statements,c):l(s,c),!0))}s()}catch(d){s(d)}}))},543:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(4675),n=r(838),a=t([i]);i=(a.then?(await a)():a)[0];const{addLeadingComment:o,addDanglingComment:c}=n.util;function l({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.YulBlock&&((null==t?void 0:t.kind)===i.q3.YulStatements&&0===t.items.length?(c(t,s,!1),!0):(null==r?void 0:r.kind)===i.q3.YulStatements&&r.items.length>0&&(o(r.items[0],s),!0))}s()}catch(h){s(h)}}))},769:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>f});var i=r(2038),n=r(4597),a=r(7265),o=r(8534),c=r(6318),l=r(6718),h=r(4923),u=r(2120),d=r(3273),p=r(5710),m=r(543),y=t([i,n,a,o,c,l,h,u,d,p,m]);[i,n,a,o,c,l,h,u,d,p,m]=y.then?(await y)():y;const f=[i.A,n.A,a.A,o.A,c.A,l.A,h.A,u.A,d.A,p.A,m.A];s()}catch(t){s(t)}}))},1815:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{X:()=>i.X,o:()=>n.X});var i=r(7611),n=r(7431),a=t([i,n]);[i,n]=a.then?(await a)():a,s()}catch(t){s(t)}}))},7431:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{X:()=>a});var i=r(7540),n=t([i]);function a(t){const e=t.getNode();if((0,i.C)(e))return e.print();throw new Error(`Not a comment: ${JSON.stringify(e)}`)}i=(n.then?(await n)():n)[0],s()}catch(o){s(o)}}))},1475:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Y:()=>c});var i=r(4675),n=r(801),a=r(2291),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.AbicoderPragma;const e=(0,n.sQ)(t);this.version=new a.g(t.version),this.comments=e.comments,this.loc=e.loc}print(t,e){return["abicoder ",t.call(e,"version")]}}s()}catch(t){s(t)}}))},2054:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>u});var i=r(4675),n=r(4209),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["%"]);class u{constructor(t,e){this.kind=i.q3.AdditiveExpression;let r=(0,o.sQ)(t);this.leftOperand=new c.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,e),r=(0,o.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc,this.leftOperand=h(this.leftOperand),this.rightOperand=h(this.rightOperand)}print(t,e,r){return(0,n.W)(this,t,e,r)}}s()}catch(t){s(t)}}))},7614:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>c});var i=r(4675),n=r(801),a=r(1e3),o=t([i,n]);[i,n]=o.then?(await o)():o;class c{constructor(t){var e;this.kind=i.q3.AddressType;const r=(0,n.sQ)(t);this.payableKeyword=null===(e=t.payableKeyword)||void 0===e?void 0:e.unparse(),this.comments=r.comments,this.loc=r.loc}print(){return(0,a.I)(" ",["address",this.payableKeyword])}}s()}catch(t){s(t)}}))},2745:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>l});var i=r(4675),n=r(8409),a=r(801),o=r(8926),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.AndExpression;let r=(0,a.sQ)(t);this.leftOperand=new o.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new o.r(t.rightOperand,e),r=(0,a.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return(0,n.a)(this,t,e,r)}}s()}catch(t){s(t)}}))},5756:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>l});var i=r(4675),n=r(801),a=r(9182),o=r(5451),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.ArgumentsDeclaration;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.PositionalArgumentsDeclaration:this.variant=new a.V(t.variant,e);break;case i.q3.NamedArgumentsDeclaration:this.variant=new o.Q(t.variant,e);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},6233:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>h});var i=r(838),n=r(4675),a=r(801),o=r(3857),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{group:l}=i.doc.builders;class h{constructor(t,e){this.kind=n.q3.ArrayExpression;let r=(0,a.sQ)(t);this.items=new o.A(t.items,e),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return l(["[",t.call(e,"items"),"]"])}}s()}catch(t){s(t)}}))},4968:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{f:()=>l});var i=r(4675),n=r(801),a=r(9979),o=r(8926),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.ArrayTypeName;let r=(0,n.sQ)(t);this.operand=new a.C(t.operand,e),t.index&&(this.index=new o.r(t.index,e)),r=(0,n.D5)(r,[this.operand,this.index]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"operand"),"[",t.call(e,"index"),"]"]}}s()}catch(t){s(t)}}))},3857:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(8926),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.ArrayValues;let r=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.r(t,e))),this.separators=t.separators.map((t=>t.unparse())),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},7041:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Y:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(3562),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.AssemblyFlags;let r=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.L(t,e))),this.separators=t.separators.map((t=>t.unparse())),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},8085:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{e:()=>c});var i=r(4675),n=r(801),a=r(7041),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.AssemblyFlagsDeclaration;let r=(0,n.sQ)(t);this.flags=new a.Y(t.flags,e),r=(0,n.D5)(r,[this.flags]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["(",t.call(e,"flags"),")"]}}s()}catch(t){s(t)}}))},7299:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{I:()=>u});var i=r(4675),n=r(801),a=r(1e3),o=r(3562),c=r(8085),l=r(2319),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;class u{constructor(t,e){this.kind=i.q3.AssemblyStatement;let r=(0,n.sQ)(t);t.label&&(this.label=new o.L(t.label,e)),t.flags&&(this.flags=new c.e(t.flags,e)),this.body=new l.M(t.body,e),r=(0,n.D5)(r,[this.label,this.flags,this.body]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.I)(" ",["assembly",t.call(e,"label"),t.call(e,"flags"),t.call(e,"body")])}}s()}catch(t){s(t)}}))},5287:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{k:()=>p});var i=r(4675),n=r(838),a=r(1376),o=r(801),c=r(8926),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{group:h,indent:u,line:d}=n.doc.builders;class p{constructor(t,e){this.kind=i.q3.AssignmentExpression;let r=(0,o.sQ)(t);this.leftOperand=new c.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,e),r=(0,o.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"leftOperand"),` ${this.operator}`,this.rightOperand.variant.kind!==i.hP.Identifier&&(0,a.D)(this.rightOperand.variant)?h(u([d,t.call(e,"rightOperand")])):[" ",t.call(e,"rightOperand")]]}}s()}catch(t){s(t)}}))},7162:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{J:()=>u});var i=r(4675),n=r(4209),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["+","-","*","/","**","<<",">>"]);class u{constructor(t,e){this.kind=i.q3.BitwiseAndExpression;let r=(0,o.sQ)(t);this.leftOperand=new c.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,e),r=(0,o.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc,this.leftOperand=h(this.leftOperand),this.rightOperand=h(this.rightOperand)}print(t,e,r){return(0,n.W)(this,t,e,r)}}s()}catch(t){s(t)}}))},7438:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{J:()=>u});var i=r(4675),n=r(4209),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["+","-","*","/","**","<<",">>","&","^"]);class u{constructor(t,e){this.kind=i.q3.BitwiseOrExpression;let r=(0,o.sQ)(t);this.leftOperand=new c.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,e),r=(0,o.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc,this.leftOperand=h(this.leftOperand),this.rightOperand=h(this.rightOperand)}print(t,e,r){return(0,n.W)(this,t,e,r)}}s()}catch(t){s(t)}}))},4654:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>u});var i=r(4675),n=r(4209),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["+","-","*","/","**","<<",">>","&"]);class u{constructor(t,e){this.kind=i.q3.BitwiseXorExpression;let r=(0,o.sQ)(t);this.leftOperand=new c.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,e),r=(0,o.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc,this.leftOperand=h(this.leftOperand),this.rightOperand=h(this.rightOperand)}print(t,e,r){return(0,n.W)(this,t,e,r)}}s()}catch(t){s(t)}}))},6511:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{e:()=>c});var i=r(4675),n=r(801),a=r(1322),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.Block;let r=(0,n.sQ)(t);this.statements=new a.$(t.statements,e),r=(0,n.D5)(r,[this.statements]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["{",t.call(e,"statements"),"}"]}}s()}catch(t){s(t)}}))},3144:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{V:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.BreakStatement;const e=(0,n.sQ)(t);this.comments=e.comments,this.loc=e.loc}print(){return"break;"}}s()}catch(t){s(t)}}))},6380:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>d});var i=r(838),n=r(4675),a=r(7578),o=r(801),c=r(316),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{line:h,softline:u}=i.doc.builders;class d{constructor(t,e){this.kind=n.q3.CallOptions;let r=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.j(t,e))),this.separators=t.separators.map((t=>t.unparse())),r=(0,o.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(t){s(t)}}))},2514:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{X:()=>l});var i=r(4675),n=r(801),a=r(8926),o=r(6380),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.CallOptionsExpression;let r=(0,n.sQ)(t);this.operand=new a.r(t.operand,e),this.options=new o.p(t.options,e),r=(0,n.D5)(r,[this.operand,this.options]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"operand"),"{",t.call(e,"options"),"}"]}}s()}catch(t){s(t)}}))},1292:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{D:()=>l});var i=r(4675),n=r(801),a=r(8152),o=r(6511),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.CatchClause;let r=(0,n.sQ)(t);t.error&&(this.error=new a.$(t.error,e)),this.body=new o.e(t.body,e),r=(0,n.D5)(r,[this.error,this.body]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["catch ",t.call(e,"error"),t.call(e,"body")]}}s()}catch(t){s(t)}}))},8152:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(2291),c=r(9002),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{group:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.CatchClauseError;let r=(0,a.sQ)(t);t.name&&(this.name=new o.g(t.name)),this.parameters=new c.Z(t.parameters,e),r=(0,a.D5)(r,[this.parameters]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"name"),h(t.call(e,"parameters"))," "]}}s()}catch(t){s(t)}}))},7259:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{m:()=>h});var i=r(838),n=r(4675),a=r(801),o=r(1292),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{join:l}=i.doc.builders;class h{constructor(t,e){this.kind=n.q3.CatchClauses;let r=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.D(t,e))),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return l(" ",t.map(e,"items"))}}s()}catch(t){s(t)}}))},1467:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{u:()=>l});var i=r(4675),n=r(8041),a=r(801),o=r(8926),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.ComparisonExpression;let r=(0,a.sQ)(t);this.leftOperand=new o.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new o.r(t.rightOperand,e),r=(0,a.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return(0,n.u)(this,t,e,r)}}s()}catch(t){s(t)}}))},6312:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{T:()=>x});var i=r(838),n=r(4675),a=r(8941),o=r(801),c=r(8926),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{group:h,hardline:u,ifBreak:d,indent:p,line:m,softline:y}=i.doc.builders;function f(t){return t.useTabs?"\t":t.tabWidth>2?" ".repeat(t.tabWidth-1):" "}function g(t,e,r,s){const i=e.getNode(2),o=i.kind===n.q3.ConditionalExpression,c=o&&i.trueExpression.variant===t,l="string"!=typeof t.falseExpression.variant&&(t.falseExpression.variant.kind===n.q3.TupleExpression||t.falseExpression.variant.kind===n.q3.ConditionalExpression),g=e.call(r,"operand"),w=h(["string"!=typeof t.operand.variant&&t.operand.variant.kind===n.q3.TupleExpression?g:d(["(",(0,a.K)(g),")"],g)," ?"]),x=p([c?u:m,e.call(r,"trueExpression")]),v=h([w,x],{id:Symbol("Slang.ConditionalExpression.trueExpression")}),b=e.call(r,"falseExpression"),_=[o?u:m,":",l?[" ",b]:d([f(s),p(b)],[" ",b],{groupId:v.id})],E=h([v,_]);return i.kind===n.q3.VariableDeclarationValue?h(p([y,E])):E}function w(t,e){return h([t.call(e,"operand"),p([t.getNode(2).kind===n.q3.ConditionalExpression?u:m,"? ",t.call(e,"trueExpression"),m,": ",t.call(e,"falseExpression")])])}class x{constructor(t,e){this.kind=n.q3.ConditionalExpression;let r=(0,o.sQ)(t);if(this.operand=new c.r(t.operand,e),this.trueExpression=new c.r(t.trueExpression,e),this.falseExpression=new c.r(t.falseExpression,e),r=(0,o.D5)(r,[this.operand,this.trueExpression,this.falseExpression]),this.comments=r.comments,this.loc=r.loc,e.experimentalTernaries){const t=this.operand.loc;for(;"string"!=typeof this.operand.variant&&this.operand.variant.kind===n.q3.TupleExpression&&1===this.operand.variant.items.items.length&&("string"==typeof this.operand.variant.items.items[0].expression.variant||this.operand.variant.items.items[0].expression.variant.kind!==n.q3.ConditionalExpression);)this.operand=this.operand.variant.items.items[0].expression;this.operand.loc=t}}print(t,e,r){return r.experimentalTernaries?g(this,t,e,r):w(t,e)}}s()}catch(v){s(v)}}))},9885:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{y:()=>h});var i=r(4675),n=r(801),a=r(9979),o=r(2291),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;class h{constructor(t,e){this.kind=i.q3.ConstantDefinition;let r=(0,n.sQ)(t);this.typeName=new a.C(t.typeName,e),this.name=new o.g(t.name),this.value=new c.r(t.value,e),r=(0,n.D5)(r,[this.typeName,this.value]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"typeName")," constant ",t.call(e,"name")," = ",t.call(e,"value"),";"]}}s()}catch(t){s(t)}}))},4192:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{F:()=>c});var i=r(4675),n=r(801),a=r(1699),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.ConstructorAttribute;let r=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.u(t.variant,e),r=(0,n.D5)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},2567:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{O:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(4192),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.ConstructorAttributes;let r=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.F(t,e))),r=(0,o.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},5959:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{s:()=>u});var i=r(4675),n=r(304),a=r(801),o=r(9002),c=r(2567),l=r(6511),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;class u{constructor(t,e){this.kind=i.q3.ConstructorDefinition;let r=(0,a.sQ)(t);this.parameters=new o.Z(t.parameters,e),this.attributes=new c.O(t.attributes,e),this.body=new l.e(t.body,e),r=(0,a.D5)(r,[this.parameters,this.attributes,this.body]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,n.c)("constructor",this,t,e)}}s()}catch(t){s(t)}}))},9892:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.ContinueStatement;const e=(0,n.sQ)(t);this.comments=e.comments,this.loc=e.loc}print(){return"continue;"}}s()}catch(t){s(t)}}))},2795:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{e:()=>m});var i=r(838),n=r(9589),a=r(4675),o=r(801),c=r(2291),l=r(3892),h=r(5907),u=t([a,o,c,l,h]);[a,o,c,l,h]=u.then?(await u)():u;const{group:d,line:p}=i.doc.builders;class m{constructor(t,e){var r;this.kind=a.q3.ContractDefinition;let s=(0,o.sQ)(t);this.abstractKeyword=null===(r=t.abstractKeyword)||void 0===r?void 0:r.unparse(),this.name=new c.g(t.name),t.inheritance&&(this.inheritance=new l.R(t.inheritance,e)),this.members=new h.I(t.members,e),s=(0,o.D5)(s,[this.inheritance,this.members]),this.comments=s.comments,this.loc=s.loc,this.cleanModifierInvocationArguments(e)}cleanModifierInvocationArguments(t){const e=(0,n.coerce)(t.compiler);if(e&&!(0,n.satisfies)(e,">=0.5.0"))for(const t of this.members.items)t.variant.kind===a.q3.FunctionDefinition&&t.variant.name.variant.value!==this.name.value&&t.variant.cleanModifierInvocationArguments()}print(t,e){return[d([this.abstractKeyword?"abstract ":"","contract ",t.call(e,"name"),this.inheritance?[" ",t.call(e,"inheritance")]:p,"{"]),t.call(e,"members"),"}"]}}s()}catch(t){s(t)}}))},4468:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{B:()=>v});var i=r(4675),n=r(801),a=r(33),o=r(7281),c=r(5959),l=r(9394),h=r(9640),u=r(6871),d=r(1204),p=r(8324),m=r(3820),y=r(4351),f=r(918),g=r(897),w=r(7260),x=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]=x.then?(await x)():x;class v{constructor(t,e){this.kind=i.q3.ContractMember;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.UsingDirective:this.variant=new a.K(t.variant,e);break;case i.q3.FunctionDefinition:this.variant=new o.W(t.variant,e);break;case i.q3.ConstructorDefinition:this.variant=new c.s(t.variant,e);break;case i.q3.ReceiveFunctionDefinition:this.variant=new l.p(t.variant,e);break;case i.q3.FallbackFunctionDefinition:this.variant=new h.o(t.variant,e);break;case i.q3.UnnamedFunctionDefinition:this.variant=new u.u(t.variant,e);break;case i.q3.ModifierDefinition:this.variant=new d.z(t.variant,e);break;case i.q3.StructDefinition:this.variant=new p.Z(t.variant,e);break;case i.q3.EnumDefinition:this.variant=new m.P(t.variant);break;case i.q3.EventDefinition:this.variant=new y.w(t.variant,e);break;case i.q3.StateVariableDefinition:this.variant=new f.z(t.variant,e);break;case i.q3.ErrorDefinition:this.variant=new g.e(t.variant,e);break;case i.q3.UserDefinedValueTypeDefinition:this.variant=new w.z(t.variant);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},5907:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{I:()=>p});var i=r(838),n=r(4675),a=r(8941),o=r(7134),c=r(1041),l=r(801),h=r(4468),u=t([n,o,c,l,h]);[n,o,c,l,h]=u.then?(await u)():u;const{hardline:d}=i.doc.builders;class p{constructor(t,e){this.kind=n.q3.ContractMembers;let r=(0,l.sQ)(t,!0);this.items=t.items.map((t=>new h.B(t,e))),r=(0,l.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return 0===this.items.length&&0===this.comments.length?"":(0,a.K)([(0,c.V)(t,e,r),(0,o.i)(t)],{firstSeparator:d,grouped:!1})}}s()}catch(t){s(t)}}))},1390:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(4675),n=r(801),a=r(1e3),o=r(6603),c=t([i,n,o]);[i,n,o]=c.then?(await c)():c;class l{constructor(t){this.kind=i.q3.DecimalNumberExpression;let e=(0,n.sQ)(t);this.literal=t.literal.unparse(),t.unit&&(this.unit=new o.c(t.unit)),e=(0,n.D5)(e,[this.unit]),this.comments=e.comments,this.loc=e.loc}print(t,e){return(0,a.I)(" ",[this.literal,t.call(e,"unit")])}}s()}catch(t){s(t)}}))},8943:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{I:()=>m});var i=r(838),n=r(4675),a=r(8941),o=r(801),c=r(5211),l=r(8926),h=t([n,o,c,l]);[n,o,c,l]=h.then?(await h)():h;const{group:u,indent:d,line:p}=i.doc.builders;class m{constructor(t,e){this.kind=n.q3.DoWhileStatement;let r=(0,o.sQ)(t);this.body=new c.W(t.body,e),this.condition=new l.r(t.condition,e),r=(0,o.D5)(r,[this.body,this.condition]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["do",this.body.variant.kind===n.q3.Block?[" ",t.call(e,"body")," "]:u([d([p,t.call(e,"body")]),p]),"while (",(0,a.K)(t.call(e,"condition")),");"]}}s()}catch(t){s(t)}}))},3198:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>c});var i=r(4675),n=r(801),a=r(7614),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.ElementaryType;let e=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.R(t.variant),e=(0,n.D5)(e,"string"==typeof this.variant?[]:[this.variant]),this.comments=e.comments,this.loc=e.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},3117:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{O:()=>m});var i=r(838),n=r(4675),a=r(6563),o=r(801),c=r(5211),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{group:h,indent:u,line:d}=i.doc.builders,p=(0,a.n)([n.q3.Block,n.q3.IfStatement]);class m{constructor(t,e){this.kind=n.q3.ElseBranch;let r=(0,o.sQ)(t);this.body=new c.W(t.body,e),r=(0,o.D5)(r,[this.body]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["else",p(this.body.variant)?[" ",t.call(e,"body")]:h(u([d,t.call(e,"body")]))]}}s()}catch(t){s(t)}}))},3406:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{x:()=>l});var i=r(4675),n=r(801),a=r(2912),o=r(5756),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.EmitStatement;let r=(0,n.sQ)(t);this.event=new a.D(t.event),this.arguments=new o.Z(t.arguments,e),r=(0,n.D5)(r,[this.event,this.arguments]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["emit ",t.call(e,"event"),t.call(e,"arguments"),";"]}}s()}catch(t){s(t)}}))},3820:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{P:()=>l});var i=r(4675),n=r(801),a=r(2291),o=r(2238),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t){this.kind=i.q3.EnumDefinition;let e=(0,n.sQ)(t);this.name=new a.g(t.name),this.members=new o.P(t.members),e=(0,n.D5)(e,[this.members]),this.comments=e.comments,this.loc=e.loc}print(t,e){return["enum ",t.call(e,"name")," {",t.call(e,"members"),"}"]}}s()}catch(t){s(t)}}))},2238:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{P:()=>u});var i=r(838),n=r(4675),a=r(7578),o=r(801),c=r(2291),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{hardline:h}=i.doc.builders;class u{constructor(t){this.kind=n.q3.EnumMembers;const e=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.g(t))),this.separators=t.separators.map((t=>t.unparse())),this.comments=e.comments,this.loc=e.loc}print(t,e){return(0,a.J)(t.map(e,"items"),{firstSeparator:h})}}s()}catch(t){s(t)}}))},6442:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{t:()=>l});var i=r(4675),n=r(8041),a=r(801),o=r(8926),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.EqualityExpression;let r=(0,a.sQ)(t);this.leftOperand=new o.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new o.r(t.rightOperand,e),r=(0,a.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return(0,n.u)(this,t,e,r)}}s()}catch(t){s(t)}}))},897:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{e:()=>l});var i=r(4675),n=r(801),a=r(2291),o=r(1142),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.ErrorDefinition;let r=(0,n.sQ)(t);this.name=new a.g(t.name),this.members=new o.$(t.members,e),r=(0,n.D5)(r,[this.members]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["error ",t.call(e,"name"),t.call(e,"members"),";"]}}s()}catch(t){s(t)}}))},7105:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{m:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(9979),c=r(2291),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e){this.kind=i.q3.ErrorParameter;let r=(0,n.sQ)(t);this.typeName=new o.C(t.typeName,e),t.name&&(this.name=new c.g(t.name)),r=(0,n.D5)(r,[this.typeName]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.I)(" ",[t.call(e,"typeName"),t.call(e,"name")])}}s()}catch(t){s(t)}}))},2048:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{h:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(7105),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.ErrorParameters;let r=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.m(t,e))),this.separators=t.separators.map((t=>t.unparse())),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return this.items.length>0?(0,n.J)(t.map(e,"items")):""}}s()}catch(t){s(t)}}))},1142:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>c});var i=r(4675),n=r(801),a=r(2048),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.ErrorParametersDeclaration;let r=(0,n.sQ)(t);this.parameters=new a.h(t.parameters,e),r=(0,n.D5)(r,[this.parameters]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}}))},4351:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{w:()=>l});var i=r(4675),n=r(801),a=r(2828),o=r(2291),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){var r;this.kind=i.q3.EventDefinition;let s=(0,n.sQ)(t);this.name=new o.g(t.name),this.parameters=new a.$(t.parameters,e),this.anonymousKeyword=null===(r=t.anonymousKeyword)||void 0===r?void 0:r.unparse(),s=(0,n.D5)(s,[this.parameters]),this.comments=s.comments,this.loc=s.loc}print(t,e){return["event ",t.call(e,"name"),t.call(e,"parameters"),this.anonymousKeyword?" anonymous":"",";"]}}s()}catch(t){s(t)}}))},4027:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Q:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(9979),c=r(2291),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e){var r;this.kind=i.q3.EventParameter;let s=(0,n.sQ)(t);this.typeName=new o.C(t.typeName,e),this.indexedKeyword=null===(r=t.indexedKeyword)||void 0===r?void 0:r.unparse(),t.name&&(this.name=new c.g(t.name)),s=(0,n.D5)(s,[this.typeName]),this.comments=s.comments,this.loc=s.loc}print(t,e){return(0,a.I)(" ",[t.call(e,"typeName"),this.indexedKeyword,t.call(e,"name")])}}s()}catch(t){s(t)}}))},170:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(4027),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.EventParameters;let r=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.Q(t,e))),this.separators=t.separators.map((t=>t.unparse())),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return this.items.length>0?(0,n.J)(t.map(e,"items")):""}}s()}catch(t){s(t)}}))},2828:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>c});var i=r(4675),n=r(801),a=r(170),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.EventParametersDeclaration;let r=(0,n.sQ)(t);this.parameters=new a.p(t.parameters,e),r=(0,n.D5)(r,[this.parameters]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}}))},2254:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>l});var i=r(4675),n=r(801),a=r(3562),o=r(2291),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.ExperimentalFeature;let r=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?new o.g(t.variant):new a.L(t.variant,e),r=(0,n.D5)(r,this.variant.kind===i.hP.Identifier?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},6162:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>c});var i=r(4675),n=r(801),a=r(2254),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.ExperimentalPragma;let r=(0,n.sQ)(t);this.feature=new a.R(t.feature,e),r=(0,n.D5)(r,[this.feature]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["experimental ",t.call(e,"feature")]}}s()}catch(t){s(t)}}))},6121:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>y});var i=r(838),n=r(4675),a=r(1059),o=r(142),c=r(801),l=r(8926),h=t([n,a,o,c,l]);[n,a,o,c,l]=h.then?(await h)():h;const{group:u,indent:d}=i.doc.builders,p=(0,o.H)(["**"]),m=(0,a.f)((()=>t=>u(t)),(()=>t=>d(t)));class y{constructor(t,e){this.kind=n.q3.ExponentiationExpression;let r=(0,c.sQ)(t);this.leftOperand=new l.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new l.r(t.rightOperand,e),r=(0,c.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc,this.rightOperand=p(this.rightOperand),this.leftOperand=p(this.leftOperand)}print(t,e,r){return m(this,t,e,r)}}s()}catch(t){s(t)}}))},8926:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>O});var i=r(4675),n=r(801),a=r(5287),o=r(6312),c=r(8947),l=r(2745),h=r(6442),u=r(1467),d=r(7438),p=r(4654),m=r(7162),y=r(4852),f=r(2054),g=r(8968),w=r(6121),x=r(4109),v=r(8802),b=r(9894),_=r(2514),E=r(4138),T=r(4882),S=r(6010),k=r(4274),R=r(86),A=r(6233),C=r(9804),K=r(1390),L=r(9511),I=r(3198),N=r(2291),D=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T,S,k,R,A,C,K,L,I,N]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T,S,k,R,A,C,K,L,I,N]=D.then?(await D)():D;class O{constructor(t,e){this.kind=i.q3.Expression;let r=(0,n.sQ)(t);if(t.variant instanceof i.xo)this.variant=new N.g(t.variant);else switch(t.variant.cst.kind){case i.q3.AssignmentExpression:this.variant=new a.k(t.variant,e);break;case i.q3.ConditionalExpression:this.variant=new o.T(t.variant,e);break;case i.q3.OrExpression:this.variant=new c.K(t.variant,e);break;case i.q3.AndExpression:this.variant=new l.g(t.variant,e);break;case i.q3.EqualityExpression:this.variant=new h.t(t.variant,e);break;case i.q3.ComparisonExpression:this.variant=new u.u(t.variant,e);break;case i.q3.BitwiseOrExpression:this.variant=new d.J(t.variant,e);break;case i.q3.BitwiseXorExpression:this.variant=new p.R(t.variant,e);break;case i.q3.BitwiseAndExpression:this.variant=new m.J(t.variant,e);break;case i.q3.ShiftExpression:this.variant=new y.Z(t.variant,e);break;case i.q3.AdditiveExpression:this.variant=new f.z(t.variant,e);break;case i.q3.MultiplicativeExpression:this.variant=new g.d(t.variant,e);break;case i.q3.ExponentiationExpression:this.variant=new w.g(t.variant,e);break;case i.q3.PostfixExpression:this.variant=new x._(t.variant,e);break;case i.q3.PrefixExpression:this.variant=new v.B(t.variant,e);break;case i.q3.FunctionCallExpression:this.variant=new b.j(t.variant,e);break;case i.q3.CallOptionsExpression:this.variant=new _.X(t.variant,e);break;case i.q3.MemberAccessExpression:this.variant=new E.n(t.variant,e);break;case i.q3.IndexAccessExpression:this.variant=new T.z(t.variant,e);break;case i.q3.NewExpression:this.variant=new S.Z(t.variant,e);break;case i.q3.TupleExpression:this.variant=new k.b(t.variant,e);break;case i.q3.TypeExpression:this.variant=new R.j(t.variant,e);break;case i.q3.ArrayExpression:this.variant=new A.g(t.variant,e);break;case i.q3.HexNumberExpression:this.variant=new C.$(t.variant);break;case i.q3.DecimalNumberExpression:this.variant=new K.j(t.variant);break;case i.q3.StringExpression:this.variant=new L.O(t.variant,e);break;case i.q3.ElementaryType:this.variant=new I.$(t.variant);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,this.variant.kind===i.hP.Identifier?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},6157:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Q:()=>c});var i=r(4675),n=r(801),a=r(8926),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.ExpressionStatement;let r=(0,n.sQ)(t);this.expression=new a.r(t.expression,e),r=(0,n.D5)(r,[this.expression]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"expression"),";"]}}s()}catch(t){s(t)}}))},7532:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{h:()=>l});var i=r(4675),n=r(801),a=r(1699),o=r(7178),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.FallbackFunctionAttribute;let r=(0,n.sQ)(t);if(t.variant instanceof i.xo)this.variant=t.variant.unparse();else switch(t.variant.cst.kind){case i.q3.ModifierInvocation:this.variant=new a.u(t.variant,e);break;case i.q3.OverrideSpecifier:this.variant=new o.l(t.variant);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},7435:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(7532),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.FallbackFunctionAttributes;let r=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.h(t,e))),r=(0,o.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},9640:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{o:()=>d});var i=r(4675),n=r(304),a=r(801),o=r(9002),c=r(7435),l=r(7181),h=r(1580),u=t([i,a,o,c,l,h]);[i,a,o,c,l,h]=u.then?(await u)():u;class d{constructor(t,e){this.kind=i.q3.FallbackFunctionDefinition;let r=(0,a.sQ)(t);this.parameters=new o.Z(t.parameters,e),this.attributes=new c.i(t.attributes,e),t.returns&&(this.returns=new l.I(t.returns,e)),this.body=new h.r(t.body,e),r=(0,a.D5)(r,[this.parameters,this.attributes,this.returns,this.body]),this.comments=r.comments,this.loc=r.loc,this.cleanModifierInvocationArguments()}cleanModifierInvocationArguments(){for(const t of this.attributes.items)"string"!=typeof t.variant&&t.variant.kind===i.q3.ModifierInvocation&&t.variant.cleanModifierInvocationArguments()}print(t,e){return(0,n.c)("fallback",this,t,e)}}s()}catch(t){s(t)}}))},3816:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>f});var i=r(4675),n=r(838),a=r(7578),o=r(801),c=r(6716),l=r(91),h=r(8926),u=r(5211),d=t([i,o,c,l,h,u]);[i,o,c,l,h,u]=d.then?(await d)():d;const{group:p,indent:m,line:y}=n.doc.builders;class f{constructor(t,e){this.kind=i.q3.ForStatement;let r=(0,o.sQ)(t);this.initialization=new c.n(t.initialization,e),this.condition=new l.Q(t.condition,e),t.iterator&&(this.iterator=new h.r(t.iterator,e)),this.body=new u.W(t.body,e),r=(0,o.D5)(r,[this.initialization,this.condition,this.iterator,this.body]),this.comments=r.comments,this.loc=r.loc}print(t,e){const r=t.call(e,"initialization"),s=t.call(e,"condition"),n=t.call(e,"iterator");return["for (",(0,a.J)([r,s,n],{separator:";"!==r||";"!==s||""!==n?y:""}),")",this.body.variant.kind===i.q3.Block?[" ",t.call(e,"body")]:p(m([y,t.call(e,"body")]))]}}s()}catch(t){s(t)}}))},91:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Q:()=>c});var i=r(4675),n=r(801),a=r(6157),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.ForStatementCondition;let r=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.Q(t.variant,e),r=(0,n.D5)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},6716:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{n:()=>h});var i=r(4675),n=r(801),a=r(6157),o=r(2421),c=r(6773),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;class h{constructor(t,e){this.kind=i.q3.ForStatementInitialization;let r=(0,n.sQ)(t);if(t.variant instanceof i.xo)this.variant=t.variant.unparse();else switch(t.variant.cst.kind){case i.q3.ExpressionStatement:this.variant=new a.Q(t.variant,e);break;case i.q3.VariableDeclarationStatement:this.variant=new o._(t.variant,e);break;case i.q3.TupleDeconstructionStatement:this.variant=new c.a(t.variant,e);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},5798:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{V:()=>l});var i=r(4675),n=r(801),a=r(1699),o=r(7178),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.FunctionAttribute;let r=(0,n.sQ)(t);if(t.variant instanceof i.xo)this.variant=t.variant.unparse();else switch(t.variant.cst.kind){case i.q3.ModifierInvocation:this.variant=new a.u(t.variant,e);break;case i.q3.OverrideSpecifier:this.variant=new o.l(t.variant);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},3685:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{S:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(5798),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.FunctionAttributes;let r=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.V(t,e))),r=(0,o.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},1580:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>c});var i=r(4675),n=r(801),a=r(6511),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.FunctionBody;let r=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.e(t.variant,e),r=(0,n.D5)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},9894:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>m});var i=r(838),n=r(4675),a=r(4079),o=r(801),c=r(8926),l=r(5756),h=t([n,o,c,l]);[n,o,c,l]=h.then?(await h)():h;const{group:u,indentIfBreak:d,label:p}=i.doc.builders;class m{constructor(t,e){this.kind=n.q3.FunctionCallExpression;let r=(0,o.sQ)(t);this.operand=new c.r(t.operand,e),this.arguments=new l.Z(t.arguments,e),r=(0,o.D5)(r,[this.operand,this.arguments]),this.comments=r.comments,this.loc=r.loc}print(t,e){let r=t.call(e,"operand"),s=t.call(e,"arguments");return(0,a.J)(r)&&"MemberAccessChain"===r.label?(r=u(r.contents,{id:Symbol("FunctionCallExpression.operand")}),s=d(s,{groupId:r.id}),p("MemberAccessChain",[r,s])):[r,s].flat()}}s()}catch(t){s(t)}}))},7281:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{W:()=>m});var i=r(9589),n=r(4675),a=r(304),o=r(801),c=r(1615),l=r(9002),h=r(3685),u=r(7181),d=r(1580),p=t([n,o,c,l,h,u,d]);[n,o,c,l,h,u,d]=p.then?(await p)():p;class m{constructor(t,e){this.kind=n.q3.FunctionDefinition;let r=(0,o.sQ)(t);this.name=new c.s(t.name),this.parameters=new l.Z(t.parameters,e),this.attributes=new h.S(t.attributes,e),t.returns&&(this.returns=new u.I(t.returns,e)),this.body=new d.r(t.body,e),r=(0,o.D5)(r,[this.name,this.parameters,this.attributes,this.returns,this.body]),this.comments=r.comments,this.loc=r.loc;const s=(0,i.coerce)(e.compiler);s&&(0,i.satisfies)(s,">=0.5.0")&&this.cleanModifierInvocationArguments()}cleanModifierInvocationArguments(){for(const t of this.attributes.items)"string"!=typeof t.variant&&t.variant.kind===n.q3.ModifierInvocation&&t.variant.cleanModifierInvocationArguments()}print(t,e){return(0,a.c)(["function ",t.call(e,"name")],this,t,e)}}s()}catch(t){s(t)}}))},1615:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{s:()=>c});var i=r(4675),n=r(801),a=r(2291),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.FunctionName;const e=(0,n.sQ)(t);this.variant=new a.g(t.variant),this.comments=e.comments,this.loc=e.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},3476:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>u});var i=r(4675),n=r(304),a=r(801),o=r(9002),c=r(221),l=r(7181),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;class u{constructor(t,e){this.kind=i.q3.FunctionType;let r=(0,a.sQ)(t);this.parameters=new o.Z(t.parameters,e),this.attributes=new c.C(t.attributes),t.returns&&(this.returns=new l.I(t.returns,e)),r=(0,a.D5)(r,[this.parameters,this.attributes,this.returns]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,n.c)("function",this,t,e)}}s()}catch(t){s(t)}}))},6222:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{l:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.FunctionTypeAttribute;const e=(0,n.sQ)(t);this.variant=t.variant.unparse(),this.comments=e.comments,this.loc=e.loc}print(){return this.variant}}s()}catch(t){s(t)}}))},221:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(6222),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t){this.kind=n.q3.FunctionTypeAttributes;let e=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.l(t))),e=(0,o.D5)(e,[this.items]),this.comments=e.comments,this.loc=e.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},9804:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>l});var i=r(4675),n=r(801),a=r(1e3),o=r(6603),c=t([i,n,o]);[i,n,o]=c.then?(await c)():c;class l{constructor(t){this.kind=i.q3.HexNumberExpression;let e=(0,n.sQ)(t);this.literal=t.literal.unparse(),t.unit&&(this.unit=new o.c(t.unit)),e=(0,n.D5)(e,[this.unit]),this.comments=e.comments,this.loc=e.loc}print(t,e){return(0,a.I)(" ",[this.literal,t.call(e,"unit")])}}s()}catch(t){s(t)}}))},5191:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>c});var i=r(4675),n=r(1529),a=r(801),o=t([i,a]);[i,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.HexStringLiteral;const r=(0,a.sQ)(t);this.variant=t.variant.unparse(),this.comments=r.comments,this.loc=r.loc,this.variant=`hex${(0,n.T)(this.variant.slice(4,-1),e)}`}print(){return this.variant}}s()}catch(t){s(t)}}))},7598:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{P:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(5191),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.HexStringLiterals;let r=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.C(t,e))),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return l(h,t.map(e,"items"))}}s()}catch(t){s(t)}}))},2291:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.hP.Identifier;const e=(0,n.sQ)(t);this.value=t.unparse(),this.comments=e.comments,this.loc=e.loc}print(){return this.value}}s()}catch(t){s(t)}}))},2912:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{D:()=>c});var i=r(4675),n=r(801),a=r(2291),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.IdentifierPath;const e=(0,n.sQ)(t);this.items=t.items.map((t=>new a.g(t))),this.separators=t.separators.map((t=>t.unparse())),this.comments=e.comments,this.loc=e.loc}print(t,e){return t.map(e,"items").map(((t,e)=>0===e?t:[this.separators[e-1],t]))}}s()}catch(t){s(t)}}))},7978:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{v:()=>g});var i=r(838),n=r(4675),a=r(8941),o=r(801),c=r(7540),l=r(8926),h=r(5211),u=r(3117),d=t([n,o,c,l,h,u]);[n,o,c,l,h,u]=d.then?(await d)():d;const{group:p,hardline:m,indent:y,line:f}=i.doc.builders;class g{constructor(t,e){this.kind=n.q3.IfStatement;let r=(0,o.sQ)(t);this.condition=new l.r(t.condition,e),this.body=new h.W(t.body,e),t.elseBranch&&(this.elseBranch=new u.O(t.elseBranch,e)),r=(0,o.D5)(r,[this.condition,this.body,this.elseBranch]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["if (",(0,a.K)(t.call(e,"condition")),")",this.body.variant.kind===n.q3.Block?[" ",t.call(e,"body")]:p(y([f,t.call(e,"body")]),{shouldBreak:this.body.variant.kind===n.q3.IfStatement}),this.elseBranch?[this.body.variant.kind!==n.q3.Block||this.body.variant.comments.some((t=>!(0,c.t)(t)||"ownLine"===t.placement))?m:" ",t.call(e,"elseBranch")]:""]}}s()}catch(t){s(t)}}))},6485:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{G:()=>c});var i=r(4675),n=r(801),a=r(2291),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.ImportAlias;const e=(0,n.sQ)(t);this.identifier=new a.g(t.identifier),this.comments=e.comments,this.loc=e.loc}print(t,e){return[" as ",t.call(e,"identifier")]}}s()}catch(t){s(t)}}))},5996:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>h});var i=r(4675),n=r(801),a=r(9150),o=r(3534),c=r(979),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;class h{constructor(t,e){this.kind=i.q3.ImportClause;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.PathImport:this.variant=new a.N(t.variant,e);break;case i.q3.NamedImport:this.variant=new o.R(t.variant,e);break;case i.q3.ImportDeconstruction:this.variant=new c.q(t.variant,e);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},979:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{q:()=>l});var i=r(4675),n=r(801),a=r(2386),o=r(3562),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.ImportDeconstruction;let r=(0,n.sQ)(t);this.symbols=new a.z(t.symbols),this.path=new o.L(t.path,e),r=(0,n.D5)(r,[this.symbols,this.path]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["{",t.call(e,"symbols"),"} from ",t.call(e,"path")]}}s()}catch(t){s(t)}}))},4163:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>l});var i=r(4675),n=r(801),a=r(2291),o=r(6485),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t){this.kind=i.q3.ImportDeconstructionSymbol;let e=(0,n.sQ)(t);this.name=new a.g(t.name),t.alias&&(this.alias=new o.G(t.alias)),e=(0,n.D5)(e,[this.alias]),this.comments=e.comments,this.loc=e.loc}print(t,e){return[t.call(e,"name"),t.call(e,"alias")]}}s()}catch(t){s(t)}}))},2386:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>p});var i=r(838),n=r(9589),a=r(4675),o=r(7578),c=r(801),l=r(4163),h=t([a,c,l]);[a,c,l]=h.then?(await h)():h;const{line:u,softline:d}=i.doc.builders;class p{constructor(t){this.kind=a.q3.ImportDeconstructionSymbols;let e=(0,c.sQ)(t,!0);this.items=t.items.map((t=>new l.g(t))),this.separators=t.separators.map((t=>t.unparse())),e=(0,c.D5)(e,[this.items]),this.comments=e.comments,this.loc=e.loc}print(t,e,r){const s=(0,n.coerce)(r.compiler);return(0,o.J)(t.map(e,"items"),s&&(0,n.satisfies)(s,">=0.7.4")?{firstSeparator:r.bracketSpacing?u:d,separator:[",",u]}:{firstSeparator:r.bracketSpacing?" ":"",separator:", "})}}s()}catch(t){s(t)}}))},8668:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>c});var i=r(4675),n=r(801),a=r(5996),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.ImportDirective;let r=(0,n.sQ)(t);this.clause=new a.r(t.clause,e),r=(0,n.D5)(r,[this.clause]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["import ",t.call(e,"clause"),";"]}}s()}catch(t){s(t)}}))},4899:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Q:()=>c});var i=r(4675),n=r(801),a=r(8926),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.IndexAccessEnd;let r=(0,n.sQ)(t);t.end&&(this.end=new a.r(t.end,e)),r=(0,n.D5)(r,[this.end]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[":",t.call(e,"end")]}}s()}catch(t){s(t)}}))},4882:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>f});var i=r(838),n=r(4675),a=r(4079),o=r(801),c=r(8926),l=r(4899),h=t([n,o,c,l]);[n,o,c,l]=h.then?(await h)():h;const{group:u,indent:d,indentIfBreak:p,label:m,softline:y}=i.doc.builders;class f{constructor(t,e){this.kind=n.q3.IndexAccessExpression;let r=(0,o.sQ)(t);this.operand=new c.r(t.operand,e),t.start&&(this.start=new c.r(t.start,e)),t.end&&(this.end=new l.Q(t.end,e)),r=(0,o.D5)(r,[this.operand,this.start,this.end]),this.comments=r.comments,this.loc=r.loc}print(t,e){let r=t.call(e,"operand"),s=u(["[",d([y,t.call(e,"start"),t.call(e,"end")]),y,"]"]);return(0,a.J)(r)&&"MemberAccessChain"===r.label?(r=u(r.contents,{id:Symbol("IndexAccessExpression.operand")}),s=p(s,{groupId:r.id}),m("MemberAccessChain",[r,s])):[r,s].flat()}}s()}catch(t){s(t)}}))},3892:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>c});var i=r(4675),n=r(801),a=r(3717),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.InheritanceSpecifier;let r=(0,n.sQ)(t);this.types=new a.W(t.types,e),r=(0,n.D5)(r,[this.types]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["is",t.call(e,"types")]}}s()}catch(t){s(t)}}))},3990:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>l});var i=r(4675),n=r(801),a=r(2912),o=r(5756),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.InheritanceType;let r=(0,n.sQ)(t);this.typeName=new a.D(t.typeName),t.arguments&&(this.arguments=new o.Z(t.arguments,e)),r=(0,n.D5)(r,[this.typeName,this.arguments]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"typeName"),t.call(e,"arguments")]}}s()}catch(t){s(t)}}))},3717:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{W:()=>u});var i=r(838),n=r(4675),a=r(7578),o=r(801),c=r(3990),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.InheritanceTypes;let r=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.H(t,e))),this.separators=t.separators.map((t=>t.unparse())),r=(0,o.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.J)(t.map(e,"items"),{firstSeparator:h})}}s()}catch(t){s(t)}}))},3692:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{J:()=>p});var i=r(838),n=r(4675),a=r(801),o=r(2291),c=r(3892),l=r(7646),h=t([n,a,o,c,l]);[n,a,o,c,l]=h.then?(await h)():h;const{group:u,line:d}=i.doc.builders;class p{constructor(t,e){this.kind=n.q3.InterfaceDefinition;let r=(0,a.sQ)(t);this.name=new o.g(t.name),t.inheritance&&(this.inheritance=new c.R(t.inheritance,e)),this.members=new l.l(t.members,e),r=(0,a.D5)(r,[this.inheritance,this.members]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[u(["interface ",t.call(e,"name"),this.inheritance?[" ",t.call(e,"inheritance")]:d,"{"]),t.call(e,"members"),"}"]}}s()}catch(t){s(t)}}))},7646:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{l:()=>d});var i=r(838),n=r(4675),a=r(8941),o=r(1041),c=r(801),l=r(4468),h=t([n,o,c,l]);[n,o,c,l]=h.then?(await h)():h;const{hardline:u}=i.doc.builders;class d{constructor(t,e){this.kind=n.q3.InterfaceMembers;let r=(0,c.sQ)(t,!0);this.items=t.items.map((t=>new l.B(t,e))),r=(0,c.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return this.items.length>0?(0,a.K)((0,o.V)(t,e,r),{firstSeparator:u,grouped:!1}):""}}s()}catch(t){s(t)}}))},1132:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{J:()=>d});var i=r(838),n=r(4675),a=r(801),o=r(2291),c=r(910),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{group:h,line:u}=i.doc.builders;class d{constructor(t,e){this.kind=n.q3.LibraryDefinition;let r=(0,a.sQ)(t);this.name=new o.g(t.name),this.members=new c.r(t.members,e),r=(0,a.D5)(r,[this.members]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[h(["library ",t.call(e,"name"),u,"{"]),t.call(e,"members"),"}"]}}s()}catch(t){s(t)}}))},910:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>d});var i=r(838),n=r(4675),a=r(8941),o=r(1041),c=r(801),l=r(4468),h=t([n,o,c,l]);[n,o,c,l]=h.then?(await h)():h;const{hardline:u}=i.doc.builders;class d{constructor(t,e){this.kind=n.q3.LibraryMembers;let r=(0,c.sQ)(t,!0);this.items=t.items.map((t=>new l.B(t,e))),r=(0,c.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return this.items.length>0?(0,a.K)((0,o.V)(t,e,r),{firstSeparator:u,grouped:!1}):""}}s()}catch(t){s(t)}}))},2585:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{a:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(305),c=r(2291),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t){this.kind=i.q3.MappingKey;let e=(0,n.sQ)(t);this.keyType=new o.o(t.keyType),t.name&&(this.name=new c.g(t.name)),e=(0,n.D5)(e,[this.keyType]),this.comments=e.comments,this.loc=e.loc}print(t,e){return(0,a.I)(" ",[t.call(e,"keyType"),t.call(e,"name")])}}s()}catch(t){s(t)}}))},305:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{o:()=>l});var i=r(4675),n=r(801),a=r(3198),o=r(2912),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t){this.kind=i.q3.MappingKeyType;let e=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.ElementaryType:this.variant=new a.$(t.variant);break;case i.q3.IdentifierPath:this.variant=new o.D(t.variant);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}e=(0,n.D5)(e,[this.variant]),this.comments=e.comments,this.loc=e.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},9184:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{d:()=>l});var i=r(4675),n=r(801),a=r(2585),o=r(8615),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.MappingType;let r=(0,n.sQ)(t);this.keyType=new a.a(t.keyType),this.valueType=new o.k(t.valueType,e),r=(0,n.D5)(r,[this.keyType,this.valueType]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["mapping(",t.call(e,"keyType")," => ",t.call(e,"valueType"),")"]}}s()}catch(t){s(t)}}))},8615:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{k:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(9979),c=r(2291),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e){this.kind=i.q3.MappingValue;let r=(0,n.sQ)(t);this.typeName=new o.C(t.typeName,e),t.name&&(this.name=new c.g(t.name)),r=(0,n.D5)(r,[this.typeName]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.I)(" ",[t.call(e,"typeName"),t.call(e,"name")])}}s()}catch(t){s(t)}}))},4138:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{n:()=>x});var i=r(838),n=r(4675),a=r(4079),o=r(6563),c=r(801),l=r(8926),h=r(2291),u=t([n,c,l,h]);[n,c,l,h]=u.then?(await u)():u;const{group:d,indent:p,label:m,softline:y}=i.doc.builders,f=(0,o.n)([n.q3.FunctionCallExpression,n.q3.IndexAccessExpression,n.q3.MemberAccessExpression]);function g(t,e){for(let r=0,s=t,i=e.getNode(r+2);f(i);r+=2,s=i,i=e.getNode(r+2))switch(i.kind){case n.q3.MemberAccessExpression:return!1;case n.q3.IndexAccessExpression:case n.q3.FunctionCallExpression:if(s!==i.operand.variant)return!0}return!0}function w(t){const e=t.findIndex((t=>(0,a.J)(t)&&"separator"===t.label));return m("MemberAccessChain",[t.slice(0,e),d(p(t.slice(e)))])}class x{constructor(t,e){this.kind=n.q3.MemberAccessExpression;let r=(0,c.sQ)(t);this.operand=new l.r(t.operand,e),this.member=new h.g(t.member),r=(0,c.D5)(r,[this.operand]),this.comments=r.comments,this.loc=r.loc}print(t,e){let r=t.call(e,"operand");Array.isArray(r)&&(r=r.flat());const s=[r,m("separator",[y,"."]),t.call(e,"member")].flat();return g(this,t)?w(s):s}}s()}catch(v){s(v)}}))},2085:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K:()=>c});var i=r(4675),n=r(801),a=r(7178),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.ModifierAttribute;let e=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.l(t.variant),e=(0,n.D5)(e,"string"==typeof this.variant?[]:[this.variant]),this.comments=e.comments,this.loc=e.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},4652:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(2085),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t){this.kind=n.q3.ModifierAttributes;let e=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.K(t))),e=(0,o.D5)(e,[this.items]),this.comments=e.comments,this.loc=e.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},1204:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>p});var i=r(4675),n=r(304),a=r(801),o=r(2291),c=r(9002),l=r(4716),h=r(4652),u=r(1580),d=t([i,a,o,c,l,h,u]);[i,a,o,c,l,h,u]=d.then?(await d)():d;class p{constructor(t,e){this.kind=i.q3.ModifierDefinition;let r=(0,a.sQ)(t);if(this.name=new o.g(t.name),t.parameters&&(this.parameters=new c.Z(t.parameters,e)),this.attributes=new h.r(t.attributes),this.body=new u.r(t.body,e),r=(0,a.D5)(r,[this.parameters,this.attributes,this.body]),this.comments=r.comments,this.loc=r.loc,!this.parameters){const t=this.attributes.loc.start-this.attributes.loc.leadingOffset,e={start:t,end:t,leadingOffset:0,trailingOffset:0};this.parameters=Object.assign(Object.create(c.Z.prototype),{kind:i.q3.ParametersDeclaration,loc:Object.assign({},e),comments:[],parameters:Object.assign(Object.create(l.H.prototype),{kind:i.q3.Parameters,loc:Object.assign({},e),comments:[],items:[],separators:[]})})}}print(t,e){return(0,n.c)(["modifier ",t.call(e,"name")],this,t,e)}}s()}catch(t){s(t)}}))},1699:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{u:()=>l});var i=r(4675),n=r(801),a=r(2912),o=r(5756),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.ModifierInvocation;let r=(0,n.sQ)(t);this.name=new a.D(t.name),t.arguments&&(this.arguments=new o.Z(t.arguments,e)),r=(0,n.D5)(r,[this.name,this.arguments]),this.comments=r.comments,this.loc=r.loc}cleanModifierInvocationArguments(){this.arguments&&this.arguments.variant.kind===i.q3.PositionalArgumentsDeclaration&&this.arguments.variant.isEmpty()&&delete this.arguments}print(t,e){return[t.call(e,"name"),t.call(e,"arguments")]}}s()}catch(t){s(t)}}))},7088:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>d});var i=r(4675),n=r(838),a=r(801),o=r(9959),c=r(7958),l=t([i,a]);[i,a]=l.then?(await l)():l;const{join:h,literalline:u}=n.doc.builders;class d{constructor(t){this.kind=i.hP.MultiLineComment;const e=(0,a.sQ)(t);this.value=t.unparse(),this.loc=e.loc}print(){return(0,o.f)(this)?(0,c.a)(this):h(u,this.value.split("\n"))}}s()}catch(t){s(t)}}))},7576:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>d});var i=r(4675),n=r(838),a=r(801),o=r(9959),c=r(7958),l=t([i,a]);[i,a]=l.then?(await l)():l;const{join:h,literalline:u}=n.doc.builders;class d{constructor(t){this.kind=i.hP.MultiLineNatSpecComment;const e=(0,a.sQ)(t);this.value=t.unparse(),this.loc=e.loc}print(){return(0,o.f)(this)?(0,c.a)(this):h(u,this.value.split("\n"))}}s()}catch(t){s(t)}}))},8968:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{d:()=>p});var i=r(4675),n=r(4209),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["/","%"]),u=(0,a.H)(["*","%"]),d=(0,a.H)(["*","/","%"]);class p{constructor(t,e){this.kind=i.q3.MultiplicativeExpression;let r=(0,o.sQ)(t);switch(this.leftOperand=new c.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,e),r=(0,o.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc,this.operator){case"*":this.leftOperand=h(this.leftOperand);break;case"/":this.leftOperand=u(this.leftOperand);break;case"%":this.leftOperand=d(this.leftOperand);break;default:throw new Error(`Unexpected operator: ${this.operator}`)}}print(t,e,r){return(0,n.W)(this,t,e,r)}}s()}catch(t){s(t)}}))},316:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(4675),n=r(801),a=r(2291),o=r(8926),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.NamedArgument;let r=(0,n.sQ)(t);this.name=new a.g(t.name),this.value=new o.r(t.value,e),r=(0,n.D5)(r,[this.value]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"name"),": ",t.call(e,"value")]}}s()}catch(t){s(t)}}))},4797:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{S:()=>c});var i=r(4675),n=r(801),a=r(2603),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.NamedArgumentGroup;let r=(0,n.sQ)(t);this.arguments=new a.q(t.arguments,e),r=(0,n.D5)(r,[this.arguments]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["{",t.call(e,"arguments"),"}"]}}s()}catch(t){s(t)}}))},2603:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{q:()=>d});var i=r(838),n=r(4675),a=r(7578),o=r(801),c=r(316),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{line:h,softline:u}=i.doc.builders;class d{constructor(t,e){this.kind=n.q3.NamedArguments;let r=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.j(t,e))),this.separators=t.separators.map((t=>t.unparse())),r=(0,o.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(t){s(t)}}))},5451:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Q:()=>c});var i=r(4675),n=r(801),a=r(4797),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.NamedArgumentsDeclaration;let r=(0,n.sQ)(t);t.arguments&&(this.arguments=new a.S(t.arguments,e)),r=(0,n.D5)(r,[this.arguments]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["(",t.call(e,"arguments"),")"]}}s()}catch(t){s(t)}}))},3534:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>l});var i=r(4675),n=r(801),a=r(6485),o=r(3562),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.NamedImport;let r=(0,n.sQ)(t);this.alias=new a.G(t.alias),this.path=new o.L(t.path,e),r=(0,n.D5)(r,[this.alias,this.path]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["*",t.call(e,"alias")," from ",t.call(e,"path")]}}s()}catch(t){s(t)}}))},6010:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>c});var i=r(4675),n=r(801),a=r(9979),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.NewExpression;let r=(0,n.sQ)(t);this.typeName=new a.C(t.typeName,e),r=(0,n.D5)(r,[this.typeName]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["new ",t.call(e,"typeName")]}}s()}catch(t){s(t)}}))},6603:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{c:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.NumberUnit;const e=(0,n.sQ)(t);this.variant=t.variant.unparse(),this.comments=e.comments,this.loc=e.loc}print(){return this.variant}}s()}catch(t){s(t)}}))},8947:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K:()=>u});var i=r(4675),n=r(8409),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["&&"]);class u{constructor(t,e){this.kind=i.q3.OrExpression;let r=(0,o.sQ)(t);this.leftOperand=new c.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,e),r=(0,o.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc,this.leftOperand=h(this.leftOperand),this.rightOperand=h(this.rightOperand)}print(t,e,r){return(0,n.a)(this,t,e,r)}}s()}catch(t){s(t)}}))},2818:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>l});var i=r(4675),n=r(801),a=r(7578),o=r(2912),c=t([i,n,o]);[i,n,o]=c.then?(await c)():c;class l{constructor(t){this.kind=i.q3.OverridePaths;let e=(0,n.sQ)(t,!0);this.items=t.items.map((t=>new o.D(t))),this.separators=t.separators.map((t=>t.unparse())),e=(0,n.D5)(e,[this.items]),this.comments=e.comments,this.loc=e.loc}print(t,e){return(0,a.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},6004:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{v:()=>c});var i=r(4675),n=r(801),a=r(2818),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.OverridePathsDeclaration;let e=(0,n.sQ)(t);this.paths=new a.r(t.paths),e=(0,n.D5)(e,[this.paths]),this.comments=e.comments,this.loc=e.loc}print(t,e){return["(",t.call(e,"paths"),")"]}}s()}catch(t){s(t)}}))},7178:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{l:()=>c});var i=r(4675),n=r(801),a=r(6004),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.OverrideSpecifier;let e=(0,n.sQ)(t);t.overridden&&(this.overridden=new a.v(t.overridden)),e=(0,n.D5)(e,[this.overridden]),this.comments=e.comments,this.loc=e.loc}print(t,e){return["override",t.call(e,"overridden")]}}s()}catch(t){s(t)}}))},3541:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{k:()=>p});var i=r(4675),n=r(838),a=r(801),o=r(1e3),c=r(9979),l=r(1616),h=r(2291),u=t([i,a,c,l,h]);[i,a,c,l,h]=u.then?(await u)():u;const{group:d}=n.doc.builders;class p{constructor(t,e){this.kind=i.q3.Parameter;let r=(0,a.sQ)(t);this.typeName=new c.C(t.typeName,e),t.storageLocation&&(this.storageLocation=new l.$(t.storageLocation)),t.name&&(this.name=new h.g(t.name)),r=(0,a.D5)(r,[this.typeName,this.storageLocation]),this.comments=r.comments,this.loc=r.loc}print(t,e){return d((0,o.I)(" ",[t.call(e,"typeName"),t.call(e,"storageLocation"),t.call(e,"name")]))}}s()}catch(t){s(t)}}))},4716:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>u});var i=r(4675),n=r(7578),a=r(8941),o=r(7134),c=r(801),l=r(3541),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u{constructor(t,e){this.kind=i.q3.Parameters;let r=(0,c.sQ)(t,!0);this.items=t.items.map((t=>new l.k(t,e))),this.separators=t.separators.map((t=>t.unparse())),r=(0,c.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){if(this.items.length>0)return(0,n.J)(t.map(e,"items"),{grouped:!1});const r=(0,o.i)(t);return r.length>0?(0,a.K)(r):""}}s()}catch(t){s(t)}}))},9002:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>c});var i=r(4675),n=r(801),a=r(4716),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.ParametersDeclaration;let r=(0,n.sQ)(t);this.parameters=new a.H(t.parameters,e),r=(0,n.D5)(r,[this.parameters]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}}))},9150:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{N:()=>l});var i=r(4675),n=r(801),a=r(3562),o=r(6485),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.PathImport;let r=(0,n.sQ)(t);this.path=new a.L(t.path,e),t.alias&&(this.alias=new o.G(t.alias)),r=(0,n.D5)(r,[this.path,this.alias]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"path"),t.call(e,"alias")]}}s()}catch(t){s(t)}}))},4872:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{T:()=>u});var i=r(4675),n=r(7134),a=r(8941),o=r(7578),c=r(801),l=r(8926),h=t([i,n,c,l]);[i,n,c,l]=h.then?(await h)():h;class u{constructor(t,e){this.kind=i.q3.PositionalArguments;let r=(0,c.sQ)(t,!0);this.items=t.items.map((t=>new l.r(t,e))),this.separators=t.separators.map((t=>t.unparse())),r=(0,c.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){if(this.items.length>0)return(0,o.J)(t.map(e,"items"));const r=(0,n.i)(t);return r.length>0?(0,a.K)(r):""}}s()}catch(t){s(t)}}))},9182:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{V:()=>l});var i=r(4675),n=r(801),a=r(7540),o=r(4872),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.PositionalArgumentsDeclaration;let r=(0,n.sQ)(t);this.arguments=new o.T(t.arguments,e),r=(0,n.D5)(r,[this.arguments]),this.comments=r.comments,this.loc=r.loc;const s=0===this.arguments.items.length&&!this.comments.some((t=>(0,a.t)(t)));this.isEmpty=()=>s}print(t,e){return["(",t.call(e,"arguments"),")"]}}s()}catch(t){s(t)}}))},4109:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{_:()=>c});var i=r(4675),n=r(801),a=r(8926),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.PostfixExpression;let r=(0,n.sQ)(t);this.operand=new a.r(t.operand,e),this.operator=t.operator.unparse(),r=(0,n.D5)(r,[this.operand]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"operand"),this.operator]}}s()}catch(t){s(t)}}))},2440:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{n:()=>h});var i=r(4675),n=r(801),a=r(1475),o=r(6162),c=r(8234),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;class h{constructor(t,e){this.kind=i.q3.Pragma;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.AbicoderPragma:this.variant=new a.Y(t.variant);break;case i.q3.ExperimentalPragma:this.variant=new o.j(t.variant,e);break;case i.q3.VersionPragma:this.variant=new c.h(t.variant);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},5887:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K:()=>c});var i=r(4675),n=r(801),a=r(2440),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.PragmaDirective;let r=(0,n.sQ)(t);this.pragma=new a.n(t.pragma,e),r=(0,n.D5)(r,[this.pragma]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["pragma ",t.call(e,"pragma"),";"]}}s()}catch(t){s(t)}}))},8802:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{B:()=>c});var i=r(4675),n=r(801),a=r(8926),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.PrefixExpression;let r=(0,n.sQ)(t);this.operator=t.operator.unparse(),this.operand=new a.r(t.operand,e),r=(0,n.D5)(r,[this.operand]),this.comments=r.comments,this.loc=r.loc,"delete"===this.operator&&(this.operator=`${this.operator} `)}print(t,e){return[this.operator,t.call(e,"operand")]}}s()}catch(t){s(t)}}))},4700:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Y:()=>l});var i=r(4675),n=r(801),a=r(1699),o=r(7178),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.ReceiveFunctionAttribute;let r=(0,n.sQ)(t);if(t.variant instanceof i.xo)this.variant=t.variant.unparse();else switch(t.variant.cst.kind){case i.q3.ModifierInvocation:this.variant=new a.u(t.variant,e);break;case i.q3.OverrideSpecifier:this.variant=new o.l(t.variant);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},694:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{P:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(4700),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.ReceiveFunctionAttributes;let r=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.Y(t,e))),r=(0,o.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},9394:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>u});var i=r(4675),n=r(304),a=r(801),o=r(9002),c=r(694),l=r(1580),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;class u{constructor(t,e){this.kind=i.q3.ReceiveFunctionDefinition;let r=(0,a.sQ)(t);this.parameters=new o.Z(t.parameters,e),this.attributes=new c.P(t.attributes,e),this.body=new l.r(t.body,e),r=(0,a.D5)(r,[this.parameters,this.attributes,this.body]),this.comments=r.comments,this.loc=r.loc,this.cleanModifierInvocationArguments()}cleanModifierInvocationArguments(){for(const t of this.attributes.items)"string"!=typeof t.variant&&t.variant.kind===i.q3.ModifierInvocation&&t.variant.cleanModifierInvocationArguments()}print(t,e){return(0,n.c)("receive",this,t,e)}}s()}catch(t){s(t)}}))},2993:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{c:()=>p});var i=r(838),n=r(4675),a=r(801),o=r(8926),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{group:l,indent:h,line:u}=i.doc.builders;function d(t,e,r,s){return t.expression?"string"!=typeof t.expression.variant&&(t.expression.variant.kind===n.q3.TupleExpression||s.experimentalTernaries&&t.expression.variant.kind===n.q3.ConditionalExpression)?[" ",e.call(r,"expression")]:l(h([u,e.call(r,"expression")])):""}class p{constructor(t,e){this.kind=n.q3.ReturnStatement;let r=(0,a.sQ)(t);t.expression&&(this.expression=new o.r(t.expression,e)),r=(0,a.D5)(r,[this.expression]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return["return",d(this,t,e,r),";"]}}s()}catch(m){s(m)}}))},7181:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{I:()=>h});var i=r(838),n=r(4675),a=r(801),o=r(9002),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{group:l}=i.doc.builders;class h{constructor(t,e){this.kind=n.q3.ReturnsDeclaration;let r=(0,a.sQ)(t);this.variables=new o.Z(t.variables,e),r=(0,a.D5)(r,[this.variables]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["returns ",l(t.call(e,"variables"))]}}s()}catch(t){s(t)}}))},6133:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(2912),c=r(5756),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e){this.kind=i.q3.RevertStatement;let r=(0,n.sQ)(t);t.error&&(this.error=new o.D(t.error)),this.arguments=new c.Z(t.arguments,e),r=(0,n.D5)(r,[this.error,this.arguments]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[(0,a.I)(" ",["revert",t.call(e,"error")]),t.call(e,"arguments"),";"]}}s()}catch(t){s(t)}}))},4852:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>d});var i=r(4675),n=r(4209),a=r(142),o=r(801),c=r(8926),l=t([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;const h=(0,a.H)(["+","-","*","/","**","<<",">>"]),u=(0,a.H)(["+","-","*","/","**"]);class d{constructor(t,e){this.kind=i.q3.ShiftExpression;let r=(0,o.sQ)(t);this.leftOperand=new c.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new c.r(t.rightOperand,e),r=(0,o.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc,this.leftOperand=h(this.leftOperand),this.rightOperand=u(this.rightOperand)}print(t,e,r){return(0,n.W)(this,t,e,r)}}s()}catch(t){s(t)}}))},717:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.SimpleVersionLiteral;const e=(0,n.sQ)(t,!0);this.items=t.items.map((t=>t.unparse())),this.separators=t.separators.map((t=>t.unparse())),this.comments=e.comments,this.loc=e.loc}print(){return this.items.map(((t,e)=>0===e?t:[this.separators[e-1],t]))}}s()}catch(t){s(t)}}))},9441:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{a:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.hP.SingleLineComment;const e=(0,n.sQ)(t);this.value=t.unparse(),this.loc=e.loc}print(){return this.value.trimEnd()}}s()}catch(t){s(t)}}))},4867:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{c:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.hP.SingleLineNatSpecComment;const e=(0,n.sQ)(t);this.value=t.unparse(),this.loc=e.loc}print(){return this.value.trimEnd()}}s()}catch(t){s(t)}}))},6811:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{M:()=>h});var i=r(838),n=r(4675),a=r(801),o=r(6404),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{line:l}=i.doc.builders;class h{constructor(t,e){this.kind=n.q3.SourceUnit;let r=(0,a.sQ)(t);this.members=new o.d(t.members,e),r=(0,a.D5)(r,[this.members]),this.comments=r.comments.sort(((t,e)=>t.loc.start-e.loc.start)),this.loc=r.loc}print(t,e,r){return[t.call(e,"members"),r.parentParser?"":l]}}s()}catch(t){s(t)}}))},3357:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>v});var i=r(4675),n=r(801),a=r(5887),o=r(8668),c=r(2795),l=r(3692),h=r(1132),u=r(8324),d=r(3820),p=r(7281),m=r(9885),y=r(897),f=r(7260),g=r(33),w=r(4351),x=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]=x.then?(await x)():x;class v{constructor(t,e){this.kind=i.q3.SourceUnitMember;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.PragmaDirective:this.variant=new a.K(t.variant,e);break;case i.q3.ImportDirective:this.variant=new o.p(t.variant,e);break;case i.q3.ContractDefinition:this.variant=new c.e(t.variant,e);break;case i.q3.InterfaceDefinition:this.variant=new l.J(t.variant,e);break;case i.q3.LibraryDefinition:this.variant=new h.J(t.variant,e);break;case i.q3.StructDefinition:this.variant=new u.Z(t.variant,e);break;case i.q3.EnumDefinition:this.variant=new d.P(t.variant);break;case i.q3.FunctionDefinition:this.variant=new p.W(t.variant,e);break;case i.q3.ConstantDefinition:this.variant=new m.y(t.variant,e);break;case i.q3.ErrorDefinition:this.variant=new y.e(t.variant,e);break;case i.q3.UserDefinedValueTypeDefinition:this.variant=new f.z(t.variant);break;case i.q3.UsingDirective:this.variant=new g.K(t.variant,e);break;case i.q3.EventDefinition:this.variant=new w.w(t.variant,e);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},6404:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{d:()=>l});var i=r(4675),n=r(1041),a=r(801),o=r(3357),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.SourceUnitMembers;let r=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.A(t,e))),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return(0,n.V)(t,e,r)}}s()}catch(t){s(t)}}))},2203:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{c:()=>c});var i=r(4675),n=r(801),a=r(7178),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.StateVariableAttribute;let e=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.l(t.variant),e=(0,n.D5)(e,"string"==typeof this.variant?[]:[this.variant]),this.comments=e.comments,this.loc=e.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},3002:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{T:()=>u});var i=r(4675),n=r(838),a=r(801),o=r(3111),c=r(2203),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u{constructor(t){this.kind=i.q3.StateVariableAttributes;let e=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new c.c(t))),e=(0,a.D5)(e,[this.items]),this.comments=e.comments,this.loc=e.loc,this.items=this.items.sort(o.k)}print(t,e){return this.items.length?t.map(e,"items").map((t=>[h,t])):""}}s()}catch(t){s(t)}}))},918:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>y});var i=r(4675),n=r(838),a=r(801),o=r(9979),c=r(3002),l=r(2291),h=r(4965),u=t([i,a,o,c,l,h]);[i,a,o,c,l,h]=u.then?(await u)():u;const{group:d,indent:p,indentIfBreak:m}=n.doc.builders;class y{constructor(t,e){this.kind=i.q3.StateVariableDefinition;let r=(0,a.sQ)(t);this.typeName=new o.C(t.typeName,e),this.attributes=new c.T(t.attributes),this.name=new l.g(t.name),t.value&&(this.value=new h.S(t.value,e)),r=(0,a.D5)(r,[this.typeName,this.attributes,this.value]),this.comments=r.comments,this.loc=r.loc}print(t,e){const r=d(p(t.call(e,"attributes")),{id:Symbol("Slang.StateVariableDefinition.attributes")});return[t.call(e,"typeName"),r," ",t.call(e,"name"),this.value?m(t.call(e,"value"),{groupId:r.id}):"",";"]}}s()}catch(t){s(t)}}))},4965:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{S:()=>d});var i=r(838),n=r(4675),a=r(801),o=r(8926),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{group:l,indent:h,line:u}=i.doc.builders;class d{constructor(t,e){this.kind=n.q3.StateVariableDefinitionValue;let r=(0,a.sQ)(t);this.value=new o.r(t.value,e),r=(0,a.D5)(r,[this.value]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"!=typeof this.value.variant&&this.value.variant.kind===n.q3.ArrayExpression?[" = ",t.call(e,"value")]:l([" =",h([u,t.call(e,"value")])])}}s()}catch(t){s(t)}}))},5211:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{W:()=>T});var i=r(4675),n=r(801),a=r(6157),o=r(2421),c=r(6773),l=r(7978),h=r(3816),u=r(826),d=r(8943),p=r(9892),m=r(3144),y=r(2993),f=r(1553),g=r(3406),w=r(698),x=r(6133),v=r(7299),b=r(6511),_=r(6470),E=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_]=E.then?(await E)():E;class T{constructor(t,e){this.kind=i.q3.Statement;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.ExpressionStatement:this.variant=new a.Q(t.variant,e);break;case i.q3.VariableDeclarationStatement:this.variant=new o._(t.variant,e);break;case i.q3.TupleDeconstructionStatement:this.variant=new c.a(t.variant,e);break;case i.q3.IfStatement:this.variant=new l.v(t.variant,e);break;case i.q3.ForStatement:this.variant=new h.p(t.variant,e);break;case i.q3.WhileStatement:this.variant=new u.x(t.variant,e);break;case i.q3.DoWhileStatement:this.variant=new d.I(t.variant,e);break;case i.q3.ContinueStatement:this.variant=new p.H(t.variant);break;case i.q3.BreakStatement:this.variant=new m.V(t.variant);break;case i.q3.ReturnStatement:this.variant=new y.c(t.variant,e);break;case i.q3.ThrowStatement:this.variant=new f.e(t.variant);break;case i.q3.EmitStatement:this.variant=new g.x(t.variant,e);break;case i.q3.TryStatement:this.variant=new w.H(t.variant,e);break;case i.q3.RevertStatement:this.variant=new x.i(t.variant,e);break;case i.q3.AssemblyStatement:this.variant=new v.I(t.variant,e);break;case i.q3.Block:this.variant=new b.e(t.variant,e);break;case i.q3.UncheckedBlock:this.variant=new _.E(t.variant,e);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},1322:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>p});var i=r(838),n=r(4675),a=r(8941),o=r(7134),c=r(1041),l=r(801),h=r(5211),u=t([n,o,c,l,h]);[n,o,c,l,h]=u.then?(await u)():u;const{hardline:d}=i.doc.builders;class p{constructor(t,e){this.kind=n.q3.Statements;let r=(0,l.sQ)(t,!0);this.items=t.items.map((t=>new h.W(t,e))),r=(0,l.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return 0===this.items.length&&0===this.comments.length?"":(0,a.K)([(0,c.V)(t,e,r),(0,o.i)(t)],{firstSeparator:d,grouped:!1})}}s()}catch(t){s(t)}}))},1616:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{$:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.StorageLocation;const e=(0,n.sQ)(t);this.variant=t.variant.unparse(),this.comments=e.comments,this.loc=e.loc}print(){return this.variant}}s()}catch(t){s(t)}}))},9511:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{O:()=>d});var i=r(4675),n=r(801),a=r(3562),o=r(1073),c=r(5191),l=r(7598),h=r(8580),u=t([i,n,a,o,c,l,h]);[i,n,a,o,c,l,h]=u.then?(await u)():u;class d{constructor(t,e){this.kind=i.q3.StringExpression;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.StringLiteral:this.variant=new a.L(t.variant,e);break;case i.q3.StringLiterals:this.variant=new o.K(t.variant,e);break;case i.q3.HexStringLiteral:this.variant=new c.C(t.variant,e);break;case i.q3.HexStringLiterals:this.variant=new l.P(t.variant,e);break;case i.q3.UnicodeStringLiterals:this.variant=new h.Z(t.variant,e);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},3562:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{L:()=>c});var i=r(4675),n=r(1529),a=r(801),o=t([i,a]);[i,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.StringLiteral;const r=(0,a.sQ)(t);this.variant=t.variant.unparse(),this.comments=r.comments,this.loc=r.loc,this.variant=(0,n.T)(this.variant.slice(1,-1),e)}print(){return this.variant}}s()}catch(t){s(t)}}))},1073:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(3562),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.StringLiterals;let r=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.L(t,e))),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return l(h,t.map(e,"items"))}}s()}catch(t){s(t)}}))},8324:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>l});var i=r(4675),n=r(801),a=r(2291),o=r(7462),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.StructDefinition;let r=(0,n.sQ)(t);this.name=new a.g(t.name),this.members=new o.N(t.members,e),r=(0,n.D5)(r,[this.members]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["struct ",t.call(e,"name")," {",t.call(e,"members"),"}"]}}s()}catch(t){s(t)}}))},5839:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Y:()=>l});var i=r(4675),n=r(801),a=r(9979),o=r(2291),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.StructMember;let r=(0,n.sQ)(t);this.typeName=new a.C(t.typeName,e),this.name=new o.g(t.name),r=(0,n.D5)(r,[this.typeName]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"typeName")," ",t.call(e,"name"),";"]}}s()}catch(t){s(t)}}))},7462:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{N:()=>u});var i=r(838),n=r(4675),a=r(7578),o=r(801),c=r(5839),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{hardline:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.StructMembers;let r=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.Y(t,e))),r=(0,o.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return this.items.length>0?(0,a.J)(t.map(e,"items"),{firstSeparator:h,separator:h}):""}}s()}catch(t){s(t)}}))},1553:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{e:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.ThrowStatement;const e=(0,n.sQ)(t);this.comments=e.comments,this.loc=e.loc}print(){return"throw;"}}s()}catch(t){s(t)}}))},698:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>y});var i=r(838),n=r(4675),a=r(8941),o=r(801),c=r(1e3),l=r(8926),h=r(7181),u=r(6511),d=r(7259),p=t([n,o,l,h,u,d]);[n,o,l,h,u,d]=p.then?(await p)():p;const{line:m}=i.doc.builders;class y{constructor(t,e){this.kind=n.q3.TryStatement;let r=(0,o.sQ)(t);this.expression=new l.r(t.expression,e),t.returns&&(this.returns=new h.I(t.returns,e)),this.body=new u.e(t.body,e),this.catchClauses=new d.m(t.catchClauses,e),r=(0,o.D5)(r,[this.expression,this.returns,this.body,this.catchClauses]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["try",(0,a.K)(t.call(e,"expression"),{firstSeparator:m}),(0,c.I)(" ",[t.call(e,"returns"),t.call(e,"body"),t.call(e,"catchClauses")])]}}s()}catch(t){s(t)}}))},9400:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>c});var i=r(4675),n=r(801),a=r(7562),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.TupleDeconstructionElement;let r=(0,n.sQ)(t);t.member&&(this.member=new a.n(t.member,e)),r=(0,n.D5)(r,[this.member]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"member")}}s()}catch(t){s(t)}}))},9839:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Y:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(9400),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.TupleDeconstructionElements;let r=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.r(t,e))),this.separators=t.separators.map((t=>t.unparse())),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},6773:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{a:()=>d});var i=r(4675),n=r(838),a=r(801),o=r(9839),c=r(8926),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{group:h,indentIfBreak:u}=n.doc.builders;class d{constructor(t,e){var r;this.kind=i.q3.TupleDeconstructionStatement;let s=(0,a.sQ)(t);this.varKeyword=null===(r=t.varKeyword)||void 0===r?void 0:r.unparse(),this.elements=new o.Y(t.elements,e),this.expression=new c.r(t.expression,e),s=(0,a.D5)(s,[this.elements,this.expression]),this.comments=s.comments,this.loc=s.loc}print(t,e){const r=h([this.varKeyword?"var (":"(",t.call(e,"elements"),")"],{id:Symbol("Slang.VariableDeclarationStatement.variables")});return[r,u([" = ",t.call(e,"expression"),";"],{groupId:r.id})]}}s()}catch(t){s(t)}}))},4274:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{b:()=>c});var i=r(4675),n=r(801),a=r(1634),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.TupleExpression;let r=(0,n.sQ)(t);this.items=new a.X(t.items,e),r=(0,n.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["(",t.call(e,"items"),")"]}}s()}catch(t){s(t)}}))},7562:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{n:()=>l});var i=r(4675),n=r(801),a=r(3700),o=r(539),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.TupleMember;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.TypedTupleMember:this.variant=new a.Z(t.variant,e);break;case i.q3.UntypedTupleMember:this.variant=new o.i(t.variant);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},7651:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{E:()=>c});var i=r(4675),n=r(801),a=r(8926),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.TupleValue;let r=(0,n.sQ)(t);t.expression&&(this.expression=new a.r(t.expression,e)),r=(0,n.D5)(r,[this.expression]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"expression")}}s()}catch(t){s(t)}}))},1634:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{X:()=>h});var i=r(4675),n=r(7578),a=r(1376),o=r(801),c=r(7651),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h{constructor(t,e){this.kind=i.q3.TupleValues;let r=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.E(t,e))),this.separators=t.separators.map((t=>t.unparse())),r=(0,o.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return 1===this.items.length&&this.items[0].expression&&this.items[0].expression.variant.kind!==i.hP.Identifier&&(0,a.D)(this.items[0].expression.variant)?t.map(e,"items"):(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},86:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>c});var i=r(4675),n=r(801),a=r(9979),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.TypeExpression;let r=(0,n.sQ)(t);this.typeName=new a.C(t.typeName,e),r=(0,n.D5)(r,[this.typeName]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["type(",t.call(e,"typeName"),")"]}}s()}catch(t){s(t)}}))},9979:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>d});var i=r(4675),n=r(801),a=r(4968),o=r(3476),c=r(9184),l=r(3198),h=r(2912),u=t([i,n,a,o,c,l,h]);[i,n,a,o,c,l,h]=u.then?(await u)():u;class d{constructor(t,e){this.kind=i.q3.TypeName;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.ArrayTypeName:this.variant=new a.f(t.variant,e);break;case i.q3.FunctionType:this.variant=new o.R(t.variant,e);break;case i.q3.MappingType:this.variant=new c.d(t.variant,e);break;case i.q3.ElementaryType:this.variant=new l.$(t.variant);break;case i.q3.IdentifierPath:this.variant=new h.D(t.variant);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},3700:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>u});var i=r(4675),n=r(801),a=r(1e3),o=r(9979),c=r(1616),l=r(2291),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;class u{constructor(t,e){this.kind=i.q3.TypedTupleMember;let r=(0,n.sQ)(t);this.typeName=new o.C(t.typeName,e),t.storageLocation&&(this.storageLocation=new c.$(t.storageLocation)),this.name=new l.g(t.name),r=(0,n.D5)(r,[this.typeName,this.storageLocation]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.I)(" ",[t.call(e,"typeName"),t.call(e,"storageLocation"),t.call(e,"name")])}}s()}catch(t){s(t)}}))},6470:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{E:()=>c});var i=r(4675),n=r(801),a=r(6511),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.UncheckedBlock;let r=(0,n.sQ)(t);this.block=new a.e(t.block,e),r=(0,n.D5)(r,[this.block]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["unchecked ",t.call(e,"block")]}}s()}catch(t){s(t)}}))},1309:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{G:()=>c});var i=r(4675),n=r(1529),a=r(801),o=t([i,a]);[i,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.UnicodeStringLiteral;const r=(0,a.sQ)(t);this.variant=t.variant.unparse(),this.comments=r.comments,this.loc=r.loc,this.variant=`unicode${(0,n.T)(this.variant.slice(8,-1),e)}`}print(){return this.variant}}s()}catch(t){s(t)}}))},8580:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(1309),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.UnicodeStringLiterals;let r=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.G(t,e))),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return l(h,t.map(e,"items"))}}s()}catch(t){s(t)}}))},2080:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{L:()=>c});var i=r(4675),n=r(801),a=r(1699),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.UnnamedFunctionAttribute;let r=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.u(t.variant,e),r=(0,n.D5)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},2263:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{q:()=>u});var i=r(838),n=r(4675),a=r(3111),o=r(801),c=r(2080),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.UnnamedFunctionAttributes;let r=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.L(t,e))),r=(0,o.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc,this.items=this.items.sort(a.k)}print(t,e){return t.map(e,"items").map((t=>[h,t]))}}s()}catch(t){s(t)}}))},6871:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{u:()=>u});var i=r(4675),n=r(304),a=r(801),o=r(9002),c=r(2263),l=r(1580),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;class u{constructor(t,e){this.kind=i.q3.UnnamedFunctionDefinition;let r=(0,a.sQ)(t);this.parameters=new o.Z(t.parameters,e),this.attributes=new c.q(t.attributes,e),this.body=new l.r(t.body,e),r=(0,a.D5)(r,[this.parameters,this.attributes,this.body]),this.comments=r.comments,this.loc=r.loc,this.cleanModifierInvocationArguments()}cleanModifierInvocationArguments(){for(const t of this.attributes.items)"string"!=typeof t.variant&&t.variant.cleanModifierInvocationArguments()}print(t,e){return(0,n.c)("function",this,t,e)}}s()}catch(t){s(t)}}))},539:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(1616),c=r(2291),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t){this.kind=i.q3.UntypedTupleMember;let e=(0,n.sQ)(t);t.storageLocation&&(this.storageLocation=new o.$(t.storageLocation)),this.name=new c.g(t.name),e=(0,n.D5)(e,[this.storageLocation]),this.comments=e.comments,this.loc=e.loc}print(t,e){return(0,a.I)(" ",[t.call(e,"storageLocation"),t.call(e,"name")])}}s()}catch(t){s(t)}}))},7260:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>l});var i=r(4675),n=r(801),a=r(2291),o=r(3198),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t){this.kind=i.q3.UserDefinedValueTypeDefinition;let e=(0,n.sQ)(t);this.name=new a.g(t.name),this.valueType=new o.$(t.valueType),e=(0,n.D5)(e,[this.valueType]),this.comments=e.comments,this.loc=e.loc}print(t,e){return["type ",t.call(e,"name")," is ",t.call(e,"valueType"),";"]}}s()}catch(t){s(t)}}))},4916:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>c});var i=r(4675),n=r(801),a=r(7818),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.UsingAlias;let e=(0,n.sQ)(t);this.operator=new a.Z(t.operator),e=(0,n.D5)(e,[this.operator]),this.comments=e.comments,this.loc=e.loc}print(t,e){return[" as ",t.call(e,"operator")]}}s()}catch(t){s(t)}}))},6575:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>l});var i=r(4675),n=r(801),a=r(2912),o=r(7972),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t){this.kind=i.q3.UsingClause;let e=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.IdentifierPath:this.variant=new a.D(t.variant);break;case i.q3.UsingDeconstruction:this.variant=new o.r(t.variant);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}e=(0,n.D5)(e,[this.variant]),this.comments=e.comments,this.loc=e.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},7972:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{r:()=>c});var i=r(4675),n=r(801),a=r(983),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.UsingDeconstruction;let e=(0,n.sQ)(t);this.symbols=new a.e(t.symbols),e=(0,n.D5)(e,[this.symbols]),this.comments=e.comments,this.loc=e.loc}print(t,e){return["{",t.call(e,"symbols"),"}"]}}s()}catch(t){s(t)}}))},4288:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{B:()=>l});var i=r(4675),n=r(801),a=r(2912),o=r(4916),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t){this.kind=i.q3.UsingDeconstructionSymbol;let e=(0,n.sQ)(t);this.name=new a.D(t.name),t.alias&&(this.alias=new o.j(t.alias)),e=(0,n.D5)(e,[this.name,this.alias]),this.comments=e.comments,this.loc=e.loc}print(t,e){return[t.call(e,"name"),t.call(e,"alias")]}}s()}catch(t){s(t)}}))},983:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{e:()=>d});var i=r(838),n=r(4675),a=r(7578),o=r(801),c=r(4288),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{line:h,softline:u}=i.doc.builders;class d{constructor(t){this.kind=n.q3.UsingDeconstructionSymbols;let e=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.B(t))),this.separators=t.separators.map((t=>t.unparse())),e=(0,o.D5)(e,[this.items]),this.comments=e.comments,this.loc=e.loc}print(t,e,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(t){s(t)}}))},33:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(6575),c=r(2399),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e){var r;this.kind=i.q3.UsingDirective;let s=(0,n.sQ)(t);this.clause=new o.g(t.clause),this.target=new c.A(t.target,e),this.globalKeyword=null===(r=t.globalKeyword)||void 0===r?void 0:r.unparse(),s=(0,n.D5)(s,[this.clause,this.target]),this.comments=s.comments,this.loc=s.loc}print(t,e){return[(0,a.I)(" ",["using",t.call(e,"clause"),"for",t.call(e,"target"),this.globalKeyword]),";"]}}s()}catch(t){s(t)}}))},7818:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.UsingOperator;const e=(0,n.sQ)(t);this.variant=t.variant.unparse(),this.comments=e.comments,this.loc=e.loc}print(){return this.variant}}s()}catch(t){s(t)}}))},2399:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(4675),n=r(801),a=r(9979),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.UsingTarget;let r=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.C(t.variant,e),r=(0,n.D5)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},2421:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{_:()=>f});var i=r(4675),n=r(838),a=r(801),o=r(6030),c=r(1616),l=r(2291),h=r(1829),u=t([i,a,o,c,l,h]);[i,a,o,c,l,h]=u.then?(await u)():u;const{group:d,indent:p,indentIfBreak:m,line:y}=n.doc.builders;class f{constructor(t,e){this.kind=i.q3.VariableDeclarationStatement;let r=(0,a.sQ)(t);this.variableType=new o.L(t.variableType,e),t.storageLocation&&(this.storageLocation=new c.$(t.storageLocation)),this.name=new l.g(t.name),t.value&&(this.value=new h.y(t.value,e)),r=(0,a.D5)(r,[this.variableType,this.storageLocation,this.value]),this.comments=r.comments,this.loc=r.loc}print(t,e){const r=d([t.call(e,"variableType"),p([this.storageLocation?[y,t.call(e,"storageLocation")]:""," ",t.call(e,"name")])],{id:Symbol("Slang.VariableDeclarationStatement.variables")});return[r,m(t.call(e,"value"),{groupId:r.id}),";"]}}s()}catch(t){s(t)}}))},6030:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{L:()=>c});var i=r(4675),n=r(801),a=r(9979),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.VariableDeclarationType;let r=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.C(t.variant,e),r=(0,n.D5)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},1829:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{y:()=>c});var i=r(4675),n=r(801),a=r(8926),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.VariableDeclarationValue;let r=(0,n.sQ)(t);this.expression=new a.r(t.expression,e),r=(0,n.D5)(r,[this.expression]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[" = ",t.call(e,"expression")]}}s()}catch(t){s(t)}}))},852:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{L:()=>l});var i=r(4675),n=r(801),a=r(8225),o=r(6336),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t){this.kind=i.q3.VersionExpression;let e=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.VersionRange:this.variant=new a.G(t.variant);break;case i.q3.VersionTerm:this.variant=new o.B(t.variant);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}e=(0,n.D5)(e,[this.variant]),this.comments=e.comments,this.loc=e.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},3586:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{T:()=>h});var i=r(838),n=r(4675),a=r(801),o=r(852),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{join:l}=i.doc.builders;class h{constructor(t){this.kind=n.q3.VersionExpressionSet;let e=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.L(t))),e=(0,a.D5)(e,[this.items]),this.comments=e.comments,this.loc=e.loc}print(t,e){return l(" ",t.map(e,"items"))}}s()}catch(t){s(t)}}))},4313:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{k:()=>c});var i=r(4675),n=r(801),a=r(3586),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.VersionExpressionSets;let e=(0,n.sQ)(t,!0);this.items=t.items.map((t=>new a.T(t))),this.separators=t.separators.map((t=>t.unparse())),e=(0,n.D5)(e,[this.items]),this.comments=e.comments,this.loc=e.loc}print(t,e){return t.map(e,"items").map(((t,e)=>0===e?t:[` ${this.separators[e-1]} `,t]))}}s()}catch(t){s(t)}}))},3091:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{w:()=>c});var i=r(4675),n=r(801),a=r(717),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.VersionLiteral;let e=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.i(t.variant),e=(0,n.D5)(e,"string"==typeof this.variant?[]:[this.variant]),this.comments=e.comments,this.loc=e.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},2754:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{X:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.VersionOperator;const e=(0,n.sQ)(t);this.variant=t.variant.unparse(),this.comments=e.comments,this.loc=e.loc}print(){return this.variant}}s()}catch(t){s(t)}}))},8234:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{h:()=>c});var i=r(4675),n=r(801),a=r(4313),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.VersionPragma;let e=(0,n.sQ)(t);this.sets=new a.k(t.sets),e=(0,n.D5)(e,[this.sets]),this.comments=e.comments,this.loc=e.loc}print(t,e){return["solidity ",t.call(e,"sets")]}}s()}catch(t){s(t)}}))},8225:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{G:()=>c});var i=r(4675),n=r(801),a=r(3091),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.VersionRange;let e=(0,n.sQ)(t);this.start=new a.w(t.start),this.end=new a.w(t.end),e=(0,n.D5)(e,[this.start,this.end]),this.comments=e.comments,this.loc=e.loc}print(t,e){return[t.call(e,"start")," - ",t.call(e,"end")]}}s()}catch(t){s(t)}}))},6336:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{B:()=>l});var i=r(4675),n=r(801),a=r(2754),o=r(3091),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t){this.kind=i.q3.VersionTerm;let e=(0,n.sQ)(t);t.operator&&(this.operator=new a.X(t.operator)),this.literal=new o.w(t.literal),e=(0,n.D5)(e,[this.operator,this.literal]),this.comments=e.comments,this.loc=e.loc}print(t,e){return[t.call(e,"operator"),t.call(e,"literal")]}}s()}catch(t){s(t)}}))},826:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{x:()=>m});var i=r(838),n=r(4675),a=r(8941),o=r(801),c=r(8926),l=r(5211),h=t([n,o,c,l]);[n,o,c,l]=h.then?(await h)():h;const{group:u,indent:d,line:p}=i.doc.builders;class m{constructor(t,e){this.kind=n.q3.WhileStatement;let r=(0,o.sQ)(t);this.condition=new c.r(t.condition,e),this.body=new l.W(t.body,e),r=(0,o.D5)(r,[this.condition,this.body]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["while (",(0,a.K)(t.call(e,"condition")),")",this.body.variant.kind===n.q3.Block?[" ",t.call(e,"body")]:u(d([p,t.call(e,"body")]))]}}s()}catch(t){s(t)}}))},9466:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(9838),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.YulArguments;let r=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.h(t,e))),this.separators=t.separators.map((t=>t.unparse())),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},5101:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{W:()=>c});var i=r(4675),n=r(801),a=r(8906),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.YulAssignmentOperator;let e=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.d(t.variant),e=(0,n.D5)(e,"string"==typeof this.variant?[]:[this.variant]),this.comments=e.comments,this.loc=e.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},2319:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{M:()=>c});var i=r(4675),n=r(801),a=r(1514),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.YulBlock;let r=(0,n.sQ)(t);this.statements=new a.f(t.statements,e),r=(0,n.D5)(r,[this.statements]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["{",t.call(e,"statements"),"}"]}}s()}catch(t){s(t)}}))},2888:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{b:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.YulBreakStatement;const e=(0,n.sQ)(t);this.comments=e.comments,this.loc=e.loc}print(){return"break"}}s()}catch(t){s(t)}}))},5789:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{E:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.YulBuiltInFunction;const e=(0,n.sQ)(t);this.variant=t.variant.unparse(),this.comments=e.comments,this.loc=e.loc}print(){return this.variant}}s()}catch(t){s(t)}}))},8906:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{d:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.YulColonAndEqual;const e=(0,n.sQ)(t);this.comments=e.comments,this.loc=e.loc}print(){return":="}}s()}catch(t){s(t)}}))},900:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{N:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.YulContinueStatement;const e=(0,n.sQ)(t);this.comments=e.comments,this.loc=e.loc}print(){return"continue"}}s()}catch(t){s(t)}}))},3495:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{a:()=>c});var i=r(4675),n=r(801),a=r(2319),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t,e){this.kind=i.q3.YulDefaultCase;let r=(0,n.sQ)(t);this.body=new a.M(t.body,e),r=(0,n.D5)(r,[this.body]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["default ",t.call(e,"body")]}}s()}catch(t){s(t)}}))},2830:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{T:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.YulEqualAndColon;const e=(0,n.sQ)(t);this.comments=e.comments,this.loc=e.loc}print(){return"=:"}}s()}catch(t){s(t)}}))},9838:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{h:()=>u});var i=r(4675),n=r(801),a=r(9878),o=r(7769),c=r(5789),l=r(3859),h=t([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u{constructor(t,e){this.kind=i.q3.YulExpression;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.YulFunctionCallExpression:this.variant=new a.V(t.variant,e);break;case i.q3.YulLiteral:this.variant=new o.K(t.variant,e);break;case i.q3.YulBuiltInFunction:this.variant=new c.E(t.variant);break;case i.q3.YulPath:this.variant=new l.i(t.variant);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},9192:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{D:()=>u});var i=r(4675),n=r(838),a=r(801),o=r(2319),c=r(9838),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{join:h}=n.doc.builders;class u{constructor(t,e){this.kind=i.q3.YulForStatement;let r=(0,a.sQ)(t);this.initialization=new o.M(t.initialization,e),this.condition=new c.h(t.condition,e),this.iterator=new o.M(t.iterator,e),this.body=new o.M(t.body,e),r=(0,a.D5)(r,[this.initialization,this.condition,this.iterator,this.body]),this.comments=r.comments,this.loc=r.loc}print(t,e){return h(" ",["for",t.call(e,"initialization"),t.call(e,"condition"),t.call(e,"iterator"),t.call(e,"body")])}}s()}catch(t){s(t)}}))},9878:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{V:()=>l});var i=r(4675),n=r(801),a=r(9838),o=r(9466),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.YulFunctionCallExpression;let r=(0,n.sQ)(t);this.operand=new a.h(t.operand,e),this.arguments=new o.H(t.arguments,e),r=(0,n.D5)(r,[this.operand,this.arguments]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"operand"),"(",t.call(e,"arguments"),")"]}}s()}catch(t){s(t)}}))},3457:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>u});var i=r(4675),n=r(801),a=r(5427),o=r(8026),c=r(3437),l=r(2319),h=t([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u{constructor(t,e){this.kind=i.q3.YulFunctionDefinition;let r=(0,n.sQ)(t);this.name=new a.E(t.name),this.parameters=new o.f(t.parameters),t.returns&&(this.returns=new c.c(t.returns)),this.body=new l.M(t.body,e),r=(0,n.D5)(r,[this.parameters,this.returns,this.body]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["function ",t.call(e,"name"),t.call(e,"parameters"),t.call(e,"returns")||" ",t.call(e,"body")]}}s()}catch(t){s(t)}}))},5427:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{E:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.hP.YulIdentifier;const e=(0,n.sQ)(t);this.value=t.unparse(),this.comments=e.comments,this.loc=e.loc}print(){return this.value}}s()}catch(t){s(t)}}))},6570:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{N:()=>l});var i=r(4675),n=r(801),a=r(9838),o=r(2319),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.YulIfStatement;let r=(0,n.sQ)(t);this.condition=new a.h(t.condition,e),this.body=new o.M(t.body,e),r=(0,n.D5)(r,[this.condition,this.body]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["if ",t.call(e,"condition")," ",t.call(e,"body")]}}s()}catch(t){s(t)}}))},672:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(5427),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{dedent:l,line:h}=i.doc.builders;class u{constructor(t){this.kind=n.q3.YulLabel;const e=(0,a.sQ)(t);this.label=new o.E(t.label),this.comments=e.comments,this.loc=e.loc}print(t,e){return[l(h),t.call(e,"label"),":"]}}s()}catch(t){s(t)}}))},9976:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{d:()=>o});var i=r(4675),n=r(801),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.kind=i.q3.YulLeaveStatement;const e=(0,n.sQ)(t);this.comments=e.comments,this.loc=e.loc}print(){return"leave"}}s()}catch(t){s(t)}}))},7769:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K:()=>l});var i=r(4675),n=r(801),a=r(5191),o=r(3562),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.YulLiteral;let r=(0,n.sQ)(t);if(t.variant instanceof i.xo)this.variant=t.variant.unparse();else switch(t.variant.cst.kind){case i.q3.HexStringLiteral:this.variant=new a.C(t.variant,e);break;case i.q3.StringLiteral:this.variant=new o.L(t.variant,e);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,"string"==typeof this.variant?[]:[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},9388:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(4675),n=r(7578),a=r(801),o=r(5427),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l{constructor(t){this.kind=i.q3.YulParameters;const e=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.E(t))),this.separators=t.separators.map((t=>t.unparse())),this.comments=e.comments,this.loc=e.loc}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}}))},8026:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{f:()=>c});var i=r(4675),n=r(801),a=r(9388),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.YulParametersDeclaration;let e=(0,n.sQ)(t);this.parameters=new a.j(t.parameters),e=(0,n.D5)(e,[this.parameters]),this.comments=e.comments,this.loc=e.loc}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}}))},3859:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>c});var i=r(4675),n=r(801),a=r(4400),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.YulPath;let e=(0,n.sQ)(t,!0);this.items=t.items.map((t=>new a.j(t))),this.separators=t.separators.map((t=>t.unparse())),e=(0,n.D5)(e,[this.items]),this.comments=e.comments,this.loc=e.loc}print(t,e){return t.map(e,"items").map(((t,e)=>0===e?t:[this.separators[e-1],t]))}}s()}catch(t){s(t)}}))},4400:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{j:()=>c});var i=r(4675),n=r(801),a=r(5427),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.YulPathComponent;const e=(0,n.sQ)(t);this.variant=new a.E(t.variant),this.comments=e.comments,this.loc=e.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},8578:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{F:()=>c});var i=r(4675),n=r(801),a=r(3859),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.YulPaths;let e=(0,n.sQ)(t,!0);this.items=t.items.map((t=>new a.i(t))),this.separators=t.separators.map((t=>t.unparse())),e=(0,n.D5)(e,[this.items]),this.comments=e.comments,this.loc=e.loc}print(t,e){return t.map(e,"items").map(((t,e)=>0===e?t:[this.separators[e-1],t]))}}s()}catch(t){s(t)}}))},3437:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{c:()=>u});var i=r(838),n=r(4675),a=r(8941),o=r(801),c=r(8634),l=t([n,o,c]);[n,o,c]=l.then?(await l)():l;const{line:h}=i.doc.builders;class u{constructor(t){this.kind=n.q3.YulReturnsDeclaration;let e=(0,o.sQ)(t);this.variables=new c.b(t.variables),e=(0,o.D5)(e,[this.variables]),this.comments=e.comments,this.loc=e.loc}print(t,e){return(0,a.K)(["->",t.call(e,"variables")],{firstSeparator:h})}}s()}catch(t){s(t)}}))},5003:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>c});var i=r(4675),n=r(801),a=r(2830),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.YulStackAssignmentOperator;let e=(0,n.sQ)(t);this.variant=t.variant instanceof i.xo?t.variant.unparse():new a.T(t.variant),e=(0,n.D5)(e,"string"==typeof this.variant?[]:[this.variant]),this.comments=e.comments,this.loc=e.loc}print(t,e){return"string"==typeof this.variant?this.variant:t.call(e,"variant")}}s()}catch(t){s(t)}}))},5394:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{f:()=>d});var i=r(4675),n=r(838),a=r(801),o=r(8941),c=r(5003),l=r(5427),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d{constructor(t){this.kind=i.q3.YulStackAssignmentStatement;let e=(0,a.sQ)(t);this.assignment=new c.g(t.assignment),this.variable=new l.E(t.variable),e=(0,a.D5)(e,[this.assignment]),this.comments=e.comments,this.loc=e.loc}print(t,e){return[t.call(e,"assignment"),(0,o.K)(t.call(e,"variable"),{firstSeparator:u,lastSeparator:""})]}}s()}catch(t){s(t)}}))},6155:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>v});var i=r(4675),n=r(801),a=r(2319),o=r(3457),c=r(8453),l=r(3752),h=r(5394),u=r(6570),d=r(9192),p=r(1335),m=r(9976),y=r(2888),f=r(900),g=r(672),w=r(9838),x=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]=x.then?(await x)():x;class v{constructor(t,e){this.kind=i.q3.YulStatement;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.YulBlock:this.variant=new a.M(t.variant,e);break;case i.q3.YulFunctionDefinition:this.variant=new o.g(t.variant,e);break;case i.q3.YulVariableDeclarationStatement:this.variant=new c.O(t.variant,e);break;case i.q3.YulVariableAssignmentStatement:this.variant=new l.x(t.variant,e);break;case i.q3.YulStackAssignmentStatement:this.variant=new h.f(t.variant);break;case i.q3.YulIfStatement:this.variant=new u.N(t.variant,e);break;case i.q3.YulForStatement:this.variant=new d.D(t.variant,e);break;case i.q3.YulSwitchStatement:this.variant=new p.Q(t.variant,e);break;case i.q3.YulLeaveStatement:this.variant=new m.d(t.variant);break;case i.q3.YulBreakStatement:this.variant=new y.b(t.variant);break;case i.q3.YulContinueStatement:this.variant=new f.N(t.variant);break;case i.q3.YulLabel:this.variant=new g.p(t.variant);break;case i.q3.YulExpression:this.variant=new w.h(t.variant,e);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},1514:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{f:()=>p});var i=r(838),n=r(4675),a=r(8941),o=r(7134),c=r(1041),l=r(801),h=r(6155),u=t([n,o,c,l,h]);[n,o,c,l,h]=u.then?(await u)():u;const{hardline:d}=i.doc.builders;class p{constructor(t,e){this.kind=n.q3.YulStatements;let r=(0,l.sQ)(t,!0);this.items=t.items.map((t=>new h.C(t,e))),r=(0,l.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e,r){return 0===this.items.length&&0===this.comments.length?"":(0,a.K)([(0,c.V)(t,e,r),(0,o.i)(t)],{firstSeparator:d,grouped:!1})}}s()}catch(t){s(t)}}))},2688:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{p:()=>l});var i=r(4675),n=r(801),a=r(3495),o=r(3211),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.YulSwitchCase;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.YulDefaultCase:this.variant=new a.a(t.variant,e);break;case i.q3.YulValueCase:this.variant=new o.G(t.variant,e);break;default:throw new Error(`Unexpected variant: ${t.variant.cst.kind}`)}r=(0,n.D5)(r,[this.variant]),this.comments=r.comments,this.loc=r.loc}print(t,e){return t.call(e,"variant")}}s()}catch(t){s(t)}}))},9543:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{q:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(2688),c=t([n,a,o]);[n,a,o]=c.then?(await c)():c;const{hardline:l,join:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.YulSwitchCases;let r=(0,a.sQ)(t,!0);this.items=t.items.map((t=>new o.p(t,e))),r=(0,a.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc}print(t,e){return h(l,t.map(e,"items"))}}s()}catch(t){s(t)}}))},1335:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Q:()=>u});var i=r(838),n=r(4675),a=r(801),o=r(9838),c=r(9543),l=t([n,a,o,c]);[n,a,o,c]=l.then?(await l)():l;const{hardline:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.YulSwitchStatement;let r=(0,a.sQ)(t);this.expression=new o.h(t.expression,e),this.cases=new c.q(t.cases,e),r=(0,a.D5)(r,[this.expression,this.cases]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["switch ",t.call(e,"expression"),h,t.call(e,"cases")]}}s()}catch(t){s(t)}}))},3211:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{G:()=>l});var i=r(4675),n=r(801),a=r(7769),o=r(2319),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.YulValueCase;let r=(0,n.sQ)(t);this.value=new a.K(t.value,e),this.body=new o.M(t.body,e),r=(0,n.D5)(r,[this.value,this.body]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["case ",t.call(e,"value")," ",t.call(e,"body")]}}s()}catch(t){s(t)}}))},3752:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{x:()=>d});var i=r(4675),n=r(838),a=r(801),o=r(8578),c=r(5101),l=r(9838),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;const{join:u}=n.doc.builders;class d{constructor(t,e){this.kind=i.q3.YulVariableAssignmentStatement;let r=(0,a.sQ)(t);this.variables=new o.F(t.variables),this.assignment=new c.W(t.assignment),this.expression=new l.h(t.expression,e),r=(0,a.D5)(r,[this.variables,this.assignment,this.expression]),this.comments=r.comments,this.loc=r.loc}print(t,e){return u(" ",[t.call(e,"variables"),t.call(e,"assignment"),t.call(e,"expression")])}}s()}catch(t){s(t)}}))},8453:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{O:()=>h});var i=r(4675),n=r(801),a=r(1e3),o=r(9861),c=r(8634),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h{constructor(t,e){this.kind=i.q3.YulVariableDeclarationStatement;let r=(0,n.sQ)(t);this.variables=new c.b(t.variables),t.value&&(this.value=new o.S(t.value,e)),r=(0,n.D5)(r,[this.value]),this.comments=r.comments,this.loc=r.loc}print(t,e){return(0,a.I)(" ",[["let",t.call(e,"variables")],t.call(e,"value")])}}s()}catch(t){s(t)}}))},9861:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{S:()=>l});var i=r(4675),n=r(801),a=r(5101),o=r(9838),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.YulVariableDeclarationValue;let r=(0,n.sQ)(t);this.assignment=new a.W(t.assignment),this.expression=new o.h(t.expression,e),r=(0,n.D5)(r,[this.assignment,this.expression]),this.comments=r.comments,this.loc=r.loc}print(t,e){return[t.call(e,"assignment")," ",t.call(e,"expression")]}}s()}catch(t){s(t)}}))},8634:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{b:()=>u});var i=r(4675),n=r(838),a=r(7578),o=r(801),c=r(5427),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u{constructor(t){this.kind=i.q3.YulVariableNames;const e=(0,o.sQ)(t,!0);this.items=t.items.map((t=>new c.E(t))),this.separators=t.separators.map((t=>t.unparse())),this.comments=e.comments,this.loc=e.loc}print(t,e){return(0,a.J)(t.map(e,"items"),{firstSeparator:h,lastSeparator:""})}}s()}catch(t){s(t)}}))},1059:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{f:()=>u});var i=r(4675),n=r(838),a=r(1376),o=t([i,a]);[i,a]=o.then?(await o)():o;const{group:c,line:l}=n.doc.builders;function h(t,e,r){const s=[l,e.call(r,"rightOperand")];return t.leftOperand.variant.kind!==i.hP.Identifier&&(0,a.D)(t.leftOperand.variant)||(0,a.D)(e.getNode(2))?s:c(s)}const u=(t,e)=>(r,s,i,n)=>{const a=t(s),o=e(s,n);return a([s.call(i,"leftOperand"),` ${r.operator}`,o(h(r,s,i))])};s()}catch(d){s(d)}}))},4209:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{W:()=>m});var i=r(4675),n=r(838),a=r(1059),o=r(6563),c=t([i,a]);[i,a]=c.then?(await c)():c;const{group:l,indent:h}=n.doc.builders,u=(0,o.n)([i.q3.AdditiveExpression,i.q3.MultiplicativeExpression,i.q3.ExponentiationExpression,i.q3.AssignmentExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.AndExpression,i.q3.OrExpression,i.q3.ShiftExpression]),d=t=>e=>{const r=t.getNode(2);return u(r)?e:l(e)},p=t=>e=>{let r=t.getNode();for(let s=2;;s+=2){const n=t.getNode(s);if(n.kind===i.q3.ReturnStatement)break;if(!u(n))return h(e);if(r===n.rightOperand.variant)break;r=n}return e},m=(0,a.f)(d,p);s()}catch(t){s(t)}}))},7134:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>u});var i=r(838),n=r(7431),a=r(7540),o=r(1e3),c=t([n,a]);[n,a]=c.then?(await c)():c;const{breakParent:l,line:h}=i.doc.builders;function u(t){return(0,o.I)(h,t.map((t=>{const e=t.getNode();if(e.trailing||e.leading||e.printed)return"";e.printed=!0;const r=(0,n.X)(t);return(0,a.t)(e)?r:[r,l]}),"comments"))}s()}catch(d){s(d)}}))},8041:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{u:()=>m});var i=r(4675),n=r(838),a=r(6563),o=r(1376),c=r(1059),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{group:h,indent:u}=n.doc.builders,d=(0,a.n)([i.q3.ReturnStatement,i.q3.IfStatement,i.q3.WhileStatement]),p=t=>e=>{let r=t.getNode();for(let s=2;;s+=2){const n=t.getNode(s);if(n.kind===i.q3.ExpressionStatement){if(t.getNode(s+1).kind===i.q3.ForStatementCondition)break;return u(e)}if(d(n))break;if(!(0,o.D)(n))return u(e);if(r===n.rightOperand.variant)break;r=n}return e},m=(0,c.f)((()=>t=>h(t)),p);s()}catch(t){s(t)}}))},304:(t,e,r)=>{r.d(e,{c:()=>l});var s=r(838),i=r(1e3);const{dedent:n,group:a,indent:o,line:c}=s.doc.builders;function l(t,e,r,s){return[a([t,r.call(s,"parameters"),o(a([(0,i.I)(c,[r.call(s,"attributes"),r.call(s,"returns")]),e.body&&";"!==e.body.variant?n(c):""]))]),r.call(s,"body")]}},7958:(t,e,r)=>{r.d(e,{a:()=>a});var s=r(838);const{hardline:i,join:n}=s.doc.builders;function a(t){const e=t.value.split("\n");return n(i,e.map(((t,r)=>0===r?t.trimEnd():` ${r<e.length-1?t.trim():t.trimStart()}`)))}},8409:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{a:()=>y});var i=r(4675),n=r(838),a=r(6563),o=r(1376),c=r(1059),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{group:h,indent:u}=n.doc.builders,d=(0,a.n)([i.q3.ReturnStatement,i.q3.IfStatement,i.q3.WhileStatement]),p=t=>e=>(0,o.D)(t.getNode(2))?e:h(e),m=(t,e)=>r=>{let s=t.getNode();for(let n=2;;n+=2){const a=t.getNode(n);if(d(a))break;if(e.experimentalTernaries&&a.kind===i.q3.ConditionalExpression&&a.operand.variant===s)break;if(!(0,o.D)(a))return u(r);if(s===a.rightOperand.variant)break;s=a}return r},y=(0,c.f)(p,m);s()}catch(t){s(t)}}))},1041:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{V:()=>l});var i=r(4675),n=r(838),a=r(9060),o=t([i]);i=(o.then?(await o)():o)[0];const{hardline:c}=n.doc.builders;function l(t,e,r){return t.map((t=>{const s=t.getNode();return[t.isFirst||s.kind===i.q3.YulStatement&&s.variant.kind===i.q3.YulLabel?"":c,e(t),!t.isLast&&n.util.isNextLineEmpty(r.originalText,(0,a.I)(s))?c:""]}),"items")}s()}catch(h){s(h)}}))},8941:(t,e,r)=>{r.d(e,{K:()=>o});var s=r(838);const{group:i,indent:n,softline:a}=s.doc.builders;function o(t,{firstSeparator:e=a,lastSeparator:r=e,grouped:s=!0}={}){return s?i([n([e,t]),r]):[n([e,t]),r]}},7578:(t,e,r)=>{r.d(e,{J:()=>o});var s=r(838),i=r(8941);const{join:n,line:a}=s.doc.builders;function o(t,{firstSeparator:e,separator:r=[",",a],lastSeparator:s,grouped:o}={}){return(0,i.K)(n(r,t),{firstSeparator:e,lastSeparator:s,grouped:o})}},1529:(t,e,r)=>{r.d(e,{T:()=>a});var s=r(838);const i="'",n='"';function a(t,e){const r=e.singleQuote?i:n,a=r===i?n:i;let o=0,c=0;for(const e of t)e===r?o++:e===a&&c++;const l=o>c?a:r;return s.util.makeString(t,l)}},142:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{H:()=>u});var i=r(4675),n=r(1376),a=r(8926),o=r(4274),c=r(1634),l=r(7651),h=t([i,n,a,o,c,l]);function u(t){const e=new Set(t);return t=>{if(t.variant.kind!==i.hP.Identifier&&(0,n.D)(t.variant)&&e.has(t.variant.operator)){const{loc:e}=t;return Object.assign(Object.create(a.r.prototype),{kind:i.q3.Expression,loc:Object.assign({},e),comments:[],variant:Object.assign(Object.create(o.b.prototype),{kind:i.q3.TupleExpression,loc:Object.assign({},e),comments:[],items:Object.assign(Object.create(c.X.prototype),{kind:i.q3.TupleValues,loc:Object.assign({},e),comments:[],items:[Object.assign(Object.create(l.E.prototype),{kind:i.q3.TupleValue,loc:Object.assign({},e),comments:[],expression:t})],separators:[]})})})}return t}}[i,n,a,o,c,l]=h.then?(await h)():h,s()}catch(d){s(d)}}))},6563:(t,e,r)=>{function s(t){const e=new Set(t);return t=>e.has(t.kind)}r.d(e,{n:()=>s})},4254:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>m});var i=r(3013),n=r(4675),a=r(6424),o=r(9589),c=r(4313),l=t([i,n,a,c]);[i,n,a,c]=l.then?(await l)():l;const h=a.iX.supportedVersions(),u=Array.from(h.reduce(((t,e)=>(t.add(`^${(0,o.major)(e)}.${(0,o.minor)(e)}.0`),t)),new Set)).reverse().reduce(((t,e)=>(t.push((0,o.maxSatisfying)(h,e)),t.push((0,o.minSatisfying)(h,e)),t)),[]),d=[n.XK.parse("[VersionPragma @versionRanges [VersionExpressionSets]]")];let p;function m(t,e){const r=(0,o.maxSatisfying)(h,e.compiler);if(r)return p&&p.version===r||(p=a.iX.create(r)),[p,p.parse(n.q3.SourceUnit,t)];let s,i=!1;p?i=!0:p=a.iX.create(u[0]);let c=[];try{s=p.parse(n.q3.SourceUnit,t),c=y(s,p,i)}catch(e){for(let e=i?0:1;e<=u.length;e+=1)try{const r=u[e];p=a.iX.create(r),s=p.parse(n.q3.SourceUnit,t),c=y(s,p);break}catch(t){continue}}const l=c.reduce(((t,r)=>{if(!(0,o.validRange)(r))throw new Error("Couldn't infer any version from the ranges in the pragmas"+(e.filepath?` for file ${e.filepath}`:""));return t.filter((t=>(0,o.satisfies)(t,r)))}),h),d=l.length>0?l[l.length-1]:h[h.length-1];return d!==p.version&&(p=a.iX.create(d),s=p.parse(n.q3.SourceUnit,t)),[p,s]}function y(t,e,r=!1){const s=t.createTreeCursor().query(d),n=[];let a;for(;a=s.next();){const t=new i.ktF(a.captures.versionRanges[0].node.asNonterminalNode());n.push(new c.k(t).comments.reduce(((t,e)=>t.replace(e.value," ")),t.cst.unparse()))}if(0===n.length){if(!r&&t.isValid())return[e.version];throw new Error(`Using version ${e.version} did not find any pragma statement and does not parse without errors.`)}return n}s()}catch(f){s(f)}}))},1376:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{D:()=>o});var i=r(4675),n=r(6563),a=t([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.q3.AdditiveExpression,i.q3.MultiplicativeExpression,i.q3.ExponentiationExpression,i.q3.AssignmentExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.ComparisonExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression,i.q3.ShiftExpression]);s()}catch(t){s(t)}}))},7540:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>c,t:()=>o});var i=r(4675),n=r(6563),a=t([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.hP.MultiLineComment,i.hP.MultiLineNatSpecComment]),c=(0,n.n)([i.hP.MultiLineComment,i.hP.MultiLineNatSpecComment,i.hP.SingleLineComment,i.hP.SingleLineNatSpecComment]);s()}catch(t){s(t)}}))},9959:(t,e,r)=>{function s(t){const e=t.value.slice(1,-1).split("\n");return e.length>1&&e.every((t=>"*"===t.trimStart()[0]))}r.d(e,{f:()=>s})},4079:(t,e,r)=>{function s(t){return"label"===t.type}r.d(e,{J:()=>s})},1e3:(t,e,r)=>{r.d(e,{I:()=>n});var s=r(838);const{join:i}=s.doc.builders;function n(t,e){return i(t,e.filter(Boolean))}},9060:(t,e,r)=>{function s(t){return"string"==typeof t||void 0===t?-1:t.loc.start}function i(t){return"string"==typeof t||void 0===t?-1:t.loc.end}r.d(e,{I:()=>i,z:()=>s})},801:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{D5:()=>w,Ee:()=>m,sQ:()=>f});var i=r(4675),n=r(6563),a=r(7088),o=r(7576),c=r(9441),l=r(4867),h=r(7540),u=t([i,a,o,c,l,h]);[i,a,o,c,l,h]=u.then?(await u)():u;const d=(0,n.n)([i.hP.MultiLineComment,i.hP.MultiLineNatSpecComment,i.hP.SingleLineComment,i.hP.SingleLineNatSpecComment,i.hP.EndOfLine,i.hP.Whitespace]),p=new Map;function m(){p.clear()}function y(t){let e=0;for(const r of t){if(r.isNonterminalNode()||!d(r))return e;e+=r.textLength.utf16}return e}function f(t,e=!1){if(t instanceof i.xo){const e=p.get(t.id)||0;return{comments:[],loc:{start:e,end:e+t.textLength.utf16,leadingOffset:0,trailingOffset:0}}}const r=t.cst.children.map((t=>t.node)),s=p.get(t.cst.id)||0;let n=s;const u=r.reduce(((t,e)=>{if(e.isNonterminalNode())p.set(e.id,n);else switch((0,h.C)(e)&&p.set(e.id,n),e.kind){case i.hP.MultiLineComment:t.push(new a.j(e));break;case i.hP.MultiLineNatSpecComment:t.push(new o.H(e));break;case i.hP.SingleLineComment:t.push(new c.a(e));break;case i.hP.SingleLineNatSpecComment:t.push(new l.c(e));break;case i.hP.Identifier:case i.hP.YulIdentifier:p.set(e.id,n)}return n+=e.textLength.utf16,t}),[]),d=e?0:y(r),m=e?0:y(r.reverse());return{comments:u,loc:{start:s+d,end:s+t.cst.textLength.utf16-m,leadingOffset:d,trailingOffset:m}}}function g(t,e){if(e){if(Array.isArray(e))return e.reduce(g,t);e.comments.length>0&&t.push(...e.comments.splice(0))}return t}function w(t,e){const r=e.reduce(g,t.comments),{loc:s}=t;if(0===s.leadingOffset)for(const t of e){if(void 0===t||Array.isArray(t))continue;const e=t.loc;if(e.start-e.leadingOffset===s.start){s.leadingOffset=e.leadingOffset,s.start+=e.leadingOffset;break}}if(0===s.trailingOffset)for(const t of e.reverse()){if(void 0===t||Array.isArray(t))continue;const e=t.loc;if(e.end+e.trailingOffset===s.end){s.trailingOffset=e.trailingOffset,s.end-=e.trailingOffset;break}}return{comments:r,loc:s}}s()}catch(x){s(x)}}))},3111:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{k:()=>c});var i=r(4675),n=t([i]);i=(n.then?(await n)():n)[0];const a=new Set(["external","internal","public","private"]),o=new Set(["pure","constant","payable","view"]);function c(t,e){const r=t.variant,s=e.variant,n="string"==typeof r,c="string"==typeof s;if(n&&!c)return-1;if(c&&!n)return 1;if(n&&c){if(a.has(r))return-1;if(a.has(s))return 1;if(o.has(r))return-1;if(o.has(s))return 1}if(!n&&!c){if(r.kind===i.q3.OverrideSpecifier&&s.kind===i.q3.ModifierInvocation)return-1;if(s.kind===i.q3.OverrideSpecifier&&r.kind===i.q3.ModifierInvocation)return 1}return 0}s()}catch(l){s(l)}}))},466:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(7540),n=r(9060),a=t([i]);function o(t){return t.comments&&t.comments.some((t=>"prettier-ignore"===t.value.slice(2,(0,i.t)(t)?-2:void 0).trim()))}function c(t){const e=t.getNode();if(null==e||"object"!=typeof e)return;const r=Object.keys(e);for(const s of r)switch(s){case"kind":case"loc":case"print":break;case"comments":t.each((t=>{t.getNode().printed=!0}),"comments");break;default:const r=e[s];if("object"==typeof r){if(Array.isArray(r))return void t.each(c,s);t.call(c,s)}}}function l(t,e,r){const s=t.getNode();return null==s?"":o(s)?(c(t),e.originalText.slice((0,n.z)(s),(0,n.I)(s))):s.print(t,r,e)}i=(a.then?(await a)():a)[0];const h=l;s()}catch(u){s(u)}}))},3927:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(3013),n=r(801),a=r(4254),o=r(6811),c=t([i,n,a,o]);function l(t,e){const[r,s]=(0,a.C)(t,e);if(s.isValid()){e.compiler=r.version;const t=new o.M(new i.Mk(s.tree.asNonterminalNode()),e);return(0,n.Ee)(),t}throw new Error(s.errors[0].message)}[i,n,a,o]=c.then?(await c)():c,s()}catch(h){s(h)}}))},7870:(t,e,r)=>{t.exports=r.p+"31ca71009a37f38d3a02.wasm"},1112:(t,e,r)=>{t.exports=r.p+"8c7945c354c0e90e3eea.wasm"},9719:(t,e,r)=>{t.exports=r.p+"ffc577b688b8d07825c1.wasm"},450:(t,e,r)=>{t.exports=r.p+"fe6fce76f8236b8b86c6.wasm"},838:t=>{t.exports=Object("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{}).prettier},6463:t=>{t.exports=import("fs/promises")},8664:(t,e,r)=>{r.d(e,{NS:()=>u,Uo:()=>g,bX:()=>f,cA:()=>l,vF:()=>w}),r(4863);var s=r(9340);const{InputStream:i,OutputStream:n}=s.oS,a=Symbol.dispose??Symbol.for("dispose");let o=[],c=[];const l={getEnvironment:()=>o,getArguments:()=>c,initialCwd:()=>"/"};class h extends Error{constructor(t){super("Component exited "+(t?"successfully":"with error")),this.exitError=!0,this.ok=t}}const u={exit(t){throw new h("err"===t.tag)}},d=new i({blockingRead(t){},subscribe(){},[a](){}});let p=new TextDecoder;const m=new n({write(t){10==t[t.length-1]&&(t=t.subarray(0,t.length-1)),console.log(p.decode(t))},blockingFlush(){},[a](){}}),y=new n({write(t){10==t[t.length-1]&&(t=t.subarray(0,t.length-1)),console.error(p.decode(t))},blockingFlush(){},[a](){}}),f={InputStream:i,getStdin:()=>d},g={OutputStream:n,getStdout:()=>m},w={OutputStream:n,getStderr:()=>y};class x{}new x,new x,new class{}},4863:(t,e,r)=>{r.d(e,{gK:()=>y,jw:()=>m});var s=r(9340);r(8664);const{InputStream:i,OutputStream:n}=s.oS;const a={seconds:BigInt(0),nanoseconds:0};function o(t,e,r){"."===e&&p&&u(p[0])===t&&(e="/").startsWith("/")&&"/"!==e&&(e=e.slice(1));let s,i=t;do{if(!i||!i.dir)throw"not-directory";s=e.indexOf("/");const t=-1===s?e:e.slice(0,s);if(".."===t)throw"no-entry";"."===t||""===t||(i=!i.dir[t]&&r.create?i.dir[t]=r.directory?{dir:{}}:{source:new Uint8Array([])}:i.dir[t]),e=e.slice(s+1)}while(-1!==s);if(!i)throw"no-entry";return i}function c(t){return"string"==typeof t.source&&(t.source=(new TextEncoder).encode(t.source)),t.source}class l{constructor(t){this.idx=0,this.entries=t}readDirectoryEntry(){if(this.idx===this.entries.length)return null;const[t,e]=this.entries[this.idx];return this.idx+=1,{name:t,type:e.dir?"directory":"regular-file"}}}class h{#t;#e;#r=0;_getEntry(t){return t.#e}constructor(t,e){e?this.#t=t:this.#e=t}readViaStream(t){const e=c(this.#e);let r=Number(t);return new i({blockingRead(t){if(r===e.byteLength)throw{tag:"closed"};const s=e.slice(r,r+Number(t));return r+=s.byteLength,s}})}writeViaStream(t){const e=this.#e;let r=Number(t);return new n({write(t){const s=new Uint8Array(t.byteLength+e.source.byteLength);return s.set(e.source,0),s.set(t,r),r+=t.byteLength,e.source=s,t.byteLength}})}appendViaStream(){console.log("[filesystem] APPEND STREAM")}advise(t,e,r,s){console.log("[filesystem] ADVISE",t,e,r,s)}syncData(){console.log("[filesystem] SYNC DATA")}getFlags(){console.log("[filesystem] FLAGS FOR")}getType(){return this.#t?"fifo":this.#e.dir?"directory":this.#e.source?"regular-file":"unknown"}setSize(t){console.log("[filesystem] SET SIZE",t)}setTimes(t,e){console.log("[filesystem] SET TIMES",t,e)}read(t,e){const r=c(this.#e);return[r.slice(e,e+t),e+t>=r.byteLength]}write(t,e){if(0!==e)throw"invalid-seek";return this.#e.source=t,t.byteLength}readDirectory(){if(!this.#e?.dir)throw"bad-descriptor";return new l(Object.entries(this.#e.dir).sort((([t],[e])=>t>e?1:-1)))}sync(){console.log("[filesystem] SYNC")}createDirectoryAt(t){if(o(this.#e,t,{create:!0,directory:!0}).source)throw"exist"}stat(){let t="unknown",e=BigInt(0);if(this.#e.source){t="regular-file";const r=c(this.#e);e=BigInt(r.byteLength)}else this.#e.dir&&(t="directory");return{type:t,linkCount:BigInt(0),size:e,dataAccessTimestamp:a,dataModificationTimestamp:a,statusChangeTimestamp:a}}statAt(t,e){const r=o(this.#e,e,{create:!1,directory:!1});let s="unknown",i=BigInt(0);if(r.source){s="regular-file";const t=c(r);i=BigInt(t.byteLength)}else r.dir&&(s="directory");return{type:s,linkCount:BigInt(0),size:i,dataAccessTimestamp:a,dataModificationTimestamp:a,statusChangeTimestamp:a}}setTimesAt(){console.log("[filesystem] SET TIMES AT")}linkAt(){console.log("[filesystem] LINK AT")}openAt(t,e,r,s,i){const n=o(this.#e,e,r);return new h(n)}readlinkAt(){console.log("[filesystem] READLINK AT")}removeDirectoryAt(){console.log("[filesystem] REMOVE DIR AT")}renameAt(){console.log("[filesystem] RENAME AT")}symlinkAt(){console.log("[filesystem] SYMLINK AT")}unlinkFileAt(){console.log("[filesystem] UNLINK FILE AT")}isSameObject(t){return t===this}metadataHash(){let t=BigInt(0);return t+=BigInt(this.#r),{upper:t,lower:BigInt(0)}}metadataHashAt(t,e){let r=BigInt(0);return r+=BigInt(this.#r),{upper:r,lower:BigInt(0)}}}const u=h.prototype._getEntry;delete h.prototype._getEntry;let d=[[new h({dir:{}}),"/"]],p=d[0];const m={getDirectories:()=>d},y={Descriptor:h,DirectoryEntryStream:l}},9340:(t,e,r)=>{r.d(e,{oS:()=>a,z3:()=>n});let s=0;const i=Symbol.dispose||Symbol.for("dispose"),n={Error:class{constructor(t){this.msg=t}toDebugString(){return this.msg}}},a={InputStream:class{constructor(t){t||console.trace("no handler"),this.id=++s,this.handler=t}read(t){return this.handler.read?this.handler.read(t):this.handler.blockingRead.call(this,t)}blockingRead(t){return this.handler.blockingRead.call(this,t)}skip(t){if(this.handler.skip)return this.handler.skip.call(this,t);if(this.handler.read){const e=this.handler.read.call(this,t);return BigInt(e.byteLength)}return this.blockingSkip.call(this,t)}blockingSkip(t){if(this.handler.blockingSkip)return this.handler.blockingSkip.call(this,t);const e=this.handler.blockingRead.call(this,t);return BigInt(e.byteLength)}subscribe(){console.log(`[streams] Subscribe to input stream ${this.id}`)}[i](){this.handler.drop&&this.handler.drop.call(this)}},OutputStream:class{constructor(t){t||console.trace("no handler"),this.id=++s,this.open=!0,this.handler=t}checkWrite(t){return this.open?this.handler.checkWrite?this.handler.checkWrite.call(this,t):1000000n:0n}write(t){this.handler.write.call(this,t)}blockingWriteAndFlush(t){this.handler.write.call(this,t)}flush(){this.handler.flush&&this.handler.flush.call(this)}blockingFlush(){this.open=!0}writeZeroes(t){this.write.call(this,new Uint8Array(Number(t)))}blockingWriteZeroes(t){this.blockingWrite.call(this,new Uint8Array(Number(t)))}blockingWriteZeroesAndFlush(t){this.blockingWriteAndFlush.call(this,new Uint8Array(Number(t)))}splice(t,e){const r=Math.min(e,this.checkWrite.call(this)),s=t.read(r);return this.write.call(this,s),s.byteLength}blockingSplice(t,e){console.log(`[streams] Blocking splice ${this.id}`)}forward(t){console.log(`[streams] Forward ${this.id}`)}subscribe(){console.log(`[streams] Subscribe to output stream ${this.id}`)}[i](){}}}},3888:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Mk:()=>o,ktF:()=>Mr});var i=r(1901),n=r(4675),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{members:new xr(t)}})),hs(this.cst.kind,n.q3.SourceUnit)}get members(){return this.fetch().members}}class c{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{pragmaKeyword:t,pragma:new Ce(e),semicolon:r}})),hs(this.cst.kind,n.q3.PragmaDirective)}get pragmaKeyword(){return this.fetch().pragmaKeyword}get pragma(){return this.fetch().pragma}get semicolon(){return this.fetch().semicolon}}class l{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{abicoderKeyword:t,version:e}})),hs(this.cst.kind,n.q3.AbicoderPragma)}get abicoderKeyword(){return this.fetch().abicoderKeyword}get version(){return this.fetch().version}}class h{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{experimentalKeyword:t,feature:new Ke(e)}})),hs(this.cst.kind,n.q3.ExperimentalPragma)}get experimentalKeyword(){return this.fetch().experimentalKeyword}get feature(){return this.fetch().feature}}class u{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{solidityKeyword:t,sets:new Mr(e)}})),hs(this.cst.kind,n.q3.VersionPragma)}get solidityKeyword(){return this.fetch().solidityKeyword}get sets(){return this.fetch().sets}}class d{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{start:new Ne(t),minus:e,end:new Ne(r)}})),hs(this.cst.kind,n.q3.VersionRange)}get start(){return this.fetch().start}get minus(){return this.fetch().minus}get end(){return this.fetch().end}}class p{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operator:void 0===t?void 0:new Ie(t),literal:new Ne(e)}})),hs(this.cst.kind,n.q3.VersionTerm)}get operator(){return this.fetch().operator}get literal(){return this.fetch().literal}}class m{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{importKeyword:t,clause:new De(e),semicolon:r}})),hs(this.cst.kind,n.q3.ImportDirective)}get importKeyword(){return this.fetch().importKeyword}get clause(){return this.fetch().clause}get semicolon(){return this.fetch().semicolon}}class y{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{path:new cr(t),alias:void 0===e?void 0:new x(e)}})),hs(this.cst.kind,n.q3.PathImport)}get path(){return this.fetch().path}get alias(){return this.fetch().alias}}class f{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{asterisk:t,alias:new x(e),fromKeyword:r,path:new cr(s)}})),hs(this.cst.kind,n.q3.NamedImport)}get asterisk(){return this.fetch().asterisk}get alias(){return this.fetch().alias}get fromKeyword(){return this.fetch().fromKeyword}get path(){return this.fetch().path}}class g{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,symbols:new Br(e),closeBrace:r,fromKeyword:s,path:new cr(n)}})),hs(this.cst.kind,n.q3.ImportDeconstruction)}get openBrace(){return this.fetch().openBrace}get symbols(){return this.fetch().symbols}get closeBrace(){return this.fetch().closeBrace}get fromKeyword(){return this.fetch().fromKeyword}get path(){return this.fetch().path}}class w{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:t,alias:void 0===e?void 0:new x(e)}})),hs(this.cst.kind,n.q3.ImportDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class x{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:t,identifier:e}})),hs(this.cst.kind,n.q3.ImportAlias)}get asKeyword(){return this.fetch().asKeyword}get identifier(){return this.fetch().identifier}}class v{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{usingKeyword:t,clause:new Oe(e),forKeyword:r,target:new qe(s),globalKeyword:void 0===n?void 0:n,semicolon:a}})),hs(this.cst.kind,n.q3.UsingDirective)}get usingKeyword(){return this.fetch().usingKeyword}get clause(){return this.fetch().clause}get forKeyword(){return this.fetch().forKeyword}get target(){return this.fetch().target}get globalKeyword(){return this.fetch().globalKeyword}get semicolon(){return this.fetch().semicolon}}class b{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,symbols:new Vr(e),closeBrace:r}})),hs(this.cst.kind,n.q3.UsingDeconstruction)}get openBrace(){return this.fetch().openBrace}get symbols(){return this.fetch().symbols}get closeBrace(){return this.fetch().closeBrace}}class _{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:new ss(t),alias:void 0===e?void 0:new E(e)}})),hs(this.cst.kind,n.q3.UsingDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class E{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:t,operator:new Pe(e)}})),hs(this.cst.kind,n.q3.UsingAlias)}get asKeyword(){return this.fetch().asKeyword}get operator(){return this.fetch().operator}}class T{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{abstractKeyword:void 0===t?void 0:t,contractKeyword:e,name:r,inheritance:void 0===s?void 0:new S(s),openBrace:n,members:new br(a),closeBrace:o}})),hs(this.cst.kind,n.q3.ContractDefinition)}get abstractKeyword(){return this.fetch().abstractKeyword}get contractKeyword(){return this.fetch().contractKeyword}get name(){return this.fetch().name}get inheritance(){return this.fetch().inheritance}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class S{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{isKeyword:t,types:new Hr(e)}})),hs(this.cst.kind,n.q3.InheritanceSpecifier)}get isKeyword(){return this.fetch().isKeyword}get types(){return this.fetch().types}}class k{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ss(t),arguments:void 0===e?void 0:new nr(e)}})),hs(this.cst.kind,n.q3.InheritanceType)}get typeName(){return this.fetch().typeName}get arguments(){return this.fetch().arguments}}class R{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{interfaceKeyword:t,name:e,inheritance:void 0===r?void 0:new S(r),openBrace:s,members:new _r(n),closeBrace:a}})),hs(this.cst.kind,n.q3.InterfaceDefinition)}get interfaceKeyword(){return this.fetch().interfaceKeyword}get name(){return this.fetch().name}get inheritance(){return this.fetch().inheritance}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class A{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{libraryKeyword:t,name:e,openBrace:r,members:new Er(s),closeBrace:n}})),hs(this.cst.kind,n.q3.LibraryDefinition)}get libraryKeyword(){return this.fetch().libraryKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class C{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{structKeyword:t,name:e,openBrace:r,members:new Tr(s),closeBrace:n}})),hs(this.cst.kind,n.q3.StructDefinition)}get structKeyword(){return this.fetch().structKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class K{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Ge(t),name:e,semicolon:r}})),hs(this.cst.kind,n.q3.StructMember)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}get semicolon(){return this.fetch().semicolon}}class L{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{enumKeyword:t,name:e,openBrace:r,members:new jr(s),closeBrace:n}})),hs(this.cst.kind,n.q3.EnumDefinition)}get enumKeyword(){return this.fetch().enumKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class I{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Ge(t),constantKeyword:e,name:r,equal:s,value:new ir(n),semicolon:a}})),hs(this.cst.kind,n.q3.ConstantDefinition)}get typeName(){return this.fetch().typeName}get constantKeyword(){return this.fetch().constantKeyword}get name(){return this.fetch().name}get equal(){return this.fetch().equal}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class N{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Ge(t),attributes:new Sr(e),name:r,value:void 0===s?void 0:new D(s),semicolon:n}})),hs(this.cst.kind,n.q3.StateVariableDefinition)}get typeName(){return this.fetch().typeName}get attributes(){return this.fetch().attributes}get name(){return this.fetch().name}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class D{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,value:new ir(e)}})),hs(this.cst.kind,n.q3.StateVariableDefinitionValue)}get equal(){return this.fetch().equal}get value(){return this.fetch().value}}class O{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,name:new Me(e),parameters:new P(r),attributes:new kr(s),returns:void 0===n?void 0:new M(n),body:new Be(a)}})),hs(this.cst.kind,n.q3.FunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class P{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new $r(e),closeParen:r}})),hs(this.cst.kind,n.q3.ParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class q{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Ge(t),storageLocation:void 0===e?void 0:new er(e),name:void 0===r?void 0:r}})),hs(this.cst.kind,n.q3.Parameter)}get typeName(){return this.fetch().typeName}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class Y{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{overrideKeyword:t,overridden:void 0===e?void 0:new F(e)}})),hs(this.cst.kind,n.q3.OverrideSpecifier)}get overrideKeyword(){return this.fetch().overrideKeyword}get overridden(){return this.fetch().overridden}}class F{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,paths:new Qr(e),closeParen:r}})),hs(this.cst.kind,n.q3.OverridePathsDeclaration)}get openParen(){return this.fetch().openParen}get paths(){return this.fetch().paths}get closeParen(){return this.fetch().closeParen}}class M{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{returnsKeyword:t,variables:new P(e)}})),hs(this.cst.kind,n.q3.ReturnsDeclaration)}get returnsKeyword(){return this.fetch().returnsKeyword}get variables(){return this.fetch().variables}}class U{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{constructorKeyword:t,parameters:new P(e),attributes:new Rr(r),body:new at(s)}})),hs(this.cst.kind,n.q3.ConstructorDefinition)}get constructorKeyword(){return this.fetch().constructorKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class B{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new P(e),attributes:new Ar(r),body:new Be(s)}})),hs(this.cst.kind,n.q3.UnnamedFunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class V{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{fallbackKeyword:t,parameters:new P(e),attributes:new Cr(r),returns:void 0===s?void 0:new M(s),body:new Be(n)}})),hs(this.cst.kind,n.q3.FallbackFunctionDefinition)}get fallbackKeyword(){return this.fetch().fallbackKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class H{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{receiveKeyword:t,parameters:new P(e),attributes:new Kr(r),body:new Be(s)}})),hs(this.cst.kind,n.q3.ReceiveFunctionDefinition)}get receiveKeyword(){return this.fetch().receiveKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class j{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{modifierKeyword:t,name:e,parameters:void 0===r?void 0:new P(r),attributes:new Lr(s),body:new Be(n)}})),hs(this.cst.kind,n.q3.ModifierDefinition)}get modifierKeyword(){return this.fetch().modifierKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class ${constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:new ss(t),arguments:void 0===e?void 0:new nr(e)}})),hs(this.cst.kind,n.q3.ModifierInvocation)}get name(){return this.fetch().name}get arguments(){return this.fetch().arguments}}class Q{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{eventKeyword:t,name:e,parameters:new G(r),anonymousKeyword:void 0===s?void 0:s,semicolon:n}})),hs(this.cst.kind,n.q3.EventDefinition)}get eventKeyword(){return this.fetch().eventKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get anonymousKeyword(){return this.fetch().anonymousKeyword}get semicolon(){return this.fetch().semicolon}}class G{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new Gr(e),closeParen:r}})),hs(this.cst.kind,n.q3.EventParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class z{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Ge(t),indexedKeyword:void 0===e?void 0:e,name:void 0===r?void 0:r}})),hs(this.cst.kind,n.q3.EventParameter)}get typeName(){return this.fetch().typeName}get indexedKeyword(){return this.fetch().indexedKeyword}get name(){return this.fetch().name}}class W{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:t,name:e,isKeyword:r,valueType:new Xe(s),semicolon:n}})),hs(this.cst.kind,n.q3.UserDefinedValueTypeDefinition)}get typeKeyword(){return this.fetch().typeKeyword}get name(){return this.fetch().name}get isKeyword(){return this.fetch().isKeyword}get valueType(){return this.fetch().valueType}get semicolon(){return this.fetch().semicolon}}class X{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{errorKeyword:t,name:e,members:new J(r),semicolon:s}})),hs(this.cst.kind,n.q3.ErrorDefinition)}get errorKeyword(){return this.fetch().errorKeyword}get name(){return this.fetch().name}get members(){return this.fetch().members}get semicolon(){return this.fetch().semicolon}}class J{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new zr(e),closeParen:r}})),hs(this.cst.kind,n.q3.ErrorParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class Z{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Ge(t),name:void 0===e?void 0:e}})),hs(this.cst.kind,n.q3.ErrorParameter)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}}class tt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new Ge(t),openBracket:e,index:void 0===r?void 0:new ir(r),closeBracket:s}})),hs(this.cst.kind,n.q3.ArrayTypeName)}get operand(){return this.fetch().operand}get openBracket(){return this.fetch().openBracket}get index(){return this.fetch().index}get closeBracket(){return this.fetch().closeBracket}}class et{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new P(e),attributes:new Ir(r),returns:void 0===s?void 0:new M(s)}})),hs(this.cst.kind,n.q3.FunctionType)}get functionKeyword(){return this.fetch().functionKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}}class rt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{mappingKeyword:t,openParen:e,keyType:new st(r),equalGreaterThan:s,valueType:new it(n),closeParen:a}})),hs(this.cst.kind,n.q3.MappingType)}get mappingKeyword(){return this.fetch().mappingKeyword}get openParen(){return this.fetch().openParen}get keyType(){return this.fetch().keyType}get equalGreaterThan(){return this.fetch().equalGreaterThan}get valueType(){return this.fetch().valueType}get closeParen(){return this.fetch().closeParen}}class st{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{keyType:new We(t),name:void 0===e?void 0:e}})),hs(this.cst.kind,n.q3.MappingKey)}get keyType(){return this.fetch().keyType}get name(){return this.fetch().name}}class it{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Ge(t),name:void 0===e?void 0:e}})),hs(this.cst.kind,n.q3.MappingValue)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}}class nt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{addressKeyword:t,payableKeyword:void 0===e?void 0:e}})),hs(this.cst.kind,n.q3.AddressType)}get addressKeyword(){return this.fetch().addressKeyword}get payableKeyword(){return this.fetch().payableKeyword}}class at{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,statements:new Nr(e),closeBrace:r}})),hs(this.cst.kind,n.q3.Block)}get openBrace(){return this.fetch().openBrace}get statements(){return this.fetch().statements}get closeBrace(){return this.fetch().closeBrace}}class ot{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{uncheckedKeyword:t,block:new at(e)}})),hs(this.cst.kind,n.q3.UncheckedBlock)}get uncheckedKeyword(){return this.fetch().uncheckedKeyword}get block(){return this.fetch().block}}class ct{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{expression:new ir(t),semicolon:e}})),hs(this.cst.kind,n.q3.ExpressionStatement)}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class lt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{assemblyKeyword:t,label:void 0===e?void 0:new cr(e),flags:void 0===r?void 0:new ht(r),body:new ce(s)}})),hs(this.cst.kind,n.q3.AssemblyStatement)}get assemblyKeyword(){return this.fetch().assemblyKeyword}get label(){return this.fetch().label}get flags(){return this.fetch().flags}get body(){return this.fetch().body}}class ht{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,flags:new Wr(e),closeParen:r}})),hs(this.cst.kind,n.q3.AssemblyFlagsDeclaration)}get openParen(){return this.fetch().openParen}get flags(){return this.fetch().flags}get closeParen(){return this.fetch().closeParen}}class ut{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{varKeyword:void 0===t?void 0:t,openParen:e,elements:new Xr(r),closeParen:s,equal:n,expression:new ir(a),semicolon:o}})),hs(this.cst.kind,n.q3.TupleDeconstructionStatement)}get varKeyword(){return this.fetch().varKeyword}get openParen(){return this.fetch().openParen}get elements(){return this.fetch().elements}get closeParen(){return this.fetch().closeParen}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class dt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{member:void 0===t?void 0:new Ze(t)}})),hs(this.cst.kind,n.q3.TupleDeconstructionElement)}get member(){return this.fetch().member}}class pt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Ge(t),storageLocation:void 0===e?void 0:new er(e),name:r}})),hs(this.cst.kind,n.q3.TypedTupleMember)}get typeName(){return this.fetch().typeName}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class mt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{storageLocation:void 0===t?void 0:new er(t),name:e}})),hs(this.cst.kind,n.q3.UntypedTupleMember)}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class yt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{variableType:new tr(t),storageLocation:void 0===e?void 0:new er(e),name:r,value:void 0===s?void 0:new ft(s),semicolon:n}})),hs(this.cst.kind,n.q3.VariableDeclarationStatement)}get variableType(){return this.fetch().variableType}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class ft{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,expression:new ir(e)}})),hs(this.cst.kind,n.q3.VariableDeclarationValue)}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}}class gt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:t,openParen:e,condition:new ir(r),closeParen:s,body:new Je(n),elseBranch:void 0===a?void 0:new wt(a)}})),hs(this.cst.kind,n.q3.IfStatement)}get ifKeyword(){return this.fetch().ifKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}get elseBranch(){return this.fetch().elseBranch}}class wt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{elseKeyword:t,body:new Je(e)}})),hs(this.cst.kind,n.q3.ElseBranch)}get elseKeyword(){return this.fetch().elseKeyword}get body(){return this.fetch().body}}class xt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{forKeyword:t,openParen:e,initialization:new rr(r),condition:new sr(s),iterator:void 0===n?void 0:new ir(n),closeParen:a,body:new Je(o)}})),hs(this.cst.kind,n.q3.ForStatement)}get forKeyword(){return this.fetch().forKeyword}get openParen(){return this.fetch().openParen}get initialization(){return this.fetch().initialization}get condition(){return this.fetch().condition}get iterator(){return this.fetch().iterator}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}}class vt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{whileKeyword:t,openParen:e,condition:new ir(r),closeParen:s,body:new Je(n)}})),hs(this.cst.kind,n.q3.WhileStatement)}get whileKeyword(){return this.fetch().whileKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}}class bt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{doKeyword:t,body:new Je(e),whileKeyword:r,openParen:s,condition:new ir(n),closeParen:a,semicolon:o}})),hs(this.cst.kind,n.q3.DoWhileStatement)}get doKeyword(){return this.fetch().doKeyword}get body(){return this.fetch().body}get whileKeyword(){return this.fetch().whileKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get semicolon(){return this.fetch().semicolon}}class _t{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:t,semicolon:e}})),hs(this.cst.kind,n.q3.ContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}get semicolon(){return this.fetch().semicolon}}class Et{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:t,semicolon:e}})),hs(this.cst.kind,n.q3.BreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}get semicolon(){return this.fetch().semicolon}}class Tt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{returnKeyword:t,expression:void 0===e?void 0:new ir(e),semicolon:r}})),hs(this.cst.kind,n.q3.ReturnStatement)}get returnKeyword(){return this.fetch().returnKeyword}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class St{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{emitKeyword:t,event:new ss(e),arguments:new nr(r),semicolon:s}})),hs(this.cst.kind,n.q3.EmitStatement)}get emitKeyword(){return this.fetch().emitKeyword}get event(){return this.fetch().event}get arguments(){return this.fetch().arguments}get semicolon(){return this.fetch().semicolon}}class kt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{tryKeyword:t,expression:new ir(e),returns:void 0===r?void 0:new M(r),body:new at(s),catchClauses:new Dr(n)}})),hs(this.cst.kind,n.q3.TryStatement)}get tryKeyword(){return this.fetch().tryKeyword}get expression(){return this.fetch().expression}get returns(){return this.fetch().returns}get body(){return this.fetch().body}get catchClauses(){return this.fetch().catchClauses}}class Rt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{catchKeyword:t,error:void 0===e?void 0:new At(e),body:new at(r)}})),hs(this.cst.kind,n.q3.CatchClause)}get catchKeyword(){return this.fetch().catchKeyword}get error(){return this.fetch().error}get body(){return this.fetch().body}}class At{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:void 0===t?void 0:t,parameters:new P(e)}})),hs(this.cst.kind,n.q3.CatchClauseError)}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}}class Ct{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{revertKeyword:t,error:void 0===e?void 0:new ss(e),arguments:new nr(r),semicolon:s}})),hs(this.cst.kind,n.q3.RevertStatement)}get revertKeyword(){return this.fetch().revertKeyword}get error(){return this.fetch().error}get arguments(){return this.fetch().arguments}get semicolon(){return this.fetch().semicolon}}class Kt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{throwKeyword:t,semicolon:e}})),hs(this.cst.kind,n.q3.ThrowStatement)}get throwKeyword(){return this.fetch().throwKeyword}get semicolon(){return this.fetch().semicolon}}class Lt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.AssignmentExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class It{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),questionMark:e,trueExpression:new ir(r),colon:s,falseExpression:new ir(n)}})),hs(this.cst.kind,n.q3.ConditionalExpression)}get operand(){return this.fetch().operand}get questionMark(){return this.fetch().questionMark}get trueExpression(){return this.fetch().trueExpression}get colon(){return this.fetch().colon}get falseExpression(){return this.fetch().falseExpression}}class Nt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.OrExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Dt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.AndExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ot{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.EqualityExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Pt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.ComparisonExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class qt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.BitwiseOrExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Yt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.BitwiseXorExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ft{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.BitwiseAndExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Mt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.ShiftExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ut{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.AdditiveExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Bt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.MultiplicativeExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Vt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),hs(this.cst.kind,n.q3.ExponentiationExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ht{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),operator:e}})),hs(this.cst.kind,n.q3.PostfixExpression)}get operand(){return this.fetch().operand}get operator(){return this.fetch().operator}}class jt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operator:t,operand:new ir(e)}})),hs(this.cst.kind,n.q3.PrefixExpression)}get operator(){return this.fetch().operator}get operand(){return this.fetch().operand}}class $t{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),arguments:new nr(e)}})),hs(this.cst.kind,n.q3.FunctionCallExpression)}get operand(){return this.fetch().operand}get arguments(){return this.fetch().arguments}}class Qt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),openBrace:e,options:new ts(r),closeBrace:s}})),hs(this.cst.kind,n.q3.CallOptionsExpression)}get operand(){return this.fetch().operand}get openBrace(){return this.fetch().openBrace}get options(){return this.fetch().options}get closeBrace(){return this.fetch().closeBrace}}class Gt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),period:e,member:r}})),hs(this.cst.kind,n.q3.MemberAccessExpression)}get operand(){return this.fetch().operand}get period(){return this.fetch().period}get member(){return this.fetch().member}}class zt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),openBracket:e,start:void 0===r?void 0:new ir(r),end:void 0===s?void 0:new Wt(s),closeBracket:n}})),hs(this.cst.kind,n.q3.IndexAccessExpression)}get operand(){return this.fetch().operand}get openBracket(){return this.fetch().openBracket}get start(){return this.fetch().start}get end(){return this.fetch().end}get closeBracket(){return this.fetch().closeBracket}}class Wt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{colon:t,end:void 0===e?void 0:new ir(e)}})),hs(this.cst.kind,n.q3.IndexAccessEnd)}get colon(){return this.fetch().colon}get end(){return this.fetch().end}}class Xt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,arguments:new Jr(e),closeParen:r}})),hs(this.cst.kind,n.q3.PositionalArgumentsDeclaration)}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class Jt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,arguments:void 0===e?void 0:new Zt(e),closeParen:r}})),hs(this.cst.kind,n.q3.NamedArgumentsDeclaration)}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class Zt{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,arguments:new Zr(e),closeBrace:r}})),hs(this.cst.kind,n.q3.NamedArgumentGroup)}get openBrace(){return this.fetch().openBrace}get arguments(){return this.fetch().arguments}get closeBrace(){return this.fetch().closeBrace}}class te{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{name:t,colon:e,value:new ir(r)}})),hs(this.cst.kind,n.q3.NamedArgument)}get name(){return this.fetch().name}get colon(){return this.fetch().colon}get value(){return this.fetch().value}}class ee{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:t,openParen:e,typeName:new Ge(r),closeParen:s}})),hs(this.cst.kind,n.q3.TypeExpression)}get typeKeyword(){return this.fetch().typeKeyword}get openParen(){return this.fetch().openParen}get typeName(){return this.fetch().typeName}get closeParen(){return this.fetch().closeParen}}class re{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{newKeyword:t,typeName:new Ge(e)}})),hs(this.cst.kind,n.q3.NewExpression)}get newKeyword(){return this.fetch().newKeyword}get typeName(){return this.fetch().typeName}}class se{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,items:new es(e),closeParen:r}})),hs(this.cst.kind,n.q3.TupleExpression)}get openParen(){return this.fetch().openParen}get items(){return this.fetch().items}get closeParen(){return this.fetch().closeParen}}class ie{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{expression:void 0===t?void 0:new ir(t)}})),hs(this.cst.kind,n.q3.TupleValue)}get expression(){return this.fetch().expression}}class ne{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBracket:t,items:new rs(e),closeBracket:r}})),hs(this.cst.kind,n.q3.ArrayExpression)}get openBracket(){return this.fetch().openBracket}get items(){return this.fetch().items}get closeBracket(){return this.fetch().closeBracket}}class ae{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{literal:t,unit:void 0===e?void 0:new ar(e)}})),hs(this.cst.kind,n.q3.HexNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}}class oe{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{literal:t,unit:void 0===e?void 0:new ar(e)}})),hs(this.cst.kind,n.q3.DecimalNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}}class ce{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,statements:new Yr(e),closeBrace:r}})),hs(this.cst.kind,n.q3.YulBlock)}get openBrace(){return this.fetch().openBrace}get statements(){return this.fetch().statements}get closeBrace(){return this.fetch().closeBrace}}class le{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,name:e,parameters:new he(r),returns:void 0===s?void 0:new ue(s),body:new ce(n)}})),hs(this.cst.kind,n.q3.YulFunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class he{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new is(e),closeParen:r}})),hs(this.cst.kind,n.q3.YulParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class ue{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{minusGreaterThan:t,variables:new ns(e)}})),hs(this.cst.kind,n.q3.YulReturnsDeclaration)}get minusGreaterThan(){return this.fetch().minusGreaterThan}get variables(){return this.fetch().variables}}class de{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{letKeyword:t,variables:new ns(e),value:void 0===r?void 0:new pe(r)}})),hs(this.cst.kind,n.q3.YulVariableDeclarationStatement)}get letKeyword(){return this.fetch().letKeyword}get variables(){return this.fetch().variables}get value(){return this.fetch().value}}class pe{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{assignment:new dr(t),expression:new yr(e)}})),hs(this.cst.kind,n.q3.YulVariableDeclarationValue)}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}}class me{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{variables:new os(t),assignment:new dr(e),expression:new yr(r)}})),hs(this.cst.kind,n.q3.YulVariableAssignmentStatement)}get variables(){return this.fetch().variables}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}}class ye{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{colon:t,equal:e}})),hs(this.cst.kind,n.q3.YulColonAndEqual)}get colon(){return this.fetch().colon}get equal(){return this.fetch().equal}}class fe{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{assignment:new pr(t),variable:e}})),hs(this.cst.kind,n.q3.YulStackAssignmentStatement)}get assignment(){return this.fetch().assignment}get variable(){return this.fetch().variable}}class ge{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,colon:e}})),hs(this.cst.kind,n.q3.YulEqualAndColon)}get equal(){return this.fetch().equal}get colon(){return this.fetch().colon}}class we{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:t,condition:new yr(e),body:new ce(r)}})),hs(this.cst.kind,n.q3.YulIfStatement)}get ifKeyword(){return this.fetch().ifKeyword}get condition(){return this.fetch().condition}get body(){return this.fetch().body}}class xe{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{forKeyword:t,initialization:new ce(e),condition:new yr(r),iterator:new ce(s),body:new ce(n)}})),hs(this.cst.kind,n.q3.YulForStatement)}get forKeyword(){return this.fetch().forKeyword}get initialization(){return this.fetch().initialization}get condition(){return this.fetch().condition}get iterator(){return this.fetch().iterator}get body(){return this.fetch().body}}class ve{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{switchKeyword:t,expression:new yr(e),cases:new Fr(r)}})),hs(this.cst.kind,n.q3.YulSwitchStatement)}get switchKeyword(){return this.fetch().switchKeyword}get expression(){return this.fetch().expression}get cases(){return this.fetch().cases}}class be{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{defaultKeyword:t,body:new ce(e)}})),hs(this.cst.kind,n.q3.YulDefaultCase)}get defaultKeyword(){return this.fetch().defaultKeyword}get body(){return this.fetch().body}}class _e{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{caseKeyword:t,value:new wr(e),body:new ce(r)}})),hs(this.cst.kind,n.q3.YulValueCase)}get caseKeyword(){return this.fetch().caseKeyword}get value(){return this.fetch().value}get body(){return this.fetch().body}}class Ee{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{leaveKeyword:t}})),hs(this.cst.kind,n.q3.YulLeaveStatement)}get leaveKeyword(){return this.fetch().leaveKeyword}}class Te{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:t}})),hs(this.cst.kind,n.q3.YulBreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}}class Se{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:t}})),hs(this.cst.kind,n.q3.YulContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}}class ke{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{label:t,colon:e}})),hs(this.cst.kind,n.q3.YulLabel)}get label(){return this.fetch().label}get colon(){return this.fetch().colon}}class Re{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new yr(t),openParen:e,arguments:new as(r),closeParen:s}})),hs(this.cst.kind,n.q3.YulFunctionCallExpression)}get operand(){return this.fetch().operand}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class Ae{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PragmaDirective:return new c(t);case n.q3.ImportDirective:return new m(t);case n.q3.ContractDefinition:return new T(t);case n.q3.InterfaceDefinition:return new R(t);case n.q3.LibraryDefinition:return new A(t);case n.q3.StructDefinition:return new C(t);case n.q3.EnumDefinition:return new L(t);case n.q3.FunctionDefinition:return new O(t);case n.q3.ErrorDefinition:return new X(t);case n.q3.UserDefinedValueTypeDefinition:return new W(t);case n.q3.UsingDirective:return new v(t);case n.q3.EventDefinition:return new Q(t);case n.q3.ConstantDefinition:return new I(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.SourceUnitMember)}get variant(){return this.fetch()}}class Ce{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.AbicoderPragma:return new l(t);case n.q3.ExperimentalPragma:return new h(t);case n.q3.VersionPragma:return new u(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.Pragma)}get variant(){return this.fetch()}}class Ke{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.StringLiteral)return new cr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.ExperimentalFeature)}get variant(){return this.fetch()}}class Le{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.VersionRange:return new d(t);case n.q3.VersionTerm:return new p(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.VersionExpression)}get variant(){return this.fetch()}}class Ie{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.VersionOperator)}get variant(){return this.fetch()}}class Ne{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.SimpleVersionLiteral)return new Ur(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.VersionLiteral)}get variant(){return this.fetch()}}class De{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PathImport:return new y(t);case n.q3.NamedImport:return new f(t);case n.q3.ImportDeconstruction:return new g(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.ImportClause)}get variant(){return this.fetch()}}class Oe{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.IdentifierPath:return new ss(t);case n.q3.UsingDeconstruction:return new b(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.UsingClause)}get variant(){return this.fetch()}}class Pe{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.UsingOperator)}get variant(){return this.fetch()}}class qe{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.TypeName)return new Ge(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.UsingTarget)}get variant(){return this.fetch()}}class Ye{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.UsingDirective:return new v(t);case n.q3.FunctionDefinition:return new O(t);case n.q3.ConstructorDefinition:return new U(t);case n.q3.ReceiveFunctionDefinition:return new H(t);case n.q3.FallbackFunctionDefinition:return new V(t);case n.q3.UnnamedFunctionDefinition:return new B(t);case n.q3.ModifierDefinition:return new j(t);case n.q3.StructDefinition:return new C(t);case n.q3.EnumDefinition:return new L(t);case n.q3.EventDefinition:return new Q(t);case n.q3.ErrorDefinition:return new X(t);case n.q3.UserDefinedValueTypeDefinition:return new W(t);case n.q3.StateVariableDefinition:return new N(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.ContractMember)}get variant(){return this.fetch()}}class Fe{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.OverrideSpecifier)return new Y(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.StateVariableAttribute)}get variant(){return this.fetch()}}class Me{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.FunctionName)}get variant(){return this.fetch()}}class Ue{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new $(t);case n.q3.OverrideSpecifier:return new Y(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.FunctionAttribute)}get variant(){return this.fetch()}}class Be{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.Block)return new at(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.FunctionBody)}get variant(){return this.fetch()}}class Ve{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ModifierInvocation)return new $(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.ConstructorAttribute)}get variant(){return this.fetch()}}class He{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ModifierInvocation)return new $(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.UnnamedFunctionAttribute)}get variant(){return this.fetch()}}class je{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new $(t);case n.q3.OverrideSpecifier:return new Y(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.FallbackFunctionAttribute)}get variant(){return this.fetch()}}class $e{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new $(t);case n.q3.OverrideSpecifier:return new Y(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.ReceiveFunctionAttribute)}get variant(){return this.fetch()}}class Qe{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.OverrideSpecifier)return new Y(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.ModifierAttribute)}get variant(){return this.fetch()}}class Ge{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.ArrayTypeName:return new tt(t);case n.q3.FunctionType:return new et(t);case n.q3.MappingType:return new rt(t);case n.q3.ElementaryType:return new Xe(t);case n.q3.IdentifierPath:return new ss(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.TypeName)}get variant(){return this.fetch()}}class ze{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.FunctionTypeAttribute)}get variant(){return this.fetch()}}class We{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.ElementaryType:return new Xe(t);case n.q3.IdentifierPath:return new ss(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.MappingKeyType)}get variant(){return this.fetch()}}class Xe{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.AddressType)return new nt(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.ElementaryType)}get variant(){return this.fetch()}}class Je{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.IfStatement:return new gt(t);case n.q3.ForStatement:return new xt(t);case n.q3.WhileStatement:return new vt(t);case n.q3.DoWhileStatement:return new bt(t);case n.q3.ContinueStatement:return new _t(t);case n.q3.BreakStatement:return new Et(t);case n.q3.ReturnStatement:return new Tt(t);case n.q3.ThrowStatement:return new Kt(t);case n.q3.EmitStatement:return new St(t);case n.q3.TryStatement:return new kt(t);case n.q3.RevertStatement:return new Ct(t);case n.q3.AssemblyStatement:return new lt(t);case n.q3.Block:return new at(t);case n.q3.UncheckedBlock:return new ot(t);case n.q3.TupleDeconstructionStatement:return new ut(t);case n.q3.VariableDeclarationStatement:return new yt(t);case n.q3.ExpressionStatement:return new ct(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.Statement)}get variant(){return this.fetch()}}class Ze{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.TypedTupleMember:return new pt(t);case n.q3.UntypedTupleMember:return new mt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.TupleMember)}get variant(){return this.fetch()}}class tr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.TypeName)return new Ge(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.VariableDeclarationType)}get variant(){return this.fetch()}}class er{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.StorageLocation)}get variant(){return this.fetch()}}class rr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.TupleDeconstructionStatement:return new ut(t);case n.q3.VariableDeclarationStatement:return new yt(t);case n.q3.ExpressionStatement:return new ct(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.ForStatementInitialization)}get variant(){return this.fetch()}}class sr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ExpressionStatement)return new ct(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.ForStatementCondition)}get variant(){return this.fetch()}}class ir{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.AssignmentExpression:return new Lt(t);case n.q3.ConditionalExpression:return new It(t);case n.q3.OrExpression:return new Nt(t);case n.q3.AndExpression:return new Dt(t);case n.q3.EqualityExpression:return new Ot(t);case n.q3.ComparisonExpression:return new Pt(t);case n.q3.BitwiseOrExpression:return new qt(t);case n.q3.BitwiseXorExpression:return new Yt(t);case n.q3.BitwiseAndExpression:return new Ft(t);case n.q3.ShiftExpression:return new Mt(t);case n.q3.AdditiveExpression:return new Ut(t);case n.q3.MultiplicativeExpression:return new Bt(t);case n.q3.ExponentiationExpression:return new Vt(t);case n.q3.PostfixExpression:return new Ht(t);case n.q3.PrefixExpression:return new jt(t);case n.q3.FunctionCallExpression:return new $t(t);case n.q3.CallOptionsExpression:return new Qt(t);case n.q3.MemberAccessExpression:return new Gt(t);case n.q3.IndexAccessExpression:return new zt(t);case n.q3.NewExpression:return new re(t);case n.q3.TupleExpression:return new se(t);case n.q3.TypeExpression:return new ee(t);case n.q3.ArrayExpression:return new ne(t);case n.q3.HexNumberExpression:return new ae(t);case n.q3.DecimalNumberExpression:return new oe(t);case n.q3.StringExpression:return new or(t);case n.q3.ElementaryType:return new Xe(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.Expression)}get variant(){return this.fetch()}}class nr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PositionalArgumentsDeclaration:return new Xt(t);case n.q3.NamedArgumentsDeclaration:return new Jt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.ArgumentsDeclaration)}get variant(){return this.fetch()}}class ar{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.NumberUnit)}get variant(){return this.fetch()}}class or{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.StringLiteral:return new cr(t);case n.q3.StringLiterals:return new Or(t);case n.q3.HexStringLiteral:return new lr(t);case n.q3.HexStringLiterals:return new Pr(t);case n.q3.UnicodeStringLiterals:return new qr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.StringExpression)}get variant(){return this.fetch()}}class cr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.StringLiteral)}get variant(){return this.fetch()}}class lr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.HexStringLiteral)}get variant(){return this.fetch()}}class hr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.UnicodeStringLiteral)}get variant(){return this.fetch()}}class ur{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulBlock:return new ce(t);case n.q3.YulFunctionDefinition:return new le(t);case n.q3.YulStackAssignmentStatement:return new fe(t);case n.q3.YulIfStatement:return new we(t);case n.q3.YulForStatement:return new xe(t);case n.q3.YulSwitchStatement:return new ve(t);case n.q3.YulLeaveStatement:return new Ee(t);case n.q3.YulBreakStatement:return new Te(t);case n.q3.YulContinueStatement:return new Se(t);case n.q3.YulLabel:return new ke(t);case n.q3.YulVariableDeclarationStatement:return new de(t);case n.q3.YulVariableAssignmentStatement:return new me(t);case n.q3.YulExpression:return new yr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.YulStatement)}get variant(){return this.fetch()}}class dr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.YulColonAndEqual)return new ye(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.YulAssignmentOperator)}get variant(){return this.fetch()}}class pr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.YulEqualAndColon)return new ge(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),hs(this.cst.kind,n.q3.YulStackAssignmentOperator)}get variant(){return this.fetch()}}class mr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulDefaultCase:return new be(t);case n.q3.YulValueCase:return new _e(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.YulSwitchCase)}get variant(){return this.fetch()}}class yr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulFunctionCallExpression:return new Re(t);case n.q3.YulLiteral:return new wr(t);case n.q3.YulBuiltInFunction:return new gr(t);case n.q3.YulPath:return new cs(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.YulExpression)}get variant(){return this.fetch()}}class fr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.YulPathComponent)}get variant(){return this.fetch()}}class gr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.choice(this.cst))),hs(this.cst.kind,n.q3.YulBuiltInFunction)}get variant(){return this.fetch()}}class wr{constructor(t){this.cst=t,this.fetch=ls((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.HexStringLiteral:return new lr(t);case n.q3.StringLiteral:return new cr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),hs(this.cst.kind,n.q3.YulLiteral)}get variant(){return this.fetch()}}class xr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ae(t))))),hs(this.cst.kind,n.q3.SourceUnitMembers)}get items(){return this.fetch()}}class vr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Le(t))))),hs(this.cst.kind,n.q3.VersionExpressionSet)}get items(){return this.fetch()}}class br{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ye(t))))),hs(this.cst.kind,n.q3.ContractMembers)}get items(){return this.fetch()}}class _r{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ye(t))))),hs(this.cst.kind,n.q3.InterfaceMembers)}get items(){return this.fetch()}}class Er{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ye(t))))),hs(this.cst.kind,n.q3.LibraryMembers)}get items(){return this.fetch()}}class Tr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new K(t))))),hs(this.cst.kind,n.q3.StructMembers)}get items(){return this.fetch()}}class Sr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Fe(t))))),hs(this.cst.kind,n.q3.StateVariableAttributes)}get items(){return this.fetch()}}class kr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ue(t))))),hs(this.cst.kind,n.q3.FunctionAttributes)}get items(){return this.fetch()}}class Rr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ve(t))))),hs(this.cst.kind,n.q3.ConstructorAttributes)}get items(){return this.fetch()}}class Ar{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new He(t))))),hs(this.cst.kind,n.q3.UnnamedFunctionAttributes)}get items(){return this.fetch()}}class Cr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new je(t))))),hs(this.cst.kind,n.q3.FallbackFunctionAttributes)}get items(){return this.fetch()}}class Kr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new $e(t))))),hs(this.cst.kind,n.q3.ReceiveFunctionAttributes)}get items(){return this.fetch()}}class Lr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Qe(t))))),hs(this.cst.kind,n.q3.ModifierAttributes)}get items(){return this.fetch()}}class Ir{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new ze(t))))),hs(this.cst.kind,n.q3.FunctionTypeAttributes)}get items(){return this.fetch()}}class Nr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Je(t))))),hs(this.cst.kind,n.q3.Statements)}get items(){return this.fetch()}}class Dr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Rt(t))))),hs(this.cst.kind,n.q3.CatchClauses)}get items(){return this.fetch()}}class Or{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new cr(t))))),hs(this.cst.kind,n.q3.StringLiterals)}get items(){return this.fetch()}}class Pr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new lr(t))))),hs(this.cst.kind,n.q3.HexStringLiterals)}get items(){return this.fetch()}}class qr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new hr(t))))),hs(this.cst.kind,n.q3.UnicodeStringLiterals)}get items(){return this.fetch()}}class Yr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new ur(t))))),hs(this.cst.kind,n.q3.YulStatements)}get items(){return this.fetch()}}class Fr{constructor(t){this.cst=t,this.fetch=ls((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new mr(t))))),hs(this.cst.kind,n.q3.YulSwitchCases)}get items(){return this.fetch()}}class Mr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new vr(t))),separators:e}})),hs(this.cst.kind,n.q3.VersionExpressionSets)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Ur{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),hs(this.cst.kind,n.q3.SimpleVersionLiteral)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Br{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new w(t))),separators:e}})),hs(this.cst.kind,n.q3.ImportDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Vr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new _(t))),separators:e}})),hs(this.cst.kind,n.q3.UsingDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Hr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new k(t))),separators:e}})),hs(this.cst.kind,n.q3.InheritanceTypes)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class jr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),hs(this.cst.kind,n.q3.EnumMembers)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class $r{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new q(t))),separators:e}})),hs(this.cst.kind,n.q3.Parameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Qr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ss(t))),separators:e}})),hs(this.cst.kind,n.q3.OverridePaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Gr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new z(t))),separators:e}})),hs(this.cst.kind,n.q3.EventParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class zr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new Z(t))),separators:e}})),hs(this.cst.kind,n.q3.ErrorParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Wr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new cr(t))),separators:e}})),hs(this.cst.kind,n.q3.AssemblyFlags)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Xr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new dt(t))),separators:e}})),hs(this.cst.kind,n.q3.TupleDeconstructionElements)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Jr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ir(t))),separators:e}})),hs(this.cst.kind,n.q3.PositionalArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Zr{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new te(t))),separators:e}})),hs(this.cst.kind,n.q3.NamedArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ts{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new te(t))),separators:e}})),hs(this.cst.kind,n.q3.CallOptions)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class es{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ie(t))),separators:e}})),hs(this.cst.kind,n.q3.TupleValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class rs{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ir(t))),separators:e}})),hs(this.cst.kind,n.q3.ArrayValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ss{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),hs(this.cst.kind,n.q3.IdentifierPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class is{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),hs(this.cst.kind,n.q3.YulParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ns{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),hs(this.cst.kind,n.q3.YulVariableNames)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class as{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new yr(t))),separators:e}})),hs(this.cst.kind,n.q3.YulArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class os{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new cs(t))),separators:e}})),hs(this.cst.kind,n.q3.YulPaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class cs{constructor(t){this.cst=t,this.fetch=ls((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new fr(t))),separators:e}})),hs(this.cst.kind,n.q3.YulPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}function ls(t){let e;return()=>(void 0===e&&(e=t()),e)}function hs(t,e){if(t!==e)throw new Error(`AST node '${e}' can only be initialized with a CST node of the same kind. Received '${t}' instead.`)}s()}catch(us){s(us)}}))},3013:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Mk:()=>i.Mk,ktF:()=>i.ktF});var i=r(3888),n=t([i]);i=(n.then?(await n)():n)[0],s()}catch(t){s(t)}}))},4675:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{XK:()=>l,hP:()=>o,q3:()=>a,xo:()=>c});var i=r(1901),n=t([i]);const a=(i=(n.then?(await n)():n)[0]).tQ.NonterminalKind,o=i.tQ.TerminalKind,c=(i.tQ.TerminalKindExtensions,i.tQ.EdgeLabel,i.tQ.NodeVariant,i.tQ.NonterminalNode,i.tQ.TerminalNode),l=(i.tQ.Cursor,i.tQ.Query);i.tQ.QueryMatchIterator,s()}catch(t){s(t)}}))},6424:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{iX:()=>a});var i=r(1901),n=t([i]);const a=(i=(n.then?(await n)():n)[0]).K3.Parser;i.K3.ParseError,i.K3.ParseOutput,s()}catch(t){s(t)}}))},1406:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K3:()=>Ie,Rj:()=>Ke,tQ:()=>Le});var i=r(8664),n=r(4863),a=r(9340);const{getEnvironment:u}=i.cA,{exit:d}=i.NS,{getStderr:p}=i.vF,{getStdin:m}=i.bX,{getStdout:y}=i.Uo,{getDirectories:f}=n.jw,{Descriptor:g,filesystemErrorCode:w}=n.gK,{Error:x}=a.z3,{InputStream:v,OutputStream:b}=a.oS;let _=[],E=new DataView(new ArrayBuffer);const T=t=>E.buffer===t.buffer?E:E=new DataView(t.buffer),S=()=>{},k="undefined"!=typeof process&&process.versions&&process.versions.node;let R;async function A(t){return k?(R=R||await Promise.resolve().then(r.bind(r,6463)),WebAssembly.compile(await R.readFile(t))):fetch(t).then(WebAssembly.compileStreaming)}function C(t){return"undefined"==typeof FinalizationRegistry?{unregister(){}}:new FinalizationRegistry(t)}function K(t){if(t&&I.call(t,"payload"))return t.payload;if(t instanceof Error)throw t;return t}const L=[],I=Object.prototype.hasOwnProperty,N=WebAssembly.instantiate,D=1<<30;function O(t,e){const r=t[0]&~D;return 0===r?(t.push(0),t.push(e|D),(t.length>>1)-1):(t[0]=t[r<<1],t[r<<1]=0,t[1+(r<<1)]=e|D,r)}function P(t,e){const r=t[e<<1],s=t[1+(e<<1)],i=0!=(s&D),n=s&~D;if(0===s||0!=(r&D))throw new TypeError("Invalid handle");return t[e<<1]=t[0]|D,t[0]=e|D,{rep:n,scope:r,own:i}}const q=Symbol.for("cabiDispose"),Y=Symbol("handle"),F=Symbol.for("cabiRep"),M=Symbol.dispose||Symbol.for("dispose"),U=t=>BigInt.asUintN(64,BigInt(t));function B(t){return t>>>0}const V=new TextDecoder,H=new TextEncoder;let j=0;function $(t,e,r){if("string"!=typeof t)throw new TypeError("expected a string");if(0===t.length)return j=0,1;let s=H.encode(t),i=e(0,0,1,s.length);return new Uint8Array(r.buffer).set(s,i),j=s.length,i}const Q=Symbol.for("nodejs.util.inspect.custom");let G,z;const W=[D,0],X=new Map;let J=0;function Z(){const t=p();if(!(t instanceof b))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=t[Y];if(!e){const r=t[F]||++J;X.set(r,t),e=O(W,r)}return e}function tt(t){let e;e=t?{tag:"err",val:void 0}:{tag:"ok",val:void 0},d(e)}L[1]=W;const et=[D,0],rt=new Map;let st,it,nt,at=0;function ot(){const t=m();if(!(t instanceof v))throw new TypeError('Resource error: Not a valid "InputStream" resource.');var e=t[Y];if(!e){const r=t[F]||++at;rt.set(r,t),e=O(et,r)}return e}function ct(){const t=y();if(!(t instanceof b))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=t[Y];if(!e){const r=t[F]||++J;X.set(r,t),e=O(W,r)}return e}L[2]=et;const lt=[D,0],ht=new Map;let ut=0;function dt(t){var e=f(),r=e.length,s=nt(0,0,4,12*r);for(let t=0;t<e.length;t++){const r=e[t],l=s+12*t;var[i,n]=r;if(!(i instanceof g))throw new TypeError('Resource error: Not a valid "Descriptor" resource.');var a=i[Y];if(!a){const t=i[F]||++ut;ht.set(t,i),a=O(lt,t)}T(it).setInt32(l+0,a,!0);var o=$(n,nt,it),c=j;T(it).setInt32(l+8,c,!0),T(it).setInt32(l+4,o,!0)}T(it).setInt32(t+4,r,!0),T(it).setInt32(t+0,s,!0)}function pt(t,e,r){var s=t,i=lt[1+(s<<1)]&~D,n=ht.get(i);let a;n||(n=Object.create(g.prototype),Object.defineProperty(n,Y,{writable:!0,value:s}),Object.defineProperty(n,F,{writable:!0,value:i})),_.push(n);try{a={tag:"ok",val:n.writeViaStream(BigInt.asUintN(64,e))}}catch(t){a={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var o=a;switch(o.tag){case"ok":{const t=o.val;if(T(it).setInt8(r+0,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var c=t[Y];if(!c){const e=t[F]||++J;X.set(e,t),c=O(W,e)}T(it).setInt32(r+4,c,!0);break}case"err":{const t=o.val;T(it).setInt8(r+0,1,!0);var l=t;let e;switch(l){case"access":e=0;break;case"would-block":e=1;break;case"already":e=2;break;case"bad-descriptor":e=3;break;case"busy":e=4;break;case"deadlock":e=5;break;case"quota":e=6;break;case"exist":e=7;break;case"file-too-large":e=8;break;case"illegal-byte-sequence":e=9;break;case"in-progress":e=10;break;case"interrupted":e=11;break;case"invalid":e=12;break;case"io":e=13;break;case"is-directory":e=14;break;case"loop":e=15;break;case"too-many-links":e=16;break;case"message-size":e=17;break;case"name-too-long":e=18;break;case"no-device":e=19;break;case"no-entry":e=20;break;case"no-lock":e=21;break;case"insufficient-memory":e=22;break;case"insufficient-space":e=23;break;case"not-directory":e=24;break;case"not-empty":e=25;break;case"not-recoverable":e=26;break;case"unsupported":e=27;break;case"no-tty":e=28;break;case"no-such-device":e=29;break;case"overflow":e=30;break;case"not-permitted":e=31;break;case"pipe":e=32;break;case"read-only":e=33;break;case"invalid-seek":e=34;break;case"text-file-busy":e=35;break;case"cross-device":e=36;break;default:throw new TypeError(`"${l}" is not one of the cases of error-code`)}T(it).setInt8(r+4,e,!0);break}default:throw new TypeError("invalid variant specified for result")}}function mt(t,e){var r=t,s=lt[1+(r<<1)]&~D,i=ht.get(s);let n;i||(i=Object.create(g.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,F,{writable:!0,value:s})),_.push(i);try{n={tag:"ok",val:i.appendViaStream()}}catch(t){n={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var a=n;switch(a.tag){case"ok":{const t=a.val;if(T(it).setInt8(e+0,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var o=t[Y];if(!o){const e=t[F]||++J;X.set(e,t),o=O(W,e)}T(it).setInt32(e+4,o,!0);break}case"err":{const t=a.val;T(it).setInt8(e+0,1,!0);var c=t;let r;switch(c){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${c}" is not one of the cases of error-code`)}T(it).setInt8(e+4,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function yt(t,e){var r=t,s=lt[1+(r<<1)]&~D,i=ht.get(s);let n;i||(i=Object.create(g.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,F,{writable:!0,value:s})),_.push(i);try{n={tag:"ok",val:i.getType()}}catch(t){n={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var a=n;switch(a.tag){case"ok":{const t=a.val;T(it).setInt8(e+0,0,!0);var o=t;let r;switch(o){case"unknown":r=0;break;case"block-device":r=1;break;case"character-device":r=2;break;case"directory":r=3;break;case"fifo":r=4;break;case"symbolic-link":r=5;break;case"regular-file":r=6;break;case"socket":r=7;break;default:throw new TypeError(`"${o}" is not one of the cases of descriptor-type`)}T(it).setInt8(e+1,r,!0);break}case"err":{const t=a.val;T(it).setInt8(e+0,1,!0);var c=t;let r;switch(c){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${c}" is not one of the cases of error-code`)}T(it).setInt8(e+1,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function ft(t,e){var r=t,s=lt[1+(r<<1)]&~D,i=ht.get(s);let n;i||(i=Object.create(g.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,F,{writable:!0,value:s})),_.push(i);try{n={tag:"ok",val:i.stat()}}catch(t){n={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var a=n;switch(a.tag){case"ok":{const t=a.val;T(it).setInt8(e+0,0,!0);var{type:o,linkCount:c,size:l,dataAccessTimestamp:h,dataModificationTimestamp:u,statusChangeTimestamp:d}=t,p=o;let r;switch(p){case"unknown":r=0;break;case"block-device":r=1;break;case"character-device":r=2;break;case"directory":r=3;break;case"fifo":r=4;break;case"symbolic-link":r=5;break;case"regular-file":r=6;break;case"socket":r=7;break;default:throw new TypeError(`"${p}" is not one of the cases of descriptor-type`)}T(it).setInt8(e+8,r,!0),T(it).setBigInt64(e+16,U(c),!0),T(it).setBigInt64(e+24,U(l),!0);var m=h;if(null==m)T(it).setInt8(e+32,0,!0);else{const t=m;T(it).setInt8(e+32,1,!0);var{seconds:y,nanoseconds:f}=t;T(it).setBigInt64(e+40,U(y),!0),T(it).setInt32(e+48,B(f),!0)}var w=u;if(null==w)T(it).setInt8(e+56,0,!0);else{const t=w;T(it).setInt8(e+56,1,!0);var{seconds:x,nanoseconds:v}=t;T(it).setBigInt64(e+64,U(x),!0),T(it).setInt32(e+72,B(v),!0)}var b=d;if(null==b)T(it).setInt8(e+80,0,!0);else{const t=b;T(it).setInt8(e+80,1,!0);var{seconds:E,nanoseconds:S}=t;T(it).setBigInt64(e+88,U(E),!0),T(it).setInt32(e+96,B(S),!0)}break}case"err":{const t=a.val;T(it).setInt8(e+0,1,!0);var k=t;let r;switch(k){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${k}" is not one of the cases of error-code`)}T(it).setInt8(e+8,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}L[3]=lt;const gt=[D,0],wt=new Map;let xt,vt,bt,_t,Et,Tt,St,kt,Rt,At,Ct,Kt=0;function Lt(t,e){var r=t,s=gt[1+(r<<1)]&~D,i=wt.get(s);i||(i=Object.create(x.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,F,{writable:!0,value:s})),_.push(i);const n=w(i);for(const t of _)t[Y]=null;_=[];var a=n;if(null==a)T(it).setInt8(e+0,0,!0);else{const t=a;T(it).setInt8(e+0,1,!0);var o=t;let r;switch(o){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${o}" is not one of the cases of error-code`)}T(it).setInt8(e+1,r,!0)}}function It(t,e){var r=t,s=W[1+(r<<1)]&~D,i=X.get(s);let n;i||(i=Object.create(b.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,F,{writable:!0,value:s})),_.push(i);try{n={tag:"ok",val:i.checkWrite()}}catch(t){n={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var a=n;switch(a.tag){case"ok":{const t=a.val;T(it).setInt8(e+0,0,!0),T(it).setBigInt64(e+8,U(t),!0);break}case"err":{const t=a.val;T(it).setInt8(e+0,1,!0);var o=t;switch(o.tag){case"last-operation-failed":{const t=o.val;if(T(it).setInt8(e+8,0,!0),!(t instanceof x))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=t[Y];if(!c){const e=t[F]||++Kt;wt.set(e,t),c=O(gt,e)}T(it).setInt32(e+12,c,!0);break}case"closed":T(it).setInt8(e+8,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(o.tag)}\` (received \`${o}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Nt(t,e,r,s){var i=t,n=W[1+(i<<1)]&~D,a=X.get(n);a||(a=Object.create(b.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,F,{writable:!0,value:n})),_.push(a);var o=e,c=r,l=new Uint8Array(it.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.write(l)}}catch(t){h={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var u=h;switch(u.tag){case"ok":u.val,T(it).setInt8(s+0,0,!0);break;case"err":{const t=u.val;T(it).setInt8(s+0,1,!0);var d=t;switch(d.tag){case"last-operation-failed":{const t=d.val;if(T(it).setInt8(s+4,0,!0),!(t instanceof x))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=t[Y];if(!p){const e=t[F]||++Kt;wt.set(e,t),p=O(gt,e)}T(it).setInt32(s+8,p,!0);break}case"closed":T(it).setInt8(s+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(d.tag)}\` (received \`${d}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Dt(t,e,r,s){var i=t,n=W[1+(i<<1)]&~D,a=X.get(n);a||(a=Object.create(b.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,F,{writable:!0,value:n})),_.push(a);var o=e,c=r,l=new Uint8Array(it.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.blockingWriteAndFlush(l)}}catch(t){h={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var u=h;switch(u.tag){case"ok":u.val,T(it).setInt8(s+0,0,!0);break;case"err":{const t=u.val;T(it).setInt8(s+0,1,!0);var d=t;switch(d.tag){case"last-operation-failed":{const t=d.val;if(T(it).setInt8(s+4,0,!0),!(t instanceof x))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=t[Y];if(!p){const e=t[F]||++Kt;wt.set(e,t),p=O(gt,e)}T(it).setInt32(s+8,p,!0);break}case"closed":T(it).setInt8(s+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(d.tag)}\` (received \`${d}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Ot(t,e){var r=t,s=W[1+(r<<1)]&~D,i=X.get(s);let n;i||(i=Object.create(b.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,F,{writable:!0,value:s})),_.push(i);try{n={tag:"ok",val:i.blockingFlush()}}catch(t){n={tag:"err",val:K(t)}}for(const t of _)t[Y]=null;_=[];var a=n;switch(a.tag){case"ok":a.val,T(it).setInt8(e+0,0,!0);break;case"err":{const t=a.val;T(it).setInt8(e+0,1,!0);var o=t;switch(o.tag){case"last-operation-failed":{const t=o.val;if(T(it).setInt8(e+4,0,!0),!(t instanceof x))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=t[Y];if(!c){const e=t[F]||++Kt;wt.set(e,t),c=O(gt,e)}T(it).setInt32(e+8,c,!0);break}case"closed":T(it).setInt8(e+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(o.tag)}\` (received \`${o}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Pt(t){var e=u(),r=e.length,s=nt(0,0,4,16*r);for(let t=0;t<e.length;t++){const r=e[t],h=s+16*t;var[i,n]=r,a=$(i,nt,it),o=j;T(it).setInt32(h+4,o,!0),T(it).setInt32(h+0,a,!0);var c=$(n,nt,it),l=j;T(it).setInt32(h+12,l,!0),T(it).setInt32(h+8,c,!0)}T(it).setInt32(t+4,r,!0),T(it).setInt32(t+0,s,!0)}L[0]=gt;const qt=[D,0],Yt=C((t=>{const{rep:e}=P(qt,t);G[16](e)}));L[4]=qt;const Ft=O.bind(null,qt),Mt=[D,0],Ut=C((t=>{const{rep:e}=P(Mt,t);G[17](e)}));L[5]=Mt;const Bt=O.bind(null,Mt),Vt=[D,0],Ht=C((t=>{const{rep:e}=P(Vt,t);G[18](e)}));L[6]=Vt;const jt=O.bind(null,Vt);function $t(t){const e=P(qt,t);e.own&&G[16](e.rep)}function Qt(t){const e=P(Mt,t);e.own&&G[17](e.rep)}function Gt(t){const e=P(Vt,t);e.own&&G[18](e.rep)}const zt=[D,0],Wt=C((t=>{const{rep:e}=P(zt,t);G[20](e)}));L[8]=zt;const Xt=O.bind(null,zt);function Jt(t){const e=P(zt,t);e.own&&G[20](e.rep)}const Zt=[D,0],te=C((t=>{const{rep:e}=P(Zt,t);G[19](e)}));L[7]=Zt;const ee=O.bind(null,Zt);function re(t){const e=P(Zt,t);e.own&&G[19](e.rep)}const se=[D,0],ie=C((t=>{const{rep:e}=P(se,t);G[22](e)}));L[9]=se;const ne=O.bind(null,se);function ae(t){const e=P(se,t);e.own&&G[22](e.rep)}const oe=[D,0],ce=C((t=>{const{rep:e}=P(oe,t);G[24](e)}));L[11]=oe;const le=O.bind(null,oe);function he(t){const e=P(oe,t);e.own&&G[24](e.rep)}const ue=[D,0],de=C((t=>{const{rep:e}=P(ue,t);G[23](e)}));L[10]=ue;const pe=O.bind(null,ue);function me(t){const e=P(ue,t);e.own&&G[23](e.rep)}function ye(t){const e=P(gt,t);if(e.own){const t=wt.get(e.rep);t?(t[M]&&t[M](),wt.delete(e.rep)):x[q]&&x[q](e.rep)}}function fe(t){const e=P(et,t);if(e.own){const t=rt.get(e.rep);t?(t[M]&&t[M](),rt.delete(e.rep)):v[q]&&v[q](e.rep)}}function ge(t){const e=P(W,t);if(e.own){const t=X.get(e.rep);t?(t[M]&&t[M](),X.delete(e.rep)):b[q]&&b[q](e.rep)}}function we(t){const e=P(lt,t);if(e.own){const t=ht.get(e.rep);t?(t[M]&&t[M](),ht.delete(e.rep)):g[q]&&g[q](e.rep)}}class xe{constructor(){throw new Error('"TerminalKindExtensions" resource does not define a constructor')}}xe.isTrivia=function(t){return!!z["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-trivia"](c[t])},xe.isValid=function(t){return!!z["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-valid"](c[t])};class ve{constructor(){throw new Error('"NonterminalNode" resource does not define a constructor')}}ve.prototype[Q]=function(t,e,r){const s=Object.getPrototypeOf(this)[Q];try{return delete Object.getPrototypeOf(this)[Q],r(this,{...e,depth:t,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[Q]=s}},Object.defineProperty(ve.prototype,"id",{get:function(){var t=this[Y];if(!t||0==(qt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=qt[1+(t<<1)]&~D;return z["nomic-foundation:slang/cst#[method]nonterminal-node.id"](e)>>>0}}),Object.defineProperty(ve.prototype,"kind",{get:function(){var t=this[Y];if(!t||0==(qt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=qt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]nonterminal-node.kind"](e);return o[r]}}),Object.defineProperty(ve.prototype,"textLength",{get:function(){var t=this[Y];if(!t||0==(qt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=qt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]nonterminal-node.text-length"](e);return{utf8:T(it).getInt32(r+0,!0)>>>0,utf16:T(it).getInt32(r+4,!0)>>>0,line:T(it).getInt32(r+8,!0)>>>0,column:T(it).getInt32(r+12,!0)>>>0}}}),Object.defineProperty(ve.prototype,"children",{get:function(){var t=this[Y];if(!t||0==(qt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=qt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]nonterminal-node.children"](e);var s=T(it).getInt32(r+4,!0),i=T(it).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+12*t;let r,s;switch(r=T(it).getUint8(e+0,!0)?l[T(it).getUint8(e+1,!0)]:void 0,T(it).getUint8(e+4,!0)){case 0:var a=T(it).getInt32(e+8,!0),o=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Yt.register(o,a,o),Object.defineProperty(o,M,{writable:!0,value:function(){Yt.unregister(o),P(qt,a),o[M]=S,o[Y]=null,G[16](qt[1+(a<<1)]&~D)}}),s=o;break;case 1:var c=T(it).getInt32(e+8,!0),h=new.target===be?this:Object.create(be.prototype);Object.defineProperty(h,Y,{writable:!0,value:c}),Ut.register(h,c,h),Object.defineProperty(h,M,{writable:!0,value:function(){Ut.unregister(h),P(Mt,c),h[M]=S,h[Y]=null,G[17](Mt[1+(c<<1)]&~D)}}),s=h}n.push({label:r,node:s})}return vt(r),n}}),ve.prototype.unparse=function(){var t=this[Y];if(!t||0==(qt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=qt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]nonterminal-node.unparse"](e);var s=T(it).getInt32(r+0,!0),i=T(it).getInt32(r+4,!0),n=V.decode(new Uint8Array(it.buffer,s,i));return bt(r),n},ve.prototype.toJson=function(){var t=this[Y];if(!t||0==(qt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=qt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]nonterminal-node.to-json"](e);var s=T(it).getInt32(r+0,!0),i=T(it).getInt32(r+4,!0),n=V.decode(new Uint8Array(it.buffer,s,i));return bt(r),n},ve.prototype.createCursor=function(t){var e=this[Y];if(!e||0==(qt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=qt[1+(e<<1)]&~D,{utf8:s,utf16:i,line:n,column:a}=t,o=z["nomic-foundation:slang/cst#[method]nonterminal-node.create-cursor"](r,B(s),B(i),B(n),B(a)),c=new.target===_e?this:Object.create(_e.prototype);return Object.defineProperty(c,Y,{writable:!0,value:o}),Ht.register(c,o,c),Object.defineProperty(c,M,{writable:!0,value:function(){Ht.unregister(c),P(Vt,o),c[M]=S,c[Y]=null,G[18](Vt[1+(o<<1)]&~D)}}),c};class be{constructor(){throw new Error('"TerminalNode" resource does not define a constructor')}}be.prototype[Q]=function(t,e,r){const s=Object.getPrototypeOf(this)[Q];try{return delete Object.getPrototypeOf(this)[Q],r(this,{...e,depth:t,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[Q]=s}},Object.defineProperty(be.prototype,"id",{get:function(){var t=this[Y];if(!t||0==(Mt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Mt[1+(t<<1)]&~D;return z["nomic-foundation:slang/cst#[method]terminal-node.id"](e)>>>0}}),Object.defineProperty(be.prototype,"kind",{get:function(){var t=this[Y];if(!t||0==(Mt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Mt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]terminal-node.kind"](e);return c[r]}}),Object.defineProperty(be.prototype,"textLength",{get:function(){var t=this[Y];if(!t||0==(Mt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Mt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]terminal-node.text-length"](e);return{utf8:T(it).getInt32(r+0,!0)>>>0,utf16:T(it).getInt32(r+4,!0)>>>0,line:T(it).getInt32(r+8,!0)>>>0,column:T(it).getInt32(r+12,!0)>>>0}}}),Object.defineProperty(be.prototype,"children",{get:function(){var t=this[Y];if(!t||0==(Mt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Mt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]terminal-node.children"](e);var s=T(it).getInt32(r+4,!0),i=T(it).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+12*t;let r,s;switch(r=T(it).getUint8(e+0,!0)?l[T(it).getUint8(e+1,!0)]:void 0,T(it).getUint8(e+4,!0)){case 0:var a=T(it).getInt32(e+8,!0),o=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Yt.register(o,a,o),Object.defineProperty(o,M,{writable:!0,value:function(){Yt.unregister(o),P(qt,a),o[M]=S,o[Y]=null,G[16](qt[1+(a<<1)]&~D)}}),s=o;break;case 1:var c=T(it).getInt32(e+8,!0),h=new.target===be?this:Object.create(be.prototype);Object.defineProperty(h,Y,{writable:!0,value:c}),Ut.register(h,c,h),Object.defineProperty(h,M,{writable:!0,value:function(){Ut.unregister(h),P(Mt,c),h[M]=S,h[Y]=null,G[17](Mt[1+(c<<1)]&~D)}}),s=h}n.push({label:r,node:s})}return vt(r),n}}),be.prototype.unparse=function(){var t=this[Y];if(!t||0==(Mt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Mt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]terminal-node.unparse"](e);var s=T(it).getInt32(r+0,!0),i=T(it).getInt32(r+4,!0),n=V.decode(new Uint8Array(it.buffer,s,i));return bt(r),n},be.prototype.toJson=function(){var t=this[Y];if(!t||0==(Mt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Mt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]terminal-node.to-json"](e);var s=T(it).getInt32(r+0,!0),i=T(it).getInt32(r+4,!0),n=V.decode(new Uint8Array(it.buffer,s,i));return bt(r),n};class _e{constructor(){throw new Error('"Cursor" resource does not define a constructor')}}_e.prototype.reset=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;z["nomic-foundation:slang/cst#[method]cursor.reset"](e)},_e.prototype.complete=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;z["nomic-foundation:slang/cst#[method]cursor.complete"](e)},_e.prototype.isCompleted=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.is-completed"](e)},_e.prototype.clone=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D,r=z["nomic-foundation:slang/cst#[method]cursor.clone"](e),s=new.target===_e?this:Object.create(_e.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Ht.register(s,r,s),Object.defineProperty(s,M,{writable:!0,value:function(){Ht.unregister(s),P(Vt,r),s[M]=S,s[Y]=null,G[18](Vt[1+(r<<1)]&~D)}}),s},_e.prototype.spawn=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D,r=z["nomic-foundation:slang/cst#[method]cursor.spawn"](e),s=new.target===_e?this:Object.create(_e.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Ht.register(s,r,s),Object.defineProperty(s,M,{writable:!0,value:function(){Ht.unregister(s),P(Vt,r),s[M]=S,s[Y]=null,G[18](Vt[1+(r<<1)]&~D)}}),s},Object.defineProperty(_e.prototype,"node",{get:function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]cursor.node"](e);let s;switch(T(it).getUint8(r+0,!0)){case 0:var i=T(it).getInt32(r+4,!0),n=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Yt.register(n,i,n),Object.defineProperty(n,M,{writable:!0,value:function(){Yt.unregister(n),P(qt,i),n[M]=S,n[Y]=null,G[16](qt[1+(i<<1)]&~D)}}),s=n;break;case 1:var a=T(it).getInt32(r+4,!0),o=new.target===be?this:Object.create(be.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Ut.register(o,a,o),Object.defineProperty(o,M,{writable:!0,value:function(){Ut.unregister(o),P(Mt,a),o[M]=S,o[Y]=null,G[17](Mt[1+(a<<1)]&~D)}}),s=o}return s}}),Object.defineProperty(_e.prototype,"label",{get:function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]cursor.label"](e);let s;return s=T(it).getUint8(r+0,!0)?l[T(it).getUint8(r+1,!0)]:void 0,s}}),Object.defineProperty(_e.prototype,"textOffset",{get:function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]cursor.text-offset"](e);return{utf8:T(it).getInt32(r+0,!0)>>>0,utf16:T(it).getInt32(r+4,!0)>>>0,line:T(it).getInt32(r+8,!0)>>>0,column:T(it).getInt32(r+12,!0)>>>0}}}),Object.defineProperty(_e.prototype,"textRange",{get:function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]cursor.text-range"](e);return{start:{utf8:T(it).getInt32(r+0,!0)>>>0,utf16:T(it).getInt32(r+4,!0)>>>0,line:T(it).getInt32(r+8,!0)>>>0,column:T(it).getInt32(r+12,!0)>>>0},end:{utf8:T(it).getInt32(r+16,!0)>>>0,utf16:T(it).getInt32(r+20,!0)>>>0,line:T(it).getInt32(r+24,!0)>>>0,column:T(it).getInt32(r+28,!0)>>>0}}}}),Object.defineProperty(_e.prototype,"depth",{get:function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return z["nomic-foundation:slang/cst#[method]cursor.depth"](e)>>>0}}),Object.defineProperty(_e.prototype,"ancestors",{get:function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]cursor.ancestors"](e);var s=T(it).getInt32(r+4,!0),i=T(it).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=T(it).getInt32(e+0,!0),o=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Yt.register(o,a,o),Object.defineProperty(o,M,{writable:!0,value:function(){Yt.unregister(o),P(qt,a),o[M]=S,o[Y]=null,G[16](qt[1+(a<<1)]&~D)}}),n.push(o)}return _t(r),n}}),_e.prototype.goToNext=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-next"](e)},_e.prototype.goToNextNonDescendent=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-next-non-descendent"](e)},_e.prototype.goToPrevious=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-previous"](e)},_e.prototype.goToParent=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-parent"](e)},_e.prototype.goToFirstChild=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-first-child"](e)},_e.prototype.goToLastChild=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-last-child"](e)},_e.prototype.goToNthChild=function(t){var e=this[Y];if(!e||0==(Vt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=Vt[1+(e<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-nth-child"](r,B(t))},_e.prototype.goToNextSibling=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-next-sibling"](e)},_e.prototype.goToPreviousSibling=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-previous-sibling"](e)},_e.prototype.goToNextTerminal=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal"](e)},_e.prototype.goToNextTerminalWithKind=function(t){var e=this[Y];if(!e||0==(Vt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=Vt[1+(e<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kind"](r,c[t])},_e.prototype.goToNextTerminalWithKinds=function(t){var e=this[Y];if(!e||0==(Vt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=Vt[1+(e<<1)]&~D,s=t,i=s.length,n=Et(0,0,2,2*i);for(let t=0;t<s.length;t++){const e=s[t],r=n+2*t;T(it).setInt16(r+0,c[e],!0)}return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kinds"](r,n,i)},_e.prototype.goToNextNonterminal=function(){var t=this[Y];if(!t||0==(Vt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=Vt[1+(t<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal"](e)},_e.prototype.goToNextNonterminalWithKind=function(t){var e=this[Y];if(!e||0==(Vt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=Vt[1+(e<<1)]&~D;return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kind"](r,o[t])},_e.prototype.goToNextNonterminalWithKinds=function(t){var e=this[Y];if(!e||0==(Vt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=Vt[1+(e<<1)]&~D,s=t,i=s.length,n=Et(0,0,1,1*i);for(let t=0;t<s.length;t++){const e=s[t],r=n+1*t;T(it).setInt8(r+0,o[e],!0)}return!!z["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kinds"](r,n,i)},_e.prototype.query=function(t){var e=this[Y];if(!e||0==(Vt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=Vt[1+(e<<1)]&~D,s=t,i=s.length,n=Et(0,0,4,4*i);for(let t=0;t<s.length;t++){const e=n+4*t;var a=s[t][Y];if(!a||0==(Zt[1+(a<<1)]&D))throw new TypeError('Resource error: Not a valid "Query" resource.');var o=Zt[1+(a<<1)]&~D;T(it).setInt32(e+0,o,!0)}var c=z["nomic-foundation:slang/cst#[method]cursor.query"](r,n,i),l=new.target===Te?this:Object.create(Te.prototype);return Object.defineProperty(l,Y,{writable:!0,value:c}),Wt.register(l,c,l),Object.defineProperty(l,M,{writable:!0,value:function(){Wt.unregister(l),P(zt,c),l[M]=S,l[Y]=null,G[20](zt[1+(c<<1)]&~D)}}),l};class Ee{constructor(){throw new Error('"Query" resource does not define a constructor')}}Ee.parse=function(t){var e=$(t,Et,it),r=j;const s=z["nomic-foundation:slang/cst#[static]query.parse"](e,r);let i;if(T(it).getUint8(s+0,!0)){var n=T(it).getInt32(s+4,!0),a=T(it).getInt32(s+8,!0);i={tag:"err",val:{message:V.decode(new Uint8Array(it.buffer,n,a)),line:T(it).getInt32(s+12,!0)>>>0,column:T(it).getInt32(s+16,!0)>>>0}}}else{var o=T(it).getInt32(s+4,!0),c=new.target===Ee?this:Object.create(Ee.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),te.register(c,o,c),Object.defineProperty(c,M,{writable:!0,value:function(){te.unregister(c),P(Zt,o),c[M]=S,c[Y]=null,G[19](Zt[1+(o<<1)]&~D)}}),i={tag:"ok",val:c}}if(Tt(s),"err"===i.tag)throw i.val;return i.val};class Te{constructor(){throw new Error('"QueryMatchIterator" resource does not define a constructor')}}Te.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},Te.prototype.next=function(){var t=this[Y];if(!t||0==(zt[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "QueryMatchIterator" resource.');var e=zt[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/cst#[method]query-match-iterator.next"](e);let s;if(T(it).getUint8(r+0,!0)){var i=T(it).getInt32(r+12,!0),n=T(it).getInt32(r+8,!0),a=[];for(let t=0;t<i;t++){const e=n+16*t;var o=T(it).getInt32(e+0,!0),c=T(it).getInt32(e+4,!0),l=V.decode(new Uint8Array(it.buffer,o,c)),h=T(it).getInt32(e+12,!0),u=T(it).getInt32(e+8,!0),d=[];for(let t=0;t<h;t++){const e=u+4*t;var p=T(it).getInt32(e+0,!0),m=new.target===_e?this:Object.create(_e.prototype);Object.defineProperty(m,Y,{writable:!0,value:p}),Ht.register(m,p,m),Object.defineProperty(m,M,{writable:!0,value:function(){Ht.unregister(m),P(Vt,p),m[M]=S,m[Y]=null,G[18](Vt[1+(p<<1)]&~D)}}),d.push(m)}a.push([l,d])}s={queryNumber:T(it).getInt32(r+4,!0)>>>0,captures:a.reduce(((t,e)=>(t[e[0]]=e[1],t)),{})}}else s=void 0;return St(r),s};var o={};o[o.AbicoderPragma=0]="AbicoderPragma",o[o.AdditiveExpression=1]="AdditiveExpression",o[o.AddressType=2]="AddressType",o[o.AndExpression=3]="AndExpression",o[o.ArgumentsDeclaration=4]="ArgumentsDeclaration",o[o.ArrayExpression=5]="ArrayExpression",o[o.ArrayTypeName=6]="ArrayTypeName",o[o.ArrayValues=7]="ArrayValues",o[o.AssemblyFlags=8]="AssemblyFlags",o[o.AssemblyFlagsDeclaration=9]="AssemblyFlagsDeclaration",o[o.AssemblyStatement=10]="AssemblyStatement",o[o.AssignmentExpression=11]="AssignmentExpression",o[o.BitwiseAndExpression=12]="BitwiseAndExpression",o[o.BitwiseOrExpression=13]="BitwiseOrExpression",o[o.BitwiseXorExpression=14]="BitwiseXorExpression",o[o.Block=15]="Block",o[o.BreakStatement=16]="BreakStatement",o[o.CallOptions=17]="CallOptions",o[o.CallOptionsExpression=18]="CallOptionsExpression",o[o.CatchClause=19]="CatchClause",o[o.CatchClauseError=20]="CatchClauseError",o[o.CatchClauses=21]="CatchClauses",o[o.ComparisonExpression=22]="ComparisonExpression",o[o.ConditionalExpression=23]="ConditionalExpression",o[o.ConstantDefinition=24]="ConstantDefinition",o[o.ConstructorAttribute=25]="ConstructorAttribute",o[o.ConstructorAttributes=26]="ConstructorAttributes",o[o.ConstructorDefinition=27]="ConstructorDefinition",o[o.ContinueStatement=28]="ContinueStatement",o[o.ContractDefinition=29]="ContractDefinition",o[o.ContractMember=30]="ContractMember",o[o.ContractMembers=31]="ContractMembers",o[o.DecimalNumberExpression=32]="DecimalNumberExpression",o[o.DoWhileStatement=33]="DoWhileStatement",o[o.ElementaryType=34]="ElementaryType",o[o.ElseBranch=35]="ElseBranch",o[o.EmitStatement=36]="EmitStatement",o[o.EnumDefinition=37]="EnumDefinition",o[o.EnumMembers=38]="EnumMembers",o[o.EqualityExpression=39]="EqualityExpression",o[o.ErrorDefinition=40]="ErrorDefinition",o[o.ErrorParameter=41]="ErrorParameter",o[o.ErrorParameters=42]="ErrorParameters",o[o.ErrorParametersDeclaration=43]="ErrorParametersDeclaration",o[o.EventDefinition=44]="EventDefinition",o[o.EventParameter=45]="EventParameter",o[o.EventParameters=46]="EventParameters",o[o.EventParametersDeclaration=47]="EventParametersDeclaration",o[o.ExperimentalFeature=48]="ExperimentalFeature",o[o.ExperimentalPragma=49]="ExperimentalPragma",o[o.ExponentiationExpression=50]="ExponentiationExpression",o[o.Expression=51]="Expression",o[o.ExpressionStatement=52]="ExpressionStatement",o[o.FallbackFunctionAttribute=53]="FallbackFunctionAttribute",o[o.FallbackFunctionAttributes=54]="FallbackFunctionAttributes",o[o.FallbackFunctionDefinition=55]="FallbackFunctionDefinition",o[o.ForStatement=56]="ForStatement",o[o.ForStatementCondition=57]="ForStatementCondition",o[o.ForStatementInitialization=58]="ForStatementInitialization",o[o.FunctionAttribute=59]="FunctionAttribute",o[o.FunctionAttributes=60]="FunctionAttributes",o[o.FunctionBody=61]="FunctionBody",o[o.FunctionCallExpression=62]="FunctionCallExpression",o[o.FunctionDefinition=63]="FunctionDefinition",o[o.FunctionName=64]="FunctionName",o[o.FunctionType=65]="FunctionType",o[o.FunctionTypeAttribute=66]="FunctionTypeAttribute",o[o.FunctionTypeAttributes=67]="FunctionTypeAttributes",o[o.HexNumberExpression=68]="HexNumberExpression",o[o.HexStringLiteral=69]="HexStringLiteral",o[o.HexStringLiterals=70]="HexStringLiterals",o[o.IdentifierPath=71]="IdentifierPath",o[o.IfStatement=72]="IfStatement",o[o.ImportAlias=73]="ImportAlias",o[o.ImportClause=74]="ImportClause",o[o.ImportDeconstruction=75]="ImportDeconstruction",o[o.ImportDeconstructionSymbol=76]="ImportDeconstructionSymbol",o[o.ImportDeconstructionSymbols=77]="ImportDeconstructionSymbols",o[o.ImportDirective=78]="ImportDirective",o[o.IndexAccessEnd=79]="IndexAccessEnd",o[o.IndexAccessExpression=80]="IndexAccessExpression",o[o.InheritanceSpecifier=81]="InheritanceSpecifier",o[o.InheritanceType=82]="InheritanceType",o[o.InheritanceTypes=83]="InheritanceTypes",o[o.InterfaceDefinition=84]="InterfaceDefinition",o[o.InterfaceMembers=85]="InterfaceMembers",o[o.LibraryDefinition=86]="LibraryDefinition",o[o.LibraryMembers=87]="LibraryMembers",o[o.MappingKey=88]="MappingKey",o[o.MappingKeyType=89]="MappingKeyType",o[o.MappingType=90]="MappingType",o[o.MappingValue=91]="MappingValue",o[o.MemberAccessExpression=92]="MemberAccessExpression",o[o.ModifierAttribute=93]="ModifierAttribute",o[o.ModifierAttributes=94]="ModifierAttributes",o[o.ModifierDefinition=95]="ModifierDefinition",o[o.ModifierInvocation=96]="ModifierInvocation",o[o.MultiplicativeExpression=97]="MultiplicativeExpression",o[o.NamedArgument=98]="NamedArgument",o[o.NamedArgumentGroup=99]="NamedArgumentGroup",o[o.NamedArguments=100]="NamedArguments",o[o.NamedArgumentsDeclaration=101]="NamedArgumentsDeclaration",o[o.NamedImport=102]="NamedImport",o[o.NewExpression=103]="NewExpression",o[o.NumberUnit=104]="NumberUnit",o[o.OrExpression=105]="OrExpression",o[o.OverridePaths=106]="OverridePaths",o[o.OverridePathsDeclaration=107]="OverridePathsDeclaration",o[o.OverrideSpecifier=108]="OverrideSpecifier",o[o.Parameter=109]="Parameter",o[o.Parameters=110]="Parameters",o[o.ParametersDeclaration=111]="ParametersDeclaration",o[o.PathImport=112]="PathImport",o[o.PositionalArguments=113]="PositionalArguments",o[o.PositionalArgumentsDeclaration=114]="PositionalArgumentsDeclaration",o[o.PostfixExpression=115]="PostfixExpression",o[o.Pragma=116]="Pragma",o[o.PragmaDirective=117]="PragmaDirective",o[o.PrefixExpression=118]="PrefixExpression",o[o.ReceiveFunctionAttribute=119]="ReceiveFunctionAttribute",o[o.ReceiveFunctionAttributes=120]="ReceiveFunctionAttributes",o[o.ReceiveFunctionDefinition=121]="ReceiveFunctionDefinition",o[o.ReturnStatement=122]="ReturnStatement",o[o.ReturnsDeclaration=123]="ReturnsDeclaration",o[o.RevertStatement=124]="RevertStatement",o[o.ShiftExpression=125]="ShiftExpression",o[o.SimpleVersionLiteral=126]="SimpleVersionLiteral",o[o.SourceUnit=127]="SourceUnit",o[o.SourceUnitMember=128]="SourceUnitMember",o[o.SourceUnitMembers=129]="SourceUnitMembers",o[o.StateVariableAttribute=130]="StateVariableAttribute",o[o.StateVariableAttributes=131]="StateVariableAttributes",o[o.StateVariableDefinition=132]="StateVariableDefinition",o[o.StateVariableDefinitionValue=133]="StateVariableDefinitionValue",o[o.Statement=134]="Statement",o[o.Statements=135]="Statements",o[o.StorageLocation=136]="StorageLocation",o[o.StringExpression=137]="StringExpression",o[o.StringLiteral=138]="StringLiteral",o[o.StringLiterals=139]="StringLiterals",o[o.StructDefinition=140]="StructDefinition",o[o.StructMember=141]="StructMember",o[o.StructMembers=142]="StructMembers",o[o.ThrowStatement=143]="ThrowStatement",o[o.TryStatement=144]="TryStatement",o[o.TupleDeconstructionElement=145]="TupleDeconstructionElement",o[o.TupleDeconstructionElements=146]="TupleDeconstructionElements",o[o.TupleDeconstructionStatement=147]="TupleDeconstructionStatement",o[o.TupleExpression=148]="TupleExpression",o[o.TupleMember=149]="TupleMember",o[o.TupleValue=150]="TupleValue",o[o.TupleValues=151]="TupleValues",o[o.TypeExpression=152]="TypeExpression",o[o.TypeName=153]="TypeName",o[o.TypedTupleMember=154]="TypedTupleMember",o[o.UncheckedBlock=155]="UncheckedBlock",o[o.UnicodeStringLiteral=156]="UnicodeStringLiteral",o[o.UnicodeStringLiterals=157]="UnicodeStringLiterals",o[o.UnnamedFunctionAttribute=158]="UnnamedFunctionAttribute",o[o.UnnamedFunctionAttributes=159]="UnnamedFunctionAttributes",o[o.UnnamedFunctionDefinition=160]="UnnamedFunctionDefinition",o[o.UntypedTupleMember=161]="UntypedTupleMember",o[o.UserDefinedValueTypeDefinition=162]="UserDefinedValueTypeDefinition",o[o.UsingAlias=163]="UsingAlias",o[o.UsingClause=164]="UsingClause",o[o.UsingDeconstruction=165]="UsingDeconstruction",o[o.UsingDeconstructionSymbol=166]="UsingDeconstructionSymbol",o[o.UsingDeconstructionSymbols=167]="UsingDeconstructionSymbols",o[o.UsingDirective=168]="UsingDirective",o[o.UsingOperator=169]="UsingOperator",o[o.UsingTarget=170]="UsingTarget",o[o.VariableDeclarationStatement=171]="VariableDeclarationStatement",o[o.VariableDeclarationType=172]="VariableDeclarationType",o[o.VariableDeclarationValue=173]="VariableDeclarationValue",o[o.VersionExpression=174]="VersionExpression",o[o.VersionExpressionSet=175]="VersionExpressionSet",o[o.VersionExpressionSets=176]="VersionExpressionSets",o[o.VersionLiteral=177]="VersionLiteral",o[o.VersionOperator=178]="VersionOperator",o[o.VersionPragma=179]="VersionPragma",o[o.VersionRange=180]="VersionRange",o[o.VersionTerm=181]="VersionTerm",o[o.WhileStatement=182]="WhileStatement",o[o.YulArguments=183]="YulArguments",o[o.YulAssignmentOperator=184]="YulAssignmentOperator",o[o.YulBlock=185]="YulBlock",o[o.YulBreakStatement=186]="YulBreakStatement",o[o.YulBuiltInFunction=187]="YulBuiltInFunction",o[o.YulColonAndEqual=188]="YulColonAndEqual",o[o.YulContinueStatement=189]="YulContinueStatement",o[o.YulDefaultCase=190]="YulDefaultCase",o[o.YulEqualAndColon=191]="YulEqualAndColon",o[o.YulExpression=192]="YulExpression",o[o.YulForStatement=193]="YulForStatement",o[o.YulFunctionCallExpression=194]="YulFunctionCallExpression",o[o.YulFunctionDefinition=195]="YulFunctionDefinition",o[o.YulIfStatement=196]="YulIfStatement",o[o.YulLabel=197]="YulLabel",o[o.YulLeaveStatement=198]="YulLeaveStatement",o[o.YulLiteral=199]="YulLiteral",o[o.YulParameters=200]="YulParameters",o[o.YulParametersDeclaration=201]="YulParametersDeclaration",o[o.YulPath=202]="YulPath",o[o.YulPathComponent=203]="YulPathComponent",o[o.YulPaths=204]="YulPaths",o[o.YulReturnsDeclaration=205]="YulReturnsDeclaration",o[o.YulStackAssignmentOperator=206]="YulStackAssignmentOperator",o[o.YulStackAssignmentStatement=207]="YulStackAssignmentStatement",o[o.YulStatement=208]="YulStatement",o[o.YulStatements=209]="YulStatements",o[o.YulSwitchCase=210]="YulSwitchCase",o[o.YulSwitchCases=211]="YulSwitchCases",o[o.YulSwitchStatement=212]="YulSwitchStatement",o[o.YulValueCase=213]="YulValueCase",o[o.YulVariableAssignmentStatement=214]="YulVariableAssignmentStatement",o[o.YulVariableDeclarationStatement=215]="YulVariableDeclarationStatement",o[o.YulVariableDeclarationValue=216]="YulVariableDeclarationValue",o[o.YulVariableNames=217]="YulVariableNames";var c={};c[c.Unrecognized=0]="Unrecognized",c[c.Missing=1]="Missing",c[c.AbicoderKeyword=2]="AbicoderKeyword",c[c.AbstractKeyword=3]="AbstractKeyword",c[c.AddressKeyword=4]="AddressKeyword",c[c.AfterKeyword=5]="AfterKeyword",c[c.AliasKeyword=6]="AliasKeyword",c[c.Ampersand=7]="Ampersand",c[c.AmpersandAmpersand=8]="AmpersandAmpersand",c[c.AmpersandEqual=9]="AmpersandEqual",c[c.AnonymousKeyword=10]="AnonymousKeyword",c[c.ApplyKeyword=11]="ApplyKeyword",c[c.AsKeyword=12]="AsKeyword",c[c.AssemblyKeyword=13]="AssemblyKeyword",c[c.Asterisk=14]="Asterisk",c[c.AsteriskAsterisk=15]="AsteriskAsterisk",c[c.AsteriskEqual=16]="AsteriskEqual",c[c.AutoKeyword=17]="AutoKeyword",c[c.Bang=18]="Bang",c[c.BangEqual=19]="BangEqual",c[c.Bar=20]="Bar",c[c.BarBar=21]="BarBar",c[c.BarEqual=22]="BarEqual",c[c.BoolKeyword=23]="BoolKeyword",c[c.BreakKeyword=24]="BreakKeyword",c[c.ByteKeyword=25]="ByteKeyword",c[c.BytesKeyword=26]="BytesKeyword",c[c.CallDataKeyword=27]="CallDataKeyword",c[c.Caret=28]="Caret",c[c.CaretEqual=29]="CaretEqual",c[c.CaseKeyword=30]="CaseKeyword",c[c.CatchKeyword=31]="CatchKeyword",c[c.CloseBrace=32]="CloseBrace",c[c.CloseBracket=33]="CloseBracket",c[c.CloseParen=34]="CloseParen",c[c.Colon=35]="Colon",c[c.ColonEqual=36]="ColonEqual",c[c.Comma=37]="Comma",c[c.ConstantKeyword=38]="ConstantKeyword",c[c.ConstructorKeyword=39]="ConstructorKeyword",c[c.ContinueKeyword=40]="ContinueKeyword",c[c.ContractKeyword=41]="ContractKeyword",c[c.CopyOfKeyword=42]="CopyOfKeyword",c[c.DaysKeyword=43]="DaysKeyword",c[c.DecimalLiteral=44]="DecimalLiteral",c[c.DefaultKeyword=45]="DefaultKeyword",c[c.DefineKeyword=46]="DefineKeyword",c[c.DeleteKeyword=47]="DeleteKeyword",c[c.DoKeyword=48]="DoKeyword",c[c.DoubleQuotedHexStringLiteral=49]="DoubleQuotedHexStringLiteral",c[c.DoubleQuotedStringLiteral=50]="DoubleQuotedStringLiteral",c[c.DoubleQuotedUnicodeStringLiteral=51]="DoubleQuotedUnicodeStringLiteral",c[c.DoubleQuotedVersionLiteral=52]="DoubleQuotedVersionLiteral",c[c.ElseKeyword=53]="ElseKeyword",c[c.EmitKeyword=54]="EmitKeyword",c[c.EndOfLine=55]="EndOfLine",c[c.EnumKeyword=56]="EnumKeyword",c[c.Equal=57]="Equal",c[c.EqualColon=58]="EqualColon",c[c.EqualEqual=59]="EqualEqual",c[c.EqualGreaterThan=60]="EqualGreaterThan",c[c.ErrorKeyword=61]="ErrorKeyword",c[c.EtherKeyword=62]="EtherKeyword",c[c.EventKeyword=63]="EventKeyword",c[c.ExperimentalKeyword=64]="ExperimentalKeyword",c[c.ExternalKeyword=65]="ExternalKeyword",c[c.FallbackKeyword=66]="FallbackKeyword",c[c.FalseKeyword=67]="FalseKeyword",c[c.FinalKeyword=68]="FinalKeyword",c[c.FinneyKeyword=69]="FinneyKeyword",c[c.FixedKeyword=70]="FixedKeyword",c[c.ForKeyword=71]="ForKeyword",c[c.FromKeyword=72]="FromKeyword",c[c.FunctionKeyword=73]="FunctionKeyword",c[c.GlobalKeyword=74]="GlobalKeyword",c[c.GreaterThan=75]="GreaterThan",c[c.GreaterThanEqual=76]="GreaterThanEqual",c[c.GreaterThanGreaterThan=77]="GreaterThanGreaterThan",c[c.GreaterThanGreaterThanEqual=78]="GreaterThanGreaterThanEqual",c[c.GreaterThanGreaterThanGreaterThan=79]="GreaterThanGreaterThanGreaterThan",c[c.GreaterThanGreaterThanGreaterThanEqual=80]="GreaterThanGreaterThanGreaterThanEqual",c[c.GweiKeyword=81]="GweiKeyword",c[c.HexKeyword=82]="HexKeyword",c[c.HexLiteral=83]="HexLiteral",c[c.HoursKeyword=84]="HoursKeyword",c[c.Identifier=85]="Identifier",c[c.IfKeyword=86]="IfKeyword",c[c.ImmutableKeyword=87]="ImmutableKeyword",c[c.ImplementsKeyword=88]="ImplementsKeyword",c[c.ImportKeyword=89]="ImportKeyword",c[c.InKeyword=90]="InKeyword",c[c.IndexedKeyword=91]="IndexedKeyword",c[c.InlineKeyword=92]="InlineKeyword",c[c.IntKeyword=93]="IntKeyword",c[c.InterfaceKeyword=94]="InterfaceKeyword",c[c.InternalKeyword=95]="InternalKeyword",c[c.IsKeyword=96]="IsKeyword",c[c.LessThan=97]="LessThan",c[c.LessThanEqual=98]="LessThanEqual",c[c.LessThanLessThan=99]="LessThanLessThan",c[c.LessThanLessThanEqual=100]="LessThanLessThanEqual",c[c.LetKeyword=101]="LetKeyword",c[c.LibraryKeyword=102]="LibraryKeyword",c[c.MacroKeyword=103]="MacroKeyword",c[c.MappingKeyword=104]="MappingKeyword",c[c.MatchKeyword=105]="MatchKeyword",c[c.MemoryKeyword=106]="MemoryKeyword",c[c.Minus=107]="Minus",c[c.MinusEqual=108]="MinusEqual",c[c.MinusGreaterThan=109]="MinusGreaterThan",c[c.MinusMinus=110]="MinusMinus",c[c.MinutesKeyword=111]="MinutesKeyword",c[c.ModifierKeyword=112]="ModifierKeyword",c[c.MultiLineComment=113]="MultiLineComment",c[c.MultiLineNatSpecComment=114]="MultiLineNatSpecComment",c[c.MutableKeyword=115]="MutableKeyword",c[c.NewKeyword=116]="NewKeyword",c[c.NullKeyword=117]="NullKeyword",c[c.OfKeyword=118]="OfKeyword",c[c.OpenBrace=119]="OpenBrace",c[c.OpenBracket=120]="OpenBracket",c[c.OpenParen=121]="OpenParen",c[c.OverrideKeyword=122]="OverrideKeyword",c[c.PartialKeyword=123]="PartialKeyword",c[c.PayableKeyword=124]="PayableKeyword",c[c.Percent=125]="Percent",c[c.PercentEqual=126]="PercentEqual",c[c.Period=127]="Period",c[c.Plus=128]="Plus",c[c.PlusEqual=129]="PlusEqual",c[c.PlusPlus=130]="PlusPlus",c[c.PragmaKeyword=131]="PragmaKeyword",c[c.PrivateKeyword=132]="PrivateKeyword",c[c.PromiseKeyword=133]="PromiseKeyword",c[c.PublicKeyword=134]="PublicKeyword",c[c.PureKeyword=135]="PureKeyword",c[c.QuestionMark=136]="QuestionMark",c[c.ReceiveKeyword=137]="ReceiveKeyword",c[c.ReferenceKeyword=138]="ReferenceKeyword",c[c.RelocatableKeyword=139]="RelocatableKeyword",c[c.ReturnKeyword=140]="ReturnKeyword",c[c.ReturnsKeyword=141]="ReturnsKeyword",c[c.RevertKeyword=142]="RevertKeyword",c[c.SealedKeyword=143]="SealedKeyword",c[c.SecondsKeyword=144]="SecondsKeyword",c[c.Semicolon=145]="Semicolon",c[c.SingleLineComment=146]="SingleLineComment",c[c.SingleLineNatSpecComment=147]="SingleLineNatSpecComment",c[c.SingleQuotedHexStringLiteral=148]="SingleQuotedHexStringLiteral",c[c.SingleQuotedStringLiteral=149]="SingleQuotedStringLiteral",c[c.SingleQuotedUnicodeStringLiteral=150]="SingleQuotedUnicodeStringLiteral",c[c.SingleQuotedVersionLiteral=151]="SingleQuotedVersionLiteral",c[c.SizeOfKeyword=152]="SizeOfKeyword",c[c.Slash=153]="Slash",c[c.SlashEqual=154]="SlashEqual",c[c.SolidityKeyword=155]="SolidityKeyword",c[c.StaticKeyword=156]="StaticKeyword",c[c.StorageKeyword=157]="StorageKeyword",c[c.StringKeyword=158]="StringKeyword",c[c.StructKeyword=159]="StructKeyword",c[c.SupportsKeyword=160]="SupportsKeyword",c[c.SwitchKeyword=161]="SwitchKeyword",c[c.SzaboKeyword=162]="SzaboKeyword",c[c.ThrowKeyword=163]="ThrowKeyword",c[c.Tilde=164]="Tilde",c[c.TransientKeyword=165]="TransientKeyword",c[c.TrueKeyword=166]="TrueKeyword",c[c.TryKeyword=167]="TryKeyword",c[c.TypeDefKeyword=168]="TypeDefKeyword",c[c.TypeKeyword=169]="TypeKeyword",c[c.TypeOfKeyword=170]="TypeOfKeyword",c[c.UfixedKeyword=171]="UfixedKeyword",c[c.UintKeyword=172]="UintKeyword",c[c.UncheckedKeyword=173]="UncheckedKeyword",c[c.UsingKeyword=174]="UsingKeyword",c[c.VarKeyword=175]="VarKeyword",c[c.VersionSpecifier=176]="VersionSpecifier",c[c.ViewKeyword=177]="ViewKeyword",c[c.VirtualKeyword=178]="VirtualKeyword",c[c.WeeksKeyword=179]="WeeksKeyword",c[c.WeiKeyword=180]="WeiKeyword",c[c.WhileKeyword=181]="WhileKeyword",c[c.Whitespace=182]="Whitespace",c[c.YearsKeyword=183]="YearsKeyword",c[c.YulAbstractKeyword=184]="YulAbstractKeyword",c[c.YulAddKeyword=185]="YulAddKeyword",c[c.YulAddModKeyword=186]="YulAddModKeyword",c[c.YulAddressKeyword=187]="YulAddressKeyword",c[c.YulAfterKeyword=188]="YulAfterKeyword",c[c.YulAliasKeyword=189]="YulAliasKeyword",c[c.YulAndKeyword=190]="YulAndKeyword",c[c.YulAnonymousKeyword=191]="YulAnonymousKeyword",c[c.YulApplyKeyword=192]="YulApplyKeyword",c[c.YulAsKeyword=193]="YulAsKeyword",c[c.YulAssemblyKeyword=194]="YulAssemblyKeyword",c[c.YulAutoKeyword=195]="YulAutoKeyword",c[c.YulBalanceKeyword=196]="YulBalanceKeyword",c[c.YulBaseFeeKeyword=197]="YulBaseFeeKeyword",c[c.YulBlobBaseFeeKeyword=198]="YulBlobBaseFeeKeyword",c[c.YulBlobHashKeyword=199]="YulBlobHashKeyword",c[c.YulBlockHashKeyword=200]="YulBlockHashKeyword",c[c.YulBoolKeyword=201]="YulBoolKeyword",c[c.YulBreakKeyword=202]="YulBreakKeyword",c[c.YulByteKeyword=203]="YulByteKeyword",c[c.YulBytesKeyword=204]="YulBytesKeyword",c[c.YulCallCodeKeyword=205]="YulCallCodeKeyword",c[c.YulCallDataCopyKeyword=206]="YulCallDataCopyKeyword",c[c.YulCallDataKeyword=207]="YulCallDataKeyword",c[c.YulCallDataLoadKeyword=208]="YulCallDataLoadKeyword",c[c.YulCallDataSizeKeyword=209]="YulCallDataSizeKeyword",c[c.YulCallKeyword=210]="YulCallKeyword",c[c.YulCallValueKeyword=211]="YulCallValueKeyword",c[c.YulCallerKeyword=212]="YulCallerKeyword",c[c.YulCaseKeyword=213]="YulCaseKeyword",c[c.YulCatchKeyword=214]="YulCatchKeyword",c[c.YulChainIdKeyword=215]="YulChainIdKeyword",c[c.YulCoinBaseKeyword=216]="YulCoinBaseKeyword",c[c.YulConstantKeyword=217]="YulConstantKeyword",c[c.YulConstructorKeyword=218]="YulConstructorKeyword",c[c.YulContinueKeyword=219]="YulContinueKeyword",c[c.YulContractKeyword=220]="YulContractKeyword",c[c.YulCopyOfKeyword=221]="YulCopyOfKeyword",c[c.YulCreate2Keyword=222]="YulCreate2Keyword",c[c.YulCreateKeyword=223]="YulCreateKeyword",c[c.YulDaysKeyword=224]="YulDaysKeyword",c[c.YulDecimalLiteral=225]="YulDecimalLiteral",c[c.YulDefaultKeyword=226]="YulDefaultKeyword",c[c.YulDefineKeyword=227]="YulDefineKeyword",c[c.YulDelegateCallKeyword=228]="YulDelegateCallKeyword",c[c.YulDeleteKeyword=229]="YulDeleteKeyword",c[c.YulDifficultyKeyword=230]="YulDifficultyKeyword",c[c.YulDivKeyword=231]="YulDivKeyword",c[c.YulDoKeyword=232]="YulDoKeyword",c[c.YulElseKeyword=233]="YulElseKeyword",c[c.YulEmitKeyword=234]="YulEmitKeyword",c[c.YulEnumKeyword=235]="YulEnumKeyword",c[c.YulEqKeyword=236]="YulEqKeyword",c[c.YulEtherKeyword=237]="YulEtherKeyword",c[c.YulEventKeyword=238]="YulEventKeyword",c[c.YulExpKeyword=239]="YulExpKeyword",c[c.YulExtCodeCopyKeyword=240]="YulExtCodeCopyKeyword",c[c.YulExtCodeHashKeyword=241]="YulExtCodeHashKeyword",c[c.YulExtCodeSizeKeyword=242]="YulExtCodeSizeKeyword",c[c.YulExternalKeyword=243]="YulExternalKeyword",c[c.YulFallbackKeyword=244]="YulFallbackKeyword",c[c.YulFalseKeyword=245]="YulFalseKeyword",c[c.YulFinalKeyword=246]="YulFinalKeyword",c[c.YulFinneyKeyword=247]="YulFinneyKeyword",c[c.YulFixedKeyword=248]="YulFixedKeyword",c[c.YulForKeyword=249]="YulForKeyword",c[c.YulFunctionKeyword=250]="YulFunctionKeyword",c[c.YulGasKeyword=251]="YulGasKeyword",c[c.YulGasLimitKeyword=252]="YulGasLimitKeyword",c[c.YulGasPriceKeyword=253]="YulGasPriceKeyword",c[c.YulGtKeyword=254]="YulGtKeyword",c[c.YulGweiKeyword=255]="YulGweiKeyword",c[c.YulHexKeyword=256]="YulHexKeyword",c[c.YulHexLiteral=257]="YulHexLiteral",c[c.YulHoursKeyword=258]="YulHoursKeyword",c[c.YulIdentifier=259]="YulIdentifier",c[c.YulIfKeyword=260]="YulIfKeyword",c[c.YulImmutableKeyword=261]="YulImmutableKeyword",c[c.YulImplementsKeyword=262]="YulImplementsKeyword",c[c.YulImportKeyword=263]="YulImportKeyword",c[c.YulInKeyword=264]="YulInKeyword",c[c.YulIndexedKeyword=265]="YulIndexedKeyword",c[c.YulInlineKeyword=266]="YulInlineKeyword",c[c.YulIntKeyword=267]="YulIntKeyword",c[c.YulInterfaceKeyword=268]="YulInterfaceKeyword",c[c.YulInternalKeyword=269]="YulInternalKeyword",c[c.YulInvalidKeyword=270]="YulInvalidKeyword",c[c.YulIsKeyword=271]="YulIsKeyword",c[c.YulIsZeroKeyword=272]="YulIsZeroKeyword",c[c.YulKeccak256Keyword=273]="YulKeccak256Keyword",c[c.YulLeaveKeyword=274]="YulLeaveKeyword",c[c.YulLetKeyword=275]="YulLetKeyword",c[c.YulLibraryKeyword=276]="YulLibraryKeyword",c[c.YulLog0Keyword=277]="YulLog0Keyword",c[c.YulLog1Keyword=278]="YulLog1Keyword",c[c.YulLog2Keyword=279]="YulLog2Keyword",c[c.YulLog3Keyword=280]="YulLog3Keyword",c[c.YulLog4Keyword=281]="YulLog4Keyword",c[c.YulLtKeyword=282]="YulLtKeyword",c[c.YulMcopyKeyword=283]="YulMcopyKeyword",c[c.YulMloadKeyword=284]="YulMloadKeyword",c[c.YulMsizeKeyword=285]="YulMsizeKeyword",c[c.YulMstore8Keyword=286]="YulMstore8Keyword",c[c.YulMstoreKeyword=287]="YulMstoreKeyword",c[c.YulMacroKeyword=288]="YulMacroKeyword",c[c.YulMappingKeyword=289]="YulMappingKeyword",c[c.YulMatchKeyword=290]="YulMatchKeyword",c[c.YulMemoryKeyword=291]="YulMemoryKeyword",c[c.YulMinutesKeyword=292]="YulMinutesKeyword",c[c.YulModKeyword=293]="YulModKeyword",c[c.YulModifierKeyword=294]="YulModifierKeyword",c[c.YulMulKeyword=295]="YulMulKeyword",c[c.YulMulModKeyword=296]="YulMulModKeyword",c[c.YulMutableKeyword=297]="YulMutableKeyword",c[c.YulNewKeyword=298]="YulNewKeyword",c[c.YulNotKeyword=299]="YulNotKeyword",c[c.YulNullKeyword=300]="YulNullKeyword",c[c.YulNumberKeyword=301]="YulNumberKeyword",c[c.YulOfKeyword=302]="YulOfKeyword",c[c.YulOrKeyword=303]="YulOrKeyword",c[c.YulOriginKeyword=304]="YulOriginKeyword",c[c.YulOverrideKeyword=305]="YulOverrideKeyword",c[c.YulPartialKeyword=306]="YulPartialKeyword",c[c.YulPayableKeyword=307]="YulPayableKeyword",c[c.YulPopKeyword=308]="YulPopKeyword",c[c.YulPragmaKeyword=309]="YulPragmaKeyword",c[c.YulPrevRandaoKeyword=310]="YulPrevRandaoKeyword",c[c.YulPrivateKeyword=311]="YulPrivateKeyword",c[c.YulPromiseKeyword=312]="YulPromiseKeyword",c[c.YulPublicKeyword=313]="YulPublicKeyword",c[c.YulPureKeyword=314]="YulPureKeyword",c[c.YulReceiveKeyword=315]="YulReceiveKeyword",c[c.YulReferenceKeyword=316]="YulReferenceKeyword",c[c.YulRelocatableKeyword=317]="YulRelocatableKeyword",c[c.YulReturnDataCopyKeyword=318]="YulReturnDataCopyKeyword",c[c.YulReturnDataSizeKeyword=319]="YulReturnDataSizeKeyword",c[c.YulReturnKeyword=320]="YulReturnKeyword",c[c.YulReturnsKeyword=321]="YulReturnsKeyword",c[c.YulRevertKeyword=322]="YulRevertKeyword",c[c.YulSdivKeyword=323]="YulSdivKeyword",c[c.YulSloadKeyword=324]="YulSloadKeyword",c[c.YulSmodKeyword=325]="YulSmodKeyword",c[c.YulSstoreKeyword=326]="YulSstoreKeyword",c[c.YulSarKeyword=327]="YulSarKeyword",c[c.YulSealedKeyword=328]="YulSealedKeyword",c[c.YulSecondsKeyword=329]="YulSecondsKeyword",c[c.YulSelfBalanceKeyword=330]="YulSelfBalanceKeyword",c[c.YulSelfDestructKeyword=331]="YulSelfDestructKeyword",c[c.YulSgtKeyword=332]="YulSgtKeyword",c[c.YulSha3Keyword=333]="YulSha3Keyword",c[c.YulShlKeyword=334]="YulShlKeyword",c[c.YulShrKeyword=335]="YulShrKeyword",c[c.YulSignExtendKeyword=336]="YulSignExtendKeyword",c[c.YulSizeOfKeyword=337]="YulSizeOfKeyword",c[c.YulSltKeyword=338]="YulSltKeyword",c[c.YulStaticCallKeyword=339]="YulStaticCallKeyword",c[c.YulStaticKeyword=340]="YulStaticKeyword",c[c.YulStopKeyword=341]="YulStopKeyword",c[c.YulStorageKeyword=342]="YulStorageKeyword",c[c.YulStringKeyword=343]="YulStringKeyword",c[c.YulStructKeyword=344]="YulStructKeyword",c[c.YulSubKeyword=345]="YulSubKeyword",c[c.YulSuicideKeyword=346]="YulSuicideKeyword",c[c.YulSupportsKeyword=347]="YulSupportsKeyword",c[c.YulSwitchKeyword=348]="YulSwitchKeyword",c[c.YulSzaboKeyword=349]="YulSzaboKeyword",c[c.YulTloadKeyword=350]="YulTloadKeyword",c[c.YulTstoreKeyword=351]="YulTstoreKeyword",c[c.YulThrowKeyword=352]="YulThrowKeyword",c[c.YulTimestampKeyword=353]="YulTimestampKeyword",c[c.YulTrueKeyword=354]="YulTrueKeyword",c[c.YulTryKeyword=355]="YulTryKeyword",c[c.YulTypeDefKeyword=356]="YulTypeDefKeyword",c[c.YulTypeKeyword=357]="YulTypeKeyword",c[c.YulTypeOfKeyword=358]="YulTypeOfKeyword",c[c.YulUfixedKeyword=359]="YulUfixedKeyword",c[c.YulUintKeyword=360]="YulUintKeyword",c[c.YulUncheckedKeyword=361]="YulUncheckedKeyword",c[c.YulUsingKeyword=362]="YulUsingKeyword",c[c.YulVarKeyword=363]="YulVarKeyword",c[c.YulViewKeyword=364]="YulViewKeyword",c[c.YulVirtualKeyword=365]="YulVirtualKeyword",c[c.YulWeeksKeyword=366]="YulWeeksKeyword",c[c.YulWeiKeyword=367]="YulWeiKeyword",c[c.YulWhileKeyword=368]="YulWhileKeyword",c[c.YulXorKeyword=369]="YulXorKeyword",c[c.YulYearsKeyword=370]="YulYearsKeyword";var l={};l[l.Item=0]="Item",l[l.Variant=1]="Variant",l[l.Separator=2]="Separator",l[l.Operand=3]="Operand",l[l.LeftOperand=4]="LeftOperand",l[l.RightOperand=5]="RightOperand",l[l.LeadingTrivia=6]="LeadingTrivia",l[l.TrailingTrivia=7]="TrailingTrivia",l[l.AbicoderKeyword=8]="AbicoderKeyword",l[l.AbstractKeyword=9]="AbstractKeyword",l[l.AddressKeyword=10]="AddressKeyword",l[l.Alias=11]="Alias",l[l.AnonymousKeyword=12]="AnonymousKeyword",l[l.Arguments=13]="Arguments",l[l.AsKeyword=14]="AsKeyword",l[l.AssemblyKeyword=15]="AssemblyKeyword",l[l.Assignment=16]="Assignment",l[l.Asterisk=17]="Asterisk",l[l.Attributes=18]="Attributes",l[l.Block=19]="Block",l[l.Body=20]="Body",l[l.BreakKeyword=21]="BreakKeyword",l[l.CaseKeyword=22]="CaseKeyword",l[l.Cases=23]="Cases",l[l.CatchClauses=24]="CatchClauses",l[l.CatchKeyword=25]="CatchKeyword",l[l.Clause=26]="Clause",l[l.CloseBrace=27]="CloseBrace",l[l.CloseBracket=28]="CloseBracket",l[l.CloseParen=29]="CloseParen",l[l.Colon=30]="Colon",l[l.Condition=31]="Condition",l[l.ConstantKeyword=32]="ConstantKeyword",l[l.ConstructorKeyword=33]="ConstructorKeyword",l[l.ContinueKeyword=34]="ContinueKeyword",l[l.ContractKeyword=35]="ContractKeyword",l[l.DefaultKeyword=36]="DefaultKeyword",l[l.DoKeyword=37]="DoKeyword",l[l.Elements=38]="Elements",l[l.ElseBranch=39]="ElseBranch",l[l.ElseKeyword=40]="ElseKeyword",l[l.EmitKeyword=41]="EmitKeyword",l[l.End=42]="End",l[l.EnumKeyword=43]="EnumKeyword",l[l.Equal=44]="Equal",l[l.EqualGreaterThan=45]="EqualGreaterThan",l[l.Error=46]="Error",l[l.ErrorKeyword=47]="ErrorKeyword",l[l.Event=48]="Event",l[l.EventKeyword=49]="EventKeyword",l[l.ExperimentalKeyword=50]="ExperimentalKeyword",l[l.Expression=51]="Expression",l[l.FallbackKeyword=52]="FallbackKeyword",l[l.FalseExpression=53]="FalseExpression",l[l.Feature=54]="Feature",l[l.Flags=55]="Flags",l[l.ForKeyword=56]="ForKeyword",l[l.FromKeyword=57]="FromKeyword",l[l.FunctionKeyword=58]="FunctionKeyword",l[l.GlobalKeyword=59]="GlobalKeyword",l[l.Identifier=60]="Identifier",l[l.IfKeyword=61]="IfKeyword",l[l.ImportKeyword=62]="ImportKeyword",l[l.Index=63]="Index",l[l.IndexedKeyword=64]="IndexedKeyword",l[l.Inheritance=65]="Inheritance",l[l.Initialization=66]="Initialization",l[l.InterfaceKeyword=67]="InterfaceKeyword",l[l.IsKeyword=68]="IsKeyword",l[l.Items=69]="Items",l[l.Iterator=70]="Iterator",l[l.KeyType=71]="KeyType",l[l.Label=72]="Label",l[l.LeaveKeyword=73]="LeaveKeyword",l[l.LetKeyword=74]="LetKeyword",l[l.LibraryKeyword=75]="LibraryKeyword",l[l.Literal=76]="Literal",l[l.MappingKeyword=77]="MappingKeyword",l[l.Member=78]="Member",l[l.Members=79]="Members",l[l.Minus=80]="Minus",l[l.MinusGreaterThan=81]="MinusGreaterThan",l[l.ModifierKeyword=82]="ModifierKeyword",l[l.Name=83]="Name",l[l.NewKeyword=84]="NewKeyword",l[l.OpenBrace=85]="OpenBrace",l[l.OpenBracket=86]="OpenBracket",l[l.OpenParen=87]="OpenParen",l[l.Operator=88]="Operator",l[l.Options=89]="Options",l[l.Overridden=90]="Overridden",l[l.OverrideKeyword=91]="OverrideKeyword",l[l.Parameters=92]="Parameters",l[l.Path=93]="Path",l[l.Paths=94]="Paths",l[l.PayableKeyword=95]="PayableKeyword",l[l.Period=96]="Period",l[l.Pragma=97]="Pragma",l[l.PragmaKeyword=98]="PragmaKeyword",l[l.QuestionMark=99]="QuestionMark",l[l.ReceiveKeyword=100]="ReceiveKeyword",l[l.ReturnKeyword=101]="ReturnKeyword",l[l.Returns=102]="Returns",l[l.ReturnsKeyword=103]="ReturnsKeyword",l[l.RevertKeyword=104]="RevertKeyword",l[l.Semicolon=105]="Semicolon",l[l.Sets=106]="Sets",l[l.SolidityKeyword=107]="SolidityKeyword",l[l.Start=108]="Start",l[l.Statements=109]="Statements",l[l.StorageLocation=110]="StorageLocation",l[l.StructKeyword=111]="StructKeyword",l[l.SwitchKeyword=112]="SwitchKeyword",l[l.Symbols=113]="Symbols",l[l.Target=114]="Target",l[l.ThrowKeyword=115]="ThrowKeyword",l[l.TrueExpression=116]="TrueExpression",l[l.TryKeyword=117]="TryKeyword",l[l.TypeKeyword=118]="TypeKeyword",l[l.TypeName=119]="TypeName",l[l.Types=120]="Types",l[l.UncheckedKeyword=121]="UncheckedKeyword",l[l.Unit=122]="Unit",l[l.UsingKeyword=123]="UsingKeyword",l[l.Value=124]="Value",l[l.ValueType=125]="ValueType",l[l.VarKeyword=126]="VarKeyword",l[l.Variable=127]="Variable",l[l.VariableType=128]="VariableType",l[l.Variables=129]="Variables",l[l.Version=130]="Version",l[l.WhileKeyword=131]="WhileKeyword";var h={NonterminalNode:"NonterminalNode"};Object.defineProperty(ve.prototype,"nodeVariant",{get:function(){return h.NonterminalNode}}),ve.prototype.asNonterminalNode=function(){return this},ve.prototype.isNonterminalNode=function(){return!0},ve.prototype.asTerminalNode=function(){},ve.prototype.isTerminalNode=function(){return!1},h.TerminalNode="TerminalNode",Object.defineProperty(be.prototype,"nodeVariant",{get:function(){return h.TerminalNode}}),be.prototype.asTerminalNode=function(){return this},be.prototype.isTerminalNode=function(){return!0},be.prototype.asNonterminalNode=function(){},be.prototype.isNonterminalNode=function(){return!1};class Se{constructor(){throw new Error('"Selectors" resource does not define a constructor')}}Se.sequence=function(t){var e=t[Y];if(!e||0==(qt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=qt[1+(e<<1)]&~D;const s=z["nomic-foundation:slang/ast#[static]selectors.sequence"](r);let i;if(T(it).getUint8(s+0,!0)){var n=T(it).getInt32(s+4,!0),a=T(it).getInt32(s+8,!0);i={tag:"err",val:V.decode(new Uint8Array(it.buffer,n,a))}}else{var o=T(it).getInt32(s+8,!0),c=T(it).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+12*t;let r;if(T(it).getUint8(e+0,!0)){let t;switch(T(it).getUint8(e+4,!0)){case 0:var h=T(it).getInt32(e+8,!0),u=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),Yt.register(u,h,u),Object.defineProperty(u,M,{writable:!0,value:function(){Yt.unregister(u),P(qt,h),u[M]=S,u[Y]=null,G[16](qt[1+(h<<1)]&~D)}}),t=u;break;case 1:var d=T(it).getInt32(e+8,!0),p=new.target===be?this:Object.create(be.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),Ut.register(p,d,p),Object.defineProperty(p,M,{writable:!0,value:function(){Ut.unregister(p),P(Mt,d),p[M]=S,p[Y]=null,G[17](Mt[1+(d<<1)]&~D)}}),t=p}r=t}else r=void 0;l.push(r)}i={tag:"ok",val:l}}if(kt(s),"err"===i.tag)throw i.val;return i.val},Se.choice=function(t){var e=t[Y];if(!e||0==(qt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=qt[1+(e<<1)]&~D;const s=z["nomic-foundation:slang/ast#[static]selectors.choice"](r);let i;if(T(it).getUint8(s+0,!0)){var n=T(it).getInt32(s+4,!0),a=T(it).getInt32(s+8,!0);i={tag:"err",val:V.decode(new Uint8Array(it.buffer,n,a))}}else{let t;switch(T(it).getUint8(s+4,!0)){case 0:var o=T(it).getInt32(s+8,!0),c=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),Yt.register(c,o,c),Object.defineProperty(c,M,{writable:!0,value:function(){Yt.unregister(c),P(qt,o),c[M]=S,c[Y]=null,G[16](qt[1+(o<<1)]&~D)}}),t=c;break;case 1:var l=T(it).getInt32(s+8,!0),h=new.target===be?this:Object.create(be.prototype);Object.defineProperty(h,Y,{writable:!0,value:l}),Ut.register(h,l,h),Object.defineProperty(h,M,{writable:!0,value:function(){Ut.unregister(h),P(Mt,l),h[M]=S,h[Y]=null,G[17](Mt[1+(l<<1)]&~D)}}),t=h}i={tag:"ok",val:t}}if(Tt(s),"err"===i.tag)throw i.val;return i.val},Se.repeated=function(t){var e=t[Y];if(!e||0==(qt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=qt[1+(e<<1)]&~D;const s=z["nomic-foundation:slang/ast#[static]selectors.repeated"](r);let i;if(T(it).getUint8(s+0,!0)){var n=T(it).getInt32(s+4,!0),a=T(it).getInt32(s+8,!0);i={tag:"err",val:V.decode(new Uint8Array(it.buffer,n,a))}}else{var o=T(it).getInt32(s+8,!0),c=T(it).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+8*t;let r;switch(T(it).getUint8(e+0,!0)){case 0:var h=T(it).getInt32(e+4,!0),u=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),Yt.register(u,h,u),Object.defineProperty(u,M,{writable:!0,value:function(){Yt.unregister(u),P(qt,h),u[M]=S,u[Y]=null,G[16](qt[1+(h<<1)]&~D)}}),r=u;break;case 1:var d=T(it).getInt32(e+4,!0),p=new.target===be?this:Object.create(be.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),Ut.register(p,d,p),Object.defineProperty(p,M,{writable:!0,value:function(){Ut.unregister(p),P(Mt,d),p[M]=S,p[Y]=null,G[17](Mt[1+(d<<1)]&~D)}}),r=p}l.push(r)}i={tag:"ok",val:l}}if(Rt(s),"err"===i.tag)throw i.val;return i.val},Se.separated=function(t){var e=t[Y];if(!e||0==(qt[1+(e<<1)]&D))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=qt[1+(e<<1)]&~D;const s=z["nomic-foundation:slang/ast#[static]selectors.separated"](r);let i;if(T(it).getUint8(s+0,!0)){var n=T(it).getInt32(s+4,!0),a=T(it).getInt32(s+8,!0);i={tag:"err",val:V.decode(new Uint8Array(it.buffer,n,a))}}else{var o=T(it).getInt32(s+8,!0),c=T(it).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+8*t;var h=T(it).getInt32(e+4,!0),u=T(it).getInt32(e+0,!0),d=[];for(let t=0;t<h;t++){const e=u+8*t;let r;switch(T(it).getUint8(e+0,!0)){case 0:var p=T(it).getInt32(e+4,!0),m=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(m,Y,{writable:!0,value:p}),Yt.register(m,p,m),Object.defineProperty(m,M,{writable:!0,value:function(){Yt.unregister(m),P(qt,p),m[M]=S,m[Y]=null,G[16](qt[1+(p<<1)]&~D)}}),r=m;break;case 1:var y=T(it).getInt32(e+4,!0),f=new.target===be?this:Object.create(be.prototype);Object.defineProperty(f,Y,{writable:!0,value:y}),Ut.register(f,y,f),Object.defineProperty(f,M,{writable:!0,value:function(){Ut.unregister(f),P(Mt,y),f[M]=S,f[Y]=null,G[17](Mt[1+(y<<1)]&~D)}}),r=f}d.push(r)}l.push(d)}i={tag:"ok",val:l}}if(At(s),"err"===i.tag)throw i.val;return i.val};class ke{constructor(){throw new Error('"Parser" resource does not define a constructor')}}ke.rootKind=function(){const t=z["nomic-foundation:slang/parser#[static]parser.root-kind"]();return o[t]},ke.supportedVersions=function(){const t=z["nomic-foundation:slang/parser#[static]parser.supported-versions"]();var e=T(it).getInt32(t+4,!0),r=T(it).getInt32(t+0,!0),s=[];for(let t=0;t<e;t++){const e=r+8*t;var i=T(it).getInt32(e+0,!0),n=T(it).getInt32(e+4,!0),a=V.decode(new Uint8Array(it.buffer,i,n));s.push(a)}return Ct(t),s},ke.create=function(t){var e=$(t,Et,it),r=j;const s=z["nomic-foundation:slang/parser#[static]parser.create"](e,r);let i;if(T(it).getUint8(s+0,!0)){var n=T(it).getInt32(s+4,!0),a=T(it).getInt32(s+8,!0);i={tag:"err",val:V.decode(new Uint8Array(it.buffer,n,a))}}else{var o=T(it).getInt32(s+4,!0),c=new.target===ke?this:Object.create(ke.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),ie.register(c,o,c),Object.defineProperty(c,M,{writable:!0,value:function(){ie.unregister(c),P(se,o),c[M]=S,c[Y]=null,G[22](se[1+(o<<1)]&~D)}}),i={tag:"ok",val:c}}if(Tt(s),"err"===i.tag)throw i.val;return i.val},Object.defineProperty(ke.prototype,"version",{get:function(){var t=this[Y];if(!t||0==(se[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "Parser" resource.');var e=se[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/parser#[method]parser.version"](e);var s=T(it).getInt32(r+0,!0),i=T(it).getInt32(r+4,!0),n=V.decode(new Uint8Array(it.buffer,s,i));return bt(r),n}}),ke.prototype.parse=function(t,e){var r=this[Y];if(!r||0==(se[1+(r<<1)]&D))throw new TypeError('Resource error: Not a valid "Parser" resource.');var s=se[1+(r<<1)]&~D,i=$(e,Et,it),n=j,a=z["nomic-foundation:slang/parser#[method]parser.parse"](s,o[t],i,n),c=new.target===Ae?this:Object.create(Ae.prototype);return Object.defineProperty(c,Y,{writable:!0,value:a}),ce.register(c,a,c),Object.defineProperty(c,M,{writable:!0,value:function(){ce.unregister(c),P(oe,a),c[M]=S,c[Y]=null,G[24](oe[1+(a<<1)]&~D)}}),c};class Re{constructor(){throw new Error('"ParseError" resource does not define a constructor')}}Object.defineProperty(Re.prototype,"textRange",{get:function(){var t=this[Y];if(!t||0==(ue[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "ParseError" resource.');var e=ue[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/parser#[method]parse-error.text-range"](e);return{start:{utf8:T(it).getInt32(r+0,!0)>>>0,utf16:T(it).getInt32(r+4,!0)>>>0,line:T(it).getInt32(r+8,!0)>>>0,column:T(it).getInt32(r+12,!0)>>>0},end:{utf8:T(it).getInt32(r+16,!0)>>>0,utf16:T(it).getInt32(r+20,!0)>>>0,line:T(it).getInt32(r+24,!0)>>>0,column:T(it).getInt32(r+28,!0)>>>0}}}}),Object.defineProperty(Re.prototype,"message",{get:function(){var t=this[Y];if(!t||0==(ue[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "ParseError" resource.');var e=ue[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/parser#[method]parse-error.message"](e);var s=T(it).getInt32(r+0,!0),i=T(it).getInt32(r+4,!0),n=V.decode(new Uint8Array(it.buffer,s,i));return bt(r),n}});class Ae{constructor(){throw new Error('"ParseOutput" resource does not define a constructor')}}Object.defineProperty(Ae.prototype,"tree",{get:function(){var t=this[Y];if(!t||0==(oe[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=oe[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/parser#[method]parse-output.tree"](e);let s;switch(T(it).getUint8(r+0,!0)){case 0:var i=T(it).getInt32(r+4,!0),n=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Yt.register(n,i,n),Object.defineProperty(n,M,{writable:!0,value:function(){Yt.unregister(n),P(qt,i),n[M]=S,n[Y]=null,G[16](qt[1+(i<<1)]&~D)}}),s=n;break;case 1:var a=T(it).getInt32(r+4,!0),o=new.target===be?this:Object.create(be.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Ut.register(o,a,o),Object.defineProperty(o,M,{writable:!0,value:function(){Ut.unregister(o),P(Mt,a),o[M]=S,o[Y]=null,G[17](Mt[1+(a<<1)]&~D)}}),s=o}return s}}),Object.defineProperty(Ae.prototype,"errors",{get:function(){var t=this[Y];if(!t||0==(oe[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=oe[1+(t<<1)]&~D;const r=z["nomic-foundation:slang/parser#[method]parse-output.errors"](e);var s=T(it).getInt32(r+4,!0),i=T(it).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=T(it).getInt32(e+0,!0),o=new.target===Re?this:Object.create(Re.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),de.register(o,a,o),Object.defineProperty(o,M,{writable:!0,value:function(){de.unregister(o),P(ue,a),o[M]=S,o[Y]=null,G[23](ue[1+(a<<1)]&~D)}}),n.push(o)}return _t(r),n}}),Ae.prototype.isValid=function(){var t=this[Y];if(!t||0==(oe[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=oe[1+(t<<1)]&~D;return!!z["nomic-foundation:slang/parser#[method]parse-output.is-valid"](e)},Ae.prototype.createTreeCursor=function(){var t=this[Y];if(!t||0==(oe[1+(t<<1)]&D))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=oe[1+(t<<1)]&~D,r=z["nomic-foundation:slang/parser#[method]parse-output.create-tree-cursor"](e),s=new.target===_e?this:Object.create(_e.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Ht.register(s,r,s),Object.defineProperty(s,M,{writable:!0,value:function(){Ht.unregister(s),P(Vt,r),s[M]=S,s[Y]=null,G[18](Vt[1+(r<<1)]&~D)}}),s};const Ce=(async()=>{const t=A(new URL(r(7870),r.b)),e=A(new URL(r(1112),r.b)),s=A(new URL(r(9719),r.b)),i=A(new URL(r(450),r.b));({exports:G}=await N(await s)),({exports:z}=await N(await t,{"[export]nomic-foundation:slang/cst":{"[resource-drop]cursor":Gt,"[resource-drop]nonterminal-node":$t,"[resource-drop]query":re,"[resource-drop]query-match-iterator":Jt,"[resource-drop]terminal-node":Qt,"[resource-new]cursor":jt,"[resource-new]nonterminal-node":Ft,"[resource-new]query":ee,"[resource-new]query-match-iterator":Xt,"[resource-new]terminal-node":Bt},"[export]nomic-foundation:slang/parser":{"[resource-drop]parse-error":me,"[resource-drop]parse-output":he,"[resource-drop]parser":ae,"[resource-new]parse-error":pe,"[resource-new]parse-output":le,"[resource-new]parser":ne},wasi_snapshot_preview1:{environ_get:G[12],environ_sizes_get:G[13],fd_write:G[11],proc_exit:G[14]}})),({exports:st}=await N(await e,{__main_module__:{cabi_realloc:z.cabi_realloc},env:{memory:z.memory},"wasi:cli/environment@0.2.0":{"get-environment":G[10]},"wasi:cli/exit@0.2.0":{exit:tt},"wasi:cli/stderr@0.2.0":{"get-stderr":Z},"wasi:cli/stdin@0.2.0":{"get-stdin":ot},"wasi:cli/stdout@0.2.0":{"get-stdout":ct},"wasi:filesystem/preopens@0.2.0":{"get-directories":G[0]},"wasi:filesystem/types@0.2.0":{"[method]descriptor.append-via-stream":G[2],"[method]descriptor.get-type":G[3],"[method]descriptor.stat":G[4],"[method]descriptor.write-via-stream":G[1],"[resource-drop]descriptor":we,"filesystem-error-code":G[5]},"wasi:io/error@0.2.0":{"[resource-drop]error":ye},"wasi:io/streams@0.2.0":{"[method]output-stream.blocking-flush":G[9],"[method]output-stream.blocking-write-and-flush":G[8],"[method]output-stream.check-write":G[6],"[method]output-stream.write":G[7],"[resource-drop]input-stream":fe,"[resource-drop]output-stream":ge}})),it=z.memory,nt=st.cabi_import_realloc,({exports:xt}=await N(await i,{"":{$imports:G.$imports,0:dt,1:pt,10:Pt,11:st.fd_write,12:st.environ_get,13:st.environ_sizes_get,14:st.proc_exit,15:z["nomic-foundation:slang/cst#[dtor]terminal-kind-extensions"],16:z["nomic-foundation:slang/cst#[dtor]nonterminal-node"],17:z["nomic-foundation:slang/cst#[dtor]terminal-node"],18:z["nomic-foundation:slang/cst#[dtor]cursor"],19:z["nomic-foundation:slang/cst#[dtor]query"],2:mt,20:z["nomic-foundation:slang/cst#[dtor]query-match-iterator"],21:z["nomic-foundation:slang/ast#[dtor]selectors"],22:z["nomic-foundation:slang/parser#[dtor]parser"],23:z["nomic-foundation:slang/parser#[dtor]parse-error"],24:z["nomic-foundation:slang/parser#[dtor]parse-output"],3:yt,4:ft,5:Lt,6:It,7:Nt,8:Dt,9:Ot}})),vt=z["cabi_post_nomic-foundation:slang/cst#[method]nonterminal-node.children"],bt=z["cabi_post_nomic-foundation:slang/cst#[method]nonterminal-node.to-json"],_t=z["cabi_post_nomic-foundation:slang/cst#[method]cursor.ancestors"],Et=z.cabi_realloc,Tt=z["cabi_post_nomic-foundation:slang/ast#[static]selectors.choice"],St=z["cabi_post_nomic-foundation:slang/cst#[method]query-match-iterator.next"],kt=z["cabi_post_nomic-foundation:slang/ast#[static]selectors.sequence"],Rt=z["cabi_post_nomic-foundation:slang/ast#[static]selectors.repeated"],At=z["cabi_post_nomic-foundation:slang/ast#[static]selectors.separated"],Ct=z["cabi_post_nomic-foundation:slang/parser#[static]parser.supported-versions"]})();await Ce;const Ke={Selectors:Se},Le={Cursor:_e,EdgeLabel:{Item:"Item",Variant:"Variant",Separator:"Separator",Operand:"Operand",LeftOperand:"LeftOperand",RightOperand:"RightOperand",LeadingTrivia:"LeadingTrivia",TrailingTrivia:"TrailingTrivia",AbicoderKeyword:"AbicoderKeyword",AbstractKeyword:"AbstractKeyword",AddressKeyword:"AddressKeyword",Alias:"Alias",AnonymousKeyword:"AnonymousKeyword",Arguments:"Arguments",AsKeyword:"AsKeyword",AssemblyKeyword:"AssemblyKeyword",Assignment:"Assignment",Asterisk:"Asterisk",Attributes:"Attributes",Block:"Block",Body:"Body",BreakKeyword:"BreakKeyword",CaseKeyword:"CaseKeyword",Cases:"Cases",CatchClauses:"CatchClauses",CatchKeyword:"CatchKeyword",Clause:"Clause",CloseBrace:"CloseBrace",CloseBracket:"CloseBracket",CloseParen:"CloseParen",Colon:"Colon",Condition:"Condition",ConstantKeyword:"ConstantKeyword",ConstructorKeyword:"ConstructorKeyword",ContinueKeyword:"ContinueKeyword",ContractKeyword:"ContractKeyword",DefaultKeyword:"DefaultKeyword",DoKeyword:"DoKeyword",Elements:"Elements",ElseBranch:"ElseBranch",ElseKeyword:"ElseKeyword",EmitKeyword:"EmitKeyword",End:"End",EnumKeyword:"EnumKeyword",Equal:"Equal",EqualGreaterThan:"EqualGreaterThan",Error:"Error",ErrorKeyword:"ErrorKeyword",Event:"Event",EventKeyword:"EventKeyword",ExperimentalKeyword:"ExperimentalKeyword",Expression:"Expression",FallbackKeyword:"FallbackKeyword",FalseExpression:"FalseExpression",Feature:"Feature",Flags:"Flags",ForKeyword:"ForKeyword",FromKeyword:"FromKeyword",FunctionKeyword:"FunctionKeyword",GlobalKeyword:"GlobalKeyword",Identifier:"Identifier",IfKeyword:"IfKeyword",ImportKeyword:"ImportKeyword",Index:"Index",IndexedKeyword:"IndexedKeyword",Inheritance:"Inheritance",Initialization:"Initialization",InterfaceKeyword:"InterfaceKeyword",IsKeyword:"IsKeyword",Items:"Items",Iterator:"Iterator",KeyType:"KeyType",Label:"Label",LeaveKeyword:"LeaveKeyword",LetKeyword:"LetKeyword",LibraryKeyword:"LibraryKeyword",Literal:"Literal",MappingKeyword:"MappingKeyword",Member:"Member",Members:"Members",Minus:"Minus",MinusGreaterThan:"MinusGreaterThan",ModifierKeyword:"ModifierKeyword",Name:"Name",NewKeyword:"NewKeyword",OpenBrace:"OpenBrace",OpenBracket:"OpenBracket",OpenParen:"OpenParen",Operator:"Operator",Options:"Options",Overridden:"Overridden",OverrideKeyword:"OverrideKeyword",Parameters:"Parameters",Path:"Path",Paths:"Paths",PayableKeyword:"PayableKeyword",Period:"Period",Pragma:"Pragma",PragmaKeyword:"PragmaKeyword",QuestionMark:"QuestionMark",ReceiveKeyword:"ReceiveKeyword",ReturnKeyword:"ReturnKeyword",Returns:"Returns",ReturnsKeyword:"ReturnsKeyword",RevertKeyword:"RevertKeyword",Semicolon:"Semicolon",Sets:"Sets",SolidityKeyword:"SolidityKeyword",Start:"Start",Statements:"Statements",StorageLocation:"StorageLocation",StructKeyword:"StructKeyword",SwitchKeyword:"SwitchKeyword",Symbols:"Symbols",Target:"Target",ThrowKeyword:"ThrowKeyword",TrueExpression:"TrueExpression",TryKeyword:"TryKeyword",TypeKeyword:"TypeKeyword",TypeName:"TypeName",Types:"Types",UncheckedKeyword:"UncheckedKeyword",Unit:"Unit",UsingKeyword:"UsingKeyword",Value:"Value",ValueType:"ValueType",VarKeyword:"VarKeyword",Variable:"Variable",VariableType:"VariableType",Variables:"Variables",Version:"Version",WhileKeyword:"WhileKeyword"},NodeVariant:h,NonterminalKind:{AbicoderPragma:"AbicoderPragma",AdditiveExpression:"AdditiveExpression",AddressType:"AddressType",AndExpression:"AndExpression",ArgumentsDeclaration:"ArgumentsDeclaration",ArrayExpression:"ArrayExpression",ArrayTypeName:"ArrayTypeName",ArrayValues:"ArrayValues",AssemblyFlags:"AssemblyFlags",AssemblyFlagsDeclaration:"AssemblyFlagsDeclaration",AssemblyStatement:"AssemblyStatement",AssignmentExpression:"AssignmentExpression",BitwiseAndExpression:"BitwiseAndExpression",BitwiseOrExpression:"BitwiseOrExpression",BitwiseXorExpression:"BitwiseXorExpression",Block:"Block",BreakStatement:"BreakStatement",CallOptions:"CallOptions",CallOptionsExpression:"CallOptionsExpression",CatchClause:"CatchClause",CatchClauseError:"CatchClauseError",CatchClauses:"CatchClauses",ComparisonExpression:"ComparisonExpression",ConditionalExpression:"ConditionalExpression",ConstantDefinition:"ConstantDefinition",ConstructorAttribute:"ConstructorAttribute",ConstructorAttributes:"ConstructorAttributes",ConstructorDefinition:"ConstructorDefinition",ContinueStatement:"ContinueStatement",ContractDefinition:"ContractDefinition",ContractMember:"ContractMember",ContractMembers:"ContractMembers",DecimalNumberExpression:"DecimalNumberExpression",DoWhileStatement:"DoWhileStatement",ElementaryType:"ElementaryType",ElseBranch:"ElseBranch",EmitStatement:"EmitStatement",EnumDefinition:"EnumDefinition",EnumMembers:"EnumMembers",EqualityExpression:"EqualityExpression",ErrorDefinition:"ErrorDefinition",ErrorParameter:"ErrorParameter",ErrorParameters:"ErrorParameters",ErrorParametersDeclaration:"ErrorParametersDeclaration",EventDefinition:"EventDefinition",EventParameter:"EventParameter",EventParameters:"EventParameters",EventParametersDeclaration:"EventParametersDeclaration",ExperimentalFeature:"ExperimentalFeature",ExperimentalPragma:"ExperimentalPragma",ExponentiationExpression:"ExponentiationExpression",Expression:"Expression",ExpressionStatement:"ExpressionStatement",FallbackFunctionAttribute:"FallbackFunctionAttribute",FallbackFunctionAttributes:"FallbackFunctionAttributes",FallbackFunctionDefinition:"FallbackFunctionDefinition",ForStatement:"ForStatement",ForStatementCondition:"ForStatementCondition",ForStatementInitialization:"ForStatementInitialization",FunctionAttribute:"FunctionAttribute",FunctionAttributes:"FunctionAttributes",FunctionBody:"FunctionBody",FunctionCallExpression:"FunctionCallExpression",FunctionDefinition:"FunctionDefinition",FunctionName:"FunctionName",FunctionType:"FunctionType",FunctionTypeAttribute:"FunctionTypeAttribute",FunctionTypeAttributes:"FunctionTypeAttributes",HexNumberExpression:"HexNumberExpression",HexStringLiteral:"HexStringLiteral",HexStringLiterals:"HexStringLiterals",IdentifierPath:"IdentifierPath",IfStatement:"IfStatement",ImportAlias:"ImportAlias",ImportClause:"ImportClause",ImportDeconstruction:"ImportDeconstruction",ImportDeconstructionSymbol:"ImportDeconstructionSymbol",ImportDeconstructionSymbols:"ImportDeconstructionSymbols",ImportDirective:"ImportDirective",IndexAccessEnd:"IndexAccessEnd",IndexAccessExpression:"IndexAccessExpression",InheritanceSpecifier:"InheritanceSpecifier",InheritanceType:"InheritanceType",InheritanceTypes:"InheritanceTypes",InterfaceDefinition:"InterfaceDefinition",InterfaceMembers:"InterfaceMembers",LibraryDefinition:"LibraryDefinition",LibraryMembers:"LibraryMembers",MappingKey:"MappingKey",MappingKeyType:"MappingKeyType",MappingType:"MappingType",MappingValue:"MappingValue",MemberAccessExpression:"MemberAccessExpression",ModifierAttribute:"ModifierAttribute",ModifierAttributes:"ModifierAttributes",ModifierDefinition:"ModifierDefinition",ModifierInvocation:"ModifierInvocation",MultiplicativeExpression:"MultiplicativeExpression",NamedArgument:"NamedArgument",NamedArgumentGroup:"NamedArgumentGroup",NamedArguments:"NamedArguments",NamedArgumentsDeclaration:"NamedArgumentsDeclaration",NamedImport:"NamedImport",NewExpression:"NewExpression",NumberUnit:"NumberUnit",OrExpression:"OrExpression",OverridePaths:"OverridePaths",OverridePathsDeclaration:"OverridePathsDeclaration",OverrideSpecifier:"OverrideSpecifier",Parameter:"Parameter",Parameters:"Parameters",ParametersDeclaration:"ParametersDeclaration",PathImport:"PathImport",PositionalArguments:"PositionalArguments",PositionalArgumentsDeclaration:"PositionalArgumentsDeclaration",PostfixExpression:"PostfixExpression",Pragma:"Pragma",PragmaDirective:"PragmaDirective",PrefixExpression:"PrefixExpression",ReceiveFunctionAttribute:"ReceiveFunctionAttribute",ReceiveFunctionAttributes:"ReceiveFunctionAttributes",ReceiveFunctionDefinition:"ReceiveFunctionDefinition",ReturnStatement:"ReturnStatement",ReturnsDeclaration:"ReturnsDeclaration",RevertStatement:"RevertStatement",ShiftExpression:"ShiftExpression",SimpleVersionLiteral:"SimpleVersionLiteral",SourceUnit:"SourceUnit",SourceUnitMember:"SourceUnitMember",SourceUnitMembers:"SourceUnitMembers",StateVariableAttribute:"StateVariableAttribute",StateVariableAttributes:"StateVariableAttributes",StateVariableDefinition:"StateVariableDefinition",StateVariableDefinitionValue:"StateVariableDefinitionValue",Statement:"Statement",Statements:"Statements",StorageLocation:"StorageLocation",StringExpression:"StringExpression",StringLiteral:"StringLiteral",StringLiterals:"StringLiterals",StructDefinition:"StructDefinition",StructMember:"StructMember",StructMembers:"StructMembers",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TupleDeconstructionElement:"TupleDeconstructionElement",TupleDeconstructionElements:"TupleDeconstructionElements",TupleDeconstructionStatement:"TupleDeconstructionStatement",TupleExpression:"TupleExpression",TupleMember:"TupleMember",TupleValue:"TupleValue",TupleValues:"TupleValues",TypeExpression:"TypeExpression",TypeName:"TypeName",TypedTupleMember:"TypedTupleMember",UncheckedBlock:"UncheckedBlock",UnicodeStringLiteral:"UnicodeStringLiteral",UnicodeStringLiterals:"UnicodeStringLiterals",UnnamedFunctionAttribute:"UnnamedFunctionAttribute",UnnamedFunctionAttributes:"UnnamedFunctionAttributes",UnnamedFunctionDefinition:"UnnamedFunctionDefinition",UntypedTupleMember:"UntypedTupleMember",UserDefinedValueTypeDefinition:"UserDefinedValueTypeDefinition",UsingAlias:"UsingAlias",UsingClause:"UsingClause",UsingDeconstruction:"UsingDeconstruction",UsingDeconstructionSymbol:"UsingDeconstructionSymbol",UsingDeconstructionSymbols:"UsingDeconstructionSymbols",UsingDirective:"UsingDirective",UsingOperator:"UsingOperator",UsingTarget:"UsingTarget",VariableDeclarationStatement:"VariableDeclarationStatement",VariableDeclarationType:"VariableDeclarationType",VariableDeclarationValue:"VariableDeclarationValue",VersionExpression:"VersionExpression",VersionExpressionSet:"VersionExpressionSet",VersionExpressionSets:"VersionExpressionSets",VersionLiteral:"VersionLiteral",VersionOperator:"VersionOperator",VersionPragma:"VersionPragma",VersionRange:"VersionRange",VersionTerm:"VersionTerm",WhileStatement:"WhileStatement",YulArguments:"YulArguments",YulAssignmentOperator:"YulAssignmentOperator",YulBlock:"YulBlock",YulBreakStatement:"YulBreakStatement",YulBuiltInFunction:"YulBuiltInFunction",YulColonAndEqual:"YulColonAndEqual",YulContinueStatement:"YulContinueStatement",YulDefaultCase:"YulDefaultCase",YulEqualAndColon:"YulEqualAndColon",YulExpression:"YulExpression",YulForStatement:"YulForStatement",YulFunctionCallExpression:"YulFunctionCallExpression",YulFunctionDefinition:"YulFunctionDefinition",YulIfStatement:"YulIfStatement",YulLabel:"YulLabel",YulLeaveStatement:"YulLeaveStatement",YulLiteral:"YulLiteral",YulParameters:"YulParameters",YulParametersDeclaration:"YulParametersDeclaration",YulPath:"YulPath",YulPathComponent:"YulPathComponent",YulPaths:"YulPaths",YulReturnsDeclaration:"YulReturnsDeclaration",YulStackAssignmentOperator:"YulStackAssignmentOperator",YulStackAssignmentStatement:"YulStackAssignmentStatement",YulStatement:"YulStatement",YulStatements:"YulStatements",YulSwitchCase:"YulSwitchCase",YulSwitchCases:"YulSwitchCases",YulSwitchStatement:"YulSwitchStatement",YulValueCase:"YulValueCase",YulVariableAssignmentStatement:"YulVariableAssignmentStatement",YulVariableDeclarationStatement:"YulVariableDeclarationStatement",YulVariableDeclarationValue:"YulVariableDeclarationValue",YulVariableNames:"YulVariableNames"},NonterminalNode:ve,Query:Ee,QueryMatchIterator:Te,TerminalKind:{Unrecognized:"Unrecognized",Missing:"Missing",AbicoderKeyword:"AbicoderKeyword",AbstractKeyword:"AbstractKeyword",AddressKeyword:"AddressKeyword",AfterKeyword:"AfterKeyword",AliasKeyword:"AliasKeyword",Ampersand:"Ampersand",AmpersandAmpersand:"AmpersandAmpersand",AmpersandEqual:"AmpersandEqual",AnonymousKeyword:"AnonymousKeyword",ApplyKeyword:"ApplyKeyword",AsKeyword:"AsKeyword",AssemblyKeyword:"AssemblyKeyword",Asterisk:"Asterisk",AsteriskAsterisk:"AsteriskAsterisk",AsteriskEqual:"AsteriskEqual",AutoKeyword:"AutoKeyword",Bang:"Bang",BangEqual:"BangEqual",Bar:"Bar",BarBar:"BarBar",BarEqual:"BarEqual",BoolKeyword:"BoolKeyword",BreakKeyword:"BreakKeyword",ByteKeyword:"ByteKeyword",BytesKeyword:"BytesKeyword",CallDataKeyword:"CallDataKeyword",Caret:"Caret",CaretEqual:"CaretEqual",CaseKeyword:"CaseKeyword",CatchKeyword:"CatchKeyword",CloseBrace:"CloseBrace",CloseBracket:"CloseBracket",CloseParen:"CloseParen",Colon:"Colon",ColonEqual:"ColonEqual",Comma:"Comma",ConstantKeyword:"ConstantKeyword",ConstructorKeyword:"ConstructorKeyword",ContinueKeyword:"ContinueKeyword",ContractKeyword:"ContractKeyword",CopyOfKeyword:"CopyOfKeyword",DaysKeyword:"DaysKeyword",DecimalLiteral:"DecimalLiteral",DefaultKeyword:"DefaultKeyword",DefineKeyword:"DefineKeyword",DeleteKeyword:"DeleteKeyword",DoKeyword:"DoKeyword",DoubleQuotedHexStringLiteral:"DoubleQuotedHexStringLiteral",DoubleQuotedStringLiteral:"DoubleQuotedStringLiteral",DoubleQuotedUnicodeStringLiteral:"DoubleQuotedUnicodeStringLiteral",DoubleQuotedVersionLiteral:"DoubleQuotedVersionLiteral",ElseKeyword:"ElseKeyword",EmitKeyword:"EmitKeyword",EndOfLine:"EndOfLine",EnumKeyword:"EnumKeyword",Equal:"Equal",EqualColon:"EqualColon",EqualEqual:"EqualEqual",EqualGreaterThan:"EqualGreaterThan",ErrorKeyword:"ErrorKeyword",EtherKeyword:"EtherKeyword",EventKeyword:"EventKeyword",ExperimentalKeyword:"ExperimentalKeyword",ExternalKeyword:"ExternalKeyword",FallbackKeyword:"FallbackKeyword",FalseKeyword:"FalseKeyword",FinalKeyword:"FinalKeyword",FinneyKeyword:"FinneyKeyword",FixedKeyword:"FixedKeyword",ForKeyword:"ForKeyword",FromKeyword:"FromKeyword",FunctionKeyword:"FunctionKeyword",GlobalKeyword:"GlobalKeyword",GreaterThan:"GreaterThan",GreaterThanEqual:"GreaterThanEqual",GreaterThanGreaterThan:"GreaterThanGreaterThan",GreaterThanGreaterThanEqual:"GreaterThanGreaterThanEqual",GreaterThanGreaterThanGreaterThan:"GreaterThanGreaterThanGreaterThan",GreaterThanGreaterThanGreaterThanEqual:"GreaterThanGreaterThanGreaterThanEqual",GweiKeyword:"GweiKeyword",HexKeyword:"HexKeyword",HexLiteral:"HexLiteral",HoursKeyword:"HoursKeyword",Identifier:"Identifier",IfKeyword:"IfKeyword",ImmutableKeyword:"ImmutableKeyword",ImplementsKeyword:"ImplementsKeyword",ImportKeyword:"ImportKeyword",InKeyword:"InKeyword",IndexedKeyword:"IndexedKeyword",InlineKeyword:"InlineKeyword",IntKeyword:"IntKeyword",InterfaceKeyword:"InterfaceKeyword",InternalKeyword:"InternalKeyword",IsKeyword:"IsKeyword",LessThan:"LessThan",LessThanEqual:"LessThanEqual",LessThanLessThan:"LessThanLessThan",LessThanLessThanEqual:"LessThanLessThanEqual",LetKeyword:"LetKeyword",LibraryKeyword:"LibraryKeyword",MacroKeyword:"MacroKeyword",MappingKeyword:"MappingKeyword",MatchKeyword:"MatchKeyword",MemoryKeyword:"MemoryKeyword",Minus:"Minus",MinusEqual:"MinusEqual",MinusGreaterThan:"MinusGreaterThan",MinusMinus:"MinusMinus",MinutesKeyword:"MinutesKeyword",ModifierKeyword:"ModifierKeyword",MultiLineComment:"MultiLineComment",MultiLineNatSpecComment:"MultiLineNatSpecComment",MutableKeyword:"MutableKeyword",NewKeyword:"NewKeyword",NullKeyword:"NullKeyword",OfKeyword:"OfKeyword",OpenBrace:"OpenBrace",OpenBracket:"OpenBracket",OpenParen:"OpenParen",OverrideKeyword:"OverrideKeyword",PartialKeyword:"PartialKeyword",PayableKeyword:"PayableKeyword",Percent:"Percent",PercentEqual:"PercentEqual",Period:"Period",Plus:"Plus",PlusEqual:"PlusEqual",PlusPlus:"PlusPlus",PragmaKeyword:"PragmaKeyword",PrivateKeyword:"PrivateKeyword",PromiseKeyword:"PromiseKeyword",PublicKeyword:"PublicKeyword",PureKeyword:"PureKeyword",QuestionMark:"QuestionMark",ReceiveKeyword:"ReceiveKeyword",ReferenceKeyword:"ReferenceKeyword",RelocatableKeyword:"RelocatableKeyword",ReturnKeyword:"ReturnKeyword",ReturnsKeyword:"ReturnsKeyword",RevertKeyword:"RevertKeyword",SealedKeyword:"SealedKeyword",SecondsKeyword:"SecondsKeyword",Semicolon:"Semicolon",SingleLineComment:"SingleLineComment",SingleLineNatSpecComment:"SingleLineNatSpecComment",SingleQuotedHexStringLiteral:"SingleQuotedHexStringLiteral",SingleQuotedStringLiteral:"SingleQuotedStringLiteral",SingleQuotedUnicodeStringLiteral:"SingleQuotedUnicodeStringLiteral",SingleQuotedVersionLiteral:"SingleQuotedVersionLiteral",SizeOfKeyword:"SizeOfKeyword",Slash:"Slash",SlashEqual:"SlashEqual",SolidityKeyword:"SolidityKeyword",StaticKeyword:"StaticKeyword",StorageKeyword:"StorageKeyword",StringKeyword:"StringKeyword",StructKeyword:"StructKeyword",SupportsKeyword:"SupportsKeyword",SwitchKeyword:"SwitchKeyword",SzaboKeyword:"SzaboKeyword",ThrowKeyword:"ThrowKeyword",Tilde:"Tilde",TransientKeyword:"TransientKeyword",TrueKeyword:"TrueKeyword",TryKeyword:"TryKeyword",TypeDefKeyword:"TypeDefKeyword",TypeKeyword:"TypeKeyword",TypeOfKeyword:"TypeOfKeyword",UfixedKeyword:"UfixedKeyword",UintKeyword:"UintKeyword",UncheckedKeyword:"UncheckedKeyword",UsingKeyword:"UsingKeyword",VarKeyword:"VarKeyword",VersionSpecifier:"VersionSpecifier",ViewKeyword:"ViewKeyword",VirtualKeyword:"VirtualKeyword",WeeksKeyword:"WeeksKeyword",WeiKeyword:"WeiKeyword",WhileKeyword:"WhileKeyword",Whitespace:"Whitespace",YearsKeyword:"YearsKeyword",YulAbstractKeyword:"YulAbstractKeyword",YulAddKeyword:"YulAddKeyword",YulAddModKeyword:"YulAddModKeyword",YulAddressKeyword:"YulAddressKeyword",YulAfterKeyword:"YulAfterKeyword",YulAliasKeyword:"YulAliasKeyword",YulAndKeyword:"YulAndKeyword",YulAnonymousKeyword:"YulAnonymousKeyword",YulApplyKeyword:"YulApplyKeyword",YulAsKeyword:"YulAsKeyword",YulAssemblyKeyword:"YulAssemblyKeyword",YulAutoKeyword:"YulAutoKeyword",YulBalanceKeyword:"YulBalanceKeyword",YulBaseFeeKeyword:"YulBaseFeeKeyword",YulBlobBaseFeeKeyword:"YulBlobBaseFeeKeyword",YulBlobHashKeyword:"YulBlobHashKeyword",YulBlockHashKeyword:"YulBlockHashKeyword",YulBoolKeyword:"YulBoolKeyword",YulBreakKeyword:"YulBreakKeyword",YulByteKeyword:"YulByteKeyword",YulBytesKeyword:"YulBytesKeyword",YulCallCodeKeyword:"YulCallCodeKeyword",YulCallDataCopyKeyword:"YulCallDataCopyKeyword",YulCallDataKeyword:"YulCallDataKeyword",YulCallDataLoadKeyword:"YulCallDataLoadKeyword",YulCallDataSizeKeyword:"YulCallDataSizeKeyword",YulCallKeyword:"YulCallKeyword",YulCallValueKeyword:"YulCallValueKeyword",YulCallerKeyword:"YulCallerKeyword",YulCaseKeyword:"YulCaseKeyword",YulCatchKeyword:"YulCatchKeyword",YulChainIdKeyword:"YulChainIdKeyword",YulCoinBaseKeyword:"YulCoinBaseKeyword",YulConstantKeyword:"YulConstantKeyword",YulConstructorKeyword:"YulConstructorKeyword",YulContinueKeyword:"YulContinueKeyword",YulContractKeyword:"YulContractKeyword",YulCopyOfKeyword:"YulCopyOfKeyword",YulCreate2Keyword:"YulCreate2Keyword",YulCreateKeyword:"YulCreateKeyword",YulDaysKeyword:"YulDaysKeyword",YulDecimalLiteral:"YulDecimalLiteral",YulDefaultKeyword:"YulDefaultKeyword",YulDefineKeyword:"YulDefineKeyword",YulDelegateCallKeyword:"YulDelegateCallKeyword",YulDeleteKeyword:"YulDeleteKeyword",YulDifficultyKeyword:"YulDifficultyKeyword",YulDivKeyword:"YulDivKeyword",YulDoKeyword:"YulDoKeyword",YulElseKeyword:"YulElseKeyword",YulEmitKeyword:"YulEmitKeyword",YulEnumKeyword:"YulEnumKeyword",YulEqKeyword:"YulEqKeyword",YulEtherKeyword:"YulEtherKeyword",YulEventKeyword:"YulEventKeyword",YulExpKeyword:"YulExpKeyword",YulExtCodeCopyKeyword:"YulExtCodeCopyKeyword",YulExtCodeHashKeyword:"YulExtCodeHashKeyword",YulExtCodeSizeKeyword:"YulExtCodeSizeKeyword",YulExternalKeyword:"YulExternalKeyword",YulFallbackKeyword:"YulFallbackKeyword",YulFalseKeyword:"YulFalseKeyword",YulFinalKeyword:"YulFinalKeyword",YulFinneyKeyword:"YulFinneyKeyword",YulFixedKeyword:"YulFixedKeyword",YulForKeyword:"YulForKeyword",YulFunctionKeyword:"YulFunctionKeyword",YulGasKeyword:"YulGasKeyword",YulGasLimitKeyword:"YulGasLimitKeyword",YulGasPriceKeyword:"YulGasPriceKeyword",YulGtKeyword:"YulGtKeyword",YulGweiKeyword:"YulGweiKeyword",YulHexKeyword:"YulHexKeyword",YulHexLiteral:"YulHexLiteral",YulHoursKeyword:"YulHoursKeyword",YulIdentifier:"YulIdentifier",YulIfKeyword:"YulIfKeyword",YulImmutableKeyword:"YulImmutableKeyword",YulImplementsKeyword:"YulImplementsKeyword",YulImportKeyword:"YulImportKeyword",YulInKeyword:"YulInKeyword",YulIndexedKeyword:"YulIndexedKeyword",YulInlineKeyword:"YulInlineKeyword",YulIntKeyword:"YulIntKeyword",YulInterfaceKeyword:"YulInterfaceKeyword",YulInternalKeyword:"YulInternalKeyword",YulInvalidKeyword:"YulInvalidKeyword",YulIsKeyword:"YulIsKeyword",YulIsZeroKeyword:"YulIsZeroKeyword",YulKeccak256Keyword:"YulKeccak256Keyword",YulLeaveKeyword:"YulLeaveKeyword",YulLetKeyword:"YulLetKeyword",YulLibraryKeyword:"YulLibraryKeyword",YulLog0Keyword:"YulLog0Keyword",YulLog1Keyword:"YulLog1Keyword",YulLog2Keyword:"YulLog2Keyword",YulLog3Keyword:"YulLog3Keyword",YulLog4Keyword:"YulLog4Keyword",YulLtKeyword:"YulLtKeyword",YulMcopyKeyword:"YulMcopyKeyword",YulMloadKeyword:"YulMloadKeyword",YulMsizeKeyword:"YulMsizeKeyword",YulMstore8Keyword:"YulMstore8Keyword",YulMstoreKeyword:"YulMstoreKeyword",YulMacroKeyword:"YulMacroKeyword",YulMappingKeyword:"YulMappingKeyword",YulMatchKeyword:"YulMatchKeyword",YulMemoryKeyword:"YulMemoryKeyword",YulMinutesKeyword:"YulMinutesKeyword",YulModKeyword:"YulModKeyword",YulModifierKeyword:"YulModifierKeyword",YulMulKeyword:"YulMulKeyword",YulMulModKeyword:"YulMulModKeyword",YulMutableKeyword:"YulMutableKeyword",YulNewKeyword:"YulNewKeyword",YulNotKeyword:"YulNotKeyword",YulNullKeyword:"YulNullKeyword",YulNumberKeyword:"YulNumberKeyword",YulOfKeyword:"YulOfKeyword",YulOrKeyword:"YulOrKeyword",YulOriginKeyword:"YulOriginKeyword",YulOverrideKeyword:"YulOverrideKeyword",YulPartialKeyword:"YulPartialKeyword",YulPayableKeyword:"YulPayableKeyword",YulPopKeyword:"YulPopKeyword",YulPragmaKeyword:"YulPragmaKeyword",YulPrevRandaoKeyword:"YulPrevRandaoKeyword",YulPrivateKeyword:"YulPrivateKeyword",YulPromiseKeyword:"YulPromiseKeyword",YulPublicKeyword:"YulPublicKeyword",YulPureKeyword:"YulPureKeyword",YulReceiveKeyword:"YulReceiveKeyword",YulReferenceKeyword:"YulReferenceKeyword",YulRelocatableKeyword:"YulRelocatableKeyword",YulReturnDataCopyKeyword:"YulReturnDataCopyKeyword",YulReturnDataSizeKeyword:"YulReturnDataSizeKeyword",YulReturnKeyword:"YulReturnKeyword",YulReturnsKeyword:"YulReturnsKeyword",YulRevertKeyword:"YulRevertKeyword",YulSdivKeyword:"YulSdivKeyword",YulSloadKeyword:"YulSloadKeyword",YulSmodKeyword:"YulSmodKeyword",YulSstoreKeyword:"YulSstoreKeyword",YulSarKeyword:"YulSarKeyword",YulSealedKeyword:"YulSealedKeyword",YulSecondsKeyword:"YulSecondsKeyword",YulSelfBalanceKeyword:"YulSelfBalanceKeyword",YulSelfDestructKeyword:"YulSelfDestructKeyword",YulSgtKeyword:"YulSgtKeyword",YulSha3Keyword:"YulSha3Keyword",YulShlKeyword:"YulShlKeyword",YulShrKeyword:"YulShrKeyword",YulSignExtendKeyword:"YulSignExtendKeyword",YulSizeOfKeyword:"YulSizeOfKeyword",YulSltKeyword:"YulSltKeyword",YulStaticCallKeyword:"YulStaticCallKeyword",YulStaticKeyword:"YulStaticKeyword",YulStopKeyword:"YulStopKeyword",YulStorageKeyword:"YulStorageKeyword",YulStringKeyword:"YulStringKeyword",YulStructKeyword:"YulStructKeyword",YulSubKeyword:"YulSubKeyword",YulSuicideKeyword:"YulSuicideKeyword",YulSupportsKeyword:"YulSupportsKeyword",YulSwitchKeyword:"YulSwitchKeyword",YulSzaboKeyword:"YulSzaboKeyword",YulTloadKeyword:"YulTloadKeyword",YulTstoreKeyword:"YulTstoreKeyword",YulThrowKeyword:"YulThrowKeyword",YulTimestampKeyword:"YulTimestampKeyword",YulTrueKeyword:"YulTrueKeyword",YulTryKeyword:"YulTryKeyword",YulTypeDefKeyword:"YulTypeDefKeyword",YulTypeKeyword:"YulTypeKeyword",YulTypeOfKeyword:"YulTypeOfKeyword",YulUfixedKeyword:"YulUfixedKeyword",YulUintKeyword:"YulUintKeyword",YulUncheckedKeyword:"YulUncheckedKeyword",YulUsingKeyword:"YulUsingKeyword",YulVarKeyword:"YulVarKeyword",YulViewKeyword:"YulViewKeyword",YulVirtualKeyword:"YulVirtualKeyword",YulWeeksKeyword:"YulWeeksKeyword",YulWeiKeyword:"YulWeiKeyword",YulWhileKeyword:"YulWhileKeyword",YulXorKeyword:"YulXorKeyword",YulYearsKeyword:"YulYearsKeyword"},TerminalKindExtensions:xe,TerminalNode:be},Ie={ParseError:Re,ParseOutput:Ae,Parser:ke};s()}catch(Ne){s(Ne)}}),1)},1901:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K3:()=>i.K3,Rj:()=>i.Rj,tQ:()=>i.tQ});var i=r(1406),n=t([i]);i=(n.then?(await n)():n)[0],s()}catch(t){s(t)}}))},4687:(t,e,r)=>{r.d(e,{tN:()=>K,X5:()=>N,rN:()=>A,bd:()=>R,F7:()=>C});var s=r(838),i=r(1331);const{addLeadingComment:n,addTrailingComment:a,addDanglingComment:o,hasNewline:c,hasNewlineInRange:l}=s.util;function h(t,e){if(!t.body)return void o(t,e);const r=t.body.filter((t=>"EmptyStatement"!==t.type));0===r.length?o(t,e):n(r[0],e)}function u(t,e){"BlockStatement"===t.type?h(t,e):n(t,e)}function d(t,e,r,s,c,l){return!(!r||"IfStatement"!==r.type||!s)&&(")"===(0,i.u2)(t,c,l.locEnd)?(a(e,c),!0):e===r.trueBody&&s===r.falseBody?("ExpressionStatement"===e.type?a(e,c):o(r,c),!0):"ExpressionStatement"===s.type?(h(s,c),!0):"IfStatement"===s.type?(u(s.trueBody,c),!0):r.trueBody===s&&(n(s,c),!0))}function p(t,e,r,s,n,o){return!(!r||"WhileStatement"!==r.type||!s)&&(")"===(0,i.u2)(t,n,o.locEnd)?(a(e,n),!0):"BlockStatement"===s.type&&(h(s,n),!0))}function m(t,e,r,s){return!(!t||"TryStatement"!==t.type&&"CatchClause"!==t.type||!r||("CatchClause"===t.type&&e?(a(e,s),0):"BlockStatement"===r.type?(h(r,s),0):"TryStatement"===r.type?(u(r.finalizer,s),0):"CatchClause"!==r.type||(u(r.body,s),0)))}function y(t,e,r,s){return!(!(t&&("ClassDeclaration"===t.type||"ClassExpression"===t.type)&&t.decorators&&t.decorators.length>0)||r&&"Decorator"===r.type||(t.decorators&&0!==t.decorators.length?a(t.decorators[t.decorators.length-1],s):n(t,s),0))}function f(t,e,r,s,n){return(e&&r&&("Property"===e.type||"MethodDefinition"===e.type)&&"Identifier"===r.type&&e.key===r&&":"!==(0,i.u2)(t,r,n.locEnd)||!(!r||!e||"Decorator"!==r.type||"ClassMethod"!==e.type&&"ClassProperty"!==e.type&&"TSAbstractClassProperty"!==e.type&&"TSAbstractMethodDefinition"!==e.type&&"MethodDefinition"!==e.type))&&(a(r,s),!0)}function g(t,e,r,s,n,o){return(e&&"FunctionTypeParam"===e.type&&r&&"FunctionTypeAnnotation"===r.type&&s&&"FunctionTypeParam"!==s.type||!(!e||"Identifier"!==e.type&&"AssignmentPattern"!==e.type||!r||"ArrowFunctionExpression"!==r.type&&"FunctionExpression"!==r.type&&"FunctionDeclaration"!==r.type&&"ObjectMethod"!==r.type&&"ClassMethod"!==r.type||")"!==(0,i.u2)(t,n,o.locEnd)))&&(a(e,n),!0)}function w(t,e){return!(!t||"ImportSpecifier"!==t.type||(n(t,e),0))}function x(t,e,r,s){return e&&e.body&&0===e.body.length?(s?o(e,r):n(e,r),!0):!(!t||"Program"!==t.type||0!==t.body.length||!t.directives||0!==t.directives.length||(s?o(t,r):n(t,r),0))}const{addLeadingComment:v,addTrailingComment:b,addDanglingComment:_}=s.util,{addLeadingComment:E,addTrailingComment:T,addDanglingComment:S}=s.util,k=[function({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:n,options:a}){if(!r||"ContractDefinition"!==r.type)return!1;const o=(0,i.u2)(t,n,a.locEnd);return"InheritanceSpecifier"===s?.type||"{"===o?"InheritanceSpecifier"===e?.type?(b(e,n),!0):(v(r,n),!0):0===r.subNodes.length&&(_(r,n),!0)},function({text:t,precedingNode:e,enclosingNode:r,comment:s,options:n}){if(!r||"ModifierInvocation"!==r.type)return!1;const a=(0,i.u2)(t,s,n.locEnd);return"("===a?(E(r,s),!0):")"===a&&(e?(T(e,s),!0):"LineComment"===s.type?(E(r,s),!0):(S(r,s),!0))}];function R(t,e,r,s,i){const{precedingNode:o,enclosingNode:l,followingNode:h}=t,u={text:e,precedingNode:o,enclosingNode:l,followingNode:h,comment:t,options:r};return!(!k.some((t=>t(u)))&&!function(t,e,r,s,i){const{precedingNode:o,enclosingNode:l,followingNode:h}=t;return!!(g(e,o,l,h,t,r)||function(t,e,r){return!(!t||"MemberExpression"!==t.type||!e||"Identifier"!==e.type||(n(t,r),0))}(l,h,t)||d(e,o,l,h,t,r)||p(e,o,l,h,t,r)||m(l,o,h,t)||y(l,0,h,t)||w(l,t)||function(t,e,r){return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type||(n(t,r),0))}(l,0,t)||function(t,e,r,s){return!(!e||"UnionTypeAnnotation"!==e.type&&"TSUnionType"!==e.type||(a(t,s),0))}(o,l,0,t)||x(l,s,t,i)||function(t,e,r,s,i){return!!(r&&"ImportSpecifier"===r.type&&e&&"ImportDeclaration"===e.type&&c(t,i.locEnd(s)))&&(a(r,s),!0)}(e,l,o,t,r)||function(t,e){return!(!t||"AssignmentPattern"!==t.type||(n(t,e),0))}(l,t)||f(e,l,o,t,r))}(t,e,r,s,i))}function A(t,e,r,s,i){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,h={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,options:r};return!(!k.some((t=>t(h)))&&!function(t,e,r,s,i){const{precedingNode:a,enclosingNode:o,followingNode:c}=t;return!!(g(e,a,o,c,t,r)||function(t,e,r,s,i,a){const o=e&&!l(i,a.locEnd(e),a.locStart(s));return!(e&&o||!t||"ConditionalExpression"!==t.type||!r||(n(r,s),0))}(o,a,c,t,e,r)||w(o,t)||d(e,a,o,c,t,r)||p(e,a,o,c,t,r)||m(o,a,c,t)||y(o,0,c,t)||function(t,e){return!(!t||"LabeledStatement"!==t.type||(n(t,e),0))}(o,t)||function(t,e,r){return!!(e&&"CallExpression"===e.type&&t&&e.callee===t&&e.arguments.length>0)&&(n(e.arguments[0],r),!0)}(a,o,t)||function(t,e){return!(!t||"Property"!==t.type&&"ObjectProperty"!==t.type||(n(t,e),0))}(o,t)||x(o,s,t,i)||function(t,e,r){return!(!t||"TypeAlias"!==t.type||(n(t,r),0))}(o,0,t)||function(t,e,r){return!(!t||"VariableDeclarator"!==t.type&&"AssignmentExpression"!==t.type||!e||"ObjectExpression"!==e.type&&"ArrayExpression"!==e.type&&"TemplateLiteral"!==e.type&&"TaggedTemplateExpression"!==e.type||(n(e,r),0))}(o,c,t))}(t,e,r,s,i))}function C(t,e,r,s,c){const{precedingNode:l,enclosingNode:h,followingNode:u}=t,m={text:e,precedingNode:l,enclosingNode:h,followingNode:u,comment:t,options:r};return!(!k.some((t=>t(m)))&&!function(t,e,r,s,c){const{precedingNode:l,enclosingNode:h,followingNode:u}=t;return!!(d(e,l,h,u,t,r)||p(e,l,h,u,t,r)||function(t,e,r){return!(!t||"ObjectProperty"!==t.type&&"Property"!==t.type||!t.shorthand||t.key!==e||"AssignmentPattern"!==t.value.type||(a(t.value.left,r),0))}(h,l,t)||function(t,e,r,s){return!(")"!==(0,i.u2)(t,r,s.locEnd)||(!e||("FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&("ArrowFunctionExpression"!==e.type||"CallExpression"===e.body.type&&0!==e.body.arguments.length)&&"ClassMethod"!==e.type&&"ObjectMethod"!==e.type||0!==e.params.length)&&("CallExpression"!==e.type&&"NewExpression"!==e.type||0!==e.arguments.length)?!e||"MethodDefinition"!==e.type||0!==e.value.params.length||(o(e.value,r),0):(o(e,r),0)))}(e,h,t,r)||f(e,h,l,t,r)||x(h,s,t,c)||function(t,e,r,s){if(!e||"ArrowFunctionExpression"!==e.type)return!1;const i=getNextNonSpaceNonCommentCharacterIndex(t,r,s);return"=>"===t.substr(i,2)&&(o(e,r),!0)}(e,h,t,r)||function(t,e,r,s,n){return!("("!==(0,i.u2)(t,s,n.locEnd)||!r||!e||"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ClassMethod"!==e.type&&"MethodDefinition"!==e.type&&"ObjectMethod"!==e.type||(a(r,s),0))}(e,h,l,t,r)||function(t,e,r,s,i){return!(!e||"TSMappedType"!==e.type||(s&&"TSTypeParameter"===s.type&&s.name?(n(s.name,i),0):!r||"TSTypeParameter"!==r.type||!r.constraint||(a(r.constraint,i),0)))}(0,h,l,u,t)||function(t,e){return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label||(a(t,e),0))}(h,t))}(t,e,r,s,c))}function K(t){return"BlockComment"===t.type}const{hardline:L,join:I}=s.doc.builders;function N(t,e){const r=t.getValue();switch(r.type){case"BlockComment":if(function(t){const e=`*${t.value}*`.split("\n");return e.length>1&&e.every((t=>"*"===t.trim()[0]))}(r)){const t=function(t){const e=t.value.split("\n");return["/*",I(L,e.map(((t,r)=>0===r?t.trimEnd():` ${r<e.length-1?t.trim():t.trimStart()}`))),"*/"]}(r);return r.trailing&&!s.util.hasNewline(e.originalText,e.locStart(r),{backwards:!0})?[L,t]:t}return`/*${r.value}*/`;case"LineComment":return`//${r.value.trimEnd()}`;default:throw new Error(`Not a comment: ${JSON.stringify(r)}`)}}},1331:(t,e,r)=>{r.d(e,{NE:()=>o,OU:()=>i,d7:()=>n,u2:()=>a});var s=r(838);const i=(0,r(4523).vm)("^2.3.0");function n(t,e){return i?s.util.isNextLineEmptyAfterIndex(t,e):s.util.isNextLineEmpty(t,e)}function a(t,e,r){return i?t.charAt(s.util.getNextNonSpaceNonCommentCharacterIndex(t,e,r)):s.util.getNextNonSpaceNonCommentCharacter(t,r(e))}function o(t,e,r){return i?r===t.getParentNode()[e].length-1:t.isLast}},2101:(t,e,r)=>{function s(t){console.warn(`\r[prettier-solidity] ${t}`)}r.d(e,{o:()=>s})},4523:(t,e,r)=>{r.d(e,{Tz:()=>a,vm:()=>n,yX:()=>o});var s=r(838),i=r(7638);const n=t=>i(s.version,t);function a(t,e){const r={quote:'"',regex:/"/g},i={quote:"'",regex:/'/g},n=e.singleQuote?i:r,a=n===i?r:i;let o=!1;(t.includes(n.quote)||t.includes(a.quote))&&(o=(t.match(n.regex)||[]).length>(t.match(a.regex)||[]).length);const c=o?a.quote:n.quote;return s.util.makeString(t,c)}function o(t){return t?.comments?.length>0&&t.comments.some((t=>"prettier-ignore"===t.value.trim()))}},7671:(t,e,r)=>{function s(t,e){return e.range?e.range[t]:e.expression?.range?e.expression.range[t]:null}r.d(e,{A:()=>i});const i={locEnd:t=>s(1,t),locStart:t=>s(0,t)}},4242:(t,e,r)=>{r.d(e,{A:()=>c});var s=r(3121),i=r(6170),n=r(7638),a=r(2101);const o=(t,e)=>"BinaryOperation"===t.type&&e.includes(t.operator)?{type:"TupleExpression",components:[t],isArray:!1}:t,c=function(t,e,r=e){const c=i(r.compiler),l=s.parse(t,{loc:!0,range:!0,comments:!0});return s.visit(l,{PragmaDirective(t){"solidity"===t.name&&c&&(n(c,t.value)||(0,a.o)(`The compiler option is set to '${r.compiler}', which does not satisfy 'pragma solidity ${t.value}'.`))},ModifierDefinition(t){t.parameters||(t.parameters=[])},FunctionDefinition(t){t.isConstructor||t.modifiers.forEach((t=>{0===t.arguments?.length&&(t.arguments=null)}))},ForStatement(t){t.initExpression&&(t.initExpression.omitSemicolon=!0),t.loopExpression.omitSemicolon=!0},HexLiteral(t){const e=t.value.slice(4,-1);t.value=r.singleQuote?`hex'${e}'`:`hex"${e}"`},Conditional(t){if(r.experimentalTernaries)for(;"TupleExpression"===t.condition.type&&!t.condition.isArray&&1===t.condition.components.length&&"Conditional"!==t.condition.components[0].type;)[t.condition]=t.condition.components},BinaryOperation(t){switch(t.operator){case"+":case"-":t.left=o(t.left,["%"]),t.right=o(t.right,["%"]);break;case"*":t.left=o(t.left,["/","%"]);break;case"/":t.left=o(t.left,["*","%"]);break;case"%":t.left=o(t.left,["*","/","%"]);break;case"**":if(!c)break;if(n(c,">=0.8.0")){t.right=o(t.right,["**"]);break}if("BinaryOperation"===t.right.type&&"**"===t.right.operator){const e={type:"BinaryOperation",operator:"**",left:t.left,right:t.right.left};t.left={type:"TupleExpression",components:[e],isArray:!1},t.right=t.right.right}break;case"<<":case">>":t.left=o(t.left,["+","-","*","/","**","<<",">>"]),t.right=o(t.right,["+","-","*","/","**"]);break;case"&":t.left=o(t.left,["+","-","*","/","**","<<",">>"]),t.right=o(t.right,["+","-","*","/","**","<<",">>"]);break;case"|":t.left=o(t.left,["+","-","*","/","**","<<",">>","&","^"]),t.right=o(t.right,["+","-","*","/","**","<<",">>","&","^"]);break;case"^":t.left=o(t.left,["+","-","*","/","**","<<",">>","&"]),t.right=o(t.right,["+","-","*","/","**","<<",">>","&"]);break;case"||":t.left=o(t.left,["&&"]),t.right=o(t.right,["&&"])}}}),l}},1071:(t,e,r)=>{r.d(e,{A:()=>Os});var s={};r.r(s),r.d(s,{arithmetic:()=>H,assignment:()=>G,bit:()=>z,comparison:()=>M,exponentiation:()=>Z,logical:()=>st,shift:()=>it});var i={};r.r(i),r.d(i,{ArrayTypeName:()=>n,AssemblyAssignment:()=>c,AssemblyBlock:()=>b,AssemblyCall:()=>_,AssemblyCase:()=>E,AssemblyFor:()=>S,AssemblyFunctionDefinition:()=>R,AssemblyIf:()=>A,AssemblyLocalDefinition:()=>K,AssemblyMemberAccess:()=>L,AssemblyStackAssignment:()=>N,AssemblySwitch:()=>P,BinaryOperation:()=>nt,Block:()=>ct,BooleanLiteral:()=>lt,Break:()=>ht,BreakStatement:()=>ut,CatchClause:()=>pt,Conditional:()=>vt,Continue:()=>bt,ContinueStatement:()=>_t,ContractDefinition:()=>At,CustomErrorDefinition:()=>Kt,DecimalNumber:()=>Lt,DoWhileStatement:()=>Pt,ElementaryTypeName:()=>Yt,EmitStatement:()=>Ft,EnumDefinition:()=>Bt,EnumValue:()=>Vt,EventDefinition:()=>jt,ExpressionStatement:()=>Qt,FileLevelConstant:()=>Gt,ForStatement:()=>re,FunctionCall:()=>ce,FunctionDefinition:()=>Te,FunctionTypeName:()=>Le,HexLiteral:()=>Oe,HexNumber:()=>Pe,Identifier:()=>qe,IfStatement:()=>Ve,ImportDirective:()=>ze,IndexAccess:()=>er,IndexRangeAccess:()=>rr,InheritanceSpecifier:()=>ir,InlineAssemblyStatement:()=>nr,LabelDefinition:()=>cr,Mapping:()=>hr,MemberAccess:()=>yr,ModifierDefinition:()=>Tr,ModifierInvocation:()=>kr,NameValueExpression:()=>Rr,NameValueList:()=>Kr,NewExpression:()=>Lr,NumberLiteral:()=>Ir,PragmaDirective:()=>Nr,ReturnStatement:()=>Yr,RevertStatement:()=>Fr,SourceUnit:()=>Ur,StateVariableDeclaration:()=>$r,StringLiteral:()=>zr,StructDefinition:()=>Xr,ThrowStatement:()=>Jr,TryStatement:()=>es,TupleExpression:()=>is,TypeDefinition:()=>ns,UnaryOperation:()=>as,UncheckedStatement:()=>cs,UserDefinedTypeName:()=>ls,UsingForDeclaration:()=>ds,VariableDeclaration:()=>Es,VariableDeclarationStatement:()=>ks,WhileStatement:()=>Ls});const n={print:({node:t,path:e,print:r})=>[e.call(r,"baseTypeName"),"[",t.length?e.call(r,"length"):"","]"]};var a=r(838);const{join:o}=a.doc.builders,c={print:({path:t,print:e})=>[o(", ",t.map(e,"names"))," := ",t.call(e,"expression")]};var l=r(1331);const{group:h,indent:u,join:d,line:p,softline:m,hardline:y}=a.doc.builders,f=(t,e,r,s=(()=>!0))=>{if(!t.comments)return"";const i=d(p,e.map((t=>{const e=t.getValue();return e.trailing||e.leading||e.printed?null:s(e)?(e.printed=!0,r.printer.printComment(t,r)):null}),"comments").filter(Boolean));return l.OU?i.parts:i};function g(t,e,r,s){const i=[];return t.each(((t,n)=>{const a=t.getValue(),o=a.type;0!==i.length&&"LabelDefinition"!==o&&i.push(y),i.push(s(t)),!(0,l.NE)(t,e,n)&&(0,l.d7)(r.originalText,r.locEnd(a)+1)&&i.push(y)}),e),i}const w=(t,{firstSeparator:e=m,lastSeparator:r=e,grouped:s=!0}={})=>{const i=[u([e,t]),r];return s?h(i):i},x=(t,{firstSeparator:e,separator:r=[",",p],lastSeparator:s,grouped:i}={})=>w(d(r,t),{firstSeparator:e,lastSeparator:s,grouped:i}),{hardline:v}=a.doc.builders,b={print:({node:t,options:e,path:r,print:s})=>0!==t.operations.length||t.comments?["{",w([g(r,"operations",e,s),f(t,r,e)],{firstSeparator:v,grouped:!1}),"}"]:"{}"},_={print:({node:t,path:e,print:r,options:s})=>0===t.arguments.length&&")"!==s.originalText.charAt(s.locEnd(t))?t.functionName:[t.functionName,"(",x(e.map(r,"arguments")),")"]},E={print:({node:t,path:e,print:r})=>[t.default?"default":["case ",e.call(r,"value")]," ",e.call(r,"block")]},{join:T}=a.doc.builders,S={print:({path:t,print:e})=>T(" ",["for",t.call(e,"pre"),t.call(e,"condition"),t.call(e,"post"),t.call(e,"body")])},{line:k}=a.doc.builders,R={print:({node:t,path:e,print:r})=>["function ",t.name,"(",x(e.map(r,"arguments")),")",0===t.returnArguments.length?" ":w(["->",x(e.map(r,"returnArguments"),{firstSeparator:k,lastSeparator:""})],{firstSeparator:k}),e.call(r,"body")]},A={print:({path:t,print:e})=>["if ",t.call(e,"condition")," ",t.call(e,"body")]},{line:C}=a.doc.builders,K={print:({node:t,path:e,print:r})=>{const s=["let",x(e.map(r,"names"),{firstSeparator:C})];return null!==t.expression&&(s.push(":= "),s.push(e.call(r,"expression"))),s}},L={print:({path:t,print:e})=>[t.call(e,"expression"),".",t.call(e,"memberName")]},{hardline:I}=a.doc.builders,N={print:({node:t,path:e,print:r})=>[e.call(r,"expression"),I,"=: ",t.name]},{hardline:D,join:O}=a.doc.builders,P={print:({path:t,print:e})=>["switch ",t.call(e,"expression"),D,O(D,t.map(e,"cases"))]},{group:q,indent:Y,line:F}=a.doc.builders,M={match:t=>["<",">","<=",">=","==","!="].includes(t),print:(t,e,r)=>{const s=(t=>e=>{let r=t.getNode();for(let s=0;;s+=1){const i=t.getParentNode(s);if("ReturnStatement"===i.type)return e;if("IfStatement"===i.type)return e;if("ForStatement"===i.type)return e;if("WhileStatement"===i.type)return e;if("BinaryOperation"!==i.type)return Y(e);if(r===i.right)return e;r=i}})(e),i=[t.operator,F,e.call(r,"right")],n="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return q([e.call(r,"left")," ",s(n?q(i):i)])}},{group:U,line:B,indent:V}=a.doc.builders,H={match:t=>["+","-","*","/","%"].includes(t),print:(t,e,r)=>{const s=(t=>e=>{const r=t.getParentNode();return"BinaryOperation"!==r.type||M.match(r.operator)?U(e):e})(e),i=(t=>e=>{let r=t.getNode();for(let s=0;;s+=1){const i=t.getParentNode(s);if("ReturnStatement"===i.type)return e;if("BinaryOperation"!==i.type||M.match(i.operator))return V(e);if(r===i.right)return e;r=i}})(e),n=[t.operator,B,e.call(r,"right")],a="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return s([e.call(r,"left")," ",i(a?U(n):n)])}},{group:j,line:$,indent:Q}=a.doc.builders,G={match:t=>["=","|=","^=","&=","<<=",">>=","+=","-=","*=","/=","%="].includes(t),print:(t,e,r)=>[e.call(r,"left")," ",t.operator,"BinaryOperation"===t.right.type?j(Q([$,e.call(r,"right")])):[" ",e.call(r,"right")]]},z={match:t=>["&","|","^"].includes(t),print:H.print},{group:W,indent:X,line:J}=a.doc.builders,Z={match:t=>"**"===t,print:(t,e,r)=>{const s=[" ",t.operator,J,e.call(r,"right")],i="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return W([e.call(r,"left"),X(i?W(s):s)])}},{group:tt,line:et,indent:rt}=a.doc.builders,st={match:t=>["&&","||"].includes(t),print:(t,e,r,s)=>{const i=(t=>e=>"BinaryOperation"===t.getParentNode().type?e:tt(e))(e),n=((t,e)=>r=>{let s=t.getNode();for(let i=0;;i+=1){const n=t.getParentNode(i);if("ReturnStatement"===n.type)return r;if("IfStatement"===n.type)return r;if("WhileStatement"===n.type)return r;if(e.experimentalTernaries&&"Conditional"===n.type&&n.condition===s)return r;if("BinaryOperation"!==n.type)return rt(r);if(s===n.right)return r;s=n}})(e,s),a=[t.operator,et,e.call(r,"right")],o="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return i([e.call(r,"left")," ",n(o?tt(a):a)])}},it={match:t=>["<<",">>"].includes(t),print:H.print},nt={print:({node:t,path:e,print:r,options:i})=>{const n=Object.values(s).find((e=>e.match(t.operator)));if(void 0===n)throw new Error(`Assertion error: no printer found for operator ${JSON.stringify(t.operator)}`);return n.print(t,e,r,i)}},{hardline:at,indent:ot}=a.doc.builders,ct={print:({node:t,options:e,path:r,print:s})=>0!==t.statements.length||t.comments?["{",ot([at,g(r,"statements",e,s),f(t,r,e)]),at,"}"]:"{}"},lt={print:({node:t})=>t.value?"true":"false"},ht={print:()=>"break"},ut={print:()=>"break;"},dt=(t,e,r)=>t.parameters?[t.kind||"","(",x(e.map(r,"parameters")),") "]:"",pt={print:({node:t,path:e,print:r})=>["catch ",dt(t,e,r),e.call(r,"body")]},{group:mt,hardline:yt,ifBreak:ft,indent:gt,line:wt,softline:xt}=a.doc.builders,vt={print:({node:t,path:e,print:r,options:s})=>s.experimentalTernaries?((t,e,r,s)=>{const i=e.getParentNode(),n="Conditional"===i.type,a=n&&i.trueExpression===t,o="Conditional"===t.falseExpression.type,c=e.call(r,"condition"),l=mt(["TupleExpression"===t.condition.type?c:ft(["(",w(c),")"],c)," ?"]),h=gt([a?yt:wt,e.call(r,"trueExpression")]),u=mt([l,h],{id:Symbol("Conditional.trueExpression")});let d=" ";!o&&(s.tabWidth>2||s.useTabs)&&(d=s.useTabs?"\t":" ".repeat(s.tabWidth-1));const p=e.call(r,"falseExpression"),m=[n?yt:wt,":",o?[" ",p]:ft([d,gt(p)],[" ",p],{groupId:u.id})],y=mt([u,m]);return"VariableDeclarationStatement"===i.type?gt([xt,y]):y})(t,e,r,s):((t,e)=>mt([t.call(e,"condition"),gt(["Conditional"===t.getParentNode().type?yt:wt,"? ",t.call(e,"trueExpression"),wt,": ",t.call(e,"falseExpression")])]))(e,r)},bt={print:()=>"continue"},_t={print:()=>"continue;"},{group:Et,line:Tt,hardline:St}=a.doc.builders,kt=(t,e,r)=>t.baseContracts.length>0?[" is",x(e.map(r,"baseContracts"),{firstSeparator:Tt})]:Tt,Rt=(t,e,r,s)=>{const i=f(t,e,r);return t.subNodes.length>0||i?.length?w([g(e,"subNodes",r,s),i],{firstSeparator:St,grouped:!1}):""},At={print:({node:t,options:e,path:r,print:s})=>[Et(["abstract"===t.kind?"abstract contract":t.kind," ",t.name,kt(t,r,s),"{"]),Rt(t,r,e,s),"}"]},Ct=(t,e,r)=>t.parameters?.length>0?x(e.map(r,"parameters")):"",Kt={print:({node:t,path:e,print:r})=>["error ",t.name,"(",Ct(t,e,r),");"]},Lt={print:({node:t})=>t.value},{group:It,indent:Nt,line:Dt}=a.doc.builders,Ot=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")," "]:It([Nt([Dt,e.call(r,"body")]),Dt]),Pt={print:({node:t,path:e,print:r})=>["do",Ot(t,e,r),"while (",w(e.call(r,"condition")),");"]},qt=t=>t.stateMutability?.length>0?[" ",t.stateMutability]:"",Yt={print:({node:t})=>[t.name,qt(t)]},Ft={print:({path:t,print:e})=>["emit ",t.call(e,"eventCall"),";"]},{group:Mt,hardline:Ut}=a.doc.builders,Bt={print:({node:t,path:e,print:r})=>Mt(["enum ",t.name," {",x(e.map(r,"members"),{firstSeparator:Ut}),"}"])},Vt={print:({node:t})=>t.name},Ht=(t,e,r)=>t.parameters?.length>0?x(e.map(r,"parameters")):"",jt={print:({node:t,path:e,print:r})=>["event ",t.name,"(",Ht(t,e,r),")",t.isAnonymous?" anonymous":"",";"]},{hardline:$t}=a.doc.builders,Qt={print:({node:t,options:e,path:r,print:s})=>{const i=[];if("IfStatement"===r.getParentNode().type&&t.comments?.length){const s=f(t,r,e);s?.length&&(i.push(s),i.push($t))}return i.push(r.call(s,"expression")),i.push(t.omitSemicolon?"":";"),i}},Gt={print:({node:t,path:e,print:r})=>[e.call(r,"typeName")," constant ",t.name," = ",e.call(r,"initialValue"),";"]},{group:zt,indent:Wt,line:Xt}=a.doc.builders,Jt=(t,e,r)=>t.initExpression?e.call(r,"initExpression"):"",Zt=(t,e,r)=>t.conditionExpression?e.call(r,"conditionExpression"):"",te=(t,e,r)=>t.loopExpression.expression?e.call(r,"loopExpression"):"",ee=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:zt(Wt([Xt,e.call(r,"body")])),re={print:({node:t,path:e,print:r})=>["for (",x([Jt(t,e,r),Zt(t,e,r),te(t,e,r)],{separator:t.initExpression||t.conditionExpression||t.loopExpression.expression?[";",Xt]:";"}),")",ee(t,e,r)]},{group:se,indentIfBreak:ie,label:ne,line:ae,softline:oe}=a.doc.builders,ce={print:({node:t,path:e,print:r,options:s})=>{let i=e.call(r,"expression"),n=")";return t.arguments?.length>0&&(n=t.identifiers?.length>0?((t,e,r)=>{const s=t.map(e,"identifiers");return["{",x(t.map(e,"arguments").map(((t,e)=>[s[e],": ",t])),{firstSeparator:r.bracketSpacing?ae:oe,lastSeparator:[r.bracketSpacing?ae:oe,"})"]})]})(e,r,s):((t,e)=>x(t.map(e,"arguments"),{lastSeparator:[oe,")"]}))(e,r)),"MemberAccessChain"===i.label?(i=se(i.contents,{id:Symbol("FunctionCall.expression")}),n=ie(n,{groupId:i.id}),ne("MemberAccessChain",[i,"(",n])):[i,"(",n].flat()}},{dedent:le,group:he,indent:ue,join:de,line:pe}=a.doc.builders,me=(t,e)=>t.isConstructor&&!t.name?"constructor":t.name?`function ${t.name}`:t.isReceiveEther?"receive":{fallback:"fallback",function:"function"}[e.originalText.slice(e.locStart(t),e.locStart(t)+8)],ye=(t,e,r,s,i)=>{if(e[t]?.length>0)return x(r.map(s,t),{grouped:!1});if(e.comments?.length>0){const t=f(e,r,i,(t=>")"===(0,l.u2)(i.originalText,t,i.locEnd)));return t.length>0?w(t):""}return""},fe=t=>t.visibility&&"default"!==t.visibility?[pe,t.visibility]:"",ge=t=>t.isVirtual?[pe,"virtual"]:"",we=(t,e,r)=>t.override?0===t.override.length?[pe,"override"]:[pe,"override(",x(e.map(r,"override")),")"]:"",xe=t=>t.stateMutability?[pe,t.stateMutability]:"",ve=(t,e,r)=>t.modifiers.length>0?[pe,de(pe,e.map(r,"modifiers"))]:"",be=(t,e,r,s)=>t.returnParameters?[pe,"returns (",he(ye("returnParameters",t,e,r,s)),")"]:"",_e=t=>t.body?le(pe):";",Ee=(t,e,r)=>t.body?e.call(r,"body"):"",Te={print:({node:t,path:e,print:r,options:s})=>[he([me(t,s),"(",ye("parameters",t,e,r,s),")",ue(he([f(t,e,s),fe(t),xe(t),ge(t),we(t,e,r),ve(t,e,r),be(t,e,r,s),_e(t)]))]),Ee(t,e,r)]},{group:Se,indent:ke,line:Re}=a.doc.builders,Ae=(t,e,r)=>t.returnTypes.length>0?[Re,"returns (",x(e.map(r,"returnTypes")),")"]:"",Ce=t=>t.visibility&&"default"!==t.visibility?[Re,t.visibility]:"",Ke=t=>t.stateMutability&&"default"!==t.stateMutability?[Re,t.stateMutability]:"",Le={print:({node:t,path:e,print:r})=>Se(["function(",x(e.map(r,"parameterTypes"),{grouped:!1}),")",ke(Se([Ce(t),Ke(t),Ae(t,e,r)]))])};var Ie=r(4523);const{join:Ne,hardline:De}=a.doc.builders,Oe={print:({node:t,options:e})=>{const r=t.parts.map((t=>`hex${(0,Ie.Tz)(t,e)}`));return Ne(De,r)}},Pe={print:({node:t})=>t.value},qe={print:({node:t})=>t.name},{group:Ye,hardline:Fe,indent:Me,line:Ue}=a.doc.builders,Be=(t,e,r)=>"Block"===t.falseBody.type||"IfStatement"===t.falseBody.type?[" ",e.call(r,"falseBody")]:Ye(Me([Ue,e.call(r,"falseBody")])),Ve={print:({node:t,options:e,path:r,print:s})=>{const i=(t.comments||[]).filter((t=>!t.leading&&!t.trailing)),n=[];return n.push("if (",w(r.call(s,"condition")),")"),n.push(((t,e,r)=>{if("Block"===t.trueBody.type)return[" ",e.call(r,"trueBody")];const s="IfStatement"===t.trueBody.type;return Ye(Me([s?Fe:Ue,e.call(r,"trueBody")]))})(t,r,s)),i.length&&t.falseBody&&(n.push(Fe),n.push(f(t,r,e))),n.push(((t,e,r,s)=>t.falseBody?["Block"===t.trueBody.type&&0===s.length?" ":Fe,"else",Be(t,e,r)]:"")(t,r,s,i)),n}};var He=r(6170),je=r(7638);const{group:$e,line:Qe,softline:Ge}=a.doc.builders,ze={print:({node:t,options:e})=>{const r=(0,Ie.Tz)(t.path,e);let s;if(t.unitAlias)s=[r," as ",t.unitAlias];else if(t.symbolAliases){const i=He(e.compiler),n=t.symbolAliases.map((([t,e])=>e?`${t} as ${e}`:t));let a,o;i&&je(i,">=0.7.4")?(a=e.bracketSpacing?Qe:Ge,o=[",",Qe]):(a=e.bracketSpacing?" ":"",o=", "),s=["{",x(n,{firstSeparator:a,separator:o}),"} from ",r]}else s=r;return $e(["import ",s,";"])}},{group:We,indent:Xe,indentIfBreak:Je,label:Ze,softline:tr}=a.doc.builders,er={print:({path:t,print:e})=>{let r=t.call(e,"base"),s=We([Xe([tr,t.call(e,"index")]),tr,"]"]);return"MemberAccessChain"===r.label?(r=We(r.contents,{id:Symbol("IndexAccess.base")}),s=Je(s,{groupId:r.id}),Ze("MemberAccessChain",[r,"[",s])):[r,"[",s].flat()}},rr={print:({node:t,path:e,print:r})=>[e.call(r,"base"),"[",t.indexStart?e.call(r,"indexStart"):"",":",t.indexEnd?e.call(r,"indexEnd"):"","]"]},sr=(t,e,r)=>t.arguments?.length?["(",x(e.map(r,"arguments")),")"]:"",ir={print:({node:t,path:e,print:r})=>[e.call(r,"baseName"),sr(t,e,r)]},nr={print:({node:t,path:e,print:r,options:s})=>["assembly ",t.language?`${(0,Ie.Tz)(t.language,s)} `:"",t.flags?.length>0?["(",x(t.flags.map((t=>(0,Ie.Tz)(t,s)))),") "]:"",e.call(r,"body")]},{dedent:ar,line:or}=a.doc.builders,cr={print:({node:t})=>[ar(or),t.name,":"]},lr=(t,e,r,s)=>e[`${t}Name`]?[r.call(s,`${t}Type`)," ",r.call(s,`${t}Name`)]:r.call(s,`${t}Type`),hr={print:({node:t,path:e,print:r})=>["mapping(",lr("key",t,e,r)," => ",lr("value",t,e,r),")"]},{group:ur,indent:dr,label:pr,softline:mr}=a.doc.builders,yr={print:({node:t,path:e,print:r})=>{let s=e.call(r,"expression");Array.isArray(s)&&(s=s.flat());const i=[s,pr("separator",[mr,"."]),t.memberName].flat();return((t,e)=>{let r=0,s=t,i=e.getParentNode(r);for(;i&&["FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(i.type);){switch(i.type){case"MemberAccess":return!1;case"IndexAccess":if(s!==i.base)return!0;break;case"FunctionCall":if(s!==i.expression)return!0}r+=1,s=i,i=e.getParentNode(r)}return!0})(t,e)?(t=>{const e=t.findIndex((t=>"separator"===t.label)),r=t.slice(0,e),s=ur(dr(t.slice(e)));return pr("MemberAccessChain",ur([r,s]))})(i):i}},{dedent:fr,group:gr,indent:wr,line:xr}=a.doc.builders,vr=(t,e,r)=>t.parameters?.length>0?["(",x(e.map(r,"parameters"),{separator:[",",xr]}),")"]:"()",br=t=>t.isVirtual?[xr,"virtual"]:"",_r=(t,e,r)=>t.override?0===t.override.length?[xr,"override"]:[xr,"override(",x(e.map(r,"override")),")"]:"",Er=(t,e,r)=>t.body?t.isVirtual?gr(e.call(r,"body")):[e.call(r,"body")]:";",Tr={print:({node:t,path:e,print:r})=>["modifier ",t.name,vr(t,e,r),gr(wr([br(t),_r(t,e,r),t.body?fr(xr):""])),Er(t,e,r)]},Sr=(t,e,r,s)=>t.arguments?t.arguments.length>0?["(",x(e.map(r,"arguments")),")"]:"()":t.comments?.some((t=>!t.leading&&!t.trailing&&!t.printed))?["(",f(t,e,s),")"]:"",kr={print:({node:t,path:e,print:r,options:s})=>[t.name,Sr(t,e,r,s)]},Rr={print:({path:t,print:e})=>[t.call(e,"expression"),"{",t.call(e,"arguments"),"}"]},{line:Ar,softline:Cr}=a.doc.builders,Kr={print:({node:t,path:e,print:r,options:s})=>x(e.map(r,"arguments").map(((e,r)=>[t.names[r],": ",e])),{firstSeparator:s.bracketSpacing?Ar:Cr})},Lr={print:({path:t,print:e})=>["new ",t.call(e,"typeName")]},Ir={print:({node:t})=>t.subdenomination?[t.number," ",t.subdenomination]:t.number},Nr={print:({node:t})=>["pragma ",t.name," ",t.value,";"]},{group:Dr,indent:Or,line:Pr}=a.doc.builders,qr=(t,e,r,s)=>t.expression?"TupleExpression"===t.expression.type||s.experimentalTernaries&&"Conditional"===t.expression.type?[" ",e.call(r,"expression")]:Dr(Or([Pr,e.call(r,"expression")])):"",Yr={print:({node:t,path:e,print:r,options:s})=>["return",qr(t,e,r,s),";"]},Fr={print:({path:t,print:e})=>["revert ",t.call(e,"revertCall"),";"]},{line:Mr}=a.doc.builders,Ur={print:({options:t,path:e,print:r})=>[g(e,"children",t,r),t.parentParser?"":Mr]},{group:Br,indent:Vr,line:Hr}=a.doc.builders,jr=(t,e,r)=>t.initialValue?"TupleExpression"===t.initialValue.type?[" = ",e.call(r,"initialValue")]:Br([" =",Vr([Hr,e.call(r,"initialValue")])]):"",$r={print:({node:t,path:e,print:r})=>[...e.map(r,"variables"),jr(t,e,r),";"]},{join:Qr,hardline:Gr}=a.doc.builders,zr={print:({node:t,options:e})=>{const r=t.parts.map(((r,s)=>(t.isUnicode[s]?"unicode":"")+(0,Ie.Tz)(r,e)));return Qr(Gr,r)}},{hardline:Wr}=a.doc.builders,Xr={print:({node:t,path:e,print:r})=>["struct ",t.name," {",t.members.length>0?x(e.map(r,"members"),{firstSeparator:Wr,separator:[";",Wr],lastSeparator:[";",Wr]}):"","}"]},Jr={print:()=>"throw;"},{join:Zr,line:ts}=a.doc.builders,es={print:({node:t,path:e,print:r})=>{let s=["try",w(e.call(r,"expression"),{firstSeparator:ts})];const i=((t,e,r)=>t.returnParameters?["returns (",x(e.map(r,"returnParameters")),")"]:"")(t,e,r);return i&&(s=s.concat([i," "])),s=s.concat([e.call(r,"body")," ",Zr(" ",e.map(r,"catchClauses"))]),s}},{group:rs}=a.doc.builders,ss=(t,e,r)=>1===t.components?.length&&"BinaryOperation"===t.components[0].type?e.map(r,"components"):x(e.map(r,"components")),is={print:({node:t,path:e,print:r})=>rs([t.isArray?"[":"(",ss(t,e,r),t.isArray?"]":")"])},ns={print:({node:t})=>["type ",t.name," is ",t.definition.name,";"]},as={print:({node:t,path:e,print:r})=>t.isPrefix?[t.operator,"delete"===t.operator?" ":"",e.call(r,"subExpression")]:[e.call(r,"subExpression"),t.operator]},{group:os}=a.doc.builders,cs={print:({path:t,print:e})=>os(["unchecked ",t.call(e,"block")])},ls={print:({node:t})=>t.namePath},{line:hs,softline:us}=a.doc.builders,ds={print:({node:t,path:e,print:r,options:s})=>["using ",t.functions?.length?["{",x(t.functions.map(((e,r)=>t.operators[r]?[e," as ",t.operators[r]]:e)),{firstSeparator:s.bracketSpacing?hs:us}),"}"]:t.libraryName," for ",t.typeName?e.call(r,"typeName"):"*",t.isGlobal?" global;":";"]},{group:ps,indent:ms,line:ys}=a.doc.builders,fs=t=>t.isIndexed?" indexed":"",gs=t=>t.visibility&&"default"!==t.visibility?[ys,t.visibility]:"",ws=t=>t.isDeclaredConst?" constant":"",xs=t=>t.storageLocation&&"default"!==t.visibility?[ys,t.storageLocation]:"",vs=t=>t.isImmutable?" immutable":"",bs=(t,e,r)=>t.override?0===t.override.length?[ys,"override"]:[ys,"override(",x(e.map(r,"override")),")"]:"",_s=t=>t.name?[" ",t.name]:"",Es={print:({node:t,path:e,print:r})=>t.typeName?ps([e.call(r,"typeName"),ms([fs(t),gs(t),ws(t),xs(t),vs(t),bs(t,e,r),_s(t)])]):t.name},{group:Ts,indentIfBreak:Ss}=a.doc.builders,ks={print:({node:t,path:e,print:r})=>{const s=0===t.variables.filter((t=>t?.typeName)).length,i=Ts([s?"var ":"",(n=e.map(r,"variables"),a=t.variables.length>1||s,a?["(",x(n),")"]:n)],{id:Symbol("VariableDeclarationStatement.variables")});var n,a;const o=((t,e,r)=>t.initialValue?[" = ",e.call(r,"initialValue")]:"")(t,e,r);return Ts([i,Ss(o,{groupId:i.id}),t.omitSemicolon?"":";"])}},{group:Rs,indent:As,line:Cs}=a.doc.builders,Ks=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:Rs(As([Cs,e.call(r,"body")])),Ls={print:({node:t,path:e,print:r})=>["while (",w(e.call(r,"condition")),")",Ks(t,e,r)]};var Is=r(2101);const Ns=function t(e){const r=e.getValue();null!==r&&"object"==typeof r&&Object.keys(r).forEach((s=>{switch(s){case"loc":case"range":break;case"comments":e.each((t=>{t.getValue().printed=!0}),"comments");break;default:if("object"==typeof r[s]){if(Array.isArray(r[s]))return void e.each(t,s);e.call(t,s)}}}))},Ds=function(t){let e;return()=>(void 0===e&&((0,Is.o)("'solidity-parse' has been deprecated, please use 'slang-solidity'."),e=!0),e)}(),Os=function(t,e,r){Ds();const s=t.getValue();if(null===s)return"";if(!(s.type in i))throw new Error(`Unknown type: ${JSON.stringify(s.type)}`);return(0,Ie.yX)(s)?(Ns(t),e.originalText.slice(e.locStart(s),e.locEnd(s)+1)):i[s.type].print({node:s,options:e,path:t,print:r})}}},n={};function a(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t].call(r.exports,r,r.exports,a),r.exports}t="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",e="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",s=t=>{t&&t.d<1&&(t.d=1,t.forEach((t=>t.r--)),t.forEach((t=>t.r--?t.r++:t())))},a.a=(i,n,a)=>{var o;a&&((o=[]).d=-1);var c,l,h,u=new Set,d=i.exports,p=new Promise(((t,e)=>{h=e,l=t}));p[e]=d,p[t]=t=>(o&&t(o),u.forEach(t),p.catch((t=>{}))),i.exports=p,n((i=>{var n;c=(i=>i.map((i=>{if(null!==i&&"object"==typeof i){if(i[t])return i;if(i.then){var n=[];n.d=0,i.then((t=>{a[e]=t,s(n)}),(t=>{a[r]=t,s(n)}));var a={};return a[t]=t=>t(n),a}}var o={};return o[t]=t=>{},o[e]=i,o})))(i);var a=()=>c.map((t=>{if(t[r])throw t[r];return t[e]})),l=new Promise((e=>{(n=()=>e(a)).r=0;var r=t=>t!==o&&!u.has(t)&&(u.add(t),t&&!t.d&&(n.r++,t.push(n)));c.map((e=>e[t](r)))}));return n.r?l:a()}),(t=>(t?h(p[r]=t):l(d),s(o)))),o&&o.d<0&&(o.d=0)},a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;if("string"==typeof import.meta.url&&(t=import.meta.url),!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),a.b=void 0;var o=a(8156),c=(o=await o).A;export{c as default};var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{};l.prettierPlugins=l.prettierPlugins||{},l.prettierPlugins.solidity=c;
3
2
  //# sourceMappingURL=standalone.js.map