prettier-plugin-solidity 2.0.0-beta.8 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +63 -59
  3. package/dist/3620299963220ca08ee1.wasm +0 -0
  4. package/dist/binary-operator-printers/addition.js +11 -0
  5. package/dist/binary-operator-printers/addition.js.map +1 -0
  6. package/dist/binary-operator-printers/bit.js +5 -2
  7. package/dist/binary-operator-printers/bit.js.map +1 -1
  8. package/dist/binary-operator-printers/equality.js +7 -0
  9. package/dist/binary-operator-printers/equality.js.map +1 -0
  10. package/dist/binary-operator-printers/exponentiation.js +20 -12
  11. package/dist/binary-operator-printers/exponentiation.js.map +1 -1
  12. package/dist/binary-operator-printers/index.js +4 -2
  13. package/dist/binary-operator-printers/index.js.map +1 -1
  14. package/dist/binary-operator-printers/inequality.js +8 -0
  15. package/dist/binary-operator-printers/inequality.js.map +1 -0
  16. package/dist/binary-operator-printers/logical.js +9 -24
  17. package/dist/binary-operator-printers/logical.js.map +1 -1
  18. package/dist/binary-operator-printers/multiplication.js +19 -0
  19. package/dist/binary-operator-printers/multiplication.js.map +1 -0
  20. package/dist/binary-operator-printers/printers/binary-operation-printer.js +5 -0
  21. package/dist/binary-operator-printers/printers/binary-operation-printer.js.map +1 -0
  22. package/dist/binary-operator-printers/printers/create-binary-operation-printer.js +24 -0
  23. package/dist/binary-operator-printers/printers/create-binary-operation-printer.js.map +1 -0
  24. package/dist/binary-operator-printers/printers/create-group-if-necessary-builder.js +10 -0
  25. package/dist/binary-operator-printers/printers/create-group-if-necessary-builder.js.map +1 -0
  26. package/dist/binary-operator-printers/printers/create-indent-if-necessary-builder.js +22 -0
  27. package/dist/binary-operator-printers/printers/create-indent-if-necessary-builder.js.map +1 -0
  28. package/dist/binary-operator-printers/shift.js +6 -2
  29. package/dist/binary-operator-printers/shift.js.map +1 -1
  30. package/dist/binary-operator-printers/utils/should-group-or-indent.js +3 -0
  31. package/dist/binary-operator-printers/utils/should-group-or-indent.js.map +1 -0
  32. package/dist/comments/handlers/handleContractDefinitionComments.js +9 -5
  33. package/dist/comments/handlers/handleContractDefinitionComments.js.map +1 -1
  34. package/dist/comments/handlers/handleModifierInvocationComments.js +2 -3
  35. package/dist/comments/handlers/handleModifierInvocationComments.js.map +1 -1
  36. package/dist/common/printer-helpers.js +4 -11
  37. package/dist/common/printer-helpers.js.map +1 -1
  38. package/dist/index.js +5 -7
  39. package/dist/index.js.map +1 -1
  40. package/dist/nodes/Conditional.js +2 -2
  41. package/dist/nodes/Conditional.js.map +1 -1
  42. package/dist/nodes/ContractDefinition.js +30 -10
  43. package/dist/nodes/ContractDefinition.js.map +1 -1
  44. package/dist/nodes/ExpressionStatement.js +1 -1
  45. package/dist/nodes/ExpressionStatement.js.map +1 -1
  46. package/dist/nodes/FunctionDefinition.js +3 -3
  47. package/dist/nodes/FunctionDefinition.js.map +1 -1
  48. package/dist/nodes/ImportDirective.js +3 -1
  49. package/dist/nodes/ImportDirective.js.map +1 -1
  50. package/dist/options.js +16 -0
  51. package/dist/options.js.map +1 -1
  52. package/dist/parser.js +4 -0
  53. package/dist/parser.js.map +1 -1
  54. package/dist/prettier-comments/language-js/comments.js +8 -9
  55. package/dist/prettier-comments/language-js/comments.js.map +1 -1
  56. package/dist/printer.js +2 -2
  57. package/dist/printer.js.map +1 -1
  58. package/dist/slang-comments/handlers/{add-collection-node-first-comment.js → add-collection-first-comment.js} +2 -2
  59. package/dist/slang-comments/handlers/add-collection-first-comment.js.map +1 -0
  60. package/dist/slang-comments/handlers/{add-collection-node-last-comment.js → add-collection-last-comment.js} +2 -2
  61. package/dist/slang-comments/handlers/add-collection-last-comment.js.map +1 -0
  62. package/dist/slang-comments/handlers/handle-block-comments.js +4 -4
  63. package/dist/slang-comments/handlers/handle-block-comments.js.map +1 -1
  64. package/dist/slang-comments/handlers/handle-contract-definition-comments.js +20 -10
  65. package/dist/slang-comments/handlers/handle-contract-definition-comments.js.map +1 -1
  66. package/dist/slang-comments/handlers/handle-contract-specifiers-comments.js +22 -0
  67. package/dist/slang-comments/handlers/handle-contract-specifiers-comments.js.map +1 -0
  68. package/dist/slang-comments/handlers/handle-else-branch-comments.js +2 -2
  69. package/dist/slang-comments/handlers/handle-else-branch-comments.js.map +1 -1
  70. package/dist/slang-comments/handlers/handle-if-statement-comments.js +3 -3
  71. package/dist/slang-comments/handlers/handle-if-statement-comments.js.map +1 -1
  72. package/dist/slang-comments/handlers/handle-interface-definition-comments.js +4 -4
  73. package/dist/slang-comments/handlers/handle-interface-definition-comments.js.map +1 -1
  74. package/dist/slang-comments/handlers/handle-library-definition-comments.js +4 -4
  75. package/dist/slang-comments/handlers/handle-library-definition-comments.js.map +1 -1
  76. package/dist/slang-comments/handlers/handle-modifier-invocation-comments.js +2 -2
  77. package/dist/slang-comments/handlers/handle-modifier-invocation-comments.js.map +1 -1
  78. package/dist/slang-comments/handlers/handle-parameters-declaration-comments.js +4 -4
  79. package/dist/slang-comments/handlers/handle-parameters-declaration-comments.js.map +1 -1
  80. package/dist/slang-comments/handlers/handle-positional-arguments-declaration-comments.js +4 -4
  81. package/dist/slang-comments/handlers/handle-positional-arguments-declaration-comments.js.map +1 -1
  82. package/dist/slang-comments/handlers/handle-storage-layout-specifier-comments.js +14 -0
  83. package/dist/slang-comments/handlers/handle-storage-layout-specifier-comments.js.map +1 -0
  84. package/dist/slang-comments/handlers/handle-struct-comments.js +22 -0
  85. package/dist/slang-comments/handlers/handle-struct-comments.js.map +1 -0
  86. package/dist/slang-comments/handlers/handle-while-statement-comments.js +2 -2
  87. package/dist/slang-comments/handlers/handle-while-statement-comments.js.map +1 -1
  88. package/dist/slang-comments/handlers/index.js +6 -0
  89. package/dist/slang-comments/handlers/index.js.map +1 -1
  90. package/dist/slang-comments/printer.js +1 -2
  91. package/dist/slang-comments/printer.js.map +1 -1
  92. package/dist/slang-nodes/AdditiveExpression.js +12 -1
  93. package/dist/slang-nodes/AdditiveExpression.js.map +1 -1
  94. package/dist/slang-nodes/BitwiseAndExpression.js +8 -1
  95. package/dist/slang-nodes/BitwiseAndExpression.js.map +1 -1
  96. package/dist/slang-nodes/BitwiseOrExpression.js +8 -1
  97. package/dist/slang-nodes/BitwiseOrExpression.js.map +1 -1
  98. package/dist/slang-nodes/BitwiseXorExpression.js +8 -1
  99. package/dist/slang-nodes/BitwiseXorExpression.js.map +1 -1
  100. package/dist/slang-nodes/ConditionalExpression.js +17 -22
  101. package/dist/slang-nodes/ConditionalExpression.js.map +1 -1
  102. package/dist/slang-nodes/ContractDefinition.js +9 -10
  103. package/dist/slang-nodes/ContractDefinition.js.map +1 -1
  104. package/dist/slang-nodes/ContractSpecifier.js +27 -0
  105. package/dist/slang-nodes/ContractSpecifier.js.map +1 -0
  106. package/dist/slang-nodes/ContractSpecifiers.js +31 -0
  107. package/dist/slang-nodes/ContractSpecifiers.js.map +1 -0
  108. package/dist/slang-nodes/EqualityExpression.js +10 -2
  109. package/dist/slang-nodes/EqualityExpression.js.map +1 -1
  110. package/dist/slang-nodes/ExponentiationExpression.js +16 -2
  111. package/dist/slang-nodes/ExponentiationExpression.js.map +1 -1
  112. package/dist/slang-nodes/FallbackFunctionDefinition.js +4 -4
  113. package/dist/slang-nodes/FallbackFunctionDefinition.js.map +1 -1
  114. package/dist/slang-nodes/FunctionCallExpression.js +7 -7
  115. package/dist/slang-nodes/FunctionCallExpression.js.map +1 -1
  116. package/dist/slang-nodes/FunctionDefinition.js +4 -4
  117. package/dist/slang-nodes/FunctionDefinition.js.map +1 -1
  118. package/dist/slang-nodes/IfStatement.js +5 -4
  119. package/dist/slang-nodes/IfStatement.js.map +1 -1
  120. package/dist/slang-nodes/ImportDeconstructionSymbols.js +1 -1
  121. package/dist/slang-nodes/ImportDeconstructionSymbols.js.map +1 -1
  122. package/dist/slang-nodes/IndexAccessExpression.js +11 -11
  123. package/dist/slang-nodes/IndexAccessExpression.js.map +1 -1
  124. package/dist/slang-nodes/InequalityExpression.js +8 -2
  125. package/dist/slang-nodes/InequalityExpression.js.map +1 -1
  126. package/dist/slang-nodes/MemberAccessExpression.js +11 -13
  127. package/dist/slang-nodes/MemberAccessExpression.js.map +1 -1
  128. package/dist/slang-nodes/MultiplicativeExpression.js +13 -1
  129. package/dist/slang-nodes/MultiplicativeExpression.js.map +1 -1
  130. package/dist/slang-nodes/ReceiveFunctionDefinition.js +4 -4
  131. package/dist/slang-nodes/ReceiveFunctionDefinition.js.map +1 -1
  132. package/dist/slang-nodes/ReturnStatement.js +6 -6
  133. package/dist/slang-nodes/ReturnStatement.js.map +1 -1
  134. package/dist/slang-nodes/ShiftExpression.js +11 -1
  135. package/dist/slang-nodes/ShiftExpression.js.map +1 -1
  136. package/dist/slang-nodes/StateVariableDefinition.js +3 -9
  137. package/dist/slang-nodes/StateVariableDefinition.js.map +1 -1
  138. package/dist/slang-nodes/StateVariableDefinitionValue.js +1 -2
  139. package/dist/slang-nodes/StateVariableDefinitionValue.js.map +1 -1
  140. package/dist/slang-nodes/StorageLayoutSpecifier.js +25 -0
  141. package/dist/slang-nodes/StorageLayoutSpecifier.js.map +1 -0
  142. package/dist/slang-nodes/TupleDeconstructionStatement.js +3 -5
  143. package/dist/slang-nodes/TupleDeconstructionStatement.js.map +1 -1
  144. package/dist/slang-nodes/UnnamedFunctionDefinition.js +3 -3
  145. package/dist/slang-nodes/UnnamedFunctionDefinition.js.map +1 -1
  146. package/dist/slang-nodes/VariableDeclarationStatement.js +12 -12
  147. package/dist/slang-nodes/VariableDeclarationStatement.js.map +1 -1
  148. package/dist/slang-printers/create-binary-operation-printer.js +14 -9
  149. package/dist/slang-printers/create-binary-operation-printer.js.map +1 -1
  150. package/dist/slang-printers/print-binary-operation.js +24 -25
  151. package/dist/slang-printers/print-binary-operation.js.map +1 -1
  152. package/dist/slang-printers/print-comments.js +1 -1
  153. package/dist/slang-printers/print-comments.js.map +1 -1
  154. package/dist/slang-printers/print-logical-operation.js +5 -13
  155. package/dist/slang-printers/print-logical-operation.js.map +1 -1
  156. package/dist/slang-printers/print-preserving-empty-lines.js +1 -1
  157. package/dist/slang-printers/print-preserving-empty-lines.js.map +1 -1
  158. package/dist/slang-utils/create-hug-function.js +5 -4
  159. package/dist/slang-utils/create-hug-function.js.map +1 -1
  160. package/dist/slang-utils/create-parser.js +31 -86
  161. package/dist/slang-utils/create-parser.js.map +1 -1
  162. package/dist/slang-utils/metadata.js +31 -35
  163. package/dist/slang-utils/metadata.js.map +1 -1
  164. package/dist/slang-utils/sort-contract-specifiers.js +12 -0
  165. package/dist/slang-utils/sort-contract-specifiers.js.map +1 -0
  166. package/dist/slang-utils/sort-function-attributes.js +1 -3
  167. package/dist/slang-utils/sort-function-attributes.js.map +1 -1
  168. package/dist/slangPrinter.js +10 -18
  169. package/dist/slangPrinter.js.map +1 -1
  170. package/dist/slangSolidityParser.js +6 -9
  171. package/dist/slangSolidityParser.js.map +1 -1
  172. package/dist/standalone.js +1 -1
  173. package/dist/standalone.js.map +1 -1
  174. package/package.json +23 -20
  175. package/src/binary-operator-printers/addition.js +11 -0
  176. package/src/binary-operator-printers/bit.js +5 -2
  177. package/src/binary-operator-printers/equality.js +7 -0
  178. package/src/binary-operator-printers/exponentiation.js +22 -13
  179. package/src/binary-operator-printers/index.js +4 -2
  180. package/src/binary-operator-printers/inequality.js +8 -0
  181. package/src/binary-operator-printers/logical.js +12 -26
  182. package/src/binary-operator-printers/multiplication.js +19 -0
  183. package/src/binary-operator-printers/printers/binary-operation-printer.js +9 -0
  184. package/src/binary-operator-printers/printers/create-binary-operation-printer.js +31 -0
  185. package/src/binary-operator-printers/printers/create-group-if-necessary-builder.js +12 -0
  186. package/src/binary-operator-printers/printers/create-indent-if-necessary-builder.js +23 -0
  187. package/src/binary-operator-printers/shift.js +6 -2
  188. package/src/binary-operator-printers/utils/should-group-or-indent.js +3 -0
  189. package/src/comments/handlers/handleContractDefinitionComments.js +18 -6
  190. package/src/comments/handlers/handleModifierInvocationComments.js +7 -4
  191. package/src/common/printer-helpers.js +4 -15
  192. package/src/index.ts +6 -8
  193. package/src/nodes/Conditional.js +2 -2
  194. package/src/nodes/ContractDefinition.js +31 -11
  195. package/src/nodes/ExpressionStatement.js +1 -1
  196. package/src/nodes/FunctionDefinition.js +3 -4
  197. package/src/nodes/ImportDirective.js +5 -1
  198. package/src/options.ts +16 -0
  199. package/src/parser.js +4 -0
  200. package/src/prettier-comments/language-js/comments.js +10 -16
  201. package/src/printer.js +2 -5
  202. package/src/slang-comments/handlers/{add-collection-node-first-comment.ts → add-collection-first-comment.ts} +3 -3
  203. package/src/slang-comments/handlers/{add-collection-node-last-comment.ts → add-collection-last-comment.ts} +3 -3
  204. package/src/slang-comments/handlers/handle-block-comments.ts +4 -4
  205. package/src/slang-comments/handlers/handle-contract-definition-comments.ts +23 -15
  206. package/src/slang-comments/handlers/handle-contract-specifiers-comments.ts +33 -0
  207. package/src/slang-comments/handlers/handle-else-branch-comments.ts +2 -2
  208. package/src/slang-comments/handlers/handle-if-statement-comments.ts +3 -6
  209. package/src/slang-comments/handlers/handle-interface-definition-comments.ts +4 -4
  210. package/src/slang-comments/handlers/handle-library-definition-comments.ts +4 -4
  211. package/src/slang-comments/handlers/handle-modifier-invocation-comments.ts +2 -2
  212. package/src/slang-comments/handlers/handle-parameters-declaration-comments.ts +4 -4
  213. package/src/slang-comments/handlers/handle-positional-arguments-declaration-comments.ts +4 -4
  214. package/src/slang-comments/handlers/handle-storage-layout-specifier-comments.ts +23 -0
  215. package/src/slang-comments/handlers/handle-struct-comments.ts +39 -0
  216. package/src/slang-comments/handlers/handle-while-statement-comments.ts +2 -2
  217. package/src/slang-comments/handlers/index.ts +6 -0
  218. package/src/slang-comments/printer.ts +1 -3
  219. package/src/slang-nodes/AdditiveExpression.ts +15 -1
  220. package/src/slang-nodes/BitwiseAndExpression.ts +11 -1
  221. package/src/slang-nodes/BitwiseOrExpression.ts +14 -4
  222. package/src/slang-nodes/BitwiseXorExpression.ts +11 -1
  223. package/src/slang-nodes/ConditionalExpression.ts +14 -20
  224. package/src/slang-nodes/ContractDefinition.ts +10 -11
  225. package/src/slang-nodes/ContractSpecifier.ts +48 -0
  226. package/src/slang-nodes/ContractSpecifiers.ts +52 -0
  227. package/src/slang-nodes/EqualityExpression.ts +15 -2
  228. package/src/slang-nodes/ExponentiationExpression.ts +17 -4
  229. package/src/slang-nodes/FallbackFunctionDefinition.ts +4 -4
  230. package/src/slang-nodes/FunctionCallExpression.ts +7 -7
  231. package/src/slang-nodes/FunctionDefinition.ts +4 -4
  232. package/src/slang-nodes/IfStatement.ts +5 -4
  233. package/src/slang-nodes/ImportDeconstructionSymbols.ts +1 -1
  234. package/src/slang-nodes/IndexAccessExpression.ts +11 -12
  235. package/src/slang-nodes/InequalityExpression.ts +11 -2
  236. package/src/slang-nodes/MemberAccessExpression.ts +13 -17
  237. package/src/slang-nodes/MultiplicativeExpression.ts +16 -1
  238. package/src/slang-nodes/PositionalArguments.ts +2 -2
  239. package/src/slang-nodes/ReceiveFunctionDefinition.ts +4 -4
  240. package/src/slang-nodes/ReturnStatement.ts +5 -6
  241. package/src/slang-nodes/ShiftExpression.ts +14 -1
  242. package/src/slang-nodes/StateVariableDefinition.ts +3 -10
  243. package/src/slang-nodes/StateVariableDefinitionValue.ts +1 -2
  244. package/src/slang-nodes/StorageLayoutSpecifier.ts +45 -0
  245. package/src/slang-nodes/StringLiteral.ts +1 -1
  246. package/src/slang-nodes/TupleDeconstructionStatement.ts +6 -9
  247. package/src/slang-nodes/UnnamedFunctionDefinition.ts +3 -3
  248. package/src/slang-nodes/VariableDeclarationStatement.ts +15 -16
  249. package/src/slang-nodes/types.d.ts +15 -1
  250. package/src/slang-printers/create-binary-operation-printer.ts +16 -11
  251. package/src/slang-printers/print-binary-operation.ts +48 -39
  252. package/src/slang-printers/print-comments.ts +1 -1
  253. package/src/slang-printers/print-logical-operation.ts +8 -17
  254. package/src/slang-printers/print-preserving-empty-lines.ts +3 -7
  255. package/src/slang-utils/create-hug-function.ts +5 -5
  256. package/src/slang-utils/create-parser.ts +56 -119
  257. package/src/slang-utils/metadata.ts +33 -37
  258. package/src/slang-utils/sort-contract-specifiers.ts +22 -0
  259. package/src/slang-utils/sort-function-attributes.ts +2 -5
  260. package/src/slangPrinter.ts +12 -23
  261. package/src/slangSolidityParser.ts +9 -12
  262. package/src/types.d.ts +7 -219
  263. package/dist/78244c53725e2131398e.wasm +0 -0
  264. package/dist/binary-operator-printers/arithmetic.js +0 -44
  265. package/dist/binary-operator-printers/arithmetic.js.map +0 -1
  266. package/dist/binary-operator-printers/comparison.js +0 -38
  267. package/dist/binary-operator-printers/comparison.js.map +0 -1
  268. package/dist/common/backward-compatibility.js +0 -27
  269. package/dist/common/backward-compatibility.js.map +0 -1
  270. package/dist/slang-comments/handlers/add-collection-node-first-comment.js.map +0 -1
  271. package/dist/slang-comments/handlers/add-collection-node-last-comment.js.map +0 -1
  272. package/dist/slang-printers/print-comparison-operation.js +0 -35
  273. package/dist/slang-printers/print-comparison-operation.js.map +0 -1
  274. package/dist/slang-utils/prettier-version-satisfies.js +0 -6
  275. package/dist/slang-utils/prettier-version-satisfies.js.map +0 -1
  276. package/dist/slang-utils/print-warning.js +0 -12
  277. package/dist/slang-utils/print-warning.js.map +0 -1
  278. package/src/binary-operator-printers/arithmetic.js +0 -51
  279. package/src/binary-operator-printers/comparison.js +0 -36
  280. package/src/common/backward-compatibility.js +0 -34
  281. package/src/slang-printers/print-comparison-operation.ts +0 -45
  282. package/src/slang-utils/prettier-version-satisfies.ts +0 -8
  283. package/src/slang-utils/print-warning.ts +0 -12
@@ -1,2 +1,2 @@
1
- var t,e,r,s,i={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)}}))},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)}}))},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)}}))},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)}}))},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}}},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)}}))},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)}}))},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}},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")]}},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)}}))},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)}}))},450:(t,e,r)=>{t.exports=r.p+"d6da904aec8bb797eac6.wasm"},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)}}))},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)}}))},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)}}))},560:(t,e,r)=>{const s=r(3908);t.exports=(t,e,r)=>new s(t,r).compare(new s(e,r))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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(v){s(v)}}))},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)}}))},838:t=>{t.exports=Object("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{}).prettier},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)}}))},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)}}))},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)}}))},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)}},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)}}))},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)}}))},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)}}))},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)}}))},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))}},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)}}))},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)}}))},1071:(t,e,r)=>{r.d(e,{A:()=>Ps});var s={};r.r(s),r.d(s,{arithmetic:()=>B,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:()=>T,AssemblyFor:()=>S,AssemblyFunctionDefinition:()=>R,AssemblyIf:()=>A,AssemblyLocalDefinition:()=>L,AssemblyMemberAccess:()=>I,AssemblyStackAssignment:()=>N,AssemblySwitch:()=>P,BinaryOperation:()=>nt,Block:()=>ct,BooleanLiteral:()=>lt,Break:()=>ht,BreakStatement:()=>ut,CatchClause:()=>pt,Conditional:()=>xt,Continue:()=>bt,ContinueStatement:()=>_t,ContractDefinition:()=>At,CustomErrorDefinition:()=>Lt,DecimalNumber:()=>It,DoWhileStatement:()=>Pt,ElementaryTypeName:()=>Ft,EmitStatement:()=>Ut,EnumDefinition:()=>Vt,EnumValue:()=>jt,EventDefinition:()=>Ht,ExpressionStatement:()=>Qt,FileLevelConstant:()=>Gt,ForStatement:()=>re,FunctionCall:()=>ce,FunctionDefinition:()=>Ee,FunctionTypeName:()=>Ie,HexLiteral:()=>Oe,HexNumber:()=>Pe,Identifier:()=>qe,IfStatement:()=>je,ImportDirective:()=>ze,IndexAccess:()=>er,IndexRangeAccess:()=>rr,InheritanceSpecifier:()=>ir,InlineAssemblyStatement:()=>nr,LabelDefinition:()=>cr,Mapping:()=>hr,MemberAccess:()=>yr,ModifierDefinition:()=>Er,ModifierInvocation:()=>kr,NameValueExpression:()=>Rr,NameValueList:()=>Lr,NewExpression:()=>Ir,NumberLiteral:()=>Kr,PragmaDirective:()=>Nr,ReturnStatement:()=>Fr,RevertStatement:()=>Ur,SourceUnit:()=>Yr,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:()=>Rs,WhileStatement:()=>Ks});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},v=(t,{firstSeparator:e,separator:r=[",",p],lastSeparator:s,grouped:i}={})=>w(d(r,t),{firstSeparator:e,lastSeparator:s,grouped:i}),{hardline:x}=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:x,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,"(",v(e.map(r,"arguments")),")"]},T={print:({node:t,path:e,print:r})=>[t.default?"default":["case ",e.call(r,"value")]," ",e.call(r,"block")]},{join:E}=a.doc.builders,S={print:({path:t,print:e})=>E(" ",["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,"(",v(e.map(r,"arguments")),")",0===t.returnArguments.length?" ":w(["->",v(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,L={print:({node:t,path:e,print:r})=>{const s=["let",v(e.map(r,"names"),{firstSeparator:C})];return null!==t.expression&&(s.push(":= "),s.push(e.call(r,"expression"))),s}},I={print:({path:t,print:e})=>[t.call(e,"expression"),".",t.call(e,"memberName")]},{hardline:K}=a.doc.builders,N={print:({node:t,path:e,print:r})=>[e.call(r,"expression"),K,"=: ",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:F,line:U}=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 F(e);if(r===i.right)return e;r=i}})(e),i=[t.operator,U,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:Y,line:V,indent:j}=a.doc.builders,B={match:t=>["+","-","*","/","%"].includes(t),print:(t,e,r)=>{const s=(t=>e=>{const r=t.getParentNode();return"BinaryOperation"!==r.type||M.match(r.operator)?Y(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 j(e);if(r===i.right)return e;r=i}})(e),n=[t.operator,V,e.call(r,"right")],a="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return s([e.call(r,"left")," ",i(a?Y(n):n)])}},{group:H,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?H(Q([$,e.call(r,"right")])):[" ",e.call(r,"right")]]},z={match:t=>["&","|","^"].includes(t),print:B.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:B.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||"","(",v(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:vt}=a.doc.builders,xt={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([vt,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:Tt,line:Et,hardline:St}=a.doc.builders,kt=(t,e,r)=>t.baseContracts.length>0?[" is",v(e.map(r,"baseContracts"),{firstSeparator:Et})]:Et,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})=>[Tt(["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?v(e.map(r,"parameters")):"",Lt={print:({node:t,path:e,print:r})=>["error ",t.name,"(",Ct(t,e,r),");"]},It={print:({node:t})=>t.value},{group:Kt,indent:Nt,line:Dt}=a.doc.builders,Ot=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")," "]:Kt([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]:"",Ft={print:({node:t})=>[t.name,qt(t)]},Ut={print:({path:t,print:e})=>["emit ",t.call(e,"eventCall"),";"]},{group:Mt,hardline:Yt}=a.doc.builders,Vt={print:({node:t,path:e,print:r})=>Mt(["enum ",t.name," {",v(e.map(r,"members"),{firstSeparator:Yt}),"}"])},jt={print:({node:t})=>t.name},Bt=(t,e,r)=>t.parameters?.length>0?v(e.map(r,"parameters")):"",Ht={print:({node:t,path:e,print:r})=>["event ",t.name,"(",Bt(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 (",v([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["{",v(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)=>v(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 v(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(",v(e.map(r,"override")),")"]:"",ve=t=>t.stateMutability?[pe,t.stateMutability]:"",xe=(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):";",Te=(t,e,r)=>t.body?e.call(r,"body"):"",Ee={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),ve(t),ge(t),we(t,e,r),xe(t,e,r),be(t,e,r,s),_e(t)]))]),Te(t,e,r)]},{group:Se,indent:ke,line:Re}=a.doc.builders,Ae=(t,e,r)=>t.returnTypes.length>0?[Re,"returns (",v(e.map(r,"returnTypes")),")"]:"",Ce=t=>t.visibility&&"default"!==t.visibility?[Re,t.visibility]:"",Le=t=>t.stateMutability&&"default"!==t.stateMutability?[Re,t.stateMutability]:"",Ie={print:({node:t,path:e,print:r})=>Se(["function(",v(e.map(r,"parameterTypes"),{grouped:!1}),")",ke(Se([Ce(t),Le(t),Ae(t,e,r)]))])};var Ke=r(4523);const{join:Ne,hardline:De}=a.doc.builders,Oe={print:({node:t,options:e})=>{const r=t.parts.map((t=>`hex${(0,Ke.Tz)(t,e)}`));return Ne(De,r)}},Pe={print:({node:t})=>t.value},qe={print:({node:t})=>t.name},{group:Fe,hardline:Ue,indent:Me,line:Ye}=a.doc.builders,Ve=(t,e,r)=>"Block"===t.falseBody.type||"IfStatement"===t.falseBody.type?[" ",e.call(r,"falseBody")]:Fe(Me([Ye,e.call(r,"falseBody")])),je={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 Fe(Me([s?Ue:Ye,e.call(r,"trueBody")]))})(t,r,s)),i.length&&t.falseBody&&(n.push(Ue),n.push(f(t,r,e))),n.push(((t,e,r,s)=>t.falseBody?["Block"===t.trueBody.type&&0===s.length?" ":Ue,"else",Ve(t,e,r)]:"")(t,r,s,i)),n}};var Be=r(6170),He=r(7638);const{group:$e,line:Qe,softline:Ge}=a.doc.builders,ze={print:({node:t,options:e})=>{const r=(0,Ke.Tz)(t.path,e);let s;if(t.unitAlias)s=e.originalText.slice(e.locStart(t),e.locStart(t.pathLiteral)).includes("*")?["* as ",t.unitAlias," from ",r]:[r," as ",t.unitAlias];else if(t.symbolAliases){const i=Be(e.compiler),n=t.symbolAliases.map((([t,e])=>e?`${t} as ${e}`:t));let a,o;i&&He(i,">=0.7.4")?(a=e.bracketSpacing?Qe:Ge,o=[",",Qe]):(a=e.bracketSpacing?" ":"",o=", "),s=["{",v(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?["(",v(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,Ke.Tz)(t.language,s)} `:"",t.flags?.length>0?["(",v(t.flags.map((t=>(0,Ke.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:vr}=a.doc.builders,xr=(t,e,r)=>t.parameters?.length>0?["(",v(e.map(r,"parameters"),{separator:[",",vr]}),")"]:"()",br=t=>t.isVirtual?[vr,"virtual"]:"",_r=(t,e,r)=>t.override?0===t.override.length?[vr,"override"]:[vr,"override(",v(e.map(r,"override")),")"]:"",Tr=(t,e,r)=>t.body?t.isVirtual?gr(e.call(r,"body")):[e.call(r,"body")]:";",Er={print:({node:t,path:e,print:r})=>["modifier ",t.name,xr(t,e,r),gr(wr([br(t),_r(t,e,r),t.body?fr(vr):""])),Tr(t,e,r)]},Sr=(t,e,r,s)=>t.arguments?t.arguments.length>0?["(",v(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,Lr={print:({node:t,path:e,print:r,options:s})=>v(e.map(r,"arguments").map(((e,r)=>[t.names[r],": ",e])),{firstSeparator:s.bracketSpacing?Ar:Cr})},Ir={print:({path:t,print:e})=>["new ",t.call(e,"typeName")]},Kr={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")])):"",Fr={print:({node:t,path:e,print:r,options:s})=>["return",qr(t,e,r,s),";"]},Ur={print:({path:t,print:e})=>["revert ",t.call(e,"revertCall"),";"]},{line:Mr}=a.doc.builders,Yr={print:({options:t,path:e,print:r})=>[g(e,"children",t,r),t.parentParser?"":Mr]},{group:Vr,indent:jr,line:Br}=a.doc.builders,Hr=(t,e,r)=>t.initialValue?"TupleExpression"===t.initialValue.type?[" = ",e.call(r,"initialValue")]:Vr([" =",jr([Br,e.call(r,"initialValue")])]):"",$r={print:({node:t,path:e,print:r})=>[...e.map(r,"variables"),Hr(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,Ke.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?v(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 (",v(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"):v(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?["{",v(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":"",vs=t=>t.storageLocation&&"default"!==t.visibility?[ys,t.storageLocation]:"",xs=t=>t.isImmutable?" immutable":"",bs=t=>t.isTransient?" transient":"",_s=(t,e,r)=>t.override?0===t.override.length?[ys,"override"]:[ys,"override(",v(e.map(r,"override")),")"]:"",Ts=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),vs(t),xs(t),bs(t),_s(t,e,r),Ts(t)])]):t.name},{group:Ss,indentIfBreak:ks}=a.doc.builders,Rs={print:({node:t,path:e,print:r})=>{const s=0===t.variables.filter((t=>t?.typeName)).length,i=Ss([s?"var ":"",(n=e.map(r,"variables"),a=t.variables.length>1||s,a?["(",v(n),")"]:n)],{id:Symbol("VariableDeclarationStatement.variables")});var n,a;const o=((t,e,r)=>t.initialValue?[" = ",e.call(r,"initialValue")]:"")(t,e,r);return Ss([i,ks(o,{groupId:i.id}),t.omitSemicolon?"":";"])}},{group:As,indent:Cs,line:Ls}=a.doc.builders,Is=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:As(Cs([Ls,e.call(r,"body")])),Ks={print:({node:t,path:e,print:r})=>["while (",w(e.call(r,"condition")),")",Is(t,e,r)]};var Ns=r(2101);const Ds=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)}}}))},Os=function(){let t;return()=>(void 0===t&&((0,Ns.o)("'solidity-parse' has been deprecated, please use 'slang-solidity'."),t=!0),t)}(),Ps=function(t,e,r){Os();const s=t.getValue();if(null===s)return"";if(!(s.type in i))throw new Error(`Unknown type: ${JSON.stringify(s.type)}`);return(0,Ke.yX)(s)?(Ds(t),e.originalText.slice(e.locStart(s),e.locEnd(s)+1)):i[s.type].print({node:s,options:e,path:t,print:r})}},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)}}))},1112:(t,e,r)=>{t.exports=r.p+"591f276013d241f7a687.wasm"},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)}},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)}}))},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)}}))},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)}}))},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}},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)}}))},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)}}))},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)}}))},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}},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)}}))},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.EqualityExpression,i.q3.InequalityExpression,i.q3.AndExpression,i.q3.OrExpression,i.q3.ShiftExpression]);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)}}))},1406:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K3:()=>ui,Rj:()=>li,Wp:()=>di,tQ:()=>hi});var i=r(8664),n=r(4863),a=r(9340),o=r(6015);const{getEnvironment:p}=i.cA,{exit:m}=i.NS,{getStderr:y}=i.vF,{getStdin:f}=i.bX,{getStdout:g}=i.Uo,{getDirectories:w}=n.jw,{Descriptor:v,filesystemErrorCode:x}=n.gK,{Error:b}=a.z3,{InputStream:_,OutputStream:T}=a.oS,{getRandomBytes:E}=o.yT;let S=[],k=new DataView(new ArrayBuffer);const R=t=>k.buffer===t.buffer?k:k=new DataView(t.buffer),A=()=>{},C="undefined"!=typeof process&&process.versions&&process.versions.node;let L;async function I(t){return C?(L=L||await Promise.resolve().then(r.bind(r,9031)),WebAssembly.compile(await L.readFile(t))):fetch(t).then(WebAssembly.compileStreaming)}function K(t){return"undefined"==typeof FinalizationRegistry?{unregister(){}}:new FinalizationRegistry(t)}function N(t){if(t&&O.call(t,"payload"))return t.payload;if(t instanceof Error)throw t;return t}const D=[],O=Object.prototype.hasOwnProperty,P=WebAssembly.instantiate,q=1<<30;function F(t,e){const r=t[0]&~q;return 0===r?(t.push(0),t.push(e|q),(t.length>>1)-1):(t[0]=t[r<<1],t[r<<1]=0,t[1+(r<<1)]=e|q,r)}function U(t,e){const r=t[e<<1],s=t[1+(e<<1)],i=!!(s&q),n=s&~q;if(0===s||r&q)throw new TypeError("Invalid handle");return t[e<<1]=t[0]|q,t[0]=e|q,{rep:n,scope:r,own:i}}const M=Symbol.for("cabiDispose"),Y=Symbol("handle"),V=Symbol.for("cabiRep"),j=Symbol.dispose||Symbol.for("dispose"),B=t=>BigInt.asUintN(64,BigInt(t));function H(t){return t>>>0}const $=new TextDecoder,Q=new TextEncoder;let G=0;function z(t,e,r){if("string"!=typeof t)throw new TypeError("expected a string");if(0===t.length)return G=0,1;let s=Q.encode(t),i=e(0,0,1,s.length);return new Uint8Array(r.buffer).set(s,i),G=s.length,i}const W=Symbol.for("nodejs.util.inspect.custom");let X,J;const Z=[q,0],tt=new Map;let et=0;function rt(){const t=y();if(!(t instanceof T))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=t[Y];if(!e){const r=t[V]||++et;tt.set(r,t),e=F(Z,r)}return e}D[1]=Z;const st=[q,0],it=new Map;let nt,at,ot,ct=0;function lt(){const t=f();if(!(t instanceof _))throw new TypeError('Resource error: Not a valid "InputStream" resource.');var e=t[Y];if(!e){const r=t[V]||++ct;it.set(r,t),e=F(st,r)}return e}function ht(){const t=g();if(!(t instanceof T))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=t[Y];if(!e){const r=t[V]||++et;tt.set(r,t),e=F(Z,r)}return e}function ut(t){let e;e=t?{tag:"err",val:void 0}:{tag:"ok",val:void 0},m(e)}function dt(t){var e=p(),r=e.length,s=ot(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=z(i,ot,at),o=G;R(at).setInt32(h+4,o,!0),R(at).setInt32(h+0,a,!0);var c=z(n,ot,at),l=G;R(at).setInt32(h+12,l,!0),R(at).setInt32(h+8,c,!0)}R(at).setInt32(t+4,r,!0),R(at).setInt32(t+0,s,!0)}D[2]=st;const pt=[q,0],mt=new Map;let yt=0;function ft(t,e,r){var s=t,i=pt[1+(s<<1)]&~q,n=mt.get(i);let a;n||(n=Object.create(v.prototype),Object.defineProperty(n,Y,{writable:!0,value:s}),Object.defineProperty(n,V,{writable:!0,value:i})),S.push(n);try{a={tag:"ok",val:n.writeViaStream(BigInt.asUintN(64,e))}}catch(t){a={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var o=a;switch(o.tag){case"ok":{const t=o.val;if(R(at).setInt8(r+0,0,!0),!(t instanceof T))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var c=t[Y];if(!c){const e=t[V]||++et;tt.set(e,t),c=F(Z,e)}R(at).setInt32(r+4,c,!0);break}case"err":{const t=o.val;R(at).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`)}R(at).setInt8(r+4,e,!0);break}default:throw new TypeError("invalid variant specified for result")}}function gt(t,e){var r=t,s=pt[1+(r<<1)]&~q,i=mt.get(s);let n;i||(i=Object.create(v.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.appendViaStream()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;if(R(at).setInt8(e+0,0,!0),!(t instanceof T))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var o=t[Y];if(!o){const e=t[V]||++et;tt.set(e,t),o=F(Z,e)}R(at).setInt32(e+4,o,!0);break}case"err":{const t=a.val;R(at).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`)}R(at).setInt8(e+4,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function wt(t,e){var r=t,s=pt[1+(r<<1)]&~q,i=mt.get(s);let n;i||(i=Object.create(v.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.getType()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;R(at).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`)}R(at).setInt8(e+1,r,!0);break}case"err":{const t=a.val;R(at).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`)}R(at).setInt8(e+1,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function vt(t,e){var r=t,s=pt[1+(r<<1)]&~q,i=mt.get(s);let n;i||(i=Object.create(v.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.stat()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;R(at).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`)}R(at).setInt8(e+8,r,!0),R(at).setBigInt64(e+16,B(c),!0),R(at).setBigInt64(e+24,B(l),!0);var m=h;if(null==m)R(at).setInt8(e+32,0,!0);else{const t=m;R(at).setInt8(e+32,1,!0);var{seconds:y,nanoseconds:f}=t;R(at).setBigInt64(e+40,B(y),!0),R(at).setInt32(e+48,H(f),!0)}var g=u;if(null==g)R(at).setInt8(e+56,0,!0);else{const t=g;R(at).setInt8(e+56,1,!0);var{seconds:w,nanoseconds:x}=t;R(at).setBigInt64(e+64,B(w),!0),R(at).setInt32(e+72,H(x),!0)}var b=d;if(null==b)R(at).setInt8(e+80,0,!0);else{const t=b;R(at).setInt8(e+80,1,!0);var{seconds:_,nanoseconds:T}=t;R(at).setBigInt64(e+88,B(_),!0),R(at).setInt32(e+96,H(T),!0)}break}case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var E=t;let r;switch(E){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(`"${E}" is not one of the cases of error-code`)}R(at).setInt8(e+8,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}D[3]=pt;const xt=[q,0],bt=new Map;let _t,Tt,Et,St,kt,Rt,At,Ct,Lt,It,Kt,Nt,Dt,Ot,Pt,qt=0;function Ft(t,e){var r=t,s=xt[1+(r<<1)]&~q,i=bt.get(s);i||(i=Object.create(b.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);const n=x(i);for(const t of S)t[Y]=void 0;S=[];var a=n;if(null==a)R(at).setInt8(e+0,0,!0);else{const t=a;R(at).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`)}R(at).setInt8(e+1,r,!0)}}function Ut(t,e){var r=t,s=Z[1+(r<<1)]&~q,i=tt.get(s);let n;i||(i=Object.create(T.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.checkWrite()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;R(at).setInt8(e+0,0,!0),R(at).setBigInt64(e+8,B(t),!0);break}case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var o=t;switch(o.tag){case"last-operation-failed":{const t=o.val;if(R(at).setInt8(e+8,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=t[Y];if(!c){const e=t[V]||++qt;bt.set(e,t),c=F(xt,e)}R(at).setInt32(e+12,c,!0);break}case"closed":R(at).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 Mt(t,e,r,s){var i=t,n=Z[1+(i<<1)]&~q,a=tt.get(n);a||(a=Object.create(T.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,V,{writable:!0,value:n})),S.push(a);var o=e,c=r,l=new Uint8Array(at.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.write(l)}}catch(t){h={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var u=h;switch(u.tag){case"ok":u.val,R(at).setInt8(s+0,0,!0);break;case"err":{const t=u.val;R(at).setInt8(s+0,1,!0);var d=t;switch(d.tag){case"last-operation-failed":{const t=d.val;if(R(at).setInt8(s+4,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=t[Y];if(!p){const e=t[V]||++qt;bt.set(e,t),p=F(xt,e)}R(at).setInt32(s+8,p,!0);break}case"closed":R(at).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 Yt(t,e,r,s){var i=t,n=Z[1+(i<<1)]&~q,a=tt.get(n);a||(a=Object.create(T.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,V,{writable:!0,value:n})),S.push(a);var o=e,c=r,l=new Uint8Array(at.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.blockingWriteAndFlush(l)}}catch(t){h={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var u=h;switch(u.tag){case"ok":u.val,R(at).setInt8(s+0,0,!0);break;case"err":{const t=u.val;R(at).setInt8(s+0,1,!0);var d=t;switch(d.tag){case"last-operation-failed":{const t=d.val;if(R(at).setInt8(s+4,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=t[Y];if(!p){const e=t[V]||++qt;bt.set(e,t),p=F(xt,e)}R(at).setInt32(s+8,p,!0);break}case"closed":R(at).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 Vt(t,e){var r=t,s=Z[1+(r<<1)]&~q,i=tt.get(s);let n;i||(i=Object.create(T.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.blockingFlush()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":a.val,R(at).setInt8(e+0,0,!0);break;case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var o=t;switch(o.tag){case"last-operation-failed":{const t=o.val;if(R(at).setInt8(e+4,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=t[Y];if(!c){const e=t[V]||++qt;bt.set(e,t),c=F(xt,e)}R(at).setInt32(e+8,c,!0);break}case"closed":R(at).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 jt(t,e){var r=E(BigInt.asUintN(64,t)),s=r.byteLength,i=ot(0,0,1,1*s),n=new Uint8Array(r.buffer||r,r.byteOffset,1*s);new Uint8Array(at.buffer,i,1*s).set(n),R(at).setInt32(e+4,s,!0),R(at).setInt32(e+0,i,!0)}function Bt(t){var e=w(),r=e.length,s=ot(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 v))throw new TypeError('Resource error: Not a valid "Descriptor" resource.');var a=i[Y];if(!a){const t=i[V]||++yt;mt.set(t,i),a=F(pt,t)}R(at).setInt32(l+0,a,!0);var o=z(n,ot,at),c=G;R(at).setInt32(l+8,c,!0),R(at).setInt32(l+4,o,!0)}R(at).setInt32(t+4,r,!0),R(at).setInt32(t+0,s,!0)}D[0]=xt;class Ht{constructor(){throw new Error('"TerminalKindExtensions" resource does not define a constructor')}}Ht.isIdentifier=function(t){return!!Dt(l[t])},Ht.isTrivia=function(t){return!!Ot(l[t])},Ht.isValid=function(t){return!!Pt(l[t])};const $t=[q,0],Qt=K((t=>{const{rep:e}=U($t,t);X[18](e)}));let Gt,zt,Wt;D[4]=$t;class Xt{constructor(){throw new Error('"NonterminalNode" resource does not define a constructor')}}Xt.prototype[W]=function(t,e,r){const s=Object.getPrototypeOf(this)[W];try{return delete Object.getPrototypeOf(this)[W],r(this,{...e,depth:t,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[W]=s}},Object.defineProperty(Xt.prototype,"id",{get:function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q;return Gt(e)>>>0}}),Object.defineProperty(Xt.prototype,"kind",{get:function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q;const r=zt(e);return c[r]}}),Object.defineProperty(Xt.prototype,"textLength",{get:function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q;const r=Wt(e);return{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0}}});const Jt=[q,0],Zt=K((t=>{const{rep:e}=U(Jt,t);X[19](e)}));let te;D[5]=Jt,Xt.prototype.children=function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q;const r=te(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+12*t;let r;switch(R(at).getUint8(e+4,!0)){case 0:var a=R(at).getInt32(e+8,!0),o=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Qt.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Qt.unregister(o),U($t,a),o[j]=A,o[Y]=void 0,X[18]($t[1+(a<<1)]&~q)}}),r=o;break;case 1:var c=R(at).getInt32(e+8,!0),l=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(l,Y,{writable:!0,value:c}),Zt.register(l,c,l),Object.defineProperty(l,j,{writable:!0,value:function(){Zt.unregister(l),U(Jt,c),l[j]=A,l[Y]=void 0,X[19](Jt[1+(c<<1)]&~q)}}),r=l}n.push({label:h[R(at).getUint8(e+0,!0)],node:r})}const u=n;return Tt(r),u};const ee=[q,0],re=K((t=>{const{rep:e}=U(ee,t);X[21](e)}));let se,ie,ne;D[7]=ee,Xt.prototype.descendants=function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q,r=se(e),s=new.target===ir?this:Object.create(ir.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),U(ee,r),s[j]=A,s[Y]=void 0,X[21](ee[1+(r<<1)]&~q)}}),s},Xt.prototype.unparse=function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q;const r=ie(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Et(r),n},Xt.prototype.toJson=function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q;const r=ne(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Et(r),n};const ae=[q,0],oe=K((t=>{const{rep:e}=U(ae,t);X[20](e)}));let ce,le,he,ue,de,pe,me,ye,fe,ge,we,ve,xe,be,_e,Te,Ee,Se,ke,Re,Ae;D[6]=ae,Xt.prototype.createCursor=function(t){var e=this[Y];if(!(e&&$t[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=$t[1+(e<<1)]&~q,{utf8:s,utf16:i,line:n,column:a}=t,o=ce(r,H(s),H(i),H(n),H(a)),c=new.target===Le?this:Object.create(Le.prototype);return Object.defineProperty(c,Y,{writable:!0,value:o}),oe.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){oe.unregister(c),U(ae,o),c[j]=A,c[Y]=void 0,X[20](ae[1+(o<<1)]&~q)}}),c};class Ce{constructor(){throw new Error('"TerminalNode" resource does not define a constructor')}}Ce.prototype[W]=function(t,e,r){const s=Object.getPrototypeOf(this)[W];try{return delete Object.getPrototypeOf(this)[W],r(this,{...e,depth:t,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[W]=s}},Object.defineProperty(Ce.prototype,"id",{get:function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q;return le(e)>>>0}}),Object.defineProperty(Ce.prototype,"kind",{get:function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q;const r=he(e);return l[r]}}),Object.defineProperty(Ce.prototype,"textLength",{get:function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q;const r=ue(e);return{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0}}}),Ce.prototype.children=function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q;const r=de(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+12*t;let r;switch(R(at).getUint8(e+4,!0)){case 0:var a=R(at).getInt32(e+8,!0),o=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Qt.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Qt.unregister(o),U($t,a),o[j]=A,o[Y]=void 0,X[18]($t[1+(a<<1)]&~q)}}),r=o;break;case 1:var c=R(at).getInt32(e+8,!0),l=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(l,Y,{writable:!0,value:c}),Zt.register(l,c,l),Object.defineProperty(l,j,{writable:!0,value:function(){Zt.unregister(l),U(Jt,c),l[j]=A,l[Y]=void 0,X[19](Jt[1+(c<<1)]&~q)}}),r=l}n.push({label:h[R(at).getUint8(e+0,!0)],node:r})}const u=n;return Tt(r),u},Ce.prototype.descendants=function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q,r=pe(e),s=new.target===ir?this:Object.create(ir.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),U(ee,r),s[j]=A,s[Y]=void 0,X[21](ee[1+(r<<1)]&~q)}}),s},Ce.prototype.unparse=function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q;const r=me(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Et(r),n},Ce.prototype.toJson=function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q;const r=ye(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Et(r),n};class Le{constructor(){throw new Error('"Cursor" resource does not define a constructor')}}Le.prototype.reset=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;fe(e)},Le.prototype.complete=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;ge(e)},Le.prototype.isCompleted=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!we(e)},Le.prototype.clone=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=ve(e),s=new.target===Le?this:Object.create(Le.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),U(ae,r),s[j]=A,s[Y]=void 0,X[20](ae[1+(r<<1)]&~q)}}),s},Le.prototype.spawn=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=xe(e),s=new.target===Le?this:Object.create(Le.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),U(ae,r),s[j]=A,s[Y]=void 0,X[20](ae[1+(r<<1)]&~q)}}),s},Object.defineProperty(Le.prototype,"node",{get:function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=be(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Qt.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Qt.unregister(n),U($t,i),n[j]=A,n[Y]=void 0,X[18]($t[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Zt.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Zt.unregister(o),U(Jt,a),o[j]=A,o[Y]=void 0,X[19](Jt[1+(a<<1)]&~q)}}),s=o}return s}}),Object.defineProperty(Le.prototype,"label",{get:function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=_e(e);return h[r]}}),Object.defineProperty(Le.prototype,"textOffset",{get:function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Te(e);return{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0}}}),Object.defineProperty(Le.prototype,"textRange",{get:function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Ee(e);return{start:{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0},end:{utf8:R(at).getInt32(r+16,!0)>>>0,utf16:R(at).getInt32(r+20,!0)>>>0,line:R(at).getInt32(r+24,!0)>>>0,column:R(at).getInt32(r+28,!0)>>>0}}}}),Object.defineProperty(Le.prototype,"depth",{get:function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return Se(e)>>>0}}),Le.prototype.children=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=ke(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+12*t;let r;switch(R(at).getUint8(e+4,!0)){case 0:var a=R(at).getInt32(e+8,!0),o=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Qt.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Qt.unregister(o),U($t,a),o[j]=A,o[Y]=void 0,X[18]($t[1+(a<<1)]&~q)}}),r=o;break;case 1:var c=R(at).getInt32(e+8,!0),l=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(l,Y,{writable:!0,value:c}),Zt.register(l,c,l),Object.defineProperty(l,j,{writable:!0,value:function(){Zt.unregister(l),U(Jt,c),l[j]=A,l[Y]=void 0,X[19](Jt[1+(c<<1)]&~q)}}),r=l}n.push({label:h[R(at).getUint8(e+0,!0)],node:r})}const u=n;return Tt(r),u},Le.prototype.descendants=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=Re(e),s=new.target===ir?this:Object.create(ir.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),U(ee,r),s[j]=A,s[Y]=void 0,X[21](ee[1+(r<<1)]&~q)}}),s},Le.prototype.remainingNodes=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=Ae(e),s=new.target===ir?this:Object.create(ir.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),U(ee,r),s[j]=A,s[Y]=void 0,X[21](ee[1+(r<<1)]&~q)}}),s};const Ie=[q,0],Ke=K((t=>{const{rep:e}=U(Ie,t);X[22](e)}));let Ne,De,Oe,Pe,qe,Fe,Ue,Me,Ye,Ve,je,Be,He,$e,Qe,Ge;D[8]=Ie,Le.prototype.ancestors=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=Ne(e),s=new.target===nr?this:Object.create(nr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Ke.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){Ke.unregister(s),U(Ie,r),s[j]=A,s[Y]=void 0,X[22](Ie[1+(r<<1)]&~q)}}),s},Le.prototype.goToNext=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!De(e)},Le.prototype.goToNextNonDescendant=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Oe(e)},Le.prototype.goToPrevious=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Pe(e)},Le.prototype.goToParent=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!qe(e)},Le.prototype.goToFirstChild=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Fe(e)},Le.prototype.goToLastChild=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Ue(e)},Le.prototype.goToNthChild=function(t){var e=this[Y];if(!(e&&ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q;return!!Me(r,H(t))},Le.prototype.goToNextSibling=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Ye(e)},Le.prototype.goToPreviousSibling=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Ve(e)},Le.prototype.goToNextTerminal=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!je(e)},Le.prototype.goToNextTerminalWithKind=function(t){var e=this[Y];if(!(e&&ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q;return!!Be(r,l[t])},Le.prototype.goToNextTerminalWithKinds=function(t){var e=this[Y];if(!(e&&ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q,s=t,i=s.length,n=St(0,0,2,2*i);for(let t=0;t<s.length;t++){const e=s[t],r=n+2*t;R(at).setInt16(r+0,l[e],!0)}return!!He(r,n,i)},Le.prototype.goToNextNonterminal=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!$e(e)},Le.prototype.goToNextNonterminalWithKind=function(t){var e=this[Y];if(!(e&&ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q;return!!Qe(r,c[t])},Le.prototype.goToNextNonterminalWithKinds=function(t){var e=this[Y];if(!(e&&ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q,s=t,i=s.length,n=St(0,0,1,1*i);for(let t=0;t<s.length;t++){const e=s[t],r=n+1*t;R(at).setInt8(r+0,c[e],!0)}return!!Ge(r,n,i)};const ze=[q,0],We=K((t=>{const{rep:e}=U(ze,t);X[23](e)}));D[9]=ze;const Xe=[q,0],Je=K((t=>{const{rep:e}=U(Xe,t);X[24](e)}));let Ze,tr,er,rr,sr;D[10]=Xe,Le.prototype.query=function(t){var e=this[Y];if(!(e&&ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q,s=t,i=s.length,n=St(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&&ze[1+(a<<1)]&q))throw new TypeError('Resource error: Not a valid "Query" resource.');var o=ze[1+(a<<1)]&~q;R(at).setInt32(e+0,o,!0)}var c=Ze(r,n,i),l=new.target===or?this:Object.create(or.prototype);return Object.defineProperty(l,Y,{writable:!0,value:c}),Je.register(l,c,l),Object.defineProperty(l,j,{writable:!0,value:function(){Je.unregister(l),U(Xe,c),l[j]=A,l[Y]=void 0,X[24](Xe[1+(c<<1)]&~q)}}),l};class ir{constructor(){throw new Error('"CursorIterator" resource does not define a constructor')}}ir.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},ir.prototype.next=function(){var t=this[Y];if(!(t&&ee[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CursorIterator" resource.');var e=ee[1+(t<<1)]&~q;const r=tr(e);let s;if(R(at).getUint8(r+0,!0)){let t;switch(R(at).getUint8(r+8,!0)){case 0:var i=R(at).getInt32(r+12,!0),n=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Qt.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Qt.unregister(n),U($t,i),n[j]=A,n[Y]=void 0,X[18]($t[1+(i<<1)]&~q)}}),t=n;break;case 1:var a=R(at).getInt32(r+12,!0),o=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Zt.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Zt.unregister(o),U(Jt,a),o[j]=A,o[Y]=void 0,X[19](Jt[1+(a<<1)]&~q)}}),t=o}s={label:h[R(at).getUint8(r+4,!0)],node:t}}else s=void 0;return s};class nr{constructor(){throw new Error('"AncestorsIterator" resource does not define a constructor')}}nr.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},nr.prototype.next=function(){var t=this[Y];if(!(t&&Ie[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "AncestorsIterator" resource.');var e=Ie[1+(t<<1)]&~q;const r=er(e);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Qt.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Qt.unregister(n),U($t,i),n[j]=A,n[Y]=void 0,X[18]($t[1+(i<<1)]&~q)}}),s=n}else s=void 0;return s};class ar{constructor(){throw new Error('"Query" resource does not define a constructor')}}ar.create=function(t){var e=z(t,St,at);const r=rr(e,G);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=R(at).getInt32(r+8,!0);s={tag:"err",val:{message:$.decode(new Uint8Array(at.buffer,i,n)),textRange:{start:{utf8:R(at).getInt32(r+12,!0)>>>0,utf16:R(at).getInt32(r+16,!0)>>>0,line:R(at).getInt32(r+20,!0)>>>0,column:R(at).getInt32(r+24,!0)>>>0},end:{utf8:R(at).getInt32(r+28,!0)>>>0,utf16:R(at).getInt32(r+32,!0)>>>0,line:R(at).getInt32(r+36,!0)>>>0,column:R(at).getInt32(r+40,!0)>>>0}}}}}else{var a=R(at).getInt32(r+4,!0),o=new.target===ar?this:Object.create(ar.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),We.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){We.unregister(o),U(ze,a),o[j]=A,o[Y]=void 0,X[23](ze[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(kt(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val};class or{constructor(){throw new Error('"QueryMatchIterator" resource does not define a constructor')}}or.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},or.prototype.next=function(){var t=this[Y];if(!(t&&Xe[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "QueryMatchIterator" resource.');var e=Xe[1+(t<<1)]&~q;const r=sr(e);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+8,!0),n=new.target===Le?this:Object.create(Le.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),oe.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){oe.unregister(n),U(ae,i),n[j]=A,n[Y]=void 0,X[20](ae[1+(i<<1)]&~q)}});var a=R(at).getInt32(r+16,!0),o=R(at).getInt32(r+12,!0),c=[];for(let t=0;t<a;t++){const e=o+16*t;var l=R(at).getInt32(e+0,!0),h=R(at).getInt32(e+4,!0),u=$.decode(new Uint8Array(at.buffer,l,h)),d=R(at).getInt32(e+12,!0),p=R(at).getInt32(e+8,!0),m=[];for(let t=0;t<d;t++){const e=p+4*t;var y=R(at).getInt32(e+0,!0),f=new.target===Le?this:Object.create(Le.prototype);Object.defineProperty(f,Y,{writable:!0,value:y}),oe.register(f,y,f),Object.defineProperty(f,j,{writable:!0,value:function(){oe.unregister(f),U(ae,y),f[j]=A,f[Y]=void 0,X[20](ae[1+(y<<1)]&~q)}}),m.push(f)}c.push([u,m])}s={queryIndex:R(at).getInt32(r+4,!0)>>>0,root:n,captures:c.reduce(((t,e)=>(t[e[0]]=e[1],t)),{})}}else s=void 0;const g=s;return Rt(r),g};var c={};c[c.AbicoderPragma=0]="AbicoderPragma",c[c.AdditiveExpression=1]="AdditiveExpression",c[c.AddressType=2]="AddressType",c[c.AndExpression=3]="AndExpression",c[c.ArgumentsDeclaration=4]="ArgumentsDeclaration",c[c.ArrayExpression=5]="ArrayExpression",c[c.ArrayTypeName=6]="ArrayTypeName",c[c.ArrayValues=7]="ArrayValues",c[c.AssemblyFlags=8]="AssemblyFlags",c[c.AssemblyFlagsDeclaration=9]="AssemblyFlagsDeclaration",c[c.AssemblyStatement=10]="AssemblyStatement",c[c.AssignmentExpression=11]="AssignmentExpression",c[c.BitwiseAndExpression=12]="BitwiseAndExpression",c[c.BitwiseOrExpression=13]="BitwiseOrExpression",c[c.BitwiseXorExpression=14]="BitwiseXorExpression",c[c.Block=15]="Block",c[c.BreakStatement=16]="BreakStatement",c[c.CallOptions=17]="CallOptions",c[c.CallOptionsExpression=18]="CallOptionsExpression",c[c.CatchClause=19]="CatchClause",c[c.CatchClauseError=20]="CatchClauseError",c[c.CatchClauses=21]="CatchClauses",c[c.ConditionalExpression=22]="ConditionalExpression",c[c.ConstantDefinition=23]="ConstantDefinition",c[c.ConstructorAttribute=24]="ConstructorAttribute",c[c.ConstructorAttributes=25]="ConstructorAttributes",c[c.ConstructorDefinition=26]="ConstructorDefinition",c[c.ContinueStatement=27]="ContinueStatement",c[c.ContractDefinition=28]="ContractDefinition",c[c.ContractMember=29]="ContractMember",c[c.ContractMembers=30]="ContractMembers",c[c.DecimalNumberExpression=31]="DecimalNumberExpression",c[c.DoWhileStatement=32]="DoWhileStatement",c[c.ElementaryType=33]="ElementaryType",c[c.ElseBranch=34]="ElseBranch",c[c.EmitStatement=35]="EmitStatement",c[c.EnumDefinition=36]="EnumDefinition",c[c.EnumMembers=37]="EnumMembers",c[c.EqualityExpression=38]="EqualityExpression",c[c.ErrorDefinition=39]="ErrorDefinition",c[c.ErrorParameter=40]="ErrorParameter",c[c.ErrorParameters=41]="ErrorParameters",c[c.ErrorParametersDeclaration=42]="ErrorParametersDeclaration",c[c.EventDefinition=43]="EventDefinition",c[c.EventParameter=44]="EventParameter",c[c.EventParameters=45]="EventParameters",c[c.EventParametersDeclaration=46]="EventParametersDeclaration",c[c.ExperimentalFeature=47]="ExperimentalFeature",c[c.ExperimentalPragma=48]="ExperimentalPragma",c[c.ExponentiationExpression=49]="ExponentiationExpression",c[c.Expression=50]="Expression",c[c.ExpressionStatement=51]="ExpressionStatement",c[c.FallbackFunctionAttribute=52]="FallbackFunctionAttribute",c[c.FallbackFunctionAttributes=53]="FallbackFunctionAttributes",c[c.FallbackFunctionDefinition=54]="FallbackFunctionDefinition",c[c.ForStatement=55]="ForStatement",c[c.ForStatementCondition=56]="ForStatementCondition",c[c.ForStatementInitialization=57]="ForStatementInitialization",c[c.FunctionAttribute=58]="FunctionAttribute",c[c.FunctionAttributes=59]="FunctionAttributes",c[c.FunctionBody=60]="FunctionBody",c[c.FunctionCallExpression=61]="FunctionCallExpression",c[c.FunctionDefinition=62]="FunctionDefinition",c[c.FunctionName=63]="FunctionName",c[c.FunctionType=64]="FunctionType",c[c.FunctionTypeAttribute=65]="FunctionTypeAttribute",c[c.FunctionTypeAttributes=66]="FunctionTypeAttributes",c[c.HexNumberExpression=67]="HexNumberExpression",c[c.HexStringLiteral=68]="HexStringLiteral",c[c.HexStringLiterals=69]="HexStringLiterals",c[c.IdentifierPath=70]="IdentifierPath",c[c.IfStatement=71]="IfStatement",c[c.ImportAlias=72]="ImportAlias",c[c.ImportClause=73]="ImportClause",c[c.ImportDeconstruction=74]="ImportDeconstruction",c[c.ImportDeconstructionSymbol=75]="ImportDeconstructionSymbol",c[c.ImportDeconstructionSymbols=76]="ImportDeconstructionSymbols",c[c.ImportDirective=77]="ImportDirective",c[c.IndexAccessEnd=78]="IndexAccessEnd",c[c.IndexAccessExpression=79]="IndexAccessExpression",c[c.InequalityExpression=80]="InequalityExpression",c[c.InheritanceSpecifier=81]="InheritanceSpecifier",c[c.InheritanceType=82]="InheritanceType",c[c.InheritanceTypes=83]="InheritanceTypes",c[c.InterfaceDefinition=84]="InterfaceDefinition",c[c.InterfaceMembers=85]="InterfaceMembers",c[c.LibraryDefinition=86]="LibraryDefinition",c[c.LibraryMembers=87]="LibraryMembers",c[c.MappingKey=88]="MappingKey",c[c.MappingKeyType=89]="MappingKeyType",c[c.MappingType=90]="MappingType",c[c.MappingValue=91]="MappingValue",c[c.MemberAccessExpression=92]="MemberAccessExpression",c[c.ModifierAttribute=93]="ModifierAttribute",c[c.ModifierAttributes=94]="ModifierAttributes",c[c.ModifierDefinition=95]="ModifierDefinition",c[c.ModifierInvocation=96]="ModifierInvocation",c[c.MultiplicativeExpression=97]="MultiplicativeExpression",c[c.NamedArgument=98]="NamedArgument",c[c.NamedArgumentGroup=99]="NamedArgumentGroup",c[c.NamedArguments=100]="NamedArguments",c[c.NamedArgumentsDeclaration=101]="NamedArgumentsDeclaration",c[c.NamedImport=102]="NamedImport",c[c.NewExpression=103]="NewExpression",c[c.NumberUnit=104]="NumberUnit",c[c.OrExpression=105]="OrExpression",c[c.OverridePaths=106]="OverridePaths",c[c.OverridePathsDeclaration=107]="OverridePathsDeclaration",c[c.OverrideSpecifier=108]="OverrideSpecifier",c[c.Parameter=109]="Parameter",c[c.Parameters=110]="Parameters",c[c.ParametersDeclaration=111]="ParametersDeclaration",c[c.PathImport=112]="PathImport",c[c.PositionalArguments=113]="PositionalArguments",c[c.PositionalArgumentsDeclaration=114]="PositionalArgumentsDeclaration",c[c.PostfixExpression=115]="PostfixExpression",c[c.Pragma=116]="Pragma",c[c.PragmaDirective=117]="PragmaDirective",c[c.PrefixExpression=118]="PrefixExpression",c[c.ReceiveFunctionAttribute=119]="ReceiveFunctionAttribute",c[c.ReceiveFunctionAttributes=120]="ReceiveFunctionAttributes",c[c.ReceiveFunctionDefinition=121]="ReceiveFunctionDefinition",c[c.ReturnStatement=122]="ReturnStatement",c[c.ReturnsDeclaration=123]="ReturnsDeclaration",c[c.RevertStatement=124]="RevertStatement",c[c.ShiftExpression=125]="ShiftExpression",c[c.SimpleVersionLiteral=126]="SimpleVersionLiteral",c[c.SourceUnit=127]="SourceUnit",c[c.SourceUnitMember=128]="SourceUnitMember",c[c.SourceUnitMembers=129]="SourceUnitMembers",c[c.StateVariableAttribute=130]="StateVariableAttribute",c[c.StateVariableAttributes=131]="StateVariableAttributes",c[c.StateVariableDefinition=132]="StateVariableDefinition",c[c.StateVariableDefinitionValue=133]="StateVariableDefinitionValue",c[c.Statement=134]="Statement",c[c.Statements=135]="Statements",c[c.StorageLocation=136]="StorageLocation",c[c.StringExpression=137]="StringExpression",c[c.StringLiteral=138]="StringLiteral",c[c.StringLiterals=139]="StringLiterals",c[c.StructDefinition=140]="StructDefinition",c[c.StructMember=141]="StructMember",c[c.StructMembers=142]="StructMembers",c[c.ThrowStatement=143]="ThrowStatement",c[c.TryStatement=144]="TryStatement",c[c.TupleDeconstructionElement=145]="TupleDeconstructionElement",c[c.TupleDeconstructionElements=146]="TupleDeconstructionElements",c[c.TupleDeconstructionStatement=147]="TupleDeconstructionStatement",c[c.TupleExpression=148]="TupleExpression",c[c.TupleMember=149]="TupleMember",c[c.TupleValue=150]="TupleValue",c[c.TupleValues=151]="TupleValues",c[c.TypeExpression=152]="TypeExpression",c[c.TypeName=153]="TypeName",c[c.TypedTupleMember=154]="TypedTupleMember",c[c.UncheckedBlock=155]="UncheckedBlock",c[c.UnicodeStringLiteral=156]="UnicodeStringLiteral",c[c.UnicodeStringLiterals=157]="UnicodeStringLiterals",c[c.UnnamedFunctionAttribute=158]="UnnamedFunctionAttribute",c[c.UnnamedFunctionAttributes=159]="UnnamedFunctionAttributes",c[c.UnnamedFunctionDefinition=160]="UnnamedFunctionDefinition",c[c.UntypedTupleMember=161]="UntypedTupleMember",c[c.UserDefinedValueTypeDefinition=162]="UserDefinedValueTypeDefinition",c[c.UsingAlias=163]="UsingAlias",c[c.UsingClause=164]="UsingClause",c[c.UsingDeconstruction=165]="UsingDeconstruction",c[c.UsingDeconstructionSymbol=166]="UsingDeconstructionSymbol",c[c.UsingDeconstructionSymbols=167]="UsingDeconstructionSymbols",c[c.UsingDirective=168]="UsingDirective",c[c.UsingOperator=169]="UsingOperator",c[c.UsingTarget=170]="UsingTarget",c[c.VariableDeclarationStatement=171]="VariableDeclarationStatement",c[c.VariableDeclarationType=172]="VariableDeclarationType",c[c.VariableDeclarationValue=173]="VariableDeclarationValue",c[c.VersionExpression=174]="VersionExpression",c[c.VersionExpressionSet=175]="VersionExpressionSet",c[c.VersionExpressionSets=176]="VersionExpressionSets",c[c.VersionLiteral=177]="VersionLiteral",c[c.VersionOperator=178]="VersionOperator",c[c.VersionPragma=179]="VersionPragma",c[c.VersionRange=180]="VersionRange",c[c.VersionTerm=181]="VersionTerm",c[c.WhileStatement=182]="WhileStatement",c[c.YulArguments=183]="YulArguments",c[c.YulAssignmentOperator=184]="YulAssignmentOperator",c[c.YulBlock=185]="YulBlock",c[c.YulBreakStatement=186]="YulBreakStatement",c[c.YulColonAndEqual=187]="YulColonAndEqual",c[c.YulContinueStatement=188]="YulContinueStatement",c[c.YulDefaultCase=189]="YulDefaultCase",c[c.YulEqualAndColon=190]="YulEqualAndColon",c[c.YulExpression=191]="YulExpression",c[c.YulForStatement=192]="YulForStatement",c[c.YulFunctionCallExpression=193]="YulFunctionCallExpression",c[c.YulFunctionDefinition=194]="YulFunctionDefinition",c[c.YulIfStatement=195]="YulIfStatement",c[c.YulLabel=196]="YulLabel",c[c.YulLeaveStatement=197]="YulLeaveStatement",c[c.YulLiteral=198]="YulLiteral",c[c.YulParameters=199]="YulParameters",c[c.YulParametersDeclaration=200]="YulParametersDeclaration",c[c.YulPath=201]="YulPath",c[c.YulPaths=202]="YulPaths",c[c.YulReturnsDeclaration=203]="YulReturnsDeclaration",c[c.YulStackAssignmentOperator=204]="YulStackAssignmentOperator",c[c.YulStackAssignmentStatement=205]="YulStackAssignmentStatement",c[c.YulStatement=206]="YulStatement",c[c.YulStatements=207]="YulStatements",c[c.YulSwitchCase=208]="YulSwitchCase",c[c.YulSwitchCases=209]="YulSwitchCases",c[c.YulSwitchStatement=210]="YulSwitchStatement",c[c.YulValueCase=211]="YulValueCase",c[c.YulVariableAssignmentStatement=212]="YulVariableAssignmentStatement",c[c.YulVariableDeclarationStatement=213]="YulVariableDeclarationStatement",c[c.YulVariableDeclarationValue=214]="YulVariableDeclarationValue",c[c.YulVariableNames=215]="YulVariableNames";var l={};l[l.Unrecognized=0]="Unrecognized",l[l.Missing=1]="Missing",l[l.AbicoderKeyword=2]="AbicoderKeyword",l[l.AbstractKeyword=3]="AbstractKeyword",l[l.AddressKeyword=4]="AddressKeyword",l[l.AfterKeyword=5]="AfterKeyword",l[l.AliasKeyword=6]="AliasKeyword",l[l.Ampersand=7]="Ampersand",l[l.AmpersandAmpersand=8]="AmpersandAmpersand",l[l.AmpersandEqual=9]="AmpersandEqual",l[l.AnonymousKeyword=10]="AnonymousKeyword",l[l.ApplyKeyword=11]="ApplyKeyword",l[l.AsKeyword=12]="AsKeyword",l[l.AssemblyKeyword=13]="AssemblyKeyword",l[l.Asterisk=14]="Asterisk",l[l.AsteriskAsterisk=15]="AsteriskAsterisk",l[l.AsteriskEqual=16]="AsteriskEqual",l[l.AutoKeyword=17]="AutoKeyword",l[l.Bang=18]="Bang",l[l.BangEqual=19]="BangEqual",l[l.Bar=20]="Bar",l[l.BarBar=21]="BarBar",l[l.BarEqual=22]="BarEqual",l[l.BoolKeyword=23]="BoolKeyword",l[l.BreakKeyword=24]="BreakKeyword",l[l.ByteKeyword=25]="ByteKeyword",l[l.BytesKeyword=26]="BytesKeyword",l[l.CallDataKeyword=27]="CallDataKeyword",l[l.Caret=28]="Caret",l[l.CaretEqual=29]="CaretEqual",l[l.CaseKeyword=30]="CaseKeyword",l[l.CatchKeyword=31]="CatchKeyword",l[l.CloseBrace=32]="CloseBrace",l[l.CloseBracket=33]="CloseBracket",l[l.CloseParen=34]="CloseParen",l[l.Colon=35]="Colon",l[l.ColonEqual=36]="ColonEqual",l[l.Comma=37]="Comma",l[l.ConstantKeyword=38]="ConstantKeyword",l[l.ConstructorKeyword=39]="ConstructorKeyword",l[l.ContinueKeyword=40]="ContinueKeyword",l[l.ContractKeyword=41]="ContractKeyword",l[l.CopyOfKeyword=42]="CopyOfKeyword",l[l.DaysKeyword=43]="DaysKeyword",l[l.DecimalLiteral=44]="DecimalLiteral",l[l.DefaultKeyword=45]="DefaultKeyword",l[l.DefineKeyword=46]="DefineKeyword",l[l.DeleteKeyword=47]="DeleteKeyword",l[l.DoKeyword=48]="DoKeyword",l[l.DoubleQuotedHexStringLiteral=49]="DoubleQuotedHexStringLiteral",l[l.DoubleQuotedStringLiteral=50]="DoubleQuotedStringLiteral",l[l.DoubleQuotedUnicodeStringLiteral=51]="DoubleQuotedUnicodeStringLiteral",l[l.DoubleQuotedVersionLiteral=52]="DoubleQuotedVersionLiteral",l[l.ElseKeyword=53]="ElseKeyword",l[l.EmitKeyword=54]="EmitKeyword",l[l.EndOfLine=55]="EndOfLine",l[l.EnumKeyword=56]="EnumKeyword",l[l.Equal=57]="Equal",l[l.EqualColon=58]="EqualColon",l[l.EqualEqual=59]="EqualEqual",l[l.EqualGreaterThan=60]="EqualGreaterThan",l[l.ErrorKeyword=61]="ErrorKeyword",l[l.EtherKeyword=62]="EtherKeyword",l[l.EventKeyword=63]="EventKeyword",l[l.ExperimentalKeyword=64]="ExperimentalKeyword",l[l.ExternalKeyword=65]="ExternalKeyword",l[l.FallbackKeyword=66]="FallbackKeyword",l[l.FalseKeyword=67]="FalseKeyword",l[l.FinalKeyword=68]="FinalKeyword",l[l.FinneyKeyword=69]="FinneyKeyword",l[l.FixedKeyword=70]="FixedKeyword",l[l.ForKeyword=71]="ForKeyword",l[l.FromKeyword=72]="FromKeyword",l[l.FunctionKeyword=73]="FunctionKeyword",l[l.GlobalKeyword=74]="GlobalKeyword",l[l.GreaterThan=75]="GreaterThan",l[l.GreaterThanEqual=76]="GreaterThanEqual",l[l.GreaterThanGreaterThan=77]="GreaterThanGreaterThan",l[l.GreaterThanGreaterThanEqual=78]="GreaterThanGreaterThanEqual",l[l.GreaterThanGreaterThanGreaterThan=79]="GreaterThanGreaterThanGreaterThan",l[l.GreaterThanGreaterThanGreaterThanEqual=80]="GreaterThanGreaterThanGreaterThanEqual",l[l.GweiKeyword=81]="GweiKeyword",l[l.HexKeyword=82]="HexKeyword",l[l.HexLiteral=83]="HexLiteral",l[l.HoursKeyword=84]="HoursKeyword",l[l.Identifier=85]="Identifier",l[l.IfKeyword=86]="IfKeyword",l[l.ImmutableKeyword=87]="ImmutableKeyword",l[l.ImplementsKeyword=88]="ImplementsKeyword",l[l.ImportKeyword=89]="ImportKeyword",l[l.InKeyword=90]="InKeyword",l[l.IndexedKeyword=91]="IndexedKeyword",l[l.InlineKeyword=92]="InlineKeyword",l[l.IntKeyword=93]="IntKeyword",l[l.InterfaceKeyword=94]="InterfaceKeyword",l[l.InternalKeyword=95]="InternalKeyword",l[l.IsKeyword=96]="IsKeyword",l[l.LessThan=97]="LessThan",l[l.LessThanEqual=98]="LessThanEqual",l[l.LessThanLessThan=99]="LessThanLessThan",l[l.LessThanLessThanEqual=100]="LessThanLessThanEqual",l[l.LetKeyword=101]="LetKeyword",l[l.LibraryKeyword=102]="LibraryKeyword",l[l.MacroKeyword=103]="MacroKeyword",l[l.MappingKeyword=104]="MappingKeyword",l[l.MatchKeyword=105]="MatchKeyword",l[l.MemoryKeyword=106]="MemoryKeyword",l[l.Minus=107]="Minus",l[l.MinusEqual=108]="MinusEqual",l[l.MinusGreaterThan=109]="MinusGreaterThan",l[l.MinusMinus=110]="MinusMinus",l[l.MinutesKeyword=111]="MinutesKeyword",l[l.ModifierKeyword=112]="ModifierKeyword",l[l.MultiLineComment=113]="MultiLineComment",l[l.MultiLineNatSpecComment=114]="MultiLineNatSpecComment",l[l.MutableKeyword=115]="MutableKeyword",l[l.NewKeyword=116]="NewKeyword",l[l.NullKeyword=117]="NullKeyword",l[l.OfKeyword=118]="OfKeyword",l[l.OpenBrace=119]="OpenBrace",l[l.OpenBracket=120]="OpenBracket",l[l.OpenParen=121]="OpenParen",l[l.OverrideKeyword=122]="OverrideKeyword",l[l.PartialKeyword=123]="PartialKeyword",l[l.PayableKeyword=124]="PayableKeyword",l[l.Percent=125]="Percent",l[l.PercentEqual=126]="PercentEqual",l[l.Period=127]="Period",l[l.Plus=128]="Plus",l[l.PlusEqual=129]="PlusEqual",l[l.PlusPlus=130]="PlusPlus",l[l.PragmaKeyword=131]="PragmaKeyword",l[l.PrivateKeyword=132]="PrivateKeyword",l[l.PromiseKeyword=133]="PromiseKeyword",l[l.PublicKeyword=134]="PublicKeyword",l[l.PureKeyword=135]="PureKeyword",l[l.QuestionMark=136]="QuestionMark",l[l.ReceiveKeyword=137]="ReceiveKeyword",l[l.ReferenceKeyword=138]="ReferenceKeyword",l[l.RelocatableKeyword=139]="RelocatableKeyword",l[l.ReturnKeyword=140]="ReturnKeyword",l[l.ReturnsKeyword=141]="ReturnsKeyword",l[l.RevertKeyword=142]="RevertKeyword",l[l.SealedKeyword=143]="SealedKeyword",l[l.SecondsKeyword=144]="SecondsKeyword",l[l.Semicolon=145]="Semicolon",l[l.SingleLineComment=146]="SingleLineComment",l[l.SingleLineNatSpecComment=147]="SingleLineNatSpecComment",l[l.SingleQuotedHexStringLiteral=148]="SingleQuotedHexStringLiteral",l[l.SingleQuotedStringLiteral=149]="SingleQuotedStringLiteral",l[l.SingleQuotedUnicodeStringLiteral=150]="SingleQuotedUnicodeStringLiteral",l[l.SingleQuotedVersionLiteral=151]="SingleQuotedVersionLiteral",l[l.SizeOfKeyword=152]="SizeOfKeyword",l[l.Slash=153]="Slash",l[l.SlashEqual=154]="SlashEqual",l[l.SolidityKeyword=155]="SolidityKeyword",l[l.StaticKeyword=156]="StaticKeyword",l[l.StorageKeyword=157]="StorageKeyword",l[l.StringKeyword=158]="StringKeyword",l[l.StructKeyword=159]="StructKeyword",l[l.SuperKeyword=160]="SuperKeyword",l[l.SupportsKeyword=161]="SupportsKeyword",l[l.SwitchKeyword=162]="SwitchKeyword",l[l.SzaboKeyword=163]="SzaboKeyword",l[l.ThisKeyword=164]="ThisKeyword",l[l.ThrowKeyword=165]="ThrowKeyword",l[l.Tilde=166]="Tilde",l[l.TransientKeyword=167]="TransientKeyword",l[l.TrueKeyword=168]="TrueKeyword",l[l.TryKeyword=169]="TryKeyword",l[l.TypeDefKeyword=170]="TypeDefKeyword",l[l.TypeKeyword=171]="TypeKeyword",l[l.TypeOfKeyword=172]="TypeOfKeyword",l[l.UfixedKeyword=173]="UfixedKeyword",l[l.UintKeyword=174]="UintKeyword",l[l.UncheckedKeyword=175]="UncheckedKeyword",l[l.UsingKeyword=176]="UsingKeyword",l[l.VarKeyword=177]="VarKeyword",l[l.VersionSpecifier=178]="VersionSpecifier",l[l.ViewKeyword=179]="ViewKeyword",l[l.VirtualKeyword=180]="VirtualKeyword",l[l.WeeksKeyword=181]="WeeksKeyword",l[l.WeiKeyword=182]="WeiKeyword",l[l.WhileKeyword=183]="WhileKeyword",l[l.Whitespace=184]="Whitespace",l[l.YearsKeyword=185]="YearsKeyword",l[l.YulAbstractKeyword=186]="YulAbstractKeyword",l[l.YulAfterKeyword=187]="YulAfterKeyword",l[l.YulAliasKeyword=188]="YulAliasKeyword",l[l.YulAnonymousKeyword=189]="YulAnonymousKeyword",l[l.YulApplyKeyword=190]="YulApplyKeyword",l[l.YulAsKeyword=191]="YulAsKeyword",l[l.YulAssemblyKeyword=192]="YulAssemblyKeyword",l[l.YulAutoKeyword=193]="YulAutoKeyword",l[l.YulBoolKeyword=194]="YulBoolKeyword",l[l.YulBreakKeyword=195]="YulBreakKeyword",l[l.YulBytesKeyword=196]="YulBytesKeyword",l[l.YulCallDataKeyword=197]="YulCallDataKeyword",l[l.YulCaseKeyword=198]="YulCaseKeyword",l[l.YulCatchKeyword=199]="YulCatchKeyword",l[l.YulConstantKeyword=200]="YulConstantKeyword",l[l.YulConstructorKeyword=201]="YulConstructorKeyword",l[l.YulContinueKeyword=202]="YulContinueKeyword",l[l.YulContractKeyword=203]="YulContractKeyword",l[l.YulCopyOfKeyword=204]="YulCopyOfKeyword",l[l.YulDaysKeyword=205]="YulDaysKeyword",l[l.YulDecimalLiteral=206]="YulDecimalLiteral",l[l.YulDefaultKeyword=207]="YulDefaultKeyword",l[l.YulDefineKeyword=208]="YulDefineKeyword",l[l.YulDeleteKeyword=209]="YulDeleteKeyword",l[l.YulDoKeyword=210]="YulDoKeyword",l[l.YulElseKeyword=211]="YulElseKeyword",l[l.YulEmitKeyword=212]="YulEmitKeyword",l[l.YulEnumKeyword=213]="YulEnumKeyword",l[l.YulEtherKeyword=214]="YulEtherKeyword",l[l.YulEventKeyword=215]="YulEventKeyword",l[l.YulExternalKeyword=216]="YulExternalKeyword",l[l.YulFallbackKeyword=217]="YulFallbackKeyword",l[l.YulFalseKeyword=218]="YulFalseKeyword",l[l.YulFinalKeyword=219]="YulFinalKeyword",l[l.YulFinneyKeyword=220]="YulFinneyKeyword",l[l.YulFixedKeyword=221]="YulFixedKeyword",l[l.YulForKeyword=222]="YulForKeyword",l[l.YulFunctionKeyword=223]="YulFunctionKeyword",l[l.YulGweiKeyword=224]="YulGweiKeyword",l[l.YulHexKeyword=225]="YulHexKeyword",l[l.YulHexLiteral=226]="YulHexLiteral",l[l.YulHoursKeyword=227]="YulHoursKeyword",l[l.YulIdentifier=228]="YulIdentifier",l[l.YulIfKeyword=229]="YulIfKeyword",l[l.YulImmutableKeyword=230]="YulImmutableKeyword",l[l.YulImplementsKeyword=231]="YulImplementsKeyword",l[l.YulImportKeyword=232]="YulImportKeyword",l[l.YulInKeyword=233]="YulInKeyword",l[l.YulIndexedKeyword=234]="YulIndexedKeyword",l[l.YulInlineKeyword=235]="YulInlineKeyword",l[l.YulIntKeyword=236]="YulIntKeyword",l[l.YulInterfaceKeyword=237]="YulInterfaceKeyword",l[l.YulInternalKeyword=238]="YulInternalKeyword",l[l.YulIsKeyword=239]="YulIsKeyword",l[l.YulLeaveKeyword=240]="YulLeaveKeyword",l[l.YulLetKeyword=241]="YulLetKeyword",l[l.YulLibraryKeyword=242]="YulLibraryKeyword",l[l.YulMacroKeyword=243]="YulMacroKeyword",l[l.YulMappingKeyword=244]="YulMappingKeyword",l[l.YulMatchKeyword=245]="YulMatchKeyword",l[l.YulMemoryKeyword=246]="YulMemoryKeyword",l[l.YulMinutesKeyword=247]="YulMinutesKeyword",l[l.YulModifierKeyword=248]="YulModifierKeyword",l[l.YulMutableKeyword=249]="YulMutableKeyword",l[l.YulNewKeyword=250]="YulNewKeyword",l[l.YulNullKeyword=251]="YulNullKeyword",l[l.YulOfKeyword=252]="YulOfKeyword",l[l.YulOverrideKeyword=253]="YulOverrideKeyword",l[l.YulPartialKeyword=254]="YulPartialKeyword",l[l.YulPayableKeyword=255]="YulPayableKeyword",l[l.YulPragmaKeyword=256]="YulPragmaKeyword",l[l.YulPrivateKeyword=257]="YulPrivateKeyword",l[l.YulPromiseKeyword=258]="YulPromiseKeyword",l[l.YulPublicKeyword=259]="YulPublicKeyword",l[l.YulPureKeyword=260]="YulPureKeyword",l[l.YulReceiveKeyword=261]="YulReceiveKeyword",l[l.YulReferenceKeyword=262]="YulReferenceKeyword",l[l.YulRelocatableKeyword=263]="YulRelocatableKeyword",l[l.YulReturnsKeyword=264]="YulReturnsKeyword",l[l.YulSealedKeyword=265]="YulSealedKeyword",l[l.YulSecondsKeyword=266]="YulSecondsKeyword",l[l.YulSizeOfKeyword=267]="YulSizeOfKeyword",l[l.YulStaticKeyword=268]="YulStaticKeyword",l[l.YulStorageKeyword=269]="YulStorageKeyword",l[l.YulStringKeyword=270]="YulStringKeyword",l[l.YulStructKeyword=271]="YulStructKeyword",l[l.YulSuperKeyword=272]="YulSuperKeyword",l[l.YulSupportsKeyword=273]="YulSupportsKeyword",l[l.YulSwitchKeyword=274]="YulSwitchKeyword",l[l.YulSzaboKeyword=275]="YulSzaboKeyword",l[l.YulThisKeyword=276]="YulThisKeyword",l[l.YulThrowKeyword=277]="YulThrowKeyword",l[l.YulTrueKeyword=278]="YulTrueKeyword",l[l.YulTryKeyword=279]="YulTryKeyword",l[l.YulTypeDefKeyword=280]="YulTypeDefKeyword",l[l.YulTypeKeyword=281]="YulTypeKeyword",l[l.YulTypeOfKeyword=282]="YulTypeOfKeyword",l[l.YulUfixedKeyword=283]="YulUfixedKeyword",l[l.YulUintKeyword=284]="YulUintKeyword",l[l.YulUncheckedKeyword=285]="YulUncheckedKeyword",l[l.YulUsingKeyword=286]="YulUsingKeyword",l[l.YulVarKeyword=287]="YulVarKeyword",l[l.YulViewKeyword=288]="YulViewKeyword",l[l.YulVirtualKeyword=289]="YulVirtualKeyword",l[l.YulWeeksKeyword=290]="YulWeeksKeyword",l[l.YulWeiKeyword=291]="YulWeiKeyword",l[l.YulWhileKeyword=292]="YulWhileKeyword",l[l.YulYearsKeyword=293]="YulYearsKeyword";var h={};h[h.Root=0]="Root",h[h.Unrecognized=1]="Unrecognized",h[h.Missing=2]="Missing",h[h.Item=3]="Item",h[h.Variant=4]="Variant",h[h.Separator=5]="Separator",h[h.Operand=6]="Operand",h[h.LeftOperand=7]="LeftOperand",h[h.RightOperand=8]="RightOperand",h[h.LeadingTrivia=9]="LeadingTrivia",h[h.TrailingTrivia=10]="TrailingTrivia",h[h.AbicoderKeyword=11]="AbicoderKeyword",h[h.AbstractKeyword=12]="AbstractKeyword",h[h.AddressKeyword=13]="AddressKeyword",h[h.Alias=14]="Alias",h[h.AnonymousKeyword=15]="AnonymousKeyword",h[h.Arguments=16]="Arguments",h[h.AsKeyword=17]="AsKeyword",h[h.AssemblyKeyword=18]="AssemblyKeyword",h[h.Assignment=19]="Assignment",h[h.Asterisk=20]="Asterisk",h[h.Attributes=21]="Attributes",h[h.Block=22]="Block",h[h.Body=23]="Body",h[h.BreakKeyword=24]="BreakKeyword",h[h.CaseKeyword=25]="CaseKeyword",h[h.Cases=26]="Cases",h[h.CatchClauses=27]="CatchClauses",h[h.CatchKeyword=28]="CatchKeyword",h[h.Clause=29]="Clause",h[h.CloseBrace=30]="CloseBrace",h[h.CloseBracket=31]="CloseBracket",h[h.CloseParen=32]="CloseParen",h[h.Colon=33]="Colon",h[h.Condition=34]="Condition",h[h.ConstantKeyword=35]="ConstantKeyword",h[h.ConstructorKeyword=36]="ConstructorKeyword",h[h.ContinueKeyword=37]="ContinueKeyword",h[h.ContractKeyword=38]="ContractKeyword",h[h.DefaultKeyword=39]="DefaultKeyword",h[h.DoKeyword=40]="DoKeyword",h[h.Elements=41]="Elements",h[h.ElseBranch=42]="ElseBranch",h[h.ElseKeyword=43]="ElseKeyword",h[h.EmitKeyword=44]="EmitKeyword",h[h.End=45]="End",h[h.EnumKeyword=46]="EnumKeyword",h[h.Equal=47]="Equal",h[h.EqualGreaterThan=48]="EqualGreaterThan",h[h.Error=49]="Error",h[h.ErrorKeyword=50]="ErrorKeyword",h[h.Event=51]="Event",h[h.EventKeyword=52]="EventKeyword",h[h.ExperimentalKeyword=53]="ExperimentalKeyword",h[h.Expression=54]="Expression",h[h.FallbackKeyword=55]="FallbackKeyword",h[h.FalseExpression=56]="FalseExpression",h[h.Feature=57]="Feature",h[h.Flags=58]="Flags",h[h.ForKeyword=59]="ForKeyword",h[h.FromKeyword=60]="FromKeyword",h[h.FunctionKeyword=61]="FunctionKeyword",h[h.GlobalKeyword=62]="GlobalKeyword",h[h.Identifier=63]="Identifier",h[h.IfKeyword=64]="IfKeyword",h[h.ImportKeyword=65]="ImportKeyword",h[h.Index=66]="Index",h[h.IndexedKeyword=67]="IndexedKeyword",h[h.Inheritance=68]="Inheritance",h[h.Initialization=69]="Initialization",h[h.InterfaceKeyword=70]="InterfaceKeyword",h[h.IsKeyword=71]="IsKeyword",h[h.Items=72]="Items",h[h.Iterator=73]="Iterator",h[h.KeyType=74]="KeyType",h[h.Label=75]="Label",h[h.LeaveKeyword=76]="LeaveKeyword",h[h.LetKeyword=77]="LetKeyword",h[h.LibraryKeyword=78]="LibraryKeyword",h[h.Literal=79]="Literal",h[h.MappingKeyword=80]="MappingKeyword",h[h.Member=81]="Member",h[h.Members=82]="Members",h[h.Minus=83]="Minus",h[h.MinusGreaterThan=84]="MinusGreaterThan",h[h.ModifierKeyword=85]="ModifierKeyword",h[h.Name=86]="Name",h[h.NewKeyword=87]="NewKeyword",h[h.OpenBrace=88]="OpenBrace",h[h.OpenBracket=89]="OpenBracket",h[h.OpenParen=90]="OpenParen",h[h.Operator=91]="Operator",h[h.Options=92]="Options",h[h.Overridden=93]="Overridden",h[h.OverrideKeyword=94]="OverrideKeyword",h[h.Parameters=95]="Parameters",h[h.Path=96]="Path",h[h.Paths=97]="Paths",h[h.PayableKeyword=98]="PayableKeyword",h[h.Period=99]="Period",h[h.Pragma=100]="Pragma",h[h.PragmaKeyword=101]="PragmaKeyword",h[h.QuestionMark=102]="QuestionMark",h[h.ReceiveKeyword=103]="ReceiveKeyword",h[h.ReturnKeyword=104]="ReturnKeyword",h[h.Returns=105]="Returns",h[h.ReturnsKeyword=106]="ReturnsKeyword",h[h.RevertKeyword=107]="RevertKeyword",h[h.Semicolon=108]="Semicolon",h[h.Sets=109]="Sets",h[h.SolidityKeyword=110]="SolidityKeyword",h[h.Start=111]="Start",h[h.Statements=112]="Statements",h[h.StorageLocation=113]="StorageLocation",h[h.StructKeyword=114]="StructKeyword",h[h.SwitchKeyword=115]="SwitchKeyword",h[h.Symbols=116]="Symbols",h[h.Target=117]="Target",h[h.ThrowKeyword=118]="ThrowKeyword",h[h.TrueExpression=119]="TrueExpression",h[h.TryKeyword=120]="TryKeyword",h[h.TypeKeyword=121]="TypeKeyword",h[h.TypeName=122]="TypeName",h[h.Types=123]="Types",h[h.UncheckedKeyword=124]="UncheckedKeyword",h[h.Unit=125]="Unit",h[h.UsingKeyword=126]="UsingKeyword",h[h.Value=127]="Value",h[h.ValueType=128]="ValueType",h[h.VarKeyword=129]="VarKeyword",h[h.Variable=130]="Variable",h[h.VariableType=131]="VariableType",h[h.Variables=132]="Variables",h[h.Version=133]="Version",h[h.WhileKeyword=134]="WhileKeyword";var u={};let cr,lr,hr,ur;u.NonterminalNode="NonterminalNode",Object.defineProperty(Xt.prototype,"type",{get:function(){return u.NonterminalNode}}),Xt.prototype.asNonterminalNode=function(){return this},Xt.prototype.isNonterminalNode=function(){return!0},Xt.prototype.asTerminalNode=function(){},Xt.prototype.isTerminalNode=function(){return!1},u.TerminalNode="TerminalNode",Object.defineProperty(Ce.prototype,"type",{get:function(){return u.TerminalNode}}),Ce.prototype.asTerminalNode=function(){return this},Ce.prototype.isTerminalNode=function(){return!0},Ce.prototype.asNonterminalNode=function(){},Ce.prototype.isNonterminalNode=function(){return!1};class dr{constructor(){throw new Error('"Selectors" resource does not define a constructor')}}dr.sequence=function(t){var e=t[Y];if(!(e&&$t[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=$t[1+(e<<1)]&~q;const s=cr(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{var o=R(at).getInt32(s+8,!0),c=R(at).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+12*t;let r;if(R(at).getUint8(e+0,!0)){let t;switch(R(at).getUint8(e+4,!0)){case 0:var h=R(at).getInt32(e+8,!0),u=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),Qt.register(u,h,u),Object.defineProperty(u,j,{writable:!0,value:function(){Qt.unregister(u),U($t,h),u[j]=A,u[Y]=void 0,X[18]($t[1+(h<<1)]&~q)}}),t=u;break;case 1:var d=R(at).getInt32(e+8,!0),p=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),Zt.register(p,d,p),Object.defineProperty(p,j,{writable:!0,value:function(){Zt.unregister(p),U(Jt,d),p[j]=A,p[Y]=void 0,X[19](Jt[1+(d<<1)]&~q)}}),t=p}r=t}else r=void 0;l.push(r)}i={tag:"ok",val:l}}const m=i;if(At(s),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val},dr.choice=function(t){var e=t[Y];if(!(e&&$t[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=$t[1+(e<<1)]&~q;const s=lr(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{let t;switch(R(at).getUint8(s+4,!0)){case 0:var o=R(at).getInt32(s+8,!0),c=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),Qt.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){Qt.unregister(c),U($t,o),c[j]=A,c[Y]=void 0,X[18]($t[1+(o<<1)]&~q)}}),t=c;break;case 1:var l=R(at).getInt32(s+8,!0),h=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(h,Y,{writable:!0,value:l}),Zt.register(h,l,h),Object.defineProperty(h,j,{writable:!0,value:function(){Zt.unregister(h),U(Jt,l),h[j]=A,h[Y]=void 0,X[19](Jt[1+(l<<1)]&~q)}}),t=h}i={tag:"ok",val:t}}const u=i;if(kt(s),"object"==typeof u&&"err"===u.tag)throw u.val;return u.val},dr.repeated=function(t){var e=t[Y];if(!(e&&$t[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=$t[1+(e<<1)]&~q;const s=hr(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{var o=R(at).getInt32(s+8,!0),c=R(at).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+8*t;let r;switch(R(at).getUint8(e+0,!0)){case 0:var h=R(at).getInt32(e+4,!0),u=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),Qt.register(u,h,u),Object.defineProperty(u,j,{writable:!0,value:function(){Qt.unregister(u),U($t,h),u[j]=A,u[Y]=void 0,X[18]($t[1+(h<<1)]&~q)}}),r=u;break;case 1:var d=R(at).getInt32(e+4,!0),p=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),Zt.register(p,d,p),Object.defineProperty(p,j,{writable:!0,value:function(){Zt.unregister(p),U(Jt,d),p[j]=A,p[Y]=void 0,X[19](Jt[1+(d<<1)]&~q)}}),r=p}l.push(r)}i={tag:"ok",val:l}}const m=i;if(Ct(s),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val},dr.separated=function(t){var e=t[Y];if(!(e&&$t[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=$t[1+(e<<1)]&~q;const s=ur(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{var o=R(at).getInt32(s+8,!0),c=R(at).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+8*t;var h=R(at).getInt32(e+4,!0),u=R(at).getInt32(e+0,!0),d=[];for(let t=0;t<h;t++){const e=u+8*t;let r;switch(R(at).getUint8(e+0,!0)){case 0:var p=R(at).getInt32(e+4,!0),m=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(m,Y,{writable:!0,value:p}),Qt.register(m,p,m),Object.defineProperty(m,j,{writable:!0,value:function(){Qt.unregister(m),U($t,p),m[j]=A,m[Y]=void 0,X[18]($t[1+(p<<1)]&~q)}}),r=m;break;case 1:var y=R(at).getInt32(e+4,!0),f=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(f,Y,{writable:!0,value:y}),Zt.register(f,y,f),Object.defineProperty(f,j,{writable:!0,value:function(){Zt.unregister(f),U(Jt,y),f[j]=A,f[Y]=void 0,X[19](Jt[1+(y<<1)]&~q)}}),r=f}d.push(r)}l.push(d)}i={tag:"ok",val:l}}const g=i;if(Lt(s),"object"==typeof g&&"err"===g.tag)throw g.val;return g.val};const pr=[q,0],mr=K((t=>{const{rep:e}=U(pr,t);X[26](e)}));D[11]=pr;const yr=[q,0],fr=K((t=>{const{rep:e}=U(yr,t);X[27](e)}));let gr;D[12]=yr;class wr{constructor(){throw new Error('"BindingGraph" resource does not define a constructor')}}wr.prototype.definitionAt=function(t){var e=this[Y];if(!(e&&pr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "BindingGraph" resource.');var r=pr[1+(e<<1)]&~q,s=t[Y];if(!(s&&ae[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var i=ae[1+(s<<1)]&~q;const n=gr(r,i);let a;if(R(at).getUint8(n+0,!0)){var o=R(at).getInt32(n+4,!0),c=new.target===Tr?this:Object.create(Tr.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),fr.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){fr.unregister(c),U(yr,o),c[j]=A,c[Y]=void 0,X[27](yr[1+(o<<1)]&~q)}}),a=c}else a=void 0;return a};const vr=[q,0],xr=K((t=>{const{rep:e}=U(vr,t);X[28](e)}));let br,_r;D[13]=vr,wr.prototype.referenceAt=function(t){var e=this[Y];if(!(e&&pr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "BindingGraph" resource.');var r=pr[1+(e<<1)]&~q,s=t[Y];if(!(s&&ae[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var i=ae[1+(s<<1)]&~q;const n=br(r,i);let a;if(R(at).getUint8(n+0,!0)){var o=R(at).getInt32(n+4,!0),c=new.target===Pr?this:Object.create(Pr.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),xr.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){xr.unregister(c),U(vr,o),c[j]=A,c[Y]=void 0,X[28](vr[1+(o<<1)]&~q)}}),a=c}else a=void 0;return a};class Tr{constructor(){throw new Error('"Definition" resource does not define a constructor')}}Object.defineProperty(Tr.prototype,"id",{get:function(){var t=this[Y];if(!(t&&yr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=yr[1+(t<<1)]&~q;return _r(e)>>>0}});const Er=[q,0],Sr=K((t=>{const{rep:e}=U(Er,t);X[29](e)}));D[14]=Er;const kr=[q,0],Rr=K((t=>{const{rep:e}=U(kr,t);X[30](e)}));let Ar,Cr,Lr,Ir,Kr,Nr,Dr,Or;D[15]=kr,Object.defineProperty(Tr.prototype,"nameLocation",{get:function(){var t=this[Y];if(!(t&&yr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=yr[1+(t<<1)]&~q;const r=Ar(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===qr?this:Object.create(qr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Sr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Sr.unregister(n),U(Er,i),n[j]=A,n[Y]=void 0,X[29](Er[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===Fr?this:Object.create(Fr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Rr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Rr.unregister(o),U(kr,a),o[j]=A,o[Y]=void 0,X[30](kr[1+(a<<1)]&~q)}}),s=o}return s}}),Object.defineProperty(Tr.prototype,"definiensLocation",{get:function(){var t=this[Y];if(!(t&&yr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=yr[1+(t<<1)]&~q;const r=Cr(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===qr?this:Object.create(qr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Sr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Sr.unregister(n),U(Er,i),n[j]=A,n[Y]=void 0,X[29](Er[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===Fr?this:Object.create(Fr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Rr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Rr.unregister(o),U(kr,a),o[j]=A,o[Y]=void 0,X[30](kr[1+(a<<1)]&~q)}}),s=o}return s}}),Tr.prototype.references=function(){var t=this[Y];if(!(t&&yr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=yr[1+(t<<1)]&~q;const r=Lr(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===Pr?this:Object.create(Pr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),xr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){xr.unregister(o),U(vr,a),o[j]=A,o[Y]=void 0,X[28](vr[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return It(r),c};class Pr{constructor(){throw new Error('"Reference" resource does not define a constructor')}}Object.defineProperty(Pr.prototype,"id",{get:function(){var t=this[Y];if(!(t&&vr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=vr[1+(t<<1)]&~q;return Ir(e)>>>0}}),Object.defineProperty(Pr.prototype,"location",{get:function(){var t=this[Y];if(!(t&&vr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=vr[1+(t<<1)]&~q;const r=Kr(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===qr?this:Object.create(qr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Sr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Sr.unregister(n),U(Er,i),n[j]=A,n[Y]=void 0,X[29](Er[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===Fr?this:Object.create(Fr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Rr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Rr.unregister(o),U(kr,a),o[j]=A,o[Y]=void 0,X[30](kr[1+(a<<1)]&~q)}}),s=o}return s}}),Pr.prototype.definitions=function(){var t=this[Y];if(!(t&&vr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=vr[1+(t<<1)]&~q;const r=Nr(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===Tr?this:Object.create(Tr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),fr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){fr.unregister(o),U(yr,a),o[j]=A,o[Y]=void 0,X[27](yr[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return It(r),c};class qr{constructor(){throw new Error('"UserFileLocation" resource does not define a constructor')}}Object.defineProperty(qr.prototype,"fileId",{get:function(){var t=this[Y];if(!(t&&Er[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "UserFileLocation" resource.');var e=Er[1+(t<<1)]&~q;const r=Dr(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Et(r),n}}),Object.defineProperty(qr.prototype,"cursor",{get:function(){var t=this[Y];if(!(t&&Er[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "UserFileLocation" resource.');var e=Er[1+(t<<1)]&~q,r=Or(e),s=new.target===Le?this:Object.create(Le.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),U(ae,r),s[j]=A,s[Y]=void 0,X[20](ae[1+(r<<1)]&~q)}}),s}});var d={UserFileLocation:"UserFileLocation"};Object.defineProperty(qr.prototype,"type",{get:function(){return d.UserFileLocation}}),qr.prototype.asUserFileLocation=function(){return this},qr.prototype.isUserFileLocation=function(){return!0},qr.prototype.asBuiltInLocation=function(){},qr.prototype.isBuiltInLocation=function(){return!1};class Fr{constructor(){throw new Error('"BuiltInLocation" resource does not define a constructor')}}d.BuiltInLocation="BuiltInLocation",Object.defineProperty(Fr.prototype,"type",{get:function(){return d.BuiltInLocation}}),Fr.prototype.asBuiltInLocation=function(){return this},Fr.prototype.isBuiltInLocation=function(){return!0},Fr.prototype.asUserFileLocation=function(){},Fr.prototype.isUserFileLocation=function(){return!1};const Ur=[q,0],Mr=K((t=>{const{rep:e}=U(Ur,t);X[31](e)}));let Yr,Vr;D[16]=Ur;class jr{constructor(){throw new Error('"Parser" resource does not define a constructor')}}jr.create=function(t){var e=z(t,St,at);const r=Yr(e,G);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=R(at).getInt32(r+8,!0);s={tag:"err",val:$.decode(new Uint8Array(at.buffer,i,n))}}else{var a=R(at).getInt32(r+4,!0),o=new.target===jr?this:Object.create(jr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Mr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Mr.unregister(o),U(Ur,a),o[j]=A,o[Y]=void 0,X[31](Ur[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(kt(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val},Object.defineProperty(jr.prototype,"languageVersion",{get:function(){var t=this[Y];if(!(t&&Ur[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var e=Ur[1+(t<<1)]&~q;const r=Vr(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Et(r),n}});const Br=[q,0],Hr=K((t=>{const{rep:e}=U(Br,t);X[32](e)}));let $r,Qr,Gr,zr,Wr,Xr;D[17]=Br,jr.prototype.parseFileContents=function(t){var e=this[Y];if(!(e&&Ur[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var r=Ur[1+(e<<1)]&~q,s=z(t,St,at),i=$r(r,s,G),n=new.target===Jr?this:Object.create(Jr.prototype);return Object.defineProperty(n,Y,{writable:!0,value:i}),Hr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Hr.unregister(n),U(Br,i),n[j]=A,n[Y]=void 0,X[32](Br[1+(i<<1)]&~q)}}),n},jr.prototype.parseNonterminal=function(t,e){var r=this[Y];if(!(r&&Ur[1+(r<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var s=Ur[1+(r<<1)]&~q,i=z(e,St,at),n=G,a=Qr(s,c[t],i,n),o=new.target===Jr?this:Object.create(Jr.prototype);return Object.defineProperty(o,Y,{writable:!0,value:a}),Hr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Hr.unregister(o),U(Br,a),o[j]=A,o[Y]=void 0,X[32](Br[1+(a<<1)]&~q)}}),o};class Jr{constructor(){throw new Error('"ParseOutput" resource does not define a constructor')}}Object.defineProperty(Jr.prototype,"tree",{get:function(){var t=this[Y];if(!(t&&Br[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=Br[1+(t<<1)]&~q,r=Gr(e),s=new.target===Xt?this:Object.create(Xt.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Qt.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){Qt.unregister(s),U($t,r),s[j]=A,s[Y]=void 0,X[18]($t[1+(r<<1)]&~q)}}),s}}),Jr.prototype.errors=function(){var t=this[Y];if(!(t&&Br[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=Br[1+(t<<1)]&~q;const r=zr(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+40*t;var a=R(at).getInt32(e+0,!0),o=R(at).getInt32(e+4,!0),c=$.decode(new Uint8Array(at.buffer,a,o));n.push({message:c,textRange:{start:{utf8:R(at).getInt32(e+8,!0)>>>0,utf16:R(at).getInt32(e+12,!0)>>>0,line:R(at).getInt32(e+16,!0)>>>0,column:R(at).getInt32(e+20,!0)>>>0},end:{utf8:R(at).getInt32(e+24,!0)>>>0,utf16:R(at).getInt32(e+28,!0)>>>0,line:R(at).getInt32(e+32,!0)>>>0,column:R(at).getInt32(e+36,!0)>>>0}}})}const l=n;return Kt(r),l},Jr.prototype.isValid=function(){var t=this[Y];if(!(t&&Br[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=Br[1+(t<<1)]&~q;return!!Wr(e)},Jr.prototype.createTreeCursor=function(){var t=this[Y];if(!(t&&Br[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=Br[1+(t<<1)]&~q,r=Xr(e),s=new.target===Le?this:Object.create(Le.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),U(ae,r),s[j]=A,s[Y]=void 0,X[20](ae[1+(r<<1)]&~q)}}),s};const Zr=[q,0],ts=K((t=>{const{rep:e}=U(Zr,t);X[33](e)}));let es,rs,ss;D[18]=Zr;class is{constructor(){throw new Error('"InternalCompilationBuilder" resource does not define a constructor')}}is.create=function(t){var e=z(t,St,at);const r=es(e,G);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=R(at).getInt32(r+8,!0);s={tag:"err",val:$.decode(new Uint8Array(at.buffer,i,n))}}else{var a=R(at).getInt32(r+4,!0),o=new.target===is?this:Object.create(is.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),ts.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){ts.unregister(o),U(Zr,a),o[j]=A,o[Y]=void 0,X[33](Zr[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(kt(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val},is.prototype.addFile=function(t,e){var r=this[Y];if(!(r&&Zr[1+(r<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var s=Zr[1+(r<<1)]&~q,i=z(t,St,at),n=G,a=z(e,St,at);const o=rs(s,i,n,a,G);var c=R(at).getInt32(o+4,!0),l=R(at).getInt32(o+0,!0),h=[];for(let t=0;t<c;t++){const e=l+4*t;var u=R(at).getInt32(e+0,!0),d=new.target===Le?this:Object.create(Le.prototype);Object.defineProperty(d,Y,{writable:!0,value:u}),oe.register(d,u,d),Object.defineProperty(d,j,{writable:!0,value:function(){oe.unregister(d),U(ae,u),d[j]=A,d[Y]=void 0,X[20](ae[1+(u<<1)]&~q)}}),h.push(d)}const p={importPaths:h};return It(o),p},is.prototype.resolveImport=function(t,e,r){var s=this[Y];if(!(s&&Zr[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var i=Zr[1+(s<<1)]&~q,n=z(t,St,at),a=G,o=e[Y];if(!(o&&ae[1+(o<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var c=ae[1+(o<<1)]&~q,l=z(r,St,at);const h=ss(i,n,a,c,l,G);let u;if(R(at).getUint8(h+0,!0)){var d=R(at).getInt32(h+4,!0),p=R(at).getInt32(h+8,!0);u={tag:"err",val:$.decode(new Uint8Array(at.buffer,d,p))}}else u={tag:"ok",val:void 0};const m=u;if(kt(h),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val};const ns=[q,0],as=K((t=>{const{rep:e}=U(ns,t);X[34](e)}));let os,cs;D[19]=ns,is.prototype.build=function(){var t=this[Y];if(!(t&&Zr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var e=Zr[1+(t<<1)]&~q,r=os(e),s=new.target===ls?this:Object.create(ls.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),as.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){as.unregister(s),U(ns,r),s[j]=A,s[Y]=void 0,X[34](ns[1+(r<<1)]&~q)}}),s};class ls{constructor(){throw new Error('"CompilationUnit" resource does not define a constructor')}}Object.defineProperty(ls.prototype,"languageVersion",{get:function(){var t=this[Y];if(!(t&&ns[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=ns[1+(t<<1)]&~q;const r=cs(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Et(r),n}});const hs=[q,0],us=K((t=>{const{rep:e}=U(hs,t);X[35](e)}));let ds,ps,ms,ys,fs,gs,ws,vs,xs,bs;D[20]=hs,ls.prototype.files=function(){var t=this[Y];if(!(t&&ns[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=ns[1+(t<<1)]&~q;const r=ds(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===_s?this:Object.create(_s.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),us.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){us.unregister(o),U(hs,a),o[j]=A,o[Y]=void 0,X[35](hs[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return It(r),c},ls.prototype.file=function(t){var e=this[Y];if(!(e&&ns[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var r=ns[1+(e<<1)]&~q,s=z(t,St,at);const i=ps(r,s,G);let n;if(R(at).getUint8(i+0,!0)){var a=R(at).getInt32(i+4,!0),o=new.target===_s?this:Object.create(_s.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),us.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){us.unregister(o),U(hs,a),o[j]=A,o[Y]=void 0,X[35](hs[1+(a<<1)]&~q)}}),n=o}else n=void 0;return n},Object.defineProperty(ls.prototype,"bindingGraph",{get:function(){var t=this[Y];if(!(t&&ns[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=ns[1+(t<<1)]&~q,r=ms(e),s=new.target===wr?this:Object.create(wr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),mr.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){mr.unregister(s),U(pr,r),s[j]=A,s[Y]=void 0,X[26](pr[1+(r<<1)]&~q)}}),s}});class _s{constructor(){throw new Error('"File" resource does not define a constructor')}}Object.defineProperty(_s.prototype,"id",{get:function(){var t=this[Y];if(!(t&&hs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=hs[1+(t<<1)]&~q;const r=ys(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Et(r),n}}),Object.defineProperty(_s.prototype,"tree",{get:function(){var t=this[Y];if(!(t&&hs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=hs[1+(t<<1)]&~q,r=fs(e),s=new.target===Xt?this:Object.create(Xt.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Qt.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){Qt.unregister(s),U($t,r),s[j]=A,s[Y]=void 0,X[18]($t[1+(r<<1)]&~q)}}),s}}),_s.prototype.errors=function(){var t=this[Y];if(!(t&&hs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=hs[1+(t<<1)]&~q;const r=gs(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+40*t;var a=R(at).getInt32(e+0,!0),o=R(at).getInt32(e+4,!0),c=$.decode(new Uint8Array(at.buffer,a,o));n.push({message:c,textRange:{start:{utf8:R(at).getInt32(e+8,!0)>>>0,utf16:R(at).getInt32(e+12,!0)>>>0,line:R(at).getInt32(e+16,!0)>>>0,column:R(at).getInt32(e+20,!0)>>>0},end:{utf8:R(at).getInt32(e+24,!0)>>>0,utf16:R(at).getInt32(e+28,!0)>>>0,line:R(at).getInt32(e+32,!0)>>>0,column:R(at).getInt32(e+36,!0)>>>0}}})}const l=n;return Kt(r),l},_s.prototype.createTreeCursor=function(){var t=this[Y];if(!(t&&hs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=hs[1+(t<<1)]&~q,r=ws(e),s=new.target===Le?this:Object.create(Le.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),U(ae,r),s[j]=A,s[Y]=void 0,X[20](ae[1+(r<<1)]&~q)}}),s};class Ts{constructor(){throw new Error('"LanguageFacts" resource does not define a constructor')}}Ts.allVersions=function(){const t=vs();var e=R(at).getInt32(t+4,!0),r=R(at).getInt32(t+0,!0),s=[];for(let t=0;t<e;t++){const e=r+8*t;var i=R(at).getInt32(e+0,!0),n=R(at).getInt32(e+4,!0),a=$.decode(new Uint8Array(at.buffer,i,n));s.push(a)}const o=s;return Nt(t),o},Ts.earliestVersion=function(){const t=xs();var e=R(at).getInt32(t+0,!0),r=R(at).getInt32(t+4,!0);const s=$.decode(new Uint8Array(at.buffer,e,r));return Et(t),s},Ts.latestVersion=function(){const t=bs();var e=R(at).getInt32(t+0,!0),r=R(at).getInt32(t+4,!0);const s=$.decode(new Uint8Array(at.buffer,e,r));return Et(t),s};const Es=F.bind(null,$t),Ss=F.bind(null,Jt);function ks(t){const e=U($t,t);e.own&&X[18](e.rep)}function Rs(t){const e=U(Jt,t);e.own&&X[19](e.rep)}const As=F.bind(null,ee);function Cs(t){const e=U(ee,t);e.own&&X[21](e.rep)}const Ls=F.bind(null,ae);function Is(t){const e=U(ae,t);e.own&&X[20](e.rep)}const Ks=F.bind(null,Ie);function Ns(t){const e=U(Ie,t);e.own&&X[22](e.rep)}const Ds=F.bind(null,Xe);function Os(t){const e=U(Xe,t);e.own&&X[24](e.rep)}const Ps=F.bind(null,ze);function qs(t){const e=U(ze,t);e.own&&X[23](e.rep)}const Fs=F.bind(null,yr);function Us(t){const e=U(yr,t);e.own&&X[27](e.rep)}const Ms=F.bind(null,vr);function Ys(t){const e=U(vr,t);e.own&&X[28](e.rep)}const Vs=F.bind(null,Er);function js(t){const e=U(Er,t);e.own&&X[29](e.rep)}const Bs=F.bind(null,kr);function Hs(t){const e=U(kr,t);e.own&&X[30](e.rep)}const $s=F.bind(null,Ur);function Qs(t){const e=U(Ur,t);e.own&&X[31](e.rep)}const Gs=F.bind(null,Br);function zs(t){const e=U(Br,t);e.own&&X[32](e.rep)}const Ws=F.bind(null,Zr);function Xs(t){const e=U(Zr,t);e.own&&X[33](e.rep)}const Js=F.bind(null,ns);function Zs(t){const e=U(ns,t);e.own&&X[34](e.rep)}const ti=F.bind(null,hs);function ei(t){const e=U(hs,t);e.own&&X[35](e.rep)}const ri=F.bind(null,pr);function si(t){const e=U(pr,t);e.own&&X[26](e.rep)}function ii(t){const e=U(Z,t);if(e.own){const t=tt.get(e.rep);t?(t[j]&&t[j](),tt.delete(e.rep)):T[M]&&T[M](e.rep)}}function ni(t){const e=U(xt,t);if(e.own){const t=bt.get(e.rep);t?(t[j]&&t[j](),bt.delete(e.rep)):b[M]&&b[M](e.rep)}}function ai(t){const e=U(st,t);if(e.own){const t=it.get(e.rep);t?(t[j]&&t[j](),it.delete(e.rep)):_[M]&&_[M](e.rep)}}function oi(t){const e=U(pt,t);if(e.own){const t=mt.get(e.rep);t?(t[j]&&t[j](),mt.delete(e.rep)):v[M]&&v[M](e.rep)}}const ci=(()=>{let t,e,s,i=function*(){const t=I(new URL(r(7870),r.b)),e=I(new URL(r(1112),r.b)),s=I(new URL(r(9719),r.b)),i=I(new URL(r(450),r.b));({exports:X}=yield P(yield s)),({exports:J}=yield P(yield t,{"[export]nomic-foundation:slang/bindings":{"[resource-drop]binding-graph":si,"[resource-drop]built-in-location":Hs,"[resource-drop]definition":Us,"[resource-drop]reference":Ys,"[resource-drop]user-file-location":js,"[resource-new]binding-graph":ri,"[resource-new]built-in-location":Bs,"[resource-new]definition":Fs,"[resource-new]reference":Ms,"[resource-new]user-file-location":Vs},"[export]nomic-foundation:slang/compilation":{"[resource-drop]compilation-unit":Zs,"[resource-drop]file":ei,"[resource-drop]internal-compilation-builder":Xs,"[resource-new]compilation-unit":Js,"[resource-new]file":ti,"[resource-new]internal-compilation-builder":Ws},"[export]nomic-foundation:slang/cst":{"[resource-drop]ancestors-iterator":Ns,"[resource-drop]cursor":Is,"[resource-drop]cursor-iterator":Cs,"[resource-drop]nonterminal-node":ks,"[resource-drop]query":qs,"[resource-drop]query-match-iterator":Os,"[resource-drop]terminal-node":Rs,"[resource-new]ancestors-iterator":Ks,"[resource-new]cursor":Ls,"[resource-new]cursor-iterator":As,"[resource-new]nonterminal-node":Es,"[resource-new]query":Ps,"[resource-new]query-match-iterator":Ds,"[resource-new]terminal-node":Ss},"[export]nomic-foundation:slang/parser":{"[resource-drop]parse-output":zs,"[resource-drop]parser":Qs,"[resource-new]parse-output":Gs,"[resource-new]parser":$s},wasi_snapshot_preview1:{environ_get:X[14],environ_sizes_get:X[15],fd_write:X[13],proc_exit:X[16],random_get:X[12]}})),({exports:nt}=yield P(yield e,{__main_module__:{cabi_realloc:J.cabi_realloc},env:{memory:J.memory},"wasi:cli/environment@0.2.3":{"get-environment":X[0]},"wasi:cli/exit@0.2.3":{exit:ut},"wasi:cli/stderr@0.2.3":{"get-stderr":rt},"wasi:cli/stdin@0.2.3":{"get-stdin":lt},"wasi:cli/stdout@0.2.3":{"get-stdout":ht},"wasi:filesystem/preopens@0.2.3":{"get-directories":X[11]},"wasi:filesystem/types@0.2.3":{"[method]descriptor.append-via-stream":X[2],"[method]descriptor.get-type":X[3],"[method]descriptor.stat":X[4],"[method]descriptor.write-via-stream":X[1],"[resource-drop]descriptor":oi,"filesystem-error-code":X[5]},"wasi:io/error@0.2.3":{"[resource-drop]error":ni},"wasi:io/streams@0.2.3":{"[method]output-stream.blocking-flush":X[9],"[method]output-stream.blocking-write-and-flush":X[8],"[method]output-stream.check-write":X[6],"[method]output-stream.write":X[7],"[resource-drop]input-stream":ai,"[resource-drop]output-stream":ii},"wasi:random/random@0.2.3":{"get-random-bytes":X[10]}})),at=J.memory,ot=nt.cabi_import_realloc,({exports:_t}=yield P(yield i,{"":{$imports:X.$imports,0:dt,1:ft,10:jt,11:Bt,12:nt.random_get,13:nt.fd_write,14:nt.environ_get,15:nt.environ_sizes_get,16:nt.proc_exit,17:J["nomic-foundation:slang/cst#[dtor]terminal-kind-extensions"],18:J["nomic-foundation:slang/cst#[dtor]nonterminal-node"],19:J["nomic-foundation:slang/cst#[dtor]terminal-node"],2:gt,20:J["nomic-foundation:slang/cst#[dtor]cursor"],21:J["nomic-foundation:slang/cst#[dtor]cursor-iterator"],22:J["nomic-foundation:slang/cst#[dtor]ancestors-iterator"],23:J["nomic-foundation:slang/cst#[dtor]query"],24:J["nomic-foundation:slang/cst#[dtor]query-match-iterator"],25:J["nomic-foundation:slang/ast#[dtor]selectors"],26:J["nomic-foundation:slang/bindings#[dtor]binding-graph"],27:J["nomic-foundation:slang/bindings#[dtor]definition"],28:J["nomic-foundation:slang/bindings#[dtor]reference"],29:J["nomic-foundation:slang/bindings#[dtor]user-file-location"],3:wt,30:J["nomic-foundation:slang/bindings#[dtor]built-in-location"],31:J["nomic-foundation:slang/parser#[dtor]parser"],32:J["nomic-foundation:slang/parser#[dtor]parse-output"],33:J["nomic-foundation:slang/compilation#[dtor]internal-compilation-builder"],34:J["nomic-foundation:slang/compilation#[dtor]compilation-unit"],35:J["nomic-foundation:slang/compilation#[dtor]file"],36:J["nomic-foundation:slang/utils#[dtor]language-facts"],4:vt,5:Ft,6:Ut,7:Mt,8:Yt,9:Vt}})),Tt=J["cabi_post_nomic-foundation:slang/cst#[method]cursor.children"],Et=J["cabi_post_nomic-foundation:slang/bindings#[method]user-file-location.file-id"],St=J.cabi_realloc,kt=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.choice"],Rt=J["cabi_post_nomic-foundation:slang/cst#[method]query-match-iterator.next"],At=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.sequence"],Ct=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.repeated"],Lt=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.separated"],It=J["cabi_post_nomic-foundation:slang/bindings#[method]definition.references"],Kt=J["cabi_post_nomic-foundation:slang/compilation#[method]file.errors"],Nt=J["cabi_post_nomic-foundation:slang/utils#[static]language-facts.all-versions"],Dt=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-identifier"],Ot=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-trivia"],Pt=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-valid"],Gt=J["nomic-foundation:slang/cst#[method]nonterminal-node.id"],zt=J["nomic-foundation:slang/cst#[method]nonterminal-node.kind"],Wt=J["nomic-foundation:slang/cst#[method]nonterminal-node.text-length"],te=J["nomic-foundation:slang/cst#[method]nonterminal-node.children"],se=J["nomic-foundation:slang/cst#[method]nonterminal-node.descendants"],ie=J["nomic-foundation:slang/cst#[method]nonterminal-node.unparse"],ne=J["nomic-foundation:slang/cst#[method]nonterminal-node.to-json"],ce=J["nomic-foundation:slang/cst#[method]nonterminal-node.create-cursor"],le=J["nomic-foundation:slang/cst#[method]terminal-node.id"],he=J["nomic-foundation:slang/cst#[method]terminal-node.kind"],ue=J["nomic-foundation:slang/cst#[method]terminal-node.text-length"],de=J["nomic-foundation:slang/cst#[method]terminal-node.children"],pe=J["nomic-foundation:slang/cst#[method]terminal-node.descendants"],me=J["nomic-foundation:slang/cst#[method]terminal-node.unparse"],ye=J["nomic-foundation:slang/cst#[method]terminal-node.to-json"],fe=J["nomic-foundation:slang/cst#[method]cursor.reset"],ge=J["nomic-foundation:slang/cst#[method]cursor.complete"],we=J["nomic-foundation:slang/cst#[method]cursor.is-completed"],ve=J["nomic-foundation:slang/cst#[method]cursor.clone"],xe=J["nomic-foundation:slang/cst#[method]cursor.spawn"],be=J["nomic-foundation:slang/cst#[method]cursor.node"],_e=J["nomic-foundation:slang/cst#[method]cursor.label"],Te=J["nomic-foundation:slang/cst#[method]cursor.text-offset"],Ee=J["nomic-foundation:slang/cst#[method]cursor.text-range"],Se=J["nomic-foundation:slang/cst#[method]cursor.depth"],ke=J["nomic-foundation:slang/cst#[method]cursor.children"],Re=J["nomic-foundation:slang/cst#[method]cursor.descendants"],Ae=J["nomic-foundation:slang/cst#[method]cursor.remaining-nodes"],Ne=J["nomic-foundation:slang/cst#[method]cursor.ancestors"],De=J["nomic-foundation:slang/cst#[method]cursor.go-to-next"],Oe=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-non-descendant"],Pe=J["nomic-foundation:slang/cst#[method]cursor.go-to-previous"],qe=J["nomic-foundation:slang/cst#[method]cursor.go-to-parent"],Fe=J["nomic-foundation:slang/cst#[method]cursor.go-to-first-child"],Ue=J["nomic-foundation:slang/cst#[method]cursor.go-to-last-child"],Me=J["nomic-foundation:slang/cst#[method]cursor.go-to-nth-child"],Ye=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-sibling"],Ve=J["nomic-foundation:slang/cst#[method]cursor.go-to-previous-sibling"],je=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal"],Be=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kind"],He=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kinds"],$e=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal"],Qe=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kind"],Ge=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kinds"],Ze=J["nomic-foundation:slang/cst#[method]cursor.query"],tr=J["nomic-foundation:slang/cst#[method]cursor-iterator.next"],er=J["nomic-foundation:slang/cst#[method]ancestors-iterator.next"],rr=J["nomic-foundation:slang/cst#[static]query.create"],sr=J["nomic-foundation:slang/cst#[method]query-match-iterator.next"],cr=J["nomic-foundation:slang/ast#[static]selectors.sequence"],lr=J["nomic-foundation:slang/ast#[static]selectors.choice"],hr=J["nomic-foundation:slang/ast#[static]selectors.repeated"],ur=J["nomic-foundation:slang/ast#[static]selectors.separated"],gr=J["nomic-foundation:slang/bindings#[method]binding-graph.definition-at"],br=J["nomic-foundation:slang/bindings#[method]binding-graph.reference-at"],_r=J["nomic-foundation:slang/bindings#[method]definition.id"],Ar=J["nomic-foundation:slang/bindings#[method]definition.name-location"],Cr=J["nomic-foundation:slang/bindings#[method]definition.definiens-location"],Lr=J["nomic-foundation:slang/bindings#[method]definition.references"],Ir=J["nomic-foundation:slang/bindings#[method]reference.id"],Kr=J["nomic-foundation:slang/bindings#[method]reference.location"],Nr=J["nomic-foundation:slang/bindings#[method]reference.definitions"],Dr=J["nomic-foundation:slang/bindings#[method]user-file-location.file-id"],Or=J["nomic-foundation:slang/bindings#[method]user-file-location.cursor"],Yr=J["nomic-foundation:slang/parser#[static]parser.create"],Vr=J["nomic-foundation:slang/parser#[method]parser.language-version"],$r=J["nomic-foundation:slang/parser#[method]parser.parse-file-contents"],Qr=J["nomic-foundation:slang/parser#[method]parser.parse-nonterminal"],Gr=J["nomic-foundation:slang/parser#[method]parse-output.tree"],zr=J["nomic-foundation:slang/parser#[method]parse-output.errors"],Wr=J["nomic-foundation:slang/parser#[method]parse-output.is-valid"],Xr=J["nomic-foundation:slang/parser#[method]parse-output.create-tree-cursor"],es=J["nomic-foundation:slang/compilation#[static]internal-compilation-builder.create"],rs=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.add-file"],ss=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.resolve-import"],os=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.build"],cs=J["nomic-foundation:slang/compilation#[method]compilation-unit.language-version"],ds=J["nomic-foundation:slang/compilation#[method]compilation-unit.files"],ps=J["nomic-foundation:slang/compilation#[method]compilation-unit.file"],ms=J["nomic-foundation:slang/compilation#[method]compilation-unit.binding-graph"],ys=J["nomic-foundation:slang/compilation#[method]file.id"],fs=J["nomic-foundation:slang/compilation#[method]file.tree"],gs=J["nomic-foundation:slang/compilation#[method]file.errors"],ws=J["nomic-foundation:slang/compilation#[method]file.create-tree-cursor"],vs=J["nomic-foundation:slang/utils#[static]language-facts.all-versions"],xs=J["nomic-foundation:slang/utils#[static]language-facts.earliest-version"],bs=J["nomic-foundation:slang/utils#[static]language-facts.latest-version"]}();const n=function r(n){try{let a;do{({value:n,done:a}=i.next(n))}while(!(n instanceof Promise||a));if(a){if(!e)return n;e(n)}t||(t=new Promise(((t,r)=>(e=t,s=r)))),n.then(r,s)}catch(t){if(!s)throw t;s(t)}}(null);return t||n})();await ci;const li={Selectors:dr},hi={AncestorsIterator:nr,Cursor:Le,CursorIterator:ir,EdgeLabel:{Root:"Root",Unrecognized:"Unrecognized",Missing:"Missing",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"},NodeType:u,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",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",InequalityExpression:"InequalityExpression",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",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",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:Xt,Query:ar,QueryMatchIterator:or,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",SuperKeyword:"SuperKeyword",SupportsKeyword:"SupportsKeyword",SwitchKeyword:"SwitchKeyword",SzaboKeyword:"SzaboKeyword",ThisKeyword:"ThisKeyword",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",YulAfterKeyword:"YulAfterKeyword",YulAliasKeyword:"YulAliasKeyword",YulAnonymousKeyword:"YulAnonymousKeyword",YulApplyKeyword:"YulApplyKeyword",YulAsKeyword:"YulAsKeyword",YulAssemblyKeyword:"YulAssemblyKeyword",YulAutoKeyword:"YulAutoKeyword",YulBoolKeyword:"YulBoolKeyword",YulBreakKeyword:"YulBreakKeyword",YulBytesKeyword:"YulBytesKeyword",YulCallDataKeyword:"YulCallDataKeyword",YulCaseKeyword:"YulCaseKeyword",YulCatchKeyword:"YulCatchKeyword",YulConstantKeyword:"YulConstantKeyword",YulConstructorKeyword:"YulConstructorKeyword",YulContinueKeyword:"YulContinueKeyword",YulContractKeyword:"YulContractKeyword",YulCopyOfKeyword:"YulCopyOfKeyword",YulDaysKeyword:"YulDaysKeyword",YulDecimalLiteral:"YulDecimalLiteral",YulDefaultKeyword:"YulDefaultKeyword",YulDefineKeyword:"YulDefineKeyword",YulDeleteKeyword:"YulDeleteKeyword",YulDoKeyword:"YulDoKeyword",YulElseKeyword:"YulElseKeyword",YulEmitKeyword:"YulEmitKeyword",YulEnumKeyword:"YulEnumKeyword",YulEtherKeyword:"YulEtherKeyword",YulEventKeyword:"YulEventKeyword",YulExternalKeyword:"YulExternalKeyword",YulFallbackKeyword:"YulFallbackKeyword",YulFalseKeyword:"YulFalseKeyword",YulFinalKeyword:"YulFinalKeyword",YulFinneyKeyword:"YulFinneyKeyword",YulFixedKeyword:"YulFixedKeyword",YulForKeyword:"YulForKeyword",YulFunctionKeyword:"YulFunctionKeyword",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",YulIsKeyword:"YulIsKeyword",YulLeaveKeyword:"YulLeaveKeyword",YulLetKeyword:"YulLetKeyword",YulLibraryKeyword:"YulLibraryKeyword",YulMacroKeyword:"YulMacroKeyword",YulMappingKeyword:"YulMappingKeyword",YulMatchKeyword:"YulMatchKeyword",YulMemoryKeyword:"YulMemoryKeyword",YulMinutesKeyword:"YulMinutesKeyword",YulModifierKeyword:"YulModifierKeyword",YulMutableKeyword:"YulMutableKeyword",YulNewKeyword:"YulNewKeyword",YulNullKeyword:"YulNullKeyword",YulOfKeyword:"YulOfKeyword",YulOverrideKeyword:"YulOverrideKeyword",YulPartialKeyword:"YulPartialKeyword",YulPayableKeyword:"YulPayableKeyword",YulPragmaKeyword:"YulPragmaKeyword",YulPrivateKeyword:"YulPrivateKeyword",YulPromiseKeyword:"YulPromiseKeyword",YulPublicKeyword:"YulPublicKeyword",YulPureKeyword:"YulPureKeyword",YulReceiveKeyword:"YulReceiveKeyword",YulReferenceKeyword:"YulReferenceKeyword",YulRelocatableKeyword:"YulRelocatableKeyword",YulReturnsKeyword:"YulReturnsKeyword",YulSealedKeyword:"YulSealedKeyword",YulSecondsKeyword:"YulSecondsKeyword",YulSizeOfKeyword:"YulSizeOfKeyword",YulStaticKeyword:"YulStaticKeyword",YulStorageKeyword:"YulStorageKeyword",YulStringKeyword:"YulStringKeyword",YulStructKeyword:"YulStructKeyword",YulSuperKeyword:"YulSuperKeyword",YulSupportsKeyword:"YulSupportsKeyword",YulSwitchKeyword:"YulSwitchKeyword",YulSzaboKeyword:"YulSzaboKeyword",YulThisKeyword:"YulThisKeyword",YulThrowKeyword:"YulThrowKeyword",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",YulYearsKeyword:"YulYearsKeyword"},TerminalKindExtensions:Ht,TerminalNode:Ce},ui={ParseOutput:Jr,Parser:jr},di={LanguageFacts:Ts};s()}catch(pi){s(pi)}}),1)},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."}}},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)}}))},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)}}))},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)}},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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}},1763:(t,e,r)=>{const s=r(560);t.exports=(t,e)=>s(t,e,!0)},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)}}))},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)}}))},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){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(o))return c.minor&&!c.patch?"minor":"patch"}const h=l?"pre":"";return r.major!==i.major?h+"major":r.minor!==i.minor?h+"minor":r.patch!==i.patch?h+"patch":"prerelease"}},1901:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K3:()=>i.K3,Rj:()=>i.Rj,Wp:()=>i.Wp,tQ:()=>i.tQ});var i=r(1406),n=t([i]);i=(n.then?(await n)():n)[0],s()}catch(t){s(t)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},2101:(t,e,r)=>{function s(t){console.warn(`\r[prettier-solidity] ${t}`)}r.d(e,{o:()=>s})},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}`)}}},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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}},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},2938:(t,e,r)=>{const s=r(3908);t.exports=(t,e)=>new s(t,e).major},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)}}))},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)}}))},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}}},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)}}))},3070:(t,e,r)=>{r.a(t,(async(t,e)=>{try{var s=r(4675),i=t([s]);s=(i.then?(await i)():i)[0],e()}catch(t){e(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)}}))},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)}}))},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)}}))},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=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,i={};((e,r)=>{for(var s in r)t(e,s,{get:r[s],enumerable:!0})})(i,{ParserError:()=>Ne,default:()=>Fe,parse:()=>Oe,tokenize:()=>De,visit:()=>Pe});var n={92:()=>{}},a={};function o(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var c={};(()=>{o.d(c,{dx:()=>z,q2:()=>At,FO:()=>Te,xf:()=>ke,Gy:()=>Le,s4:()=>Nt,c7:()=>De,_7:()=>ce,tx:()=>_e,gp:()=>ve,cK:()=>Ct,zs:()=>ge,AV:()=>ke,Xp:()=>v,VS:()=>x,ul:()=>G,hW:()=>Ft,x1:()=>Wt,z5:()=>ee,oN:()=>de,TB:()=>pe,u1:()=>me,_b:()=>Pe,$F:()=>se,_T:()=>Ue,db:()=>ie,Zx:()=>te,_x:()=>Pt,r8:()=>q,JI:()=>K,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 i{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 i;return t.update.apply(t,arguments),t.finish()}}function n(t){return t?"string"==typeof t?s(t):t.hashCode():-1}function a(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||n,this.equalsFunction=e||a}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 i;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 i;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 i;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 v{constructor(t,e){this.start=t,this.stop=e}clone(){return new v(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}}v.INVALID_INTERVAL=new v(-1,-2);class x{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 v(t,t+1))}addRange(t,e){this.addInterval(new v(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 v(t.start,r.stop));if(t.start<=r.stop)return this.intervals[e]=new v(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 v(e.start,r.stop),this.intervals.splice(t+1,1))}}complement(t,e){const r=new x;return r.addInterval(new v(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 v(r.start,t.start);const s=new v(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 v(r.start,t.start):t.stop<r.stop&&(this.intervals[e]=new v(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 v(r.start+1,r.stop));if(t===r.stop-1)return void(this.intervals[e]=new v(r.start,r.stop-1));if(t<r.stop-1){const s=new v(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 T{constructor(t){if(null==t)throw"target cannot be null.";this.target=t,this.isEpsilon=!1,this.label=null}}T.EPSILON=1,T.RANGE=2,T.RULE=3,T.PREDICATE=4,T.ATOM=5,T.ACTION=6,T.SET=7,T.NOT_SET=8,T.WILDCARD=9,T.PRECEDENCE=10,T.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],T.serializationTypes={EpsilonTransition:T.EPSILON,RangeTransition:T.RANGE,RuleTransition:T.RULE,PredicateTransition:T.PREDICATE,AtomTransition:T.ATOM,ActionTransition:T.ACTION,SetTransition:T.SET,NotSetTransition:T.NOT_SET,WildcardTransition:T.WILDCARD,PrecedencePredicateTransition:T.PRECEDENCE};class E extends T{constructor(t,e,r,s){super(t),this.ruleIndex=e,this.precedence=r,this.followState=s,this.serializationType=T.RULE,this.isEpsilon=!0}matches(t,e,r){return!1}}class S extends T{constructor(e,r){super(e),this.serializationType=T.SET,null!=r?this.label=r:(this.label=new x,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=T.NOT_SET}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}}class R extends T{constructor(t){super(t),this.serializationType=T.WILDCARD}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}}class A extends T{constructor(t){super(t)}}class C{}class L extends C{}class I extends L{}class K extends I{get ruleContext(){throw new Error("missing interface implementation")}}class N extends I{}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 K){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 K&&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 K{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 v.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 F{constructor(t){this.cachedHashCode=t}isEmpty(){return this===F.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===F.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}}F.EMPTY=null,F.EMPTY_RETURN_STATE=2147483647,F.globalNodeCount=1,F.id=F.globalNodeCount,F.trace_atn_sim=!1;class U extends F{constructor(t,e){const r=new i;return r.update(t,e),super(r.finish()),this.parents=t,this.returnStates=e,this}isEmpty(){return this.returnStates[0]===F.EMPTY_RETURN_STATE}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}equals(t){return this===t||t instanceof U&&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]!==F.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 F{constructor(t,e){let r=0;const s=new i;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===F.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t}get length(){return 1}static create(t,e){return e===F.EMPTY_RETURN_STATE&&null===t?F.EMPTY:new M(t,e)}}class Y extends M{constructor(){super(null,F.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(t){return null}getReturnState(t){return this.returnState}equals(t){return this===t}toString(){return"$"}}F.EMPTY=new Y;const V="h-";class j{constructor(t,e){this.data={},this.hashFunction=t||n,this.equalsFunction=e||a}set(t,e){const r=V+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=V+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=V+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(V))).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(V))).map((t=>this.data[t].length),this).reduce(((t,e)=>t+e),0)}}function B(t,e){if(null==e&&(e=q.EMPTY),null===e.parentCtx||e===q.EMPTY)return F.EMPTY;const r=B(t,e.parentCtx),s=t.states[e.invokingState].transitions[0];return M.create(r,s.followState.stateNumber)}function H(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=H(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?F.EMPTY:1===n.length?M.create(n[0],t.getReturnState(0)):new U(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===F.EMPTY)return F.EMPTY;if(e===F.EMPTY)return F.EMPTY}else{if(t===F.EMPTY&&e===F.EMPTY)return F.EMPTY;if(t===F.EMPTY){const t=[e.returnState,F.EMPTY_RETURN_STATE],r=[e.parentCtx,null];return new U(r,t)}if(e===F.EMPTY){const e=[t.returnState,F.EMPTY_RETURN_STATE],r=[t.parentCtx,null];return new U(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 U([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 U(n,i);return null!==s&&s.set(t,e,a),a}}(t,e,r,s);if(r){if(t instanceof Y)return t;if(e instanceof Y)return e}return t instanceof M&&(t=new U([t.getParent()],[t.returnState])),e instanceof M&&(e=new U([e.getParent()],[e.returnState])),function(t,e,r,s){if(null!==s){let r=s.get(t,e);if(null!==r)return F.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),r;if(r=s.get(e,t),null!==r)return F.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===F.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 U(c,o);return l.equals(t)?(null!==s&&s.set(t,e,t),F.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> a"),t):l.equals(e)?(null!==s&&s.set(t,e,e),F.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> b"),e):(function(t){const e=new j;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),F.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 i.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 x;const e=new d,i=!1;this._LOOK(t.transition(s).target,null,F.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 x,i=null!==(r=r||null)?B(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!==F.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===E){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 x;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 T{constructor(t,e){super(t),this.label_=e,this.label=this.makeLabel(),this.serializationType=T.ATOM}makeLabel(){const t=new x;return t.addOne(this.label_),t}matches(t,e,r){return this.label_===t}toString(){return this.label_}}class ht extends T{constructor(t,e,r){super(t),this.serializationType=T.RANGE,this.start=e,this.stop=r,this.label=this.makeLabel()}makeLabel(){const t=new x;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 T{constructor(t,e,r,s){super(t),this.serializationType=T.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 T{constructor(t,e){super(t),this.serializationType=T.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=T.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=T.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 i;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.actionType)}equals(t){return this===t}}class vt extends wt{constructor(){super(6)}execute(t){t.skip()}toString(){return"skip"}}vt.INSTANCE=new vt;class xt 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 xt&&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 Tt 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 Tt&&this.type===t.type}toString(){return"type("+this.type+")"}}class Et 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 Et&&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 x;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 E))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 T.EPSILON:return new dt(l);case T.RANGE:return new ht(l,0!==o?t.EOF:n,a);case T.RULE:return new E(e.states[n],a,o,l);case T.PREDICATE:return new mt(l,n,a,0!==o);case T.PRECEDENCE:return new ft(l,n);case T.ATOM:return new lt(l,0!==o?t.EOF:n);case T.ACTION:return new ut(l,n,a,0!==o);case T.SET:return new S(l,c[n]);case T.NOT_SET:return new k(l,c[n]);case T.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 xt(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 Et(t),t[6]=(t,e)=>vt.INSTANCE,t[7]=(t,e)=>new Tt(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 Lt extends Ct{constructor(){super()}syntaxError(t,e,r,s,i,n){console.error("line "+r+":"+s+" "+i)}}Lt.INSTANCE=new Lt;class It 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 Kt{constructor(){this._listeners=[Lt.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 It(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}}Kt.tokenTypeMapCache={},Kt.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 v(this.startIndex,this.startIndex))),"LexerNoViableAltException"+t}}class Ft extends Kt{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=Ft.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=Ft.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=Ft.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===Ft.SKIP){e=!0;break}if(this._type!==Ft.MORE)break}if(!e)return null===this._token&&this.emit(),this._token}}finally{this._input.release(e)}}skip(){this._type=Ft.SKIP}more(){this._type=Ft.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 Ut(t){return t.hashCodeForConfigSet()}function Mt(t,e){return t===e||null!==t&&null!==e&&t.equalsForConfigSet(e)}Ft.DEFAULT_MODE=0,Ft.MORE=-2,Ft.SKIP=-3,Ft.DEFAULT_TOKEN_CHANNEL=t.DEFAULT_CHANNEL,Ft.HIDDEN=t.HIDDEN_CHANNEL,Ft.MIN_CHAR_VALUE=0,Ft.MAX_CHAR_VALUE=1114111;class Yt{constructor(t){this.configLookup=new d(Ut,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 Yt&&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 i;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 Vt{constructor(t,e){return null===t&&(t=-1),null===e&&(e=new Yt),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 Vt&&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 i;return t.update(this.configs),t.finish()}}class jt{constructor(t,e){return this.atn=t,this.sharedContextCache=e,this}getCachedContext(t){if(null===this.sharedContextCache)return t;const e=new j;return H(t,this.sharedContextCache,e)}}jt.ERROR=new Vt(2147483647,new Yt);class Bt extends Yt{constructor(){super(),this.configLookup=new d}}class Ht 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=Ht.prototype.hashCode,this.equalsForConfigSet=Ht.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 Ht&&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=i.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 jt{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=Ft.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=Ft.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===jt.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 Bt;return this.getReachableConfigSet(t,e.configs,s,r),0===s.items.length?(s.hasSemanticContext||this.addDFAEdge(e,r,jt.ERROR),jt.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 Ht({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,Ft.MAX_CHAR_VALUE)?t.target:null}computeStartState(t,e){const r=F.EMPTY,s=new Bt;for(let i=0;i<e.transitions.length;i++){const n=e.transitions[i].target,a=new Ht({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 Ht({state:e.state,context:F.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)!==F.EMPTY_RETURN_STATE){const c=e.context.getParent(o),l=this.atn.states[e.context.getReturnState(o)];a=new Ht({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===T.RULE){const t=M.create(r.context,s.followState.stateNumber);o=new Ht({state:s.target,context:t},r)}else{if(s.serializationType===T.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(s.serializationType===T.PREDICATE)Wt.debug&&console.log("EVAL rule "+s.ruleIndex+":"+s.predIndex),i.hasSemanticContext=!0,this.evaluatePredicate(e,s.ruleIndex,s.predIndex,n)&&(o=new Ht({state:s.target},r));else if(s.serializationType===T.ACTION)if(null===r.context||r.context.hasEmptyPath()){const t=Qt.append(r.lexerActionExecutor,this.atn.lexerActions[s.actionIndex]);o=new Ht({state:s.target,lexerActionExecutor:t},r)}else o=new Ht({state:s.target},r);else s.serializationType===T.EPSILON?o=new Ht({state:s.target},r):s.serializationType!==T.ATOM&&s.serializationType!==T.RANGE&&s.serializationType!==T.SET||a&&s.matches(t.EOF,0,Ft.MAX_CHAR_VALUE)&&(o=new Ht({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 Vt(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 Yt;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 j;return e.hashFunction=function(t){i.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||j,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 jt{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 Vt(null,n)),s.setPrecedenceStartState(this.parser.getPrecedence(),e)):(e=this.addDFAState(s,new Vt(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===jt.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,jt.ERROR),jt.ERROR;let i=new Vt(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 Yt(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 Yt(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 Yt(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=B(this.atn,e),i=new Yt(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 Yt(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 Yt(t.fullCtx),s=new Yt(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)===F.EMPTY_RETURN_STATE){if(i){e.add(new w({state:t.state,context:F.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 E&&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 T.RULE:return this.ruleTransition(e,r);case T.PRECEDENCE:return this.precedenceTransition(e,r,s,i,n);case T.PREDICATE:return this.predTransition(e,r,s,i,n);case T.ACTION:return this.actionTransition(e,r);case T.EPSILON:return new w({state:r.target},e);case T.ATOM:case T.RANGE:case T.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===jt.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 v(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 v(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 v(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 j}add(t){if(t===F.EMPTY)return F.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 Vt(null,new Yt);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 Vt(null,new Yt);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:F},ue={Interval:v,IntervalSet:x};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:K,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 ve 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 v(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 v(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 v(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 xe extends Error{constructor(){super(),Error.captureStackTrace(this,xe)}}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 x;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 v(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 x;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 Te extends _e{constructor(){super()}recover(t,e){let r=t._ctx;for(;null!==r;)r.exception=e,r=r.parentCtx;throw new xe(e)}recoverInline(t){this.recover(t,new fe(t))}sync(t){}}const Ee={RecognitionException:Pt,NoViableAltException:ee,LexerNoViableAltException:qt,InputMismatchException:fe,FailedPredicateException:ge,DiagnosticErrorListener:ve,BailErrorStrategy:Te,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=o(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 Le={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)}},Ie={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 Ke{}class Ne extends Ke{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,Ft.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,Ft.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!==Ft.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 v(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 Kt{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 v.INVALID_INTERVAL;const t=this.symbol.tokenIndex;return new v(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 Fe extends qe{constructor(t){super(t)}isErrorNode(){return!0}accept(t){return t.visitErrorNode(this)}}class Ue 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 Fe&&(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 Fe(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?v.INVALID_INTERVAL:new v(this.start.tokenIndex,this.stop.tokenIndex)}}q.EMPTY=new Ue;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 v?e:new v(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 v(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 Ye,Ve,je,Be,He;Ye=Me,je="default",Be="DEFAULT_PROGRAM_NAME",(Ve="symbol"==typeof(He=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(Be))?He:String(He))in Ye?Object.defineProperty(Ye,Ve,{value:je,enumerable:!0,configurable:!0,writable:!0}):Ye[Ve]=je;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:Ee,Token:t,CommonToken:Nt,CharStreams:Le,CharStream:ke,InputStream:ke,CommonTokenStream:De,Lexer:Ft,Parser:Pe,ParserRuleContext:Ue,Interval:v,IntervalSet:x,LL1Analyzer:G,Utils:Ie,TokenStreamRewriter:Me}})();var l=c.dx,h=c.q2,u=c.xf,d=c.c7,p=c._7,m=c.cK,y=c.zs,f=c.hW,g=c.x1,w=c.z5,v=c.TB,x=c._b,b=c.$F,_=c._T,T=c.db,E=c._x,S=c.WU,k=class t extends f{constructor(e){super(e),this._interp=new g(this,t._ATN,t.DecisionsToDFA,new T)}get grammarFileName(){return"Solidity.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}static get _ATN(){return t.__ATN||(t.__ATN=(new h).deserialize(t._serializedATN)),t.__ATN}};k.T__0=1,k.T__1=2,k.T__2=3,k.T__3=4,k.T__4=5,k.T__5=6,k.T__6=7,k.T__7=8,k.T__8=9,k.T__9=10,k.T__10=11,k.T__11=12,k.T__12=13,k.T__13=14,k.T__14=15,k.T__15=16,k.T__16=17,k.T__17=18,k.T__18=19,k.T__19=20,k.T__20=21,k.T__21=22,k.T__22=23,k.T__23=24,k.T__24=25,k.T__25=26,k.T__26=27,k.T__27=28,k.T__28=29,k.T__29=30,k.T__30=31,k.T__31=32,k.T__32=33,k.T__33=34,k.T__34=35,k.T__35=36,k.T__36=37,k.T__37=38,k.T__38=39,k.T__39=40,k.T__40=41,k.T__41=42,k.T__42=43,k.T__43=44,k.T__44=45,k.T__45=46,k.T__46=47,k.T__47=48,k.T__48=49,k.T__49=50,k.T__50=51,k.T__51=52,k.T__52=53,k.T__53=54,k.T__54=55,k.T__55=56,k.T__56=57,k.T__57=58,k.T__58=59,k.T__59=60,k.T__60=61,k.T__61=62,k.T__62=63,k.T__63=64,k.T__64=65,k.T__65=66,k.T__66=67,k.T__67=68,k.T__68=69,k.T__69=70,k.T__70=71,k.T__71=72,k.T__72=73,k.T__73=74,k.T__74=75,k.T__75=76,k.T__76=77,k.T__77=78,k.T__78=79,k.T__79=80,k.T__80=81,k.T__81=82,k.T__82=83,k.T__83=84,k.T__84=85,k.T__85=86,k.T__86=87,k.T__87=88,k.T__88=89,k.T__89=90,k.T__90=91,k.T__91=92,k.T__92=93,k.T__93=94,k.T__94=95,k.T__95=96,k.Int=97,k.Uint=98,k.Byte=99,k.Fixed=100,k.Ufixed=101,k.BooleanLiteral=102,k.DecimalNumber=103,k.HexNumber=104,k.NumberUnit=105,k.HexLiteralFragment=106,k.ReservedKeyword=107,k.AnonymousKeyword=108,k.BreakKeyword=109,k.ConstantKeyword=110,k.TransientKeyword=111,k.ImmutableKeyword=112,k.ContinueKeyword=113,k.LeaveKeyword=114,k.ExternalKeyword=115,k.IndexedKeyword=116,k.InternalKeyword=117,k.PayableKeyword=118,k.PrivateKeyword=119,k.PublicKeyword=120,k.VirtualKeyword=121,k.PureKeyword=122,k.TypeKeyword=123,k.ViewKeyword=124,k.GlobalKeyword=125,k.ConstructorKeyword=126,k.FallbackKeyword=127,k.ReceiveKeyword=128,k.Identifier=129,k.StringLiteralFragment=130,k.VersionLiteral=131,k.WS=132,k.COMMENT=133,k.LINE_COMMENT=134,k.EOF=S.EOF,k.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],k.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'","'transient'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],k.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","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],k.modeNames=["DEFAULT_MODE"],k.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","TransientKeyword","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"],k._serializedATN=[4,0,134,1348,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,2,142,7,142,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,724,8,96,1,97,1,97,1,97,1,97,1,97,1,97,3,97,732,8,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,3,98,741,8,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,4,99,752,8,99,11,99,12,99,753,3,99,756,8,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,4,100,768,8,100,11,100,12,100,769,3,100,772,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,857,8,101,1,102,1,102,1,102,1,102,1,102,3,102,864,8,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,3,103,875,8,103,1,104,1,104,3,104,879,8,104,1,104,1,104,3,104,883,8,104,1,104,1,104,3,104,887,8,104,1,104,3,104,890,8,104,1,105,1,105,3,105,894,8,105,1,105,5,105,897,8,105,10,105,12,105,900,9,105,1,106,1,106,1,106,1,106,1,107,1,107,3,107,908,8,107,1,107,5,107,911,8,107,10,107,12,107,914,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,972,8,108,1,109,1,109,1,109,1,109,1,109,1,109,3,109,980,8,109,1,109,1,109,1,109,3,109,985,8,109,1,109,3,109,988,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,1080,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,116,1,117,1,117,1,117,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,119,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,121,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,123,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,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,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,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,133,1,133,5,133,1252,8,133,10,133,12,133,1255,9,133,1,134,1,134,1,135,1,135,1,136,1,136,1,136,1,136,1,136,1,136,1,136,3,136,1268,8,136,1,136,1,136,5,136,1272,8,136,10,136,12,136,1275,9,136,1,136,1,136,1,136,5,136,1280,8,136,10,136,12,136,1283,9,136,1,136,3,136,1286,8,136,1,137,1,137,1,137,3,137,1291,8,137,1,138,1,138,1,138,3,138,1296,8,138,1,139,4,139,1299,8,139,11,139,12,139,1300,1,139,1,139,4,139,1305,8,139,11,139,12,139,1306,1,139,1,139,4,139,1311,8,139,11,139,12,139,1312,3,139,1315,8,139,1,140,4,140,1318,8,140,11,140,12,140,1319,1,140,1,140,1,141,1,141,1,141,1,141,5,141,1328,8,141,10,141,12,141,1331,9,141,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142,5,142,1342,8,142,10,142,12,142,1345,9,142,1,142,1,142,1,1329,0,143,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,129,269,0,271,0,273,130,275,0,277,0,279,131,281,132,283,133,285,134,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,1430,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,267,1,0,0,0,0,273,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,1,287,1,0,0,0,3,294,1,0,0,0,5,296,1,0,0,0,7,298,1,0,0,0,9,301,1,0,0,0,11,303,1,0,0,0,13,305,1,0,0,0,15,308,1,0,0,0,17,310,1,0,0,0,19,312,1,0,0,0,21,315,1,0,0,0,23,317,1,0,0,0,25,320,1,0,0,0,27,327,1,0,0,0,29,332,1,0,0,0,31,334,1,0,0,0,33,336,1,0,0,0,35,338,1,0,0,0,37,347,1,0,0,0,39,356,1,0,0,0,41,366,1,0,0,0,43,374,1,0,0,0,45,377,1,0,0,0,47,379,1,0,0,0,49,381,1,0,0,0,51,387,1,0,0,0,53,393,1,0,0,0,55,397,1,0,0,0,57,399,1,0,0,0,59,401,1,0,0,0,61,403,1,0,0,0,63,405,1,0,0,0,65,407,1,0,0,0,67,409,1,0,0,0,69,412,1,0,0,0,71,415,1,0,0,0,73,422,1,0,0,0,75,431,1,0,0,0,77,440,1,0,0,0,79,448,1,0,0,0,81,454,1,0,0,0,83,459,1,0,0,0,85,461,1,0,0,0,87,463,1,0,0,0,89,471,1,0,0,0,91,473,1,0,0,0,93,481,1,0,0,0,95,484,1,0,0,0,97,491,1,0,0,0,99,499,1,0,0,0,101,508,1,0,0,0,103,511,1,0,0,0,105,516,1,0,0,0,107,520,1,0,0,0,109,526,1,0,0,0,111,532,1,0,0,0,113,542,1,0,0,0,115,551,1,0,0,0,117,554,1,0,0,0,119,561,1,0,0,0,121,567,1,0,0,0,123,572,1,0,0,0,125,579,1,0,0,0,127,583,1,0,0,0,129,588,1,0,0,0,131,595,1,0,0,0,133,600,1,0,0,0,135,603,1,0,0,0,137,606,1,0,0,0,139,610,1,0,0,0,141,612,1,0,0,0,143,619,1,0,0,0,145,621,1,0,0,0,147,624,1,0,0,0,149,627,1,0,0,0,151,630,1,0,0,0,153,633,1,0,0,0,155,635,1,0,0,0,157,638,1,0,0,0,159,641,1,0,0,0,161,644,1,0,0,0,163,648,1,0,0,0,165,652,1,0,0,0,167,655,1,0,0,0,169,658,1,0,0,0,171,661,1,0,0,0,173,664,1,0,0,0,175,667,1,0,0,0,177,671,1,0,0,0,179,674,1,0,0,0,181,677,1,0,0,0,183,684,1,0,0,0,185,689,1,0,0,0,187,697,1,0,0,0,189,700,1,0,0,0,191,709,1,0,0,0,193,718,1,0,0,0,195,725,1,0,0,0,197,733,1,0,0,0,199,742,1,0,0,0,201,757,1,0,0,0,203,856,1,0,0,0,205,863,1,0,0,0,207,874,1,0,0,0,209,882,1,0,0,0,211,891,1,0,0,0,213,901,1,0,0,0,215,905,1,0,0,0,217,971,1,0,0,0,219,973,1,0,0,0,221,989,1,0,0,0,223,1079,1,0,0,0,225,1081,1,0,0,0,227,1091,1,0,0,0,229,1097,1,0,0,0,231,1106,1,0,0,0,233,1116,1,0,0,0,235,1126,1,0,0,0,237,1135,1,0,0,0,239,1141,1,0,0,0,241,1150,1,0,0,0,243,1158,1,0,0,0,245,1167,1,0,0,0,247,1175,1,0,0,0,249,1183,1,0,0,0,251,1190,1,0,0,0,253,1198,1,0,0,0,255,1203,1,0,0,0,257,1208,1,0,0,0,259,1213,1,0,0,0,261,1220,1,0,0,0,263,1232,1,0,0,0,265,1241,1,0,0,0,267,1249,1,0,0,0,269,1256,1,0,0,0,271,1258,1,0,0,0,273,1267,1,0,0,0,275,1290,1,0,0,0,277,1295,1,0,0,0,279,1298,1,0,0,0,281,1317,1,0,0,0,283,1323,1,0,0,0,285,1337,1,0,0,0,287,288,5,112,0,0,288,289,5,114,0,0,289,290,5,97,0,0,290,291,5,103,0,0,291,292,5,109,0,0,292,293,5,97,0,0,293,2,1,0,0,0,294,295,5,59,0,0,295,4,1,0,0,0,296,297,5,42,0,0,297,6,1,0,0,0,298,299,5,124,0,0,299,300,5,124,0,0,300,8,1,0,0,0,301,302,5,94,0,0,302,10,1,0,0,0,303,304,5,126,0,0,304,12,1,0,0,0,305,306,5,62,0,0,306,307,5,61,0,0,307,14,1,0,0,0,308,309,5,62,0,0,309,16,1,0,0,0,310,311,5,60,0,0,311,18,1,0,0,0,312,313,5,60,0,0,313,314,5,61,0,0,314,20,1,0,0,0,315,316,5,61,0,0,316,22,1,0,0,0,317,318,5,97,0,0,318,319,5,115,0,0,319,24,1,0,0,0,320,321,5,105,0,0,321,322,5,109,0,0,322,323,5,112,0,0,323,324,5,111,0,0,324,325,5,114,0,0,325,326,5,116,0,0,326,26,1,0,0,0,327,328,5,102,0,0,328,329,5,114,0,0,329,330,5,111,0,0,330,331,5,109,0,0,331,28,1,0,0,0,332,333,5,123,0,0,333,30,1,0,0,0,334,335,5,44,0,0,335,32,1,0,0,0,336,337,5,125,0,0,337,34,1,0,0,0,338,339,5,97,0,0,339,340,5,98,0,0,340,341,5,115,0,0,341,342,5,116,0,0,342,343,5,114,0,0,343,344,5,97,0,0,344,345,5,99,0,0,345,346,5,116,0,0,346,36,1,0,0,0,347,348,5,99,0,0,348,349,5,111,0,0,349,350,5,110,0,0,350,351,5,116,0,0,351,352,5,114,0,0,352,353,5,97,0,0,353,354,5,99,0,0,354,355,5,116,0,0,355,38,1,0,0,0,356,357,5,105,0,0,357,358,5,110,0,0,358,359,5,116,0,0,359,360,5,101,0,0,360,361,5,114,0,0,361,362,5,102,0,0,362,363,5,97,0,0,363,364,5,99,0,0,364,365,5,101,0,0,365,40,1,0,0,0,366,367,5,108,0,0,367,368,5,105,0,0,368,369,5,98,0,0,369,370,5,114,0,0,370,371,5,97,0,0,371,372,5,114,0,0,372,373,5,121,0,0,373,42,1,0,0,0,374,375,5,105,0,0,375,376,5,115,0,0,376,44,1,0,0,0,377,378,5,40,0,0,378,46,1,0,0,0,379,380,5,41,0,0,380,48,1,0,0,0,381,382,5,101,0,0,382,383,5,114,0,0,383,384,5,114,0,0,384,385,5,111,0,0,385,386,5,114,0,0,386,50,1,0,0,0,387,388,5,117,0,0,388,389,5,115,0,0,389,390,5,105,0,0,390,391,5,110,0,0,391,392,5,103,0,0,392,52,1,0,0,0,393,394,5,102,0,0,394,395,5,111,0,0,395,396,5,114,0,0,396,54,1,0,0,0,397,398,5,124,0,0,398,56,1,0,0,0,399,400,5,38,0,0,400,58,1,0,0,0,401,402,5,43,0,0,402,60,1,0,0,0,403,404,5,45,0,0,404,62,1,0,0,0,405,406,5,47,0,0,406,64,1,0,0,0,407,408,5,37,0,0,408,66,1,0,0,0,409,410,5,61,0,0,410,411,5,61,0,0,411,68,1,0,0,0,412,413,5,33,0,0,413,414,5,61,0,0,414,70,1,0,0,0,415,416,5,115,0,0,416,417,5,116,0,0,417,418,5,114,0,0,418,419,5,117,0,0,419,420,5,99,0,0,420,421,5,116,0,0,421,72,1,0,0,0,422,423,5,109,0,0,423,424,5,111,0,0,424,425,5,100,0,0,425,426,5,105,0,0,426,427,5,102,0,0,427,428,5,105,0,0,428,429,5,101,0,0,429,430,5,114,0,0,430,74,1,0,0,0,431,432,5,102,0,0,432,433,5,117,0,0,433,434,5,110,0,0,434,435,5,99,0,0,435,436,5,116,0,0,436,437,5,105,0,0,437,438,5,111,0,0,438,439,5,110,0,0,439,76,1,0,0,0,440,441,5,114,0,0,441,442,5,101,0,0,442,443,5,116,0,0,443,444,5,117,0,0,444,445,5,114,0,0,445,446,5,110,0,0,446,447,5,115,0,0,447,78,1,0,0,0,448,449,5,101,0,0,449,450,5,118,0,0,450,451,5,101,0,0,451,452,5,110,0,0,452,453,5,116,0,0,453,80,1,0,0,0,454,455,5,101,0,0,455,456,5,110,0,0,456,457,5,117,0,0,457,458,5,109,0,0,458,82,1,0,0,0,459,460,5,91,0,0,460,84,1,0,0,0,461,462,5,93,0,0,462,86,1,0,0,0,463,464,5,97,0,0,464,465,5,100,0,0,465,466,5,100,0,0,466,467,5,114,0,0,467,468,5,101,0,0,468,469,5,115,0,0,469,470,5,115,0,0,470,88,1,0,0,0,471,472,5,46,0,0,472,90,1,0,0,0,473,474,5,109,0,0,474,475,5,97,0,0,475,476,5,112,0,0,476,477,5,112,0,0,477,478,5,105,0,0,478,479,5,110,0,0,479,480,5,103,0,0,480,92,1,0,0,0,481,482,5,61,0,0,482,483,5,62,0,0,483,94,1,0,0,0,484,485,5,109,0,0,485,486,5,101,0,0,486,487,5,109,0,0,487,488,5,111,0,0,488,489,5,114,0,0,489,490,5,121,0,0,490,96,1,0,0,0,491,492,5,115,0,0,492,493,5,116,0,0,493,494,5,111,0,0,494,495,5,114,0,0,495,496,5,97,0,0,496,497,5,103,0,0,497,498,5,101,0,0,498,98,1,0,0,0,499,500,5,99,0,0,500,501,5,97,0,0,501,502,5,108,0,0,502,503,5,108,0,0,503,504,5,100,0,0,504,505,5,97,0,0,505,506,5,116,0,0,506,507,5,97,0,0,507,100,1,0,0,0,508,509,5,105,0,0,509,510,5,102,0,0,510,102,1,0,0,0,511,512,5,101,0,0,512,513,5,108,0,0,513,514,5,115,0,0,514,515,5,101,0,0,515,104,1,0,0,0,516,517,5,116,0,0,517,518,5,114,0,0,518,519,5,121,0,0,519,106,1,0,0,0,520,521,5,99,0,0,521,522,5,97,0,0,522,523,5,116,0,0,523,524,5,99,0,0,524,525,5,104,0,0,525,108,1,0,0,0,526,527,5,119,0,0,527,528,5,104,0,0,528,529,5,105,0,0,529,530,5,108,0,0,530,531,5,101,0,0,531,110,1,0,0,0,532,533,5,117,0,0,533,534,5,110,0,0,534,535,5,99,0,0,535,536,5,104,0,0,536,537,5,101,0,0,537,538,5,99,0,0,538,539,5,107,0,0,539,540,5,101,0,0,540,541,5,100,0,0,541,112,1,0,0,0,542,543,5,97,0,0,543,544,5,115,0,0,544,545,5,115,0,0,545,546,5,101,0,0,546,547,5,109,0,0,547,548,5,98,0,0,548,549,5,108,0,0,549,550,5,121,0,0,550,114,1,0,0,0,551,552,5,100,0,0,552,553,5,111,0,0,553,116,1,0,0,0,554,555,5,114,0,0,555,556,5,101,0,0,556,557,5,116,0,0,557,558,5,117,0,0,558,559,5,114,0,0,559,560,5,110,0,0,560,118,1,0,0,0,561,562,5,116,0,0,562,563,5,104,0,0,563,564,5,114,0,0,564,565,5,111,0,0,565,566,5,119,0,0,566,120,1,0,0,0,567,568,5,101,0,0,568,569,5,109,0,0,569,570,5,105,0,0,570,571,5,116,0,0,571,122,1,0,0,0,572,573,5,114,0,0,573,574,5,101,0,0,574,575,5,118,0,0,575,576,5,101,0,0,576,577,5,114,0,0,577,578,5,116,0,0,578,124,1,0,0,0,579,580,5,118,0,0,580,581,5,97,0,0,581,582,5,114,0,0,582,126,1,0,0,0,583,584,5,98,0,0,584,585,5,111,0,0,585,586,5,111,0,0,586,587,5,108,0,0,587,128,1,0,0,0,588,589,5,115,0,0,589,590,5,116,0,0,590,591,5,114,0,0,591,592,5,105,0,0,592,593,5,110,0,0,593,594,5,103,0,0,594,130,1,0,0,0,595,596,5,98,0,0,596,597,5,121,0,0,597,598,5,116,0,0,598,599,5,101,0,0,599,132,1,0,0,0,600,601,5,43,0,0,601,602,5,43,0,0,602,134,1,0,0,0,603,604,5,45,0,0,604,605,5,45,0,0,605,136,1,0,0,0,606,607,5,110,0,0,607,608,5,101,0,0,608,609,5,119,0,0,609,138,1,0,0,0,610,611,5,58,0,0,611,140,1,0,0,0,612,613,5,100,0,0,613,614,5,101,0,0,614,615,5,108,0,0,615,616,5,101,0,0,616,617,5,116,0,0,617,618,5,101,0,0,618,142,1,0,0,0,619,620,5,33,0,0,620,144,1,0,0,0,621,622,5,42,0,0,622,623,5,42,0,0,623,146,1,0,0,0,624,625,5,60,0,0,625,626,5,60,0,0,626,148,1,0,0,0,627,628,5,62,0,0,628,629,5,62,0,0,629,150,1,0,0,0,630,631,5,38,0,0,631,632,5,38,0,0,632,152,1,0,0,0,633,634,5,63,0,0,634,154,1,0,0,0,635,636,5,124,0,0,636,637,5,61,0,0,637,156,1,0,0,0,638,639,5,94,0,0,639,640,5,61,0,0,640,158,1,0,0,0,641,642,5,38,0,0,642,643,5,61,0,0,643,160,1,0,0,0,644,645,5,60,0,0,645,646,5,60,0,0,646,647,5,61,0,0,647,162,1,0,0,0,648,649,5,62,0,0,649,650,5,62,0,0,650,651,5,61,0,0,651,164,1,0,0,0,652,653,5,43,0,0,653,654,5,61,0,0,654,166,1,0,0,0,655,656,5,45,0,0,656,657,5,61,0,0,657,168,1,0,0,0,658,659,5,42,0,0,659,660,5,61,0,0,660,170,1,0,0,0,661,662,5,47,0,0,662,663,5,61,0,0,663,172,1,0,0,0,664,665,5,37,0,0,665,666,5,61,0,0,666,174,1,0,0,0,667,668,5,108,0,0,668,669,5,101,0,0,669,670,5,116,0,0,670,176,1,0,0,0,671,672,5,58,0,0,672,673,5,61,0,0,673,178,1,0,0,0,674,675,5,61,0,0,675,676,5,58,0,0,676,180,1,0,0,0,677,678,5,115,0,0,678,679,5,119,0,0,679,680,5,105,0,0,680,681,5,116,0,0,681,682,5,99,0,0,682,683,5,104,0,0,683,182,1,0,0,0,684,685,5,99,0,0,685,686,5,97,0,0,686,687,5,115,0,0,687,688,5,101,0,0,688,184,1,0,0,0,689,690,5,100,0,0,690,691,5,101,0,0,691,692,5,102,0,0,692,693,5,97,0,0,693,694,5,117,0,0,694,695,5,108,0,0,695,696,5,116,0,0,696,186,1,0,0,0,697,698,5,45,0,0,698,699,5,62,0,0,699,188,1,0,0,0,700,701,5,99,0,0,701,702,5,97,0,0,702,703,5,108,0,0,703,704,5,108,0,0,704,705,5,98,0,0,705,706,5,97,0,0,706,707,5,99,0,0,707,708,5,107,0,0,708,190,1,0,0,0,709,710,5,111,0,0,710,711,5,118,0,0,711,712,5,101,0,0,712,713,5,114,0,0,713,714,5,114,0,0,714,715,5,105,0,0,715,716,5,100,0,0,716,717,5,101,0,0,717,192,1,0,0,0,718,719,5,105,0,0,719,720,5,110,0,0,720,721,5,116,0,0,721,723,1,0,0,0,722,724,3,203,101,0,723,722,1,0,0,0,723,724,1,0,0,0,724,194,1,0,0,0,725,726,5,117,0,0,726,727,5,105,0,0,727,728,5,110,0,0,728,729,5,116,0,0,729,731,1,0,0,0,730,732,3,203,101,0,731,730,1,0,0,0,731,732,1,0,0,0,732,196,1,0,0,0,733,734,5,98,0,0,734,735,5,121,0,0,735,736,5,116,0,0,736,737,5,101,0,0,737,738,5,115,0,0,738,740,1,0,0,0,739,741,3,205,102,0,740,739,1,0,0,0,740,741,1,0,0,0,741,198,1,0,0,0,742,743,5,102,0,0,743,744,5,105,0,0,744,745,5,120,0,0,745,746,5,101,0,0,746,747,5,100,0,0,747,755,1,0,0,0,748,749,3,203,101,0,749,751,5,120,0,0,750,752,7,0,0,0,751,750,1,0,0,0,752,753,1,0,0,0,753,751,1,0,0,0,753,754,1,0,0,0,754,756,1,0,0,0,755,748,1,0,0,0,755,756,1,0,0,0,756,200,1,0,0,0,757,758,5,117,0,0,758,759,5,102,0,0,759,760,5,105,0,0,760,761,5,120,0,0,761,762,5,101,0,0,762,763,5,100,0,0,763,771,1,0,0,0,764,765,3,203,101,0,765,767,5,120,0,0,766,768,7,0,0,0,767,766,1,0,0,0,768,769,1,0,0,0,769,767,1,0,0,0,769,770,1,0,0,0,770,772,1,0,0,0,771,764,1,0,0,0,771,772,1,0,0,0,772,202,1,0,0,0,773,857,5,56,0,0,774,775,5,49,0,0,775,857,5,54,0,0,776,777,5,50,0,0,777,857,5,52,0,0,778,779,5,51,0,0,779,857,5,50,0,0,780,781,5,52,0,0,781,857,5,48,0,0,782,783,5,52,0,0,783,857,5,56,0,0,784,785,5,53,0,0,785,857,5,54,0,0,786,787,5,54,0,0,787,857,5,52,0,0,788,789,5,55,0,0,789,857,5,50,0,0,790,791,5,56,0,0,791,857,5,48,0,0,792,793,5,56,0,0,793,857,5,56,0,0,794,795,5,57,0,0,795,857,5,54,0,0,796,797,5,49,0,0,797,798,5,48,0,0,798,857,5,52,0,0,799,800,5,49,0,0,800,801,5,49,0,0,801,857,5,50,0,0,802,803,5,49,0,0,803,804,5,50,0,0,804,857,5,48,0,0,805,806,5,49,0,0,806,807,5,50,0,0,807,857,5,56,0,0,808,809,5,49,0,0,809,810,5,51,0,0,810,857,5,54,0,0,811,812,5,49,0,0,812,813,5,52,0,0,813,857,5,52,0,0,814,815,5,49,0,0,815,816,5,53,0,0,816,857,5,50,0,0,817,818,5,49,0,0,818,819,5,54,0,0,819,857,5,48,0,0,820,821,5,49,0,0,821,822,5,54,0,0,822,857,5,56,0,0,823,824,5,49,0,0,824,825,5,55,0,0,825,857,5,54,0,0,826,827,5,49,0,0,827,828,5,56,0,0,828,857,5,52,0,0,829,830,5,49,0,0,830,831,5,57,0,0,831,857,5,50,0,0,832,833,5,50,0,0,833,834,5,48,0,0,834,857,5,48,0,0,835,836,5,50,0,0,836,837,5,48,0,0,837,857,5,56,0,0,838,839,5,50,0,0,839,840,5,49,0,0,840,857,5,54,0,0,841,842,5,50,0,0,842,843,5,50,0,0,843,857,5,52,0,0,844,845,5,50,0,0,845,846,5,51,0,0,846,857,5,50,0,0,847,848,5,50,0,0,848,849,5,52,0,0,849,857,5,48,0,0,850,851,5,50,0,0,851,852,5,52,0,0,852,857,5,56,0,0,853,854,5,50,0,0,854,855,5,53,0,0,855,857,5,54,0,0,856,773,1,0,0,0,856,774,1,0,0,0,856,776,1,0,0,0,856,778,1,0,0,0,856,780,1,0,0,0,856,782,1,0,0,0,856,784,1,0,0,0,856,786,1,0,0,0,856,788,1,0,0,0,856,790,1,0,0,0,856,792,1,0,0,0,856,794,1,0,0,0,856,796,1,0,0,0,856,799,1,0,0,0,856,802,1,0,0,0,856,805,1,0,0,0,856,808,1,0,0,0,856,811,1,0,0,0,856,814,1,0,0,0,856,817,1,0,0,0,856,820,1,0,0,0,856,823,1,0,0,0,856,826,1,0,0,0,856,829,1,0,0,0,856,832,1,0,0,0,856,835,1,0,0,0,856,838,1,0,0,0,856,841,1,0,0,0,856,844,1,0,0,0,856,847,1,0,0,0,856,850,1,0,0,0,856,853,1,0,0,0,857,204,1,0,0,0,858,864,7,1,0,0,859,860,7,2,0,0,860,864,7,0,0,0,861,862,5,51,0,0,862,864,7,3,0,0,863,858,1,0,0,0,863,859,1,0,0,0,863,861,1,0,0,0,864,206,1,0,0,0,865,866,5,116,0,0,866,867,5,114,0,0,867,868,5,117,0,0,868,875,5,101,0,0,869,870,5,102,0,0,870,871,5,97,0,0,871,872,5,108,0,0,872,873,5,115,0,0,873,875,5,101,0,0,874,865,1,0,0,0,874,869,1,0,0,0,875,208,1,0,0,0,876,883,3,211,105,0,877,879,3,211,105,0,878,877,1,0,0,0,878,879,1,0,0,0,879,880,1,0,0,0,880,881,5,46,0,0,881,883,3,211,105,0,882,876,1,0,0,0,882,878,1,0,0,0,883,889,1,0,0,0,884,886,7,4,0,0,885,887,5,45,0,0,886,885,1,0,0,0,886,887,1,0,0,0,887,888,1,0,0,0,888,890,3,211,105,0,889,884,1,0,0,0,889,890,1,0,0,0,890,210,1,0,0,0,891,898,7,0,0,0,892,894,5,95,0,0,893,892,1,0,0,0,893,894,1,0,0,0,894,895,1,0,0,0,895,897,7,0,0,0,896,893,1,0,0,0,897,900,1,0,0,0,898,896,1,0,0,0,898,899,1,0,0,0,899,212,1,0,0,0,900,898,1,0,0,0,901,902,5,48,0,0,902,903,7,5,0,0,903,904,3,215,107,0,904,214,1,0,0,0,905,912,3,221,110,0,906,908,5,95,0,0,907,906,1,0,0,0,907,908,1,0,0,0,908,909,1,0,0,0,909,911,3,221,110,0,910,907,1,0,0,0,911,914,1,0,0,0,912,910,1,0,0,0,912,913,1,0,0,0,913,216,1,0,0,0,914,912,1,0,0,0,915,916,5,119,0,0,916,917,5,101,0,0,917,972,5,105,0,0,918,919,5,103,0,0,919,920,5,119,0,0,920,921,5,101,0,0,921,972,5,105,0,0,922,923,5,115,0,0,923,924,5,122,0,0,924,925,5,97,0,0,925,926,5,98,0,0,926,972,5,111,0,0,927,928,5,102,0,0,928,929,5,105,0,0,929,930,5,110,0,0,930,931,5,110,0,0,931,932,5,101,0,0,932,972,5,121,0,0,933,934,5,101,0,0,934,935,5,116,0,0,935,936,5,104,0,0,936,937,5,101,0,0,937,972,5,114,0,0,938,939,5,115,0,0,939,940,5,101,0,0,940,941,5,99,0,0,941,942,5,111,0,0,942,943,5,110,0,0,943,944,5,100,0,0,944,972,5,115,0,0,945,946,5,109,0,0,946,947,5,105,0,0,947,948,5,110,0,0,948,949,5,117,0,0,949,950,5,116,0,0,950,951,5,101,0,0,951,972,5,115,0,0,952,953,5,104,0,0,953,954,5,111,0,0,954,955,5,117,0,0,955,956,5,114,0,0,956,972,5,115,0,0,957,958,5,100,0,0,958,959,5,97,0,0,959,960,5,121,0,0,960,972,5,115,0,0,961,962,5,119,0,0,962,963,5,101,0,0,963,964,5,101,0,0,964,965,5,107,0,0,965,972,5,115,0,0,966,967,5,121,0,0,967,968,5,101,0,0,968,969,5,97,0,0,969,970,5,114,0,0,970,972,5,115,0,0,971,915,1,0,0,0,971,918,1,0,0,0,971,922,1,0,0,0,971,927,1,0,0,0,971,933,1,0,0,0,971,938,1,0,0,0,971,945,1,0,0,0,971,952,1,0,0,0,971,957,1,0,0,0,971,961,1,0,0,0,971,966,1,0,0,0,972,218,1,0,0,0,973,974,5,104,0,0,974,975,5,101,0,0,975,976,5,120,0,0,976,987,1,0,0,0,977,979,5,34,0,0,978,980,3,215,107,0,979,978,1,0,0,0,979,980,1,0,0,0,980,981,1,0,0,0,981,988,5,34,0,0,982,984,5,39,0,0,983,985,3,215,107,0,984,983,1,0,0,0,984,985,1,0,0,0,985,986,1,0,0,0,986,988,5,39,0,0,987,977,1,0,0,0,987,982,1,0,0,0,988,220,1,0,0,0,989,990,7,6,0,0,990,222,1,0,0,0,991,992,5,97,0,0,992,993,5,98,0,0,993,994,5,115,0,0,994,995,5,116,0,0,995,996,5,114,0,0,996,997,5,97,0,0,997,998,5,99,0,0,998,1080,5,116,0,0,999,1e3,5,97,0,0,1e3,1001,5,102,0,0,1001,1002,5,116,0,0,1002,1003,5,101,0,0,1003,1080,5,114,0,0,1004,1005,5,99,0,0,1005,1006,5,97,0,0,1006,1007,5,115,0,0,1007,1080,5,101,0,0,1008,1009,5,99,0,0,1009,1010,5,97,0,0,1010,1011,5,116,0,0,1011,1012,5,99,0,0,1012,1080,5,104,0,0,1013,1014,5,100,0,0,1014,1015,5,101,0,0,1015,1016,5,102,0,0,1016,1017,5,97,0,0,1017,1018,5,117,0,0,1018,1019,5,108,0,0,1019,1080,5,116,0,0,1020,1021,5,102,0,0,1021,1022,5,105,0,0,1022,1023,5,110,0,0,1023,1024,5,97,0,0,1024,1080,5,108,0,0,1025,1026,5,105,0,0,1026,1080,5,110,0,0,1027,1028,5,105,0,0,1028,1029,5,110,0,0,1029,1030,5,108,0,0,1030,1031,5,105,0,0,1031,1032,5,110,0,0,1032,1080,5,101,0,0,1033,1034,5,108,0,0,1034,1035,5,101,0,0,1035,1080,5,116,0,0,1036,1037,5,109,0,0,1037,1038,5,97,0,0,1038,1039,5,116,0,0,1039,1040,5,99,0,0,1040,1080,5,104,0,0,1041,1042,5,110,0,0,1042,1043,5,117,0,0,1043,1044,5,108,0,0,1044,1080,5,108,0,0,1045,1046,5,111,0,0,1046,1080,5,102,0,0,1047,1048,5,114,0,0,1048,1049,5,101,0,0,1049,1050,5,108,0,0,1050,1051,5,111,0,0,1051,1052,5,99,0,0,1052,1053,5,97,0,0,1053,1054,5,116,0,0,1054,1055,5,97,0,0,1055,1056,5,98,0,0,1056,1057,5,108,0,0,1057,1080,5,101,0,0,1058,1059,5,115,0,0,1059,1060,5,116,0,0,1060,1061,5,97,0,0,1061,1062,5,116,0,0,1062,1063,5,105,0,0,1063,1080,5,99,0,0,1064,1065,5,115,0,0,1065,1066,5,119,0,0,1066,1067,5,105,0,0,1067,1068,5,116,0,0,1068,1069,5,99,0,0,1069,1080,5,104,0,0,1070,1071,5,116,0,0,1071,1072,5,114,0,0,1072,1080,5,121,0,0,1073,1074,5,116,0,0,1074,1075,5,121,0,0,1075,1076,5,112,0,0,1076,1077,5,101,0,0,1077,1078,5,111,0,0,1078,1080,5,102,0,0,1079,991,1,0,0,0,1079,999,1,0,0,0,1079,1004,1,0,0,0,1079,1008,1,0,0,0,1079,1013,1,0,0,0,1079,1020,1,0,0,0,1079,1025,1,0,0,0,1079,1027,1,0,0,0,1079,1033,1,0,0,0,1079,1036,1,0,0,0,1079,1041,1,0,0,0,1079,1045,1,0,0,0,1079,1047,1,0,0,0,1079,1058,1,0,0,0,1079,1064,1,0,0,0,1079,1070,1,0,0,0,1079,1073,1,0,0,0,1080,224,1,0,0,0,1081,1082,5,97,0,0,1082,1083,5,110,0,0,1083,1084,5,111,0,0,1084,1085,5,110,0,0,1085,1086,5,121,0,0,1086,1087,5,109,0,0,1087,1088,5,111,0,0,1088,1089,5,117,0,0,1089,1090,5,115,0,0,1090,226,1,0,0,0,1091,1092,5,98,0,0,1092,1093,5,114,0,0,1093,1094,5,101,0,0,1094,1095,5,97,0,0,1095,1096,5,107,0,0,1096,228,1,0,0,0,1097,1098,5,99,0,0,1098,1099,5,111,0,0,1099,1100,5,110,0,0,1100,1101,5,115,0,0,1101,1102,5,116,0,0,1102,1103,5,97,0,0,1103,1104,5,110,0,0,1104,1105,5,116,0,0,1105,230,1,0,0,0,1106,1107,5,116,0,0,1107,1108,5,114,0,0,1108,1109,5,97,0,0,1109,1110,5,110,0,0,1110,1111,5,115,0,0,1111,1112,5,105,0,0,1112,1113,5,101,0,0,1113,1114,5,110,0,0,1114,1115,5,116,0,0,1115,232,1,0,0,0,1116,1117,5,105,0,0,1117,1118,5,109,0,0,1118,1119,5,109,0,0,1119,1120,5,117,0,0,1120,1121,5,116,0,0,1121,1122,5,97,0,0,1122,1123,5,98,0,0,1123,1124,5,108,0,0,1124,1125,5,101,0,0,1125,234,1,0,0,0,1126,1127,5,99,0,0,1127,1128,5,111,0,0,1128,1129,5,110,0,0,1129,1130,5,116,0,0,1130,1131,5,105,0,0,1131,1132,5,110,0,0,1132,1133,5,117,0,0,1133,1134,5,101,0,0,1134,236,1,0,0,0,1135,1136,5,108,0,0,1136,1137,5,101,0,0,1137,1138,5,97,0,0,1138,1139,5,118,0,0,1139,1140,5,101,0,0,1140,238,1,0,0,0,1141,1142,5,101,0,0,1142,1143,5,120,0,0,1143,1144,5,116,0,0,1144,1145,5,101,0,0,1145,1146,5,114,0,0,1146,1147,5,110,0,0,1147,1148,5,97,0,0,1148,1149,5,108,0,0,1149,240,1,0,0,0,1150,1151,5,105,0,0,1151,1152,5,110,0,0,1152,1153,5,100,0,0,1153,1154,5,101,0,0,1154,1155,5,120,0,0,1155,1156,5,101,0,0,1156,1157,5,100,0,0,1157,242,1,0,0,0,1158,1159,5,105,0,0,1159,1160,5,110,0,0,1160,1161,5,116,0,0,1161,1162,5,101,0,0,1162,1163,5,114,0,0,1163,1164,5,110,0,0,1164,1165,5,97,0,0,1165,1166,5,108,0,0,1166,244,1,0,0,0,1167,1168,5,112,0,0,1168,1169,5,97,0,0,1169,1170,5,121,0,0,1170,1171,5,97,0,0,1171,1172,5,98,0,0,1172,1173,5,108,0,0,1173,1174,5,101,0,0,1174,246,1,0,0,0,1175,1176,5,112,0,0,1176,1177,5,114,0,0,1177,1178,5,105,0,0,1178,1179,5,118,0,0,1179,1180,5,97,0,0,1180,1181,5,116,0,0,1181,1182,5,101,0,0,1182,248,1,0,0,0,1183,1184,5,112,0,0,1184,1185,5,117,0,0,1185,1186,5,98,0,0,1186,1187,5,108,0,0,1187,1188,5,105,0,0,1188,1189,5,99,0,0,1189,250,1,0,0,0,1190,1191,5,118,0,0,1191,1192,5,105,0,0,1192,1193,5,114,0,0,1193,1194,5,116,0,0,1194,1195,5,117,0,0,1195,1196,5,97,0,0,1196,1197,5,108,0,0,1197,252,1,0,0,0,1198,1199,5,112,0,0,1199,1200,5,117,0,0,1200,1201,5,114,0,0,1201,1202,5,101,0,0,1202,254,1,0,0,0,1203,1204,5,116,0,0,1204,1205,5,121,0,0,1205,1206,5,112,0,0,1206,1207,5,101,0,0,1207,256,1,0,0,0,1208,1209,5,118,0,0,1209,1210,5,105,0,0,1210,1211,5,101,0,0,1211,1212,5,119,0,0,1212,258,1,0,0,0,1213,1214,5,103,0,0,1214,1215,5,108,0,0,1215,1216,5,111,0,0,1216,1217,5,98,0,0,1217,1218,5,97,0,0,1218,1219,5,108,0,0,1219,260,1,0,0,0,1220,1221,5,99,0,0,1221,1222,5,111,0,0,1222,1223,5,110,0,0,1223,1224,5,115,0,0,1224,1225,5,116,0,0,1225,1226,5,114,0,0,1226,1227,5,117,0,0,1227,1228,5,99,0,0,1228,1229,5,116,0,0,1229,1230,5,111,0,0,1230,1231,5,114,0,0,1231,262,1,0,0,0,1232,1233,5,102,0,0,1233,1234,5,97,0,0,1234,1235,5,108,0,0,1235,1236,5,108,0,0,1236,1237,5,98,0,0,1237,1238,5,97,0,0,1238,1239,5,99,0,0,1239,1240,5,107,0,0,1240,264,1,0,0,0,1241,1242,5,114,0,0,1242,1243,5,101,0,0,1243,1244,5,99,0,0,1244,1245,5,101,0,0,1245,1246,5,105,0,0,1246,1247,5,118,0,0,1247,1248,5,101,0,0,1248,266,1,0,0,0,1249,1253,3,269,134,0,1250,1252,3,271,135,0,1251,1250,1,0,0,0,1252,1255,1,0,0,0,1253,1251,1,0,0,0,1253,1254,1,0,0,0,1254,268,1,0,0,0,1255,1253,1,0,0,0,1256,1257,7,7,0,0,1257,270,1,0,0,0,1258,1259,7,8,0,0,1259,272,1,0,0,0,1260,1261,5,117,0,0,1261,1262,5,110,0,0,1262,1263,5,105,0,0,1263,1264,5,99,0,0,1264,1265,5,111,0,0,1265,1266,5,100,0,0,1266,1268,5,101,0,0,1267,1260,1,0,0,0,1267,1268,1,0,0,0,1268,1285,1,0,0,0,1269,1273,5,34,0,0,1270,1272,3,275,137,0,1271,1270,1,0,0,0,1272,1275,1,0,0,0,1273,1271,1,0,0,0,1273,1274,1,0,0,0,1274,1276,1,0,0,0,1275,1273,1,0,0,0,1276,1286,5,34,0,0,1277,1281,5,39,0,0,1278,1280,3,277,138,0,1279,1278,1,0,0,0,1280,1283,1,0,0,0,1281,1279,1,0,0,0,1281,1282,1,0,0,0,1282,1284,1,0,0,0,1283,1281,1,0,0,0,1284,1286,5,39,0,0,1285,1269,1,0,0,0,1285,1277,1,0,0,0,1286,274,1,0,0,0,1287,1291,8,9,0,0,1288,1289,5,92,0,0,1289,1291,9,0,0,0,1290,1287,1,0,0,0,1290,1288,1,0,0,0,1291,276,1,0,0,0,1292,1296,8,10,0,0,1293,1294,5,92,0,0,1294,1296,9,0,0,0,1295,1292,1,0,0,0,1295,1293,1,0,0,0,1296,278,1,0,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,1302,1,0,0,0,1302,1304,5,46,0,0,1303,1305,7,0,0,0,1304,1303,1,0,0,0,1305,1306,1,0,0,0,1306,1304,1,0,0,0,1306,1307,1,0,0,0,1307,1314,1,0,0,0,1308,1310,5,46,0,0,1309,1311,7,0,0,0,1310,1309,1,0,0,0,1311,1312,1,0,0,0,1312,1310,1,0,0,0,1312,1313,1,0,0,0,1313,1315,1,0,0,0,1314,1308,1,0,0,0,1314,1315,1,0,0,0,1315,280,1,0,0,0,1316,1318,7,11,0,0,1317,1316,1,0,0,0,1318,1319,1,0,0,0,1319,1317,1,0,0,0,1319,1320,1,0,0,0,1320,1321,1,0,0,0,1321,1322,6,140,0,0,1322,282,1,0,0,0,1323,1324,5,47,0,0,1324,1325,5,42,0,0,1325,1329,1,0,0,0,1326,1328,9,0,0,0,1327,1326,1,0,0,0,1328,1331,1,0,0,0,1329,1330,1,0,0,0,1329,1327,1,0,0,0,1330,1332,1,0,0,0,1331,1329,1,0,0,0,1332,1333,5,42,0,0,1333,1334,5,47,0,0,1334,1335,1,0,0,0,1335,1336,6,141,1,0,1336,284,1,0,0,0,1337,1338,5,47,0,0,1338,1339,5,47,0,0,1339,1343,1,0,0,0,1340,1342,8,12,0,0,1341,1340,1,0,0,0,1342,1345,1,0,0,0,1343,1341,1,0,0,0,1343,1344,1,0,0,0,1344,1346,1,0,0,0,1345,1343,1,0,0,0,1346,1347,6,142,1,0,1347,286,1,0,0,0,38,0,723,731,740,753,755,769,771,856,863,874,878,882,886,889,893,898,907,912,971,979,984,987,1079,1253,1267,1273,1281,1285,1290,1295,1300,1306,1312,1314,1319,1329,1343,2,6,0,0,0,1,0],k.DecisionsToDFA=k._ATN.decisionToState.map(((t,e)=>new p(t,e)));var R=k,A=class t extends x{get grammarFileName(){return"Solidity.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}createFailedPredicateException(t,e){return new y(this,t,e)}constructor(e){super(e),this._interp=new b(this,t._ATN,t.DecisionsToDFA,new T)}sourceUnit(){let e,r=new L(this,this._ctx,this.state);this.enterRule(r,0,t.RULE_sourceUnit);try{for(this.enterOuterAlt(r,1),this.state=215,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&104620034||!(e-36&-32)&&1<<e-36&2080392501||!(e-95&-32)&&1<<e-95&3498573949||!(e-127&-32)&&1<<e-127&7;){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),e=this._input.LA(1)}this.state=218,this.match(t.EOF)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}pragmaDirective(){let e=new I(this,this._ctx,this.state);this.enterRule(e,2,t.RULE_pragmaDirective);try{this.enterOuterAlt(e,1),this.state=220,this.match(t.T__0),this.state=221,this.pragmaName(),this.state=222,this.pragmaValue(),this.state=223,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pragmaName(){let e=new K(this,this._ctx,this.state);this.enterRule(e,4,t.RULE_pragmaName);try{this.enterOuterAlt(e,1),this.state=225,this.identifier()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pragmaValue(){let e=new N(this,this._ctx,this.state);this.enterRule(e,6,t.RULE_pragmaValue);try{switch(this.state=230,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,2,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=227,this.match(t.T__2);break;case 2:this.enterOuterAlt(e,2),this.state=228,this.version();break;case 3:this.enterOuterAlt(e,3),this.state=229,this.expression(0)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}version(){let e,r=new D(this,this._ctx,this.state);this.enterRule(r,8,t.RULE_version);try{for(this.enterOuterAlt(r,1),this.state=232,this.versionConstraint(),this.state=239,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&4080||103===e||131===e;)this.state=234,this._errHandler.sync(this),e=this._input.LA(1),4===e&&(this.state=233,this.match(t.T__3)),this.state=236,this.versionConstraint(),this.state=241,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}versionOperator(){let e,r=new O(this,this._ctx,this.state);this.enterRule(r,10,t.RULE_versionOperator);try{this.enterOuterAlt(r,1),this.state=242,e=this._input.LA(1),-32&e||!(1<<e&4064)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}versionConstraint(){let e,r=new P(this,this._ctx,this.state);this.enterRule(r,12,t.RULE_versionConstraint);try{switch(this.state=252,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(r,1),this.state=245,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&4064&&(this.state=244,this.versionOperator()),this.state=247,this.match(t.VersionLiteral);break;case 2:this.enterOuterAlt(r,2),this.state=249,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&4064&&(this.state=248,this.versionOperator()),this.state=251,this.match(t.DecimalNumber)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}importDeclaration(){let e,r=new q(this,this._ctx,this.state);this.enterRule(r,14,t.RULE_importDeclaration);try{this.enterOuterAlt(r,1),this.state=254,this.identifier(),this.state=257,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=255,this.match(t.T__11),this.state=256,this.identifier())}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}importDirective(){let e,r=new F(this,this._ctx,this.state);this.enterRule(r,16,t.RULE_importDirective);try{switch(this.state=295,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.enterOuterAlt(r,1),this.state=259,this.match(t.T__12),this.state=260,this.importPath(),this.state=263,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=261,this.match(t.T__11),this.state=262,this.identifier()),this.state=265,this.match(t.T__1);break;case 2:switch(this.enterOuterAlt(r,2),this.state=267,this.match(t.T__12),this.state=270,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=268,this.match(t.T__2);break;case 14:case 25:case 44:case 50:case 62:case 95:case 114:case 118:case 125:case 126:case 128:case 129:this.state=269,this.identifier();break;default:throw new w(this)}this.state=274,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=272,this.match(t.T__11),this.state=273,this.identifier()),this.state=276,this.match(t.T__13),this.state=277,this.importPath(),this.state=278,this.match(t.T__1);break;case 3:for(this.enterOuterAlt(r,3),this.state=280,this.match(t.T__12),this.state=281,this.match(t.T__14),this.state=282,this.importDeclaration(),this.state=287,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=283,this.match(t.T__15),this.state=284,this.importDeclaration(),this.state=289,this._errHandler.sync(this),e=this._input.LA(1);this.state=290,this.match(t.T__16),this.state=291,this.match(t.T__13),this.state=292,this.importPath(),this.state=293,this.match(t.T__1)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}importPath(){let e=new U(this,this._ctx,this.state);this.enterRule(e,18,t.RULE_importPath);try{this.enterOuterAlt(e,1),this.state=297,this.match(t.StringLiteralFragment)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}contractDefinition(){let e,r=new M(this,this._ctx,this.state);this.enterRule(r,20,t.RULE_contractDefinition);try{if(this.enterOuterAlt(r,1),this.state=300,this._errHandler.sync(this),e=this._input.LA(1),18===e&&(this.state=299,this.match(t.T__17)),this.state=302,e=this._input.LA(1),-32&e||!(1<<e&3670016)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=303,this.identifier(),this.state=313,this._errHandler.sync(this),e=this._input.LA(1),22===e)for(this.state=304,this.match(t.T__21),this.state=305,this.inheritanceSpecifier(),this.state=310,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=306,this.match(t.T__15),this.state=307,this.inheritanceSpecifier(),this.state=312,this._errHandler.sync(this),e=this._input.LA(1);for(this.state=315,this.match(t.T__14),this.state=319,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&100679680||!(e-36&-32)&&1<<e-36&2080392503||!(e-95&-32)&&1<<e-95&3498573949||!(e-127&-32)&&1<<e-127&7;)this.state=316,this.contractPart(),this.state=321,this._errHandler.sync(this),e=this._input.LA(1);this.state=322,this.match(t.T__16)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}inheritanceSpecifier(){let e,r=new Y(this,this._ctx,this.state);this.enterRule(r,22,t.RULE_inheritanceSpecifier);try{this.enterOuterAlt(r,1),this.state=324,this.userDefinedTypeName(),this.state=330,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=325,this.match(t.T__22),this.state=327,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&3263184960||!(e-38&-32)&&1<<e-38&4278194513||!(e-71&-32)&&1<<e-71&4244635651||!(e-103&-32)&&1<<e-103&248547339)&&(this.state=326,this.expressionList()),this.state=329,this.match(t.T__23))}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}contractPart(){let e=new V(this,this._ctx,this.state);this.enterRule(e,24,t.RULE_contractPart);try{switch(this.state=341,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,20,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=332,this.stateVariableDeclaration();break;case 2:this.enterOuterAlt(e,2),this.state=333,this.usingForDeclaration();break;case 3:this.enterOuterAlt(e,3),this.state=334,this.structDefinition();break;case 4:this.enterOuterAlt(e,4),this.state=335,this.modifierDefinition();break;case 5:this.enterOuterAlt(e,5),this.state=336,this.functionDefinition();break;case 6:this.enterOuterAlt(e,6),this.state=337,this.eventDefinition();break;case 7:this.enterOuterAlt(e,7),this.state=338,this.enumDefinition();break;case 8:this.enterOuterAlt(e,8),this.state=339,this.customErrorDefinition();break;case 9:this.enterOuterAlt(e,9),this.state=340,this.typeDefinition()}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}stateVariableDeclaration(){let e,r=new j(this,this._ctx,this.state);this.enterRule(r,26,t.RULE_stateVariableDeclaration);try{for(this.enterOuterAlt(r,1),this.state=343,this.typeName(0),this.state=353,this._errHandler.sync(this),e=this._input.LA(1);!(e-96&-32)&&1<<e-96&27377665;){switch(this.state=351,this._errHandler.sync(this),this._input.LA(1)){case 120:this.state=344,this.match(t.PublicKeyword);break;case 117:this.state=345,this.match(t.InternalKeyword);break;case 119:this.state=346,this.match(t.PrivateKeyword);break;case 110:this.state=347,this.match(t.ConstantKeyword);break;case 111:this.state=348,this.match(t.TransientKeyword);break;case 112:this.state=349,this.match(t.ImmutableKeyword);break;case 96:this.state=350,this.overrideSpecifier();break;default:throw new w(this)}this.state=355,this._errHandler.sync(this),e=this._input.LA(1)}this.state=356,this.identifier(),this.state=359,this._errHandler.sync(this),e=this._input.LA(1),11===e&&(this.state=357,this.match(t.T__10),this.state=358,this.expression(0)),this.state=361,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}fileLevelConstant(){let e=new B(this,this._ctx,this.state);this.enterRule(e,28,t.RULE_fileLevelConstant);try{this.enterOuterAlt(e,1),this.state=363,this.typeName(0),this.state=364,this.match(t.ConstantKeyword),this.state=365,this.identifier(),this.state=366,this.match(t.T__10),this.state=367,this.expression(0),this.state=368,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}customErrorDefinition(){let e=new H(this,this._ctx,this.state);this.enterRule(e,30,t.RULE_customErrorDefinition);try{this.enterOuterAlt(e,1),this.state=370,this.match(t.T__24),this.state=371,this.identifier(),this.state=372,this.parameterList(),this.state=373,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}typeDefinition(){let e=new $(this,this._ctx,this.state);this.enterRule(e,32,t.RULE_typeDefinition);try{this.enterOuterAlt(e,1),this.state=375,this.match(t.TypeKeyword),this.state=376,this.identifier(),this.state=377,this.match(t.T__21),this.state=378,this.elementaryTypeName(),this.state=379,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}usingForDeclaration(){let e,r=new Q(this,this._ctx,this.state);this.enterRule(r,34,t.RULE_usingForDeclaration);try{switch(this.enterOuterAlt(r,1),this.state=381,this.match(t.T__25),this.state=382,this.usingForObject(),this.state=383,this.match(t.T__26),this.state=386,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=384,this.match(t.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 114:case 118:case 125:case 126:case 128:case 129:this.state=385,this.typeName(0);break;default:throw new w(this)}this.state=389,this._errHandler.sync(this),e=this._input.LA(1),125===e&&(this.state=388,this.match(t.GlobalKeyword)),this.state=391,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}usingForObject(){let e,r=new G(this,this._ctx,this.state);this.enterRule(r,36,t.RULE_usingForObject);try{switch(this.state=405,this._errHandler.sync(this),this._input.LA(1)){case 14:case 25:case 44:case 50:case 62:case 95:case 114:case 118:case 125:case 126:case 128:case 129:this.enterOuterAlt(r,1),this.state=393,this.userDefinedTypeName();break;case 15:for(this.enterOuterAlt(r,2),this.state=394,this.match(t.T__14),this.state=395,this.usingForObjectDirective(),this.state=400,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=396,this.match(t.T__15),this.state=397,this.usingForObjectDirective(),this.state=402,this._errHandler.sync(this),e=this._input.LA(1);this.state=403,this.match(t.T__16);break;default:throw new w(this)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}usingForObjectDirective(){let e,r=new z(this,this._ctx,this.state);this.enterRule(r,38,t.RULE_usingForObjectDirective);try{this.enterOuterAlt(r,1),this.state=407,this.userDefinedTypeName(),this.state=410,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=408,this.match(t.T__11),this.state=409,this.userDefinableOperators())}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}userDefinableOperators(){let e,r=new W(this,this._ctx,this.state);this.enterRule(r,40,t.RULE_userDefinableOperators);try{this.enterOuterAlt(r,1),this.state=412,e=this._input.LA(1),!(-32&e)&&1<<e&4026533864||!(e-32&-32)&&1<<e-32&15?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}structDefinition(){let e,r=new X(this,this._ctx,this.state);this.enterRule(r,42,t.RULE_structDefinition);try{if(this.enterOuterAlt(r,1),this.state=414,this.match(t.T__35),this.state=415,this.identifier(),this.state=416,this.match(t.T__14),this.state=427,this._errHandler.sync(this),e=this._input.LA(1),14===e||25===e||!(e-38&-32)&&1<<e-38&520098113||!(e-95&-32)&&1<<e-95&3230138493||128===e||129===e)for(this.state=417,this.variableDeclaration(),this.state=418,this.match(t.T__1),this.state=424,this._errHandler.sync(this),e=this._input.LA(1);14===e||25===e||!(e-38&-32)&&1<<e-38&520098113||!(e-95&-32)&&1<<e-95&3230138493||128===e||129===e;)this.state=419,this.variableDeclaration(),this.state=420,this.match(t.T__1),this.state=426,this._errHandler.sync(this),e=this._input.LA(1);this.state=429,this.match(t.T__16)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}modifierDefinition(){let e,r=new J(this,this._ctx,this.state);this.enterRule(r,44,t.RULE_modifierDefinition);try{for(this.enterOuterAlt(r,1),this.state=431,this.match(t.T__36),this.state=432,this.identifier(),this.state=434,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=433,this.parameterList()),this.state=440,this._errHandler.sync(this),e=this._input.LA(1);96===e||121===e;){switch(this.state=438,this._errHandler.sync(this),this._input.LA(1)){case 121:this.state=436,this.match(t.VirtualKeyword);break;case 96:this.state=437,this.overrideSpecifier();break;default:throw new w(this)}this.state=442,this._errHandler.sync(this),e=this._input.LA(1)}switch(this.state=445,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=443,this.match(t.T__1);break;case 15:this.state=444,this.block();break;default:throw new w(this)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}modifierInvocation(){let e,r=new Z(this,this._ctx,this.state);this.enterRule(r,46,t.RULE_modifierInvocation);try{this.enterOuterAlt(r,1),this.state=447,this.identifier(),this.state=453,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=448,this.match(t.T__22),this.state=450,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&3263184960||!(e-38&-32)&&1<<e-38&4278194513||!(e-71&-32)&&1<<e-71&4244635651||!(e-103&-32)&&1<<e-103&248547339)&&(this.state=449,this.expressionList()),this.state=452,this.match(t.T__23))}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionDefinition(){let e,r=new tt(this,this._ctx,this.state);this.enterRule(r,48,t.RULE_functionDefinition);try{switch(this.enterOuterAlt(r,1),this.state=455,this.functionDescriptor(),this.state=456,this.parameterList(),this.state=457,this.modifierList(),this.state=459,this._errHandler.sync(this),e=this._input.LA(1),39===e&&(this.state=458,this.returnParameters()),this.state=463,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=461,this.match(t.T__1);break;case 15:this.state=462,this.block();break;default:throw new w(this)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionDescriptor(){let e,r=new et(this,this._ctx,this.state);this.enterRule(r,50,t.RULE_functionDescriptor);try{switch(this.state=472,this._errHandler.sync(this),this._input.LA(1)){case 38:this.enterOuterAlt(r,1),this.state=465,this.match(t.T__37),this.state=467,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e)&&(this.state=466,this.identifier());break;case 126:this.enterOuterAlt(r,2),this.state=469,this.match(t.ConstructorKeyword);break;case 127:this.enterOuterAlt(r,3),this.state=470,this.match(t.FallbackKeyword);break;case 128:this.enterOuterAlt(r,4),this.state=471,this.match(t.ReceiveKeyword);break;default:throw new w(this)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}returnParameters(){let e=new rt(this,this._ctx,this.state);this.enterRule(e,52,t.RULE_returnParameters);try{this.enterOuterAlt(e,1),this.state=474,this.match(t.T__38),this.state=475,this.parameterList()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}modifierList(){let e,r=new st(this,this._ctx,this.state);this.enterRule(r,54,t.RULE_modifierList);try{for(this.enterOuterAlt(r,1),this.state=487,this._errHandler.sync(this),e=this._input.LA(1);14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&4023943171||128===e||129===e;){switch(this.state=485,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,41,this._ctx)){case 1:this.state=477,this.match(t.ExternalKeyword);break;case 2:this.state=478,this.match(t.PublicKeyword);break;case 3:this.state=479,this.match(t.InternalKeyword);break;case 4:this.state=480,this.match(t.PrivateKeyword);break;case 5:this.state=481,this.match(t.VirtualKeyword);break;case 6:this.state=482,this.stateMutability();break;case 7:this.state=483,this.modifierInvocation();break;case 8:this.state=484,this.overrideSpecifier()}this.state=489,this._errHandler.sync(this),e=this._input.LA(1)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}eventDefinition(){let e,r=new it(this,this._ctx,this.state);this.enterRule(r,56,t.RULE_eventDefinition);try{this.enterOuterAlt(r,1),this.state=490,this.match(t.T__39),this.state=491,this.identifier(),this.state=492,this.eventParameterList(),this.state=494,this._errHandler.sync(this),e=this._input.LA(1),108===e&&(this.state=493,this.match(t.AnonymousKeyword)),this.state=496,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}enumValue(){let e=new nt(this,this._ctx,this.state);this.enterRule(e,58,t.RULE_enumValue);try{this.enterOuterAlt(e,1),this.state=498,this.identifier()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}enumDefinition(){let e,r=new at(this,this._ctx,this.state);this.enterRule(r,60,t.RULE_enumDefinition);try{for(this.enterOuterAlt(r,1),this.state=500,this.match(t.T__40),this.state=501,this.identifier(),this.state=502,this.match(t.T__14),this.state=504,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e)&&(this.state=503,this.enumValue()),this.state=510,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=506,this.match(t.T__15),this.state=507,this.enumValue(),this.state=512,this._errHandler.sync(this),e=this._input.LA(1);this.state=513,this.match(t.T__16)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}parameterList(){let e,r=new ot(this,this._ctx,this.state);this.enterRule(r,62,t.RULE_parameterList);try{if(this.enterOuterAlt(r,1),this.state=515,this.match(t.T__22),this.state=524,this._errHandler.sync(this),e=this._input.LA(1),14===e||25===e||!(e-38&-32)&&1<<e-38&520098113||!(e-95&-32)&&1<<e-95&3230138493||128===e||129===e)for(this.state=516,this.parameter(),this.state=521,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=517,this.match(t.T__15),this.state=518,this.parameter(),this.state=523,this._errHandler.sync(this),e=this._input.LA(1);this.state=526,this.match(t.T__23)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}parameter(){let e,r=new ct(this,this._ctx,this.state);this.enterRule(r,64,t.RULE_parameter);try{this.enterOuterAlt(r,1),this.state=528,this.typeName(0),this.state=530,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,48,this._ctx)&&(this.state=529,this.storageLocation()),this.state=533,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e)&&(this.state=532,this.identifier())}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}eventParameterList(){let e,r=new lt(this,this._ctx,this.state);this.enterRule(r,66,t.RULE_eventParameterList);try{if(this.enterOuterAlt(r,1),this.state=535,this.match(t.T__22),this.state=544,this._errHandler.sync(this),e=this._input.LA(1),14===e||25===e||!(e-38&-32)&&1<<e-38&520098113||!(e-95&-32)&&1<<e-95&3230138493||128===e||129===e)for(this.state=536,this.eventParameter(),this.state=541,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=537,this.match(t.T__15),this.state=538,this.eventParameter(),this.state=543,this._errHandler.sync(this),e=this._input.LA(1);this.state=546,this.match(t.T__23)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}eventParameter(){let e,r=new ht(this,this._ctx,this.state);this.enterRule(r,68,t.RULE_eventParameter);try{this.enterOuterAlt(r,1),this.state=548,this.typeName(0),this.state=550,this._errHandler.sync(this),e=this._input.LA(1),116===e&&(this.state=549,this.match(t.IndexedKeyword)),this.state=553,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e)&&(this.state=552,this.identifier())}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionTypeParameterList(){let e,r=new ut(this,this._ctx,this.state);this.enterRule(r,70,t.RULE_functionTypeParameterList);try{if(this.enterOuterAlt(r,1),this.state=555,this.match(t.T__22),this.state=564,this._errHandler.sync(this),e=this._input.LA(1),14===e||25===e||!(e-38&-32)&&1<<e-38&520098113||!(e-95&-32)&&1<<e-95&3230138493||128===e||129===e)for(this.state=556,this.functionTypeParameter(),this.state=561,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=557,this.match(t.T__15),this.state=558,this.functionTypeParameter(),this.state=563,this._errHandler.sync(this),e=this._input.LA(1);this.state=566,this.match(t.T__23)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionTypeParameter(){let e,r=new dt(this,this._ctx,this.state);this.enterRule(r,72,t.RULE_functionTypeParameter);try{this.enterOuterAlt(r,1),this.state=568,this.typeName(0),this.state=570,this._errHandler.sync(this),e=this._input.LA(1),!(e-48&-32)&&1<<e-48&7&&(this.state=569,this.storageLocation())}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}variableDeclaration(){let e=new pt(this,this._ctx,this.state);this.enterRule(e,74,t.RULE_variableDeclaration);try{this.enterOuterAlt(e,1),this.state=572,this.typeName(0),this.state=574,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,57,this._ctx)&&(this.state=573,this.storageLocation()),this.state=576,this.identifier()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}typeName(e){void 0===e&&(e=0);let r,s=this._ctx,i=this.state,n=new mt(this,this._ctx,i),a=n;this.enterRecursionRule(n,76,t.RULE_typeName,e);try{let e;switch(this.enterOuterAlt(n,1),this.state=585,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,58,this._ctx)){case 1:this.state=579,this.elementaryTypeName();break;case 2:this.state=580,this.userDefinedTypeName();break;case 3:this.state=581,this.mapping();break;case 4:this.state=582,this.functionTypeName();break;case 5:this.state=583,this.match(t.T__43),this.state=584,this.match(t.PayableKeyword)}for(this._ctx.stop=this._input.LT(-1),this.state=595,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,60,this._ctx);2!==e&&e!==l.INVALID_ALT_NUMBER;){if(1===e){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),a=n,n=new mt(this,s,i),this.pushNewRecursionContext(n,76,t.RULE_typeName),this.state=587,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=588,this.match(t.T__41),this.state=590,this._errHandler.sync(this),r=this._input.LA(1),(!(-32&r)&&1<<r&3263184960||!(r-38&-32)&&1<<r-38&4278194513||!(r-71&-32)&&1<<r-71&4244635651||!(r-103&-32)&&1<<r-103&248547339)&&(this.state=589,this.expression(0)),this.state=592,this.match(t.T__42)}this.state=597,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,60,this._ctx)}}catch(t){if(!(t instanceof E))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(s)}return n}userDefinedTypeName(){let e=new yt(this,this._ctx,this.state);this.enterRule(e,78,t.RULE_userDefinedTypeName);try{let r;for(this.enterOuterAlt(e,1),this.state=598,this.identifier(),this.state=603,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,61,this._ctx);2!==r&&r!==l.INVALID_ALT_NUMBER;)1===r&&(this.state=599,this.match(t.T__44),this.state=600,this.identifier()),this.state=605,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,61,this._ctx)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mappingKey(){let e=new ft(this,this._ctx,this.state);this.enterRule(e,80,t.RULE_mappingKey);try{switch(this.state=608,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,62,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=606,this.elementaryTypeName();break;case 2:this.enterOuterAlt(e,2),this.state=607,this.userDefinedTypeName()}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mapping(){let e,r=new gt(this,this._ctx,this.state);this.enterRule(r,82,t.RULE_mapping);try{this.enterOuterAlt(r,1),this.state=610,this.match(t.T__45),this.state=611,this.match(t.T__22),this.state=612,this.mappingKey(),this.state=614,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e)&&(this.state=613,this.mappingKeyName()),this.state=616,this.match(t.T__46),this.state=617,this.typeName(0),this.state=619,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e)&&(this.state=618,this.mappingValueName()),this.state=621,this.match(t.T__23)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}mappingKeyName(){let e=new wt(this,this._ctx,this.state);this.enterRule(e,84,t.RULE_mappingKeyName);try{this.enterOuterAlt(e,1),this.state=623,this.identifier()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mappingValueName(){let e=new vt(this,this._ctx,this.state);this.enterRule(e,86,t.RULE_mappingValueName);try{this.enterOuterAlt(e,1),this.state=625,this.identifier()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionTypeName(){let e=new xt(this,this._ctx,this.state);this.enterRule(e,88,t.RULE_functionTypeName);try{let r;for(this.enterOuterAlt(e,1),this.state=627,this.match(t.T__37),this.state=628,this.functionTypeParameterList(),this.state=634,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,66,this._ctx);2!==r&&r!==l.INVALID_ALT_NUMBER;){if(1===r)switch(this.state=632,this._errHandler.sync(this),this._input.LA(1)){case 117:this.state=629,this.match(t.InternalKeyword);break;case 115:this.state=630,this.match(t.ExternalKeyword);break;case 110:case 118:case 122:case 124:this.state=631,this.stateMutability();break;default:throw new w(this)}this.state=636,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,66,this._ctx)}this.state=639,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,67,this._ctx)&&(this.state=637,this.match(t.T__38),this.state=638,this.functionTypeParameterList())}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}storageLocation(){let e,r=new bt(this,this._ctx,this.state);this.enterRule(r,90,t.RULE_storageLocation);try{this.enterOuterAlt(r,1),this.state=641,e=this._input.LA(1),e-48&-32||!(1<<e-48&7)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}stateMutability(){let e,r=new _t(this,this._ctx,this.state);this.enterRule(r,92,t.RULE_stateMutability);try{this.enterOuterAlt(r,1),this.state=643,e=this._input.LA(1),e-110&-32||!(1<<e-110&20737)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}block(){let e,r=new Tt(this,this._ctx,this.state);this.enterRule(r,94,t.RULE_block);try{for(this.enterOuterAlt(r,1),this.state=645,this.match(t.T__14),this.state=649,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&3397435456||!(e-38&-32)&&1<<e-38&4294881617||!(e-71&-32)&&1<<e-71&4244635651||!(e-103&-32)&&1<<e-103&248548427;)this.state=646,this.statement(),this.state=651,this._errHandler.sync(this),e=this._input.LA(1);this.state=652,this.match(t.T__16)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}statement(){let e=new Et(this,this._ctx,this.state);this.enterRule(e,96,t.RULE_statement);try{switch(this.state=669,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,69,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=654,this.ifStatement();break;case 2:this.enterOuterAlt(e,2),this.state=655,this.tryStatement();break;case 3:this.enterOuterAlt(e,3),this.state=656,this.whileStatement();break;case 4:this.enterOuterAlt(e,4),this.state=657,this.forStatement();break;case 5:this.enterOuterAlt(e,5),this.state=658,this.block();break;case 6:this.enterOuterAlt(e,6),this.state=659,this.inlineAssemblyStatement();break;case 7:this.enterOuterAlt(e,7),this.state=660,this.doWhileStatement();break;case 8:this.enterOuterAlt(e,8),this.state=661,this.continueStatement();break;case 9:this.enterOuterAlt(e,9),this.state=662,this.breakStatement();break;case 10:this.enterOuterAlt(e,10),this.state=663,this.returnStatement();break;case 11:this.enterOuterAlt(e,11),this.state=664,this.throwStatement();break;case 12:this.enterOuterAlt(e,12),this.state=665,this.emitStatement();break;case 13:this.enterOuterAlt(e,13),this.state=666,this.simpleStatement();break;case 14:this.enterOuterAlt(e,14),this.state=667,this.uncheckedStatement();break;case 15:this.enterOuterAlt(e,15),this.state=668,this.revertStatement()}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expressionStatement(){let e=new St(this,this._ctx,this.state);this.enterRule(e,98,t.RULE_expressionStatement);try{this.enterOuterAlt(e,1),this.state=671,this.expression(0),this.state=672,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}ifStatement(){let e=new kt(this,this._ctx,this.state);this.enterRule(e,100,t.RULE_ifStatement);try{this.enterOuterAlt(e,1),this.state=674,this.match(t.T__50),this.state=675,this.match(t.T__22),this.state=676,this.expression(0),this.state=677,this.match(t.T__23),this.state=678,this.statement(),this.state=681,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,70,this._ctx)&&(this.state=679,this.match(t.T__51),this.state=680,this.statement())}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}tryStatement(){let e,r=new Rt(this,this._ctx,this.state);this.enterRule(r,102,t.RULE_tryStatement);try{this.enterOuterAlt(r,1),this.state=683,this.match(t.T__52),this.state=684,this.expression(0),this.state=686,this._errHandler.sync(this),e=this._input.LA(1),39===e&&(this.state=685,this.returnParameters()),this.state=688,this.block(),this.state=690,this._errHandler.sync(this),e=this._input.LA(1);do{this.state=689,this.catchClause(),this.state=692,this._errHandler.sync(this),e=this._input.LA(1)}while(54===e)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}catchClause(){let e,r=new At(this,this._ctx,this.state);this.enterRule(r,104,t.RULE_catchClause);try{this.enterOuterAlt(r,1),this.state=694,this.match(t.T__53),this.state=699,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&41959424||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e)&&(this.state=696,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e)&&(this.state=695,this.identifier()),this.state=698,this.parameterList()),this.state=701,this.block()}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}whileStatement(){let e=new Ct(this,this._ctx,this.state);this.enterRule(e,106,t.RULE_whileStatement);try{this.enterOuterAlt(e,1),this.state=703,this.match(t.T__54),this.state=704,this.match(t.T__22),this.state=705,this.expression(0),this.state=706,this.match(t.T__23),this.state=707,this.statement()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}simpleStatement(){let e=new Lt(this,this._ctx,this.state);this.enterRule(e,108,t.RULE_simpleStatement);try{switch(this.enterOuterAlt(e,1),this.state=711,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,75,this._ctx)){case 1:this.state=709,this.variableDeclarationStatement();break;case 2:this.state=710,this.expressionStatement()}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}uncheckedStatement(){let e=new It(this,this._ctx,this.state);this.enterRule(e,110,t.RULE_uncheckedStatement);try{this.enterOuterAlt(e,1),this.state=713,this.match(t.T__55),this.state=714,this.block()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}forStatement(){let e,r=new Kt(this,this._ctx,this.state);this.enterRule(r,112,t.RULE_forStatement);try{switch(this.enterOuterAlt(r,1),this.state=716,this.match(t.T__26),this.state=717,this.match(t.T__22),this.state=720,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 114:case 118:case 123:case 125:case 126:case 128:case 129:case 130:this.state=718,this.simpleStatement();break;case 2:this.state=719,this.match(t.T__1);break;default:throw new w(this)}switch(this.state=724,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 114:case 118:case 123:case 125:case 126:case 128:case 129:case 130:this.state=722,this.expressionStatement();break;case 2:this.state=723,this.match(t.T__1);break;default:throw new w(this)}this.state=727,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&3263184960||!(e-38&-32)&&1<<e-38&4278194513||!(e-71&-32)&&1<<e-71&4244635651||!(e-103&-32)&&1<<e-103&248547339)&&(this.state=726,this.expression(0)),this.state=729,this.match(t.T__23),this.state=730,this.statement()}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}inlineAssemblyStatement(){let e,r=new Nt(this,this._ctx,this.state);this.enterRule(r,114,t.RULE_inlineAssemblyStatement);try{this.enterOuterAlt(r,1),this.state=732,this.match(t.T__56),this.state=734,this._errHandler.sync(this),e=this._input.LA(1),130===e&&(this.state=733,this.match(t.StringLiteralFragment)),this.state=740,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=736,this.match(t.T__22),this.state=737,this.inlineAssemblyStatementFlag(),this.state=738,this.match(t.T__23)),this.state=742,this.assemblyBlock()}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}inlineAssemblyStatementFlag(){let e=new Dt(this,this._ctx,this.state);this.enterRule(e,116,t.RULE_inlineAssemblyStatementFlag);try{this.enterOuterAlt(e,1),this.state=744,this.stringLiteral()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}doWhileStatement(){let e=new Ot(this,this._ctx,this.state);this.enterRule(e,118,t.RULE_doWhileStatement);try{this.enterOuterAlt(e,1),this.state=746,this.match(t.T__57),this.state=747,this.statement(),this.state=748,this.match(t.T__54),this.state=749,this.match(t.T__22),this.state=750,this.expression(0),this.state=751,this.match(t.T__23),this.state=752,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}continueStatement(){let e=new Pt(this,this._ctx,this.state);this.enterRule(e,120,t.RULE_continueStatement);try{this.enterOuterAlt(e,1),this.state=754,this.match(t.ContinueKeyword),this.state=755,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}breakStatement(){let e=new qt(this,this._ctx,this.state);this.enterRule(e,122,t.RULE_breakStatement);try{this.enterOuterAlt(e,1),this.state=757,this.match(t.BreakKeyword),this.state=758,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}returnStatement(){let e,r=new Ft(this,this._ctx,this.state);this.enterRule(r,124,t.RULE_returnStatement);try{this.enterOuterAlt(r,1),this.state=760,this.match(t.T__58),this.state=762,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&3263184960||!(e-38&-32)&&1<<e-38&4278194513||!(e-71&-32)&&1<<e-71&4244635651||!(e-103&-32)&&1<<e-103&248547339)&&(this.state=761,this.expression(0)),this.state=764,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}throwStatement(){let e=new Ut(this,this._ctx,this.state);this.enterRule(e,126,t.RULE_throwStatement);try{this.enterOuterAlt(e,1),this.state=766,this.match(t.T__59),this.state=767,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}emitStatement(){let e=new Mt(this,this._ctx,this.state);this.enterRule(e,128,t.RULE_emitStatement);try{this.enterOuterAlt(e,1),this.state=769,this.match(t.T__60),this.state=770,this.functionCall(),this.state=771,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}revertStatement(){let e=new Yt(this,this._ctx,this.state);this.enterRule(e,130,t.RULE_revertStatement);try{this.enterOuterAlt(e,1),this.state=773,this.match(t.T__61),this.state=774,this.functionCall(),this.state=775,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}variableDeclarationStatement(){let e,r=new Vt(this,this._ctx,this.state);this.enterRule(r,132,t.RULE_variableDeclarationStatement);try{switch(this.enterOuterAlt(r,1),this.state=784,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,82,this._ctx)){case 1:this.state=777,this.match(t.T__62),this.state=778,this.identifierList();break;case 2:this.state=779,this.variableDeclaration();break;case 3:this.state=780,this.match(t.T__22),this.state=781,this.variableDeclarationList(),this.state=782,this.match(t.T__23)}this.state=788,this._errHandler.sync(this),e=this._input.LA(1),11===e&&(this.state=786,this.match(t.T__10),this.state=787,this.expression(0)),this.state=790,this.match(t.T__1)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}variableDeclarationList(){let e,r=new jt(this,this._ctx,this.state);this.enterRule(r,134,t.RULE_variableDeclarationList);try{for(this.enterOuterAlt(r,1),this.state=793,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-38&-32)&&1<<e-38&520098113||!(e-95&-32)&&1<<e-95&3230138493||128===e||129===e)&&(this.state=792,this.variableDeclaration()),this.state=801,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=795,this.match(t.T__15),this.state=797,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-38&-32)&&1<<e-38&520098113||!(e-95&-32)&&1<<e-95&3230138493||128===e||129===e)&&(this.state=796,this.variableDeclaration()),this.state=803,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}identifierList(){let e,r=new Bt(this,this._ctx,this.state);this.enterRule(r,136,t.RULE_identifierList);try{let s;for(this.enterOuterAlt(r,1),this.state=804,this.match(t.T__22),this.state=811,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,88,this._ctx);2!==s&&s!==l.INVALID_ALT_NUMBER;)1===s&&(this.state=806,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e)&&(this.state=805,this.identifier()),this.state=808,this.match(t.T__15)),this.state=813,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,88,this._ctx);this.state=815,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e)&&(this.state=814,this.identifier()),this.state=817,this.match(t.T__23)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}elementaryTypeName(){let e,r=new Ht(this,this._ctx,this.state);this.enterRule(r,138,t.RULE_elementaryTypeName);try{this.enterOuterAlt(r,1),this.state=819,e=this._input.LA(1),!(e-44&-32)&&1<<e-44&7864321||!(e-97&-32)&&1<<e-97&31?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}expression(e){void 0===e&&(e=0);let r,s=this._ctx,i=this.state,n=new $t(this,this._ctx,i),a=n,o=140;this.enterRecursionRule(n,140,t.RULE_expression,e);try{let e;switch(this.enterOuterAlt(n,1),this.state=839,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,90,this._ctx)){case 1:this.state=822,this.match(t.T__68),this.state=823,this.typeName(0);break;case 2:this.state=824,this.match(t.T__22),this.state=825,this.expression(0),this.state=826,this.match(t.T__23);break;case 3:this.state=828,r=this._input.LA(1),67!==r&&68!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=829,this.expression(19);break;case 4:this.state=830,r=this._input.LA(1),30!==r&&31!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=831,this.expression(18);break;case 5:this.state=832,this.match(t.T__70),this.state=833,this.expression(17);break;case 6:this.state=834,this.match(t.T__71),this.state=835,this.expression(16);break;case 7:this.state=836,this.match(t.T__5),this.state=837,this.expression(15);break;case 8:this.state=838,this.primaryExpression()}for(this._ctx.stop=this._input.LT(-1),this.state=915,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,94,this._ctx);2!==e&&e!==l.INVALID_ALT_NUMBER;){if(1===e)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),a=n,this.state=913,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,93,this._ctx)){case 1:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=841,!this.precpred(this._ctx,14))throw this.createFailedPredicateException("this.precpred(this._ctx, 14)");this.state=842,this.match(t.T__72),this.state=843,this.expression(14);break;case 2:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=844,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=845,r=this._input.LA(1),r-3&-32||!(1<<r-3&1610612737)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=846,this.expression(14);break;case 3:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=847,!this.precpred(this._ctx,12))throw this.createFailedPredicateException("this.precpred(this._ctx, 12)");this.state=848,r=this._input.LA(1),30!==r&&31!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=849,this.expression(13);break;case 4:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=850,!this.precpred(this._ctx,11))throw this.createFailedPredicateException("this.precpred(this._ctx, 11)");this.state=851,r=this._input.LA(1),74!==r&&75!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=852,this.expression(12);break;case 5:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=853,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=854,this.match(t.T__28),this.state=855,this.expression(11);break;case 6:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=856,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=857,this.match(t.T__4),this.state=858,this.expression(10);break;case 7:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=859,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=860,this.match(t.T__27),this.state=861,this.expression(9);break;case 8:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=862,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=863,r=this._input.LA(1),-32&r||!(1<<r&1920)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=864,this.expression(8);break;case 9:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=865,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=866,r=this._input.LA(1),34!==r&&35!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=867,this.expression(7);break;case 10:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=868,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=869,this.match(t.T__75),this.state=870,this.expression(6);break;case 11:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=871,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=872,this.match(t.T__3),this.state=873,this.expression(5);break;case 12:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=874,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=875,this.match(t.T__76),this.state=876,this.expression(0),this.state=877,this.match(t.T__69),this.state=878,this.expression(3);break;case 13:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=880,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=881,r=this._input.LA(1),11===r||!(r-78&-32)&&1<<r-78&1023?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=882,this.expression(3);break;case 14:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=883,!this.precpred(this._ctx,27))throw this.createFailedPredicateException("this.precpred(this._ctx, 27)");this.state=884,r=this._input.LA(1),67!==r&&68!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume());break;case 15:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=885,!this.precpred(this._ctx,25))throw this.createFailedPredicateException("this.precpred(this._ctx, 25)");this.state=886,this.match(t.T__41),this.state=887,this.expression(0),this.state=888,this.match(t.T__42);break;case 16:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=890,!this.precpred(this._ctx,24))throw this.createFailedPredicateException("this.precpred(this._ctx, 24)");this.state=891,this.match(t.T__41),this.state=893,this._errHandler.sync(this),r=this._input.LA(1),(!(-32&r)&&1<<r&3263184960||!(r-38&-32)&&1<<r-38&4278194513||!(r-71&-32)&&1<<r-71&4244635651||!(r-103&-32)&&1<<r-103&248547339)&&(this.state=892,this.expression(0)),this.state=895,this.match(t.T__69),this.state=897,this._errHandler.sync(this),r=this._input.LA(1),(!(-32&r)&&1<<r&3263184960||!(r-38&-32)&&1<<r-38&4278194513||!(r-71&-32)&&1<<r-71&4244635651||!(r-103&-32)&&1<<r-103&248547339)&&(this.state=896,this.expression(0)),this.state=899,this.match(t.T__42);break;case 17:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=900,!this.precpred(this._ctx,23))throw this.createFailedPredicateException("this.precpred(this._ctx, 23)");this.state=901,this.match(t.T__44),this.state=902,this.identifier();break;case 18:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=903,!this.precpred(this._ctx,22))throw this.createFailedPredicateException("this.precpred(this._ctx, 22)");this.state=904,this.match(t.T__14),this.state=905,this.nameValueList(),this.state=906,this.match(t.T__16);break;case 19:if(n=new $t(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=908,!this.precpred(this._ctx,21))throw this.createFailedPredicateException("this.precpred(this._ctx, 21)");this.state=909,this.match(t.T__22),this.state=910,this.functionCallArguments(),this.state=911,this.match(t.T__23)}this.state=917,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,94,this._ctx)}}catch(t){if(!(t instanceof E))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(s)}return n}primaryExpression(){let e=new Qt(this,this._ctx,this.state);this.enterRule(e,142,t.RULE_primaryExpression);try{switch(this.state=927,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,95,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=918,this.match(t.BooleanLiteral);break;case 2:this.enterOuterAlt(e,2),this.state=919,this.numberLiteral();break;case 3:this.enterOuterAlt(e,3),this.state=920,this.hexLiteral();break;case 4:this.enterOuterAlt(e,4),this.state=921,this.stringLiteral();break;case 5:this.enterOuterAlt(e,5),this.state=922,this.identifier();break;case 6:this.enterOuterAlt(e,6),this.state=923,this.match(t.TypeKeyword);break;case 7:this.enterOuterAlt(e,7),this.state=924,this.match(t.PayableKeyword);break;case 8:this.enterOuterAlt(e,8),this.state=925,this.tupleExpression();break;case 9:this.enterOuterAlt(e,9),this.state=926,this.typeName(0)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expressionList(){let e,r=new Gt(this,this._ctx,this.state);this.enterRule(r,144,t.RULE_expressionList);try{for(this.enterOuterAlt(r,1),this.state=929,this.expression(0),this.state=934,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=930,this.match(t.T__15),this.state=931,this.expression(0),this.state=936,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}nameValueList(){let e,r=new zt(this,this._ctx,this.state);this.enterRule(r,146,t.RULE_nameValueList);try{let s;for(this.enterOuterAlt(r,1),this.state=937,this.nameValue(),this.state=942,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,97,this._ctx);2!==s&&s!==l.INVALID_ALT_NUMBER;)1===s&&(this.state=938,this.match(t.T__15),this.state=939,this.nameValue()),this.state=944,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,97,this._ctx);this.state=946,this._errHandler.sync(this),e=this._input.LA(1),16===e&&(this.state=945,this.match(t.T__15))}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}nameValue(){let e=new Wt(this,this._ctx,this.state);this.enterRule(e,148,t.RULE_nameValue);try{this.enterOuterAlt(e,1),this.state=948,this.identifier(),this.state=949,this.match(t.T__69),this.state=950,this.expression(0)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionCallArguments(){let e,r=new Xt(this,this._ctx,this.state);this.enterRule(r,150,t.RULE_functionCallArguments);try{switch(this.state=960,this._errHandler.sync(this),this._input.LA(1)){case 15:this.enterOuterAlt(r,1),this.state=952,this.match(t.T__14),this.state=954,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e)&&(this.state=953,this.nameValueList()),this.state=956,this.match(t.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 114:case 118:case 123:case 125:case 126:case 128:case 129:case 130:this.enterOuterAlt(r,2),this.state=958,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&3263184960||!(e-38&-32)&&1<<e-38&4278194513||!(e-71&-32)&&1<<e-71&4244635651||!(e-103&-32)&&1<<e-103&248547339)&&(this.state=957,this.expressionList());break;default:throw new w(this)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionCall(){let e=new Jt(this,this._ctx,this.state);this.enterRule(e,152,t.RULE_functionCall);try{this.enterOuterAlt(e,1),this.state=962,this.expression(0),this.state=963,this.match(t.T__22),this.state=964,this.functionCallArguments(),this.state=965,this.match(t.T__23)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyBlock(){let e,r=new Zt(this,this._ctx,this.state);this.enterRule(r,154,t.RULE_assemblyBlock);try{for(this.enterOuterAlt(r,1),this.state=967,this.match(t.T__14),this.state=971,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&176209920||!(e-38&-32)&&1<<e-38&287322177||!(e-88&-32)&&1<<e-88&1176879241||!(e-125&-32)&&1<<e-125&59;)this.state=968,this.assemblyItem(),this.state=973,this._errHandler.sync(this),e=this._input.LA(1);this.state=974,this.match(t.T__16)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyItem(){let e=new te(this,this._ctx,this.state);this.enterRule(e,156,t.RULE_assemblyItem);try{switch(this.state=993,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,103,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=976,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=977,this.assemblyBlock();break;case 3:this.enterOuterAlt(e,3),this.state=978,this.assemblyExpression();break;case 4:this.enterOuterAlt(e,4),this.state=979,this.assemblyLocalDefinition();break;case 5:this.enterOuterAlt(e,5),this.state=980,this.assemblyAssignment();break;case 6:this.enterOuterAlt(e,6),this.state=981,this.assemblyStackAssignment();break;case 7:this.enterOuterAlt(e,7),this.state=982,this.labelDefinition();break;case 8:this.enterOuterAlt(e,8),this.state=983,this.assemblySwitch();break;case 9:this.enterOuterAlt(e,9),this.state=984,this.assemblyFunctionDefinition();break;case 10:this.enterOuterAlt(e,10),this.state=985,this.assemblyFor();break;case 11:this.enterOuterAlt(e,11),this.state=986,this.assemblyIf();break;case 12:this.enterOuterAlt(e,12),this.state=987,this.match(t.BreakKeyword);break;case 13:this.enterOuterAlt(e,13),this.state=988,this.match(t.ContinueKeyword);break;case 14:this.enterOuterAlt(e,14),this.state=989,this.match(t.LeaveKeyword);break;case 15:this.enterOuterAlt(e,15),this.state=990,this.numberLiteral();break;case 16:this.enterOuterAlt(e,16),this.state=991,this.stringLiteral();break;case 17:this.enterOuterAlt(e,17),this.state=992,this.hexLiteral()}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyExpression(){let e=new ee(this,this._ctx,this.state);this.enterRule(e,158,t.RULE_assemblyExpression);try{switch(this.state=998,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,104,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=995,this.assemblyCall();break;case 2:this.enterOuterAlt(e,2),this.state=996,this.assemblyLiteral();break;case 3:this.enterOuterAlt(e,3),this.state=997,this.assemblyMember()}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyMember(){let e=new re(this,this._ctx,this.state);this.enterRule(e,160,t.RULE_assemblyMember);try{this.enterOuterAlt(e,1),this.state=1e3,this.identifier(),this.state=1001,this.match(t.T__44),this.state=1002,this.identifier()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyCall(){let e,r=new se(this,this._ctx,this.state);this.enterRule(r,162,t.RULE_assemblyCall);try{switch(this.enterOuterAlt(r,1),this.state=1008,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,105,this._ctx)){case 1:this.state=1004,this.match(t.T__58);break;case 2:this.state=1005,this.match(t.T__43);break;case 3:this.state=1006,this.match(t.T__65);break;case 4:this.state=1007,this.identifier()}if(this.state=1022,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,108,this._ctx)){for(this.state=1010,this.match(t.T__22),this.state=1012,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-44&-32)&&1<<e-44&4489281||!(e-95&-32)&&1<<e-95&3230141313||!(e-128&-32)&&1<<e-128&7)&&(this.state=1011,this.assemblyExpression()),this.state=1018,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1014,this.match(t.T__15),this.state=1015,this.assemblyExpression(),this.state=1020,this._errHandler.sync(this),e=this._input.LA(1);this.state=1021,this.match(t.T__23)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyLocalDefinition(){let e,r=new ie(this,this._ctx,this.state);this.enterRule(r,164,t.RULE_assemblyLocalDefinition);try{this.enterOuterAlt(r,1),this.state=1024,this.match(t.T__87),this.state=1025,this.assemblyIdentifierOrList(),this.state=1028,this._errHandler.sync(this),e=this._input.LA(1),89===e&&(this.state=1026,this.match(t.T__88),this.state=1027,this.assemblyExpression())}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyAssignment(){let e=new ne(this,this._ctx,this.state);this.enterRule(e,166,t.RULE_assemblyAssignment);try{this.enterOuterAlt(e,1),this.state=1030,this.assemblyIdentifierOrList(),this.state=1031,this.match(t.T__88),this.state=1032,this.assemblyExpression()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyIdentifierOrList(){let e=new ae(this,this._ctx,this.state);this.enterRule(e,168,t.RULE_assemblyIdentifierOrList);try{switch(this.state=1041,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,110,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=1034,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=1035,this.assemblyMember();break;case 3:this.enterOuterAlt(e,3),this.state=1036,this.assemblyIdentifierList();break;case 4:this.enterOuterAlt(e,4),this.state=1037,this.match(t.T__22),this.state=1038,this.assemblyIdentifierList(),this.state=1039,this.match(t.T__23)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyIdentifierList(){let e,r=new oe(this,this._ctx,this.state);this.enterRule(r,170,t.RULE_assemblyIdentifierList);try{for(this.enterOuterAlt(r,1),this.state=1043,this.identifier(),this.state=1048,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1044,this.match(t.T__15),this.state=1045,this.identifier(),this.state=1050,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyStackAssignment(){let e=new ce(this,this._ctx,this.state);this.enterRule(e,172,t.RULE_assemblyStackAssignment);try{this.enterOuterAlt(e,1),this.state=1051,this.assemblyExpression(),this.state=1052,this.match(t.T__89),this.state=1053,this.identifier()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}labelDefinition(){let e=new le(this,this._ctx,this.state);this.enterRule(e,174,t.RULE_labelDefinition);try{this.enterOuterAlt(e,1),this.state=1055,this.identifier(),this.state=1056,this.match(t.T__69)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblySwitch(){let e,r=new he(this,this._ctx,this.state);this.enterRule(r,176,t.RULE_assemblySwitch);try{for(this.enterOuterAlt(r,1),this.state=1058,this.match(t.T__90),this.state=1059,this.assemblyExpression(),this.state=1063,this._errHandler.sync(this),e=this._input.LA(1);92===e||93===e;)this.state=1060,this.assemblyCase(),this.state=1065,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyCase(){let e=new ue(this,this._ctx,this.state);this.enterRule(e,178,t.RULE_assemblyCase);try{switch(this.state=1072,this._errHandler.sync(this),this._input.LA(1)){case 92:this.enterOuterAlt(e,1),this.state=1066,this.match(t.T__91),this.state=1067,this.assemblyLiteral(),this.state=1068,this.assemblyBlock();break;case 93:this.enterOuterAlt(e,2),this.state=1070,this.match(t.T__92),this.state=1071,this.assemblyBlock();break;default:throw new w(this)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyFunctionDefinition(){let e,r=new de(this,this._ctx,this.state);this.enterRule(r,180,t.RULE_assemblyFunctionDefinition);try{this.enterOuterAlt(r,1),this.state=1074,this.match(t.T__37),this.state=1075,this.identifier(),this.state=1076,this.match(t.T__22),this.state=1078,this._errHandler.sync(this),e=this._input.LA(1),(14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e)&&(this.state=1077,this.assemblyIdentifierList()),this.state=1080,this.match(t.T__23),this.state=1082,this._errHandler.sync(this),e=this._input.LA(1),94===e&&(this.state=1081,this.assemblyFunctionReturns()),this.state=1084,this.assemblyBlock()}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyFunctionReturns(){let e=new pe(this,this._ctx,this.state);this.enterRule(e,182,t.RULE_assemblyFunctionReturns);try{this.enterOuterAlt(e,1),this.state=1086,this.match(t.T__93),this.state=1087,this.assemblyIdentifierList()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyFor(){let e=new me(this,this._ctx,this.state);this.enterRule(e,184,t.RULE_assemblyFor);try{switch(this.enterOuterAlt(e,1),this.state=1089,this.match(t.T__26),this.state=1092,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1090,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 114:case 118:case 125:case 126:case 128:case 129:case 130:this.state=1091,this.assemblyExpression();break;default:throw new w(this)}switch(this.state=1094,this.assemblyExpression(),this.state=1097,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1095,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 114:case 118:case 125:case 126:case 128:case 129:case 130:this.state=1096,this.assemblyExpression();break;default:throw new w(this)}this.state=1099,this.assemblyBlock()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyIf(){let e=new ye(this,this._ctx,this.state);this.enterRule(e,186,t.RULE_assemblyIf);try{this.enterOuterAlt(e,1),this.state=1101,this.match(t.T__50),this.state=1102,this.assemblyExpression(),this.state=1103,this.assemblyBlock()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyLiteral(){let e=new fe(this,this._ctx,this.state);this.enterRule(e,188,t.RULE_assemblyLiteral);try{switch(this.state=1110,this._errHandler.sync(this),this._input.LA(1)){case 130:this.enterOuterAlt(e,1),this.state=1105,this.stringLiteral();break;case 103:this.enterOuterAlt(e,2),this.state=1106,this.match(t.DecimalNumber);break;case 104:this.enterOuterAlt(e,3),this.state=1107,this.match(t.HexNumber);break;case 106:this.enterOuterAlt(e,4),this.state=1108,this.hexLiteral();break;case 102:this.enterOuterAlt(e,5),this.state=1109,this.match(t.BooleanLiteral);break;default:throw new w(this)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}tupleExpression(){let e,r=new ge(this,this._ctx,this.state);this.enterRule(r,190,t.RULE_tupleExpression);try{switch(this.state=1138,this._errHandler.sync(this),this._input.LA(1)){case 23:for(this.enterOuterAlt(r,1),this.state=1112,this.match(t.T__22),this.state=1114,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&3263184960||!(e-38&-32)&&1<<e-38&4278194513||!(e-71&-32)&&1<<e-71&4244635651||!(e-103&-32)&&1<<e-103&248547339)&&(this.state=1113,this.expression(0)),this.state=1122,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1116,this.match(t.T__15),this.state=1118,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&3263184960||!(e-38&-32)&&1<<e-38&4278194513||!(e-71&-32)&&1<<e-71&4244635651||!(e-103&-32)&&1<<e-103&248547339)&&(this.state=1117,this.expression(0)),this.state=1124,this._errHandler.sync(this),e=this._input.LA(1);this.state=1125,this.match(t.T__23);break;case 42:if(this.enterOuterAlt(r,2),this.state=1126,this.match(t.T__41),this.state=1135,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&3263184960||!(e-38&-32)&&1<<e-38&4278194513||!(e-71&-32)&&1<<e-71&4244635651||!(e-103&-32)&&1<<e-103&248547339)for(this.state=1127,this.expression(0),this.state=1132,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1128,this.match(t.T__15),this.state=1129,this.expression(0),this.state=1134,this._errHandler.sync(this),e=this._input.LA(1);this.state=1137,this.match(t.T__42);break;default:throw new w(this)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}numberLiteral(){let e,r=new we(this,this._ctx,this.state);this.enterRule(r,192,t.RULE_numberLiteral);try{this.enterOuterAlt(r,1),this.state=1140,e=this._input.LA(1),103!==e&&104!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=1142,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,125,this._ctx)&&(this.state=1141,this.match(t.NumberUnit))}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}identifier(){let e,r=new ve(this,this._ctx,this.state);this.enterRule(r,194,t.RULE_identifier);try{this.enterOuterAlt(r,1),this.state=1144,e=this._input.LA(1),14===e||25===e||!(e-44&-32)&&1<<e-44&262209||!(e-95&-32)&&1<<e-95&3230138369||128===e||129===e?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}hexLiteral(){let e=new xe(this,this._ctx,this.state);this.enterRule(e,196,t.RULE_hexLiteral);try{let r;this.enterOuterAlt(e,1),this.state=1147,this._errHandler.sync(this),r=1;do{if(1!==r)throw new w(this);this.state=1146,this.match(t.HexLiteralFragment),this.state=1149,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,126,this._ctx)}while(2!==r&&r!==l.INVALID_ALT_NUMBER)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}overrideSpecifier(){let e,r=new be(this,this._ctx,this.state);this.enterRule(r,198,t.RULE_overrideSpecifier);try{if(this.enterOuterAlt(r,1),this.state=1151,this.match(t.T__95),this.state=1163,this._errHandler.sync(this),e=this._input.LA(1),23===e){for(this.state=1152,this.match(t.T__22),this.state=1153,this.userDefinedTypeName(),this.state=1158,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1154,this.match(t.T__15),this.state=1155,this.userDefinedTypeName(),this.state=1160,this._errHandler.sync(this),e=this._input.LA(1);this.state=1161,this.match(t.T__23)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}stringLiteral(){let e=new _e(this,this._ctx,this.state);this.enterRule(e,200,t.RULE_stringLiteral);try{let r;this.enterOuterAlt(e,1),this.state=1166,this._errHandler.sync(this),r=1;do{if(1!==r)throw new w(this);this.state=1165,this.match(t.StringLiteralFragment),this.state=1168,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,129,this._ctx)}while(2!==r&&r!==l.INVALID_ALT_NUMBER)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}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 t.__ATN||(t.__ATN=(new h).deserialize(t._serializedATN)),t.__ATN}};A.T__0=1,A.T__1=2,A.T__2=3,A.T__3=4,A.T__4=5,A.T__5=6,A.T__6=7,A.T__7=8,A.T__8=9,A.T__9=10,A.T__10=11,A.T__11=12,A.T__12=13,A.T__13=14,A.T__14=15,A.T__15=16,A.T__16=17,A.T__17=18,A.T__18=19,A.T__19=20,A.T__20=21,A.T__21=22,A.T__22=23,A.T__23=24,A.T__24=25,A.T__25=26,A.T__26=27,A.T__27=28,A.T__28=29,A.T__29=30,A.T__30=31,A.T__31=32,A.T__32=33,A.T__33=34,A.T__34=35,A.T__35=36,A.T__36=37,A.T__37=38,A.T__38=39,A.T__39=40,A.T__40=41,A.T__41=42,A.T__42=43,A.T__43=44,A.T__44=45,A.T__45=46,A.T__46=47,A.T__47=48,A.T__48=49,A.T__49=50,A.T__50=51,A.T__51=52,A.T__52=53,A.T__53=54,A.T__54=55,A.T__55=56,A.T__56=57,A.T__57=58,A.T__58=59,A.T__59=60,A.T__60=61,A.T__61=62,A.T__62=63,A.T__63=64,A.T__64=65,A.T__65=66,A.T__66=67,A.T__67=68,A.T__68=69,A.T__69=70,A.T__70=71,A.T__71=72,A.T__72=73,A.T__73=74,A.T__74=75,A.T__75=76,A.T__76=77,A.T__77=78,A.T__78=79,A.T__79=80,A.T__80=81,A.T__81=82,A.T__82=83,A.T__83=84,A.T__84=85,A.T__85=86,A.T__86=87,A.T__87=88,A.T__88=89,A.T__89=90,A.T__90=91,A.T__91=92,A.T__92=93,A.T__93=94,A.T__94=95,A.T__95=96,A.Int=97,A.Uint=98,A.Byte=99,A.Fixed=100,A.Ufixed=101,A.BooleanLiteral=102,A.DecimalNumber=103,A.HexNumber=104,A.NumberUnit=105,A.HexLiteralFragment=106,A.ReservedKeyword=107,A.AnonymousKeyword=108,A.BreakKeyword=109,A.ConstantKeyword=110,A.TransientKeyword=111,A.ImmutableKeyword=112,A.ContinueKeyword=113,A.LeaveKeyword=114,A.ExternalKeyword=115,A.IndexedKeyword=116,A.InternalKeyword=117,A.PayableKeyword=118,A.PrivateKeyword=119,A.PublicKeyword=120,A.VirtualKeyword=121,A.PureKeyword=122,A.TypeKeyword=123,A.ViewKeyword=124,A.GlobalKeyword=125,A.ConstructorKeyword=126,A.FallbackKeyword=127,A.ReceiveKeyword=128,A.Identifier=129,A.StringLiteralFragment=130,A.VersionLiteral=131,A.WS=132,A.COMMENT=133,A.LINE_COMMENT=134,A.EOF=S.EOF,A.RULE_sourceUnit=0,A.RULE_pragmaDirective=1,A.RULE_pragmaName=2,A.RULE_pragmaValue=3,A.RULE_version=4,A.RULE_versionOperator=5,A.RULE_versionConstraint=6,A.RULE_importDeclaration=7,A.RULE_importDirective=8,A.RULE_importPath=9,A.RULE_contractDefinition=10,A.RULE_inheritanceSpecifier=11,A.RULE_contractPart=12,A.RULE_stateVariableDeclaration=13,A.RULE_fileLevelConstant=14,A.RULE_customErrorDefinition=15,A.RULE_typeDefinition=16,A.RULE_usingForDeclaration=17,A.RULE_usingForObject=18,A.RULE_usingForObjectDirective=19,A.RULE_userDefinableOperators=20,A.RULE_structDefinition=21,A.RULE_modifierDefinition=22,A.RULE_modifierInvocation=23,A.RULE_functionDefinition=24,A.RULE_functionDescriptor=25,A.RULE_returnParameters=26,A.RULE_modifierList=27,A.RULE_eventDefinition=28,A.RULE_enumValue=29,A.RULE_enumDefinition=30,A.RULE_parameterList=31,A.RULE_parameter=32,A.RULE_eventParameterList=33,A.RULE_eventParameter=34,A.RULE_functionTypeParameterList=35,A.RULE_functionTypeParameter=36,A.RULE_variableDeclaration=37,A.RULE_typeName=38,A.RULE_userDefinedTypeName=39,A.RULE_mappingKey=40,A.RULE_mapping=41,A.RULE_mappingKeyName=42,A.RULE_mappingValueName=43,A.RULE_functionTypeName=44,A.RULE_storageLocation=45,A.RULE_stateMutability=46,A.RULE_block=47,A.RULE_statement=48,A.RULE_expressionStatement=49,A.RULE_ifStatement=50,A.RULE_tryStatement=51,A.RULE_catchClause=52,A.RULE_whileStatement=53,A.RULE_simpleStatement=54,A.RULE_uncheckedStatement=55,A.RULE_forStatement=56,A.RULE_inlineAssemblyStatement=57,A.RULE_inlineAssemblyStatementFlag=58,A.RULE_doWhileStatement=59,A.RULE_continueStatement=60,A.RULE_breakStatement=61,A.RULE_returnStatement=62,A.RULE_throwStatement=63,A.RULE_emitStatement=64,A.RULE_revertStatement=65,A.RULE_variableDeclarationStatement=66,A.RULE_variableDeclarationList=67,A.RULE_identifierList=68,A.RULE_elementaryTypeName=69,A.RULE_expression=70,A.RULE_primaryExpression=71,A.RULE_expressionList=72,A.RULE_nameValueList=73,A.RULE_nameValue=74,A.RULE_functionCallArguments=75,A.RULE_functionCall=76,A.RULE_assemblyBlock=77,A.RULE_assemblyItem=78,A.RULE_assemblyExpression=79,A.RULE_assemblyMember=80,A.RULE_assemblyCall=81,A.RULE_assemblyLocalDefinition=82,A.RULE_assemblyAssignment=83,A.RULE_assemblyIdentifierOrList=84,A.RULE_assemblyIdentifierList=85,A.RULE_assemblyStackAssignment=86,A.RULE_labelDefinition=87,A.RULE_assemblySwitch=88,A.RULE_assemblyCase=89,A.RULE_assemblyFunctionDefinition=90,A.RULE_assemblyFunctionReturns=91,A.RULE_assemblyFor=92,A.RULE_assemblyIf=93,A.RULE_assemblyLiteral=94,A.RULE_tupleExpression=95,A.RULE_numberLiteral=96,A.RULE_identifier=97,A.RULE_hexLiteral=98,A.RULE_overrideSpecifier=99,A.RULE_stringLiteral=100,A.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'","'transient'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],A.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","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],A.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"],A._serializedATN=[4,1,134,1171,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,1,13,5,13,352,8,13,10,13,12,13,355,9,13,1,13,1,13,1,13,3,13,360,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,387,8,17,1,17,3,17,390,8,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,5,18,399,8,18,10,18,12,18,402,9,18,1,18,1,18,3,18,406,8,18,1,19,1,19,1,19,3,19,411,8,19,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,5,21,423,8,21,10,21,12,21,426,9,21,3,21,428,8,21,1,21,1,21,1,22,1,22,1,22,3,22,435,8,22,1,22,1,22,5,22,439,8,22,10,22,12,22,442,9,22,1,22,1,22,3,22,446,8,22,1,23,1,23,1,23,3,23,451,8,23,1,23,3,23,454,8,23,1,24,1,24,1,24,1,24,3,24,460,8,24,1,24,1,24,3,24,464,8,24,1,25,1,25,3,25,468,8,25,1,25,1,25,1,25,3,25,473,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,486,8,27,10,27,12,27,489,9,27,1,28,1,28,1,28,1,28,3,28,495,8,28,1,28,1,28,1,29,1,29,1,30,1,30,1,30,1,30,3,30,505,8,30,1,30,1,30,5,30,509,8,30,10,30,12,30,512,9,30,1,30,1,30,1,31,1,31,1,31,1,31,5,31,520,8,31,10,31,12,31,523,9,31,3,31,525,8,31,1,31,1,31,1,32,1,32,3,32,531,8,32,1,32,3,32,534,8,32,1,33,1,33,1,33,1,33,5,33,540,8,33,10,33,12,33,543,9,33,3,33,545,8,33,1,33,1,33,1,34,1,34,3,34,551,8,34,1,34,3,34,554,8,34,1,35,1,35,1,35,1,35,5,35,560,8,35,10,35,12,35,563,9,35,3,35,565,8,35,1,35,1,35,1,36,1,36,3,36,571,8,36,1,37,1,37,3,37,575,8,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,586,8,38,1,38,1,38,1,38,3,38,591,8,38,1,38,5,38,594,8,38,10,38,12,38,597,9,38,1,39,1,39,1,39,5,39,602,8,39,10,39,12,39,605,9,39,1,40,1,40,3,40,609,8,40,1,41,1,41,1,41,1,41,3,41,615,8,41,1,41,1,41,1,41,3,41,620,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,633,8,44,10,44,12,44,636,9,44,1,44,1,44,3,44,640,8,44,1,45,1,45,1,46,1,46,1,47,1,47,5,47,648,8,47,10,47,12,47,651,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,670,8,48,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,3,50,682,8,50,1,51,1,51,1,51,3,51,687,8,51,1,51,1,51,4,51,691,8,51,11,51,12,51,692,1,52,1,52,3,52,697,8,52,1,52,3,52,700,8,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,3,54,712,8,54,1,55,1,55,1,55,1,56,1,56,1,56,1,56,3,56,721,8,56,1,56,1,56,3,56,725,8,56,1,56,3,56,728,8,56,1,56,1,56,1,56,1,57,1,57,3,57,735,8,57,1,57,1,57,1,57,1,57,3,57,741,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,763,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,785,8,66,1,66,1,66,3,66,789,8,66,1,66,1,66,1,67,3,67,794,8,67,1,67,1,67,3,67,798,8,67,5,67,800,8,67,10,67,12,67,803,9,67,1,68,1,68,3,68,807,8,68,1,68,5,68,810,8,68,10,68,12,68,813,9,68,1,68,3,68,816,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,840,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,894,8,70,1,70,1,70,3,70,898,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,914,8,70,10,70,12,70,917,9,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,928,8,71,1,72,1,72,1,72,5,72,933,8,72,10,72,12,72,936,9,72,1,73,1,73,1,73,5,73,941,8,73,10,73,12,73,944,9,73,1,73,3,73,947,8,73,1,74,1,74,1,74,1,74,1,75,1,75,3,75,955,8,75,1,75,1,75,3,75,959,8,75,3,75,961,8,75,1,76,1,76,1,76,1,76,1,76,1,77,1,77,5,77,970,8,77,10,77,12,77,973,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,994,8,78,1,79,1,79,1,79,3,79,999,8,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,3,81,1009,8,81,1,81,1,81,3,81,1013,8,81,1,81,1,81,5,81,1017,8,81,10,81,12,81,1020,9,81,1,81,3,81,1023,8,81,1,82,1,82,1,82,1,82,3,82,1029,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,1042,8,84,1,85,1,85,1,85,5,85,1047,8,85,10,85,12,85,1050,9,85,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,88,1,88,1,88,5,88,1062,8,88,10,88,12,88,1065,9,88,1,89,1,89,1,89,1,89,1,89,1,89,3,89,1073,8,89,1,90,1,90,1,90,1,90,3,90,1079,8,90,1,90,1,90,3,90,1083,8,90,1,90,1,90,1,91,1,91,1,91,1,92,1,92,1,92,3,92,1093,8,92,1,92,1,92,1,92,3,92,1098,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,1111,8,94,1,95,1,95,3,95,1115,8,95,1,95,1,95,3,95,1119,8,95,5,95,1121,8,95,10,95,12,95,1124,9,95,1,95,1,95,1,95,1,95,1,95,5,95,1131,8,95,10,95,12,95,1134,9,95,3,95,1136,8,95,1,95,3,95,1139,8,95,1,96,1,96,3,96,1143,8,96,1,97,1,97,1,98,4,98,1148,8,98,11,98,12,98,1149,1,99,1,99,1,99,1,99,1,99,5,99,1157,8,99,10,99,12,99,1160,9,99,1,99,1,99,3,99,1164,8,99,1,100,4,100,1167,8,100,11,100,12,100,1168,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,118,118,122,122,124,124,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,114,114,118,118,125,126,128,129,1301,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,363,1,0,0,0,30,370,1,0,0,0,32,375,1,0,0,0,34,381,1,0,0,0,36,405,1,0,0,0,38,407,1,0,0,0,40,412,1,0,0,0,42,414,1,0,0,0,44,431,1,0,0,0,46,447,1,0,0,0,48,455,1,0,0,0,50,472,1,0,0,0,52,474,1,0,0,0,54,487,1,0,0,0,56,490,1,0,0,0,58,498,1,0,0,0,60,500,1,0,0,0,62,515,1,0,0,0,64,528,1,0,0,0,66,535,1,0,0,0,68,548,1,0,0,0,70,555,1,0,0,0,72,568,1,0,0,0,74,572,1,0,0,0,76,585,1,0,0,0,78,598,1,0,0,0,80,608,1,0,0,0,82,610,1,0,0,0,84,623,1,0,0,0,86,625,1,0,0,0,88,627,1,0,0,0,90,641,1,0,0,0,92,643,1,0,0,0,94,645,1,0,0,0,96,669,1,0,0,0,98,671,1,0,0,0,100,674,1,0,0,0,102,683,1,0,0,0,104,694,1,0,0,0,106,703,1,0,0,0,108,711,1,0,0,0,110,713,1,0,0,0,112,716,1,0,0,0,114,732,1,0,0,0,116,744,1,0,0,0,118,746,1,0,0,0,120,754,1,0,0,0,122,757,1,0,0,0,124,760,1,0,0,0,126,766,1,0,0,0,128,769,1,0,0,0,130,773,1,0,0,0,132,784,1,0,0,0,134,793,1,0,0,0,136,804,1,0,0,0,138,819,1,0,0,0,140,839,1,0,0,0,142,927,1,0,0,0,144,929,1,0,0,0,146,937,1,0,0,0,148,948,1,0,0,0,150,960,1,0,0,0,152,962,1,0,0,0,154,967,1,0,0,0,156,993,1,0,0,0,158,998,1,0,0,0,160,1e3,1,0,0,0,162,1008,1,0,0,0,164,1024,1,0,0,0,166,1030,1,0,0,0,168,1041,1,0,0,0,170,1043,1,0,0,0,172,1051,1,0,0,0,174,1055,1,0,0,0,176,1058,1,0,0,0,178,1072,1,0,0,0,180,1074,1,0,0,0,182,1086,1,0,0,0,184,1089,1,0,0,0,186,1101,1,0,0,0,188,1110,1,0,0,0,190,1138,1,0,0,0,192,1140,1,0,0,0,194,1144,1,0,0,0,196,1147,1,0,0,0,198,1151,1,0,0,0,200,1166,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,131,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,130,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,353,3,76,38,0,344,352,5,120,0,0,345,352,5,117,0,0,346,352,5,119,0,0,347,352,5,110,0,0,348,352,5,111,0,0,349,352,5,112,0,0,350,352,3,198,99,0,351,344,1,0,0,0,351,345,1,0,0,0,351,346,1,0,0,0,351,347,1,0,0,0,351,348,1,0,0,0,351,349,1,0,0,0,351,350,1,0,0,0,352,355,1,0,0,0,353,351,1,0,0,0,353,354,1,0,0,0,354,356,1,0,0,0,355,353,1,0,0,0,356,359,3,194,97,0,357,358,5,11,0,0,358,360,3,140,70,0,359,357,1,0,0,0,359,360,1,0,0,0,360,361,1,0,0,0,361,362,5,2,0,0,362,27,1,0,0,0,363,364,3,76,38,0,364,365,5,110,0,0,365,366,3,194,97,0,366,367,5,11,0,0,367,368,3,140,70,0,368,369,5,2,0,0,369,29,1,0,0,0,370,371,5,25,0,0,371,372,3,194,97,0,372,373,3,62,31,0,373,374,5,2,0,0,374,31,1,0,0,0,375,376,5,123,0,0,376,377,3,194,97,0,377,378,5,22,0,0,378,379,3,138,69,0,379,380,5,2,0,0,380,33,1,0,0,0,381,382,5,26,0,0,382,383,3,36,18,0,383,386,5,27,0,0,384,387,5,3,0,0,385,387,3,76,38,0,386,384,1,0,0,0,386,385,1,0,0,0,387,389,1,0,0,0,388,390,5,125,0,0,389,388,1,0,0,0,389,390,1,0,0,0,390,391,1,0,0,0,391,392,5,2,0,0,392,35,1,0,0,0,393,406,3,78,39,0,394,395,5,15,0,0,395,400,3,38,19,0,396,397,5,16,0,0,397,399,3,38,19,0,398,396,1,0,0,0,399,402,1,0,0,0,400,398,1,0,0,0,400,401,1,0,0,0,401,403,1,0,0,0,402,400,1,0,0,0,403,404,5,17,0,0,404,406,1,0,0,0,405,393,1,0,0,0,405,394,1,0,0,0,406,37,1,0,0,0,407,410,3,78,39,0,408,409,5,12,0,0,409,411,3,40,20,0,410,408,1,0,0,0,410,411,1,0,0,0,411,39,1,0,0,0,412,413,7,2,0,0,413,41,1,0,0,0,414,415,5,36,0,0,415,416,3,194,97,0,416,427,5,15,0,0,417,418,3,74,37,0,418,424,5,2,0,0,419,420,3,74,37,0,420,421,5,2,0,0,421,423,1,0,0,0,422,419,1,0,0,0,423,426,1,0,0,0,424,422,1,0,0,0,424,425,1,0,0,0,425,428,1,0,0,0,426,424,1,0,0,0,427,417,1,0,0,0,427,428,1,0,0,0,428,429,1,0,0,0,429,430,5,17,0,0,430,43,1,0,0,0,431,432,5,37,0,0,432,434,3,194,97,0,433,435,3,62,31,0,434,433,1,0,0,0,434,435,1,0,0,0,435,440,1,0,0,0,436,439,5,121,0,0,437,439,3,198,99,0,438,436,1,0,0,0,438,437,1,0,0,0,439,442,1,0,0,0,440,438,1,0,0,0,440,441,1,0,0,0,441,445,1,0,0,0,442,440,1,0,0,0,443,446,5,2,0,0,444,446,3,94,47,0,445,443,1,0,0,0,445,444,1,0,0,0,446,45,1,0,0,0,447,453,3,194,97,0,448,450,5,23,0,0,449,451,3,144,72,0,450,449,1,0,0,0,450,451,1,0,0,0,451,452,1,0,0,0,452,454,5,24,0,0,453,448,1,0,0,0,453,454,1,0,0,0,454,47,1,0,0,0,455,456,3,50,25,0,456,457,3,62,31,0,457,459,3,54,27,0,458,460,3,52,26,0,459,458,1,0,0,0,459,460,1,0,0,0,460,463,1,0,0,0,461,464,5,2,0,0,462,464,3,94,47,0,463,461,1,0,0,0,463,462,1,0,0,0,464,49,1,0,0,0,465,467,5,38,0,0,466,468,3,194,97,0,467,466,1,0,0,0,467,468,1,0,0,0,468,473,1,0,0,0,469,473,5,126,0,0,470,473,5,127,0,0,471,473,5,128,0,0,472,465,1,0,0,0,472,469,1,0,0,0,472,470,1,0,0,0,472,471,1,0,0,0,473,51,1,0,0,0,474,475,5,39,0,0,475,476,3,62,31,0,476,53,1,0,0,0,477,486,5,115,0,0,478,486,5,120,0,0,479,486,5,117,0,0,480,486,5,119,0,0,481,486,5,121,0,0,482,486,3,92,46,0,483,486,3,46,23,0,484,486,3,198,99,0,485,477,1,0,0,0,485,478,1,0,0,0,485,479,1,0,0,0,485,480,1,0,0,0,485,481,1,0,0,0,485,482,1,0,0,0,485,483,1,0,0,0,485,484,1,0,0,0,486,489,1,0,0,0,487,485,1,0,0,0,487,488,1,0,0,0,488,55,1,0,0,0,489,487,1,0,0,0,490,491,5,40,0,0,491,492,3,194,97,0,492,494,3,66,33,0,493,495,5,108,0,0,494,493,1,0,0,0,494,495,1,0,0,0,495,496,1,0,0,0,496,497,5,2,0,0,497,57,1,0,0,0,498,499,3,194,97,0,499,59,1,0,0,0,500,501,5,41,0,0,501,502,3,194,97,0,502,504,5,15,0,0,503,505,3,58,29,0,504,503,1,0,0,0,504,505,1,0,0,0,505,510,1,0,0,0,506,507,5,16,0,0,507,509,3,58,29,0,508,506,1,0,0,0,509,512,1,0,0,0,510,508,1,0,0,0,510,511,1,0,0,0,511,513,1,0,0,0,512,510,1,0,0,0,513,514,5,17,0,0,514,61,1,0,0,0,515,524,5,23,0,0,516,521,3,64,32,0,517,518,5,16,0,0,518,520,3,64,32,0,519,517,1,0,0,0,520,523,1,0,0,0,521,519,1,0,0,0,521,522,1,0,0,0,522,525,1,0,0,0,523,521,1,0,0,0,524,516,1,0,0,0,524,525,1,0,0,0,525,526,1,0,0,0,526,527,5,24,0,0,527,63,1,0,0,0,528,530,3,76,38,0,529,531,3,90,45,0,530,529,1,0,0,0,530,531,1,0,0,0,531,533,1,0,0,0,532,534,3,194,97,0,533,532,1,0,0,0,533,534,1,0,0,0,534,65,1,0,0,0,535,544,5,23,0,0,536,541,3,68,34,0,537,538,5,16,0,0,538,540,3,68,34,0,539,537,1,0,0,0,540,543,1,0,0,0,541,539,1,0,0,0,541,542,1,0,0,0,542,545,1,0,0,0,543,541,1,0,0,0,544,536,1,0,0,0,544,545,1,0,0,0,545,546,1,0,0,0,546,547,5,24,0,0,547,67,1,0,0,0,548,550,3,76,38,0,549,551,5,116,0,0,550,549,1,0,0,0,550,551,1,0,0,0,551,553,1,0,0,0,552,554,3,194,97,0,553,552,1,0,0,0,553,554,1,0,0,0,554,69,1,0,0,0,555,564,5,23,0,0,556,561,3,72,36,0,557,558,5,16,0,0,558,560,3,72,36,0,559,557,1,0,0,0,560,563,1,0,0,0,561,559,1,0,0,0,561,562,1,0,0,0,562,565,1,0,0,0,563,561,1,0,0,0,564,556,1,0,0,0,564,565,1,0,0,0,565,566,1,0,0,0,566,567,5,24,0,0,567,71,1,0,0,0,568,570,3,76,38,0,569,571,3,90,45,0,570,569,1,0,0,0,570,571,1,0,0,0,571,73,1,0,0,0,572,574,3,76,38,0,573,575,3,90,45,0,574,573,1,0,0,0,574,575,1,0,0,0,575,576,1,0,0,0,576,577,3,194,97,0,577,75,1,0,0,0,578,579,6,38,-1,0,579,586,3,138,69,0,580,586,3,78,39,0,581,586,3,82,41,0,582,586,3,88,44,0,583,584,5,44,0,0,584,586,5,118,0,0,585,578,1,0,0,0,585,580,1,0,0,0,585,581,1,0,0,0,585,582,1,0,0,0,585,583,1,0,0,0,586,595,1,0,0,0,587,588,10,3,0,0,588,590,5,42,0,0,589,591,3,140,70,0,590,589,1,0,0,0,590,591,1,0,0,0,591,592,1,0,0,0,592,594,5,43,0,0,593,587,1,0,0,0,594,597,1,0,0,0,595,593,1,0,0,0,595,596,1,0,0,0,596,77,1,0,0,0,597,595,1,0,0,0,598,603,3,194,97,0,599,600,5,45,0,0,600,602,3,194,97,0,601,599,1,0,0,0,602,605,1,0,0,0,603,601,1,0,0,0,603,604,1,0,0,0,604,79,1,0,0,0,605,603,1,0,0,0,606,609,3,138,69,0,607,609,3,78,39,0,608,606,1,0,0,0,608,607,1,0,0,0,609,81,1,0,0,0,610,611,5,46,0,0,611,612,5,23,0,0,612,614,3,80,40,0,613,615,3,84,42,0,614,613,1,0,0,0,614,615,1,0,0,0,615,616,1,0,0,0,616,617,5,47,0,0,617,619,3,76,38,0,618,620,3,86,43,0,619,618,1,0,0,0,619,620,1,0,0,0,620,621,1,0,0,0,621,622,5,24,0,0,622,83,1,0,0,0,623,624,3,194,97,0,624,85,1,0,0,0,625,626,3,194,97,0,626,87,1,0,0,0,627,628,5,38,0,0,628,634,3,70,35,0,629,633,5,117,0,0,630,633,5,115,0,0,631,633,3,92,46,0,632,629,1,0,0,0,632,630,1,0,0,0,632,631,1,0,0,0,633,636,1,0,0,0,634,632,1,0,0,0,634,635,1,0,0,0,635,639,1,0,0,0,636,634,1,0,0,0,637,638,5,39,0,0,638,640,3,70,35,0,639,637,1,0,0,0,639,640,1,0,0,0,640,89,1,0,0,0,641,642,7,3,0,0,642,91,1,0,0,0,643,644,7,4,0,0,644,93,1,0,0,0,645,649,5,15,0,0,646,648,3,96,48,0,647,646,1,0,0,0,648,651,1,0,0,0,649,647,1,0,0,0,649,650,1,0,0,0,650,652,1,0,0,0,651,649,1,0,0,0,652,653,5,17,0,0,653,95,1,0,0,0,654,670,3,100,50,0,655,670,3,102,51,0,656,670,3,106,53,0,657,670,3,112,56,0,658,670,3,94,47,0,659,670,3,114,57,0,660,670,3,118,59,0,661,670,3,120,60,0,662,670,3,122,61,0,663,670,3,124,62,0,664,670,3,126,63,0,665,670,3,128,64,0,666,670,3,108,54,0,667,670,3,110,55,0,668,670,3,130,65,0,669,654,1,0,0,0,669,655,1,0,0,0,669,656,1,0,0,0,669,657,1,0,0,0,669,658,1,0,0,0,669,659,1,0,0,0,669,660,1,0,0,0,669,661,1,0,0,0,669,662,1,0,0,0,669,663,1,0,0,0,669,664,1,0,0,0,669,665,1,0,0,0,669,666,1,0,0,0,669,667,1,0,0,0,669,668,1,0,0,0,670,97,1,0,0,0,671,672,3,140,70,0,672,673,5,2,0,0,673,99,1,0,0,0,674,675,5,51,0,0,675,676,5,23,0,0,676,677,3,140,70,0,677,678,5,24,0,0,678,681,3,96,48,0,679,680,5,52,0,0,680,682,3,96,48,0,681,679,1,0,0,0,681,682,1,0,0,0,682,101,1,0,0,0,683,684,5,53,0,0,684,686,3,140,70,0,685,687,3,52,26,0,686,685,1,0,0,0,686,687,1,0,0,0,687,688,1,0,0,0,688,690,3,94,47,0,689,691,3,104,52,0,690,689,1,0,0,0,691,692,1,0,0,0,692,690,1,0,0,0,692,693,1,0,0,0,693,103,1,0,0,0,694,699,5,54,0,0,695,697,3,194,97,0,696,695,1,0,0,0,696,697,1,0,0,0,697,698,1,0,0,0,698,700,3,62,31,0,699,696,1,0,0,0,699,700,1,0,0,0,700,701,1,0,0,0,701,702,3,94,47,0,702,105,1,0,0,0,703,704,5,55,0,0,704,705,5,23,0,0,705,706,3,140,70,0,706,707,5,24,0,0,707,708,3,96,48,0,708,107,1,0,0,0,709,712,3,132,66,0,710,712,3,98,49,0,711,709,1,0,0,0,711,710,1,0,0,0,712,109,1,0,0,0,713,714,5,56,0,0,714,715,3,94,47,0,715,111,1,0,0,0,716,717,5,27,0,0,717,720,5,23,0,0,718,721,3,108,54,0,719,721,5,2,0,0,720,718,1,0,0,0,720,719,1,0,0,0,721,724,1,0,0,0,722,725,3,98,49,0,723,725,5,2,0,0,724,722,1,0,0,0,724,723,1,0,0,0,725,727,1,0,0,0,726,728,3,140,70,0,727,726,1,0,0,0,727,728,1,0,0,0,728,729,1,0,0,0,729,730,5,24,0,0,730,731,3,96,48,0,731,113,1,0,0,0,732,734,5,57,0,0,733,735,5,130,0,0,734,733,1,0,0,0,734,735,1,0,0,0,735,740,1,0,0,0,736,737,5,23,0,0,737,738,3,116,58,0,738,739,5,24,0,0,739,741,1,0,0,0,740,736,1,0,0,0,740,741,1,0,0,0,741,742,1,0,0,0,742,743,3,154,77,0,743,115,1,0,0,0,744,745,3,200,100,0,745,117,1,0,0,0,746,747,5,58,0,0,747,748,3,96,48,0,748,749,5,55,0,0,749,750,5,23,0,0,750,751,3,140,70,0,751,752,5,24,0,0,752,753,5,2,0,0,753,119,1,0,0,0,754,755,5,113,0,0,755,756,5,2,0,0,756,121,1,0,0,0,757,758,5,109,0,0,758,759,5,2,0,0,759,123,1,0,0,0,760,762,5,59,0,0,761,763,3,140,70,0,762,761,1,0,0,0,762,763,1,0,0,0,763,764,1,0,0,0,764,765,5,2,0,0,765,125,1,0,0,0,766,767,5,60,0,0,767,768,5,2,0,0,768,127,1,0,0,0,769,770,5,61,0,0,770,771,3,152,76,0,771,772,5,2,0,0,772,129,1,0,0,0,773,774,5,62,0,0,774,775,3,152,76,0,775,776,5,2,0,0,776,131,1,0,0,0,777,778,5,63,0,0,778,785,3,136,68,0,779,785,3,74,37,0,780,781,5,23,0,0,781,782,3,134,67,0,782,783,5,24,0,0,783,785,1,0,0,0,784,777,1,0,0,0,784,779,1,0,0,0,784,780,1,0,0,0,785,788,1,0,0,0,786,787,5,11,0,0,787,789,3,140,70,0,788,786,1,0,0,0,788,789,1,0,0,0,789,790,1,0,0,0,790,791,5,2,0,0,791,133,1,0,0,0,792,794,3,74,37,0,793,792,1,0,0,0,793,794,1,0,0,0,794,801,1,0,0,0,795,797,5,16,0,0,796,798,3,74,37,0,797,796,1,0,0,0,797,798,1,0,0,0,798,800,1,0,0,0,799,795,1,0,0,0,800,803,1,0,0,0,801,799,1,0,0,0,801,802,1,0,0,0,802,135,1,0,0,0,803,801,1,0,0,0,804,811,5,23,0,0,805,807,3,194,97,0,806,805,1,0,0,0,806,807,1,0,0,0,807,808,1,0,0,0,808,810,5,16,0,0,809,806,1,0,0,0,810,813,1,0,0,0,811,809,1,0,0,0,811,812,1,0,0,0,812,815,1,0,0,0,813,811,1,0,0,0,814,816,3,194,97,0,815,814,1,0,0,0,815,816,1,0,0,0,816,817,1,0,0,0,817,818,5,24,0,0,818,137,1,0,0,0,819,820,7,5,0,0,820,139,1,0,0,0,821,822,6,70,-1,0,822,823,5,69,0,0,823,840,3,76,38,0,824,825,5,23,0,0,825,826,3,140,70,0,826,827,5,24,0,0,827,840,1,0,0,0,828,829,7,6,0,0,829,840,3,140,70,19,830,831,7,7,0,0,831,840,3,140,70,18,832,833,5,71,0,0,833,840,3,140,70,17,834,835,5,72,0,0,835,840,3,140,70,16,836,837,5,6,0,0,837,840,3,140,70,15,838,840,3,142,71,0,839,821,1,0,0,0,839,824,1,0,0,0,839,828,1,0,0,0,839,830,1,0,0,0,839,832,1,0,0,0,839,834,1,0,0,0,839,836,1,0,0,0,839,838,1,0,0,0,840,915,1,0,0,0,841,842,10,14,0,0,842,843,5,73,0,0,843,914,3,140,70,14,844,845,10,13,0,0,845,846,7,8,0,0,846,914,3,140,70,14,847,848,10,12,0,0,848,849,7,7,0,0,849,914,3,140,70,13,850,851,10,11,0,0,851,852,7,9,0,0,852,914,3,140,70,12,853,854,10,10,0,0,854,855,5,29,0,0,855,914,3,140,70,11,856,857,10,9,0,0,857,858,5,5,0,0,858,914,3,140,70,10,859,860,10,8,0,0,860,861,5,28,0,0,861,914,3,140,70,9,862,863,10,7,0,0,863,864,7,10,0,0,864,914,3,140,70,8,865,866,10,6,0,0,866,867,7,11,0,0,867,914,3,140,70,7,868,869,10,5,0,0,869,870,5,76,0,0,870,914,3,140,70,6,871,872,10,4,0,0,872,873,5,4,0,0,873,914,3,140,70,5,874,875,10,3,0,0,875,876,5,77,0,0,876,877,3,140,70,0,877,878,5,70,0,0,878,879,3,140,70,3,879,914,1,0,0,0,880,881,10,2,0,0,881,882,7,12,0,0,882,914,3,140,70,3,883,884,10,27,0,0,884,914,7,6,0,0,885,886,10,25,0,0,886,887,5,42,0,0,887,888,3,140,70,0,888,889,5,43,0,0,889,914,1,0,0,0,890,891,10,24,0,0,891,893,5,42,0,0,892,894,3,140,70,0,893,892,1,0,0,0,893,894,1,0,0,0,894,895,1,0,0,0,895,897,5,70,0,0,896,898,3,140,70,0,897,896,1,0,0,0,897,898,1,0,0,0,898,899,1,0,0,0,899,914,5,43,0,0,900,901,10,23,0,0,901,902,5,45,0,0,902,914,3,194,97,0,903,904,10,22,0,0,904,905,5,15,0,0,905,906,3,146,73,0,906,907,5,17,0,0,907,914,1,0,0,0,908,909,10,21,0,0,909,910,5,23,0,0,910,911,3,150,75,0,911,912,5,24,0,0,912,914,1,0,0,0,913,841,1,0,0,0,913,844,1,0,0,0,913,847,1,0,0,0,913,850,1,0,0,0,913,853,1,0,0,0,913,856,1,0,0,0,913,859,1,0,0,0,913,862,1,0,0,0,913,865,1,0,0,0,913,868,1,0,0,0,913,871,1,0,0,0,913,874,1,0,0,0,913,880,1,0,0,0,913,883,1,0,0,0,913,885,1,0,0,0,913,890,1,0,0,0,913,900,1,0,0,0,913,903,1,0,0,0,913,908,1,0,0,0,914,917,1,0,0,0,915,913,1,0,0,0,915,916,1,0,0,0,916,141,1,0,0,0,917,915,1,0,0,0,918,928,5,102,0,0,919,928,3,192,96,0,920,928,3,196,98,0,921,928,3,200,100,0,922,928,3,194,97,0,923,928,5,123,0,0,924,928,5,118,0,0,925,928,3,190,95,0,926,928,3,76,38,0,927,918,1,0,0,0,927,919,1,0,0,0,927,920,1,0,0,0,927,921,1,0,0,0,927,922,1,0,0,0,927,923,1,0,0,0,927,924,1,0,0,0,927,925,1,0,0,0,927,926,1,0,0,0,928,143,1,0,0,0,929,934,3,140,70,0,930,931,5,16,0,0,931,933,3,140,70,0,932,930,1,0,0,0,933,936,1,0,0,0,934,932,1,0,0,0,934,935,1,0,0,0,935,145,1,0,0,0,936,934,1,0,0,0,937,942,3,148,74,0,938,939,5,16,0,0,939,941,3,148,74,0,940,938,1,0,0,0,941,944,1,0,0,0,942,940,1,0,0,0,942,943,1,0,0,0,943,946,1,0,0,0,944,942,1,0,0,0,945,947,5,16,0,0,946,945,1,0,0,0,946,947,1,0,0,0,947,147,1,0,0,0,948,949,3,194,97,0,949,950,5,70,0,0,950,951,3,140,70,0,951,149,1,0,0,0,952,954,5,15,0,0,953,955,3,146,73,0,954,953,1,0,0,0,954,955,1,0,0,0,955,956,1,0,0,0,956,961,5,17,0,0,957,959,3,144,72,0,958,957,1,0,0,0,958,959,1,0,0,0,959,961,1,0,0,0,960,952,1,0,0,0,960,958,1,0,0,0,961,151,1,0,0,0,962,963,3,140,70,0,963,964,5,23,0,0,964,965,3,150,75,0,965,966,5,24,0,0,966,153,1,0,0,0,967,971,5,15,0,0,968,970,3,156,78,0,969,968,1,0,0,0,970,973,1,0,0,0,971,969,1,0,0,0,971,972,1,0,0,0,972,974,1,0,0,0,973,971,1,0,0,0,974,975,5,17,0,0,975,155,1,0,0,0,976,994,3,194,97,0,977,994,3,154,77,0,978,994,3,158,79,0,979,994,3,164,82,0,980,994,3,166,83,0,981,994,3,172,86,0,982,994,3,174,87,0,983,994,3,176,88,0,984,994,3,180,90,0,985,994,3,184,92,0,986,994,3,186,93,0,987,994,5,109,0,0,988,994,5,113,0,0,989,994,5,114,0,0,990,994,3,192,96,0,991,994,3,200,100,0,992,994,3,196,98,0,993,976,1,0,0,0,993,977,1,0,0,0,993,978,1,0,0,0,993,979,1,0,0,0,993,980,1,0,0,0,993,981,1,0,0,0,993,982,1,0,0,0,993,983,1,0,0,0,993,984,1,0,0,0,993,985,1,0,0,0,993,986,1,0,0,0,993,987,1,0,0,0,993,988,1,0,0,0,993,989,1,0,0,0,993,990,1,0,0,0,993,991,1,0,0,0,993,992,1,0,0,0,994,157,1,0,0,0,995,999,3,162,81,0,996,999,3,188,94,0,997,999,3,160,80,0,998,995,1,0,0,0,998,996,1,0,0,0,998,997,1,0,0,0,999,159,1,0,0,0,1e3,1001,3,194,97,0,1001,1002,5,45,0,0,1002,1003,3,194,97,0,1003,161,1,0,0,0,1004,1009,5,59,0,0,1005,1009,5,44,0,0,1006,1009,5,66,0,0,1007,1009,3,194,97,0,1008,1004,1,0,0,0,1008,1005,1,0,0,0,1008,1006,1,0,0,0,1008,1007,1,0,0,0,1009,1022,1,0,0,0,1010,1012,5,23,0,0,1011,1013,3,158,79,0,1012,1011,1,0,0,0,1012,1013,1,0,0,0,1013,1018,1,0,0,0,1014,1015,5,16,0,0,1015,1017,3,158,79,0,1016,1014,1,0,0,0,1017,1020,1,0,0,0,1018,1016,1,0,0,0,1018,1019,1,0,0,0,1019,1021,1,0,0,0,1020,1018,1,0,0,0,1021,1023,5,24,0,0,1022,1010,1,0,0,0,1022,1023,1,0,0,0,1023,163,1,0,0,0,1024,1025,5,88,0,0,1025,1028,3,168,84,0,1026,1027,5,89,0,0,1027,1029,3,158,79,0,1028,1026,1,0,0,0,1028,1029,1,0,0,0,1029,165,1,0,0,0,1030,1031,3,168,84,0,1031,1032,5,89,0,0,1032,1033,3,158,79,0,1033,167,1,0,0,0,1034,1042,3,194,97,0,1035,1042,3,160,80,0,1036,1042,3,170,85,0,1037,1038,5,23,0,0,1038,1039,3,170,85,0,1039,1040,5,24,0,0,1040,1042,1,0,0,0,1041,1034,1,0,0,0,1041,1035,1,0,0,0,1041,1036,1,0,0,0,1041,1037,1,0,0,0,1042,169,1,0,0,0,1043,1048,3,194,97,0,1044,1045,5,16,0,0,1045,1047,3,194,97,0,1046,1044,1,0,0,0,1047,1050,1,0,0,0,1048,1046,1,0,0,0,1048,1049,1,0,0,0,1049,171,1,0,0,0,1050,1048,1,0,0,0,1051,1052,3,158,79,0,1052,1053,5,90,0,0,1053,1054,3,194,97,0,1054,173,1,0,0,0,1055,1056,3,194,97,0,1056,1057,5,70,0,0,1057,175,1,0,0,0,1058,1059,5,91,0,0,1059,1063,3,158,79,0,1060,1062,3,178,89,0,1061,1060,1,0,0,0,1062,1065,1,0,0,0,1063,1061,1,0,0,0,1063,1064,1,0,0,0,1064,177,1,0,0,0,1065,1063,1,0,0,0,1066,1067,5,92,0,0,1067,1068,3,188,94,0,1068,1069,3,154,77,0,1069,1073,1,0,0,0,1070,1071,5,93,0,0,1071,1073,3,154,77,0,1072,1066,1,0,0,0,1072,1070,1,0,0,0,1073,179,1,0,0,0,1074,1075,5,38,0,0,1075,1076,3,194,97,0,1076,1078,5,23,0,0,1077,1079,3,170,85,0,1078,1077,1,0,0,0,1078,1079,1,0,0,0,1079,1080,1,0,0,0,1080,1082,5,24,0,0,1081,1083,3,182,91,0,1082,1081,1,0,0,0,1082,1083,1,0,0,0,1083,1084,1,0,0,0,1084,1085,3,154,77,0,1085,181,1,0,0,0,1086,1087,5,94,0,0,1087,1088,3,170,85,0,1088,183,1,0,0,0,1089,1092,5,27,0,0,1090,1093,3,154,77,0,1091,1093,3,158,79,0,1092,1090,1,0,0,0,1092,1091,1,0,0,0,1093,1094,1,0,0,0,1094,1097,3,158,79,0,1095,1098,3,154,77,0,1096,1098,3,158,79,0,1097,1095,1,0,0,0,1097,1096,1,0,0,0,1098,1099,1,0,0,0,1099,1100,3,154,77,0,1100,185,1,0,0,0,1101,1102,5,51,0,0,1102,1103,3,158,79,0,1103,1104,3,154,77,0,1104,187,1,0,0,0,1105,1111,3,200,100,0,1106,1111,5,103,0,0,1107,1111,5,104,0,0,1108,1111,3,196,98,0,1109,1111,5,102,0,0,1110,1105,1,0,0,0,1110,1106,1,0,0,0,1110,1107,1,0,0,0,1110,1108,1,0,0,0,1110,1109,1,0,0,0,1111,189,1,0,0,0,1112,1114,5,23,0,0,1113,1115,3,140,70,0,1114,1113,1,0,0,0,1114,1115,1,0,0,0,1115,1122,1,0,0,0,1116,1118,5,16,0,0,1117,1119,3,140,70,0,1118,1117,1,0,0,0,1118,1119,1,0,0,0,1119,1121,1,0,0,0,1120,1116,1,0,0,0,1121,1124,1,0,0,0,1122,1120,1,0,0,0,1122,1123,1,0,0,0,1123,1125,1,0,0,0,1124,1122,1,0,0,0,1125,1139,5,24,0,0,1126,1135,5,42,0,0,1127,1132,3,140,70,0,1128,1129,5,16,0,0,1129,1131,3,140,70,0,1130,1128,1,0,0,0,1131,1134,1,0,0,0,1132,1130,1,0,0,0,1132,1133,1,0,0,0,1133,1136,1,0,0,0,1134,1132,1,0,0,0,1135,1127,1,0,0,0,1135,1136,1,0,0,0,1136,1137,1,0,0,0,1137,1139,5,43,0,0,1138,1112,1,0,0,0,1138,1126,1,0,0,0,1139,191,1,0,0,0,1140,1142,7,13,0,0,1141,1143,5,105,0,0,1142,1141,1,0,0,0,1142,1143,1,0,0,0,1143,193,1,0,0,0,1144,1145,7,14,0,0,1145,195,1,0,0,0,1146,1148,5,106,0,0,1147,1146,1,0,0,0,1148,1149,1,0,0,0,1149,1147,1,0,0,0,1149,1150,1,0,0,0,1150,197,1,0,0,0,1151,1163,5,96,0,0,1152,1153,5,23,0,0,1153,1158,3,78,39,0,1154,1155,5,16,0,0,1155,1157,3,78,39,0,1156,1154,1,0,0,0,1157,1160,1,0,0,0,1158,1156,1,0,0,0,1158,1159,1,0,0,0,1159,1161,1,0,0,0,1160,1158,1,0,0,0,1161,1162,5,24,0,0,1162,1164,1,0,0,0,1163,1152,1,0,0,0,1163,1164,1,0,0,0,1164,199,1,0,0,0,1165,1167,5,130,0,0,1166,1165,1,0,0,0,1167,1168,1,0,0,0,1168,1166,1,0,0,0,1168,1169,1,0,0,0,1169,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,351,353,359,386,389,400,405,410,424,427,434,438,440,445,450,453,459,463,467,472,485,487,494,504,510,521,524,530,533,541,544,550,553,561,564,570,574,585,590,595,603,608,614,619,632,634,639,649,669,681,686,692,696,699,711,720,724,727,734,740,762,784,788,793,797,801,806,811,815,839,893,897,913,915,927,934,942,946,954,958,960,971,993,998,1008,1012,1018,1022,1028,1041,1048,1063,1072,1078,1082,1092,1097,1110,1114,1118,1122,1132,1135,1138,1142,1149,1158,1163,1168],A.DecisionsToDFA=A._ATN.decisionToState.map(((t,e)=>new p(t,e)));var C=A,L=class extends _{constructor(t,e,r){super(e,r),this.parser=t}EOF(){return this.getToken(C.EOF,0)}pragmaDirective_list(){return this.getTypedRuleContexts(I)}pragmaDirective(t){return this.getTypedRuleContext(I,t)}importDirective_list(){return this.getTypedRuleContexts(F)}importDirective(t){return this.getTypedRuleContext(F,t)}contractDefinition_list(){return this.getTypedRuleContexts(M)}contractDefinition(t){return this.getTypedRuleContext(M,t)}enumDefinition_list(){return this.getTypedRuleContexts(at)}enumDefinition(t){return this.getTypedRuleContext(at,t)}eventDefinition_list(){return this.getTypedRuleContexts(it)}eventDefinition(t){return this.getTypedRuleContext(it,t)}structDefinition_list(){return this.getTypedRuleContexts(X)}structDefinition(t){return this.getTypedRuleContext(X,t)}functionDefinition_list(){return this.getTypedRuleContexts(tt)}functionDefinition(t){return this.getTypedRuleContext(tt,t)}fileLevelConstant_list(){return this.getTypedRuleContexts(B)}fileLevelConstant(t){return this.getTypedRuleContext(B,t)}customErrorDefinition_list(){return this.getTypedRuleContexts(H)}customErrorDefinition(t){return this.getTypedRuleContext(H,t)}typeDefinition_list(){return this.getTypedRuleContexts($)}typeDefinition(t){return this.getTypedRuleContext($,t)}usingForDeclaration_list(){return this.getTypedRuleContexts(Q)}usingForDeclaration(t){return this.getTypedRuleContext(Q,t)}get ruleIndex(){return C.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)}},I=class extends _{constructor(t,e,r){super(e,r),this.parser=t}pragmaName(){return this.getTypedRuleContext(K,0)}pragmaValue(){return this.getTypedRuleContext(N,0)}get ruleIndex(){return C.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)}},K=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.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)}},N=class extends _{constructor(t,e,r){super(e,r),this.parser=t}version(){return this.getTypedRuleContext(D,0)}expression(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.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)}},D=class extends _{constructor(t,e,r){super(e,r),this.parser=t}versionConstraint_list(){return this.getTypedRuleContexts(P)}versionConstraint(t){return this.getTypedRuleContext(P,t)}get ruleIndex(){return C.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)}},O=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.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)}},P=class extends _{constructor(t,e,r){super(e,r),this.parser=t}VersionLiteral(){return this.getToken(C.VersionLiteral,0)}versionOperator(){return this.getTypedRuleContext(O,0)}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}get ruleIndex(){return C.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)}},q=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.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)}},F=class extends _{constructor(t,e,r){super(e,r),this.parser=t}importPath(){return this.getTypedRuleContext(U,0)}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}importDeclaration_list(){return this.getTypedRuleContexts(q)}importDeclaration(t){return this.getTypedRuleContext(q,t)}get ruleIndex(){return C.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)}},U=class extends _{constructor(t,e,r){super(e,r),this.parser=t}StringLiteralFragment(){return this.getToken(C.StringLiteralFragment,0)}get ruleIndex(){return C.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)}},M=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}inheritanceSpecifier_list(){return this.getTypedRuleContexts(Y)}inheritanceSpecifier(t){return this.getTypedRuleContext(Y,t)}contractPart_list(){return this.getTypedRuleContexts(V)}contractPart(t){return this.getTypedRuleContext(V,t)}get ruleIndex(){return C.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)}},Y=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(yt,0)}expressionList(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.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)}},V=class extends _{constructor(t,e,r){super(e,r),this.parser=t}stateVariableDeclaration(){return this.getTypedRuleContext(j,0)}usingForDeclaration(){return this.getTypedRuleContext(Q,0)}structDefinition(){return this.getTypedRuleContext(X,0)}modifierDefinition(){return this.getTypedRuleContext(J,0)}functionDefinition(){return this.getTypedRuleContext(tt,0)}eventDefinition(){return this.getTypedRuleContext(it,0)}enumDefinition(){return this.getTypedRuleContext(at,0)}customErrorDefinition(){return this.getTypedRuleContext(H,0)}typeDefinition(){return this.getTypedRuleContext($,0)}get ruleIndex(){return C.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)}},j=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(mt,0)}identifier(){return this.getTypedRuleContext(ve,0)}PublicKeyword_list(){return this.getTokens(C.PublicKeyword)}PublicKeyword(t){return this.getToken(C.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(t){return this.getToken(C.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(C.PrivateKeyword)}PrivateKeyword(t){return this.getToken(C.PrivateKeyword,t)}ConstantKeyword_list(){return this.getTokens(C.ConstantKeyword)}ConstantKeyword(t){return this.getToken(C.ConstantKeyword,t)}TransientKeyword_list(){return this.getTokens(C.TransientKeyword)}TransientKeyword(t){return this.getToken(C.TransientKeyword,t)}ImmutableKeyword_list(){return this.getTokens(C.ImmutableKeyword)}ImmutableKeyword(t){return this.getToken(C.ImmutableKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(be)}overrideSpecifier(t){return this.getTypedRuleContext(be,t)}expression(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.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)}},B=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(mt,0)}ConstantKeyword(){return this.getToken(C.ConstantKeyword,0)}identifier(){return this.getTypedRuleContext(ve,0)}expression(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}parameterList(){return this.getTypedRuleContext(ot,0)}get ruleIndex(){return C.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)}},$=class extends _{constructor(t,e,r){super(e,r),this.parser=t}TypeKeyword(){return this.getToken(C.TypeKeyword,0)}identifier(){return this.getTypedRuleContext(ve,0)}elementaryTypeName(){return this.getTypedRuleContext(Ht,0)}get ruleIndex(){return C.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)}},Q=class extends _{constructor(t,e,r){super(e,r),this.parser=t}usingForObject(){return this.getTypedRuleContext(G,0)}typeName(){return this.getTypedRuleContext(mt,0)}GlobalKeyword(){return this.getToken(C.GlobalKeyword,0)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(yt,0)}usingForObjectDirective_list(){return this.getTypedRuleContexts(z)}usingForObjectDirective(t){return this.getTypedRuleContext(z,t)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(yt,0)}userDefinableOperators(){return this.getTypedRuleContext(W,0)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}variableDeclaration_list(){return this.getTypedRuleContexts(pt)}variableDeclaration(t){return this.getTypedRuleContext(pt,t)}get ruleIndex(){return C.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)}},J=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}block(){return this.getTypedRuleContext(Tt,0)}parameterList(){return this.getTypedRuleContext(ot,0)}VirtualKeyword_list(){return this.getTokens(C.VirtualKeyword)}VirtualKeyword(t){return this.getToken(C.VirtualKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(be)}overrideSpecifier(t){return this.getTypedRuleContext(be,t)}get ruleIndex(){return C.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)}},Z=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}expressionList(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.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)}},tt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionDescriptor(){return this.getTypedRuleContext(et,0)}parameterList(){return this.getTypedRuleContext(ot,0)}modifierList(){return this.getTypedRuleContext(st,0)}block(){return this.getTypedRuleContext(Tt,0)}returnParameters(){return this.getTypedRuleContext(rt,0)}get ruleIndex(){return C.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)}},et=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}ConstructorKeyword(){return this.getToken(C.ConstructorKeyword,0)}FallbackKeyword(){return this.getToken(C.FallbackKeyword,0)}ReceiveKeyword(){return this.getToken(C.ReceiveKeyword,0)}get ruleIndex(){return C.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)}},rt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}parameterList(){return this.getTypedRuleContext(ot,0)}get ruleIndex(){return C.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)}},st=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ExternalKeyword_list(){return this.getTokens(C.ExternalKeyword)}ExternalKeyword(t){return this.getToken(C.ExternalKeyword,t)}PublicKeyword_list(){return this.getTokens(C.PublicKeyword)}PublicKeyword(t){return this.getToken(C.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(t){return this.getToken(C.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(C.PrivateKeyword)}PrivateKeyword(t){return this.getToken(C.PrivateKeyword,t)}VirtualKeyword_list(){return this.getTokens(C.VirtualKeyword)}VirtualKeyword(t){return this.getToken(C.VirtualKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(_t)}stateMutability(t){return this.getTypedRuleContext(_t,t)}modifierInvocation_list(){return this.getTypedRuleContexts(Z)}modifierInvocation(t){return this.getTypedRuleContext(Z,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(be)}overrideSpecifier(t){return this.getTypedRuleContext(be,t)}get ruleIndex(){return C.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)}},it=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}eventParameterList(){return this.getTypedRuleContext(lt,0)}AnonymousKeyword(){return this.getToken(C.AnonymousKeyword,0)}get ruleIndex(){return C.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)}},nt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.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)}},at=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}enumValue_list(){return this.getTypedRuleContexts(nt)}enumValue(t){return this.getTypedRuleContext(nt,t)}get ruleIndex(){return C.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)}},ot=class extends _{constructor(t,e,r){super(e,r),this.parser=t}parameter_list(){return this.getTypedRuleContexts(ct)}parameter(t){return this.getTypedRuleContext(ct,t)}get ruleIndex(){return C.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)}},ct=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(mt,0)}storageLocation(){return this.getTypedRuleContext(bt,0)}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.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)}},lt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}eventParameter_list(){return this.getTypedRuleContexts(ht)}eventParameter(t){return this.getTypedRuleContext(ht,t)}get ruleIndex(){return C.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)}},ht=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(mt,0)}IndexedKeyword(){return this.getToken(C.IndexedKeyword,0)}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.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)}},ut=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionTypeParameter_list(){return this.getTypedRuleContexts(dt)}functionTypeParameter(t){return this.getTypedRuleContext(dt,t)}get ruleIndex(){return C.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)}},dt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(mt,0)}storageLocation(){return this.getTypedRuleContext(bt,0)}get ruleIndex(){return C.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)}},pt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(mt,0)}identifier(){return this.getTypedRuleContext(ve,0)}storageLocation(){return this.getTypedRuleContext(bt,0)}get ruleIndex(){return C.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)}},mt=class t extends _{constructor(t,e,r){super(e,r),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext(Ht,0)}userDefinedTypeName(){return this.getTypedRuleContext(yt,0)}mapping(){return this.getTypedRuleContext(gt,0)}functionTypeName(){return this.getTypedRuleContext(xt,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}typeName(){return this.getTypedRuleContext(t,0)}expression(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.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)}},yt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.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)}},ft=class extends _{constructor(t,e,r){super(e,r),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext(Ht,0)}userDefinedTypeName(){return this.getTypedRuleContext(yt,0)}get ruleIndex(){return C.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)}},gt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}mappingKey(){return this.getTypedRuleContext(ft,0)}typeName(){return this.getTypedRuleContext(mt,0)}mappingKeyName(){return this.getTypedRuleContext(wt,0)}mappingValueName(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return C.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)}},wt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.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)}},vt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}functionTypeParameterList_list(){return this.getTypedRuleContexts(ut)}functionTypeParameterList(t){return this.getTypedRuleContext(ut,t)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(t){return this.getToken(C.InternalKeyword,t)}ExternalKeyword_list(){return this.getTokens(C.ExternalKeyword)}ExternalKeyword(t){return this.getToken(C.ExternalKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(_t)}stateMutability(t){return this.getTypedRuleContext(_t,t)}get ruleIndex(){return C.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)}},bt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.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)}},_t=class extends _{constructor(t,e,r){super(e,r),this.parser=t}PureKeyword(){return this.getToken(C.PureKeyword,0)}ConstantKeyword(){return this.getToken(C.ConstantKeyword,0)}ViewKeyword(){return this.getToken(C.ViewKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}get ruleIndex(){return C.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)}},Tt=class extends _{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 C.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 _{constructor(t,e,r){super(e,r),this.parser=t}ifStatement(){return this.getTypedRuleContext(kt,0)}tryStatement(){return this.getTypedRuleContext(Rt,0)}whileStatement(){return this.getTypedRuleContext(Ct,0)}forStatement(){return this.getTypedRuleContext(Kt,0)}block(){return this.getTypedRuleContext(Tt,0)}inlineAssemblyStatement(){return this.getTypedRuleContext(Nt,0)}doWhileStatement(){return this.getTypedRuleContext(Ot,0)}continueStatement(){return this.getTypedRuleContext(Pt,0)}breakStatement(){return this.getTypedRuleContext(qt,0)}returnStatement(){return this.getTypedRuleContext(Ft,0)}throwStatement(){return this.getTypedRuleContext(Ut,0)}emitStatement(){return this.getTypedRuleContext(Mt,0)}simpleStatement(){return this.getTypedRuleContext(Lt,0)}uncheckedStatement(){return this.getTypedRuleContext(It,0)}revertStatement(){return this.getTypedRuleContext(Yt,0)}get ruleIndex(){return C.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)}},St=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.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)}},kt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext($t,0)}statement_list(){return this.getTypedRuleContexts(Et)}statement(t){return this.getTypedRuleContext(Et,t)}get ruleIndex(){return C.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)}},Rt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext($t,0)}block(){return this.getTypedRuleContext(Tt,0)}returnParameters(){return this.getTypedRuleContext(rt,0)}catchClause_list(){return this.getTypedRuleContexts(At)}catchClause(t){return this.getTypedRuleContext(At,t)}get ruleIndex(){return C.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)}},At=class extends _{constructor(t,e,r){super(e,r),this.parser=t}block(){return this.getTypedRuleContext(Tt,0)}parameterList(){return this.getTypedRuleContext(ot,0)}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext($t,0)}statement(){return this.getTypedRuleContext(Et,0)}get ruleIndex(){return C.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)}},Lt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}variableDeclarationStatement(){return this.getTypedRuleContext(Vt,0)}expressionStatement(){return this.getTypedRuleContext(St,0)}get ruleIndex(){return C.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)}},It=class extends _{constructor(t,e,r){super(e,r),this.parser=t}block(){return this.getTypedRuleContext(Tt,0)}get ruleIndex(){return C.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)}},Kt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}statement(){return this.getTypedRuleContext(Et,0)}simpleStatement(){return this.getTypedRuleContext(Lt,0)}expressionStatement(){return this.getTypedRuleContext(St,0)}expression(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.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)}},Nt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyBlock(){return this.getTypedRuleContext(Zt,0)}StringLiteralFragment(){return this.getToken(C.StringLiteralFragment,0)}inlineAssemblyStatementFlag(){return this.getTypedRuleContext(Dt,0)}get ruleIndex(){return C.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)}},Dt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}stringLiteral(){return this.getTypedRuleContext(_e,0)}get ruleIndex(){return C.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)}},Ot=class extends _{constructor(t,e,r){super(e,r),this.parser=t}statement(){return this.getTypedRuleContext(Et,0)}expression(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.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)}},Pt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ContinueKeyword(){return this.getToken(C.ContinueKeyword,0)}get ruleIndex(){return C.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)}},qt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}BreakKeyword(){return this.getToken(C.BreakKeyword,0)}get ruleIndex(){return C.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)}},Ft=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.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)}},Ut=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.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)}},Mt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionCall(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return C.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)}},Yt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionCall(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return C.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)}},Vt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifierList(){return this.getTypedRuleContext(Bt,0)}variableDeclaration(){return this.getTypedRuleContext(pt,0)}variableDeclarationList(){return this.getTypedRuleContext(jt,0)}expression(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.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)}},jt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}variableDeclaration_list(){return this.getTypedRuleContexts(pt)}variableDeclaration(t){return this.getTypedRuleContext(pt,t)}get ruleIndex(){return C.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)}},Bt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}Int(){return this.getToken(C.Int,0)}Uint(){return this.getToken(C.Uint,0)}Byte(){return this.getToken(C.Byte,0)}Fixed(){return this.getToken(C.Fixed,0)}Ufixed(){return this.getToken(C.Ufixed,0)}get ruleIndex(){return C.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)}},$t=class t extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(mt,0)}expression_list(){return this.getTypedRuleContexts(t)}expression(e){return this.getTypedRuleContext(t,e)}primaryExpression(){return this.getTypedRuleContext(Qt,0)}identifier(){return this.getTypedRuleContext(ve,0)}nameValueList(){return this.getTypedRuleContext(zt,0)}functionCallArguments(){return this.getTypedRuleContext(Xt,0)}get ruleIndex(){return C.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)}},Qt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}BooleanLiteral(){return this.getToken(C.BooleanLiteral,0)}numberLiteral(){return this.getTypedRuleContext(we,0)}hexLiteral(){return this.getTypedRuleContext(xe,0)}stringLiteral(){return this.getTypedRuleContext(_e,0)}identifier(){return this.getTypedRuleContext(ve,0)}TypeKeyword(){return this.getToken(C.TypeKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}tupleExpression(){return this.getTypedRuleContext(ge,0)}typeName(){return this.getTypedRuleContext(mt,0)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}expression_list(){return this.getTypedRuleContexts($t)}expression(t){return this.getTypedRuleContext($t,t)}get ruleIndex(){return C.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 _{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 C.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 _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}expression(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.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 _{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 C.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)}},Jt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext($t,0)}functionCallArguments(){return this.getTypedRuleContext(Xt,0)}get ruleIndex(){return C.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)}},Zt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyItem_list(){return this.getTypedRuleContexts(te)}assemblyItem(t){return this.getTypedRuleContext(te,t)}get ruleIndex(){return C.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)}},te=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}assemblyBlock(){return this.getTypedRuleContext(Zt,0)}assemblyExpression(){return this.getTypedRuleContext(ee,0)}assemblyLocalDefinition(){return this.getTypedRuleContext(ie,0)}assemblyAssignment(){return this.getTypedRuleContext(ne,0)}assemblyStackAssignment(){return this.getTypedRuleContext(ce,0)}labelDefinition(){return this.getTypedRuleContext(le,0)}assemblySwitch(){return this.getTypedRuleContext(he,0)}assemblyFunctionDefinition(){return this.getTypedRuleContext(de,0)}assemblyFor(){return this.getTypedRuleContext(me,0)}assemblyIf(){return this.getTypedRuleContext(ye,0)}BreakKeyword(){return this.getToken(C.BreakKeyword,0)}ContinueKeyword(){return this.getToken(C.ContinueKeyword,0)}LeaveKeyword(){return this.getToken(C.LeaveKeyword,0)}numberLiteral(){return this.getTypedRuleContext(we,0)}stringLiteral(){return this.getTypedRuleContext(_e,0)}hexLiteral(){return this.getTypedRuleContext(xe,0)}get ruleIndex(){return C.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)}},ee=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyCall(){return this.getTypedRuleContext(se,0)}assemblyLiteral(){return this.getTypedRuleContext(fe,0)}assemblyMember(){return this.getTypedRuleContext(re,0)}get ruleIndex(){return C.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)}},re=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.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)}},se=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}assemblyExpression_list(){return this.getTypedRuleContexts(ee)}assemblyExpression(t){return this.getTypedRuleContext(ee,t)}get ruleIndex(){return C.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)}},ie=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(ae,0)}assemblyExpression(){return this.getTypedRuleContext(ee,0)}get ruleIndex(){return C.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)}},ne=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(ae,0)}assemblyExpression(){return this.getTypedRuleContext(ee,0)}get ruleIndex(){return C.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)}},ae=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}assemblyMember(){return this.getTypedRuleContext(re,0)}assemblyIdentifierList(){return this.getTypedRuleContext(oe,0)}get ruleIndex(){return C.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)}},oe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.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)}},ce=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(ee,0)}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.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)}},le=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.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)}},he=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(ee,0)}assemblyCase_list(){return this.getTypedRuleContexts(ue)}assemblyCase(t){return this.getTypedRuleContext(ue,t)}get ruleIndex(){return C.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)}},ue=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyLiteral(){return this.getTypedRuleContext(fe,0)}assemblyBlock(){return this.getTypedRuleContext(Zt,0)}get ruleIndex(){return C.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)}},de=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}assemblyBlock(){return this.getTypedRuleContext(Zt,0)}assemblyIdentifierList(){return this.getTypedRuleContext(oe,0)}assemblyFunctionReturns(){return this.getTypedRuleContext(pe,0)}get ruleIndex(){return C.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)}},pe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierList(){return this.getTypedRuleContext(oe,0)}get ruleIndex(){return C.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)}},me=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression_list(){return this.getTypedRuleContexts(ee)}assemblyExpression(t){return this.getTypedRuleContext(ee,t)}assemblyBlock_list(){return this.getTypedRuleContexts(Zt)}assemblyBlock(t){return this.getTypedRuleContext(Zt,t)}get ruleIndex(){return C.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)}},ye=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(ee,0)}assemblyBlock(){return this.getTypedRuleContext(Zt,0)}get ruleIndex(){return C.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)}},fe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}stringLiteral(){return this.getTypedRuleContext(_e,0)}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}HexNumber(){return this.getToken(C.HexNumber,0)}hexLiteral(){return this.getTypedRuleContext(xe,0)}BooleanLiteral(){return this.getToken(C.BooleanLiteral,0)}get ruleIndex(){return C.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)}},ge=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression_list(){return this.getTypedRuleContexts($t)}expression(t){return this.getTypedRuleContext($t,t)}get ruleIndex(){return C.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)}},we=class extends _{constructor(t,e,r){super(e,r),this.parser=t}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}HexNumber(){return this.getToken(C.HexNumber,0)}NumberUnit(){return this.getToken(C.NumberUnit,0)}get ruleIndex(){return C.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)}},ve=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ReceiveKeyword(){return this.getToken(C.ReceiveKeyword,0)}GlobalKeyword(){return this.getToken(C.GlobalKeyword,0)}ConstructorKeyword(){return this.getToken(C.ConstructorKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}LeaveKeyword(){return this.getToken(C.LeaveKeyword,0)}Identifier(){return this.getToken(C.Identifier,0)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}HexLiteralFragment_list(){return this.getTokens(C.HexLiteralFragment)}HexLiteralFragment(t){return this.getToken(C.HexLiteralFragment,t)}get ruleIndex(){return C.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)}},be=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName_list(){return this.getTypedRuleContexts(yt)}userDefinedTypeName(t){return this.getTypedRuleContext(yt,t)}get ruleIndex(){return C.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)}},_e=class extends _{constructor(t,e,r){super(e,r),this.parser=t}StringLiteralFragment_list(){return this.getTokens(C.StringLiteralFragment)}StringLiteralFragment(t){return this.getToken(C.StringLiteralFragment,t)}get ruleIndex(){return C.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)}},Te=["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=["+","-","*","/","**","%","<<",">>","&&","||","&","^","<",">","<=",">=","==","!=","=","^=","&=","<<=",">>=","+=","-=","*=","/=","%=","|","|="],Se=["-","+","++","--","~","after","delete","!"],ke=class extends v{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);let u=!1;t.TransientKeyword_list().length>0&&(u=!0);const d={type:"VariableDeclaration",typeName:e,name:s,identifier:this.visitIdentifier(r),expression:i,visibility:a,isStateVar:!0,isDeclaredConst:c,isIndexed:!1,isImmutable:h,isTransient:u,override:o,storageLocation:null},p={type:"StateVariableDeclaration",variables:[this._addMeta(d,t)],initialValue:i};return this._addMeta(p,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(Se.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}},Re=class extends m{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}},Ae={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:"transient",112:"immutable",113:"continue",114:"leave",115:"external",116:"indexed",117:"internal",118:"payable",119:"private",120:"public",121:"virtual",122:"pure",123:"type",124:"view",125:"global",126:"constructor",127:"fallback",128:"receive",129:"Identifier",130:"StringLiteralFragment",131:"VersionLiteral",132:"WS",133:"COMMENT",134:"LINE_COMMENT"},Ce=["var","bool","address","string","Int","Uint","Byte","Fixed","UFixed"];function Le(t){return[t.start,t.stop+1]}function Ie(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 Ke(t,e){return t.map((t=>{var r;const s={type:"Identifier"===(r=Ae[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=Le(t)),!0===e.loc&&(s.loc=Ie(t)),s}))}var Ne=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 De(t,e={}){const r=new u(t);return Ke(new R(r).getAllTokens(),e)}function Oe(t,e={}){const r=new u(t),s=new R(r),i=new d(s),n=new C(i),a=new Re;s.removeErrorListeners(),s.addErrorListener(a),n.removeErrorListeners(),n.addErrorListener(a),n.buildParseTrees=!0;const o=n.sourceUnit(),c=new ke(e);c.visit(o);const l=c.result;if(null===l)throw new Error("ast should never be null");if(!0===e.tokens&&(l.tokens=Ke(i.tokens,e)),!0===e.comments&&(l.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=Le(t)),!0===r.loc&&(e.loc=Ie(t)),e}))}(i.tokens,s.channelNames.indexOf("HIDDEN"),e)),a.hasErrors()){if(!0!==e.tolerant)throw new Ne({errors:a.getErrors()});l.errors=a.getErrors()}return l}function Pe(t,e,r){if(Array.isArray(t)&&t.forEach((t=>Pe(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)&&Te.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)&&Pe(t[r],e,t);const i=t.type+":exit";void 0!==e[i]&&e[i](t,r)}var qe,Fe={ParserError:Ne,parse:Oe,tokenize:De,visit:Pe};return qe=i,((i,n,a,o)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let a of r(n))s.call(i,a)||undefined===a||t(i,a,{get:()=>n[a],enumerable:!(o=e(n,a))||o.enumerable});return i})(t({},"__esModule",{value:!0}),qe)})();return t},t.exports=s()},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)}}))},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)}}))},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)}}))},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)}}))},3357:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>x});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),v=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]=v.then?(await v)():v;class x{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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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(5427),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.YulPath;const e=(0,n.sQ)(t,!0);this.items=t.items.map((t=>new a.E(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)}}))},3874:(t,e,r)=>{const s=r(8311);t.exports=(t,e)=>{try{return new s(t,e).range||"*"}catch(t){return null}}},3888:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Mk:()=>o,ktF:()=>Fr});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=os((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{members:new gr(t)}})),cs(this.cst.kind,n.q3.SourceUnit)}get members(){return this.fetch().members}}class c{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{pragmaKeyword:t,pragma:new Ce(e),semicolon:r}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{abicoderKeyword:t,version:e}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{experimentalKeyword:t,feature:new Le(e)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{solidityKeyword:t,sets:new Fr(e)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{start:new Ne(t),minus:e,end:new Ne(r)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operator:void 0===t?void 0:new Ke(t),literal:new Ne(e)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{importKeyword:t,clause:new De(e),semicolon:r}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{path:new cr(t),alias:void 0===e?void 0:new v(e)}})),cs(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=os((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{asterisk:t,alias:new v(e),fromKeyword:r,path:new cr(s)}})),cs(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=os((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,symbols:new Mr(e),closeBrace:r,fromKeyword:s,path:new cr(n)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:t,alias:void 0===e?void 0:new v(e)}})),cs(this.cst.kind,n.q3.ImportDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class v{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:t,identifier:e}})),cs(this.cst.kind,n.q3.ImportAlias)}get asKeyword(){return this.fetch().asKeyword}get identifier(){return this.fetch().identifier}}class x{constructor(t){this.cst=t,this.fetch=os((()=>{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}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,symbols:new Yr(e),closeBrace:r}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:new es(t),alias:void 0===e?void 0:new T(e)}})),cs(this.cst.kind,n.q3.UsingDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class T{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:t,operator:new Pe(e)}})),cs(this.cst.kind,n.q3.UsingAlias)}get asKeyword(){return this.fetch().asKeyword}get operator(){return this.fetch().operator}}class E{constructor(t){this.cst=t,this.fetch=os((()=>{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 vr(a),closeBrace:o}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{isKeyword:t,types:new Vr(e)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new es(t),arguments:void 0===e?void 0:new nr(e)}})),cs(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=os((()=>{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 xr(n),closeBrace:a}})),cs(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=os((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{libraryKeyword:t,name:e,openBrace:r,members:new br(s),closeBrace:n}})),cs(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=os((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{structKeyword:t,name:e,openBrace:r,members:new _r(s),closeBrace:n}})),cs(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 L{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Ge(t),name:e,semicolon:r}})),cs(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 I{constructor(t){this.cst=t,this.fetch=os((()=>{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}})),cs(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 K{constructor(t){this.cst=t,this.fetch=os((()=>{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}})),cs(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=os((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Ge(t),attributes:new Tr(e),name:r,value:void 0===s?void 0:new D(s),semicolon:n}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,value:new ir(e)}})),cs(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=os((()=>{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 Er(s),returns:void 0===n?void 0:new M(n),body:new Ve(a)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new Br(e),closeParen:r}})),cs(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=os((()=>{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}})),cs(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 F{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{overrideKeyword:t,overridden:void 0===e?void 0:new U(e)}})),cs(this.cst.kind,n.q3.OverrideSpecifier)}get overrideKeyword(){return this.fetch().overrideKeyword}get overridden(){return this.fetch().overridden}}class U{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,paths:new Hr(e),closeParen:r}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{returnsKeyword:t,variables:new P(e)}})),cs(this.cst.kind,n.q3.ReturnsDeclaration)}get returnsKeyword(){return this.fetch().returnsKeyword}get variables(){return this.fetch().variables}}class Y{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{constructorKeyword:t,parameters:new P(e),attributes:new Sr(r),body:new at(s)}})),cs(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 V{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new P(e),attributes:new kr(r),body:new Ve(s)}})),cs(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 j{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{fallbackKeyword:t,parameters:new P(e),attributes:new Rr(r),returns:void 0===s?void 0:new M(s),body:new Ve(n)}})),cs(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 B{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{receiveKeyword:t,parameters:new P(e),attributes:new Ar(r),body:new Ve(s)}})),cs(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 H{constructor(t){this.cst=t,this.fetch=os((()=>{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 Cr(s),body:new Ve(n)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:new es(t),arguments:void 0===e?void 0:new nr(e)}})),cs(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=os((()=>{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}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new $r(e),closeParen:r}})),cs(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=os((()=>{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}})),cs(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=os((()=>{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}})),cs(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=os((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{errorKeyword:t,name:e,members:new J(r),semicolon:s}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new Qr(e),closeParen:r}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Ge(t),name:void 0===e?void 0:e}})),cs(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=os((()=>{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}})),cs(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=os((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new P(e),attributes:new Lr(r),returns:void 0===s?void 0:new M(s)}})),cs(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=os((()=>{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}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{keyType:new We(t),name:void 0===e?void 0:e}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Ge(t),name:void 0===e?void 0:e}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{addressKeyword:t,payableKeyword:void 0===e?void 0:e}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,statements:new Ir(e),closeBrace:r}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{uncheckedKeyword:t,block:new at(e)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{expression:new ir(t),semicolon:e}})),cs(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=os((()=>{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)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,flags:new Gr(e),closeParen:r}})),cs(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=os((()=>{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 zr(r),closeParen:s,equal:n,expression:new ir(a),semicolon:o}})),cs(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=os((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{member:void 0===t?void 0:new Ze(t)}})),cs(this.cst.kind,n.q3.TupleDeconstructionElement)}get member(){return this.fetch().member}}class pt{constructor(t){this.cst=t,this.fetch=os((()=>{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}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{storageLocation:void 0===t?void 0:new er(t),name:e}})),cs(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=os((()=>{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}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,expression:new ir(e)}})),cs(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=os((()=>{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)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{elseKeyword:t,body:new Je(e)}})),cs(this.cst.kind,n.q3.ElseBranch)}get elseKeyword(){return this.fetch().elseKeyword}get body(){return this.fetch().body}}class vt{constructor(t){this.cst=t,this.fetch=os((()=>{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)}})),cs(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 xt{constructor(t){this.cst=t,this.fetch=os((()=>{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)}})),cs(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=os((()=>{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}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:t,semicolon:e}})),cs(this.cst.kind,n.q3.ContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}get semicolon(){return this.fetch().semicolon}}class Tt{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:t,semicolon:e}})),cs(this.cst.kind,n.q3.BreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}get semicolon(){return this.fetch().semicolon}}class Et{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{returnKeyword:t,expression:void 0===e?void 0:new ir(e),semicolon:r}})),cs(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=os((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{emitKeyword:t,event:new es(e),arguments:new nr(r),semicolon:s}})),cs(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=os((()=>{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 Kr(n)}})),cs(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=os((()=>{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)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:void 0===t?void 0:t,parameters:new P(e)}})),cs(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=os((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{revertKeyword:t,error:void 0===e?void 0:new es(e),arguments:new nr(r),semicolon:s}})),cs(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 Lt{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{throwKeyword:t,semicolon:e}})),cs(this.cst.kind,n.q3.ThrowStatement)}get throwKeyword(){return this.fetch().throwKeyword}get semicolon(){return this.fetch().semicolon}}class It{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),cs(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 Kt{constructor(t){this.cst=t,this.fetch=os((()=>{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)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),cs(this.cst.kind,n.q3.InequalityExpression)}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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),cs(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 Ft{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),cs(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 Ut{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),cs(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 Yt{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),cs(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 Vt{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),cs(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 jt{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ir(t),operator:e,rightOperand:new ir(r)}})),cs(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 Bt{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),operator:e}})),cs(this.cst.kind,n.q3.PostfixExpression)}get operand(){return this.fetch().operand}get operator(){return this.fetch().operator}}class Ht{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operator:t,operand:new ir(e)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),arguments:new nr(e)}})),cs(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=os((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),openBrace:e,options:new Jr(r),closeBrace:s}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{operand:new ir(t),period:e,member:r}})),cs(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=os((()=>{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}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{colon:t,end:void 0===e?void 0:new ir(e)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,arguments:new Wr(e),closeParen:r}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,arguments:void 0===e?void 0:new Zt(e),closeParen:r}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,arguments:new Xr(e),closeBrace:r}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{name:t,colon:e,value:new ir(r)}})),cs(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=os((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:t,openParen:e,typeName:new Ge(r),closeParen:s}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{newKeyword:t,typeName:new Ge(e)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,items:new Zr(e),closeParen:r}})),cs(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=os((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{expression:void 0===t?void 0:new ir(t)}})),cs(this.cst.kind,n.q3.TupleValue)}get expression(){return this.fetch().expression}}class ne{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBracket:t,items:new ts(e),closeBracket:r}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{literal:t,unit:void 0===e?void 0:new ar(e)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{literal:t,unit:void 0===e?void 0:new ar(e)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,statements:new Pr(e),closeBrace:r}})),cs(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=os((()=>{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)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new rs(e),closeParen:r}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{minusGreaterThan:t,variables:new ss(e)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{letKeyword:t,variables:new ss(e),value:void 0===r?void 0:new pe(r)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{assignment:new dr(t),expression:new yr(e)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{variables:new ns(t),assignment:new dr(e),expression:new yr(r)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{colon:t,equal:e}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{assignment:new pr(t),variable:e}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,colon:e}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:t,condition:new yr(e),body:new ce(r)}})),cs(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 ve{constructor(t){this.cst=t,this.fetch=os((()=>{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)}})),cs(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 xe{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{switchKeyword:t,expression:new yr(e),cases:new qr(r)}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{defaultKeyword:t,body:new ce(e)}})),cs(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=os((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{caseKeyword:t,value:new fr(e),body:new ce(r)}})),cs(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 Te{constructor(t){this.cst=t,this.fetch=os((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{leaveKeyword:t}})),cs(this.cst.kind,n.q3.YulLeaveStatement)}get leaveKeyword(){return this.fetch().leaveKeyword}}class Ee{constructor(t){this.cst=t,this.fetch=os((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:t}})),cs(this.cst.kind,n.q3.YulBreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}}class Se{constructor(t){this.cst=t,this.fetch=os((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:t}})),cs(this.cst.kind,n.q3.YulContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}}class ke{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{label:t,colon:e}})),cs(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=os((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new yr(t),openParen:e,arguments:new is(r),closeParen:s}})),cs(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=os((()=>{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 E(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 I(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 x(t);case n.q3.EventDefinition:return new Q(t);case n.q3.ConstantDefinition:return new K(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),cs(this.cst.kind,n.q3.SourceUnitMember)}get variant(){return this.fetch()}}class Ce{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)}})),cs(this.cst.kind,n.q3.Pragma)}get variant(){return this.fetch()}}class Le{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)})),cs(this.cst.kind,n.q3.ExperimentalFeature)}get variant(){return this.fetch()}}class Ie{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)}})),cs(this.cst.kind,n.q3.VersionExpression)}get variant(){return this.fetch()}}class Ke{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.choice(this.cst))),cs(this.cst.kind,n.q3.VersionOperator)}get variant(){return this.fetch()}}class Ne{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)})),cs(this.cst.kind,n.q3.VersionLiteral)}get variant(){return this.fetch()}}class De{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)}})),cs(this.cst.kind,n.q3.ImportClause)}get variant(){return this.fetch()}}class Oe{constructor(t){this.cst=t,this.fetch=os((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.IdentifierPath:return new es(t);case n.q3.UsingDeconstruction:return new b(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),cs(this.cst.kind,n.q3.UsingClause)}get variant(){return this.fetch()}}class Pe{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.choice(this.cst))),cs(this.cst.kind,n.q3.UsingOperator)}get variant(){return this.fetch()}}class qe{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)})),cs(this.cst.kind,n.q3.UsingTarget)}get variant(){return this.fetch()}}class Fe{constructor(t){this.cst=t,this.fetch=os((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.UsingDirective:return new x(t);case n.q3.FunctionDefinition:return new O(t);case n.q3.ConstructorDefinition:return new Y(t);case n.q3.ReceiveFunctionDefinition:return new B(t);case n.q3.FallbackFunctionDefinition:return new j(t);case n.q3.UnnamedFunctionDefinition:return new V(t);case n.q3.ModifierDefinition:return new H(t);case n.q3.StructDefinition:return new C(t);case n.q3.EnumDefinition:return new I(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}'.`)}})),cs(this.cst.kind,n.q3.ContractMember)}get variant(){return this.fetch()}}class Ue{constructor(t){this.cst=t,this.fetch=os((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.OverrideSpecifier)return new F(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),cs(this.cst.kind,n.q3.StateVariableAttribute)}get variant(){return this.fetch()}}class Me{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.choice(this.cst))),cs(this.cst.kind,n.q3.FunctionName)}get variant(){return this.fetch()}}class Ye{constructor(t){this.cst=t,this.fetch=os((()=>{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 F(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),cs(this.cst.kind,n.q3.FunctionAttribute)}get variant(){return this.fetch()}}class Ve{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)})),cs(this.cst.kind,n.q3.FunctionBody)}get variant(){return this.fetch()}}class je{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)})),cs(this.cst.kind,n.q3.ConstructorAttribute)}get variant(){return this.fetch()}}class Be{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)})),cs(this.cst.kind,n.q3.UnnamedFunctionAttribute)}get variant(){return this.fetch()}}class He{constructor(t){this.cst=t,this.fetch=os((()=>{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 F(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),cs(this.cst.kind,n.q3.FallbackFunctionAttribute)}get variant(){return this.fetch()}}class $e{constructor(t){this.cst=t,this.fetch=os((()=>{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 F(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),cs(this.cst.kind,n.q3.ReceiveFunctionAttribute)}get variant(){return this.fetch()}}class Qe{constructor(t){this.cst=t,this.fetch=os((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.OverrideSpecifier)return new F(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),cs(this.cst.kind,n.q3.ModifierAttribute)}get variant(){return this.fetch()}}class Ge{constructor(t){this.cst=t,this.fetch=os((()=>{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 es(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),cs(this.cst.kind,n.q3.TypeName)}get variant(){return this.fetch()}}class ze{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.choice(this.cst))),cs(this.cst.kind,n.q3.FunctionTypeAttribute)}get variant(){return this.fetch()}}class We{constructor(t){this.cst=t,this.fetch=os((()=>{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 es(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),cs(this.cst.kind,n.q3.MappingKeyType)}get variant(){return this.fetch()}}class Xe{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)})),cs(this.cst.kind,n.q3.ElementaryType)}get variant(){return this.fetch()}}class Je{constructor(t){this.cst=t,this.fetch=os((()=>{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 vt(t);case n.q3.WhileStatement:return new xt(t);case n.q3.DoWhileStatement:return new bt(t);case n.q3.ContinueStatement:return new _t(t);case n.q3.BreakStatement:return new Tt(t);case n.q3.ReturnStatement:return new Et(t);case n.q3.ThrowStatement:return new Lt(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}'.`)}})),cs(this.cst.kind,n.q3.Statement)}get variant(){return this.fetch()}}class Ze{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)}})),cs(this.cst.kind,n.q3.TupleMember)}get variant(){return this.fetch()}}class tr{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)})),cs(this.cst.kind,n.q3.VariableDeclarationType)}get variant(){return this.fetch()}}class er{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.choice(this.cst))),cs(this.cst.kind,n.q3.StorageLocation)}get variant(){return this.fetch()}}class rr{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)}})),cs(this.cst.kind,n.q3.ForStatementInitialization)}get variant(){return this.fetch()}}class sr{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)})),cs(this.cst.kind,n.q3.ForStatementCondition)}get variant(){return this.fetch()}}class ir{constructor(t){this.cst=t,this.fetch=os((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.AssignmentExpression:return new It(t);case n.q3.ConditionalExpression:return new Kt(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.InequalityExpression:return new Pt(t);case n.q3.BitwiseOrExpression:return new qt(t);case n.q3.BitwiseXorExpression:return new Ft(t);case n.q3.BitwiseAndExpression:return new Ut(t);case n.q3.ShiftExpression:return new Mt(t);case n.q3.AdditiveExpression:return new Yt(t);case n.q3.MultiplicativeExpression:return new Vt(t);case n.q3.ExponentiationExpression:return new jt(t);case n.q3.PostfixExpression:return new Bt(t);case n.q3.PrefixExpression:return new Ht(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}'.`)}})),cs(this.cst.kind,n.q3.Expression)}get variant(){return this.fetch()}}class nr{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)}})),cs(this.cst.kind,n.q3.ArgumentsDeclaration)}get variant(){return this.fetch()}}class ar{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.choice(this.cst))),cs(this.cst.kind,n.q3.NumberUnit)}get variant(){return this.fetch()}}class or{constructor(t){this.cst=t,this.fetch=os((()=>{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 Nr(t);case n.q3.HexStringLiteral:return new lr(t);case n.q3.HexStringLiterals:return new Dr(t);case n.q3.UnicodeStringLiterals:return new Or(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),cs(this.cst.kind,n.q3.StringExpression)}get variant(){return this.fetch()}}class cr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.choice(this.cst))),cs(this.cst.kind,n.q3.StringLiteral)}get variant(){return this.fetch()}}class lr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.choice(this.cst))),cs(this.cst.kind,n.q3.HexStringLiteral)}get variant(){return this.fetch()}}class hr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.choice(this.cst))),cs(this.cst.kind,n.q3.UnicodeStringLiteral)}get variant(){return this.fetch()}}class ur{constructor(t){this.cst=t,this.fetch=os((()=>{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 ve(t);case n.q3.YulSwitchStatement:return new xe(t);case n.q3.YulLeaveStatement:return new Te(t);case n.q3.YulBreakStatement:return new Ee(t);case n.q3.YulContinueStatement:return new Se(t);case n.q3.YulVariableAssignmentStatement:return new me(t);case n.q3.YulLabel:return new ke(t);case n.q3.YulVariableDeclarationStatement:return new de(t);case n.q3.YulExpression:return new yr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),cs(this.cst.kind,n.q3.YulStatement)}get variant(){return this.fetch()}}class dr{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)})),cs(this.cst.kind,n.q3.YulAssignmentOperator)}get variant(){return this.fetch()}}class pr{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)})),cs(this.cst.kind,n.q3.YulStackAssignmentOperator)}get variant(){return this.fetch()}}class mr{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)}})),cs(this.cst.kind,n.q3.YulSwitchCase)}get variant(){return this.fetch()}}class yr{constructor(t){this.cst=t,this.fetch=os((()=>{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 fr(t);case n.q3.YulPath:return new as(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),cs(this.cst.kind,n.q3.YulExpression)}get variant(){return this.fetch()}}class fr{constructor(t){this.cst=t,this.fetch=os((()=>{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}'.`)}})),cs(this.cst.kind,n.q3.YulLiteral)}get variant(){return this.fetch()}}class gr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ae(t))))),cs(this.cst.kind,n.q3.SourceUnitMembers)}get items(){return this.fetch()}}class wr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ie(t))))),cs(this.cst.kind,n.q3.VersionExpressionSet)}get items(){return this.fetch()}}class vr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Fe(t))))),cs(this.cst.kind,n.q3.ContractMembers)}get items(){return this.fetch()}}class xr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Fe(t))))),cs(this.cst.kind,n.q3.InterfaceMembers)}get items(){return this.fetch()}}class br{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Fe(t))))),cs(this.cst.kind,n.q3.LibraryMembers)}get items(){return this.fetch()}}class _r{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new L(t))))),cs(this.cst.kind,n.q3.StructMembers)}get items(){return this.fetch()}}class Tr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ue(t))))),cs(this.cst.kind,n.q3.StateVariableAttributes)}get items(){return this.fetch()}}class Er{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ye(t))))),cs(this.cst.kind,n.q3.FunctionAttributes)}get items(){return this.fetch()}}class Sr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new je(t))))),cs(this.cst.kind,n.q3.ConstructorAttributes)}get items(){return this.fetch()}}class kr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Be(t))))),cs(this.cst.kind,n.q3.UnnamedFunctionAttributes)}get items(){return this.fetch()}}class Rr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new He(t))))),cs(this.cst.kind,n.q3.FallbackFunctionAttributes)}get items(){return this.fetch()}}class Ar{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new $e(t))))),cs(this.cst.kind,n.q3.ReceiveFunctionAttributes)}get items(){return this.fetch()}}class Cr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Qe(t))))),cs(this.cst.kind,n.q3.ModifierAttributes)}get items(){return this.fetch()}}class Lr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new ze(t))))),cs(this.cst.kind,n.q3.FunctionTypeAttributes)}get items(){return this.fetch()}}class Ir{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Je(t))))),cs(this.cst.kind,n.q3.Statements)}get items(){return this.fetch()}}class Kr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Rt(t))))),cs(this.cst.kind,n.q3.CatchClauses)}get items(){return this.fetch()}}class Nr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new cr(t))))),cs(this.cst.kind,n.q3.StringLiterals)}get items(){return this.fetch()}}class Dr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new lr(t))))),cs(this.cst.kind,n.q3.HexStringLiterals)}get items(){return this.fetch()}}class Or{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new hr(t))))),cs(this.cst.kind,n.q3.UnicodeStringLiterals)}get items(){return this.fetch()}}class Pr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new ur(t))))),cs(this.cst.kind,n.q3.YulStatements)}get items(){return this.fetch()}}class qr{constructor(t){this.cst=t,this.fetch=os((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new mr(t))))),cs(this.cst.kind,n.q3.YulSwitchCases)}get items(){return this.fetch()}}class Fr{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new wr(t))),separators:e}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),cs(this.cst.kind,n.q3.SimpleVersionLiteral)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Mr{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new w(t))),separators:e}})),cs(this.cst.kind,n.q3.ImportDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Yr{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new _(t))),separators:e}})),cs(this.cst.kind,n.q3.UsingDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Vr{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new k(t))),separators:e}})),cs(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=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),cs(this.cst.kind,n.q3.EnumMembers)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Br{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new q(t))),separators:e}})),cs(this.cst.kind,n.q3.Parameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Hr{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new es(t))),separators:e}})),cs(this.cst.kind,n.q3.OverridePaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class $r{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new z(t))),separators:e}})),cs(this.cst.kind,n.q3.EventParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Qr{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new Z(t))),separators:e}})),cs(this.cst.kind,n.q3.ErrorParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Gr{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new cr(t))),separators:e}})),cs(this.cst.kind,n.q3.AssemblyFlags)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class zr{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new dt(t))),separators:e}})),cs(this.cst.kind,n.q3.TupleDeconstructionElements)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Wr{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ir(t))),separators:e}})),cs(this.cst.kind,n.q3.PositionalArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Xr{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new te(t))),separators:e}})),cs(this.cst.kind,n.q3.NamedArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Jr{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new te(t))),separators:e}})),cs(this.cst.kind,n.q3.CallOptions)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Zr{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ie(t))),separators:e}})),cs(this.cst.kind,n.q3.TupleValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ts{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ir(t))),separators:e}})),cs(this.cst.kind,n.q3.ArrayValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class es{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),cs(this.cst.kind,n.q3.IdentifierPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class rs{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),cs(this.cst.kind,n.q3.YulParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ss{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),cs(this.cst.kind,n.q3.YulVariableNames)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class is{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new yr(t))),separators:e}})),cs(this.cst.kind,n.q3.YulArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ns{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new as(t))),separators:e}})),cs(this.cst.kind,n.q3.YulPaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class as{constructor(t){this.cst=t,this.fetch=os((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),cs(this.cst.kind,n.q3.YulPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}function os(t){let e;return()=>(void 0===e&&(e=t()),e)}function cs(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(ls){s(ls)}}))},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)}}))},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)},3908:(t,e,r)=>{const s=r(7272),{MAX_LENGTH:i,MAX_SAFE_INTEGER:n}=r(6874),{safeRe:a,safeSrc:o,t:c}=r(9718),l=r(8587),{compareIdentifiers:h}=r(1123);class u{constructor(t,e){if(e=l(e),t instanceof u){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[c.LOOSE]:a[c.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 u)){if("string"==typeof t&&t===this.version)return 0;t=new u(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof u||(t=new u(t,this.options)),h(this.major,t.major)||h(this.minor,t.minor)||h(this.patch,t.patch)}comparePre(t){if(t instanceof u||(t=new u(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 h(r,i)}while(++e)}compareBuild(t){t instanceof u||(t=new u(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 h(r,i)}while(++e)}inc(t,e,r){if(t.startsWith("pre")){if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(e){const t=new RegExp(`^${this.options.loose?o[c.PRERELEASELOOSE]:o[c.PRERELEASE]}$`),r=`-${e}`.match(t);if(!r||r[1]!==e)throw new Error(`invalid identifier: ${e}`)}}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"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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(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===h(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=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.languageVersion;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)}}))},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)}}))},3999:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>0!==s(t,e,r)},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)}}))},4079:(t,e,r)=>{function s(t){return"label"===t.type}r.d(e,{J:()=>s})},4089:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)>=0},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)}}))},4138:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{n:()=>v});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 v{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(x){s(x)}}))},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)}}))},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)}}))},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)}}))},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}},4254:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>y});var i=r(3013),n=r(4675),a=r(6424),o=r(9530),c=r(9589),l=r(4313),h=t([i,n,a,o,l]);[i,n,a,o,l]=h.then?(await h)():h;const u=o.g.allVersions(),d=Array.from(u.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)(u,e)),t.push((0,c.minSatisfying)(u,e)),t)),[]),p=[n.XK.create("[VersionPragma @versionRanges [VersionExpressionSets]]")];let m;function y(t,e){const r=(0,c.maxSatisfying)(u,e.compiler);if(r)return m&&m.languageVersion===r||(m=a.i.create(r)),[m,m.parseNonterminal(n.q3.SourceUnit,t)];let s,i=!1;m?i=!0:m=a.i.create(d[0]);let o=[];try{s=m.parseNonterminal(n.q3.SourceUnit,t),o=f(s,m,i)}catch(e){for(let e=i?0:1;e<=d.length;e+=1)try{const r=d[e];m=a.i.create(r),s=m.parseNonterminal(n.q3.SourceUnit,t),o=f(s,m);break}catch(t){continue}}const l=o.reduce(((t,r)=>{if(!(0,c.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,c.satisfies)(t,r)))}),u),h=l.length>0?l[l.length-1]:u[u.length-1];return h!==m.languageVersion&&(m=a.i.create(h),s=m.parseNonterminal(n.q3.SourceUnit,t)),[m,s]}function f(t,e,r=!1){const s=t.createTreeCursor().query(p),n=[];let a;for(;a=s.next();){const t=new i.ktF(a.captures.versionRanges[0].node.asNonterminalNode());n.push(new l.k(t).comments.reduce(((t,e)=>t.replace(e.value," ")),t.cst.unparse()))}if(0===n.length){if(!r&&t.isValid())return[e.languageVersion];throw new Error(`Using version ${e.languageVersion} did not find any pragma statement and does not parse without errors.`)}return n}s()}catch(g){s(g)}}))},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)}}))},4277:(t,e,r)=>{const s=r(909);t.exports=(t,e)=>t.sort(((t,r)=>s(r,t,e)))},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)}}))},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)}}))},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)}}))},4468:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{B:()=>x});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),v=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]=v.then?(await v)():v;class x{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)}}))},4493:(t,e,r)=>{const s=r(3908);t.exports=(t,e)=>new s(t,e).patch},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()))}},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)}}))},4641:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>0===s(t,e,r)},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)}}))},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)}}))},4675:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{XK:()=>h,hP:()=>c,q3:()=>o,xo:()=>l});var i=r(1901),n=r(3070),a=t([i,n]);[i,n]=a.then?(await a)():a;const o=i.tQ.NonterminalKind,c=i.tQ.TerminalKind,l=(i.tQ.TerminalKindExtensions,i.tQ.EdgeLabel,i.tQ.NodeType,i.tQ.NonterminalNode,i.tQ.TerminalNode),h=(i.tQ.Cursor,i.tQ.CursorIterator,i.tQ.AncestorsIterator,i.tQ.Query);i.tQ.QueryMatchIterator,s()}catch(t){s(t)}}))},4687:(t,e,r)=>{r.d(e,{tN:()=>L,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 v(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:x,addTrailingComment:b,addDanglingComment:_}=s.util,{addLeadingComment:T,addTrailingComment:E,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):(x(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?(T(r,s),!0):")"===a&&(e?(E(e,s),!0):"LineComment"===s.type?(T(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)||v(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)||v(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)||v(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 L(t){return"BlockComment"===t.type}const{hardline:I,join:K}=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["/*",K(I,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})?[I,t]:t}return`/*${r.value}*/`;case"LineComment":return`//${r.value.trimEnd()}`;default:throw new Error(`Not a comment: ${JSON.stringify(r)}`)}}},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)}}))},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)}}))},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)}}))},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)}}))},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}},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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,v=!(!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(v&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===v.major&&t.semver.minor===v.minor&&t.semver.patch===v.patch&&(v=!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||v||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}},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)}}))},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)}}))},5200:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)<=0},5211:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{W:()=>E});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),v=r(6133),x=r(7299),b=r(6511),_=r(6470),T=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,v,x,b,_]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,v,x,b,_]=T.then?(await T)():T;class E{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 v.i(t.variant,e);break;case i.q3.AssemblyStatement:this.variant=new x.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)}}))},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)}}))},5342:(t,e,r)=>{const s=r(7075);t.exports=(t,e,r)=>s(t,e,"<",r)},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)}}))},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)}}))},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)}}))},5571:(t,e,r)=>{const s=r(7075);t.exports=(t,e,r)=>s(t,e,">",r)},5580:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)>0},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},6015:(t,e,r)=>{r.d(e,{yT:()=>a});const s=65536;let i,n;const a={getRandomBytes(t){const e=new Uint8Array(Number(t));if(t>s)for(var r=0;r<t;r+=s)crypto.getRandomValues(e.subarray(r,r+s));else crypto.getRandomValues(e);return e},getRandomU64:()=>crypto.getRandomValues(new BigUint64Array(1))[0],insecureRandom:()=>(void 0===i&&(i=a.getRandomU64(),n=a.getRandomU64()),[i,n])}},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)}}))},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)}}))},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)}}))},6155:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>x});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),v=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]=v.then?(await v)():v;class x{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)}}))},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)}}))},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)}}))},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)}},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)}}))},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)}}))},6254:(t,e,r)=>{const s=r(3908);t.exports=(t,e)=>new s(t,e).minor},6308:(t,e,r)=>{const s=r(909);t.exports=(t,e)=>t.sort(((t,r)=>s(t,r,e)))},6312:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{T:()=>v});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)," ?"]),v=p([c?u:m,e.call(r,"trueExpression")]),x=h([w,v],{id:Symbol("Slang.ConditionalExpression.trueExpression")}),b=e.call(r,"falseExpression"),_=[o?u:m,":",l?[" ",b]:d([f(s),p(b)],[" ",b],{groupId:x.id})],T=h([x,_]);return i.kind===n.q3.VariableDeclarationValue?h(p([y,T])):T}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 v{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(x){s(x)}}))},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)}}))},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)}}))},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)}}))},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)}}))},6405:(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.InequalityExpression;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)}}))},6424:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>a});var i=r(1901),n=t([i]);const a=(i=(n.then?(await n)():n)[0]).K3.Parser;i.K3.ParseOutput,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)}}))},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)}}))},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)}}))},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)}}))},6563:(t,e,r)=>{function s(t){const e=new Set(t);return t=>e.has(t.kind)}r.d(e,{n:()=>s})},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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))},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)}}))},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)}}))},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}},6953:(t,e,r)=>{const s=r(144);t.exports=(t,e)=>{const r=s(t,e);return r?r.version:null}},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)}}))},7059:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)<0},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}},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)}},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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},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)}}))},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)}}))},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}},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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})}},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)}}))},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)}}))},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)}}))},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(" ")))},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)}},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)}}))},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)}}))},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)}},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)}}))},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)}}))},7870:(t,e,r)=>{t.exports=r.p+"78244c53725e2131398e.wasm"},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()}`)))}},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},8156:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>A});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",v="solidity-ast",x=[{linguistLanguageId:237469032,name:"Solidity",aceMode:"text",tmScope:"source.solidity",extensions:[".sol"],parsers:[f,g],vscodeLanguageIds:["solidity"]}],b=Object.assign({astFormat:v,parse:l.A},o.A),_={astFormat:w,parse:u.A,locStart:m.z,locEnd:m.I},T={[f]:_,[g]:b},E=t=>"string"!=typeof t&&void 0!==t&&t.kind&&!(0,p.C)(t),S={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},k={canAttachComment:E,handleComments:n.X,isBlockComment:p.t,massageAstNode:a.A,print:d.A,printComment:n.o},R={bracketSpacing:!1,tabWidth:4},A={languages:x,parsers:T,printers:{[w]:k,[v]:S},options:c.A,defaultOptions:R};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)}}))},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)}}))},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,L(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=>x(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 v=[...l.values()];return n.set(e,v),v}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Range is required");return this.set.some((r=>v(r,e)&&t.set.some((t=>v(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(I(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,v=(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},x=(t,e)=>(c("comp",t,e),t=E(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=>T(t,e))).join(" "),T=(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}))},E=(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],"")),L=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(),I=(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}},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},8587:t=>{const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},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)}}))},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)}}))},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 "+(0===t?"successfully":"with error")),this.exitError=!0,this.code=t}}const u={exit(t){throw new h("err"===t.tag?1:0)},exitWithCode(t){throw new h(t)}},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 v{}new v,new v,new class{}},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)}}))},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}}},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)}}))},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)}}))},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(6405),d=r(7438),p=r(4654),m=r(7162),y=r(4852),f=r(2054),g=r(8968),w=r(6121),v=r(4109),x=r(8802),b=r(9894),_=r(2514),T=r(4138),E=r(4882),S=r(6010),k=r(4274),R=r(86),A=r(6233),C=r(9804),L=r(1390),I=r(9511),K=r(3198),N=r(2291),D=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,v,x,b,_,T,E,S,k,R,A,C,L,I,K,N]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,v,x,b,_,T,E,S,k,R,A,C,L,I,K,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.InequalityExpression: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 v._(t.variant,e);break;case i.q3.PrefixExpression:this.variant=new x.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 T.n(t.variant,e);break;case i.q3.IndexAccessExpression:this.variant=new E.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 L.j(t.variant);break;case i.q3.StringExpression:this.variant=new I.O(t.variant,e);break;case i.q3.ElementaryType:this.variant=new K.$(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)}}))},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]}},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)}}))},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)}}))},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},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)}}))},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)}}))},9031:t=>{t.exports=import("node:fs/promises")},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})},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)}},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)}}))},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)}}))},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)}}))},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)}}))},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](){}}}},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},9530:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>a});var i=r(1901),n=t([i]);const a=(i=(n.then?(await n)():n)[0]).Wp.LanguageFacts;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)}}))},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),v=r(909),x=r(6308),b=r(4277),_=r(5580),T=r(7059),E=r(4641),S=r(3999),k=r(4089),R=r(5200),A=r(2111),C=r(6170),L=r(3904),I=r(8311),K=r(7638),N=r(7631),D=r(9628),O=r(270),P=r(1261),q=r(3874),F=r(7075),U=r(5571),M=r(5342),Y=r(6780),V=r(2525),j=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:v,sort:x,rsort:b,gt:_,lt:T,eq:E,neq:S,gte:k,lte:R,cmp:A,coerce:C,Comparator:L,Range:I,satisfies:K,toComparators:N,maxSatisfying:D,minSatisfying:O,minVersion:P,validRange:q,outside:F,gtr:U,ltr:M,intersects:Y,simplifyRange:V,subset:j,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}},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}},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)}}))},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.safeSrc=[],u=e.t={};let d=0;const p="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",n],[p,i]],y=(t,e,r)=>{const s=(t=>{for(const[e,r]of m)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=d++;a(t,i,e),u[t]=i,l[i]=e,h[i]=s,o[i]=new RegExp(e,r?"g":void 0),c[i]=new RegExp(s,r?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),y("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),y("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${p}+`),y("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),y("FULL",`^${l[u.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),y("LOOSE",`^${l[u.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),y("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),y("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",l[u.COERCE],!0),y("COERCERTLFULL",l[u.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",y("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",y("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9719:(t,e,r)=>{t.exports=r.p+"e5a84a17f0f9e01763d3.wasm"},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)}}))},9838:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{h:()=>h});var i=r(4675),n=r(801),a=r(9878),o=r(7769),c=r(3859),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.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.YulPath:this.variant=new c.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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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})},9970:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(e,t,r)},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)}}))},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)}}))}},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(/^blob:/,"").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;
1
+ var t,e,r,s,i,n={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)}}))},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)}}))},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)}}))},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=>{const r=t.variant;if(r.kind!==i.hP.Identifier&&(0,n.D)(r)&&e.has(r.operator)){const e=t.loc;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)}}))},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}}},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)}}))},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)}}))},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}},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")]}},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)}}))},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)}}))},450:(t,e,r)=>{t.exports=r.p+"d6da904aec8bb797eac6.wasm"},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({comments:t}){return null==t?void 0:t.some((t=>"prettier-ignore"===t.value.slice(2,(0,i.t)(t)?-2:void 0).trim()))}function c(t){const e=t.node;if(null===e||"object"!=typeof e)return;let r;for(r in e)switch(r){case"kind":case"loc":case"print":break;case"comments":t.each((t=>t.node.printed=!0),r);break;default:const s=e[r];if("object"==typeof s){if(Array.isArray(s))return void t.each(c,r);t.call(c,r)}}}function l(t,e,r){const s=t.node;return 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)}}))},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)}}))},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)}}))},560:(t,e,r)=>{const s=r(3908);t.exports=(t,e,r)=>new s(t,r).compare(new s(e,r))},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)}}))},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)}}))},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)}}))},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)}}))},769:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>v});var i=r(2038),n=r(4597),a=r(3449),o=r(7265),c=r(8534),l=r(6318),h=r(6718),u=r(4923),d=r(2120),p=r(3273),m=r(4850),y=r(2416),f=r(5710),g=r(543),w=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g]=w.then?(await w)():w;const v=[i.A,n.A,a.A,o.A,c.A,l.A,h.A,u.A,d.A,p.A,m.A,y.A,f.A,g.A];s()}catch(t){s(t)}}))},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(7540),o=r(7088),c=r(7576),l=r(9441),h=r(4867),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{cst:r}=t,s=r.children().map((({node:t})=>t)),n=p.get(r.id)||0;let u=n;const d=[];for(const t of s){const{id:e,kind:r,textLength:s}=t;if(t.isNonterminalNode())p.set(e,u);else switch((0,a.C)(t)&&p.set(e,u),r){case i.hP.MultiLineComment:d.push(new o.j(t));break;case i.hP.MultiLineNatSpecComment:d.push(new c.H(t));break;case i.hP.SingleLineComment:d.push(new l.a(t));break;case i.hP.SingleLineNatSpecComment:d.push(new h.c(t));break;case i.hP.Identifier:case i.hP.YulIdentifier:p.set(e,u)}u+=s.utf16}const[m,f]=e?[0,0]:[y(s),y(s.reverse())];return{comments:d,loc:{start:n+m,end:u-f,leadingOffset:m,trailingOffset:f}}}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({comments:t,loc:e},r){if(t=r.reduce(g,t),0===e.leadingOffset)for(const t of r){if(void 0===t||Array.isArray(t))continue;const{leadingOffset:r,start:s}=t.loc;if(s-r===e.start){e.leadingOffset=r,e.start+=r;break}}if(0===e.trailingOffset)for(const t of r.reverse()){if(void 0===t||Array.isArray(t))continue;const{trailingOffset:r,end:s}=t.loc;if(s+r===e.end){e.trailingOffset=r,e.end-=r;break}}return{comments:t,loc:e}}s()}catch(v){s(v)}}))},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)}}))},838:t=>{t.exports=Object("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{}).prettier},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)}}))},876:(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)}},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)}}))},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)}}))},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)}},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)}}))},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=Symbol("Slang.StateVariableDefinition.attributes");return[t.call(e,"typeName"),d(p(t.call(e,"attributes")),{id:r})," ",t.call(e,"name"),this.value?m(t.call(e,"value"),{groupId:r}):"",";"]}}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)}}))},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)}}))},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))}},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.node;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)}}))},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,s){const n="end"===s.experimentalOperatorPosition?[` ${t.operator}`,l,e.call(r,"rightOperand")]:[l,`${t.operator} `,e.call(r,"rightOperand")],o=t.leftOperand.variant,h=e.grandparent;return o.kind!==i.hP.Identifier&&(0,a.D)(o)||(0,a.D)(h)&&h.kind!==i.q3.AssignmentExpression?n:c(n)}const u=(t,e)=>(r,s,i,n)=>{const a=t(s),o=e(s,n);return a([s.call(i,"leftOperand"),o(h(r,s,i,n))])};s()}catch(d){s(d)}}))},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)}}))},1112:(t,e,r)=>{t.exports=r.p+"591f276013d241f7a687.wasm"},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)}},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)}}))},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)}}))},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)}}))},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}},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)}}))},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)}}))},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)}}))},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)}}))},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.EqualityExpression,i.q3.InequalityExpression,i.q3.AndExpression,i.q3.OrExpression,i.q3.ShiftExpression]);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)}}))},1406:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K3:()=>di,Rj:()=>hi,Wp:()=>pi,tQ:()=>ui});var i=r(8664),n=r(4863),a=r(9340),o=r(6015);const{getEnvironment:p}=i.cA,{exit:m}=i.NS,{getStderr:y}=i.vF,{getStdin:f}=i.bX,{getStdout:g}=i.Uo,{getDirectories:w}=n.jw,{Descriptor:v,filesystemErrorCode:x}=n.gK,{Error:b}=a.z3,{InputStream:_,OutputStream:E}=a.oS,{getRandomBytes:T}=o.yT;let S=[],k=new DataView(new ArrayBuffer);const R=t=>k.buffer===t.buffer?k:k=new DataView(t.buffer),A=()=>{},C="undefined"!=typeof process&&process.versions&&process.versions.node;let L;async function I(t){return C?(L=L||await Promise.resolve().then(r.bind(r,9031)),WebAssembly.compile(await L.readFile(t))):fetch(t).then(WebAssembly.compileStreaming)}function K(t){return"undefined"==typeof FinalizationRegistry?{unregister(){}}:new FinalizationRegistry(t)}function N(t){if(t&&O.call(t,"payload"))return t.payload;if(t instanceof Error)throw t;return t}const D=[],O=Object.prototype.hasOwnProperty,P=WebAssembly.instantiate,q=1<<30;function F(t,e){const r=t[0]&~q;return 0===r?(t.push(0),t.push(e|q),(t.length>>1)-1):(t[0]=t[r<<1],t[r<<1]=0,t[1+(r<<1)]=e|q,r)}function U(t,e){const r=t[e<<1],s=t[1+(e<<1)],i=!!(s&q),n=s&~q;if(0===s||r&q)throw new TypeError("Invalid handle");return t[e<<1]=t[0]|q,t[0]=e|q,{rep:n,scope:r,own:i}}const M=Symbol.for("cabiDispose"),Y=Symbol("handle"),V=Symbol.for("cabiRep"),j=Symbol.dispose||Symbol.for("dispose"),B=t=>BigInt.asUintN(64,BigInt(t));function H(t){return t>>>0}const $=new TextDecoder,Q=new TextEncoder;let G=0;function W(t,e,r){if("string"!=typeof t)throw new TypeError("expected a string");if(0===t.length)return G=0,1;let s=Q.encode(t),i=e(0,0,1,s.length);return new Uint8Array(r.buffer).set(s,i),G=s.length,i}const z=Symbol.for("nodejs.util.inspect.custom");let X,J;const Z=[q,0],tt=new Map;let et=0;function rt(){const t=y();if(!(t instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=t[Y];if(!e){const r=t[V]||++et;tt.set(r,t),e=F(Z,r)}return e}D[1]=Z;const st=[q,0],it=new Map;let nt,at,ot,ct=0;function lt(){const t=f();if(!(t instanceof _))throw new TypeError('Resource error: Not a valid "InputStream" resource.');var e=t[Y];if(!e){const r=t[V]||++ct;it.set(r,t),e=F(st,r)}return e}function ht(){const t=g();if(!(t instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=t[Y];if(!e){const r=t[V]||++et;tt.set(r,t),e=F(Z,r)}return e}function ut(t){let e;e=t?{tag:"err",val:void 0}:{tag:"ok",val:void 0},m(e)}function dt(t){var e=p(),r=e.length,s=ot(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=W(i,ot,at),o=G;R(at).setInt32(h+4,o,!0),R(at).setInt32(h+0,a,!0);var c=W(n,ot,at),l=G;R(at).setInt32(h+12,l,!0),R(at).setInt32(h+8,c,!0)}R(at).setInt32(t+4,r,!0),R(at).setInt32(t+0,s,!0)}D[2]=st;const pt=[q,0],mt=new Map;let yt=0;function ft(t,e,r){var s=t,i=pt[1+(s<<1)]&~q,n=mt.get(i);let a;n||(n=Object.create(v.prototype),Object.defineProperty(n,Y,{writable:!0,value:s}),Object.defineProperty(n,V,{writable:!0,value:i})),S.push(n);try{a={tag:"ok",val:n.writeViaStream(BigInt.asUintN(64,e))}}catch(t){a={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var o=a;switch(o.tag){case"ok":{const t=o.val;if(R(at).setInt8(r+0,0,!0),!(t instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var c=t[Y];if(!c){const e=t[V]||++et;tt.set(e,t),c=F(Z,e)}R(at).setInt32(r+4,c,!0);break}case"err":{const t=o.val;R(at).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`)}R(at).setInt8(r+4,e,!0);break}default:throw new TypeError("invalid variant specified for result")}}function gt(t,e){var r=t,s=pt[1+(r<<1)]&~q,i=mt.get(s);let n;i||(i=Object.create(v.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.appendViaStream()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;if(R(at).setInt8(e+0,0,!0),!(t instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var o=t[Y];if(!o){const e=t[V]||++et;tt.set(e,t),o=F(Z,e)}R(at).setInt32(e+4,o,!0);break}case"err":{const t=a.val;R(at).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`)}R(at).setInt8(e+4,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function wt(t,e){var r=t,s=pt[1+(r<<1)]&~q,i=mt.get(s);let n;i||(i=Object.create(v.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.getType()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;R(at).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`)}R(at).setInt8(e+1,r,!0);break}case"err":{const t=a.val;R(at).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`)}R(at).setInt8(e+1,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function vt(t,e){var r=t,s=pt[1+(r<<1)]&~q,i=mt.get(s);let n;i||(i=Object.create(v.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.stat()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;R(at).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`)}R(at).setInt8(e+8,r,!0),R(at).setBigInt64(e+16,B(c),!0),R(at).setBigInt64(e+24,B(l),!0);var m=h;if(null==m)R(at).setInt8(e+32,0,!0);else{const t=m;R(at).setInt8(e+32,1,!0);var{seconds:y,nanoseconds:f}=t;R(at).setBigInt64(e+40,B(y),!0),R(at).setInt32(e+48,H(f),!0)}var g=u;if(null==g)R(at).setInt8(e+56,0,!0);else{const t=g;R(at).setInt8(e+56,1,!0);var{seconds:w,nanoseconds:x}=t;R(at).setBigInt64(e+64,B(w),!0),R(at).setInt32(e+72,H(x),!0)}var b=d;if(null==b)R(at).setInt8(e+80,0,!0);else{const t=b;R(at).setInt8(e+80,1,!0);var{seconds:_,nanoseconds:E}=t;R(at).setBigInt64(e+88,B(_),!0),R(at).setInt32(e+96,H(E),!0)}break}case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var T=t;let r;switch(T){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(`"${T}" is not one of the cases of error-code`)}R(at).setInt8(e+8,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}D[3]=pt;const xt=[q,0],bt=new Map;let _t,Et,Tt,St,kt,Rt,At,Ct,Lt,It,Kt,Nt,Dt,Ot,Pt,qt=0;function Ft(t,e){var r=t,s=xt[1+(r<<1)]&~q,i=bt.get(s);i||(i=Object.create(b.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);const n=x(i);for(const t of S)t[Y]=void 0;S=[];var a=n;if(null==a)R(at).setInt8(e+0,0,!0);else{const t=a;R(at).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`)}R(at).setInt8(e+1,r,!0)}}function Ut(t,e){var r=t,s=Z[1+(r<<1)]&~q,i=tt.get(s);let n;i||(i=Object.create(E.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.checkWrite()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;R(at).setInt8(e+0,0,!0),R(at).setBigInt64(e+8,B(t),!0);break}case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var o=t;switch(o.tag){case"last-operation-failed":{const t=o.val;if(R(at).setInt8(e+8,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=t[Y];if(!c){const e=t[V]||++qt;bt.set(e,t),c=F(xt,e)}R(at).setInt32(e+12,c,!0);break}case"closed":R(at).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 Mt(t,e,r,s){var i=t,n=Z[1+(i<<1)]&~q,a=tt.get(n);a||(a=Object.create(E.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,V,{writable:!0,value:n})),S.push(a);var o=e,c=r,l=new Uint8Array(at.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.write(l)}}catch(t){h={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var u=h;switch(u.tag){case"ok":u.val,R(at).setInt8(s+0,0,!0);break;case"err":{const t=u.val;R(at).setInt8(s+0,1,!0);var d=t;switch(d.tag){case"last-operation-failed":{const t=d.val;if(R(at).setInt8(s+4,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=t[Y];if(!p){const e=t[V]||++qt;bt.set(e,t),p=F(xt,e)}R(at).setInt32(s+8,p,!0);break}case"closed":R(at).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 Yt(t,e,r,s){var i=t,n=Z[1+(i<<1)]&~q,a=tt.get(n);a||(a=Object.create(E.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,V,{writable:!0,value:n})),S.push(a);var o=e,c=r,l=new Uint8Array(at.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.blockingWriteAndFlush(l)}}catch(t){h={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var u=h;switch(u.tag){case"ok":u.val,R(at).setInt8(s+0,0,!0);break;case"err":{const t=u.val;R(at).setInt8(s+0,1,!0);var d=t;switch(d.tag){case"last-operation-failed":{const t=d.val;if(R(at).setInt8(s+4,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=t[Y];if(!p){const e=t[V]||++qt;bt.set(e,t),p=F(xt,e)}R(at).setInt32(s+8,p,!0);break}case"closed":R(at).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 Vt(t,e){var r=t,s=Z[1+(r<<1)]&~q,i=tt.get(s);let n;i||(i=Object.create(E.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.blockingFlush()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":a.val,R(at).setInt8(e+0,0,!0);break;case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var o=t;switch(o.tag){case"last-operation-failed":{const t=o.val;if(R(at).setInt8(e+4,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=t[Y];if(!c){const e=t[V]||++qt;bt.set(e,t),c=F(xt,e)}R(at).setInt32(e+8,c,!0);break}case"closed":R(at).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 jt(t,e){var r=T(BigInt.asUintN(64,t)),s=r.byteLength,i=ot(0,0,1,1*s),n=new Uint8Array(r.buffer||r,r.byteOffset,1*s);new Uint8Array(at.buffer,i,1*s).set(n),R(at).setInt32(e+4,s,!0),R(at).setInt32(e+0,i,!0)}function Bt(t){var e=w(),r=e.length,s=ot(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 v))throw new TypeError('Resource error: Not a valid "Descriptor" resource.');var a=i[Y];if(!a){const t=i[V]||++yt;mt.set(t,i),a=F(pt,t)}R(at).setInt32(l+0,a,!0);var o=W(n,ot,at),c=G;R(at).setInt32(l+8,c,!0),R(at).setInt32(l+4,o,!0)}R(at).setInt32(t+4,r,!0),R(at).setInt32(t+0,s,!0)}D[0]=xt;class Ht{constructor(){throw new Error('"TerminalKindExtensions" resource does not define a constructor')}}Ht.isIdentifier=function(t){return!!Dt(l[t])},Ht.isTrivia=function(t){return!!Ot(l[t])},Ht.isValid=function(t){return!!Pt(l[t])};const $t=[q,0],Qt=K((t=>{const{rep:e}=U($t,t);X[18](e)}));let Gt,Wt,zt;D[4]=$t;class Xt{constructor(){throw new Error('"NonterminalNode" resource does not define a constructor')}}Xt.prototype[z]=function(t,e,r){const s=Object.getPrototypeOf(this)[z];try{return delete Object.getPrototypeOf(this)[z],r(this,{...e,depth:t,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[z]=s}},Object.defineProperty(Xt.prototype,"id",{get:function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q;return Gt(e)>>>0}}),Object.defineProperty(Xt.prototype,"kind",{get:function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q;const r=Wt(e);return c[r]}}),Object.defineProperty(Xt.prototype,"textLength",{get:function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q;const r=zt(e);return{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0}}});const Jt=[q,0],Zt=K((t=>{const{rep:e}=U(Jt,t);X[19](e)}));let te;D[5]=Jt,Xt.prototype.children=function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q;const r=te(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+12*t;let r;switch(R(at).getUint8(e+4,!0)){case 0:var a=R(at).getInt32(e+8,!0),o=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Qt.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Qt.unregister(o),U($t,a),o[j]=A,o[Y]=void 0,X[18]($t[1+(a<<1)]&~q)}}),r=o;break;case 1:var c=R(at).getInt32(e+8,!0),l=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(l,Y,{writable:!0,value:c}),Zt.register(l,c,l),Object.defineProperty(l,j,{writable:!0,value:function(){Zt.unregister(l),U(Jt,c),l[j]=A,l[Y]=void 0,X[19](Jt[1+(c<<1)]&~q)}}),r=l}n.push({label:h[R(at).getUint8(e+0,!0)],node:r})}const u=n;return Et(r),u};const ee=[q,0],re=K((t=>{const{rep:e}=U(ee,t);X[21](e)}));let se,ie,ne;D[7]=ee,Xt.prototype.descendants=function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q,r=se(e),s=new.target===ir?this:Object.create(ir.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),U(ee,r),s[j]=A,s[Y]=void 0,X[21](ee[1+(r<<1)]&~q)}}),s},Xt.prototype.unparse=function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q;const r=ie(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Tt(r),n},Xt.prototype.toJson=function(){var t=this[Y];if(!(t&&$t[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=$t[1+(t<<1)]&~q;const r=ne(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Tt(r),n};const ae=[q,0],oe=K((t=>{const{rep:e}=U(ae,t);X[20](e)}));let ce,le,he,ue,de,pe,me,ye,fe,ge,we,ve,xe,be,_e,Ee,Te,Se,ke,Re,Ae;D[6]=ae,Xt.prototype.createCursor=function(t){var e=this[Y];if(!(e&&$t[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=$t[1+(e<<1)]&~q,{utf8:s,utf16:i,line:n,column:a}=t,o=ce(r,H(s),H(i),H(n),H(a)),c=new.target===Le?this:Object.create(Le.prototype);return Object.defineProperty(c,Y,{writable:!0,value:o}),oe.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){oe.unregister(c),U(ae,o),c[j]=A,c[Y]=void 0,X[20](ae[1+(o<<1)]&~q)}}),c};class Ce{constructor(){throw new Error('"TerminalNode" resource does not define a constructor')}}Ce.prototype[z]=function(t,e,r){const s=Object.getPrototypeOf(this)[z];try{return delete Object.getPrototypeOf(this)[z],r(this,{...e,depth:t,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[z]=s}},Object.defineProperty(Ce.prototype,"id",{get:function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q;return le(e)>>>0}}),Object.defineProperty(Ce.prototype,"kind",{get:function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q;const r=he(e);return l[r]}}),Object.defineProperty(Ce.prototype,"textLength",{get:function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q;const r=ue(e);return{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0}}}),Ce.prototype.children=function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q;const r=de(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+12*t;let r;switch(R(at).getUint8(e+4,!0)){case 0:var a=R(at).getInt32(e+8,!0),o=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Qt.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Qt.unregister(o),U($t,a),o[j]=A,o[Y]=void 0,X[18]($t[1+(a<<1)]&~q)}}),r=o;break;case 1:var c=R(at).getInt32(e+8,!0),l=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(l,Y,{writable:!0,value:c}),Zt.register(l,c,l),Object.defineProperty(l,j,{writable:!0,value:function(){Zt.unregister(l),U(Jt,c),l[j]=A,l[Y]=void 0,X[19](Jt[1+(c<<1)]&~q)}}),r=l}n.push({label:h[R(at).getUint8(e+0,!0)],node:r})}const u=n;return Et(r),u},Ce.prototype.descendants=function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q,r=pe(e),s=new.target===ir?this:Object.create(ir.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),U(ee,r),s[j]=A,s[Y]=void 0,X[21](ee[1+(r<<1)]&~q)}}),s},Ce.prototype.unparse=function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q;const r=me(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Tt(r),n},Ce.prototype.toJson=function(){var t=this[Y];if(!(t&&Jt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=Jt[1+(t<<1)]&~q;const r=ye(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Tt(r),n};class Le{constructor(){throw new Error('"Cursor" resource does not define a constructor')}}Le.prototype.reset=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;fe(e)},Le.prototype.complete=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;ge(e)},Le.prototype.isCompleted=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!we(e)},Le.prototype.clone=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=ve(e),s=new.target===Le?this:Object.create(Le.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),U(ae,r),s[j]=A,s[Y]=void 0,X[20](ae[1+(r<<1)]&~q)}}),s},Le.prototype.spawn=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=xe(e),s=new.target===Le?this:Object.create(Le.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),U(ae,r),s[j]=A,s[Y]=void 0,X[20](ae[1+(r<<1)]&~q)}}),s},Object.defineProperty(Le.prototype,"node",{get:function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=be(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Qt.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Qt.unregister(n),U($t,i),n[j]=A,n[Y]=void 0,X[18]($t[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Zt.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Zt.unregister(o),U(Jt,a),o[j]=A,o[Y]=void 0,X[19](Jt[1+(a<<1)]&~q)}}),s=o}return s}}),Object.defineProperty(Le.prototype,"label",{get:function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=_e(e);return h[r]}}),Object.defineProperty(Le.prototype,"textOffset",{get:function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Ee(e);return{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0}}}),Object.defineProperty(Le.prototype,"textRange",{get:function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Te(e);return{start:{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0},end:{utf8:R(at).getInt32(r+16,!0)>>>0,utf16:R(at).getInt32(r+20,!0)>>>0,line:R(at).getInt32(r+24,!0)>>>0,column:R(at).getInt32(r+28,!0)>>>0}}}}),Object.defineProperty(Le.prototype,"depth",{get:function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return Se(e)>>>0}}),Le.prototype.children=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=ke(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+12*t;let r;switch(R(at).getUint8(e+4,!0)){case 0:var a=R(at).getInt32(e+8,!0),o=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Qt.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Qt.unregister(o),U($t,a),o[j]=A,o[Y]=void 0,X[18]($t[1+(a<<1)]&~q)}}),r=o;break;case 1:var c=R(at).getInt32(e+8,!0),l=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(l,Y,{writable:!0,value:c}),Zt.register(l,c,l),Object.defineProperty(l,j,{writable:!0,value:function(){Zt.unregister(l),U(Jt,c),l[j]=A,l[Y]=void 0,X[19](Jt[1+(c<<1)]&~q)}}),r=l}n.push({label:h[R(at).getUint8(e+0,!0)],node:r})}const u=n;return Et(r),u},Le.prototype.descendants=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=Re(e),s=new.target===ir?this:Object.create(ir.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),U(ee,r),s[j]=A,s[Y]=void 0,X[21](ee[1+(r<<1)]&~q)}}),s},Le.prototype.remainingNodes=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=Ae(e),s=new.target===ir?this:Object.create(ir.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),U(ee,r),s[j]=A,s[Y]=void 0,X[21](ee[1+(r<<1)]&~q)}}),s};const Ie=[q,0],Ke=K((t=>{const{rep:e}=U(Ie,t);X[22](e)}));let Ne,De,Oe,Pe,qe,Fe,Ue,Me,Ye,Ve,je,Be,He,$e,Qe,Ge;D[8]=Ie,Le.prototype.ancestors=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=Ne(e),s=new.target===nr?this:Object.create(nr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Ke.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){Ke.unregister(s),U(Ie,r),s[j]=A,s[Y]=void 0,X[22](Ie[1+(r<<1)]&~q)}}),s},Le.prototype.goToNext=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!De(e)},Le.prototype.goToNextNonDescendant=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Oe(e)},Le.prototype.goToPrevious=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Pe(e)},Le.prototype.goToParent=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!qe(e)},Le.prototype.goToFirstChild=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Fe(e)},Le.prototype.goToLastChild=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Ue(e)},Le.prototype.goToNthChild=function(t){var e=this[Y];if(!(e&&ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q;return!!Me(r,H(t))},Le.prototype.goToNextSibling=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Ye(e)},Le.prototype.goToPreviousSibling=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Ve(e)},Le.prototype.goToNextTerminal=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!je(e)},Le.prototype.goToNextTerminalWithKind=function(t){var e=this[Y];if(!(e&&ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q;return!!Be(r,l[t])},Le.prototype.goToNextTerminalWithKinds=function(t){var e=this[Y];if(!(e&&ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q,s=t,i=s.length,n=St(0,0,2,2*i);for(let t=0;t<s.length;t++){const e=s[t],r=n+2*t;R(at).setInt16(r+0,l[e],!0)}return!!He(r,n,i)},Le.prototype.goToNextNonterminal=function(){var t=this[Y];if(!(t&&ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!$e(e)},Le.prototype.goToNextNonterminalWithKind=function(t){var e=this[Y];if(!(e&&ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q;return!!Qe(r,c[t])},Le.prototype.goToNextNonterminalWithKinds=function(t){var e=this[Y];if(!(e&&ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q,s=t,i=s.length,n=St(0,0,1,1*i);for(let t=0;t<s.length;t++){const e=s[t],r=n+1*t;R(at).setInt8(r+0,c[e],!0)}return!!Ge(r,n,i)};const We=[q,0],ze=K((t=>{const{rep:e}=U(We,t);X[23](e)}));D[9]=We;const Xe=[q,0],Je=K((t=>{const{rep:e}=U(Xe,t);X[24](e)}));let Ze,tr,er,rr,sr;D[10]=Xe,Le.prototype.query=function(t){var e=this[Y];if(!(e&&ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q,s=t,i=s.length,n=St(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&&We[1+(a<<1)]&q))throw new TypeError('Resource error: Not a valid "Query" resource.');var o=We[1+(a<<1)]&~q;R(at).setInt32(e+0,o,!0)}var c=Ze(r,n,i),l=new.target===or?this:Object.create(or.prototype);return Object.defineProperty(l,Y,{writable:!0,value:c}),Je.register(l,c,l),Object.defineProperty(l,j,{writable:!0,value:function(){Je.unregister(l),U(Xe,c),l[j]=A,l[Y]=void 0,X[24](Xe[1+(c<<1)]&~q)}}),l};class ir{constructor(){throw new Error('"CursorIterator" resource does not define a constructor')}}ir.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},ir.prototype.next=function(){var t=this[Y];if(!(t&&ee[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CursorIterator" resource.');var e=ee[1+(t<<1)]&~q;const r=tr(e);let s;if(R(at).getUint8(r+0,!0)){let t;switch(R(at).getUint8(r+8,!0)){case 0:var i=R(at).getInt32(r+12,!0),n=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Qt.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Qt.unregister(n),U($t,i),n[j]=A,n[Y]=void 0,X[18]($t[1+(i<<1)]&~q)}}),t=n;break;case 1:var a=R(at).getInt32(r+12,!0),o=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Zt.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Zt.unregister(o),U(Jt,a),o[j]=A,o[Y]=void 0,X[19](Jt[1+(a<<1)]&~q)}}),t=o}s={label:h[R(at).getUint8(r+4,!0)],node:t}}else s=void 0;return s};class nr{constructor(){throw new Error('"AncestorsIterator" resource does not define a constructor')}}nr.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},nr.prototype.next=function(){var t=this[Y];if(!(t&&Ie[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "AncestorsIterator" resource.');var e=Ie[1+(t<<1)]&~q;const r=er(e);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Qt.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Qt.unregister(n),U($t,i),n[j]=A,n[Y]=void 0,X[18]($t[1+(i<<1)]&~q)}}),s=n}else s=void 0;return s};class ar{constructor(){throw new Error('"Query" resource does not define a constructor')}}ar.create=function(t){var e=W(t,St,at);const r=rr(e,G);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=R(at).getInt32(r+8,!0);s={tag:"err",val:{message:$.decode(new Uint8Array(at.buffer,i,n)),textRange:{start:{utf8:R(at).getInt32(r+12,!0)>>>0,utf16:R(at).getInt32(r+16,!0)>>>0,line:R(at).getInt32(r+20,!0)>>>0,column:R(at).getInt32(r+24,!0)>>>0},end:{utf8:R(at).getInt32(r+28,!0)>>>0,utf16:R(at).getInt32(r+32,!0)>>>0,line:R(at).getInt32(r+36,!0)>>>0,column:R(at).getInt32(r+40,!0)>>>0}}}}}else{var a=R(at).getInt32(r+4,!0),o=new.target===ar?this:Object.create(ar.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),ze.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){ze.unregister(o),U(We,a),o[j]=A,o[Y]=void 0,X[23](We[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(kt(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val};class or{constructor(){throw new Error('"QueryMatchIterator" resource does not define a constructor')}}or.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},or.prototype.next=function(){var t=this[Y];if(!(t&&Xe[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "QueryMatchIterator" resource.');var e=Xe[1+(t<<1)]&~q;const r=sr(e);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+8,!0),n=new.target===Le?this:Object.create(Le.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),oe.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){oe.unregister(n),U(ae,i),n[j]=A,n[Y]=void 0,X[20](ae[1+(i<<1)]&~q)}});var a=R(at).getInt32(r+16,!0),o=R(at).getInt32(r+12,!0),c=[];for(let t=0;t<a;t++){const e=o+16*t;var l=R(at).getInt32(e+0,!0),h=R(at).getInt32(e+4,!0),u=$.decode(new Uint8Array(at.buffer,l,h)),d=R(at).getInt32(e+12,!0),p=R(at).getInt32(e+8,!0),m=[];for(let t=0;t<d;t++){const e=p+4*t;var y=R(at).getInt32(e+0,!0),f=new.target===Le?this:Object.create(Le.prototype);Object.defineProperty(f,Y,{writable:!0,value:y}),oe.register(f,y,f),Object.defineProperty(f,j,{writable:!0,value:function(){oe.unregister(f),U(ae,y),f[j]=A,f[Y]=void 0,X[20](ae[1+(y<<1)]&~q)}}),m.push(f)}c.push([u,m])}s={queryIndex:R(at).getInt32(r+4,!0)>>>0,root:n,captures:c.reduce(((t,e)=>(t[e[0]]=e[1],t)),{})}}else s=void 0;const g=s;return Rt(r),g};var c={};c[c.AbicoderPragma=0]="AbicoderPragma",c[c.AdditiveExpression=1]="AdditiveExpression",c[c.AddressType=2]="AddressType",c[c.AndExpression=3]="AndExpression",c[c.ArgumentsDeclaration=4]="ArgumentsDeclaration",c[c.ArrayExpression=5]="ArrayExpression",c[c.ArrayTypeName=6]="ArrayTypeName",c[c.ArrayValues=7]="ArrayValues",c[c.AssemblyFlags=8]="AssemblyFlags",c[c.AssemblyFlagsDeclaration=9]="AssemblyFlagsDeclaration",c[c.AssemblyStatement=10]="AssemblyStatement",c[c.AssignmentExpression=11]="AssignmentExpression",c[c.BitwiseAndExpression=12]="BitwiseAndExpression",c[c.BitwiseOrExpression=13]="BitwiseOrExpression",c[c.BitwiseXorExpression=14]="BitwiseXorExpression",c[c.Block=15]="Block",c[c.BreakStatement=16]="BreakStatement",c[c.CallOptions=17]="CallOptions",c[c.CallOptionsExpression=18]="CallOptionsExpression",c[c.CatchClause=19]="CatchClause",c[c.CatchClauseError=20]="CatchClauseError",c[c.CatchClauses=21]="CatchClauses",c[c.ConditionalExpression=22]="ConditionalExpression",c[c.ConstantDefinition=23]="ConstantDefinition",c[c.ConstructorAttribute=24]="ConstructorAttribute",c[c.ConstructorAttributes=25]="ConstructorAttributes",c[c.ConstructorDefinition=26]="ConstructorDefinition",c[c.ContinueStatement=27]="ContinueStatement",c[c.ContractDefinition=28]="ContractDefinition",c[c.ContractMember=29]="ContractMember",c[c.ContractMembers=30]="ContractMembers",c[c.ContractSpecifier=31]="ContractSpecifier",c[c.ContractSpecifiers=32]="ContractSpecifiers",c[c.DecimalNumberExpression=33]="DecimalNumberExpression",c[c.DoWhileStatement=34]="DoWhileStatement",c[c.ElementaryType=35]="ElementaryType",c[c.ElseBranch=36]="ElseBranch",c[c.EmitStatement=37]="EmitStatement",c[c.EnumDefinition=38]="EnumDefinition",c[c.EnumMembers=39]="EnumMembers",c[c.EqualityExpression=40]="EqualityExpression",c[c.ErrorDefinition=41]="ErrorDefinition",c[c.ErrorParameter=42]="ErrorParameter",c[c.ErrorParameters=43]="ErrorParameters",c[c.ErrorParametersDeclaration=44]="ErrorParametersDeclaration",c[c.EventDefinition=45]="EventDefinition",c[c.EventParameter=46]="EventParameter",c[c.EventParameters=47]="EventParameters",c[c.EventParametersDeclaration=48]="EventParametersDeclaration",c[c.ExperimentalFeature=49]="ExperimentalFeature",c[c.ExperimentalPragma=50]="ExperimentalPragma",c[c.ExponentiationExpression=51]="ExponentiationExpression",c[c.Expression=52]="Expression",c[c.ExpressionStatement=53]="ExpressionStatement",c[c.FallbackFunctionAttribute=54]="FallbackFunctionAttribute",c[c.FallbackFunctionAttributes=55]="FallbackFunctionAttributes",c[c.FallbackFunctionDefinition=56]="FallbackFunctionDefinition",c[c.ForStatement=57]="ForStatement",c[c.ForStatementCondition=58]="ForStatementCondition",c[c.ForStatementInitialization=59]="ForStatementInitialization",c[c.FunctionAttribute=60]="FunctionAttribute",c[c.FunctionAttributes=61]="FunctionAttributes",c[c.FunctionBody=62]="FunctionBody",c[c.FunctionCallExpression=63]="FunctionCallExpression",c[c.FunctionDefinition=64]="FunctionDefinition",c[c.FunctionName=65]="FunctionName",c[c.FunctionType=66]="FunctionType",c[c.FunctionTypeAttribute=67]="FunctionTypeAttribute",c[c.FunctionTypeAttributes=68]="FunctionTypeAttributes",c[c.HexNumberExpression=69]="HexNumberExpression",c[c.HexStringLiteral=70]="HexStringLiteral",c[c.HexStringLiterals=71]="HexStringLiterals",c[c.IdentifierPath=72]="IdentifierPath",c[c.IfStatement=73]="IfStatement",c[c.ImportAlias=74]="ImportAlias",c[c.ImportClause=75]="ImportClause",c[c.ImportDeconstruction=76]="ImportDeconstruction",c[c.ImportDeconstructionSymbol=77]="ImportDeconstructionSymbol",c[c.ImportDeconstructionSymbols=78]="ImportDeconstructionSymbols",c[c.ImportDirective=79]="ImportDirective",c[c.IndexAccessEnd=80]="IndexAccessEnd",c[c.IndexAccessExpression=81]="IndexAccessExpression",c[c.InequalityExpression=82]="InequalityExpression",c[c.InheritanceSpecifier=83]="InheritanceSpecifier",c[c.InheritanceType=84]="InheritanceType",c[c.InheritanceTypes=85]="InheritanceTypes",c[c.InterfaceDefinition=86]="InterfaceDefinition",c[c.InterfaceMembers=87]="InterfaceMembers",c[c.LibraryDefinition=88]="LibraryDefinition",c[c.LibraryMembers=89]="LibraryMembers",c[c.MappingKey=90]="MappingKey",c[c.MappingKeyType=91]="MappingKeyType",c[c.MappingType=92]="MappingType",c[c.MappingValue=93]="MappingValue",c[c.MemberAccessExpression=94]="MemberAccessExpression",c[c.ModifierAttribute=95]="ModifierAttribute",c[c.ModifierAttributes=96]="ModifierAttributes",c[c.ModifierDefinition=97]="ModifierDefinition",c[c.ModifierInvocation=98]="ModifierInvocation",c[c.MultiplicativeExpression=99]="MultiplicativeExpression",c[c.NamedArgument=100]="NamedArgument",c[c.NamedArgumentGroup=101]="NamedArgumentGroup",c[c.NamedArguments=102]="NamedArguments",c[c.NamedArgumentsDeclaration=103]="NamedArgumentsDeclaration",c[c.NamedImport=104]="NamedImport",c[c.NewExpression=105]="NewExpression",c[c.NumberUnit=106]="NumberUnit",c[c.OrExpression=107]="OrExpression",c[c.OverridePaths=108]="OverridePaths",c[c.OverridePathsDeclaration=109]="OverridePathsDeclaration",c[c.OverrideSpecifier=110]="OverrideSpecifier",c[c.Parameter=111]="Parameter",c[c.Parameters=112]="Parameters",c[c.ParametersDeclaration=113]="ParametersDeclaration",c[c.PathImport=114]="PathImport",c[c.PositionalArguments=115]="PositionalArguments",c[c.PositionalArgumentsDeclaration=116]="PositionalArgumentsDeclaration",c[c.PostfixExpression=117]="PostfixExpression",c[c.Pragma=118]="Pragma",c[c.PragmaDirective=119]="PragmaDirective",c[c.PrefixExpression=120]="PrefixExpression",c[c.ReceiveFunctionAttribute=121]="ReceiveFunctionAttribute",c[c.ReceiveFunctionAttributes=122]="ReceiveFunctionAttributes",c[c.ReceiveFunctionDefinition=123]="ReceiveFunctionDefinition",c[c.ReturnStatement=124]="ReturnStatement",c[c.ReturnsDeclaration=125]="ReturnsDeclaration",c[c.RevertStatement=126]="RevertStatement",c[c.ShiftExpression=127]="ShiftExpression",c[c.SimpleVersionLiteral=128]="SimpleVersionLiteral",c[c.SourceUnit=129]="SourceUnit",c[c.SourceUnitMember=130]="SourceUnitMember",c[c.SourceUnitMembers=131]="SourceUnitMembers",c[c.StateVariableAttribute=132]="StateVariableAttribute",c[c.StateVariableAttributes=133]="StateVariableAttributes",c[c.StateVariableDefinition=134]="StateVariableDefinition",c[c.StateVariableDefinitionValue=135]="StateVariableDefinitionValue",c[c.Statement=136]="Statement",c[c.Statements=137]="Statements",c[c.StorageLayoutSpecifier=138]="StorageLayoutSpecifier",c[c.StorageLocation=139]="StorageLocation",c[c.StringExpression=140]="StringExpression",c[c.StringLiteral=141]="StringLiteral",c[c.StringLiterals=142]="StringLiterals",c[c.StructDefinition=143]="StructDefinition",c[c.StructMember=144]="StructMember",c[c.StructMembers=145]="StructMembers",c[c.ThrowStatement=146]="ThrowStatement",c[c.TryStatement=147]="TryStatement",c[c.TupleDeconstructionElement=148]="TupleDeconstructionElement",c[c.TupleDeconstructionElements=149]="TupleDeconstructionElements",c[c.TupleDeconstructionStatement=150]="TupleDeconstructionStatement",c[c.TupleExpression=151]="TupleExpression",c[c.TupleMember=152]="TupleMember",c[c.TupleValue=153]="TupleValue",c[c.TupleValues=154]="TupleValues",c[c.TypeExpression=155]="TypeExpression",c[c.TypeName=156]="TypeName",c[c.TypedTupleMember=157]="TypedTupleMember",c[c.UncheckedBlock=158]="UncheckedBlock",c[c.UnicodeStringLiteral=159]="UnicodeStringLiteral",c[c.UnicodeStringLiterals=160]="UnicodeStringLiterals",c[c.UnnamedFunctionAttribute=161]="UnnamedFunctionAttribute",c[c.UnnamedFunctionAttributes=162]="UnnamedFunctionAttributes",c[c.UnnamedFunctionDefinition=163]="UnnamedFunctionDefinition",c[c.UntypedTupleMember=164]="UntypedTupleMember",c[c.UserDefinedValueTypeDefinition=165]="UserDefinedValueTypeDefinition",c[c.UsingAlias=166]="UsingAlias",c[c.UsingClause=167]="UsingClause",c[c.UsingDeconstruction=168]="UsingDeconstruction",c[c.UsingDeconstructionSymbol=169]="UsingDeconstructionSymbol",c[c.UsingDeconstructionSymbols=170]="UsingDeconstructionSymbols",c[c.UsingDirective=171]="UsingDirective",c[c.UsingOperator=172]="UsingOperator",c[c.UsingTarget=173]="UsingTarget",c[c.VariableDeclarationStatement=174]="VariableDeclarationStatement",c[c.VariableDeclarationType=175]="VariableDeclarationType",c[c.VariableDeclarationValue=176]="VariableDeclarationValue",c[c.VersionExpression=177]="VersionExpression",c[c.VersionExpressionSet=178]="VersionExpressionSet",c[c.VersionExpressionSets=179]="VersionExpressionSets",c[c.VersionLiteral=180]="VersionLiteral",c[c.VersionOperator=181]="VersionOperator",c[c.VersionPragma=182]="VersionPragma",c[c.VersionRange=183]="VersionRange",c[c.VersionTerm=184]="VersionTerm",c[c.WhileStatement=185]="WhileStatement",c[c.YulArguments=186]="YulArguments",c[c.YulAssignmentOperator=187]="YulAssignmentOperator",c[c.YulBlock=188]="YulBlock",c[c.YulBreakStatement=189]="YulBreakStatement",c[c.YulColonAndEqual=190]="YulColonAndEqual",c[c.YulContinueStatement=191]="YulContinueStatement",c[c.YulDefaultCase=192]="YulDefaultCase",c[c.YulEqualAndColon=193]="YulEqualAndColon",c[c.YulExpression=194]="YulExpression",c[c.YulForStatement=195]="YulForStatement",c[c.YulFunctionCallExpression=196]="YulFunctionCallExpression",c[c.YulFunctionDefinition=197]="YulFunctionDefinition",c[c.YulIfStatement=198]="YulIfStatement",c[c.YulLabel=199]="YulLabel",c[c.YulLeaveStatement=200]="YulLeaveStatement",c[c.YulLiteral=201]="YulLiteral",c[c.YulParameters=202]="YulParameters",c[c.YulParametersDeclaration=203]="YulParametersDeclaration",c[c.YulPath=204]="YulPath",c[c.YulPaths=205]="YulPaths",c[c.YulReturnsDeclaration=206]="YulReturnsDeclaration",c[c.YulStackAssignmentOperator=207]="YulStackAssignmentOperator",c[c.YulStackAssignmentStatement=208]="YulStackAssignmentStatement",c[c.YulStatement=209]="YulStatement",c[c.YulStatements=210]="YulStatements",c[c.YulSwitchCase=211]="YulSwitchCase",c[c.YulSwitchCases=212]="YulSwitchCases",c[c.YulSwitchStatement=213]="YulSwitchStatement",c[c.YulValueCase=214]="YulValueCase",c[c.YulVariableAssignmentStatement=215]="YulVariableAssignmentStatement",c[c.YulVariableDeclarationStatement=216]="YulVariableDeclarationStatement",c[c.YulVariableDeclarationValue=217]="YulVariableDeclarationValue",c[c.YulVariableNames=218]="YulVariableNames";var l={};l[l.Unrecognized=0]="Unrecognized",l[l.Missing=1]="Missing",l[l.AbicoderKeyword=2]="AbicoderKeyword",l[l.AbstractKeyword=3]="AbstractKeyword",l[l.AddressKeyword=4]="AddressKeyword",l[l.AfterKeyword=5]="AfterKeyword",l[l.AliasKeyword=6]="AliasKeyword",l[l.Ampersand=7]="Ampersand",l[l.AmpersandAmpersand=8]="AmpersandAmpersand",l[l.AmpersandEqual=9]="AmpersandEqual",l[l.AnonymousKeyword=10]="AnonymousKeyword",l[l.ApplyKeyword=11]="ApplyKeyword",l[l.AsKeyword=12]="AsKeyword",l[l.AssemblyKeyword=13]="AssemblyKeyword",l[l.Asterisk=14]="Asterisk",l[l.AsteriskAsterisk=15]="AsteriskAsterisk",l[l.AsteriskEqual=16]="AsteriskEqual",l[l.AtKeyword=17]="AtKeyword",l[l.AutoKeyword=18]="AutoKeyword",l[l.Bang=19]="Bang",l[l.BangEqual=20]="BangEqual",l[l.Bar=21]="Bar",l[l.BarBar=22]="BarBar",l[l.BarEqual=23]="BarEqual",l[l.BoolKeyword=24]="BoolKeyword",l[l.BreakKeyword=25]="BreakKeyword",l[l.ByteKeyword=26]="ByteKeyword",l[l.BytesKeyword=27]="BytesKeyword",l[l.CallDataKeyword=28]="CallDataKeyword",l[l.Caret=29]="Caret",l[l.CaretEqual=30]="CaretEqual",l[l.CaseKeyword=31]="CaseKeyword",l[l.CatchKeyword=32]="CatchKeyword",l[l.CloseBrace=33]="CloseBrace",l[l.CloseBracket=34]="CloseBracket",l[l.CloseParen=35]="CloseParen",l[l.Colon=36]="Colon",l[l.ColonEqual=37]="ColonEqual",l[l.Comma=38]="Comma",l[l.ConstantKeyword=39]="ConstantKeyword",l[l.ConstructorKeyword=40]="ConstructorKeyword",l[l.ContinueKeyword=41]="ContinueKeyword",l[l.ContractKeyword=42]="ContractKeyword",l[l.CopyOfKeyword=43]="CopyOfKeyword",l[l.DaysKeyword=44]="DaysKeyword",l[l.DecimalLiteral=45]="DecimalLiteral",l[l.DefaultKeyword=46]="DefaultKeyword",l[l.DefineKeyword=47]="DefineKeyword",l[l.DeleteKeyword=48]="DeleteKeyword",l[l.DoKeyword=49]="DoKeyword",l[l.DoubleQuotedHexStringLiteral=50]="DoubleQuotedHexStringLiteral",l[l.DoubleQuotedStringLiteral=51]="DoubleQuotedStringLiteral",l[l.DoubleQuotedUnicodeStringLiteral=52]="DoubleQuotedUnicodeStringLiteral",l[l.DoubleQuotedVersionLiteral=53]="DoubleQuotedVersionLiteral",l[l.ElseKeyword=54]="ElseKeyword",l[l.EmitKeyword=55]="EmitKeyword",l[l.EndOfLine=56]="EndOfLine",l[l.EnumKeyword=57]="EnumKeyword",l[l.Equal=58]="Equal",l[l.EqualColon=59]="EqualColon",l[l.EqualEqual=60]="EqualEqual",l[l.EqualGreaterThan=61]="EqualGreaterThan",l[l.ErrorKeyword=62]="ErrorKeyword",l[l.EtherKeyword=63]="EtherKeyword",l[l.EventKeyword=64]="EventKeyword",l[l.ExperimentalKeyword=65]="ExperimentalKeyword",l[l.ExternalKeyword=66]="ExternalKeyword",l[l.FallbackKeyword=67]="FallbackKeyword",l[l.FalseKeyword=68]="FalseKeyword",l[l.FinalKeyword=69]="FinalKeyword",l[l.FinneyKeyword=70]="FinneyKeyword",l[l.FixedKeyword=71]="FixedKeyword",l[l.ForKeyword=72]="ForKeyword",l[l.FromKeyword=73]="FromKeyword",l[l.FunctionKeyword=74]="FunctionKeyword",l[l.GlobalKeyword=75]="GlobalKeyword",l[l.GreaterThan=76]="GreaterThan",l[l.GreaterThanEqual=77]="GreaterThanEqual",l[l.GreaterThanGreaterThan=78]="GreaterThanGreaterThan",l[l.GreaterThanGreaterThanEqual=79]="GreaterThanGreaterThanEqual",l[l.GreaterThanGreaterThanGreaterThan=80]="GreaterThanGreaterThanGreaterThan",l[l.GreaterThanGreaterThanGreaterThanEqual=81]="GreaterThanGreaterThanGreaterThanEqual",l[l.GweiKeyword=82]="GweiKeyword",l[l.HexKeyword=83]="HexKeyword",l[l.HexLiteral=84]="HexLiteral",l[l.HoursKeyword=85]="HoursKeyword",l[l.Identifier=86]="Identifier",l[l.IfKeyword=87]="IfKeyword",l[l.ImmutableKeyword=88]="ImmutableKeyword",l[l.ImplementsKeyword=89]="ImplementsKeyword",l[l.ImportKeyword=90]="ImportKeyword",l[l.InKeyword=91]="InKeyword",l[l.IndexedKeyword=92]="IndexedKeyword",l[l.InlineKeyword=93]="InlineKeyword",l[l.IntKeyword=94]="IntKeyword",l[l.InterfaceKeyword=95]="InterfaceKeyword",l[l.InternalKeyword=96]="InternalKeyword",l[l.IsKeyword=97]="IsKeyword",l[l.LayoutKeyword=98]="LayoutKeyword",l[l.LessThan=99]="LessThan",l[l.LessThanEqual=100]="LessThanEqual",l[l.LessThanLessThan=101]="LessThanLessThan",l[l.LessThanLessThanEqual=102]="LessThanLessThanEqual",l[l.LetKeyword=103]="LetKeyword",l[l.LibraryKeyword=104]="LibraryKeyword",l[l.MacroKeyword=105]="MacroKeyword",l[l.MappingKeyword=106]="MappingKeyword",l[l.MatchKeyword=107]="MatchKeyword",l[l.MemoryKeyword=108]="MemoryKeyword",l[l.Minus=109]="Minus",l[l.MinusEqual=110]="MinusEqual",l[l.MinusGreaterThan=111]="MinusGreaterThan",l[l.MinusMinus=112]="MinusMinus",l[l.MinutesKeyword=113]="MinutesKeyword",l[l.ModifierKeyword=114]="ModifierKeyword",l[l.MultiLineComment=115]="MultiLineComment",l[l.MultiLineNatSpecComment=116]="MultiLineNatSpecComment",l[l.MutableKeyword=117]="MutableKeyword",l[l.NewKeyword=118]="NewKeyword",l[l.NullKeyword=119]="NullKeyword",l[l.OfKeyword=120]="OfKeyword",l[l.OpenBrace=121]="OpenBrace",l[l.OpenBracket=122]="OpenBracket",l[l.OpenParen=123]="OpenParen",l[l.OverrideKeyword=124]="OverrideKeyword",l[l.PartialKeyword=125]="PartialKeyword",l[l.PayableKeyword=126]="PayableKeyword",l[l.Percent=127]="Percent",l[l.PercentEqual=128]="PercentEqual",l[l.Period=129]="Period",l[l.Plus=130]="Plus",l[l.PlusEqual=131]="PlusEqual",l[l.PlusPlus=132]="PlusPlus",l[l.PragmaKeyword=133]="PragmaKeyword",l[l.PrivateKeyword=134]="PrivateKeyword",l[l.PromiseKeyword=135]="PromiseKeyword",l[l.PublicKeyword=136]="PublicKeyword",l[l.PureKeyword=137]="PureKeyword",l[l.QuestionMark=138]="QuestionMark",l[l.ReceiveKeyword=139]="ReceiveKeyword",l[l.ReferenceKeyword=140]="ReferenceKeyword",l[l.RelocatableKeyword=141]="RelocatableKeyword",l[l.ReturnKeyword=142]="ReturnKeyword",l[l.ReturnsKeyword=143]="ReturnsKeyword",l[l.RevertKeyword=144]="RevertKeyword",l[l.SealedKeyword=145]="SealedKeyword",l[l.SecondsKeyword=146]="SecondsKeyword",l[l.Semicolon=147]="Semicolon",l[l.SingleLineComment=148]="SingleLineComment",l[l.SingleLineNatSpecComment=149]="SingleLineNatSpecComment",l[l.SingleQuotedHexStringLiteral=150]="SingleQuotedHexStringLiteral",l[l.SingleQuotedStringLiteral=151]="SingleQuotedStringLiteral",l[l.SingleQuotedUnicodeStringLiteral=152]="SingleQuotedUnicodeStringLiteral",l[l.SingleQuotedVersionLiteral=153]="SingleQuotedVersionLiteral",l[l.SizeOfKeyword=154]="SizeOfKeyword",l[l.Slash=155]="Slash",l[l.SlashEqual=156]="SlashEqual",l[l.SolidityKeyword=157]="SolidityKeyword",l[l.StaticKeyword=158]="StaticKeyword",l[l.StorageKeyword=159]="StorageKeyword",l[l.StringKeyword=160]="StringKeyword",l[l.StructKeyword=161]="StructKeyword",l[l.SuperKeyword=162]="SuperKeyword",l[l.SupportsKeyword=163]="SupportsKeyword",l[l.SwitchKeyword=164]="SwitchKeyword",l[l.SzaboKeyword=165]="SzaboKeyword",l[l.ThisKeyword=166]="ThisKeyword",l[l.ThrowKeyword=167]="ThrowKeyword",l[l.Tilde=168]="Tilde",l[l.TransientKeyword=169]="TransientKeyword",l[l.TrueKeyword=170]="TrueKeyword",l[l.TryKeyword=171]="TryKeyword",l[l.TypeDefKeyword=172]="TypeDefKeyword",l[l.TypeKeyword=173]="TypeKeyword",l[l.TypeOfKeyword=174]="TypeOfKeyword",l[l.UfixedKeyword=175]="UfixedKeyword",l[l.UintKeyword=176]="UintKeyword",l[l.UncheckedKeyword=177]="UncheckedKeyword",l[l.UsingKeyword=178]="UsingKeyword",l[l.VarKeyword=179]="VarKeyword",l[l.VersionSpecifier=180]="VersionSpecifier",l[l.ViewKeyword=181]="ViewKeyword",l[l.VirtualKeyword=182]="VirtualKeyword",l[l.WeeksKeyword=183]="WeeksKeyword",l[l.WeiKeyword=184]="WeiKeyword",l[l.WhileKeyword=185]="WhileKeyword",l[l.Whitespace=186]="Whitespace",l[l.YearsKeyword=187]="YearsKeyword",l[l.YulAbstractKeyword=188]="YulAbstractKeyword",l[l.YulAfterKeyword=189]="YulAfterKeyword",l[l.YulAliasKeyword=190]="YulAliasKeyword",l[l.YulAnonymousKeyword=191]="YulAnonymousKeyword",l[l.YulApplyKeyword=192]="YulApplyKeyword",l[l.YulAsKeyword=193]="YulAsKeyword",l[l.YulAssemblyKeyword=194]="YulAssemblyKeyword",l[l.YulAutoKeyword=195]="YulAutoKeyword",l[l.YulBoolKeyword=196]="YulBoolKeyword",l[l.YulBreakKeyword=197]="YulBreakKeyword",l[l.YulBytesKeyword=198]="YulBytesKeyword",l[l.YulCallDataKeyword=199]="YulCallDataKeyword",l[l.YulCaseKeyword=200]="YulCaseKeyword",l[l.YulCatchKeyword=201]="YulCatchKeyword",l[l.YulConstantKeyword=202]="YulConstantKeyword",l[l.YulConstructorKeyword=203]="YulConstructorKeyword",l[l.YulContinueKeyword=204]="YulContinueKeyword",l[l.YulContractKeyword=205]="YulContractKeyword",l[l.YulCopyOfKeyword=206]="YulCopyOfKeyword",l[l.YulDaysKeyword=207]="YulDaysKeyword",l[l.YulDecimalLiteral=208]="YulDecimalLiteral",l[l.YulDefaultKeyword=209]="YulDefaultKeyword",l[l.YulDefineKeyword=210]="YulDefineKeyword",l[l.YulDeleteKeyword=211]="YulDeleteKeyword",l[l.YulDoKeyword=212]="YulDoKeyword",l[l.YulElseKeyword=213]="YulElseKeyword",l[l.YulEmitKeyword=214]="YulEmitKeyword",l[l.YulEnumKeyword=215]="YulEnumKeyword",l[l.YulEtherKeyword=216]="YulEtherKeyword",l[l.YulEventKeyword=217]="YulEventKeyword",l[l.YulExternalKeyword=218]="YulExternalKeyword",l[l.YulFallbackKeyword=219]="YulFallbackKeyword",l[l.YulFalseKeyword=220]="YulFalseKeyword",l[l.YulFinalKeyword=221]="YulFinalKeyword",l[l.YulFinneyKeyword=222]="YulFinneyKeyword",l[l.YulFixedKeyword=223]="YulFixedKeyword",l[l.YulForKeyword=224]="YulForKeyword",l[l.YulFunctionKeyword=225]="YulFunctionKeyword",l[l.YulGweiKeyword=226]="YulGweiKeyword",l[l.YulHexKeyword=227]="YulHexKeyword",l[l.YulHexLiteral=228]="YulHexLiteral",l[l.YulHoursKeyword=229]="YulHoursKeyword",l[l.YulIdentifier=230]="YulIdentifier",l[l.YulIfKeyword=231]="YulIfKeyword",l[l.YulImmutableKeyword=232]="YulImmutableKeyword",l[l.YulImplementsKeyword=233]="YulImplementsKeyword",l[l.YulImportKeyword=234]="YulImportKeyword",l[l.YulInKeyword=235]="YulInKeyword",l[l.YulIndexedKeyword=236]="YulIndexedKeyword",l[l.YulInlineKeyword=237]="YulInlineKeyword",l[l.YulIntKeyword=238]="YulIntKeyword",l[l.YulInterfaceKeyword=239]="YulInterfaceKeyword",l[l.YulInternalKeyword=240]="YulInternalKeyword",l[l.YulIsKeyword=241]="YulIsKeyword",l[l.YulLeaveKeyword=242]="YulLeaveKeyword",l[l.YulLetKeyword=243]="YulLetKeyword",l[l.YulLibraryKeyword=244]="YulLibraryKeyword",l[l.YulMacroKeyword=245]="YulMacroKeyword",l[l.YulMappingKeyword=246]="YulMappingKeyword",l[l.YulMatchKeyword=247]="YulMatchKeyword",l[l.YulMemoryKeyword=248]="YulMemoryKeyword",l[l.YulMinutesKeyword=249]="YulMinutesKeyword",l[l.YulModifierKeyword=250]="YulModifierKeyword",l[l.YulMutableKeyword=251]="YulMutableKeyword",l[l.YulNewKeyword=252]="YulNewKeyword",l[l.YulNullKeyword=253]="YulNullKeyword",l[l.YulOfKeyword=254]="YulOfKeyword",l[l.YulOverrideKeyword=255]="YulOverrideKeyword",l[l.YulPartialKeyword=256]="YulPartialKeyword",l[l.YulPayableKeyword=257]="YulPayableKeyword",l[l.YulPragmaKeyword=258]="YulPragmaKeyword",l[l.YulPrivateKeyword=259]="YulPrivateKeyword",l[l.YulPromiseKeyword=260]="YulPromiseKeyword",l[l.YulPublicKeyword=261]="YulPublicKeyword",l[l.YulPureKeyword=262]="YulPureKeyword",l[l.YulReceiveKeyword=263]="YulReceiveKeyword",l[l.YulReferenceKeyword=264]="YulReferenceKeyword",l[l.YulRelocatableKeyword=265]="YulRelocatableKeyword",l[l.YulReturnsKeyword=266]="YulReturnsKeyword",l[l.YulSealedKeyword=267]="YulSealedKeyword",l[l.YulSecondsKeyword=268]="YulSecondsKeyword",l[l.YulSizeOfKeyword=269]="YulSizeOfKeyword",l[l.YulStaticKeyword=270]="YulStaticKeyword",l[l.YulStorageKeyword=271]="YulStorageKeyword",l[l.YulStringKeyword=272]="YulStringKeyword",l[l.YulStructKeyword=273]="YulStructKeyword",l[l.YulSuperKeyword=274]="YulSuperKeyword",l[l.YulSupportsKeyword=275]="YulSupportsKeyword",l[l.YulSwitchKeyword=276]="YulSwitchKeyword",l[l.YulSzaboKeyword=277]="YulSzaboKeyword",l[l.YulThisKeyword=278]="YulThisKeyword",l[l.YulThrowKeyword=279]="YulThrowKeyword",l[l.YulTrueKeyword=280]="YulTrueKeyword",l[l.YulTryKeyword=281]="YulTryKeyword",l[l.YulTypeDefKeyword=282]="YulTypeDefKeyword",l[l.YulTypeKeyword=283]="YulTypeKeyword",l[l.YulTypeOfKeyword=284]="YulTypeOfKeyword",l[l.YulUfixedKeyword=285]="YulUfixedKeyword",l[l.YulUintKeyword=286]="YulUintKeyword",l[l.YulUncheckedKeyword=287]="YulUncheckedKeyword",l[l.YulUsingKeyword=288]="YulUsingKeyword",l[l.YulVarKeyword=289]="YulVarKeyword",l[l.YulViewKeyword=290]="YulViewKeyword",l[l.YulVirtualKeyword=291]="YulVirtualKeyword",l[l.YulWeeksKeyword=292]="YulWeeksKeyword",l[l.YulWeiKeyword=293]="YulWeiKeyword",l[l.YulWhileKeyword=294]="YulWhileKeyword",l[l.YulYearsKeyword=295]="YulYearsKeyword";var h={};h[h.Root=0]="Root",h[h.Unrecognized=1]="Unrecognized",h[h.Missing=2]="Missing",h[h.Item=3]="Item",h[h.Variant=4]="Variant",h[h.Separator=5]="Separator",h[h.Operand=6]="Operand",h[h.LeftOperand=7]="LeftOperand",h[h.RightOperand=8]="RightOperand",h[h.LeadingTrivia=9]="LeadingTrivia",h[h.TrailingTrivia=10]="TrailingTrivia",h[h.AbicoderKeyword=11]="AbicoderKeyword",h[h.AbstractKeyword=12]="AbstractKeyword",h[h.AddressKeyword=13]="AddressKeyword",h[h.Alias=14]="Alias",h[h.AnonymousKeyword=15]="AnonymousKeyword",h[h.Arguments=16]="Arguments",h[h.AsKeyword=17]="AsKeyword",h[h.AssemblyKeyword=18]="AssemblyKeyword",h[h.Assignment=19]="Assignment",h[h.Asterisk=20]="Asterisk",h[h.AtKeyword=21]="AtKeyword",h[h.Attributes=22]="Attributes",h[h.Block=23]="Block",h[h.Body=24]="Body",h[h.BreakKeyword=25]="BreakKeyword",h[h.CaseKeyword=26]="CaseKeyword",h[h.Cases=27]="Cases",h[h.CatchClauses=28]="CatchClauses",h[h.CatchKeyword=29]="CatchKeyword",h[h.Clause=30]="Clause",h[h.CloseBrace=31]="CloseBrace",h[h.CloseBracket=32]="CloseBracket",h[h.CloseParen=33]="CloseParen",h[h.Colon=34]="Colon",h[h.Condition=35]="Condition",h[h.ConstantKeyword=36]="ConstantKeyword",h[h.ConstructorKeyword=37]="ConstructorKeyword",h[h.ContinueKeyword=38]="ContinueKeyword",h[h.ContractKeyword=39]="ContractKeyword",h[h.DefaultKeyword=40]="DefaultKeyword",h[h.DoKeyword=41]="DoKeyword",h[h.Elements=42]="Elements",h[h.ElseBranch=43]="ElseBranch",h[h.ElseKeyword=44]="ElseKeyword",h[h.EmitKeyword=45]="EmitKeyword",h[h.End=46]="End",h[h.EnumKeyword=47]="EnumKeyword",h[h.Equal=48]="Equal",h[h.EqualGreaterThan=49]="EqualGreaterThan",h[h.Error=50]="Error",h[h.ErrorKeyword=51]="ErrorKeyword",h[h.Event=52]="Event",h[h.EventKeyword=53]="EventKeyword",h[h.ExperimentalKeyword=54]="ExperimentalKeyword",h[h.Expression=55]="Expression",h[h.FallbackKeyword=56]="FallbackKeyword",h[h.FalseExpression=57]="FalseExpression",h[h.Feature=58]="Feature",h[h.Flags=59]="Flags",h[h.ForKeyword=60]="ForKeyword",h[h.FromKeyword=61]="FromKeyword",h[h.FunctionKeyword=62]="FunctionKeyword",h[h.GlobalKeyword=63]="GlobalKeyword",h[h.Identifier=64]="Identifier",h[h.IfKeyword=65]="IfKeyword",h[h.ImportKeyword=66]="ImportKeyword",h[h.Index=67]="Index",h[h.IndexedKeyword=68]="IndexedKeyword",h[h.Inheritance=69]="Inheritance",h[h.Initialization=70]="Initialization",h[h.InterfaceKeyword=71]="InterfaceKeyword",h[h.IsKeyword=72]="IsKeyword",h[h.Items=73]="Items",h[h.Iterator=74]="Iterator",h[h.KeyType=75]="KeyType",h[h.Label=76]="Label",h[h.LayoutKeyword=77]="LayoutKeyword",h[h.LeaveKeyword=78]="LeaveKeyword",h[h.LetKeyword=79]="LetKeyword",h[h.LibraryKeyword=80]="LibraryKeyword",h[h.Literal=81]="Literal",h[h.MappingKeyword=82]="MappingKeyword",h[h.Member=83]="Member",h[h.Members=84]="Members",h[h.Minus=85]="Minus",h[h.MinusGreaterThan=86]="MinusGreaterThan",h[h.ModifierKeyword=87]="ModifierKeyword",h[h.Name=88]="Name",h[h.NewKeyword=89]="NewKeyword",h[h.OpenBrace=90]="OpenBrace",h[h.OpenBracket=91]="OpenBracket",h[h.OpenParen=92]="OpenParen",h[h.Operator=93]="Operator",h[h.Options=94]="Options",h[h.Overridden=95]="Overridden",h[h.OverrideKeyword=96]="OverrideKeyword",h[h.Parameters=97]="Parameters",h[h.Path=98]="Path",h[h.Paths=99]="Paths",h[h.PayableKeyword=100]="PayableKeyword",h[h.Period=101]="Period",h[h.Pragma=102]="Pragma",h[h.PragmaKeyword=103]="PragmaKeyword",h[h.QuestionMark=104]="QuestionMark",h[h.ReceiveKeyword=105]="ReceiveKeyword",h[h.ReturnKeyword=106]="ReturnKeyword",h[h.Returns=107]="Returns",h[h.ReturnsKeyword=108]="ReturnsKeyword",h[h.RevertKeyword=109]="RevertKeyword",h[h.Semicolon=110]="Semicolon",h[h.Sets=111]="Sets",h[h.SolidityKeyword=112]="SolidityKeyword",h[h.Specifiers=113]="Specifiers",h[h.Start=114]="Start",h[h.Statements=115]="Statements",h[h.StorageLocation=116]="StorageLocation",h[h.StructKeyword=117]="StructKeyword",h[h.SwitchKeyword=118]="SwitchKeyword",h[h.Symbols=119]="Symbols",h[h.Target=120]="Target",h[h.ThrowKeyword=121]="ThrowKeyword",h[h.TrueExpression=122]="TrueExpression",h[h.TryKeyword=123]="TryKeyword",h[h.TypeKeyword=124]="TypeKeyword",h[h.TypeName=125]="TypeName",h[h.Types=126]="Types",h[h.UncheckedKeyword=127]="UncheckedKeyword",h[h.Unit=128]="Unit",h[h.UsingKeyword=129]="UsingKeyword",h[h.Value=130]="Value",h[h.ValueType=131]="ValueType",h[h.VarKeyword=132]="VarKeyword",h[h.Variable=133]="Variable",h[h.VariableType=134]="VariableType",h[h.Variables=135]="Variables",h[h.Version=136]="Version",h[h.WhileKeyword=137]="WhileKeyword";var u={};let cr,lr,hr,ur;u.NonterminalNode="NonterminalNode",Object.defineProperty(Xt.prototype,"type",{get:function(){return u.NonterminalNode}}),Xt.prototype.asNonterminalNode=function(){return this},Xt.prototype.isNonterminalNode=function(){return!0},Xt.prototype.asTerminalNode=function(){},Xt.prototype.isTerminalNode=function(){return!1},u.TerminalNode="TerminalNode",Object.defineProperty(Ce.prototype,"type",{get:function(){return u.TerminalNode}}),Ce.prototype.asTerminalNode=function(){return this},Ce.prototype.isTerminalNode=function(){return!0},Ce.prototype.asNonterminalNode=function(){},Ce.prototype.isNonterminalNode=function(){return!1};class dr{constructor(){throw new Error('"Selectors" resource does not define a constructor')}}dr.sequence=function(t){var e=t[Y];if(!(e&&$t[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=$t[1+(e<<1)]&~q;const s=cr(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{var o=R(at).getInt32(s+8,!0),c=R(at).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+12*t;let r;if(R(at).getUint8(e+0,!0)){let t;switch(R(at).getUint8(e+4,!0)){case 0:var h=R(at).getInt32(e+8,!0),u=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),Qt.register(u,h,u),Object.defineProperty(u,j,{writable:!0,value:function(){Qt.unregister(u),U($t,h),u[j]=A,u[Y]=void 0,X[18]($t[1+(h<<1)]&~q)}}),t=u;break;case 1:var d=R(at).getInt32(e+8,!0),p=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),Zt.register(p,d,p),Object.defineProperty(p,j,{writable:!0,value:function(){Zt.unregister(p),U(Jt,d),p[j]=A,p[Y]=void 0,X[19](Jt[1+(d<<1)]&~q)}}),t=p}r=t}else r=void 0;l.push(r)}i={tag:"ok",val:l}}const m=i;if(At(s),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val},dr.choice=function(t){var e=t[Y];if(!(e&&$t[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=$t[1+(e<<1)]&~q;const s=lr(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{let t;switch(R(at).getUint8(s+4,!0)){case 0:var o=R(at).getInt32(s+8,!0),c=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),Qt.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){Qt.unregister(c),U($t,o),c[j]=A,c[Y]=void 0,X[18]($t[1+(o<<1)]&~q)}}),t=c;break;case 1:var l=R(at).getInt32(s+8,!0),h=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(h,Y,{writable:!0,value:l}),Zt.register(h,l,h),Object.defineProperty(h,j,{writable:!0,value:function(){Zt.unregister(h),U(Jt,l),h[j]=A,h[Y]=void 0,X[19](Jt[1+(l<<1)]&~q)}}),t=h}i={tag:"ok",val:t}}const u=i;if(kt(s),"object"==typeof u&&"err"===u.tag)throw u.val;return u.val},dr.repeated=function(t){var e=t[Y];if(!(e&&$t[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=$t[1+(e<<1)]&~q;const s=hr(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{var o=R(at).getInt32(s+8,!0),c=R(at).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+8*t;let r;switch(R(at).getUint8(e+0,!0)){case 0:var h=R(at).getInt32(e+4,!0),u=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),Qt.register(u,h,u),Object.defineProperty(u,j,{writable:!0,value:function(){Qt.unregister(u),U($t,h),u[j]=A,u[Y]=void 0,X[18]($t[1+(h<<1)]&~q)}}),r=u;break;case 1:var d=R(at).getInt32(e+4,!0),p=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),Zt.register(p,d,p),Object.defineProperty(p,j,{writable:!0,value:function(){Zt.unregister(p),U(Jt,d),p[j]=A,p[Y]=void 0,X[19](Jt[1+(d<<1)]&~q)}}),r=p}l.push(r)}i={tag:"ok",val:l}}const m=i;if(Ct(s),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val},dr.separated=function(t){var e=t[Y];if(!(e&&$t[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=$t[1+(e<<1)]&~q;const s=ur(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{var o=R(at).getInt32(s+8,!0),c=R(at).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+8*t;var h=R(at).getInt32(e+4,!0),u=R(at).getInt32(e+0,!0),d=[];for(let t=0;t<h;t++){const e=u+8*t;let r;switch(R(at).getUint8(e+0,!0)){case 0:var p=R(at).getInt32(e+4,!0),m=new.target===Xt?this:Object.create(Xt.prototype);Object.defineProperty(m,Y,{writable:!0,value:p}),Qt.register(m,p,m),Object.defineProperty(m,j,{writable:!0,value:function(){Qt.unregister(m),U($t,p),m[j]=A,m[Y]=void 0,X[18]($t[1+(p<<1)]&~q)}}),r=m;break;case 1:var y=R(at).getInt32(e+4,!0),f=new.target===Ce?this:Object.create(Ce.prototype);Object.defineProperty(f,Y,{writable:!0,value:y}),Zt.register(f,y,f),Object.defineProperty(f,j,{writable:!0,value:function(){Zt.unregister(f),U(Jt,y),f[j]=A,f[Y]=void 0,X[19](Jt[1+(y<<1)]&~q)}}),r=f}d.push(r)}l.push(d)}i={tag:"ok",val:l}}const g=i;if(Lt(s),"object"==typeof g&&"err"===g.tag)throw g.val;return g.val};const pr=[q,0],mr=K((t=>{const{rep:e}=U(pr,t);X[26](e)}));D[11]=pr;const yr=[q,0],fr=K((t=>{const{rep:e}=U(yr,t);X[27](e)}));let gr;D[12]=yr;class wr{constructor(){throw new Error('"BindingGraph" resource does not define a constructor')}}wr.prototype.definitionAt=function(t){var e=this[Y];if(!(e&&pr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "BindingGraph" resource.');var r=pr[1+(e<<1)]&~q,s=t[Y];if(!(s&&ae[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var i=ae[1+(s<<1)]&~q;const n=gr(r,i);let a;if(R(at).getUint8(n+0,!0)){var o=R(at).getInt32(n+4,!0),c=new.target===Er?this:Object.create(Er.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),fr.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){fr.unregister(c),U(yr,o),c[j]=A,c[Y]=void 0,X[27](yr[1+(o<<1)]&~q)}}),a=c}else a=void 0;return a};const vr=[q,0],xr=K((t=>{const{rep:e}=U(vr,t);X[28](e)}));let br,_r;D[13]=vr,wr.prototype.referenceAt=function(t){var e=this[Y];if(!(e&&pr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "BindingGraph" resource.');var r=pr[1+(e<<1)]&~q,s=t[Y];if(!(s&&ae[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var i=ae[1+(s<<1)]&~q;const n=br(r,i);let a;if(R(at).getUint8(n+0,!0)){var o=R(at).getInt32(n+4,!0),c=new.target===Pr?this:Object.create(Pr.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),xr.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){xr.unregister(c),U(vr,o),c[j]=A,c[Y]=void 0,X[28](vr[1+(o<<1)]&~q)}}),a=c}else a=void 0;return a};class Er{constructor(){throw new Error('"Definition" resource does not define a constructor')}}Object.defineProperty(Er.prototype,"id",{get:function(){var t=this[Y];if(!(t&&yr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=yr[1+(t<<1)]&~q;return _r(e)>>>0}});const Tr=[q,0],Sr=K((t=>{const{rep:e}=U(Tr,t);X[29](e)}));D[14]=Tr;const kr=[q,0],Rr=K((t=>{const{rep:e}=U(kr,t);X[30](e)}));let Ar,Cr,Lr,Ir,Kr,Nr,Dr,Or;D[15]=kr,Object.defineProperty(Er.prototype,"nameLocation",{get:function(){var t=this[Y];if(!(t&&yr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=yr[1+(t<<1)]&~q;const r=Ar(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===qr?this:Object.create(qr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Sr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Sr.unregister(n),U(Tr,i),n[j]=A,n[Y]=void 0,X[29](Tr[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===Fr?this:Object.create(Fr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Rr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Rr.unregister(o),U(kr,a),o[j]=A,o[Y]=void 0,X[30](kr[1+(a<<1)]&~q)}}),s=o}return s}}),Object.defineProperty(Er.prototype,"definiensLocation",{get:function(){var t=this[Y];if(!(t&&yr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=yr[1+(t<<1)]&~q;const r=Cr(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===qr?this:Object.create(qr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Sr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Sr.unregister(n),U(Tr,i),n[j]=A,n[Y]=void 0,X[29](Tr[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===Fr?this:Object.create(Fr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Rr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Rr.unregister(o),U(kr,a),o[j]=A,o[Y]=void 0,X[30](kr[1+(a<<1)]&~q)}}),s=o}return s}}),Er.prototype.references=function(){var t=this[Y];if(!(t&&yr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=yr[1+(t<<1)]&~q;const r=Lr(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===Pr?this:Object.create(Pr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),xr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){xr.unregister(o),U(vr,a),o[j]=A,o[Y]=void 0,X[28](vr[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return It(r),c};class Pr{constructor(){throw new Error('"Reference" resource does not define a constructor')}}Object.defineProperty(Pr.prototype,"id",{get:function(){var t=this[Y];if(!(t&&vr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=vr[1+(t<<1)]&~q;return Ir(e)>>>0}}),Object.defineProperty(Pr.prototype,"location",{get:function(){var t=this[Y];if(!(t&&vr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=vr[1+(t<<1)]&~q;const r=Kr(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===qr?this:Object.create(qr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Sr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Sr.unregister(n),U(Tr,i),n[j]=A,n[Y]=void 0,X[29](Tr[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===Fr?this:Object.create(Fr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Rr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Rr.unregister(o),U(kr,a),o[j]=A,o[Y]=void 0,X[30](kr[1+(a<<1)]&~q)}}),s=o}return s}}),Pr.prototype.definitions=function(){var t=this[Y];if(!(t&&vr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=vr[1+(t<<1)]&~q;const r=Nr(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===Er?this:Object.create(Er.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),fr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){fr.unregister(o),U(yr,a),o[j]=A,o[Y]=void 0,X[27](yr[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return It(r),c};class qr{constructor(){throw new Error('"UserFileLocation" resource does not define a constructor')}}Object.defineProperty(qr.prototype,"fileId",{get:function(){var t=this[Y];if(!(t&&Tr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "UserFileLocation" resource.');var e=Tr[1+(t<<1)]&~q;const r=Dr(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Tt(r),n}}),Object.defineProperty(qr.prototype,"cursor",{get:function(){var t=this[Y];if(!(t&&Tr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "UserFileLocation" resource.');var e=Tr[1+(t<<1)]&~q,r=Or(e),s=new.target===Le?this:Object.create(Le.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),U(ae,r),s[j]=A,s[Y]=void 0,X[20](ae[1+(r<<1)]&~q)}}),s}});var d={UserFileLocation:"UserFileLocation"};Object.defineProperty(qr.prototype,"type",{get:function(){return d.UserFileLocation}}),qr.prototype.asUserFileLocation=function(){return this},qr.prototype.isUserFileLocation=function(){return!0},qr.prototype.asBuiltInLocation=function(){},qr.prototype.isBuiltInLocation=function(){return!1};class Fr{constructor(){throw new Error('"BuiltInLocation" resource does not define a constructor')}}d.BuiltInLocation="BuiltInLocation",Object.defineProperty(Fr.prototype,"type",{get:function(){return d.BuiltInLocation}}),Fr.prototype.asBuiltInLocation=function(){return this},Fr.prototype.isBuiltInLocation=function(){return!0},Fr.prototype.asUserFileLocation=function(){},Fr.prototype.isUserFileLocation=function(){return!1};const Ur=[q,0],Mr=K((t=>{const{rep:e}=U(Ur,t);X[31](e)}));let Yr,Vr;D[16]=Ur;class jr{constructor(){throw new Error('"Parser" resource does not define a constructor')}}jr.create=function(t){var e=W(t,St,at);const r=Yr(e,G);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=R(at).getInt32(r+8,!0);s={tag:"err",val:$.decode(new Uint8Array(at.buffer,i,n))}}else{var a=R(at).getInt32(r+4,!0),o=new.target===jr?this:Object.create(jr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Mr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Mr.unregister(o),U(Ur,a),o[j]=A,o[Y]=void 0,X[31](Ur[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(kt(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val},Object.defineProperty(jr.prototype,"languageVersion",{get:function(){var t=this[Y];if(!(t&&Ur[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var e=Ur[1+(t<<1)]&~q;const r=Vr(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Tt(r),n}});const Br=[q,0],Hr=K((t=>{const{rep:e}=U(Br,t);X[32](e)}));let $r,Qr,Gr,Wr,zr,Xr;D[17]=Br,jr.prototype.parseFileContents=function(t){var e=this[Y];if(!(e&&Ur[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var r=Ur[1+(e<<1)]&~q,s=W(t,St,at),i=$r(r,s,G),n=new.target===Jr?this:Object.create(Jr.prototype);return Object.defineProperty(n,Y,{writable:!0,value:i}),Hr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Hr.unregister(n),U(Br,i),n[j]=A,n[Y]=void 0,X[32](Br[1+(i<<1)]&~q)}}),n},jr.prototype.parseNonterminal=function(t,e){var r=this[Y];if(!(r&&Ur[1+(r<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var s=Ur[1+(r<<1)]&~q,i=W(e,St,at),n=G,a=Qr(s,c[t],i,n),o=new.target===Jr?this:Object.create(Jr.prototype);return Object.defineProperty(o,Y,{writable:!0,value:a}),Hr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Hr.unregister(o),U(Br,a),o[j]=A,o[Y]=void 0,X[32](Br[1+(a<<1)]&~q)}}),o};class Jr{constructor(){throw new Error('"ParseOutput" resource does not define a constructor')}}Object.defineProperty(Jr.prototype,"tree",{get:function(){var t=this[Y];if(!(t&&Br[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=Br[1+(t<<1)]&~q,r=Gr(e),s=new.target===Xt?this:Object.create(Xt.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Qt.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){Qt.unregister(s),U($t,r),s[j]=A,s[Y]=void 0,X[18]($t[1+(r<<1)]&~q)}}),s}}),Jr.prototype.errors=function(){var t=this[Y];if(!(t&&Br[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=Br[1+(t<<1)]&~q;const r=Wr(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+40*t;var a=R(at).getInt32(e+0,!0),o=R(at).getInt32(e+4,!0),c=$.decode(new Uint8Array(at.buffer,a,o));n.push({message:c,textRange:{start:{utf8:R(at).getInt32(e+8,!0)>>>0,utf16:R(at).getInt32(e+12,!0)>>>0,line:R(at).getInt32(e+16,!0)>>>0,column:R(at).getInt32(e+20,!0)>>>0},end:{utf8:R(at).getInt32(e+24,!0)>>>0,utf16:R(at).getInt32(e+28,!0)>>>0,line:R(at).getInt32(e+32,!0)>>>0,column:R(at).getInt32(e+36,!0)>>>0}}})}const l=n;return Kt(r),l},Jr.prototype.isValid=function(){var t=this[Y];if(!(t&&Br[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=Br[1+(t<<1)]&~q;return!!zr(e)},Jr.prototype.createTreeCursor=function(){var t=this[Y];if(!(t&&Br[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=Br[1+(t<<1)]&~q,r=Xr(e),s=new.target===Le?this:Object.create(Le.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),U(ae,r),s[j]=A,s[Y]=void 0,X[20](ae[1+(r<<1)]&~q)}}),s};const Zr=[q,0],ts=K((t=>{const{rep:e}=U(Zr,t);X[33](e)}));let es,rs,ss;D[18]=Zr;class is{constructor(){throw new Error('"InternalCompilationBuilder" resource does not define a constructor')}}is.create=function(t){var e=W(t,St,at);const r=es(e,G);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=R(at).getInt32(r+8,!0);s={tag:"err",val:$.decode(new Uint8Array(at.buffer,i,n))}}else{var a=R(at).getInt32(r+4,!0),o=new.target===is?this:Object.create(is.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),ts.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){ts.unregister(o),U(Zr,a),o[j]=A,o[Y]=void 0,X[33](Zr[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(kt(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val},is.prototype.addFile=function(t,e){var r=this[Y];if(!(r&&Zr[1+(r<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var s=Zr[1+(r<<1)]&~q,i=W(t,St,at),n=G,a=W(e,St,at);const o=rs(s,i,n,a,G);var c=R(at).getInt32(o+4,!0),l=R(at).getInt32(o+0,!0),h=[];for(let t=0;t<c;t++){const e=l+4*t;var u=R(at).getInt32(e+0,!0),d=new.target===Le?this:Object.create(Le.prototype);Object.defineProperty(d,Y,{writable:!0,value:u}),oe.register(d,u,d),Object.defineProperty(d,j,{writable:!0,value:function(){oe.unregister(d),U(ae,u),d[j]=A,d[Y]=void 0,X[20](ae[1+(u<<1)]&~q)}}),h.push(d)}const p={importPaths:h};return It(o),p},is.prototype.resolveImport=function(t,e,r){var s=this[Y];if(!(s&&Zr[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var i=Zr[1+(s<<1)]&~q,n=W(t,St,at),a=G,o=e[Y];if(!(o&&ae[1+(o<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var c=ae[1+(o<<1)]&~q,l=W(r,St,at);const h=ss(i,n,a,c,l,G);let u;if(R(at).getUint8(h+0,!0)){var d=R(at).getInt32(h+4,!0),p=R(at).getInt32(h+8,!0);u={tag:"err",val:$.decode(new Uint8Array(at.buffer,d,p))}}else u={tag:"ok",val:void 0};const m=u;if(kt(h),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val};const ns=[q,0],as=K((t=>{const{rep:e}=U(ns,t);X[34](e)}));let os,cs;D[19]=ns,is.prototype.build=function(){var t=this[Y];if(!(t&&Zr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var e=Zr[1+(t<<1)]&~q,r=os(e),s=new.target===ls?this:Object.create(ls.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),as.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){as.unregister(s),U(ns,r),s[j]=A,s[Y]=void 0,X[34](ns[1+(r<<1)]&~q)}}),s};class ls{constructor(){throw new Error('"CompilationUnit" resource does not define a constructor')}}Object.defineProperty(ls.prototype,"languageVersion",{get:function(){var t=this[Y];if(!(t&&ns[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=ns[1+(t<<1)]&~q;const r=cs(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Tt(r),n}});const hs=[q,0],us=K((t=>{const{rep:e}=U(hs,t);X[35](e)}));let ds,ps,ms,ys,fs,gs,ws,vs,xs,bs,_s;D[20]=hs,ls.prototype.files=function(){var t=this[Y];if(!(t&&ns[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=ns[1+(t<<1)]&~q;const r=ds(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===Es?this:Object.create(Es.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),us.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){us.unregister(o),U(hs,a),o[j]=A,o[Y]=void 0,X[35](hs[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return It(r),c},ls.prototype.file=function(t){var e=this[Y];if(!(e&&ns[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var r=ns[1+(e<<1)]&~q,s=W(t,St,at);const i=ps(r,s,G);let n;if(R(at).getUint8(i+0,!0)){var a=R(at).getInt32(i+4,!0),o=new.target===Es?this:Object.create(Es.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),us.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){us.unregister(o),U(hs,a),o[j]=A,o[Y]=void 0,X[35](hs[1+(a<<1)]&~q)}}),n=o}else n=void 0;return n},Object.defineProperty(ls.prototype,"bindingGraph",{get:function(){var t=this[Y];if(!(t&&ns[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=ns[1+(t<<1)]&~q,r=ms(e),s=new.target===wr?this:Object.create(wr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),mr.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){mr.unregister(s),U(pr,r),s[j]=A,s[Y]=void 0,X[26](pr[1+(r<<1)]&~q)}}),s}});class Es{constructor(){throw new Error('"File" resource does not define a constructor')}}Object.defineProperty(Es.prototype,"id",{get:function(){var t=this[Y];if(!(t&&hs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=hs[1+(t<<1)]&~q;const r=ys(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return Tt(r),n}}),Object.defineProperty(Es.prototype,"tree",{get:function(){var t=this[Y];if(!(t&&hs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=hs[1+(t<<1)]&~q,r=fs(e),s=new.target===Xt?this:Object.create(Xt.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Qt.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){Qt.unregister(s),U($t,r),s[j]=A,s[Y]=void 0,X[18]($t[1+(r<<1)]&~q)}}),s}}),Es.prototype.errors=function(){var t=this[Y];if(!(t&&hs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=hs[1+(t<<1)]&~q;const r=gs(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+40*t;var a=R(at).getInt32(e+0,!0),o=R(at).getInt32(e+4,!0),c=$.decode(new Uint8Array(at.buffer,a,o));n.push({message:c,textRange:{start:{utf8:R(at).getInt32(e+8,!0)>>>0,utf16:R(at).getInt32(e+12,!0)>>>0,line:R(at).getInt32(e+16,!0)>>>0,column:R(at).getInt32(e+20,!0)>>>0},end:{utf8:R(at).getInt32(e+24,!0)>>>0,utf16:R(at).getInt32(e+28,!0)>>>0,line:R(at).getInt32(e+32,!0)>>>0,column:R(at).getInt32(e+36,!0)>>>0}}})}const l=n;return Kt(r),l},Es.prototype.createTreeCursor=function(){var t=this[Y];if(!(t&&hs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=hs[1+(t<<1)]&~q,r=ws(e),s=new.target===Le?this:Object.create(Le.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),U(ae,r),s[j]=A,s[Y]=void 0,X[20](ae[1+(r<<1)]&~q)}}),s};class Ts{constructor(){throw new Error('"LanguageFacts" resource does not define a constructor')}}function Ss(t){const e=U($t,t);e.own&&X[18](e.rep)}function ks(t){const e=U(Jt,t);e.own&&X[19](e.rep)}Ts.allVersions=function(){const t=vs();var e=R(at).getInt32(t+4,!0),r=R(at).getInt32(t+0,!0),s=[];for(let t=0;t<e;t++){const e=r+8*t;var i=R(at).getInt32(e+0,!0),n=R(at).getInt32(e+4,!0),a=$.decode(new Uint8Array(at.buffer,i,n));s.push(a)}const o=s;return Nt(t),o},Ts.earliestVersion=function(){const t=xs();var e=R(at).getInt32(t+0,!0),r=R(at).getInt32(t+4,!0);const s=$.decode(new Uint8Array(at.buffer,e,r));return Tt(t),s},Ts.latestVersion=function(){const t=bs();var e=R(at).getInt32(t+0,!0),r=R(at).getInt32(t+4,!0);const s=$.decode(new Uint8Array(at.buffer,e,r));return Tt(t),s},Ts.inferLanguageVersions=function(t){var e=W(t,St,at);const r=_s(e,G);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+8*t;var a=R(at).getInt32(e+0,!0),o=R(at).getInt32(e+4,!0),c=$.decode(new Uint8Array(at.buffer,a,o));n.push(c)}const l=n;return Nt(r),l};const Rs=F.bind(null,ee);function As(t){const e=U(ee,t);e.own&&X[21](e.rep)}const Cs=F.bind(null,ae);function Ls(t){const e=U(ae,t);e.own&&X[20](e.rep)}const Is=F.bind(null,$t),Ks=F.bind(null,Jt),Ns=F.bind(null,Ie);function Ds(t){const e=U(Ie,t);e.own&&X[22](e.rep)}const Os=F.bind(null,Xe);function Ps(t){const e=U(Xe,t);e.own&&X[24](e.rep)}const qs=F.bind(null,We);function Fs(t){const e=U(We,t);e.own&&X[23](e.rep)}const Us=F.bind(null,yr);function Ms(t){const e=U(yr,t);e.own&&X[27](e.rep)}const Ys=F.bind(null,vr);function Vs(t){const e=U(vr,t);e.own&&X[28](e.rep)}const js=F.bind(null,Tr);function Bs(t){const e=U(Tr,t);e.own&&X[29](e.rep)}const Hs=F.bind(null,kr);function $s(t){const e=U(kr,t);e.own&&X[30](e.rep)}const Qs=F.bind(null,Ur);function Gs(t){const e=U(Ur,t);e.own&&X[31](e.rep)}const Ws=F.bind(null,Br);function zs(t){const e=U(Br,t);e.own&&X[32](e.rep)}const Xs=F.bind(null,Zr);function Js(t){const e=U(Zr,t);e.own&&X[33](e.rep)}const Zs=F.bind(null,ns);function ti(t){const e=U(ns,t);e.own&&X[34](e.rep)}const ei=F.bind(null,hs);function ri(t){const e=U(hs,t);e.own&&X[35](e.rep)}const si=F.bind(null,pr);function ii(t){const e=U(pr,t);e.own&&X[26](e.rep)}function ni(t){const e=U(Z,t);if(e.own){const t=tt.get(e.rep);t?(t[j]&&t[j](),tt.delete(e.rep)):E[M]&&E[M](e.rep)}}function ai(t){const e=U(xt,t);if(e.own){const t=bt.get(e.rep);t?(t[j]&&t[j](),bt.delete(e.rep)):b[M]&&b[M](e.rep)}}function oi(t){const e=U(st,t);if(e.own){const t=it.get(e.rep);t?(t[j]&&t[j](),it.delete(e.rep)):_[M]&&_[M](e.rep)}}function ci(t){const e=U(pt,t);if(e.own){const t=mt.get(e.rep);t?(t[j]&&t[j](),mt.delete(e.rep)):v[M]&&v[M](e.rep)}}const li=(()=>{let t,e,s,i=function*(){const t=I(new URL(r(7870),r.b)),e=I(new URL(r(1112),r.b)),s=I(new URL(r(9719),r.b)),i=I(new URL(r(450),r.b));({exports:X}=yield P(yield s)),({exports:J}=yield P(yield t,{"[export]nomic-foundation:slang/bindings":{"[resource-drop]binding-graph":ii,"[resource-drop]built-in-location":$s,"[resource-drop]definition":Ms,"[resource-drop]reference":Vs,"[resource-drop]user-file-location":Bs,"[resource-new]binding-graph":si,"[resource-new]built-in-location":Hs,"[resource-new]definition":Us,"[resource-new]reference":Ys,"[resource-new]user-file-location":js},"[export]nomic-foundation:slang/compilation":{"[resource-drop]compilation-unit":ti,"[resource-drop]file":ri,"[resource-drop]internal-compilation-builder":Js,"[resource-new]compilation-unit":Zs,"[resource-new]file":ei,"[resource-new]internal-compilation-builder":Xs},"[export]nomic-foundation:slang/cst":{"[resource-drop]ancestors-iterator":Ds,"[resource-drop]cursor":Ls,"[resource-drop]cursor-iterator":As,"[resource-drop]nonterminal-node":Ss,"[resource-drop]query":Fs,"[resource-drop]query-match-iterator":Ps,"[resource-drop]terminal-node":ks,"[resource-new]ancestors-iterator":Ns,"[resource-new]cursor":Cs,"[resource-new]cursor-iterator":Rs,"[resource-new]nonterminal-node":Is,"[resource-new]query":qs,"[resource-new]query-match-iterator":Os,"[resource-new]terminal-node":Ks},"[export]nomic-foundation:slang/parser":{"[resource-drop]parse-output":zs,"[resource-drop]parser":Gs,"[resource-new]parse-output":Ws,"[resource-new]parser":Qs},wasi_snapshot_preview1:{environ_get:X[14],environ_sizes_get:X[15],fd_write:X[13],proc_exit:X[16],random_get:X[12]}})),({exports:nt}=yield P(yield e,{__main_module__:{cabi_realloc:J.cabi_realloc},env:{memory:J.memory},"wasi:cli/environment@0.2.3":{"get-environment":X[0]},"wasi:cli/exit@0.2.3":{exit:ut},"wasi:cli/stderr@0.2.3":{"get-stderr":rt},"wasi:cli/stdin@0.2.3":{"get-stdin":lt},"wasi:cli/stdout@0.2.3":{"get-stdout":ht},"wasi:filesystem/preopens@0.2.3":{"get-directories":X[11]},"wasi:filesystem/types@0.2.3":{"[method]descriptor.append-via-stream":X[2],"[method]descriptor.get-type":X[3],"[method]descriptor.stat":X[4],"[method]descriptor.write-via-stream":X[1],"[resource-drop]descriptor":ci,"filesystem-error-code":X[5]},"wasi:io/error@0.2.3":{"[resource-drop]error":ai},"wasi:io/streams@0.2.3":{"[method]output-stream.blocking-flush":X[9],"[method]output-stream.blocking-write-and-flush":X[8],"[method]output-stream.check-write":X[6],"[method]output-stream.write":X[7],"[resource-drop]input-stream":oi,"[resource-drop]output-stream":ni},"wasi:random/random@0.2.3":{"get-random-bytes":X[10]}})),at=J.memory,ot=nt.cabi_import_realloc,({exports:_t}=yield P(yield i,{"":{$imports:X.$imports,0:dt,1:ft,10:jt,11:Bt,12:nt.random_get,13:nt.fd_write,14:nt.environ_get,15:nt.environ_sizes_get,16:nt.proc_exit,17:J["nomic-foundation:slang/cst#[dtor]terminal-kind-extensions"],18:J["nomic-foundation:slang/cst#[dtor]nonterminal-node"],19:J["nomic-foundation:slang/cst#[dtor]terminal-node"],2:gt,20:J["nomic-foundation:slang/cst#[dtor]cursor"],21:J["nomic-foundation:slang/cst#[dtor]cursor-iterator"],22:J["nomic-foundation:slang/cst#[dtor]ancestors-iterator"],23:J["nomic-foundation:slang/cst#[dtor]query"],24:J["nomic-foundation:slang/cst#[dtor]query-match-iterator"],25:J["nomic-foundation:slang/ast#[dtor]selectors"],26:J["nomic-foundation:slang/bindings#[dtor]binding-graph"],27:J["nomic-foundation:slang/bindings#[dtor]definition"],28:J["nomic-foundation:slang/bindings#[dtor]reference"],29:J["nomic-foundation:slang/bindings#[dtor]user-file-location"],3:wt,30:J["nomic-foundation:slang/bindings#[dtor]built-in-location"],31:J["nomic-foundation:slang/parser#[dtor]parser"],32:J["nomic-foundation:slang/parser#[dtor]parse-output"],33:J["nomic-foundation:slang/compilation#[dtor]internal-compilation-builder"],34:J["nomic-foundation:slang/compilation#[dtor]compilation-unit"],35:J["nomic-foundation:slang/compilation#[dtor]file"],36:J["nomic-foundation:slang/utils#[dtor]language-facts"],4:vt,5:Ft,6:Ut,7:Mt,8:Yt,9:Vt}})),Et=J["cabi_post_nomic-foundation:slang/cst#[method]cursor.children"],Tt=J["cabi_post_nomic-foundation:slang/bindings#[method]user-file-location.file-id"],St=J.cabi_realloc,kt=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.choice"],Rt=J["cabi_post_nomic-foundation:slang/cst#[method]query-match-iterator.next"],At=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.sequence"],Ct=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.repeated"],Lt=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.separated"],It=J["cabi_post_nomic-foundation:slang/bindings#[method]definition.references"],Kt=J["cabi_post_nomic-foundation:slang/compilation#[method]file.errors"],Nt=J["cabi_post_nomic-foundation:slang/utils#[static]language-facts.all-versions"],Dt=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-identifier"],Ot=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-trivia"],Pt=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-valid"],Gt=J["nomic-foundation:slang/cst#[method]nonterminal-node.id"],Wt=J["nomic-foundation:slang/cst#[method]nonterminal-node.kind"],zt=J["nomic-foundation:slang/cst#[method]nonterminal-node.text-length"],te=J["nomic-foundation:slang/cst#[method]nonterminal-node.children"],se=J["nomic-foundation:slang/cst#[method]nonterminal-node.descendants"],ie=J["nomic-foundation:slang/cst#[method]nonterminal-node.unparse"],ne=J["nomic-foundation:slang/cst#[method]nonterminal-node.to-json"],ce=J["nomic-foundation:slang/cst#[method]nonterminal-node.create-cursor"],le=J["nomic-foundation:slang/cst#[method]terminal-node.id"],he=J["nomic-foundation:slang/cst#[method]terminal-node.kind"],ue=J["nomic-foundation:slang/cst#[method]terminal-node.text-length"],de=J["nomic-foundation:slang/cst#[method]terminal-node.children"],pe=J["nomic-foundation:slang/cst#[method]terminal-node.descendants"],me=J["nomic-foundation:slang/cst#[method]terminal-node.unparse"],ye=J["nomic-foundation:slang/cst#[method]terminal-node.to-json"],fe=J["nomic-foundation:slang/cst#[method]cursor.reset"],ge=J["nomic-foundation:slang/cst#[method]cursor.complete"],we=J["nomic-foundation:slang/cst#[method]cursor.is-completed"],ve=J["nomic-foundation:slang/cst#[method]cursor.clone"],xe=J["nomic-foundation:slang/cst#[method]cursor.spawn"],be=J["nomic-foundation:slang/cst#[method]cursor.node"],_e=J["nomic-foundation:slang/cst#[method]cursor.label"],Ee=J["nomic-foundation:slang/cst#[method]cursor.text-offset"],Te=J["nomic-foundation:slang/cst#[method]cursor.text-range"],Se=J["nomic-foundation:slang/cst#[method]cursor.depth"],ke=J["nomic-foundation:slang/cst#[method]cursor.children"],Re=J["nomic-foundation:slang/cst#[method]cursor.descendants"],Ae=J["nomic-foundation:slang/cst#[method]cursor.remaining-nodes"],Ne=J["nomic-foundation:slang/cst#[method]cursor.ancestors"],De=J["nomic-foundation:slang/cst#[method]cursor.go-to-next"],Oe=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-non-descendant"],Pe=J["nomic-foundation:slang/cst#[method]cursor.go-to-previous"],qe=J["nomic-foundation:slang/cst#[method]cursor.go-to-parent"],Fe=J["nomic-foundation:slang/cst#[method]cursor.go-to-first-child"],Ue=J["nomic-foundation:slang/cst#[method]cursor.go-to-last-child"],Me=J["nomic-foundation:slang/cst#[method]cursor.go-to-nth-child"],Ye=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-sibling"],Ve=J["nomic-foundation:slang/cst#[method]cursor.go-to-previous-sibling"],je=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal"],Be=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kind"],He=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kinds"],$e=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal"],Qe=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kind"],Ge=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kinds"],Ze=J["nomic-foundation:slang/cst#[method]cursor.query"],tr=J["nomic-foundation:slang/cst#[method]cursor-iterator.next"],er=J["nomic-foundation:slang/cst#[method]ancestors-iterator.next"],rr=J["nomic-foundation:slang/cst#[static]query.create"],sr=J["nomic-foundation:slang/cst#[method]query-match-iterator.next"],cr=J["nomic-foundation:slang/ast#[static]selectors.sequence"],lr=J["nomic-foundation:slang/ast#[static]selectors.choice"],hr=J["nomic-foundation:slang/ast#[static]selectors.repeated"],ur=J["nomic-foundation:slang/ast#[static]selectors.separated"],gr=J["nomic-foundation:slang/bindings#[method]binding-graph.definition-at"],br=J["nomic-foundation:slang/bindings#[method]binding-graph.reference-at"],_r=J["nomic-foundation:slang/bindings#[method]definition.id"],Ar=J["nomic-foundation:slang/bindings#[method]definition.name-location"],Cr=J["nomic-foundation:slang/bindings#[method]definition.definiens-location"],Lr=J["nomic-foundation:slang/bindings#[method]definition.references"],Ir=J["nomic-foundation:slang/bindings#[method]reference.id"],Kr=J["nomic-foundation:slang/bindings#[method]reference.location"],Nr=J["nomic-foundation:slang/bindings#[method]reference.definitions"],Dr=J["nomic-foundation:slang/bindings#[method]user-file-location.file-id"],Or=J["nomic-foundation:slang/bindings#[method]user-file-location.cursor"],Yr=J["nomic-foundation:slang/parser#[static]parser.create"],Vr=J["nomic-foundation:slang/parser#[method]parser.language-version"],$r=J["nomic-foundation:slang/parser#[method]parser.parse-file-contents"],Qr=J["nomic-foundation:slang/parser#[method]parser.parse-nonterminal"],Gr=J["nomic-foundation:slang/parser#[method]parse-output.tree"],Wr=J["nomic-foundation:slang/parser#[method]parse-output.errors"],zr=J["nomic-foundation:slang/parser#[method]parse-output.is-valid"],Xr=J["nomic-foundation:slang/parser#[method]parse-output.create-tree-cursor"],es=J["nomic-foundation:slang/compilation#[static]internal-compilation-builder.create"],rs=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.add-file"],ss=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.resolve-import"],os=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.build"],cs=J["nomic-foundation:slang/compilation#[method]compilation-unit.language-version"],ds=J["nomic-foundation:slang/compilation#[method]compilation-unit.files"],ps=J["nomic-foundation:slang/compilation#[method]compilation-unit.file"],ms=J["nomic-foundation:slang/compilation#[method]compilation-unit.binding-graph"],ys=J["nomic-foundation:slang/compilation#[method]file.id"],fs=J["nomic-foundation:slang/compilation#[method]file.tree"],gs=J["nomic-foundation:slang/compilation#[method]file.errors"],ws=J["nomic-foundation:slang/compilation#[method]file.create-tree-cursor"],vs=J["nomic-foundation:slang/utils#[static]language-facts.all-versions"],xs=J["nomic-foundation:slang/utils#[static]language-facts.earliest-version"],bs=J["nomic-foundation:slang/utils#[static]language-facts.latest-version"],_s=J["nomic-foundation:slang/utils#[static]language-facts.infer-language-versions"]}();const n=function r(n){try{let a;do{({value:n,done:a}=i.next(n))}while(!(n instanceof Promise||a));if(a){if(!e)return n;e(n)}t||(t=new Promise(((t,r)=>(e=t,s=r)))),n.then(r,s)}catch(t){if(!s)throw t;s(t)}}(null);return t||n})();await li;const hi={Selectors:dr},ui={AncestorsIterator:nr,Cursor:Le,CursorIterator:ir,EdgeLabel:{Root:"Root",Unrecognized:"Unrecognized",Missing:"Missing",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",AtKeyword:"AtKeyword",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",LayoutKeyword:"LayoutKeyword",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",Specifiers:"Specifiers",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"},NodeType:u,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",ConditionalExpression:"ConditionalExpression",ConstantDefinition:"ConstantDefinition",ConstructorAttribute:"ConstructorAttribute",ConstructorAttributes:"ConstructorAttributes",ConstructorDefinition:"ConstructorDefinition",ContinueStatement:"ContinueStatement",ContractDefinition:"ContractDefinition",ContractMember:"ContractMember",ContractMembers:"ContractMembers",ContractSpecifier:"ContractSpecifier",ContractSpecifiers:"ContractSpecifiers",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",InequalityExpression:"InequalityExpression",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",StorageLayoutSpecifier:"StorageLayoutSpecifier",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",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",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:Xt,Query:ar,QueryMatchIterator:or,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",AtKeyword:"AtKeyword",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",LayoutKeyword:"LayoutKeyword",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",SuperKeyword:"SuperKeyword",SupportsKeyword:"SupportsKeyword",SwitchKeyword:"SwitchKeyword",SzaboKeyword:"SzaboKeyword",ThisKeyword:"ThisKeyword",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",YulAfterKeyword:"YulAfterKeyword",YulAliasKeyword:"YulAliasKeyword",YulAnonymousKeyword:"YulAnonymousKeyword",YulApplyKeyword:"YulApplyKeyword",YulAsKeyword:"YulAsKeyword",YulAssemblyKeyword:"YulAssemblyKeyword",YulAutoKeyword:"YulAutoKeyword",YulBoolKeyword:"YulBoolKeyword",YulBreakKeyword:"YulBreakKeyword",YulBytesKeyword:"YulBytesKeyword",YulCallDataKeyword:"YulCallDataKeyword",YulCaseKeyword:"YulCaseKeyword",YulCatchKeyword:"YulCatchKeyword",YulConstantKeyword:"YulConstantKeyword",YulConstructorKeyword:"YulConstructorKeyword",YulContinueKeyword:"YulContinueKeyword",YulContractKeyword:"YulContractKeyword",YulCopyOfKeyword:"YulCopyOfKeyword",YulDaysKeyword:"YulDaysKeyword",YulDecimalLiteral:"YulDecimalLiteral",YulDefaultKeyword:"YulDefaultKeyword",YulDefineKeyword:"YulDefineKeyword",YulDeleteKeyword:"YulDeleteKeyword",YulDoKeyword:"YulDoKeyword",YulElseKeyword:"YulElseKeyword",YulEmitKeyword:"YulEmitKeyword",YulEnumKeyword:"YulEnumKeyword",YulEtherKeyword:"YulEtherKeyword",YulEventKeyword:"YulEventKeyword",YulExternalKeyword:"YulExternalKeyword",YulFallbackKeyword:"YulFallbackKeyword",YulFalseKeyword:"YulFalseKeyword",YulFinalKeyword:"YulFinalKeyword",YulFinneyKeyword:"YulFinneyKeyword",YulFixedKeyword:"YulFixedKeyword",YulForKeyword:"YulForKeyword",YulFunctionKeyword:"YulFunctionKeyword",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",YulIsKeyword:"YulIsKeyword",YulLeaveKeyword:"YulLeaveKeyword",YulLetKeyword:"YulLetKeyword",YulLibraryKeyword:"YulLibraryKeyword",YulMacroKeyword:"YulMacroKeyword",YulMappingKeyword:"YulMappingKeyword",YulMatchKeyword:"YulMatchKeyword",YulMemoryKeyword:"YulMemoryKeyword",YulMinutesKeyword:"YulMinutesKeyword",YulModifierKeyword:"YulModifierKeyword",YulMutableKeyword:"YulMutableKeyword",YulNewKeyword:"YulNewKeyword",YulNullKeyword:"YulNullKeyword",YulOfKeyword:"YulOfKeyword",YulOverrideKeyword:"YulOverrideKeyword",YulPartialKeyword:"YulPartialKeyword",YulPayableKeyword:"YulPayableKeyword",YulPragmaKeyword:"YulPragmaKeyword",YulPrivateKeyword:"YulPrivateKeyword",YulPromiseKeyword:"YulPromiseKeyword",YulPublicKeyword:"YulPublicKeyword",YulPureKeyword:"YulPureKeyword",YulReceiveKeyword:"YulReceiveKeyword",YulReferenceKeyword:"YulReferenceKeyword",YulRelocatableKeyword:"YulRelocatableKeyword",YulReturnsKeyword:"YulReturnsKeyword",YulSealedKeyword:"YulSealedKeyword",YulSecondsKeyword:"YulSecondsKeyword",YulSizeOfKeyword:"YulSizeOfKeyword",YulStaticKeyword:"YulStaticKeyword",YulStorageKeyword:"YulStorageKeyword",YulStringKeyword:"YulStringKeyword",YulStructKeyword:"YulStructKeyword",YulSuperKeyword:"YulSuperKeyword",YulSupportsKeyword:"YulSupportsKeyword",YulSwitchKeyword:"YulSwitchKeyword",YulSzaboKeyword:"YulSzaboKeyword",YulThisKeyword:"YulThisKeyword",YulThrowKeyword:"YulThrowKeyword",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",YulYearsKeyword:"YulYearsKeyword"},TerminalKindExtensions:Ht,TerminalNode:Ce},di={ParseOutput:Jr,Parser:jr},pi={LanguageFacts:Ts};s()}catch(mi){s(mi)}}),1)},1410:(t,e,r)=>{r.d(e,{A:()=>a});const s="Global",i="Common",n="JavaScript",a={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:n,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."},experimentalOperatorPosition:{category:n,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},compiler:{category:"Solidity",type:"string",description:"The Solidity compiler version to help us avoid critical errors in format for the wrong version."}}},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)}}))},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)}}))},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)}},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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}},1763:(t,e,r)=>{const s=r(560);t.exports=(t,e)=>s(t,e,!0)},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)}}))},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)}}))},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){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(o))return c.minor&&!c.patch?"minor":"patch"}const h=l?"pre":"";return r.major!==i.major?h+"major":r.minor!==i.minor?h+"minor":r.patch!==i.patch?h+"patch":"prerelease"}},1901:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{K3:()=>i.K3,Rj:()=>i.Rj,Wp:()=>i.Wp,tQ:()=>i.tQ});var i=r(1406),n=t([i]);i=(n.then?(await n)():n)[0],s()}catch(t){s(t)}}))},2038:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(4675),n=r(4796),a=r(876),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)}}))},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)}}))},2054:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>p});var i=r(4675),n=r(4209),a=r(142),o=r(6563),c=r(801),l=r(8926),h=t([i,n,a,c,l]);[i,n,a,c,l]=h.then?(await h)():h;const u=(0,a.H)(["%"]),d=(0,n.WV)((0,o.n)([i.q3.ShiftExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class p{constructor(t,e){this.kind=i.q3.AdditiveExpression;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.leftOperand=u(this.leftOperand),this.rightOperand=u(this.rightOperand)}print(t,e,r){return d(this,t,e,r)}}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)}}))},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)}}))},2101:(t,e,r)=>{function s(t){console.warn(`\r[prettier-solidity] ${t}`)}r.d(e,{o:()=>s})},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}`)}}},2120:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(4675),n=r(4796),a=r(876),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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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")&&this.items.length>1?{firstSeparator:r.bracketSpacing?u:d,separator:[",",u]}:{firstSeparator:r.bracketSpacing?" ":"",separator:", "})}}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)}}))},2416:(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(4796),c=r(876),l=t([i]);function h({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:l}){if((null==r?void 0:r.kind)!==i.q3.StructDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(l));return(null==e?void 0:e.kind)===i.q3.StructMembers&&"}"===h?((0,c.A)(e,l),!0):(null==s?void 0:s.kind)===i.q3.StructMembers&&((0,o.A)(s,l),!0)}i=(l.then?(await l)():l)[0],s()}catch(u){s(u)}}))},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=Symbol("Slang.VariableDeclarationStatement.variables");return[d([t.call(e,"variableType"),p([this.storageLocation?[y,t.call(e,"storageLocation")]:""," ",t.call(e,"name")])],{id:r}),m(t.call(e,"value"),{groupId:r}),";"]}}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)}}))},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)}}))},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}},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)}}))},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)}}))},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)}}))},2680:(t,e,r)=>{r.d(e,{A:()=>Vs});var s={};r.r(s),r.d(s,{addition:()=>it,assignment:()=>M,bit:()=>rt,equality:()=>tt,exponentiation:()=>ot,inequality:()=>et,logical:()=>Z,multiplication:()=>nt,shift:()=>st});var i={};r.r(i),r.d(i,{ArrayTypeName:()=>n,AssemblyAssignment:()=>c,AssemblyBlock:()=>b,AssemblyCall:()=>_,AssemblyCase:()=>E,AssemblyFor:()=>S,AssemblyFunctionDefinition:()=>R,AssemblyIf:()=>A,AssemblyLocalDefinition:()=>L,AssemblyMemberAccess:()=>I,AssemblyStackAssignment:()=>N,AssemblySwitch:()=>P,BinaryOperation:()=>ct,Block:()=>ut,BooleanLiteral:()=>dt,Break:()=>pt,BreakStatement:()=>mt,CatchClause:()=>ft,Conditional:()=>Et,Continue:()=>Tt,ContinueStatement:()=>St,ContractDefinition:()=>Nt,CustomErrorDefinition:()=>Ot,DecimalNumber:()=>Pt,DoWhileStatement:()=>Yt,ElementaryTypeName:()=>jt,EmitStatement:()=>Bt,EnumDefinition:()=>Qt,EnumValue:()=>Gt,EventDefinition:()=>zt,ExpressionStatement:()=>Jt,FileLevelConstant:()=>Zt,ForStatement:()=>oe,FunctionCall:()=>pe,FunctionDefinition:()=>Le,FunctionTypeName:()=>qe,HexLiteral:()=>Ve,HexNumber:()=>je,Identifier:()=>Be,IfStatement:()=>ze,ImportDirective:()=>er,IndexAccess:()=>or,IndexRangeAccess:()=>cr,InheritanceSpecifier:()=>hr,InlineAssemblyStatement:()=>ur,LabelDefinition:()=>mr,Mapping:()=>fr,MemberAccess:()=>br,ModifierDefinition:()=>Lr,ModifierInvocation:()=>Kr,NameValueExpression:()=>Nr,NameValueList:()=>Pr,NewExpression:()=>qr,NumberLiteral:()=>Fr,PragmaDirective:()=>Ur,ReturnStatement:()=>Br,RevertStatement:()=>Hr,SourceUnit:()=>Qr,StateVariableDeclaration:()=>Jr,StringLiteral:()=>es,StructDefinition:()=>ss,ThrowStatement:()=>is,TryStatement:()=>os,TupleExpression:()=>hs,TypeDefinition:()=>us,UnaryOperation:()=>ds,UncheckedStatement:()=>ms,UserDefinedTypeName:()=>ys,UsingForDeclaration:()=>ws,VariableDeclaration:()=>Ls,VariableDeclarationStatement:()=>Ns,WhileStatement:()=>Fs});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")]},{group:l,indent:h,join:u,line:d,softline:p,hardline:m}=a.doc.builders,{isNextLineEmpty:y}=a.util,f=(t,e,r,s=()=>!0)=>t.comments?u(d,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)):"";function g(t,e,r,s){const i=[];return t.each(((t,e)=>{const n=t.getValue(),a=n.type;0!==i.length&&"LabelDefinition"!==a&&i.push(m),i.push(s(t)),!t.isLast&&y(r.originalText,r.locEnd(n)+1)&&i.push(m)}),e),i}const w=(t,{firstSeparator:e=p,lastSeparator:r=e,grouped:s=!0}={})=>{const i=[h([e,t]),r];return s?l(i):i},v=(t,{firstSeparator:e,separator:r=[",",d],lastSeparator:s,grouped:i}={})=>w(u(r,t),{firstSeparator:e,lastSeparator:s,grouped:i}),{hardline:x}=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:x,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,"(",v(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,"(",v(e.map(r,"arguments")),")",0===t.returnArguments.length?" ":w(["->",v(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,L={print:({node:t,path:e,print:r})=>{const s=["let",v(e.map(r,"names"),{firstSeparator:C})];return null!==t.expression&&(s.push(":= "),s.push(e.call(r,"expression"))),s}},I={print:({path:t,print:e})=>[t.call(e,"expression"),".",t.call(e,"memberName")]},{hardline:K}=a.doc.builders,N={print:({node:t,path:e,print:r})=>[e.call(r,"expression"),K,"=: ",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,line:F,indent:U}=a.doc.builders,M={match:t=>["=","|=","^=","&=","<<=",">>=","+=","-=","*=","/=","%="].includes(t),print:(t,e,r)=>[e.call(r,"left")," ",t.operator,"BinaryOperation"===t.right.type?q(U([F,e.call(r,"right")])):[" ",e.call(r,"right")]]},{group:Y,line:V}=a.doc.builders,j=(t,e,r,s)=>{const i="end"===s.experimentalOperatorPosition?[" ",t.operator,V,e.call(r,"right")]:[V,t.operator," ",e.call(r,"right")],{parent:n}=e;return"BinaryOperation"===t.left.type||"BinaryOperation"===n.type&&!M.match(n.operator)?i:Y(i)},B=(t,e)=>(r,s,i,n)=>{const a=t(s),o=e(s,n);return a([s.call(i,"left"),o(j(r,s,i,n))])},H=({type:t,operator:e},r)=>"BinaryOperation"!==t||r.some((t=>t.match(e))),{group:$}=a.doc.builders,Q=t=>e=>r=>{const{parent:s}=e;return H(s,t)?$(r):r},{indent:G}=a.doc.builders,W=["ReturnStatement","IfStatement","ForStatement","WhileStatement"],z=t=>e=>r=>{for(let s=0,{node:i}=e;;s+=1){const n=e.getParentNode(s);if(W.includes(n.type))return r;if(H(n,t))return G(r);if(i===n.right)return r;i=n}},X=t=>B(Q(t),z(t)),{indent:J}=a.doc.builders,Z={match:t=>["&&","||"].includes(t),print:B(Q([]),((t,e)=>r=>{for(let s=0,{node:i}=t;;s+=1){const n=t.getParentNode(s);if(W.includes(n.type))return r;if(e.experimentalTernaries&&"Conditional"===n.type&&n.condition===i)return r;if(H(n,[]))return J(r);if(i===n.right)return r;i=n}}))},tt={match:t=>["==","!="].includes(t),print:X([Z])},et={match:t=>["<",">","<=",">="].includes(t),print:X([Z,tt])},rt={match:t=>["&","|","^"].includes(t),print:X([et,tt,Z])},st={match:t=>["<<",">>"].includes(t),print:X([rt,et,tt,Z])},it={match:t=>["+","-"].includes(t),print:X([st,rt,et,tt,Z])},nt={match:t=>["*","/","%"].includes(t),print:X([it,st,rt,et,tt,Z])},{group:at}=a.doc.builders,ot={match:t=>"**"===t,print:B((()=>t=>at(t)),z([nt,it,st,rt,et,tt,Z]))},ct={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:lt,indent:ht}=a.doc.builders,ut={print:({node:t,options:e,path:r,print:s})=>0!==t.statements.length||t.comments?["{",ht([lt,g(r,"statements",e,s),f(t,r,e)]),lt,"}"]:"{}"},dt={print:({node:t})=>t.value?"true":"false"},pt={print:()=>"break"},mt={print:()=>"break;"},yt=(t,e,r)=>t.parameters?[t.kind||"","(",v(e.map(r,"parameters")),") "]:"",ft={print:({node:t,path:e,print:r})=>["catch ",yt(t,e,r),e.call(r,"body")]},{group:gt,hardline:wt,ifBreak:vt,indent:xt,line:bt,softline:_t}=a.doc.builders,Et={print:({node:t,path:e,print:r,options:s})=>s.experimentalTernaries?((t,e,r,s)=>{const{parent:i}=e,n="Conditional"===i.type,a=n&&i.trueExpression===t,o="Conditional"===t.falseExpression.type,c=e.call(r,"condition"),l=gt(["TupleExpression"===t.condition.type?c:vt(["(",w(c),")"],c)," ?"]),h=xt([a?wt:bt,e.call(r,"trueExpression")]),u=gt([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?wt:bt,":",o?[" ",p]:vt([d,xt(p)],[" ",p],{groupId:u.id})],y=gt([u,m]);return"VariableDeclarationStatement"===i.type?xt([_t,y]):y})(t,e,r,s):((t,e)=>gt([t.call(e,"condition"),xt(["Conditional"===t.parent.type?wt:bt,"? ",t.call(e,"trueExpression"),bt,": ",t.call(e,"falseExpression")])]))(e,r)},Tt={print:()=>"continue"},St={print:()=>"continue;"},{group:kt,hardline:Rt,ifBreak:At,line:Ct,softline:Lt}=a.doc.builders,It=(t,e,r)=>{const s=[];if(t.baseContracts.length>0&&s.push(["is",v(e.map(r,"baseContracts"),{firstSeparator:Ct})]),t.storageLayout&&s.push(["layout at",w(e.call(r,"storageLayout"),{firstSeparator:Ct})]),0===s.length)return Ct;if(1===s.length)return[" ",s];const i=Symbol("ContractSpecifiers.inheritance");return v([kt(s[0],{id:i}),s[1]],{firstSeparator:Ct,separator:At("",Lt,{groupId:i})})},Kt=(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:Rt,grouped:!1}):""},Nt={print:({node:t,options:e,path:r,print:s})=>[kt(["abstract"===t.kind?"abstract contract":t.kind," ",t.name,It(t,r,s),"{"]),Kt(t,r,e,s),"}"]},Dt=(t,e,r)=>t.parameters?.length>0?v(e.map(r,"parameters")):"",Ot={print:({node:t,path:e,print:r})=>["error ",t.name,"(",Dt(t,e,r),");"]},Pt={print:({node:t})=>t.value},{group:qt,indent:Ft,line:Ut}=a.doc.builders,Mt=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")," "]:qt([Ft([Ut,e.call(r,"body")]),Ut]),Yt={print:({node:t,path:e,print:r})=>["do",Mt(t,e,r),"while (",w(e.call(r,"condition")),");"]},Vt=t=>t.stateMutability?.length>0?[" ",t.stateMutability]:"",jt={print:({node:t})=>[t.name,Vt(t)]},Bt={print:({path:t,print:e})=>["emit ",t.call(e,"eventCall"),";"]},{group:Ht,hardline:$t}=a.doc.builders,Qt={print:({node:t,path:e,print:r})=>Ht(["enum ",t.name," {",v(e.map(r,"members"),{firstSeparator:$t}),"}"])},Gt={print:({node:t})=>t.name},Wt=(t,e,r)=>t.parameters?.length>0?v(e.map(r,"parameters")):"",zt={print:({node:t,path:e,print:r})=>["event ",t.name,"(",Wt(t,e,r),")",t.isAnonymous?" anonymous":"",";"]},{hardline:Xt}=a.doc.builders,Jt={print:({node:t,options:e,path:r,print:s})=>{const i=[],{parent:n}=r;if("IfStatement"===n.type&&t.comments?.length){const s=f(t,r,e);s?.length&&(i.push(s),i.push(Xt))}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:te,indent:ee,line:re}=a.doc.builders,se=(t,e,r)=>t.initExpression?e.call(r,"initExpression"):"",ie=(t,e,r)=>t.conditionExpression?e.call(r,"conditionExpression"):"",ne=(t,e,r)=>t.loopExpression.expression?e.call(r,"loopExpression"):"",ae=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:te(ee([re,e.call(r,"body")])),oe={print:({node:t,path:e,print:r})=>["for (",v([se(t,e,r),ie(t,e,r),ne(t,e,r)],{separator:t.initExpression||t.conditionExpression||t.loopExpression.expression?[";",re]:";"}),")",ae(t,e,r)]},{group:ce,indentIfBreak:le,label:he,line:ue,softline:de}=a.doc.builders,pe={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["{",v(t.map(e,"arguments").map(((t,e)=>[s[e],": ",t])),{firstSeparator:r.bracketSpacing?ue:de,lastSeparator:[r.bracketSpacing?ue:de,"})"]})]})(e,r,s):((t,e)=>v(t.map(e,"arguments"),{lastSeparator:[de,")"]}))(e,r)),"MemberAccessChain"===i.label?(i=ce(i.contents,{id:Symbol("FunctionCall.expression")}),n=le(n,{groupId:i.id}),he("MemberAccessChain",[i,"(",n])):[i,"(",n].flat()}},{dedent:me,group:ye,indent:fe,join:ge,line:we}=a.doc.builders,{getNextNonSpaceNonCommentCharacter:ve}=a.util,xe=(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)],be=(t,e,r,s,i)=>{if(e[t]?.length>0)return v(r.map(s,t),{grouped:!1});if(e.comments?.length>0){const t=f(e,r,i,(t=>")"===ve(i.originalText,i.locEnd(t))));return t.length>0?w(t):""}return""},_e=t=>t.visibility&&"default"!==t.visibility?[we,t.visibility]:"",Ee=t=>t.isVirtual?[we,"virtual"]:"",Te=(t,e,r)=>t.override?0===t.override.length?[we,"override"]:[we,"override(",v(e.map(r,"override")),")"]:"",Se=t=>t.stateMutability?[we,t.stateMutability]:"",ke=(t,e,r)=>t.modifiers.length>0?[we,ge(we,e.map(r,"modifiers"))]:"",Re=(t,e,r,s)=>t.returnParameters?[we,"returns (",ye(be("returnParameters",t,e,r,s)),")"]:"",Ae=t=>t.body?me(we):";",Ce=(t,e,r)=>t.body?e.call(r,"body"):"",Le={print:({node:t,path:e,print:r,options:s})=>[ye([xe(t,s),"(",be("parameters",t,e,r,s),")",fe(ye([f(t,e,s),_e(t),Se(t),Ee(t),Te(t,e,r),ke(t,e,r),Re(t,e,r,s),Ae(t)]))]),Ce(t,e,r)]},{group:Ie,indent:Ke,line:Ne}=a.doc.builders,De=(t,e,r)=>t.returnTypes.length>0?[Ne,"returns (",v(e.map(r,"returnTypes")),")"]:"",Oe=t=>t.visibility&&"default"!==t.visibility?[Ne,t.visibility]:"",Pe=t=>t.stateMutability&&"default"!==t.stateMutability?[Ne,t.stateMutability]:"",qe={print:({node:t,path:e,print:r})=>Ie(["function(",v(e.map(r,"parameterTypes"),{grouped:!1}),")",Ke(Ie([Oe(t),Pe(t),De(t,e,r)]))])};var Fe=r(7638);function Ue(t,e){const r={quote:'"',regex:/"/g},s={quote:"'",regex:/'/g},i=e.singleQuote?s:r,n=i===s?r:s;let o=!1;(t.includes(i.quote)||t.includes(n.quote))&&(o=(t.match(i.regex)||[]).length>(t.match(n.regex)||[]).length);const c=o?n.quote:i.quote;return a.util.makeString(t,c)}const{join:Me,hardline:Ye}=a.doc.builders,Ve={print:({node:t,options:e})=>{const r=t.parts.map((t=>`hex${Ue(t,e)}`));return Me(Ye,r)}},je={print:({node:t})=>t.value},Be={print:({node:t})=>t.name},{group:He,hardline:$e,indent:Qe,line:Ge}=a.doc.builders,We=(t,e,r)=>"Block"===t.falseBody.type||"IfStatement"===t.falseBody.type?[" ",e.call(r,"falseBody")]:He(Qe([Ge,e.call(r,"falseBody")])),ze={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 He(Qe([s?$e:Ge,e.call(r,"trueBody")]))})(t,r,s)),i.length&&t.falseBody&&(n.push($e),n.push(f(t,r,e))),n.push(((t,e,r,s)=>t.falseBody?["Block"===t.trueBody.type&&0===s.length?" ":$e,"else",We(t,e,r)]:"")(t,r,s,i)),n}};var Xe=r(6170);const{group:Je,line:Ze,softline:tr}=a.doc.builders,er={print:({node:t,options:e})=>{const r=Ue(t.path,e);let s;if(t.unitAlias)s=e.originalText.slice(e.locStart(t),e.locStart(t.pathLiteral)).includes("*")?["* as ",t.unitAlias," from ",r]:[r," as ",t.unitAlias];else if(t.symbolAliases){const i=Xe(e.compiler),n=t.symbolAliases.map((([t,e])=>e?`${t} as ${e}`:t));let a,o;i&&Fe(i,">=0.7.4")&&n.length>1?(a=e.bracketSpacing?Ze:tr,o=[",",Ze]):(a=e.bracketSpacing?" ":"",o=", "),s=["{",v(n,{firstSeparator:a,separator:o}),"} from ",r]}else s=r;return Je(["import ",s,";"])}},{group:rr,indent:sr,indentIfBreak:ir,label:nr,softline:ar}=a.doc.builders,or={print:({path:t,print:e})=>{let r=t.call(e,"base"),s=rr([sr([ar,t.call(e,"index")]),ar,"]"]);return"MemberAccessChain"===r.label?(r=rr(r.contents,{id:Symbol("IndexAccess.base")}),s=ir(s,{groupId:r.id}),nr("MemberAccessChain",[r,"[",s])):[r,"[",s].flat()}},cr={print:({node:t,path:e,print:r})=>[e.call(r,"base"),"[",t.indexStart?e.call(r,"indexStart"):"",":",t.indexEnd?e.call(r,"indexEnd"):"","]"]},lr=(t,e,r)=>t.arguments?.length?["(",v(e.map(r,"arguments")),")"]:"",hr={print:({node:t,path:e,print:r})=>[e.call(r,"baseName"),lr(t,e,r)]},ur={print:({node:t,path:e,print:r,options:s})=>["assembly ",t.language?`${Ue(t.language,s)} `:"",t.flags?.length>0?["(",v(t.flags.map((t=>Ue(t,s)))),") "]:"",e.call(r,"body")]},{dedent:dr,line:pr}=a.doc.builders,mr={print:({node:t})=>[dr(pr),t.name,":"]},yr=(t,e,r,s)=>e[`${t}Name`]?[r.call(s,`${t}Type`)," ",r.call(s,`${t}Name`)]:r.call(s,`${t}Type`),fr={print:({node:t,path:e,print:r})=>["mapping(",yr("key",t,e,r)," => ",yr("value",t,e,r),")"]},{group:gr,indent:wr,label:vr,softline:xr}=a.doc.builders,br={print:({node:t,path:e,print:r})=>{let s=e.call(r,"expression");Array.isArray(s)&&(s=s.flat());const i=[s,vr("separator",[xr,"."]),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=gr(wr(t.slice(e)));return vr("MemberAccessChain",gr([r,s]))})(i):i}},{dedent:_r,group:Er,indent:Tr,line:Sr}=a.doc.builders,kr=(t,e,r)=>t.parameters?.length>0?["(",v(e.map(r,"parameters"),{separator:[",",Sr]}),")"]:"()",Rr=t=>t.isVirtual?[Sr,"virtual"]:"",Ar=(t,e,r)=>t.override?0===t.override.length?[Sr,"override"]:[Sr,"override(",v(e.map(r,"override")),")"]:"",Cr=(t,e,r)=>t.body?t.isVirtual?Er(e.call(r,"body")):[e.call(r,"body")]:";",Lr={print:({node:t,path:e,print:r})=>["modifier ",t.name,kr(t,e,r),Er(Tr([Rr(t),Ar(t,e,r),t.body?_r(Sr):""])),Cr(t,e,r)]},Ir=(t,e,r,s)=>t.arguments?t.arguments.length>0?["(",v(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,Ir(t,e,r,s)]},Nr={print:({path:t,print:e})=>[t.call(e,"expression"),"{",t.call(e,"arguments"),"}"]},{line:Dr,softline:Or}=a.doc.builders,Pr={print:({node:t,path:e,print:r,options:s})=>v(e.map(r,"arguments").map(((e,r)=>[t.names[r],": ",e])),{firstSeparator:s.bracketSpacing?Dr:Or})},qr={print:({path:t,print:e})=>["new ",t.call(e,"typeName")]},Fr={print:({node:t})=>t.subdenomination?[t.number," ",t.subdenomination]:t.number},Ur={print:({node:t})=>["pragma ",t.name," ",t.value,";"]},{group:Mr,indent:Yr,line:Vr}=a.doc.builders,jr=(t,e,r,s)=>t.expression?"TupleExpression"===t.expression.type||s.experimentalTernaries&&"Conditional"===t.expression.type?[" ",e.call(r,"expression")]:Mr(Yr([Vr,e.call(r,"expression")])):"",Br={print:({node:t,path:e,print:r,options:s})=>["return",jr(t,e,r,s),";"]},Hr={print:({path:t,print:e})=>["revert ",t.call(e,"revertCall"),";"]},{line:$r}=a.doc.builders,Qr={print:({options:t,path:e,print:r})=>[g(e,"children",t,r),t.parentParser?"":$r]},{group:Gr,indent:Wr,line:zr}=a.doc.builders,Xr=(t,e,r)=>t.initialValue?"TupleExpression"===t.initialValue.type?[" = ",e.call(r,"initialValue")]:Gr([" =",Wr([zr,e.call(r,"initialValue")])]):"",Jr={print:({node:t,path:e,print:r})=>[...e.map(r,"variables"),Xr(t,e,r),";"]},{join:Zr,hardline:ts}=a.doc.builders,es={print:({node:t,options:e})=>{const r=t.parts.map(((r,s)=>(t.isUnicode[s]?"unicode":"")+Ue(r,e)));return Zr(ts,r)}},{hardline:rs}=a.doc.builders,ss={print:({node:t,path:e,print:r})=>["struct ",t.name," {",t.members.length>0?v(e.map(r,"members"),{firstSeparator:rs,separator:[";",rs],lastSeparator:[";",rs]}):"","}"]},is={print:()=>"throw;"},{join:ns,line:as}=a.doc.builders,os={print:({node:t,path:e,print:r})=>{let s=["try",w(e.call(r,"expression"),{firstSeparator:as})];const i=((t,e,r)=>t.returnParameters?["returns (",v(e.map(r,"returnParameters")),")"]:"")(t,e,r);return i&&(s=s.concat([i," "])),s=s.concat([e.call(r,"body")," ",ns(" ",e.map(r,"catchClauses"))]),s}},{group:cs}=a.doc.builders,ls=(t,e,r)=>1===t.components?.length&&"BinaryOperation"===t.components[0].type?e.map(r,"components"):v(e.map(r,"components")),hs={print:({node:t,path:e,print:r})=>cs([t.isArray?"[":"(",ls(t,e,r),t.isArray?"]":")"])},us={print:({node:t})=>["type ",t.name," is ",t.definition.name,";"]},ds={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:ps}=a.doc.builders,ms={print:({path:t,print:e})=>ps(["unchecked ",t.call(e,"block")])},ys={print:({node:t})=>t.namePath},{line:fs,softline:gs}=a.doc.builders,ws={print:({node:t,path:e,print:r,options:s})=>["using ",t.functions?.length?["{",v(t.functions.map(((e,r)=>t.operators[r]?[e," as ",t.operators[r]]:e)),{firstSeparator:s.bracketSpacing?fs:gs}),"}"]:t.libraryName," for ",t.typeName?e.call(r,"typeName"):"*",t.isGlobal?" global;":";"]},{group:vs,indent:xs,line:bs}=a.doc.builders,_s=t=>t.isIndexed?" indexed":"",Es=t=>t.visibility&&"default"!==t.visibility?[bs,t.visibility]:"",Ts=t=>t.isDeclaredConst?" constant":"",Ss=t=>t.storageLocation&&"default"!==t.visibility?[bs,t.storageLocation]:"",ks=t=>t.isImmutable?" immutable":"",Rs=t=>t.isTransient?" transient":"",As=(t,e,r)=>t.override?0===t.override.length?[bs,"override"]:[bs,"override(",v(e.map(r,"override")),")"]:"",Cs=t=>t.name?[" ",t.name]:"",Ls={print:({node:t,path:e,print:r})=>t.typeName?vs([e.call(r,"typeName"),xs([_s(t),Es(t),Ts(t),Ss(t),ks(t),Rs(t),As(t,e,r),Cs(t)])]):t.name},{group:Is,indentIfBreak:Ks}=a.doc.builders,Ns={print:({node:t,path:e,print:r})=>{const s=0===t.variables.filter((t=>t?.typeName)).length,i=Is([s?"var ":"",(n=e.map(r,"variables"),a=t.variables.length>1||s,a?["(",v(n),")"]:n)],{id:Symbol("VariableDeclarationStatement.variables")});var n,a;const o=((t,e,r)=>t.initialValue?[" = ",e.call(r,"initialValue")]:"")(t,e,r);return Is([i,Ks(o,{groupId:i.id}),t.omitSemicolon?"":";"])}},{group:Ds,indent:Os,line:Ps}=a.doc.builders,qs=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:Ds(Os([Ps,e.call(r,"body")])),Fs={print:({node:t,path:e,print:r})=>["while (",w(e.call(r,"condition")),")",qs(t,e,r)]};var Us=r(2101);const Ms=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)}}}))},Ys=function(){let t;return()=>(void 0===t&&((0,Us.o)("The 'antlr' parser has been deprecated, please use 'slang' instead."),t=!0),t)}(),Vs=function(t,e,r){Ys();const s=t.getValue();if(null===s)return"";if(!(s.type in i))throw new Error(`Unknown type: ${JSON.stringify(s.type)}`);return function(t){return t?.comments?.length>0&&t.comments.some((t=>"prettier-ignore"===t.value.trim()))}(s)?(Ms(t),e.originalText.slice(e.locStart(s),e.locEnd(s)+1)):i[s.type].print({node:s,options:e,path:t,print:r})}},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)}}))},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)}}))},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)}}))},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(5451),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),this.specifiers=new l.o(t.specifiers,e),this.members=new h.I(t.members,e),s=(0,o.D5)(s,[this.specifiers,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{variant:t}of this.members.items)t.kind===a.q3.FunctionDefinition&&t.name.variant.value!==this.name.value&&t.cleanModifierInvocationArguments()}print(t,e){return[d([this.abstractKeyword?"abstract ":"","contract ",t.call(e,"name"),t.call(e,"specifiers"),this.specifiers.items.length>0?"":p,"{"]),t.call(e,"members"),"}"]}}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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},2938:(t,e,r)=>{const s=r(3908);t.exports=(t,e)=>new s(t,e).major},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){var i;const a=null===(i=t.expression)||void 0===i?void 0:i.variant;return a?a.kind===n.q3.TupleExpression||s.experimentalTernaries&&a.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)}}))},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)}}))},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}}},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)}}))},3070:(t,e,r)=>{r.a(t,(async(t,e)=>{try{var s=r(4675),i=t([s]);s=(i.then?(await i)():i)[0],e()}catch(t){e(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)}}))},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({variant:t},{variant:e}){const r="string"==typeof t,s="string"==typeof e;if(r&&!s)return-1;if(s&&!r)return 1;if(r&&s){if(a.has(t))return-1;if(a.has(e))return 1;if(o.has(t))return-1;if(o.has(e))return 1}if(!r&&!s){if(t.kind===i.q3.OverrideSpecifier&&e.kind===i.q3.ModifierInvocation)return-1;if(e.kind===i.q3.OverrideSpecifier&&t.kind===i.q3.ModifierInvocation)return 1}return 0}s()}catch(l){s(l)}}))},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)}}))},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=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,i={};((e,r)=>{for(var s in r)t(e,s,{get:r[s],enumerable:!0})})(i,{ParserError:()=>De,default:()=>Ue,parse:()=>Pe,tokenize:()=>Oe,visit:()=>qe});var n={92:()=>{}},a={};function o(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var c={};(()=>{o.d(c,{dx:()=>W,q2:()=>At,FO:()=>Ee,xf:()=>ke,Gy:()=>Le,s4:()=>Nt,c7:()=>De,_7:()=>ce,tx:()=>_e,gp:()=>ve,cK:()=>Ct,zs:()=>ge,AV:()=>ke,Xp:()=>v,VS:()=>x,ul:()=>G,hW:()=>Ft,x1:()=>zt,z5:()=>ee,oN:()=>de,TB:()=>pe,u1:()=>me,_b:()=>Pe,$F:()=>se,_T:()=>Ue,db:()=>ie,Zx:()=>te,_x:()=>Pt,r8:()=>q,JI:()=>K,TP:()=>N,WU:()=>t,Nj:()=>h,ZP:()=>ze});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 i{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 i;return t.update.apply(t,arguments),t.finish()}}function n(t){return t?"string"==typeof t?s(t):t.hashCode():-1}function a(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||n,this.equalsFunction=e||a}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 i;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 i;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 i;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 v{constructor(t,e){this.start=t,this.stop=e}clone(){return new v(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}}v.INVALID_INTERVAL=new v(-1,-2);class x{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 v(t,t+1))}addRange(t,e){this.addInterval(new v(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 v(t.start,r.stop));if(t.start<=r.stop)return this.intervals[e]=new v(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 v(e.start,r.stop),this.intervals.splice(t+1,1))}}complement(t,e){const r=new x;return r.addInterval(new v(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 v(r.start,t.start);const s=new v(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 v(r.start,t.start):t.stop<r.stop&&(this.intervals[e]=new v(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 v(r.start+1,r.stop));if(t===r.stop-1)return void(this.intervals[e]=new v(r.start,r.stop-1));if(t<r.stop-1){const s=new v(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 x,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 L extends C{}class I extends L{}class K extends I{get ruleContext(){throw new Error("missing interface implementation")}}class N extends I{}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 K){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 K&&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 K{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 v.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 F{constructor(t){this.cachedHashCode=t}isEmpty(){return this===F.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===F.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}}F.EMPTY=null,F.EMPTY_RETURN_STATE=2147483647,F.globalNodeCount=1,F.id=F.globalNodeCount,F.trace_atn_sim=!1;class U extends F{constructor(t,e){const r=new i;return r.update(t,e),super(r.finish()),this.parents=t,this.returnStates=e,this}isEmpty(){return this.returnStates[0]===F.EMPTY_RETURN_STATE}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}equals(t){return this===t||t instanceof U&&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]!==F.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 F{constructor(t,e){let r=0;const s=new i;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===F.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t}get length(){return 1}static create(t,e){return e===F.EMPTY_RETURN_STATE&&null===t?F.EMPTY:new M(t,e)}}class Y extends M{constructor(){super(null,F.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(t){return null}getReturnState(t){return this.returnState}equals(t){return this===t}toString(){return"$"}}F.EMPTY=new Y;const V="h-";class j{constructor(t,e){this.data={},this.hashFunction=t||n,this.equalsFunction=e||a}set(t,e){const r=V+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=V+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=V+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(V))).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(V))).map((t=>this.data[t].length),this).reduce(((t,e)=>t+e),0)}}function B(t,e){if(null==e&&(e=q.EMPTY),null===e.parentCtx||e===q.EMPTY)return F.EMPTY;const r=B(t,e.parentCtx),s=t.states[e.invokingState].transitions[0];return M.create(r,s.followState.stateNumber)}function H(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=H(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?F.EMPTY:1===n.length?M.create(n[0],t.getReturnState(0)):new U(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===F.EMPTY)return F.EMPTY;if(e===F.EMPTY)return F.EMPTY}else{if(t===F.EMPTY&&e===F.EMPTY)return F.EMPTY;if(t===F.EMPTY){const t=[e.returnState,F.EMPTY_RETURN_STATE],r=[e.parentCtx,null];return new U(r,t)}if(e===F.EMPTY){const e=[t.returnState,F.EMPTY_RETURN_STATE],r=[t.parentCtx,null];return new U(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 U([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 U(n,i);return null!==s&&s.set(t,e,a),a}}(t,e,r,s);if(r){if(t instanceof Y)return t;if(e instanceof Y)return e}return t instanceof M&&(t=new U([t.getParent()],[t.returnState])),e instanceof M&&(e=new U([e.getParent()],[e.returnState])),function(t,e,r,s){if(null!==s){let r=s.get(t,e);if(null!==r)return F.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),r;if(r=s.get(e,t),null!==r)return F.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===F.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 U(c,o);return l.equals(t)?(null!==s&&s.set(t,e,t),F.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> a"),t):l.equals(e)?(null!==s&&s.set(t,e,e),F.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> b"),e):(function(t){const e=new j;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),F.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 i.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 x;const e=new d,i=!1;this._LOOK(t.transition(s).target,null,F.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 x,i=null!==(r=r||null)?B(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!==F.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 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 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 x;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 z 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 x;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 x;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 i;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.actionType)}equals(t){return this===t}}class vt extends wt{constructor(){super(6)}execute(t){t.skip()}toString(){return"skip"}}vt.INSTANCE=new vt;class xt 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 xt&&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 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 x;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 z;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 z,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 xt(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)=>vt.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 Lt extends Ct{constructor(){super()}syntaxError(t,e,r,s,i,n){console.error("line "+r+":"+s+" "+i)}}Lt.INSTANCE=new Lt;class It 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 Kt{constructor(){this._listeners=[Lt.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 It(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}}Kt.tokenTypeMapCache={},Kt.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 v(this.startIndex,this.startIndex))),"LexerNoViableAltException"+t}}class Ft extends Kt{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=Ft.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=Ft.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=Ft.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===Ft.SKIP){e=!0;break}if(this._type!==Ft.MORE)break}if(!e)return null===this._token&&this.emit(),this._token}}finally{this._input.release(e)}}skip(){this._type=Ft.SKIP}more(){this._type=Ft.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 Ut(t){return t.hashCodeForConfigSet()}function Mt(t,e){return t===e||null!==t&&null!==e&&t.equalsForConfigSet(e)}Ft.DEFAULT_MODE=0,Ft.MORE=-2,Ft.SKIP=-3,Ft.DEFAULT_TOKEN_CHANNEL=t.DEFAULT_CHANNEL,Ft.HIDDEN=t.HIDDEN_CHANNEL,Ft.MIN_CHAR_VALUE=0,Ft.MAX_CHAR_VALUE=1114111;class Yt{constructor(t){this.configLookup=new d(Ut,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 Yt&&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 i;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 Vt{constructor(t,e){return null===t&&(t=-1),null===e&&(e=new Yt),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 Vt&&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 i;return t.update(this.configs),t.finish()}}class jt{constructor(t,e){return this.atn=t,this.sharedContextCache=e,this}getCachedContext(t){if(null===this.sharedContextCache)return t;const e=new j;return H(t,this.sharedContextCache,e)}}jt.ERROR=new Vt(2147483647,new Yt);class Bt extends Yt{constructor(){super(),this.configLookup=new d}}class Ht 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=Ht.prototype.hashCode,this.equalsForConfigSet=Ht.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 Ht&&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=i.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 Wt{constructor(){Gt(this)}reset(){Gt(this)}}class zt extends jt{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=Ft.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=Ft.DEFAULT_MODE}matchATN(t){const e=this.atn.modeToStartState[this.mode];zt.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 zt.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[r].toLexerString()),a}execATN(e,r){zt.debug&&console.log("start state closure="+r.configs),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let s=e.LA(1),i=r;for(;;){zt.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===jt.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<zt.MIN_DFA_EDGE||e>zt.MAX_DFA_EDGE)return null;let r=t.edges[e-zt.MIN_DFA_EDGE];return void 0===r&&(r=null),zt.debug&&null!==r&&console.log("reuse state "+t.stateNumber+" edge to "+r.stateNumber),r}computeTargetState(t,e,r){const s=new Bt;return this.getReachableConfigSet(t,e.configs,s,r),0===s.items.length?(s.hasSemanticContext||this.addDFAEdge(e,r,jt.ERROR),jt.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){zt.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 Ht({state:l,lexerActionExecutor:r},o);this.closure(e,h,s,c,!0,a)&&(n=o.alt)}}}}}accept(t,e,r,s,i,n){zt.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,Ft.MAX_CHAR_VALUE)?t.target:null}computeStartState(t,e){const r=F.EMPTY,s=new Bt;for(let i=0;i<e.transitions.length;i++){const n=e.transitions[i].target,a=new Ht({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(zt.debug&&console.log("closure("+e.toString(this.recog,!0)+")"),e.state instanceof _){if(zt.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 Ht({state:e.state,context:F.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)!==F.EMPTY_RETURN_STATE){const c=e.context.getParent(o),l=this.atn.states[e.context.getReturnState(o)];a=new Ht({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 Ht({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)zt.debug&&console.log("EVAL rule "+s.ruleIndex+":"+s.predIndex),i.hasSemanticContext=!0,this.evaluatePredicate(e,s.ruleIndex,s.predIndex,n)&&(o=new Ht({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 Ht({state:s.target,lexerActionExecutor:t},r)}else o=new Ht({state:s.target},r);else s.serializationType===E.EPSILON?o=new Ht({state:s.target},r):s.serializationType!==E.ATOM&&s.serializationType!==E.RANGE&&s.serializationType!==E.SET||a&&s.matches(t.EOF,0,Ft.MAX_CHAR_VALUE)&&(o=new Ht({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<zt.MIN_DFA_EDGE||e>zt.MAX_DFA_EDGE||(zt.debug&&console.log("EDGE "+t+" -> "+r+" upon "+e),null===t.edges&&(t.edges=[]),t.edges[e-zt.MIN_DFA_EDGE]=r),r}addDFAState(t){const e=new Vt(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)+"'"}}zt.debug=!1,zt.dfa_debug=!1,zt.MIN_DFA_EDGE=0,zt.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 Yt;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 Q;return t.map((function(t){e.or(t)})),e},getConflictingAltSubsets:function(t){const e=new j;return e.hashFunction=function(t){i.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 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||j,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 jt{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 Vt(null,n)),s.setPrecedenceStartState(this.parser.getPrecedence(),e)):(e=this.addDFAState(s,new Vt(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===jt.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,jt.ERROR),jt.ERROR;let i=new Vt(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 Yt(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 Yt(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 Yt(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=B(this.atn,e),i=new Yt(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 Yt(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!==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 Yt(t.fullCtx),s=new Yt(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)===F.EMPTY_RETURN_STATE){if(i){e.add(new w({state:t.state,context:F.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 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=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===jt.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 v(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 v(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 v(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 j}add(t){if(t===F.EMPTY)return F.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:At,LexerATNSimulator:zt,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 Vt(null,new Yt);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 Vt(null,new Yt);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:F},ue={Interval:v,IntervalSet:x};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:K,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 ve 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 v(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 v(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 v(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 xe extends Error{constructor(){super(),Error.captureStackTrace(this,xe)}}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 x;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 v(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 x;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 xe(e)}recoverInline(t){this.recover(t,new fe(t))}sync(t){}}const Te={RecognitionException:Pt,NoViableAltException:ee,LexerNoViableAltException:qt,InputMismatchException:fe,FailedPredicateException:ge,DiagnosticErrorListener:ve,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=o(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 Le={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)}},Ie={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 Ke{}class Ne extends Ke{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,Ft.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,Ft.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!==Ft.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 v(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 Kt{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 v.INVALID_INTERVAL;const t=this.symbol.tokenIndex;return new v(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 Fe extends qe{constructor(t){super(t)}isErrorNode(){return!0}accept(t){return t.visitErrorNode(this)}}class Ue 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 Fe&&(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 Fe(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?v.INVALID_INTERVAL:new v(this.start.tokenIndex,this.stop.tokenIndex)}}q.EMPTY=new Ue;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 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 v?e:new v(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 v(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,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,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 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,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 Ye,Ve,je,Be,He;Ye=Me,je="default",Be="DEFAULT_PROGRAM_NAME",(Ve="symbol"==typeof(He=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(Be))?He:String(He))in Ye?Object.defineProperty(Ye,Ve,{value:je,enumerable:!0,configurable:!0,writable:!0}):Ye[Ve]=je;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 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 ze={atn:ne,dfa:le,context:he,misc:ue,tree:ye,error:Te,Token:t,CommonToken:Nt,CharStreams:Le,CharStream:ke,InputStream:ke,CommonTokenStream:De,Lexer:Ft,Parser:Pe,ParserRuleContext:Ue,Interval:v,IntervalSet:x,LL1Analyzer:G,Utils:Ie,TokenStreamRewriter:Me}})();var l=c.dx,h=c.q2,u=c.xf,d=c.c7,p=c._7,m=c.cK,y=c.zs,f=c.hW,g=c.x1,w=c.z5,v=c.TB,x=c._b,b=c.$F,_=c._T,E=c.db,T=c._x,S=c.WU,k=class t extends f{constructor(e){super(e),this._interp=new g(this,t._ATN,t.DecisionsToDFA,new E)}get grammarFileName(){return"Solidity.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}static get _ATN(){return t.__ATN||(t.__ATN=(new h).deserialize(t._serializedATN)),t.__ATN}};k.T__0=1,k.T__1=2,k.T__2=3,k.T__3=4,k.T__4=5,k.T__5=6,k.T__6=7,k.T__7=8,k.T__8=9,k.T__9=10,k.T__10=11,k.T__11=12,k.T__12=13,k.T__13=14,k.T__14=15,k.T__15=16,k.T__16=17,k.T__17=18,k.T__18=19,k.T__19=20,k.T__20=21,k.T__21=22,k.T__22=23,k.T__23=24,k.T__24=25,k.T__25=26,k.T__26=27,k.T__27=28,k.T__28=29,k.T__29=30,k.T__30=31,k.T__31=32,k.T__32=33,k.T__33=34,k.T__34=35,k.T__35=36,k.T__36=37,k.T__37=38,k.T__38=39,k.T__39=40,k.T__40=41,k.T__41=42,k.T__42=43,k.T__43=44,k.T__44=45,k.T__45=46,k.T__46=47,k.T__47=48,k.T__48=49,k.T__49=50,k.T__50=51,k.T__51=52,k.T__52=53,k.T__53=54,k.T__54=55,k.T__55=56,k.T__56=57,k.T__57=58,k.T__58=59,k.T__59=60,k.T__60=61,k.T__61=62,k.T__62=63,k.T__63=64,k.T__64=65,k.T__65=66,k.T__66=67,k.T__67=68,k.T__68=69,k.T__69=70,k.T__70=71,k.T__71=72,k.T__72=73,k.T__73=74,k.T__74=75,k.T__75=76,k.T__76=77,k.T__77=78,k.T__78=79,k.T__79=80,k.T__80=81,k.T__81=82,k.T__82=83,k.T__83=84,k.T__84=85,k.T__85=86,k.T__86=87,k.T__87=88,k.T__88=89,k.T__89=90,k.T__90=91,k.T__91=92,k.T__92=93,k.T__93=94,k.T__94=95,k.T__95=96,k.T__96=97,k.T__97=98,k.Int=99,k.Uint=100,k.Byte=101,k.Fixed=102,k.Ufixed=103,k.BooleanLiteral=104,k.DecimalNumber=105,k.HexNumber=106,k.NumberUnit=107,k.HexLiteralFragment=108,k.ReservedKeyword=109,k.AnonymousKeyword=110,k.BreakKeyword=111,k.ConstantKeyword=112,k.TransientKeyword=113,k.ImmutableKeyword=114,k.ContinueKeyword=115,k.LeaveKeyword=116,k.ExternalKeyword=117,k.IndexedKeyword=118,k.InternalKeyword=119,k.PayableKeyword=120,k.PrivateKeyword=121,k.PublicKeyword=122,k.VirtualKeyword=123,k.PureKeyword=124,k.TypeKeyword=125,k.ViewKeyword=126,k.GlobalKeyword=127,k.ConstructorKeyword=128,k.FallbackKeyword=129,k.ReceiveKeyword=130,k.Identifier=131,k.StringLiteralFragment=132,k.VersionLiteral=133,k.WS=134,k.COMMENT=135,k.LINE_COMMENT=136,k.EOF=S.EOF,k.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],k.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'layout'","'at'","'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'","'transient'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],k.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,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],k.modeNames=["DEFAULT_MODE"],k.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","T__96","T__97","Int","Uint","Byte","Fixed","Ufixed","NumberOfBits","NumberOfBytes","BooleanLiteral","DecimalNumber","DecimalDigits","HexNumber","HexDigits","NumberUnit","HexLiteralFragment","HexCharacter","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","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"],k._serializedATN=[4,0,136,1444,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,2,142,7,142,2,143,7,143,2,144,7,144,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,24,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,28,1,28,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,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,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,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,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,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,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,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,63,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,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,68,1,68,1,68,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,74,1,74,1,74,1,75,1,75,1,75,1,76,1,76,1,76,1,77,1,77,1,77,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,83,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,88,1,88,1,88,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,3,98,738,8,98,1,99,1,99,1,99,1,99,1,99,1,99,3,99,746,8,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,755,8,100,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,4,101,766,8,101,11,101,12,101,767,3,101,770,8,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,4,102,782,8,102,11,102,12,102,783,3,102,786,8,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,3,103,871,8,103,1,104,1,104,1,104,1,104,1,104,3,104,878,8,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,3,105,889,8,105,1,106,1,106,3,106,893,8,106,1,106,1,106,3,106,897,8,106,1,106,1,106,3,106,901,8,106,1,106,3,106,904,8,106,1,107,1,107,3,107,908,8,107,1,107,5,107,911,8,107,10,107,12,107,914,9,107,1,108,1,108,1,108,1,108,1,109,1,109,3,109,922,8,109,1,109,5,109,925,8,109,10,109,12,109,928,9,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,3,110,986,8,110,1,111,1,111,1,111,1,111,1,111,1,111,3,111,994,8,111,1,111,1,111,1,111,3,111,999,8,111,1,111,3,111,1002,8,111,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,3,113,1176,8,113,1,114,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,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,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,118,1,119,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,121,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,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,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,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,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,5,135,1348,8,135,10,135,12,135,1351,9,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,3,138,1364,8,138,1,138,1,138,5,138,1368,8,138,10,138,12,138,1371,9,138,1,138,1,138,1,138,5,138,1376,8,138,10,138,12,138,1379,9,138,1,138,3,138,1382,8,138,1,139,1,139,1,139,3,139,1387,8,139,1,140,1,140,1,140,3,140,1392,8,140,1,141,4,141,1395,8,141,11,141,12,141,1396,1,141,1,141,4,141,1401,8,141,11,141,12,141,1402,1,141,1,141,4,141,1407,8,141,11,141,12,141,1408,3,141,1411,8,141,1,142,4,142,1414,8,142,11,142,12,142,1415,1,142,1,142,1,143,1,143,1,143,1,143,5,143,1424,8,143,10,143,12,143,1427,9,143,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,5,144,1438,8,144,10,144,12,144,1441,9,144,1,144,1,144,1,1425,0,145,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,102,205,103,207,0,209,0,211,104,213,105,215,0,217,106,219,0,221,107,223,108,225,0,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,129,269,130,271,131,273,0,275,0,277,132,279,0,281,0,283,133,285,134,287,135,289,136,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,1538,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,203,1,0,0,0,0,205,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,217,1,0,0,0,0,221,1,0,0,0,0,223,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,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,277,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,1,291,1,0,0,0,3,298,1,0,0,0,5,300,1,0,0,0,7,302,1,0,0,0,9,305,1,0,0,0,11,307,1,0,0,0,13,309,1,0,0,0,15,312,1,0,0,0,17,314,1,0,0,0,19,316,1,0,0,0,21,319,1,0,0,0,23,321,1,0,0,0,25,324,1,0,0,0,27,331,1,0,0,0,29,336,1,0,0,0,31,338,1,0,0,0,33,340,1,0,0,0,35,342,1,0,0,0,37,351,1,0,0,0,39,360,1,0,0,0,41,370,1,0,0,0,43,378,1,0,0,0,45,381,1,0,0,0,47,383,1,0,0,0,49,385,1,0,0,0,51,392,1,0,0,0,53,395,1,0,0,0,55,401,1,0,0,0,57,407,1,0,0,0,59,411,1,0,0,0,61,413,1,0,0,0,63,415,1,0,0,0,65,417,1,0,0,0,67,419,1,0,0,0,69,421,1,0,0,0,71,423,1,0,0,0,73,426,1,0,0,0,75,429,1,0,0,0,77,436,1,0,0,0,79,445,1,0,0,0,81,454,1,0,0,0,83,462,1,0,0,0,85,468,1,0,0,0,87,473,1,0,0,0,89,475,1,0,0,0,91,477,1,0,0,0,93,485,1,0,0,0,95,487,1,0,0,0,97,495,1,0,0,0,99,498,1,0,0,0,101,505,1,0,0,0,103,513,1,0,0,0,105,522,1,0,0,0,107,525,1,0,0,0,109,530,1,0,0,0,111,534,1,0,0,0,113,540,1,0,0,0,115,546,1,0,0,0,117,556,1,0,0,0,119,565,1,0,0,0,121,568,1,0,0,0,123,575,1,0,0,0,125,581,1,0,0,0,127,586,1,0,0,0,129,593,1,0,0,0,131,597,1,0,0,0,133,602,1,0,0,0,135,609,1,0,0,0,137,614,1,0,0,0,139,617,1,0,0,0,141,620,1,0,0,0,143,624,1,0,0,0,145,626,1,0,0,0,147,633,1,0,0,0,149,635,1,0,0,0,151,638,1,0,0,0,153,641,1,0,0,0,155,644,1,0,0,0,157,647,1,0,0,0,159,649,1,0,0,0,161,652,1,0,0,0,163,655,1,0,0,0,165,658,1,0,0,0,167,662,1,0,0,0,169,666,1,0,0,0,171,669,1,0,0,0,173,672,1,0,0,0,175,675,1,0,0,0,177,678,1,0,0,0,179,681,1,0,0,0,181,685,1,0,0,0,183,688,1,0,0,0,185,691,1,0,0,0,187,698,1,0,0,0,189,703,1,0,0,0,191,711,1,0,0,0,193,714,1,0,0,0,195,723,1,0,0,0,197,732,1,0,0,0,199,739,1,0,0,0,201,747,1,0,0,0,203,756,1,0,0,0,205,771,1,0,0,0,207,870,1,0,0,0,209,877,1,0,0,0,211,888,1,0,0,0,213,896,1,0,0,0,215,905,1,0,0,0,217,915,1,0,0,0,219,919,1,0,0,0,221,985,1,0,0,0,223,987,1,0,0,0,225,1003,1,0,0,0,227,1175,1,0,0,0,229,1177,1,0,0,0,231,1187,1,0,0,0,233,1193,1,0,0,0,235,1202,1,0,0,0,237,1212,1,0,0,0,239,1222,1,0,0,0,241,1231,1,0,0,0,243,1237,1,0,0,0,245,1246,1,0,0,0,247,1254,1,0,0,0,249,1263,1,0,0,0,251,1271,1,0,0,0,253,1279,1,0,0,0,255,1286,1,0,0,0,257,1294,1,0,0,0,259,1299,1,0,0,0,261,1304,1,0,0,0,263,1309,1,0,0,0,265,1316,1,0,0,0,267,1328,1,0,0,0,269,1337,1,0,0,0,271,1345,1,0,0,0,273,1352,1,0,0,0,275,1354,1,0,0,0,277,1363,1,0,0,0,279,1386,1,0,0,0,281,1391,1,0,0,0,283,1394,1,0,0,0,285,1413,1,0,0,0,287,1419,1,0,0,0,289,1433,1,0,0,0,291,292,5,112,0,0,292,293,5,114,0,0,293,294,5,97,0,0,294,295,5,103,0,0,295,296,5,109,0,0,296,297,5,97,0,0,297,2,1,0,0,0,298,299,5,59,0,0,299,4,1,0,0,0,300,301,5,42,0,0,301,6,1,0,0,0,302,303,5,124,0,0,303,304,5,124,0,0,304,8,1,0,0,0,305,306,5,94,0,0,306,10,1,0,0,0,307,308,5,126,0,0,308,12,1,0,0,0,309,310,5,62,0,0,310,311,5,61,0,0,311,14,1,0,0,0,312,313,5,62,0,0,313,16,1,0,0,0,314,315,5,60,0,0,315,18,1,0,0,0,316,317,5,60,0,0,317,318,5,61,0,0,318,20,1,0,0,0,319,320,5,61,0,0,320,22,1,0,0,0,321,322,5,97,0,0,322,323,5,115,0,0,323,24,1,0,0,0,324,325,5,105,0,0,325,326,5,109,0,0,326,327,5,112,0,0,327,328,5,111,0,0,328,329,5,114,0,0,329,330,5,116,0,0,330,26,1,0,0,0,331,332,5,102,0,0,332,333,5,114,0,0,333,334,5,111,0,0,334,335,5,109,0,0,335,28,1,0,0,0,336,337,5,123,0,0,337,30,1,0,0,0,338,339,5,44,0,0,339,32,1,0,0,0,340,341,5,125,0,0,341,34,1,0,0,0,342,343,5,97,0,0,343,344,5,98,0,0,344,345,5,115,0,0,345,346,5,116,0,0,346,347,5,114,0,0,347,348,5,97,0,0,348,349,5,99,0,0,349,350,5,116,0,0,350,36,1,0,0,0,351,352,5,99,0,0,352,353,5,111,0,0,353,354,5,110,0,0,354,355,5,116,0,0,355,356,5,114,0,0,356,357,5,97,0,0,357,358,5,99,0,0,358,359,5,116,0,0,359,38,1,0,0,0,360,361,5,105,0,0,361,362,5,110,0,0,362,363,5,116,0,0,363,364,5,101,0,0,364,365,5,114,0,0,365,366,5,102,0,0,366,367,5,97,0,0,367,368,5,99,0,0,368,369,5,101,0,0,369,40,1,0,0,0,370,371,5,108,0,0,371,372,5,105,0,0,372,373,5,98,0,0,373,374,5,114,0,0,374,375,5,97,0,0,375,376,5,114,0,0,376,377,5,121,0,0,377,42,1,0,0,0,378,379,5,105,0,0,379,380,5,115,0,0,380,44,1,0,0,0,381,382,5,40,0,0,382,46,1,0,0,0,383,384,5,41,0,0,384,48,1,0,0,0,385,386,5,108,0,0,386,387,5,97,0,0,387,388,5,121,0,0,388,389,5,111,0,0,389,390,5,117,0,0,390,391,5,116,0,0,391,50,1,0,0,0,392,393,5,97,0,0,393,394,5,116,0,0,394,52,1,0,0,0,395,396,5,101,0,0,396,397,5,114,0,0,397,398,5,114,0,0,398,399,5,111,0,0,399,400,5,114,0,0,400,54,1,0,0,0,401,402,5,117,0,0,402,403,5,115,0,0,403,404,5,105,0,0,404,405,5,110,0,0,405,406,5,103,0,0,406,56,1,0,0,0,407,408,5,102,0,0,408,409,5,111,0,0,409,410,5,114,0,0,410,58,1,0,0,0,411,412,5,124,0,0,412,60,1,0,0,0,413,414,5,38,0,0,414,62,1,0,0,0,415,416,5,43,0,0,416,64,1,0,0,0,417,418,5,45,0,0,418,66,1,0,0,0,419,420,5,47,0,0,420,68,1,0,0,0,421,422,5,37,0,0,422,70,1,0,0,0,423,424,5,61,0,0,424,425,5,61,0,0,425,72,1,0,0,0,426,427,5,33,0,0,427,428,5,61,0,0,428,74,1,0,0,0,429,430,5,115,0,0,430,431,5,116,0,0,431,432,5,114,0,0,432,433,5,117,0,0,433,434,5,99,0,0,434,435,5,116,0,0,435,76,1,0,0,0,436,437,5,109,0,0,437,438,5,111,0,0,438,439,5,100,0,0,439,440,5,105,0,0,440,441,5,102,0,0,441,442,5,105,0,0,442,443,5,101,0,0,443,444,5,114,0,0,444,78,1,0,0,0,445,446,5,102,0,0,446,447,5,117,0,0,447,448,5,110,0,0,448,449,5,99,0,0,449,450,5,116,0,0,450,451,5,105,0,0,451,452,5,111,0,0,452,453,5,110,0,0,453,80,1,0,0,0,454,455,5,114,0,0,455,456,5,101,0,0,456,457,5,116,0,0,457,458,5,117,0,0,458,459,5,114,0,0,459,460,5,110,0,0,460,461,5,115,0,0,461,82,1,0,0,0,462,463,5,101,0,0,463,464,5,118,0,0,464,465,5,101,0,0,465,466,5,110,0,0,466,467,5,116,0,0,467,84,1,0,0,0,468,469,5,101,0,0,469,470,5,110,0,0,470,471,5,117,0,0,471,472,5,109,0,0,472,86,1,0,0,0,473,474,5,91,0,0,474,88,1,0,0,0,475,476,5,93,0,0,476,90,1,0,0,0,477,478,5,97,0,0,478,479,5,100,0,0,479,480,5,100,0,0,480,481,5,114,0,0,481,482,5,101,0,0,482,483,5,115,0,0,483,484,5,115,0,0,484,92,1,0,0,0,485,486,5,46,0,0,486,94,1,0,0,0,487,488,5,109,0,0,488,489,5,97,0,0,489,490,5,112,0,0,490,491,5,112,0,0,491,492,5,105,0,0,492,493,5,110,0,0,493,494,5,103,0,0,494,96,1,0,0,0,495,496,5,61,0,0,496,497,5,62,0,0,497,98,1,0,0,0,498,499,5,109,0,0,499,500,5,101,0,0,500,501,5,109,0,0,501,502,5,111,0,0,502,503,5,114,0,0,503,504,5,121,0,0,504,100,1,0,0,0,505,506,5,115,0,0,506,507,5,116,0,0,507,508,5,111,0,0,508,509,5,114,0,0,509,510,5,97,0,0,510,511,5,103,0,0,511,512,5,101,0,0,512,102,1,0,0,0,513,514,5,99,0,0,514,515,5,97,0,0,515,516,5,108,0,0,516,517,5,108,0,0,517,518,5,100,0,0,518,519,5,97,0,0,519,520,5,116,0,0,520,521,5,97,0,0,521,104,1,0,0,0,522,523,5,105,0,0,523,524,5,102,0,0,524,106,1,0,0,0,525,526,5,101,0,0,526,527,5,108,0,0,527,528,5,115,0,0,528,529,5,101,0,0,529,108,1,0,0,0,530,531,5,116,0,0,531,532,5,114,0,0,532,533,5,121,0,0,533,110,1,0,0,0,534,535,5,99,0,0,535,536,5,97,0,0,536,537,5,116,0,0,537,538,5,99,0,0,538,539,5,104,0,0,539,112,1,0,0,0,540,541,5,119,0,0,541,542,5,104,0,0,542,543,5,105,0,0,543,544,5,108,0,0,544,545,5,101,0,0,545,114,1,0,0,0,546,547,5,117,0,0,547,548,5,110,0,0,548,549,5,99,0,0,549,550,5,104,0,0,550,551,5,101,0,0,551,552,5,99,0,0,552,553,5,107,0,0,553,554,5,101,0,0,554,555,5,100,0,0,555,116,1,0,0,0,556,557,5,97,0,0,557,558,5,115,0,0,558,559,5,115,0,0,559,560,5,101,0,0,560,561,5,109,0,0,561,562,5,98,0,0,562,563,5,108,0,0,563,564,5,121,0,0,564,118,1,0,0,0,565,566,5,100,0,0,566,567,5,111,0,0,567,120,1,0,0,0,568,569,5,114,0,0,569,570,5,101,0,0,570,571,5,116,0,0,571,572,5,117,0,0,572,573,5,114,0,0,573,574,5,110,0,0,574,122,1,0,0,0,575,576,5,116,0,0,576,577,5,104,0,0,577,578,5,114,0,0,578,579,5,111,0,0,579,580,5,119,0,0,580,124,1,0,0,0,581,582,5,101,0,0,582,583,5,109,0,0,583,584,5,105,0,0,584,585,5,116,0,0,585,126,1,0,0,0,586,587,5,114,0,0,587,588,5,101,0,0,588,589,5,118,0,0,589,590,5,101,0,0,590,591,5,114,0,0,591,592,5,116,0,0,592,128,1,0,0,0,593,594,5,118,0,0,594,595,5,97,0,0,595,596,5,114,0,0,596,130,1,0,0,0,597,598,5,98,0,0,598,599,5,111,0,0,599,600,5,111,0,0,600,601,5,108,0,0,601,132,1,0,0,0,602,603,5,115,0,0,603,604,5,116,0,0,604,605,5,114,0,0,605,606,5,105,0,0,606,607,5,110,0,0,607,608,5,103,0,0,608,134,1,0,0,0,609,610,5,98,0,0,610,611,5,121,0,0,611,612,5,116,0,0,612,613,5,101,0,0,613,136,1,0,0,0,614,615,5,43,0,0,615,616,5,43,0,0,616,138,1,0,0,0,617,618,5,45,0,0,618,619,5,45,0,0,619,140,1,0,0,0,620,621,5,110,0,0,621,622,5,101,0,0,622,623,5,119,0,0,623,142,1,0,0,0,624,625,5,58,0,0,625,144,1,0,0,0,626,627,5,100,0,0,627,628,5,101,0,0,628,629,5,108,0,0,629,630,5,101,0,0,630,631,5,116,0,0,631,632,5,101,0,0,632,146,1,0,0,0,633,634,5,33,0,0,634,148,1,0,0,0,635,636,5,42,0,0,636,637,5,42,0,0,637,150,1,0,0,0,638,639,5,60,0,0,639,640,5,60,0,0,640,152,1,0,0,0,641,642,5,62,0,0,642,643,5,62,0,0,643,154,1,0,0,0,644,645,5,38,0,0,645,646,5,38,0,0,646,156,1,0,0,0,647,648,5,63,0,0,648,158,1,0,0,0,649,650,5,124,0,0,650,651,5,61,0,0,651,160,1,0,0,0,652,653,5,94,0,0,653,654,5,61,0,0,654,162,1,0,0,0,655,656,5,38,0,0,656,657,5,61,0,0,657,164,1,0,0,0,658,659,5,60,0,0,659,660,5,60,0,0,660,661,5,61,0,0,661,166,1,0,0,0,662,663,5,62,0,0,663,664,5,62,0,0,664,665,5,61,0,0,665,168,1,0,0,0,666,667,5,43,0,0,667,668,5,61,0,0,668,170,1,0,0,0,669,670,5,45,0,0,670,671,5,61,0,0,671,172,1,0,0,0,672,673,5,42,0,0,673,674,5,61,0,0,674,174,1,0,0,0,675,676,5,47,0,0,676,677,5,61,0,0,677,176,1,0,0,0,678,679,5,37,0,0,679,680,5,61,0,0,680,178,1,0,0,0,681,682,5,108,0,0,682,683,5,101,0,0,683,684,5,116,0,0,684,180,1,0,0,0,685,686,5,58,0,0,686,687,5,61,0,0,687,182,1,0,0,0,688,689,5,61,0,0,689,690,5,58,0,0,690,184,1,0,0,0,691,692,5,115,0,0,692,693,5,119,0,0,693,694,5,105,0,0,694,695,5,116,0,0,695,696,5,99,0,0,696,697,5,104,0,0,697,186,1,0,0,0,698,699,5,99,0,0,699,700,5,97,0,0,700,701,5,115,0,0,701,702,5,101,0,0,702,188,1,0,0,0,703,704,5,100,0,0,704,705,5,101,0,0,705,706,5,102,0,0,706,707,5,97,0,0,707,708,5,117,0,0,708,709,5,108,0,0,709,710,5,116,0,0,710,190,1,0,0,0,711,712,5,45,0,0,712,713,5,62,0,0,713,192,1,0,0,0,714,715,5,99,0,0,715,716,5,97,0,0,716,717,5,108,0,0,717,718,5,108,0,0,718,719,5,98,0,0,719,720,5,97,0,0,720,721,5,99,0,0,721,722,5,107,0,0,722,194,1,0,0,0,723,724,5,111,0,0,724,725,5,118,0,0,725,726,5,101,0,0,726,727,5,114,0,0,727,728,5,114,0,0,728,729,5,105,0,0,729,730,5,100,0,0,730,731,5,101,0,0,731,196,1,0,0,0,732,733,5,105,0,0,733,734,5,110,0,0,734,735,5,116,0,0,735,737,1,0,0,0,736,738,3,207,103,0,737,736,1,0,0,0,737,738,1,0,0,0,738,198,1,0,0,0,739,740,5,117,0,0,740,741,5,105,0,0,741,742,5,110,0,0,742,743,5,116,0,0,743,745,1,0,0,0,744,746,3,207,103,0,745,744,1,0,0,0,745,746,1,0,0,0,746,200,1,0,0,0,747,748,5,98,0,0,748,749,5,121,0,0,749,750,5,116,0,0,750,751,5,101,0,0,751,752,5,115,0,0,752,754,1,0,0,0,753,755,3,209,104,0,754,753,1,0,0,0,754,755,1,0,0,0,755,202,1,0,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,207,103,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,204,1,0,0,0,771,772,5,117,0,0,772,773,5,102,0,0,773,774,5,105,0,0,774,775,5,120,0,0,775,776,5,101,0,0,776,777,5,100,0,0,777,785,1,0,0,0,778,779,3,207,103,0,779,781,5,120,0,0,780,782,7,0,0,0,781,780,1,0,0,0,782,783,1,0,0,0,783,781,1,0,0,0,783,784,1,0,0,0,784,786,1,0,0,0,785,778,1,0,0,0,785,786,1,0,0,0,786,206,1,0,0,0,787,871,5,56,0,0,788,789,5,49,0,0,789,871,5,54,0,0,790,791,5,50,0,0,791,871,5,52,0,0,792,793,5,51,0,0,793,871,5,50,0,0,794,795,5,52,0,0,795,871,5,48,0,0,796,797,5,52,0,0,797,871,5,56,0,0,798,799,5,53,0,0,799,871,5,54,0,0,800,801,5,54,0,0,801,871,5,52,0,0,802,803,5,55,0,0,803,871,5,50,0,0,804,805,5,56,0,0,805,871,5,48,0,0,806,807,5,56,0,0,807,871,5,56,0,0,808,809,5,57,0,0,809,871,5,54,0,0,810,811,5,49,0,0,811,812,5,48,0,0,812,871,5,52,0,0,813,814,5,49,0,0,814,815,5,49,0,0,815,871,5,50,0,0,816,817,5,49,0,0,817,818,5,50,0,0,818,871,5,48,0,0,819,820,5,49,0,0,820,821,5,50,0,0,821,871,5,56,0,0,822,823,5,49,0,0,823,824,5,51,0,0,824,871,5,54,0,0,825,826,5,49,0,0,826,827,5,52,0,0,827,871,5,52,0,0,828,829,5,49,0,0,829,830,5,53,0,0,830,871,5,50,0,0,831,832,5,49,0,0,832,833,5,54,0,0,833,871,5,48,0,0,834,835,5,49,0,0,835,836,5,54,0,0,836,871,5,56,0,0,837,838,5,49,0,0,838,839,5,55,0,0,839,871,5,54,0,0,840,841,5,49,0,0,841,842,5,56,0,0,842,871,5,52,0,0,843,844,5,49,0,0,844,845,5,57,0,0,845,871,5,50,0,0,846,847,5,50,0,0,847,848,5,48,0,0,848,871,5,48,0,0,849,850,5,50,0,0,850,851,5,48,0,0,851,871,5,56,0,0,852,853,5,50,0,0,853,854,5,49,0,0,854,871,5,54,0,0,855,856,5,50,0,0,856,857,5,50,0,0,857,871,5,52,0,0,858,859,5,50,0,0,859,860,5,51,0,0,860,871,5,50,0,0,861,862,5,50,0,0,862,863,5,52,0,0,863,871,5,48,0,0,864,865,5,50,0,0,865,866,5,52,0,0,866,871,5,56,0,0,867,868,5,50,0,0,868,869,5,53,0,0,869,871,5,54,0,0,870,787,1,0,0,0,870,788,1,0,0,0,870,790,1,0,0,0,870,792,1,0,0,0,870,794,1,0,0,0,870,796,1,0,0,0,870,798,1,0,0,0,870,800,1,0,0,0,870,802,1,0,0,0,870,804,1,0,0,0,870,806,1,0,0,0,870,808,1,0,0,0,870,810,1,0,0,0,870,813,1,0,0,0,870,816,1,0,0,0,870,819,1,0,0,0,870,822,1,0,0,0,870,825,1,0,0,0,870,828,1,0,0,0,870,831,1,0,0,0,870,834,1,0,0,0,870,837,1,0,0,0,870,840,1,0,0,0,870,843,1,0,0,0,870,846,1,0,0,0,870,849,1,0,0,0,870,852,1,0,0,0,870,855,1,0,0,0,870,858,1,0,0,0,870,861,1,0,0,0,870,864,1,0,0,0,870,867,1,0,0,0,871,208,1,0,0,0,872,878,7,1,0,0,873,874,7,2,0,0,874,878,7,0,0,0,875,876,5,51,0,0,876,878,7,3,0,0,877,872,1,0,0,0,877,873,1,0,0,0,877,875,1,0,0,0,878,210,1,0,0,0,879,880,5,116,0,0,880,881,5,114,0,0,881,882,5,117,0,0,882,889,5,101,0,0,883,884,5,102,0,0,884,885,5,97,0,0,885,886,5,108,0,0,886,887,5,115,0,0,887,889,5,101,0,0,888,879,1,0,0,0,888,883,1,0,0,0,889,212,1,0,0,0,890,897,3,215,107,0,891,893,3,215,107,0,892,891,1,0,0,0,892,893,1,0,0,0,893,894,1,0,0,0,894,895,5,46,0,0,895,897,3,215,107,0,896,890,1,0,0,0,896,892,1,0,0,0,897,903,1,0,0,0,898,900,7,4,0,0,899,901,5,45,0,0,900,899,1,0,0,0,900,901,1,0,0,0,901,902,1,0,0,0,902,904,3,215,107,0,903,898,1,0,0,0,903,904,1,0,0,0,904,214,1,0,0,0,905,912,7,0,0,0,906,908,5,95,0,0,907,906,1,0,0,0,907,908,1,0,0,0,908,909,1,0,0,0,909,911,7,0,0,0,910,907,1,0,0,0,911,914,1,0,0,0,912,910,1,0,0,0,912,913,1,0,0,0,913,216,1,0,0,0,914,912,1,0,0,0,915,916,5,48,0,0,916,917,7,5,0,0,917,918,3,219,109,0,918,218,1,0,0,0,919,926,3,225,112,0,920,922,5,95,0,0,921,920,1,0,0,0,921,922,1,0,0,0,922,923,1,0,0,0,923,925,3,225,112,0,924,921,1,0,0,0,925,928,1,0,0,0,926,924,1,0,0,0,926,927,1,0,0,0,927,220,1,0,0,0,928,926,1,0,0,0,929,930,5,119,0,0,930,931,5,101,0,0,931,986,5,105,0,0,932,933,5,103,0,0,933,934,5,119,0,0,934,935,5,101,0,0,935,986,5,105,0,0,936,937,5,115,0,0,937,938,5,122,0,0,938,939,5,97,0,0,939,940,5,98,0,0,940,986,5,111,0,0,941,942,5,102,0,0,942,943,5,105,0,0,943,944,5,110,0,0,944,945,5,110,0,0,945,946,5,101,0,0,946,986,5,121,0,0,947,948,5,101,0,0,948,949,5,116,0,0,949,950,5,104,0,0,950,951,5,101,0,0,951,986,5,114,0,0,952,953,5,115,0,0,953,954,5,101,0,0,954,955,5,99,0,0,955,956,5,111,0,0,956,957,5,110,0,0,957,958,5,100,0,0,958,986,5,115,0,0,959,960,5,109,0,0,960,961,5,105,0,0,961,962,5,110,0,0,962,963,5,117,0,0,963,964,5,116,0,0,964,965,5,101,0,0,965,986,5,115,0,0,966,967,5,104,0,0,967,968,5,111,0,0,968,969,5,117,0,0,969,970,5,114,0,0,970,986,5,115,0,0,971,972,5,100,0,0,972,973,5,97,0,0,973,974,5,121,0,0,974,986,5,115,0,0,975,976,5,119,0,0,976,977,5,101,0,0,977,978,5,101,0,0,978,979,5,107,0,0,979,986,5,115,0,0,980,981,5,121,0,0,981,982,5,101,0,0,982,983,5,97,0,0,983,984,5,114,0,0,984,986,5,115,0,0,985,929,1,0,0,0,985,932,1,0,0,0,985,936,1,0,0,0,985,941,1,0,0,0,985,947,1,0,0,0,985,952,1,0,0,0,985,959,1,0,0,0,985,966,1,0,0,0,985,971,1,0,0,0,985,975,1,0,0,0,985,980,1,0,0,0,986,222,1,0,0,0,987,988,5,104,0,0,988,989,5,101,0,0,989,990,5,120,0,0,990,1001,1,0,0,0,991,993,5,34,0,0,992,994,3,219,109,0,993,992,1,0,0,0,993,994,1,0,0,0,994,995,1,0,0,0,995,1002,5,34,0,0,996,998,5,39,0,0,997,999,3,219,109,0,998,997,1,0,0,0,998,999,1,0,0,0,999,1e3,1,0,0,0,1e3,1002,5,39,0,0,1001,991,1,0,0,0,1001,996,1,0,0,0,1002,224,1,0,0,0,1003,1004,7,6,0,0,1004,226,1,0,0,0,1005,1006,5,97,0,0,1006,1007,5,102,0,0,1007,1008,5,116,0,0,1008,1009,5,101,0,0,1009,1176,5,114,0,0,1010,1011,5,97,0,0,1011,1012,5,108,0,0,1012,1013,5,105,0,0,1013,1014,5,97,0,0,1014,1176,5,115,0,0,1015,1016,5,97,0,0,1016,1017,5,112,0,0,1017,1018,5,112,0,0,1018,1019,5,108,0,0,1019,1176,5,121,0,0,1020,1021,5,97,0,0,1021,1022,5,117,0,0,1022,1023,5,116,0,0,1023,1176,5,111,0,0,1024,1025,5,99,0,0,1025,1026,5,97,0,0,1026,1027,5,115,0,0,1027,1176,5,101,0,0,1028,1029,5,99,0,0,1029,1030,5,111,0,0,1030,1031,5,112,0,0,1031,1032,5,121,0,0,1032,1033,5,111,0,0,1033,1176,5,102,0,0,1034,1035,5,100,0,0,1035,1036,5,101,0,0,1036,1037,5,102,0,0,1037,1038,5,97,0,0,1038,1039,5,117,0,0,1039,1040,5,108,0,0,1040,1176,5,116,0,0,1041,1042,5,100,0,0,1042,1043,5,101,0,0,1043,1044,5,102,0,0,1044,1045,5,105,0,0,1045,1046,5,110,0,0,1046,1176,5,101,0,0,1047,1048,5,102,0,0,1048,1049,5,105,0,0,1049,1050,5,110,0,0,1050,1051,5,97,0,0,1051,1176,5,108,0,0,1052,1053,5,105,0,0,1053,1054,5,109,0,0,1054,1055,5,112,0,0,1055,1056,5,108,0,0,1056,1057,5,101,0,0,1057,1058,5,109,0,0,1058,1059,5,101,0,0,1059,1060,5,110,0,0,1060,1061,5,116,0,0,1061,1176,5,115,0,0,1062,1063,5,105,0,0,1063,1176,5,110,0,0,1064,1065,5,105,0,0,1065,1066,5,110,0,0,1066,1067,5,108,0,0,1067,1068,5,105,0,0,1068,1069,5,110,0,0,1069,1176,5,101,0,0,1070,1071,5,108,0,0,1071,1072,5,101,0,0,1072,1176,5,116,0,0,1073,1074,5,109,0,0,1074,1075,5,97,0,0,1075,1076,5,99,0,0,1076,1077,5,114,0,0,1077,1176,5,111,0,0,1078,1079,5,109,0,0,1079,1080,5,97,0,0,1080,1081,5,116,0,0,1081,1082,5,99,0,0,1082,1176,5,104,0,0,1083,1084,5,109,0,0,1084,1085,5,117,0,0,1085,1086,5,116,0,0,1086,1087,5,97,0,0,1087,1088,5,98,0,0,1088,1089,5,108,0,0,1089,1176,5,101,0,0,1090,1091,5,110,0,0,1091,1092,5,117,0,0,1092,1093,5,108,0,0,1093,1176,5,108,0,0,1094,1095,5,111,0,0,1095,1176,5,102,0,0,1096,1097,5,112,0,0,1097,1098,5,97,0,0,1098,1099,5,114,0,0,1099,1100,5,116,0,0,1100,1101,5,105,0,0,1101,1102,5,97,0,0,1102,1176,5,108,0,0,1103,1104,5,112,0,0,1104,1105,5,114,0,0,1105,1106,5,111,0,0,1106,1107,5,109,0,0,1107,1108,5,105,0,0,1108,1109,5,115,0,0,1109,1176,5,101,0,0,1110,1111,5,114,0,0,1111,1112,5,101,0,0,1112,1113,5,102,0,0,1113,1114,5,101,0,0,1114,1115,5,114,0,0,1115,1116,5,101,0,0,1116,1117,5,110,0,0,1117,1118,5,99,0,0,1118,1176,5,101,0,0,1119,1120,5,114,0,0,1120,1121,5,101,0,0,1121,1122,5,108,0,0,1122,1123,5,111,0,0,1123,1124,5,99,0,0,1124,1125,5,97,0,0,1125,1126,5,116,0,0,1126,1127,5,97,0,0,1127,1128,5,98,0,0,1128,1129,5,108,0,0,1129,1176,5,101,0,0,1130,1131,5,115,0,0,1131,1132,5,101,0,0,1132,1133,5,97,0,0,1133,1134,5,108,0,0,1134,1135,5,101,0,0,1135,1176,5,100,0,0,1136,1137,5,115,0,0,1137,1138,5,105,0,0,1138,1139,5,122,0,0,1139,1140,5,101,0,0,1140,1141,5,111,0,0,1141,1176,5,102,0,0,1142,1143,5,115,0,0,1143,1144,5,116,0,0,1144,1145,5,97,0,0,1145,1146,5,116,0,0,1146,1147,5,105,0,0,1147,1176,5,99,0,0,1148,1149,5,115,0,0,1149,1150,5,117,0,0,1150,1151,5,112,0,0,1151,1152,5,112,0,0,1152,1153,5,111,0,0,1153,1154,5,114,0,0,1154,1155,5,116,0,0,1155,1176,5,115,0,0,1156,1157,5,115,0,0,1157,1158,5,119,0,0,1158,1159,5,105,0,0,1159,1160,5,116,0,0,1160,1161,5,99,0,0,1161,1176,5,104,0,0,1162,1163,5,116,0,0,1163,1164,5,121,0,0,1164,1165,5,112,0,0,1165,1166,5,101,0,0,1166,1167,5,100,0,0,1167,1168,5,101,0,0,1168,1176,5,102,0,0,1169,1170,5,116,0,0,1170,1171,5,121,0,0,1171,1172,5,112,0,0,1172,1173,5,101,0,0,1173,1174,5,111,0,0,1174,1176,5,102,0,0,1175,1005,1,0,0,0,1175,1010,1,0,0,0,1175,1015,1,0,0,0,1175,1020,1,0,0,0,1175,1024,1,0,0,0,1175,1028,1,0,0,0,1175,1034,1,0,0,0,1175,1041,1,0,0,0,1175,1047,1,0,0,0,1175,1052,1,0,0,0,1175,1062,1,0,0,0,1175,1064,1,0,0,0,1175,1070,1,0,0,0,1175,1073,1,0,0,0,1175,1078,1,0,0,0,1175,1083,1,0,0,0,1175,1090,1,0,0,0,1175,1094,1,0,0,0,1175,1096,1,0,0,0,1175,1103,1,0,0,0,1175,1110,1,0,0,0,1175,1119,1,0,0,0,1175,1130,1,0,0,0,1175,1136,1,0,0,0,1175,1142,1,0,0,0,1175,1148,1,0,0,0,1175,1156,1,0,0,0,1175,1162,1,0,0,0,1175,1169,1,0,0,0,1176,228,1,0,0,0,1177,1178,5,97,0,0,1178,1179,5,110,0,0,1179,1180,5,111,0,0,1180,1181,5,110,0,0,1181,1182,5,121,0,0,1182,1183,5,109,0,0,1183,1184,5,111,0,0,1184,1185,5,117,0,0,1185,1186,5,115,0,0,1186,230,1,0,0,0,1187,1188,5,98,0,0,1188,1189,5,114,0,0,1189,1190,5,101,0,0,1190,1191,5,97,0,0,1191,1192,5,107,0,0,1192,232,1,0,0,0,1193,1194,5,99,0,0,1194,1195,5,111,0,0,1195,1196,5,110,0,0,1196,1197,5,115,0,0,1197,1198,5,116,0,0,1198,1199,5,97,0,0,1199,1200,5,110,0,0,1200,1201,5,116,0,0,1201,234,1,0,0,0,1202,1203,5,116,0,0,1203,1204,5,114,0,0,1204,1205,5,97,0,0,1205,1206,5,110,0,0,1206,1207,5,115,0,0,1207,1208,5,105,0,0,1208,1209,5,101,0,0,1209,1210,5,110,0,0,1210,1211,5,116,0,0,1211,236,1,0,0,0,1212,1213,5,105,0,0,1213,1214,5,109,0,0,1214,1215,5,109,0,0,1215,1216,5,117,0,0,1216,1217,5,116,0,0,1217,1218,5,97,0,0,1218,1219,5,98,0,0,1219,1220,5,108,0,0,1220,1221,5,101,0,0,1221,238,1,0,0,0,1222,1223,5,99,0,0,1223,1224,5,111,0,0,1224,1225,5,110,0,0,1225,1226,5,116,0,0,1226,1227,5,105,0,0,1227,1228,5,110,0,0,1228,1229,5,117,0,0,1229,1230,5,101,0,0,1230,240,1,0,0,0,1231,1232,5,108,0,0,1232,1233,5,101,0,0,1233,1234,5,97,0,0,1234,1235,5,118,0,0,1235,1236,5,101,0,0,1236,242,1,0,0,0,1237,1238,5,101,0,0,1238,1239,5,120,0,0,1239,1240,5,116,0,0,1240,1241,5,101,0,0,1241,1242,5,114,0,0,1242,1243,5,110,0,0,1243,1244,5,97,0,0,1244,1245,5,108,0,0,1245,244,1,0,0,0,1246,1247,5,105,0,0,1247,1248,5,110,0,0,1248,1249,5,100,0,0,1249,1250,5,101,0,0,1250,1251,5,120,0,0,1251,1252,5,101,0,0,1252,1253,5,100,0,0,1253,246,1,0,0,0,1254,1255,5,105,0,0,1255,1256,5,110,0,0,1256,1257,5,116,0,0,1257,1258,5,101,0,0,1258,1259,5,114,0,0,1259,1260,5,110,0,0,1260,1261,5,97,0,0,1261,1262,5,108,0,0,1262,248,1,0,0,0,1263,1264,5,112,0,0,1264,1265,5,97,0,0,1265,1266,5,121,0,0,1266,1267,5,97,0,0,1267,1268,5,98,0,0,1268,1269,5,108,0,0,1269,1270,5,101,0,0,1270,250,1,0,0,0,1271,1272,5,112,0,0,1272,1273,5,114,0,0,1273,1274,5,105,0,0,1274,1275,5,118,0,0,1275,1276,5,97,0,0,1276,1277,5,116,0,0,1277,1278,5,101,0,0,1278,252,1,0,0,0,1279,1280,5,112,0,0,1280,1281,5,117,0,0,1281,1282,5,98,0,0,1282,1283,5,108,0,0,1283,1284,5,105,0,0,1284,1285,5,99,0,0,1285,254,1,0,0,0,1286,1287,5,118,0,0,1287,1288,5,105,0,0,1288,1289,5,114,0,0,1289,1290,5,116,0,0,1290,1291,5,117,0,0,1291,1292,5,97,0,0,1292,1293,5,108,0,0,1293,256,1,0,0,0,1294,1295,5,112,0,0,1295,1296,5,117,0,0,1296,1297,5,114,0,0,1297,1298,5,101,0,0,1298,258,1,0,0,0,1299,1300,5,116,0,0,1300,1301,5,121,0,0,1301,1302,5,112,0,0,1302,1303,5,101,0,0,1303,260,1,0,0,0,1304,1305,5,118,0,0,1305,1306,5,105,0,0,1306,1307,5,101,0,0,1307,1308,5,119,0,0,1308,262,1,0,0,0,1309,1310,5,103,0,0,1310,1311,5,108,0,0,1311,1312,5,111,0,0,1312,1313,5,98,0,0,1313,1314,5,97,0,0,1314,1315,5,108,0,0,1315,264,1,0,0,0,1316,1317,5,99,0,0,1317,1318,5,111,0,0,1318,1319,5,110,0,0,1319,1320,5,115,0,0,1320,1321,5,116,0,0,1321,1322,5,114,0,0,1322,1323,5,117,0,0,1323,1324,5,99,0,0,1324,1325,5,116,0,0,1325,1326,5,111,0,0,1326,1327,5,114,0,0,1327,266,1,0,0,0,1328,1329,5,102,0,0,1329,1330,5,97,0,0,1330,1331,5,108,0,0,1331,1332,5,108,0,0,1332,1333,5,98,0,0,1333,1334,5,97,0,0,1334,1335,5,99,0,0,1335,1336,5,107,0,0,1336,268,1,0,0,0,1337,1338,5,114,0,0,1338,1339,5,101,0,0,1339,1340,5,99,0,0,1340,1341,5,101,0,0,1341,1342,5,105,0,0,1342,1343,5,118,0,0,1343,1344,5,101,0,0,1344,270,1,0,0,0,1345,1349,3,273,136,0,1346,1348,3,275,137,0,1347,1346,1,0,0,0,1348,1351,1,0,0,0,1349,1347,1,0,0,0,1349,1350,1,0,0,0,1350,272,1,0,0,0,1351,1349,1,0,0,0,1352,1353,7,7,0,0,1353,274,1,0,0,0,1354,1355,7,8,0,0,1355,276,1,0,0,0,1356,1357,5,117,0,0,1357,1358,5,110,0,0,1358,1359,5,105,0,0,1359,1360,5,99,0,0,1360,1361,5,111,0,0,1361,1362,5,100,0,0,1362,1364,5,101,0,0,1363,1356,1,0,0,0,1363,1364,1,0,0,0,1364,1381,1,0,0,0,1365,1369,5,34,0,0,1366,1368,3,279,139,0,1367,1366,1,0,0,0,1368,1371,1,0,0,0,1369,1367,1,0,0,0,1369,1370,1,0,0,0,1370,1372,1,0,0,0,1371,1369,1,0,0,0,1372,1382,5,34,0,0,1373,1377,5,39,0,0,1374,1376,3,281,140,0,1375,1374,1,0,0,0,1376,1379,1,0,0,0,1377,1375,1,0,0,0,1377,1378,1,0,0,0,1378,1380,1,0,0,0,1379,1377,1,0,0,0,1380,1382,5,39,0,0,1381,1365,1,0,0,0,1381,1373,1,0,0,0,1382,278,1,0,0,0,1383,1387,8,9,0,0,1384,1385,5,92,0,0,1385,1387,9,0,0,0,1386,1383,1,0,0,0,1386,1384,1,0,0,0,1387,280,1,0,0,0,1388,1392,8,10,0,0,1389,1390,5,92,0,0,1390,1392,9,0,0,0,1391,1388,1,0,0,0,1391,1389,1,0,0,0,1392,282,1,0,0,0,1393,1395,7,0,0,0,1394,1393,1,0,0,0,1395,1396,1,0,0,0,1396,1394,1,0,0,0,1396,1397,1,0,0,0,1397,1398,1,0,0,0,1398,1400,5,46,0,0,1399,1401,7,0,0,0,1400,1399,1,0,0,0,1401,1402,1,0,0,0,1402,1400,1,0,0,0,1402,1403,1,0,0,0,1403,1410,1,0,0,0,1404,1406,5,46,0,0,1405,1407,7,0,0,0,1406,1405,1,0,0,0,1407,1408,1,0,0,0,1408,1406,1,0,0,0,1408,1409,1,0,0,0,1409,1411,1,0,0,0,1410,1404,1,0,0,0,1410,1411,1,0,0,0,1411,284,1,0,0,0,1412,1414,7,11,0,0,1413,1412,1,0,0,0,1414,1415,1,0,0,0,1415,1413,1,0,0,0,1415,1416,1,0,0,0,1416,1417,1,0,0,0,1417,1418,6,142,0,0,1418,286,1,0,0,0,1419,1420,5,47,0,0,1420,1421,5,42,0,0,1421,1425,1,0,0,0,1422,1424,9,0,0,0,1423,1422,1,0,0,0,1424,1427,1,0,0,0,1425,1426,1,0,0,0,1425,1423,1,0,0,0,1426,1428,1,0,0,0,1427,1425,1,0,0,0,1428,1429,5,42,0,0,1429,1430,5,47,0,0,1430,1431,1,0,0,0,1431,1432,6,143,1,0,1432,288,1,0,0,0,1433,1434,5,47,0,0,1434,1435,5,47,0,0,1435,1439,1,0,0,0,1436,1438,8,12,0,0,1437,1436,1,0,0,0,1438,1441,1,0,0,0,1439,1437,1,0,0,0,1439,1440,1,0,0,0,1440,1442,1,0,0,0,1441,1439,1,0,0,0,1442,1443,6,144,1,0,1443,290,1,0,0,0,38,0,737,745,754,767,769,783,785,870,877,888,892,896,900,903,907,912,921,926,985,993,998,1001,1175,1349,1363,1369,1377,1381,1386,1391,1396,1402,1408,1410,1415,1425,1439,2,6,0,0,0,1,0],k.DecisionsToDFA=k._ATN.decisionToState.map(((t,e)=>new p(t,e)));var R=k,A=class t extends x{get grammarFileName(){return"Solidity.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}createFailedPredicateException(t,e){return new y(this,t,e)}constructor(e){super(e),this._interp=new b(this,t._ATN,t.DecisionsToDFA,new E)}sourceUnit(){let e,r=new L(this,this._ctx,this.state);this.enterRule(r,0,t.RULE_sourceUnit);try{for(this.enterOuterAlt(r,1),this.state=217,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&507273218||!(e-38&-32)&&1<<e-38&2080392501||!(e-97&-32)&&1<<e-97&3498573949||!(e-129&-32)&&1<<e-129&7;){switch(this.state=215,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,0,this._ctx)){case 1:this.state=204,this.pragmaDirective();break;case 2:this.state=205,this.importDirective();break;case 3:this.state=206,this.contractDefinition();break;case 4:this.state=207,this.enumDefinition();break;case 5:this.state=208,this.eventDefinition();break;case 6:this.state=209,this.structDefinition();break;case 7:this.state=210,this.functionDefinition();break;case 8:this.state=211,this.fileLevelConstant();break;case 9:this.state=212,this.customErrorDefinition();break;case 10:this.state=213,this.typeDefinition();break;case 11:this.state=214,this.usingForDeclaration()}this.state=219,this._errHandler.sync(this),e=this._input.LA(1)}this.state=220,this.match(t.EOF)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}pragmaDirective(){let e=new I(this,this._ctx,this.state);this.enterRule(e,2,t.RULE_pragmaDirective);try{this.enterOuterAlt(e,1),this.state=222,this.match(t.T__0),this.state=223,this.pragmaName(),this.state=224,this.pragmaValue(),this.state=225,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pragmaName(){let e=new K(this,this._ctx,this.state);this.enterRule(e,4,t.RULE_pragmaName);try{this.enterOuterAlt(e,1),this.state=227,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pragmaValue(){let e=new N(this,this._ctx,this.state);this.enterRule(e,6,t.RULE_pragmaValue);try{switch(this.state=232,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,2,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=229,this.match(t.T__2);break;case 2:this.enterOuterAlt(e,2),this.state=230,this.version();break;case 3:this.enterOuterAlt(e,3),this.state=231,this.expression(0)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}version(){let e,r=new D(this,this._ctx,this.state);this.enterRule(r,8,t.RULE_version);try{for(this.enterOuterAlt(r,1),this.state=234,this.versionConstraint(),this.state=241,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&4080||105===e||133===e;)this.state=236,this._errHandler.sync(this),e=this._input.LA(1),4===e&&(this.state=235,this.match(t.T__3)),this.state=238,this.versionConstraint(),this.state=243,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}versionOperator(){let e,r=new O(this,this._ctx,this.state);this.enterRule(r,10,t.RULE_versionOperator);try{this.enterOuterAlt(r,1),this.state=244,e=this._input.LA(1),-32&e||!(1<<e&4064)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}versionConstraint(){let e,r=new P(this,this._ctx,this.state);this.enterRule(r,12,t.RULE_versionConstraint);try{switch(this.state=254,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(r,1),this.state=247,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&4064&&(this.state=246,this.versionOperator()),this.state=249,this.match(t.VersionLiteral);break;case 2:this.enterOuterAlt(r,2),this.state=251,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&4064&&(this.state=250,this.versionOperator()),this.state=253,this.match(t.DecimalNumber)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}importDeclaration(){let e,r=new q(this,this._ctx,this.state);this.enterRule(r,14,t.RULE_importDeclaration);try{this.enterOuterAlt(r,1),this.state=256,this.identifier(),this.state=259,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=257,this.match(t.T__11),this.state=258,this.identifier())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}importDirective(){let e,r=new F(this,this._ctx,this.state);this.enterRule(r,16,t.RULE_importDirective);try{switch(this.state=297,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.enterOuterAlt(r,1),this.state=261,this.match(t.T__12),this.state=262,this.importPath(),this.state=265,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=263,this.match(t.T__11),this.state=264,this.identifier()),this.state=267,this.match(t.T__1);break;case 2:switch(this.enterOuterAlt(r,2),this.state=269,this.match(t.T__12),this.state=272,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=270,this.match(t.T__2);break;case 14:case 25:case 26:case 27:case 46:case 52:case 64:case 97:case 116:case 120:case 127:case 128:case 130:case 131:this.state=271,this.identifier();break;default:throw new w(this)}this.state=276,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=274,this.match(t.T__11),this.state=275,this.identifier()),this.state=278,this.match(t.T__13),this.state=279,this.importPath(),this.state=280,this.match(t.T__1);break;case 3:for(this.enterOuterAlt(r,3),this.state=282,this.match(t.T__12),this.state=283,this.match(t.T__14),this.state=284,this.importDeclaration(),this.state=289,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=285,this.match(t.T__15),this.state=286,this.importDeclaration(),this.state=291,this._errHandler.sync(this),e=this._input.LA(1);this.state=292,this.match(t.T__16),this.state=293,this.match(t.T__13),this.state=294,this.importPath(),this.state=295,this.match(t.T__1)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}importPath(){let e=new U(this,this._ctx,this.state);this.enterRule(e,18,t.RULE_importPath);try{this.enterOuterAlt(e,1),this.state=299,this.match(t.StringLiteralFragment)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}contractDefinition(){let e,r=new M(this,this._ctx,this.state);this.enterRule(r,20,t.RULE_contractDefinition);try{if(this.enterOuterAlt(r,1),this.state=302,this._errHandler.sync(this),e=this._input.LA(1),18===e&&(this.state=301,this.match(t.T__17)),this.state=304,e=this._input.LA(1),-32&e||!(1<<e&3670016)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=305,this.identifier(),this.state=307,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,15,this._ctx)&&(this.state=306,this.customStorageLayout()),this.state=318,this._errHandler.sync(this),e=this._input.LA(1),22===e)for(this.state=309,this.match(t.T__21),this.state=310,this.inheritanceSpecifier(),this.state=315,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=311,this.match(t.T__15),this.state=312,this.inheritanceSpecifier(),this.state=317,this._errHandler.sync(this),e=this._input.LA(1);for(this.state=321,this._errHandler.sync(this),e=this._input.LA(1),25===e&&(this.state=320,this.customStorageLayout()),this.state=323,this.match(t.T__14),this.state=327,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&503332864||!(e-38&-32)&&1<<e-38&2080392503||!(e-97&-32)&&1<<e-97&3498573949||!(e-129&-32)&&1<<e-129&7;)this.state=324,this.contractPart(),this.state=329,this._errHandler.sync(this),e=this._input.LA(1);this.state=330,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}inheritanceSpecifier(){let e,r=new Y(this,this._ctx,this.state);this.enterRule(r,22,t.RULE_inheritanceSpecifier);try{this.enterOuterAlt(r,1),this.state=332,this.userDefinedTypeName(),this.state=338,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=333,this.match(t.T__22),this.state=335,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=334,this.expressionList()),this.state=337,this.match(t.T__23))}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}customStorageLayout(){let e=new V(this,this._ctx,this.state);this.enterRule(e,24,t.RULE_customStorageLayout);try{this.enterOuterAlt(e,1),this.state=340,this.match(t.T__24),this.state=341,this.match(t.T__25),this.state=342,this.expression(0)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}contractPart(){let e=new j(this,this._ctx,this.state);this.enterRule(e,26,t.RULE_contractPart);try{switch(this.state=353,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,22,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=344,this.stateVariableDeclaration();break;case 2:this.enterOuterAlt(e,2),this.state=345,this.usingForDeclaration();break;case 3:this.enterOuterAlt(e,3),this.state=346,this.structDefinition();break;case 4:this.enterOuterAlt(e,4),this.state=347,this.modifierDefinition();break;case 5:this.enterOuterAlt(e,5),this.state=348,this.functionDefinition();break;case 6:this.enterOuterAlt(e,6),this.state=349,this.eventDefinition();break;case 7:this.enterOuterAlt(e,7),this.state=350,this.enumDefinition();break;case 8:this.enterOuterAlt(e,8),this.state=351,this.customErrorDefinition();break;case 9:this.enterOuterAlt(e,9),this.state=352,this.typeDefinition()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}stateVariableDeclaration(){let e,r=new B(this,this._ctx,this.state);this.enterRule(r,28,t.RULE_stateVariableDeclaration);try{for(this.enterOuterAlt(r,1),this.state=355,this.typeName(0),this.state=365,this._errHandler.sync(this),e=this._input.LA(1);!(e-98&-32)&&1<<e-98&27377665;){switch(this.state=363,this._errHandler.sync(this),this._input.LA(1)){case 122:this.state=356,this.match(t.PublicKeyword);break;case 119:this.state=357,this.match(t.InternalKeyword);break;case 121:this.state=358,this.match(t.PrivateKeyword);break;case 112:this.state=359,this.match(t.ConstantKeyword);break;case 113:this.state=360,this.match(t.TransientKeyword);break;case 114:this.state=361,this.match(t.ImmutableKeyword);break;case 98:this.state=362,this.overrideSpecifier();break;default:throw new w(this)}this.state=367,this._errHandler.sync(this),e=this._input.LA(1)}this.state=368,this.identifier(),this.state=371,this._errHandler.sync(this),e=this._input.LA(1),11===e&&(this.state=369,this.match(t.T__10),this.state=370,this.expression(0)),this.state=373,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}fileLevelConstant(){let e=new H(this,this._ctx,this.state);this.enterRule(e,30,t.RULE_fileLevelConstant);try{this.enterOuterAlt(e,1),this.state=375,this.typeName(0),this.state=376,this.match(t.ConstantKeyword),this.state=377,this.identifier(),this.state=378,this.match(t.T__10),this.state=379,this.expression(0),this.state=380,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}customErrorDefinition(){let e=new $(this,this._ctx,this.state);this.enterRule(e,32,t.RULE_customErrorDefinition);try{this.enterOuterAlt(e,1),this.state=382,this.match(t.T__26),this.state=383,this.identifier(),this.state=384,this.parameterList(),this.state=385,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}typeDefinition(){let e=new Q(this,this._ctx,this.state);this.enterRule(e,34,t.RULE_typeDefinition);try{this.enterOuterAlt(e,1),this.state=387,this.match(t.TypeKeyword),this.state=388,this.identifier(),this.state=389,this.match(t.T__21),this.state=390,this.elementaryTypeName(),this.state=391,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}usingForDeclaration(){let e,r=new G(this,this._ctx,this.state);this.enterRule(r,36,t.RULE_usingForDeclaration);try{switch(this.enterOuterAlt(r,1),this.state=393,this.match(t.T__27),this.state=394,this.usingForObject(),this.state=395,this.match(t.T__28),this.state=398,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=396,this.match(t.T__2);break;case 14:case 25:case 26:case 27:case 40:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 97:case 99:case 100:case 101:case 102:case 103:case 116:case 120:case 127:case 128:case 130:case 131:this.state=397,this.typeName(0);break;default:throw new w(this)}this.state=401,this._errHandler.sync(this),e=this._input.LA(1),127===e&&(this.state=400,this.match(t.GlobalKeyword)),this.state=403,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}usingForObject(){let e,r=new W(this,this._ctx,this.state);this.enterRule(r,38,t.RULE_usingForObject);try{switch(this.state=417,this._errHandler.sync(this),this._input.LA(1)){case 14:case 25:case 26:case 27:case 46:case 52:case 64:case 97:case 116:case 120:case 127:case 128:case 130:case 131:this.enterOuterAlt(r,1),this.state=405,this.userDefinedTypeName();break;case 15:for(this.enterOuterAlt(r,2),this.state=406,this.match(t.T__14),this.state=407,this.usingForObjectDirective(),this.state=412,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=408,this.match(t.T__15),this.state=409,this.usingForObjectDirective(),this.state=414,this._errHandler.sync(this),e=this._input.LA(1);this.state=415,this.match(t.T__16);break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}usingForObjectDirective(){let e,r=new z(this,this._ctx,this.state);this.enterRule(r,40,t.RULE_usingForObjectDirective);try{this.enterOuterAlt(r,1),this.state=419,this.userDefinedTypeName(),this.state=422,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=420,this.match(t.T__11),this.state=421,this.userDefinableOperators())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}userDefinableOperators(){let e,r=new X(this,this._ctx,this.state);this.enterRule(r,42,t.RULE_userDefinableOperators);try{this.enterOuterAlt(r,1),this.state=424,e=this._input.LA(1),!(-32&e)&&1<<e&3221227496||!(e-32&-32)&&1<<e-32&63?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}structDefinition(){let e,r=new J(this,this._ctx,this.state);this.enterRule(r,44,t.RULE_structDefinition);try{if(this.enterOuterAlt(r,1),this.state=426,this.match(t.T__37),this.state=427,this.identifier(),this.state=428,this.match(t.T__14),this.state=439,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)for(this.state=429,this.variableDeclaration(),this.state=430,this.match(t.T__1),this.state=436,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e;)this.state=431,this.variableDeclaration(),this.state=432,this.match(t.T__1),this.state=438,this._errHandler.sync(this),e=this._input.LA(1);this.state=441,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}modifierDefinition(){let e,r=new Z(this,this._ctx,this.state);this.enterRule(r,46,t.RULE_modifierDefinition);try{for(this.enterOuterAlt(r,1),this.state=443,this.match(t.T__38),this.state=444,this.identifier(),this.state=446,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=445,this.parameterList()),this.state=452,this._errHandler.sync(this),e=this._input.LA(1);98===e||123===e;){switch(this.state=450,this._errHandler.sync(this),this._input.LA(1)){case 123:this.state=448,this.match(t.VirtualKeyword);break;case 98:this.state=449,this.overrideSpecifier();break;default:throw new w(this)}this.state=454,this._errHandler.sync(this),e=this._input.LA(1)}switch(this.state=457,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=455,this.match(t.T__1);break;case 15:this.state=456,this.block();break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}modifierInvocation(){let e,r=new tt(this,this._ctx,this.state);this.enterRule(r,48,t.RULE_modifierInvocation);try{this.enterOuterAlt(r,1),this.state=459,this.identifier(),this.state=465,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=460,this.match(t.T__22),this.state=462,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=461,this.expressionList()),this.state=464,this.match(t.T__23))}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionDefinition(){let e,r=new et(this,this._ctx,this.state);this.enterRule(r,50,t.RULE_functionDefinition);try{switch(this.enterOuterAlt(r,1),this.state=467,this.functionDescriptor(),this.state=468,this.parameterList(),this.state=469,this.modifierList(),this.state=471,this._errHandler.sync(this),e=this._input.LA(1),41===e&&(this.state=470,this.returnParameters()),this.state=475,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=473,this.match(t.T__1);break;case 15:this.state=474,this.block();break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionDescriptor(){let e,r=new rt(this,this._ctx,this.state);this.enterRule(r,52,t.RULE_functionDescriptor);try{switch(this.state=484,this._errHandler.sync(this),this._input.LA(1)){case 40:this.enterOuterAlt(r,1),this.state=477,this.match(t.T__39),this.state=479,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=478,this.identifier());break;case 128:this.enterOuterAlt(r,2),this.state=481,this.match(t.ConstructorKeyword);break;case 129:this.enterOuterAlt(r,3),this.state=482,this.match(t.FallbackKeyword);break;case 130:this.enterOuterAlt(r,4),this.state=483,this.match(t.ReceiveKeyword);break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}returnParameters(){let e=new st(this,this._ctx,this.state);this.enterRule(e,54,t.RULE_returnParameters);try{this.enterOuterAlt(e,1),this.state=486,this.match(t.T__40),this.state=487,this.parameterList()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}modifierList(){let e,r=new it(this,this._ctx,this.state);this.enterRule(r,56,t.RULE_modifierList);try{for(this.enterOuterAlt(r,1),this.state=499,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&4023943171||130===e||131===e;){switch(this.state=497,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,43,this._ctx)){case 1:this.state=489,this.match(t.ExternalKeyword);break;case 2:this.state=490,this.match(t.PublicKeyword);break;case 3:this.state=491,this.match(t.InternalKeyword);break;case 4:this.state=492,this.match(t.PrivateKeyword);break;case 5:this.state=493,this.match(t.VirtualKeyword);break;case 6:this.state=494,this.stateMutability();break;case 7:this.state=495,this.modifierInvocation();break;case 8:this.state=496,this.overrideSpecifier()}this.state=501,this._errHandler.sync(this),e=this._input.LA(1)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}eventDefinition(){let e,r=new nt(this,this._ctx,this.state);this.enterRule(r,58,t.RULE_eventDefinition);try{this.enterOuterAlt(r,1),this.state=502,this.match(t.T__41),this.state=503,this.identifier(),this.state=504,this.eventParameterList(),this.state=506,this._errHandler.sync(this),e=this._input.LA(1),110===e&&(this.state=505,this.match(t.AnonymousKeyword)),this.state=508,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}enumValue(){let e=new at(this,this._ctx,this.state);this.enterRule(e,60,t.RULE_enumValue);try{this.enterOuterAlt(e,1),this.state=510,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}enumDefinition(){let e,r=new ot(this,this._ctx,this.state);this.enterRule(r,62,t.RULE_enumDefinition);try{for(this.enterOuterAlt(r,1),this.state=512,this.match(t.T__42),this.state=513,this.identifier(),this.state=514,this.match(t.T__14),this.state=516,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=515,this.enumValue()),this.state=522,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=518,this.match(t.T__15),this.state=519,this.enumValue(),this.state=524,this._errHandler.sync(this),e=this._input.LA(1);this.state=525,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}parameterList(){let e,r=new ct(this,this._ctx,this.state);this.enterRule(r,64,t.RULE_parameterList);try{if(this.enterOuterAlt(r,1),this.state=527,this.match(t.T__22),this.state=536,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)for(this.state=528,this.parameter(),this.state=533,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=529,this.match(t.T__15),this.state=530,this.parameter(),this.state=535,this._errHandler.sync(this),e=this._input.LA(1);this.state=538,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}parameter(){let e,r=new lt(this,this._ctx,this.state);this.enterRule(r,66,t.RULE_parameter);try{this.enterOuterAlt(r,1),this.state=540,this.typeName(0),this.state=542,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,50,this._ctx)&&(this.state=541,this.storageLocation()),this.state=545,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=544,this.identifier())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}eventParameterList(){let e,r=new ht(this,this._ctx,this.state);this.enterRule(r,68,t.RULE_eventParameterList);try{if(this.enterOuterAlt(r,1),this.state=547,this.match(t.T__22),this.state=556,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)for(this.state=548,this.eventParameter(),this.state=553,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=549,this.match(t.T__15),this.state=550,this.eventParameter(),this.state=555,this._errHandler.sync(this),e=this._input.LA(1);this.state=558,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}eventParameter(){let e,r=new ut(this,this._ctx,this.state);this.enterRule(r,70,t.RULE_eventParameter);try{this.enterOuterAlt(r,1),this.state=560,this.typeName(0),this.state=562,this._errHandler.sync(this),e=this._input.LA(1),118===e&&(this.state=561,this.match(t.IndexedKeyword)),this.state=565,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=564,this.identifier())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionTypeParameterList(){let e,r=new dt(this,this._ctx,this.state);this.enterRule(r,72,t.RULE_functionTypeParameterList);try{if(this.enterOuterAlt(r,1),this.state=567,this.match(t.T__22),this.state=576,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)for(this.state=568,this.functionTypeParameter(),this.state=573,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=569,this.match(t.T__15),this.state=570,this.functionTypeParameter(),this.state=575,this._errHandler.sync(this),e=this._input.LA(1);this.state=578,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionTypeParameter(){let e,r=new pt(this,this._ctx,this.state);this.enterRule(r,74,t.RULE_functionTypeParameter);try{this.enterOuterAlt(r,1),this.state=580,this.typeName(0),this.state=582,this._errHandler.sync(this),e=this._input.LA(1),!(e-50&-32)&&1<<e-50&7&&(this.state=581,this.storageLocation())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}variableDeclaration(){let e=new mt(this,this._ctx,this.state);this.enterRule(e,76,t.RULE_variableDeclaration);try{this.enterOuterAlt(e,1),this.state=584,this.typeName(0),this.state=586,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,59,this._ctx)&&(this.state=585,this.storageLocation()),this.state=588,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}typeName(e){void 0===e&&(e=0);let r,s=this._ctx,i=this.state,n=new yt(this,this._ctx,i),a=n;this.enterRecursionRule(n,78,t.RULE_typeName,e);try{let e;switch(this.enterOuterAlt(n,1),this.state=597,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,60,this._ctx)){case 1:this.state=591,this.elementaryTypeName();break;case 2:this.state=592,this.userDefinedTypeName();break;case 3:this.state=593,this.mapping();break;case 4:this.state=594,this.functionTypeName();break;case 5:this.state=595,this.match(t.T__45),this.state=596,this.match(t.PayableKeyword)}for(this._ctx.stop=this._input.LT(-1),this.state=607,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,62,this._ctx);2!==e&&e!==l.INVALID_ALT_NUMBER;){if(1===e){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),a=n,n=new yt(this,s,i),this.pushNewRecursionContext(n,78,t.RULE_typeName),this.state=599,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=600,this.match(t.T__43),this.state=602,this._errHandler.sync(this),r=this._input.LA(1),(!(r-6&-32)&&1<<r-6&205127937||!(r-40&-32)&&1<<r-40&4278194513||!(r-73&-32)&&1<<r-73&4244635651||!(r-105&-32)&&1<<r-105&248547339)&&(this.state=601,this.expression(0)),this.state=604,this.match(t.T__44)}this.state=609,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,62,this._ctx)}}catch(t){if(!(t instanceof T))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(s)}return n}userDefinedTypeName(){let e=new ft(this,this._ctx,this.state);this.enterRule(e,80,t.RULE_userDefinedTypeName);try{let r;for(this.enterOuterAlt(e,1),this.state=610,this.identifier(),this.state=615,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,63,this._ctx);2!==r&&r!==l.INVALID_ALT_NUMBER;)1===r&&(this.state=611,this.match(t.T__46),this.state=612,this.identifier()),this.state=617,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,63,this._ctx)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mappingKey(){let e=new gt(this,this._ctx,this.state);this.enterRule(e,82,t.RULE_mappingKey);try{switch(this.state=620,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,64,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=618,this.elementaryTypeName();break;case 2:this.enterOuterAlt(e,2),this.state=619,this.userDefinedTypeName()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mapping(){let e,r=new wt(this,this._ctx,this.state);this.enterRule(r,84,t.RULE_mapping);try{this.enterOuterAlt(r,1),this.state=622,this.match(t.T__47),this.state=623,this.match(t.T__22),this.state=624,this.mappingKey(),this.state=626,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=625,this.mappingKeyName()),this.state=628,this.match(t.T__48),this.state=629,this.typeName(0),this.state=631,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=630,this.mappingValueName()),this.state=633,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}mappingKeyName(){let e=new vt(this,this._ctx,this.state);this.enterRule(e,86,t.RULE_mappingKeyName);try{this.enterOuterAlt(e,1),this.state=635,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mappingValueName(){let e=new xt(this,this._ctx,this.state);this.enterRule(e,88,t.RULE_mappingValueName);try{this.enterOuterAlt(e,1),this.state=637,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionTypeName(){let e=new bt(this,this._ctx,this.state);this.enterRule(e,90,t.RULE_functionTypeName);try{let r;for(this.enterOuterAlt(e,1),this.state=639,this.match(t.T__39),this.state=640,this.functionTypeParameterList(),this.state=646,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,68,this._ctx);2!==r&&r!==l.INVALID_ALT_NUMBER;){if(1===r)switch(this.state=644,this._errHandler.sync(this),this._input.LA(1)){case 119:this.state=641,this.match(t.InternalKeyword);break;case 117:this.state=642,this.match(t.ExternalKeyword);break;case 112:case 120:case 124:case 126:this.state=643,this.stateMutability();break;default:throw new w(this)}this.state=648,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,68,this._ctx)}this.state=651,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,69,this._ctx)&&(this.state=649,this.match(t.T__40),this.state=650,this.functionTypeParameterList())}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}storageLocation(){let e,r=new _t(this,this._ctx,this.state);this.enterRule(r,92,t.RULE_storageLocation);try{this.enterOuterAlt(r,1),this.state=653,e=this._input.LA(1),e-50&-32||!(1<<e-50&7)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}stateMutability(){let e,r=new Et(this,this._ctx,this.state);this.enterRule(r,94,t.RULE_stateMutability);try{this.enterOuterAlt(r,1),this.state=655,e=this._input.LA(1),e-112&-32||!(1<<e-112&20737)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}block(){let e,r=new Tt(this,this._ctx,this.state);this.enterRule(r,96,t.RULE_block);try{for(this.enterOuterAlt(r,1),this.state=657,this.match(t.T__14),this.state=661,this._errHandler.sync(this),e=this._input.LA(1);!(e-6&-32)&&1<<e-6&213517057||!(e-40&-32)&&1<<e-40&4294881617||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248548427;)this.state=658,this.statement(),this.state=663,this._errHandler.sync(this),e=this._input.LA(1);this.state=664,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}statement(){let e=new St(this,this._ctx,this.state);this.enterRule(e,98,t.RULE_statement);try{switch(this.state=681,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,71,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=666,this.ifStatement();break;case 2:this.enterOuterAlt(e,2),this.state=667,this.tryStatement();break;case 3:this.enterOuterAlt(e,3),this.state=668,this.whileStatement();break;case 4:this.enterOuterAlt(e,4),this.state=669,this.forStatement();break;case 5:this.enterOuterAlt(e,5),this.state=670,this.block();break;case 6:this.enterOuterAlt(e,6),this.state=671,this.inlineAssemblyStatement();break;case 7:this.enterOuterAlt(e,7),this.state=672,this.doWhileStatement();break;case 8:this.enterOuterAlt(e,8),this.state=673,this.continueStatement();break;case 9:this.enterOuterAlt(e,9),this.state=674,this.breakStatement();break;case 10:this.enterOuterAlt(e,10),this.state=675,this.returnStatement();break;case 11:this.enterOuterAlt(e,11),this.state=676,this.throwStatement();break;case 12:this.enterOuterAlt(e,12),this.state=677,this.emitStatement();break;case 13:this.enterOuterAlt(e,13),this.state=678,this.simpleStatement();break;case 14:this.enterOuterAlt(e,14),this.state=679,this.uncheckedStatement();break;case 15:this.enterOuterAlt(e,15),this.state=680,this.revertStatement()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expressionStatement(){let e=new kt(this,this._ctx,this.state);this.enterRule(e,100,t.RULE_expressionStatement);try{this.enterOuterAlt(e,1),this.state=683,this.expression(0),this.state=684,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}ifStatement(){let e=new Rt(this,this._ctx,this.state);this.enterRule(e,102,t.RULE_ifStatement);try{this.enterOuterAlt(e,1),this.state=686,this.match(t.T__52),this.state=687,this.match(t.T__22),this.state=688,this.expression(0),this.state=689,this.match(t.T__23),this.state=690,this.statement(),this.state=693,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,72,this._ctx)&&(this.state=691,this.match(t.T__53),this.state=692,this.statement())}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}tryStatement(){let e,r=new At(this,this._ctx,this.state);this.enterRule(r,104,t.RULE_tryStatement);try{this.enterOuterAlt(r,1),this.state=695,this.match(t.T__54),this.state=696,this.expression(0),this.state=698,this._errHandler.sync(this),e=this._input.LA(1),41===e&&(this.state=697,this.returnParameters()),this.state=700,this.block(),this.state=702,this._errHandler.sync(this),e=this._input.LA(1);do{this.state=701,this.catchClause(),this.state=704,this._errHandler.sync(this),e=this._input.LA(1)}while(56===e)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}catchClause(){let e,r=new Ct(this,this._ctx,this.state);this.enterRule(r,106,t.RULE_catchClause);try{this.enterOuterAlt(r,1),this.state=706,this.match(t.T__55),this.state=711,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&243286016||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=708,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=707,this.identifier()),this.state=710,this.parameterList()),this.state=713,this.block()}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}whileStatement(){let e=new Lt(this,this._ctx,this.state);this.enterRule(e,108,t.RULE_whileStatement);try{this.enterOuterAlt(e,1),this.state=715,this.match(t.T__56),this.state=716,this.match(t.T__22),this.state=717,this.expression(0),this.state=718,this.match(t.T__23),this.state=719,this.statement()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}simpleStatement(){let e=new It(this,this._ctx,this.state);this.enterRule(e,110,t.RULE_simpleStatement);try{switch(this.enterOuterAlt(e,1),this.state=723,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,77,this._ctx)){case 1:this.state=721,this.variableDeclarationStatement();break;case 2:this.state=722,this.expressionStatement()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}uncheckedStatement(){let e=new Kt(this,this._ctx,this.state);this.enterRule(e,112,t.RULE_uncheckedStatement);try{this.enterOuterAlt(e,1),this.state=725,this.match(t.T__57),this.state=726,this.block()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}forStatement(){let e,r=new Nt(this,this._ctx,this.state);this.enterRule(r,114,t.RULE_forStatement);try{switch(this.enterOuterAlt(r,1),this.state=728,this.match(t.T__28),this.state=729,this.match(t.T__22),this.state=732,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.state=730,this.simpleStatement();break;case 2:this.state=731,this.match(t.T__1);break;default:throw new w(this)}switch(this.state=736,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.state=734,this.expressionStatement();break;case 2:this.state=735,this.match(t.T__1);break;default:throw new w(this)}this.state=739,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=738,this.expression(0)),this.state=741,this.match(t.T__23),this.state=742,this.statement()}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}inlineAssemblyStatement(){let e,r=new Dt(this,this._ctx,this.state);this.enterRule(r,116,t.RULE_inlineAssemblyStatement);try{this.enterOuterAlt(r,1),this.state=744,this.match(t.T__58),this.state=746,this._errHandler.sync(this),e=this._input.LA(1),132===e&&(this.state=745,this.match(t.StringLiteralFragment)),this.state=752,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=748,this.match(t.T__22),this.state=749,this.inlineAssemblyStatementFlag(),this.state=750,this.match(t.T__23)),this.state=754,this.assemblyBlock()}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}inlineAssemblyStatementFlag(){let e=new Ot(this,this._ctx,this.state);this.enterRule(e,118,t.RULE_inlineAssemblyStatementFlag);try{this.enterOuterAlt(e,1),this.state=756,this.stringLiteral()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}doWhileStatement(){let e=new Pt(this,this._ctx,this.state);this.enterRule(e,120,t.RULE_doWhileStatement);try{this.enterOuterAlt(e,1),this.state=758,this.match(t.T__59),this.state=759,this.statement(),this.state=760,this.match(t.T__56),this.state=761,this.match(t.T__22),this.state=762,this.expression(0),this.state=763,this.match(t.T__23),this.state=764,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}continueStatement(){let e=new qt(this,this._ctx,this.state);this.enterRule(e,122,t.RULE_continueStatement);try{this.enterOuterAlt(e,1),this.state=766,this.match(t.ContinueKeyword),this.state=767,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}breakStatement(){let e=new Ft(this,this._ctx,this.state);this.enterRule(e,124,t.RULE_breakStatement);try{this.enterOuterAlt(e,1),this.state=769,this.match(t.BreakKeyword),this.state=770,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}returnStatement(){let e,r=new Ut(this,this._ctx,this.state);this.enterRule(r,126,t.RULE_returnStatement);try{this.enterOuterAlt(r,1),this.state=772,this.match(t.T__60),this.state=774,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=773,this.expression(0)),this.state=776,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}throwStatement(){let e=new Mt(this,this._ctx,this.state);this.enterRule(e,128,t.RULE_throwStatement);try{this.enterOuterAlt(e,1),this.state=778,this.match(t.T__61),this.state=779,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}emitStatement(){let e=new Yt(this,this._ctx,this.state);this.enterRule(e,130,t.RULE_emitStatement);try{this.enterOuterAlt(e,1),this.state=781,this.match(t.T__62),this.state=782,this.functionCall(),this.state=783,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}revertStatement(){let e=new Vt(this,this._ctx,this.state);this.enterRule(e,132,t.RULE_revertStatement);try{this.enterOuterAlt(e,1),this.state=785,this.match(t.T__63),this.state=786,this.functionCall(),this.state=787,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}variableDeclarationStatement(){let e,r=new jt(this,this._ctx,this.state);this.enterRule(r,134,t.RULE_variableDeclarationStatement);try{switch(this.enterOuterAlt(r,1),this.state=796,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,84,this._ctx)){case 1:this.state=789,this.match(t.T__64),this.state=790,this.identifierList();break;case 2:this.state=791,this.variableDeclaration();break;case 3:this.state=792,this.match(t.T__22),this.state=793,this.variableDeclarationList(),this.state=794,this.match(t.T__23)}this.state=800,this._errHandler.sync(this),e=this._input.LA(1),11===e&&(this.state=798,this.match(t.T__10),this.state=799,this.expression(0)),this.state=802,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}variableDeclarationList(){let e,r=new Bt(this,this._ctx,this.state);this.enterRule(r,136,t.RULE_variableDeclarationList);try{for(this.enterOuterAlt(r,1),this.state=805,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)&&(this.state=804,this.variableDeclaration()),this.state=813,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=807,this.match(t.T__15),this.state=809,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)&&(this.state=808,this.variableDeclaration()),this.state=815,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}identifierList(){let e,r=new Ht(this,this._ctx,this.state);this.enterRule(r,138,t.RULE_identifierList);try{let s;for(this.enterOuterAlt(r,1),this.state=816,this.match(t.T__22),this.state=823,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,90,this._ctx);2!==s&&s!==l.INVALID_ALT_NUMBER;)1===s&&(this.state=818,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=817,this.identifier()),this.state=820,this.match(t.T__15)),this.state=825,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,90,this._ctx);this.state=827,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=826,this.identifier()),this.state=829,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}elementaryTypeName(){let e,r=new $t(this,this._ctx,this.state);this.enterRule(r,140,t.RULE_elementaryTypeName);try{this.enterOuterAlt(r,1),this.state=831,e=this._input.LA(1),!(e-46&-32)&&1<<e-46&7864321||!(e-99&-32)&&1<<e-99&31?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}expression(e){void 0===e&&(e=0);let r,s=this._ctx,i=this.state,n=new Qt(this,this._ctx,i),a=n,o=142;this.enterRecursionRule(n,142,t.RULE_expression,e);try{let e;switch(this.enterOuterAlt(n,1),this.state=851,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,92,this._ctx)){case 1:this.state=834,this.match(t.T__70),this.state=835,this.typeName(0);break;case 2:this.state=836,this.match(t.T__22),this.state=837,this.expression(0),this.state=838,this.match(t.T__23);break;case 3:this.state=840,r=this._input.LA(1),69!==r&&70!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=841,this.expression(19);break;case 4:this.state=842,r=this._input.LA(1),32!==r&&33!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=843,this.expression(18);break;case 5:this.state=844,this.match(t.T__72),this.state=845,this.expression(17);break;case 6:this.state=846,this.match(t.T__73),this.state=847,this.expression(16);break;case 7:this.state=848,this.match(t.T__5),this.state=849,this.expression(15);break;case 8:this.state=850,this.primaryExpression()}for(this._ctx.stop=this._input.LT(-1),this.state=927,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,96,this._ctx);2!==e&&e!==l.INVALID_ALT_NUMBER;){if(1===e)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),a=n,this.state=925,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,95,this._ctx)){case 1:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=853,!this.precpred(this._ctx,14))throw this.createFailedPredicateException("this.precpred(this._ctx, 14)");this.state=854,this.match(t.T__74),this.state=855,this.expression(14);break;case 2:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=856,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=857,r=this._input.LA(1),3!==r&&34!==r&&35!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=858,this.expression(14);break;case 3:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=859,!this.precpred(this._ctx,12))throw this.createFailedPredicateException("this.precpred(this._ctx, 12)");this.state=860,r=this._input.LA(1),32!==r&&33!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=861,this.expression(13);break;case 4:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=862,!this.precpred(this._ctx,11))throw this.createFailedPredicateException("this.precpred(this._ctx, 11)");this.state=863,r=this._input.LA(1),76!==r&&77!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=864,this.expression(12);break;case 5:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=865,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=866,this.match(t.T__30),this.state=867,this.expression(11);break;case 6:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=868,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=869,this.match(t.T__4),this.state=870,this.expression(10);break;case 7:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=871,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=872,this.match(t.T__29),this.state=873,this.expression(9);break;case 8:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=874,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=875,r=this._input.LA(1),-32&r||!(1<<r&1920)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=876,this.expression(8);break;case 9:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=877,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=878,r=this._input.LA(1),36!==r&&37!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=879,this.expression(7);break;case 10:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=880,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=881,this.match(t.T__77),this.state=882,this.expression(6);break;case 11:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=883,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=884,this.match(t.T__3),this.state=885,this.expression(5);break;case 12:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=886,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=887,this.match(t.T__78),this.state=888,this.expression(0),this.state=889,this.match(t.T__71),this.state=890,this.expression(3);break;case 13:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=892,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=893,r=this._input.LA(1),11===r||!(r-80&-32)&&1<<r-80&1023?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=894,this.expression(3);break;case 14:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=895,!this.precpred(this._ctx,27))throw this.createFailedPredicateException("this.precpred(this._ctx, 27)");this.state=896,r=this._input.LA(1),69!==r&&70!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume());break;case 15:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=897,!this.precpred(this._ctx,25))throw this.createFailedPredicateException("this.precpred(this._ctx, 25)");this.state=898,this.match(t.T__43),this.state=899,this.expression(0),this.state=900,this.match(t.T__44);break;case 16:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=902,!this.precpred(this._ctx,24))throw this.createFailedPredicateException("this.precpred(this._ctx, 24)");this.state=903,this.match(t.T__43),this.state=905,this._errHandler.sync(this),r=this._input.LA(1),(!(r-6&-32)&&1<<r-6&205127937||!(r-40&-32)&&1<<r-40&4278194513||!(r-73&-32)&&1<<r-73&4244635651||!(r-105&-32)&&1<<r-105&248547339)&&(this.state=904,this.expression(0)),this.state=907,this.match(t.T__71),this.state=909,this._errHandler.sync(this),r=this._input.LA(1),(!(r-6&-32)&&1<<r-6&205127937||!(r-40&-32)&&1<<r-40&4278194513||!(r-73&-32)&&1<<r-73&4244635651||!(r-105&-32)&&1<<r-105&248547339)&&(this.state=908,this.expression(0)),this.state=911,this.match(t.T__44);break;case 17:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=912,!this.precpred(this._ctx,23))throw this.createFailedPredicateException("this.precpred(this._ctx, 23)");this.state=913,this.match(t.T__46),this.state=914,this.identifier();break;case 18:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=915,!this.precpred(this._ctx,22))throw this.createFailedPredicateException("this.precpred(this._ctx, 22)");this.state=916,this.match(t.T__14),this.state=917,this.nameValueList(),this.state=918,this.match(t.T__16);break;case 19:if(n=new Qt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=920,!this.precpred(this._ctx,21))throw this.createFailedPredicateException("this.precpred(this._ctx, 21)");this.state=921,this.match(t.T__22),this.state=922,this.functionCallArguments(),this.state=923,this.match(t.T__23)}this.state=929,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,96,this._ctx)}}catch(t){if(!(t instanceof T))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(s)}return n}primaryExpression(){let e=new Gt(this,this._ctx,this.state);this.enterRule(e,144,t.RULE_primaryExpression);try{switch(this.state=939,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,97,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=930,this.match(t.BooleanLiteral);break;case 2:this.enterOuterAlt(e,2),this.state=931,this.numberLiteral();break;case 3:this.enterOuterAlt(e,3),this.state=932,this.hexLiteral();break;case 4:this.enterOuterAlt(e,4),this.state=933,this.stringLiteral();break;case 5:this.enterOuterAlt(e,5),this.state=934,this.identifier();break;case 6:this.enterOuterAlt(e,6),this.state=935,this.match(t.TypeKeyword);break;case 7:this.enterOuterAlt(e,7),this.state=936,this.match(t.PayableKeyword);break;case 8:this.enterOuterAlt(e,8),this.state=937,this.tupleExpression();break;case 9:this.enterOuterAlt(e,9),this.state=938,this.typeName(0)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expressionList(){let e,r=new Wt(this,this._ctx,this.state);this.enterRule(r,146,t.RULE_expressionList);try{for(this.enterOuterAlt(r,1),this.state=941,this.expression(0),this.state=946,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=942,this.match(t.T__15),this.state=943,this.expression(0),this.state=948,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}nameValueList(){let e,r=new zt(this,this._ctx,this.state);this.enterRule(r,148,t.RULE_nameValueList);try{let s;for(this.enterOuterAlt(r,1),this.state=949,this.nameValue(),this.state=954,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,99,this._ctx);2!==s&&s!==l.INVALID_ALT_NUMBER;)1===s&&(this.state=950,this.match(t.T__15),this.state=951,this.nameValue()),this.state=956,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,99,this._ctx);this.state=958,this._errHandler.sync(this),e=this._input.LA(1),16===e&&(this.state=957,this.match(t.T__15))}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}nameValue(){let e=new Xt(this,this._ctx,this.state);this.enterRule(e,150,t.RULE_nameValue);try{this.enterOuterAlt(e,1),this.state=960,this.identifier(),this.state=961,this.match(t.T__71),this.state=962,this.expression(0)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionCallArguments(){let e,r=new Jt(this,this._ctx,this.state);this.enterRule(r,152,t.RULE_functionCallArguments);try{switch(this.state=972,this._errHandler.sync(this),this._input.LA(1)){case 15:this.enterOuterAlt(r,1),this.state=964,this.match(t.T__14),this.state=966,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=965,this.nameValueList()),this.state=968,this.match(t.T__16);break;case 6:case 14:case 23:case 24:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.enterOuterAlt(r,2),this.state=970,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=969,this.expressionList());break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionCall(){let e=new Zt(this,this._ctx,this.state);this.enterRule(e,154,t.RULE_functionCall);try{this.enterOuterAlt(e,1),this.state=974,this.expression(0),this.state=975,this.match(t.T__22),this.state=976,this.functionCallArguments(),this.state=977,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyBlock(){let e,r=new te(this,this._ctx,this.state);this.enterRule(r,156,t.RULE_assemblyBlock);try{for(this.enterOuterAlt(r,1),this.state=979,this.match(t.T__14),this.state=983,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&780189696||!(e-40&-32)&&1<<e-40&287322177||!(e-90&-32)&&1<<e-90&1176879241||!(e-127&-32)&&1<<e-127&59;)this.state=980,this.assemblyItem(),this.state=985,this._errHandler.sync(this),e=this._input.LA(1);this.state=986,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyItem(){let e=new ee(this,this._ctx,this.state);this.enterRule(e,158,t.RULE_assemblyItem);try{switch(this.state=1005,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,105,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=988,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=989,this.assemblyBlock();break;case 3:this.enterOuterAlt(e,3),this.state=990,this.assemblyExpression();break;case 4:this.enterOuterAlt(e,4),this.state=991,this.assemblyLocalDefinition();break;case 5:this.enterOuterAlt(e,5),this.state=992,this.assemblyAssignment();break;case 6:this.enterOuterAlt(e,6),this.state=993,this.assemblyStackAssignment();break;case 7:this.enterOuterAlt(e,7),this.state=994,this.labelDefinition();break;case 8:this.enterOuterAlt(e,8),this.state=995,this.assemblySwitch();break;case 9:this.enterOuterAlt(e,9),this.state=996,this.assemblyFunctionDefinition();break;case 10:this.enterOuterAlt(e,10),this.state=997,this.assemblyFor();break;case 11:this.enterOuterAlt(e,11),this.state=998,this.assemblyIf();break;case 12:this.enterOuterAlt(e,12),this.state=999,this.match(t.BreakKeyword);break;case 13:this.enterOuterAlt(e,13),this.state=1e3,this.match(t.ContinueKeyword);break;case 14:this.enterOuterAlt(e,14),this.state=1001,this.match(t.LeaveKeyword);break;case 15:this.enterOuterAlt(e,15),this.state=1002,this.numberLiteral();break;case 16:this.enterOuterAlt(e,16),this.state=1003,this.stringLiteral();break;case 17:this.enterOuterAlt(e,17),this.state=1004,this.hexLiteral()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyExpression(){let e=new re(this,this._ctx,this.state);this.enterRule(e,160,t.RULE_assemblyExpression);try{switch(this.state=1010,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,106,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=1007,this.assemblyCall();break;case 2:this.enterOuterAlt(e,2),this.state=1008,this.assemblyLiteral();break;case 3:this.enterOuterAlt(e,3),this.state=1009,this.assemblyMember()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyMember(){let e=new se(this,this._ctx,this.state);this.enterRule(e,162,t.RULE_assemblyMember);try{this.enterOuterAlt(e,1),this.state=1012,this.identifier(),this.state=1013,this.match(t.T__46),this.state=1014,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyCall(){let e,r=new ie(this,this._ctx,this.state);this.enterRule(r,164,t.RULE_assemblyCall);try{switch(this.enterOuterAlt(r,1),this.state=1020,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,107,this._ctx)){case 1:this.state=1016,this.match(t.T__60);break;case 2:this.state=1017,this.match(t.T__45);break;case 3:this.state=1018,this.match(t.T__67);break;case 4:this.state=1019,this.identifier()}if(this.state=1034,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,110,this._ctx)){for(this.state=1022,this.match(t.T__22),this.state=1024,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&4489281||!(e-97&-32)&&1<<e-97&3230141313||!(e-130&-32)&&1<<e-130&7)&&(this.state=1023,this.assemblyExpression()),this.state=1030,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1026,this.match(t.T__15),this.state=1027,this.assemblyExpression(),this.state=1032,this._errHandler.sync(this),e=this._input.LA(1);this.state=1033,this.match(t.T__23)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyLocalDefinition(){let e,r=new ne(this,this._ctx,this.state);this.enterRule(r,166,t.RULE_assemblyLocalDefinition);try{this.enterOuterAlt(r,1),this.state=1036,this.match(t.T__89),this.state=1037,this.assemblyIdentifierOrList(),this.state=1040,this._errHandler.sync(this),e=this._input.LA(1),91===e&&(this.state=1038,this.match(t.T__90),this.state=1039,this.assemblyExpression())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyAssignment(){let e=new ae(this,this._ctx,this.state);this.enterRule(e,168,t.RULE_assemblyAssignment);try{this.enterOuterAlt(e,1),this.state=1042,this.assemblyIdentifierOrList(),this.state=1043,this.match(t.T__90),this.state=1044,this.assemblyExpression()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyIdentifierOrList(){let e=new oe(this,this._ctx,this.state);this.enterRule(e,170,t.RULE_assemblyIdentifierOrList);try{switch(this.state=1053,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,112,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=1046,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=1047,this.assemblyMember();break;case 3:this.enterOuterAlt(e,3),this.state=1048,this.assemblyIdentifierList();break;case 4:this.enterOuterAlt(e,4),this.state=1049,this.match(t.T__22),this.state=1050,this.assemblyIdentifierList(),this.state=1051,this.match(t.T__23)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyIdentifierList(){let e,r=new ce(this,this._ctx,this.state);this.enterRule(r,172,t.RULE_assemblyIdentifierList);try{for(this.enterOuterAlt(r,1),this.state=1055,this.identifier(),this.state=1060,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1056,this.match(t.T__15),this.state=1057,this.identifier(),this.state=1062,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyStackAssignment(){let e=new le(this,this._ctx,this.state);this.enterRule(e,174,t.RULE_assemblyStackAssignment);try{this.enterOuterAlt(e,1),this.state=1063,this.assemblyExpression(),this.state=1064,this.match(t.T__91),this.state=1065,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}labelDefinition(){let e=new he(this,this._ctx,this.state);this.enterRule(e,176,t.RULE_labelDefinition);try{this.enterOuterAlt(e,1),this.state=1067,this.identifier(),this.state=1068,this.match(t.T__71)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblySwitch(){let e,r=new ue(this,this._ctx,this.state);this.enterRule(r,178,t.RULE_assemblySwitch);try{for(this.enterOuterAlt(r,1),this.state=1070,this.match(t.T__92),this.state=1071,this.assemblyExpression(),this.state=1075,this._errHandler.sync(this),e=this._input.LA(1);94===e||95===e;)this.state=1072,this.assemblyCase(),this.state=1077,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyCase(){let e=new de(this,this._ctx,this.state);this.enterRule(e,180,t.RULE_assemblyCase);try{switch(this.state=1084,this._errHandler.sync(this),this._input.LA(1)){case 94:this.enterOuterAlt(e,1),this.state=1078,this.match(t.T__93),this.state=1079,this.assemblyLiteral(),this.state=1080,this.assemblyBlock();break;case 95:this.enterOuterAlt(e,2),this.state=1082,this.match(t.T__94),this.state=1083,this.assemblyBlock();break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyFunctionDefinition(){let e,r=new pe(this,this._ctx,this.state);this.enterRule(r,182,t.RULE_assemblyFunctionDefinition);try{this.enterOuterAlt(r,1),this.state=1086,this.match(t.T__39),this.state=1087,this.identifier(),this.state=1088,this.match(t.T__22),this.state=1090,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=1089,this.assemblyIdentifierList()),this.state=1092,this.match(t.T__23),this.state=1094,this._errHandler.sync(this),e=this._input.LA(1),96===e&&(this.state=1093,this.assemblyFunctionReturns()),this.state=1096,this.assemblyBlock()}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyFunctionReturns(){let e=new me(this,this._ctx,this.state);this.enterRule(e,184,t.RULE_assemblyFunctionReturns);try{this.enterOuterAlt(e,1),this.state=1098,this.match(t.T__95),this.state=1099,this.assemblyIdentifierList()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyFor(){let e=new ye(this,this._ctx,this.state);this.enterRule(e,186,t.RULE_assemblyFor);try{switch(this.enterOuterAlt(e,1),this.state=1101,this.match(t.T__28),this.state=1104,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1102,this.assemblyBlock();break;case 14:case 25:case 26:case 27:case 46:case 52:case 61:case 64:case 68:case 97:case 104:case 105:case 106:case 108:case 116:case 120:case 127:case 128:case 130:case 131:case 132:this.state=1103,this.assemblyExpression();break;default:throw new w(this)}switch(this.state=1106,this.assemblyExpression(),this.state=1109,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1107,this.assemblyBlock();break;case 14:case 25:case 26:case 27:case 46:case 52:case 61:case 64:case 68:case 97:case 104:case 105:case 106:case 108:case 116:case 120:case 127:case 128:case 130:case 131:case 132:this.state=1108,this.assemblyExpression();break;default:throw new w(this)}this.state=1111,this.assemblyBlock()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyIf(){let e=new fe(this,this._ctx,this.state);this.enterRule(e,188,t.RULE_assemblyIf);try{this.enterOuterAlt(e,1),this.state=1113,this.match(t.T__52),this.state=1114,this.assemblyExpression(),this.state=1115,this.assemblyBlock()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyLiteral(){let e=new ge(this,this._ctx,this.state);this.enterRule(e,190,t.RULE_assemblyLiteral);try{switch(this.state=1122,this._errHandler.sync(this),this._input.LA(1)){case 132:this.enterOuterAlt(e,1),this.state=1117,this.stringLiteral();break;case 105:this.enterOuterAlt(e,2),this.state=1118,this.match(t.DecimalNumber);break;case 106:this.enterOuterAlt(e,3),this.state=1119,this.match(t.HexNumber);break;case 108:this.enterOuterAlt(e,4),this.state=1120,this.hexLiteral();break;case 104:this.enterOuterAlt(e,5),this.state=1121,this.match(t.BooleanLiteral);break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}tupleExpression(){let e,r=new we(this,this._ctx,this.state);this.enterRule(r,192,t.RULE_tupleExpression);try{switch(this.state=1150,this._errHandler.sync(this),this._input.LA(1)){case 23:for(this.enterOuterAlt(r,1),this.state=1124,this.match(t.T__22),this.state=1126,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=1125,this.expression(0)),this.state=1134,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1128,this.match(t.T__15),this.state=1130,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=1129,this.expression(0)),this.state=1136,this._errHandler.sync(this),e=this._input.LA(1);this.state=1137,this.match(t.T__23);break;case 44:if(this.enterOuterAlt(r,2),this.state=1138,this.match(t.T__43),this.state=1147,this._errHandler.sync(this),e=this._input.LA(1),!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)for(this.state=1139,this.expression(0),this.state=1144,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1140,this.match(t.T__15),this.state=1141,this.expression(0),this.state=1146,this._errHandler.sync(this),e=this._input.LA(1);this.state=1149,this.match(t.T__44);break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}numberLiteral(){let e,r=new ve(this,this._ctx,this.state);this.enterRule(r,194,t.RULE_numberLiteral);try{this.enterOuterAlt(r,1),this.state=1152,e=this._input.LA(1),105!==e&&106!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=1154,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,127,this._ctx)&&(this.state=1153,this.match(t.NumberUnit))}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}identifier(){let e,r=new xe(this,this._ctx,this.state);this.enterRule(r,196,t.RULE_identifier);try{this.enterOuterAlt(r,1),this.state=1156,e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}hexLiteral(){let e=new be(this,this._ctx,this.state);this.enterRule(e,198,t.RULE_hexLiteral);try{let r;this.enterOuterAlt(e,1),this.state=1159,this._errHandler.sync(this),r=1;do{if(1!==r)throw new w(this);this.state=1158,this.match(t.HexLiteralFragment),this.state=1161,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,128,this._ctx)}while(2!==r&&r!==l.INVALID_ALT_NUMBER)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}overrideSpecifier(){let e,r=new _e(this,this._ctx,this.state);this.enterRule(r,200,t.RULE_overrideSpecifier);try{if(this.enterOuterAlt(r,1),this.state=1163,this.match(t.T__97),this.state=1175,this._errHandler.sync(this),e=this._input.LA(1),23===e){for(this.state=1164,this.match(t.T__22),this.state=1165,this.userDefinedTypeName(),this.state=1170,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1166,this.match(t.T__15),this.state=1167,this.userDefinedTypeName(),this.state=1172,this._errHandler.sync(this),e=this._input.LA(1);this.state=1173,this.match(t.T__23)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}stringLiteral(){let e=new Ee(this,this._ctx,this.state);this.enterRule(e,202,t.RULE_stringLiteral);try{let r;this.enterOuterAlt(e,1),this.state=1178,this._errHandler.sync(this),r=1;do{if(1!==r)throw new w(this);this.state=1177,this.match(t.StringLiteralFragment),this.state=1180,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,131,this._ctx)}while(2!==r&&r!==l.INVALID_ALT_NUMBER)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}sempred(t,e,r){switch(e){case 39:return this.typeName_sempred(t,r);case 71: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 t.__ATN||(t.__ATN=(new h).deserialize(t._serializedATN)),t.__ATN}};A.T__0=1,A.T__1=2,A.T__2=3,A.T__3=4,A.T__4=5,A.T__5=6,A.T__6=7,A.T__7=8,A.T__8=9,A.T__9=10,A.T__10=11,A.T__11=12,A.T__12=13,A.T__13=14,A.T__14=15,A.T__15=16,A.T__16=17,A.T__17=18,A.T__18=19,A.T__19=20,A.T__20=21,A.T__21=22,A.T__22=23,A.T__23=24,A.T__24=25,A.T__25=26,A.T__26=27,A.T__27=28,A.T__28=29,A.T__29=30,A.T__30=31,A.T__31=32,A.T__32=33,A.T__33=34,A.T__34=35,A.T__35=36,A.T__36=37,A.T__37=38,A.T__38=39,A.T__39=40,A.T__40=41,A.T__41=42,A.T__42=43,A.T__43=44,A.T__44=45,A.T__45=46,A.T__46=47,A.T__47=48,A.T__48=49,A.T__49=50,A.T__50=51,A.T__51=52,A.T__52=53,A.T__53=54,A.T__54=55,A.T__55=56,A.T__56=57,A.T__57=58,A.T__58=59,A.T__59=60,A.T__60=61,A.T__61=62,A.T__62=63,A.T__63=64,A.T__64=65,A.T__65=66,A.T__66=67,A.T__67=68,A.T__68=69,A.T__69=70,A.T__70=71,A.T__71=72,A.T__72=73,A.T__73=74,A.T__74=75,A.T__75=76,A.T__76=77,A.T__77=78,A.T__78=79,A.T__79=80,A.T__80=81,A.T__81=82,A.T__82=83,A.T__83=84,A.T__84=85,A.T__85=86,A.T__86=87,A.T__87=88,A.T__88=89,A.T__89=90,A.T__90=91,A.T__91=92,A.T__92=93,A.T__93=94,A.T__94=95,A.T__95=96,A.T__96=97,A.T__97=98,A.Int=99,A.Uint=100,A.Byte=101,A.Fixed=102,A.Ufixed=103,A.BooleanLiteral=104,A.DecimalNumber=105,A.HexNumber=106,A.NumberUnit=107,A.HexLiteralFragment=108,A.ReservedKeyword=109,A.AnonymousKeyword=110,A.BreakKeyword=111,A.ConstantKeyword=112,A.TransientKeyword=113,A.ImmutableKeyword=114,A.ContinueKeyword=115,A.LeaveKeyword=116,A.ExternalKeyword=117,A.IndexedKeyword=118,A.InternalKeyword=119,A.PayableKeyword=120,A.PrivateKeyword=121,A.PublicKeyword=122,A.VirtualKeyword=123,A.PureKeyword=124,A.TypeKeyword=125,A.ViewKeyword=126,A.GlobalKeyword=127,A.ConstructorKeyword=128,A.FallbackKeyword=129,A.ReceiveKeyword=130,A.Identifier=131,A.StringLiteralFragment=132,A.VersionLiteral=133,A.WS=134,A.COMMENT=135,A.LINE_COMMENT=136,A.EOF=S.EOF,A.RULE_sourceUnit=0,A.RULE_pragmaDirective=1,A.RULE_pragmaName=2,A.RULE_pragmaValue=3,A.RULE_version=4,A.RULE_versionOperator=5,A.RULE_versionConstraint=6,A.RULE_importDeclaration=7,A.RULE_importDirective=8,A.RULE_importPath=9,A.RULE_contractDefinition=10,A.RULE_inheritanceSpecifier=11,A.RULE_customStorageLayout=12,A.RULE_contractPart=13,A.RULE_stateVariableDeclaration=14,A.RULE_fileLevelConstant=15,A.RULE_customErrorDefinition=16,A.RULE_typeDefinition=17,A.RULE_usingForDeclaration=18,A.RULE_usingForObject=19,A.RULE_usingForObjectDirective=20,A.RULE_userDefinableOperators=21,A.RULE_structDefinition=22,A.RULE_modifierDefinition=23,A.RULE_modifierInvocation=24,A.RULE_functionDefinition=25,A.RULE_functionDescriptor=26,A.RULE_returnParameters=27,A.RULE_modifierList=28,A.RULE_eventDefinition=29,A.RULE_enumValue=30,A.RULE_enumDefinition=31,A.RULE_parameterList=32,A.RULE_parameter=33,A.RULE_eventParameterList=34,A.RULE_eventParameter=35,A.RULE_functionTypeParameterList=36,A.RULE_functionTypeParameter=37,A.RULE_variableDeclaration=38,A.RULE_typeName=39,A.RULE_userDefinedTypeName=40,A.RULE_mappingKey=41,A.RULE_mapping=42,A.RULE_mappingKeyName=43,A.RULE_mappingValueName=44,A.RULE_functionTypeName=45,A.RULE_storageLocation=46,A.RULE_stateMutability=47,A.RULE_block=48,A.RULE_statement=49,A.RULE_expressionStatement=50,A.RULE_ifStatement=51,A.RULE_tryStatement=52,A.RULE_catchClause=53,A.RULE_whileStatement=54,A.RULE_simpleStatement=55,A.RULE_uncheckedStatement=56,A.RULE_forStatement=57,A.RULE_inlineAssemblyStatement=58,A.RULE_inlineAssemblyStatementFlag=59,A.RULE_doWhileStatement=60,A.RULE_continueStatement=61,A.RULE_breakStatement=62,A.RULE_returnStatement=63,A.RULE_throwStatement=64,A.RULE_emitStatement=65,A.RULE_revertStatement=66,A.RULE_variableDeclarationStatement=67,A.RULE_variableDeclarationList=68,A.RULE_identifierList=69,A.RULE_elementaryTypeName=70,A.RULE_expression=71,A.RULE_primaryExpression=72,A.RULE_expressionList=73,A.RULE_nameValueList=74,A.RULE_nameValue=75,A.RULE_functionCallArguments=76,A.RULE_functionCall=77,A.RULE_assemblyBlock=78,A.RULE_assemblyItem=79,A.RULE_assemblyExpression=80,A.RULE_assemblyMember=81,A.RULE_assemblyCall=82,A.RULE_assemblyLocalDefinition=83,A.RULE_assemblyAssignment=84,A.RULE_assemblyIdentifierOrList=85,A.RULE_assemblyIdentifierList=86,A.RULE_assemblyStackAssignment=87,A.RULE_labelDefinition=88,A.RULE_assemblySwitch=89,A.RULE_assemblyCase=90,A.RULE_assemblyFunctionDefinition=91,A.RULE_assemblyFunctionReturns=92,A.RULE_assemblyFor=93,A.RULE_assemblyIf=94,A.RULE_assemblyLiteral=95,A.RULE_tupleExpression=96,A.RULE_numberLiteral=97,A.RULE_identifier=98,A.RULE_hexLiteral=99,A.RULE_overrideSpecifier=100,A.RULE_stringLiteral=101,A.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'layout'","'at'","'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'","'transient'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],A.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,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],A.ruleNames=["sourceUnit","pragmaDirective","pragmaName","pragmaValue","version","versionOperator","versionConstraint","importDeclaration","importDirective","importPath","contractDefinition","inheritanceSpecifier","customStorageLayout","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"],A._serializedATN=[4,1,136,1183,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,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,5,0,216,8,0,10,0,12,0,219,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,233,8,3,1,4,1,4,3,4,237,8,4,1,4,5,4,240,8,4,10,4,12,4,243,9,4,1,5,1,5,1,6,3,6,248,8,6,1,6,1,6,3,6,252,8,6,1,6,3,6,255,8,6,1,7,1,7,1,7,3,7,260,8,7,1,8,1,8,1,8,1,8,3,8,266,8,8,1,8,1,8,1,8,1,8,1,8,3,8,273,8,8,1,8,1,8,3,8,277,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,5,8,288,8,8,10,8,12,8,291,9,8,1,8,1,8,1,8,1,8,1,8,3,8,298,8,8,1,9,1,9,1,10,3,10,303,8,10,1,10,1,10,1,10,3,10,308,8,10,1,10,1,10,1,10,1,10,5,10,314,8,10,10,10,12,10,317,9,10,3,10,319,8,10,1,10,3,10,322,8,10,1,10,1,10,5,10,326,8,10,10,10,12,10,329,9,10,1,10,1,10,1,11,1,11,1,11,3,11,336,8,11,1,11,3,11,339,8,11,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,3,13,354,8,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,5,14,364,8,14,10,14,12,14,367,9,14,1,14,1,14,1,14,3,14,372,8,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,3,18,399,8,18,1,18,3,18,402,8,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,5,19,411,8,19,10,19,12,19,414,9,19,1,19,1,19,3,19,418,8,19,1,20,1,20,1,20,3,20,423,8,20,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,5,22,435,8,22,10,22,12,22,438,9,22,3,22,440,8,22,1,22,1,22,1,23,1,23,1,23,3,23,447,8,23,1,23,1,23,5,23,451,8,23,10,23,12,23,454,9,23,1,23,1,23,3,23,458,8,23,1,24,1,24,1,24,3,24,463,8,24,1,24,3,24,466,8,24,1,25,1,25,1,25,1,25,3,25,472,8,25,1,25,1,25,3,25,476,8,25,1,26,1,26,3,26,480,8,26,1,26,1,26,1,26,3,26,485,8,26,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,5,28,498,8,28,10,28,12,28,501,9,28,1,29,1,29,1,29,1,29,3,29,507,8,29,1,29,1,29,1,30,1,30,1,31,1,31,1,31,1,31,3,31,517,8,31,1,31,1,31,5,31,521,8,31,10,31,12,31,524,9,31,1,31,1,31,1,32,1,32,1,32,1,32,5,32,532,8,32,10,32,12,32,535,9,32,3,32,537,8,32,1,32,1,32,1,33,1,33,3,33,543,8,33,1,33,3,33,546,8,33,1,34,1,34,1,34,1,34,5,34,552,8,34,10,34,12,34,555,9,34,3,34,557,8,34,1,34,1,34,1,35,1,35,3,35,563,8,35,1,35,3,35,566,8,35,1,36,1,36,1,36,1,36,5,36,572,8,36,10,36,12,36,575,9,36,3,36,577,8,36,1,36,1,36,1,37,1,37,3,37,583,8,37,1,38,1,38,3,38,587,8,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,3,39,598,8,39,1,39,1,39,1,39,3,39,603,8,39,1,39,5,39,606,8,39,10,39,12,39,609,9,39,1,40,1,40,1,40,5,40,614,8,40,10,40,12,40,617,9,40,1,41,1,41,3,41,621,8,41,1,42,1,42,1,42,1,42,3,42,627,8,42,1,42,1,42,1,42,3,42,632,8,42,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,45,1,45,1,45,5,45,645,8,45,10,45,12,45,648,9,45,1,45,1,45,3,45,652,8,45,1,46,1,46,1,47,1,47,1,48,1,48,5,48,660,8,48,10,48,12,48,663,9,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,3,49,682,8,49,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,694,8,51,1,52,1,52,1,52,3,52,699,8,52,1,52,1,52,4,52,703,8,52,11,52,12,52,704,1,53,1,53,3,53,709,8,53,1,53,3,53,712,8,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,3,55,724,8,55,1,56,1,56,1,56,1,57,1,57,1,57,1,57,3,57,733,8,57,1,57,1,57,3,57,737,8,57,1,57,3,57,740,8,57,1,57,1,57,1,57,1,58,1,58,3,58,747,8,58,1,58,1,58,1,58,1,58,3,58,753,8,58,1,58,1,58,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,62,1,62,1,62,1,63,1,63,3,63,775,8,63,1,63,1,63,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,67,1,67,3,67,797,8,67,1,67,1,67,3,67,801,8,67,1,67,1,67,1,68,3,68,806,8,68,1,68,1,68,3,68,810,8,68,5,68,812,8,68,10,68,12,68,815,9,68,1,69,1,69,3,69,819,8,69,1,69,5,69,822,8,69,10,69,12,69,825,9,69,1,69,3,69,828,8,69,1,69,1,69,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,852,8,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,906,8,71,1,71,1,71,3,71,910,8,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,5,71,926,8,71,10,71,12,71,929,9,71,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,3,72,940,8,72,1,73,1,73,1,73,5,73,945,8,73,10,73,12,73,948,9,73,1,74,1,74,1,74,5,74,953,8,74,10,74,12,74,956,9,74,1,74,3,74,959,8,74,1,75,1,75,1,75,1,75,1,76,1,76,3,76,967,8,76,1,76,1,76,3,76,971,8,76,3,76,973,8,76,1,77,1,77,1,77,1,77,1,77,1,78,1,78,5,78,982,8,78,10,78,12,78,985,9,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,3,79,1006,8,79,1,80,1,80,1,80,3,80,1011,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,3,82,1021,8,82,1,82,1,82,3,82,1025,8,82,1,82,1,82,5,82,1029,8,82,10,82,12,82,1032,9,82,1,82,3,82,1035,8,82,1,83,1,83,1,83,1,83,3,83,1041,8,83,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,3,85,1054,8,85,1,86,1,86,1,86,5,86,1059,8,86,10,86,12,86,1062,9,86,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,89,1,89,1,89,5,89,1074,8,89,10,89,12,89,1077,9,89,1,90,1,90,1,90,1,90,1,90,1,90,3,90,1085,8,90,1,91,1,91,1,91,1,91,3,91,1091,8,91,1,91,1,91,3,91,1095,8,91,1,91,1,91,1,92,1,92,1,92,1,93,1,93,1,93,3,93,1105,8,93,1,93,1,93,1,93,3,93,1110,8,93,1,93,1,93,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,3,95,1123,8,95,1,96,1,96,3,96,1127,8,96,1,96,1,96,3,96,1131,8,96,5,96,1133,8,96,10,96,12,96,1136,9,96,1,96,1,96,1,96,1,96,1,96,5,96,1143,8,96,10,96,12,96,1146,9,96,3,96,1148,8,96,1,96,3,96,1151,8,96,1,97,1,97,3,97,1155,8,97,1,98,1,98,1,99,4,99,1160,8,99,11,99,12,99,1161,1,100,1,100,1,100,1,100,1,100,5,100,1169,8,100,10,100,12,100,1172,9,100,1,100,1,100,3,100,1176,8,100,1,101,4,101,1179,8,101,11,101,12,101,1180,1,101,0,2,78,142,102,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,202,0,15,1,0,5,11,1,0,19,21,3,0,3,3,5,10,30,37,1,0,50,52,4,0,112,112,120,120,124,124,126,126,3,0,46,46,65,68,99,103,1,0,69,70,1,0,32,33,2,0,3,3,34,35,1,0,76,77,1,0,7,10,1,0,36,37,2,0,11,11,80,89,1,0,105,106,10,0,14,14,25,27,46,46,52,52,64,64,97,97,116,116,120,120,127,128,130,131,1314,0,217,1,0,0,0,2,222,1,0,0,0,4,227,1,0,0,0,6,232,1,0,0,0,8,234,1,0,0,0,10,244,1,0,0,0,12,254,1,0,0,0,14,256,1,0,0,0,16,297,1,0,0,0,18,299,1,0,0,0,20,302,1,0,0,0,22,332,1,0,0,0,24,340,1,0,0,0,26,353,1,0,0,0,28,355,1,0,0,0,30,375,1,0,0,0,32,382,1,0,0,0,34,387,1,0,0,0,36,393,1,0,0,0,38,417,1,0,0,0,40,419,1,0,0,0,42,424,1,0,0,0,44,426,1,0,0,0,46,443,1,0,0,0,48,459,1,0,0,0,50,467,1,0,0,0,52,484,1,0,0,0,54,486,1,0,0,0,56,499,1,0,0,0,58,502,1,0,0,0,60,510,1,0,0,0,62,512,1,0,0,0,64,527,1,0,0,0,66,540,1,0,0,0,68,547,1,0,0,0,70,560,1,0,0,0,72,567,1,0,0,0,74,580,1,0,0,0,76,584,1,0,0,0,78,597,1,0,0,0,80,610,1,0,0,0,82,620,1,0,0,0,84,622,1,0,0,0,86,635,1,0,0,0,88,637,1,0,0,0,90,639,1,0,0,0,92,653,1,0,0,0,94,655,1,0,0,0,96,657,1,0,0,0,98,681,1,0,0,0,100,683,1,0,0,0,102,686,1,0,0,0,104,695,1,0,0,0,106,706,1,0,0,0,108,715,1,0,0,0,110,723,1,0,0,0,112,725,1,0,0,0,114,728,1,0,0,0,116,744,1,0,0,0,118,756,1,0,0,0,120,758,1,0,0,0,122,766,1,0,0,0,124,769,1,0,0,0,126,772,1,0,0,0,128,778,1,0,0,0,130,781,1,0,0,0,132,785,1,0,0,0,134,796,1,0,0,0,136,805,1,0,0,0,138,816,1,0,0,0,140,831,1,0,0,0,142,851,1,0,0,0,144,939,1,0,0,0,146,941,1,0,0,0,148,949,1,0,0,0,150,960,1,0,0,0,152,972,1,0,0,0,154,974,1,0,0,0,156,979,1,0,0,0,158,1005,1,0,0,0,160,1010,1,0,0,0,162,1012,1,0,0,0,164,1020,1,0,0,0,166,1036,1,0,0,0,168,1042,1,0,0,0,170,1053,1,0,0,0,172,1055,1,0,0,0,174,1063,1,0,0,0,176,1067,1,0,0,0,178,1070,1,0,0,0,180,1084,1,0,0,0,182,1086,1,0,0,0,184,1098,1,0,0,0,186,1101,1,0,0,0,188,1113,1,0,0,0,190,1122,1,0,0,0,192,1150,1,0,0,0,194,1152,1,0,0,0,196,1156,1,0,0,0,198,1159,1,0,0,0,200,1163,1,0,0,0,202,1178,1,0,0,0,204,216,3,2,1,0,205,216,3,16,8,0,206,216,3,20,10,0,207,216,3,62,31,0,208,216,3,58,29,0,209,216,3,44,22,0,210,216,3,50,25,0,211,216,3,30,15,0,212,216,3,32,16,0,213,216,3,34,17,0,214,216,3,36,18,0,215,204,1,0,0,0,215,205,1,0,0,0,215,206,1,0,0,0,215,207,1,0,0,0,215,208,1,0,0,0,215,209,1,0,0,0,215,210,1,0,0,0,215,211,1,0,0,0,215,212,1,0,0,0,215,213,1,0,0,0,215,214,1,0,0,0,216,219,1,0,0,0,217,215,1,0,0,0,217,218,1,0,0,0,218,220,1,0,0,0,219,217,1,0,0,0,220,221,5,0,0,1,221,1,1,0,0,0,222,223,5,1,0,0,223,224,3,4,2,0,224,225,3,6,3,0,225,226,5,2,0,0,226,3,1,0,0,0,227,228,3,196,98,0,228,5,1,0,0,0,229,233,5,3,0,0,230,233,3,8,4,0,231,233,3,142,71,0,232,229,1,0,0,0,232,230,1,0,0,0,232,231,1,0,0,0,233,7,1,0,0,0,234,241,3,12,6,0,235,237,5,4,0,0,236,235,1,0,0,0,236,237,1,0,0,0,237,238,1,0,0,0,238,240,3,12,6,0,239,236,1,0,0,0,240,243,1,0,0,0,241,239,1,0,0,0,241,242,1,0,0,0,242,9,1,0,0,0,243,241,1,0,0,0,244,245,7,0,0,0,245,11,1,0,0,0,246,248,3,10,5,0,247,246,1,0,0,0,247,248,1,0,0,0,248,249,1,0,0,0,249,255,5,133,0,0,250,252,3,10,5,0,251,250,1,0,0,0,251,252,1,0,0,0,252,253,1,0,0,0,253,255,5,105,0,0,254,247,1,0,0,0,254,251,1,0,0,0,255,13,1,0,0,0,256,259,3,196,98,0,257,258,5,12,0,0,258,260,3,196,98,0,259,257,1,0,0,0,259,260,1,0,0,0,260,15,1,0,0,0,261,262,5,13,0,0,262,265,3,18,9,0,263,264,5,12,0,0,264,266,3,196,98,0,265,263,1,0,0,0,265,266,1,0,0,0,266,267,1,0,0,0,267,268,5,2,0,0,268,298,1,0,0,0,269,272,5,13,0,0,270,273,5,3,0,0,271,273,3,196,98,0,272,270,1,0,0,0,272,271,1,0,0,0,273,276,1,0,0,0,274,275,5,12,0,0,275,277,3,196,98,0,276,274,1,0,0,0,276,277,1,0,0,0,277,278,1,0,0,0,278,279,5,14,0,0,279,280,3,18,9,0,280,281,5,2,0,0,281,298,1,0,0,0,282,283,5,13,0,0,283,284,5,15,0,0,284,289,3,14,7,0,285,286,5,16,0,0,286,288,3,14,7,0,287,285,1,0,0,0,288,291,1,0,0,0,289,287,1,0,0,0,289,290,1,0,0,0,290,292,1,0,0,0,291,289,1,0,0,0,292,293,5,17,0,0,293,294,5,14,0,0,294,295,3,18,9,0,295,296,5,2,0,0,296,298,1,0,0,0,297,261,1,0,0,0,297,269,1,0,0,0,297,282,1,0,0,0,298,17,1,0,0,0,299,300,5,132,0,0,300,19,1,0,0,0,301,303,5,18,0,0,302,301,1,0,0,0,302,303,1,0,0,0,303,304,1,0,0,0,304,305,7,1,0,0,305,307,3,196,98,0,306,308,3,24,12,0,307,306,1,0,0,0,307,308,1,0,0,0,308,318,1,0,0,0,309,310,5,22,0,0,310,315,3,22,11,0,311,312,5,16,0,0,312,314,3,22,11,0,313,311,1,0,0,0,314,317,1,0,0,0,315,313,1,0,0,0,315,316,1,0,0,0,316,319,1,0,0,0,317,315,1,0,0,0,318,309,1,0,0,0,318,319,1,0,0,0,319,321,1,0,0,0,320,322,3,24,12,0,321,320,1,0,0,0,321,322,1,0,0,0,322,323,1,0,0,0,323,327,5,15,0,0,324,326,3,26,13,0,325,324,1,0,0,0,326,329,1,0,0,0,327,325,1,0,0,0,327,328,1,0,0,0,328,330,1,0,0,0,329,327,1,0,0,0,330,331,5,17,0,0,331,21,1,0,0,0,332,338,3,80,40,0,333,335,5,23,0,0,334,336,3,146,73,0,335,334,1,0,0,0,335,336,1,0,0,0,336,337,1,0,0,0,337,339,5,24,0,0,338,333,1,0,0,0,338,339,1,0,0,0,339,23,1,0,0,0,340,341,5,25,0,0,341,342,5,26,0,0,342,343,3,142,71,0,343,25,1,0,0,0,344,354,3,28,14,0,345,354,3,36,18,0,346,354,3,44,22,0,347,354,3,46,23,0,348,354,3,50,25,0,349,354,3,58,29,0,350,354,3,62,31,0,351,354,3,32,16,0,352,354,3,34,17,0,353,344,1,0,0,0,353,345,1,0,0,0,353,346,1,0,0,0,353,347,1,0,0,0,353,348,1,0,0,0,353,349,1,0,0,0,353,350,1,0,0,0,353,351,1,0,0,0,353,352,1,0,0,0,354,27,1,0,0,0,355,365,3,78,39,0,356,364,5,122,0,0,357,364,5,119,0,0,358,364,5,121,0,0,359,364,5,112,0,0,360,364,5,113,0,0,361,364,5,114,0,0,362,364,3,200,100,0,363,356,1,0,0,0,363,357,1,0,0,0,363,358,1,0,0,0,363,359,1,0,0,0,363,360,1,0,0,0,363,361,1,0,0,0,363,362,1,0,0,0,364,367,1,0,0,0,365,363,1,0,0,0,365,366,1,0,0,0,366,368,1,0,0,0,367,365,1,0,0,0,368,371,3,196,98,0,369,370,5,11,0,0,370,372,3,142,71,0,371,369,1,0,0,0,371,372,1,0,0,0,372,373,1,0,0,0,373,374,5,2,0,0,374,29,1,0,0,0,375,376,3,78,39,0,376,377,5,112,0,0,377,378,3,196,98,0,378,379,5,11,0,0,379,380,3,142,71,0,380,381,5,2,0,0,381,31,1,0,0,0,382,383,5,27,0,0,383,384,3,196,98,0,384,385,3,64,32,0,385,386,5,2,0,0,386,33,1,0,0,0,387,388,5,125,0,0,388,389,3,196,98,0,389,390,5,22,0,0,390,391,3,140,70,0,391,392,5,2,0,0,392,35,1,0,0,0,393,394,5,28,0,0,394,395,3,38,19,0,395,398,5,29,0,0,396,399,5,3,0,0,397,399,3,78,39,0,398,396,1,0,0,0,398,397,1,0,0,0,399,401,1,0,0,0,400,402,5,127,0,0,401,400,1,0,0,0,401,402,1,0,0,0,402,403,1,0,0,0,403,404,5,2,0,0,404,37,1,0,0,0,405,418,3,80,40,0,406,407,5,15,0,0,407,412,3,40,20,0,408,409,5,16,0,0,409,411,3,40,20,0,410,408,1,0,0,0,411,414,1,0,0,0,412,410,1,0,0,0,412,413,1,0,0,0,413,415,1,0,0,0,414,412,1,0,0,0,415,416,5,17,0,0,416,418,1,0,0,0,417,405,1,0,0,0,417,406,1,0,0,0,418,39,1,0,0,0,419,422,3,80,40,0,420,421,5,12,0,0,421,423,3,42,21,0,422,420,1,0,0,0,422,423,1,0,0,0,423,41,1,0,0,0,424,425,7,2,0,0,425,43,1,0,0,0,426,427,5,38,0,0,427,428,3,196,98,0,428,439,5,15,0,0,429,430,3,76,38,0,430,436,5,2,0,0,431,432,3,76,38,0,432,433,5,2,0,0,433,435,1,0,0,0,434,431,1,0,0,0,435,438,1,0,0,0,436,434,1,0,0,0,436,437,1,0,0,0,437,440,1,0,0,0,438,436,1,0,0,0,439,429,1,0,0,0,439,440,1,0,0,0,440,441,1,0,0,0,441,442,5,17,0,0,442,45,1,0,0,0,443,444,5,39,0,0,444,446,3,196,98,0,445,447,3,64,32,0,446,445,1,0,0,0,446,447,1,0,0,0,447,452,1,0,0,0,448,451,5,123,0,0,449,451,3,200,100,0,450,448,1,0,0,0,450,449,1,0,0,0,451,454,1,0,0,0,452,450,1,0,0,0,452,453,1,0,0,0,453,457,1,0,0,0,454,452,1,0,0,0,455,458,5,2,0,0,456,458,3,96,48,0,457,455,1,0,0,0,457,456,1,0,0,0,458,47,1,0,0,0,459,465,3,196,98,0,460,462,5,23,0,0,461,463,3,146,73,0,462,461,1,0,0,0,462,463,1,0,0,0,463,464,1,0,0,0,464,466,5,24,0,0,465,460,1,0,0,0,465,466,1,0,0,0,466,49,1,0,0,0,467,468,3,52,26,0,468,469,3,64,32,0,469,471,3,56,28,0,470,472,3,54,27,0,471,470,1,0,0,0,471,472,1,0,0,0,472,475,1,0,0,0,473,476,5,2,0,0,474,476,3,96,48,0,475,473,1,0,0,0,475,474,1,0,0,0,476,51,1,0,0,0,477,479,5,40,0,0,478,480,3,196,98,0,479,478,1,0,0,0,479,480,1,0,0,0,480,485,1,0,0,0,481,485,5,128,0,0,482,485,5,129,0,0,483,485,5,130,0,0,484,477,1,0,0,0,484,481,1,0,0,0,484,482,1,0,0,0,484,483,1,0,0,0,485,53,1,0,0,0,486,487,5,41,0,0,487,488,3,64,32,0,488,55,1,0,0,0,489,498,5,117,0,0,490,498,5,122,0,0,491,498,5,119,0,0,492,498,5,121,0,0,493,498,5,123,0,0,494,498,3,94,47,0,495,498,3,48,24,0,496,498,3,200,100,0,497,489,1,0,0,0,497,490,1,0,0,0,497,491,1,0,0,0,497,492,1,0,0,0,497,493,1,0,0,0,497,494,1,0,0,0,497,495,1,0,0,0,497,496,1,0,0,0,498,501,1,0,0,0,499,497,1,0,0,0,499,500,1,0,0,0,500,57,1,0,0,0,501,499,1,0,0,0,502,503,5,42,0,0,503,504,3,196,98,0,504,506,3,68,34,0,505,507,5,110,0,0,506,505,1,0,0,0,506,507,1,0,0,0,507,508,1,0,0,0,508,509,5,2,0,0,509,59,1,0,0,0,510,511,3,196,98,0,511,61,1,0,0,0,512,513,5,43,0,0,513,514,3,196,98,0,514,516,5,15,0,0,515,517,3,60,30,0,516,515,1,0,0,0,516,517,1,0,0,0,517,522,1,0,0,0,518,519,5,16,0,0,519,521,3,60,30,0,520,518,1,0,0,0,521,524,1,0,0,0,522,520,1,0,0,0,522,523,1,0,0,0,523,525,1,0,0,0,524,522,1,0,0,0,525,526,5,17,0,0,526,63,1,0,0,0,527,536,5,23,0,0,528,533,3,66,33,0,529,530,5,16,0,0,530,532,3,66,33,0,531,529,1,0,0,0,532,535,1,0,0,0,533,531,1,0,0,0,533,534,1,0,0,0,534,537,1,0,0,0,535,533,1,0,0,0,536,528,1,0,0,0,536,537,1,0,0,0,537,538,1,0,0,0,538,539,5,24,0,0,539,65,1,0,0,0,540,542,3,78,39,0,541,543,3,92,46,0,542,541,1,0,0,0,542,543,1,0,0,0,543,545,1,0,0,0,544,546,3,196,98,0,545,544,1,0,0,0,545,546,1,0,0,0,546,67,1,0,0,0,547,556,5,23,0,0,548,553,3,70,35,0,549,550,5,16,0,0,550,552,3,70,35,0,551,549,1,0,0,0,552,555,1,0,0,0,553,551,1,0,0,0,553,554,1,0,0,0,554,557,1,0,0,0,555,553,1,0,0,0,556,548,1,0,0,0,556,557,1,0,0,0,557,558,1,0,0,0,558,559,5,24,0,0,559,69,1,0,0,0,560,562,3,78,39,0,561,563,5,118,0,0,562,561,1,0,0,0,562,563,1,0,0,0,563,565,1,0,0,0,564,566,3,196,98,0,565,564,1,0,0,0,565,566,1,0,0,0,566,71,1,0,0,0,567,576,5,23,0,0,568,573,3,74,37,0,569,570,5,16,0,0,570,572,3,74,37,0,571,569,1,0,0,0,572,575,1,0,0,0,573,571,1,0,0,0,573,574,1,0,0,0,574,577,1,0,0,0,575,573,1,0,0,0,576,568,1,0,0,0,576,577,1,0,0,0,577,578,1,0,0,0,578,579,5,24,0,0,579,73,1,0,0,0,580,582,3,78,39,0,581,583,3,92,46,0,582,581,1,0,0,0,582,583,1,0,0,0,583,75,1,0,0,0,584,586,3,78,39,0,585,587,3,92,46,0,586,585,1,0,0,0,586,587,1,0,0,0,587,588,1,0,0,0,588,589,3,196,98,0,589,77,1,0,0,0,590,591,6,39,-1,0,591,598,3,140,70,0,592,598,3,80,40,0,593,598,3,84,42,0,594,598,3,90,45,0,595,596,5,46,0,0,596,598,5,120,0,0,597,590,1,0,0,0,597,592,1,0,0,0,597,593,1,0,0,0,597,594,1,0,0,0,597,595,1,0,0,0,598,607,1,0,0,0,599,600,10,3,0,0,600,602,5,44,0,0,601,603,3,142,71,0,602,601,1,0,0,0,602,603,1,0,0,0,603,604,1,0,0,0,604,606,5,45,0,0,605,599,1,0,0,0,606,609,1,0,0,0,607,605,1,0,0,0,607,608,1,0,0,0,608,79,1,0,0,0,609,607,1,0,0,0,610,615,3,196,98,0,611,612,5,47,0,0,612,614,3,196,98,0,613,611,1,0,0,0,614,617,1,0,0,0,615,613,1,0,0,0,615,616,1,0,0,0,616,81,1,0,0,0,617,615,1,0,0,0,618,621,3,140,70,0,619,621,3,80,40,0,620,618,1,0,0,0,620,619,1,0,0,0,621,83,1,0,0,0,622,623,5,48,0,0,623,624,5,23,0,0,624,626,3,82,41,0,625,627,3,86,43,0,626,625,1,0,0,0,626,627,1,0,0,0,627,628,1,0,0,0,628,629,5,49,0,0,629,631,3,78,39,0,630,632,3,88,44,0,631,630,1,0,0,0,631,632,1,0,0,0,632,633,1,0,0,0,633,634,5,24,0,0,634,85,1,0,0,0,635,636,3,196,98,0,636,87,1,0,0,0,637,638,3,196,98,0,638,89,1,0,0,0,639,640,5,40,0,0,640,646,3,72,36,0,641,645,5,119,0,0,642,645,5,117,0,0,643,645,3,94,47,0,644,641,1,0,0,0,644,642,1,0,0,0,644,643,1,0,0,0,645,648,1,0,0,0,646,644,1,0,0,0,646,647,1,0,0,0,647,651,1,0,0,0,648,646,1,0,0,0,649,650,5,41,0,0,650,652,3,72,36,0,651,649,1,0,0,0,651,652,1,0,0,0,652,91,1,0,0,0,653,654,7,3,0,0,654,93,1,0,0,0,655,656,7,4,0,0,656,95,1,0,0,0,657,661,5,15,0,0,658,660,3,98,49,0,659,658,1,0,0,0,660,663,1,0,0,0,661,659,1,0,0,0,661,662,1,0,0,0,662,664,1,0,0,0,663,661,1,0,0,0,664,665,5,17,0,0,665,97,1,0,0,0,666,682,3,102,51,0,667,682,3,104,52,0,668,682,3,108,54,0,669,682,3,114,57,0,670,682,3,96,48,0,671,682,3,116,58,0,672,682,3,120,60,0,673,682,3,122,61,0,674,682,3,124,62,0,675,682,3,126,63,0,676,682,3,128,64,0,677,682,3,130,65,0,678,682,3,110,55,0,679,682,3,112,56,0,680,682,3,132,66,0,681,666,1,0,0,0,681,667,1,0,0,0,681,668,1,0,0,0,681,669,1,0,0,0,681,670,1,0,0,0,681,671,1,0,0,0,681,672,1,0,0,0,681,673,1,0,0,0,681,674,1,0,0,0,681,675,1,0,0,0,681,676,1,0,0,0,681,677,1,0,0,0,681,678,1,0,0,0,681,679,1,0,0,0,681,680,1,0,0,0,682,99,1,0,0,0,683,684,3,142,71,0,684,685,5,2,0,0,685,101,1,0,0,0,686,687,5,53,0,0,687,688,5,23,0,0,688,689,3,142,71,0,689,690,5,24,0,0,690,693,3,98,49,0,691,692,5,54,0,0,692,694,3,98,49,0,693,691,1,0,0,0,693,694,1,0,0,0,694,103,1,0,0,0,695,696,5,55,0,0,696,698,3,142,71,0,697,699,3,54,27,0,698,697,1,0,0,0,698,699,1,0,0,0,699,700,1,0,0,0,700,702,3,96,48,0,701,703,3,106,53,0,702,701,1,0,0,0,703,704,1,0,0,0,704,702,1,0,0,0,704,705,1,0,0,0,705,105,1,0,0,0,706,711,5,56,0,0,707,709,3,196,98,0,708,707,1,0,0,0,708,709,1,0,0,0,709,710,1,0,0,0,710,712,3,64,32,0,711,708,1,0,0,0,711,712,1,0,0,0,712,713,1,0,0,0,713,714,3,96,48,0,714,107,1,0,0,0,715,716,5,57,0,0,716,717,5,23,0,0,717,718,3,142,71,0,718,719,5,24,0,0,719,720,3,98,49,0,720,109,1,0,0,0,721,724,3,134,67,0,722,724,3,100,50,0,723,721,1,0,0,0,723,722,1,0,0,0,724,111,1,0,0,0,725,726,5,58,0,0,726,727,3,96,48,0,727,113,1,0,0,0,728,729,5,29,0,0,729,732,5,23,0,0,730,733,3,110,55,0,731,733,5,2,0,0,732,730,1,0,0,0,732,731,1,0,0,0,733,736,1,0,0,0,734,737,3,100,50,0,735,737,5,2,0,0,736,734,1,0,0,0,736,735,1,0,0,0,737,739,1,0,0,0,738,740,3,142,71,0,739,738,1,0,0,0,739,740,1,0,0,0,740,741,1,0,0,0,741,742,5,24,0,0,742,743,3,98,49,0,743,115,1,0,0,0,744,746,5,59,0,0,745,747,5,132,0,0,746,745,1,0,0,0,746,747,1,0,0,0,747,752,1,0,0,0,748,749,5,23,0,0,749,750,3,118,59,0,750,751,5,24,0,0,751,753,1,0,0,0,752,748,1,0,0,0,752,753,1,0,0,0,753,754,1,0,0,0,754,755,3,156,78,0,755,117,1,0,0,0,756,757,3,202,101,0,757,119,1,0,0,0,758,759,5,60,0,0,759,760,3,98,49,0,760,761,5,57,0,0,761,762,5,23,0,0,762,763,3,142,71,0,763,764,5,24,0,0,764,765,5,2,0,0,765,121,1,0,0,0,766,767,5,115,0,0,767,768,5,2,0,0,768,123,1,0,0,0,769,770,5,111,0,0,770,771,5,2,0,0,771,125,1,0,0,0,772,774,5,61,0,0,773,775,3,142,71,0,774,773,1,0,0,0,774,775,1,0,0,0,775,776,1,0,0,0,776,777,5,2,0,0,777,127,1,0,0,0,778,779,5,62,0,0,779,780,5,2,0,0,780,129,1,0,0,0,781,782,5,63,0,0,782,783,3,154,77,0,783,784,5,2,0,0,784,131,1,0,0,0,785,786,5,64,0,0,786,787,3,154,77,0,787,788,5,2,0,0,788,133,1,0,0,0,789,790,5,65,0,0,790,797,3,138,69,0,791,797,3,76,38,0,792,793,5,23,0,0,793,794,3,136,68,0,794,795,5,24,0,0,795,797,1,0,0,0,796,789,1,0,0,0,796,791,1,0,0,0,796,792,1,0,0,0,797,800,1,0,0,0,798,799,5,11,0,0,799,801,3,142,71,0,800,798,1,0,0,0,800,801,1,0,0,0,801,802,1,0,0,0,802,803,5,2,0,0,803,135,1,0,0,0,804,806,3,76,38,0,805,804,1,0,0,0,805,806,1,0,0,0,806,813,1,0,0,0,807,809,5,16,0,0,808,810,3,76,38,0,809,808,1,0,0,0,809,810,1,0,0,0,810,812,1,0,0,0,811,807,1,0,0,0,812,815,1,0,0,0,813,811,1,0,0,0,813,814,1,0,0,0,814,137,1,0,0,0,815,813,1,0,0,0,816,823,5,23,0,0,817,819,3,196,98,0,818,817,1,0,0,0,818,819,1,0,0,0,819,820,1,0,0,0,820,822,5,16,0,0,821,818,1,0,0,0,822,825,1,0,0,0,823,821,1,0,0,0,823,824,1,0,0,0,824,827,1,0,0,0,825,823,1,0,0,0,826,828,3,196,98,0,827,826,1,0,0,0,827,828,1,0,0,0,828,829,1,0,0,0,829,830,5,24,0,0,830,139,1,0,0,0,831,832,7,5,0,0,832,141,1,0,0,0,833,834,6,71,-1,0,834,835,5,71,0,0,835,852,3,78,39,0,836,837,5,23,0,0,837,838,3,142,71,0,838,839,5,24,0,0,839,852,1,0,0,0,840,841,7,6,0,0,841,852,3,142,71,19,842,843,7,7,0,0,843,852,3,142,71,18,844,845,5,73,0,0,845,852,3,142,71,17,846,847,5,74,0,0,847,852,3,142,71,16,848,849,5,6,0,0,849,852,3,142,71,15,850,852,3,144,72,0,851,833,1,0,0,0,851,836,1,0,0,0,851,840,1,0,0,0,851,842,1,0,0,0,851,844,1,0,0,0,851,846,1,0,0,0,851,848,1,0,0,0,851,850,1,0,0,0,852,927,1,0,0,0,853,854,10,14,0,0,854,855,5,75,0,0,855,926,3,142,71,14,856,857,10,13,0,0,857,858,7,8,0,0,858,926,3,142,71,14,859,860,10,12,0,0,860,861,7,7,0,0,861,926,3,142,71,13,862,863,10,11,0,0,863,864,7,9,0,0,864,926,3,142,71,12,865,866,10,10,0,0,866,867,5,31,0,0,867,926,3,142,71,11,868,869,10,9,0,0,869,870,5,5,0,0,870,926,3,142,71,10,871,872,10,8,0,0,872,873,5,30,0,0,873,926,3,142,71,9,874,875,10,7,0,0,875,876,7,10,0,0,876,926,3,142,71,8,877,878,10,6,0,0,878,879,7,11,0,0,879,926,3,142,71,7,880,881,10,5,0,0,881,882,5,78,0,0,882,926,3,142,71,6,883,884,10,4,0,0,884,885,5,4,0,0,885,926,3,142,71,5,886,887,10,3,0,0,887,888,5,79,0,0,888,889,3,142,71,0,889,890,5,72,0,0,890,891,3,142,71,3,891,926,1,0,0,0,892,893,10,2,0,0,893,894,7,12,0,0,894,926,3,142,71,3,895,896,10,27,0,0,896,926,7,6,0,0,897,898,10,25,0,0,898,899,5,44,0,0,899,900,3,142,71,0,900,901,5,45,0,0,901,926,1,0,0,0,902,903,10,24,0,0,903,905,5,44,0,0,904,906,3,142,71,0,905,904,1,0,0,0,905,906,1,0,0,0,906,907,1,0,0,0,907,909,5,72,0,0,908,910,3,142,71,0,909,908,1,0,0,0,909,910,1,0,0,0,910,911,1,0,0,0,911,926,5,45,0,0,912,913,10,23,0,0,913,914,5,47,0,0,914,926,3,196,98,0,915,916,10,22,0,0,916,917,5,15,0,0,917,918,3,148,74,0,918,919,5,17,0,0,919,926,1,0,0,0,920,921,10,21,0,0,921,922,5,23,0,0,922,923,3,152,76,0,923,924,5,24,0,0,924,926,1,0,0,0,925,853,1,0,0,0,925,856,1,0,0,0,925,859,1,0,0,0,925,862,1,0,0,0,925,865,1,0,0,0,925,868,1,0,0,0,925,871,1,0,0,0,925,874,1,0,0,0,925,877,1,0,0,0,925,880,1,0,0,0,925,883,1,0,0,0,925,886,1,0,0,0,925,892,1,0,0,0,925,895,1,0,0,0,925,897,1,0,0,0,925,902,1,0,0,0,925,912,1,0,0,0,925,915,1,0,0,0,925,920,1,0,0,0,926,929,1,0,0,0,927,925,1,0,0,0,927,928,1,0,0,0,928,143,1,0,0,0,929,927,1,0,0,0,930,940,5,104,0,0,931,940,3,194,97,0,932,940,3,198,99,0,933,940,3,202,101,0,934,940,3,196,98,0,935,940,5,125,0,0,936,940,5,120,0,0,937,940,3,192,96,0,938,940,3,78,39,0,939,930,1,0,0,0,939,931,1,0,0,0,939,932,1,0,0,0,939,933,1,0,0,0,939,934,1,0,0,0,939,935,1,0,0,0,939,936,1,0,0,0,939,937,1,0,0,0,939,938,1,0,0,0,940,145,1,0,0,0,941,946,3,142,71,0,942,943,5,16,0,0,943,945,3,142,71,0,944,942,1,0,0,0,945,948,1,0,0,0,946,944,1,0,0,0,946,947,1,0,0,0,947,147,1,0,0,0,948,946,1,0,0,0,949,954,3,150,75,0,950,951,5,16,0,0,951,953,3,150,75,0,952,950,1,0,0,0,953,956,1,0,0,0,954,952,1,0,0,0,954,955,1,0,0,0,955,958,1,0,0,0,956,954,1,0,0,0,957,959,5,16,0,0,958,957,1,0,0,0,958,959,1,0,0,0,959,149,1,0,0,0,960,961,3,196,98,0,961,962,5,72,0,0,962,963,3,142,71,0,963,151,1,0,0,0,964,966,5,15,0,0,965,967,3,148,74,0,966,965,1,0,0,0,966,967,1,0,0,0,967,968,1,0,0,0,968,973,5,17,0,0,969,971,3,146,73,0,970,969,1,0,0,0,970,971,1,0,0,0,971,973,1,0,0,0,972,964,1,0,0,0,972,970,1,0,0,0,973,153,1,0,0,0,974,975,3,142,71,0,975,976,5,23,0,0,976,977,3,152,76,0,977,978,5,24,0,0,978,155,1,0,0,0,979,983,5,15,0,0,980,982,3,158,79,0,981,980,1,0,0,0,982,985,1,0,0,0,983,981,1,0,0,0,983,984,1,0,0,0,984,986,1,0,0,0,985,983,1,0,0,0,986,987,5,17,0,0,987,157,1,0,0,0,988,1006,3,196,98,0,989,1006,3,156,78,0,990,1006,3,160,80,0,991,1006,3,166,83,0,992,1006,3,168,84,0,993,1006,3,174,87,0,994,1006,3,176,88,0,995,1006,3,178,89,0,996,1006,3,182,91,0,997,1006,3,186,93,0,998,1006,3,188,94,0,999,1006,5,111,0,0,1e3,1006,5,115,0,0,1001,1006,5,116,0,0,1002,1006,3,194,97,0,1003,1006,3,202,101,0,1004,1006,3,198,99,0,1005,988,1,0,0,0,1005,989,1,0,0,0,1005,990,1,0,0,0,1005,991,1,0,0,0,1005,992,1,0,0,0,1005,993,1,0,0,0,1005,994,1,0,0,0,1005,995,1,0,0,0,1005,996,1,0,0,0,1005,997,1,0,0,0,1005,998,1,0,0,0,1005,999,1,0,0,0,1005,1e3,1,0,0,0,1005,1001,1,0,0,0,1005,1002,1,0,0,0,1005,1003,1,0,0,0,1005,1004,1,0,0,0,1006,159,1,0,0,0,1007,1011,3,164,82,0,1008,1011,3,190,95,0,1009,1011,3,162,81,0,1010,1007,1,0,0,0,1010,1008,1,0,0,0,1010,1009,1,0,0,0,1011,161,1,0,0,0,1012,1013,3,196,98,0,1013,1014,5,47,0,0,1014,1015,3,196,98,0,1015,163,1,0,0,0,1016,1021,5,61,0,0,1017,1021,5,46,0,0,1018,1021,5,68,0,0,1019,1021,3,196,98,0,1020,1016,1,0,0,0,1020,1017,1,0,0,0,1020,1018,1,0,0,0,1020,1019,1,0,0,0,1021,1034,1,0,0,0,1022,1024,5,23,0,0,1023,1025,3,160,80,0,1024,1023,1,0,0,0,1024,1025,1,0,0,0,1025,1030,1,0,0,0,1026,1027,5,16,0,0,1027,1029,3,160,80,0,1028,1026,1,0,0,0,1029,1032,1,0,0,0,1030,1028,1,0,0,0,1030,1031,1,0,0,0,1031,1033,1,0,0,0,1032,1030,1,0,0,0,1033,1035,5,24,0,0,1034,1022,1,0,0,0,1034,1035,1,0,0,0,1035,165,1,0,0,0,1036,1037,5,90,0,0,1037,1040,3,170,85,0,1038,1039,5,91,0,0,1039,1041,3,160,80,0,1040,1038,1,0,0,0,1040,1041,1,0,0,0,1041,167,1,0,0,0,1042,1043,3,170,85,0,1043,1044,5,91,0,0,1044,1045,3,160,80,0,1045,169,1,0,0,0,1046,1054,3,196,98,0,1047,1054,3,162,81,0,1048,1054,3,172,86,0,1049,1050,5,23,0,0,1050,1051,3,172,86,0,1051,1052,5,24,0,0,1052,1054,1,0,0,0,1053,1046,1,0,0,0,1053,1047,1,0,0,0,1053,1048,1,0,0,0,1053,1049,1,0,0,0,1054,171,1,0,0,0,1055,1060,3,196,98,0,1056,1057,5,16,0,0,1057,1059,3,196,98,0,1058,1056,1,0,0,0,1059,1062,1,0,0,0,1060,1058,1,0,0,0,1060,1061,1,0,0,0,1061,173,1,0,0,0,1062,1060,1,0,0,0,1063,1064,3,160,80,0,1064,1065,5,92,0,0,1065,1066,3,196,98,0,1066,175,1,0,0,0,1067,1068,3,196,98,0,1068,1069,5,72,0,0,1069,177,1,0,0,0,1070,1071,5,93,0,0,1071,1075,3,160,80,0,1072,1074,3,180,90,0,1073,1072,1,0,0,0,1074,1077,1,0,0,0,1075,1073,1,0,0,0,1075,1076,1,0,0,0,1076,179,1,0,0,0,1077,1075,1,0,0,0,1078,1079,5,94,0,0,1079,1080,3,190,95,0,1080,1081,3,156,78,0,1081,1085,1,0,0,0,1082,1083,5,95,0,0,1083,1085,3,156,78,0,1084,1078,1,0,0,0,1084,1082,1,0,0,0,1085,181,1,0,0,0,1086,1087,5,40,0,0,1087,1088,3,196,98,0,1088,1090,5,23,0,0,1089,1091,3,172,86,0,1090,1089,1,0,0,0,1090,1091,1,0,0,0,1091,1092,1,0,0,0,1092,1094,5,24,0,0,1093,1095,3,184,92,0,1094,1093,1,0,0,0,1094,1095,1,0,0,0,1095,1096,1,0,0,0,1096,1097,3,156,78,0,1097,183,1,0,0,0,1098,1099,5,96,0,0,1099,1100,3,172,86,0,1100,185,1,0,0,0,1101,1104,5,29,0,0,1102,1105,3,156,78,0,1103,1105,3,160,80,0,1104,1102,1,0,0,0,1104,1103,1,0,0,0,1105,1106,1,0,0,0,1106,1109,3,160,80,0,1107,1110,3,156,78,0,1108,1110,3,160,80,0,1109,1107,1,0,0,0,1109,1108,1,0,0,0,1110,1111,1,0,0,0,1111,1112,3,156,78,0,1112,187,1,0,0,0,1113,1114,5,53,0,0,1114,1115,3,160,80,0,1115,1116,3,156,78,0,1116,189,1,0,0,0,1117,1123,3,202,101,0,1118,1123,5,105,0,0,1119,1123,5,106,0,0,1120,1123,3,198,99,0,1121,1123,5,104,0,0,1122,1117,1,0,0,0,1122,1118,1,0,0,0,1122,1119,1,0,0,0,1122,1120,1,0,0,0,1122,1121,1,0,0,0,1123,191,1,0,0,0,1124,1126,5,23,0,0,1125,1127,3,142,71,0,1126,1125,1,0,0,0,1126,1127,1,0,0,0,1127,1134,1,0,0,0,1128,1130,5,16,0,0,1129,1131,3,142,71,0,1130,1129,1,0,0,0,1130,1131,1,0,0,0,1131,1133,1,0,0,0,1132,1128,1,0,0,0,1133,1136,1,0,0,0,1134,1132,1,0,0,0,1134,1135,1,0,0,0,1135,1137,1,0,0,0,1136,1134,1,0,0,0,1137,1151,5,24,0,0,1138,1147,5,44,0,0,1139,1144,3,142,71,0,1140,1141,5,16,0,0,1141,1143,3,142,71,0,1142,1140,1,0,0,0,1143,1146,1,0,0,0,1144,1142,1,0,0,0,1144,1145,1,0,0,0,1145,1148,1,0,0,0,1146,1144,1,0,0,0,1147,1139,1,0,0,0,1147,1148,1,0,0,0,1148,1149,1,0,0,0,1149,1151,5,45,0,0,1150,1124,1,0,0,0,1150,1138,1,0,0,0,1151,193,1,0,0,0,1152,1154,7,13,0,0,1153,1155,5,107,0,0,1154,1153,1,0,0,0,1154,1155,1,0,0,0,1155,195,1,0,0,0,1156,1157,7,14,0,0,1157,197,1,0,0,0,1158,1160,5,108,0,0,1159,1158,1,0,0,0,1160,1161,1,0,0,0,1161,1159,1,0,0,0,1161,1162,1,0,0,0,1162,199,1,0,0,0,1163,1175,5,98,0,0,1164,1165,5,23,0,0,1165,1170,3,80,40,0,1166,1167,5,16,0,0,1167,1169,3,80,40,0,1168,1166,1,0,0,0,1169,1172,1,0,0,0,1170,1168,1,0,0,0,1170,1171,1,0,0,0,1171,1173,1,0,0,0,1172,1170,1,0,0,0,1173,1174,5,24,0,0,1174,1176,1,0,0,0,1175,1164,1,0,0,0,1175,1176,1,0,0,0,1176,201,1,0,0,0,1177,1179,5,132,0,0,1178,1177,1,0,0,0,1179,1180,1,0,0,0,1180,1178,1,0,0,0,1180,1181,1,0,0,0,1181,203,1,0,0,0,132,215,217,232,236,241,247,251,254,259,265,272,276,289,297,302,307,315,318,321,327,335,338,353,363,365,371,398,401,412,417,422,436,439,446,450,452,457,462,465,471,475,479,484,497,499,506,516,522,533,536,542,545,553,556,562,565,573,576,582,586,597,602,607,615,620,626,631,644,646,651,661,681,693,698,704,708,711,723,732,736,739,746,752,774,796,800,805,809,813,818,823,827,851,905,909,925,927,939,946,954,958,966,970,972,983,1005,1010,1020,1024,1030,1034,1040,1053,1060,1075,1084,1090,1094,1104,1109,1122,1126,1130,1134,1144,1147,1150,1154,1161,1170,1175,1180],A.DecisionsToDFA=A._ATN.decisionToState.map(((t,e)=>new p(t,e)));var C=A,L=class extends _{constructor(t,e,r){super(e,r),this.parser=t}EOF(){return this.getToken(C.EOF,0)}pragmaDirective_list(){return this.getTypedRuleContexts(I)}pragmaDirective(t){return this.getTypedRuleContext(I,t)}importDirective_list(){return this.getTypedRuleContexts(F)}importDirective(t){return this.getTypedRuleContext(F,t)}contractDefinition_list(){return this.getTypedRuleContexts(M)}contractDefinition(t){return this.getTypedRuleContext(M,t)}enumDefinition_list(){return this.getTypedRuleContexts(ot)}enumDefinition(t){return this.getTypedRuleContext(ot,t)}eventDefinition_list(){return this.getTypedRuleContexts(nt)}eventDefinition(t){return this.getTypedRuleContext(nt,t)}structDefinition_list(){return this.getTypedRuleContexts(J)}structDefinition(t){return this.getTypedRuleContext(J,t)}functionDefinition_list(){return this.getTypedRuleContexts(et)}functionDefinition(t){return this.getTypedRuleContext(et,t)}fileLevelConstant_list(){return this.getTypedRuleContexts(H)}fileLevelConstant(t){return this.getTypedRuleContext(H,t)}customErrorDefinition_list(){return this.getTypedRuleContexts($)}customErrorDefinition(t){return this.getTypedRuleContext($,t)}typeDefinition_list(){return this.getTypedRuleContexts(Q)}typeDefinition(t){return this.getTypedRuleContext(Q,t)}usingForDeclaration_list(){return this.getTypedRuleContexts(G)}usingForDeclaration(t){return this.getTypedRuleContext(G,t)}get ruleIndex(){return C.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)}},I=class extends _{constructor(t,e,r){super(e,r),this.parser=t}pragmaName(){return this.getTypedRuleContext(K,0)}pragmaValue(){return this.getTypedRuleContext(N,0)}get ruleIndex(){return C.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)}},K=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}get ruleIndex(){return C.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)}},N=class extends _{constructor(t,e,r){super(e,r),this.parser=t}version(){return this.getTypedRuleContext(D,0)}expression(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return C.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)}},D=class extends _{constructor(t,e,r){super(e,r),this.parser=t}versionConstraint_list(){return this.getTypedRuleContexts(P)}versionConstraint(t){return this.getTypedRuleContext(P,t)}get ruleIndex(){return C.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)}},O=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.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)}},P=class extends _{constructor(t,e,r){super(e,r),this.parser=t}VersionLiteral(){return this.getToken(C.VersionLiteral,0)}versionOperator(){return this.getTypedRuleContext(O,0)}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}get ruleIndex(){return C.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)}},q=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(xe)}identifier(t){return this.getTypedRuleContext(xe,t)}get ruleIndex(){return C.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)}},F=class extends _{constructor(t,e,r){super(e,r),this.parser=t}importPath(){return this.getTypedRuleContext(U,0)}identifier_list(){return this.getTypedRuleContexts(xe)}identifier(t){return this.getTypedRuleContext(xe,t)}importDeclaration_list(){return this.getTypedRuleContexts(q)}importDeclaration(t){return this.getTypedRuleContext(q,t)}get ruleIndex(){return C.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)}},U=class extends _{constructor(t,e,r){super(e,r),this.parser=t}StringLiteralFragment(){return this.getToken(C.StringLiteralFragment,0)}get ruleIndex(){return C.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)}},M=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}customStorageLayout_list(){return this.getTypedRuleContexts(V)}customStorageLayout(t){return this.getTypedRuleContext(V,t)}inheritanceSpecifier_list(){return this.getTypedRuleContexts(Y)}inheritanceSpecifier(t){return this.getTypedRuleContext(Y,t)}contractPart_list(){return this.getTypedRuleContexts(j)}contractPart(t){return this.getTypedRuleContext(j,t)}get ruleIndex(){return C.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)}},Y=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}expressionList(){return this.getTypedRuleContext(Wt,0)}get ruleIndex(){return C.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)}},V=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return C.RULE_customStorageLayout}enterRule(t){t.enterCustomStorageLayout&&t.enterCustomStorageLayout(this)}exitRule(t){t.exitCustomStorageLayout&&t.exitCustomStorageLayout(this)}accept(t){return t.visitCustomStorageLayout?t.visitCustomStorageLayout(this):t.visitChildren(this)}},j=class extends _{constructor(t,e,r){super(e,r),this.parser=t}stateVariableDeclaration(){return this.getTypedRuleContext(B,0)}usingForDeclaration(){return this.getTypedRuleContext(G,0)}structDefinition(){return this.getTypedRuleContext(J,0)}modifierDefinition(){return this.getTypedRuleContext(Z,0)}functionDefinition(){return this.getTypedRuleContext(et,0)}eventDefinition(){return this.getTypedRuleContext(nt,0)}enumDefinition(){return this.getTypedRuleContext(ot,0)}customErrorDefinition(){return this.getTypedRuleContext($,0)}typeDefinition(){return this.getTypedRuleContext(Q,0)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}identifier(){return this.getTypedRuleContext(xe,0)}PublicKeyword_list(){return this.getTokens(C.PublicKeyword)}PublicKeyword(t){return this.getToken(C.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(t){return this.getToken(C.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(C.PrivateKeyword)}PrivateKeyword(t){return this.getToken(C.PrivateKeyword,t)}ConstantKeyword_list(){return this.getTokens(C.ConstantKeyword)}ConstantKeyword(t){return this.getToken(C.ConstantKeyword,t)}TransientKeyword_list(){return this.getTokens(C.TransientKeyword)}TransientKeyword(t){return this.getToken(C.TransientKeyword,t)}ImmutableKeyword_list(){return this.getTokens(C.ImmutableKeyword)}ImmutableKeyword(t){return this.getToken(C.ImmutableKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(_e)}overrideSpecifier(t){return this.getTypedRuleContext(_e,t)}expression(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return C.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)}},H=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}ConstantKeyword(){return this.getToken(C.ConstantKeyword,0)}identifier(){return this.getTypedRuleContext(xe,0)}expression(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return C.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)}},$=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}parameterList(){return this.getTypedRuleContext(ct,0)}get ruleIndex(){return C.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)}},Q=class extends _{constructor(t,e,r){super(e,r),this.parser=t}TypeKeyword(){return this.getToken(C.TypeKeyword,0)}identifier(){return this.getTypedRuleContext(xe,0)}elementaryTypeName(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.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)}},G=class extends _{constructor(t,e,r){super(e,r),this.parser=t}usingForObject(){return this.getTypedRuleContext(W,0)}typeName(){return this.getTypedRuleContext(yt,0)}GlobalKeyword(){return this.getToken(C.GlobalKeyword,0)}get ruleIndex(){return C.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)}},W=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}usingForObjectDirective_list(){return this.getTypedRuleContexts(z)}usingForObjectDirective(t){return this.getTypedRuleContext(z,t)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}userDefinableOperators(){return this.getTypedRuleContext(X,0)}get ruleIndex(){return C.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)}},X=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.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)}},J=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}variableDeclaration_list(){return this.getTypedRuleContexts(mt)}variableDeclaration(t){return this.getTypedRuleContext(mt,t)}get ruleIndex(){return C.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)}},Z=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}block(){return this.getTypedRuleContext(Tt,0)}parameterList(){return this.getTypedRuleContext(ct,0)}VirtualKeyword_list(){return this.getTokens(C.VirtualKeyword)}VirtualKeyword(t){return this.getToken(C.VirtualKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(_e)}overrideSpecifier(t){return this.getTypedRuleContext(_e,t)}get ruleIndex(){return C.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)}},tt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}expressionList(){return this.getTypedRuleContext(Wt,0)}get ruleIndex(){return C.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)}},et=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionDescriptor(){return this.getTypedRuleContext(rt,0)}parameterList(){return this.getTypedRuleContext(ct,0)}modifierList(){return this.getTypedRuleContext(it,0)}block(){return this.getTypedRuleContext(Tt,0)}returnParameters(){return this.getTypedRuleContext(st,0)}get ruleIndex(){return C.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)}},rt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}ConstructorKeyword(){return this.getToken(C.ConstructorKeyword,0)}FallbackKeyword(){return this.getToken(C.FallbackKeyword,0)}ReceiveKeyword(){return this.getToken(C.ReceiveKeyword,0)}get ruleIndex(){return C.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)}},st=class extends _{constructor(t,e,r){super(e,r),this.parser=t}parameterList(){return this.getTypedRuleContext(ct,0)}get ruleIndex(){return C.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)}},it=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ExternalKeyword_list(){return this.getTokens(C.ExternalKeyword)}ExternalKeyword(t){return this.getToken(C.ExternalKeyword,t)}PublicKeyword_list(){return this.getTokens(C.PublicKeyword)}PublicKeyword(t){return this.getToken(C.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(t){return this.getToken(C.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(C.PrivateKeyword)}PrivateKeyword(t){return this.getToken(C.PrivateKeyword,t)}VirtualKeyword_list(){return this.getTokens(C.VirtualKeyword)}VirtualKeyword(t){return this.getToken(C.VirtualKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(Et)}stateMutability(t){return this.getTypedRuleContext(Et,t)}modifierInvocation_list(){return this.getTypedRuleContexts(tt)}modifierInvocation(t){return this.getTypedRuleContext(tt,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(_e)}overrideSpecifier(t){return this.getTypedRuleContext(_e,t)}get ruleIndex(){return C.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)}},nt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}eventParameterList(){return this.getTypedRuleContext(ht,0)}AnonymousKeyword(){return this.getToken(C.AnonymousKeyword,0)}get ruleIndex(){return C.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)}},at=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}get ruleIndex(){return C.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)}},ot=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}enumValue_list(){return this.getTypedRuleContexts(at)}enumValue(t){return this.getTypedRuleContext(at,t)}get ruleIndex(){return C.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)}},ct=class extends _{constructor(t,e,r){super(e,r),this.parser=t}parameter_list(){return this.getTypedRuleContexts(lt)}parameter(t){return this.getTypedRuleContext(lt,t)}get ruleIndex(){return C.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)}},lt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}storageLocation(){return this.getTypedRuleContext(_t,0)}identifier(){return this.getTypedRuleContext(xe,0)}get ruleIndex(){return C.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)}},ht=class extends _{constructor(t,e,r){super(e,r),this.parser=t}eventParameter_list(){return this.getTypedRuleContexts(ut)}eventParameter(t){return this.getTypedRuleContext(ut,t)}get ruleIndex(){return C.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)}},ut=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}IndexedKeyword(){return this.getToken(C.IndexedKeyword,0)}identifier(){return this.getTypedRuleContext(xe,0)}get ruleIndex(){return C.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)}},dt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionTypeParameter_list(){return this.getTypedRuleContexts(pt)}functionTypeParameter(t){return this.getTypedRuleContext(pt,t)}get ruleIndex(){return C.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)}},pt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}storageLocation(){return this.getTypedRuleContext(_t,0)}get ruleIndex(){return C.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)}},mt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}identifier(){return this.getTypedRuleContext(xe,0)}storageLocation(){return this.getTypedRuleContext(_t,0)}get ruleIndex(){return C.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)}},yt=class t extends _{constructor(t,e,r){super(e,r),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext($t,0)}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}mapping(){return this.getTypedRuleContext(wt,0)}functionTypeName(){return this.getTypedRuleContext(bt,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}typeName(){return this.getTypedRuleContext(t,0)}expression(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return C.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)}},ft=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(xe)}identifier(t){return this.getTypedRuleContext(xe,t)}get ruleIndex(){return C.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)}},gt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext($t,0)}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}get ruleIndex(){return C.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)}},wt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}mappingKey(){return this.getTypedRuleContext(gt,0)}typeName(){return this.getTypedRuleContext(yt,0)}mappingKeyName(){return this.getTypedRuleContext(vt,0)}mappingValueName(){return this.getTypedRuleContext(xt,0)}get ruleIndex(){return C.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)}},vt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}get ruleIndex(){return C.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)}},xt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}get ruleIndex(){return C.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)}},bt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionTypeParameterList_list(){return this.getTypedRuleContexts(dt)}functionTypeParameterList(t){return this.getTypedRuleContext(dt,t)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(t){return this.getToken(C.InternalKeyword,t)}ExternalKeyword_list(){return this.getTokens(C.ExternalKeyword)}ExternalKeyword(t){return this.getToken(C.ExternalKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(Et)}stateMutability(t){return this.getTypedRuleContext(Et,t)}get ruleIndex(){return C.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)}},_t=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.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)}},Et=class extends _{constructor(t,e,r){super(e,r),this.parser=t}PureKeyword(){return this.getToken(C.PureKeyword,0)}ConstantKeyword(){return this.getToken(C.ConstantKeyword,0)}ViewKeyword(){return this.getToken(C.ViewKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}get ruleIndex(){return C.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)}},Tt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}statement_list(){return this.getTypedRuleContexts(St)}statement(t){return this.getTypedRuleContext(St,t)}get ruleIndex(){return C.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)}},St=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ifStatement(){return this.getTypedRuleContext(Rt,0)}tryStatement(){return this.getTypedRuleContext(At,0)}whileStatement(){return this.getTypedRuleContext(Lt,0)}forStatement(){return this.getTypedRuleContext(Nt,0)}block(){return this.getTypedRuleContext(Tt,0)}inlineAssemblyStatement(){return this.getTypedRuleContext(Dt,0)}doWhileStatement(){return this.getTypedRuleContext(Pt,0)}continueStatement(){return this.getTypedRuleContext(qt,0)}breakStatement(){return this.getTypedRuleContext(Ft,0)}returnStatement(){return this.getTypedRuleContext(Ut,0)}throwStatement(){return this.getTypedRuleContext(Mt,0)}emitStatement(){return this.getTypedRuleContext(Yt,0)}simpleStatement(){return this.getTypedRuleContext(It,0)}uncheckedStatement(){return this.getTypedRuleContext(Kt,0)}revertStatement(){return this.getTypedRuleContext(Vt,0)}get ruleIndex(){return C.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)}},kt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return C.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)}},Rt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Qt,0)}statement_list(){return this.getTypedRuleContexts(St)}statement(t){return this.getTypedRuleContext(St,t)}get ruleIndex(){return C.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)}},At=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Qt,0)}block(){return this.getTypedRuleContext(Tt,0)}returnParameters(){return this.getTypedRuleContext(st,0)}catchClause_list(){return this.getTypedRuleContexts(Ct)}catchClause(t){return this.getTypedRuleContext(Ct,t)}get ruleIndex(){return C.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)}},Ct=class extends _{constructor(t,e,r){super(e,r),this.parser=t}block(){return this.getTypedRuleContext(Tt,0)}parameterList(){return this.getTypedRuleContext(ct,0)}identifier(){return this.getTypedRuleContext(xe,0)}get ruleIndex(){return C.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)}},Lt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Qt,0)}statement(){return this.getTypedRuleContext(St,0)}get ruleIndex(){return C.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)}},It=class extends _{constructor(t,e,r){super(e,r),this.parser=t}variableDeclarationStatement(){return this.getTypedRuleContext(jt,0)}expressionStatement(){return this.getTypedRuleContext(kt,0)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}block(){return this.getTypedRuleContext(Tt,0)}get ruleIndex(){return C.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)}},Nt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}statement(){return this.getTypedRuleContext(St,0)}simpleStatement(){return this.getTypedRuleContext(It,0)}expressionStatement(){return this.getTypedRuleContext(kt,0)}expression(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return C.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)}},Dt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyBlock(){return this.getTypedRuleContext(te,0)}StringLiteralFragment(){return this.getToken(C.StringLiteralFragment,0)}inlineAssemblyStatementFlag(){return this.getTypedRuleContext(Ot,0)}get ruleIndex(){return C.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)}},Ot=class extends _{constructor(t,e,r){super(e,r),this.parser=t}stringLiteral(){return this.getTypedRuleContext(Ee,0)}get ruleIndex(){return C.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)}},Pt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}statement(){return this.getTypedRuleContext(St,0)}expression(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return C.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)}},qt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ContinueKeyword(){return this.getToken(C.ContinueKeyword,0)}get ruleIndex(){return C.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)}},Ft=class extends _{constructor(t,e,r){super(e,r),this.parser=t}BreakKeyword(){return this.getToken(C.BreakKeyword,0)}get ruleIndex(){return C.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)}},Ut=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return C.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)}},Mt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.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)}},Yt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionCall(){return this.getTypedRuleContext(Zt,0)}get ruleIndex(){return C.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)}},Vt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionCall(){return this.getTypedRuleContext(Zt,0)}get ruleIndex(){return C.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)}},jt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifierList(){return this.getTypedRuleContext(Ht,0)}variableDeclaration(){return this.getTypedRuleContext(mt,0)}variableDeclarationList(){return this.getTypedRuleContext(Bt,0)}expression(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}variableDeclaration_list(){return this.getTypedRuleContexts(mt)}variableDeclaration(t){return this.getTypedRuleContext(mt,t)}get ruleIndex(){return C.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)}},Ht=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(xe)}identifier(t){return this.getTypedRuleContext(xe,t)}get ruleIndex(){return C.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)}},$t=class extends _{constructor(t,e,r){super(e,r),this.parser=t}Int(){return this.getToken(C.Int,0)}Uint(){return this.getToken(C.Uint,0)}Byte(){return this.getToken(C.Byte,0)}Fixed(){return this.getToken(C.Fixed,0)}Ufixed(){return this.getToken(C.Ufixed,0)}get ruleIndex(){return C.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)}},Qt=class t extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}expression_list(){return this.getTypedRuleContexts(t)}expression(e){return this.getTypedRuleContext(t,e)}primaryExpression(){return this.getTypedRuleContext(Gt,0)}identifier(){return this.getTypedRuleContext(xe,0)}nameValueList(){return this.getTypedRuleContext(zt,0)}functionCallArguments(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return C.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)}},Gt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}BooleanLiteral(){return this.getToken(C.BooleanLiteral,0)}numberLiteral(){return this.getTypedRuleContext(ve,0)}hexLiteral(){return this.getTypedRuleContext(be,0)}stringLiteral(){return this.getTypedRuleContext(Ee,0)}identifier(){return this.getTypedRuleContext(xe,0)}TypeKeyword(){return this.getToken(C.TypeKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}tupleExpression(){return this.getTypedRuleContext(we,0)}typeName(){return this.getTypedRuleContext(yt,0)}get ruleIndex(){return C.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)}},Wt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression_list(){return this.getTypedRuleContexts(Qt)}expression(t){return this.getTypedRuleContext(Qt,t)}get ruleIndex(){return C.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 _{constructor(t,e,r){super(e,r),this.parser=t}nameValue_list(){return this.getTypedRuleContexts(Xt)}nameValue(t){return this.getTypedRuleContext(Xt,t)}get ruleIndex(){return C.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)}},Xt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}expression(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return C.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)}},Jt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}nameValueList(){return this.getTypedRuleContext(zt,0)}expressionList(){return this.getTypedRuleContext(Wt,0)}get ruleIndex(){return C.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)}},Zt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Qt,0)}functionCallArguments(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return C.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)}},te=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyItem_list(){return this.getTypedRuleContexts(ee)}assemblyItem(t){return this.getTypedRuleContext(ee,t)}get ruleIndex(){return C.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)}},ee=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}assemblyBlock(){return this.getTypedRuleContext(te,0)}assemblyExpression(){return this.getTypedRuleContext(re,0)}assemblyLocalDefinition(){return this.getTypedRuleContext(ne,0)}assemblyAssignment(){return this.getTypedRuleContext(ae,0)}assemblyStackAssignment(){return this.getTypedRuleContext(le,0)}labelDefinition(){return this.getTypedRuleContext(he,0)}assemblySwitch(){return this.getTypedRuleContext(ue,0)}assemblyFunctionDefinition(){return this.getTypedRuleContext(pe,0)}assemblyFor(){return this.getTypedRuleContext(ye,0)}assemblyIf(){return this.getTypedRuleContext(fe,0)}BreakKeyword(){return this.getToken(C.BreakKeyword,0)}ContinueKeyword(){return this.getToken(C.ContinueKeyword,0)}LeaveKeyword(){return this.getToken(C.LeaveKeyword,0)}numberLiteral(){return this.getTypedRuleContext(ve,0)}stringLiteral(){return this.getTypedRuleContext(Ee,0)}hexLiteral(){return this.getTypedRuleContext(be,0)}get ruleIndex(){return C.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)}},re=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyCall(){return this.getTypedRuleContext(ie,0)}assemblyLiteral(){return this.getTypedRuleContext(ge,0)}assemblyMember(){return this.getTypedRuleContext(se,0)}get ruleIndex(){return C.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)}},se=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(xe)}identifier(t){return this.getTypedRuleContext(xe,t)}get ruleIndex(){return C.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)}},ie=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}assemblyExpression_list(){return this.getTypedRuleContexts(re)}assemblyExpression(t){return this.getTypedRuleContext(re,t)}get ruleIndex(){return C.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)}},ne=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(oe,0)}assemblyExpression(){return this.getTypedRuleContext(re,0)}get ruleIndex(){return C.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)}},ae=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(oe,0)}assemblyExpression(){return this.getTypedRuleContext(re,0)}get ruleIndex(){return C.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)}},oe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}assemblyMember(){return this.getTypedRuleContext(se,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ce,0)}get ruleIndex(){return C.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)}},ce=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(xe)}identifier(t){return this.getTypedRuleContext(xe,t)}get ruleIndex(){return C.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)}},le=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(re,0)}identifier(){return this.getTypedRuleContext(xe,0)}get ruleIndex(){return C.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)}},he=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}get ruleIndex(){return C.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)}},ue=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(re,0)}assemblyCase_list(){return this.getTypedRuleContexts(de)}assemblyCase(t){return this.getTypedRuleContext(de,t)}get ruleIndex(){return C.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)}},de=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyLiteral(){return this.getTypedRuleContext(ge,0)}assemblyBlock(){return this.getTypedRuleContext(te,0)}get ruleIndex(){return C.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)}},pe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(xe,0)}assemblyBlock(){return this.getTypedRuleContext(te,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ce,0)}assemblyFunctionReturns(){return this.getTypedRuleContext(me,0)}get ruleIndex(){return C.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)}},me=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierList(){return this.getTypedRuleContext(ce,0)}get ruleIndex(){return C.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)}},ye=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression_list(){return this.getTypedRuleContexts(re)}assemblyExpression(t){return this.getTypedRuleContext(re,t)}assemblyBlock_list(){return this.getTypedRuleContexts(te)}assemblyBlock(t){return this.getTypedRuleContext(te,t)}get ruleIndex(){return C.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)}},fe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(re,0)}assemblyBlock(){return this.getTypedRuleContext(te,0)}get ruleIndex(){return C.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)}},ge=class extends _{constructor(t,e,r){super(e,r),this.parser=t}stringLiteral(){return this.getTypedRuleContext(Ee,0)}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}HexNumber(){return this.getToken(C.HexNumber,0)}hexLiteral(){return this.getTypedRuleContext(be,0)}BooleanLiteral(){return this.getToken(C.BooleanLiteral,0)}get ruleIndex(){return C.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)}},we=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression_list(){return this.getTypedRuleContexts(Qt)}expression(t){return this.getTypedRuleContext(Qt,t)}get ruleIndex(){return C.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)}},ve=class extends _{constructor(t,e,r){super(e,r),this.parser=t}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}HexNumber(){return this.getToken(C.HexNumber,0)}NumberUnit(){return this.getToken(C.NumberUnit,0)}get ruleIndex(){return C.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)}},xe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ReceiveKeyword(){return this.getToken(C.ReceiveKeyword,0)}GlobalKeyword(){return this.getToken(C.GlobalKeyword,0)}ConstructorKeyword(){return this.getToken(C.ConstructorKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}LeaveKeyword(){return this.getToken(C.LeaveKeyword,0)}Identifier(){return this.getToken(C.Identifier,0)}get ruleIndex(){return C.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)}},be=class extends _{constructor(t,e,r){super(e,r),this.parser=t}HexLiteralFragment_list(){return this.getTokens(C.HexLiteralFragment)}HexLiteralFragment(t){return this.getToken(C.HexLiteralFragment,t)}get ruleIndex(){return C.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)}},_e=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName_list(){return this.getTypedRuleContexts(ft)}userDefinedTypeName(t){return this.getTypedRuleContext(ft,t)}get ruleIndex(){return C.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)}},Ee=class extends _{constructor(t,e,r){super(e,r),this.parser=t}StringLiteralFragment_list(){return this.getTokens(C.StringLiteralFragment)}StringLiteralFragment(t){return this.getToken(C.StringLiteralFragment,t)}get ruleIndex(){return C.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)}},Te=["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"],Se=["+","-","*","/","**","%","<<",">>","&&","||","&","^","<",">","<=",">=","==","!=","=","^=","&=","<<=",">>=","+=","-=","*=","/=","%=","|","|="],ke=["-","+","++","--","~","after","delete","!"],Re=class extends v{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=t.customStorageLayout_list();if(s.length>1)throw new Error("Only one custom storage layout is allowed per contract");const i={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 1===s.length&&(i.storageLayout=this.visitExpression(s[0].expression())),this._addMeta(i,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);let u=!1;t.TransientKeyword_list().length>0&&(u=!0);const d={type:"VariableDeclaration",typeName:e,name:s,identifier:this.visitIdentifier(r),expression:i,visibility:a,isStateVar:!0,isDeclaredConst:c,isIndexed:!1,isImmutable:h,isTransient:u,override:o,storageLocation:null},p={type:"StateVariableDeclaration",variables:[this._addMeta(d,t)],initialValue:i};return this._addMeta(p,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(ke.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 Se.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}},Ae=class extends m{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}},Ce={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:"layout",26:"at",27:"error",28:"using",29:"for",30:"|",31:"&",32:"+",33:"-",34:"/",35:"%",36:"==",37:"!=",38:"struct",39:"modifier",40:"function",41:"returns",42:"event",43:"enum",44:"[",45:"]",46:"address",47:".",48:"mapping",49:"=>",50:"memory",51:"storage",52:"calldata",53:"if",54:"else",55:"try",56:"catch",57:"while",58:"unchecked",59:"assembly",60:"do",61:"return",62:"throw",63:"emit",64:"revert",65:"var",66:"bool",67:"string",68:"byte",69:"++",70:"--",71:"new",72:":",73:"delete",74:"!",75:"**",76:"<<",77:">>",78:"&&",79:"?",80:"|=",81:"^=",82:"&=",83:"<<=",84:">>=",85:"+=",86:"-=",87:"*=",88:"/=",89:"%=",90:"let",91:":=",92:"=:",93:"switch",94:"case",95:"default",96:"->",97:"callback",98:"override",99:"Int",100:"Uint",101:"Byte",102:"Fixed",103:"Ufixed",104:"BooleanLiteral",105:"DecimalNumber",106:"HexNumber",107:"NumberUnit",108:"HexLiteralFragment",109:"ReservedKeyword",110:"anonymous",111:"break",112:"constant",113:"transient",114:"immutable",115:"continue",116:"leave",117:"external",118:"indexed",119:"internal",120:"payable",121:"private",122:"public",123:"virtual",124:"pure",125:"type",126:"view",127:"global",128:"constructor",129:"fallback",130:"receive",131:"Identifier",132:"StringLiteralFragment",133:"VersionLiteral",134:"WS",135:"COMMENT",136:"LINE_COMMENT"},Le=["var","bool","address","string","Int","Uint","Byte","Fixed","UFixed"];function Ie(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 Ne(t,e){return t.map((t=>{var r;const s={type:"Identifier"===(r=Ce[t.type.toString()])||"from"===r?"Identifier":"TrueLiteral"===r||"FalseLiteral"===r?"Boolean":"VersionLiteral"===r?"Version":"StringLiteral"===r?"String":Le.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=Ie(t)),!0===e.loc&&(s.loc=Ke(t)),s}))}var De=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 Oe(t,e={}){const r=new u(t);return Ne(new R(r).getAllTokens(),e)}function Pe(t,e={}){const r=new u(t),s=new R(r),i=new d(s),n=new C(i),a=new Ae;s.removeErrorListeners(),s.addErrorListener(a),n.removeErrorListeners(),n.addErrorListener(a),n.buildParseTrees=!0;const o=n.sourceUnit(),c=new Re(e);c.visit(o);const l=c.result;if(null===l)throw new Error("ast should never be null");if(!0===e.tokens&&(l.tokens=Ne(i.tokens,e)),!0===e.comments&&(l.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=Ie(t)),!0===r.loc&&(e.loc=Ke(t)),e}))}(i.tokens,s.channelNames.indexOf("HIDDEN"),e)),a.hasErrors()){if(!0!==e.tolerant)throw new De({errors:a.getErrors()});l.errors=a.getErrors()}return l}function qe(t,e,r){if(Array.isArray(t)&&t.forEach((t=>qe(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)&&Te.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)&&qe(t[r],e,t);const i=t.type+":exit";void 0!==e[i]&&e[i](t,r)}var Fe,Ue={ParserError:De,parse:Pe,tokenize:Oe,visit:qe};return Fe=i,((i,n,a,o)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let a of r(n))s.call(i,a)||undefined===a||t(i,a,{get:()=>n[a],enumerable:!(o=e(n,a))||o.enumerable});return i})(t({},"__esModule",{value:!0}),Fe)})();return t},t.exports=s()},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)}}))},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)}}))},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)}}))},3273:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(4675),n=r(4796),a=r(876),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)}}))},3357:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>x});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),v=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]=v.then?(await v)():v;class x{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)}}))},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)}}))},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)}}))},3449:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(4675),n=r(838),a=r(876),o=t([i]);i=(o.then?(await o)():o)[0];const{addTrailingComment:c}=n.util;function l({precedingNode:t,enclosingNode:e,comment:r}){if((null==e?void 0:e.kind)!==i.q3.ContractSpecifiers)return!1;if(t&&t.kind===i.q3.ContractSpecifier){if(t.variant.kind===i.q3.InheritanceSpecifier)return(0,a.A)(t.variant.types,r),!0;if(t.variant.kind===i.q3.StorageLayoutSpecifier)return c(t.variant.expression,r),!0}return!1}s()}catch(h){s(h)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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(5427),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c{constructor(t){this.kind=i.q3.YulPath;const e=(0,n.sQ)(t,!0);this.items=t.items.map((t=>new a.E(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)}}))},3868:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>l});var i=r(4675),n=r(801),a=r(3892),o=r(4557),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l{constructor(t,e){this.kind=i.q3.ContractSpecifier;let r=(0,n.sQ)(t);switch(t.variant.cst.kind){case i.q3.InheritanceSpecifier:this.variant=new a.R(t.variant,e);break;case i.q3.StorageLayoutSpecifier:this.variant=new o.o(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)}}))},3874:(t,e,r)=>{const s=r(8311);t.exports=(t,e)=>{try{return new s(t,e).range||"*"}catch(t){return null}}},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=hs((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{members:new vr(t)}})),us(this.cst.kind,n.q3.SourceUnit)}get members(){return this.fetch().members}}class c{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{pragmaKeyword:t,pragma:new Le(e),semicolon:r}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{abicoderKeyword:t,version:e}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{experimentalKeyword:t,feature:new Ie(e)}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{solidityKeyword:t,sets:new Yr(e)}})),us(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=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{start:new De(t),minus:e,end:new De(r)}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operator:void 0===t?void 0:new Ne(t),literal:new De(e)}})),us(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=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{importKeyword:t,clause:new Oe(e),semicolon:r}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{path:new hr(t),alias:void 0===e?void 0:new v(e)}})),us(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=hs((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{asterisk:t,alias:new v(e),fromKeyword:r,path:new hr(s)}})),us(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=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,symbols:new jr(e),closeBrace:r,fromKeyword:s,path:new hr(n)}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:t,alias:void 0===e?void 0:new v(e)}})),us(this.cst.kind,n.q3.ImportDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class v{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:t,identifier:e}})),us(this.cst.kind,n.q3.ImportAlias)}get asKeyword(){return this.fetch().asKeyword}get identifier(){return this.fetch().identifier}}class x{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{usingKeyword:t,clause:new Pe(e),forKeyword:r,target:new Fe(s),globalKeyword:void 0===n?void 0:n,semicolon:a}})),us(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=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,symbols:new Br(e),closeBrace:r}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:new is(t),alias:void 0===e?void 0:new E(e)}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:t,operator:new qe(e)}})),us(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=hs((()=>{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,specifiers:new br(s),openBrace:n,members:new _r(a),closeBrace:o}})),us(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 specifiers(){return this.fetch().specifiers}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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{isKeyword:t,types:new Hr(e)}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new is(t),arguments:void 0===e?void 0:new or(e)}})),us(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=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{layoutKeyword:t,atKeyword:e,expression:new ar(r)}})),us(this.cst.kind,n.q3.StorageLayoutSpecifier)}get layoutKeyword(){return this.fetch().layoutKeyword}get atKeyword(){return this.fetch().atKeyword}get expression(){return this.fetch().expression}}class A{constructor(t){this.cst=t,this.fetch=hs((()=>{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 Er(n),closeBrace:a}})),us(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=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{libraryKeyword:t,name:e,openBrace:r,members:new Tr(s),closeBrace:n}})),us(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 L{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{structKeyword:t,name:e,openBrace:r,members:new Sr(s),closeBrace:n}})),us(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 I{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),name:e,semicolon:r}})),us(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 K{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{enumKeyword:t,name:e,openBrace:r,members:new $r(s),closeBrace:n}})),us(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 N{constructor(t){this.cst=t,this.fetch=hs((()=>{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 ar(n),semicolon:a}})),us(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 D{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),attributes:new kr(e),name:r,value:void 0===s?void 0:new O(s),semicolon:n}})),us(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 O{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,value:new ar(e)}})),us(this.cst.kind,n.q3.StateVariableDefinitionValue)}get equal(){return this.fetch().equal}get value(){return this.fetch().value}}class P{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,name:new Ve(e),parameters:new q(r),attributes:new Rr(s),returns:void 0===n?void 0:new Y(n),body:new Be(a)}})),us(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 q{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new Qr(e),closeParen:r}})),us(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 F{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),storageLocation:void 0===e?void 0:new sr(e),name:void 0===r?void 0:r}})),us(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 U{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{overrideKeyword:t,overridden:void 0===e?void 0:new M(e)}})),us(this.cst.kind,n.q3.OverrideSpecifier)}get overrideKeyword(){return this.fetch().overrideKeyword}get overridden(){return this.fetch().overridden}}class M{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,paths:new Gr(e),closeParen:r}})),us(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 Y{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{returnsKeyword:t,variables:new q(e)}})),us(this.cst.kind,n.q3.ReturnsDeclaration)}get returnsKeyword(){return this.fetch().returnsKeyword}get variables(){return this.fetch().variables}}class V{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{constructorKeyword:t,parameters:new q(e),attributes:new Ar(r),body:new ot(s)}})),us(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 j{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new q(e),attributes:new Cr(r),body:new Be(s)}})),us(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 B{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{fallbackKeyword:t,parameters:new q(e),attributes:new Lr(r),returns:void 0===s?void 0:new Y(s),body:new Be(n)}})),us(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=hs((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{receiveKeyword:t,parameters:new q(e),attributes:new Ir(r),body:new Be(s)}})),us(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 ${constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{modifierKeyword:t,name:e,parameters:void 0===r?void 0:new q(r),attributes:new Kr(s),body:new Be(n)}})),us(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 Q{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:new is(t),arguments:void 0===e?void 0:new or(e)}})),us(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=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{eventKeyword:t,name:e,parameters:new W(r),anonymousKeyword:void 0===s?void 0:s,semicolon:n}})),us(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 W{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new Wr(e),closeParen:r}})),us(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=hs((()=>{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}})),us(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=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:t,name:e,isKeyword:r,valueType:new Ze(s),semicolon:n}})),us(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 J{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{errorKeyword:t,name:e,members:new Z(r),semicolon:s}})),us(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 Z{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new zr(e),closeParen:r}})),us(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 tt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),name:void 0===e?void 0:e}})),us(this.cst.kind,n.q3.ErrorParameter)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}}class et{constructor(t){this.cst=t,this.fetch=hs((()=>{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 ar(r),closeBracket:s}})),us(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 rt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new q(e),attributes:new Nr(r),returns:void 0===s?void 0:new Y(s)}})),us(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 st{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{mappingKeyword:t,openParen:e,keyType:new it(r),equalGreaterThan:s,valueType:new nt(n),closeParen:a}})),us(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 it{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{keyType:new Je(t),name:void 0===e?void 0:e}})),us(this.cst.kind,n.q3.MappingKey)}get keyType(){return this.fetch().keyType}get name(){return this.fetch().name}}class nt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),name:void 0===e?void 0:e}})),us(this.cst.kind,n.q3.MappingValue)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}}class at{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{addressKeyword:t,payableKeyword:void 0===e?void 0:e}})),us(this.cst.kind,n.q3.AddressType)}get addressKeyword(){return this.fetch().addressKeyword}get payableKeyword(){return this.fetch().payableKeyword}}class ot{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,statements:new Dr(e),closeBrace:r}})),us(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 ct{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{uncheckedKeyword:t,block:new ot(e)}})),us(this.cst.kind,n.q3.UncheckedBlock)}get uncheckedKeyword(){return this.fetch().uncheckedKeyword}get block(){return this.fetch().block}}class lt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{expression:new ar(t),semicolon:e}})),us(this.cst.kind,n.q3.ExpressionStatement)}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class ht{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{assemblyKeyword:t,label:void 0===e?void 0:new hr(e),flags:void 0===r?void 0:new ut(r),body:new le(s)}})),us(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 ut{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,flags:new Xr(e),closeParen:r}})),us(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 dt{constructor(t){this.cst=t,this.fetch=hs((()=>{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 Jr(r),closeParen:s,equal:n,expression:new ar(a),semicolon:o}})),us(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 pt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{member:void 0===t?void 0:new er(t)}})),us(this.cst.kind,n.q3.TupleDeconstructionElement)}get member(){return this.fetch().member}}class mt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ze(t),storageLocation:void 0===e?void 0:new sr(e),name:r}})),us(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 yt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{storageLocation:void 0===t?void 0:new sr(t),name:e}})),us(this.cst.kind,n.q3.UntypedTupleMember)}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class ft{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{variableType:new rr(t),storageLocation:void 0===e?void 0:new sr(e),name:r,value:void 0===s?void 0:new gt(s),semicolon:n}})),us(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 gt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,expression:new ar(e)}})),us(this.cst.kind,n.q3.VariableDeclarationValue)}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}}class wt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:t,openParen:e,condition:new ar(r),closeParen:s,body:new tr(n),elseBranch:void 0===a?void 0:new vt(a)}})),us(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 vt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{elseKeyword:t,body:new tr(e)}})),us(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=hs((()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{forKeyword:t,openParen:e,initialization:new ir(r),condition:new nr(s),iterator:void 0===n?void 0:new ar(n),closeParen:a,body:new tr(o)}})),us(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 bt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{whileKeyword:t,openParen:e,condition:new ar(r),closeParen:s,body:new tr(n)}})),us(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 _t{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{doKeyword:t,body:new tr(e),whileKeyword:r,openParen:s,condition:new ar(n),closeParen:a,semicolon:o}})),us(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 Et{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:t,semicolon:e}})),us(this.cst.kind,n.q3.ContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}get semicolon(){return this.fetch().semicolon}}class Tt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:t,semicolon:e}})),us(this.cst.kind,n.q3.BreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}get semicolon(){return this.fetch().semicolon}}class St{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{returnKeyword:t,expression:void 0===e?void 0:new ar(e),semicolon:r}})),us(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 kt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{emitKeyword:t,event:new is(e),arguments:new or(r),semicolon:s}})),us(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 Rt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{tryKeyword:t,expression:new ar(e),returns:void 0===r?void 0:new Y(r),body:new ot(s),catchClauses:new Or(n)}})),us(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 At{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{catchKeyword:t,error:void 0===e?void 0:new Ct(e),body:new ot(r)}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:void 0===t?void 0:t,parameters:new q(e)}})),us(this.cst.kind,n.q3.CatchClauseError)}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}}class Lt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{revertKeyword:t,error:void 0===e?void 0:new is(e),arguments:new or(r),semicolon:s}})),us(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 It{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{throwKeyword:t,semicolon:e}})),us(this.cst.kind,n.q3.ThrowStatement)}get throwKeyword(){return this.fetch().throwKeyword}get semicolon(){return this.fetch().semicolon}}class Kt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ar(t),operator:e,rightOperand:new ar(r)}})),us(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 Nt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{operand:new ar(t),questionMark:e,trueExpression:new ar(r),colon:s,falseExpression:new ar(n)}})),us(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 Dt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ar(t),operator:e,rightOperand:new ar(r)}})),us(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 Ot{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ar(t),operator:e,rightOperand:new ar(r)}})),us(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 Pt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ar(t),operator:e,rightOperand:new ar(r)}})),us(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 qt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ar(t),operator:e,rightOperand:new ar(r)}})),us(this.cst.kind,n.q3.InequalityExpression)}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=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ar(t),operator:e,rightOperand:new ar(r)}})),us(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 Ut{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ar(t),operator:e,rightOperand:new ar(r)}})),us(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 Mt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ar(t),operator:e,rightOperand:new ar(r)}})),us(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 Yt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ar(t),operator:e,rightOperand:new ar(r)}})),us(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 Vt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ar(t),operator:e,rightOperand:new ar(r)}})),us(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 jt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ar(t),operator:e,rightOperand:new ar(r)}})),us(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 Bt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new ar(t),operator:e,rightOperand:new ar(r)}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operand:new ar(t),operator:e}})),us(this.cst.kind,n.q3.PostfixExpression)}get operand(){return this.fetch().operand}get operator(){return this.fetch().operator}}class $t{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operator:t,operand:new ar(e)}})),us(this.cst.kind,n.q3.PrefixExpression)}get operator(){return this.fetch().operator}get operand(){return this.fetch().operand}}class Qt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operand:new ar(t),arguments:new or(e)}})),us(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=hs((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new ar(t),openBrace:e,options:new es(r),closeBrace:s}})),us(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 Wt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{operand:new ar(t),period:e,member:r}})),us(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=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{operand:new ar(t),openBracket:e,start:void 0===r?void 0:new ar(r),end:void 0===s?void 0:new Xt(s),closeBracket:n}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{colon:t,end:void 0===e?void 0:new ar(e)}})),us(this.cst.kind,n.q3.IndexAccessEnd)}get colon(){return this.fetch().colon}get end(){return this.fetch().end}}class Jt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,arguments:new Zr(e),closeParen:r}})),us(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 Zt{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,arguments:void 0===e?void 0:new te(e),closeParen:r}})),us(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 te{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,arguments:new ts(e),closeBrace:r}})),us(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 ee{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{name:t,colon:e,value:new ar(r)}})),us(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 re{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:t,openParen:e,typeName:new ze(r),closeParen:s}})),us(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 se{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{newKeyword:t,typeName:new ze(e)}})),us(this.cst.kind,n.q3.NewExpression)}get newKeyword(){return this.fetch().newKeyword}get typeName(){return this.fetch().typeName}}class ie{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,items:new rs(e),closeParen:r}})),us(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 ne{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{expression:void 0===t?void 0:new ar(t)}})),us(this.cst.kind,n.q3.TupleValue)}get expression(){return this.fetch().expression}}class ae{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBracket:t,items:new ss(e),closeBracket:r}})),us(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 oe{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{literal:t,unit:void 0===e?void 0:new cr(e)}})),us(this.cst.kind,n.q3.HexNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}}class ce{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{literal:t,unit:void 0===e?void 0:new cr(e)}})),us(this.cst.kind,n.q3.DecimalNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}}class le{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,statements:new Ur(e),closeBrace:r}})),us(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 he{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,name:e,parameters:new ue(r),returns:void 0===s?void 0:new de(s),body:new le(n)}})),us(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 ue{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new ns(e),closeParen:r}})),us(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 de{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{minusGreaterThan:t,variables:new as(e)}})),us(this.cst.kind,n.q3.YulReturnsDeclaration)}get minusGreaterThan(){return this.fetch().minusGreaterThan}get variables(){return this.fetch().variables}}class pe{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{letKeyword:t,variables:new as(e),value:void 0===r?void 0:new me(r)}})),us(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 me{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{assignment:new mr(t),expression:new gr(e)}})),us(this.cst.kind,n.q3.YulVariableDeclarationValue)}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}}class ye{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{variables:new cs(t),assignment:new mr(e),expression:new gr(r)}})),us(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 fe{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{colon:t,equal:e}})),us(this.cst.kind,n.q3.YulColonAndEqual)}get colon(){return this.fetch().colon}get equal(){return this.fetch().equal}}class ge{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{assignment:new yr(t),variable:e}})),us(this.cst.kind,n.q3.YulStackAssignmentStatement)}get assignment(){return this.fetch().assignment}get variable(){return this.fetch().variable}}class we{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,colon:e}})),us(this.cst.kind,n.q3.YulEqualAndColon)}get equal(){return this.fetch().equal}get colon(){return this.fetch().colon}}class ve{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:t,condition:new gr(e),body:new le(r)}})),us(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=hs((()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{forKeyword:t,initialization:new le(e),condition:new gr(r),iterator:new le(s),body:new le(n)}})),us(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 be{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{switchKeyword:t,expression:new gr(e),cases:new Mr(r)}})),us(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 _e{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{defaultKeyword:t,body:new le(e)}})),us(this.cst.kind,n.q3.YulDefaultCase)}get defaultKeyword(){return this.fetch().defaultKeyword}get body(){return this.fetch().body}}class Ee{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{caseKeyword:t,value:new wr(e),body:new le(r)}})),us(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 Te{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{leaveKeyword:t}})),us(this.cst.kind,n.q3.YulLeaveStatement)}get leaveKeyword(){return this.fetch().leaveKeyword}}class Se{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:t}})),us(this.cst.kind,n.q3.YulBreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}}class ke{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:t}})),us(this.cst.kind,n.q3.YulContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}}class Re{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{label:t,colon:e}})),us(this.cst.kind,n.q3.YulLabel)}get label(){return this.fetch().label}get colon(){return this.fetch().colon}}class Ae{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new gr(t),openParen:e,arguments:new os(r),closeParen:s}})),us(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=hs((()=>{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 A(t);case n.q3.LibraryDefinition:return new C(t);case n.q3.StructDefinition:return new L(t);case n.q3.EnumDefinition:return new K(t);case n.q3.FunctionDefinition:return new P(t);case n.q3.ErrorDefinition:return new J(t);case n.q3.UserDefinedValueTypeDefinition:return new X(t);case n.q3.UsingDirective:return new x(t);case n.q3.EventDefinition:return new G(t);case n.q3.ConstantDefinition:return new N(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.SourceUnitMember)}get variant(){return this.fetch()}}class Le{constructor(t){this.cst=t,this.fetch=hs((()=>{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}'.`)}})),us(this.cst.kind,n.q3.Pragma)}get variant(){return this.fetch()}}class Ie{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.StringLiteral)return new hr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),us(this.cst.kind,n.q3.ExperimentalFeature)}get variant(){return this.fetch()}}class Ke{constructor(t){this.cst=t,this.fetch=hs((()=>{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}'.`)}})),us(this.cst.kind,n.q3.VersionExpression)}get variant(){return this.fetch()}}class Ne{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.choice(this.cst))),us(this.cst.kind,n.q3.VersionOperator)}get variant(){return this.fetch()}}class De{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.SimpleVersionLiteral)return new Vr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),us(this.cst.kind,n.q3.VersionLiteral)}get variant(){return this.fetch()}}class Oe{constructor(t){this.cst=t,this.fetch=hs((()=>{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}'.`)}})),us(this.cst.kind,n.q3.ImportClause)}get variant(){return this.fetch()}}class Pe{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.IdentifierPath:return new is(t);case n.q3.UsingDeconstruction:return new b(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.UsingClause)}get variant(){return this.fetch()}}class qe{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.choice(this.cst))),us(this.cst.kind,n.q3.UsingOperator)}get variant(){return this.fetch()}}class Fe{constructor(t){this.cst=t,this.fetch=hs((()=>{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}'.`)})),us(this.cst.kind,n.q3.UsingTarget)}get variant(){return this.fetch()}}class Ue{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.InheritanceSpecifier:return new S(t);case n.q3.StorageLayoutSpecifier:return new R(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.ContractSpecifier)}get variant(){return this.fetch()}}class Me{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.UsingDirective:return new x(t);case n.q3.FunctionDefinition:return new P(t);case n.q3.ConstructorDefinition:return new V(t);case n.q3.ReceiveFunctionDefinition:return new H(t);case n.q3.FallbackFunctionDefinition:return new B(t);case n.q3.UnnamedFunctionDefinition:return new j(t);case n.q3.ModifierDefinition:return new $(t);case n.q3.StructDefinition:return new L(t);case n.q3.EnumDefinition:return new K(t);case n.q3.EventDefinition:return new G(t);case n.q3.ErrorDefinition:return new J(t);case n.q3.UserDefinedValueTypeDefinition:return new X(t);case n.q3.StateVariableDefinition:return new D(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.ContractMember)}get variant(){return this.fetch()}}class Ye{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.OverrideSpecifier)return new U(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),us(this.cst.kind,n.q3.StateVariableAttribute)}get variant(){return this.fetch()}}class Ve{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.choice(this.cst))),us(this.cst.kind,n.q3.FunctionName)}get variant(){return this.fetch()}}class je{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new Q(t);case n.q3.OverrideSpecifier:return new U(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.FunctionAttribute)}get variant(){return this.fetch()}}class Be{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.Block)return new ot(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),us(this.cst.kind,n.q3.FunctionBody)}get variant(){return this.fetch()}}class He{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ModifierInvocation)return new Q(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),us(this.cst.kind,n.q3.ConstructorAttribute)}get variant(){return this.fetch()}}class $e{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ModifierInvocation)return new Q(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),us(this.cst.kind,n.q3.UnnamedFunctionAttribute)}get variant(){return this.fetch()}}class Qe{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new Q(t);case n.q3.OverrideSpecifier:return new U(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.FallbackFunctionAttribute)}get variant(){return this.fetch()}}class Ge{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new Q(t);case n.q3.OverrideSpecifier:return new U(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.ReceiveFunctionAttribute)}get variant(){return this.fetch()}}class We{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.OverrideSpecifier)return new U(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),us(this.cst.kind,n.q3.ModifierAttribute)}get variant(){return this.fetch()}}class ze{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.ArrayTypeName:return new et(t);case n.q3.FunctionType:return new rt(t);case n.q3.MappingType:return new st(t);case n.q3.ElementaryType:return new Ze(t);case n.q3.IdentifierPath:return new is(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.TypeName)}get variant(){return this.fetch()}}class Xe{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.choice(this.cst))),us(this.cst.kind,n.q3.FunctionTypeAttribute)}get variant(){return this.fetch()}}class Je{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.ElementaryType:return new Ze(t);case n.q3.IdentifierPath:return new is(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.MappingKeyType)}get variant(){return this.fetch()}}class Ze{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.AddressType)return new at(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),us(this.cst.kind,n.q3.ElementaryType)}get variant(){return this.fetch()}}class tr{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.IfStatement:return new wt(t);case n.q3.ForStatement:return new xt(t);case n.q3.WhileStatement:return new bt(t);case n.q3.DoWhileStatement:return new _t(t);case n.q3.ContinueStatement:return new Et(t);case n.q3.BreakStatement:return new Tt(t);case n.q3.ReturnStatement:return new St(t);case n.q3.ThrowStatement:return new It(t);case n.q3.EmitStatement:return new kt(t);case n.q3.TryStatement:return new Rt(t);case n.q3.RevertStatement:return new Lt(t);case n.q3.AssemblyStatement:return new ht(t);case n.q3.Block:return new ot(t);case n.q3.UncheckedBlock:return new ct(t);case n.q3.TupleDeconstructionStatement:return new dt(t);case n.q3.VariableDeclarationStatement:return new ft(t);case n.q3.ExpressionStatement:return new lt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.Statement)}get variant(){return this.fetch()}}class er{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.TypedTupleMember:return new mt(t);case n.q3.UntypedTupleMember:return new yt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.TupleMember)}get variant(){return this.fetch()}}class rr{constructor(t){this.cst=t,this.fetch=hs((()=>{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}'.`)})),us(this.cst.kind,n.q3.VariableDeclarationType)}get variant(){return this.fetch()}}class sr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.choice(this.cst))),us(this.cst.kind,n.q3.StorageLocation)}get variant(){return this.fetch()}}class ir{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.TupleDeconstructionStatement:return new dt(t);case n.q3.VariableDeclarationStatement:return new ft(t);case n.q3.ExpressionStatement:return new lt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.ForStatementInitialization)}get variant(){return this.fetch()}}class nr{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ExpressionStatement)return new lt(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),us(this.cst.kind,n.q3.ForStatementCondition)}get variant(){return this.fetch()}}class ar{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.AssignmentExpression:return new Kt(t);case n.q3.ConditionalExpression:return new Nt(t);case n.q3.OrExpression:return new Dt(t);case n.q3.AndExpression:return new Ot(t);case n.q3.EqualityExpression:return new Pt(t);case n.q3.InequalityExpression:return new qt(t);case n.q3.BitwiseOrExpression:return new Ft(t);case n.q3.BitwiseXorExpression:return new Ut(t);case n.q3.BitwiseAndExpression:return new Mt(t);case n.q3.ShiftExpression:return new Yt(t);case n.q3.AdditiveExpression:return new Vt(t);case n.q3.MultiplicativeExpression:return new jt(t);case n.q3.ExponentiationExpression:return new Bt(t);case n.q3.PostfixExpression:return new Ht(t);case n.q3.PrefixExpression:return new $t(t);case n.q3.FunctionCallExpression:return new Qt(t);case n.q3.CallOptionsExpression:return new Gt(t);case n.q3.MemberAccessExpression:return new Wt(t);case n.q3.IndexAccessExpression:return new zt(t);case n.q3.NewExpression:return new se(t);case n.q3.TupleExpression:return new ie(t);case n.q3.TypeExpression:return new re(t);case n.q3.ArrayExpression:return new ae(t);case n.q3.HexNumberExpression:return new oe(t);case n.q3.DecimalNumberExpression:return new ce(t);case n.q3.StringExpression:return new lr(t);case n.q3.ElementaryType:return new Ze(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.Expression)}get variant(){return this.fetch()}}class or{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PositionalArgumentsDeclaration:return new Jt(t);case n.q3.NamedArgumentsDeclaration:return new Zt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.ArgumentsDeclaration)}get variant(){return this.fetch()}}class cr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.choice(this.cst))),us(this.cst.kind,n.q3.NumberUnit)}get variant(){return this.fetch()}}class lr{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.StringLiteral:return new hr(t);case n.q3.StringLiterals:return new Pr(t);case n.q3.HexStringLiteral:return new ur(t);case n.q3.HexStringLiterals:return new qr(t);case n.q3.UnicodeStringLiterals:return new Fr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.StringExpression)}get variant(){return this.fetch()}}class hr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.choice(this.cst))),us(this.cst.kind,n.q3.StringLiteral)}get variant(){return this.fetch()}}class ur{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.choice(this.cst))),us(this.cst.kind,n.q3.HexStringLiteral)}get variant(){return this.fetch()}}class dr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.choice(this.cst))),us(this.cst.kind,n.q3.UnicodeStringLiteral)}get variant(){return this.fetch()}}class pr{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulBlock:return new le(t);case n.q3.YulFunctionDefinition:return new he(t);case n.q3.YulStackAssignmentStatement:return new ge(t);case n.q3.YulIfStatement:return new ve(t);case n.q3.YulForStatement:return new xe(t);case n.q3.YulSwitchStatement:return new be(t);case n.q3.YulLeaveStatement:return new Te(t);case n.q3.YulBreakStatement:return new Se(t);case n.q3.YulContinueStatement:return new ke(t);case n.q3.YulVariableAssignmentStatement:return new ye(t);case n.q3.YulLabel:return new Re(t);case n.q3.YulVariableDeclarationStatement:return new pe(t);case n.q3.YulExpression:return new gr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.YulStatement)}get variant(){return this.fetch()}}class mr{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.YulColonAndEqual)return new fe(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),us(this.cst.kind,n.q3.YulAssignmentOperator)}get variant(){return this.fetch()}}class yr{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.YulEqualAndColon)return new we(t);throw new Error(`Unexpected variant: '${t.kind}'.`)})),us(this.cst.kind,n.q3.YulStackAssignmentOperator)}get variant(){return this.fetch()}}class fr{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulDefaultCase:return new _e(t);case n.q3.YulValueCase:return new Ee(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.YulSwitchCase)}get variant(){return this.fetch()}}class gr{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulFunctionCallExpression:return new Ae(t);case n.q3.YulLiteral:return new wr(t);case n.q3.YulPath:return new ls(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.YulExpression)}get variant(){return this.fetch()}}class wr{constructor(t){this.cst=t,this.fetch=hs((()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.HexStringLiteral:return new ur(t);case n.q3.StringLiteral:return new hr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}})),us(this.cst.kind,n.q3.YulLiteral)}get variant(){return this.fetch()}}class vr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ce(t))))),us(this.cst.kind,n.q3.SourceUnitMembers)}get items(){return this.fetch()}}class xr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ke(t))))),us(this.cst.kind,n.q3.VersionExpressionSet)}get items(){return this.fetch()}}class br{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ue(t))))),us(this.cst.kind,n.q3.ContractSpecifiers)}get items(){return this.fetch()}}class _r{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Me(t))))),us(this.cst.kind,n.q3.ContractMembers)}get items(){return this.fetch()}}class Er{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Me(t))))),us(this.cst.kind,n.q3.InterfaceMembers)}get items(){return this.fetch()}}class Tr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Me(t))))),us(this.cst.kind,n.q3.LibraryMembers)}get items(){return this.fetch()}}class Sr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new I(t))))),us(this.cst.kind,n.q3.StructMembers)}get items(){return this.fetch()}}class kr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ye(t))))),us(this.cst.kind,n.q3.StateVariableAttributes)}get items(){return this.fetch()}}class Rr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new je(t))))),us(this.cst.kind,n.q3.FunctionAttributes)}get items(){return this.fetch()}}class Ar{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new He(t))))),us(this.cst.kind,n.q3.ConstructorAttributes)}get items(){return this.fetch()}}class Cr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new $e(t))))),us(this.cst.kind,n.q3.UnnamedFunctionAttributes)}get items(){return this.fetch()}}class Lr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Qe(t))))),us(this.cst.kind,n.q3.FallbackFunctionAttributes)}get items(){return this.fetch()}}class Ir{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Ge(t))))),us(this.cst.kind,n.q3.ReceiveFunctionAttributes)}get items(){return this.fetch()}}class Kr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new We(t))))),us(this.cst.kind,n.q3.ModifierAttributes)}get items(){return this.fetch()}}class Nr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new Xe(t))))),us(this.cst.kind,n.q3.FunctionTypeAttributes)}get items(){return this.fetch()}}class Dr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new tr(t))))),us(this.cst.kind,n.q3.Statements)}get items(){return this.fetch()}}class Or{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new At(t))))),us(this.cst.kind,n.q3.CatchClauses)}get items(){return this.fetch()}}class Pr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new hr(t))))),us(this.cst.kind,n.q3.StringLiterals)}get items(){return this.fetch()}}class qr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new ur(t))))),us(this.cst.kind,n.q3.HexStringLiterals)}get items(){return this.fetch()}}class Fr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new dr(t))))),us(this.cst.kind,n.q3.UnicodeStringLiterals)}get items(){return this.fetch()}}class Ur{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new pr(t))))),us(this.cst.kind,n.q3.YulStatements)}get items(){return this.fetch()}}class Mr{constructor(t){this.cst=t,this.fetch=hs((()=>i.Rj.Selectors.repeated(this.cst).map((t=>new fr(t))))),us(this.cst.kind,n.q3.YulSwitchCases)}get items(){return this.fetch()}}class Yr{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new xr(t))),separators:e}})),us(this.cst.kind,n.q3.VersionExpressionSets)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Vr{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),us(this.cst.kind,n.q3.SimpleVersionLiteral)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class jr{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new w(t))),separators:e}})),us(this.cst.kind,n.q3.ImportDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Br{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new _(t))),separators:e}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new k(t))),separators:e}})),us(this.cst.kind,n.q3.InheritanceTypes)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class $r{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),us(this.cst.kind,n.q3.EnumMembers)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Qr{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new F(t))),separators:e}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new is(t))),separators:e}})),us(this.cst.kind,n.q3.OverridePaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Wr{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new z(t))),separators:e}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new tt(t))),separators:e}})),us(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=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new hr(t))),separators:e}})),us(this.cst.kind,n.q3.AssemblyFlags)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Jr{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new pt(t))),separators:e}})),us(this.cst.kind,n.q3.TupleDeconstructionElements)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Zr{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ar(t))),separators:e}})),us(this.cst.kind,n.q3.PositionalArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ts{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ee(t))),separators:e}})),us(this.cst.kind,n.q3.NamedArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class es{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ee(t))),separators:e}})),us(this.cst.kind,n.q3.CallOptions)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class rs{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ne(t))),separators:e}})),us(this.cst.kind,n.q3.TupleValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ss{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ar(t))),separators:e}})),us(this.cst.kind,n.q3.ArrayValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class is{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),us(this.cst.kind,n.q3.IdentifierPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ns{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),us(this.cst.kind,n.q3.YulParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class as{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),us(this.cst.kind,n.q3.YulVariableNames)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class os{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new gr(t))),separators:e}})),us(this.cst.kind,n.q3.YulArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class cs{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map((t=>new ls(t))),separators:e}})),us(this.cst.kind,n.q3.YulPaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ls{constructor(t){this.cst=t,this.fetch=hs((()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}})),us(this.cst.kind,n.q3.YulPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}function hs(t){let e;return()=>(void 0===e&&(e=t()),e)}function us(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(ds){s(ds)}}))},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)}}))},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)},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){if(t.startsWith("pre")){if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(e){const t=`-${e}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!t||t[1]!==e)throw new Error(`invalid identifier: ${e}`)}}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"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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(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},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{parser:r,parseOutput:s}=(0,a.C)(t,e);e.compiler=r.languageVersion;const c=new o.M(new i.Mk(s.tree.asNonterminalNode()),e);return(0,n.Ee)(),c}[i,n,a,o]=c.then?(await c)():c,s()}catch(h){s(h)}}))},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)}}))},3999:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>0!==s(t,e,r)},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)}}))},4079:(t,e,r)=>{function s(t){return"label"===t.type}r.d(e,{J:()=>s})},4089:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)>=0},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)}}))},4138:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{n:()=>v});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=2,s=t,i=e.getNode(r);f(i);r+=2,s=i,i=e.getNode(r))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 v{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(x){s(x)}}))},4145:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Y:()=>a});var i=r(4675),n=t([i]);function a({variant:{kind:t}},{variant:{kind:e}}){return t===i.q3.InheritanceSpecifier&&e===i.q3.StorageLayoutSpecifier?-1:e===i.q3.InheritanceSpecifier&&t===i.q3.StorageLayoutSpecifier?1:0}i=(n.then?(await n)():n)[0],s()}catch(o){s(o)}}))},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)}}))},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)}}))},4209:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{WV:()=>f,Wu:()=>y,xM:()=>d,z9:()=>m});var i=r(4675),n=r(838),a=r(1059),o=r(6563),c=r(1376),l=t([i,a,c]);[i,a,c]=l.then?(await l)():l;const{group:h,indent:u}=n.doc.builders,d=t=>e=>r=>{const s=e.grandparent;return(0,c.D)(s)?t(s)?h(r):r:h(r)},p=(0,o.n)([i.q3.ReturnStatement,i.q3.IfStatement,i.q3.WhileStatement]),m=(t,e,r)=>p(t)||t.kind===i.q3.ExpressionStatement&&e.getNode(r+1).kind===i.q3.ForStatementCondition,y=t=>e=>r=>{for(let s=2,i=e.node;;s+=2){const n=e.getNode(s);if(m(n,e,s))break;if(!(0,c.D)(n))return u(r);if(t(n))return u(r);if(i===n.rightOperand.variant)break;i=n}return r},f=t=>(0,a.f)(d(t),y(t));s()}catch(t){s(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"==":case"!=":t.left=o(t.left,["==","!="]);break;case"||":t.left=o(t.left,["&&"]),t.right=o(t.right,["&&"])}}}),l}},4254:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>p});var i=r(4675),n=r(6424),a=r(9530),o=r(9589),c=t([i,n,a]);[i,n,a]=c.then?(await c)():c;const l=a.g.allVersions(),h=l.length;function u(t,e){const r=n.i.create(e);return{parser:r,parseOutput:r.parseNonterminal(i.q3.SourceUnit,t)}}function d(t,e){return new Error(`We encountered the following syntax error:\n\n\t${t.parseOutput.errors()[0].message}\n\n${e}`)}function p(t,e){const r=(0,o.minSatisfying)(l,e.compiler);if(r){const e=u(t,r);if(!e.parseOutput.isValid())throw d(e,`Based on the compiler option provided, we inferred your code to be using Solidity version ${e.parser.languageVersion}. If you would like to change that, specify a different version in your \`.prettierrc\` file.`);return e}const s=a.g.inferLanguageVersions(t),i=s.length;if(0===i||i===h){const e=u(t,l[h-1]);if(!e.parseOutput.isValid())throw d(e,`We couldn't infer a Solidity version based on the pragma statements in your code so we defaulted to ${e.parser.languageVersion}. You might be attempting to use a syntax not yet supported by Slang or you might want to specify a version in your \`.prettierrc\` file.`);return e}const n=u(t,s[0]);if(!n.parseOutput.isValid())throw d(n,`Based on the pragma statements, we inferred your code to be using Solidity version ${n.parser.languageVersion}. If you would like to change that, update the pragmas in your source file, or specify a version in your \`.prettierrc\` file.`);return n}s()}catch(m){s(m)}}))},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)}}))},4277:(t,e,r)=>{const s=r(909);t.exports=(t,e)=>t.sort(((t,r)=>s(r,t,e)))},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)}}))},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)}}))},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)}}))},4468:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{B:()=>x});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),v=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]=v.then?(await v)():v;class x{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)}}))},4493:(t,e,r)=>{const s=r(3908);t.exports=(t,e)=>new s(t,e).patch},4557:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{o:()=>u});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{line:h}=i.doc.builders;class u{constructor(t,e){this.kind=n.q3.StorageLayoutSpecifier;let r=(0,o.sQ)(t);this.expression=new c.r(t.expression,e),r=(0,o.D5)(r,[this.expression]),this.comments=r.comments,this.loc=r.loc}print(t,e){return["layout at",(0,a.K)(t.call(e,"expression"),{firstSeparator:h})]}}s()}catch(t){s(t)}}))},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(876),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));if((null==s?void 0:s.kind)===i.q3.ContractSpecifiers||(null==s?void 0:s.kind)===i.q3.ContractMembers&&"{"!==u)return l(r,c),!0;if((null==e?void 0:e.kind)===i.q3.ContractMembers)return(0,o.A)(e,c),!0;if("{"===u&&(null==e?void 0:e.kind)===i.q3.ContractSpecifiers){if(0===e.items.length)return h(e,c),!0;const t=e.items[e.items.length-1].variant;if(t.kind===i.q3.InheritanceSpecifier)return(0,o.A)(t.types,c),!0;if(t.kind===i.q3.StorageLayoutSpecifier)return h(t.expression,c),!0}return!1}s()}catch(d){s(d)}}))},4641:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>0===s(t,e,r)},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)}}))},4654:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{R:()=>p});var i=r(4675),n=r(4209),a=r(142),o=r(6563),c=r(801),l=r(8926),h=t([i,n,a,c,l]);[i,n,a,c,l]=h.then?(await h)():h;const u=(0,a.H)(["+","-","*","/","**","<<",">>","&"]),d=(0,n.WV)((0,o.n)([i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class p{constructor(t,e){this.kind=i.q3.BitwiseXorExpression;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.leftOperand=u(this.leftOperand),this.rightOperand=u(this.rightOperand)}print(t,e,r){return d(this,t,e,r)}}s()}catch(t){s(t)}}))},4675:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{hP:()=>c,q3:()=>o,xo:()=>l});var i=r(1901),n=r(3070),a=t([i,n]);[i,n]=a.then?(await a)():a;const o=i.tQ.NonterminalKind,c=i.tQ.TerminalKind,l=(i.tQ.TerminalKindExtensions,i.tQ.EdgeLabel,i.tQ.NodeType,i.tQ.NonterminalNode,i.tQ.TerminalNode);i.tQ.Cursor,i.tQ.CursorIterator,i.tQ.AncestorsIterator,i.tQ.Query,i.tQ.QueryMatchIterator,s()}catch(t){s(t)}}))},4687:(t,e,r)=>{r.d(e,{tN:()=>N,X5:()=>P,rN:()=>I,bd:()=>L,F7:()=>K});var s=r(838);const{addLeadingComment:i,addTrailingComment:n,addDanglingComment:a,hasNewline:o,hasNewlineInRange:c,getNextNonSpaceNonCommentCharacter:l,getNextNonSpaceNonCommentCharacterIndex:h}=s.util;function u(t,e){if(!t.body)return void a(t,e);const r=t.body.filter((t=>"EmptyStatement"!==t.type));0===r.length?a(t,e):i(r[0],e)}function d(t,e){"BlockStatement"===t.type?u(t,e):i(t,e)}function p(t,e,r,s,o,c){return!(!r||"IfStatement"!==r.type||!s)&&(")"===l(t,c.locEnd(o))?(n(e,o),!0):e===r.trueBody&&s===r.falseBody?("ExpressionStatement"===e.type?n(e,o):a(r,o),!0):"ExpressionStatement"===s.type?(u(s,o),!0):"IfStatement"===s.type?(d(s.trueBody,o),!0):r.trueBody===s&&(i(s,o),!0))}function m(t,e,r,s,i,a){return!(!r||"WhileStatement"!==r.type||!s)&&(")"===l(t,a.locEnd(i))?(n(e,i),!0):"BlockStatement"===s.type&&(u(s,i),!0))}function y(t,e,r,s){return!(!t||"TryStatement"!==t.type&&"CatchClause"!==t.type||!r||("CatchClause"===t.type&&e?(n(e,s),0):"BlockStatement"===r.type?(u(r,s),0):"TryStatement"===r.type?(d(r.finalizer,s),0):"CatchClause"!==r.type||(d(r.body,s),0)))}function f(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?n(t.decorators[t.decorators.length-1],s):i(t,s),0))}function g(t,e,r,s,i){return(e&&r&&("Property"===e.type||"MethodDefinition"===e.type)&&"Identifier"===r.type&&e.key===r&&":"!==l(t,i.locEnd(r))||!(!r||!e||"Decorator"!==r.type||"ClassMethod"!==e.type&&"ClassProperty"!==e.type&&"TSAbstractClassProperty"!==e.type&&"TSAbstractMethodDefinition"!==e.type&&"MethodDefinition"!==e.type))&&(n(r,s),!0)}function w(t,e,r,s,i,a){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||")"!==l(t,a.locEnd(i))))&&(n(e,i),!0)}function v(t,e){return!(!t||"ImportSpecifier"!==t.type||(i(t,e),0))}function x(t,e,r,s){return e&&e.body&&0===e.body.length?(s?a(e,r):i(e,r),!0):!(!t||"Program"!==t.type||0!==t.body.length||!t.directives||0!==t.directives.length||(s?a(t,r):i(t,r),0))}const{addLeadingComment:b,addTrailingComment:_,addDanglingComment:E,getNextNonSpaceNonCommentCharacter:T}=s.util,{addLeadingComment:S,addTrailingComment:k,addDanglingComment:R,getNextNonSpaceNonCommentCharacter:A}=s.util,C=[function({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:i,options:n}){if(!r||"ContractDefinition"!==r.type)return!1;const a=T(t,n.locEnd(i));return s&&("InheritanceSpecifier"===s.type||s===r.storageLayout)||"{"===a?!e||"InheritanceSpecifier"!==e.type&&e!==r.storageLayout?(b(r,i),!0):(_(e,i),!0):0===r.subNodes.length&&(E(r,i),!0)},function({text:t,precedingNode:e,enclosingNode:r,comment:s,options:i}){if(!r||"ModifierInvocation"!==r.type)return!1;const n=A(t,i.locEnd(s));return"("===n?(S(r,s),!0):")"===n&&(e?(k(e,s),!0):"LineComment"===s.type?(S(r,s),!0):(R(r,s),!0))}];function L(t,e,r,s,a){const{precedingNode:c,enclosingNode:l,followingNode:h}=t,u={text:e,precedingNode:c,enclosingNode:l,followingNode:h,comment:t,options:r};return!(!C.some((t=>t(u)))&&!function(t,e,r,s,a){const{precedingNode:c,enclosingNode:l,followingNode:h}=t;return!!(w(e,c,l,h,t,r)||function(t,e,r){return!(!t||"MemberExpression"!==t.type||!e||"Identifier"!==e.type||(i(t,r),0))}(l,h,t)||p(e,c,l,h,t,r)||m(e,c,l,h,t,r)||y(l,c,h,t)||f(l,0,h,t)||v(l,t)||function(t,e,r){return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type||(i(t,r),0))}(l,0,t)||function(t,e,r,s){return!(!e||"UnionTypeAnnotation"!==e.type&&"TSUnionType"!==e.type||(n(t,s),0))}(c,l,0,t)||x(l,s,t,a)||function(t,e,r,s,i){return!!(r&&"ImportSpecifier"===r.type&&e&&"ImportDeclaration"===e.type&&o(t,i.locEnd(s)))&&(n(r,s),!0)}(e,l,c,t,r)||function(t,e){return!(!t||"AssignmentPattern"!==t.type||(i(t,e),0))}(l,t)||g(e,l,c,t,r))}(t,e,r,s,a))}function I(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:l}=t,h={text:e,precedingNode:a,enclosingNode:o,followingNode:l,comment:t,options:r};return!(!C.some((t=>t(h)))&&!function(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:l}=t;return!!(w(e,a,o,l,t,r)||function(t,e,r,s,n,a){const o=e&&!c(n,a.locEnd(e),a.locStart(s));return!(e&&o||!t||"ConditionalExpression"!==t.type||!r||(i(r,s),0))}(o,a,l,t,e,r)||v(o,t)||p(e,a,o,l,t,r)||m(e,a,o,l,t,r)||y(o,a,l,t)||f(o,0,l,t)||function(t,e){return!(!t||"LabeledStatement"!==t.type||(i(t,e),0))}(o,t)||function(t,e,r){return!!(e&&"CallExpression"===e.type&&t&&e.callee===t&&e.arguments.length>0)&&(i(e.arguments[0],r),!0)}(a,o,t)||function(t,e){return!(!t||"Property"!==t.type&&"ObjectProperty"!==t.type||(i(t,e),0))}(o,t)||x(o,s,t,n)||function(t,e,r){return!(!t||"TypeAlias"!==t.type||(i(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||(i(e,r),0))}(o,l,t))}(t,e,r,s,n))}function K(t,e,r,s,o){const{precedingNode:c,enclosingNode:u,followingNode:d}=t,y={text:e,precedingNode:c,enclosingNode:u,followingNode:d,comment:t,options:r};return!(!C.some((t=>t(y)))&&!function(t,e,r,s,o){const{precedingNode:c,enclosingNode:u,followingNode:d}=t;return!!(p(e,c,u,d,t,r)||m(e,c,u,d,t,r)||function(t,e,r){return!(!t||"ObjectProperty"!==t.type&&"Property"!==t.type||!t.shorthand||t.key!==e||"AssignmentPattern"!==t.value.type||(n(t.value.left,r),0))}(u,c,t)||function(t,e,r,s){return!(")"!==l(t,s.locEnd(r))||(!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||(a(e.value,r),0):(a(e,r),0)))}(e,u,t,r)||g(e,u,c,t,r)||x(u,s,t,o)||function(t,e,r,s){if(!e||"ArrowFunctionExpression"!==e.type)return!1;const i=h(t,s.locEnd(r));return"=>"===t.substr(i,2)&&(a(e,r),!0)}(e,u,t,r)||function(t,e,r,s,i){return!("("!==l(t,i.locEnd(s))||!r||!e||"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ClassMethod"!==e.type&&"MethodDefinition"!==e.type&&"ObjectMethod"!==e.type||(n(r,s),0))}(e,u,c,t,r)||function(t,e,r,s,a){return!(!e||"TSMappedType"!==e.type||(s&&"TSTypeParameter"===s.type&&s.name?(i(s.name,a),0):!r||"TSTypeParameter"!==r.type||!r.constraint||(n(r.constraint,a),0)))}(0,u,c,d,t)||function(t,e){return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label||(n(t,e),0))}(u,t))}(t,e,r,s,o))}function N(t){return"BlockComment"===t.type}const{hardline:D,join:O}=s.doc.builders;function P(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["/*",O(D,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})?[D,t]:t}return`/*${r.value}*/`;case"LineComment":return`//${r.value.trimEnd()}`;default:throw new Error(`Not a comment: ${JSON.stringify(r)}`)}}},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)}}))},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)}}))},4796:(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)}},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)}}))},4850:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(4675),n=r(838),a=t([i]);i=(a.then?(await a)():a)[0];const{addLeadingComment:o}=n.util;function c({enclosingNode:t,followingNode:e,comment:r}){return(null==t?void 0:t.kind)===i.q3.StorageLayoutSpecifier&&(null==e?void 0:e.kind)===i.q3.Expression&&(o(e,r),!0)}s()}catch(l){s(l)}}))},4852:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{Z:()=>m});var i=r(4675),n=r(4209),a=r(142),o=r(6563),c=r(801),l=r(8926),h=t([i,n,a,c,l]);[i,n,a,c,l]=h.then?(await h)():h;const u=(0,a.H)(["+","-","*","/","**","<<",">>"]),d=(0,a.H)(["+","-","*","/","**"]),p=(0,n.WV)((0,o.n)([i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m{constructor(t,e){this.kind=i.q3.ShiftExpression;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.leftOperand=u(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}}))},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}},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)}}))},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)}}))},4882:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{z:()=>y});var i=r(838),n=r(4675),a=r(8941),o=r(4079),c=r(801),l=r(8926),h=r(4899),u=t([n,c,l,h]);[n,c,l,h]=u.then?(await u)():u;const{group:d,indentIfBreak:p,label:m}=i.doc.builders;class y{constructor(t,e){this.kind=n.q3.IndexAccessExpression;let r=(0,c.sQ)(t);this.operand=new l.r(t.operand,e),t.start&&(this.start=new l.r(t.start,e)),t.end&&(this.end=new h.Q(t.end,e)),r=(0,c.D5)(r,[this.operand,this.start,this.end]),this.comments=r.comments,this.loc=r.loc}print(t,e){const r=t.call(e,"operand"),s=["[",(0,a.K)([t.call(e,"start"),t.call(e,"end")]),"]"];if((0,o.J)(r)&&"MemberAccessChain"===r.label){const t=Symbol("Slang.IndexAccessExpression.operand");return m("MemberAccessChain",[d(r.contents,{id:t}),p(s,{groupId:t})])}return[r,s].flat()}}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)}}))},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)}}))},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(4796),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)}}))},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 this.value.variant.kind===n.q3.ArrayExpression?[" = ",t.call(e,"value")]:l([" =",h([u,t.call(e,"value")])])}}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)}}))},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)}}))},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,v=!(!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(v&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===v.major&&t.semver.minor===v.minor&&t.semver.patch===v.patch&&(v=!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||v||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}},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)}}))},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)}}))},5200:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)<=0},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),v=r(6133),x=r(7299),b=r(6511),_=r(6470),E=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,v,x,b,_]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,v,x,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 v.i(t.variant,e);break;case i.q3.AssemblyStatement:this.variant=new x.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)}}))},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)}}))},5342:(t,e,r)=>{const s=r(7075);t.exports=(t,e,r)=>s(t,e,"<",r)},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)}}))},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)}}))},5451:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{o:()=>y});var i=r(838),n=r(4675),a=r(4145),o=r(7578),c=r(801),l=r(3868),h=t([n,a,c,l]);[n,a,c,l]=h.then?(await h)():h;const{group:u,ifBreak:d,line:p,softline:m}=i.doc.builders;class y{constructor(t,e){this.kind=n.q3.ContractSpecifiers;let r=(0,c.sQ)(t,!0);this.items=t.items.map((t=>new l.Z(t,e))),r=(0,c.D5)(r,[this.items]),this.comments=r.comments,this.loc=r.loc,this.items=this.items.sort(a.Y)}print(t,e){if(0===this.items.length)return"";const[r,s]=t.map(e,"items");if(void 0===s)return[" ",r];const i=Symbol("Slang.ContractSpecifiers.inheritance");return(0,o.J)([u(r,{id:i}),s],{firstSeparator:p,separator:d("",m,{groupId:i})})}}s()}catch(t){s(t)}}))},5571:(t,e,r)=>{const s=r(7075);t.exports=(t,e,r)=>s(t,e,">",r)},5580:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)>0},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(4796),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)}}))},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(7832),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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},6015:(t,e,r)=>{r.d(e,{yT:()=>a});const s=65536;let i,n;const a={getRandomBytes(t){const e=new Uint8Array(Number(t));if(t>s)for(var r=0;r<t;r+=s)crypto.getRandomValues(e.subarray(r,r+s));else crypto.getRandomValues(e);return e},getRandomU64:()=>crypto.getRandomValues(new BigUint64Array(1))[0],insecureRandom:()=>(void 0===i&&(i=a.getRandomU64(),n=a.getRandomU64()),[i,n])}},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)}}))},6121:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>g});var i=r(838),n=r(4675),a=r(1059),o=r(4209),c=r(142),l=r(6563),h=r(801),u=r(8926),d=t([n,a,o,c,h,u]);[n,a,o,c,h,u]=d.then?(await d)():d;const{group:p}=i.doc.builders,m=(0,c.H)(["**"]),y=(0,l.n)([n.q3.MultiplicativeExpression,n.q3.AdditiveExpression,n.q3.ShiftExpression,n.q3.BitwiseAndExpression,n.q3.BitwiseOrExpression,n.q3.BitwiseXorExpression,n.q3.InequalityExpression,n.q3.EqualityExpression,n.q3.AndExpression,n.q3.OrExpression]),f=(0,a.f)((()=>t=>p(t)),(0,o.Wu)(y));class g{constructor(t,e){this.kind=n.q3.ExponentiationExpression;let r=(0,h.sQ)(t);this.leftOperand=new u.r(t.leftOperand,e),this.operator=t.operator.unparse(),this.rightOperand=new u.r(t.rightOperand,e),r=(0,h.D5)(r,[this.leftOperand,this.rightOperand]),this.comments=r.comments,this.loc=r.loc,this.rightOperand=m(this.rightOperand),this.leftOperand=m(this.leftOperand)}print(t,e,r){return f(this,t,e,r)}}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)}}))},6155:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{C:()=>x});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),v=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]=v.then?(await v)():v;class x{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)}}))},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)}}))},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)}}))},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)}},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)}}))},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)}}))},6254:(t,e,r)=>{const s=r(3908);t.exports=(t,e)=>new s(t,e).minor},6308:(t,e,r)=>{const s=r(909);t.exports=(t,e)=>t.sort(((t,r)=>s(t,r,e)))},6312:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{T:()=>v});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({useTabs:t,tabWidth:e}){return t?"\t":e>2?" ".repeat(e-1):" "}function g(t,e,r,s){const i=e.grandparent,o=i.kind===n.q3.ConditionalExpression,c=o&&i.trueExpression.variant===t,l=t.falseExpression.variant.kind===n.q3.TupleExpression||t.falseExpression.variant.kind===n.q3.ConditionalExpression,g=e.call(r,"operand"),w=h([t.operand.variant.kind===n.q3.TupleExpression?g:d(["(",(0,a.K)(g),")"],g)," ?"]),v=p([c?u:m,e.call(r,"trueExpression")]),x=Symbol("Slang.ConditionalExpression.trueExpression"),b=h([w,v],{id:x}),_=e.call(r,"falseExpression"),E=[o?u:m,":",l?[" ",_]:d([f(s),p(_)],[" ",_],{groupId:x})],T=h([b,E]);return i.kind===n.q3.VariableDeclarationValue?h(p([y,T])):T}function w(t,e){return h([t.call(e,"operand"),p([t.grandparent.kind===n.q3.ConditionalExpression?u:m,"? ",t.call(e,"trueExpression"),m,": ",t.call(e,"falseExpression")])])}class v{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(;this.operand.variant.kind===n.q3.TupleExpression&&1===this.operand.variant.items.items.length&&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(x){s(x)}}))},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(4796),c=r(876),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)}}))},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)}}))},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)}}))},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)}}))},6405:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{u:()=>u});var i=r(4675),n=r(6563),a=r(4209),o=r(801),c=r(8926),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const h=(0,a.WV)((0,n.n)([i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class u{constructor(t,e){this.kind=i.q3.InequalityExpression;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,r){return h(this,t,e,r)}}s()}catch(t){s(t)}}))},6424:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{i:()=>a});var i=r(1901),n=t([i]);const a=(i=(n.then?(await n)():n)[0]).K3.Parser;i.K3.ParseOutput,s()}catch(t){s(t)}}))},6442:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{t:()=>p});var i=r(4675),n=r(142),a=r(6563),o=r(4209),c=r(801),l=r(8926),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,n.H)(["==","!="]),d=(0,o.WV)((0,a.n)([i.q3.AndExpression,i.q3.OrExpression]));class p{constructor(t,e){this.kind=i.q3.EqualityExpression;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.leftOperand=u(this.leftOperand)}print(t,e,r){return d(this,t,e,r)}}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)}}))},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)}}))},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)}}))},6563:(t,e,r)=>{function s(t){const e=new Set(t);return t=>e.has(t.kind)}r.d(e,{n:()=>s})},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)}}))},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)}}))},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)}}))},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)}}))},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(4796),c=r(876),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)}}))},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=Symbol("Slang.VariableDeclarationStatement.variables");return[h([this.varKeyword?"var (":"(",t.call(e,"elements"),")"],{id:r}),u([" = ",t.call(e,"expression"),";"],{groupId:r})]}}s()}catch(t){s(t)}}))},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))},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)}}))},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{variant:t}of this.attributes.items)"string"!=typeof t&&t.cleanModifierInvocationArguments()}print(t,e){return(0,n.c)("function",this,t,e)}}s()}catch(t){s(t)}}))},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}},6953:(t,e,r)=>{const s=r(144);t.exports=(t,e)=>{const r=s(t,e);return r?r.version:null}},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)}}))},7059:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(t,e,r)<0},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}},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)}}))},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)}}))},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.node;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)}}))},7162:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{J:()=>p});var i=r(4675),n=r(4209),a=r(142),o=r(6563),c=r(801),l=r(8926),h=t([i,n,a,c,l]);[i,n,a,c,l]=h.then?(await h)():h;const u=(0,a.H)(["+","-","*","/","**","<<",">>"]),d=(0,n.WV)((0,o.n)([i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class p{constructor(t,e){this.kind=i.q3.BitwiseAndExpression;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.leftOperand=u(this.leftOperand),this.rightOperand=u(this.rightOperand)}print(t,e,r){return d(this,t,e,r)}}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)}}))},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)}}))},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)}}))},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)}}))},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(4796),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)}}))},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},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{variant:t}of this.attributes.items)"string"!=typeof t&&t.kind===n.q3.ModifierInvocation&&t.cleanModifierInvocationArguments()}print(t,e){return(0,a.c)(["function ",t.call(e,"name")],this,t,e)}}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)}}))},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}},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({node:t}){if((0,i.C)(t))return t.print();throw new Error(`Not a comment: ${JSON.stringify(t)}`)}i=(n.then?(await n)():n)[0],s()}catch(o){s(o)}}))},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)}}))},7438:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{J:()=>p});var i=r(4675),n=r(4209),a=r(142),o=r(6563),c=r(801),l=r(8926),h=t([i,n,a,c,l]);[i,n,a,c,l]=h.then?(await h)():h;const u=(0,a.H)(["+","-","*","/","**","<<",">>","&","^"]),d=(0,n.WV)((0,o.n)([i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class p{constructor(t,e){this.kind=i.q3.BitwiseOrExpression;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.leftOperand=u(this.leftOperand),this.rightOperand=u(this.rightOperand)}print(t,e,r){return d(this,t,e,r)}}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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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})}},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)}}))},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)}}))},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)}}))},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(" ")))},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)}},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)}}))},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)}}))},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)}},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)}}))},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)}}))},7832:(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)}}))},7870:(t,e,r)=>{t.exports=r.p+"3620299963220ca08ee1.wasm"},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()}`)))}},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)}}))},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){const{kind:r,comments:s}=this.body.variant;return["if (",(0,a.K)(t.call(e,"condition")),")",r===n.q3.Block?[" ",t.call(e,"body")]:p(y([f,t.call(e,"body")]),{shouldBreak:r===n.q3.IfStatement}),this.elseBranch?[r!==n.q3.Block||s.some((t=>!(0,c.t)(t)||"ownLine"===t.placement))?m:" ",t.call(e,"elseBranch")]:""]}}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)}}))},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)}}))},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)}}))},8156:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{A:()=>A});var i=r(4687),n=r(1815),a=r(8965),o=r(7671),c=r(1410),l=r(4242),h=r(2680),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",g="antlr",w="slang-ast",v="antlr-ast",x=[{linguistLanguageId:237469032,name:"Solidity",aceMode:"text",tmScope:"source.solidity",extensions:[".sol"],parsers:[f,g],vscodeLanguageIds:["solidity"]}],b=Object.assign({astFormat:v,parse:l.A},o.A),_={astFormat:w,parse:u.A,locStart:m.z,locEnd:m.I},E={[f]:_,[g]:b},T=t=>"string"!=typeof t&&void 0!==t&&t.kind&&!(0,p.C)(t),S={canAttachComment:({type:t})=>"string"==typeof t&&"BlockComment"!==t&&"LineComment"!==t,handleComments:{ownLine:i.bd,endOfLine:i.rN,remaining:i.F7},isBlockComment:i.tN,massageAstNode:a.A,print:h.A,printComment:i.X5},k={canAttachComment:T,handleComments:n.X,isBlockComment:p.t,massageAstNode:a.A,print:d.A,printComment:n.o},R={bracketSpacing:!1,tabWidth:4},A={languages:x,parsers:E,printers:{[w]:k,[v]:S},options:c.A,defaultOptions:R};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)}}))},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)}}))},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,L(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=>x(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 v=[...l.values()];return n.set(e,v),v}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Range is required");return this.set.some((r=>v(r,e)&&t.set.some((t=>v(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(I(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,v=(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},x=(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],"")),L=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(),I=(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}},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)}}))},8409:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{a:()=>p});var i=r(4675),n=r(838),a=r(1376),o=r(1059),c=r(4209),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{indent:h}=n.doc.builders,u=(0,c.xM)((()=>!1)),d=(t,e)=>r=>{for(let s=2,n=t.node;;s+=2){const o=t.getNode(s);if((0,c.z9)(o,t,s))break;if(e.experimentalTernaries&&o.kind===i.q3.ConditionalExpression&&o.operand.variant===n)break;if(!(0,a.D)(o))return h(r);if(n===o.rightOperand.variant)break;n=o}return r},p=(0,o.f)(u,d);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)}}))},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(4796),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)}}))},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)}}))},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)}}))},8587:t=>{const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},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)}}))},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)}}))},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 "+(0===t?"successfully":"with error")),this.exitError=!0,this.code=t}}const u={exit(t){throw new h("err"===t.tag?1:0)},exitWithCode(t){throw new h(t)}},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 v{}new v,new v,new class{}},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)}}))},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}}},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)}}))},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)}}))},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(6405),d=r(7438),p=r(4654),m=r(7162),y=r(4852),f=r(2054),g=r(8968),w=r(6121),v=r(4109),x=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),L=r(1390),I=r(9511),K=r(3198),N=r(2291),D=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,v,x,b,_,E,T,S,k,R,A,C,L,I,K,N]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w,v,x,b,_,E,T,S,k,R,A,C,L,I,K,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.InequalityExpression: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 v._(t.variant,e);break;case i.q3.PrefixExpression:this.variant=new x.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 L.j(t.variant);break;case i.q3.StringExpression:this.variant=new I.O(t.variant,e);break;case i.q3.ElementaryType:this.variant=new K.$(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)}}))},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]}},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)}}))},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)}}))},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},8968:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{d:()=>y});var i=r(4675),n=r(4209),a=r(142),o=r(6563),c=r(801),l=r(8926),h=t([i,n,a,c,l]);[i,n,a,c,l]=h.then?(await h)():h;const u=(0,a.H)(["/","%"]),d=(0,a.H)(["*","%"]),p=(0,a.H)(["*","/","%"]),m=(0,n.WV)((0,o.n)([i.q3.AdditiveExpression,i.q3.ShiftExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class y{constructor(t,e){this.kind=i.q3.MultiplicativeExpression;let r=(0,c.sQ)(t);switch(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.operator){case"*":this.leftOperand=u(this.leftOperand);break;case"/":this.leftOperand=d(this.leftOperand);break;case"%":this.leftOperand=p(this.leftOperand);break;default:throw new Error(`Unexpected operator: ${this.operator}`)}}print(t,e,r){return m(this,t,e,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)}}))},9031:t=>{t.exports=import("node:fs/promises")},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})},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)}}))},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)}}))},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)}}))},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)}}))},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](){}}}},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)}}))},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{variant:t}of this.attributes.items)"string"!=typeof t&&t.kind===i.q3.ModifierInvocation&&t.cleanModifierInvocationArguments()}print(t,e){return(0,n.c)("receive",this,t,e)}}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)}}))},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)}}))},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)}}))},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)}}))},9530:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{g:()=>a});var i=r(1901),n=t([i]);const a=(i=(n.then?(await n)():n)[0]).Wp.LanguageFacts;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)}}))},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),v=r(909),x=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),L=r(3904),I=r(8311),K=r(7638),N=r(7631),D=r(9628),O=r(270),P=r(1261),q=r(3874),F=r(7075),U=r(5571),M=r(5342),Y=r(6780),V=r(2525),j=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:v,sort:x,rsort:b,gt:_,lt:E,eq:T,neq:S,gte:k,lte:R,cmp:A,coerce:C,Comparator:L,Range:I,satisfies:K,toComparators:N,maxSatisfying:D,minSatisfying:O,minVersion:P,validRange:q,outside:F,gtr:U,ltr:M,intersects:Y,simplifyRange:V,subset:j,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}},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}},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{variant:t}of this.attributes.items)"string"!=typeof t&&t.kind===i.q3.ModifierInvocation&&t.cleanModifierInvocationArguments()}print(t,e){return(0,n.c)("fallback",this,t,e)}}s()}catch(t){s(t)}}))},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.safeSrc=[],u=e.t={};let d=0;const p="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",n],[p,i]],y=(t,e,r)=>{const s=(t=>{for(const[e,r]of m)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=d++;a(t,i,e),u[t]=i,l[i]=e,h[i]=s,o[i]=new RegExp(e,r?"g":void 0),c[i]=new RegExp(s,r?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),y("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${p}+`),y("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),y("FULL",`^${l[u.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),y("LOOSE",`^${l[u.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),y("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),y("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",l[u.COERCE],!0),y("COERCERTLFULL",l[u.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",y("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",y("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9719:(t,e,r)=>{t.exports=r.p+"e5a84a17f0f9e01763d3.wasm"},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)}}))},9838:(t,e,r)=>{r.a(t,(async(t,s)=>{try{r.d(e,{h:()=>h});var i=r(4675),n=r(801),a=r(9878),o=r(7769),c=r(3859),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.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.YulPath:this.variant=new c.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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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)}}))},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){const r=t.call(e,"operand"),s=t.call(e,"arguments");if((0,a.J)(r)&&"MemberAccessChain"===r.label){const t=Symbol("Slang.FunctionCallExpression.operand");return p("MemberAccessChain",[u(r.contents,{id:t}),d(s,{groupId:t})])}return[r,s].flat()}}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})},9970:(t,e,r)=>{const s=r(560);t.exports=(t,e,r)=>s(e,t,r)},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)}}))},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)}}))}},a={};function o(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return n[t].call(r.exports,r,r.exports,o),r.exports}t="function"==typeof Symbol,e=t?Symbol("webpack queues"):"__webpack_queues__",r=t?Symbol("webpack exports"):"__webpack_exports__",s=t?Symbol("webpack error"):"__webpack_error__",i=t=>{t&&t.d<1&&(t.d=1,t.forEach((t=>t.r--)),t.forEach((t=>t.r--?t.r++:t())))},o.a=(t,n,a)=>{var o;a&&((o=[]).d=-1);var c,l,h,u=new Set,d=t.exports,p=new Promise(((t,e)=>{h=e,l=t}));p[r]=d,p[e]=t=>(o&&t(o),u.forEach(t),p.catch((t=>{}))),t.exports=p,n((t=>{var n;c=(t=>t.map((t=>{if(null!==t&&"object"==typeof t){if(t[e])return t;if(t.then){var n=[];n.d=0,t.then((t=>{a[r]=t,i(n)}),(t=>{a[s]=t,i(n)}));var a={};return a[e]=t=>t(n),a}}var o={};return o[e]=t=>{},o[r]=t,o})))(t);var a=()=>c.map((t=>{if(t[s])throw t[s];return t[r]})),l=new Promise((t=>{(n=()=>t(a)).r=0;var r=t=>t!==o&&!u.has(t)&&(u.add(t),t&&!t.d&&(n.r++,t.push(n)));c.map((t=>t[e](r)))}));return n.r?l:a()}),(t=>(t?h(p[s]=t):l(d),i(o)))),o&&o.d<0&&(o.d=0)},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.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(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),o.b=void 0;var c=o(8156);const l=(c=await c).A;export{l as default};var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{};h.prettierPlugins=h.prettierPlugins||{},h.prettierPlugins.solidity=l;
2
2
  //# sourceMappingURL=standalone.js.map