@c2n/avatar 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +25 -0
- package/dist/avatar.js +106 -0
- package/package.json +60 -0
- package/types/src/avatar.d.ts +85 -0
- package/types/src/avatar.d.ts.map +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Nguyen Thai Vinh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @c2n/avatar
|
|
2
|
+
|
|
3
|
+
Avatar built with Lit: image, initials or any slotted content, with an optional status dot or badge.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install @c2n/avatar
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```html
|
|
10
|
+
<script type="module">
|
|
11
|
+
import '@c2n/avatar'
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<c2-avatar name="Ada Lovelace" initial-count="2"></c2-avatar>
|
|
15
|
+
<c2-avatar name="Ada Lovelace" src="/ada.jpg" status="online"></c2-avatar>
|
|
16
|
+
<c2-avatar name="Ada Lovelace" auto-color initial-count="2"></c2-avatar>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
- **Content resolution**: the `src` image first (a failed load fires `error` and falls back to the initials), then slotted content (an icon, an emoji, an `<img>`), then the initials computed from `name`. `initial-count="2"` uses the first and last word of a longer name; `initials` overrides the computation.
|
|
20
|
+
- **Colour**: `auto-color` derives a stable hue from the name, tunable with the `auto-color--saturation` and `--lightness` tokens.
|
|
21
|
+
- **Status and badge**: `status="online|away|busy|offline"` draws a dot in the bottom-right corner; the `badge` slot replaces it with your own element (a count, an icon) and gets the same ring.
|
|
22
|
+
- **Sizing**: one `--c2-avatar--size` token drives width, height and the font size (40% of the size by default); `--c2-avatar--width` and `--height` override it for non-square shapes.
|
|
23
|
+
- **Accessibility**: the avatar is `role="img"` labelled by `alt` or `name`.
|
|
24
|
+
|
|
25
|
+
Every visual aspect is a CSS custom property (`--c2-avatar--*`, `--c2-avatar__badge--*`, `--c2-avatar__image--*`). For stacked groups give each avatar `--c2-avatar--box-shadow: 0 0 0 2px <page background>` and a negative margin. The full list is in `custom-elements.json` and on the docs site.
|
package/dist/avatar.js
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { LitElement, html, nothing, unsafeCSS } from "lit";
|
|
2
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
3
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
4
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
//#region src/avatar.scss?inline
|
|
6
|
+
var avatar_default = "/* ex : var((width: 24px), width, c2-checkbox) returns var(--c2-checkbox-width, 24px) */\n:host {\n display: inline-flex;\n position: relative;\n vertical-align: middle;\n flex: none;\n}\n\n.c2-avatar {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n overflow: hidden;\n user-select: none;\n line-height: 1;\n width: var(--c2-avatar--width,var(--c2-avatar--size,32px));\n height: var(--c2-avatar--height,var(--c2-avatar--size,32px));\n font-size: var(--c2-avatar--font-size,calc(var(--c2-avatar--size, 32px) * 0.4));\n font-weight: var(--c2-avatar--font-weight,600);\n font-style: var(--c2-avatar--font-style);\n font-family: var(--c2-avatar--font-family);\n letter-spacing: var(--c2-avatar--letter-spacing,0.02em);\n border-top-left-radius: var(--c2-avatar--border-top-left-radius,999px);\n border-top-right-radius: var(--c2-avatar--border-top-right-radius,999px);\n border-bottom-left-radius: var(--c2-avatar--border-bottom-left-radius,999px);\n border-bottom-right-radius: var(--c2-avatar--border-bottom-right-radius,999px);\n border-top: var(--c2-avatar--border-top);\n border-bottom: var(--c2-avatar--border-bottom);\n border-right: var(--c2-avatar--border-right);\n border-left: var(--c2-avatar--border-left);\n background: var(--c2-avatar--background,rgb(0, 122, 77));\n color: var(--c2-avatar--color,#ffffff);\n box-shadow: var(--c2-avatar--box-shadow);\n}\n.c2-avatar ::slotted(svg),\n.c2-avatar ::slotted(img) {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: var(--c2-avatar__image--object-fit,cover);\n}\n.c2-avatar ::slotted(svg) {\n width: 60%;\n height: 60%;\n}\n\n:host([auto-color]) .c2-avatar {\n background: hsl(var(--c2-avatar--hue, 160), var(--c2-avatar__auto-color--saturation,55%), var(--c2-avatar__auto-color--lightness,42%));\n}\n\n.c2-avatar-image {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: var(--c2-avatar__image--object-fit,cover);\n}\n\n.c2-avatar-badge {\n position: absolute;\n right: calc(-1 * var(--c2-avatar__badge--offset,0px));\n bottom: calc(-1 * var(--c2-avatar__badge--offset,0px));\n display: flex;\n z-index: 1;\n line-height: 1;\n}\n.c2-avatar-badge::slotted(*) {\n box-sizing: border-box;\n border: var(--c2-avatar__badge--border,2px solid #ffffff);\n border-radius: 999px;\n}\n\n.c2-avatar-status {\n display: block;\n box-sizing: content-box;\n width: var(--c2-avatar__badge--size,10px);\n height: var(--c2-avatar__badge--size,10px);\n border: var(--c2-avatar__badge--border,2px solid #ffffff);\n border-radius: 999px;\n background: var(--c2-avatar__badge__offline--color,rgb(161, 161, 170));\n}\n\n:host([status=online]) .c2-avatar-status {\n background: var(--c2-avatar__badge__online--color,rgb(34, 197, 94));\n}\n\n:host([status=away]) .c2-avatar-status {\n background: var(--c2-avatar__badge__away--color,rgb(245, 158, 11));\n}\n\n:host([status=busy]) .c2-avatar-status {\n background: var(--c2-avatar__badge__busy--color,rgb(239, 68, 68));\n}";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/decorate.js
|
|
9
|
+
function __decorate(decorators, target, key, desc) {
|
|
10
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/avatar.ts
|
|
17
|
+
var LEGACY_COUNT_ATTRIBUTE = "initialcount";
|
|
18
|
+
var Avatar = class Avatar extends LitElement {
|
|
19
|
+
constructor(..._args) {
|
|
20
|
+
super(..._args);
|
|
21
|
+
this.name = "";
|
|
22
|
+
this.initialCount = 1;
|
|
23
|
+
this.initials = void 0;
|
|
24
|
+
this.src = void 0;
|
|
25
|
+
this.alt = void 0;
|
|
26
|
+
this.autoColor = false;
|
|
27
|
+
this.status = void 0;
|
|
28
|
+
this.imageFailed = false;
|
|
29
|
+
}
|
|
30
|
+
static {
|
|
31
|
+
this.styles = unsafeCSS(avatar_default);
|
|
32
|
+
}
|
|
33
|
+
/** Accepts the pre-1.0 camelCase `initialCount="2"` attribute as well. */
|
|
34
|
+
static get observedAttributes() {
|
|
35
|
+
return [...super.observedAttributes, LEGACY_COUNT_ATTRIBUTE];
|
|
36
|
+
}
|
|
37
|
+
attributeChangedCallback(name, old, value) {
|
|
38
|
+
if (name === LEGACY_COUNT_ATTRIBUTE) {
|
|
39
|
+
if (value !== null) this.initialCount = Number(value) || 1;
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
super.attributeChangedCallback(name, old, value);
|
|
43
|
+
}
|
|
44
|
+
/** Initials shown when there is no image or slotted content. */
|
|
45
|
+
get initial() {
|
|
46
|
+
if (this.initials) return this.initials;
|
|
47
|
+
const words = this.name.trim().split(/\s+/).filter(Boolean);
|
|
48
|
+
if (words.length === 0) return "";
|
|
49
|
+
return (this.initialCount === 2 && words.length > 2 ? [words[0], words[words.length - 1]] : words.slice(0, Math.max(1, this.initialCount))).map((w) => w.charAt(0)).join("").toUpperCase();
|
|
50
|
+
}
|
|
51
|
+
/** Hue (0–359) derived from the name, used by `auto-color`. */
|
|
52
|
+
get hue() {
|
|
53
|
+
let hash = 2166136261;
|
|
54
|
+
for (const char of this.name) hash = Math.imul(hash ^ char.codePointAt(0), 16777619);
|
|
55
|
+
return (hash >>> 0) % 360;
|
|
56
|
+
}
|
|
57
|
+
willUpdate(changed) {
|
|
58
|
+
if (changed.has("src")) this.imageFailed = false;
|
|
59
|
+
}
|
|
60
|
+
handleImageError() {
|
|
61
|
+
this.imageFailed = true;
|
|
62
|
+
this.dispatchEvent(new Event("error"));
|
|
63
|
+
}
|
|
64
|
+
render() {
|
|
65
|
+
const showImage = !!this.src && !this.imageFailed;
|
|
66
|
+
const label = this.alt ?? this.name;
|
|
67
|
+
return html`
|
|
68
|
+
<div
|
|
69
|
+
class=${classMap({
|
|
70
|
+
"c2-avatar": true,
|
|
71
|
+
"has-image": showImage
|
|
72
|
+
})}
|
|
73
|
+
style=${this.autoColor ? `--c2-avatar--hue: ${this.hue}` : nothing}
|
|
74
|
+
role="img"
|
|
75
|
+
aria-label=${label || nothing}
|
|
76
|
+
>
|
|
77
|
+
${showImage ? html`<img
|
|
78
|
+
class="c2-avatar-image"
|
|
79
|
+
src=${this.src}
|
|
80
|
+
alt=${ifDefined(this.alt ?? (this.name || void 0))}
|
|
81
|
+
loading="lazy"
|
|
82
|
+
@error=${this.handleImageError}
|
|
83
|
+
/>` : html`<slot>${this.initial}</slot>`}
|
|
84
|
+
</div>
|
|
85
|
+
<slot name="badge" class="c2-avatar-badge"> ${this.status ? html`<span class="c2-avatar-status" aria-label=${this.status}></span>` : nothing} </slot>
|
|
86
|
+
`;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
__decorate([property()], Avatar.prototype, "name", void 0);
|
|
90
|
+
__decorate([property({
|
|
91
|
+
type: Number,
|
|
92
|
+
attribute: "initial-count"
|
|
93
|
+
})], Avatar.prototype, "initialCount", void 0);
|
|
94
|
+
__decorate([property()], Avatar.prototype, "initials", void 0);
|
|
95
|
+
__decorate([property()], Avatar.prototype, "src", void 0);
|
|
96
|
+
__decorate([property()], Avatar.prototype, "alt", void 0);
|
|
97
|
+
__decorate([property({
|
|
98
|
+
type: Boolean,
|
|
99
|
+
reflect: true,
|
|
100
|
+
attribute: "auto-color"
|
|
101
|
+
})], Avatar.prototype, "autoColor", void 0);
|
|
102
|
+
__decorate([property({ reflect: true })], Avatar.prototype, "status", void 0);
|
|
103
|
+
__decorate([state()], Avatar.prototype, "imageFailed", void 0);
|
|
104
|
+
Avatar = __decorate([customElement("c2-avatar")], Avatar);
|
|
105
|
+
//#endregion
|
|
106
|
+
export { Avatar };
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@c2n/avatar",
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/avatar.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"default": "./dist/avatar.js",
|
|
9
|
+
"types": "./types/src/avatar.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"./custom-elements.json": "./custom-elements.json"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"types"
|
|
16
|
+
],
|
|
17
|
+
"keywords": [
|
|
18
|
+
"avatar",
|
|
19
|
+
"web component",
|
|
20
|
+
"lit"
|
|
21
|
+
],
|
|
22
|
+
"author": "code2nguyen@gmail.com",
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"registry": "https://registry.npmjs.org",
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/code2nguyen/web-components.git"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"dev": "vite",
|
|
33
|
+
"build": "wireit",
|
|
34
|
+
"build:only": "vite build",
|
|
35
|
+
"type-check": "wireit"
|
|
36
|
+
},
|
|
37
|
+
"wireit": {
|
|
38
|
+
"type-check": {
|
|
39
|
+
"dependencies": [
|
|
40
|
+
"../../core:build"
|
|
41
|
+
],
|
|
42
|
+
"command": "tsc -p tsconfig.lib.json --composite false"
|
|
43
|
+
},
|
|
44
|
+
"build": {
|
|
45
|
+
"dependencies": [
|
|
46
|
+
"type-check"
|
|
47
|
+
],
|
|
48
|
+
"command": "vite build"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@c2n/core": "0.0.6",
|
|
53
|
+
"lit": "3.3.3"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@c2n/config": "*"
|
|
57
|
+
},
|
|
58
|
+
"customElements": "custom-elements.json",
|
|
59
|
+
"gitHead": "2921054bc75299da66dad11c1e374246ff88a51e"
|
|
60
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues } from 'lit';
|
|
2
|
+
export type AvatarStatus = 'online' | 'away' | 'busy' | 'offline';
|
|
3
|
+
/**
|
|
4
|
+
* Shows a person or entity as an image, initials or any slotted content, with an optional status dot or badge.
|
|
5
|
+
*
|
|
6
|
+
* Resolution order: the `src` image (falling back to initials if it fails to load), then slotted content, then the
|
|
7
|
+
* initials computed from `name`. Set `auto-color` to derive a stable background hue from the name.
|
|
8
|
+
*
|
|
9
|
+
* @tag c2-avatar
|
|
10
|
+
*
|
|
11
|
+
* @slot - Custom content shown instead of the initials (an icon, an emoji, an `<img>`).
|
|
12
|
+
* @slot badge - Small element pinned to the bottom-right corner (a count, an icon). Replaces the `status` dot.
|
|
13
|
+
*
|
|
14
|
+
* @event {Event} error - Fired when the `src` image fails to load; the initials are shown instead.
|
|
15
|
+
*
|
|
16
|
+
* @cssproperty {pixel} [--c2-avatar--size=32px]
|
|
17
|
+
* @cssproperty {pixel} --c2-avatar--width - Falls back to `--c2-avatar--size`.
|
|
18
|
+
* @cssproperty {pixel} --c2-avatar--height - Falls back to `--c2-avatar--size`.
|
|
19
|
+
* @cssproperty {color} [--c2-avatar--color=#ffffff]
|
|
20
|
+
* @cssproperty {background} [--c2-avatar--background=rgb(0, 122, 77)] - Ignored when `auto-color` is set.
|
|
21
|
+
* @cssproperty {box-shadow} --c2-avatar--box-shadow - e.g. `0 0 0 2px #fff` for a ring in stacked groups.
|
|
22
|
+
*
|
|
23
|
+
* @cssproperty {border-radius} [--c2-avatar--border-top-left-radius=999px]
|
|
24
|
+
* @cssproperty {border-radius} [--c2-avatar--border-top-right-radius=999px]
|
|
25
|
+
* @cssproperty {border-radius} [--c2-avatar--border-bottom-left-radius=999px]
|
|
26
|
+
* @cssproperty {border-radius} [--c2-avatar--border-bottom-right-radius=999px]
|
|
27
|
+
*
|
|
28
|
+
* @cssproperty {border} --c2-avatar--border-top
|
|
29
|
+
* @cssproperty {border} --c2-avatar--border-bottom
|
|
30
|
+
* @cssproperty {border} --c2-avatar--border-right
|
|
31
|
+
* @cssproperty {border} --c2-avatar--border-left
|
|
32
|
+
*
|
|
33
|
+
* @cssproperty {font-size} [--c2-avatar--font-size=calc(var(--c2-avatar--size) * 0.4)]
|
|
34
|
+
* @cssproperty {font-weight} [--c2-avatar--font-weight=600]
|
|
35
|
+
* @cssproperty {font-style} --c2-avatar--font-style
|
|
36
|
+
* @cssproperty {font-family} --c2-avatar--font-family
|
|
37
|
+
* @cssproperty {letter-spacing} [--c2-avatar--letter-spacing=0.02em]
|
|
38
|
+
*
|
|
39
|
+
* @cssproperty {saturation} [--c2-avatar__auto-color--saturation=55%] - Saturation of the hue derived from the name.
|
|
40
|
+
* @cssproperty {lightness} [--c2-avatar__auto-color--lightness=42%] - Lightness of the hue derived from the name.
|
|
41
|
+
*
|
|
42
|
+
* @cssproperty {object-fit} [--c2-avatar__image--object-fit=cover]
|
|
43
|
+
*
|
|
44
|
+
* @cssproperty {pixel} [--c2-avatar__badge--size=10px] - Diameter of the status dot; slotted badges size themselves.
|
|
45
|
+
* @cssproperty {border} [--c2-avatar__badge--border=2px solid #ffffff] - Ring separating the badge from the avatar.
|
|
46
|
+
* @cssproperty {pixel} [--c2-avatar__badge--offset=0px] - Positive values push the badge outwards.
|
|
47
|
+
* @cssproperty {color} [--c2-avatar__badge__online--color=rgb(34, 197, 94)]
|
|
48
|
+
* @cssproperty {color} [--c2-avatar__badge__away--color=rgb(245, 158, 11)]
|
|
49
|
+
* @cssproperty {color} [--c2-avatar__badge__busy--color=rgb(239, 68, 68)]
|
|
50
|
+
* @cssproperty {color} [--c2-avatar__badge__offline--color=rgb(161, 161, 170)]
|
|
51
|
+
*/
|
|
52
|
+
export declare class Avatar extends LitElement {
|
|
53
|
+
static styles: import("lit").CSSResult;
|
|
54
|
+
/** Full name: source of the initials, the accessible label and the `auto-color` hue. */
|
|
55
|
+
name: string;
|
|
56
|
+
/** Number of initials to show. With 2 and a name of three or more words, the first and last word are used. */
|
|
57
|
+
initialCount: number;
|
|
58
|
+
/** Explicit initials; overrides the ones computed from `name`. */
|
|
59
|
+
initials: string | undefined;
|
|
60
|
+
/** Image URL. Falls back to the initials when the image fails to load. */
|
|
61
|
+
src: string | undefined;
|
|
62
|
+
/** Image alt text; defaults to `name`. */
|
|
63
|
+
alt: string | undefined;
|
|
64
|
+
/** Derive a stable background hue from `name` (same name, same color). */
|
|
65
|
+
autoColor: boolean;
|
|
66
|
+
/** Presence dot in the bottom-right corner. */
|
|
67
|
+
status: AvatarStatus | undefined;
|
|
68
|
+
private imageFailed;
|
|
69
|
+
/** Accepts the pre-1.0 camelCase `initialCount="2"` attribute as well. */
|
|
70
|
+
static get observedAttributes(): string[];
|
|
71
|
+
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
72
|
+
/** Initials shown when there is no image or slotted content. */
|
|
73
|
+
get initial(): string;
|
|
74
|
+
/** Hue (0–359) derived from the name, used by `auto-color`. */
|
|
75
|
+
get hue(): number;
|
|
76
|
+
willUpdate(changed: PropertyValues<this>): void;
|
|
77
|
+
private handleImageError;
|
|
78
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
79
|
+
}
|
|
80
|
+
declare global {
|
|
81
|
+
interface HTMLElementTagNameMap {
|
|
82
|
+
'c2-avatar': Avatar;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/avatar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,KAAK,cAAc,EAAE,MAAM,KAAK,CAAA;AAM/E,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;AAIjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,qBACa,MAAO,SAAQ,UAAU;IACpC,OAAgB,MAAM,0BAAoB;IAE1C,wFAAwF;IAC5E,IAAI,SAAK;IAErB,8GAA8G;IACtD,YAAY,SAAI;IAExE,kEAAkE;IACtD,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAY;IAEpD,0EAA0E;IAC9D,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAE/C,0CAA0C;IAC9B,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAE/C,0EAA0E;IACL,SAAS,UAAQ;IAEtF,+CAA+C;IAClB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAY;IAEhE,OAAO,CAAC,WAAW,CAAQ;IAEpC,0EAA0E;IAC1E,WAAoB,kBAAkB,aAErC;IAEQ,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAQxF,gEAAgE;IAChE,IAAI,OAAO,IAAI,MAAM,CASpB;IAED,+DAA+D;IAC/D,IAAI,GAAG,IAAI,MAAM,CAKhB;IAEQ,UAAU,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC;IAIjD,OAAO,CAAC,gBAAgB;IAKf,MAAM;CAyBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,MAAM,CAAA;KACpB;CACF"}
|