clientnode 4.0.1504 → 4.0.1506

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 (60) hide show
  1. package/dist/Lock.js +8 -27
  2. package/dist/Logger.js +34 -85
  3. package/dist/Semaphore.js +8 -27
  4. package/dist/array.js +10 -48
  5. package/dist/bundle/index.js +424 -440
  6. package/dist/cli.d.ts +1 -31
  7. package/dist/cli.js +77 -32
  8. package/dist/compatible/Lock.js +8 -27
  9. package/dist/compatible/Logger.js +34 -85
  10. package/dist/compatible/Semaphore.js +8 -27
  11. package/dist/compatible/array.js +10 -48
  12. package/dist/compatible/cli.js +77 -32
  13. package/dist/compatible/constants.js +11 -29
  14. package/dist/compatible/context.js +29 -57
  15. package/dist/compatible/cookie.js +27 -58
  16. package/dist/compatible/data-transfer.js +29 -61
  17. package/dist/compatible/datetime.js +41 -68
  18. package/dist/compatible/domNode.js +27 -59
  19. package/dist/compatible/expression/evaluators.js +41 -60
  20. package/dist/compatible/expression/helper.js +8 -31
  21. package/dist/compatible/expression/index.js +45 -85
  22. package/dist/compatible/expression/indicator-functions.js +10 -44
  23. package/dist/compatible/filesystem.js +29 -57
  24. package/dist/compatible/function.js +8 -32
  25. package/dist/compatible/index.js +98 -115
  26. package/dist/compatible/indicators.js +10 -41
  27. package/dist/compatible/module.js +27 -50
  28. package/dist/compatible/number.js +10 -36
  29. package/dist/compatible/object.js +39 -65
  30. package/dist/compatible/process.js +27 -55
  31. package/dist/compatible/scope.js +58 -146
  32. package/dist/compatible/string.js +39 -68
  33. package/dist/compatible/test-helper.js +10 -35
  34. package/dist/compatible/utility.js +27 -55
  35. package/dist/constants.d.ts +31 -0
  36. package/dist/constants.js +11 -29
  37. package/dist/context.js +29 -57
  38. package/dist/cookie.js +27 -58
  39. package/dist/data-transfer.js +29 -61
  40. package/dist/datetime.js +41 -68
  41. package/dist/domNode.js +27 -59
  42. package/dist/expression/evaluators.js +41 -60
  43. package/dist/expression/helper.js +8 -31
  44. package/dist/expression/index.js +45 -85
  45. package/dist/expression/indicator-functions.js +10 -44
  46. package/dist/filesystem.js +29 -57
  47. package/dist/function.js +8 -32
  48. package/dist/index.js +98 -115
  49. package/dist/indicators.js +10 -41
  50. package/dist/module.js +27 -50
  51. package/dist/number.js +10 -36
  52. package/dist/object.js +39 -65
  53. package/dist/process.js +27 -55
  54. package/dist/scope.js +58 -146
  55. package/dist/string.d.ts +5 -4
  56. package/dist/string.js +39 -68
  57. package/dist/test-helper.js +10 -35
  58. package/dist/type.d.ts +1 -1
  59. package/dist/utility.js +27 -55
  60. package/package.json +4 -4
package/dist/scope.js CHANGED
@@ -20,6 +20,7 @@ module.exports = x({ });
20
20
  /* harmony export */ Iy: function() { return /* binding */ ABBREVIATIONS; },
21
21
  /* harmony export */ YZ: function() { return /* binding */ LOCALES; },
22
22
  /* harmony export */ jE: function() { return /* binding */ PLAIN_OBJECT_PROTOTYPES; },
23
+ /* harmony export */ l_: function() { return /* binding */ CLI_COLOR; },
23
24
  /* harmony export */ p_: function() { return /* binding */ IGNORE_NULL_AND_UNDEFINED_SYMBOL; },
24
25
  /* harmony export */ rq: function() { return /* binding */ CLASS_TO_TYPE_MAPPING; },
25
26
  /* harmony export */ uJ: function() { return /* binding */ DEFAULT_ENCODING; }
@@ -40,7 +41,7 @@ module.exports = x({ });
40
41
  naming 3.0 unported license.
41
42
  See https://creativecommons.org/licenses/by/3.0/deed.de
42
43
  endregion
43
- */var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=(/* unused pure expression or super */ null && (["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"]));var CONSOLE_METHODS=(/* unused pure expression or super */ null && (["debug","error","info","log","warn"]));var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
44
+ */var CLI_COLOR={black:"\x1B[30m",blink:"\x1B[5m",blue:"\x1B[0;34m",bold:"\x1B[1m",cyan:"\x1B[36m",darkGray:"\x1B[0;90m",default:"\x1B[0m",dim:"\x1B[2m",green:"\x1B[32m",invert:"\x1B[7m",invisible:"\x1B[8m",lightBlue:"\x1B[0;94m",lightCyan:"\x1B[0;96m",lightGray:"\x1B[0;37m",lightGreen:"\x1B[0;92m",lightMagenta:"\x1B[0;95m",lightRed:"\x1B[0;91m",lightYellow:"\x1B[0;93m",magenta:"\x1B[35m",nodim:"\x1B[22m",noblink:"\x1B[25m",nobold:"\x1B[21m",noinvert:"\x1B[27m",noinvisible:"\x1B[28m",nounderline:"\x1B[24m",red:"\x1B[31m",underline:"\x1B[4m",white:"\x1B[37m",yellow:"\x1B[33m"};var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=(/* unused pure expression or super */ null && (["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"]));var CONSOLE_METHODS=(/* unused pure expression or super */ null && (["debug","error","info","log","warn"]));var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
44
45
  // conversion.
45
46
  var ABBREVIATIONS=["html","id","url","us","de","api","href"];// Saves a string with all css3 browser specific animation end event names.
46
47
  var ANIMATION_END_EVENT_NAMES="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd";// String representation to object type name mapping.
@@ -53,18 +54,6 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
53
54
  /* 2 */
54
55
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
55
56
 
56
- __webpack_require__.r(__webpack_exports__);
57
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
58
- /* harmony export */ Dx: function() { return /* binding */ isolatedRequire; },
59
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
60
- /* harmony export */ Ni: function() { return /* binding */ clearRequireCache; },
61
- /* harmony export */ SD: function() { return /* binding */ setOptionalRequire; },
62
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
63
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; },
64
- /* harmony export */ lE: function() { return /* binding */ currentRequire; },
65
- /* harmony export */ xN: function() { return /* binding */ isImportSyntaxSupported; },
66
- /* harmony export */ zM: function() { return /* binding */ getCurrentRequire; }
67
- /* harmony export */ });
68
57
  /* module decorator */ module = __webpack_require__.hmd(module);
69
58
  // #!/usr/bin/env babel-node
70
59
  // -*- coding: utf-8 -*-
@@ -792,7 +781,11 @@ var _compile=compile(expression,options),error=_compile.error,originalScopeNames
792
781
  * @param skipTagDelimitedParts - Indicates whether to, for example, ignore
793
782
  * html tags via "['<', '>']" (the default).
794
783
  * @returns Start and end index of matching range.
795
- */var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return String(value).toLowerCase()}}if(skipTagDelimitedParts===void 0){skipTagDelimitedParts=["<",">"]}var normalizedQuery=normalizer(query);var normalizedTarget=normalizer(target);var stringTarget=typeof target==="string"?target:normalizedTarget;if(normalizedTarget&&normalizedQuery){var inTag=false;for(var index=0;index<stringTarget.length;index+=1){if(inTag){if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[1])inTag=false;continue}if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[0]){inTag=true;continue}if(normalizer(stringTarget.substring(index)).startsWith(normalizedQuery)){if(normalizedQuery.length===1)return[index,index+1];for(var subIndex=stringTarget.length;subIndex>index;subIndex-=1)if(!normalizer(stringTarget.substring(index,subIndex)).startsWith(normalizedQuery))return[index,subIndex+1]}}}return null};/**
784
+ */var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return typeof value==="string"?value.trim().toLowerCase():value}}if(skipTagDelimitedParts===void 0){skipTagDelimitedParts=["<",">"]}var normalizedQuery=normalizer(query);var stringNormalizedQuery;if(typeof normalizedQuery==="string")stringNormalizedQuery=normalizedQuery;else{var match=target.match(normalizedQuery);stringNormalizedQuery=match?match[0]:""}if(!stringNormalizedQuery)return null;var normalizedTarget=normalizer(target);if(!normalizedTarget)return null;var stringTarget=typeof target==="string"?target:normalizedTarget;var inTag=false;for(var index=0;index<stringTarget.length;index+=1){if(inTag){if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[1])inTag=false;continue}if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[0]){inTag=true;continue}/*
785
+ Skip positions the normalizer strips away (e.g. leading
786
+ whitespace), so the reported match index aligns with the real
787
+ character.
788
+ */if(!normalizer(stringTarget.charAt(index)))continue;if(normalizer(stringTarget.substring(index)).startsWith(stringNormalizedQuery)){if(stringNormalizedQuery.length===1)return[index,index+1];for(var subIndex=stringTarget.length;subIndex>index;subIndex-=1)if(!normalizer(stringTarget.substring(index,subIndex)).startsWith(stringNormalizedQuery))return[index,subIndex+1]}}return null};/**
796
789
  * Fixes known encoding problems in given data.
797
790
  * @param data - To process.
798
791
  * @returns Processed data.
@@ -836,8 +829,9 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
836
829
  * @returns The formatted string.
837
830
  */var lowerCase=function lowerCase(string){return string.charAt(0).toLowerCase()+string.substring(1)};/**
838
831
  * Wraps given mark strings in a given target with a given marker.
839
- * @param target - String to search for marker.
840
- * @param givenWords - String or array of strings to search in target for.
832
+ * @param target - String to search in.
833
+ * @param givenSearchWords - String or regular expression or array of those to
834
+ * search for.
841
835
  * @param givenOptions - Defines highlighting behavior.
842
836
  * @param givenOptions.marker - HTML template string to mark.
843
837
  * @param givenOptions.normalizer - Pure normalization function to use before
@@ -845,11 +839,11 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
845
839
  * @param givenOptions.skipTagDelimitedParts - Indicates whether to, for
846
840
  * example, ignore html tags via "['<', '>']" (the default).
847
841
  * @returns Processed result.
848
- */var mark=function mark(target,givenWords,givenOptions){if(givenOptions===void 0){givenOptions={}}if(typeof target==="string"&&givenWords!==null&&givenWords!==void 0&&givenWords.length){var options=_objectSpread({marker:"<span class=\"tools-mark\">{1}</span>",normalizer:function normalizer(value){return String(value).toLowerCase()},skipTagDelimitedParts:["<",">"]},givenOptions);target=target.trim();var markedTarget=[];var words=[].concat(givenWords);var index=0;var _iterator6=_createForOfIteratorHelper(words),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _word=_step6.value;words[index]=options.normalizer(_word).trim();index+=1}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}var restTarget=target;var offset=0;/*
842
+ */var mark=function mark(target,givenSearchWords,givenOptions){if(givenOptions===void 0){givenOptions={}}if(typeof target==="string"&&(Array.isArray(givenSearchWords)&&givenSearchWords.length||givenSearchWords instanceof RegExp||typeof givenSearchWords==="string"&&givenSearchWords.length)){var options=_objectSpread({marker:"<span class=\"tools-mark\">{1}</span>",normalizer:function normalizer(value){return typeof value==="string"?value.trim().toLowerCase():value},skipTagDelimitedParts:["<",">"]},givenOptions);target=target.trim();var markedTarget=[];var searchWords=[].concat(givenSearchWords);var index=0;var _iterator6=_createForOfIteratorHelper(searchWords),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _word=_step6.value;searchWords[index]=options.normalizer(_word);index+=1}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}var restTarget=target;var offset=0;/*
849
843
  Search for matches as long there is enough target text remaining to
850
844
  walk through.
851
845
  */for(var iteration=0;iteration<_context_js__WEBPACK_IMPORTED_MODULE_2__/* .MAXIMAL_NUMBER_OF_ITERATIONS */ .$Q.value;iteration++){var nearestRange=null;var currentRange=void 0;// Find the nearest next matching word.
852
- var _iterator7=_createForOfIteratorHelper(words),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var word=_step7.value;currentRange=findNormalizedMatchRange(restTarget,word,options.normalizer,options.skipTagDelimitedParts);if(currentRange&&(!nearestRange||currentRange[0]<nearestRange[0]))nearestRange=currentRange}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}if(nearestRange){if(nearestRange[0]>0)markedTarget.push(target.substring(offset,offset+nearestRange[0]));markedTarget.push(typeof options.marker==="string"?format(options.marker,target.substring(offset+nearestRange[0],offset+nearestRange[1])):options.marker(target.substring(offset+nearestRange[0],offset+nearestRange[1]),markedTarget));offset+=nearestRange[1];restTarget=target.substring(offset)}else{if(restTarget.length)markedTarget.push(restTarget);break}}return typeof options.marker==="string"?markedTarget.join(""):markedTarget}return target};/**
846
+ var _iterator7=_createForOfIteratorHelper(searchWords),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var word=_step7.value;currentRange=findNormalizedMatchRange(restTarget,word,options.normalizer,options.skipTagDelimitedParts);if(currentRange&&(!nearestRange||currentRange[0]<nearestRange[0]))nearestRange=currentRange}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}if(nearestRange){if(nearestRange[0]>0)markedTarget.push(target.substring(offset,offset+nearestRange[0]));markedTarget.push(typeof options.marker==="string"?format(options.marker,target.substring(offset+nearestRange[0],offset+nearestRange[1])):options.marker(target.substring(offset+nearestRange[0],offset+nearestRange[1]),markedTarget));offset+=nearestRange[1];restTarget=target.substring(offset)}else{if(restTarget.length)markedTarget.push(restTarget);break}}return typeof options.marker==="string"?markedTarget.join(""):markedTarget}return target};/**
853
847
  * Normalizes a given phone number for automatic dialing or comparison.
854
848
  * @param value - Number to normalize.
855
849
  * @param dialable - Indicates whether the result should be dialed or
@@ -925,14 +919,6 @@ module.exports = x({ });
925
919
  /* 9 */
926
920
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
927
921
 
928
- __webpack_require__.r(__webpack_exports__);
929
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
930
- /* harmony export */ LI: function() { return /* binding */ round; },
931
- /* harmony export */ RI: function() { return /* binding */ floor; },
932
- /* harmony export */ W2: function() { return /* binding */ isNotANumber; },
933
- /* harmony export */ mk: function() { return /* binding */ ceil; },
934
- /* harmony export */ n$: function() { return /* binding */ getUTCTimestamp; }
935
- /* harmony export */ });
936
922
  /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
937
923
  /* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
938
924
  // #!/usr/bin/env babel-node
@@ -1185,37 +1171,13 @@ timeoutID=null;recentParameters=[]},thresholdInMilliseconds)}};/**
1185
1171
  /* 15 */
1186
1172
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1187
1173
 
1188
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1189
- /* harmony export */ l: function() { return /* binding */ CLI_COLOR; }
1190
- /* harmony export */ });
1191
- // #!/usr/bin/env babel-node
1192
- // -*- coding: utf-8 -*-
1193
- /** @module cli *//* !
1194
- region header
1195
- [Project page](https://torben.website/clientnode)
1196
-
1197
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
1198
-
1199
- License
1200
- -------
1201
-
1202
- This library written by Torben Sickert stands under a creative commons
1203
- naming 3.0 unported license.
1204
- See https://creativecommons.org/licenses/by/3.0/deed.de
1205
- endregion
1206
- */var CLI_COLOR={black:"\x1B[30m",blink:"\x1B[5m",blue:"\x1B[0;34m",bold:"\x1B[1m",cyan:"\x1B[36m",darkGray:"\x1B[0;90m",default:"\x1B[0m",dim:"\x1B[2m",green:"\x1B[32m",invert:"\x1B[7m",invisible:"\x1B[8m",lightBlue:"\x1B[0;94m",lightCyan:"\x1B[0;96m",lightGray:"\x1B[0;37m",lightGreen:"\x1B[0;92m",lightMagenta:"\x1B[0;95m",lightRed:"\x1B[0;91m",lightYellow:"\x1B[0;93m",magenta:"\x1B[35m",nodim:"\x1B[22m",noblink:"\x1B[25m",nobold:"\x1B[21m",noinvert:"\x1B[27m",noinvisible:"\x1B[28m",nounderline:"\x1B[24m",red:"\x1B[31m",underline:"\x1B[4m",white:"\x1B[37m",yellow:"\x1B[33m"};
1207
-
1208
- /***/ }),
1209
- /* 16 */
1210
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1211
-
1212
1174
  __webpack_require__.r(__webpack_exports__);
1213
1175
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1214
1176
  /* harmony export */ A_: function() { return /* binding */ LEVELS; },
1215
1177
  /* harmony export */ Vy: function() { return /* binding */ Logger; },
1216
1178
  /* harmony export */ Wh: function() { return /* binding */ LEVELS_COLOR; }
1217
1179
  /* harmony export */ });
1218
- /* harmony import */ var _cli_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
1180
+ /* harmony import */ var _cli_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
1219
1181
  /* harmony import */ var _context_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
1220
1182
  /* harmony import */ var _indicators_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
1221
1183
  /* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
@@ -1234,7 +1196,7 @@ __webpack_require__.r(__webpack_exports__);
1234
1196
  naming 3.0 unported license.
1235
1197
  See https://creativecommons.org/licenses/by/3.0/deed.de
1236
1198
  endregion
1237
- */var _Logger;function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+""}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)};var LEVELS=["error","critical","warn","info","debug"];var LEVELS_COLOR=[_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.red,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.magenta,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.yellow,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.green,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.blue];/**
1199
+ */var _Logger;function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+""}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)};var LEVELS=["error","critical","warn","info","debug"];var LEVELS_COLOR=[_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.red,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.magenta,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.yellow,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.green,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.blue];/**
1238
1200
  * This plugin provides such interface logic like generic controller logic for
1239
1201
  * integrating plugins into $, mutual exclusion for dependent gui elements,
1240
1202
  * logging additional string, array or function handling. A set of helper
@@ -1261,8 +1223,8 @@ __webpack_require__.r(__webpack_exports__);
1261
1223
  * log level specific annotations.
1262
1224
  * @param level - Description of log messages importance.
1263
1225
  * @param additionalArguments - Additional values to print.
1264
- */},{key:"log",value:function log(object,force,avoidAnnotation,level){if(force===void 0){force=false}if(avoidAnnotation===void 0){avoidAnnotation=false}if(level===void 0){level="info"}var currentLevelIndex=LEVELS.indexOf(this.level);var levelIndex=LEVELS.indexOf(level);if(force||currentLevelIndex>=levelIndex){var _globalContext$consol;var messages=[];var annotation="".concat(LEVELS_COLOR[levelIndex]).concat(level)+"".concat(_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.default,":").concat(this.name,":")+"".concat(new Date().toISOString(),":");for(var _len=arguments.length,additionalArguments=new Array(_len>4?_len-4:0),_key=4;_key<_len;_key++){additionalArguments[_key-4]=arguments[_key]}if(avoidAnnotation)messages.push(object);else if(typeof object==="string")messages.push.apply(messages,[annotation,object].concat(additionalArguments));else if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_2__/* .isNumeric */ .kf)(object)||typeof object==="boolean")messages.push.apply(messages,[annotation,object.toString()].concat(additionalArguments));else{var multiLineAnnotation=annotation.substring(0,annotation.length-1);var lineLength=79-2;// Color codes are invisible so we have to add it.
1265
- var remainingLength=lineLength+LEVELS_COLOR[levelIndex].length+_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.default.length-multiLineAnnotation.length;var halfRemainingLength=Math.floor(remainingLength/2);this.log(",".concat("-".repeat(halfRemainingLength))+multiLineAnnotation+"-".repeat(halfRemainingLength)+"".concat("-".repeat(remainingLength%2),","),force,true,level);this.log(object,force,true,level);this.log("'".concat("-".repeat(lineLength),"'"),force,true,level)}if(messages.length)if(!(_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console&&level in _context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console)||_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console[level]===_context_js__WEBPACK_IMPORTED_MODULE_1__/* .NOOP */ .tE){var _globalContext$window;if(Object.prototype.hasOwnProperty.call(_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz,"window")&&Object.prototype.hasOwnProperty.call(_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.window,"alert"))(_globalContext$window=_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.window)===null||_globalContext$window===void 0||_globalContext$window.alert(messages.join(" "))}else(_globalContext$consol=_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console)[level].apply(_globalContext$consol,messages)}}/**
1226
+ */},{key:"log",value:function log(object,force,avoidAnnotation,level){if(force===void 0){force=false}if(avoidAnnotation===void 0){avoidAnnotation=false}if(level===void 0){level="info"}var currentLevelIndex=LEVELS.indexOf(this.level);var levelIndex=LEVELS.indexOf(level);if(force||currentLevelIndex>=levelIndex){var _globalContext$consol;var messages=[];var annotation="".concat(LEVELS_COLOR[levelIndex]).concat(level)+"".concat(_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.default,":").concat(this.name,":")+"".concat(new Date().toISOString(),":");for(var _len=arguments.length,additionalArguments=new Array(_len>4?_len-4:0),_key=4;_key<_len;_key++){additionalArguments[_key-4]=arguments[_key]}if(avoidAnnotation)messages.push(object);else if(typeof object==="string")messages.push.apply(messages,[annotation,object].concat(additionalArguments));else if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_2__/* .isNumeric */ .kf)(object)||typeof object==="boolean")messages.push.apply(messages,[annotation,object.toString()].concat(additionalArguments));else{var multiLineAnnotation=annotation.substring(0,annotation.length-1);var lineLength=79-2;// Color codes are invisible so we have to add it.
1227
+ var remainingLength=lineLength+LEVELS_COLOR[levelIndex].length+_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.default.length-multiLineAnnotation.length;var halfRemainingLength=Math.floor(remainingLength/2);this.log(",".concat("-".repeat(halfRemainingLength))+multiLineAnnotation+"-".repeat(halfRemainingLength)+"".concat("-".repeat(remainingLength%2),","),force,true,level);this.log(object,force,true,level);this.log("'".concat("-".repeat(lineLength),"'"),force,true,level)}if(messages.length)if(!(_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console&&level in _context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console)||_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console[level]===_context_js__WEBPACK_IMPORTED_MODULE_1__/* .NOOP */ .tE){var _globalContext$window;if(Object.prototype.hasOwnProperty.call(_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz,"window")&&Object.prototype.hasOwnProperty.call(_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.window,"alert"))(_globalContext$window=_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.window)===null||_globalContext$window===void 0||_globalContext$window.alert(messages.join(" "))}else(_globalContext$consol=_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console)[level].apply(_globalContext$consol,messages)}}/**
1266
1228
  * Wrapper method for the native console method usually provided by
1267
1229
  * interpreter.
1268
1230
  * @param object - Any object to print.
@@ -1305,29 +1267,9 @@ var remainingLength=lineLength+LEVELS_COLOR[levelIndex].length+_cli_js__WEBPACK_
1305
1267
  */function configureAllInstances(options){if(options===void 0){options={}}if(options.level)Logger.defaultLevel=options.level;if(options.name)Logger.defaultName=options.name;for(var _i=0,_Object$values=Object.values(Logger.instances);_i<_Object$values.length;_i++){var logger=_Object$values[_i];logger.configure(options)}}},{key:"show",value:function show(object,level,currentLevel){if(level===void 0){level=3}if(currentLevel===void 0){currentLevel=0}var output="";if((0,_object_js__WEBPACK_IMPORTED_MODULE_3__/* .determineType */ .Sj)(object)==="object"){for(var _i2=0,_Object$entries=Object.entries(object);_i2<_Object$entries.length;_i2++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i2],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];output+="".concat(key,": ");if(currentLevel<=level)output+=Logger.show(value,level,currentLevel+1);else output+=String(value);output+="\n"}return output.trim()}output=String(object).trim();return"".concat(output," (Type: \"").concat((0,_object_js__WEBPACK_IMPORTED_MODULE_3__/* .determineType */ .Sj)(object),"\")")}}])}();_Logger=Logger;_defineProperty(Logger,"defaultLevel","warn");_defineProperty(Logger,"defaultName","app");_defineProperty(Logger,"selfClass",_Logger);_defineProperty(Logger,"instances",{});_defineProperty(Logger,"runtimeVersion",Math.random());/* harmony default export */ __webpack_exports__.Ay = (Logger);
1306
1268
 
1307
1269
  /***/ }),
1308
- /* 17 */
1270
+ /* 16 */
1309
1271
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1310
1272
 
1311
- __webpack_require__.r(__webpack_exports__);
1312
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1313
- /* harmony export */ Am: function() { return /* binding */ unique; },
1314
- /* harmony export */ En: function() { return /* binding */ paginate; },
1315
- /* harmony export */ Hb: function() { return /* binding */ removeArrayItem; },
1316
- /* harmony export */ Ht: function() { return /* binding */ extractIfPropertyMatches; },
1317
- /* harmony export */ Ny: function() { return /* binding */ _permute2; },
1318
- /* harmony export */ QR: function() { return /* binding */ makeRange; },
1319
- /* harmony export */ ST: function() { return /* binding */ aggregatePropertyIfEqual; },
1320
- /* harmony export */ UX: function() { return /* binding */ sortTopological; },
1321
- /* harmony export */ _2: function() { return /* binding */ sumUpProperty; },
1322
- /* harmony export */ bH: function() { return /* binding */ permuteLength; },
1323
- /* harmony export */ dO: function() { return /* binding */ deleteEmptyItems; },
1324
- /* harmony export */ gv: function() { return /* binding */ makeArray; },
1325
- /* harmony export */ h1: function() { return /* binding */ merge; },
1326
- /* harmony export */ o6: function() { return /* binding */ extract; },
1327
- /* harmony export */ q6: function() { return /* binding */ extractIfPropertyExists; },
1328
- /* harmony export */ u7: function() { return /* binding */ extractIfMatches; },
1329
- /* harmony export */ y$: function() { return /* binding */ intersect; }
1330
- /* harmony export */ });
1331
1273
  /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1332
1274
  /* harmony import */ var _indicators_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
1333
1275
  // #!/usr/bin/env babel-node
@@ -1502,7 +1444,7 @@ _visit(_edge2[1],[_node])}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}s
1502
1444
  */var unique=function unique(data){var result=[];var _iterator7=_createForOfIteratorHelper(makeArray(data)),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var value=_step7.value;if(!result.includes(value))result.push(value)}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}return result};
1503
1445
 
1504
1446
  /***/ }),
1505
- /* 18 */
1447
+ /* 17 */
1506
1448
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1507
1449
 
1508
1450
  __webpack_require__.r(__webpack_exports__);
@@ -1619,15 +1561,9 @@ var result=new Date(value);if(isNaN(result.getDate()))return null;return result}
1619
1561
  */var sliceWeekday=function sliceWeekday(value){var weekdayPattern=/[a-z]{2}\.+ *([^ ].*)$/i;var weekdayMatch=weekdayPattern.exec(value);if(weekdayMatch)return value.replace(weekdayPattern,"$1");return value};
1620
1562
 
1621
1563
  /***/ }),
1622
- /* 19 */
1564
+ /* 18 */
1623
1565
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1624
1566
 
1625
- __webpack_require__.r(__webpack_exports__);
1626
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1627
- /* harmony export */ D_: function() { return /* binding */ identity; },
1628
- /* harmony export */ Gj: function() { return /* binding */ _getParameterNames; },
1629
- /* harmony export */ gH: function() { return /* binding */ invertArrayFilter; }
1630
- /* harmony export */ });
1631
1567
  /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1632
1568
  // #!/usr/bin/env babel-node
1633
1569
  // -*- coding: utf-8 -*-
@@ -1665,6 +1601,7 @@ parameter=/([^= ]+) *=>.*/m.exec(functionCode);var names=[];if(parameter&&parame
1665
1601
  */var invertArrayFilter=function invertArrayFilter(filter){return function(data){if(Array.isArray(data)){for(var _len=arguments.length,additionalParameter=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){additionalParameter[_key-1]=arguments[_key]}var filteredData=filter.apply(void 0,[data].concat(additionalParameter));var result=[];if(filteredData.length){var _iterator2=_createForOfIteratorHelper(data),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var date=_step2.value;if(!filteredData.includes(date))result.push(date)}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}else result=data;return result}return data}};
1666
1602
 
1667
1603
  /***/ }),
1604
+ /* 19 */,
1668
1605
  /* 20 */,
1669
1606
  /* 21 */,
1670
1607
  /* 22 */,
@@ -1684,12 +1621,12 @@ parameter=/([^= ]+) *=>.*/m.exec(functionCode);var names=[];if(parameter&&parame
1684
1621
  /* harmony export */ });
1685
1622
  /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1686
1623
  /* harmony import */ var _context_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
1687
- /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
1688
- /* harmony import */ var _datetime_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18);
1624
+ /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16);
1625
+ /* harmony import */ var _datetime_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17);
1689
1626
  /* harmony import */ var _filesystem_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12);
1690
- /* harmony import */ var _function_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19);
1627
+ /* harmony import */ var _function_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18);
1691
1628
  /* harmony import */ var _indicators_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4);
1692
- /* harmony import */ var _Logger_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(16);
1629
+ /* harmony import */ var _Logger_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(15);
1693
1630
  /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2);
1694
1631
  /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9);
1695
1632
  /* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(3);
@@ -1939,74 +1876,49 @@ __webpack_require__.d(_utility_js__WEBPACK_IMPORTED_MODULE_12___namespace_object
1939
1876
  /******/
1940
1877
  /************************************************************************/
1941
1878
  /******/ /* webpack/runtime/define property getters */
1942
- /******/ !function() {
1943
- /******/ // define getter/value functions for harmony exports
1944
- /******/ __webpack_require__.d = function(exports, definition) {
1945
- /******/ if(Array.isArray(definition)) {
1946
- /******/ var i = 0;
1947
- /******/ while(i < definition.length) {
1948
- /******/ var key = definition[i++];
1949
- /******/ var binding = definition[i++];
1950
- /******/ if(!__webpack_require__.o(exports, key)) {
1951
- /******/ if(binding === 0) {
1952
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
1953
- /******/ } else {
1954
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
1955
- /******/ }
1956
- /******/ } else if(binding === 0) { i++; }
1957
- /******/ }
1958
- /******/ } else {
1959
- /******/ for(var key in definition) {
1960
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1961
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1962
- /******/ }
1963
- /******/ }
1879
+ /******/ // define getter/value functions for harmony exports
1880
+ /******/ __webpack_require__.d = function(exports, definition) {
1881
+ /******/ for(var key in definition) {
1882
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1883
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1964
1884
  /******/ }
1965
- /******/ };
1966
- /******/ }();
1885
+ /******/ }
1886
+ /******/ };
1967
1887
  /******/
1968
1888
  /******/ /* webpack/runtime/global */
1969
- /******/ !function() {
1970
- /******/ __webpack_require__.g = (function() {
1971
- /******/ if (typeof globalThis === 'object') return globalThis;
1972
- /******/ try {
1973
- /******/ return this || new Function('return this')();
1974
- /******/ } catch (e) {
1975
- /******/ if (typeof window === 'object') return window;
1976
- /******/ }
1977
- /******/ })();
1978
- /******/ }();
1889
+ /******/ __webpack_require__.g = (function() {
1890
+ /******/ if (typeof globalThis === 'object') return globalThis;
1891
+ /******/ try {
1892
+ /******/ return this || new Function('return this')();
1893
+ /******/ } catch (e) {
1894
+ /******/ if (typeof window === 'object') return window;
1895
+ /******/ }
1896
+ /******/ })();
1979
1897
  /******/
1980
1898
  /******/ /* webpack/runtime/harmony module decorator */
1981
- /******/ !function() {
1982
- /******/ __webpack_require__.hmd = function(module) {
1983
- /******/ module = Object.create(module);
1984
- /******/ if (!module.children) module.children = [];
1985
- /******/ Object.defineProperty(module, 'exports', {
1986
- /******/ enumerable: true,
1987
- /******/ set: function() {
1988
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1989
- /******/ }
1990
- /******/ });
1991
- /******/ return module;
1992
- /******/ };
1993
- /******/ }();
1899
+ /******/ __webpack_require__.hmd = function(module) {
1900
+ /******/ module = Object.create(module);
1901
+ /******/ if (!module.children) module.children = [];
1902
+ /******/ Object.defineProperty(module, 'exports', {
1903
+ /******/ enumerable: true,
1904
+ /******/ set: function() {
1905
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1906
+ /******/ }
1907
+ /******/ });
1908
+ /******/ return module;
1909
+ /******/ };
1994
1910
  /******/
1995
1911
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
1996
- /******/ !function() {
1997
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
1998
- /******/ }();
1912
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
1999
1913
  /******/
2000
1914
  /******/ /* webpack/runtime/make namespace object */
2001
- /******/ !function() {
2002
- /******/ // define __esModule on exports
2003
- /******/ __webpack_require__.r = function(exports) {
2004
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2005
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2006
- /******/ }
2007
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
2008
- /******/ };
2009
- /******/ }();
1915
+ /******/ // define __esModule on exports
1916
+ /******/ __webpack_require__.r = function(exports) {
1917
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1918
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1919
+ /******/ }
1920
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
1921
+ /******/ };
2010
1922
  /******/
2011
1923
  /************************************************************************/
2012
1924
  /******/
package/dist/string.d.ts CHANGED
@@ -217,7 +217,7 @@ export declare const evaluateOrThrowError: <Result = string, Scope extends objec
217
217
  * html tags via "['<', '>']" (the default).
218
218
  * @returns Start and end index of matching range.
219
219
  */
220
- export declare const findNormalizedMatchRange: (target: unknown, query: unknown, normalizer?: (value: unknown) => string, skipTagDelimitedParts?: null | [string, string]) => Array<number> | null;
220
+ export declare const findNormalizedMatchRange: (target: string, query: RegExp | string, normalizer?: <T extends RegExp | string>(value: T) => T, skipTagDelimitedParts?: null | [string, string]) => Array<number> | null;
221
221
  /**
222
222
  * Fixes known encoding problems in given data.
223
223
  * @param data - To process.
@@ -255,8 +255,9 @@ export declare const maskForRegularExpression: (value: string) => string;
255
255
  export declare const lowerCase: (string: string) => string;
256
256
  /**
257
257
  * Wraps given mark strings in a given target with a given marker.
258
- * @param target - String to search for marker.
259
- * @param givenWords - String or array of strings to search in target for.
258
+ * @param target - String to search in.
259
+ * @param givenSearchWords - String or regular expression or array of those to
260
+ * search for.
260
261
  * @param givenOptions - Defines highlighting behavior.
261
262
  * @param givenOptions.marker - HTML template string to mark.
262
263
  * @param givenOptions.normalizer - Pure normalization function to use before
@@ -265,7 +266,7 @@ export declare const lowerCase: (string: string) => string;
265
266
  * example, ignore html tags via "['<', '>']" (the default).
266
267
  * @returns Processed result.
267
268
  */
268
- export declare const mark: (target: unknown, givenWords?: Array<string> | string, givenOptions?: Partial<StringMarkOptions>) => unknown;
269
+ export declare const mark: (target: RegExp | string, givenSearchWords?: Array<RegExp | string> | RegExp | string, givenOptions?: Partial<StringMarkOptions>) => unknown;
269
270
  /**
270
271
  * Normalizes a given phone number for automatic dialing or comparison.
271
272
  * @param value - Number to normalize.
package/dist/string.js CHANGED
@@ -20,7 +20,7 @@ module.exports = x({ });
20
20
  /* harmony export */ rq: function() { return /* binding */ CLASS_TO_TYPE_MAPPING; },
21
21
  /* harmony export */ uJ: function() { return /* binding */ DEFAULT_ENCODING; }
22
22
  /* harmony export */ });
23
- /* unused harmony exports CLOSE_EVENT_NAMES, CONSOLE_METHODS, VALUE_COPY_SYMBOL, IGNORE_NULL_AND_UNDEFINED_SYMBOL, ANIMATION_END_EVENT_NAMES, KEY_CODES, KEYBOARD_CODES, LOCALES, PLAIN_OBJECT_PROTOTYPES, TRANSITION_END_EVENT_NAMES */
23
+ /* unused harmony exports CLI_COLOR, CLOSE_EVENT_NAMES, CONSOLE_METHODS, VALUE_COPY_SYMBOL, IGNORE_NULL_AND_UNDEFINED_SYMBOL, ANIMATION_END_EVENT_NAMES, KEY_CODES, KEYBOARD_CODES, LOCALES, PLAIN_OBJECT_PROTOTYPES, TRANSITION_END_EVENT_NAMES */
24
24
  // #!/usr/bin/env babel-node
25
25
  // -*- coding: utf-8 -*-
26
26
  /** @module constants *//* !
@@ -36,7 +36,7 @@ module.exports = x({ });
36
36
  naming 3.0 unported license.
37
37
  See https://creativecommons.org/licenses/by/3.0/deed.de
38
38
  endregion
39
- */var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=(/* unused pure expression or super */ null && (["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"]));var CONSOLE_METHODS=(/* unused pure expression or super */ null && (["debug","error","info","log","warn"]));var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
39
+ */var CLI_COLOR=(/* unused pure expression or super */ null && ({black:"\x1B[30m",blink:"\x1B[5m",blue:"\x1B[0;34m",bold:"\x1B[1m",cyan:"\x1B[36m",darkGray:"\x1B[0;90m",default:"\x1B[0m",dim:"\x1B[2m",green:"\x1B[32m",invert:"\x1B[7m",invisible:"\x1B[8m",lightBlue:"\x1B[0;94m",lightCyan:"\x1B[0;96m",lightGray:"\x1B[0;37m",lightGreen:"\x1B[0;92m",lightMagenta:"\x1B[0;95m",lightRed:"\x1B[0;91m",lightYellow:"\x1B[0;93m",magenta:"\x1B[35m",nodim:"\x1B[22m",noblink:"\x1B[25m",nobold:"\x1B[21m",noinvert:"\x1B[27m",noinvisible:"\x1B[28m",nounderline:"\x1B[24m",red:"\x1B[31m",underline:"\x1B[4m",white:"\x1B[37m",yellow:"\x1B[33m"}));var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=(/* unused pure expression or super */ null && (["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"]));var CONSOLE_METHODS=(/* unused pure expression or super */ null && (["debug","error","info","log","warn"]));var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
40
40
  // conversion.
41
41
  var ABBREVIATIONS=["html","id","url","us","de","api","href"];// Saves a string with all css3 browser specific animation end event names.
42
42
  var ANIMATION_END_EVENT_NAMES="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd";// String representation to object type name mapping.
@@ -49,11 +49,6 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
49
49
  /* 2 */
50
50
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
51
51
 
52
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
53
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
54
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
55
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
56
- /* harmony export */ });
57
52
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
58
53
  /* module decorator */ module = __webpack_require__.hmd(module);
59
54
  // #!/usr/bin/env babel-node
@@ -354,12 +349,6 @@ result=object;if(isPlainObject(exclude)){var useCopy=false;var copy=_objectSprea
354
349
  /* 4 */
355
350
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
356
351
 
357
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
358
- /* harmony export */ Tn: function() { return /* binding */ isFunction; },
359
- /* harmony export */ jh: function() { return /* binding */ isMap; },
360
- /* harmony export */ kf: function() { return /* binding */ isNumeric; },
361
- /* harmony export */ vM: function() { return /* binding */ isSet; }
362
- /* harmony export */ });
363
352
  /* unused harmony exports isWindow, isArrayLike, isAnyMatching, isObject, isPlainObject, isProxy */
364
353
  /* unused harmony import specifier */ var PLAIN_OBJECT_PROTOTYPES;
365
354
  /* unused harmony import specifier */ var determineType;
@@ -767,7 +756,11 @@ var _compile=compile(expression,options),error=_compile.error,originalScopeNames
767
756
  * @param skipTagDelimitedParts - Indicates whether to, for example, ignore
768
757
  * html tags via "['<', '>']" (the default).
769
758
  * @returns Start and end index of matching range.
770
- */var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return String(value).toLowerCase()}}if(skipTagDelimitedParts===void 0){skipTagDelimitedParts=["<",">"]}var normalizedQuery=normalizer(query);var normalizedTarget=normalizer(target);var stringTarget=typeof target==="string"?target:normalizedTarget;if(normalizedTarget&&normalizedQuery){var inTag=false;for(var index=0;index<stringTarget.length;index+=1){if(inTag){if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[1])inTag=false;continue}if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[0]){inTag=true;continue}if(normalizer(stringTarget.substring(index)).startsWith(normalizedQuery)){if(normalizedQuery.length===1)return[index,index+1];for(var subIndex=stringTarget.length;subIndex>index;subIndex-=1)if(!normalizer(stringTarget.substring(index,subIndex)).startsWith(normalizedQuery))return[index,subIndex+1]}}}return null};/**
759
+ */var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return typeof value==="string"?value.trim().toLowerCase():value}}if(skipTagDelimitedParts===void 0){skipTagDelimitedParts=["<",">"]}var normalizedQuery=normalizer(query);var stringNormalizedQuery;if(typeof normalizedQuery==="string")stringNormalizedQuery=normalizedQuery;else{var match=target.match(normalizedQuery);stringNormalizedQuery=match?match[0]:""}if(!stringNormalizedQuery)return null;var normalizedTarget=normalizer(target);if(!normalizedTarget)return null;var stringTarget=typeof target==="string"?target:normalizedTarget;var inTag=false;for(var index=0;index<stringTarget.length;index+=1){if(inTag){if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[1])inTag=false;continue}if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[0]){inTag=true;continue}/*
760
+ Skip positions the normalizer strips away (e.g. leading
761
+ whitespace), so the reported match index aligns with the real
762
+ character.
763
+ */if(!normalizer(stringTarget.charAt(index)))continue;if(normalizer(stringTarget.substring(index)).startsWith(stringNormalizedQuery)){if(stringNormalizedQuery.length===1)return[index,index+1];for(var subIndex=stringTarget.length;subIndex>index;subIndex-=1)if(!normalizer(stringTarget.substring(index,subIndex)).startsWith(stringNormalizedQuery))return[index,subIndex+1]}}return null};/**
771
764
  * Fixes known encoding problems in given data.
772
765
  * @param data - To process.
773
766
  * @returns Processed data.
@@ -811,8 +804,9 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
811
804
  * @returns The formatted string.
812
805
  */var lowerCase=function lowerCase(string){return string.charAt(0).toLowerCase()+string.substring(1)};/**
813
806
  * Wraps given mark strings in a given target with a given marker.
814
- * @param target - String to search for marker.
815
- * @param givenWords - String or array of strings to search in target for.
807
+ * @param target - String to search in.
808
+ * @param givenSearchWords - String or regular expression or array of those to
809
+ * search for.
816
810
  * @param givenOptions - Defines highlighting behavior.
817
811
  * @param givenOptions.marker - HTML template string to mark.
818
812
  * @param givenOptions.normalizer - Pure normalization function to use before
@@ -820,11 +814,11 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
820
814
  * @param givenOptions.skipTagDelimitedParts - Indicates whether to, for
821
815
  * example, ignore html tags via "['<', '>']" (the default).
822
816
  * @returns Processed result.
823
- */var mark=function mark(target,givenWords,givenOptions){if(givenOptions===void 0){givenOptions={}}if(typeof target==="string"&&givenWords!==null&&givenWords!==void 0&&givenWords.length){var options=_objectSpread({marker:"<span class=\"tools-mark\">{1}</span>",normalizer:function normalizer(value){return String(value).toLowerCase()},skipTagDelimitedParts:["<",">"]},givenOptions);target=target.trim();var markedTarget=[];var words=[].concat(givenWords);var index=0;var _iterator6=_createForOfIteratorHelper(words),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _word=_step6.value;words[index]=options.normalizer(_word).trim();index+=1}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}var restTarget=target;var offset=0;/*
817
+ */var mark=function mark(target,givenSearchWords,givenOptions){if(givenOptions===void 0){givenOptions={}}if(typeof target==="string"&&(Array.isArray(givenSearchWords)&&givenSearchWords.length||givenSearchWords instanceof RegExp||typeof givenSearchWords==="string"&&givenSearchWords.length)){var options=_objectSpread({marker:"<span class=\"tools-mark\">{1}</span>",normalizer:function normalizer(value){return typeof value==="string"?value.trim().toLowerCase():value},skipTagDelimitedParts:["<",">"]},givenOptions);target=target.trim();var markedTarget=[];var searchWords=[].concat(givenSearchWords);var index=0;var _iterator6=_createForOfIteratorHelper(searchWords),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _word=_step6.value;searchWords[index]=options.normalizer(_word);index+=1}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}var restTarget=target;var offset=0;/*
824
818
  Search for matches as long there is enough target text remaining to
825
819
  walk through.
826
820
  */for(var iteration=0;iteration<_context_js__WEBPACK_IMPORTED_MODULE_2__/* .MAXIMAL_NUMBER_OF_ITERATIONS */ .$Q.value;iteration++){var nearestRange=null;var currentRange=void 0;// Find the nearest next matching word.
827
- var _iterator7=_createForOfIteratorHelper(words),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var word=_step7.value;currentRange=findNormalizedMatchRange(restTarget,word,options.normalizer,options.skipTagDelimitedParts);if(currentRange&&(!nearestRange||currentRange[0]<nearestRange[0]))nearestRange=currentRange}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}if(nearestRange){if(nearestRange[0]>0)markedTarget.push(target.substring(offset,offset+nearestRange[0]));markedTarget.push(typeof options.marker==="string"?format(options.marker,target.substring(offset+nearestRange[0],offset+nearestRange[1])):options.marker(target.substring(offset+nearestRange[0],offset+nearestRange[1]),markedTarget));offset+=nearestRange[1];restTarget=target.substring(offset)}else{if(restTarget.length)markedTarget.push(restTarget);break}}return typeof options.marker==="string"?markedTarget.join(""):markedTarget}return target};/**
821
+ var _iterator7=_createForOfIteratorHelper(searchWords),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var word=_step7.value;currentRange=findNormalizedMatchRange(restTarget,word,options.normalizer,options.skipTagDelimitedParts);if(currentRange&&(!nearestRange||currentRange[0]<nearestRange[0]))nearestRange=currentRange}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}if(nearestRange){if(nearestRange[0]>0)markedTarget.push(target.substring(offset,offset+nearestRange[0]));markedTarget.push(typeof options.marker==="string"?format(options.marker,target.substring(offset+nearestRange[0],offset+nearestRange[1])):options.marker(target.substring(offset+nearestRange[0],offset+nearestRange[1]),markedTarget));offset+=nearestRange[1];restTarget=target.substring(offset)}else{if(restTarget.length)markedTarget.push(restTarget);break}}return typeof options.marker==="string"?markedTarget.join(""):markedTarget}return target};/**
828
822
  * Normalizes a given phone number for automatic dialing or comparison.
829
823
  * @param value - Number to normalize.
830
824
  * @param dialable - Indicates whether the result should be dialed or
@@ -1055,63 +1049,40 @@ try{mkdirSync(targetPath)}catch(error){if(error.code!=="EEXIST")throw error}for(
1055
1049
  /******/
1056
1050
  /************************************************************************/
1057
1051
  /******/ /* webpack/runtime/define property getters */
1058
- /******/ !function() {
1059
- /******/ // define getter/value functions for harmony exports
1060
- /******/ __webpack_require__.d = function(exports, definition) {
1061
- /******/ if(Array.isArray(definition)) {
1062
- /******/ var i = 0;
1063
- /******/ while(i < definition.length) {
1064
- /******/ var key = definition[i++];
1065
- /******/ var binding = definition[i++];
1066
- /******/ if(!__webpack_require__.o(exports, key)) {
1067
- /******/ if(binding === 0) {
1068
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
1069
- /******/ } else {
1070
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
1071
- /******/ }
1072
- /******/ } else if(binding === 0) { i++; }
1073
- /******/ }
1074
- /******/ } else {
1075
- /******/ for(var key in definition) {
1076
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1077
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1078
- /******/ }
1079
- /******/ }
1052
+ /******/ // define getter/value functions for harmony exports
1053
+ /******/ __webpack_require__.d = function(exports, definition) {
1054
+ /******/ for(var key in definition) {
1055
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1056
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1080
1057
  /******/ }
1081
- /******/ };
1082
- /******/ }();
1058
+ /******/ }
1059
+ /******/ };
1083
1060
  /******/
1084
1061
  /******/ /* webpack/runtime/global */
1085
- /******/ !function() {
1086
- /******/ __webpack_require__.g = (function() {
1087
- /******/ if (typeof globalThis === 'object') return globalThis;
1088
- /******/ try {
1089
- /******/ return this || new Function('return this')();
1090
- /******/ } catch (e) {
1091
- /******/ if (typeof window === 'object') return window;
1092
- /******/ }
1093
- /******/ })();
1094
- /******/ }();
1062
+ /******/ __webpack_require__.g = (function() {
1063
+ /******/ if (typeof globalThis === 'object') return globalThis;
1064
+ /******/ try {
1065
+ /******/ return this || new Function('return this')();
1066
+ /******/ } catch (e) {
1067
+ /******/ if (typeof window === 'object') return window;
1068
+ /******/ }
1069
+ /******/ })();
1095
1070
  /******/
1096
1071
  /******/ /* webpack/runtime/harmony module decorator */
1097
- /******/ !function() {
1098
- /******/ __webpack_require__.hmd = function(module) {
1099
- /******/ module = Object.create(module);
1100
- /******/ if (!module.children) module.children = [];
1101
- /******/ Object.defineProperty(module, 'exports', {
1102
- /******/ enumerable: true,
1103
- /******/ set: function() {
1104
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1105
- /******/ }
1106
- /******/ });
1107
- /******/ return module;
1108
- /******/ };
1109
- /******/ }();
1072
+ /******/ __webpack_require__.hmd = function(module) {
1073
+ /******/ module = Object.create(module);
1074
+ /******/ if (!module.children) module.children = [];
1075
+ /******/ Object.defineProperty(module, 'exports', {
1076
+ /******/ enumerable: true,
1077
+ /******/ set: function() {
1078
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1079
+ /******/ }
1080
+ /******/ });
1081
+ /******/ return module;
1082
+ /******/ };
1110
1083
  /******/
1111
1084
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
1112
- /******/ !function() {
1113
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
1114
- /******/ }();
1085
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
1115
1086
  /******/
1116
1087
  /************************************************************************/
1117
1088
  /******/