@thoughtspot/visual-embed-sdk 1.33.0-dc.1 → 1.33.1-dc.2

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 (411) hide show
  1. package/cjs/package.json +5 -5
  2. package/cjs/src/embed/app.d.ts +0 -13
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js.map +1 -1
  5. package/cjs/src/embed/bodyless-conversation.d.ts +1 -1
  6. package/cjs/src/embed/bodyless-conversation.js +1 -1
  7. package/cjs/src/embed/conversation.d.ts +15 -0
  8. package/cjs/src/embed/conversation.d.ts.map +1 -1
  9. package/cjs/src/embed/conversation.js +17 -0
  10. package/cjs/src/embed/conversation.js.map +1 -1
  11. package/cjs/src/embed/conversation.spec.js +1 -1
  12. package/cjs/src/embed/conversation.spec.js.map +1 -1
  13. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  14. package/cjs/src/embed/liveboard.js +2 -1
  15. package/cjs/src/embed/liveboard.js.map +1 -1
  16. package/cjs/src/embed/search.d.ts +0 -13
  17. package/cjs/src/embed/search.d.ts.map +1 -1
  18. package/cjs/src/embed/search.js.map +1 -1
  19. package/cjs/src/types.d.ts +18 -35
  20. package/cjs/src/types.d.ts.map +1 -1
  21. package/cjs/src/types.js +4 -33
  22. package/cjs/src/types.js.map +1 -1
  23. package/cjs/src/utils/graphql/answerService/answerService.d.ts +1 -1
  24. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  25. package/cjs/src/utils/graphql/answerService/answerService.js +1 -1
  26. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  27. package/cjs/src/utils/graphql/answerService/answerService.spec.js +18 -0
  28. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  29. package/cjs/src/utils/graphql/nlsService/nls-answer-service.d.ts +7 -2
  30. package/cjs/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -1
  31. package/cjs/src/utils/graphql/nlsService/nls-answer-service.js +7 -2
  32. package/cjs/src/utils/graphql/nlsService/nls-answer-service.js.map +1 -1
  33. package/cjs/src/utils/liveboardService/liveboardService.d.ts +13 -0
  34. package/cjs/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
  35. package/cjs/src/utils/liveboardService/liveboardService.js +13 -0
  36. package/cjs/src/utils/liveboardService/liveboardService.js.map +1 -1
  37. package/dist/es/index-BwesxE_h.js +7369 -0
  38. package/dist/es/index.js +17483 -0
  39. package/dist/es/react/index.js +24027 -0
  40. package/dist/es/react/src/auth.d.ts +171 -0
  41. package/dist/es/react/src/auth.d.ts.map +1 -0
  42. package/dist/es/react/src/auth.spec.d.ts +15 -0
  43. package/dist/es/react/src/auth.spec.d.ts.map +1 -0
  44. package/dist/es/react/src/authToken.d.ts +17 -0
  45. package/dist/es/react/src/authToken.d.ts.map +1 -0
  46. package/dist/es/react/src/authToken.spec.d.ts +2 -0
  47. package/dist/es/react/src/authToken.spec.d.ts.map +1 -0
  48. package/dist/es/react/src/config.d.ts +21 -0
  49. package/dist/es/react/src/config.d.ts.map +1 -0
  50. package/dist/es/react/src/config.spec.d.ts +5 -0
  51. package/dist/es/react/src/config.spec.d.ts.map +1 -0
  52. package/dist/es/react/src/css-variables.d.ts +384 -0
  53. package/dist/es/react/src/css-variables.d.ts.map +1 -0
  54. package/dist/es/react/src/embed/app.d.ts +478 -0
  55. package/dist/es/react/src/embed/app.d.ts.map +1 -0
  56. package/dist/es/react/src/embed/app.spec.d.ts +2 -0
  57. package/dist/es/react/src/embed/app.spec.d.ts.map +1 -0
  58. package/dist/es/react/src/embed/base.d.ts +136 -0
  59. package/dist/es/react/src/embed/base.d.ts.map +1 -0
  60. package/dist/es/react/src/embed/base.spec.d.ts +2 -0
  61. package/dist/es/react/src/embed/base.spec.d.ts.map +1 -0
  62. package/dist/es/react/src/embed/bodyless-conversation.d.ts +26 -0
  63. package/dist/es/react/src/embed/bodyless-conversation.d.ts.map +1 -0
  64. package/dist/es/react/src/embed/bodyless-conversation.spec.d.ts +2 -0
  65. package/dist/es/react/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
  66. package/dist/es/react/src/embed/conversation.d.ts +43 -0
  67. package/dist/es/react/src/embed/conversation.d.ts.map +1 -0
  68. package/dist/es/react/src/embed/conversation.spec.d.ts +2 -0
  69. package/dist/es/react/src/embed/conversation.spec.d.ts.map +1 -0
  70. package/dist/es/react/src/embed/embed.spec.d.ts +2 -0
  71. package/dist/es/react/src/embed/embed.spec.d.ts.map +1 -0
  72. package/dist/es/react/src/embed/embedConfig.d.ts +17 -0
  73. package/dist/es/react/src/embed/embedConfig.d.ts.map +1 -0
  74. package/dist/es/react/src/embed/events.spec.d.ts +2 -0
  75. package/dist/es/react/src/embed/events.spec.d.ts.map +1 -0
  76. package/dist/es/react/src/embed/liveboard.d.ts +379 -0
  77. package/dist/es/react/src/embed/liveboard.d.ts.map +1 -0
  78. package/dist/es/react/src/embed/liveboard.spec.d.ts +2 -0
  79. package/dist/es/react/src/embed/liveboard.spec.d.ts.map +1 -0
  80. package/dist/es/react/src/embed/pinboard.spec.d.ts +2 -0
  81. package/dist/es/react/src/embed/pinboard.spec.d.ts.map +1 -0
  82. package/dist/es/react/src/embed/sage.d.ts +148 -0
  83. package/dist/es/react/src/embed/sage.d.ts.map +1 -0
  84. package/dist/es/react/src/embed/sage.spec.d.ts +2 -0
  85. package/dist/es/react/src/embed/sage.spec.d.ts.map +1 -0
  86. package/dist/es/react/src/embed/search-bar.d.ts +93 -0
  87. package/dist/es/react/src/embed/search-bar.d.ts.map +1 -0
  88. package/dist/es/react/src/embed/search.d.ts +282 -0
  89. package/dist/es/react/src/embed/search.d.ts.map +1 -0
  90. package/dist/es/react/src/embed/search.spec.d.ts +2 -0
  91. package/dist/es/react/src/embed/search.spec.d.ts.map +1 -0
  92. package/dist/es/react/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  93. package/dist/es/react/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  94. package/dist/es/react/src/embed/ts-embed.d.ts +374 -0
  95. package/dist/es/react/src/embed/ts-embed.d.ts.map +1 -0
  96. package/dist/es/react/src/embed/ts-embed.spec.d.ts +2 -0
  97. package/dist/es/react/src/embed/ts-embed.spec.d.ts.map +1 -0
  98. package/dist/es/react/src/errors.d.ts +19 -0
  99. package/dist/es/react/src/errors.d.ts.map +1 -0
  100. package/dist/es/react/src/index.d.ts +28 -0
  101. package/dist/es/react/src/index.d.ts.map +1 -0
  102. package/dist/es/react/src/mixpanel-service.d.ts +35 -0
  103. package/dist/es/react/src/mixpanel-service.d.ts.map +1 -0
  104. package/dist/es/react/src/mixpanel-service.spec.d.ts +2 -0
  105. package/dist/es/react/src/mixpanel-service.spec.d.ts.map +1 -0
  106. package/dist/es/react/src/react/all-types-export.d.ts +3 -0
  107. package/dist/es/react/src/react/all-types-export.d.ts.map +1 -0
  108. package/dist/es/react/src/react/all-types-export.spec.d.ts +2 -0
  109. package/dist/es/react/src/react/all-types-export.spec.d.ts.map +1 -0
  110. package/dist/es/react/src/react/index.d.ts +254 -0
  111. package/dist/es/react/src/react/index.d.ts.map +1 -0
  112. package/dist/es/react/src/react/index.spec.d.ts +3 -0
  113. package/dist/es/react/src/react/index.spec.d.ts.map +1 -0
  114. package/dist/es/react/src/react/util.d.ts +19 -0
  115. package/dist/es/react/src/react/util.d.ts.map +1 -0
  116. package/dist/es/react/src/test/test-utils.d.ts +61 -0
  117. package/dist/es/react/src/test/test-utils.d.ts.map +1 -0
  118. package/dist/es/react/src/tokenizedFetch.d.ts +18 -0
  119. package/dist/es/react/src/tokenizedFetch.d.ts.map +1 -0
  120. package/dist/es/react/src/types.d.ts +4363 -0
  121. package/dist/es/react/src/types.d.ts.map +1 -0
  122. package/dist/es/react/src/utils/authService/authService.d.ts +45 -0
  123. package/dist/es/react/src/utils/authService/authService.d.ts.map +1 -0
  124. package/dist/es/react/src/utils/authService/authService.spec.d.ts +2 -0
  125. package/dist/es/react/src/utils/authService/authService.spec.d.ts.map +1 -0
  126. package/dist/es/react/src/utils/authService/index.d.ts +3 -0
  127. package/dist/es/react/src/utils/authService/index.d.ts.map +1 -0
  128. package/dist/es/react/src/utils/authService/tokenizedAuthService.d.ts +22 -0
  129. package/dist/es/react/src/utils/authService/tokenizedAuthService.d.ts.map +1 -0
  130. package/dist/es/react/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  131. package/dist/es/react/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  132. package/dist/es/react/src/utils/global-styles.d.ts +2 -0
  133. package/dist/es/react/src/utils/global-styles.d.ts.map +1 -0
  134. package/dist/es/react/src/utils/global-styles.spec.d.ts +2 -0
  135. package/dist/es/react/src/utils/global-styles.spec.d.ts.map +1 -0
  136. package/dist/es/react/src/utils/graphql/answerService/answer-queries.d.ts +10 -0
  137. package/dist/es/react/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -0
  138. package/dist/es/react/src/utils/graphql/answerService/answerService.d.ts +180 -0
  139. package/dist/es/react/src/utils/graphql/answerService/answerService.d.ts.map +1 -0
  140. package/dist/es/react/src/utils/graphql/answerService/answerService.spec.d.ts +2 -0
  141. package/dist/es/react/src/utils/graphql/answerService/answerService.spec.d.ts.map +1 -0
  142. package/dist/es/react/src/utils/graphql/graphql-request.d.ts +15 -0
  143. package/dist/es/react/src/utils/graphql/graphql-request.d.ts.map +1 -0
  144. package/dist/es/react/src/utils/graphql/graphql-request.spec.d.ts +2 -0
  145. package/dist/es/react/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
  146. package/dist/es/react/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
  147. package/dist/es/react/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
  148. package/dist/es/react/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
  149. package/dist/es/react/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
  150. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
  151. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
  152. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.d.ts +17 -0
  153. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
  154. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
  155. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
  156. package/dist/es/react/src/utils/graphql/preview-service.d.ts +9 -0
  157. package/dist/es/react/src/utils/graphql/preview-service.d.ts.map +1 -0
  158. package/dist/es/react/src/utils/graphql/preview-service.spec.d.ts +2 -0
  159. package/dist/es/react/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
  160. package/dist/es/react/src/utils/graphql/sourceService.d.ts +8 -0
  161. package/dist/es/react/src/utils/graphql/sourceService.d.ts.map +1 -0
  162. package/dist/es/react/src/utils/graphql/sourceService.spec.d.ts +2 -0
  163. package/dist/es/react/src/utils/graphql/sourceService.spec.d.ts.map +1 -0
  164. package/dist/es/react/src/utils/liveboardService/liveboardService.d.ts +16 -0
  165. package/dist/es/react/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
  166. package/dist/es/react/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
  167. package/dist/es/react/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
  168. package/dist/es/react/src/utils/logger.d.ts +18 -0
  169. package/dist/es/react/src/utils/logger.d.ts.map +1 -0
  170. package/dist/es/react/src/utils/logger.spec.d.ts +25 -0
  171. package/dist/es/react/src/utils/logger.spec.d.ts.map +1 -0
  172. package/dist/es/react/src/utils/processData.d.ts +22 -0
  173. package/dist/es/react/src/utils/processData.d.ts.map +1 -0
  174. package/dist/es/react/src/utils/processData.spec.d.ts +2 -0
  175. package/dist/es/react/src/utils/processData.spec.d.ts.map +1 -0
  176. package/dist/es/react/src/utils/processTrigger.d.ts +16 -0
  177. package/dist/es/react/src/utils/processTrigger.d.ts.map +1 -0
  178. package/dist/es/react/src/utils/processTrigger.spec.d.ts +2 -0
  179. package/dist/es/react/src/utils/processTrigger.spec.d.ts.map +1 -0
  180. package/dist/es/react/src/utils/reporting.d.ts +16 -0
  181. package/dist/es/react/src/utils/reporting.d.ts.map +1 -0
  182. package/dist/es/react/src/utils/reporting.spec.d.ts +2 -0
  183. package/dist/es/react/src/utils/reporting.spec.d.ts.map +1 -0
  184. package/dist/es/react/src/utils/sessionInfoService.d.ts +66 -0
  185. package/dist/es/react/src/utils/sessionInfoService.d.ts.map +1 -0
  186. package/dist/es/react/src/utils.d.ts +103 -0
  187. package/dist/es/react/src/utils.d.ts.map +1 -0
  188. package/dist/es/react/src/utils.spec.d.ts +2 -0
  189. package/dist/es/react/src/utils.spec.d.ts.map +1 -0
  190. package/dist/es/src/auth.d.ts +171 -0
  191. package/dist/es/src/auth.d.ts.map +1 -0
  192. package/dist/es/src/auth.spec.d.ts +15 -0
  193. package/dist/es/src/auth.spec.d.ts.map +1 -0
  194. package/dist/es/src/authToken.d.ts +17 -0
  195. package/dist/es/src/authToken.d.ts.map +1 -0
  196. package/dist/es/src/authToken.spec.d.ts +2 -0
  197. package/dist/es/src/authToken.spec.d.ts.map +1 -0
  198. package/dist/es/src/config.d.ts +21 -0
  199. package/dist/es/src/config.d.ts.map +1 -0
  200. package/dist/es/src/config.spec.d.ts +5 -0
  201. package/dist/es/src/config.spec.d.ts.map +1 -0
  202. package/dist/es/src/css-variables.d.ts +384 -0
  203. package/dist/es/src/css-variables.d.ts.map +1 -0
  204. package/dist/es/src/embed/app.d.ts +478 -0
  205. package/dist/es/src/embed/app.d.ts.map +1 -0
  206. package/dist/es/src/embed/app.spec.d.ts +2 -0
  207. package/dist/es/src/embed/app.spec.d.ts.map +1 -0
  208. package/dist/es/src/embed/base.d.ts +136 -0
  209. package/dist/es/src/embed/base.d.ts.map +1 -0
  210. package/dist/es/src/embed/base.spec.d.ts +2 -0
  211. package/dist/es/src/embed/base.spec.d.ts.map +1 -0
  212. package/dist/es/src/embed/bodyless-conversation.d.ts +26 -0
  213. package/dist/es/src/embed/bodyless-conversation.d.ts.map +1 -0
  214. package/dist/es/src/embed/bodyless-conversation.spec.d.ts +2 -0
  215. package/dist/es/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
  216. package/dist/es/src/embed/conversation.d.ts +43 -0
  217. package/dist/es/src/embed/conversation.d.ts.map +1 -0
  218. package/dist/es/src/embed/conversation.spec.d.ts +2 -0
  219. package/dist/es/src/embed/conversation.spec.d.ts.map +1 -0
  220. package/dist/es/src/embed/embed.spec.d.ts +2 -0
  221. package/dist/es/src/embed/embed.spec.d.ts.map +1 -0
  222. package/dist/es/src/embed/embedConfig.d.ts +17 -0
  223. package/dist/es/src/embed/embedConfig.d.ts.map +1 -0
  224. package/dist/es/src/embed/events.spec.d.ts +2 -0
  225. package/dist/es/src/embed/events.spec.d.ts.map +1 -0
  226. package/dist/es/src/embed/liveboard.d.ts +379 -0
  227. package/dist/es/src/embed/liveboard.d.ts.map +1 -0
  228. package/dist/es/src/embed/liveboard.spec.d.ts +2 -0
  229. package/dist/es/src/embed/liveboard.spec.d.ts.map +1 -0
  230. package/dist/es/src/embed/pinboard.spec.d.ts +2 -0
  231. package/dist/es/src/embed/pinboard.spec.d.ts.map +1 -0
  232. package/dist/es/src/embed/sage.d.ts +148 -0
  233. package/dist/es/src/embed/sage.d.ts.map +1 -0
  234. package/dist/es/src/embed/sage.spec.d.ts +2 -0
  235. package/dist/es/src/embed/sage.spec.d.ts.map +1 -0
  236. package/dist/es/src/embed/search-bar.d.ts +93 -0
  237. package/dist/es/src/embed/search-bar.d.ts.map +1 -0
  238. package/dist/es/src/embed/search.d.ts +282 -0
  239. package/dist/es/src/embed/search.d.ts.map +1 -0
  240. package/dist/es/src/embed/search.spec.d.ts +2 -0
  241. package/dist/es/src/embed/search.spec.d.ts.map +1 -0
  242. package/dist/es/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  243. package/dist/es/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  244. package/dist/es/src/embed/ts-embed.d.ts +374 -0
  245. package/dist/es/src/embed/ts-embed.d.ts.map +1 -0
  246. package/dist/es/src/embed/ts-embed.spec.d.ts +2 -0
  247. package/dist/es/src/embed/ts-embed.spec.d.ts.map +1 -0
  248. package/dist/es/src/errors.d.ts +19 -0
  249. package/dist/es/src/errors.d.ts.map +1 -0
  250. package/dist/es/src/index.d.ts +28 -0
  251. package/dist/es/src/index.d.ts.map +1 -0
  252. package/dist/es/src/mixpanel-service.d.ts +35 -0
  253. package/dist/es/src/mixpanel-service.d.ts.map +1 -0
  254. package/dist/es/src/mixpanel-service.spec.d.ts +2 -0
  255. package/dist/es/src/mixpanel-service.spec.d.ts.map +1 -0
  256. package/dist/es/src/react/all-types-export.d.ts +3 -0
  257. package/dist/es/src/react/all-types-export.d.ts.map +1 -0
  258. package/dist/es/src/react/all-types-export.spec.d.ts +2 -0
  259. package/dist/es/src/react/all-types-export.spec.d.ts.map +1 -0
  260. package/dist/es/src/react/index.d.ts +254 -0
  261. package/dist/es/src/react/index.d.ts.map +1 -0
  262. package/dist/es/src/react/index.spec.d.ts +3 -0
  263. package/dist/es/src/react/index.spec.d.ts.map +1 -0
  264. package/dist/es/src/react/util.d.ts +19 -0
  265. package/dist/es/src/react/util.d.ts.map +1 -0
  266. package/dist/es/src/test/test-utils.d.ts +61 -0
  267. package/dist/es/src/test/test-utils.d.ts.map +1 -0
  268. package/dist/es/src/tokenizedFetch.d.ts +18 -0
  269. package/dist/es/src/tokenizedFetch.d.ts.map +1 -0
  270. package/dist/es/src/types.d.ts +4363 -0
  271. package/dist/es/src/types.d.ts.map +1 -0
  272. package/dist/es/src/utils/authService/authService.d.ts +45 -0
  273. package/dist/es/src/utils/authService/authService.d.ts.map +1 -0
  274. package/dist/es/src/utils/authService/authService.spec.d.ts +2 -0
  275. package/dist/es/src/utils/authService/authService.spec.d.ts.map +1 -0
  276. package/dist/es/src/utils/authService/index.d.ts +3 -0
  277. package/dist/es/src/utils/authService/index.d.ts.map +1 -0
  278. package/dist/es/src/utils/authService/tokenizedAuthService.d.ts +22 -0
  279. package/dist/es/src/utils/authService/tokenizedAuthService.d.ts.map +1 -0
  280. package/dist/es/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  281. package/dist/es/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  282. package/dist/es/src/utils/global-styles.d.ts +2 -0
  283. package/dist/es/src/utils/global-styles.d.ts.map +1 -0
  284. package/dist/es/src/utils/global-styles.spec.d.ts +2 -0
  285. package/dist/es/src/utils/global-styles.spec.d.ts.map +1 -0
  286. package/dist/es/src/utils/graphql/answerService/answer-queries.d.ts +10 -0
  287. package/dist/es/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -0
  288. package/dist/es/src/utils/graphql/answerService/answerService.d.ts +180 -0
  289. package/dist/es/src/utils/graphql/answerService/answerService.d.ts.map +1 -0
  290. package/dist/es/src/utils/graphql/answerService/answerService.spec.d.ts +2 -0
  291. package/dist/es/src/utils/graphql/answerService/answerService.spec.d.ts.map +1 -0
  292. package/dist/es/src/utils/graphql/graphql-request.d.ts +15 -0
  293. package/dist/es/src/utils/graphql/graphql-request.d.ts.map +1 -0
  294. package/dist/es/src/utils/graphql/graphql-request.spec.d.ts +2 -0
  295. package/dist/es/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
  296. package/dist/es/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
  297. package/dist/es/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
  298. package/dist/es/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
  299. package/dist/es/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
  300. package/dist/es/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
  301. package/dist/es/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
  302. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.d.ts +17 -0
  303. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
  304. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
  305. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
  306. package/dist/es/src/utils/graphql/preview-service.d.ts +9 -0
  307. package/dist/es/src/utils/graphql/preview-service.d.ts.map +1 -0
  308. package/dist/es/src/utils/graphql/preview-service.spec.d.ts +2 -0
  309. package/dist/es/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
  310. package/dist/es/src/utils/graphql/sourceService.d.ts +8 -0
  311. package/dist/es/src/utils/graphql/sourceService.d.ts.map +1 -0
  312. package/dist/es/src/utils/graphql/sourceService.spec.d.ts +2 -0
  313. package/dist/es/src/utils/graphql/sourceService.spec.d.ts.map +1 -0
  314. package/dist/es/src/utils/liveboardService/liveboardService.d.ts +16 -0
  315. package/dist/es/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
  316. package/dist/es/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
  317. package/dist/es/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
  318. package/dist/es/src/utils/logger.d.ts +18 -0
  319. package/dist/es/src/utils/logger.d.ts.map +1 -0
  320. package/dist/es/src/utils/logger.spec.d.ts +25 -0
  321. package/dist/es/src/utils/logger.spec.d.ts.map +1 -0
  322. package/dist/es/src/utils/processData.d.ts +22 -0
  323. package/dist/es/src/utils/processData.d.ts.map +1 -0
  324. package/dist/es/src/utils/processData.spec.d.ts +2 -0
  325. package/dist/es/src/utils/processData.spec.d.ts.map +1 -0
  326. package/dist/es/src/utils/processTrigger.d.ts +16 -0
  327. package/dist/es/src/utils/processTrigger.d.ts.map +1 -0
  328. package/dist/es/src/utils/processTrigger.spec.d.ts +2 -0
  329. package/dist/es/src/utils/processTrigger.spec.d.ts.map +1 -0
  330. package/dist/es/src/utils/reporting.d.ts +16 -0
  331. package/dist/es/src/utils/reporting.d.ts.map +1 -0
  332. package/dist/es/src/utils/reporting.spec.d.ts +2 -0
  333. package/dist/es/src/utils/reporting.spec.d.ts.map +1 -0
  334. package/dist/es/src/utils/sessionInfoService.d.ts +66 -0
  335. package/dist/es/src/utils/sessionInfoService.d.ts.map +1 -0
  336. package/dist/es/src/utils.d.ts +103 -0
  337. package/dist/es/src/utils.d.ts.map +1 -0
  338. package/dist/es/src/utils.spec.d.ts +2 -0
  339. package/dist/es/src/utils.spec.d.ts.map +1 -0
  340. package/dist/src/embed/app.d.ts +0 -13
  341. package/dist/src/embed/app.d.ts.map +1 -1
  342. package/dist/src/embed/bodyless-conversation.d.ts +1 -1
  343. package/dist/src/embed/conversation.d.ts +15 -0
  344. package/dist/src/embed/conversation.d.ts.map +1 -1
  345. package/dist/src/embed/liveboard.d.ts.map +1 -1
  346. package/dist/src/embed/search.d.ts +0 -13
  347. package/dist/src/embed/search.d.ts.map +1 -1
  348. package/dist/src/types.d.ts +18 -35
  349. package/dist/src/types.d.ts.map +1 -1
  350. package/dist/src/utils/graphql/answerService/answerService.d.ts +1 -1
  351. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  352. package/dist/src/utils/graphql/nlsService/nls-answer-service.d.ts +7 -2
  353. package/dist/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -1
  354. package/dist/src/utils/liveboardService/liveboardService.d.ts +13 -0
  355. package/dist/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
  356. package/dist/tsembed-react.es.js +488 -462
  357. package/dist/tsembed-react.js +686 -503
  358. package/dist/tsembed.es.js +455 -430
  359. package/dist/tsembed.js +672 -468
  360. package/dist/visual-embed-sdk-react-full.d.ts +55 -65
  361. package/dist/visual-embed-sdk-react.d.ts +55 -65
  362. package/dist/visual-embed-sdk.d.ts +40 -65
  363. package/lib/package.json +5 -5
  364. package/lib/src/embed/app.d.ts +0 -13
  365. package/lib/src/embed/app.d.ts.map +1 -1
  366. package/lib/src/embed/app.js.map +1 -1
  367. package/lib/src/embed/bodyless-conversation.d.ts +1 -1
  368. package/lib/src/embed/bodyless-conversation.js +1 -1
  369. package/lib/src/embed/conversation.d.ts +15 -0
  370. package/lib/src/embed/conversation.d.ts.map +1 -1
  371. package/lib/src/embed/conversation.js +17 -0
  372. package/lib/src/embed/conversation.js.map +1 -1
  373. package/lib/src/embed/conversation.spec.js +1 -1
  374. package/lib/src/embed/conversation.spec.js.map +1 -1
  375. package/lib/src/embed/liveboard.d.ts.map +1 -1
  376. package/lib/src/embed/liveboard.js +2 -1
  377. package/lib/src/embed/liveboard.js.map +1 -1
  378. package/lib/src/embed/search.d.ts +0 -13
  379. package/lib/src/embed/search.d.ts.map +1 -1
  380. package/lib/src/embed/search.js.map +1 -1
  381. package/lib/src/types.d.ts +18 -35
  382. package/lib/src/types.d.ts.map +1 -1
  383. package/lib/src/types.js +4 -33
  384. package/lib/src/types.js.map +1 -1
  385. package/lib/src/utils/graphql/answerService/answerService.d.ts +1 -1
  386. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  387. package/lib/src/utils/graphql/answerService/answerService.js +1 -1
  388. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  389. package/lib/src/utils/graphql/answerService/answerService.spec.js +18 -0
  390. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  391. package/lib/src/utils/graphql/nlsService/nls-answer-service.d.ts +7 -2
  392. package/lib/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -1
  393. package/lib/src/utils/graphql/nlsService/nls-answer-service.js +7 -2
  394. package/lib/src/utils/graphql/nlsService/nls-answer-service.js.map +1 -1
  395. package/lib/src/utils/liveboardService/liveboardService.d.ts +13 -0
  396. package/lib/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
  397. package/lib/src/utils/liveboardService/liveboardService.js +13 -0
  398. package/lib/src/utils/liveboardService/liveboardService.js.map +1 -1
  399. package/lib/src/visual-embed-sdk.d.ts +40 -65
  400. package/package.json +5 -5
  401. package/src/embed/app.ts +0 -13
  402. package/src/embed/bodyless-conversation.ts +1 -1
  403. package/src/embed/conversation.spec.ts +1 -1
  404. package/src/embed/conversation.ts +16 -0
  405. package/src/embed/liveboard.ts +2 -0
  406. package/src/embed/search.ts +0 -13
  407. package/src/types.ts +17 -34
  408. package/src/utils/graphql/answerService/answerService.spec.ts +24 -0
  409. package/src/utils/graphql/answerService/answerService.ts +1 -1
  410. package/src/utils/graphql/nlsService/nls-answer-service.ts +7 -2
  411. package/src/utils/liveboardService/liveboardService.ts +13 -0
package/dist/tsembed.js CHANGED
@@ -2,10 +2,25 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
3
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.tsembed = {}));
5
- }(this, (function (exports) { 'use strict';
5
+ })(this, (function (exports) { 'use strict';
6
+
7
+ function _mergeNamespaces(n, m) {
8
+ m.forEach(function (e) {
9
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
10
+ if (k !== 'default' && !(k in n)) {
11
+ var d = Object.getOwnPropertyDescriptor(e, k);
12
+ Object.defineProperty(n, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: function () { return e[k]; }
15
+ });
16
+ }
17
+ });
18
+ });
19
+ return Object.freeze(n);
20
+ }
6
21
 
7
22
  // istanbul ignore next
8
- const isObject = (obj) => {
23
+ const isObject$1 = (obj) => {
9
24
  if (typeof obj === "object" && obj !== null) {
10
25
  if (typeof Object.getPrototypeOf === "function") {
11
26
  const prototype = Object.getPrototypeOf(obj);
@@ -30,7 +45,7 @@
30
45
  : [...result[key], ...current[key]]
31
46
  : current[key];
32
47
  }
33
- else if (isObject(result[key]) && isObject(current[key])) {
48
+ else if (isObject$1(result[key]) && isObject$1(current[key])) {
34
49
  result[key] = merge(result[key], current[key]);
35
50
  }
36
51
  else {
@@ -330,6 +345,13 @@
330
345
  * @summary Type definitions for Embed SDK
331
346
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
332
347
  */
348
+ /**
349
+ * The authentication mechanism for allowing access to the
350
+ * the embedded app
351
+ * @group Authentication / Init
352
+ */
353
+ // eslint-disable-next-line no-shadow
354
+ exports.AuthType = void 0;
333
355
  (function (AuthType) {
334
356
  /**
335
357
  * No authentication on the SDK. Passthrough to the embedded App. Alias for
@@ -482,6 +504,15 @@
482
504
  */
483
505
  AuthType["Basic"] = "Basic";
484
506
  })(exports.AuthType || (exports.AuthType = {}));
507
+ /**
508
+ *
509
+ * This option does not apply to the classic homepage experience.
510
+ * To access the updated modular homepage,
511
+ * set `modularHomeExperience` to `true`
512
+ * (available as Early Access feature in 9.12.5.cl).
513
+ *
514
+ */
515
+ exports.HomeLeftNavItem = void 0;
485
516
  (function (HomeLeftNavItem) {
486
517
  /**
487
518
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
@@ -512,6 +543,11 @@
512
543
  */
513
544
  HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
514
545
  })(exports.HomeLeftNavItem || (exports.HomeLeftNavItem = {}));
546
+ /**
547
+ * A map of the supported runtime filter operations
548
+ */
549
+ // eslint-disable-next-line no-shadow
550
+ exports.RuntimeFilterOp = void 0;
515
551
  (function (RuntimeFilterOp) {
516
552
  /**
517
553
  * Equals
@@ -574,6 +610,15 @@
574
610
  */
575
611
  RuntimeFilterOp["NOT_IN"] = "NOT_IN";
576
612
  })(exports.RuntimeFilterOp || (exports.RuntimeFilterOp = {}));
613
+ /**
614
+ * Home page module that can be hidden.
615
+ * **Note**: This option does not apply to the classic homepage.
616
+ * To access the updated modular homepage, set
617
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
618
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
619
+ */
620
+ // eslint-disable-next-line no-shadow
621
+ exports.HomepageModule = void 0;
577
622
  (function (HomepageModule) {
578
623
  /**
579
624
  * Search bar
@@ -600,6 +645,47 @@
600
645
  */
601
646
  HomepageModule["Learning"] = "LEARNING";
602
647
  })(exports.HomepageModule || (exports.HomepageModule = {}));
648
+ /**
649
+ * Event types emitted by the embedded ThoughtSpot application.
650
+ *
651
+ * To add an event listener use the corresponding
652
+ * {@link LiveboardEmbed.on} or {@link AppEmbed.on} or {@link SearchEmbed.on} method.
653
+ * @example
654
+ * ```js
655
+ * import { EmbedEvent } from '@thoughtspot/visual-embed-sdk';
656
+ * // Or
657
+ * // const { EmbedEvent } = window.tsembed;
658
+ *
659
+ * // create the liveboard embed.
660
+ *
661
+ * liveboardEmbed.on(EmbedEvent.Drilldown, (drilldown) => {
662
+ * console.log('Drilldown event', drilldown);
663
+ * }));
664
+ * ```
665
+ *
666
+ * If you are using React components for embedding, you can register to any
667
+ * events from the `EmbedEvent` list by using the `on<EventName>` convention.
668
+ * For example,`onAlert`, `onCopyToClipboard` and so on.
669
+ * @example
670
+ * ```js
671
+ * // ...
672
+ * const MyComponent = ({ dataSources }) => {
673
+ * const onLoad = () => {
674
+ * console.log(EmbedEvent.Load, {});
675
+ * };
676
+ *
677
+ * return (
678
+ * <SearchEmbed
679
+ * dataSources={dataSources}
680
+ * onLoad = {logEvent("Load")}
681
+ * />
682
+ * );
683
+ * };
684
+ * ```
685
+ * @group Events
686
+ */
687
+ // eslint-disable-next-line no-shadow
688
+ exports.EmbedEvent = void 0;
603
689
  (function (EmbedEvent) {
604
690
  /**
605
691
  * Rendering has initialized.
@@ -1471,7 +1557,6 @@
1471
1557
  *
1472
1558
  * Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
1473
1559
  * for this embed event to get emitted.
1474
- *
1475
1560
  * @param: payload
1476
1561
  * @param: responder
1477
1562
  * Contains elements that lets developers define whether ThoughtSpot
@@ -1482,9 +1567,7 @@
1482
1567
  *
1483
1568
  * error: Developers can customize the user facing message when execute is
1484
1569
  * set to false using the error parameter in responder
1485
- *
1486
1570
  * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1487
- *
1488
1571
  * @example
1489
1572
  *```js
1490
1573
  * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
@@ -1536,6 +1619,61 @@
1536
1619
  */
1537
1620
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1538
1621
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
1622
+ /**
1623
+ * Event types that can be triggered by the host application
1624
+ * to the embedded ThoughtSpot app.
1625
+ *
1626
+ * To trigger an event use the corresponding
1627
+ * {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
1628
+ * SearchEmbed.trigger} method.
1629
+ * @example
1630
+ * ```js
1631
+ * import { HostEvent } from '@thoughtspot/visual-embed-sdk';
1632
+ * // Or
1633
+ * // const { HostEvent } = window.tsembed;
1634
+ *
1635
+ * // create the liveboard embed.
1636
+ *
1637
+ * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
1638
+ * { columnName: 'state, operator: RuntimeFilterOp.EQ, values: ['california']}
1639
+ * ]);
1640
+ * ```
1641
+ * @example
1642
+ * If using React components to embed, use the format shown in this example:
1643
+ *
1644
+ * ```js
1645
+ * const selectVizs = () => {
1646
+ * embedRef.current.trigger(HostEvent.SetVisibleVizs, [
1647
+ * "715e4613-c891-4884-be44-aa8d13701c06",
1648
+ * "3f84d633-e325-44b2-be25-c6650e5a49cf"
1649
+ * ]);
1650
+ * };
1651
+ * ```
1652
+ *
1653
+ *
1654
+ * You can also attach an Embed event to a Host event to trigger
1655
+ * a specific action as shown in this example:
1656
+ * @example
1657
+ * ```js
1658
+ * const EmbeddedComponent = () => {
1659
+ * const embedRef = useRef(null); // import { useRef } from react
1660
+ * const onLiveboardRendered = () => {
1661
+ * embedRef.current.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
1662
+ * };
1663
+ *
1664
+ * return (
1665
+ * <LiveboardEmbed
1666
+ * ref={embedRef}
1667
+ * liveboardId="<liveboard-guid>"
1668
+ * onLiveboardRendered={onLiveboardRendered}
1669
+ * />
1670
+ * );
1671
+ * }
1672
+ * ```
1673
+ * @group Events
1674
+ */
1675
+ // eslint-disable-next-line no-shadow
1676
+ exports.HostEvent = void 0;
1539
1677
  (function (HostEvent) {
1540
1678
  /**
1541
1679
  * Triggers a search operation with the search tokens specified in
@@ -1834,28 +1972,23 @@
1834
1972
  /**
1835
1973
  * Trigger the **Make a copy** action on a Liveboard,
1836
1974
  * visualization, or Answer page.
1837
- *
1838
1975
  * @example
1839
1976
  * ```js
1840
1977
  * liveboardEmbed.trigger(HostEvent.MakeACopy)
1841
1978
  * ```
1842
- *
1843
1979
  * @example
1844
1980
  * ```js
1845
1981
  * liveboardEmbed.trigger(HostEvent.MakeACopy, {
1846
1982
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1847
1983
  * ```
1848
- *
1849
1984
  * @example
1850
1985
  * ```js
1851
1986
  * vizEmbed.trigger(HostEvent.MakeACopy)
1852
1987
  * ```
1853
- *
1854
1988
  * @example
1855
1989
  * ```js
1856
1990
  * searchEmbed.trigger(HostEvent.MakeACopy)
1857
1991
  * ```
1858
- *
1859
1992
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1860
1993
  */
1861
1994
  HostEvent["MakeACopy"] = "makeACopy";
@@ -1881,7 +2014,6 @@
1881
2014
  /**
1882
2015
  * Trigger the **Create alert** action on a KPI chart
1883
2016
  * in a Liveboard or saved Answer.
1884
- *
1885
2017
  * @param - an object with `vizId` as a key
1886
2018
  * @example
1887
2019
  * ```js
@@ -1889,7 +2021,6 @@
1889
2021
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
1890
2022
  * })
1891
2023
  * ```
1892
- *
1893
2024
  * @example
1894
2025
  * ```js
1895
2026
  * searchEmbed.trigger(HostEvent.CreateMonitor)
@@ -1900,7 +2031,6 @@
1900
2031
  /**
1901
2032
  * Trigger the **Manage alerts** action on a KPI chart
1902
2033
  * in a visualization or saved Answer.
1903
- *
1904
2034
  * @param - an object with `vizId` as a key
1905
2035
  * @example
1906
2036
  * ```js
@@ -1908,12 +2038,10 @@
1908
2038
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
1909
2039
  * })
1910
2040
  * ```
1911
- *
1912
2041
  * @example
1913
2042
  * ```js
1914
2043
  * searchEmbed.trigger(HostEvent.ManageMonitor)
1915
2044
  * ```
1916
- *
1917
2045
  * @example
1918
2046
  * ```js
1919
2047
  * vizEmbed.trigger(HostEvent.ManageMonitor)
@@ -2243,7 +2371,6 @@
2243
2371
  * }
2244
2372
  * });
2245
2373
  * ```
2246
- *
2247
2374
  * @example
2248
2375
  *
2249
2376
  * ```js
@@ -2325,7 +2452,6 @@
2325
2452
  /**
2326
2453
  * Get the answer session for a Search or
2327
2454
  * Liveboard visualization.
2328
- *
2329
2455
  * @example
2330
2456
  * ```js
2331
2457
  * const {session} = await embed.trigger(
@@ -2333,12 +2459,10 @@
2333
2459
  * vizId: '123', // For Liveboard Visualization.
2334
2460
  * })
2335
2461
  * ```
2336
- *
2337
2462
  * @example
2338
2463
  * ```js
2339
2464
  * const {session} = await embed.trigger( HostEvent.GetAnswerSession )
2340
2465
  * ```
2341
- *
2342
2466
  * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
2343
2467
  */
2344
2468
  HostEvent["GetAnswerSession"] = "getAnswerSession";
@@ -2399,6 +2523,12 @@
2399
2523
  */
2400
2524
  HostEvent["GetParameters"] = "GetParameters";
2401
2525
  })(exports.HostEvent || (exports.HostEvent = {}));
2526
+ /**
2527
+ * The different visual modes that the data sources panel within
2528
+ * search could appear in, such as hidden, collapsed, or expanded.
2529
+ */
2530
+ // eslint-disable-next-line no-shadow
2531
+ exports.DataSourceVisualMode = void 0;
2402
2532
  (function (DataSourceVisualMode) {
2403
2533
  /**
2404
2534
  * The data source panel is hidden.
@@ -2507,7 +2637,36 @@
2507
2637
  Param["ShowLiveboardVerifiedBadge"] = "showLiveboardVerifiedBadge";
2508
2638
  Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
2509
2639
  Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
2640
+ Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2510
2641
  })(Param || (Param = {}));
2642
+ /**
2643
+ * ThoughtSpot application pages include actions and menu commands
2644
+ * for various user-initiated operations. These actions are represented
2645
+ * as enumeration members in the SDK. To show, hide, or disable
2646
+ * specific actions in the embedded view, define the Action
2647
+ * enumeration members in the `disabledActions`, `visibleActions`,
2648
+ * or `hiddenActions` array.
2649
+ * @example
2650
+ * ```js
2651
+ * const embed = new LiveboardEmbed('#embed-container', {
2652
+ * ... // other options
2653
+ * visibleActions: [Action.Save, Action.Edit, Action.Present, ActionAction.Explore],
2654
+ * disabledActions: [Action.Download],
2655
+ * //hiddenActions: [], // Set either this or visibleActions
2656
+ * })
2657
+ * ```
2658
+ * @example
2659
+ * ```js
2660
+ * const embed = new LiveboardEmbed('#embed-container', {
2661
+ * ... // other options
2662
+ * //visibleActions: [],
2663
+ * disabledActions: [Action.Download],
2664
+ * hiddenActions: [Action.Edit, ActionAction.Explore],
2665
+ * })
2666
+ * ```
2667
+ */
2668
+ // eslint-disable-next-line no-shadow
2669
+ exports.Action = void 0;
2511
2670
  (function (Action) {
2512
2671
  /**
2513
2672
  * The **Save** action on an Answer or Liveboard.
@@ -3033,7 +3192,6 @@
3033
3192
  /**
3034
3193
  * @deprecated
3035
3194
  * Reports errors
3036
- *
3037
3195
  * @example
3038
3196
  * ```js
3039
3197
  * disabledActions: [Action.ReportError]
@@ -3263,14 +3421,12 @@
3263
3421
  * ```js
3264
3422
  * disabledActions: [Action.RequestVerification]
3265
3423
  * ```
3266
- *
3267
3424
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
3268
3425
  */
3269
3426
  Action["RequestVerification"] = "requestVerification";
3270
3427
  /**
3271
3428
  *
3272
- * Allows users to mark a Liveboard as verified.
3273
- *
3429
+ *Allows users to mark a Liveboard as verified.
3274
3430
  * @example
3275
3431
  * ```js
3276
3432
  * disabledActions: [Action.MarkAsVerified]
@@ -3281,7 +3437,6 @@
3281
3437
  /**
3282
3438
  * The **Add Tab** action on a Liveboard.
3283
3439
  * Allows adding a new tab to a Liveboard view.
3284
- *
3285
3440
  * @example
3286
3441
  * ```js
3287
3442
  * disabledActions: [Action.AddTab]
@@ -3291,8 +3446,7 @@
3291
3446
  Action["AddTab"] = "addTab";
3292
3447
  /**
3293
3448
  *
3294
- * Initiates contextual change analysis on KPI charts.
3295
- *
3449
+ *Initiates contextual change analysis on KPI charts.
3296
3450
  * @example
3297
3451
  * ```js
3298
3452
  * disabledActions: [Action.EnableContextualChangeAnalysis]
@@ -3306,7 +3460,6 @@
3306
3460
  * ```js
3307
3461
  * disabledActions: [Action.ShowSageQuery]
3308
3462
  * ```
3309
- *
3310
3463
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3311
3464
  */
3312
3465
  Action["ShowSageQuery"] = "showSageQuery";
@@ -3321,8 +3474,7 @@
3321
3474
  Action["EditSageAnswer"] = "editSageAnswer";
3322
3475
  /**
3323
3476
  *
3324
- * This action allows users to send feedback on AI-generated Answers.
3325
- *
3477
+ *This action allows users to send feedback on AI-generated Answers.
3326
3478
  * @example
3327
3479
  * ```js
3328
3480
  * disabledActions: [Action.SageAnswerFeedback]
@@ -3399,7 +3551,6 @@
3399
3551
  * hiddenAction: [Action.CreateLiveboard]
3400
3552
  * disabledActions: [Action.CreateLiveboard]
3401
3553
  * ```
3402
- *
3403
3554
  * @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
3404
3555
  */
3405
3556
  Action["CreateLiveboard"] = "createLiveboard";
@@ -3495,7 +3646,6 @@
3495
3646
  Action["UnsubscribeScheduleHomepage"] = "unsubscribeScheduleHomepage";
3496
3647
  /**
3497
3648
  * The **Manage Tags** action on Homepage Favourite Module.
3498
- *
3499
3649
  * @example
3500
3650
  * ```js
3501
3651
  * disabledActions: [Action.ManageTags]
@@ -3522,16 +3672,22 @@
3522
3672
  */
3523
3673
  Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
3524
3674
  })(exports.Action || (exports.Action = {}));
3675
+ exports.PrefetchFeatures = void 0;
3525
3676
  (function (PrefetchFeatures) {
3526
3677
  PrefetchFeatures["FullApp"] = "FullApp";
3527
3678
  PrefetchFeatures["SearchEmbed"] = "SearchEmbed";
3528
3679
  PrefetchFeatures["LiveboardEmbed"] = "LiveboardEmbed";
3529
3680
  PrefetchFeatures["VizEmbed"] = "VizEmbed";
3530
3681
  })(exports.PrefetchFeatures || (exports.PrefetchFeatures = {}));
3682
+ /**
3683
+ * Enum for options to change context trigger
3684
+ */
3685
+ exports.ContextMenuTriggerOptions = void 0;
3531
3686
  (function (ContextMenuTriggerOptions) {
3532
3687
  ContextMenuTriggerOptions["LEFT_CLICK"] = "left-click";
3533
3688
  ContextMenuTriggerOptions["RIGHT_CLICK"] = "right-click";
3534
3689
  })(exports.ContextMenuTriggerOptions || (exports.ContextMenuTriggerOptions = {}));
3690
+ exports.LogLevel = void 0;
3535
3691
  (function (LogLevel) {
3536
3692
  /**
3537
3693
  * No logs will be logged in the console.
@@ -3675,7 +3831,7 @@
3675
3831
  this.logMessages(args, exports.LogLevel.WARN);
3676
3832
  }
3677
3833
  }
3678
- const logger = new Logger();
3834
+ const logger$3 = new Logger();
3679
3835
 
3680
3836
  /**
3681
3837
  * Removes all key-value entries from the list cache.
@@ -3958,20 +4114,20 @@
3958
4114
  var _Symbol = Symbol$1;
3959
4115
 
3960
4116
  /** Used for built-in method references. */
3961
- var objectProto = Object.prototype;
4117
+ var objectProto$b = Object.prototype;
3962
4118
 
3963
4119
  /** Used to check objects for own properties. */
3964
- var hasOwnProperty = objectProto.hasOwnProperty;
4120
+ var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
3965
4121
 
3966
4122
  /**
3967
4123
  * Used to resolve the
3968
4124
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
3969
4125
  * of values.
3970
4126
  */
3971
- var nativeObjectToString = objectProto.toString;
4127
+ var nativeObjectToString$1 = objectProto$b.toString;
3972
4128
 
3973
4129
  /** Built-in value references. */
3974
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
4130
+ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
3975
4131
 
3976
4132
  /**
3977
4133
  * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
@@ -3981,20 +4137,20 @@
3981
4137
  * @returns {string} Returns the raw `toStringTag`.
3982
4138
  */
3983
4139
  function getRawTag(value) {
3984
- var isOwn = hasOwnProperty.call(value, symToStringTag),
3985
- tag = value[symToStringTag];
4140
+ var isOwn = hasOwnProperty$9.call(value, symToStringTag$1),
4141
+ tag = value[symToStringTag$1];
3986
4142
 
3987
4143
  try {
3988
- value[symToStringTag] = undefined;
4144
+ value[symToStringTag$1] = undefined;
3989
4145
  var unmasked = true;
3990
4146
  } catch (e) {}
3991
4147
 
3992
- var result = nativeObjectToString.call(value);
4148
+ var result = nativeObjectToString$1.call(value);
3993
4149
  if (unmasked) {
3994
4150
  if (isOwn) {
3995
- value[symToStringTag] = tag;
4151
+ value[symToStringTag$1] = tag;
3996
4152
  } else {
3997
- delete value[symToStringTag];
4153
+ delete value[symToStringTag$1];
3998
4154
  }
3999
4155
  }
4000
4156
  return result;
@@ -4003,14 +4159,14 @@
4003
4159
  var _getRawTag = getRawTag;
4004
4160
 
4005
4161
  /** Used for built-in method references. */
4006
- var objectProto$1 = Object.prototype;
4162
+ var objectProto$a = Object.prototype;
4007
4163
 
4008
4164
  /**
4009
4165
  * Used to resolve the
4010
4166
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4011
4167
  * of values.
4012
4168
  */
4013
- var nativeObjectToString$1 = objectProto$1.toString;
4169
+ var nativeObjectToString = objectProto$a.toString;
4014
4170
 
4015
4171
  /**
4016
4172
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -4020,17 +4176,17 @@
4020
4176
  * @returns {string} Returns the converted string.
4021
4177
  */
4022
4178
  function objectToString(value) {
4023
- return nativeObjectToString$1.call(value);
4179
+ return nativeObjectToString.call(value);
4024
4180
  }
4025
4181
 
4026
4182
  var _objectToString = objectToString;
4027
4183
 
4028
4184
  /** `Object#toString` result references. */
4029
- var nullTag = '[object Null]',
4185
+ var nullTag$1 = '[object Null]',
4030
4186
  undefinedTag = '[object Undefined]';
4031
4187
 
4032
4188
  /** Built-in value references. */
4033
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
4189
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
4034
4190
 
4035
4191
  /**
4036
4192
  * The base implementation of `getTag` without fallbacks for buggy environments.
@@ -4041,9 +4197,9 @@
4041
4197
  */
4042
4198
  function baseGetTag(value) {
4043
4199
  if (value == null) {
4044
- return value === undefined ? undefinedTag : nullTag;
4200
+ return value === undefined ? undefinedTag : nullTag$1;
4045
4201
  }
4046
- return (symToStringTag$1 && symToStringTag$1 in Object(value))
4202
+ return (symToStringTag && symToStringTag in Object(value))
4047
4203
  ? _getRawTag(value)
4048
4204
  : _objectToString(value);
4049
4205
  }
@@ -4075,16 +4231,16 @@
4075
4231
  * _.isObject(null);
4076
4232
  * // => false
4077
4233
  */
4078
- function isObject$1(value) {
4234
+ function isObject(value) {
4079
4235
  var type = typeof value;
4080
4236
  return value != null && (type == 'object' || type == 'function');
4081
4237
  }
4082
4238
 
4083
- var isObject_1 = isObject$1;
4239
+ var isObject_1 = isObject;
4084
4240
 
4085
4241
  /** `Object#toString` result references. */
4086
4242
  var asyncTag = '[object AsyncFunction]',
4087
- funcTag = '[object Function]',
4243
+ funcTag$1 = '[object Function]',
4088
4244
  genTag = '[object GeneratorFunction]',
4089
4245
  proxyTag = '[object Proxy]';
4090
4246
 
@@ -4112,7 +4268,7 @@
4112
4268
  // The use of `Object#toString` avoids issues with the `typeof` operator
4113
4269
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
4114
4270
  var tag = _baseGetTag(value);
4115
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
4271
+ return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
4116
4272
  }
4117
4273
 
4118
4274
  var isFunction_1 = isFunction;
@@ -4142,10 +4298,10 @@
4142
4298
  var _isMasked = isMasked;
4143
4299
 
4144
4300
  /** Used for built-in method references. */
4145
- var funcProto = Function.prototype;
4301
+ var funcProto$1 = Function.prototype;
4146
4302
 
4147
4303
  /** Used to resolve the decompiled source of functions. */
4148
- var funcToString = funcProto.toString;
4304
+ var funcToString$1 = funcProto$1.toString;
4149
4305
 
4150
4306
  /**
4151
4307
  * Converts `func` to its source code.
@@ -4157,7 +4313,7 @@
4157
4313
  function toSource(func) {
4158
4314
  if (func != null) {
4159
4315
  try {
4160
- return funcToString.call(func);
4316
+ return funcToString$1.call(func);
4161
4317
  } catch (e) {}
4162
4318
  try {
4163
4319
  return (func + '');
@@ -4178,18 +4334,18 @@
4178
4334
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
4179
4335
 
4180
4336
  /** Used for built-in method references. */
4181
- var funcProto$1 = Function.prototype,
4182
- objectProto$2 = Object.prototype;
4337
+ var funcProto = Function.prototype,
4338
+ objectProto$9 = Object.prototype;
4183
4339
 
4184
4340
  /** Used to resolve the decompiled source of functions. */
4185
- var funcToString$1 = funcProto$1.toString;
4341
+ var funcToString = funcProto.toString;
4186
4342
 
4187
4343
  /** Used to check objects for own properties. */
4188
- var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
4344
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
4189
4345
 
4190
4346
  /** Used to detect if a method is native. */
4191
4347
  var reIsNative = RegExp('^' +
4192
- funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar, '\\$&')
4348
+ funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
4193
4349
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
4194
4350
  );
4195
4351
 
@@ -4283,13 +4439,13 @@
4283
4439
  var _hashDelete = hashDelete;
4284
4440
 
4285
4441
  /** Used to stand-in for `undefined` hash values. */
4286
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
4442
+ var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
4287
4443
 
4288
4444
  /** Used for built-in method references. */
4289
- var objectProto$3 = Object.prototype;
4445
+ var objectProto$8 = Object.prototype;
4290
4446
 
4291
4447
  /** Used to check objects for own properties. */
4292
- var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
4448
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
4293
4449
 
4294
4450
  /**
4295
4451
  * Gets the hash value for `key`.
@@ -4304,18 +4460,18 @@
4304
4460
  var data = this.__data__;
4305
4461
  if (_nativeCreate) {
4306
4462
  var result = data[key];
4307
- return result === HASH_UNDEFINED ? undefined : result;
4463
+ return result === HASH_UNDEFINED$2 ? undefined : result;
4308
4464
  }
4309
- return hasOwnProperty$2.call(data, key) ? data[key] : undefined;
4465
+ return hasOwnProperty$7.call(data, key) ? data[key] : undefined;
4310
4466
  }
4311
4467
 
4312
4468
  var _hashGet = hashGet;
4313
4469
 
4314
4470
  /** Used for built-in method references. */
4315
- var objectProto$4 = Object.prototype;
4471
+ var objectProto$7 = Object.prototype;
4316
4472
 
4317
4473
  /** Used to check objects for own properties. */
4318
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
4474
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
4319
4475
 
4320
4476
  /**
4321
4477
  * Checks if a hash value for `key` exists.
@@ -4328,7 +4484,7 @@
4328
4484
  */
4329
4485
  function hashHas(key) {
4330
4486
  var data = this.__data__;
4331
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key);
4487
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$6.call(data, key);
4332
4488
  }
4333
4489
 
4334
4490
  var _hashHas = hashHas;
@@ -4581,7 +4737,7 @@
4581
4737
  var _Stack = Stack;
4582
4738
 
4583
4739
  /** Used to stand-in for `undefined` hash values. */
4584
- var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
4740
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
4585
4741
 
4586
4742
  /**
4587
4743
  * Adds `value` to the array cache.
@@ -4594,7 +4750,7 @@
4594
4750
  * @returns {Object} Returns the cache instance.
4595
4751
  */
4596
4752
  function setCacheAdd(value) {
4597
- this.__data__.set(value, HASH_UNDEFINED$2);
4753
+ this.__data__.set(value, HASH_UNDEFINED);
4598
4754
  return this;
4599
4755
  }
4600
4756
 
@@ -4678,8 +4834,8 @@
4678
4834
  var _cacheHas = cacheHas;
4679
4835
 
4680
4836
  /** Used to compose bitmasks for value comparisons. */
4681
- var COMPARE_PARTIAL_FLAG = 1,
4682
- COMPARE_UNORDERED_FLAG = 2;
4837
+ var COMPARE_PARTIAL_FLAG$3 = 1,
4838
+ COMPARE_UNORDERED_FLAG$1 = 2;
4683
4839
 
4684
4840
  /**
4685
4841
  * A specialized version of `baseIsEqualDeep` for arrays with support for
@@ -4695,7 +4851,7 @@
4695
4851
  * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
4696
4852
  */
4697
4853
  function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
4698
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
4854
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
4699
4855
  arrLength = array.length,
4700
4856
  othLength = other.length;
4701
4857
 
@@ -4710,7 +4866,7 @@
4710
4866
  }
4711
4867
  var index = -1,
4712
4868
  result = true,
4713
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new _SetCache : undefined;
4869
+ seen = (bitmask & COMPARE_UNORDERED_FLAG$1) ? new _SetCache : undefined;
4714
4870
 
4715
4871
  stack.set(array, other);
4716
4872
  stack.set(other, array);
@@ -4802,22 +4958,22 @@
4802
4958
  var _setToArray = setToArray;
4803
4959
 
4804
4960
  /** Used to compose bitmasks for value comparisons. */
4805
- var COMPARE_PARTIAL_FLAG$1 = 1,
4806
- COMPARE_UNORDERED_FLAG$1 = 2;
4961
+ var COMPARE_PARTIAL_FLAG$2 = 1,
4962
+ COMPARE_UNORDERED_FLAG = 2;
4807
4963
 
4808
4964
  /** `Object#toString` result references. */
4809
- var boolTag = '[object Boolean]',
4810
- dateTag = '[object Date]',
4811
- errorTag = '[object Error]',
4812
- mapTag = '[object Map]',
4813
- numberTag = '[object Number]',
4814
- regexpTag = '[object RegExp]',
4815
- setTag = '[object Set]',
4816
- stringTag = '[object String]',
4965
+ var boolTag$2 = '[object Boolean]',
4966
+ dateTag$1 = '[object Date]',
4967
+ errorTag$1 = '[object Error]',
4968
+ mapTag$2 = '[object Map]',
4969
+ numberTag$1 = '[object Number]',
4970
+ regexpTag$1 = '[object RegExp]',
4971
+ setTag$2 = '[object Set]',
4972
+ stringTag$1 = '[object String]',
4817
4973
  symbolTag = '[object Symbol]';
4818
4974
 
4819
- var arrayBufferTag = '[object ArrayBuffer]',
4820
- dataViewTag = '[object DataView]';
4975
+ var arrayBufferTag$1 = '[object ArrayBuffer]',
4976
+ dataViewTag$2 = '[object DataView]';
4821
4977
 
4822
4978
  /** Used to convert symbols to primitives and strings. */
4823
4979
  var symbolProto = _Symbol ? _Symbol.prototype : undefined,
@@ -4842,7 +4998,7 @@
4842
4998
  */
4843
4999
  function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
4844
5000
  switch (tag) {
4845
- case dataViewTag:
5001
+ case dataViewTag$2:
4846
5002
  if ((object.byteLength != other.byteLength) ||
4847
5003
  (object.byteOffset != other.byteOffset)) {
4848
5004
  return false;
@@ -4850,35 +5006,35 @@
4850
5006
  object = object.buffer;
4851
5007
  other = other.buffer;
4852
5008
 
4853
- case arrayBufferTag:
5009
+ case arrayBufferTag$1:
4854
5010
  if ((object.byteLength != other.byteLength) ||
4855
5011
  !equalFunc(new _Uint8Array(object), new _Uint8Array(other))) {
4856
5012
  return false;
4857
5013
  }
4858
5014
  return true;
4859
5015
 
4860
- case boolTag:
4861
- case dateTag:
4862
- case numberTag:
5016
+ case boolTag$2:
5017
+ case dateTag$1:
5018
+ case numberTag$1:
4863
5019
  // Coerce booleans to `1` or `0` and dates to milliseconds.
4864
5020
  // Invalid dates are coerced to `NaN`.
4865
5021
  return eq_1(+object, +other);
4866
5022
 
4867
- case errorTag:
5023
+ case errorTag$1:
4868
5024
  return object.name == other.name && object.message == other.message;
4869
5025
 
4870
- case regexpTag:
4871
- case stringTag:
5026
+ case regexpTag$1:
5027
+ case stringTag$1:
4872
5028
  // Coerce regexes to strings and treat strings, primitives and objects,
4873
5029
  // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
4874
5030
  // for more details.
4875
5031
  return object == (other + '');
4876
5032
 
4877
- case mapTag:
5033
+ case mapTag$2:
4878
5034
  var convert = _mapToArray;
4879
5035
 
4880
- case setTag:
4881
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1;
5036
+ case setTag$2:
5037
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
4882
5038
  convert || (convert = _setToArray);
4883
5039
 
4884
5040
  if (object.size != other.size && !isPartial) {
@@ -4889,7 +5045,7 @@
4889
5045
  if (stacked) {
4890
5046
  return stacked == other;
4891
5047
  }
4892
- bitmask |= COMPARE_UNORDERED_FLAG$1;
5048
+ bitmask |= COMPARE_UNORDERED_FLAG;
4893
5049
 
4894
5050
  // Recursively compare objects (susceptible to call stack limits).
4895
5051
  stack.set(object, other);
@@ -5024,10 +5180,10 @@
5024
5180
  var stubArray_1 = stubArray;
5025
5181
 
5026
5182
  /** Used for built-in method references. */
5027
- var objectProto$5 = Object.prototype;
5183
+ var objectProto$6 = Object.prototype;
5028
5184
 
5029
5185
  /** Built-in value references. */
5030
- var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
5186
+ var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
5031
5187
 
5032
5188
  /* Built-in method references for those with the same name as other `lodash` methods. */
5033
5189
  var nativeGetSymbols = Object.getOwnPropertySymbols;
@@ -5045,7 +5201,7 @@
5045
5201
  }
5046
5202
  object = Object(object);
5047
5203
  return _arrayFilter(nativeGetSymbols(object), function(symbol) {
5048
- return propertyIsEnumerable.call(object, symbol);
5204
+ return propertyIsEnumerable$1.call(object, symbol);
5049
5205
  });
5050
5206
  };
5051
5207
 
@@ -5103,7 +5259,7 @@
5103
5259
  var isObjectLike_1 = isObjectLike;
5104
5260
 
5105
5261
  /** `Object#toString` result references. */
5106
- var argsTag = '[object Arguments]';
5262
+ var argsTag$2 = '[object Arguments]';
5107
5263
 
5108
5264
  /**
5109
5265
  * The base implementation of `_.isArguments`.
@@ -5113,19 +5269,19 @@
5113
5269
  * @returns {boolean} Returns `true` if `value` is an `arguments` object,
5114
5270
  */
5115
5271
  function baseIsArguments(value) {
5116
- return isObjectLike_1(value) && _baseGetTag(value) == argsTag;
5272
+ return isObjectLike_1(value) && _baseGetTag(value) == argsTag$2;
5117
5273
  }
5118
5274
 
5119
5275
  var _baseIsArguments = baseIsArguments;
5120
5276
 
5121
5277
  /** Used for built-in method references. */
5122
- var objectProto$6 = Object.prototype;
5278
+ var objectProto$5 = Object.prototype;
5123
5279
 
5124
5280
  /** Used to check objects for own properties. */
5125
- var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
5281
+ var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
5126
5282
 
5127
5283
  /** Built-in value references. */
5128
- var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
5284
+ var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
5129
5285
 
5130
5286
  /**
5131
5287
  * Checks if `value` is likely an `arguments` object.
@@ -5146,8 +5302,8 @@
5146
5302
  * // => false
5147
5303
  */
5148
5304
  var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
5149
- return isObjectLike_1(value) && hasOwnProperty$4.call(value, 'callee') &&
5150
- !propertyIsEnumerable$1.call(value, 'callee');
5305
+ return isObjectLike_1(value) && hasOwnProperty$5.call(value, 'callee') &&
5306
+ !propertyIsEnumerable.call(value, 'callee');
5151
5307
  };
5152
5308
 
5153
5309
  var isArguments_1 = isArguments;
@@ -5173,7 +5329,7 @@
5173
5329
 
5174
5330
  var isBuffer_1 = createCommonjsModule(function (module, exports) {
5175
5331
  /** Detect free variable `exports`. */
5176
- var freeExports = exports && !exports.nodeType && exports;
5332
+ var freeExports = exports && !exports.nodeType && exports;
5177
5333
 
5178
5334
  /** Detect free variable `module`. */
5179
5335
  var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
@@ -5210,7 +5366,7 @@
5210
5366
  });
5211
5367
 
5212
5368
  /** Used as references for various `Number` constants. */
5213
- var MAX_SAFE_INTEGER = 9007199254740991;
5369
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
5214
5370
 
5215
5371
  /** Used to detect unsigned integer values. */
5216
5372
  var reIsUint = /^(?:0|[1-9]\d*)$/;
@@ -5225,7 +5381,7 @@
5225
5381
  */
5226
5382
  function isIndex(value, length) {
5227
5383
  var type = typeof value;
5228
- length = length == null ? MAX_SAFE_INTEGER : length;
5384
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
5229
5385
 
5230
5386
  return !!length &&
5231
5387
  (type == 'number' ||
@@ -5236,7 +5392,7 @@
5236
5392
  var _isIndex = isIndex;
5237
5393
 
5238
5394
  /** Used as references for various `Number` constants. */
5239
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
5395
+ var MAX_SAFE_INTEGER = 9007199254740991;
5240
5396
 
5241
5397
  /**
5242
5398
  * Checks if `value` is a valid array-like length.
@@ -5266,27 +5422,27 @@
5266
5422
  */
5267
5423
  function isLength(value) {
5268
5424
  return typeof value == 'number' &&
5269
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
5425
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
5270
5426
  }
5271
5427
 
5272
5428
  var isLength_1 = isLength;
5273
5429
 
5274
5430
  /** `Object#toString` result references. */
5275
5431
  var argsTag$1 = '[object Arguments]',
5276
- arrayTag = '[object Array]',
5432
+ arrayTag$1 = '[object Array]',
5277
5433
  boolTag$1 = '[object Boolean]',
5278
- dateTag$1 = '[object Date]',
5279
- errorTag$1 = '[object Error]',
5280
- funcTag$1 = '[object Function]',
5434
+ dateTag = '[object Date]',
5435
+ errorTag = '[object Error]',
5436
+ funcTag = '[object Function]',
5281
5437
  mapTag$1 = '[object Map]',
5282
- numberTag$1 = '[object Number]',
5283
- objectTag = '[object Object]',
5284
- regexpTag$1 = '[object RegExp]',
5438
+ numberTag = '[object Number]',
5439
+ objectTag$2 = '[object Object]',
5440
+ regexpTag = '[object RegExp]',
5285
5441
  setTag$1 = '[object Set]',
5286
- stringTag$1 = '[object String]',
5287
- weakMapTag = '[object WeakMap]';
5442
+ stringTag = '[object String]',
5443
+ weakMapTag$1 = '[object WeakMap]';
5288
5444
 
5289
- var arrayBufferTag$1 = '[object ArrayBuffer]',
5445
+ var arrayBufferTag = '[object ArrayBuffer]',
5290
5446
  dataViewTag$1 = '[object DataView]',
5291
5447
  float32Tag = '[object Float32Array]',
5292
5448
  float64Tag = '[object Float64Array]',
@@ -5305,14 +5461,14 @@
5305
5461
  typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
5306
5462
  typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
5307
5463
  typedArrayTags[uint32Tag] = true;
5308
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag] =
5309
- typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] =
5310
- typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag$1] =
5311
- typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] =
5312
- typedArrayTags[mapTag$1] = typedArrayTags[numberTag$1] =
5313
- typedArrayTags[objectTag] = typedArrayTags[regexpTag$1] =
5314
- typedArrayTags[setTag$1] = typedArrayTags[stringTag$1] =
5315
- typedArrayTags[weakMapTag] = false;
5464
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
5465
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag$1] =
5466
+ typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
5467
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
5468
+ typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
5469
+ typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
5470
+ typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
5471
+ typedArrayTags[weakMapTag$1] = false;
5316
5472
 
5317
5473
  /**
5318
5474
  * The base implementation of `_.isTypedArray` without Node.js optimizations.
@@ -5345,7 +5501,7 @@
5345
5501
 
5346
5502
  var _nodeUtil = createCommonjsModule(function (module, exports) {
5347
5503
  /** Detect free variable `exports`. */
5348
- var freeExports = exports && !exports.nodeType && exports;
5504
+ var freeExports = exports && !exports.nodeType && exports;
5349
5505
 
5350
5506
  /** Detect free variable `module`. */
5351
5507
  var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
@@ -5399,10 +5555,10 @@
5399
5555
  var isTypedArray_1 = isTypedArray;
5400
5556
 
5401
5557
  /** Used for built-in method references. */
5402
- var objectProto$7 = Object.prototype;
5558
+ var objectProto$4 = Object.prototype;
5403
5559
 
5404
5560
  /** Used to check objects for own properties. */
5405
- var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
5561
+ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
5406
5562
 
5407
5563
  /**
5408
5564
  * Creates an array of the enumerable property names of the array-like `value`.
@@ -5422,7 +5578,7 @@
5422
5578
  length = result.length;
5423
5579
 
5424
5580
  for (var key in value) {
5425
- if ((inherited || hasOwnProperty$5.call(value, key)) &&
5581
+ if ((inherited || hasOwnProperty$4.call(value, key)) &&
5426
5582
  !(skipIndexes && (
5427
5583
  // Safari 9 has enumerable `arguments.length` in strict mode.
5428
5584
  key == 'length' ||
@@ -5442,7 +5598,7 @@
5442
5598
  var _arrayLikeKeys = arrayLikeKeys;
5443
5599
 
5444
5600
  /** Used for built-in method references. */
5445
- var objectProto$8 = Object.prototype;
5601
+ var objectProto$3 = Object.prototype;
5446
5602
 
5447
5603
  /**
5448
5604
  * Checks if `value` is likely a prototype object.
@@ -5453,7 +5609,7 @@
5453
5609
  */
5454
5610
  function isPrototype(value) {
5455
5611
  var Ctor = value && value.constructor,
5456
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$8;
5612
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
5457
5613
 
5458
5614
  return value === proto;
5459
5615
  }
@@ -5482,10 +5638,10 @@
5482
5638
  var _nativeKeys = nativeKeys;
5483
5639
 
5484
5640
  /** Used for built-in method references. */
5485
- var objectProto$9 = Object.prototype;
5641
+ var objectProto$2 = Object.prototype;
5486
5642
 
5487
5643
  /** Used to check objects for own properties. */
5488
- var hasOwnProperty$6 = objectProto$9.hasOwnProperty;
5644
+ var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
5489
5645
 
5490
5646
  /**
5491
5647
  * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
@@ -5500,7 +5656,7 @@
5500
5656
  }
5501
5657
  var result = [];
5502
5658
  for (var key in Object(object)) {
5503
- if (hasOwnProperty$6.call(object, key) && key != 'constructor') {
5659
+ if (hasOwnProperty$3.call(object, key) && key != 'constructor') {
5504
5660
  result.push(key);
5505
5661
  }
5506
5662
  }
@@ -5588,13 +5744,13 @@
5588
5744
  var _getAllKeys = getAllKeys;
5589
5745
 
5590
5746
  /** Used to compose bitmasks for value comparisons. */
5591
- var COMPARE_PARTIAL_FLAG$2 = 1;
5747
+ var COMPARE_PARTIAL_FLAG$1 = 1;
5592
5748
 
5593
5749
  /** Used for built-in method references. */
5594
- var objectProto$a = Object.prototype;
5750
+ var objectProto$1 = Object.prototype;
5595
5751
 
5596
5752
  /** Used to check objects for own properties. */
5597
- var hasOwnProperty$7 = objectProto$a.hasOwnProperty;
5753
+ var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
5598
5754
 
5599
5755
  /**
5600
5756
  * A specialized version of `baseIsEqualDeep` for objects with support for
@@ -5610,7 +5766,7 @@
5610
5766
  * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
5611
5767
  */
5612
5768
  function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
5613
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2,
5769
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1,
5614
5770
  objProps = _getAllKeys(object),
5615
5771
  objLength = objProps.length,
5616
5772
  othProps = _getAllKeys(other),
@@ -5622,7 +5778,7 @@
5622
5778
  var index = objLength;
5623
5779
  while (index--) {
5624
5780
  var key = objProps[index];
5625
- if (!(isPartial ? key in other : hasOwnProperty$7.call(other, key))) {
5781
+ if (!(isPartial ? key in other : hasOwnProperty$2.call(other, key))) {
5626
5782
  return false;
5627
5783
  }
5628
5784
  }
@@ -5697,13 +5853,13 @@
5697
5853
  var _WeakMap = WeakMap;
5698
5854
 
5699
5855
  /** `Object#toString` result references. */
5700
- var mapTag$2 = '[object Map]',
5856
+ var mapTag = '[object Map]',
5701
5857
  objectTag$1 = '[object Object]',
5702
5858
  promiseTag = '[object Promise]',
5703
- setTag$2 = '[object Set]',
5704
- weakMapTag$1 = '[object WeakMap]';
5859
+ setTag = '[object Set]',
5860
+ weakMapTag = '[object WeakMap]';
5705
5861
 
5706
- var dataViewTag$2 = '[object DataView]';
5862
+ var dataViewTag = '[object DataView]';
5707
5863
 
5708
5864
  /** Used to detect maps, sets, and weakmaps. */
5709
5865
  var dataViewCtorString = _toSource(_DataView),
@@ -5722,11 +5878,11 @@
5722
5878
  var getTag = _baseGetTag;
5723
5879
 
5724
5880
  // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
5725
- if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
5726
- (_Map && getTag(new _Map) != mapTag$2) ||
5881
+ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
5882
+ (_Map && getTag(new _Map) != mapTag) ||
5727
5883
  (_Promise && getTag(_Promise.resolve()) != promiseTag) ||
5728
- (_Set && getTag(new _Set) != setTag$2) ||
5729
- (_WeakMap && getTag(new _WeakMap) != weakMapTag$1)) {
5884
+ (_Set && getTag(new _Set) != setTag) ||
5885
+ (_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
5730
5886
  getTag = function(value) {
5731
5887
  var result = _baseGetTag(value),
5732
5888
  Ctor = result == objectTag$1 ? value.constructor : undefined,
@@ -5734,11 +5890,11 @@
5734
5890
 
5735
5891
  if (ctorString) {
5736
5892
  switch (ctorString) {
5737
- case dataViewCtorString: return dataViewTag$2;
5738
- case mapCtorString: return mapTag$2;
5893
+ case dataViewCtorString: return dataViewTag;
5894
+ case mapCtorString: return mapTag;
5739
5895
  case promiseCtorString: return promiseTag;
5740
- case setCtorString: return setTag$2;
5741
- case weakMapCtorString: return weakMapTag$1;
5896
+ case setCtorString: return setTag;
5897
+ case weakMapCtorString: return weakMapTag;
5742
5898
  }
5743
5899
  }
5744
5900
  return result;
@@ -5748,18 +5904,18 @@
5748
5904
  var _getTag = getTag;
5749
5905
 
5750
5906
  /** Used to compose bitmasks for value comparisons. */
5751
- var COMPARE_PARTIAL_FLAG$3 = 1;
5907
+ var COMPARE_PARTIAL_FLAG = 1;
5752
5908
 
5753
5909
  /** `Object#toString` result references. */
5754
- var argsTag$2 = '[object Arguments]',
5755
- arrayTag$1 = '[object Array]',
5756
- objectTag$2 = '[object Object]';
5910
+ var argsTag = '[object Arguments]',
5911
+ arrayTag = '[object Array]',
5912
+ objectTag = '[object Object]';
5757
5913
 
5758
5914
  /** Used for built-in method references. */
5759
- var objectProto$b = Object.prototype;
5915
+ var objectProto = Object.prototype;
5760
5916
 
5761
5917
  /** Used to check objects for own properties. */
5762
- var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
5918
+ var hasOwnProperty$1 = objectProto.hasOwnProperty;
5763
5919
 
5764
5920
  /**
5765
5921
  * A specialized version of `baseIsEqual` for arrays and objects which performs
@@ -5778,14 +5934,14 @@
5778
5934
  function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
5779
5935
  var objIsArr = isArray_1(object),
5780
5936
  othIsArr = isArray_1(other),
5781
- objTag = objIsArr ? arrayTag$1 : _getTag(object),
5782
- othTag = othIsArr ? arrayTag$1 : _getTag(other);
5937
+ objTag = objIsArr ? arrayTag : _getTag(object),
5938
+ othTag = othIsArr ? arrayTag : _getTag(other);
5783
5939
 
5784
- objTag = objTag == argsTag$2 ? objectTag$2 : objTag;
5785
- othTag = othTag == argsTag$2 ? objectTag$2 : othTag;
5940
+ objTag = objTag == argsTag ? objectTag : objTag;
5941
+ othTag = othTag == argsTag ? objectTag : othTag;
5786
5942
 
5787
- var objIsObj = objTag == objectTag$2,
5788
- othIsObj = othTag == objectTag$2,
5943
+ var objIsObj = objTag == objectTag,
5944
+ othIsObj = othTag == objectTag,
5789
5945
  isSameTag = objTag == othTag;
5790
5946
 
5791
5947
  if (isSameTag && isBuffer_1(object)) {
@@ -5801,9 +5957,9 @@
5801
5957
  ? _equalArrays(object, other, bitmask, customizer, equalFunc, stack)
5802
5958
  : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
5803
5959
  }
5804
- if (!(bitmask & COMPARE_PARTIAL_FLAG$3)) {
5805
- var objIsWrapped = objIsObj && hasOwnProperty$8.call(object, '__wrapped__'),
5806
- othIsWrapped = othIsObj && hasOwnProperty$8.call(other, '__wrapped__');
5960
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
5961
+ var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, '__wrapped__'),
5962
+ othIsWrapped = othIsObj && hasOwnProperty$1.call(other, '__wrapped__');
5807
5963
 
5808
5964
  if (objIsWrapped || othIsWrapped) {
5809
5965
  var objUnwrapped = objIsWrapped ? object.value() : object,
@@ -5922,7 +6078,7 @@
5922
6078
  return fetch(url, options).then(async (r) => {
5923
6079
  var _a;
5924
6080
  if (!r.ok && r.type !== 'opaqueredirect' && r.type !== 'opaque') {
5925
- logger.error('Failure', await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
6081
+ logger$3.error('Failure', await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
5926
6082
  }
5927
6083
  return r;
5928
6084
  });
@@ -5945,7 +6101,7 @@
5945
6101
  return res.ok;
5946
6102
  }
5947
6103
  catch (e) {
5948
- logger.warn(`Token Verification Service failed : ${e.message}`);
6104
+ logger$3.warn(`Token Verification Service failed : ${e.message}`);
5949
6105
  }
5950
6106
  return false;
5951
6107
  }
@@ -6048,7 +6204,7 @@
6048
6204
  await validateAuthToken(embedConfig, authToken);
6049
6205
  }
6050
6206
  catch (e) {
6051
- logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
6207
+ logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
6052
6208
  throw e;
6053
6209
  }
6054
6210
  cachedAuthToken = authToken;
@@ -6056,7 +6212,7 @@
6056
6212
  }
6057
6213
  const validateAuthToken = async (embedConfig, authToken, suppressAlert) => {
6058
6214
  if (embedConfig.disableTokenVerification) {
6059
- logger.info('Token verification is disabled. Assuming token is valid.');
6215
+ logger$3.info('Token verification is disabled. Assuming token is valid.');
6060
6216
  return true;
6061
6217
  }
6062
6218
  try {
@@ -6608,7 +6764,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
6608
6764
  * @param deviceScaleFactor The scale factor for the PNG
6609
6765
  * @return Response
6610
6766
  */
6611
- async fetchPNGBlob(userLocale = 'en-us', includeInfo = false, omitBackground = false, deviceScaleFactor = 2) {
6767
+ async fetchPNGBlob(userLocale = 'en-us', omitBackground = false, deviceScaleFactor = 2) {
6612
6768
  const fetchUrl = this.getFetchPNGBlobUrl(userLocale, omitBackground, deviceScaleFactor);
6613
6769
  return tokenizedFetch(fetchUrl, {
6614
6770
  credentials: 'include',
@@ -6766,7 +6922,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
6766
6922
  function addPointFromColVal(colVal) {
6767
6923
  var _a;
6768
6924
  const dataType = colVal.column.dataType;
6769
- const id = colVal.column.id;
6925
+ colVal.column.id;
6770
6926
  let dataValue;
6771
6927
  if (dataType === 'DATE') {
6772
6928
  if (Number.isFinite(colVal.value)) {
@@ -6914,7 +7070,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
6914
7070
  var ObjProto = Object.prototype;
6915
7071
  var slice = ArrayProto.slice;
6916
7072
  var toString = ObjProto.toString;
6917
- var hasOwnProperty$9 = ObjProto.hasOwnProperty;
7073
+ var hasOwnProperty = ObjProto.hasOwnProperty;
6918
7074
  var windowConsole = window$1.console;
6919
7075
  var navigator = window$1.navigator;
6920
7076
  var document$1 = window$1.document;
@@ -7051,7 +7207,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
7051
7207
  }
7052
7208
  } else {
7053
7209
  for (var key in obj) {
7054
- if (hasOwnProperty$9.call(obj, key)) {
7210
+ if (hasOwnProperty.call(obj, key)) {
7055
7211
  if (iterator.call(context, obj[key], key, obj) === breaker) {
7056
7212
  return;
7057
7213
  }
@@ -7087,7 +7243,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
7087
7243
  };
7088
7244
 
7089
7245
  _.isArguments = function(obj) {
7090
- return !!(obj && hasOwnProperty$9.call(obj, 'callee'));
7246
+ return !!(obj && hasOwnProperty.call(obj, 'callee'));
7091
7247
  };
7092
7248
 
7093
7249
  _.toArray = function(iterable) {
@@ -7175,7 +7331,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
7175
7331
  _.isEmptyObject = function(obj) {
7176
7332
  if (_.isObject(obj)) {
7177
7333
  for (var key in obj) {
7178
- if (hasOwnProperty$9.call(obj, key)) {
7334
+ if (hasOwnProperty.call(obj, key)) {
7179
7335
  return false;
7180
7336
  }
7181
7337
  }
@@ -7367,7 +7523,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
7367
7523
 
7368
7524
  // Iterate through all of the keys in the object.
7369
7525
  for (k in value) {
7370
- if (hasOwnProperty$9.call(value, k)) {
7526
+ if (hasOwnProperty.call(value, k)) {
7371
7527
  v = str(k, value);
7372
7528
  if (v) {
7373
7529
  partial.push(quote(k) + (gap ? ': ' : ':') + v);
@@ -9175,7 +9331,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
9175
9331
  // maximum interval between request retries after exponential backoff
9176
9332
  var MAX_RETRY_INTERVAL_MS = 10 * 60 * 1000; // 10 minutes
9177
9333
 
9178
- var logger$3 = console_with_prefix('batch');
9334
+ var logger = console_with_prefix('batch');
9179
9335
 
9180
9336
  /**
9181
9337
  * RequestBatcher: manages the queueing, flushing, retry etc of requests of one
@@ -9279,7 +9435,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
9279
9435
  try {
9280
9436
 
9281
9437
  if (this.requestInProgress) {
9282
- logger$3.log('Flush: Request already in progress');
9438
+ logger.log('Flush: Request already in progress');
9283
9439
  return;
9284
9440
  }
9285
9441
 
@@ -9440,7 +9596,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
9440
9596
  if (options.unloading) {
9441
9597
  requestOptions.transport = 'sendBeacon';
9442
9598
  }
9443
- logger$3.log('MIXPANEL REQUEST:', dataForRequest);
9599
+ logger.log('MIXPANEL REQUEST:', dataForRequest);
9444
9600
  this.sendRequest(dataForRequest, requestOptions, batchSendCallback);
9445
9601
 
9446
9602
  } catch(err) {
@@ -9453,7 +9609,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
9453
9609
  * Log error to global logger and optional user-defined logger.
9454
9610
  */
9455
9611
  RequestBatcher.prototype.reportError = function(msg, err) {
9456
- logger$3.error.apply(logger$3.error, arguments);
9612
+ logger.error.apply(logger.error, arguments);
9457
9613
  if (this.errorReporter) {
9458
9614
  try {
9459
9615
  if (!(err instanceof Error)) {
@@ -9461,7 +9617,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
9461
9617
  }
9462
9618
  this.errorReporter(msg, err);
9463
9619
  } catch(err) {
9464
- logger$3.error(err);
9620
+ logger.error(err);
9465
9621
  }
9466
9622
  }
9467
9623
  };
@@ -13014,9 +13170,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13014
13170
 
13015
13171
  var mixpanel_cjs = mixpanel;
13016
13172
 
13017
- var mixpanel$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), mixpanel_cjs, {
13018
- 'default': mixpanel_cjs
13019
- }));
13173
+ var mixpanel$1 = /*#__PURE__*/_mergeNamespaces({
13174
+ __proto__: null,
13175
+ default: mixpanel_cjs
13176
+ }, [mixpanel_cjs]);
13020
13177
 
13021
13178
  // Needed to avoid error in CJS builds on some bundlers.
13022
13179
  const mixpanelLib = mixpanel_cjs || mixpanel$1;
@@ -13069,7 +13226,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13069
13226
  function initMixpanel(sessionInfo) {
13070
13227
  var _a;
13071
13228
  if (!sessionInfo || !sessionInfo.mixpanelToken) {
13072
- logger.error(ERROR_MESSAGE.MIXPANEL_TOKEN_NOT_FOUND);
13229
+ logger$3.error(ERROR_MESSAGE.MIXPANEL_TOKEN_NOT_FOUND);
13073
13230
  return;
13074
13231
  }
13075
13232
  // On a public cluster the user is anonymous, so don't set the identify to
@@ -13093,7 +13250,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13093
13250
  }
13094
13251
  }
13095
13252
  catch (e) {
13096
- logger.error('Error initializing mixpanel', e);
13253
+ logger$3.error('Error initializing mixpanel', e);
13097
13254
  }
13098
13255
  }
13099
13256
 
@@ -13449,7 +13606,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13449
13606
  */
13450
13607
  function registerReportingObserver(overrideExisting = false) {
13451
13608
  if (!(window.ReportingObserver)) {
13452
- logger.warn(ERROR_MESSAGE.MISSING_REPORTING_OBSERVER);
13609
+ logger$3.warn(ERROR_MESSAGE.MISSING_REPORTING_OBSERVER);
13453
13610
  return null;
13454
13611
  }
13455
13612
  if (overrideExisting) {
@@ -13471,7 +13628,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13471
13628
  if (!embedConfig.suppressErrorAlerts) {
13472
13629
  alert(ERROR_MESSAGE.CSP_VIOLATION_ALERT);
13473
13630
  }
13474
- logger.error(ERROR_MESSAGE.CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE);
13631
+ logger$3.error(ERROR_MESSAGE.CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE);
13475
13632
  }
13476
13633
  });
13477
13634
  }, { buffered: true });
@@ -13496,7 +13653,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13496
13653
  return tokenizedFetch(url, options).then(async (r) => {
13497
13654
  var _a;
13498
13655
  if (!r.ok && r.type !== 'opaqueredirect' && r.type !== 'opaque') {
13499
- logger.error(`Failed to fetch ${url}`, await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
13656
+ logger$3.error(`Failed to fetch ${url}`, await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
13500
13657
  }
13501
13658
  return r;
13502
13659
  });
@@ -13546,7 +13703,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13546
13703
  return res.ok;
13547
13704
  }
13548
13705
  catch (e) {
13549
- logger.warn(`Is Logged In Service failed : ${e.message}`);
13706
+ logger$3.warn(`Is Logged In Service failed : ${e.message}`);
13550
13707
  }
13551
13708
  return false;
13552
13709
  }
@@ -13610,12 +13767,23 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13610
13767
  let samlCompletionPromise = null;
13611
13768
  let releaseVersion = '';
13612
13769
  const SSO_REDIRECTION_MARKER_GUID = '5e16222e-ef02-43e9-9fbd-24226bf3ce5b';
13770
+ /**
13771
+ * Enum for auth failure types. This is the parameter passed to the listner
13772
+ * of {@link AuthStatus.FAILURE}.
13773
+ * @group Authentication / Init
13774
+ */
13775
+ exports.AuthFailureType = void 0;
13613
13776
  (function (AuthFailureType) {
13614
13777
  AuthFailureType["SDK"] = "SDK";
13615
13778
  AuthFailureType["NO_COOKIE_ACCESS"] = "NO_COOKIE_ACCESS";
13616
13779
  AuthFailureType["EXPIRY"] = "EXPIRY";
13617
13780
  AuthFailureType["OTHER"] = "OTHER";
13618
13781
  })(exports.AuthFailureType || (exports.AuthFailureType = {}));
13782
+ /**
13783
+ * Enum for auth status emitted by the emitter returned from {@link init}.
13784
+ * @group Authentication / Init
13785
+ */
13786
+ exports.AuthStatus = void 0;
13619
13787
  (function (AuthStatus) {
13620
13788
  /**
13621
13789
  * Emits when the SDK fails to authenticate
@@ -13641,6 +13809,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13641
13809
  */
13642
13810
  AuthStatus["WAITING_FOR_POPUP"] = "WAITING_FOR_POPUP";
13643
13811
  })(exports.AuthStatus || (exports.AuthStatus = {}));
13812
+ /**
13813
+ * Events which can be triggered on the emitter returned from {@link init}.
13814
+ * @group Authentication / Init
13815
+ */
13816
+ exports.AuthEvent = void 0;
13644
13817
  (function (AuthEvent) {
13645
13818
  /**
13646
13819
  * Manually trigger the SSO popup. This is useful when
@@ -13661,7 +13834,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13661
13834
  */
13662
13835
  function notifyAuthSDKSuccess() {
13663
13836
  if (!authEE) {
13664
- logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13837
+ logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13665
13838
  return;
13666
13839
  }
13667
13840
  authEE.emit(exports.AuthStatus.SDK_SUCCESS);
@@ -13671,7 +13844,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13671
13844
  */
13672
13845
  async function notifyAuthSuccess() {
13673
13846
  if (!authEE) {
13674
- logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13847
+ logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13675
13848
  return;
13676
13849
  }
13677
13850
  try {
@@ -13679,7 +13852,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13679
13852
  authEE.emit(exports.AuthStatus.SUCCESS, sessionInfo);
13680
13853
  }
13681
13854
  catch (e) {
13682
- logger.error(ERROR_MESSAGE.SESSION_INFO_FAILED);
13855
+ logger$3.error(ERROR_MESSAGE.SESSION_INFO_FAILED);
13683
13856
  }
13684
13857
  }
13685
13858
  /**
@@ -13688,7 +13861,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13688
13861
  */
13689
13862
  function notifyAuthFailure(failureType) {
13690
13863
  if (!authEE) {
13691
- logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13864
+ logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13692
13865
  return;
13693
13866
  }
13694
13867
  authEE.emit(exports.AuthStatus.FAILURE, failureType);
@@ -13698,7 +13871,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13698
13871
  */
13699
13872
  function notifyLogout() {
13700
13873
  if (!authEE) {
13701
- logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13874
+ logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13702
13875
  return;
13703
13876
  }
13704
13877
  authEE.emit(exports.AuthStatus.LOGOUT);
@@ -13737,7 +13910,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13737
13910
  }
13738
13911
  }
13739
13912
  catch (e) {
13740
- logger.error('Post login services failed.', e.message, e);
13913
+ logger$3.error('Post login services failed.', e.message, e);
13741
13914
  }
13742
13915
  }
13743
13916
  /**
@@ -13931,7 +14104,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13931
14104
  await doSSOAuth(embedConfig, ssoEndPoint);
13932
14105
  return loggedInStatus;
13933
14106
  };
13934
- const logout = async (embedConfig) => {
14107
+ const logout$1 = async (embedConfig) => {
13935
14108
  const { thoughtSpotHost } = embedConfig;
13936
14109
  await fetchLogoutService(thoughtSpotHost);
13937
14110
  resetCachedAuthToken();
@@ -13971,6 +14144,14 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
13971
14144
  };
13972
14145
 
13973
14146
  /* eslint-disable camelcase */
14147
+ /* eslint-disable import/no-mutable-exports */
14148
+ /**
14149
+ * Copyright (c) 2022
14150
+ *
14151
+ * Base classes
14152
+ * @summary Base classes
14153
+ * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
14154
+ */
13974
14155
  const CONFIG_DEFAULTS = {
13975
14156
  loginFailedMessage: 'Not logged in',
13976
14157
  authTriggerText: 'Authorize',
@@ -14016,7 +14197,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14016
14197
  const prefetch = (url, prefetchFeatures) => {
14017
14198
  if (url === '') {
14018
14199
  // eslint-disable-next-line no-console
14019
- logger.warn('The prefetch method does not have a valid URL');
14200
+ logger$3.warn('The prefetch method does not have a valid URL');
14020
14201
  }
14021
14202
  else {
14022
14203
  const features = prefetchFeatures || [exports.PrefetchFeatures.FullApp];
@@ -14126,11 +14307,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14126
14307
  * @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
14127
14308
  * @group Global methods
14128
14309
  */
14129
- const logout$1 = (doNotDisableAutoLogin = false) => {
14310
+ const logout = (doNotDisableAutoLogin = false) => {
14130
14311
  if (!doNotDisableAutoLogin) {
14131
14312
  disableAutoLogin();
14132
14313
  }
14133
- return logout(getEmbedConfig()).then((isLoggedIn) => {
14314
+ return logout$1(getEmbedConfig()).then((isLoggedIn) => {
14134
14315
  notifyLogout();
14135
14316
  return isLoggedIn;
14136
14317
  });
@@ -14427,7 +14608,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14427
14608
  });
14428
14609
  }
14429
14610
 
14430
- var name="@thoughtspot/visual-embed-sdk";var version="1.33.0-dc.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dc","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"lib/src/index.js",limit:"49 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14611
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.1-dc.2";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dc","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/es/index.js",limit:"30 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14431
14612
 
14432
14613
  /**
14433
14614
  * Copyright (c) 2022
@@ -14436,7 +14617,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14436
14617
  * @summary Base classes
14437
14618
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
14438
14619
  */
14439
- const { version: version$1 } = pkgInfo;
14620
+ const { version } = pkgInfo;
14440
14621
  /**
14441
14622
  * Global prefix for all Thoughtspot postHash Params.
14442
14623
  */
@@ -14525,7 +14706,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14525
14706
  });
14526
14707
  }
14527
14708
  catch (e) {
14528
- logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
14709
+ logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
14529
14710
  processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
14530
14711
  }
14531
14712
  }
@@ -14553,7 +14734,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14553
14734
  allOtherKeys.forEach((key) => {
14554
14735
  if (!isUndefined(viewConfig[key])
14555
14736
  && !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
14556
- logger.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
14737
+ logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
14557
14738
  + `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
14558
14739
  + `but a different value "${JSON.stringify(viewConfig[key])}" `
14559
14740
  + 'was passed to the Embed component. '
@@ -14600,7 +14781,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14600
14781
  error,
14601
14782
  });
14602
14783
  // Log error
14603
- logger.error(error);
14784
+ logger$3.error(error);
14604
14785
  }
14605
14786
  /**
14606
14787
  * Extracts the type field from the event payload
@@ -14665,7 +14846,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14665
14846
  this.executeCallbacks(exports.EmbedEvent.Error, {
14666
14847
  offlineWarning,
14667
14848
  });
14668
- logger.warn(offlineWarning);
14849
+ logger$3.warn(offlineWarning);
14669
14850
  };
14670
14851
  window.addEventListener('offline', offlineEventListener);
14671
14852
  this.subscribedListeners = {
@@ -14709,7 +14890,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14709
14890
  queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
14710
14891
  queryParams[Param.ViewPortHeight] = window.innerHeight;
14711
14892
  queryParams[Param.ViewPortWidth] = window.innerWidth;
14712
- queryParams[Param.Version] = version$1;
14893
+ queryParams[Param.Version] = version;
14713
14894
  queryParams[Param.AuthType] = this.embedConfig.authType;
14714
14895
  queryParams[Param.blockNonEmbedFullAppAccess] = (_b = this.embedConfig.blockNonEmbedFullAppAccess) !== null && _b !== void 0 ? _b : true;
14715
14896
  if (this.embedConfig.disableLoginRedirect === true || this.embedConfig.autoLogin === true) {
@@ -15131,7 +15312,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15131
15312
  isRegisteredBySDK,
15132
15313
  });
15133
15314
  if (this.isRendered) {
15134
- logger.warn('Please register event handlers before calling render');
15315
+ logger$3.warn('Please register event handlers before calling render');
15135
15316
  }
15136
15317
  const callbacks = this.eventHandlerMap.get(messageType) || [];
15137
15318
  callbacks.push({ options, callback });
@@ -15175,11 +15356,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15175
15356
  }
15176
15357
  catch (e) {
15177
15358
  eventPort.postMessage({ error: e });
15178
- logger.log(e);
15359
+ logger$3.log(e);
15179
15360
  }
15180
15361
  }
15181
15362
  else {
15182
- logger.log('Event Port is not defined');
15363
+ logger$3.log('Event Port is not defined');
15183
15364
  }
15184
15365
  }
15185
15366
  /**
@@ -15221,7 +15402,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15221
15402
  */
15222
15403
  preRender(showPreRenderByDefault = false) {
15223
15404
  if (!this.viewConfig.preRenderId) {
15224
- logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
15405
+ logger$3.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
15225
15406
  return this;
15226
15407
  }
15227
15408
  this.isPreRendered = true;
@@ -15266,7 +15447,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15266
15447
  this.unsubscribeToEvents();
15267
15448
  }
15268
15449
  catch (e) {
15269
- logger.log('Error destroying TS Embed', e);
15450
+ logger$3.log('Error destroying TS Embed', e);
15270
15451
  }
15271
15452
  }
15272
15453
  getUnderlyingFrameElement() {
@@ -15295,7 +15476,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15295
15476
  */
15296
15477
  showPreRender() {
15297
15478
  if (!this.viewConfig.preRenderId) {
15298
- logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
15479
+ logger$3.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
15299
15480
  return;
15300
15481
  }
15301
15482
  if (!this.isPreRenderAvailable()) {
@@ -15337,7 +15518,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15337
15518
  */
15338
15519
  syncPreRenderStyle() {
15339
15520
  if (!this.isPreRenderAvailable() || !this.el) {
15340
- logger.error(ERROR_MESSAGE.SYNC_STYLE_CALLED_BEFORE_RENDER);
15521
+ logger$3.error(ERROR_MESSAGE.SYNC_STYLE_CALLED_BEFORE_RENDER);
15341
15522
  return;
15342
15523
  }
15343
15524
  const elBoundingClient = this.el.getBoundingClientRect();
@@ -15355,7 +15536,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15355
15536
  hidePreRender() {
15356
15537
  if (!this.isPreRenderAvailable()) {
15357
15538
  // if the embed component is not preRendered , nothing to hide
15358
- logger.warn('PreRender should be called before hiding it using hidePreRender.');
15539
+ logger$3.warn('PreRender should be called before hiding it using hidePreRender.');
15359
15540
  return;
15360
15541
  }
15361
15542
  const preRenderHideStyles = {
@@ -15467,6 +15648,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15467
15648
  * @module
15468
15649
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
15469
15650
  */
15651
+ /**
15652
+ * Pages within the ThoughtSpot app that can be embedded.
15653
+ */
15654
+ // eslint-disable-next-line no-shadow
15655
+ exports.Page = void 0;
15470
15656
  (function (Page) {
15471
15657
  /**
15472
15658
  * Home page
@@ -15505,7 +15691,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15505
15691
  * Define the initial state os column custom group accordions
15506
15692
  * in data panel v2.
15507
15693
  */
15508
- var DataPanelCustomColumnGroupsAccordionState;
15694
+ var DataPanelCustomColumnGroupsAccordionState$1;
15509
15695
  (function (DataPanelCustomColumnGroupsAccordionState) {
15510
15696
  /**
15511
15697
  * Expand all the accordion initially in data panel v2.
@@ -15519,7 +15705,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15519
15705
  * Expand the first accordion and collapse the rest.
15520
15706
  */
15521
15707
  DataPanelCustomColumnGroupsAccordionState["EXPAND_FIRST"] = "EXPAND_FIRST";
15522
- })(DataPanelCustomColumnGroupsAccordionState || (DataPanelCustomColumnGroupsAccordionState = {}));
15708
+ })(DataPanelCustomColumnGroupsAccordionState$1 || (DataPanelCustomColumnGroupsAccordionState$1 = {}));
15523
15709
  var HomePageSearchBarMode;
15524
15710
  (function (HomePageSearchBarMode) {
15525
15711
  HomePageSearchBarMode["OBJECT_SEARCH"] = "objectSearch";
@@ -15568,7 +15754,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15568
15754
  getEmbedParams() {
15569
15755
  const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15570
15756
  /* eslint-disable-next-line max-len */
15571
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15757
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15572
15758
  let params = {};
15573
15759
  params[Param.EmbedApp] = true;
15574
15760
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -15618,15 +15804,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15618
15804
  params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
15619
15805
  params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
15620
15806
  if (dataPanelCustomGroupsAccordionInitialState
15621
- === DataPanelCustomColumnGroupsAccordionState.COLLAPSE_ALL
15807
+ === DataPanelCustomColumnGroupsAccordionState$1.COLLAPSE_ALL
15622
15808
  || dataPanelCustomGroupsAccordionInitialState
15623
- === DataPanelCustomColumnGroupsAccordionState.EXPAND_FIRST) {
15809
+ === DataPanelCustomColumnGroupsAccordionState$1.EXPAND_FIRST) {
15624
15810
  /* eslint-disable-next-line max-len */
15625
15811
  params[Param.DataPanelCustomGroupsAccordionInitialState] = dataPanelCustomGroupsAccordionInitialState;
15626
15812
  }
15627
15813
  else {
15628
15814
  /* eslint-disable-next-line max-len */
15629
- params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
15815
+ params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL;
15630
15816
  }
15631
15817
  const queryParams = getQueryParamString(params, true);
15632
15818
  return queryParams;
@@ -15697,7 +15883,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15697
15883
  */
15698
15884
  navigateToPage(path, noReload = false) {
15699
15885
  if (!this.iFrame) {
15700
- logger.log('Please call render before invoking this method');
15886
+ logger$3.log('Please call render before invoking this method');
15701
15887
  return;
15702
15888
  }
15703
15889
  if (noReload) {
@@ -15705,7 +15891,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15705
15891
  }
15706
15892
  else {
15707
15893
  if (typeof path !== 'string') {
15708
- logger.warn('Path can only by a string when triggered without noReload');
15894
+ logger$3.warn('Path can only by a string when triggered without noReload');
15709
15895
  return;
15710
15896
  }
15711
15897
  const iframeSrc = this.iFrame.src;
@@ -15861,7 +16047,7 @@ query GetEurekaVizSnapshots(
15861
16047
  let params = {};
15862
16048
  params[Param.EmbedApp] = true;
15863
16049
  params = this.getBaseQueryParams(params);
15864
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, } = this.viewConfig;
16050
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, } = this.viewConfig;
15865
16051
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
15866
16052
  || this.viewConfig.preventPinboardFilterRemoval;
15867
16053
  if (fullHeight === true) {
@@ -15909,6 +16095,7 @@ query GetEurekaVizSnapshots(
15909
16095
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
15910
16096
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
15911
16097
  params[Param.DataPanelV2Enabled] = dataPanelV2;
16098
+ params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
15912
16099
  const queryParams = getQueryParamString(params, true);
15913
16100
  return queryParams;
15914
16101
  }
@@ -16067,7 +16254,7 @@ query GetEurekaVizSnapshots(
16067
16254
  * Define the initial state os column custom group accordions
16068
16255
  * in data panel v2.
16069
16256
  */
16070
- var DataPanelCustomColumnGroupsAccordionState$1;
16257
+ var DataPanelCustomColumnGroupsAccordionState;
16071
16258
  (function (DataPanelCustomColumnGroupsAccordionState) {
16072
16259
  /**
16073
16260
  * Expand all the accordion initially in data panel v2.
@@ -16081,7 +16268,7 @@ query GetEurekaVizSnapshots(
16081
16268
  * Expand the first accordion and collapse the rest.
16082
16269
  */
16083
16270
  DataPanelCustomColumnGroupsAccordionState["EXPAND_FIRST"] = "EXPAND_FIRST";
16084
- })(DataPanelCustomColumnGroupsAccordionState$1 || (DataPanelCustomColumnGroupsAccordionState$1 = {}));
16271
+ })(DataPanelCustomColumnGroupsAccordionState || (DataPanelCustomColumnGroupsAccordionState = {}));
16085
16272
  const HiddenActionItemByDefaultForSearchEmbed = [
16086
16273
  exports.Action.EditACopy,
16087
16274
  exports.Action.SaveAsView,
@@ -16117,7 +16304,7 @@ query GetEurekaVizSnapshots(
16117
16304
  var _a;
16118
16305
  const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
16119
16306
  /* eslint-disable-next-line max-len */
16120
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
16307
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
16121
16308
  const queryParams = this.getBaseQueryParams();
16122
16309
  queryParams[Param.HideActions] = [
16123
16310
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -16165,15 +16352,15 @@ query GetEurekaVizSnapshots(
16165
16352
  queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
16166
16353
  queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
16167
16354
  if (dataPanelCustomGroupsAccordionInitialState
16168
- === DataPanelCustomColumnGroupsAccordionState$1.COLLAPSE_ALL
16355
+ === DataPanelCustomColumnGroupsAccordionState.COLLAPSE_ALL
16169
16356
  || dataPanelCustomGroupsAccordionInitialState
16170
- === DataPanelCustomColumnGroupsAccordionState$1.EXPAND_FIRST) {
16357
+ === DataPanelCustomColumnGroupsAccordionState.EXPAND_FIRST) {
16171
16358
  /* eslint-disable-next-line max-len */
16172
16359
  queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = dataPanelCustomGroupsAccordionInitialState;
16173
16360
  }
16174
16361
  else {
16175
16362
  /* eslint-disable-next-line max-len */
16176
- queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL;
16363
+ queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
16177
16364
  }
16178
16365
  let query = '';
16179
16366
  const queryParamsString = getQueryParamString(queryParams, true);
@@ -16206,7 +16393,7 @@ query GetEurekaVizSnapshots(
16206
16393
  */
16207
16394
  async render() {
16208
16395
  super.render();
16209
- const { answerId } = this.viewConfig;
16396
+ this.viewConfig;
16210
16397
  const src = this.getIFrameSrc();
16211
16398
  await this.renderIFrame(src);
16212
16399
  getAuthPromise().then(() => {
@@ -16690,7 +16877,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
16690
16877
  * Create a conversation embed, which can be integrated inside
16691
16878
  * chatbots or other conversational interfaces.
16692
16879
  * @group Embed components
16693
- * @version SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
16880
+ * @version SDK: 1.33.1 | ThoughtSpot: 10.5.0.cl
16694
16881
  */
16695
16882
  class BodylessConversation {
16696
16883
  constructor(viewConfig) {
@@ -17193,10 +17380,15 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17193
17380
  }`;
17194
17381
 
17195
17382
  /**
17196
- *
17383
+ * Get answer from natural language query
17197
17384
  * @param query string
17198
17385
  * @param worksheetId string
17199
- * @returns answerService AnswerService
17386
+ * @returns AnswerService and the suggestion response.
17387
+ * @version SDK: 1.33.1 | ThoughtSpot: 10.3.0.cl
17388
+ * @example
17389
+ * ```js
17390
+ * const { answer } = await getAnswerFromQuery('revenue', 'worksheetId');
17391
+ * ```
17200
17392
  */
17201
17393
  const getAnswerFromQuery = async (query, worksheetId) => {
17202
17394
  const embedConfig = getEmbedConfig();
@@ -17238,6 +17430,19 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17238
17430
  };
17239
17431
  };
17240
17432
 
17433
+ /**
17434
+ * Create a liveboard with the given answers
17435
+ * @param answers AnswerService[]
17436
+ * @param name string
17437
+ * @returns result Promise
17438
+ * @version SDK: 1.33.1 | ThoughtSpot: *
17439
+ * @example
17440
+ * ```js
17441
+ * const lb = createLiveboardWithAnswers([
17442
+ * new AnswerService(session, null, 'tshost'),
17443
+ * ], "my-liveboard");
17444
+ * ```
17445
+ */
17241
17446
  const createLiveboardWithAnswers = async (answers, name) => {
17242
17447
  var _a;
17243
17448
  const { thoughtSpotHost, authType } = getEmbedConfig();
@@ -17285,16 +17490,16 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17285
17490
  const DOC = Symbol.for('yaml.document');
17286
17491
  const MAP = Symbol.for('yaml.map');
17287
17492
  const PAIR = Symbol.for('yaml.pair');
17288
- const SCALAR = Symbol.for('yaml.scalar');
17493
+ const SCALAR$1 = Symbol.for('yaml.scalar');
17289
17494
  const SEQ = Symbol.for('yaml.seq');
17290
17495
  const NODE_TYPE = Symbol.for('yaml.node.type');
17291
17496
  const isAlias = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === ALIAS;
17292
17497
  const isDocument = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === DOC;
17293
17498
  const isMap = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === MAP;
17294
17499
  const isPair = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === PAIR;
17295
- const isScalar = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SCALAR;
17500
+ const isScalar$1 = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SCALAR$1;
17296
17501
  const isSeq = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SEQ;
17297
- function isCollection(node) {
17502
+ function isCollection$1(node) {
17298
17503
  if (node && typeof node === 'object')
17299
17504
  switch (node[NODE_TYPE]) {
17300
17505
  case MAP:
@@ -17308,17 +17513,17 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17308
17513
  switch (node[NODE_TYPE]) {
17309
17514
  case ALIAS:
17310
17515
  case MAP:
17311
- case SCALAR:
17516
+ case SCALAR$1:
17312
17517
  case SEQ:
17313
17518
  return true;
17314
17519
  }
17315
17520
  return false;
17316
17521
  }
17317
- const hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor;
17522
+ const hasAnchor = (node) => (isScalar$1(node) || isCollection$1(node)) && !!node.anchor;
17318
17523
 
17319
- const BREAK = Symbol('break visit');
17320
- const SKIP = Symbol('skip children');
17321
- const REMOVE = Symbol('remove node');
17524
+ const BREAK$1 = Symbol('break visit');
17525
+ const SKIP$1 = Symbol('skip children');
17526
+ const REMOVE$1 = Symbol('remove node');
17322
17527
  /**
17323
17528
  * Apply a visitor to an AST node or document.
17324
17529
  *
@@ -17349,11 +17554,11 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17349
17554
  * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most
17350
17555
  * specific defined one will be used for each node.
17351
17556
  */
17352
- function visit(node, visitor) {
17557
+ function visit$1(node, visitor) {
17353
17558
  const visitor_ = initVisitor(visitor);
17354
17559
  if (isDocument(node)) {
17355
17560
  const cd = visit_(null, node.contents, visitor_, Object.freeze([node]));
17356
- if (cd === REMOVE)
17561
+ if (cd === REMOVE$1)
17357
17562
  node.contents = null;
17358
17563
  }
17359
17564
  else
@@ -17363,11 +17568,11 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17363
17568
  // namespace using `var`, but then complains about that because
17364
17569
  // `unique symbol` must be `const`.
17365
17570
  /** Terminate visit traversal completely */
17366
- visit.BREAK = BREAK;
17571
+ visit$1.BREAK = BREAK$1;
17367
17572
  /** Do not visit the children of the current node */
17368
- visit.SKIP = SKIP;
17573
+ visit$1.SKIP = SKIP$1;
17369
17574
  /** Remove the current node */
17370
- visit.REMOVE = REMOVE;
17575
+ visit$1.REMOVE = REMOVE$1;
17371
17576
  function visit_(key, node, visitor, path) {
17372
17577
  const ctrl = callVisitor(key, node, visitor, path);
17373
17578
  if (isNode(ctrl) || isPair(ctrl)) {
@@ -17375,15 +17580,15 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17375
17580
  return visit_(key, ctrl, visitor, path);
17376
17581
  }
17377
17582
  if (typeof ctrl !== 'symbol') {
17378
- if (isCollection(node)) {
17583
+ if (isCollection$1(node)) {
17379
17584
  path = Object.freeze(path.concat(node));
17380
17585
  for (let i = 0; i < node.items.length; ++i) {
17381
17586
  const ci = visit_(i, node.items[i], visitor, path);
17382
17587
  if (typeof ci === 'number')
17383
17588
  i = ci - 1;
17384
- else if (ci === BREAK)
17385
- return BREAK;
17386
- else if (ci === REMOVE) {
17589
+ else if (ci === BREAK$1)
17590
+ return BREAK$1;
17591
+ else if (ci === REMOVE$1) {
17387
17592
  node.items.splice(i, 1);
17388
17593
  i -= 1;
17389
17594
  }
@@ -17392,14 +17597,14 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17392
17597
  else if (isPair(node)) {
17393
17598
  path = Object.freeze(path.concat(node));
17394
17599
  const ck = visit_('key', node.key, visitor, path);
17395
- if (ck === BREAK)
17396
- return BREAK;
17397
- else if (ck === REMOVE)
17600
+ if (ck === BREAK$1)
17601
+ return BREAK$1;
17602
+ else if (ck === REMOVE$1)
17398
17603
  node.key = null;
17399
17604
  const cv = visit_('value', node.value, visitor, path);
17400
- if (cv === BREAK)
17401
- return BREAK;
17402
- else if (cv === REMOVE)
17605
+ if (cv === BREAK$1)
17606
+ return BREAK$1;
17607
+ else if (cv === REMOVE$1)
17403
17608
  node.value = null;
17404
17609
  }
17405
17610
  }
@@ -17440,7 +17645,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17440
17645
  const visitor_ = initVisitor(visitor);
17441
17646
  if (isDocument(node)) {
17442
17647
  const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node]));
17443
- if (cd === REMOVE)
17648
+ if (cd === REMOVE$1)
17444
17649
  node.contents = null;
17445
17650
  }
17446
17651
  else
@@ -17450,11 +17655,11 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17450
17655
  // namespace using `var`, but then complains about that because
17451
17656
  // `unique symbol` must be `const`.
17452
17657
  /** Terminate visit traversal completely */
17453
- visitAsync.BREAK = BREAK;
17658
+ visitAsync.BREAK = BREAK$1;
17454
17659
  /** Do not visit the children of the current node */
17455
- visitAsync.SKIP = SKIP;
17660
+ visitAsync.SKIP = SKIP$1;
17456
17661
  /** Remove the current node */
17457
- visitAsync.REMOVE = REMOVE;
17662
+ visitAsync.REMOVE = REMOVE$1;
17458
17663
  async function visitAsync_(key, node, visitor, path) {
17459
17664
  const ctrl = await callVisitor(key, node, visitor, path);
17460
17665
  if (isNode(ctrl) || isPair(ctrl)) {
@@ -17462,15 +17667,15 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17462
17667
  return visitAsync_(key, ctrl, visitor, path);
17463
17668
  }
17464
17669
  if (typeof ctrl !== 'symbol') {
17465
- if (isCollection(node)) {
17670
+ if (isCollection$1(node)) {
17466
17671
  path = Object.freeze(path.concat(node));
17467
17672
  for (let i = 0; i < node.items.length; ++i) {
17468
17673
  const ci = await visitAsync_(i, node.items[i], visitor, path);
17469
17674
  if (typeof ci === 'number')
17470
17675
  i = ci - 1;
17471
- else if (ci === BREAK)
17472
- return BREAK;
17473
- else if (ci === REMOVE) {
17676
+ else if (ci === BREAK$1)
17677
+ return BREAK$1;
17678
+ else if (ci === REMOVE$1) {
17474
17679
  node.items.splice(i, 1);
17475
17680
  i -= 1;
17476
17681
  }
@@ -17479,14 +17684,14 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17479
17684
  else if (isPair(node)) {
17480
17685
  path = Object.freeze(path.concat(node));
17481
17686
  const ck = await visitAsync_('key', node.key, visitor, path);
17482
- if (ck === BREAK)
17483
- return BREAK;
17484
- else if (ck === REMOVE)
17687
+ if (ck === BREAK$1)
17688
+ return BREAK$1;
17689
+ else if (ck === REMOVE$1)
17485
17690
  node.key = null;
17486
17691
  const cv = await visitAsync_('value', node.value, visitor, path);
17487
- if (cv === BREAK)
17488
- return BREAK;
17489
- else if (cv === REMOVE)
17692
+ if (cv === BREAK$1)
17693
+ return BREAK$1;
17694
+ else if (cv === REMOVE$1)
17490
17695
  node.value = null;
17491
17696
  }
17492
17697
  }
@@ -17520,7 +17725,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17520
17725
  return visitor.Seq?.(key, node, path);
17521
17726
  if (isPair(node))
17522
17727
  return visitor.Pair?.(key, node, path);
17523
- if (isScalar(node))
17728
+ if (isScalar$1(node))
17524
17729
  return visitor.Scalar?.(key, node, path);
17525
17730
  if (isAlias(node))
17526
17731
  return visitor.Alias?.(key, node, path);
@@ -17528,7 +17733,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17528
17733
  }
17529
17734
  function replaceNode(key, path, node) {
17530
17735
  const parent = path[path.length - 1];
17531
- if (isCollection(parent)) {
17736
+ if (isCollection$1(parent)) {
17532
17737
  parent.items[key] = node;
17533
17738
  }
17534
17739
  else if (isPair(parent)) {
@@ -17698,7 +17903,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17698
17903
  let tagNames;
17699
17904
  if (doc && tagEntries.length > 0 && isNode(doc.contents)) {
17700
17905
  const tags = {};
17701
- visit(doc.contents, (_key, node) => {
17906
+ visit$1(doc.contents, (_key, node) => {
17702
17907
  if (isNode(node) && node.tag)
17703
17908
  tags[node.tag] = true;
17704
17909
  });
@@ -17733,7 +17938,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17733
17938
  }
17734
17939
  function anchorNames(root) {
17735
17940
  const anchors = new Set();
17736
- visit(root, {
17941
+ visit$1(root, {
17737
17942
  Value(_key, node) {
17738
17943
  if (node.anchor)
17739
17944
  anchors.add(node.anchor);
@@ -17772,7 +17977,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17772
17977
  const ref = sourceObjects.get(source);
17773
17978
  if (typeof ref === 'object' &&
17774
17979
  ref.anchor &&
17775
- (isScalar(ref.node) || isCollection(ref.node))) {
17980
+ (isScalar$1(ref.node) || isCollection$1(ref.node))) {
17776
17981
  ref.node.anchor = ref.anchor;
17777
17982
  }
17778
17983
  else {
@@ -17923,10 +18128,10 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17923
18128
  */
17924
18129
  resolve(doc) {
17925
18130
  let found = undefined;
17926
- visit(doc, {
18131
+ visit$1(doc, {
17927
18132
  Node: (_key, node) => {
17928
18133
  if (node === this)
17929
- return visit.BREAK;
18134
+ return visit$1.BREAK;
17930
18135
  if (node.anchor === this.source)
17931
18136
  found = node;
17932
18137
  }
@@ -17984,7 +18189,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
17984
18189
  const anchor = anchors && source && anchors.get(source);
17985
18190
  return anchor ? anchor.count * anchor.aliasCount : 0;
17986
18191
  }
17987
- else if (isCollection(node)) {
18192
+ else if (isCollection$1(node)) {
17988
18193
  let count = 0;
17989
18194
  for (const item of node.items) {
17990
18195
  const c = getAliasCount(doc, item, anchors);
@@ -18004,7 +18209,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18004
18209
  const isScalarValue = (value) => !value || (typeof value !== 'function' && typeof value !== 'object');
18005
18210
  class Scalar extends NodeBase {
18006
18211
  constructor(value) {
18007
- super(SCALAR);
18212
+ super(SCALAR$1);
18008
18213
  this.value = value;
18009
18214
  }
18010
18215
  toJSON(arg, ctx) {
@@ -18166,7 +18371,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18166
18371
  else {
18167
18372
  const [key, ...rest] = path;
18168
18373
  const node = this.get(key, true);
18169
- if (isCollection(node))
18374
+ if (isCollection$1(node))
18170
18375
  node.addIn(rest, value);
18171
18376
  else if (node === undefined && this.schema)
18172
18377
  this.set(key, collectionFromPath(this.schema, rest, value));
@@ -18183,7 +18388,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18183
18388
  if (rest.length === 0)
18184
18389
  return this.delete(key);
18185
18390
  const node = this.get(key, true);
18186
- if (isCollection(node))
18391
+ if (isCollection$1(node))
18187
18392
  return node.deleteIn(rest);
18188
18393
  else
18189
18394
  throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
@@ -18197,9 +18402,9 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18197
18402
  const [key, ...rest] = path;
18198
18403
  const node = this.get(key, true);
18199
18404
  if (rest.length === 0)
18200
- return !keepScalar && isScalar(node) ? node.value : node;
18405
+ return !keepScalar && isScalar$1(node) ? node.value : node;
18201
18406
  else
18202
- return isCollection(node) ? node.getIn(rest, keepScalar) : undefined;
18407
+ return isCollection$1(node) ? node.getIn(rest, keepScalar) : undefined;
18203
18408
  }
18204
18409
  hasAllNullValues(allowScalar) {
18205
18410
  return this.items.every(node => {
@@ -18208,7 +18413,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18208
18413
  const n = node.value;
18209
18414
  return (n == null ||
18210
18415
  (allowScalar &&
18211
- isScalar(n) &&
18416
+ isScalar$1(n) &&
18212
18417
  n.value == null &&
18213
18418
  !n.commentBefore &&
18214
18419
  !n.comment &&
@@ -18223,7 +18428,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18223
18428
  if (rest.length === 0)
18224
18429
  return this.has(key);
18225
18430
  const node = this.get(key, true);
18226
- return isCollection(node) ? node.hasIn(rest) : false;
18431
+ return isCollection$1(node) ? node.hasIn(rest) : false;
18227
18432
  }
18228
18433
  /**
18229
18434
  * Sets a value in this collection. For `!!set`, `value` needs to be a
@@ -18236,7 +18441,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18236
18441
  }
18237
18442
  else {
18238
18443
  const node = this.get(key, true);
18239
- if (isCollection(node))
18444
+ if (isCollection$1(node))
18240
18445
  node.setIn(rest, value);
18241
18446
  else if (node === undefined && this.schema)
18242
18447
  this.set(key, collectionFromPath(this.schema, rest, value));
@@ -18783,7 +18988,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18783
18988
  }
18784
18989
  let tagObj = undefined;
18785
18990
  let obj;
18786
- if (isScalar(item)) {
18991
+ if (isScalar$1(item)) {
18787
18992
  obj = item.value;
18788
18993
  const match = tags.filter(t => t.identify?.(obj));
18789
18994
  tagObj =
@@ -18804,7 +19009,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18804
19009
  if (!doc.directives)
18805
19010
  return '';
18806
19011
  const props = [];
18807
- const anchor = (isScalar(node) || isCollection(node)) && node.anchor;
19012
+ const anchor = (isScalar$1(node) || isCollection$1(node)) && node.anchor;
18808
19013
  if (anchor && anchorIsValid(anchor)) {
18809
19014
  anchors.add(anchor);
18810
19015
  props.push(`&${anchor}`);
@@ -18814,7 +19019,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18814
19019
  props.push(doc.directives.tagString(tag));
18815
19020
  return props.join(' ');
18816
19021
  }
18817
- function stringify(item, ctx, onComment, onChompKeep) {
19022
+ function stringify$2(item, ctx, onComment, onChompKeep) {
18818
19023
  if (isPair(item))
18819
19024
  return item.toString(ctx, onComment, onChompKeep);
18820
19025
  if (isAlias(item)) {
@@ -18842,12 +19047,12 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18842
19047
  ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
18843
19048
  const str = typeof tagObj.stringify === 'function'
18844
19049
  ? tagObj.stringify(node, ctx, onComment, onChompKeep)
18845
- : isScalar(node)
19050
+ : isScalar$1(node)
18846
19051
  ? stringifyString(node, ctx, onComment, onChompKeep)
18847
19052
  : node.toString(ctx, onComment, onChompKeep);
18848
19053
  if (!props)
18849
19054
  return str;
18850
- return isScalar(node) || str[0] === '{' || str[0] === '['
19055
+ return isScalar$1(node) || str[0] === '{' || str[0] === '['
18851
19056
  ? `${props} ${str}`
18852
19057
  : `${props}\n${ctx.indent}${str}`;
18853
19058
  }
@@ -18859,7 +19064,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18859
19064
  if (keyComment) {
18860
19065
  throw new Error('With simple keys, key nodes cannot have comments');
18861
19066
  }
18862
- if (isCollection(key) || (!isNode(key) && typeof key === 'object')) {
19067
+ if (isCollection$1(key) || (!isNode(key) && typeof key === 'object')) {
18863
19068
  const msg = 'With simple keys, collection cannot be used as a key value';
18864
19069
  throw new Error(msg);
18865
19070
  }
@@ -18867,8 +19072,8 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18867
19072
  let explicitKey = !simpleKeys &&
18868
19073
  (!key ||
18869
19074
  (keyComment && value == null && !ctx.inFlow) ||
18870
- isCollection(key) ||
18871
- (isScalar(key)
19075
+ isCollection$1(key) ||
19076
+ (isScalar$1(key)
18872
19077
  ? key.type === Scalar.BLOCK_FOLDED || key.type === Scalar.BLOCK_LITERAL
18873
19078
  : typeof key === 'object'));
18874
19079
  ctx = Object.assign({}, ctx, {
@@ -18878,7 +19083,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18878
19083
  });
18879
19084
  let keyCommentDone = false;
18880
19085
  let chompKeep = false;
18881
- let str = stringify(key, ctx, () => (keyCommentDone = true), () => (chompKeep = true));
19086
+ let str = stringify$2(key, ctx, () => (keyCommentDone = true), () => (chompKeep = true));
18882
19087
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
18883
19088
  if (simpleKeys)
18884
19089
  throw new Error('With simple keys, single line scalar must not span more than 1024 characters');
@@ -18926,7 +19131,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18926
19131
  value = doc.createNode(value);
18927
19132
  }
18928
19133
  ctx.implicitKey = false;
18929
- if (!explicitKey && !keyComment && isScalar(value))
19134
+ if (!explicitKey && !keyComment && isScalar$1(value))
18930
19135
  ctx.indentAtStart = str.length + 1;
18931
19136
  chompKeep = false;
18932
19137
  if (!indentSeq &&
@@ -18941,7 +19146,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18941
19146
  ctx.indent = ctx.indent.substring(2);
18942
19147
  }
18943
19148
  let valueCommentDone = false;
18944
- const valueStr = stringify(value, ctx, () => (valueCommentDone = true), () => (chompKeep = true));
19149
+ const valueStr = stringify$2(value, ctx, () => (valueCommentDone = true), () => (chompKeep = true));
18945
19150
  let ws = ' ';
18946
19151
  if (keyComment || vsb || vcb) {
18947
19152
  ws = vsb ? '\n' : '';
@@ -18957,7 +19162,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
18957
19162
  ws += `\n${ctx.indent}`;
18958
19163
  }
18959
19164
  }
18960
- else if (!explicitKey && isCollection(value)) {
19165
+ else if (!explicitKey && isCollection$1(value)) {
18961
19166
  const vs0 = valueStr[0];
18962
19167
  const nl0 = valueStr.indexOf('\n');
18963
19168
  const hasNewline = nl0 !== -1;
@@ -19043,7 +19248,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19043
19248
  return map;
19044
19249
  }
19045
19250
  const isMergeKey = (key) => key === MERGE_KEY ||
19046
- (isScalar(key) &&
19251
+ (isScalar$1(key) &&
19047
19252
  key.value === MERGE_KEY &&
19048
19253
  (!key.type || key.type === Scalar.PLAIN));
19049
19254
  // If the value associated with a merge key is a single mapping node, each of
@@ -19161,7 +19366,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19161
19366
  }
19162
19367
  }
19163
19368
  chompKeep = false;
19164
- let str = stringify(item, itemCtx, () => (comment = null), () => (chompKeep = true));
19369
+ let str = stringify$2(item, itemCtx, () => (comment = null), () => (chompKeep = true));
19165
19370
  if (comment)
19166
19371
  str += lineComment(str, itemIndent, commentString(comment));
19167
19372
  if (chompKeep && comment)
@@ -19231,7 +19436,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19231
19436
  }
19232
19437
  if (comment)
19233
19438
  reqNewline = true;
19234
- let str = stringify(item, itemCtx, () => (comment = null));
19439
+ let str = stringify$2(item, itemCtx, () => (comment = null));
19235
19440
  if (i < items.length - 1)
19236
19441
  str += ',';
19237
19442
  if (comment)
@@ -19271,12 +19476,12 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19271
19476
  }
19272
19477
 
19273
19478
  function findPair(items, key) {
19274
- const k = isScalar(key) ? key.value : key;
19479
+ const k = isScalar$1(key) ? key.value : key;
19275
19480
  for (const it of items) {
19276
19481
  if (isPair(it)) {
19277
19482
  if (it.key === key || it.key === k)
19278
19483
  return it;
19279
- if (isScalar(it.key) && it.key.value === k)
19484
+ if (isScalar$1(it.key) && it.key.value === k)
19280
19485
  return it;
19281
19486
  }
19282
19487
  }
@@ -19340,7 +19545,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19340
19545
  if (!overwrite)
19341
19546
  throw new Error(`Key ${_pair.key} already set`);
19342
19547
  // For scalars, keep the old node & its comments and anchors
19343
- if (isScalar(prev.value) && isScalarValue(_pair.value))
19548
+ if (isScalar$1(prev.value) && isScalarValue(_pair.value))
19344
19549
  prev.value.value = _pair.value;
19345
19550
  else
19346
19551
  prev.value = _pair.value;
@@ -19366,7 +19571,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19366
19571
  get(key, keepScalar) {
19367
19572
  const it = findPair(this.items, key);
19368
19573
  const node = it?.value;
19369
- return (!keepScalar && isScalar(node) ? node.value : node) ?? undefined;
19574
+ return (!keepScalar && isScalar$1(node) ? node.value : node) ?? undefined;
19370
19575
  }
19371
19576
  has(key) {
19372
19577
  return !!findPair(this.items, key);
@@ -19450,7 +19655,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19450
19655
  if (typeof idx !== 'number')
19451
19656
  return undefined;
19452
19657
  const it = this.items[idx];
19453
- return !keepScalar && isScalar(it) ? it.value : it;
19658
+ return !keepScalar && isScalar$1(it) ? it.value : it;
19454
19659
  }
19455
19660
  /**
19456
19661
  * Checks if the collection includes a value with the key `key`.
@@ -19474,7 +19679,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19474
19679
  if (typeof idx !== 'number')
19475
19680
  throw new Error(`Expected a valid index, not ${key}.`);
19476
19681
  const prev = this.items[idx];
19477
- if (isScalar(prev) && isScalarValue(value))
19682
+ if (isScalar$1(prev) && isScalarValue(value))
19478
19683
  prev.value = value;
19479
19684
  else
19480
19685
  this.items[idx] = value;
@@ -19516,7 +19721,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19516
19721
  }
19517
19722
  }
19518
19723
  function asItemIndex(key) {
19519
- let idx = isScalar(key) ? key.value : key;
19724
+ let idx = isScalar$1(key) ? key.value : key;
19520
19725
  if (idx && typeof idx === 'string')
19521
19726
  idx = Number(idx);
19522
19727
  return typeof idx === 'number' && Number.isInteger(idx) && idx >= 0
@@ -19548,26 +19753,26 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19548
19753
  }
19549
19754
  };
19550
19755
 
19551
- const nullTag$1 = {
19756
+ const nullTag = {
19552
19757
  identify: value => value == null,
19553
19758
  createNode: () => new Scalar(null),
19554
19759
  default: true,
19555
19760
  tag: 'tag:yaml.org,2002:null',
19556
19761
  test: /^(?:~|[Nn]ull|NULL)?$/,
19557
19762
  resolve: () => new Scalar(null),
19558
- stringify: ({ source }, ctx) => typeof source === 'string' && nullTag$1.test.test(source)
19763
+ stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source)
19559
19764
  ? source
19560
19765
  : ctx.options.nullStr
19561
19766
  };
19562
19767
 
19563
- const boolTag$2 = {
19768
+ const boolTag = {
19564
19769
  identify: value => typeof value === 'boolean',
19565
19770
  default: true,
19566
19771
  tag: 'tag:yaml.org,2002:bool',
19567
19772
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
19568
19773
  resolve: str => new Scalar(str[0] === 't' || str[0] === 'T'),
19569
19774
  stringify({ source, value }, ctx) {
19570
- if (source && boolTag$2.test.test(source)) {
19775
+ if (source && boolTag.test.test(source)) {
19571
19776
  const sv = source[0] === 't' || source[0] === 'T';
19572
19777
  if (value === sv)
19573
19778
  return source;
@@ -19599,7 +19804,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19599
19804
  return n;
19600
19805
  }
19601
19806
 
19602
- const floatNaN = {
19807
+ const floatNaN$1 = {
19603
19808
  identify: value => typeof value === 'number',
19604
19809
  default: true,
19605
19810
  tag: 'tag:yaml.org,2002:float',
@@ -19611,7 +19816,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19611
19816
  : Number.POSITIVE_INFINITY,
19612
19817
  stringify: stringifyNumber
19613
19818
  };
19614
- const floatExp = {
19819
+ const floatExp$1 = {
19615
19820
  identify: value => typeof value === 'number',
19616
19821
  default: true,
19617
19822
  tag: 'tag:yaml.org,2002:float',
@@ -19623,7 +19828,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19623
19828
  return isFinite(num) ? num.toExponential() : stringifyNumber(node);
19624
19829
  }
19625
19830
  };
19626
- const float = {
19831
+ const float$1 = {
19627
19832
  identify: value => typeof value === 'number',
19628
19833
  default: true,
19629
19834
  tag: 'tag:yaml.org,2002:float',
@@ -19638,53 +19843,53 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19638
19843
  stringify: stringifyNumber
19639
19844
  };
19640
19845
 
19641
- const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
19642
- const intResolve = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix));
19643
- function intStringify(node, radix, prefix) {
19846
+ const intIdentify$2 = (value) => typeof value === 'bigint' || Number.isInteger(value);
19847
+ const intResolve$1 = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix));
19848
+ function intStringify$1(node, radix, prefix) {
19644
19849
  const { value } = node;
19645
- if (intIdentify(value) && value >= 0)
19850
+ if (intIdentify$2(value) && value >= 0)
19646
19851
  return prefix + value.toString(radix);
19647
19852
  return stringifyNumber(node);
19648
19853
  }
19649
- const intOct = {
19650
- identify: value => intIdentify(value) && value >= 0,
19854
+ const intOct$1 = {
19855
+ identify: value => intIdentify$2(value) && value >= 0,
19651
19856
  default: true,
19652
19857
  tag: 'tag:yaml.org,2002:int',
19653
19858
  format: 'OCT',
19654
19859
  test: /^0o[0-7]+$/,
19655
- resolve: (str, _onError, opt) => intResolve(str, 2, 8, opt),
19656
- stringify: node => intStringify(node, 8, '0o')
19860
+ resolve: (str, _onError, opt) => intResolve$1(str, 2, 8, opt),
19861
+ stringify: node => intStringify$1(node, 8, '0o')
19657
19862
  };
19658
- const int = {
19659
- identify: intIdentify,
19863
+ const int$1 = {
19864
+ identify: intIdentify$2,
19660
19865
  default: true,
19661
19866
  tag: 'tag:yaml.org,2002:int',
19662
19867
  test: /^[-+]?[0-9]+$/,
19663
- resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
19868
+ resolve: (str, _onError, opt) => intResolve$1(str, 0, 10, opt),
19664
19869
  stringify: stringifyNumber
19665
19870
  };
19666
- const intHex = {
19667
- identify: value => intIdentify(value) && value >= 0,
19871
+ const intHex$1 = {
19872
+ identify: value => intIdentify$2(value) && value >= 0,
19668
19873
  default: true,
19669
19874
  tag: 'tag:yaml.org,2002:int',
19670
19875
  format: 'HEX',
19671
19876
  test: /^0x[0-9a-fA-F]+$/,
19672
- resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
19673
- stringify: node => intStringify(node, 16, '0x')
19877
+ resolve: (str, _onError, opt) => intResolve$1(str, 2, 16, opt),
19878
+ stringify: node => intStringify$1(node, 16, '0x')
19674
19879
  };
19675
19880
 
19676
- const schema = [
19881
+ const schema$2 = [
19677
19882
  map,
19678
19883
  seq,
19679
19884
  string,
19680
- nullTag$1,
19681
- boolTag$2,
19682
- intOct,
19683
- int,
19684
- intHex,
19685
- floatNaN,
19686
- floatExp,
19687
- float
19885
+ nullTag,
19886
+ boolTag,
19887
+ intOct$1,
19888
+ int$1,
19889
+ intHex$1,
19890
+ floatNaN$1,
19891
+ floatExp$1,
19892
+ float$1
19688
19893
  ];
19689
19894
 
19690
19895
  function intIdentify$1(value) {
@@ -19931,7 +20136,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19931
20136
  const pairs = resolvePairs(seq, onError);
19932
20137
  const seenKeys = [];
19933
20138
  for (const { key } of pairs.items) {
19934
- if (isScalar(key)) {
20139
+ if (isScalar$1(key)) {
19935
20140
  if (seenKeys.includes(key.value)) {
19936
20141
  onError(`Ordered maps must not include duplicate keys: ${key.value}`);
19937
20142
  }
@@ -19968,7 +20173,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19968
20173
  stringify: boolStringify
19969
20174
  };
19970
20175
 
19971
- const floatNaN$1 = {
20176
+ const floatNaN = {
19972
20177
  identify: value => typeof value === 'number',
19973
20178
  default: true,
19974
20179
  tag: 'tag:yaml.org,2002:float',
@@ -19980,7 +20185,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19980
20185
  : Number.POSITIVE_INFINITY,
19981
20186
  stringify: stringifyNumber
19982
20187
  };
19983
- const floatExp$1 = {
20188
+ const floatExp = {
19984
20189
  identify: value => typeof value === 'number',
19985
20190
  default: true,
19986
20191
  tag: 'tag:yaml.org,2002:float',
@@ -19992,7 +20197,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
19992
20197
  return isFinite(num) ? num.toExponential() : stringifyNumber(node);
19993
20198
  }
19994
20199
  };
19995
- const float$1 = {
20200
+ const float = {
19996
20201
  identify: value => typeof value === 'number',
19997
20202
  default: true,
19998
20203
  tag: 'tag:yaml.org,2002:float',
@@ -20010,8 +20215,8 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20010
20215
  stringify: stringifyNumber
20011
20216
  };
20012
20217
 
20013
- const intIdentify$2 = (value) => typeof value === 'bigint' || Number.isInteger(value);
20014
- function intResolve$1(str, offset, radix, { intAsBigInt }) {
20218
+ const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
20219
+ function intResolve(str, offset, radix, { intAsBigInt }) {
20015
20220
  const sign = str[0];
20016
20221
  if (sign === '-' || sign === '+')
20017
20222
  offset += 1;
@@ -20034,48 +20239,48 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20034
20239
  const n = parseInt(str, radix);
20035
20240
  return sign === '-' ? -1 * n : n;
20036
20241
  }
20037
- function intStringify$1(node, radix, prefix) {
20242
+ function intStringify(node, radix, prefix) {
20038
20243
  const { value } = node;
20039
- if (intIdentify$2(value)) {
20244
+ if (intIdentify(value)) {
20040
20245
  const str = value.toString(radix);
20041
20246
  return value < 0 ? '-' + prefix + str.substr(1) : prefix + str;
20042
20247
  }
20043
20248
  return stringifyNumber(node);
20044
20249
  }
20045
20250
  const intBin = {
20046
- identify: intIdentify$2,
20251
+ identify: intIdentify,
20047
20252
  default: true,
20048
20253
  tag: 'tag:yaml.org,2002:int',
20049
20254
  format: 'BIN',
20050
20255
  test: /^[-+]?0b[0-1_]+$/,
20051
- resolve: (str, _onError, opt) => intResolve$1(str, 2, 2, opt),
20052
- stringify: node => intStringify$1(node, 2, '0b')
20256
+ resolve: (str, _onError, opt) => intResolve(str, 2, 2, opt),
20257
+ stringify: node => intStringify(node, 2, '0b')
20053
20258
  };
20054
- const intOct$1 = {
20055
- identify: intIdentify$2,
20259
+ const intOct = {
20260
+ identify: intIdentify,
20056
20261
  default: true,
20057
20262
  tag: 'tag:yaml.org,2002:int',
20058
20263
  format: 'OCT',
20059
20264
  test: /^[-+]?0[0-7_]+$/,
20060
- resolve: (str, _onError, opt) => intResolve$1(str, 1, 8, opt),
20061
- stringify: node => intStringify$1(node, 8, '0')
20265
+ resolve: (str, _onError, opt) => intResolve(str, 1, 8, opt),
20266
+ stringify: node => intStringify(node, 8, '0')
20062
20267
  };
20063
- const int$1 = {
20064
- identify: intIdentify$2,
20268
+ const int = {
20269
+ identify: intIdentify,
20065
20270
  default: true,
20066
20271
  tag: 'tag:yaml.org,2002:int',
20067
20272
  test: /^[-+]?[0-9][0-9_]*$/,
20068
- resolve: (str, _onError, opt) => intResolve$1(str, 0, 10, opt),
20273
+ resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
20069
20274
  stringify: stringifyNumber
20070
20275
  };
20071
- const intHex$1 = {
20072
- identify: intIdentify$2,
20276
+ const intHex = {
20277
+ identify: intIdentify,
20073
20278
  default: true,
20074
20279
  tag: 'tag:yaml.org,2002:int',
20075
20280
  format: 'HEX',
20076
20281
  test: /^[-+]?0x[0-9a-fA-F_]+$/,
20077
- resolve: (str, _onError, opt) => intResolve$1(str, 2, 16, opt),
20078
- stringify: node => intStringify$1(node, 16, '0x')
20282
+ resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
20283
+ stringify: node => intStringify(node, 16, '0x')
20079
20284
  };
20080
20285
 
20081
20286
  class YAMLSet extends YAMLMap {
@@ -20106,7 +20311,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20106
20311
  get(key, keepPair) {
20107
20312
  const pair = findPair(this.items, key);
20108
20313
  return !keepPair && isPair(pair)
20109
- ? isScalar(pair.key)
20314
+ ? isScalar$1(pair.key)
20110
20315
  ? pair.key.value
20111
20316
  : pair.key
20112
20317
  : pair;
@@ -20264,20 +20469,20 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20264
20469
  stringify: ({ value }) => value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, '')
20265
20470
  };
20266
20471
 
20267
- const schema$2 = [
20472
+ const schema = [
20268
20473
  map,
20269
20474
  seq,
20270
20475
  string,
20271
- nullTag$1,
20476
+ nullTag,
20272
20477
  trueTag,
20273
20478
  falseTag,
20274
20479
  intBin,
20275
- intOct$1,
20276
- int$1,
20277
- intHex$1,
20278
- floatNaN$1,
20279
- floatExp$1,
20280
- float$1,
20480
+ intOct,
20481
+ int,
20482
+ intHex,
20483
+ floatNaN,
20484
+ floatExp,
20485
+ float,
20281
20486
  binary,
20282
20487
  omap,
20283
20488
  pairs,
@@ -20288,25 +20493,25 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20288
20493
  ];
20289
20494
 
20290
20495
  const schemas = new Map([
20291
- ['core', schema],
20496
+ ['core', schema$2],
20292
20497
  ['failsafe', [map, seq, string]],
20293
20498
  ['json', schema$1],
20294
- ['yaml11', schema$2],
20295
- ['yaml-1.1', schema$2]
20499
+ ['yaml11', schema],
20500
+ ['yaml-1.1', schema]
20296
20501
  ]);
20297
20502
  const tagsByName = {
20298
20503
  binary,
20299
- bool: boolTag$2,
20300
- float,
20301
- floatExp,
20302
- floatNaN,
20504
+ bool: boolTag,
20505
+ float: float$1,
20506
+ floatExp: floatExp$1,
20507
+ floatNaN: floatNaN$1,
20303
20508
  floatTime,
20304
- int,
20305
- intHex,
20306
- intOct,
20509
+ int: int$1,
20510
+ intHex: intHex$1,
20511
+ intOct: intOct$1,
20307
20512
  intTime,
20308
20513
  map,
20309
- null: nullTag$1,
20514
+ null: nullTag,
20310
20515
  omap,
20311
20516
  pairs,
20312
20517
  seq,
@@ -20367,7 +20572,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20367
20572
  this.tags = getTags(customTags, this.name);
20368
20573
  this.toStringOptions = toStringDefaults ?? null;
20369
20574
  Object.defineProperty(this, MAP, { value: map });
20370
- Object.defineProperty(this, SCALAR, { value: string });
20575
+ Object.defineProperty(this, SCALAR$1, { value: string });
20371
20576
  Object.defineProperty(this, SEQ, { value: seq });
20372
20577
  // Used by createMap()
20373
20578
  this.sortMapEntries =
@@ -20421,7 +20626,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20421
20626
  contentComment = doc.contents.comment;
20422
20627
  }
20423
20628
  const onChompKeep = contentComment ? undefined : () => (chompKeep = true);
20424
- let body = stringify(doc.contents, ctx, () => (contentComment = null), onChompKeep);
20629
+ let body = stringify$2(doc.contents, ctx, () => (contentComment = null), onChompKeep);
20425
20630
  if (contentComment)
20426
20631
  body += lineComment(body, '', commentString(contentComment));
20427
20632
  if ((body[0] === '|' || body[0] === '>') &&
@@ -20434,7 +20639,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20434
20639
  lines.push(body);
20435
20640
  }
20436
20641
  else {
20437
- lines.push(stringify(doc.contents, ctx));
20642
+ lines.push(stringify$2(doc.contents, ctx));
20438
20643
  }
20439
20644
  if (doc.directives?.docEnd) {
20440
20645
  if (doc.comment) {
@@ -20590,7 +20795,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20590
20795
  sourceObjects
20591
20796
  };
20592
20797
  const node = createNode(value, tag, ctx);
20593
- if (flow && isCollection(node))
20798
+ if (flow && isCollection$1(node))
20594
20799
  node.flow = true;
20595
20800
  setAnchors();
20596
20801
  return node;
@@ -20633,7 +20838,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20633
20838
  * `true` (collections are always returned intact).
20634
20839
  */
20635
20840
  get(key, keepScalar) {
20636
- return isCollection(this.contents)
20841
+ return isCollection$1(this.contents)
20637
20842
  ? this.contents.get(key, keepScalar)
20638
20843
  : undefined;
20639
20844
  }
@@ -20644,10 +20849,10 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20644
20849
  */
20645
20850
  getIn(path, keepScalar) {
20646
20851
  if (isEmptyPath(path))
20647
- return !keepScalar && isScalar(this.contents)
20852
+ return !keepScalar && isScalar$1(this.contents)
20648
20853
  ? this.contents.value
20649
20854
  : this.contents;
20650
- return isCollection(this.contents)
20855
+ return isCollection$1(this.contents)
20651
20856
  ? this.contents.getIn(path, keepScalar)
20652
20857
  : undefined;
20653
20858
  }
@@ -20655,7 +20860,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20655
20860
  * Checks if the document includes a value with the key `key`.
20656
20861
  */
20657
20862
  has(key) {
20658
- return isCollection(this.contents) ? this.contents.has(key) : false;
20863
+ return isCollection$1(this.contents) ? this.contents.has(key) : false;
20659
20864
  }
20660
20865
  /**
20661
20866
  * Checks if the document includes a value at `path`.
@@ -20663,7 +20868,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20663
20868
  hasIn(path) {
20664
20869
  if (isEmptyPath(path))
20665
20870
  return this.contents !== undefined;
20666
- return isCollection(this.contents) ? this.contents.hasIn(path) : false;
20871
+ return isCollection$1(this.contents) ? this.contents.hasIn(path) : false;
20667
20872
  }
20668
20873
  /**
20669
20874
  * Sets a value in this document. For `!!set`, `value` needs to be a
@@ -20780,7 +20985,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
20780
20985
  }
20781
20986
  }
20782
20987
  function assertCollection(contents) {
20783
- if (isCollection(contents))
20988
+ if (isCollection$1(contents))
20784
20989
  return true;
20785
20990
  throw new Error('Expected a YAML collection as document contents');
20786
20991
  }
@@ -21040,8 +21245,8 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
21040
21245
  const isEqual = typeof uniqueKeys === 'function'
21041
21246
  ? uniqueKeys
21042
21247
  : (a, b) => a === b ||
21043
- (isScalar(a) &&
21044
- isScalar(b) &&
21248
+ (isScalar$1(a) &&
21249
+ isScalar$1(b) &&
21045
21250
  a.value === b.value &&
21046
21251
  !(a.value === '<<' && ctx.schema.merge));
21047
21252
  return items.some(pair => isEqual(pair.key, search));
@@ -21927,11 +22132,11 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
21927
22132
  ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError)
21928
22133
  : token.type === 'scalar'
21929
22134
  ? findScalarTagByTest(ctx, value, token, onError)
21930
- : ctx.schema[SCALAR];
22135
+ : ctx.schema[SCALAR$1];
21931
22136
  let scalar;
21932
22137
  try {
21933
22138
  const res = tag.resolve(value, msg => onError(tagToken ?? token, 'TAG_RESOLVE_FAILED', msg), ctx.options);
21934
- scalar = isScalar(res) ? res : new Scalar(res);
22139
+ scalar = isScalar$1(res) ? res : new Scalar(res);
21935
22140
  }
21936
22141
  catch (error) {
21937
22142
  const msg = error instanceof Error ? error.message : String(error);
@@ -21952,7 +22157,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
21952
22157
  }
21953
22158
  function findScalarTagByName(schema, value, tagName, tagToken, onError) {
21954
22159
  if (tagName === '!')
21955
- return schema[SCALAR]; // non-specific tag
22160
+ return schema[SCALAR$1]; // non-specific tag
21956
22161
  const matchWithTest = [];
21957
22162
  for (const tag of schema.tags) {
21958
22163
  if (!tag.collection && tag.tag === tagName) {
@@ -21973,13 +22178,13 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
21973
22178
  return kt;
21974
22179
  }
21975
22180
  onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, tagName !== 'tag:yaml.org,2002:str');
21976
- return schema[SCALAR];
22181
+ return schema[SCALAR$1];
21977
22182
  }
21978
22183
  function findScalarTagByTest({ directives, schema }, value, token, onError) {
21979
- const tag = schema.tags.find(tag => tag.default && tag.test?.test(value)) || schema[SCALAR];
22184
+ const tag = schema.tags.find(tag => tag.default && tag.test?.test(value)) || schema[SCALAR$1];
21980
22185
  if (schema.compat) {
21981
22186
  const compat = schema.compat.find(tag => tag.default && tag.test?.test(value)) ??
21982
- schema[SCALAR];
22187
+ schema[SCALAR$1];
21983
22188
  if (tag.tag !== compat.tag) {
21984
22189
  const ts = directives.tagString(tag.tag);
21985
22190
  const cs = directives.tagString(compat.tag);
@@ -22213,7 +22418,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
22213
22418
  else if (afterEmptyLine || doc.directives.docStart || !dc) {
22214
22419
  doc.commentBefore = comment;
22215
22420
  }
22216
- else if (isCollection(dc) && !dc.flow && dc.items.length > 0) {
22421
+ else if (isCollection$1(dc) && !dc.flow && dc.items.length > 0) {
22217
22422
  let it = dc.items[0];
22218
22423
  if (isPair(it))
22219
22424
  it = it.key;
@@ -22614,9 +22819,9 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
22614
22819
  return res;
22615
22820
  }
22616
22821
 
22617
- const BREAK$1 = Symbol('break visit');
22618
- const SKIP$1 = Symbol('skip children');
22619
- const REMOVE$1 = Symbol('remove item');
22822
+ const BREAK = Symbol('break visit');
22823
+ const SKIP = Symbol('skip children');
22824
+ const REMOVE = Symbol('remove item');
22620
22825
  /**
22621
22826
  * Apply a visitor to a CST document or item.
22622
22827
  *
@@ -22645,7 +22850,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
22645
22850
  * visitor is called on item entry, next visitors are called after handling
22646
22851
  * a non-empty `key` and when exiting the item.
22647
22852
  */
22648
- function visit$1(cst, visitor) {
22853
+ function visit(cst, visitor) {
22649
22854
  if ('type' in cst && cst.type === 'document')
22650
22855
  cst = { start: cst.start, value: cst.value };
22651
22856
  _visit(Object.freeze([]), cst, visitor);
@@ -22654,13 +22859,13 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
22654
22859
  // namespace using `var`, but then complains about that because
22655
22860
  // `unique symbol` must be `const`.
22656
22861
  /** Terminate visit traversal completely */
22657
- visit$1.BREAK = BREAK$1;
22862
+ visit.BREAK = BREAK;
22658
22863
  /** Do not visit the children of the current item */
22659
- visit$1.SKIP = SKIP$1;
22864
+ visit.SKIP = SKIP;
22660
22865
  /** Remove the current item */
22661
- visit$1.REMOVE = REMOVE$1;
22866
+ visit.REMOVE = REMOVE;
22662
22867
  /** Find the item at `path` from `cst` as the root */
22663
- visit$1.itemAtPath = (cst, path) => {
22868
+ visit.itemAtPath = (cst, path) => {
22664
22869
  let item = cst;
22665
22870
  for (const [field, index] of path) {
22666
22871
  const tok = item?.[field];
@@ -22677,8 +22882,8 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
22677
22882
  *
22678
22883
  * Throws an error if the collection is not found, which should never happen if the item itself exists.
22679
22884
  */
22680
- visit$1.parentCollection = (cst, path) => {
22681
- const parent = visit$1.itemAtPath(cst, path.slice(0, -1));
22885
+ visit.parentCollection = (cst, path) => {
22886
+ const parent = visit.itemAtPath(cst, path.slice(0, -1));
22682
22887
  const field = path[path.length - 1][0];
22683
22888
  const coll = parent?.[field];
22684
22889
  if (coll && 'items' in coll)
@@ -22696,9 +22901,9 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
22696
22901
  const ci = _visit(Object.freeze(path.concat([[field, i]])), token.items[i], visitor);
22697
22902
  if (typeof ci === 'number')
22698
22903
  i = ci - 1;
22699
- else if (ci === BREAK$1)
22700
- return BREAK$1;
22701
- else if (ci === REMOVE$1) {
22904
+ else if (ci === BREAK)
22905
+ return BREAK;
22906
+ else if (ci === REMOVE) {
22702
22907
  token.items.splice(i, 1);
22703
22908
  i -= 1;
22704
22909
  }
@@ -22717,11 +22922,11 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
22717
22922
  /** Unexpected end of flow-mode */
22718
22923
  const FLOW_END = '\x18'; // C0: Cancel
22719
22924
  /** Next token is a scalar value */
22720
- const SCALAR$1 = '\x1f'; // C0: Unit Separator
22925
+ const SCALAR = '\x1f'; // C0: Unit Separator
22721
22926
  /** @returns `true` if `token` is a flow or block collection */
22722
- const isCollection$1 = (token) => !!token && 'items' in token;
22927
+ const isCollection = (token) => !!token && 'items' in token;
22723
22928
  /** @returns `true` if `token` is a flow or block scalar; not an alias */
22724
- const isScalar$1 = (token) => !!token &&
22929
+ const isScalar = (token) => !!token &&
22725
22930
  (token.type === 'scalar' ||
22726
22931
  token.type === 'single-quoted-scalar' ||
22727
22932
  token.type === 'double-quoted-scalar' ||
@@ -22736,7 +22941,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
22736
22941
  return '<DOC>';
22737
22942
  case FLOW_END:
22738
22943
  return '<FLOW_END>';
22739
- case SCALAR$1:
22944
+ case SCALAR:
22740
22945
  return '<SCALAR>';
22741
22946
  default:
22742
22947
  return JSON.stringify(token);
@@ -22751,7 +22956,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
22751
22956
  return 'doc-mode';
22752
22957
  case FLOW_END:
22753
22958
  return 'flow-error-end';
22754
- case SCALAR$1:
22959
+ case SCALAR:
22755
22960
  return 'scalar';
22756
22961
  case '---':
22757
22962
  return 'doc-start';
@@ -22808,16 +23013,16 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
22808
23013
  BOM: BOM,
22809
23014
  DOCUMENT: DOCUMENT,
22810
23015
  FLOW_END: FLOW_END,
22811
- SCALAR: SCALAR$1,
22812
- isCollection: isCollection$1,
22813
- isScalar: isScalar$1,
22814
- prettyToken: prettyToken,
22815
- tokenType: tokenType,
23016
+ SCALAR: SCALAR,
22816
23017
  createScalarToken: createScalarToken,
23018
+ isCollection: isCollection,
23019
+ isScalar: isScalar,
23020
+ prettyToken: prettyToken,
22817
23021
  resolveAsScalar: resolveAsScalar,
22818
23022
  setScalarValue: setScalarValue,
22819
23023
  stringify: stringify$1,
22820
- visit: visit$1
23024
+ tokenType: tokenType,
23025
+ visit: visit
22821
23026
  });
22822
23027
 
22823
23028
  /*
@@ -23383,7 +23588,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
23383
23588
  break;
23384
23589
  } while (true);
23385
23590
  }
23386
- yield SCALAR$1;
23591
+ yield SCALAR;
23387
23592
  yield* this.pushToIndex(nl + 1, true);
23388
23593
  return yield* this.parseLineStart();
23389
23594
  }
@@ -23427,7 +23632,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
23427
23632
  }
23428
23633
  if (!ch && !this.atEnd)
23429
23634
  return this.setNext('plain-scalar');
23430
- yield SCALAR$1;
23635
+ yield SCALAR;
23431
23636
  yield* this.pushToIndex(end + 1, true);
23432
23637
  return inFlow ? 'flow' : 'doc';
23433
23638
  }
@@ -24591,7 +24796,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
24591
24796
  }
24592
24797
  return doc.toJS(Object.assign({ reviver: _reviver }, options));
24593
24798
  }
24594
- function stringify$2(value, replacer, options) {
24799
+ function stringify(value, replacer, options) {
24595
24800
  let _replacer = null;
24596
24801
  if (typeof replacer === 'function' || Array.isArray(replacer)) {
24597
24802
  _replacer = replacer;
@@ -24615,71 +24820,72 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
24615
24820
 
24616
24821
  var YAML = /*#__PURE__*/Object.freeze({
24617
24822
  __proto__: null,
24823
+ Alias: Alias,
24618
24824
  CST: cst,
24619
24825
  Composer: Composer,
24620
24826
  Document: Document,
24827
+ Lexer: Lexer,
24828
+ LineCounter: LineCounter,
24829
+ Pair: Pair,
24830
+ Parser: Parser,
24831
+ Scalar: Scalar,
24621
24832
  Schema: Schema,
24622
24833
  YAMLError: YAMLError,
24834
+ YAMLMap: YAMLMap,
24623
24835
  YAMLParseError: YAMLParseError,
24836
+ YAMLSeq: YAMLSeq,
24624
24837
  YAMLWarning: YAMLWarning,
24625
- Alias: Alias,
24626
24838
  isAlias: isAlias,
24627
- isCollection: isCollection,
24839
+ isCollection: isCollection$1,
24628
24840
  isDocument: isDocument,
24629
24841
  isMap: isMap,
24630
24842
  isNode: isNode,
24631
24843
  isPair: isPair,
24632
- isScalar: isScalar,
24844
+ isScalar: isScalar$1,
24633
24845
  isSeq: isSeq,
24634
- Pair: Pair,
24635
- Scalar: Scalar,
24636
- YAMLMap: YAMLMap,
24637
- YAMLSeq: YAMLSeq,
24638
- Lexer: Lexer,
24639
- LineCounter: LineCounter,
24640
- Parser: Parser,
24641
24846
  parse: parse,
24642
24847
  parseAllDocuments: parseAllDocuments,
24643
24848
  parseDocument: parseDocument,
24644
- stringify: stringify$2,
24645
- visit: visit,
24849
+ stringify: stringify,
24850
+ visit: visit$1,
24646
24851
  visitAsync: visitAsync
24647
24852
  });
24648
24853
 
24649
24854
  // `export * as default from ...` fails on Webpack v4
24855
+ // https://github.com/eemeli/yaml/issues/228
24650
24856
 
24651
24857
  var index = /*#__PURE__*/Object.freeze({
24652
24858
  __proto__: null,
24653
- 'default': YAML,
24859
+ Alias: Alias,
24860
+ CST: cst,
24654
24861
  Composer: Composer,
24655
24862
  Document: Document,
24863
+ Lexer: Lexer,
24864
+ LineCounter: LineCounter,
24865
+ Pair: Pair,
24866
+ Parser: Parser,
24867
+ Scalar: Scalar,
24656
24868
  Schema: Schema,
24657
24869
  YAMLError: YAMLError,
24870
+ YAMLMap: YAMLMap,
24658
24871
  YAMLParseError: YAMLParseError,
24872
+ YAMLSeq: YAMLSeq,
24659
24873
  YAMLWarning: YAMLWarning,
24660
- Alias: Alias,
24874
+ default: YAML,
24661
24875
  isAlias: isAlias,
24662
- isCollection: isCollection,
24876
+ isCollection: isCollection$1,
24663
24877
  isDocument: isDocument,
24664
24878
  isMap: isMap,
24665
24879
  isNode: isNode,
24666
24880
  isPair: isPair,
24667
- isScalar: isScalar,
24881
+ isScalar: isScalar$1,
24668
24882
  isSeq: isSeq,
24669
- Pair: Pair,
24670
- Scalar: Scalar,
24671
- YAMLMap: YAMLMap,
24672
- YAMLSeq: YAMLSeq,
24673
- Lexer: Lexer,
24674
- LineCounter: LineCounter,
24675
- Parser: Parser,
24676
24883
  parse: parse,
24677
24884
  parseAllDocuments: parseAllDocuments,
24678
24885
  parseDocument: parseDocument,
24679
- stringify: stringify$2,
24680
- visit: visit,
24681
- visitAsync: visitAsync,
24682
- CST: cst
24886
+ stringify: stringify,
24887
+ visit: visit$1,
24888
+ visitAsync: visitAsync
24683
24889
  });
24684
24890
 
24685
24891
  exports.AnswerService = AnswerService;
@@ -24698,12 +24904,10 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
24698
24904
  exports.getInitConfig = getEmbedConfig;
24699
24905
  exports.getSessionInfo = getSessionInfo;
24700
24906
  exports.init = init;
24701
- exports.logout = logout$1;
24907
+ exports.logout = logout;
24702
24908
  exports.prefetch = prefetch;
24703
24909
  exports.resetCachedAuthToken = resetCachedAuthToken;
24704
24910
  exports.tokenizedFetch = tokenizedFetch;
24705
24911
  exports.uploadMixpanelEvent = uploadMixpanelEvent;
24706
24912
 
24707
- Object.defineProperty(exports, '__esModule', { value: true });
24708
-
24709
- })));
24913
+ }));