buzzcasting-utils 1.3.7 → 1.3.8
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.
|
@@ -219,9 +219,9 @@ const se = (e) => {
|
|
|
219
219
|
let t = {}, r = e.split(",");
|
|
220
220
|
for (let n = 0; n < r.length; n++) t[r[n]] = !0;
|
|
221
221
|
return t;
|
|
222
|
-
}, R = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, E = /^<\/([-A-Za-z0-9_]+)[^>]*>/, M = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,
|
|
222
|
+
}, R = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, E = /^<\/([-A-Za-z0-9_]+)[^>]*>/, M = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, C = g(
|
|
223
223
|
"area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"
|
|
224
|
-
),
|
|
224
|
+
), S = g(
|
|
225
225
|
"a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"
|
|
226
226
|
), U = g(
|
|
227
227
|
"abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"
|
|
@@ -264,10 +264,10 @@ const se = (e) => {
|
|
|
264
264
|
}
|
|
265
265
|
i();
|
|
266
266
|
function u(c, s, d, p) {
|
|
267
|
-
if (s = s.toLowerCase(),
|
|
267
|
+
if (s = s.toLowerCase(), S[s])
|
|
268
268
|
for (; a.at(-1) && U[a.at(-1)]; )
|
|
269
269
|
i("", a.at(-1));
|
|
270
|
-
if (T[s] && a.at(-1) == s && i("", s), p =
|
|
270
|
+
if (T[s] && a.at(-1) == s && i("", s), p = C[s] || !!p, p || a.push(s), t.start) {
|
|
271
271
|
const w = [];
|
|
272
272
|
d.replace(M, function(j, A) {
|
|
273
273
|
let O = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : B[A] ? A : "";
|
|
@@ -378,8 +378,7 @@ const ce = (e) => {
|
|
|
378
378
|
if (e.node === "root")
|
|
379
379
|
return r;
|
|
380
380
|
}, de = (e, t = 0, r = !0, n = "en") => {
|
|
381
|
-
if (
|
|
382
|
-
if (r === !1)
|
|
381
|
+
if (e = Number.isNaN(e) ? e : parseFloat(e.replace(/[^0-9.]/g, "")), r === !1)
|
|
383
382
|
return e.toLocaleString(n);
|
|
384
383
|
if (e < 1e3)
|
|
385
384
|
return e = e.toString().replace(/[^0-9.]/g, "");
|