@septkit/ui 0.0.42 → 0.0.44
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.
- package/dist/code/code-block.js +7 -0
- package/dist/code/code-block.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/code/diff.js +35 -0
- package/dist/code/highlight.js +30 -0
- package/dist/code/index.js +5 -0
- package/dist/code/xml-diff.js +5 -0
- package/dist/code/xml-diff.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/dialecte/composables/index.js +2 -1
- package/dist/dialecte/composables/use-active-document.js +24 -0
- package/dist/dialecte/create-document-store.js +3 -3
- package/dist/dialecte/index.js +2 -1
- package/dist/dialog/dialog-host.js +5 -0
- package/dist/dialog/dialog-host.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/dialog/dialog.js +5 -0
- package/dist/dialog/dialog.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/dialog/index.js +4 -0
- package/dist/dialog/use-dialog-host.js +32 -0
- package/dist/external/.pnpm/@dialecte_core@0.4.6/node_modules/@dialecte/core/dist/helpers.js +142 -0
- package/dist/external/.pnpm/@dialecte_core@0.4.6/node_modules/@dialecte/core/dist/index.js +3 -0
- package/dist/external/.pnpm/{@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/project-E32sEthh.js → @dialecte_core@0.4.6/node_modules/@dialecte/core/dist/project-wohrish5.js} +3352 -1170
- package/dist/external/.pnpm/{@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/utils-DgKwrT2n.js → @dialecte_core@0.4.6/node_modules/@dialecte/core/dist/utils-C5_11hqg.js} +73 -3
- package/dist/external/.pnpm/@dialecte_scl@0.3.5/node_modules/@dialecte/scl/dist/hooks-abaf9148.js +25264 -0
- package/dist/external/.pnpm/@dialecte_scl@0.3.5/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -0
- 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
- 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
- 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
- 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
- package/dist/external/.pnpm/@shikijs_core@3.23.0/node_modules/@shikijs/core/dist/index.js +1299 -0
- package/dist/external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/engine-compile.js +34 -0
- package/dist/external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.js +66 -0
- package/dist/external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/java.js +3 -0
- package/dist/external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/xml.js +5 -0
- package/dist/external/.pnpm/@shikijs_themes@3.23.0/node_modules/@shikijs/themes/dist/github-dark.js +4 -0
- package/dist/external/.pnpm/@shikijs_types@3.23.0/node_modules/@shikijs/types/dist/index.js +8 -0
- package/dist/external/.pnpm/@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js +1576 -0
- 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
- 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
- package/dist/external/.pnpm/ccount@2.0.1/node_modules/ccount/index.js +10 -0
- package/dist/external/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.js +257 -0
- package/dist/external/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js +4 -0
- package/dist/external/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +7 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js +11 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js +6 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js +49 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js +28 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js +7 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js +6 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js +8 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js +48 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js +86 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js +10 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js +39 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js +13 -0
- package/dist/external/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/external/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +25 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/node-utils.js +23 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/parse.js +419 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +487 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/traverser/traverse.js +84 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/utils.js +30 -0
- package/dist/external/.pnpm/oniguruma-to-es@4.3.6/node_modules/oniguruma-to-es/dist/esm/index.js +970 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/index.js +25 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/aria.js +61 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/find.js +31 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/html.js +326 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/svg.js +564 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/create.js +14 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/defined-info.js +18 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/info.js +9 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/merge.js +9 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/schema.js +9 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/types.js +16 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xml.js +15 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xmlns.js +14 -0
- package/dist/external/.pnpm/regex-recursion@6.0.2/node_modules/regex-recursion/src/index.js +110 -0
- package/dist/external/.pnpm/regex-utilities@2.3.0/node_modules/regex-utilities/src/index.js +56 -0
- package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/atomic.js +94 -0
- package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/internals.js +2 -0
- package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/utils-internals.js +10 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/external/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.js +13 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js +23 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js +8 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js +14 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js +8 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js +8 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.js +17 -0
- package/dist/external/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +16 -0
- package/dist/index.d.ts +396 -21
- package/dist/index.js +24 -8
- package/dist/merge/build-view-model.js +168 -0
- package/dist/merge/decision-toggle.js +5 -0
- package/dist/merge/decision-toggle.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/merge/element-detail.js +5 -0
- package/dist/merge/element-detail.vue_vue_type_script_setup_true_lang.js +53 -0
- package/dist/merge/index.js +6 -0
- package/dist/merge/merge-progress.js +5 -0
- package/dist/merge/merge-progress.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/merge/merge-review.js +5 -0
- package/dist/merge/merge-review.vue_vue_type_script_setup_true_lang.js +305 -0
- package/dist/merge/merge-summary.js +5 -0
- package/dist/merge/merge-summary.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/merge/merge-tree.js +5 -0
- package/dist/merge/merge-tree.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/merge/merge.service.js +69 -0
- package/dist/merge/use-document-progress.js +27 -0
- package/dist/merge/use-merge-session.js +151 -0
- package/dist/ui.css +1 -1
- package/package.json +4 -2
- package/dist/external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/helpers.js +0 -13
- 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,
|
|
2
|
-
import { computed as
|
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
11
|
-
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n =
|
|
12
|
-
let t =
|
|
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
|
|
16
|
-
n.value?.map((e) =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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 =
|
|
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
|
|
29
|
-
let e =
|
|
30
|
-
return t &&
|
|
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
|
-
|
|
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
|
|
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 =
|
|
41
|
-
return
|
|
42
|
-
e.repeat &&
|
|
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
|
|
46
|
-
let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ??
|
|
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 =
|
|
49
|
-
s && (
|
|
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 ===
|
|
60
|
+
return i === g && (u.value = e, p.value = !0), o(e), e;
|
|
54
61
|
} catch (e) {
|
|
55
|
-
if (i ===
|
|
62
|
+
if (i === g && (h.value = e), a(e), l) throw e;
|
|
56
63
|
} finally {
|
|
57
|
-
i ===
|
|
64
|
+
i === g && (m.value = !1);
|
|
58
65
|
}
|
|
59
66
|
}
|
|
60
67
|
r && v(i);
|
|
61
68
|
let y = {
|
|
62
|
-
state:
|
|
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
|
-
|
|
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
|
|
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
|
|
167
|
+
function W(e, t, n, r = {}) {
|
|
85
168
|
var i, a;
|
|
86
|
-
let { clone: o = !1, passive:
|
|
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) :
|
|
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 (
|
|
92
|
-
let n =
|
|
93
|
-
return
|
|
94
|
-
r || (r = !0, n.value = g(e),
|
|
95
|
-
}),
|
|
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
|
|
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 {
|
|
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,
|
|
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
|
|
3
|
+
function f(e, t) {
|
|
4
4
|
return r() ? (s(e, t), !0) : !1;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
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
|
|
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
|
|
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
|
|
27
|
+
var h = typeof window < "u" && typeof document < "u";
|
|
28
28
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
29
|
-
var
|
|
30
|
-
function
|
|
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
|
|
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
|
|
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
|
|
47
|
-
let n, r, i =
|
|
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
|
|
52
|
-
return n && a(n),
|
|
53
|
-
i = t.rejectOnCancel ?
|
|
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
|
-
},
|
|
55
|
+
}, l)), n = setTimeout(() => {
|
|
56
56
|
r && a(r), r = void 0, e(s());
|
|
57
|
-
},
|
|
57
|
+
}, c);
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function
|
|
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
|
|
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
|
|
79
|
+
function D(e) {
|
|
70
80
|
return e || n();
|
|
71
81
|
}
|
|
72
|
-
function
|
|
73
|
-
if (!
|
|
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))),
|
|
87
|
+
return ((...o) => (n += 1, i || (i = t(!0), r = i.run(() => e(...o))), f(a), r));
|
|
78
88
|
}
|
|
79
|
-
function
|
|
89
|
+
function k(t, n = 1e4) {
|
|
80
90
|
return e((e, r) => {
|
|
81
|
-
let i =
|
|
82
|
-
i =
|
|
83
|
-
},
|
|
84
|
-
return
|
|
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
|
|
97
|
-
return
|
|
106
|
+
function A(e, t = 200, n = {}) {
|
|
107
|
+
return S(C(t, n), e);
|
|
98
108
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
109
|
+
function j(e, t) {
|
|
110
|
+
D(t) && o(e, t);
|
|
101
111
|
}
|
|
102
|
-
function
|
|
112
|
+
function M(e, t = !1) {
|
|
103
113
|
function n(n, { flush: r = "sync", deep: i = !1, timeout: o, throwOnTimeout: s } = {}) {
|
|
104
|
-
let
|
|
105
|
-
|
|
106
|
-
n(e) !== t && (
|
|
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 &&
|
|
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:
|
|
118
|
-
p =
|
|
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:
|
|
132
|
+
deep: c,
|
|
123
133
|
immediate: !0
|
|
124
134
|
});
|
|
125
135
|
})];
|
|
126
|
-
return
|
|
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
|
|
144
|
+
function c(e) {
|
|
135
145
|
return r(void 0, e);
|
|
136
146
|
}
|
|
137
|
-
function
|
|
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(
|
|
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(
|
|
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
|
|
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:
|
|
167
|
-
toBeUndefined:
|
|
176
|
+
toBeNaN: l,
|
|
177
|
+
toBeUndefined: c,
|
|
168
178
|
changed: p,
|
|
169
179
|
changedTimes: m,
|
|
170
180
|
get not() {
|
|
171
|
-
return
|
|
181
|
+
return M(e, !t);
|
|
172
182
|
}
|
|
173
183
|
};
|
|
174
184
|
}
|
|
175
|
-
function
|
|
176
|
-
return
|
|
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
|
|
179
|
-
return
|
|
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 {
|
|
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 };
|