@inflatable-cookie/longhorn-poodle-svelte 0.1.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.
Files changed (86) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -0
  3. package/package.json +171 -0
  4. package/src/bindings/index.ts +4 -0
  5. package/src/bindings/layout.svelte.ts +143 -0
  6. package/src/bindings/lifecycle.svelte.ts +246 -0
  7. package/src/bindings/optimistic.svelte.ts +96 -0
  8. package/src/bindings/scheduler.ts +13 -0
  9. package/src/bindings/surface-transfer-actions.ts +281 -0
  10. package/src/bindings/surface-transfer.svelte.ts +230 -0
  11. package/src/bindings/surfaces.svelte.ts +179 -0
  12. package/src/bindings/transfer-actions.ts +240 -0
  13. package/src/bindings/transfer-model.ts +138 -0
  14. package/src/bindings/transfer.svelte.ts +388 -0
  15. package/src/bindings/window-chrome.ts +63 -0
  16. package/src/bindings/window-drag.ts +161 -0
  17. package/src/commands/poodle/CommandPaletteBinding.svelte +51 -0
  18. package/src/commands/poodle/KeybindingSettings.svelte +138 -0
  19. package/src/commands/poodle/projectors.ts +37 -0
  20. package/src/commands/poodle.ts +9 -0
  21. package/src/commands/svelte/lifecycle.ts +13 -0
  22. package/src/commands/svelte/session.svelte.ts +212 -0
  23. package/src/commands/svelte.ts +2 -0
  24. package/src/config/poodle/BackupSettingsPage.svelte +295 -0
  25. package/src/config/poodle/RestoreSettingsPage.svelte +535 -0
  26. package/src/config/poodle/StorageSettingsPage.svelte +361 -0
  27. package/src/config/poodle/restore-model.ts +63 -0
  28. package/src/config/poodle/types.ts +11 -0
  29. package/src/config/poodle.ts +8 -0
  30. package/src/history/svelte/lifecycle.ts +13 -0
  31. package/src/history/svelte/session.svelte.ts +97 -0
  32. package/src/history/svelte.ts +2 -0
  33. package/src/history-tree/svelte/lifecycle.ts +11 -0
  34. package/src/history-tree/svelte/session.svelte.ts +27 -0
  35. package/src/history-tree/svelte.ts +3 -0
  36. package/src/licence/poodle/LicenceActivation.svelte +62 -0
  37. package/src/licence/poodle/LicenceSeats.svelte +57 -0
  38. package/src/licence/poodle/LicenceStatus.svelte +34 -0
  39. package/src/licence/poodle/LicenceSurface.svelte.ts +43 -0
  40. package/src/licence/poodle.ts +3 -0
  41. package/src/native-content/index.ts +4 -0
  42. package/src/native-content/lifecycle.ts +13 -0
  43. package/src/native-content/session.svelte.ts +526 -0
  44. package/src/native-content/viewport.ts +27 -0
  45. package/src/native-content/visibility.ts +19 -0
  46. package/src/notifications/poodle/NotificationPanel.svelte +66 -0
  47. package/src/notifications/poodle/NotificationToastHost.svelte +40 -0
  48. package/src/notifications/poodle/NotificationToastStack.svelte +22 -0
  49. package/src/notifications/poodle/projectors.ts +30 -0
  50. package/src/notifications/poodle.ts +4 -0
  51. package/src/notifications/svelte/lifecycle.ts +11 -0
  52. package/src/notifications/svelte/session.svelte.ts +57 -0
  53. package/src/notifications/svelte.ts +2 -0
  54. package/src/operation/poodle/OperationPanel.svelte +200 -0
  55. package/src/operation/poodle/projectors.ts +78 -0
  56. package/src/operation/poodle.ts +2 -0
  57. package/src/operation/svelte/lifecycle.ts +13 -0
  58. package/src/operation/svelte/session.svelte.ts +80 -0
  59. package/src/operation/svelte.ts +2 -0
  60. package/src/poodle/LayoutDockRegion.svelte +148 -0
  61. package/src/poodle/LayoutSplitView.svelte +120 -0
  62. package/src/poodle/LayoutTabs.svelte +91 -0
  63. package/src/poodle/binding.ts +401 -0
  64. package/src/poodle/document.ts +117 -0
  65. package/src/poodle/index.ts +8 -0
  66. package/src/poodle/projectors.ts +125 -0
  67. package/src/poodle/transfer.ts +188 -0
  68. package/src/poodle/types.ts +89 -0
  69. package/src/settings/poodle/SettingsShell.svelte +382 -0
  70. package/src/settings/poodle.ts +2 -0
  71. package/src/settings/svelte/context.ts +61 -0
  72. package/src/settings/svelte/document.svelte.ts +202 -0
  73. package/src/settings/svelte/errors.ts +84 -0
  74. package/src/settings/svelte/lifecycle.ts +18 -0
  75. package/src/settings/svelte/page.svelte.ts +266 -0
  76. package/src/settings/svelte/runtime.svelte.ts +187 -0
  77. package/src/settings/svelte/scope.svelte.ts +123 -0
  78. package/src/settings/svelte/session.svelte.ts +288 -0
  79. package/src/settings/svelte/types.ts +90 -0
  80. package/src/settings/svelte.ts +6 -0
  81. package/src/svelte.d.ts +6 -0
  82. package/src/update/poodle/UpdateCentre.svelte +64 -0
  83. package/src/update/poodle/UpdateSettings.svelte +64 -0
  84. package/src/update/poodle/UpdateStatus.svelte +51 -0
  85. package/src/update/poodle/UpdateSurface.svelte.ts +88 -0
  86. package/src/update/poodle.ts +3 -0
@@ -0,0 +1,179 @@
1
+ import {
2
+ SurfaceClient,
3
+ type SurfaceMutationRequest,
4
+ type SurfaceMutationResponse,
5
+ type SurfaceSnapshot,
6
+ } from "@inflatable-cookie/longhorn/surfaces";
7
+
8
+ import {
9
+ OptimisticProjectionState,
10
+ ReactiveClientState,
11
+ UnsupportedCapabilityError,
12
+ type ClientStatus,
13
+ type OptimisticProjector,
14
+ } from "./index.ts";
15
+
16
+ export type SurfaceMutationOperation =
17
+ | { readonly requestId: string; readonly status: "pending" }
18
+ | {
19
+ readonly requestId: string;
20
+ readonly status: "committed" | "rejected";
21
+ readonly response: SurfaceMutationResponse;
22
+ }
23
+ | {
24
+ readonly requestId: string;
25
+ readonly status: "failed";
26
+ readonly error: unknown;
27
+ };
28
+
29
+ export interface SurfaceStateOptions {
30
+ readonly client?: SurfaceClient;
31
+ readonly unsupportedReason?: string;
32
+ }
33
+
34
+ export class SurfaceState {
35
+ readonly #client: SurfaceClient | undefined;
36
+ readonly #lifecycle: ReactiveClientState<SurfaceSnapshot>;
37
+ readonly #projection = new OptimisticProjectionState<
38
+ SurfaceSnapshot["document"]
39
+ >((document) => document.revision);
40
+ #operations = $state.raw<readonly SurfaceMutationOperation[]>([]);
41
+ #epoch: number | undefined;
42
+
43
+ constructor(options: SurfaceStateOptions) {
44
+ const client = options.client;
45
+ this.#client = client;
46
+ this.#lifecycle = new ReactiveClientState({
47
+ capability:
48
+ client === undefined
49
+ ? {
50
+ kind: "unsupported",
51
+ reason:
52
+ options.unsupportedReason ??
53
+ "Surface capability is unavailable",
54
+ }
55
+ : {
56
+ kind: "supported",
57
+ connect: (listener, onFailure) =>
58
+ client.subscribe(listener, onFailure),
59
+ },
60
+ onSnapshot: (snapshot) => this.#acceptSnapshot(snapshot),
61
+ });
62
+ }
63
+
64
+ get status(): ClientStatus {
65
+ return this.#lifecycle.status;
66
+ }
67
+
68
+ get snapshot(): SurfaceSnapshot | undefined {
69
+ const snapshot = this.#lifecycle.snapshot;
70
+ const document = this.#projection.authoritative;
71
+ if (snapshot === undefined || document === undefined) {
72
+ return snapshot;
73
+ }
74
+ return {
75
+ ...snapshot,
76
+ revision: document.revision,
77
+ document,
78
+ };
79
+ }
80
+
81
+ get projectedDocument(): SurfaceSnapshot["document"] | undefined {
82
+ return this.#projection.projected;
83
+ }
84
+
85
+ get pendingRequestIds(): readonly string[] {
86
+ return this.#projection.pendingRequestIds;
87
+ }
88
+
89
+ get operations(): readonly SurfaceMutationOperation[] {
90
+ return this.#operations;
91
+ }
92
+
93
+ start(): Promise<void> {
94
+ return this.#lifecycle.start();
95
+ }
96
+
97
+ reconnect(): Promise<void> {
98
+ return this.#lifecycle.reconnect();
99
+ }
100
+
101
+ async mutate(
102
+ request: SurfaceMutationRequest,
103
+ project: OptimisticProjector<SurfaceSnapshot["document"]>,
104
+ ): Promise<SurfaceMutationResponse> {
105
+ const client = this.#client;
106
+ if (client === undefined) {
107
+ const reason =
108
+ this.#lifecycle.status.kind === "unsupported"
109
+ ? this.#lifecycle.status.reason
110
+ : "Surface capability is unavailable";
111
+ throw new UnsupportedCapabilityError(reason);
112
+ }
113
+
114
+ const epoch = this.#epoch;
115
+ this.#projection.begin(request.request_id, project);
116
+ this.#setOperation({
117
+ requestId: request.request_id,
118
+ status: "pending",
119
+ });
120
+ try {
121
+ const response = await client.mutate(request);
122
+ const document =
123
+ response.status === "committed"
124
+ ? response.receipt.authoritative_document
125
+ : response.rejection.authoritative_document;
126
+ if (epoch !== undefined && this.#epoch === epoch) {
127
+ this.#projection.settle(request.request_id, document);
128
+ } else {
129
+ this.#projection.cancel(request.request_id);
130
+ }
131
+ this.#setOperation({
132
+ requestId: request.request_id,
133
+ status: response.status,
134
+ response,
135
+ });
136
+ return response;
137
+ } catch (error) {
138
+ this.#projection.cancel(request.request_id);
139
+ this.#setOperation({
140
+ requestId: request.request_id,
141
+ status: "failed",
142
+ error,
143
+ });
144
+ this.#lifecycle.fail(error);
145
+ throw error;
146
+ }
147
+ }
148
+
149
+ async stop(): Promise<void> {
150
+ this.#projection.clear();
151
+ this.#operations = [];
152
+ this.#epoch = undefined;
153
+ await this.#lifecycle.stop();
154
+ }
155
+
156
+ async destroy(): Promise<void> {
157
+ this.#projection.clear();
158
+ this.#operations = [];
159
+ this.#epoch = undefined;
160
+ await this.#lifecycle.destroy();
161
+ }
162
+
163
+ #acceptSnapshot(snapshot: SurfaceSnapshot): void {
164
+ if (this.#epoch !== snapshot.epoch) {
165
+ this.#projection.clear();
166
+ this.#epoch = snapshot.epoch;
167
+ }
168
+ this.#projection.accept(snapshot.document);
169
+ }
170
+
171
+ #setOperation(operation: SurfaceMutationOperation): void {
172
+ this.#operations = [
173
+ ...this.#operations.filter(
174
+ ({ requestId }) => requestId !== operation.requestId,
175
+ ),
176
+ operation,
177
+ ];
178
+ }
179
+ }
@@ -0,0 +1,240 @@
1
+ import {
2
+ TRANSFER_PROTOCOL_VERSION,
3
+ type ClientDropZone,
4
+ type TransferClientSnapshot,
5
+ type TransferLeaseRequest,
6
+ type TransferLeaseResponse,
7
+ } from "@inflatable-cookie/longhorn/transfer";
8
+
9
+ import type { TransferState } from "./transfer.svelte.ts";
10
+
11
+ export type DropZoneDefinition = Omit<ClientDropZone, "bounds">;
12
+
13
+ export type GeometryObserver = (
14
+ node: HTMLElement,
15
+ changed: () => void,
16
+ ) => () => void;
17
+
18
+ export interface DropZoneLeaseRegistryOptions {
19
+ readonly state: TransferState;
20
+ readonly nextRequestId: () => string;
21
+ readonly reportError: (error: unknown) => void;
22
+ readonly observeGeometry?: GeometryObserver;
23
+ }
24
+
25
+ export interface DropZoneAction {
26
+ update(definition: DropZoneDefinition): void;
27
+ destroy(): void;
28
+ }
29
+
30
+ type RegisteredZone = {
31
+ readonly node: HTMLElement;
32
+ definition: DropZoneDefinition;
33
+ stopObserving: () => void;
34
+ };
35
+
36
+ export class DropZoneLeaseRegistry {
37
+ readonly #options: DropZoneLeaseRegistryOptions;
38
+ readonly #zones = new Map<string, RegisteredZone>();
39
+ #tail: Promise<unknown> = Promise.resolve();
40
+ #active = false;
41
+ #destroyed = false;
42
+ #lastGeneration = 0;
43
+
44
+ constructor(options: DropZoneLeaseRegistryOptions) {
45
+ this.#options = options;
46
+ }
47
+
48
+ readonly zone = (
49
+ node: HTMLElement,
50
+ initialDefinition: DropZoneDefinition,
51
+ ): DropZoneAction => {
52
+ this.#assertAlive();
53
+ this.#assertUnique(initialDefinition.id);
54
+ const registration: RegisteredZone = {
55
+ node,
56
+ definition: initialDefinition,
57
+ stopObserving: () => undefined,
58
+ };
59
+ registration.stopObserving = (
60
+ this.#options.observeGeometry ?? observeElementGeometry
61
+ )(node, () => this.#schedulePublication());
62
+ this.#zones.set(initialDefinition.id, registration);
63
+ this.#schedulePublication();
64
+
65
+ return {
66
+ update: (definition) => {
67
+ this.#assertAlive();
68
+ if (definition.id !== registration.definition.id) {
69
+ this.#assertUnique(definition.id);
70
+ this.#zones.delete(registration.definition.id);
71
+ this.#zones.set(definition.id, registration);
72
+ }
73
+ registration.definition = definition;
74
+ this.#schedulePublication();
75
+ },
76
+ destroy: () => {
77
+ registration.stopObserving();
78
+ if (
79
+ this.#zones.get(registration.definition.id) === registration
80
+ ) {
81
+ this.#zones.delete(registration.definition.id);
82
+ this.#schedulePublication();
83
+ }
84
+ },
85
+ };
86
+ };
87
+
88
+ async start(): Promise<TransferLeaseResponse> {
89
+ this.#assertAlive();
90
+ this.#active = true;
91
+ return this.publish();
92
+ }
93
+
94
+ publish(): Promise<TransferLeaseResponse> {
95
+ return this.#serialize(async () => {
96
+ this.#assertAlive();
97
+ if (!this.#active) {
98
+ throw new DropZoneLeaseNotStartedError();
99
+ }
100
+ return this.#publishCurrent();
101
+ });
102
+ }
103
+
104
+ async destroy(): Promise<void> {
105
+ if (this.#destroyed) return;
106
+ this.#active = false;
107
+ this.#destroyed = true;
108
+ for (const registration of this.#zones.values()) {
109
+ registration.stopObserving();
110
+ }
111
+ this.#zones.clear();
112
+ await this.#serialize(() => this.#options.state.releaseLease());
113
+ }
114
+
115
+ #schedulePublication(): void {
116
+ if (!this.#active || this.#destroyed) return;
117
+ void this.#serialize(async () => {
118
+ if (!this.#active || this.#destroyed) return;
119
+ await this.#publishCurrent();
120
+ }).catch((error) => this.#report(error));
121
+ }
122
+
123
+ async #publishCurrent(): Promise<TransferLeaseResponse> {
124
+ const snapshot = this.#options.state.snapshot;
125
+ if (snapshot === undefined) {
126
+ throw new DropZoneLeaseSnapshotUnavailableError();
127
+ }
128
+ const generation = nextGeneration(snapshot, this.#lastGeneration);
129
+ const request: TransferLeaseRequest = {
130
+ protocol_version: TRANSFER_PROTOCOL_VERSION,
131
+ request_id: this.#options.nextRequestId(),
132
+ client_id: snapshot.client_id,
133
+ client_epoch: snapshot.client_epoch,
134
+ generation,
135
+ zones: [...this.#zones.values()].map(measureZone),
136
+ };
137
+ const response = await this.#options.state.publishLease(request);
138
+ if (response.status === "published") {
139
+ this.#lastGeneration = response.lease.generation;
140
+ }
141
+ return response;
142
+ }
143
+
144
+ #serialize<T>(operation: () => Promise<T>): Promise<T> {
145
+ const task = this.#tail.catch(() => undefined).then(operation);
146
+ this.#tail = task;
147
+ return task;
148
+ }
149
+
150
+ #assertUnique(id: string): void {
151
+ if (this.#zones.has(id)) {
152
+ throw new DuplicateDropZoneError(id);
153
+ }
154
+ }
155
+
156
+ #assertAlive(): void {
157
+ if (this.#destroyed) {
158
+ throw new DropZoneLeaseDestroyedError();
159
+ }
160
+ }
161
+
162
+ #report(error: unknown): void {
163
+ try {
164
+ this.#options.reportError(error);
165
+ } catch {
166
+ // Reporting failure must not poison later lease publications.
167
+ }
168
+ }
169
+ }
170
+
171
+ export class DuplicateDropZoneError extends Error {
172
+ constructor(id: string) {
173
+ super(`duplicate drop zone: ${id}`);
174
+ this.name = "DuplicateDropZoneError";
175
+ }
176
+ }
177
+
178
+ export class DropZoneLeaseNotStartedError extends Error {
179
+ constructor() {
180
+ super("drop-zone lease registry must be started before publication");
181
+ this.name = "DropZoneLeaseNotStartedError";
182
+ }
183
+ }
184
+
185
+ export class DropZoneLeaseSnapshotUnavailableError extends Error {
186
+ constructor() {
187
+ super("drop-zone lease publication requires a current client snapshot");
188
+ this.name = "DropZoneLeaseSnapshotUnavailableError";
189
+ }
190
+ }
191
+
192
+ export class DropZoneLeaseDestroyedError extends Error {
193
+ constructor() {
194
+ super("drop-zone lease registry has been destroyed");
195
+ this.name = "DropZoneLeaseDestroyedError";
196
+ }
197
+ }
198
+
199
+ function measureZone(registration: RegisteredZone): ClientDropZone {
200
+ const rect = registration.node.getBoundingClientRect();
201
+ for (const value of [rect.left, rect.top, rect.width, rect.height]) {
202
+ if (!Number.isFinite(value)) {
203
+ throw new RangeError("drop-zone geometry must be finite");
204
+ }
205
+ }
206
+ if (rect.width <= 0 || rect.height <= 0) {
207
+ throw new RangeError("drop-zone geometry must have positive extent");
208
+ }
209
+ return {
210
+ ...registration.definition,
211
+ bounds: {
212
+ origin: { x: rect.left, y: rect.top },
213
+ size: { width: rect.width, height: rect.height },
214
+ },
215
+ };
216
+ }
217
+
218
+ function nextGeneration(
219
+ snapshot: TransferClientSnapshot,
220
+ lastGeneration: number,
221
+ ): number {
222
+ const generation =
223
+ Math.max(snapshot.current_lease_generation ?? 0, lastGeneration) + 1;
224
+ if (!Number.isSafeInteger(generation)) {
225
+ throw new RangeError("drop-zone lease generation is exhausted");
226
+ }
227
+ return generation;
228
+ }
229
+
230
+ function observeElementGeometry(
231
+ node: HTMLElement,
232
+ changed: () => void,
233
+ ): () => void {
234
+ if (typeof ResizeObserver === "undefined") {
235
+ return () => undefined;
236
+ }
237
+ const observer = new ResizeObserver(changed);
238
+ observer.observe(node);
239
+ return () => observer.disconnect();
240
+ }
@@ -0,0 +1,138 @@
1
+ import type {
2
+ DragSessionId,
3
+ PanelSessionStartRequest,
4
+ PanelTransferCommand,
5
+ PanelTransferResponse,
6
+ TransferCancelRequest,
7
+ TransferCancelResponse,
8
+ TransferClient,
9
+ TransferClientSnapshot,
10
+ TransferLeaseReceipt,
11
+ TransferLeaseRequest,
12
+ TransferLeaseResponse,
13
+ TransferSessionResponse,
14
+ } from "@inflatable-cookie/longhorn/transfer";
15
+
16
+ import type { TimerScheduler } from "./scheduler.ts";
17
+
18
+ export type TransferPreparationState =
19
+ | { readonly status: "idle" }
20
+ | {
21
+ readonly status: "preparing";
22
+ readonly request: PanelSessionStartRequest;
23
+ }
24
+ | {
25
+ readonly status: "prepared";
26
+ readonly response: Extract<
27
+ TransferSessionResponse,
28
+ { status: "started" }
29
+ >;
30
+ }
31
+ | {
32
+ readonly status: "aborted";
33
+ readonly response: Extract<
34
+ TransferSessionResponse,
35
+ { status: "aborted" }
36
+ >;
37
+ }
38
+ | { readonly status: "timed_out"; readonly requestId: string }
39
+ | { readonly status: "failed"; readonly error: unknown };
40
+
41
+ export type TransferLeaseState =
42
+ | { readonly status: "idle" }
43
+ | { readonly status: "publishing"; readonly request: TransferLeaseRequest }
44
+ | {
45
+ readonly status: "published";
46
+ readonly response: Extract<
47
+ TransferLeaseResponse,
48
+ { status: "published" }
49
+ >;
50
+ }
51
+ | {
52
+ readonly status: "aborted";
53
+ readonly response: Extract<
54
+ TransferLeaseResponse,
55
+ { status: "aborted" }
56
+ >;
57
+ }
58
+ | { readonly status: "failed"; readonly error: unknown };
59
+
60
+ export type TransferCompletionState =
61
+ | { readonly status: "idle" }
62
+ | { readonly status: "committing"; readonly request: PanelTransferCommand }
63
+ | {
64
+ readonly status: "committed";
65
+ readonly response: Extract<
66
+ PanelTransferResponse,
67
+ { status: "committed" }
68
+ >;
69
+ }
70
+ | {
71
+ readonly status: "aborted";
72
+ readonly response: Extract<
73
+ PanelTransferResponse,
74
+ { status: "aborted" }
75
+ >;
76
+ }
77
+ | { readonly status: "failed"; readonly error: unknown };
78
+
79
+ export type TransferCancellationState =
80
+ | { readonly status: "idle" }
81
+ | { readonly status: "cancelling"; readonly request: TransferCancelRequest }
82
+ | {
83
+ readonly status: "cancelled";
84
+ readonly response: Extract<
85
+ TransferCancelResponse,
86
+ { status: "cancelled" }
87
+ >;
88
+ }
89
+ | {
90
+ readonly status: "aborted";
91
+ readonly response: Extract<
92
+ TransferCancelResponse,
93
+ { status: "aborted" }
94
+ >;
95
+ }
96
+ | { readonly status: "failed"; readonly error: unknown };
97
+
98
+ export interface TransferStateOptions {
99
+ readonly client?: TransferClient;
100
+ readonly unsupportedReason?: string;
101
+ readonly makeCancellationRequest: (
102
+ sessionId: DragSessionId,
103
+ ) => TransferCancelRequest;
104
+ readonly makeLeaseReleaseRequest?: (
105
+ snapshot: TransferClientSnapshot,
106
+ lease: TransferLeaseReceipt,
107
+ ) => TransferLeaseRequest;
108
+ readonly preparationTimeoutMs?: number;
109
+ readonly scheduler?: TimerScheduler;
110
+ }
111
+
112
+ export class LeaseReleaseUnavailableError extends Error {
113
+ constructor() {
114
+ super("published transfer lease has no teardown request factory");
115
+ this.name = "LeaseReleaseUnavailableError";
116
+ }
117
+ }
118
+
119
+ export class InvalidLeaseReleaseRequestError extends Error {
120
+ constructor() {
121
+ super("lease teardown must publish a newer empty replacement");
122
+ this.name = "InvalidLeaseReleaseRequestError";
123
+ }
124
+ }
125
+
126
+ export class LeaseReleaseRejectedError extends Error {
127
+ constructor() {
128
+ super("lease teardown replacement was rejected");
129
+ this.name = "LeaseReleaseRejectedError";
130
+ }
131
+ }
132
+
133
+ export class TransferStateNotStartedError extends Error {
134
+ constructor() {
135
+ super("transfer state must be ready before operations");
136
+ this.name = "TransferStateNotStartedError";
137
+ }
138
+ }