@das-fed/upf-utils 6.4.0-dev.236 → 6.4.0-dev.237
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/api-services/es5.js +1853 -1929
- package/api-services/index.js +1439 -1507
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +2119 -2183
- package/api-services/modules/app-manage/index.js +1760 -1810
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +2189 -2265
- package/api-services/modules/authentication/index.js +1804 -1872
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +2119 -2183
- package/api-services/modules/bems/index.js +1757 -1807
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +2223 -2299
- package/api-services/modules/contract/index.js +1830 -1898
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +2119 -2183
- package/api-services/modules/duty-manage/index.js +1758 -1808
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +2316 -2380
- package/api-services/modules/enterpriseright/index.js +1927 -1977
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +2042 -2128
- package/api-services/modules/file/es5.js +1796 -1872
- package/api-services/modules/file/index.js +1390 -1458
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +2274 -2359
- package/api-services/modules/gateway-edge/index.js +1889 -1971
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1539 -1621
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +2133 -2197
- package/api-services/modules/iot/index.js +1766 -1816
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +2020 -2093
- package/api-services/modules/justauth/index.js +1651 -1715
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +2119 -2183
- package/api-services/modules/knowledge/index.js +1760 -1810
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +2279 -2367
- package/api-services/modules/link/index.js +1891 -1977
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +2316 -2380
- package/api-services/modules/permission/index.js +1927 -1977
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +2130 -2194
- package/api-services/modules/platformManage/index.js +1764 -1814
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +2223 -2299
- package/api-services/modules/portal/index.js +1830 -1898
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +2223 -2299
- package/api-services/modules/space-manage/index.js +1830 -1898
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +2288 -2376
- package/api-services/modules/super-admin/index.js +1893 -1979
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +2322 -2386
- package/api-services/modules/supplier/index.js +1929 -1979
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +2223 -2297
- package/api-services/modules/supplychain-manage/index.js +1832 -1896
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +2220 -2298
- package/api-services/modules/systemConfiguration/index.js +1827 -1899
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +2316 -2380
- package/api-services/modules/tool/index.js +1927 -1977
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +2019 -2095
- package/api-services/src/create-service/index.js +1648 -1716
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +2226 -2289
- package/common-info/getPermissionMethod/es5.js +2109 -2184
- package/common-info/getPermissionMethod/index.d.ts +27 -1
- package/common-info/getPermissionMethod/index.js +1710 -1776
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +1796 -1844
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.js +997 -1073
- package/common-info/set-personal-info/index.js +827 -895
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-tools/extract-file-name/es5.js +998 -1074
- package/common-tools/extract-file-name/index.js +821 -889
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/handle-data/es5.js +1 -1
- package/common-tools/update-browser-title/es5.js +1 -1
- package/common-tools/update-fav-icon/es5.js +1 -1
- package/create-api-service/access-token-auto-refresh/es5.js +1 -1
- package/create-api-service/check-token/es5.js +1 -1
- package/create-api-service/es5.js +2278 -2366
- package/create-api-service/index.js +1890 -1976
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/es5.js +1166 -1242
- package/create-api-service/sso/index.js +938 -1006
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/token-refresh-shared/es5.js +1049 -1125
- package/create-api-service/token-refresh-shared/index.js +859 -927
- package/create-api-service/token-refresh-shared/index.js.gz +0 -0
- package/curring-http/es5.js +1366 -1442
- package/curring-http/index.js +1064 -1132
- package/curring-http/index.js.gz +0 -0
- package/directive/auth/es5.js +26 -25
- package/directive/auth/index.d.ts +1 -1
- package/directive/auth/index.js +24 -24
- package/directive/auth/index.js.gz +0 -0
- package/directive/clickOutside/es5.js +1 -1
- package/directive/hoverInside/es5.js +1 -1
- package/directive/utils/es5.js +1 -1
- package/hooks/use-get-auth/es5.js +1 -1
- package/package.json +3 -3
- package/pinyin-first-character/es5.js +45 -47
- package/pinyin-first-character/index.js +35 -37
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/es5.js +11 -11
- package/style/index.js +10 -10
- package/style/index.js.gz +0 -0
|
@@ -18869,7 +18869,7 @@ function sn(n, i, g) {
|
|
|
18869
18869
|
if (un.indexOf(n) === -1)
|
|
18870
18870
|
return e(n);
|
|
18871
18871
|
if (i === g && i && e(i) !== i)
|
|
18872
|
-
return
|
|
18872
|
+
return f(e(n));
|
|
18873
18873
|
if (g && !hn[n].includes(g)) {
|
|
18874
18874
|
const h = e(g);
|
|
18875
18875
|
if (h !== g) {
|
|
@@ -23491,7 +23491,7 @@ const a = {
|
|
|
23491
23491
|
length: 4,
|
|
23492
23492
|
priority: j.Normal,
|
|
23493
23493
|
dict: Symbol("dict4")
|
|
23494
|
-
})),
|
|
23494
|
+
})), _ = {
|
|
23495
23495
|
巴尔干半岛: "bā ěr gàn bàn dǎo",
|
|
23496
23496
|
巴尔喀什湖: "bā ěr kā shí hú",
|
|
23497
23497
|
不幸而言中: "bú xìng ér yán zhòng",
|
|
@@ -23507,15 +23507,15 @@ const a = {
|
|
|
23507
23507
|
亚得里亚海: "yà dé lǐ yà hǎi",
|
|
23508
23508
|
眼不见为净: "yǎn bú jiàn wéi jìng",
|
|
23509
23509
|
竹筒倒豆子: "zhú tǒng dào dòu zi"
|
|
23510
|
-
}, jn = Object.keys(
|
|
23510
|
+
}, jn = Object.keys(_).map((n) => ({
|
|
23511
23511
|
zh: n,
|
|
23512
|
-
pinyin:
|
|
23512
|
+
pinyin: _[n],
|
|
23513
23513
|
probability: 2e-8,
|
|
23514
23514
|
length: 5,
|
|
23515
23515
|
priority: j.Normal,
|
|
23516
23516
|
dict: Symbol("dict5")
|
|
23517
23517
|
}));
|
|
23518
|
-
function
|
|
23518
|
+
function v(n, i) {
|
|
23519
23519
|
return n && (n.decimal < i.decimal || n.decimal === i.decimal && n.probability > i.probability) ? n : i;
|
|
23520
23520
|
}
|
|
23521
23521
|
function E(n) {
|
|
@@ -23536,14 +23536,14 @@ function xn(n, i) {
|
|
|
23536
23536
|
patterns: z.patterns,
|
|
23537
23537
|
concatPattern: u
|
|
23538
23538
|
};
|
|
23539
|
-
E(y), g[l] =
|
|
23539
|
+
E(y), g[l] = v(g[l], y), u = n[--h];
|
|
23540
23540
|
}
|
|
23541
23541
|
const o = {
|
|
23542
23542
|
probability: 1e-13 * z.probability,
|
|
23543
23543
|
decimal: 0,
|
|
23544
23544
|
patterns: z.patterns
|
|
23545
23545
|
};
|
|
23546
|
-
E(o), g[s] =
|
|
23546
|
+
E(o), g[s] = v(g[s], o), g[s].concatPattern && (g[s].patterns = g[s].patterns.concat(g[s].concatPattern), g[s].concatPattern = void 0, delete g[s + 1]);
|
|
23547
23547
|
}
|
|
23548
23548
|
return g[0].patterns.reverse();
|
|
23549
23549
|
}
|
|
@@ -23597,7 +23597,7 @@ class $ {
|
|
|
23597
23597
|
this.children = /* @__PURE__ */ new Map(), this.fail = null, this.patterns = [], this.parent = i, this.prefix = g, this.key = h;
|
|
23598
23598
|
}
|
|
23599
23599
|
}
|
|
23600
|
-
class
|
|
23600
|
+
class qn {
|
|
23601
23601
|
constructor() {
|
|
23602
23602
|
this.dictMap = /* @__PURE__ */ new Map(), this.queues = [], this.root = new $(null);
|
|
23603
23603
|
}
|
|
@@ -23687,15 +23687,15 @@ class fn {
|
|
|
23687
23687
|
return h === 1 ? wn(u) : h === 3 ? en(u, d(i)) : xn(u, d(i));
|
|
23688
23688
|
}
|
|
23689
23689
|
}
|
|
23690
|
-
const
|
|
23690
|
+
const fn = [
|
|
23691
23691
|
...jn,
|
|
23692
23692
|
...tn,
|
|
23693
23693
|
...cn,
|
|
23694
23694
|
...ln,
|
|
23695
23695
|
...gn,
|
|
23696
23696
|
...yn
|
|
23697
|
-
], U = new
|
|
23698
|
-
U.build(
|
|
23697
|
+
], U = new qn();
|
|
23698
|
+
U.build(fn);
|
|
23699
23699
|
const mn = new F(), pn = () => mn, e = (n) => {
|
|
23700
23700
|
const i = x.get(n);
|
|
23701
23701
|
return i ? i.split(" ")[0] : n;
|
|
@@ -23723,9 +23723,9 @@ const mn = new F(), pn = () => mn, e = (n) => {
|
|
|
23723
23723
|
const b = w(l.zh);
|
|
23724
23724
|
i[o + t] = {
|
|
23725
23725
|
origin: b[t],
|
|
23726
|
-
result: y[c]
|
|
23726
|
+
result: y[c],
|
|
23727
23727
|
isZh: !0,
|
|
23728
|
-
originPinyin: y[c]
|
|
23728
|
+
originPinyin: y[c]
|
|
23729
23729
|
}, c++;
|
|
23730
23730
|
}
|
|
23731
23731
|
o += l.length, s++;
|
|
@@ -23741,7 +23741,7 @@ const mn = new F(), pn = () => mn, e = (n) => {
|
|
|
23741
23741
|
}
|
|
23742
23742
|
}
|
|
23743
23743
|
return { list: i, matches: u };
|
|
23744
|
-
},
|
|
23744
|
+
}, f = (n) => n.replace(/(ā|á|ǎ|à)/g, "a").replace(/(ō|ó|ǒ|ò)/g, "o").replace(/(ē|é|ě|è)/g, "e").replace(/(ī|í|ǐ|ì)/g, "i").replace(/(ū|ú|ǔ|ù)/g, "u").replace(/(ǖ|ǘ|ǚ|ǜ)/g, "ü").replace(/(n̄|ń|ň|ǹ)/g, "n").replace(/(m̄|ḿ|m̌|m̀)/g, "m").replace(/(ê̄|ế|ê̌|ề)/g, "ê"), W = (n, i = "off") => {
|
|
23745
23745
|
const g = pn();
|
|
23746
23746
|
let h = x.get(n) ? x.get(n).split(" ") : [];
|
|
23747
23747
|
if (g.get(n))
|
|
@@ -23766,33 +23766,31 @@ const mn = new F(), pn = () => mn, e = (n) => {
|
|
|
23766
23766
|
originPinyin: n
|
|
23767
23767
|
}
|
|
23768
23768
|
];
|
|
23769
|
-
},
|
|
23770
|
-
const
|
|
23771
|
-
for (let
|
|
23772
|
-
for (let
|
|
23773
|
-
if (
|
|
23774
|
-
let
|
|
23775
|
-
J.indexOf(
|
|
23769
|
+
}, q = (n) => {
|
|
23770
|
+
const i = n.split(" "), g = [], h = [];
|
|
23771
|
+
for (let u of i)
|
|
23772
|
+
for (let s of G)
|
|
23773
|
+
if (u.startsWith(s)) {
|
|
23774
|
+
let z = u.slice(s.length);
|
|
23775
|
+
J.indexOf(s) !== -1 && K.indexOf(z) !== -1 && (z = X[z]), g.push(s), h.push(z);
|
|
23776
23776
|
break;
|
|
23777
23777
|
}
|
|
23778
|
-
return
|
|
23779
|
-
(
|
|
23780
|
-
|
|
23781
|
-
final: u.join(" "),
|
|
23782
|
-
initial: h.join(" ")
|
|
23778
|
+
return {
|
|
23779
|
+
final: h.join(" "),
|
|
23780
|
+
initial: g.join(" ")
|
|
23783
23781
|
// 声母
|
|
23784
23782
|
};
|
|
23785
23783
|
}, r = (n) => {
|
|
23786
|
-
const { final: i } =
|
|
23784
|
+
const { final: i } = q(n);
|
|
23787
23785
|
let g = "", h = "", u = "";
|
|
23788
|
-
return Y.indexOf(
|
|
23786
|
+
return Y.indexOf(f(i)) !== -1 ? (g = i[0], h = i[1], u = i.slice(2)) : (h = i[0] || "", u = i.slice(1) || ""), { head: g, body: h, tail: u };
|
|
23789
23787
|
}, m = (n) => {
|
|
23790
23788
|
const i = /(ā|ō|ē|ī|ū|ǖ|n̄|m̄|ê̄)/, g = /(á|ó|é|í|ú|ǘ|ń|ḿ|ế)/, h = /(ǎ|ǒ|ě|ǐ|ǔ|ǚ|ň|m̌|ê̌)/, u = /(à|ò|è|ì|ù|ǜ|ǹ|m̀|ề)/, s = /(a|o|e|i|u|ü|ê)/, z = /(n|m)$/, o = [];
|
|
23791
23789
|
return n.split(" ").forEach((y) => {
|
|
23792
23790
|
i.test(y) ? o.push("1") : g.test(y) ? o.push("2") : h.test(y) ? o.push("3") : u.test(y) ? o.push("4") : s.test(y) || z.test(y) ? o.push("0") : o.push("");
|
|
23793
23791
|
}), o.join(" ");
|
|
23794
23792
|
}, Pn = (n, i) => {
|
|
23795
|
-
const g =
|
|
23793
|
+
const g = f(n).split(" "), h = m(i).split(" "), u = [];
|
|
23796
23794
|
return g.forEach((s, z) => {
|
|
23797
23795
|
u.push(`${s}${h[z]}`);
|
|
23798
23796
|
}), u.join(" ");
|
|
@@ -23828,12 +23826,12 @@ const Dn = (n, i) => {
|
|
|
23828
23826
|
break;
|
|
23829
23827
|
case "initial":
|
|
23830
23828
|
n.forEach((g) => {
|
|
23831
|
-
g.result = g.isZh ?
|
|
23829
|
+
g.result = g.isZh ? q(g.result).initial : "";
|
|
23832
23830
|
});
|
|
23833
23831
|
break;
|
|
23834
23832
|
case "final":
|
|
23835
23833
|
n.forEach((g) => {
|
|
23836
|
-
g.result = g.isZh ?
|
|
23834
|
+
g.result = g.isZh ? q(g.result).final : "";
|
|
23837
23835
|
});
|
|
23838
23836
|
break;
|
|
23839
23837
|
case "first":
|
|
@@ -23863,7 +23861,7 @@ const Dn = (n, i) => {
|
|
|
23863
23861
|
break;
|
|
23864
23862
|
case "none":
|
|
23865
23863
|
n.forEach((g) => {
|
|
23866
|
-
g.isZh && (g.result =
|
|
23864
|
+
g.isZh && (g.result = f(g.result));
|
|
23867
23865
|
});
|
|
23868
23866
|
break;
|
|
23869
23867
|
case "num": {
|
|
@@ -23875,7 +23873,7 @@ const Dn = (n, i) => {
|
|
|
23875
23873
|
}
|
|
23876
23874
|
}, Cn = (n, i) => {
|
|
23877
23875
|
i.v && n.forEach((g) => {
|
|
23878
|
-
g.isZh && (g.result = g.result.replace(/ü/g,
|
|
23876
|
+
g.isZh && (g.result = g.result.replace(/ü/g, "v"));
|
|
23879
23877
|
});
|
|
23880
23878
|
}, Mn = (n, i, g) => {
|
|
23881
23879
|
if (i.multiple && d(g) === 1) {
|
|
@@ -23886,7 +23884,7 @@ const Dn = (n, i) => {
|
|
|
23886
23884
|
});
|
|
23887
23885
|
}
|
|
23888
23886
|
return i.type === "array" ? n.map((h) => h.result) : i.type === "all" ? n.map((h) => {
|
|
23889
|
-
const u = h.isZh ? h.result : "", { initial: s, final: z } =
|
|
23887
|
+
const u = h.isZh ? h.result : "", { initial: s, final: z } = q(u), { head: o, body: l, tail: y } = r(u);
|
|
23890
23888
|
let c = [];
|
|
23891
23889
|
return u !== "" && (c = [u].concat(W(h.origin, i.surname).filter((t) => t !== u))), {
|
|
23892
23890
|
origin: h.origin,
|
|
@@ -23919,7 +23917,7 @@ const Dn = (n, i) => {
|
|
|
23919
23917
|
toneSandhi: !0,
|
|
23920
23918
|
segmentit: 2
|
|
23921
23919
|
};
|
|
23922
|
-
function
|
|
23920
|
+
function _n(n, i) {
|
|
23923
23921
|
if (i = Object.assign(Object.assign({}, Nn), i || {}), !Sn(n))
|
|
23924
23922
|
return n;
|
|
23925
23923
|
if (n === "")
|
|
@@ -23933,12 +23931,12 @@ var k;
|
|
|
23933
23931
|
n[n.AllSegment = 1] = "AllSegment", n[n.AllArray = 2] = "AllArray", n[n.AllString = 3] = "AllString", n[n.PinyinSegment = 4] = "PinyinSegment", n[n.PinyinArray = 5] = "PinyinArray", n[n.PinyinString = 6] = "PinyinString", n[n.ZhSegment = 7] = "ZhSegment", n[n.ZhArray = 8] = "ZhArray", n[n.ZhString = 9] = "ZhString";
|
|
23934
23932
|
})(k || (k = {}));
|
|
23935
23933
|
k.AllSegment;
|
|
23936
|
-
const
|
|
23934
|
+
const vn = (n) => _n(n, {
|
|
23937
23935
|
pattern: "first",
|
|
23938
23936
|
toneType: "none",
|
|
23939
23937
|
type: "string",
|
|
23940
23938
|
separator: ""
|
|
23941
23939
|
});
|
|
23942
23940
|
export {
|
|
23943
|
-
|
|
23941
|
+
vn as getPinyinFirstCharacter
|
|
23944
23942
|
};
|
|
Binary file
|
package/style/es5.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @vue/shared v3.5.
|
|
4
|
+
* @vue/shared v3.5.17
|
|
5
5
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
6
6
|
* @license MIT
|
|
7
7
|
**/
|
|
@@ -20,10 +20,10 @@ var u = function u(t) {
|
|
|
20
20
|
return e[r] || (e[r] = t(r));
|
|
21
21
|
};
|
|
22
22
|
},
|
|
23
|
-
m =
|
|
23
|
+
m = /-(\w)/g,
|
|
24
24
|
p = u(function (t) {
|
|
25
|
-
return t.replace(m, function (e) {
|
|
26
|
-
return
|
|
25
|
+
return t.replace(m, function (e, r) {
|
|
26
|
+
return r ? r.toUpperCase() : "";
|
|
27
27
|
});
|
|
28
28
|
}),
|
|
29
29
|
a = function a() {
|
|
@@ -108,24 +108,24 @@ var u = function u(t) {
|
|
|
108
108
|
l = function l(t) {
|
|
109
109
|
return Number(t.toString().replace("px", ""));
|
|
110
110
|
},
|
|
111
|
-
|
|
111
|
+
o = function o(t, e, r) {
|
|
112
112
|
e = l(e), r = l(r);
|
|
113
113
|
var n;
|
|
114
114
|
return t === "add" && (n = e + r), t === "subtract" && (n = e - r), t === "multiply" && (n = e * r), t === "divide" && (n = e / r), e = null, r = null, n;
|
|
115
115
|
},
|
|
116
|
-
|
|
116
|
+
_c = function c(t) {
|
|
117
117
|
return {
|
|
118
118
|
add: function add(e) {
|
|
119
|
-
return
|
|
119
|
+
return _c(o("add", t, e));
|
|
120
120
|
},
|
|
121
121
|
subtract: function subtract(e) {
|
|
122
|
-
return
|
|
122
|
+
return _c(o("subtract", t, e));
|
|
123
123
|
},
|
|
124
124
|
multiply: function multiply(e) {
|
|
125
|
-
return
|
|
125
|
+
return _c(o("multiply", t, e));
|
|
126
126
|
},
|
|
127
127
|
divide: function divide(e) {
|
|
128
|
-
return
|
|
128
|
+
return _c(o("divide", t, e));
|
|
129
129
|
},
|
|
130
130
|
res: function res() {
|
|
131
131
|
var e = t + "px";
|
|
@@ -135,7 +135,7 @@ var u = function u(t) {
|
|
|
135
135
|
};
|
|
136
136
|
exports.addClass = y;
|
|
137
137
|
exports.createStyle = E;
|
|
138
|
-
exports.curringMath =
|
|
138
|
+
exports.curringMath = _c;
|
|
139
139
|
exports.getCSS = d;
|
|
140
140
|
exports.getStyle = N;
|
|
141
141
|
exports.hasClass = h;
|
package/style/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.5.
|
|
2
|
+
* @vue/shared v3.5.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -8,8 +8,8 @@ process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
|
8
8
|
const u = (t) => {
|
|
9
9
|
const e = /* @__PURE__ */ Object.create(null);
|
|
10
10
|
return (r) => e[r] || (e[r] = t(r));
|
|
11
|
-
}, m =
|
|
12
|
-
(t) => t.replace(m, (e) =>
|
|
11
|
+
}, m = /-(\w)/g, p = u(
|
|
12
|
+
(t) => t.replace(m, (e, r) => r ? r.toUpperCase() : "")
|
|
13
13
|
), a = (t = "") => t.split(" ").filter((e) => !!e.trim()), h = (t, e) => {
|
|
14
14
|
if (!t || !e) return !1;
|
|
15
15
|
if (e.includes(" ")) throw new Error("className should not contain space.");
|
|
@@ -46,15 +46,15 @@ const u = (t) => {
|
|
|
46
46
|
for (const n of e)
|
|
47
47
|
r.appendChild(document.createTextNode(`${n.className}{${d(n.style)}}`));
|
|
48
48
|
}
|
|
49
|
-
}, l = (t) => Number(t.toString().replace("px", "")),
|
|
49
|
+
}, l = (t) => Number(t.toString().replace("px", "")), o = (t, e, r) => {
|
|
50
50
|
e = l(e), r = l(r);
|
|
51
51
|
let n;
|
|
52
52
|
return t === "add" && (n = e + r), t === "subtract" && (n = e - r), t === "multiply" && (n = e * r), t === "divide" && (n = e / r), e = null, r = null, n;
|
|
53
|
-
},
|
|
54
|
-
add: (e) => o(
|
|
55
|
-
subtract: (e) => o(
|
|
56
|
-
multiply: (e) => o(
|
|
57
|
-
divide: (e) => o(
|
|
53
|
+
}, c = (t) => ({
|
|
54
|
+
add: (e) => c(o("add", t, e)),
|
|
55
|
+
subtract: (e) => c(o("subtract", t, e)),
|
|
56
|
+
multiply: (e) => c(o("multiply", t, e)),
|
|
57
|
+
divide: (e) => c(o("divide", t, e)),
|
|
58
58
|
res: () => {
|
|
59
59
|
const e = t + "px";
|
|
60
60
|
return t = null, e;
|
|
@@ -63,7 +63,7 @@ const u = (t) => {
|
|
|
63
63
|
export {
|
|
64
64
|
y as addClass,
|
|
65
65
|
E as createStyle,
|
|
66
|
-
|
|
66
|
+
c as curringMath,
|
|
67
67
|
d as getCSS,
|
|
68
68
|
N as getStyle,
|
|
69
69
|
h as hasClass,
|
package/style/index.js.gz
CHANGED
|
Binary file
|