@arcgis/core 4.33.0-next.20250504 → 4.33.0-next.20250506

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 (227) hide show
  1. package/applications/Components/analysisUtils.d.ts +3 -0
  2. package/applications/Components/analysisUtils.js +5 -0
  3. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +2 -0
  4. package/applications/KnowledgeStudio/generalSharedKgUtils.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/29d267b1515c0c2c198a.js +319 -0
  7. package/assets/esri/core/workers/chunks/{d3b0117ad9232e36f785.js → 41cf7d6af26bbe4b3bd5.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{867c6c5b2ee1db977c99.js → 4d7cdce2dac3c74465cc.js} +1 -1
  9. package/assets/esri/core/workers/chunks/62d1e6e7d8685ffc152f.js +1 -0
  10. package/assets/esri/core/workers/chunks/{a6b14665a46c2af5ac11.js → 6d63f884a0775bc66ade.js} +1 -1
  11. package/assets/esri/core/workers/chunks/6eddd5d6b16723a1eeeb.js +1 -0
  12. package/assets/esri/core/workers/chunks/6f261d7593b12fd57b39.js +1 -0
  13. package/assets/esri/core/workers/chunks/7c2ec96749972e0b8a13.js +1 -0
  14. package/assets/esri/core/workers/chunks/{569e9ec636199d1f1744.js → 8551a7b308e700e44a98.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{9d32f41f8f69b8a507c3.js → 8906c3558788153c2645.js} +1 -1
  16. package/assets/esri/core/workers/chunks/897322485e9f04f198ac.js +1 -0
  17. package/assets/esri/core/workers/chunks/a2fd2ea1d0a77d5f3043.js +1 -0
  18. package/assets/esri/core/workers/chunks/{066844a51cd22cbef0e6.js → a683653e4c7f80c62b85.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{c9a2c4fd169b943db4b4.js → ba38736bcc2d389ce75e.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{5c2299f22a69e58cc4dd.js → c62fb93927ebf1c9f368.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{173737c60fa54f7d82bb.js → ca4ced7f468395135247.js} +1 -1
  22. package/assets/esri/core/workers/chunks/cc3ce7cb701c27d0e2d2.js +1 -0
  23. package/assets/esri/core/workers/chunks/{73bca519c93920bc8c9f.js → daedb62b73b747a3a746.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{974742af7beb000c4b4a.js → eb296f38d2448cd65a91.js} +1 -1
  25. package/assets/esri/core/workers/chunks/f3ebd22454c63895f32c.js +1 -0
  26. package/assets/esri/core/workers/chunks/{210e057fe5e66abea984.js → fd21970e55d9569b6ed1.js} +1 -1
  27. package/assets/esri/themes/base/widgets/_ShadowCast.scss +34 -14
  28. package/assets/esri/themes/dark/main.css +1 -1
  29. package/assets/esri/themes/light/main.css +1 -1
  30. package/assets/esri/themes/light/view.css +1 -1
  31. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  32. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  33. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  34. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  35. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  36. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  37. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  38. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  39. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  40. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  41. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  42. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  43. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  44. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  45. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  46. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  47. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  48. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  49. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  50. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  51. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  52. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  53. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
  54. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  55. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  56. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  57. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  58. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  59. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  60. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  61. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  62. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  63. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  64. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  65. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  66. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  67. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  68. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  69. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  70. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast.json +1 -1
  71. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_en.json +1 -1
  72. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_ar.json +1 -1
  73. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_bg.json +1 -1
  74. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_bs.json +1 -1
  75. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_ca.json +1 -1
  76. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_cs.json +1 -1
  77. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_da.json +1 -1
  78. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_de.json +1 -1
  79. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_el.json +1 -1
  80. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_es.json +1 -1
  81. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_et.json +1 -1
  82. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_fi.json +1 -1
  83. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_fr.json +1 -1
  84. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_he.json +1 -1
  85. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_hr.json +1 -1
  86. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_hu.json +1 -1
  87. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_id.json +1 -1
  88. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_it.json +1 -1
  89. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_ja.json +1 -1
  90. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_ko.json +1 -1
  91. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_lt.json +1 -1
  92. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_lv.json +1 -1
  93. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_nl.json +1 -1
  94. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_no.json +1 -1
  95. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_pl.json +1 -1
  96. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_pt-BR.json +1 -1
  97. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_pt-PT.json +1 -1
  98. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_ro.json +1 -1
  99. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_ru.json +1 -1
  100. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_sk.json +1 -1
  101. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_sl.json +1 -1
  102. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_sr.json +1 -1
  103. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_sv.json +1 -1
  104. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_th.json +1 -1
  105. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_tr.json +1 -1
  106. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_uk.json +1 -1
  107. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_vi.json +1 -1
  108. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_zh-CN.json +1 -1
  109. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_zh-HK.json +1 -1
  110. package/assets/esri/widgets/support/SelectionList/t9n/SelectionList_zh-TW.json +1 -1
  111. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ar.json +1 -1
  112. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_bg.json +1 -1
  113. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_bs.json +1 -1
  114. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ca.json +1 -1
  115. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_cs.json +1 -1
  116. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_da.json +1 -1
  117. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_de.json +1 -1
  118. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_el.json +1 -1
  119. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_es.json +1 -1
  120. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_et.json +1 -1
  121. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_fi.json +1 -1
  122. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_fr.json +1 -1
  123. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_he.json +1 -1
  124. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_hr.json +1 -1
  125. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_hu.json +1 -1
  126. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_id.json +1 -1
  127. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_it.json +1 -1
  128. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ja.json +1 -1
  129. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ko.json +1 -1
  130. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_lt.json +1 -1
  131. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_lv.json +1 -1
  132. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_nl.json +1 -1
  133. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_no.json +1 -1
  134. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_pl.json +1 -1
  135. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_pt-BR.json +1 -1
  136. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_pt-PT.json +1 -1
  137. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ro.json +1 -1
  138. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ru.json +1 -1
  139. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_sk.json +1 -1
  140. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_sl.json +1 -1
  141. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_sr.json +1 -1
  142. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_sv.json +1 -1
  143. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_th.json +1 -1
  144. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_tr.json +1 -1
  145. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_uk.json +1 -1
  146. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_vi.json +1 -1
  147. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_zh-CN.json +1 -1
  148. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_zh-HK.json +1 -1
  149. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_zh-TW.json +1 -1
  150. package/core/has.js +1 -1
  151. package/core/sql/WhereGrammar.js +1 -1
  152. package/core/workers/workerFactory.js +1 -1
  153. package/editing/sharedTemplates/SharedTemplateProvider.js +1 -1
  154. package/geometry/support/aaBoundingRect.js +1 -1
  155. package/interfaces.d.ts +71 -52
  156. package/layers/FeatureLayer.js +1 -1
  157. package/layers/effects/parser.js +1 -1
  158. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  159. package/layers/graphics/sources/support/QueryTask.js +1 -1
  160. package/package.json +1 -1
  161. package/rest/query/executeForIds.js +1 -1
  162. package/rest/query/executeQueryJSON.js +1 -1
  163. package/rest/query/operations/query.js +1 -1
  164. package/smartMapping/raster/support/utils.d.ts +2 -2
  165. package/support/basemapUtils.js +1 -1
  166. package/support/featureFlags.js +1 -1
  167. package/support/revision.js +1 -1
  168. package/symbols/cim/cimAnalyzer.js +1 -1
  169. package/symbols/cim/constants.js +1 -1
  170. package/views/2d/engine/flow/dataUtils.js +1 -1
  171. package/views/2d/engine/flow/utils.js +1 -1
  172. package/views/2d/engine/webgl/shaderGraph/techniques/createGraphicSymbolMeshSchemas.js +1 -1
  173. package/views/2d/layers/MediaLayerView2D.js +1 -1
  174. package/views/2d/layers/TileLayerView2D.js +1 -1
  175. package/views/2d/layers/features/Processor.js +1 -1
  176. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  177. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  178. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  179. package/views/2d/layers/features/layerAdapters/featureServiceUtils.js +1 -1
  180. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  181. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  182. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  183. package/views/2d/layers/features/sources/strategies/PagedTileLoadStrategy.js +1 -1
  184. package/views/2d/layers/features/sources/strategies/SnapshotLoadStrategy.js +1 -1
  185. package/views/3d/analysis/AnalysisView3D.js +1 -1
  186. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  187. package/views/3d/layers/FlowSubView3D.js +1 -1
  188. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  189. package/views/3d/layers/ImageryLayerView3D.js +1 -1
  190. package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
  191. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  192. package/views/3d/layers/RouteLayerView3D.js +1 -1
  193. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  194. package/views/3d/layers/SubView3D.js +1 -1
  195. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  196. package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
  197. package/views/3d/support/flow/StreamlinesResources3D.js +5 -0
  198. package/views/3d/support/flow/StreamlinesStyle3D.js +5 -0
  199. package/views/3d/support/flow/geometryUtils.js +5 -0
  200. package/views/3d/support/flow/loadUtils.js +5 -0
  201. package/views/3d/terrain/Tile.js +1 -1
  202. package/views/3d/terrain/tileUtils.js +1 -1
  203. package/views/VideoView.js +1 -1
  204. package/views/support/LayerLayerViewInfo.js +1 -1
  205. package/views/support/LayerViewManager.js +1 -1
  206. package/views/support/layerViewUtils.js +1 -1
  207. package/widgets/ShadowCast/ShadowCastVisibleElements.js +1 -1
  208. package/widgets/ShadowCast/components/DiscreteConfigurator.js +1 -1
  209. package/widgets/ShadowCast/components/DurationConfigurator.js +1 -1
  210. package/widgets/ShadowCast/components/ThresholdConfigurator.js +1 -1
  211. package/widgets/ShadowCast/css.js +1 -1
  212. package/widgets/ShadowCast.js +1 -1
  213. package/widgets/support/AnalysisViewModel.js +1 -1
  214. package/widgets/support/ColorPicker.js +1 -1
  215. package/widgets/support/TimezonePicker.js +1 -1
  216. package/assets/esri/core/workers/chunks/1ca7e0d519ecbfe6976f.js +0 -319
  217. package/assets/esri/core/workers/chunks/2433b22749a088735262.js +0 -1
  218. package/assets/esri/core/workers/chunks/278280121528fa1059de.js +0 -1
  219. package/assets/esri/core/workers/chunks/57fd5a52be41ddd6a11b.js +0 -1
  220. package/assets/esri/core/workers/chunks/710e03feaa25e357f17a.js +0 -1
  221. package/assets/esri/core/workers/chunks/8ddf1b85cff90c34f3e3.js +0 -1
  222. package/assets/esri/core/workers/chunks/b28b699de6deb7e9fa53.js +0 -1
  223. package/assets/esri/core/workers/chunks/c87e2a63b96e0da77dfe.js +0 -1
  224. package/assets/esri/core/workers/chunks/ec778cc7a55068f51937.js +0 -1
  225. package/layers/knowledgeGraph/supportUtils.d.ts +0 -4
  226. package/widgets/ShadowCast/components/Label.js +0 -5
  227. package/widgets/ShadowCast/components/LabeledColorPicker.js +0 -5
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- function n(n,t){function r(){this.constructor=n}r.prototype=t.prototype,n.prototype=new r}function t(n,r,e,o){var u=Error.call(this,n);return Object.setPrototypeOf&&Object.setPrototypeOf(u,t.prototype),u.expected=r,u.found=e,u.location=o,u.name="SyntaxError",u}function r(n,t,r){return r=r||" ",n.length>t?n:(t-=n.length,n+(r+=r.repeat(t)).slice(0,t))}function e(n,r){var e,o={},u=(r=void 0!==r?r:{}).grammarSource,i={start:uu},a=uu,c="!",s="=",f=">=",l=">",p="<=",v="<>",d="!=",y="||",h="@",g="'",A="N'",m="''",C=".",b="null",E="true",L="false",T="in",w="is",x="like",N="escape",I="not",R="and",O="or",F="between",S="from",M="for",$="substring",U="extract",_="trim",D="position",H="timestamp",P="date",j="time",Z="leading",k="trailing",z="both",G="cast",B="as",q="integer",V="int",W="smallint",Y="float",K="real",X="varchar",J="to",Q="interval",nn="year",tn="timezone_hour",rn="timezone_minute",en="month",on="day",un="hour",an="minute",cn="second",sn="case",fn="end",ln="when",pn="then",vn="else",dn=",",yn="(",hn=")",gn="`",An=/^[<-=]/,mn=/^[+\-]/,Cn=/^[*\/]/,bn=/^[A-Za-z_\x80-\uFFFF]/,En=/^[A-Za-z0-9_]/,Ln=/^[A-Za-z0-9_.\x80-\uFFFF]/,Tn=/^["]/,wn=/^[^']/,xn=/^[0-9]/,Nn=/^[eE]/,In=/^[ \t\n\r]/,Rn=/^[^`]/,On=Xo("!",!1),Fn=Xo("=",!1),Sn=Xo(">=",!1),Mn=Xo(">",!1),$n=Xo("<=",!1),Un=Xo("<>",!1),_n=Jo([["<","="]],!1,!1),Dn=Xo("!=",!1),Hn=Jo(["+","-"],!1,!1),Pn=Xo("||",!1),jn=Jo(["*","/"],!1,!1),Zn=Jo([["A","Z"],["a","z"],"_",["€","￿"]],!1,!1),kn=Jo([["A","Z"],["a","z"],["0","9"],"_"],!1,!1),zn=Jo([["A","Z"],["a","z"],["0","9"],"_",".",["€","￿"]],!1,!1),Gn=Jo(['"'],!1,!1),Bn=Xo("@",!1),qn=Xo("'",!1),Vn=Xo("N'",!1),Wn=Xo("''",!1),Yn=Jo(["'"],!0,!1),Kn=Xo(".",!1),Xn=Jo([["0","9"]],!1,!1),Jn=Jo(["e","E"],!1,!1),Qn=Xo("NULL",!0),nt=Xo("TRUE",!0),tt=Xo("FALSE",!0),rt=Xo("IN",!0),et=Xo("IS",!0),ot=Xo("LIKE",!0),ut=Xo("ESCAPE",!0),it=Xo("NOT",!0),at=Xo("AND",!0),ct=Xo("OR",!0),st=Xo("BETWEEN",!0),ft=Xo("FROM",!0),lt=Xo("FOR",!0),pt=Xo("SUBSTRING",!0),vt=Xo("EXTRACT",!0),dt=Xo("TRIM",!0),yt=Xo("POSITION",!0),ht=Xo("TIMESTAMP",!0),gt=Xo("DATE",!0),At=Xo("TIME",!0),mt=Xo("LEADING",!0),Ct=Xo("TRAILING",!0),bt=Xo("BOTH",!0),Et=Xo("CAST",!0),Lt=Xo("AS",!0),Tt=Xo("INTEGER",!0),wt=Xo("INT",!0),xt=Xo("SMALLINT",!0),Nt=Xo("FLOAT",!0),It=Xo("REAL",!0),Rt=Xo("VARCHAR",!0),Ot=Xo("TO",!0),Ft=Xo("INTERVAL",!0),St=Xo("YEAR",!0),Mt=Xo("TIMEZONE_HOUR",!0),$t=Xo("TIMEZONE_MINUTE",!0),Ut=Xo("MONTH",!0),_t=Xo("DAY",!0),Dt=Xo("HOUR",!0),Ht=Xo("MINUTE",!0),Pt=Xo("SECOND",!0),jt=Xo("CASE",!0),Zt=Xo("END",!0),kt=Xo("WHEN",!0),zt=Xo("THEN",!0),Gt=Xo("ELSE",!0),Bt=Xo(",",!1),qt=Xo("(",!1),Vt=Xo(")",!1),Wt=Jo([" ","\t","\n","\r"],!1,!1),Yt=Xo("`",!1),Kt=Jo(["`"],!0,!1),Xt=function(n){return n},Jt=function(n){return{type:"expression-list",location:Yo(),value:n}},Qt=function(n,t,r){return{op:t,expr:r,location:Yo()}},nr=function(n,t){return wa(n,t)},tr=function(n,t,r){return{op:t,expr:r,location:Yo()}},rr=function(n,t){return wa(n,t)},er=function(n){return Ea("NOT",n,Yo())},or=function(n,t){if(""==t||null==t||null==t)return n;return"arithmetic"==t.type?wa(n,t.tail):La(t.op,n,t.right,t.escape,Yo())},ur=function(n,t){return{op:n,expr:t,location:Yo()}},ir=function(n){return{type:"arithmetic",tail:n}},ar=function(n,t){return{op:n+"NOT",right:t}},cr=function(n,t){return{op:n,right:t}},sr=function(n,t,r){return Ta(Yo(),t,r)},fr=function(n,t){return{op:"NOT"+n,right:t}},lr=function(n,t,r){return Ta(Yo(),t,r)},pr=function(n,t){return{op:n,right:t}},vr=function(n){return n[0]+" "+n[2]},dr=function(n){return n[0]+" "+n[2]},yr=function(n,t,r){return{op:n,right:t,escape:r.value}},hr=function(n,t){return{op:n,right:t,escape:""}},gr=function(n,t){return{op:n,right:t}},Ar=function(n,t){return{op:n,right:t}},mr=function(n,t,r){return{op:t,expr:r,location:Yo()}},Cr=function(n,t){return wa(n,t)},br=function(n,t,r){return{op:t,expr:r,location:Yo()}},Er=function(n,t){return wa(n,t)},Lr=function(n){return n.paren=!0,n},Tr=function(n){return/^CURRENT_DATE$/i.test(n)?{type:"current-time",location:Yo(),mode:"date"}:/^CURRENT_TIMESTAMP$/i.test(n)?{type:"current-time",location:Yo(),mode:"timestamp"}:/^CURRENT_TIME$/i.test(n)?{type:"current-time",location:Yo(),mode:"time"}:/^CURRENT_USER$/i.test(n)?{type:"current-user",location:Yo()}:{type:"column-reference",location:Yo(),table:"",column:n}},wr=function(n){return{type:"column-reference",location:Yo(),table:"",column:n,delimited:!0}},xr=function(n){return n},Nr=function(n,t){return n+t.join("")},Ir=function(n,t){return n+t.join("")},Rr=function(n){return n},Or=function(n){return n.join("")},Fr=function(){return'"'},Sr=function(n){return{type:"parameter",location:Yo(),value:n[1]}},Mr=function(n,t){return Ta(Yo(),n,t)},$r=function(n,t){return Ta(Yo(),n,t)},Ur=function(n){return{type:"function",location:Yo(),name:"extract",args:n}},_r=function(n,t,r){return Ta(Yo(),n,t,...r?[r]:[])},Dr=function(n,t,r){return Ta(Yo(),n,t,r)},Hr=function(n){return{type:"function",location:Yo(),name:"substring",args:n}},Pr=function(n,t){return Ta(Yo(),n,t)},jr=function(n,t){return Ta(Yo(),n,t)},Zr=function(n){return{type:"function",location:Yo(),name:"cast",args:n}},kr=function(){return{type:"data-type",location:Yo(),value:{type:"integer"}}},zr=function(){return{type:"data-type",location:Yo(),value:{type:"smallint"}}},Gr=function(){return{type:"data-type",location:Yo(),value:{type:"float"}}},Br=function(){return{type:"data-type",location:Yo(),value:{type:"real"}}},qr=function(){return{type:"data-type",location:Yo(),value:{type:"date"}}},Vr=function(){return{type:"data-type",location:Yo(),value:{type:"timestamp"}}},Wr=function(){return{type:"data-type",location:Yo(),value:{type:"time"}}},Yr=function(n){return{type:"data-type",location:Yo(),value:{type:"varchar",size:parseInt(n)}}},Kr=function(n,t,r){return Ta(Yo(),n,t,r)},Xr=function(n,t){return Ta(Yo(),n,t)},Jr=function(n){return{type:"function",location:Yo(),name:"trim",args:n}},Qr=function(n){return{type:"string",location:Yo(),value:n??"BOTH"}},ne=function(n,t){return Ta(Yo(),n,t)},te=function(n,t){return Ta(Yo(),n,t)},re=function(n){return{type:"function",location:Yo(),name:"position",args:n}},ee=function(n,t){return{type:"function",location:Yo(),name:n,args:t}},oe=function(n){return{type:"string",location:Yo(),value:n}},ue=function(n){return"string"===n.type&&xa(n.value),{type:"timestamp",location:Yo(),value:n.value}},ie=function(n){return"string"===n.type&&Na(n.value),{type:"time",location:Yo(),value:n.value}},ae=function(n,t,r){return{type:"interval",location:Yo(),value:t,qualifier:r,op:n}},ce=function(n,t){return{type:"interval",location:Yo(),value:n,qualifier:t,op:""}},se=function(n,t){return{type:"interval-qualifier",location:Yo(),start:n,end:t}},fe=function(n,t){return{type:"interval-period",location:Yo(),period:n.value,precision:t,secondary:null}},le=function(n){return{type:"interval-period",location:Yo(),period:n.value,precision:null,secondary:null}},pe=function(n){return{type:"interval-period",location:Yo(),period:n.value,precision:null,secondary:null}},ve=function(n,t){return{type:"interval-period",location:Yo(),period:"second",precision:n,secondary:t}},de=function(n){return{type:"interval-period",location:Yo(),period:"second",precision:n,secondary:null}},ye=function(){return{type:"interval-period",location:Yo(),period:"second",precision:null,secondary:null}},he=function(n,t){return{type:"interval-period",location:Yo(),period:n.value,precision:t,secondary:null}},ge=function(n){return{type:"interval-period",location:Yo(),period:n.value,precision:null,secondary:null}},Ae=function(n,t){return{type:"interval-period",location:Yo(),period:"second",precision:n,secondary:t}},me=function(n){return{type:"interval-period",location:Yo(),period:"second",precision:n,secondary:null}},Ce=function(){return{type:"interval-period",location:Yo(),period:"second",precision:null,secondary:null}},be=function(){return{type:"string",location:Yo(),value:"day"}},Ee=function(){return{type:"string",location:Yo(),value:"hour"}},Le=function(){return{type:"string",location:Yo(),value:"minute"}},Te=function(){return{type:"string",location:Yo(),value:"month"}},we=function(){return{type:"string",location:Yo(),value:"year"}},xe=function(n){return parseFloat(n)},Ne=function(n){return parseFloat(n)},Ie=function(n){return"string"===n.type&&Ia(n.value),{type:"date",location:Yo(),value:n.value}},Re=function(){return{type:"null",location:Yo(),value:null}},Oe=function(){return{type:"boolean",location:Yo(),value:!0}},Fe=function(){return{type:"boolean",location:Yo(),value:!1}},Se=function(){return"'"},Me=function(n){return{type:"string",location:Yo(),value:n.join("")}},$e=function(n,t){return{type:"case-expression",location:Yo(),format:"simple",operand:n,clauses:t,else:null,elseLocation:null}},Ue=function(n,t,r){return{type:"case-expression",location:Yo(),format:"simple",operand:n,clauses:t,else:r.value,elseLocation:r.location}},_e=function(n){return{type:"case-expression",location:Yo(),format:"searched",clauses:n,else:null,elseLocation:null}},De=function(n,t){return{type:"case-expression",location:Yo(),format:"searched",clauses:n,else:t.value,elseLocation:t.location}},He=function(n,t){return{type:"when-clause",location:Yo(),operand:n,value:t}},Pe=function(n,t){return{type:"when-clause",location:Yo(),operand:n,value:t}},je=function(n){return{type:"else-clause",location:Yo(),value:n}},Ze=function(n){return{type:"number",location:Yo(),value:n}},ke=function(n,t,r){return parseFloat(n+t+r)},ze=function(n,t){return parseFloat(n+t)},Ge=function(n,t){return parseFloat(n+t)},Be=function(n){return parseFloat(n)},qe=function(n,t){return n[0]+t},Ve=function(n){return"."+(null!=n?n:"")},We=function(n,t){return n+t},Ye=function(n){return n.join("")},Ke=function(n,t){return"e"+(null===t?"":t)},Xe=function(){return"IN"},Je=function(){return"IS"},Qe=function(){return"LIKE"},no=function(){return"ESCAPE"},to=function(){return"NOT"},ro=function(){return"AND"},eo=function(){return"OR"},oo=function(){return"BETWEEN"},uo=function(){return"FROM"},io=function(){return"FOR"},ao=function(){return"SUBSTRING"},co=function(){return"EXTRACT"},so=function(){return"TRIM"},fo=function(){return"POSITION"},lo=function(){return"TIMESTAMP"},po=function(){return"DATE"},vo=function(){return"TIME"},yo=function(){return"LEADING"},ho=function(){return"TRAILING"},go=function(){return"BOTH"},Ao=function(){return"CAST"},mo=function(){return"AS"},Co=function(){return"INTEGER"},bo=function(){return"INT"},Eo=function(){return"SMALLINT"},Lo=function(){return"FLOAT"},To=function(){return"REAL"},wo=function(){return"VARCHAR"},xo=function(){return"TO"},No=function(){return"INTERVAL"},Io=function(){return"YEAR"},Ro=function(){return"TIMEZONE_HOUR"},Oo=function(){return"TIMEZONE_MINUTE"},Fo=function(){return"MONTH"},So=function(){return"DAY"},Mo=function(){return"HOUR"},$o=function(){return"MINUTE"},Uo=function(){return"SECOND"},_o=function(){return"CASE"},Do=function(){return"END"},Ho=function(){return"WHEN"},Po=function(){return"THEN"},jo=function(){return"ELSE"},Zo=function(n){return n},ko=function(n){return n.join("")},zo=0|r.peg$currPos,Go=zo,Bo=[{line:1,column:1}],qo=zo,Vo=r.peg$maxFailExpected||[],Wo=0|r.peg$silentFails;if(r.startRule){if(!(r.startRule in i))throw new Error("Can't start parsing from rule \""+r.startRule+'".');a=i[r.startRule]}function Yo(){return tu(Go,zo)}function Ko(n,t){throw eu(n,t=void 0!==t?t:tu(Go,zo))}function Xo(n,t){return{type:"literal",text:n,ignoreCase:t}}function Jo(n,t,r){return{type:"class",parts:n,inverted:t,ignoreCase:r}}function Qo(){return{type:"end"}}function nu(t){var r,e=Bo[t];if(e)return e;if(t>=Bo.length)r=Bo.length-1;else for(r=t;!Bo[--r];);for(e={line:(e=Bo[r]).line,column:e.column};r<t;)10===n.charCodeAt(r)?(e.line++,e.column=1):e.column++,r++;return Bo[t]=e,e}function tu(n,t,r){var e=nu(n),o=nu(t);return{source:u,start:{offset:n,line:e.line,column:e.column},end:{offset:t,line:o.line,column:o.column}}}function ru(n){zo<qo||(zo>qo&&(qo=zo,Vo=[]),Vo.push(n))}function eu(n,r){return new t(n,null,null,r)}function ou(n,r,e){return new t(t.buildMessage(n,r),n,r,e)}function uu(){var n,t;return n=zo,ma(),(t=au())!==o?(ma(),Go=n,n=Xt(t)):(zo=n,n=o),n}function iu(){var n,t,r,e,u,i;if(n=zo,ga()!==o){for(ma(),t=[],r=au();r!==o;)t.push(r),r=zo,e=zo,u=ma(),(i=ha())!==o?e=u=[u,i,ma()]:(zo=e,e=o),e!==o&&(e=au())===o?(zo=r,r=o):r=e;r=ma(),(e=Aa())!==o?(Go=n,n=Jt(t)):(zo=n,n=o)}else zo=n,n=o;return n}function au(){var n,t,r,e,u,i;if(n=zo,(t=cu())!==o){for(r=[],e=zo,ma(),(u=Mi())!==o?(ma(),(i=cu())!==o?(Go=e,e=Qt(t,u,i)):(zo=e,e=o)):(zo=e,e=o);e!==o;)r.push(e),e=zo,ma(),(u=Mi())!==o?(ma(),(i=cu())!==o?(Go=e,e=Qt(t,u,i)):(zo=e,e=o)):(zo=e,e=o);Go=n,n=nr(t,r)}else zo=n,n=o;return n}function cu(){var n,t,r,e,u,i;if(n=zo,(t=su())!==o){for(r=[],e=zo,ma(),(u=Si())!==o?(ma(),(i=su())!==o?(Go=e,e=tr(t,u,i)):(zo=e,e=o)):(zo=e,e=o);e!==o;)r.push(e),e=zo,ma(),(u=Si())!==o?(ma(),(i=su())!==o?(Go=e,e=tr(t,u,i)):(zo=e,e=o)):(zo=e,e=o);Go=n,n=rr(t,r)}else zo=n,n=o;return n}function su(){var t,r,e,u,i;return t=zo,(r=Fi())===o&&(r=zo,33===n.charCodeAt(zo)?(e=c,zo++):(e=o,0===Wo&&ru(On)),e!==o?(u=zo,Wo++,61===n.charCodeAt(zo)?(i=s,zo++):(i=o,0===Wo&&ru(Fn)),Wo--,i===o?u=void 0:(zo=u,u=o),u!==o?r=e=[e,u]:(zo=r,r=o)):(zo=r,r=o)),r!==o?(e=ma(),(u=su())!==o?(Go=t,t=er(u)):(zo=t,t=o)):(zo=t,t=o),t===o&&(t=fu()),t}function fu(){var n,t,r,e;return n=zo,(t=Cu())!==o?(r=zo,ma(),(e=lu())!==o?r=e:(zo=r,r=o),r===o&&(r=null),Go=n,n=or(t,r)):(zo=n,n=o),n}function lu(){var n;return(n=pu())===o&&(n=mu())===o&&(n=yu())===o&&(n=du())===o&&(n=Au()),n}function pu(){var n,t,r,e,u;if(n=zo,t=[],r=zo,ma(),(e=vu())!==o?(ma(),(u=Cu())!==o?(Go=r,r=ur(e,u)):(zo=r,r=o)):(zo=r,r=o),r!==o)for(;r!==o;)t.push(r),r=zo,ma(),(e=vu())!==o?(ma(),(u=Cu())!==o?(Go=r,r=ur(e,u)):(zo=r,r=o)):(zo=r,r=o);else t=o;return t!==o&&(Go=n,t=ir(t)),n=t}function vu(){var t;return n.substr(zo,2)===f?(t=f,zo+=2):(t=o,0===Wo&&ru(Sn)),t===o&&(62===n.charCodeAt(zo)?(t=l,zo++):(t=o,0===Wo&&ru(Mn)),t===o&&(n.substr(zo,2)===p?(t=p,zo+=2):(t=o,0===Wo&&ru($n)),t===o&&(n.substr(zo,2)===v?(t=v,zo+=2):(t=o,0===Wo&&ru(Un)),t===o&&(t=n.charAt(zo),An.test(t)?zo++:(t=o,0===Wo&&ru(_n)),t===o&&(n.substr(zo,2)===d?(t=d,zo+=2):(t=o,0===Wo&&ru(Dn))))))),t}function du(){var n,t,r,e;return n=zo,(t=Ii())!==o?(ma(),(r=Fi())!==o?(ma(),(e=Cu())!==o?(Go=n,n=ar(t,e)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o),n===o&&(n=zo,(t=Ii())!==o?(ma(),(r=Cu())!==o?(Go=n,n=cr(t,r)):(zo=n,n=o)):(zo=n,n=o)),n}function yu(){var n,t,r,e,u,i,a,c;return n=zo,(t=Fi())!==o?(ma(),(r=$i())!==o?(e=ma(),u=zo,(i=Cu())!==o?(ma(),(a=Si())!==o?(ma(),(c=Cu())!==o?(Go=u,u=sr(r,i,c)):(zo=u,u=o)):(zo=u,u=o)):(zo=u,u=o),u!==o?(Go=n,n=fr(r,u)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o),n===o&&(n=zo,(t=$i())!==o?(ma(),r=zo,(e=Cu())!==o?(u=ma(),(i=Si())!==o?(ma(),(a=Cu())!==o?(Go=r,r=lr(t,e,a)):(zo=r,r=o)):(zo=r,r=o)):(zo=r,r=o),r!==o?(Go=n,n=pr(t,r)):(zo=n,n=o)):(zo=n,n=o)),n}function hu(){var n,t,r,e,u;return n=zo,t=zo,(r=Fi())!==o?(e=ma(),(u=Ri())!==o?t=r=[r,e,u]:(zo=t,t=o)):(zo=t,t=o),t!==o&&(Go=n,t=vr(t)),(n=t)===o&&(n=Ri()),n}function gu(){var n,t,r,e,u;return n=zo,t=zo,(r=Fi())!==o?(e=ma(),(u=Ni())!==o?t=r=[r,e,u]:(zo=t,t=o)):(zo=t,t=o),t!==o&&(Go=n,t=dr(t)),(n=t)===o&&(n=Ni()),n}function Au(){var n,t,r,e;return n=zo,(t=hu())!==o?(ma(),(r=ci())!==o?(ma(),Oi()!==o?(ma(),(e=si())!==o?(Go=n,n=yr(t,r,e)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o),n===o&&(n=zo,(t=hu())!==o?(ma(),(r=ci())!==o?(Go=n,n=hr(t,r)):(zo=n,n=o)):(zo=n,n=o)),n}function mu(){var n,t,r;return n=zo,(t=gu())!==o?(ma(),(r=iu())!==o?(Go=n,n=gr(t,r)):(zo=n,n=o)):(zo=n,n=o),n===o&&(n=zo,(t=gu())!==o?(ma(),(r=Hu())!==o?(Go=n,n=Ar(t,r)):(zo=n,n=o)):(zo=n,n=o)),n}function Cu(){var n,t,r,e,u,i;if(n=zo,(t=Eu())!==o){for(r=[],e=zo,ma(),(u=bu())!==o?(ma(),(i=Eu())!==o?(Go=e,e=mr(t,u,i)):(zo=e,e=o)):(zo=e,e=o);e!==o;)r.push(e),e=zo,ma(),(u=bu())!==o?(ma(),(i=Eu())!==o?(Go=e,e=mr(t,u,i)):(zo=e,e=o)):(zo=e,e=o);Go=n,n=Cr(t,r)}else zo=n,n=o;return n}function bu(){var t;return t=n.charAt(zo),mn.test(t)?zo++:(t=o,0===Wo&&ru(Hn)),t===o&&(n.substr(zo,2)===y?(t=y,zo+=2):(t=o,0===Wo&&ru(Pn))),t}function Eu(){var n,t,r,e,u,i;if(n=zo,(t=Tu())!==o){for(r=[],e=zo,ma(),(u=Lu())!==o?(ma(),(i=Tu())!==o?(Go=e,e=br(t,u,i)):(zo=e,e=o)):(zo=e,e=o);e!==o;)r.push(e),e=zo,ma(),(u=Lu())!==o?(ma(),(i=Tu())!==o?(Go=e,e=br(t,u,i)):(zo=e,e=o)):(zo=e,e=o);Go=n,n=Er(t,r)}else zo=n,n=o;return n}function Lu(){var t;return t=n.charAt(zo),Cn.test(t)?zo++:(t=o,0===Wo&&ru(jn)),t}function Tu(){var n,t;return(n=Wu())===o&&(n=Pu())===o&&(n=ju())===o&&(n=zu())===o&&(n=Bu())===o&&(n=Zu())===o&&(n=qu())===o&&(n=fi())===o&&(n=wu())===o&&(n=Hu())===o&&(n=zo,ga()!==o?(ma(),(t=au())!==o?(ma(),Aa()!==o?(Go=n,n=Lr(t)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)),n}function wu(){var n,t;return n=zo,(t=xu())!==o&&(Go=n,t=Tr(t)),(n=t)===o&&(n=zo,(t=Su())!==o&&(Go=n,t=wr(t)),n=t),n}function xu(){var n,t;return n=zo,(t=Nu())!==o&&(Go=n,t=xr(t)),n=t}function Nu(){var n,t,r,e;if(n=zo,(t=Ru())!==o){for(r=[],e=Fu();e!==o;)r.push(e),e=Fu();Go=n,n=Nr(t,r)}else zo=n,n=o;return n}function Iu(){var n,t,r,e;if(n=zo,(t=Ru())!==o){for(r=[],e=Ou();e!==o;)r.push(e),e=Ou();Go=n,n=Ir(t,r)}else zo=n,n=o;return n}function Ru(){var t;return t=n.charAt(zo),bn.test(t)?zo++:(t=o,0===Wo&&ru(Zn)),t}function Ou(){var t;return t=n.charAt(zo),En.test(t)?zo++:(t=o,0===Wo&&ru(kn)),t}function Fu(){var t;return t=n.charAt(zo),Ln.test(t)?zo++:(t=o,0===Wo&&ru(zn)),t}function Su(){var n,t;return n=zo,Du()!==o?(t=Mu(),Du()!==o?(Go=n,n=Rr(t)):(zo=n,n=o)):(zo=n,n=o),n}function Mu(){var n,t,r;for(n=zo,t=[],r=$u();r!==o;)t.push(r),r=$u();return Go=n,n=t=Or(t)}function $u(){var n;return(n=_u())===o&&(n=Uu()),n}function Uu(){var n;return n=zo,Du()!==o&&Du()!==o?(Go=n,n=Fr()):(zo=n,n=o),n}function _u(){var t;return t=n.charAt(zo),Ln.test(t)?zo++:(t=o,0===Wo&&ru(zn)),t}function Du(){var t;return t=n.charAt(zo),Tn.test(t)?zo++:(t=o,0===Wo&&ru(Gn)),t}function Hu(){var t,r,e,u;return t=zo,r=zo,64===n.charCodeAt(zo)?(e=h,zo++):(e=o,0===Wo&&ru(Bn)),e!==o&&(u=Iu())!==o?r=e=[e,u]:(zo=r,r=o),r!==o&&(Go=t,r=Sr(r)),t=r}function Pu(){var n,t,r,e;return n=zo,Hi()!==o?(ma(),t=zo,ga()!==o?(ma(),(r=Vu())!==o?(ma(),Ui()!==o?(ma(),(e=au())!==o?(ma(),Aa()!==o?(Go=t,t=Mr(r,e)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o),t===o&&(t=zo,ga()!==o?(ma(),(r=Vu())!==o?(ma(),ha()!==o?(ma(),(e=au())!==o?(ma(),Aa()!==o?(Go=t,t=$r(r,e)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)),t!==o?(Go=n,n=Ur(t)):(zo=n,n=o)):(zo=n,n=o),n}function ju(){var n,t,r,e,u,i,a;return n=zo,Di()!==o?(ma(),t=zo,ga()!==o?(ma(),(r=au())!==o?(ma(),Ui()!==o?(ma(),(e=au())!==o?(ma(),u=zo,_i()!==o?(i=ma(),(a=au())!==o?(ma(),u=a):(zo=u,u=o)):(zo=u,u=o),u===o&&(u=null),Aa()!==o?(Go=t,t=_r(r,e,u)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o),t===o&&(t=zo,ga()!==o?(ma(),(r=au())!==o?(ma(),ha()!==o?(ma(),(e=au())!==o?(ma(),(u=ha())!==o?(ma(),(i=au())!==o&&(a=Aa())!==o?(Go=t,t=Dr(r,e,i)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)),t!==o?(Go=n,n=Hr(t)):(zo=n,n=o)):(zo=n,n=o),n}function Zu(){var n,t,r,e;return n=zo,Vi()!==o?(ma(),t=zo,ga()!==o?(ma(),(r=au())!==o?(ma(),Wi()!==o?(ma(),(e=ku())!==o?(ma(),Aa()!==o?(Go=t,t=Pr(r,e)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o),t===o&&(t=zo,ga()!==o?(ma(),(r=au())!==o?(ma(),ha()!==o?(ma(),(e=ku())!==o?(ma(),Aa()!==o?(Go=t,t=jr(r,e)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)),t!==o?(Go=n,n=Zr(t)):(zo=n,n=o)):(zo=n,n=o),n}function ku(){var n,t,r;return n=zo,(t=Yi())===o&&(t=Ki()),t!==o&&(Go=n,t=kr()),(n=t)===o&&(n=zo,(t=Xi())!==o&&(Go=n,t=zr()),(n=t)===o&&(n=zo,(t=Ji())!==o&&(Go=n,t=Gr()),(n=t)===o&&(n=zo,(t=Qi())!==o&&(Go=n,t=Br()),(n=t)===o&&(n=zo,(t=ki())!==o&&(Go=n,t=qr()),(n=t)===o&&(n=zo,(t=Zi())!==o&&(Go=n,t=Vr()),(n=t)===o&&(n=zo,(t=zi())!==o&&(Go=n,t=Wr()),(n=t)===o&&(n=zo,(t=na())!==o?(ma(),ga()!==o?(ma(),(r=bi())!==o?(ma(),Aa()!==o?(Go=n,n=Yr(r)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)))))))),n}function zu(){var n,t,r,e,u;return n=zo,Pi()!==o?(ma(),t=zo,ga()!==o?(ma(),r=Gu(),ma(),(e=au())!==o?(ma(),Ui()!==o?(ma(),(u=au())!==o?(ma(),Aa()!==o?(Go=t,t=Kr(r,e,u)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o),t===o&&(t=zo,ga()!==o?(ma(),r=Gu(),ma(),(e=au())!==o?(ma(),Aa()!==o?(Go=t,t=Xr(r,e)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)),t!==o?(Go=n,n=Jr(t)):(zo=n,n=o)):(zo=n,n=o),n}function Gu(){var n,t;return n=zo,(t=Gi())===o&&(t=Bi())===o&&(t=qi()),t===o&&(t=null),Go=n,n=t=Qr(t)}function Bu(){var n,t,r,e;return n=zo,ji()!==o?(ma(),t=zo,ga()!==o?(ma(),(r=au())!==o?(ma(),Ni()!==o?(ma(),(e=au())!==o?(ma(),Aa()!==o?(Go=t,t=ne(r,e)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o),t===o&&(t=zo,ga()!==o?(ma(),(r=au())!==o?(ma(),ha()!==o?(ma(),(e=au())!==o?(ma(),Aa()!==o?(Go=t,t=te(r,e)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)),t!==o?(Go=n,n=re(t)):(zo=n,n=o)):(zo=n,n=o),n}function qu(){var n,t,r,e;return n=zo,t=zo,Wo++,r=Hi(),Wo--,r===o?t=void 0:(zo=t,t=o),t!==o&&(r=ba())!==o?(ma(),(e=iu())!==o?(Go=n,n=ee(r,e)):(zo=n,n=o)):(zo=n,n=o),n}function Vu(){var n,t;return n=zo,(t=ea())===o&&(t=ia())===o&&(t=aa())===o&&(t=ca())===o&&(t=sa())===o&&(t=fa())===o&&(t=oa())===o&&(t=ua()),t!==o&&(Go=n,t=oe(t)),n=t}function Wu(){var n;return(n=si())===o&&(n=hi())===o&&(n=ai())===o&&(n=ii())===o&&(n=ui())===o&&(n=Yu())===o&&(n=Xu())===o&&(n=Ku()),n}function Yu(){var n,t;return n=zo,Zi()!==o?(ma(),(t=ci())!==o?(Go=n,n=ue(t)):(zo=n,n=o)):(zo=n,n=o),n}function Ku(){var n,t;return n=zo,zi()!==o?(ma(),(t=ci())!==o?(Go=n,n=ie(t)):(zo=n,n=o)):(zo=n,n=o),n}function Xu(){var t,r,e,u;return t=zo,ra()!==o?(ma(),r=n.charAt(zo),mn.test(r)?zo++:(r=o,0===Wo&&ru(Hn)),r!==o?(ma(),(e=ci())!==o?(ma(),(u=Ju())!==o?(Go=t,t=ae(r,e,u)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o),t===o&&(t=zo,ra()!==o?(ma(),(r=ci())!==o?(ma(),(e=Ju())!==o?(Go=t,t=ce(r,e)):(zo=t,t=o)):(zo=t,t=o)):(zo=t,t=o)),t}function Ju(){var n,t,r;return n=zo,(t=Qu())!==o?(ma(),ta()!==o?(ma(),(r=ni())!==o?(Go=n,n=se(t,r)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o),n===o&&(n=ti()),n}function Qu(){var n,t,r;return n=zo,(t=ri())!==o?(ma(),ga()!==o?(ma(),(r=oi())!==o?(ma(),Aa()!==o?(Go=n,n=fe(t,r)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o),n===o&&(n=zo,(t=ri())!==o&&(Go=n,t=le(t)),n=t),n}function ni(){var n,t,r,e;return n=zo,(t=ri())!==o&&(Go=n,t=pe(t)),(n=t)===o&&(n=zo,(t=fa())!==o?(ma(),ga()!==o?(ma(),(r=oi())!==o?(ma(),ha()!==o?(ma(),(e=ei())!==o?(ma(),Aa()!==o?(Go=n,n=ve(r,e)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o),n===o&&(n=zo,(t=fa())!==o?(ma(),ga()!==o?(ma(),(r=oi())!==o?(ma(),Aa()!==o?(Go=n,n=de(r)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o),n===o&&(n=zo,(t=fa())!==o&&(Go=n,t=ye()),n=t))),n}function ti(){var n,t,r,e;return n=zo,(t=ri())!==o?(ma(),ga()!==o?(ma(),(r=ei())!==o?(ma(),Aa()!==o?(Go=n,n=he(t,r)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o),n===o&&(n=zo,(t=ri())!==o&&(Go=n,t=ge(t)),(n=t)===o&&(n=zo,(t=fa())!==o?(ma(),ga()!==o?(ma(),(r=oi())!==o?(ma(),ha()!==o?(ma(),(e=ei())!==o?(ma(),Aa()!==o?(Go=n,n=Ae(r,e)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o),n===o&&(n=zo,(t=fa())!==o?(ma(),ga()!==o?(ma(),(r=ei())!==o?(ma(),Aa()!==o?(Go=n,n=me(r)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o),n===o&&(n=zo,(t=fa())!==o&&(Go=n,t=Ce()),n=t)))),n}function ri(){var n,t;return n=zo,(t=aa())!==o&&(Go=n,t=be()),(n=t)===o&&(n=zo,(t=ca())!==o&&(Go=n,t=Ee()),(n=t)===o&&(n=zo,(t=sa())!==o&&(Go=n,t=Le()),(n=t)===o&&(n=zo,(t=ia())!==o&&(Go=n,t=Te()),(n=t)===o&&(n=zo,(t=ea())!==o&&(Go=n,t=we()),n=t)))),n}function ei(){var n,t;return n=zo,(t=bi())!==o&&(Go=n,t=xe(t)),n=t}function oi(){var n,t;return n=zo,(t=bi())!==o&&(Go=n,t=Ne(t)),n=t}function ui(){var n,t;return n=zo,ki()!==o?(ma(),(t=ci())!==o?(Go=n,n=Ie(t)):(zo=n,n=o)):(zo=n,n=o),n}function ii(){var n,t;return n=zo,(t=Ti())!==o&&(Go=n,t=Re()),n=t}function ai(){var n,t;return n=zo,(t=wi())!==o&&(Go=n,t=Oe()),(n=t)===o&&(n=zo,(t=xi())!==o&&(Go=n,t=Fe()),n=t),n}function ci(){var n;return(n=si())===o&&(n=Hu()),n}function si(){var t,r,e,u,i;if(t=zo,39===n.charCodeAt(zo)?(r=g,zo++):(r=o,0===Wo&&ru(qn)),r===o&&(n.substr(zo,2)===A?(r=A,zo+=2):(r=o,0===Wo&&ru(Vn))),r!==o){for(e=[],u=zo,n.substr(zo,2)===m?(i=m,zo+=2):(i=o,0===Wo&&ru(Wn)),i!==o&&(Go=u,i=Se()),(u=i)===o&&(u=n.charAt(zo),wn.test(u)?zo++:(u=o,0===Wo&&ru(Yn)));u!==o;)e.push(u),u=zo,n.substr(zo,2)===m?(i=m,zo+=2):(i=o,0===Wo&&ru(Wn)),i!==o&&(Go=u,i=Se()),(u=i)===o&&(u=n.charAt(zo),wn.test(u)?zo++:(u=o,0===Wo&&ru(Yn)));39===n.charCodeAt(zo)?(u=g,zo++):(u=o,0===Wo&&ru(qn)),u!==o?(Go=t,t=Me(e)):(zo=t,t=o)}else zo=t,t=o;return t}function fi(){var n;return(n=li())===o&&(n=pi()),n}function li(){var n,t,r,e,u;if(n=zo,la()!==o)if(ma(),(t=au())!==o){for(ma(),r=[],e=zo,(u=di())!==o?(ma(),e=u):(zo=e,e=o);e!==o;)r.push(e),e=zo,(u=di())!==o?(ma(),e=u):(zo=e,e=o);(e=pa())!==o?(Go=n,n=$e(t,r)):(zo=n,n=o)}else zo=n,n=o;else zo=n,n=o;if(n===o)if(n=zo,la()!==o)if(ma(),(t=au())!==o){for(ma(),r=[],e=zo,(u=di())!==o?(ma(),e=u):(zo=e,e=o);e!==o;)r.push(e),e=zo,(u=di())!==o?(ma(),e=u):(zo=e,e=o);(e=yi())!==o?(u=ma(),pa()!==o?(Go=n,n=Ue(t,r,e)):(zo=n,n=o)):(zo=n,n=o)}else zo=n,n=o;else zo=n,n=o;return n}function pi(){var n,t,r,e;if(n=zo,la()!==o){for(ma(),t=[],r=zo,(e=vi())!==o?(ma(),r=e):(zo=r,r=o);r!==o;)t.push(r),r=zo,(e=vi())!==o?(ma(),r=e):(zo=r,r=o);(r=pa())!==o?(Go=n,n=_e(t)):(zo=n,n=o)}else zo=n,n=o;if(n===o)if(n=zo,la()!==o){for(ma(),t=[],r=zo,(e=vi())!==o?(ma(),r=e):(zo=r,r=o);r!==o;)t.push(r),r=zo,(e=vi())!==o?(ma(),r=e):(zo=r,r=o);(r=yi())!==o?(e=ma(),pa()!==o?(Go=n,n=De(t,r)):(zo=n,n=o)):(zo=n,n=o)}else zo=n,n=o;return n}function vi(){var n,t,r;return n=zo,va()!==o?(ma(),(t=au())!==o?(ma(),da()!==o?(ma(),(r=au())!==o?(Go=n,n=He(t,r)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o),n}function di(){var n,t,r;return n=zo,va()!==o?(ma(),(t=au())!==o?(ma(),da()!==o?(ma(),(r=au())!==o?(Go=n,n=Pe(t,r)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o)):(zo=n,n=o),n}function yi(){var n,t;return n=zo,ya()!==o?(ma(),(t=au())!==o?(Go=n,n=je(t)):(zo=n,n=o)):(zo=n,n=o),n}function hi(){var n,t,r,e;return n=zo,(t=gi())!==o?(r=zo,Wo++,e=Ru(),Wo--,e===o?r=void 0:(zo=r,r=o),r!==o?(Go=n,n=Ze(t)):(zo=n,n=o)):(zo=n,n=o),n}function gi(){var n,t,r,e;return n=zo,(t=Ai())!==o&&(r=mi())!==o&&(e=Ci())!==o?(Go=n,n=ke(t,r,e)):(zo=n,n=o),n===o&&(n=zo,(t=Ai())!==o&&(r=mi())!==o?(Go=n,n=ze(t,r)):(zo=n,n=o),n===o&&(n=zo,(t=Ai())!==o&&(r=Ci())!==o?(Go=n,n=Ge(t,r)):(zo=n,n=o),n===o&&(n=zo,(t=Ai())!==o&&(Go=n,t=Be(t)),n=t))),n}function Ai(){var t,r,e;return(t=bi())===o&&(t=zo,r=n.charAt(zo),mn.test(r)?zo++:(r=o,0===Wo&&ru(Hn)),r!==o&&(e=bi())!==o?(Go=t,t=qe(r,e)):(zo=t,t=o)),t}function mi(){var t,r,e;return t=zo,46===n.charCodeAt(zo)?(r=C,zo++):(r=o,0===Wo&&ru(Kn)),r!==o?((e=bi())===o&&(e=null),Go=t,t=Ve(e)):(zo=t,t=o),t}function Ci(){var n,t,r;return n=zo,(t=Li())!==o&&(r=bi())!==o?(Go=n,n=We(t,r)):(zo=n,n=o),n}function bi(){var n,t,r;if(n=zo,t=[],(r=Ei())!==o)for(;r!==o;)t.push(r),r=Ei();else t=o;return t!==o&&(Go=n,t=Ye(t)),n=t}function Ei(){var t;return t=n.charAt(zo),xn.test(t)?zo++:(t=o,0===Wo&&ru(Xn)),t}function Li(){var t,r,e;return t=zo,r=n.charAt(zo),Nn.test(r)?zo++:(r=o,0===Wo&&ru(Jn)),r!==o?(e=n.charAt(zo),mn.test(e)?zo++:(e=o,0===Wo&&ru(Hn)),e===o&&(e=null),Go=t,t=Ke(r,e)):(zo=t,t=o),t}function Ti(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===b?zo+=4:(r=o,0===Wo&&ru(Qn)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?t=r=[r,e]:(zo=t,t=o)):(zo=t,t=o),t}function wi(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===E?zo+=4:(r=o,0===Wo&&ru(nt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?t=r=[r,e]:(zo=t,t=o)):(zo=t,t=o),t}function xi(){var t,r,e,u;return t=zo,(r=n.substr(zo,5)).toLowerCase()===L?zo+=5:(r=o,0===Wo&&ru(tt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?t=r=[r,e]:(zo=t,t=o)):(zo=t,t=o),t}function Ni(){var t,r,e,u;return t=zo,(r=n.substr(zo,2)).toLowerCase()===T?zo+=2:(r=o,0===Wo&&ru(rt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Xe()):(zo=t,t=o)):(zo=t,t=o),t}function Ii(){var t,r,e,u;return t=zo,(r=n.substr(zo,2)).toLowerCase()===w?zo+=2:(r=o,0===Wo&&ru(et)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Je()):(zo=t,t=o)):(zo=t,t=o),t}function Ri(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===x?zo+=4:(r=o,0===Wo&&ru(ot)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Qe()):(zo=t,t=o)):(zo=t,t=o),t}function Oi(){var t,r,e,u;return t=zo,(r=n.substr(zo,6)).toLowerCase()===N?zo+=6:(r=o,0===Wo&&ru(ut)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=no()):(zo=t,t=o)):(zo=t,t=o),t}function Fi(){var t,r,e,u;return t=zo,(r=n.substr(zo,3)).toLowerCase()===I?zo+=3:(r=o,0===Wo&&ru(it)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=to()):(zo=t,t=o)):(zo=t,t=o),t}function Si(){var t,r,e,u;return t=zo,(r=n.substr(zo,3)).toLowerCase()===R?zo+=3:(r=o,0===Wo&&ru(at)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=ro()):(zo=t,t=o)):(zo=t,t=o),t}function Mi(){var t,r,e,u;return t=zo,(r=n.substr(zo,2)).toLowerCase()===O?zo+=2:(r=o,0===Wo&&ru(ct)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=eo()):(zo=t,t=o)):(zo=t,t=o),t}function $i(){var t,r,e,u;return t=zo,(r=n.substr(zo,7)).toLowerCase()===F?zo+=7:(r=o,0===Wo&&ru(st)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=oo()):(zo=t,t=o)):(zo=t,t=o),t}function Ui(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===S?zo+=4:(r=o,0===Wo&&ru(ft)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=uo()):(zo=t,t=o)):(zo=t,t=o),t}function _i(){var t,r,e,u;return t=zo,(r=n.substr(zo,3)).toLowerCase()===M?zo+=3:(r=o,0===Wo&&ru(lt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=io()):(zo=t,t=o)):(zo=t,t=o),t}function Di(){var t,r,e,u;return t=zo,(r=n.substr(zo,9)).toLowerCase()===$?zo+=9:(r=o,0===Wo&&ru(pt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=ao()):(zo=t,t=o)):(zo=t,t=o),t}function Hi(){var t,r,e,u;return t=zo,(r=n.substr(zo,7)).toLowerCase()===U?zo+=7:(r=o,0===Wo&&ru(vt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=co()):(zo=t,t=o)):(zo=t,t=o),t}function Pi(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===_?zo+=4:(r=o,0===Wo&&ru(dt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=so()):(zo=t,t=o)):(zo=t,t=o),t}function ji(){var t,r,e,u;return t=zo,(r=n.substr(zo,8)).toLowerCase()===D?zo+=8:(r=o,0===Wo&&ru(yt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=fo()):(zo=t,t=o)):(zo=t,t=o),t}function Zi(){var t,r,e,u;return t=zo,(r=n.substr(zo,9)).toLowerCase()===H?zo+=9:(r=o,0===Wo&&ru(ht)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=lo()):(zo=t,t=o)):(zo=t,t=o),t}function ki(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===P?zo+=4:(r=o,0===Wo&&ru(gt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=po()):(zo=t,t=o)):(zo=t,t=o),t}function zi(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===j?zo+=4:(r=o,0===Wo&&ru(At)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=vo()):(zo=t,t=o)):(zo=t,t=o),t}function Gi(){var t,r,e,u;return t=zo,(r=n.substr(zo,7)).toLowerCase()===Z?zo+=7:(r=o,0===Wo&&ru(mt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=yo()):(zo=t,t=o)):(zo=t,t=o),t}function Bi(){var t,r,e,u;return t=zo,(r=n.substr(zo,8)).toLowerCase()===k?zo+=8:(r=o,0===Wo&&ru(Ct)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=ho()):(zo=t,t=o)):(zo=t,t=o),t}function qi(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===z?zo+=4:(r=o,0===Wo&&ru(bt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=go()):(zo=t,t=o)):(zo=t,t=o),t}function Vi(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===G?zo+=4:(r=o,0===Wo&&ru(Et)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Ao()):(zo=t,t=o)):(zo=t,t=o),t}function Wi(){var t,r,e,u;return t=zo,(r=n.substr(zo,2)).toLowerCase()===B?zo+=2:(r=o,0===Wo&&ru(Lt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=mo()):(zo=t,t=o)):(zo=t,t=o),t}function Yi(){var t,r,e,u;return t=zo,(r=n.substr(zo,7)).toLowerCase()===q?zo+=7:(r=o,0===Wo&&ru(Tt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Co()):(zo=t,t=o)):(zo=t,t=o),t}function Ki(){var t,r,e,u;return t=zo,(r=n.substr(zo,3)).toLowerCase()===V?zo+=3:(r=o,0===Wo&&ru(wt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=bo()):(zo=t,t=o)):(zo=t,t=o),t}function Xi(){var t,r,e,u;return t=zo,(r=n.substr(zo,8)).toLowerCase()===W?zo+=8:(r=o,0===Wo&&ru(xt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Eo()):(zo=t,t=o)):(zo=t,t=o),t}function Ji(){var t,r,e,u;return t=zo,(r=n.substr(zo,5)).toLowerCase()===Y?zo+=5:(r=o,0===Wo&&ru(Nt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Lo()):(zo=t,t=o)):(zo=t,t=o),t}function Qi(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===K?zo+=4:(r=o,0===Wo&&ru(It)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=To()):(zo=t,t=o)):(zo=t,t=o),t}function na(){var t,r,e,u;return t=zo,(r=n.substr(zo,7)).toLowerCase()===X?zo+=7:(r=o,0===Wo&&ru(Rt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=wo()):(zo=t,t=o)):(zo=t,t=o),t}function ta(){var t,r,e,u;return t=zo,(r=n.substr(zo,2)).toLowerCase()===J?zo+=2:(r=o,0===Wo&&ru(Ot)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=xo()):(zo=t,t=o)):(zo=t,t=o),t}function ra(){var t,r,e,u;return t=zo,(r=n.substr(zo,8)).toLowerCase()===Q?zo+=8:(r=o,0===Wo&&ru(Ft)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=No()):(zo=t,t=o)):(zo=t,t=o),t}function ea(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===nn?zo+=4:(r=o,0===Wo&&ru(St)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Io()):(zo=t,t=o)):(zo=t,t=o),t}function oa(){var t,r,e,u;return t=zo,(r=n.substr(zo,13)).toLowerCase()===tn?zo+=13:(r=o,0===Wo&&ru(Mt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Ro()):(zo=t,t=o)):(zo=t,t=o),t}function ua(){var t,r,e,u;return t=zo,(r=n.substr(zo,15)).toLowerCase()===rn?zo+=15:(r=o,0===Wo&&ru($t)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Oo()):(zo=t,t=o)):(zo=t,t=o),t}function ia(){var t,r,e,u;return t=zo,(r=n.substr(zo,5)).toLowerCase()===en?zo+=5:(r=o,0===Wo&&ru(Ut)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Fo()):(zo=t,t=o)):(zo=t,t=o),t}function aa(){var t,r,e,u;return t=zo,(r=n.substr(zo,3)).toLowerCase()===on?zo+=3:(r=o,0===Wo&&ru(_t)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=So()):(zo=t,t=o)):(zo=t,t=o),t}function ca(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===un?zo+=4:(r=o,0===Wo&&ru(Dt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Mo()):(zo=t,t=o)):(zo=t,t=o),t}function sa(){var t,r,e,u;return t=zo,(r=n.substr(zo,6)).toLowerCase()===an?zo+=6:(r=o,0===Wo&&ru(Ht)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=$o()):(zo=t,t=o)):(zo=t,t=o),t}function fa(){var t,r,e,u;return t=zo,(r=n.substr(zo,6)).toLowerCase()===cn?zo+=6:(r=o,0===Wo&&ru(Pt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Uo()):(zo=t,t=o)):(zo=t,t=o),t}function la(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===sn?zo+=4:(r=o,0===Wo&&ru(jt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=_o()):(zo=t,t=o)):(zo=t,t=o),t}function pa(){var t,r,e,u;return t=zo,(r=n.substr(zo,3)).toLowerCase()===fn?zo+=3:(r=o,0===Wo&&ru(Zt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Do()):(zo=t,t=o)):(zo=t,t=o),t}function va(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===ln?zo+=4:(r=o,0===Wo&&ru(kt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Ho()):(zo=t,t=o)):(zo=t,t=o),t}function da(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===pn?zo+=4:(r=o,0===Wo&&ru(zt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=Po()):(zo=t,t=o)):(zo=t,t=o),t}function ya(){var t,r,e,u;return t=zo,(r=n.substr(zo,4)).toLowerCase()===vn?zo+=4:(r=o,0===Wo&&ru(Gt)),r!==o?(e=zo,Wo++,u=Ou(),Wo--,u===o?e=void 0:(zo=e,e=o),e!==o?(Go=t,t=jo()):(zo=t,t=o)):(zo=t,t=o),t}function ha(){var t;return 44===n.charCodeAt(zo)?(t=dn,zo++):(t=o,0===Wo&&ru(Bt)),t}function ga(){var t;return 40===n.charCodeAt(zo)?(t=yn,zo++):(t=o,0===Wo&&ru(qt)),t}function Aa(){var t;return 41===n.charCodeAt(zo)?(t=hn,zo++):(t=o,0===Wo&&ru(Vt)),t}function ma(){var n,t;for(n=[],t=Ca();t!==o;)n.push(t),t=Ca();return n}function Ca(){var t;return t=n.charAt(zo),In.test(t)?zo++:(t=o,0===Wo&&ru(Wt)),t}function ba(){var t,r,e,u;if(t=zo,(r=Iu())!==o&&(Go=t,r=Zo(r)),(t=r)===o)if(t=zo,96===n.charCodeAt(zo)?(r=gn,zo++):(r=o,0===Wo&&ru(Yt)),r!==o){if(e=[],u=n.charAt(zo),Rn.test(u)?zo++:(u=o,0===Wo&&ru(Kt)),u!==o)for(;u!==o;)e.push(u),u=n.charAt(zo),Rn.test(u)?zo++:(u=o,0===Wo&&ru(Kt));else e=o;e!==o?(96===n.charCodeAt(zo)?(u=gn,zo++):(u=o,0===Wo&&ru(Yt)),u!==o?(Go=t,t=ko(e)):(zo=t,t=o)):(zo=t,t=o)}else zo=t,t=o;return t}function Ea(n,t,r){return{type:"unary-expression",location:r,operator:n,expr:t}}function La(n,t,r,e,o){const u={type:"binary-expression",location:o,operator:n,left:t,right:r};return void 0!==e&&(u.escape=e),u}function Ta(n,...t){return{type:"expression-list",location:n,value:t}}function wa(n,t){let r=n;for(const{op:e,expr:o,location:{end:u}}of t)r=La(e,r,o,void 0,{...r.location,end:u});return r}function xa(n){!0!==/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(n)&&Ko("Timestamp literal is invalid")}function Na(n){!0!==/^(\d{1,2}):(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/.test(n)&&Ko("Time literal is invalid")}function Ia(n){!0!==/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(n)&&Ko("Date literal is invalid")}if(e=a(),r.peg$library)return{peg$result:e,peg$currPos:zo,peg$FAILED:o,peg$maxFailExpected:Vo,peg$maxFailPos:qo};if(e!==o&&zo===n.length)return e;throw e!==o&&zo<n.length&&ru(Qo()),ou(Vo,qo<n.length?n.charAt(qo):null,qo<n.length?tu(qo,qo+1):tu(qo,qo))}n(t,Error),t.prototype.format=function(n){var t="Error: "+this.message;if(this.location){var e,o=null;for(e=0;e<n.length;e++)if(n[e].source===this.location.source){o=n[e].text.split(/\r\n|\n|\r/g);break}var u=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(u):u,a=this.location.source+":"+i.line+":"+i.column;if(o){var c=this.location.end,s=r("",i.line.toString().length," "),f=o[u.line-1],l=(u.line===c.line?c.column:f.length+1)-u.column||1;t+="\n --\x3e "+a+"\n"+s+" |\n"+i.line+" | "+f+"\n"+s+" | "+r("",u.column-1," ")+r("",l,"^")}else t+="\n at "+a}return t},t.buildMessage=function(n,t){var r={literal:function(n){return'"'+o(n.text)+'"'},class:function(n){var t=n.parts.map((function(n){return Array.isArray(n)?u(n[0])+"-"+u(n[1]):u(n)}));return"["+(n.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(n){return n.description}};function e(n){return n.charCodeAt(0).toString(16).toUpperCase()}function o(n){return n.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(n){return"\\x0"+e(n)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(n){return"\\x"+e(n)}))}function u(n){return n.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(n){return"\\x0"+e(n)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(n){return"\\x"+e(n)}))}function i(n){return r[n.type](n)}function a(n){var t,r,e=n.map(i);if(e.sort(),e.length>0){for(t=1,r=1;t<e.length;t++)e[t-1]!==e[t]&&(e[r]=e[t],r++);e.length=r}switch(e.length){case 1:return e[0];case 2:return e[0]+" or "+e[1];default:return e.slice(0,-1).join(", ")+", or "+e[e.length-1]}}function c(n){return n?'"'+o(n)+'"':"end of input"}return"Expected "+a(n)+" but "+c(t)+" found."};class o{static parse(n){return e(n)}}function u(n,t){if(null!=n)switch(t(n),n.type){case"when-clause":u(n.operand,t),u(n.value,t);break;case"case-expression":for(const r of n.clauses)u(r,t);"simple"===n.format&&u(n.operand,t),null!==n.else&&u(n.else,t);break;case"expression-list":for(const r of n.value)u(r,t);break;case"unary-expression":u(n.expr,t);break;case"binary-expression":u(n.left,t),u(n.right,t);break;case"function":u(n.args,t);break;case"interval":u(n.value,t),u(n.qualifier,t);break;case"interval-qualifier":u(n.start,t),u(n.end,t)}}export{o as WhereGrammar,u as visitAll};
5
+ class t extends SyntaxError{constructor(t,n,e,r){super(t),this.expected=n,this.found=e,this.location=r,this.name="SyntaxError"}format(t){let n="Error: "+this.message;if(this.location){let e=null;const r=t.find((t=>t.source===this.location.source));r&&(e=r.text.split(/\r\n|\n|\r/g));const o=this.location.start,u=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,i=this.location.source+":"+u.line+":"+u.column;if(e){const t=this.location.end,r="".padEnd(u.line.toString().length," "),c=e[o.line-1],l=(o.line===t.line?t.column:c.length+1)-o.column||1;n+="\n --\x3e "+i+"\n"+r+" |\n"+u.line+" | "+c+"\n"+r+" | "+"".padEnd(o.column-1," ")+"".padEnd(l,"^")}else n+="\n at "+i}return n}static buildMessage(t,n){function e(t){return t.codePointAt(0).toString(16).toUpperCase()}const r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function o(t){return r?t.replace(r,(t=>"\\u{"+e(t)+"}")):t}function u(t){return o(t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(t=>"\\x0"+e(t))).replace(/[\x10-\x1F\x7F-\x9F]/g,(t=>"\\x"+e(t))))}function i(t){return o(t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(t=>"\\x0"+e(t))).replace(/[\x10-\x1F\x7F-\x9F]/g,(t=>"\\x"+e(t))))}const c={literal:t=>'"'+u(t.text)+'"',class(t){const n=t.parts.map((t=>Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)));return"["+(t.inverted?"^":"")+n.join("")+"]"+(t.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:t=>t.description};function l(t){return c[t.type](t)}function a(t){const n=t.map(l);if(n.sort(),n.length>0){let t=1;for(let e=1;e<n.length;e++)n[e-1]!==n[e]&&(n[t]=n[e],t++);n.length=t}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}function s(t){return t?'"'+u(t)+'"':"end of input"}return"Expected "+a(t)+" but "+s(n)+" found."}}function n(n,e){const r={},o=(e=void 0!==e?e:{}).grammarSource,u={start:iu};let i=iu;const c="!",l="=",a=">=",s=">",f="<=",p="<>",d="!=",v="||",y="@",h="'",g="N'",E="''",m=".",A="null",C="true",b="false",L="in",T="is",w="like",x="escape",N="not",R="and",I="or",O="between",F="from",S="for",M="substring",$="extract",U="trim",_="position",D="timestamp",H="date",P="time",Z="leading",j="trailing",z="both",k="cast",G="as",B="integer",q="int",V="smallint",W="float",Y="real",K="varchar",X="to",J="interval",Q="year",tt="timezone_hour",nt="timezone_minute",et="month",rt="day",ot="hour",ut="minute",it="second",ct="case",lt="end",at="when",st="then",ft="else",pt=",",dt="(",vt=")",yt="`",ht=/^[<-=]/,gt=/^[+\-]/,Et=/^[*\/]/,mt=/^[A-Za-z_\x80-\uFFFF]/,At=/^[A-Za-z0-9_]/,Ct=/^[A-Za-z0-9_.\x80-\uFFFF]/,bt=/^["]/,Lt=/^[^']/,Tt=/^[0-9]/,wt=/^[eE]/,xt=/^[ \t\n\r]/,Nt=/^[^`]/,Rt=Jo("!",!1),It=Jo("=",!1),Ot=Jo(">=",!1),Ft=Jo(">",!1),St=Jo("<=",!1),Mt=Jo("<>",!1),$t=Qo([["<","="]],!1,!1,!1),Ut=Jo("!=",!1),_t=Qo(["+","-"],!1,!1,!1),Dt=Jo("||",!1),Ht=Qo(["*","/"],!1,!1,!1),Pt=Qo([["A","Z"],["a","z"],"_",["€","￿"]],!1,!1,!1),Zt=Qo([["A","Z"],["a","z"],["0","9"],"_"],!1,!1,!1),jt=Qo([["A","Z"],["a","z"],["0","9"],"_",".",["€","￿"]],!1,!1,!1),zt=Qo(['"'],!1,!1,!1),kt=Jo("@",!1),Gt=Jo("'",!1),Bt=Jo("N'",!1),qt=Jo("''",!1),Vt=Qo(["'"],!0,!1,!1),Wt=Jo(".",!1),Yt=Qo([["0","9"]],!1,!1,!1),Kt=Qo(["e","E"],!1,!1,!1),Xt=Jo("NULL",!0),Jt=Jo("TRUE",!0),Qt=Jo("FALSE",!0),tn=Jo("IN",!0),nn=Jo("IS",!0),en=Jo("LIKE",!0),rn=Jo("ESCAPE",!0),on=Jo("NOT",!0),un=Jo("AND",!0),cn=Jo("OR",!0),ln=Jo("BETWEEN",!0),an=Jo("FROM",!0),sn=Jo("FOR",!0),fn=Jo("SUBSTRING",!0),pn=Jo("EXTRACT",!0),dn=Jo("TRIM",!0),vn=Jo("POSITION",!0),yn=Jo("TIMESTAMP",!0),hn=Jo("DATE",!0),gn=Jo("TIME",!0),En=Jo("LEADING",!0),mn=Jo("TRAILING",!0),An=Jo("BOTH",!0),Cn=Jo("CAST",!0),bn=Jo("AS",!0),Ln=Jo("INTEGER",!0),Tn=Jo("INT",!0),wn=Jo("SMALLINT",!0),xn=Jo("FLOAT",!0),Nn=Jo("REAL",!0),Rn=Jo("VARCHAR",!0),In=Jo("TO",!0),On=Jo("INTERVAL",!0),Fn=Jo("YEAR",!0),Sn=Jo("TIMEZONE_HOUR",!0),Mn=Jo("TIMEZONE_MINUTE",!0),$n=Jo("MONTH",!0),Un=Jo("DAY",!0),_n=Jo("HOUR",!0),Dn=Jo("MINUTE",!0),Hn=Jo("SECOND",!0),Pn=Jo("CASE",!0),Zn=Jo("END",!0),jn=Jo("WHEN",!0),zn=Jo("THEN",!0),kn=Jo("ELSE",!0),Gn=Jo(",",!1),Bn=Jo("(",!1),qn=Jo(")",!1),Vn=Qo([" ","\t","\n","\r"],!1,!1,!1),Wn=Jo("`",!1),Yn=Qo(["`"],!0,!1,!1);function Kn(t){return t}function Xn(t){return{type:"expression-list",location:Yo(),value:t}}function Jn(t,n,e){return{op:n,expr:e,location:Yo()}}function Qn(t,n){return xc(t,n)}function te(t,n,e){return{op:n,expr:e,location:Yo()}}function ne(t,n){return xc(t,n)}function ee(t){return Lc("NOT",t,Yo())}function re(t,n){if(""==n||null==n||null==n)return t;return"arithmetic"==n.type?xc(t,n.tail):Tc(n.op,t,n.right,n.escape,Yo())}function oe(t,n){return{op:t,expr:n,location:Yo()}}function ue(t){return{type:"arithmetic",tail:t}}function ie(t,n){return{op:t+"NOT",right:n}}function ce(t,n){return{op:t,right:n}}function le(t,n,e){return wc(Yo(),n,e)}function ae(t,n){return{op:"NOT"+t,right:n}}function se(t,n,e){return wc(Yo(),n,e)}function fe(t,n){return{op:t,right:n}}function pe(t){return t[0]+" "+t[2]}function de(t){return t[0]+" "+t[2]}function ve(t,n,e){return{op:t,right:n,escape:e.value}}function ye(t,n){return{op:t,right:n,escape:""}}function he(t,n){return{op:t,right:n}}function ge(t,n){return{op:t,right:n}}function Ee(t,n,e){return{op:n,expr:e,location:Yo()}}function me(t,n){return xc(t,n)}function Ae(t,n,e){return{op:n,expr:e,location:Yo()}}function Ce(t,n){return xc(t,n)}function be(t){return t.paren=!0,t}function Le(t){return/^CURRENT_DATE$/i.test(t)?{type:"current-time",location:Yo(),mode:"date"}:/^CURRENT_TIMESTAMP$/i.test(t)?{type:"current-time",location:Yo(),mode:"timestamp"}:/^CURRENT_TIME$/i.test(t)?{type:"current-time",location:Yo(),mode:"time"}:/^CURRENT_USER$/i.test(t)?{type:"current-user",location:Yo()}:{type:"column-reference",location:Yo(),table:"",column:t}}function Te(t){return{type:"column-reference",location:Yo(),table:"",column:t,delimited:!0}}function we(t){return t}function xe(t,n){return t+n.join("")}function Ne(t,n){return t+n.join("")}function Re(t){return t}function Ie(t){return t.join("")}function Oe(){return'"'}function Fe(t){return{type:"parameter",location:Yo(),value:t[1]}}function Se(t,n){return wc(Yo(),t,n)}function Me(t,n){return wc(Yo(),t,n)}function $e(t){return{type:"function",location:Yo(),name:"extract",args:t}}function Ue(t,n,e){return wc(Yo(),t,n,...e?[e]:[])}function _e(t,n,e){return wc(Yo(),t,n,e)}function De(t){return{type:"function",location:Yo(),name:"substring",args:t}}function He(t,n){return wc(Yo(),t,n)}function Pe(t,n){return wc(Yo(),t,n)}function Ze(t){return{type:"function",location:Yo(),name:"cast",args:t}}function je(){return{type:"data-type",location:Yo(),value:{type:"integer"}}}function ze(){return{type:"data-type",location:Yo(),value:{type:"smallint"}}}function ke(){return{type:"data-type",location:Yo(),value:{type:"float"}}}function Ge(){return{type:"data-type",location:Yo(),value:{type:"real"}}}function Be(){return{type:"data-type",location:Yo(),value:{type:"date"}}}function qe(){return{type:"data-type",location:Yo(),value:{type:"timestamp"}}}function Ve(){return{type:"data-type",location:Yo(),value:{type:"time"}}}function We(t){return{type:"data-type",location:Yo(),value:{type:"varchar",size:parseInt(t)}}}function Ye(t,n,e){return wc(Yo(),t,n,e)}function Ke(t,n){return wc(Yo(),t,n)}function Xe(t){return{type:"function",location:Yo(),name:"trim",args:t}}function Je(t){return{type:"string",location:Yo(),value:t??"BOTH"}}function Qe(t,n){return wc(Yo(),t,n)}function tr(t,n){return wc(Yo(),t,n)}function nr(t){return{type:"function",location:Yo(),name:"position",args:t}}function er(t,n){return{type:"function",location:Yo(),name:t,args:n}}function rr(t){return{type:"string",location:Yo(),value:t}}function or(t){return"string"===t.type&&Nc(t.value),{type:"timestamp",location:Yo(),value:t.value}}function ur(t){return"string"===t.type&&Rc(t.value),{type:"time",location:Yo(),value:t.value}}function ir(t,n,e){return{type:"interval",location:Yo(),value:n,qualifier:e,op:t}}function cr(t,n){return{type:"interval",location:Yo(),value:t,qualifier:n,op:""}}function lr(t,n){return{type:"interval-qualifier",location:Yo(),start:t,end:n}}function ar(t,n){return{type:"interval-period",location:Yo(),period:t.value,precision:n,secondary:null}}function sr(t){return{type:"interval-period",location:Yo(),period:t.value,precision:null,secondary:null}}function fr(t){return{type:"interval-period",location:Yo(),period:t.value,precision:null,secondary:null}}function pr(t,n){return{type:"interval-period",location:Yo(),period:"second",precision:t,secondary:n}}function dr(t){return{type:"interval-period",location:Yo(),period:"second",precision:t,secondary:null}}function vr(){return{type:"interval-period",location:Yo(),period:"second",precision:null,secondary:null}}function yr(t,n){return{type:"interval-period",location:Yo(),period:t.value,precision:n,secondary:null}}function hr(t){return{type:"interval-period",location:Yo(),period:t.value,precision:null,secondary:null}}function gr(t,n){return{type:"interval-period",location:Yo(),period:"second",precision:t,secondary:n}}function Er(t){return{type:"interval-period",location:Yo(),period:"second",precision:t,secondary:null}}function mr(){return{type:"interval-period",location:Yo(),period:"second",precision:null,secondary:null}}function Ar(){return{type:"string",location:Yo(),value:"day"}}function Cr(){return{type:"string",location:Yo(),value:"hour"}}function br(){return{type:"string",location:Yo(),value:"minute"}}function Lr(){return{type:"string",location:Yo(),value:"month"}}function Tr(){return{type:"string",location:Yo(),value:"year"}}function wr(t){return parseFloat(t)}function xr(t){return parseFloat(t)}function Nr(t){return"string"===t.type&&Ic(t.value),{type:"date",location:Yo(),value:t.value}}function Rr(){return{type:"null",location:Yo(),value:null}}function Ir(){return{type:"boolean",location:Yo(),value:!0}}function Or(){return{type:"boolean",location:Yo(),value:!1}}function Fr(){return"'"}function Sr(t){return{type:"string",location:Yo(),value:t.join("")}}function Mr(t,n){return{type:"case-expression",location:Yo(),format:"simple",operand:t,clauses:n,else:null,elseLocation:null}}function $r(t,n,e){return{type:"case-expression",location:Yo(),format:"simple",operand:t,clauses:n,else:e.value,elseLocation:e.location}}function Ur(t){return{type:"case-expression",location:Yo(),format:"searched",clauses:t,else:null,elseLocation:null}}function _r(t,n){return{type:"case-expression",location:Yo(),format:"searched",clauses:t,else:n.value,elseLocation:n.location}}function Dr(t,n){return{type:"when-clause",location:Yo(),operand:t,value:n}}function Hr(t,n){return{type:"when-clause",location:Yo(),operand:t,value:n}}function Pr(t){return{type:"else-clause",location:Yo(),value:t}}function Zr(t){return{type:"number",location:Yo(),value:t}}function jr(t,n,e){return parseFloat(t+n+e)}function zr(t,n){return parseFloat(t+n)}function kr(t,n){return parseFloat(t+n)}function Gr(t){return parseFloat(t)}function Br(t,n){return t[0]+n}function qr(t){return"."+(null!=t?t:"")}function Vr(t,n){return t+n}function Wr(t){return t.join("")}function Yr(t,n){return"e"+(null===n?"":n)}function Kr(){return"IN"}function Xr(){return"IS"}function Jr(){return"LIKE"}function Qr(){return"ESCAPE"}function to(){return"NOT"}function no(){return"AND"}function eo(){return"OR"}function ro(){return"BETWEEN"}function oo(){return"FROM"}function uo(){return"FOR"}function io(){return"SUBSTRING"}function co(){return"EXTRACT"}function lo(){return"TRIM"}function ao(){return"POSITION"}function so(){return"TIMESTAMP"}function fo(){return"DATE"}function po(){return"TIME"}function vo(){return"LEADING"}function yo(){return"TRAILING"}function ho(){return"BOTH"}function go(){return"CAST"}function Eo(){return"AS"}function mo(){return"INTEGER"}function Ao(){return"INT"}function Co(){return"SMALLINT"}function bo(){return"FLOAT"}function Lo(){return"REAL"}function To(){return"VARCHAR"}function wo(){return"TO"}function xo(){return"INTERVAL"}function No(){return"YEAR"}function Ro(){return"TIMEZONE_HOUR"}function Io(){return"TIMEZONE_MINUTE"}function Oo(){return"MONTH"}function Fo(){return"DAY"}function So(){return"HOUR"}function Mo(){return"MINUTE"}function $o(){return"SECOND"}function Uo(){return"CASE"}function _o(){return"END"}function Do(){return"WHEN"}function Ho(){return"THEN"}function Po(){return"ELSE"}function Zo(t){return t}function jo(t){return t.join("")}let zo=0|e.peg$currPos,ko=zo;const Go=[{line:1,column:1}];let Bo,qo=zo,Vo=e.peg$maxFailExpected||[],Wo=0|e.peg$silentFails;if(e.startRule){if(!(e.startRule in u))throw new Error("Can't start parsing from rule \""+e.startRule+'".');i=u[e.startRule]}function Yo(){return eu(ko,zo)}function Ko(t,n){throw ou(t,n=void 0!==n?n:eu(ko,zo))}function Xo(t=zo){const e=n.codePointAt(t);return void 0===e?"":String.fromCodePoint(e)}function Jo(t,n){return{type:"literal",text:t,ignoreCase:n}}function Qo(t,n,e,r){return{type:"class",parts:t,inverted:n,ignoreCase:e,unicode:r}}function tu(){return{type:"end"}}function nu(t){let e,r=Go[t];if(r)return r;if(t>=Go.length)e=Go.length-1;else for(e=t;!Go[--e];);for(r=Go[e],r={line:r.line,column:r.column};e<t;)10===n.charCodeAt(e)?(r.line++,r.column=1):r.column++,e++;return Go[t]=r,r}function eu(t,n,e){const r=nu(t),u=nu(n);return{source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:n,line:u.line,column:u.column}}}function ru(t){zo<qo||(zo>qo&&(qo=zo,Vo=[]),Vo.push(t))}function ou(n,e){return new t(n,null,null,e)}function uu(n,e,r){return new t(t.buildMessage(n,e),n,e,r)}function iu(){let t,n;return t=zo,Ac(),n=lu(),n!==r?(Ac(),ko=t,t=Kn(n)):(zo=t,t=r),t}function cu(){let t,n,e,o,u,i,c,l;if(t=zo,n=Ec(),n!==r){for(Ac(),e=[],o=lu();o!==r;)e.push(o),o=zo,u=zo,i=Ac(),c=gc(),c!==r?(l=Ac(),i=[i,c,l],u=i):(zo=u,u=r),u!==r?(u=lu(),u===r?(zo=o,o=r):o=u):o=u;o=Ac(),u=mc(),u!==r?(ko=t,t=Xn(e)):(zo=t,t=r)}else zo=t,t=r;return t}function lu(){let t,n,e,o,u,i;if(t=zo,n=au(),n!==r){for(e=[],o=zo,Ac(),u=$i(),u!==r?(Ac(),i=au(),i!==r?(ko=o,o=Jn(n,u,i)):(zo=o,o=r)):(zo=o,o=r);o!==r;)e.push(o),o=zo,Ac(),u=$i(),u!==r?(Ac(),i=au(),i!==r?(ko=o,o=Jn(n,u,i)):(zo=o,o=r)):(zo=o,o=r);ko=t,t=Qn(n,e)}else zo=t,t=r;return t}function au(){let t,n,e,o,u,i;if(t=zo,n=su(),n!==r){for(e=[],o=zo,Ac(),u=Mi(),u!==r?(Ac(),i=su(),i!==r?(ko=o,o=te(n,u,i)):(zo=o,o=r)):(zo=o,o=r);o!==r;)e.push(o),o=zo,Ac(),u=Mi(),u!==r?(Ac(),i=su(),i!==r?(ko=o,o=te(n,u,i)):(zo=o,o=r)):(zo=o,o=r);ko=t,t=ne(n,e)}else zo=t,t=r;return t}function su(){let t,e,o,u,i;return t=zo,e=Si(),e===r&&(e=zo,33===n.charCodeAt(zo)?(o=c,zo++):(o=r,0===Wo&&ru(Rt)),o!==r?(u=zo,Wo++,61===n.charCodeAt(zo)?(i=l,zo++):(i=r,0===Wo&&ru(It)),Wo--,i===r?u=void 0:(zo=u,u=r),u!==r?(o=[o,u],e=o):(zo=e,e=r)):(zo=e,e=r)),e!==r?(o=Ac(),u=su(),u!==r?(ko=t,t=ee(u)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=fu()),t}function fu(){let t,n,e,o;return t=zo,n=Cu(),n!==r?(e=zo,Ac(),o=pu(),o!==r?e=o:(zo=e,e=r),e===r&&(e=null),ko=t,t=re(n,e)):(zo=t,t=r),t}function pu(){let t;return t=du(),t===r&&(t=Au(),t===r&&(t=hu(),t===r&&(t=yu(),t===r&&(t=mu())))),t}function du(){let t,n,e,o,u;if(t=zo,n=[],e=zo,Ac(),o=vu(),o!==r?(Ac(),u=Cu(),u!==r?(ko=e,e=oe(o,u)):(zo=e,e=r)):(zo=e,e=r),e!==r)for(;e!==r;)n.push(e),e=zo,Ac(),o=vu(),o!==r?(Ac(),u=Cu(),u!==r?(ko=e,e=oe(o,u)):(zo=e,e=r)):(zo=e,e=r);else n=r;return n!==r&&(ko=t,n=ue(n)),t=n,t}function vu(){let t;return n.substr(zo,2)===a?(t=a,zo+=2):(t=r,0===Wo&&ru(Ot)),t===r&&(62===n.charCodeAt(zo)?(t=s,zo++):(t=r,0===Wo&&ru(Ft)),t===r&&(n.substr(zo,2)===f?(t=f,zo+=2):(t=r,0===Wo&&ru(St)),t===r&&(n.substr(zo,2)===p?(t=p,zo+=2):(t=r,0===Wo&&ru(Mt)),t===r&&(t=n.charAt(zo),ht.test(t)?zo++:(t=r,0===Wo&&ru($t)),t===r&&(n.substr(zo,2)===d?(t=d,zo+=2):(t=r,0===Wo&&ru(Ut))))))),t}function yu(){let t,n,e,o;return t=zo,n=Ii(),n!==r?(Ac(),e=Si(),e!==r?(Ac(),o=Cu(),o!==r?(ko=t,t=ie(n,o)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=Ii(),n!==r?(Ac(),e=Cu(),e!==r?(ko=t,t=ce(n,e)):(zo=t,t=r)):(zo=t,t=r)),t}function hu(){let t,n,e,o,u,i,c,l;return t=zo,n=Si(),n!==r?(Ac(),e=Ui(),e!==r?(o=Ac(),u=zo,i=Cu(),i!==r?(Ac(),c=Mi(),c!==r?(Ac(),l=Cu(),l!==r?(ko=u,u=le(e,i,l)):(zo=u,u=r)):(zo=u,u=r)):(zo=u,u=r),u!==r?(ko=t,t=ae(e,u)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=Ui(),n!==r?(Ac(),e=zo,o=Cu(),o!==r?(u=Ac(),i=Mi(),i!==r?(Ac(),c=Cu(),c!==r?(ko=e,e=se(n,o,c)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r),e!==r?(ko=t,t=fe(n,e)):(zo=t,t=r)):(zo=t,t=r)),t}function gu(){let t,n,e,o,u;return t=zo,n=zo,e=Si(),e!==r?(o=Ac(),u=Oi(),u!==r?(e=[e,o,u],n=e):(zo=n,n=r)):(zo=n,n=r),n!==r&&(ko=t,n=pe(n)),t=n,t===r&&(t=Oi()),t}function Eu(){let t,n,e,o,u;return t=zo,n=zo,e=Si(),e!==r?(o=Ac(),u=Ri(),u!==r?(e=[e,o,u],n=e):(zo=n,n=r)):(zo=n,n=r),n!==r&&(ko=t,n=de(n)),t=n,t===r&&(t=Ri()),t}function mu(){let t,n,e,o,u;return t=zo,n=gu(),n!==r?(Ac(),e=ai(),e!==r?(Ac(),o=Fi(),o!==r?(Ac(),u=si(),u!==r?(ko=t,t=ve(n,e,u)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=gu(),n!==r?(Ac(),e=ai(),e!==r?(ko=t,t=ye(n,e)):(zo=t,t=r)):(zo=t,t=r)),t}function Au(){let t,n,e;return t=zo,n=Eu(),n!==r?(Ac(),e=cu(),e!==r?(ko=t,t=he(n,e)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=Eu(),n!==r?(Ac(),e=Pu(),e!==r?(ko=t,t=ge(n,e)):(zo=t,t=r)):(zo=t,t=r)),t}function Cu(){let t,n,e,o,u,i;if(t=zo,n=Lu(),n!==r){for(e=[],o=zo,Ac(),u=bu(),u!==r?(Ac(),i=Lu(),i!==r?(ko=o,o=Ee(n,u,i)):(zo=o,o=r)):(zo=o,o=r);o!==r;)e.push(o),o=zo,Ac(),u=bu(),u!==r?(Ac(),i=Lu(),i!==r?(ko=o,o=Ee(n,u,i)):(zo=o,o=r)):(zo=o,o=r);ko=t,t=me(n,e)}else zo=t,t=r;return t}function bu(){let t;return t=n.charAt(zo),gt.test(t)?zo++:(t=r,0===Wo&&ru(_t)),t===r&&(n.substr(zo,2)===v?(t=v,zo+=2):(t=r,0===Wo&&ru(Dt))),t}function Lu(){let t,n,e,o,u,i;if(t=zo,n=wu(),n!==r){for(e=[],o=zo,Ac(),u=Tu(),u!==r?(Ac(),i=wu(),i!==r?(ko=o,o=Ae(n,u,i)):(zo=o,o=r)):(zo=o,o=r);o!==r;)e.push(o),o=zo,Ac(),u=Tu(),u!==r?(Ac(),i=wu(),i!==r?(ko=o,o=Ae(n,u,i)):(zo=o,o=r)):(zo=o,o=r);ko=t,t=Ce(n,e)}else zo=t,t=r;return t}function Tu(){let t;return t=n.charAt(zo),Et.test(t)?zo++:(t=r,0===Wo&&ru(Ht)),t}function wu(){let t,n,e,o;return t=Yu(),t===r&&(t=Zu(),t===r&&(t=ju(),t===r&&(t=Gu(),t===r&&(t=qu(),t===r&&(t=zu(),t===r&&(t=Vu(),t===r&&(t=fi(),t===r&&(t=xu(),t===r&&(t=Pu(),t===r&&(t=zo,n=Ec(),n!==r?(Ac(),e=lu(),e!==r?(Ac(),o=mc(),o!==r?(ko=t,t=be(e)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r))))))))))),t}function xu(){let t,n;return t=zo,n=Nu(),n!==r&&(ko=t,n=Le(n)),t=n,t===r&&(t=zo,n=Mu(),n!==r&&(ko=t,n=Te(n)),t=n),t}function Nu(){let t,n;return t=zo,n=Ru(),n!==r&&(ko=t,n=we(n)),t=n,t}function Ru(){let t,n,e,o;if(t=zo,n=Ou(),n!==r){for(e=[],o=Su();o!==r;)e.push(o),o=Su();ko=t,t=xe(n,e)}else zo=t,t=r;return t}function Iu(){let t,n,e,o;if(t=zo,n=Ou(),n!==r){for(e=[],o=Fu();o!==r;)e.push(o),o=Fu();ko=t,t=Ne(n,e)}else zo=t,t=r;return t}function Ou(){let t;return t=n.charAt(zo),mt.test(t)?zo++:(t=r,0===Wo&&ru(Pt)),t}function Fu(){let t;return t=n.charAt(zo),At.test(t)?zo++:(t=r,0===Wo&&ru(Zt)),t}function Su(){let t;return t=n.charAt(zo),Ct.test(t)?zo++:(t=r,0===Wo&&ru(jt)),t}function Mu(){let t,n,e,o;return t=zo,n=Hu(),n!==r?(e=$u(),o=Hu(),o!==r?(ko=t,t=Re(e)):(zo=t,t=r)):(zo=t,t=r),t}function $u(){let t,n,e;for(t=zo,n=[],e=Uu();e!==r;)n.push(e),e=Uu();return ko=t,n=Ie(n),t=n,t}function Uu(){let t;return t=Du(),t===r&&(t=_u()),t}function _u(){let t,n,e;return t=zo,n=Hu(),n!==r?(e=Hu(),e!==r?(ko=t,t=Oe()):(zo=t,t=r)):(zo=t,t=r),t}function Du(){let t;return t=n.charAt(zo),Ct.test(t)?zo++:(t=r,0===Wo&&ru(jt)),t}function Hu(){let t;return t=n.charAt(zo),bt.test(t)?zo++:(t=r,0===Wo&&ru(zt)),t}function Pu(){let t,e,o,u;return t=zo,e=zo,64===n.charCodeAt(zo)?(o=y,zo++):(o=r,0===Wo&&ru(kt)),o!==r?(u=Iu(),u!==r?(o=[o,u],e=o):(zo=e,e=r)):(zo=e,e=r),e!==r&&(ko=t,e=Fe(e)),t=e,t}function Zu(){let t,n,e,o,u,i,c,l;return t=zo,n=Pi(),n!==r?(Ac(),e=zo,o=Ec(),o!==r?(Ac(),u=Wu(),u!==r?(Ac(),i=_i(),i!==r?(Ac(),c=lu(),c!==r?(Ac(),l=mc(),l!==r?(ko=e,e=Se(u,c)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r),e===r&&(e=zo,o=Ec(),o!==r?(Ac(),u=Wu(),u!==r?(Ac(),i=gc(),i!==r?(Ac(),c=lu(),c!==r?(Ac(),l=mc(),l!==r?(ko=e,e=Me(u,c)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)),e!==r?(ko=t,t=$e(e)):(zo=t,t=r)):(zo=t,t=r),t}function ju(){let t,n,e,o,u,i,c,l,a,s,f;return t=zo,n=Hi(),n!==r?(Ac(),e=zo,o=Ec(),o!==r?(Ac(),u=lu(),u!==r?(Ac(),i=_i(),i!==r?(Ac(),c=lu(),c!==r?(Ac(),l=zo,a=Di(),a!==r?(s=Ac(),f=lu(),f!==r?(Ac(),l=f):(zo=l,l=r)):(zo=l,l=r),l===r&&(l=null),a=mc(),a!==r?(ko=e,e=Ue(u,c,l)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r),e===r&&(e=zo,o=Ec(),o!==r?(Ac(),u=lu(),u!==r?(Ac(),i=gc(),i!==r?(Ac(),c=lu(),c!==r?(Ac(),l=gc(),l!==r?(a=Ac(),s=lu(),s!==r?(f=mc(),f!==r?(ko=e,e=_e(u,c,s)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)),e!==r?(ko=t,t=De(e)):(zo=t,t=r)):(zo=t,t=r),t}function zu(){let t,n,e,o,u,i,c,l;return t=zo,n=Wi(),n!==r?(Ac(),e=zo,o=Ec(),o!==r?(Ac(),u=lu(),u!==r?(Ac(),i=Yi(),i!==r?(Ac(),c=ku(),c!==r?(Ac(),l=mc(),l!==r?(ko=e,e=He(u,c)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r),e===r&&(e=zo,o=Ec(),o!==r?(Ac(),u=lu(),u!==r?(Ac(),i=gc(),i!==r?(Ac(),c=ku(),c!==r?(Ac(),l=mc(),l!==r?(ko=e,e=Pe(u,c)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)),e!==r?(ko=t,t=Ze(e)):(zo=t,t=r)):(zo=t,t=r),t}function ku(){let t,n,e,o,u;return t=zo,n=Ki(),n===r&&(n=Xi()),n!==r&&(ko=t,n=je()),t=n,t===r&&(t=zo,n=Ji(),n!==r&&(ko=t,n=ze()),t=n,t===r&&(t=zo,n=Qi(),n!==r&&(ko=t,n=ke()),t=n,t===r&&(t=zo,n=tc(),n!==r&&(ko=t,n=Ge()),t=n,t===r&&(t=zo,n=ki(),n!==r&&(ko=t,n=Be()),t=n,t===r&&(t=zo,n=zi(),n!==r&&(ko=t,n=qe()),t=n,t===r&&(t=zo,n=Gi(),n!==r&&(ko=t,n=Ve()),t=n,t===r&&(t=zo,n=nc(),n!==r?(Ac(),e=Ec(),e!==r?(Ac(),o=bi(),o!==r?(Ac(),u=mc(),u!==r?(ko=t,t=We(o)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)))))))),t}function Gu(){let t,n,e,o,u,i,c,l,a;return t=zo,n=Zi(),n!==r?(Ac(),e=zo,o=Ec(),o!==r?(Ac(),u=Bu(),Ac(),i=lu(),i!==r?(Ac(),c=_i(),c!==r?(Ac(),l=lu(),l!==r?(Ac(),a=mc(),a!==r?(ko=e,e=Ye(u,i,l)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r),e===r&&(e=zo,o=Ec(),o!==r?(Ac(),u=Bu(),Ac(),i=lu(),i!==r?(Ac(),c=mc(),c!==r?(ko=e,e=Ke(u,i)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)),e!==r?(ko=t,t=Xe(e)):(zo=t,t=r)):(zo=t,t=r),t}function Bu(){let t,n;return t=zo,n=Bi(),n===r&&(n=qi(),n===r&&(n=Vi())),n===r&&(n=null),ko=t,n=Je(n),t=n,t}function qu(){let t,n,e,o,u,i,c,l;return t=zo,n=ji(),n!==r?(Ac(),e=zo,o=Ec(),o!==r?(Ac(),u=lu(),u!==r?(Ac(),i=Ri(),i!==r?(Ac(),c=lu(),c!==r?(Ac(),l=mc(),l!==r?(ko=e,e=Qe(u,c)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r),e===r&&(e=zo,o=Ec(),o!==r?(Ac(),u=lu(),u!==r?(Ac(),i=gc(),i!==r?(Ac(),c=lu(),c!==r?(Ac(),l=mc(),l!==r?(ko=e,e=tr(u,c)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)):(zo=e,e=r)),e!==r?(ko=t,t=nr(e)):(zo=t,t=r)):(zo=t,t=r),t}function Vu(){let t,n,e,o;return t=zo,n=zo,Wo++,e=Pi(),Wo--,e===r?n=void 0:(zo=n,n=r),n!==r?(e=bc(),e!==r?(Ac(),o=cu(),o!==r?(ko=t,t=er(e,o)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t}function Wu(){let t,n;return t=zo,n=oc(),n===r&&(n=cc(),n===r&&(n=lc(),n===r&&(n=ac(),n===r&&(n=sc(),n===r&&(n=fc(),n===r&&(n=uc(),n===r&&(n=ic()))))))),n!==r&&(ko=t,n=rr(n)),t=n,t}function Yu(){let t;return t=si(),t===r&&(t=gi(),t===r&&(t=li(),t===r&&(t=ci(),t===r&&(t=ii(),t===r&&(t=Ku(),t===r&&(t=Ju(),t===r&&(t=Xu()))))))),t}function Ku(){let t,n,e;return t=zo,n=zi(),n!==r?(Ac(),e=ai(),e!==r?(ko=t,t=or(e)):(zo=t,t=r)):(zo=t,t=r),t}function Xu(){let t,n,e;return t=zo,n=Gi(),n!==r?(Ac(),e=ai(),e!==r?(ko=t,t=ur(e)):(zo=t,t=r)):(zo=t,t=r),t}function Ju(){let t,e,o,u,i;return t=zo,e=rc(),e!==r?(Ac(),o=n.charAt(zo),gt.test(o)?zo++:(o=r,0===Wo&&ru(_t)),o!==r?(Ac(),u=ai(),u!==r?(Ac(),i=Qu(),i!==r?(ko=t,t=ir(o,u,i)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,e=rc(),e!==r?(Ac(),o=ai(),o!==r?(Ac(),u=Qu(),u!==r?(ko=t,t=cr(o,u)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)),t}function Qu(){let t,n,e,o;return t=zo,n=ti(),n!==r?(Ac(),e=ec(),e!==r?(Ac(),o=ni(),o!==r?(ko=t,t=lr(n,o)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=ei()),t}function ti(){let t,n,e,o,u;return t=zo,n=ri(),n!==r?(Ac(),e=Ec(),e!==r?(Ac(),o=ui(),o!==r?(Ac(),u=mc(),u!==r?(ko=t,t=ar(n,o)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=ri(),n!==r&&(ko=t,n=sr(n)),t=n),t}function ni(){let t,n,e,o,u,i,c;return t=zo,n=ri(),n!==r&&(ko=t,n=fr(n)),t=n,t===r&&(t=zo,n=fc(),n!==r?(Ac(),e=Ec(),e!==r?(Ac(),o=ui(),o!==r?(Ac(),u=gc(),u!==r?(Ac(),i=oi(),i!==r?(Ac(),c=mc(),c!==r?(ko=t,t=pr(o,i)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=fc(),n!==r?(Ac(),e=Ec(),e!==r?(Ac(),o=ui(),o!==r?(Ac(),u=mc(),u!==r?(ko=t,t=dr(o)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=fc(),n!==r&&(ko=t,n=vr()),t=n))),t}function ei(){let t,n,e,o,u,i,c;return t=zo,n=ri(),n!==r?(Ac(),e=Ec(),e!==r?(Ac(),o=oi(),o!==r?(Ac(),u=mc(),u!==r?(ko=t,t=yr(n,o)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=ri(),n!==r&&(ko=t,n=hr(n)),t=n,t===r&&(t=zo,n=fc(),n!==r?(Ac(),e=Ec(),e!==r?(Ac(),o=ui(),o!==r?(Ac(),u=gc(),u!==r?(Ac(),i=oi(),i!==r?(Ac(),c=mc(),c!==r?(ko=t,t=gr(o,i)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=fc(),n!==r?(Ac(),e=Ec(),e!==r?(Ac(),o=oi(),o!==r?(Ac(),u=mc(),u!==r?(ko=t,t=Er(o)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=fc(),n!==r&&(ko=t,n=mr()),t=n)))),t}function ri(){let t,n;return t=zo,n=lc(),n!==r&&(ko=t,n=Ar()),t=n,t===r&&(t=zo,n=ac(),n!==r&&(ko=t,n=Cr()),t=n,t===r&&(t=zo,n=sc(),n!==r&&(ko=t,n=br()),t=n,t===r&&(t=zo,n=cc(),n!==r&&(ko=t,n=Lr()),t=n,t===r&&(t=zo,n=oc(),n!==r&&(ko=t,n=Tr()),t=n)))),t}function oi(){let t,n;return t=zo,n=bi(),n!==r&&(ko=t,n=wr(n)),t=n,t}function ui(){let t,n;return t=zo,n=bi(),n!==r&&(ko=t,n=xr(n)),t=n,t}function ii(){let t,n,e;return t=zo,n=ki(),n!==r?(Ac(),e=ai(),e!==r?(ko=t,t=Nr(e)):(zo=t,t=r)):(zo=t,t=r),t}function ci(){let t,n;return t=zo,n=wi(),n!==r&&(ko=t,n=Rr()),t=n,t}function li(){let t,n;return t=zo,n=xi(),n!==r&&(ko=t,n=Ir()),t=n,t===r&&(t=zo,n=Ni(),n!==r&&(ko=t,n=Or()),t=n),t}function ai(){let t;return t=si(),t===r&&(t=Pu()),t}function si(){let t,e,o,u,i;if(t=zo,39===n.charCodeAt(zo)?(e=h,zo++):(e=r,0===Wo&&ru(Gt)),e===r&&(n.substr(zo,2)===g?(e=g,zo+=2):(e=r,0===Wo&&ru(Bt))),e!==r){for(o=[],u=zo,n.substr(zo,2)===E?(i=E,zo+=2):(i=r,0===Wo&&ru(qt)),i!==r&&(ko=u,i=Fr()),u=i,u===r&&(u=n.charAt(zo),Lt.test(u)?zo++:(u=r,0===Wo&&ru(Vt)));u!==r;)o.push(u),u=zo,n.substr(zo,2)===E?(i=E,zo+=2):(i=r,0===Wo&&ru(qt)),i!==r&&(ko=u,i=Fr()),u=i,u===r&&(u=n.charAt(zo),Lt.test(u)?zo++:(u=r,0===Wo&&ru(Vt)));39===n.charCodeAt(zo)?(u=h,zo++):(u=r,0===Wo&&ru(Gt)),u!==r?(ko=t,t=Sr(o)):(zo=t,t=r)}else zo=t,t=r;return t}function fi(){let t;return t=pi(),t===r&&(t=di()),t}function pi(){let t,n,e,o,u,i,c;if(t=zo,n=pc(),n!==r)if(Ac(),e=lu(),e!==r){for(Ac(),o=[],u=zo,i=yi(),i!==r?(c=Ac(),u=i):(zo=u,u=r);u!==r;)o.push(u),u=zo,i=yi(),i!==r?(c=Ac(),u=i):(zo=u,u=r);u=dc(),u!==r?(ko=t,t=Mr(e,o)):(zo=t,t=r)}else zo=t,t=r;else zo=t,t=r;if(t===r)if(t=zo,n=pc(),n!==r)if(Ac(),e=lu(),e!==r){for(Ac(),o=[],u=zo,i=yi(),i!==r?(c=Ac(),u=i):(zo=u,u=r);u!==r;)o.push(u),u=zo,i=yi(),i!==r?(c=Ac(),u=i):(zo=u,u=r);u=hi(),u!==r?(i=Ac(),c=dc(),c!==r?(ko=t,t=$r(e,o,u)):(zo=t,t=r)):(zo=t,t=r)}else zo=t,t=r;else zo=t,t=r;return t}function di(){let t,n,e,o,u,i;if(t=zo,n=pc(),n!==r){for(Ac(),e=[],o=zo,u=vi(),u!==r?(i=Ac(),o=u):(zo=o,o=r);o!==r;)e.push(o),o=zo,u=vi(),u!==r?(i=Ac(),o=u):(zo=o,o=r);o=dc(),o!==r?(ko=t,t=Ur(e)):(zo=t,t=r)}else zo=t,t=r;if(t===r)if(t=zo,n=pc(),n!==r){for(Ac(),e=[],o=zo,u=vi(),u!==r?(i=Ac(),o=u):(zo=o,o=r);o!==r;)e.push(o),o=zo,u=vi(),u!==r?(i=Ac(),o=u):(zo=o,o=r);o=hi(),o!==r?(u=Ac(),i=dc(),i!==r?(ko=t,t=_r(e,o)):(zo=t,t=r)):(zo=t,t=r)}else zo=t,t=r;return t}function vi(){let t,n,e,o,u;return t=zo,n=vc(),n!==r?(Ac(),e=lu(),e!==r?(Ac(),o=yc(),o!==r?(Ac(),u=lu(),u!==r?(ko=t,t=Dr(e,u)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t}function yi(){let t,n,e,o,u;return t=zo,n=vc(),n!==r?(Ac(),e=lu(),e!==r?(Ac(),o=yc(),o!==r?(Ac(),u=lu(),u!==r?(ko=t,t=Hr(e,u)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t}function hi(){let t,n,e;return t=zo,n=hc(),n!==r?(Ac(),e=lu(),e!==r?(ko=t,t=Pr(e)):(zo=t,t=r)):(zo=t,t=r),t}function gi(){let t,n,e,o;return t=zo,n=Ei(),n!==r?(e=zo,Wo++,o=Ou(),Wo--,o===r?e=void 0:(zo=e,e=r),e!==r?(ko=t,t=Zr(n)):(zo=t,t=r)):(zo=t,t=r),t}function Ei(){let t,n,e,o;return t=zo,n=mi(),n!==r?(e=Ai(),e!==r?(o=Ci(),o!==r?(ko=t,t=jr(n,e,o)):(zo=t,t=r)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=mi(),n!==r?(e=Ai(),e!==r?(ko=t,t=zr(n,e)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=mi(),n!==r?(e=Ci(),e!==r?(ko=t,t=kr(n,e)):(zo=t,t=r)):(zo=t,t=r),t===r&&(t=zo,n=mi(),n!==r&&(ko=t,n=Gr(n)),t=n))),t}function mi(){let t,e,o;return t=bi(),t===r&&(t=zo,e=n.charAt(zo),gt.test(e)?zo++:(e=r,0===Wo&&ru(_t)),e!==r?(o=bi(),o!==r?(ko=t,t=Br(e,o)):(zo=t,t=r)):(zo=t,t=r)),t}function Ai(){let t,e,o;return t=zo,46===n.charCodeAt(zo)?(e=m,zo++):(e=r,0===Wo&&ru(Wt)),e!==r?(o=bi(),o===r&&(o=null),ko=t,t=qr(o)):(zo=t,t=r),t}function Ci(){let t,n,e;return t=zo,n=Ti(),n!==r?(e=bi(),e!==r?(ko=t,t=Vr(n,e)):(zo=t,t=r)):(zo=t,t=r),t}function bi(){let t,n,e;if(t=zo,n=[],e=Li(),e!==r)for(;e!==r;)n.push(e),e=Li();else n=r;return n!==r&&(ko=t,n=Wr(n)),t=n,t}function Li(){let t;return t=n.charAt(zo),Tt.test(t)?zo++:(t=r,0===Wo&&ru(Yt)),t}function Ti(){let t,e,o;return t=zo,e=n.charAt(zo),wt.test(e)?zo++:(e=r,0===Wo&&ru(Kt)),e!==r?(o=n.charAt(zo),gt.test(o)?zo++:(o=r,0===Wo&&ru(_t)),o===r&&(o=null),ko=t,t=Yr(e,o)):(zo=t,t=r),t}function wi(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===A?zo+=4:(e=r,0===Wo&&ru(Xt)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(e=[e,o],t=e):(zo=t,t=r)):(zo=t,t=r),t}function xi(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===C?zo+=4:(e=r,0===Wo&&ru(Jt)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(e=[e,o],t=e):(zo=t,t=r)):(zo=t,t=r),t}function Ni(){let t,e,o,u;return t=zo,e=n.substr(zo,5),e.toLowerCase()===b?zo+=5:(e=r,0===Wo&&ru(Qt)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(e=[e,o],t=e):(zo=t,t=r)):(zo=t,t=r),t}function Ri(){let t,e,o,u;return t=zo,e=n.substr(zo,2),e.toLowerCase()===L?zo+=2:(e=r,0===Wo&&ru(tn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Kr()):(zo=t,t=r)):(zo=t,t=r),t}function Ii(){let t,e,o,u;return t=zo,e=n.substr(zo,2),e.toLowerCase()===T?zo+=2:(e=r,0===Wo&&ru(nn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Xr()):(zo=t,t=r)):(zo=t,t=r),t}function Oi(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===w?zo+=4:(e=r,0===Wo&&ru(en)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Jr()):(zo=t,t=r)):(zo=t,t=r),t}function Fi(){let t,e,o,u;return t=zo,e=n.substr(zo,6),e.toLowerCase()===x?zo+=6:(e=r,0===Wo&&ru(rn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Qr()):(zo=t,t=r)):(zo=t,t=r),t}function Si(){let t,e,o,u;return t=zo,e=n.substr(zo,3),e.toLowerCase()===N?zo+=3:(e=r,0===Wo&&ru(on)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=to()):(zo=t,t=r)):(zo=t,t=r),t}function Mi(){let t,e,o,u;return t=zo,e=n.substr(zo,3),e.toLowerCase()===R?zo+=3:(e=r,0===Wo&&ru(un)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=no()):(zo=t,t=r)):(zo=t,t=r),t}function $i(){let t,e,o,u;return t=zo,e=n.substr(zo,2),e.toLowerCase()===I?zo+=2:(e=r,0===Wo&&ru(cn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=eo()):(zo=t,t=r)):(zo=t,t=r),t}function Ui(){let t,e,o,u;return t=zo,e=n.substr(zo,7),e.toLowerCase()===O?zo+=7:(e=r,0===Wo&&ru(ln)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=ro()):(zo=t,t=r)):(zo=t,t=r),t}function _i(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===F?zo+=4:(e=r,0===Wo&&ru(an)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=oo()):(zo=t,t=r)):(zo=t,t=r),t}function Di(){let t,e,o,u;return t=zo,e=n.substr(zo,3),e.toLowerCase()===S?zo+=3:(e=r,0===Wo&&ru(sn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=uo()):(zo=t,t=r)):(zo=t,t=r),t}function Hi(){let t,e,o,u;return t=zo,e=n.substr(zo,9),e.toLowerCase()===M?zo+=9:(e=r,0===Wo&&ru(fn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=io()):(zo=t,t=r)):(zo=t,t=r),t}function Pi(){let t,e,o,u;return t=zo,e=n.substr(zo,7),e.toLowerCase()===$?zo+=7:(e=r,0===Wo&&ru(pn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=co()):(zo=t,t=r)):(zo=t,t=r),t}function Zi(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===U?zo+=4:(e=r,0===Wo&&ru(dn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=lo()):(zo=t,t=r)):(zo=t,t=r),t}function ji(){let t,e,o,u;return t=zo,e=n.substr(zo,8),e.toLowerCase()===_?zo+=8:(e=r,0===Wo&&ru(vn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=ao()):(zo=t,t=r)):(zo=t,t=r),t}function zi(){let t,e,o,u;return t=zo,e=n.substr(zo,9),e.toLowerCase()===D?zo+=9:(e=r,0===Wo&&ru(yn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=so()):(zo=t,t=r)):(zo=t,t=r),t}function ki(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===H?zo+=4:(e=r,0===Wo&&ru(hn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=fo()):(zo=t,t=r)):(zo=t,t=r),t}function Gi(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===P?zo+=4:(e=r,0===Wo&&ru(gn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=po()):(zo=t,t=r)):(zo=t,t=r),t}function Bi(){let t,e,o,u;return t=zo,e=n.substr(zo,7),e.toLowerCase()===Z?zo+=7:(e=r,0===Wo&&ru(En)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=vo()):(zo=t,t=r)):(zo=t,t=r),t}function qi(){let t,e,o,u;return t=zo,e=n.substr(zo,8),e.toLowerCase()===j?zo+=8:(e=r,0===Wo&&ru(mn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=yo()):(zo=t,t=r)):(zo=t,t=r),t}function Vi(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===z?zo+=4:(e=r,0===Wo&&ru(An)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=ho()):(zo=t,t=r)):(zo=t,t=r),t}function Wi(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===k?zo+=4:(e=r,0===Wo&&ru(Cn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=go()):(zo=t,t=r)):(zo=t,t=r),t}function Yi(){let t,e,o,u;return t=zo,e=n.substr(zo,2),e.toLowerCase()===G?zo+=2:(e=r,0===Wo&&ru(bn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Eo()):(zo=t,t=r)):(zo=t,t=r),t}function Ki(){let t,e,o,u;return t=zo,e=n.substr(zo,7),e.toLowerCase()===B?zo+=7:(e=r,0===Wo&&ru(Ln)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=mo()):(zo=t,t=r)):(zo=t,t=r),t}function Xi(){let t,e,o,u;return t=zo,e=n.substr(zo,3),e.toLowerCase()===q?zo+=3:(e=r,0===Wo&&ru(Tn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Ao()):(zo=t,t=r)):(zo=t,t=r),t}function Ji(){let t,e,o,u;return t=zo,e=n.substr(zo,8),e.toLowerCase()===V?zo+=8:(e=r,0===Wo&&ru(wn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Co()):(zo=t,t=r)):(zo=t,t=r),t}function Qi(){let t,e,o,u;return t=zo,e=n.substr(zo,5),e.toLowerCase()===W?zo+=5:(e=r,0===Wo&&ru(xn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=bo()):(zo=t,t=r)):(zo=t,t=r),t}function tc(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===Y?zo+=4:(e=r,0===Wo&&ru(Nn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Lo()):(zo=t,t=r)):(zo=t,t=r),t}function nc(){let t,e,o,u;return t=zo,e=n.substr(zo,7),e.toLowerCase()===K?zo+=7:(e=r,0===Wo&&ru(Rn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=To()):(zo=t,t=r)):(zo=t,t=r),t}function ec(){let t,e,o,u;return t=zo,e=n.substr(zo,2),e.toLowerCase()===X?zo+=2:(e=r,0===Wo&&ru(In)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=wo()):(zo=t,t=r)):(zo=t,t=r),t}function rc(){let t,e,o,u;return t=zo,e=n.substr(zo,8),e.toLowerCase()===J?zo+=8:(e=r,0===Wo&&ru(On)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=xo()):(zo=t,t=r)):(zo=t,t=r),t}function oc(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===Q?zo+=4:(e=r,0===Wo&&ru(Fn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=No()):(zo=t,t=r)):(zo=t,t=r),t}function uc(){let t,e,o,u;return t=zo,e=n.substr(zo,13),e.toLowerCase()===tt?zo+=13:(e=r,0===Wo&&ru(Sn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Ro()):(zo=t,t=r)):(zo=t,t=r),t}function ic(){let t,e,o,u;return t=zo,e=n.substr(zo,15),e.toLowerCase()===nt?zo+=15:(e=r,0===Wo&&ru(Mn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Io()):(zo=t,t=r)):(zo=t,t=r),t}function cc(){let t,e,o,u;return t=zo,e=n.substr(zo,5),e.toLowerCase()===et?zo+=5:(e=r,0===Wo&&ru($n)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Oo()):(zo=t,t=r)):(zo=t,t=r),t}function lc(){let t,e,o,u;return t=zo,e=n.substr(zo,3),e.toLowerCase()===rt?zo+=3:(e=r,0===Wo&&ru(Un)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Fo()):(zo=t,t=r)):(zo=t,t=r),t}function ac(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===ot?zo+=4:(e=r,0===Wo&&ru(_n)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=So()):(zo=t,t=r)):(zo=t,t=r),t}function sc(){let t,e,o,u;return t=zo,e=n.substr(zo,6),e.toLowerCase()===ut?zo+=6:(e=r,0===Wo&&ru(Dn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Mo()):(zo=t,t=r)):(zo=t,t=r),t}function fc(){let t,e,o,u;return t=zo,e=n.substr(zo,6),e.toLowerCase()===it?zo+=6:(e=r,0===Wo&&ru(Hn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=$o()):(zo=t,t=r)):(zo=t,t=r),t}function pc(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===ct?zo+=4:(e=r,0===Wo&&ru(Pn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Uo()):(zo=t,t=r)):(zo=t,t=r),t}function dc(){let t,e,o,u;return t=zo,e=n.substr(zo,3),e.toLowerCase()===lt?zo+=3:(e=r,0===Wo&&ru(Zn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=_o()):(zo=t,t=r)):(zo=t,t=r),t}function vc(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===at?zo+=4:(e=r,0===Wo&&ru(jn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Do()):(zo=t,t=r)):(zo=t,t=r),t}function yc(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===st?zo+=4:(e=r,0===Wo&&ru(zn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Ho()):(zo=t,t=r)):(zo=t,t=r),t}function hc(){let t,e,o,u;return t=zo,e=n.substr(zo,4),e.toLowerCase()===ft?zo+=4:(e=r,0===Wo&&ru(kn)),e!==r?(o=zo,Wo++,u=Fu(),Wo--,u===r?o=void 0:(zo=o,o=r),o!==r?(ko=t,t=Po()):(zo=t,t=r)):(zo=t,t=r),t}function gc(){let t;return 44===n.charCodeAt(zo)?(t=pt,zo++):(t=r,0===Wo&&ru(Gn)),t}function Ec(){let t;return 40===n.charCodeAt(zo)?(t=dt,zo++):(t=r,0===Wo&&ru(Bn)),t}function mc(){let t;return 41===n.charCodeAt(zo)?(t=vt,zo++):(t=r,0===Wo&&ru(qn)),t}function Ac(){let t,n;for(t=[],n=Cc();n!==r;)t.push(n),n=Cc();return t}function Cc(){let t;return t=n.charAt(zo),xt.test(t)?zo++:(t=r,0===Wo&&ru(Vn)),t}function bc(){let t,e,o,u;if(t=zo,e=Iu(),e!==r&&(ko=t,e=Zo(e)),t=e,t===r)if(t=zo,96===n.charCodeAt(zo)?(e=yt,zo++):(e=r,0===Wo&&ru(Wn)),e!==r){if(o=[],u=n.charAt(zo),Nt.test(u)?zo++:(u=r,0===Wo&&ru(Yn)),u!==r)for(;u!==r;)o.push(u),u=n.charAt(zo),Nt.test(u)?zo++:(u=r,0===Wo&&ru(Yn));else o=r;o!==r?(96===n.charCodeAt(zo)?(u=yt,zo++):(u=r,0===Wo&&ru(Wn)),u!==r?(ko=t,t=jo(o)):(zo=t,t=r)):(zo=t,t=r)}else zo=t,t=r;return t}function Lc(t,n,e){return{type:"unary-expression",location:e,operator:t,expr:n}}function Tc(t,n,e,r,o){const u={type:"binary-expression",location:o,operator:t,left:n,right:e};return void 0!==r&&(u.escape=r),u}function wc(t,...n){return{type:"expression-list",location:t,value:n}}function xc(t,n){let e=t;for(const{op:r,expr:o,location:{end:u}}of n)e=Tc(r,e,o,void 0,{...e.location,end:u});return e}function Nc(t){!0!==/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(t)&&Ko("Timestamp literal is invalid")}function Rc(t){!0!==/^(\d{1,2}):(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/.test(t)&&Ko("Time literal is invalid")}function Ic(t){!0!==/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(t)&&Ko("Date literal is invalid")}Bo=i();const Oc=Bo!==r&&zo===n.length;function Fc(){throw Bo!==r&&zo<n.length&&ru(tu()),uu(Vo,qo<n.length?Xo(qo):null,qo<n.length?eu(qo,qo+1):eu(qo,qo))}return e.peg$library?{peg$result:Bo,peg$currPos:zo,peg$FAILED:r,peg$maxFailExpected:Vo,peg$maxFailPos:qo,peg$success:Oc,peg$throw:Oc?void 0:Fc}:Oc?Bo:void Fc()}class e{static parse(t){return n(t)}}function r(t,n){if(null!=t)switch(n(t),t.type){case"when-clause":r(t.operand,n),r(t.value,n);break;case"case-expression":for(const e of t.clauses)r(e,n);"simple"===t.format&&r(t.operand,n),null!==t.else&&r(t.else,n);break;case"expression-list":for(const e of t.value)r(e,n);break;case"unary-expression":r(t.expr,n);break;case"binary-expression":r(t.left,n),r(t.right,n);break;case"function":r(t.args,n);break;case"interval":r(t.value,n),r(t.qualifier,n);break;case"interval-qualifier":r(t.start,n),r(t.end,n)}}export{e as WhereGrammar,r as visitAll};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{getAssetUrl as e}from"../../assets.js";import r from"../../config.js";import"../../intl.js";import{fullVersion as t}from"../../kernel.js";import has from"../has.js";import o from"../Logger.js";import{makeAbsolute as s}from"../urlUtils.js";import{loaderConfig as n}from"./loaderConfig.js";import{receiveMessage as a,MessageType as i}from"./utils.js";import l from"./WorkerFallback.js";import{getLocale as f}from"../../intl/locale.js";import{buildDate as u,commitHash as c}from"../../support/revision.js";const d=()=>o.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:m}=i,p='let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;let s=null;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})})).finally((()=>{t&&t.removeEventListener("abort",s)}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});';let g,h;const k="Failed to create Worker. Fallback to execute module in main thread";async function y(){if(!has("esri-workers"))return w(new l);if(!g&&!h)try{const e=p.split("{CONFIGURATION}").join(b());g=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(r){h=r||{}}let e;if(g)try{e=new Worker(g,{name:"esri-worker-"+v++})}catch(r){d().warn(k,h),e=new l}else d().warn(k,h),e=new l;return w(e)}async function w(e){return new Promise((r=>{function t(s){const n=a(s);n&&n.type===m&&(e.removeEventListener("message",t),e.removeEventListener("error",o),r(e))}function o(r){r.preventDefault(),e.removeEventListener("message",t),e.removeEventListener("error",o),d().warn("Failed to create Worker. Fallback to execute module in main thread",r),(e=new l).addEventListener("message",t),e.addEventListener("error",o)}e.addEventListener("message",t),e.addEventListener("error",o)}))}function b(){let o;if(null!=r.default){const e={...r};delete e.default,o=JSON.parse(JSON.stringify(e))}else o=JSON.parse(JSON.stringify(r));o.assetsPath=s(o.assetsPath),o.defaultAssetsPath=o.defaultAssetsPath?s(o.defaultAssetsPath):void 0,o.request.interceptors=[],o.log.interceptors=[],o.locale=f(),o.has={"esri-csp-restrictions":has("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":has("esri-2d-update-debug"),"esri-2d-log-updating":has("esri-2d-log-updating"),"featurelayer-pbf":has("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":has("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":has("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":has("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":has("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":has("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":has("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":has("featurelayer-snapshot-enabled"),"esri-atomics":has("esri-atomics"),"esri-shared-array-buffer":has("esri-shared-array-buffer"),"esri-tiles-debug":has("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":has("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":has("feature-polyline-generalization-factor"),"host-webworker":1},o.workers.loaderUrl&&(o.workers.loaderUrl=s(o.workers.loaderUrl)),o.workers.workerPath?o.workers.workerPath=s(o.workers.workerPath):o.workers.workerPath=s(e("esri/core/workers/RemoteClient.js")),o.workers.useDynamicImport=!1;const a=r.workers.loaderConfig,i=n({baseUrl:a?.baseUrl,locale:f(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...a?.has},map:{...a?.map},paths:{...a?.paths},packages:a?.packages||[]}),l={buildDate:u,fullVersion:t,revision:c};return JSON.stringify({esriConfig:o,loaderConfig:i,kernelInfo:l})}let v=0;export{y as createWorker};
5
+ import{getAssetUrl as e}from"../../assets.js";import r from"../../config.js";import"../../intl.js";import{fullVersion as t}from"../../kernel.js";import has from"../has.js";import o from"../Logger.js";import{makeAbsolute as s}from"../urlUtils.js";import{loaderConfig as a}from"./loaderConfig.js";import{receiveMessage as n,MessageType as i}from"./utils.js";import l from"./WorkerFallback.js";import{getLocale as f}from"../../intl/locale.js";import{buildDate as u,commitHash as c}from"../../support/revision.js";const d=()=>o.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:m}=i,p='let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;let s=null;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})})).finally((()=>{t&&t.removeEventListener("abort",s)}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});';let g,y;const h="Failed to create Worker. Fallback to execute module in main thread";async function k(){if(!has("esri-workers"))return w(new l);if(!g&&!y)try{const e=p.split("{CONFIGURATION}").join(b());g=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(r){y=r||{}}let e;if(g)try{e=new Worker(g,{name:"esri-worker-"+v++})}catch(r){d().warn(h,y),e=new l}else d().warn(h,y),e=new l;return w(e)}async function w(e){return new Promise((r=>{function t(s){const a=n(s);a&&a.type===m&&(e.removeEventListener("message",t),e.removeEventListener("error",o),r(e))}function o(r){r.preventDefault(),e.removeEventListener("message",t),e.removeEventListener("error",o),d().warn("Failed to create Worker. Fallback to execute module in main thread",r),(e=new l).addEventListener("message",t),e.addEventListener("error",o)}e.addEventListener("message",t),e.addEventListener("error",o)}))}function b(){let o;if(null!=r.default){const e={...r};delete e.default,o=JSON.parse(JSON.stringify(e))}else o=JSON.parse(JSON.stringify(r));o.assetsPath=s(o.assetsPath),o.defaultAssetsPath=o.defaultAssetsPath?s(o.defaultAssetsPath):void 0,o.request.interceptors=[],o.log.interceptors=[],o.locale=f(),o.has={"esri-csp-restrictions":has("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":has("esri-2d-update-debug"),"esri-2d-log-updating":has("esri-2d-log-updating"),"featurelayer-pbf":has("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":has("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":has("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":has("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":has("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":has("featurelayer-query-max-depth"),"featurelayer-query-tile-max-features":has("featurelayer-query-tile-max-features"),"featurelayer-query-tile-concurrency":has("featurelayer-query-tile-concurrency"),"featurelayer-query-pausing-enabled":has("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-concurrency":has("featurelayer-snapshot-concurrency"),"featurelayer-snapshot-enabled":has("featurelayer-snapshot-enabled"),"esri-atomics":has("esri-atomics"),"esri-shared-array-buffer":has("esri-shared-array-buffer"),"esri-tiles-debug":has("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":has("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":has("feature-polyline-generalization-factor"),"host-webworker":1},o.workers.loaderUrl&&(o.workers.loaderUrl=s(o.workers.loaderUrl)),o.workers.workerPath?o.workers.workerPath=s(o.workers.workerPath):o.workers.workerPath=s(e("esri/core/workers/RemoteClient.js")),o.workers.useDynamicImport=!1;const n=r.workers.loaderConfig,i=a({baseUrl:n?.baseUrl,locale:f(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...n?.has},map:{...n?.map},paths:{...n?.paths},packages:n?.packages||[]}),l={buildDate:u,fullVersion:t,revision:c};return JSON.stringify({esriConfig:o,loaderConfig:i,kernelInfo:l})}let v=0;export{k as createWorker};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../chunks/tslib.es6.js";import t from"../../request.js";import r from"../../core/Accessor.js";import{makeHandle as o}from"../../core/handleUtils.js";import{getOrCreateMapValue as s}from"../../core/MapUtils.js";import{abortMaybe as i}from"../../core/maybe.js";import{onAbort as a,throwIfAborted as l,createAbortError as n,throwIfAbortError as c,createResolver as p}from"../../core/promiseUtils.js";import{watch as u}from"../../core/reactiveUtils.js";import{property as d}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as f}from"../../core/accessorSupport/decorators/subclass.js";import{isSharedGroupTemplate as m,isSharedPresetTemplate as h,isSharedFeatureTemplate as y}from"../templateUtils.js";import{SharedTemplateMissingTemplatesError as w,SharedTemplateLayerResolverError as v,SharedTemplateUtilityNetworkResolverError as k,SharedTemplateRequestError as g,SharedTemplateLayerUnavailableError as S}from"./support/sharedTemplateErrors.js";import{isFeatureLayer as _,isSubtypeGroupLayer as b}from"../../layers/support/layerUtils.js";import{getServices as j}from"../../undoredo/support/Services.js";import{isWebMap as N}from"../../webmap/utils.js";const R=new Map;function T(e,t){return s(R,e,(()=>{const r=new C({layerResolver:t?.layerResolver??A(e),makeSharedTemplateFromJSON:t.makeSharedTemplateFromJSON,utilityNetworkResolver:t?.utilityNetworkResolver??F(e),view:e});return e.addHandles(o((()=>{R.delete(e),r.destroy()}))),r}))}let C=class extends r{constructor(e){super(e),this._abortController=null,this._cache=new Map,this._pending=new Map,this._utilityNetworkLookupHelperCache=new Map,this.layerResolver=null,this.makeSharedTemplateFromJSON=null,this.utilityNetworkResolver=null,this.view=null}initialize(){this.addHandles(u((()=>this.view.spatialReference),(()=>this._reset())))}destroy(){this._abortController=i(this._abortController)}async getTemplates({templateIds:e,featureService:t,signal:r}){const o=this._cache,s=this._pending,i=[],n=new Set,c=new Set,p=Symbol();for(const a of new Set(e)){const e=U(t,a);if(o.has(e))i.push(o.get(e));else if(s.has(e)){const t=s.get(e);t.subscribers.add(p),c.add(t)}else n.add(a),s.set(e,L())}if(i.length===e.length)return i;const u=()=>{for(const{subscribers:e}of c)e.delete(p)},d=a(r,u);try{const e=await this._loadTemplates({templateIds:Array.from(n),featureService:t,signal:r}),o=await Promise.all(Array.from(c).map((({resolver:e})=>e.promise)));i.push(...e),i.push(...o)}catch(f){u();for(const e of n){const r=U(t,e),o=s.get(r);o?.resolver.reject(f),s.delete(r)}throw f}finally{d?.remove()}return l(r),i}async _loadTemplates({templateIds:e,featureService:t,signal:r}){if(0===e.length)return[];const o=this._cache,s=this._pending,i=this._abortController=new AbortController,l=a(r,(()=>{for(const r of e){if(H(s.get(U(t,r))))return}i.abort()})),c=await I({featureService:t,templateIds:e,signal:i.signal,spatialReference:this.view.spatialReference});if(c.length<e.length)throw new w(e,c);const p=await Promise.all(c.map((e=>this._makeTemplate({json:e,featureService:t}))));for(const a of p){const e=U(t,a.templateId),i=s.get(e);!r?.aborted||H(i)?(o.set(e,a),i?.resolver.resolve(a)):i?.resolver.reject(n()),s.delete(e)}return l?.remove(),p}async _makeTemplate({json:e,featureService:t}){const{view:r}=this,o=this.makeSharedTemplateFromJSON(e);o.featureService=t,o.view=r;const{layerIds:s,subtypeCode:i}=o;try{o.layer=await this.layerResolver({featureService:t,layerIds:s,subtypeCode:i})}catch(a){throw new v(o.templateId,a)}if(m(o)&&o.definition?.createUtilityNetworkAssociations){let e=null;try{e=await this.utilityNetworkResolver(t)}catch(a){throw new k(o.templateId,a)}if(e){o.definition.utilityNetwork=await this._getOrCreateUtilityNetworkLookupHelper(e);const t=await e.loadAssociationsTable();o.definition.utilityNetworkAssociationsTable=t,j(r).additionalLayers.add(t)}}if(h(o)&&o.definition){o.definition.spatialReference=r.spatialReference;for(const e of o.definition.allParts)e.geometry&&(e.geometry.spatialReference=r.spatialReference)}if(y(o)&&o.definition?.defaultValues){const e=o.definition.defaultValues,t={},{fieldsIndex:r}=o.layer;for(const s in o.definition.defaultValues)t[r.get(s)?.name??s]=e[s];o.definition.defaultValues=t}return o}async _getOrCreateUtilityNetworkLookupHelper(e){const t=this._utilityNetworkLookupHelperCache.get(e);if(t)return t;const{UtilityNetworkLookupHelper:r}=await import("../../networks/support/UtilityNetworkLookupHelper.js"),s=await new r({utilityNetwork:e}).load();this._utilityNetworkLookupHelperCache.set(e,s);const i=o((()=>{s.destroy(),this._utilityNetworkLookupHelperCache.delete(e)}));return e.addHandles(i),this.addHandles(i),s}_reset(){this._abortController?.abort(),this._cache.clear(),this._pending.clear()}};async function I({templateIds:e,featureService:r,spatialReference:o,signal:s}){const i=`${r.url}/sharedTemplates/templates`,a=await t(i,{query:{f:"json",outSR:o,ids:e.join(",")},signal:s}).catch((t=>{throw c(t),new g(e,t)}));return a.data?.templates??[]}function H(e){return null!=e&&e.subscribers.size>0}function L(){return{resolver:p(),subscribers:new Set}}function U(e,t){return`${e.url}/${t}`}function O(e){return _(e)||b(e)}function A(e){return async({featureService:t,layerIds:r})=>{const o=new Set(r),{allLayers:s,allTables:i}=e.map,a=s.concat(i).find((e=>e.url===t.url&&O(e)&&o.has(e.layerId)));if(null==a)throw new S(r);return a}}function F(e){return async t=>{const{map:r}=e;if(!N(r)||!r.utilityNetworks)return null;for(const e of r.utilityNetworks)if(e.featureServiceUrl===t.url)return e.load();return null}}e([d()],C.prototype,"_abortController",void 0),e([d()],C.prototype,"_cache",void 0),e([d()],C.prototype,"_pending",void 0),e([d({constructOnly:!0})],C.prototype,"layerResolver",void 0),e([d({constructOnly:!0})],C.prototype,"makeSharedTemplateFromJSON",void 0),e([d({constructOnly:!0})],C.prototype,"utilityNetworkResolver",void 0),e([d({constructOnly:!0})],C.prototype,"view",void 0),C=e([f("esri.editing.sharedTemplates.SharedTemplateProvider")],C);export{C as SharedTemplateProvider,T as getSharedTemplateProvider};
5
+ import{_ as e}from"../../chunks/tslib.es6.js";import t from"../../request.js";import r from"../../core/Accessor.js";import{makeHandle as o}from"../../core/handleUtils.js";import{getOrCreateMapValue as s}from"../../core/MapUtils.js";import{abortMaybe as i}from"../../core/maybe.js";import{onAbort as a,throwIfAborted as l,createAbortError as n,throwIfAbortError as c,createResolver as p}from"../../core/promiseUtils.js";import{watch as u}from"../../core/reactiveUtils.js";import{property as d}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as f}from"../../core/accessorSupport/decorators/subclass.js";import{isSharedGroupTemplate as m,isSharedPresetTemplate as h,isSharedFeatureTemplate as y}from"../templateUtils.js";import{SharedTemplateMissingTemplatesError as w,SharedTemplateLayerResolverError as v,SharedTemplateUtilityNetworkResolverError as k,SharedTemplateRequestError as g,SharedTemplateLayerUnavailableError as S}from"./support/sharedTemplateErrors.js";import{isFeatureLayer as _,isSubtypeGroupLayer as b}from"../../layers/support/layerUtils.js";import{getServices as j}from"../../undoredo/support/Services.js";import{isWebMap as N}from"../../webmap/utils.js";const R=new Map;function T(e,t){return s(R,e,(()=>{const r=new C({layerResolver:t?.layerResolver??A(e),makeSharedTemplateFromJSON:t.makeSharedTemplateFromJSON,utilityNetworkResolver:t?.utilityNetworkResolver??F(e),view:e});return e.addHandles(o((()=>{R.delete(e),r.destroy()}))),r}))}let C=class extends r{constructor(e){super(e),this._abortController=null,this._cache=new Map,this._pending=new Map,this._utilityNetworkLookupHelperCache=new Map,this.layerResolver=null,this.makeSharedTemplateFromJSON=null,this.utilityNetworkResolver=null,this.view=null}initialize(){this.addHandles(u((()=>this.view.spatialReference),(()=>this._reset())))}destroy(){this._abortController=i(this._abortController)}async getTemplates({templateIds:e,featureService:t,signal:r}){const o=this._cache,s=this._pending,i=[],n=new Set,c=new Set,p=Symbol();for(const a of new Set(e)){const e=U(t,a);if(o.has(e))i.push(o.get(e));else if(s.has(e)){const t=s.get(e);t.subscribers.add(p),c.add(t)}else n.add(a),s.set(e,L())}if(i.length===e.length)return i;const u=()=>{for(const{subscribers:e}of c)e.delete(p)},d=a(r,u);try{const e=await this._loadTemplates({templateIds:Array.from(n),featureService:t,signal:r}),o=await Promise.all(Array.from(c).map((({resolver:e})=>e.promise)));i.push(...e),i.push(...o)}catch(f){u();for(const e of n){const r=U(t,e),o=s.get(r);o?.resolver.reject(f),s.delete(r)}throw f}finally{d?.remove()}return l(r),i}async _loadTemplates({templateIds:e,featureService:t,signal:r}){if(0===e.length)return[];const o=this._cache,s=this._pending,i=this._abortController=new AbortController,l=a(r,(()=>{for(const r of e){if(H(s.get(U(t,r))))return}i.abort()})),c=await I({featureService:t,templateIds:e,signal:i.signal,spatialReference:this.view.spatialReference});if(c.length<e.length)throw new w(e,c);const p=await Promise.all(c.map((e=>this._makeTemplate({json:e,featureService:t}))));for(const a of p){const e=U(t,a.templateId),i=s.get(e);!r?.aborted||H(i)?(o.set(e,a),i?.resolver.resolve(a)):i?.resolver.reject(n()),s.delete(e)}return l?.remove(),p}async _makeTemplate({json:e,featureService:t}){const{view:r}=this,o=this.makeSharedTemplateFromJSON(e);o.featureService=t,o.view=r;const{layerIds:s,subtypeCode:i}=o;try{o.layer=await this.layerResolver({featureService:t,layerIds:s,subtypeCode:i})}catch(a){throw new v(o.templateId,a)}if(m(o)&&o.definition?.createUtilityNetworkAssociations){let e=null;try{e=await this.utilityNetworkResolver(t)}catch(a){throw new k(o.templateId,a)}if(e){o.definition.utilityNetwork=await this._getOrCreateUtilityNetworkLookupHelper(e);const t=await e.loadAssociationsTable();o.definition.utilityNetworkAssociationsTable=t,j(r).additionalLayers.add(t)}}if(h(o)&&o.definition){o.definition.spatialReference=r.spatialReference;for(const e of o.definition.allParts)e.geometry&&(e.geometry.spatialReference=r.spatialReference)}if(y(o)&&o.definition?.defaultValues){const e=o.definition.defaultValues,t={},{fieldsIndex:r}=o.layer;for(const s in o.definition.defaultValues)t[r.get(s)?.name??s]=e[s];o.definition.defaultValues=t}return o}async _getOrCreateUtilityNetworkLookupHelper(e){const t=this._utilityNetworkLookupHelperCache.get(e);if(t)return t;const{UtilityNetworkLookupHelper:r}=await import("../../networks/support/UtilityNetworkLookupHelper.js"),s=await new r({utilityNetwork:e}).load();this._utilityNetworkLookupHelperCache.set(e,s);const i=o((()=>{s.destroy(),this._utilityNetworkLookupHelperCache.delete(e)}));return e.addHandles(i),this.addHandles(i),s}_reset(){this._abortController?.abort(),this._cache.clear(),this._pending.clear()}};async function I({templateIds:e,featureService:r,spatialReference:o,signal:s}){const i=`${r.url}/sharedTemplates/templates`,a=await t(i,{query:{f:"json",outSR:o,ids:e.join(",")},signal:s}).catch((t=>{throw c(t),new g(e,t)}));return a.data?.templates??[]}function H(e){return null!=e&&e.subscribers.size>0}function L(){return{resolver:p(),subscribers:new Set}}function U(e,t){return`${e.url}/${t}`}function O(e){return _(e)||b(e)}function A(e){return async({featureService:t,layerIds:r})=>{if(!e.map)throw new S(r);const o=new Set(r),{allLayers:s,allTables:i}=e.map,a=s.concat(i).find((e=>e.url===t.url&&O(e)&&o.has(e.layerId)));if(null==a)throw new S(r);return a}}function F(e){return async t=>{const{map:r}=e;if(!N(r)||!r.utilityNetworks)return null;for(const e of r.utilityNetworks)if(e.featureServiceUrl===t.url)return e.load();return null}}e([d()],C.prototype,"_abortController",void 0),e([d()],C.prototype,"_cache",void 0),e([d()],C.prototype,"_pending",void 0),e([d({constructOnly:!0})],C.prototype,"layerResolver",void 0),e([d({constructOnly:!0})],C.prototype,"makeSharedTemplateFromJSON",void 0),e([d({constructOnly:!0})],C.prototype,"utilityNetworkResolver",void 0),e([d({constructOnly:!0})],C.prototype,"view",void 0),C=e([f("esri.editing.sharedTemplates.SharedTemplateProvider")],C);export{C as SharedTemplateProvider,T as getSharedTemplateProvider};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import"../../core/has.js";import{clamp as n}from"../../core/mathUtils.js";import t from"../Extent.js";function r(n){return n}function u(n=O){return r([n[0],n[1],n[2],n[3]])}function i(n){return r([n[0],n[1],n[2],n[3]])}function e(n,t){return n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]),n}function a(n,t,r,i,e=u()){return e[0]=n,e[1]=t,e[2]=r,e[3]=i,e}function o(n,t=u()){return t[0]=n.xmin,t[1]=n.ymin,t[2]=n.xmax,t[3]=n.ymax,t}function c(n,r,u=new t){return u.xmin=n[0],u.ymin=n[1],u.xmax=n[2],u.ymax=n[3],u.spatialReference=r,u}function f(n,t){t[0]<n[0]&&(n[0]=t[0]),t[0]>n[2]&&(n[2]=t[0]),t[1]<n[1]&&(n[1]=t[1]),t[1]>n[3]&&(n[3]=t[1])}function m(n,t,r){if(null!=t)if("length"in t)I(t)?(r[0]=Math.min(n[0],t[0]),r[1]=Math.min(n[1],t[1]),r[2]=Math.max(n[2],t[2]),r[3]=Math.max(n[3],t[3])):2!==t.length&&3!==t.length||(r[0]=Math.min(n[0],t[0]),r[1]=Math.min(n[1],t[1]),r[2]=Math.max(n[2],t[0]),r[3]=Math.max(n[3],t[1]));else switch(t.type){case"extent":r[0]=Math.min(n[0],t.xmin),r[1]=Math.min(n[1],t.ymin),r[2]=Math.max(n[2],t.xmax),r[3]=Math.max(n[3],t.ymax);break;case"point":r[0]=Math.min(n[0],t.x),r[1]=Math.min(n[1],t.y),r[2]=Math.max(n[2],t.x),r[3]=Math.max(n[3],t.y)}else e(r,n)}function h(n,t,r=n){const u=t.length;let i=n[0],e=n[1],a=n[2],o=n[3];for(let c=0;c<u;c++){const n=t[c];i=Math.min(i,n[0]),e=Math.min(e,n[1]),a=Math.max(a,n[0]),o=Math.max(o,n[1])}return r[0]=i,r[1]=e,r[2]=a,r[3]=o,r}function x(n){for(let t=0;t<4;t++)if(!isFinite(n[t]))return!1;return!0}function M(n){return null==n||n[0]>=n[2]?0:n[2]-n[0]}function s(n){return null==n||n[1]>=n[3]?0:n[3]-n[1]}function l(n){return M(n)*s(n)}function y(n){return M(n)>0&&s(n)>0}function p(n,t=[0,0]){return t[0]=(n[0]+n[2])/2,t[1]=(n[1]+n[3])/2,t}function b(n){const t=M(n),r=s(n);return Math.sqrt(t*t+r*r)}function g(n,t){return w(n,t[0],t[1])}function j(n,t){const r=t[3],u=.5*(n[0]+n[2]),i=Math.abs(t[0]-u),e=.5*(n[2]-n[0]);if(i>r+e)return!1;const a=.5*(n[1]+n[3]),o=.5*(n[3]-n[1]),c=Math.abs(t[1]-a);if(c>r+o)return!1;if(i<e||c<o)return!0;const f=i-e,m=c-o;return f*f+m*m<=r*r}function F(n,t,r){const u=n[0],i=n[1],e=n[2],a=n[3],{x:o,y:c}=t,{x:f,y:m}=r,h=(n,t)=>(m-c)*n+(o-f)*t+(f*c-o*m)<0,x=h(u,a),M=h(e,a),s=h(e,i),l=h(u,i);return!(x===M&&M===s&&s===l&&l===x||o<u&&f<u||o>e&&f>e||c>a&&m>a||c<i&&m<i)}function q(n,t){return w(n,t.x,t.y)}function w(n,t,r){return t>=n[0]&&r>=n[1]&&t<=n[2]&&r<=n[3]}function k(n,t,r,u){return t>=n[0]-u&&r>=n[1]-u&&t<=n[2]+u&&r<=n[3]+u}function E(n,t,r){return t[0]>=n[0]-r&&t[1]>=n[1]-r&&t[0]<=n[2]+r&&t[1]<=n[3]+r}function R(n,t){return Math.max(t[0],n[0])<=Math.min(t[2],n[2])&&Math.max(t[1],n[1])<=Math.min(t[3],n[3])}function U(n,t,r){return Math.max(t[0],n[0])-r<=Math.min(t[2],n[2])&&Math.max(t[1],n[1])-r<=Math.min(t[3],n[3])}function d(n,t){return t[0]>=n[0]&&t[2]<=n[2]&&t[1]>=n[1]&&t[3]<=n[3]}function v(t,r,u){if(null==r)return e(u,t);const i=r[0],a=r[1],o=r[2],c=r[3];return u[0]=n(t[0],i,o),u[1]=n(t[1],a,c),u[2]=n(t[2],i,o),u[3]=n(t[3],a,c),u}function z(n,t){const r=(n[0]+n[2])/2,u=(n[1]+n[3])/2,i=Math.max(Math.abs(t[0]-r)-M(n)/2,0),e=Math.max(Math.abs(t[1]-u)-s(n)/2,0);return Math.sqrt(i*i+e*e)}function A(n,t){t[0]=n[2]-n[0],t[1]=n[3]-n[1]}function B(n,t,r,u=n){return u[0]=n[0]+t,u[1]=n[1]+r,u[2]=n[2]+t,u[3]=n[3]+r,u}function C(n,t,r=n){return r[0]=n[0]-t,r[1]=n[1]-t,r[2]=n[2]+t,r[3]=n[3]+t,r}function D(n,t,r=n){return r[0]=t[0],r[1]=t[1],r!==n&&(r[2]=n[2],r[3]=n[3]),r}function G(n,t,r=n){return r[2]=t[0],r[3]=t[1],r!==n&&(r[0]=n[0],r[1]=n[1]),n}function H(n){return n?e(n,N):u(N)}function I(n){return null!=n&&4===n.length}function J(n){return!(0!==M(n)&&isFinite(n[0])||0!==s(n)&&isFinite(n[1]))}function K(n,t){return I(n)&&I(t)?n[0]===t[0]&&n[1]===t[1]&&n[2]===t[2]&&n[3]===t[3]:n===t}const L=r([-1/0,-1/0,1/0,1/0]),N=r([1/0,1/0,-1/0,-1/0]),O=r([0,0,0,0]),P=r([0,0,1,1]);export{x as allFinite,l as area,p as center,i as clone,d as contains,g as containsPoint,q as containsPointObject,E as containsPointWithMargin,w as containsXY,k as containsXYWithMargin,e as copy,u as create,b as diagonal,z as distance,H as empty,K as equals,m as expand,f as expandPointInPlace,h as expandWithNestedArray,o as fromExtent,a as fromValues,y as hasArea,s as height,v as intersection,R as intersects,F as intersectsSegment,j as intersectsSphere,U as intersectsWithMargin,I as is,J as isPoint,N as negativeInfinity,B as offset,C as pad,L as positiveInfinity,G as setMax,D as setMin,A as size,c as toExtent,P as unit,M as width,O as zero};
5
+ import"../../core/has.js";import{clamp as n}from"../../core/mathUtils.js";import t from"../Extent.js";function r(n){return n}function u(n=P){return r([n[0],n[1],n[2],n[3]])}function i(n){return r([n[0],n[1],n[2],n[3]])}function a(n,t){return n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]),n}function e(n,t,r,i,a=u()){return a[0]=n,a[1]=t,a[2]=r,a[3]=i,a}function o(n,t=u()){return t[0]=n.xmin,t[1]=n.ymin,t[2]=n.xmax,t[3]=n.ymax,t}function c(n,r,u=new t){return u.xmin=n[0],u.ymin=n[1],u.xmax=n[2],u.ymax=n[3],u.spatialReference=r,u}function m(n,t){t[0]<n[0]&&(n[0]=t[0]),t[0]>n[2]&&(n[2]=t[0]),t[1]<n[1]&&(n[1]=t[1]),t[1]>n[3]&&(n[3]=t[1])}function f(n,t,r){if(null!=t)if("length"in t)J(t)?(r[0]=Math.min(n[0],t[0]),r[1]=Math.min(n[1],t[1]),r[2]=Math.max(n[2],t[2]),r[3]=Math.max(n[3],t[3])):2!==t.length&&3!==t.length||(r[0]=Math.min(n[0],t[0]),r[1]=Math.min(n[1],t[1]),r[2]=Math.max(n[2],t[0]),r[3]=Math.max(n[3],t[1]));else switch(t.type){case"extent":r[0]=Math.min(n[0],t.xmin),r[1]=Math.min(n[1],t.ymin),r[2]=Math.max(n[2],t.xmax),r[3]=Math.max(n[3],t.ymax);break;case"point":r[0]=Math.min(n[0],t.x),r[1]=Math.min(n[1],t.y),r[2]=Math.max(n[2],t.x),r[3]=Math.max(n[3],t.y)}else a(r,n)}function h(n,t,r=n){const u=t.length;let i=n[0],a=n[1],e=n[2],o=n[3];for(let c=0;c<u;c++){const n=t[c];i=Math.min(i,n[0]),a=Math.min(a,n[1]),e=Math.max(e,n[0]),o=Math.max(o,n[1])}return r[0]=i,r[1]=a,r[2]=e,r[3]=o,r}function M(n){for(let t=0;t<4;t++)if(!isFinite(n[t]))return!1;return!0}function x(n){return null==n||n[0]>=n[2]?0:n[2]-n[0]}function s(n){return null==n||n[1]>=n[3]?0:n[3]-n[1]}function l(n){return x(n)*s(n)}function y(n){return x(n)>0&&s(n)>0}function p(n,t=[0,0]){return t[0]=(n[0]+n[2])/2,t[1]=(n[1]+n[3])/2,t}function b(n){const t=x(n),r=s(n);return Math.sqrt(t*t+r*r)}function g(n,t){return w(n,t[0],t[1])}function j(n,t){const r=t[3],u=.5*(n[0]+n[2]),i=Math.abs(t[0]-u),a=.5*(n[2]-n[0]);if(i>r+a)return!1;const e=.5*(n[1]+n[3]),o=.5*(n[3]-n[1]),c=Math.abs(t[1]-e);if(c>r+o)return!1;if(i<a||c<o)return!0;const m=i-a,f=c-o;return m*m+f*f<=r*r}function F(n,t,r){const u=n[0],i=n[1],a=n[2],e=n[3],{x:o,y:c}=t,{x:m,y:f}=r,h=(n,t)=>(f-c)*n+(o-m)*t+(m*c-o*f)<0,M=h(u,e),x=h(a,e),s=h(a,i),l=h(u,i);return!(M===x&&x===s&&s===l&&l===M||o<u&&m<u||o>a&&m>a||c>e&&f>e||c<i&&f<i)}function q(n,t){return w(n,t.x,t.y)}function w(n,t,r){return t>=n[0]&&r>=n[1]&&t<=n[2]&&r<=n[3]}function k(n,t,r,u){return t>=n[0]-u&&r>=n[1]-u&&t<=n[2]+u&&r<=n[3]+u}function E(n,t,r){return t[0]>=n[0]-r&&t[1]>=n[1]-r&&t[0]<=n[2]+r&&t[1]<=n[3]+r}function R(n,t){return Math.max(t[0],n[0])<=Math.min(t[2],n[2])&&Math.max(t[1],n[1])<=Math.min(t[3],n[3])}function U(n,t,r){return Math.max(t[0],n[0])-r<=Math.min(t[2],n[2])&&Math.max(t[1],n[1])-r<=Math.min(t[3],n[3])}function d(n,t){return t[0]>=n[0]&&t[2]<=n[2]&&t[1]>=n[1]&&t[3]<=n[3]}function v(n,t,r){return null==t?a(r,n):(r[0]=Math.min(n[0],t[0]),r[1]=Math.min(n[1],t[1]),r[2]=Math.max(n[2],t[2]),r[3]=Math.max(n[3],t[3]),r)}function z(t,r,u){if(null==r)return a(u,t);const i=r[0],e=r[1],o=r[2],c=r[3];return u[0]=n(t[0],i,o),u[1]=n(t[1],e,c),u[2]=n(t[2],i,o),u[3]=n(t[3],e,c),u}function A(n,t){const r=(n[0]+n[2])/2,u=(n[1]+n[3])/2,i=Math.max(Math.abs(t[0]-r)-x(n)/2,0),a=Math.max(Math.abs(t[1]-u)-s(n)/2,0);return Math.sqrt(i*i+a*a)}function B(n,t){t[0]=n[2]-n[0],t[1]=n[3]-n[1]}function C(n,t,r,u=n){return u[0]=n[0]+t,u[1]=n[1]+r,u[2]=n[2]+t,u[3]=n[3]+r,u}function D(n,t,r=n){return r[0]=n[0]-t,r[1]=n[1]-t,r[2]=n[2]+t,r[3]=n[3]+t,r}function G(n,t,r=n){return r[0]=t[0],r[1]=t[1],r!==n&&(r[2]=n[2],r[3]=n[3]),r}function H(n,t,r=n){return r[2]=t[0],r[3]=t[1],r!==n&&(r[0]=n[0],r[1]=n[1]),n}function I(n){return n?a(n,O):u(O)}function J(n){return null!=n&&4===n.length}function K(n){return!(0!==x(n)&&isFinite(n[0])||0!==s(n)&&isFinite(n[1]))}function L(n,t){return J(n)&&J(t)?n[0]===t[0]&&n[1]===t[1]&&n[2]===t[2]&&n[3]===t[3]:n===t}const N=r([-1/0,-1/0,1/0,1/0]),O=r([1/0,1/0,-1/0,-1/0]),P=r([0,0,0,0]),Q=r([0,0,1,1]);export{M as allFinite,l as area,p as center,i as clone,d as contains,g as containsPoint,q as containsPointObject,E as containsPointWithMargin,w as containsXY,k as containsXYWithMargin,a as copy,u as create,b as diagonal,A as distance,I as empty,L as equals,f as expand,m as expandPointInPlace,h as expandWithNestedArray,o as fromExtent,e as fromValues,y as hasArea,s as height,z as intersection,R as intersects,F as intersectsSegment,j as intersectsSphere,U as intersectsWithMargin,J as is,K as isPoint,O as negativeInfinity,C as offset,D as pad,N as positiveInfinity,H as setMax,G as setMin,B as size,c as toExtent,v as union,Q as unit,x as width,P as zero};
package/interfaces.d.ts CHANGED
@@ -1320,6 +1320,27 @@ declare namespace __esri {
1320
1320
  objectIdField?: string | nullish;
1321
1321
  }
1322
1322
 
1323
+ /**
1324
+ * Note: reserved for internal use only, this is not part of the stable public API.
1325
+ *
1326
+ * Analysis utility functions for Web Components.
1327
+ */
1328
+ interface analysisUtils {
1329
+ /**
1330
+ * Note: reserved for internal use only, this is not part of the stable public API.
1331
+ *
1332
+ * Forces the analysis view to be interactive until the returned handle is removed.
1333
+ *
1334
+ * @param analysisView The analysis view whose `interactive` property is to be forced to `true`.
1335
+ */
1336
+ forceInteractive(analysisView: | AreaMeasurementAnalysisView3D
1337
+ | DirectLineMeasurementAnalysisView3D
1338
+ | LineOfSightAnalysisView3D
1339
+ | SliceAnalysisView3D): Handle;
1340
+ }
1341
+
1342
+ export const analysisUtils: analysisUtils;
1343
+
1323
1344
  /**
1324
1345
  * Note: reserved for internal use only, this is not part of the stable public API.
1325
1346
  *
@@ -1797,6 +1818,28 @@ declare namespace __esri {
1797
1818
  getDefaultKnowledgeSublayerLabelingInfos(graphTypeName: string, geometryType: "point" | "multipoint" | "polyline" | "polygon" | nullish, displayLabelProperty: string): LabelClass[] | nullish;
1798
1819
  getDefaultLinkChartSublayerLabelingInfos(graphType: "entity" | "relationship", graphTypeName: string, displayLabelProperty: string): LabelClass[] | nullish;
1799
1820
  newLinkChartLayerWithOptimizedGeometry(properties?: LinkChartLayerConstructProperties): LinkChartLayer;
1821
+ /**
1822
+ * Note: reserved for internal use only, this is not part of the stable public API.
1823
+ *
1824
+ * Returns the entity endpoints for the given relationships.
1825
+ *
1826
+ * @param records Relationships to find the endpoints for.
1827
+ * @param kg The knowledge graph service that contains the relationships.
1828
+ * @param options
1829
+ * @param options.requestOptions Additional options to be used for the data request.
1830
+ */
1831
+ studioGetRelationshipEndNodeIds(records: IdTypePair[], kg: KnowledgeGraph, options?: generalSharedKgUtilsStudioGetRelationshipEndNodeIdsOptions): Promise<IdTypePair[]>;
1832
+ /**
1833
+ * Note: reserved for internal use only, this is not part of the stable public API.
1834
+ *
1835
+ * Returns a map of origin and destination entities for specific relationships.
1836
+ *
1837
+ * @param records The relationships to retrieve the endpoints for.
1838
+ * @param kg The knowledge graph containing the relationships.
1839
+ * @param options
1840
+ * @param options.requestOptions Additional options to be used for the data request.
1841
+ */
1842
+ studioGetRelationshipEndNodeMap(records: IdTypePair[], kg: KnowledgeGraph, options?: generalSharedKgUtilsStudioGetRelationshipEndNodeMapOptions): Promise<globalThis.Map<string, string[]>>;
1800
1843
  }
1801
1844
 
1802
1845
  export const generalSharedKgUtils: generalSharedKgUtils;
@@ -1806,6 +1849,14 @@ declare namespace __esri {
1806
1849
  parseErrors: RecognizerError[] | nullish;
1807
1850
  }
1808
1851
 
1852
+ export interface generalSharedKgUtilsStudioGetRelationshipEndNodeIdsOptions {
1853
+ requestOptions?: RequestOptions;
1854
+ }
1855
+
1856
+ export interface generalSharedKgUtilsStudioGetRelationshipEndNodeMapOptions {
1857
+ requestOptions?: RequestOptions;
1858
+ }
1859
+
1809
1860
  /**
1810
1861
  * Note: reserved for internal use only, this is not part of the stable public API.
1811
1862
  *
@@ -16181,7 +16232,7 @@ declare namespace __esri {
16181
16232
  *
16182
16233
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-catalog-CatalogFootprintLayer.html#queryObjectIds Read more...}
16183
16234
  */
16184
- queryObjectIds(query?: QueryProperties | null, options?: CatalogFootprintLayerQueryObjectIdsOptions): Promise<number[]>;
16235
+ queryObjectIds(query?: QueryProperties | null, options?: CatalogFootprintLayerQueryObjectIdsOptions): Promise<(number | string)[]>;
16185
16236
  }
16186
16237
 
16187
16238
  interface CatalogFootprintLayerProperties extends LayerProperties, BlendLayerProperties, ScaleRangeLayerProperties, FeatureEffectLayerProperties {
@@ -16887,7 +16938,7 @@ declare namespace __esri {
16887
16938
  *
16888
16939
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html#queryObjectIds Read more...}
16889
16940
  */
16890
- queryObjectIds(query?: QueryProperties | null, options?: CatalogLayerQueryObjectIdsOptions): Promise<number[]>;
16941
+ queryObjectIds(query?: QueryProperties | null, options?: CatalogLayerQueryObjectIdsOptions): Promise<(number | string)[]>;
16891
16942
  /**
16892
16943
  * Fetches all the data for the layer.
16893
16944
  *
@@ -18910,7 +18961,7 @@ declare namespace __esri {
18910
18961
  *
18911
18962
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryObjectIds Read more...}
18912
18963
  */
18913
- queryObjectIds(query?: QueryProperties | null, options?: FeatureLayerQueryObjectIdsOptions): Promise<number[]>;
18964
+ queryObjectIds(query?: QueryProperties | null, options?: FeatureLayerQueryObjectIdsOptions): Promise<(number | string)[]>;
18914
18965
  /**
18915
18966
  * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html RelationshipQuery} against the feature service and
18916
18967
  * returns {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html FeatureSets} grouped by source layer or table objectIds.
@@ -23889,46 +23940,6 @@ declare namespace __esri {
23889
23940
  signal?: AbortSignal | nullish;
23890
23941
  }
23891
23942
 
23892
- /**
23893
- * Methods useful for returning endpoints for the given relationships, and for returning a map of origin and destination entities for specific relationships.
23894
- *
23895
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-knowledgeGraph-supportUtils.html Read more...}
23896
- */
23897
- interface supportUtils {
23898
- /**
23899
- * Returns the entity endpoints for the given relationships.
23900
- *
23901
- * @param records Relationships to find the endpoints for.
23902
- * @param kg The knowledge graph service that contains the relationships.
23903
- * @param options
23904
- * @param options.requestOptions Additional options to be used for the data request.
23905
- *
23906
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-knowledgeGraph-supportUtils.html#getRelationshipEndNodeIds Read more...}
23907
- */
23908
- getRelationshipEndNodeIds(records: IdTypePair[], kg: KnowledgeGraph, options?: supportUtilsGetRelationshipEndNodeIdsOptions): Promise<IdTypePair[]>;
23909
- /**
23910
- * Returns a map of origin and destination entities for specific relationships.
23911
- *
23912
- * @param records The relationships to retrieve the endpoints for.
23913
- * @param kg The knowledge graph containing the relationships.
23914
- * @param options
23915
- * @param options.requestOptions Additional options to be used for the data request.
23916
- *
23917
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-knowledgeGraph-supportUtils.html#getRelationshipEndNodeMap Read more...}
23918
- */
23919
- getRelationshipEndNodeMap(records: IdTypePair[], kg: KnowledgeGraph, options?: supportUtilsGetRelationshipEndNodeMapOptions): Promise<globalThis.Map<string, string[]>>;
23920
- }
23921
-
23922
- export const supportUtils: supportUtils;
23923
-
23924
- export interface supportUtilsGetRelationshipEndNodeIdsOptions {
23925
- requestOptions?: RequestOptions;
23926
- }
23927
-
23928
- export interface supportUtilsGetRelationshipEndNodeMapOptions {
23929
- requestOptions?: RequestOptions;
23930
- }
23931
-
23932
23943
  export class KnowledgeGraphLayer extends Layer {
23933
23944
  /**
23934
23945
  * Defines a set of {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphNamedObject.html named types} and/or
@@ -27879,7 +27890,7 @@ declare namespace __esri {
27879
27890
  *
27880
27891
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OrientedImageryLayer.html#queryObjectIds Read more...}
27881
27892
  */
27882
- queryObjectIds(query?: QueryProperties, options?: OrientedImageryLayerQueryObjectIdsOptions): Promise<number[]>;
27893
+ queryObjectIds(query?: QueryProperties, options?: OrientedImageryLayerQueryObjectIdsOptions): Promise<(number | string)[]>;
27883
27894
  /**
27884
27895
  * Saves the layer to its existing portal item in the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html Portal}
27885
27896
  * authenticated within the user's current session.
@@ -40632,7 +40643,7 @@ declare namespace __esri {
40632
40643
  *
40633
40644
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#queryObjectIds Read more...}
40634
40645
  */
40635
- queryObjectIds(query?: QueryProperties, options?: SublayerQueryObjectIdsOptions): Promise<number[]>;
40646
+ queryObjectIds(query?: QueryProperties, options?: SublayerQueryObjectIdsOptions): Promise<(number | string)[]>;
40636
40647
  /**
40637
40648
  * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html RelationshipQuery} against the sublayer and returns
40638
40649
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html FeatureSets} grouped by source layer or table objectIds.
@@ -65954,7 +65965,7 @@ declare namespace __esri {
65954
65965
  *
65955
65966
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeForIds Read more...}
65956
65967
  */
65957
- executeForIds(url: string, query: QueryProperties, requestOptions?: RequestOptions): Promise<number[]>;
65968
+ executeForIds(url: string, query: QueryProperties, requestOptions?: RequestOptions): Promise<(number | string)[]>;
65958
65969
  /**
65959
65970
  * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html TopFeaturesQuery} against a feature service and returns
65960
65971
  * the count of features or records that satisfy the query.
@@ -81376,7 +81387,7 @@ declare namespace __esri {
81376
81387
  *
81377
81388
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html Read more...}
81378
81389
  */
81379
- interface rasterSupportUtils {
81390
+ interface supportUtils {
81380
81391
  /**
81381
81392
  * Returns default band ids used by a multispectral imagery layer when using a raster {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html rgb}
81382
81393
  * or {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html stretch} renderer.
@@ -81404,7 +81415,7 @@ declare namespace __esri {
81404
81415
  getSupportedRendererInfo(params: utilsGetSupportedRendererInfoParams): Promise<SupportedRendererInfo>;
81405
81416
  }
81406
81417
 
81407
- export const rasterSupportUtils: rasterSupportUtils;
81418
+ export const supportUtils: supportUtils;
81408
81419
 
81409
81420
  /**
81410
81421
  * The result object of the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#getSupportedRendererInfo getSupportedRendererInfo()} method.
@@ -98615,7 +98626,7 @@ declare namespace __esri {
98615
98626
  *
98616
98627
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#queryObjectIds Read more...}
98617
98628
  */
98618
- queryObjectIds(query?: QueryProperties, options?: SceneLayerViewQueryObjectIdsOptions): Promise<number[]>;
98629
+ queryObjectIds(query?: QueryProperties, options?: SceneLayerViewQueryObjectIdsOptions): Promise<(number | string)[]>;
98619
98630
  }
98620
98631
 
98621
98632
  interface SceneLayerViewProperties extends LayerViewProperties {
@@ -101461,8 +101472,8 @@ declare namespace __esri {
101461
101472
  *
101462
101473
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#map Read more...}
101463
101474
  */
101464
- get map(): Map;
101465
- set map(value: MapProperties);
101475
+ get map(): Map | nullish;
101476
+ set map(value: MapProperties | nullish);
101466
101477
  /**
101467
101478
  * Options to configure the navigation behavior of the View.
101468
101479
  *
@@ -101788,7 +101799,7 @@ declare namespace __esri {
101788
101799
  *
101789
101800
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#map Read more...}
101790
101801
  */
101791
- map?: MapProperties;
101802
+ map?: MapProperties | nullish;
101792
101803
  /**
101793
101804
  * Options to configure the navigation behavior of the View.
101794
101805
  *
@@ -129978,6 +129989,10 @@ declare namespace __esri {
129978
129989
  visualizationOptions?: boolean;
129979
129990
  colorPicker?: boolean;
129980
129991
  tooltip?: boolean;
129992
+ thresholdContext?: boolean;
129993
+ thresholdContextToggle?: boolean;
129994
+ thresholdContextTimeInterval?: boolean;
129995
+ thresholdContextColor?: boolean;
129981
129996
  }
129982
129997
 
129983
129998
  /**
@@ -129992,6 +130007,10 @@ declare namespace __esri {
129992
130007
  visualizationOptions: boolean;
129993
130008
  colorPicker: boolean;
129994
130009
  tooltip: boolean;
130010
+ thresholdContext: boolean;
130011
+ thresholdContextToggle: boolean;
130012
+ thresholdContextTimeInterval: boolean;
130013
+ thresholdContextColor: boolean;
129995
130014
  }
129996
130015
 
129997
130016
  export class Sketch extends Widget {