@prisma/orm-extension-postgis 0.16.0-dev.36
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/LICENSE +201 -0
- package/README.md +32 -0
- package/dist/codec-types-M7J4vkfS-DOzWmEmw.d.mts +49 -0
- package/dist/codec-types-M7J4vkfS-DOzWmEmw.d.mts.map +1 -0
- package/dist/codec-types.d.mts +2 -0
- package/dist/codec-types.mjs +1 -0
- package/dist/column-types.d.mts +27 -0
- package/dist/column-types.d.mts.map +1 -0
- package/dist/column-types.mjs +34 -0
- package/dist/column-types.mjs.map +1 -0
- package/dist/constants-CWW72xGt-hJye3Dua.mjs +6 -0
- package/dist/constants-CWW72xGt-hJye3Dua.mjs.map +1 -0
- package/dist/control.d.mts +7 -0
- package/dist/control.d.mts.map +1 -0
- package/dist/control.mjs +143 -0
- package/dist/control.mjs.map +1 -0
- package/dist/descriptor-meta-deM0Qc_b-FRxKhllA.mjs +604 -0
- package/dist/descriptor-meta-deM0Qc_b-FRxKhllA.mjs.map +1 -0
- package/dist/errors-Bg6kDFR--BUzKMn1A.mjs +9 -0
- package/dist/errors-Bg6kDFR--BUzKMn1A.mjs.map +1 -0
- package/dist/geojson-L3qRlIZY-DLhY3CUa.d.mts +62 -0
- package/dist/geojson-L3qRlIZY-DLhY3CUa.d.mts.map +1 -0
- package/dist/geojson.d.mts +2 -0
- package/dist/geojson.mjs +89 -0
- package/dist/geojson.mjs.map +1 -0
- package/dist/operation-types-_DWme6Gj-DddnbZus.d.mts +123 -0
- package/dist/operation-types-_DWme6Gj-DddnbZus.d.mts.map +1 -0
- package/dist/operation-types.d.mts +2 -0
- package/dist/operation-types.mjs +1 -0
- package/dist/pack.d.mts +75 -0
- package/dist/pack.d.mts.map +1 -0
- package/dist/pack.mjs +2 -0
- package/dist/runtime.d.mts +19 -0
- package/dist/runtime.d.mts.map +1 -0
- package/dist/runtime.mjs +22 -0
- package/dist/runtime.mjs.map +1 -0
- package/package.json +55 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [2026] [Prisma Data, Inc]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @prisma/orm-extension-postgis
|
|
2
|
+
|
|
3
|
+
Geospatial columns, operators, and indexes for Prisma Next on PostgreSQL, powered by [PostGIS](https://postgis.net).
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
pnpm add @prisma/orm-extension-postgis
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Model points, lines, and polygons as first-class columns, query them with a type-safe DSL, and let the framework handle the wire format, SRID metadata, and `CREATE EXTENSION postgis`.
|
|
10
|
+
|
|
11
|
+
## Entrypoints
|
|
12
|
+
|
|
13
|
+
| Namespace | Surface |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| `/pack` | the extension pack an application composes into `extensions: [...]` — pure, no runtime imports |
|
|
16
|
+
| `/column-types` | the `Geometry(srid?)` column author |
|
|
17
|
+
| `/codec-types`, `/operation-types` | types emitted contracts reference |
|
|
18
|
+
| `/geojson` | GeoJSON value shapes for runtime reads and writes |
|
|
19
|
+
| `/runtime` | the runtime extension that registers codecs and operations |
|
|
20
|
+
| `/control` | the control descriptor that installs the PostGIS server extension |
|
|
21
|
+
|
|
22
|
+
## Responsibilities
|
|
23
|
+
|
|
24
|
+
Geometry storage and query semantics: the `geometry` column type and its SRID parameter, GeoJSON-shaped runtime values, seven query operations (`distance`, `distanceSphere`, `dwithin`, `contains`, `within`, `intersects`, `intersectsBbox`), and the database-dependency declaration that makes `prisma-next db init` enable PostGIS before the first migration runs. Works with both PSL and TypeScript contract authoring.
|
|
25
|
+
|
|
26
|
+
The PostGIS server extension must be installable on your PostgreSQL server. Most managed providers include it; locally, the `postgis/postgis` Docker image is the shortest route.
|
|
27
|
+
|
|
28
|
+
## Dependencies
|
|
29
|
+
|
|
30
|
+
`@prisma/orm-framework`, `@prisma/orm-family-sql`, and `@prisma/orm-toolchain` at exact lockstep versions, plus `arktype` and `@standard-schema/spec`.
|
|
31
|
+
|
|
32
|
+
`@prisma/orm-target-postgres` is an exact-pinned **peer** dependency: the application supplies it, directly or through a facade, and everyone shares that one copy. A hard dependency would let an application upgrade the facade without upgrading this pack and end up with two target copies whose codec and operation registries have quietly diverged; as a peer that combination fails to install instead.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { t as Geometry$1 } from "./geojson-L3qRlIZY-DLhY3CUa.mjs";
|
|
2
|
+
import { AnyCodecDescriptor, CodecCallContext, CodecImpl, CodecInstanceContext } from "@prisma/orm-framework/components/codec";
|
|
3
|
+
import { PostgresCodecDescriptor } from "@prisma/orm-target-postgres/target/codec-descriptor";
|
|
4
|
+
import { JsonValue } from "@prisma/orm-framework/contract/types";
|
|
5
|
+
import { ExtractCodecTypes, ProjectionExpr } from "@prisma/orm-family-sql/relational-core/ast";
|
|
6
|
+
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
|
+
//#region ../../../3-extensions/postgis/dist/codec-types-M7J4vkfS.d.mts
|
|
8
|
+
//#region src/core/constants.d.ts
|
|
9
|
+
declare const POSTGIS_GEOMETRY_CODEC_ID: "pg/geometry@1";
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/core/codecs.d.ts
|
|
12
|
+
type GeometryParams = {
|
|
13
|
+
readonly srid?: number;
|
|
14
|
+
};
|
|
15
|
+
declare class PostgisGeometryCodec extends CodecImpl<typeof POSTGIS_GEOMETRY_CODEC_ID, readonly ['equality'], string, Geometry$1> {
|
|
16
|
+
constructor(descriptor: AnyCodecDescriptor);
|
|
17
|
+
encode(value: Geometry$1, _ctx: CodecCallContext): Promise<string>;
|
|
18
|
+
decode(wire: string, _ctx: CodecCallContext): Promise<Geometry$1>;
|
|
19
|
+
encodeJson(value: Geometry$1): JsonValue;
|
|
20
|
+
decodeJson(json: JsonValue): Geometry$1;
|
|
21
|
+
}
|
|
22
|
+
declare class PostgisGeometryDescriptor extends PostgresCodecDescriptor<GeometryParams> {
|
|
23
|
+
protected nativeType(): string;
|
|
24
|
+
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
25
|
+
readonly codecId: "pg/geometry@1";
|
|
26
|
+
readonly traits: readonly ["equality"];
|
|
27
|
+
readonly targetTypes: readonly ["geometry"];
|
|
28
|
+
readonly paramsSchema: StandardSchemaV1<GeometryParams>;
|
|
29
|
+
renderOutputType(params: GeometryParams): string;
|
|
30
|
+
/**
|
|
31
|
+
* Runtime materialization uses an empty parameter object for the
|
|
32
|
+
* existing unparameterized `geometryColumn` variant and `{ srid }` for
|
|
33
|
+
* constrained columns. Both resolve to the same SRID-agnostic codec:
|
|
34
|
+
* the wire format already carries SRID inside the EWKT/EWKB payload,
|
|
35
|
+
* so codec behavior is parameter-independent.
|
|
36
|
+
*/
|
|
37
|
+
factory(_params: GeometryParams): (ctx: CodecInstanceContext) => PostgisGeometryCodec;
|
|
38
|
+
}
|
|
39
|
+
declare const codecDescriptorMap: {
|
|
40
|
+
readonly geometry: PostgisGeometryDescriptor;
|
|
41
|
+
};
|
|
42
|
+
type CodecTypes$1 = ExtractCodecTypes<typeof codecDescriptorMap>;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/types/codec-types.d.ts
|
|
45
|
+
type Geometry<_Srid extends number = number> = Geometry$1;
|
|
46
|
+
type CodecTypes = CodecTypes$1;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { Geometry as n, CodecTypes as t };
|
|
49
|
+
//# sourceMappingURL=codec-types-M7J4vkfS-DOzWmEmw.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-types-M7J4vkfS-DOzWmEmw.d.mts","names":[],"sources":["../../../../3-extensions/postgis/dist/codec-types-M7J4vkfS.d.mts"],"mappings":";;;;;;;;cAOc;;;KAGT;WACM;;cAEG,6BAA6B,iBAAiB,0DAA0D;EACpH,YAAY,YAAY;EACxB,OAAO,OAAO,YAAY,MAAM,mBAAmB;EACnD,OAAO,cAAc,MAAM,mBAAmB,QAAQ;EACtD,WAAW,OAAO,aAAa;EAC/B,WAAW,MAAM,YAAY;;cAEjB,kCAAkC,wBAAwB;YAC5D;YACA,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,cAAc,iBAAiB;EACxC,iBAAiB,QAAQ;;;;;;;;EAQzB,QAAQ,SAAS,kBAAkB,KAAK,yBAAyB;;cAErD;WACH,UAAU;;KAEhB,eAAe,yBAAyB;;;KAGxC,SAAS,iCAAiC;KAC1C,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ColumnTypeDescriptor } from "@prisma/orm-framework/components/codec";
|
|
2
|
+
//#region ../../../3-extensions/postgis/dist/column-types.d.mts
|
|
3
|
+
//#region src/exports/column-types.d.ts
|
|
4
|
+
declare const geometryColumn: {
|
|
5
|
+
readonly codecId: "pg/geometry@1";
|
|
6
|
+
readonly nativeType: "geometry";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Build an SRID-constrained geometry column descriptor.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* .column('location', { type: geometry({ srid: 4326 }), nullable: false })
|
|
13
|
+
* // Produces: nativeType: 'geometry', typeParams: { srid: 4326 }
|
|
14
|
+
*
|
|
15
|
+
* @throws If `srid` is not a non-negative integer
|
|
16
|
+
* (structured `CONTRACT.ARGUMENT_INVALID`).
|
|
17
|
+
*/
|
|
18
|
+
declare function geometry<S extends number>(options: {
|
|
19
|
+
readonly srid: S;
|
|
20
|
+
}): ColumnTypeDescriptor & {
|
|
21
|
+
readonly typeParams: {
|
|
22
|
+
readonly srid: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { geometry, geometryColumn };
|
|
27
|
+
//# sourceMappingURL=column-types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-types.d.mts","names":[],"sources":["../../../../3-extensions/postgis/dist/column-types.d.mts"],"mappings":";;;cAEc;WACH;WACA;;;;;;;;;;;;iBAYM,SAAS,kBAAkB;WACjC,MAAM;IACb;WACO;aACE,MAAM"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { t as POSTGIS_GEOMETRY_CODEC_ID } from "./constants-CWW72xGt-hJye3Dua.mjs";
|
|
2
|
+
import { t as postgisError } from "./errors-Bg6kDFR--BUzKMn1A.mjs";
|
|
3
|
+
//#region ../../../3-extensions/postgis/dist/column-types.mjs
|
|
4
|
+
const geometryColumn = {
|
|
5
|
+
codecId: POSTGIS_GEOMETRY_CODEC_ID,
|
|
6
|
+
nativeType: "geometry"
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Build an SRID-constrained geometry column descriptor.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* .column('location', { type: geometry({ srid: 4326 }), nullable: false })
|
|
13
|
+
* // Produces: nativeType: 'geometry', typeParams: { srid: 4326 }
|
|
14
|
+
*
|
|
15
|
+
* @throws If `srid` is not a non-negative integer
|
|
16
|
+
* (structured `CONTRACT.ARGUMENT_INVALID`).
|
|
17
|
+
*/
|
|
18
|
+
function geometry(options) {
|
|
19
|
+
const { srid } = options;
|
|
20
|
+
if (!Number.isInteger(srid) || srid < 0) throw postgisError("CONTRACT.ARGUMENT_INVALID", `postgis: srid must be a non-negative integer, got ${srid}`, { meta: {
|
|
21
|
+
helperPath: "geometry",
|
|
22
|
+
expected: "non-negative integer",
|
|
23
|
+
received: srid
|
|
24
|
+
} });
|
|
25
|
+
return {
|
|
26
|
+
codecId: POSTGIS_GEOMETRY_CODEC_ID,
|
|
27
|
+
nativeType: "geometry",
|
|
28
|
+
typeParams: { srid }
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { geometry, geometryColumn };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=column-types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-types.mjs","names":[],"sources":["../../../../3-extensions/postgis/dist/column-types.mjs"],"sourcesContent":["import { t as POSTGIS_GEOMETRY_CODEC_ID } from \"./constants-CWW72xGt.mjs\";\nimport { t as postgisError } from \"./errors-Bg6kDFR-.mjs\";\n//#region src/exports/column-types.ts\nconst geometryColumn = {\n\tcodecId: POSTGIS_GEOMETRY_CODEC_ID,\n\tnativeType: \"geometry\"\n};\n/**\n* Build an SRID-constrained geometry column descriptor.\n*\n* @example\n* .column('location', { type: geometry({ srid: 4326 }), nullable: false })\n* // Produces: nativeType: 'geometry', typeParams: { srid: 4326 }\n*\n* @throws If `srid` is not a non-negative integer\n* (structured `CONTRACT.ARGUMENT_INVALID`).\n*/\nfunction geometry(options) {\n\tconst { srid } = options;\n\tif (!Number.isInteger(srid) || srid < 0) throw postgisError(\"CONTRACT.ARGUMENT_INVALID\", `postgis: srid must be a non-negative integer, got ${srid}`, { meta: {\n\t\thelperPath: \"geometry\",\n\t\texpected: \"non-negative integer\",\n\t\treceived: srid\n\t} });\n\treturn {\n\t\tcodecId: POSTGIS_GEOMETRY_CODEC_ID,\n\t\tnativeType: \"geometry\",\n\t\ttypeParams: { srid }\n\t};\n}\n//#endregion\nexport { geometry, geometryColumn };\n\n//# sourceMappingURL=column-types.mjs.map"],"mappings":";;;AAGA,MAAM,iBAAiB;CACtB,SAAS;CACT,YAAY;AACb;;;;;;;;;;;AAWA,SAAS,SAAS,SAAS;CAC1B,MAAM,EAAE,SAAS;CACjB,IAAI,CAAC,OAAO,UAAU,IAAI,KAAK,OAAO,GAAG,MAAM,aAAa,6BAA6B,qDAAqD,QAAQ,EAAE,MAAM;EAC7J,YAAY;EACZ,UAAU;EACV,UAAU;CACX,EAAE,CAAC;CACH,OAAO;EACN,SAAS;EACT,YAAY;EACZ,YAAY,EAAE,KAAK;CACpB;AACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-CWW72xGt-hJye3Dua.mjs","names":[],"sources":["../../../../3-extensions/postgis/dist/constants-CWW72xGt.mjs"],"sourcesContent":["//#region src/core/constants.ts\nconst POSTGIS_GEOMETRY_CODEC_ID = \"pg/geometry@1\";\n//#endregion\nexport { POSTGIS_GEOMETRY_CODEC_ID as t };\n\n//# sourceMappingURL=constants-CWW72xGt.mjs.map"],"mappings":";AACA,MAAM,4BAA4B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SqlControlExtensionDescriptor } from "@prisma/orm-family-sql/family/control";
|
|
2
|
+
//#region ../../../3-extensions/postgis/dist/control.d.mts
|
|
3
|
+
//#region src/exports/control.d.ts
|
|
4
|
+
declare const postgisExtensionDescriptor: SqlControlExtensionDescriptor<'postgres'>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { postgisExtensionDescriptor as default, postgisExtensionDescriptor };
|
|
7
|
+
//# sourceMappingURL=control.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.d.mts","names":[],"sources":["../../../../3-extensions/postgis/dist/control.d.mts"],"mappings":";;;cAEc,4BAA4B"}
|
package/dist/control.mjs
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { t as POSTGIS_GEOMETRY_CODEC_ID } from "./constants-CWW72xGt-hJye3Dua.mjs";
|
|
2
|
+
import { n as postgisPackMeta, r as postgisQueryOperations } from "./descriptor-meta-deM0Qc_b-FRxKhllA.mjs";
|
|
3
|
+
import { contractSpaceFromJson } from "@prisma/orm-toolchain/migration-tools/spaces";
|
|
4
|
+
//#region ../../../3-extensions/postgis/dist/control.mjs
|
|
5
|
+
var migration_default = {
|
|
6
|
+
from: null,
|
|
7
|
+
to: "7e98a4d9437e6be2f2fa7fca02fbc01c245586997a937f97cab60788612512e5",
|
|
8
|
+
providedInvariants: ["postgis:install-postgis-v1"],
|
|
9
|
+
createdAt: "2026-06-01T00:00:00.000Z",
|
|
10
|
+
migrationHash: "f91b562a2f1a82f299a3690c001027729607c631c9b2d847aa3f6162539f0eff"
|
|
11
|
+
};
|
|
12
|
+
var ops_default = [{
|
|
13
|
+
"id": "postgis.install-postgis-extension",
|
|
14
|
+
"label": "Enable extension \"postgis\"",
|
|
15
|
+
"operationClass": "additive",
|
|
16
|
+
"invariantId": "postgis:install-postgis-v1",
|
|
17
|
+
"target": {
|
|
18
|
+
"id": "postgres",
|
|
19
|
+
"details": {
|
|
20
|
+
"schema": "public",
|
|
21
|
+
"objectType": "dependency",
|
|
22
|
+
"name": "postgis"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"precheck": [{
|
|
26
|
+
"description": "verify extension \"postgis\" is not already enabled",
|
|
27
|
+
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_extension\" WHERE \"extname\" = $1) AS \"result\"",
|
|
28
|
+
"params": ["postgis"]
|
|
29
|
+
}],
|
|
30
|
+
"execute": [{
|
|
31
|
+
"description": "create extension \"postgis\"",
|
|
32
|
+
"sql": "CREATE EXTENSION IF NOT EXISTS postgis"
|
|
33
|
+
}],
|
|
34
|
+
"postcheck": [{
|
|
35
|
+
"description": "confirm extension \"postgis\" is enabled",
|
|
36
|
+
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_extension\" WHERE \"extname\" = $1) AS \"result\"",
|
|
37
|
+
"params": ["postgis"]
|
|
38
|
+
}]
|
|
39
|
+
}];
|
|
40
|
+
var head_default = {
|
|
41
|
+
hash: "7e98a4d9437e6be2f2fa7fca02fbc01c245586997a937f97cab60788612512e5",
|
|
42
|
+
invariants: ["postgis:install-postgis-v1"]
|
|
43
|
+
};
|
|
44
|
+
var contract_default = {
|
|
45
|
+
schemaVersion: "1",
|
|
46
|
+
targetFamily: "sql",
|
|
47
|
+
target: "postgres",
|
|
48
|
+
profileHash: "3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2",
|
|
49
|
+
roots: {},
|
|
50
|
+
domain: { "namespaces": { "public": { "models": {} } } },
|
|
51
|
+
storage: {
|
|
52
|
+
"namespaces": { "public": {
|
|
53
|
+
"entries": { "table": {} },
|
|
54
|
+
"id": "public",
|
|
55
|
+
"kind": "postgres-schema"
|
|
56
|
+
} },
|
|
57
|
+
"storageHash": "7e98a4d9437e6be2f2fa7fca02fbc01c245586997a937f97cab60788612512e5",
|
|
58
|
+
"types": { "geometry": {
|
|
59
|
+
"codecId": "pg/geometry@1",
|
|
60
|
+
"kind": "codec-instance",
|
|
61
|
+
"nativeType": "geometry"
|
|
62
|
+
} }
|
|
63
|
+
},
|
|
64
|
+
capabilities: {
|
|
65
|
+
"postgres": {
|
|
66
|
+
"distinctOn": true,
|
|
67
|
+
"jsonAgg": true,
|
|
68
|
+
"lateral": true,
|
|
69
|
+
"limit": true,
|
|
70
|
+
"orderBy": true,
|
|
71
|
+
"returning": true
|
|
72
|
+
},
|
|
73
|
+
"sql": {
|
|
74
|
+
"defaultInInsert": true,
|
|
75
|
+
"enums": true,
|
|
76
|
+
"lateral": true,
|
|
77
|
+
"returning": true,
|
|
78
|
+
"scalarList": true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
extensions: {},
|
|
82
|
+
meta: {},
|
|
83
|
+
_generated: {
|
|
84
|
+
"warning": "⚠️ GENERATED FILE - DO NOT EDIT",
|
|
85
|
+
"message": "This file is automatically generated by \"prisma-next contract emit\".",
|
|
86
|
+
"regenerate": "To regenerate, run: prisma-next contract emit"
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Static names and identifiers used across postgis's contract space.
|
|
91
|
+
*
|
|
92
|
+
* Centralised here so the contract IR (`./contract`), the baseline
|
|
93
|
+
* migration ops (`./migrations`), the head ref, and the descriptor
|
|
94
|
+
* (`../exports/control`) all reference the same values without typos.
|
|
95
|
+
*
|
|
96
|
+
* The space identifier `'postgis'` is what the framework writes to
|
|
97
|
+
* `migrations/` in the user's repo and what the marker table's
|
|
98
|
+
* `space` column carries for postgis-owned rows.
|
|
99
|
+
*
|
|
100
|
+
* The `postgis:*` invariantId namespace is locked here — once
|
|
101
|
+
* published, an invariantId is immutable so downstream consumers can
|
|
102
|
+
* reference it by literal string match.
|
|
103
|
+
*/
|
|
104
|
+
const POSTGIS_SPACE_ID = "postgis";
|
|
105
|
+
const POSTGIS_BASELINE_MIGRATION_NAME = "20260601T0000_install_postgis_extension";
|
|
106
|
+
const geometryControlPlaneHooks = {
|
|
107
|
+
expandNativeType: ({ nativeType, typeParams }) => {
|
|
108
|
+
const srid = typeParams?.["srid"];
|
|
109
|
+
if (typeof srid === "number" && Number.isInteger(srid) && srid >= 0) return `${nativeType}(Geometry,${srid})`;
|
|
110
|
+
return nativeType;
|
|
111
|
+
},
|
|
112
|
+
resolveIdentityValue: () => null
|
|
113
|
+
};
|
|
114
|
+
const postgisContractSpace = contractSpaceFromJson({
|
|
115
|
+
contractJson: contract_default,
|
|
116
|
+
migrations: [{
|
|
117
|
+
dirName: POSTGIS_BASELINE_MIGRATION_NAME,
|
|
118
|
+
metadata: migration_default,
|
|
119
|
+
ops: ops_default
|
|
120
|
+
}],
|
|
121
|
+
headRef: head_default
|
|
122
|
+
});
|
|
123
|
+
const postgisExtensionDescriptor = {
|
|
124
|
+
...postgisPackMeta,
|
|
125
|
+
id: POSTGIS_SPACE_ID,
|
|
126
|
+
contractSpace: postgisContractSpace,
|
|
127
|
+
types: {
|
|
128
|
+
...postgisPackMeta.types,
|
|
129
|
+
codecTypes: {
|
|
130
|
+
...postgisPackMeta.types.codecTypes,
|
|
131
|
+
controlPlaneHooks: { [POSTGIS_GEOMETRY_CODEC_ID]: geometryControlPlaneHooks }
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
queryOperations: () => postgisQueryOperations(),
|
|
135
|
+
create: () => ({
|
|
136
|
+
familyId: "sql",
|
|
137
|
+
targetId: "postgres"
|
|
138
|
+
})
|
|
139
|
+
};
|
|
140
|
+
//#endregion
|
|
141
|
+
export { postgisExtensionDescriptor as default, postgisExtensionDescriptor };
|
|
142
|
+
|
|
143
|
+
//# sourceMappingURL=control.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.mjs","names":[],"sources":["../../../../3-extensions/postgis/dist/control.mjs"],"sourcesContent":["import { t as POSTGIS_GEOMETRY_CODEC_ID } from \"./constants-CWW72xGt.mjs\";\nimport { n as postgisQueryOperations, t as postgisPackMeta } from \"./descriptor-meta-deM0Qc_b.mjs\";\nimport { contractSpaceFromJson } from \"@internal/migration-tools/spaces\";\n//#region migrations/20260601T0000_install_postgis_extension/migration.json\nvar migration_default = {\n\tfrom: null,\n\tto: \"7e98a4d9437e6be2f2fa7fca02fbc01c245586997a937f97cab60788612512e5\",\n\tprovidedInvariants: [\"postgis:install-postgis-v1\"],\n\tcreatedAt: \"2026-06-01T00:00:00.000Z\",\n\tmigrationHash: \"f91b562a2f1a82f299a3690c001027729607c631c9b2d847aa3f6162539f0eff\"\n};\n//#endregion\n//#region migrations/20260601T0000_install_postgis_extension/ops.json\nvar ops_default = [{\n\t\"id\": \"postgis.install-postgis-extension\",\n\t\"label\": \"Enable extension \\\"postgis\\\"\",\n\t\"operationClass\": \"additive\",\n\t\"invariantId\": \"postgis:install-postgis-v1\",\n\t\"target\": {\n\t\t\"id\": \"postgres\",\n\t\t\"details\": {\n\t\t\t\"schema\": \"public\",\n\t\t\t\"objectType\": \"dependency\",\n\t\t\t\"name\": \"postgis\"\n\t\t}\n\t},\n\t\"precheck\": [{\n\t\t\"description\": \"verify extension \\\"postgis\\\" is not already enabled\",\n\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\"params\": [\"postgis\"]\n\t}],\n\t\"execute\": [{\n\t\t\"description\": \"create extension \\\"postgis\\\"\",\n\t\t\"sql\": \"CREATE EXTENSION IF NOT EXISTS postgis\"\n\t}],\n\t\"postcheck\": [{\n\t\t\"description\": \"confirm extension \\\"postgis\\\" is enabled\",\n\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\"params\": [\"postgis\"]\n\t}]\n}];\n//#endregion\n//#region migrations/refs/head.json\nvar head_default = {\n\thash: \"7e98a4d9437e6be2f2fa7fca02fbc01c245586997a937f97cab60788612512e5\",\n\tinvariants: [\"postgis:install-postgis-v1\"]\n};\n//#endregion\n//#region src/contract.json\nvar contract_default = {\n\tschemaVersion: \"1\",\n\ttargetFamily: \"sql\",\n\ttarget: \"postgres\",\n\tprofileHash: \"3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2\",\n\troots: {},\n\tdomain: { \"namespaces\": { \"public\": { \"models\": {} } } },\n\tstorage: {\n\t\t\"namespaces\": { \"public\": {\n\t\t\t\"entries\": { \"table\": {} },\n\t\t\t\"id\": \"public\",\n\t\t\t\"kind\": \"postgres-schema\"\n\t\t} },\n\t\t\"storageHash\": \"7e98a4d9437e6be2f2fa7fca02fbc01c245586997a937f97cab60788612512e5\",\n\t\t\"types\": { \"geometry\": {\n\t\t\t\"codecId\": \"pg/geometry@1\",\n\t\t\t\"kind\": \"codec-instance\",\n\t\t\t\"nativeType\": \"geometry\"\n\t\t} }\n\t},\n\tcapabilities: {\n\t\t\"postgres\": {\n\t\t\t\"distinctOn\": true,\n\t\t\t\"jsonAgg\": true,\n\t\t\t\"lateral\": true,\n\t\t\t\"limit\": true,\n\t\t\t\"orderBy\": true,\n\t\t\t\"returning\": true\n\t\t},\n\t\t\"sql\": {\n\t\t\t\"defaultInInsert\": true,\n\t\t\t\"enums\": true,\n\t\t\t\"lateral\": true,\n\t\t\t\"returning\": true,\n\t\t\t\"scalarList\": true\n\t\t}\n\t},\n\textensions: {},\n\tmeta: {},\n\t_generated: {\n\t\t\"warning\": \"⚠️ GENERATED FILE - DO NOT EDIT\",\n\t\t\"message\": \"This file is automatically generated by \\\"prisma-next contract emit\\\".\",\n\t\t\"regenerate\": \"To regenerate, run: prisma-next contract emit\"\n\t}\n};\n//#endregion\n//#region src/core/contract-space-constants.ts\n/**\n* Static names and identifiers used across postgis's contract space.\n*\n* Centralised here so the contract IR (`./contract`), the baseline\n* migration ops (`./migrations`), the head ref, and the descriptor\n* (`../exports/control`) all reference the same values without typos.\n*\n* The space identifier `'postgis'` is what the framework writes to\n* `migrations/` in the user's repo and what the marker table's\n* `space` column carries for postgis-owned rows.\n*\n* The `postgis:*` invariantId namespace is locked here — once\n* published, an invariantId is immutable so downstream consumers can\n* reference it by literal string match.\n*/\nconst POSTGIS_SPACE_ID = \"postgis\";\nconst POSTGIS_BASELINE_MIGRATION_NAME = \"20260601T0000_install_postgis_extension\";\n//#endregion\n//#region src/exports/control.ts\nconst geometryControlPlaneHooks = {\n\texpandNativeType: ({ nativeType, typeParams }) => {\n\t\tconst srid = typeParams?.[\"srid\"];\n\t\tif (typeof srid === \"number\" && Number.isInteger(srid) && srid >= 0) return `${nativeType}(Geometry,${srid})`;\n\t\treturn nativeType;\n\t},\n\tresolveIdentityValue: () => null\n};\nconst postgisContractSpace = contractSpaceFromJson({\n\tcontractJson: contract_default,\n\tmigrations: [{\n\t\tdirName: POSTGIS_BASELINE_MIGRATION_NAME,\n\t\tmetadata: migration_default,\n\t\tops: ops_default\n\t}],\n\theadRef: head_default\n});\nconst postgisExtensionDescriptor = {\n\t...postgisPackMeta,\n\tid: POSTGIS_SPACE_ID,\n\tcontractSpace: postgisContractSpace,\n\ttypes: {\n\t\t...postgisPackMeta.types,\n\t\tcodecTypes: {\n\t\t\t...postgisPackMeta.types.codecTypes,\n\t\t\tcontrolPlaneHooks: { [POSTGIS_GEOMETRY_CODEC_ID]: geometryControlPlaneHooks }\n\t\t}\n\t},\n\tqueryOperations: () => postgisQueryOperations(),\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\n//#endregion\nexport { postgisExtensionDescriptor as default, postgisExtensionDescriptor };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;AAIA,IAAI,oBAAoB;CACvB,MAAM;CACN,IAAI;CACJ,oBAAoB,CAAC,4BAA4B;CACjD,WAAW;CACX,eAAe;AAChB;AAGA,IAAI,cAAc,CAAC;CAClB,MAAM;CACN,SAAS;CACT,kBAAkB;CAClB,eAAe;CACf,UAAU;EACT,MAAM;EACN,WAAW;GACV,UAAU;GACV,cAAc;GACd,QAAQ;EACT;CACD;CACA,YAAY,CAAC;EACZ,eAAe;EACf,OAAO;EACP,UAAU,CAAC,SAAS;CACrB,CAAC;CACD,WAAW,CAAC;EACX,eAAe;EACf,OAAO;CACR,CAAC;CACD,aAAa,CAAC;EACb,eAAe;EACf,OAAO;EACP,UAAU,CAAC,SAAS;CACrB,CAAC;AACF,CAAC;AAGD,IAAI,eAAe;CAClB,MAAM;CACN,YAAY,CAAC,4BAA4B;AAC1C;AAGA,IAAI,mBAAmB;CACtB,eAAe;CACf,cAAc;CACd,QAAQ;CACR,aAAa;CACb,OAAO,CAAC;CACR,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,EAAE,EAAE;CACvD,SAAS;EACR,cAAc,EAAE,UAAU;GACzB,WAAW,EAAE,SAAS,CAAC,EAAE;GACzB,MAAM;GACN,QAAQ;EACT,EAAE;EACF,eAAe;EACf,SAAS,EAAE,YAAY;GACtB,WAAW;GACX,QAAQ;GACR,cAAc;EACf,EAAE;CACH;CACA,cAAc;EACb,YAAY;GACX,cAAc;GACd,WAAW;GACX,WAAW;GACX,SAAS;GACT,WAAW;GACX,aAAa;EACd;EACA,OAAO;GACN,mBAAmB;GACnB,SAAS;GACT,WAAW;GACX,aAAa;GACb,cAAc;EACf;CACD;CACA,YAAY,CAAC;CACb,MAAM,CAAC;CACP,YAAY;EACX,WAAW;EACX,WAAW;EACX,cAAc;CACf;AACD;;;;;;;;;;;;;;;;AAkBA,MAAM,mBAAmB;AACzB,MAAM,kCAAkC;AAGxC,MAAM,4BAA4B;CACjC,mBAAmB,EAAE,YAAY,iBAAiB;EACjD,MAAM,OAAO,aAAa;EAC1B,IAAI,OAAO,SAAS,YAAY,OAAO,UAAU,IAAI,KAAK,QAAQ,GAAG,OAAO,GAAG,WAAW,YAAY,KAAK;EAC3G,OAAO;CACR;CACA,4BAA4B;AAC7B;AACA,MAAM,uBAAuB,sBAAsB;CAClD,cAAc;CACd,YAAY,CAAC;EACZ,SAAS;EACT,UAAU;EACV,KAAK;CACN,CAAC;CACD,SAAS;AACV,CAAC;AACD,MAAM,6BAA6B;CAClC,GAAG;CACH,IAAI;CACJ,eAAe;CACf,OAAO;EACN,GAAG,gBAAgB;EACnB,YAAY;GACX,GAAG,gBAAgB,MAAM;GACzB,mBAAmB,GAAG,4BAA4B,0BAA0B;EAC7E;CACD;CACA,uBAAuB,uBAAuB;CAC9C,eAAe;EACd,UAAU;EACV,UAAU;CACX;AACD"}
|