xvai-loi 0.1.53 → 0.1.54

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.
Files changed (3) hide show
  1. package/co.txt +1 -1
  2. package/package.json +1 -1
  3. package/xvai-loi.js +7 -3
package/co.txt CHANGED
@@ -1 +1 @@
1
- xvaiLoi110740
1
+ xvaiLoi110800
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xvai-loi",
3
- "version": "0.1.53",
3
+ "version": "0.1.54",
4
4
  "description": "Loi dung video (Edit Video Tu Dong) nap vao tool Google Flow qua o cam engine/oCam.ts",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
package/xvai-loi.js CHANGED
@@ -11158,7 +11158,7 @@ napLogo();
11158
11158
  var DAU_MUC = /^(đầu tiên|thứ nhất|thứ (hai|ba|tư|năm|sáu|bảy|tám|\d+)|tiếp theo|kế tiếp|tiếp nữa|cuối cùng|và cuối cùng|số (một|hai|ba|\d+)|công cụ (thứ|số)|skill (thứ|số))/;
11159
11159
  var HU3 = " mu\u1ED1n bi\u1EBFt c\u1EE9 l\xE0 c\xF3 th\xEC m\xE0 v\xE0 c\u1EE7a nh\u1EEFng c\xE1c m\u1ED9t c\xE1i \u0111\xE3 \u0111ang s\u1EBD r\u1EA5t c\u0169ng nh\u01B0ng n\xE0y n\xF3 anh em m\xECnh b\u1EA1n cho v\u1EDBi \u0111\u1EC3 \u0111\u01B0\u1EE3c kh\xF4ng th\u1EC3 ra v\xE0o ";
11160
11160
  var VIET = /^(AI|OK|An|Anh|Em|Con|Cho|Hay|Khi|Nhung|Minh|Ta|Toi|Ai|Thi|Theo|Thanh|Cung|Chi|Chinh|Nhanh|Sau|Lam|Ban|Muon|Tim|Xem|Video|Hello|Hi|Nha|Ok|Ha|Hoa|Tin|Tai|Lan|Ngon|Ngay)$/;
11161
- var sach2 = (s) => String(s || "").replace(/[.,!?;:…"“”()]/g, "").trim();
11161
+ var sach2 = (s) => String(s || "").replace(/(\d)\.(\d)/g, "$1\xA7$2").replace(/(\d),(\d)/g, "$1\xA4$2").replace(/[.,!?;:…"“”()]/g, "").replace(/§/g, ".").replace(/¤/g, ",").trim();
11162
11162
  var hoa3 = (s) => s.toLocaleUpperCase("vi");
11163
11163
  function tenRieng(ws) {
11164
11164
  let best = "", cur = [];
@@ -13257,7 +13257,11 @@ function veTrangTu(g, c, T, W4, H2, nen2, mo4) {
13257
13257
  if (coPip) vat.push([O2.b[0] - e, O2.b[1] - e, O2.b[2] + e, O2.b[3] + e, 3]);
13258
13258
  if (D && D[3] > D[1]) {
13259
13259
  const hh = D[3] - D[1];
13260
- vat.push([D[0] * W4, (D[1] + 0.3 * hh) * H2, D[2] * W4, (D[1] + 0.92 * hh) * H2, 3], [D[0] * W4, D[1] * H2, D[2] * W4, D[3] * H2, 1]);
13260
+ vat.push(
13261
+ [D[0] * W4, (D[1] + 0.3 * hh) * H2, D[2] * W4, (D[3] + 0.025) * H2, 3],
13262
+ /* mổ T2 lô 2: phụ đề còn chạm mép cằm → né tới hết cằm + 2,5 % */
13263
+ [D[0] * W4, D[1] * H2, D[2] * W4, D[3] * H2, 1]
13264
+ );
13261
13265
  }
13262
13266
  const phat = (y0) => vat.reduce((t, b) => t + b[4] * Math.max(0, Math.min(S[2], b[2]) - Math.max(S[0], b[0])) * Math.max(0, Math.min(S[3] + y0, b[3]) - Math.max(S[1] + y0, b[1])), 0);
13263
13267
  if (phat(0) > 0) {
@@ -20465,7 +20469,7 @@ function datCauLenh(a) {
20465
20469
  on2 = true;
20466
20470
  window.addEventListener("message", async (ev) => {
20467
20471
  const d = ev.data;
20468
- if (!d || d.xvaiLoi110740 !== true) return;
20472
+ if (!d || d.xvaiLoi110800 !== true) return;
20469
20473
  const o = String(ev.origin || "");
20470
20474
  if (!(o.indexOf("https://flow.google.com") === 0 || o.indexOf("https://labs.google") === 0)) return;
20471
20475
  const tra = (kq) => {