@ncino/web-components 5.0.0-preview.2 → 5.0.0-preview.4

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 (203) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +1 -1
  2. package/dist/_virtual/index_html.js +1 -1
  3. package/dist/_virtual/index_react.js +1 -1
  4. package/dist/_virtual/preload-helper.js +1 -1
  5. package/dist/assets/node_modules/.pnpm/ckeditor5@45.2.1/node_modules/ckeditor5/dist/ckeditor5.css +1 -1
  6. package/dist/components/accordion/gator/base/accordion.gator.js +6 -6
  7. package/dist/components/accordion/gator/group/accordion-group.gator.js +2 -2
  8. package/dist/components/alert/gator/base/alert.gator.js +2 -2
  9. package/dist/components/alert/gator/subtitle/alert-subtitle.gator.js +2 -2
  10. package/dist/components/alert/gator/title/alert-title.gator.js +2 -2
  11. package/dist/components/avatar/gator/avatar.gator.js +2 -2
  12. package/dist/components/badge/gator/badge.gator.js +2 -2
  13. package/dist/components/banner/gator/banner.gator.js +2 -2
  14. package/dist/components/boolean/boolean.gator.js +6 -6
  15. package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +2 -2
  16. package/dist/components/button/gator/button.gator.js +4 -4
  17. package/dist/components/button-group/gator/button-group.gator.js +2 -2
  18. package/dist/components/card/gator/footer/card-footer.gator.js +2 -2
  19. package/dist/components/card/gator/header/card-header.gator.js +2 -2
  20. package/dist/components/checkbox/checkbox.gator.js +5 -5
  21. package/dist/components/checkbox-group/checkbox-group.gator.js +8 -8
  22. package/dist/components/combobox/base/combobox.js +1 -1
  23. package/dist/components/combobox/base/combobox.slds.js +13 -13
  24. package/dist/components/date-picker/base/gator/datepicker.gator.js +18 -18
  25. package/dist/components/date-picker/year-month-selector/year-month-selector.gator.js +2 -2
  26. package/dist/components/headline-card/gator/headline-card.gator.js +2 -2
  27. package/dist/components/icon/gator/icon.gator.js +2 -2
  28. package/dist/components/illustration/gator/illustration.gator.js +2 -2
  29. package/dist/components/input/base/input-base.gator.js +1 -1
  30. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +11 -11
  31. package/dist/components/input/gator/input-currency/input-currency.gator.js +2 -2
  32. package/dist/components/input/gator/input-date/input-date.gator.js +15 -15
  33. package/dist/components/input/gator/input-file/input-file.gator.js +3 -3
  34. package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
  35. package/dist/components/input/gator/input-phone/input-phone.gator.js +2 -2
  36. package/dist/components/input/gator/input-search/input-search.gator.js +2 -2
  37. package/dist/components/input/gator/input-text/input-text.gator.js +1 -1
  38. package/dist/components/input/gator/input-time/input-time.gator.js +2 -2
  39. package/dist/components/list/gator/list/list.gator.js +2 -2
  40. package/dist/components/list/gator/list-item/list-item.gator.js +6 -6
  41. package/dist/components/menu/base/gator/menu.gator.js +3 -3
  42. package/dist/components/menu/base/slds/menu.slds.js +2 -2
  43. package/dist/components/menu/menu-item/gator/menu-item.gator.js +2 -2
  44. package/dist/components/menu/menu-submenu/menu-submenu.js +1 -1
  45. package/dist/components/modal/gator/modal.gator.js +38 -39
  46. package/dist/components/page-header/gator/page-header.gator.js +2 -2
  47. package/dist/components/panel/gator/panel.gator.js +13 -13
  48. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  49. package/dist/components/pill/pill.slds.js +3 -3
  50. package/dist/components/popover/gator/popover.gator.js +10 -10
  51. package/dist/components/popover/popover.js +1 -1
  52. package/dist/components/radio/radio.gator.js +2 -2
  53. package/dist/components/radio-group/radio-group.gator.js +2 -2
  54. package/dist/components/selection-box-group/selection-box-group.gator.js +5 -5
  55. package/dist/components/selector/gator/selector.gator.js +2 -2
  56. package/dist/components/switch/gator/switch.gator.js +2 -2
  57. package/dist/components/tabs/gator/tabset/tabset.gator.js +3 -3
  58. package/dist/components/text-detail/gator/text-detail.gator.js +17 -18
  59. package/dist/components/time-picker/gator/time-picker.gator.js +19 -19
  60. package/dist/components/toast/gator/base/toast.gator.js +8 -9
  61. package/dist/components/toast/gator/subtitle/toast-subtitle.gator.js +2 -2
  62. package/dist/components/toast/gator/title/toast-title.gator.js +2 -2
  63. package/dist/components/toast/toast.js +1 -1
  64. package/dist/components/toast-container/gator/toast-container.gator.js +18 -0
  65. package/dist/components/toast-container/index.js +1 -0
  66. package/dist/components/toaster/gator/toaster.gator.js +5 -0
  67. package/dist/components/toaster/index.js +1 -0
  68. package/dist/components/tooltip/tooltip.js +1 -1
  69. package/dist/index.gator.js +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/index.services.js +1 -0
  72. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-autosave@45.2.1/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +2 -2
  73. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-basic-styles@45.2.1/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +2 -2
  74. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@45.2.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +10 -10
  75. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-cloud-services@45.2.1/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +2 -2
  76. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-code-block@45.2.1/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +5 -5
  77. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js +2 -2
  78. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-editor-classic@45.2.1/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +2 -2
  79. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +12 -12
  80. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-find-and-replace@45.2.1/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +3 -3
  81. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-font@45.2.1/node_modules/@ckeditor/ckeditor5-font/dist/index.js +3 -3
  82. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-heading@45.2.1/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +3 -3
  83. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@45.2.1/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +2 -2
  84. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@45.2.1/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +6 -6
  85. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@45.2.1/node_modules/@ckeditor/ckeditor5-image/dist/index.js +4 -4
  86. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@45.2.1/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +4 -4
  87. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@45.2.1/node_modules/@ckeditor/ckeditor5-link/dist/index.js +2 -2
  88. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@45.2.1/node_modules/@ckeditor/ckeditor5-list/dist/index.js +5 -5
  89. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-markdown-gfm@45.2.1/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +4 -4
  90. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-media-embed@45.2.1/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +2 -2
  91. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paragraph@45.2.1/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +2 -2
  92. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@45.2.1/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +9 -9
  93. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.2.1/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +2 -2
  94. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@45.2.1/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +2 -2
  95. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-style@45.2.1/node_modules/@ckeditor/ckeditor5-style/dist/index.js +2 -2
  96. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@45.2.1/node_modules/@ckeditor/ckeditor5-table/dist/index.js +6 -6
  97. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +4 -4
  98. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +10 -10
  99. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-undo@45.2.1/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +2 -2
  100. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-upload@45.2.1/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +2 -2
  101. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +38 -38
  102. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-watchdog@45.2.1/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +3 -3
  103. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@45.2.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +2 -2
  104. package/dist/node_modules/.pnpm/@deltablot_dropzone@7.3.1/node_modules/@deltablot/dropzone/dist/dropzone.js +1 -1
  105. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js +1 -1
  106. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/dist/common/fetch.js +1 -0
  107. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +1 -0
  108. package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/helpers.js +1 -1
  109. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/package.json.js +1 -0
  110. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
  111. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js +2 -2
  112. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/channels/index.js +9 -9
  113. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/csf/index.js +1 -1
  114. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/preview-api/index.js +22 -22
  115. package/dist/node_modules/.pnpm/@storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/instrumenter/dist/index.js +36 -36
  116. package/dist/node_modules/.pnpm/@storybook_test@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/test/dist/index.js +111 -111
  117. package/dist/node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.2_77c47ac19cbe97978028e1e5ac862536/node_modules/@vitest/browser/context.js +1 -0
  118. package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +8 -8
  119. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +2 -2
  120. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +5 -5
  121. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +11 -11
  122. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +21 -21
  123. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +2 -2
  124. package/dist/node_modules/.pnpm/axe-core@4.10.3/node_modules/axe-core/axe.js +4 -4
  125. package/dist/node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js +3 -3
  126. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +1 -1
  127. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +1 -1
  128. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/get.js +1 -1
  129. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/unset.js +1 -1
  130. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +1 -1
  131. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/debounce.js +1 -1
  132. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/object/cloneDeepWith.js +1 -1
  133. package/dist/node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js +2 -2
  134. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/async-directive.js +1 -1
  135. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directive-helpers.js +2 -2
  136. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js +2 -2
  137. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js +2 -2
  138. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/repeat.js +5 -0
  139. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js +3 -3
  140. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +1 -1
  141. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cache.js +1 -1
  142. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cachestorage.js +1 -1
  143. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/parse.js +1 -1
  144. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/constants.js +1 -1
  145. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js +1 -1
  146. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/index.js +1 -1
  147. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/request.js +1 -1
  148. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/response.js +1 -1
  149. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/util.js +2 -2
  150. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/webidl.js +1 -1
  151. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/connection.js +1 -1
  152. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/events.js +1 -1
  153. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/frame.js +1 -1
  154. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/receiver.js +1 -1
  155. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/util.js +1 -1
  156. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/websocket.js +1 -1
  157. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
  158. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +8 -8
  159. package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
  160. package/dist/packages/web-components/src/components/modal/gator/modal.gator.scss.js +1 -1
  161. package/dist/packages/web-components/src/components/switch/gator/switch.gator.scss.js +1 -1
  162. package/dist/packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js +1 -1
  163. package/dist/packages/web-components/src/components/toast/gator/base/toast.gator.scss.js +1 -1
  164. package/dist/packages/web-components/src/components/toast-container/gator/toast-container.gator.scss.js +1 -0
  165. package/dist/packages/web-components/src/components/toaster/gator/toaster.gator.scss.js +1 -0
  166. package/dist/packages/web-components/src/index.slds.scss.js +1 -1
  167. package/dist/services/toaster-service.js +1 -0
  168. package/dist/types/components/modal/gator/modal.gator.d.ts +1 -1
  169. package/dist/types/components/text-detail/gator/text-detail.gator.d.ts +4 -2
  170. package/dist/types/components/toast/toast.d.ts +14 -0
  171. package/dist/types/components/toast-container/gator/toast-container.gator.d.ts +15 -0
  172. package/dist/types/components/toast-container/gator/toast-container.gator.test.d.ts +0 -0
  173. package/dist/types/components/toast-container/index.d.ts +1 -0
  174. package/dist/types/components/toaster/gator/toaster.gator.d.ts +32 -0
  175. package/dist/types/components/toaster/gator/toaster.gator.test.d.ts +0 -0
  176. package/dist/types/components/toaster/index.d.ts +1 -0
  177. package/dist/types/index.d.ts +2 -0
  178. package/dist/types/index.gator.d.ts +2 -0
  179. package/dist/types/index.services.d.ts +1 -0
  180. package/dist/types/services/toaster-service.d.ts +117 -0
  181. package/dist/types/services/toaster-service.test.d.ts +1 -0
  182. package/dist/utils/accessibility-utils.js +1 -1
  183. package/dist/utils/datatestid-utils.js +1 -1
  184. package/dist/utils/lightdom-utils.js +1 -1
  185. package/dist/utils/vitest-a11y-utils.js +1 -1
  186. package/dist/utils/vitest-utils.js +1 -1
  187. package/package.json +15 -11
  188. package/web-types.json +182 -110
  189. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/common/fetch.js +0 -1
  190. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +0 -1
  191. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/package.json.js +0 -1
  192. package/dist/node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.1_5fd2997ee9a97429a51e07bc2023c338/node_modules/@vitest/browser/context.js +0 -1
  193. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/client/external.js +0 -0
  194. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/client/figma_client.js +0 -0
  195. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/common/logging.js +0 -0
  196. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/common/updates.js +0 -0
  197. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/external_types.js +0 -0
  198. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/index_common.js +0 -0
  199. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/external.js +0 -0
  200. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/index_html.js +0 -0
  201. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/template_literal.js +0 -0
  202. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/react/external.js +0 -0
  203. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/react/index_react.js +0 -0
@@ -1,48 +1,48 @@
1
- var Nr=Object.defineProperty;var Tr=(e,t,r)=>t in e?Nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Y=(e,t,r)=>Tr(e,typeof t!="symbol"?t+"":t,r);import{once as Ar}from"../../../../../@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/client-logger/index.js";import{FORCE_REMOUNT as ve,STORY_RENDER_PHASE_CHANGED as Mr,SET_CURRENT_STORY as Ir}from"../../../../../@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/core-events/index.js";import{addons as Pr}from"../../../../../@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/preview-api/index.js";import{global as L}from"../../../../../@storybook_global@5.0.0/node_modules/@storybook/global/dist/index.js";var Rr=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Lr={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},Dr=Object.entries(Lr);function Ue(e){return String(e)}Ue.open="";Ue.close="";function jr(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function Fr(e=!1){let t=jr(e),r=(u,s,c,a)=>{let o="",h=0;do o+=u.substring(h,a)+c,h=a+s.length,a=u.indexOf(s,h);while(~a);return o+u.substring(h)},n=(u,s,c=u)=>{let a=o=>{let h=String(o),y=h.indexOf(s,u.length);return~y?u+r(h,s,c,y)+s:u+h+s};return a.open=u,a.close=s,a},i={isColorSupported:t},l=u=>`\x1B[${u}m`;for(let[u,s]of Dr)i[u]=t?n(l(s[0]),l(s[1]),s[2]):Ue;return i}var v=Fr(!1);function Br(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let i of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,i).enumerable&&n.push(i);return n}function Oe(e,t,r,n,i,l,u=": "){let s="",c=0,a=e.next();if(!a.done){s+=t.spacingOuter;let o=r+t.indent;for(;!a.done;){if(s+=o,c++===t.maxWidth){s+="…";break}let h=l(a.value[0],t,o,n,i),y=l(a.value[1],t,o,n,i);s+=h+u+y,a=e.next(),a.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function Ke(e,t,r,n,i,l){let u="",s=0,c=e.next();if(!c.done){u+=t.spacingOuter;let a=r+t.indent;for(;!c.done;){if(u+=a,s++===t.maxWidth){u+="…";break}u+=l(c.value,t,a,n,i),c=e.next(),c.done?t.min||(u+=","):u+=`,${t.spacingInner}`}u+=t.spacingOuter+r}return u}function $e(e,t,r,n,i,l){let u="";e=e instanceof ArrayBuffer?new DataView(e):e;let s=a=>a instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){u+=t.spacingOuter;let a=r+t.indent;for(let o=0;o<c;o++){if(u+=a,o===t.maxWidth){u+="…";break}(s(e)||o in e)&&(u+=l(s(e)?e.getInt8(o):e[o],t,a,n,i)),o<c-1?u+=`,${t.spacingInner}`:t.min||(u+=",")}u+=t.spacingOuter+r}return u}function qe(e,t,r,n,i,l){let u="",s=Br(e,t.compareKeys);if(s.length>0){u+=t.spacingOuter;let c=r+t.indent;for(let a=0;a<s.length;a++){let o=s[a],h=l(o,t,c,n,i),y=l(e[o],t,c,n,i);u+=`${c+h}: ${y}`,a<s.length-1?u+=`,${t.spacingInner}`:t.min||(u+=",")}u+=t.spacingOuter+r}return u}var xr=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Ce=" ",kr=(e,t,r,n,i,l)=>{let u=e.toString();if(u==="ArrayContaining"||u==="ArrayNotContaining")return++n>t.maxDepth?`[${u}]`:`${u+Ce}[${$e(e.sample,t,r,n,i,l)}]`;if(u==="ObjectContaining"||u==="ObjectNotContaining")return++n>t.maxDepth?`[${u}]`:`${u+Ce}{${qe(e.sample,t,r,n,i,l)}}`;if(u==="StringMatching"||u==="StringNotMatching"||u==="StringContaining"||u==="StringNotContaining")return u+Ce+l(e.sample,t,r,n,i);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},zr=e=>e&&e.$$typeof===xr,Ur={serialize:kr,test:zr},Kr=" ",qt=new Set(["DOMStringMap","NamedNodeMap"]),qr=/^(?:HTML\w*Collection|NodeList)$/;function Wr(e){return qt.has(e)||qr.test(e)}var Yr=e=>e&&e.constructor&&!!e.constructor.name&&Wr(e.constructor.name);function Vr(e){return e.constructor.name==="NamedNodeMap"}var Hr=(e,t,r,n,i,l)=>{let u=e.constructor.name;return++n>t.maxDepth?`[${u}]`:(t.min?"":u+Kr)+(qt.has(u)?`{${qe(Vr(e)?[...e].reduce((s,c)=>(s[c.name]=c.value,s),{}):{...e},t,r,n,i,l)}}`:`[${$e([...e],t,r,n,i,l)}]`)},Gr={serialize:Hr,test:Yr};function Wt(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function We(e,t,r,n,i,l,u){let s=n+r.indent,c=r.colors;return e.map(a=>{let o=t[a],h=u(o,r,s,i,l);return typeof o!="string"&&(h.includes(`
2
- `)&&(h=r.spacingOuter+s+h+r.spacingOuter+n),h=`{${h}}`),`${r.spacingInner+n+c.prop.open+a+c.prop.close}=${c.value.open}${h}${c.value.close}`}).join("")}function Ye(e,t,r,n,i,l){return e.map(u=>t.spacingOuter+r+(typeof u=="string"?Yt(u,t):l(u,t,r,n,i))).join("")}function Yt(e,t){let r=t.colors.content;return r.open+Wt(e)+r.close}function Jr(e,t){let r=t.colors.comment;return`${r.open}<!--${Wt(e)}-->${r.close}`}function Ve(e,t,r,n,i){let l=n.colors.tag;return`${l.open}<${e}${t&&l.close+t+n.spacingOuter+i+l.open}${r?`>${l.close}${r}${n.spacingOuter}${i}${l.open}</${e}`:`${t&&!n.min?"":" "}/`}>${l.close}`}function He(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var Xr=1,Vt=3,Ht=8,Gt=11,Zr=/^(?:(?:HTML|SVG)\w*)?Element$/;function Qr(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function vr(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,i=typeof n=="string"&&n.includes("-")||Qr(e);return r===Xr&&(Zr.test(t)||i)||r===Vt&&t==="Text"||r===Ht&&t==="Comment"||r===Gt&&t==="DocumentFragment"}var en=e=>{var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.name)&&vr(e)};function tn(e){return e.nodeType===Vt}function rn(e){return e.nodeType===Ht}function Ne(e){return e.nodeType===Gt}var nn=(e,t,r,n,i,l)=>{if(tn(e))return Yt(e.data,t);if(rn(e))return Jr(e.data,t);let u=Ne(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?He(u,t):Ve(u,We(Ne(e)?[]:Array.from(e.attributes,s=>s.name).sort(),Ne(e)?{}:[...e.attributes].reduce((s,c)=>(s[c.name]=c.value,s),{}),t,r+t.indent,n,i,l),Ye(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,i,l),t,r)},ln={serialize:nn,test:en},un="@@__IMMUTABLE_ITERABLE__@@",sn="@@__IMMUTABLE_LIST__@@",on="@@__IMMUTABLE_KEYED__@@",cn="@@__IMMUTABLE_MAP__@@",et="@@__IMMUTABLE_ORDERED__@@",an="@@__IMMUTABLE_RECORD__@@",gn="@@__IMMUTABLE_SEQ__@@",hn="@@__IMMUTABLE_SET__@@",fn="@@__IMMUTABLE_STACK__@@",ge=e=>`Immutable.${e}`,de=e=>`[${e}]`,me=" ",tt="…";function mn(e,t,r,n,i,l,u){return++n>t.maxDepth?de(ge(u)):`${ge(u)+me}{${Oe(e.entries(),t,r,n,i,l)}}`}function pn(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function yn(e,t,r,n,i,l){let u=ge(e._name||"Record");return++n>t.maxDepth?de(u):`${u+me}{${Oe(pn(e),t,r,n,i,l)}}`}function bn(e,t,r,n,i,l){let u=ge("Seq");return++n>t.maxDepth?de(u):e[on]?`${u+me}{${e._iter||e._object?Oe(e.entries(),t,r,n,i,l):tt}}`:`${u+me}[${e._iter||e._array||e._collection||e._iterable?Ke(e.values(),t,r,n,i,l):tt}]`}function Te(e,t,r,n,i,l,u){return++n>t.maxDepth?de(ge(u)):`${ge(u)+me}[${Ke(e.values(),t,r,n,i,l)}]`}var Sn=(e,t,r,n,i,l)=>e[cn]?mn(e,t,r,n,i,l,e[et]?"OrderedMap":"Map"):e[sn]?Te(e,t,r,n,i,l,"List"):e[hn]?Te(e,t,r,n,i,l,e[et]?"OrderedSet":"Set"):e[fn]?Te(e,t,r,n,i,l,"Stack"):e[gn]?bn(e,t,r,n,i,l):yn(e,t,r,n,i,l),_n=e=>e&&(e[un]===!0||e[an]===!0),$n={serialize:Sn,test:_n},rt={exports:{}},C={},nt;function On(){if(nt)return C;nt=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function p(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case r:case i:case n:case a:case o:return g;default:switch(g=g&&g.$$typeof,g){case s:case u:case c:case y:case h:case l:return g;default:return b}}case t:return b}}}return C.ContextConsumer=u,C.ContextProvider=l,C.Element=e,C.ForwardRef=c,C.Fragment=r,C.Lazy=y,C.Memo=h,C.Portal=t,C.Profiler=i,C.StrictMode=n,C.Suspense=a,C.SuspenseList=o,C.isAsyncMode=function(){return!1},C.isConcurrentMode=function(){return!1},C.isContextConsumer=function(g){return p(g)===u},C.isContextProvider=function(g){return p(g)===l},C.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},C.isForwardRef=function(g){return p(g)===c},C.isFragment=function(g){return p(g)===r},C.isLazy=function(g){return p(g)===y},C.isMemo=function(g){return p(g)===h},C.isPortal=function(g){return p(g)===t},C.isProfiler=function(g){return p(g)===i},C.isStrictMode=function(g){return p(g)===n},C.isSuspense=function(g){return p(g)===a},C.isSuspenseList=function(g){return p(g)===o},C.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===n||g===a||g===o||g===f||typeof g=="object"&&g!==null&&(g.$$typeof===y||g.$$typeof===h||g.$$typeof===l||g.$$typeof===u||g.$$typeof===c||g.$$typeof===m||g.getModuleId!==void 0)},C.typeOf=p,C}var it;function dn(){return it||(it=1,rt.exports=On()),rt.exports}var ie=dn();function Jt(e,t=[]){if(Array.isArray(e))for(let r of e)Jt(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function lt(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(ie.isFragment(e))return"React.Fragment";if(ie.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(ie.isContextProvider(e))return"Context.Provider";if(ie.isContextConsumer(e))return"Context.Consumer";if(ie.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(ie.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function wn(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var En=(e,t,r,n,i,l)=>++n>t.maxDepth?He(lt(e),t):Ve(lt(e),We(wn(e),e.props,t,r+t.indent,n,i,l),Ye(Jt(e.props.children),t,r+t.indent,n,i,l),t,r),Cn=e=>e!=null&&ie.isElement(e),Nn={serialize:En,test:Cn},Tn=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function An(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var Mn=(e,t,r,n,i,l)=>++n>t.maxDepth?He(e.type,t):Ve(e.type,e.props?We(An(e),e.props,t,r+t.indent,n,i,l):"",e.children?Ye(e.children,t,r+t.indent,n,i,l):"",t,r),In=e=>e&&e.$$typeof===Tn,Pn={serialize:Mn,test:In},Xt=Object.prototype.toString,Rn=Date.prototype.toISOString,Ln=Error.prototype.toString,ut=RegExp.prototype.toString;function Ae(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function Dn(e){return typeof window<"u"&&e===window}var jn=/^Symbol\((.*)\)(.*)$/,Fn=/\n/g,Zt=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function Bn(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function xn(e){return Object.is(e,-0)?"-0":String(e)}function kn(e){return`${e}n`}function st(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function ot(e){return String(e).replace(jn,"Symbol($1)")}function ct(e){return`[${Ln.call(e)}]`}function Qt(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let i=typeof e;if(i==="number")return xn(e);if(i==="bigint")return kn(e);if(i==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(i==="function")return st(e,t);if(i==="symbol")return ot(e);let l=Xt.call(e);return l==="[object WeakMap]"?"WeakMap {}":l==="[object WeakSet]"?"WeakSet {}":l==="[object Function]"||l==="[object GeneratorFunction]"?st(e,t):l==="[object Symbol]"?ot(e):l==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":Rn.call(e):l==="[object Error]"?ct(e):l==="[object RegExp]"?r?ut.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):ut.call(e):e instanceof Error?ct(e):null}function vt(e,t,r,n,i,l){if(i.includes(e))return"[Circular]";i=[...i],i.push(e);let u=++n>t.maxDepth,s=t.min;if(t.callToJSON&&!u&&e.toJSON&&typeof e.toJSON=="function"&&!l)return te(e.toJSON(),t,r,n,i,!0);let c=Xt.call(e);return c==="[object Arguments]"?u?"[Arguments]":`${s?"":"Arguments "}[${$e(e,t,r,n,i,te)}]`:Bn(c)?u?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${$e(e,t,r,n,i,te)}]`:c==="[object Map]"?u?"[Map]":`Map {${Oe(e.entries(),t,r,n,i,te," => ")}}`:c==="[object Set]"?u?"[Set]":`Set {${Ke(e.values(),t,r,n,i,te)}}`:u||Dn(e)?`[${Ae(e)}]`:`${s||!t.printBasicPrototype&&Ae(e)==="Object"?"":`${Ae(e)} `}{${qe(e,t,r,n,i,te)}}`}function zn(e){return e.serialize!=null}function er(e,t,r,n,i,l){let u;try{u=zn(e)?e.serialize(t,r,n,i,l,te):e.print(t,s=>te(s,r,n,i,l),s=>{let c=n+r.indent;return c+s.replaceAll(Fn,`
3
- ${c}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new Zt(s.message,s.stack)}if(typeof u!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof u}".`);return u}function tr(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Zt(n.message,n.stack)}return null}function te(e,t,r,n,i,l){let u=tr(t.plugins,e);if(u!==null)return er(u,e,t,r,n,i);let s=Qt(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:vt(e,t,r,n,i,l)}var Ge={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},rr=Object.keys(Ge),K={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Ge};function Un(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(K,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function Kn(){return rr.reduce((e,t)=>{let r=Ge[t],n=r&&v[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function qn(){return rr.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function nr(e){return(e==null?void 0:e.printFunctionName)??K.printFunctionName}function ir(e){return(e==null?void 0:e.escapeRegex)??K.escapeRegex}function lr(e){return(e==null?void 0:e.escapeString)??K.escapeString}function at(e){return{callToJSON:(e==null?void 0:e.callToJSON)??K.callToJSON,colors:e!=null&&e.highlight?Kn():qn(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:K.compareKeys,escapeRegex:ir(e),escapeString:lr(e),indent:e!=null&&e.min?"":Wn((e==null?void 0:e.indent)??K.indent),maxDepth:(e==null?void 0:e.maxDepth)??K.maxDepth,maxWidth:(e==null?void 0:e.maxWidth)??K.maxWidth,min:(e==null?void 0:e.min)??K.min,plugins:(e==null?void 0:e.plugins)??K.plugins,printBasicPrototype:(e==null?void 0:e.printBasicPrototype)??!0,printFunctionName:nr(e),spacingInner:e!=null&&e.min?" ":`
4
- `,spacingOuter:e!=null&&e.min?"":`
5
- `}}function Wn(e){return Array.from({length:e+1}).join(" ")}function V(e,t){if(t&&(Un(t),t.plugins)){let n=tr(t.plugins,e);if(n!==null)return er(n,e,at(t),"",0,[])}let r=Qt(e,nr(t),ir(t),lr(t));return r!==null?r:vt(e,at(t),"",0,[])}var ur={AsymmetricMatcher:Ur,DOMCollection:Gr,DOMElement:ln,Immutable:$n,ReactElement:Nn,ReactTestComponent:Pn},gt={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Yn={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},he="…";function Vn(e,t){let r=gt[Yn[t]]||gt[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function Hn({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:i=!1,maxArrayLength:l=1/0,breakLength:u=1/0,seen:s=[],truncate:c=1/0,stylize:a=String}={},o){let h={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!i,maxArrayLength:Number(l),breakLength:Number(u),truncate:Number(c),seen:s,inspect:o,stylize:a};return h.colors&&(h.stylize=Vn),h}function Gn(e){return e>="\uD800"&&e<="\uDBFF"}function re(e,t,r=he){e=String(e);let n=r.length,i=e.length;if(n>t&&i>n)return r;if(i>t&&i>n){let l=t-n;return l>0&&Gn(e[l-1])&&(l=l-1),`${e.slice(0,l)}${r}`}return e}function q(e,t,r,n=", "){r=r||t.inspect;let i=e.length;if(i===0)return"";let l=t.truncate,u="",s="",c="";for(let a=0;a<i;a+=1){let o=a+1===e.length,h=a+2===e.length;c=`${he}(${e.length-a})`;let y=e[a];t.truncate=l-u.length-(o?0:n.length);let f=s||r(y,t)+(o?"":n),m=u.length+f.length,p=m+c.length;if(o&&m>l&&u.length+c.length<=l||!o&&!h&&p>l||(s=o?"":r(e[a+1],t)+(h?"":n),!o&&h&&p>l&&m+s.length>l))break;if(u+=f,!o&&!h&&m+s.length>=l){c=`${he}(${e.length-a-1})`;break}c=""}return`${u}${c}`}function Jn(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function pe([e,t],r){return r.truncate-=2,typeof e=="string"?e=Jn(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function Xn(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=q(e,t);t.truncate-=n.length;let i="";return r.length&&(i=q(r.map(l=>[l,e[l]]),t,pe)),`[ ${n}${i?`, ${i}`:""} ]`}var Zn=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Z(e,t){let r=Zn(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let i="";for(let u=0;u<e.length;u++){let s=`${t.stylize(re(e[u],t.truncate),"number")}${u===e.length-1?"":", "}`;if(t.truncate-=s.length,e[u]!==e.length&&t.truncate<=3){i+=`${he}(${e.length-e[u]+1})`;break}i+=s}let l="";return n.length&&(l=q(n.map(u=>[u,e[u]]),t,pe)),`${r}[ ${i}${l?`, ${l}`:""} ]`}function Qn(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),i=n[0];return t.stylize(`${i}T${re(n[1],t.truncate-i.length-1)}`,"date")}function ht(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${re(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function vn([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function ei(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function ti(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${q(ei(e),t,vn)} }`)}var ri=Number.isNaN||(e=>e!==e);function ft(e,t){return ri(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(re(String(e),t.truncate),"number")}function mt(e,t){let r=re(e.toString(),t.truncate-1);return r!==he&&(r+="n"),t.stylize(r,"bigint")}function ni(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),i=e.source;return t.stylize(`/${re(i,n)}/${r}`,"regexp")}function ii(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function li(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${q(ii(e),t)} }`)}var pt=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),ui={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},si=16;function oi(e){return ui[e]||`\\u${`0000${e.charCodeAt(0).toString(si)}`.slice(-4)}`}function yt(e,t){return pt.test(e)&&(e=e.replace(pt,oi)),t.stylize(`'${re(e,t.truncate-2)}'`,"string")}function bt(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var sr=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(sr=(n,i)=>{let[l,u]=e(n);return l===t?"Promise{<pending>}":`Promise${l===r?"!":""}{${i.inspect(u,i)}}`})}catch{}var ci=sr;function _e(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=q(r.map(s=>[s,e[s]]),t,pe),l=q(n.map(s=>[s,e[s]]),t,pe);t.seen.pop();let u="";return i&&l&&(u=", "),`{ ${i}${u}${l} }`}var Me=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function ai(e,t){let r="";return Me&&Me in e&&(r=e[Me]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${_e(e,t)}`}function gi(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${q(e,t)} ]`)}var hi=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function fi(e,t){let r=Object.getOwnPropertyNames(e).filter(u=>hi.indexOf(u)===-1),n=e.name;t.truncate-=n.length;let i="";if(typeof e.message=="string"?i=re(e.message,t.truncate):r.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let l=q(r.map(u=>[u,e[u]]),t,pe);return`${n}${i}${l?` { ${l} }`:""}`}function mi([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function De(e,t){return q(e,t,or,`
6
- `)}function or(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),i=t.stylize(`<${n}`,"special"),l=t.stylize(">","special"),u=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=q(r.map(o=>[o,e.getAttribute(o)]),t,mi," ")),t.truncate-=s.length;let c=t.truncate,a=De(e.children,t);return a&&a.length>c&&(a=`${he}(${e.children.length})`),`${i}${s}${l}${a}${u}`}var pi=typeof Symbol=="function"&&typeof Symbol.for=="function",Ie=pi?Symbol.for("chai/inspect"):"@@chai/inspect",oe=!1;try{let e=Rr("util");oe=e.inspect?e.inspect.custom:!1}catch{oe=!1}var St=new WeakMap,_t={},$t={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:ft,Number:ft,bigint:mt,BigInt:mt,string:yt,String:yt,function:ht,Function:ht,symbol:bt,Symbol:bt,Array:Xn,Date:Qn,Map:ti,Set:li,RegExp:ni,Promise:ci,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:gi,Int8Array:Z,Uint8Array:Z,Uint8ClampedArray:Z,Int16Array:Z,Uint16Array:Z,Int32Array:Z,Uint32Array:Z,Float32Array:Z,Float64Array:Z,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:fi,HTMLCollection:De,NodeList:De},yi=(e,t,r)=>Ie in e&&typeof e[Ie]=="function"?e[Ie](t):oe&&oe in e&&typeof e[oe]=="function"?e[oe](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&St.has(e.constructor)?St.get(e.constructor)(e,t):_t[r]?_t[r](e,t):"",bi=Object.prototype.toString;function je(e,t={}){let r=Hn(t,je),{customInspect:n}=r,i=e===null?"null":typeof e;if(i==="object"&&(i=bi.call(e).slice(8,-1)),i in $t)return $t[i](e,r);if(n&&e){let u=yi(e,r,i);if(u)return typeof u=="string"?u:je(u,r)}let l=e?Object.getPrototypeOf(e):!1;return l===Object.prototype||l===null?_e(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?or(e,r):"constructor"in e?e.constructor!==Object?ai(e,r):_e(e,r):e===Object(e)?_e(e,r):r.stylize(String(e),i)}var{AsymmetricMatcher:Si,DOMCollection:_i,DOMElement:$i,Immutable:Oi,ReactElement:di,ReactTestComponent:wi}=ur,Ot=[wi,di,$i,_i,Oi,Si];function ye(e,t=10,{maxLength:r,...n}={}){let i=r??1e4,l;try{l=V(e,{maxDepth:t,escapeString:!1,plugins:Ot,...n})}catch{l=V(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Ot,...n})}return l.length>=i&&t>1?ye(e,Math.floor(t/2)):l}var Ei=/%[sdjifoOc%]/g;function Ci(...e){if(typeof e[0]!="string"){let l=[];for(let u=0;u<e.length;u++)l.push(fe(e[u],{depth:0,colors:!1}));return l.join(" ")}let t=e.length,r=1,n=e[0],i=String(n).replace(Ei,l=>{if(l==="%%")return"%";if(r>=t)return l;switch(l){case"%s":{let u=e[r++];return typeof u=="bigint"?`${u.toString()}n`:typeof u=="number"&&u===0&&1/u<0?"-0":typeof u=="object"&&u!==null?fe(u,{depth:0,colors:!1}):String(u)}case"%d":{let u=e[r++];return typeof u=="bigint"?`${u.toString()}n`:Number(u).toString()}case"%i":{let u=e[r++];return typeof u=="bigint"?`${u.toString()}n`:Number.parseInt(String(u)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return fe(e[r++],{showHidden:!0,showProxy:!0});case"%O":return fe(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(u){let s=u.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw u}default:return l}});for(let l=e[r];r<t;l=e[++r])l===null||typeof l!="object"?i+=` ${l}`:i+=` ${fe(l)}`;return i}function fe(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),je(e,t)}function Ni(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ti(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Fe(e){return Object.prototype.toString.apply(e).slice(8,-1)}function Ai(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function cr(e){let t=new Set;return Ti(e)?[]:(Ai(e,t),Array.from(t))}var ar={forceWritable:!1};function dt(e,t=ar){return Be(e,new WeakMap,t)}function Be(e,t,r=ar){let n,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:n=e.length}),t.set(e,i);n--;)i[n]=Be(e[n],t,r);return i}if(Object.prototype.toString.call(e)==="[object Object]"){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let l=cr(e);for(let u of l){let s=Object.getOwnPropertyDescriptor(e,u);if(!s)continue;let c=Be(e[u],t,r);r.forceWritable?Object.defineProperty(i,u,{enumerable:s.enumerable,configurable:!0,writable:!0,value:c}):"get"in s?Object.defineProperty(i,u,{...s,get(){return c}}):Object.defineProperty(i,u,{...s,value:c})}return i}return e}function wt(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}var P=-1,I=1,A=0,T=class{constructor(e,t){Y(this,0);Y(this,1);this[0]=e,this[1]=t}},Mi=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),i=n,l=0;for(;r<i;)e.substring(l,i)===t.substring(l,i)?(r=i,l=r):n=i,i=Math.floor((n-r)/2+r);return i},gr=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),i=n,l=0;for(;r<i;)e.substring(e.length-i,e.length-l)===t.substring(t.length-i,t.length-l)?(r=i,l=r):n=i,i=Math.floor((n-r)/2+r);return i},Et=function(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let i=Math.min(r,n);if(e===t)return i;let l=0,u=1;for(;;){let s=e.substring(i-u),c=t.indexOf(s);if(c===-1)return l;u+=c,(c===0||e.substring(i-u)===t.substring(0,u))&&(l=u,u++)}},Ii=function(e){let t=!1,r=[],n=0,i=null,l=0,u=0,s=0,c=0,a=0;for(;l<e.length;)e[l][0]===A?(r[n++]=l,u=c,s=a,c=0,a=0,i=e[l][1]):(e[l][0]===I?c+=e[l][1].length:a+=e[l][1].length,i&&i.length<=Math.max(u,s)&&i.length<=Math.max(c,a)&&(e.splice(r[n-1],0,new T(P,i)),e[r[n-1]+1][0]=I,n--,n--,l=n>0?r[n-1]:-1,u=0,s=0,c=0,a=0,i=null,t=!0)),l++;for(t&&hr(e),Li(e),l=1;l<e.length;){if(e[l-1][0]===P&&e[l][0]===I){let o=e[l-1][1],h=e[l][1],y=Et(o,h),f=Et(h,o);y>=f?(y>=o.length/2||y>=h.length/2)&&(e.splice(l,0,new T(A,h.substring(0,y))),e[l-1][1]=o.substring(0,o.length-y),e[l+1][1]=h.substring(y),l++):(f>=o.length/2||f>=h.length/2)&&(e.splice(l,0,new T(A,o.substring(0,f))),e[l-1][0]=I,e[l-1][1]=h.substring(0,h.length-f),e[l+1][0]=P,e[l+1][1]=o.substring(f),l++),l++}l++}},Ct=/[^a-z0-9]/i,Nt=/\s/,Tt=/[\r\n]/,Pi=/\n\r?\n$/,Ri=/^\r?\n\r?\n/;function Li(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===A&&e[t+1][0]===A){let r=e[t-1][1],n=e[t][1],i=e[t+1][1],l=gr(r,n);if(l){let o=n.substring(n.length-l);r=r.substring(0,r.length-l),n=o+n.substring(0,n.length-l),i=o+i}let u=r,s=n,c=i,a=be(r,n)+be(n,i);for(;n.charAt(0)===i.charAt(0);){r+=n.charAt(0),n=n.substring(1)+i.charAt(0),i=i.substring(1);let o=be(r,n)+be(n,i);o>=a&&(a=o,u=r,s=n,c=i)}e[t-1][1]!==u&&(u?e[t-1][1]=u:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function hr(e){e.push(new T(A,""));let t=0,r=0,n=0,i="",l="",u;for(;t<e.length;)switch(e[t][0]){case I:n++,l+=e[t][1],t++;break;case P:r++,i+=e[t][1],t++;break;case A:r+n>1?(r!==0&&n!==0&&(u=Mi(l,i),u!==0&&(t-r-n>0&&e[t-r-n-1][0]===A?e[t-r-n-1][1]+=l.substring(0,u):(e.splice(0,0,new T(A,l.substring(0,u))),t++),l=l.substring(u),i=i.substring(u)),u=gr(l,i),u!==0&&(e[t][1]=l.substring(l.length-u)+e[t][1],l=l.substring(0,l.length-u),i=i.substring(0,i.length-u))),t-=r+n,e.splice(t,r+n),i.length&&(e.splice(t,0,new T(P,i)),t++),l.length&&(e.splice(t,0,new T(I,l)),t++),t++):t!==0&&e[t-1][0]===A?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,i="",l="";break}e[e.length-1][1]===""&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===A&&e[t+1][0]===A&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&hr(e)}function be(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),i=r.match(Ct),l=n.match(Ct),u=i&&r.match(Nt),s=l&&n.match(Nt),c=u&&r.match(Tt),a=s&&n.match(Tt),o=c&&e.match(Pi),h=a&&t.match(Ri);return o||h?5:c||a?4:i&&!u&&s?3:u||s?2:i||l?1:0}var fr="Compared values have no visual difference.",Di="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Se={},At;function ji(){if(At)return Se;At=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.default=y;let e="diff-sequences",t=0,r=(f,m,p,g,b)=>{let _=0;for(;f<m&&p<g&&b(f,p);)f+=1,p+=1,_+=1;return _},n=(f,m,p,g,b)=>{let _=0;for(;f<=m&&p<=g&&b(m,g);)m-=1,g-=1,_+=1;return _},i=(f,m,p,g,b,_,w)=>{let S=0,O=-f,d=_[S],$=d;_[S]+=r(d+1,m,g+d-O+1,p,b);let N=f<w?f:w;for(S+=1,O+=2;S<=N;S+=1,O+=2){if(S!==f&&$<_[S])d=_[S];else if(d=$+1,m<=d)return S-1;$=_[S],_[S]=d+r(d+1,m,g+d-O+1,p,b)}return w},l=(f,m,p,g,b,_,w)=>{let S=0,O=f,d=_[S],$=d;_[S]-=n(m,d-1,p,g+d-O-1,b);let N=f<w?f:w;for(S+=1,O-=2;S<=N;S+=1,O-=2){if(S!==f&&_[S]<$)d=_[S];else if(d=$-1,d<m)return S-1;$=_[S],_[S]=d-n(m,d-1,p,g+d-O-1,b)}return w},u=(f,m,p,g,b,_,w,S,O,d,$)=>{let N=g-m,H=p-m,D=b-g-H,R=-D-(f-1),F=-D+(f-1),B=t,G=f<S?f:S;for(let E=0,M=-f;E<=G;E+=1,M+=2){let J=E===0||E!==f&&B<w[E],j=J?w[E]:B,k=J?j:j+1,X=N+k-M,z=r(k+1,p,X+1,b,_),U=k+z;if(B=w[E],w[E]=U,R<=M&&M<=F){let ne=(f-1-(M+D))/2;if(ne<=d&&O[ne]-1<=U){let ee=N+j-(J?M+1:M-1),x=n(m,j,g,ee,_),W=j-x,ue=ee-x,se=W+1,Ee=ue+1;$.nChangePreceding=f-1,f-1===se+Ee-m-g?($.aEndPreceding=m,$.bEndPreceding=g):($.aEndPreceding=se,$.bEndPreceding=Ee),$.nCommonPreceding=x,x!==0&&($.aCommonPreceding=se,$.bCommonPreceding=Ee),$.nCommonFollowing=z,z!==0&&($.aCommonFollowing=k+1,$.bCommonFollowing=X+1);let Ze=U+1,Qe=X+z+1;return $.nChangeFollowing=f-1,f-1===p+b-Ze-Qe?($.aStartFollowing=p,$.bStartFollowing=b):($.aStartFollowing=Ze,$.bStartFollowing=Qe),!0}}}return!1},s=(f,m,p,g,b,_,w,S,O,d,$)=>{let N=b-p,H=p-m,D=b-g-H,R=D-f,F=D+f,B=t,G=f<d?f:d;for(let E=0,M=f;E<=G;E+=1,M-=2){let J=E===0||E!==f&&O[E]<B,j=J?O[E]:B,k=J?j:j-1,X=N+k-M,z=n(m,k-1,g,X-1,_),U=k-z;if(B=O[E],O[E]=U,R<=M&&M<=F){let ne=(f+(M-D))/2;if(ne<=S&&U-1<=w[ne]){let ee=X-z;if($.nChangePreceding=f,f===U+ee-m-g?($.aEndPreceding=m,$.bEndPreceding=g):($.aEndPreceding=U,$.bEndPreceding=ee),$.nCommonPreceding=z,z!==0&&($.aCommonPreceding=U,$.bCommonPreceding=ee),$.nChangeFollowing=f-1,f===1)$.nCommonFollowing=0,$.aStartFollowing=p,$.bStartFollowing=b;else{let x=N+j-(J?M-1:M+1),W=r(j,p,x,b,_);$.nCommonFollowing=W,W!==0&&($.aCommonFollowing=j,$.bCommonFollowing=x);let ue=j+W,se=x+W;f-1===p+b-ue-se?($.aStartFollowing=p,$.bStartFollowing=b):($.aStartFollowing=ue,$.bStartFollowing=se)}return!0}}}return!1},c=(f,m,p,g,b,_,w,S,O)=>{let d=g-m,$=b-p,N=p-m,H=b-g,D=H-N,R=N,F=N;if(w[0]=m-1,S[0]=p,D%2===0){let B=(f||D)/2,G=(N+H)/2;for(let E=1;E<=G;E+=1)if(R=i(E,p,b,d,_,w,R),E<B)F=l(E,m,g,$,_,S,F);else if(s(E,m,p,g,b,_,w,R,S,F,O))return}else{let B=((f||D)+1)/2,G=(N+H+1)/2,E=1;for(R=i(E,p,b,d,_,w,R),E+=1;E<=G;E+=1)if(F=l(E-1,m,g,$,_,S,F),E<B)R=i(E,p,b,d,_,w,R);else if(u(E,m,p,g,b,_,w,R,S,F,O))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${p} bStart=${g} bEnd=${b}`)},a=(f,m,p,g,b,_,w,S,O,d)=>{if(b-g<p-m){if(_=!_,_&&w.length===1){let{foundSubsequence:ne,isCommon:ee}=w[0];w[1]={foundSubsequence:(x,W,ue)=>{ne(x,ue,W)},isCommon:(x,W)=>ee(W,x)}}let z=m,U=p;m=g,p=b,g=z,b=U}let{foundSubsequence:$,isCommon:N}=w[_?1:0];c(f,m,p,g,b,N,S,O,d);let{nChangePreceding:H,aEndPreceding:D,bEndPreceding:R,nCommonPreceding:F,aCommonPreceding:B,bCommonPreceding:G,nCommonFollowing:E,aCommonFollowing:M,bCommonFollowing:J,nChangeFollowing:j,aStartFollowing:k,bStartFollowing:X}=d;m<D&&g<R&&a(H,m,D,g,R,_,w,S,O,d),F!==0&&$(F,B,G),E!==0&&$(E,M,J),k<p&&X<b&&a(j,k,p,X,b,_,w,S,O,d)},o=(f,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${f} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${f} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${f} value ${m} is a negative integer`)},h=(f,m)=>{let p=typeof m;if(p!=="function")throw new TypeError(`${e}: ${f} typeof ${p} is not a function`)};function y(f,m,p,g){o("aLength",f),o("bLength",m),h("isCommon",p),h("foundSubsequence",g);let b=r(0,f,0,m,p);if(b!==0&&g(b,0,0),f!==b||m!==b){let _=b,w=b,S=n(_,f-1,w,m-1,p),O=f-S,d=m-S,$=b+S;f!==$&&m!==$&&a(0,_,O,w,d,!1,[{foundSubsequence:g,isCommon:p}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),S!==0&&g(S,O,d)}}return Se}var Fi=ji(),mr=Ni(Fi);function Bi(e,t){return e.replace(/\s+$/,r=>t(r))}function Je(e,t,r,n,i,l){return e.length!==0?r(`${n} ${Bi(e,i)}`):n!==" "?r(n):t&&l.length!==0?r(`${n} ${l}`):""}function pr(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:l}){return Je(e,t,r,n,i,l)}function yr(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:l}){return Je(e,t,r,n,i,l)}function br(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:l}){return Je(e,t,r,n,i,l)}function Mt(e,t,r,n,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function xi(e,t){let r=e.length,n=t.contextLines,i=n+n,l=r,u=!1,s=0,c=0;for(;c!==r;){let S=c;for(;c!==r&&e[c][0]===A;)c+=1;if(S!==c)if(S===0)c>n&&(l-=c-n,u=!0);else if(c===r){let O=c-S;O>n&&(l-=O-n,u=!0)}else{let O=c-S;O>i&&(l-=O-i,s+=1)}for(;c!==r&&e[c][0]!==A;)c+=1}let a=s!==0||u;s!==0?l+=s+1:u&&(l+=1);let o=l-1,h=[],y=0;a&&h.push("");let f=0,m=0,p=0,g=0,b=S=>{let O=h.length;h.push(br(S,O===0||O===o,t)),p+=1,g+=1},_=S=>{let O=h.length;h.push(pr(S,O===0||O===o,t)),p+=1},w=S=>{let O=h.length;h.push(yr(S,O===0||O===o,t)),g+=1};for(c=0;c!==r;){let S=c;for(;c!==r&&e[c][0]===A;)c+=1;if(S!==c)if(S===0){c>n&&(S=c-n,f=S,m=S,p=f,g=m);for(let O=S;O!==c;O+=1)b(e[O][1])}else if(c===r){let O=c-S>n?S+n:c;for(let d=S;d!==O;d+=1)b(e[d][1])}else{let O=c-S;if(O>i){let d=S+n;for(let N=S;N!==d;N+=1)b(e[N][1]);h[y]=Mt(f,p,m,g,t),y=h.length,h.push("");let $=O-i;f=p+$,m=g+$,p=f,g=m;for(let N=c-n;N!==c;N+=1)b(e[N][1])}else for(let d=S;d!==c;d+=1)b(e[d][1])}for(;c!==r&&e[c][0]===P;)_(e[c][1]),c+=1;for(;c!==r&&e[c][0]===I;)w(e[c][1]),c+=1}return a&&(h[y]=Mt(f,p,m,g,t)),h.join(`
7
- `)}function ki(e,t){return e.map((r,n,i)=>{let l=r[1],u=n===0||n===i.length-1;switch(r[0]){case P:return pr(l,u,t);case I:return yr(l,u,t);default:return br(l,u,t)}}).join(`
8
- `)}var Pe=e=>e,Sr=5,zi=0;function Ui(){return{aAnnotation:"Expected",aColor:v.green,aIndicator:"-",bAnnotation:"Received",bColor:v.red,bIndicator:"+",changeColor:v.inverse,changeLineTrailingSpaceColor:Pe,commonColor:v.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Pe,compareKeys:void 0,contextLines:Sr,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:v.yellow,truncateThreshold:zi,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Pe}}function Ki(e){return e&&typeof e=="function"?e:void 0}function qi(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Sr}function le(e={}){return{...Ui(),...e,compareKeys:Ki(e.compareKeys),contextLines:qi(e.contextLines)}}function ce(e){return e.length===1&&e[0].length===0}function Wi(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case P:t+=1;break;case I:r+=1;break}}),{a:t,b:r}}function Yi({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:i,bIndicator:l,includeChangeCounts:u,omitAnnotationLines:s},c){if(s)return"";let a="",o="";if(u){let f=String(c.a),m=String(c.b),p=n.length-e.length,g=" ".repeat(Math.max(0,p)),b=" ".repeat(Math.max(0,-p)),_=m.length-f.length,w=" ".repeat(Math.max(0,_)),S=" ".repeat(Math.max(0,-_));a=`${g} ${r} ${w}${f}`,o=`${b} ${l} ${S}${m}`}let h=`${r} ${e}${a}`,y=`${l} ${n}${o}`;return`${t(h)}
9
- ${i(y)}
1
+ import{once as Nn}from"../../../../../@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/client-logger/index.js";import{FORCE_REMOUNT as Qe,STORY_RENDER_PHASE_CHANGED as Tn,SET_CURRENT_STORY as An}from"../../../../../@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/core-events/index.js";import{addons as Mn}from"../../../../../@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/preview-api/index.js";import{global as L}from"../../../../../@storybook_global@5.0.0/node_modules/@storybook/global/dist/index.js";var In=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Pn={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},Rn=Object.entries(Pn);function ze(e){return String(e)}ze.open="";ze.close="";function Ln(e=!1){let t=typeof process<"u"?process:void 0,n=t?.env||{},r=t?.argv||[];return!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||t?.platform==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function Dn(e=!1){let t=Ln(e),n=(o,u,s,a)=>{let c="",f=0;do c+=o.substring(f,a)+s,f=a+u.length,a=o.indexOf(u,f);while(~a);return c+o.substring(f)},r=(o,u,s=o)=>{let a=c=>{let f=String(c),b=f.indexOf(u,o.length);return~b?o+n(f,u,s,b)+u:o+f+u};return a.open=o,a.close=u,a},i={isColorSupported:t},l=o=>`\x1B[${o}m`;for(let[o,u]of Rn)i[o]=t?r(l(u[0]),l(u[1]),u[2]):ze;return i}var Q=Dn(!1);function jn(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let i of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,i).enumerable&&r.push(i);return r}function $e(e,t,n,r,i,l,o=": "){let u="",s=0,a=e.next();if(!a.done){u+=t.spacingOuter;let c=n+t.indent;for(;!a.done;){if(u+=c,s++===t.maxWidth){u+="…";break}let f=l(a.value[0],t,c,r,i),b=l(a.value[1],t,c,r,i);u+=f+o+b,a=e.next(),a.done?t.min||(u+=","):u+=`,${t.spacingInner}`}u+=t.spacingOuter+n}return u}function Ue(e,t,n,r,i,l){let o="",u=0,s=e.next();if(!s.done){o+=t.spacingOuter;let a=n+t.indent;for(;!s.done;){if(o+=a,u++===t.maxWidth){o+="…";break}o+=l(s.value,t,a,r,i),s=e.next(),s.done?t.min||(o+=","):o+=`,${t.spacingInner}`}o+=t.spacingOuter+n}return o}function _e(e,t,n,r,i,l){let o="";e=e instanceof ArrayBuffer?new DataView(e):e;let u=a=>a instanceof DataView,s=u(e)?e.byteLength:e.length;if(s>0){o+=t.spacingOuter;let a=n+t.indent;for(let c=0;c<s;c++){if(o+=a,c===t.maxWidth){o+="…";break}(u(e)||c in e)&&(o+=l(u(e)?e.getInt8(c):e[c],t,a,r,i)),c<s-1?o+=`,${t.spacingInner}`:t.min||(o+=",")}o+=t.spacingOuter+n}return o}function Ke(e,t,n,r,i,l){let o="",u=jn(e,t.compareKeys);if(u.length>0){o+=t.spacingOuter;let s=n+t.indent;for(let a=0;a<u.length;a++){let c=u[a],f=l(c,t,s,r,i),b=l(e[c],t,s,r,i);o+=`${s+f}: ${b}`,a<u.length-1?o+=`,${t.spacingInner}`:t.min||(o+=",")}o+=t.spacingOuter+n}return o}var Fn=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Ee=" ",Bn=(e,t,n,r,i,l)=>{let o=e.toString();if(o==="ArrayContaining"||o==="ArrayNotContaining")return++r>t.maxDepth?`[${o}]`:`${o+Ee}[${_e(e.sample,t,n,r,i,l)}]`;if(o==="ObjectContaining"||o==="ObjectNotContaining")return++r>t.maxDepth?`[${o}]`:`${o+Ee}{${Ke(e.sample,t,n,r,i,l)}}`;if(o==="StringMatching"||o==="StringNotMatching"||o==="StringContaining"||o==="StringNotContaining")return o+Ee+l(e.sample,t,n,r,i);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},xn=e=>e&&e.$$typeof===Fn,kn={serialize:Bn,test:xn},zn=" ",Kt=new Set(["DOMStringMap","NamedNodeMap"]),Un=/^(?:HTML\w*Collection|NodeList)$/;function Kn(e){return Kt.has(e)||Un.test(e)}var qn=e=>e&&e.constructor&&!!e.constructor.name&&Kn(e.constructor.name);function Wn(e){return e.constructor.name==="NamedNodeMap"}var Yn=(e,t,n,r,i,l)=>{let o=e.constructor.name;return++r>t.maxDepth?`[${o}]`:(t.min?"":o+zn)+(Kt.has(o)?`{${Ke(Wn(e)?[...e].reduce((u,s)=>(u[s.name]=s.value,u),{}):{...e},t,n,r,i,l)}}`:`[${_e([...e],t,n,r,i,l)}]`)},Vn={serialize:Yn,test:qn};function qt(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function qe(e,t,n,r,i,l,o){let u=r+n.indent,s=n.colors;return e.map(a=>{let c=t[a],f=o(c,n,u,i,l);return typeof c!="string"&&(f.includes(`
2
+ `)&&(f=n.spacingOuter+u+f+n.spacingOuter+r),f=`{${f}}`),`${n.spacingInner+r+s.prop.open+a+s.prop.close}=${s.value.open}${f}${s.value.close}`}).join("")}function We(e,t,n,r,i,l){return e.map(o=>t.spacingOuter+n+(typeof o=="string"?Wt(o,t):l(o,t,n,r,i))).join("")}function Wt(e,t){let n=t.colors.content;return n.open+qt(e)+n.close}function Hn(e,t){let n=t.colors.comment;return`${n.open}<!--${qt(e)}-->${n.close}`}function Ye(e,t,n,r,i){let l=r.colors.tag;return`${l.open}<${e}${t&&l.close+t+r.spacingOuter+i+l.open}${n?`>${l.close}${n}${r.spacingOuter}${i}${l.open}</${e}`:`${t&&!r.min?"":" "}/`}>${l.close}`}function Ve(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}var Gn=1,Yt=3,Vt=8,Ht=11,Jn=/^(?:(?:HTML|SVG)\w*)?Element$/;function Xn(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function Zn(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,i=typeof r=="string"&&r.includes("-")||Xn(e);return n===Gn&&(Jn.test(t)||i)||n===Yt&&t==="Text"||n===Vt&&t==="Comment"||n===Ht&&t==="DocumentFragment"}var Qn=e=>{var t;return((t=e?.constructor)==null?void 0:t.name)&&Zn(e)};function vn(e){return e.nodeType===Yt}function er(e){return e.nodeType===Vt}function Ce(e){return e.nodeType===Ht}var tr=(e,t,n,r,i,l)=>{if(vn(e))return Wt(e.data,t);if(er(e))return Hn(e.data,t);let o=Ce(e)?"DocumentFragment":e.tagName.toLowerCase();return++r>t.maxDepth?Ve(o,t):Ye(o,qe(Ce(e)?[]:Array.from(e.attributes,u=>u.name).sort(),Ce(e)?{}:[...e.attributes].reduce((u,s)=>(u[s.name]=s.value,u),{}),t,n+t.indent,r,i,l),We(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,i,l),t,n)},nr={serialize:tr,test:Qn},rr="@@__IMMUTABLE_ITERABLE__@@",ir="@@__IMMUTABLE_LIST__@@",or="@@__IMMUTABLE_KEYED__@@",lr="@@__IMMUTABLE_MAP__@@",ve="@@__IMMUTABLE_ORDERED__@@",ur="@@__IMMUTABLE_RECORD__@@",sr="@@__IMMUTABLE_SEQ__@@",cr="@@__IMMUTABLE_SET__@@",ar="@@__IMMUTABLE_STACK__@@",ae=e=>`Immutable.${e}`,Oe=e=>`[${e}]`,fe=" ",et="…";function gr(e,t,n,r,i,l,o){return++r>t.maxDepth?Oe(ae(o)):`${ae(o)+fe}{${$e(e.entries(),t,n,r,i,l)}}`}function hr(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function fr(e,t,n,r,i,l){let o=ae(e._name||"Record");return++r>t.maxDepth?Oe(o):`${o+fe}{${$e(hr(e),t,n,r,i,l)}}`}function mr(e,t,n,r,i,l){let o=ae("Seq");return++r>t.maxDepth?Oe(o):e[or]?`${o+fe}{${e._iter||e._object?$e(e.entries(),t,n,r,i,l):et}}`:`${o+fe}[${e._iter||e._array||e._collection||e._iterable?Ue(e.values(),t,n,r,i,l):et}]`}function Ne(e,t,n,r,i,l,o){return++r>t.maxDepth?Oe(ae(o)):`${ae(o)+fe}[${Ue(e.values(),t,n,r,i,l)}]`}var pr=(e,t,n,r,i,l)=>e[lr]?gr(e,t,n,r,i,l,e[ve]?"OrderedMap":"Map"):e[ir]?Ne(e,t,n,r,i,l,"List"):e[cr]?Ne(e,t,n,r,i,l,e[ve]?"OrderedSet":"Set"):e[ar]?Ne(e,t,n,r,i,l,"Stack"):e[sr]?mr(e,t,n,r,i,l):fr(e,t,n,r,i,l),yr=e=>e&&(e[rr]===!0||e[ur]===!0),br={serialize:pr,test:yr},tt={exports:{}},C={},nt;function Sr(){if(nt)return C;nt=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function p(g){if(typeof g=="object"&&g!==null){var S=g.$$typeof;switch(S){case e:switch(g=g.type,g){case n:case i:case r:case a:case c:return g;default:switch(g=g&&g.$$typeof,g){case u:case o:case s:case b:case f:case l:return g;default:return S}}case t:return S}}}return C.ContextConsumer=o,C.ContextProvider=l,C.Element=e,C.ForwardRef=s,C.Fragment=n,C.Lazy=b,C.Memo=f,C.Portal=t,C.Profiler=i,C.StrictMode=r,C.Suspense=a,C.SuspenseList=c,C.isAsyncMode=function(){return!1},C.isConcurrentMode=function(){return!1},C.isContextConsumer=function(g){return p(g)===o},C.isContextProvider=function(g){return p(g)===l},C.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},C.isForwardRef=function(g){return p(g)===s},C.isFragment=function(g){return p(g)===n},C.isLazy=function(g){return p(g)===b},C.isMemo=function(g){return p(g)===f},C.isPortal=function(g){return p(g)===t},C.isProfiler=function(g){return p(g)===i},C.isStrictMode=function(g){return p(g)===r},C.isSuspense=function(g){return p(g)===a},C.isSuspenseList=function(g){return p(g)===c},C.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===i||g===r||g===a||g===c||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===b||g.$$typeof===f||g.$$typeof===l||g.$$typeof===o||g.$$typeof===s||g.$$typeof===m||g.getModuleId!==void 0)},C.typeOf=p,C}var rt;function _r(){return rt||(rt=1,tt.exports=Sr()),tt.exports}var re=_r();function Gt(e,t=[]){if(Array.isArray(e))for(let n of e)Gt(n,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function it(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(re.isFragment(e))return"React.Fragment";if(re.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(re.isContextProvider(e))return"Context.Provider";if(re.isContextConsumer(e))return"Context.Consumer";if(re.isForwardRef(e)){if(t.displayName)return t.displayName;let n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(re.isMemo(e)){let n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return"UNDEFINED"}function $r(e){let{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}var Or=(e,t,n,r,i,l)=>++r>t.maxDepth?Ve(it(e),t):Ye(it(e),qe($r(e),e.props,t,n+t.indent,r,i,l),We(Gt(e.props.children),t,n+t.indent,r,i,l),t,n),dr=e=>e!=null&&re.isElement(e),wr={serialize:Or,test:dr},Er=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Cr(e){let{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}var Nr=(e,t,n,r,i,l)=>++r>t.maxDepth?Ve(e.type,t):Ye(e.type,e.props?qe(Cr(e),e.props,t,n+t.indent,r,i,l):"",e.children?We(e.children,t,n+t.indent,r,i,l):"",t,n),Tr=e=>e&&e.$$typeof===Er,Ar={serialize:Nr,test:Tr},Jt=Object.prototype.toString,Mr=Date.prototype.toISOString,Ir=Error.prototype.toString,ot=RegExp.prototype.toString;function Te(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function Pr(e){return typeof window<"u"&&e===window}var Rr=/^Symbol\((.*)\)(.*)$/,Lr=/\n/g,Xt=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function Dr(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function jr(e){return Object.is(e,-0)?"-0":String(e)}function Fr(e){return`${e}n`}function lt(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function ut(e){return String(e).replace(Rr,"Symbol($1)")}function st(e){return`[${Ir.call(e)}]`}function Zt(e,t,n,r){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let i=typeof e;if(i==="number")return jr(e);if(i==="bigint")return Fr(e);if(i==="string")return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(i==="function")return lt(e,t);if(i==="symbol")return ut(e);let l=Jt.call(e);return l==="[object WeakMap]"?"WeakMap {}":l==="[object WeakSet]"?"WeakSet {}":l==="[object Function]"||l==="[object GeneratorFunction]"?lt(e,t):l==="[object Symbol]"?ut(e):l==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":Mr.call(e):l==="[object Error]"?st(e):l==="[object RegExp]"?n?ot.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):ot.call(e):e instanceof Error?st(e):null}function Qt(e,t,n,r,i,l){if(i.includes(e))return"[Circular]";i=[...i],i.push(e);let o=++r>t.maxDepth,u=t.min;if(t.callToJSON&&!o&&e.toJSON&&typeof e.toJSON=="function"&&!l)return ee(e.toJSON(),t,n,r,i,!0);let s=Jt.call(e);return s==="[object Arguments]"?o?"[Arguments]":`${u?"":"Arguments "}[${_e(e,t,n,r,i,ee)}]`:Dr(s)?o?`[${e.constructor.name}]`:`${u||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${_e(e,t,n,r,i,ee)}]`:s==="[object Map]"?o?"[Map]":`Map {${$e(e.entries(),t,n,r,i,ee," => ")}}`:s==="[object Set]"?o?"[Set]":`Set {${Ue(e.values(),t,n,r,i,ee)}}`:o||Pr(e)?`[${Te(e)}]`:`${u||!t.printBasicPrototype&&Te(e)==="Object"?"":`${Te(e)} `}{${Ke(e,t,n,r,i,ee)}}`}function Br(e){return e.serialize!=null}function vt(e,t,n,r,i,l){let o;try{o=Br(e)?e.serialize(t,n,r,i,l,ee):e.print(t,u=>ee(u,n,r,i,l),u=>{let s=r+n.indent;return s+u.replaceAll(Lr,`
3
+ ${s}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(u){throw new Xt(u.message,u.stack)}if(typeof o!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function en(e,t){for(let n of e)try{if(n.test(t))return n}catch(r){throw new Xt(r.message,r.stack)}return null}function ee(e,t,n,r,i,l){let o=en(t.plugins,e);if(o!==null)return vt(o,e,t,n,r,i);let u=Zt(e,t.printFunctionName,t.escapeRegex,t.escapeString);return u!==null?u:Qt(e,t,n,r,i,l)}var He={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},tn=Object.keys(He),K={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:He};function xr(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(K,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function kr(){return tn.reduce((e,t)=>{let n=He[t],r=n&&Q[n];if(r&&typeof r.close=="string"&&typeof r.open=="string")e[t]=r;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function zr(){return tn.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function nn(e){return e?.printFunctionName??K.printFunctionName}function rn(e){return e?.escapeRegex??K.escapeRegex}function on(e){return e?.escapeString??K.escapeString}function ct(e){return{callToJSON:e?.callToJSON??K.callToJSON,colors:e?.highlight?kr():zr(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:K.compareKeys,escapeRegex:rn(e),escapeString:on(e),indent:e?.min?"":Ur(e?.indent??K.indent),maxDepth:e?.maxDepth??K.maxDepth,maxWidth:e?.maxWidth??K.maxWidth,min:e?.min??K.min,plugins:e?.plugins??K.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:nn(e),spacingInner:e?.min?" ":`
4
+ `,spacingOuter:e?.min?"":`
5
+ `}}function Ur(e){return Array.from({length:e+1}).join(" ")}function Y(e,t){if(t&&(xr(t),t.plugins)){let r=en(t.plugins,e);if(r!==null)return vt(r,e,ct(t),"",0,[])}let n=Zt(e,nn(t),rn(t),on(t));return n!==null?n:Qt(e,ct(t),"",0,[])}var ln={AsymmetricMatcher:kn,DOMCollection:Vn,DOMElement:nr,Immutable:br,ReactElement:wr,ReactTestComponent:Ar},at={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Kr={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},ge="…";function qr(e,t){let n=at[Kr[t]]||at[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function Wr({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:l=1/0,breakLength:o=1/0,seen:u=[],truncate:s=1/0,stylize:a=String}={},c){let f={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(l),breakLength:Number(o),truncate:Number(s),seen:u,inspect:c,stylize:a};return f.colors&&(f.stylize=qr),f}function Yr(e){return e>="\uD800"&&e<="\uDBFF"}function te(e,t,n=ge){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let l=t-r;return l>0&&Yr(e[l-1])&&(l=l-1),`${e.slice(0,l)}${n}`}return e}function q(e,t,n,r=", "){n=n||t.inspect;let i=e.length;if(i===0)return"";let l=t.truncate,o="",u="",s="";for(let a=0;a<i;a+=1){let c=a+1===e.length,f=a+2===e.length;s=`${ge}(${e.length-a})`;let b=e[a];t.truncate=l-o.length-(c?0:r.length);let h=u||n(b,t)+(c?"":r),m=o.length+h.length,p=m+s.length;if(c&&m>l&&o.length+s.length<=l||!c&&!f&&p>l||(u=c?"":n(e[a+1],t)+(f?"":r),!c&&f&&p>l&&m+u.length>l))break;if(o+=h,!c&&!f&&m+u.length>=l){s=`${ge}(${e.length-a-1})`;break}s=""}return`${o}${s}`}function Vr(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function me([e,t],n){return n.truncate-=2,typeof e=="string"?e=Vr(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function Hr(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;let r=q(e,t);t.truncate-=r.length;let i="";return n.length&&(i=q(n.map(l=>[l,e[l]]),t,me)),`[ ${r}${i?`, ${i}`:""} ]`}var Gr=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function X(e,t){let n=Gr(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i="";for(let o=0;o<e.length;o++){let u=`${t.stylize(te(e[o],t.truncate),"number")}${o===e.length-1?"":", "}`;if(t.truncate-=u.length,e[o]!==e.length&&t.truncate<=3){i+=`${ge}(${e.length-e[o]+1})`;break}i+=u}let l="";return r.length&&(l=q(r.map(o=>[o,e[o]]),t,me)),`${n}[ ${i}${l?`, ${l}`:""} ]`}function Jr(e,t){let n=e.toJSON();if(n===null)return"Invalid Date";let r=n.split("T"),i=r[0];return t.stylize(`${i}T${te(r[1],t.truncate-i.length-1)}`,"date")}function gt(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${te(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function Xr([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function Zr(e){let t=[];return e.forEach((n,r)=>{t.push([r,n])}),t}function Qr(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${q(Zr(e),t,Xr)} }`)}var vr=Number.isNaN||(e=>e!==e);function ht(e,t){return vr(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(te(String(e),t.truncate),"number")}function ft(e,t){let n=te(e.toString(),t.truncate-1);return n!==ge&&(n+="n"),t.stylize(n,"bigint")}function ei(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${te(i,r)}/${n}`,"regexp")}function ti(e){let t=[];return e.forEach(n=>{t.push(n)}),t}function ni(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${q(ti(e),t)} }`)}var mt=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),ri={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},ii=16;function oi(e){return ri[e]||`\\u${`0000${e.charCodeAt(0).toString(ii)}`.slice(-4)}`}function pt(e,t){return mt.test(e)&&(e=e.replace(mt,oi)),t.stylize(`'${te(e,t.truncate-2)}'`,"string")}function yt(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var un=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(un=(r,i)=>{let[l,o]=e(r);return l===t?"Promise{<pending>}":`Promise${l===n?"!":""}{${i.inspect(o,i)}}`})}catch{}var li=un;function Se(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=q(n.map(u=>[u,e[u]]),t,me),l=q(r.map(u=>[u,e[u]]),t,me);t.seen.pop();let o="";return i&&l&&(o=", "),`{ ${i}${o}${l} }`}var Ae=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function ui(e,t){let n="";return Ae&&Ae in e&&(n=e[Ae]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${Se(e,t)}`}function si(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${q(e,t)} ]`)}var ci=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function ai(e,t){let n=Object.getOwnPropertyNames(e).filter(o=>ci.indexOf(o)===-1),r=e.name;t.truncate-=r.length;let i="";if(typeof e.message=="string"?i=te(e.message,t.truncate):n.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let l=q(n.map(o=>[o,e[o]]),t,me);return`${r}${i}${l?` { ${l} }`:""}`}function gi([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function Le(e,t){return q(e,t,sn,`
6
+ `)}function sn(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,"special"),l=t.stylize(">","special"),o=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let u="";n.length>0&&(u+=" ",u+=q(n.map(c=>[c,e.getAttribute(c)]),t,gi," ")),t.truncate-=u.length;let s=t.truncate,a=Le(e.children,t);return a&&a.length>s&&(a=`${ge}(${e.children.length})`),`${i}${u}${l}${a}${o}`}var hi=typeof Symbol=="function"&&typeof Symbol.for=="function",Me=hi?Symbol.for("chai/inspect"):"@@chai/inspect",ue=!1;try{let e=In("util");ue=e.inspect?e.inspect.custom:!1}catch{ue=!1}var bt=new WeakMap,St={},_t={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:ht,Number:ht,bigint:ft,BigInt:ft,string:pt,String:pt,function:gt,Function:gt,symbol:yt,Symbol:yt,Array:Hr,Date:Jr,Map:Qr,Set:ni,RegExp:ei,Promise:li,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:si,Int8Array:X,Uint8Array:X,Uint8ClampedArray:X,Int16Array:X,Uint16Array:X,Int32Array:X,Uint32Array:X,Float32Array:X,Float64Array:X,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:ai,HTMLCollection:Le,NodeList:Le},fi=(e,t,n)=>Me in e&&typeof e[Me]=="function"?e[Me](t):ue&&ue in e&&typeof e[ue]=="function"?e[ue](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&bt.has(e.constructor)?bt.get(e.constructor)(e,t):St[n]?St[n](e,t):"",mi=Object.prototype.toString;function De(e,t={}){let n=Wr(t,De),{customInspect:r}=n,i=e===null?"null":typeof e;if(i==="object"&&(i=mi.call(e).slice(8,-1)),i in _t)return _t[i](e,n);if(r&&e){let o=fi(e,n,i);if(o)return typeof o=="string"?o:De(o,n)}let l=e?Object.getPrototypeOf(e):!1;return l===Object.prototype||l===null?Se(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?sn(e,n):"constructor"in e?e.constructor!==Object?ui(e,n):Se(e,n):e===Object(e)?Se(e,n):n.stylize(String(e),i)}var{AsymmetricMatcher:pi,DOMCollection:yi,DOMElement:bi,Immutable:Si,ReactElement:_i,ReactTestComponent:$i}=ln,$t=[$i,_i,bi,yi,Si,pi];function pe(e,t=10,{maxLength:n,...r}={}){let i=n??1e4,l;try{l=Y(e,{maxDepth:t,escapeString:!1,plugins:$t,...r})}catch{l=Y(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:$t,...r})}return l.length>=i&&t>1?pe(e,Math.floor(t/2)):l}var Oi=/%[sdjifoOc%]/g;function di(...e){if(typeof e[0]!="string"){let l=[];for(let o=0;o<e.length;o++)l.push(he(e[o],{depth:0,colors:!1}));return l.join(" ")}let t=e.length,n=1,r=e[0],i=String(r).replace(Oi,l=>{if(l==="%%")return"%";if(n>=t)return l;switch(l){case"%s":{let o=e[n++];return typeof o=="bigint"?`${o.toString()}n`:typeof o=="number"&&o===0&&1/o<0?"-0":typeof o=="object"&&o!==null?he(o,{depth:0,colors:!1}):String(o)}case"%d":{let o=e[n++];return typeof o=="bigint"?`${o.toString()}n`:Number(o).toString()}case"%i":{let o=e[n++];return typeof o=="bigint"?`${o.toString()}n`:Number.parseInt(String(o)).toString()}case"%f":return Number.parseFloat(String(e[n++])).toString();case"%o":return he(e[n++],{showHidden:!0,showProxy:!0});case"%O":return he(e[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(e[n++])}catch(o){let u=o.message;if(u.includes("circular structure")||u.includes("cyclic structures")||u.includes("cyclic object"))return"[Circular]";throw o}default:return l}});for(let l=e[n];n<t;l=e[++n])l===null||typeof l!="object"?i+=` ${l}`:i+=` ${he(l)}`;return i}function he(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),De(e,t)}function wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ei(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function je(e){return Object.prototype.toString.apply(e).slice(8,-1)}function Ci(e,t){let n=typeof t=="function"?t:r=>t.add(r);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function cn(e){let t=new Set;return Ei(e)?[]:(Ci(e,t),Array.from(t))}var an={forceWritable:!1};function Ot(e,t=an){return Fe(e,new WeakMap,t)}function Fe(e,t,n=an){let r,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:r=e.length}),t.set(e,i);r--;)i[r]=Fe(e[r],t,n);return i}if(Object.prototype.toString.call(e)==="[object Object]"){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let l=cn(e);for(let o of l){let u=Object.getOwnPropertyDescriptor(e,o);if(!u)continue;let s=Fe(e[o],t,n);n.forceWritable?Object.defineProperty(i,o,{enumerable:u.enumerable,configurable:!0,writable:!0,value:s}):"get"in u?Object.defineProperty(i,o,{...u,get(){return s}}):Object.defineProperty(i,o,{...u,value:s})}return i}return e}function dt(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}var P=-1,I=1,A=0,T=class{0;1;constructor(e,t){this[0]=e,this[1]=t}},Ni=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,l=0;for(;n<i;)e.substring(l,i)===t.substring(l,i)?(n=i,l=n):r=i,i=Math.floor((r-n)/2+n);return i},gn=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,l=0;for(;n<i;)e.substring(e.length-i,e.length-l)===t.substring(t.length-i,t.length-l)?(n=i,l=n):r=i,i=Math.floor((r-n)/2+n);return i},wt=function(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let l=0,o=1;for(;;){let u=e.substring(i-o),s=t.indexOf(u);if(s===-1)return l;o+=s,(s===0||e.substring(i-o)===t.substring(0,o))&&(l=o,o++)}},Ti=function(e){let t=!1,n=[],r=0,i=null,l=0,o=0,u=0,s=0,a=0;for(;l<e.length;)e[l][0]===A?(n[r++]=l,o=s,u=a,s=0,a=0,i=e[l][1]):(e[l][0]===I?s+=e[l][1].length:a+=e[l][1].length,i&&i.length<=Math.max(o,u)&&i.length<=Math.max(s,a)&&(e.splice(n[r-1],0,new T(P,i)),e[n[r-1]+1][0]=I,r--,r--,l=r>0?n[r-1]:-1,o=0,u=0,s=0,a=0,i=null,t=!0)),l++;for(t&&hn(e),Ii(e),l=1;l<e.length;){if(e[l-1][0]===P&&e[l][0]===I){let c=e[l-1][1],f=e[l][1],b=wt(c,f),h=wt(f,c);b>=h?(b>=c.length/2||b>=f.length/2)&&(e.splice(l,0,new T(A,f.substring(0,b))),e[l-1][1]=c.substring(0,c.length-b),e[l+1][1]=f.substring(b),l++):(h>=c.length/2||h>=f.length/2)&&(e.splice(l,0,new T(A,c.substring(0,h))),e[l-1][0]=I,e[l-1][1]=f.substring(0,f.length-h),e[l+1][0]=P,e[l+1][1]=c.substring(h),l++),l++}l++}},Et=/[^a-z0-9]/i,Ct=/\s/,Nt=/[\r\n]/,Ai=/\n\r?\n$/,Mi=/^\r?\n\r?\n/;function Ii(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===A&&e[t+1][0]===A){let n=e[t-1][1],r=e[t][1],i=e[t+1][1],l=gn(n,r);if(l){let c=r.substring(r.length-l);n=n.substring(0,n.length-l),r=c+r.substring(0,r.length-l),i=c+i}let o=n,u=r,s=i,a=ye(n,r)+ye(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let c=ye(n,r)+ye(r,i);c>=a&&(a=c,o=n,u=r,s=i)}e[t-1][1]!==o&&(o?e[t-1][1]=o:(e.splice(t-1,1),t--),e[t][1]=u,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}function hn(e){e.push(new T(A,""));let t=0,n=0,r=0,i="",l="",o;for(;t<e.length;)switch(e[t][0]){case I:r++,l+=e[t][1],t++;break;case P:n++,i+=e[t][1],t++;break;case A:n+r>1?(n!==0&&r!==0&&(o=Ni(l,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===A?e[t-n-r-1][1]+=l.substring(0,o):(e.splice(0,0,new T(A,l.substring(0,o))),t++),l=l.substring(o),i=i.substring(o)),o=gn(l,i),o!==0&&(e[t][1]=l.substring(l.length-o)+e[t][1],l=l.substring(0,l.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new T(P,i)),t++),l.length&&(e.splice(t,0,new T(I,l)),t++),t++):t!==0&&e[t-1][0]===A?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i="",l="";break}e[e.length-1][1]===""&&e.pop();let u=!1;for(t=1;t<e.length-1;)e[t-1][0]===A&&e[t+1][0]===A&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),u=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),u=!0)),t++;u&&hn(e)}function ye(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(Et),l=r.match(Et),o=i&&n.match(Ct),u=l&&r.match(Ct),s=o&&n.match(Nt),a=u&&r.match(Nt),c=s&&e.match(Ai),f=a&&t.match(Mi);return c||f?5:s||a?4:i&&!o&&u?3:o||u?2:i||l?1:0}var fn="Compared values have no visual difference.",Pi="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",be={},Tt;function Ri(){if(Tt)return be;Tt=1,Object.defineProperty(be,"__esModule",{value:!0}),be.default=b;let e="diff-sequences",t=0,n=(h,m,p,g,S)=>{let _=0;for(;h<m&&p<g&&S(h,p);)h+=1,p+=1,_+=1;return _},r=(h,m,p,g,S)=>{let _=0;for(;h<=m&&p<=g&&S(m,g);)m-=1,g-=1,_+=1;return _},i=(h,m,p,g,S,_,w)=>{let y=0,O=-h,d=_[y],$=d;_[y]+=n(d+1,m,g+d-O+1,p,S);let N=h<w?h:w;for(y+=1,O+=2;y<=N;y+=1,O+=2){if(y!==h&&$<_[y])d=_[y];else if(d=$+1,m<=d)return y-1;$=_[y],_[y]=d+n(d+1,m,g+d-O+1,p,S)}return w},l=(h,m,p,g,S,_,w)=>{let y=0,O=h,d=_[y],$=d;_[y]-=r(m,d-1,p,g+d-O-1,S);let N=h<w?h:w;for(y+=1,O-=2;y<=N;y+=1,O-=2){if(y!==h&&_[y]<$)d=_[y];else if(d=$-1,d<m)return y-1;$=_[y],_[y]=d-r(m,d-1,p,g+d-O-1,S)}return w},o=(h,m,p,g,S,_,w,y,O,d,$)=>{let N=g-m,V=p-m,D=S-g-V,R=-D-(h-1),F=-D+(h-1),B=t,H=h<y?h:y;for(let E=0,M=-h;E<=H;E+=1,M+=2){let G=E===0||E!==h&&B<w[E],j=G?w[E]:B,k=G?j:j+1,J=N+k-M,z=n(k+1,p,J+1,S,_),U=k+z;if(B=w[E],w[E]=U,R<=M&&M<=F){let ne=(h-1-(M+D))/2;if(ne<=d&&O[ne]-1<=U){let v=N+j-(G?M+1:M-1),x=r(m,j,g,v,_),W=j-x,oe=v-x,le=W+1,we=oe+1;$.nChangePreceding=h-1,h-1===le+we-m-g?($.aEndPreceding=m,$.bEndPreceding=g):($.aEndPreceding=le,$.bEndPreceding=we),$.nCommonPreceding=x,x!==0&&($.aCommonPreceding=le,$.bCommonPreceding=we),$.nCommonFollowing=z,z!==0&&($.aCommonFollowing=k+1,$.bCommonFollowing=J+1);let Xe=U+1,Ze=J+z+1;return $.nChangeFollowing=h-1,h-1===p+S-Xe-Ze?($.aStartFollowing=p,$.bStartFollowing=S):($.aStartFollowing=Xe,$.bStartFollowing=Ze),!0}}}return!1},u=(h,m,p,g,S,_,w,y,O,d,$)=>{let N=S-p,V=p-m,D=S-g-V,R=D-h,F=D+h,B=t,H=h<d?h:d;for(let E=0,M=h;E<=H;E+=1,M-=2){let G=E===0||E!==h&&O[E]<B,j=G?O[E]:B,k=G?j:j-1,J=N+k-M,z=r(m,k-1,g,J-1,_),U=k-z;if(B=O[E],O[E]=U,R<=M&&M<=F){let ne=(h+(M-D))/2;if(ne<=y&&U-1<=w[ne]){let v=J-z;if($.nChangePreceding=h,h===U+v-m-g?($.aEndPreceding=m,$.bEndPreceding=g):($.aEndPreceding=U,$.bEndPreceding=v),$.nCommonPreceding=z,z!==0&&($.aCommonPreceding=U,$.bCommonPreceding=v),$.nChangeFollowing=h-1,h===1)$.nCommonFollowing=0,$.aStartFollowing=p,$.bStartFollowing=S;else{let x=N+j-(G?M-1:M+1),W=n(j,p,x,S,_);$.nCommonFollowing=W,W!==0&&($.aCommonFollowing=j,$.bCommonFollowing=x);let oe=j+W,le=x+W;h-1===p+S-oe-le?($.aStartFollowing=p,$.bStartFollowing=S):($.aStartFollowing=oe,$.bStartFollowing=le)}return!0}}}return!1},s=(h,m,p,g,S,_,w,y,O)=>{let d=g-m,$=S-p,N=p-m,V=S-g,D=V-N,R=N,F=N;if(w[0]=m-1,y[0]=p,D%2===0){let B=(h||D)/2,H=(N+V)/2;for(let E=1;E<=H;E+=1)if(R=i(E,p,S,d,_,w,R),E<B)F=l(E,m,g,$,_,y,F);else if(u(E,m,p,g,S,_,w,R,y,F,O))return}else{let B=((h||D)+1)/2,H=(N+V+1)/2,E=1;for(R=i(E,p,S,d,_,w,R),E+=1;E<=H;E+=1)if(F=l(E-1,m,g,$,_,y,F),E<B)R=i(E,p,S,d,_,w,R);else if(o(E,m,p,g,S,_,w,R,y,F,O))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${p} bStart=${g} bEnd=${S}`)},a=(h,m,p,g,S,_,w,y,O,d)=>{if(S-g<p-m){if(_=!_,_&&w.length===1){let{foundSubsequence:ne,isCommon:v}=w[0];w[1]={foundSubsequence:(x,W,oe)=>{ne(x,oe,W)},isCommon:(x,W)=>v(W,x)}}let z=m,U=p;m=g,p=S,g=z,S=U}let{foundSubsequence:$,isCommon:N}=w[_?1:0];s(h,m,p,g,S,N,y,O,d);let{nChangePreceding:V,aEndPreceding:D,bEndPreceding:R,nCommonPreceding:F,aCommonPreceding:B,bCommonPreceding:H,nCommonFollowing:E,aCommonFollowing:M,bCommonFollowing:G,nChangeFollowing:j,aStartFollowing:k,bStartFollowing:J}=d;m<D&&g<R&&a(V,m,D,g,R,_,w,y,O,d),F!==0&&$(F,B,H),E!==0&&$(E,M,G),k<p&&J<S&&a(j,k,p,J,S,_,w,y,O,d)},c=(h,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${h} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${h} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${h} value ${m} is a negative integer`)},f=(h,m)=>{let p=typeof m;if(p!=="function")throw new TypeError(`${e}: ${h} typeof ${p} is not a function`)};function b(h,m,p,g){c("aLength",h),c("bLength",m),f("isCommon",p),f("foundSubsequence",g);let S=n(0,h,0,m,p);if(S!==0&&g(S,0,0),h!==S||m!==S){let _=S,w=S,y=r(_,h-1,w,m-1,p),O=h-y,d=m-y,$=S+y;h!==$&&m!==$&&a(0,_,O,w,d,!1,[{foundSubsequence:g,isCommon:p}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),y!==0&&g(y,O,d)}}return be}var Li=Ri(),mn=wi(Li);function Di(e,t){return e.replace(/\s+$/,n=>t(n))}function Ge(e,t,n,r,i,l){return e.length!==0?n(`${r} ${Di(e,i)}`):r!==" "?n(r):t&&l.length!==0?n(`${r} ${l}`):""}function pn(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:l}){return Ge(e,t,n,r,i,l)}function yn(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:l}){return Ge(e,t,n,r,i,l)}function bn(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:l}){return Ge(e,t,n,r,i,l)}function At(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function ji(e,t){let n=e.length,r=t.contextLines,i=r+r,l=n,o=!1,u=0,s=0;for(;s!==n;){let y=s;for(;s!==n&&e[s][0]===A;)s+=1;if(y!==s)if(y===0)s>r&&(l-=s-r,o=!0);else if(s===n){let O=s-y;O>r&&(l-=O-r,o=!0)}else{let O=s-y;O>i&&(l-=O-i,u+=1)}for(;s!==n&&e[s][0]!==A;)s+=1}let a=u!==0||o;u!==0?l+=u+1:o&&(l+=1);let c=l-1,f=[],b=0;a&&f.push("");let h=0,m=0,p=0,g=0,S=y=>{let O=f.length;f.push(bn(y,O===0||O===c,t)),p+=1,g+=1},_=y=>{let O=f.length;f.push(pn(y,O===0||O===c,t)),p+=1},w=y=>{let O=f.length;f.push(yn(y,O===0||O===c,t)),g+=1};for(s=0;s!==n;){let y=s;for(;s!==n&&e[s][0]===A;)s+=1;if(y!==s)if(y===0){s>r&&(y=s-r,h=y,m=y,p=h,g=m);for(let O=y;O!==s;O+=1)S(e[O][1])}else if(s===n){let O=s-y>r?y+r:s;for(let d=y;d!==O;d+=1)S(e[d][1])}else{let O=s-y;if(O>i){let d=y+r;for(let N=y;N!==d;N+=1)S(e[N][1]);f[b]=At(h,p,m,g,t),b=f.length,f.push("");let $=O-i;h=p+$,m=g+$,p=h,g=m;for(let N=s-r;N!==s;N+=1)S(e[N][1])}else for(let d=y;d!==s;d+=1)S(e[d][1])}for(;s!==n&&e[s][0]===P;)_(e[s][1]),s+=1;for(;s!==n&&e[s][0]===I;)w(e[s][1]),s+=1}return a&&(f[b]=At(h,p,m,g,t)),f.join(`
7
+ `)}function Fi(e,t){return e.map((n,r,i)=>{let l=n[1],o=r===0||r===i.length-1;switch(n[0]){case P:return pn(l,o,t);case I:return yn(l,o,t);default:return bn(l,o,t)}}).join(`
8
+ `)}var Ie=e=>e,Sn=5,Bi=0;function xi(){return{aAnnotation:"Expected",aColor:Q.green,aIndicator:"-",bAnnotation:"Received",bColor:Q.red,bIndicator:"+",changeColor:Q.inverse,changeLineTrailingSpaceColor:Ie,commonColor:Q.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Ie,compareKeys:void 0,contextLines:Sn,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Q.yellow,truncateThreshold:Bi,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Ie}}function ki(e){return e&&typeof e=="function"?e:void 0}function zi(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Sn}function ie(e={}){return{...xi(),...e,compareKeys:ki(e.compareKeys),contextLines:zi(e.contextLines)}}function se(e){return e.length===1&&e[0].length===0}function Ui(e){let t=0,n=0;return e.forEach(r=>{switch(r[0]){case P:t+=1;break;case I:n+=1;break}}),{a:t,b:n}}function Ki({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:l,includeChangeCounts:o,omitAnnotationLines:u},s){if(u)return"";let a="",c="";if(o){let h=String(s.a),m=String(s.b),p=r.length-e.length,g=" ".repeat(Math.max(0,p)),S=" ".repeat(Math.max(0,-p)),_=m.length-h.length,w=" ".repeat(Math.max(0,_)),y=" ".repeat(Math.max(0,-_));a=`${g} ${n} ${w}${h}`,c=`${S} ${l} ${y}${m}`}let f=`${n} ${e}${a}`,b=`${l} ${r}${c}`;return`${t(f)}
9
+ ${i(b)}
10
10
 
11
- `}function Xe(e,t,r){return Yi(r,Wi(e))+(r.expand?ki(e,r):xi(e,r))+(t?r.truncateAnnotationColor(`
12
- ${r.truncateAnnotation}`):"")}function we(e,t,r){let n=le(r),[i,l]=_r(ce(e)?[]:e,ce(t)?[]:t,n);return Xe(i,l,n)}function Vi(e,t,r,n,i){if(ce(e)&&ce(r)&&(e=[],r=[]),ce(t)&&ce(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return we(e,t,i);let[l,u]=_r(r,n,i),s=0,c=0;return l.forEach(a=>{switch(a[0]){case P:a[1]=e[s],s+=1;break;case I:a[1]=t[c],c+=1;break;default:a[1]=t[c],s+=1,c+=1}}),Xe(l,u,le(i))}function _r(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,i=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),l=n?Math.min(e.length,i):e.length,u=n?Math.min(t.length,i):t.length,s=l!==e.length||u!==t.length,c=(y,f)=>e[y]===t[f],a=[],o=0,h=0;for(mr(l,u,c,(y,f,m)=>{for(;o!==f;o+=1)a.push(new T(P,e[o]));for(;h!==m;h+=1)a.push(new T(I,t[h]));for(;y!==0;y-=1,o+=1,h+=1)a.push(new T(A,t[h]))});o!==l;o+=1)a.push(new T(P,e[o]));for(;h!==u;h+=1)a.push(new T(I,t[h]));return[a,s]}function It(e){return e.includes(`\r
11
+ `}function Je(e,t,n){return Ki(n,Ui(e))+(n.expand?Fi(e,n):ji(e,n))+(t?n.truncateAnnotationColor(`
12
+ ${n.truncateAnnotation}`):"")}function de(e,t,n){let r=ie(n),[i,l]=_n(se(e)?[]:e,se(t)?[]:t,r);return Je(i,l,r)}function qi(e,t,n,r,i){if(se(e)&&se(n)&&(e=[],n=[]),se(t)&&se(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return de(e,t,i);let[l,o]=_n(n,r,i),u=0,s=0;return l.forEach(a=>{switch(a[0]){case P:a[1]=e[u],u+=1;break;case I:a[1]=t[s],s+=1;break;default:a[1]=t[s],u+=1,s+=1}}),Je(l,o,ie(i))}function _n(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),l=r?Math.min(e.length,i):e.length,o=r?Math.min(t.length,i):t.length,u=l!==e.length||o!==t.length,s=(b,h)=>e[b]===t[h],a=[],c=0,f=0;for(mn(l,o,s,(b,h,m)=>{for(;c!==h;c+=1)a.push(new T(P,e[c]));for(;f!==m;f+=1)a.push(new T(I,t[f]));for(;b!==0;b-=1,c+=1,f+=1)a.push(new T(A,t[f]))});c!==l;c+=1)a.push(new T(P,e[c]));for(;f!==o;f+=1)a.push(new T(I,t[f]));return[a,u]}function Mt(e){return e.includes(`\r
13
13
  `)?`\r
14
14
  `:`
15
- `}function Hi(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,i=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),l=e.length,u=t.length;if(n){let y=e.includes(`
16
- `),f=t.includes(`
17
- `),m=It(e),p=It(t),g=y?`${e.split(m,i).join(m)}
18
- `:e,b=f?`${t.split(p,i).join(p)}
19
- `:t;l=g.length,u=b.length}let s=l!==e.length||u!==t.length,c=(y,f)=>e[y]===t[f],a=0,o=0,h=[];return mr(l,u,c,(y,f,m)=>{a!==f&&h.push(new T(P,e.slice(a,f))),o!==m&&h.push(new T(I,t.slice(o,m))),a=f+y,o=m+y,h.push(new T(A,t.slice(m,o)))}),a!==l&&h.push(new T(P,e.slice(a))),o!==u&&h.push(new T(I,t.slice(o))),[h,s]}function Gi(e,t,r){return t.reduce((n,i)=>n+(i[0]===A?i[1]:i[0]===e&&i[1].length!==0?r(i[1]):""),"")}var Pt=class{constructor(e,t){Y(this,"op");Y(this,"line");Y(this,"lines");Y(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new T(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new T(this.op,Gi(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new T(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
20
- `)){let r=t.split(`
21
- `),n=r.length-1;r.forEach((i,l)=>{l<n?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},Ji=class{constructor(e,t){Y(this,"deleteBuffer");Y(this,"insertBuffer");Y(this,"lines");this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
22
- `)){let n=r.split(`
23
- `),i=n.length-1;n.forEach((l,u)=>{if(u===0){let s=new T(t,l);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else u<i?this.pushDiffCommonLine(new T(t,l)):l.length!==0&&this.pushDiffChangeLines(new T(t,l))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function Xi(e,t){let r=new Pt(P,t),n=new Pt(I,t),i=new Ji(r,n);return e.forEach(l=>{switch(l[0]){case P:r.align(l);break;case I:n.align(l);break;default:i.align(l)}}),i.getLines()}function Zi(e,t){if(t){let r=e.length-1;return e.some((n,i)=>n[0]===A&&(i!==r||n[1]!==`
24
- `))}return e.some(r=>r[0]===A)}function Qi(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
15
+ `}function Wi(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),l=e.length,o=t.length;if(r){let b=e.includes(`
16
+ `),h=t.includes(`
17
+ `),m=Mt(e),p=Mt(t),g=b?`${e.split(m,i).join(m)}
18
+ `:e,S=h?`${t.split(p,i).join(p)}
19
+ `:t;l=g.length,o=S.length}let u=l!==e.length||o!==t.length,s=(b,h)=>e[b]===t[h],a=0,c=0,f=[];return mn(l,o,s,(b,h,m)=>{a!==h&&f.push(new T(P,e.slice(a,h))),c!==m&&f.push(new T(I,t.slice(c,m))),a=h+b,c=m+b,f.push(new T(A,t.slice(m,c)))}),a!==l&&f.push(new T(P,e.slice(a))),c!==o&&f.push(new T(I,t.slice(c))),[f,u]}function Yi(e,t,n){return t.reduce((r,i)=>r+(i[0]===A?i[1]:i[0]===e&&i[1].length!==0?n(i[1]):""),"")}var It=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new T(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new T(this.op,Yi(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new T(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
20
+ `)){let n=t.split(`
21
+ `),r=n.length-1;n.forEach((i,l)=>{l<r?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},Vi=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],n=e[1];if(n.includes(`
22
+ `)){let r=n.split(`
23
+ `),i=r.length-1;r.forEach((l,o)=>{if(o===0){let u=new T(t,l);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(u)):(this.pushDiffChangeLines(u),this.flushChangeLines())}else o<i?this.pushDiffCommonLine(new T(t,l)):l.length!==0&&this.pushDiffChangeLines(new T(t,l))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function Hi(e,t){let n=new It(P,t),r=new It(I,t),i=new Vi(n,r);return e.forEach(l=>{switch(l[0]){case P:n.align(l);break;case I:r.align(l);break;default:i.align(l)}}),i.getLines()}function Gi(e,t){if(t){let n=e.length-1;return e.some((r,i)=>r[0]===A&&(i!==n||r[1]!==`
24
+ `))}return e.some(n=>n[0]===A)}function Ji(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
25
25
  `)||t.includes(`
26
- `),[i,l]=$r(n?`${e}
27
- `:e,n?`${t}
28
- `:t,!0,r);if(Zi(i,n)){let u=le(r),s=Xi(i,u.changeColor);return Xe(s,l,u)}}return we(e.split(`
26
+ `),[i,l]=$n(r?`${e}
27
+ `:e,r?`${t}
28
+ `:t,!0,n);if(Gi(i,r)){let o=ie(n),u=Hi(i,o.changeColor);return Je(u,l,o)}}return de(e.split(`
29
29
  `),t.split(`
30
- `),r)}function $r(e,t,r,n){let[i,l]=Hi(e,t,n);return Ii(i),[i,l]}function xe(e,t){let{commonColor:r}=le(t);return r(e)}var{AsymmetricMatcher:vi,DOMCollection:el,DOMElement:tl,Immutable:rl,ReactElement:nl,ReactTestComponent:il}=ur,Or=[il,nl,tl,el,rl,vi],ke={plugins:Or},dr={callToJSON:!1,maxDepth:10,plugins:Or};function ll(e,t,r){if(Object.is(e,t))return"";let n=wt(e),i=n,l=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;i=e.getExpectedType(),l=i==="string"}if(i!==wt(t)){let{aAnnotation:u,aColor:s,aIndicator:c,bAnnotation:a,bColor:o,bIndicator:h}=le(r),y=ze(dr,r),f=V(e,y),m=V(t,y),p=`${s(`${c} ${u}:`)}
31
- ${f}`,g=`${o(`${h} ${a}:`)}
30
+ `),n)}function $n(e,t,n,r){let[i,l]=Wi(e,t,r);return Ti(i),[i,l]}function Be(e,t){let{commonColor:n}=ie(t);return n(e)}var{AsymmetricMatcher:Xi,DOMCollection:Zi,DOMElement:Qi,Immutable:vi,ReactElement:eo,ReactTestComponent:to}=ln,On=[to,eo,Qi,Zi,vi,Xi],xe={plugins:On},dn={callToJSON:!1,maxDepth:10,plugins:On};function no(e,t,n){if(Object.is(e,t))return"";let r=dt(e),i=r,l=!1;if(r==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;i=e.getExpectedType(),l=i==="string"}if(i!==dt(t)){let{aAnnotation:o,aColor:u,aIndicator:s,bAnnotation:a,bColor:c,bIndicator:f}=ie(n),b=ke(dn,n),h=Y(e,b),m=Y(t,b),p=`${u(`${s} ${o}:`)}
31
+ ${h}`,g=`${c(`${f} ${a}:`)}
32
32
  ${m}`;return`${p}
33
33
 
34
- ${g}`}if(!l)switch(n){case"string":return we(e.split(`
34
+ ${g}`}if(!l)switch(r){case"string":return de(e.split(`
35
35
  `),t.split(`
36
- `),r);case"boolean":case"number":return ul(e,t,r);case"map":return Re(Rt(e),Rt(t),r);case"set":return Re(Lt(e),Lt(t),r);default:return Re(e,t,r)}}function ul(e,t,r){let n=V(e,ke),i=V(t,ke);return n===i?"":we(n.split(`
36
+ `),n);case"boolean":case"number":return ro(e,t,n);case"map":return Pe(Pt(e),Pt(t),n);case"set":return Pe(Rt(e),Rt(t),n);default:return Pe(e,t,n)}}function ro(e,t,n){let r=Y(e,xe),i=Y(t,xe);return r===i?"":de(r.split(`
37
37
  `),i.split(`
38
- `),r)}function Rt(e){return new Map(Array.from(e.entries()).sort())}function Lt(e){return new Set(Array.from(e.values()).sort())}function Re(e,t,r){let n,i=!1;try{let u=ze(ke,r);n=Dt(e,t,u,r)}catch{i=!0}let l=xe(fr,r);if(n===void 0||n===l){let u=ze(dr,r);n=Dt(e,t,u,r),n!==l&&!i&&(n=`${xe(Di,r)}
38
+ `),n)}function Pt(e){return new Map(Array.from(e.entries()).sort())}function Rt(e){return new Set(Array.from(e.values()).sort())}function Pe(e,t,n){let r,i=!1;try{let o=ke(xe,n);r=Lt(e,t,o,n)}catch{i=!0}let l=Be(fn,n);if(r===void 0||r===l){let o=ke(dn,n);r=Lt(e,t,o,n),r!==l&&!i&&(r=`${Be(Pi,n)}
39
39
 
40
- ${n}`)}return n}function ze(e,t){let{compareKeys:r}=le(t);return{...e,compareKeys:r}}function Dt(e,t,r,n){let i={...r,indent:0},l=V(e,i),u=V(t,i);if(l===u)return xe(fr,n);{let s=V(e,r),c=V(t,r);return Vi(s.split(`
41
- `),c.split(`
40
+ ${r}`)}return r}function ke(e,t){let{compareKeys:n}=ie(t);return{...e,compareKeys:n}}function Lt(e,t,n,r){let i={...n,indent:0},l=Y(e,i),o=Y(t,i);if(l===o)return Be(fn,r);{let u=Y(e,n),s=Y(t,n);return qi(u.split(`
41
+ `),s.split(`
42
42
  `),l.split(`
43
- `),u.split(`
44
- `),n)}}var jt=2e4;function Ft(e){return Fe(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Bt(e,t){let r=Fe(e),n=Fe(t);return r===n&&(r==="Object"||r==="Array")}function sl(e,t,r){let{aAnnotation:n,bAnnotation:i}=le(r);if(typeof e=="string"&&typeof t=="string"&&e.length>0&&t.length>0&&e.length<=jt&&t.length<=jt&&e!==t){if(e.includes(`
43
+ `),o.split(`
44
+ `),r)}}var Dt=2e4;function jt(e){return je(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Ft(e,t){let n=je(e),r=je(t);return n===r&&(n==="Object"||n==="Array")}function io(e,t,n){let{aAnnotation:r,bAnnotation:i}=ie(n);if(typeof e=="string"&&typeof t=="string"&&e.length>0&&t.length>0&&e.length<=Dt&&t.length<=Dt&&e!==t){if(e.includes(`
45
45
  `)||t.includes(`
46
- `))return Qi(t,e,r);let[a]=$r(t,e),o=a.some(m=>m[0]===A),h=ol(n,i),y=h(n)+gl(xt(a,P,o)),f=h(i)+al(xt(a,I,o));return`${y}
47
- ${f}`}let l=dt(e,{forceWritable:!0}),u=dt(t,{forceWritable:!0}),{replacedExpected:s,replacedActual:c}=wr(l,u);return ll(s,c,r)}function wr(e,t,r=new WeakSet,n=new WeakSet){return Bt(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),cr(t).forEach(i=>{let l=t[i],u=e[i];if(Ft(l))l.asymmetricMatch(u)&&(e[i]=l);else if(Ft(u))u.asymmetricMatch(l)&&(t[i]=u);else if(Bt(u,l)){let s=wr(u,l,r,n);e[i]=s.replacedActual,t[i]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function ol(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var cl="·";function Er(e){return e.replace(/\s+$/gm,t=>cl.repeat(t.length))}function al(e){return v.red(Er(ye(e)))}function gl(e){return v.green(Er(ye(e)))}function xt(e,t,r){return e.reduce((n,i)=>n+(i[0]===A?i[1]:i[0]===t?r?v.inverse(i[1]):i[1]:""),"")}var hl="@@__IMMUTABLE_RECORD__@@",fl="@@__IMMUTABLE_ITERABLE__@@";function ml(e){return e&&(e[fl]||e[hl])}var pl=Object.getPrototypeOf({});function kt(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function ae(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(ml(e))return ae(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${Ci(e.sample)}`;if(typeof e.toJSON=="function")return ae(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,i)=>{try{r[i]=ae(n,t)}catch(l){r[i]=kt(l)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==pl;)Object.getOwnPropertyNames(n).forEach(i=>{if(!(i in r))try{r[i]=ae(e[i],t)}catch(l){delete r[i],r[i]=kt(l)}}),n=Object.getPrototypeOf(n);return r}}function yl(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Cr(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;n.stack&&(n.stackStr=String(n.stack)),n.name&&(n.nameStr=String(n.name)),(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=sl(n.actual,n.expected,{...t,...n.diffOptions})),typeof n.expected!="string"&&(n.expected=ye(n.expected,10)),typeof n.actual!="string"&&(n.actual=ye(n.actual,10));try{typeof n.message=="string"&&(n.message=yl(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Cr(n.cause,t,r))}catch{}try{return ae(n)}catch(i){return ae(new Error(`Failed to fully serialize error: ${i==null?void 0:i.message}
48
- Inner error message: ${n==null?void 0:n.message}`))}}var bl=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(bl||{}),Q={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},zt={start:!1,back:!1,goto:!1,next:!1,end:!1},Sl=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Ut=e=>Object.prototype.toString.call(e)==="[object Object]",_l=e=>Object.prototype.toString.call(e)==="[object Module]",$l=e=>{if(!Ut(e)&&!_l(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Ut(t)},Ol=e=>{try{return new e.constructor}catch{return{}}},Le=()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),Kt=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(i=>i.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,i])=>i.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},dl=class{constructor(){var u;this.initialized=!1,this.channel=Pr.getChannel(),this.state=((u=L.window)==null?void 0:u.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{};let e=({storyId:s,isPlaying:c=!0,isDebugging:a=!1})=>{let o=this.getState(s);this.setState(s,{...Le(),...Kt(o,a),shadowCalls:a?o.shadowCalls:[],chainedCallIds:a?o.chainedCallIds:new Set,playUntil:a?o.playUntil:void 0,isPlaying:c,isDebugging:a}),this.sync(s)};this.channel.on(ve,e),this.channel.on(Mr,({storyId:s,newPhase:c})=>{let{isDebugging:a}=this.getState(s);this.setState(s,{renderPhase:c}),c==="preparing"&&a&&e({storyId:s}),c==="playing"&&e({storyId:s,isDebugging:a}),c==="played"&&this.setState(s,{isLocked:!1,isPlaying:!1,isDebugging:!1}),c==="errored"&&this.setState(s,{isLocked:!1,isPlaying:!1})}),this.channel.on(Ir,()=>{this.initialized?this.cleanup():this.initialized=!0});let t=({storyId:s,playUntil:c})=>{this.getState(s).isDebugging||this.setState(s,({calls:o})=>({calls:[],shadowCalls:o.map(h=>({...h,status:"waiting"})),isDebugging:!0}));let a=this.getLog(s);this.setState(s,({shadowCalls:o})=>{var y;if(c||!a.length)return{playUntil:c};let h=o.findIndex(f=>f.id===a[0].callId);return{playUntil:(y=o.slice(0,h).filter(f=>{var m;return f.interceptable&&!((m=f.ancestors)!=null&&m.length)}).slice(-1)[0])==null?void 0:y.id}}),this.channel.emit(ve,{storyId:s,isDebugging:!0})},r=({storyId:s})=>{var o;let c=this.getLog(s).filter(h=>{var y;return!((y=h.ancestors)!=null&&y.length)}),a=c.reduceRight((h,y,f)=>h>=0||y.status==="waiting"?h:f,-1);t({storyId:s,playUntil:(o=c[a-1])==null?void 0:o.callId})},n=({storyId:s,callId:c})=>{var m;let{calls:a,shadowCalls:o,resolvers:h}=this.getState(s),y=a.find(({id:p})=>p===c),f=o.find(({id:p})=>p===c);if(!y&&f&&Object.values(h).length>0){let p=(m=this.getLog(s).find(g=>g.status==="waiting"))==null?void 0:m.callId;f.id!==p&&this.setState(s,{playUntil:f.id}),Object.values(h).forEach(g=>g())}else t({storyId:s,playUntil:c})},i=({storyId:s})=>{var a;let{resolvers:c}=this.getState(s);if(Object.values(c).length>0)Object.values(c).forEach(o=>o());else{let o=(a=this.getLog(s).find(h=>h.status==="waiting"))==null?void 0:a.callId;o?t({storyId:s,playUntil:o}):l({storyId:s})}},l=({storyId:s})=>{this.setState(s,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(s).resolvers).forEach(c=>c())};this.channel.on(Q.START,t),this.channel.on(Q.BACK,r),this.channel.on(Q.GOTO,n),this.channel.on(Q.NEXT,i),this.channel.on(Q.END,l)}getState(e){return this.state[e]||Le()}setState(e,t){var i;let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},(i=L.window)!=null&&i.parent&&(L.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}cleanup(){var t;this.state=Object.entries(this.state).reduce((r,[n,i])=>{let l=Kt(i);return l&&(r[n]=Object.assign(Le(),l)),r},{});let e={controlStates:zt,logItems:[]};this.channel.emit(Q.SYNC,e),(t=L.window)!=null&&t.parent&&(L.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((l,u)=>{n[u]=l});let i=new Set;return n.reduceRight((l,u)=>(u.args.forEach(s=>{s!=null&&s.__callId__&&i.add(s.__callId__)}),u.path.forEach(s=>{s.__callId__&&i.add(s.__callId__)}),(u.interceptable||u.exception)&&!i.has(u.id)&&(l.unshift({callId:u.id,status:u.status,ancestors:u.ancestors}),i.add(u.id)),l),[])}instrument(e,t,r=0){if(!$l(e))return e;let{mutate:n=!1,path:i=[]}=t,l=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,l.reduce((u,s)=>{let c=wl(e,s);if(typeof(c==null?void 0:c.get)=="function"){let o=()=>{var h,y;return(y=(h=c==null?void 0:c.get)==null?void 0:h.bind(e))==null?void 0:y()};return Object.defineProperty(u,s,{get:()=>this.instrument(o(),{...t,path:i.concat(s)},r)}),u}let a=e[s];return typeof a!="function"?(u[s]=this.instrument(a,{...t,path:i.concat(s)},r),u):"__originalFn__"in a&&typeof a.__originalFn__=="function"?(u[s]=a,u):(u[s]=(...o)=>this.track(s,a,e,o,t),u[s].__originalFn__=a,Object.defineProperty(u[s],"name",{value:s,writable:!1}),Object.keys(a).length>0&&Object.assign(u[s],this.instrument({...a},{...t,path:i.concat(s)},r)),u)},n?e:Ol(e))}track(e,t,r,n,i){var p,g,b,_;let l=((p=n==null?void 0:n[0])==null?void 0:p.__storyId__)||((_=(b=(g=L.__STORYBOOK_PREVIEW__)==null?void 0:g.selectionStore)==null?void 0:b.selection)==null?void 0:_.storyId),{cursor:u,ancestors:s}=this.getState(l);this.setState(l,{cursor:u+1});let c=`${s.slice(-1)[0]||l} [${u}] ${e}`,{path:a=[],intercept:o=!1,retain:h=!1}=i,y=typeof o=="function"?o(e,a):o,f={id:c,cursor:u,storyId:l,ancestors:s,path:a,method:e,args:n,interceptable:y,retain:h},m=(y&&!s.length?this.intercept:this.invoke).call(this,t,r,f,i);return this.instrument(m,{...i,mutate:!0,path:[{__callId__:f.id}]})}intercept(e,t,r,n){let{chainedCallIds:i,isDebugging:l,playUntil:u}=this.getState(r.storyId),s=i.has(r.id);return!l||s||u?(u===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(c=>{this.setState(r.storyId,({resolvers:a})=>({isLocked:!1,resolvers:{...a,[r.id]:c}}))}).then(()=>(this.setState(r.storyId,c=>{let{[r.id]:a,...o}=c.resolvers;return{isLocked:!0,resolvers:o}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:i,renderPhase:l}=this.getState(r.storyId),u=25,s=(o,h,y)=>{var f,m,p;if(y.includes(o))return"[Circular]";if(y=[...y,o],h>u)return"...";if(i.has(o))return i.get(o);if(o instanceof Array)return o.map(g=>s(g,++h,y));if(o instanceof Date)return{__date__:{value:o.toISOString()}};if(o instanceof Error){let{name:g,message:b,stack:_}=o;return{__error__:{name:g,message:b,stack:_}}}if(o instanceof RegExp){let{flags:g,source:b}=o;return{__regexp__:{flags:g,source:b}}}if(o instanceof((f=L.window)==null?void 0:f.HTMLElement)){let{prefix:g,localName:b,id:_,classList:w,innerText:S}=o,O=Array.from(w);return{__element__:{prefix:g,localName:b,id:_,classNames:O,innerText:S}}}return typeof o=="function"?{__function__:{name:"getMockName"in o?o.getMockName():o.name}}:typeof o=="symbol"?{__symbol__:{description:o.description}}:typeof o=="object"&&((m=o==null?void 0:o.constructor)!=null&&m.name)&&((p=o==null?void 0:o.constructor)==null?void 0:p.name)!=="Object"?{__class__:{name:o.constructor.name}}:Object.prototype.toString.call(o)==="[object Object]"?Object.fromEntries(Object.entries(o).map(([g,b])=>[g,s(b,++h,y)])):o},c={...r,args:r.args.map(o=>s(o,0,[]))};r.path.forEach(o=>{o!=null&&o.__callId__&&this.setState(r.storyId,({chainedCallIds:h})=>({chainedCallIds:new Set(Array.from(h).concat(o.__callId__))}))});let a=o=>{var h;if(o instanceof Error){let{name:y,message:f,stack:m,callId:p=r.id}=o,{showDiff:g=void 0,diff:b=void 0,actual:_=void 0,expected:w=void 0}=o.name==="AssertionError"?Cr(o):o,S={name:y,message:f,stack:m,callId:p,showDiff:g,diff:b,actual:_,expected:w};if(this.update({...c,status:"error",exception:S}),this.setState(r.storyId,O=>({callRefsByResult:new Map([...Array.from(O.callRefsByResult.entries()),[o,{__callId__:r.id,retain:r.retain}]])})),(h=r.ancestors)==null?void 0:h.length)throw Object.prototype.hasOwnProperty.call(o,"callId")||Object.defineProperty(o,"callId",{value:r.id}),o}throw o};try{if(l==="played"&&!r.retain)throw Sl;let o=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(y=>typeof y!="function"||Object.keys(y).length?y:(...f)=>{let{cursor:m,ancestors:p}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...p,r.id]});let g=()=>this.setState(r.storyId,{cursor:m,ancestors:p}),b=!1;try{let _=y(...f);return _ instanceof Promise?(b=!0,_.finally(g)):_}finally{b||g()}}),h=e.apply(t,o);return h&&["object","function","symbol"].includes(typeof h)&&this.setState(r.storyId,y=>({callRefsByResult:new Map([...Array.from(y.callRefsByResult.entries()),[h,{__callId__:r.id,retain:r.retain}]])})),this.update({...c,status:h instanceof Promise?"active":"done"}),h instanceof Promise?h.then(y=>(this.update({...c,status:"done"}),y),a):h}catch(o){return a(o)}}update(e){this.channel.emit(Q.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((n,i)=>Object.assign(n,{[i.id]:i}),{});return{calls:Object.values(r).sort((n,i)=>n.id.localeCompare(i.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{var a;let{isLocked:r,isPlaying:n}=this.getState(e),i=this.getLog(e),l=(a=i.filter(({ancestors:o})=>!o.length).find(o=>o.status==="waiting"))==null?void 0:a.callId,u=i.some(o=>o.status==="active");if(r||u||i.length===0){let o={controlStates:zt,logItems:i};this.channel.emit(Q.SYNC,o);return}let s=i.some(o=>o.status==="done"||o.status==="error"),c={controlStates:{start:s,back:s,goto:!0,next:n,end:n},logItems:i,pausedAt:l};this.channel.emit(Q.SYNC,c)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function Ml(e,t={}){var r,n,i,l,u,s,c,a;try{let o=!1,h=!1;return(i=(n=(r=L.window)==null?void 0:r.location)==null?void 0:n.search)!=null&&i.includes("instrument=true")?o=!0:(s=(u=(l=L.window)==null?void 0:l.location)==null?void 0:u.search)!=null&&s.includes("instrument=false")&&(h=!0),((c=L.window)==null?void 0:c.parent)===L.window&&!o||h?e:(L.window&&!L.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(L.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new dl),((a=L.window)==null?void 0:a.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(o){return Ar.warn(o),e}}function wl(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}export{bl as CallStates,Q as EVENTS,Ml as instrument};
46
+ `))return Ji(t,e,n);let[a]=$n(t,e),c=a.some(m=>m[0]===A),f=oo(r,i),b=f(r)+so(Bt(a,P,c)),h=f(i)+uo(Bt(a,I,c));return`${b}
47
+ ${h}`}let l=Ot(e,{forceWritable:!0}),o=Ot(t,{forceWritable:!0}),{replacedExpected:u,replacedActual:s}=wn(l,o);return no(u,s,n)}function wn(e,t,n=new WeakSet,r=new WeakSet){return Ft(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),cn(t).forEach(i=>{let l=t[i],o=e[i];if(jt(l))l.asymmetricMatch(o)&&(e[i]=l);else if(jt(o))o.asymmetricMatch(l)&&(t[i]=o);else if(Ft(o,l)){let u=wn(o,l,n,r);e[i]=u.replacedActual,t[i]=u.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function oo(...e){let t=e.reduce((n,r)=>r.length>n?r.length:n,0);return n=>`${n}: ${" ".repeat(t-n.length)}`}var lo="·";function En(e){return e.replace(/\s+$/gm,t=>lo.repeat(t.length))}function uo(e){return Q.red(En(pe(e)))}function so(e){return Q.green(En(pe(e)))}function Bt(e,t,n){return e.reduce((r,i)=>r+(i[0]===A?i[1]:i[0]===t?n?Q.inverse(i[1]):i[1]:""),"")}var co="@@__IMMUTABLE_RECORD__@@",ao="@@__IMMUTABLE_ITERABLE__@@";function go(e){return e&&(e[ao]||e[co])}var ho=Object.getPrototypeOf({});function xt(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function ce(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(go(e))return ce(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${di(e.sample)}`;if(typeof e.toJSON=="function")return ce(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=new Array(e.length);return t.set(e,n),e.forEach((r,i)=>{try{n[i]=ce(r,t)}catch(l){n[i]=xt(l)}}),n}else{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==ho;)Object.getOwnPropertyNames(r).forEach(i=>{if(!(i in n))try{n[i]=ce(e[i],t)}catch(l){delete n[i],n[i]=xt(l)}}),r=Object.getPrototypeOf(r);return n}}function fo(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Cn(e,t,n=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let r=e;r.stack&&(r.stackStr=String(r.stack)),r.name&&(r.nameStr=String(r.name)),(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=io(r.actual,r.expected,{...t,...r.diffOptions})),typeof r.expected!="string"&&(r.expected=pe(r.expected,10)),typeof r.actual!="string"&&(r.actual=pe(r.actual,10));try{typeof r.message=="string"&&(r.message=fo(r.message))}catch{}try{!n.has(r)&&typeof r.cause=="object"&&(n.add(r),r.cause=Cn(r.cause,t,n))}catch{}try{return ce(r)}catch(i){return ce(new Error(`Failed to fully serialize error: ${i?.message}
48
+ Inner error message: ${r?.message}`))}}var mo=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(mo||{}),Z={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},kt={start:!1,back:!1,goto:!1,next:!1,end:!1},po=new Error("This function ran after the play function completed. Did you forget to `await` it?"),zt=e=>Object.prototype.toString.call(e)==="[object Object]",yo=e=>Object.prototype.toString.call(e)==="[object Module]",bo=e=>{if(!zt(e)&&!yo(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!zt(t)},So=e=>{try{return new e.constructor}catch{return{}}},Re=()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),Ut=(e,t=!1)=>{let n=(t?e.shadowCalls:e.calls).filter(i=>i.retain);if(!n.length)return;let r=new Map(Array.from(e.callRefsByResult.entries()).filter(([,i])=>i.retain));return{cursor:n.length,calls:n,callRefsByResult:r}},_o=class{constructor(){this.initialized=!1,this.channel=Mn.getChannel(),this.state=L.window?.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{};let e=({storyId:o,isPlaying:u=!0,isDebugging:s=!1})=>{let a=this.getState(o);this.setState(o,{...Re(),...Ut(a,s),shadowCalls:s?a.shadowCalls:[],chainedCallIds:s?a.chainedCallIds:new Set,playUntil:s?a.playUntil:void 0,isPlaying:u,isDebugging:s}),this.sync(o)};this.channel.on(Qe,e),this.channel.on(Tn,({storyId:o,newPhase:u})=>{let{isDebugging:s}=this.getState(o);this.setState(o,{renderPhase:u}),u==="preparing"&&s&&e({storyId:o}),u==="playing"&&e({storyId:o,isDebugging:s}),u==="played"&&this.setState(o,{isLocked:!1,isPlaying:!1,isDebugging:!1}),u==="errored"&&this.setState(o,{isLocked:!1,isPlaying:!1})}),this.channel.on(An,()=>{this.initialized?this.cleanup():this.initialized=!0});let t=({storyId:o,playUntil:u})=>{this.getState(o).isDebugging||this.setState(o,({calls:a})=>({calls:[],shadowCalls:a.map(c=>({...c,status:"waiting"})),isDebugging:!0}));let s=this.getLog(o);this.setState(o,({shadowCalls:a})=>{if(u||!s.length)return{playUntil:u};let c=a.findIndex(f=>f.id===s[0].callId);return{playUntil:a.slice(0,c).filter(f=>f.interceptable&&!f.ancestors?.length).slice(-1)[0]?.id}}),this.channel.emit(Qe,{storyId:o,isDebugging:!0})},n=({storyId:o})=>{let u=this.getLog(o).filter(a=>!a.ancestors?.length),s=u.reduceRight((a,c,f)=>a>=0||c.status==="waiting"?a:f,-1);t({storyId:o,playUntil:u[s-1]?.callId})},r=({storyId:o,callId:u})=>{let{calls:s,shadowCalls:a,resolvers:c}=this.getState(o),f=s.find(({id:h})=>h===u),b=a.find(({id:h})=>h===u);if(!f&&b&&Object.values(c).length>0){let h=this.getLog(o).find(m=>m.status==="waiting")?.callId;b.id!==h&&this.setState(o,{playUntil:b.id}),Object.values(c).forEach(m=>m())}else t({storyId:o,playUntil:u})},i=({storyId:o})=>{let{resolvers:u}=this.getState(o);if(Object.values(u).length>0)Object.values(u).forEach(s=>s());else{let s=this.getLog(o).find(a=>a.status==="waiting")?.callId;s?t({storyId:o,playUntil:s}):l({storyId:o})}},l=({storyId:o})=>{this.setState(o,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(o).resolvers).forEach(u=>u())};this.channel.on(Z.START,t),this.channel.on(Z.BACK,n),this.channel.on(Z.GOTO,r),this.channel.on(Z.NEXT,i),this.channel.on(Z.END,l)}getState(e){return this.state[e]||Re()}setState(e,t){let n=this.getState(e),r=typeof t=="function"?t(n):t;this.state={...this.state,[e]:{...n,...r}},L.window?.parent&&(L.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}cleanup(){this.state=Object.entries(this.state).reduce((t,[n,r])=>{let i=Ut(r);return i&&(t[n]=Object.assign(Re(),i)),t},{});let e={controlStates:kt,logItems:[]};this.channel.emit(Z.SYNC,e),L.window?.parent&&(L.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}getLog(e){let{calls:t,shadowCalls:n}=this.getState(e),r=[...n];t.forEach((l,o)=>{r[o]=l});let i=new Set;return r.reduceRight((l,o)=>(o.args.forEach(u=>{u?.__callId__&&i.add(u.__callId__)}),o.path.forEach(u=>{u.__callId__&&i.add(u.__callId__)}),(o.interceptable||o.exception)&&!i.has(o.id)&&(l.unshift({callId:o.id,status:o.status,ancestors:o.ancestors}),i.add(o.id)),l),[])}instrument(e,t,n=0){if(!bo(e))return e;let{mutate:r=!1,path:i=[]}=t,l=t.getKeys?t.getKeys(e,n):Object.keys(e);return n+=1,l.reduce((o,u)=>{let s=$o(e,u);if(typeof s?.get=="function"){let c=()=>s?.get?.bind(e)?.();return Object.defineProperty(o,u,{get:()=>this.instrument(c(),{...t,path:i.concat(u)},n)}),o}let a=e[u];return typeof a!="function"?(o[u]=this.instrument(a,{...t,path:i.concat(u)},n),o):"__originalFn__"in a&&typeof a.__originalFn__=="function"?(o[u]=a,o):(o[u]=(...c)=>this.track(u,a,e,c,t),o[u].__originalFn__=a,Object.defineProperty(o[u],"name",{value:u,writable:!1}),Object.keys(a).length>0&&Object.assign(o[u],this.instrument({...a},{...t,path:i.concat(u)},n)),o)},r?e:So(e))}track(e,t,n,r,i){let l=r?.[0]?.__storyId__||L.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:o,ancestors:u}=this.getState(l);this.setState(l,{cursor:o+1});let s=`${u.slice(-1)[0]||l} [${o}] ${e}`,{path:a=[],intercept:c=!1,retain:f=!1}=i,b=typeof c=="function"?c(e,a):c,h={id:s,cursor:o,storyId:l,ancestors:u,path:a,method:e,args:r,interceptable:b,retain:f},m=(b&&!u.length?this.intercept:this.invoke).call(this,t,n,h,i);return this.instrument(m,{...i,mutate:!0,path:[{__callId__:h.id}]})}intercept(e,t,n,r){let{chainedCallIds:i,isDebugging:l,playUntil:o}=this.getState(n.storyId),u=i.has(n.id);return!l||u||o?(o===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(e,t,n,r)):new Promise(s=>{this.setState(n.storyId,({resolvers:a})=>({isLocked:!1,resolvers:{...a,[n.id]:s}}))}).then(()=>(this.setState(n.storyId,s=>{let{[n.id]:a,...c}=s.resolvers;return{isLocked:!0,resolvers:c}}),this.invoke(e,t,n,r)))}invoke(e,t,n,r){let{callRefsByResult:i,renderPhase:l}=this.getState(n.storyId),o=25,u=(c,f,b)=>{if(b.includes(c))return"[Circular]";if(b=[...b,c],f>o)return"...";if(i.has(c))return i.get(c);if(c instanceof Array)return c.map(h=>u(h,++f,b));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:h,message:m,stack:p}=c;return{__error__:{name:h,message:m,stack:p}}}if(c instanceof RegExp){let{flags:h,source:m}=c;return{__regexp__:{flags:h,source:m}}}if(c instanceof L.window?.HTMLElement){let{prefix:h,localName:m,id:p,classList:g,innerText:S}=c,_=Array.from(g);return{__element__:{prefix:h,localName:m,id:p,classNames:_,innerText:S}}}return typeof c=="function"?{__function__:{name:"getMockName"in c?c.getMockName():c.name}}:typeof c=="symbol"?{__symbol__:{description:c.description}}:typeof c=="object"&&c?.constructor?.name&&c?.constructor?.name!=="Object"?{__class__:{name:c.constructor.name}}:Object.prototype.toString.call(c)==="[object Object]"?Object.fromEntries(Object.entries(c).map(([h,m])=>[h,u(m,++f,b)])):c},s={...n,args:n.args.map(c=>u(c,0,[]))};n.path.forEach(c=>{c?.__callId__&&this.setState(n.storyId,({chainedCallIds:f})=>({chainedCallIds:new Set(Array.from(f).concat(c.__callId__))}))});let a=c=>{if(c instanceof Error){let{name:f,message:b,stack:h,callId:m=n.id}=c,{showDiff:p=void 0,diff:g=void 0,actual:S=void 0,expected:_=void 0}=c.name==="AssertionError"?Cn(c):c,w={name:f,message:b,stack:h,callId:m,showDiff:p,diff:g,actual:S,expected:_};if(this.update({...s,status:"error",exception:w}),this.setState(n.storyId,y=>({callRefsByResult:new Map([...Array.from(y.callRefsByResult.entries()),[c,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(c,"callId")||Object.defineProperty(c,"callId",{value:n.id}),c}throw c};try{if(l==="played"&&!n.retain)throw po;let c=(r.getArgs?r.getArgs(n,this.getState(n.storyId)):n.args).map(b=>typeof b!="function"||Object.keys(b).length?b:(...h)=>{let{cursor:m,ancestors:p}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...p,n.id]});let g=()=>this.setState(n.storyId,{cursor:m,ancestors:p}),S=!1;try{let _=b(...h);return _ instanceof Promise?(S=!0,_.finally(g)):_}finally{S||g()}}),f=e.apply(t,c);return f&&["object","function","symbol"].includes(typeof f)&&this.setState(n.storyId,b=>({callRefsByResult:new Map([...Array.from(b.callRefsByResult.entries()),[f,{__callId__:n.id,retain:n.retain}]])})),this.update({...s,status:f instanceof Promise?"active":"done"}),f instanceof Promise?f.then(b=>(this.update({...s,status:"done"}),b),a):f}catch(c){return a(c)}}update(e){this.channel.emit(Z.CALL,e),this.setState(e.storyId,({calls:t})=>{let n=t.concat(e).reduce((r,i)=>Object.assign(r,{[i.id]:i}),{});return{calls:Object.values(n).sort((r,i)=>r.id.localeCompare(i.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:n,isPlaying:r}=this.getState(e),i=this.getLog(e),l=i.filter(({ancestors:a})=>!a.length).find(a=>a.status==="waiting")?.callId,o=i.some(a=>a.status==="active");if(n||o||i.length===0){let a={controlStates:kt,logItems:i};this.channel.emit(Z.SYNC,a);return}let u=i.some(a=>a.status==="done"||a.status==="error"),s={controlStates:{start:u,back:u,goto:!0,next:r,end:r},logItems:i,pausedAt:l};this.channel.emit(Z.SYNC,s)};this.setState(e,({syncTimeout:n})=>(clearTimeout(n),{syncTimeout:setTimeout(t,0)}))}};function No(e,t={}){try{let n=!1,r=!1;return L.window?.location?.search?.includes("instrument=true")?n=!0:L.window?.location?.search?.includes("instrument=false")&&(r=!0),L.window?.parent===L.window&&!n||r?e:(L.window&&!L.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(L.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new _o),(L.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(n){return Nn.warn(n),e}}function $o(e,t){let n=e;for(;n!=null;){let r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}export{mo as CallStates,Z as EVENTS,No as instrument};