@gameap/frontend 4.1.0-dev14 → 4.1.0-dev15
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.
- package/dist/{AdminClientCertificatesView-Bg8X_Ouc.js → AdminClientCertificatesView-Cdat-6ub.js} +56 -66
- package/dist/{AdminDaemonTaskListView-DbJp0aqQ.js → AdminDaemonTaskListView-C0Jy1oat.js} +28 -29
- package/dist/{AdminDaemonTaskOutputView-DNCHQfxx.js → AdminDaemonTaskOutputView-BdstVc5K.js} +23 -25
- package/dist/{AdminGamesEdit-jco7cBfk.js → AdminGamesEdit-BOxBjeqI.js} +28 -31
- package/dist/{AdminGamesList-CMjsgEpx.js → AdminGamesList-C6nSWKdx.js} +136 -143
- package/dist/{AdminModEdit-BlRu_09M.js → AdminModEdit-diCpKnO2.js} +8 -8
- package/dist/{AdminNodeShowView-BHxJkjYJ.js → AdminNodeShowView-BIUiXpmk.js} +51 -61
- package/dist/{AdminNodesCreateView-DihmM46W.js → AdminNodesCreateView-Brzzh4HN.js} +13 -12
- package/dist/{AdminNodesEditView-CVACSido.js → AdminNodesEditView-Dwr2kt82.js} +16 -15
- package/dist/{AdminNodesView-CHtiU6dZ.js → AdminNodesView-DyiGZ1lZ.js} +25 -25
- package/dist/{AdminPluginsView-CRjF3BPs.js → AdminPluginsView-CUe4i8kM.js} +96 -105
- package/dist/{AdminServersCreate-5f8x6eZO.js → AdminServersCreate-iNMqnGK9.js} +26 -25
- package/dist/{AdminServersEdit-CA7711nJ.js → AdminServersEdit-DVI74EZc.js} +24 -23
- package/dist/{AdminServersList-De5ZMEGZ.js → AdminServersList-CkjyJfPK.js} +28 -28
- package/dist/{AdminUsersEditView-DeYo98vi.js → AdminUsersEditView-BTscuJ86.js} +2 -2
- package/dist/{AdminUsersView-C8fKEhpr.js → AdminUsersView-D-fJfjLH.js} +95 -105
- package/dist/{CreateModForm-CqkvVLfN.js → CreateModForm-CDqlkWYW.js} +3 -3
- package/dist/{CreateNodeModal-DOXVtVLQ.js → CreateNodeModal-CcpGS94Z.js} +1 -1
- package/dist/{DsIpSelector-C676Y19X.js → DsIpSelector-B_sWnbEP.js} +1 -1
- package/dist/{EmptyView-Bf6zmQQt.js → EmptyView-CopbPCy6.js} +1 -1
- package/dist/{FileManager-DSa9v4Ex.js → FileManager-JXa457rg.js} +691 -690
- package/dist/GCard-BmZwrZ1e.js +50 -0
- package/dist/GDataTable-DC0a2vJJ.js +60 -0
- package/dist/GDivider-tYaNzeM5.js +16 -0
- package/dist/GEmpty-Bkw6u0WR.js +35 -0
- package/dist/GModal-C4shXjCa.js +53 -0
- package/dist/GSwitch-1wlrRoUA.js +42 -0
- package/dist/GTable-DRH5VONX.js +38 -0
- package/dist/{GameModSelector-CQBT8ZLu.js → GameModSelector-BzBYr5Bl.js} +2 -2
- package/dist/{InputManyList-DUOtepb8.js → InputManyList-B65AFbLu.js} +21 -20
- package/dist/{InputTextList-lPhVIV04.js → InputTextList-DUpEA_--.js} +1 -1
- package/dist/PluginPendingView-CaK51oA9.js +35 -0
- package/dist/{ProfileView-Dw2T3X8m.js → ProfileView-BTXGnm4R.js} +74 -83
- package/dist/{RconConsole-CvxNBv0B.js → RconConsole-BSienrhk.js} +2 -2
- package/dist/{RconPlayers-odUKa0Ps.js → RconPlayers-jIqnphJ1.js} +111 -118
- package/dist/{ServerConsole-B9v2PcWb.js → ServerConsole-BdF95Ef6.js} +1 -1
- package/dist/{ServerControlButton-D_zJbxr6.js → ServerControlButton-7Un9i8tt.js} +6 -6
- package/dist/{ServerIdView-_vGQRk7y.js → ServerIdView-1X_6i-s6.js} +69 -67
- package/dist/{ServerSelector-6fCqL3e9.js → ServerSelector-Y4fSKiM2.js} +1 -1
- package/dist/{ServerSettings-C6-tkLTH.js → ServerSettings-DsIlowVa.js} +23 -21
- package/dist/{ServerStatus-CcqB0h1r.js → ServerStatus-BblAtet5.js} +1 -1
- package/dist/{ServerTasks-BcaZzvz7.js → ServerTasks-2jQBkpL9.js} +1 -1
- package/dist/{ServersView-S_G_kuGj.js → ServersView-CmDavKT_.js} +76 -76
- package/dist/{SettingsParameters-u3Awy4Vf.js → SettingsParameters-jT8ffL4p.js} +4 -3
- package/dist/{SmartPortSelector-BRSQFVqT.js → SmartPortSelector-BuREMnLx.js} +1 -1
- package/dist/{TokensView-C1RFJSB5.js → TokensView-Cw5j1Ivk.js} +60 -64
- package/dist/{UpdateNodeForm-BAhzQLt-.js → UpdateNodeForm-BnIqe7rC.js} +11 -10
- package/dist/{UserServerPrivileges-Q2wQMyHi.js → UserServerPrivileges-CvGlXrzS.js} +82 -92
- package/dist/{_createCompounder-CXjx5-CF.js → _createCompounder-vPBqoT5p.js} +3 -3
- package/dist/{camelCase-CSrB2MWj.js → camelCase-BSEkxKhA.js} +2 -2
- package/dist/{capitalize-BZSBvd6d.js → capitalize-BVfQSCbg.js} +5 -5
- package/dist/{clientCertificates-C0FlDwsb.js → clientCertificates-DHDjG6a2.js} +1 -1
- package/dist/frontend.css +1 -1
- package/dist/{gameList-kucszmx0.js → gameList-BuPam-HN.js} +1 -1
- package/dist/{index-9fvX7FD-.js → index-CiR3a1Cv.js} +180 -179
- package/dist/index.js +1 -1
- package/dist/{isEmpty-D0Z8Rneq.js → isEmpty-CLFmjU_j.js} +11 -11
- package/dist/{loader-qtG-Lf6M.js → loader-DStCgv0r.js} +1 -1
- package/dist/mockServiceWorker.js +1 -1
- package/dist/{snakeCase-nnM4dAra.js → snakeCase-lCSKsq6x.js} +1 -1
- package/dist/{validators-ChBGsKft.js → validators-r6Rit4O6.js} +2 -2
- package/package.json +2 -2
- package/dist/PluginPendingView-DaDaN30Q.js +0 -34
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { mergeModels as Y, onMounted as Z, useModel as ee, ref as d, computed as
|
|
2
|
-
import { f as
|
|
1
|
+
import { mergeModels as Y, onMounted as Z, useModel as ee, ref as d, computed as le, createElementBlock as _, openBlock as p, Fragment as y, createElementVNode as e, createVNode as r, unref as n, withCtx as u, toDisplayString as a, renderList as M, createTextVNode as C, h as $ } from "vue";
|
|
2
|
+
import { f as se, g as te, t as o, _ as g, a as h, e as I, n as U, b as ne } from "./index-CiR3a1Cv.js";
|
|
3
3
|
import { storeToRefs as ae } from "pinia";
|
|
4
|
-
import {
|
|
4
|
+
import { NSelect as re } from "naive-ui";
|
|
5
|
+
import { _ as N } from "./GModal-C4shXjCa.js";
|
|
6
|
+
import { _ as V } from "./GTable-DRH5VONX.js";
|
|
7
|
+
import { _ as oe } from "./GSwitch-1wlrRoUA.js";
|
|
5
8
|
import { _ as z } from "./GameIcon-DaYNlnur.js";
|
|
6
|
-
const ie = { class: "mb-4" }, ue = ["href"], de = { class: "flex flex-wrap gap-1" }, ce = { class: "mt-6 mb-3" }, ve = { class: "flex justify-center mt-2" }, me = { class: "md:w-full" }, fe = { class: "flex justify-center mt-2" },
|
|
9
|
+
const ie = { class: "mb-4" }, ue = ["href"], de = { class: "flex flex-wrap gap-1" }, ce = { class: "mt-6 mb-3" }, ve = { class: "flex justify-center mt-2" }, me = { class: "md:w-full" }, fe = { class: "flex justify-center mt-2" }, _e = { class: "grid grid-cols-2 gap-x-20 mb-4" }, pe = { class: "grid grid-cols-4 gap-x-4 mb-6" }, ge = { class: "col-span-3" }, he = { class: "hidden lg:inline" }, Ie = {
|
|
7
10
|
__name: "UserServerPrivileges",
|
|
8
11
|
props: /* @__PURE__ */ Y({
|
|
9
12
|
userId: Number
|
|
@@ -13,66 +16,66 @@ const ie = { class: "mb-4" }, ue = ["href"], de = { class: "flex flex-wrap gap-1
|
|
|
13
16
|
}),
|
|
14
17
|
emits: ["update:modelValue"],
|
|
15
18
|
setup(j) {
|
|
16
|
-
const F = window.gameapLang || "en", b =
|
|
19
|
+
const F = window.gameapLang || "en", b = se(), B = te(), { getServerPermissions: R } = ae(b);
|
|
17
20
|
Z(() => {
|
|
18
|
-
|
|
21
|
+
L("");
|
|
19
22
|
});
|
|
20
23
|
const S = ee(j, "modelValue", []), c = d(null), m = d([]), f = d([]), w = d(!1);
|
|
21
|
-
function
|
|
24
|
+
function T(s) {
|
|
22
25
|
for (let t of S.value)
|
|
23
|
-
if (t.id ===
|
|
26
|
+
if (t.id === s)
|
|
24
27
|
return !0;
|
|
25
28
|
}
|
|
26
|
-
function W(
|
|
29
|
+
function W(s) {
|
|
27
30
|
for (let t of m.value)
|
|
28
|
-
if (t.id ===
|
|
31
|
+
if (t.id === s)
|
|
29
32
|
return t;
|
|
30
33
|
}
|
|
31
|
-
function q(
|
|
34
|
+
function q(s) {
|
|
32
35
|
m.value = m.value.filter(function(t) {
|
|
33
|
-
return t.id !==
|
|
36
|
+
return t.id !== s;
|
|
34
37
|
}), f.value = f.value.filter(function(t) {
|
|
35
|
-
return t.value !==
|
|
38
|
+
return t.value !== s;
|
|
36
39
|
});
|
|
37
40
|
}
|
|
38
|
-
function A(
|
|
39
|
-
S.value.splice(
|
|
41
|
+
function A(s) {
|
|
42
|
+
S.value.splice(s, 1);
|
|
40
43
|
}
|
|
41
44
|
function D() {
|
|
42
45
|
if (!c.value) {
|
|
43
|
-
|
|
46
|
+
U(o("servers.select_server"));
|
|
44
47
|
return;
|
|
45
48
|
}
|
|
46
|
-
if (x.value = !1,
|
|
47
|
-
|
|
49
|
+
if (x.value = !1, T(c.value)) {
|
|
50
|
+
U(o("servers.server_already_added"));
|
|
48
51
|
return;
|
|
49
52
|
}
|
|
50
|
-
const
|
|
51
|
-
|
|
53
|
+
const s = W(c.value);
|
|
54
|
+
s && (S.value.push(s), q(s.id), c.value = null);
|
|
52
55
|
}
|
|
53
|
-
let
|
|
54
|
-
function K(
|
|
55
|
-
clearTimeout(
|
|
56
|
-
|
|
56
|
+
let E;
|
|
57
|
+
function K(s) {
|
|
58
|
+
clearTimeout(E), E = setTimeout(() => {
|
|
59
|
+
s();
|
|
57
60
|
}, 500);
|
|
58
61
|
}
|
|
59
|
-
function
|
|
62
|
+
function L(s) {
|
|
60
63
|
w.value = !0, K(() => {
|
|
61
|
-
ne.get(`/api/servers/search?q=${encodeURI(
|
|
64
|
+
ne.get(`/api/servers/search?q=${encodeURI(s)}`).then(function(t) {
|
|
62
65
|
m.value = [], f.value = [];
|
|
63
|
-
for (let
|
|
64
|
-
|
|
65
|
-
id:
|
|
66
|
-
name:
|
|
67
|
-
game:
|
|
68
|
-
server_ip:
|
|
69
|
-
server_port:
|
|
66
|
+
for (let l of t.data)
|
|
67
|
+
T(l.id) || (m.value.push({
|
|
68
|
+
id: l.id,
|
|
69
|
+
name: l.name,
|
|
70
|
+
game: l.game,
|
|
71
|
+
server_ip: l.server_ip,
|
|
72
|
+
server_port: l.server_port
|
|
70
73
|
}), f.value.push({
|
|
71
|
-
name:
|
|
72
|
-
label:
|
|
73
|
-
address: `${
|
|
74
|
-
game:
|
|
75
|
-
value:
|
|
74
|
+
name: l.name,
|
|
75
|
+
label: l.name + " (" + l.game.name + ") - " + l.server_ip + ":" + l.server_port,
|
|
76
|
+
address: `${l.server_ip}:${l.server_port}`,
|
|
77
|
+
game: l.game,
|
|
78
|
+
value: l.id
|
|
76
79
|
}));
|
|
77
80
|
w.value = !1;
|
|
78
81
|
}).catch(function(t) {
|
|
@@ -80,52 +83,49 @@ const ie = { class: "mb-4" }, ue = ["href"], de = { class: "flex flex-wrap gap-1
|
|
|
80
83
|
});
|
|
81
84
|
});
|
|
82
85
|
}
|
|
83
|
-
const O = (
|
|
84
|
-
if (
|
|
85
|
-
const t =
|
|
86
|
+
const O = (s) => {
|
|
87
|
+
if (s.startsWith("plugins.")) {
|
|
88
|
+
const t = s.split("."), l = t[1], v = t.slice(2).join("."), k = l ? B.getPluginTranslations(l) : null;
|
|
86
89
|
return (k?.[F] || k?.en || {})[v] ?? o(v);
|
|
87
90
|
}
|
|
88
|
-
return o(
|
|
89
|
-
}, G = (
|
|
91
|
+
return o(s);
|
|
92
|
+
}, G = (s) => $(
|
|
90
93
|
"div",
|
|
91
94
|
{ class: "flex" },
|
|
92
95
|
[
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
$("div", { class: "w-64" }, s.name),
|
|
97
|
+
$("div", { class: "w-56" }, s.game.name),
|
|
98
|
+
$("div", { class: "w-40" }, s.address)
|
|
96
99
|
]
|
|
97
100
|
), x = d(!1), H = () => {
|
|
98
101
|
x.value = !0;
|
|
99
|
-
}, P = d(!1), J = (
|
|
100
|
-
b.fetchPermissionsForServer(
|
|
101
|
-
i.value =
|
|
102
|
+
}, P = d(!1), J = (s) => {
|
|
103
|
+
b.fetchPermissionsForServer(s.id).then(() => {
|
|
104
|
+
i.value = s, P.value = !0;
|
|
102
105
|
}).catch((t) => {
|
|
103
106
|
I(t);
|
|
104
107
|
});
|
|
105
|
-
}, i = d({}), Q =
|
|
108
|
+
}, i = d({}), Q = le({
|
|
106
109
|
get: () => i.value.id ? R.value(i.value.id) : [],
|
|
107
|
-
set: (
|
|
108
|
-
b.setServerPermissions(i.value.id,
|
|
110
|
+
set: (s) => {
|
|
111
|
+
b.setServerPermissions(i.value.id, s);
|
|
109
112
|
}
|
|
110
113
|
}), X = () => {
|
|
111
114
|
b.savePermissionsForServer(i.value.id).then(() => {
|
|
112
|
-
|
|
115
|
+
U({
|
|
113
116
|
content: o("users.privileges_saved_success_msg"),
|
|
114
117
|
type: "success"
|
|
115
118
|
}, () => {
|
|
116
119
|
P.value = !1;
|
|
117
120
|
});
|
|
118
|
-
}).catch((
|
|
119
|
-
I(
|
|
121
|
+
}).catch((s) => {
|
|
122
|
+
I(s);
|
|
120
123
|
});
|
|
121
124
|
};
|
|
122
|
-
return (
|
|
125
|
+
return (s, t) => (p(), _(y, null, [
|
|
123
126
|
e("div", null, [
|
|
124
127
|
e("div", ie, [
|
|
125
|
-
r(n(
|
|
126
|
-
bordered: !1,
|
|
127
|
-
"single-line": !0
|
|
128
|
-
}, {
|
|
128
|
+
r(n(V), null, {
|
|
129
129
|
default: u(() => [
|
|
130
130
|
e("thead", null, [
|
|
131
131
|
e("tr", null, [
|
|
@@ -136,24 +136,24 @@ const ie = { class: "mb-4" }, ue = ["href"], de = { class: "flex flex-wrap gap-1
|
|
|
136
136
|
])
|
|
137
137
|
]),
|
|
138
138
|
e("tbody", null, [
|
|
139
|
-
(
|
|
139
|
+
(p(!0), _(y, null, M(S.value, (l, v) => (p(), _("tr", null, [
|
|
140
140
|
e("td", null, [
|
|
141
141
|
e("a", {
|
|
142
|
-
href: "/admin/servers/" +
|
|
143
|
-
}, a(
|
|
142
|
+
href: "/admin/servers/" + l.id + "/edit"
|
|
143
|
+
}, a(l.name), 9, ue)
|
|
144
144
|
]),
|
|
145
145
|
e("td", null, [
|
|
146
146
|
r(z, {
|
|
147
|
-
game:
|
|
147
|
+
game: l.game.code
|
|
148
148
|
}, null, 8, ["game"]),
|
|
149
|
-
C(" " + a(
|
|
149
|
+
C(" " + a(l.game.name), 1)
|
|
150
150
|
]),
|
|
151
|
-
e("td", null, a(
|
|
151
|
+
e("td", null, a(l.server_ip) + ":" + a(l.server_port), 1),
|
|
152
152
|
e("td", de, [
|
|
153
153
|
r(g, {
|
|
154
154
|
color: "blue",
|
|
155
155
|
size: "small",
|
|
156
|
-
onClick: (k) => J(
|
|
156
|
+
onClick: (k) => J(l)
|
|
157
157
|
}, {
|
|
158
158
|
default: u(() => [
|
|
159
159
|
r(n(h), { name: "lock" })
|
|
@@ -193,21 +193,17 @@ const ie = { class: "mb-4" }, ue = ["href"], de = { class: "flex flex-wrap gap-1
|
|
|
193
193
|
])
|
|
194
194
|
])
|
|
195
195
|
]),
|
|
196
|
-
r(n(
|
|
196
|
+
r(n(N), {
|
|
197
197
|
show: x.value,
|
|
198
|
-
"onUpdate:show": t[1] || (t[1] = (
|
|
199
|
-
class: "custom-card",
|
|
200
|
-
preset: "card",
|
|
198
|
+
"onUpdate:show": t[1] || (t[1] = (l) => x.value = l),
|
|
201
199
|
title: n(o)("servers.add_server"),
|
|
202
|
-
|
|
203
|
-
style: { width: "800px" },
|
|
204
|
-
segmented: { content: "soft", footer: "soft" }
|
|
200
|
+
style: { width: "800px" }
|
|
205
201
|
}, {
|
|
206
202
|
default: u(() => [
|
|
207
203
|
e("div", me, [
|
|
208
204
|
r(n(re), {
|
|
209
205
|
value: c.value,
|
|
210
|
-
"onUpdate:value": t[0] || (t[0] = (
|
|
206
|
+
"onUpdate:value": t[0] || (t[0] = (l) => c.value = l),
|
|
211
207
|
filterable: "",
|
|
212
208
|
placeholder: n(o)("users.servers_privileges_placeholder"),
|
|
213
209
|
options: f.value,
|
|
@@ -215,7 +211,7 @@ const ie = { class: "mb-4" }, ue = ["href"], de = { class: "flex flex-wrap gap-1
|
|
|
215
211
|
loading: w.value,
|
|
216
212
|
clearable: "",
|
|
217
213
|
remote: "",
|
|
218
|
-
onSearch:
|
|
214
|
+
onSearch: L
|
|
219
215
|
}, {
|
|
220
216
|
action: u(() => [...t[3] || (t[3] = [
|
|
221
217
|
e("div", null, [
|
|
@@ -242,20 +238,14 @@ const ie = { class: "mb-4" }, ue = ["href"], de = { class: "flex flex-wrap gap-1
|
|
|
242
238
|
]),
|
|
243
239
|
_: 1
|
|
244
240
|
}, 8, ["show", "title"]),
|
|
245
|
-
r(n(
|
|
241
|
+
r(n(N), {
|
|
246
242
|
show: P.value,
|
|
247
|
-
"onUpdate:show": t[2] || (t[2] = (
|
|
248
|
-
class: "custom-card",
|
|
249
|
-
preset: "card",
|
|
243
|
+
"onUpdate:show": t[2] || (t[2] = (l) => P.value = l),
|
|
250
244
|
title: n(o)("users.server_permission_edit"),
|
|
251
|
-
|
|
252
|
-
style: { width: "800px" },
|
|
253
|
-
segmented: { content: "soft", footer: "soft" }
|
|
245
|
+
style: { width: "800px" }
|
|
254
246
|
}, {
|
|
255
247
|
default: u(() => [
|
|
256
|
-
r(n(
|
|
257
|
-
bordered: !1,
|
|
258
|
-
"single-line": !0,
|
|
248
|
+
r(n(V), {
|
|
259
249
|
size: "small",
|
|
260
250
|
class: "mb-8"
|
|
261
251
|
}, {
|
|
@@ -289,12 +279,12 @@ const ie = { class: "mb-4" }, ue = ["href"], de = { class: "flex flex-wrap gap-1
|
|
|
289
279
|
]),
|
|
290
280
|
_: 1
|
|
291
281
|
}),
|
|
292
|
-
e("div",
|
|
293
|
-
(
|
|
294
|
-
e("div", ge, a(O(
|
|
282
|
+
e("div", _e, [
|
|
283
|
+
(p(!0), _(y, null, M(Q.value, (l) => (p(), _("div", pe, [
|
|
284
|
+
e("div", ge, a(O(l.name)), 1),
|
|
295
285
|
r(n(oe), {
|
|
296
|
-
value:
|
|
297
|
-
"onUpdate:value": (v) =>
|
|
286
|
+
value: l.value,
|
|
287
|
+
"onUpdate:value": (v) => l.value = v
|
|
298
288
|
}, null, 8, ["value", "onUpdate:value"])
|
|
299
289
|
]))), 256))
|
|
300
290
|
]),
|
|
@@ -315,5 +305,5 @@ const ie = { class: "mb-4" }, ue = ["href"], de = { class: "flex flex-wrap gap-1
|
|
|
315
305
|
}
|
|
316
306
|
};
|
|
317
307
|
export {
|
|
318
|
-
|
|
308
|
+
Ie as default
|
|
319
309
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as s } from "./index-CiR3a1Cv.js";
|
|
2
2
|
function E(u, e, x, t0) {
|
|
3
3
|
for (var f = -1, v = u == null ? 0 : u.length; ++f < v; )
|
|
4
4
|
x = e(x, u[f], f, u);
|
|
@@ -202,7 +202,7 @@ var h = {
|
|
|
202
202
|
œ: "oe",
|
|
203
203
|
ʼn: "'n",
|
|
204
204
|
ſ: "s"
|
|
205
|
-
}, M = L(h), S = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, z = "\\u0300-\\u036f", Z = "\\ufe20-\\ufe2f",
|
|
205
|
+
}, M = L(h), S = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, z = "\\u0300-\\u036f", Z = "\\ufe20-\\ufe2f", D = "\\u20d0-\\u20ff", I = z + Z + D, k = "[" + I + "]", w = RegExp(k, "g");
|
|
206
206
|
function N(u) {
|
|
207
207
|
return u = s(u), u && u.replace(S, M).replace(w, "");
|
|
208
208
|
}
|
|
@@ -214,7 +214,7 @@ var j = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
|
214
214
|
function T(u) {
|
|
215
215
|
return j.test(u);
|
|
216
216
|
}
|
|
217
|
-
var c = "\\ud800-\\udfff", H = "\\u0300-\\u036f", y = "\\ufe20-\\ufe2f", G = "\\u20d0-\\u20ff", J = H + y + G, i = "\\u2700-\\u27bf", t = "a-z\\xdf-\\xf6\\xf8-\\xff", P = "\\xac\\xb1\\xd7\\xf7", V = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Y = "\\u2000-\\u206f", B = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", b = "A-Z\\xc0-\\xd6\\xd8-\\xde", _ = "\\ufe0e\\ufe0f", g = P + V + Y + B, R = "['’]", a = "[" + g + "]", q = "[" + J + "]", p = "\\d+", F = "[" + i + "]", A = "[" + t + "]", l = "[^" + c + g + p + i + t + b + "]", K = "\\ud83c[\\udffb-\\udfff]", Q = "(?:" + q + "|" + K + ")", X = "[^" + c + "]",
|
|
217
|
+
var c = "\\ud800-\\udfff", H = "\\u0300-\\u036f", y = "\\ufe20-\\ufe2f", G = "\\u20d0-\\u20ff", J = H + y + G, i = "\\u2700-\\u27bf", t = "a-z\\xdf-\\xf6\\xf8-\\xff", P = "\\xac\\xb1\\xd7\\xf7", V = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Y = "\\u2000-\\u206f", B = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", b = "A-Z\\xc0-\\xd6\\xd8-\\xde", _ = "\\ufe0e\\ufe0f", g = P + V + Y + B, R = "['’]", a = "[" + g + "]", q = "[" + J + "]", p = "\\d+", F = "[" + i + "]", A = "[" + t + "]", l = "[^" + c + g + p + i + t + b + "]", K = "\\ud83c[\\udffb-\\udfff]", Q = "(?:" + q + "|" + K + ")", X = "[^" + c + "]", m = "(?:\\ud83c[\\udde6-\\uddff]){2}", C = "[\\ud800-\\udbff][\\udc00-\\udfff]", r = "[" + b + "]", u0 = "\\u200d", d = "(?:" + A + "|" + l + ")", e0 = "(?:" + r + "|" + l + ")", o = "(?:" + R + "(?:d|ll|m|re|s|t|ve))?", n = "(?:" + R + "(?:D|LL|M|RE|S|T|VE))?", O = Q + "?", U = "[" + _ + "]?", r0 = "(?:" + u0 + "(?:" + [X, m, C].join("|") + ")" + U + O + ")*", x0 = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", f0 = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", a0 = U + O + r0, d0 = "(?:" + [F, m, C].join("|") + ")" + a0, o0 = RegExp([
|
|
218
218
|
r + "?" + A + "+" + o + "(?=" + [a, r, "$"].join("|") + ")",
|
|
219
219
|
e0 + "+" + n + "(?=" + [a, r + d, "$"].join("|") + ")",
|
|
220
220
|
r + "?" + d + "+" + o,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as t } from "./capitalize-
|
|
2
|
-
import { c } from "./_createCompounder-
|
|
1
|
+
import { c as t } from "./capitalize-BVfQSCbg.js";
|
|
2
|
+
import { c } from "./_createCompounder-vPBqoT5p.js";
|
|
3
3
|
var i = c(function(e, a, r) {
|
|
4
4
|
return a = a.toLowerCase(), e + (r ? t(a) : a);
|
|
5
5
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as i } from "./index-CiR3a1Cv.js";
|
|
2
2
|
function R(r, e, u) {
|
|
3
3
|
var o = -1, f = r.length;
|
|
4
4
|
e < 0 && (e = -e > f ? 0 : f + e), u = u > f ? f : u, u < 0 && (u += f), f = e > u ? 0 : u - e >>> 0, e >>>= 0;
|
|
@@ -31,10 +31,10 @@ function q(r) {
|
|
|
31
31
|
return o[r]() + f;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
var
|
|
35
|
-
function
|
|
36
|
-
return
|
|
34
|
+
var D = q("toUpperCase");
|
|
35
|
+
function N(r) {
|
|
36
|
+
return D(i(r).toLowerCase());
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
N as c
|
|
40
40
|
};
|