bitboss-ui 2.0.4 → 2.0.5
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/index105.js +5 -5
- package/dist/index113.js +1 -1
- package/dist/index115.js +4 -4
- package/dist/index117.js +1 -1
- package/dist/index12.js +1 -1
- package/dist/index121.js +1 -1
- package/dist/index122.js +1 -1
- package/dist/index123.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index127.js +2 -2
- package/dist/index14.js +3 -3
- package/dist/index16.js +2 -2
- package/dist/index18.js +14 -14
- package/dist/index197.js +81 -2
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +3 -158
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -84
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +15 -15
- package/dist/{index209.js → index200.js} +3 -3
- package/dist/{index209.js.map → index200.js.map} +1 -1
- package/dist/index201.js +16 -2
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +19 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +19 -2
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +27 -81
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +3 -126
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -5
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +8 -123
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +249 -19
- package/dist/index208.js.map +1 -1
- package/dist/index210.js +51 -15
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +37 -2
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +5 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +41 -35
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -174
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +4 -6
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +2 -42
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +5 -0
- package/dist/index217.js.map +1 -0
- package/dist/index218.js +41 -12
- package/dist/index218.js.map +1 -1
- package/dist/index22.js +5 -5
- package/dist/index220.js +13 -369
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +158 -8
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +84 -3
- package/dist/index222.js.map +1 -1
- package/dist/index224.js +3 -19
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +34 -26
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +6 -3
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +7 -249
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +129 -0
- package/dist/index228.js.map +1 -0
- package/dist/index229.js +122 -51
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +2 -37
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +174 -5
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +5 -41
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +369 -3
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +3 -2
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +18 -3
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +105 -17
- package/dist/index236.js.map +1 -1
- package/dist/{index239.js → index238.js} +2 -2
- package/dist/{index239.js.map → index238.js.map} +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +5 -0
- package/dist/index240.js.map +1 -0
- package/dist/index243.js +224 -4
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +281 -6
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +6 -16
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +2 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -23
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -3
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +2 -12
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +2 -9
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -9
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +3 -17
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +2 -281
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +2 -6
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +2 -2
- package/dist/index256.js +28 -2
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +22 -2
- package/dist/index257.js.map +1 -1
- package/dist/index259.js +7 -2
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +3 -3
- package/dist/index260.js +4 -126
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +7 -429
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +23 -3
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +6 -0
- package/dist/index263.js.map +1 -0
- package/dist/index265.js +5 -21
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +19 -0
- package/dist/index266.js.map +1 -0
- package/dist/index268.js +3 -200
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +11 -435
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +7 -125
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +9 -89
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +17 -2
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +431 -2
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +89 -3
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +2 -2
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +69 -2
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +5 -2
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +197 -25
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +2 -22
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.js +129 -0
- package/dist/index280.js.map +1 -0
- package/dist/index281.js +22 -2
- package/dist/index281.js.map +1 -1
- package/dist/index283.js +434 -67
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +121 -218
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +1 -1
- package/dist/index286.js +1 -1
- package/dist/index287.js +1 -1
- package/dist/index290.js +7 -4
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +19 -4
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +6 -58
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +4 -11
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +4 -35
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +58 -6
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +34 -18
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +10 -6
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +1 -1
- package/dist/index30.js +2 -2
- package/dist/index32.js +3 -3
- package/dist/index34.js +13 -13
- package/dist/index36.js +4 -4
- package/dist/index38.js +2 -2
- package/dist/index40.js +2 -2
- package/dist/index42.js +6 -6
- package/dist/index44.js +2 -2
- package/dist/index46.js +2 -2
- package/dist/index52.js +1 -1
- package/dist/index54.js +1 -1
- package/dist/index70.js +4 -4
- package/dist/index74.js +2 -2
- package/dist/index76.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index83.js +3 -3
- package/dist/index85.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index219.js +0 -8
- package/dist/index219.js.map +0 -1
- package/dist/index223.js +0 -10
- package/dist/index223.js.map +0 -1
- package/dist/index237.js +0 -109
- package/dist/index237.js.map +0 -1
- package/dist/index258.js +0 -5
- package/dist/index258.js.map +0 -1
- package/dist/index264.js +0 -10
- package/dist/index264.js.map +0 -1
- package/dist/index282.js +0 -8
- package/dist/index282.js.map +0 -1
package/package.json
CHANGED
package/dist/index219.js
DELETED
package/dist/index219.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index219.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index223.js
DELETED
package/dist/index223.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index223.js","sources":["../src/composables/useModalsState.ts"],"sourcesContent":["import { ref } from 'vue';\n\nconst openedModals = ref(0);\n\nconst modalHasOpened = () => {\n\topenedModals.value++;\n};\n\nconst modalHasClosed = () => {\n\topenedModals.value--;\n};\nexport const useModalsState = () => {\n\treturn { openedModals, modalHasOpened, modalHasClosed };\n};\n"],"names":["openedModals","ref","modalHasOpened","modalHasClosed","useModalsState"],"mappings":";AAEA,MAAMA,IAAeC,EAAI,CAAC,GAEpBC,IAAiB,MAAM;AACf,EAAAF,EAAA;AACd,GAEMG,IAAiB,MAAM;AACf,EAAAH,EAAA;AACd,GACaI,IAAiB,OACtB,EAAE,cAAAJ,GAAc,gBAAAE,GAAgB,gBAAAC;"}
|
package/dist/index237.js
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, ref as F, computed as H, watch as N, openBlock as p, createElementBlock as L, Fragment as S, renderList as V, createBlock as A, normalizeClass as O, withModifiers as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
|
|
2
|
-
import { hash as d } from "./index226.js";
|
|
3
|
-
import { isNil as l } from "./index124.js";
|
|
4
|
-
import E from "./index119.js";
|
|
5
|
-
/* empty css */
|
|
6
|
-
const K = /* @__PURE__ */ y({
|
|
7
|
-
__name: "ChipsBox",
|
|
8
|
-
props: {
|
|
9
|
-
options: {}
|
|
10
|
-
},
|
|
11
|
-
emits: ["option:unselected"],
|
|
12
|
-
setup(f, { expose: v, emit: h }) {
|
|
13
|
-
const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
|
|
14
|
-
const s = l(n.value) ? -1 : n.value;
|
|
15
|
-
let o = (s + e) % t.options.length;
|
|
16
|
-
for (; t.options[o].disabled && o !== s; )
|
|
17
|
-
o = a(e + 1);
|
|
18
|
-
return o;
|
|
19
|
-
}, x = () => {
|
|
20
|
-
if (!i.value) return;
|
|
21
|
-
const e = a();
|
|
22
|
-
n.value = e;
|
|
23
|
-
}, c = (e = 1) => {
|
|
24
|
-
const s = l(n.value) ? 0 : n.value;
|
|
25
|
-
let o = (s - e + t.options.length) % t.options.length;
|
|
26
|
-
for (; t.options[o].disabled && o !== s; )
|
|
27
|
-
o = c(e + 1);
|
|
28
|
-
return o;
|
|
29
|
-
}, m = async () => {
|
|
30
|
-
if (!i.value) return;
|
|
31
|
-
const e = c();
|
|
32
|
-
n.value = e;
|
|
33
|
-
}, w = () => {
|
|
34
|
-
if (!i.value) return;
|
|
35
|
-
let e = 0;
|
|
36
|
-
for (; t.options[e].disabled; )
|
|
37
|
-
e++;
|
|
38
|
-
n.value = e;
|
|
39
|
-
}, b = () => {
|
|
40
|
-
if (!i.value) return;
|
|
41
|
-
let e = t.options.length - 1;
|
|
42
|
-
for (; t.options[e].disabled && e !== 0; )
|
|
43
|
-
e--;
|
|
44
|
-
n.value = e;
|
|
45
|
-
}, I = () => {
|
|
46
|
-
if (!i.value) return;
|
|
47
|
-
let e = 0;
|
|
48
|
-
for (; !t.options[e].selected && t.options.length !== e; )
|
|
49
|
-
e++;
|
|
50
|
-
n.value = e;
|
|
51
|
-
}, g = () => {
|
|
52
|
-
if (!i.value) return;
|
|
53
|
-
let e = t.options.length - 1;
|
|
54
|
-
for (; t.options[e].selected && e !== 0; )
|
|
55
|
-
e--;
|
|
56
|
-
n.value = e;
|
|
57
|
-
}, _ = (e) => {
|
|
58
|
-
if (!i.value) return;
|
|
59
|
-
const s = t.options.findIndex(
|
|
60
|
-
(o) => o.valueHash === e
|
|
61
|
-
);
|
|
62
|
-
s >= 0 && (n.value = s);
|
|
63
|
-
}, r = () => {
|
|
64
|
-
n.value = null;
|
|
65
|
-
}, k = () => {
|
|
66
|
-
if (l(n.value)) return;
|
|
67
|
-
const e = t.options[n.value];
|
|
68
|
-
e.selected && u("option:unselected", e);
|
|
69
|
-
}, C = () => l(n.value) ? void 0 : t.options[n.value];
|
|
70
|
-
return N(
|
|
71
|
-
() => t.options,
|
|
72
|
-
(e, s) => {
|
|
73
|
-
d(e) !== d(s) && r();
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
flush: "post"
|
|
77
|
-
}
|
|
78
|
-
), v({
|
|
79
|
-
focusNext: x,
|
|
80
|
-
focusPrevious: m,
|
|
81
|
-
focusFirst: w,
|
|
82
|
-
focusFirstSelected: I,
|
|
83
|
-
focusLast: b,
|
|
84
|
-
focusLastSelected: g,
|
|
85
|
-
blur: r,
|
|
86
|
-
confirmOption: k,
|
|
87
|
-
focusByHash: _,
|
|
88
|
-
getHighlighted: C
|
|
89
|
-
}), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
|
|
90
|
-
key: o.valueHash,
|
|
91
|
-
class: O({
|
|
92
|
-
"bb-chipsbox-item": !0,
|
|
93
|
-
"bb-chipsbox-item--focused": B === n.value
|
|
94
|
-
}),
|
|
95
|
-
clearable: !0,
|
|
96
|
-
text: o.text,
|
|
97
|
-
"onClick:clear": P((M) => u("option:unselected", o), ["stop"])
|
|
98
|
-
}, {
|
|
99
|
-
default: $(() => [
|
|
100
|
-
z(D(o.text), 1)
|
|
101
|
-
]),
|
|
102
|
-
_: 2
|
|
103
|
-
}, 1032, ["class", "text", "onClick:clear"]))), 128));
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
export {
|
|
107
|
-
K as default
|
|
108
|
-
};
|
|
109
|
-
//# sourceMappingURL=index237.js.map
|
package/dist/index237.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index237.js","sources":["../src/components/ChipsBox.vue"],"sourcesContent":["<template>\n\t<BbChip\n\t\tv-for=\"(item, index) in options\"\n\t\t:key=\"item.valueHash\"\n\t\t:class=\"{\n\t\t\t'bb-chipsbox-item': true,\n\t\t\t'bb-chipsbox-item--focused': index === focusedIndex,\n\t\t}\"\n\t\t:clearable=\"true\"\n\t\t:text=\"item.text\"\n\t\t@click:clear.stop=\"emit('option:unselected', item)\"\n\t\t>{{ item.text }}</BbChip\n\t>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { hash } from '@/utilities/functions/hash';\nimport { isNil } from '@/utilities/functions/isNil';\nimport { ref } from 'vue';\nimport { watch } from 'vue';\nimport BbChip from './BbChip/BbChip.vue';\nimport type { Option } from '@/types/Option';\n\ntype Props = {\n\toptions: Option[];\n};\nconst props = defineProps<Props>();\n\nconst emit = defineEmits<{\n\t(e: 'option:unselected', option: Option): void;\n}>();\n\n/**\n * START FOCUS HANDLING\n */\n\nconst focusedIndex = ref<null | number>(null);\n\nconst canFocus = computed(() => props.options.some((o) => !o.disabled));\n\nconst findNextAvailableIndex = (offset = 1) => {\n\tconst initialValue = isNil(focusedIndex.value) ? -1 : focusedIndex.value!;\n\tlet newIndex = (initialValue + offset) % props.options.length;\n\twhile (props.options[newIndex].disabled && newIndex !== initialValue) {\n\t\tnewIndex = findNextAvailableIndex(offset + 1);\n\t}\n\treturn newIndex;\n};\n\nconst focusNext = () => {\n\tif (!canFocus.value) return;\n\tconst newIndex = findNextAvailableIndex();\n\tfocusedIndex.value = newIndex;\n};\nconst findPreviousAvailableIndex = (offset = 1) => {\n\tconst initialValue = isNil(focusedIndex.value) ? 0 : focusedIndex.value!;\n\tlet newIndex =\n\t\t(initialValue - offset + props.options.length) % props.options.length;\n\twhile (props.options[newIndex].disabled && newIndex !== initialValue) {\n\t\tnewIndex = findPreviousAvailableIndex(offset + 1);\n\t}\n\treturn newIndex;\n};\nconst focusPrevious = async () => {\n\tif (!canFocus.value) return;\n\tconst newIndex = findPreviousAvailableIndex();\n\tfocusedIndex.value = newIndex;\n};\n\nconst focusFirst = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = 0;\n\twhile (props.options[newIndex].disabled) {\n\t\tnewIndex++;\n\t}\n\tfocusedIndex.value = newIndex;\n};\n\nconst focusLast = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = props.options.length - 1;\n\twhile (props.options[newIndex].disabled && newIndex !== 0) {\n\t\tnewIndex--;\n\t}\n\tfocusedIndex.value = newIndex;\n};\nconst focusFirstSelected = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = 0;\n\twhile (\n\t\t!props.options[newIndex].selected &&\n\t\tprops.options.length !== newIndex\n\t) {\n\t\tnewIndex++;\n\t}\n\tfocusedIndex.value = newIndex;\n};\nconst focusLastSelected = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = props.options.length - 1;\n\twhile (props.options[newIndex].selected && newIndex !== 0) {\n\t\tnewIndex--;\n\t}\n\tfocusedIndex.value = newIndex;\n};\n\nconst focusByHash = (hash: Option['valueHash']) => {\n\tif (!canFocus.value) return;\n\tconst linkedOptionIndex = props.options.findIndex(\n\t\t(o) => o.valueHash === hash\n\t);\n\tif (linkedOptionIndex >= 0) {\n\t\tfocusedIndex.value = linkedOptionIndex;\n\t}\n};\n\nconst blur = () => {\n\tfocusedIndex.value = null;\n};\n\n/**\n * END FOCUS HANDLING\n */\n\nconst confirmOption = () => {\n\tif (isNil(focusedIndex.value)) return;\n\tconst option = props.options[focusedIndex.value!];\n\tif (option.selected) {\n\t\temit('option:unselected', option);\n\t}\n};\n\nconst getHighlighted = () => {\n\tif (isNil(focusedIndex.value)) return;\n\tconst option = props.options[focusedIndex.value!];\n\treturn option;\n};\n\nwatch(\n\t() => props.options,\n\t(value, previous) => {\n\t\tif (hash(value) !== hash(previous)) {\n\t\t\tblur();\n\t\t}\n\t},\n\t{\n\t\tflush: 'post',\n\t}\n);\n\ndefineExpose({\n\tfocusNext,\n\tfocusPrevious,\n\tfocusFirst,\n\tfocusFirstSelected,\n\tfocusLast,\n\tfocusLastSelected,\n\tblur,\n\tconfirmOption,\n\tfocusByHash,\n\tgetHighlighted,\n});\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/ChipsBox';\n</style>\n"],"names":["props","__props","emit","__emit","focusedIndex","ref","canFocus","computed","o","findNextAvailableIndex","offset","initialValue","isNil","newIndex","focusNext","findPreviousAvailableIndex","focusPrevious","focusFirst","focusLast","focusFirstSelected","focusLastSelected","focusByHash","hash","linkedOptionIndex","blur","confirmOption","option","getHighlighted","watch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,YAAAC;AAAA,MACA,oBAAAE;AAAA,MACA,WAAAD;AAAA,MACA,mBAAAE;AAAA,MACA,MAAAI;AAAA,MACA,eAAAC;AAAA,MACA,aAAAJ;AAAA,MACA,gBAAAM;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;"}
|
package/dist/index258.js
DELETED
package/dist/index258.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index258.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index264.js
DELETED
package/dist/index264.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index264.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/index282.js
DELETED
package/dist/index282.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index282.js","sources":["../src/utilities/functions/flattenTree.ts"],"sourcesContent":["export const flattenTree = <T extends Record<string, any>, U>(\n\titems: T[],\n\tkeyName: keyof T,\n\tmapper: (item: T, parent?: U) => U = (x: any) => x,\n\tparent?: ReturnType<typeof mapper>\n): ReturnType<typeof mapper>[] => {\n\treturn items\n\t\t.map((item) => {\n\t\t\tif (Array.isArray(item[keyName])) {\n\t\t\t\treturn [\n\t\t\t\t\tmapper(item, parent),\n\t\t\t\t\t...flattenTree(item[keyName], keyName, mapper, mapper(item, parent)),\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn [mapper(item, parent)];\n\t\t})\n\t\t.flat();\n};\n"],"names":["flattenTree","items","keyName","mapper","x","parent","item"],"mappings":"AAAa,MAAAA,IAAc,CAC1BC,GACAC,GACAC,IAAqC,CAACC,MAAWA,GACjDC,MAEOJ,EACL,IAAI,CAACK,MACD,MAAM,QAAQA,EAAKJ,CAAO,CAAC,IACvB;AAAA,EACNC,EAAOG,GAAMD,CAAM;AAAA,EACnB,GAAGL,EAAYM,EAAKJ,CAAO,GAAGA,GAASC,GAAQA,EAAOG,GAAMD,CAAM,CAAC;AAAA,IAG9D,CAACF,EAAOG,GAAMD,CAAM,CAAC,CAC5B,EACA,KAAK;"}
|