{"version":3,"sources":["node_modules/@arcgis/core/time/TimeExtent.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as t } from \"../chunks/tslib.es6.js\";\nimport { JSONSupport as e } from \"../core/JSONSupport.js\";\nimport { truncateDate as r, offsetDate as s } from \"../core/timeUtils.js\";\nimport { property as n } from \"../core/accessorSupport/decorators/property.js\";\nimport \"../core/has.js\";\nimport \"../core/Logger.js\";\nimport \"../core/RandomLCG.js\";\nimport { reader as i } from \"../core/accessorSupport/decorators/reader.js\";\nimport { subclass as l } from \"../core/accessorSupport/decorators/subclass.js\";\nimport { writer as o } from \"../core/accessorSupport/decorators/writer.js\";\nimport { system as a } from \"./timeZoneUtils.js\";\nvar u;\nlet m = u = class extends e {\n static get allTime() {\n return d;\n }\n static get empty() {\n return c;\n }\n static fromArray(t) {\n return new u({\n start: null != t[0] ? new Date(t[0]) : t[0],\n end: null != t[1] ? new Date(t[1]) : t[1]\n });\n }\n constructor(t) {\n super(t), this.end = null, this.start = null;\n }\n readEnd(t, e) {\n return null != e.end ? new Date(e.end) : null;\n }\n writeEnd(t, e) {\n e.end = t?.getTime() ?? null;\n }\n get isAllTime() {\n return this.equals(u.allTime);\n }\n get isEmpty() {\n return this.equals(u.empty);\n }\n readStart(t, e) {\n return null != e.start ? new Date(e.start) : null;\n }\n writeStart(t, e) {\n e.start = t?.getTime() ?? null;\n }\n clone() {\n return new u({\n end: this.end,\n start: this.start\n });\n }\n equals(t) {\n if (!t) return !1;\n const e = this.start?.getTime() ?? this.start,\n r = this.end?.getTime() ?? this.end,\n s = t.start?.getTime() ?? t.start,\n n = t.end?.getTime() ?? t.end;\n return e === s && r === n;\n }\n expandTo(t, e = a) {\n if (this.isEmpty || this.isAllTime) return this.clone();\n let n = this.start;\n n && (n = r(n, t, e));\n let i = this.end;\n if (i) {\n const n = r(i, t, e);\n i = i.getTime() === n.getTime() ? n : s(n, 1, t, e);\n }\n return new u({\n start: n,\n end: i\n });\n }\n intersection(t) {\n if (!t) return this.clone();\n if (this.isEmpty || t.isEmpty) return u.empty;\n if (this.isAllTime) return t.clone();\n if (t.isAllTime) return this.clone();\n const e = this.start?.getTime() ?? -1 / 0,\n r = this.end?.getTime() ?? 1 / 0,\n s = t.start?.getTime() ?? -1 / 0,\n n = t.end?.getTime() ?? 1 / 0;\n let i, l;\n return s >= e && s <= r ? i = s : e >= s && e <= n && (i = e), r >= s && r <= n ? l = r : n >= e && n <= r && (l = n), null == i || null == l || isNaN(i) || isNaN(l) ? u.empty : new u({\n start: i === -1 / 0 ? null : new Date(i),\n end: l === 1 / 0 ? null : new Date(l)\n });\n }\n offset(t, e, r = a) {\n if (this.isEmpty || this.isAllTime) return this.clone();\n const n = new u(),\n {\n start: i,\n end: l\n } = this;\n return null != i && (n.start = s(i, t, e, r)), null != l && (n.end = s(l, t, e, r)), n;\n }\n toArray() {\n return this.isEmpty ? [void 0, void 0] : [this.start?.getTime() ?? null, this.end?.getTime() ?? null];\n }\n union(t) {\n if (!t || t.isEmpty) return this.clone();\n if (this.isEmpty) return t.clone();\n if (this.isAllTime || t.isAllTime) return d.clone();\n const e = null != this.start && null != t.start ? new Date(Math.min(this.start.getTime(), t.start.getTime())) : null,\n r = null != this.end && null != t.end ? new Date(Math.max(this.end.getTime(), t.end.getTime())) : null;\n return new u({\n start: e,\n end: r\n });\n }\n};\nt([n({\n type: Date,\n json: {\n write: {\n allowNull: !0\n }\n }\n})], m.prototype, \"end\", void 0), t([i(\"end\")], m.prototype, \"readEnd\", null), t([o(\"end\")], m.prototype, \"writeEnd\", null), t([n({\n readOnly: !0,\n json: {\n read: !1\n }\n})], m.prototype, \"isAllTime\", null), t([n({\n readOnly: !0,\n json: {\n read: !1\n }\n})], m.prototype, \"isEmpty\", null), t([n({\n type: Date,\n json: {\n write: {\n allowNull: !0\n }\n }\n})], m.prototype, \"start\", void 0), t([i(\"start\")], m.prototype, \"readStart\", null), t([o(\"start\")], m.prototype, \"writeStart\", null), m = u = t([l(\"esri.time.TimeExtent\")], m);\nconst p = m,\n d = new m(),\n c = new m({\n start: void 0,\n end: void 0\n });\nexport { p as default };"],"mappings":"kUAeA,IAAIA,EACAC,EAAID,EAAI,cAAc,CAAE,CAC1B,WAAW,SAAU,CACnB,OAAOE,CACT,CACA,WAAW,OAAQ,CACjB,OAAOC,CACT,CACA,OAAO,UAAU,EAAG,CAClB,OAAO,IAAIH,EAAE,CACX,MAAe,EAAE,CAAC,GAAX,KAAe,IAAI,KAAK,EAAE,CAAC,CAAC,EAAI,EAAE,CAAC,EAC1C,IAAa,EAAE,CAAC,GAAX,KAAe,IAAI,KAAK,EAAE,CAAC,CAAC,EAAI,EAAE,CAAC,CAC1C,CAAC,CACH,CACA,YAAY,EAAG,CACb,MAAM,CAAC,EAAG,KAAK,IAAM,KAAM,KAAK,MAAQ,IAC1C,CACA,QAAQ,EAAG,EAAG,CACZ,OAAe,EAAE,KAAV,KAAgB,IAAI,KAAK,EAAE,GAAG,EAAI,IAC3C,CACA,SAAS,EAAG,EAAG,CACb,EAAE,IAAM,GAAG,QAAQ,GAAK,IAC1B,CACA,IAAI,WAAY,CACd,OAAO,KAAK,OAAOA,EAAE,OAAO,CAC9B,CACA,IAAI,SAAU,CACZ,OAAO,KAAK,OAAOA,EAAE,KAAK,CAC5B,CACA,UAAU,EAAG,EAAG,CACd,OAAe,EAAE,OAAV,KAAkB,IAAI,KAAK,EAAE,KAAK,EAAI,IAC/C,CACA,WAAW,EAAG,EAAG,CACf,EAAE,MAAQ,GAAG,QAAQ,GAAK,IAC5B,CACA,OAAQ,CACN,OAAO,IAAIA,EAAE,CACX,IAAK,KAAK,IACV,MAAO,KAAK,KACd,CAAC,CACH,CACA,OAAO,EAAG,CACR,GAAI,CAAC,EAAG,MAAO,GACf,IAAM,EAAI,KAAK,OAAO,QAAQ,GAAK,KAAK,MACtC,EAAI,KAAK,KAAK,QAAQ,GAAK,KAAK,IAChCI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