clientnode 4.0.1442 → 4.0.1443

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 (91) hide show
  1. package/dist/Lock.js +69 -83
  2. package/dist/Logger.js +756 -163
  3. package/dist/Semaphore.js +56 -46
  4. package/dist/array.js +661 -337
  5. package/dist/bundle/Lock.js +86 -0
  6. package/dist/bundle/Logger.js +778 -0
  7. package/dist/bundle/Semaphore.js +75 -0
  8. package/dist/bundle/array.js +776 -0
  9. package/dist/bundle/cli.js +59 -0
  10. package/dist/bundle/constants.js +214 -0
  11. package/dist/bundle/context.js +280 -0
  12. package/dist/bundle/cookie.js +301 -0
  13. package/dist/bundle/data-transfer.js +825 -0
  14. package/dist/bundle/datetime.js +1148 -0
  15. package/dist/bundle/domNode.js +549 -0
  16. package/dist/bundle/expression/evaluators.js +1228 -0
  17. package/dist/bundle/expression/helper.js +117 -0
  18. package/dist/bundle/expression/index.js +1357 -0
  19. package/dist/bundle/expression/indicator-functions.js +332 -0
  20. package/dist/bundle/expression/type.js +16 -0
  21. package/dist/bundle/filesystem.js +436 -0
  22. package/dist/bundle/function.js +117 -0
  23. package/dist/bundle/index.js +3249 -0
  24. package/dist/bundle/indicators.js +565 -0
  25. package/dist/bundle/module.js +213 -0
  26. package/dist/bundle/number.js +527 -0
  27. package/dist/bundle/object.js +1104 -0
  28. package/dist/bundle/process.js +291 -0
  29. package/dist/bundle/property-types.js +36 -0
  30. package/dist/bundle/scope.js +2121 -0
  31. package/dist/bundle/string.js +1213 -0
  32. package/dist/bundle/test-helper.js +802 -0
  33. package/dist/bundle/type.js +16 -0
  34. package/dist/bundle/utility.js +420 -0
  35. package/dist/cli.js +45 -37
  36. package/dist/compatible/Lock.js +86 -0
  37. package/dist/compatible/Logger.js +778 -0
  38. package/dist/compatible/Semaphore.js +75 -0
  39. package/dist/compatible/array.js +776 -0
  40. package/dist/compatible/cli.js +59 -0
  41. package/dist/compatible/constants.js +214 -0
  42. package/dist/compatible/context.js +280 -0
  43. package/dist/compatible/cookie.js +301 -0
  44. package/dist/compatible/data-transfer.js +825 -0
  45. package/dist/compatible/datetime.js +1148 -0
  46. package/dist/compatible/domNode.js +549 -0
  47. package/dist/compatible/expression/evaluators.js +1228 -0
  48. package/dist/compatible/expression/helper.js +117 -0
  49. package/dist/compatible/expression/index.js +1357 -0
  50. package/dist/compatible/expression/indicator-functions.js +332 -0
  51. package/dist/compatible/expression/type.js +16 -0
  52. package/dist/compatible/filesystem.js +436 -0
  53. package/dist/compatible/function.js +117 -0
  54. package/dist/compatible/index.js +3249 -0
  55. package/dist/compatible/indicators.js +565 -0
  56. package/dist/compatible/module.js +213 -0
  57. package/dist/compatible/number.js +527 -0
  58. package/dist/compatible/object.js +1104 -0
  59. package/dist/compatible/process.js +291 -0
  60. package/dist/compatible/property-types.js +36 -0
  61. package/dist/compatible/scope.js +2121 -0
  62. package/dist/compatible/string.js +1213 -0
  63. package/dist/compatible/test-helper.js +802 -0
  64. package/dist/compatible/type.js +16 -0
  65. package/dist/compatible/utility.js +420 -0
  66. package/dist/constants.js +198 -110
  67. package/dist/context.js +265 -25
  68. package/dist/cookie.js +265 -48
  69. package/dist/data-transfer.js +775 -166
  70. package/dist/datetime.js +1107 -241
  71. package/dist/domNode.js +495 -277
  72. package/dist/expression/evaluators.js +1189 -234
  73. package/dist/expression/helper.js +102 -82
  74. package/dist/expression/index.js +1341 -10
  75. package/dist/expression/indicator-functions.js +316 -21
  76. package/dist/expression/type.js +1 -5
  77. package/dist/filesystem.js +349 -323
  78. package/dist/function.js +93 -51
  79. package/dist/index.js +3232 -26
  80. package/dist/indicators.js +512 -68
  81. package/dist/module.js +197 -99
  82. package/dist/number.js +491 -25
  83. package/dist/object.js +917 -775
  84. package/dist/process.js +261 -38
  85. package/dist/property-types.js +17 -96
  86. package/dist/scope.js +2092 -56
  87. package/dist/string.js +991 -603
  88. package/dist/test-helper.js +633 -171
  89. package/dist/type.js +4 -9
  90. package/dist/utility.js +372 -91
  91. package/package.json +2 -2
@@ -0,0 +1,436 @@
1
+ if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;import * as __WEBPACK_EXTERNAL_MODULE_core_js_modules_es_array_includes_js_66c3fd7d__ from "core-js/modules/es.array.includes.js";
2
+ /******/ var __webpack_modules__ = ([
3
+ /* 0 */
4
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
5
+
6
+ var x = function(y) {
7
+ var x = {}; __webpack_require__.d(x, y); return x
8
+ }
9
+ var y = function(x) { return function() { return x; }; }
10
+ module.exports = x({ });
11
+
12
+ /***/ }),
13
+ /* 1 */
14
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
15
+
16
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17
+ /* harmony export */ uJ: function() { return /* binding */ DEFAULT_ENCODING; }
18
+ /* harmony export */ });
19
+ /* unused harmony exports CLOSE_EVENT_NAMES, CONSOLE_METHODS, VALUE_COPY_SYMBOL, IGNORE_NULL_AND_UNDEFINED_SYMBOL, ABBREVIATIONS, ANIMATION_END_EVENT_NAMES, CLASS_TO_TYPE_MAPPING, KEY_CODES, KEYBOARD_CODES, LOCALES, PLAIN_OBJECT_PROTOTYPES, SPECIAL_REGEX_SEQUENCES, TRANSITION_END_EVENT_NAMES */
20
+ // #!/usr/bin/env babel-node
21
+ // -*- coding: utf-8 -*-
22
+ /** @module constants *//* !
23
+ region header
24
+ [Project page](https://torben.website/clientnode)
25
+
26
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
27
+
28
+ License
29
+ -------
30
+
31
+ This library written by Torben Sickert stands under a creative commons
32
+ naming 3.0 unported license.
33
+ See https://creativecommons.org/licenses/by/3.0/deed.de
34
+ endregion
35
+ */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
36
+ // conversion.
37
+ var ABBREVIATIONS=(/* unused pure expression or super */ null && (["html","id","url","us","de","api","href"]));// Saves a string with all css3 browser specific animation end event names.
38
+ var ANIMATION_END_EVENT_NAMES="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd";// String representation to object type name mapping.
39
+ var CLASS_TO_TYPE_MAPPING=(/* unused pure expression or super */ null && ({"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"}));// Saves a mapping from key codes to their corresponding name.
40
+ var KEY_CODES=(/* unused pure expression or super */ null && ({BACKSPACE:8,SPACE:32,TAB:9,DELETE:46,ENTER:13,COMMA:188,PERIOD:190,END:35,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,HOME:36,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,PAGE_UP:33,PAGE_DOWN:34,UP:38,DOWN:40,LEFT:37,RIGHT:39}));var KEYBOARD_CODES=(/* unused pure expression or super */ null && ({BACKSPACE:"Backspace",SPACE:"Space",TAB:"Tab",DELETE:"Delete",ENTER:"Enter",COMMA:"Comma",PERIOD:"Period",END:"End",ESCAPE:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F111",F12:"F12",HOME:"Home",NUMPAD_ADD:"NumpadAdd",NUMPAD_SUBTRACT:"NumpadSubtract",NUMPAD_DECIMAL:"NumpadDecimal",NUMPAD_DIVIDE:"NumpadDivide",NUMPAD_ENTER:"NumpadEnter",NUMPAD_MULTIPLY:"NumpadMultiply",PAGE_UP:"PageUp",PAGE_DOWN:"PageUp",UP:"ArrowUp",DOWN:"ArrowDown",LEFT:"ArrowLeft",RIGHT:"ArrowUp"}));var LOCALES=(/* unused pure expression or super */ null && ([]));var PLAIN_OBJECT_PROTOTYPES=[Object.prototype];// A list of special regular expression symbols.
41
+ var SPECIAL_REGEX_SEQUENCES=(/* unused pure expression or super */ null && (["-","[","]","(",")","^","$","*","+",".","{","}"]));// Saves a string with all css3 browser specific transition end event names.
42
+ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd";
43
+
44
+ /***/ }),
45
+ /* 2 */,
46
+ /* 3 */,
47
+ /* 4 */
48
+ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
49
+
50
+ __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
51
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
52
+ /* harmony export */ tE: function() { return /* binding */ NOOP; }
53
+ /* harmony export */ });
54
+ /* unused harmony exports globalContext, setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, mockConsole */
55
+ /* unused harmony import specifier */ var CONSOLE_METHODS;
56
+ /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
57
+ var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_module_js__WEBPACK_IMPORTED_MODULE_0__]);
58
+ var __webpack_async_dependencies_result__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
59
+ _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_async_dependencies_result__[0];
60
+ // #!/usr/bin/env babel-node
61
+ // -*- coding: utf-8 -*-
62
+ /** @module context *//* !
63
+ region header
64
+ [Project page](https://torben.website/clientnode)
65
+
66
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
67
+
68
+ License
69
+ -------
70
+
71
+ This library written by Torben Sickert stands under a creative commons
72
+ naming 3.0 unported license.
73
+ See https://creativecommons.org/licenses/by/3.0/deed.de
74
+ endregion
75
+ */var _optionalRequire$defa,_optionalRequire;function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}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}var globalContext=(0,_module_js__WEBPACK_IMPORTED_MODULE_0__/* .determineGlobalContext */ .a8)();var setGlobalContext=function setGlobalContext(context){globalContext=context};globalContext.fetch=globalContext.fetch?globalContext.fetch.bind(globalContext):(_optionalRequire$defa=(_optionalRequire=(0,_module_js__WEBPACK_IMPORTED_MODULE_0__/* .optionalRequire */ .I5)("node-fetch"))===null||_optionalRequire===void 0?void 0:_optionalRequire.default)!==null&&_optionalRequire$defa!==void 0?_optionalRequire$defa:function(){for(var _len=arguments.length,parameters=new Array(_len),_key=0;_key<_len;_key++){parameters[_key]=arguments[_key]}return (0,_module_js__WEBPACK_IMPORTED_MODULE_0__/* .optionalImport */ .Sw)(/* webpackIgnore: true */"node-fetch").then(function(module){var _ref;return(_ref=module).default.apply(_ref,parameters)})};var MAXIMAL_NUMBER_OF_ITERATIONS=(/* unused pure expression or super */ null && ({value:100}));// A no-op dummy function.
76
+ var NOOP=function NOOP(){// Do nothing.
77
+ };var mockConsole=function mockConsole(){// Avoid errors in browsers that lack a console.
78
+ if(!Object.prototype.hasOwnProperty.call(globalContext,"console"))globalContext.console={};if(!globalContext.console)globalContext.console={};var _iterator=_createForOfIteratorHelper(CONSOLE_METHODS),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var methodName=_step.value;if(!(methodName in globalContext.console))globalContext.console[methodName]=NOOP}}catch(err){_iterator.e(err)}finally{_iterator.f()}};
79
+ __webpack_async_result__();
80
+ } catch(e) { __webpack_async_result__(e); } });
81
+
82
+ /***/ }),
83
+ /* 5 */
84
+ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
85
+
86
+ __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
87
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
88
+ /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
89
+ /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
90
+ /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
91
+ /* harmony export */ });
92
+ /* unused harmony exports isImportSyntaxSupported, currentRequire, clearRequireCache, isolatedRequire */
93
+ // #!/usr/bin/env babel-node
94
+ // -*- coding: utf-8 -*-
95
+ /** @module module *//* !
96
+ region header
97
+ [Project page](https://torben.website/clientnode)
98
+
99
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
100
+
101
+ License
102
+ -------
103
+
104
+ This library written by Torben Sickert stands under a creative commons
105
+ naming 3.0 unported license.
106
+ See https://creativecommons.org/licenses/by/3.0/deed.de
107
+ endregion
108
+ */function _defaults(e,r){for(var t=Object.getOwnPropertyNames(r),o=0;o<t.length;o++){var n=t[o],a=Object.getOwnPropertyDescriptor(r,n);a&&a.configurable&&void 0===e[n]&&Object.defineProperty(e,n,a)}return e}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(_defaults(e,GeneratorFunctionPrototype),_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e)})}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)})}}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}var determineGlobalContext=function determineGlobalContext(){if(typeof globalThis==="undefined"){if(typeof window==="undefined"){if(typeof __webpack_require__.g==="undefined")return typeof module==="undefined"?{}:module;if(Object.prototype.hasOwnProperty.call(__webpack_require__.g,"window"))return __webpack_require__.g.window;return __webpack_require__.g}return window}return globalThis};var globalContext=determineGlobalContext();// Make preprocessed import function available at runtime.
109
+ var isImportSyntaxSupported=function isImportSyntaxSupported(){try{// eslint-disable-next-line @typescript-eslint/no-implied-eval
110
+ new Function("import(\"data:text/javascript,\")");return true}catch(_unused){return false}};// Make preprocessed require function available at runtime.
111
+ var customRequire=typeof globalContext.require==="undefined"?null:globalContext.require;if(!customRequire&&isImportSyntaxSupported())try{var _await$Function=/*
112
+ eslint-disable
113
+ @typescript-eslint/no-implied-eval,
114
+ @typescript-eslint/no-unsafe-call
115
+ */await new Function("return import(\"node:module\")")(),createRequire=_await$Function.createRequire;/*
116
+ eslint-enable
117
+ @typescript-eslint/no-implied-eval,
118
+ @typescript-eslint/no-unsafe-call
119
+ */// eslint-disable-next-line @typescript-eslint/no-unsafe-call
120
+ customRequire=createRequire("file:///__w/clientnode/clientnode/src/module.ts")}catch(_unused2){// Ignore error.
121
+ }var currentRequire=customRequire;var optionalRequire=function optionalRequire(id){try{return currentRequire?currentRequire(id):null}catch(_unused3){return null}};var clearRequireCache=function clearRequireCache(cache){if(cache===void 0){cache=(currentRequire===null||currentRequire===void 0?void 0:currentRequire.cache)||require.cache}var backup={};for(var _i=0,_Object$entries=Object.entries(cache);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],_module=_Object$entries$_i[1];backup[key]=_module;delete cache[key]}return backup};var restoreRequireCache=function restoreRequireCache(cache,backup){if(cache===void 0){cache=(currentRequire===null||currentRequire===void 0?void 0:currentRequire.cache)||require.cache}clearRequireCache();for(var _i2=0,_Object$entries2=Object.entries(backup);_i2<_Object$entries2.length;_i2++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i2],2),key=_Object$entries2$_i[0],_module2=_Object$entries2$_i[1];cache[key]=_module2}};var isolatedRequire=function isolatedRequire(path,requireFunction){if(requireFunction===void 0){requireFunction=currentRequire||require}var backup=clearRequireCache(requireFunction.cache);try{return requireFunction(path);// eslint-disable-next-line no-useless-catch
122
+ }catch(error){throw error}finally{restoreRequireCache(requireFunction.cache,backup)}};var optionalImport=/*#__PURE__*/function(){var _optionalImport=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id,options){var _t,_t2;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(options===void 0){options={}}_context.p=1;if(!isImportSyntaxSupported()){_context.n=3;break}_context.n=2;return new Function("options","return import('".concat(id,"', options)"))(options);case 2:_t=_context.v;_context.n=5;break;case 3:_context.n=4;return Promise.resolve(null);case 4:_t=_context.v;case 5:return _context.a(2,_t);case 6:_context.p=6;_t2=_context.v;_context.n=7;return Promise.resolve(null);case 7:return _context.a(2,_context.v)}},_callee,null,[[1,6]])}));function optionalImport(_x,_x2){return _optionalImport.apply(this,arguments)}return optionalImport}();
123
+ __webpack_async_result__();
124
+ } catch(e) { __webpack_async_result__(e); } }, 1);
125
+
126
+ /***/ }),
127
+ /* 6 */,
128
+ /* 7 */,
129
+ /* 8 */,
130
+ /* 9 */,
131
+ /* 10 */,
132
+ /* 11 */
133
+ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
134
+
135
+ __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
136
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
137
+ /* harmony export */ Ee: function() { return /* binding */ importsPromise; },
138
+ /* harmony export */ VW: function() { return /* binding */ imports; },
139
+ /* harmony export */ WY: function() { return /* binding */ isFileSync; },
140
+ /* harmony export */ Xp: function() { return /* binding */ copyFileSync; },
141
+ /* harmony export */ ZP: function() { return /* binding */ isDirectorySync; },
142
+ /* harmony export */ fo: function() { return /* binding */ isFile; },
143
+ /* harmony export */ hu: function() { return /* binding */ _walkDirectoryRecursivelySync; },
144
+ /* harmony export */ m3: function() { return /* binding */ copyFile; },
145
+ /* harmony export */ uD: function() { return /* binding */ copyDirectoryRecursiveSync; },
146
+ /* harmony export */ vX: function() { return /* binding */ copyDirectoryRecursive; },
147
+ /* harmony export */ wd: function() { return /* binding */ isDirectory; },
148
+ /* harmony export */ y3: function() { return /* binding */ _walkDirectoryRecursively; }
149
+ /* harmony export */ });
150
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
151
+ /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
152
+ /* harmony import */ var _context_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
153
+ /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5);
154
+ var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_context_js__WEBPACK_IMPORTED_MODULE_2__, _module_js__WEBPACK_IMPORTED_MODULE_3__]);
155
+ var __webpack_async_dependencies_result__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
156
+ _context_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_async_dependencies_result__[0];
157
+ _module_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_async_dependencies_result__[1];
158
+ // #!/usr/bin/env babel-node
159
+ // -*- coding: utf-8 -*-
160
+ /** @module filesystem *//* !
161
+ region header
162
+ [Project page](https://torben.website/clientnode)
163
+
164
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
165
+
166
+ License
167
+ -------
168
+
169
+ This library written by Torben Sickert stands under a creative commons
170
+ naming 3.0 unported license.
171
+ See https://creativecommons.org/licenses/by/3.0/deed.de
172
+ endregion
173
+ */function _defaults(e,r){for(var t=Object.getOwnPropertyNames(r),o=0;o<t.length;o++){var n=t[o],a=Object.getOwnPropertyDescriptor(r,n);a&&a.configurable&&void 0===e[n]&&Object.defineProperty(e,n,a)}return e}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return 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)}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 _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(_defaults(e,GeneratorFunctionPrototype),_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e)})}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}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 asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)})}}var imports={fs:null,fsPromises:null,path:null};var mkdirSync;var readdirSync;var readFileSync;var statSync;var writeFileSync;var fsImportPromise=(0,_module_js__WEBPACK_IMPORTED_MODULE_3__/* .optionalImport */ .Sw)("fs");void fsImportPromise.then(function(module){imports.fs=module;if(module){mkdirSync=module.mkdirSync;readdirSync=module.readdirSync;readFileSync=module.readFileSync;statSync=module.statSync;writeFileSync=module.writeFileSync}else{mkdirSync=null;readdirSync=null;readFileSync=null;statSync=null;writeFileSync=null}});var mkdir;var readdir;var readFile;var stat;var writeFile;var fsPromisesImportPromise=(0,_module_js__WEBPACK_IMPORTED_MODULE_3__/* .optionalImport */ .Sw)("fs/promises");void fsPromisesImportPromise.then(function(module){imports.fsPromises=module;if(module){mkdir=module.mkdir;readdir=module.readdir;readFile=module.readFile;stat=module.stat;writeFile=module.writeFile}else{mkdir=null;readdir=null;readFile=null;stat=null;writeFile=null}});var basename;var join;var resolve;var pathImportPromise=(0,_module_js__WEBPACK_IMPORTED_MODULE_3__/* .optionalImport */ .Sw)("path");void pathImportPromise.then(function(module){imports.path=module;if(module){basename=module.basename;join=module.join;resolve=module.resolve}else{basename=null;join=null;resolve=null}});var importsPromise=Promise.all([fsImportPromise,fsPromisesImportPromise,pathImportPromise]);/**
174
+ * Copies given source directory via path to given target directory location
175
+ * with same target name as source file has or copy to given complete target
176
+ * directory path.
177
+ * @param sourcePath - Path to directory to copy.
178
+ * @param targetPath - Target directory or complete directory location to copy
179
+ * in.
180
+ * @param contents - Indicates whether we only want to copy content of source
181
+ * path without recreating the sourcefile itself on target location.
182
+ * @param callback - Function to invoke for each traversed file.
183
+ * @param readOptions - Options to use for reading source file.
184
+ * @param writeOptions - Options to use for writing to target file.
185
+ * @returns Promise holding the determined target directory path.
186
+ */var copyDirectoryRecursive=/*#__PURE__*/function(){var _copyDirectoryRecursive=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(sourcePath,targetPath,contents,callback,readOptions,writeOptions){var _iterator,_step,_currentSourceFile$st,currentSourceFile,currentTargetPath,_t,_t2,_t3,_t4,_t5;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(contents===void 0){contents=false}if(callback===void 0){callback=_context_js__WEBPACK_IMPORTED_MODULE_2__/* .NOOP */ .tE}if(readOptions===void 0){readOptions={encoding:null,flag:"r"}}if(writeOptions===void 0){writeOptions={encoding:_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_ENCODING */ .uJ,flag:"w",mode:438}}if(basename&&join&&mkdir&&resolve){_context.n=1;break}throw new Error("Could not load filesystem functions.");case 1:sourcePath=resolve(sourcePath);_t=!contents;if(!_t){_context.n=3;break}_context.n=2;return isDirectory(targetPath);case 2:_t=_context.v;case 3:if(!_t){_context.n=4;break}targetPath=resolve(targetPath,basename(sourcePath));case 4:_context.p=4;_context.n=5;return mkdir(targetPath);case 5:_context.n=7;break;case 6:_context.p=6;_t2=_context.v;if(!(_t2.code!=="EEXIST")){_context.n=7;break}throw _t2;case 7:_t3=_createForOfIteratorHelper;_context.n=8;return _walkDirectoryRecursively(sourcePath,callback);case 8:_iterator=_t3(_context.v);_context.p=9;_iterator.s();case 10:if((_step=_iterator.n()).done){_context.n=17;break}currentSourceFile=_step.value;currentTargetPath=join(targetPath,currentSourceFile.path.substring(sourcePath.length));if(!((_currentSourceFile$st=currentSourceFile.stats)!==null&&_currentSourceFile$st!==void 0&&_currentSourceFile$st.isDirectory())){_context.n=15;break}_context.p=11;_context.n=12;return mkdir(currentTargetPath);case 12:_context.n=14;break;case 13:_context.p=13;_t4=_context.v;if(!(_t4.code!=="EEXIST")){_context.n=14;break}throw _t4;case 14:_context.n=16;break;case 15:_context.n=16;return copyFile(currentSourceFile.path,currentTargetPath,readOptions,writeOptions);case 16:_context.n=10;break;case 17:_context.n=19;break;case 18:_context.p=18;_t5=_context.v;_iterator.e(_t5);case 19:_context.p=19;_iterator.f();return _context.f(19);case 20:return _context.a(2,targetPath)}},_callee,null,[[11,13],[9,18,19,20],[4,6]])}));function copyDirectoryRecursive(_x,_x2,_x3,_x4,_x5,_x6){return _copyDirectoryRecursive.apply(this,arguments)}return copyDirectoryRecursive}();/**
187
+ * Copies given source directory via path to given target directory location
188
+ * with same target name as source file has or copy to given complete target
189
+ * directory path.
190
+ * @param sourcePath - Path to directory to copy.
191
+ * @param targetPath - Target directory or complete directory location to copy
192
+ * in.
193
+ * @param contents - Indicates whether we only want to copy content of source
194
+ * path without recreating the sourcefile itself on target location.
195
+ * @param callback - Function to invoke for each traversed file.
196
+ * @param readOptions - Options to use for reading source file.
197
+ * @param writeOptions - Options to use for writing to target file.
198
+ * @returns Determined target directory path.
199
+ */var copyDirectoryRecursiveSync=function copyDirectoryRecursiveSync(sourcePath,targetPath,contents,callback,readOptions,writeOptions){if(contents===void 0){contents=false}if(callback===void 0){callback=_context_js__WEBPACK_IMPORTED_MODULE_2__/* .NOOP */ .tE}if(readOptions===void 0){readOptions={encoding:null,flag:"r"}}if(writeOptions===void 0){writeOptions={encoding:_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_ENCODING */ .uJ,flag:"w",mode:438}}if(!(basename&&join&&mkdirSync&&resolve))throw new Error("Could not load filesystem functions.");sourcePath=resolve(sourcePath);if(!contents&&isDirectorySync(targetPath))targetPath=resolve(targetPath,basename(sourcePath));// NOTE: Try/Check if target folder needs to be created.
200
+ try{mkdirSync(targetPath)}catch(error){if(error.code!=="EEXIST")throw error}for(var _i=0,_walkDirectoryRecursi=_walkDirectoryRecursivelySync(sourcePath,callback);_i<_walkDirectoryRecursi.length;_i++){var _currentSourceFile$st2;var currentSourceFile=_walkDirectoryRecursi[_i];var currentTargetPath=join(targetPath,currentSourceFile.path.substring(sourcePath.length));if((_currentSourceFile$st2=currentSourceFile.stats)!==null&&_currentSourceFile$st2!==void 0&&_currentSourceFile$st2.isDirectory())try{mkdirSync(currentTargetPath)}catch(error){if(error.code!=="EEXIST")throw error}else copyFileSync(currentSourceFile.path,currentTargetPath,readOptions,writeOptions)}return targetPath};/**
201
+ * Copies given source file via path to given target directory location with
202
+ * same target name as source file has or copy to given complete target file
203
+ * path.
204
+ * @param sourcePath - Path to file to copy.
205
+ * @param targetPath - Target directory or complete file location to copy to.
206
+ * @param readOptions - Options to use for reading source file.
207
+ * @param writeOptions - Options to use for writing to target file.
208
+ * @returns Determined target file path.
209
+ */var copyFile=/*#__PURE__*/function(){var _copyFile=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(sourcePath,targetPath,readOptions,writeOptions){var _t6,_t7;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:if(readOptions===void 0){readOptions={encoding:null,flag:"r"}}if(writeOptions===void 0){writeOptions={encoding:_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_ENCODING */ .uJ,flag:"w",mode:438}}if(basename&&readFile&&resolve&&writeFile){_context2.n=1;break}throw new Error("Could not load filesystem functions.");case 1:_context2.n=2;return isDirectory(targetPath);case 2:if(!_context2.v){_context2.n=3;break}targetPath=resolve(targetPath,basename(sourcePath));case 3:_t6=writeFile;_t7=targetPath;_context2.n=4;return readFile(sourcePath,readOptions);case 4:_context2.n=5;return _t6(_t7,_context2.v,writeOptions);case 5:return _context2.a(2,targetPath)}},_callee2)}));function copyFile(_x7,_x8,_x9,_x0){return _copyFile.apply(this,arguments)}return copyFile}();/**
210
+ * Copies given source file via path to given target directory location with
211
+ * same target name as source file has or copy to given complete target file
212
+ * path.
213
+ * @param sourcePath - Path to file to copy.
214
+ * @param targetPath - Target directory or complete file location to copy to.
215
+ * @param readOptions - Options to use for reading source file.
216
+ * @param writeOptions - Options to use for writing to target file.
217
+ * @returns Determined target file path.
218
+ */var copyFileSync=function copyFileSync(sourcePath,targetPath,readOptions,writeOptions){if(readOptions===void 0){readOptions={encoding:null,flag:"r"}}if(writeOptions===void 0){writeOptions={encoding:_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_ENCODING */ .uJ,flag:"w",mode:438}}if(!(basename&&readFileSync&&resolve&&writeFileSync))throw new Error("Could not load filesystem functions.");/*
219
+ NOTE: If target path references a directory a new file with the same
220
+ name will be created.
221
+ */if(isDirectorySync(targetPath))targetPath=resolve(targetPath,basename(sourcePath));writeFileSync(targetPath,readFileSync(sourcePath,readOptions),writeOptions);return targetPath};/**
222
+ * Checks if given path points to a valid directory.
223
+ * @param filePath - Path to directory.
224
+ * @returns A promise holding a boolean which indicates directory existence.
225
+ */var isDirectory=/*#__PURE__*/function(){var _isDirectory=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(filePath){var _t8;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:if(stat){_context3.n=1;break}throw new Error("Could not load filesystem functions.");case 1:_context3.p=1;_context3.n=2;return stat(filePath);case 2:return _context3.a(2,_context3.v.isDirectory());case 3:_context3.p=3;_t8=_context3.v;if(!(Object.prototype.hasOwnProperty.call(_t8,"code")&&["ENOENT","ENOTDIR"].includes(_t8.code))){_context3.n=4;break}return _context3.a(2,false);case 4:throw _t8;case 5:return _context3.a(2)}},_callee3,null,[[1,3]])}));function isDirectory(_x1){return _isDirectory.apply(this,arguments)}return isDirectory}();/**
226
+ * Checks if given path points to a valid directory.
227
+ * @param filePath - Path to directory.
228
+ * @returns A boolean which indicates directory existence.
229
+ */var isDirectorySync=function isDirectorySync(filePath){if(!statSync)throw new Error("Could not load filesystem functions.");try{return statSync(filePath).isDirectory()}catch(error){if(Object.prototype.hasOwnProperty.call(error,"code")&&["ENOENT","ENOTDIR"].includes(error.code))return false;throw error}};/**
230
+ * Checks if given path points to a valid file.
231
+ * @param filePath - Path to directory.
232
+ * @returns A promise holding a boolean which indicates directory existence.
233
+ */var isFile=/*#__PURE__*/function(){var _isFile=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(filePath){var _t9;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:if(stat){_context4.n=1;break}throw new Error("Could not load filesystem functions.");case 1:_context4.p=1;_context4.n=2;return stat(filePath);case 2:return _context4.a(2,_context4.v.isFile());case 3:_context4.p=3;_t9=_context4.v;if(!(Object.prototype.hasOwnProperty.call(_t9,"code")&&["ENOENT","ENOTDIR"].includes(_t9.code))){_context4.n=4;break}return _context4.a(2,false);case 4:throw _t9;case 5:return _context4.a(2)}},_callee4,null,[[1,3]])}));function isFile(_x10){return _isFile.apply(this,arguments)}return isFile}();/**
234
+ * Checks if given path points to a valid file.
235
+ * @param filePath - Path to file.
236
+ * @returns A boolean which indicates file existence.
237
+ */var isFileSync=function isFileSync(filePath){if(!statSync)throw new Error("Could not load filesystem functions.");try{return statSync(filePath).isFile()}catch(error){if(Object.prototype.hasOwnProperty.call(error,"code")&&["ENOENT","ENOTDIR"].includes(error.code))return false;throw error}};/**
238
+ * Iterates through given directory structure recursively and calls given
239
+ * callback for each found file. Callback gets file path and corresponding stat
240
+ * object as argument.
241
+ * @param directoryPath - Path to directory structure to traverse.
242
+ * @param callback - Function to invoke for each traversed file and potentially
243
+ * manipulate further traversing in alphabetical sorted order.
244
+ * If it returns "null" or a promise resolving to "null", no further files
245
+ * will be traversed afterward.
246
+ * If it handles a directory and returns "false" or a promise resolving to
247
+ * "false" no traversing into that directory will occur.
248
+ * @param options - Options to use for nested "readdir" calls.
249
+ * @returns A promise holding the determined files.
250
+ */var _walkDirectoryRecursively=/*#__PURE__*/function(){var _walkDirectoryRecursively2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(directoryPath,callback,options){var files,_iterator2,_step2,directoryEntry,filePath,_file,finalFiles,_i2,_files,_file$stats,file,result,_t0,_t1,_t10,_t11;return _regenerator().w(function(_context5){while(1)switch(_context5.p=_context5.n){case 0:if(callback===void 0){callback=null}if(options===void 0){options=_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_ENCODING */ .uJ}if(readdir&&resolve&&stat){_context5.n=1;break}throw new Error("Could not load filesystem functions.");case 1:files=[];_t0=_createForOfIteratorHelper;_context5.n=2;return readdir(directoryPath,typeof options==="string"?{encoding:options,withFileTypes:true}:_objectSpread(_objectSpread({},options),{},{withFileTypes:true}));case 2:_iterator2=_t0(_context5.v);_context5.p=3;_iterator2.s();case 4:if((_step2=_iterator2.n()).done){_context5.n=10;break}directoryEntry=_step2.value;filePath=resolve(directoryPath,directoryEntry.name);_file={directoryPath:directoryPath,directoryEntry:directoryEntry,error:null,name:directoryEntry.name,path:filePath,stats:null};_context5.p=5;_context5.n=6;return stat(filePath);case 6:_file.stats=_context5.v;_context5.n=8;break;case 7:_context5.p=7;_t1=_context5.v;_file.error=_t1;case 8:files.push(_file);case 9:_context5.n=4;break;case 10:_context5.n=12;break;case 11:_context5.p=11;_t10=_context5.v;_iterator2.e(_t10);case 12:_context5.p=12;_iterator2.f();return _context5.f(12);case 13:if(callback)/*
251
+ NOTE: Directories and have to be iterated first to be able to
252
+ avoid deeper unwanted traversing.
253
+ */files.sort(function(firstFile,secondFile){var _firstFile$stats,_secondFile$stats2;if((_firstFile$stats=firstFile.stats)!==null&&_firstFile$stats!==void 0&&_firstFile$stats.isDirectory()){var _secondFile$stats;if((_secondFile$stats=secondFile.stats)!==null&&_secondFile$stats!==void 0&&_secondFile$stats.isDirectory())return 0;return-1}if((_secondFile$stats2=secondFile.stats)!==null&&_secondFile$stats2!==void 0&&_secondFile$stats2.isDirectory())return 1;return 0});finalFiles=[];_i2=0,_files=files;case 14:if(!(_i2<_files.length)){_context5.n=21;break}file=_files[_i2];finalFiles.push(file);result=callback?callback(file):undefined;if(!(result===null)){_context5.n=15;break}return _context5.a(3,21);case 15:if(!(_typeof(result)==="object"&&"then"in result)){_context5.n=17;break}_context5.n=16;return result;case 16:result=_context5.v;case 17:if(!(result===null)){_context5.n=18;break}return _context5.a(3,21);case 18:if(!(result!==false&&(_file$stats=file.stats)!==null&&_file$stats!==void 0&&_file$stats.isDirectory())){_context5.n=20;break}_t11=finalFiles;_context5.n=19;return _walkDirectoryRecursively(file.path,callback,options);case 19:finalFiles=_t11.concat.call(_t11,_context5.v);case 20:_i2++;_context5.n=14;break;case 21:return _context5.a(2,finalFiles)}},_callee5,null,[[5,7],[3,11,12,13]])}));function walkDirectoryRecursively(_x11,_x12,_x13){return _walkDirectoryRecursively2.apply(this,arguments)}return walkDirectoryRecursively}();/**
254
+ * Iterates through given directory structure recursively and calls given
255
+ * callback for each found file. Callback gets file path and corresponding
256
+ * stats object as argument.
257
+ * @param directoryPath - Path to directory structure to traverse.
258
+ * @param callback - Function to invoke for each traversed file.
259
+ * @param options - Options to use for nested "readdir" calls.
260
+ * @returns Determined list if all files.
261
+ */var _walkDirectoryRecursivelySync=function walkDirectoryRecursivelySync(directoryPath,callback,options){if(callback===void 0){callback=_context_js__WEBPACK_IMPORTED_MODULE_2__/* .NOOP */ .tE}if(options===void 0){options=_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_ENCODING */ .uJ}if(!(readdirSync&&resolve&&statSync))throw new Error("Could not load filesystem functions.");var files=[];var _iterator3=_createForOfIteratorHelper(readdirSync(directoryPath,typeof options==="string"?{encoding:options,withFileTypes:true}:_objectSpread(_objectSpread({},options),{},{withFileTypes:true}))),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var directoryEntry=_step3.value;var filePath=resolve(directoryPath,directoryEntry.name);var _file2={directoryPath:directoryPath,directoryEntry:directoryEntry,error:null,name:directoryEntry.name,path:filePath,stats:null};try{_file2.stats=statSync(filePath)}catch(error){_file2.error=error}files.push(_file2)}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}var finalFiles=[];if(callback){/*
262
+ NOTE: Directories have to be iterated first to potentially
263
+ avoid deeper iterations.
264
+ */files.sort(function(firstFile,secondFile){var _firstFile$stats2,_secondFile$stats4;if((_firstFile$stats2=firstFile.stats)!==null&&_firstFile$stats2!==void 0&&_firstFile$stats2.isDirectory()){var _secondFile$stats3;if((_secondFile$stats3=secondFile.stats)!==null&&_secondFile$stats3!==void 0&&_secondFile$stats3.isDirectory())return 0;return-1}if((_secondFile$stats4=secondFile.stats)!==null&&_secondFile$stats4!==void 0&&_secondFile$stats4.isDirectory())return 1;return 0});var _iterator4=_createForOfIteratorHelper(files),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _file$stats2;var file=_step4.value;finalFiles.push(file);var result=callback(file);if(result===null)break;if(result!==false&&(_file$stats2=file.stats)!==null&&_file$stats2!==void 0&&_file$stats2.isDirectory())finalFiles=finalFiles.concat(_walkDirectoryRecursivelySync(file.path,callback,options))}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}}return finalFiles};
265
+ __webpack_async_result__();
266
+ } catch(e) { __webpack_async_result__(e); } });
267
+
268
+ /***/ })
269
+ /******/ ]);
270
+ /************************************************************************/
271
+ /******/ // The module cache
272
+ /******/ var __webpack_module_cache__ = {};
273
+ /******/
274
+ /******/ // The require function
275
+ /******/ function __webpack_require__(moduleId) {
276
+ /******/ // Check if module is in cache
277
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
278
+ /******/ if (cachedModule !== undefined) {
279
+ /******/ return cachedModule.exports;
280
+ /******/ }
281
+ /******/ // Create a new module (and put it into the cache)
282
+ /******/ var module = __webpack_module_cache__[moduleId] = {
283
+ /******/ // no module.id needed
284
+ /******/ // no module.loaded needed
285
+ /******/ exports: {}
286
+ /******/ };
287
+ /******/
288
+ /******/ // Execute the module function
289
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
290
+ /******/
291
+ /******/ // Return the exports of the module
292
+ /******/ return module.exports;
293
+ /******/ }
294
+ /******/
295
+ /************************************************************************/
296
+ /******/ /* webpack/runtime/async module */
297
+ /******/ !function() {
298
+ /******/ var hasSymbol = typeof Symbol === "function";
299
+ /******/ var webpackQueues = hasSymbol ? Symbol("webpack queues") : "__webpack_queues__";
300
+ /******/ var webpackExports = hasSymbol ? Symbol("webpack exports") : "__webpack_exports__";
301
+ /******/ var webpackError = hasSymbol ? Symbol("webpack error") : "__webpack_error__";
302
+ /******/
303
+ /******/ var resolveQueue = function(queue) {
304
+ /******/ if(queue && queue.d < 1) {
305
+ /******/ queue.d = 1;
306
+ /******/ queue.forEach(function(fn) { fn.r--; });
307
+ /******/ queue.forEach(function(fn) { fn.r-- ? fn.r++ : fn(); });
308
+ /******/ }
309
+ /******/ }
310
+ /******/ var wrapDeps = function(deps) { return deps.map(function(dep) {
311
+ /******/ if(dep !== null && typeof dep === "object") {
312
+ /******/
313
+ /******/ if(dep[webpackQueues]) return dep;
314
+ /******/ if(dep.then) {
315
+ /******/ var queue = [];
316
+ /******/ queue.d = 0;
317
+ /******/ dep.then(function(r) {
318
+ /******/ obj[webpackExports] = r;
319
+ /******/ resolveQueue(queue);
320
+ /******/ }, function(e) {
321
+ /******/ obj[webpackError] = e;
322
+ /******/ resolveQueue(queue);
323
+ /******/ });
324
+ /******/ var obj = {};
325
+ /******/
326
+ /******/ obj[webpackQueues] = function(fn) { fn(queue); };
327
+ /******/ return obj;
328
+ /******/ }
329
+ /******/ }
330
+ /******/ var ret = {};
331
+ /******/ ret[webpackQueues] = function() {};
332
+ /******/ ret[webpackExports] = dep;
333
+ /******/ return ret;
334
+ /******/ }); };
335
+ /******/ __webpack_require__.a = function(module, body, hasAwait) {
336
+ /******/ var queue;
337
+ /******/ hasAwait && ((queue = []).d = -1);
338
+ /******/ var depQueues = new Set();
339
+ /******/ var exports = module.exports;
340
+ /******/ var currentDeps;
341
+ /******/ var outerResolve;
342
+ /******/ var reject;
343
+ /******/ var promise = new Promise(function(resolve, rej) {
344
+ /******/ reject = rej;
345
+ /******/ outerResolve = resolve;
346
+ /******/ });
347
+ /******/ promise[webpackExports] = exports;
348
+ /******/ promise[webpackQueues] = function(fn) { queue && fn(queue), depQueues.forEach(fn), promise["catch"](function() {}); };
349
+ /******/ module.exports = promise;
350
+ /******/ var handle = function(deps) {
351
+ /******/ currentDeps = wrapDeps(deps);
352
+ /******/ var fn;
353
+ /******/ var getResult = function() { return currentDeps.map(function(d) {
354
+ /******/
355
+ /******/ if(d[webpackError]) throw d[webpackError];
356
+ /******/ return d[webpackExports];
357
+ /******/ }); }
358
+ /******/ var promise = new Promise(function(resolve) {
359
+ /******/ fn = function() { resolve(getResult); };
360
+ /******/ fn.r = 0;
361
+ /******/ var fnQueue = function(q) { q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))); };
362
+ /******/ currentDeps.map(function(dep) { dep[webpackQueues](fnQueue); });
363
+ /******/ });
364
+ /******/ return fn.r ? promise : getResult();
365
+ /******/ }
366
+ /******/ var done = function(err) { (err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue); }
367
+ /******/ body(handle, done);
368
+ /******/ queue && queue.d < 0 && (queue.d = 0);
369
+ /******/ };
370
+ /******/ }();
371
+ /******/
372
+ /******/ /* webpack/runtime/define property getters */
373
+ /******/ !function() {
374
+ /******/ // define getter/value functions for harmony exports
375
+ /******/ __webpack_require__.d = function(exports, definition) {
376
+ /******/ if(Array.isArray(definition)) {
377
+ /******/ var i = 0;
378
+ /******/ while(i < definition.length) {
379
+ /******/ var key = definition[i++];
380
+ /******/ var binding = definition[i++];
381
+ /******/ if(!__webpack_require__.o(exports, key)) {
382
+ /******/ if(binding === 0) {
383
+ /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
384
+ /******/ } else {
385
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
386
+ /******/ }
387
+ /******/ } else if(binding === 0) { i++; }
388
+ /******/ }
389
+ /******/ } else {
390
+ /******/ for(var key in definition) {
391
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
392
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
393
+ /******/ }
394
+ /******/ }
395
+ /******/ }
396
+ /******/ };
397
+ /******/ }();
398
+ /******/
399
+ /******/ /* webpack/runtime/global */
400
+ /******/ !function() {
401
+ /******/ __webpack_require__.g = (function() {
402
+ /******/ if (typeof globalThis === 'object') return globalThis;
403
+ /******/ try {
404
+ /******/ return this || new Function('return this')();
405
+ /******/ } catch (e) {
406
+ /******/ if (typeof window === 'object') return window;
407
+ /******/ }
408
+ /******/ })();
409
+ /******/ }();
410
+ /******/
411
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
412
+ /******/ !function() {
413
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
414
+ /******/ }();
415
+ /******/
416
+ /************************************************************************/
417
+ /******/
418
+ /******/ // startup
419
+ /******/ // Load entry module and return exports
420
+ /******/ // This entry module used 'module' so it can't be inlined
421
+ /******/ var __webpack_exports__ = __webpack_require__(11);
422
+ /******/ __webpack_exports__ = await __webpack_exports__;
423
+ /******/ var __webpack_exports__copyDirectoryRecursive = __webpack_exports__.vX;
424
+ /******/ var __webpack_exports__copyDirectoryRecursiveSync = __webpack_exports__.uD;
425
+ /******/ var __webpack_exports__copyFile = __webpack_exports__.m3;
426
+ /******/ var __webpack_exports__copyFileSync = __webpack_exports__.Xp;
427
+ /******/ var __webpack_exports__imports = __webpack_exports__.VW;
428
+ /******/ var __webpack_exports__importsPromise = __webpack_exports__.Ee;
429
+ /******/ var __webpack_exports__isDirectory = __webpack_exports__.wd;
430
+ /******/ var __webpack_exports__isDirectorySync = __webpack_exports__.ZP;
431
+ /******/ var __webpack_exports__isFile = __webpack_exports__.fo;
432
+ /******/ var __webpack_exports__isFileSync = __webpack_exports__.WY;
433
+ /******/ var __webpack_exports__walkDirectoryRecursively = __webpack_exports__.y3;
434
+ /******/ var __webpack_exports__walkDirectoryRecursivelySync = __webpack_exports__.hu;
435
+ /******/ export { __webpack_exports__copyDirectoryRecursive as copyDirectoryRecursive, __webpack_exports__copyDirectoryRecursiveSync as copyDirectoryRecursiveSync, __webpack_exports__copyFile as copyFile, __webpack_exports__copyFileSync as copyFileSync, __webpack_exports__imports as imports, __webpack_exports__importsPromise as importsPromise, __webpack_exports__isDirectory as isDirectory, __webpack_exports__isDirectorySync as isDirectorySync, __webpack_exports__isFile as isFile, __webpack_exports__isFileSync as isFileSync, __webpack_exports__walkDirectoryRecursively as walkDirectoryRecursively, __webpack_exports__walkDirectoryRecursivelySync as walkDirectoryRecursivelySync };
436
+ /******/
@@ -0,0 +1,117 @@
1
+ if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;import * as __WEBPACK_EXTERNAL_MODULE_core_js_modules_es_array_includes_js_66c3fd7d__ from "core-js/modules/es.array.includes.js";
2
+ /******/ var __webpack_modules__ = ([
3
+ /* 0 */
4
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
5
+
6
+ var x = function(y) {
7
+ var x = {}; __webpack_require__.d(x, y); return x
8
+ }
9
+ var y = function(x) { return function() { return x; }; }
10
+ module.exports = x({ });
11
+
12
+ /***/ })
13
+ /******/ ]);
14
+ /************************************************************************/
15
+ /******/ // The module cache
16
+ /******/ var __webpack_module_cache__ = {};
17
+ /******/
18
+ /******/ // The require function
19
+ /******/ function __webpack_require__(moduleId) {
20
+ /******/ // Check if module is in cache
21
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
22
+ /******/ if (cachedModule !== undefined) {
23
+ /******/ return cachedModule.exports;
24
+ /******/ }
25
+ /******/ // Create a new module (and put it into the cache)
26
+ /******/ var module = __webpack_module_cache__[moduleId] = {
27
+ /******/ // no module.id needed
28
+ /******/ // no module.loaded needed
29
+ /******/ exports: {}
30
+ /******/ };
31
+ /******/
32
+ /******/ // Execute the module function
33
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
34
+ /******/
35
+ /******/ // Return the exports of the module
36
+ /******/ return module.exports;
37
+ /******/ }
38
+ /******/
39
+ /************************************************************************/
40
+ /******/ /* webpack/runtime/define property getters */
41
+ /******/ !function() {
42
+ /******/ // define getter/value functions for harmony exports
43
+ /******/ __webpack_require__.d = function(exports, definition) {
44
+ /******/ if(Array.isArray(definition)) {
45
+ /******/ var i = 0;
46
+ /******/ while(i < definition.length) {
47
+ /******/ var key = definition[i++];
48
+ /******/ var binding = definition[i++];
49
+ /******/ if(!__webpack_require__.o(exports, key)) {
50
+ /******/ if(binding === 0) {
51
+ /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
52
+ /******/ } else {
53
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
54
+ /******/ }
55
+ /******/ } else if(binding === 0) { i++; }
56
+ /******/ }
57
+ /******/ } else {
58
+ /******/ for(var key in definition) {
59
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
60
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
61
+ /******/ }
62
+ /******/ }
63
+ /******/ }
64
+ /******/ };
65
+ /******/ }();
66
+ /******/
67
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
68
+ /******/ !function() {
69
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
70
+ /******/ }();
71
+ /******/
72
+ /************************************************************************/
73
+ var __webpack_exports__ = {};
74
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75
+ /* harmony export */ D_: function() { return /* binding */ identity; },
76
+ /* harmony export */ Gj: function() { return /* binding */ _getParameterNames; },
77
+ /* harmony export */ gH: function() { return /* binding */ invertArrayFilter; }
78
+ /* harmony export */ });
79
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
80
+ // #!/usr/bin/env babel-node
81
+ // -*- coding: utf-8 -*-
82
+ /** @module function *//* !
83
+ region header
84
+ [Project page](https://torben.website/clientnode)
85
+
86
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
87
+
88
+ License
89
+ -------
90
+
91
+ This library written by Torben Sickert stands under a creative commons
92
+ naming 3.0 unported license.
93
+ See https://creativecommons.org/licenses/by/3.0/deed.de
94
+ endregion
95
+ */function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}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}/**
96
+ * Determines all parameter names from given callable (function or class,
97
+ * ...).
98
+ * @param callable - Function or function code to inspect.
99
+ * @returns List of parameter names.
100
+ */var _getParameterNames=function getParameterNames(callable){var functionCode=(typeof callable==="string"?callable:// Strip comments.
101
+ callable.toString()).replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,"");if(functionCode.startsWith("class"))return _getParameterNames("function "+functionCode.replace(/.*(constructor\([^)]+\))/m,"$1"));// Try classic function declaration.
102
+ var parameter=/^function\s*[^(]*\(\s*([^)]*)\)/m.exec(functionCode);if(parameter===null)// Try arrow function declaration.
103
+ parameter=/^[^(]*\(\s*([^)]*)\) *=>.*/m.exec(functionCode);if(parameter===null)// Try one argument and without brackets arrow function declaration.
104
+ parameter=/([^= ]+) *=>.*/m.exec(functionCode);var names=[];if(parameter&&parameter.length>1&&parameter[1].trim().length){var _iterator=_createForOfIteratorHelper(parameter[1].split(",")),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;)// Remove default parameter values.
105
+ {var name=_step.value;names.push(name.replace(/=.+$/g,"").trim())}}catch(err){_iterator.e(err)}finally{_iterator.f()}return names}return names};/**
106
+ * Implements the identity function.
107
+ * @param value - A value to return.
108
+ * @returns Returns the given value.
109
+ */var identity=function identity(value){return value};/**
110
+ * Inverted filter helper to inverse each given filter.
111
+ * @param filter - A function that filters an array.
112
+ * @returns The inverted filter.
113
+ */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}};
114
+ var __webpack_exports__getParameterNames = __webpack_exports__.Gj;
115
+ var __webpack_exports__identity = __webpack_exports__.D_;
116
+ var __webpack_exports__invertArrayFilter = __webpack_exports__.gH;
117
+ export { __webpack_exports__getParameterNames as getParameterNames, __webpack_exports__identity as identity, __webpack_exports__invertArrayFilter as invertArrayFilter };