data-restructor 3.4.0 → 3.4.1
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 +9 -0
- package/.auto-changelog-template.hbs +36 -0
- package/CHANGELOG.md +114 -31
- package/Commands.md +1 -0
- package/README.md +5 -0
- package/coverage/coverage-summary.json +3 -3
- package/coverage/datarestructor.js.html +133 -133
- package/coverage/describedfield.js.html +45 -45
- package/coverage/index.html +1 -1
- package/coverage/templateResolver.js.html +26 -26
- package/devdist/datarestructor-ie.js +53 -58
- package/devdist/datarestructor.js +35 -42
- package/devdist/describedfield-ie.js +10 -12
- package/devdist/describedfield.js +8 -10
- package/devdist/templateResolver-ie.js +22 -26
- package/devdist/templateResolver.js +11 -16
- 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 +6 -1
- package/docs/module-datarestructor.DescribedEntryCreator.html +94 -94
- package/docs/module-datarestructor.PropertyStructureDescriptionBuilder.html +1 -1
- package/docs/module-datarestructor.Restructor.html +1 -1
- package/docs/module-datarestructor.Transform.html +605 -605
- package/docs/module-datarestructor.html +959 -995
- 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 -37
- package/docs/module-template_resolver.Resolver.html +167 -167
- package/docs/module-template_resolver.html +1 -37
- package/docs/templateResolver.js.html +1 -1
- package/package.json +10 -6
- package/renovate.json +0 -6
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
this[globalName] = mainExports;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
})({"
|
|
145
|
+
})({"jZ3Ya":[function(require,module,exports) {
|
|
146
146
|
/**
|
|
147
147
|
* @file datarestructor transforms parsed JSON objects into a uniform data structure
|
|
148
148
|
* @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
|
|
@@ -150,8 +150,7 @@
|
|
|
150
150
|
*/ "use strict";
|
|
151
151
|
var module = datarestructorInternalCreateIfNotExists(module); // Fallback for vanilla js without modules
|
|
152
152
|
function datarestructorInternalCreateIfNotExists(objectToCheck) {
|
|
153
|
-
return objectToCheck || {
|
|
154
|
-
};
|
|
153
|
+
return objectToCheck || {};
|
|
155
154
|
}
|
|
156
155
|
/**
|
|
157
156
|
* datarestructor namespace and module declaration.
|
|
@@ -166,12 +165,11 @@ function datarestructorInternalCreateIfNotExists(objectToCheck) {
|
|
|
166
165
|
* - group
|
|
167
166
|
* - flatten again
|
|
168
167
|
* @module datarestructor
|
|
169
|
-
*/ var datarestructor = module.exports = {
|
|
170
|
-
}; // Export module for npm...
|
|
168
|
+
*/ var datarestructor = module.exports = {}; // Export module for npm...
|
|
171
169
|
datarestructor.internalCreateIfNotExists = datarestructorInternalCreateIfNotExists;
|
|
172
|
-
var internal_object_tools = internal_object_tools || require("
|
|
173
|
-
var template_resolver = template_resolver || require("
|
|
174
|
-
var described_field = described_field || require("
|
|
170
|
+
var internal_object_tools = internal_object_tools || require("403576eaef4c3d50"); // supports vanilla js & npm
|
|
171
|
+
var template_resolver = template_resolver || require("f62fb3394fa418f2"); // supports vanilla js & npm
|
|
172
|
+
var described_field = described_field || require("4388868734c1e0a7"); // supports vanilla js & npm
|
|
175
173
|
/**
|
|
176
174
|
* Takes the full qualified original property name and extracts a simple name out of it.
|
|
177
175
|
*
|
|
@@ -197,7 +195,8 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
197
195
|
* @property {string} groupDestinationPattern - Pattern that describes where the group should be moved to. Default=""=Group will not be moved. A pattern may contain variables in double curly brackets {{variable}}.
|
|
198
196
|
* @property {string} groupDestinationName - (default=groupName) Name of the group when it had been moved to the destination.
|
|
199
197
|
* @property {string} deduplicationPattern - Pattern to use to remove duplicate entries. A pattern may contain variables in double curly brackets {{variable}}.
|
|
200
|
-
*/ datarestructor.PropertyStructureDescriptionBuilder =
|
|
198
|
+
*/ datarestructor.PropertyStructureDescriptionBuilder = function() {
|
|
199
|
+
"use strict";
|
|
201
200
|
/**
|
|
202
201
|
* Builder for a {@link PropertyStructureDescription}.
|
|
203
202
|
* @constructs PropertyStructureDescriptionBuilder
|
|
@@ -522,7 +521,7 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
522
521
|
return typeof value === "string" && value != null && value != "";
|
|
523
522
|
}
|
|
524
523
|
return PropertyStructureDescription;
|
|
525
|
-
}
|
|
524
|
+
}();
|
|
526
525
|
/**
|
|
527
526
|
* Adds a group item/entry to the {@link module:datarestructor.DescribedEntry}.
|
|
528
527
|
*
|
|
@@ -564,7 +563,8 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
564
563
|
* @callback module:datarestructor.stringFieldOfDescribedEntryFunction
|
|
565
564
|
* @param {module:datarestructor.DescribedEntry} entry described entry that contains the field that should be returned
|
|
566
565
|
* @returns {String} field value
|
|
567
|
-
*/ datarestructor.DescribedEntryCreator =
|
|
566
|
+
*/ datarestructor.DescribedEntryCreator = function() {
|
|
567
|
+
"use strict";
|
|
568
568
|
var removeArrayBracketsRegEx = new RegExp("\\[\\d+\\]", "gi");
|
|
569
569
|
/**
|
|
570
570
|
* Creates a {@link module:datarestructor.DescribedEntry}.
|
|
@@ -661,20 +661,21 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
661
661
|
pointDelimited += match[1];
|
|
662
662
|
numberArray.push(parseInt(match[1]));
|
|
663
663
|
}
|
|
664
|
-
}while (match)
|
|
664
|
+
}while (match);
|
|
665
665
|
return {
|
|
666
666
|
pointDelimited: pointDelimited,
|
|
667
667
|
numberArray: numberArray
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
670
|
return DescribedEntry;
|
|
671
|
-
}
|
|
671
|
+
}();
|
|
672
672
|
/**
|
|
673
673
|
* @typedef {Object} module:datarestructor.TransformConfig
|
|
674
674
|
* @property {boolean} debugMode enables/disables detailed logging
|
|
675
675
|
* @property {number} [maxRecursionDepth=8] Maximum recursion depth
|
|
676
676
|
* @property {number} [removeDuplicationAboveRecursionDepth=1] Duplications will be removed above the given recursion depth value and remain unchanged below it.
|
|
677
|
-
*/ datarestructor.Transform =
|
|
677
|
+
*/ datarestructor.Transform = function() {
|
|
678
|
+
"use strict";
|
|
678
679
|
/**
|
|
679
680
|
* Main class for the data transformation.
|
|
680
681
|
* @param {module:datarestructor.PropertyStructureDescription[]} descriptions
|
|
@@ -1160,7 +1161,7 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
1160
1161
|
}
|
|
1161
1162
|
}
|
|
1162
1163
|
return Transform;
|
|
1163
|
-
}
|
|
1164
|
+
}();
|
|
1164
1165
|
/**
|
|
1165
1166
|
* Main fassade for the data restructor as static function(s).
|
|
1166
1167
|
*
|
|
@@ -1170,8 +1171,7 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
1170
1171
|
* allDescriptions.push(detailsDescription());
|
|
1171
1172
|
* var result = datarestructor.Restructor.processJsonUsingDescriptions(jsonData, allDescriptions);
|
|
1172
1173
|
* @namespace module:datarestructor.Restructor
|
|
1173
|
-
*/ datarestructor.Restructor = {
|
|
1174
|
-
};
|
|
1174
|
+
*/ datarestructor.Restructor = {};
|
|
1175
1175
|
/**
|
|
1176
1176
|
* Static fassade function for the "Assembly line", that takes the jsonData and processes it using all given descriptions in their given order.
|
|
1177
1177
|
* @param {object} jsonData - parsed JSON data or any other data object
|
|
@@ -1186,19 +1186,17 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
1186
1186
|
return restructor.processJson(jsonData);
|
|
1187
1187
|
};
|
|
1188
1188
|
|
|
1189
|
-
},{"
|
|
1189
|
+
},{"403576eaef4c3d50":"i4dBQ","f62fb3394fa418f2":"5qyN0","4388868734c1e0a7":"g0GVY"}],"i4dBQ":[function(require,module,exports) {
|
|
1190
1190
|
"use strict";
|
|
1191
1191
|
/**
|
|
1192
1192
|
* @fileOverview Modded (compatibility, recursion depth) version of: https://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objectss
|
|
1193
1193
|
* @version ${project.version}
|
|
1194
1194
|
* @see {@link https://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objectss|stackoverflow flatten nested json objects}
|
|
1195
|
-
*/ var module = module || {
|
|
1196
|
-
}; // Fallback for vanilla js without modules
|
|
1195
|
+
*/ var module = module || {}; // Fallback for vanilla js without modules
|
|
1197
1196
|
/**
|
|
1198
1197
|
* internal_object_tools. Not meant to be used outside this repository.
|
|
1199
1198
|
* @default {}
|
|
1200
|
-
*/ var internal_object_tools = module.exports = {
|
|
1201
|
-
}; // Export module for npm...
|
|
1199
|
+
*/ var internal_object_tools = module.exports = {}; // Export module for npm...
|
|
1202
1200
|
/**
|
|
1203
1201
|
* @typedef {Object} NameValuePair
|
|
1204
1202
|
* @property {string} name - point separated names of the flattened main and sub properties, e.g. "responses[2].hits.hits[4]._source.name".
|
|
@@ -1244,7 +1242,7 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
1244
1242
|
return result;
|
|
1245
1243
|
};
|
|
1246
1244
|
|
|
1247
|
-
},{}],"
|
|
1245
|
+
},{}],"5qyN0":[function(require,module,exports) {
|
|
1248
1246
|
/**
|
|
1249
1247
|
* @file Provides a simple template resolver, that replaces variables in double curly brackets with the values of a given object.
|
|
1250
1248
|
* @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
|
|
@@ -1253,17 +1251,15 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
1253
1251
|
*/ "use strict";
|
|
1254
1252
|
var module = templateResolverInternalCreateIfNotExists(module); // Fallback for vanilla js without modules
|
|
1255
1253
|
function templateResolverInternalCreateIfNotExists(objectToCheck) {
|
|
1256
|
-
return objectToCheck || {
|
|
1257
|
-
};
|
|
1254
|
+
return objectToCheck || {};
|
|
1258
1255
|
}
|
|
1259
1256
|
/**
|
|
1260
1257
|
* Provides a simple template resolver, that replaces variables in double curly brackets with the values of a given object.
|
|
1261
1258
|
* @module template_resolver
|
|
1262
|
-
*/ var template_resolver = module.exports = {
|
|
1263
|
-
}; // Export module for npm...
|
|
1259
|
+
*/ var template_resolver = module.exports = {}; // Export module for npm...
|
|
1264
1260
|
template_resolver.internalCreateIfNotExists = templateResolverInternalCreateIfNotExists;
|
|
1265
|
-
var internal_object_tools = internal_object_tools || require("
|
|
1266
|
-
template_resolver.Resolver =
|
|
1261
|
+
var internal_object_tools = internal_object_tools || require("2bc8fdaaf35dfa57"); // supports vanilla js & npm
|
|
1262
|
+
template_resolver.Resolver = function() {
|
|
1267
1263
|
var removeArrayBracketsRegEx = new RegExp("\\[\\d+\\]", "gi");
|
|
1268
1264
|
/**
|
|
1269
1265
|
* Resolver. Is used inside this repository. It could also be used outside.
|
|
@@ -1301,8 +1297,7 @@ template_resolver.Resolver = (function() {
|
|
|
1301
1297
|
* @returns {object} object with resolvable field names and their values.
|
|
1302
1298
|
* @public
|
|
1303
1299
|
*/ this.resolvableFieldsOfAll = function() {
|
|
1304
|
-
var map = {
|
|
1305
|
-
};
|
|
1300
|
+
var map = {};
|
|
1306
1301
|
var ignoreInternalFields = function(propertyName) {
|
|
1307
1302
|
return propertyName.indexOf("_") !== 0 && propertyName.indexOf("._") < 0;
|
|
1308
1303
|
};
|
|
@@ -1390,9 +1385,9 @@ template_resolver.Resolver = (function() {
|
|
|
1390
1385
|
return mapObject;
|
|
1391
1386
|
}
|
|
1392
1387
|
return Resolver;
|
|
1393
|
-
}
|
|
1388
|
+
}();
|
|
1394
1389
|
|
|
1395
|
-
},{"
|
|
1390
|
+
},{"2bc8fdaaf35dfa57":"i4dBQ"}],"g0GVY":[function(require,module,exports) {
|
|
1396
1391
|
/**
|
|
1397
1392
|
* @file Describes a data field of the restructured data.
|
|
1398
1393
|
* @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
|
|
@@ -1401,14 +1396,12 @@ template_resolver.Resolver = (function() {
|
|
|
1401
1396
|
*/ "use strict";
|
|
1402
1397
|
var module = describedFieldInternalCreateIfNotExists(module); // Fallback for vanilla js without modules
|
|
1403
1398
|
function describedFieldInternalCreateIfNotExists(objectToCheck) {
|
|
1404
|
-
return objectToCheck || {
|
|
1405
|
-
};
|
|
1399
|
+
return objectToCheck || {};
|
|
1406
1400
|
}
|
|
1407
1401
|
/**
|
|
1408
1402
|
* Describes a data field of the restructured data.
|
|
1409
1403
|
* @module described_field
|
|
1410
|
-
*/ var described_field = module.exports = {
|
|
1411
|
-
}; // Export module for npm...
|
|
1404
|
+
*/ var described_field = module.exports = {}; // Export module for npm...
|
|
1412
1405
|
described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExists;
|
|
1413
1406
|
/**
|
|
1414
1407
|
* Describes a field of the restructured data.
|
|
@@ -1425,7 +1418,7 @@ described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExi
|
|
|
1425
1418
|
* @property {string} fieldName - field name
|
|
1426
1419
|
* @property {{*}} value - content of the field
|
|
1427
1420
|
* @property {module:described_field.DescribedDataField[]} [couldBeAnyCustomGroupName] any number of groups attached to the field each containing multiple fields
|
|
1428
|
-
*/ described_field.DescribedDataFieldBuilder =
|
|
1421
|
+
*/ described_field.DescribedDataFieldBuilder = function() {
|
|
1429
1422
|
/**
|
|
1430
1423
|
* Builds a {@link module:described_field.DescribedDataField}.
|
|
1431
1424
|
* DescribedDataField is the main element of the restructured data and therefore considered "public".
|
|
@@ -1595,7 +1588,7 @@ described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExi
|
|
|
1595
1588
|
return value === undefined || value === null ? defaultValue : value;
|
|
1596
1589
|
}
|
|
1597
1590
|
return DescribedDataFieldBuilder;
|
|
1598
|
-
}
|
|
1591
|
+
}();
|
|
1599
1592
|
/**
|
|
1600
1593
|
* Creates a new described data field with all properties of the original one except for dynamically added groups.
|
|
1601
1594
|
* @param {module:described_field.DescribedDataField} describedDataField
|
|
@@ -1604,7 +1597,7 @@ described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExi
|
|
|
1604
1597
|
*/ described_field.copyWithoutGroups = function(describedDataField) {
|
|
1605
1598
|
return new described_field.DescribedDataFieldBuilder().fromDescribedDataField(describedDataField).groupNames([]).build();
|
|
1606
1599
|
};
|
|
1607
|
-
described_field.DescribedDataFieldGroup =
|
|
1600
|
+
described_field.DescribedDataFieldGroup = function() {
|
|
1608
1601
|
/**
|
|
1609
1602
|
* Adds groups to {@link module:described_field.DescribedDataField}s. These groups are dynamically added properties
|
|
1610
1603
|
* that contain an array of sub fields of the same type {@link module:described_field.DescribedDataField}s.
|
|
@@ -1650,7 +1643,7 @@ described_field.DescribedDataFieldGroup = (function() {
|
|
|
1650
1643
|
};
|
|
1651
1644
|
}
|
|
1652
1645
|
return DescribedDataFieldGroup;
|
|
1653
|
-
}
|
|
1646
|
+
}();
|
|
1654
1647
|
|
|
1655
|
-
},{}]},["
|
|
1648
|
+
},{}]},["jZ3Ya"], "jZ3Ya", "parcelRequirec1f2")
|
|
1656
1649
|
|
|
@@ -142,14 +142,14 @@
|
|
|
142
142
|
this[globalName] = mainExports;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
})({"
|
|
145
|
+
})({"eeb0L":[function(require,module,exports) {
|
|
146
146
|
"use strict";
|
|
147
|
-
var described_field = require("
|
|
147
|
+
var described_field = require("49c22594fe0218d9");
|
|
148
148
|
module.exports = {
|
|
149
149
|
described_field: described_field
|
|
150
150
|
};
|
|
151
151
|
|
|
152
|
-
},{"
|
|
152
|
+
},{"49c22594fe0218d9":"g0GVY"}],"g0GVY":[function(require,module,exports) {
|
|
153
153
|
/**
|
|
154
154
|
* @file Describes a data field of the restructured data.
|
|
155
155
|
* @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
|
|
@@ -158,14 +158,12 @@ module.exports = {
|
|
|
158
158
|
*/ "use strict";
|
|
159
159
|
var module = describedFieldInternalCreateIfNotExists(module); // Fallback for vanilla js without modules
|
|
160
160
|
function describedFieldInternalCreateIfNotExists(objectToCheck) {
|
|
161
|
-
return objectToCheck || {
|
|
162
|
-
};
|
|
161
|
+
return objectToCheck || {};
|
|
163
162
|
}
|
|
164
163
|
/**
|
|
165
164
|
* Describes a data field of the restructured data.
|
|
166
165
|
* @module described_field
|
|
167
|
-
*/ var described_field = module.exports = {
|
|
168
|
-
}; // Export module for npm...
|
|
166
|
+
*/ var described_field = module.exports = {}; // Export module for npm...
|
|
169
167
|
described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExists;
|
|
170
168
|
/**
|
|
171
169
|
* Describes a field of the restructured data.
|
|
@@ -182,7 +180,7 @@ described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExi
|
|
|
182
180
|
* @property {string} fieldName - field name
|
|
183
181
|
* @property {{*}} value - content of the field
|
|
184
182
|
* @property {module:described_field.DescribedDataField[]} [couldBeAnyCustomGroupName] any number of groups attached to the field each containing multiple fields
|
|
185
|
-
*/ described_field.DescribedDataFieldBuilder =
|
|
183
|
+
*/ described_field.DescribedDataFieldBuilder = function() {
|
|
186
184
|
/**
|
|
187
185
|
* Builds a {@link module:described_field.DescribedDataField}.
|
|
188
186
|
* DescribedDataField is the main element of the restructured data and therefore considered "public".
|
|
@@ -352,7 +350,7 @@ described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExi
|
|
|
352
350
|
return value === undefined || value === null ? defaultValue : value;
|
|
353
351
|
}
|
|
354
352
|
return DescribedDataFieldBuilder;
|
|
355
|
-
}
|
|
353
|
+
}();
|
|
356
354
|
/**
|
|
357
355
|
* Creates a new described data field with all properties of the original one except for dynamically added groups.
|
|
358
356
|
* @param {module:described_field.DescribedDataField} describedDataField
|
|
@@ -361,7 +359,7 @@ described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExi
|
|
|
361
359
|
*/ described_field.copyWithoutGroups = function(describedDataField) {
|
|
362
360
|
return new described_field.DescribedDataFieldBuilder().fromDescribedDataField(describedDataField).groupNames([]).build();
|
|
363
361
|
};
|
|
364
|
-
described_field.DescribedDataFieldGroup =
|
|
362
|
+
described_field.DescribedDataFieldGroup = function() {
|
|
365
363
|
/**
|
|
366
364
|
* Adds groups to {@link module:described_field.DescribedDataField}s. These groups are dynamically added properties
|
|
367
365
|
* that contain an array of sub fields of the same type {@link module:described_field.DescribedDataField}s.
|
|
@@ -407,7 +405,7 @@ described_field.DescribedDataFieldGroup = (function() {
|
|
|
407
405
|
};
|
|
408
406
|
}
|
|
409
407
|
return DescribedDataFieldGroup;
|
|
410
|
-
}
|
|
408
|
+
}();
|
|
411
409
|
|
|
412
|
-
},{}]},["
|
|
410
|
+
},{}]},["eeb0L"], "eeb0L", "parcelRequirec1f2")
|
|
413
411
|
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
this[globalName] = mainExports;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
})({"
|
|
145
|
+
})({"g0GVY":[function(require,module,exports) {
|
|
146
146
|
/**
|
|
147
147
|
* @file Describes a data field of the restructured data.
|
|
148
148
|
* @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
|
|
@@ -151,14 +151,12 @@
|
|
|
151
151
|
*/ "use strict";
|
|
152
152
|
var module = describedFieldInternalCreateIfNotExists(module); // Fallback for vanilla js without modules
|
|
153
153
|
function describedFieldInternalCreateIfNotExists(objectToCheck) {
|
|
154
|
-
return objectToCheck || {
|
|
155
|
-
};
|
|
154
|
+
return objectToCheck || {};
|
|
156
155
|
}
|
|
157
156
|
/**
|
|
158
157
|
* Describes a data field of the restructured data.
|
|
159
158
|
* @module described_field
|
|
160
|
-
*/ var described_field = module.exports = {
|
|
161
|
-
}; // Export module for npm...
|
|
159
|
+
*/ var described_field = module.exports = {}; // Export module for npm...
|
|
162
160
|
described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExists;
|
|
163
161
|
/**
|
|
164
162
|
* Describes a field of the restructured data.
|
|
@@ -175,7 +173,7 @@ described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExi
|
|
|
175
173
|
* @property {string} fieldName - field name
|
|
176
174
|
* @property {{*}} value - content of the field
|
|
177
175
|
* @property {module:described_field.DescribedDataField[]} [couldBeAnyCustomGroupName] any number of groups attached to the field each containing multiple fields
|
|
178
|
-
*/ described_field.DescribedDataFieldBuilder =
|
|
176
|
+
*/ described_field.DescribedDataFieldBuilder = function() {
|
|
179
177
|
/**
|
|
180
178
|
* Builds a {@link module:described_field.DescribedDataField}.
|
|
181
179
|
* DescribedDataField is the main element of the restructured data and therefore considered "public".
|
|
@@ -345,7 +343,7 @@ described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExi
|
|
|
345
343
|
return value === undefined || value === null ? defaultValue : value;
|
|
346
344
|
}
|
|
347
345
|
return DescribedDataFieldBuilder;
|
|
348
|
-
}
|
|
346
|
+
}();
|
|
349
347
|
/**
|
|
350
348
|
* Creates a new described data field with all properties of the original one except for dynamically added groups.
|
|
351
349
|
* @param {module:described_field.DescribedDataField} describedDataField
|
|
@@ -354,7 +352,7 @@ described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExi
|
|
|
354
352
|
*/ described_field.copyWithoutGroups = function(describedDataField) {
|
|
355
353
|
return new described_field.DescribedDataFieldBuilder().fromDescribedDataField(describedDataField).groupNames([]).build();
|
|
356
354
|
};
|
|
357
|
-
described_field.DescribedDataFieldGroup =
|
|
355
|
+
described_field.DescribedDataFieldGroup = function() {
|
|
358
356
|
/**
|
|
359
357
|
* Adds groups to {@link module:described_field.DescribedDataField}s. These groups are dynamically added properties
|
|
360
358
|
* that contain an array of sub fields of the same type {@link module:described_field.DescribedDataField}s.
|
|
@@ -400,7 +398,7 @@ described_field.DescribedDataFieldGroup = (function() {
|
|
|
400
398
|
};
|
|
401
399
|
}
|
|
402
400
|
return DescribedDataFieldGroup;
|
|
403
|
-
}
|
|
401
|
+
}();
|
|
404
402
|
|
|
405
|
-
},{}]},["
|
|
403
|
+
},{}]},["g0GVY"], "g0GVY", "parcelRequirec1f2")
|
|
406
404
|
|
|
@@ -142,21 +142,22 @@
|
|
|
142
142
|
this[globalName] = mainExports;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
})({"
|
|
145
|
+
})({"4dShw":[function(require,module,exports) {
|
|
146
146
|
"use strict";
|
|
147
|
-
require("
|
|
148
|
-
require("
|
|
149
|
-
var template_resolver = require("
|
|
147
|
+
require("f9cbbac04b01709d");
|
|
148
|
+
require("df655861a744c42f");
|
|
149
|
+
var template_resolver = require("5944841c0ea18f02");
|
|
150
150
|
module.exports = {
|
|
151
151
|
template_resolver: template_resolver
|
|
152
152
|
};
|
|
153
153
|
|
|
154
|
-
},{"
|
|
154
|
+
},{"f9cbbac04b01709d":"dCgG6","df655861a744c42f":"8vHia","5944841c0ea18f02":"5qyN0"}],"dCgG6":[function(require,module,exports) {
|
|
155
155
|
//https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf#Polyfill
|
|
156
|
-
if (!Array.prototype.indexOf) Array.prototype.indexOf =
|
|
156
|
+
if (!Array.prototype.indexOf) Array.prototype.indexOf = function(Object1, max, min) {
|
|
157
|
+
"use strict";
|
|
157
158
|
return function indexOf(member, fromIndex) {
|
|
158
159
|
if (this === null || this === undefined) throw TypeError("Array.prototype.indexOf called on null or undefined");
|
|
159
|
-
var that =
|
|
160
|
+
var that = Object1(this), Len = that.length >>> 0, i = min(fromIndex | 0, Len);
|
|
160
161
|
if (i < 0) i = max(0, Len + i);
|
|
161
162
|
else if (i >= Len) return -1;
|
|
162
163
|
if (member === void 0) {
|
|
@@ -166,18 +167,18 @@ if (!Array.prototype.indexOf) Array.prototype.indexOf = (function(Object, max, m
|
|
|
166
167
|
} else for(; i !== Len; ++i)if (that[i] === member) return i; // all else
|
|
167
168
|
return -1; // if the value was not found, then return -1
|
|
168
169
|
};
|
|
169
|
-
}
|
|
170
|
+
}(Object, Math.max, Math.min);
|
|
170
171
|
|
|
171
|
-
},{}],"
|
|
172
|
+
},{}],"8vHia":[function(require,module,exports) {
|
|
172
173
|
//http://tokenposts.blogspot.com/2012/04/javascript-objectkeys-browser.html
|
|
173
174
|
if (!Object.keys) Object.keys = function(o) {
|
|
174
|
-
if (o !== Object(o)) throw new TypeError(
|
|
175
|
+
if (o !== Object(o)) throw new TypeError("Object.keys called on a non-object");
|
|
175
176
|
var k = [], p;
|
|
176
177
|
for(p in o)if (Object.prototype.hasOwnProperty.call(o, p)) k.push(p);
|
|
177
178
|
return k;
|
|
178
179
|
};
|
|
179
180
|
|
|
180
|
-
},{}],"
|
|
181
|
+
},{}],"5qyN0":[function(require,module,exports) {
|
|
181
182
|
/**
|
|
182
183
|
* @file Provides a simple template resolver, that replaces variables in double curly brackets with the values of a given object.
|
|
183
184
|
* @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
|
|
@@ -186,17 +187,15 @@ if (!Object.keys) Object.keys = function(o) {
|
|
|
186
187
|
*/ "use strict";
|
|
187
188
|
var module = templateResolverInternalCreateIfNotExists(module); // Fallback for vanilla js without modules
|
|
188
189
|
function templateResolverInternalCreateIfNotExists(objectToCheck) {
|
|
189
|
-
return objectToCheck || {
|
|
190
|
-
};
|
|
190
|
+
return objectToCheck || {};
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
193
|
* Provides a simple template resolver, that replaces variables in double curly brackets with the values of a given object.
|
|
194
194
|
* @module template_resolver
|
|
195
|
-
*/ var template_resolver = module.exports = {
|
|
196
|
-
}; // Export module for npm...
|
|
195
|
+
*/ var template_resolver = module.exports = {}; // Export module for npm...
|
|
197
196
|
template_resolver.internalCreateIfNotExists = templateResolverInternalCreateIfNotExists;
|
|
198
|
-
var internal_object_tools = internal_object_tools || require("
|
|
199
|
-
template_resolver.Resolver =
|
|
197
|
+
var internal_object_tools = internal_object_tools || require("2bc8fdaaf35dfa57"); // supports vanilla js & npm
|
|
198
|
+
template_resolver.Resolver = function() {
|
|
200
199
|
var removeArrayBracketsRegEx = new RegExp("\\[\\d+\\]", "gi");
|
|
201
200
|
/**
|
|
202
201
|
* Resolver. Is used inside this repository. It could also be used outside.
|
|
@@ -234,8 +233,7 @@ template_resolver.Resolver = (function() {
|
|
|
234
233
|
* @returns {object} object with resolvable field names and their values.
|
|
235
234
|
* @public
|
|
236
235
|
*/ this.resolvableFieldsOfAll = function() {
|
|
237
|
-
var map = {
|
|
238
|
-
};
|
|
236
|
+
var map = {};
|
|
239
237
|
var ignoreInternalFields = function(propertyName) {
|
|
240
238
|
return propertyName.indexOf("_") !== 0 && propertyName.indexOf("._") < 0;
|
|
241
239
|
};
|
|
@@ -323,21 +321,19 @@ template_resolver.Resolver = (function() {
|
|
|
323
321
|
return mapObject;
|
|
324
322
|
}
|
|
325
323
|
return Resolver;
|
|
326
|
-
}
|
|
324
|
+
}();
|
|
327
325
|
|
|
328
|
-
},{"
|
|
326
|
+
},{"2bc8fdaaf35dfa57":"i4dBQ"}],"i4dBQ":[function(require,module,exports) {
|
|
329
327
|
"use strict";
|
|
330
328
|
/**
|
|
331
329
|
* @fileOverview Modded (compatibility, recursion depth) version of: https://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objectss
|
|
332
330
|
* @version ${project.version}
|
|
333
331
|
* @see {@link https://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objectss|stackoverflow flatten nested json objects}
|
|
334
|
-
*/ var module = module || {
|
|
335
|
-
}; // Fallback for vanilla js without modules
|
|
332
|
+
*/ var module = module || {}; // Fallback for vanilla js without modules
|
|
336
333
|
/**
|
|
337
334
|
* internal_object_tools. Not meant to be used outside this repository.
|
|
338
335
|
* @default {}
|
|
339
|
-
*/ var internal_object_tools = module.exports = {
|
|
340
|
-
}; // Export module for npm...
|
|
336
|
+
*/ var internal_object_tools = module.exports = {}; // Export module for npm...
|
|
341
337
|
/**
|
|
342
338
|
* @typedef {Object} NameValuePair
|
|
343
339
|
* @property {string} name - point separated names of the flattened main and sub properties, e.g. "responses[2].hits.hits[4]._source.name".
|
|
@@ -383,5 +379,5 @@ template_resolver.Resolver = (function() {
|
|
|
383
379
|
return result;
|
|
384
380
|
};
|
|
385
381
|
|
|
386
|
-
},{}]},["
|
|
382
|
+
},{}]},["4dShw"], "4dShw", "parcelRequirec1f2")
|
|
387
383
|
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
this[globalName] = mainExports;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
})({"
|
|
145
|
+
})({"5qyN0":[function(require,module,exports) {
|
|
146
146
|
/**
|
|
147
147
|
* @file Provides a simple template resolver, that replaces variables in double curly brackets with the values of a given object.
|
|
148
148
|
* @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
|
|
@@ -151,17 +151,15 @@
|
|
|
151
151
|
*/ "use strict";
|
|
152
152
|
var module = templateResolverInternalCreateIfNotExists(module); // Fallback for vanilla js without modules
|
|
153
153
|
function templateResolverInternalCreateIfNotExists(objectToCheck) {
|
|
154
|
-
return objectToCheck || {
|
|
155
|
-
};
|
|
154
|
+
return objectToCheck || {};
|
|
156
155
|
}
|
|
157
156
|
/**
|
|
158
157
|
* Provides a simple template resolver, that replaces variables in double curly brackets with the values of a given object.
|
|
159
158
|
* @module template_resolver
|
|
160
|
-
*/ var template_resolver = module.exports = {
|
|
161
|
-
}; // Export module for npm...
|
|
159
|
+
*/ var template_resolver = module.exports = {}; // Export module for npm...
|
|
162
160
|
template_resolver.internalCreateIfNotExists = templateResolverInternalCreateIfNotExists;
|
|
163
|
-
var internal_object_tools = internal_object_tools || require("
|
|
164
|
-
template_resolver.Resolver =
|
|
161
|
+
var internal_object_tools = internal_object_tools || require("2bc8fdaaf35dfa57"); // supports vanilla js & npm
|
|
162
|
+
template_resolver.Resolver = function() {
|
|
165
163
|
var removeArrayBracketsRegEx = new RegExp("\\[\\d+\\]", "gi");
|
|
166
164
|
/**
|
|
167
165
|
* Resolver. Is used inside this repository. It could also be used outside.
|
|
@@ -199,8 +197,7 @@ template_resolver.Resolver = (function() {
|
|
|
199
197
|
* @returns {object} object with resolvable field names and their values.
|
|
200
198
|
* @public
|
|
201
199
|
*/ this.resolvableFieldsOfAll = function() {
|
|
202
|
-
var map = {
|
|
203
|
-
};
|
|
200
|
+
var map = {};
|
|
204
201
|
var ignoreInternalFields = function(propertyName) {
|
|
205
202
|
return propertyName.indexOf("_") !== 0 && propertyName.indexOf("._") < 0;
|
|
206
203
|
};
|
|
@@ -288,21 +285,19 @@ template_resolver.Resolver = (function() {
|
|
|
288
285
|
return mapObject;
|
|
289
286
|
}
|
|
290
287
|
return Resolver;
|
|
291
|
-
}
|
|
288
|
+
}();
|
|
292
289
|
|
|
293
|
-
},{"
|
|
290
|
+
},{"2bc8fdaaf35dfa57":"i4dBQ"}],"i4dBQ":[function(require,module,exports) {
|
|
294
291
|
"use strict";
|
|
295
292
|
/**
|
|
296
293
|
* @fileOverview Modded (compatibility, recursion depth) version of: https://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objectss
|
|
297
294
|
* @version ${project.version}
|
|
298
295
|
* @see {@link https://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objectss|stackoverflow flatten nested json objects}
|
|
299
|
-
*/ var module = module || {
|
|
300
|
-
}; // Fallback for vanilla js without modules
|
|
296
|
+
*/ var module = module || {}; // Fallback for vanilla js without modules
|
|
301
297
|
/**
|
|
302
298
|
* internal_object_tools. Not meant to be used outside this repository.
|
|
303
299
|
* @default {}
|
|
304
|
-
*/ var internal_object_tools = module.exports = {
|
|
305
|
-
}; // Export module for npm...
|
|
300
|
+
*/ var internal_object_tools = module.exports = {}; // Export module for npm...
|
|
306
301
|
/**
|
|
307
302
|
* @typedef {Object} NameValuePair
|
|
308
303
|
* @property {string} name - point separated names of the flattened main and sub properties, e.g. "responses[2].hits.hits[4]._source.name".
|
|
@@ -348,5 +343,5 @@ template_resolver.Resolver = (function() {
|
|
|
348
343
|
return result;
|
|
349
344
|
};
|
|
350
345
|
|
|
351
|
-
},{}]},["
|
|
346
|
+
},{}]},["5qyN0"], "5qyN0", "parcelRequirec1f2")
|
|
352
347
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},t={},r={},i=e.parcelRequirec1f2;null==i&&((i=function(e){if(e in t)return t[e].exports;if(e in r){var i=r[e];delete r[e];var n={id:e,exports:{}};return t[e]=n,i.call(n.exports,n,n.exports),n.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,t){r[e]=t},e.parcelRequirec1f2=i),i.register("6LZJB",(function(e,t){"use strict";var r=r||{};(r.exports={}).flattenToArray=function(e,t){var r=[];return("number"!=typeof t||t<1)&&(t=20),function e(i,n,o){if(!(o>t||"function"==typeof i))if(Object(i)!==i)r.push({name:n,value:i});else if(Array.isArray(i)){var a,s=i.length;for(a=0;a<s;a+=1)e(i[a],n+"["+a+"]",o+1);0===s&&(r[n]=[],r.push({name:n,value:""}))}else{var u,l=!0;for(u in i)l=!1,e(i[u],n?n+"."+u:u,o+1);l&&n&&r.push({name:n,value:""})}}(e,"",0),r}})),i.register("gIYWy",(function(e,t){"use strict";var r=n(r);function n(e){return e||{}}var o=r.exports={};o.internalCreateIfNotExists=n;var a=a||i("6LZJB");o.Resolver=function(){var e=new RegExp("\\[\\d+\\]","gi");function t(t){var r=t.lastIndexOf("."),i=t;r>0&&(i=t.substr(r+1));var n="";r>0&&(n=t.substr(0,r+1));var o=n.replace(e,"");return{group:n,groupWithoutArrayIndices:o,name:i}}function r(e,t,r){var i,n;for(i=0;i<e.length;i+=1)n=e[i],"function"==typeof r&&r(n.name)&&(t[n.name]=n.value);return t}return function(e){this.sourceDataObject=e,this.resolveTemplate=function(e){return this.replaceResolvableFields(e,function(e){var r,i,n,o,a=Object.keys(e);for(r=0;r<a.length;r+=1)o=e[i=a[r]],"fieldName"===(n=t(i)).name&&"fieldName"!==o&&(e[n.groupWithoutArrayIndices+o]=e[n.group+"value"]);return e}(this.resolvableFieldsOfAll(this.sourceDataObject)))},this.resolvableFieldsOfAll=function(){var e,t={},i=function(e){return 0!==e.indexOf("_")&&e.indexOf("._")<0};for(e=0;e<arguments.length;e+=1)r(a.flattenToArray(arguments[e],3),t,i);return t},this.replaceResolvableFields=function(e,t){var r=e,i=Object.keys(t),n=0,o="",a="";for(n=0;n<i.length;n+=1)a=t[o=i[n]],r=r.replace("{{"+o+"}}",a);return r}}}()})),i.register("1VoPT",(function(e,t){"use strict";var r=i(r);function i(e){return e||{}}var n=r.exports={};n.internalCreateIfNotExists=i,n.DescribedDataFieldBuilder=function(){function e(e,t){return function(e){return"string"==typeof e&&null!==e&&""!==e}(e)?e:t}function t(e,t){return null==e?t:e}return function(){this.describedField={category:"",type:"",abbreviation:"",image:"",index:[],groupNames:[],displayName:"",fieldName:"",value:""},this.fromDescribedDataField=function(e){return this.category(e.category),this.type(e.type),this.abbreviation(e.abbreviation),this.image(e.image),this.index(e.index),this.groupNames(e.groupNames),this.displayName(e.displayName),this.fieldName(e.fieldName),this.value(e.value),this},this.category=function(t){return this.describedField.category=e(t,""),this},this.type=function(t){return this.describedField.type=e(t,""),this},this.abbreviation=function(t){return this.describedField.abbreviation=e(t,""),this},this.image=function(t){return this.describedField.image=e(t,""),this},this.index=function(e){return this.describedField.index=t(e,[]),this},this.groupNames=function(e){return this.describedField.groupNames=t(e,[]),this},this.displayName=function(t){return this.describedField.displayName=e(t,""),this},this.fieldName=function(t){return this.describedField.fieldName=e(t,""),this},this.value=function(e){return this.describedField.value=e,this},this.build=function(){return this.describedField}}}(),n.copyWithoutGroups=function(e){return(new n.DescribedDataFieldBuilder).fromDescribedDataField(e).groupNames([]).build()},n.DescribedDataFieldGroup=function(e){this.dataField=e,this.addGroupEntry=function(e,t){return this.addGroupEntries(e,[t]),this},this.addGroupEntries=function(e,t){if(!e||0===e.length)return this;if(!t||0===t.length)return this;var r,i;for(void 0===this.dataField[e]&&(this.dataField.groupNames.push(e),this.dataField[e]=[]),r=0;r<t.length;r+=1)i=t[r],this.dataField[e].push(i);return this}}})),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Array.prototype.filter||(Array.prototype.filter=function(e,t){if("Function"!=typeof e&&"function"!=typeof e||!this)throw new TypeError;var r,i=this.length>>>0,n=new Array(i),o=this,a=0,s=-1;if(void 0===t)for(;++s!==i;)s in this&&(r=o[s],e(o[s],s,o)&&(n[a++]=r));else for(;++s!==i;)s in this&&(r=o[s],e.call(t,o[s],s,o)&&(n[a++]=r));return n.length=a,n}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t,r){return function(i,n){if(null==this)throw TypeError("Array.prototype.indexOf called on null or undefined");var o=e(this),a=o.length>>>0,s=r(0|n,a);if(s<0)s=t(0,a+s);else if(s>=a)return-1;if(void 0===i){for(;s!==a;++s)if(void 0===o[s]&&s in o)return s}else if(i!=i){for(;s!==a;++s)if(o[s]!=o[s])return s}else for(;s!==a;++s)if(o[s]===i)return s;return-1}}(Object,Math.max,Math.min)),Object.keys||(Object.keys=function(e){if(e!==Object(e))throw new TypeError("Object.keys called on a non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r});var n=o(n);function o(e){return e||{}}var a=n.exports={};a.internalCreateIfNotExists=o;var s,u=u||i("6LZJB"),l=l||i("gIYWy"),c=c||i("1VoPT");a.PropertyStructureDescriptionBuilder=function(){function e(e,i){if(o(e))return function(){return e};if(i.propertyPatternTemplateMode){var n=i.propertyPattern;return a=n,function(e){var i=r(a,"{{fieldName}}").exec(e);return i&&""!=i[1]?i[1]:t(e)}}var a;return function(e){return t(e)}}function t(e){var t=new RegExp("(\\w+)$","gi"),r=e.match(t);return null!=r?r[0]:e}function r(e,t){var r=i(e);return"string"==typeof t&&(t=i(t)),r="^"+(r=r.replace(t,"([-\\w]+)")),new RegExp(r,"i")}function i(e){var t=new RegExp("([^-\\w])","gi");return e.replace(t,"\\$1")}function n(e,t){return o(e)?e:t}function o(e){return"string"==typeof e&&null!=e&&""!=e}return function(){this.description={type:"",category:"",abbreviation:"",image:"",propertyPatternTemplateMode:!1,propertyPattern:"",indexStartsWith:"",groupName:"group",groupPattern:"",groupDestinationPattern:"",groupDestinationName:null,deduplicationPattern:"",getDisplayNameForPropertyName:null,getFieldNameForPropertyName:null,matchesPropertyName:null},this.type=function(e){return this.description.type=n(e,""),this},this.category=function(e){return this.description.category=n(e,""),this},this.abbreviation=function(e){return this.description.abbreviation=n(e,""),this},this.image=function(e){return this.description.image=n(e,""),this},this.propertyPatternEqualMode=function(){return this.description.propertyPatternTemplateMode=!1,this},this.propertyPatternTemplateMode=function(){return this.description.propertyPatternTemplateMode=!0,this},this.propertyPattern=function(e){return this.description.propertyPattern=n(e,""),this},this.indexStartsWith=function(e){return this.description.indexStartsWith=n(e,""),this},this.displayPropertyName=function(t){return this.description.getDisplayNameForPropertyName=e(t,this.description),o(t)||(this.description.getDisplayNameForPropertyName=(r=this.description.getDisplayNameForPropertyName,function(e){var t=r(e);return(t=null!=t?t:"").replace("_comma_separated_values","")}),this.description.getDisplayNameForPropertyName=function(e){return function(t){return function(e){return e.length>1?e.charAt(0).toUpperCase()+e.slice(1):e}(e(t))}}(this.description.getDisplayNameForPropertyName)),this;var r},this.fieldName=function(t){return this.description.getFieldNameForPropertyName=e(t,this.description),this},this.groupName=function(e){return this.description.groupName=n(e,""),this},this.groupPattern=function(e){return this.description.groupPattern=n(e,""),this},this.groupDestinationPattern=function(e){return this.description.groupDestinationPattern=n(e,""),this},this.groupDestinationName=function(e){return this.description.groupDestinationName=n(e,this.description.groupName),this},this.deduplicationPattern=function(e){return this.description.deduplicationPattern=n(e,""),this},this.build=function(){var e,t;return this.description.matchesPropertyName=(e=this.description,o(t=e.propertyPattern)?e.propertyPatternTemplateMode?function(e){return null!=(i=t,n=new RegExp("\\\\\\{\\\\\\{[-\\w]+\\\\\\}\\\\\\}","gi"),r(i,n)).exec(e);var i,n}:function(e){return e===t}:function(){return!1}),null==this.description.getDisplayNameForPropertyName&&this.displayPropertyName(""),null==this.description.getFieldNameForPropertyName&&this.fieldName(""),null==this.description.groupDestinationName&&this.groupDestinationName(""),this.description}}}(),a.DescribedEntryCreator=(s=new RegExp("\\[\\d+\\]","gi"),function(e,t){var r,i,n=(r=e.name,i=new RegExp("\\[(\\d+)\\]","gi"),function(e,t){var r,i="",n=[];do{(r=t.exec(e))&&(i.length>0&&(i+="."),i+=r[1],n.push(parseInt(r[1])))}while(r);return{pointDelimited:i,numberArray:n}}(r,i)),o=e.name.replace(s,""),a=new l.Resolver(this);this.category=t.category,this.type=t.type,this.abbreviation=t.abbreviation,this.image=t.image,this.index=n.numberArray,this.displayName=t.getDisplayNameForPropertyName(o),this.fieldName=t.getFieldNameForPropertyName(o),this.value=e.value,this.groupNames=[],this._isMatchingIndex=0==n.pointDelimited.indexOf(t.indexStartsWith),this._description=t,this._identifier={index:n.pointDelimited,propertyNameWithArrayIndices:e.name,propertyNameWithoutArrayIndices:o,groupId:"",groupDestinationId:"",deduplicationId:""},this._identifier.groupId=a.replaceResolvableFields(t.groupPattern,a.resolvableFieldsOfAll(this,this._description,this._identifier)),this._identifier.groupDestinationId=a.replaceResolvableFields(t.groupDestinationPattern,a.resolvableFieldsOfAll(this,this._description,this._identifier)),this._identifier.deduplicationId=a.replaceResolvableFields(t.deduplicationPattern,a.resolvableFieldsOfAll(this,this._description,this._identifier)),this.addGroupEntry=function(e,t){this.addGroupEntries(e,[t])},this.addGroupEntries=function(e,t){var r,i;for(this[e]||(this.groupNames.push(e),this[e]=[]),r=0;r<t.length;r+=1)i=t[r],this[e].push(i)}}),a.Transform=function(){function e(e,t,r){var i,n,o,a=function(e,t){for(var r=new Object,i=0;i<e.length;i++){var n=e[i];r[t(n)]=n}return r}(t,r),s=[];for(i=0;i<e.length;i+=1)null!=(o=r(n=e[i]))&&""!==o&&null!=a[o]||s.push(n);for(i=0;i<t.length;i+=1)n=t[i],s.push(n);return s}function t(t,r){if(null==t||0==t.length)return r;return e(t,r,(function(e){return e._identifier.deduplicationId}))}function r(e,t){var r=new RegExp("\\[\\d+\\]","gi"),i=[];return e.filter((function(e){var n=e.name.replace(r,"");if(t.matchesPropertyName(n)){var o=new a.DescribedEntryCreator(e,t);o._isMatchingIndex&&i.push(o)}})),i}function i(e,t){var r=(new c.DescribedDataFieldBuilder).category(e.category).type(e.type).abbreviation(e.abbreviation).image(e.image).index(e.index).displayName(e.displayName).fieldName(e.fieldName).value(e.value).build();if(t.recursionDepth>t.config.maxRecursionDepth)return r;var o=null,a="",s=new c.DescribedDataFieldGroup(r);return function(e,t){var r,i,n;for(r=0;r<e.groupNames.length;r+=1)for(n=e.groupNames[r],i=0;i<e[n].length;i+=1)t(n,e[n][i],e[n])}(e,(function(e,r,u){t.groupToSkip!==e?(a="",t.recursionDepth>=t.config.removeDuplicationAboveRecursionDepth&&(a=function(e,t,r){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(var i=0;i<e.length;++i)if(!r(e[i],t[i]))return!1;return!0}(r[e],u,n)?e:""),o={recursionDepth:t.recursionDepth+1,config:t.config,groupToSkip:a},s.addGroupEntry(e,i(r,o))):t.config.debugMode&&console.log("Removed duplicate group "+e+" at recursion depth "+t.recursionDepth)})),r}function n(e,t){return o(e.category)===o(t.category)&&o(e.type)===o(t.type)&&e.fieldName===t.fieldName&&e.value===t.value}function o(e){return function(e,t){return void 0!==e&&e?e:t}(e,"")}return function(e){this.descriptions=e,this.config={debugMode:!1,maxRecursionDepth:8,removeDuplicationAboveRecursionDepth:1},this.enableDebugMode=function(){return this.config.debugMode=!0,this},this.setMaxRecursionDepth=function(e){if("number"!=typeof e||e<0)throw"Invalid max recursion depth value: "+e;return this.config.maxRecursionDepth=e,this},this.setRemoveDuplicationAboveRecursionDepth=function(e){if("number"!=typeof e||e<0)throw"Invalid remove duplications above recursion depth value: "+e;return this.config.removeDuplicationAboveRecursionDepth=e,this},this.processJson=function(e){return function(e,n,o){var a=u.flattenToArray(e);a=function(e){var t=new RegExp("\\[\\d+\\]$","gi"),r=[],i="",n="";return e.filter((function(e){if(!e.name.match(t))return""!==i&&(r.push({name:i+"_comma_separated_values",value:n}),i=""),void r.push(e);var o=e.name.replace(t,"");i===o?n+=", "+e.value:(""!==i&&(r.push({name:i+"_comma_separated_values",value:n}),i=""),i=o,n=e.value),r.push(e)})),r}(a),o.debugMode&&(console.log("flattened data with array values:"),console.log(a));var s,l=[];for(s=0;s<n.length;s+=1)l=t(l,r(a,n[s]));a=l,o.debugMode&&(console.log("describedData data:"),console.log(a));a=function(e){return function(e,t,r){for(var i=new Object,n=0;n<e.length;n++){var o=e[n],a=t(o);if(""!==a){var s=r(o);null!=s&&""!==s&&(i[a]||(i[a]=o),i[a].addGroupEntry(s,o))}}return i}(e,(function(e){return e._identifier.groupId}),(function(e){return e._description.groupName}))}(a),o.debugMode&&(console.log("grouped describedData data:"),console.log(a));a=function(e){for(var t=Object.keys(e),r=[],i=0;i<t.length;i++){var n=t[i],o=e[n];if(""!=o._description.groupDestinationPattern){var a=o._identifier.groupDestinationId;if(null!=e[a]){var s=o[o._description.groupName];e[a].addGroupEntries(o._description.groupDestinationName,s),r.push(n)}}}for(i=0;i<r.length;i+=1){delete e[r[i]]}return e}(a),o.debugMode&&(console.log("moved grouped describedData data:"),console.log(a));a=function(e,t){var r,n,o=[];for(r=0;r<e.length;r+=1)n=e[r],o.push(i(n,{recursionDepth:0,config:t,groupToSkip:""}));return o}(a=function(e){for(var t=[],r=Object.keys(e),i=0;i<r.length;i++){var n=e[r[i]];t.push(n)}return t}(a),o),o.debugMode&&(console.log("transformed result:"),console.log(a));return a}(e,this.descriptions,this.config)}}}(),a.Restructor={},a.Restructor.processJsonUsingDescriptions=function(e,t,r){var i=new a.Transform(t);return r&&i.enableDebugMode(),i.processJson(e)},module.exports={datarestructor:{}};
|
|
1
|
+
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},t={},r={},i=e.parcelRequirec1f2;null==i&&((i=function(e){if(e in t)return t[e].exports;if(e in r){var i=r[e];delete r[e];var n={id:e,exports:{}};return t[e]=n,i.call(n.exports,n,n.exports),n.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,t){r[e]=t},e.parcelRequirec1f2=i),i.register("7HmuL",(function(e,t){"use strict";var r=r||{};(r.exports={}).flattenToArray=function(e,t){var r=[];return("number"!=typeof t||t<1)&&(t=20),function e(i,n,o){if(!(o>t||"function"==typeof i))if(Object(i)!==i)r.push({name:n,value:i});else if(Array.isArray(i)){var a,s=i.length;for(a=0;a<s;a+=1)e(i[a],n+"["+a+"]",o+1);0===s&&(r[n]=[],r.push({name:n,value:""}))}else{var u,c=!0;for(u in i)c=!1,e(i[u],n?n+"."+u:u,o+1);c&&n&&r.push({name:n,value:""})}}(e,"",0),r}})),i.register("8ZIyB",(function(e,t){"use strict";var r=n(r);function n(e){return e||{}}var o=r.exports={};o.internalCreateIfNotExists=n;var a=a||i("7HmuL");o.Resolver=function(){var e=new RegExp("\\[\\d+\\]","gi");function t(t){var r=t.lastIndexOf("."),i=t;r>0&&(i=t.substr(r+1));var n="";r>0&&(n=t.substr(0,r+1));var o=n.replace(e,"");return{group:n,groupWithoutArrayIndices:o,name:i}}function r(e,t,r){var i,n;for(i=0;i<e.length;i+=1)n=e[i],"function"==typeof r&&r(n.name)&&(t[n.name]=n.value);return t}return function(e){this.sourceDataObject=e,this.resolveTemplate=function(e){return this.replaceResolvableFields(e,function(e){var r,i,n,o,a=Object.keys(e);for(r=0;r<a.length;r+=1)o=e[i=a[r]],"fieldName"===(n=t(i)).name&&"fieldName"!==o&&(e[n.groupWithoutArrayIndices+o]=e[n.group+"value"]);return e}(this.resolvableFieldsOfAll(this.sourceDataObject)))},this.resolvableFieldsOfAll=function(){var e,t={},i=function(e){return 0!==e.indexOf("_")&&e.indexOf("._")<0};for(e=0;e<arguments.length;e+=1)r(a.flattenToArray(arguments[e],3),t,i);return t},this.replaceResolvableFields=function(e,t){var r=e,i=Object.keys(t),n=0,o="",a="";for(n=0;n<i.length;n+=1)a=t[o=i[n]],r=r.replace("{{"+o+"}}",a);return r}}}()})),i.register("d63jw",(function(e,t){"use strict";var r=i(r);function i(e){return e||{}}var n=r.exports={};n.internalCreateIfNotExists=i,n.DescribedDataFieldBuilder=function(){function e(e,t){return function(e){return"string"==typeof e&&null!==e&&""!==e}(e)?e:t}function t(e,t){return null==e?t:e}return function(){this.describedField={category:"",type:"",abbreviation:"",image:"",index:[],groupNames:[],displayName:"",fieldName:"",value:""},this.fromDescribedDataField=function(e){return this.category(e.category),this.type(e.type),this.abbreviation(e.abbreviation),this.image(e.image),this.index(e.index),this.groupNames(e.groupNames),this.displayName(e.displayName),this.fieldName(e.fieldName),this.value(e.value),this},this.category=function(t){return this.describedField.category=e(t,""),this},this.type=function(t){return this.describedField.type=e(t,""),this},this.abbreviation=function(t){return this.describedField.abbreviation=e(t,""),this},this.image=function(t){return this.describedField.image=e(t,""),this},this.index=function(e){return this.describedField.index=t(e,[]),this},this.groupNames=function(e){return this.describedField.groupNames=t(e,[]),this},this.displayName=function(t){return this.describedField.displayName=e(t,""),this},this.fieldName=function(t){return this.describedField.fieldName=e(t,""),this},this.value=function(e){return this.describedField.value=e,this},this.build=function(){return this.describedField}}}(),n.copyWithoutGroups=function(e){return(new n.DescribedDataFieldBuilder).fromDescribedDataField(e).groupNames([]).build()},n.DescribedDataFieldGroup=function(e){this.dataField=e,this.addGroupEntry=function(e,t){return this.addGroupEntries(e,[t]),this},this.addGroupEntries=function(e,t){if(!e||0===e.length)return this;if(!t||0===t.length)return this;var r,i;for(void 0===this.dataField[e]&&(this.dataField.groupNames.push(e),this.dataField[e]=[]),r=0;r<t.length;r+=1)i=t[r],this.dataField[e].push(i);return this}}})),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Array.prototype.filter||(Array.prototype.filter=function(e,t){"use strict";if("Function"!=typeof e&&"function"!=typeof e||!this)throw new TypeError;var r,i=this.length>>>0,n=new Array(i),o=this,a=0,s=-1;if(void 0===t)for(;++s!==i;)s in this&&(r=o[s],e(o[s],s,o)&&(n[a++]=r));else for(;++s!==i;)s in this&&(r=o[s],e.call(t,o[s],s,o)&&(n[a++]=r));return n.length=a,n}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t,r){"use strict";return function(i,n){if(null==this)throw TypeError("Array.prototype.indexOf called on null or undefined");var o=e(this),a=o.length>>>0,s=r(0|n,a);if(s<0)s=t(0,a+s);else if(s>=a)return-1;if(void 0===i){for(;s!==a;++s)if(void 0===o[s]&&s in o)return s}else if(i!=i){for(;s!==a;++s)if(o[s]!=o[s])return s}else for(;s!==a;++s)if(o[s]===i)return s;return-1}}(Object,Math.max,Math.min)),Object.keys||(Object.keys=function(e){if(e!==Object(e))throw new TypeError("Object.keys called on a non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r});var n=o(n);function o(e){return e||{}}var a=n.exports={};a.internalCreateIfNotExists=o;var s=s||i("7HmuL"),u=u||i("8ZIyB"),c=c||i("d63jw");a.PropertyStructureDescriptionBuilder=function(){"use strict";function e(e,i){if(o(e))return function(){return e};if(i.propertyPatternTemplateMode){var n=i.propertyPattern;return a=n,function(e){var i=r(a,"{{fieldName}}").exec(e);return i&&""!=i[1]?i[1]:t(e)}}var a;return function(e){return t(e)}}function t(e){var t=new RegExp("(\\w+)$","gi"),r=e.match(t);return null!=r?r[0]:e}function r(e,t){var r=i(e);return"string"==typeof t&&(t=i(t)),r="^"+(r=r.replace(t,"([-\\w]+)")),new RegExp(r,"i")}function i(e){var t=new RegExp("([^-\\w])","gi");return e.replace(t,"\\$1")}function n(e,t){return o(e)?e:t}function o(e){return"string"==typeof e&&null!=e&&""!=e}return function(){this.description={type:"",category:"",abbreviation:"",image:"",propertyPatternTemplateMode:!1,propertyPattern:"",indexStartsWith:"",groupName:"group",groupPattern:"",groupDestinationPattern:"",groupDestinationName:null,deduplicationPattern:"",getDisplayNameForPropertyName:null,getFieldNameForPropertyName:null,matchesPropertyName:null},this.type=function(e){return this.description.type=n(e,""),this},this.category=function(e){return this.description.category=n(e,""),this},this.abbreviation=function(e){return this.description.abbreviation=n(e,""),this},this.image=function(e){return this.description.image=n(e,""),this},this.propertyPatternEqualMode=function(){return this.description.propertyPatternTemplateMode=!1,this},this.propertyPatternTemplateMode=function(){return this.description.propertyPatternTemplateMode=!0,this},this.propertyPattern=function(e){return this.description.propertyPattern=n(e,""),this},this.indexStartsWith=function(e){return this.description.indexStartsWith=n(e,""),this},this.displayPropertyName=function(t){return this.description.getDisplayNameForPropertyName=e(t,this.description),o(t)||(this.description.getDisplayNameForPropertyName=(r=this.description.getDisplayNameForPropertyName,function(e){var t=r(e);return(t=null!=t?t:"").replace("_comma_separated_values","")}),this.description.getDisplayNameForPropertyName=function(e){return function(t){return function(e){return e.length>1?e.charAt(0).toUpperCase()+e.slice(1):e}(e(t))}}(this.description.getDisplayNameForPropertyName)),this;var r},this.fieldName=function(t){return this.description.getFieldNameForPropertyName=e(t,this.description),this},this.groupName=function(e){return this.description.groupName=n(e,""),this},this.groupPattern=function(e){return this.description.groupPattern=n(e,""),this},this.groupDestinationPattern=function(e){return this.description.groupDestinationPattern=n(e,""),this},this.groupDestinationName=function(e){return this.description.groupDestinationName=n(e,this.description.groupName),this},this.deduplicationPattern=function(e){return this.description.deduplicationPattern=n(e,""),this},this.build=function(){var e,t;return this.description.matchesPropertyName=(e=this.description,o(t=e.propertyPattern)?e.propertyPatternTemplateMode?function(e){return null!=(i=t,n=new RegExp("\\\\\\{\\\\\\{[-\\w]+\\\\\\}\\\\\\}","gi"),r(i,n)).exec(e);var i,n}:function(e){return e===t}:function(){return!1}),null==this.description.getDisplayNameForPropertyName&&this.displayPropertyName(""),null==this.description.getFieldNameForPropertyName&&this.fieldName(""),null==this.description.groupDestinationName&&this.groupDestinationName(""),this.description}}}(),a.DescribedEntryCreator=function(){"use strict";var e=new RegExp("\\[\\d+\\]","gi");return function(t,r){var i,n,o=(i=t.name,n=new RegExp("\\[(\\d+)\\]","gi"),function(e,t){var r,i="",n=[];do{(r=t.exec(e))&&(i.length>0&&(i+="."),i+=r[1],n.push(parseInt(r[1])))}while(r);return{pointDelimited:i,numberArray:n}}(i,n)),a=t.name.replace(e,""),s=new u.Resolver(this);this.category=r.category,this.type=r.type,this.abbreviation=r.abbreviation,this.image=r.image,this.index=o.numberArray,this.displayName=r.getDisplayNameForPropertyName(a),this.fieldName=r.getFieldNameForPropertyName(a),this.value=t.value,this.groupNames=[],this._isMatchingIndex=0==o.pointDelimited.indexOf(r.indexStartsWith),this._description=r,this._identifier={index:o.pointDelimited,propertyNameWithArrayIndices:t.name,propertyNameWithoutArrayIndices:a,groupId:"",groupDestinationId:"",deduplicationId:""},this._identifier.groupId=s.replaceResolvableFields(r.groupPattern,s.resolvableFieldsOfAll(this,this._description,this._identifier)),this._identifier.groupDestinationId=s.replaceResolvableFields(r.groupDestinationPattern,s.resolvableFieldsOfAll(this,this._description,this._identifier)),this._identifier.deduplicationId=s.replaceResolvableFields(r.deduplicationPattern,s.resolvableFieldsOfAll(this,this._description,this._identifier)),this.addGroupEntry=function(e,t){this.addGroupEntries(e,[t])},this.addGroupEntries=function(e,t){var r,i;for(this[e]||(this.groupNames.push(e),this[e]=[]),r=0;r<t.length;r+=1)i=t[r],this[e].push(i)}}}(),a.Transform=function(){"use strict";function e(e,t,r){var i,n,o,a=function(e,t){for(var r=new Object,i=0;i<e.length;i++){var n=e[i];r[t(n)]=n}return r}(t,r),s=[];for(i=0;i<e.length;i+=1)null!=(o=r(n=e[i]))&&""!==o&&null!=a[o]||s.push(n);for(i=0;i<t.length;i+=1)n=t[i],s.push(n);return s}function t(t,r){if(null==t||0==t.length)return r;return e(t,r,(function(e){return e._identifier.deduplicationId}))}function r(e,t){var r=new RegExp("\\[\\d+\\]","gi"),i=[];return e.filter((function(e){var n=e.name.replace(r,"");if(t.matchesPropertyName(n)){var o=new a.DescribedEntryCreator(e,t);o._isMatchingIndex&&i.push(o)}})),i}function i(e,t){var r=(new c.DescribedDataFieldBuilder).category(e.category).type(e.type).abbreviation(e.abbreviation).image(e.image).index(e.index).displayName(e.displayName).fieldName(e.fieldName).value(e.value).build();if(t.recursionDepth>t.config.maxRecursionDepth)return r;var o=null,a="",s=new c.DescribedDataFieldGroup(r);return function(e,t){var r,i,n;for(r=0;r<e.groupNames.length;r+=1)for(n=e.groupNames[r],i=0;i<e[n].length;i+=1)t(n,e[n][i],e[n])}(e,(function(e,r,u){t.groupToSkip!==e?(a="",t.recursionDepth>=t.config.removeDuplicationAboveRecursionDepth&&(a=function(e,t,r){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(var i=0;i<e.length;++i)if(!r(e[i],t[i]))return!1;return!0}(r[e],u,n)?e:""),o={recursionDepth:t.recursionDepth+1,config:t.config,groupToSkip:a},s.addGroupEntry(e,i(r,o))):t.config.debugMode&&console.log("Removed duplicate group "+e+" at recursion depth "+t.recursionDepth)})),r}function n(e,t){return o(e.category)===o(t.category)&&o(e.type)===o(t.type)&&e.fieldName===t.fieldName&&e.value===t.value}function o(e){return function(e,t){return void 0!==e&&e?e:t}(e,"")}return function(e){this.descriptions=e,this.config={debugMode:!1,maxRecursionDepth:8,removeDuplicationAboveRecursionDepth:1},this.enableDebugMode=function(){return this.config.debugMode=!0,this},this.setMaxRecursionDepth=function(e){if("number"!=typeof e||e<0)throw"Invalid max recursion depth value: "+e;return this.config.maxRecursionDepth=e,this},this.setRemoveDuplicationAboveRecursionDepth=function(e){if("number"!=typeof e||e<0)throw"Invalid remove duplications above recursion depth value: "+e;return this.config.removeDuplicationAboveRecursionDepth=e,this},this.processJson=function(e){return function(e,n,o){var a=s.flattenToArray(e);a=function(e){var t=new RegExp("\\[\\d+\\]$","gi"),r=[],i="",n="";return e.filter((function(e){if(!e.name.match(t))return""!==i&&(r.push({name:i+"_comma_separated_values",value:n}),i=""),void r.push(e);var o=e.name.replace(t,"");i===o?n+=", "+e.value:(""!==i&&(r.push({name:i+"_comma_separated_values",value:n}),i=""),i=o,n=e.value),r.push(e)})),r}(a),o.debugMode&&(console.log("flattened data with array values:"),console.log(a));var u,c=[];for(u=0;u<n.length;u+=1)c=t(c,r(a,n[u]));a=c,o.debugMode&&(console.log("describedData data:"),console.log(a));a=function(e){return function(e,t,r){for(var i=new Object,n=0;n<e.length;n++){var o=e[n],a=t(o);if(""!==a){var s=r(o);null!=s&&""!==s&&(i[a]||(i[a]=o),i[a].addGroupEntry(s,o))}}return i}(e,(function(e){return e._identifier.groupId}),(function(e){return e._description.groupName}))}(a),o.debugMode&&(console.log("grouped describedData data:"),console.log(a));a=function(e){for(var t=Object.keys(e),r=[],i=0;i<t.length;i++){var n=t[i],o=e[n];if(""!=o._description.groupDestinationPattern){var a=o._identifier.groupDestinationId;if(null!=e[a]){var s=o[o._description.groupName];e[a].addGroupEntries(o._description.groupDestinationName,s),r.push(n)}}}for(i=0;i<r.length;i+=1){delete e[r[i]]}return e}(a),o.debugMode&&(console.log("moved grouped describedData data:"),console.log(a));a=function(e,t){var r,n,o=[];for(r=0;r<e.length;r+=1)n=e[r],o.push(i(n,{recursionDepth:0,config:t,groupToSkip:""}));return o}(a=function(e){for(var t=[],r=Object.keys(e),i=0;i<r.length;i++){var n=e[r[i]];t.push(n)}return t}(a),o),o.debugMode&&(console.log("transformed result:"),console.log(a));return a}(e,this.descriptions,this.config)}}}(),a.Restructor={},a.Restructor.processJsonUsingDescriptions=function(e,t,r){var i=new a.Transform(t);return r&&i.enableDebugMode(),i.processJson(e)},module.exports={datarestructor:{}};
|
|
2
2
|
//# sourceMappingURL=datarestructor-ie.js.map
|