data-restructor 3.4.4 → 3.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.auto-changelog-template.hbs +1 -1
- package/.github/workflows/codeql-analysis.yml +6 -6
- package/.github/workflows/continuous-integration.yaml +11 -11
- package/.nvmrc +1 -0
- package/CHANGELOG.md +185 -1
- package/CONTRIBUTING.md +3 -3
- package/README.md +25 -25
- package/coverage/coverage-summary.json +4 -4
- package/coverage/datarestructor.js.html +133 -133
- package/coverage/describedfield.js.html +45 -45
- package/coverage/index.html +6 -6
- package/coverage/templateResolver.js.html +29 -38
- package/devdist/datarestructor-global-all.js +3 -6
- package/devdist/datarestructor-ie-global-all.js +3 -6
- package/devdist/datarestructor-ie.js +75 -13
- package/devdist/datarestructor.js +75 -13
- package/devdist/describedfield-ie.js +72 -7
- package/devdist/describedfield.js +72 -7
- package/devdist/templateResolver-ie.js +75 -13
- package/devdist/templateResolver.js +75 -13
- package/dist/datarestructor-global-all-min.js +1 -1
- package/dist/datarestructor-ie-global-all-min.js +1 -1
- package/dist/datarestructor-ie.js +1 -1
- package/dist/datarestructor-ie.js.map +1 -1
- package/dist/datarestructor.js +1 -1
- package/dist/datarestructor.js.map +1 -1
- package/dist/describedfield-ie.js +1 -1
- package/dist/describedfield-ie.js.map +1 -1
- package/dist/describedfield.js +1 -1
- package/dist/describedfield.js.map +1 -1
- package/dist/templateResolver-ie.js +1 -1
- package/dist/templateResolver-ie.js.map +1 -1
- package/dist/templateResolver.js +1 -1
- package/dist/templateResolver.js.map +1 -1
- package/docs/datarestructor.js.html +1 -1
- package/docs/describedfield.js.html +1 -1
- package/docs/index.html +26 -26
- package/docs/module-datarestructor.DescribedEntryCreator.html +1 -1
- package/docs/module-datarestructor.PropertyStructureDescriptionBuilder.html +1 -1
- package/docs/module-datarestructor.Restructor.html +1 -1
- package/docs/module-datarestructor.Transform.html +1 -1
- package/docs/module-datarestructor.html +1 -1
- package/docs/module-described_field.DescribedDataFieldBuilder.html +1 -1
- package/docs/module-described_field.DescribedDataFieldGroup.html +1 -1
- package/docs/module-described_field.html +1 -1
- package/docs/module-template_resolver.Resolver.html +4 -4
- package/docs/module-template_resolver.html +1 -1
- package/docs/templateResolver.js.html +4 -7
- package/merger-config.json +2 -2
- package/package.json +11 -11
- package/src/js/templateResolver.js +3 -6
|
@@ -6,7 +6,16 @@
|
|
|
6
6
|
// anything defined in a previous bundle is accessed via the
|
|
7
7
|
// orig method which is the require for previous bundles
|
|
8
8
|
|
|
9
|
-
(function (
|
|
9
|
+
(function (
|
|
10
|
+
modules,
|
|
11
|
+
entry,
|
|
12
|
+
mainEntry,
|
|
13
|
+
parcelRequireName,
|
|
14
|
+
externals,
|
|
15
|
+
distDir,
|
|
16
|
+
publicUrl,
|
|
17
|
+
devServer
|
|
18
|
+
) {
|
|
10
19
|
/* eslint-disable no-undef */
|
|
11
20
|
var globalObject =
|
|
12
21
|
typeof globalThis !== 'undefined'
|
|
@@ -25,6 +34,7 @@
|
|
|
25
34
|
typeof globalObject[parcelRequireName] === 'function' &&
|
|
26
35
|
globalObject[parcelRequireName];
|
|
27
36
|
|
|
37
|
+
var importMap = previousRequire.i || {};
|
|
28
38
|
var cache = previousRequire.cache || {};
|
|
29
39
|
// Do not use `require` to prevent Webpack from trying to bundle this call
|
|
30
40
|
var nodeRequire =
|
|
@@ -35,6 +45,9 @@
|
|
|
35
45
|
function newRequire(name, jumped) {
|
|
36
46
|
if (!cache[name]) {
|
|
37
47
|
if (!modules[name]) {
|
|
48
|
+
if (externals[name]) {
|
|
49
|
+
return externals[name];
|
|
50
|
+
}
|
|
38
51
|
// if we cannot find the module within our internal map or
|
|
39
52
|
// cache jump to the current global require ie. the last bundle
|
|
40
53
|
// that was added to the page.
|
|
@@ -81,7 +94,54 @@
|
|
|
81
94
|
|
|
82
95
|
function localRequire(x) {
|
|
83
96
|
var res = localRequire.resolve(x);
|
|
84
|
-
|
|
97
|
+
if (res === false) {
|
|
98
|
+
return {};
|
|
99
|
+
}
|
|
100
|
+
// Synthesize a module to follow re-exports.
|
|
101
|
+
if (Array.isArray(res)) {
|
|
102
|
+
var m = {__esModule: true};
|
|
103
|
+
res.forEach(function (v) {
|
|
104
|
+
var key = v[0];
|
|
105
|
+
var id = v[1];
|
|
106
|
+
var exp = v[2] || v[0];
|
|
107
|
+
var x = newRequire(id);
|
|
108
|
+
if (key === '*') {
|
|
109
|
+
Object.keys(x).forEach(function (key) {
|
|
110
|
+
if (
|
|
111
|
+
key === 'default' ||
|
|
112
|
+
key === '__esModule' ||
|
|
113
|
+
Object.prototype.hasOwnProperty.call(m, key)
|
|
114
|
+
) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
Object.defineProperty(m, key, {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () {
|
|
121
|
+
return x[key];
|
|
122
|
+
},
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
} else if (exp === '*') {
|
|
126
|
+
Object.defineProperty(m, key, {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
value: x,
|
|
129
|
+
});
|
|
130
|
+
} else {
|
|
131
|
+
Object.defineProperty(m, key, {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () {
|
|
134
|
+
if (exp === 'default') {
|
|
135
|
+
return x.__esModule ? x.default : x;
|
|
136
|
+
}
|
|
137
|
+
return x[exp];
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
return m;
|
|
143
|
+
}
|
|
144
|
+
return newRequire(res);
|
|
85
145
|
}
|
|
86
146
|
|
|
87
147
|
function resolve(x) {
|
|
@@ -93,6 +153,7 @@
|
|
|
93
153
|
function Module(moduleName) {
|
|
94
154
|
this.id = moduleName;
|
|
95
155
|
this.bundle = newRequire;
|
|
156
|
+
this.require = nodeRequire;
|
|
96
157
|
this.exports = {};
|
|
97
158
|
}
|
|
98
159
|
|
|
@@ -101,6 +162,10 @@
|
|
|
101
162
|
newRequire.modules = modules;
|
|
102
163
|
newRequire.cache = cache;
|
|
103
164
|
newRequire.parent = previousRequire;
|
|
165
|
+
newRequire.distDir = distDir;
|
|
166
|
+
newRequire.publicUrl = publicUrl;
|
|
167
|
+
newRequire.devServer = devServer;
|
|
168
|
+
newRequire.i = importMap;
|
|
104
169
|
newRequire.register = function (id, exports) {
|
|
105
170
|
modules[id] = [
|
|
106
171
|
function (require, module) {
|
|
@@ -110,6 +175,10 @@
|
|
|
110
175
|
];
|
|
111
176
|
};
|
|
112
177
|
|
|
178
|
+
// Only insert newRequire.load when it is actually used.
|
|
179
|
+
// The code in this file is linted against ES5, so dynamic import is not allowed.
|
|
180
|
+
// INSERT_LOAD_HERE
|
|
181
|
+
|
|
113
182
|
Object.defineProperty(newRequire, 'root', {
|
|
114
183
|
get: function () {
|
|
115
184
|
return globalObject[parcelRequireName];
|
|
@@ -136,10 +205,6 @@
|
|
|
136
205
|
define(function () {
|
|
137
206
|
return mainExports;
|
|
138
207
|
});
|
|
139
|
-
|
|
140
|
-
// <script>
|
|
141
|
-
} else if (globalName) {
|
|
142
|
-
this[globalName] = mainExports;
|
|
143
208
|
}
|
|
144
209
|
}
|
|
145
210
|
})({"6zDs3":[function(require,module,exports,__globalThis) {
|
|
@@ -1315,12 +1380,9 @@ template_resolver.Resolver = function() {
|
|
|
1315
1380
|
*/ this.replaceResolvableFields = function(stringContainingVariables, resolvableFields) {
|
|
1316
1381
|
var replaced = stringContainingVariables;
|
|
1317
1382
|
var propertyNames = Object.keys(resolvableFields);
|
|
1318
|
-
var propertyIndex = 0;
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
for(propertyIndex = 0; propertyIndex < propertyNames.length; propertyIndex += 1){
|
|
1322
|
-
propertyName = propertyNames[propertyIndex];
|
|
1323
|
-
propertyValue = resolvableFields[propertyName];
|
|
1383
|
+
for(var propertyIndex = 0; propertyIndex < propertyNames.length; propertyIndex += 1){
|
|
1384
|
+
var propertyName = propertyNames[propertyIndex];
|
|
1385
|
+
var propertyValue = resolvableFields[propertyName];
|
|
1324
1386
|
replaced = replaced.replace("{{" + propertyName + "}}", propertyValue);
|
|
1325
1387
|
}
|
|
1326
1388
|
return replaced;
|
|
@@ -1645,5 +1707,5 @@ described_field.DescribedDataFieldGroup = function() {
|
|
|
1645
1707
|
return DescribedDataFieldGroup;
|
|
1646
1708
|
}();
|
|
1647
1709
|
|
|
1648
|
-
},{}]},["6zDs3"], "6zDs3", "
|
|
1710
|
+
},{}]},["6zDs3"], "6zDs3", "parcelRequirec1f2", {})
|
|
1649
1711
|
|
|
@@ -6,7 +6,16 @@
|
|
|
6
6
|
// anything defined in a previous bundle is accessed via the
|
|
7
7
|
// orig method which is the require for previous bundles
|
|
8
8
|
|
|
9
|
-
(function (
|
|
9
|
+
(function (
|
|
10
|
+
modules,
|
|
11
|
+
entry,
|
|
12
|
+
mainEntry,
|
|
13
|
+
parcelRequireName,
|
|
14
|
+
externals,
|
|
15
|
+
distDir,
|
|
16
|
+
publicUrl,
|
|
17
|
+
devServer
|
|
18
|
+
) {
|
|
10
19
|
/* eslint-disable no-undef */
|
|
11
20
|
var globalObject =
|
|
12
21
|
typeof globalThis !== 'undefined'
|
|
@@ -25,6 +34,7 @@
|
|
|
25
34
|
typeof globalObject[parcelRequireName] === 'function' &&
|
|
26
35
|
globalObject[parcelRequireName];
|
|
27
36
|
|
|
37
|
+
var importMap = previousRequire.i || {};
|
|
28
38
|
var cache = previousRequire.cache || {};
|
|
29
39
|
// Do not use `require` to prevent Webpack from trying to bundle this call
|
|
30
40
|
var nodeRequire =
|
|
@@ -35,6 +45,9 @@
|
|
|
35
45
|
function newRequire(name, jumped) {
|
|
36
46
|
if (!cache[name]) {
|
|
37
47
|
if (!modules[name]) {
|
|
48
|
+
if (externals[name]) {
|
|
49
|
+
return externals[name];
|
|
50
|
+
}
|
|
38
51
|
// if we cannot find the module within our internal map or
|
|
39
52
|
// cache jump to the current global require ie. the last bundle
|
|
40
53
|
// that was added to the page.
|
|
@@ -81,7 +94,54 @@
|
|
|
81
94
|
|
|
82
95
|
function localRequire(x) {
|
|
83
96
|
var res = localRequire.resolve(x);
|
|
84
|
-
|
|
97
|
+
if (res === false) {
|
|
98
|
+
return {};
|
|
99
|
+
}
|
|
100
|
+
// Synthesize a module to follow re-exports.
|
|
101
|
+
if (Array.isArray(res)) {
|
|
102
|
+
var m = {__esModule: true};
|
|
103
|
+
res.forEach(function (v) {
|
|
104
|
+
var key = v[0];
|
|
105
|
+
var id = v[1];
|
|
106
|
+
var exp = v[2] || v[0];
|
|
107
|
+
var x = newRequire(id);
|
|
108
|
+
if (key === '*') {
|
|
109
|
+
Object.keys(x).forEach(function (key) {
|
|
110
|
+
if (
|
|
111
|
+
key === 'default' ||
|
|
112
|
+
key === '__esModule' ||
|
|
113
|
+
Object.prototype.hasOwnProperty.call(m, key)
|
|
114
|
+
) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
Object.defineProperty(m, key, {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () {
|
|
121
|
+
return x[key];
|
|
122
|
+
},
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
} else if (exp === '*') {
|
|
126
|
+
Object.defineProperty(m, key, {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
value: x,
|
|
129
|
+
});
|
|
130
|
+
} else {
|
|
131
|
+
Object.defineProperty(m, key, {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () {
|
|
134
|
+
if (exp === 'default') {
|
|
135
|
+
return x.__esModule ? x.default : x;
|
|
136
|
+
}
|
|
137
|
+
return x[exp];
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
return m;
|
|
143
|
+
}
|
|
144
|
+
return newRequire(res);
|
|
85
145
|
}
|
|
86
146
|
|
|
87
147
|
function resolve(x) {
|
|
@@ -93,6 +153,7 @@
|
|
|
93
153
|
function Module(moduleName) {
|
|
94
154
|
this.id = moduleName;
|
|
95
155
|
this.bundle = newRequire;
|
|
156
|
+
this.require = nodeRequire;
|
|
96
157
|
this.exports = {};
|
|
97
158
|
}
|
|
98
159
|
|
|
@@ -101,6 +162,10 @@
|
|
|
101
162
|
newRequire.modules = modules;
|
|
102
163
|
newRequire.cache = cache;
|
|
103
164
|
newRequire.parent = previousRequire;
|
|
165
|
+
newRequire.distDir = distDir;
|
|
166
|
+
newRequire.publicUrl = publicUrl;
|
|
167
|
+
newRequire.devServer = devServer;
|
|
168
|
+
newRequire.i = importMap;
|
|
104
169
|
newRequire.register = function (id, exports) {
|
|
105
170
|
modules[id] = [
|
|
106
171
|
function (require, module) {
|
|
@@ -110,6 +175,10 @@
|
|
|
110
175
|
];
|
|
111
176
|
};
|
|
112
177
|
|
|
178
|
+
// Only insert newRequire.load when it is actually used.
|
|
179
|
+
// The code in this file is linted against ES5, so dynamic import is not allowed.
|
|
180
|
+
// INSERT_LOAD_HERE
|
|
181
|
+
|
|
113
182
|
Object.defineProperty(newRequire, 'root', {
|
|
114
183
|
get: function () {
|
|
115
184
|
return globalObject[parcelRequireName];
|
|
@@ -136,10 +205,6 @@
|
|
|
136
205
|
define(function () {
|
|
137
206
|
return mainExports;
|
|
138
207
|
});
|
|
139
|
-
|
|
140
|
-
// <script>
|
|
141
|
-
} else if (globalName) {
|
|
142
|
-
this[globalName] = mainExports;
|
|
143
208
|
}
|
|
144
209
|
}
|
|
145
210
|
})({"f0m8P":[function(require,module,exports,__globalThis) {
|
|
@@ -407,5 +472,5 @@ described_field.DescribedDataFieldGroup = function() {
|
|
|
407
472
|
return DescribedDataFieldGroup;
|
|
408
473
|
}();
|
|
409
474
|
|
|
410
|
-
},{}]},["f0m8P"], "f0m8P", "
|
|
475
|
+
},{}]},["f0m8P"], "f0m8P", "parcelRequirec1f2", {})
|
|
411
476
|
|
|
@@ -6,7 +6,16 @@
|
|
|
6
6
|
// anything defined in a previous bundle is accessed via the
|
|
7
7
|
// orig method which is the require for previous bundles
|
|
8
8
|
|
|
9
|
-
(function (
|
|
9
|
+
(function (
|
|
10
|
+
modules,
|
|
11
|
+
entry,
|
|
12
|
+
mainEntry,
|
|
13
|
+
parcelRequireName,
|
|
14
|
+
externals,
|
|
15
|
+
distDir,
|
|
16
|
+
publicUrl,
|
|
17
|
+
devServer
|
|
18
|
+
) {
|
|
10
19
|
/* eslint-disable no-undef */
|
|
11
20
|
var globalObject =
|
|
12
21
|
typeof globalThis !== 'undefined'
|
|
@@ -25,6 +34,7 @@
|
|
|
25
34
|
typeof globalObject[parcelRequireName] === 'function' &&
|
|
26
35
|
globalObject[parcelRequireName];
|
|
27
36
|
|
|
37
|
+
var importMap = previousRequire.i || {};
|
|
28
38
|
var cache = previousRequire.cache || {};
|
|
29
39
|
// Do not use `require` to prevent Webpack from trying to bundle this call
|
|
30
40
|
var nodeRequire =
|
|
@@ -35,6 +45,9 @@
|
|
|
35
45
|
function newRequire(name, jumped) {
|
|
36
46
|
if (!cache[name]) {
|
|
37
47
|
if (!modules[name]) {
|
|
48
|
+
if (externals[name]) {
|
|
49
|
+
return externals[name];
|
|
50
|
+
}
|
|
38
51
|
// if we cannot find the module within our internal map or
|
|
39
52
|
// cache jump to the current global require ie. the last bundle
|
|
40
53
|
// that was added to the page.
|
|
@@ -81,7 +94,54 @@
|
|
|
81
94
|
|
|
82
95
|
function localRequire(x) {
|
|
83
96
|
var res = localRequire.resolve(x);
|
|
84
|
-
|
|
97
|
+
if (res === false) {
|
|
98
|
+
return {};
|
|
99
|
+
}
|
|
100
|
+
// Synthesize a module to follow re-exports.
|
|
101
|
+
if (Array.isArray(res)) {
|
|
102
|
+
var m = {__esModule: true};
|
|
103
|
+
res.forEach(function (v) {
|
|
104
|
+
var key = v[0];
|
|
105
|
+
var id = v[1];
|
|
106
|
+
var exp = v[2] || v[0];
|
|
107
|
+
var x = newRequire(id);
|
|
108
|
+
if (key === '*') {
|
|
109
|
+
Object.keys(x).forEach(function (key) {
|
|
110
|
+
if (
|
|
111
|
+
key === 'default' ||
|
|
112
|
+
key === '__esModule' ||
|
|
113
|
+
Object.prototype.hasOwnProperty.call(m, key)
|
|
114
|
+
) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
Object.defineProperty(m, key, {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () {
|
|
121
|
+
return x[key];
|
|
122
|
+
},
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
} else if (exp === '*') {
|
|
126
|
+
Object.defineProperty(m, key, {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
value: x,
|
|
129
|
+
});
|
|
130
|
+
} else {
|
|
131
|
+
Object.defineProperty(m, key, {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () {
|
|
134
|
+
if (exp === 'default') {
|
|
135
|
+
return x.__esModule ? x.default : x;
|
|
136
|
+
}
|
|
137
|
+
return x[exp];
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
return m;
|
|
143
|
+
}
|
|
144
|
+
return newRequire(res);
|
|
85
145
|
}
|
|
86
146
|
|
|
87
147
|
function resolve(x) {
|
|
@@ -93,6 +153,7 @@
|
|
|
93
153
|
function Module(moduleName) {
|
|
94
154
|
this.id = moduleName;
|
|
95
155
|
this.bundle = newRequire;
|
|
156
|
+
this.require = nodeRequire;
|
|
96
157
|
this.exports = {};
|
|
97
158
|
}
|
|
98
159
|
|
|
@@ -101,6 +162,10 @@
|
|
|
101
162
|
newRequire.modules = modules;
|
|
102
163
|
newRequire.cache = cache;
|
|
103
164
|
newRequire.parent = previousRequire;
|
|
165
|
+
newRequire.distDir = distDir;
|
|
166
|
+
newRequire.publicUrl = publicUrl;
|
|
167
|
+
newRequire.devServer = devServer;
|
|
168
|
+
newRequire.i = importMap;
|
|
104
169
|
newRequire.register = function (id, exports) {
|
|
105
170
|
modules[id] = [
|
|
106
171
|
function (require, module) {
|
|
@@ -110,6 +175,10 @@
|
|
|
110
175
|
];
|
|
111
176
|
};
|
|
112
177
|
|
|
178
|
+
// Only insert newRequire.load when it is actually used.
|
|
179
|
+
// The code in this file is linted against ES5, so dynamic import is not allowed.
|
|
180
|
+
// INSERT_LOAD_HERE
|
|
181
|
+
|
|
113
182
|
Object.defineProperty(newRequire, 'root', {
|
|
114
183
|
get: function () {
|
|
115
184
|
return globalObject[parcelRequireName];
|
|
@@ -136,10 +205,6 @@
|
|
|
136
205
|
define(function () {
|
|
137
206
|
return mainExports;
|
|
138
207
|
});
|
|
139
|
-
|
|
140
|
-
// <script>
|
|
141
|
-
} else if (globalName) {
|
|
142
|
-
this[globalName] = mainExports;
|
|
143
208
|
}
|
|
144
209
|
}
|
|
145
210
|
})({"chJzc":[function(require,module,exports,__globalThis) {
|
|
@@ -400,5 +465,5 @@ described_field.DescribedDataFieldGroup = function() {
|
|
|
400
465
|
return DescribedDataFieldGroup;
|
|
401
466
|
}();
|
|
402
467
|
|
|
403
|
-
},{}]},["chJzc"], "chJzc", "
|
|
468
|
+
},{}]},["chJzc"], "chJzc", "parcelRequirec1f2", {})
|
|
404
469
|
|
|
@@ -6,7 +6,16 @@
|
|
|
6
6
|
// anything defined in a previous bundle is accessed via the
|
|
7
7
|
// orig method which is the require for previous bundles
|
|
8
8
|
|
|
9
|
-
(function (
|
|
9
|
+
(function (
|
|
10
|
+
modules,
|
|
11
|
+
entry,
|
|
12
|
+
mainEntry,
|
|
13
|
+
parcelRequireName,
|
|
14
|
+
externals,
|
|
15
|
+
distDir,
|
|
16
|
+
publicUrl,
|
|
17
|
+
devServer
|
|
18
|
+
) {
|
|
10
19
|
/* eslint-disable no-undef */
|
|
11
20
|
var globalObject =
|
|
12
21
|
typeof globalThis !== 'undefined'
|
|
@@ -25,6 +34,7 @@
|
|
|
25
34
|
typeof globalObject[parcelRequireName] === 'function' &&
|
|
26
35
|
globalObject[parcelRequireName];
|
|
27
36
|
|
|
37
|
+
var importMap = previousRequire.i || {};
|
|
28
38
|
var cache = previousRequire.cache || {};
|
|
29
39
|
// Do not use `require` to prevent Webpack from trying to bundle this call
|
|
30
40
|
var nodeRequire =
|
|
@@ -35,6 +45,9 @@
|
|
|
35
45
|
function newRequire(name, jumped) {
|
|
36
46
|
if (!cache[name]) {
|
|
37
47
|
if (!modules[name]) {
|
|
48
|
+
if (externals[name]) {
|
|
49
|
+
return externals[name];
|
|
50
|
+
}
|
|
38
51
|
// if we cannot find the module within our internal map or
|
|
39
52
|
// cache jump to the current global require ie. the last bundle
|
|
40
53
|
// that was added to the page.
|
|
@@ -81,7 +94,54 @@
|
|
|
81
94
|
|
|
82
95
|
function localRequire(x) {
|
|
83
96
|
var res = localRequire.resolve(x);
|
|
84
|
-
|
|
97
|
+
if (res === false) {
|
|
98
|
+
return {};
|
|
99
|
+
}
|
|
100
|
+
// Synthesize a module to follow re-exports.
|
|
101
|
+
if (Array.isArray(res)) {
|
|
102
|
+
var m = {__esModule: true};
|
|
103
|
+
res.forEach(function (v) {
|
|
104
|
+
var key = v[0];
|
|
105
|
+
var id = v[1];
|
|
106
|
+
var exp = v[2] || v[0];
|
|
107
|
+
var x = newRequire(id);
|
|
108
|
+
if (key === '*') {
|
|
109
|
+
Object.keys(x).forEach(function (key) {
|
|
110
|
+
if (
|
|
111
|
+
key === 'default' ||
|
|
112
|
+
key === '__esModule' ||
|
|
113
|
+
Object.prototype.hasOwnProperty.call(m, key)
|
|
114
|
+
) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
Object.defineProperty(m, key, {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () {
|
|
121
|
+
return x[key];
|
|
122
|
+
},
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
} else if (exp === '*') {
|
|
126
|
+
Object.defineProperty(m, key, {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
value: x,
|
|
129
|
+
});
|
|
130
|
+
} else {
|
|
131
|
+
Object.defineProperty(m, key, {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () {
|
|
134
|
+
if (exp === 'default') {
|
|
135
|
+
return x.__esModule ? x.default : x;
|
|
136
|
+
}
|
|
137
|
+
return x[exp];
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
return m;
|
|
143
|
+
}
|
|
144
|
+
return newRequire(res);
|
|
85
145
|
}
|
|
86
146
|
|
|
87
147
|
function resolve(x) {
|
|
@@ -93,6 +153,7 @@
|
|
|
93
153
|
function Module(moduleName) {
|
|
94
154
|
this.id = moduleName;
|
|
95
155
|
this.bundle = newRequire;
|
|
156
|
+
this.require = nodeRequire;
|
|
96
157
|
this.exports = {};
|
|
97
158
|
}
|
|
98
159
|
|
|
@@ -101,6 +162,10 @@
|
|
|
101
162
|
newRequire.modules = modules;
|
|
102
163
|
newRequire.cache = cache;
|
|
103
164
|
newRequire.parent = previousRequire;
|
|
165
|
+
newRequire.distDir = distDir;
|
|
166
|
+
newRequire.publicUrl = publicUrl;
|
|
167
|
+
newRequire.devServer = devServer;
|
|
168
|
+
newRequire.i = importMap;
|
|
104
169
|
newRequire.register = function (id, exports) {
|
|
105
170
|
modules[id] = [
|
|
106
171
|
function (require, module) {
|
|
@@ -110,6 +175,10 @@
|
|
|
110
175
|
];
|
|
111
176
|
};
|
|
112
177
|
|
|
178
|
+
// Only insert newRequire.load when it is actually used.
|
|
179
|
+
// The code in this file is linted against ES5, so dynamic import is not allowed.
|
|
180
|
+
// INSERT_LOAD_HERE
|
|
181
|
+
|
|
113
182
|
Object.defineProperty(newRequire, 'root', {
|
|
114
183
|
get: function () {
|
|
115
184
|
return globalObject[parcelRequireName];
|
|
@@ -136,10 +205,6 @@
|
|
|
136
205
|
define(function () {
|
|
137
206
|
return mainExports;
|
|
138
207
|
});
|
|
139
|
-
|
|
140
|
-
// <script>
|
|
141
|
-
} else if (globalName) {
|
|
142
|
-
this[globalName] = mainExports;
|
|
143
208
|
}
|
|
144
209
|
}
|
|
145
210
|
})({"btK3Z":[function(require,module,exports,__globalThis) {
|
|
@@ -251,12 +316,9 @@ template_resolver.Resolver = function() {
|
|
|
251
316
|
*/ this.replaceResolvableFields = function(stringContainingVariables, resolvableFields) {
|
|
252
317
|
var replaced = stringContainingVariables;
|
|
253
318
|
var propertyNames = Object.keys(resolvableFields);
|
|
254
|
-
var propertyIndex = 0;
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
for(propertyIndex = 0; propertyIndex < propertyNames.length; propertyIndex += 1){
|
|
258
|
-
propertyName = propertyNames[propertyIndex];
|
|
259
|
-
propertyValue = resolvableFields[propertyName];
|
|
319
|
+
for(var propertyIndex = 0; propertyIndex < propertyNames.length; propertyIndex += 1){
|
|
320
|
+
var propertyName = propertyNames[propertyIndex];
|
|
321
|
+
var propertyValue = resolvableFields[propertyName];
|
|
260
322
|
replaced = replaced.replace("{{" + propertyName + "}}", propertyValue);
|
|
261
323
|
}
|
|
262
324
|
return replaced;
|
|
@@ -379,5 +441,5 @@ template_resolver.Resolver = function() {
|
|
|
379
441
|
return result;
|
|
380
442
|
};
|
|
381
443
|
|
|
382
|
-
},{}]},["btK3Z"], "btK3Z", "
|
|
444
|
+
},{}]},["btK3Z"], "btK3Z", "parcelRequirec1f2", {})
|
|
383
445
|
|