@primer/styled-react 0.0.0-20250925230921 → 0.0.0-20250926015224
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/components/UnderlinePanels.d.ts +20 -0
- package/dist/components/UnderlinePanels.d.ts.map +1 -0
- package/dist/components.json +4 -4
- package/dist/experimental.d.ts +2 -1
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +61 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -44
- package/package.json +3 -3
- package/dist/components/Breadcrumbs.d.ts +0 -15
- package/dist/components/Breadcrumbs.d.ts.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type UnderlinePanelsProps as PrimerUnderlinePanelsProps, type UnderlinePanelsPanelProps as PrimerUnderlinePanelsPanelProps, type UnderlinePanelsTabProps as PrimerUnderlinePanelsTabProps } from '@primer/react/experimental';
|
|
2
|
+
import { type SxProp } from '../sx';
|
|
3
|
+
type UnderlinePanelsProps = PrimerUnderlinePanelsProps & SxProp;
|
|
4
|
+
type UnderlinePanelsPanelProps = PrimerUnderlinePanelsPanelProps & SxProp;
|
|
5
|
+
type UnderlinePanelsTabProps = PrimerUnderlinePanelsTabProps & SxProp;
|
|
6
|
+
declare const UnderlinePanels: {
|
|
7
|
+
({ as, ...props }: UnderlinePanelsProps): import("react").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
} & {
|
|
10
|
+
Tab: {
|
|
11
|
+
({ as, ...props }: UnderlinePanelsTabProps): import("react").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
Panel: {
|
|
15
|
+
({ as, ...props }: UnderlinePanelsPanelProps): import("react").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export { UnderlinePanels, type UnderlinePanelsProps, type UnderlinePanelsTabProps, type UnderlinePanelsPanelProps };
|
|
20
|
+
//# sourceMappingURL=UnderlinePanels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnderlinePanels.d.ts","sourceRoot":"","sources":["../../src/components/UnderlinePanels.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,IAAI,0BAA0B,EACvD,KAAK,yBAAyB,IAAI,+BAA+B,EACjE,KAAK,uBAAuB,IAAI,6BAA6B,EAC9D,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,oBAAoB,GAAG,0BAA0B,GAAG,MAAM,CAAA;AAe/D,KAAK,yBAAyB,GAAG,+BAA+B,GAAG,MAAM,CAAA;AAezE,KAAK,uBAAuB,GAAG,6BAA6B,GAAG,MAAM,CAAA;AAcrE,QAAA,MAAM,eAAe;uBAnCwB,oBAAoB;;;;2BA6BrB,uBAAuB;;;;2BAdrB,yBAAyB;;;CAuBrE,CAAA;AAEF,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,uBAAuB,EAAE,KAAK,yBAAyB,EAAC,CAAA"}
|
package/dist/components.json
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"Autocomplete",
|
|
6
6
|
"Avatar",
|
|
7
7
|
"Box",
|
|
8
|
-
"Breadcrumb",
|
|
9
8
|
"Breadcrumbs",
|
|
10
9
|
"Button",
|
|
11
10
|
"Checkbox",
|
|
@@ -52,8 +51,6 @@
|
|
|
52
51
|
"types": [
|
|
53
52
|
"BetterSystemStyleObject",
|
|
54
53
|
"BoxProps",
|
|
55
|
-
"BreadcrumbsItemProps",
|
|
56
|
-
"BreadcrumbsProps",
|
|
57
54
|
"CheckboxProps",
|
|
58
55
|
"CounterLabelProps",
|
|
59
56
|
"HeaderProps",
|
|
@@ -82,7 +79,10 @@
|
|
|
82
79
|
"TooltipProps",
|
|
83
80
|
"TruncateProps",
|
|
84
81
|
"UnderlineNavItemProps",
|
|
85
|
-
"UnderlineNavProps"
|
|
82
|
+
"UnderlineNavProps",
|
|
83
|
+
"UnderlinePanelsPanelProps",
|
|
84
|
+
"UnderlinePanelsProps",
|
|
85
|
+
"UnderlinePanelsTabProps"
|
|
86
86
|
],
|
|
87
87
|
"utilities": [
|
|
88
88
|
"merge",
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
|
|
2
|
-
export {
|
|
2
|
+
export { UnderlinePanels, type UnderlinePanelsProps, type UnderlinePanelsTabProps, type UnderlinePanelsPanelProps, } from './components/UnderlinePanels';
|
|
3
|
+
export { Dialog, Table, Tooltip } from '@primer/react/experimental';
|
|
3
4
|
//# sourceMappingURL=experimental.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAC,MAAM,EAAE,KAAK,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,GAC/B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAC,MAAM,4BAA4B,CAAA"}
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
export { P as PageHeader } from './PageHeader-Bvki2mbE.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import 'styled-components';
|
|
5
|
-
import 'react
|
|
2
|
+
import { UnderlinePanels as UnderlinePanels$1 } from '@primer/react/experimental';
|
|
3
|
+
export { Dialog, Table, Tooltip } from '@primer/react/experimental';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { sx } from '@primer/react';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
|
|
9
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
10
|
+
}).withConfig({
|
|
11
|
+
displayName: "UnderlinePanels__StyledUnderlinePanels",
|
|
12
|
+
componentId: "sc-1w35i85-0"
|
|
13
|
+
})(["", ""], sx);
|
|
14
|
+
|
|
15
|
+
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
|
|
16
|
+
const UnderlinePanelsImpl = ({
|
|
17
|
+
as,
|
|
18
|
+
...props
|
|
19
|
+
}) => /*#__PURE__*/jsx(StyledUnderlinePanels, {
|
|
20
|
+
forwardedAs: as,
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
UnderlinePanelsImpl.displayName = 'UnderlinePanels';
|
|
24
|
+
const StyledUnderlinePanelsPanel = styled(UnderlinePanels$1.Panel).withConfig({
|
|
25
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
26
|
+
}).withConfig({
|
|
27
|
+
displayName: "UnderlinePanels__StyledUnderlinePanelsPanel",
|
|
28
|
+
componentId: "sc-1w35i85-1"
|
|
29
|
+
})(["", ""], sx);
|
|
30
|
+
|
|
31
|
+
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
|
|
32
|
+
const UnderlinePanelsPanel = ({
|
|
33
|
+
as,
|
|
34
|
+
...props
|
|
35
|
+
}) => {
|
|
36
|
+
return /*#__PURE__*/jsx(StyledUnderlinePanelsPanel, {
|
|
37
|
+
forwardedAs: as,
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
UnderlinePanelsPanel.displayName = 'UnderlinePanels.Panel';
|
|
42
|
+
const StyledUnderlinePanelsTab = styled(UnderlinePanels$1.Tab).withConfig({
|
|
43
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
44
|
+
}).withConfig({
|
|
45
|
+
displayName: "UnderlinePanels__StyledUnderlinePanelsTab",
|
|
46
|
+
componentId: "sc-1w35i85-2"
|
|
47
|
+
})(["", ""], sx);
|
|
48
|
+
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
|
|
49
|
+
const UnderlinePanelsTab = ({
|
|
50
|
+
as,
|
|
51
|
+
...props
|
|
52
|
+
}) => /*#__PURE__*/jsx(StyledUnderlinePanelsTab, {
|
|
53
|
+
forwardedAs: as,
|
|
54
|
+
...props
|
|
55
|
+
});
|
|
56
|
+
UnderlinePanelsTab.displayName = 'UnderlinePanels.Tab';
|
|
57
|
+
const UnderlinePanels = Object.assign(UnderlinePanelsImpl, {
|
|
58
|
+
Tab: UnderlinePanelsTab,
|
|
59
|
+
Panel: UnderlinePanelsPanel
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export { UnderlinePanels };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { ActionList } from '@primer/react';
|
|
|
2
2
|
export { ActionMenu } from '@primer/react';
|
|
3
3
|
export { Autocomplete } from '@primer/react';
|
|
4
4
|
export { Avatar } from '@primer/react';
|
|
5
|
+
export { Breadcrumbs } from '@primer/react';
|
|
5
6
|
export { Box, type BoxProps } from './components/Box';
|
|
6
7
|
export { Button } from '@primer/react';
|
|
7
8
|
export { CheckboxGroup } from '@primer/react';
|
|
@@ -31,7 +32,6 @@ export { theme } from '@primer/react';
|
|
|
31
32
|
export { themeGet } from '@primer/react';
|
|
32
33
|
export { useColorSchemeVar } from '@primer/react';
|
|
33
34
|
export { useTheme } from '@primer/react';
|
|
34
|
-
export { Breadcrumbs, Breadcrumb, type BreadcrumbsProps, type BreadcrumbsItemProps } from './components/Breadcrumbs';
|
|
35
35
|
export { Checkbox, type CheckboxProps } from './components/Checkbox';
|
|
36
36
|
export { CounterLabel, type CounterLabelProps } from './components/CounterLabel';
|
|
37
37
|
export { Flash } from './components/Flash';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAA;AACnC,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAA;AAClC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,WA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M,uBAAuB,CAAA;AAClE,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;AAE1G,OAAO,EAAC,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,MAAM,CAAA;AAEpC,YAAY,EAAC,uBAAuB,EAAC,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,49 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ActionList, ActionMenu, Autocomplete, Avatar, Box, Button, CheckboxGroup, CircleBadge, Details, Dialog, FormControl, Heading, IconButton, Label, Link, NavList, Overlay, PageLayout, ProgressBar, Select, Text, TextInput, Textarea, ThemeProvider, Token, Tooltip, merge, sx, theme, themeGet, useColorSchemeVar, useTheme } from '@primer/react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
1
|
+
import { Box, Checkbox as Checkbox$1, CounterLabel as CounterLabel$1, Flash as Flash$1, sx, Header as Header$1, LinkButton as LinkButton$1, RadioGroup as RadioGroup$1, RelativeTime as RelativeTime$1, SegmentedControl as SegmentedControl$1, Spinner as Spinner$1, StateLabel as StateLabel$1, SubNav as SubNav$1, Timeline as Timeline$1, ToggleSwitch as ToggleSwitch$1, Truncate as Truncate$1, UnderlineNav as UnderlineNav$1 } from '@primer/react';
|
|
2
|
+
export { ActionList, ActionMenu, Autocomplete, Avatar, Box, Breadcrumbs, Button, CheckboxGroup, CircleBadge, Details, Dialog, FormControl, Heading, IconButton, Label, Link, NavList, Overlay, PageLayout, ProgressBar, Select, Text, TextInput, Textarea, ThemeProvider, Token, Tooltip, merge, sx, theme, themeGet, useColorSchemeVar, useTheme } from '@primer/react';
|
|
5
3
|
import { forwardRef } from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
6
|
export { P as PageHeader } from './PageHeader-Bvki2mbE.js';
|
|
7
7
|
|
|
8
|
-
const StyledBreadcrumbs = styled(Breadcrumbs$1).withConfig({
|
|
9
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
10
|
-
}).withConfig({
|
|
11
|
-
displayName: "Breadcrumbs__StyledBreadcrumbs",
|
|
12
|
-
componentId: "sc-1qj8pw-0"
|
|
13
|
-
})(["", ""], sx);
|
|
14
|
-
|
|
15
|
-
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
|
|
16
|
-
const BreadcrumbsImpl = ({
|
|
17
|
-
as,
|
|
18
|
-
...props
|
|
19
|
-
}) => /*#__PURE__*/jsx(StyledBreadcrumbs, {
|
|
20
|
-
forwardedAs: as,
|
|
21
|
-
...props
|
|
22
|
-
});
|
|
23
|
-
const StyledBreadcrumbsItem = styled(Breadcrumbs$1.Item).withConfig({
|
|
24
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
25
|
-
}).withConfig({
|
|
26
|
-
displayName: "Breadcrumbs__StyledBreadcrumbsItem",
|
|
27
|
-
componentId: "sc-1qj8pw-1"
|
|
28
|
-
})(["", ""], sx);
|
|
29
|
-
|
|
30
|
-
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
|
|
31
|
-
const BreadcrumbsItem = ({
|
|
32
|
-
as,
|
|
33
|
-
...props
|
|
34
|
-
}) => /*#__PURE__*/jsx(StyledBreadcrumbsItem, {
|
|
35
|
-
forwardedAs: as,
|
|
36
|
-
...props
|
|
37
|
-
});
|
|
38
|
-
const Breadcrumbs = Object.assign(BreadcrumbsImpl, {
|
|
39
|
-
Item: BreadcrumbsItem
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
|
|
44
|
-
*/
|
|
45
|
-
const Breadcrumb = Breadcrumbs;
|
|
46
|
-
|
|
47
8
|
const Checkbox = /*#__PURE__*/forwardRef(function Checkbox(props, ref) {
|
|
48
9
|
return /*#__PURE__*/jsx(Box, {
|
|
49
10
|
as: Checkbox$1,
|
|
@@ -270,4 +231,4 @@ const UnderlineNav = Object.assign(UnderlineNavImpl, {
|
|
|
270
231
|
Item: UnderlineNavItem
|
|
271
232
|
});
|
|
272
233
|
|
|
273
|
-
export {
|
|
234
|
+
export { Checkbox, CounterLabel, Flash, Header, LinkButton, RadioGroup, RelativeTime, SegmentedControl, Spinner, StateLabel, SubNav, Timeline, ToggleSwitch, Truncate, UnderlineNav };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20250926015224",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/preset-react": "^7.27.1",
|
|
32
32
|
"@babel/preset-typescript": "^7.27.1",
|
|
33
|
-
"@primer/react": "0.0.0-
|
|
33
|
+
"@primer/react": "0.0.0-20250926015224",
|
|
34
34
|
"@rollup/plugin-babel": "^6.0.4",
|
|
35
35
|
"@types/react": "18.3.11",
|
|
36
36
|
"@types/react-dom": "18.3.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "^5.9.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@primer/react": "0.0.0-
|
|
49
|
+
"@primer/react": "0.0.0-20250926015224",
|
|
50
50
|
"@types/react": "18.x || 19.x",
|
|
51
51
|
"@types/react-dom": "18.x || 19.x",
|
|
52
52
|
"@types/react-is": "18.x || 19.x",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { BreadcrumbsProps as PrimerBreadcrumbsProps, BreadcrumbsItemProps as PrimerBreadcrumbsItemsProps } from '@primer/react';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
3
|
-
type BreadcrumbsProps = PrimerBreadcrumbsProps & SxProp;
|
|
4
|
-
type BreadcrumbsItemProps = PrimerBreadcrumbsItemsProps & SxProp;
|
|
5
|
-
declare const Breadcrumbs: (({ as, ...props }: BreadcrumbsProps) => import("react").JSX.Element) & {
|
|
6
|
-
Item: ({ as, ...props }: BreadcrumbsItemProps) => import("react").JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
|
|
10
|
-
*/
|
|
11
|
-
declare const Breadcrumb: (({ as, ...props }: BreadcrumbsProps) => import("react").JSX.Element) & {
|
|
12
|
-
Item: ({ as, ...props }: BreadcrumbsItemProps) => import("react").JSX.Element;
|
|
13
|
-
};
|
|
14
|
-
export { Breadcrumbs, Breadcrumb, type BreadcrumbsProps, type BreadcrumbsItemProps };
|
|
15
|
-
//# sourceMappingURL=Breadcrumbs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/components/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,IAAI,sBAAsB,EAC1C,oBAAoB,IAAI,2BAA2B,EACpD,MAAM,eAAe,CAAA;AACtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAIrC,KAAK,gBAAgB,GAAG,sBAAsB,GAAG,MAAM,CAAA;AACvD,KAAK,oBAAoB,GAAG,2BAA2B,GAAG,MAAM,CAAA;AAsBhE,QAAA,MAAM,WAAW,sBAbwB,gBAAgB;6BAWhB,oBAAoB;CAEc,CAAA;AAE3E;;GAEG;AACH,QAAA,MAAM,UAAU,sBAlByB,gBAAgB;6BAWhB,oBAAoB;CAO/B,CAAA;AAE9B,OAAO,EAAC,WAAW,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAC,CAAA"}
|