@duxweb/dvha-pro 0.0.5 → 0.0.6

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 (173) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/_virtual/_commonjsHelpers.cjs +1 -0
  3. package/dist/cjs/_virtual/browser.cjs +1 -0
  4. package/dist/cjs/_virtual/browser2.cjs +1 -0
  5. package/dist/cjs/_virtual/sourcemap-codec.umd.cjs +1 -0
  6. package/dist/cjs/_virtual/sourcemap-codec.umd2.cjs +1 -0
  7. package/dist/cjs/component.cjs +1 -1
  8. package/dist/cjs/components/dialog/dialog.cjs +1 -1
  9. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  10. package/dist/cjs/components/form/pageForm.cjs +1 -1
  11. package/dist/cjs/components/form/settingForm.cjs +1 -1
  12. package/dist/cjs/components/layout/list.cjs +1 -1
  13. package/dist/cjs/components/layout/table.cjs +1 -1
  14. package/dist/cjs/components/modal/modal.cjs +1 -1
  15. package/dist/cjs/config/uno.cjs +1 -1
  16. package/dist/cjs/config/validate.cjs +1 -1
  17. package/dist/cjs/dvha-pro.css +1 -1
  18. package/dist/cjs/hooks/drawer.cjs +1 -1
  19. package/dist/cjs/hooks/table/media.cjs +1 -1
  20. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.cjs +1 -0
  21. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.cjs +1 -0
  22. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.cjs +1 -0
  23. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.cjs +1 -0
  24. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.cjs +1 -0
  25. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.cjs +1 -0
  26. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.cjs +1 -0
  27. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.cjs +1 -0
  28. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.cjs +1 -0
  29. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.cjs +1 -0
  30. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.cjs +1 -0
  31. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.cjs +1 -0
  32. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.cjs +1 -0
  33. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.cjs +1 -0
  34. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.cjs +1 -0
  35. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.cjs +1 -0
  36. package/dist/cjs/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.cjs +1 -0
  37. package/dist/cjs/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.cjs +1 -0
  38. package/dist/cjs/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.cjs +1 -0
  39. package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.cjs +1 -0
  40. package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.cjs +1 -0
  41. package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.cjs +1 -0
  42. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.cjs +1 -0
  43. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.cjs +391 -0
  44. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.cjs +1 -0
  45. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.cjs +1 -0
  46. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.cjs +1 -0
  47. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.cjs +1 -0
  48. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.cjs +1 -0
  49. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.cjs +1 -0
  50. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.cjs +1 -0
  51. package/dist/cjs/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.cjs +1 -0
  52. package/dist/cjs/node_modules/.pnpm/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/integrations/useFocusTrap.cjs +1 -0
  53. package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.cjs +1 -0
  54. package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.cjs +1 -0
  55. package/dist/cjs/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +1 -0
  56. package/dist/cjs/node_modules/{focus-trap → .pnpm/focus-trap@7.6.5/node_modules/focus-trap}/dist/focus-trap.esm.cjs +1 -1
  57. package/dist/cjs/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.cjs +10 -0
  58. package/dist/cjs/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.cjs +1 -0
  59. package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.cjs +1 -0
  60. package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.cjs +1 -0
  61. package/dist/cjs/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.cjs +1 -0
  62. package/dist/cjs/pages/authLayout.cjs +1 -1
  63. package/dist/cjs/pages/layout/page.cjs +1 -1
  64. package/dist/cjs/pages/login.cjs +1 -1
  65. package/dist/cjs/pages/menu/button.cjs +1 -1
  66. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  67. package/dist/cjs/pages/menu/main.cjs +1 -1
  68. package/dist/cjs/pages/menu/mobile.cjs +1 -1
  69. package/dist/cjs/pages/page404.cjs +1 -1
  70. package/dist/cjs/pages/pageStatus.cjs +1 -1
  71. package/dist/cjs/theme/naiveTheme.cjs +1 -1
  72. package/dist/cjs/theme/uno.css.cjs +1 -0
  73. package/dist/esm/_virtual/_commonjsHelpers.js +6 -0
  74. package/dist/esm/_virtual/browser.js +7 -0
  75. package/dist/esm/_virtual/browser2.js +4 -0
  76. package/dist/esm/_virtual/sourcemap-codec.umd.js +5 -0
  77. package/dist/esm/_virtual/sourcemap-codec.umd2.js +4 -0
  78. package/dist/esm/component.js +1 -1
  79. package/dist/esm/components/dialog/dialog.js +1 -1
  80. package/dist/esm/components/drawer/drawer.js +1 -1
  81. package/dist/esm/components/form/pageForm.js +4 -3
  82. package/dist/esm/components/form/settingForm.js +14 -13
  83. package/dist/esm/components/layout/list.js +4 -3
  84. package/dist/esm/components/layout/table.js +4 -3
  85. package/dist/esm/components/modal/modal.js +1 -1
  86. package/dist/esm/config/uno.js +16 -13
  87. package/dist/esm/config/validate.js +2 -2
  88. package/dist/esm/dvha-pro.css +1 -1
  89. package/dist/esm/hooks/drawer.js +4 -3
  90. package/dist/esm/hooks/table/media.js +4 -3
  91. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.js +14 -0
  92. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
  93. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.js +11 -0
  94. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.js +9 -0
  95. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.js +23 -0
  96. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.js +17 -0
  97. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.js +40 -0
  98. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.js +46 -0
  99. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.js +55 -0
  100. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.js +38 -0
  101. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.js +69 -0
  102. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.js +29 -0
  103. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +14 -0
  104. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.js +27 -0
  105. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.js +6 -0
  106. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.js +6 -0
  107. package/dist/esm/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +255 -0
  108. package/dist/esm/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.js +88 -0
  109. package/dist/esm/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.js +51 -0
  110. package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.js +17 -0
  111. package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.js +151 -0
  112. package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.js +8 -0
  113. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.js +322 -0
  114. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.js +547 -0
  115. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.js +32 -0
  116. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.js +2307 -0
  117. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.js +627 -0
  118. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.js +7 -0
  119. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.js +588 -0
  120. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.js +51 -0
  121. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.js +553 -0
  122. package/dist/esm/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.js +632 -0
  123. package/dist/esm/node_modules/{@vueuse → .pnpm/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse}/integrations/useFocusTrap.js +2 -2
  124. package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js +146 -0
  125. package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js +97 -0
  126. package/dist/esm/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.js +56 -0
  127. package/dist/esm/node_modules/{focus-trap → .pnpm/focus-trap@7.6.5/node_modules/focus-trap}/dist/focus-trap.esm.js +1 -1
  128. package/dist/esm/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js +608 -0
  129. package/dist/esm/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js +85 -0
  130. package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.js +23 -0
  131. package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.js +219 -0
  132. package/dist/esm/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.js +153 -0
  133. package/dist/esm/pages/authLayout.js +1 -1
  134. package/dist/esm/pages/layout/page.js +10 -9
  135. package/dist/esm/pages/login.js +7 -6
  136. package/dist/esm/pages/menu/button.js +9 -8
  137. package/dist/esm/pages/menu/cmd.js +7 -6
  138. package/dist/esm/pages/menu/main.js +9 -8
  139. package/dist/esm/pages/menu/mobile.js +12 -11
  140. package/dist/esm/pages/page404.js +2 -1
  141. package/dist/esm/pages/pageStatus.js +4 -3
  142. package/dist/esm/theme/naiveTheme.js +1 -1
  143. package/dist/esm/theme/uno.css.js +1 -0
  144. package/dist/types/components/layout/list.d.ts +4 -1
  145. package/dist/types/components/list/card.d.ts +3 -3
  146. package/dist/types/components/list/list.d.ts +3 -3
  147. package/dist/types/hooks/modal.d.ts +1 -1
  148. package/package.json +17 -16
  149. package/dist/cjs/node_modules/@overlastic/core/dist/index.cjs +0 -1
  150. package/dist/cjs/node_modules/@overlastic/vue/dist/index.cjs +0 -1
  151. package/dist/cjs/node_modules/@vueuse/integrations/useFocusTrap.cjs +0 -1
  152. package/dist/cjs/node_modules/colorizr/dist/index.cjs +0 -1
  153. package/dist/cjs/node_modules/lower-case/dist.es2015/index.cjs +0 -1
  154. package/dist/cjs/node_modules/no-case/dist.es2015/index.cjs +0 -1
  155. package/dist/cjs/node_modules/pascal-case/dist.es2015/index.cjs +0 -1
  156. package/dist/cjs/node_modules/tslib/tslib.es6.cjs +0 -1
  157. package/dist/esm/node_modules/@overlastic/core/dist/index.js +0 -76
  158. package/dist/esm/node_modules/@overlastic/vue/dist/index.js +0 -122
  159. package/dist/esm/node_modules/colorizr/dist/index.js +0 -318
  160. package/dist/esm/node_modules/lower-case/dist.es2015/index.js +0 -6
  161. package/dist/esm/node_modules/no-case/dist.es2015/index.js +0 -18
  162. package/dist/esm/node_modules/pascal-case/dist.es2015/index.js +0 -13
  163. package/dist/esm/node_modules/tslib/tslib.es6.js +0 -12
  164. /package/dist/cjs/node_modules/{@iconify-json → .pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json}/tabler/icons.json.cjs +0 -0
  165. /package/dist/cjs/node_modules/{@vee-validate → .pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate}/i18n/dist/locale/en.json.cjs +0 -0
  166. /package/dist/cjs/node_modules/{@vee-validate → .pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate}/i18n/dist/locale/zh_CN.json.cjs +0 -0
  167. /package/dist/cjs/node_modules/{@vueuse → .pnpm/@vueuse_shared@13.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse}/shared/index.cjs +0 -0
  168. /package/dist/cjs/node_modules/{tabbable → .pnpm/tabbable@6.2.0/node_modules/tabbable}/dist/index.esm.cjs +0 -0
  169. /package/dist/esm/node_modules/{@iconify-json → .pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json}/tabler/icons.json.js +0 -0
  170. /package/dist/esm/node_modules/{@vee-validate → .pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate}/i18n/dist/locale/en.json.js +0 -0
  171. /package/dist/esm/node_modules/{@vee-validate → .pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate}/i18n/dist/locale/zh_CN.json.js +0 -0
  172. /package/dist/esm/node_modules/{@vueuse → .pnpm/@vueuse_shared@13.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse}/shared/index.js +0 -0
  173. /package/dist/esm/node_modules/{tabbable → .pnpm/tabbable@6.2.0/node_modules/tabbable}/dist/index.esm.js +0 -0
@@ -0,0 +1,608 @@
1
+ import { s as b } from "../../../../../../_virtual/sourcemap-codec.umd.js";
2
+ class d {
3
+ constructor(t) {
4
+ this.bits = t instanceof d ? t.bits.slice() : [];
5
+ }
6
+ add(t) {
7
+ this.bits[t >> 5] |= 1 << (t & 31);
8
+ }
9
+ has(t) {
10
+ return !!(this.bits[t >> 5] & 1 << (t & 31));
11
+ }
12
+ }
13
+ class g {
14
+ constructor(t, e, i) {
15
+ this.start = t, this.end = e, this.original = i, this.intro = "", this.outro = "", this.content = i, this.storeName = !1, this.edited = !1, this.previous = null, this.next = null;
16
+ }
17
+ appendLeft(t) {
18
+ this.outro += t;
19
+ }
20
+ appendRight(t) {
21
+ this.intro = this.intro + t;
22
+ }
23
+ clone() {
24
+ const t = new g(this.start, this.end, this.original);
25
+ return t.intro = this.intro, t.outro = this.outro, t.content = this.content, t.storeName = this.storeName, t.edited = this.edited, t;
26
+ }
27
+ contains(t) {
28
+ return this.start < t && t < this.end;
29
+ }
30
+ eachNext(t) {
31
+ let e = this;
32
+ for (; e; )
33
+ t(e), e = e.next;
34
+ }
35
+ eachPrevious(t) {
36
+ let e = this;
37
+ for (; e; )
38
+ t(e), e = e.previous;
39
+ }
40
+ edit(t, e, i) {
41
+ return this.content = t, i || (this.intro = "", this.outro = ""), this.storeName = e, this.edited = !0, this;
42
+ }
43
+ prependLeft(t) {
44
+ this.outro = t + this.outro;
45
+ }
46
+ prependRight(t) {
47
+ this.intro = t + this.intro;
48
+ }
49
+ reset() {
50
+ this.intro = "", this.outro = "", this.edited && (this.content = this.original, this.storeName = !1, this.edited = !1);
51
+ }
52
+ split(t) {
53
+ const e = t - this.start, i = this.original.slice(0, e), n = this.original.slice(e);
54
+ this.original = i;
55
+ const r = new g(t, this.end, n);
56
+ return r.outro = this.outro, this.outro = "", this.end = t, this.edited ? (r.edit("", !1), this.content = "") : this.content = i, r.next = this.next, r.next && (r.next.previous = r), r.previous = this, this.next = r, r;
57
+ }
58
+ toString() {
59
+ return this.intro + this.content + this.outro;
60
+ }
61
+ trimEnd(t) {
62
+ if (this.outro = this.outro.replace(t, ""), this.outro.length) return !0;
63
+ const e = this.content.replace(t, "");
64
+ if (e.length)
65
+ return e !== this.content && (this.split(this.start + e.length).edit("", void 0, !0), this.edited && this.edit(e, this.storeName, !0)), !0;
66
+ if (this.edit("", void 0, !0), this.intro = this.intro.replace(t, ""), this.intro.length) return !0;
67
+ }
68
+ trimStart(t) {
69
+ if (this.intro = this.intro.replace(t, ""), this.intro.length) return !0;
70
+ const e = this.content.replace(t, "");
71
+ if (e.length) {
72
+ if (e !== this.content) {
73
+ const i = this.split(this.end - e.length);
74
+ this.edited && i.edit(e, this.storeName, !0), this.edit("", void 0, !0);
75
+ }
76
+ return !0;
77
+ } else if (this.edit("", void 0, !0), this.outro = this.outro.replace(t, ""), this.outro.length) return !0;
78
+ }
79
+ }
80
+ function C() {
81
+ return typeof globalThis < "u" && typeof globalThis.btoa == "function" ? (u) => globalThis.btoa(unescape(encodeURIComponent(u))) : typeof Buffer == "function" ? (u) => Buffer.from(u, "utf-8").toString("base64") : () => {
82
+ throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
83
+ };
84
+ }
85
+ const S = /* @__PURE__ */ C();
86
+ class y {
87
+ constructor(t) {
88
+ this.version = 3, this.file = t.file, this.sources = t.sources, this.sourcesContent = t.sourcesContent, this.names = t.names, this.mappings = b.encode(t.mappings), typeof t.x_google_ignoreList < "u" && (this.x_google_ignoreList = t.x_google_ignoreList), typeof t.debugId < "u" && (this.debugId = t.debugId);
89
+ }
90
+ toString() {
91
+ return JSON.stringify(this);
92
+ }
93
+ toUrl() {
94
+ return "data:application/json;charset=utf-8;base64," + S(this.toString());
95
+ }
96
+ }
97
+ function v(u) {
98
+ const t = u.split(`
99
+ `), e = t.filter((r) => /^\t+/.test(r)), i = t.filter((r) => /^ {2,}/.test(r));
100
+ if (e.length === 0 && i.length === 0)
101
+ return null;
102
+ if (e.length >= i.length)
103
+ return " ";
104
+ const n = i.reduce((r, s) => {
105
+ const h = /^ +/.exec(s)[0].length;
106
+ return Math.min(h, r);
107
+ }, 1 / 0);
108
+ return new Array(n + 1).join(" ");
109
+ }
110
+ function E(u, t) {
111
+ const e = u.split(/[/\\]/), i = t.split(/[/\\]/);
112
+ for (e.pop(); e[0] === i[0]; )
113
+ e.shift(), i.shift();
114
+ if (e.length) {
115
+ let n = e.length;
116
+ for (; n--; ) e[n] = "..";
117
+ }
118
+ return e.concat(i).join("/");
119
+ }
120
+ const x = Object.prototype.toString;
121
+ function k(u) {
122
+ return x.call(u) === "[object Object]";
123
+ }
124
+ function w(u) {
125
+ const t = u.split(`
126
+ `), e = [];
127
+ for (let i = 0, n = 0; i < t.length; i++)
128
+ e.push(n), n += t[i].length + 1;
129
+ return function(n) {
130
+ let r = 0, s = e.length;
131
+ for (; r < s; ) {
132
+ const l = r + s >> 1;
133
+ n < e[l] ? s = l : r = l + 1;
134
+ }
135
+ const h = r - 1, o = n - e[h];
136
+ return { line: h, column: o };
137
+ };
138
+ }
139
+ const L = /\w/;
140
+ class R {
141
+ constructor(t) {
142
+ this.hires = t, this.generatedCodeLine = 0, this.generatedCodeColumn = 0, this.raw = [], this.rawSegments = this.raw[this.generatedCodeLine] = [], this.pending = null;
143
+ }
144
+ addEdit(t, e, i, n) {
145
+ if (e.length) {
146
+ const r = e.length - 1;
147
+ let s = e.indexOf(`
148
+ `, 0), h = -1;
149
+ for (; s >= 0 && r > s; ) {
150
+ const l = [this.generatedCodeColumn, t, i.line, i.column];
151
+ n >= 0 && l.push(n), this.rawSegments.push(l), this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, h = s, s = e.indexOf(`
152
+ `, s + 1);
153
+ }
154
+ const o = [this.generatedCodeColumn, t, i.line, i.column];
155
+ n >= 0 && o.push(n), this.rawSegments.push(o), this.advance(e.slice(h + 1));
156
+ } else this.pending && (this.rawSegments.push(this.pending), this.advance(e));
157
+ this.pending = null;
158
+ }
159
+ addUneditedChunk(t, e, i, n, r) {
160
+ let s = e.start, h = !0, o = !1;
161
+ for (; s < e.end; ) {
162
+ if (i[s] === `
163
+ `)
164
+ n.line += 1, n.column = 0, this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, h = !0, o = !1;
165
+ else {
166
+ if (this.hires || h || r.has(s)) {
167
+ const l = [this.generatedCodeColumn, t, n.line, n.column];
168
+ this.hires === "boundary" ? L.test(i[s]) ? o || (this.rawSegments.push(l), o = !0) : (this.rawSegments.push(l), o = !1) : this.rawSegments.push(l);
169
+ }
170
+ n.column += 1, this.generatedCodeColumn += 1, h = !1;
171
+ }
172
+ s += 1;
173
+ }
174
+ this.pending = null;
175
+ }
176
+ advance(t) {
177
+ if (!t) return;
178
+ const e = t.split(`
179
+ `);
180
+ if (e.length > 1) {
181
+ for (let i = 0; i < e.length - 1; i++)
182
+ this.generatedCodeLine++, this.raw[this.generatedCodeLine] = this.rawSegments = [];
183
+ this.generatedCodeColumn = 0;
184
+ }
185
+ this.generatedCodeColumn += e[e.length - 1].length;
186
+ }
187
+ }
188
+ const c = `
189
+ `, a = {
190
+ insertLeft: !1,
191
+ insertRight: !1,
192
+ storeName: !1
193
+ };
194
+ class m {
195
+ constructor(t, e = {}) {
196
+ const i = new g(0, t.length, t);
197
+ Object.defineProperties(this, {
198
+ original: { writable: !0, value: t },
199
+ outro: { writable: !0, value: "" },
200
+ intro: { writable: !0, value: "" },
201
+ firstChunk: { writable: !0, value: i },
202
+ lastChunk: { writable: !0, value: i },
203
+ lastSearchedChunk: { writable: !0, value: i },
204
+ byStart: { writable: !0, value: {} },
205
+ byEnd: { writable: !0, value: {} },
206
+ filename: { writable: !0, value: e.filename },
207
+ indentExclusionRanges: { writable: !0, value: e.indentExclusionRanges },
208
+ sourcemapLocations: { writable: !0, value: new d() },
209
+ storedNames: { writable: !0, value: {} },
210
+ indentStr: { writable: !0, value: void 0 },
211
+ ignoreList: { writable: !0, value: e.ignoreList },
212
+ offset: { writable: !0, value: e.offset || 0 }
213
+ }), this.byStart[0] = i, this.byEnd[t.length] = i;
214
+ }
215
+ addSourcemapLocation(t) {
216
+ this.sourcemapLocations.add(t);
217
+ }
218
+ append(t) {
219
+ if (typeof t != "string") throw new TypeError("outro content must be a string");
220
+ return this.outro += t, this;
221
+ }
222
+ appendLeft(t, e) {
223
+ if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
224
+ this._split(t);
225
+ const i = this.byEnd[t];
226
+ return i ? i.appendLeft(e) : this.intro += e, this;
227
+ }
228
+ appendRight(t, e) {
229
+ if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
230
+ this._split(t);
231
+ const i = this.byStart[t];
232
+ return i ? i.appendRight(e) : this.outro += e, this;
233
+ }
234
+ clone() {
235
+ const t = new m(this.original, { filename: this.filename, offset: this.offset });
236
+ let e = this.firstChunk, i = t.firstChunk = t.lastSearchedChunk = e.clone();
237
+ for (; e; ) {
238
+ t.byStart[i.start] = i, t.byEnd[i.end] = i;
239
+ const n = e.next, r = n && n.clone();
240
+ r && (i.next = r, r.previous = i, i = r), e = n;
241
+ }
242
+ return t.lastChunk = i, this.indentExclusionRanges && (t.indentExclusionRanges = this.indentExclusionRanges.slice()), t.sourcemapLocations = new d(this.sourcemapLocations), t.intro = this.intro, t.outro = this.outro, t;
243
+ }
244
+ generateDecodedMap(t) {
245
+ t = t || {};
246
+ const e = 0, i = Object.keys(this.storedNames), n = new R(t.hires), r = w(this.original);
247
+ return this.intro && n.advance(this.intro), this.firstChunk.eachNext((s) => {
248
+ const h = r(s.start);
249
+ s.intro.length && n.advance(s.intro), s.edited ? n.addEdit(
250
+ e,
251
+ s.content,
252
+ h,
253
+ s.storeName ? i.indexOf(s.original) : -1
254
+ ) : n.addUneditedChunk(e, s, this.original, h, this.sourcemapLocations), s.outro.length && n.advance(s.outro);
255
+ }), {
256
+ file: t.file ? t.file.split(/[/\\]/).pop() : void 0,
257
+ sources: [
258
+ t.source ? E(t.file || "", t.source) : t.file || ""
259
+ ],
260
+ sourcesContent: t.includeContent ? [this.original] : void 0,
261
+ names: i,
262
+ mappings: n.raw,
263
+ x_google_ignoreList: this.ignoreList ? [e] : void 0
264
+ };
265
+ }
266
+ generateMap(t) {
267
+ return new y(this.generateDecodedMap(t));
268
+ }
269
+ _ensureindentStr() {
270
+ this.indentStr === void 0 && (this.indentStr = v(this.original));
271
+ }
272
+ _getRawIndentString() {
273
+ return this._ensureindentStr(), this.indentStr;
274
+ }
275
+ getIndentString() {
276
+ return this._ensureindentStr(), this.indentStr === null ? " " : this.indentStr;
277
+ }
278
+ indent(t, e) {
279
+ const i = /^[^\r\n]/gm;
280
+ if (k(t) && (e = t, t = void 0), t === void 0 && (this._ensureindentStr(), t = this.indentStr || " "), t === "") return this;
281
+ e = e || {};
282
+ const n = {};
283
+ e.exclude && (typeof e.exclude[0] == "number" ? [e.exclude] : e.exclude).forEach((f) => {
284
+ for (let p = f[0]; p < f[1]; p += 1)
285
+ n[p] = !0;
286
+ });
287
+ let r = e.indentStart !== !1;
288
+ const s = (l) => r ? `${t}${l}` : (r = !0, l);
289
+ this.intro = this.intro.replace(i, s);
290
+ let h = 0, o = this.firstChunk;
291
+ for (; o; ) {
292
+ const l = o.end;
293
+ if (o.edited)
294
+ n[h] || (o.content = o.content.replace(i, s), o.content.length && (r = o.content[o.content.length - 1] === `
295
+ `));
296
+ else
297
+ for (h = o.start; h < l; ) {
298
+ if (!n[h]) {
299
+ const f = this.original[h];
300
+ f === `
301
+ ` ? r = !0 : f !== "\r" && r && (r = !1, h === o.start || (this._splitChunk(o, h), o = o.next), o.prependRight(t));
302
+ }
303
+ h += 1;
304
+ }
305
+ h = o.end, o = o.next;
306
+ }
307
+ return this.outro = this.outro.replace(i, s), this;
308
+ }
309
+ insert() {
310
+ throw new Error(
311
+ "magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)"
312
+ );
313
+ }
314
+ insertLeft(t, e) {
315
+ return a.insertLeft || (console.warn(
316
+ "magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"
317
+ ), a.insertLeft = !0), this.appendLeft(t, e);
318
+ }
319
+ insertRight(t, e) {
320
+ return a.insertRight || (console.warn(
321
+ "magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"
322
+ ), a.insertRight = !0), this.prependRight(t, e);
323
+ }
324
+ move(t, e, i) {
325
+ if (t = t + this.offset, e = e + this.offset, i = i + this.offset, i >= t && i <= e) throw new Error("Cannot move a selection inside itself");
326
+ this._split(t), this._split(e), this._split(i);
327
+ const n = this.byStart[t], r = this.byEnd[e], s = n.previous, h = r.next, o = this.byStart[i];
328
+ if (!o && r === this.lastChunk) return this;
329
+ const l = o ? o.previous : this.lastChunk;
330
+ return s && (s.next = h), h && (h.previous = s), l && (l.next = n), o && (o.previous = r), n.previous || (this.firstChunk = r.next), r.next || (this.lastChunk = n.previous, this.lastChunk.next = null), n.previous = l, r.next = o || null, l || (this.firstChunk = n), o || (this.lastChunk = r), this;
331
+ }
332
+ overwrite(t, e, i, n) {
333
+ return n = n || {}, this.update(t, e, i, { ...n, overwrite: !n.contentOnly });
334
+ }
335
+ update(t, e, i, n) {
336
+ if (t = t + this.offset, e = e + this.offset, typeof i != "string") throw new TypeError("replacement content must be a string");
337
+ if (this.original.length !== 0) {
338
+ for (; t < 0; ) t += this.original.length;
339
+ for (; e < 0; ) e += this.original.length;
340
+ }
341
+ if (e > this.original.length) throw new Error("end is out of bounds");
342
+ if (t === e)
343
+ throw new Error(
344
+ "Cannot overwrite a zero-length range – use appendLeft or prependRight instead"
345
+ );
346
+ this._split(t), this._split(e), n === !0 && (a.storeName || (console.warn(
347
+ "The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"
348
+ ), a.storeName = !0), n = { storeName: !0 });
349
+ const r = n !== void 0 ? n.storeName : !1, s = n !== void 0 ? n.overwrite : !1;
350
+ if (r) {
351
+ const l = this.original.slice(t, e);
352
+ Object.defineProperty(this.storedNames, l, {
353
+ writable: !0,
354
+ value: !0,
355
+ enumerable: !0
356
+ });
357
+ }
358
+ const h = this.byStart[t], o = this.byEnd[e];
359
+ if (h) {
360
+ let l = h;
361
+ for (; l !== o; ) {
362
+ if (l.next !== this.byStart[l.end])
363
+ throw new Error("Cannot overwrite across a split point");
364
+ l = l.next, l.edit("", !1);
365
+ }
366
+ h.edit(i, r, !s);
367
+ } else {
368
+ const l = new g(t, e, "").edit(i, r);
369
+ o.next = l, l.previous = o;
370
+ }
371
+ return this;
372
+ }
373
+ prepend(t) {
374
+ if (typeof t != "string") throw new TypeError("outro content must be a string");
375
+ return this.intro = t + this.intro, this;
376
+ }
377
+ prependLeft(t, e) {
378
+ if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
379
+ this._split(t);
380
+ const i = this.byEnd[t];
381
+ return i ? i.prependLeft(e) : this.intro = e + this.intro, this;
382
+ }
383
+ prependRight(t, e) {
384
+ if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
385
+ this._split(t);
386
+ const i = this.byStart[t];
387
+ return i ? i.prependRight(e) : this.outro = e + this.outro, this;
388
+ }
389
+ remove(t, e) {
390
+ if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
391
+ for (; t < 0; ) t += this.original.length;
392
+ for (; e < 0; ) e += this.original.length;
393
+ }
394
+ if (t === e) return this;
395
+ if (t < 0 || e > this.original.length) throw new Error("Character is out of bounds");
396
+ if (t > e) throw new Error("end must be greater than start");
397
+ this._split(t), this._split(e);
398
+ let i = this.byStart[t];
399
+ for (; i; )
400
+ i.intro = "", i.outro = "", i.edit(""), i = e > i.end ? this.byStart[i.end] : null;
401
+ return this;
402
+ }
403
+ reset(t, e) {
404
+ if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
405
+ for (; t < 0; ) t += this.original.length;
406
+ for (; e < 0; ) e += this.original.length;
407
+ }
408
+ if (t === e) return this;
409
+ if (t < 0 || e > this.original.length) throw new Error("Character is out of bounds");
410
+ if (t > e) throw new Error("end must be greater than start");
411
+ this._split(t), this._split(e);
412
+ let i = this.byStart[t];
413
+ for (; i; )
414
+ i.reset(), i = e > i.end ? this.byStart[i.end] : null;
415
+ return this;
416
+ }
417
+ lastChar() {
418
+ if (this.outro.length) return this.outro[this.outro.length - 1];
419
+ let t = this.lastChunk;
420
+ do {
421
+ if (t.outro.length) return t.outro[t.outro.length - 1];
422
+ if (t.content.length) return t.content[t.content.length - 1];
423
+ if (t.intro.length) return t.intro[t.intro.length - 1];
424
+ } while (t = t.previous);
425
+ return this.intro.length ? this.intro[this.intro.length - 1] : "";
426
+ }
427
+ lastLine() {
428
+ let t = this.outro.lastIndexOf(c);
429
+ if (t !== -1) return this.outro.substr(t + 1);
430
+ let e = this.outro, i = this.lastChunk;
431
+ do {
432
+ if (i.outro.length > 0) {
433
+ if (t = i.outro.lastIndexOf(c), t !== -1) return i.outro.substr(t + 1) + e;
434
+ e = i.outro + e;
435
+ }
436
+ if (i.content.length > 0) {
437
+ if (t = i.content.lastIndexOf(c), t !== -1) return i.content.substr(t + 1) + e;
438
+ e = i.content + e;
439
+ }
440
+ if (i.intro.length > 0) {
441
+ if (t = i.intro.lastIndexOf(c), t !== -1) return i.intro.substr(t + 1) + e;
442
+ e = i.intro + e;
443
+ }
444
+ } while (i = i.previous);
445
+ return t = this.intro.lastIndexOf(c), t !== -1 ? this.intro.substr(t + 1) + e : this.intro + e;
446
+ }
447
+ slice(t = 0, e = this.original.length - this.offset) {
448
+ if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
449
+ for (; t < 0; ) t += this.original.length;
450
+ for (; e < 0; ) e += this.original.length;
451
+ }
452
+ let i = "", n = this.firstChunk;
453
+ for (; n && (n.start > t || n.end <= t); ) {
454
+ if (n.start < e && n.end >= e)
455
+ return i;
456
+ n = n.next;
457
+ }
458
+ if (n && n.edited && n.start !== t)
459
+ throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);
460
+ const r = n;
461
+ for (; n; ) {
462
+ n.intro && (r !== n || n.start === t) && (i += n.intro);
463
+ const s = n.start < e && n.end >= e;
464
+ if (s && n.edited && n.end !== e)
465
+ throw new Error(`Cannot use replaced character ${e} as slice end anchor.`);
466
+ const h = r === n ? t - n.start : 0, o = s ? n.content.length + e - n.end : n.content.length;
467
+ if (i += n.content.slice(h, o), n.outro && (!s || n.end === e) && (i += n.outro), s)
468
+ break;
469
+ n = n.next;
470
+ }
471
+ return i;
472
+ }
473
+ // TODO deprecate this? not really very useful
474
+ snip(t, e) {
475
+ const i = this.clone();
476
+ return i.remove(0, t), i.remove(e, i.original.length), i;
477
+ }
478
+ _split(t) {
479
+ if (this.byStart[t] || this.byEnd[t]) return;
480
+ let e = this.lastSearchedChunk;
481
+ const i = t > e.end;
482
+ for (; e; ) {
483
+ if (e.contains(t)) return this._splitChunk(e, t);
484
+ e = i ? this.byStart[e.end] : this.byEnd[e.start];
485
+ }
486
+ }
487
+ _splitChunk(t, e) {
488
+ if (t.edited && t.content.length) {
489
+ const n = w(this.original)(e);
490
+ throw new Error(
491
+ `Cannot split a chunk that has already been edited (${n.line}:${n.column} – "${t.original}")`
492
+ );
493
+ }
494
+ const i = t.split(e);
495
+ return this.byEnd[e] = t, this.byStart[e] = i, this.byEnd[i.end] = i, t === this.lastChunk && (this.lastChunk = i), this.lastSearchedChunk = t, !0;
496
+ }
497
+ toString() {
498
+ let t = this.intro, e = this.firstChunk;
499
+ for (; e; )
500
+ t += e.toString(), e = e.next;
501
+ return t + this.outro;
502
+ }
503
+ isEmpty() {
504
+ let t = this.firstChunk;
505
+ do
506
+ if (t.intro.length && t.intro.trim() || t.content.length && t.content.trim() || t.outro.length && t.outro.trim())
507
+ return !1;
508
+ while (t = t.next);
509
+ return !0;
510
+ }
511
+ length() {
512
+ let t = this.firstChunk, e = 0;
513
+ do
514
+ e += t.intro.length + t.content.length + t.outro.length;
515
+ while (t = t.next);
516
+ return e;
517
+ }
518
+ trimLines() {
519
+ return this.trim("[\\r\\n]");
520
+ }
521
+ trim(t) {
522
+ return this.trimStart(t).trimEnd(t);
523
+ }
524
+ trimEndAborted(t) {
525
+ const e = new RegExp((t || "\\s") + "+$");
526
+ if (this.outro = this.outro.replace(e, ""), this.outro.length) return !0;
527
+ let i = this.lastChunk;
528
+ do {
529
+ const n = i.end, r = i.trimEnd(e);
530
+ if (i.end !== n && (this.lastChunk === i && (this.lastChunk = i.next), this.byEnd[i.end] = i, this.byStart[i.next.start] = i.next, this.byEnd[i.next.end] = i.next), r) return !0;
531
+ i = i.previous;
532
+ } while (i);
533
+ return !1;
534
+ }
535
+ trimEnd(t) {
536
+ return this.trimEndAborted(t), this;
537
+ }
538
+ trimStartAborted(t) {
539
+ const e = new RegExp("^" + (t || "\\s") + "+");
540
+ if (this.intro = this.intro.replace(e, ""), this.intro.length) return !0;
541
+ let i = this.firstChunk;
542
+ do {
543
+ const n = i.end, r = i.trimStart(e);
544
+ if (i.end !== n && (i === this.lastChunk && (this.lastChunk = i.next), this.byEnd[i.end] = i, this.byStart[i.next.start] = i.next, this.byEnd[i.next.end] = i.next), r) return !0;
545
+ i = i.next;
546
+ } while (i);
547
+ return !1;
548
+ }
549
+ trimStart(t) {
550
+ return this.trimStartAborted(t), this;
551
+ }
552
+ hasChanged() {
553
+ return this.original !== this.toString();
554
+ }
555
+ _replaceRegexp(t, e) {
556
+ function i(r, s) {
557
+ return typeof e == "string" ? e.replace(/\$(\$|&|\d+)/g, (h, o) => o === "$" ? "$" : o === "&" ? r[0] : +o < r.length ? r[+o] : `$${o}`) : e(...r, r.index, s, r.groups);
558
+ }
559
+ function n(r, s) {
560
+ let h;
561
+ const o = [];
562
+ for (; h = r.exec(s); )
563
+ o.push(h);
564
+ return o;
565
+ }
566
+ if (t.global)
567
+ n(t, this.original).forEach((s) => {
568
+ if (s.index != null) {
569
+ const h = i(s, this.original);
570
+ h !== s[0] && this.overwrite(s.index, s.index + s[0].length, h);
571
+ }
572
+ });
573
+ else {
574
+ const r = this.original.match(t);
575
+ if (r && r.index != null) {
576
+ const s = i(r, this.original);
577
+ s !== r[0] && this.overwrite(r.index, r.index + r[0].length, s);
578
+ }
579
+ }
580
+ return this;
581
+ }
582
+ _replaceString(t, e) {
583
+ const { original: i } = this, n = i.indexOf(t);
584
+ return n !== -1 && this.overwrite(n, n + t.length, e), this;
585
+ }
586
+ replace(t, e) {
587
+ return typeof t == "string" ? this._replaceString(t, e) : this._replaceRegexp(t, e);
588
+ }
589
+ _replaceAllString(t, e) {
590
+ const { original: i } = this, n = t.length;
591
+ for (let r = i.indexOf(t); r !== -1; r = i.indexOf(t, r + n))
592
+ i.slice(r, r + n) !== e && this.overwrite(r, r + n, e);
593
+ return this;
594
+ }
595
+ replaceAll(t, e) {
596
+ if (typeof t == "string")
597
+ return this._replaceAllString(t, e);
598
+ if (!t.global)
599
+ throw new TypeError(
600
+ "MagicString.prototype.replaceAll called with a non-global RegExp argument"
601
+ );
602
+ return this._replaceRegexp(t, e);
603
+ }
604
+ }
605
+ export {
606
+ y as SourceMap,
607
+ m as default
608
+ };
@@ -0,0 +1,85 @@
1
+ var o, d;
2
+ function w() {
3
+ if (d) return o;
4
+ d = 1;
5
+ var n = 1e3, t = n * 60, c = t * 60, a = c * 24, f = a * 7, h = a * 365.25;
6
+ o = function(e, r) {
7
+ r = r || {};
8
+ var s = typeof e;
9
+ if (s === "string" && e.length > 0)
10
+ return m(e);
11
+ if (s === "number" && isFinite(e))
12
+ return r.long ? l(e) : y(e);
13
+ throw new Error(
14
+ "val is not a non-empty string or a valid number. val=" + JSON.stringify(e)
15
+ );
16
+ };
17
+ function m(e) {
18
+ if (e = String(e), !(e.length > 100)) {
19
+ var r = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
20
+ e
21
+ );
22
+ if (r) {
23
+ var s = parseFloat(r[1]), i = (r[2] || "ms").toLowerCase();
24
+ switch (i) {
25
+ case "years":
26
+ case "year":
27
+ case "yrs":
28
+ case "yr":
29
+ case "y":
30
+ return s * h;
31
+ case "weeks":
32
+ case "week":
33
+ case "w":
34
+ return s * f;
35
+ case "days":
36
+ case "day":
37
+ case "d":
38
+ return s * a;
39
+ case "hours":
40
+ case "hour":
41
+ case "hrs":
42
+ case "hr":
43
+ case "h":
44
+ return s * c;
45
+ case "minutes":
46
+ case "minute":
47
+ case "mins":
48
+ case "min":
49
+ case "m":
50
+ return s * t;
51
+ case "seconds":
52
+ case "second":
53
+ case "secs":
54
+ case "sec":
55
+ case "s":
56
+ return s * n;
57
+ case "milliseconds":
58
+ case "millisecond":
59
+ case "msecs":
60
+ case "msec":
61
+ case "ms":
62
+ return s;
63
+ default:
64
+ return;
65
+ }
66
+ }
67
+ }
68
+ }
69
+ function y(e) {
70
+ var r = Math.abs(e);
71
+ return r >= a ? Math.round(e / a) + "d" : r >= c ? Math.round(e / c) + "h" : r >= t ? Math.round(e / t) + "m" : r >= n ? Math.round(e / n) + "s" : e + "ms";
72
+ }
73
+ function l(e) {
74
+ var r = Math.abs(e);
75
+ return r >= a ? u(e, r, a, "day") : r >= c ? u(e, r, c, "hour") : r >= t ? u(e, r, t, "minute") : r >= n ? u(e, r, n, "second") : e + " ms";
76
+ }
77
+ function u(e, r, s, i) {
78
+ var v = r >= s * 1.5;
79
+ return Math.round(e / s) + " " + i + (v ? "s" : "");
80
+ }
81
+ return o;
82
+ }
83
+ export {
84
+ w as __require
85
+ };