@apple-pie/slice 0.1.52 → 0.1.53

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 (318) hide show
  1. package/dist/cjs/chunks/{AudioBubble-Di2Qyjer.js → AudioBubble-BSceAgq8.js} +5 -4
  2. package/dist/cjs/chunks/{Avatar-L6s2-x0u.js → Avatar-LhoIzZYs.js} +2 -2
  3. package/dist/cjs/chunks/{AvatarGroup-DNGFPl1j.js → AvatarGroup-6rYDbrq0.js} +3 -3
  4. package/dist/cjs/chunks/{Badge-CWASZI0E.js → Badge-DNzsgQk9.js} +1 -1
  5. package/dist/cjs/chunks/{Button-kzWt5lcL.js → Button-GrPLJIBP.js} +5 -5
  6. package/dist/cjs/chunks/{ButtonBar-BaFGN5AR.js → ButtonBar-Df0iGtC3.js} +2 -2
  7. package/dist/cjs/chunks/{Camera-CBZmVUf6.js → Camera-BN2emgEV.js} +7 -6
  8. package/dist/cjs/chunks/{CheckBox-D8e57FqA.js → CheckBox-DOTWw9VH.js} +1 -1
  9. package/dist/cjs/chunks/{Chip-DCFtFPpu.js → Chip-BjzBZU6j.js} +2 -2
  10. package/dist/cjs/chunks/{DivInput-BbYo5dnn.js → DivInput-DXpi201k.js} +5 -5
  11. package/dist/cjs/chunks/{Dot-ByKZIcva.js → Dot-nWPzJqlj.js} +1 -1
  12. package/dist/cjs/chunks/{DrggablePanel-EvnMMRh0.js → DrggablePanel-Bi4cmUh5.js} +21 -16
  13. package/dist/cjs/chunks/{DropDown-C-i2rIhH.js → DropDown-K6xOYkfl.js} +2 -2
  14. package/dist/cjs/chunks/{ErrorSummary-DLaE1duh.js → ErrorSummary-pWO_o2MN.js} +6 -5
  15. package/dist/cjs/chunks/{FileIcon-DqFMbhRF.js → FileIcon-BXmM4L3A.js} +5 -5
  16. package/dist/cjs/chunks/{FileList-C3KR7jHj.js → FileList-NDj9e_To.js} +2 -2
  17. package/dist/cjs/chunks/{FlexDiv-BPmDJlQe.js → FlexDiv-Dfp6NfR-.js} +1 -1
  18. package/dist/cjs/chunks/{Grouper-Bm013ATj.js → Grouper-DJP2JXUi.js} +5 -5
  19. package/dist/cjs/chunks/{Icon-CUbgmUeu.js → Icon-VcvTUkMA.js} +5 -4
  20. package/dist/cjs/chunks/{IconButton-BbgyyMjG.js → IconButton-Cz7iTVhO.js} +3 -3
  21. package/dist/cjs/chunks/{IndexedDB-DFVmvrQg.js → IndexedDB-D7TVb0pF.js} +8 -4
  22. package/dist/cjs/chunks/{Label-CDuN-9n3.js → Label-E7350HYG.js} +2 -2
  23. package/dist/cjs/chunks/{Level-vbDvflcO.js → Level-ZmAb4JQ9.js} +3 -3
  24. package/dist/cjs/chunks/{Modal-BS-9UkxV.js → Modal-BKZ9fgWF.js} +3 -2
  25. package/dist/cjs/chunks/{ModalController-B-m3OD5K.js → ModalController-CCcRXYUs.js} +3 -2
  26. package/dist/cjs/chunks/{Overlay-QprT1IaK.js → Overlay-B0jNgBu3.js} +2 -2
  27. package/dist/cjs/chunks/{Pager-7edBFop6.js → Pager-CwOhw4nE.js} +1 -1
  28. package/dist/cjs/chunks/{ProgressIndicator-Bi1UfJIW.js → ProgressIndicator--Ph78ZSe.js} +5 -4
  29. package/dist/cjs/chunks/{PromptInput-BHDK8fjX.js → PromptInput-8TqoRRtq.js} +13 -8
  30. package/dist/cjs/chunks/{RadioButton-SqAqjkcO.js → RadioButton-oZxMZCpd.js} +1 -1
  31. package/dist/cjs/chunks/{RadioButtonList-Bk4zdfNK.js → RadioButtonList-C0zngoe4.js} +1 -1
  32. package/dist/cjs/chunks/{Slider-CGXCa5hf.js → Slider-BfiaN55A.js} +5 -4
  33. package/dist/cjs/chunks/{Spacer-Cz634l5B.js → Spacer-D9SULpcV.js} +1 -1
  34. package/dist/cjs/chunks/{Switch-BWz76WjN.js → Switch-Bax_lPw4.js} +2 -2
  35. package/dist/cjs/chunks/{TabBar-BhV5XeiX.js → TabBar-C9NycMo8.js} +6 -5
  36. package/dist/cjs/chunks/{TextArea-Dc0MXEtY.js → TextArea-BSo1K02e.js} +5 -5
  37. package/dist/cjs/chunks/{TextField-l62uCubT.js → TextField-TpzwNrB3.js} +12 -7
  38. package/dist/cjs/chunks/{Tip-BBMqZlgV.js → Tip-CtobkAG3.js} +3 -3
  39. package/dist/cjs/chunks/{Toast-DNSA3BzO.js → Toast-BRvp6HeI.js} +6 -5
  40. package/dist/cjs/chunks/{ToggleButton-DclomTgT.js → ToggleButton-BGsKt1uz.js} +5 -5
  41. package/dist/cjs/chunks/{UploadArea-Bm674kMd.js → UploadArea-BVIOxAk0.js} +5 -5
  42. package/dist/cjs/chunks/{Video-Be2aIETB.js → Video-B9BWFeiN.js} +15 -15
  43. package/dist/cjs/chunks/{VideoController-BCTD_gZh.js → VideoController-D5J76aQJ.js} +8 -7
  44. package/dist/cjs/chunks/{WSConnection-pryKJWc6.js → WSConnection-BrwlAScO.js} +1 -1
  45. package/dist/cjs/chunks/{WebRTCConnection-C_GRUnIY.js → WebRTCConnection-nx-EhtdY.js} +1 -1
  46. package/dist/cjs/chunks/{browserChannelsStore-6ZSY_xb-.js → browserChannelsStore-C8C4qb7h.js} +2 -2
  47. package/dist/cjs/chunks/{localDBStore-DO3FanPt.js → localDBStore-DhruyXfz.js} +2 -2
  48. package/dist/cjs/chunks/magic-string.es-DXiBW6ft.js +724 -0
  49. package/dist/cjs/chunks/{microphoneStore-Ch3VVm4T.js → microphoneStore-axA5TgKM.js} +1 -1
  50. package/dist/cjs/chunks/{misc-BNlFh_4N.js → misc-B2oK3rIL.js} +1 -1
  51. package/dist/cjs/chunks/{sseStore-C_INE2Dq.js → sseStore-DaJgRKej.js} +3 -3
  52. package/dist/cjs/chunks/{uploads-worker-Bz66LCly.js → uploads-worker-B_12HqmC.js} +1 -1
  53. package/dist/cjs/chunks/{uploadsStore-blQX5Zny.js → uploadsStore-hFHe0RDh.js} +2 -2
  54. package/dist/cjs/chunks/{viewState-8FeRZBG3.js → viewState-BzvJJA68.js} +8 -7
  55. package/dist/cjs/chunks/{volumeStore-CA9Pdx5e.js → volumeStore-D64ziNWo.js} +1 -1
  56. package/dist/cjs/chunks/{webRTCStore-Bu7_nxNq.js → webRTCStore-XciamNCa.js} +2 -2
  57. package/dist/cjs/chunks/{windowStore-CYvn2_ma.js → windowStore-DRgyVg9e.js} +1 -1
  58. package/dist/cjs/components/AudioBubble/index.js +6 -5
  59. package/dist/cjs/components/Avatar/index.js +3 -3
  60. package/dist/cjs/components/AvatarGroup/index.js +3 -3
  61. package/dist/cjs/components/Badge/index.js +2 -2
  62. package/dist/cjs/components/Button/index.js +12 -11
  63. package/dist/cjs/components/ButtonBar/index.js +9 -8
  64. package/dist/cjs/components/Camera/index.js +8 -7
  65. package/dist/cjs/components/CheckBox/index.js +6 -5
  66. package/dist/cjs/components/Chip/index.js +9 -9
  67. package/dist/cjs/components/DataTable/index.js +13 -13
  68. package/dist/cjs/components/DivInput/index.js +4 -3
  69. package/dist/cjs/components/Dot/index.js +2 -2
  70. package/dist/cjs/components/DraggablePanel/index.js +6 -5
  71. package/dist/cjs/components/DropDown/index.js +9 -8
  72. package/dist/cjs/components/ErrorSummary/index.js +6 -5
  73. package/dist/cjs/components/FileIcon/index.js +6 -5
  74. package/dist/cjs/components/FileList/index.js +7 -6
  75. package/dist/cjs/components/FlexDiv/index.js +2 -2
  76. package/dist/cjs/components/Grouper/index.js +7 -6
  77. package/dist/cjs/components/Icon/index.js +6 -5
  78. package/dist/cjs/components/IconButton/index.js +12 -10
  79. package/dist/cjs/components/Label/index.js +4 -3
  80. package/dist/cjs/components/Level/index.js +4 -4
  81. package/dist/cjs/components/Modal/index.js +12 -12
  82. package/dist/cjs/components/ModalController/index.js +6 -5
  83. package/dist/cjs/components/Overlay/index.js +2 -2
  84. package/dist/cjs/components/Pager/index.js +3 -3
  85. package/dist/cjs/components/Progress/index.js +6 -5
  86. package/dist/cjs/components/PromptInput/index.js +10 -9
  87. package/dist/cjs/components/RadioButton/index.js +6 -5
  88. package/dist/cjs/components/RadioButtonList/index.js +7 -6
  89. package/dist/cjs/components/Slider/index.js +6 -5
  90. package/dist/cjs/components/Spacer/index.js +2 -2
  91. package/dist/cjs/components/Switch/index.js +2 -2
  92. package/dist/cjs/components/TabBar/index.js +9 -8
  93. package/dist/cjs/components/TextArea/index.js +12 -12
  94. package/dist/cjs/components/Textfield/index.js +10 -9
  95. package/dist/cjs/components/Tip/index.js +4 -3
  96. package/dist/cjs/components/Toast/index.js +7 -6
  97. package/dist/cjs/components/ToggleButton/index.js +12 -12
  98. package/dist/cjs/components/UploadArea/index.js +11 -10
  99. package/dist/cjs/components/Video/index.js +15 -13
  100. package/dist/cjs/components/VideoController/index.js +12 -12
  101. package/dist/cjs/hooks/useAudioRecorder.js +1 -1
  102. package/dist/cjs/hooks/useBindWebRTC.js +2 -2
  103. package/dist/cjs/hooks/useClipboard.js +2 -2
  104. package/dist/cjs/hooks/useMdStreamBuffer.js +2 -2
  105. package/dist/cjs/hooks/useMicrophone.js +1 -1
  106. package/dist/cjs/hooks/useTrackRenders.js +2 -2
  107. package/dist/cjs/hooks.js +4 -4
  108. package/dist/cjs/index.js +10 -10
  109. package/dist/cjs/providers/themeServer.test.js +10574 -0
  110. package/dist/cjs/stores/LocalDB.js +3 -3
  111. package/dist/cjs/stores/SSE.js +3 -3
  112. package/dist/cjs/stores/WS.js +3 -3
  113. package/dist/cjs/stores/WebRTC.js +3 -3
  114. package/dist/cjs/stores/browserChannel.js +2 -2
  115. package/dist/cjs/stores/microphone.js +2 -2
  116. package/dist/cjs/stores/modal.js +1 -1
  117. package/dist/cjs/stores/tip.js +1 -1
  118. package/dist/cjs/stores/toast.js +1 -1
  119. package/dist/cjs/stores/uploads.js +2 -2
  120. package/dist/cjs/stores/video.js +1 -1
  121. package/dist/cjs/stores/volume.js +2 -2
  122. package/dist/cjs/stores/window.js +2 -2
  123. package/dist/cjs/stores.js +15 -16
  124. package/dist/cjs/theme/corners.js +8 -8
  125. package/dist/cjs/utils/index.js +2 -2
  126. package/dist/cjs/utils/objects/index.js +2 -2
  127. package/dist/cjs/workers/uploads/uploads.js +2 -2
  128. package/dist/esm/chunks/{AudioBubble-BzlrPWjD.mjs → AudioBubble-CdmLKDhc.mjs} +8 -6
  129. package/dist/esm/chunks/{Avatar-DE7v6q5Z.mjs → Avatar-CblCPiom.mjs} +3 -3
  130. package/dist/esm/chunks/{AvatarGroup-B-E3eFeF.mjs → AvatarGroup-DgNd60cP.mjs} +4 -4
  131. package/dist/esm/chunks/{Badge-Cli_Ebpu.mjs → Badge-DIru-w6O.mjs} +1 -1
  132. package/dist/esm/chunks/{Button-BdxJ4wnE.mjs → Button-BYALDfuE.mjs} +12 -10
  133. package/dist/esm/chunks/{ButtonBar-LIzMkcAW.mjs → ButtonBar-DUDK-0Y4.mjs} +6 -4
  134. package/dist/esm/chunks/{Camera-DQIlyciR.mjs → Camera-BOgxXxRV.mjs} +11 -9
  135. package/dist/esm/chunks/{CheckBox-yuitT-oK.mjs → CheckBox-xLveo-Lt.mjs} +3 -3
  136. package/dist/esm/chunks/{Chip-BVWlgpZ4.mjs → Chip-COWEFzyh.mjs} +7 -5
  137. package/dist/esm/chunks/{DivInput-SeyX77Nb.mjs → DivInput-faLHJ1b9.mjs} +8 -6
  138. package/dist/esm/chunks/{Dot-Lyaimh03.mjs → Dot-CWVfujdC.mjs} +1 -1
  139. package/dist/esm/chunks/{DrggablePanel--TPNDMpD.mjs → DrggablePanel-DCA9LeNq.mjs} +23 -17
  140. package/dist/esm/chunks/{DropDown-BmumgcHV.mjs → DropDown-C9fS9E6c.mjs} +6 -4
  141. package/dist/esm/chunks/{ErrorSummary-CPsaqCL-.mjs → ErrorSummary-D1WbASIx.mjs} +8 -6
  142. package/dist/esm/chunks/{FileIcon-Ckvm7EOw.mjs → FileIcon-CBNQckHc.mjs} +7 -5
  143. package/dist/esm/chunks/{FileList-D0b6RxKc.mjs → FileList-CK96tECm.mjs} +6 -6
  144. package/dist/esm/chunks/{FlexDiv-D7wQNKz0.mjs → FlexDiv-Cglvd-xT.mjs} +1 -1
  145. package/dist/esm/chunks/{Grouper-BrjPf1Zm.mjs → Grouper-CivlTYk2.mjs} +8 -6
  146. package/dist/esm/chunks/{Icon-DGQB6Mfm.mjs → Icon-CGqm8lg7.mjs} +7 -5
  147. package/dist/esm/chunks/{IconButton-Wffb0Rhg.mjs → IconButton-LsCK8HUU.mjs} +9 -7
  148. package/dist/esm/chunks/{IndexedDB-Cwb-PZNm.mjs → IndexedDB-DNFNyOit.mjs} +8 -4
  149. package/dist/esm/chunks/{Label-BF7Bac6I.mjs → Label-CFUlmEKM.mjs} +5 -3
  150. package/dist/esm/chunks/{Level-DnWQ5mLH.mjs → Level-CAZN_Xt7.mjs} +7 -5
  151. package/dist/esm/chunks/{Modal-BuDVEntK.mjs → Modal-DAU9VnrP.mjs} +9 -6
  152. package/dist/esm/chunks/{ModalController-CWZBh7Dg.mjs → ModalController-axF12LqY.mjs} +6 -4
  153. package/dist/esm/chunks/{Overlay-DXAULyRd.mjs → Overlay-CYvVXNU5.mjs} +2 -2
  154. package/dist/esm/chunks/{Pager-Bjwlh0Vs.mjs → Pager-BvFWzAok.mjs} +2 -2
  155. package/dist/esm/chunks/{ProgressIndicator-C8tli-Jg.mjs → ProgressIndicator-CNTW0t8s.mjs} +7 -5
  156. package/dist/esm/chunks/{PromptInput-JE3EkzEV.mjs → PromptInput-PJIXJMCp.mjs} +14 -10
  157. package/dist/esm/chunks/{RadioButton-BK37fGER.mjs → RadioButton-DipoEV9R.mjs} +3 -3
  158. package/dist/esm/chunks/{RadioButtonList-CPfE3YBM.mjs → RadioButtonList-CDysnTjd.mjs} +3 -3
  159. package/dist/esm/chunks/{Slider-D6nWSQ-A.mjs → Slider-BzX_jQ27.mjs} +8 -6
  160. package/dist/esm/chunks/{Spacer-CWY79s4p.mjs → Spacer-DJKkJpdX.mjs} +1 -1
  161. package/dist/esm/chunks/{Switch-De_cFgOS.mjs → Switch-C8FXGMlJ.mjs} +2 -2
  162. package/dist/esm/chunks/{TabBar-CCq8-TdA.mjs → TabBar-B_pwLZcy.mjs} +11 -9
  163. package/dist/esm/chunks/{TextArea-kAVb9Lpy.mjs → TextArea-BbveliHo.mjs} +8 -6
  164. package/dist/esm/chunks/{TextField-MxcxS6SE.mjs → TextField-D-680Ah3.mjs} +13 -9
  165. package/dist/esm/chunks/{Tip-CuRp-fki.mjs → Tip-IdoSsqpu.mjs} +6 -4
  166. package/dist/esm/chunks/{Toast-CvWVJwrM.mjs → Toast-DNN0M8ds.mjs} +9 -7
  167. package/dist/esm/chunks/{ToggleButton-DpR2FO_I.mjs → ToggleButton-BhRGIiQz.mjs} +6 -6
  168. package/dist/esm/chunks/{UploadArea-ChXIXxSg.mjs → UploadArea-BFEjUf7n.mjs} +10 -8
  169. package/dist/esm/chunks/{Video-D3FSIySJ.mjs → Video-DBF6un3N.mjs} +19 -19
  170. package/dist/esm/chunks/{VideoController-CS6eZwuf.mjs → VideoController-lNXxiYAp.mjs} +15 -11
  171. package/dist/esm/chunks/{WSConnection-DX-v8PDB.mjs → WSConnection-Bd3_THiB.mjs} +1 -1
  172. package/dist/esm/chunks/{WebRTCConnection-KLpY6CZG.mjs → WebRTCConnection-DvF2ENaH.mjs} +1 -1
  173. package/dist/esm/chunks/{browserChannelsStore-BlUi1EOi.mjs → browserChannelsStore-Dkg2yF-s.mjs} +2 -2
  174. package/dist/esm/chunks/{localDBStore-Cqmkk2oq.mjs → localDBStore-DmM1xv6W.mjs} +3 -3
  175. package/dist/esm/chunks/magic-string.es-w54Wbyiz.mjs +722 -0
  176. package/dist/esm/chunks/{microphoneStore-CHjTUEL_.mjs → microphoneStore-B9HEjn8x.mjs} +1 -1
  177. package/dist/esm/chunks/{misc-GB29X0YR.mjs → misc-O5ZSVDP0.mjs} +1 -1
  178. package/dist/esm/chunks/{sseStore-CsFtm_ph.mjs → sseStore-CWOB35p7.mjs} +3 -3
  179. package/dist/esm/chunks/{uploads-worker-DnuyqnvO.mjs → uploads-worker-C4I-bc63.mjs} +1 -1
  180. package/dist/esm/chunks/{uploadsStore-BJkaMc8Q.mjs → uploadsStore-Bx9nAcin.mjs} +1 -1
  181. package/dist/esm/chunks/{viewState-Bz_5JiKf.mjs → viewState-Dv3Y_pc4.mjs} +13 -9
  182. package/dist/esm/chunks/{volumeStore-DBjptppw.mjs → volumeStore-C2AnBA5B.mjs} +1 -1
  183. package/dist/esm/chunks/{webRTCStore-Da4krjmG.mjs → webRTCStore-fNJiXwLR.mjs} +3 -3
  184. package/dist/esm/chunks/{windowStore-DuCMm9ZH.mjs → windowStore-CYsBH-_Y.mjs} +1 -1
  185. package/dist/esm/components/AudioBubble/index.mjs +11 -7
  186. package/dist/esm/components/Avatar/index.mjs +3 -3
  187. package/dist/esm/components/AvatarGroup/index.mjs +4 -4
  188. package/dist/esm/components/Badge/index.mjs +2 -2
  189. package/dist/esm/components/Button/index.mjs +17 -13
  190. package/dist/esm/components/ButtonBar/index.mjs +13 -9
  191. package/dist/esm/components/Camera/index.mjs +13 -9
  192. package/dist/esm/components/CheckBox/index.mjs +11 -7
  193. package/dist/esm/components/Chip/index.mjs +14 -10
  194. package/dist/esm/components/DataTable/index.mjs +14 -10
  195. package/dist/esm/components/DivInput/index.mjs +5 -3
  196. package/dist/esm/components/Dot/index.mjs +2 -2
  197. package/dist/esm/components/DraggablePanel/index.mjs +10 -6
  198. package/dist/esm/components/DropDown/index.mjs +13 -9
  199. package/dist/esm/components/ErrorSummary/index.mjs +10 -6
  200. package/dist/esm/components/FileIcon/index.mjs +10 -6
  201. package/dist/esm/components/FileList/index.mjs +13 -9
  202. package/dist/esm/components/FlexDiv/index.mjs +2 -2
  203. package/dist/esm/components/Grouper/index.mjs +12 -8
  204. package/dist/esm/components/Icon/index.mjs +11 -7
  205. package/dist/esm/components/IconButton/index.mjs +16 -12
  206. package/dist/esm/components/Label/index.mjs +5 -3
  207. package/dist/esm/components/Level/index.mjs +7 -5
  208. package/dist/esm/components/Modal/index.mjs +19 -15
  209. package/dist/esm/components/ModalController/index.mjs +12 -6
  210. package/dist/esm/components/Overlay/index.mjs +2 -2
  211. package/dist/esm/components/Pager/index.mjs +3 -3
  212. package/dist/esm/components/Progress/index.mjs +11 -7
  213. package/dist/esm/components/PromptInput/index.mjs +18 -14
  214. package/dist/esm/components/RadioButton/index.mjs +11 -7
  215. package/dist/esm/components/RadioButtonList/index.mjs +12 -8
  216. package/dist/esm/components/Slider/index.mjs +11 -7
  217. package/dist/esm/components/Spacer/index.mjs +2 -2
  218. package/dist/esm/components/Switch/index.mjs +2 -2
  219. package/dist/esm/components/TabBar/index.mjs +15 -11
  220. package/dist/esm/components/TextArea/index.mjs +18 -14
  221. package/dist/esm/components/Textfield/index.mjs +17 -13
  222. package/dist/esm/components/Tip/index.mjs +5 -3
  223. package/dist/esm/components/Toast/index.mjs +12 -8
  224. package/dist/esm/components/ToggleButton/index.mjs +18 -14
  225. package/dist/esm/components/UploadArea/index.mjs +16 -12
  226. package/dist/esm/components/Video/index.mjs +21 -17
  227. package/dist/esm/components/VideoController/index.mjs +20 -16
  228. package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
  229. package/dist/esm/hooks/useBindWebRTC.mjs +6 -6
  230. package/dist/esm/hooks/useClipboard.mjs +3 -3
  231. package/dist/esm/hooks/useMdStreamBuffer.mjs +3 -3
  232. package/dist/esm/hooks/useMicrophone.mjs +1 -1
  233. package/dist/esm/hooks/useTrackRenders.mjs +2 -2
  234. package/dist/esm/hooks.mjs +8 -8
  235. package/dist/esm/index.mjs +59 -59
  236. package/dist/esm/providers/themeServer.test.mjs +10572 -0
  237. package/dist/esm/stores/LocalDB.mjs +4 -4
  238. package/dist/esm/stores/SSE.mjs +4 -4
  239. package/dist/esm/stores/WS.mjs +3 -3
  240. package/dist/esm/stores/WebRTC.mjs +4 -4
  241. package/dist/esm/stores/browserChannel.mjs +3 -3
  242. package/dist/esm/stores/microphone.mjs +2 -2
  243. package/dist/esm/stores/modal.mjs +1 -1
  244. package/dist/esm/stores/tip.mjs +1 -1
  245. package/dist/esm/stores/toast.mjs +1 -1
  246. package/dist/esm/stores/uploads.mjs +3 -3
  247. package/dist/esm/stores/video.mjs +1 -1
  248. package/dist/esm/stores/volume.mjs +2 -2
  249. package/dist/esm/stores/window.mjs +2 -2
  250. package/dist/esm/stores.mjs +18 -18
  251. package/dist/esm/theme/corners.mjs +8 -8
  252. package/dist/esm/utils/index.mjs +12 -12
  253. package/dist/esm/utils/objects/index.mjs +8 -8
  254. package/dist/esm/workers/uploads/uploads.mjs +2 -2
  255. package/dist/styles.css +2225 -2214
  256. package/dist/types/components/Avatar/_types.d.ts +0 -1
  257. package/dist/types/components/AvatarGroup/_types.d.ts +0 -1
  258. package/dist/types/components/Button/Button.d.ts +0 -4
  259. package/dist/types/components/Button/_types.d.ts +0 -2
  260. package/dist/types/components/ButtonBar/_types.d.ts +0 -3
  261. package/dist/types/components/Chip/_types.d.ts +0 -2
  262. package/dist/types/components/DataTable/_useResizeColumn.test.d.ts +1 -0
  263. package/dist/types/components/DataTable/columnHelper.test.d.ts +1 -0
  264. package/dist/types/components/DivInput/_types.d.ts +0 -1
  265. package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +13 -1
  266. package/dist/types/components/DropDown/_types.d.ts +0 -1
  267. package/dist/types/components/ErrorSummary/_types.d.ts +0 -1
  268. package/dist/types/components/FileList/_types.d.ts +0 -1
  269. package/dist/types/components/Icon/iconRegistry.test.d.ts +1 -0
  270. package/dist/types/components/IconButton/_animation.test.d.ts +1 -0
  271. package/dist/types/components/IconButton/_types.d.ts +3 -3
  272. package/dist/types/components/Label/_types.d.ts +0 -1
  273. package/dist/types/components/Switch/_types.d.ts +0 -2
  274. package/dist/types/components/TextArea/_types.d.ts +0 -1
  275. package/dist/types/components/Tip/_types.d.ts +0 -1
  276. package/dist/types/components/ToggleButton/_types.d.ts +3 -3
  277. package/dist/types/components/UploadArea/UploadArea.d.ts +0 -4
  278. package/dist/types/components/UploadArea/_types.d.ts +0 -2
  279. package/dist/types/components/playHelpers.d.ts +353 -0
  280. package/dist/types/hooks/useBindWebRTC/useBindWebRTC.test.d.ts +1 -0
  281. package/dist/types/hooks/useTrackRenders/useTrackRenders.test.d.ts +1 -0
  282. package/dist/types/providers/themeServer.test.d.ts +1 -0
  283. package/dist/types/stores/LocalDB/localDBStore.test.d.ts +1 -0
  284. package/dist/types/theme/corners/types.d.ts +8 -8
  285. package/dist/types/utils/objects/IndexedDB/IndexedDB.d.ts +3 -0
  286. package/dist/types/utils/objects/IndexedDB/IndexedDB.test.d.ts +1 -0
  287. package/dist/types/utils/objects/MDStreamBuffer/MdStreamBuffer.test.d.ts +1 -0
  288. package/dist/types/utils/objects/WebRTCConnection/WebRTCConnection.test.d.ts +1 -0
  289. package/dist/types/workers/uploads/uploads-worker.test.d.ts +1 -0
  290. package/package.json +2 -1
  291. /package/dist/cjs/chunks/{MdStreamBuffer-Ba-YbQaW.js → MdStreamBuffer-BiFYXGu6.js} +0 -0
  292. /package/dist/cjs/chunks/{SSEConnection-C0XhTcpi.js → SSEConnection-CygPbs0L.js} +0 -0
  293. /package/dist/cjs/chunks/{_types-DEjCVlhp.js → _types-jaI3KEVY.js} +0 -0
  294. /package/dist/cjs/chunks/{audioVisualizer-DFgLMDKW.js → audioVisualizer-Dmtjjosj.js} +0 -0
  295. /package/dist/cjs/chunks/{broadcastChannel-B0l8OE4I.js → broadcastChannel-CRR59lw6.js} +0 -0
  296. /package/dist/cjs/chunks/{colors-jx2QRRls.js → colors-Dok44sXW.js} +0 -0
  297. /package/dist/cjs/chunks/{debounce-CsmIqkDy.js → debounce-C3P6vOcn.js} +0 -0
  298. /package/dist/cjs/chunks/{modalStore-DaB75uoa.js → modalStore--QHdUyuE.js} +0 -0
  299. /package/dist/cjs/chunks/{rafThrottle-DvT0BNgS.js → rafThrottle-DlDdrddz.js} +0 -0
  300. /package/dist/cjs/chunks/{sharedTypes-BT25wBhL.js → sharedTypes-BW_hw-Vb.js} +0 -0
  301. /package/dist/cjs/chunks/{tipStore-Dxda_4EA.js → tipStore-DAb0BV40.js} +0 -0
  302. /package/dist/cjs/chunks/{toastStore-DqWfFw57.js → toastStore-6OcUl7VL.js} +0 -0
  303. /package/dist/cjs/chunks/{tslib.es6-CTGrDO27.js → tslib.es6-Y3RzGMQw.js} +0 -0
  304. /package/dist/cjs/chunks/{videoStore-q-yi22M3.js → videoStore-B2FtqVfG.js} +0 -0
  305. /package/dist/esm/chunks/{MdStreamBuffer-CuqX6fWF.mjs → MdStreamBuffer-D3J2CXWe.mjs} +0 -0
  306. /package/dist/esm/chunks/{SSEConnection-DgwE_V3B.mjs → SSEConnection-5GuqCTf8.mjs} +0 -0
  307. /package/dist/esm/chunks/{_types-n_IXoiPR.mjs → _types-CLPtELrL.mjs} +0 -0
  308. /package/dist/esm/chunks/{audioVisualizer-CLKL6Y79.mjs → audioVisualizer-BO_hMyyp.mjs} +0 -0
  309. /package/dist/esm/chunks/{broadcastChannel-qkn7bL4S.mjs → broadcastChannel-B8FxWRVj.mjs} +0 -0
  310. /package/dist/esm/chunks/{colors-C3CypePZ.mjs → colors-Pe71RB3l.mjs} +0 -0
  311. /package/dist/esm/chunks/{debounce-xuz65F25.mjs → debounce-O12UHVJH.mjs} +0 -0
  312. /package/dist/esm/chunks/{modalStore-DN1F_WR9.mjs → modalStore-CBW78_cT.mjs} +0 -0
  313. /package/dist/esm/chunks/{rafThrottle-B6dxl-O8.mjs → rafThrottle-Cf-gEuLq.mjs} +0 -0
  314. /package/dist/esm/chunks/{sharedTypes-DqPH1p0Q.mjs → sharedTypes-ySBopm8X.mjs} +0 -0
  315. /package/dist/esm/chunks/{tipStore-B_trLnIa.mjs → tipStore-DHu8QqNR.mjs} +0 -0
  316. /package/dist/esm/chunks/{toastStore-BWlW1cRh.mjs → toastStore-EbAo-Cjj.mjs} +0 -0
  317. /package/dist/esm/chunks/{tslib.es6-DGRmn-gx.mjs → tslib.es6-uJhEruZV.mjs} +0 -0
  318. /package/dist/esm/chunks/{videoStore-BxCTQ_tE.mjs → videoStore-TxVsMj8s.mjs} +0 -0
@@ -0,0 +1,722 @@
1
+ var comma = ",".charCodeAt(0), semicolon = ";".charCodeAt(0), chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar = new Uint8Array(64), charToInt = new Uint8Array(128);
2
+
3
+ for (let i = 0; i < 64; i++) {
4
+ const c = chars.charCodeAt(i);
5
+ intToChar[i] = c, charToInt[c] = i;
6
+ }
7
+
8
+ function encodeInteger(builder, num) {
9
+ do {
10
+ let clamped = 31 & num;
11
+ (num >>>= 5) > 0 && (clamped |= 32), builder.write(intToChar[clamped]);
12
+ } while (num > 0);
13
+ }
14
+
15
+ function encodeSign(num) {
16
+ return num < 0 ? -num << 1 | 1 : num << 1;
17
+ }
18
+
19
+ var td = "undefined" != typeof TextDecoder ? new TextDecoder : "undefined" != typeof Buffer ? {
20
+ decode: buf => Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString()
21
+ } : {
22
+ decode(buf) {
23
+ let out = "";
24
+ for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
25
+ return out;
26
+ }
27
+ }, StringWriter = class {
28
+ constructor() {
29
+ this.pos = 0, this.out = "", this.buffer = new Uint8Array(16384);
30
+ }
31
+ write(v) {
32
+ const {buffer: buffer} = this;
33
+ buffer[this.pos++] = v, 16384 === this.pos && (this.out += td.decode(buffer), this.pos = 0);
34
+ }
35
+ flush() {
36
+ const {buffer: buffer, out: out, pos: pos} = this;
37
+ return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
38
+ }
39
+ };
40
+
41
+ class BitSet {
42
+ constructor(arg) {
43
+ this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
44
+ }
45
+ add(n) {
46
+ this.bits[n >> 5] |= 1 << (31 & n);
47
+ }
48
+ has(n) {
49
+ return !!(this.bits[n >> 5] & 1 << (31 & n));
50
+ }
51
+ }
52
+
53
+ class Chunk {
54
+ constructor(start, end, content) {
55
+ this.start = start, this.end = end, this.original = content, this.intro = "", this.outro = "",
56
+ this.content = content, this.storeName = !1, this.edited = !1, this.previous = null,
57
+ this.next = null;
58
+ }
59
+ appendLeft(content) {
60
+ this.outro += content;
61
+ }
62
+ appendRight(content) {
63
+ this.intro = this.intro + content;
64
+ }
65
+ clone() {
66
+ const chunk = new Chunk(this.start, this.end, this.original);
67
+ return chunk.intro = this.intro, chunk.outro = this.outro, chunk.content = this.content,
68
+ chunk.storeName = this.storeName, chunk.edited = this.edited, chunk;
69
+ }
70
+ contains(index) {
71
+ return this.start < index && index < this.end;
72
+ }
73
+ eachNext(fn) {
74
+ let chunk = this;
75
+ for (;chunk; ) fn(chunk), chunk = chunk.next;
76
+ }
77
+ eachPrevious(fn) {
78
+ let chunk = this;
79
+ for (;chunk; ) fn(chunk), chunk = chunk.previous;
80
+ }
81
+ edit(content, storeName, contentOnly) {
82
+ return this.content = content, contentOnly || (this.intro = "", this.outro = ""),
83
+ this.storeName = storeName, this.edited = !0, this;
84
+ }
85
+ prependLeft(content) {
86
+ this.outro = content + this.outro;
87
+ }
88
+ prependRight(content) {
89
+ this.intro = content + this.intro;
90
+ }
91
+ reset() {
92
+ this.intro = "", this.outro = "", this.edited && (this.content = this.original,
93
+ this.storeName = !1, this.edited = !1);
94
+ }
95
+ split(index) {
96
+ const sliceIndex = index - this.start, originalBefore = this.original.slice(0, sliceIndex), originalAfter = this.original.slice(sliceIndex);
97
+ this.original = originalBefore;
98
+ const newChunk = new Chunk(index, this.end, originalAfter);
99
+ return newChunk.outro = this.outro, this.outro = "", this.end = index, this.edited ? (newChunk.edit("", !1),
100
+ this.content = "") : this.content = originalBefore, newChunk.next = this.next, newChunk.next && (newChunk.next.previous = newChunk),
101
+ newChunk.previous = this, this.next = newChunk, newChunk;
102
+ }
103
+ toString() {
104
+ return this.intro + this.content + this.outro;
105
+ }
106
+ trimEnd(rx) {
107
+ if (this.outro = this.outro.replace(rx, ""), this.outro.length) return !0;
108
+ const trimmed = this.content.replace(rx, "");
109
+ return trimmed.length ? (trimmed !== this.content && (this.split(this.start + trimmed.length).edit("", void 0, !0),
110
+ this.edited && this.edit(trimmed, this.storeName, !0)), !0) : (this.edit("", void 0, !0),
111
+ this.intro = this.intro.replace(rx, ""), !!this.intro.length || void 0);
112
+ }
113
+ trimStart(rx) {
114
+ if (this.intro = this.intro.replace(rx, ""), this.intro.length) return !0;
115
+ const trimmed = this.content.replace(rx, "");
116
+ if (trimmed.length) {
117
+ if (trimmed !== this.content) {
118
+ const newChunk = this.split(this.end - trimmed.length);
119
+ this.edited && newChunk.edit(trimmed, this.storeName, !0), this.edit("", void 0, !0);
120
+ }
121
+ return !0;
122
+ }
123
+ return this.edit("", void 0, !0), this.outro = this.outro.replace(rx, ""), !!this.outro.length || void 0;
124
+ }
125
+ }
126
+
127
+ function getBtoa() {
128
+ return "undefined" != typeof globalThis && "function" == typeof globalThis.btoa ? str => globalThis.btoa(unescape(encodeURIComponent(str))) : "function" == typeof Buffer ? str => Buffer.from(str, "utf-8").toString("base64") : () => {
129
+ throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
130
+ };
131
+ }
132
+
133
+ const btoa = getBtoa();
134
+
135
+ class SourceMap {
136
+ constructor(properties) {
137
+ this.version = 3, this.file = properties.file, this.sources = properties.sources,
138
+ this.sourcesContent = properties.sourcesContent, this.names = properties.names,
139
+ this.mappings = function(decoded) {
140
+ const writer = new StringWriter;
141
+ let sourcesIndex = 0, sourceLine = 0, sourceColumn = 0, namesIndex = 0;
142
+ for (let i = 0; i < decoded.length; i++) {
143
+ const line = decoded[i];
144
+ if (i > 0 && writer.write(semicolon), 0 === line.length) continue;
145
+ let genColumn = 0;
146
+ for (let j = 0; j < line.length; j++) {
147
+ const segment = line[j];
148
+ j > 0 && writer.write(comma), encodeInteger(writer, encodeSign(segment[0] - genColumn)),
149
+ genColumn = segment[0], 1 !== segment.length && (encodeInteger(writer, encodeSign(segment[1] - sourcesIndex)),
150
+ encodeInteger(writer, encodeSign(segment[2] - sourceLine)), encodeInteger(writer, encodeSign(segment[3] - sourceColumn)),
151
+ sourcesIndex = segment[1], sourceLine = segment[2], sourceColumn = segment[3], 4 !== segment.length && (encodeInteger(writer, encodeSign(segment[4] - namesIndex)),
152
+ namesIndex = segment[4]));
153
+ }
154
+ }
155
+ return writer.flush();
156
+ }(properties.mappings), void 0 !== properties.x_google_ignoreList && (this.x_google_ignoreList = properties.x_google_ignoreList),
157
+ void 0 !== properties.debugId && (this.debugId = properties.debugId);
158
+ }
159
+ toString() {
160
+ return JSON.stringify(this);
161
+ }
162
+ toUrl() {
163
+ return "data:application/json;charset=utf-8;base64," + btoa(this.toString());
164
+ }
165
+ }
166
+
167
+ function getRelativePath(from, to) {
168
+ const fromParts = from.split(/[/\\]/), toParts = to.split(/[/\\]/);
169
+ for (fromParts.pop(); fromParts[0] === toParts[0]; ) fromParts.shift(), toParts.shift();
170
+ if (fromParts.length) {
171
+ let i = fromParts.length;
172
+ for (;i--; ) fromParts[i] = "..";
173
+ }
174
+ return fromParts.concat(toParts).join("/");
175
+ }
176
+
177
+ const toString = Object.prototype.toString;
178
+
179
+ function getLocator(source) {
180
+ const originalLines = source.split("\n"), lineOffsets = [];
181
+ for (let i = 0, pos = 0; i < originalLines.length; i++) lineOffsets.push(pos), pos += originalLines[i].length + 1;
182
+ return function(index) {
183
+ let i = 0, j = lineOffsets.length;
184
+ for (;i < j; ) {
185
+ const m = i + j >> 1;
186
+ index < lineOffsets[m] ? j = m : i = m + 1;
187
+ }
188
+ const line = i - 1;
189
+ return {
190
+ line: line,
191
+ column: index - lineOffsets[line]
192
+ };
193
+ };
194
+ }
195
+
196
+ const wordRegex = /\w/;
197
+
198
+ class Mappings {
199
+ constructor(hires) {
200
+ this.hires = hires, this.generatedCodeLine = 0, this.generatedCodeColumn = 0, this.raw = [],
201
+ this.rawSegments = this.raw[this.generatedCodeLine] = [], this.pending = null;
202
+ }
203
+ addEdit(sourceIndex, content, loc, nameIndex) {
204
+ if (content.length) {
205
+ const contentLengthMinusOne = content.length - 1;
206
+ let contentLineEnd = content.indexOf("\n", 0), previousContentLineEnd = -1;
207
+ for (;contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd; ) {
208
+ const segment = [ this.generatedCodeColumn, sourceIndex, loc.line, loc.column ];
209
+ nameIndex >= 0 && segment.push(nameIndex), this.rawSegments.push(segment), this.generatedCodeLine += 1,
210
+ this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0,
211
+ previousContentLineEnd = contentLineEnd, contentLineEnd = content.indexOf("\n", contentLineEnd + 1);
212
+ }
213
+ const segment = [ this.generatedCodeColumn, sourceIndex, loc.line, loc.column ];
214
+ nameIndex >= 0 && segment.push(nameIndex), this.rawSegments.push(segment), this.advance(content.slice(previousContentLineEnd + 1));
215
+ } else this.pending && (this.rawSegments.push(this.pending), this.advance(content));
216
+ this.pending = null;
217
+ }
218
+ addUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) {
219
+ let originalCharIndex = chunk.start, first = !0, charInHiresBoundary = !1;
220
+ for (;originalCharIndex < chunk.end; ) {
221
+ if ("\n" === original[originalCharIndex]) loc.line += 1, loc.column = 0, this.generatedCodeLine += 1,
222
+ this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0,
223
+ first = !0, charInHiresBoundary = !1; else {
224
+ if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
225
+ const segment = [ this.generatedCodeColumn, sourceIndex, loc.line, loc.column ];
226
+ "boundary" === this.hires ? wordRegex.test(original[originalCharIndex]) ? charInHiresBoundary || (this.rawSegments.push(segment),
227
+ charInHiresBoundary = !0) : (this.rawSegments.push(segment), charInHiresBoundary = !1) : this.rawSegments.push(segment);
228
+ }
229
+ loc.column += 1, this.generatedCodeColumn += 1, first = !1;
230
+ }
231
+ originalCharIndex += 1;
232
+ }
233
+ this.pending = null;
234
+ }
235
+ advance(str) {
236
+ if (!str) return;
237
+ const lines = str.split("\n");
238
+ if (lines.length > 1) {
239
+ for (let i = 0; i < lines.length - 1; i++) this.generatedCodeLine++, this.raw[this.generatedCodeLine] = this.rawSegments = [];
240
+ this.generatedCodeColumn = 0;
241
+ }
242
+ this.generatedCodeColumn += lines[lines.length - 1].length;
243
+ }
244
+ }
245
+
246
+ const n = "\n", warned = {
247
+ insertLeft: !1,
248
+ insertRight: !1,
249
+ storeName: !1
250
+ };
251
+
252
+ class MagicString {
253
+ constructor(string, options = {}) {
254
+ const chunk = new Chunk(0, string.length, string);
255
+ Object.defineProperties(this, {
256
+ original: {
257
+ writable: !0,
258
+ value: string
259
+ },
260
+ outro: {
261
+ writable: !0,
262
+ value: ""
263
+ },
264
+ intro: {
265
+ writable: !0,
266
+ value: ""
267
+ },
268
+ firstChunk: {
269
+ writable: !0,
270
+ value: chunk
271
+ },
272
+ lastChunk: {
273
+ writable: !0,
274
+ value: chunk
275
+ },
276
+ lastSearchedChunk: {
277
+ writable: !0,
278
+ value: chunk
279
+ },
280
+ byStart: {
281
+ writable: !0,
282
+ value: {}
283
+ },
284
+ byEnd: {
285
+ writable: !0,
286
+ value: {}
287
+ },
288
+ filename: {
289
+ writable: !0,
290
+ value: options.filename
291
+ },
292
+ indentExclusionRanges: {
293
+ writable: !0,
294
+ value: options.indentExclusionRanges
295
+ },
296
+ sourcemapLocations: {
297
+ writable: !0,
298
+ value: new BitSet
299
+ },
300
+ storedNames: {
301
+ writable: !0,
302
+ value: {}
303
+ },
304
+ indentStr: {
305
+ writable: !0,
306
+ value: void 0
307
+ },
308
+ ignoreList: {
309
+ writable: !0,
310
+ value: options.ignoreList
311
+ },
312
+ offset: {
313
+ writable: !0,
314
+ value: options.offset || 0
315
+ }
316
+ }), this.byStart[0] = chunk, this.byEnd[string.length] = chunk;
317
+ }
318
+ addSourcemapLocation(char) {
319
+ this.sourcemapLocations.add(char);
320
+ }
321
+ append(content) {
322
+ if ("string" != typeof content) throw new TypeError("outro content must be a string");
323
+ return this.outro += content, this;
324
+ }
325
+ appendLeft(index, content) {
326
+ if (index += this.offset, "string" != typeof content) throw new TypeError("inserted content must be a string");
327
+ this._split(index);
328
+ const chunk = this.byEnd[index];
329
+ return chunk ? chunk.appendLeft(content) : this.intro += content, this;
330
+ }
331
+ appendRight(index, content) {
332
+ if (index += this.offset, "string" != typeof content) throw new TypeError("inserted content must be a string");
333
+ this._split(index);
334
+ const chunk = this.byStart[index];
335
+ return chunk ? chunk.appendRight(content) : this.outro += content, this;
336
+ }
337
+ clone() {
338
+ const cloned = new MagicString(this.original, {
339
+ filename: this.filename,
340
+ offset: this.offset
341
+ });
342
+ let originalChunk = this.firstChunk, clonedChunk = cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone();
343
+ for (;originalChunk; ) {
344
+ cloned.byStart[clonedChunk.start] = clonedChunk, cloned.byEnd[clonedChunk.end] = clonedChunk;
345
+ const nextOriginalChunk = originalChunk.next, nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone();
346
+ nextClonedChunk && (clonedChunk.next = nextClonedChunk, nextClonedChunk.previous = clonedChunk,
347
+ clonedChunk = nextClonedChunk), originalChunk = nextOriginalChunk;
348
+ }
349
+ return cloned.lastChunk = clonedChunk, this.indentExclusionRanges && (cloned.indentExclusionRanges = this.indentExclusionRanges.slice()),
350
+ cloned.sourcemapLocations = new BitSet(this.sourcemapLocations), cloned.intro = this.intro,
351
+ cloned.outro = this.outro, cloned;
352
+ }
353
+ generateDecodedMap(options) {
354
+ options = options || {};
355
+ const names = Object.keys(this.storedNames), mappings = new Mappings(options.hires), locate = getLocator(this.original);
356
+ return this.intro && mappings.advance(this.intro), this.firstChunk.eachNext(chunk => {
357
+ const loc = locate(chunk.start);
358
+ chunk.intro.length && mappings.advance(chunk.intro), chunk.edited ? mappings.addEdit(0, chunk.content, loc, chunk.storeName ? names.indexOf(chunk.original) : -1) : mappings.addUneditedChunk(0, chunk, this.original, loc, this.sourcemapLocations),
359
+ chunk.outro.length && mappings.advance(chunk.outro);
360
+ }), this.outro && mappings.advance(this.outro), {
361
+ file: options.file ? options.file.split(/[/\\]/).pop() : void 0,
362
+ sources: [ options.source ? getRelativePath(options.file || "", options.source) : options.file || "" ],
363
+ sourcesContent: options.includeContent ? [ this.original ] : void 0,
364
+ names: names,
365
+ mappings: mappings.raw,
366
+ x_google_ignoreList: this.ignoreList ? [ 0 ] : void 0
367
+ };
368
+ }
369
+ generateMap(options) {
370
+ return new SourceMap(this.generateDecodedMap(options));
371
+ }
372
+ _ensureindentStr() {
373
+ void 0 === this.indentStr && (this.indentStr = function(code) {
374
+ const lines = code.split("\n"), tabbed = lines.filter(line => /^\t+/.test(line)), spaced = lines.filter(line => /^ {2,}/.test(line));
375
+ if (0 === tabbed.length && 0 === spaced.length) return null;
376
+ if (tabbed.length >= spaced.length) return "\t";
377
+ const min = spaced.reduce((previous, current) => {
378
+ const numSpaces = /^ +/.exec(current)[0].length;
379
+ return Math.min(numSpaces, previous);
380
+ }, 1 / 0);
381
+ return new Array(min + 1).join(" ");
382
+ }(this.original));
383
+ }
384
+ _getRawIndentString() {
385
+ return this._ensureindentStr(), this.indentStr;
386
+ }
387
+ getIndentString() {
388
+ return this._ensureindentStr(), null === this.indentStr ? "\t" : this.indentStr;
389
+ }
390
+ indent(indentStr, options) {
391
+ const pattern = /^[^\r\n]/gm;
392
+ var thing;
393
+ if (thing = indentStr, "[object Object]" === toString.call(thing) && (options = indentStr,
394
+ indentStr = void 0), void 0 === indentStr && (this._ensureindentStr(), indentStr = this.indentStr || "\t"),
395
+ "" === indentStr) return this;
396
+ const isExcluded = {};
397
+ if ((options = options || {}).exclude) {
398
+ ("number" == typeof options.exclude[0] ? [ options.exclude ] : options.exclude).forEach(exclusion => {
399
+ for (let i = exclusion[0]; i < exclusion[1]; i += 1) isExcluded[i] = !0;
400
+ });
401
+ }
402
+ let shouldIndentNextCharacter = !1 !== options.indentStart;
403
+ const replacer = match => shouldIndentNextCharacter ? `${indentStr}${match}` : (shouldIndentNextCharacter = !0,
404
+ match);
405
+ this.intro = this.intro.replace(pattern, replacer);
406
+ let charIndex = 0, chunk = this.firstChunk;
407
+ for (;chunk; ) {
408
+ const end = chunk.end;
409
+ if (chunk.edited) isExcluded[charIndex] || (chunk.content = chunk.content.replace(pattern, replacer),
410
+ chunk.content.length && (shouldIndentNextCharacter = "\n" === chunk.content[chunk.content.length - 1])); else for (charIndex = chunk.start; charIndex < end; ) {
411
+ if (!isExcluded[charIndex]) {
412
+ const char = this.original[charIndex];
413
+ "\n" === char ? shouldIndentNextCharacter = !0 : "\r" !== char && shouldIndentNextCharacter && (shouldIndentNextCharacter = !1,
414
+ charIndex === chunk.start || (this._splitChunk(chunk, charIndex), chunk = chunk.next),
415
+ chunk.prependRight(indentStr));
416
+ }
417
+ charIndex += 1;
418
+ }
419
+ charIndex = chunk.end, chunk = chunk.next;
420
+ }
421
+ return this.outro = this.outro.replace(pattern, replacer), this;
422
+ }
423
+ insert() {
424
+ throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)");
425
+ }
426
+ insertLeft(index, content) {
427
+ return warned.insertLeft || (console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),
428
+ warned.insertLeft = !0), this.appendLeft(index, content);
429
+ }
430
+ insertRight(index, content) {
431
+ return warned.insertRight || (console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),
432
+ warned.insertRight = !0), this.prependRight(index, content);
433
+ }
434
+ move(start, end, index) {
435
+ if (start += this.offset, end += this.offset, (index += this.offset) >= start && index <= end) throw new Error("Cannot move a selection inside itself");
436
+ this._split(start), this._split(end), this._split(index);
437
+ const first = this.byStart[start], last = this.byEnd[end], oldLeft = first.previous, oldRight = last.next, newRight = this.byStart[index];
438
+ if (!newRight && last === this.lastChunk) return this;
439
+ const newLeft = newRight ? newRight.previous : this.lastChunk;
440
+ return oldLeft && (oldLeft.next = oldRight), oldRight && (oldRight.previous = oldLeft),
441
+ newLeft && (newLeft.next = first), newRight && (newRight.previous = last), first.previous || (this.firstChunk = last.next),
442
+ last.next || (this.lastChunk = first.previous, this.lastChunk.next = null), first.previous = newLeft,
443
+ last.next = newRight || null, newLeft || (this.firstChunk = first), newRight || (this.lastChunk = last),
444
+ this;
445
+ }
446
+ overwrite(start, end, content, options) {
447
+ return options = options || {}, this.update(start, end, content, {
448
+ ...options,
449
+ overwrite: !options.contentOnly
450
+ });
451
+ }
452
+ update(start, end, content, options) {
453
+ if (start += this.offset, end += this.offset, "string" != typeof content) throw new TypeError("replacement content must be a string");
454
+ if (0 !== this.original.length) {
455
+ for (;start < 0; ) start += this.original.length;
456
+ for (;end < 0; ) end += this.original.length;
457
+ }
458
+ if (end > this.original.length) throw new Error("end is out of bounds");
459
+ if (start === end) throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");
460
+ this._split(start), this._split(end), !0 === options && (warned.storeName || (console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),
461
+ warned.storeName = !0), options = {
462
+ storeName: !0
463
+ });
464
+ const storeName = void 0 !== options && options.storeName, overwrite = void 0 !== options && options.overwrite;
465
+ if (storeName) {
466
+ const original = this.original.slice(start, end);
467
+ Object.defineProperty(this.storedNames, original, {
468
+ writable: !0,
469
+ value: !0,
470
+ enumerable: !0
471
+ });
472
+ }
473
+ const first = this.byStart[start], last = this.byEnd[end];
474
+ if (first) {
475
+ let chunk = first;
476
+ for (;chunk !== last; ) {
477
+ if (chunk.next !== this.byStart[chunk.end]) throw new Error("Cannot overwrite across a split point");
478
+ chunk = chunk.next, chunk.edit("", !1);
479
+ }
480
+ first.edit(content, storeName, !overwrite);
481
+ } else {
482
+ const newChunk = new Chunk(start, end, "").edit(content, storeName);
483
+ last.next = newChunk, newChunk.previous = last;
484
+ }
485
+ return this;
486
+ }
487
+ prepend(content) {
488
+ if ("string" != typeof content) throw new TypeError("outro content must be a string");
489
+ return this.intro = content + this.intro, this;
490
+ }
491
+ prependLeft(index, content) {
492
+ if (index += this.offset, "string" != typeof content) throw new TypeError("inserted content must be a string");
493
+ this._split(index);
494
+ const chunk = this.byEnd[index];
495
+ return chunk ? chunk.prependLeft(content) : this.intro = content + this.intro, this;
496
+ }
497
+ prependRight(index, content) {
498
+ if (index += this.offset, "string" != typeof content) throw new TypeError("inserted content must be a string");
499
+ this._split(index);
500
+ const chunk = this.byStart[index];
501
+ return chunk ? chunk.prependRight(content) : this.outro = content + this.outro,
502
+ this;
503
+ }
504
+ remove(start, end) {
505
+ if (start += this.offset, end += this.offset, 0 !== this.original.length) {
506
+ for (;start < 0; ) start += this.original.length;
507
+ for (;end < 0; ) end += this.original.length;
508
+ }
509
+ if (start === end) return this;
510
+ if (start < 0 || end > this.original.length) throw new Error("Character is out of bounds");
511
+ if (start > end) throw new Error("end must be greater than start");
512
+ this._split(start), this._split(end);
513
+ let chunk = this.byStart[start];
514
+ for (;chunk; ) chunk.intro = "", chunk.outro = "", chunk.edit(""), chunk = end > chunk.end ? this.byStart[chunk.end] : null;
515
+ return this;
516
+ }
517
+ reset(start, end) {
518
+ if (start += this.offset, end += this.offset, 0 !== this.original.length) {
519
+ for (;start < 0; ) start += this.original.length;
520
+ for (;end < 0; ) end += this.original.length;
521
+ }
522
+ if (start === end) return this;
523
+ if (start < 0 || end > this.original.length) throw new Error("Character is out of bounds");
524
+ if (start > end) throw new Error("end must be greater than start");
525
+ this._split(start), this._split(end);
526
+ let chunk = this.byStart[start];
527
+ for (;chunk; ) chunk.reset(), chunk = end > chunk.end ? this.byStart[chunk.end] : null;
528
+ return this;
529
+ }
530
+ lastChar() {
531
+ if (this.outro.length) return this.outro[this.outro.length - 1];
532
+ let chunk = this.lastChunk;
533
+ do {
534
+ if (chunk.outro.length) return chunk.outro[chunk.outro.length - 1];
535
+ if (chunk.content.length) return chunk.content[chunk.content.length - 1];
536
+ if (chunk.intro.length) return chunk.intro[chunk.intro.length - 1];
537
+ } while (chunk = chunk.previous);
538
+ return this.intro.length ? this.intro[this.intro.length - 1] : "";
539
+ }
540
+ lastLine() {
541
+ let lineIndex = this.outro.lastIndexOf(n);
542
+ if (-1 !== lineIndex) return this.outro.substr(lineIndex + 1);
543
+ let lineStr = this.outro, chunk = this.lastChunk;
544
+ do {
545
+ if (chunk.outro.length > 0) {
546
+ if (lineIndex = chunk.outro.lastIndexOf(n), -1 !== lineIndex) return chunk.outro.substr(lineIndex + 1) + lineStr;
547
+ lineStr = chunk.outro + lineStr;
548
+ }
549
+ if (chunk.content.length > 0) {
550
+ if (lineIndex = chunk.content.lastIndexOf(n), -1 !== lineIndex) return chunk.content.substr(lineIndex + 1) + lineStr;
551
+ lineStr = chunk.content + lineStr;
552
+ }
553
+ if (chunk.intro.length > 0) {
554
+ if (lineIndex = chunk.intro.lastIndexOf(n), -1 !== lineIndex) return chunk.intro.substr(lineIndex + 1) + lineStr;
555
+ lineStr = chunk.intro + lineStr;
556
+ }
557
+ } while (chunk = chunk.previous);
558
+ return lineIndex = this.intro.lastIndexOf(n), -1 !== lineIndex ? this.intro.substr(lineIndex + 1) + lineStr : this.intro + lineStr;
559
+ }
560
+ slice(start = 0, end = this.original.length - this.offset) {
561
+ if (start += this.offset, end += this.offset, 0 !== this.original.length) {
562
+ for (;start < 0; ) start += this.original.length;
563
+ for (;end < 0; ) end += this.original.length;
564
+ }
565
+ let result = "", chunk = this.firstChunk;
566
+ for (;chunk && (chunk.start > start || chunk.end <= start); ) {
567
+ if (chunk.start < end && chunk.end >= end) return result;
568
+ chunk = chunk.next;
569
+ }
570
+ if (chunk && chunk.edited && chunk.start !== start) throw new Error(`Cannot use replaced character ${start} as slice start anchor.`);
571
+ const startChunk = chunk;
572
+ for (;chunk; ) {
573
+ !chunk.intro || startChunk === chunk && chunk.start !== start || (result += chunk.intro);
574
+ const containsEnd = chunk.start < end && chunk.end >= end;
575
+ if (containsEnd && chunk.edited && chunk.end !== end) throw new Error(`Cannot use replaced character ${end} as slice end anchor.`);
576
+ const sliceStart = startChunk === chunk ? start - chunk.start : 0, sliceEnd = containsEnd ? chunk.content.length + end - chunk.end : chunk.content.length;
577
+ if (result += chunk.content.slice(sliceStart, sliceEnd), !chunk.outro || containsEnd && chunk.end !== end || (result += chunk.outro),
578
+ containsEnd) break;
579
+ chunk = chunk.next;
580
+ }
581
+ return result;
582
+ }
583
+ snip(start, end) {
584
+ const clone = this.clone();
585
+ return clone.remove(0, start), clone.remove(end, clone.original.length), clone;
586
+ }
587
+ _split(index) {
588
+ if (this.byStart[index] || this.byEnd[index]) return;
589
+ let chunk = this.lastSearchedChunk, previousChunk = chunk;
590
+ const searchForward = index > chunk.end;
591
+ for (;chunk; ) {
592
+ if (chunk.contains(index)) return this._splitChunk(chunk, index);
593
+ if (chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start], chunk === previousChunk) return;
594
+ previousChunk = chunk;
595
+ }
596
+ }
597
+ _splitChunk(chunk, index) {
598
+ if (chunk.edited && chunk.content.length) {
599
+ const loc = getLocator(this.original)(index);
600
+ throw new Error(`Cannot split a chunk that has already been edited (${loc.line}:${loc.column} – "${chunk.original}")`);
601
+ }
602
+ const newChunk = chunk.split(index);
603
+ return this.byEnd[index] = chunk, this.byStart[index] = newChunk, this.byEnd[newChunk.end] = newChunk,
604
+ chunk === this.lastChunk && (this.lastChunk = newChunk), this.lastSearchedChunk = chunk,
605
+ !0;
606
+ }
607
+ toString() {
608
+ let str = this.intro, chunk = this.firstChunk;
609
+ for (;chunk; ) str += chunk.toString(), chunk = chunk.next;
610
+ return str + this.outro;
611
+ }
612
+ isEmpty() {
613
+ let chunk = this.firstChunk;
614
+ do {
615
+ if (chunk.intro.length && chunk.intro.trim() || chunk.content.length && chunk.content.trim() || chunk.outro.length && chunk.outro.trim()) return !1;
616
+ } while (chunk = chunk.next);
617
+ return !0;
618
+ }
619
+ length() {
620
+ let chunk = this.firstChunk, length = 0;
621
+ do {
622
+ length += chunk.intro.length + chunk.content.length + chunk.outro.length;
623
+ } while (chunk = chunk.next);
624
+ return length;
625
+ }
626
+ trimLines() {
627
+ return this.trim("[\\r\\n]");
628
+ }
629
+ trim(charType) {
630
+ return this.trimStart(charType).trimEnd(charType);
631
+ }
632
+ trimEndAborted(charType) {
633
+ const rx = new RegExp((charType || "\\s") + "+$");
634
+ if (this.outro = this.outro.replace(rx, ""), this.outro.length) return !0;
635
+ let chunk = this.lastChunk;
636
+ do {
637
+ const end = chunk.end, aborted = chunk.trimEnd(rx);
638
+ if (chunk.end !== end && (this.lastChunk === chunk && (this.lastChunk = chunk.next),
639
+ this.byEnd[chunk.end] = chunk, this.byStart[chunk.next.start] = chunk.next, this.byEnd[chunk.next.end] = chunk.next),
640
+ aborted) return !0;
641
+ chunk = chunk.previous;
642
+ } while (chunk);
643
+ return !1;
644
+ }
645
+ trimEnd(charType) {
646
+ return this.trimEndAborted(charType), this;
647
+ }
648
+ trimStartAborted(charType) {
649
+ const rx = new RegExp("^" + (charType || "\\s") + "+");
650
+ if (this.intro = this.intro.replace(rx, ""), this.intro.length) return !0;
651
+ let chunk = this.firstChunk;
652
+ do {
653
+ const end = chunk.end, aborted = chunk.trimStart(rx);
654
+ if (chunk.end !== end && (chunk === this.lastChunk && (this.lastChunk = chunk.next),
655
+ this.byEnd[chunk.end] = chunk, this.byStart[chunk.next.start] = chunk.next, this.byEnd[chunk.next.end] = chunk.next),
656
+ aborted) return !0;
657
+ chunk = chunk.next;
658
+ } while (chunk);
659
+ return !1;
660
+ }
661
+ trimStart(charType) {
662
+ return this.trimStartAborted(charType), this;
663
+ }
664
+ hasChanged() {
665
+ return this.original !== this.toString();
666
+ }
667
+ _replaceRegexp(searchValue, replacement) {
668
+ function getReplacement(match, str) {
669
+ return "string" == typeof replacement ? replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
670
+ if ("$" === i) return "$";
671
+ if ("&" === i) return match[0];
672
+ return +i < match.length ? match[+i] : `$${i}`;
673
+ }) : replacement(...match, match.index, str, match.groups);
674
+ }
675
+ if (searchValue.global) {
676
+ (function(re, str) {
677
+ let match;
678
+ const matches = [];
679
+ for (;match = re.exec(str); ) matches.push(match);
680
+ return matches;
681
+ })(searchValue, this.original).forEach(match => {
682
+ if (null != match.index) {
683
+ const replacement = getReplacement(match, this.original);
684
+ replacement !== match[0] && this.overwrite(match.index, match.index + match[0].length, replacement);
685
+ }
686
+ });
687
+ } else {
688
+ const match = this.original.match(searchValue);
689
+ if (match && null != match.index) {
690
+ const replacement = getReplacement(match, this.original);
691
+ replacement !== match[0] && this.overwrite(match.index, match.index + match[0].length, replacement);
692
+ }
693
+ }
694
+ return this;
695
+ }
696
+ _replaceString(string, replacement) {
697
+ const {original: original} = this, index = original.indexOf(string);
698
+ return -1 !== index && ("function" == typeof replacement && (replacement = replacement(string, index, original)),
699
+ string !== replacement && this.overwrite(index, index + string.length, replacement)),
700
+ this;
701
+ }
702
+ replace(searchValue, replacement) {
703
+ return "string" == typeof searchValue ? this._replaceString(searchValue, replacement) : this._replaceRegexp(searchValue, replacement);
704
+ }
705
+ _replaceAllString(string, replacement) {
706
+ const {original: original} = this, stringLength = string.length;
707
+ for (let index = original.indexOf(string); -1 !== index; index = original.indexOf(string, index + stringLength)) {
708
+ const previous = original.slice(index, index + stringLength);
709
+ let _replacement = replacement;
710
+ "function" == typeof replacement && (_replacement = replacement(previous, index, original)),
711
+ previous !== _replacement && this.overwrite(index, index + stringLength, _replacement);
712
+ }
713
+ return this;
714
+ }
715
+ replaceAll(searchValue, replacement) {
716
+ if ("string" == typeof searchValue) return this._replaceAllString(searchValue, replacement);
717
+ if (!searchValue.global) throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");
718
+ return this._replaceRegexp(searchValue, replacement);
719
+ }
720
+ }
721
+
722
+ export { SourceMap, MagicString as default };