@zag-js/color-picker 1.34.1 → 1.35.0
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/color-picker.anatomy.d.mts +6 -0
- package/dist/color-picker.anatomy.d.ts +6 -0
- package/dist/color-picker.anatomy.js +59 -0
- package/dist/color-picker.anatomy.mjs +33 -0
- package/dist/color-picker.connect.d.mts +10 -0
- package/dist/color-picker.connect.d.ts +10 -0
- package/dist/color-picker.connect.js +681 -0
- package/dist/color-picker.connect.mjs +646 -0
- package/dist/color-picker.dom.d.mts +39 -0
- package/dist/color-picker.dom.d.ts +39 -0
- package/dist/color-picker.dom.js +136 -0
- package/dist/color-picker.dom.mjs +85 -0
- package/dist/color-picker.machine.d.mts +10 -0
- package/dist/color-picker.machine.d.ts +10 -0
- package/dist/color-picker.machine.js +636 -0
- package/dist/color-picker.machine.mjs +609 -0
- package/dist/color-picker.parse.d.mts +5 -0
- package/dist/color-picker.parse.d.ts +5 -0
- package/dist/color-picker.parse.js +33 -0
- package/dist/color-picker.parse.mjs +8 -0
- package/dist/color-picker.props.d.mts +21 -0
- package/dist/color-picker.props.d.ts +21 -0
- package/dist/color-picker.props.js +94 -0
- package/dist/color-picker.props.mjs +58 -0
- package/dist/color-picker.types.d.mts +303 -0
- package/dist/color-picker.types.d.ts +303 -0
- package/dist/color-picker.types.js +18 -0
- package/dist/color-picker.types.mjs +0 -0
- package/dist/index.d.mts +9 -324
- package/dist/index.d.ts +9 -324
- package/dist/index.js +37 -1517
- package/dist/index.mjs +11 -1504
- package/dist/utils/get-channel-display-color.d.mts +5 -0
- package/dist/utils/get-channel-display-color.d.ts +5 -0
- package/dist/utils/get-channel-display-color.js +48 -0
- package/dist/utils/get-channel-display-color.mjs +23 -0
- package/dist/utils/get-channel-input-value.d.mts +11 -0
- package/dist/utils/get-channel-input-value.d.ts +11 -0
- package/dist/utils/get-channel-input-value.js +88 -0
- package/dist/utils/get-channel-input-value.mjs +62 -0
- package/dist/utils/get-slider-background.d.mts +14 -0
- package/dist/utils/get-slider-background.d.ts +14 -0
- package/dist/utils/get-slider-background.js +65 -0
- package/dist/utils/get-slider-background.mjs +40 -0
- package/dist/utils/is-valid-hex.d.mts +4 -0
- package/dist/utils/is-valid-hex.d.ts +4 -0
- package/dist/utils/is-valid-hex.js +40 -0
- package/dist/utils/is-valid-hex.mjs +14 -0
- package/package.json +20 -10
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ColorChannel } from '@zag-js/color-utils';
|
|
2
|
+
import { Scope } from '@zag-js/core';
|
|
3
|
+
import { Point, Direction } from '@zag-js/types';
|
|
4
|
+
|
|
5
|
+
declare const getRootId: (ctx: Scope) => any;
|
|
6
|
+
declare const getLabelId: (ctx: Scope) => any;
|
|
7
|
+
declare const getHiddenInputId: (ctx: Scope) => any;
|
|
8
|
+
declare const getControlId: (ctx: Scope) => any;
|
|
9
|
+
declare const getTriggerId: (ctx: Scope) => any;
|
|
10
|
+
declare const getContentId: (ctx: Scope) => any;
|
|
11
|
+
declare const getPositionerId: (ctx: Scope) => any;
|
|
12
|
+
declare const getFormatSelectId: (ctx: Scope) => any;
|
|
13
|
+
declare const getAreaId: (ctx: Scope) => any;
|
|
14
|
+
declare const getAreaGradientId: (ctx: Scope) => any;
|
|
15
|
+
declare const getAreaThumbId: (ctx: Scope) => any;
|
|
16
|
+
declare const getChannelSliderTrackId: (ctx: Scope, channel: ColorChannel) => any;
|
|
17
|
+
declare const getChannelSliderThumbId: (ctx: Scope, channel: ColorChannel) => any;
|
|
18
|
+
declare const getContentEl: (ctx: Scope) => HTMLElement | null;
|
|
19
|
+
declare const getAreaThumbEl: (ctx: Scope) => HTMLElement | null;
|
|
20
|
+
declare const getChannelSliderThumbEl: (ctx: Scope, channel: ColorChannel) => HTMLElement | null;
|
|
21
|
+
declare const getChannelInputEl: (ctx: Scope, channel: string) => HTMLInputElement[];
|
|
22
|
+
declare const getFormatSelectEl: (ctx: Scope) => HTMLSelectElement | null;
|
|
23
|
+
declare const getHiddenInputEl: (ctx: Scope) => HTMLInputElement | null;
|
|
24
|
+
declare const getAreaEl: (ctx: Scope) => HTMLElement | null;
|
|
25
|
+
declare const getAreaValueFromPoint: (ctx: Scope, point: Point, dir?: Direction) => {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
} | undefined;
|
|
29
|
+
declare const getControlEl: (ctx: Scope) => HTMLElement | null;
|
|
30
|
+
declare const getTriggerEl: (ctx: Scope) => HTMLElement | null;
|
|
31
|
+
declare const getPositionerEl: (ctx: Scope) => HTMLElement | null;
|
|
32
|
+
declare const getChannelSliderTrackEl: (ctx: Scope, channel: ColorChannel) => HTMLElement | null;
|
|
33
|
+
declare const getChannelSliderValueFromPoint: (ctx: Scope, point: Point, channel: ColorChannel, dir?: Direction) => {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
} | undefined;
|
|
37
|
+
declare const getChannelInputEls: (ctx: Scope) => HTMLInputElement[];
|
|
38
|
+
|
|
39
|
+
export { getAreaEl, getAreaGradientId, getAreaId, getAreaThumbEl, getAreaThumbId, getAreaValueFromPoint, getChannelInputEl, getChannelInputEls, getChannelSliderThumbEl, getChannelSliderThumbId, getChannelSliderTrackEl, getChannelSliderTrackId, getChannelSliderValueFromPoint, getContentEl, getContentId, getControlEl, getControlId, getFormatSelectEl, getFormatSelectId, getHiddenInputEl, getHiddenInputId, getLabelId, getPositionerEl, getPositionerId, getRootId, getTriggerEl, getTriggerId };
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/color-picker.dom.ts
|
|
21
|
+
var color_picker_dom_exports = {};
|
|
22
|
+
__export(color_picker_dom_exports, {
|
|
23
|
+
getAreaEl: () => getAreaEl,
|
|
24
|
+
getAreaGradientId: () => getAreaGradientId,
|
|
25
|
+
getAreaId: () => getAreaId,
|
|
26
|
+
getAreaThumbEl: () => getAreaThumbEl,
|
|
27
|
+
getAreaThumbId: () => getAreaThumbId,
|
|
28
|
+
getAreaValueFromPoint: () => getAreaValueFromPoint,
|
|
29
|
+
getChannelInputEl: () => getChannelInputEl,
|
|
30
|
+
getChannelInputEls: () => getChannelInputEls,
|
|
31
|
+
getChannelSliderThumbEl: () => getChannelSliderThumbEl,
|
|
32
|
+
getChannelSliderThumbId: () => getChannelSliderThumbId,
|
|
33
|
+
getChannelSliderTrackEl: () => getChannelSliderTrackEl,
|
|
34
|
+
getChannelSliderTrackId: () => getChannelSliderTrackId,
|
|
35
|
+
getChannelSliderValueFromPoint: () => getChannelSliderValueFromPoint,
|
|
36
|
+
getContentEl: () => getContentEl,
|
|
37
|
+
getContentId: () => getContentId,
|
|
38
|
+
getControlEl: () => getControlEl,
|
|
39
|
+
getControlId: () => getControlId,
|
|
40
|
+
getFormatSelectEl: () => getFormatSelectEl,
|
|
41
|
+
getFormatSelectId: () => getFormatSelectId,
|
|
42
|
+
getHiddenInputEl: () => getHiddenInputEl,
|
|
43
|
+
getHiddenInputId: () => getHiddenInputId,
|
|
44
|
+
getLabelId: () => getLabelId,
|
|
45
|
+
getPositionerEl: () => getPositionerEl,
|
|
46
|
+
getPositionerId: () => getPositionerId,
|
|
47
|
+
getRootId: () => getRootId,
|
|
48
|
+
getTriggerEl: () => getTriggerEl,
|
|
49
|
+
getTriggerId: () => getTriggerId
|
|
50
|
+
});
|
|
51
|
+
module.exports = __toCommonJS(color_picker_dom_exports);
|
|
52
|
+
var import_dom_query = require("@zag-js/dom-query");
|
|
53
|
+
var getRootId = (ctx) => ctx.ids?.root ?? `color-picker:${ctx.id}`;
|
|
54
|
+
var getLabelId = (ctx) => ctx.ids?.label ?? `color-picker:${ctx.id}:label`;
|
|
55
|
+
var getHiddenInputId = (ctx) => ctx.ids?.hiddenInput ?? `color-picker:${ctx.id}:hidden-input`;
|
|
56
|
+
var getControlId = (ctx) => ctx.ids?.control ?? `color-picker:${ctx.id}:control`;
|
|
57
|
+
var getTriggerId = (ctx) => ctx.ids?.trigger ?? `color-picker:${ctx.id}:trigger`;
|
|
58
|
+
var getContentId = (ctx) => ctx.ids?.content ?? `color-picker:${ctx.id}:content`;
|
|
59
|
+
var getPositionerId = (ctx) => ctx.ids?.positioner ?? `color-picker:${ctx.id}:positioner`;
|
|
60
|
+
var getFormatSelectId = (ctx) => ctx.ids?.formatSelect ?? `color-picker:${ctx.id}:format-select`;
|
|
61
|
+
var getAreaId = (ctx) => ctx.ids?.area ?? `color-picker:${ctx.id}:area`;
|
|
62
|
+
var getAreaGradientId = (ctx) => ctx.ids?.areaGradient ?? `color-picker:${ctx.id}:area-gradient`;
|
|
63
|
+
var getAreaThumbId = (ctx) => ctx.ids?.areaThumb ?? `color-picker:${ctx.id}:area-thumb`;
|
|
64
|
+
var getChannelSliderTrackId = (ctx, channel) => ctx.ids?.channelSliderTrack?.(channel) ?? `color-picker:${ctx.id}:slider-track:${channel}`;
|
|
65
|
+
var getChannelSliderThumbId = (ctx, channel) => ctx.ids?.channelSliderThumb?.(channel) ?? `color-picker:${ctx.id}:slider-thumb:${channel}`;
|
|
66
|
+
var getContentEl = (ctx) => ctx.getById(getContentId(ctx));
|
|
67
|
+
var getAreaThumbEl = (ctx) => ctx.getById(getAreaThumbId(ctx));
|
|
68
|
+
var getChannelSliderThumbEl = (ctx, channel) => ctx.getById(getChannelSliderThumbId(ctx, channel));
|
|
69
|
+
var getChannelInputEl = (ctx, channel) => {
|
|
70
|
+
const selector = `input[data-channel="${channel}"]`;
|
|
71
|
+
return [
|
|
72
|
+
...(0, import_dom_query.queryAll)(getContentEl(ctx), selector),
|
|
73
|
+
...(0, import_dom_query.queryAll)(getControlEl(ctx), selector)
|
|
74
|
+
];
|
|
75
|
+
};
|
|
76
|
+
var getFormatSelectEl = (ctx) => ctx.getById(getFormatSelectId(ctx));
|
|
77
|
+
var getHiddenInputEl = (ctx) => ctx.getById(getHiddenInputId(ctx));
|
|
78
|
+
var getAreaEl = (ctx) => ctx.getById(getAreaId(ctx));
|
|
79
|
+
var getAreaValueFromPoint = (ctx, point, dir) => {
|
|
80
|
+
const areaEl = getAreaEl(ctx);
|
|
81
|
+
if (!areaEl) return;
|
|
82
|
+
const { getPercentValue } = (0, import_dom_query.getRelativePoint)(point, areaEl);
|
|
83
|
+
return {
|
|
84
|
+
x: getPercentValue({ dir, orientation: "horizontal" }),
|
|
85
|
+
y: getPercentValue({ orientation: "vertical" })
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
var getControlEl = (ctx) => ctx.getById(getControlId(ctx));
|
|
89
|
+
var getTriggerEl = (ctx) => ctx.getById(getTriggerId(ctx));
|
|
90
|
+
var getPositionerEl = (ctx) => ctx.getById(getPositionerId(ctx));
|
|
91
|
+
var getChannelSliderTrackEl = (ctx, channel) => ctx.getById(getChannelSliderTrackId(ctx, channel));
|
|
92
|
+
var getChannelSliderValueFromPoint = (ctx, point, channel, dir) => {
|
|
93
|
+
const trackEl = getChannelSliderTrackEl(ctx, channel);
|
|
94
|
+
if (!trackEl) return;
|
|
95
|
+
const { getPercentValue } = (0, import_dom_query.getRelativePoint)(point, trackEl);
|
|
96
|
+
return {
|
|
97
|
+
x: getPercentValue({ dir, orientation: "horizontal" }),
|
|
98
|
+
y: getPercentValue({ orientation: "vertical" })
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
var getChannelInputEls = (ctx) => {
|
|
102
|
+
return [
|
|
103
|
+
...(0, import_dom_query.queryAll)(getContentEl(ctx), "input[data-channel]"),
|
|
104
|
+
...(0, import_dom_query.queryAll)(getControlEl(ctx), "input[data-channel]")
|
|
105
|
+
];
|
|
106
|
+
};
|
|
107
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
108
|
+
0 && (module.exports = {
|
|
109
|
+
getAreaEl,
|
|
110
|
+
getAreaGradientId,
|
|
111
|
+
getAreaId,
|
|
112
|
+
getAreaThumbEl,
|
|
113
|
+
getAreaThumbId,
|
|
114
|
+
getAreaValueFromPoint,
|
|
115
|
+
getChannelInputEl,
|
|
116
|
+
getChannelInputEls,
|
|
117
|
+
getChannelSliderThumbEl,
|
|
118
|
+
getChannelSliderThumbId,
|
|
119
|
+
getChannelSliderTrackEl,
|
|
120
|
+
getChannelSliderTrackId,
|
|
121
|
+
getChannelSliderValueFromPoint,
|
|
122
|
+
getContentEl,
|
|
123
|
+
getContentId,
|
|
124
|
+
getControlEl,
|
|
125
|
+
getControlId,
|
|
126
|
+
getFormatSelectEl,
|
|
127
|
+
getFormatSelectId,
|
|
128
|
+
getHiddenInputEl,
|
|
129
|
+
getHiddenInputId,
|
|
130
|
+
getLabelId,
|
|
131
|
+
getPositionerEl,
|
|
132
|
+
getPositionerId,
|
|
133
|
+
getRootId,
|
|
134
|
+
getTriggerEl,
|
|
135
|
+
getTriggerId
|
|
136
|
+
});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// src/color-picker.dom.ts
|
|
2
|
+
import { getRelativePoint, queryAll } from "@zag-js/dom-query";
|
|
3
|
+
var getRootId = (ctx) => ctx.ids?.root ?? `color-picker:${ctx.id}`;
|
|
4
|
+
var getLabelId = (ctx) => ctx.ids?.label ?? `color-picker:${ctx.id}:label`;
|
|
5
|
+
var getHiddenInputId = (ctx) => ctx.ids?.hiddenInput ?? `color-picker:${ctx.id}:hidden-input`;
|
|
6
|
+
var getControlId = (ctx) => ctx.ids?.control ?? `color-picker:${ctx.id}:control`;
|
|
7
|
+
var getTriggerId = (ctx) => ctx.ids?.trigger ?? `color-picker:${ctx.id}:trigger`;
|
|
8
|
+
var getContentId = (ctx) => ctx.ids?.content ?? `color-picker:${ctx.id}:content`;
|
|
9
|
+
var getPositionerId = (ctx) => ctx.ids?.positioner ?? `color-picker:${ctx.id}:positioner`;
|
|
10
|
+
var getFormatSelectId = (ctx) => ctx.ids?.formatSelect ?? `color-picker:${ctx.id}:format-select`;
|
|
11
|
+
var getAreaId = (ctx) => ctx.ids?.area ?? `color-picker:${ctx.id}:area`;
|
|
12
|
+
var getAreaGradientId = (ctx) => ctx.ids?.areaGradient ?? `color-picker:${ctx.id}:area-gradient`;
|
|
13
|
+
var getAreaThumbId = (ctx) => ctx.ids?.areaThumb ?? `color-picker:${ctx.id}:area-thumb`;
|
|
14
|
+
var getChannelSliderTrackId = (ctx, channel) => ctx.ids?.channelSliderTrack?.(channel) ?? `color-picker:${ctx.id}:slider-track:${channel}`;
|
|
15
|
+
var getChannelSliderThumbId = (ctx, channel) => ctx.ids?.channelSliderThumb?.(channel) ?? `color-picker:${ctx.id}:slider-thumb:${channel}`;
|
|
16
|
+
var getContentEl = (ctx) => ctx.getById(getContentId(ctx));
|
|
17
|
+
var getAreaThumbEl = (ctx) => ctx.getById(getAreaThumbId(ctx));
|
|
18
|
+
var getChannelSliderThumbEl = (ctx, channel) => ctx.getById(getChannelSliderThumbId(ctx, channel));
|
|
19
|
+
var getChannelInputEl = (ctx, channel) => {
|
|
20
|
+
const selector = `input[data-channel="${channel}"]`;
|
|
21
|
+
return [
|
|
22
|
+
...queryAll(getContentEl(ctx), selector),
|
|
23
|
+
...queryAll(getControlEl(ctx), selector)
|
|
24
|
+
];
|
|
25
|
+
};
|
|
26
|
+
var getFormatSelectEl = (ctx) => ctx.getById(getFormatSelectId(ctx));
|
|
27
|
+
var getHiddenInputEl = (ctx) => ctx.getById(getHiddenInputId(ctx));
|
|
28
|
+
var getAreaEl = (ctx) => ctx.getById(getAreaId(ctx));
|
|
29
|
+
var getAreaValueFromPoint = (ctx, point, dir) => {
|
|
30
|
+
const areaEl = getAreaEl(ctx);
|
|
31
|
+
if (!areaEl) return;
|
|
32
|
+
const { getPercentValue } = getRelativePoint(point, areaEl);
|
|
33
|
+
return {
|
|
34
|
+
x: getPercentValue({ dir, orientation: "horizontal" }),
|
|
35
|
+
y: getPercentValue({ orientation: "vertical" })
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
var getControlEl = (ctx) => ctx.getById(getControlId(ctx));
|
|
39
|
+
var getTriggerEl = (ctx) => ctx.getById(getTriggerId(ctx));
|
|
40
|
+
var getPositionerEl = (ctx) => ctx.getById(getPositionerId(ctx));
|
|
41
|
+
var getChannelSliderTrackEl = (ctx, channel) => ctx.getById(getChannelSliderTrackId(ctx, channel));
|
|
42
|
+
var getChannelSliderValueFromPoint = (ctx, point, channel, dir) => {
|
|
43
|
+
const trackEl = getChannelSliderTrackEl(ctx, channel);
|
|
44
|
+
if (!trackEl) return;
|
|
45
|
+
const { getPercentValue } = getRelativePoint(point, trackEl);
|
|
46
|
+
return {
|
|
47
|
+
x: getPercentValue({ dir, orientation: "horizontal" }),
|
|
48
|
+
y: getPercentValue({ orientation: "vertical" })
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
var getChannelInputEls = (ctx) => {
|
|
52
|
+
return [
|
|
53
|
+
...queryAll(getContentEl(ctx), "input[data-channel]"),
|
|
54
|
+
...queryAll(getControlEl(ctx), "input[data-channel]")
|
|
55
|
+
];
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
getAreaEl,
|
|
59
|
+
getAreaGradientId,
|
|
60
|
+
getAreaId,
|
|
61
|
+
getAreaThumbEl,
|
|
62
|
+
getAreaThumbId,
|
|
63
|
+
getAreaValueFromPoint,
|
|
64
|
+
getChannelInputEl,
|
|
65
|
+
getChannelInputEls,
|
|
66
|
+
getChannelSliderThumbEl,
|
|
67
|
+
getChannelSliderThumbId,
|
|
68
|
+
getChannelSliderTrackEl,
|
|
69
|
+
getChannelSliderTrackId,
|
|
70
|
+
getChannelSliderValueFromPoint,
|
|
71
|
+
getContentEl,
|
|
72
|
+
getContentId,
|
|
73
|
+
getControlEl,
|
|
74
|
+
getControlId,
|
|
75
|
+
getFormatSelectEl,
|
|
76
|
+
getFormatSelectId,
|
|
77
|
+
getHiddenInputEl,
|
|
78
|
+
getHiddenInputId,
|
|
79
|
+
getLabelId,
|
|
80
|
+
getPositionerEl,
|
|
81
|
+
getPositionerId,
|
|
82
|
+
getRootId,
|
|
83
|
+
getTriggerEl,
|
|
84
|
+
getTriggerId
|
|
85
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as _zag_js_core from '@zag-js/core';
|
|
2
|
+
import { ColorPickerSchema } from './color-picker.types.mjs';
|
|
3
|
+
import '@zag-js/color-utils';
|
|
4
|
+
import '@zag-js/dismissable';
|
|
5
|
+
import '@zag-js/popper';
|
|
6
|
+
import '@zag-js/types';
|
|
7
|
+
|
|
8
|
+
declare const machine: _zag_js_core.Machine<ColorPickerSchema>;
|
|
9
|
+
|
|
10
|
+
export { machine };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as _zag_js_core from '@zag-js/core';
|
|
2
|
+
import { ColorPickerSchema } from './color-picker.types.js';
|
|
3
|
+
import '@zag-js/color-utils';
|
|
4
|
+
import '@zag-js/dismissable';
|
|
5
|
+
import '@zag-js/popper';
|
|
6
|
+
import '@zag-js/types';
|
|
7
|
+
|
|
8
|
+
declare const machine: _zag_js_core.Machine<ColorPickerSchema>;
|
|
9
|
+
|
|
10
|
+
export { machine };
|