@zinaid/str 0.0.4 → 0.0.6
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/ascii/index.d.ts +9 -0
- package/dist/ascii/index.d.ts.map +1 -0
- package/dist/ascii/index.js +7 -0
- package/dist/{base64.d.ts → base64/index.d.ts} +1 -1
- package/dist/base64/index.d.ts.map +1 -0
- package/dist/{convertcase.d.ts → convertcase/index.d.ts} +1 -1
- package/dist/convertcase/index.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +135 -131
- package/dist/{markdown.d.ts → markdown/index.d.ts} +3 -3
- package/dist/markdown/index.d.ts.map +1 -0
- package/dist/markdown/index.js +32 -0
- package/dist/{pluralizer.d.ts → pluralizer/index.d.ts} +3 -2
- package/dist/pluralizer/index.d.ts.map +1 -0
- package/dist/{pluralizer.js → pluralizer/index.js} +13 -15
- package/dist/{random.d.ts → random/index.d.ts} +3 -3
- package/dist/random/index.d.ts.map +1 -0
- package/dist/{random.js → random/index.js} +2 -1
- package/dist/{replacer.d.ts → replacer/index.d.ts} +1 -1
- package/dist/replacer/index.d.ts.map +1 -0
- package/dist/str.d.ts +8 -113
- package/dist/str.d.ts.map +1 -1
- package/dist/str.js +521 -656
- package/dist/{stringable.d.ts → stringable/index.d.ts} +2 -2
- package/dist/stringable/index.d.ts.map +1 -0
- package/dist/transliterate/index.d.ts +9 -0
- package/dist/transliterate/index.d.ts.map +1 -0
- package/dist/transliterate/index.js +7 -0
- package/dist/{trimmer.d.ts → trimmer/index.d.ts} +1 -1
- package/dist/trimmer/index.d.ts.map +1 -0
- package/dist/ulid/index.d.ts +41 -0
- package/dist/ulid/index.d.ts.map +1 -0
- package/dist/ulid/index.js +50 -0
- package/dist/uuid/index.d.ts +58 -0
- package/dist/uuid/index.d.ts.map +1 -0
- package/dist/uuid/index.js +50 -0
- package/package.json +42 -19
- package/dist/base64.d.ts.map +0 -1
- package/dist/convertcase.d.ts.map +0 -1
- package/dist/markdown.d.ts.map +0 -1
- package/dist/markdown.js +0 -55
- package/dist/pluralizer.d.ts.map +0 -1
- package/dist/random.d.ts.map +0 -1
- package/dist/replacer.d.ts.map +0 -1
- package/dist/stringable.d.ts.map +0 -1
- package/dist/trimmer.d.ts.map +0 -1
- /package/dist/{base64.js → base64/index.js} +0 -0
- /package/dist/{convertcase.js → convertcase/index.js} +0 -0
- /package/dist/{replacer.js → replacer/index.js} +0 -0
- /package/dist/{stringable.js → stringable/index.js} +0 -0
- /package/dist/{trimmer.js → trimmer/index.js} +0 -0
package/dist/str.js
CHANGED
|
@@ -1,180 +1,142 @@
|
|
|
1
|
-
import { substr as x, ltrim as
|
|
2
|
-
import { isArray as S, toLower as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
).default;
|
|
8
|
-
}
|
|
9
|
-
function it() {
|
|
10
|
-
return M(
|
|
11
|
-
"transliteration",
|
|
12
|
-
'The "transliteration" package is required for transliteration. Please install it: npm install transliteration'
|
|
13
|
-
).transliterate;
|
|
14
|
-
}
|
|
15
|
-
function ot() {
|
|
16
|
-
return M(
|
|
17
|
-
"ulid",
|
|
18
|
-
'The "ulid" package is required for ULID generation. Please install it: npm install ulid'
|
|
19
|
-
).ulid;
|
|
20
|
-
}
|
|
21
|
-
function P() {
|
|
22
|
-
const t = M(
|
|
23
|
-
"uuid",
|
|
24
|
-
'The "uuid" package is required for UUID functions. Please install it: npm install uuid'
|
|
25
|
-
);
|
|
26
|
-
return {
|
|
27
|
-
v4: t.v4,
|
|
28
|
-
v7: t.v7,
|
|
29
|
-
validate: t.validate,
|
|
30
|
-
version: t.version,
|
|
31
|
-
NIL: t.NIL,
|
|
32
|
-
MAX: t.MAX
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
const E = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
36
|
-
let $ = null, L = null, R = null;
|
|
37
|
-
function J(t, n) {
|
|
38
|
-
if (n === "")
|
|
1
|
+
import { substr as x, ltrim as q, rtrim as G, plural as J, randomInt as O, randomString as B, title as j, ascii as H, trim as V, upper as D } from "@zinaid/str";
|
|
2
|
+
import { isArray as S, toLower as M, isString as _, isFunction as Q } from "@zinaid/utils";
|
|
3
|
+
const R = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map();
|
|
4
|
+
let b = null;
|
|
5
|
+
function K(t, e) {
|
|
6
|
+
if (e === "")
|
|
39
7
|
return t;
|
|
40
|
-
const
|
|
41
|
-
return r === -1 ? t : t.slice(r +
|
|
8
|
+
const n = String(e), r = t.indexOf(n);
|
|
9
|
+
return r === -1 ? t : t.slice(r + n.length);
|
|
42
10
|
}
|
|
43
|
-
function
|
|
44
|
-
if (
|
|
11
|
+
function pt(t, e) {
|
|
12
|
+
if (e === "")
|
|
45
13
|
return t;
|
|
46
|
-
const
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
function ct(t) {
|
|
50
|
-
return it()(t);
|
|
14
|
+
const n = t.lastIndexOf(String(e));
|
|
15
|
+
return n === -1 ? t : t.slice(n + String(e).length);
|
|
51
16
|
}
|
|
52
|
-
function
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
function lt(t, n) {
|
|
56
|
-
if (n === "")
|
|
17
|
+
function X(t, e) {
|
|
18
|
+
if (e === "")
|
|
57
19
|
return t;
|
|
58
|
-
const
|
|
59
|
-
return
|
|
20
|
+
const n = t.indexOf(String(e));
|
|
21
|
+
return n === -1 ? t : t.slice(0, n);
|
|
60
22
|
}
|
|
61
|
-
function
|
|
62
|
-
if (
|
|
23
|
+
function Y(t, e) {
|
|
24
|
+
if (e === "")
|
|
63
25
|
return t;
|
|
64
|
-
const
|
|
65
|
-
return
|
|
26
|
+
const n = t.lastIndexOf(String(e));
|
|
27
|
+
return n === -1 ? t : x(t, 0, n);
|
|
66
28
|
}
|
|
67
|
-
function
|
|
68
|
-
return
|
|
29
|
+
function gt(t, e, n) {
|
|
30
|
+
return e === "" || n === "" ? t : Y(K(t, e), n);
|
|
69
31
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
32
|
+
function mt(t, e, n) {
|
|
33
|
+
return e === "" || n === "" ? t : X(K(t, e), n);
|
|
72
34
|
}
|
|
73
|
-
function
|
|
74
|
-
if (
|
|
75
|
-
return
|
|
76
|
-
const
|
|
77
|
-
return
|
|
78
|
-
}
|
|
79
|
-
function
|
|
80
|
-
const
|
|
81
|
-
return (
|
|
82
|
-
}
|
|
83
|
-
function
|
|
84
|
-
for (const
|
|
85
|
-
if (t.startsWith(
|
|
86
|
-
const r = [...t], s = [...
|
|
35
|
+
function ht(t) {
|
|
36
|
+
if (E.has(t))
|
|
37
|
+
return E.get(t);
|
|
38
|
+
const e = it(Z(t));
|
|
39
|
+
return E.set(t, e), e;
|
|
40
|
+
}
|
|
41
|
+
function dt(t, e) {
|
|
42
|
+
const n = t.length;
|
|
43
|
+
return (e < 0 ? e < -n : e > n - 1) ? !1 : (e < 0 && (e += n), t.charAt(e));
|
|
44
|
+
}
|
|
45
|
+
function yt(t, e) {
|
|
46
|
+
for (const n of S(e) ? e : [e])
|
|
47
|
+
if (n !== "" && t.startsWith(n)) {
|
|
48
|
+
const r = [...t], s = [...n];
|
|
87
49
|
return r.slice(s.length).join("");
|
|
88
50
|
}
|
|
89
51
|
return t;
|
|
90
52
|
}
|
|
91
|
-
function
|
|
92
|
-
for (const
|
|
93
|
-
if (t.endsWith(
|
|
94
|
-
const r = [...t], s = [...
|
|
53
|
+
function wt(t, e) {
|
|
54
|
+
for (const n of S(e) ? e : [e])
|
|
55
|
+
if (n !== "" && t.endsWith(n)) {
|
|
56
|
+
const r = [...t], s = [...n];
|
|
95
57
|
return r.slice(0, -s.length).join("");
|
|
96
58
|
}
|
|
97
59
|
return t;
|
|
98
60
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
61
|
+
function T(t, e, n = !1) {
|
|
62
|
+
n && (t = t.toLowerCase());
|
|
101
63
|
let r;
|
|
102
|
-
typeof
|
|
64
|
+
typeof e == "string" ? r = [e] : r = Array.from(e);
|
|
103
65
|
for (let s of r)
|
|
104
|
-
if (
|
|
66
|
+
if (n && (s = s.toLowerCase()), s !== "" && t.includes(s))
|
|
105
67
|
return !0;
|
|
106
68
|
return !1;
|
|
107
69
|
}
|
|
108
|
-
function
|
|
109
|
-
const r =
|
|
110
|
-
if (!
|
|
70
|
+
function xt(t, e = "", n = {}) {
|
|
71
|
+
const r = n.radius ?? 100, s = n.omission ?? "...", o = String(t ?? ""), c = e ?? "", i = (w) => w.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), f = new RegExp(`^(.*?)(${i(c)})(.*)$`, "iu").exec(o);
|
|
72
|
+
if (!f)
|
|
111
73
|
return null;
|
|
112
|
-
const m =
|
|
113
|
-
let p =
|
|
74
|
+
const m = q(f[1] ?? ""), u = Array.from(m).length, a = x(m, Math.max(u - r, 0), r);
|
|
75
|
+
let p = q(a);
|
|
114
76
|
p !== m && (p = s + p);
|
|
115
|
-
const g =
|
|
116
|
-
let
|
|
117
|
-
|
|
118
|
-
const y =
|
|
119
|
-
return p + y +
|
|
120
|
-
}
|
|
121
|
-
function
|
|
122
|
-
for (const r of
|
|
123
|
-
if (!
|
|
77
|
+
const g = G(f[3] ?? ""), h = x(g, 0, r);
|
|
78
|
+
let d = G(h);
|
|
79
|
+
d !== g && (d = d + s);
|
|
80
|
+
const y = f[2] ?? "";
|
|
81
|
+
return p + y + d;
|
|
82
|
+
}
|
|
83
|
+
function St(t, e, n = !1) {
|
|
84
|
+
for (const r of e)
|
|
85
|
+
if (!T(t, r, n))
|
|
124
86
|
return !1;
|
|
125
87
|
return !0;
|
|
126
88
|
}
|
|
127
|
-
function
|
|
128
|
-
return !
|
|
89
|
+
function $t(t, e, n = !1) {
|
|
90
|
+
return !T(t, e, n);
|
|
129
91
|
}
|
|
130
|
-
function
|
|
131
|
-
return S(
|
|
132
|
-
t = t.replace(new RegExp(`${
|
|
133
|
-
}), t) : t.replace(new RegExp(`${
|
|
92
|
+
function At(t, e = " ") {
|
|
93
|
+
return S(e) ? (e.forEach((n) => {
|
|
94
|
+
t = t.replace(new RegExp(`${n}+`, "g"), n);
|
|
95
|
+
}), t) : t.replace(new RegExp(`${e}+`, "g"), e);
|
|
134
96
|
}
|
|
135
|
-
function W(t,
|
|
97
|
+
function W(t, e) {
|
|
136
98
|
if (t === null)
|
|
137
99
|
return !1;
|
|
138
|
-
t = String(t), S(
|
|
139
|
-
for (const
|
|
140
|
-
if (
|
|
100
|
+
t = String(t), S(e) ? e = Array.from(e) : e = [String(e)];
|
|
101
|
+
for (const n of e)
|
|
102
|
+
if (n !== "" && t.endsWith(n))
|
|
141
103
|
return !0;
|
|
142
104
|
return !1;
|
|
143
105
|
}
|
|
144
|
-
function
|
|
145
|
-
return !W(t,
|
|
106
|
+
function kt(t, e) {
|
|
107
|
+
return !W(t, e);
|
|
146
108
|
}
|
|
147
|
-
function
|
|
148
|
-
const
|
|
149
|
-
return t.replace(new RegExp(`(?:${
|
|
109
|
+
function bt(t, e) {
|
|
110
|
+
const n = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
111
|
+
return t.replace(new RegExp(`(?:${n})+$`, "u"), "") + e;
|
|
150
112
|
}
|
|
151
|
-
function
|
|
152
|
-
return
|
|
113
|
+
function Lt(t, e, n = null) {
|
|
114
|
+
return e + t + (n ?? e);
|
|
153
115
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
116
|
+
function Rt(t, e, n = null) {
|
|
117
|
+
return I(t, e) && (t = x(t, F(e))), W(t, n ??= e) && (t = x(t, 0, -F(n))), t;
|
|
156
118
|
}
|
|
157
|
-
function
|
|
158
|
-
|
|
119
|
+
function Et(t, e, n = !1) {
|
|
120
|
+
e = String(e);
|
|
159
121
|
let r;
|
|
160
122
|
typeof t == "string" ? r = [t] : r = Array.from(t);
|
|
161
123
|
for (let s of r) {
|
|
162
|
-
if (s = String(s), s ===
|
|
124
|
+
if (s = String(s), s === e || n && M(s) === M(e))
|
|
163
125
|
return !0;
|
|
164
126
|
s = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), s = s.replace(/\\\*/g, ".*");
|
|
165
|
-
const
|
|
166
|
-
if (new RegExp(`^${s}$`,
|
|
127
|
+
const o = n ? "iu" : "u";
|
|
128
|
+
if (new RegExp(`^${s}$`, o).test(e))
|
|
167
129
|
return !0;
|
|
168
130
|
}
|
|
169
131
|
return !1;
|
|
170
132
|
}
|
|
171
|
-
function
|
|
172
|
-
for (let
|
|
173
|
-
if (t.charCodeAt(
|
|
133
|
+
function Ct(t) {
|
|
134
|
+
for (let e = 0; e < t.length; e++)
|
|
135
|
+
if (t.charCodeAt(e) > 127) return !1;
|
|
174
136
|
return !0;
|
|
175
137
|
}
|
|
176
|
-
function
|
|
177
|
-
if (!
|
|
138
|
+
function Ft(t) {
|
|
139
|
+
if (!_(t))
|
|
178
140
|
return !1;
|
|
179
141
|
try {
|
|
180
142
|
JSON.parse(t);
|
|
@@ -183,10 +145,10 @@ function jt(t) {
|
|
|
183
145
|
}
|
|
184
146
|
return !0;
|
|
185
147
|
}
|
|
186
|
-
function
|
|
187
|
-
if (!
|
|
148
|
+
function zt(t, e = []) {
|
|
149
|
+
if (!_(t))
|
|
188
150
|
return !1;
|
|
189
|
-
const r = (
|
|
151
|
+
const r = (e.length === 0 ? "aaa|aaas|about|acap|acct|acd|acr|adiumxtra|adt|afp|afs|aim|amss|android|appdata|apt|ark|attachment|aw|barion|beshare|bitcoin|bitcoincash|blob|bolo|browserext|calculator|callto|cap|cast|casts|chrome|chrome-extension|cid|coap|coap+tcp|coap+ws|coaps|coaps+tcp|coaps+ws|com-eventbrite-attendee|content|conti|crid|cvs|dab|data|dav|diaspora|dict|did|dis|dlna-playcontainer|dlna-playsingle|dns|dntp|dpp|drm|drop|dtn|dvb|ed2k|elsi|example|facetime|fax|feed|feedready|file|filesystem|finger|first-run-pen-experience|fish|fm|ftp|fuchsia-pkg|geo|gg|git|gizmoproject|go|gopher|graph|gtalk|h323|ham|hcap|hcp|http|https|hxxp|hxxps|hydrazone|iax|icap|icon|im|imap|info|iotdisco|ipn|ipp|ipps|irc|irc6|ircs|iris|iris.beep|iris.lwz|iris.xpc|iris.xpcs|isostore|itms|jabber|jar|jms|keyparc|lastfm|ldap|ldaps|leaptofrogans|lorawan|lvlt|magnet|mailserver|mailto|maps|market|message|mid|mms|modem|mongodb|moz|ms-access|ms-browser-extension|ms-calculator|ms-drive-to|ms-enrollment|ms-excel|ms-eyecontrolspeech|ms-gamebarservices|ms-gamingoverlay|ms-getoffice|ms-help|ms-infopath|ms-inputapp|ms-lockscreencomponent-config|ms-media-stream-id|ms-mixedrealitycapture|ms-mobileplans|ms-officeapp|ms-people|ms-project|ms-powerpoint|ms-publisher|ms-restoretabcompanion|ms-screenclip|ms-screensketch|ms-search|ms-search-repair|ms-secondary-screen-controller|ms-secondary-screen-setup|ms-settings|ms-settings-airplanemode|ms-settings-bluetooth|ms-settings-camera|ms-settings-cellular|ms-settings-cloudstorage|ms-settings-connectabledevices|ms-settings-displays-topology|ms-settings-emailandaccounts|ms-settings-language|ms-settings-location|ms-settings-lock|ms-settings-nfctransactions|ms-settings-notifications|ms-settings-power|ms-settings-privacy|ms-settings-proximity|ms-settings-screenrotation|ms-settings-wifi|ms-settings-workplace|ms-spd|ms-sttoverlay|ms-transit-to|ms-useractivityset|ms-virtualtouchpad|ms-visio|ms-walk-to|ms-whiteboard|ms-whiteboard-cmd|ms-word|msnim|msrp|msrps|mss|mtqp|mumble|mupdate|mvn|news|nfs|ni|nih|nntp|notes|ocf|oid|onenote|onenote-cmd|opaquelocktoken|openpgp4fpr|pack|palm|paparazzi|payto|pkcs11|platform|pop|pres|prospero|proxy|pwid|psyc|pttp|qb|query|redis|rediss|reload|res|resource|rmi|rsync|rtmfp|rtmp|rtsp|rtsps|rtspu|s3|secondlife|service|session|sftp|sgn|shttp|sieve|simpleledger|sip|sips|skype|smb|sms|smtp|snews|snmp|soap.beep|soap.beeps|soldat|spiffe|spotify|ssh|steam|stun|stuns|submit|svn|tag|teamspeak|tel|teliaeid|telnet|tftp|tg|things|thismessage|tip|tn3270|tool|ts3server|turn|turns|tv|udp|unreal|urn|ut2004|v-event|vemmi|ventrilo|videotex|vnc|view-source|wais|webcal|wpid|ws|wss|wtai|wyciwyg|xcon|xcon-userid|xfire|xmlrpc.beep|xmlrpc.beeps|xmpp|xri|ymsgr|z39.50|z39.50r|z39.50s" : e.join("|")).split("|").map((o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|");
|
|
190
152
|
try {
|
|
191
153
|
const c = new URL(t).protocol.replace(":", "");
|
|
192
154
|
if (r.split("|").includes(c))
|
|
@@ -217,195 +179,187 @@ function Kt(t, n = []) {
|
|
|
217
179
|
return !1;
|
|
218
180
|
}
|
|
219
181
|
}
|
|
220
|
-
function
|
|
221
|
-
if (!
|
|
182
|
+
function _t(t) {
|
|
183
|
+
if (!_(t))
|
|
222
184
|
return !1;
|
|
223
|
-
const e =
|
|
224
|
-
return
|
|
225
|
-
t
|
|
226
|
-
) : n === 0 || n === "nil" ? t.toLowerCase() === e.NIL : n === "max" ? t.toLowerCase() === e.MAX : n < 1 || n > 8 ? !1 : e.version(t) === n;
|
|
185
|
+
const e = t.toUpperCase();
|
|
186
|
+
return /^[0-9A-HJKMNP-TV-Z]{26}$/.test(e);
|
|
227
187
|
}
|
|
228
|
-
function
|
|
229
|
-
|
|
230
|
-
return !1;
|
|
231
|
-
const n = t.toUpperCase();
|
|
232
|
-
return /^[0-9A-HJKMNP-TV-Z]{26}$/.test(n);
|
|
233
|
-
}
|
|
234
|
-
function Xt(t) {
|
|
235
|
-
return ht(t, "-");
|
|
188
|
+
function Nt(t) {
|
|
189
|
+
return ot(t, "-");
|
|
236
190
|
}
|
|
237
|
-
function
|
|
191
|
+
function F(t) {
|
|
238
192
|
return t.length;
|
|
239
193
|
}
|
|
240
|
-
function
|
|
241
|
-
if (t.length <=
|
|
194
|
+
function Ot(t, e = 100, n = "...", r = !1) {
|
|
195
|
+
if (t.length <= e)
|
|
242
196
|
return t;
|
|
243
197
|
if (!r)
|
|
244
|
-
return t.slice(0,
|
|
245
|
-
t =
|
|
246
|
-
const s = t.slice(0,
|
|
247
|
-
return t.substring(
|
|
198
|
+
return t.slice(0, e).replace(/\s+$/, "") + n;
|
|
199
|
+
t = st(t).replace(/[\n\r]+/g, " ").trim();
|
|
200
|
+
const s = t.slice(0, e).replace(/\s+$/, "");
|
|
201
|
+
return t.substring(e, e + 1) === " " ? s + n : s.replace(/(.*)\s.*/, "$1") + n;
|
|
248
202
|
}
|
|
249
|
-
function
|
|
250
|
-
return
|
|
203
|
+
function U(t) {
|
|
204
|
+
return M(t);
|
|
251
205
|
}
|
|
252
|
-
function
|
|
253
|
-
if (
|
|
206
|
+
function Mt(t, e = 100, n = "...") {
|
|
207
|
+
if (e <= 0)
|
|
254
208
|
return t;
|
|
255
|
-
const r =
|
|
256
|
-
return !
|
|
209
|
+
const r = e, s = new RegExp(`^\\s*(?:\\S+\\s*){1,${r}}`, "u"), o = t.match(s);
|
|
210
|
+
return !o || F(t) === F(o[0]) ? t : o[0].replace(/\s+$/, "") + n;
|
|
257
211
|
}
|
|
258
|
-
function
|
|
259
|
-
if (
|
|
212
|
+
function Wt(t, e, n, r = null) {
|
|
213
|
+
if (e === "")
|
|
260
214
|
return t;
|
|
261
215
|
const s = t.length;
|
|
262
|
-
let
|
|
263
|
-
|
|
216
|
+
let o = n;
|
|
217
|
+
n < 0 && (o = n < -s ? 0 : s + n);
|
|
264
218
|
const c = t.slice(
|
|
265
|
-
|
|
266
|
-
r !== null ?
|
|
219
|
+
o,
|
|
220
|
+
r !== null ? o + r : void 0
|
|
267
221
|
);
|
|
268
222
|
if (c === "")
|
|
269
223
|
return t;
|
|
270
|
-
const
|
|
271
|
-
return
|
|
224
|
+
const i = t.slice(0, o), l = c.length, f = t.slice(o + l);
|
|
225
|
+
return i + e.slice(0, 1).repeat(l) + f;
|
|
272
226
|
}
|
|
273
|
-
function
|
|
274
|
-
let
|
|
227
|
+
function Ut(t, e) {
|
|
228
|
+
let n = "u", r = t;
|
|
275
229
|
if (t.length >= 2 && t[0] === "/") {
|
|
276
230
|
let s = -1;
|
|
277
|
-
for (let
|
|
278
|
-
if (t[
|
|
231
|
+
for (let o = t.length - 1; o > 0; o--)
|
|
232
|
+
if (t[o] === "/") {
|
|
279
233
|
let c = 0;
|
|
280
|
-
for (let
|
|
234
|
+
for (let i = o - 1; i >= 0 && t[i] === "\\"; i--)
|
|
281
235
|
c++;
|
|
282
236
|
if (c % 2 === 0) {
|
|
283
|
-
s =
|
|
237
|
+
s = o;
|
|
284
238
|
break;
|
|
285
239
|
}
|
|
286
240
|
}
|
|
287
241
|
if (s > 0) {
|
|
288
242
|
r = t.slice(1, s);
|
|
289
|
-
const
|
|
290
|
-
if (
|
|
291
|
-
for (const c of
|
|
292
|
-
/[imsuy]/.test(c) && !
|
|
243
|
+
const o = t.slice(s + 1);
|
|
244
|
+
if (o)
|
|
245
|
+
for (const c of o)
|
|
246
|
+
/[imsuy]/.test(c) && !n.includes(c) && (n += c);
|
|
293
247
|
}
|
|
294
248
|
}
|
|
295
249
|
try {
|
|
296
|
-
const
|
|
297
|
-
return
|
|
250
|
+
const o = new RegExp(r, n).exec(e);
|
|
251
|
+
return o ? o[1] !== void 0 ? o[1] : o[0] : "";
|
|
298
252
|
} catch {
|
|
299
253
|
return "";
|
|
300
254
|
}
|
|
301
255
|
}
|
|
302
|
-
function
|
|
303
|
-
|
|
304
|
-
const
|
|
305
|
-
for (const r of
|
|
256
|
+
function It(t, e) {
|
|
257
|
+
e = String(e);
|
|
258
|
+
const n = typeof t == "string" ? [t] : Array.from(t);
|
|
259
|
+
for (const r of n) {
|
|
306
260
|
if (typeof r != "string" || r === "") continue;
|
|
307
|
-
let s = "u",
|
|
261
|
+
let s = "u", o = r;
|
|
308
262
|
if (r.length >= 2 && r[0] === "/") {
|
|
309
263
|
let c = -1;
|
|
310
|
-
for (let
|
|
311
|
-
if (r[
|
|
264
|
+
for (let i = r.length - 1; i > 0; i--)
|
|
265
|
+
if (r[i] === "/") {
|
|
312
266
|
let l = 0;
|
|
313
|
-
for (let
|
|
267
|
+
for (let f = i - 1; f >= 0 && r[f] === "\\"; f--)
|
|
314
268
|
l++;
|
|
315
269
|
if (l % 2 === 0) {
|
|
316
|
-
c =
|
|
270
|
+
c = i;
|
|
317
271
|
break;
|
|
318
272
|
}
|
|
319
273
|
}
|
|
320
274
|
if (c > 0) {
|
|
321
|
-
|
|
322
|
-
const
|
|
323
|
-
if (
|
|
324
|
-
for (const l of
|
|
275
|
+
o = r.slice(1, c);
|
|
276
|
+
const i = r.slice(c + 1);
|
|
277
|
+
if (i)
|
|
278
|
+
for (const l of i)
|
|
325
279
|
/[imsuy]/.test(l) && !s.includes(l) && (s += l);
|
|
326
280
|
}
|
|
327
281
|
}
|
|
328
282
|
try {
|
|
329
|
-
if (new RegExp(
|
|
283
|
+
if (new RegExp(o, s).test(e))
|
|
330
284
|
return !0;
|
|
331
285
|
} catch {
|
|
332
286
|
}
|
|
333
287
|
}
|
|
334
288
|
return !1;
|
|
335
289
|
}
|
|
336
|
-
function
|
|
337
|
-
let
|
|
290
|
+
function Pt(t, e) {
|
|
291
|
+
let n = "u", r = t;
|
|
338
292
|
if (t.length >= 2 && t[0] === "/") {
|
|
339
|
-
let
|
|
293
|
+
let o = -1;
|
|
340
294
|
for (let c = t.length - 1; c > 0; c--)
|
|
341
295
|
if (t[c] === "/") {
|
|
342
|
-
let
|
|
296
|
+
let i = 0;
|
|
343
297
|
for (let l = c - 1; l >= 0 && t[l] === "\\"; l--)
|
|
344
|
-
|
|
345
|
-
if (
|
|
346
|
-
|
|
298
|
+
i++;
|
|
299
|
+
if (i % 2 === 0) {
|
|
300
|
+
o = c;
|
|
347
301
|
break;
|
|
348
302
|
}
|
|
349
303
|
}
|
|
350
|
-
if (
|
|
351
|
-
r = t.slice(1,
|
|
352
|
-
const c = t.slice(
|
|
304
|
+
if (o > 0) {
|
|
305
|
+
r = t.slice(1, o);
|
|
306
|
+
const c = t.slice(o + 1);
|
|
353
307
|
if (c)
|
|
354
|
-
for (const
|
|
355
|
-
/[imsuy]/.test(
|
|
308
|
+
for (const i of c)
|
|
309
|
+
/[imsuy]/.test(i) && !n.includes(i) && (n += i);
|
|
356
310
|
}
|
|
357
311
|
}
|
|
358
|
-
|
|
312
|
+
n.includes("g") || (n += "g");
|
|
359
313
|
let s = [];
|
|
360
314
|
try {
|
|
361
|
-
const
|
|
315
|
+
const o = new RegExp(r, n);
|
|
362
316
|
let c;
|
|
363
|
-
for (; (c =
|
|
364
|
-
s.push(c[1] !== void 0 ? c[1] : c[0]), c[0] === "" &&
|
|
317
|
+
for (; (c = o.exec(e)) !== null; )
|
|
318
|
+
s.push(c[1] !== void 0 ? c[1] : c[0]), c[0] === "" && o.lastIndex++;
|
|
365
319
|
} catch {
|
|
366
320
|
s = [];
|
|
367
321
|
}
|
|
368
322
|
return s;
|
|
369
323
|
}
|
|
370
|
-
function
|
|
371
|
-
return S(t) ? t.map((
|
|
324
|
+
function qt(t) {
|
|
325
|
+
return S(t) ? t.map((e) => e.replace(/[^0-9]/g, "")) : t.replace(/[^0-9]/g, "");
|
|
372
326
|
}
|
|
373
|
-
function
|
|
327
|
+
function Gt(t, e, n = " ") {
|
|
374
328
|
const r = t.length;
|
|
375
|
-
if (
|
|
329
|
+
if (e <= r || n === "")
|
|
376
330
|
return t;
|
|
377
|
-
const s =
|
|
378
|
-
return
|
|
331
|
+
const s = e - r, o = Math.floor(s / 2), c = s - o;
|
|
332
|
+
return z(n, o) + t + z(n, c);
|
|
379
333
|
}
|
|
380
|
-
function
|
|
334
|
+
function jt(t, e, n = " ") {
|
|
381
335
|
const r = t.length;
|
|
382
|
-
if (
|
|
336
|
+
if (e <= r || n === "")
|
|
383
337
|
return t;
|
|
384
|
-
const
|
|
385
|
-
return
|
|
338
|
+
const o = e - r;
|
|
339
|
+
return z(n, o) + t;
|
|
386
340
|
}
|
|
387
|
-
function
|
|
341
|
+
function Kt(t, e, n = " ") {
|
|
388
342
|
const r = t.length;
|
|
389
|
-
if (
|
|
343
|
+
if (e <= r || n === "")
|
|
390
344
|
return t;
|
|
391
|
-
const
|
|
392
|
-
return t +
|
|
345
|
+
const o = e - r;
|
|
346
|
+
return t + z(n, o);
|
|
393
347
|
}
|
|
394
|
-
function
|
|
395
|
-
if (
|
|
396
|
-
const
|
|
397
|
-
return t.repeat(
|
|
348
|
+
function z(t, e) {
|
|
349
|
+
if (e <= 0) return "";
|
|
350
|
+
const n = Math.ceil(e / t.length);
|
|
351
|
+
return t.repeat(n).slice(0, e);
|
|
398
352
|
}
|
|
399
|
-
function
|
|
400
|
-
const
|
|
401
|
-
return
|
|
353
|
+
function v(t, e = 2) {
|
|
354
|
+
const n = t.split(/(?=[A-Z])/), r = String(n.pop());
|
|
355
|
+
return n.join("") + J(r, e);
|
|
402
356
|
}
|
|
403
|
-
function
|
|
404
|
-
return
|
|
357
|
+
function Tt(t, e = 2) {
|
|
358
|
+
return v(t, e);
|
|
405
359
|
}
|
|
406
|
-
function
|
|
407
|
-
const
|
|
408
|
-
|
|
360
|
+
function Zt(t = 32, e = !0, n = !0, r = !0, s = !1) {
|
|
361
|
+
const f = [
|
|
362
|
+
e ? [
|
|
409
363
|
"a",
|
|
410
364
|
"b",
|
|
411
365
|
"c",
|
|
@@ -459,7 +413,7 @@ function on(t = 32, n = !0, e = !0, r = !0, s = !1) {
|
|
|
459
413
|
"Y",
|
|
460
414
|
"Z"
|
|
461
415
|
] : null,
|
|
462
|
-
|
|
416
|
+
n ? ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] : null,
|
|
463
417
|
r ? [
|
|
464
418
|
"~",
|
|
465
419
|
"!",
|
|
@@ -490,245 +444,245 @@ function on(t = 32, n = !0, e = !0, r = !0, s = !1) {
|
|
|
490
444
|
] : null,
|
|
491
445
|
s ? [" "] : null
|
|
492
446
|
].filter((p) => S(p));
|
|
493
|
-
if (
|
|
447
|
+
if (f.length === 0 || t <= 0)
|
|
494
448
|
return "";
|
|
495
449
|
const m = [];
|
|
496
|
-
for (const p of
|
|
497
|
-
const g =
|
|
450
|
+
for (const p of f) {
|
|
451
|
+
const g = O(0, p.length - 1);
|
|
498
452
|
m.push(p[g]);
|
|
499
453
|
}
|
|
500
|
-
const
|
|
501
|
-
for (let p = 0; p <
|
|
502
|
-
const g =
|
|
503
|
-
m.push(
|
|
454
|
+
const u = Math.max(0, t - m.length), a = f.flat();
|
|
455
|
+
for (let p = 0; p < u; p++) {
|
|
456
|
+
const g = O(0, a.length - 1);
|
|
457
|
+
m.push(a[g]);
|
|
504
458
|
}
|
|
505
459
|
for (let p = m.length - 1; p > 0; p--) {
|
|
506
|
-
const g =
|
|
507
|
-
m[p] = m[g], m[g] =
|
|
460
|
+
const g = O(0, p), h = m[p];
|
|
461
|
+
m[p] = m[g], m[g] = h;
|
|
508
462
|
}
|
|
509
463
|
return m.join("");
|
|
510
464
|
}
|
|
511
|
-
function
|
|
512
|
-
if (
|
|
465
|
+
function Jt(t, e, n = 0) {
|
|
466
|
+
if (e === "")
|
|
513
467
|
return !1;
|
|
514
|
-
const r = Array.from(t), s = Array.from(
|
|
515
|
-
let
|
|
516
|
-
if (
|
|
468
|
+
const r = Array.from(t), s = Array.from(e);
|
|
469
|
+
let o = n >= 0 ? n : r.length + n;
|
|
470
|
+
if (o < 0 && (o = 0), o >= r.length)
|
|
517
471
|
return !1;
|
|
518
472
|
const c = r.length - s.length;
|
|
519
|
-
for (let
|
|
473
|
+
for (let i = o; i <= c; i++) {
|
|
520
474
|
let l = !0;
|
|
521
|
-
for (let
|
|
522
|
-
if (r[
|
|
475
|
+
for (let f = 0; f < s.length; f++)
|
|
476
|
+
if (r[i + f] !== s[f]) {
|
|
523
477
|
l = !1;
|
|
524
478
|
break;
|
|
525
479
|
}
|
|
526
480
|
if (l)
|
|
527
|
-
return
|
|
481
|
+
return i;
|
|
528
482
|
}
|
|
529
483
|
return !1;
|
|
530
484
|
}
|
|
531
|
-
function
|
|
532
|
-
return (
|
|
485
|
+
function tt(t = 16) {
|
|
486
|
+
return (b ?? ((n) => B(n)))(t);
|
|
533
487
|
}
|
|
534
|
-
function
|
|
535
|
-
|
|
488
|
+
function et(t) {
|
|
489
|
+
b = t;
|
|
536
490
|
}
|
|
537
|
-
function
|
|
538
|
-
let
|
|
539
|
-
const r =
|
|
540
|
-
const
|
|
541
|
-
|
|
542
|
-
const c =
|
|
543
|
-
return
|
|
491
|
+
function Bt(t, e) {
|
|
492
|
+
let n = 0;
|
|
493
|
+
const r = e ?? function(s) {
|
|
494
|
+
const o = b;
|
|
495
|
+
b = null;
|
|
496
|
+
const c = tt(s);
|
|
497
|
+
return b = o, n++, c;
|
|
544
498
|
};
|
|
545
|
-
|
|
499
|
+
et((s) => n < t.length ? String(t[n++]) : r(s));
|
|
546
500
|
}
|
|
547
|
-
function
|
|
548
|
-
|
|
501
|
+
function Ht() {
|
|
502
|
+
b = null;
|
|
549
503
|
}
|
|
550
|
-
function
|
|
551
|
-
return
|
|
504
|
+
function Vt(t, e) {
|
|
505
|
+
return e <= 0 ? "" : t.repeat(e);
|
|
552
506
|
}
|
|
553
|
-
function
|
|
507
|
+
function Dt(t, e, n) {
|
|
554
508
|
let r;
|
|
555
|
-
typeof
|
|
556
|
-
const s =
|
|
509
|
+
typeof e == "object" && !S(e) ? r = Object.values(e) : r = S(e) ? [...e] : Array.from(e);
|
|
510
|
+
const s = n.split(t);
|
|
557
511
|
if (s.length === 1)
|
|
558
|
-
return
|
|
559
|
-
let
|
|
512
|
+
return n;
|
|
513
|
+
let o = s[0];
|
|
560
514
|
for (let c = 1; c < s.length; c++) {
|
|
561
|
-
const
|
|
562
|
-
|
|
515
|
+
const i = r.length ? r.shift() : t;
|
|
516
|
+
o += i + s[c];
|
|
563
517
|
}
|
|
564
|
-
return String(
|
|
518
|
+
return String(o);
|
|
565
519
|
}
|
|
566
|
-
function
|
|
520
|
+
function Qt(t, e) {
|
|
567
521
|
try {
|
|
568
|
-
const
|
|
569
|
-
if (
|
|
570
|
-
return
|
|
522
|
+
const n = String(t);
|
|
523
|
+
if (n.length)
|
|
524
|
+
return n;
|
|
571
525
|
throw new Error("Failed to convert value to string");
|
|
572
526
|
} catch {
|
|
573
|
-
return
|
|
527
|
+
return e;
|
|
574
528
|
}
|
|
575
529
|
}
|
|
576
|
-
function
|
|
577
|
-
const s = (
|
|
578
|
-
if (
|
|
579
|
-
const p = c[
|
|
530
|
+
function Xt(t, e, n, r = !0) {
|
|
531
|
+
const s = (f) => typeof f == "string" ? [f] : Array.from(f), o = s(t), c = s(e), i = (f) => f.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), l = (f) => o.reduce((m, u, a) => {
|
|
532
|
+
if (u === "") return m;
|
|
533
|
+
const p = c[a] ?? "";
|
|
580
534
|
if (!r)
|
|
581
|
-
return m.split(
|
|
582
|
-
const g = new RegExp(
|
|
535
|
+
return m.split(u).join(p);
|
|
536
|
+
const g = new RegExp(i(u), "gi");
|
|
583
537
|
return m.replace(g, () => p);
|
|
584
|
-
},
|
|
585
|
-
return
|
|
538
|
+
}, f);
|
|
539
|
+
return _(n) ? l(n) : Array.from(n).map(l);
|
|
586
540
|
}
|
|
587
|
-
function
|
|
541
|
+
function nt(t, e, n) {
|
|
588
542
|
if (t = String(t), t === "")
|
|
589
|
-
return
|
|
590
|
-
const r =
|
|
591
|
-
return r !== -1 ?
|
|
543
|
+
return n;
|
|
544
|
+
const r = n.indexOf(t);
|
|
545
|
+
return r !== -1 ? n.slice(0, r) + e + n.slice(r + t.length) : n;
|
|
592
546
|
}
|
|
593
|
-
function
|
|
594
|
-
return t = String(t), t === "" ?
|
|
547
|
+
function Yt(t, e, n) {
|
|
548
|
+
return t = String(t), t === "" ? n : I(n, t) ? nt(t, e, n) : n;
|
|
595
549
|
}
|
|
596
|
-
function
|
|
550
|
+
function rt(t, e, n) {
|
|
597
551
|
if (t = String(t), t === "")
|
|
598
|
-
return
|
|
599
|
-
const r =
|
|
600
|
-
return r !== -1 ?
|
|
552
|
+
return n;
|
|
553
|
+
const r = n.lastIndexOf(t);
|
|
554
|
+
return r !== -1 ? n.slice(0, r) + e + n.slice(r + t.length) : n;
|
|
601
555
|
}
|
|
602
|
-
function
|
|
603
|
-
return t = String(t), t === "" ?
|
|
556
|
+
function vt(t, e, n) {
|
|
557
|
+
return t = String(t), t === "" ? n : W(n, t) ? rt(t, e, n) : n;
|
|
604
558
|
}
|
|
605
|
-
function
|
|
606
|
-
const s = (
|
|
607
|
-
function c(
|
|
559
|
+
function te(t, e, n, r = -1) {
|
|
560
|
+
const s = (u) => S(u) ? u : [u], o = s(t);
|
|
561
|
+
function c(u) {
|
|
608
562
|
try {
|
|
609
|
-
if (
|
|
610
|
-
let g =
|
|
611
|
-
return g.includes("g") || (g += "g"), g.includes("u") || (g += "u"), new RegExp(
|
|
563
|
+
if (u instanceof RegExp) {
|
|
564
|
+
let g = u.flags;
|
|
565
|
+
return g.includes("g") || (g += "g"), g.includes("u") || (g += "u"), new RegExp(u.source, g);
|
|
612
566
|
}
|
|
613
|
-
let
|
|
614
|
-
if (
|
|
567
|
+
let a = u, p = "gu";
|
|
568
|
+
if (u.length >= 2 && u[0] === "/") {
|
|
615
569
|
let g = -1;
|
|
616
|
-
for (let
|
|
617
|
-
if (
|
|
618
|
-
let
|
|
619
|
-
for (let y =
|
|
620
|
-
|
|
621
|
-
if (
|
|
622
|
-
g =
|
|
570
|
+
for (let h = u.length - 1; h > 0; h--)
|
|
571
|
+
if (u[h] === "/") {
|
|
572
|
+
let d = 0;
|
|
573
|
+
for (let y = h - 1; y >= 0 && u[y] === "\\"; y--)
|
|
574
|
+
d++;
|
|
575
|
+
if (d % 2 === 0) {
|
|
576
|
+
g = h;
|
|
623
577
|
break;
|
|
624
578
|
}
|
|
625
579
|
}
|
|
626
580
|
if (g > 1) {
|
|
627
|
-
|
|
628
|
-
const
|
|
629
|
-
if (
|
|
630
|
-
for (const
|
|
631
|
-
/[imsuy]/.test(
|
|
581
|
+
a = u.slice(1, g);
|
|
582
|
+
const h = u.slice(g + 1);
|
|
583
|
+
if (h)
|
|
584
|
+
for (const d of h)
|
|
585
|
+
/[imsuy]/.test(d) && !p.includes(d) && (p += d);
|
|
632
586
|
p.includes("g") || (p += "g"), p.includes("u") || (p += "u");
|
|
633
587
|
}
|
|
634
588
|
}
|
|
635
589
|
return new RegExp(
|
|
636
|
-
|
|
590
|
+
a,
|
|
637
591
|
Array.from(new Set(p.split(""))).join("")
|
|
638
592
|
);
|
|
639
593
|
} catch {
|
|
640
594
|
return null;
|
|
641
595
|
}
|
|
642
596
|
}
|
|
643
|
-
const
|
|
644
|
-
for (const
|
|
645
|
-
const
|
|
646
|
-
if (!
|
|
647
|
-
|
|
597
|
+
const i = [];
|
|
598
|
+
for (const u of o) {
|
|
599
|
+
const a = c(u);
|
|
600
|
+
if (!a) return null;
|
|
601
|
+
i.push(a);
|
|
648
602
|
}
|
|
649
|
-
const l =
|
|
650
|
-
let
|
|
651
|
-
for (let p = 0; p <
|
|
652
|
-
const g =
|
|
603
|
+
const l = Q(e), f = l ? [] : s(e), m = (u) => {
|
|
604
|
+
let a = u;
|
|
605
|
+
for (let p = 0; p < i.length; p++) {
|
|
606
|
+
const g = i[p];
|
|
653
607
|
if (l) {
|
|
654
|
-
let
|
|
655
|
-
const
|
|
656
|
-
|
|
608
|
+
let h = 0;
|
|
609
|
+
const d = e;
|
|
610
|
+
a = a.replace(
|
|
657
611
|
g,
|
|
658
612
|
(y, ...w) => {
|
|
659
|
-
if (r >= 0 &&
|
|
660
|
-
|
|
661
|
-
const
|
|
662
|
-
for (let
|
|
663
|
-
|
|
664
|
-
const
|
|
665
|
-
return
|
|
613
|
+
if (r >= 0 && h >= r) return y;
|
|
614
|
+
h++;
|
|
615
|
+
const L = typeof w[w.length - 1] == "object" && typeof w[w.length - 2] == "number" ? w.length - 3 : w.length - 2, $ = [];
|
|
616
|
+
for (let A = 0; A < L; A++)
|
|
617
|
+
$.push(w[A]);
|
|
618
|
+
const k = [y, ...$];
|
|
619
|
+
return d(k);
|
|
666
620
|
}
|
|
667
621
|
);
|
|
668
622
|
} else {
|
|
669
|
-
const
|
|
623
|
+
const h = f[p] ?? (f.length === 1 ? f[0] : "");
|
|
670
624
|
if (r < 0)
|
|
671
|
-
|
|
672
|
-
const
|
|
673
|
-
return
|
|
674
|
-
const
|
|
675
|
-
return (
|
|
625
|
+
a = a.replace(g, (d, ...y) => {
|
|
626
|
+
const N = typeof y[y.length - 1] == "object" && typeof y[y.length - 2] == "number" ? y.length - 3 : y.length - 2, L = y.slice(0, N).map(($) => String($));
|
|
627
|
+
return h.replace(/\$(\d{1,2})/g, ($, k) => {
|
|
628
|
+
const A = parseInt(k, 10);
|
|
629
|
+
return (L[A - 1] ?? "").toUpperCase();
|
|
676
630
|
});
|
|
677
631
|
});
|
|
678
632
|
else {
|
|
679
|
-
let
|
|
680
|
-
|
|
681
|
-
if (
|
|
682
|
-
|
|
683
|
-
const
|
|
684
|
-
return
|
|
685
|
-
const
|
|
686
|
-
return (
|
|
633
|
+
let d = 0;
|
|
634
|
+
a = a.replace(g, (y, ...w) => {
|
|
635
|
+
if (d >= r) return y;
|
|
636
|
+
d++;
|
|
637
|
+
const L = typeof w[w.length - 1] == "object" && typeof w[w.length - 2] == "number" ? w.length - 3 : w.length - 2, $ = w.slice(0, L).map((k) => String(k));
|
|
638
|
+
return h.replace(/\$(\d{1,2})/g, (k, A) => {
|
|
639
|
+
const P = parseInt(A, 10);
|
|
640
|
+
return ($[P - 1] ?? "").toUpperCase();
|
|
687
641
|
});
|
|
688
642
|
});
|
|
689
643
|
}
|
|
690
644
|
}
|
|
691
645
|
}
|
|
692
|
-
return
|
|
646
|
+
return a;
|
|
693
647
|
};
|
|
694
|
-
return S(
|
|
648
|
+
return S(n) ? n.map(m) : m(n);
|
|
695
649
|
}
|
|
696
|
-
function
|
|
650
|
+
function st(t) {
|
|
697
651
|
return t.replace(/<\/?[^>]+(>|$)/g, "");
|
|
698
652
|
}
|
|
699
|
-
function
|
|
700
|
-
const r = typeof t == "string" ? [t] : Array.from(t), s = (c) => c.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"),
|
|
701
|
-
let
|
|
653
|
+
function ee(t, e, n = !0) {
|
|
654
|
+
const r = typeof t == "string" ? [t] : Array.from(t), s = (c) => c.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), o = (c) => {
|
|
655
|
+
let i = c;
|
|
702
656
|
for (const l of r)
|
|
703
657
|
if (l !== "")
|
|
704
|
-
if (
|
|
705
|
-
|
|
658
|
+
if (n)
|
|
659
|
+
i = i.split(l).join("");
|
|
706
660
|
else {
|
|
707
|
-
const
|
|
708
|
-
|
|
661
|
+
const f = new RegExp(s(l), "gi");
|
|
662
|
+
i = i.replace(f, "");
|
|
709
663
|
}
|
|
710
|
-
return
|
|
664
|
+
return i;
|
|
711
665
|
};
|
|
712
|
-
return typeof
|
|
666
|
+
return typeof e == "string" ? o(e) : Array.from(e, (c) => o(String(c)));
|
|
713
667
|
}
|
|
714
|
-
function
|
|
668
|
+
function ne(t) {
|
|
715
669
|
return Array.from(t).reverse().join("");
|
|
716
670
|
}
|
|
717
|
-
function
|
|
718
|
-
const
|
|
719
|
-
return
|
|
671
|
+
function re(t, e) {
|
|
672
|
+
const n = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
673
|
+
return e + t.replace(new RegExp(`^(?:${n})+`, "u"), "");
|
|
720
674
|
}
|
|
721
|
-
function
|
|
722
|
-
const
|
|
723
|
-
if (
|
|
675
|
+
function se(t) {
|
|
676
|
+
const e = String(t).trim();
|
|
677
|
+
if (e === "")
|
|
724
678
|
return "";
|
|
725
|
-
let
|
|
726
|
-
return
|
|
679
|
+
let n = e.split(/\s+/u);
|
|
680
|
+
return n.length > 1 ? n = n.map((s) => j(s)) : n = ct(n.join("_")).map((s) => j(s)), n.join("_").replace(/[-_ ]+/gu, "_").split("_").filter((s) => s.length > 0).join(" ");
|
|
727
681
|
}
|
|
728
|
-
function
|
|
682
|
+
function oe(t) {
|
|
729
683
|
if (t.trim() === "")
|
|
730
684
|
return t;
|
|
731
|
-
const
|
|
685
|
+
const e = /* @__PURE__ */ new Set([
|
|
732
686
|
"and",
|
|
733
687
|
"as",
|
|
734
688
|
"but",
|
|
@@ -764,365 +718,276 @@ function $n(t) {
|
|
|
764
718
|
"des",
|
|
765
719
|
"par",
|
|
766
720
|
"à"
|
|
767
|
-
]),
|
|
768
|
-
if (!
|
|
769
|
-
const c = Array.from(
|
|
770
|
-
return
|
|
721
|
+
]), n = /* @__PURE__ */ new Set([".", "!", "?", ":", "—", ","]), r = t.split(/\s+/u), s = (o) => {
|
|
722
|
+
if (!o) return o;
|
|
723
|
+
const c = Array.from(o), i = c[0].toLocaleUpperCase(), l = c.slice(1).join("");
|
|
724
|
+
return i + l;
|
|
771
725
|
};
|
|
772
|
-
for (let
|
|
773
|
-
const c = r[
|
|
726
|
+
for (let o = 0; o < r.length; o++) {
|
|
727
|
+
const c = r[o].toLocaleLowerCase();
|
|
774
728
|
if (c.includes("-")) {
|
|
775
|
-
const l = c.split("-").map((
|
|
776
|
-
r[
|
|
729
|
+
const l = c.split("-").map((f) => e.has(f) && f.length <= 3 ? f : s(f));
|
|
730
|
+
r[o] = l.join("-");
|
|
777
731
|
} else {
|
|
778
|
-
const
|
|
779
|
-
|
|
732
|
+
const i = o > 0 ? r[o - 1] : "", l = i ? Array.from(i).slice(-1)[0] : void 0, f = o === 0 || l !== void 0 && n.has(l);
|
|
733
|
+
e.has(c) && c.length <= 3 && !f ? r[o] = c : r[o] = s(c);
|
|
780
734
|
}
|
|
781
735
|
}
|
|
782
736
|
return r.join(" ");
|
|
783
737
|
}
|
|
784
|
-
function
|
|
785
|
-
const r =
|
|
786
|
-
let
|
|
738
|
+
function ie(t, e = "-", n = { "@": "at" }) {
|
|
739
|
+
const r = e, s = (u) => u.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&"), o = (u) => u.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), c = (u) => {
|
|
740
|
+
let a = u;
|
|
787
741
|
const p = r === "-" ? "_" : "-";
|
|
788
742
|
{
|
|
789
743
|
const g = new RegExp(`[${s(p)}]+`, "gu");
|
|
790
|
-
|
|
744
|
+
a = a.replace(g, r);
|
|
791
745
|
}
|
|
792
|
-
if (
|
|
746
|
+
if (n && typeof n == "object") {
|
|
793
747
|
const g = {};
|
|
794
|
-
for (const [
|
|
795
|
-
g[
|
|
796
|
-
for (const [
|
|
797
|
-
|
|
748
|
+
for (const [h, d] of Object.entries(n))
|
|
749
|
+
g[h] = (r ?? "") + d + (r ?? "");
|
|
750
|
+
for (const [h, d] of Object.entries(g))
|
|
751
|
+
h !== "" && (a = a.split(h).join(d));
|
|
798
752
|
}
|
|
799
|
-
if (
|
|
800
|
-
return
|
|
753
|
+
if (a = U(a), r === "")
|
|
754
|
+
return a = a.replace(/[^\p{L}\p{N}\s]+/gu, ""), a = a.replace(/[\s]+/gu, ""), a;
|
|
801
755
|
{
|
|
802
756
|
const g = new RegExp(
|
|
803
757
|
`[^${s(r)}\\p{L}\\p{N}\\s]+`,
|
|
804
758
|
"gu"
|
|
805
759
|
);
|
|
806
|
-
|
|
807
|
-
const
|
|
760
|
+
a = a.replace(g, "");
|
|
761
|
+
const h = new RegExp(
|
|
808
762
|
`[${s(r)}\\s]+`,
|
|
809
763
|
"gu"
|
|
810
764
|
);
|
|
811
|
-
|
|
812
|
-
const
|
|
813
|
-
`^${
|
|
765
|
+
a = a.replace(h, r);
|
|
766
|
+
const d = new RegExp(
|
|
767
|
+
`^${o(r)}+|${o(r)}+$`,
|
|
814
768
|
"gu"
|
|
815
769
|
);
|
|
816
|
-
return
|
|
770
|
+
return a = a.replace(d, ""), a;
|
|
817
771
|
}
|
|
818
|
-
},
|
|
819
|
-
return Object.keys(
|
|
772
|
+
}, i = c(t), l = c(H(t));
|
|
773
|
+
return Object.keys(n || {}).some((u) => /[A-Za-z0-9]/.test(u)) ? l : i;
|
|
820
774
|
}
|
|
821
|
-
function
|
|
822
|
-
const r = `${t}|${
|
|
823
|
-
if (
|
|
824
|
-
return
|
|
775
|
+
function ot(t, e = "_") {
|
|
776
|
+
const r = `${t}|${e}`;
|
|
777
|
+
if (R.has(r))
|
|
778
|
+
return R.get(r);
|
|
825
779
|
let s = t;
|
|
826
|
-
return /^[a-z]+$/.test(t) || (s =
|
|
780
|
+
return /^[a-z]+$/.test(t) || (s = lt(t).replace(/\s+/gu, ""), s = s.replace(/(.)(?=[A-Z])/g, `$1${e}`), s = U(s)), R.set(r, s), s;
|
|
827
781
|
}
|
|
828
|
-
function
|
|
829
|
-
return
|
|
782
|
+
function ce(t) {
|
|
783
|
+
return V(t).replace(/[\s\u3164\u1160]+/gu, " ");
|
|
830
784
|
}
|
|
831
|
-
function
|
|
832
|
-
if (t == null ||
|
|
785
|
+
function I(t, e) {
|
|
786
|
+
if (t == null || e == null)
|
|
833
787
|
return !1;
|
|
834
|
-
let
|
|
835
|
-
|
|
788
|
+
let n = [
|
|
789
|
+
e
|
|
836
790
|
];
|
|
837
|
-
typeof
|
|
791
|
+
typeof e == "string" || typeof e == "number" ? n = [e] : Symbol.iterator in Object(e) && (n = Array.from(e));
|
|
838
792
|
const r = String(t);
|
|
839
|
-
for (const s of
|
|
793
|
+
for (const s of n) {
|
|
840
794
|
if (s == null)
|
|
841
795
|
continue;
|
|
842
|
-
const
|
|
843
|
-
if (
|
|
796
|
+
const o = String(s);
|
|
797
|
+
if (o !== "" && r.startsWith(o))
|
|
844
798
|
return !0;
|
|
845
799
|
}
|
|
846
800
|
return !1;
|
|
847
801
|
}
|
|
848
|
-
function
|
|
849
|
-
return !
|
|
802
|
+
function le(t, e) {
|
|
803
|
+
return !I(t, e);
|
|
850
804
|
}
|
|
851
|
-
function
|
|
852
|
-
const
|
|
853
|
-
if (
|
|
854
|
-
return
|
|
855
|
-
const
|
|
805
|
+
function Z(t) {
|
|
806
|
+
const e = t;
|
|
807
|
+
if (C.has(e))
|
|
808
|
+
return C.get(e);
|
|
809
|
+
const n = String(t).replace(/[-_]+/g, " "), r = n.trim() === "" ? [] : n.split(/\s+/u), s = (c) => {
|
|
856
810
|
if (!c) return c;
|
|
857
|
-
const
|
|
858
|
-
return l +
|
|
859
|
-
},
|
|
860
|
-
return
|
|
811
|
+
const i = Array.from(c), l = i[0].toUpperCase(), f = i.slice(1).join("");
|
|
812
|
+
return l + f;
|
|
813
|
+
}, o = r.map(s).join("");
|
|
814
|
+
return C.set(e, o), o;
|
|
861
815
|
}
|
|
862
|
-
function
|
|
863
|
-
return
|
|
816
|
+
function fe(t) {
|
|
817
|
+
return Z(t);
|
|
864
818
|
}
|
|
865
|
-
function
|
|
819
|
+
function ae(t, e) {
|
|
866
820
|
if (!t || Object.keys(t).length === 0)
|
|
867
|
-
return
|
|
868
|
-
const
|
|
869
|
-
if (
|
|
870
|
-
return
|
|
871
|
-
|
|
872
|
-
const r = (
|
|
873
|
-
return
|
|
821
|
+
return e;
|
|
822
|
+
const n = Object.keys(t).filter((o) => o !== "");
|
|
823
|
+
if (n.length === 0)
|
|
824
|
+
return e;
|
|
825
|
+
n.sort((o, c) => c.length - o.length);
|
|
826
|
+
const r = (o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), s = new RegExp(n.map(r).join("|"), "gu");
|
|
827
|
+
return e.replace(s, (o) => t[o] ?? o);
|
|
874
828
|
}
|
|
875
|
-
function
|
|
876
|
-
return
|
|
829
|
+
function ue(t, e) {
|
|
830
|
+
return e < 0 ? x(t, e) : x(t, 0, e);
|
|
877
831
|
}
|
|
878
|
-
function
|
|
879
|
-
return
|
|
832
|
+
function it(t) {
|
|
833
|
+
return U(x(t, 0, 1)) + x(t, 1);
|
|
880
834
|
}
|
|
881
|
-
function
|
|
882
|
-
return
|
|
835
|
+
function pe(t) {
|
|
836
|
+
return D(x(t, 0, 1)) + x(t, 1);
|
|
883
837
|
}
|
|
884
|
-
function
|
|
838
|
+
function ct(t) {
|
|
885
839
|
return t.split(new RegExp("(?=\\p{Lu})", "u")).filter(Boolean);
|
|
886
840
|
}
|
|
887
|
-
function
|
|
841
|
+
function lt(t, e = ` \r
|
|
888
842
|
\f\v`) {
|
|
889
|
-
const
|
|
890
|
-
return t.replace(c, (
|
|
843
|
+
const n = S(e) ? e.join("") : e, r = (i) => i.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&"), s = n.length ? r(n) : "", o = s.length ? `(?:\\s|[${s}])` : "\\s", c = new RegExp(`(^|${o})(\\p{Ll})`, "gu");
|
|
844
|
+
return t.replace(c, (i, l, f) => l + f.toUpperCase());
|
|
891
845
|
}
|
|
892
|
-
function
|
|
893
|
-
const
|
|
846
|
+
function ge(t, e = null) {
|
|
847
|
+
const n = e && e.length > 0 ? e.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&") : "", r = n.length > 0 ? new RegExp(`[\\p{L}\\p{N}${n}]+`, "gu") : /[\p{L}\p{N}]+/gu, s = t.match(r);
|
|
894
848
|
return s ? s.length : 0;
|
|
895
849
|
}
|
|
896
|
-
function
|
|
850
|
+
function me(t, e = 75, n = `
|
|
897
851
|
`, r = !1) {
|
|
898
|
-
if (t.length === 0 ||
|
|
852
|
+
if (t.length === 0 || e < 1 || n === "")
|
|
899
853
|
return t;
|
|
900
|
-
const s = t.split(/\r\n|\n|\r/),
|
|
854
|
+
const s = t.split(/\r\n|\n|\r/), o = [];
|
|
901
855
|
for (const c of s) {
|
|
902
|
-
let
|
|
903
|
-
if (
|
|
904
|
-
|
|
856
|
+
let i = c;
|
|
857
|
+
if (i.length === 0) {
|
|
858
|
+
o.push("");
|
|
905
859
|
continue;
|
|
906
860
|
}
|
|
907
861
|
if (r) {
|
|
908
|
-
for (;
|
|
909
|
-
if (
|
|
910
|
-
|
|
862
|
+
for (; i.length > 0 && !(/^\s/u.test(i) && (i = i.replace(/^\s+/u, ""), i.length === 0)); ) {
|
|
863
|
+
if (i.length <= e) {
|
|
864
|
+
o.push(i), i = "";
|
|
911
865
|
break;
|
|
912
866
|
}
|
|
913
|
-
let l =
|
|
914
|
-
l = l.replace(/\s+$/u, ""),
|
|
867
|
+
let l = i.slice(0, e);
|
|
868
|
+
l = l.replace(/\s+$/u, ""), o.push(l), i = i.slice(e).replace(/^\s+/u, "");
|
|
915
869
|
}
|
|
916
870
|
continue;
|
|
917
871
|
}
|
|
918
|
-
for (;
|
|
919
|
-
const l =
|
|
920
|
-
if (l.length !==
|
|
872
|
+
for (; i.length > e; ) {
|
|
873
|
+
const l = i.replace(/^\s+/u, "");
|
|
874
|
+
if (l.length !== i.length && (i = l, i.length <= e))
|
|
921
875
|
break;
|
|
922
|
-
const
|
|
876
|
+
const f = i.slice(0, e + 1);
|
|
923
877
|
let m = -1;
|
|
924
|
-
for (let
|
|
925
|
-
if (/\s/u.test(a
|
|
926
|
-
m =
|
|
878
|
+
for (let a = f.length - 1; a >= 0; a--)
|
|
879
|
+
if (/\s/u.test(f[a])) {
|
|
880
|
+
m = a;
|
|
927
881
|
break;
|
|
928
882
|
}
|
|
929
883
|
if (m > 0) {
|
|
930
|
-
|
|
884
|
+
o.push(i.slice(0, m)), i = i.slice(m + 1);
|
|
931
885
|
continue;
|
|
932
886
|
}
|
|
933
|
-
const
|
|
934
|
-
if (
|
|
935
|
-
|
|
887
|
+
const u = i.search(/\s/u);
|
|
888
|
+
if (u >= 0) {
|
|
889
|
+
o.push(i.slice(0, u)), i = i.slice(u + 1);
|
|
936
890
|
continue;
|
|
937
891
|
}
|
|
938
|
-
|
|
892
|
+
o.push(i), i = "";
|
|
939
893
|
break;
|
|
940
894
|
}
|
|
941
|
-
|
|
942
|
-
}
|
|
943
|
-
return i.join(e);
|
|
944
|
-
}
|
|
945
|
-
function B() {
|
|
946
|
-
return $ ? $() : P().v4();
|
|
947
|
-
}
|
|
948
|
-
function Nn() {
|
|
949
|
-
return $ ? $() : P().v7();
|
|
950
|
-
}
|
|
951
|
-
function H(t = null) {
|
|
952
|
-
$ = t;
|
|
953
|
-
}
|
|
954
|
-
function zn(t, n = null) {
|
|
955
|
-
let e = 0;
|
|
956
|
-
n ??= function() {
|
|
957
|
-
const r = $;
|
|
958
|
-
$ = null;
|
|
959
|
-
const s = B();
|
|
960
|
-
return $ = r, e++, s;
|
|
961
|
-
}, H(function() {
|
|
962
|
-
return e < t.length ? t[e++] : n();
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
|
-
function _n(t = null) {
|
|
966
|
-
const n = B();
|
|
967
|
-
if (H(() => n), t !== null)
|
|
968
|
-
try {
|
|
969
|
-
t(n);
|
|
970
|
-
} finally {
|
|
971
|
-
St();
|
|
972
|
-
}
|
|
973
|
-
return n;
|
|
974
|
-
}
|
|
975
|
-
function St() {
|
|
976
|
-
$ = null;
|
|
977
|
-
}
|
|
978
|
-
function V(t = null) {
|
|
979
|
-
if (L)
|
|
980
|
-
return L();
|
|
981
|
-
const n = ot();
|
|
982
|
-
if (t == null)
|
|
983
|
-
return n();
|
|
984
|
-
let e;
|
|
985
|
-
t instanceof Date ? e = t.getTime() : e = t;
|
|
986
|
-
const r = Date.now;
|
|
987
|
-
try {
|
|
988
|
-
return Date.now = () => e, n();
|
|
989
|
-
} finally {
|
|
990
|
-
Date.now = r;
|
|
895
|
+
i.length > 0 && o.push(i);
|
|
991
896
|
}
|
|
897
|
+
return o.join(n);
|
|
992
898
|
}
|
|
993
|
-
function
|
|
994
|
-
|
|
995
|
-
}
|
|
996
|
-
function Q(t = null) {
|
|
997
|
-
L = t;
|
|
998
|
-
}
|
|
999
|
-
function Mn(t, n = null) {
|
|
1000
|
-
let e = 0;
|
|
1001
|
-
n ??= function() {
|
|
1002
|
-
const r = L;
|
|
1003
|
-
L = null;
|
|
1004
|
-
const s = V();
|
|
1005
|
-
return L = r, e++, s;
|
|
1006
|
-
}, Q(function() {
|
|
1007
|
-
return e < t.length ? t[e++] : n();
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1010
|
-
function On(t = null) {
|
|
1011
|
-
const n = V();
|
|
1012
|
-
if (Q(() => n), t !== null)
|
|
1013
|
-
try {
|
|
1014
|
-
t(n);
|
|
1015
|
-
} finally {
|
|
1016
|
-
$t();
|
|
1017
|
-
}
|
|
1018
|
-
return n;
|
|
899
|
+
function he() {
|
|
900
|
+
return R.size;
|
|
1019
901
|
}
|
|
1020
|
-
function
|
|
902
|
+
function de() {
|
|
1021
903
|
return E.size;
|
|
1022
904
|
}
|
|
1023
|
-
function
|
|
1024
|
-
return
|
|
1025
|
-
}
|
|
1026
|
-
function Pn() {
|
|
1027
|
-
return U.size;
|
|
905
|
+
function ye() {
|
|
906
|
+
return C.size;
|
|
1028
907
|
}
|
|
1029
|
-
function
|
|
1030
|
-
|
|
908
|
+
function we() {
|
|
909
|
+
R.clear(), E.clear(), C.clear();
|
|
1031
910
|
}
|
|
1032
911
|
export {
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
$t as
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
St as createUuidsNormally,
|
|
1055
|
-
H as createUuidsUsing,
|
|
1056
|
-
zn as createUuidsUsingSequence,
|
|
1057
|
-
It as deduplicate,
|
|
1058
|
-
Ot as doesntContain,
|
|
1059
|
-
qt as doesntEndWith,
|
|
1060
|
-
Ln as doesntStartWith,
|
|
912
|
+
K as after,
|
|
913
|
+
pt as afterLast,
|
|
914
|
+
oe as apa,
|
|
915
|
+
X as before,
|
|
916
|
+
Y as beforeLast,
|
|
917
|
+
gt as between,
|
|
918
|
+
mt as betweenFirst,
|
|
919
|
+
ht as camel,
|
|
920
|
+
de as camelCacheSize,
|
|
921
|
+
dt as charAt,
|
|
922
|
+
wt as chopEnd,
|
|
923
|
+
yt as chopStart,
|
|
924
|
+
T as contains,
|
|
925
|
+
St as containsAll,
|
|
926
|
+
Ht as createRandomStringsNormally,
|
|
927
|
+
et as createRandomStringsUsing,
|
|
928
|
+
Bt as createRandomStringsUsingSequence,
|
|
929
|
+
At as deduplicate,
|
|
930
|
+
$t as doesntContain,
|
|
931
|
+
kt as doesntEndWith,
|
|
932
|
+
le as doesntStartWith,
|
|
1061
933
|
W as endsWith,
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
z as
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
Rt as
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
Tt as unwrap,
|
|
1122
|
-
B as uuid,
|
|
1123
|
-
Nn as uuid7,
|
|
1124
|
-
Fn as wordCount,
|
|
1125
|
-
Un as wordWrap,
|
|
1126
|
-
Bt as words,
|
|
1127
|
-
Wt as wrap
|
|
934
|
+
xt as excerpt,
|
|
935
|
+
bt as finish,
|
|
936
|
+
we as flushCache,
|
|
937
|
+
se as headline,
|
|
938
|
+
Et as is,
|
|
939
|
+
Ct as isAscii,
|
|
940
|
+
Ft as isJson,
|
|
941
|
+
It as isMatch,
|
|
942
|
+
_t as isUlid,
|
|
943
|
+
zt as isUrl,
|
|
944
|
+
Nt as kebab,
|
|
945
|
+
it as lcfirst,
|
|
946
|
+
F as length,
|
|
947
|
+
Ot as limit,
|
|
948
|
+
U as lower,
|
|
949
|
+
z as makePad,
|
|
950
|
+
Wt as mask,
|
|
951
|
+
Ut as match,
|
|
952
|
+
Pt as matchAll,
|
|
953
|
+
qt as numbers,
|
|
954
|
+
Gt as padBoth,
|
|
955
|
+
jt as padLeft,
|
|
956
|
+
Kt as padRight,
|
|
957
|
+
fe as pascal,
|
|
958
|
+
Zt as password,
|
|
959
|
+
Tt as pluralPascal,
|
|
960
|
+
v as pluralStudly,
|
|
961
|
+
Jt as position,
|
|
962
|
+
tt as random,
|
|
963
|
+
ee as remove,
|
|
964
|
+
Vt as repeat,
|
|
965
|
+
Xt as replace,
|
|
966
|
+
Dt as replaceArray,
|
|
967
|
+
vt as replaceEnd,
|
|
968
|
+
nt as replaceFirst,
|
|
969
|
+
rt as replaceLast,
|
|
970
|
+
te as replaceMatches,
|
|
971
|
+
Yt as replaceStart,
|
|
972
|
+
ne as reverse,
|
|
973
|
+
ie as slug,
|
|
974
|
+
ot as snake,
|
|
975
|
+
he as snakeCacheSize,
|
|
976
|
+
ce as squish,
|
|
977
|
+
re as start,
|
|
978
|
+
I as startsWith,
|
|
979
|
+
st as stripTags,
|
|
980
|
+
Z as studly,
|
|
981
|
+
ye as studlyCacheSize,
|
|
982
|
+
ae as swap,
|
|
983
|
+
ue as take,
|
|
984
|
+
Qt as toStringOr,
|
|
985
|
+
pe as ucfirst,
|
|
986
|
+
ct as ucsplit,
|
|
987
|
+
lt as ucwords,
|
|
988
|
+
Rt as unwrap,
|
|
989
|
+
ge as wordCount,
|
|
990
|
+
me as wordWrap,
|
|
991
|
+
Mt as words,
|
|
992
|
+
Lt as wrap
|
|
1128
993
|
};
|