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
@@ -1,405 +1,405 @@
1
- import { c as e, g as t } from "../../../vendor/Package.5.mjs";
1
+ import { g as e, c as t } from "../../../vendor/Package.5.mjs";
2
2
 
3
- var s;
3
+ "use strict";
4
4
 
5
- var o;
5
+ var s = function e(t, s) {
6
+ s = s.split(":")[0];
7
+ t = +t;
8
+ if (!t) return false;
9
+ switch (s) {
10
+ case "http":
11
+ case "ws":
12
+ return t !== 80;
6
13
 
7
- function r() {
8
- if (o) return s;
9
- o = 1;
10
- "use strict";
11
- s = 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;
14
+ case "https":
15
+ case "wss":
16
+ return t !== 443;
19
17
 
20
- case "https":
21
- case "wss":
22
- return t !== 443;
18
+ case "ftp":
19
+ return t !== 21;
23
20
 
24
- case "ftp":
25
- return t !== 21;
21
+ case "gopher":
22
+ return t !== 70;
26
23
 
27
- case "gopher":
28
- return t !== 70;
24
+ case "file":
25
+ return false;
26
+ }
27
+ return t !== 0;
28
+ };
29
29
 
30
- case "file":
31
- return false;
32
- }
33
- return t !== 0;
34
- };
35
- return s;
36
- }
30
+ const o = e(s);
37
31
 
38
- var n = {};
32
+ var r = {};
39
33
 
40
- var i;
34
+ "use strict";
41
35
 
42
- function a() {
43
- if (i) return n;
44
- i = 1;
45
- "use strict";
46
- var e = Object.prototype.hasOwnProperty, t;
47
- function s(e) {
48
- try {
49
- return decodeURIComponent(e.replace(/\+/g, " "));
50
- } catch (e) {
51
- return null;
52
- }
36
+ var n = Object.prototype.hasOwnProperty, i;
37
+
38
+ function a(e) {
39
+ try {
40
+ return decodeURIComponent(e.replace(/\+/g, " "));
41
+ } catch (e) {
42
+ return null;
53
43
  }
54
- function o(e) {
55
- try {
56
- return encodeURIComponent(e);
57
- } catch (e) {
58
- return null;
59
- }
44
+ }
45
+
46
+ function h(e) {
47
+ try {
48
+ return encodeURIComponent(e);
49
+ } catch (e) {
50
+ return null;
60
51
  }
61
- function r(e) {
62
- var t = /([^=?#&]+)=?([^&]*)/g, o = {}, r;
63
- while (r = t.exec(e)) {
64
- var n = s(r[1]), i = s(r[2]);
65
- if (n === null || i === null || n in o) continue;
66
- o[n] = i;
67
- }
68
- return o;
52
+ }
53
+
54
+ function l(e) {
55
+ var t = /([^=?#&]+)=?([^&]*)/g, s = {}, o;
56
+ while (o = t.exec(e)) {
57
+ var r = a(o[1]), n = a(o[2]);
58
+ if (r === null || n === null || r in s) continue;
59
+ s[r] = n;
69
60
  }
70
- function a(s, r) {
71
- r = r || "";
72
- var n = [], i, a;
73
- if ("string" !== typeof r) r = "?";
74
- for (a in s) {
75
- if (e.call(s, a)) {
76
- i = s[a];
77
- if (!i && (i === null || i === t || isNaN(i))) {
78
- i = "";
79
- }
80
- a = o(a);
81
- i = o(i);
82
- if (a === null || i === null) continue;
83
- n.push(a + "=" + i);
61
+ return s;
62
+ }
63
+
64
+ function c(e, t) {
65
+ t = t || "";
66
+ var s = [], o, r;
67
+ if ("string" !== typeof t) t = "?";
68
+ for (r in e) {
69
+ if (n.call(e, r)) {
70
+ o = e[r];
71
+ if (!o && (o === null || o === i || isNaN(o))) {
72
+ o = "";
84
73
  }
74
+ r = h(r);
75
+ o = h(o);
76
+ if (r === null || o === null) continue;
77
+ s.push(r + "=" + o);
85
78
  }
86
- return n.length ? r + n.join("&") : "";
87
79
  }
88
- n.stringify = a;
89
- n.parse = r;
90
- return n;
80
+ return s.length ? t + s.join("&") : "";
91
81
  }
92
82
 
93
- var h;
83
+ var f = r.stringify = c;
94
84
 
95
- var l;
85
+ var u = r.parse = l;
96
86
 
97
- function f() {
98
- if (l) return h;
99
- l = 1;
100
- "use strict";
101
- var t = r(), s = a(), o = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/, n = /[\n\r\t]/g, i = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, f = /:\d+$/, u = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, c = /^[a-zA-Z]:/;
102
- function p(e) {
103
- return (e ? e : "").toString().replace(o, "");
104
- }
105
- var d = [ [ "#", "hash" ], [ "?", "query" ], function e(t, s) {
106
- return g(s.protocol) ? t.replace(/\\/g, "/") : t;
107
- }, [ "/", "pathname" ], [ "@", "auth", 1 ], [ NaN, "host", undefined, 1, 1 ], [ /:(\d*)$/, "port", undefined, 1 ], [ NaN, "hostname", undefined, 1, 1 ] ];
108
- var m = {
109
- hash: 1,
110
- query: 1
111
- };
112
- function w(t) {
113
- var s;
114
- if (typeof window !== "undefined") s = window; else if (typeof e !== "undefined") s = e; else if (typeof self !== "undefined") s = self; else s = {};
115
- var o = s.location || {};
116
- t = t || o;
117
- var r = {}, n = typeof t, a;
118
- if ("blob:" === t.protocol) {
119
- r = new b(unescape(t.pathname), {});
120
- } else if ("string" === n) {
121
- r = new b(t, {});
122
- for (a in m) delete r[a];
123
- } else if ("object" === n) {
124
- for (a in t) {
125
- if (a in m) continue;
126
- r[a] = t[a];
127
- }
128
- if (r.slashes === undefined) {
129
- r.slashes = i.test(t.href);
130
- }
87
+ "use strict";
88
+
89
+ var p = s, d = r, m = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/, w = /[\n\r\t]/g, g = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, y = /:\d+$/, v = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, b = /^[a-zA-Z]:/;
90
+
91
+ function j(e) {
92
+ return (e ? e : "").toString().replace(m, "");
93
+ }
94
+
95
+ var O = [ [ "#", "hash" ], [ "?", "query" ], function e(t, s) {
96
+ return U(s.protocol) ? t.replace(/\\/g, "/") : t;
97
+ }, [ "/", "pathname" ], [ "@", "auth", 1 ], [ NaN, "host", undefined, 1, 1 ], [ /:(\d*)$/, "port", undefined, 1 ], [ NaN, "hostname", undefined, 1, 1 ] ];
98
+
99
+ var C = {
100
+ hash: 1,
101
+ query: 1
102
+ };
103
+
104
+ function R(e) {
105
+ var s;
106
+ if (typeof window !== "undefined") s = window; else if (typeof t !== "undefined") s = t; else if (typeof self !== "undefined") s = self; else s = {};
107
+ var o = s.location || {};
108
+ e = e || o;
109
+ var r = {}, n = typeof e, i;
110
+ if ("blob:" === e.protocol) {
111
+ r = new x(unescape(e.pathname), {});
112
+ } else if ("string" === n) {
113
+ r = new x(e, {});
114
+ for (i in C) delete r[i];
115
+ } else if ("object" === n) {
116
+ for (i in e) {
117
+ if (i in C) continue;
118
+ r[i] = e[i];
119
+ }
120
+ if (r.slashes === undefined) {
121
+ r.slashes = g.test(e.href);
131
122
  }
132
- return r;
133
- }
134
- function g(e) {
135
- return e === "file:" || e === "ftp:" || e === "http:" || e === "https:" || e === "ws:" || e === "wss:";
136
123
  }
137
- function y(e, t) {
138
- e = p(e);
139
- e = e.replace(n, "");
140
- t = t || {};
141
- var s = u.exec(e);
142
- var o = s[1] ? s[1].toLowerCase() : "";
143
- var r = !!s[2];
144
- var i = !!s[3];
145
- var a = 0;
146
- var h;
147
- if (r) {
148
- if (i) {
149
- h = s[2] + s[3] + s[4];
150
- a = s[2].length + s[3].length;
151
- } else {
152
- h = s[2] + s[4];
153
- a = s[2].length;
154
- }
124
+ return r;
125
+ }
126
+
127
+ function U(e) {
128
+ return e === "file:" || e === "ftp:" || e === "http:" || e === "https:" || e === "ws:" || e === "wss:";
129
+ }
130
+
131
+ function I(e, t) {
132
+ e = j(e);
133
+ e = e.replace(w, "");
134
+ t = t || {};
135
+ var s = v.exec(e);
136
+ var o = s[1] ? s[1].toLowerCase() : "";
137
+ var r = !!s[2];
138
+ var n = !!s[3];
139
+ var i = 0;
140
+ var a;
141
+ if (r) {
142
+ if (n) {
143
+ a = s[2] + s[3] + s[4];
144
+ i = s[2].length + s[3].length;
155
145
  } else {
156
- if (i) {
157
- h = s[3] + s[4];
158
- a = s[3].length;
159
- } else {
160
- h = s[4];
161
- }
146
+ a = s[2] + s[4];
147
+ i = s[2].length;
162
148
  }
163
- if (o === "file:") {
164
- if (a >= 2) {
165
- h = h.slice(2);
166
- }
167
- } else if (g(o)) {
168
- h = s[4];
169
- } else if (o) {
170
- if (r) {
171
- h = h.slice(2);
172
- }
173
- } else if (a >= 2 && g(t.protocol)) {
174
- h = s[4];
149
+ } else {
150
+ if (n) {
151
+ a = s[3] + s[4];
152
+ i = s[3].length;
153
+ } else {
154
+ a = s[4];
175
155
  }
176
- return {
177
- protocol: o,
178
- slashes: r || g(o),
179
- slashesCount: a,
180
- rest: h
181
- };
182
156
  }
183
- function v(e, t) {
184
- if (e === "") return t;
185
- var s = (t || "/").split("/").slice(0, -1).concat(e.split("/")), o = s.length, r = s[o - 1], n = false, i = 0;
186
- while (o--) {
187
- if (s[o] === ".") {
188
- s.splice(o, 1);
189
- } else if (s[o] === "..") {
190
- s.splice(o, 1);
191
- i++;
192
- } else if (i) {
193
- if (o === 0) n = true;
194
- s.splice(o, 1);
195
- i--;
196
- }
157
+ if (o === "file:") {
158
+ if (i >= 2) {
159
+ a = a.slice(2);
197
160
  }
198
- if (n) s.unshift("");
199
- if (r === "." || r === "..") s.push("");
200
- return s.join("/");
201
- }
202
- function b(e, o, r) {
203
- e = p(e);
204
- e = e.replace(n, "");
205
- if (!(this instanceof b)) {
206
- return new b(e, o, r);
161
+ } else if (U(o)) {
162
+ a = s[4];
163
+ } else if (o) {
164
+ if (r) {
165
+ a = a.slice(2);
207
166
  }
208
- var i, a, h, l, f, u, m = d.slice(), j = typeof o, O = this, C = 0;
209
- if ("object" !== j && "string" !== j) {
210
- r = o;
211
- o = null;
167
+ } else if (i >= 2 && U(t.protocol)) {
168
+ a = s[4];
169
+ }
170
+ return {
171
+ protocol: o,
172
+ slashes: r || U(o),
173
+ slashesCount: i,
174
+ rest: a
175
+ };
176
+ }
177
+
178
+ function q(e, t) {
179
+ if (e === "") return t;
180
+ var s = (t || "/").split("/").slice(0, -1).concat(e.split("/")), o = s.length, r = s[o - 1], n = false, i = 0;
181
+ while (o--) {
182
+ if (s[o] === ".") {
183
+ s.splice(o, 1);
184
+ } else if (s[o] === "..") {
185
+ s.splice(o, 1);
186
+ i++;
187
+ } else if (i) {
188
+ if (o === 0) n = true;
189
+ s.splice(o, 1);
190
+ i--;
212
191
  }
213
- if (r && "function" !== typeof r) r = s.parse;
214
- o = w(o);
215
- a = y(e || "", o);
216
- i = !a.protocol && !a.slashes;
217
- O.slashes = a.slashes || i && o.slashes;
218
- O.protocol = a.protocol || o.protocol || "";
219
- e = a.rest;
220
- if (a.protocol === "file:" && (a.slashesCount !== 2 || c.test(e)) || !a.slashes && (a.protocol || a.slashesCount < 2 || !g(O.protocol))) {
221
- m[3] = [ /(.*)/, "pathname" ];
192
+ }
193
+ if (n) s.unshift("");
194
+ if (r === "." || r === "..") s.push("");
195
+ return s.join("/");
196
+ }
197
+
198
+ function x(e, t, s) {
199
+ e = j(e);
200
+ e = e.replace(w, "");
201
+ if (!(this instanceof x)) {
202
+ return new x(e, t, s);
203
+ }
204
+ var o, r, n, i, a, h, l = O.slice(), c = typeof t, f = this, u = 0;
205
+ if ("object" !== c && "string" !== c) {
206
+ s = t;
207
+ t = null;
208
+ }
209
+ if (s && "function" !== typeof s) s = d.parse;
210
+ t = R(t);
211
+ r = I(e || "", t);
212
+ o = !r.protocol && !r.slashes;
213
+ f.slashes = r.slashes || o && t.slashes;
214
+ f.protocol = r.protocol || t.protocol || "";
215
+ e = r.rest;
216
+ if (r.protocol === "file:" && (r.slashesCount !== 2 || b.test(e)) || !r.slashes && (r.protocol || r.slashesCount < 2 || !U(f.protocol))) {
217
+ l[3] = [ /(.*)/, "pathname" ];
218
+ }
219
+ for (;u < l.length; u++) {
220
+ i = l[u];
221
+ if (typeof i === "function") {
222
+ e = i(e, f);
223
+ continue;
222
224
  }
223
- for (;C < m.length; C++) {
224
- l = m[C];
225
- if (typeof l === "function") {
226
- e = l(e, O);
227
- continue;
228
- }
229
- h = l[0];
230
- u = l[1];
231
- if (h !== h) {
232
- O[u] = e;
233
- } else if ("string" === typeof h) {
234
- f = h === "@" ? e.lastIndexOf(h) : e.indexOf(h);
235
- if (~f) {
236
- if ("number" === typeof l[2]) {
237
- O[u] = e.slice(0, f);
238
- e = e.slice(f + l[2]);
239
- } else {
240
- O[u] = e.slice(f);
241
- e = e.slice(0, f);
242
- }
225
+ n = i[0];
226
+ h = i[1];
227
+ if (n !== n) {
228
+ f[h] = e;
229
+ } else if ("string" === typeof n) {
230
+ a = n === "@" ? e.lastIndexOf(n) : e.indexOf(n);
231
+ if (~a) {
232
+ if ("number" === typeof i[2]) {
233
+ f[h] = e.slice(0, a);
234
+ e = e.slice(a + i[2]);
235
+ } else {
236
+ f[h] = e.slice(a);
237
+ e = e.slice(0, a);
243
238
  }
244
- } else if (f = h.exec(e)) {
245
- O[u] = f[1];
246
- e = e.slice(0, f.index);
247
239
  }
248
- O[u] = O[u] || (i && l[3] ? o[u] || "" : "");
249
- if (l[4]) O[u] = O[u].toLowerCase();
240
+ } else if (a = n.exec(e)) {
241
+ f[h] = a[1];
242
+ e = e.slice(0, a.index);
250
243
  }
251
- if (r) O.query = r(O.query);
252
- if (i && o.slashes && O.pathname.charAt(0) !== "/" && (O.pathname !== "" || o.pathname !== "")) {
253
- O.pathname = v(O.pathname, o.pathname);
244
+ f[h] = f[h] || (o && i[3] ? t[h] || "" : "");
245
+ if (i[4]) f[h] = f[h].toLowerCase();
246
+ }
247
+ if (s) f.query = s(f.query);
248
+ if (o && t.slashes && f.pathname.charAt(0) !== "/" && (f.pathname !== "" || t.pathname !== "")) {
249
+ f.pathname = q(f.pathname, t.pathname);
250
+ }
251
+ if (f.pathname.charAt(0) !== "/" && U(f.protocol)) {
252
+ f.pathname = "/" + f.pathname;
253
+ }
254
+ if (!p(f.port, f.protocol)) {
255
+ f.host = f.hostname;
256
+ f.port = "";
257
+ }
258
+ f.username = f.password = "";
259
+ if (f.auth) {
260
+ a = f.auth.indexOf(":");
261
+ if (~a) {
262
+ f.username = f.auth.slice(0, a);
263
+ f.username = encodeURIComponent(decodeURIComponent(f.username));
264
+ f.password = f.auth.slice(a + 1);
265
+ f.password = encodeURIComponent(decodeURIComponent(f.password));
266
+ } else {
267
+ f.username = encodeURIComponent(decodeURIComponent(f.auth));
254
268
  }
255
- if (O.pathname.charAt(0) !== "/" && g(O.protocol)) {
256
- O.pathname = "/" + O.pathname;
269
+ f.auth = f.password ? f.username + ":" + f.password : f.username;
270
+ }
271
+ f.origin = f.protocol !== "file:" && U(f.protocol) && f.host ? f.protocol + "//" + f.host : "null";
272
+ f.href = f.toString();
273
+ }
274
+
275
+ function S(e, t, s) {
276
+ var o = this;
277
+ switch (e) {
278
+ case "query":
279
+ if ("string" === typeof t && t.length) {
280
+ t = (s || d.parse)(t);
257
281
  }
258
- if (!t(O.port, O.protocol)) {
259
- O.host = O.hostname;
260
- O.port = "";
282
+ o[e] = t;
283
+ break;
284
+
285
+ case "port":
286
+ o[e] = t;
287
+ if (!p(t, o.protocol)) {
288
+ o.host = o.hostname;
289
+ o[e] = "";
290
+ } else if (t) {
291
+ o.host = o.hostname + ":" + t;
261
292
  }
262
- O.username = O.password = "";
263
- if (O.auth) {
264
- f = O.auth.indexOf(":");
265
- if (~f) {
266
- O.username = O.auth.slice(0, f);
267
- O.username = encodeURIComponent(decodeURIComponent(O.username));
268
- O.password = O.auth.slice(f + 1);
269
- O.password = encodeURIComponent(decodeURIComponent(O.password));
270
- } else {
271
- O.username = encodeURIComponent(decodeURIComponent(O.auth));
272
- }
273
- O.auth = O.password ? O.username + ":" + O.password : O.username;
293
+ break;
294
+
295
+ case "hostname":
296
+ o[e] = t;
297
+ if (o.port) t += ":" + o.port;
298
+ o.host = t;
299
+ break;
300
+
301
+ case "host":
302
+ o[e] = t;
303
+ if (y.test(t)) {
304
+ t = t.split(":");
305
+ o.port = t.pop();
306
+ o.hostname = t.join(":");
307
+ } else {
308
+ o.hostname = t;
309
+ o.port = "";
274
310
  }
275
- O.origin = O.protocol !== "file:" && g(O.protocol) && O.host ? O.protocol + "//" + O.host : "null";
276
- O.href = O.toString();
277
- }
278
- function j(e, o, r) {
279
- var n = this;
280
- switch (e) {
281
- case "query":
282
- if ("string" === typeof o && o.length) {
283
- o = (r || s.parse)(o);
284
- }
285
- n[e] = o;
286
- break;
287
-
288
- case "port":
289
- n[e] = o;
290
- if (!t(o, n.protocol)) {
291
- n.host = n.hostname;
292
- n[e] = "";
293
- } else if (o) {
294
- n.host = n.hostname + ":" + o;
295
- }
296
- break;
297
-
298
- case "hostname":
299
- n[e] = o;
300
- if (n.port) o += ":" + n.port;
301
- n.host = o;
302
- break;
303
-
304
- case "host":
305
- n[e] = o;
306
- if (f.test(o)) {
307
- o = o.split(":");
308
- n.port = o.pop();
309
- n.hostname = o.join(":");
310
- } else {
311
- n.hostname = o;
312
- n.port = "";
313
- }
314
- break;
315
-
316
- case "protocol":
317
- n.protocol = o.toLowerCase();
318
- n.slashes = !r;
319
- break;
320
-
321
- case "pathname":
322
- case "hash":
323
- if (o) {
324
- var i = e === "pathname" ? "/" : "#";
325
- n[e] = o.charAt(0) !== i ? i + o : o;
326
- } else {
327
- n[e] = o;
328
- }
329
- break;
311
+ break;
330
312
 
331
- case "username":
332
- case "password":
333
- n[e] = encodeURIComponent(o);
334
- break;
313
+ case "protocol":
314
+ o.protocol = t.toLowerCase();
315
+ o.slashes = !s;
316
+ break;
335
317
 
336
- case "auth":
337
- var a = o.indexOf(":");
338
- if (~a) {
339
- n.username = o.slice(0, a);
340
- n.username = encodeURIComponent(decodeURIComponent(n.username));
341
- n.password = o.slice(a + 1);
342
- n.password = encodeURIComponent(decodeURIComponent(n.password));
343
- } else {
344
- n.username = encodeURIComponent(decodeURIComponent(o));
345
- }
318
+ case "pathname":
319
+ case "hash":
320
+ if (t) {
321
+ var r = e === "pathname" ? "/" : "#";
322
+ o[e] = t.charAt(0) !== r ? r + t : t;
323
+ } else {
324
+ o[e] = t;
346
325
  }
347
- for (var h = 0; h < d.length; h++) {
348
- var l = d[h];
349
- if (l[4]) n[l[1]] = n[l[1]].toLowerCase();
326
+ break;
327
+
328
+ case "username":
329
+ case "password":
330
+ o[e] = encodeURIComponent(t);
331
+ break;
332
+
333
+ case "auth":
334
+ var n = t.indexOf(":");
335
+ if (~n) {
336
+ o.username = t.slice(0, n);
337
+ o.username = encodeURIComponent(decodeURIComponent(o.username));
338
+ o.password = t.slice(n + 1);
339
+ o.password = encodeURIComponent(decodeURIComponent(o.password));
340
+ } else {
341
+ o.username = encodeURIComponent(decodeURIComponent(t));
350
342
  }
351
- n.auth = n.password ? n.username + ":" + n.password : n.username;
352
- n.origin = n.protocol !== "file:" && g(n.protocol) && n.host ? n.protocol + "//" + n.host : "null";
353
- n.href = n.toString();
354
- return n;
355
343
  }
356
- function O(e) {
357
- if (!e || "function" !== typeof e) e = s.stringify;
358
- var t, o = this, r = o.host, n = o.protocol;
359
- if (n && n.charAt(n.length - 1) !== ":") n += ":";
360
- var i = n + (o.protocol && o.slashes || g(o.protocol) ? "//" : "");
361
- if (o.username) {
362
- i += o.username;
363
- if (o.password) i += ":" + o.password;
364
- i += "@";
365
- } else if (o.password) {
366
- i += ":" + o.password;
367
- i += "@";
368
- } else if (o.protocol !== "file:" && g(o.protocol) && !r && o.pathname !== "/") {
369
- i += "@";
370
- }
371
- if (r[r.length - 1] === ":" || f.test(o.hostname) && !o.port) {
372
- r += ":";
373
- }
374
- i += r + o.pathname;
375
- t = "object" === typeof o.query ? e(o.query) : o.query;
376
- if (t) i += "?" !== t.charAt(0) ? "?" + t : t;
377
- if (o.hash) i += o.hash;
378
- return i;
344
+ for (var i = 0; i < O.length; i++) {
345
+ var a = O[i];
346
+ if (a[4]) o[a[1]] = o[a[1]].toLowerCase();
379
347
  }
380
- b.prototype = {
381
- set: j,
382
- toString: O
383
- };
384
- b.extractProtocol = y;
385
- b.location = w;
386
- b.trimLeft = p;
387
- b.qs = s;
388
- h = b;
389
- return h;
348
+ o.auth = o.password ? o.username + ":" + o.password : o.username;
349
+ o.origin = o.protocol !== "file:" && U(o.protocol) && o.host ? o.protocol + "//" + o.host : "null";
350
+ o.href = o.toString();
351
+ return o;
352
+ }
353
+
354
+ function k(e) {
355
+ if (!e || "function" !== typeof e) e = d.stringify;
356
+ var t, s = this, o = s.host, r = s.protocol;
357
+ if (r && r.charAt(r.length - 1) !== ":") r += ":";
358
+ var n = r + (s.protocol && s.slashes || U(s.protocol) ? "//" : "");
359
+ if (s.username) {
360
+ n += s.username;
361
+ if (s.password) n += ":" + s.password;
362
+ n += "@";
363
+ } else if (s.password) {
364
+ n += ":" + s.password;
365
+ n += "@";
366
+ } else if (s.protocol !== "file:" && U(s.protocol) && !o && s.pathname !== "/") {
367
+ n += "@";
368
+ }
369
+ if (o[o.length - 1] === ":" || y.test(s.hostname) && !s.port) {
370
+ o += ":";
371
+ }
372
+ n += o + s.pathname;
373
+ t = "object" === typeof s.query ? e(s.query) : s.query;
374
+ if (t) n += "?" !== t.charAt(0) ? "?" + t : t;
375
+ if (s.hash) n += s.hash;
376
+ return n;
390
377
  }
391
378
 
392
- var u = f();
379
+ x.prototype = {
380
+ set: S,
381
+ toString: k
382
+ };
383
+
384
+ x.extractProtocol = I;
385
+
386
+ x.location = R;
387
+
388
+ x.trimLeft = j;
389
+
390
+ x.qs = d;
391
+
392
+ var A = x;
393
393
 
394
- const c = t(u);
394
+ const L = e(A);
395
395
 
396
396
  class URLBuilder {
397
397
  static parse(e) {
398
- return new URLBuilder(JSON.parse(JSON.stringify(c(e, true))));
398
+ return new URLBuilder(JSON.parse(JSON.stringify(L(e, true))));
399
399
  }
400
400
  #e;
401
401
  constructor(e = {}) {
402
- this.#e = c("");
402
+ this.#e = L("");
403
403
  this.auth = e.auth;
404
404
  this.hash = e.hash;
405
405
  this.host = e.host;