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
package/dist/context.js CHANGED
@@ -1,9 +1,58 @@
1
+ if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;/******/ var __webpack_modules__ = ([
2
+ /* 0 */,
3
+ /* 1 */
4
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
5
+
6
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7
+ /* harmony export */ jg: function() { return /* binding */ CONSOLE_METHODS; }
8
+ /* harmony export */ });
9
+ /* unused harmony exports DEFAULT_ENCODING, CLOSE_EVENT_NAMES, 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 */
1
10
  // #!/usr/bin/env babel-node
2
11
  // -*- coding: utf-8 -*-
3
- /** @module context */
4
- 'use strict';
12
+ /** @module constants *//* !
13
+ region header
14
+ [Project page](https://torben.website/clientnode)
15
+
16
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
5
17
 
6
- /* !
18
+ License
19
+ -------
20
+
21
+ This library written by Torben Sickert stands under a creative commons
22
+ naming 3.0 unported license.
23
+ See https://creativecommons.org/licenses/by/3.0/deed.de
24
+ endregion
25
+ */var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=(/* unused pure expression or super */ null && (["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"]));var CONSOLE_METHODS=["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
26
+ // conversion.
27
+ 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.
28
+ var ANIMATION_END_EVENT_NAMES="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd";// String representation to object type name mapping.
29
+ 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.
30
+ 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.
31
+ var SPECIAL_REGEX_SEQUENCES=(/* unused pure expression or super */ null && (["-","[","]","(",")","^","$","*","+",".","{","}"]));// Saves a string with all css3 browser specific transition end event names.
32
+ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd";
33
+
34
+ /***/ }),
35
+ /* 2 */,
36
+ /* 3 */,
37
+ /* 4 */
38
+ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
39
+
40
+ __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
41
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
42
+ /* harmony export */ $Q: function() { return /* binding */ MAXIMAL_NUMBER_OF_ITERATIONS; },
43
+ /* harmony export */ Lz: function() { return /* binding */ globalContext; },
44
+ /* harmony export */ QH: function() { return /* binding */ mockConsole; },
45
+ /* harmony export */ tE: function() { return /* binding */ NOOP; },
46
+ /* harmony export */ zm: function() { return /* binding */ setGlobalContext; }
47
+ /* harmony export */ });
48
+ /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
49
+ /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
50
+ var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_module_js__WEBPACK_IMPORTED_MODULE_0__]);
51
+ var __webpack_async_dependencies_result__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
52
+ _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_async_dependencies_result__[0];
53
+ // #!/usr/bin/env babel-node
54
+ // -*- coding: utf-8 -*-
55
+ /** @module context *//* !
7
56
  region header
8
57
  [Project page](https://torben.website/clientnode)
9
58
 
@@ -16,25 +65,216 @@
16
65
  naming 3.0 unported license.
17
66
  See https://creativecommons.org/licenses/by/3.0/deed.de
18
67
  endregion
19
- */
20
- import { CONSOLE_METHODS } from "./constants.js";
21
- import { determineGlobalContext, optionalImport, optionalRequire } from "./module.js";
22
- export let globalContext = determineGlobalContext();
23
- export const setGlobalContext = context => {
24
- globalContext = context;
25
- };
26
- globalContext.fetch = globalContext.fetch ? globalContext.fetch.bind(globalContext) : optionalRequire('node-fetch')?.default ?? ((...parameters) => optionalImport(/* webpackIgnore: true */'node-fetch').then(module => module.default(...parameters)));
27
- export const MAXIMAL_NUMBER_OF_ITERATIONS = {
28
- value: 100
29
- };
30
- // A no-op dummy function.
31
- export const NOOP = () => {
32
- // Do nothing.
33
- };
34
- export const mockConsole = () => {
35
- // Avoid errors in browsers that lack a console.
36
- if (!Object.prototype.hasOwnProperty.call(globalContext, 'console')) globalContext.console = {};
37
- if (!globalContext.console) globalContext.console = {};
38
- for (const methodName of CONSOLE_METHODS) if (!(methodName in globalContext.console)) globalContext.console[methodName] = NOOP;
39
- };
40
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vc3JjL2NvbnRleHQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gIyEvdXNyL2Jpbi9lbnYgYmFiZWwtbm9kZVxuLy8gLSotIGNvZGluZzogdXRmLTggLSotXG4vKiogQG1vZHVsZSBjb250ZXh0ICovXG4ndXNlIHN0cmljdCdcbi8qICFcbiAgICByZWdpb24gaGVhZGVyXG4gICAgW1Byb2plY3QgcGFnZV0oaHR0cHM6Ly90b3JiZW4ud2Vic2l0ZS9jbGllbnRub2RlKVxuXG4gICAgQ29weXJpZ2h0IFRvcmJlbiBTaWNrZXJ0IChpbmZvW1wifmF0flwiXXRvcmJlbi53ZWJzaXRlKSAxNi4xMi4yMDEyXG5cbiAgICBMaWNlbnNlXG4gICAgLS0tLS0tLVxuXG4gICAgVGhpcyBsaWJyYXJ5IHdyaXR0ZW4gYnkgVG9yYmVuIFNpY2t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UNBLElBQUksQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQUMsYUFBYSxFQUFFLFNBQVMsQ0FBQyxFQUM5RCxhQUFhLENBQ1QsT0FBTyxHQUFHLENBQUMsQ0FBQztFQUVyQixJQUFJLENBQUMsYUFBYSxDQUFDLE9BQU8sRUFDdEIsYUFBYSxDQUFDLE9BQU8sR0FBRyxDQUFDLENBQVk7RUFFekMsS0FBSyxNQUFNLFVBQVUsSUFBSSxlQUFlLEVBQ3BDLElBQUksRUFBRSxVQUFVLElBQUksYUFBYSxDQUFDLE9BQU8sQ0FBQyxFQUN0QyxhQUFhLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBVSxHQUN0QyxJQUFzQjtBQUN0QyxDQUFDIiwiaWdub3JlTGlzdCI6W119
68
+ */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={value:100};// A no-op dummy function.
69
+ var NOOP=function NOOP(){// Do nothing.
70
+ };var mockConsole=function mockConsole(){// Avoid errors in browsers that lack a console.
71
+ if(!Object.prototype.hasOwnProperty.call(globalContext,"console"))globalContext.console={};if(!globalContext.console)globalContext.console={};var _iterator=_createForOfIteratorHelper(_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CONSOLE_METHODS */ .jg),_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()}};
72
+ __webpack_async_result__();
73
+ } catch(e) { __webpack_async_result__(e); } });
74
+
75
+ /***/ }),
76
+ /* 5 */
77
+ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
78
+
79
+ __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
80
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
81
+ /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
82
+ /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
83
+ /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
84
+ /* harmony export */ });
85
+ /* unused harmony exports isImportSyntaxSupported, currentRequire, clearRequireCache, isolatedRequire */
86
+ // #!/usr/bin/env babel-node
87
+ // -*- coding: utf-8 -*-
88
+ /** @module module *//* !
89
+ region header
90
+ [Project page](https://torben.website/clientnode)
91
+
92
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
93
+
94
+ License
95
+ -------
96
+
97
+ This library written by Torben Sickert stands under a creative commons
98
+ naming 3.0 unported license.
99
+ See https://creativecommons.org/licenses/by/3.0/deed.de
100
+ endregion
101
+ */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):(e.__proto__=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.
102
+ var isImportSyntaxSupported=function isImportSyntaxSupported(){try{// eslint-disable-next-line @typescript-eslint/no-implied-eval
103
+ new Function("import(\"data:text/javascript,\")");return true}catch(_unused){return false}};// Make preprocessed require function available at runtime.
104
+ var customRequire=typeof globalContext.require==="undefined"?null:globalContext.require;if(!customRequire&&isImportSyntaxSupported())try{var _await$Function=/*
105
+ eslint-disable
106
+ @typescript-eslint/no-implied-eval,
107
+ @typescript-eslint/no-unsafe-call
108
+ */await new Function("return import(\"node:module\")")(),createRequire=_await$Function.createRequire;/*
109
+ eslint-enable
110
+ @typescript-eslint/no-implied-eval,
111
+ @typescript-eslint/no-unsafe-call
112
+ */// eslint-disable-next-line @typescript-eslint/no-unsafe-call
113
+ customRequire=createRequire("file:///__w/clientnode/clientnode/src/module.ts")}catch(_unused2){// Ignore error.
114
+ }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
115
+ }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}();
116
+ __webpack_async_result__();
117
+ } catch(e) { __webpack_async_result__(e); } }, 1);
118
+
119
+ /***/ })
120
+ /******/ ]);
121
+ /************************************************************************/
122
+ /******/ // The module cache
123
+ /******/ var __webpack_module_cache__ = {};
124
+ /******/
125
+ /******/ // The require function
126
+ /******/ function __webpack_require__(moduleId) {
127
+ /******/ // Check if module is in cache
128
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
129
+ /******/ if (cachedModule !== undefined) {
130
+ /******/ return cachedModule.exports;
131
+ /******/ }
132
+ /******/ // Create a new module (and put it into the cache)
133
+ /******/ var module = __webpack_module_cache__[moduleId] = {
134
+ /******/ // no module.id needed
135
+ /******/ // no module.loaded needed
136
+ /******/ exports: {}
137
+ /******/ };
138
+ /******/
139
+ /******/ // Execute the module function
140
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
141
+ /******/
142
+ /******/ // Return the exports of the module
143
+ /******/ return module.exports;
144
+ /******/ }
145
+ /******/
146
+ /************************************************************************/
147
+ /******/ /* webpack/runtime/async module */
148
+ /******/ !function() {
149
+ /******/ var hasSymbol = typeof Symbol === "function";
150
+ /******/ var webpackQueues = hasSymbol ? Symbol("webpack queues") : "__webpack_queues__";
151
+ /******/ var webpackExports = hasSymbol ? Symbol("webpack exports") : "__webpack_exports__";
152
+ /******/ var webpackError = hasSymbol ? Symbol("webpack error") : "__webpack_error__";
153
+ /******/
154
+ /******/ var resolveQueue = function(queue) {
155
+ /******/ if(queue && queue.d < 1) {
156
+ /******/ queue.d = 1;
157
+ /******/ queue.forEach(function(fn) { fn.r--; });
158
+ /******/ queue.forEach(function(fn) { fn.r-- ? fn.r++ : fn(); });
159
+ /******/ }
160
+ /******/ }
161
+ /******/ var wrapDeps = function(deps) { return deps.map(function(dep) {
162
+ /******/ if(dep !== null && typeof dep === "object") {
163
+ /******/
164
+ /******/ if(dep[webpackQueues]) return dep;
165
+ /******/ if(dep.then) {
166
+ /******/ var queue = [];
167
+ /******/ queue.d = 0;
168
+ /******/ dep.then(function(r) {
169
+ /******/ obj[webpackExports] = r;
170
+ /******/ resolveQueue(queue);
171
+ /******/ }, function(e) {
172
+ /******/ obj[webpackError] = e;
173
+ /******/ resolveQueue(queue);
174
+ /******/ });
175
+ /******/ var obj = {};
176
+ /******/
177
+ /******/ obj[webpackQueues] = function(fn) { fn(queue); };
178
+ /******/ return obj;
179
+ /******/ }
180
+ /******/ }
181
+ /******/ var ret = {};
182
+ /******/ ret[webpackQueues] = function() {};
183
+ /******/ ret[webpackExports] = dep;
184
+ /******/ return ret;
185
+ /******/ }); };
186
+ /******/ __webpack_require__.a = function(module, body, hasAwait) {
187
+ /******/ var queue;
188
+ /******/ hasAwait && ((queue = []).d = -1);
189
+ /******/ var depQueues = new Set();
190
+ /******/ var exports = module.exports;
191
+ /******/ var currentDeps;
192
+ /******/ var outerResolve;
193
+ /******/ var reject;
194
+ /******/ var promise = new Promise(function(resolve, rej) {
195
+ /******/ reject = rej;
196
+ /******/ outerResolve = resolve;
197
+ /******/ });
198
+ /******/ promise[webpackExports] = exports;
199
+ /******/ promise[webpackQueues] = function(fn) { queue && fn(queue), depQueues.forEach(fn), promise["catch"](function() {}); };
200
+ /******/ module.exports = promise;
201
+ /******/ var handle = function(deps) {
202
+ /******/ currentDeps = wrapDeps(deps);
203
+ /******/ var fn;
204
+ /******/ var getResult = function() { return currentDeps.map(function(d) {
205
+ /******/
206
+ /******/ if(d[webpackError]) throw d[webpackError];
207
+ /******/ return d[webpackExports];
208
+ /******/ }); }
209
+ /******/ var promise = new Promise(function(resolve) {
210
+ /******/ fn = function() { resolve(getResult); };
211
+ /******/ fn.r = 0;
212
+ /******/ var fnQueue = function(q) { q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))); };
213
+ /******/ currentDeps.map(function(dep) { dep[webpackQueues](fnQueue); });
214
+ /******/ });
215
+ /******/ return fn.r ? promise : getResult();
216
+ /******/ }
217
+ /******/ var done = function(err) { (err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue); }
218
+ /******/ body(handle, done);
219
+ /******/ queue && queue.d < 0 && (queue.d = 0);
220
+ /******/ };
221
+ /******/ }();
222
+ /******/
223
+ /******/ /* webpack/runtime/define property getters */
224
+ /******/ !function() {
225
+ /******/ // define getter/value functions for harmony exports
226
+ /******/ __webpack_require__.d = function(exports, definition) {
227
+ /******/ if(Array.isArray(definition)) {
228
+ /******/ var i = 0;
229
+ /******/ while(i < definition.length) {
230
+ /******/ var key = definition[i++];
231
+ /******/ var binding = definition[i++];
232
+ /******/ if(!__webpack_require__.o(exports, key)) {
233
+ /******/ if(binding === 0) {
234
+ /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
235
+ /******/ } else {
236
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
237
+ /******/ }
238
+ /******/ } else if(binding === 0) { i++; }
239
+ /******/ }
240
+ /******/ } else {
241
+ /******/ for(var key in definition) {
242
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
243
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
244
+ /******/ }
245
+ /******/ }
246
+ /******/ }
247
+ /******/ };
248
+ /******/ }();
249
+ /******/
250
+ /******/ /* webpack/runtime/global */
251
+ /******/ !function() {
252
+ /******/ __webpack_require__.g = (function() {
253
+ /******/ if (typeof globalThis === 'object') return globalThis;
254
+ /******/ try {
255
+ /******/ return this || new Function('return this')();
256
+ /******/ } catch (e) {
257
+ /******/ if (typeof window === 'object') return window;
258
+ /******/ }
259
+ /******/ })();
260
+ /******/ }();
261
+ /******/
262
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
263
+ /******/ !function() {
264
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
265
+ /******/ }();
266
+ /******/
267
+ /************************************************************************/
268
+ /******/
269
+ /******/ // startup
270
+ /******/ // Load entry module and return exports
271
+ /******/ // This entry module used 'module' so it can't be inlined
272
+ /******/ var __webpack_exports__ = __webpack_require__(4);
273
+ /******/ __webpack_exports__ = await __webpack_exports__;
274
+ /******/ var __webpack_exports__MAXIMAL_NUMBER_OF_ITERATIONS = __webpack_exports__.$Q;
275
+ /******/ var __webpack_exports__NOOP = __webpack_exports__.tE;
276
+ /******/ var __webpack_exports__globalContext = __webpack_exports__.Lz;
277
+ /******/ var __webpack_exports__mockConsole = __webpack_exports__.QH;
278
+ /******/ var __webpack_exports__setGlobalContext = __webpack_exports__.zm;
279
+ /******/ export { __webpack_exports__MAXIMAL_NUMBER_OF_ITERATIONS as MAXIMAL_NUMBER_OF_ITERATIONS, __webpack_exports__NOOP as NOOP, __webpack_exports__globalContext as globalContext, __webpack_exports__mockConsole as mockConsole, __webpack_exports__setGlobalContext as setGlobalContext };
280
+ /******/