@apple-pie/slice 0.1.21 → 0.1.23

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 (174) hide show
  1. package/README.md +25 -1
  2. package/dist/cjs/chunks/AudioBubble-v4xKclI8.js +54 -0
  3. package/dist/cjs/chunks/{Button-DXvjvGtY.js → Button-DmWbooXb.js} +1 -1
  4. package/dist/cjs/chunks/{ButtonBar-BZ6sme27.js → ButtonBar-RSBwFaU-.js} +1 -1
  5. package/dist/cjs/chunks/{Camera-rVC4KI4v.js → Camera-CLm3aQR8.js} +6 -2
  6. package/dist/cjs/chunks/{CheckBox-DQRLqTAK.js → CheckBox-DDINn56u.js} +1 -1
  7. package/dist/cjs/chunks/{Chip-Pv9-KTnh.js → Chip-DRSg6kLh.js} +1 -1
  8. package/dist/cjs/chunks/{DrggablePanel-CkhCXqKv.js → DrggablePanel-CERavfv3.js} +6 -2
  9. package/dist/cjs/chunks/{DropDown-C3AZ5b_b.js → DropDown-CJH-Y6Z5.js} +1 -1
  10. package/dist/cjs/chunks/{ErrorSummary-BTgAd3sK.js → ErrorSummary-BfVHS893.js} +6 -2
  11. package/dist/cjs/chunks/{FileIcon-CZLe2S2l.js → FileIcon-xoD-xIme.js} +2 -2
  12. package/dist/cjs/chunks/{FileList-BHwBIics.js → FileList-DjTXjXnK.js} +1 -1
  13. package/dist/cjs/chunks/{Grouper-D4yyHHkM.js → Grouper-RYRxazG9.js} +1 -1
  14. package/dist/cjs/chunks/{Icon-D1EB8S5r.js → Icon-BB-t50Yt.js} +6 -2
  15. package/dist/cjs/chunks/{IconButton-B07Ttxbr.js → IconButton-BUw3YUsI.js} +1 -1
  16. package/dist/cjs/chunks/{Label-CTzvGcds.js → Label-NzMpkZo2.js} +1 -1
  17. package/dist/cjs/chunks/MdStreamBuffer-DObxjnAm.js +381 -0
  18. package/dist/cjs/chunks/{ProgressIndicator-BGqIwycX.js → ProgressIndicator-8QZwTSyY.js} +9 -4
  19. package/dist/cjs/chunks/{PromptInput-z6TuhHsG.js → PromptInput-D1wP5-uN.js} +2 -2
  20. package/dist/cjs/chunks/{RadioButton-DuIsM4lu.js → RadioButton-Cvqum7dU.js} +1 -1
  21. package/dist/cjs/chunks/{RadioButtonList-bu11ILyw.js → RadioButtonList-CPHTioGa.js} +1 -1
  22. package/dist/cjs/chunks/{TabBar-Bcq_n4Mk.js → TabBar-CnD3E-qa.js} +1 -1
  23. package/dist/cjs/chunks/{TextArea-BSKbDOEt.js → TextArea-rWqDDui3.js} +6 -6
  24. package/dist/cjs/chunks/{TextField-BNacOZVx.js → TextField-C6U-qhDt.js} +20 -22
  25. package/dist/cjs/chunks/{Toast-CZzAWG0S.js → Toast-D2fpwdjF.js} +6 -2
  26. package/dist/cjs/chunks/{UploadArea-CKuE4rtg.js → UploadArea-BS2BPuhZ.js} +1 -1
  27. package/dist/cjs/chunks/audioVisualizer-EIfIjWH7.js +60 -0
  28. package/dist/cjs/components/AudioBubble/index.js +10 -0
  29. package/dist/cjs/components/Button/index.js +4 -4
  30. package/dist/cjs/components/ButtonBar/index.js +2 -2
  31. package/dist/cjs/components/Camera/index.js +4 -4
  32. package/dist/cjs/components/CheckBox/index.js +2 -2
  33. package/dist/cjs/components/Chip/index.js +2 -2
  34. package/dist/cjs/components/DraggablePanel/index.js +3 -3
  35. package/dist/cjs/components/DropDown/index.js +2 -2
  36. package/dist/cjs/components/ErrorSummary/index.js +2 -2
  37. package/dist/cjs/components/FileIcon/index.js +3 -4
  38. package/dist/cjs/components/FileList/index.js +4 -4
  39. package/dist/cjs/components/Grouper/index.js +2 -2
  40. package/dist/cjs/components/Icon/index.js +3 -3
  41. package/dist/cjs/components/IconButton/index.js +4 -4
  42. package/dist/cjs/components/Label/index.js +1 -1
  43. package/dist/cjs/components/Progress/index.js +5 -5
  44. package/dist/cjs/components/PromptInput/index.js +7 -7
  45. package/dist/cjs/components/RadioButton/index.js +2 -2
  46. package/dist/cjs/components/RadioButtonList/index.js +3 -3
  47. package/dist/cjs/components/TabBar/index.js +3 -3
  48. package/dist/cjs/components/TextArea/index.js +4 -4
  49. package/dist/cjs/components/Textfield/index.js +5 -5
  50. package/dist/cjs/components/Toast/index.js +2 -2
  51. package/dist/cjs/components/UploadArea/index.js +5 -5
  52. package/dist/cjs/hooks/useAudioRecorder.js +70 -0
  53. package/dist/cjs/hooks/useMdStreamBuffer.js +41 -0
  54. package/dist/cjs/hooks/useMicrophone.js +132 -0
  55. package/dist/cjs/hooks.js +4 -2
  56. package/dist/cjs/index.js +7 -4
  57. package/dist/cjs/utils/index.js +2 -1
  58. package/dist/cjs/utils/objects/index.js +2 -1
  59. package/dist/esm/chunks/AudioBubble-Dvsrq1dZ.mjs +62 -0
  60. package/dist/esm/chunks/{Avatar-CSLVUF_y.mjs → Avatar-C8uV7ROZ.mjs} +2 -2
  61. package/dist/esm/chunks/{AvatarGroup--ELW-bO1.mjs → AvatarGroup-Bt1Lkn5S.mjs} +2 -2
  62. package/dist/esm/chunks/{Badge-DyICxZP2.mjs → Badge-D-U1jomY.mjs} +1 -1
  63. package/dist/esm/chunks/{Button-daLv0i7S.mjs → Button-sEYjFcR2.mjs} +5 -5
  64. package/dist/esm/chunks/{ButtonBar-DXK8meQq.mjs → ButtonBar-DSR2lhhN.mjs} +3 -3
  65. package/dist/esm/chunks/{Camera-BqmVsVKy.mjs → Camera-DSSiOeJd.mjs} +6 -6
  66. package/dist/esm/chunks/{CheckBox-BsaYFNC6.mjs → CheckBox-B6zWSySW.mjs} +3 -3
  67. package/dist/esm/chunks/{Chip-BRZeD1OX.mjs → Chip-BBKJ6wG4.mjs} +3 -3
  68. package/dist/esm/chunks/{DivInput-DeSpC8Wm.mjs → DivInput-cIMIH07H.mjs} +2 -2
  69. package/dist/esm/chunks/{Dot-CLGwQu-i.mjs → Dot-Cj6gWj4_.mjs} +1 -1
  70. package/dist/esm/chunks/{DrggablePanel-Ddi0vPRp.mjs → DrggablePanel-CQcIbxpX.mjs} +3 -3
  71. package/dist/esm/chunks/{DropDown-DOJvg96J.mjs → DropDown-B98ZoY1x.mjs} +3 -3
  72. package/dist/esm/chunks/{ErrorSummary-CHLkvdHk.mjs → ErrorSummary-Mz9siVxm.mjs} +3 -3
  73. package/dist/esm/chunks/{FileIcon-ePouoJpT.mjs → FileIcon-DeW-ZBiv.mjs} +3 -3
  74. package/dist/esm/chunks/{FileList-5LElsgoE.mjs → FileList-0Dzx15hl.mjs} +5 -5
  75. package/dist/esm/chunks/{Grouper-DR14qDXP.mjs → Grouper-B04WxD6K.mjs} +3 -3
  76. package/dist/esm/chunks/{Icon-CUSQtytG.mjs → Icon-KDwlMXzH.mjs} +3 -3
  77. package/dist/esm/chunks/{IconButton-DG69Vlhj.mjs → IconButton-oAB8ZFTf.mjs} +4 -4
  78. package/dist/esm/chunks/{IndexedDB-CJgzPHPB.mjs → IndexedDB-Dk7a4fPS.mjs} +1 -1
  79. package/dist/esm/chunks/{Label-CRsE7o3D.mjs → Label-BD7VlTDw.mjs} +3 -3
  80. package/dist/esm/chunks/MdStreamBuffer-DNXE4XbN.mjs +381 -0
  81. package/dist/esm/chunks/{Overlay-TOzZXnwF.mjs → Overlay-3KkyDm1f.mjs} +1 -1
  82. package/dist/esm/chunks/{Pager-BYT7_mCb.mjs → Pager-DmiwYLl5.mjs} +2 -2
  83. package/dist/esm/chunks/{ProgressIndicator-D7paCpgY.mjs → ProgressIndicator-CxsZm_As.mjs} +6 -5
  84. package/dist/esm/chunks/{PromptInput-CpxUcInZ.mjs → PromptInput-D4Q-DWjz.mjs} +4 -2
  85. package/dist/esm/chunks/{RadioButton-B5ZF5oJ_.mjs → RadioButton-B0jvM5VW.mjs} +3 -3
  86. package/dist/esm/chunks/{RadioButtonList-D9ZAZgkK.mjs → RadioButtonList-DBRAv87_.mjs} +3 -3
  87. package/dist/esm/chunks/{Slider-DL2iuNlh.mjs → Slider-CONGTXUE.mjs} +2 -2
  88. package/dist/esm/chunks/{Spacer-BlgEdKEM.mjs → Spacer-C5fcJYq-.mjs} +1 -1
  89. package/dist/esm/chunks/{Switch-BhCOo5Lu.mjs → Switch-CyoaJwSX.mjs} +1 -1
  90. package/dist/esm/chunks/{TabBar-BK7OcjPl.mjs → TabBar-DmO1ixBz.mjs} +4 -4
  91. package/dist/esm/chunks/{TextArea-BmsEj6IA.mjs → TextArea-Bd_obSSH.mjs} +7 -7
  92. package/dist/esm/chunks/{TextField-DWPpevsj.mjs → TextField-CZnUNhFe.mjs} +20 -26
  93. package/dist/esm/chunks/{Tip-BnKB9qMi.mjs → Tip-DrQvxDsH.mjs} +2 -2
  94. package/dist/esm/chunks/{Toast-DPHLwDES.mjs → Toast-C5XSDgno.mjs} +4 -4
  95. package/dist/esm/chunks/{UploadArea-DPiOaNpc.mjs → UploadArea-Gpq-MhqB.mjs} +4 -4
  96. package/dist/esm/chunks/{WSConnection-D9mpsVdc.mjs → WSConnection-DV7k84B4.mjs} +1 -1
  97. package/dist/esm/chunks/{_types-CPrEyJX9.mjs → _types-DOQAaLqq.mjs} +1 -1
  98. package/dist/esm/chunks/audioVisualizer-ZgT77nUw.mjs +60 -0
  99. package/dist/esm/chunks/{localDBStore-B4jkR5Jx.mjs → localDBStore-Dnpo5nSv.mjs} +2 -2
  100. package/dist/esm/chunks/{misc-N8KLjOXc.mjs → misc-BeEWwOaJ.mjs} +1 -1
  101. package/dist/esm/chunks/{sseStore-2JIpEKfz.mjs → sseStore-DjrfpNAS.mjs} +1 -1
  102. package/dist/esm/chunks/{tslib.es6-c-7TIv71.mjs → tslib.es6-C-olHjXV.mjs} +1 -1
  103. package/dist/esm/chunks/{uploads-worker-Dv-4zGnC.mjs → uploads-worker-7X9EwX9N.mjs} +1 -1
  104. package/dist/esm/chunks/{uploadsStore-D69fEXMY.mjs → uploadsStore-B7VECR5Q.mjs} +1 -1
  105. package/dist/esm/chunks/{windowStore-BOTh1g37.mjs → windowStore-CAzx2-QV.mjs} +1 -1
  106. package/dist/esm/components/AudioBubble/index.mjs +31 -0
  107. package/dist/esm/components/Avatar/index.mjs +3 -3
  108. package/dist/esm/components/AvatarGroup/index.mjs +4 -4
  109. package/dist/esm/components/Badge/index.mjs +2 -2
  110. package/dist/esm/components/Button/index.mjs +8 -8
  111. package/dist/esm/components/ButtonBar/index.mjs +4 -4
  112. package/dist/esm/components/Camera/index.mjs +7 -7
  113. package/dist/esm/components/CheckBox/index.mjs +4 -4
  114. package/dist/esm/components/Chip/index.mjs +4 -4
  115. package/dist/esm/components/DivInput/index.mjs +3 -3
  116. package/dist/esm/components/Dot/index.mjs +2 -2
  117. package/dist/esm/components/DraggablePanel/index.mjs +4 -4
  118. package/dist/esm/components/DropDown/index.mjs +4 -4
  119. package/dist/esm/components/ErrorSummary/index.mjs +4 -4
  120. package/dist/esm/components/FileIcon/index.mjs +4 -4
  121. package/dist/esm/components/FileList/index.mjs +6 -6
  122. package/dist/esm/components/FlexDiv/index.mjs +2 -2
  123. package/dist/esm/components/Grouper/index.mjs +5 -5
  124. package/dist/esm/components/Icon/index.mjs +4 -4
  125. package/dist/esm/components/IconButton/index.mjs +7 -7
  126. package/dist/esm/components/Label/index.mjs +3 -3
  127. package/dist/esm/components/Overlay/index.mjs +2 -2
  128. package/dist/esm/components/Pager/index.mjs +3 -3
  129. package/dist/esm/components/Progress/index.mjs +5 -5
  130. package/dist/esm/components/PromptInput/index.mjs +11 -11
  131. package/dist/esm/components/RadioButton/index.mjs +4 -4
  132. package/dist/esm/components/RadioButtonList/index.mjs +5 -5
  133. package/dist/esm/components/Slider/index.mjs +3 -3
  134. package/dist/esm/components/Spacer/index.mjs +2 -2
  135. package/dist/esm/components/Switch/index.mjs +2 -2
  136. package/dist/esm/components/TabBar/index.mjs +7 -7
  137. package/dist/esm/components/TextArea/index.mjs +9 -9
  138. package/dist/esm/components/Textfield/index.mjs +10 -10
  139. package/dist/esm/components/Tip/index.mjs +3 -3
  140. package/dist/esm/components/Toast/index.mjs +5 -5
  141. package/dist/esm/components/UploadArea/index.mjs +7 -7
  142. package/dist/esm/hooks/useAudioRecorder.mjs +74 -0
  143. package/dist/esm/hooks/useMdStreamBuffer.mjs +42 -0
  144. package/dist/esm/hooks/useMicrophone.mjs +134 -0
  145. package/dist/esm/hooks/useTrackRenders.mjs +2 -2
  146. package/dist/esm/hooks.mjs +10 -0
  147. package/dist/esm/index.mjs +51 -39
  148. package/dist/esm/stores/LocalDB.mjs +3 -3
  149. package/dist/esm/stores/SSE.mjs +2 -2
  150. package/dist/esm/stores/WS.mjs +2 -2
  151. package/dist/esm/stores/uploads.mjs +3 -3
  152. package/dist/esm/stores/window.mjs +2 -2
  153. package/dist/esm/stores.mjs +7 -7
  154. package/dist/esm/utils/index.mjs +8 -4
  155. package/dist/esm/utils/objects/index.mjs +7 -3
  156. package/dist/esm/workers/uploads/uploads.mjs +2 -2
  157. package/dist/types/components/AudioBubble/AudioBubble.d.ts +3 -0
  158. package/dist/types/components/AudioBubble/_types.d.ts +18 -0
  159. package/dist/types/components/AudioBubble/index.d.ts +2 -0
  160. package/dist/types/components/Textfield/_types.d.ts +1 -3
  161. package/dist/types/hooks/index.d.ts +3 -0
  162. package/dist/types/hooks/useAudioRecorder/useAudioRecorder.d.ts +14 -0
  163. package/dist/types/hooks/useMdStreamBuffer/useMdStreamBuffer.d.ts +10 -0
  164. package/dist/types/hooks/useMicrophone/useMicrophone.d.ts +19 -0
  165. package/dist/types/index.d.ts +3 -1
  166. package/dist/types/utils/index.d.ts +2 -2
  167. package/dist/types/utils/objects/MDStreamBuffer/MdStreamBuffer.d.ts +63 -0
  168. package/dist/types/utils/objects/MDStreamBuffer/_defaults.d.ts +3 -0
  169. package/dist/types/utils/objects/MDStreamBuffer/_types.d.ts +25 -0
  170. package/dist/types/utils/objects/WebRTCConnection/WebRTCConnection.d.ts +86 -0
  171. package/dist/types/utils/objects/WebRTCConnection/_types.d.ts +11 -0
  172. package/dist/types/utils/objects/audioVisualizer/audioVisualizer.d.ts +40 -0
  173. package/dist/types/utils/objects/index.d.ts +4 -0
  174. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
 
5
5
  import React, { useId, useState, useEffect, useCallback, useMemo } from "react";
6
6
 
7
- import { s as setStyle } from "./misc-N8KLjOXc.mjs";
7
+ import { s as setStyle } from "./misc-BeEWwOaJ.mjs";
8
8
 
9
- import { R as RadioButton } from "./RadioButton-B5ZF5oJ_.mjs";
9
+ import { R as RadioButton } from "./RadioButton-B0jvM5VW.mjs";
10
10
 
11
11
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
12
12
 
@@ -1,4 +1,4 @@
1
- import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
 
@@ -6,7 +6,7 @@ import React, { useRef, useState, useMemo, useCallback, useEffect } from "react"
6
6
 
7
7
  import { useObserveResize } from "../hooks/useObserveResize.mjs";
8
8
 
9
- import { p as pointerPosition } from "./misc-N8KLjOXc.mjs";
9
+ import { p as pointerPosition } from "./misc-BeEWwOaJ.mjs";
10
10
 
11
11
  import { d as debounce } from "./debounce-Bst1jxMS.mjs";
12
12
 
@@ -1,4 +1,4 @@
1
- import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
@@ -1,4 +1,4 @@
1
- import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
@@ -1,4 +1,4 @@
1
- import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
 
@@ -10,11 +10,11 @@ import "../theme/colors.mjs";
10
10
 
11
11
  import "../hooks/useWindow.mjs";
12
12
 
13
- import { B as Badge } from "./Badge-DyICxZP2.mjs";
13
+ import { B as Badge } from "./Badge-D-U1jomY.mjs";
14
14
 
15
- import { I as Icon } from "./Icon-CUSQtytG.mjs";
15
+ import { I as Icon } from "./Icon-KDwlMXzH.mjs";
16
16
 
17
- import { I as IconButton } from "./IconButton-DG69Vlhj.mjs";
17
+ import { I as IconButton } from "./IconButton-oAB8ZFTf.mjs";
18
18
 
19
19
  import { T as ToolTipType } from "./sharedTypes-tn9-uJvb.mjs";
20
20
 
@@ -1,10 +1,10 @@
1
- import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  import { jsxs, jsx } from "react/jsx-runtime";
4
4
 
5
5
  import React, { useState, useRef, useCallback, useEffect, useMemo } from "react";
6
6
 
7
- import { B as Button } from "./Button-daLv0i7S.mjs";
7
+ import { B as Button } from "./Button-sEYjFcR2.mjs";
8
8
 
9
9
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
10
10
 
@@ -28,16 +28,16 @@ const TextArea = React.memo(props => {
28
28
  }, [ onChange ]), handleFocus = useCallback(() => {
29
29
  var _a, _b;
30
30
  (null == ref ? void 0 : ref.current) && ref.current.focus(), setIsFocused(!0), onFocus(null !== (_b = null === (_a = ref.current) || void 0 === _a ? void 0 : _a.value) && void 0 !== _b ? _b : "");
31
- }, [ onFocus ]), handleBlur = useCallback(content => {
31
+ }, [ onFocus ]), handleBlur = useCallback(() => {
32
32
  var _a, _b;
33
- handleChange(content), setIsFocused(!1), onBlur(null !== (_b = null === (_a = ref.current) || void 0 === _a ? void 0 : _a.value) && void 0 !== _b ? _b : "");
34
- }, [ handleChange, onBlur ]), handleSubmit = useCallback(e => {
33
+ setIsFocused(!1), onBlur(null !== (_b = null === (_a = ref.current) || void 0 === _a ? void 0 : _a.value) && void 0 !== _b ? _b : "");
34
+ }, [ onBlur ]), handleSubmit = useCallback(e => {
35
35
  null == e || e.preventDefault(), handleFocus(), onSubmit(text), submitClears && setText(""),
36
36
  (null == ref ? void 0 : ref.current) && (ref.current.value = ""), handleResize();
37
37
  }, [ handleFocus, onSubmit, text, submitClears, handleResize ]), handleKeyDownWrapper = useCallback(e => {
38
38
  returnSubmits && "Enter" === e.key && (e.preventDefault(), e.stopPropagation(),
39
39
  handleSubmit(void 0)), onKeyDown(e);
40
- }, [ returnSubmits, handleSubmit, onKeyDown ]), setStyleValue = useCallback(value => "string" == typeof value ? value : `${value}px`, []), setBorderColor = useMemo(() => isFocused ? "var(--core-link-primary)" : error ? "var(--feedback-warning)" : border ? "var(--core-outline-primary)" : "transparent", [ isFocused, error, border ]), textClassName = useMemo(() => "xs" === textSize ? css_xs : "l" === textSize ? css_l : "m" === textSize ? css_m : css_s, [ textSize ]), cssVars = useMemo(() => ({
40
+ }, [ returnSubmits, handleSubmit, onKeyDown ]), setStyleValue = useCallback(value => "string" == typeof value ? value : `${value}px`, []), setBorderColor = useMemo(() => border && isFocused ? "var(--core-link-primary)" : border && error ? "var(--feedback-warning)" : border ? "var(--core-outline-primary)" : "transparent", [ isFocused, error, border ]), textClassName = useMemo(() => "xs" === textSize ? css_xs : "l" === textSize ? css_l : "m" === textSize ? css_m : css_s, [ textSize ]), cssVars = useMemo(() => ({
41
41
  "--ta-border-radius": `${borderRadius}px`,
42
42
  "--ta-width": `${setStyleValue(width)}`,
43
43
  "--ta-min-width": minWidth ? `${minWidth}px` : "unset",
@@ -53,7 +53,7 @@ const TextArea = React.memo(props => {
53
53
  id: divId,
54
54
  className: `${css_wrapper}${divClass}`,
55
55
  style: Object.assign(Object.assign({}, divStyle), cssVars),
56
- onBlur: () => handleBlur(text),
56
+ onBlur: () => handleBlur(),
57
57
  onFocus: () => handleFocus()
58
58
  }, rest, {
59
59
  children: [ hasSend && jsx("div", {
@@ -1,4 +1,4 @@
1
- import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  import { jsxs, jsx } from "react/jsx-runtime";
4
4
 
@@ -10,15 +10,15 @@ import { useTheme } from "../hooks/useTheme.mjs";
10
10
 
11
11
  import "../theme/colors.mjs";
12
12
 
13
- import "../hooks/useWindow.mjs";
13
+ import { s as setStyle } from "./misc-BeEWwOaJ.mjs";
14
14
 
15
- import { s as setStyle } from "./misc-N8KLjOXc.mjs";
15
+ import "../hooks/useWindow.mjs";
16
16
 
17
- import { B as Button } from "./Button-daLv0i7S.mjs";
17
+ import { B as Button } from "./Button-sEYjFcR2.mjs";
18
18
 
19
- import { I as Icon } from "./Icon-CUSQtytG.mjs";
19
+ import { I as Icon } from "./Icon-KDwlMXzH.mjs";
20
20
 
21
- import { I as IconButton } from "./IconButton-DG69Vlhj.mjs";
21
+ import { I as IconButton } from "./IconButton-oAB8ZFTf.mjs";
22
22
 
23
23
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
24
24
 
@@ -54,32 +54,26 @@ const MOTION_CONFIG = {
54
54
  duration: .25
55
55
  }
56
56
  }, TextField = React.memo(props => {
57
- const theme = useTheme(), {name: name = "input_name", value: value = "", label: label = "", labelSize: labelSize = "m", textSize: textSize = "m", placeholder: placeholder = "placeholder", focused: focused = !1, onSubmit: onSubmit = () => null, onChange: onChange = () => null, onBlur: onBlur = () => null, onFocus: onFocus = () => null, onKeydown: onKeydown = () => null, onAction: onAction = () => null, onPaste: onPaste = () => null, onClear: onClear = () => null, onValidate: onValidate = () => null, actionButton: actionButton = !1, maxLength: maxLength, size: size = {
57
+ const theme = useTheme(), {name: name = "input_name", value: value = "", label: label = "", labelSize: labelSize = "m", textSize: textSize = "m", placeholder: placeholder = "placeholder", focused: focused = !1, onSubmit: onSubmit = () => null, onChange: onChange = () => null, onBlur: onBlur = () => null, onFocus: onFocus = () => null, onKeydown: onKeydown = () => null, onAction: onAction = () => null, onPaste: onPaste = () => null, onClear: onClear = () => null, actionButton: actionButton = !1, maxLength: maxLength, size: size = {
58
58
  width: "100%",
59
59
  height: "auto"
60
- }, padding: padding, borderRadius: borderRadius = 8, editable: editable = !0, textAlign: textAlign = "left", isValid: isValid = !0, inline: inline = !1, noShow: noShow = !1, borderType: borderType = "box", validate: validate = !0, borderColorFocused: borderColorFocused = "var(--core-link-primary)", borderColorBlurred: borderColorBlurred = "var(--core-outline-primary)", borderColorError: borderColorError = "var(--feedback-warning)", backgroundColorFocused: backgroundColorFocused = "var(--core-surface-secondary)", backgroundColorBlurred: backgroundColorBlurred = "var(--core-surface-secondary)", textColorFocused: textColorFocused = "var(--core-text-primary)", textColorBlurred: textColorBlurred = "var(--core-text-primary)", textColorError: textColorError = "var(--feedback-warning)", textColorPlaceholder: textColorPlaceholder = "var(--core-text-disabled)", textColorDisabled: textColorDisabled = "var(--core-text-disabled)", labelColor: labelColor = "var(--core-text-primary)", iconLeft: iconLeft = null, clearButton: clearButton = {
60
+ }, padding: padding, borderRadius: borderRadius = 8, editable: editable = !0, textAlign: textAlign = "left", inline: inline = !1, noShow: noShow = !1, borderType: borderType = "box", error: error = !1, borderColorFocused: borderColorFocused = "var(--core-link-primary)", borderColorBlurred: borderColorBlurred = "var(--core-outline-primary)", borderColorError: borderColorError = "var(--feedback-warning)", backgroundColorFocused: backgroundColorFocused = "var(--core-surface-secondary)", backgroundColorBlurred: backgroundColorBlurred = "var(--core-surface-secondary)", textColorFocused: textColorFocused = "var(--core-text-primary)", textColorBlurred: textColorBlurred = "var(--core-text-primary)", textColorError: textColorError = "var(--feedback-warning)", textColorPlaceholder: textColorPlaceholder = "var(--core-text-disabled)", textColorDisabled: textColorDisabled = "var(--core-text-disabled)", labelColor: labelColor = "var(--core-text-primary)", iconLeft: iconLeft = null, clearButton: clearButton = {
61
61
  size: 20
62
- }, clearBlurs: clearBlurs = !1, disabled: disabled = !1, inputType: inputType = "text"} = props, divAttributes = __rest(props, [ "name", "value", "label", "labelSize", "textSize", "placeholder", "focused", "onSubmit", "onChange", "onBlur", "onFocus", "onKeydown", "onAction", "onPaste", "onClear", "onValidate", "actionButton", "maxLength", "size", "padding", "borderRadius", "editable", "textAlign", "isValid", "inline", "noShow", "borderType", "validate", "borderColorFocused", "borderColorBlurred", "borderColorError", "backgroundColorFocused", "backgroundColorBlurred", "textColorFocused", "textColorBlurred", "textColorError", "textColorPlaceholder", "textColorDisabled", "labelColor", "iconLeft", "clearButton", "clearBlurs", "disabled", "inputType" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", input = useRef(null), [text, setText] = useState(value), [isFocused, setIsFocused] = useState(focused), [valid, setValid] = useState(isValid), [show, setShow] = useState(!1);
62
+ }, clearBlurs: clearBlurs = !1, disabled: disabled = !1, inputType: inputType = "text"} = props, divAttributes = __rest(props, [ "name", "value", "label", "labelSize", "textSize", "placeholder", "focused", "onSubmit", "onChange", "onBlur", "onFocus", "onKeydown", "onAction", "onPaste", "onClear", "actionButton", "maxLength", "size", "padding", "borderRadius", "editable", "textAlign", "inline", "noShow", "borderType", "error", "borderColorFocused", "borderColorBlurred", "borderColorError", "backgroundColorFocused", "backgroundColorBlurred", "textColorFocused", "textColorBlurred", "textColorError", "textColorPlaceholder", "textColorDisabled", "labelColor", "iconLeft", "clearButton", "clearBlurs", "disabled", "inputType" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", input = useRef(null), [text, setText] = useState(value), [isFocused, setIsFocused] = useState(focused), [show, setShow] = useState(!1);
63
63
  useEffect(() => {
64
64
  input.current && (focused ? input.current.focus() : input.current.blur(), setIsFocused(focused));
65
65
  }, [ focused ]), useEffect(() => {
66
66
  setText(value);
67
- }, [ value ]), useEffect(() => {
68
- setValid(isValid);
69
- }, [ isValid ]);
70
- const textIsValid = useCallback(entry => {
71
- if (!validate) return;
72
- const ok = entry.length > 1 || "" === entry;
73
- setValid(ok), valid !== ok && onValidate(ok);
74
- }, [ onValidate, valid, validate ]), handleClearTextField = useCallback(() => {
67
+ }, [ value ]);
68
+ const handleClearTextField = useCallback(() => {
75
69
  var _a;
76
70
  disabled || "" === (null === (_a = input.current) || void 0 === _a ? void 0 : _a.value) || ((null == input ? void 0 : input.current) && (clearBlurs || input.current.focus(),
77
- setText(""), textIsValid("")), onChange(""), onClear());
78
- }, [ disabled, clearBlurs, onChange, onClear, textIsValid ]), handleValueChange = useCallback(newValue => {
79
- disabled || (setText(newValue), onChange(newValue), valid || textIsValid(text));
80
- }, [ onChange, textIsValid, text, valid, disabled ]), handleBlur = useCallback(() => {
81
- disabled || (textIsValid(text), setIsFocused(!1), onBlur(text));
82
- }, [ text, onBlur, textIsValid, disabled ]), handleKeyDown = useCallback(e => {
71
+ setText("")), onChange(""), onClear());
72
+ }, [ disabled, clearBlurs, onChange, onClear ]), handleValueChange = useCallback(newValue => {
73
+ disabled || (setText(newValue), onChange(newValue));
74
+ }, [ onChange, disabled ]), handleBlur = useCallback(() => {
75
+ disabled || (setIsFocused(!1), onBlur(text));
76
+ }, [ text, onBlur, disabled ]), handleKeyDown = useCallback(e => {
83
77
  var _a;
84
78
  if (!disabled) {
85
79
  if ("Enter" === e.key && (handleBlur(), onSubmit(text), null === (_a = input.current) || void 0 === _a || _a.blur()),
@@ -98,8 +92,8 @@ const MOTION_CONFIG = {
98
92
  minHeight: clearButton.size
99
93
  } : void 0, [ clearButton ]), setBackgroundColor = useMemo(() => inline ? "unset" : isFocused ? null != backgroundColorFocused ? backgroundColorFocused : "transparent" : null != backgroundColorBlurred ? backgroundColorBlurred : "transparent", [ inline, isFocused, backgroundColorFocused, backgroundColorBlurred ]), setBorderColor = useMemo(() => {
100
94
  var _a, _b;
101
- return "none" === borderType ? "transparent" : validate && !valid ? null !== (_a = null != borderColorError ? borderColorError : borderColorBlurred) && void 0 !== _a ? _a : "transparent" : isFocused ? null !== (_b = null != borderColorFocused ? borderColorFocused : borderColorBlurred) && void 0 !== _b ? _b : "transparent" : null != borderColorBlurred ? borderColorBlurred : "transparent";
102
- }, [ borderType, valid, isFocused, borderColorError, borderColorFocused, borderColorBlurred, validate ]), setBoxShadow = useMemo(() => "none" === borderType ? "unset" : "underline" === borderType ? `0 1px 0 0 ${setBorderColor}` : `0 0 0 1px ${setBorderColor}`, [ borderType, setBorderColor ]), textColor = useMemo(() => validate && !valid ? null != textColorError ? textColorError : "var(--core-text-primary)" : isFocused ? null != textColorFocused ? textColorFocused : "var(--core-text-primary)" : null != textColorBlurred ? textColorBlurred : "var(--core-text-primary)", [ isFocused, valid, textColorError, textColorFocused, textColorBlurred, validate ]), setTextAlign = useMemo(() => null != textAlign ? textAlign : "left", [ textAlign ]), setShowOpacity = useMemo(() => "password" !== inputType ? "0" : isFocused ? "1" : "0.5", [ inputType, isFocused ]), setPaddingRight = useMemo(() => {
95
+ return "none" === borderType ? "transparent" : error ? null !== (_a = null != borderColorError ? borderColorError : borderColorBlurred) && void 0 !== _a ? _a : "transparent" : isFocused ? null !== (_b = null != borderColorFocused ? borderColorFocused : borderColorBlurred) && void 0 !== _b ? _b : "transparent" : null != borderColorBlurred ? borderColorBlurred : "transparent";
96
+ }, [ borderType, error, isFocused, borderColorError, borderColorFocused, borderColorBlurred ]), setBoxShadow = useMemo(() => "none" === borderType ? "unset" : "underline" === borderType ? `0 1px 0 0 ${setBorderColor}` : `0 0 0 1px ${setBorderColor}`, [ borderType, setBorderColor ]), textColor = useMemo(() => error ? null != textColorError ? textColorError : "var(--core-text-primary)" : isFocused ? null != textColorFocused ? textColorFocused : "var(--core-text-primary)" : null != textColorBlurred ? textColorBlurred : "var(--core-text-primary)", [ isFocused, error, textColorError, textColorFocused, textColorBlurred ]), setTextAlign = useMemo(() => null != textAlign ? textAlign : "left", [ textAlign ]), setShowOpacity = useMemo(() => "password" !== inputType ? "0" : isFocused ? "1" : "0.5", [ inputType, isFocused ]), setPaddingRight = useMemo(() => {
103
97
  const defaultPadding = clearButton ? 8 : 16;
104
98
  if (!padding) return defaultPadding;
105
99
  if ("string" == typeof padding) {
@@ -204,7 +198,7 @@ const MOTION_CONFIG = {
204
198
  }) ]
205
199
  }) ]
206
200
  }));
207
- }, (prevProps, nextProps) => prevProps.value === nextProps.value && prevProps.borderType === nextProps.borderType && prevProps.borderRadius === nextProps.borderRadius && prevProps.borderColorFocused === nextProps.borderColorFocused && prevProps.borderColorBlurred === nextProps.borderColorBlurred && prevProps.borderColorError === nextProps.borderColorError && prevProps.backgroundColorFocused === nextProps.backgroundColorFocused && prevProps.backgroundColorBlurred === nextProps.backgroundColorBlurred && prevProps.textColorFocused === nextProps.textColorFocused && prevProps.textColorBlurred === nextProps.textColorBlurred && prevProps.textColorError === nextProps.textColorError && prevProps.textColorPlaceholder === nextProps.textColorPlaceholder && prevProps.textColorDisabled === nextProps.textColorDisabled && prevProps.labelColor === nextProps.labelColor && prevProps.labelSize === nextProps.labelSize && prevProps.focused === nextProps.focused && prevProps.isValid === nextProps.isValid && prevProps.validate === nextProps.validate && prevProps.disabled === nextProps.disabled && prevProps.label === nextProps.label && prevProps.inputType === nextProps.inputType && prevProps.textSize === nextProps.textSize && prevProps.padding === nextProps.padding && prevProps.textAlign === nextProps.textAlign && prevProps.placeholder === nextProps.placeholder);
201
+ }, (prevProps, nextProps) => prevProps.value === nextProps.value && prevProps.borderType === nextProps.borderType && prevProps.borderRadius === nextProps.borderRadius && prevProps.borderColorFocused === nextProps.borderColorFocused && prevProps.borderColorBlurred === nextProps.borderColorBlurred && prevProps.borderColorError === nextProps.borderColorError && prevProps.backgroundColorFocused === nextProps.backgroundColorFocused && prevProps.backgroundColorBlurred === nextProps.backgroundColorBlurred && prevProps.textColorFocused === nextProps.textColorFocused && prevProps.textColorBlurred === nextProps.textColorBlurred && prevProps.textColorError === nextProps.textColorError && prevProps.textColorPlaceholder === nextProps.textColorPlaceholder && prevProps.textColorDisabled === nextProps.textColorDisabled && prevProps.labelColor === nextProps.labelColor && prevProps.labelSize === nextProps.labelSize && prevProps.focused === nextProps.focused && prevProps.error === nextProps.error && prevProps.disabled === nextProps.disabled && prevProps.label === nextProps.label && prevProps.inputType === nextProps.inputType && prevProps.textSize === nextProps.textSize && prevProps.padding === nextProps.padding && prevProps.textAlign === nextProps.textAlign && prevProps.placeholder === nextProps.placeholder);
208
202
 
209
203
  TextField.displayName = "TextField";
210
204
 
@@ -1,4 +1,4 @@
1
- import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
@@ -6,7 +6,7 @@ import { motion } from "motion/react";
6
6
 
7
7
  import React, { useState, useRef, useEffect, useMemo } from "react";
8
8
 
9
- import { f as filterClasses } from "./misc-N8KLjOXc.mjs";
9
+ import { f as filterClasses } from "./misc-BeEWwOaJ.mjs";
10
10
 
11
11
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
12
12
 
@@ -1,4 +1,4 @@
1
- import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
 
@@ -10,11 +10,11 @@ import { useTheme } from "../hooks/useTheme.mjs";
10
10
 
11
11
  import "../theme/colors.mjs";
12
12
 
13
- import "../hooks/useWindow.mjs";
13
+ import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-BeEWwOaJ.mjs";
14
14
 
15
- import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-N8KLjOXc.mjs";
15
+ import "../hooks/useWindow.mjs";
16
16
 
17
- import { I as Icon } from "./Icon-CUSQtytG.mjs";
17
+ import { I as Icon } from "./Icon-KDwlMXzH.mjs";
18
18
 
19
19
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
20
20
 
@@ -2,13 +2,13 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
 
3
3
  import React, { useState, useRef, useId, useCallback, useMemo } from "react";
4
4
 
5
- import { s as setStyle, a as accessibleKeyDown } from "./misc-N8KLjOXc.mjs";
5
+ import { s as setStyle, a as accessibleKeyDown } from "./misc-BeEWwOaJ.mjs";
6
6
 
7
- import { F as FileList } from "./FileList-5LElsgoE.mjs";
7
+ import { F as FileList } from "./FileList-0Dzx15hl.mjs";
8
8
 
9
- import { I as Icon } from "./Icon-CUSQtytG.mjs";
9
+ import { I as Icon } from "./Icon-KDwlMXzH.mjs";
10
10
 
11
- import { P as ProgressIndicator } from "./ProgressIndicator-D7paCpgY.mjs";
11
+ import { P as ProgressIndicator } from "./ProgressIndicator-CxsZm_As.mjs";
12
12
 
13
13
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
14
14
 
@@ -1,4 +1,4 @@
1
- import { a as __awaiter } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { _ as __awaiter } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  /**
4
4
  * Manage a WebSocket connection with optional unified events, retries, and keep-alive pings.
@@ -1,4 +1,4 @@
1
- import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
@@ -0,0 +1,60 @@
1
+ class AudioVisualizer {
2
+ constructor(source, options = {}) {
3
+ var _a, _b, _c, _d, _e, _f, _g;
4
+ this.analyser = null, this.animationFrameId = null, this.audioContext = null, this.currentIntensity = 0,
5
+ this.lastFrameTime = 0, this.sourceNode = null, this.timeDomainData = null, this.onFrame = now => {
6
+ var _a;
7
+ if (!this.analyser || !this.timeDomainData) return;
8
+ this.analyser.getByteTimeDomainData(this.timeDomainData);
9
+ let sum = 0;
10
+ for (const sample of this.timeDomainData) {
11
+ const normalized = (sample - 128) / 128;
12
+ sum += normalized * normalized;
13
+ }
14
+ const rms = Math.sqrt(sum / this.timeDomainData.length), targetIntensity = (value = rms * this.intensityMultiplier / this.peakIntensity,
15
+ min = 0, max = 1, Math.min(Math.max(value, min), max));
16
+ var value, min, max;
17
+ const deltaSeconds = Math.max((now - this.lastFrameTime) / 1e3, 0), stepPerSecond = targetIntensity > this.currentIntensity ? this.risePerSecond : this.releasePerSecond;
18
+ var current, target, maxDelta;
19
+ this.currentIntensity = (current = this.currentIntensity, maxDelta = stepPerSecond * deltaSeconds,
20
+ (target = targetIntensity) > current ? Math.min(current + maxDelta, target) : Math.max(current - maxDelta, target)),
21
+ this.lastFrameTime = now, null === (_a = this.onUpdate) || void 0 === _a || _a.call(this, {
22
+ intensity: this.currentIntensity,
23
+ scale: this.getScale()
24
+ }), this.animationFrameId = requestAnimationFrame(this.onFrame);
25
+ }, this.source = source, this.fftSize = null !== (_a = options.fftSize) && void 0 !== _a ? _a : 512,
26
+ this.intensityMultiplier = null !== (_b = options.intensityMultiplier) && void 0 !== _b ? _b : 2.2,
27
+ this.maxScale = null !== (_c = options.maxScale) && void 0 !== _c ? _c : 2, this.minScale = null !== (_d = options.minScale) && void 0 !== _d ? _d : 1,
28
+ this.onUpdate = options.onUpdate, this.peakIntensity = null !== (_e = options.peakIntensity) && void 0 !== _e ? _e : .2,
29
+ this.releasePerSecond = null !== (_f = options.releasePerSecond) && void 0 !== _f ? _f : 1.5,
30
+ this.risePerSecond = null !== (_g = options.risePerSecond) && void 0 !== _g ? _g : 4;
31
+ }
32
+ start() {
33
+ if ("undefined" == typeof window || "undefined" == typeof AudioContext) throw new Error("AudioVisualizer requires a browser AudioContext");
34
+ var source;
35
+ null === this.animationFrameId && (this.audioContext || (this.audioContext = new AudioContext,
36
+ this.analyser = this.audioContext.createAnalyser(), this.analyser.fftSize = this.fftSize,
37
+ this.sourceNode = this.audioContext.createMediaStreamSource((source = this.source) instanceof MediaStream ? source : new MediaStream([ source ])),
38
+ this.sourceNode.connect(this.analyser), this.timeDomainData = new Uint8Array(new ArrayBuffer(this.analyser.fftSize))),
39
+ this.audioContext.resume(), this.lastFrameTime = performance.now(), this.animationFrameId = requestAnimationFrame(this.onFrame));
40
+ }
41
+ stop() {
42
+ null !== this.animationFrameId && (cancelAnimationFrame(this.animationFrameId),
43
+ this.animationFrameId = null);
44
+ }
45
+ dispose() {
46
+ var _a, _b, _c;
47
+ this.stop(), null === (_a = this.sourceNode) || void 0 === _a || _a.disconnect(),
48
+ null === (_b = this.analyser) || void 0 === _b || _b.disconnect(), null === (_c = this.audioContext) || void 0 === _c || _c.close(),
49
+ this.sourceNode = null, this.analyser = null, this.audioContext = null, this.timeDomainData = null,
50
+ this.currentIntensity = 0, this.lastFrameTime = 0;
51
+ }
52
+ getIntensity() {
53
+ return this.currentIntensity;
54
+ }
55
+ getScale() {
56
+ return this.minScale + this.currentIntensity * (this.maxScale - this.minScale);
57
+ }
58
+ }
59
+
60
+ export { AudioVisualizer as A };
@@ -1,4 +1,4 @@
1
- import { a as __awaiter, _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { _ as __awaiter, a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  import { useMemo } from "react";
4
4
 
@@ -6,7 +6,7 @@ import { create } from "zustand";
6
6
 
7
7
  import { useShallow } from "zustand/react/shallow";
8
8
 
9
- import { I as IndexedDB } from "./IndexedDB-CJgzPHPB.mjs";
9
+ import { I as IndexedDB } from "./IndexedDB-Dk7a4fPS.mjs";
10
10
 
11
11
  function isValidIDBKey(key) {
12
12
  return "string" == typeof key || "number" == typeof key || key instanceof Date || key instanceof ArrayBuffer || (Array.isArray(key) ? key.every(entry => isValidIDBKey(entry)) : ArrayBuffer.isView(key));
@@ -1,4 +1,4 @@
1
- import { a as __awaiter } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { _ as __awaiter } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  /**
4
4
  * Remove scripts, invisible characters, and optional HTML tags from a string.
@@ -1,6 +1,6 @@
1
1
  import { create } from "zustand";
2
2
 
3
- import "./tslib.es6-c-7TIv71.mjs";
3
+ import "./tslib.es6-C-olHjXV.mjs";
4
4
 
5
5
  import { S as SSEConnection } from "./SSEConnection-DcA3wFsO.mjs";
6
6
 
@@ -50,4 +50,4 @@ function __awaiter(thisArg, _arguments, P, generator) {
50
50
 
51
51
  "function" == typeof SuppressedError && SuppressedError;
52
52
 
53
- export { __rest as _, __awaiter as a };
53
+ export { __awaiter as _, __rest as a };
@@ -1,4 +1,4 @@
1
- import { a as __awaiter } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { _ as __awaiter } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  var FileUploadStatus, UploadError, WorkerStatus;
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { create } from "zustand";
2
2
 
3
- import { W as WorkerStatus } from "./uploads-worker-Dv-4zGnC.mjs";
3
+ import { W as WorkerStatus } from "./uploads-worker-7X9EwX9N.mjs";
4
4
 
5
5
  let uploadsWorker = null;
6
6
 
@@ -1,4 +1,4 @@
1
- import { a as __awaiter } from "./tslib.es6-c-7TIv71.mjs";
1
+ import { _ as __awaiter } from "./tslib.es6-C-olHjXV.mjs";
2
2
 
3
3
  import { create } from "zustand";
4
4
 
@@ -0,0 +1,31 @@
1
+ export { A as AudioBubble } from "../../chunks/AudioBubble-Dvsrq1dZ.mjs";
2
+
3
+ import "../../chunks/tslib.es6-C-olHjXV.mjs";
4
+
5
+ import "react/jsx-runtime";
6
+
7
+ import "react";
8
+
9
+ import "../../hooks/useTheme.mjs";
10
+
11
+ import "../../theme/themes.mjs";
12
+
13
+ import "../../theme/colors.mjs";
14
+
15
+ import "../../theme/corners.mjs";
16
+
17
+ import "../../theme/elevations.mjs";
18
+
19
+ import "../../theme/motion.mjs";
20
+
21
+ import "../../theme/type.mjs";
22
+
23
+ import "../../hooks/useObserveTheme.mjs";
24
+
25
+ import "../../chunks/colors-FQ0uNQcW.mjs";
26
+
27
+ import "../../chunks/audioVisualizer-ZgT77nUw.mjs";
28
+
29
+ import "../../hooks/useWindow.mjs";
30
+
31
+ import "../../chunks/style-inject.es-D0BjEaN8.mjs";
@@ -1,11 +1,11 @@
1
- export { A as Avatar } from "../../chunks/Avatar-CSLVUF_y.mjs";
1
+ export { A as Avatar } from "../../chunks/Avatar-C8uV7ROZ.mjs";
2
2
 
3
- import "../../chunks/tslib.es6-c-7TIv71.mjs";
3
+ import "../../chunks/tslib.es6-C-olHjXV.mjs";
4
4
 
5
5
  import "react/jsx-runtime";
6
6
 
7
7
  import "react";
8
8
 
9
- import "../../chunks/misc-N8KLjOXc.mjs";
9
+ import "../../chunks/misc-BeEWwOaJ.mjs";
10
10
 
11
11
  import "../../chunks/style-inject.es-D0BjEaN8.mjs";
@@ -1,13 +1,13 @@
1
- export { A as AvatarGroup } from "../../chunks/AvatarGroup--ELW-bO1.mjs";
1
+ export { A as AvatarGroup } from "../../chunks/AvatarGroup-Bt1Lkn5S.mjs";
2
2
 
3
- import "../../chunks/tslib.es6-c-7TIv71.mjs";
3
+ import "../../chunks/tslib.es6-C-olHjXV.mjs";
4
4
 
5
5
  import "react/jsx-runtime";
6
6
 
7
7
  import "react";
8
8
 
9
- import "../../chunks/Avatar-CSLVUF_y.mjs";
9
+ import "../../chunks/Avatar-C8uV7ROZ.mjs";
10
10
 
11
- import "../../chunks/misc-N8KLjOXc.mjs";
11
+ import "../../chunks/misc-BeEWwOaJ.mjs";
12
12
 
13
13
  import "../../chunks/style-inject.es-D0BjEaN8.mjs";
@@ -1,6 +1,6 @@
1
- export { B as Badge } from "../../chunks/Badge-DyICxZP2.mjs";
1
+ export { B as Badge } from "../../chunks/Badge-D-U1jomY.mjs";
2
2
 
3
- import "../../chunks/tslib.es6-c-7TIv71.mjs";
3
+ import "../../chunks/tslib.es6-C-olHjXV.mjs";
4
4
 
5
5
  import "react/jsx-runtime";
6
6
 
@@ -1,6 +1,6 @@
1
- export { B as Button } from "../../chunks/Button-daLv0i7S.mjs";
1
+ export { B as Button } from "../../chunks/Button-sEYjFcR2.mjs";
2
2
 
3
- import "../../chunks/tslib.es6-c-7TIv71.mjs";
3
+ import "../../chunks/tslib.es6-C-olHjXV.mjs";
4
4
 
5
5
  import "react/jsx-runtime";
6
6
 
@@ -8,13 +8,13 @@ import "motion/react";
8
8
 
9
9
  import "react";
10
10
 
11
- import "../../chunks/Badge-DyICxZP2.mjs";
11
+ import "../../chunks/Badge-D-U1jomY.mjs";
12
12
 
13
13
  import "../../chunks/style-inject.es-D0BjEaN8.mjs";
14
14
 
15
- import "../../chunks/Dot-CLGwQu-i.mjs";
15
+ import "../../chunks/Dot-Cj6gWj4_.mjs";
16
16
 
17
- import "../../chunks/Icon-CUSQtytG.mjs";
17
+ import "../../chunks/Icon-KDwlMXzH.mjs";
18
18
 
19
19
  import "../../hooks/useTheme.mjs";
20
20
 
@@ -32,10 +32,10 @@ import "../../theme/type.mjs";
32
32
 
33
33
  import "../../hooks/useObserveTheme.mjs";
34
34
 
35
- import "../../hooks/useWindow.mjs";
35
+ import "../../chunks/misc-BeEWwOaJ.mjs";
36
36
 
37
- import "../../chunks/misc-N8KLjOXc.mjs";
37
+ import "../../hooks/useWindow.mjs";
38
38
 
39
- import "../../chunks/ProgressIndicator-D7paCpgY.mjs";
39
+ import "../../chunks/ProgressIndicator-CxsZm_As.mjs";
40
40
 
41
41
  import "../../chunks/sharedTypes-tn9-uJvb.mjs";
@@ -1,14 +1,14 @@
1
- export { B as ButtonBar } from "../../chunks/ButtonBar-DXK8meQq.mjs";
1
+ export { B as ButtonBar } from "../../chunks/ButtonBar-DSR2lhhN.mjs";
2
2
 
3
- import "../../chunks/tslib.es6-c-7TIv71.mjs";
3
+ import "../../chunks/tslib.es6-C-olHjXV.mjs";
4
4
 
5
5
  import "react/jsx-runtime";
6
6
 
7
7
  import "react";
8
8
 
9
- import "../../chunks/misc-N8KLjOXc.mjs";
9
+ import "../../chunks/misc-BeEWwOaJ.mjs";
10
10
 
11
- import "../../chunks/Icon-CUSQtytG.mjs";
11
+ import "../../chunks/Icon-KDwlMXzH.mjs";
12
12
 
13
13
  import "../../hooks/useTheme.mjs";
14
14
 
@@ -1,6 +1,6 @@
1
- export { C as Camera } from "../../chunks/Camera-BqmVsVKy.mjs";
1
+ export { C as Camera } from "../../chunks/Camera-DSSiOeJd.mjs";
2
2
 
3
- import "../../chunks/tslib.es6-c-7TIv71.mjs";
3
+ import "../../chunks/tslib.es6-C-olHjXV.mjs";
4
4
 
5
5
  import "react/jsx-runtime";
6
6
 
@@ -22,14 +22,14 @@ import "../../theme/type.mjs";
22
22
 
23
23
  import "../../hooks/useObserveTheme.mjs";
24
24
 
25
- import "../../hooks/useWindow.mjs";
26
-
27
- import "../../chunks/misc-N8KLjOXc.mjs";
25
+ import "../../chunks/misc-BeEWwOaJ.mjs";
28
26
 
29
27
  import "../../chunks/colors-FQ0uNQcW.mjs";
30
28
 
31
- import "../../chunks/Avatar-CSLVUF_y.mjs";
29
+ import "../../hooks/useWindow.mjs";
30
+
31
+ import "../../chunks/Avatar-C8uV7ROZ.mjs";
32
32
 
33
33
  import "../../chunks/style-inject.es-D0BjEaN8.mjs";
34
34
 
35
- import "../../chunks/Icon-CUSQtytG.mjs";
35
+ import "../../chunks/Icon-KDwlMXzH.mjs";
@@ -1,6 +1,6 @@
1
- export { C as CheckBox } from "../../chunks/CheckBox-BsaYFNC6.mjs";
1
+ export { C as CheckBox } from "../../chunks/CheckBox-B6zWSySW.mjs";
2
2
 
3
- import "../../chunks/tslib.es6-c-7TIv71.mjs";
3
+ import "../../chunks/tslib.es6-C-olHjXV.mjs";
4
4
 
5
5
  import "react/jsx-runtime";
6
6
 
@@ -8,9 +8,9 @@ import "motion/react";
8
8
 
9
9
  import "react";
10
10
 
11
- import "../../chunks/misc-N8KLjOXc.mjs";
11
+ import "../../chunks/misc-BeEWwOaJ.mjs";
12
12
 
13
- import "../../chunks/Icon-CUSQtytG.mjs";
13
+ import "../../chunks/Icon-KDwlMXzH.mjs";
14
14
 
15
15
  import "../../hooks/useTheme.mjs";
16
16
 
@@ -1,14 +1,14 @@
1
- export { C as Chip } from "../../chunks/Chip-BRZeD1OX.mjs";
1
+ export { C as Chip } from "../../chunks/Chip-BBKJ6wG4.mjs";
2
2
 
3
- import "../../chunks/tslib.es6-c-7TIv71.mjs";
3
+ import "../../chunks/tslib.es6-C-olHjXV.mjs";
4
4
 
5
5
  import "react/jsx-runtime";
6
6
 
7
7
  import "react";
8
8
 
9
- import "../../chunks/misc-N8KLjOXc.mjs";
9
+ import "../../chunks/misc-BeEWwOaJ.mjs";
10
10
 
11
- import "../../chunks/Icon-CUSQtytG.mjs";
11
+ import "../../chunks/Icon-KDwlMXzH.mjs";
12
12
 
13
13
  import "../../hooks/useTheme.mjs";
14
14