xvai-loi 0.1.47 → 0.1.48
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/co.txt +1 -1
- package/package.json +1 -1
- package/xvai-loi.js +71 -7
package/co.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
xvaiLoi101118
|
package/package.json
CHANGED
package/xvai-loi.js
CHANGED
|
@@ -2174,7 +2174,8 @@ function safeKeepRanges(start, end, silences, words, shorten) {
|
|
|
2174
2174
|
tay = [];
|
|
2175
2175
|
}
|
|
2176
2176
|
for (const r of tay) {
|
|
2177
|
-
const
|
|
2177
|
+
const dem = Array.isArray(r.ids) ? 0 : 0.03;
|
|
2178
|
+
const a = Math.max(start, +r.t0 - dem), b = Math.min(end, +r.t1 + dem);
|
|
2178
2179
|
if (b - a >= 0.08) cuts.push({ t0: a, t1: b });
|
|
2179
2180
|
}
|
|
2180
2181
|
cuts.sort((x, y) => x.t0 - y.t0);
|
|
@@ -10150,7 +10151,7 @@ dangKy("cmAnh", (g, d, tuoi, W4, H2, _n, _s, dai2) => {
|
|
|
10150
10151
|
g.fillStyle = "rgba(0,0,0," + (0.22 * kc).toFixed(3) + ")";
|
|
10151
10152
|
g.fillRect(0, 0, W4, H2);
|
|
10152
10153
|
const k = eOut(tuoi / 0.28);
|
|
10153
|
-
const cxK = d.pip && _n ? 0.
|
|
10154
|
+
const cxK = d.pip && _n ? 0.7 * W4 : W4 / 2, wK = d.pip && _n ? 0.5 * W4 : 0.88 * W4;
|
|
10154
10155
|
chu2(g, d.chu, cxK, 0.6 * H2 + (1 - k) * 70 * H2 / 1920, 112 * H2 / 1920, d.do1 ? "do" : "kw", kep12(tuoi / 0.15) * kc, wK);
|
|
10155
10156
|
if (d.chu2) chu2(g, d.chu2, cxK, 0.6 * H2 + 125 * H2 / 1920 + (1 - k) * 70 * H2 / 1920, 96 * H2 / 1920, d.do2 ? "do" : "vang", kep12((tuoi - 0.35) / 0.15) * kc, wK);
|
|
10156
10157
|
}
|
|
@@ -11862,6 +11863,68 @@ function lapCuongMe(o) {
|
|
|
11862
11863
|
lanCuoi[ten2] = x.f;
|
|
11863
11864
|
nThem++;
|
|
11864
11865
|
}
|
|
11866
|
+
{
|
|
11867
|
+
const bd2 = (t) => boDau2(String(t || "").toLocaleLowerCase("vi"));
|
|
11868
|
+
const wt = W22.map((w) => bd2(w.t));
|
|
11869
|
+
let nB = 0;
|
|
11870
|
+
const ly = [];
|
|
11871
|
+
G4.__n4bLy = ly;
|
|
11872
|
+
for (const ten2 of chuaDung.filter((t) => t.indexOf("anh:") === 0)) {
|
|
11873
|
+
const cum3 = bd2(ten2.slice(4)).split(/[^a-z0-9]+/).filter(Boolean);
|
|
11874
|
+
if (cum3.length < 2) {
|
|
11875
|
+
ly.push([ten2, "cum<2"]);
|
|
11876
|
+
continue;
|
|
11877
|
+
}
|
|
11878
|
+
let k = -1;
|
|
11879
|
+
for (let i = 0; i + cum3.length <= wt.length; i++) if (cum3.every((c, j) => wt[i + j] === c)) {
|
|
11880
|
+
k = i;
|
|
11881
|
+
break;
|
|
11882
|
+
}
|
|
11883
|
+
if (k < 0) {
|
|
11884
|
+
ly.push([ten2, "khong thay cum", cum3.join(" ")]);
|
|
11885
|
+
continue;
|
|
11886
|
+
}
|
|
11887
|
+
const f2 = W22[k].f;
|
|
11888
|
+
if (f2 < 1.2) {
|
|
11889
|
+
ly.push([ten2, "f<1,2", f2]);
|
|
11890
|
+
continue;
|
|
11891
|
+
}
|
|
11892
|
+
const de2 = sp.filter((x) => x.f < f2 + 1.8 && x.f + x.d > f2 && x.bo !== "phong");
|
|
11893
|
+
if (de2.some((x) => x.khoa || x.hang || x.doc || ["card", "chia", "kinh", "anh", "toi"].indexOf(x.bo) >= 0)) {
|
|
11894
|
+
ly.push([ten2, "chan", f2, de2.map((x) => x.bo).join(",")]);
|
|
11895
|
+
continue;
|
|
11896
|
+
}
|
|
11897
|
+
const dd = de2.find((x) => x.bo === "depth" && (x.giant || x.chu) && Math.abs(x.f - f2) < 1.2);
|
|
11898
|
+
if (dd) {
|
|
11899
|
+
ghiL("doi", dd, "N4b: depth -> anh " + ten2);
|
|
11900
|
+
dd.bo = "anh";
|
|
11901
|
+
dd.ten = ten2;
|
|
11902
|
+
dd.chu = String(dd.giant || dd.chu || "").split(String.fromCharCode(10)).join(" ");
|
|
11903
|
+
dd.giant = "";
|
|
11904
|
+
} else {
|
|
11905
|
+
if (de2.some((x) => x.bo === "depth" && f2 - x.f < 1.2)) {
|
|
11906
|
+
ly.push([ten2, "depth sat", f2]);
|
|
11907
|
+
continue;
|
|
11908
|
+
}
|
|
11909
|
+
for (const x of de2) {
|
|
11910
|
+
if (f2 - x.f >= 1) x.d = +(f2 - x.f - 0.05).toFixed(2);
|
|
11911
|
+
else {
|
|
11912
|
+
const j = sp.indexOf(x);
|
|
11913
|
+
if (j >= 0 && !(x.giant || x.chu)) sp.splice(j, 1);
|
|
11914
|
+
}
|
|
11915
|
+
}
|
|
11916
|
+
if (!dat(+f2.toFixed(2), 1.8, { uuTien: UT.anh, bo: "anh", ten: ten2, chu: "", keu: "whoosh-nhanh", chuoi: 1 }, 0, 0.01)) {
|
|
11917
|
+
ly.push([ten2, "dat hong", f2]);
|
|
11918
|
+
continue;
|
|
11919
|
+
}
|
|
11920
|
+
ghiL("them", { bo: "anh", f: f2, d: 1.8 }, "N4b anh theo loi " + ten2);
|
|
11921
|
+
}
|
|
11922
|
+
lanCuoi[ten2] = f2;
|
|
11923
|
+
nThem++;
|
|
11924
|
+
nB++;
|
|
11925
|
+
}
|
|
11926
|
+
G4.__n4b = nB;
|
|
11927
|
+
}
|
|
11865
11928
|
G4.__chuoiTramThem = nThem;
|
|
11866
11929
|
ghiL("bo", { bo: "chuoi-tram" }, "chuoi tram: them " + nThem + " anh trong " + spans.length + " khoang trong");
|
|
11867
11930
|
sp.sort((p, q) => p.f - q.f);
|
|
@@ -11869,6 +11932,7 @@ function lapCuongMe(o) {
|
|
|
11869
11932
|
}
|
|
11870
11933
|
G4.__lichSp = sp.map((s, i) => ({ i, id: s.id, yChu: s.yChu, coChu: s.coChu, fx: s.fx, stX: s.stX, stY: s.stY, f: +s.f.toFixed(2), d: +s.d.toFixed(2), bo: s.bo, giant: s.giant || "", chu: s.chu || "", chu2: s.chu2 || "", st: s.st || "", ten: s.ten || "", tieu: s.tieu || "", khoa: s.khoa ? 1 : 0 }));
|
|
11871
11934
|
}
|
|
11935
|
+
const thanhO = (t) => N >= 2 && t >= f1 - 0.1 && t < hetMuc;
|
|
11872
11936
|
bc = "B7 phat the";
|
|
11873
11937
|
const stTr = { n: 0 }, keuTr = {};
|
|
11874
11938
|
let iH = 0;
|
|
@@ -11942,10 +12006,10 @@ function lapCuongMe(o) {
|
|
|
11942
12006
|
if (LG) {
|
|
11943
12007
|
napHinhLogo(LG.slug);
|
|
11944
12008
|
s.logoTo = LG;
|
|
11945
|
-
s.logoY = Math.max(0.12, (s.yChu ?? 0.2) - 0.105);
|
|
12009
|
+
s.logoY = Math.max(thanhO(s.f) ? 0.12 : 0.075, (s.yChu ?? 0.2) - 0.105);
|
|
11946
12010
|
}
|
|
11947
12011
|
}
|
|
11948
|
-
if (s.logoTo && !s.logoY && !s.anNguoi) s.logoY = 0.12;
|
|
12012
|
+
if (s.logoTo && !s.logoY && !s.anNguoi) s.logoY = thanhO(s.f) ? 0.12 : 0.1;
|
|
11949
12013
|
if (s.logoTo) the(a, bT, { loai: "cmSticker", logo: s.logoTo.slug, hex: s.logoTo.hex, x: 0.5, y: s.logoY ?? 0.34, r: s.logoY ? 0.05 : 0.13, tre: 0.12 });
|
|
11950
12014
|
{
|
|
11951
12015
|
const st = s.st === "none" ? "" : s.st || "";
|
|
@@ -12021,7 +12085,7 @@ function lapCuongMe(o) {
|
|
|
12021
12085
|
logo: L.slug,
|
|
12022
12086
|
hex: L.hex,
|
|
12023
12087
|
x: de2.length ? 0.88 : 0.5,
|
|
12024
|
-
y: de2.length ? 0.14 : yL,
|
|
12088
|
+
y: de2.length ? thanhO(a0) ? 0.14 : 0.075 : yL,
|
|
12025
12089
|
/* 10/10 cm59 77–79 s (máy soát nay thấy logo): góc phải y 0,075 đè số '5/6' thanh tiến độ (0,058–0,086) → 0,14 */
|
|
12026
12090
|
r: de2.length ? 0.05 : 0.085,
|
|
12027
12091
|
tre: 0
|
|
@@ -19467,7 +19531,7 @@ function datCauLenh(a) {
|
|
|
19467
19531
|
on2 = true;
|
|
19468
19532
|
window.addEventListener("message", async (ev) => {
|
|
19469
19533
|
const d = ev.data;
|
|
19470
|
-
if (!d || d.
|
|
19534
|
+
if (!d || d.xvaiLoi101118 !== true) return;
|
|
19471
19535
|
const o = String(ev.origin || "");
|
|
19472
19536
|
if (!(o.indexOf("https://flow.google.com") === 0 || o.indexOf("https://labs.google") === 0)) return;
|
|
19473
19537
|
const tra = (kq) => {
|
|
@@ -20153,7 +20217,7 @@ var SuaLich = ({ ten, onDong }) => {
|
|
|
20153
20217
|
};
|
|
20154
20218
|
|
|
20155
20219
|
// loi/vo-flow.tsx
|
|
20156
|
-
var PHIEN_BAN = "loi-
|
|
20220
|
+
var PHIEN_BAN = "loi-1010BA";
|
|
20157
20221
|
var TRONG = () => migrateProject({ id: crypto.randomUUID(), name: "D\u1EF1 \xE1n m\u1EDBi", scenes: [], timeline: [], images: [null, null, null] });
|
|
20158
20222
|
var nut4 = "px-3 py-1.5 rounded-lg border border-[#2C4A73] text-[11px] font-bold text-[#A2B2C9] hover:text-[#F6D178] hover:border-[#F6D178]/60";
|
|
20159
20223
|
var Vo = () => {
|