@opengis/gis 0.2.129 → 0.2.131

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/{CardIcon-DgpYeKbG.js → CardIcon-Bty3pjDA.js} +1 -1
  2. package/dist/{EntityTablePage-DNdVavT4.js → EntityTablePage-Bx4SIoW8.js} +1 -1
  3. package/dist/{ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-DQnIBCpE.js → ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-DRnlsqEC.js} +24 -22
  4. package/dist/{HeaderActions.vue_vue_type_script_setup_true_lang-Cg2y4sIa.js → HeaderActions.vue_vue_type_script_setup_true_lang-CpDC-v8-.js} +345 -321
  5. package/dist/{MapSettings-CHF3VpUu.js → MapSettings-Bw4WyHXT.js} +12 -12
  6. package/dist/{RastersTablePage-Ci3P3r4c.js → RastersTablePage-Cjb2zg5J.js} +1 -1
  7. package/dist/cartocss-sXf_ZeCv.js +1053 -0
  8. package/dist/{import-utils-ElncWVJV.js → import-utils-DdinjlC4.js} +1 -1
  9. package/dist/{index-UGx54M0Q.js → index-DtOSF_ba.js} +377 -386
  10. package/dist/index.css +1 -1
  11. package/dist/index.js +4 -4
  12. package/dist/index.umd.cjs +41 -41
  13. package/dist/raster-D7fESzin.js +792 -0
  14. package/dist/{register-BfNUPbey.js → register-C_mb5TbK.js} +3 -3
  15. package/dist/{service-DsykdHry.js → service-BUb9DRGZ.js} +911 -879
  16. package/dist/{vs-datatable-D6g7tjZo.js → vs-datatable-D-FY2azp.js} +1 -1
  17. package/package.json +2 -2
  18. package/server/routes/gis/cartocss/get.cartocss.js +11 -2
  19. package/server/routes/gis/registers/add.registry.js +3 -4
  20. package/server/routes/gis/registers/funcs/columns.js +2 -4
  21. package/server/routes/mapnik/controllers/pretile.js +7 -9
  22. package/server/routes/mapnik/controllers/rtile.js +13 -1
  23. package/server/routes/mapnik/functions/cartoBounds.js +6 -2
  24. package/dist/cartocss-BsaIlSRb.js +0 -894
  25. package/dist/raster-BDWEafwx.js +0 -663
@@ -1,62 +1,62 @@
1
- import { openBlock as C, createElementBlock as M, createElementVNode as v, defineComponent as Z, ref as S, watch as T, createTextVNode as Di, createVNode as j, createBlock as N, createCommentVNode as P, defineAsyncComponent as Ri, unref as ve, withCtx as qe, withDirectives as Be, vModelText as Ye, normalizeClass as he, Fragment as Nn, renderList as Mn, toDisplayString as te, getCurrentInstance as Dn, onBeforeUnmount as Rn, toRef as $i, computed as Se, onMounted as ji, resolveDynamicComponent as Ui } from "vue";
2
- import { useRoute as Bi, useRouter as Yi } from "vue-router";
3
- import { notify as z } from "@opengis/core";
4
- import { _ as Ne, u as $n, f as Pi, M as Hi, g as Vi, h as qi, i as Ki, j as mn, k as zi, l as Gi, m as Qi, s as hn } from "./index-UGx54M0Q.js";
5
- import { _ as Wi, a as Ji, b as Zi, c as Xi } from "./HeaderActions.vue_vue_type_script_setup_true_lang-Cg2y4sIa.js";
6
- import { S as el, C as nl } from "./CardIcon-DgpYeKbG.js";
7
- import { _ as jn } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-D3ZPeXMw.js";
8
- import { V as Me } from "./vs-datatable-D6g7tjZo.js";
9
- import { _ as Je, m as Ze, r as xe } from "./import-utils-ElncWVJV.js";
10
- /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
11
- function Un(e) {
1
+ import { openBlock as C, createElementBlock as D, createElementVNode as v, defineComponent as ee, ref as S, watch as I, createTextVNode as qi, createVNode as j, createBlock as M, createCommentVNode as q, defineAsyncComponent as Ki, unref as ve, withCtx as We, withDirectives as qe, vModelText as Ke, normalizeClass as he, Fragment as Hn, renderList as Vn, toDisplayString as ue, getCurrentInstance as qn, onBeforeUnmount as Kn, toRef as zi, computed as Fe, onMounted as Gi, resolveDynamicComponent as Qi } from "vue";
2
+ import { useRoute as Wi, useRouter as Ji } from "vue-router";
3
+ import { notify as Q } from "@opengis/core";
4
+ import { _ as Re, u as Ie, f as Zi, M as Xi, g as el, h as nl, i as il, j as kn, k as ll, l as rl, m as tl, s as Cn, n as ol } from "./index-DtOSF_ba.js";
5
+ import { _ as ul, a as al, b as sl, c as cl } from "./HeaderActions.vue_vue_type_script_setup_true_lang-CpDC-v8-.js";
6
+ import { S as fl, C as dl } from "./CardIcon-Bty3pjDA.js";
7
+ import { _ as zn } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-D3ZPeXMw.js";
8
+ import { V as $e } from "./vs-datatable-D-FY2azp.js";
9
+ import { _ as ln, m as rn, r as xe } from "./import-utils-DdinjlC4.js";
10
+ /*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
11
+ function Gn(e) {
12
12
  return typeof e > "u" || e === null;
13
13
  }
14
- function il(e) {
14
+ function pl(e) {
15
15
  return typeof e == "object" && e !== null;
16
16
  }
17
- function ll(e) {
18
- return Array.isArray(e) ? e : Un(e) ? [] : [e];
17
+ function ml(e) {
18
+ return Array.isArray(e) ? e : Gn(e) ? [] : [e];
19
19
  }
20
- function rl(e, n) {
20
+ function hl(e, n) {
21
21
  var i, r, l, o;
22
22
  if (n)
23
23
  for (o = Object.keys(n), i = 0, r = o.length; i < r; i += 1)
24
24
  l = o[i], e[l] = n[l];
25
25
  return e;
26
26
  }
27
- function tl(e, n) {
27
+ function vl(e, n) {
28
28
  var i = "", r;
29
29
  for (r = 0; r < n; r += 1)
30
30
  i += e;
31
31
  return i;
32
32
  }
33
- function ol(e) {
33
+ function xl(e) {
34
34
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
35
35
  }
36
- var ul = Un, al = il, sl = ll, cl = tl, fl = ol, dl = rl, I = {
37
- isNothing: ul,
38
- isObject: al,
39
- toArray: sl,
40
- repeat: cl,
41
- isNegativeZero: fl,
42
- extend: dl
36
+ var yl = Gn, gl = pl, bl = ml, _l = vl, wl = xl, Al = hl, O = {
37
+ isNothing: yl,
38
+ isObject: gl,
39
+ toArray: bl,
40
+ repeat: _l,
41
+ isNegativeZero: wl,
42
+ extend: Al
43
43
  };
44
- function Bn(e, n) {
44
+ function Qn(e, n) {
45
45
  var i = "", r = e.reason || "(unknown reason)";
46
46
  return e.mark ? (e.mark.name && (i += 'in "' + e.mark.name + '" '), i += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (i += `
47
47
 
48
48
  ` + e.mark.snippet), r + " " + i) : r;
49
49
  }
50
50
  function ye(e, n) {
51
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Bn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
51
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Qn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
52
52
  }
53
53
  ye.prototype = Object.create(Error.prototype);
54
54
  ye.prototype.constructor = ye;
55
55
  ye.prototype.toString = function(n) {
56
- return this.name + ": " + Bn(this, n);
56
+ return this.name + ": " + Qn(this, n);
57
57
  };
58
- var R = ye;
59
- function Pe(e, n, i, r, l) {
58
+ var $ = ye;
59
+ function ze(e, n, i, r, l) {
60
60
  var o = "", t = "", u = Math.floor(l / 2) - 1;
61
61
  return r - n > u && (o = " ... ", n = r - u + o.length), i - r > u && (t = " ...", i = r + u - t.length), {
62
62
  str: o + e.slice(n, i).replace(/\t/g, "→") + t,
@@ -64,39 +64,39 @@ function Pe(e, n, i, r, l) {
64
64
  // relative position
65
65
  };
66
66
  }
67
- function He(e, n) {
68
- return I.repeat(" ", n - e.length) + e;
67
+ function Ge(e, n) {
68
+ return O.repeat(" ", n - e.length) + e;
69
69
  }
70
- function pl(e, n) {
70
+ function kl(e, n) {
71
71
  if (n = Object.create(n || null), !e.buffer) return null;
72
72
  n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
73
73
  for (var i = /\r?\n|\r|\0/g, r = [0], l = [], o, t = -1; o = i.exec(e.buffer); )
74
74
  l.push(o.index), r.push(o.index + o[0].length), e.position <= o.index && t < 0 && (t = r.length - 2);
75
75
  t < 0 && (t = r.length - 1);
76
- var u = "", a, s, h = Math.min(e.line + n.linesAfter, l.length).toString().length, d = n.maxLength - (n.indent + h + 3);
76
+ var u = "", a, s, m = Math.min(e.line + n.linesAfter, l.length).toString().length, d = n.maxLength - (n.indent + m + 3);
77
77
  for (a = 1; a <= n.linesBefore && !(t - a < 0); a++)
78
- s = Pe(
78
+ s = ze(
79
79
  e.buffer,
80
80
  r[t - a],
81
81
  l[t - a],
82
82
  e.position - (r[t] - r[t - a]),
83
83
  d
84
- ), u = I.repeat(" ", n.indent) + He((e.line - a + 1).toString(), h) + " | " + s.str + `
84
+ ), u = O.repeat(" ", n.indent) + Ge((e.line - a + 1).toString(), m) + " | " + s.str + `
85
85
  ` + u;
86
- for (s = Pe(e.buffer, r[t], l[t], e.position, d), u += I.repeat(" ", n.indent) + He((e.line + 1).toString(), h) + " | " + s.str + `
87
- `, u += I.repeat("-", n.indent + h + 3 + s.pos) + `^
86
+ for (s = ze(e.buffer, r[t], l[t], e.position, d), u += O.repeat(" ", n.indent) + Ge((e.line + 1).toString(), m) + " | " + s.str + `
87
+ `, u += O.repeat("-", n.indent + m + 3 + s.pos) + `^
88
88
  `, a = 1; a <= n.linesAfter && !(t + a >= l.length); a++)
89
- s = Pe(
89
+ s = ze(
90
90
  e.buffer,
91
91
  r[t + a],
92
92
  l[t + a],
93
93
  e.position - (r[t] - r[t + a]),
94
94
  d
95
- ), u += I.repeat(" ", n.indent) + He((e.line + a + 1).toString(), h) + " | " + s.str + `
95
+ ), u += O.repeat(" ", n.indent) + Ge((e.line + a + 1).toString(), m) + " | " + s.str + `
96
96
  `;
97
97
  return u.replace(/\n$/, "");
98
98
  }
99
- var ml = pl, hl = [
99
+ var Cl = kl, Sl = [
100
100
  "kind",
101
101
  "multi",
102
102
  "resolve",
@@ -107,12 +107,12 @@ var ml = pl, hl = [
107
107
  "representName",
108
108
  "defaultStyle",
109
109
  "styleAliases"
110
- ], vl = [
110
+ ], El = [
111
111
  "scalar",
112
112
  "sequence",
113
113
  "mapping"
114
114
  ];
115
- function xl(e) {
115
+ function Fl(e) {
116
116
  var n = {};
117
117
  return e !== null && Object.keys(e).forEach(function(i) {
118
118
  e[i].forEach(function(r) {
@@ -120,19 +120,19 @@ function xl(e) {
120
120
  });
121
121
  }), n;
122
122
  }
123
- function yl(e, n) {
123
+ function Tl(e, n) {
124
124
  if (n = n || {}, Object.keys(n).forEach(function(i) {
125
- if (hl.indexOf(i) === -1)
126
- throw new R('Unknown option "' + i + '" is met in definition of "' + e + '" YAML type.');
125
+ if (Sl.indexOf(i) === -1)
126
+ throw new $('Unknown option "' + i + '" is met in definition of "' + e + '" YAML type.');
127
127
  }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
128
128
  return !0;
129
129
  }, this.construct = n.construct || function(i) {
130
130
  return i;
131
- }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = xl(n.styleAliases || null), vl.indexOf(this.kind) === -1)
132
- throw new R('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
131
+ }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Fl(n.styleAliases || null), El.indexOf(this.kind) === -1)
132
+ throw new $('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
133
133
  }
134
- var O = yl;
135
- function vn(e, n) {
134
+ var N = Tl;
135
+ function Sn(e, n) {
136
136
  var i = [];
137
137
  return e[n].forEach(function(r) {
138
138
  var l = i.length;
@@ -141,7 +141,7 @@ function vn(e, n) {
141
141
  }), i[l] = r;
142
142
  }), i;
143
143
  }
144
- function gl() {
144
+ function Il() {
145
145
  var e = {
146
146
  scalar: {},
147
147
  sequence: {},
@@ -161,71 +161,71 @@ function gl() {
161
161
  arguments[n].forEach(r);
162
162
  return e;
163
163
  }
164
- function Ke(e) {
164
+ function Je(e) {
165
165
  return this.extend(e);
166
166
  }
167
- Ke.prototype.extend = function(n) {
167
+ Je.prototype.extend = function(n) {
168
168
  var i = [], r = [];
169
- if (n instanceof O)
169
+ if (n instanceof N)
170
170
  r.push(n);
171
171
  else if (Array.isArray(n))
172
172
  r = r.concat(n);
173
173
  else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit)))
174
174
  n.implicit && (i = i.concat(n.implicit)), n.explicit && (r = r.concat(n.explicit));
175
175
  else
176
- throw new R("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
176
+ throw new $("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
177
177
  i.forEach(function(o) {
178
- if (!(o instanceof O))
179
- throw new R("Specified list of YAML types (or a single Type object) contains a non-Type object.");
178
+ if (!(o instanceof N))
179
+ throw new $("Specified list of YAML types (or a single Type object) contains a non-Type object.");
180
180
  if (o.loadKind && o.loadKind !== "scalar")
181
- throw new R("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
181
+ throw new $("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
182
182
  if (o.multi)
183
- throw new R("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
183
+ throw new $("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
184
184
  }), r.forEach(function(o) {
185
- if (!(o instanceof O))
186
- throw new R("Specified list of YAML types (or a single Type object) contains a non-Type object.");
185
+ if (!(o instanceof N))
186
+ throw new $("Specified list of YAML types (or a single Type object) contains a non-Type object.");
187
187
  });
188
- var l = Object.create(Ke.prototype);
189
- return l.implicit = (this.implicit || []).concat(i), l.explicit = (this.explicit || []).concat(r), l.compiledImplicit = vn(l, "implicit"), l.compiledExplicit = vn(l, "explicit"), l.compiledTypeMap = gl(l.compiledImplicit, l.compiledExplicit), l;
188
+ var l = Object.create(Je.prototype);
189
+ return l.implicit = (this.implicit || []).concat(i), l.explicit = (this.explicit || []).concat(r), l.compiledImplicit = Sn(l, "implicit"), l.compiledExplicit = Sn(l, "explicit"), l.compiledTypeMap = Il(l.compiledImplicit, l.compiledExplicit), l;
190
190
  };
191
- var Yn = Ke, Pn = new O("tag:yaml.org,2002:str", {
191
+ var Wn = Je, Jn = new N("tag:yaml.org,2002:str", {
192
192
  kind: "scalar",
193
193
  construct: function(e) {
194
194
  return e !== null ? e : "";
195
195
  }
196
- }), Hn = new O("tag:yaml.org,2002:seq", {
196
+ }), Zn = new N("tag:yaml.org,2002:seq", {
197
197
  kind: "sequence",
198
198
  construct: function(e) {
199
199
  return e !== null ? e : [];
200
200
  }
201
- }), Vn = new O("tag:yaml.org,2002:map", {
201
+ }), Xn = new N("tag:yaml.org,2002:map", {
202
202
  kind: "mapping",
203
203
  construct: function(e) {
204
204
  return e !== null ? e : {};
205
205
  }
206
- }), qn = new Yn({
206
+ }), ei = new Wn({
207
207
  explicit: [
208
- Pn,
209
- Hn,
210
- Vn
208
+ Jn,
209
+ Zn,
210
+ Xn
211
211
  ]
212
212
  });
213
- function bl(e) {
213
+ function Ol(e) {
214
214
  if (e === null) return !0;
215
215
  var n = e.length;
216
216
  return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
217
217
  }
218
- function wl() {
218
+ function Ll() {
219
219
  return null;
220
220
  }
221
- function _l(e) {
221
+ function Nl(e) {
222
222
  return e === null;
223
223
  }
224
- var Kn = new O("tag:yaml.org,2002:null", {
224
+ var ni = new N("tag:yaml.org,2002:null", {
225
225
  kind: "scalar",
226
- resolve: bl,
227
- construct: wl,
228
- predicate: _l,
226
+ resolve: Ol,
227
+ construct: Ll,
228
+ predicate: Nl,
229
229
  represent: {
230
230
  canonical: function() {
231
231
  return "~";
@@ -245,22 +245,22 @@ var Kn = new O("tag:yaml.org,2002:null", {
245
245
  },
246
246
  defaultStyle: "lowercase"
247
247
  });
248
- function Al(e) {
248
+ function Ml(e) {
249
249
  if (e === null) return !1;
250
250
  var n = e.length;
251
251
  return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
252
252
  }
253
- function kl(e) {
253
+ function Dl(e) {
254
254
  return e === "true" || e === "True" || e === "TRUE";
255
255
  }
256
- function Cl(e) {
256
+ function Rl(e) {
257
257
  return Object.prototype.toString.call(e) === "[object Boolean]";
258
258
  }
259
- var zn = new O("tag:yaml.org,2002:bool", {
259
+ var ii = new N("tag:yaml.org,2002:bool", {
260
260
  kind: "scalar",
261
- resolve: Al,
262
- construct: kl,
263
- predicate: Cl,
261
+ resolve: Ml,
262
+ construct: Dl,
263
+ predicate: Rl,
264
264
  represent: {
265
265
  lowercase: function(e) {
266
266
  return e ? "true" : "false";
@@ -274,16 +274,16 @@ var zn = new O("tag:yaml.org,2002:bool", {
274
274
  },
275
275
  defaultStyle: "lowercase"
276
276
  });
277
- function Sl(e) {
277
+ function $l(e) {
278
278
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
279
279
  }
280
- function El(e) {
280
+ function jl(e) {
281
281
  return 48 <= e && e <= 55;
282
282
  }
283
- function Fl(e) {
283
+ function Ul(e) {
284
284
  return 48 <= e && e <= 57;
285
285
  }
286
- function Tl(e) {
286
+ function Bl(e) {
287
287
  if (e === null) return !1;
288
288
  var n = e.length, i = 0, r = !1, l;
289
289
  if (!n) return !1;
@@ -300,7 +300,7 @@ function Tl(e) {
300
300
  if (l === "x") {
301
301
  for (i++; i < n; i++)
302
302
  if (l = e[i], l !== "_") {
303
- if (!Sl(e.charCodeAt(i))) return !1;
303
+ if (!$l(e.charCodeAt(i))) return !1;
304
304
  r = !0;
305
305
  }
306
306
  return r && l !== "_";
@@ -308,7 +308,7 @@ function Tl(e) {
308
308
  if (l === "o") {
309
309
  for (i++; i < n; i++)
310
310
  if (l = e[i], l !== "_") {
311
- if (!El(e.charCodeAt(i))) return !1;
311
+ if (!jl(e.charCodeAt(i))) return !1;
312
312
  r = !0;
313
313
  }
314
314
  return r && l !== "_";
@@ -317,13 +317,13 @@ function Tl(e) {
317
317
  if (l === "_") return !1;
318
318
  for (; i < n; i++)
319
319
  if (l = e[i], l !== "_") {
320
- if (!Fl(e.charCodeAt(i)))
320
+ if (!Ul(e.charCodeAt(i)))
321
321
  return !1;
322
322
  r = !0;
323
323
  }
324
324
  return !(!r || l === "_");
325
325
  }
326
- function Il(e) {
326
+ function Yl(e) {
327
327
  var n = e, i = 1, r;
328
328
  if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), r = n[0], (r === "-" || r === "+") && (r === "-" && (i = -1), n = n.slice(1), r = n[0]), n === "0") return 0;
329
329
  if (r === "0") {
@@ -333,14 +333,14 @@ function Il(e) {
333
333
  }
334
334
  return i * parseInt(n, 10);
335
335
  }
336
- function Ol(e) {
337
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !I.isNegativeZero(e);
336
+ function Pl(e) {
337
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !O.isNegativeZero(e);
338
338
  }
339
- var Gn = new O("tag:yaml.org,2002:int", {
339
+ var li = new N("tag:yaml.org,2002:int", {
340
340
  kind: "scalar",
341
- resolve: Tl,
342
- construct: Il,
343
- predicate: Ol,
341
+ resolve: Bl,
342
+ construct: Yl,
343
+ predicate: Pl,
344
344
  represent: {
345
345
  binary: function(e) {
346
346
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -363,21 +363,21 @@ var Gn = new O("tag:yaml.org,2002:int", {
363
363
  decimal: [10, "dec"],
364
364
  hexadecimal: [16, "hex"]
365
365
  }
366
- }), Ll = new RegExp(
366
+ }), Hl = new RegExp(
367
367
  // 2.5e4, 2.5 and integers
368
368
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
369
369
  );
370
- function Nl(e) {
371
- return !(e === null || !Ll.test(e) || // Quick hack to not allow integers end with `_`
370
+ function Vl(e) {
371
+ return !(e === null || !Hl.test(e) || // Quick hack to not allow integers end with `_`
372
372
  // Probably should update regexp & check speed
373
373
  e[e.length - 1] === "_");
374
374
  }
375
- function Ml(e) {
375
+ function ql(e) {
376
376
  var n, i;
377
377
  return n = e.replace(/_/g, "").toLowerCase(), i = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? i === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : i * parseFloat(n, 10);
378
378
  }
379
- var Dl = /^[-+]?[0-9]+e/;
380
- function Rl(e, n) {
379
+ var Kl = /^[-+]?[0-9]+e/;
380
+ function zl(e, n) {
381
381
  var i;
382
382
  if (isNaN(e))
383
383
  switch (n) {
@@ -406,38 +406,38 @@ function Rl(e, n) {
406
406
  case "camelcase":
407
407
  return "-.Inf";
408
408
  }
409
- else if (I.isNegativeZero(e))
409
+ else if (O.isNegativeZero(e))
410
410
  return "-0.0";
411
- return i = e.toString(10), Dl.test(i) ? i.replace("e", ".e") : i;
411
+ return i = e.toString(10), Kl.test(i) ? i.replace("e", ".e") : i;
412
412
  }
413
- function $l(e) {
414
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || I.isNegativeZero(e));
413
+ function Gl(e) {
414
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || O.isNegativeZero(e));
415
415
  }
416
- var Qn = new O("tag:yaml.org,2002:float", {
416
+ var ri = new N("tag:yaml.org,2002:float", {
417
417
  kind: "scalar",
418
- resolve: Nl,
419
- construct: Ml,
420
- predicate: $l,
421
- represent: Rl,
418
+ resolve: Vl,
419
+ construct: ql,
420
+ predicate: Gl,
421
+ represent: zl,
422
422
  defaultStyle: "lowercase"
423
- }), Wn = qn.extend({
423
+ }), ti = ei.extend({
424
424
  implicit: [
425
- Kn,
426
- zn,
427
- Gn,
428
- Qn
425
+ ni,
426
+ ii,
427
+ li,
428
+ ri
429
429
  ]
430
- }), Jn = Wn, Zn = new RegExp(
430
+ }), oi = ti, ui = new RegExp(
431
431
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
432
- ), Xn = new RegExp(
432
+ ), ai = new RegExp(
433
433
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
434
434
  );
435
- function jl(e) {
436
- return e === null ? !1 : Zn.exec(e) !== null || Xn.exec(e) !== null;
435
+ function Ql(e) {
436
+ return e === null ? !1 : ui.exec(e) !== null || ai.exec(e) !== null;
437
437
  }
438
- function Ul(e) {
439
- var n, i, r, l, o, t, u, a = 0, s = null, h, d, y;
440
- if (n = Zn.exec(e), n === null && (n = Xn.exec(e)), n === null) throw new Error("Date resolve error");
438
+ function Wl(e) {
439
+ var n, i, r, l, o, t, u, a = 0, s = null, m, d, y;
440
+ if (n = ui.exec(e), n === null && (n = ai.exec(e)), n === null) throw new Error("Date resolve error");
441
441
  if (i = +n[1], r = +n[2] - 1, l = +n[3], !n[4])
442
442
  return new Date(Date.UTC(i, r, l));
443
443
  if (o = +n[4], t = +n[5], u = +n[6], n[7]) {
@@ -445,29 +445,29 @@ function Ul(e) {
445
445
  a += "0";
446
446
  a = +a;
447
447
  }
448
- return n[9] && (h = +n[10], d = +(n[11] || 0), s = (h * 60 + d) * 6e4, n[9] === "-" && (s = -s)), y = new Date(Date.UTC(i, r, l, o, t, u, a)), s && y.setTime(y.getTime() - s), y;
448
+ return n[9] && (m = +n[10], d = +(n[11] || 0), s = (m * 60 + d) * 6e4, n[9] === "-" && (s = -s)), y = new Date(Date.UTC(i, r, l, o, t, u, a)), s && y.setTime(y.getTime() - s), y;
449
449
  }
450
- function Bl(e) {
450
+ function Jl(e) {
451
451
  return e.toISOString();
452
452
  }
453
- var ei = new O("tag:yaml.org,2002:timestamp", {
453
+ var si = new N("tag:yaml.org,2002:timestamp", {
454
454
  kind: "scalar",
455
- resolve: jl,
456
- construct: Ul,
455
+ resolve: Ql,
456
+ construct: Wl,
457
457
  instanceOf: Date,
458
- represent: Bl
458
+ represent: Jl
459
459
  });
460
- function Yl(e) {
460
+ function Zl(e) {
461
461
  return e === "<<" || e === null;
462
462
  }
463
- var ni = new O("tag:yaml.org,2002:merge", {
463
+ var ci = new N("tag:yaml.org,2002:merge", {
464
464
  kind: "scalar",
465
- resolve: Yl
466
- }), Xe = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
465
+ resolve: Zl
466
+ }), tn = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
467
467
  \r`;
468
- function Pl(e) {
468
+ function Xl(e) {
469
469
  if (e === null) return !1;
470
- var n, i, r = 0, l = e.length, o = Xe;
470
+ var n, i, r = 0, l = e.length, o = tn;
471
471
  for (i = 0; i < l; i++)
472
472
  if (n = o.indexOf(e.charAt(i)), !(n > 64)) {
473
473
  if (n < 0) return !1;
@@ -475,35 +475,35 @@ function Pl(e) {
475
475
  }
476
476
  return r % 8 === 0;
477
477
  }
478
- function Hl(e) {
479
- var n, i, r = e.replace(/[\r\n=]/g, ""), l = r.length, o = Xe, t = 0, u = [];
478
+ function er(e) {
479
+ var n, i, r = e.replace(/[\r\n=]/g, ""), l = r.length, o = tn, t = 0, u = [];
480
480
  for (n = 0; n < l; n++)
481
481
  n % 4 === 0 && n && (u.push(t >> 16 & 255), u.push(t >> 8 & 255), u.push(t & 255)), t = t << 6 | o.indexOf(r.charAt(n));
482
482
  return i = l % 4 * 6, i === 0 ? (u.push(t >> 16 & 255), u.push(t >> 8 & 255), u.push(t & 255)) : i === 18 ? (u.push(t >> 10 & 255), u.push(t >> 2 & 255)) : i === 12 && u.push(t >> 4 & 255), new Uint8Array(u);
483
483
  }
484
- function Vl(e) {
485
- var n = "", i = 0, r, l, o = e.length, t = Xe;
484
+ function nr(e) {
485
+ var n = "", i = 0, r, l, o = e.length, t = tn;
486
486
  for (r = 0; r < o; r++)
487
487
  r % 3 === 0 && r && (n += t[i >> 18 & 63], n += t[i >> 12 & 63], n += t[i >> 6 & 63], n += t[i & 63]), i = (i << 8) + e[r];
488
488
  return l = o % 3, l === 0 ? (n += t[i >> 18 & 63], n += t[i >> 12 & 63], n += t[i >> 6 & 63], n += t[i & 63]) : l === 2 ? (n += t[i >> 10 & 63], n += t[i >> 4 & 63], n += t[i << 2 & 63], n += t[64]) : l === 1 && (n += t[i >> 2 & 63], n += t[i << 4 & 63], n += t[64], n += t[64]), n;
489
489
  }
490
- function ql(e) {
490
+ function ir(e) {
491
491
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
492
492
  }
493
- var ii = new O("tag:yaml.org,2002:binary", {
493
+ var fi = new N("tag:yaml.org,2002:binary", {
494
494
  kind: "scalar",
495
- resolve: Pl,
496
- construct: Hl,
497
- predicate: ql,
498
- represent: Vl
499
- }), Kl = Object.prototype.hasOwnProperty, zl = Object.prototype.toString;
500
- function Gl(e) {
495
+ resolve: Xl,
496
+ construct: er,
497
+ predicate: ir,
498
+ represent: nr
499
+ }), lr = Object.prototype.hasOwnProperty, rr = Object.prototype.toString;
500
+ function tr(e) {
501
501
  if (e === null) return !0;
502
502
  var n = [], i, r, l, o, t, u = e;
503
503
  for (i = 0, r = u.length; i < r; i += 1) {
504
- if (l = u[i], t = !1, zl.call(l) !== "[object Object]") return !1;
504
+ if (l = u[i], t = !1, rr.call(l) !== "[object Object]") return !1;
505
505
  for (o in l)
506
- if (Kl.call(l, o))
506
+ if (lr.call(l, o))
507
507
  if (!t) t = !0;
508
508
  else return !1;
509
509
  if (!t) return !1;
@@ -512,104 +512,112 @@ function Gl(e) {
512
512
  }
513
513
  return !0;
514
514
  }
515
- function Ql(e) {
515
+ function or(e) {
516
516
  return e !== null ? e : [];
517
517
  }
518
- var li = new O("tag:yaml.org,2002:omap", {
518
+ var di = new N("tag:yaml.org,2002:omap", {
519
519
  kind: "sequence",
520
- resolve: Gl,
521
- construct: Ql
522
- }), Wl = Object.prototype.toString;
523
- function Jl(e) {
520
+ resolve: tr,
521
+ construct: or
522
+ }), ur = Object.prototype.toString;
523
+ function ar(e) {
524
524
  if (e === null) return !0;
525
525
  var n, i, r, l, o, t = e;
526
526
  for (o = new Array(t.length), n = 0, i = t.length; n < i; n += 1) {
527
- if (r = t[n], Wl.call(r) !== "[object Object]" || (l = Object.keys(r), l.length !== 1)) return !1;
527
+ if (r = t[n], ur.call(r) !== "[object Object]" || (l = Object.keys(r), l.length !== 1)) return !1;
528
528
  o[n] = [l[0], r[l[0]]];
529
529
  }
530
530
  return !0;
531
531
  }
532
- function Zl(e) {
532
+ function sr(e) {
533
533
  if (e === null) return [];
534
534
  var n, i, r, l, o, t = e;
535
535
  for (o = new Array(t.length), n = 0, i = t.length; n < i; n += 1)
536
536
  r = t[n], l = Object.keys(r), o[n] = [l[0], r[l[0]]];
537
537
  return o;
538
538
  }
539
- var ri = new O("tag:yaml.org,2002:pairs", {
539
+ var pi = new N("tag:yaml.org,2002:pairs", {
540
540
  kind: "sequence",
541
- resolve: Jl,
542
- construct: Zl
543
- }), Xl = Object.prototype.hasOwnProperty;
544
- function er(e) {
541
+ resolve: ar,
542
+ construct: sr
543
+ }), cr = Object.prototype.hasOwnProperty;
544
+ function fr(e) {
545
545
  if (e === null) return !0;
546
546
  var n, i = e;
547
547
  for (n in i)
548
- if (Xl.call(i, n) && i[n] !== null)
548
+ if (cr.call(i, n) && i[n] !== null)
549
549
  return !1;
550
550
  return !0;
551
551
  }
552
- function nr(e) {
552
+ function dr(e) {
553
553
  return e !== null ? e : {};
554
554
  }
555
- var ti = new O("tag:yaml.org,2002:set", {
555
+ var mi = new N("tag:yaml.org,2002:set", {
556
556
  kind: "mapping",
557
- resolve: er,
558
- construct: nr
559
- }), en = Jn.extend({
557
+ resolve: fr,
558
+ construct: dr
559
+ }), on = oi.extend({
560
560
  implicit: [
561
- ei,
562
- ni
561
+ si,
562
+ ci
563
563
  ],
564
564
  explicit: [
565
- ii,
566
- li,
567
- ri,
568
- ti
565
+ fi,
566
+ di,
567
+ pi,
568
+ mi
569
569
  ]
570
- }), J = Object.prototype.hasOwnProperty, Fe = 1, oi = 2, ui = 3, Te = 4, Ve = 1, ir = 2, xn = 3, lr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, rr = /[\x85\u2028\u2029]/, tr = /[,\[\]\{\}]/, ai = /^(?:!|!!|![a-z\-]+!)$/i, si = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
571
- function yn(e) {
570
+ }), X = Object.prototype.hasOwnProperty, Oe = 1, hi = 2, vi = 3, Le = 4, Qe = 1, pr = 2, En = 3, mr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, hr = /[\x85\u2028\u2029]/, vr = /[,\[\]\{\}]/, xi = /^(?:!|!!|![a-z\-]+!)$/i, yi = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
571
+ function Fn(e) {
572
572
  return Object.prototype.toString.call(e);
573
573
  }
574
- function H(e) {
574
+ function G(e) {
575
575
  return e === 10 || e === 13;
576
576
  }
577
- function ne(e) {
577
+ function le(e) {
578
578
  return e === 9 || e === 32;
579
579
  }
580
580
  function U(e) {
581
581
  return e === 9 || e === 32 || e === 10 || e === 13;
582
582
  }
583
- function ue(e) {
583
+ function se(e) {
584
584
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
585
585
  }
586
- function or(e) {
586
+ function xr(e) {
587
587
  var n;
588
588
  return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
589
589
  }
590
- function ur(e) {
590
+ function yr(e) {
591
591
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
592
592
  }
593
- function ar(e) {
593
+ function gr(e) {
594
594
  return 48 <= e && e <= 57 ? e - 48 : -1;
595
595
  }
596
- function gn(e) {
596
+ function Tn(e) {
597
597
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
598
598
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
599
599
  }
600
- function sr(e) {
600
+ function br(e) {
601
601
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
602
602
  (e - 65536 >> 10) + 55296,
603
603
  (e - 65536 & 1023) + 56320
604
604
  );
605
605
  }
606
- var ci = new Array(256), fi = new Array(256);
607
- for (var re = 0; re < 256; re++)
608
- ci[re] = gn(re) ? 1 : 0, fi[re] = gn(re);
609
- function cr(e, n) {
610
- this.input = e, this.filename = n.filename || null, this.schema = n.schema || en, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
606
+ function gi(e, n, i) {
607
+ n === "__proto__" ? Object.defineProperty(e, n, {
608
+ configurable: !0,
609
+ enumerable: !0,
610
+ writable: !0,
611
+ value: i
612
+ }) : e[n] = i;
613
+ }
614
+ var bi = new Array(256), _i = new Array(256);
615
+ for (var oe = 0; oe < 256; oe++)
616
+ bi[oe] = Tn(oe) ? 1 : 0, _i[oe] = Tn(oe);
617
+ function _r(e, n) {
618
+ this.input = e, this.filename = n.filename || null, this.schema = n.schema || on, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
611
619
  }
612
- function di(e, n) {
620
+ function wi(e, n) {
613
621
  var i = {
614
622
  name: e.filename,
615
623
  buffer: e.input.slice(0, -1),
@@ -618,173 +626,168 @@ function di(e, n) {
618
626
  line: e.line,
619
627
  column: e.position - e.lineStart
620
628
  };
621
- return i.snippet = ml(i), new R(n, i);
629
+ return i.snippet = Cl(i), new $(n, i);
622
630
  }
623
- function w(e, n) {
624
- throw di(e, n);
631
+ function _(e, n) {
632
+ throw wi(e, n);
625
633
  }
626
- function Ie(e, n) {
627
- e.onWarning && e.onWarning.call(null, di(e, n));
634
+ function Ne(e, n) {
635
+ e.onWarning && e.onWarning.call(null, wi(e, n));
628
636
  }
629
- var bn = {
637
+ var In = {
630
638
  YAML: function(n, i, r) {
631
639
  var l, o, t;
632
- n.version !== null && w(n, "duplication of %YAML directive"), r.length !== 1 && w(n, "YAML directive accepts exactly one argument"), l = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), l === null && w(n, "ill-formed argument of the YAML directive"), o = parseInt(l[1], 10), t = parseInt(l[2], 10), o !== 1 && w(n, "unacceptable YAML version of the document"), n.version = r[0], n.checkLineBreaks = t < 2, t !== 1 && t !== 2 && Ie(n, "unsupported YAML version of the document");
640
+ n.version !== null && _(n, "duplication of %YAML directive"), r.length !== 1 && _(n, "YAML directive accepts exactly one argument"), l = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), l === null && _(n, "ill-formed argument of the YAML directive"), o = parseInt(l[1], 10), t = parseInt(l[2], 10), o !== 1 && _(n, "unacceptable YAML version of the document"), n.version = r[0], n.checkLineBreaks = t < 2, t !== 1 && t !== 2 && Ne(n, "unsupported YAML version of the document");
633
641
  },
634
642
  TAG: function(n, i, r) {
635
643
  var l, o;
636
- r.length !== 2 && w(n, "TAG directive accepts exactly two arguments"), l = r[0], o = r[1], ai.test(l) || w(n, "ill-formed tag handle (first argument) of the TAG directive"), J.call(n.tagMap, l) && w(n, 'there is a previously declared suffix for "' + l + '" tag handle'), si.test(o) || w(n, "ill-formed tag prefix (second argument) of the TAG directive");
644
+ r.length !== 2 && _(n, "TAG directive accepts exactly two arguments"), l = r[0], o = r[1], xi.test(l) || _(n, "ill-formed tag handle (first argument) of the TAG directive"), X.call(n.tagMap, l) && _(n, 'there is a previously declared suffix for "' + l + '" tag handle'), yi.test(o) || _(n, "ill-formed tag prefix (second argument) of the TAG directive");
637
645
  try {
638
646
  o = decodeURIComponent(o);
639
647
  } catch {
640
- w(n, "tag prefix is malformed: " + o);
648
+ _(n, "tag prefix is malformed: " + o);
641
649
  }
642
650
  n.tagMap[l] = o;
643
651
  }
644
652
  };
645
- function W(e, n, i, r) {
653
+ function Z(e, n, i, r) {
646
654
  var l, o, t, u;
647
655
  if (n < i) {
648
656
  if (u = e.input.slice(n, i), r)
649
657
  for (l = 0, o = u.length; l < o; l += 1)
650
- t = u.charCodeAt(l), t === 9 || 32 <= t && t <= 1114111 || w(e, "expected valid JSON character");
651
- else lr.test(u) && w(e, "the stream contains non-printable characters");
658
+ t = u.charCodeAt(l), t === 9 || 32 <= t && t <= 1114111 || _(e, "expected valid JSON character");
659
+ else mr.test(u) && _(e, "the stream contains non-printable characters");
652
660
  e.result += u;
653
661
  }
654
662
  }
655
- function wn(e, n, i, r) {
663
+ function On(e, n, i, r) {
656
664
  var l, o, t, u;
657
- for (I.isObject(i) || w(e, "cannot merge mappings; the provided source object is unacceptable"), l = Object.keys(i), t = 0, u = l.length; t < u; t += 1)
658
- o = l[t], J.call(n, o) || (n[o] = i[o], r[o] = !0);
665
+ for (O.isObject(i) || _(e, "cannot merge mappings; the provided source object is unacceptable"), l = Object.keys(i), t = 0, u = l.length; t < u; t += 1)
666
+ o = l[t], X.call(n, o) || (gi(n, o, i[o]), r[o] = !0);
659
667
  }
660
- function ae(e, n, i, r, l, o, t, u, a) {
661
- var s, h;
668
+ function ce(e, n, i, r, l, o, t, u, a) {
669
+ var s, m;
662
670
  if (Array.isArray(l))
663
- for (l = Array.prototype.slice.call(l), s = 0, h = l.length; s < h; s += 1)
664
- Array.isArray(l[s]) && w(e, "nested arrays are not supported inside keys"), typeof l == "object" && yn(l[s]) === "[object Object]" && (l[s] = "[object Object]");
665
- if (typeof l == "object" && yn(l) === "[object Object]" && (l = "[object Object]"), l = String(l), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
671
+ for (l = Array.prototype.slice.call(l), s = 0, m = l.length; s < m; s += 1)
672
+ Array.isArray(l[s]) && _(e, "nested arrays are not supported inside keys"), typeof l == "object" && Fn(l[s]) === "[object Object]" && (l[s] = "[object Object]");
673
+ if (typeof l == "object" && Fn(l) === "[object Object]" && (l = "[object Object]"), l = String(l), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
666
674
  if (Array.isArray(o))
667
- for (s = 0, h = o.length; s < h; s += 1)
668
- wn(e, n, o[s], i);
675
+ for (s = 0, m = o.length; s < m; s += 1)
676
+ On(e, n, o[s], i);
669
677
  else
670
- wn(e, n, o, i);
678
+ On(e, n, o, i);
671
679
  else
672
- !e.json && !J.call(i, l) && J.call(n, l) && (e.line = t || e.line, e.lineStart = u || e.lineStart, e.position = a || e.position, w(e, "duplicated mapping key")), l === "__proto__" ? Object.defineProperty(n, l, {
673
- configurable: !0,
674
- enumerable: !0,
675
- writable: !0,
676
- value: o
677
- }) : n[l] = o, delete i[l];
680
+ !e.json && !X.call(i, l) && X.call(n, l) && (e.line = t || e.line, e.lineStart = u || e.lineStart, e.position = a || e.position, _(e, "duplicated mapping key")), gi(n, l, o), delete i[l];
678
681
  return n;
679
682
  }
680
- function nn(e) {
683
+ function un(e) {
681
684
  var n;
682
- n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : w(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
685
+ n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : _(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
683
686
  }
684
- function F(e, n, i) {
687
+ function T(e, n, i) {
685
688
  for (var r = 0, l = e.input.charCodeAt(e.position); l !== 0; ) {
686
- for (; ne(l); )
689
+ for (; le(l); )
687
690
  l === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), l = e.input.charCodeAt(++e.position);
688
691
  if (n && l === 35)
689
692
  do
690
693
  l = e.input.charCodeAt(++e.position);
691
694
  while (l !== 10 && l !== 13 && l !== 0);
692
- if (H(l))
693
- for (nn(e), l = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; l === 32; )
695
+ if (G(l))
696
+ for (un(e), l = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; l === 32; )
694
697
  e.lineIndent++, l = e.input.charCodeAt(++e.position);
695
698
  else
696
699
  break;
697
700
  }
698
- return i !== -1 && r !== 0 && e.lineIndent < i && Ie(e, "deficient indentation"), r;
701
+ return i !== -1 && r !== 0 && e.lineIndent < i && Ne(e, "deficient indentation"), r;
699
702
  }
700
- function De(e) {
703
+ function je(e) {
701
704
  var n = e.position, i;
702
705
  return i = e.input.charCodeAt(n), !!((i === 45 || i === 46) && i === e.input.charCodeAt(n + 1) && i === e.input.charCodeAt(n + 2) && (n += 3, i = e.input.charCodeAt(n), i === 0 || U(i)));
703
706
  }
704
- function ln(e, n) {
705
- n === 1 ? e.result += " " : n > 1 && (e.result += I.repeat(`
707
+ function an(e, n) {
708
+ n === 1 ? e.result += " " : n > 1 && (e.result += O.repeat(`
706
709
  `, n - 1));
707
710
  }
708
- function fr(e, n, i) {
709
- var r, l, o, t, u, a, s, h, d = e.kind, y = e.result, g;
710
- if (g = e.input.charCodeAt(e.position), U(g) || ue(g) || g === 35 || g === 38 || g === 42 || g === 33 || g === 124 || g === 62 || g === 39 || g === 34 || g === 37 || g === 64 || g === 96 || (g === 63 || g === 45) && (l = e.input.charCodeAt(e.position + 1), U(l) || i && ue(l)))
711
+ function wr(e, n, i) {
712
+ var r, l, o, t, u, a, s, m, d = e.kind, y = e.result, b;
713
+ if (b = e.input.charCodeAt(e.position), U(b) || se(b) || b === 35 || b === 38 || b === 42 || b === 33 || b === 124 || b === 62 || b === 39 || b === 34 || b === 37 || b === 64 || b === 96 || (b === 63 || b === 45) && (l = e.input.charCodeAt(e.position + 1), U(l) || i && se(l)))
711
714
  return !1;
712
- for (e.kind = "scalar", e.result = "", o = t = e.position, u = !1; g !== 0; ) {
713
- if (g === 58) {
714
- if (l = e.input.charCodeAt(e.position + 1), U(l) || i && ue(l))
715
+ for (e.kind = "scalar", e.result = "", o = t = e.position, u = !1; b !== 0; ) {
716
+ if (b === 58) {
717
+ if (l = e.input.charCodeAt(e.position + 1), U(l) || i && se(l))
715
718
  break;
716
- } else if (g === 35) {
719
+ } else if (b === 35) {
717
720
  if (r = e.input.charCodeAt(e.position - 1), U(r))
718
721
  break;
719
722
  } else {
720
- if (e.position === e.lineStart && De(e) || i && ue(g))
723
+ if (e.position === e.lineStart && je(e) || i && se(b))
721
724
  break;
722
- if (H(g))
723
- if (a = e.line, s = e.lineStart, h = e.lineIndent, F(e, !1, -1), e.lineIndent >= n) {
724
- u = !0, g = e.input.charCodeAt(e.position);
725
+ if (G(b))
726
+ if (a = e.line, s = e.lineStart, m = e.lineIndent, T(e, !1, -1), e.lineIndent >= n) {
727
+ u = !0, b = e.input.charCodeAt(e.position);
725
728
  continue;
726
729
  } else {
727
- e.position = t, e.line = a, e.lineStart = s, e.lineIndent = h;
730
+ e.position = t, e.line = a, e.lineStart = s, e.lineIndent = m;
728
731
  break;
729
732
  }
730
733
  }
731
- u && (W(e, o, t, !1), ln(e, e.line - a), o = t = e.position, u = !1), ne(g) || (t = e.position + 1), g = e.input.charCodeAt(++e.position);
734
+ u && (Z(e, o, t, !1), an(e, e.line - a), o = t = e.position, u = !1), le(b) || (t = e.position + 1), b = e.input.charCodeAt(++e.position);
732
735
  }
733
- return W(e, o, t, !1), e.result ? !0 : (e.kind = d, e.result = y, !1);
736
+ return Z(e, o, t, !1), e.result ? !0 : (e.kind = d, e.result = y, !1);
734
737
  }
735
- function dr(e, n) {
738
+ function Ar(e, n) {
736
739
  var i, r, l;
737
740
  if (i = e.input.charCodeAt(e.position), i !== 39)
738
741
  return !1;
739
742
  for (e.kind = "scalar", e.result = "", e.position++, r = l = e.position; (i = e.input.charCodeAt(e.position)) !== 0; )
740
743
  if (i === 39)
741
- if (W(e, r, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39)
744
+ if (Z(e, r, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39)
742
745
  r = e.position, e.position++, l = e.position;
743
746
  else
744
747
  return !0;
745
- else H(i) ? (W(e, r, l, !0), ln(e, F(e, !1, n)), r = l = e.position) : e.position === e.lineStart && De(e) ? w(e, "unexpected end of the document within a single quoted scalar") : (e.position++, l = e.position);
746
- w(e, "unexpected end of the stream within a single quoted scalar");
748
+ else G(i) ? (Z(e, r, l, !0), an(e, T(e, !1, n)), r = l = e.position) : e.position === e.lineStart && je(e) ? _(e, "unexpected end of the document within a single quoted scalar") : (e.position++, l = e.position);
749
+ _(e, "unexpected end of the stream within a single quoted scalar");
747
750
  }
748
- function pr(e, n) {
751
+ function kr(e, n) {
749
752
  var i, r, l, o, t, u;
750
753
  if (u = e.input.charCodeAt(e.position), u !== 34)
751
754
  return !1;
752
755
  for (e.kind = "scalar", e.result = "", e.position++, i = r = e.position; (u = e.input.charCodeAt(e.position)) !== 0; ) {
753
756
  if (u === 34)
754
- return W(e, i, e.position, !0), e.position++, !0;
757
+ return Z(e, i, e.position, !0), e.position++, !0;
755
758
  if (u === 92) {
756
- if (W(e, i, e.position, !0), u = e.input.charCodeAt(++e.position), H(u))
757
- F(e, !1, n);
758
- else if (u < 256 && ci[u])
759
- e.result += fi[u], e.position++;
760
- else if ((t = ur(u)) > 0) {
759
+ if (Z(e, i, e.position, !0), u = e.input.charCodeAt(++e.position), G(u))
760
+ T(e, !1, n);
761
+ else if (u < 256 && bi[u])
762
+ e.result += _i[u], e.position++;
763
+ else if ((t = yr(u)) > 0) {
761
764
  for (l = t, o = 0; l > 0; l--)
762
- u = e.input.charCodeAt(++e.position), (t = or(u)) >= 0 ? o = (o << 4) + t : w(e, "expected hexadecimal character");
763
- e.result += sr(o), e.position++;
765
+ u = e.input.charCodeAt(++e.position), (t = xr(u)) >= 0 ? o = (o << 4) + t : _(e, "expected hexadecimal character");
766
+ e.result += br(o), e.position++;
764
767
  } else
765
- w(e, "unknown escape sequence");
768
+ _(e, "unknown escape sequence");
766
769
  i = r = e.position;
767
- } else H(u) ? (W(e, i, r, !0), ln(e, F(e, !1, n)), i = r = e.position) : e.position === e.lineStart && De(e) ? w(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
770
+ } else G(u) ? (Z(e, i, r, !0), an(e, T(e, !1, n)), i = r = e.position) : e.position === e.lineStart && je(e) ? _(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
768
771
  }
769
- w(e, "unexpected end of the stream within a double quoted scalar");
770
- }
771
- function mr(e, n) {
772
- var i = !0, r, l, o, t = e.tag, u, a = e.anchor, s, h, d, y, g, p = /* @__PURE__ */ Object.create(null), m, x, _, b;
773
- if (b = e.input.charCodeAt(e.position), b === 91)
774
- h = 93, g = !1, u = [];
775
- else if (b === 123)
776
- h = 125, g = !0, u = {};
772
+ _(e, "unexpected end of the stream within a double quoted scalar");
773
+ }
774
+ function Cr(e, n) {
775
+ var i = !0, r, l, o, t = e.tag, u, a = e.anchor, s, m, d, y, b, p = /* @__PURE__ */ Object.create(null), h, x, w, g;
776
+ if (g = e.input.charCodeAt(e.position), g === 91)
777
+ m = 93, b = !1, u = [];
778
+ else if (g === 123)
779
+ m = 125, b = !0, u = {};
777
780
  else
778
781
  return !1;
779
- for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(++e.position); b !== 0; ) {
780
- if (F(e, !0, n), b = e.input.charCodeAt(e.position), b === h)
781
- return e.position++, e.tag = t, e.anchor = a, e.kind = g ? "mapping" : "sequence", e.result = u, !0;
782
- i ? b === 44 && w(e, "expected the node content, but found ','") : w(e, "missed comma between flow collection entries"), x = m = _ = null, d = y = !1, b === 63 && (s = e.input.charCodeAt(e.position + 1), U(s) && (d = y = !0, e.position++, F(e, !0, n))), r = e.line, l = e.lineStart, o = e.position, se(e, n, Fe, !1, !0), x = e.tag, m = e.result, F(e, !0, n), b = e.input.charCodeAt(e.position), (y || e.line === r) && b === 58 && (d = !0, b = e.input.charCodeAt(++e.position), F(e, !0, n), se(e, n, Fe, !1, !0), _ = e.result), g ? ae(e, u, p, x, m, _, r, l, o) : d ? u.push(ae(e, null, p, x, m, _, r, l, o)) : u.push(m), F(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (i = !0, b = e.input.charCodeAt(++e.position)) : i = !1;
782
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = u), g = e.input.charCodeAt(++e.position); g !== 0; ) {
783
+ if (T(e, !0, n), g = e.input.charCodeAt(e.position), g === m)
784
+ return e.position++, e.tag = t, e.anchor = a, e.kind = b ? "mapping" : "sequence", e.result = u, !0;
785
+ i ? g === 44 && _(e, "expected the node content, but found ','") : _(e, "missed comma between flow collection entries"), x = h = w = null, d = y = !1, g === 63 && (s = e.input.charCodeAt(e.position + 1), U(s) && (d = y = !0, e.position++, T(e, !0, n))), r = e.line, l = e.lineStart, o = e.position, fe(e, n, Oe, !1, !0), x = e.tag, h = e.result, T(e, !0, n), g = e.input.charCodeAt(e.position), (y || e.line === r) && g === 58 && (d = !0, g = e.input.charCodeAt(++e.position), T(e, !0, n), fe(e, n, Oe, !1, !0), w = e.result), b ? ce(e, u, p, x, h, w, r, l, o) : d ? u.push(ce(e, null, p, x, h, w, r, l, o)) : u.push(h), T(e, !0, n), g = e.input.charCodeAt(e.position), g === 44 ? (i = !0, g = e.input.charCodeAt(++e.position)) : i = !1;
783
786
  }
784
- w(e, "unexpected end of the stream within a flow collection");
787
+ _(e, "unexpected end of the stream within a flow collection");
785
788
  }
786
- function hr(e, n) {
787
- var i, r, l = Ve, o = !1, t = !1, u = n, a = 0, s = !1, h, d;
789
+ function Sr(e, n) {
790
+ var i, r, l = Qe, o = !1, t = !1, u = n, a = 0, s = !1, m, d;
788
791
  if (d = e.input.charCodeAt(e.position), d === 124)
789
792
  r = !1;
790
793
  else if (d === 62)
@@ -793,225 +796,225 @@ function hr(e, n) {
793
796
  return !1;
794
797
  for (e.kind = "scalar", e.result = ""; d !== 0; )
795
798
  if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
796
- Ve === l ? l = d === 43 ? xn : ir : w(e, "repeat of a chomping mode identifier");
797
- else if ((h = ar(d)) >= 0)
798
- h === 0 ? w(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : t ? w(e, "repeat of an indentation width identifier") : (u = n + h - 1, t = !0);
799
+ Qe === l ? l = d === 43 ? En : pr : _(e, "repeat of a chomping mode identifier");
800
+ else if ((m = gr(d)) >= 0)
801
+ m === 0 ? _(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : t ? _(e, "repeat of an indentation width identifier") : (u = n + m - 1, t = !0);
799
802
  else
800
803
  break;
801
- if (ne(d)) {
804
+ if (le(d)) {
802
805
  do
803
806
  d = e.input.charCodeAt(++e.position);
804
- while (ne(d));
807
+ while (le(d));
805
808
  if (d === 35)
806
809
  do
807
810
  d = e.input.charCodeAt(++e.position);
808
- while (!H(d) && d !== 0);
811
+ while (!G(d) && d !== 0);
809
812
  }
810
813
  for (; d !== 0; ) {
811
- for (nn(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!t || e.lineIndent < u) && d === 32; )
814
+ for (un(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!t || e.lineIndent < u) && d === 32; )
812
815
  e.lineIndent++, d = e.input.charCodeAt(++e.position);
813
- if (!t && e.lineIndent > u && (u = e.lineIndent), H(d)) {
816
+ if (!t && e.lineIndent > u && (u = e.lineIndent), G(d)) {
814
817
  a++;
815
818
  continue;
816
819
  }
817
820
  if (e.lineIndent < u) {
818
- l === xn ? e.result += I.repeat(`
819
- `, o ? 1 + a : a) : l === Ve && o && (e.result += `
821
+ l === En ? e.result += O.repeat(`
822
+ `, o ? 1 + a : a) : l === Qe && o && (e.result += `
820
823
  `);
821
824
  break;
822
825
  }
823
- for (r ? ne(d) ? (s = !0, e.result += I.repeat(`
824
- `, o ? 1 + a : a)) : s ? (s = !1, e.result += I.repeat(`
825
- `, a + 1)) : a === 0 ? o && (e.result += " ") : e.result += I.repeat(`
826
- `, a) : e.result += I.repeat(`
827
- `, o ? 1 + a : a), o = !0, t = !0, a = 0, i = e.position; !H(d) && d !== 0; )
826
+ for (r ? le(d) ? (s = !0, e.result += O.repeat(`
827
+ `, o ? 1 + a : a)) : s ? (s = !1, e.result += O.repeat(`
828
+ `, a + 1)) : a === 0 ? o && (e.result += " ") : e.result += O.repeat(`
829
+ `, a) : e.result += O.repeat(`
830
+ `, o ? 1 + a : a), o = !0, t = !0, a = 0, i = e.position; !G(d) && d !== 0; )
828
831
  d = e.input.charCodeAt(++e.position);
829
- W(e, i, e.position, !1);
832
+ Z(e, i, e.position, !1);
830
833
  }
831
834
  return !0;
832
835
  }
833
- function _n(e, n) {
836
+ function Ln(e, n) {
834
837
  var i, r = e.tag, l = e.anchor, o = [], t, u = !1, a;
835
838
  if (e.firstTabInLine !== -1) return !1;
836
- for (e.anchor !== null && (e.anchorMap[e.anchor] = o), a = e.input.charCodeAt(e.position); a !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, w(e, "tab characters must not be used in indentation")), !(a !== 45 || (t = e.input.charCodeAt(e.position + 1), !U(t)))); ) {
837
- if (u = !0, e.position++, F(e, !0, -1) && e.lineIndent <= n) {
839
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = o), a = e.input.charCodeAt(e.position); a !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), !(a !== 45 || (t = e.input.charCodeAt(e.position + 1), !U(t)))); ) {
840
+ if (u = !0, e.position++, T(e, !0, -1) && e.lineIndent <= n) {
838
841
  o.push(null), a = e.input.charCodeAt(e.position);
839
842
  continue;
840
843
  }
841
- if (i = e.line, se(e, n, ui, !1, !0), o.push(e.result), F(e, !0, -1), a = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > n) && a !== 0)
842
- w(e, "bad indentation of a sequence entry");
844
+ if (i = e.line, fe(e, n, vi, !1, !0), o.push(e.result), T(e, !0, -1), a = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > n) && a !== 0)
845
+ _(e, "bad indentation of a sequence entry");
843
846
  else if (e.lineIndent < n)
844
847
  break;
845
848
  }
846
849
  return u ? (e.tag = r, e.anchor = l, e.kind = "sequence", e.result = o, !0) : !1;
847
850
  }
848
- function vr(e, n, i) {
849
- var r, l, o, t, u, a, s = e.tag, h = e.anchor, d = {}, y = /* @__PURE__ */ Object.create(null), g = null, p = null, m = null, x = !1, _ = !1, b;
851
+ function Er(e, n, i) {
852
+ var r, l, o, t, u, a, s = e.tag, m = e.anchor, d = {}, y = /* @__PURE__ */ Object.create(null), b = null, p = null, h = null, x = !1, w = !1, g;
850
853
  if (e.firstTabInLine !== -1) return !1;
851
- for (e.anchor !== null && (e.anchorMap[e.anchor] = d), b = e.input.charCodeAt(e.position); b !== 0; ) {
852
- if (!x && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, w(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (b === 63 || b === 58) && U(r))
853
- b === 63 ? (x && (ae(e, d, y, g, p, null, t, u, a), g = p = m = null), _ = !0, x = !0, l = !0) : x ? (x = !1, l = !0) : w(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
854
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = d), g = e.input.charCodeAt(e.position); g !== 0; ) {
855
+ if (!x && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (g === 63 || g === 58) && U(r))
856
+ g === 63 ? (x && (ce(e, d, y, b, p, null, t, u, a), b = p = h = null), w = !0, x = !0, l = !0) : x ? (x = !1, l = !0) : _(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, g = r;
854
857
  else {
855
- if (t = e.line, u = e.lineStart, a = e.position, !se(e, i, oi, !1, !0))
858
+ if (t = e.line, u = e.lineStart, a = e.position, !fe(e, i, hi, !1, !0))
856
859
  break;
857
860
  if (e.line === o) {
858
- for (b = e.input.charCodeAt(e.position); ne(b); )
859
- b = e.input.charCodeAt(++e.position);
860
- if (b === 58)
861
- b = e.input.charCodeAt(++e.position), U(b) || w(e, "a whitespace character is expected after the key-value separator within a block mapping"), x && (ae(e, d, y, g, p, null, t, u, a), g = p = m = null), _ = !0, x = !1, l = !1, g = e.tag, p = e.result;
862
- else if (_)
863
- w(e, "can not read an implicit mapping pair; a colon is missed");
861
+ for (g = e.input.charCodeAt(e.position); le(g); )
862
+ g = e.input.charCodeAt(++e.position);
863
+ if (g === 58)
864
+ g = e.input.charCodeAt(++e.position), U(g) || _(e, "a whitespace character is expected after the key-value separator within a block mapping"), x && (ce(e, d, y, b, p, null, t, u, a), b = p = h = null), w = !0, x = !1, l = !1, b = e.tag, p = e.result;
865
+ else if (w)
866
+ _(e, "can not read an implicit mapping pair; a colon is missed");
864
867
  else
865
- return e.tag = s, e.anchor = h, !0;
866
- } else if (_)
867
- w(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
868
+ return e.tag = s, e.anchor = m, !0;
869
+ } else if (w)
870
+ _(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
868
871
  else
869
- return e.tag = s, e.anchor = h, !0;
872
+ return e.tag = s, e.anchor = m, !0;
870
873
  }
871
- if ((e.line === o || e.lineIndent > n) && (x && (t = e.line, u = e.lineStart, a = e.position), se(e, n, Te, !0, l) && (x ? p = e.result : m = e.result), x || (ae(e, d, y, g, p, m, t, u, a), g = p = m = null), F(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && b !== 0)
872
- w(e, "bad indentation of a mapping entry");
874
+ if ((e.line === o || e.lineIndent > n) && (x && (t = e.line, u = e.lineStart, a = e.position), fe(e, n, Le, !0, l) && (x ? p = e.result : h = e.result), x || (ce(e, d, y, b, p, h, t, u, a), b = p = h = null), T(e, !0, -1), g = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && g !== 0)
875
+ _(e, "bad indentation of a mapping entry");
873
876
  else if (e.lineIndent < n)
874
877
  break;
875
878
  }
876
- return x && ae(e, d, y, g, p, null, t, u, a), _ && (e.tag = s, e.anchor = h, e.kind = "mapping", e.result = d), _;
879
+ return x && ce(e, d, y, b, p, null, t, u, a), w && (e.tag = s, e.anchor = m, e.kind = "mapping", e.result = d), w;
877
880
  }
878
- function xr(e) {
881
+ function Fr(e) {
879
882
  var n, i = !1, r = !1, l, o, t;
880
883
  if (t = e.input.charCodeAt(e.position), t !== 33) return !1;
881
- if (e.tag !== null && w(e, "duplication of a tag property"), t = e.input.charCodeAt(++e.position), t === 60 ? (i = !0, t = e.input.charCodeAt(++e.position)) : t === 33 ? (r = !0, l = "!!", t = e.input.charCodeAt(++e.position)) : l = "!", n = e.position, i) {
884
+ if (e.tag !== null && _(e, "duplication of a tag property"), t = e.input.charCodeAt(++e.position), t === 60 ? (i = !0, t = e.input.charCodeAt(++e.position)) : t === 33 ? (r = !0, l = "!!", t = e.input.charCodeAt(++e.position)) : l = "!", n = e.position, i) {
882
885
  do
883
886
  t = e.input.charCodeAt(++e.position);
884
887
  while (t !== 0 && t !== 62);
885
- e.position < e.length ? (o = e.input.slice(n, e.position), t = e.input.charCodeAt(++e.position)) : w(e, "unexpected end of the stream within a verbatim tag");
888
+ e.position < e.length ? (o = e.input.slice(n, e.position), t = e.input.charCodeAt(++e.position)) : _(e, "unexpected end of the stream within a verbatim tag");
886
889
  } else {
887
890
  for (; t !== 0 && !U(t); )
888
- t === 33 && (r ? w(e, "tag suffix cannot contain exclamation marks") : (l = e.input.slice(n - 1, e.position + 1), ai.test(l) || w(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), t = e.input.charCodeAt(++e.position);
889
- o = e.input.slice(n, e.position), tr.test(o) && w(e, "tag suffix cannot contain flow indicator characters");
891
+ t === 33 && (r ? _(e, "tag suffix cannot contain exclamation marks") : (l = e.input.slice(n - 1, e.position + 1), xi.test(l) || _(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), t = e.input.charCodeAt(++e.position);
892
+ o = e.input.slice(n, e.position), vr.test(o) && _(e, "tag suffix cannot contain flow indicator characters");
890
893
  }
891
- o && !si.test(o) && w(e, "tag name cannot contain such characters: " + o);
894
+ o && !yi.test(o) && _(e, "tag name cannot contain such characters: " + o);
892
895
  try {
893
896
  o = decodeURIComponent(o);
894
897
  } catch {
895
- w(e, "tag name is malformed: " + o);
898
+ _(e, "tag name is malformed: " + o);
896
899
  }
897
- return i ? e.tag = o : J.call(e.tagMap, l) ? e.tag = e.tagMap[l] + o : l === "!" ? e.tag = "!" + o : l === "!!" ? e.tag = "tag:yaml.org,2002:" + o : w(e, 'undeclared tag handle "' + l + '"'), !0;
900
+ return i ? e.tag = o : X.call(e.tagMap, l) ? e.tag = e.tagMap[l] + o : l === "!" ? e.tag = "!" + o : l === "!!" ? e.tag = "tag:yaml.org,2002:" + o : _(e, 'undeclared tag handle "' + l + '"'), !0;
898
901
  }
899
- function yr(e) {
902
+ function Tr(e) {
900
903
  var n, i;
901
904
  if (i = e.input.charCodeAt(e.position), i !== 38) return !1;
902
- for (e.anchor !== null && w(e, "duplication of an anchor property"), i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !U(i) && !ue(i); )
905
+ for (e.anchor !== null && _(e, "duplication of an anchor property"), i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !U(i) && !se(i); )
903
906
  i = e.input.charCodeAt(++e.position);
904
- return e.position === n && w(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
907
+ return e.position === n && _(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
905
908
  }
906
- function gr(e) {
909
+ function Ir(e) {
907
910
  var n, i, r;
908
911
  if (r = e.input.charCodeAt(e.position), r !== 42) return !1;
909
- for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !U(r) && !ue(r); )
912
+ for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !U(r) && !se(r); )
910
913
  r = e.input.charCodeAt(++e.position);
911
- return e.position === n && w(e, "name of an alias node must contain at least one character"), i = e.input.slice(n, e.position), J.call(e.anchorMap, i) || w(e, 'unidentified alias "' + i + '"'), e.result = e.anchorMap[i], F(e, !0, -1), !0;
912
- }
913
- function se(e, n, i, r, l) {
914
- var o, t, u, a = 1, s = !1, h = !1, d, y, g, p, m, x;
915
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = t = u = Te === i || ui === i, r && F(e, !0, -1) && (s = !0, e.lineIndent > n ? a = 1 : e.lineIndent === n ? a = 0 : e.lineIndent < n && (a = -1)), a === 1)
916
- for (; xr(e) || yr(e); )
917
- F(e, !0, -1) ? (s = !0, u = o, e.lineIndent > n ? a = 1 : e.lineIndent === n ? a = 0 : e.lineIndent < n && (a = -1)) : u = !1;
918
- if (u && (u = s || l), (a === 1 || Te === i) && (Fe === i || oi === i ? m = n : m = n + 1, x = e.position - e.lineStart, a === 1 ? u && (_n(e, x) || vr(e, x, m)) || mr(e, m) ? h = !0 : (t && hr(e, m) || dr(e, m) || pr(e, m) ? h = !0 : gr(e) ? (h = !0, (e.tag !== null || e.anchor !== null) && w(e, "alias node should not have any properties")) : fr(e, m, Fe === i) && (h = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : a === 0 && (h = u && _n(e, x))), e.tag === null)
914
+ return e.position === n && _(e, "name of an alias node must contain at least one character"), i = e.input.slice(n, e.position), X.call(e.anchorMap, i) || _(e, 'unidentified alias "' + i + '"'), e.result = e.anchorMap[i], T(e, !0, -1), !0;
915
+ }
916
+ function fe(e, n, i, r, l) {
917
+ var o, t, u, a = 1, s = !1, m = !1, d, y, b, p, h, x;
918
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = t = u = Le === i || vi === i, r && T(e, !0, -1) && (s = !0, e.lineIndent > n ? a = 1 : e.lineIndent === n ? a = 0 : e.lineIndent < n && (a = -1)), a === 1)
919
+ for (; Fr(e) || Tr(e); )
920
+ T(e, !0, -1) ? (s = !0, u = o, e.lineIndent > n ? a = 1 : e.lineIndent === n ? a = 0 : e.lineIndent < n && (a = -1)) : u = !1;
921
+ if (u && (u = s || l), (a === 1 || Le === i) && (Oe === i || hi === i ? h = n : h = n + 1, x = e.position - e.lineStart, a === 1 ? u && (Ln(e, x) || Er(e, x, h)) || Cr(e, h) ? m = !0 : (t && Sr(e, h) || Ar(e, h) || kr(e, h) ? m = !0 : Ir(e) ? (m = !0, (e.tag !== null || e.anchor !== null) && _(e, "alias node should not have any properties")) : wr(e, h, Oe === i) && (m = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : a === 0 && (m = u && Ln(e, x))), e.tag === null)
919
922
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
920
923
  else if (e.tag === "?") {
921
- for (e.result !== null && e.kind !== "scalar" && w(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), d = 0, y = e.implicitTypes.length; d < y; d += 1)
924
+ for (e.result !== null && e.kind !== "scalar" && _(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), d = 0, y = e.implicitTypes.length; d < y; d += 1)
922
925
  if (p = e.implicitTypes[d], p.resolve(e.result)) {
923
926
  e.result = p.construct(e.result), e.tag = p.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
924
927
  break;
925
928
  }
926
929
  } else if (e.tag !== "!") {
927
- if (J.call(e.typeMap[e.kind || "fallback"], e.tag))
930
+ if (X.call(e.typeMap[e.kind || "fallback"], e.tag))
928
931
  p = e.typeMap[e.kind || "fallback"][e.tag];
929
932
  else
930
- for (p = null, g = e.typeMap.multi[e.kind || "fallback"], d = 0, y = g.length; d < y; d += 1)
931
- if (e.tag.slice(0, g[d].tag.length) === g[d].tag) {
932
- p = g[d];
933
+ for (p = null, b = e.typeMap.multi[e.kind || "fallback"], d = 0, y = b.length; d < y; d += 1)
934
+ if (e.tag.slice(0, b[d].tag.length) === b[d].tag) {
935
+ p = b[d];
933
936
  break;
934
937
  }
935
- p || w(e, "unknown tag !<" + e.tag + ">"), e.result !== null && p.kind !== e.kind && w(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + p.kind + '", not "' + e.kind + '"'), p.resolve(e.result, e.tag) ? (e.result = p.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : w(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
938
+ p || _(e, "unknown tag !<" + e.tag + ">"), e.result !== null && p.kind !== e.kind && _(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + p.kind + '", not "' + e.kind + '"'), p.resolve(e.result, e.tag) ? (e.result = p.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : _(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
936
939
  }
937
- return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || h;
940
+ return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || m;
938
941
  }
939
- function br(e) {
942
+ function Or(e) {
940
943
  var n = e.position, i, r, l, o = !1, t;
941
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (t = e.input.charCodeAt(e.position)) !== 0 && (F(e, !0, -1), t = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || t !== 37)); ) {
944
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (t = e.input.charCodeAt(e.position)) !== 0 && (T(e, !0, -1), t = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || t !== 37)); ) {
942
945
  for (o = !0, t = e.input.charCodeAt(++e.position), i = e.position; t !== 0 && !U(t); )
943
946
  t = e.input.charCodeAt(++e.position);
944
- for (r = e.input.slice(i, e.position), l = [], r.length < 1 && w(e, "directive name must not be less than one character in length"); t !== 0; ) {
945
- for (; ne(t); )
947
+ for (r = e.input.slice(i, e.position), l = [], r.length < 1 && _(e, "directive name must not be less than one character in length"); t !== 0; ) {
948
+ for (; le(t); )
946
949
  t = e.input.charCodeAt(++e.position);
947
950
  if (t === 35) {
948
951
  do
949
952
  t = e.input.charCodeAt(++e.position);
950
- while (t !== 0 && !H(t));
953
+ while (t !== 0 && !G(t));
951
954
  break;
952
955
  }
953
- if (H(t)) break;
956
+ if (G(t)) break;
954
957
  for (i = e.position; t !== 0 && !U(t); )
955
958
  t = e.input.charCodeAt(++e.position);
956
959
  l.push(e.input.slice(i, e.position));
957
960
  }
958
- t !== 0 && nn(e), J.call(bn, r) ? bn[r](e, r, l) : Ie(e, 'unknown document directive "' + r + '"');
961
+ t !== 0 && un(e), X.call(In, r) ? In[r](e, r, l) : Ne(e, 'unknown document directive "' + r + '"');
959
962
  }
960
- if (F(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, F(e, !0, -1)) : o && w(e, "directives end mark is expected"), se(e, e.lineIndent - 1, Te, !1, !0), F(e, !0, -1), e.checkLineBreaks && rr.test(e.input.slice(n, e.position)) && Ie(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && De(e)) {
961
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, F(e, !0, -1));
963
+ if (T(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, T(e, !0, -1)) : o && _(e, "directives end mark is expected"), fe(e, e.lineIndent - 1, Le, !1, !0), T(e, !0, -1), e.checkLineBreaks && hr.test(e.input.slice(n, e.position)) && Ne(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && je(e)) {
964
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, T(e, !0, -1));
962
965
  return;
963
966
  }
964
967
  if (e.position < e.length - 1)
965
- w(e, "end of the stream or a document separator is expected");
968
+ _(e, "end of the stream or a document separator is expected");
966
969
  else
967
970
  return;
968
971
  }
969
- function pi(e, n) {
972
+ function Ai(e, n) {
970
973
  e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
971
974
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
972
- var i = new cr(e, n), r = e.indexOf("\0");
973
- for (r !== -1 && (i.position = r, w(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32; )
975
+ var i = new _r(e, n), r = e.indexOf("\0");
976
+ for (r !== -1 && (i.position = r, _(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32; )
974
977
  i.lineIndent += 1, i.position += 1;
975
978
  for (; i.position < i.length - 1; )
976
- br(i);
979
+ Or(i);
977
980
  return i.documents;
978
981
  }
979
- function wr(e, n, i) {
982
+ function Lr(e, n, i) {
980
983
  n !== null && typeof n == "object" && typeof i > "u" && (i = n, n = null);
981
- var r = pi(e, i);
984
+ var r = Ai(e, i);
982
985
  if (typeof n != "function")
983
986
  return r;
984
987
  for (var l = 0, o = r.length; l < o; l += 1)
985
988
  n(r[l]);
986
989
  }
987
- function _r(e, n) {
988
- var i = pi(e, n);
990
+ function Nr(e, n) {
991
+ var i = Ai(e, n);
989
992
  if (i.length !== 0) {
990
993
  if (i.length === 1)
991
994
  return i[0];
992
- throw new R("expected a single document in the stream, but found more");
995
+ throw new $("expected a single document in the stream, but found more");
993
996
  }
994
997
  }
995
- var Ar = wr, kr = _r, mi = {
996
- loadAll: Ar,
997
- load: kr
998
- }, hi = Object.prototype.toString, vi = Object.prototype.hasOwnProperty, rn = 65279, Cr = 9, ge = 10, Sr = 13, Er = 32, Fr = 33, Tr = 34, ze = 35, Ir = 37, Or = 38, Lr = 39, Nr = 42, xi = 44, Mr = 45, Oe = 58, Dr = 61, Rr = 62, $r = 63, jr = 64, yi = 91, gi = 93, Ur = 96, bi = 123, Br = 124, wi = 125, D = {};
999
- D[0] = "\\0";
1000
- D[7] = "\\a";
1001
- D[8] = "\\b";
1002
- D[9] = "\\t";
1003
- D[10] = "\\n";
1004
- D[11] = "\\v";
1005
- D[12] = "\\f";
1006
- D[13] = "\\r";
1007
- D[27] = "\\e";
1008
- D[34] = '\\"';
1009
- D[92] = "\\\\";
1010
- D[133] = "\\N";
1011
- D[160] = "\\_";
1012
- D[8232] = "\\L";
1013
- D[8233] = "\\P";
1014
- var Yr = [
998
+ var Mr = Lr, Dr = Nr, ki = {
999
+ loadAll: Mr,
1000
+ load: Dr
1001
+ }, Ci = Object.prototype.toString, Si = Object.prototype.hasOwnProperty, sn = 65279, Rr = 9, ge = 10, $r = 13, jr = 32, Ur = 33, Br = 34, Ze = 35, Yr = 37, Pr = 38, Hr = 39, Vr = 42, Ei = 44, qr = 45, Me = 58, Kr = 61, zr = 62, Gr = 63, Qr = 64, Fi = 91, Ti = 93, Wr = 96, Ii = 123, Jr = 124, Oi = 125, R = {};
1002
+ R[0] = "\\0";
1003
+ R[7] = "\\a";
1004
+ R[8] = "\\b";
1005
+ R[9] = "\\t";
1006
+ R[10] = "\\n";
1007
+ R[11] = "\\v";
1008
+ R[12] = "\\f";
1009
+ R[13] = "\\r";
1010
+ R[27] = "\\e";
1011
+ R[34] = '\\"';
1012
+ R[92] = "\\\\";
1013
+ R[133] = "\\N";
1014
+ R[160] = "\\_";
1015
+ R[8232] = "\\L";
1016
+ R[8233] = "\\P";
1017
+ var Zr = [
1015
1018
  "y",
1016
1019
  "Y",
1017
1020
  "yes",
@@ -1028,15 +1031,15 @@ var Yr = [
1028
1031
  "off",
1029
1032
  "Off",
1030
1033
  "OFF"
1031
- ], Pr = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
1032
- function Hr(e, n) {
1034
+ ], Xr = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
1035
+ function et(e, n) {
1033
1036
  var i, r, l, o, t, u, a;
1034
1037
  if (n === null) return {};
1035
1038
  for (i = {}, r = Object.keys(n), l = 0, o = r.length; l < o; l += 1)
1036
- t = r[l], u = String(n[t]), t.slice(0, 2) === "!!" && (t = "tag:yaml.org,2002:" + t.slice(2)), a = e.compiledTypeMap.fallback[t], a && vi.call(a.styleAliases, u) && (u = a.styleAliases[u]), i[t] = u;
1039
+ t = r[l], u = String(n[t]), t.slice(0, 2) === "!!" && (t = "tag:yaml.org,2002:" + t.slice(2)), a = e.compiledTypeMap.fallback[t], a && Si.call(a.styleAliases, u) && (u = a.styleAliases[u]), i[t] = u;
1037
1040
  return i;
1038
1041
  }
1039
- function Vr(e) {
1042
+ function nt(e) {
1040
1043
  var n, i, r;
1041
1044
  if (n = e.toString(16).toUpperCase(), e <= 255)
1042
1045
  i = "x", r = 2;
@@ -1045,97 +1048,97 @@ function Vr(e) {
1045
1048
  else if (e <= 4294967295)
1046
1049
  i = "U", r = 8;
1047
1050
  else
1048
- throw new R("code point within a string may not be greater than 0xFFFFFFFF");
1049
- return "\\" + i + I.repeat("0", r - n.length) + n;
1051
+ throw new $("code point within a string may not be greater than 0xFFFFFFFF");
1052
+ return "\\" + i + O.repeat("0", r - n.length) + n;
1050
1053
  }
1051
- var qr = 1, be = 2;
1052
- function Kr(e) {
1053
- this.schema = e.schema || en, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = I.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Hr(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? be : qr, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
1054
+ var it = 1, be = 2;
1055
+ function lt(e) {
1056
+ this.schema = e.schema || on, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = O.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = et(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? be : it, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
1054
1057
  }
1055
- function An(e, n) {
1056
- for (var i = I.repeat(" ", n), r = 0, l = -1, o = "", t, u = e.length; r < u; )
1058
+ function Nn(e, n) {
1059
+ for (var i = O.repeat(" ", n), r = 0, l = -1, o = "", t, u = e.length; r < u; )
1057
1060
  l = e.indexOf(`
1058
1061
  `, r), l === -1 ? (t = e.slice(r), r = u) : (t = e.slice(r, l + 1), r = l + 1), t.length && t !== `
1059
1062
  ` && (o += i), o += t;
1060
1063
  return o;
1061
1064
  }
1062
- function Ge(e, n) {
1065
+ function Xe(e, n) {
1063
1066
  return `
1064
- ` + I.repeat(" ", e.indent * n);
1067
+ ` + O.repeat(" ", e.indent * n);
1065
1068
  }
1066
- function zr(e, n) {
1069
+ function rt(e, n) {
1067
1070
  var i, r, l;
1068
1071
  for (i = 0, r = e.implicitTypes.length; i < r; i += 1)
1069
1072
  if (l = e.implicitTypes[i], l.resolve(n))
1070
1073
  return !0;
1071
1074
  return !1;
1072
1075
  }
1073
- function Le(e) {
1074
- return e === Er || e === Cr;
1076
+ function De(e) {
1077
+ return e === jr || e === Rr;
1075
1078
  }
1076
- function we(e) {
1077
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== rn || 65536 <= e && e <= 1114111;
1079
+ function _e(e) {
1080
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== sn || 65536 <= e && e <= 1114111;
1078
1081
  }
1079
- function kn(e) {
1080
- return we(e) && e !== rn && e !== Sr && e !== ge;
1082
+ function Mn(e) {
1083
+ return _e(e) && e !== sn && e !== $r && e !== ge;
1081
1084
  }
1082
- function Cn(e, n, i) {
1083
- var r = kn(e), l = r && !Le(e);
1085
+ function Dn(e, n, i) {
1086
+ var r = Mn(e), l = r && !De(e);
1084
1087
  return (
1085
1088
  // ns-plain-safe
1086
1089
  (i ? (
1087
1090
  // c = flow-in
1088
1091
  r
1089
- ) : r && e !== xi && e !== yi && e !== gi && e !== bi && e !== wi) && e !== ze && !(n === Oe && !l) || kn(n) && !Le(n) && e === ze || n === Oe && l
1092
+ ) : r && e !== Ei && e !== Fi && e !== Ti && e !== Ii && e !== Oi) && e !== Ze && !(n === Me && !l) || Mn(n) && !De(n) && e === Ze || n === Me && l
1090
1093
  );
1091
1094
  }
1092
- function Gr(e) {
1093
- return we(e) && e !== rn && !Le(e) && e !== Mr && e !== $r && e !== Oe && e !== xi && e !== yi && e !== gi && e !== bi && e !== wi && e !== ze && e !== Or && e !== Nr && e !== Fr && e !== Br && e !== Dr && e !== Rr && e !== Lr && e !== Tr && e !== Ir && e !== jr && e !== Ur;
1095
+ function tt(e) {
1096
+ return _e(e) && e !== sn && !De(e) && e !== qr && e !== Gr && e !== Me && e !== Ei && e !== Fi && e !== Ti && e !== Ii && e !== Oi && e !== Ze && e !== Pr && e !== Vr && e !== Ur && e !== Jr && e !== Kr && e !== zr && e !== Hr && e !== Br && e !== Yr && e !== Qr && e !== Wr;
1094
1097
  }
1095
- function Qr(e) {
1096
- return !Le(e) && e !== Oe;
1098
+ function ot(e) {
1099
+ return !De(e) && e !== Me;
1097
1100
  }
1098
1101
  function me(e, n) {
1099
1102
  var i = e.charCodeAt(n), r;
1100
1103
  return i >= 55296 && i <= 56319 && n + 1 < e.length && (r = e.charCodeAt(n + 1), r >= 56320 && r <= 57343) ? (i - 55296) * 1024 + r - 56320 + 65536 : i;
1101
1104
  }
1102
- function _i(e) {
1105
+ function Li(e) {
1103
1106
  var n = /^\n* /;
1104
1107
  return n.test(e);
1105
1108
  }
1106
- var Ai = 1, Qe = 2, ki = 3, Ci = 4, oe = 5;
1107
- function Wr(e, n, i, r, l, o, t, u) {
1108
- var a, s = 0, h = null, d = !1, y = !1, g = r !== -1, p = -1, m = Gr(me(e, 0)) && Qr(me(e, e.length - 1));
1109
+ var Ni = 1, en = 2, Mi = 3, Di = 4, ae = 5;
1110
+ function ut(e, n, i, r, l, o, t, u) {
1111
+ var a, s = 0, m = null, d = !1, y = !1, b = r !== -1, p = -1, h = tt(me(e, 0)) && ot(me(e, e.length - 1));
1109
1112
  if (n || t)
1110
1113
  for (a = 0; a < e.length; s >= 65536 ? a += 2 : a++) {
1111
- if (s = me(e, a), !we(s))
1112
- return oe;
1113
- m = m && Cn(s, h, u), h = s;
1114
+ if (s = me(e, a), !_e(s))
1115
+ return ae;
1116
+ h = h && Dn(s, m, u), m = s;
1114
1117
  }
1115
1118
  else {
1116
1119
  for (a = 0; a < e.length; s >= 65536 ? a += 2 : a++) {
1117
1120
  if (s = me(e, a), s === ge)
1118
- d = !0, g && (y = y || // Foldable line = too long, and not more-indented.
1121
+ d = !0, b && (y = y || // Foldable line = too long, and not more-indented.
1119
1122
  a - p - 1 > r && e[p + 1] !== " ", p = a);
1120
- else if (!we(s))
1121
- return oe;
1122
- m = m && Cn(s, h, u), h = s;
1123
+ else if (!_e(s))
1124
+ return ae;
1125
+ h = h && Dn(s, m, u), m = s;
1123
1126
  }
1124
- y = y || g && a - p - 1 > r && e[p + 1] !== " ";
1127
+ y = y || b && a - p - 1 > r && e[p + 1] !== " ";
1125
1128
  }
1126
- return !d && !y ? m && !t && !l(e) ? Ai : o === be ? oe : Qe : i > 9 && _i(e) ? oe : t ? o === be ? oe : Qe : y ? Ci : ki;
1129
+ return !d && !y ? h && !t && !l(e) ? Ni : o === be ? ae : en : i > 9 && Li(e) ? ae : t ? o === be ? ae : en : y ? Di : Mi;
1127
1130
  }
1128
- function Jr(e, n, i, r, l) {
1131
+ function at(e, n, i, r, l) {
1129
1132
  e.dump = (function() {
1130
1133
  if (n.length === 0)
1131
1134
  return e.quotingType === be ? '""' : "''";
1132
- if (!e.noCompatMode && (Yr.indexOf(n) !== -1 || Pr.test(n)))
1135
+ if (!e.noCompatMode && (Zr.indexOf(n) !== -1 || Xr.test(n)))
1133
1136
  return e.quotingType === be ? '"' + n + '"' : "'" + n + "'";
1134
1137
  var o = e.indent * Math.max(1, i), t = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), u = r || e.flowLevel > -1 && i >= e.flowLevel;
1135
1138
  function a(s) {
1136
- return zr(e, s);
1139
+ return rt(e, s);
1137
1140
  }
1138
- switch (Wr(
1141
+ switch (ut(
1139
1142
  n,
1140
1143
  u,
1141
1144
  e.indent,
@@ -1145,47 +1148,47 @@ function Jr(e, n, i, r, l) {
1145
1148
  e.forceQuotes && !r,
1146
1149
  l
1147
1150
  )) {
1148
- case Ai:
1151
+ case Ni:
1149
1152
  return n;
1150
- case Qe:
1153
+ case en:
1151
1154
  return "'" + n.replace(/'/g, "''") + "'";
1152
- case ki:
1153
- return "|" + Sn(n, e.indent) + En(An(n, o));
1154
- case Ci:
1155
- return ">" + Sn(n, e.indent) + En(An(Zr(n, t), o));
1156
- case oe:
1157
- return '"' + Xr(n) + '"';
1155
+ case Mi:
1156
+ return "|" + Rn(n, e.indent) + $n(Nn(n, o));
1157
+ case Di:
1158
+ return ">" + Rn(n, e.indent) + $n(Nn(st(n, t), o));
1159
+ case ae:
1160
+ return '"' + ct(n) + '"';
1158
1161
  default:
1159
- throw new R("impossible error: invalid scalar style");
1162
+ throw new $("impossible error: invalid scalar style");
1160
1163
  }
1161
1164
  })();
1162
1165
  }
1163
- function Sn(e, n) {
1164
- var i = _i(e) ? String(n) : "", r = e[e.length - 1] === `
1166
+ function Rn(e, n) {
1167
+ var i = Li(e) ? String(n) : "", r = e[e.length - 1] === `
1165
1168
  `, l = r && (e[e.length - 2] === `
1166
1169
  ` || e === `
1167
1170
  `), o = l ? "+" : r ? "" : "-";
1168
1171
  return i + o + `
1169
1172
  `;
1170
1173
  }
1171
- function En(e) {
1174
+ function $n(e) {
1172
1175
  return e[e.length - 1] === `
1173
1176
  ` ? e.slice(0, -1) : e;
1174
1177
  }
1175
- function Zr(e, n) {
1178
+ function st(e, n) {
1176
1179
  for (var i = /(\n+)([^\n]*)/g, r = (function() {
1177
1180
  var s = e.indexOf(`
1178
1181
  `);
1179
- return s = s !== -1 ? s : e.length, i.lastIndex = s, Fn(e.slice(0, s), n);
1182
+ return s = s !== -1 ? s : e.length, i.lastIndex = s, jn(e.slice(0, s), n);
1180
1183
  })(), l = e[0] === `
1181
1184
  ` || e[0] === " ", o, t; t = i.exec(e); ) {
1182
1185
  var u = t[1], a = t[2];
1183
1186
  o = a[0] === " ", r += u + (!l && !o && a !== "" ? `
1184
- ` : "") + Fn(a, n), l = o;
1187
+ ` : "") + jn(a, n), l = o;
1185
1188
  }
1186
1189
  return r;
1187
1190
  }
1188
- function Fn(e, n) {
1191
+ function jn(e, n) {
1189
1192
  if (e === "" || e[0] === " ") return e;
1190
1193
  for (var i = / [^ ]/g, r, l = 0, o, t = 0, u = 0, a = ""; r = i.exec(e); )
1191
1194
  u = r.index, u - l > n && (o = t > l ? t : u, a += `
@@ -1194,77 +1197,77 @@ function Fn(e, n) {
1194
1197
  `, e.length - l > n && t > l ? a += e.slice(l, t) + `
1195
1198
  ` + e.slice(t + 1) : a += e.slice(l), a.slice(1);
1196
1199
  }
1197
- function Xr(e) {
1200
+ function ct(e) {
1198
1201
  for (var n = "", i = 0, r, l = 0; l < e.length; i >= 65536 ? l += 2 : l++)
1199
- i = me(e, l), r = D[i], !r && we(i) ? (n += e[l], i >= 65536 && (n += e[l + 1])) : n += r || Vr(i);
1202
+ i = me(e, l), r = R[i], !r && _e(i) ? (n += e[l], i >= 65536 && (n += e[l + 1])) : n += r || nt(i);
1200
1203
  return n;
1201
1204
  }
1202
- function et(e, n, i) {
1205
+ function ft(e, n, i) {
1203
1206
  var r = "", l = e.tag, o, t, u;
1204
1207
  for (o = 0, t = i.length; o < t; o += 1)
1205
- u = i[o], e.replacer && (u = e.replacer.call(i, String(o), u)), (G(e, n, u, !1, !1) || typeof u > "u" && G(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
1208
+ u = i[o], e.replacer && (u = e.replacer.call(i, String(o), u)), (W(e, n, u, !1, !1) || typeof u > "u" && W(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
1206
1209
  e.tag = l, e.dump = "[" + r + "]";
1207
1210
  }
1208
- function Tn(e, n, i, r) {
1211
+ function Un(e, n, i, r) {
1209
1212
  var l = "", o = e.tag, t, u, a;
1210
1213
  for (t = 0, u = i.length; t < u; t += 1)
1211
- a = i[t], e.replacer && (a = e.replacer.call(i, String(t), a)), (G(e, n + 1, a, !0, !0, !1, !0) || typeof a > "u" && G(e, n + 1, null, !0, !0, !1, !0)) && ((!r || l !== "") && (l += Ge(e, n)), e.dump && ge === e.dump.charCodeAt(0) ? l += "-" : l += "- ", l += e.dump);
1214
+ a = i[t], e.replacer && (a = e.replacer.call(i, String(t), a)), (W(e, n + 1, a, !0, !0, !1, !0) || typeof a > "u" && W(e, n + 1, null, !0, !0, !1, !0)) && ((!r || l !== "") && (l += Xe(e, n)), e.dump && ge === e.dump.charCodeAt(0) ? l += "-" : l += "- ", l += e.dump);
1212
1215
  e.tag = o, e.dump = l || "[]";
1213
1216
  }
1214
- function nt(e, n, i) {
1215
- var r = "", l = e.tag, o = Object.keys(i), t, u, a, s, h;
1217
+ function dt(e, n, i) {
1218
+ var r = "", l = e.tag, o = Object.keys(i), t, u, a, s, m;
1216
1219
  for (t = 0, u = o.length; t < u; t += 1)
1217
- h = "", r !== "" && (h += ", "), e.condenseFlow && (h += '"'), a = o[t], s = i[a], e.replacer && (s = e.replacer.call(i, a, s)), G(e, n, a, !1, !1) && (e.dump.length > 1024 && (h += "? "), h += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), G(e, n, s, !1, !1) && (h += e.dump, r += h));
1220
+ m = "", r !== "" && (m += ", "), e.condenseFlow && (m += '"'), a = o[t], s = i[a], e.replacer && (s = e.replacer.call(i, a, s)), W(e, n, a, !1, !1) && (e.dump.length > 1024 && (m += "? "), m += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), W(e, n, s, !1, !1) && (m += e.dump, r += m));
1218
1221
  e.tag = l, e.dump = "{" + r + "}";
1219
1222
  }
1220
- function it(e, n, i, r) {
1221
- var l = "", o = e.tag, t = Object.keys(i), u, a, s, h, d, y;
1223
+ function pt(e, n, i, r) {
1224
+ var l = "", o = e.tag, t = Object.keys(i), u, a, s, m, d, y;
1222
1225
  if (e.sortKeys === !0)
1223
1226
  t.sort();
1224
1227
  else if (typeof e.sortKeys == "function")
1225
1228
  t.sort(e.sortKeys);
1226
1229
  else if (e.sortKeys)
1227
- throw new R("sortKeys must be a boolean or a function");
1230
+ throw new $("sortKeys must be a boolean or a function");
1228
1231
  for (u = 0, a = t.length; u < a; u += 1)
1229
- y = "", (!r || l !== "") && (y += Ge(e, n)), s = t[u], h = i[s], e.replacer && (h = e.replacer.call(i, s, h)), G(e, n + 1, s, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && ge === e.dump.charCodeAt(0) ? y += "?" : y += "? "), y += e.dump, d && (y += Ge(e, n)), G(e, n + 1, h, !0, d) && (e.dump && ge === e.dump.charCodeAt(0) ? y += ":" : y += ": ", y += e.dump, l += y));
1232
+ y = "", (!r || l !== "") && (y += Xe(e, n)), s = t[u], m = i[s], e.replacer && (m = e.replacer.call(i, s, m)), W(e, n + 1, s, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && ge === e.dump.charCodeAt(0) ? y += "?" : y += "? "), y += e.dump, d && (y += Xe(e, n)), W(e, n + 1, m, !0, d) && (e.dump && ge === e.dump.charCodeAt(0) ? y += ":" : y += ": ", y += e.dump, l += y));
1230
1233
  e.tag = o, e.dump = l || "{}";
1231
1234
  }
1232
- function In(e, n, i) {
1235
+ function Bn(e, n, i) {
1233
1236
  var r, l, o, t, u, a;
1234
1237
  for (l = i ? e.explicitTypes : e.implicitTypes, o = 0, t = l.length; o < t; o += 1)
1235
1238
  if (u = l[o], (u.instanceOf || u.predicate) && (!u.instanceOf || typeof n == "object" && n instanceof u.instanceOf) && (!u.predicate || u.predicate(n))) {
1236
1239
  if (i ? u.multi && u.representName ? e.tag = u.representName(n) : e.tag = u.tag : e.tag = "?", u.represent) {
1237
- if (a = e.styleMap[u.tag] || u.defaultStyle, hi.call(u.represent) === "[object Function]")
1240
+ if (a = e.styleMap[u.tag] || u.defaultStyle, Ci.call(u.represent) === "[object Function]")
1238
1241
  r = u.represent(n, a);
1239
- else if (vi.call(u.represent, a))
1242
+ else if (Si.call(u.represent, a))
1240
1243
  r = u.represent[a](n, a);
1241
1244
  else
1242
- throw new R("!<" + u.tag + '> tag resolver accepts not "' + a + '" style');
1245
+ throw new $("!<" + u.tag + '> tag resolver accepts not "' + a + '" style');
1243
1246
  e.dump = r;
1244
1247
  }
1245
1248
  return !0;
1246
1249
  }
1247
1250
  return !1;
1248
1251
  }
1249
- function G(e, n, i, r, l, o, t) {
1250
- e.tag = null, e.dump = i, In(e, i, !1) || In(e, i, !0);
1251
- var u = hi.call(e.dump), a = r, s;
1252
+ function W(e, n, i, r, l, o, t) {
1253
+ e.tag = null, e.dump = i, Bn(e, i, !1) || Bn(e, i, !0);
1254
+ var u = Ci.call(e.dump), a = r, s;
1252
1255
  r && (r = e.flowLevel < 0 || e.flowLevel > n);
1253
- var h = u === "[object Object]" || u === "[object Array]", d, y;
1254
- if (h && (d = e.duplicates.indexOf(i), y = d !== -1), (e.tag !== null && e.tag !== "?" || y || e.indent !== 2 && n > 0) && (l = !1), y && e.usedDuplicates[d])
1256
+ var m = u === "[object Object]" || u === "[object Array]", d, y;
1257
+ if (m && (d = e.duplicates.indexOf(i), y = d !== -1), (e.tag !== null && e.tag !== "?" || y || e.indent !== 2 && n > 0) && (l = !1), y && e.usedDuplicates[d])
1255
1258
  e.dump = "*ref_" + d;
1256
1259
  else {
1257
- if (h && y && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), u === "[object Object]")
1258
- r && Object.keys(e.dump).length !== 0 ? (it(e, n, e.dump, l), y && (e.dump = "&ref_" + d + e.dump)) : (nt(e, n, e.dump), y && (e.dump = "&ref_" + d + " " + e.dump));
1260
+ if (m && y && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), u === "[object Object]")
1261
+ r && Object.keys(e.dump).length !== 0 ? (pt(e, n, e.dump, l), y && (e.dump = "&ref_" + d + e.dump)) : (dt(e, n, e.dump), y && (e.dump = "&ref_" + d + " " + e.dump));
1259
1262
  else if (u === "[object Array]")
1260
- r && e.dump.length !== 0 ? (e.noArrayIndent && !t && n > 0 ? Tn(e, n - 1, e.dump, l) : Tn(e, n, e.dump, l), y && (e.dump = "&ref_" + d + e.dump)) : (et(e, n, e.dump), y && (e.dump = "&ref_" + d + " " + e.dump));
1263
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !t && n > 0 ? Un(e, n - 1, e.dump, l) : Un(e, n, e.dump, l), y && (e.dump = "&ref_" + d + e.dump)) : (ft(e, n, e.dump), y && (e.dump = "&ref_" + d + " " + e.dump));
1261
1264
  else if (u === "[object String]")
1262
- e.tag !== "?" && Jr(e, e.dump, n, o, a);
1265
+ e.tag !== "?" && at(e, e.dump, n, o, a);
1263
1266
  else {
1264
1267
  if (u === "[object Undefined]")
1265
1268
  return !1;
1266
1269
  if (e.skipInvalid) return !1;
1267
- throw new R("unacceptable kind of an object to dump " + u);
1270
+ throw new $("unacceptable kind of an object to dump " + u);
1268
1271
  }
1269
1272
  e.tag !== null && e.tag !== "?" && (s = encodeURI(
1270
1273
  e.tag[0] === "!" ? e.tag.slice(1) : e.tag
@@ -1272,71 +1275,71 @@ function G(e, n, i, r, l, o, t) {
1272
1275
  }
1273
1276
  return !0;
1274
1277
  }
1275
- function lt(e, n) {
1278
+ function mt(e, n) {
1276
1279
  var i = [], r = [], l, o;
1277
- for (We(e, i, r), l = 0, o = r.length; l < o; l += 1)
1280
+ for (nn(e, i, r), l = 0, o = r.length; l < o; l += 1)
1278
1281
  n.duplicates.push(i[r[l]]);
1279
1282
  n.usedDuplicates = new Array(o);
1280
1283
  }
1281
- function We(e, n, i) {
1284
+ function nn(e, n, i) {
1282
1285
  var r, l, o;
1283
1286
  if (e !== null && typeof e == "object")
1284
1287
  if (l = n.indexOf(e), l !== -1)
1285
1288
  i.indexOf(l) === -1 && i.push(l);
1286
1289
  else if (n.push(e), Array.isArray(e))
1287
1290
  for (l = 0, o = e.length; l < o; l += 1)
1288
- We(e[l], n, i);
1291
+ nn(e[l], n, i);
1289
1292
  else
1290
1293
  for (r = Object.keys(e), l = 0, o = r.length; l < o; l += 1)
1291
- We(e[r[l]], n, i);
1294
+ nn(e[r[l]], n, i);
1292
1295
  }
1293
- function rt(e, n) {
1296
+ function ht(e, n) {
1294
1297
  n = n || {};
1295
- var i = new Kr(n);
1296
- i.noRefs || lt(e, i);
1298
+ var i = new lt(n);
1299
+ i.noRefs || mt(e, i);
1297
1300
  var r = e;
1298
- return i.replacer && (r = i.replacer.call({ "": r }, "", r)), G(i, 0, r, !0, !0) ? i.dump + `
1301
+ return i.replacer && (r = i.replacer.call({ "": r }, "", r)), W(i, 0, r, !0, !0) ? i.dump + `
1299
1302
  ` : "";
1300
1303
  }
1301
- var tt = rt, ot = {
1302
- dump: tt
1304
+ var vt = ht, xt = {
1305
+ dump: vt
1303
1306
  };
1304
- function tn(e, n) {
1307
+ function cn(e, n) {
1305
1308
  return function() {
1306
1309
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
1307
1310
  };
1308
1311
  }
1309
- var ut = O, at = Yn, st = qn, ct = Wn, ft = Jn, dt = en, Si = mi.load, pt = mi.loadAll, Ei = ot.dump, mt = R, ht = {
1310
- binary: ii,
1311
- float: Qn,
1312
- map: Vn,
1313
- null: Kn,
1314
- pairs: ri,
1315
- set: ti,
1316
- timestamp: ei,
1317
- bool: zn,
1318
- int: Gn,
1319
- merge: ni,
1320
- omap: li,
1321
- seq: Hn,
1322
- str: Pn
1323
- }, vt = tn("safeLoad", "load"), xt = tn("safeLoadAll", "loadAll"), yt = tn("safeDump", "dump"), On = {
1324
- Type: ut,
1325
- Schema: at,
1326
- FAILSAFE_SCHEMA: st,
1327
- JSON_SCHEMA: ct,
1328
- CORE_SCHEMA: ft,
1329
- DEFAULT_SCHEMA: dt,
1330
- load: Si,
1331
- loadAll: pt,
1332
- dump: Ei,
1333
- YAMLException: mt,
1334
- types: ht,
1335
- safeLoad: vt,
1336
- safeLoadAll: xt,
1337
- safeDump: yt
1312
+ var yt = N, gt = Wn, bt = ei, _t = ti, wt = oi, At = on, Ri = ki.load, kt = ki.loadAll, $i = xt.dump, Ct = $, St = {
1313
+ binary: fi,
1314
+ float: ri,
1315
+ map: Xn,
1316
+ null: ni,
1317
+ pairs: pi,
1318
+ set: mi,
1319
+ timestamp: si,
1320
+ bool: ii,
1321
+ int: li,
1322
+ merge: ci,
1323
+ omap: di,
1324
+ seq: Zn,
1325
+ str: Jn
1326
+ }, Et = cn("safeLoad", "load"), Ft = cn("safeLoadAll", "loadAll"), Tt = cn("safeDump", "dump"), Yn = {
1327
+ Type: yt,
1328
+ Schema: gt,
1329
+ FAILSAFE_SCHEMA: bt,
1330
+ JSON_SCHEMA: _t,
1331
+ CORE_SCHEMA: wt,
1332
+ DEFAULT_SCHEMA: At,
1333
+ load: Ri,
1334
+ loadAll: kt,
1335
+ dump: $i,
1336
+ YAMLException: Ct,
1337
+ types: St,
1338
+ safeLoad: Et,
1339
+ safeLoadAll: Ft,
1340
+ safeDump: Tt
1338
1341
  };
1339
- const gt = {}, bt = {
1342
+ const It = {}, Ot = {
1340
1343
  xmlns: "http://www.w3.org/2000/svg",
1341
1344
  width: "24",
1342
1345
  height: "24",
@@ -1348,14 +1351,14 @@ const gt = {}, bt = {
1348
1351
  "stroke-linejoin": "round",
1349
1352
  class: "lucide lucide-layers"
1350
1353
  };
1351
- function wt(e, n) {
1352
- return C(), M("svg", bt, [...n[0] || (n[0] = [
1354
+ function Lt(e, n) {
1355
+ return C(), D("svg", Ot, [...n[0] || (n[0] = [
1353
1356
  v("path", { d: "m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" }, null, -1),
1354
1357
  v("path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" }, null, -1),
1355
1358
  v("path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" }, null, -1)
1356
1359
  ])]);
1357
1360
  }
1358
- const _t = /* @__PURE__ */ Ne(gt, [["render", wt]]), At = {}, kt = {
1361
+ const Nt = /* @__PURE__ */ Re(It, [["render", Lt]]), Mt = {}, Dt = {
1359
1362
  xmlns: "http://www.w3.org/2000/svg",
1360
1363
  width: "24",
1361
1364
  height: "24",
@@ -1367,14 +1370,14 @@ const _t = /* @__PURE__ */ Ne(gt, [["render", wt]]), At = {}, kt = {
1367
1370
  "stroke-linejoin": "round",
1368
1371
  class: "lucide lucide-map"
1369
1372
  };
1370
- function Ct(e, n) {
1371
- return C(), M("svg", kt, [...n[0] || (n[0] = [
1373
+ function Rt(e, n) {
1374
+ return C(), D("svg", Dt, [...n[0] || (n[0] = [
1372
1375
  v("path", { d: "M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z" }, null, -1),
1373
1376
  v("path", { d: "M15 5.764v15" }, null, -1),
1374
1377
  v("path", { d: "M9 3.236v15" }, null, -1)
1375
1378
  ])]);
1376
1379
  }
1377
- const St = /* @__PURE__ */ Ne(At, [["render", Ct]]), Et = {}, Ft = {
1380
+ const $t = /* @__PURE__ */ Re(Mt, [["render", Rt]]), jt = {}, Ut = {
1378
1381
  xmlns: "http://www.w3.org/2000/svg",
1379
1382
  width: "24",
1380
1383
  height: "24",
@@ -1386,12 +1389,12 @@ const St = /* @__PURE__ */ Ne(At, [["render", Ct]]), Et = {}, Ft = {
1386
1389
  "stroke-linejoin": "round",
1387
1390
  class: "lucide lucide-filter"
1388
1391
  };
1389
- function Tt(e, n) {
1390
- return C(), M("svg", Ft, [...n[0] || (n[0] = [
1392
+ function Bt(e, n) {
1393
+ return C(), D("svg", Ut, [...n[0] || (n[0] = [
1391
1394
  v("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1)
1392
1395
  ])]);
1393
1396
  }
1394
- const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-col flex-1 overflow-hidden" }, Lt = { class: "flex justify-end gap-2" }, Nt = ["href"], Mt = { class: "flex flex-col flex-1 overflow-hidden" }, Dt = { class: "bg-white rounded-xl border border-gray-200 shadow-sm overflow-hidden mt-3 flex flex-col flex-1" }, Rt = { class: "relative bg-gradient-to-br from-slate-50 to-white flex-1" }, $t = /* @__PURE__ */ Z({
1397
+ const Yt = /* @__PURE__ */ Re(jt, [["render", Bt]]), Pt = { class: "flex flex-col flex-1 overflow-hidden" }, Ht = { class: "flex justify-end gap-2" }, Vt = ["href"], qt = { class: "flex flex-col flex-1 overflow-hidden" }, Kt = { class: "bg-white rounded-xl border border-gray-200 shadow-sm overflow-hidden mt-3 flex flex-col flex-1" }, zt = { class: "relative bg-gradient-to-br from-slate-50 to-white flex-1" }, Gt = /* @__PURE__ */ ee({
1395
1398
  __name: "vs-tab-style",
1396
1399
  props: {
1397
1400
  token: {},
@@ -1401,29 +1404,29 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1401
1404
  emits: ["update:style-yaml", "update:style-text", "update"],
1402
1405
  setup(e, { emit: n }) {
1403
1406
  const i = e, r = n, l = S("");
1404
- T(
1407
+ I(
1405
1408
  () => i.styleText,
1406
1409
  (a) => {
1407
1410
  const s = a ?? "";
1408
1411
  l.value !== s && (l.value = s);
1409
1412
  },
1410
1413
  { immediate: !0 }
1411
- ), T(l, async (a) => {
1412
- var h, d;
1414
+ ), I(l, async (a) => {
1415
+ var m, d;
1413
1416
  const s = a ?? "";
1414
1417
  i.styleText !== s && r("update:style-text", s);
1415
1418
  try {
1416
- const y = a ? Si(a) : null;
1417
- if ((h = y == null ? void 0 : y.colorAttr) != null && h.length && ((d = i.styleYaml) == null ? void 0 : d.colorAttr) !== y.colorAttr) {
1418
- const g = await o(y.colorAttr);
1419
- y.colors = g.reduce(
1420
- (m, x, _) => ({
1421
- ...m,
1422
- [x.id.toString()]: t[_]
1419
+ const y = a ? Ri(a) : null;
1420
+ if ((m = y == null ? void 0 : y.colorAttr) != null && m.length && ((d = i.styleYaml) == null ? void 0 : d.colorAttr) !== y.colorAttr) {
1421
+ const b = await o(y.colorAttr);
1422
+ y.colors = b.reduce(
1423
+ (h, x, w) => ({
1424
+ ...h,
1425
+ [x.id.toString()]: t[w]
1423
1426
  }),
1424
1427
  {}
1425
1428
  );
1426
- const p = Ei(y);
1429
+ const p = $i(y);
1427
1430
  p !== l.value && (l.value = p);
1428
1431
  }
1429
1432
  JSON.stringify(y) !== JSON.stringify(i.styleYaml) && r(
@@ -1436,7 +1439,7 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1436
1439
  });
1437
1440
  async function o(a) {
1438
1441
  return (await fetch(`/api/gis-service/${i.token}/${a}`).then(
1439
- (h) => h.json()
1442
+ (m) => m.json()
1440
1443
  )).rows;
1441
1444
  }
1442
1445
  const t = [
@@ -1457,22 +1460,22 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1457
1460
  method: "PUT",
1458
1461
  headers: { "Content-Type": "application/json" },
1459
1462
  body: JSON.stringify({ style: a })
1460
- }), r("update"), z({ type: "success", title: "Успіх", message: "Стилі збережено" });
1463
+ }), r("update"), Q({ type: "success", title: "Успіх", message: "Стилі збережено" });
1461
1464
  } catch (s) {
1462
- z({
1465
+ Q({
1463
1466
  type: "error",
1464
1467
  title: "Помилка",
1465
1468
  message: "Не вдалося зберегти стилі"
1466
1469
  }), console.log(s);
1467
1470
  }
1468
1471
  };
1469
- return (a, s) => (C(), M("div", Ot, [
1470
- v("div", Lt, [
1472
+ return (a, s) => (C(), D("div", Pt, [
1473
+ v("div", Ht, [
1471
1474
  v("a", {
1472
1475
  target: "_blank",
1473
1476
  href: "/api/gis-service/" + i.token + "/col",
1474
1477
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
1475
- }, " Атрибути ", 8, Nt),
1478
+ }, " Атрибути ", 8, Vt),
1476
1479
  v("button", {
1477
1480
  onClick: u,
1478
1481
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
@@ -1493,18 +1496,18 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1493
1496
  v("path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" }),
1494
1497
  v("path", { d: "M7 3v4a1 1 0 0 0 1 1h7" })
1495
1498
  ], -1),
1496
- Di(" Зберегти стилі ", -1)
1499
+ qi(" Зберегти стилі ", -1)
1497
1500
  ])])
1498
1501
  ]),
1499
- v("div", Mt, [
1500
- v("div", Dt, [
1502
+ v("div", qt, [
1503
+ v("div", Kt, [
1501
1504
  s[2] || (s[2] = v("div", { class: "bg-gradient-to-r from-gray-50 to-gray-100 px-4 py-2 border-b border-gray-200 flex items-center justify-between" }, [
1502
1505
  v("div", { class: "text-xs text-gray-400" }, "YAML")
1503
1506
  ], -1)),
1504
- v("div", Rt, [
1505
- j(jn, {
1507
+ v("div", zt, [
1508
+ j(zn, {
1506
1509
  modelValue: l.value,
1507
- "onUpdate:modelValue": s[0] || (s[0] = (h) => l.value = h),
1510
+ "onUpdate:modelValue": s[0] || (s[0] = (m) => l.value = m),
1508
1511
  language: "yaml",
1509
1512
  theme: "vs-light"
1510
1513
  }, null, 8, ["modelValue"])
@@ -1513,7 +1516,7 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1513
1516
  ])
1514
1517
  ]));
1515
1518
  }
1516
- }), jt = { class: "flex flex-col flex-1 min-h-0" }, Ut = { class: "flex flex-col flex-1 min-h-0" }, Bt = /* @__PURE__ */ Z({
1519
+ }), Qt = { class: "flex flex-col flex-1 min-h-0" }, Wt = { class: "flex flex-col flex-1 min-h-0" }, Jt = /* @__PURE__ */ ee({
1517
1520
  __name: "vs-tab-popup",
1518
1521
  props: {
1519
1522
  token: {},
@@ -1523,13 +1526,13 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1523
1526
  emits: ["update:columns", "save"],
1524
1527
  setup(e, { emit: n }) {
1525
1528
  const i = e, r = n, l = S(i.columns || []);
1526
- T(
1529
+ I(
1527
1530
  () => i.columns,
1528
1531
  (p) => l.value = p || [],
1529
1532
  { immediate: !0 }
1530
- ), T(l, (p) => {
1531
- const m = $n(i.token);
1532
- m && (m.popup = p), r("update:columns", p);
1533
+ ), I(l, (p) => {
1534
+ const h = Ie(i.token);
1535
+ h && (h.popup = p), r("update:columns", p);
1533
1536
  });
1534
1537
  const o = S("list"), t = S(!1), u = S([]), a = [
1535
1538
  { key: "name", label: "Назва", type: "main" }
@@ -1552,51 +1555,51 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1552
1555
  },
1553
1556
  data: { type: "text", label: "Data" }
1554
1557
  };
1555
- function h() {
1558
+ function m() {
1556
1559
  u.value = l.value.map((p) => p.name || p.id), t.value = !0;
1557
1560
  }
1558
1561
  function d() {
1559
- var _;
1560
- const p = [...l.value], m = ((_ = i.fields) == null ? void 0 : _.filter((b) => u.value.includes(b.name))) || [], x = Ze(p, m, {
1562
+ var w;
1563
+ const p = [...l.value], h = ((w = i.fields) == null ? void 0 : w.filter((g) => u.value.includes(g.name))) || [], x = rn(p, h, {
1561
1564
  selectedKeys: u.value,
1562
- resolveKey: (b) => xe(b)
1565
+ resolveKey: (g) => xe(g)
1563
1566
  });
1564
1567
  l.value = x, t.value = !1, u.value = [];
1565
1568
  }
1566
1569
  function y() {
1567
1570
  t.value = !1, u.value = [];
1568
1571
  }
1569
- function g() {
1572
+ function b() {
1570
1573
  let p = [];
1571
- o.value === "all" ? p = i.fields || [] : o.value === "none" ? p = [] : p = l.value, p.filter((m) => !m.label).forEach((m) => m.label = m.ua), r("save", p);
1574
+ o.value === "all" ? p = i.fields || [] : o.value === "none" ? p = [] : p = l.value, p.filter((h) => !h.label).forEach((h) => h.label = h.ua), r("save", p);
1572
1575
  }
1573
- return (p, m) => (C(), M("div", jt, [
1576
+ return (p, h) => (C(), D("div", Qt, [
1574
1577
  v("div", { class: "flex justify-between mb-3 gap-2" }, [
1575
1578
  v("button", {
1576
- onClick: h,
1579
+ onClick: m,
1577
1580
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
1578
1581
  }, " Імпорт "),
1579
1582
  v("button", {
1580
- onClick: g,
1583
+ onClick: b,
1581
1584
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
1582
1585
  }, " Зберегти попап ")
1583
1586
  ]),
1584
- v("div", Ut, [
1585
- o.value === "list" ? (C(), N(Me, {
1587
+ v("div", Wt, [
1588
+ o.value === "list" ? (C(), M($e, {
1586
1589
  key: 0,
1587
1590
  modelValue: l.value,
1588
- "onUpdate:modelValue": m[0] || (m[0] = (x) => l.value = x),
1591
+ "onUpdate:modelValue": h[0] || (h[0] = (x) => l.value = x),
1589
1592
  "columns-scheme": a,
1590
1593
  "form-scheme": s,
1591
1594
  "main-col-width": "250px",
1592
1595
  "add-button": !1
1593
- }, null, 8, ["modelValue"])) : P("", !0)
1596
+ }, null, 8, ["modelValue"])) : q("", !0)
1594
1597
  ]),
1595
- j(Je, {
1598
+ j(ln, {
1596
1599
  visible: t.value,
1597
- "onUpdate:visible": m[1] || (m[1] = (x) => t.value = x),
1600
+ "onUpdate:visible": h[1] || (h[1] = (x) => t.value = x),
1598
1601
  selection: u.value,
1599
- "onUpdate:selection": m[2] || (m[2] = (x) => u.value = x),
1602
+ "onUpdate:selection": h[2] || (h[2] = (x) => u.value = x),
1600
1603
  fields: e.fields,
1601
1604
  title: "Імпорт полів",
1602
1605
  "id-prefix": "import-popup",
@@ -1605,7 +1608,7 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1605
1608
  }, null, 8, ["visible", "selection", "fields"])
1606
1609
  ]));
1607
1610
  }
1608
- }), Yt = { class: "flex flex-col flex-1 min-h-0" }, Pt = { class: "flex justify-between mb-3 gap-2" }, Ht = { class: "p-4 space-y-4 text-sm" }, Vt = { class: "space-y-1" }, qt = { class: "space-y-1" }, Kt = { class: "flex items-center gap-3" }, zt = { class: "flex justify-end gap-2 p-4 border-t" }, Gt = /* @__PURE__ */ Z({
1611
+ }), Zt = { class: "flex flex-col flex-1 min-h-0" }, Xt = { class: "flex justify-between mb-3 gap-2" }, eo = { class: "p-4 space-y-4 text-sm" }, no = { class: "space-y-1" }, io = { class: "space-y-1" }, lo = { class: "flex items-center gap-3" }, ro = { class: "flex justify-end gap-2 p-4 border-t" }, to = /* @__PURE__ */ ee({
1609
1612
  __name: "vs-tab-legend",
1610
1613
  props: {
1611
1614
  mapInfo: {},
@@ -1615,18 +1618,18 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1615
1618
  emits: ["update:columns", "save"],
1616
1619
  setup(e, { emit: n }) {
1617
1620
  const i = e, r = n, l = S(i.columns || []);
1618
- T(
1621
+ I(
1619
1622
  () => i.columns,
1620
1623
  (p) => {
1621
1624
  l.value = p || [];
1622
1625
  }
1623
- ), T(l, (p) => {
1626
+ ), I(l, (p) => {
1624
1627
  r("update:columns", p);
1625
1628
  });
1626
1629
  const o = S(!1), t = S({
1627
1630
  name: "",
1628
1631
  color: "#2E86DE"
1629
- }), u = Ri(
1632
+ }), u = Ki(
1630
1633
  () => import("@opengis/core").then((p) => p.VsModal)
1631
1634
  ), a = [
1632
1635
  { key: "name", label: "Назва" },
@@ -1635,53 +1638,53 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1635
1638
  name: { type: "text", label: "Назва", validators: ["required"] },
1636
1639
  color: { type: "color", label: "Колір", validators: ["required"] }
1637
1640
  };
1638
- function h(p) {
1641
+ function m(p) {
1639
1642
  p && d(), o.value = p;
1640
1643
  }
1641
1644
  function d() {
1642
1645
  t.value = { name: "", color: "#2E86DE" };
1643
1646
  }
1644
1647
  function y() {
1645
- var _, b;
1646
- const p = (_ = t.value.name) == null ? void 0 : _.trim();
1648
+ var w, g;
1649
+ const p = (w = t.value.name) == null ? void 0 : w.trim();
1647
1650
  if (!p) {
1648
- z({
1651
+ Q({
1649
1652
  type: "warning",
1650
1653
  title: "Перевірка",
1651
1654
  message: "Вкажіть назву елементу легенди"
1652
1655
  });
1653
1656
  return;
1654
1657
  }
1655
- const m = ((b = t.value.color) == null ? void 0 : b.trim()) || "#2E86DE";
1658
+ const h = ((g = t.value.color) == null ? void 0 : g.trim()) || "#2E86DE";
1656
1659
  if (l.value.some(
1657
- (V) => xe(V) === xe({ name: p })
1660
+ (K) => xe(K) === xe({ name: p })
1658
1661
  )) {
1659
- z({
1662
+ Q({
1660
1663
  type: "warning",
1661
1664
  title: "Дубль",
1662
1665
  message: "Такий елемент легенди вже існує"
1663
1666
  });
1664
1667
  return;
1665
1668
  }
1666
- l.value = [...l.value, { name: p, color: m }], d(), o.value = !1;
1669
+ l.value = [...l.value, { name: p, color: h }], d(), o.value = !1;
1667
1670
  }
1668
- function g() {
1671
+ function b() {
1669
1672
  r("save", l.value);
1670
1673
  }
1671
- return (p, m) => (C(), M("div", Yt, [
1672
- v("div", Pt, [
1674
+ return (p, h) => (C(), D("div", Zt, [
1675
+ v("div", Xt, [
1673
1676
  v("button", {
1674
- onClick: m[0] || (m[0] = (x) => o.value = !0),
1677
+ onClick: h[0] || (h[0] = (x) => o.value = !0),
1675
1678
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
1676
1679
  }, " Додати "),
1677
1680
  v("button", {
1678
- onClick: g,
1681
+ onClick: b,
1679
1682
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
1680
1683
  }, " Зберегти легенду ")
1681
1684
  ]),
1682
- j(Me, {
1685
+ j($e, {
1683
1686
  modelValue: l.value,
1684
- "onUpdate:modelValue": m[1] || (m[1] = (x) => l.value = x),
1687
+ "onUpdate:modelValue": h[1] || (h[1] = (x) => l.value = x),
1685
1688
  "columns-scheme": a,
1686
1689
  "form-scheme": s,
1687
1690
  "main-col-width": "250px",
@@ -1691,14 +1694,14 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1691
1694
  teleport: "#modal",
1692
1695
  visible: o.value,
1693
1696
  title: "Новий елемент легенди",
1694
- "onUpdate:visible": h
1697
+ "onUpdate:visible": m
1695
1698
  }, {
1696
- footer: qe(() => [
1697
- v("div", zt, [
1699
+ footer: We(() => [
1700
+ v("div", ro, [
1698
1701
  v("button", {
1699
1702
  type: "button",
1700
1703
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed",
1701
- onClick: m[5] || (m[5] = (x) => h(!1))
1704
+ onClick: h[5] || (h[5] = (x) => m(!1))
1702
1705
  }, " Скасувати "),
1703
1706
  v("button", {
1704
1707
  type: "button",
@@ -1707,36 +1710,36 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1707
1710
  }, " Додати ")
1708
1711
  ])
1709
1712
  ]),
1710
- default: qe(() => [
1711
- v("div", Ht, [
1712
- v("div", Vt, [
1713
- m[6] || (m[6] = v("label", { class: "block text-xs font-medium text-gray-500 uppercase tracking-wide" }, " Назва ", -1)),
1714
- Be(v("input", {
1715
- "onUpdate:modelValue": m[2] || (m[2] = (x) => t.value.name = x),
1713
+ default: We(() => [
1714
+ v("div", eo, [
1715
+ v("div", no, [
1716
+ h[6] || (h[6] = v("label", { class: "block text-xs font-medium text-gray-500 uppercase tracking-wide" }, " Назва ", -1)),
1717
+ qe(v("input", {
1718
+ "onUpdate:modelValue": h[2] || (h[2] = (x) => t.value.name = x),
1716
1719
  type: "text",
1717
1720
  class: "w-full rounded-md border border-gray-300 px-3 py-2 text-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200",
1718
1721
  placeholder: "Наприклад, Житлова зона"
1719
1722
  }, null, 512), [
1720
- [Ye, t.value.name]
1723
+ [Ke, t.value.name]
1721
1724
  ])
1722
1725
  ]),
1723
- v("div", qt, [
1724
- m[7] || (m[7] = v("label", { class: "block text-xs font-medium text-gray-500 uppercase tracking-wide" }, " Колір ", -1)),
1725
- v("div", Kt, [
1726
- Be(v("input", {
1727
- "onUpdate:modelValue": m[3] || (m[3] = (x) => t.value.color = x),
1726
+ v("div", io, [
1727
+ h[7] || (h[7] = v("label", { class: "block text-xs font-medium text-gray-500 uppercase tracking-wide" }, " Колір ", -1)),
1728
+ v("div", lo, [
1729
+ qe(v("input", {
1730
+ "onUpdate:modelValue": h[3] || (h[3] = (x) => t.value.color = x),
1728
1731
  type: "color",
1729
1732
  class: "h-10 w-16 rounded border border-gray-300"
1730
1733
  }, null, 512), [
1731
- [Ye, t.value.color]
1734
+ [Ke, t.value.color]
1732
1735
  ]),
1733
- Be(v("input", {
1734
- "onUpdate:modelValue": m[4] || (m[4] = (x) => t.value.color = x),
1736
+ qe(v("input", {
1737
+ "onUpdate:modelValue": h[4] || (h[4] = (x) => t.value.color = x),
1735
1738
  type: "text",
1736
1739
  class: "flex-1 rounded-md border border-gray-300 px-3 py-2 text-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200",
1737
1740
  placeholder: "#FFFFFF"
1738
1741
  }, null, 512), [
1739
- [Ye, t.value.color]
1742
+ [Ke, t.value.color]
1740
1743
  ])
1741
1744
  ])
1742
1745
  ])
@@ -1746,7 +1749,7 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1746
1749
  }, 8, ["visible"])
1747
1750
  ]));
1748
1751
  }
1749
- }), Qt = { class: "space-y-3 bg-gradient-to-br from-sky-50 to-blue-50 p-4 rounded-xl border border-sky-100 shadow-sm" }, Wt = ["onClick"], Jt = ["aria-checked", "value"], Zt = { key: 0 }, Xt = /* @__PURE__ */ Z({
1752
+ }), oo = { class: "space-y-3 bg-gradient-to-br from-sky-50 to-blue-50 p-4 rounded-xl border border-sky-100 shadow-sm" }, uo = ["onClick"], ao = ["aria-checked", "value"], so = { key: 0 }, co = /* @__PURE__ */ ee({
1750
1753
  __name: "view-mode-toggle",
1751
1754
  props: {
1752
1755
  modelValue: {},
@@ -1760,13 +1763,13 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1760
1763
  { value: "list", label: "List" },
1761
1764
  { value: "none", label: "None" }
1762
1765
  ];
1763
- return (t, u) => (C(), M("div", Qt, [
1766
+ return (t, u) => (C(), D("div", oo, [
1764
1767
  u[1] || (u[1] = v("label", { class: "text-sm font-medium text-gray-600" }, "Режим відображення", -1)),
1765
1768
  v("div", {
1766
1769
  role: "radiogroup",
1767
1770
  class: he(["grid gap-2", `grid-cols-${ve(o).length}`])
1768
1771
  }, [
1769
- (C(!0), M(Nn, null, Mn(ve(o), (a) => (C(), M("div", {
1772
+ (C(!0), D(Hn, null, Vn(ve(o), (a) => (C(), D("div", {
1770
1773
  key: a.value,
1771
1774
  onClick: (s) => l(a.value),
1772
1775
  class: he(["flex items-center justify-center space-x-2 rounded-lg p-2 border transition-all duration-300 cursor-pointer", [
@@ -1780,7 +1783,7 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1780
1783
  value: a.value,
1781
1784
  class: "aspect-square rounded-full border border-primary h-4 w-4 flex items-center justify-center text-sky-500"
1782
1785
  }, [
1783
- e.modelValue === a.value ? (C(), M("span", Zt, [...u[0] || (u[0] = [
1786
+ e.modelValue === a.value ? (C(), D("span", so, [...u[0] || (u[0] = [
1784
1787
  v("svg", {
1785
1788
  xmlns: "http://www.w3.org/2000/svg",
1786
1789
  viewBox: "0 0 24 24",
@@ -1797,16 +1800,16 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1797
1800
  r: "10"
1798
1801
  })
1799
1802
  ], -1)
1800
- ])])) : P("", !0)
1801
- ], 8, Jt),
1803
+ ])])) : q("", !0)
1804
+ ], 8, ao),
1802
1805
  v("label", {
1803
1806
  class: he(["text-xs font-medium cursor-pointer", e.modelValue === a.value ? "text-gray-700" : "text-gray-600"])
1804
- }, te(a.label), 3)
1805
- ], 10, Wt))), 128))
1807
+ }, ue(a.label), 3)
1808
+ ], 10, uo))), 128))
1806
1809
  ], 2)
1807
1810
  ]));
1808
1811
  }
1809
- }), eo = { class: "flex flex-col flex-1 min-h-0" }, no = { class: "flex flex-col flex-1 min-h-0" }, io = /* @__PURE__ */ Z({
1812
+ }), fo = { class: "flex flex-col flex-1 min-h-0" }, po = { class: "flex flex-col flex-1 min-h-0" }, mo = /* @__PURE__ */ ee({
1810
1813
  __name: "vs-tab-card",
1811
1814
  props: {
1812
1815
  fields: {},
@@ -1817,20 +1820,20 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1817
1820
  emits: ["update:columns", "save"],
1818
1821
  setup(e, { emit: n }) {
1819
1822
  const i = e, r = n, l = S(i.columns || []);
1820
- T(
1823
+ I(
1821
1824
  () => i.columns,
1822
1825
  (x) => l.value = x || [],
1823
1826
  { immediate: !0 }
1824
- ), T(l, (x) => r("update:columns", x));
1827
+ ), I(l, (x) => r("update:columns", x));
1825
1828
  const o = S(i.viewMode ?? "list");
1826
- T(
1829
+ I(
1827
1830
  () => i.viewMode,
1828
1831
  (x) => {
1829
1832
  x && x !== o.value && (o.value = x);
1830
1833
  }
1831
1834
  );
1832
1835
  const t = S(i.html ?? "");
1833
- T(
1836
+ I(
1834
1837
  () => i.html,
1835
1838
  (x) => {
1836
1839
  typeof x == "string" && x !== t.value && (t.value = x);
@@ -1843,7 +1846,7 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1843
1846
  // { key: 'format', label: 'Format' },
1844
1847
  //{ key: 'is_admin', label: 'Admin', options: [{ text: "Так", id: true }, { text: "Ні", id: false }]},
1845
1848
  /* { key: "meta", label: "Мета" }, */
1846
- ], h = {
1849
+ ], m = {
1847
1850
  name: {
1848
1851
  type: "text",
1849
1852
  label: "Name",
@@ -1885,45 +1888,45 @@ const It = /* @__PURE__ */ Ne(Et, [["render", Tt]]), Ot = { class: "flex flex-co
1885
1888
  a.value = o.value === "html" ? [] : l.value.map((x) => x.name || x.id), u.value = !0;
1886
1889
  }
1887
1890
  function y() {
1888
- var V;
1889
- const x = [...l.value], _ = ((V = i.fields) == null ? void 0 : V.filter((L) => a.value.includes(L.name)).map((L) => {
1890
- const { type: ie, format: q, ...K } = L;
1891
+ var K;
1892
+ const x = [...l.value], w = ((K = i.fields) == null ? void 0 : K.filter((V) => a.value.includes(V.name)).map((V) => {
1893
+ const { type: de, format: re, ...B } = V;
1891
1894
  return {
1892
- ...K,
1893
- format: q ?? ie ?? "text"
1895
+ ...B,
1896
+ format: re ?? de ?? "text"
1894
1897
  };
1895
- })) || [], b = Ze(x, _, {
1898
+ })) || [], g = rn(x, w, {
1896
1899
  selectedKeys: a.value,
1897
- resolveKey: (L) => xe(L)
1900
+ resolveKey: (V) => xe(V)
1898
1901
  });
1899
- if (l.value = b, o.value === "html" && _.length) {
1900
- const L = _.map((K) => {
1901
- const le = K.label ?? "", ce = K.name ?? K.id ?? "";
1902
- return `<dd>${le}</dd>
1903
- <dt>{{ ${ce} }}</dt>`;
1902
+ if (l.value = g, o.value === "html" && w.length) {
1903
+ const V = w.map((B) => {
1904
+ const pe = B.label ?? "", te = B.name ?? B.id ?? "";
1905
+ return `<dd>${pe}</dd>
1906
+ <dt>{{ ${te} }}</dt>`;
1904
1907
  }).join(`
1905
- `), q = (t.value ?? "").trimEnd();
1906
- t.value = q ? `${q}
1907
- ${L}` : L;
1908
+ `), re = (t.value ?? "").trimEnd();
1909
+ t.value = re ? `${re}
1910
+ ${V}` : V;
1908
1911
  }
1909
1912
  u.value = !1, a.value = [];
1910
1913
  }
1911
- function g() {
1914
+ function b() {
1912
1915
  u.value = !1, a.value = [];
1913
1916
  }
1914
1917
  function p() {
1915
- const x = o.value === "html" ? "html" : "list", _ = {
1918
+ const x = o.value === "html" ? "html" : "list", w = {
1916
1919
  card_mode: x
1917
1920
  };
1918
- x === "html" ? _.html = t.value : x === "list" && (_.list = l.value), r("save", "card", _);
1921
+ x === "html" ? w.html = t.value : x === "list" && (w.list = l.value), r("save", "card", w);
1919
1922
  }
1920
- const m = [
1923
+ const h = [
1921
1924
  { value: "all", label: "Всі" },
1922
1925
  { value: "list", label: "Список" },
1923
1926
  { value: "none", label: "Жодне" },
1924
1927
  { value: "html", label: "HTML" }
1925
1928
  ];
1926
- return (x, _) => (C(), M("div", eo, [
1929
+ return (x, w) => (C(), D("div", fo, [
1927
1930
  v("div", { class: "flex justify-between mb-3 gap-2" }, [
1928
1931
  v("button", {
1929
1932
  onClick: d,
@@ -1934,43 +1937,43 @@ ${L}` : L;
1934
1937
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
1935
1938
  }, " Зберегти ")
1936
1939
  ]),
1937
- j(Xt, {
1940
+ j(co, {
1938
1941
  modelValue: o.value,
1939
- "onUpdate:modelValue": _[0] || (_[0] = (b) => o.value = b),
1940
- options: m
1942
+ "onUpdate:modelValue": w[0] || (w[0] = (g) => o.value = g),
1943
+ options: h
1941
1944
  }, null, 8, ["modelValue"]),
1942
- v("div", no, [
1943
- o.value === "list" ? (C(), N(Me, {
1945
+ v("div", po, [
1946
+ o.value === "list" ? (C(), M($e, {
1944
1947
  key: 0,
1945
1948
  modelValue: l.value,
1946
- "onUpdate:modelValue": _[1] || (_[1] = (b) => l.value = b),
1949
+ "onUpdate:modelValue": w[1] || (w[1] = (g) => l.value = g),
1947
1950
  "columns-scheme": s,
1948
- "form-scheme": h,
1951
+ "form-scheme": m,
1949
1952
  "main-col-width": "250px",
1950
1953
  "add-button": !1
1951
- }, null, 8, ["modelValue"])) : o.value === "html" ? (C(), N(jn, {
1954
+ }, null, 8, ["modelValue"])) : o.value === "html" ? (C(), M(zn, {
1952
1955
  key: 1,
1953
1956
  modelValue: t.value,
1954
- "onUpdate:modelValue": _[2] || (_[2] = (b) => t.value = b),
1957
+ "onUpdate:modelValue": w[2] || (w[2] = (g) => t.value = g),
1955
1958
  language: "html",
1956
1959
  theme: "vs-light",
1957
1960
  class: "flex-1 min-h-0"
1958
- }, null, 8, ["modelValue"])) : P("", !0)
1961
+ }, null, 8, ["modelValue"])) : q("", !0)
1959
1962
  ]),
1960
- j(Je, {
1963
+ j(ln, {
1961
1964
  visible: u.value,
1962
- "onUpdate:visible": _[3] || (_[3] = (b) => u.value = b),
1965
+ "onUpdate:visible": w[3] || (w[3] = (g) => u.value = g),
1963
1966
  selection: a.value,
1964
- "onUpdate:selection": _[4] || (_[4] = (b) => a.value = b),
1967
+ "onUpdate:selection": w[4] || (w[4] = (g) => a.value = g),
1965
1968
  fields: e.fields,
1966
1969
  title: "Імпорт полів для картки",
1967
1970
  "id-prefix": "import-card",
1968
1971
  onConfirm: y,
1969
- onCancel: g
1972
+ onCancel: b
1970
1973
  }, null, 8, ["visible", "selection", "fields"])
1971
1974
  ]));
1972
1975
  }
1973
- }), lo = { class: "flex flex-col flex-1 min-h-0" }, ro = /* @__PURE__ */ Z({
1976
+ }), ho = { class: "flex flex-col flex-1 min-h-0" }, vo = /* @__PURE__ */ ee({
1974
1977
  __name: "vs-tab-filter",
1975
1978
  props: {
1976
1979
  fields: {},
@@ -1981,11 +1984,11 @@ ${L}` : L;
1981
1984
  const i = e, r = n;
1982
1985
  console.log(i.columns);
1983
1986
  const l = S(i.columns || []);
1984
- T(
1987
+ I(
1985
1988
  () => i.columns,
1986
1989
  (p) => l.value = p || [],
1987
1990
  { immediate: !0 }
1988
- ), T(l, (p) => r("update:columns", p), { deep: !0, immediate: !0 });
1991
+ ), I(l, (p) => r("update:columns", p), { deep: !0, immediate: !0 });
1989
1992
  const o = S("list"), t = S(!1), u = S([]), a = [
1990
1993
  { key: "id", label: "Name" },
1991
1994
  { key: "label", label: "UA" }
@@ -2017,49 +2020,49 @@ ${L}` : L;
2017
2020
  validators: ["required"]
2018
2021
  }
2019
2022
  };
2020
- function h() {
2023
+ function m() {
2021
2024
  u.value = l.value.map((p) => p.name || p.id), t.value = !0;
2022
2025
  }
2023
2026
  function d() {
2024
- var _;
2025
- const p = [...l.value], m = ((_ = i.fields) == null ? void 0 : _.filter((b) => u.value.includes(b.name))) || [], x = Ze(p, m, {
2027
+ var w;
2028
+ const p = [...l.value], h = ((w = i.fields) == null ? void 0 : w.filter((g) => u.value.includes(g.name))) || [], x = rn(p, h, {
2026
2029
  selectedKeys: u.value,
2027
- resolveKey: (b) => xe(b)
2030
+ resolveKey: (g) => xe(g)
2028
2031
  });
2029
2032
  l.value = x, t.value = !1, u.value = [];
2030
2033
  }
2031
2034
  function y() {
2032
2035
  t.value = !1, u.value = [];
2033
2036
  }
2034
- function g() {
2037
+ function b() {
2035
2038
  let p = [];
2036
2039
  o.value === "all" ? p = i.fields || [] : o.value === "none" ? p = [] : p = l.value, r("save", p);
2037
2040
  }
2038
- return (p, m) => (C(), M("div", lo, [
2041
+ return (p, h) => (C(), D("div", ho, [
2039
2042
  v("div", { class: "flex justify-between mb-3 gap-2" }, [
2040
2043
  v("button", {
2041
- onClick: h,
2044
+ onClick: m,
2042
2045
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
2043
2046
  }, " Імпорт "),
2044
2047
  v("button", {
2045
- onClick: g,
2048
+ onClick: b,
2046
2049
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
2047
2050
  }, " Зберегти фільтр ")
2048
2051
  ]),
2049
- o.value === "list" ? (C(), N(Me, {
2052
+ o.value === "list" ? (C(), M($e, {
2050
2053
  key: 0,
2051
2054
  modelValue: l.value,
2052
- "onUpdate:modelValue": m[0] || (m[0] = (x) => l.value = x),
2055
+ "onUpdate:modelValue": h[0] || (h[0] = (x) => l.value = x),
2053
2056
  "columns-scheme": a,
2054
2057
  "form-scheme": s,
2055
2058
  "main-col-width": "250px",
2056
2059
  "add-button": !1
2057
- }, null, 8, ["modelValue"])) : P("", !0),
2058
- j(Je, {
2060
+ }, null, 8, ["modelValue"])) : q("", !0),
2061
+ j(ln, {
2059
2062
  visible: t.value,
2060
- "onUpdate:visible": m[1] || (m[1] = (x) => t.value = x),
2063
+ "onUpdate:visible": h[1] || (h[1] = (x) => t.value = x),
2061
2064
  selection: u.value,
2062
- "onUpdate:selection": m[2] || (m[2] = (x) => u.value = x),
2065
+ "onUpdate:selection": h[2] || (h[2] = (x) => u.value = x),
2063
2066
  fields: e.fields,
2064
2067
  title: "Імпорт полів",
2065
2068
  "id-prefix": "import-filter",
@@ -2068,7 +2071,7 @@ ${L}` : L;
2068
2071
  }, null, 8, ["visible", "selection", "fields"])
2069
2072
  ]));
2070
2073
  }
2071
- }), to = /* @__PURE__ */ Z({
2074
+ }), xo = /* @__PURE__ */ ee({
2072
2075
  __name: "MapDataLayer",
2073
2076
  props: {
2074
2077
  id: {},
@@ -2077,10 +2080,10 @@ ${L}` : L;
2077
2080
  autoCenter: { type: [Boolean, null] }
2078
2081
  },
2079
2082
  setup(e, { expose: n }) {
2080
- var p, m, x, _;
2081
- const { map: i, flyTo: r, setZoom: l } = Pi(), o = ((m = (p = Dn()) == null ? void 0 : p.appContext.config.globalProperties) == null ? void 0 : m.$settings) || null, t = e, u = t.id;
2083
+ var p, h, x, w;
2084
+ const { map: i, flyTo: r, setZoom: l } = Zi(), o = ((h = (p = qn()) == null ? void 0 : p.appContext.config.globalProperties) == null ? void 0 : h.$settings) || null, t = e, u = t.id;
2082
2085
  String(t.id);
2083
- const a = `${location.origin}/api/vtile/${t.id}/ua/{z}/{x}/{y}.vmt?all=1`, s = $n(u, {
2086
+ const a = `${location.origin}/api/vtile/${t.id}/ua/{z}/{x}/{y}.vmt?all=1`, s = Ie(u, {
2084
2087
  source: {
2085
2088
  type: "vector",
2086
2089
  tiles: [a],
@@ -2099,139 +2102,168 @@ ${L}` : L;
2099
2102
  } */
2100
2103
  }
2101
2104
  });
2102
- n({ layerHandle: s }), (t.autoCenter ?? !0) && r({ center: t.layer.center || ((_ = o == null ? void 0 : o.map) == null ? void 0 : _.center) || [30, 50], animate: !1 });
2103
- let h = null;
2105
+ n({ layerHandle: s }), (t.autoCenter ?? !0) && r({ center: t.layer.center || ((w = o == null ? void 0 : o.map) == null ? void 0 : w.center) || [30, 50], animate: !1 });
2106
+ let m = null;
2104
2107
  function d() {
2105
2108
  if (!(s != null && s.setTiles)) return;
2106
- const b = a.includes("?") ? "&" : "?", V = `${a}${b}_=${Date.now()}`;
2107
- s.setTiles([V]);
2109
+ const g = a.includes("?") ? "&" : "?", K = `${a}${g}_=${Date.now()}`;
2110
+ s.setTiles([K]);
2108
2111
  }
2109
2112
  function y() {
2110
- h && clearTimeout(h), h = setTimeout(() => {
2111
- h = null, g().catch((b) => console.error("Failed to update map layer", b));
2113
+ m && clearTimeout(m), m = setTimeout(() => {
2114
+ m = null, b().catch((g) => console.error("Failed to update map layer", g));
2112
2115
  }, 300);
2113
2116
  }
2114
- async function g() {
2117
+ async function b() {
2115
2118
  i.value && (d(), s.setStyle(t.styleSpec ?? null));
2116
2119
  }
2117
- return T(() => t.styleSpec, y, { deep: !0 }), Rn(() => {
2120
+ return I(() => t.styleSpec, y, { deep: !0 }), Kn(() => {
2118
2121
  s.remove();
2119
- }), (b, V) => null;
2122
+ }), (g, K) => null;
2120
2123
  }
2121
- }), oo = { class: "flex h-full bg-gradient-to-br from-slate-50 to-white" }, uo = { class: "flex-1 relative overflow-hidden" }, ao = { class: "absolute top-0 left-0 w-full z-20" }, so = { class: "px-4 sm:px-6 py-4 border-b border-gray-200 bg-white shadow-sm" }, co = { class: "flex items-start justify-between gap-4" }, fo = { class: "flex-1 min-w-0" }, po = { class: "flex items-center text-sm text-gray-500 mb-3" }, mo = { class: "text-gray-900 font-medium truncate max-w-xs" }, ho = { class: "flex items-center justify-between gap-4" }, vo = { class: "flex-1 min-w-0" }, xo = { class: "flex items-center gap-3 mb-1" }, yo = { class: "text-base font-semibold text-gray-900 truncate" }, go = {
2124
+ }), yo = { class: "flex h-full bg-gradient-to-br from-slate-50 to-white" }, go = { class: "flex-1 relative overflow-hidden" }, bo = { class: "absolute top-0 left-0 w-full z-20" }, _o = { class: "px-4 sm:px-6 py-4 border-b border-gray-200 bg-white shadow-sm" }, wo = { class: "flex items-start justify-between gap-4" }, Ao = { class: "flex-1 min-w-0" }, ko = { class: "flex items-center text-sm text-gray-500 mb-3" }, Co = { class: "text-gray-900 font-medium truncate max-w-xs" }, So = { class: "flex items-center justify-between gap-4" }, Eo = { class: "flex-1 min-w-0" }, Fo = { class: "flex items-center gap-3 mb-1" }, To = { class: "text-base font-semibold text-gray-900 truncate" }, Io = {
2122
2125
  key: 0,
2123
2126
  class: "px-2 py-0.5 bg-green-50 border border-green-200 rounded flex-shrink-0"
2124
- }, bo = { class: "text-xs font-medium text-green-700" }, wo = ["title"], _o = { class: "w-full h-full bg-gradient-to-br from-sky-50 via-white to-blue-50 flex items-center justify-center relative pt-[115px]" }, Ao = { class: "relative w-full h-full" }, ko = { style: { top: "17px", left: "230px", position: "absolute", "z-index": "1" } }, Co = { class: "absolute top-4 left-4 z-20" }, So = { class: "absolute top-[6.5rem] right-2 space-y-1 z-20" }, Eo = { class: "absolute bottom-4 left-4 z-20" }, Fo = { class: "flex-1 flex flex-col h-full" }, To = { class: "px-3 pt-3 pb-2 border-b border-gray-100" }, Io = { class: "items-center justify-center text-muted-foreground grid w-full grid-cols-6 h-12 p-1 bg-gray-50 rounded-xl shadow-sm" }, Oo = ["aria-selected", "onClick"], Lo = { class: "leading-none" }, No = { class: "flex flex-col flex-1 overflow-y-hidden p-3" }, Mo = "OpenGIS", Ln = 2, Ee = 5, Do = 1e3, Ro = /* @__PURE__ */ Z({
2127
+ }, Oo = { class: "text-xs font-medium text-green-700" }, Lo = ["title"], No = { class: "w-full h-full bg-gradient-to-br from-sky-50 via-white to-blue-50 flex items-center justify-center relative pt-[115px]" }, Mo = { class: "relative w-full h-full" }, Do = { style: { top: "17px", left: "230px", position: "absolute", "z-index": "1" } }, Ro = { class: "absolute top-4 left-4 z-20" }, $o = { class: "absolute top-[6.5rem] right-2 space-y-1 z-20" }, jo = { class: "absolute bottom-4 left-4 z-20" }, Uo = { class: "flex-1 flex flex-col h-full" }, Bo = { class: "px-3 pt-3 pb-2 border-b border-gray-100" }, Yo = { class: "items-center justify-center text-muted-foreground grid w-full grid-cols-6 h-12 p-1 bg-gray-50 rounded-xl shadow-sm" }, Po = ["aria-selected", "onClick"], Ho = { class: "leading-none" }, Vo = { class: "flex flex-col flex-1 overflow-y-hidden p-3" }, qo = "OpenGIS", Pn = 2, Te = 5, Ko = 1e3, zo = /* @__PURE__ */ ee({
2125
2128
  __name: "service",
2126
2129
  props: {
2127
2130
  hideServiceKey: { type: Boolean, default: !1 }
2128
2131
  },
2129
2132
  setup(e) {
2130
- var fn, dn;
2131
- const i = $i(e, "hideServiceKey"), r = Bi(), l = Yi(), { id: o } = r.params, t = S(null), u = S(null), a = S({}), s = S(null), h = ((dn = (fn = Dn()) == null ? void 0 : fn.appContext.config.globalProperties) == null ? void 0 : dn.$settings) || null;
2133
+ var vn, xn;
2134
+ const i = zi(e, "hideServiceKey"), r = Wi(), l = Ji(), { id: o } = r.params, t = S(null), u = S(null), a = S({}), s = S(null), m = ((xn = (vn = qn()) == null ? void 0 : vn.appContext.config.globalProperties) == null ? void 0 : xn.$settings) || null;
2132
2135
  function d(c) {
2133
- typeof document > "u" || (document.title = c ? `${c} — Сервіс` : Mo);
2136
+ typeof document > "u" || (document.title = c ? `${c} — Сервіс` : qo);
2134
2137
  }
2135
2138
  let y = null;
2136
- const g = S(!1);
2139
+ const b = S(!1);
2137
2140
  function p() {
2138
2141
  var c;
2139
2142
  return (c = t.value) == null ? void 0 : c.ctx;
2140
2143
  }
2141
- function m(c) {
2142
- if (Array.isArray(c)) return m(c[0]);
2144
+ function h(c) {
2145
+ typeof window > "u" || window.dispatchEvent(
2146
+ new CustomEvent(ol, {
2147
+ detail: c
2148
+ })
2149
+ );
2150
+ }
2151
+ function x(c) {
2152
+ var L, k, z;
2153
+ const f = (k = (L = p()) == null ? void 0 : L.map) == null ? void 0 : k.value;
2154
+ if (!f || !c) return [];
2155
+ const A = (z = s.value) != null && z.service_id ? String(s.value.service_id) : null;
2156
+ return (f.queryRenderedFeatures(c) || []).filter((F) => {
2157
+ var yn, gn, bn, _n, wn, An;
2158
+ const J = ((yn = F == null ? void 0 : F.properties) == null ? void 0 : yn.id) ?? (F == null ? void 0 : F.id);
2159
+ if (J == null || !(F != null && F.source) || A && String(F.source) !== A) return !1;
2160
+ const H = Ie(F.source) || Ie((gn = F.layer) == null ? void 0 : gn.id);
2161
+ if (!H) return !1;
2162
+ const ie = (_n = (bn = H == null ? void 0 : H.opts) == null ? void 0 : bn.source) == null ? void 0 : _n.type, Ee = (An = (wn = H == null ? void 0 : H.opts) == null ? void 0 : wn.layer) == null ? void 0 : An.type;
2163
+ return ie !== "raster" && Ee !== "raster";
2164
+ });
2165
+ }
2166
+ function w(c) {
2167
+ const f = x(c == null ? void 0 : c.point);
2168
+ h({
2169
+ features: f,
2170
+ externalItems: []
2171
+ });
2172
+ }
2173
+ function g(c) {
2174
+ if (Array.isArray(c)) return g(c[0]);
2143
2175
  if (typeof c != "string" && typeof c != "number") return null;
2144
2176
  const f = typeof c == "number" ? c : Number(c.trim());
2145
2177
  return Number.isFinite(f) ? f : null;
2146
2178
  }
2147
- function x(c, f) {
2179
+ function K(c, f) {
2148
2180
  return c.toFixed(f);
2149
2181
  }
2150
- function _(c, f, A) {
2182
+ function V(c, f, A) {
2151
2183
  const E = 0.5 * 10 ** -A;
2152
2184
  return Math.abs(c - f) > E;
2153
2185
  }
2154
- function b() {
2155
- var Q, fe, de, pe;
2156
- const c = (fe = (Q = p()) == null ? void 0 : Q.map) == null ? void 0 : fe.value;
2186
+ function de() {
2187
+ var F, J, H, ie;
2188
+ const c = (J = (F = p()) == null ? void 0 : F.map) == null ? void 0 : J.value;
2157
2189
  if (!c) return;
2158
- const f = m(r.query.z), A = m(r.query.x), E = m(r.query.y);
2190
+ const f = g(r.query.z), A = g(r.query.x), E = g(r.query.y);
2159
2191
  if (f == null || A == null || E == null) return;
2160
- const $ = (de = c.getCenter) == null ? void 0 : de.call(c), k = (pe = c.getZoom) == null ? void 0 : pe.call(c);
2161
- (!$ || _($.lng, A, Ee) || _($.lat, E, Ee) || _(k ?? 0, f, Ln)) && (g.value = !0, c.jumpTo({ center: [A, E], zoom: f }), g.value = !1);
2192
+ const L = (H = c.getCenter) == null ? void 0 : H.call(c), k = (ie = c.getZoom) == null ? void 0 : ie.call(c);
2193
+ (!L || V(L.lng, A, Te) || V(L.lat, E, Te) || V(k ?? 0, f, Pn)) && (b.value = !0, c.jumpTo({ center: [A, E], zoom: f }), b.value = !1);
2162
2194
  }
2163
- function V() {
2164
- var $, k, ee, Q;
2165
- if (g.value) return;
2166
- const c = (k = ($ = p()) == null ? void 0 : $.map) == null ? void 0 : k.value;
2195
+ function re() {
2196
+ var L, k, z, F;
2197
+ if (b.value) return;
2198
+ const c = (k = (L = p()) == null ? void 0 : L.map) == null ? void 0 : k.value;
2167
2199
  if (!c) return;
2168
- const f = (ee = c.getCenter) == null ? void 0 : ee.call(c), A = (Q = c.getZoom) == null ? void 0 : Q.call(c);
2200
+ const f = (z = c.getCenter) == null ? void 0 : z.call(c), A = (F = c.getZoom) == null ? void 0 : F.call(c);
2169
2201
  if (!f || A == null) return;
2170
2202
  const E = {
2171
2203
  ...r.query,
2172
- z: x(A, Ln),
2173
- x: x(f.lng, Ee),
2174
- y: x(f.lat, Ee)
2204
+ z: K(A, Pn),
2205
+ x: K(f.lng, Te),
2206
+ y: K(f.lat, Te)
2175
2207
  };
2176
2208
  r.query.z === E.z && r.query.x === E.x && r.query.y === E.y || l.replace({ query: E });
2177
2209
  }
2178
- const L = S(null), ie = S(""), q = S([]), K = S([]), le = S([]), ce = S("list"), Re = S(""), _e = S([]), Ae = S(!0);
2179
- let X = null;
2180
- const B = Se(
2210
+ const B = S(null), pe = S(""), te = S([]), Ue = S([]), we = S([]), Be = S("list"), Ye = S(""), Ae = S([]), ke = S(!0);
2211
+ let ne = null;
2212
+ const Y = Fe(
2181
2213
  () => {
2182
2214
  var c, f;
2183
2215
  return ((c = s.value) == null ? void 0 : c.id) ?? ((f = s.value) == null ? void 0 : f.service_id) ?? null;
2184
2216
  }
2185
- ), on = Se(() => {
2186
- const c = (h == null ? void 0 : h.map) || null, f = (c == null ? void 0 : c.boundary) ?? null, A = (c == null ? void 0 : c.katottg) ?? null;
2217
+ ), fn = Fe(() => {
2218
+ const c = (m == null ? void 0 : m.map) || null, f = (c == null ? void 0 : c.boundary) ?? null, A = (c == null ? void 0 : c.katottg) ?? null;
2187
2219
  return !f && !A ? null : { boundary: f, katottg: A };
2188
- }), $e = Se(() => {
2220
+ }), Pe = Fe(() => {
2189
2221
  const c = s.value;
2190
2222
  if (!c) return "";
2191
2223
  const f = [];
2192
2224
  !i.value && c.service_key && f.push(`Сервіс: ${c.service_key}`), c.description && f.push(c.description);
2193
2225
  const A = c.group_name || c.group_id;
2194
2226
  return A && f.push(`Група: ${A}`), typeof c.is_public < "u" && f.push(c.is_public ? "Публічний" : "Не публічний"), typeof c.is_active < "u" && f.push(c.is_active ? "Активний" : "Неактивний"), f.join(", ");
2195
- }), un = Se(() => {
2227
+ }), dn = Fe(() => {
2196
2228
  const c = s.value, f = (c == null ? void 0 : c.group_name) || (c == null ? void 0 : c.group_id);
2197
2229
  return f ? String(f).toUpperCase() : "";
2198
- }), an = [
2199
- { key: "style", label: "Стиль", icon: el },
2200
- { key: "popup", label: "Попап", icon: St },
2201
- { key: "filter", label: "Фільтр", icon: It },
2202
- { key: "legend", label: "Легенда", icon: _t },
2203
- { key: "card", label: "Картка", icon: nl },
2204
- { key: "metadata", label: "Метадані", icon: Xi }
2205
- ], sn = an.map((c) => c.key), Y = S("style");
2206
- ji(async () => {
2230
+ }), pn = [
2231
+ { key: "style", label: "Стиль", icon: fl },
2232
+ { key: "popup", label: "Попап", icon: $t },
2233
+ { key: "filter", label: "Фільтр", icon: Yt },
2234
+ { key: "legend", label: "Легенда", icon: Nt },
2235
+ { key: "card", label: "Картка", icon: dl },
2236
+ { key: "metadata", label: "Метадані", icon: cl }
2237
+ ], mn = pn.map((c) => c.key), P = S("style");
2238
+ Gi(async () => {
2207
2239
  const c = r.query.tab;
2208
- c && sn.includes(c) && (Y.value = c), await ke(), Fi();
2240
+ c && mn.includes(c) && (P.value = c), await Ce(), ji();
2209
2241
  });
2210
- async function Fi() {
2242
+ async function ji() {
2211
2243
  var E;
2212
2244
  const c = p();
2213
2245
  if (!(c != null && c.ready)) return;
2214
- await c.ready(), b();
2246
+ await c.ready(), de();
2215
2247
  const f = (E = c.map) == null ? void 0 : E.value;
2216
2248
  if (!f) return;
2217
- const A = () => V();
2218
- f.on("moveend", A), f.on("zoomend", A), y = () => {
2219
- f.off("moveend", A), f.off("zoomend", A);
2249
+ const A = () => re();
2250
+ f.on("moveend", A), f.on("zoomend", A), f.on("click", w), y = () => {
2251
+ f.off("moveend", A), f.off("zoomend", A), f.off("click", w);
2220
2252
  };
2221
2253
  }
2222
- T(
2254
+ I(
2223
2255
  () => [r.query.z, r.query.x, r.query.y],
2224
2256
  () => {
2225
- b();
2257
+ de();
2226
2258
  }
2227
- ), T(Y, (c) => {
2259
+ ), I(P, (c) => {
2228
2260
  r.query.tab !== c && l.replace({ query: { ...r.query, tab: c } });
2229
- }), T(
2261
+ }), I(
2230
2262
  () => r.query.tab,
2231
2263
  (c) => {
2232
- c && sn.includes(c) && Y.value !== c && (Y.value = c);
2264
+ c && mn.includes(c) && P.value !== c && (P.value = c);
2233
2265
  }
2234
- ), T(
2266
+ ), I(
2235
2267
  () => {
2236
2268
  var c;
2237
2269
  return (c = s.value) == null ? void 0 : c.name;
@@ -2239,7 +2271,7 @@ ${L}` : L;
2239
2271
  (c) => d(c),
2240
2272
  { immediate: !0 }
2241
2273
  );
2242
- function je(c) {
2274
+ function He(c) {
2243
2275
  if (!c) return null;
2244
2276
  try {
2245
2277
  return JSON.parse(JSON.stringify(c));
@@ -2247,136 +2279,136 @@ ${L}` : L;
2247
2279
  return console.warn("Failed to clone style", f), null;
2248
2280
  }
2249
2281
  }
2250
- function Ue(c) {
2282
+ function Ve(c) {
2251
2283
  if (!c) return null;
2252
2284
  if (typeof c == "string")
2253
2285
  try {
2254
- return hn(On.load(c) || null);
2286
+ return Cn(Yn.load(c) || null);
2255
2287
  } catch (f) {
2256
2288
  return console.warn("Failed to parse style yaml", f), null;
2257
2289
  }
2258
- return hn(je(c));
2290
+ return Cn(He(c));
2259
2291
  }
2260
- function Ti(c, f) {
2292
+ function Ui(c, f) {
2261
2293
  try {
2262
2294
  return JSON.stringify(c) === JSON.stringify(f);
2263
2295
  } catch {
2264
2296
  return !1;
2265
2297
  }
2266
2298
  }
2267
- function Ii() {
2299
+ function Bi() {
2268
2300
  var f;
2269
2301
  if (!s.value) return;
2270
- const c = Ue(L.value);
2271
- Ti(c, ((f = s.value) == null ? void 0 : f.style) ?? null) || (s.value = {
2302
+ const c = Ve(B.value);
2303
+ Ui(c, ((f = s.value) == null ? void 0 : f.style) ?? null) || (s.value = {
2272
2304
  ...s.value,
2273
2305
  style: c
2274
2306
  });
2275
2307
  }
2276
- function Oi() {
2277
- X && clearTimeout(X), X = setTimeout(() => {
2278
- X = null, Ii();
2279
- }, Do);
2308
+ function Yi() {
2309
+ ne && clearTimeout(ne), ne = setTimeout(() => {
2310
+ ne = null, Bi();
2311
+ }, Ko);
2280
2312
  }
2281
- const ke = async () => {
2313
+ const Ce = async () => {
2282
2314
  try {
2283
2315
  const c = await fetch(`/api/gis-service/${o}`);
2284
2316
  if (!c.ok) throw new Error(`${c.status}`);
2285
2317
  const f = await c.json();
2286
2318
  a.value = f || {}, u.value = o;
2287
- const A = Ue(f.style);
2288
- s.value = f ? { ...f, style: je(A) } : null, L.value = A, ie.value = typeof (f == null ? void 0 : f.style) == "string" ? f.style : A ? On.dump(A) : "", K.value = (f == null ? void 0 : f.popup) || [], ce.value = f.card_mode === "html" ? "html" : "list", le.value = f.card, Re.value = f.html, q.value = (f == null ? void 0 : f.legend) || [], _e.value = (f == null ? void 0 : f.filters) || [];
2319
+ const A = Ve(f.style);
2320
+ s.value = f ? { ...f, style: He(A) } : null, B.value = A, pe.value = typeof (f == null ? void 0 : f.style) == "string" ? f.style : A ? Yn.dump(A) : "", Ue.value = (f == null ? void 0 : f.popup) || [], Be.value = f.card_mode === "html" ? "html" : "list", we.value = f.card, Ye.value = f.html, te.value = (f == null ? void 0 : f.legend) || [], Ae.value = (f == null ? void 0 : f.filters) || [];
2289
2321
  } catch (c) {
2290
2322
  console.error("Failed to fetch map info", c);
2291
2323
  }
2292
2324
  };
2293
- T(
2325
+ I(
2294
2326
  () => {
2295
2327
  var c;
2296
2328
  return (c = s.value) == null ? void 0 : c.style;
2297
2329
  },
2298
2330
  (c) => {
2299
- L.value = Ue(c);
2331
+ B.value = Ve(c);
2300
2332
  },
2301
2333
  { deep: !0 }
2302
- ), T(
2303
- () => L.value,
2334
+ ), I(
2335
+ () => B.value,
2304
2336
  () => {
2305
- Oi();
2337
+ Yi();
2306
2338
  },
2307
2339
  { deep: !0 }
2308
- ), Rn(() => {
2309
- X && (clearTimeout(X), X = null), y == null || y(), y = null;
2340
+ ), Kn(() => {
2341
+ ne && (clearTimeout(ne), ne = null), y == null || y(), y = null;
2310
2342
  });
2311
- async function Li(c) {
2343
+ async function Pi(c) {
2312
2344
  try {
2313
- const f = await fetch(`/api/gis-clear-vtile/${c}`), { message: A, error: E, code: $ } = await f.json();
2314
- if ($ === 200)
2315
- return z({ type: "success", title: "Успіх", message: A });
2316
- z({ type: "error", title: "Помилка", message: E });
2345
+ const f = await fetch(`/api/gis-clear-vtile/${c}`), { message: A, error: E, code: L } = await f.json();
2346
+ if (L === 200)
2347
+ return Q({ type: "success", title: "Успіх", message: A });
2348
+ Q({ type: "error", title: "Помилка", message: E });
2317
2349
  } catch (f) {
2318
- z({
2350
+ Q({
2319
2351
  type: "error",
2320
2352
  title: "Помилка",
2321
2353
  message: "Не вдалося очистити тайли"
2322
2354
  }), console.error(f);
2323
2355
  }
2324
2356
  }
2325
- async function Ce(c, f) {
2326
- await cn({ [c]: f }, c);
2357
+ async function Se(c, f) {
2358
+ await hn({ [c]: f }, c);
2327
2359
  }
2328
- function Ni() {
2329
- const c = je(L.value);
2360
+ function Hi() {
2361
+ const c = He(B.value);
2330
2362
  s.value = s.value ? { ...s.value, style: c } : s.value;
2331
2363
  }
2332
- async function cn(c, f) {
2364
+ async function hn(c, f) {
2333
2365
  if (s.value = {
2334
2366
  ...s.value || {},
2335
2367
  ...c
2336
2368
  }, typeof c.html < "u" && (a.value = {
2337
2369
  ...a.value || {},
2338
2370
  html: c.html
2339
- }), !!B.value)
2371
+ }), !!Y.value)
2340
2372
  try {
2341
- if (!(await fetch(`/api/gis-service/${B.value}`, {
2373
+ if (!(await fetch(`/api/gis-service/${Y.value}`, {
2342
2374
  method: "PUT",
2343
2375
  headers: { "Content-Type": "application/json" },
2344
2376
  body: JSON.stringify(c)
2345
2377
  })).ok) throw new Error("Save failed");
2346
- z({
2378
+ Q({
2347
2379
  type: "success",
2348
2380
  title: "Успіх",
2349
2381
  message: `${f} saved`
2350
- }), await ke();
2382
+ }), await Ce();
2351
2383
  } catch (A) {
2352
- z({
2384
+ Q({
2353
2385
  type: "error",
2354
2386
  title: "Помилка",
2355
2387
  message: `Failed to save ${f}`
2356
2388
  }), console.error(A);
2357
2389
  }
2358
2390
  }
2359
- async function Mi(c, f) {
2391
+ async function Vi(c, f) {
2360
2392
  if (c !== "card") {
2361
- await Ce(c, f);
2393
+ await Se(c, f);
2362
2394
  return;
2363
2395
  }
2364
- const A = (f == null ? void 0 : f.card_mode) === "html" ? "html" : "list", E = A === "html" && typeof (f == null ? void 0 : f.html) == "string" ? f.html : "", $ = (A === "html" ? [] : null) || (Array.isArray(f == null ? void 0 : f.list) ? f.list : []);
2365
- le.value = $, ce.value = A, Re.value = E;
2396
+ const A = (f == null ? void 0 : f.card_mode) === "html" ? "html" : "list", E = A === "html" && typeof (f == null ? void 0 : f.html) == "string" ? f.html : "", L = (A === "html" ? [] : null) || (Array.isArray(f == null ? void 0 : f.list) ? f.list : []);
2397
+ we.value = L, Be.value = A, Ye.value = E;
2366
2398
  const k = {
2367
2399
  card_mode: A
2368
2400
  };
2369
- A === "html" && (k.html = E), A === "list" && (k.card = $), await cn(k, "card");
2401
+ A === "html" && (k.html = E), A === "list" && (k.card = L), await hn(k, "card");
2370
2402
  }
2371
2403
  return (c, f) => {
2372
- var A, E, $;
2373
- return C(), M("div", oo, [
2374
- v("div", uo, [
2375
- v("div", ao, [
2376
- v("div", so, [
2377
- v("div", co, [
2378
- v("div", fo, [
2379
- v("div", po, [
2404
+ var A, E, L;
2405
+ return C(), D("div", yo, [
2406
+ v("div", go, [
2407
+ v("div", bo, [
2408
+ v("div", _o, [
2409
+ v("div", wo, [
2410
+ v("div", Ao, [
2411
+ v("div", ko, [
2380
2412
  v("button", {
2381
2413
  type: "button",
2382
2414
  class: "hover:text-gray-700 cursor-pointer transition-colors",
@@ -2396,90 +2428,90 @@ ${L}` : L;
2396
2428
  }, [
2397
2429
  v("path", { d: "m9 18 6-6-6-6" })
2398
2430
  ], -1)),
2399
- v("span", mo, te(((A = s.value) == null ? void 0 : A.name) || "Dataset"), 1)
2431
+ v("span", Co, ue(((A = s.value) == null ? void 0 : A.name) || "Dataset"), 1)
2400
2432
  ]),
2401
- v("div", ho, [
2402
- v("div", vo, [
2403
- v("div", xo, [
2404
- v("h1", yo, te(((E = s.value) == null ? void 0 : E.name) || "Dataset"), 1),
2405
- un.value ? (C(), M("div", go, [
2406
- v("span", bo, te(un.value), 1)
2407
- ])) : P("", !0)
2433
+ v("div", So, [
2434
+ v("div", Eo, [
2435
+ v("div", Fo, [
2436
+ v("h1", To, ue(((E = s.value) == null ? void 0 : E.name) || "Dataset"), 1),
2437
+ dn.value ? (C(), D("div", Io, [
2438
+ v("span", Oo, ue(dn.value), 1)
2439
+ ])) : q("", !0)
2408
2440
  ]),
2409
- $e.value ? (C(), M("p", {
2441
+ Pe.value ? (C(), D("p", {
2410
2442
  key: 0,
2411
2443
  class: "text-xs text-gray-500 truncate",
2412
- title: $e.value
2413
- }, te($e.value), 9, wo)) : P("", !0)
2444
+ title: Pe.value
2445
+ }, ue(Pe.value), 9, Lo)) : q("", !0)
2414
2446
  ])
2415
2447
  ])
2416
2448
  ]),
2417
- B.value ? (C(), N(Wi, {
2449
+ Y.value ? (C(), M(ul, {
2418
2450
  key: 0,
2419
2451
  class: "flex-shrink-0",
2420
- "entity-id": B.value,
2421
- "entity-info": { name: ($ = s.value) == null ? void 0 : $.name },
2452
+ "entity-id": Y.value,
2453
+ "entity-info": { name: (L = s.value) == null ? void 0 : L.name },
2422
2454
  table: "gis.services.table",
2423
2455
  "entity-label": "Сервіс",
2424
2456
  "save-method": "put",
2425
2457
  "show-xml-item": !1,
2426
- "clear-tiles-handler": Li,
2427
- onSaved: ke
2428
- }, null, 8, ["entity-id", "entity-info"])) : P("", !0)
2458
+ "clear-tiles-handler": Pi,
2459
+ onSaved: Ce
2460
+ }, null, 8, ["entity-id", "entity-info"])) : q("", !0)
2429
2461
  ])
2430
2462
  ])
2431
2463
  ]),
2432
- v("div", _o, [
2433
- v("div", Ao, [
2434
- j(Hi, {
2464
+ v("div", No, [
2465
+ v("div", Mo, [
2466
+ j(Xi, {
2435
2467
  ref_key: "mapViewRef",
2436
2468
  ref: t
2437
2469
  }, {
2438
- default: qe(() => {
2439
- var k, ee, Q, fe, de, pe, pn;
2470
+ default: We(() => {
2471
+ var k, z, F, J, H, ie, Ee;
2440
2472
  return [
2441
- (k = s.value) != null && k.service_id ? (C(), N(to, {
2473
+ (k = s.value) != null && k.service_id ? (C(), M(xo, {
2442
2474
  key: 0,
2443
- id: (ee = s.value) == null ? void 0 : ee.service_id,
2475
+ id: (z = s.value) == null ? void 0 : z.service_id,
2444
2476
  layer: s.value,
2445
- "style-spec": ((Q = s.value) == null ? void 0 : Q.style) || null,
2477
+ "style-spec": ((F = s.value) == null ? void 0 : F.style) || null,
2446
2478
  autoCenter: !1
2447
- }, null, 8, ["id", "layer", "style-spec"])) : P("", !0),
2448
- B.value ? (C(), N(Vi, {
2479
+ }, null, 8, ["id", "layer", "style-spec"])) : q("", !0),
2480
+ Y.value ? (C(), M(el, {
2449
2481
  key: 1,
2450
- "layer-id": B.value,
2451
- boundary: ((fe = s.value) == null ? void 0 : fe.boundary) || ((de = on.value) == null ? void 0 : de.boundary) || null,
2452
- katottg: ((pe = s.value) == null ? void 0 : pe.katottg) || ((pn = on.value) == null ? void 0 : pn.katottg) || null
2453
- }, null, 8, ["layer-id", "boundary", "katottg"])) : P("", !0),
2454
- v("div", ko, [
2455
- B.value ? (C(), N(qi, {
2482
+ "layer-id": Y.value,
2483
+ boundary: ((J = s.value) == null ? void 0 : J.boundary) || ((H = fn.value) == null ? void 0 : H.boundary) || null,
2484
+ katottg: ((ie = s.value) == null ? void 0 : ie.katottg) || ((Ee = fn.value) == null ? void 0 : Ee.katottg) || null
2485
+ }, null, 8, ["layer-id", "boundary", "katottg"])) : q("", !0),
2486
+ v("div", Do, [
2487
+ Y.value ? (C(), M(nl, {
2456
2488
  key: 0,
2457
- "layer-id": B.value,
2458
- filters: _e.value
2459
- }, null, 8, ["layer-id", "filters"])) : P("", !0)
2489
+ "layer-id": Y.value,
2490
+ filters: Ae.value
2491
+ }, null, 8, ["layer-id", "filters"])) : q("", !0)
2460
2492
  ]),
2461
2493
  f[12] || (f[12] = v("div", {
2462
2494
  id: "map-filter-popover-host",
2463
2495
  class: "map-widget__filter-host"
2464
2496
  }, null, -1)),
2465
- v("div", Co, [
2466
- j(Ki)
2497
+ v("div", Ro, [
2498
+ j(il)
2467
2499
  ]),
2468
- v("div", So, [
2469
- j(mn),
2470
- a.value.center ? (C(), N(mn, {
2500
+ v("div", $o, [
2501
+ j(kn),
2502
+ a.value.center ? (C(), M(kn, {
2471
2503
  key: 0,
2472
2504
  targetCenter: a.value.center,
2473
2505
  targetLabel: "Ценр даних"
2474
- }, null, 8, ["targetCenter"])) : P("", !0)
2506
+ }, null, 8, ["targetCenter"])) : q("", !0)
2475
2507
  ]),
2476
- v("div", Eo, [
2477
- j(zi, {
2478
- items: q.value || null
2508
+ v("div", jo, [
2509
+ j(ll, {
2510
+ items: te.value || null
2479
2511
  }, null, 8, ["items"])
2480
2512
  ]),
2481
- j(Gi),
2482
- j(Qi, {
2513
+ j(rl),
2514
+ j(tl, {
2483
2515
  html: a.value.html
2484
2516
  }, null, 8, ["html"])
2485
2517
  ];
@@ -2488,86 +2520,86 @@ ${L}` : L;
2488
2520
  }, 512)
2489
2521
  ])
2490
2522
  ]),
2491
- j(Ji, {
2492
- open: Ae.value,
2493
- onToggle: f[1] || (f[1] = (k) => Ae.value = !Ae.value),
2523
+ j(al, {
2524
+ open: ke.value,
2525
+ onToggle: f[1] || (f[1] = (k) => ke.value = !ke.value),
2494
2526
  "top-class": "top-4"
2495
2527
  }, null, 8, ["open"])
2496
2528
  ]),
2497
2529
  v("div", {
2498
- class: he(["bg-white border-l border-gray-100 flex flex-col overflow-hidden shadow-lg flex-shrink-0 transition-[width] duration-100 ease-in-out", Ae.value ? "w-[650px]" : "w-0"])
2530
+ class: he(["bg-white border-l border-gray-100 flex flex-col overflow-hidden shadow-lg flex-shrink-0 transition-[width] duration-100 ease-in-out", ke.value ? "w-[650px]" : "w-0"])
2499
2531
  }, [
2500
- v("div", Fo, [
2501
- v("div", To, [
2502
- v("div", Io, [
2503
- (C(), M(Nn, null, Mn(an, (k) => v("button", {
2532
+ v("div", Uo, [
2533
+ v("div", Bo, [
2534
+ v("div", Yo, [
2535
+ (C(), D(Hn, null, Vn(pn, (k) => v("button", {
2504
2536
  key: k.key,
2505
2537
  type: "button",
2506
2538
  role: "tab",
2507
- "aria-selected": Y.value === k.key,
2539
+ "aria-selected": P.value === k.key,
2508
2540
  class: he([
2509
2541
  "whitespace-nowrap flex flex-col items-center justify-center gap-0.5 py-1 px-1 text-[9px] font-medium transition-all duration-300 hover:bg-white/70 rounded-lg group",
2510
- Y.value === k.key ? "bg-white shadow-sm text-gray-700" : ""
2542
+ P.value === k.key ? "bg-white shadow-sm text-gray-700" : ""
2511
2543
  ]),
2512
- onClick: (ee) => Y.value = k.key
2544
+ onClick: (z) => P.value = k.key
2513
2545
  }, [
2514
- (C(), N(Ui(k.icon), { class: "h-3.5 w-3.5 mb-0.5" })),
2515
- v("span", Lo, te(k.label), 1)
2516
- ], 10, Oo)), 64))
2546
+ (C(), M(Qi(k.icon), { class: "h-3.5 w-3.5 mb-0.5" })),
2547
+ v("span", Ho, ue(k.label), 1)
2548
+ ], 10, Po)), 64))
2517
2549
  ])
2518
2550
  ]),
2519
- v("div", No, [
2520
- Y.value === "style" ? (C(), N($t, {
2551
+ v("div", Vo, [
2552
+ P.value === "style" ? (C(), M(Gt, {
2521
2553
  key: 0,
2522
- token: B.value,
2523
- "style-text": ie.value,
2524
- "style-yaml": L.value,
2525
- "onUpdate:styleYaml": f[2] || (f[2] = (k) => L.value = k),
2526
- "onUpdate:styleText": f[3] || (f[3] = (k) => ie.value = k),
2527
- onUpdate: Ni
2528
- }, null, 8, ["token", "style-text", "style-yaml"])) : Y.value === "legend" ? (C(), N(Gt, {
2554
+ token: Y.value,
2555
+ "style-text": pe.value,
2556
+ "style-yaml": B.value,
2557
+ "onUpdate:styleYaml": f[2] || (f[2] = (k) => B.value = k),
2558
+ "onUpdate:styleText": f[3] || (f[3] = (k) => pe.value = k),
2559
+ onUpdate: Hi
2560
+ }, null, 8, ["token", "style-text", "style-yaml"])) : P.value === "legend" ? (C(), M(to, {
2529
2561
  key: 1,
2530
- token: B.value,
2531
- columns: q.value,
2532
- "onUpdate:columns": f[4] || (f[4] = (k) => q.value = k),
2533
- onSave: f[5] || (f[5] = (k) => Ce("legend", k))
2534
- }, null, 8, ["token", "columns"])) : Y.value === "popup" ? (C(), N(Bt, {
2562
+ token: Y.value,
2563
+ columns: te.value,
2564
+ "onUpdate:columns": f[4] || (f[4] = (k) => te.value = k),
2565
+ onSave: f[5] || (f[5] = (k) => Se("legend", k))
2566
+ }, null, 8, ["token", "columns"])) : P.value === "popup" ? (C(), M(Jt, {
2535
2567
  key: 2,
2536
- token: B.value,
2537
- columns: K.value,
2568
+ token: Y.value,
2569
+ columns: Ue.value,
2538
2570
  fields: a.value.fields,
2539
- "onUpdate:columns": f[6] || (f[6] = (k) => K.value = k),
2540
- onSave: f[7] || (f[7] = (k) => Ce("popup", k))
2541
- }, null, 8, ["token", "columns", "fields"])) : Y.value === "card" ? (C(), N(io, {
2571
+ "onUpdate:columns": f[6] || (f[6] = (k) => Ue.value = k),
2572
+ onSave: f[7] || (f[7] = (k) => Se("popup", k))
2573
+ }, null, 8, ["token", "columns", "fields"])) : P.value === "card" ? (C(), M(mo, {
2542
2574
  key: 3,
2543
- token: B.value,
2544
- columns: le.value,
2575
+ token: Y.value,
2576
+ columns: we.value,
2545
2577
  fields: a.value.fields,
2546
- "view-mode": ce.value,
2547
- html: Re.value,
2548
- "onUpdate:columns": f[8] || (f[8] = (k) => le.value = k),
2549
- onSave: Mi
2550
- }, null, 8, ["token", "columns", "fields", "view-mode", "html"])) : Y.value === "filter" ? (C(), N(ro, {
2578
+ "view-mode": Be.value,
2579
+ html: Ye.value,
2580
+ "onUpdate:columns": f[8] || (f[8] = (k) => we.value = k),
2581
+ onSave: Vi
2582
+ }, null, 8, ["token", "columns", "fields", "view-mode", "html"])) : P.value === "filter" ? (C(), M(vo, {
2551
2583
  key: 4,
2552
- token: B.value,
2584
+ token: Y.value,
2553
2585
  fields: a.value.fields,
2554
- columns: _e.value,
2555
- "onUpdate:columns": f[9] || (f[9] = (k) => _e.value = k),
2556
- onSave: f[10] || (f[10] = (k) => Ce("filters", k))
2557
- }, null, 8, ["token", "fields", "columns"])) : Y.value === "metadata" ? (C(), N(Zi, {
2586
+ columns: Ae.value,
2587
+ "onUpdate:columns": f[9] || (f[9] = (k) => Ae.value = k),
2588
+ onSave: f[10] || (f[10] = (k) => Se("filters", k))
2589
+ }, null, 8, ["token", "fields", "columns"])) : P.value === "metadata" ? (C(), M(sl, {
2558
2590
  key: 5,
2559
2591
  data: s.value,
2560
2592
  "entity-id": String(ve(o)),
2561
2593
  "entity-type": "service",
2562
- onSaved: ke
2563
- }, null, 8, ["data", "entity-id"])) : P("", !0)
2594
+ onSaved: Ce
2595
+ }, null, 8, ["data", "entity-id"])) : q("", !0)
2564
2596
  ])
2565
2597
  ])
2566
2598
  ], 2)
2567
2599
  ]);
2568
2600
  };
2569
2601
  }
2570
- }), Ko = /* @__PURE__ */ Ne(Ro, [["__scopeId", "data-v-68374a9b"]]);
2602
+ }), lu = /* @__PURE__ */ Re(zo, [["__scopeId", "data-v-008c5939"]]);
2571
2603
  export {
2572
- Ko as default
2604
+ lu as default
2573
2605
  };