@kontur.candy/tools 2.240.0 → 2.243.0

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 (37) hide show
  1. package/distr/Common/CandyApiClient/CandyApiClient.js +26 -14
  2. package/distr/Common/CandyApiClient/CandyApiClient.js.map +1 -1
  3. package/distr/Common/CandyApiClient/Types/ErrorLog/ServerErrorLog.js.map +1 -1
  4. package/distr/Common/CandyApiClient/Types/ErrorLog/Tags/KnownErrorTag.js +13 -0
  5. package/distr/Common/CandyApiClient/Types/ErrorLog/Tags/KnownErrorTag.js.map +1 -0
  6. package/distr/Common/CandyApiClient/Types/ErrorLog/Tags/TagLabel.js +11 -0
  7. package/distr/Common/CandyApiClient/Types/ErrorLog/Tags/TagLabel.js.map +1 -0
  8. package/distr/Common/CandyApiClient/Types/PollingTasks/PollingTaskWaiter.js +9 -4
  9. package/distr/Common/CandyApiClient/Types/PollingTasks/PollingTaskWaiter.js.map +1 -1
  10. package/distr/Common/CandyApiClient/Types/QueryCollecton/Expressions/DecimalConstantExpression.js +3 -1
  11. package/distr/Common/CandyApiClient/Types/QueryCollecton/Expressions/DecimalConstantExpression.js.map +1 -1
  12. package/distr/Common/DateTimeNetUtils.js +59 -0
  13. package/distr/Common/DateTimeNetUtils.js.map +1 -0
  14. package/distr/Common/ModelPath/ModelPath.js +21 -1
  15. package/distr/Common/ModelPath/ModelPath.js.map +1 -1
  16. package/distr/Common/ModelPath/Set/AbsoluteModelPathSet.js +7 -0
  17. package/distr/Common/ModelPath/Set/AbsoluteModelPathSet.js.map +1 -1
  18. package/distr/Common/UseAsyncEffect.js.map +1 -1
  19. package/distr/Common/UseShowOnce.js.map +1 -1
  20. package/distr/Tools/src/BuildTasks/Generator/GeneratorWorker/ReadSourcesAndProcessSugarWorker.js +6 -2
  21. package/distr/Tools/src/BuildTasks/Generator/GeneratorWorker/ReadSourcesAndProcessSugarWorker.js.map +1 -1
  22. package/distr/Tools/src/CLICommands/BuildForms/RunBuildForms.js +7 -0
  23. package/distr/Tools/src/CLICommands/BuildForms/RunBuildForms.js.map +1 -1
  24. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/DevServers/EngineDevServer.js +8 -7
  25. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/DevServers/EngineDevServer.js.map +1 -1
  26. package/distr/Tools/src/CLICommands/RenameFiles/RenameFilesOptions.js +1 -1
  27. package/distr/Tools/src/CLICommands/RenameFiles/RenameFilesOptions.js.map +1 -1
  28. package/distr/Tools/src/CLICommands/RenameFiles/RunRenameFiles.js +15 -1
  29. package/distr/Tools/src/CLICommands/RenameFiles/RunRenameFiles.js.map +1 -1
  30. package/distr/Tools/src/LocalServerFrontEndDist/enhancedClient.js +1 -1
  31. package/distr/Tools/src/LocalServerFrontEndDist/index.js +1 -1
  32. package/distr/Tools/src/LocalServerFrontEndDist/index.js.map +1 -1
  33. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js +763 -1957
  34. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js.map +1 -1
  35. package/package.json +2 -2
  36. package/distr/Tools/src/CLICommands/InitForm/EmptyFormTemplate/presentations.json +0 -8
  37. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js.LICENSE.txt +0 -1
@@ -1,1991 +1,797 @@
1
1
  "use strict";
2
2
 
3
- /*! For license information please see client.js.LICENSE.txt */
4
- (function () {
3
+ !function () {
5
4
  "use strict";
6
5
 
7
- var __webpack_modules__ = {
8
- 750: function (t, e, r) {
9
- var n, o, i;
10
- function a(t) {
11
- return "v1/ns/".concat(t.ns, "/drafts/").concat(t.draftId, "/client-draft-info");
12
- }
13
- r.d(e, {
14
- I: function () {
15
- return a;
16
- }
17
- }), t = r.hmd(t), (n = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.enterModule : void 0) && n(t), "undefined" != typeof reactHotLoaderGlobal && reactHotLoaderGlobal.default.signature, (o = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && o.register(a, "getClientDraftInfoUrl", "/builds/forms/candy/Common/CandyApiClient/ClientDraftInfo/GetClientDraftInfoUrl.ts"), (i = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0) && i(t);
18
- },
19
- 163: function (t, e, r) {
20
- var n;
21
- function o(t) {
22
- return o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
23
- return typeof t;
24
- } : function (t) {
25
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
26
- }, o(t);
27
- }
28
- function i(t) {
29
- return null != t;
30
- }
31
- function a(t, e) {
32
- if (!i(t)) throw new Error(null != e ? e : "Value must be defined");
33
- }
34
- function s(t, e) {
35
- if ("function" != typeof t) throw new Error(null != e ? e : "Value must be defined");
6
+ var t = {};
7
+ function e(t) {
8
+ return e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
9
+ return typeof t;
10
+ } : function (t) {
11
+ return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
12
+ }, e(t);
13
+ }
14
+ function r(t) {
15
+ var r = function (t) {
16
+ if ("object" != e(t) || !t) return t;
17
+ var r = t[Symbol.toPrimitive];
18
+ if (void 0 !== r) {
19
+ var n = r.call(t, "string");
20
+ if ("object" != e(n)) return n;
21
+ throw new TypeError("@@toPrimitive must return a primitive value.");
22
+ }
23
+ return String(t);
24
+ }(t);
25
+ return "symbol" == e(r) ? r : r + "";
26
+ }
27
+ function n(t, e, n) {
28
+ return (e = r(e)) in t ? Object.defineProperty(t, e, {
29
+ value: n,
30
+ enumerable: !0,
31
+ configurable: !0,
32
+ writable: !0
33
+ }) : t[e] = n, t;
34
+ }
35
+ function o(t, e, r, n, o, i, a) {
36
+ try {
37
+ var s = t[i](a),
38
+ u = s.value;
39
+ } catch (t) {
40
+ return void r(t);
41
+ }
42
+ s.done ? e(u) : Promise.resolve(u).then(n, o);
43
+ }
44
+ function i(t) {
45
+ return function () {
46
+ var e = this,
47
+ r = arguments;
48
+ return new Promise(function (n, i) {
49
+ var a = t.apply(e, r);
50
+ function s(t) {
51
+ o(a, n, i, s, u, "next", t);
36
52
  }
37
53
  function u(t) {
38
- throw "string" == typeof t || null == t ? new Error(null != t ? t : "Undefined is not allowed") : t;
39
- }
40
- function c(t, e) {
41
- return t.length >= e;
42
- }
43
- function l(t, e) {
44
- return t.length === e;
45
- }
46
- function f(t) {
47
- return t.length > 0;
48
- }
49
- r.d(e, {
50
- B0: function () {
51
- return s;
52
- },
53
- gx: function () {
54
- return a;
55
- },
56
- ku: function () {
57
- return u;
58
- }
59
- }), t = r.hmd(t), (n = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.enterModule : void 0) && n(t), "undefined" != typeof reactHotLoaderGlobal && reactHotLoaderGlobal.default.signature;
60
- var d, h;
61
- function p(t) {
62
- return null == t || "" === t;
63
- }
64
- (d = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && (d.register(i, "isNotNullOrUndefined", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t) {
65
- return "object" === o(t) && (null == t ? void 0 : t.message);
66
- }, "stringifyUnknownError", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(a, "ensureNotNullOrUndefined", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(s, "ensureHasFunctionType", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function () {}, "noop", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(u, "reject", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(c, "isLengthGreaterThenOrEqual", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t, e) {
67
- if (c(t, e)) return t;
68
- }, "minLengthOrUndefined", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t) {
69
- if (!Array.isArray(t)) throw new Error("Must be an array!");
70
- return t;
71
- }, "ensureIsArray", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(l, "arrayHasLength", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(f, "arrayIsNotEmpty", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t) {
72
- return t.length > 0;
73
- }, "arrayHasAtLeastOneItem", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t, e) {
74
- if (!f(t)) throw new Error(null != e ? e : "Array must be not empty");
75
- }, "ensureArrayIsNotEmpty", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t, e) {
76
- if (!l(t, e)) throw new Error("Array should has length ".concat(e));
77
- }, "ensureArrayHasLength", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t, e) {
78
- if (!c(t, e)) throw new Error("Array must have minimal length ".concat(e));
79
- }, "ensureArrayLengthGreaterThenOrEqual", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t, e) {
80
- return e.includes(t);
81
- }, "isOneOf", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t) {}, "ensureNever", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t) {
82
- return "".concat(t);
83
- }, "ensureAndGetString", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t) {
84
- t();
85
- }, "runAsyncAction", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(p, "isNullOrEmpty", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t) {
86
- return !p(t);
87
- }, "isNotNullOrEmpty", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t) {
88
- return null == t || "" === t.trim();
89
- }, "isNullOrWhiteSpace", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t) {
90
- return "/" === t.slice(-1) ? t.slice(0, -1) : t;
91
- }, "trimLastSlash", "/builds/forms/candy/Common/TypingUtils.ts"), d.register(function (t) {}, "assertIs", "/builds/forms/candy/Common/TypingUtils.ts")), (h = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0) && h(t);
92
- },
93
- 591: function (t, e, r) {
94
- var n = "undefined" != typeof globalThis && globalThis || "undefined" != typeof self && self || void 0 !== n && n,
95
- o = ("URLSearchParams" in n),
96
- i = "Symbol" in n && "iterator" in Symbol,
97
- a = "FileReader" in n && "Blob" in n && function () {
98
- try {
99
- return new Blob(), !0;
100
- } catch (t) {
101
- return !1;
102
- }
103
- }(),
104
- s = ("FormData" in n),
105
- u = ("ArrayBuffer" in n);
106
- if (u) var c = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"],
107
- l = ArrayBuffer.isView || function (t) {
108
- return t && c.indexOf(Object.prototype.toString.call(t)) > -1;
109
- };
110
- function f(t) {
111
- if ("string" != typeof t && (t = String(t)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t) || "" === t) throw new TypeError('Invalid character in header field name: "' + t + '"');
112
- return t.toLowerCase();
113
- }
114
- function d(t) {
115
- return "string" != typeof t && (t = String(t)), t;
116
- }
117
- function h(t) {
118
- var e = {
119
- next: function () {
120
- var e = t.shift();
121
- return {
122
- done: void 0 === e,
123
- value: e
124
- };
125
- }
126
- };
127
- return i && (e[Symbol.iterator] = function () {
128
- return e;
129
- }), e;
130
- }
131
- function p(t) {
132
- this.map = {}, t instanceof p ? t.forEach(function (t, e) {
133
- this.append(e, t);
134
- }, this) : Array.isArray(t) ? t.forEach(function (t) {
135
- this.append(t[0], t[1]);
136
- }, this) : t && Object.getOwnPropertyNames(t).forEach(function (e) {
137
- this.append(e, t[e]);
138
- }, this);
139
- }
140
- function y(t) {
141
- if (t.bodyUsed) return Promise.reject(new TypeError("Already read"));
142
- t.bodyUsed = !0;
143
- }
144
- function m(t) {
145
- return new Promise(function (e, r) {
146
- t.onload = function () {
147
- e(t.result);
148
- }, t.onerror = function () {
149
- r(t.error);
150
- };
151
- });
152
- }
153
- function v(t) {
154
- var e = new FileReader(),
155
- r = m(e);
156
- return e.readAsArrayBuffer(t), r;
157
- }
158
- function b(t) {
159
- if (t.slice) return t.slice(0);
160
- var e = new Uint8Array(t.byteLength);
161
- return e.set(new Uint8Array(t)), e.buffer;
162
- }
163
- function g() {
164
- return this.bodyUsed = !1, this._initBody = function (t) {
165
- var e;
166
- this.bodyUsed = this.bodyUsed, this._bodyInit = t, t ? "string" == typeof t ? this._bodyText = t : a && Blob.prototype.isPrototypeOf(t) ? this._bodyBlob = t : s && FormData.prototype.isPrototypeOf(t) ? this._bodyFormData = t : o && URLSearchParams.prototype.isPrototypeOf(t) ? this._bodyText = t.toString() : u && a && (e = t) && DataView.prototype.isPrototypeOf(e) ? (this._bodyArrayBuffer = b(t.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : u && (ArrayBuffer.prototype.isPrototypeOf(t) || l(t)) ? this._bodyArrayBuffer = b(t) : this._bodyText = t = Object.prototype.toString.call(t) : this._bodyText = "", this.headers.get("content-type") || ("string" == typeof t ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : o && URLSearchParams.prototype.isPrototypeOf(t) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
167
- }, a && (this.blob = function () {
168
- var t = y(this);
169
- if (t) return t;
170
- if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
171
- if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
172
- if (this._bodyFormData) throw new Error("could not read FormData body as blob");
173
- return Promise.resolve(new Blob([this._bodyText]));
174
- }, this.arrayBuffer = function () {
175
- return this._bodyArrayBuffer ? y(this) || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : Promise.resolve(this._bodyArrayBuffer)) : this.blob().then(v);
176
- }), this.text = function () {
177
- var t,
178
- e,
179
- r,
180
- n = y(this);
181
- if (n) return n;
182
- if (this._bodyBlob) return t = this._bodyBlob, r = m(e = new FileReader()), e.readAsText(t), r;
183
- if (this._bodyArrayBuffer) return Promise.resolve(function (t) {
184
- for (var e = new Uint8Array(t), r = new Array(e.length), n = 0; n < e.length; n++) r[n] = String.fromCharCode(e[n]);
185
- return r.join("");
186
- }(this._bodyArrayBuffer));
187
- if (this._bodyFormData) throw new Error("could not read FormData body as text");
188
- return Promise.resolve(this._bodyText);
189
- }, s && (this.formData = function () {
190
- return this.text().then(E);
191
- }), this.json = function () {
192
- return this.text().then(JSON.parse);
193
- }, this;
54
+ o(a, n, i, s, u, "throw", t);
194
55
  }
195
- p.prototype.append = function (t, e) {
196
- t = f(t), e = d(e);
197
- var r = this.map[t];
198
- this.map[t] = r ? r + ", " + e : e;
199
- }, p.prototype.delete = function (t) {
200
- delete this.map[f(t)];
201
- }, p.prototype.get = function (t) {
202
- return t = f(t), this.has(t) ? this.map[t] : null;
203
- }, p.prototype.has = function (t) {
204
- return this.map.hasOwnProperty(f(t));
205
- }, p.prototype.set = function (t, e) {
206
- this.map[f(t)] = d(e);
207
- }, p.prototype.forEach = function (t, e) {
208
- for (var r in this.map) this.map.hasOwnProperty(r) && t.call(e, this.map[r], r, this);
209
- }, p.prototype.keys = function () {
210
- var t = [];
211
- return this.forEach(function (e, r) {
212
- t.push(r);
213
- }), h(t);
214
- }, p.prototype.values = function () {
215
- var t = [];
216
- return this.forEach(function (e) {
217
- t.push(e);
218
- }), h(t);
219
- }, p.prototype.entries = function () {
220
- var t = [];
221
- return this.forEach(function (e, r) {
222
- t.push([r, e]);
223
- }), h(t);
224
- }, i && (p.prototype[Symbol.iterator] = p.prototype.entries);
225
- var w = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
226
- function _(t, e) {
227
- if (!(this instanceof _)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
228
- var r,
229
- n,
230
- o = (e = e || {}).body;
231
- if (t instanceof _) {
232
- if (t.bodyUsed) throw new TypeError("Already read");
233
- this.url = t.url, this.credentials = t.credentials, e.headers || (this.headers = new p(t.headers)), this.method = t.method, this.mode = t.mode, this.signal = t.signal, o || null == t._bodyInit || (o = t._bodyInit, t.bodyUsed = !0);
234
- } else this.url = String(t);
235
- if (this.credentials = e.credentials || this.credentials || "same-origin", !e.headers && this.headers || (this.headers = new p(e.headers)), this.method = (n = (r = e.method || this.method || "GET").toUpperCase(), w.indexOf(n) > -1 ? n : r), this.mode = e.mode || this.mode || null, this.signal = e.signal || this.signal, this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && o) throw new TypeError("Body not allowed for GET or HEAD requests");
236
- if (this._initBody(o), !("GET" !== this.method && "HEAD" !== this.method || "no-store" !== e.cache && "no-cache" !== e.cache)) {
237
- var i = /([?&])_=[^&]*/;
238
- i.test(this.url) ? this.url = this.url.replace(i, "$1_=" + new Date().getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + new Date().getTime();
239
- }
240
- }
241
- function E(t) {
242
- var e = new FormData();
243
- return t.trim().split("&").forEach(function (t) {
244
- if (t) {
245
- var r = t.split("="),
246
- n = r.shift().replace(/\+/g, " "),
247
- o = r.join("=").replace(/\+/g, " ");
248
- e.append(decodeURIComponent(n), decodeURIComponent(o));
249
- }
250
- }), e;
251
- }
252
- function L(t, e) {
253
- if (!(this instanceof L)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
254
- e || (e = {}), this.type = "default", this.status = void 0 === e.status ? 200 : e.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = void 0 === e.statusText ? "" : "" + e.statusText, this.headers = new p(e.headers), this.url = e.url || "", this._initBody(t);
255
- }
256
- _.prototype.clone = function () {
257
- return new _(this, {
258
- body: this._bodyInit
259
- });
260
- }, g.call(_.prototype), g.call(L.prototype), L.prototype.clone = function () {
261
- return new L(this._bodyInit, {
262
- status: this.status,
263
- statusText: this.statusText,
264
- headers: new p(this.headers),
265
- url: this.url
266
- });
267
- }, L.error = function () {
268
- var t = new L(null, {
269
- status: 0,
270
- statusText: ""
271
- });
272
- return t.type = "error", t;
273
- };
274
- var O = [301, 302, 303, 307, 308];
275
- L.redirect = function (t, e) {
276
- if (-1 === O.indexOf(e)) throw new RangeError("Invalid status code");
277
- return new L(null, {
278
- status: e,
279
- headers: {
280
- location: t
281
- }
282
- });
56
+ s(void 0);
57
+ });
58
+ };
59
+ }
60
+ function a(t, e) {
61
+ (null == e || e > t.length) && (e = t.length);
62
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
63
+ return n;
64
+ }
65
+ t.g = function () {
66
+ if ("object" == typeof globalThis) return globalThis;
67
+ try {
68
+ return this || new Function("return this")();
69
+ } catch (t) {
70
+ if ("object" == typeof window) return window;
71
+ }
72
+ }();
73
+ var s = "undefined" != typeof globalThis && globalThis || "undefined" != typeof self && self || void 0 !== s && s,
74
+ u = ("URLSearchParams" in s),
75
+ c = "Symbol" in s && "iterator" in Symbol,
76
+ l = "FileReader" in s && "Blob" in s && function () {
77
+ try {
78
+ return new Blob(), !0;
79
+ } catch (t) {
80
+ return !1;
81
+ }
82
+ }(),
83
+ f = ("FormData" in s),
84
+ d = ("ArrayBuffer" in s);
85
+ if (d) var h = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"],
86
+ p = ArrayBuffer.isView || function (t) {
87
+ return t && h.indexOf(Object.prototype.toString.call(t)) > -1;
88
+ };
89
+ function y(t) {
90
+ if ("string" != typeof t && (t = String(t)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t) || "" === t) throw new TypeError('Invalid character in header field name: "' + t + '"');
91
+ return t.toLowerCase();
92
+ }
93
+ function b(t) {
94
+ return "string" != typeof t && (t = String(t)), t;
95
+ }
96
+ function m(t) {
97
+ var e = {
98
+ next: function () {
99
+ var e = t.shift();
100
+ return {
101
+ done: void 0 === e,
102
+ value: e
283
103
  };
284
- var x = n.DOMException;
104
+ }
105
+ };
106
+ return c && (e[Symbol.iterator] = function () {
107
+ return e;
108
+ }), e;
109
+ }
110
+ function v(t) {
111
+ this.map = {}, t instanceof v ? t.forEach(function (t, e) {
112
+ this.append(e, t);
113
+ }, this) : Array.isArray(t) ? t.forEach(function (t) {
114
+ this.append(t[0], t[1]);
115
+ }, this) : t && Object.getOwnPropertyNames(t).forEach(function (e) {
116
+ this.append(e, t[e]);
117
+ }, this);
118
+ }
119
+ function g(t) {
120
+ if (t.bodyUsed) return Promise.reject(new TypeError("Already read"));
121
+ t.bodyUsed = !0;
122
+ }
123
+ function w(t) {
124
+ return new Promise(function (e, r) {
125
+ t.onload = function () {
126
+ e(t.result);
127
+ }, t.onerror = function () {
128
+ r(t.error);
129
+ };
130
+ });
131
+ }
132
+ function E(t) {
133
+ var e = new FileReader(),
134
+ r = w(e);
135
+ return e.readAsArrayBuffer(t), r;
136
+ }
137
+ function A(t) {
138
+ if (t.slice) return t.slice(0);
139
+ var e = new Uint8Array(t.byteLength);
140
+ return e.set(new Uint8Array(t)), e.buffer;
141
+ }
142
+ function O() {
143
+ return this.bodyUsed = !1, this._initBody = function (t) {
144
+ var e;
145
+ this.bodyUsed = this.bodyUsed, this._bodyInit = t, t ? "string" == typeof t ? this._bodyText = t : l && Blob.prototype.isPrototypeOf(t) ? this._bodyBlob = t : f && FormData.prototype.isPrototypeOf(t) ? this._bodyFormData = t : u && URLSearchParams.prototype.isPrototypeOf(t) ? this._bodyText = t.toString() : d && l && (e = t) && DataView.prototype.isPrototypeOf(e) ? (this._bodyArrayBuffer = A(t.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : d && (ArrayBuffer.prototype.isPrototypeOf(t) || p(t)) ? this._bodyArrayBuffer = A(t) : this._bodyText = t = Object.prototype.toString.call(t) : this._bodyText = "", this.headers.get("content-type") || ("string" == typeof t ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : u && URLSearchParams.prototype.isPrototypeOf(t) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
146
+ }, l && (this.blob = function () {
147
+ var t = g(this);
148
+ if (t) return t;
149
+ if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
150
+ if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
151
+ if (this._bodyFormData) throw new Error("could not read FormData body as blob");
152
+ return Promise.resolve(new Blob([this._bodyText]));
153
+ }, this.arrayBuffer = function () {
154
+ return this._bodyArrayBuffer ? g(this) || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : Promise.resolve(this._bodyArrayBuffer)) : this.blob().then(E);
155
+ }), this.text = function () {
156
+ var t,
157
+ e,
158
+ r,
159
+ n = g(this);
160
+ if (n) return n;
161
+ if (this._bodyBlob) return t = this._bodyBlob, r = w(e = new FileReader()), e.readAsText(t), r;
162
+ if (this._bodyArrayBuffer) return Promise.resolve(function (t) {
163
+ for (var e = new Uint8Array(t), r = new Array(e.length), n = 0; n < e.length; n++) r[n] = String.fromCharCode(e[n]);
164
+ return r.join("");
165
+ }(this._bodyArrayBuffer));
166
+ if (this._bodyFormData) throw new Error("could not read FormData body as text");
167
+ return Promise.resolve(this._bodyText);
168
+ }, f && (this.formData = function () {
169
+ return this.text().then(P);
170
+ }), this.json = function () {
171
+ return this.text().then(JSON.parse);
172
+ }, this;
173
+ }
174
+ v.prototype.append = function (t, e) {
175
+ t = y(t), e = b(e);
176
+ var r = this.map[t];
177
+ this.map[t] = r ? r + ", " + e : e;
178
+ }, v.prototype.delete = function (t) {
179
+ delete this.map[y(t)];
180
+ }, v.prototype.get = function (t) {
181
+ return t = y(t), this.has(t) ? this.map[t] : null;
182
+ }, v.prototype.has = function (t) {
183
+ return this.map.hasOwnProperty(y(t));
184
+ }, v.prototype.set = function (t, e) {
185
+ this.map[y(t)] = b(e);
186
+ }, v.prototype.forEach = function (t, e) {
187
+ for (var r in this.map) this.map.hasOwnProperty(r) && t.call(e, this.map[r], r, this);
188
+ }, v.prototype.keys = function () {
189
+ var t = [];
190
+ return this.forEach(function (e, r) {
191
+ t.push(r);
192
+ }), m(t);
193
+ }, v.prototype.values = function () {
194
+ var t = [];
195
+ return this.forEach(function (e) {
196
+ t.push(e);
197
+ }), m(t);
198
+ }, v.prototype.entries = function () {
199
+ var t = [];
200
+ return this.forEach(function (e, r) {
201
+ t.push([r, e]);
202
+ }), m(t);
203
+ }, c && (v.prototype[Symbol.iterator] = v.prototype.entries);
204
+ var T = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
205
+ function j(t, e) {
206
+ if (!(this instanceof j)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
207
+ var r,
208
+ n,
209
+ o = (e = e || {}).body;
210
+ if (t instanceof j) {
211
+ if (t.bodyUsed) throw new TypeError("Already read");
212
+ this.url = t.url, this.credentials = t.credentials, e.headers || (this.headers = new v(t.headers)), this.method = t.method, this.mode = t.mode, this.signal = t.signal, o || null == t._bodyInit || (o = t._bodyInit, t.bodyUsed = !0);
213
+ } else this.url = String(t);
214
+ if (this.credentials = e.credentials || this.credentials || "same-origin", !e.headers && this.headers || (this.headers = new v(e.headers)), this.method = (n = (r = e.method || this.method || "GET").toUpperCase(), T.indexOf(n) > -1 ? n : r), this.mode = e.mode || this.mode || null, this.signal = e.signal || this.signal, this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && o) throw new TypeError("Body not allowed for GET or HEAD requests");
215
+ if (this._initBody(o), !("GET" !== this.method && "HEAD" !== this.method || "no-store" !== e.cache && "no-cache" !== e.cache)) {
216
+ var i = /([?&])_=[^&]*/;
217
+ i.test(this.url) ? this.url = this.url.replace(i, "$1_=" + new Date().getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + new Date().getTime();
218
+ }
219
+ }
220
+ function P(t) {
221
+ var e = new FormData();
222
+ return t.trim().split("&").forEach(function (t) {
223
+ if (t) {
224
+ var r = t.split("="),
225
+ n = r.shift().replace(/\+/g, " "),
226
+ o = r.join("=").replace(/\+/g, " ");
227
+ e.append(decodeURIComponent(n), decodeURIComponent(o));
228
+ }
229
+ }), e;
230
+ }
231
+ function S(t, e) {
232
+ if (!(this instanceof S)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
233
+ e || (e = {}), this.type = "default", this.status = void 0 === e.status ? 200 : e.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = void 0 === e.statusText ? "" : "" + e.statusText, this.headers = new v(e.headers), this.url = e.url || "", this._initBody(t);
234
+ }
235
+ j.prototype.clone = function () {
236
+ return new j(this, {
237
+ body: this._bodyInit
238
+ });
239
+ }, O.call(j.prototype), O.call(S.prototype), S.prototype.clone = function () {
240
+ return new S(this._bodyInit, {
241
+ status: this.status,
242
+ statusText: this.statusText,
243
+ headers: new v(this.headers),
244
+ url: this.url
245
+ });
246
+ }, S.error = function () {
247
+ var t = new S(null, {
248
+ status: 0,
249
+ statusText: ""
250
+ });
251
+ return t.type = "error", t;
252
+ };
253
+ var U = [301, 302, 303, 307, 308];
254
+ S.redirect = function (t, e) {
255
+ if (-1 === U.indexOf(e)) throw new RangeError("Invalid status code");
256
+ return new S(null, {
257
+ status: e,
258
+ headers: {
259
+ location: t
260
+ }
261
+ });
262
+ };
263
+ var _ = s.DOMException;
264
+ try {
265
+ new _();
266
+ } catch (t) {
267
+ (_ = function (t, e) {
268
+ this.message = t, this.name = e;
269
+ var r = Error(t);
270
+ this.stack = r.stack;
271
+ }).prototype = Object.create(Error.prototype), _.prototype.constructor = _;
272
+ }
273
+ function x(t, e) {
274
+ return new Promise(function (r, n) {
275
+ var o = new j(t, e);
276
+ if (o.signal && o.signal.aborted) return n(new _("Aborted", "AbortError"));
277
+ var i = new XMLHttpRequest();
278
+ function a() {
279
+ i.abort();
280
+ }
281
+ i.onload = function () {
282
+ var t,
283
+ e,
284
+ n = {
285
+ status: i.status,
286
+ statusText: i.statusText,
287
+ headers: (t = i.getAllResponseHeaders() || "", e = new v(), t.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function (t) {
288
+ return 0 === t.indexOf("\n") ? t.substr(1, t.length) : t;
289
+ }).forEach(function (t) {
290
+ var r = t.split(":"),
291
+ n = r.shift().trim();
292
+ if (n) {
293
+ var o = r.join(":").trim();
294
+ e.append(n, o);
295
+ }
296
+ }), e)
297
+ };
298
+ n.url = "responseURL" in i ? i.responseURL : n.headers.get("X-Request-URL");
299
+ var o = "response" in i ? i.response : i.responseText;
300
+ setTimeout(function () {
301
+ r(new S(o, n));
302
+ }, 0);
303
+ }, i.onerror = function () {
304
+ setTimeout(function () {
305
+ n(new TypeError("Network request failed"));
306
+ }, 0);
307
+ }, i.ontimeout = function () {
308
+ setTimeout(function () {
309
+ n(new TypeError("Network request failed"));
310
+ }, 0);
311
+ }, i.onabort = function () {
312
+ setTimeout(function () {
313
+ n(new _("Aborted", "AbortError"));
314
+ }, 0);
315
+ }, i.open(o.method, function (t) {
285
316
  try {
286
- new x();
287
- } catch (t) {
288
- (x = function (t, e) {
289
- this.message = t, this.name = e;
290
- var r = Error(t);
291
- this.stack = r.stack;
292
- }).prototype = Object.create(Error.prototype), x.prototype.constructor = x;
293
- }
294
- function P(t, e) {
295
- return new Promise(function (r, o) {
296
- var i = new _(t, e);
297
- if (i.signal && i.signal.aborted) return o(new x("Aborted", "AbortError"));
298
- var s = new XMLHttpRequest();
299
- function c() {
300
- s.abort();
301
- }
302
- s.onload = function () {
303
- var t,
304
- e,
305
- n = {
306
- status: s.status,
307
- statusText: s.statusText,
308
- headers: (t = s.getAllResponseHeaders() || "", e = new p(), t.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function (t) {
309
- return 0 === t.indexOf("\n") ? t.substr(1, t.length) : t;
310
- }).forEach(function (t) {
311
- var r = t.split(":"),
312
- n = r.shift().trim();
313
- if (n) {
314
- var o = r.join(":").trim();
315
- e.append(n, o);
316
- }
317
- }), e)
318
- };
319
- n.url = "responseURL" in s ? s.responseURL : n.headers.get("X-Request-URL");
320
- var o = "response" in s ? s.response : s.responseText;
321
- setTimeout(function () {
322
- r(new L(o, n));
323
- }, 0);
324
- }, s.onerror = function () {
325
- setTimeout(function () {
326
- o(new TypeError("Network request failed"));
327
- }, 0);
328
- }, s.ontimeout = function () {
329
- setTimeout(function () {
330
- o(new TypeError("Network request failed"));
331
- }, 0);
332
- }, s.onabort = function () {
333
- setTimeout(function () {
334
- o(new x("Aborted", "AbortError"));
335
- }, 0);
336
- }, s.open(i.method, function (t) {
337
- try {
338
- return "" === t && n.location.href ? n.location.href : t;
339
- } catch (e) {
340
- return t;
341
- }
342
- }(i.url), !0), "include" === i.credentials ? s.withCredentials = !0 : "omit" === i.credentials && (s.withCredentials = !1), "responseType" in s && (a ? s.responseType = "blob" : u && i.headers.get("Content-Type") && -1 !== i.headers.get("Content-Type").indexOf("application/octet-stream") && (s.responseType = "arraybuffer")), !e || "object" != typeof e.headers || e.headers instanceof p ? i.headers.forEach(function (t, e) {
343
- s.setRequestHeader(e, t);
344
- }) : Object.getOwnPropertyNames(e.headers).forEach(function (t) {
345
- s.setRequestHeader(t, d(e.headers[t]));
346
- }), i.signal && (i.signal.addEventListener("abort", c), s.onreadystatechange = function () {
347
- 4 === s.readyState && i.signal.removeEventListener("abort", c);
348
- }), s.send(void 0 === i._bodyInit ? null : i._bodyInit);
349
- });
350
- }
351
- P.polyfill = !0, n.fetch || (n.fetch = P, n.Headers = p, n.Request = _, n.Response = L);
352
- var T,
353
- k = r(163),
354
- S = r(688),
355
- j = r(226),
356
- C = r(750),
357
- A = r(823),
358
- U = r(171);
359
- function G(t) {
360
- return G = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
361
- return typeof t;
362
- } : function (t) {
363
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
364
- }, G(t);
317
+ return "" === t && s.location.href ? s.location.href : t;
318
+ } catch (e) {
319
+ return t;
365
320
  }
366
- function H() {
367
- H = function () {
368
- return e;
369
- };
370
- var t,
371
- e = {},
372
- r = Object.prototype,
373
- n = r.hasOwnProperty,
374
- o = Object.defineProperty || function (t, e, r) {
375
- t[e] = r.value;
376
- },
377
- i = "function" == typeof Symbol ? Symbol : {},
378
- a = i.iterator || "@@iterator",
379
- s = i.asyncIterator || "@@asyncIterator",
380
- u = i.toStringTag || "@@toStringTag";
381
- function c(t, e, r) {
382
- return Object.defineProperty(t, e, {
383
- value: r,
384
- enumerable: !0,
385
- configurable: !0,
386
- writable: !0
387
- }), t[e];
388
- }
389
- try {
390
- c({}, "");
391
- } catch (t) {
392
- c = function (t, e, r) {
393
- return t[e] = r;
394
- };
395
- }
396
- function l(t, e, r, n) {
397
- var i = e && e.prototype instanceof v ? e : v,
398
- a = Object.create(i.prototype),
399
- s = new j(n || []);
400
- return o(a, "_invoke", {
401
- value: P(t, r, s)
402
- }), a;
403
- }
404
- function f(t, e, r) {
405
- try {
406
- return {
407
- type: "normal",
408
- arg: t.call(e, r)
409
- };
410
- } catch (t) {
411
- return {
412
- type: "throw",
413
- arg: t
414
- };
415
- }
416
- }
417
- e.wrap = l;
418
- var d = "suspendedStart",
419
- h = "suspendedYield",
420
- p = "executing",
421
- y = "completed",
422
- m = {};
423
- function v() {}
424
- function b() {}
425
- function g() {}
426
- var w = {};
427
- c(w, a, function () {
428
- return this;
429
- });
430
- var _ = Object.getPrototypeOf,
431
- E = _ && _(_(C([])));
432
- E && E !== r && n.call(E, a) && (w = E);
433
- var L = g.prototype = v.prototype = Object.create(w);
434
- function O(t) {
435
- ["next", "throw", "return"].forEach(function (e) {
436
- c(t, e, function (t) {
437
- return this._invoke(e, t);
438
- });
439
- });
440
- }
441
- function x(t, e) {
442
- function r(o, i, a, s) {
443
- var u = f(t[o], t, i);
444
- if ("throw" !== u.type) {
445
- var c = u.arg,
446
- l = c.value;
447
- return l && "object" == G(l) && n.call(l, "__await") ? e.resolve(l.__await).then(function (t) {
448
- r("next", t, a, s);
449
- }, function (t) {
450
- r("throw", t, a, s);
451
- }) : e.resolve(l).then(function (t) {
452
- c.value = t, a(c);
453
- }, function (t) {
454
- return r("throw", t, a, s);
455
- });
456
- }
457
- s(u.arg);
458
- }
459
- var i;
460
- o(this, "_invoke", {
461
- value: function (t, n) {
462
- function o() {
463
- return new e(function (e, o) {
464
- r(t, n, e, o);
465
- });
466
- }
467
- return i = i ? i.then(o, o) : o();
468
- }
469
- });
470
- }
471
- function P(e, r, n) {
472
- var o = d;
473
- return function (i, a) {
474
- if (o === p) throw Error("Generator is already running");
475
- if (o === y) {
476
- if ("throw" === i) throw a;
477
- return {
478
- value: t,
479
- done: !0
480
- };
481
- }
482
- for (n.method = i, n.arg = a;;) {
483
- var s = n.delegate;
484
- if (s) {
485
- var u = T(s, n);
486
- if (u) {
487
- if (u === m) continue;
488
- return u;
489
- }
490
- }
491
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
492
- if (o === d) throw o = y, n.arg;
493
- n.dispatchException(n.arg);
494
- } else "return" === n.method && n.abrupt("return", n.arg);
495
- o = p;
496
- var c = f(e, r, n);
497
- if ("normal" === c.type) {
498
- if (o = n.done ? y : h, c.arg === m) continue;
499
- return {
500
- value: c.arg,
501
- done: n.done
502
- };
503
- }
504
- "throw" === c.type && (o = y, n.method = "throw", n.arg = c.arg);
505
- }
506
- };
507
- }
508
- function T(e, r) {
509
- var n = r.method,
510
- o = e.iterator[n];
511
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, T(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), m;
512
- var i = f(o, e.iterator, r.arg);
513
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, m;
514
- var a = i.arg;
515
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, m) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, m);
516
- }
517
- function k(t) {
518
- var e = {
519
- tryLoc: t[0]
520
- };
521
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
522
- }
523
- function S(t) {
524
- var e = t.completion || {};
525
- e.type = "normal", delete e.arg, t.completion = e;
526
- }
527
- function j(t) {
528
- this.tryEntries = [{
529
- tryLoc: "root"
530
- }], t.forEach(k, this), this.reset(!0);
531
- }
532
- function C(e) {
533
- if (e || "" === e) {
534
- var r = e[a];
535
- if (r) return r.call(e);
536
- if ("function" == typeof e.next) return e;
537
- if (!isNaN(e.length)) {
538
- var o = -1,
539
- i = function r() {
540
- for (; ++o < e.length;) if (n.call(e, o)) return r.value = e[o], r.done = !1, r;
541
- return r.value = t, r.done = !0, r;
542
- };
543
- return i.next = i;
544
- }
545
- }
546
- throw new TypeError(G(e) + " is not iterable");
547
- }
548
- return b.prototype = g, o(L, "constructor", {
549
- value: g,
550
- configurable: !0
551
- }), o(g, "constructor", {
552
- value: b,
553
- configurable: !0
554
- }), b.displayName = c(g, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
555
- var e = "function" == typeof t && t.constructor;
556
- return !!e && (e === b || "GeneratorFunction" === (e.displayName || e.name));
557
- }, e.mark = function (t) {
558
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, g) : (t.__proto__ = g, c(t, u, "GeneratorFunction")), t.prototype = Object.create(L), t;
559
- }, e.awrap = function (t) {
560
- return {
561
- __await: t
562
- };
563
- }, O(x.prototype), c(x.prototype, s, function () {
564
- return this;
565
- }), e.AsyncIterator = x, e.async = function (t, r, n, o, i) {
566
- void 0 === i && (i = Promise);
567
- var a = new x(l(t, r, n, o), i);
568
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
569
- return t.done ? t.value : a.next();
321
+ }(o.url), !0), "include" === o.credentials ? i.withCredentials = !0 : "omit" === o.credentials && (i.withCredentials = !1), "responseType" in i && (l ? i.responseType = "blob" : d && o.headers.get("Content-Type") && -1 !== o.headers.get("Content-Type").indexOf("application/octet-stream") && (i.responseType = "arraybuffer")), !e || "object" != typeof e.headers || e.headers instanceof v ? o.headers.forEach(function (t, e) {
322
+ i.setRequestHeader(e, t);
323
+ }) : Object.getOwnPropertyNames(e.headers).forEach(function (t) {
324
+ i.setRequestHeader(t, b(e.headers[t]));
325
+ }), o.signal && (o.signal.addEventListener("abort", a), i.onreadystatechange = function () {
326
+ 4 === i.readyState && o.signal.removeEventListener("abort", a);
327
+ }), i.send(void 0 === o._bodyInit ? null : o._bodyInit);
328
+ });
329
+ }
330
+ function B(t, e) {
331
+ if (!function (t) {
332
+ return null != t;
333
+ }(t)) throw new Error(null != e ? e : "Value must be defined");
334
+ }
335
+ function k(t, e) {
336
+ if ("function" != typeof t) throw new Error(null != e ? e : "Value must be defined");
337
+ }
338
+ function I(t, e) {
339
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
340
+ }
341
+ function R(t, e) {
342
+ for (var n = 0; n < e.length; n++) {
343
+ var o = e[n];
344
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, r(o.key), o);
345
+ }
346
+ }
347
+ function D(t, e, r) {
348
+ return e && R(t.prototype, e), r && R(t, r), Object.defineProperty(t, "prototype", {
349
+ writable: !1
350
+ }), t;
351
+ }
352
+ function C(t) {
353
+ return C = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
354
+ return t.__proto__ || Object.getPrototypeOf(t);
355
+ }, C(t);
356
+ }
357
+ function F(t, e) {
358
+ return F = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
359
+ return t.__proto__ = e, t;
360
+ }, F(t, e);
361
+ }
362
+ function N() {
363
+ try {
364
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
365
+ } catch (t) {}
366
+ return (N = function () {
367
+ return !!t;
368
+ })();
369
+ }
370
+ function L(t) {
371
+ var e = "function" == typeof Map ? new Map() : void 0;
372
+ return L = function (t) {
373
+ if (null === t || !function (t) {
374
+ try {
375
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
376
+ } catch (e) {
377
+ return "function" == typeof t;
378
+ }
379
+ }(t)) return t;
380
+ if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
381
+ if (void 0 !== e) {
382
+ if (e.has(t)) return e.get(t);
383
+ e.set(t, r);
384
+ }
385
+ function r() {
386
+ return function (t, e, r) {
387
+ if (N()) return Reflect.construct.apply(null, arguments);
388
+ var n = [null];
389
+ n.push.apply(n, e);
390
+ var o = new (t.bind.apply(t, n))();
391
+ return r && F(o, r.prototype), o;
392
+ }(t, arguments, C(this).constructor);
393
+ }
394
+ return r.prototype = Object.create(t.prototype, {
395
+ constructor: {
396
+ value: r,
397
+ enumerable: !1,
398
+ writable: !0,
399
+ configurable: !0
400
+ }
401
+ }), F(r, t);
402
+ }, L(t);
403
+ }
404
+ function z() {
405
+ try {
406
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
407
+ } catch (t) {}
408
+ return (z = function () {
409
+ return !!t;
410
+ })();
411
+ }
412
+ function q(t) {
413
+ return H.apply(this, arguments);
414
+ }
415
+ function H() {
416
+ return (H = i(regeneratorRuntime.mark(function t(e) {
417
+ var r, n;
418
+ return regeneratorRuntime.wrap(function (t) {
419
+ for (;;) switch (t.prev = t.next) {
420
+ case 0:
421
+ return t.prev = 0, t.next = 3, fetch(e, {
422
+ method: "GET",
423
+ mode: "cors",
424
+ credentials: "include"
570
425
  });
571
- }, O(L), c(L, u, "Generator"), c(L, a, function () {
572
- return this;
573
- }), c(L, "toString", function () {
574
- return "[object Generator]";
575
- }), e.keys = function (t) {
576
- var e = Object(t),
577
- r = [];
578
- for (var n in e) r.push(n);
579
- return r.reverse(), function t() {
580
- for (; r.length;) {
581
- var n = r.pop();
582
- if (n in e) return t.value = n, t.done = !1, t;
583
- }
584
- return t.done = !0, t;
585
- };
586
- }, e.values = C, j.prototype = {
587
- constructor: j,
588
- reset: function (e) {
589
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(S), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
590
- },
591
- stop: function () {
592
- this.done = !0;
593
- var t = this.tryEntries[0].completion;
594
- if ("throw" === t.type) throw t.arg;
595
- return this.rval;
596
- },
597
- dispatchException: function (e) {
598
- if (this.done) throw e;
599
- var r = this;
600
- function o(n, o) {
601
- return s.type = "throw", s.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
602
- }
603
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
604
- var a = this.tryEntries[i],
605
- s = a.completion;
606
- if ("root" === a.tryLoc) return o("end");
607
- if (a.tryLoc <= this.prev) {
608
- var u = n.call(a, "catchLoc"),
609
- c = n.call(a, "finallyLoc");
610
- if (u && c) {
611
- if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
612
- if (this.prev < a.finallyLoc) return o(a.finallyLoc);
613
- } else if (u) {
614
- if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
615
- } else {
616
- if (!c) throw Error("try statement without catch or finally");
617
- if (this.prev < a.finallyLoc) return o(a.finallyLoc);
618
- }
619
- }
620
- }
621
- },
622
- abrupt: function (t, e) {
623
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
624
- var o = this.tryEntries[r];
625
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
626
- var i = o;
627
- break;
628
- }
629
- }
630
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
631
- var a = i ? i.completion : {};
632
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, m) : this.complete(a);
633
- },
634
- complete: function (t, e) {
635
- if ("throw" === t.type) throw t.arg;
636
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), m;
637
- },
638
- finish: function (t) {
639
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
640
- var r = this.tryEntries[e];
641
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), S(r), m;
642
- }
643
- },
644
- catch: function (t) {
645
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
646
- var r = this.tryEntries[e];
647
- if (r.tryLoc === t) {
648
- var n = r.completion;
649
- if ("throw" === n.type) {
650
- var o = n.arg;
651
- S(r);
652
- }
653
- return o;
654
- }
655
- }
656
- throw Error("illegal catch attempt");
657
- },
658
- delegateYield: function (e, r, n) {
659
- return this.delegate = {
660
- iterator: C(e),
661
- resultName: r,
662
- nextLoc: n
663
- }, "next" === this.method && (this.arg = t), m;
664
- }
665
- }, e;
666
- }
667
- function N(t, e) {
668
- var r = Object.keys(t);
669
- if (Object.getOwnPropertySymbols) {
670
- var n = Object.getOwnPropertySymbols(t);
671
- e && (n = n.filter(function (e) {
672
- return Object.getOwnPropertyDescriptor(t, e).enumerable;
673
- })), r.push.apply(r, n);
674
- }
675
- return r;
676
- }
677
- function F(t) {
678
- for (var e = 1; e < arguments.length; e++) {
679
- var r = null != arguments[e] ? arguments[e] : {};
680
- e % 2 ? N(Object(r), !0).forEach(function (e) {
681
- I(t, e, r[e]);
682
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : N(Object(r)).forEach(function (e) {
683
- Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e));
426
+ case 3:
427
+ return r = t.sent, t.abrupt("return", new V(r));
428
+ case 7:
429
+ return t.prev = 7, t.t0 = t.catch(0), n = t.t0, t.abrupt("return", {
430
+ error: n.message,
431
+ type: n.name,
432
+ stack: n.stack
684
433
  });
685
- }
686
- return t;
434
+ case 11:
435
+ case "end":
436
+ return t.stop();
687
437
  }
688
- function I(t, e, r) {
689
- return (e = function (t) {
690
- var e = function (t) {
691
- if ("object" != G(t) || !t) return t;
692
- var e = t[Symbol.toPrimitive];
693
- if (void 0 !== e) {
694
- var r = e.call(t, "string");
695
- if ("object" != G(r)) return r;
696
- throw new TypeError("@@toPrimitive must return a primitive value.");
697
- }
698
- return String(t);
699
- }(t);
700
- return "symbol" == G(e) ? e : e + "";
701
- }(e)) in t ? Object.defineProperty(t, e, {
702
- value: r,
703
- enumerable: !0,
704
- configurable: !0,
705
- writable: !0
706
- }) : t[e] = r, t;
707
- }
708
- function B(t, e, r, n, o, i, a) {
709
- try {
710
- var s = t[i](a),
711
- u = s.value;
712
- } catch (t) {
713
- return void r(t);
438
+ }, t, null, [[0, 7]]);
439
+ }))).apply(this, arguments);
440
+ }
441
+ x.polyfill = !0, s.fetch || (s.fetch = x, s.Headers = v, s.Request = j, s.Response = S);
442
+ var V = function (t) {
443
+ function r(t) {
444
+ var n, o, i, a;
445
+ return I(this, r), o = this, a = ["Network error occurred."], i = C(i = r), (n = function (t, r) {
446
+ if (r && ("object" == e(r) || "function" == typeof r)) return r;
447
+ if (void 0 !== r) throw new TypeError("Derived constructors may only return object or undefined");
448
+ return function (t) {
449
+ if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
450
+ return t;
451
+ }(t);
452
+ }(o, z() ? Reflect.construct(i, a || [], C(o).constructor) : i.apply(o, a))).status = void 0, n.statusText = void 0, n.ok = void 0, n.headers = void 0, n.status = t.status, n.statusText = t.statusText, n.ok = t.ok, n.headers = Object.fromEntries(t.headers.entries()), n;
453
+ }
454
+ return function (t, e) {
455
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
456
+ t.prototype = Object.create(e && e.prototype, {
457
+ constructor: {
458
+ value: t,
459
+ writable: !0,
460
+ configurable: !0
714
461
  }
715
- s.done ? e(u) : Promise.resolve(u).then(n, o);
716
- }
717
- function D(t) {
718
- return function () {
719
- var e = this,
720
- r = arguments;
721
- return new Promise(function (n, o) {
722
- var i = t.apply(e, r);
723
- function a(t) {
724
- B(i, n, o, a, s, "next", t);
725
- }
726
- function s(t) {
727
- B(i, n, o, a, s, "throw", t);
728
- }
729
- a(void 0);
730
- });
731
- };
732
- }
733
- function R(t, e) {
734
- (null == e || e > t.length) && (e = t.length);
735
- for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
736
- return n;
737
- }
738
- function M() {}
739
- function q(t) {
740
- return "string" == typeof t ? "false" !== t && "true" === t : Boolean(t);
741
- }
742
- function z(t) {
743
- return new RegExp("^(?:".concat(t.replace(/\./g, "\\.").replace(/\*/g, "[a-z0-9-._]+"), ")$")).test(r.g.location.host);
744
- }
745
- function V(t) {
746
- return (r.g.location.search.trim().replace(/^(\?|#|&)/, "").split("&").map(function (t) {
747
- return t.replace(/\+/g, " ").split("=").map(decodeURIComponent);
748
- }).find(function (e) {
749
- return (r = e, n = 1, function (t) {
750
- if (Array.isArray(t)) return t;
751
- }(r) || function (t, e) {
752
- var r = null == t ? null : "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
753
- if (null != r) {
754
- var n,
755
- o,
756
- i,
757
- a,
758
- s = [],
759
- u = !0,
760
- c = !1;
761
- try {
762
- if (i = (r = r.call(t)).next, 0 === e) {
763
- if (Object(r) !== r) return;
764
- u = !1;
765
- } else for (; !(u = (n = i.call(r)).done) && (s.push(n.value), s.length !== e); u = !0);
766
- } catch (t) {
767
- c = !0, o = t;
768
- } finally {
769
- try {
770
- if (!u && null != r.return && (a = r.return(), Object(a) !== a)) return;
771
- } finally {
772
- if (c) throw o;
773
- }
774
- }
775
- return s;
776
- }
777
- }(r, n) || function (t, e) {
778
- if (t) {
779
- if ("string" == typeof t) return R(t, e);
780
- var r = {}.toString.call(t).slice(8, -1);
781
- return "Object" === r && t.constructor && (r = t.constructor.name), "Map" === r || "Set" === r ? Array.from(t) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? R(t, e) : void 0;
782
- }
783
- }(r, n) || function () {
784
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
785
- }())[0] == t;
786
- var r, n;
787
- }) || [])[1];
788
- }
789
- function Z(t) {
790
- return $.apply(this, arguments);
791
- }
792
- function $() {
793
- return ($ = D(H().mark(function t(e) {
794
- var n, o, i, a, s;
795
- return H().wrap(function (t) {
796
- for (;;) switch (t.prev = t.next) {
462
+ }), Object.defineProperty(t, "prototype", {
463
+ writable: !1
464
+ }), e && F(t, e);
465
+ }(r, t), D(r, [{
466
+ key: "toString",
467
+ value: function () {
468
+ var t = "".concat(r.name, ": ").concat(this.message),
469
+ e = " Info: ".concat(JSON.stringify(this));
470
+ return "".concat(t, "\n").concat(e);
471
+ }
472
+ }]);
473
+ }(L(Error)),
474
+ Z = function (t) {
475
+ return t[t.NotFound = 404] = "NotFound", t;
476
+ }({}),
477
+ G = function () {
478
+ return D(function t() {
479
+ I(this, t);
480
+ }, null, [{
481
+ key: "script",
482
+ value: function (t) {
483
+ var e = document.getElementsByTagName("head")[0] || document.documentElement,
484
+ r = document.createElement("script"),
485
+ n = M(),
486
+ o = n.promise,
487
+ a = n.resolve,
488
+ s = n.reject;
489
+ function u() {
490
+ (!r.readyState || "loaded" === r.readyState || "complete" === r.readyState) && a();
491
+ }
492
+ return r.onload = u, r.onreadystatechange = u, r.onerror = i(regeneratorRuntime.mark(function e() {
493
+ var n;
494
+ return regeneratorRuntime.wrap(function (e) {
495
+ for (;;) switch (e.prev = e.next) {
797
496
  case 0:
798
- if (n = e.gfv, o = e.engineVersion, !r.g.CF.entryPoint[n]) {
799
- t.next = 3;
800
- break;
801
- }
802
- return t.abrupt("return");
497
+ return r.parentNode && r.parentNode.removeChild(r), e.next = 3, q(t);
803
498
  case 3:
804
- return i = [], a = "true" === V("debug") ? "" : ".min", s = {
805
- resourceZone: e.resourceZone
806
- }, i.push(S.E.styleSheet((0, j.wH)("".concat(n).concat(a, ".css"), s), !0)), i.push(S.E.script((0, j.iV)("".concat(n).concat(a, ".js"), s))), o && !r.g[o] && i.push(Y(o, a, s)), t.next = 12, Promise.all(i);
807
- case 12:
808
- if (r.g.CF.entryPoint[n]) {
809
- t.next = 14;
810
- break;
811
- }
812
- throw new Error("Entry point is absent for gfv: ".concat(n));
813
- case 14:
814
- case "end":
815
- return t.stop();
816
- }
817
- }, t);
818
- }))).apply(this, arguments);
819
- }
820
- function Y(t, e, r) {
821
- return X.apply(this, arguments);
822
- }
823
- function X() {
824
- return (X = D(H().mark(function t(e, n, o) {
825
- var i, a;
826
- return H().wrap(function (t) {
827
- for (;;) switch (t.prev = t.next) {
828
- case 0:
829
- return t.prev = 0, t.next = 3, S.E.script((0, j.iV)("engineLoader_".concat(e).concat(n, ".js"), o));
830
- case 3:
831
- t.next = 12;
832
- break;
499
+ n = e.sent, s(n);
833
500
  case 5:
834
- if (t.prev = 5, t.t0 = t.catch(0), !(0, A.TX)(t.t0) || t.t0.status !== A.Ef.NotFound) {
835
- t.next = 11;
836
- break;
837
- }
838
- return t.next = 10, Promise.all([S.E.script((0, j.iV)("candy_".concat(e).concat(n, ".js"), o)), S.E.styleSheet((0, j.wH)("candy_".concat(e).concat(n, ".css"), o), !0)]);
839
- case 10:
840
- return t.abrupt("return");
841
- case 11:
842
- throw t.t0;
843
- case 12:
844
- return i = "loadEngine_".concat(e), a = r.g[i], (0, k.gx)(a, "window.".concat(i, " must be defined")), (0, k.B0)(a, "window.".concat(i, " must be a function")), t.next = 18, a(o);
845
- case 18:
846
501
  case "end":
847
- return t.stop();
848
- }
849
- }, t, null, [[0, 5]]);
850
- }))).apply(this, arguments);
851
- }
852
- function W(t, e, n) {
853
- var o;
854
- (null !== (o = r.g.CF.entryPoint[e.gfv]) && void 0 !== o ? o : (0, k.ku)("Form entry point ".concat(e.gfv, " not found.")))(t, e).then(function (t) {
855
- var e = t.publicForm;
856
- n(null, e);
857
- }).catch(n);
858
- }
859
- function J(t) {
860
- if (null != t) return r.g[t] && r.g[t].default;
861
- }
862
- t = r.hmd(t), (T = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.enterModule : void 0) && T(t), "undefined" != typeof reactHotLoaderGlobal && reactHotLoaderGlobal.default.signature;
863
- var K,
864
- Q,
865
- tt = function (t, e) {
866
- var r,
867
- n,
868
- o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : M,
869
- i = null,
870
- a = e.ns,
871
- s = e.draftId;
872
- if (z(U.r.konturDomains) ? U.r.authorized ? s ? a || (i = new Error("options.ns is required")) : i = new Error("options.draftId is required") : i = new Error("user.unauthenticated") : i = new Error("domain.untrusted"), i) o(i);else {
873
- var u = null !== (r = e.resourceZone) && void 0 !== r ? r : V("resourceZone"),
874
- c = (0, j.c$)((0, C.I)({
875
- ns: a,
876
- draftId: s
877
- }), {
878
- resourceZone: u
879
- }),
880
- l = {
881
- method: "GET"
882
- };
883
- if (null == e.authentication || "browser-credentials-include" === e.authentication) l.credentials = "include";else if ("authSid" in e.authentication && null != e.authentication.authSid) {
884
- var f;
885
- l.credentials = "omit", l.headers = null !== (f = l.headers) && void 0 !== f ? f : {}, l.headers.Authorization = "AUTH.SID ".concat(e.authentication.authSid);
886
- } else l.credentials = "omit";
887
- (null !== (n = e.fetch) && void 0 !== n ? n : P)(c, l).then(function (t) {
888
- return t.json();
889
- }).then(function (r) {
890
- var n,
891
- i,
892
- a,
893
- s,
894
- c,
895
- l = r.gfv,
896
- f = r.engineVersion,
897
- d = F(F(F({
898
- authorized: U.r.authorized,
899
- cauldronApiUrl: U.r.cauldronApiUrl,
900
- isTestServer: U.r.isTestServer,
901
- renderCachingForIE8: U.r.renderCachingForIE8,
902
- normalizationOnServer: U.r.normalizationOnServer,
903
- normativeUrl: U.r.normativeUrl,
904
- ndsPlusApiUrl: U.r.ndsPlusApiUrl,
905
- konturDomains: U.r.konturDomains,
906
- showNavigationSidebar: null === (n = e.showNavigationSidebar) || void 0 === n || n,
907
- onRemoveAttachment: e.onRemoveAttachment,
908
- onClearAttachment: e.onClearAttachment
909
- }, e), r), {}, {
910
- gfv: l,
911
- engineVersion: f,
912
- feedbackEnabled: null !== (i = e.feedbackEnabled) && void 0 !== i ? i : r.feedbackEnabled,
913
- isDisabledCleanForm: null !== (a = e.isDisabledCleanForm) && void 0 !== a && a,
914
- isDisabledCloseButton: null !== (s = e.isDisabledCloseButton) && void 0 !== s && s,
915
- isDisabledCloseAndSaveButton: null !== (c = e.isDisabledCloseAndSaveButton) && void 0 !== c && c,
916
- resourceZone: u,
917
- setUnitItemExtraInfo: e.setUnitItemExtraInfo,
918
- attachmentUnitItemInfoPath: e.attachmentUnitItemInfoPaths
919
- });
920
- Z({
921
- gfv: d.gfv,
922
- engineVersion: d.engineVersion,
923
- resourceZone: d.resourceZone,
924
- theme: d.theme
925
- }).then(function () {
926
- var r = J(f);
927
- W(t, F(F({}, d), {}, {
928
- templatesApi: e.templatesApi,
929
- renderForm: r
930
- }), o);
931
- }).catch(function (t) {
932
- o(new Error("dynamic loading is not supported for gfv ".concat(l, "\n").concat(t)));
933
- });
934
- }).catch(o);
935
- }
936
- },
937
- et = {
938
- start: tt,
939
- entryPoint: {},
940
- partialRenderingForIE8: q("{partialRenderingForIE8}"),
941
- keformsUrl: "{keformsUrl}",
942
- staffServiceUrl: "{staffServiceUrl}",
943
- picklistUrl: "{picklistApiUrl}",
944
- nidusUrl: "{nidusApiUrl}",
945
- fsPrinterUrl: "{fsprinterApiUrl}",
946
- contractorsApiUrl: "{contractorsApiUrl}"
947
- };
948
- r.g.CF = et, (K = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && (K.register(M, "defaultCallback", "/builds/forms/candy/Engine/src/Forms/Client/Client.ts"), K.register(q, "parseBool", "/builds/forms/candy/Engine/src/Forms/Client/Client.ts"), K.register(z, "isAllowed", "/builds/forms/candy/Engine/src/Forms/Client/Client.ts"), K.register(V, "getParameterByName", "/builds/forms/candy/Engine/src/Forms/Client/Client.ts"), K.register(Z, "loadForm", "/builds/forms/candy/Engine/src/Forms/Client/Client.ts"), K.register(Y, "loadEngine", "/builds/forms/candy/Engine/src/Forms/Client/Client.ts"), K.register(W, "renderForm", "/builds/forms/candy/Engine/src/Forms/Client/Client.ts"), K.register(J, "getEngineEntryPoint", "/builds/forms/candy/Engine/src/Forms/Client/Client.ts"), K.register(tt, "start", "/builds/forms/candy/Engine/src/Forms/Client/Client.ts"), K.register(et, "CandyClientExports", "/builds/forms/candy/Engine/src/Forms/Client/Client.ts")), (Q = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0) && Q(t);
949
- },
950
- 171: function (t, e, r) {
951
- var n;
952
- function o(t) {
953
- return "string" == typeof t ? "false" !== t && "true" === t : Boolean(t);
954
- }
955
- r.d(e, {
956
- r: function () {
957
- return s;
958
- }
959
- }), t = r.hmd(t), (n = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.enterModule : void 0) && n(t), "undefined" != typeof reactHotLoaderGlobal && reactHotLoaderGlobal.default.signature;
960
- var i,
961
- a,
962
- s = {
963
- authorized: o("{authorized}"),
964
- cauldronApiUrl: "{cauldronApiUrl}",
965
- isTestServer: o("{isTestServer}"),
966
- renderCachingForIE8: o("{renderCachingForIE8}"),
967
- normalizationOnServer: o("{normalizationOnServer}"),
968
- normativeUrl: "{normativeUrl}",
969
- ndsPlusApiUrl: "{ndsPlusApiUrl}",
970
- konturDomains: "{konturDomains}"
971
- };
972
- (i = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && (i.register(o, "parseBool", "/builds/forms/candy/Engine/src/Forms/Client/ClientSettings.ts"), i.register(s, "clientSettings", "/builds/forms/candy/Engine/src/Forms/Client/ClientSettings.ts")), (a = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0) && a(t);
973
- },
974
- 688: function (t, e, r) {
975
- r.d(e, {
976
- E: function () {
977
- return h;
978
- }
979
- });
980
- var n,
981
- o = r(823);
982
- function i(t) {
983
- return i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
984
- return typeof t;
985
- } : function (t) {
986
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
987
- }, i(t);
988
- }
989
- function a() {
990
- a = function () {
991
- return e;
992
- };
993
- var t,
994
- e = {},
995
- r = Object.prototype,
996
- n = r.hasOwnProperty,
997
- o = Object.defineProperty || function (t, e, r) {
998
- t[e] = r.value;
999
- },
1000
- s = "function" == typeof Symbol ? Symbol : {},
1001
- u = s.iterator || "@@iterator",
1002
- c = s.asyncIterator || "@@asyncIterator",
1003
- l = s.toStringTag || "@@toStringTag";
1004
- function f(t, e, r) {
1005
- return Object.defineProperty(t, e, {
1006
- value: r,
1007
- enumerable: !0,
1008
- configurable: !0,
1009
- writable: !0
1010
- }), t[e];
1011
- }
502
+ return e.stop();
503
+ }
504
+ }, e);
505
+ })), r.src = t, e.appendChild(r), o;
506
+ }
507
+ }, {
508
+ key: "styleSheet",
509
+ value: function (t) {
510
+ var e,
511
+ r = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
512
+ n = null !== (e = document.getElementsByTagName("head")[0]) && void 0 !== e ? e : document.documentElement,
513
+ o = document.createElement("link");
514
+ o.setAttribute("rel", "stylesheet"), o.setAttribute("type", "text/css"), o.setAttribute("href", t);
515
+ var i = M(),
516
+ a = i.promise,
517
+ s = i.resolve,
518
+ u = i.reject;
519
+ return o.addEventListener("load", s), o.addEventListener("error", function () {
520
+ r ? s() : u();
521
+ }), n.appendChild(o), a;
522
+ }
523
+ }]);
524
+ }(),
525
+ M = function () {
526
+ var t, e;
527
+ return {
528
+ promise: new Promise(function (r, n) {
529
+ t = r, e = n;
530
+ }),
531
+ resolve: t,
532
+ reject: e
533
+ };
534
+ };
535
+ function $(e, r) {
536
+ var n = function (t, e) {
537
+ if (void 0 === e) return t;
538
+ for (var r = [], n = 0, o = Object.keys(e); n < o.length; n++) {
539
+ var i = o[n],
540
+ a = e[i];
541
+ null != a && r.push("".concat(i, "=").concat(encodeURIComponent(a)));
542
+ }
543
+ return 0 === r.length ? t : t + "?" + r.join("&");
544
+ }(e, r);
545
+ return function () {
546
+ var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
547
+ r = t.g.CF.keformsUrl || "";
548
+ return "".concat(r, "/").concat(e).replace(/([^:])\/{2,}/g, "$1/");
549
+ }(n);
550
+ }
551
+ function J(t, e) {
552
+ return $("static/public/".concat(t), e);
553
+ }
554
+ function X(t, e) {
555
+ return J("scripts/".concat(t), e);
556
+ }
557
+ function K(t, e) {
558
+ return J("styles/".concat(t), e);
559
+ }
560
+ function Q(t) {
561
+ return "string" == typeof t ? "false" !== t && "true" === t : Boolean(t);
562
+ }
563
+ var W = {
564
+ authorized: Q("{authorized}"),
565
+ cauldronApiUrl: "{cauldronApiUrl}",
566
+ isTestServer: Q("{isTestServer}"),
567
+ renderCachingForIE8: Q("{renderCachingForIE8}"),
568
+ normalizationOnServer: Q("{normalizationOnServer}"),
569
+ normativeUrl: "{normativeUrl}",
570
+ ndsPlusApiUrl: "{ndsPlusApiUrl}",
571
+ konturDomains: "{konturDomains}"
572
+ };
573
+ function Y(t, e) {
574
+ var r = Object.keys(t);
575
+ if (Object.getOwnPropertySymbols) {
576
+ var n = Object.getOwnPropertySymbols(t);
577
+ e && (n = n.filter(function (e) {
578
+ return Object.getOwnPropertyDescriptor(t, e).enumerable;
579
+ })), r.push.apply(r, n);
580
+ }
581
+ return r;
582
+ }
583
+ function tt(t) {
584
+ for (var e = 1; e < arguments.length; e++) {
585
+ var r = null != arguments[e] ? arguments[e] : {};
586
+ e % 2 ? Y(Object(r), !0).forEach(function (e) {
587
+ n(t, e, r[e]);
588
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Y(Object(r)).forEach(function (e) {
589
+ Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e));
590
+ });
591
+ }
592
+ return t;
593
+ }
594
+ function et() {}
595
+ function rt(e) {
596
+ return (t.g.location.search.trim().replace(/^(\?|#|&)/, "").split("&").map(function (t) {
597
+ return t.replace(/\+/g, " ").split("=").map(decodeURIComponent);
598
+ }).find(function (t) {
599
+ return (r = t, n = 1, function (t) {
600
+ if (Array.isArray(t)) return t;
601
+ }(r) || function (t, e) {
602
+ var r = null == t ? null : "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
603
+ if (null != r) {
604
+ var n,
605
+ o,
606
+ i,
607
+ a,
608
+ s = [],
609
+ u = !0,
610
+ c = !1;
1012
611
  try {
1013
- f({}, "");
612
+ if (i = (r = r.call(t)).next, 0 === e) {
613
+ if (Object(r) !== r) return;
614
+ u = !1;
615
+ } else for (; !(u = (n = i.call(r)).done) && (s.push(n.value), s.length !== e); u = !0);
1014
616
  } catch (t) {
1015
- f = function (t, e, r) {
1016
- return t[e] = r;
1017
- };
1018
- }
1019
- function d(t, e, r, n) {
1020
- var i = e && e.prototype instanceof g ? e : g,
1021
- a = Object.create(i.prototype),
1022
- s = new A(n || []);
1023
- return o(a, "_invoke", {
1024
- value: k(t, r, s)
1025
- }), a;
1026
- }
1027
- function h(t, e, r) {
617
+ c = !0, o = t;
618
+ } finally {
1028
619
  try {
1029
- return {
1030
- type: "normal",
1031
- arg: t.call(e, r)
1032
- };
1033
- } catch (t) {
1034
- return {
1035
- type: "throw",
1036
- arg: t
1037
- };
1038
- }
1039
- }
1040
- e.wrap = d;
1041
- var p = "suspendedStart",
1042
- y = "suspendedYield",
1043
- m = "executing",
1044
- v = "completed",
1045
- b = {};
1046
- function g() {}
1047
- function w() {}
1048
- function _() {}
1049
- var E = {};
1050
- f(E, u, function () {
1051
- return this;
1052
- });
1053
- var L = Object.getPrototypeOf,
1054
- O = L && L(L(U([])));
1055
- O && O !== r && n.call(O, u) && (E = O);
1056
- var x = _.prototype = g.prototype = Object.create(E);
1057
- function P(t) {
1058
- ["next", "throw", "return"].forEach(function (e) {
1059
- f(t, e, function (t) {
1060
- return this._invoke(e, t);
1061
- });
1062
- });
1063
- }
1064
- function T(t, e) {
1065
- function r(o, a, s, u) {
1066
- var c = h(t[o], t, a);
1067
- if ("throw" !== c.type) {
1068
- var l = c.arg,
1069
- f = l.value;
1070
- return f && "object" == i(f) && n.call(f, "__await") ? e.resolve(f.__await).then(function (t) {
1071
- r("next", t, s, u);
1072
- }, function (t) {
1073
- r("throw", t, s, u);
1074
- }) : e.resolve(f).then(function (t) {
1075
- l.value = t, s(l);
1076
- }, function (t) {
1077
- return r("throw", t, s, u);
1078
- });
1079
- }
1080
- u(c.arg);
620
+ if (!u && null != r.return && (a = r.return(), Object(a) !== a)) return;
621
+ } finally {
622
+ if (c) throw o;
1081
623
  }
1082
- var a;
1083
- o(this, "_invoke", {
1084
- value: function (t, n) {
1085
- function o() {
1086
- return new e(function (e, o) {
1087
- r(t, n, e, o);
1088
- });
1089
- }
1090
- return a = a ? a.then(o, o) : o();
1091
- }
1092
- });
1093
624
  }
1094
- function k(e, r, n) {
1095
- var o = p;
1096
- return function (i, a) {
1097
- if (o === m) throw Error("Generator is already running");
1098
- if (o === v) {
1099
- if ("throw" === i) throw a;
1100
- return {
1101
- value: t,
1102
- done: !0
1103
- };
1104
- }
1105
- for (n.method = i, n.arg = a;;) {
1106
- var s = n.delegate;
1107
- if (s) {
1108
- var u = S(s, n);
1109
- if (u) {
1110
- if (u === b) continue;
1111
- return u;
1112
- }
1113
- }
1114
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
1115
- if (o === p) throw o = v, n.arg;
1116
- n.dispatchException(n.arg);
1117
- } else "return" === n.method && n.abrupt("return", n.arg);
1118
- o = m;
1119
- var c = h(e, r, n);
1120
- if ("normal" === c.type) {
1121
- if (o = n.done ? v : y, c.arg === b) continue;
1122
- return {
1123
- value: c.arg,
1124
- done: n.done
1125
- };
1126
- }
1127
- "throw" === c.type && (o = v, n.method = "throw", n.arg = c.arg);
1128
- }
1129
- };
1130
- }
1131
- function S(e, r) {
1132
- var n = r.method,
1133
- o = e.iterator[n];
1134
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, S(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), b;
1135
- var i = h(o, e.iterator, r.arg);
1136
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, b;
1137
- var a = i.arg;
1138
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, b) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, b);
1139
- }
1140
- function j(t) {
1141
- var e = {
1142
- tryLoc: t[0]
1143
- };
1144
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
1145
- }
1146
- function C(t) {
1147
- var e = t.completion || {};
1148
- e.type = "normal", delete e.arg, t.completion = e;
1149
- }
1150
- function A(t) {
1151
- this.tryEntries = [{
1152
- tryLoc: "root"
1153
- }], t.forEach(j, this), this.reset(!0);
1154
- }
1155
- function U(e) {
1156
- if (e || "" === e) {
1157
- var r = e[u];
1158
- if (r) return r.call(e);
1159
- if ("function" == typeof e.next) return e;
1160
- if (!isNaN(e.length)) {
1161
- var o = -1,
1162
- a = function r() {
1163
- for (; ++o < e.length;) if (n.call(e, o)) return r.value = e[o], r.done = !1, r;
1164
- return r.value = t, r.done = !0, r;
1165
- };
1166
- return a.next = a;
1167
- }
1168
- }
1169
- throw new TypeError(i(e) + " is not iterable");
1170
- }
1171
- return w.prototype = _, o(x, "constructor", {
1172
- value: _,
1173
- configurable: !0
1174
- }), o(_, "constructor", {
1175
- value: w,
1176
- configurable: !0
1177
- }), w.displayName = f(_, l, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
1178
- var e = "function" == typeof t && t.constructor;
1179
- return !!e && (e === w || "GeneratorFunction" === (e.displayName || e.name));
1180
- }, e.mark = function (t) {
1181
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, _) : (t.__proto__ = _, f(t, l, "GeneratorFunction")), t.prototype = Object.create(x), t;
1182
- }, e.awrap = function (t) {
1183
- return {
1184
- __await: t
1185
- };
1186
- }, P(T.prototype), f(T.prototype, c, function () {
1187
- return this;
1188
- }), e.AsyncIterator = T, e.async = function (t, r, n, o, i) {
1189
- void 0 === i && (i = Promise);
1190
- var a = new T(d(t, r, n, o), i);
1191
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
1192
- return t.done ? t.value : a.next();
1193
- });
1194
- }, P(x), f(x, l, "Generator"), f(x, u, function () {
1195
- return this;
1196
- }), f(x, "toString", function () {
1197
- return "[object Generator]";
1198
- }), e.keys = function (t) {
1199
- var e = Object(t),
1200
- r = [];
1201
- for (var n in e) r.push(n);
1202
- return r.reverse(), function t() {
1203
- for (; r.length;) {
1204
- var n = r.pop();
1205
- if (n in e) return t.value = n, t.done = !1, t;
1206
- }
1207
- return t.done = !0, t;
1208
- };
1209
- }, e.values = U, A.prototype = {
1210
- constructor: A,
1211
- reset: function (e) {
1212
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(C), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
1213
- },
1214
- stop: function () {
1215
- this.done = !0;
1216
- var t = this.tryEntries[0].completion;
1217
- if ("throw" === t.type) throw t.arg;
1218
- return this.rval;
1219
- },
1220
- dispatchException: function (e) {
1221
- if (this.done) throw e;
1222
- var r = this;
1223
- function o(n, o) {
1224
- return s.type = "throw", s.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
1225
- }
1226
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1227
- var a = this.tryEntries[i],
1228
- s = a.completion;
1229
- if ("root" === a.tryLoc) return o("end");
1230
- if (a.tryLoc <= this.prev) {
1231
- var u = n.call(a, "catchLoc"),
1232
- c = n.call(a, "finallyLoc");
1233
- if (u && c) {
1234
- if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
1235
- if (this.prev < a.finallyLoc) return o(a.finallyLoc);
1236
- } else if (u) {
1237
- if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
1238
- } else {
1239
- if (!c) throw Error("try statement without catch or finally");
1240
- if (this.prev < a.finallyLoc) return o(a.finallyLoc);
1241
- }
1242
- }
1243
- }
1244
- },
1245
- abrupt: function (t, e) {
1246
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
1247
- var o = this.tryEntries[r];
1248
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
1249
- var i = o;
1250
- break;
1251
- }
1252
- }
1253
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
1254
- var a = i ? i.completion : {};
1255
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, b) : this.complete(a);
1256
- },
1257
- complete: function (t, e) {
1258
- if ("throw" === t.type) throw t.arg;
1259
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), b;
1260
- },
1261
- finish: function (t) {
1262
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
1263
- var r = this.tryEntries[e];
1264
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), C(r), b;
1265
- }
1266
- },
1267
- catch: function (t) {
1268
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
1269
- var r = this.tryEntries[e];
1270
- if (r.tryLoc === t) {
1271
- var n = r.completion;
1272
- if ("throw" === n.type) {
1273
- var o = n.arg;
1274
- C(r);
1275
- }
1276
- return o;
1277
- }
1278
- }
1279
- throw Error("illegal catch attempt");
1280
- },
1281
- delegateYield: function (e, r, n) {
1282
- return this.delegate = {
1283
- iterator: U(e),
1284
- resultName: r,
1285
- nextLoc: n
1286
- }, "next" === this.method && (this.arg = t), b;
1287
- }
1288
- }, e;
625
+ return s;
1289
626
  }
1290
- function s(t, e, r, n, o, i, a) {
1291
- try {
1292
- var s = t[i](a),
1293
- u = s.value;
1294
- } catch (t) {
1295
- return void r(t);
1296
- }
1297
- s.done ? e(u) : Promise.resolve(u).then(n, o);
627
+ }(r, n) || function (t, e) {
628
+ if (t) {
629
+ if ("string" == typeof t) return a(t, e);
630
+ var r = {}.toString.call(t).slice(8, -1);
631
+ return "Object" === r && t.constructor && (r = t.constructor.name), "Map" === r || "Set" === r ? Array.from(t) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? a(t, e) : void 0;
1298
632
  }
1299
- function u(t) {
1300
- return function () {
1301
- var e = this,
1302
- r = arguments;
1303
- return new Promise(function (n, o) {
1304
- var i = t.apply(e, r);
1305
- function a(t) {
1306
- s(i, n, o, a, u, "next", t);
1307
- }
1308
- function u(t) {
1309
- s(i, n, o, a, u, "throw", t);
1310
- }
1311
- a(void 0);
1312
- });
1313
- };
1314
- }
1315
- function c(t, e) {
1316
- for (var r = 0; r < e.length; r++) {
1317
- var n = e[r];
1318
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, l(n.key), n);
1319
- }
1320
- }
1321
- function l(t) {
1322
- var e = function (t) {
1323
- if ("object" != i(t) || !t) return t;
1324
- var e = t[Symbol.toPrimitive];
1325
- if (void 0 !== e) {
1326
- var r = e.call(t, "string");
1327
- if ("object" != i(r)) return r;
1328
- throw new TypeError("@@toPrimitive must return a primitive value.");
1329
- }
1330
- return String(t);
1331
- }(t);
1332
- return "symbol" == i(e) ? e : e + "";
1333
- }
1334
- t = r.hmd(t), (n = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.enterModule : void 0) && n(t), "undefined" != typeof reactHotLoaderGlobal && reactHotLoaderGlobal.default.signature;
1335
- var f,
1336
- d,
1337
- h = function () {
1338
- return t = function t() {
1339
- !function (t, e) {
1340
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
1341
- }(this, t);
1342
- }, e = [{
1343
- key: "script",
1344
- value: function (t) {
1345
- var e = document.getElementsByTagName("head")[0] || document.documentElement,
1346
- r = document.createElement("script"),
1347
- n = p(),
1348
- i = n.promise,
1349
- s = n.resolve,
1350
- c = n.reject;
1351
- function l() {
1352
- (!r.readyState || "loaded" === r.readyState || "complete" === r.readyState) && s();
1353
- }
1354
- return r.onload = l, r.onreadystatechange = l, r.onerror = u(a().mark(function e() {
1355
- var n;
1356
- return a().wrap(function (e) {
1357
- for (;;) switch (e.prev = e.next) {
1358
- case 0:
1359
- return r.parentNode && r.parentNode.removeChild(r), e.next = 3, (0, o.B)(t);
1360
- case 3:
1361
- n = e.sent, c(n);
1362
- case 5:
1363
- case "end":
1364
- return e.stop();
1365
- }
1366
- }, e);
1367
- })), r.src = t, e.appendChild(r), i;
1368
- }
1369
- }, {
1370
- key: "styleSheet",
1371
- value: function (t) {
1372
- var e,
1373
- r = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
1374
- n = null !== (e = document.getElementsByTagName("head")[0]) && void 0 !== e ? e : document.documentElement,
1375
- o = document.createElement("link");
1376
- o.setAttribute("rel", "stylesheet"), o.setAttribute("type", "text/css"), o.setAttribute("href", t);
1377
- var i = p(),
1378
- a = i.promise,
1379
- s = i.resolve,
1380
- u = i.reject;
1381
- return o.addEventListener("load", s), o.addEventListener("error", function () {
1382
- r ? s() : u();
1383
- }), n.appendChild(o), a;
1384
- }
1385
- }], null && c(t.prototype, null), e && c(t, e), Object.defineProperty(t, "prototype", {
1386
- writable: !1
1387
- }), t;
1388
- var t, e;
1389
- }(),
1390
- p = function () {
1391
- var t, e;
1392
- return {
1393
- promise: new Promise(function (r, n) {
1394
- t = r, e = n;
1395
- }),
1396
- resolve: t,
1397
- reject: e
1398
- };
1399
- };
1400
- (f = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && (f.register(h, "AsyncLoadIntoDocument", "/builds/forms/candy/Engine/src/Helpers/AsyncLoadIntoDocument.ts"), f.register(p, "createPromiseWithResolvers", "/builds/forms/candy/Engine/src/Helpers/AsyncLoadIntoDocument.ts")), (d = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0) && d(t);
1401
- },
1402
- 823: function (module, __webpack_exports__, __webpack_require__) {
1403
- function _typeof(t) {
1404
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
1405
- return typeof t;
1406
- } : function (t) {
1407
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1408
- }, _typeof(t);
1409
- }
1410
- var enterModule;
1411
- function _regeneratorRuntime() {
1412
- _regeneratorRuntime = function () {
1413
- return e;
1414
- };
1415
- var t,
1416
- e = {},
1417
- r = Object.prototype,
1418
- n = r.hasOwnProperty,
1419
- o = Object.defineProperty || function (t, e, r) {
1420
- t[e] = r.value;
1421
- },
1422
- i = "function" == typeof Symbol ? Symbol : {},
1423
- a = i.iterator || "@@iterator",
1424
- s = i.asyncIterator || "@@asyncIterator",
1425
- u = i.toStringTag || "@@toStringTag";
1426
- function c(t, e, r) {
1427
- return Object.defineProperty(t, e, {
1428
- value: r,
1429
- enumerable: !0,
1430
- configurable: !0,
1431
- writable: !0
1432
- }), t[e];
1433
- }
1434
- try {
1435
- c({}, "");
1436
- } catch (t) {
1437
- c = function (t, e, r) {
1438
- return t[e] = r;
1439
- };
1440
- }
1441
- function l(t, e, r, n) {
1442
- var i = e && e.prototype instanceof v ? e : v,
1443
- a = Object.create(i.prototype),
1444
- s = new j(n || []);
1445
- return o(a, "_invoke", {
1446
- value: P(t, r, s)
1447
- }), a;
1448
- }
1449
- function f(t, e, r) {
1450
- try {
1451
- return {
1452
- type: "normal",
1453
- arg: t.call(e, r)
1454
- };
1455
- } catch (t) {
1456
- return {
1457
- type: "throw",
1458
- arg: t
1459
- };
1460
- }
1461
- }
1462
- e.wrap = l;
1463
- var d = "suspendedStart",
1464
- h = "suspendedYield",
1465
- p = "executing",
1466
- y = "completed",
1467
- m = {};
1468
- function v() {}
1469
- function b() {}
1470
- function g() {}
1471
- var w = {};
1472
- c(w, a, function () {
1473
- return this;
1474
- });
1475
- var _ = Object.getPrototypeOf,
1476
- E = _ && _(_(C([])));
1477
- E && E !== r && n.call(E, a) && (w = E);
1478
- var L = g.prototype = v.prototype = Object.create(w);
1479
- function O(t) {
1480
- ["next", "throw", "return"].forEach(function (e) {
1481
- c(t, e, function (t) {
1482
- return this._invoke(e, t);
1483
- });
1484
- });
1485
- }
1486
- function x(t, e) {
1487
- function r(o, i, a, s) {
1488
- var u = f(t[o], t, i);
1489
- if ("throw" !== u.type) {
1490
- var c = u.arg,
1491
- l = c.value;
1492
- return l && "object" == _typeof(l) && n.call(l, "__await") ? e.resolve(l.__await).then(function (t) {
1493
- r("next", t, a, s);
1494
- }, function (t) {
1495
- r("throw", t, a, s);
1496
- }) : e.resolve(l).then(function (t) {
1497
- c.value = t, a(c);
1498
- }, function (t) {
1499
- return r("throw", t, a, s);
1500
- });
1501
- }
1502
- s(u.arg);
1503
- }
1504
- var i;
1505
- o(this, "_invoke", {
1506
- value: function (t, n) {
1507
- function o() {
1508
- return new e(function (e, o) {
1509
- r(t, n, e, o);
1510
- });
1511
- }
1512
- return i = i ? i.then(o, o) : o();
1513
- }
1514
- });
1515
- }
1516
- function P(e, r, n) {
1517
- var o = d;
1518
- return function (i, a) {
1519
- if (o === p) throw Error("Generator is already running");
1520
- if (o === y) {
1521
- if ("throw" === i) throw a;
1522
- return {
1523
- value: t,
1524
- done: !0
1525
- };
1526
- }
1527
- for (n.method = i, n.arg = a;;) {
1528
- var s = n.delegate;
1529
- if (s) {
1530
- var u = T(s, n);
1531
- if (u) {
1532
- if (u === m) continue;
1533
- return u;
1534
- }
1535
- }
1536
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
1537
- if (o === d) throw o = y, n.arg;
1538
- n.dispatchException(n.arg);
1539
- } else "return" === n.method && n.abrupt("return", n.arg);
1540
- o = p;
1541
- var c = f(e, r, n);
1542
- if ("normal" === c.type) {
1543
- if (o = n.done ? y : h, c.arg === m) continue;
1544
- return {
1545
- value: c.arg,
1546
- done: n.done
1547
- };
1548
- }
1549
- "throw" === c.type && (o = y, n.method = "throw", n.arg = c.arg);
1550
- }
1551
- };
1552
- }
1553
- function T(e, r) {
1554
- var n = r.method,
1555
- o = e.iterator[n];
1556
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, T(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), m;
1557
- var i = f(o, e.iterator, r.arg);
1558
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, m;
1559
- var a = i.arg;
1560
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, m) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, m);
1561
- }
1562
- function k(t) {
1563
- var e = {
1564
- tryLoc: t[0]
1565
- };
1566
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
1567
- }
1568
- function S(t) {
1569
- var e = t.completion || {};
1570
- e.type = "normal", delete e.arg, t.completion = e;
1571
- }
1572
- function j(t) {
1573
- this.tryEntries = [{
1574
- tryLoc: "root"
1575
- }], t.forEach(k, this), this.reset(!0);
1576
- }
1577
- function C(e) {
1578
- if (e || "" === e) {
1579
- var r = e[a];
1580
- if (r) return r.call(e);
1581
- if ("function" == typeof e.next) return e;
1582
- if (!isNaN(e.length)) {
1583
- var o = -1,
1584
- i = function r() {
1585
- for (; ++o < e.length;) if (n.call(e, o)) return r.value = e[o], r.done = !1, r;
1586
- return r.value = t, r.done = !0, r;
1587
- };
1588
- return i.next = i;
1589
- }
633
+ }(r, n) || function () {
634
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
635
+ }())[0] == e;
636
+ var r, n;
637
+ }) || [])[1];
638
+ }
639
+ function nt() {
640
+ return (nt = i(regeneratorRuntime.mark(function e(r) {
641
+ var n, o, i, a, s;
642
+ return regeneratorRuntime.wrap(function (e) {
643
+ for (;;) switch (e.prev = e.next) {
644
+ case 0:
645
+ if (n = r.gfv, o = r.engineVersion, !t.g.CF.entryPoint[n]) {
646
+ e.next = 3;
647
+ break;
1590
648
  }
1591
- throw new TypeError(_typeof(e) + " is not iterable");
1592
- }
1593
- return b.prototype = g, o(L, "constructor", {
1594
- value: g,
1595
- configurable: !0
1596
- }), o(g, "constructor", {
1597
- value: b,
1598
- configurable: !0
1599
- }), b.displayName = c(g, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
1600
- var e = "function" == typeof t && t.constructor;
1601
- return !!e && (e === b || "GeneratorFunction" === (e.displayName || e.name));
1602
- }, e.mark = function (t) {
1603
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, g) : (t.__proto__ = g, c(t, u, "GeneratorFunction")), t.prototype = Object.create(L), t;
1604
- }, e.awrap = function (t) {
1605
- return {
1606
- __await: t
1607
- };
1608
- }, O(x.prototype), c(x.prototype, s, function () {
1609
- return this;
1610
- }), e.AsyncIterator = x, e.async = function (t, r, n, o, i) {
1611
- void 0 === i && (i = Promise);
1612
- var a = new x(l(t, r, n, o), i);
1613
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
1614
- return t.done ? t.value : a.next();
1615
- });
1616
- }, O(L), c(L, u, "Generator"), c(L, a, function () {
1617
- return this;
1618
- }), c(L, "toString", function () {
1619
- return "[object Generator]";
1620
- }), e.keys = function (t) {
1621
- var e = Object(t),
1622
- r = [];
1623
- for (var n in e) r.push(n);
1624
- return r.reverse(), function t() {
1625
- for (; r.length;) {
1626
- var n = r.pop();
1627
- if (n in e) return t.value = n, t.done = !1, t;
1628
- }
1629
- return t.done = !0, t;
1630
- };
1631
- }, e.values = C, j.prototype = {
1632
- constructor: j,
1633
- reset: function (e) {
1634
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(S), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
1635
- },
1636
- stop: function () {
1637
- this.done = !0;
1638
- var t = this.tryEntries[0].completion;
1639
- if ("throw" === t.type) throw t.arg;
1640
- return this.rval;
1641
- },
1642
- dispatchException: function (e) {
1643
- if (this.done) throw e;
1644
- var r = this;
1645
- function o(n, o) {
1646
- return s.type = "throw", s.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
1647
- }
1648
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1649
- var a = this.tryEntries[i],
1650
- s = a.completion;
1651
- if ("root" === a.tryLoc) return o("end");
1652
- if (a.tryLoc <= this.prev) {
1653
- var u = n.call(a, "catchLoc"),
1654
- c = n.call(a, "finallyLoc");
1655
- if (u && c) {
1656
- if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
1657
- if (this.prev < a.finallyLoc) return o(a.finallyLoc);
1658
- } else if (u) {
1659
- if (this.prev < a.catchLoc) return o(a.catchLoc, !0);
1660
- } else {
1661
- if (!c) throw Error("try statement without catch or finally");
1662
- if (this.prev < a.finallyLoc) return o(a.finallyLoc);
1663
- }
1664
- }
1665
- }
1666
- },
1667
- abrupt: function (t, e) {
1668
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
1669
- var o = this.tryEntries[r];
1670
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
1671
- var i = o;
1672
- break;
1673
- }
1674
- }
1675
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
1676
- var a = i ? i.completion : {};
1677
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, m) : this.complete(a);
1678
- },
1679
- complete: function (t, e) {
1680
- if ("throw" === t.type) throw t.arg;
1681
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), m;
1682
- },
1683
- finish: function (t) {
1684
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
1685
- var r = this.tryEntries[e];
1686
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), S(r), m;
1687
- }
1688
- },
1689
- catch: function (t) {
1690
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
1691
- var r = this.tryEntries[e];
1692
- if (r.tryLoc === t) {
1693
- var n = r.completion;
1694
- if ("throw" === n.type) {
1695
- var o = n.arg;
1696
- S(r);
1697
- }
1698
- return o;
1699
- }
1700
- }
1701
- throw Error("illegal catch attempt");
1702
- },
1703
- delegateYield: function (e, r, n) {
1704
- return this.delegate = {
1705
- iterator: C(e),
1706
- resultName: r,
1707
- nextLoc: n
1708
- }, "next" === this.method && (this.arg = t), m;
649
+ return e.abrupt("return");
650
+ case 3:
651
+ return i = [], a = "true" === rt("debug") ? "" : ".min", s = {
652
+ resourceZone: r.resourceZone
653
+ }, i.push(G.styleSheet(K("".concat(n).concat(a, ".css"), s), !0)), i.push(G.script(X("".concat(n).concat(a, ".js"), s))), o && !t.g[o] && i.push(ot(o, a, s)), e.next = 12, Promise.all(i);
654
+ case 12:
655
+ if (t.g.CF.entryPoint[n]) {
656
+ e.next = 14;
657
+ break;
1709
658
  }
1710
- }, e;
1711
- }
1712
- function _classCallCheck(t, e) {
1713
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
659
+ throw new Error("Entry point is absent for gfv: ".concat(n));
660
+ case 14:
661
+ case "end":
662
+ return e.stop();
1714
663
  }
1715
- function _defineProperties(t, e) {
1716
- for (var r = 0; r < e.length; r++) {
1717
- var n = e[r];
1718
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, _toPropertyKey(n.key), n);
1719
- }
1720
- }
1721
- function _createClass(t, e, r) {
1722
- return e && _defineProperties(t.prototype, e), r && _defineProperties(t, r), Object.defineProperty(t, "prototype", {
1723
- writable: !1
1724
- }), t;
1725
- }
1726
- function _toPropertyKey(t) {
1727
- var e = _toPrimitive(t, "string");
1728
- return "symbol" == _typeof(e) ? e : e + "";
1729
- }
1730
- function _toPrimitive(t, e) {
1731
- if ("object" != _typeof(t) || !t) return t;
1732
- var r = t[Symbol.toPrimitive];
1733
- if (void 0 !== r) {
1734
- var n = r.call(t, e || "default");
1735
- if ("object" != _typeof(n)) return n;
1736
- throw new TypeError("@@toPrimitive must return a primitive value.");
1737
- }
1738
- return ("string" === e ? String : Number)(t);
1739
- }
1740
- function _callSuper(t, e, r) {
1741
- return e = _getPrototypeOf(e), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(e, r || [], _getPrototypeOf(t).constructor) : e.apply(t, r));
1742
- }
1743
- function _possibleConstructorReturn(t, e) {
1744
- if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
1745
- if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
1746
- return _assertThisInitialized(t);
1747
- }
1748
- function _assertThisInitialized(t) {
1749
- if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1750
- return t;
1751
- }
1752
- function _inherits(t, e) {
1753
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
1754
- t.prototype = Object.create(e && e.prototype, {
1755
- constructor: {
1756
- value: t,
1757
- writable: !0,
1758
- configurable: !0
1759
- }
1760
- }), Object.defineProperty(t, "prototype", {
1761
- writable: !1
1762
- }), e && _setPrototypeOf(t, e);
1763
- }
1764
- function _wrapNativeSuper(t) {
1765
- var e = "function" == typeof Map ? new Map() : void 0;
1766
- return _wrapNativeSuper = function (t) {
1767
- if (null === t || !_isNativeFunction(t)) return t;
1768
- if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
1769
- if (void 0 !== e) {
1770
- if (e.has(t)) return e.get(t);
1771
- e.set(t, r);
1772
- }
1773
- function r() {
1774
- return _construct(t, arguments, _getPrototypeOf(this).constructor);
664
+ }, e);
665
+ }))).apply(this, arguments);
666
+ }
667
+ function ot(t, e, r) {
668
+ return it.apply(this, arguments);
669
+ }
670
+ function it() {
671
+ return (it = i(regeneratorRuntime.mark(function e(r, n, o) {
672
+ var i, a;
673
+ return regeneratorRuntime.wrap(function (e) {
674
+ for (;;) switch (e.prev = e.next) {
675
+ case 0:
676
+ return e.prev = 0, e.next = 3, G.script(X("engineLoader_".concat(r).concat(n, ".js"), o));
677
+ case 3:
678
+ e.next = 12;
679
+ break;
680
+ case 5:
681
+ if (e.prev = 5, e.t0 = e.catch(0), !(e.t0 instanceof V && e.t0.status === Z.NotFound)) {
682
+ e.next = 11;
683
+ break;
1775
684
  }
1776
- return r.prototype = Object.create(t.prototype, {
1777
- constructor: {
1778
- value: r,
1779
- enumerable: !1,
1780
- writable: !0,
1781
- configurable: !0
1782
- }
1783
- }), _setPrototypeOf(r, t);
1784
- }, _wrapNativeSuper(t);
1785
- }
1786
- function _construct(t, e, r) {
1787
- if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
1788
- var n = [null];
1789
- n.push.apply(n, e);
1790
- var o = new (t.bind.apply(t, n))();
1791
- return r && _setPrototypeOf(o, r.prototype), o;
1792
- }
1793
- function _isNativeReflectConstruct() {
1794
- try {
1795
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
1796
- } catch (t) {}
1797
- return (_isNativeReflectConstruct = function () {
1798
- return !!t;
1799
- })();
1800
- }
1801
- function _isNativeFunction(t) {
1802
- try {
1803
- return -1 !== Function.toString.call(t).indexOf("[native code]");
1804
- } catch (e) {
1805
- return "function" == typeof t;
1806
- }
1807
- }
1808
- function _setPrototypeOf(t, e) {
1809
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
1810
- return t.__proto__ = e, t;
1811
- }, _setPrototypeOf(t, e);
1812
- }
1813
- function _getPrototypeOf(t) {
1814
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
1815
- return t.__proto__ || Object.getPrototypeOf(t);
1816
- }, _getPrototypeOf(t);
1817
- }
1818
- function asyncGeneratorStep(t, e, r, n, o, i, a) {
1819
- try {
1820
- var s = t[i](a),
1821
- u = s.value;
1822
- } catch (t) {
1823
- return void r(t);
1824
- }
1825
- s.done ? e(u) : Promise.resolve(u).then(n, o);
1826
- }
1827
- function _asyncToGenerator(t) {
1828
- return function () {
1829
- var e = this,
1830
- r = arguments;
1831
- return new Promise(function (n, o) {
1832
- var i = t.apply(e, r);
1833
- function a(t) {
1834
- asyncGeneratorStep(i, n, o, a, s, "next", t);
1835
- }
1836
- function s(t) {
1837
- asyncGeneratorStep(i, n, o, a, s, "throw", t);
1838
- }
1839
- a(void 0);
1840
- });
685
+ return e.next = 10, Promise.all([G.script(X("candy_".concat(r).concat(n, ".js"), o)), G.styleSheet(K("candy_".concat(r).concat(n, ".css"), o), !0)]);
686
+ case 10:
687
+ return e.abrupt("return");
688
+ case 11:
689
+ throw e.t0;
690
+ case 12:
691
+ return i = "loadEngine_".concat(r), B(a = t.g[i], "window.".concat(i, " must be defined")), k(a, "window.".concat(i, " must be a function")), e.next = 18, a(o);
692
+ case 18:
693
+ case "end":
694
+ return e.stop();
695
+ }
696
+ }, e, null, [[0, 5]]);
697
+ }))).apply(this, arguments);
698
+ }
699
+ var at = {
700
+ start: function (e, r) {
701
+ var n,
702
+ o,
703
+ i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : et,
704
+ a = null,
705
+ s = r.ns,
706
+ u = r.draftId;
707
+ if (new RegExp("^(?:".concat(W.konturDomains.replace(/\./g, "\\.").replace(/\*/g, "[a-z0-9-._]+"), ")$")).test(t.g.location.host) ? W.authorized ? u ? s || (a = new Error("options.ns is required")) : a = new Error("options.draftId is required") : a = new Error("user.unauthenticated") : a = new Error("domain.untrusted"), a) i(a);else {
708
+ var c = null !== (n = r.resourceZone) && void 0 !== n ? n : rt("resourceZone"),
709
+ l = $(function (t) {
710
+ return "v1/ns/".concat(t.ns, "/drafts/").concat(t.draftId, "/client-draft-info");
711
+ }({
712
+ ns: s,
713
+ draftId: u
714
+ }), {
715
+ resourceZone: c
716
+ }),
717
+ f = {
718
+ method: "GET"
1841
719
  };
1842
- }
1843
- __webpack_require__.d(__webpack_exports__, {
1844
- B: function () {
1845
- return diagnoseNetworkError;
1846
- },
1847
- Ef: function () {
1848
- return HttpCode;
1849
- },
1850
- TX: function () {
1851
- return isNetworkError;
1852
- }
1853
- }), module = __webpack_require__.hmd(module), enterModule = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.enterModule : void 0, enterModule && enterModule(module);
1854
- var __signature__ = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default.signature : function (t) {
1855
- return t;
1856
- };
1857
- function diagnoseNetworkError(t) {
1858
- return _diagnoseNetworkError.apply(this, arguments);
1859
- }
1860
- function _diagnoseNetworkError() {
1861
- return (_diagnoseNetworkError = _asyncToGenerator(_regeneratorRuntime().mark(function t(e) {
1862
- var r, n;
1863
- return _regeneratorRuntime().wrap(function (t) {
1864
- for (;;) switch (t.prev = t.next) {
1865
- case 0:
1866
- return t.prev = 0, t.next = 3, fetch(e, {
1867
- method: "GET",
1868
- mode: "cors",
1869
- credentials: "include"
1870
- });
1871
- case 3:
1872
- return r = t.sent, t.abrupt("return", new NetworkError(r));
1873
- case 7:
1874
- return t.prev = 7, t.t0 = t.catch(0), n = t.t0, t.abrupt("return", {
1875
- error: n.message,
1876
- type: n.name,
1877
- stack: n.stack
1878
- });
1879
- case 11:
1880
- case "end":
1881
- return t.stop();
1882
- }
1883
- }, t, null, [[0, 7]]);
1884
- }))).apply(this, arguments);
1885
- }
1886
- var NetworkError = function (_Error) {
1887
- function NetworkError(t) {
1888
- var e;
1889
- return _classCallCheck(this, NetworkError), (e = _callSuper(this, NetworkError, ["Network error occurred."])).status = void 0, e.statusText = void 0, e.ok = void 0, e.headers = void 0, e.status = t.status, e.statusText = t.statusText, e.ok = t.ok, e.headers = Object.fromEntries(t.headers.entries()), e;
1890
- }
1891
- return _inherits(NetworkError, _Error), _createClass(NetworkError, [{
1892
- key: "toString",
1893
- value: function () {
1894
- var t = "".concat(NetworkError.name, ": ").concat(this.message),
1895
- e = " Info: ".concat(JSON.stringify(this));
1896
- return "".concat(t, "\n").concat(e);
1897
- }
1898
- }, {
1899
- key: "__reactstandin__regenerateByEval",
1900
- value: function __reactstandin__regenerateByEval(key, code) {
1901
- this[key] = eval(code);
1902
- }
1903
- }]);
1904
- }(_wrapNativeSuper(Error)),
1905
- HttpCode = function (t) {
1906
- return t[t.NotFound = 404] = "NotFound", t;
1907
- }({}),
1908
- isNetworkError = function (t) {
1909
- return t instanceof NetworkError;
1910
- },
1911
- reactHotLoader,
1912
- leaveModule;
1913
- reactHotLoader = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0, reactHotLoader && (reactHotLoader.register(diagnoseNetworkError, "diagnoseNetworkError", "/builds/forms/candy/Engine/src/Helpers/NetworkError.ts"), reactHotLoader.register(NetworkError, "NetworkError", "/builds/forms/candy/Engine/src/Helpers/NetworkError.ts"), reactHotLoader.register(isNetworkError, "isNetworkError", "/builds/forms/candy/Engine/src/Helpers/NetworkError.ts")), leaveModule = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0, leaveModule && leaveModule(module);
1914
- },
1915
- 226: function (t, e, r) {
1916
- var n, o, i;
1917
- function a() {
1918
- var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
1919
- e = r.g.CF.keformsUrl || "";
1920
- return "".concat(e, "/").concat(t).replace(/([^:])\/{2,}/g, "$1/");
1921
- }
1922
- function s(t, e) {
1923
- if (void 0 === e) return t;
1924
- for (var r = [], n = 0, o = Object.keys(e); n < o.length; n++) {
1925
- var i = o[n],
1926
- a = e[i];
1927
- null != a && r.push("".concat(i, "=").concat(encodeURIComponent(a)));
1928
- }
1929
- return 0 === r.length ? t : t + "?" + r.join("&");
1930
- }
1931
- function u(t, e) {
1932
- return a(s(t, e));
1933
- }
1934
- function c(t, e) {
1935
- return u("static/public/".concat(t), e);
1936
- }
1937
- function l(t, e) {
1938
- return c("scripts/".concat(t), e);
1939
- }
1940
- function f(t, e) {
1941
- return c("styles/".concat(t), e);
1942
- }
1943
- r.d(e, {
1944
- c$: function () {
1945
- return u;
1946
- },
1947
- iV: function () {
1948
- return l;
1949
- },
1950
- wH: function () {
1951
- return f;
1952
- }
1953
- }), t = r.hmd(t), (n = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.enterModule : void 0) && n(t), "undefined" != typeof reactHotLoaderGlobal && reactHotLoaderGlobal.default.signature, (o = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && (o.register(a, "url", "/builds/forms/candy/Engine/src/Helpers/Url.ts"), o.register(s, "combineUrlWithParams", "/builds/forms/candy/Engine/src/Helpers/Url.ts"), o.register(u, "buildUrl", "/builds/forms/candy/Engine/src/Helpers/Url.ts"), o.register(c, "buildPublicUrl", "/builds/forms/candy/Engine/src/Helpers/Url.ts"), o.register(l, "buildPublicScriptUrl", "/builds/forms/candy/Engine/src/Helpers/Url.ts"), o.register(f, "buildPublicStyleUrl", "/builds/forms/candy/Engine/src/Helpers/Url.ts")), (i = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0) && i(t);
720
+ if (null == r.authentication || "browser-credentials-include" === r.authentication) f.credentials = "include";else if ("authSid" in r.authentication && null != r.authentication.authSid) {
721
+ var d;
722
+ f.credentials = "omit", f.headers = null !== (d = f.headers) && void 0 !== d ? d : {}, f.headers.Authorization = "AUTH.SID ".concat(r.authentication.authSid);
723
+ } else f.credentials = "omit";
724
+ (null !== (o = r.fetch) && void 0 !== o ? o : x)(l, f).then(function (t) {
725
+ return t.json();
726
+ }).then(function (n) {
727
+ var o,
728
+ a,
729
+ s,
730
+ u,
731
+ l,
732
+ f = n.gfv,
733
+ d = n.engineVersion,
734
+ h = tt(tt(tt({
735
+ authorized: W.authorized,
736
+ cauldronApiUrl: W.cauldronApiUrl,
737
+ isTestServer: W.isTestServer,
738
+ renderCachingForIE8: W.renderCachingForIE8,
739
+ normalizationOnServer: W.normalizationOnServer,
740
+ normativeUrl: W.normativeUrl,
741
+ ndsPlusApiUrl: W.ndsPlusApiUrl,
742
+ konturDomains: W.konturDomains,
743
+ showNavigationSidebar: null === (o = r.showNavigationSidebar) || void 0 === o || o,
744
+ onRemoveAttachment: r.onRemoveAttachment,
745
+ onClearAttachment: r.onClearAttachment
746
+ }, r), n), {}, {
747
+ gfv: f,
748
+ engineVersion: d,
749
+ feedbackEnabled: null !== (a = r.feedbackEnabled) && void 0 !== a ? a : n.feedbackEnabled,
750
+ isDisabledCleanForm: null !== (s = r.isDisabledCleanForm) && void 0 !== s && s,
751
+ isDisabledCloseButton: null !== (u = r.isDisabledCloseButton) && void 0 !== u && u,
752
+ isDisabledCloseAndSaveButton: null !== (l = r.isDisabledCloseAndSaveButton) && void 0 !== l && l,
753
+ resourceZone: c,
754
+ setUnitItemExtraInfo: r.setUnitItemExtraInfo,
755
+ attachmentUnitItemInfoPath: r.attachmentUnitItemInfoPaths
756
+ });
757
+ (function (t) {
758
+ return nt.apply(this, arguments);
759
+ })({
760
+ gfv: h.gfv,
761
+ engineVersion: h.engineVersion,
762
+ resourceZone: h.resourceZone,
763
+ theme: h.theme
764
+ }).then(function () {
765
+ var n = function (e) {
766
+ if (null != e) return t.g[e] && t.g[e].default;
767
+ }(d);
768
+ !function (e, r, n) {
769
+ var o;
770
+ (null !== (o = t.g.CF.entryPoint[r.gfv]) && void 0 !== o ? o : function (t) {
771
+ throw "string" == typeof t || null == t ? new Error(null != t ? t : "Undefined is not allowed") : t;
772
+ }("Form entry point ".concat(r.gfv, " not found.")))(e, r).then(function (t) {
773
+ var e = t.publicForm;
774
+ n(null, e);
775
+ }).catch(n);
776
+ }(e, tt(tt({}, h), {}, {
777
+ templatesApi: r.templatesApi,
778
+ renderForm: n
779
+ }), i);
780
+ }).catch(function (t) {
781
+ i(new Error("dynamic loading is not supported for gfv ".concat(f, "\n").concat(t)));
782
+ });
783
+ }).catch(i);
1954
784
  }
1955
785
  },
1956
- __webpack_module_cache__ = {};
1957
- function __webpack_require__(t) {
1958
- var e = __webpack_module_cache__[t];
1959
- if (void 0 !== e) return e.exports;
1960
- var r = __webpack_module_cache__[t] = {
1961
- id: t,
1962
- loaded: !1,
1963
- exports: {}
1964
- };
1965
- return __webpack_modules__[t](r, r.exports, __webpack_require__), r.loaded = !0, r.exports;
1966
- }
1967
- __webpack_require__.d = function (t, e) {
1968
- for (var r in e) __webpack_require__.o(e, r) && !__webpack_require__.o(t, r) && Object.defineProperty(t, r, {
1969
- enumerable: !0,
1970
- get: e[r]
1971
- });
1972
- }, __webpack_require__.g = function () {
1973
- if ("object" == typeof globalThis) return globalThis;
1974
- try {
1975
- return this || new Function("return this")();
1976
- } catch (t) {
1977
- if ("object" == typeof window) return window;
1978
- }
1979
- }(), __webpack_require__.hmd = function (t) {
1980
- return (t = Object.create(t)).children || (t.children = []), Object.defineProperty(t, "exports", {
1981
- enumerable: !0,
1982
- set: function () {
1983
- throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: " + t.id);
1984
- }
1985
- }), t;
1986
- }, __webpack_require__.o = function (t, e) {
1987
- return Object.prototype.hasOwnProperty.call(t, e);
786
+ entryPoint: {},
787
+ partialRenderingForIE8: !1,
788
+ keformsUrl: "{keformsUrl}",
789
+ staffServiceUrl: "{staffServiceUrl}",
790
+ picklistUrl: "{picklistApiUrl}",
791
+ nidusUrl: "{nidusApiUrl}",
792
+ fsPrinterUrl: "{fsprinterApiUrl}",
793
+ contractorsApiUrl: "{contractorsApiUrl}"
1988
794
  };
1989
- var __webpack_exports__ = __webpack_require__(591);
1990
- })();
795
+ t.g.CF = at;
796
+ }();
1991
797
  //# sourceMappingURL=client.js.map