@snaptrude/plugin-core 0.5.0 → 0.6.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 (67) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/api-manifest.full.json +2044 -443
  3. package/api-manifest.json +2051 -394
  4. package/dist/api/analysis/heatmaps.d.ts +234 -0
  5. package/dist/api/analysis/heatmaps.d.ts.map +1 -0
  6. package/dist/api/analysis/illuminance.d.ts +145 -0
  7. package/dist/api/analysis/illuminance.d.ts.map +1 -0
  8. package/dist/api/analysis/index.d.ts +44 -0
  9. package/dist/api/analysis/index.d.ts.map +1 -0
  10. package/dist/api/analysis/shadows.d.ts +165 -0
  11. package/dist/api/analysis/shadows.d.ts.map +1 -0
  12. package/dist/api/analysis/sunlightHours.d.ts +208 -0
  13. package/dist/api/analysis/sunlightHours.d.ts.map +1 -0
  14. package/dist/api/analysis/sunpath.d.ts +80 -0
  15. package/dist/api/analysis/sunpath.d.ts.map +1 -0
  16. package/dist/api/core/index.d.ts +5 -0
  17. package/dist/api/core/index.d.ts.map +1 -1
  18. package/dist/api/core/io/import/index.d.ts +392 -0
  19. package/dist/api/core/io/import/index.d.ts.map +1 -0
  20. package/dist/api/core/io/index.d.ts +35 -0
  21. package/dist/api/core/io/index.d.ts.map +1 -0
  22. package/dist/api/core/io/job/index.d.ts +139 -0
  23. package/dist/api/core/io/job/index.d.ts.map +1 -0
  24. package/dist/api/core/io/query/index.d.ts +74 -0
  25. package/dist/api/core/io/query/index.d.ts.map +1 -0
  26. package/dist/api/core/io/terrain/index.d.ts +206 -0
  27. package/dist/api/core/io/terrain/index.d.ts.map +1 -0
  28. package/dist/api/core/io/underlay/index.d.ts +286 -0
  29. package/dist/api/core/io/underlay/index.d.ts.map +1 -0
  30. package/dist/api/core/layers.d.ts +7 -7
  31. package/dist/api/design/create/index.d.ts +9 -0
  32. package/dist/api/design/create/index.d.ts.map +1 -1
  33. package/dist/api/design/query/spaces.d.ts +3 -3
  34. package/dist/api/design/selection/index.d.ts +144 -0
  35. package/dist/api/design/selection/index.d.ts.map +1 -1
  36. package/dist/api/entity/space.d.ts +2 -2
  37. package/dist/api/index.d.ts +5 -0
  38. package/dist/api/index.d.ts.map +1 -1
  39. package/dist/api/program/site.d.ts +84 -0
  40. package/dist/api/program/site.d.ts.map +1 -1
  41. package/dist/handles.d.ts +33 -0
  42. package/dist/handles.d.ts.map +1 -1
  43. package/dist/index.cjs +1335 -987
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.js +1278 -983
  46. package/dist/index.js.map +1 -1
  47. package/package.json +1 -1
  48. package/scripts/generate-manifest.test.mjs +26 -4
  49. package/src/api/analysis/heatmaps.ts +256 -0
  50. package/src/api/analysis/illuminance.ts +155 -0
  51. package/src/api/analysis/index.ts +46 -0
  52. package/src/api/analysis/shadows.ts +183 -0
  53. package/src/api/analysis/sunlightHours.ts +211 -0
  54. package/src/api/analysis/sunpath.ts +83 -0
  55. package/src/api/core/index.ts +5 -0
  56. package/src/api/core/io/import/index.ts +432 -0
  57. package/src/api/core/io/index.ts +37 -0
  58. package/src/api/core/io/job/index.ts +140 -0
  59. package/src/api/core/io/query/index.ts +71 -0
  60. package/src/api/core/io/terrain/index.ts +214 -0
  61. package/src/api/core/io/underlay/index.ts +295 -0
  62. package/src/api/design/create/index.ts +9 -0
  63. package/src/api/design/erase/index.ts +1 -1
  64. package/src/api/design/selection/index.ts +129 -0
  65. package/src/api/index.ts +5 -0
  66. package/src/api/program/site.ts +93 -0
  67. package/src/handles.ts +46 -0
@@ -0,0 +1,392 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../../../types";
3
+ import { Vec3Handle, UnderlayHandle, TerrainHandle, ImportJobHandle, ComponentHandle } from "../../../../handles";
4
+ /**
5
+ * A file `source` accepted by every importer: an `https://` URL or a `data:`
6
+ * URL (base64). Validated for shape at the boundary — other schemes (`http:`,
7
+ * `blob:`, `file:`) are rejected, since the host page (HTTPS) cannot fetch them.
8
+ */
9
+ export declare const ImportSource: z.ZodString;
10
+ /**
11
+ * File import — bring external files into the Snaptrude **scene**.
12
+ *
13
+ * `core.io.import.*` ingests images, PDFs, CAD drawings, 3D models, and site
14
+ * terrain and commits them to the model as traceable underlays, placed geometry,
15
+ * or topography. It is the scene counterpart to `presentation.import.*` (which
16
+ * drops assets on the Present canvas, not the model).
17
+ *
18
+ * ## The `source` argument
19
+ * Every file importer takes a single `source` **string** — either an `https://`
20
+ * URL or a `data:` URL (base64). A plugin worker cannot hand a browser `File`
21
+ * across the boundary, so the host fetches `source` and rebuilds the `File`
22
+ * itself. Both forms go through the same path.
23
+ *
24
+ * ## Return values
25
+ * - `image` / `pdf` / `cadJson` → an {@linkcode UnderlayHandle} (a placed 2D
26
+ * reference plane; drive it with `core.io.underlay.*`).
27
+ * - `dwg` → an {@linkcode ImportJobHandle} — DWG conversion is a long server job,
28
+ * so `dwg` returns immediately and you poll it with `core.io.job.*`.
29
+ * - `model` → a {@linkcode ComponentHandle} (a placed 3D component).
30
+ * - `terrain` → a {@linkcode TerrainHandle} (the project's single site terrain).
31
+ *
32
+ * Every importer **throws** on failure (bad source, unsupported format, engine
33
+ * error). Accessed via `snaptrude.core.io.import`.
34
+ */
35
+ export declare abstract class PluginCoreIoImportApi {
36
+ constructor();
37
+ /**
38
+ * Import a raster image as a scene **underlay** — a flat, textured reference
39
+ * plane placed on a storey that you can trace over.
40
+ *
41
+ * Supported formats: PNG, JPG/JPEG, BMP. The image is placed on the target
42
+ * storey's "Image" layer at ~50% opacity by default.
43
+ *
44
+ * The plane is placed at the storey origin (the engine's import placement);
45
+ * there is no placement parameter — calibrate size with
46
+ * {@link PluginCoreIoUnderlayApi.setScale} after import.
47
+ *
48
+ * @param source - The image to import: an `https://` URL or a `data:` URL.
49
+ * @param storey - Target storey number. Defaults to the active storey.
50
+ * @param scale - Initial uniform scale factor applied to the plane. Calibrate
51
+ * precisely afterwards with {@link PluginCoreIoUnderlayApi.setScale}.
52
+ * @param opacity - Plane opacity, `0`..`1` (default ~`0.5`).
53
+ * @param label - A name for the created underlay.
54
+ * @returns the created {@linkcode UnderlayHandle}.
55
+ * @throws if writes are disabled, the source can't be loaded, the format is
56
+ * unsupported, or the engine fails to place the plane.
57
+ *
58
+ * @examplePrompt Import this floor plan image onto the ground floor to trace over
59
+ * @examplePrompt Drop this survey PNG in as a reference underlay at 30% opacity
60
+ * @examplePrompt Add a site plan image on storey 2
61
+ * @examplePrompt Bring in a sketch to trace, faded to half opacity
62
+ *
63
+ * # Example
64
+ * ```ts
65
+ * // Place a floor plan on storey 1, then calibrate it to a real-world size.
66
+ * const plan = await snaptrude.core.io.import.image(
67
+ * "https://example.com/floorplan.png",
68
+ * 1, // storey
69
+ * undefined, // scale
70
+ * 0.4, // opacity
71
+ * "Ground floor plan",
72
+ * )
73
+ * // Make the plan's longest side exactly 40 project-units:
74
+ * await snaptrude.core.io.underlay.setScale(plan, { planSize: 40 })
75
+ * ```
76
+ */
77
+ abstract image(source: string, storey?: number, scale?: number, opacity?: number, label?: string): PluginApiReturn<UnderlayHandle>;
78
+ /**
79
+ * Import one page of a PDF as a scene **underlay** (a traceable reference plane).
80
+ *
81
+ * One PDF per storey, one page per call. To bring in several pages, call once
82
+ * per page onto different storeys.
83
+ *
84
+ * @param source - The PDF to import: an `https://` URL or a `data:` URL.
85
+ * @param storey - Target storey number. Defaults to the active storey.
86
+ * @param page - 1-based page number to import (multi-page PDFs). Default `1`.
87
+ * @param scale - A drawing-scale **label** that sizes the page in real-world
88
+ * units, matching the project's unit mode: metric `"1:10"`..`"1:1000"` (e.g.
89
+ * `"1:100"`) or imperial `` `1/8" = 1'` `` / `` `1" = 10'` ``. Must be a valid
90
+ * label for the current unit mode (invalid → throws). Defaults to `"1:100"`
91
+ * in metric projects and `` `1" = 1'` `` in imperial projects. Re-calibrate
92
+ * afterwards with {@link PluginCoreIoUnderlayApi.setScale}.
93
+ * @param opacity - Plane opacity, `0`..`1` (default ~`0.5`).
94
+ * @returns the created {@linkcode UnderlayHandle}.
95
+ * @throws if writes are disabled, the source can't be loaded, the storey
96
+ * already has a PDF, the page is out of range, the scale label is invalid for
97
+ * the unit mode, or the engine fails.
98
+ *
99
+ * @examplePrompt Import page 1 of this PDF floor plan onto storey 1
100
+ * @examplePrompt Bring in the second page of this PDF as an underlay at 1:50
101
+ * @examplePrompt Add this PDF plan to the ground floor to trace over
102
+ * @examplePrompt Place page 3 of the drawing set on storey 3
103
+ *
104
+ * # Example
105
+ * ```ts
106
+ * const sheet = await snaptrude.core.io.import.pdf(
107
+ * "https://example.com/plans.pdf",
108
+ * 1, // storey
109
+ * 2, // page
110
+ * "1:100", // drawing scale
111
+ * )
112
+ * ```
113
+ */
114
+ abstract pdf(source: string, storey?: number, page?: number, scale?: string, opacity?: number): PluginApiReturn<UnderlayHandle>;
115
+ /**
116
+ * Import a **DWG** CAD drawing as a scene underlay. `.dwg` only (no DXF).
117
+ *
118
+ * DWG conversion runs on a server and can take minutes, so this **starts a job
119
+ * and returns immediately** with an {@linkcode ImportJobHandle}. One CAD
120
+ * import runs at a time: starting a second while one is in flight throws —
121
+ * poll the first job to completion first. Poll it with
122
+ * {@link PluginCoreIoJobApi.isComplete} / {@link PluginCoreIoJobApi.getStatus}, then call
123
+ * {@link PluginCoreIoJobApi.getResult} to get the placed {@linkcode UnderlayHandle}.
124
+ * For CAD you already have parsed as JSON, use {@link PluginCoreIoImportApi.cadJson}
125
+ * (synchronous, no server round-trip).
126
+ *
127
+ * All CAD layers are imported (there is no layer filter).
128
+ *
129
+ * @param source - The `.dwg` file: an `https://` URL or a `data:` URL.
130
+ * @param storey - Target storey number. Defaults to the active storey.
131
+ * @returns an {@linkcode ImportJobHandle} to poll via `core.io.job.*`.
132
+ * @throws if writes are disabled or the upload cannot be started. (Conversion
133
+ * failures surface later via {@link PluginCoreIoJobApi.getError}.)
134
+ *
135
+ * @examplePrompt Import this DWG floor plan onto storey 1
136
+ * @examplePrompt Bring in a CAD drawing as an underlay and tell me when it's ready
137
+ * @examplePrompt Start importing this CAD file onto the ground floor
138
+ *
139
+ * # Example
140
+ * ```ts
141
+ * const job = await snaptrude.core.io.import.dwg("https://example.com/plan.dwg", 1)
142
+ * // Poll until the server-side conversion finishes — always with a timeout
143
+ * // (a UI-cancelled import stays "processing" forever).
144
+ * const deadline = Date.now() + 5 * 60_000
145
+ * while (!(await snaptrude.core.io.job.isComplete(job))) {
146
+ * if (Date.now() > deadline) throw new Error("DWG import timed out")
147
+ * await new Promise((r) => setTimeout(r, 2000))
148
+ * }
149
+ * // The DWG lands as a CAD underlay. CAD scaling isn't supported; manage it
150
+ * // (list / fade / delete) via core.io.underlay.*.
151
+ * const cad = await snaptrude.core.io.job.getResult(job)
152
+ * if (cad) console.log("DWG imported as CAD underlay:", cad)
153
+ * ```
154
+ */
155
+ abstract dwg(source: string, storey?: number): PluginApiReturn<ImportJobHandle>;
156
+ /**
157
+ * Sketch a CAD underlay from **already-parsed CAD JSON** — synchronous, with no
158
+ * server round-trip. Use this when you hold parsed CAD data (e.g. produced by
159
+ * your own converter); use {@link PluginCoreIoImportApi.dwg} for raw `.dwg`
160
+ * files.
161
+ *
162
+ * All layers in the JSON are sketched (there is no layer filter), at the
163
+ * drawing's own coordinates.
164
+ *
165
+ * @param cad - The parsed CAD data: `{ unit, geometry: [...] }` describing the
166
+ * drawing's lines/arcs/layers.
167
+ * @param storey - Target storey number. Defaults to the active storey.
168
+ * @returns the created {@linkcode UnderlayHandle}.
169
+ * @throws if writes are disabled, the JSON yields no drawable geometry, or the
170
+ * drawing is out of bounds.
171
+ *
172
+ * @examplePrompt Sketch this parsed CAD JSON onto the active storey
173
+ * @examplePrompt Draw these CAD curves as an underlay on storey 2
174
+ * @examplePrompt Create a CAD sketch from this geometry data
175
+ * @examplePrompt Import my converted CAD JSON onto the ground floor
176
+ *
177
+ * # Example
178
+ * ```ts
179
+ * const cad = await snaptrude.core.io.import.cadJson(
180
+ * { unit: "mm", geometry: [{ type: "line", layer: "WALLS", ... }] },
181
+ * 1,
182
+ * )
183
+ * ```
184
+ */
185
+ abstract cadJson(cad: CadJsonInput, storey?: number): PluginApiReturn<UnderlayHandle>;
186
+ /**
187
+ * Import a **3D model** file and place it in the scene as a component.
188
+ *
189
+ * Supported formats: SketchUp (`.skp`), FBX (`.fbx`), OBJ (`.obj`), 3DS
190
+ * (`.3ds`), and zipped bundles (`.zip`). The file is converted on the server,
191
+ * then placed. `.glb`/`.gltf`/`.ifc`/`.stl` and Rhino/Revit are not supported.
192
+ *
193
+ * The model is placed at its source dimensions (interpreted in the file's own
194
+ * units); there is no import-time scale override.
195
+ *
196
+ * Unlike `dwg`, this call **waits for the server conversion**: a large model
197
+ * may exceed the 60-second call cap and reject at the API boundary while the
198
+ * import still completes in the background (the model then appears without a
199
+ * handle being returned — re-query the scene to find it). Keep sources small.
200
+ *
201
+ * @param source - The model file: an `https://` URL or a `data:` URL.
202
+ * @param storey - Target storey number. Defaults to the active storey.
203
+ * @param format - The file's format. Inferred from `source` when omitted.
204
+ * @param position - Where to place the model. Defaults to the storey origin.
205
+ * @param label - A name for the placed component.
206
+ * @returns the placed {@linkcode ComponentHandle}.
207
+ * @throws if writes are disabled, the source can't be loaded, the format is
208
+ * unsupported, conversion/placement fails, or the converted model cannot be
209
+ * found in the library after upload.
210
+ *
211
+ * @examplePrompt Import this SketchUp model onto storey 1
212
+ * @examplePrompt Bring in this OBJ file and place it at the origin
213
+ * @examplePrompt Add this 3D model to the ground floor
214
+ *
215
+ * # Example
216
+ * ```ts
217
+ * const model = await snaptrude.core.io.import.model(
218
+ * "https://example.com/tree.skp",
219
+ * 1, // storey
220
+ * "skp",
221
+ * )
222
+ * ```
223
+ */
224
+ abstract model(source: string, storey?: number, format?: ModelFormat, position?: Vec3Handle, label?: string): PluginApiReturn<ComponentHandle>;
225
+ /**
226
+ * Import **site terrain** for a location — Mapbox topography (elevation +
227
+ * satellite/streets imagery, optional neighborhood buildings and parcels).
228
+ *
229
+ * One terrain per project (a singleton). `width`/`length` describe the
230
+ * real-world extent of the area to load **in metres** (regardless of the
231
+ * project's unit mode); the host converts them to the right map zoom
232
+ * internally — you do not pass a zoom level.
233
+ *
234
+ * @param lat - Site latitude (degrees), `-90`..`90`.
235
+ * @param lng - Site longitude (degrees), `-180`..`180`.
236
+ * @param width - East–west extent of the area to load, in metres.
237
+ * @param length - North–south extent of the area to load, in metres.
238
+ * @param elevation - Include DEM elevation (a real terrain surface). Default `true`.
239
+ * @param satellite - Drape satellite imagery. Default `true`.
240
+ * @param neighborhood - Include surrounding context buildings. Default `false`.
241
+ * @param parcels - Include site parcel boundaries. Default `false`.
242
+ * @returns the created {@linkcode TerrainHandle}.
243
+ * @throws if writes are disabled, a terrain already exists, or the map/mesh
244
+ * generation fails.
245
+ *
246
+ * @examplePrompt Import the site terrain for this location, about 500m across
247
+ * @examplePrompt Load the topography at 40.7128, -74.0060 for a 300 by 300 meter site
248
+ * @examplePrompt Bring in satellite terrain for the site with the surrounding buildings
249
+ * @examplePrompt Add site elevation for a 1km by 1km area at these coordinates
250
+ *
251
+ * # Example
252
+ * ```ts
253
+ * // 300m × 300m site with elevation + satellite imagery.
254
+ * const terrain = await snaptrude.core.io.import.terrain(
255
+ * 40.7128, // lat
256
+ * -74.006, // lng
257
+ * 300, // width (metres)
258
+ * 300, // length (metres)
259
+ * true, // elevation
260
+ * true, // satellite
261
+ * )
262
+ * ```
263
+ */
264
+ abstract terrain(lat: number, lng: number, width: number, length: number, elevation?: boolean, satellite?: boolean, neighborhood?: boolean, parcels?: boolean): PluginApiReturn<TerrainHandle>;
265
+ }
266
+ /**
267
+ * Supported 3D model import formats. `.glb`/`.gltf`/`.ifc`/`.stl` and Rhino/Revit
268
+ * are intentionally excluded (no in-app import path).
269
+ */
270
+ export declare const ModelFormat: z.ZodEnum<{
271
+ skp: "skp";
272
+ fbx: "fbx";
273
+ obj: "obj";
274
+ "3ds": "3ds";
275
+ zip: "zip";
276
+ }>;
277
+ export type ModelFormat = z.infer<typeof ModelFormat>;
278
+ /**
279
+ * Parsed CAD JSON accepted by {@link PluginCoreIoImportApi.cadJson}. `unit` sets
280
+ * the drawing's length unit; `geometry` is the array of CAD entities (lines,
281
+ * polylines, arcs, circles), each tagged with its CAD `layer`. Additional fields
282
+ * are passed through untouched.
283
+ */
284
+ export declare const CadJsonInput: z.ZodObject<{
285
+ unit: z.ZodOptional<z.ZodString>;
286
+ geometry: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
287
+ }, z.core.$loose>;
288
+ export type CadJsonInput = z.infer<typeof CadJsonInput>;
289
+ /**
290
+ * Arguments for {@link PluginCoreIoImportApi.image}.
291
+ *
292
+ * | Property | Type | Description |
293
+ * |---|---|---|
294
+ * | `source` | `string` | Image `https://` URL or `data:` URL (png/jpg/jpeg/bmp) |
295
+ * | `storey` | `number`? | Target storey (default: active) |
296
+ * | `scale` | `number`? | Initial uniform scale |
297
+ * | `opacity` | `number`? | `0`..`1` (default ~`0.5`) |
298
+ * | `label` | `string`? | Name for the underlay |
299
+ */
300
+ export declare const PluginImportImageArgs: z.ZodObject<{
301
+ source: z.ZodString;
302
+ storey: z.ZodOptional<z.ZodNumber>;
303
+ scale: z.ZodOptional<z.ZodNumber>;
304
+ opacity: z.ZodOptional<z.ZodNumber>;
305
+ label: z.ZodOptional<z.ZodString>;
306
+ }, z.core.$strip>;
307
+ export type PluginImportImageArgs = z.infer<typeof PluginImportImageArgs>;
308
+ /**
309
+ * Arguments for {@link PluginCoreIoImportApi.pdf}.
310
+ *
311
+ * | Property | Type | Description |
312
+ * |---|---|---|
313
+ * | `source` | `string` | PDF `https://` URL or `data:` URL |
314
+ * | `storey` | `number`? | Target storey (default: active) |
315
+ * | `page` | `number`? | 1-based page (default `1`) |
316
+ * | `scale` | `string`? | Drawing-scale label, e.g. `"1:100"` |
317
+ * | `opacity` | `number`? | `0`..`1` (default ~`0.5`) |
318
+ */
319
+ export declare const PluginImportPdfArgs: z.ZodObject<{
320
+ source: z.ZodString;
321
+ storey: z.ZodOptional<z.ZodNumber>;
322
+ page: z.ZodOptional<z.ZodNumber>;
323
+ scale: z.ZodOptional<z.ZodString>;
324
+ opacity: z.ZodOptional<z.ZodNumber>;
325
+ }, z.core.$strip>;
326
+ export type PluginImportPdfArgs = z.infer<typeof PluginImportPdfArgs>;
327
+ /** Arguments for {@link PluginCoreIoImportApi.dwg}. */
328
+ export declare const PluginImportDwgArgs: z.ZodObject<{
329
+ source: z.ZodString;
330
+ storey: z.ZodOptional<z.ZodNumber>;
331
+ }, z.core.$strip>;
332
+ export type PluginImportDwgArgs = z.infer<typeof PluginImportDwgArgs>;
333
+ /** Arguments for {@link PluginCoreIoImportApi.cadJson}. */
334
+ export declare const PluginImportCadJsonArgs: z.ZodObject<{
335
+ cad: z.ZodObject<{
336
+ unit: z.ZodOptional<z.ZodString>;
337
+ geometry: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
338
+ }, z.core.$loose>;
339
+ storey: z.ZodOptional<z.ZodNumber>;
340
+ }, z.core.$strip>;
341
+ export type PluginImportCadJsonArgs = z.infer<typeof PluginImportCadJsonArgs>;
342
+ /**
343
+ * Arguments for {@link PluginCoreIoImportApi.model}.
344
+ *
345
+ * | Property | Type | Description |
346
+ * |---|---|---|
347
+ * | `source` | `string` | Model `https://` URL or `data:` URL |
348
+ * | `storey` | `number`? | Target storey (default: active) |
349
+ * | `format` | {@link ModelFormat}? | File format (inferred when omitted) |
350
+ * | `position` | {@link Vec3Handle}? | Placement (default: storey origin) |
351
+ * | `label` | `string`? | Name for the component |
352
+ */
353
+ export declare const PluginImportModelArgs: z.ZodObject<{
354
+ source: z.ZodString;
355
+ storey: z.ZodOptional<z.ZodNumber>;
356
+ format: z.ZodOptional<z.ZodEnum<{
357
+ skp: "skp";
358
+ fbx: "fbx";
359
+ obj: "obj";
360
+ "3ds": "3ds";
361
+ zip: "zip";
362
+ }>>;
363
+ position: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>>;
364
+ label: z.ZodOptional<z.ZodString>;
365
+ }, z.core.$strip>;
366
+ export type PluginImportModelArgs = z.infer<typeof PluginImportModelArgs>;
367
+ /**
368
+ * Arguments for {@link PluginCoreIoImportApi.terrain}.
369
+ *
370
+ * | Property | Type | Description |
371
+ * |---|---|---|
372
+ * | `lat` | `number` | Latitude (degrees), `-90`..`90` |
373
+ * | `lng` | `number` | Longitude (degrees), `-180`..`180` |
374
+ * | `width` | `number` | East–west extent, metres |
375
+ * | `length` | `number` | North–south extent, metres |
376
+ * | `elevation` | `boolean`? | Include DEM elevation (default `true`) |
377
+ * | `satellite` | `boolean`? | Drape satellite imagery (default `true`) |
378
+ * | `neighborhood` | `boolean`? | Include context buildings (default `false`) |
379
+ * | `parcels` | `boolean`? | Include parcel boundaries (default `false`) |
380
+ */
381
+ export declare const PluginImportTerrainArgs: z.ZodObject<{
382
+ lat: z.ZodNumber;
383
+ lng: z.ZodNumber;
384
+ width: z.ZodNumber;
385
+ length: z.ZodNumber;
386
+ elevation: z.ZodOptional<z.ZodBoolean>;
387
+ satellite: z.ZodOptional<z.ZodBoolean>;
388
+ neighborhood: z.ZodOptional<z.ZodBoolean>;
389
+ parcels: z.ZodOptional<z.ZodBoolean>;
390
+ }, z.core.$strip>;
391
+ export type PluginImportTerrainArgs = z.infer<typeof PluginImportTerrainArgs>;
392
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/io/import/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,UAAU,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,eAAe,EAChB,MAAM,qBAAqB,CAAA;AAE5B;;;;GAIG;AACH,eAAO,MAAM,YAAY,aAKrB,CAAA;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;aACa,KAAK,CACnB,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,MAAM,GACb,eAAe,CAAC,cAAc,CAAC;IAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;aACa,GAAG,CACjB,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,GACf,eAAe,CAAC,cAAc,CAAC;IAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;aACa,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,eAAe,CAAC;IAEtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;aACa,OAAO,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,cAAc,CAAC;IAE5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;aACa,KAAK,CACnB,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,WAAW,EACpB,QAAQ,CAAC,EAAE,UAAU,EACrB,KAAK,CAAC,EAAE,MAAM,GACb,eAAe,CAAC,eAAe,CAAC;IAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;aACa,OAAO,CACrB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,OAAO,EACnB,SAAS,CAAC,EAAE,OAAO,EACnB,YAAY,CAAC,EAAE,OAAO,EACtB,OAAO,CAAC,EAAE,OAAO,GAChB,eAAe,CAAC,aAAa,CAAC;CAClC;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;EAA8C,CAAA;AACtE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAErD;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;iBAKT,CAAA;AAChB,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAEvD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB;;;;;;iBAMhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB;;;;;;iBAM9B,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE,uDAAuD;AACvD,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE,2DAA2D;AAC3D,eAAO,MAAM,uBAAuB;;;;;;iBAGlC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;iBAMhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;iBASlC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
@@ -0,0 +1,35 @@
1
+ import { PluginCoreIoImportApi } from "./import";
2
+ import { PluginCoreIoJobApi } from "./job";
3
+ import { PluginCoreIoUnderlayApi } from "./underlay";
4
+ import { PluginCoreIoTerrainApi } from "./terrain";
5
+ import { PluginCoreIoQueryApi } from "./query";
6
+ /**
7
+ * I/O — bring external files into the project and manage what was imported.
8
+ *
9
+ * - {@linkcode PluginCoreIoApi.import} — import images, PDFs, CAD, 3D models, terrain
10
+ * - {@linkcode PluginCoreIoApi.query} — read source metadata before importing (pdf pages, cad layers)
11
+ * - {@linkcode PluginCoreIoApi.job} — poll long-running async imports (e.g. DWG)
12
+ * - {@linkcode PluginCoreIoApi.underlay} — inspect/scale/opacity/delete placed underlays
13
+ * - {@linkcode PluginCoreIoApi.terrain} — inspect/edit the site terrain (datum, layers, delete)
14
+ *
15
+ * Accessed via `snaptrude.core.io`.
16
+ */
17
+ export declare abstract class PluginCoreIoApi {
18
+ /** Import external files into the scene. See {@linkcode PluginCoreIoImportApi}. */
19
+ abstract import: PluginCoreIoImportApi;
20
+ /** Read source metadata before import. See {@linkcode PluginCoreIoQueryApi}. */
21
+ abstract query: PluginCoreIoQueryApi;
22
+ /** Poll long-running import jobs. See {@linkcode PluginCoreIoJobApi}. */
23
+ abstract job: PluginCoreIoJobApi;
24
+ /** Inspect and edit placed underlays. See {@linkcode PluginCoreIoUnderlayApi}. */
25
+ abstract underlay: PluginCoreIoUnderlayApi;
26
+ /** Inspect and manage the site terrain. See {@linkcode PluginCoreIoTerrainApi}. */
27
+ abstract terrain: PluginCoreIoTerrainApi;
28
+ constructor();
29
+ }
30
+ export * from "./import";
31
+ export * from "./job";
32
+ export * from "./underlay";
33
+ export * from "./terrain";
34
+ export * from "./query";
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/io/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAE9C;;;;;;;;;;GAUG;AACH,8BAAsB,eAAe;IACnC,mFAAmF;IACnF,SAAgB,MAAM,EAAE,qBAAqB,CAAA;IAC7C,gFAAgF;IAChF,SAAgB,KAAK,EAAE,oBAAoB,CAAA;IAC3C,yEAAyE;IACzE,SAAgB,GAAG,EAAE,kBAAkB,CAAA;IACvC,kFAAkF;IAClF,SAAgB,QAAQ,EAAE,uBAAuB,CAAA;IACjD,mFAAmF;IACnF,SAAgB,OAAO,EAAE,sBAAsB,CAAA;;CAGhD;AAED,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,139 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../../../types";
3
+ import { ImportJobHandle, UnderlayHandle } from "../../../../handles";
4
+ /**
5
+ * Import jobs — poll a long-running asynchronous import.
6
+ *
7
+ * Some imports run on a server and take a while (today: `core.io.import.dwg`,
8
+ * whose DWG → Snaptrude conversion can take minutes). Those importers return an
9
+ * {@linkcode ImportJobHandle} immediately instead of blocking; you drive the job
10
+ * to completion here:
11
+ *
12
+ * 1. poll {@link PluginCoreIoJobApi.isComplete} (or read {@link PluginCoreIoJobApi.getStatus}),
13
+ * 2. once complete, call {@link PluginCoreIoJobApi.getResult} for the placed handle,
14
+ * 3. or read {@link PluginCoreIoJobApi.getError} if it failed.
15
+ *
16
+ * **Always poll with a timeout.** If the import is cancelled from the app UI
17
+ * (or the tab reloads mid-conversion), the job never reaches a terminal state
18
+ * and `getStatus` keeps returning `"processing"` — an unbounded poll loop would
19
+ * spin forever. Give up after a few minutes and surface that to the user.
20
+ *
21
+ * Accessed via `snaptrude.core.io.job`.
22
+ */
23
+ export declare abstract class PluginCoreIoJobApi {
24
+ constructor();
25
+ /**
26
+ * Read a job's current status: `"pending"` (queued), `"processing"` (running),
27
+ * `"complete"` (result ready), or `"failed"`.
28
+ *
29
+ * Limitation: a job cancelled from the app UI never turns `"failed"` — it
30
+ * stays `"processing"` indefinitely. Bound your poll loop with a timeout.
31
+ *
32
+ * @param job - The import job to inspect.
33
+ * @returns the {@linkcode ImportJobStatus}.
34
+ * @throws {@link HandleInvalidError} if the job handle is unknown.
35
+ *
36
+ * @examplePrompt What's the status of my DWG import?
37
+ * @examplePrompt Is the CAD import still processing?
38
+ * @examplePrompt Check where the import job is up to
39
+ * @examplePrompt Did the import job fail?
40
+ *
41
+ * # Example
42
+ * ```ts
43
+ * const job = await snaptrude.core.io.import.dwg(url, 1)
44
+ * console.log(await snaptrude.core.io.job.getStatus(job)) // "processing"
45
+ * ```
46
+ */
47
+ abstract getStatus(job: ImportJobHandle): PluginApiReturn<ImportJobStatus>;
48
+ /**
49
+ * Whether the job has finished successfully (status is `"complete"` and a
50
+ * result is ready). Returns `false` while pending/processing and on failure.
51
+ *
52
+ * @param job - The import job to inspect.
53
+ * @throws {@link HandleInvalidError} if the job handle is unknown.
54
+ *
55
+ * @examplePrompt Is the DWG import done yet?
56
+ * @examplePrompt Has the CAD import finished?
57
+ * @examplePrompt Tell me when the import job completes
58
+ * @examplePrompt Is my import ready?
59
+ *
60
+ * # Example
61
+ * ```ts
62
+ * const job = await snaptrude.core.io.import.dwg(url, 1)
63
+ * const deadline = Date.now() + 5 * 60_000 // cap the poll — see getStatus limitation
64
+ * while (!(await snaptrude.core.io.job.isComplete(job))) {
65
+ * if (Date.now() > deadline) throw new Error("DWG import timed out")
66
+ * await new Promise((r) => setTimeout(r, 2000))
67
+ * }
68
+ * ```
69
+ */
70
+ abstract isComplete(job: ImportJobHandle): PluginApiReturn<boolean>;
71
+ /**
72
+ * The imported result once the job is complete — the placed
73
+ * {@linkcode UnderlayHandle}. Returns `null` while the job is still
74
+ * pending/processing or if it failed (check {@link PluginCoreIoJobApi.getError}).
75
+ *
76
+ * @param job - The completed import job.
77
+ * @throws {@link HandleInvalidError} if the job handle is unknown.
78
+ *
79
+ * @examplePrompt Get the underlay from my finished DWG import
80
+ * @examplePrompt Give me the result of the CAD import job
81
+ * @examplePrompt Fetch the imported CAD sketch once it's ready
82
+ * @examplePrompt Return the handle for the completed import
83
+ *
84
+ * # Example
85
+ * ```ts
86
+ * const job = await snaptrude.core.io.import.dwg(url, 1)
87
+ * const deadline = Date.now() + 5 * 60_000
88
+ * while (!(await snaptrude.core.io.job.isComplete(job))) {
89
+ * if (Date.now() > deadline) throw new Error("DWG import timed out")
90
+ * await new Promise((r) => setTimeout(r, 2000))
91
+ * }
92
+ * // DWG results are CAD underlays (CAD scaling isn't supported); manage them
93
+ * // via core.io.underlay.* (list / setOpacity / delete).
94
+ * const cad = await snaptrude.core.io.job.getResult(job)
95
+ * if (cad) console.log("import complete:", cad)
96
+ * ```
97
+ */
98
+ abstract getResult(job: ImportJobHandle): PluginApiReturn<UnderlayHandle | null>;
99
+ /**
100
+ * The failure message if the job's status is `"failed"`; otherwise `null`.
101
+ *
102
+ * @param job - The import job to inspect.
103
+ * @throws {@link HandleInvalidError} if the job handle is unknown.
104
+ *
105
+ * @examplePrompt Why did my DWG import fail?
106
+ * @examplePrompt What went wrong with the CAD import?
107
+ * @examplePrompt Show the error from the failed import job
108
+ * @examplePrompt Did the import error out, and why?
109
+ *
110
+ * # Example
111
+ * ```ts
112
+ * const job = await snaptrude.core.io.import.dwg(url, 1)
113
+ * if ((await snaptrude.core.io.job.getStatus(job)) === "failed") {
114
+ * console.error(await snaptrude.core.io.job.getError(job))
115
+ * }
116
+ * ```
117
+ */
118
+ abstract getError(job: ImportJobHandle): PluginApiReturn<string | null>;
119
+ }
120
+ /** Lifecycle status of an asynchronous import job. */
121
+ export declare const ImportJobStatus: z.ZodEnum<{
122
+ pending: "pending";
123
+ processing: "processing";
124
+ complete: "complete";
125
+ failed: "failed";
126
+ }>;
127
+ export type ImportJobStatus = z.infer<typeof ImportJobStatus>;
128
+ /**
129
+ * Arguments for the `core.io.job.*` readers.
130
+ *
131
+ * | Property | Type | Description |
132
+ * |---|---|---|
133
+ * | `job` | {@link ImportJobHandle} | The import job to inspect |
134
+ */
135
+ export declare const PluginImportJobArgs: z.ZodObject<{
136
+ job: z.ZodPipe<z.ZodString, z.ZodTransform<ImportJobHandle, string>>;
137
+ }, z.core.$strip>;
138
+ export type PluginImportJobArgs = z.infer<typeof PluginImportJobArgs>;
139
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/io/job/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAErE;;;;;;;;;;;;;;;;;;GAkBG;AACH,8BAAsB,kBAAkB;;IAGtC;;;;;;;;;;;;;;;;;;;;;OAqBG;aACa,SAAS,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,CAAC,eAAe,CAAC;IAEjF;;;;;;;;;;;;;;;;;;;;;OAqBG;aACa,UAAU,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,CAAC,OAAO,CAAC;IAE1E;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;aACa,SAAS,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,CAAC,cAAc,GAAG,IAAI,CAAC;IAEvF;;;;;;;;;;;;;;;;;;OAkBG;aACa,QAAQ,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC;CAC/E;AAED,sDAAsD;AACtD,eAAO,MAAM,eAAe;;;;;EAA0D,CAAA;AACtF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;iBAE9B,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
@@ -0,0 +1,74 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../../../types";
3
+ import { CadJsonInput } from "../import";
4
+ /**
5
+ * Import queries — read metadata about a source **before** importing it.
6
+ *
7
+ * These reads let a plugin discover a source's shape before importing it:
8
+ * how many pages a PDF has (for `import.pdf`'s `page`), and which CAD layers a
9
+ * drawing defines (imports always bring in every layer — there is no filter —
10
+ * but the names tell you what the drawing contains).
11
+ *
12
+ * Accessed via `snaptrude.core.io.query`.
13
+ */
14
+ export declare abstract class PluginCoreIoQueryApi {
15
+ constructor();
16
+ /**
17
+ * Count the pages of a PDF without importing it. `null` if the source can't be
18
+ * read as a PDF.
19
+ *
20
+ * @param source - The PDF: an `https://` URL or a `data:` URL.
21
+ * @returns the page count, or `null`.
22
+ *
23
+ * @examplePrompt How many pages does this PDF have?
24
+ * @examplePrompt Count the pages in the drawing set before importing
25
+ * @examplePrompt Get the PDF page count
26
+ * @examplePrompt Is this a multi-page PDF, and how many?
27
+ *
28
+ * # Example
29
+ * ```ts
30
+ * const pages = await snaptrude.core.io.query.getPdfPageCount(url)
31
+ * for (let p = 1; p <= (pages ?? 0); p++) {
32
+ * await snaptrude.core.io.import.pdf(url, p, p) // one page per storey
33
+ * }
34
+ * ```
35
+ */
36
+ abstract getPdfPageCount(source: string): PluginApiReturn<number | null>;
37
+ /**
38
+ * List the distinct CAD layer names tagged on a parsed CAD JSON's entities.
39
+ * Read-only inspection: imports always bring in **every** layer (there is no
40
+ * layer filter on {@link core.io.import.dwg} / {@link core.io.import.cadJson}) —
41
+ * use the names to decide whether to import at all, or what to tell the user.
42
+ *
43
+ * @param cad - Parsed CAD JSON (same shape `import.cadJson` accepts).
44
+ * @returns the layer names (empty array if none).
45
+ *
46
+ * @examplePrompt What CAD layers are in this drawing?
47
+ * @examplePrompt List the layers before importing the CAD
48
+ * @examplePrompt Show the DWG layer names so I can pick which to import
49
+ * @examplePrompt Enumerate the CAD JSON layers
50
+ *
51
+ * # Example
52
+ * ```ts
53
+ * const layers = await snaptrude.core.io.query.listCadLayers(cad)
54
+ * if (layers.some((l) => l.toUpperCase().includes("WALL"))) {
55
+ * await snaptrude.core.io.import.cadJson(cad, 1) // all layers import together
56
+ * }
57
+ * ```
58
+ */
59
+ abstract listCadLayers(cad: CadJsonInput): PluginApiReturn<string[]>;
60
+ }
61
+ /** Arguments for {@link PluginCoreIoQueryApi.getPdfPageCount}. */
62
+ export declare const PluginQueryPdfPageCountArgs: z.ZodObject<{
63
+ source: z.ZodString;
64
+ }, z.core.$strip>;
65
+ export type PluginQueryPdfPageCountArgs = z.infer<typeof PluginQueryPdfPageCountArgs>;
66
+ /** Arguments for {@link PluginCoreIoQueryApi.listCadLayers}. */
67
+ export declare const PluginQueryCadLayersArgs: z.ZodObject<{
68
+ cad: z.ZodObject<{
69
+ unit: z.ZodOptional<z.ZodString>;
70
+ geometry: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
71
+ }, z.core.$loose>;
72
+ }, z.core.$strip>;
73
+ export type PluginQueryCadLayersArgs = z.infer<typeof PluginQueryCadLayersArgs>;
74
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/io/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC;;;;;;;;;GASG;AACH,8BAAsB,oBAAoB;;IAGxC;;;;;;;;;;;;;;;;;;;OAmBG;aACa,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC;IAE/E;;;;;;;;;;;;;;;;;;;;;OAqBG;aACa,aAAa,CAAC,GAAG,EAAE,YAAY,GAAG,eAAe,CAAC,MAAM,EAAE,CAAC;CAC5E;AAED,kEAAkE;AAClE,eAAO,MAAM,2BAA2B;;iBAA0C,CAAA;AAClF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAErF,gEAAgE;AAChE,eAAO,MAAM,wBAAwB;;;;;iBAAkC,CAAA;AACvE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}