@arcgis/coding-components 5.1.0-next.84 → 5.1.0-next.85
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.
|
@@ -4977,7 +4977,7 @@ var B0;
|
|
|
4977
4977
|
}
|
|
4978
4978
|
t.toCompletionKind = s;
|
|
4979
4979
|
})(B0 || (B0 = {}));
|
|
4980
|
-
let
|
|
4980
|
+
let AT = class bn {
|
|
4981
4981
|
static {
|
|
4982
4982
|
this.Comment = new bn("comment");
|
|
4983
4983
|
}
|
|
@@ -16393,7 +16393,7 @@ function Ny(t) {
|
|
|
16393
16393
|
let hf;
|
|
16394
16394
|
async function h4() {
|
|
16395
16395
|
return hf == null && (hf = Promise.resolve().then(function() {
|
|
16396
|
-
return
|
|
16396
|
+
return NT;
|
|
16397
16397
|
}).then((t) => new t.WhereClauseCache(500, 500))), hf;
|
|
16398
16398
|
}
|
|
16399
16399
|
async function Ey(t, e) {
|
|
@@ -18248,7 +18248,7 @@ function se(t, e, r, n) {
|
|
|
18248
18248
|
const cr = { apiKey: void 0, apiKeys: { scopes: [] }, applicationName: "", applicationUrl: globalThis.location?.href, assetsPath: "", fontsUrl: "https://static.arcgis.com/fonts", geometryServiceUrl: "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer", geoRSSServiceUrl: "https://utility.arcgis.com/sharing/rss", kmlServiceUrl: "https://utility.arcgis.com/sharing/kml", userPrivilegesApplied: !0, portalUrl: "https://www.arcgis.com", respectPrefersReducedMotion: !0, routeServiceUrl: "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World", workers: { loaderConfig: { has: {}, paths: {}, map: {}, packages: [] } }, request: { crossOriginNoCorsDomains: null, httpsDomains: ["arcgis.com", "arcgisonline.com", "esrikr.com", "premiumservices.blackbridge.com", "esripremium.accuweather.com", "gbm.digitalglobe.com", "firstlook.digitalglobe.com", "msi.digitalglobe.com"], interceptors: [], internalInterceptors: [], maxUrlLength: 2e3, priority: "high", proxyRules: [], proxyUrl: null, timeout: 62e3, trustedServers: [], useIdentity: !0 }, log: { interceptors: [], level: null } };
|
|
18249
18249
|
if (globalThis.esriConfig && (H4(cr, globalThis.esriConfig, !0), delete cr.has), !cr.assetsPath) {
|
|
18250
18250
|
{
|
|
18251
|
-
const t = "5.1.0-next.
|
|
18251
|
+
const t = "5.1.0-next.81";
|
|
18252
18252
|
cr.assetsPath = `https://cdn.jsdelivr.net/npm/@arcgis/core@${t}/assets`;
|
|
18253
18253
|
}
|
|
18254
18254
|
cr.defaultAssetsPath = cr.assetsPath;
|
|
@@ -20560,7 +20560,7 @@ function Hx() {
|
|
|
20560
20560
|
}
|
|
20561
20561
|
function Yx() {
|
|
20562
20562
|
return vf || (vf = Promise.resolve().then(function() {
|
|
20563
|
-
return
|
|
20563
|
+
return TT;
|
|
20564
20564
|
}).then(({ default: t }) => t({ locateFile: (e) => Bx(`esri/geometry/support/${e}`) })).then((t) => {
|
|
20565
20565
|
z3(t);
|
|
20566
20566
|
}), vf);
|
|
@@ -21460,9 +21460,9 @@ let pe = class extends _3 {
|
|
|
21460
21460
|
}
|
|
21461
21461
|
static fromJSON(e) {
|
|
21462
21462
|
if (!e) return null;
|
|
21463
|
-
if (
|
|
21464
|
-
|
|
21465
|
-
if (e
|
|
21463
|
+
if (e.wkid === 102100 || e.wkid === 4326) {
|
|
21464
|
+
const n = Object.keys(e).length;
|
|
21465
|
+
if (n === 1 || e.wkid === 102100 && e.latestWkid === 3857 && n === 2) return e.wkid === 102100 ? Wr.WebMercator : Wr.WGS84;
|
|
21466
21466
|
}
|
|
21467
21467
|
const r = new Wr();
|
|
21468
21468
|
return r.read(e), r;
|
|
@@ -21521,7 +21521,6 @@ se([Be({ readOnly: !0 })], pe.prototype, "cache", null), se([Be({ readOnly: !0 }
|
|
|
21521
21521
|
} } } } } })], pe.prototype, "wkid", void 0), se([Be({ type: String, json: { origins: { "web-scene": { write: { overridePolicy() {
|
|
21522
21522
|
return { isRequired: this.wkid == null };
|
|
21523
21523
|
} } } } } })], pe.prototype, "wkt", void 0), se([Wh("wkt"), Wh("web-scene", "wkt")], pe.prototype, "writeWkt", null), se([Be({ type: String, json: { write: !1 } })], pe.prototype, "wkt2", void 0), se([Be({ type: Hn, json: { write: !0 } })], pe.prototype, "vcsWkid", void 0), se([Be({ type: Hn, json: { write: !0 } })], pe.prototype, "latestVcsWkid", void 0), se([Be({ type: Number, json: { write: !0 } })], pe.prototype, "falseM", void 0), se([Be({ type: Number, json: { write: !0 } })], pe.prototype, "falseX", void 0), se([Be({ type: Number, json: { write: !0 } })], pe.prototype, "falseY", void 0), se([Be({ type: Number, json: { write: !0 } })], pe.prototype, "falseZ", void 0), se([Be({ type: Number, json: { write: !0 } })], pe.prototype, "mTolerance", void 0), se([Be({ type: Number, json: { write: !0 } })], pe.prototype, "mUnits", void 0), se([Be({ type: Number, json: { write: !0 } })], pe.prototype, "xyTolerance", void 0), se([Be({ type: Number, json: { write: !0 } })], pe.prototype, "xyUnits", void 0), se([Be({ type: Number, json: { write: !0 } })], pe.prototype, "zTolerance", void 0), se([Be({ type: Number, json: { write: !0 } })], pe.prototype, "zUnits", void 0), se([Be()], pe.prototype, "imageCoordinateSystem", void 0), pe = Wr = se([jc("esri.geometry.SpatialReference")], pe), pe.prototype.toJSON.isDefaultToJSON = !0, pe.GCS_NAD_1927 = Ms.freeze(new pe({ wkid: 4267, wkt: 'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]' })), pe.WGS84 = Ms.freeze(new pe(B3)), pe.WebMercator = Ms.freeze(new pe(q3)), pe.PlateCarree = Ms.freeze(new pe(lN));
|
|
21524
|
-
const vN = ["falseM", "falseX", "falseY", "falseZ", "mTolerance", "mUnits", "xyTolerance", "xyUnits", "zTolerance", "zUnits"];
|
|
21525
21524
|
let $r = class extends _3 {
|
|
21526
21525
|
constructor(...e) {
|
|
21527
21526
|
super(...e), this.type = null, this.hasM = !1, this.hasZ = !1, this.spatialReference = pe.WGS84;
|
|
@@ -21557,12 +21556,12 @@ se([Ce()], $r.prototype, "type", void 0), se([Ce({ readOnly: !0 })], $r.prototyp
|
|
|
21557
21556
|
function Lc(t) {
|
|
21558
21557
|
if (t && typeof t == "object" && "type" in t && t.type === "mesh") throw new uo("internal:mesh", "Mesh geometries are not supported for this operation");
|
|
21559
21558
|
}
|
|
21560
|
-
const
|
|
21559
|
+
const vN = 57.29577951308232, SN = 0.017453292519943;
|
|
21561
21560
|
function I2(t) {
|
|
21562
|
-
return t *
|
|
21561
|
+
return t * vN;
|
|
21563
21562
|
}
|
|
21564
21563
|
function C2(t) {
|
|
21565
|
-
return t *
|
|
21564
|
+
return t * SN;
|
|
21566
21565
|
}
|
|
21567
21566
|
function k2(t) {
|
|
21568
21567
|
return t.wkid != null || t.wkt != null;
|
|
@@ -21612,14 +21611,14 @@ function Lf(t, e = !1, r = dr(t)) {
|
|
|
21612
21611
|
function El(t, e = !1, r = dr(t)) {
|
|
21613
21612
|
return Lc(t), Lc(r), K3(t, kd, pe.WGS84, e, r);
|
|
21614
21613
|
}
|
|
21615
|
-
function
|
|
21614
|
+
function xN(t, e) {
|
|
21616
21615
|
const r = t.x - e.x, n = t.y - e.y, s = t.z != null && e.z != null ? t.z - e.z : 0;
|
|
21617
21616
|
return Math.sqrt(r * r + n * n + s * s);
|
|
21618
21617
|
}
|
|
21619
|
-
function
|
|
21618
|
+
function NN(t) {
|
|
21620
21619
|
return e9(t, t9)?.[0] ?? null;
|
|
21621
21620
|
}
|
|
21622
|
-
function
|
|
21621
|
+
function EN(t) {
|
|
21623
21622
|
return e9(t, t9)?.[1] ?? null;
|
|
21624
21623
|
}
|
|
21625
21624
|
function e9({ x: t, y: e, spatialReference: r }, n = [0, 0]) {
|
|
@@ -21676,14 +21675,14 @@ let Gt = Yl = class extends $r {
|
|
|
21676
21675
|
t !== (this._get("z") !== void 0) && (this._set("z", t ? 0 : void 0), this._set("hasZ", t));
|
|
21677
21676
|
}
|
|
21678
21677
|
get latitude() {
|
|
21679
|
-
return
|
|
21678
|
+
return EN(this);
|
|
21680
21679
|
}
|
|
21681
21680
|
set latitude(t) {
|
|
21682
21681
|
const { spatialReference: e, x: r } = this;
|
|
21683
21682
|
t != null && e && (e.isWebMercator ? this._set("y", Di(r, t, Af)[1]) : e.isGeographic && this._set("y", t), this._set("latitude", t));
|
|
21684
21683
|
}
|
|
21685
21684
|
get longitude() {
|
|
21686
|
-
return
|
|
21685
|
+
return NN(this);
|
|
21687
21686
|
}
|
|
21688
21687
|
set longitude(t) {
|
|
21689
21688
|
const { y: e, spatialReference: r } = this;
|
|
@@ -21726,7 +21725,7 @@ let Gt = Yl = class extends $r {
|
|
|
21726
21725
|
return e > n ? (i = Math.ceil(Math.abs(e - n) / s), e -= i * s) : e < r && (i = Math.ceil(Math.abs(e - r) / s), e += i * s), this._set("x", e), this;
|
|
21727
21726
|
}
|
|
21728
21727
|
distance(t) {
|
|
21729
|
-
return
|
|
21728
|
+
return xN(this, t);
|
|
21730
21729
|
}
|
|
21731
21730
|
toArray() {
|
|
21732
21731
|
const t = this.hasZ, e = this.hasM;
|
|
@@ -21744,27 +21743,27 @@ se([Ce({ readOnly: !0 })], Gt.prototype, "cache", null), se([Ce({ type: Boolean,
|
|
|
21744
21743
|
function r9(t, e) {
|
|
21745
21744
|
return e != null && Bt(t, e.x, e.y, e.z);
|
|
21746
21745
|
}
|
|
21747
|
-
function
|
|
21746
|
+
function TN(t, e) {
|
|
21748
21747
|
const { xmin: r, ymin: n, zmin: s, xmax: i, ymax: u, zmax: l } = e;
|
|
21749
21748
|
return t.hasZ && e.hasZ ? Bt(t, r, n, s) && Bt(t, r, u, s) && Bt(t, i, u, s) && Bt(t, i, n, s) && Bt(t, r, n, l) && Bt(t, r, u, l) && Bt(t, i, u, l) && Bt(t, i, n, l) : Bt(t, r, n) && Bt(t, r, u) && Bt(t, i, u) && Bt(t, i, n);
|
|
21750
21749
|
}
|
|
21751
21750
|
function Ki(t, e) {
|
|
21752
21751
|
return Bt(t, e[0], e[1]);
|
|
21753
21752
|
}
|
|
21754
|
-
function
|
|
21753
|
+
function PN(t, e) {
|
|
21755
21754
|
return Bt(t, e[0], e[1], e[2]);
|
|
21756
21755
|
}
|
|
21757
21756
|
function Bt(t, e, r, n) {
|
|
21758
21757
|
return e >= t.xmin && e <= t.xmax && r >= t.ymin && r <= t.ymax && (n == null || !t.hasZ || n >= t.zmin && n <= t.zmax);
|
|
21759
21758
|
}
|
|
21760
|
-
function
|
|
21759
|
+
function LN(t, e) {
|
|
21761
21760
|
if (!t || t.length < 1) return !1;
|
|
21762
|
-
if (
|
|
21761
|
+
if (AN(t)) return $2(!1, t, e);
|
|
21763
21762
|
let r = !1;
|
|
21764
21763
|
for (let n = 0, s = t.length; n < s; n++) r = $2(r, t[n], e);
|
|
21765
21764
|
return r;
|
|
21766
21765
|
}
|
|
21767
|
-
function
|
|
21766
|
+
function AN(t) {
|
|
21768
21767
|
return !Array.isArray(t[0][0]);
|
|
21769
21768
|
}
|
|
21770
21769
|
function $2(t, e, r) {
|
|
@@ -21777,10 +21776,10 @@ function $2(t, e, r) {
|
|
|
21777
21776
|
}
|
|
21778
21777
|
return i;
|
|
21779
21778
|
}
|
|
21780
|
-
function
|
|
21779
|
+
function MN(t, e) {
|
|
21781
21780
|
return r9(t, e);
|
|
21782
21781
|
}
|
|
21783
|
-
function
|
|
21782
|
+
function ON(t, e) {
|
|
21784
21783
|
const r = t.hasZ && e.hasZ;
|
|
21785
21784
|
let n, s, i;
|
|
21786
21785
|
if (t.xmin <= e.xmin) {
|
|
@@ -21796,18 +21795,18 @@ function RN(t, e) {
|
|
|
21796
21795
|
}
|
|
21797
21796
|
return !0;
|
|
21798
21797
|
}
|
|
21799
|
-
function
|
|
21800
|
-
const { points: r, hasZ: n } = e, s = n ?
|
|
21798
|
+
function RN(t, e) {
|
|
21799
|
+
const { points: r, hasZ: n } = e, s = n ? PN : Ki;
|
|
21801
21800
|
for (const i of r) if (s(t, i)) return !0;
|
|
21802
21801
|
return !1;
|
|
21803
21802
|
}
|
|
21804
|
-
const ts = [0, 0], rs = [0, 0], ns = [0, 0], ss = [0, 0],
|
|
21805
|
-
function
|
|
21806
|
-
return
|
|
21803
|
+
const ts = [0, 0], rs = [0, 0], ns = [0, 0], ss = [0, 0], IN = [ts, rs, ns, ss], n9 = [[ns, ts], [ts, rs], [rs, ss], [ss, ns]];
|
|
21804
|
+
function CN(t, e) {
|
|
21805
|
+
return kN(t, e.rings);
|
|
21807
21806
|
}
|
|
21808
|
-
function
|
|
21807
|
+
function kN(t, e) {
|
|
21809
21808
|
ts[0] = t.xmin, ts[1] = t.ymax, rs[0] = t.xmax, rs[1] = t.ymax, ns[0] = t.xmin, ns[1] = t.ymin, ss[0] = t.xmax, ss[1] = t.ymin;
|
|
21810
|
-
for (const r of
|
|
21809
|
+
for (const r of IN) if (LN(e, r)) return !0;
|
|
21811
21810
|
for (const r of e) {
|
|
21812
21811
|
if (!r.length) continue;
|
|
21813
21812
|
let n = r[0];
|
|
@@ -21820,7 +21819,7 @@ function DN(t, e) {
|
|
|
21820
21819
|
}
|
|
21821
21820
|
return !1;
|
|
21822
21821
|
}
|
|
21823
|
-
function
|
|
21822
|
+
function DN(t, e) {
|
|
21824
21823
|
ts[0] = t.xmin, ts[1] = t.ymax, rs[0] = t.xmax, rs[1] = t.ymax, ns[0] = t.xmin, ns[1] = t.ymin, ss[0] = t.xmax, ss[1] = t.ymin;
|
|
21825
21824
|
const r = e.paths;
|
|
21826
21825
|
for (const n of r) {
|
|
@@ -21836,38 +21835,38 @@ function $N(t, e) {
|
|
|
21836
21835
|
return !1;
|
|
21837
21836
|
}
|
|
21838
21837
|
function s9(t, e, r) {
|
|
21839
|
-
for (let n = 0; n < r.length; n++) if (
|
|
21838
|
+
for (let n = 0; n < r.length; n++) if ($N(t, e, r[n][0], r[n][1])) return !0;
|
|
21840
21839
|
return !1;
|
|
21841
21840
|
}
|
|
21842
|
-
function
|
|
21841
|
+
function $N(t, e, r, n, s) {
|
|
21843
21842
|
const [i, u] = t, [l, c] = e, [p, _] = r, [y, v] = n, S = y - p, E = i - p, N = l - i, k = v - _, W = u - _, z = c - u, U = k * N - S * z;
|
|
21844
21843
|
if (U === 0) return !1;
|
|
21845
21844
|
const Q = (S * W - k * E) / U, te = (N * W - z * E) / U;
|
|
21846
21845
|
return Q >= 0 && Q <= 1 && te >= 0 && te <= 1 && !0;
|
|
21847
21846
|
}
|
|
21848
|
-
function
|
|
21847
|
+
function FN(t) {
|
|
21849
21848
|
switch (t) {
|
|
21850
21849
|
case "esriGeometryEnvelope":
|
|
21851
21850
|
case "extent":
|
|
21852
|
-
return
|
|
21851
|
+
return ON;
|
|
21853
21852
|
case "esriGeometryMultipoint":
|
|
21854
21853
|
case "multipoint":
|
|
21855
|
-
return
|
|
21854
|
+
return RN;
|
|
21856
21855
|
case "esriGeometryPoint":
|
|
21857
21856
|
case "point":
|
|
21858
|
-
return
|
|
21857
|
+
return MN;
|
|
21859
21858
|
case "esriGeometryMultiPatch":
|
|
21860
21859
|
case "multipatch":
|
|
21861
21860
|
case "esriGeometryPolygon":
|
|
21862
21861
|
case "polygon":
|
|
21863
|
-
return
|
|
21862
|
+
return CN;
|
|
21864
21863
|
case "esriGeometryPolyline":
|
|
21865
21864
|
case "polyline":
|
|
21866
|
-
return
|
|
21865
|
+
return DN;
|
|
21867
21866
|
}
|
|
21868
21867
|
}
|
|
21869
21868
|
var kr;
|
|
21870
|
-
function
|
|
21869
|
+
function UN(t) {
|
|
21871
21870
|
return t && (t.declaredClass === "esri.geometry.SpatialReference" || t.wkid != null);
|
|
21872
21871
|
}
|
|
21873
21872
|
function gn(t, e, r) {
|
|
@@ -21878,7 +21877,7 @@ let Nt = kr = class extends $r {
|
|
|
21878
21877
|
super(...t), this.type = "extent", this.xmin = 0, this.ymin = 0, this.mmin = void 0, this.zmin = void 0, this.xmax = 0, this.ymax = 0, this.mmax = void 0, this.zmax = void 0;
|
|
21879
21878
|
}
|
|
21880
21879
|
normalizeCtorArgs(t, e, r, n, s) {
|
|
21881
|
-
return
|
|
21880
|
+
return UN(t) ? { spatialReference: t, xmin: 0, ymin: 0, xmax: 0, ymax: 0 } : typeof t == "object" ? (t.spatialReference = t.spatialReference == null ? pe.WGS84 : t.spatialReference, t) : { xmin: t, ymin: e, xmax: r, ymax: n, spatialReference: s ?? pe.WGS84 };
|
|
21882
21881
|
}
|
|
21883
21882
|
static fromPoint(t) {
|
|
21884
21883
|
return new kr({ xmin: t.x, ymin: t.y, zmin: t.z, xmax: t.x, ymax: t.y, zmax: t.z, spatialReference: t.spatialReference });
|
|
@@ -21916,7 +21915,7 @@ let Nt = kr = class extends $r {
|
|
|
21916
21915
|
contains(t) {
|
|
21917
21916
|
if (!t) return !1;
|
|
21918
21917
|
const e = this.spatialReference, r = t.spatialReference;
|
|
21919
|
-
return e && r && !e.equals(r) && Pf(e, r) && (t = e.isWebMercator ? Lf(t) : El(t, !0)), t.type === "point" ? r9(this, t) : t.type === "extent" &&
|
|
21918
|
+
return e && r && !e.equals(r) && Pf(e, r) && (t = e.isWebMercator ? Lf(t) : El(t, !0)), t.type === "point" ? r9(this, t) : t.type === "extent" && TN(this, t);
|
|
21920
21919
|
}
|
|
21921
21920
|
equals(t) {
|
|
21922
21921
|
if (this === t) return !0;
|
|
@@ -21940,7 +21939,7 @@ let Nt = kr = class extends $r {
|
|
|
21940
21939
|
if (t == null) return !1;
|
|
21941
21940
|
t.type === "mesh" && (t = t.extent);
|
|
21942
21941
|
const e = this.spatialReference, r = t.spatialReference;
|
|
21943
|
-
return e && r && !Id(e, r) && Pf(e, r) && (t = e.isWebMercator ? Lf(t) : El(t, !0)),
|
|
21942
|
+
return e && r && !Id(e, r) && Pf(e, r) && (t = e.isWebMercator ? Lf(t) : El(t, !0)), FN(t.type)(this, t);
|
|
21944
21943
|
}
|
|
21945
21944
|
normalize() {
|
|
21946
21945
|
const t = this._normalize(!1, !0);
|
|
@@ -22204,7 +22203,7 @@ let hr = class Br {
|
|
|
22204
22203
|
}
|
|
22205
22204
|
}
|
|
22206
22205
|
};
|
|
22207
|
-
function
|
|
22206
|
+
function VN(t, e) {
|
|
22208
22207
|
const r = i9[t.toLowerCase()];
|
|
22209
22208
|
if (r == null) throw new C("FunctionNotRecognized");
|
|
22210
22209
|
if (e.length < r.minParams || e.length > r.maxParams) throw new C("InvalidParameterCount", { name: t.toUpperCase() });
|
|
@@ -22214,7 +22213,7 @@ function V2(t, e) {
|
|
|
22214
22213
|
const r = i9[t.toLowerCase()];
|
|
22215
22214
|
return r != null && e >= r.minParams && e <= r.maxParams;
|
|
22216
22215
|
}
|
|
22217
|
-
const i9 = { min: { minParams: 1, maxParams: 1, evaluate: (t) => z2(t[0], "min") }, max: { minParams: 1, maxParams: 1, evaluate: (t) => z2(t[0], "max") }, avg: { minParams: 1, maxParams: 1, evaluate: (t) => o9(t[0]) }, sum: { minParams: 1, maxParams: 1, evaluate: (t) =>
|
|
22216
|
+
const i9 = { min: { minParams: 1, maxParams: 1, evaluate: (t) => z2(t[0], "min") }, max: { minParams: 1, maxParams: 1, evaluate: (t) => z2(t[0], "max") }, avg: { minParams: 1, maxParams: 1, evaluate: (t) => o9(t[0]) }, sum: { minParams: 1, maxParams: 1, evaluate: (t) => zN(t[0]) }, stddev: { minParams: 1, maxParams: 1, evaluate: (t) => jN(t[0]) }, count: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : t[0].length }, var: { minParams: 1, maxParams: 1, evaluate: (t) => a9(t[0]) } };
|
|
22218
22217
|
function o9(t) {
|
|
22219
22218
|
if (t === null) return null;
|
|
22220
22219
|
let e = 0, r = 0;
|
|
@@ -22239,7 +22238,7 @@ function z2(t, e) {
|
|
|
22239
22238
|
}
|
|
22240
22239
|
return r;
|
|
22241
22240
|
}
|
|
22242
|
-
function
|
|
22241
|
+
function zN(t) {
|
|
22243
22242
|
if (t === null) return null;
|
|
22244
22243
|
let e = 0;
|
|
22245
22244
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -22251,7 +22250,7 @@ function jN(t) {
|
|
|
22251
22250
|
}
|
|
22252
22251
|
return e;
|
|
22253
22252
|
}
|
|
22254
|
-
function
|
|
22253
|
+
function jN(t) {
|
|
22255
22254
|
if (t === null) return null;
|
|
22256
22255
|
const e = a9(t);
|
|
22257
22256
|
return e === null ? null : Math.sqrt(e);
|
|
@@ -22366,7 +22365,7 @@ let kt = class Kh {
|
|
|
22366
22365
|
return (this.op === "-" ? -1 : 1) * (this.millis + 1e3 * this.second + 60 * this.minute * 1e3 + 60 * this.hour * 60 * 1e3 + 24 * this.day * 60 * 60 * 1e3 + this.month * (365 / 12) * 24 * 60 * 60 * 1e3 + 365 * this.year * 24 * 60 * 60 * 1e3);
|
|
22367
22366
|
}
|
|
22368
22367
|
};
|
|
22369
|
-
const
|
|
22368
|
+
const GN = /^(\d{1,2}):(\d{1,2}):(\d{1,2})$/, WN = /^(\d{1,2}):(\d{1,2})$/, BN = /^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/, u9 = /^(\d{4})-(\d{1,2})-(\d{1,2})$/, qN = /^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$/, HN = /^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)? {0,1}(\+|-)(\d{1,2}):(\d{1,2})$/, YN = /^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})? {0,1}(\+|-)(\d{1,2}):(\d{1,2})$/, ZN = /^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/;
|
|
22370
22369
|
function Hc(t, e) {
|
|
22371
22370
|
if (e instanceof In) return e === lr.instance ? Z.fromMillis(t.getTime(), { zone: lr.instance }) : Z.fromJSDate(t, { zone: e });
|
|
22372
22371
|
switch (e) {
|
|
@@ -22394,18 +22393,18 @@ function He(t) {
|
|
|
22394
22393
|
return Qr.isTimestampOffset(t);
|
|
22395
22394
|
}
|
|
22396
22395
|
function Yc(t) {
|
|
22397
|
-
let e =
|
|
22396
|
+
let e = GN.exec(t);
|
|
22398
22397
|
if (e !== null) {
|
|
22399
22398
|
const [, r, n, s] = e, i = hr.fromParts(parseInt(r, 10), parseInt(n, 10), parseInt(s, 10), 0);
|
|
22400
22399
|
if (i !== null) return i;
|
|
22401
22400
|
throw new C("InvalidTime");
|
|
22402
22401
|
}
|
|
22403
|
-
if (e =
|
|
22402
|
+
if (e = WN.exec(t), e !== null) {
|
|
22404
22403
|
const [, r, n] = e, s = hr.fromParts(parseInt(r, 10), parseInt(n, 10), 0, 0);
|
|
22405
22404
|
if (s !== null) return s;
|
|
22406
22405
|
throw new C("InvalidTime");
|
|
22407
22406
|
}
|
|
22408
|
-
if (e =
|
|
22407
|
+
if (e = BN.exec(t), e !== null) {
|
|
22409
22408
|
const [, r, n, s, i] = e, u = hr.fromParts(parseInt(r, 10), parseInt(n, 10), parseInt(s, 10), parseInt(i, 10));
|
|
22410
22409
|
if (u !== null) return u;
|
|
22411
22410
|
throw new C("InvalidTime");
|
|
@@ -22413,23 +22412,23 @@ function Yc(t) {
|
|
|
22413
22412
|
throw new C("InvalidTime");
|
|
22414
22413
|
}
|
|
22415
22414
|
function ei(t, e) {
|
|
22416
|
-
let r =
|
|
22415
|
+
let r = qN.exec(t);
|
|
22417
22416
|
if (r !== null) {
|
|
22418
22417
|
const [, n, s, i, u, l, c, p] = r, _ = Z.fromObject({ year: parseInt(n, 10), month: parseInt(s, 10), day: parseInt(i, 10), hour: parseInt(u, 10), minute: parseInt(l, 10), second: parseInt(c, 10), millisecond: p ? parseInt(p.replace(".", ""), 10) : 0 }, { zone: ff(e) });
|
|
22419
22418
|
if (_.isValid === !1) throw new C("InvalidTimeStamp");
|
|
22420
22419
|
return _;
|
|
22421
22420
|
}
|
|
22422
|
-
if (r =
|
|
22421
|
+
if (r = HN.exec(t), r !== null) {
|
|
22423
22422
|
const [, n, s, i, u, l, c, p, _, y, v] = r, S = Qr.fromParts(parseInt(n, 10), parseInt(s, 10), parseInt(i, 10), parseInt(u, 10), parseInt(l, 10), parseInt(c, 10), p ? parseInt(p.replace(".", ""), 10) : 0, _ === "-", parseInt(y, 10), parseInt(v, 10));
|
|
22424
22423
|
if (S.isValid === !1) throw new C("InvalidTimeStamp");
|
|
22425
22424
|
return S;
|
|
22426
22425
|
}
|
|
22427
|
-
if (r =
|
|
22426
|
+
if (r = YN.exec(t), r !== null) {
|
|
22428
22427
|
const [, n, s, i, u, l, c, p, _] = r, y = Qr.fromParts(parseInt(n, 10), parseInt(s, 10), parseInt(i, 10), parseInt(u, 10), parseInt(l, 10), 0, 0, c === "-", parseInt(p, 10), parseInt(_, 10));
|
|
22429
22428
|
if (y.isValid === !1) throw new C("InvalidTimeStamp");
|
|
22430
22429
|
return y;
|
|
22431
22430
|
}
|
|
22432
|
-
if (r =
|
|
22431
|
+
if (r = ZN.exec(t), r !== null) {
|
|
22433
22432
|
const [, n, s, i, u, l] = r, c = Z.fromObject({ year: parseInt(n, 10), month: parseInt(s, 10), day: parseInt(i, 10), hour: parseInt(u, 10), minute: parseInt(l, 10), second: 0 }, { zone: ff(e) });
|
|
22434
22433
|
if (c.isValid === !1) throw new C("InvalidTimeStamp");
|
|
22435
22434
|
return c;
|
|
@@ -22453,30 +22452,30 @@ function $d(t, e) {
|
|
|
22453
22452
|
return u;
|
|
22454
22453
|
}
|
|
22455
22454
|
const G2 = new Float32Array(1), Ac = new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));
|
|
22456
|
-
function
|
|
22455
|
+
function XN(t) {
|
|
22457
22456
|
return Ac.setFloat64(0, t), Ac.getBigInt64(0);
|
|
22458
22457
|
}
|
|
22459
|
-
function
|
|
22458
|
+
function JN(t) {
|
|
22460
22459
|
return Ac.setBigInt64(0, t), Ac.getFloat64(0);
|
|
22461
22460
|
}
|
|
22462
22461
|
const Rf = 1000000n;
|
|
22463
|
-
|
|
22464
|
-
function
|
|
22465
|
-
const e =
|
|
22462
|
+
QN(1);
|
|
22463
|
+
function QN(t) {
|
|
22464
|
+
const e = XN(t = Math.abs(t)), r = JN(e <= Rf ? Rf : e - Rf);
|
|
22466
22465
|
return Math.abs(t - r);
|
|
22467
22466
|
}
|
|
22468
|
-
function
|
|
22467
|
+
function KN(t) {
|
|
22469
22468
|
return G2[0] = t, G2[0];
|
|
22470
22469
|
}
|
|
22471
|
-
|
|
22472
|
-
function
|
|
22470
|
+
KN(34028234663852886e22);
|
|
22471
|
+
function eE(t, e, r) {
|
|
22473
22472
|
if (r === void 0 || +r == 0) return Math[t](e);
|
|
22474
22473
|
if (e = +e, r = +r, isNaN(e) || typeof r != "number" || r % 1 != 0) return NaN;
|
|
22475
22474
|
let n = e.toString().split("e");
|
|
22476
22475
|
return n = (e = Math[t](+(n[0] + "e" + (n[1] ? +n[1] - r : -r)))).toString().split("e"), +(n[0] + "e" + (n[1] ? +n[1] + r : r));
|
|
22477
22476
|
}
|
|
22478
|
-
const
|
|
22479
|
-
function
|
|
22477
|
+
const tE = 321408e5, rE = 26784e5, nE = 864e5, sE = 36e5, iE = 6e4;
|
|
22478
|
+
function oE(t) {
|
|
22480
22479
|
switch (t) {
|
|
22481
22480
|
case "<>":
|
|
22482
22481
|
case "=":
|
|
@@ -22509,12 +22508,12 @@ function rr(t, e, r) {
|
|
|
22509
22508
|
if (t == null || e == null) return null;
|
|
22510
22509
|
if (qt(t)) {
|
|
22511
22510
|
if (qt(e)) return Xr(t, e, r);
|
|
22512
|
-
if (Et(e)) return
|
|
22511
|
+
if (Et(e)) return aE(t, e, r);
|
|
22513
22512
|
if (ed(e)) throw new C("InvalidOperator");
|
|
22514
22513
|
if (Je(e)) throw new C("InvalidOperator");
|
|
22515
22514
|
} else if (Et(t)) {
|
|
22516
|
-
if (qt(e)) return
|
|
22517
|
-
if (Et(e)) return
|
|
22515
|
+
if (qt(e)) return uE(t, e, r);
|
|
22516
|
+
if (Et(e)) return lE(t, e, r);
|
|
22518
22517
|
if (Ge(e)) throw new C("InvalidOperator");
|
|
22519
22518
|
if (Je(e)) throw new C("InvalidOperator");
|
|
22520
22519
|
if (et(e)) throw new C("InvalidOperator");
|
|
@@ -22527,14 +22526,14 @@ function rr(t, e, r) {
|
|
|
22527
22526
|
return Xr(Ll(t), Ll(e), r);
|
|
22528
22527
|
}
|
|
22529
22528
|
if (Et(e)) throw new C("InvalidOperator");
|
|
22530
|
-
if (Je(e)) return
|
|
22529
|
+
if (Je(e)) return fE(t, e, r);
|
|
22531
22530
|
if (et(e)) throw new C("InvalidOperator");
|
|
22532
22531
|
if (qt(e)) throw new C("InvalidOperator");
|
|
22533
22532
|
} else if (Je(t)) {
|
|
22534
|
-
if (He(e)) return
|
|
22535
|
-
if (Ge(e)) return
|
|
22533
|
+
if (He(e)) return mE(t, e, r);
|
|
22534
|
+
if (Ge(e)) return dE(t, e, r);
|
|
22536
22535
|
if (Et(e)) throw new C("InvalidOperator");
|
|
22537
|
-
if (Je(e)) return
|
|
22536
|
+
if (Je(e)) return cE(t, e, r);
|
|
22538
22537
|
if (et(e)) throw new C("InvalidOperator");
|
|
22539
22538
|
if (qt(e)) throw new C("InvalidOperator");
|
|
22540
22539
|
} else if (et(t)) {
|
|
@@ -22546,7 +22545,7 @@ function rr(t, e, r) {
|
|
|
22546
22545
|
} else if (He(t)) {
|
|
22547
22546
|
if (If(e)) return Z.isDateTime(e) && As(e.zone) ? Al(t, e, r) : Xr(Ll(t), Ll(e), r);
|
|
22548
22547
|
if (Et(e)) throw new C("InvalidOperator");
|
|
22549
|
-
if (Je(e)) return
|
|
22548
|
+
if (Je(e)) return hE(t, e, r);
|
|
22550
22549
|
if (et(e)) throw new C("InvalidOperator");
|
|
22551
22550
|
if (qt(e)) throw new C("InvalidOperator");
|
|
22552
22551
|
}
|
|
@@ -22581,7 +22580,7 @@ function Xr(t, e, r) {
|
|
|
22581
22580
|
return t <= e;
|
|
22582
22581
|
}
|
|
22583
22582
|
}
|
|
22584
|
-
function
|
|
22583
|
+
function aE(t, e, r) {
|
|
22585
22584
|
const n = parseFloat(e);
|
|
22586
22585
|
if (!isNaN(n)) return Xr(t, n, r);
|
|
22587
22586
|
const s = t.toString();
|
|
@@ -22600,7 +22599,7 @@ function uE(t, e, r) {
|
|
|
22600
22599
|
return s <= e;
|
|
22601
22600
|
}
|
|
22602
22601
|
}
|
|
22603
|
-
function
|
|
22602
|
+
function uE(t, e, r) {
|
|
22604
22603
|
const n = parseFloat(t);
|
|
22605
22604
|
if (!isNaN(n)) return Xr(n, e, r);
|
|
22606
22605
|
const s = e.toString();
|
|
@@ -22619,7 +22618,7 @@ function lE(t, e, r) {
|
|
|
22619
22618
|
return t <= s;
|
|
22620
22619
|
}
|
|
22621
22620
|
}
|
|
22622
|
-
function
|
|
22621
|
+
function lE(t, e, r) {
|
|
22623
22622
|
switch (r) {
|
|
22624
22623
|
case "<>":
|
|
22625
22624
|
return t !== e;
|
|
@@ -22635,7 +22634,7 @@ function cE(t, e, r) {
|
|
|
22635
22634
|
return t <= e;
|
|
22636
22635
|
}
|
|
22637
22636
|
}
|
|
22638
|
-
function
|
|
22637
|
+
function cE(t, e, r) {
|
|
22639
22638
|
const n = t.compare(e);
|
|
22640
22639
|
switch (r) {
|
|
22641
22640
|
case "<>":
|
|
@@ -22652,19 +22651,19 @@ function fE(t, e, r) {
|
|
|
22652
22651
|
return n <= 0;
|
|
22653
22652
|
}
|
|
22654
22653
|
}
|
|
22655
|
-
function
|
|
22654
|
+
function fE(t, e, r) {
|
|
22656
22655
|
const n = e.toDateTimeLuxon(t.zone);
|
|
22657
22656
|
return Xr((t = t.startOf("day")).toMillis(), n.toMillis(), r);
|
|
22658
22657
|
}
|
|
22659
|
-
function
|
|
22658
|
+
function hE(t, e, r) {
|
|
22660
22659
|
const n = e.toDateTimeLuxon(t.toDateTime().zone);
|
|
22661
22660
|
return Xr((t = t.startOfDay()).toMilliseconds(), n.toMillis(), r);
|
|
22662
22661
|
}
|
|
22663
|
-
function
|
|
22662
|
+
function dE(t, e, r) {
|
|
22664
22663
|
const n = t.toDateTimeLuxon(e.zone);
|
|
22665
22664
|
return e = e.startOf("day"), Xr(n.toMillis(), e.toMillis(), r);
|
|
22666
22665
|
}
|
|
22667
|
-
function
|
|
22666
|
+
function mE(t, e, r) {
|
|
22668
22667
|
const n = t.toDateTimeLuxon(e.toDateTime().zone);
|
|
22669
22668
|
return e = e.startOfDay(), Xr(n.toMillis(), e.toMilliseconds(), r);
|
|
22670
22669
|
}
|
|
@@ -22687,9 +22686,9 @@ function Al(t, e, r) {
|
|
|
22687
22686
|
}
|
|
22688
22687
|
}
|
|
22689
22688
|
function W2(t) {
|
|
22690
|
-
return t.year *
|
|
22689
|
+
return t.year * tE + t.month * rE + t.day * nE + t.hour * sE + t.minute * iE + 1e3 * t.second + t.millisecond;
|
|
22691
22690
|
}
|
|
22692
|
-
function
|
|
22691
|
+
function pE(t, e, r, n) {
|
|
22693
22692
|
const s = ei(n, e);
|
|
22694
22693
|
let i;
|
|
22695
22694
|
if (Qr.isTimestampOffset(s)) if (As(e)) {
|
|
@@ -22705,7 +22704,7 @@ function Fd(t, e, r) {
|
|
|
22705
22704
|
if (e.length < n.minParams || e.length > n.maxParams) throw new C("InvalidParameterCount", { name: t.toUpperCase() });
|
|
22706
22705
|
return n.evaluate(e, r);
|
|
22707
22706
|
}
|
|
22708
|
-
function
|
|
22707
|
+
function gE(t, e) {
|
|
22709
22708
|
const r = c9[t.toLowerCase()];
|
|
22710
22709
|
return r != null && e >= r.minParams && e <= r.maxParams;
|
|
22711
22710
|
}
|
|
@@ -22715,7 +22714,7 @@ function Cf(t) {
|
|
|
22715
22714
|
function l9(t) {
|
|
22716
22715
|
return Je(t) || et(t) ? t.toString() : He(t) ? t.toSQLValue() : Ge(t) ? t.millisecond === 0 ? t.toFormat("yyyy-LL-dd HH:mm:ss") : t.toSQL({ includeOffset: !1 }) : Sr(t) ? l9(Z.fromJSDate(t)) : t.toString();
|
|
22717
22716
|
}
|
|
22718
|
-
function
|
|
22717
|
+
function _E(t) {
|
|
22719
22718
|
if (Sr(t)) return Tr.fromDateJS(t);
|
|
22720
22719
|
if (Ge(t)) return Tr.fromParts(t.year, t.month, t.day);
|
|
22721
22720
|
if (Je(t)) return t;
|
|
@@ -22728,7 +22727,7 @@ function yE(t) {
|
|
|
22728
22727
|
}
|
|
22729
22728
|
throw new C("CannotCastValue");
|
|
22730
22729
|
}
|
|
22731
|
-
function
|
|
22730
|
+
function yE(t, e) {
|
|
22732
22731
|
if (Sr(t)) return Hc(t, e);
|
|
22733
22732
|
if (Ge(t)) return t;
|
|
22734
22733
|
if (Je(t)) return t.toDateTimeLuxon("unknown");
|
|
@@ -22737,7 +22736,7 @@ function bE(t, e) {
|
|
|
22737
22736
|
if (Et(t)) return ei(t, "unknown");
|
|
22738
22737
|
throw new C("CannotCastValue");
|
|
22739
22738
|
}
|
|
22740
|
-
function
|
|
22739
|
+
function bE(t) {
|
|
22741
22740
|
if (Sr(t)) return hr.fromDateJS(t);
|
|
22742
22741
|
if (Ge(t)) return hr.fromDateTime(t);
|
|
22743
22742
|
if (Je(t)) throw new C("CannotCastValue");
|
|
@@ -22869,7 +22868,7 @@ const c9 = { extract: { minParams: 2, maxParams: 2, evaluate: ([t, e]) => {
|
|
|
22869
22868
|
} }, abs: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.abs(t[0]) }, ceiling: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.ceil(t[0]) }, floor: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.floor(t[0]) }, log: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.log(t[0]) }, log10: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.log(t[0]) * Math.LOG10E }, sin: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.sin(t[0]) }, cos: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.cos(t[0]) }, tan: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.tan(t[0]) }, asin: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.asin(t[0]) }, acos: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.acos(t[0]) }, atan: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.atan(t[0]) }, sign: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : t[0] > 0 ? 1 : t[0] < 0 ? -1 : 0 }, power: { minParams: 2, maxParams: 2, evaluate: (t) => t[0] == null || t[1] == null ? null : t[0] ** t[1] }, mod: { minParams: 2, maxParams: 2, evaluate: (t) => t[0] == null || t[1] == null ? null : t[0] % t[1] }, round: { minParams: 1, maxParams: 2, evaluate: (t) => {
|
|
22870
22869
|
const e = t[0], r = t.length === 2 ? 10 ** t[1] : 1;
|
|
22871
22870
|
return e == null ? null : Math.round(e * r) / r;
|
|
22872
|
-
} }, truncate: { minParams: 1, maxParams: 2, evaluate: (t) => t[0] == null ? null : t.length === 1 || t[1] === 0 ? Math.trunc(t[0]) :
|
|
22871
|
+
} }, truncate: { minParams: 1, maxParams: 2, evaluate: (t) => t[0] == null ? null : t.length === 1 || t[1] === 0 ? Math.trunc(t[0]) : eE("trunc", t[0], -Number(t[1])) }, char_length: { minParams: 1, maxParams: 1, evaluate: (t) => Et(t[0]) ? t[0].length : 0 }, concat: { minParams: 1, maxParams: 1 / 0, evaluate: (t) => {
|
|
22873
22872
|
let e = "";
|
|
22874
22873
|
for (let r = 0; r < t.length; r++) {
|
|
22875
22874
|
if (t[r] == null) return null;
|
|
@@ -22904,11 +22903,11 @@ const c9 = { extract: { minParams: 2, maxParams: 2, evaluate: ([t, e]) => {
|
|
|
22904
22903
|
return s;
|
|
22905
22904
|
}
|
|
22906
22905
|
case "time":
|
|
22907
|
-
return
|
|
22906
|
+
return bE(r);
|
|
22908
22907
|
case "date":
|
|
22909
|
-
return
|
|
22908
|
+
return _E(r);
|
|
22910
22909
|
case "timestamp":
|
|
22911
|
-
return
|
|
22910
|
+
return yE(r, e);
|
|
22912
22911
|
case "varchar": {
|
|
22913
22912
|
const s = l9(r);
|
|
22914
22913
|
if (s.length > n.size) throw new C("CannotCastValue");
|
|
@@ -22923,72 +22922,72 @@ function f9(t, e, r, n) {
|
|
|
22923
22922
|
if (e === null || r === null) return null;
|
|
22924
22923
|
if (qt(e)) {
|
|
22925
22924
|
if (qt(r)) return Ud(e, r, t);
|
|
22926
|
-
if (_n(r)) return
|
|
22927
|
-
if (et(r)) return
|
|
22928
|
-
if (Je(r)) return
|
|
22929
|
-
if (He(r)) return
|
|
22930
|
-
if (Ge(r)) return
|
|
22931
|
-
if (Et(r)) return
|
|
22925
|
+
if (_n(r)) return PE(e, r, t);
|
|
22926
|
+
if (et(r)) return $E();
|
|
22927
|
+
if (Je(r)) return FE();
|
|
22928
|
+
if (He(r)) return DE();
|
|
22929
|
+
if (Ge(r)) return CE();
|
|
22930
|
+
if (Et(r)) return UE(e, r, t);
|
|
22932
22931
|
throw new C("InvalidOperator");
|
|
22933
22932
|
}
|
|
22934
22933
|
if (Je(e)) {
|
|
22935
|
-
if (qt(r)) return
|
|
22936
|
-
if (_n(r)) return
|
|
22937
|
-
if (et(r)) return
|
|
22938
|
-
if (Je(r)) return
|
|
22939
|
-
if (He(r)) return
|
|
22940
|
-
if (Ge(r)) return
|
|
22941
|
-
if (Et(r)) return
|
|
22934
|
+
if (qt(r)) return RE(e, r, t);
|
|
22935
|
+
if (_n(r)) return LE(e, r, t);
|
|
22936
|
+
if (et(r)) return HE();
|
|
22937
|
+
if (Je(r)) return qE(e, r, t);
|
|
22938
|
+
if (He(r)) return BE(e, r, t);
|
|
22939
|
+
if (Ge(r)) return WE(e, r, t);
|
|
22940
|
+
if (Et(r)) return oT();
|
|
22942
22941
|
throw new C("InvalidOperator");
|
|
22943
22942
|
}
|
|
22944
22943
|
if (et(e)) {
|
|
22945
|
-
if (qt(r)) return
|
|
22946
|
-
if (_n(r)) return
|
|
22947
|
-
if (et(r)) return
|
|
22948
|
-
if (Je(r)) return
|
|
22949
|
-
if (He(r)) return
|
|
22950
|
-
if (Ge(r)) return
|
|
22951
|
-
if (Et(r)) return
|
|
22944
|
+
if (qt(r)) return IE(e, r, t);
|
|
22945
|
+
if (_n(r)) return xE(e, r, t);
|
|
22946
|
+
if (et(r)) return tT();
|
|
22947
|
+
if (Je(r)) return KE();
|
|
22948
|
+
if (He(r)) return eT();
|
|
22949
|
+
if (Ge(r)) return QE();
|
|
22950
|
+
if (Et(r)) return aT();
|
|
22952
22951
|
throw new C("InvalidOperator");
|
|
22953
22952
|
}
|
|
22954
22953
|
if (_n(e)) {
|
|
22955
|
-
if (qt(r)) return
|
|
22956
|
-
if (_n(r)) return
|
|
22957
|
-
if (et(r)) return
|
|
22958
|
-
if (Je(r)) return
|
|
22959
|
-
if (He(r)) return
|
|
22960
|
-
if (Ge(r)) return
|
|
22961
|
-
if (Et(r)) return
|
|
22954
|
+
if (qt(r)) return TE(e, r, t);
|
|
22955
|
+
if (_n(r)) return EE(e, r, t);
|
|
22956
|
+
if (et(r)) return vE(e, r, t);
|
|
22957
|
+
if (Je(r)) return SE(e, r, t);
|
|
22958
|
+
if (He(r)) return NE(e, r, t);
|
|
22959
|
+
if (Ge(r)) return wE(e, r, t);
|
|
22960
|
+
if (Et(r)) return jE();
|
|
22962
22961
|
throw new C("InvalidOperator");
|
|
22963
22962
|
}
|
|
22964
22963
|
if (Ge(e)) {
|
|
22965
|
-
if (qt(r)) return
|
|
22966
|
-
if (_n(r)) return
|
|
22967
|
-
if (et(r)) return
|
|
22968
|
-
if (Je(r)) return
|
|
22969
|
-
if (He(r)) return
|
|
22970
|
-
if (Ge(r)) return
|
|
22971
|
-
if (Et(r)) return
|
|
22964
|
+
if (qt(r)) return OE(e, r, t);
|
|
22965
|
+
if (_n(r)) return AE(e, r, t);
|
|
22966
|
+
if (et(r)) return iT();
|
|
22967
|
+
if (Je(r)) return nT(e, r, t);
|
|
22968
|
+
if (He(r)) return sT(e, r, t);
|
|
22969
|
+
if (Ge(r)) return rT(e, r, t);
|
|
22970
|
+
if (Et(r)) return uT();
|
|
22972
22971
|
throw new C("InvalidOperator");
|
|
22973
22972
|
}
|
|
22974
22973
|
if (He(e)) {
|
|
22975
|
-
if (qt(r)) return
|
|
22976
|
-
if (_n(r)) return
|
|
22977
|
-
if (et(r)) return
|
|
22978
|
-
if (Je(r)) return
|
|
22979
|
-
if (He(r)) return
|
|
22980
|
-
if (Ge(r)) return
|
|
22981
|
-
if (Et(r)) return
|
|
22974
|
+
if (qt(r)) return kE(e, r, t);
|
|
22975
|
+
if (_n(r)) return ME(e, r, t);
|
|
22976
|
+
if (et(r)) return YE();
|
|
22977
|
+
if (Je(r)) return ZE(e, r, t);
|
|
22978
|
+
if (He(r)) return JE(e, r, t);
|
|
22979
|
+
if (Ge(r)) return XE(e, r, t);
|
|
22980
|
+
if (Et(r)) return lT();
|
|
22982
22981
|
throw new C("InvalidOperator");
|
|
22983
22982
|
}
|
|
22984
22983
|
if (Et(e)) {
|
|
22985
|
-
if (qt(r)) return
|
|
22986
|
-
if (_n(r)) return
|
|
22987
|
-
if (et(r)) return
|
|
22988
|
-
if (Je(r)) return
|
|
22989
|
-
if (He(r)) return
|
|
22990
|
-
if (Ge(r)) return
|
|
22991
|
-
if (Et(r)) return
|
|
22984
|
+
if (qt(r)) return VE(e, r, t);
|
|
22985
|
+
if (_n(r)) return GE();
|
|
22986
|
+
if (et(r)) return cT();
|
|
22987
|
+
if (Je(r)) return fT();
|
|
22988
|
+
if (He(r)) return dT();
|
|
22989
|
+
if (Ge(r)) return hT();
|
|
22990
|
+
if (Et(r)) return zE(e, r, t);
|
|
22992
22991
|
throw new C("InvalidOperator");
|
|
22993
22992
|
}
|
|
22994
22993
|
throw new C("InvalidOperator");
|
|
@@ -23006,7 +23005,7 @@ function Ud(t, e, r) {
|
|
|
23006
23005
|
}
|
|
23007
23006
|
throw new C("InvalidOperator");
|
|
23008
23007
|
}
|
|
23009
|
-
function
|
|
23008
|
+
function wE(t, e, r) {
|
|
23010
23009
|
switch (r) {
|
|
23011
23010
|
case "+":
|
|
23012
23011
|
return e.plus({ milliseconds: t.valueInMilliseconds() });
|
|
@@ -23015,15 +23014,15 @@ function vE(t, e, r) {
|
|
|
23015
23014
|
}
|
|
23016
23015
|
throw new C("InvalidOperator");
|
|
23017
23016
|
}
|
|
23018
|
-
function
|
|
23017
|
+
function vE(t, e, r) {
|
|
23019
23018
|
if (r === "+") return e.plus("milliseconds", t.valueInMilliseconds());
|
|
23020
23019
|
throw new C("InvalidOperator");
|
|
23021
23020
|
}
|
|
23022
|
-
function
|
|
23021
|
+
function SE(t, e, r) {
|
|
23023
23022
|
if (r === "+") return e.plus("milliseconds", t.valueInMilliseconds());
|
|
23024
23023
|
throw new C("InvalidOperator");
|
|
23025
23024
|
}
|
|
23026
|
-
function
|
|
23025
|
+
function xE(t, e, r) {
|
|
23027
23026
|
switch (r) {
|
|
23028
23027
|
case "+":
|
|
23029
23028
|
return t.plus("milliseconds", e.valueInMilliseconds());
|
|
@@ -23032,11 +23031,11 @@ function NE(t, e, r) {
|
|
|
23032
23031
|
}
|
|
23033
23032
|
throw new C("InvalidOperator");
|
|
23034
23033
|
}
|
|
23035
|
-
function
|
|
23034
|
+
function NE(t, e, r) {
|
|
23036
23035
|
if (r === "+") return e.addMilliseconds(t.valueInMilliseconds());
|
|
23037
23036
|
throw new C("InvalidOperator");
|
|
23038
23037
|
}
|
|
23039
|
-
function
|
|
23038
|
+
function EE(t, e, r) {
|
|
23040
23039
|
switch (r) {
|
|
23041
23040
|
case "+":
|
|
23042
23041
|
return kt.createFromMilliseconds(t.valueInMilliseconds() + e.valueInMilliseconds());
|
|
@@ -23049,7 +23048,7 @@ function TE(t, e, r) {
|
|
|
23049
23048
|
}
|
|
23050
23049
|
throw new C("InvalidOperator");
|
|
23051
23050
|
}
|
|
23052
|
-
function
|
|
23051
|
+
function TE(t, e, r) {
|
|
23053
23052
|
switch (r) {
|
|
23054
23053
|
case "+":
|
|
23055
23054
|
return kt.createFromMilliseconds(t.valueInMilliseconds() + e);
|
|
@@ -23062,7 +23061,7 @@ function PE(t, e, r) {
|
|
|
23062
23061
|
}
|
|
23063
23062
|
throw new C("InvalidOperator");
|
|
23064
23063
|
}
|
|
23065
|
-
function
|
|
23064
|
+
function PE(t, e, r) {
|
|
23066
23065
|
switch (r) {
|
|
23067
23066
|
case "+":
|
|
23068
23067
|
return kt.createFromMilliseconds(t + e.valueInMilliseconds());
|
|
@@ -23075,7 +23074,7 @@ function LE(t, e, r) {
|
|
|
23075
23074
|
}
|
|
23076
23075
|
throw new C("InvalidOperator");
|
|
23077
23076
|
}
|
|
23078
|
-
function
|
|
23077
|
+
function LE(t, e, r) {
|
|
23079
23078
|
switch (r) {
|
|
23080
23079
|
case "+":
|
|
23081
23080
|
return t.plus("milliseconds", e.valueInMilliseconds());
|
|
@@ -23084,7 +23083,7 @@ function AE(t, e, r) {
|
|
|
23084
23083
|
}
|
|
23085
23084
|
throw new C("InvalidOperator");
|
|
23086
23085
|
}
|
|
23087
|
-
function
|
|
23086
|
+
function AE(t, e, r) {
|
|
23088
23087
|
switch (r) {
|
|
23089
23088
|
case "+":
|
|
23090
23089
|
return t.plus({ milliseconds: e.valueInMilliseconds() });
|
|
@@ -23093,7 +23092,7 @@ function ME(t, e, r) {
|
|
|
23093
23092
|
}
|
|
23094
23093
|
throw new C("InvalidOperator");
|
|
23095
23094
|
}
|
|
23096
|
-
function
|
|
23095
|
+
function ME(t, e, r) {
|
|
23097
23096
|
switch (r) {
|
|
23098
23097
|
case "+":
|
|
23099
23098
|
return t.addMilliseconds(e.valueInMilliseconds());
|
|
@@ -23102,7 +23101,7 @@ function OE(t, e, r) {
|
|
|
23102
23101
|
}
|
|
23103
23102
|
throw new C("InvalidOperator");
|
|
23104
23103
|
}
|
|
23105
|
-
function
|
|
23104
|
+
function OE(t, e, r) {
|
|
23106
23105
|
const n = 1e3 * e * 24 * 60 * 60;
|
|
23107
23106
|
switch (r) {
|
|
23108
23107
|
case "+":
|
|
@@ -23112,7 +23111,7 @@ function RE(t, e, r) {
|
|
|
23112
23111
|
}
|
|
23113
23112
|
throw new C("InvalidOperator");
|
|
23114
23113
|
}
|
|
23115
|
-
function
|
|
23114
|
+
function RE(t, e, r) {
|
|
23116
23115
|
const n = 1e3 * e * 24 * 60 * 60;
|
|
23117
23116
|
switch (r) {
|
|
23118
23117
|
case "+":
|
|
@@ -23122,7 +23121,7 @@ function IE(t, e, r) {
|
|
|
23122
23121
|
}
|
|
23123
23122
|
throw new C("InvalidOperator");
|
|
23124
23123
|
}
|
|
23125
|
-
function
|
|
23124
|
+
function IE(t, e, r) {
|
|
23126
23125
|
const n = 1e3 * e * 24 * 60 * 60;
|
|
23127
23126
|
switch (r) {
|
|
23128
23127
|
case "+":
|
|
@@ -23132,10 +23131,10 @@ function CE(t, e, r) {
|
|
|
23132
23131
|
}
|
|
23133
23132
|
throw new C("InvalidOperator");
|
|
23134
23133
|
}
|
|
23135
|
-
function
|
|
23134
|
+
function CE(t, e, r) {
|
|
23136
23135
|
throw new C("InvalidOperator");
|
|
23137
23136
|
}
|
|
23138
|
-
function
|
|
23137
|
+
function kE(t, e, r) {
|
|
23139
23138
|
const n = 1e3 * e * 24 * 60 * 60;
|
|
23140
23139
|
switch (r) {
|
|
23141
23140
|
case "+":
|
|
@@ -23145,6 +23144,9 @@ function DE(t, e, r) {
|
|
|
23145
23144
|
}
|
|
23146
23145
|
throw new C("InvalidOperator");
|
|
23147
23146
|
}
|
|
23147
|
+
function DE(t, e, r) {
|
|
23148
|
+
throw new C("InvalidOperator");
|
|
23149
|
+
}
|
|
23148
23150
|
function $E(t, e, r) {
|
|
23149
23151
|
throw new C("InvalidOperator");
|
|
23150
23152
|
}
|
|
@@ -23152,56 +23154,56 @@ function FE(t, e, r) {
|
|
|
23152
23154
|
throw new C("InvalidOperator");
|
|
23153
23155
|
}
|
|
23154
23156
|
function UE(t, e, r) {
|
|
23155
|
-
throw new C("InvalidOperator");
|
|
23156
|
-
}
|
|
23157
|
-
function VE(t, e, r) {
|
|
23158
23157
|
const n = parseFloat(e);
|
|
23159
23158
|
if (isNaN(n)) throw new C("InvalidOperator");
|
|
23160
23159
|
return Ud(t, n, r);
|
|
23161
23160
|
}
|
|
23162
|
-
function
|
|
23161
|
+
function VE(t, e, r) {
|
|
23163
23162
|
const n = parseFloat(t);
|
|
23164
23163
|
if (isNaN(n)) throw new C("InvalidOperator");
|
|
23165
23164
|
return Ud(n, e, r);
|
|
23166
23165
|
}
|
|
23167
|
-
function
|
|
23166
|
+
function zE(t, e, r) {
|
|
23168
23167
|
if (r === "+") return t + e;
|
|
23169
23168
|
throw new C("InvalidOperator");
|
|
23170
23169
|
}
|
|
23170
|
+
function jE(t, e, r) {
|
|
23171
|
+
throw new C("InvalidOperator");
|
|
23172
|
+
}
|
|
23171
23173
|
function GE(t, e, r) {
|
|
23172
23174
|
throw new C("InvalidOperator");
|
|
23173
23175
|
}
|
|
23174
23176
|
function WE(t, e, r) {
|
|
23177
|
+
if (r === "-") return t.toDateTimeLuxon(e.zone).diff(e).as("days");
|
|
23175
23178
|
throw new C("InvalidOperator");
|
|
23176
23179
|
}
|
|
23177
23180
|
function BE(t, e, r) {
|
|
23178
|
-
if (r === "-") return t.toDateTimeLuxon(e.zone).diff(e).as("days");
|
|
23181
|
+
if (r === "-") return t.toDateTimeLuxon(e.toDateTime().zone).diff(e.toDateTime()).as("days");
|
|
23179
23182
|
throw new C("InvalidOperator");
|
|
23180
23183
|
}
|
|
23181
23184
|
function qE(t, e, r) {
|
|
23182
|
-
if (r === "-") return t.toDateTimeLuxon(
|
|
23185
|
+
if (r === "-") return t.toDateTimeLuxon("UTC").diff(e.toDateTimeLuxon("UTC")).as("days");
|
|
23183
23186
|
throw new C("InvalidOperator");
|
|
23184
23187
|
}
|
|
23185
23188
|
function HE(t, e, r) {
|
|
23186
|
-
if (r === "-") return t.toDateTimeLuxon("UTC").diff(e.toDateTimeLuxon("UTC")).as("days");
|
|
23187
23189
|
throw new C("InvalidOperator");
|
|
23188
23190
|
}
|
|
23189
23191
|
function YE(t, e, r) {
|
|
23190
23192
|
throw new C("InvalidOperator");
|
|
23191
23193
|
}
|
|
23192
23194
|
function ZE(t, e, r) {
|
|
23195
|
+
if (r === "-") return t.toDateTime().diff(e.toDateTimeLuxon(t.toDateTime().zone)).as("days");
|
|
23193
23196
|
throw new C("InvalidOperator");
|
|
23194
23197
|
}
|
|
23195
23198
|
function XE(t, e, r) {
|
|
23196
|
-
if (r === "-") return t.toDateTime().diff(e
|
|
23199
|
+
if (r === "-") return t.toDateTime().diff(e).as("days");
|
|
23197
23200
|
throw new C("InvalidOperator");
|
|
23198
23201
|
}
|
|
23199
23202
|
function JE(t, e, r) {
|
|
23200
|
-
if (r === "-") return t.toDateTime().diff(e).as("days");
|
|
23203
|
+
if (r === "-") return t.toDateTime().diff(e.toDateTime()).as("days");
|
|
23201
23204
|
throw new C("InvalidOperator");
|
|
23202
23205
|
}
|
|
23203
23206
|
function QE(t, e, r) {
|
|
23204
|
-
if (r === "-") return t.toDateTime().diff(e.toDateTime()).as("days");
|
|
23205
23207
|
throw new C("InvalidOperator");
|
|
23206
23208
|
}
|
|
23207
23209
|
function KE(t, e, r) {
|
|
@@ -23214,18 +23216,18 @@ function tT(t, e, r) {
|
|
|
23214
23216
|
throw new C("InvalidOperator");
|
|
23215
23217
|
}
|
|
23216
23218
|
function rT(t, e, r) {
|
|
23219
|
+
if (r === "-") return t.diff(e).as("days");
|
|
23217
23220
|
throw new C("InvalidOperator");
|
|
23218
23221
|
}
|
|
23219
23222
|
function nT(t, e, r) {
|
|
23220
|
-
if (r === "-") return t.diff(e).as("days");
|
|
23223
|
+
if (r === "-") return t.diff(e.toDateTimeLuxon(t.zone)).as("days");
|
|
23221
23224
|
throw new C("InvalidOperator");
|
|
23222
23225
|
}
|
|
23223
23226
|
function sT(t, e, r) {
|
|
23224
|
-
if (r === "-") return t.diff(e.
|
|
23227
|
+
if (r === "-") return t.diff(e.toDateTime()).as("days");
|
|
23225
23228
|
throw new C("InvalidOperator");
|
|
23226
23229
|
}
|
|
23227
23230
|
function iT(t, e, r) {
|
|
23228
|
-
if (r === "-") return t.diff(e.toDateTime()).as("days");
|
|
23229
23231
|
throw new C("InvalidOperator");
|
|
23230
23232
|
}
|
|
23231
23233
|
function oT(t, e, r) {
|
|
@@ -23252,9 +23254,6 @@ function hT(t, e, r) {
|
|
|
23252
23254
|
function dT(t, e, r) {
|
|
23253
23255
|
throw new C("InvalidOperator");
|
|
23254
23256
|
}
|
|
23255
|
-
function mT(t, e, r) {
|
|
23256
|
-
throw new C("InvalidOperator");
|
|
23257
|
-
}
|
|
23258
23257
|
function* Oi(t) {
|
|
23259
23258
|
if (t == null) return;
|
|
23260
23259
|
const e = [t];
|
|
@@ -23357,7 +23356,7 @@ let kf = class extends SyntaxError {
|
|
|
23357
23356
|
return "Expected " + _(e) + " but " + y(r) + " found.";
|
|
23358
23357
|
}
|
|
23359
23358
|
};
|
|
23360
|
-
function
|
|
23359
|
+
function mT(t, e) {
|
|
23361
23360
|
const r = {}, n = (e = e !== void 0 ? e : {}).grammarSource, s = { start: jd };
|
|
23362
23361
|
let i = jd;
|
|
23363
23362
|
const u = "!", l = "=", c = ">=", p = ">", _ = "<=", y = "<>", v = "!=", S = "||", E = "@", N = "'", k = "N'", W = "''", z = ".", U = "null", Q = "true", te = "false", fe = "in", F = "is", V = "like", q = "escape", ie = "not", _e = "and", j = "or", H = "between", ne = "from", ee = "for", ae = "substring", we = "extract", Te = "trim", tt = "position", at = "timestamp", Pr = "date", Kr = "time", ut = "leading", ti = "trailing", cn = "both", ri = "cast", ni = "as", Zc = "integer", Xc = "int", Jc = "smallint", Qc = "float", Kc = "real", e1 = "varchar", t1 = "to", r1 = "interval", n1 = "year", s1 = "timezone_hour", i1 = "timezone_minute", o1 = "month", lo = "day", Cn = "hour", a1 = "minute", u1 = "second", l1 = "dow", co = "doy", c1 = "week", f1 = "case", si = "end", h1 = "when", kn = "then", d1 = "else", fo = ",", m1 = "(", p1 = ")", ho = "`", g1 = /^[<-=]/, Dn = /^[+\-]/, mo = /^[*\/]/, po = /^[A-Za-z_\x80-\uFFFF]/, go = /^[A-Za-z0-9_]/, ii = /^[A-Za-z0-9_.\x80-\uFFFF]/, _o = /^["]/, oi = /^[^']/, yo = /^[0-9]/, bo = /^[eE]/, wo = /^[ \t\n\r]/, ai = /^[^`]/, vo = re("!", !1), So = re("=", !1), xo = re(">=", !1), No = re(">", !1), Eo = re("<=", !1), To = re("<>", !1), Po = pr([["<", "="]], !1, !1, !1), Lo = re("!=", !1), $n = pr(["+", "-"], !1, !1, !1), Ao = re("||", !1), Mo = pr(["*", "/"], !1, !1, !1), Oo = pr([["A", "Z"], ["a", "z"], "_", ["", ""]], !1, !1, !1), Ro = pr([["A", "Z"], ["a", "z"], ["0", "9"], "_"], !1, !1, !1), ui = pr([["A", "Z"], ["a", "z"], ["0", "9"], "_", ".", ["", ""]], !1, !1, !1), Io = pr(['"'], !1, !1, !1), Co = re("@", !1), li = re("'", !1), ko = re("N'", !1), ci = re("''", !1), fi = pr(["'"], !0, !1, !1), Do = re(".", !1), $o = pr([["0", "9"]], !1, !1, !1), Fo = pr(["e", "E"], !1, !1, !1), Uo = re("NULL", !0), Vo = re("TRUE", !0), zo = re("FALSE", !0), jo = re("IN", !0), Go = re("IS", !0), Wo = re("LIKE", !0), Bo = re("ESCAPE", !0), qo = re("NOT", !0), Ho = re("AND", !0), Yo = re("OR", !0), Zo = re("BETWEEN", !0), Xo = re("FROM", !0), Jo = re("FOR", !0), Qo = re("SUBSTRING", !0), Ko = re("EXTRACT", !0), ea = re("TRIM", !0), ta = re("POSITION", !0), ra = re("TIMESTAMP", !0), na = re("DATE", !0), sa = re("TIME", !0), ia = re("LEADING", !0), oa = re("TRAILING", !0), aa = re("BOTH", !0), ua = re("CAST", !0), la = re("AS", !0), ca = re("INTEGER", !0), fa = re("INT", !0), ha = re("SMALLINT", !0), da = re("FLOAT", !0), ma = re("REAL", !0), pa = re("VARCHAR", !0), ga = re("TO", !0), _a = re("INTERVAL", !0), ya = re("YEAR", !0), ba = re("TIMEZONE_HOUR", !0), wa = re("TIMEZONE_MINUTE", !0), va = re("MONTH", !0), Sa = re("DAY", !0), xa = re("HOUR", !0), Na = re("MINUTE", !0), Ea = re("SECOND", !0), Ta = re("DOW", !0), Pa = re("DOY", !0), La = re("WEEK", !0), Aa = re("CASE", !0), Ma = re("END", !0), Oa = re("WHEN", !0), Ra = re("THEN", !0), Ia = re("ELSE", !0), Ca = re(",", !1), ka = re("(", !1), Da = re(")", !1), $a = pr([" ", " ", `
|
|
@@ -23824,7 +23823,7 @@ function pT(t, e) {
|
|
|
23824
23823
|
function I9() {
|
|
23825
23824
|
return "ELSE";
|
|
23826
23825
|
}
|
|
23827
|
-
function
|
|
23826
|
+
function PT(a) {
|
|
23828
23827
|
return a;
|
|
23829
23828
|
}
|
|
23830
23829
|
function C9(a) {
|
|
@@ -24481,13 +24480,13 @@ function pT(t, e) {
|
|
|
24481
24480
|
}
|
|
24482
24481
|
return e.peg$library ? { peg$result: wi, peg$currPos: d, peg$FAILED: r, peg$maxFailExpected: Qu, peg$maxFailPos: Mr, peg$success: H1, peg$throw: H1 ? void 0 : N0 } : H1 ? wi : void N0();
|
|
24483
24482
|
}
|
|
24484
|
-
class
|
|
24483
|
+
class pT {
|
|
24485
24484
|
static parse(e) {
|
|
24486
|
-
return
|
|
24485
|
+
return mT(e);
|
|
24487
24486
|
}
|
|
24488
24487
|
}
|
|
24489
|
-
const
|
|
24490
|
-
class
|
|
24488
|
+
const gT = /* @__PURE__ */ new Set(["current_timestamp", "current_date", "current_time"]);
|
|
24489
|
+
class _T {
|
|
24491
24490
|
constructor(e) {
|
|
24492
24491
|
this.staticData = e;
|
|
24493
24492
|
}
|
|
@@ -24568,17 +24567,17 @@ function ke(t, ...e) {
|
|
|
24568
24567
|
function rt(t) {
|
|
24569
24568
|
return t === void 0 ? "void 0" : JSON.stringify(t);
|
|
24570
24569
|
}
|
|
24571
|
-
function
|
|
24570
|
+
function yT({ type: t, start: e, end: r }) {
|
|
24572
24571
|
return `{type: ${rt(t)}, start: ${td(e)}, end: ${td(r)}}`;
|
|
24573
24572
|
}
|
|
24574
24573
|
function td({ type: t, period: e, precision: r, secondary: n }) {
|
|
24575
24574
|
return JSON.stringify({ type: t, period: e, precision: r, secondary: n });
|
|
24576
24575
|
}
|
|
24577
|
-
function
|
|
24576
|
+
function bT({ type: t, size: e, withtimezone: r }) {
|
|
24578
24577
|
return JSON.stringify({ type: t, size: e, withtimezone: r });
|
|
24579
24578
|
}
|
|
24580
24579
|
const Df = "feature", B2 = "lookups", $f = "attributeAdapter", q2 = "fieldsIndex", Ss = "timeZone", H2 = "currentUser";
|
|
24581
|
-
class
|
|
24580
|
+
class wT {
|
|
24582
24581
|
constructor(e, r) {
|
|
24583
24582
|
this._parseTree = e, this._fieldsIndex = r, this._staticData = /* @__PURE__ */ Object.create(null), this._nextStaticDataId = 0, this._tempVars = /* @__PURE__ */ new Set(), this._nextTempVarId = 0;
|
|
24584
24583
|
}
|
|
@@ -24587,7 +24586,7 @@ class vT {
|
|
|
24587
24586
|
${this._tempVars.size > 0 ? `var ${Array.from(this._tempVars).join(", ")};` : ""}
|
|
24588
24587
|
return this.convertInterval(${e});
|
|
24589
24588
|
`;
|
|
24590
|
-
return new Function(Df, B2, $f, q2, Ss, H2, r).bind(new
|
|
24589
|
+
return new Function(Df, B2, $f, q2, Ss, H2, r).bind(new _T(this._staticData));
|
|
24591
24590
|
}
|
|
24592
24591
|
_storeStaticData(e) {
|
|
24593
24592
|
const r = "static$" + this._nextStaticDataId++;
|
|
@@ -24629,7 +24628,7 @@ class vT {
|
|
|
24629
24628
|
_compileNode(e) {
|
|
24630
24629
|
switch (e.type) {
|
|
24631
24630
|
case "interval":
|
|
24632
|
-
return ke("makeSqlInterval", this._compileNode(e.value), e.qualifier.type === "interval-qualifier" ?
|
|
24631
|
+
return ke("makeSqlInterval", this._compileNode(e.value), e.qualifier.type === "interval-qualifier" ? yT(e.qualifier) : td(e.qualifier), rt(e.op));
|
|
24633
24632
|
case "case-expression":
|
|
24634
24633
|
return e.format === "simple" ? this._compileSimpleCase(e) : this._compileSearchedCase(e);
|
|
24635
24634
|
case "parameter":
|
|
@@ -24712,7 +24711,7 @@ class vT {
|
|
|
24712
24711
|
case "column-reference":
|
|
24713
24712
|
return ke("featureValue", Df, rt(e.column), q2, $f);
|
|
24714
24713
|
case "data-type":
|
|
24715
|
-
return
|
|
24714
|
+
return bT(e.value);
|
|
24716
24715
|
case "function":
|
|
24717
24716
|
return ke("evaluateFunction", rt(e.name), this._compileNode(e.args), Ss);
|
|
24718
24717
|
}
|
|
@@ -24724,7 +24723,7 @@ class Vd {
|
|
|
24724
24723
|
return new Vd(e, r.fieldsIndex, r.timeZone ?? void 0, r.currentUser);
|
|
24725
24724
|
}
|
|
24726
24725
|
constructor(e, r, n = "UTC", s = null) {
|
|
24727
|
-
this.fieldsIndex = r, this.timeZone = n, this.currentUser = s, this.parameters = {}, this._compiledExecutor = null, this._hasDateFunctions = void 0, this.parseTree =
|
|
24726
|
+
this.fieldsIndex = r, this.timeZone = n, this.currentUser = s, this.parameters = {}, this._compiledExecutor = null, this._hasDateFunctions = void 0, this.parseTree = pT.parse(e);
|
|
24728
24727
|
const { isStandardized: i, isAggregate: u, currentUserRequired: l, referencedFieldNames: c } = this._extractExpressionInfo(r);
|
|
24729
24728
|
this._referencedFieldNames = c, this.isStandardized = i, this.isAggregate = u, this.currentUserRequired = l;
|
|
24730
24729
|
}
|
|
@@ -24757,7 +24756,7 @@ class Vd {
|
|
|
24757
24756
|
tryGetCompiledExecutor() {
|
|
24758
24757
|
if (this._compiledExecutor != null) return this._compiledExecutor;
|
|
24759
24758
|
if ($("esri-csp-restrictions")) return null;
|
|
24760
|
-
const e = new
|
|
24759
|
+
const e = new wT(this.parseTree, this.fieldsIndex);
|
|
24761
24760
|
return this._compiledExecutor = e.compile(), this._compiledExecutor;
|
|
24762
24761
|
}
|
|
24763
24762
|
calculateValueCompiled(e, r = Ri, n = this.currentUser) {
|
|
@@ -24772,7 +24771,7 @@ class Vd {
|
|
|
24772
24771
|
return s == null ? this.testFeature(e, r) : !!s(e, this.parameters, r, this.fieldsIndex, this.timeZone, n ?? null);
|
|
24773
24772
|
}
|
|
24774
24773
|
get hasDateFunctions() {
|
|
24775
|
-
return this._hasDateFunctions != null || (this._hasDateFunctions = M4(Oi(this.parseTree), (e) => e.type === "current-time" || e.type === "function" &&
|
|
24774
|
+
return this._hasDateFunctions != null || (this._hasDateFunctions = M4(Oi(this.parseTree), (e) => e.type === "current-time" || e.type === "function" && gT.has(e.name.toLowerCase()))), this._hasDateFunctions;
|
|
24776
24775
|
}
|
|
24777
24776
|
getFunctions() {
|
|
24778
24777
|
const e = /* @__PURE__ */ new Set();
|
|
@@ -24810,7 +24809,7 @@ class Vd {
|
|
|
24810
24809
|
break;
|
|
24811
24810
|
case "function": {
|
|
24812
24811
|
const { name: c, args: p } = l, _ = p.value.length;
|
|
24813
|
-
s && (s =
|
|
24812
|
+
s && (s = gE(c, _)), i === !1 && (i = V2(c, _));
|
|
24814
24813
|
break;
|
|
24815
24814
|
}
|
|
24816
24815
|
}
|
|
@@ -24919,7 +24918,7 @@ class Vd {
|
|
|
24919
24918
|
for (const y of s || []) _.push(this._evaluateNode(p, y, n, null, i));
|
|
24920
24919
|
c.push(_);
|
|
24921
24920
|
}
|
|
24922
|
-
return
|
|
24921
|
+
return VN(e.name, c);
|
|
24923
24922
|
}
|
|
24924
24923
|
const l = this._evaluateNode(e.args, r, n, s, i);
|
|
24925
24924
|
return Fd(e.name, l, this.timeZone);
|
|
@@ -24967,7 +24966,7 @@ function _9(t) {
|
|
|
24967
24966
|
return hr.fromDateTime(e);
|
|
24968
24967
|
}
|
|
24969
24968
|
const Y2 = "-[]/{}()*+?.\\^$|";
|
|
24970
|
-
function
|
|
24969
|
+
function vT(t, e) {
|
|
24971
24970
|
const r = e;
|
|
24972
24971
|
let n = "", s = 0;
|
|
24973
24972
|
for (let i = 0; i < t.length; i++) {
|
|
@@ -24983,7 +24982,7 @@ function ST(t, e) {
|
|
|
24983
24982
|
return new RegExp("^" + n + "$", "m");
|
|
24984
24983
|
}
|
|
24985
24984
|
function sd(t, e, r) {
|
|
24986
|
-
return t == null ? null :
|
|
24985
|
+
return t == null ? null : vT(e, r).test(t);
|
|
24987
24986
|
}
|
|
24988
24987
|
function y9(t, e, r) {
|
|
24989
24988
|
if ("comparisonData" in t) return t.comparisonData != null;
|
|
@@ -24993,17 +24992,17 @@ function y9(t, e, r) {
|
|
|
24993
24992
|
if (t.left.type === "column-reference" && t.right.type === "timestamp") n = t.left, s = t.right;
|
|
24994
24993
|
else {
|
|
24995
24994
|
if (t.left.type !== "timestamp" || t.right.type !== "column-reference") return !1;
|
|
24996
|
-
n = t.right, s = t.left, e =
|
|
24995
|
+
n = t.right, s = t.left, e = oE(e);
|
|
24997
24996
|
}
|
|
24998
24997
|
const i = r.get(n.column);
|
|
24999
24998
|
if (i?.type !== "esriFieldTypeDate" && i?.type !== "date") return !1;
|
|
25000
24999
|
const u = r.getTimeZone(i.name), l = u != null ? Ny(u) : ot.utcInstance;
|
|
25001
|
-
return !!l.isUniversal && (t.comparisonData =
|
|
25000
|
+
return !!l.isUniversal && (t.comparisonData = pE(i.name, l, e, s.value), !0);
|
|
25002
25001
|
} finally {
|
|
25003
25002
|
"comparisonData" in t || (t.comparisonData = null);
|
|
25004
25003
|
}
|
|
25005
25004
|
}
|
|
25006
|
-
function
|
|
25005
|
+
function ST(t) {
|
|
25007
25006
|
return t && typeof t.attributes == "object";
|
|
25008
25007
|
}
|
|
25009
25008
|
function id(t, e, r, n) {
|
|
@@ -25029,8 +25028,8 @@ function id(t, e, r, n) {
|
|
|
25029
25028
|
}
|
|
25030
25029
|
return s;
|
|
25031
25030
|
}
|
|
25032
|
-
const Ri = { getAttribute: (t, e) => (
|
|
25033
|
-
class
|
|
25031
|
+
const Ri = { getAttribute: (t, e) => (ST(t) ? t.attributes : t)[e] };
|
|
25032
|
+
class xT {
|
|
25034
25033
|
constructor(e, r) {
|
|
25035
25034
|
this._cache = new Zg(e), this._invalidCache = new Zg(r);
|
|
25036
25035
|
}
|
|
@@ -25050,11 +25049,11 @@ class NT {
|
|
|
25050
25049
|
return this._invalidCache.get(n) ?? null;
|
|
25051
25050
|
}
|
|
25052
25051
|
}
|
|
25053
|
-
var
|
|
25052
|
+
var NT = /* @__PURE__ */ Object.freeze({
|
|
25054
25053
|
__proto__: null,
|
|
25055
|
-
WhereClauseCache:
|
|
25054
|
+
WhereClauseCache: xT
|
|
25056
25055
|
});
|
|
25057
|
-
async function
|
|
25056
|
+
async function ET(t = {}) {
|
|
25058
25057
|
var e, r = t, n = "./this.program", s = "", i = "";
|
|
25059
25058
|
function u(h) {
|
|
25060
25059
|
return r.locateFile ? r.locateFile(h, i) : i + h;
|
|
@@ -25922,7 +25921,7 @@ async function TT(t = {}) {
|
|
|
25922
25921
|
c = h, p = x;
|
|
25923
25922
|
});
|
|
25924
25923
|
}
|
|
25925
|
-
var
|
|
25924
|
+
var TT = /* @__PURE__ */ Object.freeze({
|
|
25926
25925
|
__proto__: null,
|
|
25927
|
-
default:
|
|
25926
|
+
default: ET
|
|
25928
25927
|
});
|