@compass-labs/api-sdk 2.2.97-rc.1 → 2.2.97-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/creditlooprequest.d.ts +5 -0
- package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditlooprequest.js +1 -0
- package/dist/commonjs/models/components/creditlooprequest.js.map +1 -1
- package/dist/commonjs/models/components/creditloopresponse.d.ts +27 -1
- package/dist/commonjs/models/components/creditloopresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditloopresponse.js +16 -1
- package/dist/commonjs/models/components/creditloopresponse.js.map +1 -1
- package/dist/commonjs/models/components/creditunlooprequest.d.ts +5 -0
- package/dist/commonjs/models/components/creditunlooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditunlooprequest.js +1 -0
- package/dist/commonjs/models/components/creditunlooprequest.js.map +1 -1
- package/dist/commonjs/models/components/creditunloopresponse.d.ts +27 -1
- package/dist/commonjs/models/components/creditunloopresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditunloopresponse.js +16 -1
- package/dist/commonjs/models/components/creditunloopresponse.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/creditlooprequest.d.ts +5 -0
- package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditlooprequest.js +1 -0
- package/dist/esm/models/components/creditlooprequest.js.map +1 -1
- package/dist/esm/models/components/creditloopresponse.d.ts +27 -1
- package/dist/esm/models/components/creditloopresponse.d.ts.map +1 -1
- package/dist/esm/models/components/creditloopresponse.js +15 -0
- package/dist/esm/models/components/creditloopresponse.js.map +1 -1
- package/dist/esm/models/components/creditunlooprequest.d.ts +5 -0
- package/dist/esm/models/components/creditunlooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditunlooprequest.js +1 -0
- package/dist/esm/models/components/creditunlooprequest.js.map +1 -1
- package/dist/esm/models/components/creditunloopresponse.d.ts +27 -1
- package/dist/esm/models/components/creditunloopresponse.d.ts.map +1 -1
- package/dist/esm/models/components/creditunloopresponse.js +15 -0
- package/dist/esm/models/components/creditunloopresponse.js.map +1 -1
- package/docs/models/components/creditlooprequest.md +2 -1
- package/docs/models/components/creditloopresponse.md +9 -5
- package/docs/models/components/creditloopresponseswapprovider.md +17 -0
- package/docs/models/components/creditunlooprequest.md +2 -1
- package/docs/models/components/creditunloopresponse.md +9 -5
- package/docs/models/components/creditunloopresponseswapprovider.md +17 -0
- package/examples/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/examples/node_modules/@esbuild/linux-x64/package.json +1 -1
- package/examples/node_modules/esbuild/bin/esbuild +1 -1
- package/examples/node_modules/esbuild/lib/main.d.ts +4 -0
- package/examples/node_modules/esbuild/lib/main.js +12 -8
- package/examples/node_modules/esbuild/package.json +50 -50
- package/examples/node_modules/tsx/dist/cjs/api/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/cli.cjs +1 -1
- package/examples/node_modules/tsx/dist/cli.mjs +1 -1
- package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/esm/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/esm/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/index-6kqi0x0U.cjs +14 -0
- package/examples/node_modules/tsx/dist/index-DQtFPMc2.mjs +14 -0
- package/examples/node_modules/tsx/dist/loader.cjs +1 -1
- package/examples/node_modules/tsx/dist/loader.mjs +1 -1
- package/examples/node_modules/tsx/dist/package-B13bX4zz.mjs +1 -0
- package/examples/node_modules/tsx/dist/package-sd2gMcZx.cjs +1 -0
- package/examples/node_modules/tsx/dist/{register-DdgZzFJi.mjs → register-C4vWVmug.mjs} +1 -1
- package/examples/node_modules/tsx/dist/register-C557imBs.cjs +10 -0
- package/examples/node_modules/tsx/dist/register-C9AniqUt.mjs +10 -0
- package/examples/node_modules/tsx/dist/{register-Cn3U8bZT.cjs → register-Ciecs-Zx.cjs} +2 -2
- package/examples/node_modules/tsx/dist/repl.cjs +1 -1
- package/examples/node_modules/tsx/dist/repl.mjs +1 -1
- package/examples/node_modules/tsx/dist/{require-CL1N-1Kt.mjs → require-CywAB2e6.mjs} +1 -1
- package/examples/node_modules/tsx/dist/{require-DaO4qQ4U.cjs → require-DDxgG93A.cjs} +1 -1
- package/examples/node_modules/tsx/package.json +1 -1
- package/examples/package-lock.json +110 -110
- package/openapi_prepped_for_speakeasy.json +84 -2
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/creditlooprequest.ts +6 -0
- package/src/models/components/creditloopresponse.ts +41 -1
- package/src/models/components/creditunlooprequest.ts +6 -0
- package/src/models/components/creditunloopresponse.ts +41 -1
- package/examples/node_modules/tsx/dist/index-CVGQLgGk.mjs +0 -14
- package/examples/node_modules/tsx/dist/index-LWEOpzQe.cjs +0 -14
- package/examples/node_modules/tsx/dist/package-CQQPX_Gw.cjs +0 -1
- package/examples/node_modules/tsx/dist/package-DD1BsAZe.mjs +0 -1
- package/examples/node_modules/tsx/dist/register--Y-HowfU.mjs +0 -10
- package/examples/node_modules/tsx/dist/register-BxraCus2.cjs +0 -10
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
import {
|
|
@@ -20,12 +21,26 @@ import {
|
|
|
20
21
|
UnsignedTransaction$inboundSchema,
|
|
21
22
|
} from "./unsignedtransaction.js";
|
|
22
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Which venue priced the swap leg(s): 'one_inch' (iterative loop, slippage-bounded floors) or 'bebop' (firm zero-slippage quotes, one per swap leg, each partially filled at the leg's size — exact fills, zero dust). On preview=true responses, 'bebop' means the numbers are INDICATIVE, computed from the firm venue's live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks.
|
|
26
|
+
*/
|
|
27
|
+
export const CreditLoopResponseSwapProvider = {
|
|
28
|
+
OneInch: "one_inch",
|
|
29
|
+
Bebop: "bebop",
|
|
30
|
+
} as const;
|
|
31
|
+
/**
|
|
32
|
+
* Which venue priced the swap leg(s): 'one_inch' (iterative loop, slippage-bounded floors) or 'bebop' (firm zero-slippage quotes, one per swap leg, each partially filled at the leg's size — exact fills, zero dust). On preview=true responses, 'bebop' means the numbers are INDICATIVE, computed from the firm venue's live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks.
|
|
33
|
+
*/
|
|
34
|
+
export type CreditLoopResponseSwapProvider = ClosedEnum<
|
|
35
|
+
typeof CreditLoopResponseSwapProvider
|
|
36
|
+
>;
|
|
37
|
+
|
|
23
38
|
/**
|
|
24
39
|
* The atomic loop transaction plus its guaranteed-floor preview.
|
|
25
40
|
*/
|
|
26
41
|
export type CreditLoopResponse = {
|
|
27
42
|
/**
|
|
28
|
-
* Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false.
|
|
43
|
+
* Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false — except firm-priced previews (preview=true with swap_provider='bebop'), which carry numbers only: the firm quotes are fetched at execution time, so there is no payload to sign yet.
|
|
29
44
|
*/
|
|
30
45
|
transaction?: UnsignedTransaction | null | undefined;
|
|
31
46
|
/**
|
|
@@ -36,8 +51,25 @@ export type CreditLoopResponse = {
|
|
|
36
51
|
* Projected end state of the loop, computed on GUARANTEED swap floors.
|
|
37
52
|
*/
|
|
38
53
|
preview: CreditLoopPreview;
|
|
54
|
+
/**
|
|
55
|
+
* Which venue priced the swap leg(s): 'one_inch' (iterative loop, slippage-bounded floors) or 'bebop' (firm zero-slippage quotes, one per swap leg, each partially filled at the leg's size — exact fills, zero dust). On preview=true responses, 'bebop' means the numbers are INDICATIVE, computed from the firm venue's live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks.
|
|
56
|
+
*/
|
|
57
|
+
swapProvider?: CreditLoopResponseSwapProvider | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Deadline of the firm swap quotes (the earliest across the loop's swap legs) — sign and broadcast before it or the transaction reverts on-chain; refresh by re-calling this endpoint (discard the previous payload). Present only on executable swap_provider='bebop' builds; null on previews (no quote is spent for a preview).
|
|
60
|
+
*/
|
|
61
|
+
quoteExpiresAt?: Date | null | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Multiplier bound firm zero-slippage quotes can fill for the requested position size, LTV and target (estimated without spending any quote). The requested multiplier is firm-servable iff it is <= this value; above it the loop executes at market rate with slippage-bounded floors instead. Present only on preview=true responses when a firm-quote venue covers the pair; null otherwise. Recompute per parameter change - minimum-size floors make reachability target-dependent.
|
|
64
|
+
*/
|
|
65
|
+
maxFirmMultiplier?: string | null | undefined;
|
|
39
66
|
};
|
|
40
67
|
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const CreditLoopResponseSwapProvider$inboundSchema: z.ZodNativeEnum<
|
|
70
|
+
typeof CreditLoopResponseSwapProvider
|
|
71
|
+
> = z.nativeEnum(CreditLoopResponseSwapProvider);
|
|
72
|
+
|
|
41
73
|
/** @internal */
|
|
42
74
|
export const CreditLoopResponse$inboundSchema: z.ZodType<
|
|
43
75
|
CreditLoopResponse,
|
|
@@ -48,9 +80,17 @@ export const CreditLoopResponse$inboundSchema: z.ZodType<
|
|
|
48
80
|
eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema)
|
|
49
81
|
.optional(),
|
|
50
82
|
preview: CreditLoopPreview$inboundSchema,
|
|
83
|
+
swap_provider: CreditLoopResponseSwapProvider$inboundSchema.optional(),
|
|
84
|
+
quote_expires_at: z.nullable(
|
|
85
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
86
|
+
).optional(),
|
|
87
|
+
max_firm_multiplier: z.nullable(z.string()).optional(),
|
|
51
88
|
}).transform((v) => {
|
|
52
89
|
return remap$(v, {
|
|
53
90
|
"eip_712": "eip712",
|
|
91
|
+
"swap_provider": "swapProvider",
|
|
92
|
+
"quote_expires_at": "quoteExpiresAt",
|
|
93
|
+
"max_firm_multiplier": "maxFirmMultiplier",
|
|
54
94
|
});
|
|
55
95
|
});
|
|
56
96
|
|
|
@@ -107,6 +107,10 @@ export type CreditUnloopRequest = {
|
|
|
107
107
|
* If true, returns EIP-712 typed data for gas-sponsored execution instead of an unsigned transaction.
|
|
108
108
|
*/
|
|
109
109
|
gasSponsorship?: boolean | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* If true, build a display estimate only: the swap legs are priced at market rate and no single-use firm quote is ever spent. Set it on every parameter-exploration call and omit it only on the build the user is about to sign.
|
|
112
|
+
*/
|
|
113
|
+
preview?: boolean | undefined;
|
|
110
114
|
};
|
|
111
115
|
|
|
112
116
|
/** @internal */
|
|
@@ -169,6 +173,7 @@ export type CreditUnloopRequest$Outbound = {
|
|
|
169
173
|
max_slippage_percent?: number | string | undefined;
|
|
170
174
|
allow_partial?: boolean | undefined;
|
|
171
175
|
gas_sponsorship?: boolean | undefined;
|
|
176
|
+
preview?: boolean | undefined;
|
|
172
177
|
};
|
|
173
178
|
|
|
174
179
|
/** @internal */
|
|
@@ -190,6 +195,7 @@ export const CreditUnloopRequest$outboundSchema: z.ZodType<
|
|
|
190
195
|
maxSlippagePercent: z.union([z.number(), z.string()]).optional(),
|
|
191
196
|
allowPartial: z.boolean().optional(),
|
|
192
197
|
gasSponsorship: z.boolean().optional(),
|
|
198
|
+
preview: z.boolean().optional(),
|
|
193
199
|
}).transform((v) => {
|
|
194
200
|
return remap$(v, {
|
|
195
201
|
marketId: "market_id",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
import {
|
|
@@ -20,12 +21,26 @@ import {
|
|
|
20
21
|
UnsignedTransaction$inboundSchema,
|
|
21
22
|
} from "./unsignedtransaction.js";
|
|
22
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Which venue priced the swap leg(s): 'one_inch' (market route, slippage-bounded floors) or 'bebop' (firm quotes, one per swap leg, each partially filled at the leg's size). On preview=true responses, 'bebop' means the numbers are INDICATIVE, computed from the firm venue's live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks.
|
|
26
|
+
*/
|
|
27
|
+
export const CreditUnloopResponseSwapProvider = {
|
|
28
|
+
OneInch: "one_inch",
|
|
29
|
+
Bebop: "bebop",
|
|
30
|
+
} as const;
|
|
31
|
+
/**
|
|
32
|
+
* Which venue priced the swap leg(s): 'one_inch' (market route, slippage-bounded floors) or 'bebop' (firm quotes, one per swap leg, each partially filled at the leg's size). On preview=true responses, 'bebop' means the numbers are INDICATIVE, computed from the firm venue's live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks.
|
|
33
|
+
*/
|
|
34
|
+
export type CreditUnloopResponseSwapProvider = ClosedEnum<
|
|
35
|
+
typeof CreditUnloopResponseSwapProvider
|
|
36
|
+
>;
|
|
37
|
+
|
|
23
38
|
/**
|
|
24
39
|
* The atomic unwind transaction plus its guaranteed-floor preview.
|
|
25
40
|
*/
|
|
26
41
|
export type CreditUnloopResponse = {
|
|
27
42
|
/**
|
|
28
|
-
* Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false.
|
|
43
|
+
* Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false — except firm-priced previews (preview=true with swap_provider='bebop'), which carry numbers only: the firm quotes are fetched at execution time, so there is no payload to sign yet.
|
|
29
44
|
*/
|
|
30
45
|
transaction?: UnsignedTransaction | null | undefined;
|
|
31
46
|
/**
|
|
@@ -36,8 +51,25 @@ export type CreditUnloopResponse = {
|
|
|
36
51
|
* Projected end state of the unwind, computed on GUARANTEED swap floors.
|
|
37
52
|
*/
|
|
38
53
|
preview: CreditUnloopPreview;
|
|
54
|
+
/**
|
|
55
|
+
* Which venue priced the swap leg(s): 'one_inch' (market route, slippage-bounded floors) or 'bebop' (firm quotes, one per swap leg, each partially filled at the leg's size). On preview=true responses, 'bebop' means the numbers are INDICATIVE, computed from the firm venue's live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks.
|
|
56
|
+
*/
|
|
57
|
+
swapProvider?: CreditUnloopResponseSwapProvider | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Deadline of the firm swap quotes (the earliest across the unwind's swap legs) — sign and broadcast before it or the transaction reverts on-chain; refresh by re-calling this endpoint (discard the previous payload). Present only on executable swap_provider='bebop' builds; null on previews (no quote is spent for a preview).
|
|
60
|
+
*/
|
|
61
|
+
quoteExpiresAt?: Date | null | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Preview-only advisory: whether a firm-quote venue can serve this unwind's swap legs (estimated without spending any quote). Present only on preview=true responses; null otherwise.
|
|
64
|
+
*/
|
|
65
|
+
firmAvailable?: boolean | null | undefined;
|
|
39
66
|
};
|
|
40
67
|
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const CreditUnloopResponseSwapProvider$inboundSchema: z.ZodNativeEnum<
|
|
70
|
+
typeof CreditUnloopResponseSwapProvider
|
|
71
|
+
> = z.nativeEnum(CreditUnloopResponseSwapProvider);
|
|
72
|
+
|
|
41
73
|
/** @internal */
|
|
42
74
|
export const CreditUnloopResponse$inboundSchema: z.ZodType<
|
|
43
75
|
CreditUnloopResponse,
|
|
@@ -48,9 +80,17 @@ export const CreditUnloopResponse$inboundSchema: z.ZodType<
|
|
|
48
80
|
eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema)
|
|
49
81
|
.optional(),
|
|
50
82
|
preview: CreditUnloopPreview$inboundSchema,
|
|
83
|
+
swap_provider: CreditUnloopResponseSwapProvider$inboundSchema.optional(),
|
|
84
|
+
quote_expires_at: z.nullable(
|
|
85
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
86
|
+
).optional(),
|
|
87
|
+
firm_available: z.nullable(z.boolean()).optional(),
|
|
51
88
|
}).transform((v) => {
|
|
52
89
|
return remap$(v, {
|
|
53
90
|
"eip_712": "eip712",
|
|
91
|
+
"swap_provider": "swapProvider",
|
|
92
|
+
"quote_expires_at": "quoteExpiresAt",
|
|
93
|
+
"firm_available": "firmAvailable",
|
|
54
94
|
});
|
|
55
95
|
});
|
|
56
96
|
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
var Xt=Object.defineProperty;var f=(s,e)=>Xt(s,"name",{value:e,configurable:!0});import J from"node:path";import{fileURLToPath as Yt,pathToFileURL as Qt}from"node:url";import{version as ye,transform as Zt,transformSync as Fe}from"esbuild";import Vt from"node:crypto";import{i as en,c as tn}from"./node-features-JeyyvQz6.mjs";import D from"node:fs";import nn from"node:os";import{t as rn}from"./temporary-directory-BDDVQOvU.mjs";const Se=f(s=>Vt.createHash("sha1").update(s).digest("hex"),"sha1");var sn=44,on=59,Be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pe=new Uint8Array(64),an=new Uint8Array(128);for(let s=0;s<Be.length;s++){const e=Be.charCodeAt(s);Pe[s]=e,an[e]=s}function Y(s,e,n){let i=e-n;i=i<0?-i<<1|1:i<<1;do{let o=i&31;i>>>=5,i>0&&(o|=32),s.write(Pe[o])}while(i>0);return e}f(Y,"encodeInteger$1");var We=1024*16,Je=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(s){return Buffer.from(s.buffer,s.byteOffset,s.byteLength).toString()}}:{decode(s){let e="";for(let n=0;n<s.length;n++)e+=String.fromCharCode(s[n]);return e}},cn=class{static{f(this,"StringWriter")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(We)}write(s){const{buffer:e}=this;e[this.pos++]=s,this.pos===We&&(this.out+=Je.decode(e),this.pos=0)}flush(){const{buffer:s,out:e,pos:n}=this;return n>0?e+Je.decode(s.subarray(0,n)):e}};function ln(s){const e=new cn;let n=0,i=0,o=0,a=0;for(let l=0;l<s.length;l++){const p=s[l];if(l>0&&e.write(on),p.length===0)continue;let g=0;for(let b=0;b<p.length;b++){const d=p[b];b>0&&e.write(sn),g=Y(e,d[0],g),d.length!==1&&(n=Y(e,d[1],n),i=Y(e,d[2],i),o=Y(e,d[3],o),d.length!==4&&(a=Y(e,d[4],a)))}}return e.flush()}f(ln,"encode$1");class ue{static{f(this,"BitSet")}constructor(e){this.bits=e instanceof ue?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class re{static{f(this,"Chunk")}constructor(e,n,i){this.start=e,this.end=n,this.original=i,this.intro="",this.outro="",this.content=i,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new re(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let n=this;for(;n;)e(n),n=n.next}eachPrevious(e){let n=this;for(;n;)e(n),n=n.previous}edit(e,n,i){return this.content=e,i||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){const n=e-this.start,i=this.original.slice(0,n),o=this.original.slice(n);this.original=i;const a=new re(e,this.end,o);return a.outro=this.outro,this.outro="",this.end=e,this.edited?(a.edit("",!1),this.content=""):this.content=i,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const n=this.content.replace(e,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const n=this.content.replace(e,"");if(n.length){if(n!==this.content){const i=this.split(this.end-n.length);this.edited&&i.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}}function un(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?s=>globalThis.btoa(unescape(encodeURIComponent(s))):typeof Buffer=="function"?s=>Buffer.from(s,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}f(un,"getBtoa");const fn=un();let hn=class{static{f(this,"SourceMap")}constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=ln(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+fn(this.toString())}};function dn(s){const e=s.split(`
|
|
2
|
-
`),n=e.filter(a=>/^\t+/.test(a)),i=e.filter(a=>/^ {2,}/.test(a));if(n.length===0&&i.length===0)return null;if(n.length>=i.length)return" ";const o=i.reduce((a,l)=>{const p=/^ +/.exec(l)[0].length;return Math.min(p,a)},1/0);return new Array(o+1).join(" ")}f(dn,"guessIndent");function gn(s,e){const n=s.split(/[/\\]/),i=e.split(/[/\\]/);for(n.pop();n[0]===i[0];)n.shift(),i.shift();if(n.length){let o=n.length;for(;o--;)n[o]=".."}return n.concat(i).join("/")}f(gn,"getRelativePath");const bn=Object.prototype.toString;function pn(s){return bn.call(s)==="[object Object]"}f(pn,"isObject");function qe(s){const e=s.split(`
|
|
3
|
-
`),n=[];for(let i=0,o=0;i<e.length;i++)n.push(o),o+=e[i].length+1;return f(function(o){let a=0,l=n.length;for(;a<l;){const b=a+l>>1;o<n[b]?l=b:a=b+1}const p=a-1,g=o-n[p];return{line:p,column:g}},"locate")}f(qe,"getLocator");const mn=/\w/;class wn{static{f(this,"Mappings")}constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,n,i,o){if(n.length){const a=n.length-1;let l=n.indexOf(`
|
|
4
|
-
`,0),p=-1;for(;l>=0&&a>l;){const b=[this.generatedCodeColumn,e,i.line,i.column];o>=0&&b.push(o),this.rawSegments.push(b),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=l,l=n.indexOf(`
|
|
5
|
-
`,l+1)}const g=[this.generatedCodeColumn,e,i.line,i.column];o>=0&&g.push(o),this.rawSegments.push(g),this.advance(n.slice(p+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null}addUneditedChunk(e,n,i,o,a){let l=n.start,p=!0,g=!1;for(;l<n.end;){if(i[l]===`
|
|
6
|
-
`)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=!0,g=!1;else{if(this.hires||p||a.has(l)){const b=[this.generatedCodeColumn,e,o.line,o.column];this.hires==="boundary"?mn.test(i[l])?g||(this.rawSegments.push(b),g=!0):(this.rawSegments.push(b),g=!1):this.rawSegments.push(b)}o.column+=1,this.generatedCodeColumn+=1,p=!1}l+=1}this.pending=null}advance(e){if(!e)return;const n=e.split(`
|
|
7
|
-
`);if(n.length>1){for(let i=0;i<n.length-1;i++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=n[n.length-1].length}}const Q=`
|
|
8
|
-
`,q={insertLeft:!1,insertRight:!1,storeName:!1};class $e{static{f(this,"MagicString")}constructor(e,n={}){const i=new re(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:i},lastChunk:{writable:!0,value:i},lastSearchedChunk:{writable:!0,value:i},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new ue},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.ignoreList},offset:{writable:!0,value:n.offset||0}}),this.byStart[0]=i,this.byEnd[e.length]=i}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.appendLeft(n):this.intro+=n,this}appendRight(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.appendRight(n):this.outro+=n,this}clone(){const e=new $e(this.original,{filename:this.filename,offset:this.offset});let n=this.firstChunk,i=e.firstChunk=e.lastSearchedChunk=n.clone();for(;n;){e.byStart[i.start]=i,e.byEnd[i.end]=i;const o=n.next,a=o&&o.clone();a&&(i.next=a,a.previous=i,i=a),n=o}return e.lastChunk=i,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new ue(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const n=0,i=Object.keys(this.storedNames),o=new wn(e.hires),a=qe(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(l=>{const p=a(l.start);l.intro.length&&o.advance(l.intro),l.edited?o.addEdit(n,l.content,p,l.storeName?i.indexOf(l.original):-1):o.addUneditedChunk(n,l,this.original,p,this.sourcemapLocations),l.outro.length&&o.advance(l.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?gn(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:i,mappings:o.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(e){return new hn(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=dn(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,n){const i=/^[^\r\n]/gm;if(pn(e)&&(n=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;n=n||{};const o={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(d=>{for(let r=d[0];r<d[1];r+=1)o[r]=!0});let a=n.indentStart!==!1;const l=f(b=>a?`${e}${b}`:(a=!0,b),"replacer");this.intro=this.intro.replace(i,l);let p=0,g=this.firstChunk;for(;g;){const b=g.end;if(g.edited)o[p]||(g.content=g.content.replace(i,l),g.content.length&&(a=g.content[g.content.length-1]===`
|
|
9
|
-
`));else for(p=g.start;p<b;){if(!o[p]){const d=this.original[p];d===`
|
|
10
|
-
`?a=!0:d!=="\r"&&a&&(a=!1,p===g.start||(this._splitChunk(g,p),g=g.next),g.prependRight(e))}p+=1}p=g.end,g=g.next}return this.outro=this.outro.replace(i,l),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,n){return q.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),q.insertLeft=!0),this.appendLeft(e,n)}insertRight(e,n){return q.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),q.insertRight=!0),this.prependRight(e,n)}move(e,n,i){if(e=e+this.offset,n=n+this.offset,i=i+this.offset,i>=e&&i<=n)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(n),this._split(i);const o=this.byStart[e],a=this.byEnd[n],l=o.previous,p=a.next,g=this.byStart[i];if(!g&&a===this.lastChunk)return this;const b=g?g.previous:this.lastChunk;return l&&(l.next=p),p&&(p.previous=l),b&&(b.next=o),g&&(g.previous=a),o.previous||(this.firstChunk=a.next),a.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=b,a.next=g||null,b||(this.firstChunk=o),g||(this.lastChunk=a),this}overwrite(e,n,i,o){return o=o||{},this.update(e,n,i,{...o,overwrite:!o.contentOnly})}update(e,n,i,o){if(e=e+this.offset,n=n+this.offset,typeof i!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(n>this.original.length)throw new Error("end is out of bounds");if(e===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(n),o===!0&&(q.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),q.storeName=!0),o={storeName:!0});const a=o!==void 0?o.storeName:!1,l=o!==void 0?o.overwrite:!1;if(a){const b=this.original.slice(e,n);Object.defineProperty(this.storedNames,b,{writable:!0,value:!0,enumerable:!0})}const p=this.byStart[e],g=this.byEnd[n];if(p){let b=p;for(;b!==g;){if(b.next!==this.byStart[b.end])throw new Error("Cannot overwrite across a split point");b=b.next,b.edit("",!1)}p.edit(i,a,!l)}else{const b=new re(e,n,"").edit(i,a);g.next=b,b.previous=g}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.prependLeft(n):this.intro=n+this.intro,this}prependRight(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.prependRight(n):this.outro=n+this.outro,this}remove(e,n){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let i=this.byStart[e];for(;i;)i.intro="",i.outro="",i.edit(""),i=n>i.end?this.byStart[i.end]:null;return this}reset(e,n){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let i=this.byStart[e];for(;i;)i.reset(),i=n>i.end?this.byStart[i.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(Q);if(e!==-1)return this.outro.substr(e+1);let n=this.outro,i=this.lastChunk;do{if(i.outro.length>0){if(e=i.outro.lastIndexOf(Q),e!==-1)return i.outro.substr(e+1)+n;n=i.outro+n}if(i.content.length>0){if(e=i.content.lastIndexOf(Q),e!==-1)return i.content.substr(e+1)+n;n=i.content+n}if(i.intro.length>0){if(e=i.intro.lastIndexOf(Q),e!==-1)return i.intro.substr(e+1)+n;n=i.intro+n}}while(i=i.previous);return e=this.intro.lastIndexOf(Q),e!==-1?this.intro.substr(e+1)+n:this.intro+n}slice(e=0,n=this.original.length-this.offset){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}let i="",o=this.firstChunk;for(;o&&(o.start>e||o.end<=e);){if(o.start<n&&o.end>=n)return i;o=o.next}if(o&&o.edited&&o.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const a=o;for(;o;){o.intro&&(a!==o||o.start===e)&&(i+=o.intro);const l=o.start<n&&o.end>=n;if(l&&o.edited&&o.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);const p=a===o?e-o.start:0,g=l?o.content.length+n-o.end:o.content.length;if(i+=o.content.slice(p,g),o.outro&&(!l||o.end===n)&&(i+=o.outro),l)break;o=o.next}return i}snip(e,n){const i=this.clone();return i.remove(0,e),i.remove(n,i.original.length),i}_split(e){if(this.byStart[e]||this.byEnd[e])return;let n=this.lastSearchedChunk,i=n;const o=e>n.end;for(;n;){if(n.contains(e))return this._splitChunk(n,e);if(n=o?this.byStart[n.end]:this.byEnd[n.start],n===i)return;i=n}}_splitChunk(e,n){if(e.edited&&e.content.length){const o=qe(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${e.original}")`)}const i=e.split(n);return this.byEnd[n]=e,this.byStart[n]=i,this.byEnd[i.end]=i,e===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,n=this.firstChunk;for(;n;)e+=n.toString(),n=n.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,n=0;do n+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const n=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let i=this.lastChunk;do{const o=i.end,a=i.trimEnd(n);if(i.end!==o&&(this.lastChunk===i&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.previous}while(i);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const n=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let i=this.firstChunk;do{const o=i.end,a=i.trimStart(n);if(i.end!==o&&(i===this.lastChunk&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.next}while(i);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,n){function i(a,l){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(p,g)=>g==="$"?"$":g==="&"?a[0]:+g<a.length?a[+g]:`$${g}`):n(...a,a.index,l,a.groups)}f(i,"getReplacement");function o(a,l){let p;const g=[];for(;p=a.exec(l);)g.push(p);return g}if(f(o,"matchAll"),e.global)o(e,this.original).forEach(l=>{if(l.index!=null){const p=i(l,this.original);p!==l[0]&&this.overwrite(l.index,l.index+l[0].length,p)}});else{const a=this.original.match(e);if(a&&a.index!=null){const l=i(a,this.original);l!==a[0]&&this.overwrite(a.index,a.index+a[0].length,l)}}return this}_replaceString(e,n){const{original:i}=this,o=i.indexOf(e);return o!==-1&&this.overwrite(o,o+e.length,n),this}replace(e,n){return typeof e=="string"?this._replaceString(e,n):this._replaceRegexp(e,n)}_replaceAllString(e,n){const{original:i}=this,o=e.length;for(let a=i.indexOf(e);a!==-1;a=i.indexOf(e,a+o))i.slice(a,a+o)!==n&&this.overwrite(a,a+o,n);return this}replaceAll(e,n){if(typeof e=="string")return this._replaceAllString(e,n);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,n)}}let E,oe,xe,Z=2<<19;const ze=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(s,e){const n=s.length;let i=0;for(;i<n;)e[i]=s.charCodeAt(i++)}:function(s,e){const n=s.length;let i=0;for(;i<n;){const o=s.charCodeAt(i);e[i++]=(255&o)<<8|o>>>8}},kn="xportmportlassforetaourceromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileifcatcfinallels";let L,He,C;function Cn(s,e="@"){L=s,He=e;const n=2*L.length+(2<<18);if(n>Z||!E){for(;n>Z;)Z*=2;oe=new ArrayBuffer(Z),ze(kn,new Uint16Array(oe,16,110)),E=function(l,p,g){var b=new l.Int8Array(g),d=new l.Int16Array(g),r=new l.Int32Array(g),S=new l.Uint8Array(g),O=new l.Uint16Array(g),_=1040;function N(){var t=0,c=0,h=0,u=0,m=0,w=0,y=0;y=_,_=_+10240|0,b[804]=1,b[803]=0,d[399]=0,d[400]=0,r[69]=r[2],b[805]=0,r[68]=0,b[802]=0,r[70]=y+2048,r[71]=y,b[806]=0,t=(r[3]|0)+-2|0,r[72]=t,c=t+(r[66]<<1)|0,r[73]=c;e:for(;;){if(h=t+2|0,r[72]=h,t>>>0>=c>>>0){u=18;break}t:do switch(d[h>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(d[400]|0)&&K(h)|0&&!(A(t+4|0,16,10)|0)&&($(),(b[804]|0)==0)){u=9;break e}else u=17;break}case 105:{K(h)|0&&!(A(t+4|0,26,10)|0)&&B(),u=17;break}case 59:{u=17;break}case 47:switch(d[t+4>>1]|0){case 47:{be();break t}case 42:{de(1);break t}default:{u=16;break e}}default:{u=16;break e}}while(!1);(u|0)==17&&(u=0,r[69]=r[72]),t=r[72]|0,c=r[73]|0}(u|0)==9?(t=r[72]|0,r[69]=t,u=19):(u|0)==16?(b[804]=0,r[72]=t,u=19):(u|0)==18&&(b[802]|0?t=0:(t=h,u=19));do if((u|0)==19){e:for(;;){if(c=t+2|0,r[72]=c,t>>>0>=(r[73]|0)>>>0){u=92;break}t:do switch(d[c>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(d[400]|0)&&K(c)|0&&!(A(t+4|0,16,10)|0)&&$(),u=91;break}case 105:{K(c)|0&&!(A(t+4|0,26,10)|0)&&B(),u=91;break}case 99:{K(c)|0&&!(A(t+4|0,36,8)|0)&&W(d[t+12>>1]|0)|0&&(b[806]=1),u=91;break}case 40:{h=r[70]|0,t=d[400]|0,u=t&65535,r[h+(u<<3)>>2]=1,c=r[69]|0,d[400]=t+1<<16>>16,r[h+(u<<3)+4>>2]=c,u=91;break}case 41:{if(c=d[400]|0,!(c<<16>>16)){u=36;break e}h=c+-1<<16>>16,d[400]=h,u=d[399]|0,c=u&65535,u<<16>>16&&(r[(r[70]|0)+((h&65535)<<3)>>2]|0)==5&&(c=r[(r[71]|0)+(c+-1<<2)>>2]|0,h=c+4|0,r[h>>2]|0||(r[h>>2]=(r[69]|0)+2),r[c+12>>2]=t+4,d[399]=u+-1<<16>>16),u=91;break}case 123:{u=r[69]|0,h=r[63]|0,t=u;do if((d[u>>1]|0)==41&(h|0)!=0&&(r[h+4>>2]|0)==(u|0))if(c=r[64]|0,r[63]=c,c){r[c+32>>2]=0;break}else{r[59]=0;break}while(!1);h=r[70]|0,c=d[400]|0,u=c&65535,r[h+(u<<3)>>2]=b[806]|0?6:2,d[400]=c+1<<16>>16,r[h+(u<<3)+4>>2]=t,b[806]=0,u=91;break}case 125:{if(t=d[400]|0,!(t<<16>>16)){u=49;break e}h=r[70]|0,u=t+-1<<16>>16,d[400]=u,(r[h+((u&65535)<<3)>>2]|0)==4&&De(),u=91;break}case 39:{R(39),u=91;break}case 34:{R(34),u=91;break}case 47:switch(d[t+4>>1]|0){case 47:{be();break t}case 42:{de(1);break t}default:{t=r[69]|0,c=d[t>>1]|0;n:do if(!(_t(c)|0))c<<16>>16==41?(h=d[400]|0,At(r[(r[70]|0)+((h&65535)<<3)+4>>2]|0)|0||(u=65)):u=64;else switch(c<<16>>16){case 46:if(((d[t+-2>>1]|0)+-48&65535)<10){u=64;break n}else break n;case 43:if((d[t+-2>>1]|0)==43){u=64;break n}else break n;case 45:if((d[t+-2>>1]|0)==45){u=64;break n}else break n;default:break n}while(!1);(u|0)==64&&(h=d[400]|0,u=65);n:do if((u|0)==65){if(u=0,h<<16>>16&&(m=r[70]|0,w=(h&65535)+-1|0,c<<16>>16==102?(r[m+(w<<3)>>2]|0)==1:0)){if((d[t+-2>>1]|0)==111&&I(r[m+(w<<3)+4>>2]|0,44,3)|0)break}else u=69;if((u|0)==69&&c<<16>>16==125&&(u=r[70]|0,h=h&65535,Et(r[u+(h<<3)+4>>2]|0)|0||(r[u+(h<<3)>>2]|0)==6))break;if(!(xt(t)|0)){switch(c<<16>>16){case 0:break n;case 47:{if(b[805]|0)break n;break}default:}if(u=r[65]|0,u|0&&t>>>0>=(r[u>>2]|0)>>>0&&t>>>0<=(r[u+4>>2]|0)>>>0){he(),b[805]=0,u=91;break t}h=r[3]|0;do{if(t>>>0<=h>>>0)break;t=t+-2|0,r[69]=t,c=d[t>>1]|0}while(!(ge(c)|0));if(se(c)|0){do{if(t>>>0<=h>>>0)break;t=t+-2|0,r[69]=t}while(se(d[t>>1]|0)|0);if(It(t)|0){he(),b[805]=0,u=91;break t}}b[805]=1,u=91;break t}}while(!1);he(),b[805]=0,u=91;break t}}case 96:{h=r[70]|0,c=d[400]|0,u=c&65535,r[h+(u<<3)+4>>2]=r[69],d[400]=c+1<<16>>16,r[h+(u<<3)>>2]=3,De(),u=91;break}default:u=91}while(!1);(u|0)==91&&(u=0,r[69]=r[72]),t=r[72]|0}if((u|0)==36){M(),t=0;break}else if((u|0)==49){M(),t=0;break}else if((u|0)==92){t=b[802]|0?0:(d[399]|d[400])<<16>>16==0;break}}while(!1);return _=y,t|0}f(N,"b");function $(){var t=0,c=0,h=0,u=0,m=0,w=0,y=0,T=0,me=0,we=0,ke=0,Ce=0,x=0,v=0;T=r[72]|0,me=r[65]|0,v=T+12|0,r[72]=v,h=k(1)|0,t=r[72]|0,(t|0)==(v|0)&&!(ie(h)|0)||(x=3);e:do if((x|0)==3){t:do switch(h<<16>>16){case 123:{for(r[72]=t+2,t=k(1)|0,c=r[72]|0;;){if(X(t)|0?(R(t),t=(r[72]|0)+2|0,r[72]=t):(j(t)|0,t=r[72]|0),k(1)|0,t=je(c,t)|0,t<<16>>16==44&&(r[72]=(r[72]|0)+2,t=k(1)|0),t<<16>>16==125){x=15;break}if(v=c,c=r[72]|0,(c|0)==(v|0)){x=12;break}if(c>>>0>(r[73]|0)>>>0){x=14;break}}if((x|0)==12){M();break e}else if((x|0)==14){M();break e}else if((x|0)==15){b[803]=1,r[72]=(r[72]|0)+2;break t}break}case 42:{r[72]=t+2,k(1)|0,v=r[72]|0,je(v,v)|0;break}default:{switch(b[804]=0,h<<16>>16){case 100:{switch(T=t+14|0,r[72]=T,(k(1)|0)<<16>>16){case 97:{c=r[72]|0,!(A(c+2|0,72,8)|0)&&(m=c+10|0,se(d[m>>1]|0)|0)&&(r[72]=m,k(0)|0,x=22);break}case 102:{x=22;break}case 99:{c=r[72]|0,!(A(c+2|0,36,8)|0)&&(u=c+10|0,v=d[u>>1]|0,W(v)|0|v<<16>>16==123)&&(r[72]=u,w=k(1)|0,w<<16>>16!=123)&&(Ce=w,x=31);break}default:}n:do if((x|0)==22&&(y=r[72]|0,(A(y+2|0,80,14)|0)==0)){if(h=y+16|0,c=d[h>>1]|0,!(W(c)|0))switch(c<<16>>16){case 40:case 42:break;default:break n}r[72]=h,c=k(1)|0,c<<16>>16==42&&(r[72]=(r[72]|0)+2,c=k(1)|0),c<<16>>16!=40&&(Ce=c,x=31)}while(!1);if((x|0)==31&&(we=r[72]|0,j(Ce)|0,ke=r[72]|0,ke>>>0>we>>>0)){P(t,T,we,ke),r[72]=(r[72]|0)+-2;break e}P(t,T,0,0),r[72]=t+12;break e}case 97:{r[72]=t+10,k(0)|0,t=r[72]|0,x=35;break}case 102:{x=35;break}case 99:{if(!(A(t+2|0,36,8)|0)&&(c=t+10|0,ge(d[c>>1]|0)|0)){r[72]=c,v=k(1)|0,x=r[72]|0,j(v)|0,v=r[72]|0,P(x,v,x,v),r[72]=(r[72]|0)+-2;break e}t=t+4|0,r[72]=t;break}case 108:case 118:break;default:break e}if((x|0)==35){r[72]=t+16,t=k(1)|0,t<<16>>16==42&&(r[72]=(r[72]|0)+2,t=k(1)|0),x=r[72]|0,j(t)|0,v=r[72]|0,P(x,v,x,v),r[72]=(r[72]|0)+-2;break e}r[72]=t+6,b[804]=0,h=k(1)|0,t=r[72]|0,h=(j(h)|0|32)<<16>>16==123,u=r[72]|0,h&&(r[72]=u+2,v=k(1)|0,t=r[72]|0,j(v)|0);n:for(;c=r[72]|0,(c|0)!=(t|0);){if(P(t,c,t,c),c=k(1)|0,h)switch(c<<16>>16){case 93:case 125:break e;default:}if(t=r[72]|0,c<<16>>16!=44){x=51;break}switch(r[72]=t+2,c=k(1)|0,t=r[72]|0,c<<16>>16){case 91:case 123:{x=51;break n}default:}j(c)|0}if((x|0)==51&&(r[72]=t+-2),!h)break e;r[72]=u+-2;break e}}while(!1);if(v=(k(1)|0)<<16>>16==102,t=r[72]|0,v&&!(A(t+2|0,66,6)|0))for(r[72]=t+8,H(T,k(1)|0,0),t=me|0?me+16|0:240;;){if(t=r[t>>2]|0,!t)break e;r[t+12>>2]=0,r[t+8>>2]=0,t=t+16|0}r[72]=t+-2}while(!1)}f($,"k");function B(){var t=0,c=0,h=0,u=0,m=0,w=0,y=0;m=r[72]|0,h=m+12|0,r[72]=h,u=k(1)|0,c=r[72]|0;e:do if(u<<16>>16!=46)u<<16>>16==115&c>>>0>h>>>0?!(A(c+2|0,56,10)|0)&&(t=c+12|0,W(d[t>>1]|0)|0)?w=14:(c=6,h=0,w=46):(t=u,h=0,w=15);else switch(r[72]=c+2,(k(1)|0)<<16>>16){case 109:{if(t=r[72]|0,A(t+2|0,50,6)|0||(c=r[69]|0,!(pe(c)|0)&&(d[c>>1]|0)==46))break e;fe(m,m,t+8|0,2);break e}case 115:{if(t=r[72]|0,A(t+2|0,56,10)|0||(c=r[69]|0,!(pe(c)|0)&&(d[c>>1]|0)==46))break e;t=t+12|0,w=14;break e}default:break e}while(!1);(w|0)==14&&(r[72]=t,t=k(1)|0,h=1,w=15);e:do if((w|0)==15)switch(t<<16>>16){case 40:{if(c=r[70]|0,y=d[400]|0,u=y&65535,r[c+(u<<3)>>2]=5,t=r[72]|0,d[400]=y+1<<16>>16,r[c+(u<<3)+4>>2]=t,(d[r[69]>>1]|0)==46)break e;switch(r[72]=t+2,c=k(1)|0,fe(m,r[72]|0,0,t),h?(t=r[63]|0,r[t+28>>2]=5):t=r[63]|0,m=r[71]|0,y=d[399]|0,d[399]=y+1<<16>>16,r[m+((y&65535)<<2)>>2]=t,c<<16>>16){case 39:{R(39);break}case 34:{R(34);break}default:{r[72]=(r[72]|0)+-2;break e}}switch(t=(r[72]|0)+2|0,r[72]=t,(k(1)|0)<<16>>16){case 44:{r[72]=(r[72]|0)+2,k(1)|0,m=r[63]|0,r[m+4>>2]=t,y=r[72]|0,r[m+16>>2]=y,b[m+24>>0]=1,r[72]=y+-2;break e}case 41:{d[400]=(d[400]|0)+-1<<16>>16,y=r[63]|0,r[y+4>>2]=t,r[y+12>>2]=(r[72]|0)+2,b[y+24>>0]=1,d[399]=(d[399]|0)+-1<<16>>16;break e}default:{r[72]=(r[72]|0)+-2;break e}}}case 123:{if(h){c=12,h=1,w=46;break e}if(t=r[72]|0,d[400]|0){r[72]=t+-2;break e}for(;!(t>>>0>=(r[73]|0)>>>0);){if(t=k(1)|0,X(t)|0)R(t);else if(t<<16>>16==125){w=36;break}t=(r[72]|0)+2|0,r[72]=t}if((w|0)==36&&(r[72]=(r[72]|0)+2),y=(k(1)|0)<<16>>16==102,t=r[72]|0,y&&A(t+2|0,66,6)|0){M();break e}if(r[72]=t+8,t=k(1)|0,X(t)|0){H(m,t,0);break e}else{M();break e}}default:{if(h){c=12,h=1,w=46;break e}switch(t<<16>>16){case 42:case 39:case 34:{h=0,w=48;break e}default:{c=6,h=0,w=46;break e}}}}while(!1);(w|0)==46&&(t=r[72]|0,(t|0)==(m+(c<<1)|0)?r[72]=t+-2:w=48);do if((w|0)==48){if(d[400]|0){r[72]=(r[72]|0)+-2;break}for(t=r[73]|0,c=r[72]|0;;){if(c>>>0>=t>>>0){w=55;break}if(u=d[c>>1]|0,X(u)|0){w=53;break}y=c+2|0,r[72]=y,c=y}if((w|0)==53){H(m,u,h);break}else if((w|0)==55){M();break}}while(!1)}f(B,"l");function H(t,c,h){t=t|0,c=c|0,h=h|0;var u=0,m=0;switch(u=(r[72]|0)+2|0,c<<16>>16){case 39:{R(39),m=5;break}case 34:{R(34),m=5;break}default:M()}do if((m|0)==5){if(fe(t,u,r[72]|0,1),h&&(r[(r[63]|0)+28>>2]=4),r[72]=(r[72]|0)+2,c=k(0)|0,h=c<<16>>16==97,h?(u=r[72]|0,A(u+2|0,94,10)|0&&(m=13)):(u=r[72]|0,c<<16>>16==119&&(d[u+2>>1]|0)==105&&(d[u+4>>1]|0)==116&&(d[u+6>>1]|0)==104||(m=13)),(m|0)==13){r[72]=u+-2;break}if(r[72]=u+((h?6:4)<<1),(k(1)|0)<<16>>16!=123){r[72]=u;break}h=r[72]|0,c=h;e:for(;;){switch(r[72]=c+2,c=k(1)|0,c<<16>>16){case 39:{R(39),r[72]=(r[72]|0)+2,c=k(1)|0;break}case 34:{R(34),r[72]=(r[72]|0)+2,c=k(1)|0;break}default:c=j(c)|0}if(c<<16>>16!=58){m=22;break}switch(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16){case 39:{R(39);break}case 34:{R(34);break}default:{m=26;break e}}switch(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16){case 125:{m=31;break e}case 44:break;default:{m=30;break e}}if(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16==125){m=31;break}c=r[72]|0}if((m|0)==22){r[72]=u;break}else if((m|0)==26){r[72]=u;break}else if((m|0)==30){r[72]=u;break}else if((m|0)==31){m=r[63]|0,r[m+16>>2]=h,r[m+12>>2]=(r[72]|0)+2;break}}while(!1)}f(H,"u");function xt(t){t=t|0;e:do switch(d[t>>1]|0){case 100:switch(d[t+-2>>1]|0){case 105:{t=I(t+-4|0,104,2)|0;break e}case 108:{t=I(t+-4|0,108,3)|0;break e}default:{t=0;break e}}case 101:switch(d[t+-2>>1]|0){case 115:switch(d[t+-4>>1]|0){case 108:{t=G(t+-6|0,101)|0;break e}case 97:{t=G(t+-6|0,99)|0;break e}default:{t=0;break e}}case 116:{t=I(t+-4|0,114,4)|0;break e}case 117:{t=I(t+-4|0,122,6)|0;break e}default:{t=0;break e}}case 102:{if((d[t+-2>>1]|0)==111&&(d[t+-4>>1]|0)==101)switch(d[t+-6>>1]|0){case 99:{t=I(t+-8|0,134,6)|0;break e}case 112:{t=I(t+-8|0,146,2)|0;break e}default:{t=0;break e}}else t=0;break}case 107:{t=I(t+-2|0,150,4)|0;break}case 110:{t=t+-2|0,G(t,105)|0?t=1:t=I(t,158,5)|0;break}case 111:{t=G(t+-2|0,100)|0;break}case 114:{t=I(t+-2|0,168,7)|0;break}case 116:{t=I(t+-2|0,182,4)|0;break}case 119:switch(d[t+-2>>1]|0){case 101:{t=G(t+-4|0,110)|0;break e}case 111:{t=I(t+-4|0,190,3)|0;break e}default:{t=0;break e}}default:t=0}while(!1);return t|0}f(xt,"o");function De(){var t=0,c=0,h=0,u=0;c=r[73]|0,h=r[72]|0;e:for(;;){if(t=h+2|0,h>>>0>=c>>>0){c=10;break}switch(d[t>>1]|0){case 96:{c=7;break e}case 36:{if((d[h+4>>1]|0)==123){c=6;break e}break}case 92:{t=h+4|0;break}default:}h=t}(c|0)==6?(t=h+4|0,r[72]=t,c=r[70]|0,u=d[400]|0,h=u&65535,r[c+(h<<3)>>2]=4,d[400]=u+1<<16>>16,r[c+(h<<3)+4>>2]=t):(c|0)==7?(r[72]=t,h=r[70]|0,u=(d[400]|0)+-1<<16>>16,d[400]=u,(r[h+((u&65535)<<3)>>2]|0)!=3&&M()):(c|0)==10&&(r[72]=t,M())}f(De,"h");function k(t){t=t|0;var c=0,h=0,u=0;h=r[72]|0;e:do{c=d[h>>1]|0;t:do if(c<<16>>16!=47)if(t){if(W(c)|0)break;break e}else{if(se(c)|0)break;break e}else switch(d[h+2>>1]|0){case 47:{be();break t}case 42:{de(t);break t}default:{c=47;break e}}while(!1);u=r[72]|0,h=u+2|0,r[72]=h}while(u>>>0<(r[73]|0)>>>0);return c|0}f(k,"w");function fe(t,c,h,u){t=t|0,c=c|0,h=h|0,u=u|0;var m=0,w=0;w=r[67]|0,r[67]=w+36,m=r[63]|0,r[(m|0?m+32|0:236)>>2]=w,r[64]=m,r[63]=w,r[w+8>>2]=t,(u|0)==2?(t=3,m=h):(m=(u|0)==1,t=m?1:2,m=m?h+2|0:0),r[w+12>>2]=m,r[w+28>>2]=t,r[w>>2]=c,r[w+4>>2]=h,r[w+16>>2]=0,r[w+20>>2]=u,c=(u|0)==1,b[w+24>>0]=c&1,r[w+32>>2]=0,c|(u|0)==2&&(b[803]=1)}f(fe,"d");function R(t){t=t|0;var c=0,h=0,u=0,m=0;for(m=r[73]|0,c=r[72]|0;;){if(u=c+2|0,c>>>0>=m>>>0){c=9;break}if(h=d[u>>1]|0,h<<16>>16==t<<16>>16){c=10;break}if(h<<16>>16==92)h=c+4|0,(d[h>>1]|0)==13?(c=c+6|0,c=(d[c>>1]|0)==10?c:h):c=h;else if(Te(h)|0){c=9;break}else c=u}(c|0)==9?(r[72]=u,M()):(c|0)==10&&(r[72]=u)}f(R,"v");function je(t,c){t=t|0,c=c|0;var h=0,u=0,m=0,w=0;return h=r[72]|0,u=d[h>>1]|0,w=(t|0)==(c|0),m=w?0:t,w=w?0:c,u<<16>>16==97&&(r[72]=h+4,h=k(1)|0,t=r[72]|0,X(h)|0?(R(h),c=(r[72]|0)+2|0,r[72]=c):(j(h)|0,c=r[72]|0),u=k(1)|0,h=r[72]|0),(h|0)!=(t|0)&&P(t,c,m,w),u|0}f(je,"A");function vt(){var t=0,c=0,h=0;h=r[73]|0,c=r[72]|0;e:for(;;){if(t=c+2|0,c>>>0>=h>>>0){c=6;break}switch(d[t>>1]|0){case 13:case 10:{c=6;break e}case 93:{c=7;break e}case 92:{t=c+4|0;break}default:}c=t}return(c|0)==6?(r[72]=t,M(),t=0):(c|0)==7&&(r[72]=t,t=93),t|0}f(vt,"C");function he(){var t=0,c=0,h=0;e:for(;;){if(t=r[72]|0,c=t+2|0,r[72]=c,t>>>0>=(r[73]|0)>>>0){h=7;break}switch(d[c>>1]|0){case 13:case 10:{h=7;break e}case 47:break e;case 91:{vt()|0;break}case 92:{r[72]=t+4;break}default:}}(h|0)==7&&M()}f(he,"g");function Et(t){switch(t=t|0,d[t>>1]|0){case 62:{t=(d[t+-2>>1]|0)==61;break}case 41:case 59:{t=1;break}case 104:{t=I(t+-2|0,210,4)|0;break}case 121:{t=I(t+-2|0,218,6)|0;break}case 101:{t=I(t+-2|0,230,3)|0;break}default:t=0}return t|0}f(Et,"p");function de(t){t=t|0;var c=0,h=0,u=0,m=0,w=0;for(m=(r[72]|0)+2|0,r[72]=m,h=r[73]|0;c=m+2|0,!(m>>>0>=h>>>0||(u=d[c>>1]|0,!t&&Te(u)|0));){if(u<<16>>16==42&&(d[m+4>>1]|0)==47){w=8;break}m=c}(w|0)==8&&(r[72]=c,c=m+4|0),r[72]=c}f(de,"y");function A(t,c,h){t=t|0,c=c|0,h=h|0;var u=0,m=0;e:do if(!h)t=0;else{for(;u=b[t>>0]|0,m=b[c>>0]|0,u<<24>>24==m<<24>>24;)if(h=h+-1|0,h)t=t+1|0,c=c+1|0;else{t=0;break e}t=(u&255)-(m&255)|0}while(!1);return t|0}f(A,"m");function ie(t){t=t|0;e:do switch(t<<16>>16){case 38:case 37:case 33:{t=1;break}default:if((t&-8)<<16>>16==40|(t+-58&65535)<6)t=1;else{switch(t<<16>>16){case 91:case 93:case 94:{t=1;break e}default:}t=(t+-123&65535)<4}}while(!1);return t|0}f(ie,"I");function _t(t){t=t|0;e:do switch(t<<16>>16){case 38:case 37:case 33:break;default:if(!((t+-58&65535)<6|(t+-40&65535)<7&t<<16>>16!=41)){switch(t<<16>>16){case 91:case 94:break e;default:}return t<<16>>16!=125&(t+-123&65535)<4|0}}while(!1);return 1}f(_t,"U");function Ue(t){t=t|0;var c=0;c=d[t>>1]|0;e:do if((c+-9&65535)>=5){switch(c<<16>>16){case 160:case 32:{c=1;break e}default:}if(ie(c)|0)return c<<16>>16!=46|(pe(t)|0)|0;c=0}else c=1;while(!1);return c|0}f(Ue,"x");function Lt(t){t=t|0;var c=0,h=0,u=0,m=0;return h=_,_=_+16|0,u=h,r[u>>2]=0,r[66]=t,c=r[3]|0,m=c+(t<<1)|0,t=m+2|0,d[m>>1]=0,r[u>>2]=t,r[67]=t,r[59]=0,r[63]=0,r[61]=0,r[60]=0,r[65]=0,r[62]=0,_=h,c|0}f(Lt,"S");function P(t,c,h,u){t=t|0,c=c|0,h=h|0,u=u|0;var m=0,w=0;m=r[67]|0,r[67]=m+20,w=r[65]|0,r[(w|0?w+16|0:240)>>2]=m,r[65]=m,r[m>>2]=t,r[m+4>>2]=c,r[m+8>>2]=h,r[m+12>>2]=u,r[m+16>>2]=0,b[803]=1}f(P,"O");function I(t,c,h){t=t|0,c=c|0,h=h|0;var u=0,m=0;return u=t+(0-h<<1)|0,m=u+2|0,t=r[3]|0,m>>>0>=t>>>0&&!(A(m,c,h<<1)|0)?(m|0)==(t|0)?t=1:t=Ue(u)|0:t=0,t|0}f(I,"$");function It(t){switch(t=t|0,d[t>>1]|0){case 107:{t=I(t+-2|0,150,4)|0;break}case 101:{(d[t+-2>>1]|0)==117?t=I(t+-4|0,122,6)|0:t=0;break}default:t=0}return t|0}f(It,"j");function G(t,c){t=t|0,c=c|0;var h=0;return h=r[3]|0,h>>>0<=t>>>0&&(d[t>>1]|0)==c<<16>>16?(h|0)==(t|0)?h=1:h=ge(d[t+-2>>1]|0)|0:h=0,h|0}f(G,"B");function ge(t){t=t|0;e:do if((t+-9&65535)<5)t=1;else{switch(t<<16>>16){case 32:case 160:{t=1;break e}default:}t=t<<16>>16!=46&(ie(t)|0)}while(!1);return t|0}f(ge,"E");function be(){var t=0,c=0,h=0;t=r[73]|0,h=r[72]|0;e:for(;c=h+2|0,!(h>>>0>=t>>>0);)switch(d[c>>1]|0){case 13:case 10:break e;default:h=c}r[72]=c}f(be,"P");function j(t){for(t=t|0;!(W(t)|0||ie(t)|0);)if(t=(r[72]|0)+2|0,r[72]=t,t=d[t>>1]|0,!(t<<16>>16)){t=0;break}return t|0}f(j,"q");function Ot(){var t=0;switch(t=r[(r[61]|0)+20>>2]|0,t|0){case 1:{t=-1;break}case 2:{t=-2;break}default:t=t-(r[3]|0)>>1}return t|0}f(Ot,"z");function At(t){return t=t|0,!(I(t,196,5)|0)&&!(I(t,44,3)|0)?t=I(t,206,2)|0:t=1,t|0}f(At,"D");function se(t){switch(t=t|0,t<<16>>16){case 160:case 32:case 12:case 11:case 9:{t=1;break}default:t=0}return t|0}f(se,"F");function pe(t){return t=t|0,(d[t>>1]|0)==46&&(d[t+-2>>1]|0)==46?t=(d[t+-4>>1]|0)==46:t=0,t|0}f(pe,"G");function K(t){return t=t|0,(r[3]|0)==(t|0)?t=1:t=Ue(t+-2|0)|0,t|0}f(K,"H");function Nt(){var t=0;return t=r[(r[62]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Nt,"J");function Rt(){var t=0;return t=r[(r[61]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Rt,"K");function Mt(){var t=0;return t=r[(r[62]|0)+8>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Mt,"L");function $t(){var t=0;return t=r[(r[61]|0)+16>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f($t,"M");function Dt(){var t=0;return t=r[(r[61]|0)+4>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Dt,"N");function jt(){var t=0;return t=r[61]|0,t=r[(t|0?t+32|0:236)>>2]|0,r[61]=t,(t|0)!=0|0}f(jt,"Q");function Ut(){var t=0;return t=r[62]|0,t=r[(t|0?t+16|0:240)>>2]|0,r[62]=t,(t|0)!=0|0}f(Ut,"R");function M(){b[802]=1,r[68]=(r[72]|0)-(r[3]|0)>>1,r[72]=(r[73]|0)+2}f(M,"T");function W(t){return t=t|0,(t|128)<<16>>16==160|(t+-9&65535)<5|0}f(W,"V");function X(t){return t=t|0,t<<16>>16==39|t<<16>>16==34|0}f(X,"W");function Tt(){return(r[(r[61]|0)+8>>2]|0)-(r[3]|0)>>1|0}f(Tt,"X");function Ft(){return(r[(r[62]|0)+4>>2]|0)-(r[3]|0)>>1|0}f(Ft,"Y");function Te(t){return t=t|0,t<<16>>16==13|t<<16>>16==10|0}f(Te,"Z");function Bt(){return(r[r[61]>>2]|0)-(r[3]|0)>>1|0}f(Bt,"_");function Pt(){return(r[r[62]>>2]|0)-(r[3]|0)>>1|0}f(Pt,"ee");function Wt(){return S[(r[61]|0)+24>>0]|0|0}f(Wt,"ae");function Jt(t){t=t|0,r[3]=t}f(Jt,"re");function qt(){return r[(r[61]|0)+28>>2]|0}f(qt,"ie");function zt(){return(b[803]|0)!=0|0}f(zt,"se");function Ht(){return(b[804]|0)!=0|0}f(Ht,"fe");function Gt(){return r[68]|0}f(Gt,"te");function Kt(t){return t=t|0,_=t+992+15&-16,992}return f(Kt,"ce"),{su:Kt,ai:$t,e:Gt,ee:Ft,ele:Nt,els:Mt,es:Pt,f:Ht,id:Ot,ie:Dt,ip:Wt,is:Bt,it:qt,ms:zt,p:N,re:Ut,ri:jt,sa:Lt,se:Rt,ses:Jt,ss:Tt}}(typeof self<"u"?self:global,{},oe),xe=E.su(Z-(2<<17))}const i=L.length+1;E.ses(xe),E.sa(i-1),ze(L,new Uint16Array(oe,xe,i)),E.p()||(C=E.e(),U());const o=[],a=[];for(;E.ri();){const l=E.is(),p=E.ie(),g=E.ai(),b=E.id(),d=E.ss(),r=E.se(),S=E.it();let O;E.ip()&&(O=ve(b===-1?l:l+1,L.charCodeAt(b===-1?l-1:l))),o.push({t:S,n:O,s:l,e:p,ss:d,se:r,d:b,a:g})}for(;E.re();){const l=E.es(),p=E.ee(),g=E.els(),b=E.ele(),d=L.charCodeAt(l),r=g>=0?L.charCodeAt(g):-1;a.push({s:l,e:p,ls:g,le:b,n:d===34||d===39?ve(l+1,d):L.slice(l,p),ln:g<0?void 0:r===34||r===39?ve(g+1,r):L.slice(g,b)})}return[o,a,!!E.f(),!!E.ms()]}f(Cn,"parse");function ve(s,e){C=s;let n="",i=C;for(;;){C>=L.length&&U();const o=L.charCodeAt(C);if(o===e)break;o===92?(n+=L.slice(i,C),n+=yn(),i=C):(o===8232||o===8233||Ge(o)&&U(),++C)}return n+=L.slice(i,C++),n}f(ve,"b");function yn(){let s=L.charCodeAt(++C);switch(++C,s){case 110:return`
|
|
11
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(Ee(2));case 117:return function(){const e=L.charCodeAt(C);let n;return e===123?(++C,n=Ee(L.indexOf("}",C)-C),++C,n>1114111&&U()):n=Ee(4),n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode(55296+(n>>10),56320+(1023&n)))}();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:L.charCodeAt(C)===10&&++C;case 10:return"";case 56:case 57:U();default:if(s>=48&&s<=55){let e=L.substr(C-1,3).match(/^[0-7]+/)[0],n=parseInt(e,8);return n>255&&(e=e.slice(0,-1),n=parseInt(e,8)),C+=e.length-1,s=L.charCodeAt(C),e==="0"&&s!==56&&s!==57||U(),String.fromCharCode(n)}return Ge(s)?"":String.fromCharCode(s)}}f(yn,"k");function Ee(s){const e=C;let n=0,i=0;for(let o=0;o<s;++o,++C){let a,l=L.charCodeAt(C);if(l!==95){if(l>=97)a=l-97+10;else if(l>=65)a=l-65+10;else{if(!(l>=48&&l<=57))break;a=l-48}if(a>=16)break;i=l,n=16*n+a}else i!==95&&o!==0||U(),i=l}return i!==95&&C-e===s||U(),n}f(Ee,"l");function Ge(s){return s===13||s===10}f(Ge,"u");function U(){throw Object.assign(Error(`Parse error ${He}:${L.slice(0,C).split(`
|
|
12
|
-
`).length}:${C-L.lastIndexOf(`
|
|
13
|
-
`,C-1)}`),{idx:C})}f(U,"o");let _e;typeof WebAssembly<"u"&&(async()=>{const{parse:s,init:e}=await import("./lexer-DQCqS3nf.mjs");await e,_e=s})();const Le=f((s,e)=>_e?_e(s,e):Cn(s,e),"parseEsm"),Sn=f(s=>{if(!s.includes("import")&&!s.includes("export"))return!1;try{return Le(s)[3]}catch{return!0}},"isESM"),Ie="2",xn=(s=>{const e="default";return s[e]&&typeof s[e]=="object"&&"__esModule"in s[e]?s[e]:s}).toString(),vn=`.then(${xn})`,ae=f((s,e,n)=>{if(n){if(!e.includes("import("))return}else if(!e.includes("import"))return;const o=Le(e,s)[0].filter(g=>g.d>-1);if(o.length===0)return;const a=new $e(e);for(const g of o)a.appendRight(g.se,vn);const l=a.toString(),p=a.generateMap({source:s,includeContent:!1,hires:"boundary"});return{code:l,map:p}},"transformDynamicImport"),Ke=f(s=>{try{const e=D.readFileSync(s,"utf8");return JSON.parse(e)}catch{}},"readJsonFile"),V=f(()=>{},"noop"),Xe=f(()=>Math.floor(Date.now()/1e8),"getTime"),En=/^(\d+)-([^-]+)$/;class _n extends Map{static{f(this,"FileCache")}cacheDirectory;oldCacheDirectory;diskCacheIndex;diskCacheEntries;constructor(e=rn,n=J.join(nn.tmpdir(),"tsx")){super(),this.cacheDirectory=e,this.oldCacheDirectory=n}getDiskCacheIndex(){if(this.diskCacheIndex)return this.diskCacheIndex;D.mkdirSync(this.cacheDirectory,{recursive:!0});const e=new Map,n=[];for(const i of D.readdirSync(this.cacheDirectory)){const o=En.exec(i);if(!o)continue;const a=Number(o[1]);if(!Number.isSafeInteger(a))continue;const l=o[2],p={time:a,key:l,fileName:i};n.push(p);const g=e.get(l);(!g||g.time<a)&&e.set(l,p)}return this.diskCacheIndex=e,this.diskCacheEntries=n,setImmediate(()=>{this.expireDiskCache().catch(V),this.removeOldCacheDirectory().catch(V)}),e}removeDiskCacheEntry(e){const n=this.diskCacheEntries.indexOf(e);if(n!==-1&&this.diskCacheEntries.splice(n,1),this.diskCacheIndex.get(e.key)===e){let i;for(const o of this.diskCacheEntries)o.key===e.key&&(!i||o.time>i.time)&&(i=o);i?this.diskCacheIndex.set(e.key,i):this.diskCacheIndex.delete(e.key)}}get(e){const n=super.get(e);if(n)return n;const i=this.getDiskCacheIndex();let o=i.get(e);for(;o;){const a=J.join(this.cacheDirectory,o.fileName),l=Ke(a);if(l)return super.set(e,l),l;this.removeDiskCacheEntry(o),D.promises.unlink(a).catch(V),o=i.get(e)}}set(e,n){if(super.set(e,n),n){const i=Xe(),o=`${i}-${e}`,a=this.getDiskCacheIndex(),l={time:i,key:e,fileName:o};D.promises.writeFile(J.join(this.cacheDirectory,o),JSON.stringify(n)).then(()=>{const p=a.get(e);p?.fileName===o&&this.removeDiskCacheEntry(p),a.set(e,l),this.diskCacheEntries.push(l)},V)}return this}async expireDiskCache(){this.getDiskCacheIndex();const e=Xe(),n=[];for(const i of this.diskCacheEntries)e-i.time>7&&n.push(D.promises.unlink(J.join(this.cacheDirectory,i.fileName)).then(()=>this.removeDiskCacheEntry(i),V));await Promise.all(n)}async removeOldCacheDirectory(){try{await D.promises.access(this.oldCacheDirectory).then(()=>!0)&&("rm"in D.promises?await D.promises.rm(this.oldCacheDirectory,{recursive:!0,force:!0}):await D.promises.rmdir(this.oldCacheDirectory,{recursive:!0}))}catch{}}}var z=process.env.TSX_DISABLE_CACHE?new Map:new _n;const Ye=44,Ln=59,Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ze=new Uint8Array(64),Ve=new Uint8Array(128);for(let s=0;s<Qe.length;s++){const e=Qe.charCodeAt(s);Ze[s]=e,Ve[e]=s}const Oe=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(s){return Buffer.from(s.buffer,s.byteOffset,s.byteLength).toString()}}:{decode(s){let e="";for(let n=0;n<s.length;n++)e+=String.fromCharCode(s[n]);return e}};function In(s){const e=new Int32Array(5),n=[];let i=0;do{const o=On(s,i),a=[];let l=!0,p=0;e[0]=0;for(let g=i;g<o;g++){let b;g=ee(s,g,e,0);const d=e[0];d<p&&(l=!1),p=d,et(s,g,o)?(g=ee(s,g,e,1),g=ee(s,g,e,2),g=ee(s,g,e,3),et(s,g,o)?(g=ee(s,g,e,4),b=[d,e[1],e[2],e[3],e[4]]):b=[d,e[1],e[2],e[3]]):b=[d],a.push(b)}l||An(a),n.push(a),i=o+1}while(i<=s.length);return n}f(In,"decode");function On(s,e){const n=s.indexOf(";",e);return n===-1?s.length:n}f(On,"indexOf");function ee(s,e,n,i){let o=0,a=0,l=0;do{const g=s.charCodeAt(e++);l=Ve[g],o|=(l&31)<<a,a+=5}while(l&32);const p=o&1;return o>>>=1,p&&(o=-2147483648|-o),n[i]+=o,e}f(ee,"decodeInteger");function et(s,e,n){return e>=n?!1:s.charCodeAt(e)!==Ye}f(et,"hasMoreVlq");function An(s){s.sort(Nn)}f(An,"sort");function Nn(s,e){return s[0]-e[0]}f(Nn,"sortComparator$1");function Rn(s){const e=new Int32Array(5),n=1024*16,i=n-36,o=new Uint8Array(n),a=o.subarray(0,i);let l=0,p="";for(let g=0;g<s.length;g++){const b=s[g];if(g>0&&(l===n&&(p+=Oe.decode(o),l=0),o[l++]=Ln),b.length!==0){e[0]=0;for(let d=0;d<b.length;d++){const r=b[d];l>i&&(p+=Oe.decode(a),o.copyWithin(0,i,l),l-=i),d>0&&(o[l++]=Ye),l=te(o,l,e,r,0),r.length!==1&&(l=te(o,l,e,r,1),l=te(o,l,e,r,2),l=te(o,l,e,r,3),r.length!==4&&(l=te(o,l,e,r,4)))}}}return p+Oe.decode(o.subarray(0,l))}f(Rn,"encode");function te(s,e,n,i,o){const a=i[o];let l=a-n[o];n[o]=a,l=l<0?-l<<1|1:l<<1;do{let p=l&31;l>>>=5,l>0&&(p|=32),s[e++]=Ze[p]}while(l>0);return e}f(te,"encodeInteger");const Mn=/^[\w+.-]+:\/\//,$n=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Dn=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function jn(s){return Mn.test(s)}f(jn,"isAbsoluteUrl");function Un(s){return s.startsWith("//")}f(Un,"isSchemeRelativeUrl");function tt(s){return s.startsWith("/")}f(tt,"isAbsolutePath");function Tn(s){return s.startsWith("file:")}f(Tn,"isFileUrl");function nt(s){return/^[.?#]/.test(s)}f(nt,"isRelative");function ce(s){const e=$n.exec(s);return rt(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}f(ce,"parseAbsoluteUrl");function Fn(s){const e=Dn.exec(s),n=e[2];return rt("file:","",e[1]||"","",tt(n)?n:"/"+n,e[3]||"",e[4]||"")}f(Fn,"parseFileUrl");function rt(s,e,n,i,o,a,l){return{scheme:s,user:e,host:n,port:i,path:o,query:a,hash:l,type:7}}f(rt,"makeUrl");function it(s){if(Un(s)){const n=ce("http:"+s);return n.scheme="",n.type=6,n}if(tt(s)){const n=ce("http://foo.com"+s);return n.scheme="",n.host="",n.type=5,n}if(Tn(s))return Fn(s);if(jn(s))return ce(s);const e=ce("http://foo.com/"+s);return e.scheme="",e.host="",e.type=s?s.startsWith("?")?3:s.startsWith("#")?2:4:1,e}f(it,"parseUrl");function Bn(s){if(s.endsWith("/.."))return s;const e=s.lastIndexOf("/");return s.slice(0,e+1)}f(Bn,"stripPathFilename");function Pn(s,e){st(e,e.type),s.path==="/"?s.path=e.path:s.path=Bn(e.path)+s.path}f(Pn,"mergePaths");function st(s,e){const n=e<=4,i=s.path.split("/");let o=1,a=0,l=!1;for(let g=1;g<i.length;g++){const b=i[g];if(!b){l=!0;continue}if(l=!1,b!=="."){if(b===".."){a?(l=!0,a--,o--):n&&(i[o++]=b);continue}i[o++]=b,a++}}let p="";for(let g=1;g<o;g++)p+="/"+i[g];(!p||l&&!p.endsWith("/.."))&&(p+="/"),s.path=p}f(st,"normalizePath");function Wn(s,e){if(!s&&!e)return"";const n=it(s);let i=n.type;if(e&&i!==7){const a=it(e),l=a.type;switch(i){case 1:n.hash=a.hash;case 2:n.query=a.query;case 3:case 4:Pn(n,a);case 5:n.user=a.user,n.host=a.host,n.port=a.port;case 6:n.scheme=a.scheme}l>i&&(i=l)}st(n,i);const o=n.query+n.hash;switch(i){case 2:case 3:return o;case 4:{const a=n.path.slice(1);return a?nt(e||s)&&!nt(a)?"./"+a+o:a+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}f(Wn,"resolve$1");function ot(s,e){return e&&!e.endsWith("/")&&(e+="/"),Wn(s,e)}f(ot,"resolve");function Jn(s){if(!s)return"";const e=s.lastIndexOf("/");return s.slice(0,e+1)}f(Jn,"stripFilename");const F=0;function qn(s,e){const n=at(s,0);if(n===s.length)return s;e||(s=s.slice());for(let i=n;i<s.length;i=at(s,i+1))s[i]=Hn(s[i],e);return s}f(qn,"maybeSort");function at(s,e){for(let n=e;n<s.length;n++)if(!zn(s[n]))return n;return s.length}f(at,"nextUnsortedSegmentLine");function zn(s){for(let e=1;e<s.length;e++)if(s[e][F]<s[e-1][F])return!1;return!0}f(zn,"isSorted");function Hn(s,e){return e||(s=s.slice()),s.sort(Gn)}f(Hn,"sortSegments");function Gn(s,e){return s[F]-e[F]}f(Gn,"sortComparator");let le=!1;function Kn(s,e,n,i){for(;n<=i;){const o=n+(i-n>>1),a=s[o][F]-e;if(a===0)return le=!0,o;a<0?n=o+1:i=o-1}return le=!1,n-1}f(Kn,"binarySearch");function Xn(s,e,n){for(let i=n-1;i>=0&&s[i][F]===e;n=i--);return n}f(Xn,"lowerBound");function Yn(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}f(Yn,"memoizedState");function Qn(s,e,n,i){const{lastKey:o,lastNeedle:a,lastIndex:l}=n;let p=0,g=s.length-1;if(i===o){if(e===a)return le=l!==-1&&s[l][F]===e,l;e>=a?p=l===-1?0:l:g=l}return n.lastKey=i,n.lastNeedle=e,n.lastIndex=Kn(s,e,p,g)}f(Qn,"memoizedBinarySearch");class ct{static{f(this,"TraceMap")}constructor(e,n){const i=typeof e=="string";if(!i&&e._decodedMemo)return e;const o=i?JSON.parse(e):e,{version:a,file:l,names:p,sourceRoot:g,sources:b,sourcesContent:d}=o;this.version=a,this.file=l,this.names=p||[],this.sourceRoot=g,this.sources=b,this.sourcesContent=d,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const r=ot(g||"",Jn(n));this.resolvedSources=b.map(O=>ot(O||"",r));const{mappings:S}=o;typeof S=="string"?(this._encoded=S,this._decoded=void 0):(this._encoded=void 0,this._decoded=qn(S,i)),this._decodedMemo=Yn(),this._bySources=void 0,this._bySourceMemos=void 0}}function zr(s){return s}f(zr,"cast$2");function lt(s){var e;return(e=s)._decoded||(e._decoded=In(s._encoded))}f(lt,"decodedMappings");function Zn(s,e,n){const i=lt(s);if(e>=i.length)return null;const o=i[e],a=Vn(o,s._decodedMemo,e,n);return a===-1?null:o[a]}f(Zn,"traceSegment");function Vn(s,e,n,i,o){let a=Qn(s,i,e,n);return le&&(a=Xn(s,i,a)),a===-1||a===s.length?-1:a}f(Vn,"traceSegmentInternal");class Ae{static{f(this,"SetArray")}constructor(){this._indexes={__proto__:null},this.array=[]}}function Hr(s){return s}f(Hr,"cast$1");function ut(s,e){return s._indexes[e]}f(ut,"get");function ne(s,e){const n=ut(s,e);if(n!==void 0)return n;const{array:i,_indexes:o}=s,a=i.push(e);return o[e]=a-1}f(ne,"put");function er(s,e){const n=ut(s,e);if(n===void 0)return;const{array:i,_indexes:o}=s;for(let a=n+1;a<i.length;a++){const l=i[a];i[a-1]=l,o[l]--}o[e]=void 0,i.pop()}f(er,"remove");const tr=0,nr=1,rr=2,ir=3,sr=4,ft=-1;class or{static{f(this,"GenMapping")}constructor({file:e,sourceRoot:n}={}){this._names=new Ae,this._sources=new Ae,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new Ae}}function Gr(s){return s}f(Gr,"cast");const ar=f((s,e,n,i,o,a,l,p)=>fr(!0,s,e,n,i,o,a,l),"maybeAddSegment");function cr(s,e,n){const{_sources:i,_sourcesContent:o}=s,a=ne(i,e);o[a]=n}f(cr,"setSourceContent");function lr(s,e,n=!0){const{_sources:i,_sourcesContent:o,_ignoreList:a}=s,l=ne(i,e);l===o.length&&(o[l]=null),n?ne(a,l):er(a,l)}f(lr,"setIgnore");function ht(s){const{_mappings:e,_sources:n,_sourcesContent:i,_names:o,_ignoreList:a}=s;return gr(e),{version:3,file:s.file||void 0,names:o.array,sourceRoot:s.sourceRoot||void 0,sources:n.array,sourcesContent:i,mappings:e,ignoreList:a.array}}f(ht,"toDecodedMap");function ur(s){const e=ht(s);return Object.assign(Object.assign({},e),{mappings:Rn(e.mappings)})}f(ur,"toEncodedMap");function fr(s,e,n,i,o,a,l,p,g){const{_mappings:b,_sources:d,_sourcesContent:r,_names:S}=e,O=hr(b,n),_=dr(O,i);if(!o)return br(O,_)?void 0:dt(O,_,[i]);const N=ne(d,o),$=p?ne(S,p):ft;if(N===r.length&&(r[N]=null),!pr(O,_,N,a,l,$))return dt(O,_,p?[i,N,a,l,$]:[i,N,a,l])}f(fr,"addSegmentInternal");function hr(s,e){for(let n=s.length;n<=e;n++)s[n]=[];return s[e]}f(hr,"getLine");function dr(s,e){let n=s.length;for(let i=n-1;i>=0;n=i--){const o=s[i];if(e>=o[tr])break}return n}f(dr,"getColumnIndex");function dt(s,e,n){for(let i=s.length;i>e;i--)s[i]=s[i-1];s[e]=n}f(dt,"insert");function gr(s){const{length:e}=s;let n=e;for(let i=n-1;i>=0&&!(s[i].length>0);n=i,i--);n<e&&(s.length=n)}f(gr,"removeEmptyFinalLines");function br(s,e){return e===0?!0:s[e-1].length===1}f(br,"skipSourceless");function pr(s,e,n,i,o,a){if(e===0)return!1;const l=s[e-1];return l.length===1?!1:n===l[nr]&&i===l[rr]&&o===l[ir]&&a===(l.length===5?l[sr]:ft)}f(pr,"skipSource");const gt=bt("",-1,-1,"",null,!1),mr=[];function bt(s,e,n,i,o,a){return{source:s,line:e,column:n,name:i,content:o,ignore:a}}f(bt,"SegmentObject");function pt(s,e,n,i,o){return{map:s,sources:e,source:n,content:i,ignore:o}}f(pt,"Source");function mt(s,e){return pt(s,e,"",null,!1)}f(mt,"MapSource");function wr(s,e,n){return pt(null,mr,s,e,n)}f(wr,"OriginalSource");function kr(s){const e=new or({file:s.map.file}),{sources:n,map:i}=s,o=i.names,a=lt(i);for(let l=0;l<a.length;l++){const p=a[l];for(let g=0;g<p.length;g++){const b=p[g],d=b[0];let r=gt;if(b.length!==1){const H=n[b[1]];if(r=wt(H,b[2],b[3],b.length===5?o[b[4]]:""),r==null)continue}const{column:S,line:O,name:_,content:N,source:$,ignore:B}=r;ar(e,l,d,$,O,S,_),$&&N!=null&&cr(e,$,N),B&&lr(e,$,!0)}}return e}f(kr,"traceMappings");function wt(s,e,n,i){if(!s.map)return bt(s.source,e,n,i,s.content,s.ignore);const o=Zn(s.map,e,n);return o==null?null:o.length===1?gt:wt(s.sources[o[1]],o[2],o[3],o.length===5?s.map.names[o[4]]:i)}f(wt,"originalPositionFor");function Cr(s){return Array.isArray(s)?s:[s]}f(Cr,"asArray");function yr(s,e){const n=Cr(s).map(a=>new ct(a,"")),i=n.pop();for(let a=0;a<n.length;a++)if(n[a].sources.length>1)throw new Error(`Transformation map ${a} must have exactly one source file.
|
|
14
|
-
Did you specify these with the most recent transformation maps first?`);let o=kt(i,e,"",0);for(let a=n.length-1;a>=0;a--)o=mt(n[a],[o]);return o}f(yr,"buildSourceMapTree");function kt(s,e,n,i){const{resolvedSources:o,sourcesContent:a,ignoreList:l}=s,p=i+1,g=o.map((b,d)=>{const r={importer:n,depth:p,source:b||"",content:void 0,ignore:void 0},S=e(r.source,r),{source:O,content:_,ignore:N}=r;if(S)return kt(new ct(S,O),e,O,p);const $=_!==void 0?_:a?a[d]:null,B=N!==void 0?N:l?l.includes(d):!1;return wr(O,$,B)});return mt(s,g)}f(kt,"build");class Sr{static{f(this,"SourceMap")}constructor(e,n){const i=n.decodedMappings?ht(e):ur(e);this.version=i.version,this.file=i.file,this.mappings=i.mappings,this.names=i.names,this.ignoreList=i.ignoreList,this.sourceRoot=i.sourceRoot,this.sources=i.sources,n.excludeContent||(this.sourcesContent=i.sourcesContent)}toString(){return JSON.stringify(this)}}function Ct(s,e,n){const i={excludeContent:!!n,decodedMappings:!1},o=yr(s,e);return new Sr(kr(o),i)}f(Ct,"remapping");const yt=f((s,e,n)=>{const i=[],o={code:e};for(const a of n){const l=a(s,o.code);l&&(Object.assign(o,l),i.unshift(l.map))}return{...o,map:Ct(i,()=>null)}},"applyTransformersSync"),xr=f(async(s,e,n)=>{const i=[],o={code:e};for(const a of n){const l=await a(s,o.code);l&&(Object.assign(o,l),i.unshift(l.map))}return{...o,map:Ct(i,()=>null)}},"applyTransformers"),vr=f(s=>{const e=[];let n=!1,i=!0;for(let o=0;o<s.length;o+=1){let a=s[o];if(a==="\\"&&n){if(o+1===s.length)return e;o+=1,a=s[o]}else if(a===" "&&!n){i=!0;continue}else if(a==='"'){n=!n;continue}i?(e.push(a),i=!1):e[e.length-1]+=a}return e},"tokenizeNodeOptionsEnv"),St=f((s,e,n)=>{for(let i=0;i<e.length;i+=1){const o=e[i];if(o.length<=1||o[0]!=="-")continue;const a=o[1]==="-"?o.indexOf("="):-1;let l=a===-1?o:o.slice(0,a);l.includes("_",2)&&(l=l.slice(0,2)+l.slice(2).replaceAll("_","-"));for(const p of s.forms){const[g,b]=p;if(l!==g||(b===3||b===5)&&a===-1)continue;const d=b===4||b===5,r=b>=3?0:b;let S=d?p[2]:"";r===0&&!d&&(a===-1?(i+=1,S=e[i]??"",S[0]==="\\"&&S[1]==="-"&&(S=S.slice(1))):S=o.slice(a+1)),n=s.fold(S,n,r);break}}return n},"scanSource"),Er=f(s=>{let e=s.init();const n=process.env.NODE_OPTIONS;return n&&(e=St(s,vr(n),e)),e=St(s,process.execArgv,e),e},"getOptionValue"),_r=f((s,e,n)=>n===1,"setByEffect"),Lr=f((s,e)=>({forms:e,init:f(()=>s,"init"),fold:_r}),"booleanFlag"),Ir=Lr(!1,[["--inspect-brk-node",1],["--inspect-brk",1],["--inspect-wait",1],["--inspect",1],["--no-inspect",2]]),Or=Object.freeze({target:`node${process.versions.node}`,loader:"default"}),Ar=Er(Ir),Ne={...Or,sourcemap:!0,sourcesContent:!!process.env.NODE_V8_COVERAGE||Ar,minifyWhitespace:!0,keepNames:!0},Re=f(s=>{const e=s.sourcefile;if(e){const n=J.extname(e.split("?")[0]);n?n===".cts"||n===".mts"?s.sourcefile=`${e.slice(0,-3)}ts`:n===".mjs"&&(s.sourcefile=`${e.slice(0,-3)}js`):s.sourcefile+=".js"}return n=>(n.map&&(s.sourcefile!==e&&(n.map=n.map.replace(JSON.stringify(s.sourcefile),JSON.stringify(e))),n.map=JSON.parse(n.map)),n)},"patchOptions"),Me=f(s=>{throw s.name="TransformError",delete s.errors,delete s.warnings,s},"formatEsbuildError"),Nr=f((s,e)=>({...en(tn)?{dirname:J.dirname(s),filename:s}:{},url:e}),"getImportMeta"),Rr=f((s,e,n)=>{let i,o,a;if(e.startsWith("file://")){i=e;const r=new URL(e);o=Yt(r)}else[o,a]=e.split("?"),i=Qt(o)+(a?`?${a}`:"");const{cjsBanner:l,...p}=n??{},g={...Ne,format:"cjs",sourcefile:o,banner:`__filename=${JSON.stringify(o)};(()=>{${l??""}`,footer:"})()",platform:"node",...p};s.includes("import.meta")&&g.format==="cjs"&&!o.endsWith(".cjs")&&!o.endsWith(".cts")&&(g.define={...g.define,"import.meta":JSON.stringify(Nr(o,i))});const b=Se([s,i,JSON.stringify(g),ye,Ie].join("-"));let d=z.get(b);return d||(d=yt(e,s,[(r,S)=>{const O=Re(g);let _;try{_=Fe(S,g)}catch(N){throw Me(N)}return O(_)},(r,S)=>ae(r,S,!0)]),z.set(b,d)),d},"transformSync"),Mr=f(async(s,e,n)=>{const i={...Ne,format:"esm",sourcefile:e,...n},o=Se([s,JSON.stringify(i),ye,Ie].join("-"));let a=z.get(o);return a||(a=await xr(e,s,[async(l,p)=>{const g=Re(i);let b;try{b=await Zt(p,i)}catch(d){throw Me(d)}return g(b)},(l,p)=>ae(l,p,!0)]),z.set(o,a)),a},"transform"),$r=f((s,e,n)=>{const i={...Ne,format:"esm",sourcefile:e,...n},o=Se([s,JSON.stringify(i),ye,Ie].join("-"));let a=z.get(o);return a||(a=yt(e,s,[(l,p)=>{const g=Re(i);let b;try{b=Fe(p,i)}catch(d){throw Me(d)}return g(b)},(l,p)=>ae(l,p,!0)]),z.set(o,a)),a},"transformEsmSync");export{Rr as a,ae as b,$r as c,Sn as i,Le as p,Ke as r,Mr as t};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";var Yt=Object.defineProperty;var f=(s,e)=>Yt(s,"name",{value:e,configurable:!0});var q=require("node:path"),Fe=require("node:url"),J=require("esbuild"),Qt=require("node:crypto"),Pe=require("./node-features-CEjg7cMX.cjs"),$=require("node:fs"),Zt=require("node:os"),Vt=require("./temporary-directory-B83uKxJF.cjs");const Se=f(s=>Qt.createHash("sha1").update(s).digest("hex"),"sha1");var en=44,tn=59,Be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",We=new Uint8Array(64),nn=new Uint8Array(128);for(let s=0;s<Be.length;s++){const e=Be.charCodeAt(s);We[s]=e,nn[e]=s}function Q(s,e,n){let i=e-n;i=i<0?-i<<1|1:i<<1;do{let o=i&31;i>>>=5,i>0&&(o|=32),s.write(We[o])}while(i>0);return e}f(Q,"encodeInteger$1");var qe=1024*16,Je=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(s){return Buffer.from(s.buffer,s.byteOffset,s.byteLength).toString()}}:{decode(s){let e="";for(let n=0;n<s.length;n++)e+=String.fromCharCode(s[n]);return e}},rn=class{static{f(this,"StringWriter")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(qe)}write(s){const{buffer:e}=this;e[this.pos++]=s,this.pos===qe&&(this.out+=Je.decode(e),this.pos=0)}flush(){const{buffer:s,out:e,pos:n}=this;return n>0?e+Je.decode(s.subarray(0,n)):e}};function sn(s){const e=new rn;let n=0,i=0,o=0,a=0;for(let u=0;u<s.length;u++){const p=s[u];if(u>0&&e.write(tn),p.length===0)continue;let g=0;for(let b=0;b<p.length;b++){const d=p[b];b>0&&e.write(en),g=Q(e,d[0],g),d.length!==1&&(n=Q(e,d[1],n),i=Q(e,d[2],i),o=Q(e,d[3],o),d.length!==4&&(a=Q(e,d[4],a)))}}return e.flush()}f(sn,"encode$1");class fe{static{f(this,"BitSet")}constructor(e){this.bits=e instanceof fe?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class ie{static{f(this,"Chunk")}constructor(e,n,i){this.start=e,this.end=n,this.original=i,this.intro="",this.outro="",this.content=i,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new ie(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let n=this;for(;n;)e(n),n=n.next}eachPrevious(e){let n=this;for(;n;)e(n),n=n.previous}edit(e,n,i){return this.content=e,i||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){const n=e-this.start,i=this.original.slice(0,n),o=this.original.slice(n);this.original=i;const a=new ie(e,this.end,o);return a.outro=this.outro,this.outro="",this.end=e,this.edited?(a.edit("",!1),this.content=""):this.content=i,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const n=this.content.replace(e,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const n=this.content.replace(e,"");if(n.length){if(n!==this.content){const i=this.split(this.end-n.length);this.edited&&i.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}}function on(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?s=>globalThis.btoa(unescape(encodeURIComponent(s))):typeof Buffer=="function"?s=>Buffer.from(s,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}f(on,"getBtoa");const an=on();let cn=class{static{f(this,"SourceMap")}constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=sn(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+an(this.toString())}};function un(s){const e=s.split(`
|
|
2
|
-
`),n=e.filter(a=>/^\t+/.test(a)),i=e.filter(a=>/^ {2,}/.test(a));if(n.length===0&&i.length===0)return null;if(n.length>=i.length)return" ";const o=i.reduce((a,u)=>{const p=/^ +/.exec(u)[0].length;return Math.min(p,a)},1/0);return new Array(o+1).join(" ")}f(un,"guessIndent");function ln(s,e){const n=s.split(/[/\\]/),i=e.split(/[/\\]/);for(n.pop();n[0]===i[0];)n.shift(),i.shift();if(n.length){let o=n.length;for(;o--;)n[o]=".."}return n.concat(i).join("/")}f(ln,"getRelativePath");const fn=Object.prototype.toString;function hn(s){return fn.call(s)==="[object Object]"}f(hn,"isObject");function ze(s){const e=s.split(`
|
|
3
|
-
`),n=[];for(let i=0,o=0;i<e.length;i++)n.push(o),o+=e[i].length+1;return f(function(o){let a=0,u=n.length;for(;a<u;){const b=a+u>>1;o<n[b]?u=b:a=b+1}const p=a-1,g=o-n[p];return{line:p,column:g}},"locate")}f(ze,"getLocator");const dn=/\w/;class gn{static{f(this,"Mappings")}constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,n,i,o){if(n.length){const a=n.length-1;let u=n.indexOf(`
|
|
4
|
-
`,0),p=-1;for(;u>=0&&a>u;){const b=[this.generatedCodeColumn,e,i.line,i.column];o>=0&&b.push(o),this.rawSegments.push(b),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=u,u=n.indexOf(`
|
|
5
|
-
`,u+1)}const g=[this.generatedCodeColumn,e,i.line,i.column];o>=0&&g.push(o),this.rawSegments.push(g),this.advance(n.slice(p+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null}addUneditedChunk(e,n,i,o,a){let u=n.start,p=!0,g=!1;for(;u<n.end;){if(i[u]===`
|
|
6
|
-
`)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=!0,g=!1;else{if(this.hires||p||a.has(u)){const b=[this.generatedCodeColumn,e,o.line,o.column];this.hires==="boundary"?dn.test(i[u])?g||(this.rawSegments.push(b),g=!0):(this.rawSegments.push(b),g=!1):this.rawSegments.push(b)}o.column+=1,this.generatedCodeColumn+=1,p=!1}u+=1}this.pending=null}advance(e){if(!e)return;const n=e.split(`
|
|
7
|
-
`);if(n.length>1){for(let i=0;i<n.length-1;i++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=n[n.length-1].length}}const Z=`
|
|
8
|
-
`,z={insertLeft:!1,insertRight:!1,storeName:!1};class De{static{f(this,"MagicString")}constructor(e,n={}){const i=new ie(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:i},lastChunk:{writable:!0,value:i},lastSearchedChunk:{writable:!0,value:i},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new fe},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.ignoreList},offset:{writable:!0,value:n.offset||0}}),this.byStart[0]=i,this.byEnd[e.length]=i}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.appendLeft(n):this.intro+=n,this}appendRight(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.appendRight(n):this.outro+=n,this}clone(){const e=new De(this.original,{filename:this.filename,offset:this.offset});let n=this.firstChunk,i=e.firstChunk=e.lastSearchedChunk=n.clone();for(;n;){e.byStart[i.start]=i,e.byEnd[i.end]=i;const o=n.next,a=o&&o.clone();a&&(i.next=a,a.previous=i,i=a),n=o}return e.lastChunk=i,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new fe(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const n=0,i=Object.keys(this.storedNames),o=new gn(e.hires),a=ze(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(u=>{const p=a(u.start);u.intro.length&&o.advance(u.intro),u.edited?o.addEdit(n,u.content,p,u.storeName?i.indexOf(u.original):-1):o.addUneditedChunk(n,u,this.original,p,this.sourcemapLocations),u.outro.length&&o.advance(u.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?ln(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:i,mappings:o.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(e){return new cn(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=un(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,n){const i=/^[^\r\n]/gm;if(hn(e)&&(n=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;n=n||{};const o={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(d=>{for(let r=d[0];r<d[1];r+=1)o[r]=!0});let a=n.indentStart!==!1;const u=f(b=>a?`${e}${b}`:(a=!0,b),"replacer");this.intro=this.intro.replace(i,u);let p=0,g=this.firstChunk;for(;g;){const b=g.end;if(g.edited)o[p]||(g.content=g.content.replace(i,u),g.content.length&&(a=g.content[g.content.length-1]===`
|
|
9
|
-
`));else for(p=g.start;p<b;){if(!o[p]){const d=this.original[p];d===`
|
|
10
|
-
`?a=!0:d!=="\r"&&a&&(a=!1,p===g.start||(this._splitChunk(g,p),g=g.next),g.prependRight(e))}p+=1}p=g.end,g=g.next}return this.outro=this.outro.replace(i,u),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,n){return z.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),z.insertLeft=!0),this.appendLeft(e,n)}insertRight(e,n){return z.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),z.insertRight=!0),this.prependRight(e,n)}move(e,n,i){if(e=e+this.offset,n=n+this.offset,i=i+this.offset,i>=e&&i<=n)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(n),this._split(i);const o=this.byStart[e],a=this.byEnd[n],u=o.previous,p=a.next,g=this.byStart[i];if(!g&&a===this.lastChunk)return this;const b=g?g.previous:this.lastChunk;return u&&(u.next=p),p&&(p.previous=u),b&&(b.next=o),g&&(g.previous=a),o.previous||(this.firstChunk=a.next),a.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=b,a.next=g||null,b||(this.firstChunk=o),g||(this.lastChunk=a),this}overwrite(e,n,i,o){return o=o||{},this.update(e,n,i,{...o,overwrite:!o.contentOnly})}update(e,n,i,o){if(e=e+this.offset,n=n+this.offset,typeof i!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(n>this.original.length)throw new Error("end is out of bounds");if(e===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(n),o===!0&&(z.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),z.storeName=!0),o={storeName:!0});const a=o!==void 0?o.storeName:!1,u=o!==void 0?o.overwrite:!1;if(a){const b=this.original.slice(e,n);Object.defineProperty(this.storedNames,b,{writable:!0,value:!0,enumerable:!0})}const p=this.byStart[e],g=this.byEnd[n];if(p){let b=p;for(;b!==g;){if(b.next!==this.byStart[b.end])throw new Error("Cannot overwrite across a split point");b=b.next,b.edit("",!1)}p.edit(i,a,!u)}else{const b=new ie(e,n,"").edit(i,a);g.next=b,b.previous=g}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.prependLeft(n):this.intro=n+this.intro,this}prependRight(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.prependRight(n):this.outro=n+this.outro,this}remove(e,n){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let i=this.byStart[e];for(;i;)i.intro="",i.outro="",i.edit(""),i=n>i.end?this.byStart[i.end]:null;return this}reset(e,n){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let i=this.byStart[e];for(;i;)i.reset(),i=n>i.end?this.byStart[i.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(Z);if(e!==-1)return this.outro.substr(e+1);let n=this.outro,i=this.lastChunk;do{if(i.outro.length>0){if(e=i.outro.lastIndexOf(Z),e!==-1)return i.outro.substr(e+1)+n;n=i.outro+n}if(i.content.length>0){if(e=i.content.lastIndexOf(Z),e!==-1)return i.content.substr(e+1)+n;n=i.content+n}if(i.intro.length>0){if(e=i.intro.lastIndexOf(Z),e!==-1)return i.intro.substr(e+1)+n;n=i.intro+n}}while(i=i.previous);return e=this.intro.lastIndexOf(Z),e!==-1?this.intro.substr(e+1)+n:this.intro+n}slice(e=0,n=this.original.length-this.offset){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}let i="",o=this.firstChunk;for(;o&&(o.start>e||o.end<=e);){if(o.start<n&&o.end>=n)return i;o=o.next}if(o&&o.edited&&o.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const a=o;for(;o;){o.intro&&(a!==o||o.start===e)&&(i+=o.intro);const u=o.start<n&&o.end>=n;if(u&&o.edited&&o.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);const p=a===o?e-o.start:0,g=u?o.content.length+n-o.end:o.content.length;if(i+=o.content.slice(p,g),o.outro&&(!u||o.end===n)&&(i+=o.outro),u)break;o=o.next}return i}snip(e,n){const i=this.clone();return i.remove(0,e),i.remove(n,i.original.length),i}_split(e){if(this.byStart[e]||this.byEnd[e])return;let n=this.lastSearchedChunk,i=n;const o=e>n.end;for(;n;){if(n.contains(e))return this._splitChunk(n,e);if(n=o?this.byStart[n.end]:this.byEnd[n.start],n===i)return;i=n}}_splitChunk(e,n){if(e.edited&&e.content.length){const o=ze(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${e.original}")`)}const i=e.split(n);return this.byEnd[n]=e,this.byStart[n]=i,this.byEnd[i.end]=i,e===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,n=this.firstChunk;for(;n;)e+=n.toString(),n=n.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,n=0;do n+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const n=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let i=this.lastChunk;do{const o=i.end,a=i.trimEnd(n);if(i.end!==o&&(this.lastChunk===i&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.previous}while(i);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const n=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let i=this.firstChunk;do{const o=i.end,a=i.trimStart(n);if(i.end!==o&&(i===this.lastChunk&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.next}while(i);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,n){function i(a,u){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(p,g)=>g==="$"?"$":g==="&"?a[0]:+g<a.length?a[+g]:`$${g}`):n(...a,a.index,u,a.groups)}f(i,"getReplacement");function o(a,u){let p;const g=[];for(;p=a.exec(u);)g.push(p);return g}if(f(o,"matchAll"),e.global)o(e,this.original).forEach(u=>{if(u.index!=null){const p=i(u,this.original);p!==u[0]&&this.overwrite(u.index,u.index+u[0].length,p)}});else{const a=this.original.match(e);if(a&&a.index!=null){const u=i(a,this.original);u!==a[0]&&this.overwrite(a.index,a.index+a[0].length,u)}}return this}_replaceString(e,n){const{original:i}=this,o=i.indexOf(e);return o!==-1&&this.overwrite(o,o+e.length,n),this}replace(e,n){return typeof e=="string"?this._replaceString(e,n):this._replaceRegexp(e,n)}_replaceAllString(e,n){const{original:i}=this,o=e.length;for(let a=i.indexOf(e);a!==-1;a=i.indexOf(e,a+o))i.slice(a,a+o)!==n&&this.overwrite(a,a+o,n);return this}replaceAll(e,n){if(typeof e=="string")return this._replaceAllString(e,n);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,n)}}let E,ae,ve,V=2<<19;const He=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(s,e){const n=s.length;let i=0;for(;i<n;)e[i]=s.charCodeAt(i++)}:function(s,e){const n=s.length;let i=0;for(;i<n;){const o=s.charCodeAt(i);e[i++]=(255&o)<<8|o>>>8}},bn="xportmportlassforetaourceromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileifcatcfinallels";let I,Ge,C;function pn(s,e="@"){I=s,Ge=e;const n=2*I.length+(2<<18);if(n>V||!E){for(;n>V;)V*=2;ae=new ArrayBuffer(V),He(bn,new Uint16Array(ae,16,110)),E=function(u,p,g){var b=new u.Int8Array(g),d=new u.Int16Array(g),r=new u.Int32Array(g),S=new u.Uint8Array(g),O=new u.Uint16Array(g),_=1040;function N(){var t=0,c=0,h=0,l=0,m=0,w=0,y=0;y=_,_=_+10240|0,b[804]=1,b[803]=0,d[399]=0,d[400]=0,r[69]=r[2],b[805]=0,r[68]=0,b[802]=0,r[70]=y+2048,r[71]=y,b[806]=0,t=(r[3]|0)+-2|0,r[72]=t,c=t+(r[66]<<1)|0,r[73]=c;e:for(;;){if(h=t+2|0,r[72]=h,t>>>0>=c>>>0){l=18;break}t:do switch(d[h>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(d[400]|0)&&X(h)|0&&!(A(t+4|0,16,10)|0)&&(D(),(b[804]|0)==0)){l=9;break e}else l=17;break}case 105:{X(h)|0&&!(A(t+4|0,26,10)|0)&&P(),l=17;break}case 59:{l=17;break}case 47:switch(d[t+4>>1]|0){case 47:{pe();break t}case 42:{ge(1);break t}default:{l=16;break e}}default:{l=16;break e}}while(!1);(l|0)==17&&(l=0,r[69]=r[72]),t=r[72]|0,c=r[73]|0}(l|0)==9?(t=r[72]|0,r[69]=t,l=19):(l|0)==16?(b[804]=0,r[72]=t,l=19):(l|0)==18&&(b[802]|0?t=0:(t=h,l=19));do if((l|0)==19){e:for(;;){if(c=t+2|0,r[72]=c,t>>>0>=(r[73]|0)>>>0){l=92;break}t:do switch(d[c>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(d[400]|0)&&X(c)|0&&!(A(t+4|0,16,10)|0)&&D(),l=91;break}case 105:{X(c)|0&&!(A(t+4|0,26,10)|0)&&P(),l=91;break}case 99:{X(c)|0&&!(A(t+4|0,36,8)|0)&&W(d[t+12>>1]|0)|0&&(b[806]=1),l=91;break}case 40:{h=r[70]|0,t=d[400]|0,l=t&65535,r[h+(l<<3)>>2]=1,c=r[69]|0,d[400]=t+1<<16>>16,r[h+(l<<3)+4>>2]=c,l=91;break}case 41:{if(c=d[400]|0,!(c<<16>>16)){l=36;break e}h=c+-1<<16>>16,d[400]=h,l=d[399]|0,c=l&65535,l<<16>>16&&(r[(r[70]|0)+((h&65535)<<3)>>2]|0)==5&&(c=r[(r[71]|0)+(c+-1<<2)>>2]|0,h=c+4|0,r[h>>2]|0||(r[h>>2]=(r[69]|0)+2),r[c+12>>2]=t+4,d[399]=l+-1<<16>>16),l=91;break}case 123:{l=r[69]|0,h=r[63]|0,t=l;do if((d[l>>1]|0)==41&(h|0)!=0&&(r[h+4>>2]|0)==(l|0))if(c=r[64]|0,r[63]=c,c){r[c+32>>2]=0;break}else{r[59]=0;break}while(!1);h=r[70]|0,c=d[400]|0,l=c&65535,r[h+(l<<3)>>2]=b[806]|0?6:2,d[400]=c+1<<16>>16,r[h+(l<<3)+4>>2]=t,b[806]=0,l=91;break}case 125:{if(t=d[400]|0,!(t<<16>>16)){l=49;break e}h=r[70]|0,l=t+-1<<16>>16,d[400]=l,(r[h+((l&65535)<<3)>>2]|0)==4&&$e(),l=91;break}case 39:{R(39),l=91;break}case 34:{R(34),l=91;break}case 47:switch(d[t+4>>1]|0){case 47:{pe();break t}case 42:{ge(1);break t}default:{t=r[69]|0,c=d[t>>1]|0;n:do if(!(It(c)|0))c<<16>>16==41?(h=d[400]|0,Nt(r[(r[70]|0)+((h&65535)<<3)+4>>2]|0)|0||(l=65)):l=64;else switch(c<<16>>16){case 46:if(((d[t+-2>>1]|0)+-48&65535)<10){l=64;break n}else break n;case 43:if((d[t+-2>>1]|0)==43){l=64;break n}else break n;case 45:if((d[t+-2>>1]|0)==45){l=64;break n}else break n;default:break n}while(!1);(l|0)==64&&(h=d[400]|0,l=65);n:do if((l|0)==65){if(l=0,h<<16>>16&&(m=r[70]|0,w=(h&65535)+-1|0,c<<16>>16==102?(r[m+(w<<3)>>2]|0)==1:0)){if((d[t+-2>>1]|0)==111&&L(r[m+(w<<3)+4>>2]|0,44,3)|0)break}else l=69;if((l|0)==69&&c<<16>>16==125&&(l=r[70]|0,h=h&65535,_t(r[l+(h<<3)+4>>2]|0)|0||(r[l+(h<<3)>>2]|0)==6))break;if(!(xt(t)|0)){switch(c<<16>>16){case 0:break n;case 47:{if(b[805]|0)break n;break}default:}if(l=r[65]|0,l|0&&t>>>0>=(r[l>>2]|0)>>>0&&t>>>0<=(r[l+4>>2]|0)>>>0){de(),b[805]=0,l=91;break t}h=r[3]|0;do{if(t>>>0<=h>>>0)break;t=t+-2|0,r[69]=t,c=d[t>>1]|0}while(!(be(c)|0));if(oe(c)|0){do{if(t>>>0<=h>>>0)break;t=t+-2|0,r[69]=t}while(oe(d[t>>1]|0)|0);if(Ot(t)|0){de(),b[805]=0,l=91;break t}}b[805]=1,l=91;break t}}while(!1);de(),b[805]=0,l=91;break t}}case 96:{h=r[70]|0,c=d[400]|0,l=c&65535,r[h+(l<<3)+4>>2]=r[69],d[400]=c+1<<16>>16,r[h+(l<<3)>>2]=3,$e(),l=91;break}default:l=91}while(!1);(l|0)==91&&(l=0,r[69]=r[72]),t=r[72]|0}if((l|0)==36){M(),t=0;break}else if((l|0)==49){M(),t=0;break}else if((l|0)==92){t=b[802]|0?0:(d[399]|d[400])<<16>>16==0;break}}while(!1);return _=y,t|0}f(N,"b");function D(){var t=0,c=0,h=0,l=0,m=0,w=0,y=0,T=0,we=0,ke=0,Ce=0,ye=0,v=0,x=0;T=r[72]|0,we=r[65]|0,x=T+12|0,r[72]=x,h=k(1)|0,t=r[72]|0,(t|0)==(x|0)&&!(se(h)|0)||(v=3);e:do if((v|0)==3){t:do switch(h<<16>>16){case 123:{for(r[72]=t+2,t=k(1)|0,c=r[72]|0;;){if(Y(t)|0?(R(t),t=(r[72]|0)+2|0,r[72]=t):(j(t)|0,t=r[72]|0),k(1)|0,t=je(c,t)|0,t<<16>>16==44&&(r[72]=(r[72]|0)+2,t=k(1)|0),t<<16>>16==125){v=15;break}if(x=c,c=r[72]|0,(c|0)==(x|0)){v=12;break}if(c>>>0>(r[73]|0)>>>0){v=14;break}}if((v|0)==12){M();break e}else if((v|0)==14){M();break e}else if((v|0)==15){b[803]=1,r[72]=(r[72]|0)+2;break t}break}case 42:{r[72]=t+2,k(1)|0,x=r[72]|0,je(x,x)|0;break}default:{switch(b[804]=0,h<<16>>16){case 100:{switch(T=t+14|0,r[72]=T,(k(1)|0)<<16>>16){case 97:{c=r[72]|0,!(A(c+2|0,72,8)|0)&&(m=c+10|0,oe(d[m>>1]|0)|0)&&(r[72]=m,k(0)|0,v=22);break}case 102:{v=22;break}case 99:{c=r[72]|0,!(A(c+2|0,36,8)|0)&&(l=c+10|0,x=d[l>>1]|0,W(x)|0|x<<16>>16==123)&&(r[72]=l,w=k(1)|0,w<<16>>16!=123)&&(ye=w,v=31);break}default:}n:do if((v|0)==22&&(y=r[72]|0,(A(y+2|0,80,14)|0)==0)){if(h=y+16|0,c=d[h>>1]|0,!(W(c)|0))switch(c<<16>>16){case 40:case 42:break;default:break n}r[72]=h,c=k(1)|0,c<<16>>16==42&&(r[72]=(r[72]|0)+2,c=k(1)|0),c<<16>>16!=40&&(ye=c,v=31)}while(!1);if((v|0)==31&&(ke=r[72]|0,j(ye)|0,Ce=r[72]|0,Ce>>>0>ke>>>0)){B(t,T,ke,Ce),r[72]=(r[72]|0)+-2;break e}B(t,T,0,0),r[72]=t+12;break e}case 97:{r[72]=t+10,k(0)|0,t=r[72]|0,v=35;break}case 102:{v=35;break}case 99:{if(!(A(t+2|0,36,8)|0)&&(c=t+10|0,be(d[c>>1]|0)|0)){r[72]=c,x=k(1)|0,v=r[72]|0,j(x)|0,x=r[72]|0,B(v,x,v,x),r[72]=(r[72]|0)+-2;break e}t=t+4|0,r[72]=t;break}case 108:case 118:break;default:break e}if((v|0)==35){r[72]=t+16,t=k(1)|0,t<<16>>16==42&&(r[72]=(r[72]|0)+2,t=k(1)|0),v=r[72]|0,j(t)|0,x=r[72]|0,B(v,x,v,x),r[72]=(r[72]|0)+-2;break e}r[72]=t+6,b[804]=0,h=k(1)|0,t=r[72]|0,h=(j(h)|0|32)<<16>>16==123,l=r[72]|0,h&&(r[72]=l+2,x=k(1)|0,t=r[72]|0,j(x)|0);n:for(;c=r[72]|0,(c|0)!=(t|0);){if(B(t,c,t,c),c=k(1)|0,h)switch(c<<16>>16){case 93:case 125:break e;default:}if(t=r[72]|0,c<<16>>16!=44){v=51;break}switch(r[72]=t+2,c=k(1)|0,t=r[72]|0,c<<16>>16){case 91:case 123:{v=51;break n}default:}j(c)|0}if((v|0)==51&&(r[72]=t+-2),!h)break e;r[72]=l+-2;break e}}while(!1);if(x=(k(1)|0)<<16>>16==102,t=r[72]|0,x&&!(A(t+2|0,66,6)|0))for(r[72]=t+8,G(T,k(1)|0,0),t=we|0?we+16|0:240;;){if(t=r[t>>2]|0,!t)break e;r[t+12>>2]=0,r[t+8>>2]=0,t=t+16|0}r[72]=t+-2}while(!1)}f(D,"k");function P(){var t=0,c=0,h=0,l=0,m=0,w=0,y=0;m=r[72]|0,h=m+12|0,r[72]=h,l=k(1)|0,c=r[72]|0;e:do if(l<<16>>16!=46)l<<16>>16==115&c>>>0>h>>>0?!(A(c+2|0,56,10)|0)&&(t=c+12|0,W(d[t>>1]|0)|0)?w=14:(c=6,h=0,w=46):(t=l,h=0,w=15);else switch(r[72]=c+2,(k(1)|0)<<16>>16){case 109:{if(t=r[72]|0,A(t+2|0,50,6)|0||(c=r[69]|0,!(me(c)|0)&&(d[c>>1]|0)==46))break e;he(m,m,t+8|0,2);break e}case 115:{if(t=r[72]|0,A(t+2|0,56,10)|0||(c=r[69]|0,!(me(c)|0)&&(d[c>>1]|0)==46))break e;t=t+12|0,w=14;break e}default:break e}while(!1);(w|0)==14&&(r[72]=t,t=k(1)|0,h=1,w=15);e:do if((w|0)==15)switch(t<<16>>16){case 40:{if(c=r[70]|0,y=d[400]|0,l=y&65535,r[c+(l<<3)>>2]=5,t=r[72]|0,d[400]=y+1<<16>>16,r[c+(l<<3)+4>>2]=t,(d[r[69]>>1]|0)==46)break e;switch(r[72]=t+2,c=k(1)|0,he(m,r[72]|0,0,t),h?(t=r[63]|0,r[t+28>>2]=5):t=r[63]|0,m=r[71]|0,y=d[399]|0,d[399]=y+1<<16>>16,r[m+((y&65535)<<2)>>2]=t,c<<16>>16){case 39:{R(39);break}case 34:{R(34);break}default:{r[72]=(r[72]|0)+-2;break e}}switch(t=(r[72]|0)+2|0,r[72]=t,(k(1)|0)<<16>>16){case 44:{r[72]=(r[72]|0)+2,k(1)|0,m=r[63]|0,r[m+4>>2]=t,y=r[72]|0,r[m+16>>2]=y,b[m+24>>0]=1,r[72]=y+-2;break e}case 41:{d[400]=(d[400]|0)+-1<<16>>16,y=r[63]|0,r[y+4>>2]=t,r[y+12>>2]=(r[72]|0)+2,b[y+24>>0]=1,d[399]=(d[399]|0)+-1<<16>>16;break e}default:{r[72]=(r[72]|0)+-2;break e}}}case 123:{if(h){c=12,h=1,w=46;break e}if(t=r[72]|0,d[400]|0){r[72]=t+-2;break e}for(;!(t>>>0>=(r[73]|0)>>>0);){if(t=k(1)|0,Y(t)|0)R(t);else if(t<<16>>16==125){w=36;break}t=(r[72]|0)+2|0,r[72]=t}if((w|0)==36&&(r[72]=(r[72]|0)+2),y=(k(1)|0)<<16>>16==102,t=r[72]|0,y&&A(t+2|0,66,6)|0){M();break e}if(r[72]=t+8,t=k(1)|0,Y(t)|0){G(m,t,0);break e}else{M();break e}}default:{if(h){c=12,h=1,w=46;break e}switch(t<<16>>16){case 42:case 39:case 34:{h=0,w=48;break e}default:{c=6,h=0,w=46;break e}}}}while(!1);(w|0)==46&&(t=r[72]|0,(t|0)==(m+(c<<1)|0)?r[72]=t+-2:w=48);do if((w|0)==48){if(d[400]|0){r[72]=(r[72]|0)+-2;break}for(t=r[73]|0,c=r[72]|0;;){if(c>>>0>=t>>>0){w=55;break}if(l=d[c>>1]|0,Y(l)|0){w=53;break}y=c+2|0,r[72]=y,c=y}if((w|0)==53){G(m,l,h);break}else if((w|0)==55){M();break}}while(!1)}f(P,"l");function G(t,c,h){t=t|0,c=c|0,h=h|0;var l=0,m=0;switch(l=(r[72]|0)+2|0,c<<16>>16){case 39:{R(39),m=5;break}case 34:{R(34),m=5;break}default:M()}do if((m|0)==5){if(he(t,l,r[72]|0,1),h&&(r[(r[63]|0)+28>>2]=4),r[72]=(r[72]|0)+2,c=k(0)|0,h=c<<16>>16==97,h?(l=r[72]|0,A(l+2|0,94,10)|0&&(m=13)):(l=r[72]|0,c<<16>>16==119&&(d[l+2>>1]|0)==105&&(d[l+4>>1]|0)==116&&(d[l+6>>1]|0)==104||(m=13)),(m|0)==13){r[72]=l+-2;break}if(r[72]=l+((h?6:4)<<1),(k(1)|0)<<16>>16!=123){r[72]=l;break}h=r[72]|0,c=h;e:for(;;){switch(r[72]=c+2,c=k(1)|0,c<<16>>16){case 39:{R(39),r[72]=(r[72]|0)+2,c=k(1)|0;break}case 34:{R(34),r[72]=(r[72]|0)+2,c=k(1)|0;break}default:c=j(c)|0}if(c<<16>>16!=58){m=22;break}switch(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16){case 39:{R(39);break}case 34:{R(34);break}default:{m=26;break e}}switch(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16){case 125:{m=31;break e}case 44:break;default:{m=30;break e}}if(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16==125){m=31;break}c=r[72]|0}if((m|0)==22){r[72]=l;break}else if((m|0)==26){r[72]=l;break}else if((m|0)==30){r[72]=l;break}else if((m|0)==31){m=r[63]|0,r[m+16>>2]=h,r[m+12>>2]=(r[72]|0)+2;break}}while(!1)}f(G,"u");function xt(t){t=t|0;e:do switch(d[t>>1]|0){case 100:switch(d[t+-2>>1]|0){case 105:{t=L(t+-4|0,104,2)|0;break e}case 108:{t=L(t+-4|0,108,3)|0;break e}default:{t=0;break e}}case 101:switch(d[t+-2>>1]|0){case 115:switch(d[t+-4>>1]|0){case 108:{t=K(t+-6|0,101)|0;break e}case 97:{t=K(t+-6|0,99)|0;break e}default:{t=0;break e}}case 116:{t=L(t+-4|0,114,4)|0;break e}case 117:{t=L(t+-4|0,122,6)|0;break e}default:{t=0;break e}}case 102:{if((d[t+-2>>1]|0)==111&&(d[t+-4>>1]|0)==101)switch(d[t+-6>>1]|0){case 99:{t=L(t+-8|0,134,6)|0;break e}case 112:{t=L(t+-8|0,146,2)|0;break e}default:{t=0;break e}}else t=0;break}case 107:{t=L(t+-2|0,150,4)|0;break}case 110:{t=t+-2|0,K(t,105)|0?t=1:t=L(t,158,5)|0;break}case 111:{t=K(t+-2|0,100)|0;break}case 114:{t=L(t+-2|0,168,7)|0;break}case 116:{t=L(t+-2|0,182,4)|0;break}case 119:switch(d[t+-2>>1]|0){case 101:{t=K(t+-4|0,110)|0;break e}case 111:{t=L(t+-4|0,190,3)|0;break e}default:{t=0;break e}}default:t=0}while(!1);return t|0}f(xt,"o");function $e(){var t=0,c=0,h=0,l=0;c=r[73]|0,h=r[72]|0;e:for(;;){if(t=h+2|0,h>>>0>=c>>>0){c=10;break}switch(d[t>>1]|0){case 96:{c=7;break e}case 36:{if((d[h+4>>1]|0)==123){c=6;break e}break}case 92:{t=h+4|0;break}default:}h=t}(c|0)==6?(t=h+4|0,r[72]=t,c=r[70]|0,l=d[400]|0,h=l&65535,r[c+(h<<3)>>2]=4,d[400]=l+1<<16>>16,r[c+(h<<3)+4>>2]=t):(c|0)==7?(r[72]=t,h=r[70]|0,l=(d[400]|0)+-1<<16>>16,d[400]=l,(r[h+((l&65535)<<3)>>2]|0)!=3&&M()):(c|0)==10&&(r[72]=t,M())}f($e,"h");function k(t){t=t|0;var c=0,h=0,l=0;h=r[72]|0;e:do{c=d[h>>1]|0;t:do if(c<<16>>16!=47)if(t){if(W(c)|0)break;break e}else{if(oe(c)|0)break;break e}else switch(d[h+2>>1]|0){case 47:{pe();break t}case 42:{ge(t);break t}default:{c=47;break e}}while(!1);l=r[72]|0,h=l+2|0,r[72]=h}while(l>>>0<(r[73]|0)>>>0);return c|0}f(k,"w");function he(t,c,h,l){t=t|0,c=c|0,h=h|0,l=l|0;var m=0,w=0;w=r[67]|0,r[67]=w+36,m=r[63]|0,r[(m|0?m+32|0:236)>>2]=w,r[64]=m,r[63]=w,r[w+8>>2]=t,(l|0)==2?(t=3,m=h):(m=(l|0)==1,t=m?1:2,m=m?h+2|0:0),r[w+12>>2]=m,r[w+28>>2]=t,r[w>>2]=c,r[w+4>>2]=h,r[w+16>>2]=0,r[w+20>>2]=l,c=(l|0)==1,b[w+24>>0]=c&1,r[w+32>>2]=0,c|(l|0)==2&&(b[803]=1)}f(he,"d");function R(t){t=t|0;var c=0,h=0,l=0,m=0;for(m=r[73]|0,c=r[72]|0;;){if(l=c+2|0,c>>>0>=m>>>0){c=9;break}if(h=d[l>>1]|0,h<<16>>16==t<<16>>16){c=10;break}if(h<<16>>16==92)h=c+4|0,(d[h>>1]|0)==13?(c=c+6|0,c=(d[c>>1]|0)==10?c:h):c=h;else if(Te(h)|0){c=9;break}else c=l}(c|0)==9?(r[72]=l,M()):(c|0)==10&&(r[72]=l)}f(R,"v");function je(t,c){t=t|0,c=c|0;var h=0,l=0,m=0,w=0;return h=r[72]|0,l=d[h>>1]|0,w=(t|0)==(c|0),m=w?0:t,w=w?0:c,l<<16>>16==97&&(r[72]=h+4,h=k(1)|0,t=r[72]|0,Y(h)|0?(R(h),c=(r[72]|0)+2|0,r[72]=c):(j(h)|0,c=r[72]|0),l=k(1)|0,h=r[72]|0),(h|0)!=(t|0)&&B(t,c,m,w),l|0}f(je,"A");function Et(){var t=0,c=0,h=0;h=r[73]|0,c=r[72]|0;e:for(;;){if(t=c+2|0,c>>>0>=h>>>0){c=6;break}switch(d[t>>1]|0){case 13:case 10:{c=6;break e}case 93:{c=7;break e}case 92:{t=c+4|0;break}default:}c=t}return(c|0)==6?(r[72]=t,M(),t=0):(c|0)==7&&(r[72]=t,t=93),t|0}f(Et,"C");function de(){var t=0,c=0,h=0;e:for(;;){if(t=r[72]|0,c=t+2|0,r[72]=c,t>>>0>=(r[73]|0)>>>0){h=7;break}switch(d[c>>1]|0){case 13:case 10:{h=7;break e}case 47:break e;case 91:{Et()|0;break}case 92:{r[72]=t+4;break}default:}}(h|0)==7&&M()}f(de,"g");function _t(t){switch(t=t|0,d[t>>1]|0){case 62:{t=(d[t+-2>>1]|0)==61;break}case 41:case 59:{t=1;break}case 104:{t=L(t+-2|0,210,4)|0;break}case 121:{t=L(t+-2|0,218,6)|0;break}case 101:{t=L(t+-2|0,230,3)|0;break}default:t=0}return t|0}f(_t,"p");function ge(t){t=t|0;var c=0,h=0,l=0,m=0,w=0;for(m=(r[72]|0)+2|0,r[72]=m,h=r[73]|0;c=m+2|0,!(m>>>0>=h>>>0||(l=d[c>>1]|0,!t&&Te(l)|0));){if(l<<16>>16==42&&(d[m+4>>1]|0)==47){w=8;break}m=c}(w|0)==8&&(r[72]=c,c=m+4|0),r[72]=c}f(ge,"y");function A(t,c,h){t=t|0,c=c|0,h=h|0;var l=0,m=0;e:do if(!h)t=0;else{for(;l=b[t>>0]|0,m=b[c>>0]|0,l<<24>>24==m<<24>>24;)if(h=h+-1|0,h)t=t+1|0,c=c+1|0;else{t=0;break e}t=(l&255)-(m&255)|0}while(!1);return t|0}f(A,"m");function se(t){t=t|0;e:do switch(t<<16>>16){case 38:case 37:case 33:{t=1;break}default:if((t&-8)<<16>>16==40|(t+-58&65535)<6)t=1;else{switch(t<<16>>16){case 91:case 93:case 94:{t=1;break e}default:}t=(t+-123&65535)<4}}while(!1);return t|0}f(se,"I");function It(t){t=t|0;e:do switch(t<<16>>16){case 38:case 37:case 33:break;default:if(!((t+-58&65535)<6|(t+-40&65535)<7&t<<16>>16!=41)){switch(t<<16>>16){case 91:case 94:break e;default:}return t<<16>>16!=125&(t+-123&65535)<4|0}}while(!1);return 1}f(It,"U");function Ue(t){t=t|0;var c=0;c=d[t>>1]|0;e:do if((c+-9&65535)>=5){switch(c<<16>>16){case 160:case 32:{c=1;break e}default:}if(se(c)|0)return c<<16>>16!=46|(me(t)|0)|0;c=0}else c=1;while(!1);return c|0}f(Ue,"x");function Lt(t){t=t|0;var c=0,h=0,l=0,m=0;return h=_,_=_+16|0,l=h,r[l>>2]=0,r[66]=t,c=r[3]|0,m=c+(t<<1)|0,t=m+2|0,d[m>>1]=0,r[l>>2]=t,r[67]=t,r[59]=0,r[63]=0,r[61]=0,r[60]=0,r[65]=0,r[62]=0,_=h,c|0}f(Lt,"S");function B(t,c,h,l){t=t|0,c=c|0,h=h|0,l=l|0;var m=0,w=0;m=r[67]|0,r[67]=m+20,w=r[65]|0,r[(w|0?w+16|0:240)>>2]=m,r[65]=m,r[m>>2]=t,r[m+4>>2]=c,r[m+8>>2]=h,r[m+12>>2]=l,r[m+16>>2]=0,b[803]=1}f(B,"O");function L(t,c,h){t=t|0,c=c|0,h=h|0;var l=0,m=0;return l=t+(0-h<<1)|0,m=l+2|0,t=r[3]|0,m>>>0>=t>>>0&&!(A(m,c,h<<1)|0)?(m|0)==(t|0)?t=1:t=Ue(l)|0:t=0,t|0}f(L,"$");function Ot(t){switch(t=t|0,d[t>>1]|0){case 107:{t=L(t+-2|0,150,4)|0;break}case 101:{(d[t+-2>>1]|0)==117?t=L(t+-4|0,122,6)|0:t=0;break}default:t=0}return t|0}f(Ot,"j");function K(t,c){t=t|0,c=c|0;var h=0;return h=r[3]|0,h>>>0<=t>>>0&&(d[t>>1]|0)==c<<16>>16?(h|0)==(t|0)?h=1:h=be(d[t+-2>>1]|0)|0:h=0,h|0}f(K,"B");function be(t){t=t|0;e:do if((t+-9&65535)<5)t=1;else{switch(t<<16>>16){case 32:case 160:{t=1;break e}default:}t=t<<16>>16!=46&(se(t)|0)}while(!1);return t|0}f(be,"E");function pe(){var t=0,c=0,h=0;t=r[73]|0,h=r[72]|0;e:for(;c=h+2|0,!(h>>>0>=t>>>0);)switch(d[c>>1]|0){case 13:case 10:break e;default:h=c}r[72]=c}f(pe,"P");function j(t){for(t=t|0;!(W(t)|0||se(t)|0);)if(t=(r[72]|0)+2|0,r[72]=t,t=d[t>>1]|0,!(t<<16>>16)){t=0;break}return t|0}f(j,"q");function At(){var t=0;switch(t=r[(r[61]|0)+20>>2]|0,t|0){case 1:{t=-1;break}case 2:{t=-2;break}default:t=t-(r[3]|0)>>1}return t|0}f(At,"z");function Nt(t){return t=t|0,!(L(t,196,5)|0)&&!(L(t,44,3)|0)?t=L(t,206,2)|0:t=1,t|0}f(Nt,"D");function oe(t){switch(t=t|0,t<<16>>16){case 160:case 32:case 12:case 11:case 9:{t=1;break}default:t=0}return t|0}f(oe,"F");function me(t){return t=t|0,(d[t>>1]|0)==46&&(d[t+-2>>1]|0)==46?t=(d[t+-4>>1]|0)==46:t=0,t|0}f(me,"G");function X(t){return t=t|0,(r[3]|0)==(t|0)?t=1:t=Ue(t+-2|0)|0,t|0}f(X,"H");function Rt(){var t=0;return t=r[(r[62]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Rt,"J");function Mt(){var t=0;return t=r[(r[61]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Mt,"K");function Dt(){var t=0;return t=r[(r[62]|0)+8>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Dt,"L");function $t(){var t=0;return t=r[(r[61]|0)+16>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f($t,"M");function jt(){var t=0;return t=r[(r[61]|0)+4>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(jt,"N");function Ut(){var t=0;return t=r[61]|0,t=r[(t|0?t+32|0:236)>>2]|0,r[61]=t,(t|0)!=0|0}f(Ut,"Q");function Tt(){var t=0;return t=r[62]|0,t=r[(t|0?t+16|0:240)>>2]|0,r[62]=t,(t|0)!=0|0}f(Tt,"R");function M(){b[802]=1,r[68]=(r[72]|0)-(r[3]|0)>>1,r[72]=(r[73]|0)+2}f(M,"T");function W(t){return t=t|0,(t|128)<<16>>16==160|(t+-9&65535)<5|0}f(W,"V");function Y(t){return t=t|0,t<<16>>16==39|t<<16>>16==34|0}f(Y,"W");function Ft(){return(r[(r[61]|0)+8>>2]|0)-(r[3]|0)>>1|0}f(Ft,"X");function Pt(){return(r[(r[62]|0)+4>>2]|0)-(r[3]|0)>>1|0}f(Pt,"Y");function Te(t){return t=t|0,t<<16>>16==13|t<<16>>16==10|0}f(Te,"Z");function Bt(){return(r[r[61]>>2]|0)-(r[3]|0)>>1|0}f(Bt,"_");function Wt(){return(r[r[62]>>2]|0)-(r[3]|0)>>1|0}f(Wt,"ee");function qt(){return S[(r[61]|0)+24>>0]|0|0}f(qt,"ae");function Jt(t){t=t|0,r[3]=t}f(Jt,"re");function zt(){return r[(r[61]|0)+28>>2]|0}f(zt,"ie");function Ht(){return(b[803]|0)!=0|0}f(Ht,"se");function Gt(){return(b[804]|0)!=0|0}f(Gt,"fe");function Kt(){return r[68]|0}f(Kt,"te");function Xt(t){return t=t|0,_=t+992+15&-16,992}return f(Xt,"ce"),{su:Xt,ai:$t,e:Kt,ee:Pt,ele:Rt,els:Dt,es:Wt,f:Gt,id:At,ie:jt,ip:qt,is:Bt,it:zt,ms:Ht,p:N,re:Tt,ri:Ut,sa:Lt,se:Mt,ses:Jt,ss:Ft}}(typeof self<"u"?self:global,{},ae),ve=E.su(V-(2<<17))}const i=I.length+1;E.ses(ve),E.sa(i-1),He(I,new Uint16Array(ae,ve,i)),E.p()||(C=E.e(),U());const o=[],a=[];for(;E.ri();){const u=E.is(),p=E.ie(),g=E.ai(),b=E.id(),d=E.ss(),r=E.se(),S=E.it();let O;E.ip()&&(O=xe(b===-1?u:u+1,I.charCodeAt(b===-1?u-1:u))),o.push({t:S,n:O,s:u,e:p,ss:d,se:r,d:b,a:g})}for(;E.re();){const u=E.es(),p=E.ee(),g=E.els(),b=E.ele(),d=I.charCodeAt(u),r=g>=0?I.charCodeAt(g):-1;a.push({s:u,e:p,ls:g,le:b,n:d===34||d===39?xe(u+1,d):I.slice(u,p),ln:g<0?void 0:r===34||r===39?xe(g+1,r):I.slice(g,b)})}return[o,a,!!E.f(),!!E.ms()]}f(pn,"parse");function xe(s,e){C=s;let n="",i=C;for(;;){C>=I.length&&U();const o=I.charCodeAt(C);if(o===e)break;o===92?(n+=I.slice(i,C),n+=mn(),i=C):(o===8232||o===8233||Ke(o)&&U(),++C)}return n+=I.slice(i,C++),n}f(xe,"b");function mn(){let s=I.charCodeAt(++C);switch(++C,s){case 110:return`
|
|
11
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(Ee(2));case 117:return function(){const e=I.charCodeAt(C);let n;return e===123?(++C,n=Ee(I.indexOf("}",C)-C),++C,n>1114111&&U()):n=Ee(4),n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode(55296+(n>>10),56320+(1023&n)))}();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:I.charCodeAt(C)===10&&++C;case 10:return"";case 56:case 57:U();default:if(s>=48&&s<=55){let e=I.substr(C-1,3).match(/^[0-7]+/)[0],n=parseInt(e,8);return n>255&&(e=e.slice(0,-1),n=parseInt(e,8)),C+=e.length-1,s=I.charCodeAt(C),e==="0"&&s!==56&&s!==57||U(),String.fromCharCode(n)}return Ke(s)?"":String.fromCharCode(s)}}f(mn,"k");function Ee(s){const e=C;let n=0,i=0;for(let o=0;o<s;++o,++C){let a,u=I.charCodeAt(C);if(u!==95){if(u>=97)a=u-97+10;else if(u>=65)a=u-65+10;else{if(!(u>=48&&u<=57))break;a=u-48}if(a>=16)break;i=u,n=16*n+a}else i!==95&&o!==0||U(),i=u}return i!==95&&C-e===s||U(),n}f(Ee,"l");function Ke(s){return s===13||s===10}f(Ke,"u");function U(){throw Object.assign(Error(`Parse error ${Ge}:${I.slice(0,C).split(`
|
|
12
|
-
`).length}:${C-I.lastIndexOf(`
|
|
13
|
-
`,C-1)}`),{idx:C})}f(U,"o");let _e;typeof WebAssembly<"u"&&(async()=>{const{parse:s,init:e}=await Promise.resolve().then(function(){return require("./lexer-DgIbo0BU.cjs")});await e,_e=s})();const Ie=f((s,e)=>_e?_e(s,e):pn(s,e),"parseEsm"),wn=f(s=>{if(!s.includes("import")&&!s.includes("export"))return!1;try{return Ie(s)[3]}catch{return!0}},"isESM"),Le="2",kn=(s=>{const e="default";return s[e]&&typeof s[e]=="object"&&"__esModule"in s[e]?s[e]:s}).toString(),Cn=`.then(${kn})`,ce=f((s,e,n)=>{if(n){if(!e.includes("import("))return}else if(!e.includes("import"))return;const o=Ie(e,s)[0].filter(g=>g.d>-1);if(o.length===0)return;const a=new De(e);for(const g of o)a.appendRight(g.se,Cn);const u=a.toString(),p=a.generateMap({source:s,includeContent:!1,hires:"boundary"});return{code:u,map:p}},"transformDynamicImport"),Xe=f(s=>{try{const e=$.readFileSync(s,"utf8");return JSON.parse(e)}catch{}},"readJsonFile"),ee=f(()=>{},"noop"),Ye=f(()=>Math.floor(Date.now()/1e8),"getTime"),yn=/^(\d+)-([^-]+)$/;class Sn extends Map{static{f(this,"FileCache")}cacheDirectory;oldCacheDirectory;diskCacheIndex;diskCacheEntries;constructor(e=Vt.tmpdir,n=q.join(Zt.tmpdir(),"tsx")){super(),this.cacheDirectory=e,this.oldCacheDirectory=n}getDiskCacheIndex(){if(this.diskCacheIndex)return this.diskCacheIndex;$.mkdirSync(this.cacheDirectory,{recursive:!0});const e=new Map,n=[];for(const i of $.readdirSync(this.cacheDirectory)){const o=yn.exec(i);if(!o)continue;const a=Number(o[1]);if(!Number.isSafeInteger(a))continue;const u=o[2],p={time:a,key:u,fileName:i};n.push(p);const g=e.get(u);(!g||g.time<a)&&e.set(u,p)}return this.diskCacheIndex=e,this.diskCacheEntries=n,setImmediate(()=>{this.expireDiskCache().catch(ee),this.removeOldCacheDirectory().catch(ee)}),e}removeDiskCacheEntry(e){const n=this.diskCacheEntries.indexOf(e);if(n!==-1&&this.diskCacheEntries.splice(n,1),this.diskCacheIndex.get(e.key)===e){let i;for(const o of this.diskCacheEntries)o.key===e.key&&(!i||o.time>i.time)&&(i=o);i?this.diskCacheIndex.set(e.key,i):this.diskCacheIndex.delete(e.key)}}get(e){const n=super.get(e);if(n)return n;const i=this.getDiskCacheIndex();let o=i.get(e);for(;o;){const a=q.join(this.cacheDirectory,o.fileName),u=Xe(a);if(u)return super.set(e,u),u;this.removeDiskCacheEntry(o),$.promises.unlink(a).catch(ee),o=i.get(e)}}set(e,n){if(super.set(e,n),n){const i=Ye(),o=`${i}-${e}`,a=this.getDiskCacheIndex(),u={time:i,key:e,fileName:o};$.promises.writeFile(q.join(this.cacheDirectory,o),JSON.stringify(n)).then(()=>{const p=a.get(e);p?.fileName===o&&this.removeDiskCacheEntry(p),a.set(e,u),this.diskCacheEntries.push(u)},ee)}return this}async expireDiskCache(){this.getDiskCacheIndex();const e=Ye(),n=[];for(const i of this.diskCacheEntries)e-i.time>7&&n.push($.promises.unlink(q.join(this.cacheDirectory,i.fileName)).then(()=>this.removeDiskCacheEntry(i),ee));await Promise.all(n)}async removeOldCacheDirectory(){try{await $.promises.access(this.oldCacheDirectory).then(()=>!0)&&("rm"in $.promises?await $.promises.rm(this.oldCacheDirectory,{recursive:!0,force:!0}):await $.promises.rmdir(this.oldCacheDirectory,{recursive:!0}))}catch{}}}var H=process.env.TSX_DISABLE_CACHE?new Map:new Sn;const Qe=44,vn=59,Ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ve=new Uint8Array(64),et=new Uint8Array(128);for(let s=0;s<Ze.length;s++){const e=Ze.charCodeAt(s);Ve[s]=e,et[e]=s}const Oe=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(s){return Buffer.from(s.buffer,s.byteOffset,s.byteLength).toString()}}:{decode(s){let e="";for(let n=0;n<s.length;n++)e+=String.fromCharCode(s[n]);return e}};function xn(s){const e=new Int32Array(5),n=[];let i=0;do{const o=En(s,i),a=[];let u=!0,p=0;e[0]=0;for(let g=i;g<o;g++){let b;g=te(s,g,e,0);const d=e[0];d<p&&(u=!1),p=d,tt(s,g,o)?(g=te(s,g,e,1),g=te(s,g,e,2),g=te(s,g,e,3),tt(s,g,o)?(g=te(s,g,e,4),b=[d,e[1],e[2],e[3],e[4]]):b=[d,e[1],e[2],e[3]]):b=[d],a.push(b)}u||_n(a),n.push(a),i=o+1}while(i<=s.length);return n}f(xn,"decode");function En(s,e){const n=s.indexOf(";",e);return n===-1?s.length:n}f(En,"indexOf");function te(s,e,n,i){let o=0,a=0,u=0;do{const g=s.charCodeAt(e++);u=et[g],o|=(u&31)<<a,a+=5}while(u&32);const p=o&1;return o>>>=1,p&&(o=-2147483648|-o),n[i]+=o,e}f(te,"decodeInteger");function tt(s,e,n){return e>=n?!1:s.charCodeAt(e)!==Qe}f(tt,"hasMoreVlq");function _n(s){s.sort(In)}f(_n,"sort");function In(s,e){return s[0]-e[0]}f(In,"sortComparator$1");function Ln(s){const e=new Int32Array(5),n=1024*16,i=n-36,o=new Uint8Array(n),a=o.subarray(0,i);let u=0,p="";for(let g=0;g<s.length;g++){const b=s[g];if(g>0&&(u===n&&(p+=Oe.decode(o),u=0),o[u++]=vn),b.length!==0){e[0]=0;for(let d=0;d<b.length;d++){const r=b[d];u>i&&(p+=Oe.decode(a),o.copyWithin(0,i,u),u-=i),d>0&&(o[u++]=Qe),u=ne(o,u,e,r,0),r.length!==1&&(u=ne(o,u,e,r,1),u=ne(o,u,e,r,2),u=ne(o,u,e,r,3),r.length!==4&&(u=ne(o,u,e,r,4)))}}}return p+Oe.decode(o.subarray(0,u))}f(Ln,"encode");function ne(s,e,n,i,o){const a=i[o];let u=a-n[o];n[o]=a,u=u<0?-u<<1|1:u<<1;do{let p=u&31;u>>>=5,u>0&&(p|=32),s[e++]=Ve[p]}while(u>0);return e}f(ne,"encodeInteger");const On=/^[\w+.-]+:\/\//,An=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Nn=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function Rn(s){return On.test(s)}f(Rn,"isAbsoluteUrl");function Mn(s){return s.startsWith("//")}f(Mn,"isSchemeRelativeUrl");function nt(s){return s.startsWith("/")}f(nt,"isAbsolutePath");function Dn(s){return s.startsWith("file:")}f(Dn,"isFileUrl");function rt(s){return/^[.?#]/.test(s)}f(rt,"isRelative");function ue(s){const e=An.exec(s);return it(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}f(ue,"parseAbsoluteUrl");function $n(s){const e=Nn.exec(s),n=e[2];return it("file:","",e[1]||"","",nt(n)?n:"/"+n,e[3]||"",e[4]||"")}f($n,"parseFileUrl");function it(s,e,n,i,o,a,u){return{scheme:s,user:e,host:n,port:i,path:o,query:a,hash:u,type:7}}f(it,"makeUrl");function st(s){if(Mn(s)){const n=ue("http:"+s);return n.scheme="",n.type=6,n}if(nt(s)){const n=ue("http://foo.com"+s);return n.scheme="",n.host="",n.type=5,n}if(Dn(s))return $n(s);if(Rn(s))return ue(s);const e=ue("http://foo.com/"+s);return e.scheme="",e.host="",e.type=s?s.startsWith("?")?3:s.startsWith("#")?2:4:1,e}f(st,"parseUrl");function jn(s){if(s.endsWith("/.."))return s;const e=s.lastIndexOf("/");return s.slice(0,e+1)}f(jn,"stripPathFilename");function Un(s,e){ot(e,e.type),s.path==="/"?s.path=e.path:s.path=jn(e.path)+s.path}f(Un,"mergePaths");function ot(s,e){const n=e<=4,i=s.path.split("/");let o=1,a=0,u=!1;for(let g=1;g<i.length;g++){const b=i[g];if(!b){u=!0;continue}if(u=!1,b!=="."){if(b===".."){a?(u=!0,a--,o--):n&&(i[o++]=b);continue}i[o++]=b,a++}}let p="";for(let g=1;g<o;g++)p+="/"+i[g];(!p||u&&!p.endsWith("/.."))&&(p+="/"),s.path=p}f(ot,"normalizePath");function Tn(s,e){if(!s&&!e)return"";const n=st(s);let i=n.type;if(e&&i!==7){const a=st(e),u=a.type;switch(i){case 1:n.hash=a.hash;case 2:n.query=a.query;case 3:case 4:Un(n,a);case 5:n.user=a.user,n.host=a.host,n.port=a.port;case 6:n.scheme=a.scheme}u>i&&(i=u)}ot(n,i);const o=n.query+n.hash;switch(i){case 2:case 3:return o;case 4:{const a=n.path.slice(1);return a?rt(e||s)&&!rt(a)?"./"+a+o:a+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}f(Tn,"resolve$1");function at(s,e){return e&&!e.endsWith("/")&&(e+="/"),Tn(s,e)}f(at,"resolve");function Fn(s){if(!s)return"";const e=s.lastIndexOf("/");return s.slice(0,e+1)}f(Fn,"stripFilename");const F=0;function Pn(s,e){const n=ct(s,0);if(n===s.length)return s;e||(s=s.slice());for(let i=n;i<s.length;i=ct(s,i+1))s[i]=Wn(s[i],e);return s}f(Pn,"maybeSort");function ct(s,e){for(let n=e;n<s.length;n++)if(!Bn(s[n]))return n;return s.length}f(ct,"nextUnsortedSegmentLine");function Bn(s){for(let e=1;e<s.length;e++)if(s[e][F]<s[e-1][F])return!1;return!0}f(Bn,"isSorted");function Wn(s,e){return e||(s=s.slice()),s.sort(qn)}f(Wn,"sortSegments");function qn(s,e){return s[F]-e[F]}f(qn,"sortComparator");let le=!1;function Jn(s,e,n,i){for(;n<=i;){const o=n+(i-n>>1),a=s[o][F]-e;if(a===0)return le=!0,o;a<0?n=o+1:i=o-1}return le=!1,n-1}f(Jn,"binarySearch");function zn(s,e,n){for(let i=n-1;i>=0&&s[i][F]===e;n=i--);return n}f(zn,"lowerBound");function Hn(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}f(Hn,"memoizedState");function Gn(s,e,n,i){const{lastKey:o,lastNeedle:a,lastIndex:u}=n;let p=0,g=s.length-1;if(i===o){if(e===a)return le=u!==-1&&s[u][F]===e,u;e>=a?p=u===-1?0:u:g=u}return n.lastKey=i,n.lastNeedle=e,n.lastIndex=Jn(s,e,p,g)}f(Gn,"memoizedBinarySearch");class ut{static{f(this,"TraceMap")}constructor(e,n){const i=typeof e=="string";if(!i&&e._decodedMemo)return e;const o=i?JSON.parse(e):e,{version:a,file:u,names:p,sourceRoot:g,sources:b,sourcesContent:d}=o;this.version=a,this.file=u,this.names=p||[],this.sourceRoot=g,this.sources=b,this.sourcesContent=d,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const r=at(g||"",Fn(n));this.resolvedSources=b.map(O=>at(O||"",r));const{mappings:S}=o;typeof S=="string"?(this._encoded=S,this._decoded=void 0):(this._encoded=void 0,this._decoded=Pn(S,i)),this._decodedMemo=Hn(),this._bySources=void 0,this._bySourceMemos=void 0}}function Mr(s){return s}f(Mr,"cast$2");function lt(s){var e;return(e=s)._decoded||(e._decoded=xn(s._encoded))}f(lt,"decodedMappings");function Kn(s,e,n){const i=lt(s);if(e>=i.length)return null;const o=i[e],a=Xn(o,s._decodedMemo,e,n);return a===-1?null:o[a]}f(Kn,"traceSegment");function Xn(s,e,n,i,o){let a=Gn(s,i,e,n);return le&&(a=zn(s,i,a)),a===-1||a===s.length?-1:a}f(Xn,"traceSegmentInternal");class Ae{static{f(this,"SetArray")}constructor(){this._indexes={__proto__:null},this.array=[]}}function Dr(s){return s}f(Dr,"cast$1");function ft(s,e){return s._indexes[e]}f(ft,"get");function re(s,e){const n=ft(s,e);if(n!==void 0)return n;const{array:i,_indexes:o}=s,a=i.push(e);return o[e]=a-1}f(re,"put");function Yn(s,e){const n=ft(s,e);if(n===void 0)return;const{array:i,_indexes:o}=s;for(let a=n+1;a<i.length;a++){const u=i[a];i[a-1]=u,o[u]--}o[e]=void 0,i.pop()}f(Yn,"remove");const Qn=0,Zn=1,Vn=2,er=3,tr=4,ht=-1;class nr{static{f(this,"GenMapping")}constructor({file:e,sourceRoot:n}={}){this._names=new Ae,this._sources=new Ae,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new Ae}}function $r(s){return s}f($r,"cast");const rr=f((s,e,n,i,o,a,u,p)=>ar(!0,s,e,n,i,o,a,u),"maybeAddSegment");function ir(s,e,n){const{_sources:i,_sourcesContent:o}=s,a=re(i,e);o[a]=n}f(ir,"setSourceContent");function sr(s,e,n=!0){const{_sources:i,_sourcesContent:o,_ignoreList:a}=s,u=re(i,e);u===o.length&&(o[u]=null),n?re(a,u):Yn(a,u)}f(sr,"setIgnore");function dt(s){const{_mappings:e,_sources:n,_sourcesContent:i,_names:o,_ignoreList:a}=s;return lr(e),{version:3,file:s.file||void 0,names:o.array,sourceRoot:s.sourceRoot||void 0,sources:n.array,sourcesContent:i,mappings:e,ignoreList:a.array}}f(dt,"toDecodedMap");function or(s){const e=dt(s);return Object.assign(Object.assign({},e),{mappings:Ln(e.mappings)})}f(or,"toEncodedMap");function ar(s,e,n,i,o,a,u,p,g){const{_mappings:b,_sources:d,_sourcesContent:r,_names:S}=e,O=cr(b,n),_=ur(O,i);if(!o)return fr(O,_)?void 0:gt(O,_,[i]);const N=re(d,o),D=p?re(S,p):ht;if(N===r.length&&(r[N]=null),!hr(O,_,N,a,u,D))return gt(O,_,p?[i,N,a,u,D]:[i,N,a,u])}f(ar,"addSegmentInternal");function cr(s,e){for(let n=s.length;n<=e;n++)s[n]=[];return s[e]}f(cr,"getLine");function ur(s,e){let n=s.length;for(let i=n-1;i>=0;n=i--){const o=s[i];if(e>=o[Qn])break}return n}f(ur,"getColumnIndex");function gt(s,e,n){for(let i=s.length;i>e;i--)s[i]=s[i-1];s[e]=n}f(gt,"insert");function lr(s){const{length:e}=s;let n=e;for(let i=n-1;i>=0&&!(s[i].length>0);n=i,i--);n<e&&(s.length=n)}f(lr,"removeEmptyFinalLines");function fr(s,e){return e===0?!0:s[e-1].length===1}f(fr,"skipSourceless");function hr(s,e,n,i,o,a){if(e===0)return!1;const u=s[e-1];return u.length===1?!1:n===u[Zn]&&i===u[Vn]&&o===u[er]&&a===(u.length===5?u[tr]:ht)}f(hr,"skipSource");const bt=pt("",-1,-1,"",null,!1),dr=[];function pt(s,e,n,i,o,a){return{source:s,line:e,column:n,name:i,content:o,ignore:a}}f(pt,"SegmentObject");function mt(s,e,n,i,o){return{map:s,sources:e,source:n,content:i,ignore:o}}f(mt,"Source");function wt(s,e){return mt(s,e,"",null,!1)}f(wt,"MapSource");function gr(s,e,n){return mt(null,dr,s,e,n)}f(gr,"OriginalSource");function br(s){const e=new nr({file:s.map.file}),{sources:n,map:i}=s,o=i.names,a=lt(i);for(let u=0;u<a.length;u++){const p=a[u];for(let g=0;g<p.length;g++){const b=p[g],d=b[0];let r=bt;if(b.length!==1){const G=n[b[1]];if(r=kt(G,b[2],b[3],b.length===5?o[b[4]]:""),r==null)continue}const{column:S,line:O,name:_,content:N,source:D,ignore:P}=r;rr(e,u,d,D,O,S,_),D&&N!=null&&ir(e,D,N),P&&sr(e,D,!0)}}return e}f(br,"traceMappings");function kt(s,e,n,i){if(!s.map)return pt(s.source,e,n,i,s.content,s.ignore);const o=Kn(s.map,e,n);return o==null?null:o.length===1?bt:kt(s.sources[o[1]],o[2],o[3],o.length===5?s.map.names[o[4]]:i)}f(kt,"originalPositionFor");function pr(s){return Array.isArray(s)?s:[s]}f(pr,"asArray");function mr(s,e){const n=pr(s).map(a=>new ut(a,"")),i=n.pop();for(let a=0;a<n.length;a++)if(n[a].sources.length>1)throw new Error(`Transformation map ${a} must have exactly one source file.
|
|
14
|
-
Did you specify these with the most recent transformation maps first?`);let o=Ct(i,e,"",0);for(let a=n.length-1;a>=0;a--)o=wt(n[a],[o]);return o}f(mr,"buildSourceMapTree");function Ct(s,e,n,i){const{resolvedSources:o,sourcesContent:a,ignoreList:u}=s,p=i+1,g=o.map((b,d)=>{const r={importer:n,depth:p,source:b||"",content:void 0,ignore:void 0},S=e(r.source,r),{source:O,content:_,ignore:N}=r;if(S)return Ct(new ut(S,O),e,O,p);const D=_!==void 0?_:a?a[d]:null,P=N!==void 0?N:u?u.includes(d):!1;return gr(O,D,P)});return wt(s,g)}f(Ct,"build");class wr{static{f(this,"SourceMap")}constructor(e,n){const i=n.decodedMappings?dt(e):or(e);this.version=i.version,this.file=i.file,this.mappings=i.mappings,this.names=i.names,this.ignoreList=i.ignoreList,this.sourceRoot=i.sourceRoot,this.sources=i.sources,n.excludeContent||(this.sourcesContent=i.sourcesContent)}toString(){return JSON.stringify(this)}}function yt(s,e,n){const i={excludeContent:!!n,decodedMappings:!1},o=mr(s,e);return new wr(br(o),i)}f(yt,"remapping");const St=f((s,e,n)=>{const i=[],o={code:e};for(const a of n){const u=a(s,o.code);u&&(Object.assign(o,u),i.unshift(u.map))}return{...o,map:yt(i,()=>null)}},"applyTransformersSync"),kr=f(async(s,e,n)=>{const i=[],o={code:e};for(const a of n){const u=await a(s,o.code);u&&(Object.assign(o,u),i.unshift(u.map))}return{...o,map:yt(i,()=>null)}},"applyTransformers"),Cr=f(s=>{const e=[];let n=!1,i=!0;for(let o=0;o<s.length;o+=1){let a=s[o];if(a==="\\"&&n){if(o+1===s.length)return e;o+=1,a=s[o]}else if(a===" "&&!n){i=!0;continue}else if(a==='"'){n=!n;continue}i?(e.push(a),i=!1):e[e.length-1]+=a}return e},"tokenizeNodeOptionsEnv"),vt=f((s,e,n)=>{for(let i=0;i<e.length;i+=1){const o=e[i];if(o.length<=1||o[0]!=="-")continue;const a=o[1]==="-"?o.indexOf("="):-1;let u=a===-1?o:o.slice(0,a);u.includes("_",2)&&(u=u.slice(0,2)+u.slice(2).replaceAll("_","-"));for(const p of s.forms){const[g,b]=p;if(u!==g||(b===3||b===5)&&a===-1)continue;const d=b===4||b===5,r=b>=3?0:b;let S=d?p[2]:"";r===0&&!d&&(a===-1?(i+=1,S=e[i]??"",S[0]==="\\"&&S[1]==="-"&&(S=S.slice(1))):S=o.slice(a+1)),n=s.fold(S,n,r);break}}return n},"scanSource"),yr=f(s=>{let e=s.init();const n=process.env.NODE_OPTIONS;return n&&(e=vt(s,Cr(n),e)),e=vt(s,process.execArgv,e),e},"getOptionValue"),Sr=f((s,e,n)=>n===1,"setByEffect"),vr=f((s,e)=>({forms:e,init:f(()=>s,"init"),fold:Sr}),"booleanFlag"),xr=vr(!1,[["--inspect-brk-node",1],["--inspect-brk",1],["--inspect-wait",1],["--inspect",1],["--no-inspect",2]]),Er=Object.freeze({target:`node${process.versions.node}`,loader:"default"}),_r=yr(xr),Ne={...Er,sourcemap:!0,sourcesContent:!!process.env.NODE_V8_COVERAGE||_r,minifyWhitespace:!0,keepNames:!0},Re=f(s=>{const e=s.sourcefile;if(e){const n=q.extname(e.split("?")[0]);n?n===".cts"||n===".mts"?s.sourcefile=`${e.slice(0,-3)}ts`:n===".mjs"&&(s.sourcefile=`${e.slice(0,-3)}js`):s.sourcefile+=".js"}return n=>(n.map&&(s.sourcefile!==e&&(n.map=n.map.replace(JSON.stringify(s.sourcefile),JSON.stringify(e))),n.map=JSON.parse(n.map)),n)},"patchOptions"),Me=f(s=>{throw s.name="TransformError",delete s.errors,delete s.warnings,s},"formatEsbuildError"),Ir=f((s,e)=>({...Pe.isFeatureSupported(Pe.importMetaPathProperties)?{dirname:q.dirname(s),filename:s}:{},url:e}),"getImportMeta"),Lr=f((s,e,n)=>{let i,o,a;if(e.startsWith("file://")){i=e;const r=new URL(e);o=Fe.fileURLToPath(r)}else[o,a]=e.split("?"),i=Fe.pathToFileURL(o)+(a?`?${a}`:"");const{cjsBanner:u,...p}=n??{},g={...Ne,format:"cjs",sourcefile:o,banner:`__filename=${JSON.stringify(o)};(()=>{${u??""}`,footer:"})()",platform:"node",...p};s.includes("import.meta")&&g.format==="cjs"&&!o.endsWith(".cjs")&&!o.endsWith(".cts")&&(g.define={...g.define,"import.meta":JSON.stringify(Ir(o,i))});const b=Se([s,i,JSON.stringify(g),J.version,Le].join("-"));let d=H.get(b);return d||(d=St(e,s,[(r,S)=>{const O=Re(g);let _;try{_=J.transformSync(S,g)}catch(N){throw Me(N)}return O(_)},(r,S)=>ce(r,S,!0)]),H.set(b,d)),d},"transformSync"),Or=f(async(s,e,n)=>{const i={...Ne,format:"esm",sourcefile:e,...n},o=Se([s,JSON.stringify(i),J.version,Le].join("-"));let a=H.get(o);return a||(a=await kr(e,s,[async(u,p)=>{const g=Re(i);let b;try{b=await J.transform(p,i)}catch(d){throw Me(d)}return g(b)},(u,p)=>ce(u,p,!0)]),H.set(o,a)),a},"transform"),Ar=f((s,e,n)=>{const i={...Ne,format:"esm",sourcefile:e,...n},o=Se([s,JSON.stringify(i),J.version,Le].join("-"));let a=H.get(o);return a||(a=St(e,s,[(u,p)=>{const g=Re(i);let b;try{b=J.transformSync(p,i)}catch(d){throw Me(d)}return g(b)},(u,p)=>ce(u,p,!0)]),H.set(o,a)),a},"transformEsmSync");exports.isESM=wn,exports.parseEsm=Ie,exports.readJsonFile=Xe,exports.transform=Or,exports.transformDynamicImport=ce,exports.transformEsmSync=Ar,exports.transformSync=Lr;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r="4.23.10";exports.version=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="4.23.10";export{r as v};
|