@septkit/ui 0.0.41 → 0.0.43

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 (158) hide show
  1. package/dist/code/code-block.js +7 -0
  2. package/dist/code/code-block.vue_vue_type_script_setup_true_lang.js +63 -0
  3. package/dist/code/diff.js +35 -0
  4. package/dist/code/highlight.js +30 -0
  5. package/dist/code/index.js +5 -0
  6. package/dist/code/xml-diff.js +5 -0
  7. package/dist/code/xml-diff.vue_vue_type_script_setup_true_lang.js +33 -0
  8. package/dist/dialecte/composables/index.js +2 -1
  9. package/dist/dialecte/composables/use-active-document.js +24 -0
  10. package/dist/dialecte/create-document-store.js +3 -3
  11. package/dist/dialecte/index.js +2 -1
  12. package/dist/dialog/dialog-host.js +5 -0
  13. package/dist/dialog/dialog-host.vue_vue_type_script_setup_true_lang.js +33 -0
  14. package/dist/dialog/dialog.js +5 -0
  15. package/dist/dialog/dialog.vue_vue_type_script_setup_true_lang.js +72 -0
  16. package/dist/dialog/index.js +4 -0
  17. package/dist/dialog/use-dialog-host.js +32 -0
  18. package/dist/explorer/collect-expandable-node-ids.js +8 -0
  19. package/dist/explorer/explorer.js +1 -1
  20. package/dist/explorer/explorer.vue_vue_type_script_setup_true_lang.js +47 -33
  21. package/dist/explorer/index.js +3 -2
  22. package/dist/external/.pnpm/@dialecte_core@0.4.5/node_modules/@dialecte/core/dist/helpers.js +142 -0
  23. package/dist/external/.pnpm/@dialecte_core@0.4.5/node_modules/@dialecte/core/dist/index.js +3 -0
  24. package/dist/external/.pnpm/{@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/project-E32sEthh.js → @dialecte_core@0.4.5/node_modules/@dialecte/core/dist/project-wohrish5.js} +3352 -1170
  25. package/dist/external/.pnpm/{@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/utils-DgKwrT2n.js → @dialecte_core@0.4.5/node_modules/@dialecte/core/dist/utils-C5_11hqg.js} +73 -3
  26. package/dist/external/.pnpm/@dialecte_scl@0.3.3/node_modules/@dialecte/scl/dist/hooks-BTkrNj6r.js +25264 -0
  27. package/dist/external/.pnpm/@dialecte_scl@0.3.3/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -0
  28. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/arrow-right.js +11 -0
  29. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/copy.js +16 -0
  30. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/text-wrap.js +22 -0
  31. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/x.js +11 -0
  32. package/dist/external/.pnpm/@shikijs_core@3.23.0/node_modules/@shikijs/core/dist/index.js +1299 -0
  33. package/dist/external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/engine-compile.js +34 -0
  34. package/dist/external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.js +66 -0
  35. package/dist/external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/java.js +3 -0
  36. package/dist/external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/xml.js +5 -0
  37. package/dist/external/.pnpm/@shikijs_themes@3.23.0/node_modules/@shikijs/themes/dist/github-dark.js +4 -0
  38. package/dist/external/.pnpm/@shikijs_types@3.23.0/node_modules/@shikijs/types/dist/index.js +8 -0
  39. package/dist/external/.pnpm/@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js +1576 -0
  40. package/dist/external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +126 -43
  41. package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +84 -55
  42. package/dist/external/.pnpm/ccount@2.0.1/node_modules/ccount/index.js +10 -0
  43. package/dist/external/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.js +257 -0
  44. package/dist/external/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js +4 -0
  45. package/dist/external/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +7 -0
  46. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js +11 -0
  47. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js +6 -0
  48. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js +49 -0
  49. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js +28 -0
  50. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js +7 -0
  51. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js +6 -0
  52. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js +8 -0
  53. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js +48 -0
  54. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js +86 -0
  55. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js +10 -0
  56. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js +39 -0
  57. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js +13 -0
  58. package/dist/external/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js +10 -0
  59. package/dist/external/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +25 -0
  60. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/node-utils.js +23 -0
  61. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/parse.js +419 -0
  62. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +487 -0
  63. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/traverser/traverse.js +84 -0
  64. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/utils.js +30 -0
  65. package/dist/external/.pnpm/oniguruma-to-es@4.3.6/node_modules/oniguruma-to-es/dist/esm/index.js +970 -0
  66. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/index.js +25 -0
  67. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/aria.js +61 -0
  68. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/find.js +31 -0
  69. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/html.js +326 -0
  70. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/normalize.js +6 -0
  71. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/svg.js +564 -0
  72. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  73. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  74. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/create.js +14 -0
  75. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/defined-info.js +18 -0
  76. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/info.js +9 -0
  77. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/merge.js +9 -0
  78. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/schema.js +9 -0
  79. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/types.js +16 -0
  80. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xlink.js +19 -0
  81. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xml.js +15 -0
  82. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xmlns.js +14 -0
  83. package/dist/external/.pnpm/regex-recursion@6.0.2/node_modules/regex-recursion/src/index.js +110 -0
  84. package/dist/external/.pnpm/regex-utilities@2.3.0/node_modules/regex-utilities/src/index.js +56 -0
  85. package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/atomic.js +94 -0
  86. package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/internals.js +2 -0
  87. package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/utils-internals.js +10 -0
  88. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContent.js +72 -0
  89. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentImpl.js +101 -0
  90. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentModal.js +83 -0
  91. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentNonModal.js +74 -0
  92. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogOverlay.js +48 -0
  93. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogOverlayImpl.js +47 -0
  94. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogPortal.js +33 -0
  95. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogRoot.js +61 -0
  96. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogTitle.js +28 -0
  97. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/utils.js +17 -0
  98. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Menu/utils.js +16 -0
  99. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterGroup.js +384 -0
  100. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterPanel.js +136 -0
  101. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterResizeHandle.js +119 -0
  102. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperIndicator.js +27 -0
  103. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperItem.js +67 -0
  104. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.js +136 -0
  105. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTitle.js +28 -0
  106. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/composables/useWindowSplitterBehavior.js +37 -0
  107. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/composables/useWindowSplitterPanelGroupBehavior.js +82 -0
  108. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/arrays.js +7 -2
  109. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/browser.js +4 -0
  110. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/assert.js +6 -0
  111. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/calculate.js +73 -0
  112. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/callPanelCallbacks.js +19 -0
  113. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/compare.js +11 -0
  114. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/debounce.js +11 -0
  115. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/dom.js +20 -0
  116. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/events.js +33 -0
  117. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/layout.js +103 -0
  118. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/pivot.js +8 -0
  119. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/rects.js +6 -0
  120. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/registry.js +106 -0
  121. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/resizePanel.js +15 -0
  122. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/stackingOrder.js +57 -0
  123. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/storage.js +50 -0
  124. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/style.js +35 -0
  125. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/units.js +57 -0
  126. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/validation.js +39 -0
  127. package/dist/external/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +6 -0
  128. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.js +13 -0
  129. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js +23 -0
  130. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js +8 -0
  131. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js +14 -0
  132. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js +8 -0
  133. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js +8 -0
  134. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.js +17 -0
  135. package/dist/external/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +16 -0
  136. package/dist/index.d.ts +422 -4
  137. package/dist/index.js +24 -7
  138. package/dist/merge/build-view-model.js +168 -0
  139. package/dist/merge/decision-toggle.js +5 -0
  140. package/dist/merge/decision-toggle.vue_vue_type_script_setup_true_lang.js +40 -0
  141. package/dist/merge/element-detail.js +5 -0
  142. package/dist/merge/element-detail.vue_vue_type_script_setup_true_lang.js +53 -0
  143. package/dist/merge/index.js +6 -0
  144. package/dist/merge/merge-progress.js +5 -0
  145. package/dist/merge/merge-progress.vue_vue_type_script_setup_true_lang.js +31 -0
  146. package/dist/merge/merge-review.js +5 -0
  147. package/dist/merge/merge-review.vue_vue_type_script_setup_true_lang.js +305 -0
  148. package/dist/merge/merge-summary.js +5 -0
  149. package/dist/merge/merge-summary.vue_vue_type_script_setup_true_lang.js +76 -0
  150. package/dist/merge/merge-tree.js +5 -0
  151. package/dist/merge/merge-tree.vue_vue_type_script_setup_true_lang.js +86 -0
  152. package/dist/merge/merge.service.js +69 -0
  153. package/dist/merge/use-document-progress.js +27 -0
  154. package/dist/merge/use-merge-session.js +151 -0
  155. package/dist/ui.css +1 -1
  156. package/package.json +4 -2
  157. package/dist/external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/helpers.js +0 -13
  158. package/dist/external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/index.js +0 -3
@@ -1,65 +1,72 @@
1
- import { createEventHook as e, createFilterWrapper as t, createGlobalState as n, createSharedComposable as r, debounceFilter as i, getLifeCycleTarget as a, isClient as o, isDef as s, isIOS as c, isObject as l, noop as u, promiseTimeout as d, refAutoReset as f, toArray as p, tryOnBeforeUnmount as m, tryOnScopeDispose as h, until as g, useDebounceFn as _, watchImmediate as v } from "../../../../../@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
2
- import { computed as y, getCurrentInstance as b, nextTick as x, onMounted as S, ref as C, shallowRef as w, toValue as T, unref as E, watch as D } from "vue";
1
+ import { createEventHook as e, createFilterWrapper as t, createGlobalState as n, createSharedComposable as r, createSingletonPromise as i, debounceFilter as a, getLifeCycleTarget as o, isClient as s, isDef as c, isIOS as l, isObject as u, noop as d, promiseTimeout as f, refAutoReset as p, toArray as m, tryOnBeforeUnmount as h, tryOnScopeDispose as g, until as _, useDebounceFn as v, useTimeoutFn as y, watchImmediate as b } from "../../../../../@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
2
+ import { computed as x, getCurrentInstance as S, nextTick as C, onMounted as w, ref as T, shallowReadonly as E, shallowRef as D, toRaw as O, toValue as k, unref as A, watch as j } from "vue";
3
3
  //#region node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js
4
- var O = o ? window : void 0;
5
- o && window.document, o && window.navigator, o && window.location;
6
- function k(e) {
7
- let t = T(e);
4
+ var M = s ? window : void 0;
5
+ s && window.document;
6
+ var N = s ? window.navigator : void 0;
7
+ s && window.location;
8
+ function P(e) {
9
+ let t = k(e);
8
10
  return t?.$el ?? t;
9
11
  }
10
- function A(...e) {
11
- let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = y(() => {
12
- let t = p(T(e[0])).filter((e) => e != null);
12
+ function F(...e) {
13
+ let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = x(() => {
14
+ let t = m(k(e[0])).filter((e) => e != null);
13
15
  return t.every((e) => typeof e != "string") ? t : void 0;
14
16
  });
15
- return v(() => [
16
- n.value?.map((e) => k(e)) ?? [O].filter((e) => e != null),
17
- p(T(n.value ? e[1] : e[0])),
18
- p(E(n.value ? e[2] : e[1])),
19
- T(n.value ? e[3] : e[2])
17
+ return b(() => [
18
+ n.value?.map((e) => P(e)) ?? [M].filter((e) => e != null),
19
+ m(k(n.value ? e[1] : e[0])),
20
+ m(A(n.value ? e[2] : e[1])),
21
+ k(n.value ? e[3] : e[2])
20
22
  ], ([e, n, r, i], a, o) => {
21
23
  if (!e?.length || !n?.length || !r?.length) return;
22
- let s = l(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
24
+ let s = u(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
23
25
  o(() => {
24
26
  c.forEach((e) => e());
25
27
  });
26
28
  }, { flush: "post" });
27
29
  }
28
- function j() {
29
- let e = w(!1), t = b();
30
- return t && S(() => {
30
+ function I() {
31
+ let e = D(!1), t = S();
32
+ return t && w(() => {
31
33
  e.value = !0;
32
34
  }, t), e;
33
35
  }
34
- function M(e) {
36
+ /* @__NO_SIDE_EFFECTS__ */
37
+ function L(e) {
38
+ let t = I();
39
+ return x(() => (t.value, !!e()));
40
+ }
41
+ function R(e) {
35
42
  return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
36
43
  }
37
- function N(...e) {
44
+ function z(...e) {
38
45
  let t, n, r = {};
39
46
  e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
40
- let { target: i = O, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = M(t);
41
- return A(i, a, (e) => {
42
- e.repeat && T(s) || c(e) && n(e);
47
+ let { target: i = M, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = R(t);
48
+ return F(i, a, (e) => {
49
+ e.repeat && k(s) || c(e) && n(e);
43
50
  }, o);
44
51
  }
45
- function P(e, t, n) {
46
- let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? u, onSuccess: o = u, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, f = c ? w(t) : C(t), p = w(!1), m = w(!1), h = w(void 0), _ = 0;
52
+ function B(e, t, n) {
53
+ let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? d, onSuccess: o = d, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, u = c ? D(t) : T(t), p = D(!1), m = D(!1), h = D(void 0), g = 0;
47
54
  async function v(n = 0, ...r) {
48
- let i = _ += 1;
49
- s && (f.value = T(t)), h.value = void 0, p.value = !1, m.value = !0, n > 0 && await d(n);
55
+ let i = g += 1;
56
+ s && (u.value = k(t)), h.value = void 0, p.value = !1, m.value = !0, n > 0 && await f(n);
50
57
  let c = typeof e == "function" ? e(...r) : e;
51
58
  try {
52
59
  let e = await c;
53
- return i === _ && (f.value = e, p.value = !0), o(e), e;
60
+ return i === g && (u.value = e, p.value = !0), o(e), e;
54
61
  } catch (e) {
55
- if (i === _ && (h.value = e), a(e), l) throw e;
62
+ if (i === g && (h.value = e), a(e), l) throw e;
56
63
  } finally {
57
- i === _ && (m.value = !1);
64
+ i === g && (m.value = !1);
58
65
  }
59
66
  }
60
67
  r && v(i);
61
68
  let y = {
62
- state: f,
69
+ state: u,
63
70
  isReady: p,
64
71
  isLoading: m,
65
72
  error: h,
@@ -68,7 +75,7 @@ function P(e, t, n) {
68
75
  };
69
76
  function b() {
70
77
  return new Promise((e, t) => {
71
- g(m).toBe(!1).then(() => e(y)).catch(t);
78
+ _(m).toBe(!1).then(() => e(y)).catch(t);
72
79
  });
73
80
  }
74
81
  return {
@@ -78,24 +85,100 @@ function P(e, t, n) {
78
85
  }
79
86
  };
80
87
  }
81
- function F(e) {
88
+ function V(e, t = {}) {
89
+ let { controls: n = !1, navigator: r = N } = t, a = /* @__PURE__ */ L(() => r && "permissions" in r), o = D(), s = typeof e == "string" ? { name: e } : e, c = D(), l = () => {
90
+ c.value = o.value?.state ?? "prompt";
91
+ };
92
+ F(o, "change", l, { passive: !0 });
93
+ let u = i(async () => {
94
+ if (a.value) {
95
+ if (!o.value) try {
96
+ o.value = await r.permissions.query(s);
97
+ } catch {
98
+ o.value = void 0;
99
+ } finally {
100
+ l();
101
+ }
102
+ if (n) return O(o.value);
103
+ }
104
+ });
105
+ return u(), n ? {
106
+ state: c,
107
+ isSupported: a,
108
+ query: u
109
+ } : c;
110
+ }
111
+ function H(e = {}) {
112
+ let { navigator: t = N, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ L(() => t && "clipboard" in t), s = V("clipboard-read"), c = V("clipboard-write"), l = x(() => o.value || a), u = D(""), d = D(!1), f = D(!1), p = y(() => d.value = !1, i, { immediate: !1 }), m = 0;
113
+ async function h() {
114
+ let e = !(o.value && S(s.value));
115
+ if (!e) try {
116
+ u.value = await t.clipboard.readText();
117
+ } catch {
118
+ e = !0;
119
+ }
120
+ e && (u.value = b());
121
+ }
122
+ l.value && n && F(["copy", "cut"], h, { passive: !0 });
123
+ async function g(e) {
124
+ let n = e ?? k(r);
125
+ if (l.value && n != null) {
126
+ f.value = !0;
127
+ let e = !(o.value && S(c.value));
128
+ if (!e) try {
129
+ let e = _(n);
130
+ await t.clipboard.write([e]);
131
+ } catch {
132
+ e = !0;
133
+ }
134
+ if (e) if (typeof n == "string") u.value = n, v(n);
135
+ else {
136
+ let e = ++m, t = await n();
137
+ t != null && e === m && (u.value = t, v(t));
138
+ }
139
+ d.value = !0, p.start(), f.value = !1;
140
+ }
141
+ }
142
+ function _(e) {
143
+ return typeof e == "string" ? (u.value = e, new ClipboardItem({ "text/plain": e })) : new ClipboardItem({ "text/plain": e().then((e = "") => (u.value = e, new Blob([e], { type: "text/plain" }))) });
144
+ }
145
+ function v(e) {
146
+ let t = document.createElement("textarea");
147
+ t.value = e, t.style.position = "absolute", t.style.opacity = "0", t.setAttribute("readonly", ""), document.body.appendChild(t), t.select(), document.execCommand("copy"), t.remove();
148
+ }
149
+ function b() {
150
+ var e, t;
151
+ return ((e = document) == null || (t = e.getSelection) == null || (t = t.call(e)) == null ? void 0 : t.toString()) ?? "";
152
+ }
153
+ function S(e) {
154
+ return e === "granted" || e === "prompt";
155
+ }
156
+ return {
157
+ copyPending: E(f),
158
+ isSupported: l,
159
+ text: E(u),
160
+ copied: E(d),
161
+ copy: g
162
+ };
163
+ }
164
+ function U(e) {
82
165
  return JSON.parse(JSON.stringify(e));
83
166
  }
84
- function I(e, t, n, r = {}) {
167
+ function W(e, t, n, r = {}) {
85
168
  var i, a;
86
- let { clone: o = !1, passive: c = !1, eventName: l, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p = b(), m = n || p?.emit || (p == null || (i = p.$emit) == null ? void 0 : i.bind(p)) || (p == null || (a = p.proxy) == null || (a = a.$emit) == null ? void 0 : a.bind(p?.proxy)), h = l;
169
+ let { clone: o = !1, passive: s = !1, eventName: l, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p = S(), m = n || p?.emit || (p == null || (i = p.$emit) == null ? void 0 : i.bind(p)) || (p == null || (a = p.proxy) == null || (a = a.$emit) == null ? void 0 : a.bind(p?.proxy)), h = l;
87
170
  t ||= "modelValue", h ||= `update:${t.toString()}`;
88
- let g = (e) => o ? typeof o == "function" ? o(e) : F(e) : e, _ = () => s(e[t]) ? g(e[t]) : d, v = (e) => {
171
+ let g = (e) => o ? typeof o == "function" ? o(e) : U(e) : e, _ = () => c(e[t]) ? g(e[t]) : d, v = (e) => {
89
172
  f ? f(e) && m(h, e) : m(h, e);
90
173
  };
91
- if (c) {
92
- let n = C(_()), r = !1;
93
- return D(() => e[t], (e) => {
94
- r || (r = !0, n.value = g(e), x(() => r = !1));
95
- }), D(n, (n) => {
174
+ if (s) {
175
+ let n = T(_()), r = !1;
176
+ return j(() => e[t], (e) => {
177
+ r || (r = !0, n.value = g(e), C(() => r = !1));
178
+ }), j(n, (n) => {
96
179
  !r && (n !== e[t] || u) && v(n);
97
180
  }, { deep: u }), n;
98
- } else return y({
181
+ } else return x({
99
182
  get() {
100
183
  return _();
101
184
  },
@@ -105,4 +188,4 @@ function I(e, t, n, r = {}) {
105
188
  });
106
189
  }
107
190
  //#endregion
108
- export { F as cloneFnJSON, e as createEventHook, t as createFilterWrapper, n as createGlobalState, r as createSharedComposable, i as debounceFilter, O as defaultWindow, a as getLifeCycleTarget, o as isClient, s as isDef, c as isIOS, l as isObject, u as noop, N as onKeyStroke, d as promiseTimeout, f as refAutoReset, p as toArray, m as tryOnBeforeUnmount, h as tryOnScopeDispose, k as unrefElement, g as until, P as useAsyncState, _ as useDebounceFn, A as useEventListener, j as useMounted, I as useVModel, v as watchImmediate };
191
+ export { U as cloneFnJSON, e as createEventHook, t as createFilterWrapper, n as createGlobalState, r as createSharedComposable, i as createSingletonPromise, a as debounceFilter, N as defaultNavigator, M as defaultWindow, o as getLifeCycleTarget, s as isClient, c as isDef, l as isIOS, u as isObject, d as noop, z as onKeyStroke, f as promiseTimeout, p as refAutoReset, m as toArray, h as tryOnBeforeUnmount, g as tryOnScopeDispose, P as unrefElement, _ as until, B as useAsyncState, H as useClipboard, v as useDebounceFn, F as useEventListener, I as useMounted, V as usePermission, L as useSupported, y as useTimeoutFn, W as useVModel, b as watchImmediate };
@@ -1,9 +1,9 @@
1
- import { customRef as e, effectScope as t, getCurrentInstance as n, getCurrentScope as r, isRef as i, nextTick as a, onBeforeUnmount as o, onScopeDispose as s, toValue as c, watch as l } from "vue";
1
+ import { customRef as e, effectScope as t, getCurrentInstance as n, getCurrentScope as r, isRef as i, nextTick as a, onBeforeUnmount as o, onScopeDispose as s, shallowReadonly as c, shallowRef as l, toValue as u, watch as d } from "vue";
2
2
  //#region node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js
3
- function u(e, t) {
3
+ function f(e, t) {
4
4
  return r() ? (s(e, t), !0) : !1;
5
5
  }
6
- function d() {
6
+ function p() {
7
7
  let e = /* @__PURE__ */ new Set(), t = (t) => {
8
8
  e.delete(t);
9
9
  };
@@ -11,7 +11,7 @@ function d() {
11
11
  on: (n) => {
12
12
  e.add(n);
13
13
  let r = () => t(n);
14
- return u(r), { off: r };
14
+ return f(r), { off: r };
15
15
  },
16
16
  off: t,
17
17
  trigger: (...t) => Promise.all(Array.from(e).map((e) => e(...t))),
@@ -20,18 +20,18 @@ function d() {
20
20
  }
21
21
  };
22
22
  }
23
- function f(e) {
23
+ function m(e) {
24
24
  let n = !1, r, i = t(!0);
25
25
  return ((...t) => (n ||= (r = i.run(() => e(...t)), !0), r));
26
26
  }
27
- var p = typeof window < "u" && typeof document < "u";
27
+ var h = typeof window < "u" && typeof document < "u";
28
28
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
29
- var m = (e) => e !== void 0, h = Object.prototype.toString, g = (e) => h.call(e) === "[object Object]", _ = () => {}, v = /* @__PURE__ */ y();
30
- function y() {
29
+ var g = (e) => e !== void 0, _ = Object.prototype.toString, v = (e) => _.call(e) === "[object Object]", y = () => {}, b = /* @__PURE__ */ x();
30
+ function x() {
31
31
  var e, t;
32
- return p && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
32
+ return h && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
33
33
  }
34
- function b(e, t) {
34
+ function S(e, t) {
35
35
  function n(...n) {
36
36
  return new Promise((r, i) => {
37
37
  Promise.resolve(e(() => t.apply(this, n), {
@@ -43,45 +43,55 @@ function b(e, t) {
43
43
  }
44
44
  return n;
45
45
  }
46
- function x(e, t = {}) {
47
- let n, r, i = _, a = (e) => {
48
- clearTimeout(e), i(), i = _;
46
+ function C(e, t = {}) {
47
+ let n, r, i = y, a = (e) => {
48
+ clearTimeout(e), i(), i = y;
49
49
  }, o;
50
50
  return (s) => {
51
- let l = c(e), u = c(t.maxWait);
52
- return n && a(n), l <= 0 || u !== void 0 && u <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, c) => {
53
- i = t.rejectOnCancel ? c : e, o = s, u && !r && (r = setTimeout(() => {
51
+ let c = u(e), l = u(t.maxWait);
52
+ return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
53
+ i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
54
54
  n && a(n), r = void 0, e(o());
55
- }, u)), n = setTimeout(() => {
55
+ }, l)), n = setTimeout(() => {
56
56
  r && a(r), r = void 0, e(s());
57
- }, l);
57
+ }, c);
58
58
  });
59
59
  };
60
60
  }
61
- function S(e, t = !1, n = "Timeout") {
61
+ function w(e, t = !1, n = "Timeout") {
62
62
  return new Promise((r, i) => {
63
63
  t ? setTimeout(i, e, n) : setTimeout(r, e);
64
64
  });
65
65
  }
66
- function C(e) {
66
+ function T(e) {
67
+ let t;
68
+ function n() {
69
+ return t ||= e(), t;
70
+ }
71
+ return n.reset = async () => {
72
+ let e = t;
73
+ t = void 0, e && await e;
74
+ }, n;
75
+ }
76
+ function E(e) {
67
77
  return Array.isArray(e) ? e : [e];
68
78
  }
69
- function w(e) {
79
+ function D(e) {
70
80
  return e || n();
71
81
  }
72
- function T(e) {
73
- if (!p) return e;
82
+ function O(e) {
83
+ if (!h) return e;
74
84
  let n = 0, r, i, a = () => {
75
85
  --n, i && n <= 0 && (i.stop(), r = void 0, i = void 0);
76
86
  };
77
- return ((...o) => (n += 1, i || (i = t(!0), r = i.run(() => e(...o))), u(a), r));
87
+ return ((...o) => (n += 1, i || (i = t(!0), r = i.run(() => e(...o))), f(a), r));
78
88
  }
79
- function E(t, n = 1e4) {
89
+ function k(t, n = 1e4) {
80
90
  return e((e, r) => {
81
- let i = c(t), a, o = () => setTimeout(() => {
82
- i = c(t), r();
83
- }, c(n));
84
- return u(() => {
91
+ let i = u(t), a, o = () => setTimeout(() => {
92
+ i = u(t), r();
93
+ }, u(n));
94
+ return f(() => {
85
95
  clearTimeout(a);
86
96
  }), {
87
97
  get() {
@@ -93,37 +103,37 @@ function E(t, n = 1e4) {
93
103
  };
94
104
  });
95
105
  }
96
- function D(e, t = 200, n = {}) {
97
- return b(x(t, n), e);
106
+ function A(e, t = 200, n = {}) {
107
+ return S(C(t, n), e);
98
108
  }
99
- function O(e, t) {
100
- w(t) && o(e, t);
109
+ function j(e, t) {
110
+ D(t) && o(e, t);
101
111
  }
102
- function k(e, t = !1) {
112
+ function M(e, t = !1) {
103
113
  function n(n, { flush: r = "sync", deep: i = !1, timeout: o, throwOnTimeout: s } = {}) {
104
- let u = null, d = [new Promise((o) => {
105
- u = l(e, (e) => {
106
- n(e) !== t && (u ? u() : a(() => u?.()), o(e));
114
+ let c = null, l = [new Promise((o) => {
115
+ c = d(e, (e) => {
116
+ n(e) !== t && (c ? c() : a(() => c?.()), o(e));
107
117
  }, {
108
118
  flush: r,
109
119
  deep: i,
110
120
  immediate: !0
111
121
  });
112
122
  })];
113
- return o != null && d.push(S(o, s).then(() => c(e)).finally(() => u?.())), Promise.race(d);
123
+ return o != null && l.push(w(o, s).then(() => u(e)).finally(() => c?.())), Promise.race(l);
114
124
  }
115
125
  function r(r, o) {
116
126
  if (!i(r)) return n((e) => e === r, o);
117
- let { flush: s = "sync", deep: u = !1, timeout: d, throwOnTimeout: f } = o ?? {}, p = null, m = [new Promise((n) => {
118
- p = l([e, r], ([e, r]) => {
127
+ let { flush: s = "sync", deep: c = !1, timeout: l, throwOnTimeout: f } = o ?? {}, p = null, m = [new Promise((n) => {
128
+ p = d([e, r], ([e, r]) => {
119
129
  t !== (e === r) && (p ? p() : a(() => p?.()), n(e));
120
130
  }, {
121
131
  flush: s,
122
- deep: u,
132
+ deep: c,
123
133
  immediate: !0
124
134
  });
125
135
  })];
126
- return d != null && m.push(S(d, f).then(() => c(e)).finally(() => (p?.(), c(e)))), Promise.race(m);
136
+ return l != null && m.push(w(l, f).then(() => u(e)).finally(() => (p?.(), u(e)))), Promise.race(m);
127
137
  }
128
138
  function o(e) {
129
139
  return n((e) => !!e, e);
@@ -131,16 +141,16 @@ function k(e, t = !1) {
131
141
  function s(e) {
132
142
  return r(null, e);
133
143
  }
134
- function u(e) {
144
+ function c(e) {
135
145
  return r(void 0, e);
136
146
  }
137
- function d(e) {
147
+ function l(e) {
138
148
  return n(Number.isNaN, e);
139
149
  }
140
150
  function f(e, t) {
141
151
  return n((t) => {
142
152
  let n = Array.from(t);
143
- return n.includes(e) || n.includes(c(e));
153
+ return n.includes(e) || n.includes(u(e));
144
154
  }, t);
145
155
  }
146
156
  function p(e) {
@@ -150,36 +160,55 @@ function k(e, t = !1) {
150
160
  let r = -1;
151
161
  return n(() => (r += 1, r >= e), t);
152
162
  }
153
- return Array.isArray(c(e)) ? {
163
+ return Array.isArray(u(e)) ? {
154
164
  toMatch: n,
155
165
  toContains: f,
156
166
  changed: p,
157
167
  changedTimes: m,
158
168
  get not() {
159
- return k(e, !t);
169
+ return M(e, !t);
160
170
  }
161
171
  } : {
162
172
  toMatch: n,
163
173
  toBe: r,
164
174
  toBeTruthy: o,
165
175
  toBeNull: s,
166
- toBeNaN: d,
167
- toBeUndefined: u,
176
+ toBeNaN: l,
177
+ toBeUndefined: c,
168
178
  changed: p,
169
179
  changedTimes: m,
170
180
  get not() {
171
- return k(e, !t);
181
+ return M(e, !t);
172
182
  }
173
183
  };
174
184
  }
175
- function A(e) {
176
- return k(e);
185
+ function N(e) {
186
+ return M(e);
187
+ }
188
+ function P(e, t, n = {}) {
189
+ let { immediate: r = !0, immediateCallback: i = !1 } = n, a = l(!1), o;
190
+ function s() {
191
+ o &&= (clearTimeout(o), void 0);
192
+ }
193
+ function d() {
194
+ a.value = !1, s();
195
+ }
196
+ function p(...n) {
197
+ i && e(), s(), a.value = !0, o = setTimeout(() => {
198
+ a.value = !1, o = void 0, e(...n);
199
+ }, u(t));
200
+ }
201
+ return r && (a.value = !0, h && p()), f(d), {
202
+ isPending: c(a),
203
+ start: p,
204
+ stop: d
205
+ };
177
206
  }
178
- function j(e, t, n) {
179
- return l(e, t, {
207
+ function F(e, t, n) {
208
+ return d(e, t, {
180
209
  ...n,
181
210
  immediate: !0
182
211
  });
183
212
  }
184
213
  //#endregion
185
- export { d as createEventHook, b as createFilterWrapper, f as createGlobalState, T as createSharedComposable, x as debounceFilter, w as getLifeCycleTarget, p as isClient, m as isDef, v as isIOS, g as isObject, _ as noop, S as promiseTimeout, E as refAutoReset, C as toArray, O as tryOnBeforeUnmount, u as tryOnScopeDispose, A as until, D as useDebounceFn, j as watchImmediate };
214
+ export { p as createEventHook, S as createFilterWrapper, m as createGlobalState, O as createSharedComposable, T as createSingletonPromise, C as debounceFilter, D as getLifeCycleTarget, h as isClient, g as isDef, b as isIOS, v as isObject, y as noop, w as promiseTimeout, k as refAutoReset, E as toArray, j as tryOnBeforeUnmount, f as tryOnScopeDispose, N as until, A as useDebounceFn, P as useTimeoutFn, F as watchImmediate };
@@ -0,0 +1,10 @@
1
+ //#region node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js
2
+ function e(e, t) {
3
+ let n = String(e);
4
+ if (typeof t != "string") throw TypeError("Expected character");
5
+ let r = 0, i = n.indexOf(t);
6
+ for (; i !== -1;) r++, i = n.indexOf(t, i + t.length);
7
+ return r;
8
+ }
9
+ //#endregion
10
+ export { e as ccount };