@ncino/web-components 9.2.0-preview.3 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (954) hide show
  1. package/dist/_virtual/axe.js +1 -1
  2. package/dist/components/accordion/gator/base/accordion.gator.js +7 -7
  3. package/dist/components/accordion/gator/group/accordion-group.gator.js +1 -1
  4. package/dist/components/alert/gator/base/alert.gator.js +1 -1
  5. package/dist/components/alert/gator/subtitle/alert-subtitle.gator.js +2 -2
  6. package/dist/components/alert/gator/title/alert-title.gator.js +2 -2
  7. package/dist/components/avatar/avatar.js +1 -1
  8. package/dist/components/avatar/gator/avatar.gator.js +1 -1
  9. package/dist/components/badge/badge.js +1 -1
  10. package/dist/components/badge/gator/badge.gator.js +2 -2
  11. package/dist/components/badge/slds/badge.slds.js +1 -1
  12. package/dist/components/banner/banner.js +1 -1
  13. package/dist/components/banner/gator/banner.gator.js +1 -1
  14. package/dist/components/boolean/boolean.gator.js +1 -1
  15. package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +2 -2
  16. package/dist/components/breadcrumbs/gator/container/breadcrumbs.gator.js +2 -2
  17. package/dist/components/button/gator/button.gator.js +1 -1
  18. package/dist/components/button/slds/button.slds.js +1 -1
  19. package/dist/components/button-card/gator/button-card.gator.js +2 -2
  20. package/dist/components/button-group/gator/button-group.gator.js +1 -1
  21. package/dist/components/card/card.js +1 -1
  22. package/dist/components/card/gator/base/card.gator.js +2 -2
  23. package/dist/components/card/gator/content/card-content.gator.js +1 -1
  24. package/dist/components/card/gator/footer/card-footer.gator.js +1 -1
  25. package/dist/components/card/gator/header/card-header.gator.js +2 -2
  26. package/dist/components/checkbox/checkbox.gator.js +1 -1
  27. package/dist/components/checkbox-group/checkbox-group.gator.js +2 -2
  28. package/dist/components/chip/gator/chip.gator.js +2 -2
  29. package/dist/components/combobox/base/combobox.js +1 -1
  30. package/dist/components/combobox/base/combobox.slds.js +1 -1
  31. package/dist/components/combobox/combobox-item/combobox-item.js +1 -1
  32. package/dist/components/combobox/combobox-item/combobox-item.slds.js +1 -1
  33. package/dist/components/date-picker/base/gator/datepicker.gator.js +2 -2
  34. package/dist/components/date-picker/year-month-selector/year-month-selector.gator.js +2 -2
  35. package/dist/components/display-card/gator/display-card.gator.js +2 -2
  36. package/dist/components/divider/gator/divider.gator.js +2 -2
  37. package/dist/components/fab/gator/fab.gator.js +2 -2
  38. package/dist/components/guided-nav/gator/guided-nav/guided-nav.gator.js +1 -1
  39. package/dist/components/guided-nav/gator/guided-nav-step/guided-nav-step.gator.js +1 -1
  40. package/dist/components/guided-nav/gator/guided-nav-substep/guided-nav-substep.gator.js +1 -1
  41. package/dist/components/headline-card/gator/headline-card.gator.js +1 -1
  42. package/dist/components/icon/gator/icon.gator.js +2 -2
  43. package/dist/components/icon/gator/index.js +1 -1
  44. package/dist/components/icon/gator/templates/add-link.js +1 -1
  45. package/dist/components/icon/gator/templates/airplane.js +1 -1
  46. package/dist/components/icon/gator/templates/alarm.js +1 -1
  47. package/dist/components/icon/gator/templates/apartment.js +1 -1
  48. package/dist/components/icon/gator/templates/arrow-around.js +1 -1
  49. package/dist/components/icon/gator/templates/arrow-down.js +1 -1
  50. package/dist/components/icon/gator/templates/arrow-left.js +1 -1
  51. package/dist/components/icon/gator/templates/arrow-line-left.js +1 -1
  52. package/dist/components/icon/gator/templates/arrow-line-right.js +1 -1
  53. package/dist/components/icon/gator/templates/arrow-right.js +1 -1
  54. package/dist/components/icon/gator/templates/arrow-up.js +1 -1
  55. package/dist/components/icon/gator/templates/arrows-down-up.js +8 -0
  56. package/dist/components/icon/gator/templates/bank.js +1 -1
  57. package/dist/components/icon/gator/templates/bell-disabled.js +1 -1
  58. package/dist/components/icon/gator/templates/bell.js +1 -1
  59. package/dist/components/icon/gator/templates/binoculars.js +1 -1
  60. package/dist/components/icon/gator/templates/book.js +1 -1
  61. package/dist/components/icon/gator/templates/box.js +1 -1
  62. package/dist/components/icon/gator/templates/brain.js +1 -1
  63. package/dist/components/icon/gator/templates/cake.js +1 -1
  64. package/dist/components/icon/gator/templates/calculator.js +1 -1
  65. package/dist/components/icon/gator/templates/calendar.js +1 -1
  66. package/dist/components/icon/gator/templates/camera.js +1 -1
  67. package/dist/components/icon/gator/templates/caret-up-down.js +1 -1
  68. package/dist/components/icon/gator/templates/case.js +1 -1
  69. package/dist/components/icon/gator/templates/chart-bar-horizontal.js +1 -1
  70. package/dist/components/icon/gator/templates/chart-bar.js +1 -1
  71. package/dist/components/icon/gator/templates/chart-donut.js +1 -1
  72. package/dist/components/icon/gator/templates/chart-line.js +1 -1
  73. package/dist/components/icon/gator/templates/chart-pie.js +1 -1
  74. package/dist/components/icon/gator/templates/chart-rise.js +1 -1
  75. package/dist/components/icon/gator/templates/chart-scatter.js +1 -1
  76. package/dist/components/icon/gator/templates/chat-circle-ai.js +1 -1
  77. package/dist/components/icon/gator/templates/chat-circle-dots.js +1 -1
  78. package/dist/components/icon/gator/templates/chat-circle-slash.js +1 -1
  79. package/dist/components/icon/gator/templates/chat-circle-text.js +1 -1
  80. package/dist/components/icon/gator/templates/chat-circle.js +1 -1
  81. package/dist/components/icon/gator/templates/chat.js +1 -1
  82. package/dist/components/icon/gator/templates/check-circle-filled.js +1 -1
  83. package/dist/components/icon/gator/templates/check-circle.js +1 -1
  84. package/dist/components/icon/gator/templates/check.js +1 -1
  85. package/dist/components/icon/gator/templates/checkbox-indeterminate.js +1 -1
  86. package/dist/components/icon/gator/templates/checkbox-selected.js +1 -1
  87. package/dist/components/icon/gator/templates/checkbox.js +1 -1
  88. package/dist/components/icon/gator/templates/checkerboard.js +1 -1
  89. package/dist/components/icon/gator/templates/chevron-down.js +1 -1
  90. package/dist/components/icon/gator/templates/chevron-left.js +1 -1
  91. package/dist/components/icon/gator/templates/chevron-right.js +1 -1
  92. package/dist/components/icon/gator/templates/chevron-up.js +1 -1
  93. package/dist/components/icon/gator/templates/circle-arrow-down.js +1 -1
  94. package/dist/components/icon/gator/templates/circle-arrow-left.js +1 -1
  95. package/dist/components/icon/gator/templates/circle-arrow-right.js +1 -1
  96. package/dist/components/icon/gator/templates/circle-arrow-up.js +1 -1
  97. package/dist/components/icon/gator/templates/circle-dashed.js +1 -1
  98. package/dist/components/icon/gator/templates/circle-filled.js +1 -1
  99. package/dist/components/icon/gator/templates/circle.js +1 -1
  100. package/dist/components/icon/gator/templates/city.js +1 -1
  101. package/dist/components/icon/gator/templates/clipboard.js +1 -1
  102. package/dist/components/icon/gator/templates/clock-clockwise.js +1 -1
  103. package/dist/components/icon/gator/templates/clock-counter-clockwise.js +1 -1
  104. package/dist/components/icon/gator/templates/clock.js +1 -1
  105. package/dist/components/icon/gator/templates/collapse.js +1 -1
  106. package/dist/components/icon/gator/templates/cone.js +1 -1
  107. package/dist/components/icon/gator/templates/contact-info.js +1 -1
  108. package/dist/components/icon/gator/templates/copy.js +1 -1
  109. package/dist/components/icon/gator/templates/credit-card.js +1 -1
  110. package/dist/components/icon/gator/templates/crop.js +1 -1
  111. package/dist/components/icon/gator/templates/crosshairs.js +1 -1
  112. package/dist/components/icon/gator/templates/currency-dollar-simple.js +1 -1
  113. package/dist/components/icon/gator/templates/currency-eur.js +1 -1
  114. package/dist/components/icon/gator/templates/currency-gbp.js +1 -1
  115. package/dist/components/icon/gator/templates/currency-inr.js +1 -1
  116. package/dist/components/icon/gator/templates/currency-jpy.js +1 -1
  117. package/dist/components/icon/gator/templates/currency-krw.js +1 -1
  118. package/dist/components/icon/gator/templates/currency-kzt.js +1 -1
  119. package/dist/components/icon/gator/templates/currency-ngn.js +1 -1
  120. package/dist/components/icon/gator/templates/currency-rub.js +1 -1
  121. package/dist/components/icon/gator/templates/cursor-arrow.js +1 -1
  122. package/dist/components/icon/gator/templates/cursor-hand.js +1 -1
  123. package/dist/components/icon/gator/templates/cursor.js +1 -1
  124. package/dist/components/icon/gator/templates/dashboard.js +1 -1
  125. package/dist/components/icon/gator/templates/delete.js +1 -1
  126. package/dist/components/icon/gator/templates/dna.js +1 -1
  127. package/dist/components/icon/gator/templates/document-add.js +1 -1
  128. package/dist/components/icon/gator/templates/document-ai.js +1 -1
  129. package/dist/components/icon/gator/templates/document-check.js +1 -1
  130. package/dist/components/icon/gator/templates/document-e-sign.js +1 -1
  131. package/dist/components/icon/gator/templates/document-image.js +1 -1
  132. package/dist/components/icon/gator/templates/document-pdf.js +1 -1
  133. package/dist/components/icon/gator/templates/document-sign.js +1 -1
  134. package/dist/components/icon/gator/templates/document-zip.js +1 -1
  135. package/dist/components/icon/gator/templates/document.js +1 -1
  136. package/dist/components/icon/gator/templates/dollar-bills.js +1 -1
  137. package/dist/components/icon/gator/templates/dollar-house.js +1 -1
  138. package/dist/components/icon/gator/templates/down-payment.js +1 -1
  139. package/dist/components/icon/gator/templates/download.js +1 -1
  140. package/dist/components/icon/gator/templates/drag-drop.js +1 -1
  141. package/dist/components/icon/gator/templates/earth.js +1 -1
  142. package/dist/components/icon/gator/templates/exclude-square.js +1 -1
  143. package/dist/components/icon/gator/templates/exit-circle.js +1 -1
  144. package/dist/components/icon/gator/templates/exit-left.js +1 -1
  145. package/dist/components/icon/gator/templates/exit.js +1 -1
  146. package/dist/components/icon/gator/templates/expand-arrows.js +1 -1
  147. package/dist/components/icon/gator/templates/expand.js +1 -1
  148. package/dist/components/icon/gator/templates/export.js +1 -1
  149. package/dist/components/icon/gator/templates/eye-closed.js +1 -1
  150. package/dist/components/icon/gator/templates/eye-crossed.js +1 -1
  151. package/dist/components/icon/gator/templates/eye.js +1 -1
  152. package/dist/components/icon/gator/templates/facebook-logo.js +1 -1
  153. package/dist/components/icon/gator/templates/file-code.js +1 -1
  154. package/dist/components/icon/gator/templates/files.js +1 -1
  155. package/dist/components/icon/gator/templates/filter-funnel.js +1 -1
  156. package/dist/components/icon/gator/templates/filters-2.js +1 -1
  157. package/dist/components/icon/gator/templates/filters.js +1 -1
  158. package/dist/components/icon/gator/templates/flags/flag-ad-andorra.js +1 -1
  159. package/dist/components/icon/gator/templates/flags/flag-ae-united-arab-emirates.js +1 -1
  160. package/dist/components/icon/gator/templates/flags/flag-af-afghanistan.js +1 -1
  161. package/dist/components/icon/gator/templates/flags/flag-ag-antigua-and-barbuda.js +1 -1
  162. package/dist/components/icon/gator/templates/flags/flag-ai-anguilla.js +1 -1
  163. package/dist/components/icon/gator/templates/flags/flag-al-albania.js +1 -1
  164. package/dist/components/icon/gator/templates/flags/flag-am-armenia.js +1 -1
  165. package/dist/components/icon/gator/templates/flags/flag-ao-angola.js +1 -1
  166. package/dist/components/icon/gator/templates/flags/flag-aq-antarctica.js +1 -1
  167. package/dist/components/icon/gator/templates/flags/flag-ar-argentina.js +1 -1
  168. package/dist/components/icon/gator/templates/flags/flag-as-american-smoa.js +1 -1
  169. package/dist/components/icon/gator/templates/flags/flag-at-austria.js +1 -1
  170. package/dist/components/icon/gator/templates/flags/flag-au-australia.js +1 -1
  171. package/dist/components/icon/gator/templates/flags/flag-aw-aruba.js +1 -1
  172. package/dist/components/icon/gator/templates/flags/flag-ax-aland-islands.js +1 -1
  173. package/dist/components/icon/gator/templates/flags/flag-az-azerbaijan.js +1 -1
  174. package/dist/components/icon/gator/templates/flags/flag-ba-bosnia-and-herzegovina.js +1 -1
  175. package/dist/components/icon/gator/templates/flags/flag-bb-barbados.js +1 -1
  176. package/dist/components/icon/gator/templates/flags/flag-bd-bangladesh.js +1 -1
  177. package/dist/components/icon/gator/templates/flags/flag-be-belgium.js +1 -1
  178. package/dist/components/icon/gator/templates/flags/flag-bf-burkina-faso.js +1 -1
  179. package/dist/components/icon/gator/templates/flags/flag-bg-bulgaria.js +1 -1
  180. package/dist/components/icon/gator/templates/flags/flag-bh-bahrain.js +1 -1
  181. package/dist/components/icon/gator/templates/flags/flag-bi-burundi.js +1 -1
  182. package/dist/components/icon/gator/templates/flags/flag-bj-benin.js +1 -1
  183. package/dist/components/icon/gator/templates/flags/flag-bl-saint-barthelemy.js +1 -1
  184. package/dist/components/icon/gator/templates/flags/flag-bm-bermuda.js +1 -1
  185. package/dist/components/icon/gator/templates/flags/flag-bn-brunei-darussalam.js +1 -1
  186. package/dist/components/icon/gator/templates/flags/flag-bo-bolivia.js +1 -1
  187. package/dist/components/icon/gator/templates/flags/flag-bq-bo-bonaire.js +1 -1
  188. package/dist/components/icon/gator/templates/flags/flag-bq-sa-sba.js +1 -1
  189. package/dist/components/icon/gator/templates/flags/flag-bq-se-snt-eustatius.js +1 -1
  190. package/dist/components/icon/gator/templates/flags/flag-br-brazil.js +1 -1
  191. package/dist/components/icon/gator/templates/flags/flag-bs-bahamas.js +1 -1
  192. package/dist/components/icon/gator/templates/flags/flag-bt-bhutan.js +1 -1
  193. package/dist/components/icon/gator/templates/flags/flag-bv-bouvet-island.js +1 -1
  194. package/dist/components/icon/gator/templates/flags/flag-bw-botswana.js +1 -1
  195. package/dist/components/icon/gator/templates/flags/flag-by-belarus.js +1 -1
  196. package/dist/components/icon/gator/templates/flags/flag-bz-belize.js +1 -1
  197. package/dist/components/icon/gator/templates/flags/flag-ca-canada.js +1 -1
  198. package/dist/components/icon/gator/templates/flags/flag-cc-cocos-keeling-islands.js +1 -1
  199. package/dist/components/icon/gator/templates/flags/flag-cd-democratic-republic-of-the-congo.js +1 -1
  200. package/dist/components/icon/gator/templates/flags/flag-cf-central-african-republic.js +1 -1
  201. package/dist/components/icon/gator/templates/flags/flag-cg-republic-of-the-congo.js +1 -1
  202. package/dist/components/icon/gator/templates/flags/flag-ch-switzerland.js +1 -1
  203. package/dist/components/icon/gator/templates/flags/flag-ci-c/303/264te-divoire-ivory-coast.js +1 -1
  204. package/dist/components/icon/gator/templates/flags/flag-ck-cook-islands.js +1 -1
  205. package/dist/components/icon/gator/templates/flags/flag-cl-chile.js +1 -1
  206. package/dist/components/icon/gator/templates/flags/flag-cm-cameroon.js +1 -1
  207. package/dist/components/icon/gator/templates/flags/flag-cn-china.js +1 -1
  208. package/dist/components/icon/gator/templates/flags/flag-co-colombia.js +1 -1
  209. package/dist/components/icon/gator/templates/flags/flag-cr-costa-rica.js +1 -1
  210. package/dist/components/icon/gator/templates/flags/flag-cu-cuba.js +1 -1
  211. package/dist/components/icon/gator/templates/flags/flag-cv-cabo-verde.js +1 -1
  212. package/dist/components/icon/gator/templates/flags/flag-cw-cura/303/247ao.js +1 -1
  213. package/dist/components/icon/gator/templates/flags/flag-cx-christmas-island.js +1 -1
  214. package/dist/components/icon/gator/templates/flags/flag-cy-cyprus.js +1 -1
  215. package/dist/components/icon/gator/templates/flags/flag-cz-czech-republic.js +1 -1
  216. package/dist/components/icon/gator/templates/flags/flag-de-germany.js +1 -1
  217. package/dist/components/icon/gator/templates/flags/flag-dj-djibouti.js +1 -1
  218. package/dist/components/icon/gator/templates/flags/flag-dk-denmark.js +1 -1
  219. package/dist/components/icon/gator/templates/flags/flag-dm-dominica.js +1 -1
  220. package/dist/components/icon/gator/templates/flags/flag-do-dominican-republic.js +1 -1
  221. package/dist/components/icon/gator/templates/flags/flag-dz-algeria.js +1 -1
  222. package/dist/components/icon/gator/templates/flags/flag-ec-ecuador.js +1 -1
  223. package/dist/components/icon/gator/templates/flags/flag-ee-estonia.js +1 -1
  224. package/dist/components/icon/gator/templates/flags/flag-eg-egypt.js +1 -1
  225. package/dist/components/icon/gator/templates/flags/flag-eh-western-sahara.js +1 -1
  226. package/dist/components/icon/gator/templates/flags/flag-er-eritrea.js +1 -1
  227. package/dist/components/icon/gator/templates/flags/flag-es-sain.js +1 -1
  228. package/dist/components/icon/gator/templates/flags/flag-et-ethiopia.js +1 -1
  229. package/dist/components/icon/gator/templates/flags/flag-fi-finland.js +1 -1
  230. package/dist/components/icon/gator/templates/flags/flag-fj-fiji.js +1 -1
  231. package/dist/components/icon/gator/templates/flags/flag-fk-falkland-islands.js +1 -1
  232. package/dist/components/icon/gator/templates/flags/flag-fm-federated-states-of-micronesia.js +1 -1
  233. package/dist/components/icon/gator/templates/flags/flag-fo-faroe-islands.js +1 -1
  234. package/dist/components/icon/gator/templates/flags/flag-fr-france.js +1 -1
  235. package/dist/components/icon/gator/templates/flags/flag-ga-gabon.js +1 -1
  236. package/dist/components/icon/gator/templates/flags/flag-gb-eng-england.js +1 -1
  237. package/dist/components/icon/gator/templates/flags/flag-gb-nir-northern-ireland.js +1 -1
  238. package/dist/components/icon/gator/templates/flags/flag-gb-sct-sotland.js +1 -1
  239. package/dist/components/icon/gator/templates/flags/flag-gb-ukm-united-kingdom.js +1 -1
  240. package/dist/components/icon/gator/templates/flags/flag-gb-wls-wales.js +1 -1
  241. package/dist/components/icon/gator/templates/flags/flag-gd-grenada.js +1 -1
  242. package/dist/components/icon/gator/templates/flags/flag-ge-georgia.js +1 -1
  243. package/dist/components/icon/gator/templates/flags/flag-gf-french-guiana.js +1 -1
  244. package/dist/components/icon/gator/templates/flags/flag-gg-guernsey.js +1 -1
  245. package/dist/components/icon/gator/templates/flags/flag-gh-ghana.js +1 -1
  246. package/dist/components/icon/gator/templates/flags/flag-gi-gibraltar.js +1 -1
  247. package/dist/components/icon/gator/templates/flags/flag-gl-greenland.js +1 -1
  248. package/dist/components/icon/gator/templates/flags/flag-gm-gambia.js +1 -1
  249. package/dist/components/icon/gator/templates/flags/flag-gn-guinea.js +1 -1
  250. package/dist/components/icon/gator/templates/flags/flag-gp-guadeloupe-2.js +1 -1
  251. package/dist/components/icon/gator/templates/flags/flag-gp-guadeloupe.js +1 -1
  252. package/dist/components/icon/gator/templates/flags/flag-gq-equatorial-guinea.js +1 -1
  253. package/dist/components/icon/gator/templates/flags/flag-gr-greece.js +1 -1
  254. package/dist/components/icon/gator/templates/flags/flag-gs-s-georgia-and-s-sandwich-islands.js +1 -1
  255. package/dist/components/icon/gator/templates/flags/flag-gt-guatemala.js +1 -1
  256. package/dist/components/icon/gator/templates/flags/flag-gu-guam.js +1 -1
  257. package/dist/components/icon/gator/templates/flags/flag-gw-guinea-bissau.js +1 -1
  258. package/dist/components/icon/gator/templates/flags/flag-gy-guyana.js +1 -1
  259. package/dist/components/icon/gator/templates/flags/flag-hk-hong-kong.js +1 -1
  260. package/dist/components/icon/gator/templates/flags/flag-hm-heard-and-mcdonald-islands.js +1 -1
  261. package/dist/components/icon/gator/templates/flags/flag-hn-honduras.js +1 -1
  262. package/dist/components/icon/gator/templates/flags/flag-hr-croatia-hrvatska.js +1 -1
  263. package/dist/components/icon/gator/templates/flags/flag-ht-haiti.js +1 -1
  264. package/dist/components/icon/gator/templates/flags/flag-hu-hungary.js +1 -1
  265. package/dist/components/icon/gator/templates/flags/flag-id-indonesia.js +1 -1
  266. package/dist/components/icon/gator/templates/flags/flag-ie-ireland.js +1 -1
  267. package/dist/components/icon/gator/templates/flags/flag-il-isreal.js +1 -1
  268. package/dist/components/icon/gator/templates/flags/flag-im-isle-of-man.js +1 -1
  269. package/dist/components/icon/gator/templates/flags/flag-in-india.js +1 -1
  270. package/dist/components/icon/gator/templates/flags/flag-io-british-indian-ocean-territory.js +1 -1
  271. package/dist/components/icon/gator/templates/flags/flag-iq-iraq.js +1 -1
  272. package/dist/components/icon/gator/templates/flags/flag-ir-iran.js +1 -1
  273. package/dist/components/icon/gator/templates/flags/flag-is-iceland.js +1 -1
  274. package/dist/components/icon/gator/templates/flags/flag-it-italy.js +1 -1
  275. package/dist/components/icon/gator/templates/flags/flag-je-jersey.js +1 -1
  276. package/dist/components/icon/gator/templates/flags/flag-jm-jamaica.js +1 -1
  277. package/dist/components/icon/gator/templates/flags/flag-jo-jordan.js +1 -1
  278. package/dist/components/icon/gator/templates/flags/flag-jp-japan.js +1 -1
  279. package/dist/components/icon/gator/templates/flags/flag-ke-kenia.js +1 -1
  280. package/dist/components/icon/gator/templates/flags/flag-kg-kyrgyzstan.js +1 -1
  281. package/dist/components/icon/gator/templates/flags/flag-kh-cambodia.js +1 -1
  282. package/dist/components/icon/gator/templates/flags/flag-ki--kiribati.js +1 -1
  283. package/dist/components/icon/gator/templates/flags/flag-km-comoros.js +1 -1
  284. package/dist/components/icon/gator/templates/flags/flag-kn-saint-kitts-and-nevis.js +1 -1
  285. package/dist/components/icon/gator/templates/flags/flag-kp-korea-north.js +1 -1
  286. package/dist/components/icon/gator/templates/flags/flag-kr-korea-south.js +1 -1
  287. package/dist/components/icon/gator/templates/flags/flag-kw-kuwait.js +1 -1
  288. package/dist/components/icon/gator/templates/flags/flag-ky-cayman-islands.js +1 -1
  289. package/dist/components/icon/gator/templates/flags/flag-kz-kazakhstan.js +1 -1
  290. package/dist/components/icon/gator/templates/flags/flag-la-laos.js +1 -1
  291. package/dist/components/icon/gator/templates/flags/flag-lb-lebanon.js +1 -1
  292. package/dist/components/icon/gator/templates/flags/flag-lc-saint-lucia.js +1 -1
  293. package/dist/components/icon/gator/templates/flags/flag-li-liechtenstein.js +1 -1
  294. package/dist/components/icon/gator/templates/flags/flag-lk-sri-lanka.js +1 -1
  295. package/dist/components/icon/gator/templates/flags/flag-lr-liberia.js +1 -1
  296. package/dist/components/icon/gator/templates/flags/flag-ls-lesotho.js +1 -1
  297. package/dist/components/icon/gator/templates/flags/flag-lt-lithuania.js +1 -1
  298. package/dist/components/icon/gator/templates/flags/flag-lu-luxembourg.js +1 -1
  299. package/dist/components/icon/gator/templates/flags/flag-lv-latvia.js +1 -1
  300. package/dist/components/icon/gator/templates/flags/flag-ly-libya.js +1 -1
  301. package/dist/components/icon/gator/templates/flags/flag-ma-morocco.js +1 -1
  302. package/dist/components/icon/gator/templates/flags/flag-mc-monaco.js +1 -1
  303. package/dist/components/icon/gator/templates/flags/flag-md-moldova.js +1 -1
  304. package/dist/components/icon/gator/templates/flags/flag-me-montenegro.js +1 -1
  305. package/dist/components/icon/gator/templates/flags/flag-mf-saint-martin.js +1 -1
  306. package/dist/components/icon/gator/templates/flags/flag-mg-madagascar.js +1 -1
  307. package/dist/components/icon/gator/templates/flags/flag-mh-marshall-islands.js +1 -1
  308. package/dist/components/icon/gator/templates/flags/flag-mk-north-macedonia.js +1 -1
  309. package/dist/components/icon/gator/templates/flags/flag-ml-mali.js +1 -1
  310. package/dist/components/icon/gator/templates/flags/flag-mm-myanmar.js +1 -1
  311. package/dist/components/icon/gator/templates/flags/flag-mn-mongolia.js +1 -1
  312. package/dist/components/icon/gator/templates/flags/flag-mo-macao.js +1 -1
  313. package/dist/components/icon/gator/templates/flags/flag-mp-northern-mariana-islands.js +1 -1
  314. package/dist/components/icon/gator/templates/flags/flag-mq-martinique-2.js +1 -1
  315. package/dist/components/icon/gator/templates/flags/flag-mq-martinique.js +1 -1
  316. package/dist/components/icon/gator/templates/flags/flag-mr-mauritania.js +1 -1
  317. package/dist/components/icon/gator/templates/flags/flag-ms-montserrat.js +1 -1
  318. package/dist/components/icon/gator/templates/flags/flag-mt-malta.js +1 -1
  319. package/dist/components/icon/gator/templates/flags/flag-mu-mauritius.js +1 -1
  320. package/dist/components/icon/gator/templates/flags/flag-mv-maldives.js +1 -1
  321. package/dist/components/icon/gator/templates/flags/flag-mw-malawi.js +1 -1
  322. package/dist/components/icon/gator/templates/flags/flag-mx-mexico.js +1 -1
  323. package/dist/components/icon/gator/templates/flags/flag-my-malaysia.js +1 -1
  324. package/dist/components/icon/gator/templates/flags/flag-mz-mozambique.js +1 -1
  325. package/dist/components/icon/gator/templates/flags/flag-na-namibia.js +1 -1
  326. package/dist/components/icon/gator/templates/flags/flag-nc-new-caledonia.js +1 -1
  327. package/dist/components/icon/gator/templates/flags/flag-ne-niger.js +1 -1
  328. package/dist/components/icon/gator/templates/flags/flag-nf-norfolk-island.js +1 -1
  329. package/dist/components/icon/gator/templates/flags/flag-ng-nigeria.js +1 -1
  330. package/dist/components/icon/gator/templates/flags/flag-ni-nicaragua.js +1 -1
  331. package/dist/components/icon/gator/templates/flags/flag-nl-netherlands.js +1 -1
  332. package/dist/components/icon/gator/templates/flags/flag-no-norway.js +1 -1
  333. package/dist/components/icon/gator/templates/flags/flag-np-nepal.js +1 -1
  334. package/dist/components/icon/gator/templates/flags/flag-nr-nauru.js +1 -1
  335. package/dist/components/icon/gator/templates/flags/flag-nu-niue.js +1 -1
  336. package/dist/components/icon/gator/templates/flags/flag-nz-new-zealand-aotearoa.js +1 -1
  337. package/dist/components/icon/gator/templates/flags/flag-om-oman.js +1 -1
  338. package/dist/components/icon/gator/templates/flags/flag-pa-panama.js +1 -1
  339. package/dist/components/icon/gator/templates/flags/flag-pe-peru.js +1 -1
  340. package/dist/components/icon/gator/templates/flags/flag-pf-french-polynesia.js +1 -1
  341. package/dist/components/icon/gator/templates/flags/flag-pg-papua-new-guinea.js +1 -1
  342. package/dist/components/icon/gator/templates/flags/flag-ph-philippines.js +1 -1
  343. package/dist/components/icon/gator/templates/flags/flag-pk-pakistan.js +1 -1
  344. package/dist/components/icon/gator/templates/flags/flag-pl-poland.js +1 -1
  345. package/dist/components/icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js +1 -1
  346. package/dist/components/icon/gator/templates/flags/flag-pm-st-pierre-and-miquelon.js +1 -1
  347. package/dist/components/icon/gator/templates/flags/flag-pn-pitcairn-islands.js +1 -1
  348. package/dist/components/icon/gator/templates/flags/flag-pr-puerto-rico.js +1 -1
  349. package/dist/components/icon/gator/templates/flags/flag-ps-palestinian-territory.js +1 -1
  350. package/dist/components/icon/gator/templates/flags/flag-pt-portugal.js +1 -1
  351. package/dist/components/icon/gator/templates/flags/flag-pw-palau.js +1 -1
  352. package/dist/components/icon/gator/templates/flags/flag-py-paraguay.js +1 -1
  353. package/dist/components/icon/gator/templates/flags/flag-qa-qatar.js +1 -1
  354. package/dist/components/icon/gator/templates/flags/flag-re-reunion.js +1 -1
  355. package/dist/components/icon/gator/templates/flags/flag-ro-romania.js +1 -1
  356. package/dist/components/icon/gator/templates/flags/flag-rs-srbia.js +1 -1
  357. package/dist/components/icon/gator/templates/flags/flag-ru-russian-federation.js +1 -1
  358. package/dist/components/icon/gator/templates/flags/flag-rw-rwanda.js +1 -1
  359. package/dist/components/icon/gator/templates/flags/flag-sa-sudi-arabia.js +1 -1
  360. package/dist/components/icon/gator/templates/flags/flag-sb-slomon-islands.js +1 -1
  361. package/dist/components/icon/gator/templates/flags/flag-sc-sychelles.js +1 -1
  362. package/dist/components/icon/gator/templates/flags/flag-sd-sdan.js +1 -1
  363. package/dist/components/icon/gator/templates/flags/flag-se-seden.js +1 -1
  364. package/dist/components/icon/gator/templates/flags/flag-sg-sngapore.js +1 -1
  365. package/dist/components/icon/gator/templates/flags/flag-sh-sint-helena.js +1 -1
  366. package/dist/components/icon/gator/templates/flags/flag-si-sovenia.js +1 -1
  367. package/dist/components/icon/gator/templates/flags/flag-sj-salbard-and-jan-mayen.js +1 -1
  368. package/dist/components/icon/gator/templates/flags/flag-sk-sovakia.js +1 -1
  369. package/dist/components/icon/gator/templates/flags/flag-sl-serra-leone.js +1 -1
  370. package/dist/components/icon/gator/templates/flags/flag-sm-sn-marino.js +1 -1
  371. package/dist/components/icon/gator/templates/flags/flag-sn-snegal.js +1 -1
  372. package/dist/components/icon/gator/templates/flags/flag-so-smalia.js +1 -1
  373. package/dist/components/icon/gator/templates/flags/flag-sr-sriname.js +1 -1
  374. package/dist/components/icon/gator/templates/flags/flag-ss-south-sudan.js +1 -1
  375. package/dist/components/icon/gator/templates/flags/flag-st-so-tome-and-principe.js +1 -1
  376. package/dist/components/icon/gator/templates/flags/flag-sv-el-slvador.js +1 -1
  377. package/dist/components/icon/gator/templates/flags/flag-sx-snt-maarten.js +1 -1
  378. package/dist/components/icon/gator/templates/flags/flag-sy-sria.js +1 -1
  379. package/dist/components/icon/gator/templates/flags/flag-sz-saziland.js +1 -1
  380. package/dist/components/icon/gator/templates/flags/flag-tc-turks-and-caicos-islands.js +1 -1
  381. package/dist/components/icon/gator/templates/flags/flag-td-chad.js +1 -1
  382. package/dist/components/icon/gator/templates/flags/flag-tf-french-southern-and-antarctic-lands.js +1 -1
  383. package/dist/components/icon/gator/templates/flags/flag-tg-togo.js +1 -1
  384. package/dist/components/icon/gator/templates/flags/flag-th-thailand.js +1 -1
  385. package/dist/components/icon/gator/templates/flags/flag-tj-tajikistan.js +1 -1
  386. package/dist/components/icon/gator/templates/flags/flag-tk-tokelau.js +1 -1
  387. package/dist/components/icon/gator/templates/flags/flag-tl-timor-leste.js +1 -1
  388. package/dist/components/icon/gator/templates/flags/flag-tm-turkmenistan.js +1 -1
  389. package/dist/components/icon/gator/templates/flags/flag-tn-tunisia.js +1 -1
  390. package/dist/components/icon/gator/templates/flags/flag-to-tonga.js +1 -1
  391. package/dist/components/icon/gator/templates/flags/flag-tr-turkey.js +1 -1
  392. package/dist/components/icon/gator/templates/flags/flag-tt-trinidad-and-tobago.js +1 -1
  393. package/dist/components/icon/gator/templates/flags/flag-tv-tuvalu.js +1 -1
  394. package/dist/components/icon/gator/templates/flags/flag-tw-taiwan.js +1 -1
  395. package/dist/components/icon/gator/templates/flags/flag-tz-tanzania.js +1 -1
  396. package/dist/components/icon/gator/templates/flags/flag-ua-ukraine.js +1 -1
  397. package/dist/components/icon/gator/templates/flags/flag-ug-uganda.js +1 -1
  398. package/dist/components/icon/gator/templates/flags/flag-um-united-states-minor-outlying-islands.js +1 -1
  399. package/dist/components/icon/gator/templates/flags/flag-us-united-states.js +1 -1
  400. package/dist/components/icon/gator/templates/flags/flag-uy-uruguay.js +1 -1
  401. package/dist/components/icon/gator/templates/flags/flag-uz-uzbekistan.js +1 -1
  402. package/dist/components/icon/gator/templates/flags/flag-va-vatican-city-state.js +1 -1
  403. package/dist/components/icon/gator/templates/flags/flag-vc-saint-vincent-and-the-grenadines.js +1 -1
  404. package/dist/components/icon/gator/templates/flags/flag-ve-venezuela.js +1 -1
  405. package/dist/components/icon/gator/templates/flags/flag-vg-virgin-islands-british.js +1 -1
  406. package/dist/components/icon/gator/templates/flags/flag-vi-virgin-islands-us.js +1 -1
  407. package/dist/components/icon/gator/templates/flags/flag-vn-vietnam.js +1 -1
  408. package/dist/components/icon/gator/templates/flags/flag-vu-vanuatu.js +1 -1
  409. package/dist/components/icon/gator/templates/flags/flag-wf-wallis-and-futuna.js +1 -1
  410. package/dist/components/icon/gator/templates/flags/flag-ws-smoa.js +1 -1
  411. package/dist/components/icon/gator/templates/flags/flag-ye-yemen.js +1 -1
  412. package/dist/components/icon/gator/templates/flags/flag-yt-unf-mayotte.js +1 -1
  413. package/dist/components/icon/gator/templates/flags/flag-za-south-africa.js +1 -1
  414. package/dist/components/icon/gator/templates/flags/flag-zm-zambia.js +1 -1
  415. package/dist/components/icon/gator/templates/flags/flag-zw-zimbabwe.js +1 -1
  416. package/dist/components/icon/gator/templates/flame.js +1 -1
  417. package/dist/components/icon/gator/templates/flash-off.js +1 -1
  418. package/dist/components/icon/gator/templates/flash-on.js +1 -1
  419. package/dist/components/icon/gator/templates/folder.js +1 -1
  420. package/dist/components/icon/gator/templates/gauge.js +1 -1
  421. package/dist/components/icon/gator/templates/grid-four.js +1 -1
  422. package/dist/components/icon/gator/templates/grid-nine.js +1 -1
  423. package/dist/components/icon/gator/templates/hammer.js +1 -1
  424. package/dist/components/icon/gator/templates/hand-pointing.js +1 -1
  425. package/dist/components/icon/gator/templates/heart.js +1 -1
  426. package/dist/components/icon/gator/templates/home-door.js +1 -1
  427. package/dist/components/icon/gator/templates/home-finance-arrow.js +1 -1
  428. package/dist/components/icon/gator/templates/home-finance.js +1 -1
  429. package/dist/components/icon/gator/templates/home-search.js +1 -1
  430. package/dist/components/icon/gator/templates/house-simple.js +1 -1
  431. package/dist/components/icon/gator/templates/house.js +1 -1
  432. package/dist/components/icon/gator/templates/inbox.js +1 -1
  433. package/dist/components/icon/gator/templates/index.js +1 -1
  434. package/dist/components/icon/gator/templates/info.js +1 -1
  435. package/dist/components/icon/gator/templates/instagram-logo.js +1 -1
  436. package/dist/components/icon/gator/templates/interest-rate.js +1 -1
  437. package/dist/components/icon/gator/templates/invoice.js +1 -1
  438. package/dist/components/icon/gator/templates/kanban.js +1 -1
  439. package/dist/components/icon/gator/templates/label.js +1 -1
  440. package/dist/components/icon/gator/templates/laptop.js +1 -1
  441. package/dist/components/icon/gator/templates/layout.js +1 -1
  442. package/dist/components/icon/gator/templates/lightbulb-filament.js +1 -1
  443. package/dist/components/icon/gator/templates/lightbulb.js +1 -1
  444. package/dist/components/icon/gator/templates/link.js +1 -1
  445. package/dist/components/icon/gator/templates/linkedin-logo.js +1 -1
  446. package/dist/components/icon/gator/templates/list-star.js +1 -1
  447. package/dist/components/icon/gator/templates/list.js +1 -1
  448. package/dist/components/icon/gator/templates/loading-spinner-gif.js +1 -1
  449. package/dist/components/icon/gator/templates/loading.js +1 -1
  450. package/dist/components/icon/gator/templates/lock.js +1 -1
  451. package/dist/components/icon/gator/templates/magic-wand.js +1 -1
  452. package/dist/components/icon/gator/templates/mail-open.js +1 -1
  453. package/dist/components/icon/gator/templates/mail.js +1 -1
  454. package/dist/components/icon/gator/templates/mailbox.js +1 -1
  455. package/dist/components/icon/gator/templates/map.js +1 -1
  456. package/dist/components/icon/gator/templates/menu-hamburger.js +1 -1
  457. package/dist/components/icon/gator/templates/microsoft-excel-logo.js +1 -1
  458. package/dist/components/icon/gator/templates/microsoft-outlook-logo.js +1 -1
  459. package/dist/components/icon/gator/templates/microsoft-powerpoint-logo.js +1 -1
  460. package/dist/components/icon/gator/templates/microsoft-teams-logo.js +1 -1
  461. package/dist/components/icon/gator/templates/microsoft-word-logo.js +1 -1
  462. package/dist/components/icon/gator/templates/minus-circle.js +1 -1
  463. package/dist/components/icon/gator/templates/minus-square.js +1 -1
  464. package/dist/components/icon/gator/templates/minus.js +1 -1
  465. package/dist/components/icon/gator/templates/mobile-phone-2.js +1 -1
  466. package/dist/components/icon/gator/templates/monitor.js +1 -1
  467. package/dist/components/icon/gator/templates/move-doc.js +1 -1
  468. package/dist/components/icon/gator/templates/move.js +1 -1
  469. package/dist/components/icon/gator/templates/music.js +1 -1
  470. package/dist/components/icon/gator/templates/number-0.js +1 -1
  471. package/dist/components/icon/gator/templates/number-1.js +1 -1
  472. package/dist/components/icon/gator/templates/number-10.js +1 -1
  473. package/dist/components/icon/gator/templates/number-2.js +1 -1
  474. package/dist/components/icon/gator/templates/number-3.js +1 -1
  475. package/dist/components/icon/gator/templates/number-4.js +1 -1
  476. package/dist/components/icon/gator/templates/number-5.js +1 -1
  477. package/dist/components/icon/gator/templates/number-6.js +1 -1
  478. package/dist/components/icon/gator/templates/number-7.js +1 -1
  479. package/dist/components/icon/gator/templates/number-8.js +1 -1
  480. package/dist/components/icon/gator/templates/number-9.js +1 -1
  481. package/dist/components/icon/gator/templates/overflow-menu.js +1 -1
  482. package/dist/components/icon/gator/templates/paper-airplane.js +1 -1
  483. package/dist/components/icon/gator/templates/paperclip.js +1 -1
  484. package/dist/components/icon/gator/templates/pause-circle.js +1 -1
  485. package/dist/components/icon/gator/templates/pause.js +1 -1
  486. package/dist/components/icon/gator/templates/payments/payment-amazon-pay.js +1 -1
  487. package/dist/components/icon/gator/templates/payments/payment-amex.js +1 -1
  488. package/dist/components/icon/gator/templates/payments/payment-apple-pay.js +1 -1
  489. package/dist/components/icon/gator/templates/payments/payment-discover.js +1 -1
  490. package/dist/components/icon/gator/templates/payments/payment-google-pay.js +1 -1
  491. package/dist/components/icon/gator/templates/payments/payment-mastercard.js +1 -1
  492. package/dist/components/icon/gator/templates/payments/payment-visa.js +1 -1
  493. package/dist/components/icon/gator/templates/pen.js +1 -1
  494. package/dist/components/icon/gator/templates/pencil-paper.js +1 -1
  495. package/dist/components/icon/gator/templates/pencil.js +1 -1
  496. package/dist/components/icon/gator/templates/people-multiple.js +1 -1
  497. package/dist/components/icon/gator/templates/people-share.js +1 -1
  498. package/dist/components/icon/gator/templates/percent.js +1 -1
  499. package/dist/components/icon/gator/templates/person-add.js +1 -1
  500. package/dist/components/icon/gator/templates/person-check.js +1 -1
  501. package/dist/components/icon/gator/templates/person-lock.js +1 -1
  502. package/dist/components/icon/gator/templates/person.js +1 -1
  503. package/dist/components/icon/gator/templates/phone-alert.js +1 -1
  504. package/dist/components/icon/gator/templates/phone-mobile.js +1 -1
  505. package/dist/components/icon/gator/templates/phone.js +1 -1
  506. package/dist/components/icon/gator/templates/picture.js +1 -1
  507. package/dist/components/icon/gator/templates/pin.js +1 -1
  508. package/dist/components/icon/gator/templates/pinterest-logo.js +1 -1
  509. package/dist/components/icon/gator/templates/play-circle.js +1 -1
  510. package/dist/components/icon/gator/templates/play.js +1 -1
  511. package/dist/components/icon/gator/templates/plugs-connected.js +1 -1
  512. package/dist/components/icon/gator/templates/plugs.js +1 -1
  513. package/dist/components/icon/gator/templates/plus-circle.js +1 -1
  514. package/dist/components/icon/gator/templates/plus.js +1 -1
  515. package/dist/components/icon/gator/templates/printer.js +1 -1
  516. package/dist/components/icon/gator/templates/question-chat-bubble.js +1 -1
  517. package/dist/components/icon/gator/templates/question-circle.js +1 -1
  518. package/dist/components/icon/gator/templates/question-mark.js +1 -1
  519. package/dist/components/icon/gator/templates/radio-selected.js +1 -1
  520. package/dist/components/icon/gator/templates/radio.js +1 -1
  521. package/dist/components/icon/gator/templates/receipt.js +1 -1
  522. package/dist/components/icon/gator/templates/restricted-filled.js +1 -1
  523. package/dist/components/icon/gator/templates/restricted.js +1 -1
  524. package/dist/components/icon/gator/templates/robot.js +1 -1
  525. package/dist/components/icon/gator/templates/sandals.js +1 -1
  526. package/dist/components/icon/gator/templates/save.js +1 -1
  527. package/dist/components/icon/gator/templates/screen.js +1 -1
  528. package/dist/components/icon/gator/templates/search.js +1 -1
  529. package/dist/components/icon/gator/templates/selection.js +1 -1
  530. package/dist/components/icon/gator/templates/send-filled.js +1 -1
  531. package/dist/components/icon/gator/templates/send.js +1 -1
  532. package/dist/components/icon/gator/templates/settings.js +1 -1
  533. package/dist/components/icon/gator/templates/share-1.js +1 -1
  534. package/dist/components/icon/gator/templates/share-2.js +1 -1
  535. package/dist/components/icon/gator/templates/shield-lock.js +1 -1
  536. package/dist/components/icon/gator/templates/shield-warning.js +1 -1
  537. package/dist/components/icon/gator/templates/sidebar-simple.js +1 -1
  538. package/dist/components/icon/gator/templates/sidebar.js +1 -1
  539. package/dist/components/icon/gator/templates/smart-home.js +1 -1
  540. package/dist/components/icon/gator/templates/sort-arrow-solid-down.js +1 -1
  541. package/dist/components/icon/gator/templates/sort-arrow-solid-left.js +1 -1
  542. package/dist/components/icon/gator/templates/sort-arrow-solid-right.js +1 -1
  543. package/dist/components/icon/gator/templates/sort-arrow-solid-up-down.js +1 -1
  544. package/dist/components/icon/gator/templates/sort-arrow-solid-up.js +1 -1
  545. package/dist/components/icon/gator/templates/sort-reverse-variant.js +1 -1
  546. package/dist/components/icon/gator/templates/sort-variant.js +1 -1
  547. package/dist/components/icon/gator/templates/sparkle-filled.js +1 -1
  548. package/dist/components/icon/gator/templates/sparkle.js +1 -1
  549. package/dist/components/icon/gator/templates/speech-bubble.js +1 -1
  550. package/dist/components/icon/gator/templates/square-split-horizontal.js +1 -1
  551. package/dist/components/icon/gator/templates/square-split-vertical.js +1 -1
  552. package/dist/components/icon/gator/templates/square.js +1 -1
  553. package/dist/components/icon/gator/templates/stack.js +1 -1
  554. package/dist/components/icon/gator/templates/stamp.js +1 -1
  555. package/dist/components/icon/gator/templates/star-four-filled.js +1 -1
  556. package/dist/components/icon/gator/templates/star-four.js +1 -1
  557. package/dist/components/icon/gator/templates/star.js +1 -1
  558. package/dist/components/icon/gator/templates/stopwatch.js +1 -1
  559. package/dist/components/icon/gator/templates/sun.js +1 -1
  560. package/dist/components/icon/gator/templates/sync.js +1 -1
  561. package/dist/components/icon/gator/templates/tab-arrows.js +1 -1
  562. package/dist/components/icon/gator/templates/table.js +1 -1
  563. package/dist/components/icon/gator/templates/target.js +1 -1
  564. package/dist/components/icon/gator/templates/text-aa.js +1 -1
  565. package/dist/components/icon/gator/templates/thumbs-down.js +1 -1
  566. package/dist/components/icon/gator/templates/thumbs-up.js +1 -1
  567. package/dist/components/icon/gator/templates/tools.js +1 -1
  568. package/dist/components/icon/gator/templates/touch-id.js +1 -1
  569. package/dist/components/icon/gator/templates/trash.js +1 -1
  570. package/dist/components/icon/gator/templates/trend-up.js +1 -1
  571. package/dist/components/icon/gator/templates/twitter-logo.js +1 -1
  572. package/dist/components/icon/gator/templates/unlink.js +1 -1
  573. package/dist/components/icon/gator/templates/unlock.js +1 -1
  574. package/dist/components/icon/gator/templates/upload.js +1 -1
  575. package/dist/components/icon/gator/templates/video.js +1 -1
  576. package/dist/components/icon/gator/templates/waffle.js +1 -1
  577. package/dist/components/icon/gator/templates/warning-circle.js +1 -1
  578. package/dist/components/icon/gator/templates/warning-diamond.js +1 -1
  579. package/dist/components/icon/gator/templates/warning-filled.js +1 -1
  580. package/dist/components/icon/gator/templates/warning-octagon.js +1 -1
  581. package/dist/components/icon/gator/templates/warning.js +1 -1
  582. package/dist/components/icon/gator/templates/wet-sign.js +1 -1
  583. package/dist/components/icon/gator/templates/wifi-off.js +1 -1
  584. package/dist/components/icon/gator/templates/wifi.js +1 -1
  585. package/dist/components/icon/gator/templates/x-logo.js +1 -1
  586. package/dist/components/icon/gator/templates/yelp-logo.js +1 -1
  587. package/dist/components/icon/gator/templates/youtube-logo.js +1 -1
  588. package/dist/components/icon/gator/templates/zillow-logo.js +1 -1
  589. package/dist/components/icon/icon.js +1 -1
  590. package/dist/components/icon/slds/icon.slds.js +1 -1
  591. package/dist/components/icon-button/gator/icon-button.gator.js +2 -2
  592. package/dist/components/illustration/gator/illustration.gator.js +1 -1
  593. package/dist/components/illustration/gator/templates/add-note.js +1 -1
  594. package/dist/components/illustration/gator/templates/address.js +1 -1
  595. package/dist/components/illustration/gator/templates/appointment-confirmed.js +1 -1
  596. package/dist/components/illustration/gator/templates/assets.js +1 -1
  597. package/dist/components/illustration/gator/templates/auto-money.js +1 -1
  598. package/dist/components/illustration/gator/templates/balloons.js +1 -1
  599. package/dist/components/illustration/gator/templates/bank-account.js +1 -1
  600. package/dist/components/illustration/gator/templates/brief-case.js +1 -1
  601. package/dist/components/illustration/gator/templates/calendar-home.js +1 -1
  602. package/dist/components/illustration/gator/templates/change-data.js +1 -1
  603. package/dist/components/illustration/gator/templates/check-with-pencil.js +1 -1
  604. package/dist/components/illustration/gator/templates/co-borrower.js +1 -1
  605. package/dist/components/illustration/gator/templates/co-borrowers-incomplete.js +1 -1
  606. package/dist/components/illustration/gator/templates/co-borrowers.js +1 -1
  607. package/dist/components/illustration/gator/templates/commercial.js +1 -1
  608. package/dist/components/illustration/gator/templates/condo.js +1 -1
  609. package/dist/components/illustration/gator/templates/connectivity.js +1 -1
  610. package/dist/components/illustration/gator/templates/consumer.js +1 -1
  611. package/dist/components/illustration/gator/templates/contact-search.js +1 -1
  612. package/dist/components/illustration/gator/templates/conversation-multiple.js +1 -1
  613. package/dist/components/illustration/gator/templates/credit-card.js +1 -1
  614. package/dist/components/illustration/gator/templates/crop-background.js +1 -1
  615. package/dist/components/illustration/gator/templates/crop-page.js +1 -1
  616. package/dist/components/illustration/gator/templates/declarations-legal.js +1 -1
  617. package/dist/components/illustration/gator/templates/deliver.js +1 -1
  618. package/dist/components/illustration/gator/templates/demographic-info.js +1 -1
  619. package/dist/components/illustration/gator/templates/document-add.js +1 -1
  620. package/dist/components/illustration/gator/templates/document-signature.js +1 -1
  621. package/dist/components/illustration/gator/templates/download-app.js +1 -1
  622. package/dist/components/illustration/gator/templates/empty-box.js +1 -1
  623. package/dist/components/illustration/gator/templates/family-home.js +1 -1
  624. package/dist/components/illustration/gator/templates/home-search.js +1 -1
  625. package/dist/components/illustration/gator/templates/house-5.js +1 -1
  626. package/dist/components/illustration/gator/templates/house-6.js +1 -1
  627. package/dist/components/illustration/gator/templates/house-fireworks.js +1 -1
  628. package/dist/components/illustration/gator/templates/house-under-construction.js +1 -1
  629. package/dist/components/illustration/gator/templates/house-with-shield.js +1 -1
  630. package/dist/components/illustration/gator/templates/inquiry.js +1 -1
  631. package/dist/components/illustration/gator/templates/locked.js +1 -1
  632. package/dist/components/illustration/gator/templates/make-an-offer.js +1 -1
  633. package/dist/components/illustration/gator/templates/mortgage.js +1 -1
  634. package/dist/components/illustration/gator/templates/network-error.js +1 -1
  635. package/dist/components/illustration/gator/templates/page-1.js +1 -1
  636. package/dist/components/illustration/gator/templates/page-2.js +1 -1
  637. package/dist/components/illustration/gator/templates/page-3.js +1 -1
  638. package/dist/components/illustration/gator/templates/paper-3.js +1 -1
  639. package/dist/components/illustration/gator/templates/paper-7.js +1 -1
  640. package/dist/components/illustration/gator/templates/person-2.js +1 -1
  641. package/dist/components/illustration/gator/templates/personal-info.js +1 -1
  642. package/dist/components/illustration/gator/templates/portfolio-analytics.js +1 -1
  643. package/dist/components/illustration/gator/templates/price-search.js +1 -1
  644. package/dist/components/illustration/gator/templates/quick-links.js +1 -1
  645. package/dist/components/illustration/gator/templates/register.js +1 -1
  646. package/dist/components/illustration/gator/templates/schedule-home-tour.js +1 -1
  647. package/dist/components/illustration/gator/templates/small-business.js +1 -1
  648. package/dist/components/illustration/gator/templates/social-security.js +1 -1
  649. package/dist/components/illustration/gator/templates/start-conversation.js +1 -1
  650. package/dist/components/illustration/gator/templates/status-no-x.js +1 -1
  651. package/dist/components/illustration/gator/templates/status.js +1 -1
  652. package/dist/components/illustration/gator/templates/success.js +1 -1
  653. package/dist/components/illustration/gator/templates/talkluments.js +1 -1
  654. package/dist/components/illustration/gator/templates/thumbs-down-man.js +1 -1
  655. package/dist/components/illustration/gator/templates/town-home.js +1 -1
  656. package/dist/components/illustration/gator/templates/transfer.js +1 -1
  657. package/dist/components/illustration/gator/templates/treasury.js +1 -1
  658. package/dist/components/illustration/gator/templates/unsecured-line-of-credit.js +1 -1
  659. package/dist/components/illustration/gator/templates/upload-cloud.js +1 -1
  660. package/dist/components/illustration/gator/templates/your-bank-placeholder.js +1 -1
  661. package/dist/components/illustration/gator/templates/your-bank.js +1 -1
  662. package/dist/components/image-card/gator/image-card.gator.js +1 -1
  663. package/dist/components/input/base/input-base.gator.js +3 -3
  664. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +1 -1
  665. package/dist/components/input/gator/help-text/help-text.gator.js +3 -3
  666. package/dist/components/input/gator/input-currency/input-currency.gator.js +2 -2
  667. package/dist/components/input/gator/input-date/input-date.gator.js +2 -2
  668. package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +1 -1
  669. package/dist/components/input/gator/input-file/input-file.gator.js +1 -1
  670. package/dist/components/input/gator/input-group/input-group.gator.js +1 -1
  671. package/dist/components/input/gator/input-label/input-label.gator.js +1 -1
  672. package/dist/components/input/gator/input-phone/input-phone.gator.js +1 -1
  673. package/dist/components/input/gator/input-search/input-search.gator.js +1 -1
  674. package/dist/components/input/gator/input-text/input-text.gator.js +1 -1
  675. package/dist/components/input/gator/input-textarea/input-textarea.gator.js +1 -1
  676. package/dist/components/input/gator/input-time/input-time.gator.js +1 -1
  677. package/dist/components/input/slds/input-error/input-error.slds.js +1 -1
  678. package/dist/components/input/slds/input-label/input-label.slds.js +2 -2
  679. package/dist/components/input/slds/input-text/input-text.slds.js +1 -1
  680. package/dist/components/input-rich-text/ckeditor-config.js +1 -1
  681. package/dist/components/input-rich-text/input-rich-text.js +1 -1
  682. package/dist/components/input-rich-text/input-rich-text.slds.js +2 -2
  683. package/dist/components/list/gator/list/list.gator.js +1 -1
  684. package/dist/components/list/gator/list-item/list-item.gator.js +1 -1
  685. package/dist/components/loading-spinner/gator/loading-spinner.gator.js +2 -2
  686. package/dist/components/loading-spinner/loading-spinner.js +1 -1
  687. package/dist/components/menu/base/gator/menu.gator.js +2 -2
  688. package/dist/components/menu/base/slds/menu.slds.js +2 -2
  689. package/dist/components/menu/menu-divider/menu-divider.js +1 -1
  690. package/dist/components/menu/menu-divider/menu-divider.slds.js +1 -1
  691. package/dist/components/menu/menu-item/gator/menu-item.gator.js +1 -1
  692. package/dist/components/menu/menu-item/menu-item.js +1 -1
  693. package/dist/components/menu/menu-item/slds/menu-item.slds.js +1 -1
  694. package/dist/components/menu/menu-submenu/menu-submenu.js +1 -1
  695. package/dist/components/menu/menu-submenu/menu-submenu.slds.js +1 -1
  696. package/dist/components/modal/gator/modal.gator.js +1 -1
  697. package/dist/components/modal/modal.js +1 -1
  698. package/dist/components/page-header/gator/page-header.gator.js +2 -2
  699. package/dist/components/panel/gator/panel.gator.js +2 -2
  700. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  701. package/dist/components/pill/pill.js +1 -1
  702. package/dist/components/pill/pill.slds.js +1 -1
  703. package/dist/components/popover/gator/popover.gator.js +1 -1
  704. package/dist/components/popover/popover.js +1 -1
  705. package/dist/components/progress-bar/gator/progress-bar.gator.js +1 -1
  706. package/dist/components/progress-ring/gator/progress-ring.gator.js +1 -1
  707. package/dist/components/progress-stepper/base/progress-stepper.gator.js +1 -1
  708. package/dist/components/progress-stepper/stepper-item/stepper-item.gator.js +1 -1
  709. package/dist/components/radio/radio.gator.js +1 -1
  710. package/dist/components/radio-group/radio-group.gator.js +1 -1
  711. package/dist/components/scoped-notification/scoped-notification.js +1 -1
  712. package/dist/components/scoped-notification/scoped-notification.slds.js +1 -1
  713. package/dist/components/selection-box/selection-box.gator.js +1 -1
  714. package/dist/components/selection-box-group/selection-box-group.gator.js +1 -1
  715. package/dist/components/selector/gator/selector.gator.js +2 -2
  716. package/dist/components/skeleton-loader/gator/skeleton-loader.gator.js +1 -1
  717. package/dist/components/skip-link/gator/base/skip-link.gator.js +2 -2
  718. package/dist/components/skip-link/gator/list-item/skip-link-list-item.gator.js +1 -1
  719. package/dist/components/switch/gator/switch.gator.js +1 -1
  720. package/dist/components/table/gator/__tests__/test-table-data.js +1 -1
  721. package/dist/components/table/gator/table-bulk-controls/table-bulk-controls.gator.js +1 -1
  722. package/dist/components/table/gator/table-cells/index.js +1 -0
  723. package/dist/components/table/gator/table-cells/table-cell-avatar.gator.js +5 -0
  724. package/dist/components/table/gator/table-cells/table-cell-base.gator.js +9 -0
  725. package/dist/components/table/gator/table-cells/table-cell-button.gator.js +7 -0
  726. package/dist/components/table/gator/table-cells/table-cell-checkbox.gator.js +7 -0
  727. package/dist/components/table/gator/table-cells/table-cell-chip.gator.js +3 -0
  728. package/dist/components/table/gator/table-cells/table-cell-icon-button.gator.js +23 -0
  729. package/dist/components/table/gator/table-cells/table-cell-input-dropdown.gator.js +10 -0
  730. package/dist/components/table/gator/table-cells/table-cell-input-text.gator.js +8 -0
  731. package/dist/components/table/gator/table-cells/table-cell-text-link.gator.js +3 -0
  732. package/dist/components/table/gator/table-cells/table-cell-text.gator.js +1 -0
  733. package/dist/components/table/gator/table-controls/table-controls.gator.js +1 -1
  734. package/dist/components/table/gator/table-pagination/table-pagination.gator.js +1 -1
  735. package/dist/components/table/gator/table.gator.js +135 -45
  736. package/dist/components/table/table-cell-config.js +1 -0
  737. package/dist/components/table/table-column-definition.js +1 -0
  738. package/dist/components/table/table-format-utils.js +1 -0
  739. package/dist/components/tabs/gator/tab/tab.gator.js +1 -1
  740. package/dist/components/tabs/gator/tabset/tabset.gator.js +1 -1
  741. package/dist/components/text-detail/gator/text-detail.gator.js +8 -8
  742. package/dist/components/text-link/gator/text-link.gator.js +2 -2
  743. package/dist/components/time-picker/gator/time-picker.gator.js +1 -1
  744. package/dist/components/toast/gator/base/toast.gator.js +2 -2
  745. package/dist/components/toast/gator/subtitle/toast-subtitle.gator.js +2 -2
  746. package/dist/components/toast/gator/title/toast-title.gator.js +2 -2
  747. package/dist/components/toast/toast.js +1 -1
  748. package/dist/components/toast-container/gator/toast-container.gator.js +4 -4
  749. package/dist/components/toaster/gator/toaster.gator.js +2 -2
  750. package/dist/components/tooltip/gator/tooltip.gator.js +1 -1
  751. package/dist/components/tooltip/slds/tooltip.slds.js +1 -1
  752. package/dist/components/tooltip/tooltip.js +1 -1
  753. package/dist/design-tokens.source.json +1 -0
  754. package/dist/generated/locale-codes.js +1 -0
  755. package/dist/generated/locales/es-419.js +10 -0
  756. package/dist/generated/locales/fr-CA.js +10 -0
  757. package/dist/generated/locales/zh-Hans.js +11 -0
  758. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-alignment@47.5.0 → @ckeditor_ckeditor5-alignment@47.6.0}/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +1 -1
  759. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@47.5.0 → @ckeditor_ckeditor5-autoformat@47.6.0}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
  760. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@47.5.0 → @ckeditor_ckeditor5-autosave@47.6.0}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
  761. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-basic-styles@47.5.0 → @ckeditor_ckeditor5-basic-styles@47.6.0}/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +1 -1
  762. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@47.5.0 → @ckeditor_ckeditor5-block-quote@47.6.0}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +1 -1
  763. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-clipboard@47.5.0 → @ckeditor_ckeditor5-clipboard@47.6.0}/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +1 -1
  764. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@47.5.0 → @ckeditor_ckeditor5-cloud-services@47.6.0}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +1 -1
  765. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-code-block@47.5.0 → @ckeditor_ckeditor5-code-block@47.6.0}/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +1 -1
  766. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-core@47.5.0 → @ckeditor_ckeditor5-core@47.6.0}/node_modules/@ckeditor/ckeditor5-core/dist/index.js +1 -1
  767. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-editor-classic@47.5.0 → @ckeditor_ckeditor5-editor-classic@47.6.0}/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +1 -1
  768. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-engine@47.5.0 → @ckeditor_ckeditor5-engine@47.6.0}/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +1 -1
  769. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@47.5.0 → @ckeditor_ckeditor5-enter@47.6.0}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
  770. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@47.5.0 → @ckeditor_ckeditor5-essentials@47.6.0}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
  771. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-find-and-replace@47.5.0 → @ckeditor_ckeditor5-find-and-replace@47.6.0}/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +1 -1
  772. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-font@47.5.0 → @ckeditor_ckeditor5-font@47.6.0}/node_modules/@ckeditor/ckeditor5-font/dist/index.js +1 -1
  773. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@47.5.0 → @ckeditor_ckeditor5-heading@47.6.0}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
  774. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-highlight@47.5.0 → @ckeditor_ckeditor5-highlight@47.6.0}/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +1 -1
  775. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-horizontal-line@47.5.0 → @ckeditor_ckeditor5-horizontal-line@47.6.0}/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +1 -1
  776. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-embed@47.5.0 → @ckeditor_ckeditor5-html-embed@47.6.0}/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +1 -1
  777. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@47.6.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +3 -0
  778. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-icons@47.5.0 → @ckeditor_ckeditor5-icons@47.6.0}/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +3 -3
  779. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-image@47.5.0 → @ckeditor_ckeditor5-image@47.6.0}/node_modules/@ckeditor/ckeditor5-image/dist/index.js +1 -1
  780. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@47.6.0/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +1 -0
  781. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@47.5.0 → @ckeditor_ckeditor5-language@47.6.0}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
  782. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@47.6.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js +1 -0
  783. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@47.6.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js +1 -0
  784. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@47.5.0 → @ckeditor_ckeditor5-markdown-gfm@47.6.0}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
  785. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-media-embed@47.5.0 → @ckeditor_ckeditor5-media-embed@47.6.0}/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +1 -1
  786. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@47.5.0 → @ckeditor_ckeditor5-mention@47.6.0}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
  787. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-page-break@47.5.0 → @ckeditor_ckeditor5-page-break@47.6.0}/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +1 -1
  788. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@47.5.0 → @ckeditor_ckeditor5-paragraph@47.6.0}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +1 -1
  789. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@47.6.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +1 -0
  790. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-remove-format@47.5.0 → @ckeditor_ckeditor5-remove-format@47.6.0}/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +1 -1
  791. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-select-all@47.5.0 → @ckeditor_ckeditor5-select-all@47.6.0}/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +1 -1
  792. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-show-blocks@47.5.0 → @ckeditor_ckeditor5-show-blocks@47.6.0}/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +1 -1
  793. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-source-editing@47.5.0 → @ckeditor_ckeditor5-source-editing@47.6.0}/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +1 -1
  794. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-special-characters@47.5.0 → @ckeditor_ckeditor5-special-characters@47.6.0}/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +1 -1
  795. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@47.5.0 → @ckeditor_ckeditor5-style@47.6.0}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
  796. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@47.6.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js +1 -0
  797. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-typing@47.5.0 → @ckeditor_ckeditor5-typing@47.6.0}/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +1 -1
  798. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-ui@47.5.0 → @ckeditor_ckeditor5-ui@47.6.0}/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +1 -1
  799. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@47.5.0 → @ckeditor_ckeditor5-undo@47.6.0}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +1 -1
  800. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@47.5.0 → @ckeditor_ckeditor5-upload@47.6.0}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
  801. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@47.6.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +8 -0
  802. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-widget@47.5.0 → @ckeditor_ckeditor5-widget@47.6.0}/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1 -1
  803. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.4/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
  804. package/dist/node_modules/.pnpm/{@floating-ui_dom@1.7.4 → @floating-ui_dom@1.7.5}/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
  805. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/default-msg.js +1 -1
  806. package/dist/node_modules/.pnpm/{@vitest_expect@4.0.15 → @vitest_expect@4.0.18}/node_modules/@vitest/expect/dist/index.js +1 -1
  807. package/dist/node_modules/.pnpm/{@vitest_pretty-format@4.0.15 → @vitest_pretty-format@4.0.18}/node_modules/@vitest/pretty-format/dist/index.js +4 -4
  808. package/dist/node_modules/.pnpm/{@vitest_runner@4.0.15 → @vitest_runner@4.0.18}/node_modules/@vitest/runner/dist/chunk-tasks.js +1 -1
  809. package/dist/node_modules/.pnpm/@vitest_runner@4.0.18/node_modules/@vitest/runner/dist/index.js +9 -0
  810. package/dist/node_modules/.pnpm/{@vitest_snapshot@4.0.15 → @vitest_snapshot@4.0.18}/node_modules/@vitest/snapshot/dist/index.js +1 -1
  811. package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/diff.js +42 -0
  812. package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/display.js +2 -0
  813. package/dist/node_modules/.pnpm/axe-core@4.11.1/node_modules/axe-core/axe.js +20 -0
  814. package/dist/node_modules/.pnpm/{chai@6.2.1 → chai@6.2.2}/node_modules/chai/index.js +1 -1
  815. package/dist/node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/pick.js +1 -0
  816. package/dist/node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isNil.js +1 -0
  817. package/dist/node_modules/.pnpm/hast-util-minify-whitespace@1.0.1/node_modules/hast-util-minify-whitespace/lib/index.js +1 -1
  818. package/dist/node_modules/.pnpm/hast-util-phrasing@3.0.1/node_modules/hast-util-phrasing/lib/index.js +1 -1
  819. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/format.js +1 -0
  820. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +2 -2
  821. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/metadata.min.json.js +1 -0
  822. package/dist/node_modules/.pnpm/{lit-element@4.2.1 → lit-element@4.2.2}/node_modules/lit-element/lit-element.js +1 -1
  823. package/dist/node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directive-helpers.js +1 -0
  824. package/dist/node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/class-map.js +1 -0
  825. package/dist/node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/live.js +1 -0
  826. package/dist/node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/repeat.js +1 -0
  827. package/dist/node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js +3 -0
  828. package/dist/node_modules/.pnpm/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown/lib/index.js +1 -0
  829. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.js +1 -1
  830. package/dist/node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.js +1 -1
  831. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.js +1 -1
  832. package/dist/node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.js +1 -1
  833. package/dist/node_modules/.pnpm/{storybook@10.2.8_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/test/index.js +3 -3
  834. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/entrypoints/hex.js +1 -1
  835. package/dist/node_modules/.pnpm/{vitest@4.0.15_@types_node@24.10.1_@vitest_browser-playwright@4.0.15_@vitest_ui@4.0.15_j_de8744cadc3bcf01c58195dfa0e650cb → vitest@4.0.18_@types_node@24.10.13_@vitest_browser-playwright@4.0.18_@vitest_ui@4.0.18__cf0e1d2cbbe808e71fa49297d0a4a6dd}/node_modules/vitest/dist/chunks/vi.2VT5v0um.js +1 -1
  836. package/dist/packages/web-components/src/components/popover/gator/popover.gator.scss.js +1 -1
  837. package/dist/packages/web-components/src/components/table/gator/table.gator.scss.js +1 -1
  838. package/dist/types/components/icon/gator/templates/arrows-down-up.d.ts +1 -0
  839. package/dist/types/components/icon/gator/templates/index.d.ts +1 -0
  840. package/dist/types/components/popover/popover.d.ts +2 -0
  841. package/dist/types/components/table/gator/__tests__/test-table-data.d.ts +27 -0
  842. package/dist/types/components/table/gator/table-cells/index.d.ts +0 -0
  843. package/dist/types/components/table/gator/table-cells/table-cell-avatar.gator.d.ts +4 -0
  844. package/dist/types/components/table/gator/table-cells/table-cell-base.gator.d.ts +22 -0
  845. package/dist/types/components/table/gator/table-cells/table-cell-button.gator.d.ts +4 -0
  846. package/dist/types/components/table/gator/table-cells/table-cell-checkbox.gator.d.ts +4 -0
  847. package/dist/types/components/table/gator/table-cells/table-cell-chip.gator.d.ts +4 -0
  848. package/dist/types/components/table/gator/table-cells/table-cell-icon-button.gator.d.ts +5 -0
  849. package/dist/types/components/table/gator/table-cells/table-cell-input-dropdown.gator.d.ts +4 -0
  850. package/dist/types/components/table/gator/table-cells/table-cell-input-text.gator.d.ts +4 -0
  851. package/dist/types/components/table/gator/table-cells/table-cell-text-link.gator.d.ts +4 -0
  852. package/dist/types/components/table/gator/table-cells/table-cell-text.gator.d.ts +4 -0
  853. package/dist/types/components/table/gator/table.gator.d.ts +36 -5
  854. package/dist/types/components/table/table-cell-config.d.ts +56 -0
  855. package/dist/types/components/table/table-column-definition.d.ts +56 -0
  856. package/dist/types/components/table/table-format-utils.d.ts +3 -0
  857. package/dist/types/components/table/table.d.ts +2 -11
  858. package/dist/types/generated/locale-codes.d.ts +13 -0
  859. package/dist/types/generated/locales/es-419.d.ts +65 -0
  860. package/dist/types/generated/locales/fr-CA.d.ts +65 -0
  861. package/dist/types/generated/locales/zh-Hans.d.ts +65 -0
  862. package/dist/utils/components/gradient-background.js +1 -1
  863. package/dist/utils/components/illustration-list/illustration-list.gator.js +1 -1
  864. package/dist/utils/components/ngc-component.js +1 -1
  865. package/dist/utils/components/slot-placeholder/slot-placeholder.js +1 -1
  866. package/dist/utils/components/testable-lit-element/testable-lit-element.js +1 -1
  867. package/dist/utils/mixins/interactive-component.js +1 -1
  868. package/dist/utils/vitest-a11y-utils.js +1 -1
  869. package/package.json +37 -43
  870. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@47.5.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +0 -3
  871. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@47.5.0/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +0 -1
  872. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@47.5.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js +0 -1
  873. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@47.5.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js +0 -1
  874. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@47.5.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +0 -1
  875. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@47.5.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js +0 -1
  876. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@47.5.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +0 -8
  877. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -1
  878. package/dist/node_modules/.pnpm/@vitest_runner@4.0.15/node_modules/@vitest/runner/dist/index.js +0 -4
  879. package/dist/node_modules/.pnpm/@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/diff.js +0 -42
  880. package/dist/node_modules/.pnpm/@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/display.js +0 -2
  881. package/dist/node_modules/.pnpm/axe-core@4.11.0/node_modules/axe-core/axe.js +0 -20
  882. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/format.js +0 -1
  883. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js +0 -1
  884. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive-helpers.js +0 -1
  885. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js +0 -1
  886. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/live.js +0 -1
  887. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/repeat.js +0 -1
  888. package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js +0 -3
  889. package/dist/node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/lib/index.js +0 -1
  890. /package/dist/assets/node_modules/.pnpm/{ckeditor5@47.5.0 → ckeditor5@47.6.0}/node_modules/ckeditor5/dist/ckeditor5.css +0 -0
  891. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@47.5.0 → @ckeditor_ckeditor5-watchdog@47.6.0}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +0 -0
  892. /package/dist/node_modules/.pnpm/{@vitest_spy@4.0.15 → @vitest_spy@4.0.18}/node_modules/@vitest/spy/dist/index.js +0 -0
  893. /package/dist/node_modules/.pnpm/{@vitest_utils@4.0.15 → @vitest_utils@4.0.18}/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +0 -0
  894. /package/dist/node_modules/.pnpm/{@vitest_utils@4.0.15 → @vitest_utils@4.0.18}/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +0 -0
  895. /package/dist/node_modules/.pnpm/{@vitest_utils@4.0.15 → @vitest_utils@4.0.18}/node_modules/@vitest/utils/dist/error.js +0 -0
  896. /package/dist/node_modules/.pnpm/{@vitest_utils@4.0.15 → @vitest_utils@4.0.18}/node_modules/@vitest/utils/dist/helpers.js +0 -0
  897. /package/dist/node_modules/.pnpm/{@vitest_utils@4.0.15 → @vitest_utils@4.0.18}/node_modules/@vitest/utils/dist/serialize.js +0 -0
  898. /package/dist/node_modules/.pnpm/{@vitest_utils@4.0.15 → @vitest_utils@4.0.18}/node_modules/@vitest/utils/dist/source-map.js +0 -0
  899. /package/dist/node_modules/.pnpm/{@vitest_utils@4.0.15 → @vitest_utils@4.0.18}/node_modules/@vitest/utils/dist/timers.js +0 -0
  900. /package/dist/node_modules/.pnpm/{decode-named-character-reference@1.2.0 → decode-named-character-reference@1.3.0}/node_modules/decode-named-character-reference/index.dom.js +0 -0
  901. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/ParseError.js +0 -0
  902. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/PhoneNumber.js +0 -0
  903. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/constants.js +0 -0
  904. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -0
  905. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -0
  906. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -0
  907. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -0
  908. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -0
  909. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -0
  910. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -0
  911. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +0 -0
  912. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -0
  913. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -0
  914. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +0 -0
  915. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -0
  916. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -0
  917. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +0 -0
  918. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -0
  919. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -0
  920. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/isObject.js +0 -0
  921. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -0
  922. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -0
  923. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +0 -0
  924. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -0
  925. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/isPossible.js +0 -0
  926. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/isValid.js +0 -0
  927. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/metadata.js +0 -0
  928. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/normalizeArguments.js +0 -0
  929. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/parse.js +0 -0
  930. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -0
  931. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +0 -0
  932. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +0 -0
  933. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +0 -0
  934. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/es6/tools/semver-compare.js +0 -0
  935. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +0 -0
  936. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.31 → libphonenumber-js@1.12.37}/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +0 -0
  937. /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/async-directive.js +0 -0
  938. /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directive.js +0 -0
  939. /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directives/if-defined.js +0 -0
  940. /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directives/ref.js +0 -0
  941. /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directives/unsafe-html.js +0 -0
  942. /package/dist/node_modules/.pnpm/{storybook@10.2.8_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/_browser-chunks/chunk-3LY4VQVK.js +0 -0
  943. /package/dist/node_modules/.pnpm/{storybook@10.2.8_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/_browser-chunks/chunk-A242L54C.js +0 -0
  944. /package/dist/node_modules/.pnpm/{storybook@10.2.8_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/_browser-chunks/chunk-Q5RYDXT3.js +0 -0
  945. /package/dist/node_modules/.pnpm/{storybook@10.2.8_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/_browser-chunks/chunk-VIJ7SQRO.js +0 -0
  946. /package/dist/node_modules/.pnpm/{storybook@10.2.8_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/_browser-chunks/chunk-ZUWEVLDX.js +0 -0
  947. /package/dist/node_modules/.pnpm/{storybook@10.2.8_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/client-logger/index.js +0 -0
  948. /package/dist/node_modules/.pnpm/{storybook@10.2.8_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/core-events/index.js +0 -0
  949. /package/dist/node_modules/.pnpm/{storybook@10.2.8_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/instrumenter/index.js +0 -0
  950. /package/dist/node_modules/.pnpm/{vitest@4.0.15_@types_node@24.10.1_@vitest_browser-playwright@4.0.15_@vitest_ui@4.0.15_j_de8744cadc3bcf01c58195dfa0e650cb → vitest@4.0.18_@types_node@24.10.13_@vitest_browser-playwright@4.0.18_@vitest_ui@4.0.18__cf0e1d2cbbe808e71fa49297d0a4a6dd}/node_modules/vitest/browser/context.js +0 -0
  951. /package/dist/node_modules/.pnpm/{vitest@4.0.15_@types_node@24.10.1_@vitest_browser-playwright@4.0.15_@vitest_ui@4.0.15_j_de8744cadc3bcf01c58195dfa0e650cb → vitest@4.0.18_@types_node@24.10.13_@vitest_browser-playwright@4.0.18_@vitest_ui@4.0.18__cf0e1d2cbbe808e71fa49297d0a4a6dd}/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +0 -0
  952. /package/dist/node_modules/.pnpm/{vitest@4.0.15_@types_node@24.10.1_@vitest_browser-playwright@4.0.15_@vitest_ui@4.0.15_j_de8744cadc3bcf01c58195dfa0e650cb → vitest@4.0.18_@types_node@24.10.13_@vitest_browser-playwright@4.0.18_@vitest_ui@4.0.18__cf0e1d2cbbe808e71fa49297d0a4a6dd}/node_modules/vitest/dist/chunks/utils.DvEY5TfP.js +0 -0
  953. /package/dist/packages/styles/{src → dist}/gator/tokens/primitive.tokens.css.js +0 -0
  954. /package/dist/packages/styles/{src → dist}/gator/tokens/semantic.tokens.css.js +0 -0
@@ -1 +1 @@
1
- import{Plugin as u,Command as _}from"../../../../../@ckeditor_ckeditor5-core@47.5.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{transformOperationSets as B,NoOperation as b}from"../../../../../@ckeditor_ckeditor5-engine@47.5.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ButtonView as y,MenuBarMenuListItemButtonView as R}from"../../../../../@ckeditor_ckeditor5-ui@47.5.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconUndo as f,IconRedo as p}from"../../../../../@ckeditor_ckeditor5-icons@47.5.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";class g extends _{_stack=[];_createdBatches=new WeakSet;constructor(t){super(t),this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(e,o)=>{o[1]={...o[1]};const s=o[1];s.batchType||(s.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(e,o)=>{o[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,o={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:o}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,o){const s=this.editor.model,i=s.document,n=[],d=t.map(r=>r.getTransformedByOperations(o)),h=d.flat();for(const r of d){const l=r.filter(c=>c.root!=i.graveyard).filter(c=>!C(c,h));l.length&&(k(l),n.push(l[0]))}n.length&&s.change(r=>{r.setSelection(n,{backward:e})})}_undo(t,e){const o=this.editor.model,s=o.document;this._createdBatches.add(e);const i=t.operations.slice().filter(n=>n.isDocumentOperation);i.reverse();for(const n of i){const d=n.baseVersion+1,h=Array.from(s.history.getOperations(d)),l=B([n.getReversed()],h,{useRelations:!0,document:this.editor.model.document,forceWeakRemove:!0}).operationsA;for(let c of l){const m=c.affectedSelectable;m&&!o.canEditAt(m)&&(c=new b(c.baseVersion)),e.addOperation(c),o.applyOperation(c),s.history.setOperationAsUndone(n,c)}}}}function k(a){a.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;t<a.length;t++){const o=a[t-1].getJoined(a[t],!0);o&&(t--,a.splice(t,2,o))}}function C(a,t){return t.some(e=>e!==a&&e.containsRange(a,!0))}class T extends g{execute(t=null){const e=t?this._stack.findIndex(i=>i.batch==t):this._stack.length-1,o=this._stack.splice(e,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,()=>{this._undo(o.batch,s);const i=this.editor.model.document.history.getOperations(o.batch.baseVersion);this._restoreSelection(o.selection.ranges,o.selection.isBackward,i)}),this.fire("revert",o.batch,s),this.refresh()}}class U extends g{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const s=t.batch.operations[t.batch.operations.length-1].baseVersion+1,i=this.editor.model.document.history.getOperations(s);this._restoreSelection(t.selection.ranges,t.selection.isBackward,i),this._undo(t.batch,e)}),this.fire("revert",t.batch,e),this.refresh()}}class O extends u{_undoCommand;_redoCommand;_batchRegistry=new WeakSet;static get pluginName(){return"UndoEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.t;this._undoCommand=new T(t),this._redoCommand=new U(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(o,s)=>{const i=s[0];if(!i.isDocumentOperation)return;const n=i.batch,d=this._redoCommand.createdBatches.has(n),h=this._undoCommand.createdBatches.has(n);this._batchRegistry.has(n)||(this._batchRegistry.add(n),n.isUndoable&&(d?this._undoCommand.addBatch(n):h||(this._undoCommand.addBatch(n),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(o,s,i)=>{this._redoCommand.addBatch(i)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Undo"),keystroke:"CTRL+Z"},{label:e("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class w extends u{static get pluginName(){return"UndoUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale,o=t.t,s=e.uiLanguageDirection=="ltr"?f:p,i=e.uiLanguageDirection=="ltr"?p:f;this._addButtonsToFactory("undo",o("Undo"),"CTRL+Z",s),this._addButtonsToFactory("redo",o("Redo"),"CTRL+Y",i)}_addButtonsToFactory(t,e,o,s){const i=this.editor;i.ui.componentFactory.add(t,()=>{const n=this._createButton(y,t,e,o,s);return n.set({tooltip:!0}),n}),i.ui.componentFactory.add("menuBar:"+t,()=>this._createButton(R,t,e,o,s))}_createButton(t,e,o,s,i){const n=this.editor,d=n.locale,h=n.commands.get(e),r=new t(d);return r.set({label:o,icon:i,keystroke:s}),r.bind("isEnabled").to(h,"isEnabled"),this.listenTo(r,"execute",()=>{n.execute(e),n.editing.view.focus()}),r}}class L extends u{static get requires(){return[O,w]}static get pluginName(){return"Undo"}static get isOfficialPlugin(){return!0}}export{U as RedoCommand,L as Undo,T as UndoCommand,O as UndoEditing,g as UndoRedoBaseCommand,w as UndoUI};
1
+ import{Plugin as u,Command as _}from"../../../../../@ckeditor_ckeditor5-core@47.6.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{transformOperationSets as B,NoOperation as b}from"../../../../../@ckeditor_ckeditor5-engine@47.6.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ButtonView as y,MenuBarMenuListItemButtonView as R}from"../../../../../@ckeditor_ckeditor5-ui@47.6.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconUndo as f,IconRedo as p}from"../../../../../@ckeditor_ckeditor5-icons@47.6.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";class g extends _{_stack=[];_createdBatches=new WeakSet;constructor(t){super(t),this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(e,o)=>{o[1]={...o[1]};const s=o[1];s.batchType||(s.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(e,o)=>{o[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,o={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:o}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,o){const s=this.editor.model,i=s.document,n=[],d=t.map(r=>r.getTransformedByOperations(o)),h=d.flat();for(const r of d){const l=r.filter(c=>c.root!=i.graveyard).filter(c=>!C(c,h));l.length&&(k(l),n.push(l[0]))}n.length&&s.change(r=>{r.setSelection(n,{backward:e})})}_undo(t,e){const o=this.editor.model,s=o.document;this._createdBatches.add(e);const i=t.operations.slice().filter(n=>n.isDocumentOperation);i.reverse();for(const n of i){const d=n.baseVersion+1,h=Array.from(s.history.getOperations(d)),l=B([n.getReversed()],h,{useRelations:!0,document:this.editor.model.document,forceWeakRemove:!0}).operationsA;for(let c of l){const m=c.affectedSelectable;m&&!o.canEditAt(m)&&(c=new b(c.baseVersion)),e.addOperation(c),o.applyOperation(c),s.history.setOperationAsUndone(n,c)}}}}function k(a){a.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;t<a.length;t++){const o=a[t-1].getJoined(a[t],!0);o&&(t--,a.splice(t,2,o))}}function C(a,t){return t.some(e=>e!==a&&e.containsRange(a,!0))}class T extends g{execute(t=null){const e=t?this._stack.findIndex(i=>i.batch==t):this._stack.length-1,o=this._stack.splice(e,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,()=>{this._undo(o.batch,s);const i=this.editor.model.document.history.getOperations(o.batch.baseVersion);this._restoreSelection(o.selection.ranges,o.selection.isBackward,i)}),this.fire("revert",o.batch,s),this.refresh()}}class U extends g{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const s=t.batch.operations[t.batch.operations.length-1].baseVersion+1,i=this.editor.model.document.history.getOperations(s);this._restoreSelection(t.selection.ranges,t.selection.isBackward,i),this._undo(t.batch,e)}),this.fire("revert",t.batch,e),this.refresh()}}class O extends u{_undoCommand;_redoCommand;_batchRegistry=new WeakSet;static get pluginName(){return"UndoEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.t;this._undoCommand=new T(t),this._redoCommand=new U(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(o,s)=>{const i=s[0];if(!i.isDocumentOperation)return;const n=i.batch,d=this._redoCommand.createdBatches.has(n),h=this._undoCommand.createdBatches.has(n);this._batchRegistry.has(n)||(this._batchRegistry.add(n),n.isUndoable&&(d?this._undoCommand.addBatch(n):h||(this._undoCommand.addBatch(n),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(o,s,i)=>{this._redoCommand.addBatch(i)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Undo"),keystroke:"CTRL+Z"},{label:e("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class w extends u{static get pluginName(){return"UndoUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale,o=t.t,s=e.uiLanguageDirection=="ltr"?f:p,i=e.uiLanguageDirection=="ltr"?p:f;this._addButtonsToFactory("undo",o("Undo"),"CTRL+Z",s),this._addButtonsToFactory("redo",o("Redo"),"CTRL+Y",i)}_addButtonsToFactory(t,e,o,s){const i=this.editor;i.ui.componentFactory.add(t,()=>{const n=this._createButton(y,t,e,o,s);return n.set({tooltip:!0}),n}),i.ui.componentFactory.add("menuBar:"+t,()=>this._createButton(R,t,e,o,s))}_createButton(t,e,o,s,i){const n=this.editor,d=n.locale,h=n.commands.get(e),r=new t(d);return r.set({label:o,icon:i,keystroke:s}),r.bind("isEnabled").to(h,"isEnabled"),this.listenTo(r,"execute",()=>{n.execute(e),n.editing.view.focus()}),r}}class L extends u{static get requires(){return[O,w]}static get pluginName(){return"Undo"}static get isOfficialPlugin(){return!0}}export{U as RedoCommand,L as Undo,T as UndoCommand,O as UndoEditing,g as UndoRedoBaseCommand,w as UndoUI};
@@ -1 +1 @@
1
- import{Plugin as h,PendingActions as o}from"../../../../../@ckeditor_ckeditor5-core@47.5.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Collection as p,logWarning as c,ObservableMixin as u,uid as g,CKEditorError as d}from"../../../../../@ckeditor_ckeditor5-utils@47.5.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";class _ extends u(){total;_reader;_data;constructor(){super();const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=t=>{this.loaded=t.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise((r,s)=>{t.onload=()=>{const i=t.result;this._data=i,r(i)},t.onerror=()=>{s("error")},t.onabort=()=>{s("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}class n extends h{loaders=new p;_loadersMap=new Map;_pendingAction=null;static get pluginName(){return"FileRepository"}static get isOfficialPlugin(){return!0}static get requires(){return[o]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0)}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return c("filerepository-no-upload-adapter"),null;const t=new l(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then(r=>{this._loadersMap.set(r,t)}).catch(()=>{}),t.on("change:uploaded",()=>{let r=0;for(const s of this.loaders)r+=s.uploaded;this.uploaded=r}),t.on("change:uploadTotal",()=>{let r=0;for(const s of this.loaders)s.uploadTotal&&(r+=s.uploadTotal);this.uploadTotal=r}),t}destroyLoader(e){const t=e instanceof l?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((r,s)=>{r===t&&this._loadersMap.delete(s)})}_updatePendingAction(){const e=this.editor.plugins.get(o);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,r=s=>`${t("Upload in progress")} ${parseInt(s)}%.`;this._pendingAction=e.add(r(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",r)}}else e.remove(this._pendingAction),this._pendingAction=null}}class l extends u(){id;_filePromiseWrapper;_adapter;_reader;constructor(e,t){super(),this.id=g(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new _,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,s)=>s?r/s*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(e=>this._filePromiseWrapper?e:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if(this.status!="idle")throw new d("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(e=>this._reader.read(e)).then(e=>{if(this.status!=="reading")throw this.status;return this.status="idle",e}).catch(e=>{throw e==="aborted"?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:e)})}upload(){if(this.status!="idle")throw new d("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(e=>(this.uploadResponse=e,this.status="idle",e)).catch(e=>{throw this.status==="aborted"?"aborted":(this.status="error",e)})}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?e=="reading"?this._reader.abort():e=="uploading"&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise((r,s)=>{t.rejecter=s,t.isFulfilled=!1,e.then(i=>{t.isFulfilled=!0,r(i)}).catch(i=>{t.isFulfilled=!0,s(i)})}),t}}class P extends h{static get requires(){return[n]}static get pluginName(){return"Base64UploadAdapter"}static get licenseFeatureCode(){return"B64A"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){this.editor.plugins.get(n).createUploadAdapter=e=>new f(e)}}let f=class{loader;reader;constructor(e){this.loader=e}upload(){return new Promise((e,t)=>{const r=this.reader=new window.FileReader;r.addEventListener("load",()=>{e({default:r.result})}),r.addEventListener("error",s=>{t(s)}),r.addEventListener("abort",()=>{t()}),this.loader.file.then(s=>{r.readAsDataURL(s)})})}abort(){this.reader.abort()}};export{P as Base64UploadAdapter,_ as FileReader,n as FileRepository};
1
+ import{Plugin as h,PendingActions as o}from"../../../../../@ckeditor_ckeditor5-core@47.6.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Collection as p,logWarning as c,ObservableMixin as u,uid as g,CKEditorError as d}from"../../../../../@ckeditor_ckeditor5-utils@47.6.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";class _ extends u(){total;_reader;_data;constructor(){super();const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=t=>{this.loaded=t.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise((r,s)=>{t.onload=()=>{const i=t.result;this._data=i,r(i)},t.onerror=()=>{s("error")},t.onabort=()=>{s("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}class n extends h{loaders=new p;_loadersMap=new Map;_pendingAction=null;static get pluginName(){return"FileRepository"}static get isOfficialPlugin(){return!0}static get requires(){return[o]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0)}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return c("filerepository-no-upload-adapter"),null;const t=new l(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then(r=>{this._loadersMap.set(r,t)}).catch(()=>{}),t.on("change:uploaded",()=>{let r=0;for(const s of this.loaders)r+=s.uploaded;this.uploaded=r}),t.on("change:uploadTotal",()=>{let r=0;for(const s of this.loaders)s.uploadTotal&&(r+=s.uploadTotal);this.uploadTotal=r}),t}destroyLoader(e){const t=e instanceof l?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((r,s)=>{r===t&&this._loadersMap.delete(s)})}_updatePendingAction(){const e=this.editor.plugins.get(o);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,r=s=>`${t("Upload in progress")} ${parseInt(s)}%.`;this._pendingAction=e.add(r(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",r)}}else e.remove(this._pendingAction),this._pendingAction=null}}class l extends u(){id;_filePromiseWrapper;_adapter;_reader;constructor(e,t){super(),this.id=g(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new _,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,s)=>s?r/s*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(e=>this._filePromiseWrapper?e:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if(this.status!="idle")throw new d("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(e=>this._reader.read(e)).then(e=>{if(this.status!=="reading")throw this.status;return this.status="idle",e}).catch(e=>{throw e==="aborted"?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:e)})}upload(){if(this.status!="idle")throw new d("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(e=>(this.uploadResponse=e,this.status="idle",e)).catch(e=>{throw this.status==="aborted"?"aborted":(this.status="error",e)})}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?e=="reading"?this._reader.abort():e=="uploading"&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise((r,s)=>{t.rejecter=s,t.isFulfilled=!1,e.then(i=>{t.isFulfilled=!0,r(i)}).catch(i=>{t.isFulfilled=!0,s(i)})}),t}}class P extends h{static get requires(){return[n]}static get pluginName(){return"Base64UploadAdapter"}static get licenseFeatureCode(){return"B64A"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){this.editor.plugins.get(n).createUploadAdapter=e=>new f(e)}}let f=class{loader;reader;constructor(e){this.loader=e}upload(){return new Promise((e,t)=>{const r=this.reader=new window.FileReader;r.addEventListener("load",()=>{e({default:r.result})}),r.addEventListener("error",s=>{t(s)}),r.addEventListener("abort",()=>{t()}),this.loader.file.then(s=>{r.readAsDataURL(s)})})}abort(){this.reader.abort()}};export{P as Base64UploadAdapter,_ as FileReader,n as FileRepository};
@@ -0,0 +1,8 @@
1
+ import{isObject as Wt}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.js";import{isString as nt}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isString.js";import{isFunction as it}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isFunction.js";import{isElement as Et}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isElement.js";import{isPlainObject as M}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";import{cloneDeepWith as Kt}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js";import{merge as Ut}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/merge.js";let _;try{_={window,document}}catch{_={window:{},document:{}}}function $t(){try{return navigator.userAgent.toLowerCase()}catch{return""}}const T=$t(),C={isMac:Tt(T),isWindows:Ht(T),isGecko:Gt(T),isSafari:qt(T),isiOS:Yt(T),isAndroid:Xt(T),isBlink:Jt(T),get isMediaForcedColors(){return Qt()}};function Tt(e){return e.indexOf("macintosh")>-1}function Ht(e){return e.indexOf("windows")>-1}function Gt(e){return!!e.match(/gecko\/\d+/)}function qt(e){return e.indexOf(" applewebkit/")>-1&&e.indexOf("chrome")===-1}function Yt(e){return!!e.match(/iphone|ipad/i)||Tt(e)&&navigator.maxTouchPoints>0}function Xt(e){return e.indexOf("android")>-1}function Jt(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}function Qt(){return _.window.matchMedia?_.window.matchMedia("(forced-colors: active)").matches:!1}function Zt(e,t,n,i){n=n||function(c,a){return c===a};const s=Array.isArray(e)?e:Array.prototype.slice.call(e),o=Array.isArray(t)?t:Array.prototype.slice.call(t),r=zt(s,o,n);return i?ee(r,o.length):te(o,r)}function zt(e,t,n){const i=st(e,t,n);if(i===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const s=ot(e,i),o=ot(t,i),r=st(s,o,n),l=e.length-r,c=t.length-r;return{firstIndex:i,lastIndexOld:l,lastIndexNew:c}}function st(e,t,n){for(let i=0;i<Math.max(e.length,t.length);i++)if(e[i]===void 0||t[i]===void 0||!n(e[i],t[i]))return i;return-1}function ot(e,t){return e.slice(t).reverse()}function te(e,t){const n=[],{firstIndex:i,lastIndexOld:s,lastIndexNew:o}=t;return o-i>0&&n.push({index:i,type:"insert",values:e.slice(i,o)}),s-i>0&&n.push({index:i+(o-i),type:"delete",howMany:s-i}),n}function ee(e,t){const{firstIndex:n,lastIndexOld:i,lastIndexNew:s}=e;if(n===-1)return Array(t).fill("equal");let o=[];return n>0&&(o=o.concat(Array(n).fill("equal"))),s-n>0&&(o=o.concat(Array(s-n).fill("insert"))),i-n>0&&(o=o.concat(Array(i-n).fill("delete"))),s<t&&(o=o.concat(Array(t-s).fill("equal"))),o}function xt(e,t,n){n=n||function(p,k){return p===k};const i=e.length,s=t.length;if(i>200||s>200||i+s>300)return xt.fastDiff(e,t,n,!0);let o,r;if(s<i){const p=e;e=t,t=p,o="delete",r="insert"}else o="insert",r="delete";const l=e.length,c=t.length,a=c-l,f={},u={};function w(p){const k=(u[p-1]!==void 0?u[p-1]:-1)+1,D=u[p+1]!==void 0?u[p+1]:-1,et=k>D?-1:1;f[p+et]&&(f[p]=f[p+et].slice(0)),f[p]||(f[p]=[]),f[p].push(k>D?o:r);let F=Math.max(k,D),j=F-p;for(;j<l&&F<c&&n(e[j],t[F]);)j++,F++,f[p].push("equal");return F}let L=0,y;do{for(y=-L;y<a;y++)u[y]=w(y);for(y=a+L;y>a;y--)u[y]=w(y);u[a]=w(a),L++}while(u[a]!==c);return f[a].slice(1)}xt.fastDiff=Zt;function rt(){return function e(){e.called=!0}}class ${source;name;path;stop;off;return;constructor(t,n){this.source=t,this.name=n,this.path=[],this.stop=rt(),this.off=rt()}}const b=new Array(256).fill("").map((e,t)=>("0"+t.toString(16)).slice(-2));function X(){const[e,t,n,i]=crypto.getRandomValues(new Uint32Array(4));return"e"+b[e>>0&255]+b[e>>8&255]+b[e>>16&255]+b[e>>24&255]+b[t>>0&255]+b[t>>8&255]+b[t>>16&255]+b[t>>24&255]+b[n>>0&255]+b[n>>8&255]+b[n>>16&255]+b[n>>24&255]+b[i>>0&255]+b[i>>8&255]+b[i>>16&255]+b[i>>24&255]}const H={get(e="normal"){return typeof e!="number"?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function ne(e,t){const n=H.get(t.priority);let i=0,s=e.length;for(;i<s;){const o=i+s>>1;H.get(e[o].priority)<n?s=o:i=o+1}e.splice(i,0,t)}const ie="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class d extends Error{context;data;constructor(t,n,i,s){super(se(t,i,s)),this.name="CKEditorError",this.context=n,this.data=i,s&&(this.stack=s.stack)}is(t){return t==="CKEditorError"}static rethrowUnexpectedError(t,n){throw t.is&&t.is("CKEditorError")?t:new d("unexpected-error",n,void 0,t)}}function gn(e,t){console.warn(...At(e,t))}function mn(e,t){console.error(...At(e,t))}function It(e){return`
2
+ Read more: ${ie}#error-${e}`}function se(e,t,n){const i=new WeakSet,o=t?` ${JSON.stringify(t,(c,a)=>{if(typeof a=="object"&&a!==null){if(i.has(a))return`[object ${a.constructor.name}]`;i.add(a)}return a})}`:"",r=It(e),l=n?`
3
+ Original error: ${n.name}: ${n.message}`:"";return e+o+r+l}function At(e,t){const n=It(e);return t?[e,t,n]:[e,n]}const oe="47.6.0",bn=new Date(2026,2,4);if(globalThis.CKEDITOR_VERSION)throw new d("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=oe;const A=Symbol("listeningTo"),G=Symbol("emitterId"),E=Symbol("delegations"),re=I(Object);function I(e){if(!e)return re;class t extends e{on(i,s,o){this.listenTo(this,i,s,o)}once(i,s,o){let r=!1;const l=(c,...a)=>{r||(r=!0,c.off(),s.call(this,c,...a))};this.listenTo(this,i,l,o)}off(i,s){this.stopListening(this,i,s)}listenTo(i,s,o,r={}){let l,c;this[A]||(this[A]={});const a=this[A];O(i)||Ct(i);const f=O(i);(l=a[f])||(l=a[f]={emitter:i,callbacks:{}}),(c=l.callbacks[s])||(c=l.callbacks[s]=[]),c.push(o),ue(this,i,s,o,r)}stopListening(i,s,o){const r=this[A];let l=i&&O(i);const c=r&&l?r[l]:void 0,a=c&&s?c.callbacks[s]:void 0;if(!(!r||i&&!c||s&&!a))if(o)W(this,i,s,o),a.indexOf(o)!==-1&&(a.length===1?delete c.callbacks[s]:W(this,i,s,o));else if(a){for(;o=a.pop();)W(this,i,s,o);delete c.callbacks[s]}else if(c){for(s in c.callbacks)this.stopListening(i,s);delete r[l]}else{for(l in r)this.stopListening(r[l].emitter);delete this[A]}}fire(i,...s){try{const o=i instanceof $?i:new $(this,i),r=o.name;let l=fe(this,r);if(o.path.push(this),l){l=l.slice();for(let a=0;a<l.length;a++){const f=l[a].callback;if(f.call(this,o,...s),o.off.called&&(delete o.off.called,this._removeEventListener(r,f)),o.stop.called)break}}const c=this[E];if(c){const a=c.get(r),f=c.get("*");a&&lt(a,o,s),f&&lt(f,o,s)}return o.return}catch(o){d.rethrowUnexpectedError(o,this)}}delegate(...i){return{to:(s,o)=>{this[E]||(this[E]=new Map),i.forEach(r=>{const l=this[E].get(r);l?l.set(s,o):this[E].set(r,new Map([[s,o]]))})}}}stopDelegating(i,s){if(this[E])if(!i)this[E].clear();else if(!s)this[E].delete(i);else{const o=this[E].get(i);o&&o.delete(s)}}_addEventListener(i,s,o){ae(this,i);const r=q(this,i),l=H.get(o.priority),c={callback:s,priority:l};for(const a of r)ne(a,c)}_removeEventListener(i,s){const o=q(this,i);for(const r of o)for(let l=0;l<r.length;l++)r[l].callback==s&&(r.splice(l,1),l--)}}return t}function le(e,t){const n=e[A];return n&&n[t]?n[t].emitter:null}function Ct(e,t){e[G]||(e[G]=t||X())}function O(e){return e[G]}function Lt(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function ce(){return{callbacks:[],childEvents:[]}}function ae(e,t){const n=Lt(e);if(n[t])return;let i=t,s=null;const o=[];for(;i!==""&&!n[i];)n[i]=ce(),o.push(n[i]),s&&n[i].childEvents.push(s),s=i,i=i.substr(0,i.lastIndexOf(":"));if(i!==""){for(const r of o)r.callbacks=n[i].callbacks.slice();n[i].childEvents.push(s)}}function q(e,t){const n=Lt(e)[t];if(!n)return[];let i=[n.callbacks];for(let s=0;s<n.childEvents.length;s++){const o=q(e,n.childEvents[s]);i=i.concat(o)}return i}function fe(e,t){if(!e._events)return null;let n=t;do{const i=e._events[n];if(i&&i.callbacks&&i.callbacks.length)return i.callbacks;const s=n.lastIndexOf(":");n=s>-1?n.substring(0,s):""}while(n);return null}function lt(e,t,n){for(let[i,s]of e){s?typeof s=="function"&&(s=s(t.name)):s=t.name;const o=new $(t.source,s);o.path=[...t.path],i.fire(o,...n)}}function ue(e,t,n,i,s){t._addEventListener?t._addEventListener(n,i,s):e._addEventListener.call(t,n,i,s)}function W(e,t,n,i){t._removeEventListener?t._removeEventListener(n,i):e._removeEventListener.call(t,n,i)}const S=Symbol("observableProperties"),V=Symbol("boundObservables"),R=Symbol("boundProperties"),x=Symbol("decoratedMethods"),ct=Symbol("decoratedOriginal"),de=kt(I());function kt(e){if(!e)return de;class t extends e{set(i,s){if(Wt(i)){Object.keys(i).forEach(r=>{this.set(r,i[r])},this);return}K(this);const o=this[S];if(i in this&&!o.has(i))throw new d("observable-set-cannot-override",this);Object.defineProperty(this,i,{enumerable:!0,configurable:!0,get(){return o.get(i)},set(r){const l=o.get(i);let c=this.fire(`set:${i}`,i,r,l);c===void 0&&(c=r),(l!==c||!o.has(i))&&(o.set(i,c),this.fire(`change:${i}`,i,c,l))}}),this[i]=s}bind(...i){if(!i.length||!at(i))throw new d("observable-bind-wrong-properties",this);if(new Set(i).size!==i.length)throw new d("observable-bind-duplicate-properties",this);K(this);const s=this[R];i.forEach(r=>{if(s.has(r))throw new d("observable-bind-rebind",this)});const o=new Map;return i.forEach(r=>{const l={property:r,to:[]};s.set(r,l),o.set(r,l)}),{to:he,toMany:pe,_observable:this,_bindProperties:i,_to:[],_bindings:o}}unbind(...i){if(!this[S])return;const s=this[R],o=this[V];if(i.length){if(!at(i))throw new d("observable-unbind-wrong-properties",this);i.forEach(r=>{const l=s.get(r);l&&(l.to.forEach(([c,a])=>{const f=o.get(c),u=f[a];u.delete(l),u.size||delete f[a],Object.keys(f).length||(o.delete(c),this.stopListening(c,"change"))}),s.delete(r))})}else o.forEach((r,l)=>{this.stopListening(l,"change")}),o.clear(),s.clear()}decorate(i){K(this);const s=this[i];if(!s)throw new d("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:i});this.on(i,(o,r)=>{o.return=s.apply(this,r)}),this[i]=function(...o){return this.fire(i,o)},this[i][ct]=s,this[x]||(this[x]=[]),this[x].push(i)}stopListening(i,s,o){if(!i&&this[x]){for(const r of this[x])this[r]=this[r][ct];delete this[x]}super.stopListening(i,s,o)}[S];[x];[R];[V]}return t}function K(e){e[S]||(Object.defineProperty(e,S,{value:new Map}),Object.defineProperty(e,V,{value:new Map}),Object.defineProperty(e,R,{value:new Map}))}function he(...e){const t=me(...e),n=Array.from(this._bindings.keys()),i=n.length;if(!t.callback&&t.to.length>1)throw new d("observable-bind-to-no-callback",this);if(i>1&&t.callback)throw new d("observable-bind-to-extra-callback",this);t.to.forEach(s=>{if(s.properties.length&&s.properties.length!==i)throw new d("observable-bind-to-properties-length",this);s.properties.length||(s.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(n[0]).callback=t.callback),we(this._observable,this._to),_e(this),this._bindProperties.forEach(s=>{Ft(this._observable,s)})}function pe(e,t,n){if(this._bindings.size>1)throw new d("observable-bind-to-many-not-one-binding",this);this.to(...ge(e,t),n)}function ge(e,t){const n=e.map(i=>[i,t]);return Array.prototype.concat.apply([],n)}function at(e){return e.every(t=>typeof t=="string")}function me(...e){if(!e.length)throw new d("observable-bind-to-parse-error",null);const t={to:[]};let n;return typeof e[e.length-1]=="function"&&(t.callback=e.pop()),e.forEach(i=>{if(typeof i=="string")n.properties.push(i);else if(typeof i=="object")n={observable:i,properties:[]},t.to.push(n);else throw new d("observable-bind-to-parse-error",null)}),t}function be(e,t,n,i){const s=e[V],o=s.get(n),r=o||{};r[i]||(r[i]=new Set),r[i].add(t),o||s.set(n,r)}function _e(e){let t;e._bindings.forEach((n,i)=>{e._to.forEach(s=>{t=s.properties[n.callback?0:e._bindProperties.indexOf(i)],n.to.push([s.observable,t]),be(e._observable,n,s.observable,t)})})}function Ft(e,t){const i=e[R].get(t);let s;i.callback?s=i.callback.apply(e,i.to.map(o=>o[0][o[1]])):(s=i.to[0],s=s[0][s[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=s:e.set(t,s)}function we(e,t){t.forEach(n=>{const i=e[V];let s;i.get(n.observable)||e.listenTo(n.observable,"change",(o,r)=>{s=i.get(n.observable)[r],s&&s.forEach(l=>{Ft(e,l.property)})})})}class _n{_replacedElements;constructor(){this._replacedElements=[]}replace(t,n){this._replacedElements.push({element:t,newElement:n}),t.style.display="none",n&&t.parentNode.insertBefore(n,t.nextSibling)}restore(){this._replacedElements.forEach(({element:t,newElement:n})=>{t.style.display="",n&&n.remove()}),this._replacedElements=[]}}function wn(e){let t=0;for(const n of e)t++;return t}function yn(e,t){const n=Math.min(e.length,t.length);for(let i=0;i<n;i++)if(e[i]!=t[i])return i;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}function J(e){return!!(e&&e[Symbol.iterator])}function En(e,t,n={},i=[]){const s=n&&n.xmlns,o=s?e.createElementNS(s,t):e.createElement(t);for(const r in n)o.setAttribute(r,n[r]);(nt(i)||!J(i))&&(i=[i]);for(let r of i)nt(r)&&(r=e.createTextNode(r)),o.appendChild(r);return o}class Tn{_config;constructor(t,n){this._config=Object.create(null),n&&this.define(ft(n)),t&&this._setObjectToTarget(this._config,t)}set(t,n){this._setToTarget(this._config,t,n)}define(t,n){this._setToTarget(this._config,t,n,!0)}get(t){return this._getFromSource(this._config,t)}*names(){for(const t of Object.keys(this._config))yield t}_setToTarget(t,n,i,s=!1){if(M(n)){this._setObjectToTarget(t,n,s);return}const o=n.split(".");n=o.pop();for(const r of o)M(t[r])||(t[r]=Object.create(null)),t=t[r];if(M(i)){M(t[n])||(t[n]=Object.create(null)),t=t[n],this._setObjectToTarget(t,i,s);return}s&&typeof t[n]<"u"||(t[n]=i)}_getFromSource(t,n){const i=n.split(".");n=i.pop();for(const s of i){if(!M(t[s])){t=null;break}t=t[s]}return t?ft(t[n]):void 0}_setObjectToTarget(t,n,i){Object.keys(n).forEach(s=>{this._setToTarget(t,s,n[s],i)})}}function ft(e){return Kt(e,ye)}function ye(e){return Et(e)||typeof e=="function"?e:void 0}function ut(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}function N(e){const t=Object.prototype.toString.apply(e);return t=="[object Window]"||t=="[object global]"}const Ee=Q(I());function Q(e){if(!e)return Ee;class t extends e{listenTo(i,s,o,r={}){if(ut(i)||N(i)||i instanceof _.window.EventTarget){const l={capture:!!r.useCapture,passive:!!r.usePassive},c=this._getProxyEmitter(i,l)||new Te(i,l);this.listenTo(c,s,o,r)}else super.listenTo(i,s,o,r)}stopListening(i,s,o){if(ut(i)||N(i)||i instanceof _.window.EventTarget){const r=this._getAllProxyEmitters(i);for(const l of r)this.stopListening(l,s,o)}else super.stopListening(i,s,o)}_getProxyEmitter(i,s){return le(this,Mt(i,s))}_getAllProxyEmitters(i){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(s=>this._getProxyEmitter(i,s)).filter(s=>!!s)}}return t}class Te extends I(){_domNode;_options;constructor(t,n){super(),Ct(this,Mt(t,n)),this._domNode=t,this._options=n}_domListeners;attach(t){if(this._domListeners&&this._domListeners[t])return;const n=this._createDomListener(t);this._domNode.addEventListener(t,n,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=n}detach(t){let n;this._domListeners[t]&&(!(n=this._events[t])||!n.callbacks.length)&&this._domListeners[t].removeListener()}_addEventListener(t,n,i){this.attach(t),I().prototype._addEventListener.call(this,t,n,i)}_removeEventListener(t,n){I().prototype._removeEventListener.call(this,t,n),this.detach(t)}_createDomListener(t){const n=i=>{this.fire(t,i)};return n.removeListener=()=>{this._domNode.removeEventListener(t,n,this._options),delete this._domListeners[t]},n}}function xe(e){return e["data-ck-expando"]||(e["data-ck-expando"]=X())}function Mt(e,t){let n=xe(e);for(const i of Object.keys(t).sort())t[i]&&(n+="-"+i);return n}function xn(e){const t=[];let n=e;for(;n&&n.nodeType!=Node.DOCUMENT_NODE;)t.unshift(n),n=n.parentNode;return t}function In(e){return e instanceof HTMLTextAreaElement?e.value:e.innerHTML}function St(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}function An(e){if(!e.target)return null;const t=e.target.ownerDocument,n=e.clientX,i=e.clientY;let s=null;return t.caretRangeFromPoint&&t.caretRangeFromPoint(n,i)?s=t.caretRangeFromPoint(n,i):e.rangeParent&&(s=t.createRange(),s.setStart(e.rangeParent,e.rangeOffset),s.collapse(!0)),s}function Rt(e){return!e||!e.parentNode||e.offsetParent===_.document.body?null:e.offsetParent}function Z(e){return Object.prototype.toString.call(e)=="[object Text]"}function z(e){return Object.prototype.toString.apply(e)=="[object Range]"}const Vt=["top","right","bottom","left","width","height"],Ie=new Set(["relative","absolute","fixed","sticky"]);class m{top;right;bottom;left;width;height;_source;constructor(t){const n=z(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),Y(t)||n)if(n){const i=m.getDomRangeRects(t);v(this,m.getBoundingRect(i))}else v(this,t.getBoundingClientRect());else if(N(t)){const{innerWidth:i,innerHeight:s}=t;v(this,{top:0,right:i,bottom:s,left:0,width:i,height:s})}else v(this,t)}clone(){return new m(this)}moveTo(t,n){return this.top=n,this.right=t+this.width,this.bottom=n+this.height,this.left=t,this}moveBy(t,n){return this.top+=n,this.right+=t,this.left+=t,this.bottom+=n,this}getIntersection(t){const n={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0)return null;{const i=new m(n);return i._source=this._source,i}}getIntersectionArea(t){const n=this.getIntersection(t);return n?n.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let n=this.clone();if(dt(t))return n;let i=t,s=t.parentNode||t.commonAncestorContainer,o;for(;s&&!dt(s);){const r=Ae(s)==="visible";if(ht(i)&&(o=i),r||o&&vt(o)==="absolute"&&!ht(s)){i=s,s=s.parentNode;continue}const l=new m(s),c=n.getIntersection(l);if(c)c.getArea()<n.getArea()&&(n=c);else return null;i=s,s=s.parentNode}return n}isEqual(t){for(const n of Vt)if(this[n]!==t[n])return!1;return!0}contains(t){const n=this.getIntersection(t);return!!(n&&n.isEqual(t))}toAbsoluteRect(){const{scrollX:t,scrollY:n}=_.window,i=this.clone().moveBy(t,n);if(Y(i._source)){const s=Rt(i._source);s&&Ce(i,s)}return i}excludeScrollbarsAndBorders(){const t=this._source;let n,i,s;if(N(t))n=t.innerWidth-t.document.documentElement.clientWidth,i=t.innerHeight-t.document.documentElement.clientHeight,s=t.getComputedStyle(t.document.documentElement).direction;else{const o=St(t);n=t.offsetWidth-t.clientWidth-o.left-o.right,i=t.offsetHeight-t.clientHeight-o.top-o.bottom,s=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=o.left,this.top+=o.top,this.right-=o.right,this.bottom-=o.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=n,s==="ltr"?this.right-=n:this.left+=n,this.height-=i,this.bottom-=i,this}static getDomRangeRects(t){const n=[],i=Array.from(t.getClientRects());if(i.length)for(const s of i){const o=new m(s);o._source=t,n.push(o)}else{let s=t.startContainer;Z(s)&&(s=s.parentNode);const o=new m(s.getBoundingClientRect());o.right=o.left,o.width=0,n.push(o)}return n}static getBoundingRect(t){const n={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let i=0;for(const s of t)i++,n.left=Math.min(n.left,s.left),n.top=Math.min(n.top,s.top),n.right=Math.max(n.right,s.right),n.bottom=Math.max(n.bottom,s.bottom);return i==0?null:(n.width=n.right-n.left,n.height=n.bottom-n.top,new m(n))}}function v(e,t){for(const n of Vt)e[n]=t[n]}function dt(e){return Y(e)?e===e.ownerDocument.body:!1}function Y(e){return e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.getBoundingClientRect=="function"}function vt(e){return e.ownerDocument.defaultView.getComputedStyle(e).position}function Ae(e){return e instanceof HTMLElement?e.ownerDocument.defaultView.getComputedStyle(e).overflow:"visible"}function ht(e){return e instanceof HTMLElement&&Ie.has(vt(e))}function Ce(e,t){const n=new m(t),i=St(t);let s=0,o=0;s-=n.left,o-=n.top,s+=t.scrollLeft,o+=t.scrollTop,s-=i.left,o-=i.top,e.moveBy(s,o)}class h{_element;_callback;static _observerInstance=null;static _elementCallbacks=null;constructor(t,n){h._observerInstance||h._createObserver(),this._element=t,this._callback=n,h._addElementCallback(t,n),h._observerInstance.observe(t)}get element(){return this._element}destroy(){h._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,n){h._elementCallbacks||(h._elementCallbacks=new Map);let i=h._elementCallbacks.get(t);i||(i=new Set,h._elementCallbacks.set(t,i)),i.add(n)}static _deleteElementCallback(t,n){const i=h._getElementCallbacks(t);i&&(i.delete(n),i.size||(h._elementCallbacks.delete(t),h._observerInstance.unobserve(t))),h._elementCallbacks&&!h._elementCallbacks.size&&(h._observerInstance=null,h._elementCallbacks=null)}static _getElementCallbacks(t){return h._elementCallbacks?h._elementCallbacks.get(t):null}static _createObserver(){h._observerInstance=new _.window.ResizeObserver(t=>{for(const n of t){const i=h._getElementCallbacks(n.target);if(i)for(const s of i)s(n)}})}}function Cn(e,t){e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}function Ln(e){return t=>t+e}function kn(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function Fn(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function Mn(e){return e&&e.nodeType===Node.COMMENT_NODE}function Sn(e){try{_.document.createAttribute(e)}catch{return!1}return!0}function Le(e){return e?Z(e)?Le(e.parentElement):e.getClientRects?!!e.getClientRects().length:!1:!1}function Rn({element:e,target:t,positions:n,limiter:i,fitInViewport:s,viewportOffsetConfig:o}){it(t)&&(t=t()),it(i)&&(i=i());const r=Rt(e),l=ke(o),c=new m(e),a=pt(t,l);let f;if(!a||!l.getIntersection(a))return null;const u={targetRect:a,elementRect:c,positionedElementAncestor:r,viewportRect:l};if(!i&&!s)f=new Pt(n[0],u);else{if(i){const w=pt(i,l);w&&(u.limiterRect=w)}f=Fe(n,u)}return f}function pt(e,t){const n=new m(e).getVisible();return n?n.getIntersection(t):null}function ke(e){e=Object.assign({top:0,bottom:0,left:0,right:0},e);const t=new m(_.window);return t.top+=e.top,t.height-=e.top,t.bottom-=e.bottom,t.height-=e.bottom,t.left+=e.left,t.right-=e.right,t.width-=e.left+e.right,t}function Fe(e,t){const{elementRect:n}=t,i=n.getArea(),s=e.map(l=>new Pt(l,t)).filter(l=>!!l.name);let o=0,r=null;for(const l of s){const{limiterIntersectionArea:c,viewportIntersectionArea:a}=l;if(c===i)return l;const f=a**2+c**2;f>o&&(o=f,r=l)}return r}class Pt{name;config;_positioningFunctionCoordinates;_options;_cachedRect;_cachedAbsoluteRect;constructor(t,n){const i=t(n.targetRect,n.elementRect,n.viewportRect,n.limiterRect);if(!i)return;const{left:s,top:o,name:r,config:l}=i;this.name=r,this.config=l,this._positioningFunctionCoordinates={left:s,top:o},this._options=n}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const t=this._options.limiterRect;return t?t.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect?this._cachedRect:(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top),this._cachedRect)}get _absoluteRect(){return this._cachedAbsoluteRect?this._cachedAbsoluteRect:(this._cachedAbsoluteRect=this._rect.toAbsoluteRect(),this._cachedAbsoluteRect)}}function Vn(e){const t=e.parentNode;t&&t.removeChild(e)}function vn(){const e=_.window.visualViewport;if(!e||!(C.isiOS||C.isSafari))return{left:0,top:0};const t=Math.max(Math.round(e.offsetLeft),0),n=Math.max(Math.round(e.offsetTop),0);return{left:t,top:n}}function Pn({target:e,viewportOffset:t=0,ancestorOffset:n=0,alignToTop:i,forceScroll:s}){const o=tt(e);let r=o,l=null;for(t=Re(t);r;){let c;r==o?c=gt(e):c=gt(l),Se({parent:c,getRect:()=>U(e,r),alignToTop:i,ancestorOffset:n,forceScroll:s});let a=U(e,r);const f=U(c,r);if(a.height>f.height){const u=a.getIntersection(f);u&&(a=u)}if(Me({window:r,rect:a,viewportOffset:t,alignToTop:i,forceScroll:s}),r.parent!=r){if(l=r.frameElement,r=r.parent,!l)return}else r=null}}function Me({window:e,rect:t,alignToTop:n,forceScroll:i,viewportOffset:s}){const o=t.clone().moveBy(0,s.bottom),r=t.clone().moveBy(0,-s.top),l=new m(e).excludeScrollbarsAndBorders(),c=[r,o],a=n&&i,f=c.every(p=>l.contains(p));let{scrollX:u,scrollY:w}=e;const L=u,y=w;a?w-=l.top-t.top+s.top:f||(Bt(r,l)?w-=l.top-t.top+s.top:Nt(o,l)&&(n?w+=t.top-l.top-s.top:w+=t.bottom-l.bottom+s.bottom)),f||(Dt(t,l)?u-=l.left-t.left+s.left:jt(t,l)&&(u+=t.right-l.right+s.right)),(u!=L||w!==y)&&e.scrollTo(u,w)}function Se({parent:e,getRect:t,alignToTop:n,forceScroll:i,ancestorOffset:s=0,limiterElement:o}){const r=tt(e),l=n&&i;let c,a,f;const u=o||r.document.body;for(;e!=u;)a=t(),c=new m(e).excludeScrollbarsAndBorders(),f=c.contains(a),l?e.scrollTop-=c.top-a.top+s:f||(Bt(a,c)?e.scrollTop-=c.top-a.top+s:Nt(a,c)&&(n?e.scrollTop+=a.top-c.top-s:e.scrollTop+=a.bottom-c.bottom+s)),f||(Dt(a,c)?e.scrollLeft-=c.left-a.left+s:jt(a,c)&&(e.scrollLeft+=a.right-c.right+s)),e=e.parentNode}function Nt(e,t){return e.bottom>t.bottom}function Bt(e,t){return e.top<t.top}function Dt(e,t){return e.left<t.left}function jt(e,t){return e.right>t.right}function tt(e){return z(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function gt(e){if(z(e)){let t=e.commonAncestorContainer;return Z(t)&&(t=t.parentNode),t}else return e.parentNode}function U(e,t){const n=tt(e),i=new m(e);if(n===t)return i;{let s=n;for(;s!=t;){const o=s.frameElement,r=new m(o).excludeScrollbarsAndBorders();i.moveBy(r.left,r.top),s=s.parent}}return i}function Re(e){return typeof e=="number"?{top:e,bottom:e,left:e,right:e}:e}const Ve={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},ve={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},mt={37:"←",38:"↑",39:"→",40:"↓",9:"⇥",33:"Page Up",34:"Page Down"},g=De(),Pe=Object.fromEntries(Object.entries(g).map(([e,t])=>{let n;return t in mt?n=mt[t]:n=e.charAt(0).toUpperCase()+e.slice(1),[t,n]}));function B(e){let t;if(typeof e=="string"){if(t=g[e.toLowerCase()],!t)throw new d("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?g.alt:0)+(e.ctrlKey?g.ctrl:0)+(e.shiftKey?g.shift:0)+(e.metaKey?g.cmd:0);return t}function Ot(e){return typeof e=="string"&&(e=je(e)),e.map(t=>typeof t=="string"?Be(t):t).reduce((t,n)=>n+t,0)}function Nn(e,t){let n=Ot(e);const i=C.isMac||C.isiOS;return Object.entries(i?Ve:ve).reduce((r,[l,c])=>((n&g[l])!=0&&(n&=~g[l],r+=c),r),"")+(n?Pe[n]:"")}function Bn(e){return e==g.arrowright||e==g.arrowleft||e==g.arrowup||e==g.arrowdown}function Ne(e,t){const n=t==="ltr";switch(e){case g.arrowleft:return n?"left":"right";case g.arrowright:return n?"right":"left";case g.arrowup:return"up";case g.arrowdown:return"down"}}function Be(e){if(e.endsWith("!"))return B(e.slice(0,-1));const t=B(e);return(C.isMac||C.isiOS)&&t==g.ctrl?g.cmd:t}function Dn(e,t){const n=Ne(e,t);return n==="down"||n==="right"}function De(){const e={pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let t=65;t<=90;t++){const n=String.fromCharCode(t);e[n.toLowerCase()]=t}for(let t=48;t<=57;t++)e[t-48]=t;for(let t=112;t<=123;t++)e["f"+(t-111)]=t;return Object.assign(e,{"'":222,",":108,"-":109,".":110,"/":111,";":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),e}function je(e){return e.split("+").map(t=>t.trim())}const Oe=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig","ur","urd"];function bt(e){return Oe.includes(e)?"rtl":"ltr"}function We(e){return Array.isArray(e)?e:[e]}_.window.CKEDITOR_TRANSLATIONS||(_.window.CKEDITOR_TRANSLATIONS={});function Ke(e,t,n=1,i){if(typeof n!="number")throw new d("translation-service-quantity-not-a-number",null,{quantity:n});const s=i||_.window.CKEDITOR_TRANSLATIONS,o=He(s);o===1&&(e=Object.keys(s)[0]);const r=t.id||t.string;if(o===0||!$e(e,r,s))return n!==1?t.plural:t.string;const l=s[e].dictionary,c=s[e].getPluralForm||(u=>u===1?0:1),a=l[r];if(typeof a=="string")return a;const f=Number(c(n));return a[f]}function Ue(e){return Array.isArray(e)?e.reduce((t,n)=>Ut(t,n)):e}function $e(e,t,n){return!!n[e]&&!!n[e].dictionary[t]}function He(e){return Object.keys(e).length}class jn{uiLanguage;uiLanguageDirection;contentLanguage;contentLanguageDirection;t;translations;constructor({uiLanguage:t="en",contentLanguage:n,translations:i}={}){this.uiLanguage=t,this.contentLanguage=n||this.uiLanguage,this.uiLanguageDirection=bt(this.uiLanguage),this.contentLanguageDirection=bt(this.contentLanguage),this.translations=Ue(i),this.t=(s,o)=>this._t(s,o)}_t(t,n=[]){n=We(n),typeof t=="string"&&(t={string:t});const s=!!t.plural?n[0]:1,o=Ke(this.uiLanguage,t,s,this.translations);return Ge(o,n)}}function Ge(e,t){return e.replace(/%(\d+)/g,(n,i)=>i<t.length?t[i]:n)}class On extends I(){_items;_itemMap;_idProperty;_bindToCollection;_bindToExternalToInternalMap;_bindToInternalToExternalMap;_skippedIndexesFromExternal;constructor(t={},n={}){super();const i=J(t);if(i||(n=t),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],i)for(const s of t)this._items.push(s),this._itemMap.set(this._getItemIdBeforeAdding(s),s)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,n){return this.addMany([t],n)}addMany(t,n){if(n===void 0)n=this._items.length;else if(n>this._items.length||n<0)throw new d("collection-add-item-invalid-index",this);let i=0;for(const s of t){const o=this._getItemIdBeforeAdding(s),r=n+i;this._items.splice(r,0,s),this._itemMap.set(o,s),this.fire("add",s,r),i++}return this.fire("change",{added:t,removed:[],index:n}),this}get(t){let n;if(typeof t=="string")n=this._itemMap.get(t);else if(typeof t=="number")n=this._items[t];else throw new d("collection-get-invalid-arg",this);return n||null}has(t){if(typeof t=="string")return this._itemMap.has(t);{const n=this._idProperty,i=t[n];return i&&this._itemMap.has(i)}}getIndex(t){let n;return typeof t=="string"?n=this._itemMap.get(t):n=t,n?this._items.indexOf(n):-1}remove(t){const[n,i]=this._remove(t);return this.fire("change",{added:[],removed:[n],index:i}),n}map(t,n){return this._items.map(t,n)}forEach(t,n){this._items.forEach(t,n)}find(t,n){return this._items.find(t,n)}filter(t,n){return this._items.filter(t,n)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new d("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:n=>{this._setUpBindToBinding(i=>new n(i))},using:n=>{typeof n=="function"?this._setUpBindToBinding(n):this._setUpBindToBinding(i=>i[n])}}}_setUpBindToBinding(t){const n=this._bindToCollection,i=(s,o,r)=>{const l=n._bindToCollection==this,c=n._bindToInternalToExternalMap.get(o);if(l&&c)this._bindToExternalToInternalMap.set(o,c),this._bindToInternalToExternalMap.set(c,o);else{const a=t(o);if(!a){this._skippedIndexesFromExternal.push(r);return}let f=r;for(const u of this._skippedIndexesFromExternal)r>u&&f--;for(const u of n._skippedIndexesFromExternal)f>=u&&f++;this._bindToExternalToInternalMap.set(o,a),this._bindToInternalToExternalMap.set(a,o),this.add(a,f);for(let u=0;u<n._skippedIndexesFromExternal.length;u++)f<=n._skippedIndexesFromExternal[u]&&n._skippedIndexesFromExternal[u]++}};for(const s of n)i(null,s,n.getIndex(s));this.listenTo(n,"add",i),this.listenTo(n,"remove",(s,o,r)=>{const l=this._bindToExternalToInternalMap.get(o);l&&this.remove(l),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((c,a)=>(r<a&&c.push(a-1),r>a&&c.push(a),c),[])})}_getItemIdBeforeAdding(t){const n=this._idProperty;let i;if(n in t){if(i=t[n],typeof i!="string")throw new d("collection-add-invalid-id",this);if(this.get(i))throw new d("collection-add-item-already-exists",this)}else t[n]=i=X();return i}_remove(t){let n,i,s,o=!1;const r=this._idProperty;if(typeof t=="string"?(i=t,s=this._itemMap.get(i),o=!s,s&&(n=this._items.indexOf(s))):typeof t=="number"?(n=t,s=this._items[n],o=!s,s&&(i=s[r])):(s=t,i=s[r],n=this._items.indexOf(s),o=n==-1||!this._itemMap.get(i)),o)throw new d("collection-remove-404",this);this._items.splice(n,1),this._itemMap.delete(i);const l=this._bindToInternalToExternalMap.get(s);return this._bindToInternalToExternalMap.delete(s),this._bindToExternalToInternalMap.delete(l),this.fire("remove",s,n),[s,n]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function Wn(e){const t=e.next();return t.done?null:t.value}class qe extends Q(kt()){_elements=new Set;_externalViews=new Set;_blurTimeout=null;constructor(){super(),this.set("isFocused",!1),this.set("focusedElement",null)}get elements(){return Array.from(this._elements.values())}get externalViews(){return Array.from(this._externalViews.values())}add(t){if(wt(t))this._addElement(t);else if(_t(t))this._addView(t);else{if(!t.element)throw new d("focustracker-add-view-missing-element",{focusTracker:this,view:t});this._addElement(t.element)}}remove(t){wt(t)?this._removeElement(t):_t(t)?this._removeView(t):this._removeElement(t.element)}_addElement(t){if(this._elements.has(t))throw new d("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",()=>{const n=this.externalViews.find(i=>Ye(t,i));n?this._focus(n.element):this._focus(t)},{useCapture:!0}),this.listenTo(t,"blur",()=>{this._blur()},{useCapture:!0}),this._elements.add(t)}_removeElement(t){this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t)),t===this.focusedElement&&this._blur()}_addView(t){t.element&&this._addElement(t.element),this.listenTo(t.focusTracker,"change:focusedElement",()=>{t.focusTracker.focusedElement?t.element&&this._focus(t.element):this._blur()}),this._externalViews.add(t)}_removeView(t){t.element&&this._removeElement(t.element),this.stopListening(t.focusTracker),this._externalViews.delete(t)}destroy(){this.stopListening(),this._elements.clear(),this._externalViews.clear(),this.isFocused=!1,this.focusedElement=null}_focus(t){this._clearBlurTimeout(),this.focusedElement=t,this.isFocused=!0}_blur(){this.elements.find(i=>i.contains(document.activeElement))||this.externalViews.find(i=>i.focusTracker.isFocused&&!i.focusTracker._blurTimeout)||(this._clearBlurTimeout(),this._blurTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0))}_clearBlurTimeout(){clearTimeout(this._blurTimeout),this._blurTimeout=null}}function _t(e){return"focusTracker"in e&&e.focusTracker instanceof qe}function wt(e){return Et(e)}function Ye(e,t){return yt(e,t)?!0:!!t.focusTracker.externalViews.find(n=>yt(e,n))}function yt(e,t){return!!t.element&&t.element.contains(document.activeElement)&&e.contains(t.element)}class Kn{_listener;constructor(){this._listener=new(Q())}listenTo(t){this._listener.listenTo(t,"keydown",(n,i)=>{this._listener.fire("_keydown:"+B(i),i)})}set(t,n,i={}){const s=Ot(t),o=i.priority;this._listener.listenTo(this._listener,"_keydown:"+s,(r,l)=>{i.filter&&!i.filter(l)||(n(l,()=>{l.preventDefault(),l.stopPropagation(),r.stop()}),r.return=!0)},{priority:o})}press(t){return!!this._listener.fire("_keydown:"+B(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}function Xe(e){const t=new Map;for(const n in e)t.set(n,e[n]);return t}function Un(e){return J(e)?new Map(e):Xe(e)}function $n(e,t,n){const i=e.length,s=t.length;for(let o=i-1;o>=n;o--)e[o+s]=e[o];for(let o=0;o<s;o++)e[n+o]=t[o]}function Hn(e,t){let n;function i(...s){i.cancel(),n=setTimeout(()=>e(...s),t)}return i.cancel=()=>{clearTimeout(n)},i}function Je(e){try{if(!e.startsWith("ey"))return null;const t=atob(e.replace(/-/g,"+").replace(/_/g,"/"));return JSON.parse(t)}catch{return null}}function Qe(){const e=[];for(let t=0;t<256;t++){let n=t;for(let i=0;i<8;i++)n&1?n=3988292384^n>>>1:n=n>>>1;e[t]=n}return e}function Gn(e){const t=Array.isArray(e)?e:[e],n=Qe();let i=-1;const s=t.map(o=>Array.isArray(o)?o.join(""):String(o)).join("");for(let o=0;o<s.length;o++){const r=s.charCodeAt(o);i=i>>>8^n[(i^r)&255]}return i=(i^-1)>>>0,i.toString(16).padStart(8,"0")}function qn(e){const t=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],n=t.map(r=>r.name).join("|"),i=e.replace(new RegExp(`</?(${n})( .*?)?>`,"g"),`
4
+ $&
5
+ `).replace(/<br[^>]*>/g,`$&
6
+ `).split(`
7
+ `);let s=0,o=!1;return i.map(r=>(o=tn(r,o),!r.length&&!o?"":Ze(r,t)?P(r,s++):ze(r,t)?P(r,--s):o==="middle"||o==="last"?P(r,0):P(r,s))).join("").trimEnd()}function Ze(e,t){return t.some(n=>!(n.isVoid||!new RegExp(`<${n.name}( .*?)?>`).test(e)))}function ze(e,t){return t.some(n=>new RegExp(`</${n.name}>`).test(e))}function P(e,t,n=" "){return`${n.repeat(Math.max(0,t))}${e}
8
+ `}function tn(e,t){const n=/<pre( .*?)?>/.test(e),i=/<\/pre>/.test(e);return n&&i?!1:n?"first":i?"last":t==="first"||t==="middle"?"middle":!1}function en(e){return!!e&&e.length==1&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(e)}function nn(e){return!!e&&e.length==1&&/[\ud800-\udbff]/.test(e)}function sn(e){return!!e&&e.length==1&&/[\udc00-\udfff]/.test(e)}function Yn(e,t){return nn(e.charAt(t-1))&&sn(e.charAt(t))}function Xn(e,t){return en(e.charAt(t))}const on=rn();function Jn(e,t){const n=String(e).matchAll(on);return Array.from(n).some(i=>i.index<t&&t<i.index+i[0].length)}function rn(){const e=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],t=new RegExp("\\p{Regional_Indicator}{2}","u").source,n="(?:"+e.map(s=>s.source).join("|")+")",i=`${t}|${n}(?:‍${n})*`;return new RegExp(i,"ug")}function Qn(e){if(!e)return null;const t=ln(e);return t?Je(t):null}function ln(e){const t=e.split(".");return t.length!=3?null:t[1]}function Zn(e,t){return(e.removeFeatures||[]).includes(t)}export{d as CKEditorError,On as Collection,Tn as Config,ie as DOCUMENTATION_URL,Q as DomEmitterMixin,_n as ElementReplacer,I as EmitterMixin,$ as EventInfo,qe as FocusTracker,Kn as KeystrokeHandler,jn as Locale,kt as ObservableMixin,m as Rect,h as ResizeObserver,O as _getEmitterId,le as _getEmitterListenedTo,$t as _getUserAgent,Xt as _isAndroid,Jt as _isBlink,Gt as _isGecko,Tt as _isMac,Qt as _isMediaForcedColors,qt as _isSafari,Ht as _isWindows,Yt as _isiOS,Ct as _setEmitterId,Ke as _translate,Ue as _unifyTranslations,yn as compareArrays,wn as count,Gn as crc32,En as createElement,Qn as decodeLicenseKey,Hn as delay,xt as diff,C as env,Zt as fastDiff,Wn as first,qn as formatHtml,xn as getAncestors,St as getBorderWidths,B as getCode,ke as getConstrainedViewportRect,In as getDataFromElement,Nn as getEnvKeystrokeText,bt as getLanguageDirection,Ne as getLocalizedArrowKeyCodeDirection,Rn as getOptimalPosition,Rt as getPositionedAncestor,An as getRangeFromMouseEvent,vn as getVisualViewportOffset,_ as global,kn as indexOf,Fn as insertAt,ne as insertToPriorityArray,Bn as isArrowKeyCode,en as isCombiningMark,Mn as isComment,Zn as isFeatureBlockedByLicenseKey,Dn as isForwardArrowKeyCode,nn as isHighSurrogateHalf,Xn as isInsideCombinedSymbol,Jn as isInsideEmojiSequence,Yn as isInsideSurrogatePair,J as isIterable,sn as isLowSurrogateHalf,ut as isNode,z as isRange,Z as isText,Sn as isValidAttributeName,_t as isViewWithFocusTracker,Le as isVisible,N as isWindow,g as keyCodes,mn as logError,gn as logWarning,Xe as objectToMap,Je as parseBase64EncodedObject,Ot as parseKeystroke,H as priorities,bn as releaseDate,Vn as remove,Pn as scrollViewportToShowTarget,Cn as setDataInElement,$n as spliceArray,rt as spy,We as toArray,Un as toMap,Ln as toUnit,X as uid,oe as version};
@@ -1 +1 @@
1
- import{Plugin as P}from"../../../../../@ckeditor_ckeditor5-core@47.5.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{MouseObserver as F,PointerObserver as q,ModelTreeWalker as G}from"../../../../../@ckeditor_ckeditor5-engine@47.5.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Delete as N}from"../../../../../@ckeditor_ckeditor5-typing@47.5.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{keyCodes as k,env as C,getLocalizedArrowKeyCodeDirection as Y,compareArrays as A,logWarning as X,CKEditorError as M,isForwardArrowKeyCode as J,getRangeFromMouseEvent as Q,global as x,DomEmitterMixin as Z,toArray as L,Rect as b,ObservableMixin as B,EmitterMixin as ee}from"../../../../../@ckeditor_ckeditor5-utils@47.5.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconReturnArrow as te,IconDragHandle as ie}from"../../../../../@ckeditor_ckeditor5-icons@47.5.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ContextualBalloon as oe,ToolbarView as ne,BalloonPanelView as se,IconView as re,Template as R,View as le}from"../../../../../@ckeditor_ckeditor5-ui@47.5.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{Enter as ce}from"../../../../../@ckeditor_ckeditor5-enter@47.5.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{throttle as ae}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.js";class de extends ee(){_stack=[];add(e,t){const i=this._stack,o=i[0];this._insertDescriptor(e);const n=i[0];o!==n&&!T(o,n)&&this.fire("change:top",{oldDescriptor:o,newDescriptor:n,writer:t})}remove(e,t){const i=this._stack,o=i[0];this._removeDescriptor(e);const n=i[0];o!==n&&!T(o,n)&&this.fire("change:top",{oldDescriptor:o,newDescriptor:n,writer:t})}_insertDescriptor(e){const t=this._stack,i=t.findIndex(n=>n.id===e.id);if(T(e,t[i]))return;i>-1&&t.splice(i,1);let o=0;for(;t[o]&&he(t[o],e);)o++;t.splice(o,0,e)}_removeDescriptor(e){const t=this._stack,i=t.findIndex(o=>o.id===e);i>-1&&t.splice(i,1)}}function T(s,e){return s&&e&&s.priority==e.priority&&S(s.classes)==S(e.classes)}function he(s,e){return s.priority>e.priority?!0:s.priority<e.priority?!1:S(s.classes)>S(e.classes)}function S(s){return Array.isArray(s)?s.sort().join(","):s}const ue="ck-widget",z="ck-widget_selected";function f(s){return s.is("element")?!!s.getCustomProperty("widget"):!1}function nt(s,e,t={}){if(!s.is("containerElement"))throw new M("widget-to-widget-wrong-element-type",null,{element:s});return e.setAttribute("contenteditable","false",s),e.addClass(ue,s),e.setCustomProperty("widget",!0,s),s.getFillerOffset=we,e.setCustomProperty("widgetLabel",[],s),t.label&&pe(s,t.label),t.hasSelectionHandle&&_e(s,e),K(s,e),s}function ge(s,e,t){if(e.classes&&t.addClass(L(e.classes),s),e.attributes)for(const i in e.attributes)t.setAttribute(i,e.attributes[i],s)}function fe(s,e,t){if(e.classes&&t.removeClass(L(e.classes),s),e.attributes)for(const i in e.attributes)t.removeAttribute(i,s)}function K(s,e,t=ge,i=fe){const o=new de;o.on("change:top",(l,c)=>{c.oldDescriptor&&i(s,c.oldDescriptor,c.writer),c.newDescriptor&&t(s,c.newDescriptor,c.writer)});const n=(l,c,a)=>o.add(c,a),r=(l,c,a)=>o.remove(c,a);e.setCustomProperty("addHighlight",n,s),e.setCustomProperty("removeHighlight",r,s)}function pe(s,e){s.getCustomProperty("widgetLabel").push(e)}function me(s){return s.getCustomProperty("widgetLabel").reduce((t,i)=>typeof i=="function"?t?t+". "+i():i():t?t+". "+i:i,"")}function st(s,e,t={}){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],s),t.withAriaRole!==!1&&e.setAttribute("role","textbox",s),s.isReadOnly||e.setAttribute("tabindex","-1",s),t.label&&e.setAttribute("aria-label",t.label,s),e.setAttribute("contenteditable",s.isReadOnly?"false":"true",s),s.on("change:isReadOnly",(i,o,n)=>{e.setAttribute("contenteditable",n?"false":"true",s),n?e.removeAttribute("tabindex",s):e.setAttribute("tabindex","-1",s)}),s.on("change:isFocused",(i,o,n)=>{n?e.addClass("ck-editor__nested-editable_focused",s):e.removeClass("ck-editor__nested-editable_focused",s)}),K(s,e),s}function rt(s,e){const t=s.getSelectedElement();if(t){const i=w(s);if(i)return e.createRange(e.createPositionAt(t,i))}return e.schema.findOptimalInsertionRange(s)}function we(){return null}function _e(s,e){const t=e.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(i){const o=this.toDomElement(i),n=new re;return n.set("content",ie),n.render(),o.appendChild(n.element),o});e.insert(e.createPositionAt(s,0),t),e.addClass(["ck-widget_with-selection-handle"],s)}function be(s){const e=l=>{const{width:c,paddingLeft:a,paddingRight:h}=l.ownerDocument.defaultView.getComputedStyle(l);return parseFloat(c)-(parseFloat(a)||0)-(parseFloat(h)||0)},t=s.parentElement;if(!t)return 0;let i=e(t);const o=5;let n=0,r=t;for(;isNaN(i);){if(r=r.parentElement,++n>o)return 0;i=e(r)}return i}function ye(s,e=new b(s)){const t=be(s);return t?e.width/t*100:0}const m="widget-type-around";function _(s,e,t){return!!s&&f(s)&&!t.isInline(e)}function ve(s){return s.closest(".ck-widget__type-around__button")}function Ee(s){return s.classList.contains("ck-widget__type-around__button_before")?"before":"after"}function Se(s,e){const t=s.closest(".ck-widget");return e.mapDomToView(t)}function w(s){return s.getAttribute(m)}const j=["before","after"],Pe=new DOMParser().parseFromString(te,"image/svg+xml").firstChild,V="ck-widget__type-around_disabled";class Te extends P{_currentFakeCaretModelElement=null;static get pluginName(){return"WidgetTypeAround"}static get isOfficialPlugin(){return!0}static get requires(){return[ce,N]}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",(i,o,n)=>{t.change(r=>{for(const l of t.document.roots)n?r.removeClass(V,l):r.addClass(V,l)}),n||e.model.change(r=>{r.removeSelectionAttribute(m)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(e,t){const i=this.editor,o=i.editing.view,n=i.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);i.execute("insertParagraph",{position:i.model.createPositionAt(e,t),attributes:n}),o.focus(),o.scrollToTheSelection()}_listenToIfEnabled(e,t,i,o){this.listenTo(e,t,(...n)=>{this.isEnabled&&i(...n)},o)}_insertParagraphAccordingToFakeCaretPosition(){const i=this.editor.model.document.selection,o=w(i);if(!o)return!1;const n=i.getSelectedElement();return this._insertParagraph(n,o),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,i=e.locale.t,o={before:i("Insert paragraph before block"),after:i("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(n,r,l)=>{const c=l.mapper.toViewElement(r.item);c&&_(c,r.item,t)&&(ke(l.writer,o,c),c.getCustomProperty("widgetLabel").push(()=>this.isEnabled?i("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,i=t.document.selection,o=t.schema,n=e.editing.view;this._listenToIfEnabled(n.document,"arrowKey",(l,c)=>{this._handleArrowKeyPress(l,c)},{context:[f,"$text"],priority:"high"}),this._listenToIfEnabled(i,"change:range",(l,c)=>{c.directChange&&e.model.change(a=>{a.removeSelectionAttribute(m)})}),this._listenToIfEnabled(t.document,"change:data",()=>{const l=i.getSelectedElement();if(l){const c=e.editing.mapper.toViewElement(l);if(_(c,l,o))return}e.model.change(c=>{c.removeSelectionAttribute(m)})}),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(l,c,a)=>{const h=a.writer;if(this._currentFakeCaretModelElement){const p=a.mapper.toViewElement(this._currentFakeCaretModelElement);p&&(h.removeClass(j.map(r),p),this._currentFakeCaretModelElement=null)}const d=c.selection.getSelectedElement();if(!d)return;const u=a.mapper.toViewElement(d);if(!_(u,d,o))return;const g=w(c.selection);g&&(h.addClass(r(g),u),this._currentFakeCaretModelElement=d)}),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(l,c,a)=>{a||e.model.change(h=>{h.removeSelectionAttribute(m)})});function r(l){return`ck-widget_type-around_show-fake-caret_${l}`}}_handleArrowKeyPress(e,t){const i=this.editor,o=i.model,n=o.document.selection,r=o.schema,l=i.editing.view;if(t.shiftKey)return;const c=t.keyCode,a=J(c,i.locale.contentLanguageDirection),h=l.document.selection.getSelectedElement(),d=i.editing.mapper.toModelElement(h);let u;_(h,d,r)?u=this._handleArrowKeyPressOnSelectedWidget(a):n.isCollapsed?u=this._handleArrowKeyPressWhenSelectionNextToAWidget(a):t.shiftKey||(u=this._handleArrowKeyPressWhenNonCollapsedSelection(a)),u&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const i=this.editor.model,o=i.document.selection,n=w(o);return i.change(r=>{if(n){if(!(n===(e?"after":"before")))return r.removeSelectionAttribute(m),!0}else return r.setSelectionAttribute(m,e?"after":"before"),!0;return!1})}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,i=t.model,o=i.schema,n=t.plugins.get("Widget"),r=n._getObjectElementNextToSelection(e),l=t.editing.mapper.toViewElement(r);return _(l,r,o)?(i.change(c=>{n._setSelectionOverElement(r),c.setSelectionAttribute(m,e?"before":"after")}),!0):!1}_handleArrowKeyPressWhenNonCollapsedSelection(e){const t=this.editor,i=t.model,o=i.schema,n=t.editing.mapper,r=i.document.selection,l=e?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter,c=n.toViewElement(l);return _(c,l,o)?(i.change(a=>{a.setSelection(l,"on"),a.setSelectionAttribute(m,e?"after":"before")}),!0):!1}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",(i,o)=>{const n=ve(o.domTarget);if(!n)return;const r=Ee(n),l=Se(n,t.domConverter),c=e.editing.mapper.toModelElement(l);this._insertParagraph(c,r),o.preventDefault(),i.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,i=e.editing.view;this._listenToIfEnabled(i.document,"enter",(o,n)=>{if(o.eventPhase!="atTarget")return;const r=t.getSelectedElement(),l=e.editing.mapper.toViewElement(r),c=e.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:_(l,r,c)&&(this._insertParagraph(r,n.isSoft?"before":"after"),a=!0),a&&(n.preventDefault(),o.stop())},{context:f})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",(i,o)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(o.selection=t.selection)},{priority:"high"}),C.isAndroid?this._listenToIfEnabled(t,"keydown",(i,o)=>{o.keyCode==229&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(t,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"highest"})}_enableDeleteIntegration(){const e=this.editor,t=e.editing.view,i=e.model,o=i.schema;this._listenToIfEnabled(t.document,"delete",(n,r)=>{if(n.eventPhase!="atTarget")return;const l=w(i.document.selection);if(!l)return;const c=r.direction,a=i.document.selection.getSelectedElement(),h=l==="before",d=c=="forward";if(h===d)e.execute("delete",{selection:i.createSelection(a,"on")});else{const g=o.getNearestSelectionRange(i.createPositionAt(a,l),c);if(g)if(!g.isCollapsed)i.change(p=>{p.setSelection(g),e.execute(d?"deleteForward":"delete")});else{const p=i.createSelection(g.start);if(i.modifySelection(p,{direction:c}),!p.focus.isEqual(g.start))i.change(v=>{v.setSelection(g),e.execute(d?"deleteForward":"delete")});else{const v=Re(o,g.start.parent);i.deleteContent(i.createSelection(v,"on"),{doNotAutoparagraph:!0})}}}r.preventDefault(),n.stop()},{context:f})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,i=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(o,[n,r])=>{if(r&&!r.is("documentSelection"))return;const l=w(i);if(l)return o.stop(),t.change(c=>{const a=i.getSelectedElement(),h=t.createPositionAt(a,l),d=c.createSelection(h),u=t.insertContent(n,d);return c.setSelection(d),u})},{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor,i=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",(o,n)=>{const[,r,l={}]=n;if(r&&!r.is("documentSelection"))return;const c=w(i);c&&(l.findOptimalPosition=c,n[3]=l)},{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,i=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",(o,[n])=>{if(n&&!n.is("documentSelection"))return;w(i)&&o.stop()},{priority:"high"})}}function ke(s,e,t){const i=s.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(o){const n=this.toDomElement(o);return Ce(n,e),Ae(n),n});s.insert(s.createPositionAt(t,"end"),i)}function Ce(s,e){for(const t of j){const i=new R({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${t}`],title:e[t],"aria-hidden":"true"},children:[s.ownerDocument.importNode(Pe,!0)]});s.appendChild(i.render())}}function Ae(s){const e=new R({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});s.appendChild(e.render())}function Re(s,e){let t=e;for(const i of e.getAncestors({parentFirst:!0})){if(i.childCount>1||s.isLimit(i))break;t=i}return t}function We(s){const e=s.model;return(t,i)=>{const o=i.keyCode==k.arrowup,n=i.keyCode==k.arrowdown,r=i.shiftKey,l=e.document.selection;if(!o&&!n)return;const c=n,a=xe(s,l,c);if(a){if(a.isCollapsed){if(l.isCollapsed)return;if(r)return}(a.isCollapsed||ze(s,a,c))&&(e.change(h=>{const d=c?a.end:a.start;if(r){const u=e.createSelection(l.anchor);u.setFocus(d),h.setSelection(u)}else h.setSelection(d)}),t.stop(),i.preventDefault(),i.stopPropagation())}}}function xe(s,e,t){const i=s.model;if(t){const o=e.focus,n=H(i,o,"forward");if(!n)return;const r=i.createRange(o,n),l=I(i.schema,r,"backward");if(l)return i.createRange(o,l)}else{const o=e.focus,n=H(i,o,"backward");if(!n)return;const r=i.createRange(n,o),l=I(i.schema,r,"forward");if(l)return i.createRange(l,o)}}function H(s,e,t){const i=s.schema,o=s.createRangeIn(e.root),n=t=="forward"?"elementStart":"elementEnd";for(const{previousPosition:r,item:l,type:c}of o.getWalker({startPosition:e,direction:t})){if(i.isLimit(l)&&!i.isInline(l))return r;if(c==n&&i.isBlock(l))return null}return null}function I(s,e,t){const i=t=="backward"?e.end:e.start;if(s.checkChild(i,"$text"))return i;for(const{nextPosition:o}of e.getWalker({direction:t}))if(s.checkChild(o,"$text"))return o}function ze(s,e,t){const i=s.model,o=s.view.domConverter;if(t){const a=i.createSelection(e.start);i.modifySelection(a),!a.focus.isAtEnd&&!e.start.isEqual(a.focus)&&(e=i.createRange(a.focus,e.end))}const n=s.mapper.toViewRange(e),r=o.viewRangeToDom(n),l=b.getDomRangeRects(r);let c;for(const a of l){if(c===void 0){c=Math.round(a.bottom);continue}if(Math.round(a.top)>=c)return!1;c=Math.max(c,Math.round(a.bottom))}return!0}class lt extends P{_previouslySelected=new Set;static get pluginName(){return"Widget"}static get isOfficialPlugin(){return!0}static get requires(){return[Te,N]}init(){const e=this.editor,t=e.editing.view,i=t.document,o=e.t;this.editor.editing.downcastDispatcher.on("selection",(n,r,l)=>{const c=l.writer,a=r.selection;if(a.isCollapsed)return;const h=a.getSelectedElement();if(!h)return;const d=e.editing.mapper.toViewElement(h);f(d)&&l.consumable.consume(a,"selection")&&c.setSelection(c.createRangeOn(d),{fake:!0,label:me(d)})}),this.editor.editing.downcastDispatcher.on("selection",(n,r,l)=>{this._clearPreviouslySelectedWidgets(l.writer);const c=l.writer,a=c.document.selection;let h=null;for(const d of a.getRanges())for(const u of d){const g=u.item;f(g)&&!Oe(g,h)&&(c.addClass(z,g),this._previouslySelected.add(g),h=g)}},{priority:"low"}),t.addObserver(F),t.addObserver(q),this.listenTo(i,"mousedown",(...n)=>this._onMousedown(...n)),this.listenTo(i,"pointerdown",(...n)=>this._onPointerdown(...n)),this.listenTo(i,"arrowKey",(...n)=>{this._handleSelectionChangeOnArrowKeyPress(...n)},{context:[f,"$text"]}),this.listenTo(i,"arrowKey",(...n)=>{this._preventDefaultOnArrowKeyPress(...n)},{context:"$root"}),this.listenTo(i,"arrowKey",We(this.editor.editing),{context:"$text"}),this.listenTo(i,"delete",(n,r)=>{this._handleDelete(r.direction=="forward")&&(r.preventDefault(),n.stop())},{context:"$root"}),this.listenTo(i,"tab",(n,r)=>{this._selectNextEditable(r.shiftKey?"backward":"forward")&&(t.scrollToTheSelection(),r.preventDefault(),n.stop())},{context:n=>f(n)||n.is("editableElement"),priority:"low"}),this.listenTo(i,"keydown",(n,r)=>{r.keystroke==k.esc&&this._selectAncestorWidget()&&(r.preventDefault(),n.stop())},{context:n=>n.is("editableElement"),priority:"low"}),e.accessibility.addKeystrokeInfoGroup({id:"widget",label:o("Keystrokes that can be used when a widget is selected (for example: image, table, etc.)"),keystrokes:[{label:o("Move focus from an editable area back to the parent widget"),keystroke:"Esc"},{label:o("Insert a new paragraph directly after a widget"),keystroke:"Enter"},{label:o("Insert a new paragraph directly before a widget"),keystroke:"Shift+Enter"},{label:o("Move the caret to allow typing directly before a widget"),keystroke:[["arrowup"],["arrowleft"]]},{label:o("Move the caret to allow typing directly after a widget"),keystroke:[["arrowdown"],["arrowright"]]}]})}_onMousedown(e,t){const i=t.target;i&&t.domEvent.detail>=3&&this._selectBlockContent(i)&&t.preventDefault()}_onPointerdown(e,t){if(!t.domEvent.isPrimary)return;const i=this.editor,o=i.editing.view,n=o.document;let r=t.target;if(!r)return;if(!f(r)){const c=Ie(r);if(!c)return;if(f(c))r=c;else{const a=De(o,t);if(a&&f(a))r=a;else return}}(C.isAndroid||C.isiOS)&&t.preventDefault(),n.isFocused||o.focus();const l=i.editing.mapper.toModelElement(r);this._setSelectionOverElement(l)}_selectBlockContent(e){const t=this.editor,i=t.model,o=t.editing.mapper,n=i.schema,r=o.findMappedViewAncestor(this.editor.editing.view.createPositionAt(e,0)),l=Fe(o.toModelElement(r),i.schema);return l?(i.change(c=>{const a=n.isLimit(l)?null:Ne(c.createPositionAfter(l),n),h=c.createPositionAt(l,0),d=a?c.createPositionAt(a,0):c.createPositionAt(l,"end");c.setSelection(c.createRange(h,d))}),!0):!1}_handleSelectionChangeOnArrowKeyPress(e,t){const i=t.keyCode,o=this.editor.model,n=o.schema,r=o.document.selection,l=r.getSelectedElement(),c=Y(i,this.editor.locale.contentLanguageDirection),a=c=="down"||c=="right",h=c=="up"||c=="down";if(!t.shiftKey&&!r.isCollapsed){if(Ve(r,n)){const E=a?r.getLastPosition():r.getFirstPosition(),W=n.getNearestSelectionRange(E,a?"forward":"backward");W&&(o.change(U=>{U.setSelection(W)}),t.preventDefault(),e.stop())}return}const d=He(o,a),u=o.createSelection(d);if(o.modifySelection(u,{direction:a?"forward":"backward"}),u.isEqual(d))return;u.focus.isTouching(d.focus)&&o.modifySelection(u,{direction:a?"forward":"backward"});const g=a?d.focus.nodeBefore:d.focus.nodeAfter,p=u.focus.nodeBefore,v=u.focus.nodeAfter,y=a?p:v;if(t.shiftKey)(l&&n.isObject(l)||y&&n.isObject(y)||g&&n.isObject(g))&&(o.change(E=>{E.setSelection(u)}),t.preventDefault(),e.stop());else if(y&&n.isObject(y)){if(n.isInline(y)&&h)return;o.change(E=>{E.setSelection(y,"on")}),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){const i=this.editor.model,o=i.schema,n=i.document.selection.getSelectedElement();n&&o.isObject(n)&&(t.preventDefault(),e.stop())}_handleDelete(e){const i=this.editor.model.document.selection;if(!this.editor.model.canEditAt(i)||!i.isCollapsed)return;const o=this._getObjectElementNextToSelection(e);if(o)return this.editor.model.change(n=>{let r=i.anchor.parent;for(;r.isEmpty;){const l=r;r=l.parent,n.remove(l)}this._setSelectionOverElement(o)}),!0}_setSelectionOverElement(e){this.editor.model.change(t=>{t.setSelection(t.createRangeOn(e))})}_getObjectElementNextToSelection(e){const t=this.editor.model,i=t.schema,o=t.document.selection,n=t.createSelection(o);if(t.modifySelection(n,{direction:e?"forward":"backward"}),n.isEqual(o))return null;const r=e?n.focus.nodeBefore:n.focus.nodeAfter;return r&&i.isObject(r)?r:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass(z,t);this._previouslySelected.clear()}_selectNextEditable(e){const t=this.editor.editing,i=t.view,o=this.editor.model,n=i.document.selection,r=o.document.selection;let l;if(r.rangeCount>1){const a=r.isBackward?r.getFirstRange():r.getLastRange();l=t.mapper.toViewPosition(e=="forward"?a.end:a.start)}else l=e=="forward"?n.getFirstPosition():n.getLastPosition();const c=this._findNextFocusRange(l,e);return c?(o.change(a=>{a.setSelection(c)}),!0):!1}_findNextFocusRange(e,t){const i=this.editor.editing,o=i.view,n=this.editor.model,r=o.document.selection,l=r.editableElement,c=l.getPath();let a=r.getSelectedElement();a&&!f(a)&&(a=null);const h=t=="forward"?o.createRange(e,o.createPositionAt(e.root,"end")):o.createRange(o.createPositionAt(e.root,0),e);for(const{nextPosition:d}of h.getWalker({direction:t})){const u=d.parent;if(f(u)&&u!=a){const g=i.mapper.toModelElement(u);if(!n.schema.isBlock(g))continue;if(A(c,u.getPath())!="extension")return n.createRangeOn(g)}else if(u.is("editableElement")){if(u==l&&!a)continue;const g=i.mapper.toModelPosition(d),p=n.schema.getNearestSelectionRange(g,t);if(!p)continue;return u==l&&a?p:A(c,u.getPath())!="extension"?n.createRangeIn(n.schema.getLimitElement(p)):p}}return null}_selectAncestorWidget(){const e=this.editor,t=e.editing.mapper,o=e.editing.view.document.selection.getFirstPosition().parent,r=(o.is("$text")?o.parent:o).findAncestor(f);if(!r)return!1;const l=t.toModelElement(r);return l?(e.model.change(c=>{c.setSelection(l,"on")}),!0):!1}}function Ve(s,e){const t=s.getFirstPosition(),i=s.getLastPosition(),o=t.nodeAfter,n=i.nodeBefore;return!!o&&e.isObject(o)||!!n&&e.isObject(n)}function He(s,e){const t=s.document.selection,i=t.getSelectedElement(),o=w(t);return i&&o=="before"?s.createSelection(i,"before"):i&&o=="after"?s.createSelection(i,"after"):s.createSelection(t.getRanges(),{backward:i&&s.schema.isObject(i)?!e:t.isBackward})}function Ie(s){let e=s;for(;e;){if(e.is("editableElement")||f(e))return e;e=e.parent}return null}function De(s,e){const t=Q(e.domEvent);let i=null;if(t?i=s.domConverter.domRangeToView(t):i=s.createRange(s.createPositionAt(e.target,0)),!i)return null;const o=i.start;if(!o.parent)return null;let n=o.parent;return o.parent.is("editableElement")&&(o.isAtEnd&&o.nodeBefore?n=o.nodeBefore:o.isAtStart&&o.nodeAfter&&(n=o.nodeAfter)),n.is("$text")?n.parent:n}function Oe(s,e){return e?Array.from(s.getAncestors()).includes(e):!1}function Fe(s,e){for(const t of s.getAncestors({includeSelf:!0,parentFirst:!0})){if(e.checkChild(t,"$text"))return t;if(e.isLimit(t)&&!e.isObject(t))break}return null}function Ne(s,e){const t=new G({startPosition:s});for(const{item:i}of t){if(e.isLimit(i)||!i.is("element"))return null;if(e.checkChild(i,"$text"))return i}return null}class ct extends P{_toolbarDefinitions=new Map;_balloon;static get requires(){return[oe]}static get pluginName(){return"WidgetToolbarRepository"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",i=>{Me(e.editing.view.document.selection)&&i.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:i,getRelatedElement:o,balloonClassName:n="ck-toolbar-container",positions:r}){if(!i.length){X("widget-toolbar-no-items",{toolbarId:e});return}const l=this.editor,c=l.t,a=new ne(l.locale);if(a.ariaLabel=t||c("Widget toolbar"),this._toolbarDefinitions.has(e))throw new M("widget-toolbar-duplicated",this,{toolbarId:e});const h={view:a,getRelatedElement:o,balloonClassName:n,itemsConfig:i,positions:r,initialized:!1};l.ui.addToolbar(a,{isContextual:!0,beforeFocus:()=>{const d=o(l.editing.view.document.selection);d&&this._showToolbar(h,d)},afterBlur:()=>{this._hideToolbar(h)}}),this._toolbarDefinitions.set(e,h)}_updateToolbarsVisibility(){let e=0,t=null,i=null;for(const o of this._toolbarDefinitions.values()){const n=o.getRelatedElement(this.editor.editing.view.document.selection);if(!this.isEnabled||!n)this._isToolbarInBalloon(o)&&this._hideToolbar(o);else if(!this.editor.ui.focusTracker.isFocused)this._isToolbarVisible(o)&&this._hideToolbar(o);else{const r=n.getAncestors().length;r>e&&(e=r,t=n,i=o)}}i&&this._showToolbar(i,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?D(this.editor,t,e.positions):this._isToolbarInBalloon(e)||(e.initialized||(e.initialized=!0,e.view.fillFromConfig(e.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:e.view,position:$(this.editor,t,e.positions),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const i of this._toolbarDefinitions.values())if(this._isToolbarVisible(i)){const o=i.getRelatedElement(this.editor.editing.view.document.selection);D(this.editor,o,e.positions)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function D(s,e,t){const i=s.plugins.get("ContextualBalloon"),o=$(s,e,t);i.updatePosition(o)}function $(s,e,t){const i=s.editing.view,o=se.defaultPositions;return{target:i.domConverter.mapViewToDom(e),positions:t||[o.northArrowSouth,o.northArrowSouthWest,o.northArrowSouthEast,o.southArrowNorth,o.southArrowNorthWest,o.southArrowNorthEast,o.viewportStickyNorth]}}function Me(s){const e=s.getSelectedElement();return!!(e&&f(e))}class Le extends B(){_referenceCoordinates;_options;_originalWidth;_originalHeight;_originalWidthPercents;_aspectRatio;constructor(e){super(),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=e,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(e,t,i){const o=new b(t);this.activeHandlePosition=je(e),this._referenceCoordinates=Be(t,$e(this.activeHandlePosition)),this._originalWidth=o.width,this._originalHeight=o.height,this._aspectRatio=o.width/o.height;const n=i.style.width;n&&n.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(n):this._originalWidthPercents=ye(i,o)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}function Be(s,e){const t=new b(s),i=e.split("-"),o={x:i[1]=="right"?t.right:t.left,y:i[0]=="bottom"?t.bottom:t.top};return o.x+=s.ownerDocument.defaultView.scrollX,o.y+=s.ownerDocument.defaultView.scrollY,o}function Ke(s){return`ck-widget__resizer__handle-${s}`}function je(s){const e=["top-left","top-right","bottom-right","bottom-left"];for(const t of e)if(s.classList.contains(Ke(t)))return t}function $e(s){const e=s.split("-"),t={top:"bottom",bottom:"top",left:"right",right:"left"};return`${t[e[0]]}-${t[e[1]]}`}class Ue extends le{constructor(){super();const e=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",e.to("_viewPosition",t=>t?`ck-orientation-${t}`:"")],style:{display:e.if("_isVisible","none",t=>!t)}},children:[{text:e.to("_label")}]})}_bindToState(e,t){this.bind("_isVisible").to(t,"proposedWidth",t,"proposedHeight",(i,o)=>i!==null&&o!==null),this.bind("_label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",(i,o,n)=>e.unit==="px"?`${i}×${o}`:`${n}%`),this.bind("_viewPosition").to(t,"activeHandlePosition",t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",(i,o,n)=>o<50||n<50?"above-center":i)}_dismiss(){this.unbind(),this._isVisible=!1}}class O extends B(){_state;_sizeView;_options;_viewResizerWrapper=null;_initialViewWidth;constructor(e){super(),this._options=e,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",(t,i)=>t&&i),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",t=>{!this.state.proposedWidth&&!this.state.proposedWidthPercents&&(this._cleanup(),t.stop())},{priority:"high"})}get state(){return this._state}show(){this._options.editor.editing.view.change(t=>{t.removeClass("ck-hidden",this._viewResizerWrapper)})}hide(){this._options.editor.editing.view.change(t=>{t.addClass("ck-hidden",this._viewResizerWrapper)})}attach(){const e=this,t=this._options.viewElement;this._options.editor.editing.view.change(o=>{const n=o.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},function(r){const l=this.toDomElement(r);return e._appendHandles(l),e._appendSizeUI(l),l});o.insert(o.createPositionAt(t,"end"),n),o.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=n,this.isVisible||this.hide()}),this.on("change:isVisible",()=>{this.isVisible?(this.show(),this.redraw()):this.hide()})}begin(e){this._state=new Le(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}updateSize(e){const t=this._proposeNewSize(e);this._options.editor.editing.view.change(a=>{const h=this._options.unit||"%",d=(h==="%"?t.widthPercents:t.width)+h;a.setStyle("width",d,this._options.viewElement)});const o=this._getHandleHost(),n=new b(o),r=Math.round(n.width),l=Math.round(n.height),c=new b(o);t.width=Math.round(c.width),t.height=Math.round(c.height),this.redraw(n),this.state.update({...t,handleHostWidth:r,handleHostHeight:l})}commit(){const e=this._options.unit||"%",t=(e==="%"?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change(()=>{this._cleanup(),this._options.onCommit(t)})}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(e){const t=this._domResizerWrapper;if(!Ye(t))return;const i=t.parentElement,o=this._getHandleHost(),n=this._viewResizerWrapper,r=[n.getStyle("width"),n.getStyle("height"),n.getStyle("left"),n.getStyle("top")];let l;if(i.isSameNode(o)){const c=e||new b(o);l=[c.width+"px",c.height+"px",void 0,void 0]}else l=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];A(r,l)!=="same"&&this._options.editor.editing.view.change(c=>{c.setStyle({width:l[0],height:l[1],left:l[2],top:l[3]},n)})}containsHandle(e){return this._domResizerWrapper.contains(e)}static isResizeHandle(e){return e.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss(),this._options.editor.editing.view.change(t=>{t.setStyle("width",this._initialViewWidth,this._options.viewElement)})}_proposeNewSize(e){const t=this.state,i=Ge(e),o=this._options.isCentered?this._options.isCentered(this):!0,n={x:t._referenceCoordinates.x-(i.x+t.originalWidth),y:i.y-t.originalHeight-t._referenceCoordinates.y};o&&t.activeHandlePosition.endsWith("-right")&&(n.x=i.x-(t._referenceCoordinates.x+t.originalWidth)),o&&(n.x*=2);let r=Math.abs(t.originalWidth+n.x),l=Math.abs(t.originalHeight+n.y);return(r/t.aspectRatio>l?"width":"height")=="width"?l=r/t.aspectRatio:r=l*t.aspectRatio,{width:Math.round(r),height:Math.round(l),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*r*100)/100,100)}}_getResizeHost(){const e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}_getHandleHost(){const e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const i of t)e.appendChild(new R({tag:"div",attributes:{class:`ck-widget__resizer__handle ${qe(i)}`}}).render())}_appendSizeUI(e){this._sizeView=new Ue,this._sizeView.render(),e.appendChild(this._sizeView.element)}}function qe(s){return`ck-widget__resizer__handle-${s}`}function Ge(s){return{x:s.pageX,y:s.pageY}}function Ye(s){return s&&s.ownerDocument&&s.ownerDocument.contains(s)}class at extends P{_resizers=new Map;_observer;_redrawSelectedResizerThrottled;static get pluginName(){return"WidgetResize"}static get isOfficialPlugin(){return!0}init(){const e=this.editor.editing,t=x.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),e.view.addObserver(F),this._observer=new(Z()),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=ae(()=>this.redrawSelectedResizer(),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",()=>{for(const[o,n]of this._resizers)o.isAttached()||(this._resizers.delete(o),n.destroy())},{priority:"lowest"}),this._observer.listenTo(x.window,"resize",this._redrawSelectedResizerThrottled);const i=this.editor.editing.view.document.selection;i.on("change",()=>{const o=i.getSelectedElement(),n=this.getResizerByViewElement(o)||null;n?this.select(n):this.deselect()})}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const e of this._resizers.values())e.destroy();this._redrawSelectedResizerThrottled.cancel()}select(e){this.deselect(),this.selectedResizer=e,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(e){const t=new O(e),i=this.editor.plugins;if(t.attach(),i.has("WidgetToolbarRepository")){const r=i.get("WidgetToolbarRepository");t.on("begin",()=>{r.forceDisabled("resize")},{priority:"lowest"}),t.on("cancel",()=>{r.clearForceDisabled("resize")},{priority:"highest"}),t.on("commit",()=>{r.clearForceDisabled("resize")},{priority:"highest"})}this._resizers.set(e.viewElement,t);const n=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(n)==t&&this.select(t),t}getResizerByViewElement(e){return this._resizers.get(e)}_getResizerByHandle(e){for(const t of this._resizers.values())if(t.containsHandle(e))return t}_mouseDownListener(e,t){const i=t.domTarget;O.isResizeHandle(i)&&(this._activeResizer=this._getResizerByHandle(i)||null,this._activeResizer&&(this._activeResizer.begin(i),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}export{ue as WIDGET_CLASS_NAME,z as WIDGET_SELECTED_CLASS_NAME,lt as Widget,de as WidgetHighlightStack,at as WidgetResize,Le as WidgetResizeState,O as WidgetResizer,ct as WidgetToolbarRepository,Te as WidgetTypeAround,m as _WIDGET_TYPE_AROUND_SELECTION_ATTRIBUTE,Ue as _WidgetSizeView,ve as _getClosestWidgetTypeAroundDomButton,Se as _getClosestWidgetViewElement,Ee as _getWidgetTypeAroundButtonPosition,w as _getWidgetTypeAroundFakeCaretPosition,be as calculateResizeHostAncestorWidth,ye as calculateResizeHostPercentageWidth,rt as findOptimalInsertionRange,me as getLabel,_ as isTypeAroundWidget,f as isWidget,K as setHighlightHandling,pe as setLabel,nt as toWidget,st as toWidgetEditable,We as verticalWidgetNavigationHandler};
1
+ import{Plugin as P}from"../../../../../@ckeditor_ckeditor5-core@47.6.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{MouseObserver as F,PointerObserver as q,ModelTreeWalker as G}from"../../../../../@ckeditor_ckeditor5-engine@47.6.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Delete as N}from"../../../../../@ckeditor_ckeditor5-typing@47.6.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{keyCodes as k,env as C,getLocalizedArrowKeyCodeDirection as Y,compareArrays as A,logWarning as X,CKEditorError as M,isForwardArrowKeyCode as J,getRangeFromMouseEvent as Q,global as x,DomEmitterMixin as Z,toArray as L,Rect as b,ObservableMixin as B,EmitterMixin as ee}from"../../../../../@ckeditor_ckeditor5-utils@47.6.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconReturnArrow as te,IconDragHandle as ie}from"../../../../../@ckeditor_ckeditor5-icons@47.6.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ContextualBalloon as oe,ToolbarView as ne,BalloonPanelView as se,IconView as re,Template as R,View as le}from"../../../../../@ckeditor_ckeditor5-ui@47.6.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{Enter as ce}from"../../../../../@ckeditor_ckeditor5-enter@47.6.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{throttle as ae}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.js";class de extends ee(){_stack=[];add(e,t){const i=this._stack,o=i[0];this._insertDescriptor(e);const n=i[0];o!==n&&!T(o,n)&&this.fire("change:top",{oldDescriptor:o,newDescriptor:n,writer:t})}remove(e,t){const i=this._stack,o=i[0];this._removeDescriptor(e);const n=i[0];o!==n&&!T(o,n)&&this.fire("change:top",{oldDescriptor:o,newDescriptor:n,writer:t})}_insertDescriptor(e){const t=this._stack,i=t.findIndex(n=>n.id===e.id);if(T(e,t[i]))return;i>-1&&t.splice(i,1);let o=0;for(;t[o]&&he(t[o],e);)o++;t.splice(o,0,e)}_removeDescriptor(e){const t=this._stack,i=t.findIndex(o=>o.id===e);i>-1&&t.splice(i,1)}}function T(s,e){return s&&e&&s.priority==e.priority&&S(s.classes)==S(e.classes)}function he(s,e){return s.priority>e.priority?!0:s.priority<e.priority?!1:S(s.classes)>S(e.classes)}function S(s){return Array.isArray(s)?s.sort().join(","):s}const ue="ck-widget",z="ck-widget_selected";function f(s){return s.is("element")?!!s.getCustomProperty("widget"):!1}function nt(s,e,t={}){if(!s.is("containerElement"))throw new M("widget-to-widget-wrong-element-type",null,{element:s});return e.setAttribute("contenteditable","false",s),e.addClass(ue,s),e.setCustomProperty("widget",!0,s),s.getFillerOffset=we,e.setCustomProperty("widgetLabel",[],s),t.label&&pe(s,t.label),t.hasSelectionHandle&&_e(s,e),K(s,e),s}function ge(s,e,t){if(e.classes&&t.addClass(L(e.classes),s),e.attributes)for(const i in e.attributes)t.setAttribute(i,e.attributes[i],s)}function fe(s,e,t){if(e.classes&&t.removeClass(L(e.classes),s),e.attributes)for(const i in e.attributes)t.removeAttribute(i,s)}function K(s,e,t=ge,i=fe){const o=new de;o.on("change:top",(l,c)=>{c.oldDescriptor&&i(s,c.oldDescriptor,c.writer),c.newDescriptor&&t(s,c.newDescriptor,c.writer)});const n=(l,c,a)=>o.add(c,a),r=(l,c,a)=>o.remove(c,a);e.setCustomProperty("addHighlight",n,s),e.setCustomProperty("removeHighlight",r,s)}function pe(s,e){s.getCustomProperty("widgetLabel").push(e)}function me(s){return s.getCustomProperty("widgetLabel").reduce((t,i)=>typeof i=="function"?t?t+". "+i():i():t?t+". "+i:i,"")}function st(s,e,t={}){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],s),t.withAriaRole!==!1&&e.setAttribute("role","textbox",s),s.isReadOnly||e.setAttribute("tabindex","-1",s),t.label&&e.setAttribute("aria-label",t.label,s),e.setAttribute("contenteditable",s.isReadOnly?"false":"true",s),s.on("change:isReadOnly",(i,o,n)=>{e.setAttribute("contenteditable",n?"false":"true",s),n?e.removeAttribute("tabindex",s):e.setAttribute("tabindex","-1",s)}),s.on("change:isFocused",(i,o,n)=>{n?e.addClass("ck-editor__nested-editable_focused",s):e.removeClass("ck-editor__nested-editable_focused",s)}),K(s,e),s}function rt(s,e){const t=s.getSelectedElement();if(t){const i=w(s);if(i)return e.createRange(e.createPositionAt(t,i))}return e.schema.findOptimalInsertionRange(s)}function we(){return null}function _e(s,e){const t=e.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(i){const o=this.toDomElement(i),n=new re;return n.set("content",ie),n.render(),o.appendChild(n.element),o});e.insert(e.createPositionAt(s,0),t),e.addClass(["ck-widget_with-selection-handle"],s)}function be(s){const e=l=>{const{width:c,paddingLeft:a,paddingRight:h}=l.ownerDocument.defaultView.getComputedStyle(l);return parseFloat(c)-(parseFloat(a)||0)-(parseFloat(h)||0)},t=s.parentElement;if(!t)return 0;let i=e(t);const o=5;let n=0,r=t;for(;isNaN(i);){if(r=r.parentElement,++n>o)return 0;i=e(r)}return i}function ye(s,e=new b(s)){const t=be(s);return t?e.width/t*100:0}const m="widget-type-around";function _(s,e,t){return!!s&&f(s)&&!t.isInline(e)}function ve(s){return s.closest(".ck-widget__type-around__button")}function Ee(s){return s.classList.contains("ck-widget__type-around__button_before")?"before":"after"}function Se(s,e){const t=s.closest(".ck-widget");return e.mapDomToView(t)}function w(s){return s.getAttribute(m)}const j=["before","after"],Pe=new DOMParser().parseFromString(te,"image/svg+xml").firstChild,V="ck-widget__type-around_disabled";class Te extends P{_currentFakeCaretModelElement=null;static get pluginName(){return"WidgetTypeAround"}static get isOfficialPlugin(){return!0}static get requires(){return[ce,N]}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",(i,o,n)=>{t.change(r=>{for(const l of t.document.roots)n?r.removeClass(V,l):r.addClass(V,l)}),n||e.model.change(r=>{r.removeSelectionAttribute(m)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(e,t){const i=this.editor,o=i.editing.view,n=i.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);i.execute("insertParagraph",{position:i.model.createPositionAt(e,t),attributes:n}),o.focus(),o.scrollToTheSelection()}_listenToIfEnabled(e,t,i,o){this.listenTo(e,t,(...n)=>{this.isEnabled&&i(...n)},o)}_insertParagraphAccordingToFakeCaretPosition(){const i=this.editor.model.document.selection,o=w(i);if(!o)return!1;const n=i.getSelectedElement();return this._insertParagraph(n,o),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,i=e.locale.t,o={before:i("Insert paragraph before block"),after:i("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(n,r,l)=>{const c=l.mapper.toViewElement(r.item);c&&_(c,r.item,t)&&(ke(l.writer,o,c),c.getCustomProperty("widgetLabel").push(()=>this.isEnabled?i("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,i=t.document.selection,o=t.schema,n=e.editing.view;this._listenToIfEnabled(n.document,"arrowKey",(l,c)=>{this._handleArrowKeyPress(l,c)},{context:[f,"$text"],priority:"high"}),this._listenToIfEnabled(i,"change:range",(l,c)=>{c.directChange&&e.model.change(a=>{a.removeSelectionAttribute(m)})}),this._listenToIfEnabled(t.document,"change:data",()=>{const l=i.getSelectedElement();if(l){const c=e.editing.mapper.toViewElement(l);if(_(c,l,o))return}e.model.change(c=>{c.removeSelectionAttribute(m)})}),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(l,c,a)=>{const h=a.writer;if(this._currentFakeCaretModelElement){const p=a.mapper.toViewElement(this._currentFakeCaretModelElement);p&&(h.removeClass(j.map(r),p),this._currentFakeCaretModelElement=null)}const d=c.selection.getSelectedElement();if(!d)return;const u=a.mapper.toViewElement(d);if(!_(u,d,o))return;const g=w(c.selection);g&&(h.addClass(r(g),u),this._currentFakeCaretModelElement=d)}),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(l,c,a)=>{a||e.model.change(h=>{h.removeSelectionAttribute(m)})});function r(l){return`ck-widget_type-around_show-fake-caret_${l}`}}_handleArrowKeyPress(e,t){const i=this.editor,o=i.model,n=o.document.selection,r=o.schema,l=i.editing.view;if(t.shiftKey)return;const c=t.keyCode,a=J(c,i.locale.contentLanguageDirection),h=l.document.selection.getSelectedElement(),d=i.editing.mapper.toModelElement(h);let u;_(h,d,r)?u=this._handleArrowKeyPressOnSelectedWidget(a):n.isCollapsed?u=this._handleArrowKeyPressWhenSelectionNextToAWidget(a):t.shiftKey||(u=this._handleArrowKeyPressWhenNonCollapsedSelection(a)),u&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const i=this.editor.model,o=i.document.selection,n=w(o);return i.change(r=>{if(n){if(!(n===(e?"after":"before")))return r.removeSelectionAttribute(m),!0}else return r.setSelectionAttribute(m,e?"after":"before"),!0;return!1})}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,i=t.model,o=i.schema,n=t.plugins.get("Widget"),r=n._getObjectElementNextToSelection(e),l=t.editing.mapper.toViewElement(r);return _(l,r,o)?(i.change(c=>{n._setSelectionOverElement(r),c.setSelectionAttribute(m,e?"before":"after")}),!0):!1}_handleArrowKeyPressWhenNonCollapsedSelection(e){const t=this.editor,i=t.model,o=i.schema,n=t.editing.mapper,r=i.document.selection,l=e?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter,c=n.toViewElement(l);return _(c,l,o)?(i.change(a=>{a.setSelection(l,"on"),a.setSelectionAttribute(m,e?"after":"before")}),!0):!1}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",(i,o)=>{const n=ve(o.domTarget);if(!n)return;const r=Ee(n),l=Se(n,t.domConverter),c=e.editing.mapper.toModelElement(l);this._insertParagraph(c,r),o.preventDefault(),i.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,i=e.editing.view;this._listenToIfEnabled(i.document,"enter",(o,n)=>{if(o.eventPhase!="atTarget")return;const r=t.getSelectedElement(),l=e.editing.mapper.toViewElement(r),c=e.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:_(l,r,c)&&(this._insertParagraph(r,n.isSoft?"before":"after"),a=!0),a&&(n.preventDefault(),o.stop())},{context:f})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",(i,o)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(o.selection=t.selection)},{priority:"high"}),C.isAndroid?this._listenToIfEnabled(t,"keydown",(i,o)=>{o.keyCode==229&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(t,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"highest"})}_enableDeleteIntegration(){const e=this.editor,t=e.editing.view,i=e.model,o=i.schema;this._listenToIfEnabled(t.document,"delete",(n,r)=>{if(n.eventPhase!="atTarget")return;const l=w(i.document.selection);if(!l)return;const c=r.direction,a=i.document.selection.getSelectedElement(),h=l==="before",d=c=="forward";if(h===d)e.execute("delete",{selection:i.createSelection(a,"on")});else{const g=o.getNearestSelectionRange(i.createPositionAt(a,l),c);if(g)if(!g.isCollapsed)i.change(p=>{p.setSelection(g),e.execute(d?"deleteForward":"delete")});else{const p=i.createSelection(g.start);if(i.modifySelection(p,{direction:c}),!p.focus.isEqual(g.start))i.change(v=>{v.setSelection(g),e.execute(d?"deleteForward":"delete")});else{const v=Re(o,g.start.parent);i.deleteContent(i.createSelection(v,"on"),{doNotAutoparagraph:!0})}}}r.preventDefault(),n.stop()},{context:f})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,i=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(o,[n,r])=>{if(r&&!r.is("documentSelection"))return;const l=w(i);if(l)return o.stop(),t.change(c=>{const a=i.getSelectedElement(),h=t.createPositionAt(a,l),d=c.createSelection(h),u=t.insertContent(n,d);return c.setSelection(d),u})},{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor,i=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",(o,n)=>{const[,r,l={}]=n;if(r&&!r.is("documentSelection"))return;const c=w(i);c&&(l.findOptimalPosition=c,n[3]=l)},{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,i=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",(o,[n])=>{if(n&&!n.is("documentSelection"))return;w(i)&&o.stop()},{priority:"high"})}}function ke(s,e,t){const i=s.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(o){const n=this.toDomElement(o);return Ce(n,e),Ae(n),n});s.insert(s.createPositionAt(t,"end"),i)}function Ce(s,e){for(const t of j){const i=new R({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${t}`],title:e[t],"aria-hidden":"true"},children:[s.ownerDocument.importNode(Pe,!0)]});s.appendChild(i.render())}}function Ae(s){const e=new R({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});s.appendChild(e.render())}function Re(s,e){let t=e;for(const i of e.getAncestors({parentFirst:!0})){if(i.childCount>1||s.isLimit(i))break;t=i}return t}function We(s){const e=s.model;return(t,i)=>{const o=i.keyCode==k.arrowup,n=i.keyCode==k.arrowdown,r=i.shiftKey,l=e.document.selection;if(!o&&!n)return;const c=n,a=xe(s,l,c);if(a){if(a.isCollapsed){if(l.isCollapsed)return;if(r)return}(a.isCollapsed||ze(s,a,c))&&(e.change(h=>{const d=c?a.end:a.start;if(r){const u=e.createSelection(l.anchor);u.setFocus(d),h.setSelection(u)}else h.setSelection(d)}),t.stop(),i.preventDefault(),i.stopPropagation())}}}function xe(s,e,t){const i=s.model;if(t){const o=e.focus,n=H(i,o,"forward");if(!n)return;const r=i.createRange(o,n),l=I(i.schema,r,"backward");if(l)return i.createRange(o,l)}else{const o=e.focus,n=H(i,o,"backward");if(!n)return;const r=i.createRange(n,o),l=I(i.schema,r,"forward");if(l)return i.createRange(l,o)}}function H(s,e,t){const i=s.schema,o=s.createRangeIn(e.root),n=t=="forward"?"elementStart":"elementEnd";for(const{previousPosition:r,item:l,type:c}of o.getWalker({startPosition:e,direction:t})){if(i.isLimit(l)&&!i.isInline(l))return r;if(c==n&&i.isBlock(l))return null}return null}function I(s,e,t){const i=t=="backward"?e.end:e.start;if(s.checkChild(i,"$text"))return i;for(const{nextPosition:o}of e.getWalker({direction:t}))if(s.checkChild(o,"$text"))return o}function ze(s,e,t){const i=s.model,o=s.view.domConverter;if(t){const a=i.createSelection(e.start);i.modifySelection(a),!a.focus.isAtEnd&&!e.start.isEqual(a.focus)&&(e=i.createRange(a.focus,e.end))}const n=s.mapper.toViewRange(e),r=o.viewRangeToDom(n),l=b.getDomRangeRects(r);let c;for(const a of l){if(c===void 0){c=Math.round(a.bottom);continue}if(Math.round(a.top)>=c)return!1;c=Math.max(c,Math.round(a.bottom))}return!0}class lt extends P{_previouslySelected=new Set;static get pluginName(){return"Widget"}static get isOfficialPlugin(){return!0}static get requires(){return[Te,N]}init(){const e=this.editor,t=e.editing.view,i=t.document,o=e.t;this.editor.editing.downcastDispatcher.on("selection",(n,r,l)=>{const c=l.writer,a=r.selection;if(a.isCollapsed)return;const h=a.getSelectedElement();if(!h)return;const d=e.editing.mapper.toViewElement(h);f(d)&&l.consumable.consume(a,"selection")&&c.setSelection(c.createRangeOn(d),{fake:!0,label:me(d)})}),this.editor.editing.downcastDispatcher.on("selection",(n,r,l)=>{this._clearPreviouslySelectedWidgets(l.writer);const c=l.writer,a=c.document.selection;let h=null;for(const d of a.getRanges())for(const u of d){const g=u.item;f(g)&&!Oe(g,h)&&(c.addClass(z,g),this._previouslySelected.add(g),h=g)}},{priority:"low"}),t.addObserver(F),t.addObserver(q),this.listenTo(i,"mousedown",(...n)=>this._onMousedown(...n)),this.listenTo(i,"pointerdown",(...n)=>this._onPointerdown(...n)),this.listenTo(i,"arrowKey",(...n)=>{this._handleSelectionChangeOnArrowKeyPress(...n)},{context:[f,"$text"]}),this.listenTo(i,"arrowKey",(...n)=>{this._preventDefaultOnArrowKeyPress(...n)},{context:"$root"}),this.listenTo(i,"arrowKey",We(this.editor.editing),{context:"$text"}),this.listenTo(i,"delete",(n,r)=>{this._handleDelete(r.direction=="forward")&&(r.preventDefault(),n.stop())},{context:"$root"}),this.listenTo(i,"tab",(n,r)=>{this._selectNextEditable(r.shiftKey?"backward":"forward")&&(t.scrollToTheSelection(),r.preventDefault(),n.stop())},{context:n=>f(n)||n.is("editableElement"),priority:"low"}),this.listenTo(i,"keydown",(n,r)=>{r.keystroke==k.esc&&this._selectAncestorWidget()&&(r.preventDefault(),n.stop())},{context:n=>n.is("editableElement"),priority:"low"}),e.accessibility.addKeystrokeInfoGroup({id:"widget",label:o("Keystrokes that can be used when a widget is selected (for example: image, table, etc.)"),keystrokes:[{label:o("Move focus from an editable area back to the parent widget"),keystroke:"Esc"},{label:o("Insert a new paragraph directly after a widget"),keystroke:"Enter"},{label:o("Insert a new paragraph directly before a widget"),keystroke:"Shift+Enter"},{label:o("Move the caret to allow typing directly before a widget"),keystroke:[["arrowup"],["arrowleft"]]},{label:o("Move the caret to allow typing directly after a widget"),keystroke:[["arrowdown"],["arrowright"]]}]})}_onMousedown(e,t){const i=t.target;i&&t.domEvent.detail>=3&&this._selectBlockContent(i)&&t.preventDefault()}_onPointerdown(e,t){if(!t.domEvent.isPrimary)return;const i=this.editor,o=i.editing.view,n=o.document;let r=t.target;if(!r)return;if(!f(r)){const c=Ie(r);if(!c)return;if(f(c))r=c;else{const a=De(o,t);if(a&&f(a))r=a;else return}}(C.isAndroid||C.isiOS)&&t.preventDefault(),n.isFocused||o.focus();const l=i.editing.mapper.toModelElement(r);this._setSelectionOverElement(l)}_selectBlockContent(e){const t=this.editor,i=t.model,o=t.editing.mapper,n=i.schema,r=o.findMappedViewAncestor(this.editor.editing.view.createPositionAt(e,0)),l=Fe(o.toModelElement(r),i.schema);return l?(i.change(c=>{const a=n.isLimit(l)?null:Ne(c.createPositionAfter(l),n),h=c.createPositionAt(l,0),d=a?c.createPositionAt(a,0):c.createPositionAt(l,"end");c.setSelection(c.createRange(h,d))}),!0):!1}_handleSelectionChangeOnArrowKeyPress(e,t){const i=t.keyCode,o=this.editor.model,n=o.schema,r=o.document.selection,l=r.getSelectedElement(),c=Y(i,this.editor.locale.contentLanguageDirection),a=c=="down"||c=="right",h=c=="up"||c=="down";if(!t.shiftKey&&!r.isCollapsed){if(Ve(r,n)){const E=a?r.getLastPosition():r.getFirstPosition(),W=n.getNearestSelectionRange(E,a?"forward":"backward");W&&(o.change(U=>{U.setSelection(W)}),t.preventDefault(),e.stop())}return}const d=He(o,a),u=o.createSelection(d);if(o.modifySelection(u,{direction:a?"forward":"backward"}),u.isEqual(d))return;u.focus.isTouching(d.focus)&&o.modifySelection(u,{direction:a?"forward":"backward"});const g=a?d.focus.nodeBefore:d.focus.nodeAfter,p=u.focus.nodeBefore,v=u.focus.nodeAfter,y=a?p:v;if(t.shiftKey)(l&&n.isObject(l)||y&&n.isObject(y)||g&&n.isObject(g))&&(o.change(E=>{E.setSelection(u)}),t.preventDefault(),e.stop());else if(y&&n.isObject(y)){if(n.isInline(y)&&h)return;o.change(E=>{E.setSelection(y,"on")}),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){const i=this.editor.model,o=i.schema,n=i.document.selection.getSelectedElement();n&&o.isObject(n)&&(t.preventDefault(),e.stop())}_handleDelete(e){const i=this.editor.model.document.selection;if(!this.editor.model.canEditAt(i)||!i.isCollapsed)return;const o=this._getObjectElementNextToSelection(e);if(o)return this.editor.model.change(n=>{let r=i.anchor.parent;for(;r.isEmpty;){const l=r;r=l.parent,n.remove(l)}this._setSelectionOverElement(o)}),!0}_setSelectionOverElement(e){this.editor.model.change(t=>{t.setSelection(t.createRangeOn(e))})}_getObjectElementNextToSelection(e){const t=this.editor.model,i=t.schema,o=t.document.selection,n=t.createSelection(o);if(t.modifySelection(n,{direction:e?"forward":"backward"}),n.isEqual(o))return null;const r=e?n.focus.nodeBefore:n.focus.nodeAfter;return r&&i.isObject(r)?r:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass(z,t);this._previouslySelected.clear()}_selectNextEditable(e){const t=this.editor.editing,i=t.view,o=this.editor.model,n=i.document.selection,r=o.document.selection;let l;if(r.rangeCount>1){const a=r.isBackward?r.getFirstRange():r.getLastRange();l=t.mapper.toViewPosition(e=="forward"?a.end:a.start)}else l=e=="forward"?n.getFirstPosition():n.getLastPosition();const c=this._findNextFocusRange(l,e);return c?(o.change(a=>{a.setSelection(c)}),!0):!1}_findNextFocusRange(e,t){const i=this.editor.editing,o=i.view,n=this.editor.model,r=o.document.selection,l=r.editableElement,c=l.getPath();let a=r.getSelectedElement();a&&!f(a)&&(a=null);const h=t=="forward"?o.createRange(e,o.createPositionAt(e.root,"end")):o.createRange(o.createPositionAt(e.root,0),e);for(const{nextPosition:d}of h.getWalker({direction:t})){const u=d.parent;if(f(u)&&u!=a){const g=i.mapper.toModelElement(u);if(!n.schema.isBlock(g))continue;if(A(c,u.getPath())!="extension")return n.createRangeOn(g)}else if(u.is("editableElement")){if(u==l&&!a)continue;const g=i.mapper.toModelPosition(d),p=n.schema.getNearestSelectionRange(g,t);if(!p)continue;return u==l&&a?p:A(c,u.getPath())!="extension"?n.createRangeIn(n.schema.getLimitElement(p)):p}}return null}_selectAncestorWidget(){const e=this.editor,t=e.editing.mapper,o=e.editing.view.document.selection.getFirstPosition().parent,r=(o.is("$text")?o.parent:o).findAncestor(f);if(!r)return!1;const l=t.toModelElement(r);return l?(e.model.change(c=>{c.setSelection(l,"on")}),!0):!1}}function Ve(s,e){const t=s.getFirstPosition(),i=s.getLastPosition(),o=t.nodeAfter,n=i.nodeBefore;return!!o&&e.isObject(o)||!!n&&e.isObject(n)}function He(s,e){const t=s.document.selection,i=t.getSelectedElement(),o=w(t);return i&&o=="before"?s.createSelection(i,"before"):i&&o=="after"?s.createSelection(i,"after"):s.createSelection(t.getRanges(),{backward:i&&s.schema.isObject(i)?!e:t.isBackward})}function Ie(s){let e=s;for(;e;){if(e.is("editableElement")||f(e))return e;e=e.parent}return null}function De(s,e){const t=Q(e.domEvent);let i=null;if(t?i=s.domConverter.domRangeToView(t):i=s.createRange(s.createPositionAt(e.target,0)),!i)return null;const o=i.start;if(!o.parent)return null;let n=o.parent;return o.parent.is("editableElement")&&(o.isAtEnd&&o.nodeBefore?n=o.nodeBefore:o.isAtStart&&o.nodeAfter&&(n=o.nodeAfter)),n.is("$text")?n.parent:n}function Oe(s,e){return e?Array.from(s.getAncestors()).includes(e):!1}function Fe(s,e){for(const t of s.getAncestors({includeSelf:!0,parentFirst:!0})){if(e.checkChild(t,"$text"))return t;if(e.isLimit(t)&&!e.isObject(t))break}return null}function Ne(s,e){const t=new G({startPosition:s});for(const{item:i}of t){if(e.isLimit(i)||!i.is("element"))return null;if(e.checkChild(i,"$text"))return i}return null}class ct extends P{_toolbarDefinitions=new Map;_balloon;static get requires(){return[oe]}static get pluginName(){return"WidgetToolbarRepository"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",i=>{Me(e.editing.view.document.selection)&&i.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:i,getRelatedElement:o,balloonClassName:n="ck-toolbar-container",positions:r}){if(!i.length){X("widget-toolbar-no-items",{toolbarId:e});return}const l=this.editor,c=l.t,a=new ne(l.locale);if(a.ariaLabel=t||c("Widget toolbar"),this._toolbarDefinitions.has(e))throw new M("widget-toolbar-duplicated",this,{toolbarId:e});const h={view:a,getRelatedElement:o,balloonClassName:n,itemsConfig:i,positions:r,initialized:!1};l.ui.addToolbar(a,{isContextual:!0,beforeFocus:()=>{const d=o(l.editing.view.document.selection);d&&this._showToolbar(h,d)},afterBlur:()=>{this._hideToolbar(h)}}),this._toolbarDefinitions.set(e,h)}_updateToolbarsVisibility(){let e=0,t=null,i=null;for(const o of this._toolbarDefinitions.values()){const n=o.getRelatedElement(this.editor.editing.view.document.selection);if(!this.isEnabled||!n)this._isToolbarInBalloon(o)&&this._hideToolbar(o);else if(!this.editor.ui.focusTracker.isFocused)this._isToolbarVisible(o)&&this._hideToolbar(o);else{const r=n.getAncestors().length;r>e&&(e=r,t=n,i=o)}}i&&this._showToolbar(i,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?D(this.editor,t,e.positions):this._isToolbarInBalloon(e)||(e.initialized||(e.initialized=!0,e.view.fillFromConfig(e.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:e.view,position:$(this.editor,t,e.positions),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const i of this._toolbarDefinitions.values())if(this._isToolbarVisible(i)){const o=i.getRelatedElement(this.editor.editing.view.document.selection);D(this.editor,o,e.positions)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function D(s,e,t){const i=s.plugins.get("ContextualBalloon"),o=$(s,e,t);i.updatePosition(o)}function $(s,e,t){const i=s.editing.view,o=se.defaultPositions;return{target:i.domConverter.mapViewToDom(e),positions:t||[o.northArrowSouth,o.northArrowSouthWest,o.northArrowSouthEast,o.southArrowNorth,o.southArrowNorthWest,o.southArrowNorthEast,o.viewportStickyNorth]}}function Me(s){const e=s.getSelectedElement();return!!(e&&f(e))}class Le extends B(){_referenceCoordinates;_options;_originalWidth;_originalHeight;_originalWidthPercents;_aspectRatio;constructor(e){super(),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=e,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(e,t,i){const o=new b(t);this.activeHandlePosition=je(e),this._referenceCoordinates=Be(t,$e(this.activeHandlePosition)),this._originalWidth=o.width,this._originalHeight=o.height,this._aspectRatio=o.width/o.height;const n=i.style.width;n&&n.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(n):this._originalWidthPercents=ye(i,o)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}function Be(s,e){const t=new b(s),i=e.split("-"),o={x:i[1]=="right"?t.right:t.left,y:i[0]=="bottom"?t.bottom:t.top};return o.x+=s.ownerDocument.defaultView.scrollX,o.y+=s.ownerDocument.defaultView.scrollY,o}function Ke(s){return`ck-widget__resizer__handle-${s}`}function je(s){const e=["top-left","top-right","bottom-right","bottom-left"];for(const t of e)if(s.classList.contains(Ke(t)))return t}function $e(s){const e=s.split("-"),t={top:"bottom",bottom:"top",left:"right",right:"left"};return`${t[e[0]]}-${t[e[1]]}`}class Ue extends le{constructor(){super();const e=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",e.to("_viewPosition",t=>t?`ck-orientation-${t}`:"")],style:{display:e.if("_isVisible","none",t=>!t)}},children:[{text:e.to("_label")}]})}_bindToState(e,t){this.bind("_isVisible").to(t,"proposedWidth",t,"proposedHeight",(i,o)=>i!==null&&o!==null),this.bind("_label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",(i,o,n)=>e.unit==="px"?`${i}×${o}`:`${n}%`),this.bind("_viewPosition").to(t,"activeHandlePosition",t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",(i,o,n)=>o<50||n<50?"above-center":i)}_dismiss(){this.unbind(),this._isVisible=!1}}class O extends B(){_state;_sizeView;_options;_viewResizerWrapper=null;_initialViewWidth;constructor(e){super(),this._options=e,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",(t,i)=>t&&i),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",t=>{!this.state.proposedWidth&&!this.state.proposedWidthPercents&&(this._cleanup(),t.stop())},{priority:"high"})}get state(){return this._state}show(){this._options.editor.editing.view.change(t=>{t.removeClass("ck-hidden",this._viewResizerWrapper)})}hide(){this._options.editor.editing.view.change(t=>{t.addClass("ck-hidden",this._viewResizerWrapper)})}attach(){const e=this,t=this._options.viewElement;this._options.editor.editing.view.change(o=>{const n=o.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},function(r){const l=this.toDomElement(r);return e._appendHandles(l),e._appendSizeUI(l),l});o.insert(o.createPositionAt(t,"end"),n),o.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=n,this.isVisible||this.hide()}),this.on("change:isVisible",()=>{this.isVisible?(this.show(),this.redraw()):this.hide()})}begin(e){this._state=new Le(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}updateSize(e){const t=this._proposeNewSize(e);this._options.editor.editing.view.change(a=>{const h=this._options.unit||"%",d=(h==="%"?t.widthPercents:t.width)+h;a.setStyle("width",d,this._options.viewElement)});const o=this._getHandleHost(),n=new b(o),r=Math.round(n.width),l=Math.round(n.height),c=new b(o);t.width=Math.round(c.width),t.height=Math.round(c.height),this.redraw(n),this.state.update({...t,handleHostWidth:r,handleHostHeight:l})}commit(){const e=this._options.unit||"%",t=(e==="%"?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change(()=>{this._cleanup(),this._options.onCommit(t)})}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(e){const t=this._domResizerWrapper;if(!Ye(t))return;const i=t.parentElement,o=this._getHandleHost(),n=this._viewResizerWrapper,r=[n.getStyle("width"),n.getStyle("height"),n.getStyle("left"),n.getStyle("top")];let l;if(i.isSameNode(o)){const c=e||new b(o);l=[c.width+"px",c.height+"px",void 0,void 0]}else l=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];A(r,l)!=="same"&&this._options.editor.editing.view.change(c=>{c.setStyle({width:l[0],height:l[1],left:l[2],top:l[3]},n)})}containsHandle(e){return this._domResizerWrapper.contains(e)}static isResizeHandle(e){return e.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss(),this._options.editor.editing.view.change(t=>{t.setStyle("width",this._initialViewWidth,this._options.viewElement)})}_proposeNewSize(e){const t=this.state,i=Ge(e),o=this._options.isCentered?this._options.isCentered(this):!0,n={x:t._referenceCoordinates.x-(i.x+t.originalWidth),y:i.y-t.originalHeight-t._referenceCoordinates.y};o&&t.activeHandlePosition.endsWith("-right")&&(n.x=i.x-(t._referenceCoordinates.x+t.originalWidth)),o&&(n.x*=2);let r=Math.abs(t.originalWidth+n.x),l=Math.abs(t.originalHeight+n.y);return(r/t.aspectRatio>l?"width":"height")=="width"?l=r/t.aspectRatio:r=l*t.aspectRatio,{width:Math.round(r),height:Math.round(l),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*r*100)/100,100)}}_getResizeHost(){const e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}_getHandleHost(){const e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const i of t)e.appendChild(new R({tag:"div",attributes:{class:`ck-widget__resizer__handle ${qe(i)}`}}).render())}_appendSizeUI(e){this._sizeView=new Ue,this._sizeView.render(),e.appendChild(this._sizeView.element)}}function qe(s){return`ck-widget__resizer__handle-${s}`}function Ge(s){return{x:s.pageX,y:s.pageY}}function Ye(s){return s&&s.ownerDocument&&s.ownerDocument.contains(s)}class at extends P{_resizers=new Map;_observer;_redrawSelectedResizerThrottled;static get pluginName(){return"WidgetResize"}static get isOfficialPlugin(){return!0}init(){const e=this.editor.editing,t=x.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),e.view.addObserver(F),this._observer=new(Z()),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=ae(()=>this.redrawSelectedResizer(),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",()=>{for(const[o,n]of this._resizers)o.isAttached()||(this._resizers.delete(o),n.destroy())},{priority:"lowest"}),this._observer.listenTo(x.window,"resize",this._redrawSelectedResizerThrottled);const i=this.editor.editing.view.document.selection;i.on("change",()=>{const o=i.getSelectedElement(),n=this.getResizerByViewElement(o)||null;n?this.select(n):this.deselect()})}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const e of this._resizers.values())e.destroy();this._redrawSelectedResizerThrottled.cancel()}select(e){this.deselect(),this.selectedResizer=e,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(e){const t=new O(e),i=this.editor.plugins;if(t.attach(),i.has("WidgetToolbarRepository")){const r=i.get("WidgetToolbarRepository");t.on("begin",()=>{r.forceDisabled("resize")},{priority:"lowest"}),t.on("cancel",()=>{r.clearForceDisabled("resize")},{priority:"highest"}),t.on("commit",()=>{r.clearForceDisabled("resize")},{priority:"highest"})}this._resizers.set(e.viewElement,t);const n=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(n)==t&&this.select(t),t}getResizerByViewElement(e){return this._resizers.get(e)}_getResizerByHandle(e){for(const t of this._resizers.values())if(t.containsHandle(e))return t}_mouseDownListener(e,t){const i=t.domTarget;O.isResizeHandle(i)&&(this._activeResizer=this._getResizerByHandle(i)||null,this._activeResizer&&(this._activeResizer.begin(i),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}export{ue as WIDGET_CLASS_NAME,z as WIDGET_SELECTED_CLASS_NAME,lt as Widget,de as WidgetHighlightStack,at as WidgetResize,Le as WidgetResizeState,O as WidgetResizer,ct as WidgetToolbarRepository,Te as WidgetTypeAround,m as _WIDGET_TYPE_AROUND_SELECTION_ATTRIBUTE,Ue as _WidgetSizeView,ve as _getClosestWidgetTypeAroundDomButton,Se as _getClosestWidgetViewElement,Ee as _getWidgetTypeAroundButtonPosition,w as _getWidgetTypeAroundFakeCaretPosition,be as calculateResizeHostAncestorWidth,ye as calculateResizeHostPercentageWidth,rt as findOptimalInsertionRange,me as getLabel,_ as isTypeAroundWidget,f as isWidget,K as setHighlightHandling,pe as setLabel,nt as toWidget,st as toWidgetEditable,We as verticalWidgetNavigationHandler};
@@ -0,0 +1 @@
1
+ import{getSideAxis as L,getAlignmentAxis as G,getSide as F,getAlignment as T,evaluate as I,getPaddingObject as H,rectToClientRect as X,getAxisLength as J,getOppositePlacement as K,getExpandedPlacements as N,getOppositeAxisPlacements as Q,getAlignmentSides as q,placements as Y,getOppositeAlignmentPlacement as U}from"../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";function _(n,l,r){let{reference:t,floating:e}=n;const i=L(l),s=G(l),a=J(s),d=F(l),p=i==="y",u=t.x+t.width/2-e.width/2,c=t.y+t.height/2-e.height/2,m=t[a]/2-e[a]/2;let o;switch(d){case"top":o={x:u,y:t.y-e.height};break;case"bottom":o={x:u,y:t.y+t.height};break;case"right":o={x:t.x+t.width,y:c};break;case"left":o={x:t.x-e.width,y:c};break;default:o={x:t.x,y:t.y}}switch(T(l)){case"start":o[s]-=m*(r&&p?-1:1);break;case"end":o[s]+=m*(r&&p?-1:1);break}return o}async function W(n,l){var r;l===void 0&&(l={});const{x:t,y:e,platform:i,rects:s,elements:a,strategy:d}=n,{boundary:p="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:m=!1,padding:o=0}=I(l,n),y=H(o),g=a[m?c==="floating"?"reference":"floating":c],w=X(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(g)))==null||r?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:p,rootBoundary:u,strategy:d})),v=c==="floating"?{x:t,y:e,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),P=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},x=X(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:d}):v);return{top:(w.top-x.top+y.top)/P.y,bottom:(x.bottom-w.bottom+y.bottom)/P.y,left:(w.left-x.left+y.left)/P.x,right:(x.right-w.right+y.right)/P.x}}const te=async(n,l,r)=>{const{placement:t="bottom",strategy:e="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(l));let p=await s.getElementRects({reference:n,floating:l,strategy:e}),{x:u,y:c}=_(p,t,d),m=t,o={},y=0;for(let g=0;g<a.length;g++){var O;const{name:w,fn:v}=a[g],{x:b,y:P,data:x,reset:h}=await v({x:u,y:c,initialPlacement:t,placement:m,strategy:e,middlewareData:o,rects:p,platform:{...s,detectOverflow:(O=s.detectOverflow)!=null?O:W},elements:{reference:n,floating:l}});u=b??u,c=P??c,o={...o,[w]:{...o[w],...x}},h&&y<=50&&(y++,typeof h=="object"&&(h.placement&&(m=h.placement),h.rects&&(p=h.rects===!0?await s.getElementRects({reference:n,floating:l,strategy:e}):h.rects),{x:u,y:c}=_(p,m,d)),g=-1)}return{x:u,y:c,placement:m,strategy:e,middlewareData:o}};function Z(n,l,r){return(n?[...r.filter(e=>T(e)===n),...r.filter(e=>T(e)!==n)]:r.filter(e=>F(e)===e)).filter(e=>n?T(e)===n||(l?U(e)!==e:!1):!0)}const ne=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(l){var r,t,e;const{rects:i,middlewareData:s,placement:a,platform:d,elements:p}=l,{crossAxis:u=!1,alignment:c,allowedPlacements:m=Y,autoAlignment:o=!0,...y}=I(n,l),O=c!==void 0||m===Y?Z(c||null,o,m):m,g=await d.detectOverflow(l,y),w=((r=s.autoPlacement)==null?void 0:r.index)||0,v=O[w];if(v==null)return{};const b=q(v,i,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(a!==v)return{reset:{placement:O[0]}};const P=[g[F(v)],g[b[0]],g[b[1]]],x=[...((t=s.autoPlacement)==null?void 0:t.overflows)||[],{placement:v,overflows:P}],h=O[w+1];if(h)return{data:{index:w+1,overflows:x},reset:{placement:h}};const B=x.map(f=>{const R=T(f.placement);return[f.placement,R&&u?f.overflows.slice(0,2).reduce((M,V)=>M+V,0):f.overflows[0],f.overflows]}).sort((f,R)=>f[1]-R[1]),k=((e=B.filter(f=>f[2].slice(0,T(f[0])?2:3).every(R=>R<=0))[0])==null?void 0:e[0])||B[0][0];return k!==a?{data:{index:w+1,overflows:x},reset:{placement:k}}:{}}}},le=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var r,t;const{placement:e,middlewareData:i,rects:s,initialPlacement:a,platform:d,elements:p}=l,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:m,fallbackStrategy:o="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:O=!0,...g}=I(n,l);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const w=F(e),v=L(a),b=F(a)===a,P=await(d.isRTL==null?void 0:d.isRTL(p.floating)),x=m||(b||!O?[K(a)]:N(a)),h=y!=="none";!m&&h&&x.push(...Q(a,O,y,P));const B=[a,...x],j=await d.detectOverflow(l,g),k=[];let f=((t=i.flip)==null?void 0:t.overflows)||[];if(u&&k.push(j[w]),c){const E=q(e,s,P);k.push(j[E[0]],j[E[1]])}if(f=[...f,{placement:e,overflows:k}],!k.every(E=>E<=0)){var R,M;const E=(((R=i.flip)==null?void 0:R.index)||0)+1,$=B[E];if($&&(!(c==="alignment"?v!==L($):!1)||f.every(A=>L(A.placement)===v?A.overflows[0]>0:!0)))return{data:{index:E,overflows:f},reset:{placement:$}};let D=(M=f.filter(C=>C.overflows[0]<=0).sort((C,A)=>C.overflows[1]-A.overflows[1])[0])==null?void 0:M.placement;if(!D)switch(o){case"bestFit":{var V;const C=(V=f.filter(A=>{if(h){const S=L(A.placement);return S===v||S==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(S=>S>0).reduce((S,z)=>S+z,0)]).sort((A,S)=>A[1]-S[1])[0])==null?void 0:V[0];C&&(D=C);break}case"initialPlacement":D=a;break}if(e!==D)return{reset:{placement:D}}}return{}}}};export{ne as autoPlacement,te as computePosition,W as detectOverflow,le as flip,X as rectToClientRect};
@@ -1 +1 @@
1
- import{computePosition as st,flip as rt,autoPlacement as ct}from"../../../../../@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js";import{createCoords as w,rectToClientRect as J,floor as A,max as E,round as D,min as V}from"../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";import{getOverflowAncestors as z,isElement as v,getDocumentElement as R,getWindow as L,getFrameElement as U,getComputedStyle as b,isHTMLElement as C,isWebKit as Q,isTopLayer as _,getParentNode as W,isLastTraversableNode as H,isTableElement as lt,isContainingBlock as Y,getContainingBlock as ft,getNodeName as $,isOverflowElement as P,getNodeScroll as I}from"../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";function Z(t){const e=b(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=C(t),r=i?t.offsetWidth:o,s=i?t.offsetHeight:n,c=D(o)!==r||D(n)!==s;return c&&(o=r,n=s),{width:o,height:n,$:c}}function q(t){return v(t)?t:t.contextElement}function F(t){const e=q(t);if(!C(e))return w(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:r}=Z(e);let s=(r?D(o.width):o.width)/n,c=(r?D(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ut=w(0);function tt(t){const e=L(t);return!Q()||!e.visualViewport?ut:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function at(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==L(t)?!1:e}function T(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),r=q(t);let s=w(1);e&&(n?v(n)&&(s=F(n)):s=F(t));const c=at(r,o,n)?tt(r):w(0);let f=(i.left+c.x)/s.x,l=(i.top+c.y)/s.y,u=i.width/s.x,a=i.height/s.y;if(r){const d=L(r),h=n&&v(n)?L(n):n;let m=d,p=U(m);for(;p&&n&&h!==m;){const y=F(p),g=p.getBoundingClientRect(),x=b(p),O=g.left+(p.clientLeft+parseFloat(x.paddingLeft))*y.x,S=g.top+(p.clientTop+parseFloat(x.paddingTop))*y.y;f*=y.x,l*=y.y,u*=y.x,a*=y.y,f+=O,l+=S,m=L(p),p=U(m)}}return J({width:u,height:a,x:f,y:l})}function M(t,e){const o=I(t).scrollLeft;return e?e.left+o:T(R(t)).left+o}function et(t,e){const o=t.getBoundingClientRect(),n=o.left+e.scrollLeft-M(t,o),i=o.top+e.scrollTop;return{x:n,y:i}}function ht(t){let{elements:e,rect:o,offsetParent:n,strategy:i}=t;const r=i==="fixed",s=R(n),c=e?_(e.floating):!1;if(n===s||c&&r)return o;let f={scrollLeft:0,scrollTop:0},l=w(1);const u=w(0),a=C(n);if((a||!a&&!r)&&(($(n)!=="body"||P(s))&&(f=I(n)),C(n))){const h=T(n);l=F(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const d=s&&!a&&!r?et(s,f):w(0);return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-f.scrollLeft*l.x+u.x+d.x,y:o.y*l.y-f.scrollTop*l.y+u.y+d.y}}function dt(t){return Array.from(t.getClientRects())}function gt(t){const e=R(t),o=I(t),n=t.ownerDocument.body,i=E(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=E(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+M(t);const c=-o.scrollTop;return b(n).direction==="rtl"&&(s+=E(e.clientWidth,n.clientWidth)-i),{width:i,height:r,x:s,y:c}}const K=25;function pt(t,e){const o=L(t),n=R(t),i=o.visualViewport;let r=n.clientWidth,s=n.clientHeight,c=0,f=0;if(i){r=i.width,s=i.height;const u=Q();(!u||u&&e==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const l=M(n);if(l<=0){const u=n.ownerDocument,a=u.body,d=getComputedStyle(a),h=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,m=Math.abs(n.clientWidth-a.clientWidth-h);m<=K&&(r-=m)}else l<=K&&(r+=l);return{width:r,height:s,x:c,y:f}}const mt=new Set(["absolute","fixed"]);function yt(t,e){const o=T(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,r=C(t)?F(t):w(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,f=i*r.x,l=n*r.y;return{width:s,height:c,x:f,y:l}}function j(t,e,o){let n;if(e==="viewport")n=pt(t,o);else if(e==="document")n=gt(R(t));else if(v(e))n=yt(e,o);else{const i=tt(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return J(n)}function nt(t,e){const o=W(t);return o===e||!v(o)||H(o)?!1:b(o).position==="fixed"||nt(o,e)}function wt(t,e){const o=e.get(t);if(o)return o;let n=z(t,[],!1).filter(c=>v(c)&&$(c)!=="body"),i=null;const r=b(t).position==="fixed";let s=r?W(t):t;for(;v(s)&&!H(s);){const c=b(s),f=Y(s);!f&&c.position==="fixed"&&(i=null),(r?!f&&!i:!f&&c.position==="static"&&!!i&&mt.has(i.position)||P(s)&&!f&&nt(t,s))?n=n.filter(u=>u!==s):i=c,s=W(s)}return e.set(t,n),n}function xt(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const s=[...o==="clippingAncestors"?_(e)?[]:wt(e,this._c):[].concat(o),n],c=s[0],f=s.reduce((l,u)=>{const a=j(e,u,i);return l.top=E(a.top,l.top),l.right=V(a.right,l.right),l.bottom=V(a.bottom,l.bottom),l.left=E(a.left,l.left),l},j(e,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function vt(t){const{width:e,height:o}=Z(t);return{width:e,height:o}}function bt(t,e,o){const n=C(e),i=R(e),r=o==="fixed",s=T(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const f=w(0);function l(){f.x=M(i)}if(n||!n&&!r)if(($(e)!=="body"||P(i))&&(c=I(e)),n){const h=T(e,!0,r,e);f.x=h.x+e.clientLeft,f.y=h.y+e.clientTop}else i&&l();r&&!n&&i&&l();const u=i&&!n&&!r?et(i,c):w(0),a=s.left+c.scrollLeft-f.x-u.x,d=s.top+c.scrollTop-f.y-u.y;return{x:a,y:d,width:s.width,height:s.height}}function N(t){return b(t).position==="static"}function G(t,e){if(!C(t)||b(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return R(t)===o&&(o=o.ownerDocument.body),o}function ot(t,e){const o=L(t);if(_(t))return o;if(!C(t)){let i=W(t);for(;i&&!H(i);){if(v(i)&&!N(i))return i;i=W(i)}return o}let n=G(t,e);for(;n&&lt(n)&&N(n);)n=G(n,e);return n&&H(n)&&N(n)&&!Y(n)?o:n||ft(t)||o}const Rt=async function(t){const e=this.getOffsetParent||ot,o=this.getDimensions,n=await o(t.floating);return{reference:bt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ct(t){return b(t).direction==="rtl"}const Ot={convertOffsetParentRelativeRectToViewportRelativeRect:ht,getDocumentElement:R,getClippingRect:xt,getOffsetParent:ot,getElementRects:Rt,getClientRects:dt,getDimensions:vt,getScale:F,isElement:v,isRTL:Ct};function it(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Lt(t,e){let o=null,n;const i=R(t);function r(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),r();const l=t.getBoundingClientRect(),{left:u,top:a,width:d,height:h}=l;if(c||e(),!d||!h)return;const m=A(a),p=A(i.clientWidth-(u+d)),y=A(i.clientHeight-(a+h)),g=A(u),O={rootMargin:-m+"px "+-p+"px "+-y+"px "+-g+"px",threshold:E(0,V(1,f))||1};let S=!0;function X(k){const B=k[0].intersectionRatio;if(B!==f){if(!S)return s();B?s(!1,B):n=setTimeout(()=>{s(!1,1e-7)},1e3)}B===1&&!it(l,t.getBoundingClientRect())&&s(),S=!1}try{o=new IntersectionObserver(X,{...O,root:i.ownerDocument})}catch{o=new IntersectionObserver(X,O)}o.observe(t)}return s(!0),r}function Wt(t,e,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=n,l=q(t),u=i||r?[...l?z(l):[],...z(e)]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),r&&g.addEventListener("resize",o)});const a=l&&c?Lt(l,o):null;let d=-1,h=null;s&&(h=new ResizeObserver(g=>{let[x]=g;x&&x.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var O;(O=h)==null||O.observe(e)})),o()}),l&&!f&&h.observe(l),h.observe(e));let m,p=f?T(t):null;f&&y();function y(){const g=T(t);p&&!it(p,g)&&o(),p=g,m=requestAnimationFrame(y)}return o(),()=>{var g;u.forEach(x=>{i&&x.removeEventListener("scroll",o),r&&x.removeEventListener("resize",o)}),a?.(),(g=h)==null||g.disconnect(),h=null,f&&cancelAnimationFrame(m)}}const St=ct,Bt=rt,At=(t,e,o)=>{const n=new Map,i={platform:Ot,...o},r={...i.platform,_c:n};return st(t,e,{...i,platform:r})};export{St as autoPlacement,Wt as autoUpdate,At as computePosition,Bt as flip,z as getOverflowAncestors,Ot as platform};
1
+ import{computePosition as st,flip as rt,autoPlacement as ct}from"../../../../../@floating-ui_core@1.7.4/node_modules/@floating-ui/core/dist/floating-ui.core.js";import{createCoords as w,rectToClientRect as J,floor as A,round as D,max as E,min as V}from"../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";import{getOverflowAncestors as z,isElement as v,getDocumentElement as R,getWindow as L,getFrameElement as U,getComputedStyle as b,isHTMLElement as C,isWebKit as Q,isTopLayer as _,getParentNode as W,isLastTraversableNode as H,isTableElement as lt,isContainingBlock as Y,getContainingBlock as ft,getNodeName as $,isOverflowElement as P,getNodeScroll as I}from"../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";function Z(t){const e=b(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=C(t),r=i?t.offsetWidth:o,s=i?t.offsetHeight:n,c=D(o)!==r||D(n)!==s;return c&&(o=r,n=s),{width:o,height:n,$:c}}function q(t){return v(t)?t:t.contextElement}function F(t){const e=q(t);if(!C(e))return w(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:r}=Z(e);let s=(r?D(o.width):o.width)/n,c=(r?D(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ut=w(0);function tt(t){const e=L(t);return!Q()||!e.visualViewport?ut:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function at(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==L(t)?!1:e}function T(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),r=q(t);let s=w(1);e&&(n?v(n)&&(s=F(n)):s=F(t));const c=at(r,o,n)?tt(r):w(0);let f=(i.left+c.x)/s.x,l=(i.top+c.y)/s.y,u=i.width/s.x,a=i.height/s.y;if(r){const d=L(r),h=n&&v(n)?L(n):n;let m=d,p=U(m);for(;p&&n&&h!==m;){const y=F(p),g=p.getBoundingClientRect(),x=b(p),O=g.left+(p.clientLeft+parseFloat(x.paddingLeft))*y.x,S=g.top+(p.clientTop+parseFloat(x.paddingTop))*y.y;f*=y.x,l*=y.y,u*=y.x,a*=y.y,f+=O,l+=S,m=L(p),p=U(m)}}return J({width:u,height:a,x:f,y:l})}function M(t,e){const o=I(t).scrollLeft;return e?e.left+o:T(R(t)).left+o}function et(t,e){const o=t.getBoundingClientRect(),n=o.left+e.scrollLeft-M(t,o),i=o.top+e.scrollTop;return{x:n,y:i}}function ht(t){let{elements:e,rect:o,offsetParent:n,strategy:i}=t;const r=i==="fixed",s=R(n),c=e?_(e.floating):!1;if(n===s||c&&r)return o;let f={scrollLeft:0,scrollTop:0},l=w(1);const u=w(0),a=C(n);if((a||!a&&!r)&&(($(n)!=="body"||P(s))&&(f=I(n)),C(n))){const h=T(n);l=F(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const d=s&&!a&&!r?et(s,f):w(0);return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-f.scrollLeft*l.x+u.x+d.x,y:o.y*l.y-f.scrollTop*l.y+u.y+d.y}}function dt(t){return Array.from(t.getClientRects())}function gt(t){const e=R(t),o=I(t),n=t.ownerDocument.body,i=E(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=E(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+M(t);const c=-o.scrollTop;return b(n).direction==="rtl"&&(s+=E(e.clientWidth,n.clientWidth)-i),{width:i,height:r,x:s,y:c}}const K=25;function pt(t,e){const o=L(t),n=R(t),i=o.visualViewport;let r=n.clientWidth,s=n.clientHeight,c=0,f=0;if(i){r=i.width,s=i.height;const u=Q();(!u||u&&e==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const l=M(n);if(l<=0){const u=n.ownerDocument,a=u.body,d=getComputedStyle(a),h=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,m=Math.abs(n.clientWidth-a.clientWidth-h);m<=K&&(r-=m)}else l<=K&&(r+=l);return{width:r,height:s,x:c,y:f}}const mt=new Set(["absolute","fixed"]);function yt(t,e){const o=T(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,r=C(t)?F(t):w(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,f=i*r.x,l=n*r.y;return{width:s,height:c,x:f,y:l}}function j(t,e,o){let n;if(e==="viewport")n=pt(t,o);else if(e==="document")n=gt(R(t));else if(v(e))n=yt(e,o);else{const i=tt(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return J(n)}function nt(t,e){const o=W(t);return o===e||!v(o)||H(o)?!1:b(o).position==="fixed"||nt(o,e)}function wt(t,e){const o=e.get(t);if(o)return o;let n=z(t,[],!1).filter(c=>v(c)&&$(c)!=="body"),i=null;const r=b(t).position==="fixed";let s=r?W(t):t;for(;v(s)&&!H(s);){const c=b(s),f=Y(s);!f&&c.position==="fixed"&&(i=null),(r?!f&&!i:!f&&c.position==="static"&&!!i&&mt.has(i.position)||P(s)&&!f&&nt(t,s))?n=n.filter(u=>u!==s):i=c,s=W(s)}return e.set(t,n),n}function xt(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const s=[...o==="clippingAncestors"?_(e)?[]:wt(e,this._c):[].concat(o),n],c=s[0],f=s.reduce((l,u)=>{const a=j(e,u,i);return l.top=E(a.top,l.top),l.right=V(a.right,l.right),l.bottom=V(a.bottom,l.bottom),l.left=E(a.left,l.left),l},j(e,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function vt(t){const{width:e,height:o}=Z(t);return{width:e,height:o}}function bt(t,e,o){const n=C(e),i=R(e),r=o==="fixed",s=T(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const f=w(0);function l(){f.x=M(i)}if(n||!n&&!r)if(($(e)!=="body"||P(i))&&(c=I(e)),n){const h=T(e,!0,r,e);f.x=h.x+e.clientLeft,f.y=h.y+e.clientTop}else i&&l();r&&!n&&i&&l();const u=i&&!n&&!r?et(i,c):w(0),a=s.left+c.scrollLeft-f.x-u.x,d=s.top+c.scrollTop-f.y-u.y;return{x:a,y:d,width:s.width,height:s.height}}function N(t){return b(t).position==="static"}function G(t,e){if(!C(t)||b(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return R(t)===o&&(o=o.ownerDocument.body),o}function ot(t,e){const o=L(t);if(_(t))return o;if(!C(t)){let i=W(t);for(;i&&!H(i);){if(v(i)&&!N(i))return i;i=W(i)}return o}let n=G(t,e);for(;n&&lt(n)&&N(n);)n=G(n,e);return n&&H(n)&&N(n)&&!Y(n)?o:n||ft(t)||o}const Rt=async function(t){const e=this.getOffsetParent||ot,o=this.getDimensions,n=await o(t.floating);return{reference:bt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ct(t){return b(t).direction==="rtl"}const Ot={convertOffsetParentRelativeRectToViewportRelativeRect:ht,getDocumentElement:R,getClippingRect:xt,getOffsetParent:ot,getElementRects:Rt,getClientRects:dt,getDimensions:vt,getScale:F,isElement:v,isRTL:Ct};function it(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Lt(t,e){let o=null,n;const i=R(t);function r(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),r();const l=t.getBoundingClientRect(),{left:u,top:a,width:d,height:h}=l;if(c||e(),!d||!h)return;const m=A(a),p=A(i.clientWidth-(u+d)),y=A(i.clientHeight-(a+h)),g=A(u),O={rootMargin:-m+"px "+-p+"px "+-y+"px "+-g+"px",threshold:E(0,V(1,f))||1};let S=!0;function X(k){const B=k[0].intersectionRatio;if(B!==f){if(!S)return s();B?s(!1,B):n=setTimeout(()=>{s(!1,1e-7)},1e3)}B===1&&!it(l,t.getBoundingClientRect())&&s(),S=!1}try{o=new IntersectionObserver(X,{...O,root:i.ownerDocument})}catch{o=new IntersectionObserver(X,O)}o.observe(t)}return s(!0),r}function Wt(t,e,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=n,l=q(t),u=i||r?[...l?z(l):[],...z(e)]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),r&&g.addEventListener("resize",o)});const a=l&&c?Lt(l,o):null;let d=-1,h=null;s&&(h=new ResizeObserver(g=>{let[x]=g;x&&x.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var O;(O=h)==null||O.observe(e)})),o()}),l&&!f&&h.observe(l),h.observe(e));let m,p=f?T(t):null;f&&y();function y(){const g=T(t);p&&!it(p,g)&&o(),p=g,m=requestAnimationFrame(y)}return o(),()=>{var g;u.forEach(x=>{i&&x.removeEventListener("scroll",o),r&&x.removeEventListener("resize",o)}),a?.(),(g=h)==null||g.disconnect(),h=null,f&&cancelAnimationFrame(m)}}const St=ct,Bt=rt,At=(t,e,o)=>{const n=new Map,i={platform:Ot,...o},r={...i.platform,_c:n};return st(t,e,{...i,platform:r})};export{St as autoPlacement,Wt as autoUpdate,At as computePosition,Bt as flip,z as getOverflowAncestors,Ot as platform};
@@ -1 +1 @@
1
- import{joinStringsAndValues as r,isStrTagged as g}from"./str-tag.js";const n=(s=>g(s)?r(s.strings,s.values):s);export{n as defaultMsg};
1
+ import{isStrTagged as r,joinStringsAndValues as g}from"./str-tag.js";const n=(s=>r(s)?g(s.strings,s.values):s);export{n as defaultMsg};
@@ -1,4 +1,4 @@
1
- import{diff as B,printDiffOrStringify as Ot}from"../../../../../@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/diff.js";import{stringify as j}from"../../../../../@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/display.js";import{getType as ft,noop as Mt,isObject as q,assertTypes as N}from"../../../../../@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/helpers.js";import E from"../../../../../tinyrainbow@3.0.3/node_modules/tinyrainbow/dist/index.js";import{isMockFunction as H}from"../../../../../@vitest_spy@4.0.15/node_modules/@vitest/spy/dist/index.js";import{processError as jt}from"../../../../../@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/error.js";import{use as Ct,util as S}from"../../../../../chai@6.2.1/node_modules/chai/index.js";const D=Symbol.for("matchers-object"),P=Symbol.for("$$jest-matchers-object"),ht=Symbol.for("expect-global"),pt=Symbol.for("asymmetric-matchers-object"),fe={toSatisfy(e,t,o){const{printReceived:c,printExpected:a,matcherHint:f}=this.utils,u=t(e);return{pass:u,message:()=>u?`${f(".not.toSatisfy","received","")}
1
+ import{diff as B,printDiffOrStringify as Ot}from"../../../../../@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/diff.js";import{stringify as j}from"../../../../../@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/display.js";import{getType as ft,noop as Mt,isObject as q,assertTypes as N}from"../../../../../@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/helpers.js";import E from"../../../../../tinyrainbow@3.0.3/node_modules/tinyrainbow/dist/index.js";import{isMockFunction as H}from"../../../../../@vitest_spy@4.0.18/node_modules/@vitest/spy/dist/index.js";import{processError as jt}from"../../../../../@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/error.js";import{use as Ct,util as S}from"../../../../../chai@6.2.2/node_modules/chai/index.js";const D=Symbol.for("matchers-object"),P=Symbol.for("$$jest-matchers-object"),ht=Symbol.for("expect-global"),pt=Symbol.for("asymmetric-matchers-object"),fe={toSatisfy(e,t,o){const{printReceived:c,printExpected:a,matcherHint:f}=this.utils,u=t(e);return{pass:u,message:()=>u?`${f(".not.toSatisfy","received","")}
2
2
 
3
3
  Expected value to not satisfy:
4
4
  ${o||a(t)}
@@ -1,5 +1,5 @@
1
- import Te from"../../../../../tinyrainbow@3.0.3/node_modules/tinyrainbow/dist/index.js";function v(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function de(e,t){const r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(const o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function I(e,t,r,n,o,u,s=": "){let a="",m=0,f=e.next();if(!f.done){a+=t.spacingOuter;const p=r+t.indent;for(;!f.done;){if(a+=p,m++===t.maxWidth){a+="…";break}const E=u(f.value[0],t,p,n,o),_=u(f.value[1],t,p,n,o);a+=E+s+_,f=e.next(),f.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function D(e,t,r,n,o,u){let s="",a=0,m=e.next();if(!m.done){s+=t.spacingOuter;const f=r+t.indent;for(;!m.done;){if(s+=f,a++===t.maxWidth){s+="…";break}s+=u(m.value,t,f,n,o),m=e.next(),m.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function M(e,t,r,n,o,u){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;const a=f=>f instanceof DataView,m=a(e)?e.byteLength:e.length;if(m>0){s+=t.spacingOuter;const f=r+t.indent;for(let p=0;p<m;p++){if(s+=f,p===t.maxWidth){s+="…";break}(a(e)||p in e)&&(s+=u(a(e)?e.getInt8(p):e[p],t,f,n,o)),p<m-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}function F(e,t,r,n,o,u){let s="";const a=de(e,t.compareKeys);if(a.length>0){s+=t.spacingOuter;const m=r+t.indent;for(let f=0;f<a.length;f++){const p=a[f],E=u(p,t,m,n,o),_=u(e[p],t,m,n,o);s+=`${m+E}: ${_}`,f<a.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}const Ne=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,O=" ",Ie=(e,t,r,n,o,u)=>{const s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return++n>t.maxDepth?`[${s}]`:`${s+O}[${M(e.sample,t,r,n,o,u)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return++n>t.maxDepth?`[${s}]`:`${s+O}{${F(e.sample,t,r,n,o,u)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+O+u(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},Oe=e=>e&&e.$$typeof===Ne,Ae={serialize:Ie,test:Oe},Re=" ",ee=new Set(["DOMStringMap","NamedNodeMap"]),Me=/^(?:HTML\w*Collection|NodeList)$/;function Ce(e){return ee.has(e)||Me.test(e)}const xe=e=>e&&e.constructor&&!!e.constructor.name&&Ce(e.constructor.name);function he(e){return e.constructor.name==="NamedNodeMap"}const we=(e,t,r,n,o,u)=>{const s=e.constructor.name;return++n>t.maxDepth?`[${s}]`:(t.min?"":s+Re)+(ee.has(s)?`{${F(he(e)?[...e].reduce((a,m)=>(a[m.name]=m.value,a),{}):{...e},t,r,n,o,u)}}`:`[${M([...e],t,r,n,o,u)}]`)},Pe={serialize:we,test:xe};function te(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function j(e,t,r,n,o,u,s){const a=n+r.indent,m=r.colors;return e.map(f=>{const p=t[f];let E=s(p,r,a,o,u);return typeof p!="string"&&(E.includes(`
2
- `)&&(E=r.spacingOuter+a+E+r.spacingOuter+n),E=`{${E}}`),`${r.spacingInner+n+m.prop.open+f+m.prop.close}=${m.value.open}${E}${m.value.close}`}).join("")}function C(e,t,r,n,o,u){return e.map(s=>t.spacingOuter+r+(typeof s=="string"?re(s,t):u(s,t,r,n,o))).join("")}function ge(e,t,r,n,o,u){return t.printShadowRoot===!1?"":[`${t.spacingOuter+r}#shadow-root`,C(e,t,r+t.indent,n,o,u)].join("")}function re(e,t){const r=t.colors.content;return r.open+te(e)+r.close}function Le(e,t){const r=t.colors.comment;return`${r.open}<!--${te(e)}-->${r.close}`}function z(e,t,r,n,o){const u=n.colors.tag;return`${u.open}<${e}${t&&u.close+t+n.spacingOuter+o+u.open}${r?`>${u.close}${r}${n.spacingOuter}${o}${u.open}</${e}`:`${t&&!n.min?"":" "}/`}>${u.close}`}function B(e,t){const r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}const De=1,ne=3,oe=8,se=11,Fe=/^(?:(?:HTML|SVG)\w*)?Element$/;function je(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function ze(e){const t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||je(e);return r===De&&(Fe.test(t)||o)||r===ne&&t==="Text"||r===oe&&t==="Comment"||r===se&&t==="DocumentFragment"}const Be=e=>e?.constructor?.name&&ze(e);function Ue(e){return e.nodeType===ne}function Ye(e){return e.nodeType===oe}function A(e){return e.nodeType===se}const ke=(e,t,r,n,o,u)=>{if(Ue(e))return re(e.data,t);if(Ye(e))return Le(e.data,t);const s=A(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?B(s,t):z(s,j(A(e)?[]:Array.from(e.attributes,a=>a.name).sort(),A(e)?{}:[...e.attributes].reduce((a,m)=>(a[m.name]=m.value,a),{}),t,r+t.indent,n,o,u),(A(e)||!e.shadowRoot?"":ge(Array.prototype.slice.call(e.shadowRoot.children),t,r+t.indent,n,o,u))+C(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,u),t,r)},Ve={serialize:ke,test:Be},Ke="@@__IMMUTABLE_ITERABLE__@@",We="@@__IMMUTABLE_LIST__@@",qe="@@__IMMUTABLE_KEYED__@@",Je="@@__IMMUTABLE_MAP__@@",Y="@@__IMMUTABLE_ORDERED__@@",Ge="@@__IMMUTABLE_RECORD__@@",He="@@__IMMUTABLE_SEQ__@@",Xe="@@__IMMUTABLE_SET__@@",Qe="@@__IMMUTABLE_STACK__@@",d=e=>`Immutable.${e}`,x=e=>`[${e}]`,N=" ",k="…";function Ze(e,t,r,n,o,u,s){return++n>t.maxDepth?x(d(s)):`${d(s)+N}{${I(e.entries(),t,r,n,o,u)}}`}function ve(e){let t=0;return{next(){if(t<e._keys.length){const r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function et(e,t,r,n,o,u){const s=d(e._name||"Record");return++n>t.maxDepth?x(s):`${s+N}{${I(ve(e),t,r,n,o,u)}}`}function tt(e,t,r,n,o,u){const s=d("Seq");return++n>t.maxDepth?x(s):e[qe]?`${s+N}{${e._iter||e._object?I(e.entries(),t,r,n,o,u):k}}`:`${s+N}[${e._iter||e._array||e._collection||e._iterable?D(e.values(),t,r,n,o,u):k}]`}function P(e,t,r,n,o,u,s){return++n>t.maxDepth?x(d(s)):`${d(s)+N}[${D(e.values(),t,r,n,o,u)}]`}const rt=(e,t,r,n,o,u)=>e[Je]?Ze(e,t,r,n,o,u,e[Y]?"OrderedMap":"Map"):e[We]?P(e,t,r,n,o,u,"List"):e[Xe]?P(e,t,r,n,o,u,e[Y]?"OrderedSet":"Set"):e[Qe]?P(e,t,r,n,o,u,"Stack"):e[He]?tt(e,t,r,n,o,u):et(e,t,r,n,o,u),nt=e=>e&&(e[Ke]===!0||e[Ge]===!0),ot={serialize:rt,test:nt};function ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g={exports:{}},y={};var V;function st(){if(V)return y;V=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),_=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function $(c){if(typeof c=="object"&&c!==null){var i=c.$$typeof;switch(i){case e:switch(c=c.type,c){case r:case o:case n:case m:case f:case _:return c;default:switch(c=c&&c.$$typeof,c){case s:case a:case E:case p:return c;case u:return c;default:return i}}case t:return i}}}return y.ContextConsumer=u,y.ContextProvider=s,y.Element=e,y.ForwardRef=a,y.Fragment=r,y.Lazy=E,y.Memo=p,y.Portal=t,y.Profiler=o,y.StrictMode=n,y.Suspense=m,y.SuspenseList=f,y.isContextConsumer=function(c){return $(c)===u},y.isContextProvider=function(c){return $(c)===s},y.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===e},y.isForwardRef=function(c){return $(c)===a},y.isFragment=function(c){return $(c)===r},y.isLazy=function(c){return $(c)===E},y.isMemo=function(c){return $(c)===p},y.isPortal=function(c){return $(c)===t},y.isProfiler=function(c){return $(c)===o},y.isStrictMode=function(c){return $(c)===n},y.isSuspense=function(c){return $(c)===m},y.isSuspenseList=function(c){return $(c)===f},y.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===r||c===o||c===n||c===m||c===f||typeof c=="object"&&c!==null&&(c.$$typeof===E||c.$$typeof===p||c.$$typeof===s||c.$$typeof===u||c.$$typeof===a||c.$$typeof===h||c.getModuleId!==void 0)},y.typeOf=$,y}var K;function ut(){return K||(K=1,g.exports=st()),g.exports}var ce=ut(),ct=ue(ce),it=v({__proto__:null,default:ct},[ce]),L={exports:{}},l={};var W;function at(){if(W)return l;W=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),m=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),$;$=Symbol.for("react.module.reference");function c(i){if(typeof i=="object"&&i!==null){var w=i.$$typeof;switch(w){case e:switch(i=i.type,i){case r:case o:case n:case f:case p:return i;default:switch(i=i&&i.$$typeof,i){case a:case s:case m:case _:case E:case u:return i;default:return w}}case t:return w}}}return l.ContextConsumer=s,l.ContextProvider=u,l.Element=e,l.ForwardRef=m,l.Fragment=r,l.Lazy=_,l.Memo=E,l.Portal=t,l.Profiler=o,l.StrictMode=n,l.Suspense=f,l.SuspenseList=p,l.isAsyncMode=function(){return!1},l.isConcurrentMode=function(){return!1},l.isContextConsumer=function(i){return c(i)===s},l.isContextProvider=function(i){return c(i)===u},l.isElement=function(i){return typeof i=="object"&&i!==null&&i.$$typeof===e},l.isForwardRef=function(i){return c(i)===m},l.isFragment=function(i){return c(i)===r},l.isLazy=function(i){return c(i)===_},l.isMemo=function(i){return c(i)===E},l.isPortal=function(i){return c(i)===t},l.isProfiler=function(i){return c(i)===o},l.isStrictMode=function(i){return c(i)===n},l.isSuspense=function(i){return c(i)===f},l.isSuspenseList=function(i){return c(i)===p},l.isValidElementType=function(i){return typeof i=="string"||typeof i=="function"||i===r||i===o||i===n||i===f||i===p||i===h||typeof i=="object"&&i!==null&&(i.$$typeof===_||i.$$typeof===E||i.$$typeof===u||i.$$typeof===s||i.$$typeof===m||i.$$typeof===$||i.getModuleId!==void 0)},l.typeOf=c,l}var q;function mt(){return q||(q=1,L.exports=at()),L.exports}var ie=mt(),ft=ue(ie),lt=v({__proto__:null,default:ft},[ie]);const pt=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],T=Object.fromEntries(pt.map(e=>[e,t=>lt[e](t)||it[e](t)]));function ae(e,t=[]){if(Array.isArray(e))for(const r of e)ae(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function J(e){const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(T.isFragment(e))return"React.Fragment";if(T.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(T.isContextProvider(e))return"Context.Provider";if(T.isContextConsumer(e))return"Context.Consumer";if(T.isForwardRef(e)){if(t.displayName)return t.displayName;const r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(T.isMemo(e)){const r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function yt(e){const{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}const Et=(e,t,r,n,o,u)=>++n>t.maxDepth?B(J(e),t):z(J(e),j(yt(e),e.props,t,r+t.indent,n,o,u),C(ae(e.props.children),t,r+t.indent,n,o,u),t,r),$t=e=>e!=null&&T.isElement(e),St={serialize:Et,test:$t},_t=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function bt(e){const{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}const Tt=(e,t,r,n,o,u)=>++n>t.maxDepth?B(e.type,t):z(e.type,e.props?j(bt(e),e.props,t,r+t.indent,n,o,u):"",e.children?C(e.children,t,r+t.indent,n,o,u):"",t,r),dt=e=>e&&e.$$typeof===_t,Nt={serialize:Tt,test:dt},me=Object.prototype.toString,It=Date.prototype.toISOString,Ot=Error.prototype.toString,G=RegExp.prototype.toString;function R(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function At(e){return typeof window<"u"&&e===window}const Rt=/^Symbol\((.*)\)(.*)$/,Mt=/\n/g;class fe extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}}function Ct(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 xt(e){return Object.is(e,-0)?"-0":String(e)}function ht(e){return`${e}n`}function H(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function X(e){return String(e).replace(Rt,"Symbol($1)")}function Q(e){return`[${Ot.call(e)}]`}function le(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";const o=typeof e;if(o==="number")return xt(e);if(o==="bigint")return ht(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return H(e,t);if(o==="symbol")return X(e);const u=me.call(e);return u==="[object WeakMap]"?"WeakMap {}":u==="[object WeakSet]"?"WeakSet {}":u==="[object Function]"||u==="[object GeneratorFunction]"?H(e,t):u==="[object Symbol]"?X(e):u==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":It.call(e):u==="[object Error]"?Q(e):u==="[object RegExp]"?r?G.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):G.call(e):e instanceof Error?Q(e):null}function pe(e,t,r,n,o,u){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);const s=++n>t.maxDepth,a=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!u)return b(e.toJSON(),t,r,n,o,!0);const m=me.call(e);return m==="[object Arguments]"?s?"[Arguments]":`${a?"":"Arguments "}[${M(e,t,r,n,o,b)}]`:Ct(m)?s?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${M(e,t,r,n,o,b)}]`:m==="[object Map]"?s?"[Map]":`Map {${I(e.entries(),t,r,n,o,b," => ")}}`:m==="[object Set]"?s?"[Set]":`Set {${D(e.values(),t,r,n,o,b)}}`:s||At(e)?`[${R(e)}]`:`${a||!t.printBasicPrototype&&R(e)==="Object"?"":`${R(e)} `}{${F(e,t,r,n,o,b)}}`}const wt={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,u){if(o.includes(e))return"[Circular]";o=[...o,e];const s=++n>t.maxDepth,{message:a,cause:m,...f}=e,p={message:a,...typeof m<"u"?{cause:m}:{},...e instanceof AggregateError?{errors:e.errors}:{},...f},E=e.name!=="Error"?e.name:R(e);return s?`[${E}]`:`${E} {${I(Object.entries(p).values(),t,r,n,o,u)}}`}};function Pt(e){return e.serialize!=null}function ye(e,t,r,n,o,u){let s;try{s=Pt(e)?e.serialize(t,r,n,o,u,b):e.print(t,a=>b(a,r,n,o,u),a=>{const m=n+r.indent;return m+a.replaceAll(Mt,`
3
- ${m}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(a){throw new fe(a.message,a.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function Ee(e,t){for(const r of e)try{if(r.test(t))return r}catch(n){throw new fe(n.message,n.stack)}return null}function b(e,t,r,n,o,u){const s=Ee(t.plugins,e);if(s!==null)return ye(s,e,t,r,n,o);const a=le(e,t.printFunctionName,t.escapeRegex,t.escapeString);return a!==null?a:pe(e,t,r,n,o,u)}const U={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},$e=Object.keys(U),S={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,printShadowRoot:!0,theme:U};function gt(e){for(const t of Object.keys(e))if(!Object.hasOwn(S,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 Lt(){return $e.reduce((e,t)=>{const r=U[t],n=r&&Te[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 Dt(){return $e.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function Se(e){return e?.printFunctionName??S.printFunctionName}function _e(e){return e?.escapeRegex??S.escapeRegex}function be(e){return e?.escapeString??S.escapeString}function Z(e){return{callToJSON:e?.callToJSON??S.callToJSON,colors:e?.highlight?Lt():Dt(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:S.compareKeys,escapeRegex:_e(e),escapeString:be(e),indent:e?.min?"":Ft(e?.indent??S.indent),maxDepth:e?.maxDepth??S.maxDepth,maxWidth:e?.maxWidth??S.maxWidth,min:e?.min??S.min,plugins:e?.plugins??S.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Se(e),printShadowRoot:e?.printShadowRoot??!0,spacingInner:e?.min?" ":`
1
+ import Te from"../../../../../tinyrainbow@3.0.3/node_modules/tinyrainbow/dist/index.js";function v(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function de(e,t){const r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(const o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function I(e,t,r,n,o,u,s=": "){let a="",m=0,f=e.next();if(!f.done){a+=t.spacingOuter;const l=r+t.indent;for(;!f.done;){if(a+=l,m++===t.maxWidth){a+="…";break}const E=u(f.value[0],t,l,n,o),S=u(f.value[1],t,l,n,o);a+=E+s+S,f=e.next(),f.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function D(e,t,r,n,o,u){let s="",a=0,m=e.next();if(!m.done){s+=t.spacingOuter;const f=r+t.indent;for(;!m.done;){if(s+=f,a++===t.maxWidth){s+="…";break}s+=u(m.value,t,f,n,o),m=e.next(),m.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function M(e,t,r,n,o,u){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;const a=f=>f instanceof DataView,m=a(e)?e.byteLength:e.length;if(m>0){s+=t.spacingOuter;const f=r+t.indent;for(let l=0;l<m;l++){if(s+=f,l===t.maxWidth){s+="…";break}(a(e)||l in e)&&(s+=u(a(e)?e.getInt8(l):e[l],t,f,n,o)),l<m-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}function F(e,t,r,n,o,u){let s="";const a=de(e,t.compareKeys);if(a.length>0){s+=t.spacingOuter;const m=r+t.indent;for(let f=0;f<a.length;f++){const l=a[f],E=u(l,t,m,n,o),S=u(e[l],t,m,n,o);s+=`${m+E}: ${S}`,f<a.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}const Ne=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,O=" ",Ie=(e,t,r,n,o,u)=>{const s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return++n>t.maxDepth?`[${s}]`:`${s+O}[${M(e.sample,t,r,n,o,u)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return++n>t.maxDepth?`[${s}]`:`${s+O}{${F(e.sample,t,r,n,o,u)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+O+u(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},Oe=e=>e&&e.$$typeof===Ne,Ae={serialize:Ie,test:Oe},Re=" ",ee=new Set(["DOMStringMap","NamedNodeMap"]),Me=/^(?:HTML\w*Collection|NodeList)$/;function Ce(e){return ee.has(e)||Me.test(e)}const xe=e=>e&&e.constructor&&!!e.constructor.name&&Ce(e.constructor.name);function he(e){return e.constructor.name==="NamedNodeMap"}const we=(e,t,r,n,o,u)=>{const s=e.constructor.name;return++n>t.maxDepth?`[${s}]`:(t.min?"":s+Re)+(ee.has(s)?`{${F(he(e)?[...e].reduce((a,m)=>(a[m.name]=m.value,a),{}):{...e},t,r,n,o,u)}}`:`[${M([...e],t,r,n,o,u)}]`)},Pe={serialize:we,test:xe};function te(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function j(e,t,r,n,o,u,s){const a=n+r.indent,m=r.colors;return e.map(f=>{const l=t[f];if(typeof l=="string"&&l[0]==="_"&&l.startsWith("__vitest_")&&l.match(/__vitest_\d+__/))return"";let E=s(l,r,a,o,u);return typeof l!="string"&&(E.includes(`
2
+ `)&&(E=r.spacingOuter+a+E+r.spacingOuter+n),E=`{${E}}`),`${r.spacingInner+n+m.prop.open+f+m.prop.close}=${m.value.open}${E}${m.value.close}`}).join("")}function C(e,t,r,n,o,u){return e.map(s=>t.spacingOuter+r+(typeof s=="string"?re(s,t):u(s,t,r,n,o))).join("")}function ge(e,t,r,n,o,u){return t.printShadowRoot===!1?"":[`${t.spacingOuter+r}#shadow-root`,C(e,t,r+t.indent,n,o,u)].join("")}function re(e,t){const r=t.colors.content;return r.open+te(e)+r.close}function Le(e,t){const r=t.colors.comment;return`${r.open}<!--${te(e)}-->${r.close}`}function z(e,t,r,n,o){const u=n.colors.tag;return`${u.open}<${e}${t&&u.close+t+n.spacingOuter+o+u.open}${r?`>${u.close}${r}${n.spacingOuter}${o}${u.open}</${e}`:`${t&&!n.min?"":" "}/`}>${u.close}`}function B(e,t){const r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}const De=1,ne=3,oe=8,se=11,Fe=/^(?:(?:HTML|SVG)\w*)?Element$/;function je(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function ze(e){const t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||je(e);return r===De&&(Fe.test(t)||o)||r===ne&&t==="Text"||r===oe&&t==="Comment"||r===se&&t==="DocumentFragment"}const Be=e=>e?.constructor?.name&&ze(e);function Ue(e){return e.nodeType===ne}function Ye(e){return e.nodeType===oe}function A(e){return e.nodeType===se}const ke=(e,t,r,n,o,u)=>{if(Ue(e))return re(e.data,t);if(Ye(e))return Le(e.data,t);const s=A(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?B(s,t):z(s,j(A(e)?[]:Array.from(e.attributes,a=>a.name).sort(),A(e)?{}:[...e.attributes].reduce((a,m)=>(a[m.name]=m.value,a),{}),t,r+t.indent,n,o,u),(A(e)||!e.shadowRoot?"":ge(Array.prototype.slice.call(e.shadowRoot.children),t,r+t.indent,n,o,u))+C(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,u),t,r)},Ve={serialize:ke,test:Be},We="@@__IMMUTABLE_ITERABLE__@@",Ke="@@__IMMUTABLE_LIST__@@",qe="@@__IMMUTABLE_KEYED__@@",Je="@@__IMMUTABLE_MAP__@@",Y="@@__IMMUTABLE_ORDERED__@@",Ge="@@__IMMUTABLE_RECORD__@@",He="@@__IMMUTABLE_SEQ__@@",Xe="@@__IMMUTABLE_SET__@@",Qe="@@__IMMUTABLE_STACK__@@",d=e=>`Immutable.${e}`,x=e=>`[${e}]`,N=" ",k="…";function Ze(e,t,r,n,o,u,s){return++n>t.maxDepth?x(d(s)):`${d(s)+N}{${I(e.entries(),t,r,n,o,u)}}`}function ve(e){let t=0;return{next(){if(t<e._keys.length){const r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function et(e,t,r,n,o,u){const s=d(e._name||"Record");return++n>t.maxDepth?x(s):`${s+N}{${I(ve(e),t,r,n,o,u)}}`}function tt(e,t,r,n,o,u){const s=d("Seq");return++n>t.maxDepth?x(s):e[qe]?`${s+N}{${e._iter||e._object?I(e.entries(),t,r,n,o,u):k}}`:`${s+N}[${e._iter||e._array||e._collection||e._iterable?D(e.values(),t,r,n,o,u):k}]`}function P(e,t,r,n,o,u,s){return++n>t.maxDepth?x(d(s)):`${d(s)+N}[${D(e.values(),t,r,n,o,u)}]`}const rt=(e,t,r,n,o,u)=>e[Je]?Ze(e,t,r,n,o,u,e[Y]?"OrderedMap":"Map"):e[Ke]?P(e,t,r,n,o,u,"List"):e[Xe]?P(e,t,r,n,o,u,e[Y]?"OrderedSet":"Set"):e[Qe]?P(e,t,r,n,o,u,"Stack"):e[He]?tt(e,t,r,n,o,u):et(e,t,r,n,o,u),nt=e=>e&&(e[We]===!0||e[Ge]===!0),ot={serialize:rt,test:nt};function ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g={exports:{}},y={};var V;function st(){if(V)return y;V=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),S=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function _(c){if(typeof c=="object"&&c!==null){var i=c.$$typeof;switch(i){case e:switch(c=c.type,c){case r:case o:case n:case m:case f:case S:return c;default:switch(c=c&&c.$$typeof,c){case s:case a:case E:case l:return c;case u:return c;default:return i}}case t:return i}}}return y.ContextConsumer=u,y.ContextProvider=s,y.Element=e,y.ForwardRef=a,y.Fragment=r,y.Lazy=E,y.Memo=l,y.Portal=t,y.Profiler=o,y.StrictMode=n,y.Suspense=m,y.SuspenseList=f,y.isContextConsumer=function(c){return _(c)===u},y.isContextProvider=function(c){return _(c)===s},y.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===e},y.isForwardRef=function(c){return _(c)===a},y.isFragment=function(c){return _(c)===r},y.isLazy=function(c){return _(c)===E},y.isMemo=function(c){return _(c)===l},y.isPortal=function(c){return _(c)===t},y.isProfiler=function(c){return _(c)===o},y.isStrictMode=function(c){return _(c)===n},y.isSuspense=function(c){return _(c)===m},y.isSuspenseList=function(c){return _(c)===f},y.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===r||c===o||c===n||c===m||c===f||typeof c=="object"&&c!==null&&(c.$$typeof===E||c.$$typeof===l||c.$$typeof===s||c.$$typeof===u||c.$$typeof===a||c.$$typeof===h||c.getModuleId!==void 0)},y.typeOf=_,y}var W;function ut(){return W||(W=1,g.exports=st()),g.exports}var ce=ut(),ct=ue(ce),it=v({__proto__:null,default:ct},[ce]),L={exports:{}},p={};var K;function at(){if(K)return p;K=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),m=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function c(i){if(typeof i=="object"&&i!==null){var w=i.$$typeof;switch(w){case e:switch(i=i.type,i){case r:case o:case n:case f:case l:return i;default:switch(i=i&&i.$$typeof,i){case a:case s:case m:case S:case E:case u:return i;default:return w}}case t:return w}}}return p.ContextConsumer=s,p.ContextProvider=u,p.Element=e,p.ForwardRef=m,p.Fragment=r,p.Lazy=S,p.Memo=E,p.Portal=t,p.Profiler=o,p.StrictMode=n,p.Suspense=f,p.SuspenseList=l,p.isAsyncMode=function(){return!1},p.isConcurrentMode=function(){return!1},p.isContextConsumer=function(i){return c(i)===s},p.isContextProvider=function(i){return c(i)===u},p.isElement=function(i){return typeof i=="object"&&i!==null&&i.$$typeof===e},p.isForwardRef=function(i){return c(i)===m},p.isFragment=function(i){return c(i)===r},p.isLazy=function(i){return c(i)===S},p.isMemo=function(i){return c(i)===E},p.isPortal=function(i){return c(i)===t},p.isProfiler=function(i){return c(i)===o},p.isStrictMode=function(i){return c(i)===n},p.isSuspense=function(i){return c(i)===f},p.isSuspenseList=function(i){return c(i)===l},p.isValidElementType=function(i){return typeof i=="string"||typeof i=="function"||i===r||i===o||i===n||i===f||i===l||i===h||typeof i=="object"&&i!==null&&(i.$$typeof===S||i.$$typeof===E||i.$$typeof===u||i.$$typeof===s||i.$$typeof===m||i.$$typeof===_||i.getModuleId!==void 0)},p.typeOf=c,p}var q;function mt(){return q||(q=1,L.exports=at()),L.exports}var ie=mt(),ft=ue(ie),lt=v({__proto__:null,default:ft},[ie]);const pt=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],T=Object.fromEntries(pt.map(e=>[e,t=>lt[e](t)||it[e](t)]));function ae(e,t=[]){if(Array.isArray(e))for(const r of e)ae(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function J(e){const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(T.isFragment(e))return"React.Fragment";if(T.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(T.isContextProvider(e))return"Context.Provider";if(T.isContextConsumer(e))return"Context.Consumer";if(T.isForwardRef(e)){if(t.displayName)return t.displayName;const r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(T.isMemo(e)){const r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function yt(e){const{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}const Et=(e,t,r,n,o,u)=>++n>t.maxDepth?B(J(e),t):z(J(e),j(yt(e),e.props,t,r+t.indent,n,o,u),C(ae(e.props.children),t,r+t.indent,n,o,u),t,r),_t=e=>e!=null&&T.isElement(e),$t={serialize:Et,test:_t},St=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function bt(e){const{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}const Tt=(e,t,r,n,o,u)=>++n>t.maxDepth?B(e.type,t):z(e.type,e.props?j(bt(e),e.props,t,r+t.indent,n,o,u):"",e.children?C(e.children,t,r+t.indent,n,o,u):"",t,r),dt=e=>e&&e.$$typeof===St,Nt={serialize:Tt,test:dt},me=Object.prototype.toString,It=Date.prototype.toISOString,Ot=Error.prototype.toString,G=RegExp.prototype.toString;function R(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function At(e){return typeof window<"u"&&e===window}const Rt=/^Symbol\((.*)\)(.*)$/,Mt=/\n/g;class fe extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}}function Ct(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 xt(e){return Object.is(e,-0)?"-0":String(e)}function ht(e){return`${e}n`}function H(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function X(e){return String(e).replace(Rt,"Symbol($1)")}function Q(e){return`[${Ot.call(e)}]`}function le(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";const o=typeof e;if(o==="number")return xt(e);if(o==="bigint")return ht(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return H(e,t);if(o==="symbol")return X(e);const u=me.call(e);return u==="[object WeakMap]"?"WeakMap {}":u==="[object WeakSet]"?"WeakSet {}":u==="[object Function]"||u==="[object GeneratorFunction]"?H(e,t):u==="[object Symbol]"?X(e):u==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":It.call(e):u==="[object Error]"?Q(e):u==="[object RegExp]"?r?G.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):G.call(e):e instanceof Error?Q(e):null}function pe(e,t,r,n,o,u){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);const s=++n>t.maxDepth,a=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!u)return b(e.toJSON(),t,r,n,o,!0);const m=me.call(e);return m==="[object Arguments]"?s?"[Arguments]":`${a?"":"Arguments "}[${M(e,t,r,n,o,b)}]`:Ct(m)?s?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${M(e,t,r,n,o,b)}]`:m==="[object Map]"?s?"[Map]":`Map {${I(e.entries(),t,r,n,o,b," => ")}}`:m==="[object Set]"?s?"[Set]":`Set {${D(e.values(),t,r,n,o,b)}}`:s||At(e)?`[${R(e)}]`:`${a||!t.printBasicPrototype&&R(e)==="Object"?"":`${R(e)} `}{${F(e,t,r,n,o,b)}}`}const wt={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,u){if(o.includes(e))return"[Circular]";o=[...o,e];const s=++n>t.maxDepth,{message:a,cause:m,...f}=e,l={message:a,...typeof m<"u"?{cause:m}:{},...e instanceof AggregateError?{errors:e.errors}:{},...f},E=e.name!=="Error"?e.name:R(e);return s?`[${E}]`:`${E} {${I(Object.entries(l).values(),t,r,n,o,u)}}`}};function Pt(e){return e.serialize!=null}function ye(e,t,r,n,o,u){let s;try{s=Pt(e)?e.serialize(t,r,n,o,u,b):e.print(t,a=>b(a,r,n,o,u),a=>{const m=n+r.indent;return m+a.replaceAll(Mt,`
3
+ ${m}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(a){throw new fe(a.message,a.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function Ee(e,t){for(const r of e)try{if(r.test(t))return r}catch(n){throw new fe(n.message,n.stack)}return null}function b(e,t,r,n,o,u){const s=Ee(t.plugins,e);if(s!==null)return ye(s,e,t,r,n,o);const a=le(e,t.printFunctionName,t.escapeRegex,t.escapeString);return a!==null?a:pe(e,t,r,n,o,u)}const U={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},_e=Object.keys(U),$={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,printShadowRoot:!0,theme:U};function gt(e){for(const t of Object.keys(e))if(!Object.hasOwn($,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 Lt(){return _e.reduce((e,t)=>{const r=U[t],n=r&&Te[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 Dt(){return _e.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function $e(e){return e?.printFunctionName??$.printFunctionName}function Se(e){return e?.escapeRegex??$.escapeRegex}function be(e){return e?.escapeString??$.escapeString}function Z(e){return{callToJSON:e?.callToJSON??$.callToJSON,colors:e?.highlight?Lt():Dt(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:$.compareKeys,escapeRegex:Se(e),escapeString:be(e),indent:e?.min?"":Ft(e?.indent??$.indent),maxDepth:e?.maxDepth??$.maxDepth,maxWidth:e?.maxWidth??$.maxWidth,min:e?.min??$.min,plugins:e?.plugins??$.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:$e(e),printShadowRoot:e?.printShadowRoot??!0,spacingInner:e?.min?" ":`
4
4
  `,spacingOuter:e?.min?"":`
5
- `}}function Ft(e){return Array.from({length:e+1}).join(" ")}function zt(e,t){if(t&&(gt(t),t.plugins)){const n=Ee(t.plugins,e);if(n!==null)return ye(n,e,Z(t),"",0,[])}const r=le(e,Se(t),_e(t),be(t));return r!==null?r:pe(e,Z(t),"",0,[])}const Bt={AsymmetricMatcher:Ae,DOMCollection:Pe,DOMElement:Ve,Immutable:ot,ReactElement:St,ReactTestComponent:Nt,Error:wt};export{S as DEFAULT_OPTIONS,zt as format,Bt as plugins};
5
+ `}}function Ft(e){return Array.from({length:e+1}).join(" ")}function zt(e,t){if(t&&(gt(t),t.plugins)){const n=Ee(t.plugins,e);if(n!==null)return ye(n,e,Z(t),"",0,[])}const r=le(e,$e(t),Se(t),be(t));return r!==null?r:pe(e,Z(t),"",0,[])}const Bt={AsymmetricMatcher:Ae,DOMCollection:Pe,DOMElement:Ve,Immutable:ot,ReactElement:$t,ReactTestComponent:Nt,Error:wt};export{$ as DEFAULT_OPTIONS,zt as format,Bt as plugins};
@@ -1,2 +1,2 @@
1
- import{parseSingleStack as c}from"../../../../../@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/source-map.js";function u(t,n){function e(i){const s=function(...r){return n.apply(i,r)};Object.assign(s,n),s.withContext=()=>s.bind(i),s.setContext=(r,a)=>{i[r]=a},s.mergeContext=r=>{Object.assign(i,r)};for(const r of t)Object.defineProperty(s,r,{get(){return e({...i,[r]:!0})}});return s}const o=e({});return o.fn=n,o}function l(t,n){const e=n.split(`
1
+ import{parseSingleStack as c}from"../../../../../@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/source-map.js";function u(t,n){function e(i){const s=function(...r){return n.apply(i,r)};Object.assign(s,n),s.withContext=()=>s.bind(i),s.setContext=(r,a)=>{i[r]=a},s.mergeContext=r=>{Object.assign(i,r)};for(const r of t)Object.defineProperty(s,r,{get(){return e({...i,[r]:!0})}});return s}const o=e({});return o.fn=n,o}function l(t,n){const e=n.split(`
2
2
  `).slice(1);for(const o of e){const i=c(o);if(i&&i.file===t)return i}}function m(t){const n=[t.name];let e=t;for(;e?.suite;)e=e.suite,e?.name&&n.unshift(e.name);return e!==t.file&&n.unshift(t.file.name),n}function d(t,n=" > "){return t.filter(e=>e!==void 0).join(n)}export{u as c,d as e,l as f,m as j};