@cossistant/react 0.0.2 → 0.0.4

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/README.md ADDED
@@ -0,0 +1,74 @@
1
+ # Cossistant React SDK
2
+
3
+ Build fully featured customer support experiences in React with the official `@cossistant/react` package. The SDK wraps the REST and WebSocket APIs, comes with a prebuilt widget, hooks, and UI primitives so you can ship your support quickly and customize later.
4
+
5
+ > 📚 **New to Cossistant?** Follow the [Quickstart guide](https://cossistant/docs/quickstart) in our official documentation.
6
+
7
+ ## Installation
8
+
9
+ Pick the command that matches your package manager:
10
+
11
+ ```bash
12
+ bun add @cossistant/react
13
+ # or
14
+ npm install @cossistant/react
15
+ # or
16
+ yarn add @cossistant/react
17
+ ```
18
+
19
+ ## Render the widget
20
+
21
+ ```tsx
22
+ import { SupportProvider, Support } from "@cossistant/react";
23
+
24
+ export function App() {
25
+ return (
26
+ <SupportProvider publicKey={process.env.NEXT_PUBLIC_COSSISTANT_KEY}>
27
+ <Support />
28
+ </SupportProvider>
29
+ );
30
+ }
31
+ ```
32
+
33
+ 1. Wrap the subtree that should access support data with `SupportProvider` and supply your public key (A Cossistant account is mandatory)
34
+ 2. Drop the `Support` component anywhere inside that provider to mount the floating widget.
35
+ 3. Optionally pass `defaultOpen`, `quickOptions`, `defaultMessages`, or locale overrides straight into `Support` for instant personalization.
36
+
37
+ ### Identify visitors and seed defaults
38
+
39
+ Use the helper components to identify a visitor, attach metadata or display different default messages or quick options.
40
+
41
+ ```tsx
42
+ import {
43
+ IdentifySupportVisitor,
44
+ Support,
45
+ SupportConfig,
46
+ SupportProvider,
47
+ SenderType,
48
+ } from "@cossistant/react";
49
+
50
+ export function Dashboard({
51
+ visitor,
52
+ }: {
53
+ visitor: { id: string; email: string };
54
+ }) {
55
+ return (
56
+ <>
57
+ <IdentifySupportVisitor externalId={visitor.id} email={visitor.email} />
58
+ <SupportConfig
59
+ defaultMessages={[
60
+ {
61
+ content:
62
+ "Welcome in our your dashboard, if you need any help I'm here!",
63
+ senderType: SenderType.TeamMember,
64
+ },
65
+ ]}
66
+ />
67
+ </>
68
+ );
69
+ }
70
+ ```
71
+
72
+ ## Need help or spot a typo?
73
+
74
+ Open an issue in the main repository or start a discussion so we can improve the docs together. Screenshots, reproduction steps, and suggestions are welcome.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cossistant/react",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "author": "Cossistant team",
6
6
  "description": "Headless React SDK for building AI-powered support/chat widgets. Hooks + primitives, WS-driven, TypeScript-first. Next.js-ready, Tailwind optional.",
@@ -82,6 +82,8 @@
82
82
  "dependencies": {
83
83
  "@cossistant/core": "workspace:*",
84
84
  "@cossistant/types": "workspace:*",
85
+ "class-variance-authority": "^0.7.1",
86
+ "clsx": "^2.1.1",
85
87
  "nanoid": "^5.1.5",
86
88
  "react-markdown": "^10.1.0",
87
89
  "react-use-websocket": "^4.13.0",
@@ -91,7 +93,7 @@
91
93
  "peerDependencies": {
92
94
  "react": ">=18 <20",
93
95
  "react-dom": ">=18 <20",
94
- "@types/react": "^18 || ^19",
96
+ "@types/react": "",
95
97
  "motion": "^12.18.1",
96
98
  "tailwindcss": "*"
97
99
  },
@@ -1,6 +1,6 @@
1
1
  import { AnyRealtimeEvent, RealtimeEvent } from "../realtime-events.js";
2
2
  import React from "react";
3
- import * as react_jsx_runtime11 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/realtime/provider.d.ts
6
6
  type SubscribeHandler = (event: AnyRealtimeEvent) => void;
@@ -50,7 +50,7 @@ declare function RealtimeProvider({
50
50
  onConnect,
51
51
  onDisconnect,
52
52
  onError
53
- }: RealtimeProviderProps): react_jsx_runtime11.JSX.Element;
53
+ }: RealtimeProviderProps): react_jsx_runtime0.JSX.Element;
54
54
  declare function useRealtimeConnection(): RealtimeContextValue;
55
55
  //#endregion
56
56
  export { type RealtimeAuthConfig, type RealtimeContextValue, type RealtimeEvent, RealtimeProvider, type RealtimeProviderProps, useRealtimeConnection };
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","names":[],"sources":["../../src/realtime/provider.tsx"],"sourcesContent":[],"mappings":";;;;;KAuBK,gBAAA,WAA2B;KA+B3B,iBAAA;;EA/BA,SAAA,EAAA,MAAA,GAAgB,IAAA;EA+BhB,SAAA,CAAA,EAAA,MAAA,GAAiB,IAAA;EAOjB,SAAA,CAAA,EAAA,MAAA,GAAiB,IAAA;AAAA,CAAA;KAAjB,iBAAA,GAOkB;MAAG,EAAA,SAAA;cAAoB,EAAA,MAAA,GAAA,IAAA;EAAiB,SAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAW1D,MAAA,CAAA,EAAA,MAAA,GAAA,IAAA;CAAqB;KAXrB,kBAAA,GAAqB,iBAYT,GAZ6B,iBAY7B;KADZ,qBAAA,GAGE;UAIY,EANR,KAAA,CAAM,SAME;EAAK,KAAA,CAAA,EAAA,MAAA;EAGnB,IAAA,EAPE,kBAOF,GAAuB,IAAA;EAAA,WAAA,CAAA,EAAA,OAAA;WAGpB,CAAA,EAAA,GAAA,GAAA,IAAA;cACO,CAAA,EAAA,GAAA,GAAA,IAAA;SAEO,CAAA,EAAA,CAAA,KAAA,EATH,KASG,EAAA,GAAA,IAAA;;KANjB,uBAAA,GAOuB;EAKvB,WAAA,EAAA,OAAA;EA2QW,YAAA,EAAA,OAAgB;EAAA,KAAA,EApRxB,KAoRwB,GAAA,IAAA;MAC/B,EAAA,CAAA,KAAA,EApRc,gBAoRd,EAAA,GAAA,IAAA;SACA,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,GAAA,IAAA;WACA,EAAA,CAAA,OAAA,EApRqB,gBAoRrB,EAAA,GAAA,GAAA,GAAA,IAAA;WACA,EApRW,gBAoRX,GAAA,IAAA;cACA,EAAA,MAAA,GAAA,IAAA;WACA,EAAA,GAAA,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,CAAA,OAAA,EApRqB,gBAoRrB,EAAA,GAAA,GAAA,GAAA,IAAA;WACA,EApRW,gBAoRX,GAAA,IAAA;cACA,EAAA,MAAA,GAAA,IAAA;WACA,EAAA,GAAA,GAAA,IAAA;;KAjRI,oBAAA,GAAuB,uBAmRzB,GAAA;WAAqB,EAAA,MAAA,GAAA,IAAA;EAAA,SAAA,EAAA,MAAA,GAAA,IAAA;EAmPR,MAAA,EAAA,MAAA,GAAA,IAAA;;iBA3PA,gBAAA;;;;;;;;GAQb,wBAAqB,kBAAA,CAAA,GAAA,CAAA;iBAmPR,qBAAA,CAAA,GAAyB"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/realtime/support-provider.d.ts
5
5
  type SupportRealtimeProviderProps = {
@@ -11,7 +11,7 @@ type SupportRealtimeProviderProps = {
11
11
  */
12
12
  declare function SupportRealtimeProvider({
13
13
  children
14
- }: SupportRealtimeProviderProps): react_jsx_runtime0.JSX.Element;
14
+ }: SupportRealtimeProviderProps): react_jsx_runtime2.JSX.Element;
15
15
  //#endregion
16
16
  export { SupportRealtimeProvider };
17
17
  //# sourceMappingURL=support-provider.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime1 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/support/components/avatar.d.ts
4
4
  declare function Avatar({
@@ -9,7 +9,7 @@ declare function Avatar({
9
9
  className?: string;
10
10
  image?: string | null;
11
11
  name: string;
12
- }): react_jsx_runtime1.JSX.Element;
12
+ }): react_jsx_runtime3.JSX.Element;
13
13
  //#endregion
14
14
  export { Avatar };
15
15
  //# sourceMappingURL=avatar.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime9 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
3
3
  import * as class_variance_authority_types0 from "class-variance-authority/types";
4
4
  import { VariantProps } from "class-variance-authority";
5
5
 
@@ -14,7 +14,7 @@ declare function Button({
14
14
  variant,
15
15
  size,
16
16
  ...props
17
- }: CossistantButtonProps): react_jsx_runtime9.JSX.Element;
17
+ }: CossistantButtonProps): react_jsx_runtime5.JSX.Element;
18
18
  //#endregion
19
19
  export { Button, CossistantButtonProps, coButtonVariants };
20
20
  //# sourceMappingURL=button.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime12 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/support/components/cossistant-branding.d.ts
4
4
  type CossistantLogoProps = {
@@ -6,7 +6,7 @@ type CossistantLogoProps = {
6
6
  };
7
7
  declare function CossistantLogo({
8
8
  className
9
- }: CossistantLogoProps): react_jsx_runtime12.JSX.Element;
9
+ }: CossistantLogoProps): react_jsx_runtime4.JSX.Element;
10
10
  //#endregion
11
11
  export { CossistantLogo };
12
12
  //# sourceMappingURL=cossistant-branding.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cossistant-branding.d.ts","names":[],"sources":["../../../src/support/components/cossistant-branding.tsx"],"sourcesContent":[],"mappings":";;;KAEK,mBAAA;;;AAAA,iBAIW,cAAA,CAJQ;EAAA;AAAA,CAAA,EAIsB,mBAJtB,CAAA,EAIyC,mBAAA,CAAA,GAAA,CAAA,OAJzC"}
1
+ {"version":3,"file":"cossistant-branding.d.ts","names":[],"sources":["../../../src/support/components/cossistant-branding.tsx"],"sourcesContent":[],"mappings":";;;KAEK,mBAAA;;;AAAA,iBAIW,cAAA,CAJQ;EAAA;AAAA,CAAA,EAIsB,mBAJtB,CAAA,EAIyC,kBAAA,CAAA,GAAA,CAAA,OAJzC"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime8 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/support/components/navigation-tab.d.ts
4
- declare function NavigationTab(): react_jsx_runtime8.JSX.Element;
4
+ declare function NavigationTab(): react_jsx_runtime6.JSX.Element;
5
5
  //#endregion
6
6
  export { NavigationTab };
7
7
  //# sourceMappingURL=navigation-tab.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime4 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
3
3
  import { Transition, Variants } from "motion/react";
4
4
 
5
5
  //#region src/support/components/text-effect.d.ts
@@ -43,7 +43,7 @@ declare function TextEffect({
43
43
  containerTransition,
44
44
  segmentTransition,
45
45
  style
46
- }: TextEffectProps): react_jsx_runtime4.JSX.Element;
46
+ }: TextEffectProps): react_jsx_runtime7.JSX.Element;
47
47
  //#endregion
48
48
  export { PerType, PresetType, TextEffect, TextEffectProps };
49
49
  //# sourceMappingURL=text-effect.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { TimelineItem } from "../../timeline-item.js";
2
- import * as react_jsx_runtime2 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/support/components/timeline-message-item.d.ts
5
5
  type TimelineMessageItemProps = {
@@ -11,7 +11,7 @@ declare function TimelineMessageItem({
11
11
  item,
12
12
  isLast,
13
13
  isSentByViewer
14
- }: TimelineMessageItemProps): react_jsx_runtime2.JSX.Element;
14
+ }: TimelineMessageItemProps): react_jsx_runtime11.JSX.Element;
15
15
  //#endregion
16
16
  export { TimelineMessageItem, TimelineMessageItemProps };
17
17
  //# sourceMappingURL=timeline-message-item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"timeline-message-item.d.ts","names":[],"sources":["../../../src/support/components/timeline-message-item.tsx"],"sourcesContent":[],"mappings":";;;;KAUY,wBAAA;QACL;;EADK,cAAA,CAAA,EAAA,OAAA;AAMZ,CAAA;AAAmC,iBAAnB,mBAAA,CAAmB;EAAA,IAAA;EAAA,MAAA;EAAA;AAAA,CAAA,EAIhC,wBAJgC,CAAA,EAIR,kBAAA,CAAA,GAAA,CAAA,OAJQ"}
1
+ {"version":3,"file":"timeline-message-item.d.ts","names":[],"sources":["../../../src/support/components/timeline-message-item.tsx"],"sourcesContent":[],"mappings":";;;;KAUY,wBAAA;QACL;;EADK,cAAA,CAAA,EAAA,OAAA;AAMZ,CAAA;AAAmC,iBAAnB,mBAAA,CAAmB;EAAA,IAAA;EAAA,MAAA;EAAA;AAAA,CAAA,EAIhC,wBAJgC,CAAA,EAIR,mBAAA,CAAA,GAAA,CAAA,OAJQ"}
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from "react";
2
2
  import { AvailableAIAgent, AvailableHumanAgent } from "@cossistant/types";
3
- import * as react_jsx_runtime7 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/support/components/typing-indicator.d.ts
6
6
  type TypingParticipantType = "visitor" | "team_member" | "ai";
@@ -14,7 +14,7 @@ type TypingIndicatorProps = React$1.HTMLAttributes<HTMLDivElement> & {
14
14
  availableHumanAgents?: AvailableHumanAgent[];
15
15
  withAvatars?: boolean;
16
16
  };
17
- declare const BouncingDots: () => react_jsx_runtime7.JSX.Element;
17
+ declare const BouncingDots: () => react_jsx_runtime9.JSX.Element;
18
18
  declare const TypingIndicator: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
19
19
  participants: TypingParticipant[];
20
20
  availableAIAgents?: AvailableAIAgent[];
@@ -4,7 +4,7 @@ import { useSupportConfig } from "./context/config.js";
4
4
  import { WebSocketContextValue, WebSocketProvider, useWebSocket } from "./context/websocket.js";
5
5
  import { useSupportStore } from "./store/support-store.js";
6
6
  import { DefaultMessage } from "@cossistant/types";
7
- import * as react_jsx_runtime3 from "react/jsx-runtime";
7
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
8
8
 
9
9
  //#region src/support/index.d.ts
10
10
  type SupportProps<Locale extends string = SupportLocale> = {
@@ -33,7 +33,7 @@ declare function Support<Locale extends string = SupportLocale>({
33
33
  defaultOpen,
34
34
  locale,
35
35
  content
36
- }: SupportProps<Locale>): react_jsx_runtime3.JSX.Element | null;
36
+ }: SupportProps<Locale>): react_jsx_runtime1.JSX.Element | null;
37
37
  //#endregion
38
38
  export { Support, Support as default, type SupportLocale, SupportProps, type SupportTextContentOverrides, Text, type WebSocketContextValue, WebSocketProvider, useSupportConfig, useSupportStore, useSupportText, useWebSocket };
39
39
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { TimelineItem } from "../../timeline-item.js";
2
- import * as react_jsx_runtime10 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/support/pages/conversation.d.ts
5
5
  type ConversationPageProps = {
@@ -26,7 +26,7 @@ declare const ConversationPage: ({
26
26
  conversationId: initialConversationId,
27
27
  initialMessage,
28
28
  items: passedItems
29
- }: ConversationPageProps) => react_jsx_runtime10.JSX.Element;
29
+ }: ConversationPageProps) => react_jsx_runtime8.JSX.Element;
30
30
  //#endregion
31
31
  export { ConversationPage };
32
32
  //# sourceMappingURL=conversation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","names":[],"sources":["../../../src/support/pages/conversation.tsx"],"sourcesContent":[],"mappings":";;;;KAUK,qBAAA;;;AAVmE;EAiC3D,cAAA,EAAA,MA+EZ;EAAA;;;gBA/EgC,CAAA,EAAA,MAAA;;;;UATxB;;;;;;;;cASI;kBAAoB;;SAAA;GAI9B,0BAAqB,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"conversation.d.ts","names":[],"sources":["../../../src/support/pages/conversation.tsx"],"sourcesContent":[],"mappings":";;;;KAUK,qBAAA;;;AAVmE;EAiC3D,cAAA,EAAA,MA+EZ;EAAA;;;gBA/EgC,CAAA,EAAA,MAAA;;;;UATxB;;;;;;;;cASI;kBAAoB;;SAAA;GAI9B,0BAAqB,kBAAA,CAAA,GAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/support/pages/home.d.ts
4
4
 
@@ -14,7 +14,7 @@ import * as react_jsx_runtime5 from "react/jsx-runtime";
14
14
  *
15
15
  * All logic is handled by the useHomePage hook.
16
16
  */
17
- declare const HomePage: () => react_jsx_runtime5.JSX.Element;
17
+ declare const HomePage: () => react_jsx_runtime10.JSX.Element;
18
18
  //#endregion
19
19
  export { HomePage };
20
20
  //# sourceMappingURL=home.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"home.d.ts","names":[],"sources":["../../../src/support/pages/home.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA0BA;;;;;;;;;cAAa,gBAAQ,kBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"home.d.ts","names":[],"sources":["../../../src/support/pages/home.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA0BA;;;;;;;;;cAAa,gBAAQ,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { SupportLocale, SupportTextContentOverrides, SupportTextDefinitions, SupportTextKey, SupportTextResolvedFormatter, SupportTextVariables } from "./locales/keys.js";
2
2
  import React from "react";
3
- import * as react_jsx_runtime6 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/support/text/index.d.ts
6
6
  type SupportTextProviderProps<Locale extends string = SupportLocale> = {
@@ -12,7 +12,7 @@ declare function SupportTextProvider<Locale extends string = SupportLocale>({
12
12
  children,
13
13
  locale,
14
14
  content
15
- }: SupportTextProviderProps<Locale>): react_jsx_runtime6.JSX.Element;
15
+ }: SupportTextProviderProps<Locale>): react_jsx_runtime12.JSX.Element;
16
16
  declare function useSupportText(): SupportTextResolvedFormatter;
17
17
  type OptionalVariablesProp<K extends SupportTextKey> = SupportTextDefinitions[K]["variables"] extends undefined ? {
18
18
  variables?: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/support/text/index.tsx"],"sourcesContent":[],"mappings":";;;;;KAwBK,iDAAiD;EAAjD,QAAA,EACM,KAAA,CAAM,SADZ;EAAwB,MAAA,CAAA,EAEnB,MAFmB;SAAyB,CAAA,EAG3C,2BAH2C,CAGf,MAHe,CAAA;;AAE5C,iBAOM,mBAPN,CAAA,eAAA,MAAA,GAOkD,aAPlD,CAAA,CAAA;EAAA,QAAA;EAAA,MAAA;EAAA;AAAA,CAAA,EAWP,wBAXO,CAWkB,MAXlB,CAAA,CAAA,EAWyB,kBAAA,CAAA,GAAA,CAAA,OAXzB;AAC6B,iBA+EvB,cAAA,CAAA,CA/EuB,EA+EL,4BA/EK;KAwFlC,qBAxFM,CAAA,UAwF0B,cAxF1B,CAAA,GAyFV,sBAzFU,CAyFa,CAzFb,CAAA,CAAA,WAAA,CAAA,SAAA,SAAA,GAAA;EAA2B,SAAA,CAAA,EAAA,SAAA;AAMtC,CAAA,GAAgB,UAAA,SAAA,MAqFa,sBArFM,CAqFiB,CArFjB,CAAA,GAsF9B,sBAtF8B,CAsFP,CAtFO,CAAA,CAAA,UAAA,CAAA,SAAA,IAAA,GAAA;EAAA,SAAA,CAAA,EAuFf,oBAvFe,CAuFM,CAvFN,CAAA;;WAClC,EAuFkB,oBAvFlB,CAuFuC,CAvFvC,CAAA;;WAEA,EAsFiB,oBAtFjB,CAsFsC,CAtFtC,CAAA;;KAwFI,SAvFF,CAAA,UAwFQ,cAxFR,EAAA,WAAA,MAyFe,KAAA,CAAM,GAAA,CAAI,iBAzFzB,GAAA,MAAA,CAAA,GA0FC,qBA1FD,CA0FuB,CA1FvB,CAAA,GAAA;SAAgC,EA2FzB,CA3FyB;EAAA,EAAA,CAAA,EA4F7B,EA5F6B;AAqEnC,CAAA,GAwBI,IAxBY,CAwBP,KAAA,CAAM,wBAx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