lakutata 2.0.81 → 2.0.83

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 (234) hide show
  1. package/com/docker.cjs +1 -1
  2. package/com/docker.mjs +1 -1
  3. package/decorator/orm.cjs +84 -84
  4. package/decorator/orm.mjs +42 -128
  5. package/orm.cjs +873 -1410
  6. package/orm.mjs +708 -1458
  7. package/package.json +1 -1
  8. package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +230 -239
  9. package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +230 -239
  10. package/src/components/docker/ConnectionOptionsBuilder.cjs +1 -1
  11. package/src/components/docker/ConnectionOptionsBuilder.mjs +1 -1
  12. package/src/components/docker/Docker.cjs +4919 -4808
  13. package/src/components/docker/Docker.mjs +4939 -4828
  14. package/src/components/docker/lib/DockerContainer.cjs +1 -1
  15. package/src/components/docker/lib/DockerContainer.mjs +1 -1
  16. package/src/components/docker/lib/DockerContainerTTY.cjs +1 -1
  17. package/src/components/docker/lib/DockerContainerTTY.mjs +1 -1
  18. package/src/components/entrypoint/Entrypoint.cjs +1669 -2159
  19. package/src/components/entrypoint/Entrypoint.mjs +1629 -2119
  20. package/src/decorators/orm/AfterInsert.cjs +26 -4
  21. package/src/decorators/orm/AfterInsert.mjs +25 -5
  22. package/src/decorators/orm/AfterLoad.cjs +26 -4
  23. package/src/decorators/orm/AfterLoad.mjs +25 -5
  24. package/src/decorators/orm/AfterRecover.cjs +26 -4
  25. package/src/decorators/orm/AfterRecover.mjs +25 -5
  26. package/src/decorators/orm/AfterRemove.cjs +26 -4
  27. package/src/decorators/orm/AfterRemove.mjs +25 -5
  28. package/src/decorators/orm/AfterSoftRemove.cjs +26 -4
  29. package/src/decorators/orm/AfterSoftRemove.mjs +25 -5
  30. package/src/decorators/orm/AfterUpdate.cjs +26 -4
  31. package/src/decorators/orm/AfterUpdate.mjs +25 -5
  32. package/src/decorators/orm/BeforeInsert.cjs +26 -4
  33. package/src/decorators/orm/BeforeInsert.mjs +25 -5
  34. package/src/decorators/orm/BeforeRecover.cjs +26 -4
  35. package/src/decorators/orm/BeforeRecover.mjs +25 -5
  36. package/src/decorators/orm/BeforeRemove.cjs +26 -4
  37. package/src/decorators/orm/BeforeRemove.mjs +25 -5
  38. package/src/decorators/orm/BeforeSoftRemove.cjs +26 -4
  39. package/src/decorators/orm/BeforeSoftRemove.mjs +25 -5
  40. package/src/decorators/orm/BeforeUpdate.cjs +26 -4
  41. package/src/decorators/orm/BeforeUpdate.mjs +25 -5
  42. package/src/decorators/orm/Check.cjs +29 -4
  43. package/src/decorators/orm/Check.mjs +28 -5
  44. package/src/decorators/orm/ChildEntity.cjs +29 -4
  45. package/src/decorators/orm/ChildEntity.mjs +28 -5
  46. package/src/decorators/orm/Column.cjs +61 -4
  47. package/src/decorators/orm/Column.mjs +61 -6
  48. package/src/decorators/orm/CreateDateColumn.cjs +25 -4
  49. package/src/decorators/orm/CreateDateColumn.mjs +24 -5
  50. package/src/decorators/orm/DeleteDateColumn.cjs +25 -4
  51. package/src/decorators/orm/DeleteDateColumn.mjs +23 -4
  52. package/src/decorators/orm/Entity.cjs +35 -4
  53. package/src/decorators/orm/Entity.mjs +33 -4
  54. package/src/decorators/orm/EventSubscriber.cjs +22 -4
  55. package/src/decorators/orm/EventSubscriber.mjs +21 -5
  56. package/src/decorators/orm/Exclusion.cjs +29 -4
  57. package/src/decorators/orm/Exclusion.mjs +28 -5
  58. package/src/decorators/orm/Generated.cjs +24 -4
  59. package/src/decorators/orm/Generated.mjs +23 -5
  60. package/src/decorators/orm/Index.cjs +41 -4
  61. package/src/decorators/orm/Index.mjs +41 -6
  62. package/src/decorators/orm/JoinColumn.cjs +29 -4
  63. package/src/decorators/orm/JoinColumn.mjs +28 -5
  64. package/src/decorators/orm/JoinTable.cjs +30 -4
  65. package/src/decorators/orm/JoinTable.mjs +28 -4
  66. package/src/decorators/orm/ManyToMany.cjs +42 -4
  67. package/src/decorators/orm/ManyToMany.mjs +40 -4
  68. package/src/decorators/orm/ManyToOne.cjs +42 -4
  69. package/src/decorators/orm/ManyToOne.mjs +40 -4
  70. package/src/decorators/orm/ObjectIdColumn.cjs +28 -4
  71. package/src/decorators/orm/ObjectIdColumn.mjs +27 -5
  72. package/src/decorators/orm/OneToMany.cjs +34 -4
  73. package/src/decorators/orm/OneToMany.mjs +34 -6
  74. package/src/decorators/orm/OneToOne.cjs +42 -4
  75. package/src/decorators/orm/OneToOne.mjs +40 -4
  76. package/src/decorators/orm/PrimaryColumn.cjs +49 -4
  77. package/src/decorators/orm/PrimaryColumn.mjs +49 -6
  78. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +54 -4
  79. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +54 -6
  80. package/src/decorators/orm/RelationId.cjs +26 -4
  81. package/src/decorators/orm/RelationId.mjs +25 -5
  82. package/src/decorators/orm/TableInheritance.cjs +26 -4
  83. package/src/decorators/orm/TableInheritance.mjs +25 -5
  84. package/src/decorators/orm/Tree.cjs +24 -4
  85. package/src/decorators/orm/Tree.mjs +23 -5
  86. package/src/decorators/orm/TreeChildren.cjs +31 -4
  87. package/src/decorators/orm/TreeChildren.mjs +29 -4
  88. package/src/decorators/orm/TreeLevelColumn.cjs +25 -4
  89. package/src/decorators/orm/TreeLevelColumn.mjs +23 -4
  90. package/src/decorators/orm/TreeParent.cjs +31 -4
  91. package/src/decorators/orm/TreeParent.mjs +29 -4
  92. package/src/decorators/orm/Unique.cjs +44 -4
  93. package/src/decorators/orm/Unique.mjs +44 -6
  94. package/src/decorators/orm/UpdateDateColumn.cjs +25 -4
  95. package/src/decorators/orm/UpdateDateColumn.mjs +24 -5
  96. package/src/decorators/orm/VersionColumn.cjs +25 -4
  97. package/src/decorators/orm/VersionColumn.mjs +24 -5
  98. package/src/decorators/orm/ViewColumn.cjs +25 -4
  99. package/src/decorators/orm/ViewColumn.mjs +24 -5
  100. package/src/decorators/orm/ViewEntity.cjs +34 -4
  101. package/src/decorators/orm/ViewEntity.mjs +33 -5
  102. package/src/decorators/orm/VirtualColumn.cjs +42 -4
  103. package/src/decorators/orm/VirtualColumn.mjs +40 -4
  104. package/src/lib/base/EventEmitter.cjs +1193 -1200
  105. package/src/lib/base/EventEmitter.mjs +1194 -1201
  106. package/src/lib/base/internal/DataValidator.cjs +185 -174
  107. package/src/lib/base/internal/DataValidator.mjs +186 -175
  108. package/src/lib/base/internal/PatternManager.cjs +735 -740
  109. package/src/lib/base/internal/PatternManager.mjs +740 -745
  110. package/src/lib/core/Application.cjs +99 -112
  111. package/src/lib/core/Application.mjs +127 -140
  112. package/src/lib/helpers/IsHtml.cjs +13 -7
  113. package/src/lib/helpers/IsHtml.mjs +13 -7
  114. package/src/lib/helpers/IsXML.cjs +1016 -1158
  115. package/src/lib/helpers/IsXML.mjs +729 -871
  116. package/src/lib/helpers/ObjectHash.cjs +371 -378
  117. package/src/lib/helpers/ObjectHash.mjs +371 -378
  118. package/src/lib/helpers/RandomString.cjs +146 -167
  119. package/src/lib/helpers/RandomString.mjs +145 -166
  120. package/src/lib/helpers/URLBuilder.cjs +355 -355
  121. package/src/lib/helpers/URLBuilder.mjs +350 -350
  122. package/src/lib/ioc/ListModules.cjs +5237 -5160
  123. package/src/lib/ioc/ListModules.mjs +5252 -5175
  124. package/src/lib/validation/VLD.cjs +3903 -4080
  125. package/src/lib/validation/VLD.mjs +2793 -2970
  126. package/src/providers/migration/GenerateMigration.cjs +2 -2
  127. package/src/providers/migration/GenerateMigration.mjs +2 -2
  128. package/vendor/Package.112.cjs +38321 -38240
  129. package/vendor/Package.112.mjs +37720 -37579
  130. package/vendor/Package.16.cjs +7386 -7268
  131. package/vendor/Package.16.mjs +6706 -6588
  132. package/vendor/Package.18.cjs +48229 -20
  133. package/vendor/Package.18.mjs +48192 -24
  134. package/vendor/Package.2.cjs +5698 -5727
  135. package/vendor/Package.2.mjs +5707 -5736
  136. package/vendor/Package.4.cjs +874 -884
  137. package/vendor/Package.4.mjs +874 -884
  138. package/vendor/Package.5.cjs +11 -15
  139. package/vendor/Package.5.mjs +7 -11
  140. package/vendor/Package.6.cjs +511 -520
  141. package/vendor/Package.6.mjs +534 -543
  142. package/vendor/Package.62.cjs +87 -90
  143. package/vendor/Package.62.mjs +180 -183
  144. package/vendor/Package.65.cjs +1285 -1292
  145. package/vendor/Package.65.mjs +190 -197
  146. package/vendor/Package.68.cjs +111 -252
  147. package/vendor/Package.68.mjs +134 -268
  148. package/vendor/Package.9.cjs +118 -132
  149. package/vendor/Package.9.mjs +124 -138
  150. package/vendor/TypeDef.internal.3.d.ts +0 -14
  151. package/vendor/Package.19.cjs +0 -37
  152. package/vendor/Package.19.mjs +0 -35
  153. package/vendor/Package.20.cjs +0 -37
  154. package/vendor/Package.20.mjs +0 -35
  155. package/vendor/Package.21.cjs +0 -37
  156. package/vendor/Package.21.mjs +0 -35
  157. package/vendor/Package.22.cjs +0 -37
  158. package/vendor/Package.22.mjs +0 -35
  159. package/vendor/Package.23.cjs +0 -37
  160. package/vendor/Package.23.mjs +0 -35
  161. package/vendor/Package.24.cjs +0 -37
  162. package/vendor/Package.24.mjs +0 -35
  163. package/vendor/Package.25.cjs +0 -37
  164. package/vendor/Package.25.mjs +0 -35
  165. package/vendor/Package.26.cjs +0 -37
  166. package/vendor/Package.26.mjs +0 -35
  167. package/vendor/Package.27.cjs +0 -37
  168. package/vendor/Package.27.mjs +0 -35
  169. package/vendor/Package.28.cjs +0 -37
  170. package/vendor/Package.28.mjs +0 -35
  171. package/vendor/Package.29.cjs +0 -40
  172. package/vendor/Package.29.mjs +0 -38
  173. package/vendor/Package.30.cjs +0 -41
  174. package/vendor/Package.30.mjs +0 -39
  175. package/vendor/Package.31.cjs +0 -72
  176. package/vendor/Package.31.mjs +0 -70
  177. package/vendor/Package.32.cjs +0 -37
  178. package/vendor/Package.32.mjs +0 -35
  179. package/vendor/Package.33.cjs +0 -37
  180. package/vendor/Package.33.mjs +0 -35
  181. package/vendor/Package.34.cjs +0 -46
  182. package/vendor/Package.34.mjs +0 -44
  183. package/vendor/Package.35.cjs +0 -34
  184. package/vendor/Package.35.mjs +0 -32
  185. package/vendor/Package.36.cjs +0 -40
  186. package/vendor/Package.36.mjs +0 -38
  187. package/vendor/Package.37.cjs +0 -36
  188. package/vendor/Package.37.mjs +0 -34
  189. package/vendor/Package.38.cjs +0 -52
  190. package/vendor/Package.38.mjs +0 -50
  191. package/vendor/Package.39.cjs +0 -41
  192. package/vendor/Package.39.mjs +0 -39
  193. package/vendor/Package.40.cjs +0 -42
  194. package/vendor/Package.40.mjs +0 -40
  195. package/vendor/Package.41.cjs +0 -53
  196. package/vendor/Package.41.mjs +0 -51
  197. package/vendor/Package.42.cjs +0 -53
  198. package/vendor/Package.42.mjs +0 -51
  199. package/vendor/Package.43.cjs +0 -40
  200. package/vendor/Package.43.mjs +0 -38
  201. package/vendor/Package.44.cjs +0 -46
  202. package/vendor/Package.44.mjs +0 -44
  203. package/vendor/Package.45.cjs +0 -53
  204. package/vendor/Package.45.mjs +0 -51
  205. package/vendor/Package.46.cjs +0 -59
  206. package/vendor/Package.46.mjs +0 -57
  207. package/vendor/Package.47.cjs +0 -65
  208. package/vendor/Package.47.mjs +0 -63
  209. package/vendor/Package.48.cjs +0 -38
  210. package/vendor/Package.48.mjs +0 -36
  211. package/vendor/Package.49.cjs +0 -38
  212. package/vendor/Package.49.mjs +0 -36
  213. package/vendor/Package.50.cjs +0 -36
  214. package/vendor/Package.50.mjs +0 -34
  215. package/vendor/Package.51.cjs +0 -43
  216. package/vendor/Package.51.mjs +0 -41
  217. package/vendor/Package.52.cjs +0 -37
  218. package/vendor/Package.52.mjs +0 -35
  219. package/vendor/Package.53.cjs +0 -43
  220. package/vendor/Package.53.mjs +0 -41
  221. package/vendor/Package.54.cjs +0 -55
  222. package/vendor/Package.54.mjs +0 -53
  223. package/vendor/Package.55.cjs +0 -37
  224. package/vendor/Package.55.mjs +0 -35
  225. package/vendor/Package.56.cjs +0 -37
  226. package/vendor/Package.56.mjs +0 -35
  227. package/vendor/Package.57.cjs +0 -37
  228. package/vendor/Package.57.mjs +0 -35
  229. package/vendor/Package.58.cjs +0 -45
  230. package/vendor/Package.58.mjs +0 -43
  231. package/vendor/Package.59.cjs +0 -53
  232. package/vendor/Package.59.mjs +0 -51
  233. package/vendor/Package.60.cjs +0 -47649
  234. package/vendor/Package.60.mjs +0 -47606
@@ -6,406 +6,406 @@ Object.defineProperty(exports, Symbol.toStringTag, {
6
6
 
7
7
  const e = require("../../../vendor/Package.5.cjs");
8
8
 
9
- var t;
10
-
11
- var s;
12
-
13
- function o() {
14
- if (s) return t;
15
- s = 1;
16
- "use strict";
17
- t = function e(t, s) {
18
- s = s.split(":")[0];
19
- t = +t;
20
- if (!t) return false;
21
- switch (s) {
22
- case "http":
23
- case "ws":
24
- return t !== 80;
25
-
26
- case "https":
27
- case "wss":
28
- return t !== 443;
29
-
30
- case "ftp":
31
- return t !== 21;
32
-
33
- case "gopher":
34
- return t !== 70;
35
-
36
- case "file":
37
- return false;
38
- }
39
- return t !== 0;
40
- };
41
- return t;
42
- }
9
+ "use strict";
43
10
 
44
- var r = {};
11
+ var t = function e(t, s) {
12
+ s = s.split(":")[0];
13
+ t = +t;
14
+ if (!t) return false;
15
+ switch (s) {
16
+ case "http":
17
+ case "ws":
18
+ return t !== 80;
45
19
 
46
- var n;
20
+ case "https":
21
+ case "wss":
22
+ return t !== 443;
47
23
 
48
- function i() {
49
- if (n) return r;
50
- n = 1;
51
- "use strict";
52
- var e = Object.prototype.hasOwnProperty, t;
53
- function s(e) {
54
- try {
55
- return decodeURIComponent(e.replace(/\+/g, " "));
56
- } catch (e) {
57
- return null;
58
- }
24
+ case "ftp":
25
+ return t !== 21;
26
+
27
+ case "gopher":
28
+ return t !== 70;
29
+
30
+ case "file":
31
+ return false;
59
32
  }
60
- function o(e) {
61
- try {
62
- return encodeURIComponent(e);
63
- } catch (e) {
64
- return null;
65
- }
33
+ return t !== 0;
34
+ };
35
+
36
+ const s = e.getDefaultExportFromCjs(t);
37
+
38
+ var o = {};
39
+
40
+ "use strict";
41
+
42
+ var r = Object.prototype.hasOwnProperty, n;
43
+
44
+ function i(e) {
45
+ try {
46
+ return decodeURIComponent(e.replace(/\+/g, " "));
47
+ } catch (e) {
48
+ return null;
66
49
  }
67
- function i(e) {
68
- var t = /([^=?#&]+)=?([^&]*)/g, o = {}, r;
69
- while (r = t.exec(e)) {
70
- var n = s(r[1]), i = s(r[2]);
71
- if (n === null || i === null || n in o) continue;
72
- o[n] = i;
73
- }
74
- return o;
50
+ }
51
+
52
+ function a(e) {
53
+ try {
54
+ return encodeURIComponent(e);
55
+ } catch (e) {
56
+ return null;
75
57
  }
76
- function a(s, r) {
77
- r = r || "";
78
- var n = [], i, a;
79
- if ("string" !== typeof r) r = "?";
80
- for (a in s) {
81
- if (e.call(s, a)) {
82
- i = s[a];
83
- if (!i && (i === null || i === t || isNaN(i))) {
84
- i = "";
85
- }
86
- a = o(a);
87
- i = o(i);
88
- if (a === null || i === null) continue;
89
- n.push(a + "=" + i);
58
+ }
59
+
60
+ function h(e) {
61
+ var t = /([^=?#&]+)=?([^&]*)/g, s = {}, o;
62
+ while (o = t.exec(e)) {
63
+ var r = i(o[1]), n = i(o[2]);
64
+ if (r === null || n === null || r in s) continue;
65
+ s[r] = n;
66
+ }
67
+ return s;
68
+ }
69
+
70
+ function l(e, t) {
71
+ t = t || "";
72
+ var s = [], o, i;
73
+ if ("string" !== typeof t) t = "?";
74
+ for (i in e) {
75
+ if (r.call(e, i)) {
76
+ o = e[i];
77
+ if (!o && (o === null || o === n || isNaN(o))) {
78
+ o = "";
90
79
  }
80
+ i = a(i);
81
+ o = a(o);
82
+ if (i === null || o === null) continue;
83
+ s.push(i + "=" + o);
91
84
  }
92
- return n.length ? r + n.join("&") : "";
93
85
  }
94
- r.stringify = a;
95
- r.parse = i;
96
- return r;
86
+ return s.length ? t + s.join("&") : "";
97
87
  }
98
88
 
99
- var a;
89
+ var c = o.stringify = l;
100
90
 
101
- var h;
91
+ var u = o.parse = h;
102
92
 
103
- function l() {
104
- if (h) return a;
105
- h = 1;
106
- "use strict";
107
- var t = o(), s = i(), r = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/, n = /[\n\r\t]/g, l = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, u = /:\d+$/, c = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, f = /^[a-zA-Z]:/;
108
- function p(e) {
109
- return (e ? e : "").toString().replace(r, "");
110
- }
111
- var d = [ [ "#", "hash" ], [ "?", "query" ], function e(t, s) {
112
- return w(s.protocol) ? t.replace(/\\/g, "/") : t;
113
- }, [ "/", "pathname" ], [ "@", "auth", 1 ], [ NaN, "host", undefined, 1, 1 ], [ /:(\d*)$/, "port", undefined, 1 ], [ NaN, "hostname", undefined, 1, 1 ] ];
114
- var m = {
115
- hash: 1,
116
- query: 1
117
- };
118
- function g(t) {
119
- var s;
120
- if (typeof window !== "undefined") s = window; else if (typeof e.commonjsGlobal !== "undefined") s = e.commonjsGlobal; else if (typeof self !== "undefined") s = self; else s = {};
121
- var o = s.location || {};
122
- t = t || o;
123
- var r = {}, n = typeof t, i;
124
- if ("blob:" === t.protocol) {
125
- r = new v(unescape(t.pathname), {});
126
- } else if ("string" === n) {
127
- r = new v(t, {});
128
- for (i in m) delete r[i];
129
- } else if ("object" === n) {
130
- for (i in t) {
131
- if (i in m) continue;
132
- r[i] = t[i];
133
- }
134
- if (r.slashes === undefined) {
135
- r.slashes = l.test(t.href);
136
- }
93
+ "use strict";
94
+
95
+ var f = t, p = o, d = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/, m = /[\n\r\t]/g, g = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, w = /:\d+$/, y = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, b = /^[a-zA-Z]:/;
96
+
97
+ function v(e) {
98
+ return (e ? e : "").toString().replace(d, "");
99
+ }
100
+
101
+ var j = [ [ "#", "hash" ], [ "?", "query" ], function e(t, s) {
102
+ return R(s.protocol) ? t.replace(/\\/g, "/") : t;
103
+ }, [ "/", "pathname" ], [ "@", "auth", 1 ], [ NaN, "host", undefined, 1, 1 ], [ /:(\d*)$/, "port", undefined, 1 ], [ NaN, "hostname", undefined, 1, 1 ] ];
104
+
105
+ var O = {
106
+ hash: 1,
107
+ query: 1
108
+ };
109
+
110
+ function C(t) {
111
+ var s;
112
+ if (typeof window !== "undefined") s = window; else if (typeof e.commonjsGlobal !== "undefined") s = e.commonjsGlobal; else if (typeof self !== "undefined") s = self; else s = {};
113
+ var o = s.location || {};
114
+ t = t || o;
115
+ var r = {}, n = typeof t, i;
116
+ if ("blob:" === t.protocol) {
117
+ r = new q(unescape(t.pathname), {});
118
+ } else if ("string" === n) {
119
+ r = new q(t, {});
120
+ for (i in O) delete r[i];
121
+ } else if ("object" === n) {
122
+ for (i in t) {
123
+ if (i in O) continue;
124
+ r[i] = t[i];
125
+ }
126
+ if (r.slashes === undefined) {
127
+ r.slashes = g.test(t.href);
137
128
  }
138
- return r;
139
- }
140
- function w(e) {
141
- return e === "file:" || e === "ftp:" || e === "http:" || e === "https:" || e === "ws:" || e === "wss:";
142
129
  }
143
- function y(e, t) {
144
- e = p(e);
145
- e = e.replace(n, "");
146
- t = t || {};
147
- var s = c.exec(e);
148
- var o = s[1] ? s[1].toLowerCase() : "";
149
- var r = !!s[2];
150
- var i = !!s[3];
151
- var a = 0;
152
- var h;
153
- if (r) {
154
- if (i) {
155
- h = s[2] + s[3] + s[4];
156
- a = s[2].length + s[3].length;
157
- } else {
158
- h = s[2] + s[4];
159
- a = s[2].length;
160
- }
130
+ return r;
131
+ }
132
+
133
+ function R(e) {
134
+ return e === "file:" || e === "ftp:" || e === "http:" || e === "https:" || e === "ws:" || e === "wss:";
135
+ }
136
+
137
+ function U(e, t) {
138
+ e = v(e);
139
+ e = e.replace(m, "");
140
+ t = t || {};
141
+ var s = y.exec(e);
142
+ var o = s[1] ? s[1].toLowerCase() : "";
143
+ var r = !!s[2];
144
+ var n = !!s[3];
145
+ var i = 0;
146
+ var a;
147
+ if (r) {
148
+ if (n) {
149
+ a = s[2] + s[3] + s[4];
150
+ i = s[2].length + s[3].length;
161
151
  } else {
162
- if (i) {
163
- h = s[3] + s[4];
164
- a = s[3].length;
165
- } else {
166
- h = s[4];
167
- }
152
+ a = s[2] + s[4];
153
+ i = s[2].length;
168
154
  }
169
- if (o === "file:") {
170
- if (a >= 2) {
171
- h = h.slice(2);
172
- }
173
- } else if (w(o)) {
174
- h = s[4];
175
- } else if (o) {
176
- if (r) {
177
- h = h.slice(2);
178
- }
179
- } else if (a >= 2 && w(t.protocol)) {
180
- h = s[4];
155
+ } else {
156
+ if (n) {
157
+ a = s[3] + s[4];
158
+ i = s[3].length;
159
+ } else {
160
+ a = s[4];
181
161
  }
182
- return {
183
- protocol: o,
184
- slashes: r || w(o),
185
- slashesCount: a,
186
- rest: h
187
- };
188
162
  }
189
- function b(e, t) {
190
- if (e === "") return t;
191
- var s = (t || "/").split("/").slice(0, -1).concat(e.split("/")), o = s.length, r = s[o - 1], n = false, i = 0;
192
- while (o--) {
193
- if (s[o] === ".") {
194
- s.splice(o, 1);
195
- } else if (s[o] === "..") {
196
- s.splice(o, 1);
197
- i++;
198
- } else if (i) {
199
- if (o === 0) n = true;
200
- s.splice(o, 1);
201
- i--;
202
- }
163
+ if (o === "file:") {
164
+ if (i >= 2) {
165
+ a = a.slice(2);
203
166
  }
204
- if (n) s.unshift("");
205
- if (r === "." || r === "..") s.push("");
206
- return s.join("/");
207
- }
208
- function v(e, o, r) {
209
- e = p(e);
210
- e = e.replace(n, "");
211
- if (!(this instanceof v)) {
212
- return new v(e, o, r);
167
+ } else if (R(o)) {
168
+ a = s[4];
169
+ } else if (o) {
170
+ if (r) {
171
+ a = a.slice(2);
213
172
  }
214
- var i, a, h, l, u, c, m = d.slice(), j = typeof o, O = this, C = 0;
215
- if ("object" !== j && "string" !== j) {
216
- r = o;
217
- o = null;
173
+ } else if (i >= 2 && R(t.protocol)) {
174
+ a = s[4];
175
+ }
176
+ return {
177
+ protocol: o,
178
+ slashes: r || R(o),
179
+ slashesCount: i,
180
+ rest: a
181
+ };
182
+ }
183
+
184
+ function I(e, t) {
185
+ if (e === "") return t;
186
+ var s = (t || "/").split("/").slice(0, -1).concat(e.split("/")), o = s.length, r = s[o - 1], n = false, i = 0;
187
+ while (o--) {
188
+ if (s[o] === ".") {
189
+ s.splice(o, 1);
190
+ } else if (s[o] === "..") {
191
+ s.splice(o, 1);
192
+ i++;
193
+ } else if (i) {
194
+ if (o === 0) n = true;
195
+ s.splice(o, 1);
196
+ i--;
218
197
  }
219
- if (r && "function" !== typeof r) r = s.parse;
220
- o = g(o);
221
- a = y(e || "", o);
222
- i = !a.protocol && !a.slashes;
223
- O.slashes = a.slashes || i && o.slashes;
224
- O.protocol = a.protocol || o.protocol || "";
225
- e = a.rest;
226
- if (a.protocol === "file:" && (a.slashesCount !== 2 || f.test(e)) || !a.slashes && (a.protocol || a.slashesCount < 2 || !w(O.protocol))) {
227
- m[3] = [ /(.*)/, "pathname" ];
198
+ }
199
+ if (n) s.unshift("");
200
+ if (r === "." || r === "..") s.push("");
201
+ return s.join("/");
202
+ }
203
+
204
+ function q(e, t, s) {
205
+ e = v(e);
206
+ e = e.replace(m, "");
207
+ if (!(this instanceof q)) {
208
+ return new q(e, t, s);
209
+ }
210
+ var o, r, n, i, a, h, l = j.slice(), c = typeof t, u = this, d = 0;
211
+ if ("object" !== c && "string" !== c) {
212
+ s = t;
213
+ t = null;
214
+ }
215
+ if (s && "function" !== typeof s) s = p.parse;
216
+ t = C(t);
217
+ r = U(e || "", t);
218
+ o = !r.protocol && !r.slashes;
219
+ u.slashes = r.slashes || o && t.slashes;
220
+ u.protocol = r.protocol || t.protocol || "";
221
+ e = r.rest;
222
+ if (r.protocol === "file:" && (r.slashesCount !== 2 || b.test(e)) || !r.slashes && (r.protocol || r.slashesCount < 2 || !R(u.protocol))) {
223
+ l[3] = [ /(.*)/, "pathname" ];
224
+ }
225
+ for (;d < l.length; d++) {
226
+ i = l[d];
227
+ if (typeof i === "function") {
228
+ e = i(e, u);
229
+ continue;
228
230
  }
229
- for (;C < m.length; C++) {
230
- l = m[C];
231
- if (typeof l === "function") {
232
- e = l(e, O);
233
- continue;
234
- }
235
- h = l[0];
236
- c = l[1];
237
- if (h !== h) {
238
- O[c] = e;
239
- } else if ("string" === typeof h) {
240
- u = h === "@" ? e.lastIndexOf(h) : e.indexOf(h);
241
- if (~u) {
242
- if ("number" === typeof l[2]) {
243
- O[c] = e.slice(0, u);
244
- e = e.slice(u + l[2]);
245
- } else {
246
- O[c] = e.slice(u);
247
- e = e.slice(0, u);
248
- }
231
+ n = i[0];
232
+ h = i[1];
233
+ if (n !== n) {
234
+ u[h] = e;
235
+ } else if ("string" === typeof n) {
236
+ a = n === "@" ? e.lastIndexOf(n) : e.indexOf(n);
237
+ if (~a) {
238
+ if ("number" === typeof i[2]) {
239
+ u[h] = e.slice(0, a);
240
+ e = e.slice(a + i[2]);
241
+ } else {
242
+ u[h] = e.slice(a);
243
+ e = e.slice(0, a);
249
244
  }
250
- } else if (u = h.exec(e)) {
251
- O[c] = u[1];
252
- e = e.slice(0, u.index);
253
245
  }
254
- O[c] = O[c] || (i && l[3] ? o[c] || "" : "");
255
- if (l[4]) O[c] = O[c].toLowerCase();
246
+ } else if (a = n.exec(e)) {
247
+ u[h] = a[1];
248
+ e = e.slice(0, a.index);
256
249
  }
257
- if (r) O.query = r(O.query);
258
- if (i && o.slashes && O.pathname.charAt(0) !== "/" && (O.pathname !== "" || o.pathname !== "")) {
259
- O.pathname = b(O.pathname, o.pathname);
250
+ u[h] = u[h] || (o && i[3] ? t[h] || "" : "");
251
+ if (i[4]) u[h] = u[h].toLowerCase();
252
+ }
253
+ if (s) u.query = s(u.query);
254
+ if (o && t.slashes && u.pathname.charAt(0) !== "/" && (u.pathname !== "" || t.pathname !== "")) {
255
+ u.pathname = I(u.pathname, t.pathname);
256
+ }
257
+ if (u.pathname.charAt(0) !== "/" && R(u.protocol)) {
258
+ u.pathname = "/" + u.pathname;
259
+ }
260
+ if (!f(u.port, u.protocol)) {
261
+ u.host = u.hostname;
262
+ u.port = "";
263
+ }
264
+ u.username = u.password = "";
265
+ if (u.auth) {
266
+ a = u.auth.indexOf(":");
267
+ if (~a) {
268
+ u.username = u.auth.slice(0, a);
269
+ u.username = encodeURIComponent(decodeURIComponent(u.username));
270
+ u.password = u.auth.slice(a + 1);
271
+ u.password = encodeURIComponent(decodeURIComponent(u.password));
272
+ } else {
273
+ u.username = encodeURIComponent(decodeURIComponent(u.auth));
260
274
  }
261
- if (O.pathname.charAt(0) !== "/" && w(O.protocol)) {
262
- O.pathname = "/" + O.pathname;
275
+ u.auth = u.password ? u.username + ":" + u.password : u.username;
276
+ }
277
+ u.origin = u.protocol !== "file:" && R(u.protocol) && u.host ? u.protocol + "//" + u.host : "null";
278
+ u.href = u.toString();
279
+ }
280
+
281
+ function x(e, t, s) {
282
+ var o = this;
283
+ switch (e) {
284
+ case "query":
285
+ if ("string" === typeof t && t.length) {
286
+ t = (s || p.parse)(t);
263
287
  }
264
- if (!t(O.port, O.protocol)) {
265
- O.host = O.hostname;
266
- O.port = "";
288
+ o[e] = t;
289
+ break;
290
+
291
+ case "port":
292
+ o[e] = t;
293
+ if (!f(t, o.protocol)) {
294
+ o.host = o.hostname;
295
+ o[e] = "";
296
+ } else if (t) {
297
+ o.host = o.hostname + ":" + t;
267
298
  }
268
- O.username = O.password = "";
269
- if (O.auth) {
270
- u = O.auth.indexOf(":");
271
- if (~u) {
272
- O.username = O.auth.slice(0, u);
273
- O.username = encodeURIComponent(decodeURIComponent(O.username));
274
- O.password = O.auth.slice(u + 1);
275
- O.password = encodeURIComponent(decodeURIComponent(O.password));
276
- } else {
277
- O.username = encodeURIComponent(decodeURIComponent(O.auth));
278
- }
279
- O.auth = O.password ? O.username + ":" + O.password : O.username;
299
+ break;
300
+
301
+ case "hostname":
302
+ o[e] = t;
303
+ if (o.port) t += ":" + o.port;
304
+ o.host = t;
305
+ break;
306
+
307
+ case "host":
308
+ o[e] = t;
309
+ if (w.test(t)) {
310
+ t = t.split(":");
311
+ o.port = t.pop();
312
+ o.hostname = t.join(":");
313
+ } else {
314
+ o.hostname = t;
315
+ o.port = "";
280
316
  }
281
- O.origin = O.protocol !== "file:" && w(O.protocol) && O.host ? O.protocol + "//" + O.host : "null";
282
- O.href = O.toString();
283
- }
284
- function j(e, o, r) {
285
- var n = this;
286
- switch (e) {
287
- case "query":
288
- if ("string" === typeof o && o.length) {
289
- o = (r || s.parse)(o);
290
- }
291
- n[e] = o;
292
- break;
293
-
294
- case "port":
295
- n[e] = o;
296
- if (!t(o, n.protocol)) {
297
- n.host = n.hostname;
298
- n[e] = "";
299
- } else if (o) {
300
- n.host = n.hostname + ":" + o;
301
- }
302
- break;
303
-
304
- case "hostname":
305
- n[e] = o;
306
- if (n.port) o += ":" + n.port;
307
- n.host = o;
308
- break;
309
-
310
- case "host":
311
- n[e] = o;
312
- if (u.test(o)) {
313
- o = o.split(":");
314
- n.port = o.pop();
315
- n.hostname = o.join(":");
316
- } else {
317
- n.hostname = o;
318
- n.port = "";
319
- }
320
- break;
321
-
322
- case "protocol":
323
- n.protocol = o.toLowerCase();
324
- n.slashes = !r;
325
- break;
326
-
327
- case "pathname":
328
- case "hash":
329
- if (o) {
330
- var i = e === "pathname" ? "/" : "#";
331
- n[e] = o.charAt(0) !== i ? i + o : o;
332
- } else {
333
- n[e] = o;
334
- }
335
- break;
317
+ break;
336
318
 
337
- case "username":
338
- case "password":
339
- n[e] = encodeURIComponent(o);
340
- break;
319
+ case "protocol":
320
+ o.protocol = t.toLowerCase();
321
+ o.slashes = !s;
322
+ break;
341
323
 
342
- case "auth":
343
- var a = o.indexOf(":");
344
- if (~a) {
345
- n.username = o.slice(0, a);
346
- n.username = encodeURIComponent(decodeURIComponent(n.username));
347
- n.password = o.slice(a + 1);
348
- n.password = encodeURIComponent(decodeURIComponent(n.password));
349
- } else {
350
- n.username = encodeURIComponent(decodeURIComponent(o));
351
- }
324
+ case "pathname":
325
+ case "hash":
326
+ if (t) {
327
+ var r = e === "pathname" ? "/" : "#";
328
+ o[e] = t.charAt(0) !== r ? r + t : t;
329
+ } else {
330
+ o[e] = t;
352
331
  }
353
- for (var h = 0; h < d.length; h++) {
354
- var l = d[h];
355
- if (l[4]) n[l[1]] = n[l[1]].toLowerCase();
332
+ break;
333
+
334
+ case "username":
335
+ case "password":
336
+ o[e] = encodeURIComponent(t);
337
+ break;
338
+
339
+ case "auth":
340
+ var n = t.indexOf(":");
341
+ if (~n) {
342
+ o.username = t.slice(0, n);
343
+ o.username = encodeURIComponent(decodeURIComponent(o.username));
344
+ o.password = t.slice(n + 1);
345
+ o.password = encodeURIComponent(decodeURIComponent(o.password));
346
+ } else {
347
+ o.username = encodeURIComponent(decodeURIComponent(t));
356
348
  }
357
- n.auth = n.password ? n.username + ":" + n.password : n.username;
358
- n.origin = n.protocol !== "file:" && w(n.protocol) && n.host ? n.protocol + "//" + n.host : "null";
359
- n.href = n.toString();
360
- return n;
361
349
  }
362
- function O(e) {
363
- if (!e || "function" !== typeof e) e = s.stringify;
364
- var t, o = this, r = o.host, n = o.protocol;
365
- if (n && n.charAt(n.length - 1) !== ":") n += ":";
366
- var i = n + (o.protocol && o.slashes || w(o.protocol) ? "//" : "");
367
- if (o.username) {
368
- i += o.username;
369
- if (o.password) i += ":" + o.password;
370
- i += "@";
371
- } else if (o.password) {
372
- i += ":" + o.password;
373
- i += "@";
374
- } else if (o.protocol !== "file:" && w(o.protocol) && !r && o.pathname !== "/") {
375
- i += "@";
376
- }
377
- if (r[r.length - 1] === ":" || u.test(o.hostname) && !o.port) {
378
- r += ":";
379
- }
380
- i += r + o.pathname;
381
- t = "object" === typeof o.query ? e(o.query) : o.query;
382
- if (t) i += "?" !== t.charAt(0) ? "?" + t : t;
383
- if (o.hash) i += o.hash;
384
- return i;
350
+ for (var i = 0; i < j.length; i++) {
351
+ var a = j[i];
352
+ if (a[4]) o[a[1]] = o[a[1]].toLowerCase();
385
353
  }
386
- v.prototype = {
387
- set: j,
388
- toString: O
389
- };
390
- v.extractProtocol = y;
391
- v.location = g;
392
- v.trimLeft = p;
393
- v.qs = s;
394
- a = v;
395
- return a;
354
+ o.auth = o.password ? o.username + ":" + o.password : o.username;
355
+ o.origin = o.protocol !== "file:" && R(o.protocol) && o.host ? o.protocol + "//" + o.host : "null";
356
+ o.href = o.toString();
357
+ return o;
358
+ }
359
+
360
+ function S(e) {
361
+ if (!e || "function" !== typeof e) e = p.stringify;
362
+ var t, s = this, o = s.host, r = s.protocol;
363
+ if (r && r.charAt(r.length - 1) !== ":") r += ":";
364
+ var n = r + (s.protocol && s.slashes || R(s.protocol) ? "//" : "");
365
+ if (s.username) {
366
+ n += s.username;
367
+ if (s.password) n += ":" + s.password;
368
+ n += "@";
369
+ } else if (s.password) {
370
+ n += ":" + s.password;
371
+ n += "@";
372
+ } else if (s.protocol !== "file:" && R(s.protocol) && !o && s.pathname !== "/") {
373
+ n += "@";
374
+ }
375
+ if (o[o.length - 1] === ":" || w.test(s.hostname) && !s.port) {
376
+ o += ":";
377
+ }
378
+ n += o + s.pathname;
379
+ t = "object" === typeof s.query ? e(s.query) : s.query;
380
+ if (t) n += "?" !== t.charAt(0) ? "?" + t : t;
381
+ if (s.hash) n += s.hash;
382
+ return n;
396
383
  }
397
384
 
398
- var u = l();
385
+ q.prototype = {
386
+ set: x,
387
+ toString: S
388
+ };
389
+
390
+ q.extractProtocol = U;
391
+
392
+ q.location = C;
393
+
394
+ q.trimLeft = v;
395
+
396
+ q.qs = p;
397
+
398
+ var L = q;
399
399
 
400
- const c = e.getDefaultExportFromCjs(u);
400
+ const k = e.getDefaultExportFromCjs(L);
401
401
 
402
402
  class URLBuilder {
403
403
  static parse(e) {
404
- return new URLBuilder(JSON.parse(JSON.stringify(c(e, true))));
404
+ return new URLBuilder(JSON.parse(JSON.stringify(k(e, true))));
405
405
  }
406
406
  #e;
407
407
  constructor(e = {}) {
408
- this.#e = c("");
408
+ this.#e = k("");
409
409
  this.auth = e.auth;
410
410
  this.hash = e.hash;
411
411
  this.host = e.host;