@opendesign-plus-test/components 0.0.1-rc.39 → 0.0.1-rc.41
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/components.cjs.js +20 -20
- package/dist/components.css +1 -1
- package/dist/components.es.js +744 -766
- package/package.json +3 -3
- package/src/components/activity/OActivityApproval.vue +2 -9
- package/src/components/activity/OActivityForm.vue +1 -8
- package/src/components/activity/OMyActivityCalendar.vue +0 -15
- package/src/components/meeting/OMeetingCalendar.vue +2 -2
package/dist/components.es.js
CHANGED
|
@@ -1870,10 +1870,6 @@ const C0 = { name: "meeting-icon-summit", render: w_ }, D_ = () => {
|
|
|
1870
1870
|
b.value = !0, g.value.is_publish = `${z}`, m.value && ((x = c.data) == null ? void 0 : x.status) === 3 ? (g.value.update_activity_id = (D = c.data) == null ? void 0 : D.id, await ((F = c.creatActivity) == null ? void 0 : F.call(c, g.value))) : m.value ? await ((N = c.editActivity) == null ? void 0 : N.call(c, (ie = c.data) == null ? void 0 : ie.id, g.value)) : await ((V = c.creatActivity) == null ? void 0 : V.call(c, g.value)), n.success({
|
|
1871
1871
|
content: a("meeting.activityActionSuccess", [g.value.title, O.toLowerCase()])
|
|
1872
1872
|
}), H(), i("confirm");
|
|
1873
|
-
} catch {
|
|
1874
|
-
b.value = !1, g.value.start_date = `${g.value.start_date} ${g.value.start}`, g.value.end_date = `${g.value.end_date} ${g.value.end}`, n.danger({
|
|
1875
|
-
content: a("meeting.activityActionFail", [g.value.title, O.toLowerCase()])
|
|
1876
|
-
});
|
|
1877
1873
|
} finally {
|
|
1878
1874
|
b.value = !1;
|
|
1879
1875
|
}
|
|
@@ -2292,7 +2288,7 @@ function W_(s) {
|
|
|
2292
2288
|
return Ql(s, t);
|
|
2293
2289
|
};
|
|
2294
2290
|
}
|
|
2295
|
-
function
|
|
2291
|
+
function nt(s, e, t) {
|
|
2296
2292
|
var i;
|
|
2297
2293
|
t = (i = t) !== null && i !== void 0 ? i : Fa, yd && yd(s, null);
|
|
2298
2294
|
for (var n = e.length; n--; ) {
|
|
@@ -2372,7 +2368,7 @@ function D0() {
|
|
|
2372
2368
|
}
|
|
2373
2369
|
var N = {};
|
|
2374
2370
|
e.isSupported = typeof P == "function" && O && O.createHTMLDocument !== void 0 && ie !== 9;
|
|
2375
|
-
var V = K_, $ = Q_, Y = Z_, j = J_, ee = ey, te = iy, ne = sy, se = ry, oe = ty, he = null, xe =
|
|
2371
|
+
var V = K_, $ = Q_, Y = Z_, j = J_, ee = ey, te = iy, ne = sy, se = ry, oe = ty, he = null, xe = nt({}, [].concat(ts(xd), ts(ol), ts(ll), ts(ul), ts(Sd))), _e = null, He = nt({}, [].concat(ts(Cd), ts(cl), ts(Ed), ts(Da))), Be = Object.seal(Object.create(null, {
|
|
2376
2372
|
tagNameCheck: {
|
|
2377
2373
|
writable: !0,
|
|
2378
2374
|
configurable: !1,
|
|
@@ -2391,29 +2387,29 @@ function D0() {
|
|
|
2391
2387
|
enumerable: !0,
|
|
2392
2388
|
value: !1
|
|
2393
2389
|
}
|
|
2394
|
-
})), qe = null, Ze = null, et = !0,
|
|
2390
|
+
})), qe = null, Ze = null, et = !0, lt = !0, ct = !1, ft = !0, rt = !1, at = !0, dt = !1, Vt = !1, Re = !1, Ye = !1, Te = !1, je = !1, ut = !0, Tt = !1, we = "user-content-", ue = !0, fe = !1, ye = {}, Se = null, Fe = nt({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), ht = null, kt = nt({}, ["audio", "video", "img", "source", "image", "track"]), it = null, Ai = nt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ei = "http://www.w3.org/1998/Math/MathML", ki = "http://www.w3.org/2000/svg", Yt = "http://www.w3.org/1999/xhtml", qt = Yt, Fi = !1, ni = null, ys = nt({}, [ei, ki, Yt], rl), ri, bs = ["application/xhtml+xml", "text/html"], C = "text/html", k, J = null, de = i.createElement("form"), Ce = function(re) {
|
|
2395
2391
|
return re instanceof RegExp || re instanceof Function;
|
|
2396
|
-
},
|
|
2392
|
+
}, ze = function(re) {
|
|
2397
2393
|
J && J === re || ((!re || js(re) !== "object") && (re = {}), re = en(re), ri = // eslint-disable-next-line unicorn/prefer-includes
|
|
2398
|
-
bs.indexOf(re.PARSER_MEDIA_TYPE) === -1 ? ri = C : ri = re.PARSER_MEDIA_TYPE, k = ri === "application/xhtml+xml" ? rl : Fa, he = "ALLOWED_TAGS" in re ?
|
|
2394
|
+
bs.indexOf(re.PARSER_MEDIA_TYPE) === -1 ? ri = C : ri = re.PARSER_MEDIA_TYPE, k = ri === "application/xhtml+xml" ? rl : Fa, he = "ALLOWED_TAGS" in re ? nt({}, re.ALLOWED_TAGS, k) : xe, _e = "ALLOWED_ATTR" in re ? nt({}, re.ALLOWED_ATTR, k) : He, ni = "ALLOWED_NAMESPACES" in re ? nt({}, re.ALLOWED_NAMESPACES, rl) : ys, it = "ADD_URI_SAFE_ATTR" in re ? nt(
|
|
2399
2395
|
en(Ai),
|
|
2400
2396
|
// eslint-disable-line indent
|
|
2401
2397
|
re.ADD_URI_SAFE_ATTR,
|
|
2402
2398
|
// eslint-disable-line indent
|
|
2403
2399
|
k
|
|
2404
2400
|
// eslint-disable-line indent
|
|
2405
|
-
) : Ai, ht = "ADD_DATA_URI_TAGS" in re ?
|
|
2401
|
+
) : Ai, ht = "ADD_DATA_URI_TAGS" in re ? nt(
|
|
2406
2402
|
en(kt),
|
|
2407
2403
|
// eslint-disable-line indent
|
|
2408
2404
|
re.ADD_DATA_URI_TAGS,
|
|
2409
2405
|
// eslint-disable-line indent
|
|
2410
2406
|
k
|
|
2411
2407
|
// eslint-disable-line indent
|
|
2412
|
-
) : kt, Se = "FORBID_CONTENTS" in re ?
|
|
2413
|
-
}, _t =
|
|
2414
|
-
|
|
2415
|
-
var ti =
|
|
2416
|
-
|
|
2408
|
+
) : kt, Se = "FORBID_CONTENTS" in re ? nt({}, re.FORBID_CONTENTS, k) : Fe, qe = "FORBID_TAGS" in re ? nt({}, re.FORBID_TAGS, k) : {}, Ze = "FORBID_ATTR" in re ? nt({}, re.FORBID_ATTR, k) : {}, ye = "USE_PROFILES" in re ? re.USE_PROFILES : !1, et = re.ALLOW_ARIA_ATTR !== !1, lt = re.ALLOW_DATA_ATTR !== !1, ct = re.ALLOW_UNKNOWN_PROTOCOLS || !1, ft = re.ALLOW_SELF_CLOSE_IN_ATTR !== !1, rt = re.SAFE_FOR_TEMPLATES || !1, at = re.SAFE_FOR_XML !== !1, dt = re.WHOLE_DOCUMENT || !1, Ye = re.RETURN_DOM || !1, Te = re.RETURN_DOM_FRAGMENT || !1, je = re.RETURN_TRUSTED_TYPE || !1, Re = re.FORCE_BODY || !1, ut = re.SANITIZE_DOM !== !1, Tt = re.SANITIZE_NAMED_PROPS || !1, ue = re.KEEP_CONTENT !== !1, fe = re.IN_PLACE || !1, oe = re.ALLOWED_URI_REGEXP || oe, qt = re.NAMESPACE || Yt, Be = re.CUSTOM_ELEMENT_HANDLING || {}, re.CUSTOM_ELEMENT_HANDLING && Ce(re.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Be.tagNameCheck = re.CUSTOM_ELEMENT_HANDLING.tagNameCheck), re.CUSTOM_ELEMENT_HANDLING && Ce(re.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Be.attributeNameCheck = re.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), re.CUSTOM_ELEMENT_HANDLING && typeof re.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Be.allowCustomizedBuiltInElements = re.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), rt && (lt = !1), Te && (Ye = !0), ye && (he = nt({}, ts(Sd)), _e = [], ye.html === !0 && (nt(he, xd), nt(_e, Cd)), ye.svg === !0 && (nt(he, ol), nt(_e, cl), nt(_e, Da)), ye.svgFilters === !0 && (nt(he, ll), nt(_e, cl), nt(_e, Da)), ye.mathMl === !0 && (nt(he, ul), nt(_e, Ed), nt(_e, Da))), re.ADD_TAGS && (he === xe && (he = en(he)), nt(he, re.ADD_TAGS, k)), re.ADD_ATTR && (_e === He && (_e = en(_e)), nt(_e, re.ADD_ATTR, k)), re.ADD_URI_SAFE_ATTR && nt(it, re.ADD_URI_SAFE_ATTR, k), re.FORBID_CONTENTS && (Se === Fe && (Se = en(Se)), nt(Se, re.FORBID_CONTENTS, k)), ue && (he["#text"] = !0), dt && nt(he, ["html", "head", "body"]), he.table && (nt(he, ["tbody"]), delete qe.tbody), bi && bi(re), J = re);
|
|
2409
|
+
}, _t = nt({}, ["mi", "mo", "mn", "ms", "mtext"]), Ht = nt({}, ["annotation-xml"]), di = nt({}, ["title", "style", "font", "a", "script"]), ai = nt({}, ol);
|
|
2410
|
+
nt(ai, ll), nt(ai, Y_);
|
|
2411
|
+
var ti = nt({}, ul);
|
|
2412
|
+
nt(ti, X_);
|
|
2417
2413
|
var Ti = function(re) {
|
|
2418
2414
|
var Ee = P(re);
|
|
2419
2415
|
(!Ee || !Ee.tagName) && (Ee = {
|
|
@@ -2447,8 +2443,8 @@ function D0() {
|
|
|
2447
2443
|
from: Ee
|
|
2448
2444
|
});
|
|
2449
2445
|
}
|
|
2450
|
-
if (Ee.removeAttribute(re), re === "is" && !
|
|
2451
|
-
if (
|
|
2446
|
+
if (Ee.removeAttribute(re), re === "is" && !_e[re])
|
|
2447
|
+
if (Ye || Te)
|
|
2452
2448
|
try {
|
|
2453
2449
|
pt(Ee);
|
|
2454
2450
|
} catch {
|
|
@@ -2495,22 +2491,22 @@ function D0() {
|
|
|
2495
2491
|
return re instanceof g && (typeof re.nodeName != "string" || typeof re.textContent != "string" || typeof re.removeChild != "function" || !(re.attributes instanceof m) || typeof re.removeAttribute != "function" || typeof re.setAttribute != "function" || typeof re.namespaceURI != "string" || typeof re.insertBefore != "function" || typeof re.hasChildNodes != "function");
|
|
2496
2492
|
}, wt = function(re) {
|
|
2497
2493
|
return js(a) === "object" ? re instanceof a : re && js(re) === "object" && typeof re.nodeType == "number" && typeof re.nodeName == "string";
|
|
2498
|
-
},
|
|
2494
|
+
}, st = function(re, Ee, Me) {
|
|
2499
2495
|
N[re] && H_(N[re], function(gt) {
|
|
2500
2496
|
gt.call(e, Ee, Me, J);
|
|
2501
2497
|
});
|
|
2502
2498
|
}, Xi = function(re) {
|
|
2503
2499
|
var Ee;
|
|
2504
|
-
if (
|
|
2500
|
+
if (st("beforeSanitizeElements", re, null), zt(re) || ii(/[\u0080-\uFFFF]/, re.nodeName))
|
|
2505
2501
|
return pt(re), !0;
|
|
2506
2502
|
var Me = k(re.nodeName);
|
|
2507
|
-
if (
|
|
2503
|
+
if (st("uponSanitizeElement", re, {
|
|
2508
2504
|
tagName: Me,
|
|
2509
2505
|
allowedTags: he
|
|
2510
|
-
}), re.hasChildNodes() && !wt(re.firstElementChild) && (!wt(re.content) || !wt(re.content.firstElementChild)) && ii(/<[/\w]/g, re.innerHTML) && ii(/<[/\w]/g, re.textContent) || Me === "select" && ii(/<template/i, re.innerHTML) || re.nodeType === 7 ||
|
|
2506
|
+
}), re.hasChildNodes() && !wt(re.firstElementChild) && (!wt(re.content) || !wt(re.content.firstElementChild)) && ii(/<[/\w]/g, re.innerHTML) && ii(/<[/\w]/g, re.textContent) || Me === "select" && ii(/<template/i, re.innerHTML) || re.nodeType === 7 || at && re.nodeType === 8 && ii(/<[/\w]/g, re.data))
|
|
2511
2507
|
return pt(re), !0;
|
|
2512
2508
|
if (!he[Me] || qe[Me]) {
|
|
2513
|
-
if (!qe[Me] && Qs(Me) && (
|
|
2509
|
+
if (!qe[Me] && Qs(Me) && (Be.tagNameCheck instanceof RegExp && ii(Be.tagNameCheck, Me) || Be.tagNameCheck instanceof Function && Be.tagNameCheck(Me)))
|
|
2514
2510
|
return !1;
|
|
2515
2511
|
if (ue && !Se[Me]) {
|
|
2516
2512
|
var gt = P(re) || re.parentNode, oi = R(re) || re.childNodes;
|
|
@@ -2522,24 +2518,24 @@ function D0() {
|
|
|
2522
2518
|
}
|
|
2523
2519
|
return pt(re), !0;
|
|
2524
2520
|
}
|
|
2525
|
-
return re instanceof o && !Ti(re) || (Me === "noscript" || Me === "noembed" || Me === "noframes") && ii(/<\/no(script|embed|frames)/i, re.innerHTML) ? (pt(re), !0) : (
|
|
2521
|
+
return re instanceof o && !Ti(re) || (Me === "noscript" || Me === "noembed" || Me === "noframes") && ii(/<\/no(script|embed|frames)/i, re.innerHTML) ? (pt(re), !0) : (rt && re.nodeType === 3 && (Ee = re.textContent, Ee = es(Ee, V, " "), Ee = es(Ee, $, " "), Ee = es(Ee, Y, " "), re.textContent !== Ee && (Sr(e.removed, {
|
|
2526
2522
|
element: re.cloneNode()
|
|
2527
|
-
}), re.textContent = Ee)),
|
|
2523
|
+
}), re.textContent = Ee)), st("afterSanitizeElements", re, null), !1);
|
|
2528
2524
|
}, as = function(re, Ee, Me) {
|
|
2529
|
-
if (
|
|
2525
|
+
if (ut && (Ee === "id" || Ee === "name") && (Me in i || Me in de))
|
|
2530
2526
|
return !1;
|
|
2531
|
-
if (!(
|
|
2527
|
+
if (!(lt && !Ze[Ee] && ii(j, Ee))) {
|
|
2532
2528
|
if (!(et && ii(ee, Ee))) {
|
|
2533
|
-
if (!
|
|
2529
|
+
if (!_e[Ee] || Ze[Ee]) {
|
|
2534
2530
|
if (
|
|
2535
2531
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2536
2532
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2537
2533
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2538
|
-
!(Qs(re) && (
|
|
2534
|
+
!(Qs(re) && (Be.tagNameCheck instanceof RegExp && ii(Be.tagNameCheck, re) || Be.tagNameCheck instanceof Function && Be.tagNameCheck(re)) && (Be.attributeNameCheck instanceof RegExp && ii(Be.attributeNameCheck, Ee) || Be.attributeNameCheck instanceof Function && Be.attributeNameCheck(Ee)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
2539
2535
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2540
|
-
Ee === "is" &&
|
|
2536
|
+
Ee === "is" && Be.allowCustomizedBuiltInElements && (Be.tagNameCheck instanceof RegExp && ii(Be.tagNameCheck, Me) || Be.tagNameCheck instanceof Function && Be.tagNameCheck(Me)))
|
|
2541
2537
|
) return !1;
|
|
2542
|
-
} else if (!
|
|
2538
|
+
} else if (!it[Ee]) {
|
|
2543
2539
|
if (!ii(oe, es(Me, ne, ""))) {
|
|
2544
2540
|
if (!((Ee === "src" || Ee === "xlink:href" || Ee === "href") && re !== "script" && z_(Me, "data:") === 0 && ht[re])) {
|
|
2545
2541
|
if (!(ct && !ii(te, es(Me, ne, "")))) {
|
|
@@ -2556,27 +2552,27 @@ function D0() {
|
|
|
2556
2552
|
return re !== "annotation-xml" && Td(re, se);
|
|
2557
2553
|
}, na = function(re) {
|
|
2558
2554
|
var Ee, Me, gt, oi;
|
|
2559
|
-
|
|
2555
|
+
st("beforeSanitizeAttributes", re, null);
|
|
2560
2556
|
var Gt = re.attributes;
|
|
2561
2557
|
if (!(!Gt || zt(re))) {
|
|
2562
2558
|
var Ft = {
|
|
2563
2559
|
attrName: "",
|
|
2564
2560
|
attrValue: "",
|
|
2565
2561
|
keepAttr: !0,
|
|
2566
|
-
allowedAttributes:
|
|
2562
|
+
allowedAttributes: _e
|
|
2567
2563
|
};
|
|
2568
2564
|
for (oi = Gt.length; oi--; ) {
|
|
2569
2565
|
Ee = Gt[oi];
|
|
2570
2566
|
var Ki = Ee, Nt = Ki.name, rr = Ki.namespaceURI;
|
|
2571
|
-
if (Me = Nt === "value" ? Ee.value : G_(Ee.value), gt = k(Nt), Ft.attrName = gt, Ft.attrValue = Me, Ft.keepAttr = !0, Ft.forceKeepAttr = void 0,
|
|
2567
|
+
if (Me = Nt === "value" ? Ee.value : G_(Ee.value), gt = k(Nt), Ft.attrName = gt, Ft.attrValue = Me, Ft.keepAttr = !0, Ft.forceKeepAttr = void 0, st("uponSanitizeAttribute", re, Ft), Me = Ft.attrValue, !Ft.forceKeepAttr && (xi(Nt, re), !!Ft.keepAttr)) {
|
|
2572
2568
|
if (!ft && ii(/\/>/i, Me)) {
|
|
2573
2569
|
xi(Nt, re);
|
|
2574
2570
|
continue;
|
|
2575
2571
|
}
|
|
2576
|
-
|
|
2572
|
+
rt && (Me = es(Me, V, " "), Me = es(Me, $, " "), Me = es(Me, Y, " "));
|
|
2577
2573
|
var ra = k(re.nodeName);
|
|
2578
2574
|
if (as(ra, gt, Me)) {
|
|
2579
|
-
if (Tt && (gt === "id" || gt === "name") && (xi(Nt, re), Me = we + Me),
|
|
2575
|
+
if (Tt && (gt === "id" || gt === "name") && (xi(Nt, re), Me = we + Me), at && ii(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Me)) {
|
|
2580
2576
|
xi(Nt, re);
|
|
2581
2577
|
continue;
|
|
2582
2578
|
}
|
|
@@ -2598,13 +2594,13 @@ function D0() {
|
|
|
2598
2594
|
}
|
|
2599
2595
|
}
|
|
2600
2596
|
}
|
|
2601
|
-
|
|
2597
|
+
st("afterSanitizeAttributes", re, null);
|
|
2602
2598
|
}
|
|
2603
2599
|
}, Ts = function Oe(re) {
|
|
2604
2600
|
var Ee, Me = fi(re);
|
|
2605
|
-
for (
|
|
2606
|
-
|
|
2607
|
-
|
|
2601
|
+
for (st("beforeSanitizeShadowDOM", re, null); Ee = Me.nextNode(); )
|
|
2602
|
+
st("uponSanitizeShadowNode", Ee, null), Xi(Ee), na(Ee), Ee.content instanceof n && Oe(Ee.content);
|
|
2603
|
+
st("afterSanitizeShadowDOM", re, null);
|
|
2608
2604
|
};
|
|
2609
2605
|
return e.sanitize = function(Oe) {
|
|
2610
2606
|
var re = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Ee, Me, gt, oi, Gt;
|
|
@@ -2623,7 +2619,7 @@ function D0() {
|
|
|
2623
2619
|
}
|
|
2624
2620
|
return Oe;
|
|
2625
2621
|
}
|
|
2626
|
-
if (Vt ||
|
|
2622
|
+
if (Vt || ze(re), e.removed = [], typeof Oe == "string" && (fe = !1), fe) {
|
|
2627
2623
|
if (Oe.nodeName) {
|
|
2628
2624
|
var Ft = k(Oe.nodeName);
|
|
2629
2625
|
if (!he[Ft] || qe[Ft])
|
|
@@ -2632,34 +2628,34 @@ function D0() {
|
|
|
2632
2628
|
} else if (Oe instanceof a)
|
|
2633
2629
|
Ee = hi("<!---->"), Me = Ee.ownerDocument.importNode(Oe, !0), Me.nodeType === 1 && Me.nodeName === "BODY" || Me.nodeName === "HTML" ? Ee = Me : Ee.appendChild(Me);
|
|
2634
2630
|
else {
|
|
2635
|
-
if (!
|
|
2631
|
+
if (!Ye && !rt && !dt && // eslint-disable-next-line unicorn/prefer-includes
|
|
2636
2632
|
Oe.indexOf("<") === -1)
|
|
2637
2633
|
return G && je ? G.createHTML(Oe) : Oe;
|
|
2638
2634
|
if (Ee = hi(Oe), !Ee)
|
|
2639
|
-
return
|
|
2635
|
+
return Ye ? null : je ? H : "";
|
|
2640
2636
|
}
|
|
2641
2637
|
Ee && Re && pt(Ee.firstChild);
|
|
2642
2638
|
for (var Ki = fi(fe ? Oe : Ee); gt = Ki.nextNode(); )
|
|
2643
2639
|
gt.nodeType === 3 && gt === oi || (Xi(gt), na(gt), gt.content instanceof n && Ts(gt.content), oi = gt);
|
|
2644
2640
|
if (oi = null, fe)
|
|
2645
2641
|
return Oe;
|
|
2646
|
-
if (
|
|
2647
|
-
if (
|
|
2642
|
+
if (Ye) {
|
|
2643
|
+
if (Te)
|
|
2648
2644
|
for (Gt = x.call(Ee.ownerDocument); Ee.firstChild; )
|
|
2649
2645
|
Gt.appendChild(Ee.firstChild);
|
|
2650
2646
|
else
|
|
2651
2647
|
Gt = Ee;
|
|
2652
|
-
return (
|
|
2648
|
+
return (_e.shadowroot || _e.shadowrootmod) && (Gt = F.call(t, Gt, !0)), Gt;
|
|
2653
2649
|
}
|
|
2654
2650
|
var Nt = dt ? Ee.outerHTML : Ee.innerHTML;
|
|
2655
2651
|
return dt && he["!doctype"] && Ee.ownerDocument && Ee.ownerDocument.doctype && Ee.ownerDocument.doctype.name && ii(ny, Ee.ownerDocument.doctype.name) && (Nt = "<!DOCTYPE " + Ee.ownerDocument.doctype.name + `>
|
|
2656
|
-
` + Nt),
|
|
2652
|
+
` + Nt), rt && (Nt = es(Nt, V, " "), Nt = es(Nt, $, " "), Nt = es(Nt, Y, " ")), G && je ? G.createHTML(Nt) : Nt;
|
|
2657
2653
|
}, e.setConfig = function(Oe) {
|
|
2658
|
-
|
|
2654
|
+
ze(Oe), Vt = !0;
|
|
2659
2655
|
}, e.clearConfig = function() {
|
|
2660
2656
|
J = null, Vt = !1;
|
|
2661
2657
|
}, e.isValidAttribute = function(Oe, re, Ee) {
|
|
2662
|
-
J ||
|
|
2658
|
+
J || ze({});
|
|
2663
2659
|
var Me = k(Oe), gt = k(re);
|
|
2664
2660
|
return as(Me, gt, Ee);
|
|
2665
2661
|
}, e.addHook = function(Oe, re) {
|
|
@@ -3092,19 +3088,19 @@ function Ty() {
|
|
|
3092
3088
|
return this.$d.getTime();
|
|
3093
3089
|
}, $.startOf = function(Y, j) {
|
|
3094
3090
|
var ee = this, te = !!F.u(j) || j, ne = F.p(Y), se = function(Ze, et) {
|
|
3095
|
-
var
|
|
3096
|
-
return te ?
|
|
3091
|
+
var lt = F.w(ee.$u ? Date.UTC(ee.$y, et, Ze) : new Date(ee.$y, et, Ze), ee);
|
|
3092
|
+
return te ? lt : lt.endOf(c);
|
|
3097
3093
|
}, oe = function(Ze, et) {
|
|
3098
3094
|
return F.w(ee.toDate()[Ze].apply(ee.toDate("s"), (te ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(et)), ee);
|
|
3099
|
-
}, he = this.$W, xe = this.$M,
|
|
3095
|
+
}, he = this.$W, xe = this.$M, _e = this.$D, He = "set" + (this.$u ? "UTC" : "");
|
|
3100
3096
|
switch (ne) {
|
|
3101
3097
|
case b:
|
|
3102
3098
|
return te ? se(1, 0) : se(31, 11);
|
|
3103
3099
|
case g:
|
|
3104
3100
|
return te ? se(1, xe) : se(0, xe + 1);
|
|
3105
3101
|
case m:
|
|
3106
|
-
var
|
|
3107
|
-
return se(te ?
|
|
3102
|
+
var Be = this.$locale().weekStart || 0, qe = (he < Be ? he + 7 : he) - Be;
|
|
3103
|
+
return se(te ? _e - qe : _e + (6 - qe), xe);
|
|
3108
3104
|
case c:
|
|
3109
3105
|
case S:
|
|
3110
3106
|
return oe(He + "Hours", 0);
|
|
@@ -3134,8 +3130,8 @@ function Ty() {
|
|
|
3134
3130
|
var ee, te = this;
|
|
3135
3131
|
Y = Number(Y);
|
|
3136
3132
|
var ne = F.p(j), se = function(xe) {
|
|
3137
|
-
var
|
|
3138
|
-
return F.w(
|
|
3133
|
+
var _e = D(te);
|
|
3134
|
+
return F.w(_e.date(_e.date() + Math.round(xe * Y)), te);
|
|
3139
3135
|
};
|
|
3140
3136
|
if (ne === g) return this.set(g, this.$M + Y);
|
|
3141
3137
|
if (ne === b) return this.set(b, this.$y + Y);
|
|
@@ -3148,16 +3144,16 @@ function Ty() {
|
|
|
3148
3144
|
}, $.format = function(Y) {
|
|
3149
3145
|
var j = this, ee = this.$locale();
|
|
3150
3146
|
if (!this.isValid()) return ee.invalidDate || _;
|
|
3151
|
-
var te = Y || "YYYY-MM-DDTHH:mm:ssZ", ne = F.z(this), se = this.$H, oe = this.$m, he = this.$M, xe = ee.weekdays,
|
|
3152
|
-
return et && (et[
|
|
3147
|
+
var te = Y || "YYYY-MM-DDTHH:mm:ssZ", ne = F.z(this), se = this.$H, oe = this.$m, he = this.$M, xe = ee.weekdays, _e = ee.months, He = ee.meridiem, Be = function(et, lt, ct, ft) {
|
|
3148
|
+
return et && (et[lt] || et(j, te)) || ct[lt].slice(0, ft);
|
|
3153
3149
|
}, qe = function(et) {
|
|
3154
3150
|
return F.s(se % 12 || 12, et, "0");
|
|
3155
|
-
}, Ze = He || function(et,
|
|
3151
|
+
}, Ze = He || function(et, lt, ct) {
|
|
3156
3152
|
var ft = et < 12 ? "AM" : "PM";
|
|
3157
3153
|
return ct ? ft.toLowerCase() : ft;
|
|
3158
3154
|
};
|
|
3159
|
-
return te.replace(R, (function(et,
|
|
3160
|
-
return
|
|
3155
|
+
return te.replace(R, (function(et, lt) {
|
|
3156
|
+
return lt || (function(ct) {
|
|
3161
3157
|
switch (ct) {
|
|
3162
3158
|
case "YY":
|
|
3163
3159
|
return String(j.$y).slice(-2);
|
|
@@ -3168,9 +3164,9 @@ function Ty() {
|
|
|
3168
3164
|
case "MM":
|
|
3169
3165
|
return F.s(he + 1, 2, "0");
|
|
3170
3166
|
case "MMM":
|
|
3171
|
-
return
|
|
3167
|
+
return Be(ee.monthsShort, he, _e, 3);
|
|
3172
3168
|
case "MMMM":
|
|
3173
|
-
return
|
|
3169
|
+
return Be(_e, he);
|
|
3174
3170
|
case "D":
|
|
3175
3171
|
return j.$D;
|
|
3176
3172
|
case "DD":
|
|
@@ -3178,9 +3174,9 @@ function Ty() {
|
|
|
3178
3174
|
case "d":
|
|
3179
3175
|
return String(j.$W);
|
|
3180
3176
|
case "dd":
|
|
3181
|
-
return
|
|
3177
|
+
return Be(ee.weekdaysMin, j.$W, xe, 2);
|
|
3182
3178
|
case "ddd":
|
|
3183
|
-
return
|
|
3179
|
+
return Be(ee.weekdaysShort, j.$W, xe, 3);
|
|
3184
3180
|
case "dddd":
|
|
3185
3181
|
return xe[j.$W];
|
|
3186
3182
|
case "H":
|
|
@@ -3214,18 +3210,18 @@ function Ty() {
|
|
|
3214
3210
|
}, $.utcOffset = function() {
|
|
3215
3211
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3216
3212
|
}, $.diff = function(Y, j, ee) {
|
|
3217
|
-
var te, ne = this, se = F.p(j), oe = D(Y), he = (oe.utcOffset() - this.utcOffset()) * i, xe = this - oe,
|
|
3213
|
+
var te, ne = this, se = F.p(j), oe = D(Y), he = (oe.utcOffset() - this.utcOffset()) * i, xe = this - oe, _e = function() {
|
|
3218
3214
|
return F.m(ne, oe);
|
|
3219
3215
|
};
|
|
3220
3216
|
switch (se) {
|
|
3221
3217
|
case b:
|
|
3222
|
-
te =
|
|
3218
|
+
te = _e() / 12;
|
|
3223
3219
|
break;
|
|
3224
3220
|
case g:
|
|
3225
|
-
te =
|
|
3221
|
+
te = _e();
|
|
3226
3222
|
break;
|
|
3227
3223
|
case E:
|
|
3228
|
-
te =
|
|
3224
|
+
te = _e() / 3;
|
|
3229
3225
|
break;
|
|
3230
3226
|
case m:
|
|
3231
3227
|
te = (xe - he) / 6048e5;
|
|
@@ -3524,22 +3520,22 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
3524
3520
|
S.value = S.value === "asc" ? "desc" : "asc", m.order_by = S.value;
|
|
3525
3521
|
}, A = le(), R = Ve(() => {
|
|
3526
3522
|
let Re = [];
|
|
3527
|
-
return n.value.forEach((
|
|
3528
|
-
Re.push(
|
|
3523
|
+
return n.value.forEach((Ye) => {
|
|
3524
|
+
Re.push(Ye);
|
|
3529
3525
|
}), Re.slice(1);
|
|
3530
3526
|
}), P = () => {
|
|
3531
3527
|
m.status = A.value, A.value === "cancel" ? m.is_delete = 1 : m.is_delete = 0;
|
|
3532
3528
|
}, I = le([]), G = le(0), H = [10, 20, 30, 40], z = async () => {
|
|
3533
|
-
const { page: Re, size:
|
|
3534
|
-
let ue = { page: Re, size:
|
|
3535
|
-
if (
|
|
3529
|
+
const { page: Re, size: Ye, status: Te, sponsor: je, order_by: ut, search: Tt, is_delete: we } = m;
|
|
3530
|
+
let ue = { page: Re, size: Ye, sponsor: je, order_by: ut, search: Tt };
|
|
3531
|
+
if (Te !== "all" && Te !== "" && (ue.is_delete = we), Te === "cancel" ? ue.status = "" : ue.status = Te, !c.getTableDataRequest)
|
|
3536
3532
|
return;
|
|
3537
3533
|
const fe = await c.getTableDataRequest(ue);
|
|
3538
|
-
I.value = (fe.data || []).map((
|
|
3539
|
-
const { start_date: Se, end_date: Fe, start: ht, end: kt } =
|
|
3534
|
+
I.value = (fe.data || []).map((ye) => {
|
|
3535
|
+
const { start_date: Se, end_date: Fe, start: ht, end: kt } = ye;
|
|
3540
3536
|
return [
|
|
3541
3537
|
{
|
|
3542
|
-
...
|
|
3538
|
+
...ye,
|
|
3543
3539
|
time: `${Se}-${kt}`,
|
|
3544
3540
|
start_date_time: `${Se} ${ht}`,
|
|
3545
3541
|
end_date_time: `${Fe} ${kt}`,
|
|
@@ -3555,64 +3551,58 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
3555
3551
|
}), x = le(), D = le(!1), F = le(null), ie = le(""), N = le(0), V = le(!1), $ = le({
|
|
3556
3552
|
reason: [{ required: !0, message: e("meeting.enterReviewNotes") }]
|
|
3557
3553
|
}), Y = async () => {
|
|
3558
|
-
var Re,
|
|
3559
|
-
if (!(!c.approveActivityRequest || !c.rejectActivityRequest))
|
|
3560
|
-
N.value === 1 ? e("meeting.approveReview") : e("meeting.rejectReview");
|
|
3554
|
+
var Re, Ye;
|
|
3555
|
+
if (!(!c.approveActivityRequest || !c.rejectActivityRequest))
|
|
3561
3556
|
try {
|
|
3562
|
-
if (D.value = !0, (await ((Re = x.value) == null ? void 0 : Re.validate())).some((
|
|
3557
|
+
if (D.value = !0, (await ((Re = x.value) == null ? void 0 : Re.validate())).some((je) => !!je)) {
|
|
3563
3558
|
D.value = !1;
|
|
3564
3559
|
return;
|
|
3565
3560
|
}
|
|
3566
3561
|
N.value === 1 ? await c.approveActivityRequest(F.value.id, W.value) : await c.rejectActivityRequest(F.value.id, W.value), z(), j(), a.success({
|
|
3567
|
-
content: e("meeting.reviewSuccess", [(
|
|
3568
|
-
});
|
|
3569
|
-
} catch {
|
|
3570
|
-
V.value = !1, D.value = !1, a.danger({
|
|
3571
|
-
content: e("meeting.reviewFail", [(_e = F.value) == null ? void 0 : _e.title])
|
|
3562
|
+
content: e("meeting.reviewSuccess", [(Ye = F.value) == null ? void 0 : Ye.title])
|
|
3572
3563
|
});
|
|
3564
|
+
} finally {
|
|
3565
|
+
V.value = !1, D.value = !1;
|
|
3573
3566
|
}
|
|
3574
|
-
}
|
|
3575
3567
|
}, j = () => {
|
|
3576
3568
|
V.value = !1, te.value = !1, D.value = !1, W.value.reason = "";
|
|
3577
3569
|
}, ee = async () => {
|
|
3578
|
-
var Re
|
|
3570
|
+
var Re;
|
|
3579
3571
|
if (c.deleteActivityRequest && c.cancelActivityRequest)
|
|
3580
3572
|
try {
|
|
3581
3573
|
D.value = !0, oe.value === 1 ? await c.cancelActivityRequest(F.value.id, W.value) : await c.deleteActivityRequest(F.value.id, W.value), z(), j(), a.success({
|
|
3582
3574
|
content: e("meeting.activityActionSuccess", [(Re = F.value) == null ? void 0 : Re.title, se.value])
|
|
3583
3575
|
});
|
|
3584
|
-
}
|
|
3585
|
-
D.value = !1, te.value = !1
|
|
3586
|
-
content: e("meeting.activityActionFail", [(ze = F.value) == null ? void 0 : ze.title, se.value])
|
|
3587
|
-
});
|
|
3576
|
+
} finally {
|
|
3577
|
+
D.value = !1, te.value = !1;
|
|
3588
3578
|
}
|
|
3589
3579
|
}, te = le(!1), ne = le(""), se = le(""), oe = le(0), he = (Re) => {
|
|
3590
3580
|
ne.value = e("meeting.deleteActivity"), se.value = e("meeting.deleteActivity").toLowerCase(), F.value = Re, oe.value = 0, te.value = !0;
|
|
3591
3581
|
}, xe = (Re) => {
|
|
3592
3582
|
ne.value = e("meeting.cancelActivity"), se.value = e("common.cancel").toLowerCase(), F.value = Re, oe.value = 1, te.value = !0;
|
|
3593
|
-
},
|
|
3583
|
+
}, _e = (Re) => {
|
|
3594
3584
|
F.value = Re, ie.value = e("meeting.approveReview"), N.value = 1, V.value = !0;
|
|
3595
3585
|
}, He = (Re) => {
|
|
3596
3586
|
F.value = Re, ie.value = e("meeting.rejectReview"), N.value = 0, V.value = !0;
|
|
3597
|
-
},
|
|
3587
|
+
}, Be = le([]), qe = le([]), Ze = (Re) => {
|
|
3598
3588
|
if (!c.getActivityDetailRequest)
|
|
3599
3589
|
return;
|
|
3600
|
-
|
|
3590
|
+
Be.value.includes(Re) || (Be.value.push(Re), c.getActivityDetailRequest(Re).then((Te) => {
|
|
3601
3591
|
var je;
|
|
3602
|
-
(je = I.value) == null || je.forEach((
|
|
3603
|
-
|
|
3592
|
+
(je = I.value) == null || je.forEach((ut) => {
|
|
3593
|
+
ut.id === Te.id && (ut.approve_record = Te.approve_record, ut.approver = Te.approver);
|
|
3604
3594
|
});
|
|
3605
3595
|
}));
|
|
3606
|
-
const
|
|
3607
|
-
qe.value.includes(Re) ? qe.value.splice(
|
|
3596
|
+
const Ye = qe.value.indexOf(Re);
|
|
3597
|
+
qe.value.includes(Re) ? qe.value.splice(Ye, 1) : qe.value.push(Re);
|
|
3608
3598
|
}, et = (Re) => {
|
|
3609
3599
|
Ze(Re.id);
|
|
3610
|
-
},
|
|
3611
|
-
Re.length && Re.forEach((
|
|
3612
|
-
Ze(
|
|
3600
|
+
}, lt = (Re) => Re.id, ct = le([]), ft = (Re) => {
|
|
3601
|
+
Re.length && Re.forEach((Ye) => {
|
|
3602
|
+
Ze(Ye);
|
|
3613
3603
|
});
|
|
3614
|
-
},
|
|
3615
|
-
Re &&
|
|
3604
|
+
}, rt = le({}), at = (Re, Ye) => {
|
|
3605
|
+
Re && Ye && (rt.value[Ye] = Re);
|
|
3616
3606
|
};
|
|
3617
3607
|
Di(() => {
|
|
3618
3608
|
z();
|
|
@@ -3666,32 +3656,32 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
3666
3656
|
j();
|
|
3667
3657
|
}
|
|
3668
3658
|
}]);
|
|
3669
|
-
return (Re,
|
|
3659
|
+
return (Re, Ye) => (T(), U("div", Py, [
|
|
3670
3660
|
p(o) ? (T(), U("div", $y, [
|
|
3671
3661
|
B(p(Xr), {
|
|
3672
3662
|
modelValue: ct.value,
|
|
3673
|
-
"onUpdate:modelValue":
|
|
3663
|
+
"onUpdate:modelValue": Ye[2] || (Ye[2] = (Te) => ct.value = Te),
|
|
3674
3664
|
accordion: p(o),
|
|
3675
3665
|
onChange: ft
|
|
3676
3666
|
}, {
|
|
3677
3667
|
default: L(() => [
|
|
3678
|
-
(T(!0), U(Ae, null, Ue(I.value, (
|
|
3679
|
-
var
|
|
3668
|
+
(T(!0), U(Ae, null, Ue(I.value, (Te, je) => {
|
|
3669
|
+
var ut;
|
|
3680
3670
|
return T(), U(Ae, {
|
|
3681
|
-
key:
|
|
3671
|
+
key: Te.id
|
|
3682
3672
|
}, [
|
|
3683
3673
|
w("div", Uy, [
|
|
3684
|
-
w("p", Vy, Q(
|
|
3685
|
-
|
|
3674
|
+
w("p", Vy, Q(Te.title), 1),
|
|
3675
|
+
Te.is_delete !== 1 ? (T(), ge(p(qi), {
|
|
3686
3676
|
key: 0,
|
|
3687
3677
|
color: "primary",
|
|
3688
3678
|
variant: "outline",
|
|
3689
|
-
class: $e([`tag-${(
|
|
3679
|
+
class: $e([`tag-${(ut = p(r).get(Te.status)) == null ? void 0 : ut.id}`])
|
|
3690
3680
|
}, {
|
|
3691
3681
|
default: L(() => {
|
|
3692
3682
|
var Tt;
|
|
3693
3683
|
return [
|
|
3694
|
-
Ie(Q((Tt = p(r).get(
|
|
3684
|
+
Ie(Q((Tt = p(r).get(Te.status)) == null ? void 0 : Tt.text), 1)
|
|
3695
3685
|
];
|
|
3696
3686
|
}),
|
|
3697
3687
|
_: 2
|
|
@@ -3708,52 +3698,52 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
3708
3698
|
}))
|
|
3709
3699
|
]),
|
|
3710
3700
|
B(p(Kr), {
|
|
3711
|
-
value:
|
|
3701
|
+
value: Te.id
|
|
3712
3702
|
}, {
|
|
3713
3703
|
title: L(() => [
|
|
3714
3704
|
w("div", qy, [
|
|
3715
|
-
w("p", jy, Q(
|
|
3716
|
-
w("p", null, Q(p(Dn)(
|
|
3705
|
+
w("p", jy, Q(Te.sponsor), 1),
|
|
3706
|
+
w("p", null, Q(p(Dn)(Te.create_time).format("YYYY/MM/DD HH:mm:ss")), 1)
|
|
3717
3707
|
]),
|
|
3718
3708
|
w("div", Hy, [
|
|
3719
|
-
|
|
3709
|
+
Te.status === 7 || Te.is_delete ? (T(), ge(p(Dt), {
|
|
3720
3710
|
key: 0,
|
|
3721
3711
|
color: "danger",
|
|
3722
3712
|
variant: "text",
|
|
3723
|
-
onClick: Ds((Tt) => he(
|
|
3713
|
+
onClick: Ds((Tt) => he(Te), ["stop"])
|
|
3724
3714
|
}, {
|
|
3725
3715
|
default: L(() => [
|
|
3726
3716
|
Ie(Q(p(e)("meeting.deleteActivity")), 1)
|
|
3727
3717
|
]),
|
|
3728
3718
|
_: 1
|
|
3729
3719
|
}, 8, ["onClick"])) : pe("", !0),
|
|
3730
|
-
(
|
|
3720
|
+
(Te.status === 3 || Te.status === 4) && Te.is_delete !== 1 ? (T(), ge(p(Dt), {
|
|
3731
3721
|
key: 1,
|
|
3732
3722
|
color: "danger",
|
|
3733
3723
|
variant: "text",
|
|
3734
|
-
onClick: Ds((Tt) => xe(
|
|
3724
|
+
onClick: Ds((Tt) => xe(Te), ["stop"])
|
|
3735
3725
|
}, {
|
|
3736
3726
|
default: L(() => [
|
|
3737
3727
|
Ie(Q(p(e)("meeting.cancelActivity")), 1)
|
|
3738
3728
|
]),
|
|
3739
3729
|
_: 1
|
|
3740
3730
|
}, 8, ["onClick"])) : pe("", !0),
|
|
3741
|
-
|
|
3731
|
+
Te.status === 2 ? (T(), ge(p(Dt), {
|
|
3742
3732
|
key: 2,
|
|
3743
3733
|
color: "primary",
|
|
3744
3734
|
variant: "text",
|
|
3745
|
-
onClick: Ds((Tt) =>
|
|
3735
|
+
onClick: Ds((Tt) => _e(Te), ["stop"])
|
|
3746
3736
|
}, {
|
|
3747
3737
|
default: L(() => [
|
|
3748
3738
|
Ie(Q(p(e)("meeting.approve")), 1)
|
|
3749
3739
|
]),
|
|
3750
3740
|
_: 1
|
|
3751
3741
|
}, 8, ["onClick"])) : pe("", !0),
|
|
3752
|
-
|
|
3742
|
+
Te.status === 2 ? (T(), ge(p(Dt), {
|
|
3753
3743
|
key: 3,
|
|
3754
3744
|
color: "primary",
|
|
3755
3745
|
variant: "text",
|
|
3756
|
-
onClick: Ds((Tt) => He(
|
|
3746
|
+
onClick: Ds((Tt) => He(Te), ["stop"])
|
|
3757
3747
|
}, {
|
|
3758
3748
|
default: L(() => [
|
|
3759
3749
|
Ie(Q(p(e)("meeting.reject")), 1)
|
|
@@ -3765,10 +3755,10 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
3765
3755
|
default: L(() => [
|
|
3766
3756
|
w("div", zy, [
|
|
3767
3757
|
B(jr, {
|
|
3768
|
-
show: ct.value.includes(
|
|
3769
|
-
data:
|
|
3758
|
+
show: ct.value.includes(Te.id),
|
|
3759
|
+
data: Te,
|
|
3770
3760
|
ref_for: !0,
|
|
3771
|
-
ref: (Tt) =>
|
|
3761
|
+
ref: (Tt) => at(Tt, Te.id),
|
|
3772
3762
|
page: "approval"
|
|
3773
3763
|
}, null, 8, ["show", "data"])
|
|
3774
3764
|
])
|
|
@@ -3796,15 +3786,15 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
3796
3786
|
B(p(D1), {
|
|
3797
3787
|
data: I.value,
|
|
3798
3788
|
onExpandChange: et,
|
|
3799
|
-
"row-key":
|
|
3789
|
+
"row-key": lt,
|
|
3800
3790
|
"expand-row-keys": qe.value
|
|
3801
3791
|
}, {
|
|
3802
3792
|
default: L(() => [
|
|
3803
3793
|
B(p(Sn), { type: "expand" }, {
|
|
3804
|
-
default: L((
|
|
3794
|
+
default: L((Te) => [
|
|
3805
3795
|
w("div", Ry, [
|
|
3806
3796
|
B(jr, {
|
|
3807
|
-
data:
|
|
3797
|
+
data: Te.row,
|
|
3808
3798
|
page: "approval",
|
|
3809
3799
|
show: ""
|
|
3810
3800
|
}, null, 8, ["data"])
|
|
@@ -3820,7 +3810,7 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
3820
3810
|
header: L(() => [
|
|
3821
3811
|
B(wd, {
|
|
3822
3812
|
modelValue: g.value,
|
|
3823
|
-
"onUpdate:modelValue":
|
|
3813
|
+
"onUpdate:modelValue": Ye[0] || (Ye[0] = (Te) => g.value = Te),
|
|
3824
3814
|
onConfirm: b,
|
|
3825
3815
|
list: E.value,
|
|
3826
3816
|
multiple: !0
|
|
@@ -3853,8 +3843,8 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
3853
3843
|
])
|
|
3854
3844
|
])
|
|
3855
3845
|
]),
|
|
3856
|
-
default: L((
|
|
3857
|
-
Ie(Q(p(Dn)(
|
|
3846
|
+
default: L((Te) => [
|
|
3847
|
+
Ie(Q(p(Dn)(Te.row.create_time).format("YYYY/MM/DD HH:mm:ss")), 1)
|
|
3858
3848
|
]),
|
|
3859
3849
|
_: 1
|
|
3860
3850
|
}),
|
|
@@ -3865,7 +3855,7 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
3865
3855
|
header: L(() => [
|
|
3866
3856
|
B(wd, {
|
|
3867
3857
|
modelValue: A.value,
|
|
3868
|
-
"onUpdate:modelValue":
|
|
3858
|
+
"onUpdate:modelValue": Ye[1] || (Ye[1] = (Te) => A.value = Te),
|
|
3869
3859
|
onConfirm: P,
|
|
3870
3860
|
list: R.value
|
|
3871
3861
|
}, {
|
|
@@ -3878,19 +3868,19 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
3878
3868
|
_: 3
|
|
3879
3869
|
}, 8, ["modelValue", "list"])
|
|
3880
3870
|
]),
|
|
3881
|
-
default: L((
|
|
3871
|
+
default: L((Te) => {
|
|
3882
3872
|
var je;
|
|
3883
3873
|
return [
|
|
3884
|
-
|
|
3874
|
+
Te.row.is_delete !== 1 ? (T(), ge(p(qi), {
|
|
3885
3875
|
key: 0,
|
|
3886
3876
|
color: "primary",
|
|
3887
3877
|
variant: "outline",
|
|
3888
|
-
class: $e([`tag-${(je = p(r).get(
|
|
3878
|
+
class: $e([`tag-${(je = p(r).get(Te.row.status)) == null ? void 0 : je.id}`])
|
|
3889
3879
|
}, {
|
|
3890
3880
|
default: L(() => {
|
|
3891
|
-
var
|
|
3881
|
+
var ut;
|
|
3892
3882
|
return [
|
|
3893
|
-
Ie(Q((
|
|
3883
|
+
Ie(Q((ut = p(r).get(Te.row.status)) == null ? void 0 : ut.text), 1)
|
|
3894
3884
|
];
|
|
3895
3885
|
}),
|
|
3896
3886
|
_: 2
|
|
@@ -3912,42 +3902,42 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
3912
3902
|
B(p(Sn), {
|
|
3913
3903
|
label: p(e)("meeting.action")
|
|
3914
3904
|
}, {
|
|
3915
|
-
default: L((
|
|
3905
|
+
default: L((Te) => [
|
|
3916
3906
|
w("div", By, [
|
|
3917
|
-
|
|
3907
|
+
Te.row.status === 7 || Te.row.is_delete ? (T(), ge(p(Dt), {
|
|
3918
3908
|
key: 0,
|
|
3919
3909
|
color: "danger",
|
|
3920
|
-
onClick: (je) => he(
|
|
3910
|
+
onClick: (je) => he(Te.row)
|
|
3921
3911
|
}, {
|
|
3922
3912
|
default: L(() => [
|
|
3923
3913
|
Ie(Q(p(e)("meeting.deleteActivity")), 1)
|
|
3924
3914
|
]),
|
|
3925
3915
|
_: 1
|
|
3926
3916
|
}, 8, ["onClick"])) : pe("", !0),
|
|
3927
|
-
(
|
|
3917
|
+
(Te.row.status === 3 || Te.row.status === 4) && Te.row.is_delete !== 1 ? (T(), ge(p(Dt), {
|
|
3928
3918
|
key: 1,
|
|
3929
3919
|
color: "danger",
|
|
3930
|
-
onClick: (je) => xe(
|
|
3920
|
+
onClick: (je) => xe(Te.row)
|
|
3931
3921
|
}, {
|
|
3932
3922
|
default: L(() => [
|
|
3933
3923
|
Ie(Q(p(e)("meeting.cancelActivity")), 1)
|
|
3934
3924
|
]),
|
|
3935
3925
|
_: 1
|
|
3936
3926
|
}, 8, ["onClick"])) : pe("", !0),
|
|
3937
|
-
|
|
3927
|
+
Te.row.status === 2 ? (T(), ge(p(Dt), {
|
|
3938
3928
|
key: 2,
|
|
3939
3929
|
color: "primary",
|
|
3940
|
-
onClick: (je) =>
|
|
3930
|
+
onClick: (je) => _e(Te.row)
|
|
3941
3931
|
}, {
|
|
3942
3932
|
default: L(() => [
|
|
3943
3933
|
Ie(Q(p(e)("meeting.approve")), 1)
|
|
3944
3934
|
]),
|
|
3945
3935
|
_: 1
|
|
3946
3936
|
}, 8, ["onClick"])) : pe("", !0),
|
|
3947
|
-
|
|
3937
|
+
Te.row.status === 2 ? (T(), ge(p(Dt), {
|
|
3948
3938
|
key: 3,
|
|
3949
3939
|
color: "primary",
|
|
3950
|
-
onClick: (je) => He(
|
|
3940
|
+
onClick: (je) => He(Te.row)
|
|
3951
3941
|
}, {
|
|
3952
3942
|
default: L(() => [
|
|
3953
3943
|
Ie(Q(p(e)("meeting.reject")), 1)
|
|
@@ -3975,7 +3965,7 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
3975
3965
|
])),
|
|
3976
3966
|
B(p(mn), {
|
|
3977
3967
|
visible: V.value,
|
|
3978
|
-
"onUpdate:visible":
|
|
3968
|
+
"onUpdate:visible": Ye[4] || (Ye[4] = (Te) => V.value = Te),
|
|
3979
3969
|
"phone-half-full": p(u),
|
|
3980
3970
|
"main-class": "handle-dialog-approval review-dialog",
|
|
3981
3971
|
actions: Vt.value
|
|
@@ -4008,7 +3998,7 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
4008
3998
|
"max-length": 1e3,
|
|
4009
3999
|
"input-on-outlimit": !1,
|
|
4010
4000
|
modelValue: W.value.reason,
|
|
4011
|
-
"onUpdate:modelValue":
|
|
4001
|
+
"onUpdate:modelValue": Ye[3] || (Ye[3] = (Te) => W.value.reason = Te)
|
|
4012
4002
|
}, null, 8, ["placeholder", "modelValue"])
|
|
4013
4003
|
]),
|
|
4014
4004
|
_: 1
|
|
@@ -4022,7 +4012,7 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
4022
4012
|
}, 8, ["visible", "phone-half-full", "actions"]),
|
|
4023
4013
|
B(p(mn), {
|
|
4024
4014
|
visible: te.value,
|
|
4025
|
-
"onUpdate:visible":
|
|
4015
|
+
"onUpdate:visible": Ye[5] || (Ye[5] = (Te) => te.value = Te),
|
|
4026
4016
|
"phone-half-full": p(u),
|
|
4027
4017
|
"main-class": "handle-dialog-approval cancel-dialog",
|
|
4028
4018
|
actions: dt.value
|
|
@@ -4031,9 +4021,9 @@ const ke = /* @__PURE__ */ Qn(xy), Pt = (s = /* @__PURE__ */ new Date(), e = "YY
|
|
|
4031
4021
|
Ie(Q(ne.value), 1)
|
|
4032
4022
|
]),
|
|
4033
4023
|
default: L(() => {
|
|
4034
|
-
var
|
|
4024
|
+
var Te, je;
|
|
4035
4025
|
return [
|
|
4036
|
-
w("div", Yy, Q(oe.value === 1 ? p(e)("meeting.confirmCancelActivity", [(
|
|
4026
|
+
w("div", Yy, Q(oe.value === 1 ? p(e)("meeting.confirmCancelActivity", [(Te = F.value) == null ? void 0 : Te.title]) : p(e)("meeting.confirmDeleteActivity", [(je = F.value) == null ? void 0 : je.title])), 1)
|
|
4037
4027
|
];
|
|
4038
4028
|
}),
|
|
4039
4029
|
_: 1
|
|
@@ -4096,20 +4086,20 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4096
4086
|
page: S.value,
|
|
4097
4087
|
size: _.value
|
|
4098
4088
|
}), ue = (we.data || []).map((fe) => {
|
|
4099
|
-
const { start_date:
|
|
4089
|
+
const { start_date: ye, end_date: Se, start: Fe, end: ht } = fe;
|
|
4100
4090
|
return [
|
|
4101
4091
|
{
|
|
4102
4092
|
...fe,
|
|
4103
|
-
time: `${
|
|
4104
|
-
start_date_time: `${
|
|
4093
|
+
time: `${ye}-${ht}`,
|
|
4094
|
+
start_date_time: `${ye} ${Fe}`,
|
|
4105
4095
|
end_date_time: `${Se} ${ht}`,
|
|
4106
4096
|
type: "activity",
|
|
4107
|
-
dateRange: `${
|
|
4108
|
-
isExpired: ke(`${
|
|
4097
|
+
dateRange: `${ye} ${Fe}-${Se} ${ht}`,
|
|
4098
|
+
isExpired: ke(`${ye} ${Fe}`).isBefore(ke())
|
|
4109
4099
|
}
|
|
4110
4100
|
];
|
|
4111
4101
|
}).flat().filter((fe) => fe.start_date.slice(0, 7) === Pt(V.value, "YYYY-MM-DD").slice(0, 7));
|
|
4112
|
-
R.value ? (b.value = we.data || [], E.value = ue) : S.value === 1 && !c.value ? (b.value = we.data || [], E.value = ue) : (b.value = [...b.value, ...we.data || []], E.value = [...E.value, ...ue]), E.value.sort((fe,
|
|
4102
|
+
R.value ? (b.value = we.data || [], E.value = ue) : S.value === 1 && !c.value ? (b.value = we.data || [], E.value = ue) : (b.value = [...b.value, ...we.data || []], E.value = [...E.value, ...ue]), E.value.sort((fe, ye) => fe.start_date === ye.start_date ? un(fe.start) > un(ye.start) ? 1 : -1 : ke(fe.start_date).isAfter(ke(ye.start_date)) ? 1 : -1), A.value = (we == null ? void 0 : we.total) || 0, Wt(() => {
|
|
4113
4103
|
j(), he.value && !c.value && ie();
|
|
4114
4104
|
});
|
|
4115
4105
|
} finally {
|
|
@@ -4118,8 +4108,8 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4118
4108
|
}, O = le([]), W = (we) => {
|
|
4119
4109
|
m.getActivityDetailRequest && (O.value.includes(we) || (O.value.push(we), m.getActivityDetailRequest(we).then((ue) => {
|
|
4120
4110
|
var fe;
|
|
4121
|
-
(fe = E.value) == null || fe.forEach((
|
|
4122
|
-
|
|
4111
|
+
(fe = E.value) == null || fe.forEach((ye) => {
|
|
4112
|
+
ye.id === ue.id && (ye.approve_record = ue.approve_record);
|
|
4123
4113
|
});
|
|
4124
4114
|
})));
|
|
4125
4115
|
}, x = (we) => {
|
|
@@ -4132,17 +4122,17 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4132
4122
|
}, F = (we) => {
|
|
4133
4123
|
const ue = we.target;
|
|
4134
4124
|
if (!ue) return;
|
|
4135
|
-
const fe = ue.scrollTop,
|
|
4136
|
-
fe + Se >=
|
|
4125
|
+
const fe = ue.scrollTop, ye = ue.scrollHeight, Se = ue.clientHeight;
|
|
4126
|
+
fe + Se >= ye && _e();
|
|
4137
4127
|
}, ie = () => {
|
|
4138
4128
|
he.value.getContainerEl().addEventListener("scroll", F);
|
|
4139
4129
|
}, N = le(), V = le(), $ = Ve(() => [...new Set(E.value.map((we) => we.start_date))].sort((we, ue) => ke(we).isBefore(ke(ue)) ? -1 : 1)), Y = Ve(
|
|
4140
4130
|
() => [...new Set(E.value.filter((we) => !we.isExpired && !we.is_delete).map((we) => we.start_date))].sort((we, ue) => ke(we).isBefore(ke(ue)) ? -1 : 1)
|
|
4141
4131
|
), j = () => {
|
|
4142
4132
|
var fe;
|
|
4143
|
-
const we = Y.value.find((
|
|
4133
|
+
const we = Y.value.find((ye) => !ke(ye).isBefore(ke(/* @__PURE__ */ new Date()).format("YYYY-MM-DD")));
|
|
4144
4134
|
we ? V.value = we : V.value || (V.value = ke().format("YYYY-MM-DD")), (fe = N.value) == null || fe.pickDay(ke(V.value)), V.value = ke(V.value).format("YYYY-MM-DD");
|
|
4145
|
-
const ue = E.value.find((
|
|
4135
|
+
const ue = E.value.find((ye) => ye.start_date === V.value && !ye.isExpired && !ye.is_delete);
|
|
4146
4136
|
ue && (W(ue.id), P.value = [ue.id]);
|
|
4147
4137
|
}, ee = (we, ue) => {
|
|
4148
4138
|
var fe;
|
|
@@ -4171,10 +4161,10 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4171
4161
|
}, [])), se = le({}), oe = (we, ue) => {
|
|
4172
4162
|
we && ue && (se.value[ue] = we);
|
|
4173
4163
|
}, he = le(), xe = (we) => {
|
|
4174
|
-
var
|
|
4164
|
+
var ye, Se, Fe;
|
|
4175
4165
|
const ue = ke(we).format("YYYY-MM-DD"), fe = document.querySelector(`#group-title-${ue}`);
|
|
4176
4166
|
fe && (c.value ? window.scrollTo({
|
|
4177
|
-
top: (((
|
|
4167
|
+
top: (((ye = fe.parentElement) == null ? void 0 : ye.offsetTop) || 0) - 52,
|
|
4178
4168
|
behavior: "smooth"
|
|
4179
4169
|
}) : (Fe = he.value) == null || Fe.scrollTo({
|
|
4180
4170
|
top: ((Se = fe.parentElement) == null ? void 0 : Se.offsetTop) || 0,
|
|
@@ -4187,24 +4177,20 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4187
4177
|
xe(V.value);
|
|
4188
4178
|
}
|
|
4189
4179
|
);
|
|
4190
|
-
const
|
|
4180
|
+
const _e = Ws(() => {
|
|
4191
4181
|
H.value && (c.value || (G.value = !0, S.value++, z()));
|
|
4192
|
-
}, 200), He = le(!1),
|
|
4193
|
-
|
|
4182
|
+
}, 200), He = le(!1), Be = le(null), qe = le(!1), Ze = (we) => {
|
|
4183
|
+
Be.value = we, qe.value = !0;
|
|
4194
4184
|
}, et = () => {
|
|
4195
4185
|
var we;
|
|
4196
|
-
m.revokeActivityRequest && (He.value = !0, m.revokeActivityRequest((we =
|
|
4186
|
+
m.revokeActivityRequest && (He.value = !0, m.revokeActivityRequest((we = Be.value) == null ? void 0 : we.id).then(() => {
|
|
4197
4187
|
u.success({
|
|
4198
|
-
content: t("meeting.revokeActivitySuccess", [
|
|
4188
|
+
content: t("meeting.revokeActivitySuccess", [Be.value.title])
|
|
4199
4189
|
}), R.value = !0, z();
|
|
4200
|
-
}).catch(() => {
|
|
4201
|
-
u.danger({
|
|
4202
|
-
content: t("meeting.revokeActivityFail", [Ne.value.title])
|
|
4203
|
-
});
|
|
4204
4190
|
}).finally(() => {
|
|
4205
4191
|
qe.value = !1, He.value = !1;
|
|
4206
4192
|
}));
|
|
4207
|
-
},
|
|
4193
|
+
}, lt = () => {
|
|
4208
4194
|
qe.value = !1;
|
|
4209
4195
|
}, ct = (we) => {
|
|
4210
4196
|
g("edit", we);
|
|
@@ -4214,12 +4200,12 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4214
4200
|
const {
|
|
4215
4201
|
title: ue,
|
|
4216
4202
|
start_date: fe,
|
|
4217
|
-
end_date:
|
|
4203
|
+
end_date: ye,
|
|
4218
4204
|
register_end_date: Se,
|
|
4219
4205
|
activity_type: Fe,
|
|
4220
4206
|
synopsis: ht,
|
|
4221
4207
|
register_url: kt,
|
|
4222
|
-
content_url:
|
|
4208
|
+
content_url: it,
|
|
4223
4209
|
address: Ai,
|
|
4224
4210
|
start: ei,
|
|
4225
4211
|
end: ki,
|
|
@@ -4228,12 +4214,12 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4228
4214
|
let qt = {
|
|
4229
4215
|
title: ue,
|
|
4230
4216
|
start_date: fe,
|
|
4231
|
-
end_date:
|
|
4217
|
+
end_date: ye,
|
|
4232
4218
|
register_end_date: Se,
|
|
4233
4219
|
activity_type: Fe,
|
|
4234
4220
|
synopsis: ht,
|
|
4235
4221
|
register_url: kt,
|
|
4236
|
-
content_url:
|
|
4222
|
+
content_url: it,
|
|
4237
4223
|
address: Ai,
|
|
4238
4224
|
start: ei,
|
|
4239
4225
|
end: ki,
|
|
@@ -4244,45 +4230,37 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4244
4230
|
u.success({
|
|
4245
4231
|
content: t("meeting.submitReviewSuccess", [we.title])
|
|
4246
4232
|
}), R.value = !0, z();
|
|
4247
|
-
}).catch(() => {
|
|
4248
|
-
u.danger({
|
|
4249
|
-
content: t("meeting.submitReviewFail", [we.title])
|
|
4250
|
-
});
|
|
4251
4233
|
});
|
|
4252
|
-
},
|
|
4253
|
-
|
|
4234
|
+
}, rt = le(!1), at = (we) => {
|
|
4235
|
+
Be.value = we, rt.value = !0;
|
|
4254
4236
|
}, dt = () => {
|
|
4255
4237
|
var we;
|
|
4256
|
-
m.deleteActivityRequest && (He.value = !0, m.deleteActivityRequest((we =
|
|
4238
|
+
m.deleteActivityRequest && (He.value = !0, m.deleteActivityRequest((we = Be.value) == null ? void 0 : we.id).then(() => {
|
|
4257
4239
|
u.success({
|
|
4258
|
-
content: t("meeting.deleteActivitySuccess", [
|
|
4240
|
+
content: t("meeting.deleteActivitySuccess", [Be.value.title])
|
|
4259
4241
|
}), R.value = !0, z();
|
|
4260
|
-
}).catch(() => {
|
|
4261
|
-
u.danger({
|
|
4262
|
-
content: t("meeting.deleteActivityFail", [Ne.value.title])
|
|
4263
|
-
});
|
|
4264
4242
|
}).finally(() => {
|
|
4265
|
-
|
|
4243
|
+
rt.value = !1, He.value = !1;
|
|
4266
4244
|
}));
|
|
4267
4245
|
}, Vt = () => {
|
|
4268
|
-
|
|
4269
|
-
}, Re = le(),
|
|
4246
|
+
rt.value = !1;
|
|
4247
|
+
}, Re = le(), Ye = le(0), Te = () => {
|
|
4270
4248
|
var we;
|
|
4271
|
-
|
|
4249
|
+
Ye.value = ((we = Re.value) == null ? void 0 : we.clientHeight) || 0;
|
|
4272
4250
|
}, je = Ws(() => {
|
|
4273
4251
|
if (!H.value || !c.value) return;
|
|
4274
4252
|
const we = window.scrollY || window.pageYOffset, ue = window.innerHeight;
|
|
4275
4253
|
document.documentElement.scrollHeight - (we + ue) <= 300 && !I.value && (G.value = !0, S.value++, z());
|
|
4276
4254
|
}, 200);
|
|
4277
4255
|
Di(() => {
|
|
4278
|
-
z(), window.addEventListener("scroll", je), window.addEventListener("resize", je),
|
|
4256
|
+
z(), window.addEventListener("scroll", je), window.addEventListener("resize", je), Te(), window.addEventListener("resize", Te);
|
|
4279
4257
|
}), Xn(() => {
|
|
4280
4258
|
var ue;
|
|
4281
|
-
window.removeEventListener("scroll", je), window.removeEventListener("resize", je), window.removeEventListener("resize",
|
|
4259
|
+
window.removeEventListener("scroll", je), window.removeEventListener("resize", je), window.removeEventListener("resize", Te);
|
|
4282
4260
|
const we = (ue = he.value) == null ? void 0 : ue.getContainerEl();
|
|
4283
4261
|
we == null || we.removeEventListener("scroll", F);
|
|
4284
4262
|
});
|
|
4285
|
-
const
|
|
4263
|
+
const ut = Ve(() => [{
|
|
4286
4264
|
id: "confirm",
|
|
4287
4265
|
loading: He.value,
|
|
4288
4266
|
color: "primary",
|
|
@@ -4301,7 +4279,7 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4301
4279
|
size: "large",
|
|
4302
4280
|
label: t("meeting.cancelBtn"),
|
|
4303
4281
|
onClick: () => {
|
|
4304
|
-
|
|
4282
|
+
lt();
|
|
4305
4283
|
}
|
|
4306
4284
|
}]), Tt = Ve(() => [{
|
|
4307
4285
|
id: "confirm",
|
|
@@ -4379,7 +4357,7 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4379
4357
|
]),
|
|
4380
4358
|
"date-cell": L(({ data: fe }) => [
|
|
4381
4359
|
w("div", {
|
|
4382
|
-
onClick: (
|
|
4360
|
+
onClick: (ye) => ee(ye, $.value.includes(fe.day)),
|
|
4383
4361
|
class: $e({
|
|
4384
4362
|
"date-cell": !0,
|
|
4385
4363
|
"is-selected": fe.isSelected,
|
|
@@ -4399,8 +4377,8 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4399
4377
|
key: 0,
|
|
4400
4378
|
ref_key: "scrollerRef",
|
|
4401
4379
|
ref: he,
|
|
4402
|
-
onScrollend: p(
|
|
4403
|
-
style: Ct({ "--header-height":
|
|
4380
|
+
onScrollend: p(_e),
|
|
4381
|
+
style: Ct({ "--header-height": Ye.value }),
|
|
4404
4382
|
"show-type": "hover",
|
|
4405
4383
|
class: "scroller-container"
|
|
4406
4384
|
}, {
|
|
@@ -4413,10 +4391,10 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4413
4391
|
onChange: x
|
|
4414
4392
|
}, {
|
|
4415
4393
|
default: L(() => [
|
|
4416
|
-
(T(!0), U(Ae, null, Ue(ne.value, (fe,
|
|
4394
|
+
(T(!0), U(Ae, null, Ue(ne.value, (fe, ye) => (T(), U(Ae, {
|
|
4417
4395
|
key: fe.start_date
|
|
4418
4396
|
}, [
|
|
4419
|
-
|
|
4397
|
+
ye === 0 ? (T(), U("div", {
|
|
4420
4398
|
key: 0,
|
|
4421
4399
|
class: "list-month-change prev-month",
|
|
4422
4400
|
onClick: ue[5] || (ue[5] = (Se) => te("prev-month"))
|
|
@@ -4430,7 +4408,7 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4430
4408
|
w("span", null, Q(p(t)("meeting.preMonth")), 1)
|
|
4431
4409
|
])) : pe("", !0),
|
|
4432
4410
|
w("div", {
|
|
4433
|
-
class: $e(["act-item",
|
|
4411
|
+
class: $e(["act-item", ye === ne.value.length - 1 && "last-item"])
|
|
4434
4412
|
}, [
|
|
4435
4413
|
w("div", {
|
|
4436
4414
|
class: $e({
|
|
@@ -4454,7 +4432,7 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4454
4432
|
key: Se.sub_id || Se.id,
|
|
4455
4433
|
value: Se.sub_id || Se.id,
|
|
4456
4434
|
class: $e({
|
|
4457
|
-
"last-item":
|
|
4435
|
+
"last-item": ye === ne.value.length - 1 && Fe === fe.list.length - 1
|
|
4458
4436
|
})
|
|
4459
4437
|
}, {
|
|
4460
4438
|
title: L(() => {
|
|
@@ -4484,9 +4462,9 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4484
4462
|
class: $e([`tag-${Se.is_delete ? "delete" : (ht = p(r).get(Se.status)) == null ? void 0 : ht.id}`])
|
|
4485
4463
|
}, {
|
|
4486
4464
|
default: L(() => {
|
|
4487
|
-
var
|
|
4465
|
+
var it;
|
|
4488
4466
|
return [
|
|
4489
|
-
Ie(Q(Se.is_delete === 1 ? p(t)("meeting.statusCanceled") : (
|
|
4467
|
+
Ie(Q(Se.is_delete === 1 ? p(t)("meeting.statusCanceled") : (it = p(r).get(Se.status)) == null ? void 0 : it.text), 1)
|
|
4490
4468
|
];
|
|
4491
4469
|
}),
|
|
4492
4470
|
_: 2
|
|
@@ -4582,7 +4560,7 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4582
4560
|
Se.status === 1 || Se.status === 7 ? (T(), ge(p(yi), {
|
|
4583
4561
|
key: 2,
|
|
4584
4562
|
variant: "text",
|
|
4585
|
-
onClick: (ht) =>
|
|
4563
|
+
onClick: (ht) => at(Se)
|
|
4586
4564
|
}, {
|
|
4587
4565
|
default: L(() => [
|
|
4588
4566
|
Ie(Q(p(t)("meeting.deleteActivity")), 1)
|
|
@@ -4606,7 +4584,7 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4606
4584
|
}, 1032, ["value", "class"]))), 128)),
|
|
4607
4585
|
ue[11] || (ue[11] = w("div", { class: "height-placeholder" }, null, -1))
|
|
4608
4586
|
], 2),
|
|
4609
|
-
|
|
4587
|
+
ye === ne.value.length - 1 ? (T(), U(Ae, { key: 1 }, [
|
|
4610
4588
|
G.value ? (T(), U("div", m3, Q(p(t)("meeting.loading")), 1)) : pe("", !0),
|
|
4611
4589
|
w("div", {
|
|
4612
4590
|
class: "list-month-change next-month",
|
|
@@ -4636,19 +4614,19 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4636
4614
|
visible: qe.value,
|
|
4637
4615
|
"onUpdate:visible": ue[8] || (ue[8] = (fe) => qe.value = fe),
|
|
4638
4616
|
"main-class": "handle-dialog-active",
|
|
4639
|
-
actions:
|
|
4617
|
+
actions: ut.value
|
|
4640
4618
|
}, {
|
|
4641
4619
|
header: L(() => [
|
|
4642
4620
|
Ie(Q(p(t)("meeting.withdrawReview")), 1)
|
|
4643
4621
|
]),
|
|
4644
4622
|
default: L(() => [
|
|
4645
|
-
w("div", g3, Q(p(t)("meeting.confirmRevokeActivity", [
|
|
4623
|
+
w("div", g3, Q(p(t)("meeting.confirmRevokeActivity", [Be.value.title])), 1)
|
|
4646
4624
|
]),
|
|
4647
4625
|
_: 1
|
|
4648
4626
|
}, 8, ["visible", "actions"]),
|
|
4649
4627
|
B(p(mn), {
|
|
4650
|
-
visible:
|
|
4651
|
-
"onUpdate:visible": ue[9] || (ue[9] = (fe) =>
|
|
4628
|
+
visible: rt.value,
|
|
4629
|
+
"onUpdate:visible": ue[9] || (ue[9] = (fe) => rt.value = fe),
|
|
4652
4630
|
"main-class": "handle-dialog-active",
|
|
4653
4631
|
actions: Tt.value
|
|
4654
4632
|
}, {
|
|
@@ -4656,7 +4634,7 @@ const Ru = { name: "meeting-icon-copy", render: Ky }, Qy = { class: "o-my-activi
|
|
|
4656
4634
|
Ie(Q(p(t)("meeting.deleteActivity")), 1)
|
|
4657
4635
|
]),
|
|
4658
4636
|
default: L(() => [
|
|
4659
|
-
w("div", v3, Q(p(t)("meeting.confirmDeleteActivity", [
|
|
4637
|
+
w("div", v3, Q(p(t)("meeting.confirmDeleteActivity", [Be.value.title])), 1)
|
|
4660
4638
|
]),
|
|
4661
4639
|
_: 1
|
|
4662
4640
|
}, 8, ["visible", "actions"])
|
|
@@ -6265,7 +6243,7 @@ const LT = { name: "components-icon-header-menu", render: IT }, OT = { class: "h
|
|
|
6265
6243
|
},
|
|
6266
6244
|
setup(s) {
|
|
6267
6245
|
s1((se) => ({
|
|
6268
|
-
|
|
6246
|
+
v06172c0a: P.value
|
|
6269
6247
|
}));
|
|
6270
6248
|
const e = s, { t, locale: i, meetingTabs: n, getConfig: r } = yn(), a = Ve(() => i.value === ku.EN), o = le(""), u = le([]), c = le([]), m = le([]), g = le([]), E = le([]), b = le([]), S = le([]), _ = le(Ke.ALL), A = Ve(() => {
|
|
6271
6249
|
let se = n.value;
|
|
@@ -6296,7 +6274,7 @@ const LT = { name: "components-icon-header-menu", render: IT }, OT = { class: "h
|
|
|
6296
6274
|
} else
|
|
6297
6275
|
g.value = [];
|
|
6298
6276
|
}, x = async (se) => {
|
|
6299
|
-
e.getDateListRequest && e.getDateListRequest(se).then((oe) => {
|
|
6277
|
+
e.getDateListRequest && e.getDateListRequest(se, z.value || "").then((oe) => {
|
|
6300
6278
|
u.value = oe;
|
|
6301
6279
|
}), e.getEventsDatesRequest && e.getEventsDatesRequest(se).then((oe) => {
|
|
6302
6280
|
E.value = oe;
|
|
@@ -6306,15 +6284,15 @@ const LT = { name: "components-icon-header-menu", render: IT }, OT = { class: "h
|
|
|
6306
6284
|
}, D = async (se) => {
|
|
6307
6285
|
if (e.getMeetingListRequest && se.date)
|
|
6308
6286
|
try {
|
|
6309
|
-
const oe = await e.getMeetingListRequest(se.date, z.value);
|
|
6287
|
+
const oe = await e.getMeetingListRequest(se.date, z.value, "");
|
|
6310
6288
|
S.value = oe.map((he) => ({
|
|
6311
6289
|
...he,
|
|
6312
6290
|
time: `${he.start}-${he.end}`,
|
|
6313
6291
|
type: "meeting",
|
|
6314
6292
|
date: he.date || se.date
|
|
6315
6293
|
})).sort((he, xe) => {
|
|
6316
|
-
var
|
|
6317
|
-
return parseInt((
|
|
6294
|
+
var _e, He;
|
|
6295
|
+
return parseInt((_e = he.start || he.cycle_start) == null ? void 0 : _e.replace(":", "")) - parseInt(xe.end || ((He = xe.cycle_end) == null ? void 0 : He.replace(":", "")));
|
|
6318
6296
|
});
|
|
6319
6297
|
} catch {
|
|
6320
6298
|
S.value = [];
|
|
@@ -6785,27 +6763,27 @@ const $d = { name: "meeting-icon-tip", render: d4 }, h4 = /* @__PURE__ */ mt({
|
|
|
6785
6763
|
type: "danger",
|
|
6786
6764
|
message: i("meeting.selectMeetingDate")
|
|
6787
6765
|
};
|
|
6788
|
-
const
|
|
6766
|
+
const _e = i("meeting.invalidMeetingDuration");
|
|
6789
6767
|
let He = se[0];
|
|
6790
|
-
const
|
|
6768
|
+
const Be = se[1];
|
|
6791
6769
|
if (j === Gs) {
|
|
6792
6770
|
const qe = /* @__PURE__ */ new Set();
|
|
6793
|
-
for (; !ke(He).isAfter(ke(
|
|
6771
|
+
for (; !ke(He).isAfter(ke(Be)); )
|
|
6794
6772
|
qe.add(ke(He).day()), He = ke(He).add(1, "day");
|
|
6795
6773
|
if (te.every((Ze) => !qe.has(Ze)))
|
|
6796
6774
|
return {
|
|
6797
6775
|
type: "danger",
|
|
6798
|
-
message:
|
|
6776
|
+
message: _e
|
|
6799
6777
|
};
|
|
6800
6778
|
}
|
|
6801
6779
|
if (j === ks) {
|
|
6802
6780
|
const qe = /* @__PURE__ */ new Set();
|
|
6803
|
-
for (; !ke(He).isAfter(ke(
|
|
6781
|
+
for (; !ke(He).isAfter(ke(Be)); )
|
|
6804
6782
|
qe.add(ke(He).date()), He = ke(He).add(1, "day");
|
|
6805
6783
|
if (te.every((Ze) => !qe.has(Ze)))
|
|
6806
6784
|
return {
|
|
6807
6785
|
type: "danger",
|
|
6808
|
-
message:
|
|
6786
|
+
message: _e
|
|
6809
6787
|
};
|
|
6810
6788
|
}
|
|
6811
6789
|
} else if (!ne)
|
|
@@ -6943,50 +6921,50 @@ const $d = { name: "meeting-icon-tip", render: d4 }, h4 = /* @__PURE__ */ mt({
|
|
|
6943
6921
|
start: oe,
|
|
6944
6922
|
end: he,
|
|
6945
6923
|
agenda: xe,
|
|
6946
|
-
is_record:
|
|
6924
|
+
is_record: _e,
|
|
6947
6925
|
is_cycle: He,
|
|
6948
|
-
date_range:
|
|
6926
|
+
date_range: Be,
|
|
6949
6927
|
cycle_type: qe,
|
|
6950
6928
|
cycle_interval: Ze,
|
|
6951
6929
|
cycle_point: et
|
|
6952
6930
|
} = S.value;
|
|
6953
|
-
let
|
|
6931
|
+
let lt = {
|
|
6954
6932
|
topic: j,
|
|
6955
6933
|
etherpad: ee,
|
|
6956
6934
|
agenda: xe,
|
|
6957
|
-
is_record:
|
|
6935
|
+
is_record: _e,
|
|
6958
6936
|
group_name: te,
|
|
6959
6937
|
platform: ne,
|
|
6960
6938
|
is_cycle: He
|
|
6961
6939
|
};
|
|
6962
|
-
if (He ? (
|
|
6963
|
-
...
|
|
6940
|
+
if (He ? (lt = {
|
|
6941
|
+
...lt,
|
|
6964
6942
|
cycle_interval: Ze,
|
|
6965
6943
|
cycle_type: qe,
|
|
6966
|
-
cycle_start_date: (
|
|
6967
|
-
cycle_end_date: (
|
|
6944
|
+
cycle_start_date: (Be == null ? void 0 : Be[0]) || "",
|
|
6945
|
+
cycle_end_date: (Be == null ? void 0 : Be[1]) || "",
|
|
6968
6946
|
cycle_start: oe,
|
|
6969
6947
|
cycle_end: he
|
|
6970
|
-
}, qe !== Hs && (
|
|
6971
|
-
...
|
|
6948
|
+
}, qe !== Hs && (lt = {
|
|
6949
|
+
...lt,
|
|
6972
6950
|
cycle_point: et.join(",")
|
|
6973
|
-
})) :
|
|
6974
|
-
...
|
|
6951
|
+
})) : lt = {
|
|
6952
|
+
...lt,
|
|
6975
6953
|
date: (se == null ? void 0 : se.split(" ")[0]) || "",
|
|
6976
6954
|
start: oe,
|
|
6977
6955
|
end: he
|
|
6978
6956
|
}, u.isEdit)
|
|
6979
6957
|
if (u.isSub) {
|
|
6980
|
-
const { mid: ft, sub_id:
|
|
6981
|
-
await (u == null ? void 0 : u.editSubMeetingRequest(
|
|
6958
|
+
const { mid: ft, sub_id: rt } = S.value, { date: at, start: dt, end: Vt } = lt;
|
|
6959
|
+
await (u == null ? void 0 : u.editSubMeetingRequest(rt, {
|
|
6982
6960
|
mid: ft,
|
|
6983
|
-
date:
|
|
6961
|
+
date: at,
|
|
6984
6962
|
start: dt,
|
|
6985
6963
|
end: Vt,
|
|
6986
6964
|
is_notify: !0
|
|
6987
6965
|
}));
|
|
6988
6966
|
} else {
|
|
6989
|
-
const { email_list: ft, platform:
|
|
6967
|
+
const { email_list: ft, platform: rt, group_name: at, etherpad: dt, ...Vt } = lt;
|
|
6990
6968
|
await (u == null ? void 0 : u.editMeetingRequest(u.data.id, {
|
|
6991
6969
|
...Vt,
|
|
6992
6970
|
is_notify: !0
|
|
@@ -6994,7 +6972,7 @@ const $d = { name: "meeting-icon-tip", render: d4 }, h4 = /* @__PURE__ */ mt({
|
|
|
6994
6972
|
}
|
|
6995
6973
|
else
|
|
6996
6974
|
await (u == null ? void 0 : u.createMeetingRequest({
|
|
6997
|
-
...
|
|
6975
|
+
...lt,
|
|
6998
6976
|
email_list: S.value.email_list.replaceAll(" ", "")
|
|
6999
6977
|
}));
|
|
7000
6978
|
const ct = i("meeting.meetingHandleSuccess", [S.value.topic, $]);
|
|
@@ -8423,8 +8401,8 @@ function h8() {
|
|
|
8423
8401
|
function F() {
|
|
8424
8402
|
if (!D)
|
|
8425
8403
|
return null;
|
|
8426
|
-
function he(
|
|
8427
|
-
return D = D.substr(
|
|
8404
|
+
function he(_e) {
|
|
8405
|
+
return D = D.substr(_e.length), _e;
|
|
8428
8406
|
}
|
|
8429
8407
|
var xe = D.match(/^([^<]*)(<[^>]*>?)?/);
|
|
8430
8408
|
return he(xe[1] ? xe[1] : xe[2]);
|
|
@@ -8436,11 +8414,11 @@ function h8() {
|
|
|
8436
8414
|
return !g[xe.localName] || g[xe.localName] === he.localName;
|
|
8437
8415
|
}
|
|
8438
8416
|
function V(he, xe) {
|
|
8439
|
-
var
|
|
8440
|
-
if (!
|
|
8417
|
+
var _e = u[he];
|
|
8418
|
+
if (!_e)
|
|
8441
8419
|
return null;
|
|
8442
|
-
var He = x.document.createElement(
|
|
8443
|
-
return
|
|
8420
|
+
var He = x.document.createElement(_e), Be = m[he];
|
|
8421
|
+
return Be && xe && (He[Be] = xe.trim()), He;
|
|
8444
8422
|
}
|
|
8445
8423
|
for (var $ = x.document.createElement("div"), Y = $, j, ee = []; (j = F()) !== null; ) {
|
|
8446
8424
|
if (j[0] === "<") {
|
|
@@ -8459,10 +8437,10 @@ function h8() {
|
|
|
8459
8437
|
if (se[2]) {
|
|
8460
8438
|
var oe = se[2].split(".");
|
|
8461
8439
|
oe.forEach(function(he) {
|
|
8462
|
-
var xe = /^bg_/.test(he),
|
|
8463
|
-
if (c.hasOwnProperty(
|
|
8464
|
-
var He = xe ? "background-color" : "color",
|
|
8465
|
-
ne.style[He] =
|
|
8440
|
+
var xe = /^bg_/.test(he), _e = xe ? he.slice(3) : he;
|
|
8441
|
+
if (c.hasOwnProperty(_e)) {
|
|
8442
|
+
var He = xe ? "background-color" : "color", Be = c[_e];
|
|
8443
|
+
ne.style[He] = Be;
|
|
8466
8444
|
}
|
|
8467
8445
|
}), ne.className = oe.join(" ");
|
|
8468
8446
|
}
|
|
@@ -8758,16 +8736,16 @@ function h8() {
|
|
|
8758
8736
|
return N;
|
|
8759
8737
|
};
|
|
8760
8738
|
function G(x, D, F, ie) {
|
|
8761
|
-
function N(
|
|
8762
|
-
for (var
|
|
8763
|
-
for (;
|
|
8764
|
-
|
|
8765
|
-
if (
|
|
8766
|
-
return
|
|
8767
|
-
var
|
|
8768
|
-
Ze >
|
|
8739
|
+
function N(_e, He) {
|
|
8740
|
+
for (var Be, qe = new I(_e), Ze = 1, et = 0; et < He.length; et++) {
|
|
8741
|
+
for (; _e.overlapsOppositeAxis(F, He[et]) || _e.within(F) && _e.overlapsAny(ie); )
|
|
8742
|
+
_e.move(He[et]);
|
|
8743
|
+
if (_e.within(F))
|
|
8744
|
+
return _e;
|
|
8745
|
+
var lt = _e.intersectPercentage(F);
|
|
8746
|
+
Ze > lt && (Be = new I(_e), Ze = lt), _e = new I(qe);
|
|
8769
8747
|
}
|
|
8770
|
-
return
|
|
8748
|
+
return Be || qe;
|
|
8771
8749
|
}
|
|
8772
8750
|
var V = new I(D), $ = D.cue, Y = A($), j = [];
|
|
8773
8751
|
if ($.snapToLines) {
|
|
@@ -8898,10 +8876,10 @@ function h8() {
|
|
|
8898
8876
|
var xe = he.split(",");
|
|
8899
8877
|
if (xe.length !== 2)
|
|
8900
8878
|
break;
|
|
8901
|
-
var
|
|
8902
|
-
if (
|
|
8879
|
+
var _e = new n();
|
|
8880
|
+
if (_e.percent("x", xe[0]), _e.percent("y", xe[1]), !_e.has("x") || !_e.has("y"))
|
|
8903
8881
|
break;
|
|
8904
|
-
ne.set(oe + "X",
|
|
8882
|
+
ne.set(oe + "X", _e.get("x")), ne.set(oe + "Y", _e.get("y"));
|
|
8905
8883
|
break;
|
|
8906
8884
|
case "scroll":
|
|
8907
8885
|
ne.alt(oe, he, ["up"]);
|
|
@@ -10329,7 +10307,7 @@ var cn = {
|
|
|
10329
10307
|
return ArrayBuffer.isView === "function" ? ArrayBuffer.isView(e) : e && e.buffer instanceof ArrayBuffer;
|
|
10330
10308
|
}, O8 = function(e) {
|
|
10331
10309
|
return R0(e);
|
|
10332
|
-
},
|
|
10310
|
+
}, We = function(e) {
|
|
10333
10311
|
return e instanceof Uint8Array ? e : (!Array.isArray(e) && !O8(e) && !(e instanceof ArrayBuffer) && (typeof e != "number" || typeof e == "number" && e !== e ? e = 0 : e = [e]), new Uint8Array(e && e.buffer || e, e && e.byteOffset || 0, e && e.byteLength || 0));
|
|
10334
10312
|
}, si = K.BigInt || Number, Jl = [si("0x1"), si("0x100"), si("0x10000"), si("0x1000000"), si("0x100000000"), si("0x10000000000"), si("0x1000000000000"), si("0x100000000000000"), si("0x10000000000000000")];
|
|
10335
10313
|
(function() {
|
|
@@ -10338,7 +10316,7 @@ var cn = {
|
|
|
10338
10316
|
})();
|
|
10339
10317
|
var P8 = function(e, t) {
|
|
10340
10318
|
var i = t === void 0 ? {} : t, n = i.signed, r = n === void 0 ? !1 : n, a = i.le, o = a === void 0 ? !1 : a;
|
|
10341
|
-
e =
|
|
10319
|
+
e = We(e);
|
|
10342
10320
|
var u = o ? "reduce" : "reduceRight", c = e[u] ? e[u] : Array.prototype[u], m = c.call(e, function(E, b, S) {
|
|
10343
10321
|
var _ = o ? S : Math.abs(S + 1 - e.length);
|
|
10344
10322
|
return E + si(b) * Jl[_];
|
|
@@ -10369,16 +10347,16 @@ var P8 = function(e, t) {
|
|
|
10369
10347
|
if (t = t.filter(function(o) {
|
|
10370
10348
|
return o && (o.byteLength || o.length) && typeof o != "string";
|
|
10371
10349
|
}), t.length <= 1)
|
|
10372
|
-
return
|
|
10350
|
+
return We(t[0]);
|
|
10373
10351
|
var n = t.reduce(function(o, u, c) {
|
|
10374
10352
|
return o + (u.byteLength || u.length);
|
|
10375
10353
|
}, 0), r = new Uint8Array(n), a = 0;
|
|
10376
10354
|
return t.forEach(function(o) {
|
|
10377
|
-
o =
|
|
10355
|
+
o = We(o), r.set(o, a), a += o.byteLength;
|
|
10378
10356
|
}), r;
|
|
10379
10357
|
}, Lt = function(e, t, i) {
|
|
10380
10358
|
var n = i === void 0 ? {} : i, r = n.offset, a = r === void 0 ? 0 : r, o = n.mask, u = o === void 0 ? [] : o;
|
|
10381
|
-
e =
|
|
10359
|
+
e = We(e), t = We(t);
|
|
10382
10360
|
var c = t.every ? t.every : Array.prototype.every;
|
|
10383
10361
|
return t.length && e.length - a >= t.length && // ie 11 doesn't support every on uin8
|
|
10384
10362
|
c.call(t, function(m, g) {
|
|
@@ -10635,7 +10613,7 @@ function B0() {
|
|
|
10635
10613
|
if (de ? k[ee(k, de)] = J : k[k.length++] = J, C) {
|
|
10636
10614
|
J.ownerElement = C;
|
|
10637
10615
|
var Ce = C.ownerDocument;
|
|
10638
|
-
Ce && (de &&
|
|
10616
|
+
Ce && (de && Be(Ce, C, de), He(Ce, C, J));
|
|
10639
10617
|
}
|
|
10640
10618
|
}
|
|
10641
10619
|
function ne(C, k, J) {
|
|
@@ -10644,8 +10622,8 @@ function B0() {
|
|
|
10644
10622
|
for (var Ce = k.length - 1; de < Ce; )
|
|
10645
10623
|
k[de] = k[++de];
|
|
10646
10624
|
if (k.length = Ce, C) {
|
|
10647
|
-
var
|
|
10648
|
-
|
|
10625
|
+
var ze = C.ownerDocument;
|
|
10626
|
+
ze && (Be(ze, C, J), J.ownerElement = null);
|
|
10649
10627
|
}
|
|
10650
10628
|
} else
|
|
10651
10629
|
throw new N(F, new Error(C.tagName + "@" + J));
|
|
@@ -10738,7 +10716,7 @@ function B0() {
|
|
|
10738
10716
|
* @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
|
|
10739
10717
|
*/
|
|
10740
10718
|
createDocument: function(C, k, J) {
|
|
10741
|
-
var de = new
|
|
10719
|
+
var de = new _e();
|
|
10742
10720
|
if (de.implementation = this, de.childNodes = new V(), de.doctype = J || null, J && de.appendChild(J), k) {
|
|
10743
10721
|
var Ce = de.createElementNS(C, k);
|
|
10744
10722
|
de.appendChild(Ce);
|
|
@@ -10788,10 +10766,10 @@ function B0() {
|
|
|
10788
10766
|
localName: null,
|
|
10789
10767
|
// Modified in DOM Level 2:
|
|
10790
10768
|
insertBefore: function(C, k) {
|
|
10791
|
-
return
|
|
10769
|
+
return Te(this, C, k);
|
|
10792
10770
|
},
|
|
10793
10771
|
replaceChild: function(C, k) {
|
|
10794
|
-
|
|
10772
|
+
Te(this, C, k, Ye), k && this.removeChild(k);
|
|
10795
10773
|
},
|
|
10796
10774
|
removeChild: function(C) {
|
|
10797
10775
|
return Ze(this, C);
|
|
@@ -10875,7 +10853,7 @@ function B0() {
|
|
|
10875
10853
|
return !0;
|
|
10876
10854
|
while (C = C.nextSibling);
|
|
10877
10855
|
}
|
|
10878
|
-
function
|
|
10856
|
+
function _e() {
|
|
10879
10857
|
this.ownerDocument = this;
|
|
10880
10858
|
}
|
|
10881
10859
|
function He(C, k, J) {
|
|
@@ -10883,7 +10861,7 @@ function B0() {
|
|
|
10883
10861
|
var de = J.namespaceURI;
|
|
10884
10862
|
de === t.XMLNS && (k._nsMap[J.prefix ? J.localName : ""] = J.value);
|
|
10885
10863
|
}
|
|
10886
|
-
function
|
|
10864
|
+
function Be(C, k, J, de) {
|
|
10887
10865
|
C && C._inc++;
|
|
10888
10866
|
var Ce = J.namespaceURI;
|
|
10889
10867
|
Ce === t.XMLNS && delete k._nsMap[J.prefix ? J.localName : ""];
|
|
@@ -10895,9 +10873,9 @@ function B0() {
|
|
|
10895
10873
|
if (J)
|
|
10896
10874
|
de[de.length++] = J;
|
|
10897
10875
|
else {
|
|
10898
|
-
for (var Ce = k.firstChild,
|
|
10899
|
-
de[
|
|
10900
|
-
de.length =
|
|
10876
|
+
for (var Ce = k.firstChild, ze = 0; Ce; )
|
|
10877
|
+
de[ze++] = Ce, Ce = Ce.nextSibling;
|
|
10878
|
+
de.length = ze, delete de[de.length];
|
|
10901
10879
|
}
|
|
10902
10880
|
}
|
|
10903
10881
|
}
|
|
@@ -10908,8 +10886,8 @@ function B0() {
|
|
|
10908
10886
|
function et(C) {
|
|
10909
10887
|
return C && (C.nodeType === oe.DOCUMENT_NODE || C.nodeType === oe.DOCUMENT_FRAGMENT_NODE || C.nodeType === oe.ELEMENT_NODE);
|
|
10910
10888
|
}
|
|
10911
|
-
function
|
|
10912
|
-
return C && (ft(C) ||
|
|
10889
|
+
function lt(C) {
|
|
10890
|
+
return C && (ft(C) || rt(C) || ct(C) || C.nodeType === oe.DOCUMENT_FRAGMENT_NODE || C.nodeType === oe.COMMENT_NODE || C.nodeType === oe.PROCESSING_INSTRUCTION_NODE);
|
|
10913
10891
|
}
|
|
10914
10892
|
function ct(C) {
|
|
10915
10893
|
return C && C.nodeType === oe.DOCUMENT_TYPE_NODE;
|
|
@@ -10917,10 +10895,10 @@ function B0() {
|
|
|
10917
10895
|
function ft(C) {
|
|
10918
10896
|
return C && C.nodeType === oe.ELEMENT_NODE;
|
|
10919
10897
|
}
|
|
10920
|
-
function
|
|
10898
|
+
function rt(C) {
|
|
10921
10899
|
return C && C.nodeType === oe.TEXT_NODE;
|
|
10922
10900
|
}
|
|
10923
|
-
function
|
|
10901
|
+
function at(C, k) {
|
|
10924
10902
|
var J = C.childNodes || [];
|
|
10925
10903
|
if (e(J, ft) || ct(k))
|
|
10926
10904
|
return !1;
|
|
@@ -10929,8 +10907,8 @@ function B0() {
|
|
|
10929
10907
|
}
|
|
10930
10908
|
function dt(C, k) {
|
|
10931
10909
|
var J = C.childNodes || [];
|
|
10932
|
-
function de(
|
|
10933
|
-
return ft(
|
|
10910
|
+
function de(ze) {
|
|
10911
|
+
return ft(ze) && ze !== k;
|
|
10934
10912
|
}
|
|
10935
10913
|
if (e(J, de))
|
|
10936
10914
|
return !1;
|
|
@@ -10944,7 +10922,7 @@ function B0() {
|
|
|
10944
10922
|
throw new N(F, "child not in parent");
|
|
10945
10923
|
if (
|
|
10946
10924
|
// 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException.
|
|
10947
|
-
!
|
|
10925
|
+
!lt(k) || // 5. If either `node` is a Text node and `parent` is a document,
|
|
10948
10926
|
// the sax parser currently adds top level text nodes, this will be fixed in 0.9.0
|
|
10949
10927
|
// || (node.nodeType === Node.TEXT_NODE && parent.nodeType === Node.DOCUMENT_NODE)
|
|
10950
10928
|
// or `node` is a doctype and `parent` is not a document, then throw a "HierarchyRequestError" DOMException.
|
|
@@ -10958,13 +10936,13 @@ function B0() {
|
|
|
10958
10936
|
function Re(C, k, J) {
|
|
10959
10937
|
var de = C.childNodes || [], Ce = k.childNodes || [];
|
|
10960
10938
|
if (k.nodeType === oe.DOCUMENT_FRAGMENT_NODE) {
|
|
10961
|
-
var
|
|
10962
|
-
if (
|
|
10939
|
+
var ze = Ce.filter(ft);
|
|
10940
|
+
if (ze.length > 1 || e(Ce, rt))
|
|
10963
10941
|
throw new N(x, "More than one element or text in fragment");
|
|
10964
|
-
if (
|
|
10942
|
+
if (ze.length === 1 && !at(C, J))
|
|
10965
10943
|
throw new N(x, "Element in fragment can not be inserted before doctype");
|
|
10966
10944
|
}
|
|
10967
|
-
if (ft(k) && !
|
|
10945
|
+
if (ft(k) && !at(C, J))
|
|
10968
10946
|
throw new N(x, "Only one element can be added and only after doctype");
|
|
10969
10947
|
if (ct(k)) {
|
|
10970
10948
|
if (e(de, ct))
|
|
@@ -10976,13 +10954,13 @@ function B0() {
|
|
|
10976
10954
|
throw new N(x, "Doctype can not be appended since element is present");
|
|
10977
10955
|
}
|
|
10978
10956
|
}
|
|
10979
|
-
function
|
|
10957
|
+
function Ye(C, k, J) {
|
|
10980
10958
|
var de = C.childNodes || [], Ce = k.childNodes || [];
|
|
10981
10959
|
if (k.nodeType === oe.DOCUMENT_FRAGMENT_NODE) {
|
|
10982
|
-
var
|
|
10983
|
-
if (
|
|
10960
|
+
var ze = Ce.filter(ft);
|
|
10961
|
+
if (ze.length > 1 || e(Ce, rt))
|
|
10984
10962
|
throw new N(x, "More than one element or text in fragment");
|
|
10985
|
-
if (
|
|
10963
|
+
if (ze.length === 1 && !dt(C, J))
|
|
10986
10964
|
throw new N(x, "Element in fragment can not be inserted before doctype");
|
|
10987
10965
|
}
|
|
10988
10966
|
if (ft(k) && !dt(C, J))
|
|
@@ -10997,23 +10975,23 @@ function B0() {
|
|
|
10997
10975
|
throw new N(x, "Doctype can only be inserted before an element");
|
|
10998
10976
|
}
|
|
10999
10977
|
}
|
|
11000
|
-
function
|
|
10978
|
+
function Te(C, k, J, de) {
|
|
11001
10979
|
Vt(C, k, J), C.nodeType === oe.DOCUMENT_NODE && (de || Re)(C, k, J);
|
|
11002
10980
|
var Ce = k.parentNode;
|
|
11003
10981
|
if (Ce && Ce.removeChild(k), k.nodeType === H) {
|
|
11004
|
-
var
|
|
11005
|
-
if (
|
|
10982
|
+
var ze = k.firstChild;
|
|
10983
|
+
if (ze == null)
|
|
11006
10984
|
return k;
|
|
11007
10985
|
var _t = k.lastChild;
|
|
11008
10986
|
} else
|
|
11009
|
-
|
|
10987
|
+
ze = _t = k;
|
|
11010
10988
|
var Ht = J ? J.previousSibling : C.lastChild;
|
|
11011
|
-
|
|
10989
|
+
ze.previousSibling = Ht, _t.nextSibling = J, Ht ? Ht.nextSibling = ze : C.firstChild = ze, J == null ? C.lastChild = _t : J.previousSibling = _t;
|
|
11012
10990
|
do {
|
|
11013
|
-
|
|
10991
|
+
ze.parentNode = C;
|
|
11014
10992
|
var di = C.ownerDocument || C;
|
|
11015
|
-
je(
|
|
11016
|
-
} while (
|
|
10993
|
+
je(ze, di);
|
|
10994
|
+
} while (ze !== _t && (ze = ze.nextSibling));
|
|
11017
10995
|
return qe(C.ownerDocument || C, C), k.nodeType == H && (k.firstChild = k.lastChild = null), k;
|
|
11018
10996
|
}
|
|
11019
10997
|
function je(C, k) {
|
|
@@ -11027,12 +11005,12 @@ function B0() {
|
|
|
11027
11005
|
je(Ce, k), Ce = Ce.nextSibling;
|
|
11028
11006
|
}
|
|
11029
11007
|
}
|
|
11030
|
-
function
|
|
11008
|
+
function ut(C, k) {
|
|
11031
11009
|
k.parentNode && k.parentNode.removeChild(k), k.parentNode = C, k.previousSibling = C.lastChild, k.nextSibling = null, k.previousSibling ? k.previousSibling.nextSibling = k : C.firstChild = k, C.lastChild = k, qe(C.ownerDocument, C, k);
|
|
11032
11010
|
var J = C.ownerDocument || C;
|
|
11033
11011
|
return je(k, J), k;
|
|
11034
11012
|
}
|
|
11035
|
-
|
|
11013
|
+
_e.prototype = {
|
|
11036
11014
|
//implementation : null,
|
|
11037
11015
|
nodeName: "#document",
|
|
11038
11016
|
nodeType: I,
|
|
@@ -11053,13 +11031,13 @@ function B0() {
|
|
|
11053
11031
|
}
|
|
11054
11032
|
return C;
|
|
11055
11033
|
}
|
|
11056
|
-
return
|
|
11034
|
+
return Te(this, C, k), je(C, this), this.documentElement === null && C.nodeType === g && (this.documentElement = C), C;
|
|
11057
11035
|
},
|
|
11058
11036
|
removeChild: function(C) {
|
|
11059
11037
|
return this.documentElement == C && (this.documentElement = null), Ze(this, C);
|
|
11060
11038
|
},
|
|
11061
11039
|
replaceChild: function(C, k) {
|
|
11062
|
-
|
|
11040
|
+
Te(this, C, k, Ye), je(C, this), k && this.removeChild(k), ft(C) && (this.documentElement = C);
|
|
11063
11041
|
},
|
|
11064
11042
|
// Introduced in DOM Level 2:
|
|
11065
11043
|
importNode: function(C, k) {
|
|
@@ -11096,11 +11074,11 @@ function B0() {
|
|
|
11096
11074
|
var de = [];
|
|
11097
11075
|
return k.length > 0 && xe(J.documentElement, function(Ce) {
|
|
11098
11076
|
if (Ce !== J && Ce.nodeType === g) {
|
|
11099
|
-
var
|
|
11100
|
-
if (
|
|
11101
|
-
var _t = C ===
|
|
11077
|
+
var ze = Ce.getAttribute("class");
|
|
11078
|
+
if (ze) {
|
|
11079
|
+
var _t = C === ze;
|
|
11102
11080
|
if (!_t) {
|
|
11103
|
-
var Ht = a(
|
|
11081
|
+
var Ht = a(ze);
|
|
11104
11082
|
_t = k.every(o(Ht));
|
|
11105
11083
|
}
|
|
11106
11084
|
_t && de.push(Ce);
|
|
@@ -11125,7 +11103,7 @@ function B0() {
|
|
|
11125
11103
|
return k.ownerDocument = this, k.appendData(C), k;
|
|
11126
11104
|
},
|
|
11127
11105
|
createComment: function(C) {
|
|
11128
|
-
var k = new
|
|
11106
|
+
var k = new ye();
|
|
11129
11107
|
return k.ownerDocument = this, k.appendData(C), k;
|
|
11130
11108
|
},
|
|
11131
11109
|
/**
|
|
@@ -11155,7 +11133,7 @@ function B0() {
|
|
|
11155
11133
|
return k.ownerDocument = this, k.name = C, k.nodeName = C, k.localName = C, k.specified = !0, k;
|
|
11156
11134
|
},
|
|
11157
11135
|
createEntityReference: function(C) {
|
|
11158
|
-
var k = new
|
|
11136
|
+
var k = new it();
|
|
11159
11137
|
return k.ownerDocument = this, k.nodeName = C, k;
|
|
11160
11138
|
},
|
|
11161
11139
|
// Introduced in DOM Level 2:
|
|
@@ -11168,7 +11146,7 @@ function B0() {
|
|
|
11168
11146
|
var J = new we(), de = k.split(":");
|
|
11169
11147
|
return J.ownerDocument = this, J.nodeName = k, J.name = k, J.namespaceURI = C, J.specified = !0, de.length == 2 ? (J.prefix = de[0], J.localName = de[1]) : J.localName = k, J;
|
|
11170
11148
|
}
|
|
11171
|
-
}, c(
|
|
11149
|
+
}, c(_e, oe);
|
|
11172
11150
|
function Tt() {
|
|
11173
11151
|
this._nsMap = {};
|
|
11174
11152
|
}
|
|
@@ -11194,7 +11172,7 @@ function B0() {
|
|
|
11194
11172
|
},
|
|
11195
11173
|
//four real opeartion method
|
|
11196
11174
|
appendChild: function(C) {
|
|
11197
|
-
return C.nodeType === H ? this.insertBefore(C, null) :
|
|
11175
|
+
return C.nodeType === H ? this.insertBefore(C, null) : ut(this, C);
|
|
11198
11176
|
},
|
|
11199
11177
|
setAttributeNode: function(C) {
|
|
11200
11178
|
return this.attributes.setNamedItem(C);
|
|
@@ -11240,7 +11218,7 @@ function B0() {
|
|
|
11240
11218
|
}), de;
|
|
11241
11219
|
});
|
|
11242
11220
|
}
|
|
11243
|
-
},
|
|
11221
|
+
}, _e.prototype.getElementsByTagName = Tt.prototype.getElementsByTagName, _e.prototype.getElementsByTagNameNS = Tt.prototype.getElementsByTagNameNS, c(Tt, oe);
|
|
11244
11222
|
function we() {
|
|
11245
11223
|
}
|
|
11246
11224
|
we.prototype.nodeType = E, c(we, oe);
|
|
@@ -11280,12 +11258,12 @@ function B0() {
|
|
|
11280
11258
|
return this.parentNode && this.parentNode.insertBefore(de, this.nextSibling), de;
|
|
11281
11259
|
}
|
|
11282
11260
|
}, c(fe, ue);
|
|
11283
|
-
function
|
|
11261
|
+
function ye() {
|
|
11284
11262
|
}
|
|
11285
|
-
|
|
11263
|
+
ye.prototype = {
|
|
11286
11264
|
nodeName: "#comment",
|
|
11287
11265
|
nodeType: P
|
|
11288
|
-
}, c(
|
|
11266
|
+
}, c(ye, ue);
|
|
11289
11267
|
function Se() {
|
|
11290
11268
|
}
|
|
11291
11269
|
Se.prototype = {
|
|
@@ -11301,9 +11279,9 @@ function B0() {
|
|
|
11301
11279
|
function kt() {
|
|
11302
11280
|
}
|
|
11303
11281
|
kt.prototype.nodeType = A, c(kt, oe);
|
|
11304
|
-
function
|
|
11282
|
+
function it() {
|
|
11305
11283
|
}
|
|
11306
|
-
|
|
11284
|
+
it.prototype.nodeType = _, c(it, oe);
|
|
11307
11285
|
function Ai() {
|
|
11308
11286
|
}
|
|
11309
11287
|
Ai.prototype.nodeName = "#document-fragment", Ai.prototype.nodeType = H, c(Ai, oe);
|
|
@@ -11316,12 +11294,12 @@ function B0() {
|
|
|
11316
11294
|
return Yt.call(C, k, J);
|
|
11317
11295
|
}, oe.prototype.toString = Yt;
|
|
11318
11296
|
function Yt(C, k) {
|
|
11319
|
-
var J = [], de = this.nodeType == 9 && this.documentElement || this, Ce = de.prefix,
|
|
11320
|
-
if (
|
|
11321
|
-
var Ce = de.lookupPrefix(
|
|
11297
|
+
var J = [], de = this.nodeType == 9 && this.documentElement || this, Ce = de.prefix, ze = de.namespaceURI;
|
|
11298
|
+
if (ze && Ce == null) {
|
|
11299
|
+
var Ce = de.lookupPrefix(ze);
|
|
11322
11300
|
if (Ce == null)
|
|
11323
11301
|
var _t = [
|
|
11324
|
-
{ namespace:
|
|
11302
|
+
{ namespace: ze, prefix: null }
|
|
11325
11303
|
//{namespace:uri,prefix:''}
|
|
11326
11304
|
];
|
|
11327
11305
|
}
|
|
@@ -11331,8 +11309,8 @@ function B0() {
|
|
|
11331
11309
|
var de = C.prefix || "", Ce = C.namespaceURI;
|
|
11332
11310
|
if (!Ce || de === "xml" && Ce === t.XML || Ce === t.XMLNS)
|
|
11333
11311
|
return !1;
|
|
11334
|
-
for (var
|
|
11335
|
-
var _t = J[
|
|
11312
|
+
for (var ze = J.length; ze--; ) {
|
|
11313
|
+
var _t = J[ze];
|
|
11336
11314
|
if (_t.prefix === de)
|
|
11337
11315
|
return _t.namespace !== Ce;
|
|
11338
11316
|
}
|
|
@@ -11352,13 +11330,13 @@ function B0() {
|
|
|
11352
11330
|
return;
|
|
11353
11331
|
switch (C.nodeType) {
|
|
11354
11332
|
case g:
|
|
11355
|
-
var
|
|
11333
|
+
var ze = C.attributes, _t = ze.length, wt = C.firstChild, Ht = C.tagName;
|
|
11356
11334
|
J = t.isHTML(C.namespaceURI) || J;
|
|
11357
11335
|
var di = Ht;
|
|
11358
11336
|
if (!J && !C.prefix && C.namespaceURI) {
|
|
11359
|
-
for (var ai, ti = 0; ti <
|
|
11360
|
-
if (
|
|
11361
|
-
ai =
|
|
11337
|
+
for (var ai, ti = 0; ti < ze.length; ti++)
|
|
11338
|
+
if (ze.item(ti).name === "xmlns") {
|
|
11339
|
+
ai = ze.item(ti).value;
|
|
11362
11340
|
break;
|
|
11363
11341
|
}
|
|
11364
11342
|
if (!ai)
|
|
@@ -11380,11 +11358,11 @@ function B0() {
|
|
|
11380
11358
|
}
|
|
11381
11359
|
k.push("<", di);
|
|
11382
11360
|
for (var xi = 0; xi < _t; xi++) {
|
|
11383
|
-
var hi =
|
|
11361
|
+
var hi = ze.item(xi);
|
|
11384
11362
|
hi.prefix == "xmlns" ? Ce.push({ prefix: hi.localName, namespace: hi.value }) : hi.nodeName == "xmlns" && Ce.push({ prefix: "", namespace: hi.value });
|
|
11385
11363
|
}
|
|
11386
11364
|
for (var xi = 0; xi < _t; xi++) {
|
|
11387
|
-
var hi =
|
|
11365
|
+
var hi = ze.item(xi);
|
|
11388
11366
|
if (qt(hi, J, Ce)) {
|
|
11389
11367
|
var fi = hi.prefix || "", zt = hi.namespaceURI;
|
|
11390
11368
|
Fi(k, fi ? "xmlns:" + fi : "xmlns", zt), Ce.push({ prefix: fi, namespace: zt });
|
|
@@ -11422,9 +11400,9 @@ function B0() {
|
|
|
11422
11400
|
case P:
|
|
11423
11401
|
return k.push("<!--", C.data, "-->");
|
|
11424
11402
|
case G:
|
|
11425
|
-
var
|
|
11426
|
-
if (k.push("<!DOCTYPE ", C.name),
|
|
11427
|
-
k.push(" PUBLIC ",
|
|
11403
|
+
var st = C.publicId, Xi = C.systemId;
|
|
11404
|
+
if (k.push("<!DOCTYPE ", C.name), st)
|
|
11405
|
+
k.push(" PUBLIC ", st), Xi && Xi != "." && k.push(" ", Xi), k.push(">");
|
|
11428
11406
|
else if (Xi && Xi != ".")
|
|
11429
11407
|
k.push(" SYSTEM ", Xi, ">");
|
|
11430
11408
|
else {
|
|
@@ -11467,8 +11445,8 @@ function B0() {
|
|
|
11467
11445
|
var de = new k.constructor();
|
|
11468
11446
|
for (var Ce in k)
|
|
11469
11447
|
if (Object.prototype.hasOwnProperty.call(k, Ce)) {
|
|
11470
|
-
var
|
|
11471
|
-
typeof
|
|
11448
|
+
var ze = k[Ce];
|
|
11449
|
+
typeof ze != "object" && ze != de[Ce] && (de[Ce] = ze);
|
|
11472
11450
|
}
|
|
11473
11451
|
switch (k.childNodes && (de.childNodes = new V()), de.ownerDocument = C, de.nodeType) {
|
|
11474
11452
|
case g:
|
|
@@ -13697,76 +13675,76 @@ function F8() {
|
|
|
13697
13675
|
function V(je) {
|
|
13698
13676
|
if (je > 65535) {
|
|
13699
13677
|
je -= 65536;
|
|
13700
|
-
var
|
|
13701
|
-
return String.fromCharCode(
|
|
13678
|
+
var ut = 55296 + (je >> 10), Tt = 56320 + (je & 1023);
|
|
13679
|
+
return String.fromCharCode(ut, Tt);
|
|
13702
13680
|
} else
|
|
13703
13681
|
return String.fromCharCode(je);
|
|
13704
13682
|
}
|
|
13705
13683
|
function $(je) {
|
|
13706
|
-
var
|
|
13707
|
-
return Object.hasOwnProperty.call(F,
|
|
13684
|
+
var ut = je.slice(1, -1);
|
|
13685
|
+
return Object.hasOwnProperty.call(F, ut) ? F[ut] : ut.charAt(0) === "#" ? V(parseInt(ut.substr(1).replace("x", "0x"))) : (N.error("entity not found:" + je), je);
|
|
13708
13686
|
}
|
|
13709
13687
|
function Y(je) {
|
|
13710
13688
|
if (je > xe) {
|
|
13711
|
-
var
|
|
13712
|
-
se && j(xe), ie.characters(
|
|
13689
|
+
var ut = x.substring(xe, je).replace(/&#?\w+;/g, $);
|
|
13690
|
+
se && j(xe), ie.characters(ut, 0, je - xe), xe = je;
|
|
13713
13691
|
}
|
|
13714
13692
|
}
|
|
13715
|
-
function j(je,
|
|
13716
|
-
for (; je >= te && (
|
|
13717
|
-
ee =
|
|
13693
|
+
function j(je, ut) {
|
|
13694
|
+
for (; je >= te && (ut = ne.exec(x)); )
|
|
13695
|
+
ee = ut.index, te = ee + ut[0].length, se.lineNumber++;
|
|
13718
13696
|
se.columnNumber = je - ee + 1;
|
|
13719
13697
|
}
|
|
13720
13698
|
for (var ee = 0, te = 0, ne = /.*(?:\r\n?|\n)|.*$/g, se = ie.locator, oe = [{ currentNSMap: D }], he = {}, xe = 0; ; ) {
|
|
13721
13699
|
try {
|
|
13722
|
-
var
|
|
13723
|
-
if (
|
|
13700
|
+
var _e = x.indexOf("<", xe);
|
|
13701
|
+
if (_e < 0) {
|
|
13724
13702
|
if (!x.substr(xe).match(/^\s*$/)) {
|
|
13725
|
-
var He = ie.doc,
|
|
13726
|
-
He.appendChild(
|
|
13703
|
+
var He = ie.doc, Be = He.createTextNode(x.substr(xe));
|
|
13704
|
+
He.appendChild(Be), ie.currentElement = Be;
|
|
13727
13705
|
}
|
|
13728
13706
|
return;
|
|
13729
13707
|
}
|
|
13730
|
-
switch (
|
|
13708
|
+
switch (_e > xe && Y(_e), x.charAt(_e + 1)) {
|
|
13731
13709
|
case "/":
|
|
13732
|
-
var dt = x.indexOf(">",
|
|
13733
|
-
dt < 0 ? (qe = x.substring(
|
|
13734
|
-
var et = Ze.localNSMap,
|
|
13710
|
+
var dt = x.indexOf(">", _e + 3), qe = x.substring(_e + 2, dt).replace(/[ \t\n\r]+$/g, ""), Ze = oe.pop();
|
|
13711
|
+
dt < 0 ? (qe = x.substring(_e + 2).replace(/[\s<].*/, ""), N.error("end tag name: " + qe + " is not complete:" + Ze.tagName), dt = _e + 1 + qe.length) : qe.match(/\s</) && (qe = qe.replace(/[\s<].*/, ""), N.error("end tag name: " + qe + " maybe not complete"), dt = _e + 1 + qe.length);
|
|
13712
|
+
var et = Ze.localNSMap, lt = Ze.tagName == qe, ct = lt || Ze.tagName && Ze.tagName.toLowerCase() == qe.toLowerCase();
|
|
13735
13713
|
if (ct) {
|
|
13736
13714
|
if (ie.endElement(Ze.uri, Ze.localName, qe), et)
|
|
13737
13715
|
for (var ft in et)
|
|
13738
13716
|
Object.prototype.hasOwnProperty.call(et, ft) && ie.endPrefixMapping(ft);
|
|
13739
|
-
|
|
13717
|
+
lt || N.fatalError("end tag name: " + qe + " is not match the current start tagName:" + Ze.tagName);
|
|
13740
13718
|
} else
|
|
13741
13719
|
oe.push(Ze);
|
|
13742
13720
|
dt++;
|
|
13743
13721
|
break;
|
|
13744
13722
|
// end elment
|
|
13745
13723
|
case "?":
|
|
13746
|
-
se && j(
|
|
13724
|
+
se && j(_e), dt = z(x, _e, ie);
|
|
13747
13725
|
break;
|
|
13748
13726
|
case "!":
|
|
13749
|
-
se && j(
|
|
13727
|
+
se && j(_e), dt = H(x, _e, ie, N);
|
|
13750
13728
|
break;
|
|
13751
13729
|
default:
|
|
13752
|
-
se && j(
|
|
13753
|
-
var
|
|
13754
|
-
if (!
|
|
13755
|
-
for (var Re = _(se, {}),
|
|
13756
|
-
var
|
|
13757
|
-
j(
|
|
13730
|
+
se && j(_e);
|
|
13731
|
+
var rt = new O(), at = oe[oe.length - 1].currentNSMap, dt = A(x, _e, rt, at, $, N), Vt = rt.length;
|
|
13732
|
+
if (!rt.closed && I(x, dt, rt.tagName, he) && (rt.closed = !0, F.nbsp || N.warning("unclosed xml attribute")), se && Vt) {
|
|
13733
|
+
for (var Re = _(se, {}), Ye = 0; Ye < Vt; Ye++) {
|
|
13734
|
+
var Te = rt[Ye];
|
|
13735
|
+
j(Te.offset), Te.locator = _(se, {});
|
|
13758
13736
|
}
|
|
13759
|
-
ie.locator = Re, R(
|
|
13737
|
+
ie.locator = Re, R(rt, ie, at) && oe.push(rt), ie.locator = se;
|
|
13760
13738
|
} else
|
|
13761
|
-
R(
|
|
13762
|
-
s.isHTML(
|
|
13739
|
+
R(rt, ie, at) && oe.push(rt);
|
|
13740
|
+
s.isHTML(rt.uri) && !rt.closed ? dt = P(x, dt, rt.tagName, $, ie) : dt++;
|
|
13763
13741
|
}
|
|
13764
13742
|
} catch (je) {
|
|
13765
13743
|
if (je instanceof E)
|
|
13766
13744
|
throw je;
|
|
13767
13745
|
N.error("element parse error: " + je), dt = -1;
|
|
13768
13746
|
}
|
|
13769
|
-
dt > xe ? xe = dt : Y(Math.max(
|
|
13747
|
+
dt > xe ? xe = dt : Y(Math.max(_e, xe) + 1);
|
|
13770
13748
|
}
|
|
13771
13749
|
}
|
|
13772
13750
|
function _(x, D) {
|
|
@@ -15288,12 +15266,12 @@ function N5() {
|
|
|
15288
15266
|
}
|
|
15289
15267
|
var B5 = N5();
|
|
15290
15268
|
const F5 = /* @__PURE__ */ Qn(B5);
|
|
15291
|
-
var $5 =
|
|
15292
|
-
t === void 0 && (t = 0), e =
|
|
15269
|
+
var $5 = We([73, 68, 51]), U5 = function(e, t) {
|
|
15270
|
+
t === void 0 && (t = 0), e = We(e);
|
|
15293
15271
|
var i = e[t + 5], n = e[t + 6] << 21 | e[t + 7] << 14 | e[t + 8] << 7 | e[t + 9], r = (i & 16) >> 4;
|
|
15294
15272
|
return r ? n + 20 : n + 10;
|
|
15295
15273
|
}, Ir = function s(e, t) {
|
|
15296
|
-
return t === void 0 && (t = 0), e =
|
|
15274
|
+
return t === void 0 && (t = 0), e = We(e), e.length - t < 10 || !Lt(e, $5, {
|
|
15297
15275
|
offset: t
|
|
15298
15276
|
}) ? t : (t += U5(e, t), s(e, t));
|
|
15299
15277
|
}, yh = function(e) {
|
|
@@ -15303,7 +15281,7 @@ var $5 = Ye([73, 68, 51]), U5 = function(e, t) {
|
|
|
15303
15281
|
return yh(t);
|
|
15304
15282
|
}) : [yh(e)];
|
|
15305
15283
|
}, q5 = function s(e, t, i) {
|
|
15306
|
-
i === void 0 && (i = !1), t = V5(t), e =
|
|
15284
|
+
i === void 0 && (i = !1), t = V5(t), e = We(e);
|
|
15307
15285
|
var n = [];
|
|
15308
15286
|
if (!t.length)
|
|
15309
15287
|
return n;
|
|
@@ -15322,31 +15300,31 @@ var $5 = Ye([73, 68, 51]), U5 = function(e, t) {
|
|
|
15322
15300
|
}
|
|
15323
15301
|
return n;
|
|
15324
15302
|
}, La = {
|
|
15325
|
-
EBML:
|
|
15326
|
-
DocType:
|
|
15327
|
-
Segment:
|
|
15328
|
-
SegmentInfo:
|
|
15329
|
-
Tracks:
|
|
15330
|
-
Track:
|
|
15331
|
-
TrackNumber:
|
|
15332
|
-
DefaultDuration:
|
|
15333
|
-
TrackEntry:
|
|
15334
|
-
TrackType:
|
|
15335
|
-
FlagDefault:
|
|
15336
|
-
CodecID:
|
|
15337
|
-
CodecPrivate:
|
|
15338
|
-
VideoTrack:
|
|
15339
|
-
AudioTrack:
|
|
15303
|
+
EBML: We([26, 69, 223, 163]),
|
|
15304
|
+
DocType: We([66, 130]),
|
|
15305
|
+
Segment: We([24, 83, 128, 103]),
|
|
15306
|
+
SegmentInfo: We([21, 73, 169, 102]),
|
|
15307
|
+
Tracks: We([22, 84, 174, 107]),
|
|
15308
|
+
Track: We([174]),
|
|
15309
|
+
TrackNumber: We([215]),
|
|
15310
|
+
DefaultDuration: We([35, 227, 131]),
|
|
15311
|
+
TrackEntry: We([174]),
|
|
15312
|
+
TrackType: We([131]),
|
|
15313
|
+
FlagDefault: We([136]),
|
|
15314
|
+
CodecID: We([134]),
|
|
15315
|
+
CodecPrivate: We([99, 162]),
|
|
15316
|
+
VideoTrack: We([224]),
|
|
15317
|
+
AudioTrack: We([225]),
|
|
15340
15318
|
// Not used yet, but will be used for live webm/mkv
|
|
15341
15319
|
// see https://www.matroska.org/technical/basics.html#block-structure
|
|
15342
15320
|
// see https://www.matroska.org/technical/basics.html#simpleblock-structure
|
|
15343
|
-
Cluster:
|
|
15344
|
-
Timestamp:
|
|
15345
|
-
TimestampScale:
|
|
15346
|
-
BlockGroup:
|
|
15347
|
-
BlockDuration:
|
|
15348
|
-
Block:
|
|
15349
|
-
SimpleBlock:
|
|
15321
|
+
Cluster: We([31, 67, 182, 117]),
|
|
15322
|
+
Timestamp: We([231]),
|
|
15323
|
+
TimestampScale: We([42, 215, 177]),
|
|
15324
|
+
BlockGroup: We([160]),
|
|
15325
|
+
BlockDuration: We([155]),
|
|
15326
|
+
Block: We([161]),
|
|
15327
|
+
SimpleBlock: We([163])
|
|
15350
15328
|
}, eu = [128, 64, 32, 16, 8, 4, 2, 1], j5 = function(e) {
|
|
15351
15329
|
for (var t = 1, i = 0; i < eu.length && !(e & eu[i]); i++)
|
|
15352
15330
|
t++;
|
|
@@ -15378,7 +15356,7 @@ var $5 = Ye([73, 68, 51]), U5 = function(e, t) {
|
|
|
15378
15356
|
var r = Xa(t, i + n.length);
|
|
15379
15357
|
return s(e, t, i + r.length + r.value + n.length);
|
|
15380
15358
|
}, Th = function s(e, t) {
|
|
15381
|
-
t = H5(t), e =
|
|
15359
|
+
t = H5(t), e = We(e);
|
|
15382
15360
|
var i = [];
|
|
15383
15361
|
if (!t.length)
|
|
15384
15362
|
return i;
|
|
@@ -15391,7 +15369,7 @@ var $5 = Ye([73, 68, 51]), U5 = function(e, t) {
|
|
|
15391
15369
|
n += m;
|
|
15392
15370
|
}
|
|
15393
15371
|
return i;
|
|
15394
|
-
}, G5 =
|
|
15372
|
+
}, G5 = We([0, 0, 0, 1]), W5 = We([0, 0, 1]), Y5 = We([0, 0, 3]), X5 = function(e) {
|
|
15395
15373
|
for (var t = [], i = 1; i < e.length - 2; )
|
|
15396
15374
|
Lt(e.subarray(i, i + 3), Y5) && (t.push(i + 2), i++), i++;
|
|
15397
15375
|
if (t.length === 0)
|
|
@@ -15401,7 +15379,7 @@ var $5 = Ye([73, 68, 51]), U5 = function(e, t) {
|
|
|
15401
15379
|
a === t[0] && (a++, t.shift()), r[i] = e[a];
|
|
15402
15380
|
return r;
|
|
15403
15381
|
}, H0 = function(e, t, i, n) {
|
|
15404
|
-
e =
|
|
15382
|
+
e = We(e), i = [].concat(i);
|
|
15405
15383
|
for (var r = 0, a, o = 0; r < e.length && (o < n || a); ) {
|
|
15406
15384
|
var u = void 0;
|
|
15407
15385
|
if (Lt(e.subarray(r), G5) ? u = 4 : Lt(e.subarray(r), W5) && (u = 3), !u) {
|
|
@@ -15420,34 +15398,34 @@ var $5 = Ye([73, 68, 51]), U5 = function(e, t) {
|
|
|
15420
15398
|
return H0(e, "h265", t, i);
|
|
15421
15399
|
}, gi = {
|
|
15422
15400
|
// "webm" string literal in hex
|
|
15423
|
-
webm:
|
|
15401
|
+
webm: We([119, 101, 98, 109]),
|
|
15424
15402
|
// "matroska" string literal in hex
|
|
15425
|
-
matroska:
|
|
15403
|
+
matroska: We([109, 97, 116, 114, 111, 115, 107, 97]),
|
|
15426
15404
|
// "fLaC" string literal in hex
|
|
15427
|
-
flac:
|
|
15405
|
+
flac: We([102, 76, 97, 67]),
|
|
15428
15406
|
// "OggS" string literal in hex
|
|
15429
|
-
ogg:
|
|
15407
|
+
ogg: We([79, 103, 103, 83]),
|
|
15430
15408
|
// ac-3 sync byte, also works for ec-3 as that is simply a codec
|
|
15431
15409
|
// of ac-3
|
|
15432
|
-
ac3:
|
|
15410
|
+
ac3: We([11, 119]),
|
|
15433
15411
|
// "RIFF" string literal in hex used for wav and avi
|
|
15434
|
-
riff:
|
|
15412
|
+
riff: We([82, 73, 70, 70]),
|
|
15435
15413
|
// "AVI" string literal in hex
|
|
15436
|
-
avi:
|
|
15414
|
+
avi: We([65, 86, 73]),
|
|
15437
15415
|
// "WAVE" string literal in hex
|
|
15438
|
-
wav:
|
|
15416
|
+
wav: We([87, 65, 86, 69]),
|
|
15439
15417
|
// "ftyp3g" string literal in hex
|
|
15440
|
-
"3gp":
|
|
15418
|
+
"3gp": We([102, 116, 121, 112, 51, 103]),
|
|
15441
15419
|
// "ftyp" string literal in hex
|
|
15442
|
-
mp4:
|
|
15420
|
+
mp4: We([102, 116, 121, 112]),
|
|
15443
15421
|
// "styp" string literal in hex
|
|
15444
|
-
fmp4:
|
|
15422
|
+
fmp4: We([115, 116, 121, 112]),
|
|
15445
15423
|
// "ftypqt" string literal in hex
|
|
15446
|
-
mov:
|
|
15424
|
+
mov: We([102, 116, 121, 112, 113, 116]),
|
|
15447
15425
|
// moov string literal in hex
|
|
15448
|
-
moov:
|
|
15426
|
+
moov: We([109, 111, 111, 118]),
|
|
15449
15427
|
// moof string literal in hex
|
|
15450
|
-
moof:
|
|
15428
|
+
moof: We([109, 111, 111, 102])
|
|
15451
15429
|
}, jn = {
|
|
15452
15430
|
aac: function(e) {
|
|
15453
15431
|
var t = Ir(e);
|
|
@@ -15542,11 +15520,11 @@ var $5 = Ye([73, 68, 51]), U5 = function(e, t) {
|
|
|
15542
15520
|
tu.forEach(function(s) {
|
|
15543
15521
|
var e = jn[s];
|
|
15544
15522
|
jn[s] = function(t) {
|
|
15545
|
-
return e(
|
|
15523
|
+
return e(We(t));
|
|
15546
15524
|
};
|
|
15547
15525
|
});
|
|
15548
15526
|
var Z5 = jn, Vu = function(e) {
|
|
15549
|
-
e =
|
|
15527
|
+
e = We(e);
|
|
15550
15528
|
for (var t = 0; t < tu.length; t++) {
|
|
15551
15529
|
var i = tu[t];
|
|
15552
15530
|
if (Z5[i](e))
|
|
@@ -15673,7 +15651,7 @@ function su(s, e = ":", t = "") {
|
|
|
15673
15651
|
Si === null && (Si = []);
|
|
15674
15652
|
}, r.error = (...a) => n("error", i, a), r.warn = (...a) => n("warn", i, a), r.debug = (...a) => n("debug", i, a), r;
|
|
15675
15653
|
}
|
|
15676
|
-
const
|
|
15654
|
+
const ot = su("VIDEOJS"), G0 = ot.createLogger, nx = Object.prototype.toString, W0 = function(s) {
|
|
15677
15655
|
return gs(s) ? Object.keys(s) : [];
|
|
15678
15656
|
};
|
|
15679
15657
|
function Ln(s, e) {
|
|
@@ -15872,7 +15850,7 @@ function dn(s, ...e) {
|
|
|
15872
15850
|
return s.classList.add(...e.reduce((t, i) => t.concat(i.split(/\s+/)), [])), s;
|
|
15873
15851
|
}
|
|
15874
15852
|
function Lo(s, ...e) {
|
|
15875
|
-
return s ? (s.classList.remove(...e.reduce((t, i) => t.concat(i.split(/\s+/)), [])), s) : (
|
|
15853
|
+
return s ? (s.classList.remove(...e.reduce((t, i) => t.concat(i.split(/\s+/)), [])), s) : (ot.warn("removeClass was called with an element that doesn't exist"), null);
|
|
15876
15854
|
}
|
|
15877
15855
|
function nf(s, e, t) {
|
|
15878
15856
|
return typeof t == "function" && (t = t(s, e)), typeof t != "boolean" && (t = void 0), e.split(/\s+/).forEach((i) => s.classList.toggle(i, t)), s;
|
|
@@ -16160,7 +16138,7 @@ function Mi(s, e, t) {
|
|
|
16160
16138
|
try {
|
|
16161
16139
|
o[u].call(s, n, r);
|
|
16162
16140
|
} catch (m) {
|
|
16163
|
-
|
|
16141
|
+
ot.error(m);
|
|
16164
16142
|
}
|
|
16165
16143
|
}
|
|
16166
16144
|
}), i.handlers[e].length === 1)
|
|
@@ -18710,7 +18688,7 @@ const Ah = function(s, e) {
|
|
|
18710
18688
|
type: "loadeddata",
|
|
18711
18689
|
target: e
|
|
18712
18690
|
});
|
|
18713
|
-
}, t.parse(s), i.length > 0 && (K.console && K.console.groupCollapsed && K.console.groupCollapsed(`Text Track parsing errors for ${e.src}`), i.forEach((n) =>
|
|
18691
|
+
}, t.parse(s), i.length > 0 && (K.console && K.console.groupCollapsed && K.console.groupCollapsed(`Text Track parsing errors for ${e.src}`), i.forEach((n) => ot.error(n)), K.console && K.console.groupEnd && K.console.groupEnd()), t.flush();
|
|
18714
18692
|
}, kh = function(s, e) {
|
|
18715
18693
|
const t = {
|
|
18716
18694
|
uri: s
|
|
@@ -18719,10 +18697,10 @@ const Ah = function(s, e) {
|
|
|
18719
18697
|
const n = e.tech_.crossOrigin() === "use-credentials";
|
|
18720
18698
|
n && (t.withCredentials = n), I0(t, At(this, function(r, a, o) {
|
|
18721
18699
|
if (r)
|
|
18722
|
-
return
|
|
18700
|
+
return ot.error(r, a);
|
|
18723
18701
|
e.loaded_ = !0, typeof K.WebVTT != "function" ? e.tech_ && e.tech_.any(["vttjsloaded", "vttjserror"], (u) => {
|
|
18724
18702
|
if (u.type === "vttjserror") {
|
|
18725
|
-
|
|
18703
|
+
ot.error(`vttjs failed to load, stopping trying to process ${e.src}`);
|
|
18726
18704
|
return;
|
|
18727
18705
|
}
|
|
18728
18706
|
return Ah(o, e);
|
|
@@ -19754,7 +19732,7 @@ class Je extends ve {
|
|
|
19754
19732
|
if (Je.techs_ && Je.techs_[e])
|
|
19755
19733
|
return Je.techs_[e];
|
|
19756
19734
|
if (e = Bt(e), K && K.videojs && K.videojs[e])
|
|
19757
|
-
return
|
|
19735
|
+
return ot.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`), K.videojs[e];
|
|
19758
19736
|
}
|
|
19759
19737
|
}
|
|
19760
19738
|
}
|
|
@@ -19801,7 +19779,7 @@ Je.withSourceHandlers = function(s) {
|
|
|
19801
19779
|
});
|
|
19802
19780
|
}, s.prototype), s.prototype.setSource = function(t) {
|
|
19803
19781
|
let i = s.selectSourceHandler(t, this.options_);
|
|
19804
|
-
i || (s.nativeSourceHandler ? i = s.nativeSourceHandler :
|
|
19782
|
+
i || (s.nativeSourceHandler ? i = s.nativeSourceHandler : ot.error("No source handler found for the current source.")), this.disposeSourceHandler(), this.off("dispose", this.disposeSourceHandler_), i !== s.nativeSourceHandler && (this.currentSource_ = t), this.sourceHandler_ = i.handleSource(t, this, this.options_), this.one("dispose", this.disposeSourceHandler_);
|
|
19805
19783
|
}, s.prototype.disposeSourceHandler = function() {
|
|
19806
19784
|
this.currentSource_ && (this.clearTracks(["audio", "video"]), this.currentSource_ = null), this.cleanupAutoTextTracks(), this.sourceHandler_ && (this.sourceHandler_.dispose && this.sourceHandler_.dispose(), this.sourceHandler_ = null);
|
|
19807
19785
|
};
|
|
@@ -20571,7 +20549,7 @@ class $o extends ve {
|
|
|
20571
20549
|
t = Object.assign({
|
|
20572
20550
|
className: this.buildCSSClass(),
|
|
20573
20551
|
tabIndex: 0
|
|
20574
|
-
}, t), e === "button" &&
|
|
20552
|
+
}, t), e === "button" && ot.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`), i = Object.assign({
|
|
20575
20553
|
role: "button"
|
|
20576
20554
|
}, i), this.tabIndex_ = t.tabIndex;
|
|
20577
20555
|
const n = Xe(e, t, i);
|
|
@@ -21074,7 +21052,7 @@ class ci extends $o {
|
|
|
21074
21052
|
*/
|
|
21075
21053
|
addChild(e, t = {}) {
|
|
21076
21054
|
const i = this.constructor.name;
|
|
21077
|
-
return
|
|
21055
|
+
return ot.warn(`Adding an actionable (user controllable) child to a Button (${i}) is not supported; use a ClickableComponent instead.`), ve.prototype.addChild.call(this, e, t);
|
|
21078
21056
|
}
|
|
21079
21057
|
/**
|
|
21080
21058
|
* Enable the `Button` element so that it can be activated or clicked. Use this with
|
|
@@ -21376,7 +21354,7 @@ class ir extends ve {
|
|
|
21376
21354
|
if (!this.contentEl_)
|
|
21377
21355
|
return;
|
|
21378
21356
|
let t = this.textNode_;
|
|
21379
|
-
t && this.contentEl_.firstChild !== t && (t = null,
|
|
21357
|
+
t && this.contentEl_.firstChild !== t && (t = null, ot.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")), this.textNode_ = De.createTextNode(this.formattedTime_), this.textNode_ && (t ? this.contentEl_.replaceChild(this.textNode_, t) : this.contentEl_.appendChild(this.textNode_));
|
|
21380
21358
|
}));
|
|
21381
21359
|
}
|
|
21382
21360
|
/**
|
|
@@ -25170,7 +25148,7 @@ class a7 extends tr {
|
|
|
25170
25148
|
try {
|
|
25171
25149
|
e = JSON.parse(K.localStorage.getItem(Fl));
|
|
25172
25150
|
} catch (t) {
|
|
25173
|
-
|
|
25151
|
+
ot.warn(t);
|
|
25174
25152
|
}
|
|
25175
25153
|
e && this.setValues(e);
|
|
25176
25154
|
}
|
|
@@ -25184,7 +25162,7 @@ class a7 extends tr {
|
|
|
25184
25162
|
try {
|
|
25185
25163
|
Object.keys(e).length ? K.localStorage.setItem(Fl, JSON.stringify(e)) : K.localStorage.removeItem(Fl);
|
|
25186
25164
|
} catch (t) {
|
|
25187
|
-
|
|
25165
|
+
ot.warn(t);
|
|
25188
25166
|
}
|
|
25189
25167
|
}
|
|
25190
25168
|
/**
|
|
@@ -25690,7 +25668,7 @@ const hu = (s) => {
|
|
|
25690
25668
|
e.resetSourceset_ = null, e.load = n, e.setAttribute = i, Object.defineProperty(e, "src", t), e.resetSourceWatch_ && e.resetSourceWatch_();
|
|
25691
25669
|
};
|
|
25692
25670
|
};
|
|
25693
|
-
class
|
|
25671
|
+
class Ne extends Je {
|
|
25694
25672
|
/**
|
|
25695
25673
|
* Create an instance of this Tech.
|
|
25696
25674
|
*
|
|
@@ -25715,14 +25693,14 @@ class Be extends Je {
|
|
|
25715
25693
|
for (let u = 0; u < o.length; u++)
|
|
25716
25694
|
this.el_.removeChild(o[u]);
|
|
25717
25695
|
}
|
|
25718
|
-
this.proxyNativeTracks_(), this.featuresNativeTextTracks && n &&
|
|
25696
|
+
this.proxyNativeTracks_(), this.featuresNativeTextTracks && n && ot.warn(`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
|
|
25719
25697
|
This may prevent text tracks from loading.`), this.restoreMetadataTracksInIOSNativePlayer_(), (zr || ko) && e.nativeControlsForTouch === !0 && this.setControls(!0), this.proxyWebkitFullscreen_(), this.triggerReady();
|
|
25720
25698
|
}
|
|
25721
25699
|
/**
|
|
25722
25700
|
* Dispose of `HTML5` media element and remove all tracks.
|
|
25723
25701
|
*/
|
|
25724
25702
|
dispose() {
|
|
25725
|
-
this.el_ && this.el_.resetSourceset_ && this.el_.resetSourceset_(),
|
|
25703
|
+
this.el_ && this.el_.resetSourceset_ && this.el_.resetSourceset_(), Ne.disposeMediaElement(this.el_), this.options_ = null, super.dispose();
|
|
25726
25704
|
}
|
|
25727
25705
|
/**
|
|
25728
25706
|
* Modify the media element so that we can detect when
|
|
@@ -25869,7 +25847,7 @@ This may prevent text tracks from loading.`), this.restoreMetadataTracksInIOSNat
|
|
|
25869
25847
|
if (!e || !(this.options_.playerElIngest || this.movingMediaElementInDOM)) {
|
|
25870
25848
|
if (e) {
|
|
25871
25849
|
const i = e.cloneNode(!0);
|
|
25872
|
-
e.parentNode && e.parentNode.insertBefore(i, e),
|
|
25850
|
+
e.parentNode && e.parentNode.insertBefore(i, e), Ne.disposeMediaElement(e), e = i;
|
|
25873
25851
|
} else {
|
|
25874
25852
|
e = De.createElement("video");
|
|
25875
25853
|
const i = this.options_.tag && Vs(this.options_.tag), n = Et({}, i);
|
|
@@ -25957,7 +25935,7 @@ This may prevent text tracks from loading.`), this.restoreMetadataTracksInIOSNat
|
|
|
25957
25935
|
try {
|
|
25958
25936
|
this.isScrubbing_ && this.el_.fastSeek && Io ? this.el_.fastSeek(e) : this.el_.currentTime = e;
|
|
25959
25937
|
} catch (t) {
|
|
25960
|
-
|
|
25938
|
+
ot(t, "Video is not ready. (Video.js)");
|
|
25961
25939
|
}
|
|
25962
25940
|
}
|
|
25963
25941
|
/**
|
|
@@ -26127,7 +26105,7 @@ This may prevent text tracks from loading.`), this.restoreMetadataTracksInIOSNat
|
|
|
26127
26105
|
*/
|
|
26128
26106
|
addSourceElement(e, t) {
|
|
26129
26107
|
if (!e)
|
|
26130
|
-
return
|
|
26108
|
+
return ot.error("Invalid source URL."), !1;
|
|
26131
26109
|
const i = {
|
|
26132
26110
|
src: e
|
|
26133
26111
|
};
|
|
@@ -26146,19 +26124,19 @@ This may prevent text tracks from loading.`), this.restoreMetadataTracksInIOSNat
|
|
|
26146
26124
|
*/
|
|
26147
26125
|
removeSourceElement(e) {
|
|
26148
26126
|
if (!e)
|
|
26149
|
-
return
|
|
26127
|
+
return ot.error("Source URL is required to remove the source element."), !1;
|
|
26150
26128
|
const t = this.el_.querySelectorAll("source");
|
|
26151
26129
|
for (const i of t)
|
|
26152
26130
|
if (i.src === e)
|
|
26153
26131
|
return this.el_.removeChild(i), !0;
|
|
26154
|
-
return
|
|
26132
|
+
return ot.warn(`No matching source element found with src: ${e}`), !1;
|
|
26155
26133
|
}
|
|
26156
26134
|
/**
|
|
26157
26135
|
* Reset the tech by removing all sources and then calling
|
|
26158
26136
|
* {@link Html5.resetMediaElement}.
|
|
26159
26137
|
*/
|
|
26160
26138
|
reset() {
|
|
26161
|
-
|
|
26139
|
+
Ne.resetMediaElement(this.el_);
|
|
26162
26140
|
}
|
|
26163
26141
|
/**
|
|
26164
26142
|
* Get the current source on the `HTML5` Tech. Falls back to returning the source from
|
|
@@ -26278,57 +26256,57 @@ This may prevent text tracks from loading.`), this.restoreMetadataTracksInIOSNat
|
|
|
26278
26256
|
return typeof this.el().webkitDroppedFrameCount < "u" && typeof this.el().webkitDecodedFrameCount < "u" && (e.droppedVideoFrames = this.el().webkitDroppedFrameCount, e.totalVideoFrames = this.el().webkitDecodedFrameCount), K.performance && (e.creationTime = K.performance.now()), e;
|
|
26279
26257
|
}
|
|
26280
26258
|
}
|
|
26281
|
-
wo(
|
|
26259
|
+
wo(Ne, "TEST_VID", function() {
|
|
26282
26260
|
if (!Zn())
|
|
26283
26261
|
return;
|
|
26284
26262
|
const s = De.createElement("video"), e = De.createElement("track");
|
|
26285
26263
|
return e.kind = "captions", e.srclang = "en", e.label = "English", s.appendChild(e), s;
|
|
26286
26264
|
});
|
|
26287
|
-
|
|
26265
|
+
Ne.isSupported = function() {
|
|
26288
26266
|
try {
|
|
26289
|
-
|
|
26267
|
+
Ne.TEST_VID.volume = 0.5;
|
|
26290
26268
|
} catch {
|
|
26291
26269
|
return !1;
|
|
26292
26270
|
}
|
|
26293
|
-
return !!(
|
|
26271
|
+
return !!(Ne.TEST_VID && Ne.TEST_VID.canPlayType);
|
|
26294
26272
|
};
|
|
26295
|
-
|
|
26296
|
-
return
|
|
26273
|
+
Ne.canPlayType = function(s) {
|
|
26274
|
+
return Ne.TEST_VID.canPlayType(s);
|
|
26297
26275
|
};
|
|
26298
|
-
|
|
26299
|
-
return
|
|
26276
|
+
Ne.canPlaySource = function(s, e) {
|
|
26277
|
+
return Ne.canPlayType(s.type);
|
|
26300
26278
|
};
|
|
26301
|
-
|
|
26279
|
+
Ne.canControlVolume = function() {
|
|
26302
26280
|
try {
|
|
26303
|
-
const s =
|
|
26304
|
-
|
|
26305
|
-
const e = s !==
|
|
26281
|
+
const s = Ne.TEST_VID.volume;
|
|
26282
|
+
Ne.TEST_VID.volume = s / 2 + 0.1;
|
|
26283
|
+
const e = s !== Ne.TEST_VID.volume;
|
|
26306
26284
|
return e && li ? (K.setTimeout(() => {
|
|
26307
|
-
|
|
26285
|
+
Ne && Ne.prototype && (Ne.prototype.featuresVolumeControl = s !== Ne.TEST_VID.volume);
|
|
26308
26286
|
}), !1) : e;
|
|
26309
26287
|
} catch {
|
|
26310
26288
|
return !1;
|
|
26311
26289
|
}
|
|
26312
26290
|
};
|
|
26313
|
-
|
|
26291
|
+
Ne.canMuteVolume = function() {
|
|
26314
26292
|
try {
|
|
26315
|
-
const s =
|
|
26316
|
-
return
|
|
26293
|
+
const s = Ne.TEST_VID.muted;
|
|
26294
|
+
return Ne.TEST_VID.muted = !s, Ne.TEST_VID.muted ? zn(Ne.TEST_VID, "muted", "muted") : Oo(Ne.TEST_VID, "muted", "muted"), s !== Ne.TEST_VID.muted;
|
|
26317
26295
|
} catch {
|
|
26318
26296
|
return !1;
|
|
26319
26297
|
}
|
|
26320
26298
|
};
|
|
26321
|
-
|
|
26299
|
+
Ne.canControlPlaybackRate = function() {
|
|
26322
26300
|
if (ns && vs && Do < 58)
|
|
26323
26301
|
return !1;
|
|
26324
26302
|
try {
|
|
26325
|
-
const s =
|
|
26326
|
-
return
|
|
26303
|
+
const s = Ne.TEST_VID.playbackRate;
|
|
26304
|
+
return Ne.TEST_VID.playbackRate = s / 2 + 0.1, s !== Ne.TEST_VID.playbackRate;
|
|
26327
26305
|
} catch {
|
|
26328
26306
|
return !1;
|
|
26329
26307
|
}
|
|
26330
26308
|
};
|
|
26331
|
-
|
|
26309
|
+
Ne.canOverrideAttributes = function() {
|
|
26332
26310
|
try {
|
|
26333
26311
|
const s = () => {
|
|
26334
26312
|
};
|
|
@@ -26350,26 +26328,26 @@ Be.canOverrideAttributes = function() {
|
|
|
26350
26328
|
}
|
|
26351
26329
|
return !0;
|
|
26352
26330
|
};
|
|
26353
|
-
|
|
26331
|
+
Ne.supportsNativeTextTracks = function() {
|
|
26354
26332
|
return Io || li && vs;
|
|
26355
26333
|
};
|
|
26356
|
-
|
|
26357
|
-
return !!(
|
|
26334
|
+
Ne.supportsNativeVideoTracks = function() {
|
|
26335
|
+
return !!(Ne.TEST_VID && Ne.TEST_VID.videoTracks);
|
|
26358
26336
|
};
|
|
26359
|
-
|
|
26360
|
-
return !!(
|
|
26337
|
+
Ne.supportsNativeAudioTracks = function() {
|
|
26338
|
+
return !!(Ne.TEST_VID && Ne.TEST_VID.audioTracks);
|
|
26361
26339
|
};
|
|
26362
|
-
|
|
26340
|
+
Ne.Events = ["loadstart", "suspend", "abort", "error", "emptied", "stalled", "loadedmetadata", "loadeddata", "canplay", "canplaythrough", "playing", "waiting", "seeking", "seeked", "ended", "durationchange", "timeupdate", "progress", "play", "pause", "ratechange", "resize", "volumechange"];
|
|
26363
26341
|
[["featuresMuteControl", "canMuteVolume"], ["featuresPlaybackRate", "canControlPlaybackRate"], ["featuresSourceset", "canOverrideAttributes"], ["featuresNativeTextTracks", "supportsNativeTextTracks"], ["featuresNativeVideoTracks", "supportsNativeVideoTracks"], ["featuresNativeAudioTracks", "supportsNativeAudioTracks"]].forEach(function([s, e]) {
|
|
26364
|
-
wo(
|
|
26342
|
+
wo(Ne.prototype, s, () => Ne[e](), !0);
|
|
26365
26343
|
});
|
|
26366
|
-
|
|
26367
|
-
|
|
26368
|
-
|
|
26369
|
-
|
|
26370
|
-
|
|
26371
|
-
|
|
26372
|
-
|
|
26344
|
+
Ne.prototype.featuresVolumeControl = Ne.canControlVolume();
|
|
26345
|
+
Ne.prototype.movingMediaElementInDOM = !li;
|
|
26346
|
+
Ne.prototype.featuresFullscreenResize = !0;
|
|
26347
|
+
Ne.prototype.featuresProgressEvents = !0;
|
|
26348
|
+
Ne.prototype.featuresTimeupdateEvents = !0;
|
|
26349
|
+
Ne.prototype.featuresVideoFrameCallback = !!(Ne.TEST_VID && Ne.TEST_VID.requestVideoFrameCallback);
|
|
26350
|
+
Ne.disposeMediaElement = function(s) {
|
|
26373
26351
|
if (s) {
|
|
26374
26352
|
for (s.parentNode && s.parentNode.removeChild(s); s.hasChildNodes(); )
|
|
26375
26353
|
s.removeChild(s.firstChild);
|
|
@@ -26381,7 +26359,7 @@ Be.disposeMediaElement = function(s) {
|
|
|
26381
26359
|
})();
|
|
26382
26360
|
}
|
|
26383
26361
|
};
|
|
26384
|
-
|
|
26362
|
+
Ne.resetMediaElement = function(s) {
|
|
26385
26363
|
if (!s)
|
|
26386
26364
|
return;
|
|
26387
26365
|
const e = s.querySelectorAll("source");
|
|
@@ -26481,7 +26459,7 @@ Be.resetMediaElement = function(s) {
|
|
|
26481
26459
|
*/
|
|
26482
26460
|
"playsinline"
|
|
26483
26461
|
].forEach(function(s) {
|
|
26484
|
-
|
|
26462
|
+
Ne.prototype[s] = function() {
|
|
26485
26463
|
return this.el_[s] || this.el_.hasAttribute(s);
|
|
26486
26464
|
};
|
|
26487
26465
|
});
|
|
@@ -26551,7 +26529,7 @@ Be.resetMediaElement = function(s) {
|
|
|
26551
26529
|
*/
|
|
26552
26530
|
"playsinline"
|
|
26553
26531
|
].forEach(function(s) {
|
|
26554
|
-
|
|
26532
|
+
Ne.prototype["set" + Bt(s)] = function(e) {
|
|
26555
26533
|
this.el_[s] = e, e ? this.el_.setAttribute(s, s) : this.el_.removeAttribute(s);
|
|
26556
26534
|
};
|
|
26557
26535
|
});
|
|
@@ -26810,7 +26788,7 @@ Be.resetMediaElement = function(s) {
|
|
|
26810
26788
|
*/
|
|
26811
26789
|
"crossOrigin"
|
|
26812
26790
|
].forEach(function(s) {
|
|
26813
|
-
|
|
26791
|
+
Ne.prototype[s] = function() {
|
|
26814
26792
|
return this.el_[s];
|
|
26815
26793
|
};
|
|
26816
26794
|
});
|
|
@@ -26924,7 +26902,7 @@ Be.resetMediaElement = function(s) {
|
|
|
26924
26902
|
*/
|
|
26925
26903
|
"crossOrigin"
|
|
26926
26904
|
].forEach(function(s) {
|
|
26927
|
-
|
|
26905
|
+
Ne.prototype["set" + Bt(s)] = function(e) {
|
|
26928
26906
|
this.el_[s] = e;
|
|
26929
26907
|
};
|
|
26930
26908
|
});
|
|
@@ -26954,35 +26932,35 @@ Be.resetMediaElement = function(s) {
|
|
|
26954
26932
|
*/
|
|
26955
26933
|
"play"
|
|
26956
26934
|
].forEach(function(s) {
|
|
26957
|
-
|
|
26935
|
+
Ne.prototype[s] = function() {
|
|
26958
26936
|
return this.el_[s]();
|
|
26959
26937
|
};
|
|
26960
26938
|
});
|
|
26961
|
-
Je.withSourceHandlers(
|
|
26962
|
-
|
|
26963
|
-
|
|
26939
|
+
Je.withSourceHandlers(Ne);
|
|
26940
|
+
Ne.nativeSourceHandler = {};
|
|
26941
|
+
Ne.nativeSourceHandler.canPlayType = function(s) {
|
|
26964
26942
|
try {
|
|
26965
|
-
return
|
|
26943
|
+
return Ne.TEST_VID.canPlayType(s);
|
|
26966
26944
|
} catch {
|
|
26967
26945
|
return "";
|
|
26968
26946
|
}
|
|
26969
26947
|
};
|
|
26970
|
-
|
|
26948
|
+
Ne.nativeSourceHandler.canHandleSource = function(s, e) {
|
|
26971
26949
|
if (s.type)
|
|
26972
|
-
return
|
|
26950
|
+
return Ne.nativeSourceHandler.canPlayType(s.type);
|
|
26973
26951
|
if (s.src) {
|
|
26974
26952
|
const t = Zu(s.src);
|
|
26975
|
-
return
|
|
26953
|
+
return Ne.nativeSourceHandler.canPlayType(`video/${t}`);
|
|
26976
26954
|
}
|
|
26977
26955
|
return "";
|
|
26978
26956
|
};
|
|
26979
|
-
|
|
26957
|
+
Ne.nativeSourceHandler.handleSource = function(s, e, t) {
|
|
26980
26958
|
e.setSrc(s.src);
|
|
26981
26959
|
};
|
|
26982
|
-
|
|
26960
|
+
Ne.nativeSourceHandler.dispose = function() {
|
|
26983
26961
|
};
|
|
26984
|
-
|
|
26985
|
-
Je.registerTech("Html5",
|
|
26962
|
+
Ne.registerSourceHandler(Ne.nativeSourceHandler);
|
|
26963
|
+
Je.registerTech("Html5", Ne);
|
|
26986
26964
|
const lp = [
|
|
26987
26965
|
/**
|
|
26988
26966
|
* Fired while the user agent is downloading media data.
|
|
@@ -27211,7 +27189,7 @@ class yt extends ve {
|
|
|
27211
27189
|
}), t.debug && this.debug(!0), this.options_.playerOptions = n, this.middleware_ = [], this.playbackRates(t.playbackRates), t.experimentalSvgIcons) {
|
|
27212
27190
|
const o = new K.DOMParser().parseFromString(Vx, "image/svg+xml");
|
|
27213
27191
|
if (o.querySelector("parsererror"))
|
|
27214
|
-
|
|
27192
|
+
ot.warn("Failed to load SVG Icons. Falling back to Font Icons."), this.options_.experimentalSvgIcons = null;
|
|
27215
27193
|
else {
|
|
27216
27194
|
const c = o.documentElement;
|
|
27217
27195
|
c.style.display = "none", this.el_.appendChild(c), this.addClass("vjs-svg-icons-enabled");
|
|
@@ -27296,7 +27274,7 @@ class yt extends ve {
|
|
|
27296
27274
|
if (typeof e > "u")
|
|
27297
27275
|
return this.techGet_("crossOrigin");
|
|
27298
27276
|
if (e !== null && e !== "anonymous" && e !== "use-credentials") {
|
|
27299
|
-
|
|
27277
|
+
ot.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`);
|
|
27300
27278
|
return;
|
|
27301
27279
|
}
|
|
27302
27280
|
this.techCall_("setCrossOrigin", e), this.posterImage && this.posterImage.crossOrigin(e);
|
|
@@ -27353,7 +27331,7 @@ class yt extends ve {
|
|
|
27353
27331
|
}
|
|
27354
27332
|
const n = parseFloat(t);
|
|
27355
27333
|
if (isNaN(n)) {
|
|
27356
|
-
|
|
27334
|
+
ot.error(`Improper value "${t}" supplied for for ${e}`);
|
|
27357
27335
|
return;
|
|
27358
27336
|
}
|
|
27359
27337
|
this[i] = n, this.updateStyleEl_();
|
|
@@ -27531,7 +27509,7 @@ class yt extends ve {
|
|
|
27531
27509
|
* The Tech
|
|
27532
27510
|
*/
|
|
27533
27511
|
tech(e) {
|
|
27534
|
-
return e === void 0 &&
|
|
27512
|
+
return e === void 0 && ot.warn(`Using the tech directly can be dangerous. I hope you know what you're doing.
|
|
27535
27513
|
See https://github.com/videojs/video.js/issues/2617 for more info.
|
|
27536
27514
|
`), this.tech_;
|
|
27537
27515
|
}
|
|
@@ -28068,7 +28046,7 @@ See https://github.com/videojs/video.js/issues/2617 for more info.
|
|
|
28068
28046
|
try {
|
|
28069
28047
|
this.tech_ && this.tech_[e](t);
|
|
28070
28048
|
} catch (i) {
|
|
28071
|
-
throw
|
|
28049
|
+
throw ot(i), i;
|
|
28072
28050
|
}
|
|
28073
28051
|
}, !0);
|
|
28074
28052
|
}
|
|
@@ -28094,7 +28072,7 @@ See https://github.com/videojs/video.js/issues/2617 for more info.
|
|
|
28094
28072
|
try {
|
|
28095
28073
|
return this.tech_[e]();
|
|
28096
28074
|
} catch (t) {
|
|
28097
|
-
throw this.tech_[e] === void 0 ? (
|
|
28075
|
+
throw this.tech_[e] === void 0 ? (ot(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`, t), t) : t.name === "TypeError" ? (ot(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`, t), this.tech_.isReady_ = !1, t) : (ot(t), t);
|
|
28098
28076
|
}
|
|
28099
28077
|
}
|
|
28100
28078
|
}
|
|
@@ -28754,7 +28732,7 @@ See https://github.com/videojs/video.js/issues/2617 for more info.
|
|
|
28754
28732
|
const r = n[i];
|
|
28755
28733
|
let a = Je.getTech(r);
|
|
28756
28734
|
if (a || (a = ve.getComponent(r)), !a) {
|
|
28757
|
-
|
|
28735
|
+
ot.error(`The "${r}" tech is undefined. Skipped browser support check for that tech.`);
|
|
28758
28736
|
continue;
|
|
28759
28737
|
}
|
|
28760
28738
|
if (a.isSupported() && (t = a.canPlayType(e), t))
|
|
@@ -28774,7 +28752,7 @@ See https://github.com/videojs/video.js/issues/2617 for more info.
|
|
|
28774
28752
|
* Object of source and tech order or false
|
|
28775
28753
|
*/
|
|
28776
28754
|
selectSource(e) {
|
|
28777
|
-
const t = this.options_.techOrder.map((o) => [o, Je.getTech(o)]).filter(([o, u]) => u ? u.isSupported() : (
|
|
28755
|
+
const t = this.options_.techOrder.map((o) => [o, Je.getTech(o)]).filter(([o, u]) => u ? u.isSupported() : (ot.error(`The "${o}" tech is undefined. Skipped browser support check for that tech.`), !1)), i = function(o, u, c) {
|
|
28778
28756
|
let m;
|
|
28779
28757
|
return o.some((g) => u.some((E) => {
|
|
28780
28758
|
if (m = c(g, E), m)
|
|
@@ -29204,7 +29182,7 @@ See https://github.com/videojs/video.js/issues/2617 for more info.
|
|
|
29204
29182
|
this.error_ = null, this.removeClass("vjs-error"), this.errorDisplay && this.errorDisplay.close();
|
|
29205
29183
|
return;
|
|
29206
29184
|
}
|
|
29207
|
-
this.error_ = new Rt(e), this.addClass("vjs-error"),
|
|
29185
|
+
this.error_ = new Rt(e), this.addClass("vjs-error"), ot.error(`(CODE:${this.error_.code} ${Rt.errorTypes[this.error_.code]})`, this.error_.message, this.error_), this.trigger("error"), Ys("error").forEach((t) => t(this, this.error_));
|
|
29208
29186
|
}
|
|
29209
29187
|
/**
|
|
29210
29188
|
* Report user activity
|
|
@@ -29789,7 +29767,7 @@ See https://github.com/videojs/video.js/issues/2617 for more info.
|
|
|
29789
29767
|
try {
|
|
29790
29768
|
Object.assign(i, JSON.parse(n || "{}"));
|
|
29791
29769
|
} catch (r) {
|
|
29792
|
-
|
|
29770
|
+
ot.error("data-setup", r);
|
|
29793
29771
|
}
|
|
29794
29772
|
if (Object.assign(t, i), e.hasChildNodes()) {
|
|
29795
29773
|
const r = e.childNodes;
|
|
@@ -30066,7 +30044,7 @@ class wi {
|
|
|
30066
30044
|
if (typeof e != "string")
|
|
30067
30045
|
throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);
|
|
30068
30046
|
if (lo(e))
|
|
30069
|
-
|
|
30047
|
+
ot.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);
|
|
30070
30048
|
else if (yt.prototype.hasOwnProperty(e))
|
|
30071
30049
|
throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);
|
|
30072
30050
|
if (typeof t != "function")
|
|
@@ -30132,7 +30110,7 @@ yt.prototype.hasPlugin = function(s) {
|
|
|
30132
30110
|
function b7(s, e) {
|
|
30133
30111
|
let t = !1;
|
|
30134
30112
|
return function(...i) {
|
|
30135
|
-
return t ||
|
|
30113
|
+
return t || ot.warn(s), t = !0, e.apply(this, i);
|
|
30136
30114
|
};
|
|
30137
30115
|
}
|
|
30138
30116
|
function rs(s, e, t, i) {
|
|
@@ -30158,15 +30136,15 @@ const cp = (s) => s.indexOf("#") === 0 ? s.slice(1) : s;
|
|
|
30158
30136
|
function ce(s, e, t) {
|
|
30159
30137
|
let i = ce.getPlayer(s);
|
|
30160
30138
|
if (i)
|
|
30161
|
-
return e &&
|
|
30139
|
+
return e && ot.warn(`Player "${s}" is already initialised. Options will not be applied.`), t && i.ready(t), i;
|
|
30162
30140
|
const n = typeof s == "string" ? Xs("#" + cp(s)) : s;
|
|
30163
30141
|
if (!Jn(n))
|
|
30164
30142
|
throw new TypeError("The element or ID supplied is not valid. (videojs)");
|
|
30165
30143
|
const a = ("getRootNode" in n ? n.getRootNode() instanceof K.ShadowRoot : !1) ? n.getRootNode() : n.ownerDocument.body;
|
|
30166
|
-
(!n.ownerDocument.defaultView || !a.contains(n)) &&
|
|
30144
|
+
(!n.ownerDocument.defaultView || !a.contains(n)) && ot.warn("The element supplied is not included in the DOM"), e = e || {}, e.restoreEl === !0 && (e.restoreEl = (n.parentNode && n.parentNode.hasAttribute && n.parentNode.hasAttribute("data-vjs-player") ? n.parentNode : n).cloneNode(!0)), Ys("beforesetup").forEach((u) => {
|
|
30167
30145
|
const c = u(n, Et(e));
|
|
30168
30146
|
if (!gs(c) || Array.isArray(c)) {
|
|
30169
|
-
|
|
30147
|
+
ot.error("please return an object in beforesetup hooks");
|
|
30170
30148
|
return;
|
|
30171
30149
|
}
|
|
30172
30150
|
e = Et(e, c);
|
|
@@ -30226,7 +30204,7 @@ ce.getAllPlayers = () => (
|
|
|
30226
30204
|
);
|
|
30227
30205
|
ce.players = yt.players;
|
|
30228
30206
|
ce.getComponent = ve.getComponent;
|
|
30229
|
-
ce.registerComponent = (s, e) => (Je.isTech(e) &&
|
|
30207
|
+
ce.registerComponent = (s, e) => (Je.isTech(e) && ot.warn(`The ${s} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`), ve.registerComponent.call(ve, s, e));
|
|
30230
30208
|
ce.getTech = Je.getTech;
|
|
30231
30209
|
ce.registerTech = Je.registerTech;
|
|
30232
30210
|
ce.use = kx;
|
|
@@ -30247,7 +30225,7 @@ ce.defineLazyProperty = rs(9, "videojs.defineLazyProperty", "videojs.obj.defineL
|
|
|
30247
30225
|
ce.bind = rs(9, "videojs.bind", "native Function.prototype.bind", At);
|
|
30248
30226
|
ce.registerPlugin = wi.registerPlugin;
|
|
30249
30227
|
ce.deregisterPlugin = wi.deregisterPlugin;
|
|
30250
|
-
ce.plugin = (s, e) => (
|
|
30228
|
+
ce.plugin = (s, e) => (ot.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"), wi.registerPlugin(s, e));
|
|
30251
30229
|
ce.getPlugins = wi.getPlugins;
|
|
30252
30230
|
ce.getPlugin = wi.getPlugin;
|
|
30253
30231
|
ce.getPluginVersion = wi.getPluginVersion;
|
|
@@ -30256,7 +30234,7 @@ ce.addLanguage = function(s, e) {
|
|
|
30256
30234
|
[s]: e
|
|
30257
30235
|
}), ce.options.languages[s];
|
|
30258
30236
|
};
|
|
30259
|
-
ce.log =
|
|
30237
|
+
ce.log = ot;
|
|
30260
30238
|
ce.createLogger = G0;
|
|
30261
30239
|
ce.time = bx;
|
|
30262
30240
|
ce.createTimeRange = rs(9, "videojs.createTimeRange", "videojs.time.createTimeRanges", ss);
|
|
@@ -30282,7 +30260,7 @@ ce.VideoTrack = Lf;
|
|
|
30282
30260
|
ce.VideoTrackList = Af;
|
|
30283
30261
|
["isEl", "isTextNode", "createEl", "hasClass", "addClass", "removeClass", "toggleClass", "setAttributes", "getAttributes", "emptyEl", "appendContent", "insertContent"].forEach((s) => {
|
|
30284
30262
|
ce[s] = function() {
|
|
30285
|
-
return
|
|
30263
|
+
return ot.warn(`videojs.${s}() is deprecated; use videojs.dom.${s}() instead`), pf[s].apply(null, arguments);
|
|
30286
30264
|
};
|
|
30287
30265
|
});
|
|
30288
30266
|
ce.computedStyle = rs(9, "videojs.computedStyle", "videojs.dom.computedStyle", Wn);
|
|
@@ -32077,7 +32055,7 @@ class bu extends uS {
|
|
|
32077
32055
|
} = c;
|
|
32078
32056
|
let E;
|
|
32079
32057
|
try {
|
|
32080
|
-
E = F5(
|
|
32058
|
+
E = F5(We(c.response).subarray(8));
|
|
32081
32059
|
} catch (b) {
|
|
32082
32060
|
b.metadata = pn({
|
|
32083
32061
|
requestType: g,
|
|
@@ -32511,7 +32489,7 @@ browserWorkerPolyFill(self);
|
|
|
32511
32489
|
}, r = {
|
|
32512
32490
|
getUint64: n,
|
|
32513
32491
|
MAX_UINT32: i
|
|
32514
|
-
}, a = r.MAX_UINT32, o, u, c, m, g, E, b, S, _, A, R, P, I, G, H, z, O, W, x, D, F, ie, N, V, $, Y, j, ee, te, ne, se, oe, he, xe,
|
|
32492
|
+
}, a = r.MAX_UINT32, o, u, c, m, g, E, b, S, _, A, R, P, I, G, H, z, O, W, x, D, F, ie, N, V, $, Y, j, ee, te, ne, se, oe, he, xe, _e, He;
|
|
32515
32493
|
(function() {
|
|
32516
32494
|
var l;
|
|
32517
32495
|
if (N = {
|
|
@@ -32704,7 +32682,7 @@ browserWorkerPolyFill(self);
|
|
|
32704
32682
|
0,
|
|
32705
32683
|
0
|
|
32706
32684
|
// entry_count
|
|
32707
|
-
]), xe = he,
|
|
32685
|
+
]), xe = he, _e = new Uint8Array([
|
|
32708
32686
|
0,
|
|
32709
32687
|
// version
|
|
32710
32688
|
0,
|
|
@@ -33000,7 +32978,7 @@ browserWorkerPolyFill(self);
|
|
|
33000
32978
|
h = d[v].flags, f[v + 4] = h.dependsOn << 4 | h.isDependedOn << 2 | h.hasRedundancy;
|
|
33001
32979
|
return o(N.sdtp, f);
|
|
33002
32980
|
}, W = function(l) {
|
|
33003
|
-
return o(N.stbl, x(l), o(N.stts, He), o(N.stsc, xe), o(N.stsz,
|
|
32981
|
+
return o(N.stbl, x(l), o(N.stts, He), o(N.stsc, xe), o(N.stsz, _e), o(N.stco, he));
|
|
33004
32982
|
}, (function() {
|
|
33005
32983
|
var l, d;
|
|
33006
32984
|
x = function(f) {
|
|
@@ -33427,7 +33405,7 @@ browserWorkerPolyFill(self);
|
|
|
33427
33405
|
return h.type === "audio" ? l(h, v) : d(h, v);
|
|
33428
33406
|
};
|
|
33429
33407
|
})();
|
|
33430
|
-
var
|
|
33408
|
+
var Be = {
|
|
33431
33409
|
ftyp: m,
|
|
33432
33410
|
mdat: g,
|
|
33433
33411
|
moof: S,
|
|
@@ -33449,7 +33427,7 @@ browserWorkerPolyFill(self);
|
|
|
33449
33427
|
}, et = function(l) {
|
|
33450
33428
|
var d;
|
|
33451
33429
|
return !l[0][0].keyFrame && l.length > 1 && (d = l.shift(), l.byteLength -= d.byteLength, l.nalCount -= d.nalCount, l[0][0].dts = d.dts, l[0][0].pts = d.pts, l[0][0].duration += d.duration), l;
|
|
33452
|
-
},
|
|
33430
|
+
}, lt = function() {
|
|
33453
33431
|
return {
|
|
33454
33432
|
size: 0,
|
|
33455
33433
|
flags: {
|
|
@@ -33462,7 +33440,7 @@ browserWorkerPolyFill(self);
|
|
|
33462
33440
|
}
|
|
33463
33441
|
};
|
|
33464
33442
|
}, ct = function(l, d) {
|
|
33465
|
-
var f =
|
|
33443
|
+
var f = lt();
|
|
33466
33444
|
return f.dataOffset = d, f.compositionTimeOffset = l.pts - l.dts, f.duration = l.duration, f.size = 4 * l.length, f.size += l.byteLength, l.keyFrame && (f.flags.dependsOn = 2, f.flags.isNonSyncSample = 0), f;
|
|
33467
33445
|
}, ft = function(l, d) {
|
|
33468
33446
|
var f, h, v, y, M, q = d || 0, X = [];
|
|
@@ -33470,14 +33448,14 @@ browserWorkerPolyFill(self);
|
|
|
33470
33448
|
for (y = l[f], h = 0; h < y.length; h++)
|
|
33471
33449
|
M = y[h], v = ct(M, q), q += v.size, X.push(v);
|
|
33472
33450
|
return X;
|
|
33473
|
-
},
|
|
33451
|
+
}, rt = function(l) {
|
|
33474
33452
|
var d, f, h, v, y, M, q = 0, X = l.byteLength, Z = l.nalCount, ae = X + 4 * Z, me = new Uint8Array(ae), Pe = new DataView(me.buffer);
|
|
33475
33453
|
for (d = 0; d < l.length; d++)
|
|
33476
33454
|
for (v = l[d], f = 0; f < v.length; f++)
|
|
33477
33455
|
for (y = v[f], h = 0; h < y.length; h++)
|
|
33478
33456
|
M = y[h], Pe.setUint32(q, M.data.byteLength), q += 4, me.set(M.data, q), q += M.data.byteLength;
|
|
33479
33457
|
return me;
|
|
33480
|
-
},
|
|
33458
|
+
}, at = function(l, d) {
|
|
33481
33459
|
var f, h = d || 0, v = [];
|
|
33482
33460
|
return f = ct(l, h), v.push(f), v;
|
|
33483
33461
|
}, dt = function(l) {
|
|
@@ -33490,10 +33468,10 @@ browserWorkerPolyFill(self);
|
|
|
33490
33468
|
groupFramesIntoGops: Ze,
|
|
33491
33469
|
extendFirstKeyFrame: et,
|
|
33492
33470
|
generateSampleTable: ft,
|
|
33493
|
-
concatenateNalData:
|
|
33494
|
-
generateSampleTableForFrame:
|
|
33471
|
+
concatenateNalData: rt,
|
|
33472
|
+
generateSampleTableForFrame: at,
|
|
33495
33473
|
concatenateNalDataForFrame: dt
|
|
33496
|
-
}, Re = [33, 16, 5, 32, 164, 27],
|
|
33474
|
+
}, Re = [33, 16, 5, 32, 164, 27], Ye = [33, 65, 108, 84, 1, 2, 4, 8, 168, 2, 4, 8, 17, 191, 252], Te = function(l) {
|
|
33497
33475
|
for (var d = []; l--; )
|
|
33498
33476
|
d.push(0);
|
|
33499
33477
|
return d;
|
|
@@ -33503,50 +33481,50 @@ browserWorkerPolyFill(self);
|
|
|
33503
33481
|
return h.concat(v);
|
|
33504
33482
|
}, [])), d;
|
|
33505
33483
|
}, {});
|
|
33506
|
-
},
|
|
33507
|
-
if (!
|
|
33484
|
+
}, ut, Tt = function() {
|
|
33485
|
+
if (!ut) {
|
|
33508
33486
|
var l = {
|
|
33509
|
-
96e3: [Re, [227, 64],
|
|
33510
|
-
88200: [Re, [231],
|
|
33511
|
-
64e3: [Re, [248, 192],
|
|
33512
|
-
48e3: [Re, [255, 192],
|
|
33513
|
-
44100: [Re, [255, 192],
|
|
33514
|
-
32e3: [Re, [255, 192],
|
|
33515
|
-
24e3: [Re, [255, 192],
|
|
33516
|
-
16e3: [Re, [255, 192],
|
|
33517
|
-
12e3: [
|
|
33518
|
-
11025: [
|
|
33519
|
-
8e3: [
|
|
33487
|
+
96e3: [Re, [227, 64], Te(154), [56]],
|
|
33488
|
+
88200: [Re, [231], Te(170), [56]],
|
|
33489
|
+
64e3: [Re, [248, 192], Te(240), [56]],
|
|
33490
|
+
48e3: [Re, [255, 192], Te(268), [55, 148, 128], Te(54), [112]],
|
|
33491
|
+
44100: [Re, [255, 192], Te(268), [55, 163, 128], Te(84), [112]],
|
|
33492
|
+
32e3: [Re, [255, 192], Te(268), [55, 234], Te(226), [112]],
|
|
33493
|
+
24e3: [Re, [255, 192], Te(268), [55, 255, 128], Te(268), [111, 112], Te(126), [224]],
|
|
33494
|
+
16e3: [Re, [255, 192], Te(268), [55, 255, 128], Te(268), [111, 255], Te(269), [223, 108], Te(195), [1, 192]],
|
|
33495
|
+
12e3: [Ye, Te(268), [3, 127, 248], Te(268), [6, 255, 240], Te(268), [13, 255, 224], Te(268), [27, 253, 128], Te(259), [56]],
|
|
33496
|
+
11025: [Ye, Te(268), [3, 127, 248], Te(268), [6, 255, 240], Te(268), [13, 255, 224], Te(268), [27, 255, 192], Te(268), [55, 175, 128], Te(108), [112]],
|
|
33497
|
+
8e3: [Ye, Te(268), [3, 121, 16], Te(47), [7]]
|
|
33520
33498
|
};
|
|
33521
|
-
|
|
33499
|
+
ut = je(l);
|
|
33522
33500
|
}
|
|
33523
|
-
return
|
|
33524
|
-
}, we = 9e4, ue, fe,
|
|
33501
|
+
return ut;
|
|
33502
|
+
}, we = 9e4, ue, fe, ye, Se, Fe, ht, kt;
|
|
33525
33503
|
ue = function(l) {
|
|
33526
33504
|
return l * we;
|
|
33527
33505
|
}, fe = function(l, d) {
|
|
33528
33506
|
return l * d;
|
|
33529
|
-
},
|
|
33507
|
+
}, ye = function(l) {
|
|
33530
33508
|
return l / we;
|
|
33531
33509
|
}, Se = function(l, d) {
|
|
33532
33510
|
return l / d;
|
|
33533
33511
|
}, Fe = function(l, d) {
|
|
33534
33512
|
return ue(Se(l, d));
|
|
33535
33513
|
}, ht = function(l, d) {
|
|
33536
|
-
return fe(
|
|
33514
|
+
return fe(ye(l), d);
|
|
33537
33515
|
}, kt = function(l, d, f) {
|
|
33538
|
-
return
|
|
33516
|
+
return ye(f ? l : l - d);
|
|
33539
33517
|
};
|
|
33540
|
-
var
|
|
33518
|
+
var it = {
|
|
33541
33519
|
ONE_SECOND_IN_TS: we,
|
|
33542
33520
|
secondsToVideoTs: ue,
|
|
33543
33521
|
secondsToAudioTs: fe,
|
|
33544
|
-
videoTsToSeconds:
|
|
33522
|
+
videoTsToSeconds: ye,
|
|
33545
33523
|
audioTsToSeconds: Se,
|
|
33546
33524
|
audioTsToVideoTs: Fe,
|
|
33547
33525
|
videoTsToAudioTs: ht,
|
|
33548
33526
|
metadataTsToSeconds: kt
|
|
33549
|
-
}, Ai = Tt, ei =
|
|
33527
|
+
}, Ai = Tt, ei = it, ki = function(l) {
|
|
33550
33528
|
var d, f, h = 0;
|
|
33551
33529
|
for (d = 0; d < l.length; d++)
|
|
33552
33530
|
f = l[d], h += f.data.byteLength;
|
|
@@ -33585,7 +33563,7 @@ browserWorkerPolyFill(self);
|
|
|
33585
33563
|
trimAdtsFramesByEarliestDts: qt,
|
|
33586
33564
|
generateSampleTable: Fi,
|
|
33587
33565
|
concatenateFrameData: ni
|
|
33588
|
-
}, ri =
|
|
33566
|
+
}, ri = it.ONE_SECOND_IN_TS, bs = function(l, d) {
|
|
33589
33567
|
typeof d.pts == "number" && (l.timelineStartInfo.pts === void 0 && (l.timelineStartInfo.pts = d.pts), l.minSegmentPts === void 0 ? l.minSegmentPts = d.pts : l.minSegmentPts = Math.min(l.minSegmentPts, d.pts), l.maxSegmentPts === void 0 ? l.maxSegmentPts = d.pts : l.maxSegmentPts = Math.max(l.maxSegmentPts, d.pts)), typeof d.dts == "number" && (l.timelineStartInfo.dts === void 0 && (l.timelineStartInfo.dts = d.dts), l.minSegmentDts === void 0 ? l.minSegmentDts = d.dts : l.minSegmentDts = Math.min(l.minSegmentDts, d.dts), l.maxSegmentDts === void 0 ? l.maxSegmentDts = d.dts : l.maxSegmentDts = Math.max(l.maxSegmentDts, d.dts));
|
|
33590
33568
|
}, C = function(l) {
|
|
33591
33569
|
delete l.minSegmentDts, delete l.maxSegmentDts, delete l.minSegmentPts, delete l.maxSegmentPts;
|
|
@@ -33596,7 +33574,7 @@ browserWorkerPolyFill(self);
|
|
|
33596
33574
|
clearDtsInfo: C,
|
|
33597
33575
|
calculateTrackBaseMediaDecodeTime: k,
|
|
33598
33576
|
collectDtsInfo: bs
|
|
33599
|
-
}, de = 4, Ce = 128,
|
|
33577
|
+
}, de = 4, Ce = 128, ze = function(l) {
|
|
33600
33578
|
for (var d = 0, f = {
|
|
33601
33579
|
payloadType: -1,
|
|
33602
33580
|
payloadSize: 0
|
|
@@ -33639,7 +33617,7 @@ browserWorkerPolyFill(self);
|
|
|
33639
33617
|
M === f[0] && (M++, f.shift()), y[h] = l[M];
|
|
33640
33618
|
return y;
|
|
33641
33619
|
}, ai = {
|
|
33642
|
-
parseSei:
|
|
33620
|
+
parseSei: ze,
|
|
33643
33621
|
parseUserData: _t,
|
|
33644
33622
|
parseCaptionPackets: Ht,
|
|
33645
33623
|
discardEmulationPreventionBytes: di,
|
|
@@ -33654,7 +33632,7 @@ browserWorkerPolyFill(self);
|
|
|
33654
33632
|
// eslint-disable-line no-use-before-define
|
|
33655
33633
|
new Oe(1, 1)
|
|
33656
33634
|
// eslint-disable-line no-use-before-define
|
|
33657
|
-
], this.parse708captions_ && (this.cc708Stream_ = new
|
|
33635
|
+
], this.parse708captions_ && (this.cc708Stream_ = new st({
|
|
33658
33636
|
captionServices: l.captionServices
|
|
33659
33637
|
})), this.reset(), this.ccStreams_.forEach(function(d) {
|
|
33660
33638
|
d.on("data", this.trigger.bind(this, "data")), d.on("partialdone", this.trigger.bind(this, "partialdone")), d.on("done", this.trigger.bind(this, "done"));
|
|
@@ -33817,8 +33795,8 @@ browserWorkerPolyFill(self);
|
|
|
33817
33795
|
});
|
|
33818
33796
|
}
|
|
33819
33797
|
};
|
|
33820
|
-
var
|
|
33821
|
-
l = l || {},
|
|
33798
|
+
var st = function(l) {
|
|
33799
|
+
l = l || {}, st.prototype.init.call(this);
|
|
33822
33800
|
var d = this, f = l.captionServices || {}, h = {}, v;
|
|
33823
33801
|
Object.keys(f).forEach((y) => {
|
|
33824
33802
|
v = f[y], /^SERVICE/.test(y) && (h[y] = v.encoding);
|
|
@@ -33826,116 +33804,116 @@ browserWorkerPolyFill(self);
|
|
|
33826
33804
|
y.type === 3 ? (d.new708Packet(), d.add708Bytes(y)) : (d.current708Packet === null && d.new708Packet(), d.add708Bytes(y));
|
|
33827
33805
|
};
|
|
33828
33806
|
};
|
|
33829
|
-
|
|
33807
|
+
st.prototype = new ti(), st.prototype.new708Packet = function() {
|
|
33830
33808
|
this.current708Packet !== null && this.push708Packet(), this.current708Packet = {
|
|
33831
33809
|
data: [],
|
|
33832
33810
|
ptsVals: []
|
|
33833
33811
|
};
|
|
33834
|
-
},
|
|
33812
|
+
}, st.prototype.add708Bytes = function(l) {
|
|
33835
33813
|
var d = l.ccData, f = d >>> 8, h = d & 255;
|
|
33836
33814
|
this.current708Packet.ptsVals.push(l.pts), this.current708Packet.data.push(f), this.current708Packet.data.push(h);
|
|
33837
|
-
},
|
|
33815
|
+
}, st.prototype.push708Packet = function() {
|
|
33838
33816
|
var l = this.current708Packet, d = l.data, f = null, h = null, v = 0, y = d[v++];
|
|
33839
33817
|
for (l.seq = y >> 6, l.sizeCode = y & 63; v < d.length; v++)
|
|
33840
33818
|
y = d[v++], f = y >> 5, h = y & 31, f === 7 && h > 0 && (y = d[v++], f = y), this.pushServiceBlock(f, v, h), h > 0 && (v += h - 1);
|
|
33841
|
-
},
|
|
33819
|
+
}, st.prototype.pushServiceBlock = function(l, d, f) {
|
|
33842
33820
|
var h, v = d, y = this.current708Packet.data, M = this.services[l];
|
|
33843
33821
|
for (M || (M = this.initService(l, v)); v < d + f && v < y.length; v++)
|
|
33844
33822
|
h = y[v], fi(h) ? v = this.handleText(v, M) : h === 24 ? v = this.multiByteCharacter(v, M) : h === 16 ? v = this.extendedCommands(v, M) : 128 <= h && h <= 135 ? v = this.setCurrentWindow(v, M) : 152 <= h && h <= 159 ? v = this.defineWindow(v, M) : h === 136 ? v = this.clearWindows(v, M) : h === 140 ? v = this.deleteWindows(v, M) : h === 137 ? v = this.displayWindows(v, M) : h === 138 ? v = this.hideWindows(v, M) : h === 139 ? v = this.toggleWindows(v, M) : h === 151 ? v = this.setWindowAttributes(v, M) : h === 144 ? v = this.setPenAttributes(v, M) : h === 145 ? v = this.setPenColor(v, M) : h === 146 ? v = this.setPenLocation(v, M) : h === 143 ? M = this.reset(v, M) : h === 8 ? M.currentWindow.backspace() : h === 12 ? M.currentWindow.clearText() : h === 13 ? M.currentWindow.pendingNewLine = !0 : h === 14 ? M.currentWindow.clearText() : h === 141 && v++;
|
|
33845
|
-
},
|
|
33823
|
+
}, st.prototype.extendedCommands = function(l, d) {
|
|
33846
33824
|
var f = this.current708Packet.data, h = f[++l];
|
|
33847
33825
|
return fi(h) && (l = this.handleText(l, d, {
|
|
33848
33826
|
isExtended: !0
|
|
33849
33827
|
})), l;
|
|
33850
|
-
},
|
|
33828
|
+
}, st.prototype.getPts = function(l) {
|
|
33851
33829
|
return this.current708Packet.ptsVals[Math.floor(l / 2)];
|
|
33852
|
-
},
|
|
33830
|
+
}, st.prototype.initService = function(l, d) {
|
|
33853
33831
|
var h = "SERVICE" + l, f = this, h, v;
|
|
33854
33832
|
return h in this.serviceEncodings && (v = this.serviceEncodings[h]), this.services[l] = new wt(l, v, f), this.services[l].init(this.getPts(d), function(y) {
|
|
33855
33833
|
f.flushDisplayed(y, f.services[l]);
|
|
33856
33834
|
}), this.services[l];
|
|
33857
|
-
},
|
|
33835
|
+
}, st.prototype.handleText = function(l, d, f) {
|
|
33858
33836
|
var h = f && f.isExtended, v = f && f.isMultiByte, y = this.current708Packet.data, M = h ? 4096 : 0, q = y[l], X = y[l + 1], Z = d.currentWindow, ae, me;
|
|
33859
|
-
function Pe(
|
|
33860
|
-
return
|
|
33837
|
+
function Pe(be) {
|
|
33838
|
+
return be.map((Ge) => ("0" + (Ge & 255).toString(16)).slice(-2)).join("");
|
|
33861
33839
|
}
|
|
33862
33840
|
if (v ? (me = [q, X], l++) : me = [q], d.textDecoder_ && !h)
|
|
33863
33841
|
ae = d.textDecoder_.decode(new Uint8Array(me));
|
|
33864
33842
|
else if (v) {
|
|
33865
|
-
const
|
|
33866
|
-
ae = String.fromCharCode(parseInt(
|
|
33843
|
+
const be = Pe(me);
|
|
33844
|
+
ae = String.fromCharCode(parseInt(be, 16));
|
|
33867
33845
|
} else
|
|
33868
33846
|
ae = hi(M | q);
|
|
33869
33847
|
return Z.pendingNewLine && !Z.isEmpty() && Z.newLine(this.getPts(l)), Z.pendingNewLine = !1, Z.addText(ae), l;
|
|
33870
|
-
},
|
|
33848
|
+
}, st.prototype.multiByteCharacter = function(l, d) {
|
|
33871
33849
|
var f = this.current708Packet.data, h = f[l + 1], v = f[l + 2];
|
|
33872
33850
|
return fi(h) && fi(v) && (l = this.handleText(++l, d, {
|
|
33873
33851
|
isMultiByte: !0
|
|
33874
33852
|
})), l;
|
|
33875
|
-
},
|
|
33853
|
+
}, st.prototype.setCurrentWindow = function(l, d) {
|
|
33876
33854
|
var f = this.current708Packet.data, h = f[l], v = h & 7;
|
|
33877
33855
|
return d.setCurrentWindow(v), l;
|
|
33878
|
-
},
|
|
33856
|
+
}, st.prototype.defineWindow = function(l, d) {
|
|
33879
33857
|
var f = this.current708Packet.data, h = f[l], v = h & 7;
|
|
33880
33858
|
d.setCurrentWindow(v);
|
|
33881
33859
|
var y = d.currentWindow;
|
|
33882
33860
|
return h = f[++l], y.visible = (h & 32) >> 5, y.rowLock = (h & 16) >> 4, y.columnLock = (h & 8) >> 3, y.priority = h & 7, h = f[++l], y.relativePositioning = (h & 128) >> 7, y.anchorVertical = h & 127, h = f[++l], y.anchorHorizontal = h, h = f[++l], y.anchorPoint = (h & 240) >> 4, y.rowCount = h & 15, h = f[++l], y.columnCount = h & 63, h = f[++l], y.windowStyle = (h & 56) >> 3, y.penStyle = h & 7, y.virtualRowCount = y.rowCount + 1, l;
|
|
33883
|
-
},
|
|
33861
|
+
}, st.prototype.setWindowAttributes = function(l, d) {
|
|
33884
33862
|
var f = this.current708Packet.data, h = f[l], v = d.currentWindow.winAttr;
|
|
33885
33863
|
return h = f[++l], v.fillOpacity = (h & 192) >> 6, v.fillRed = (h & 48) >> 4, v.fillGreen = (h & 12) >> 2, v.fillBlue = h & 3, h = f[++l], v.borderType = (h & 192) >> 6, v.borderRed = (h & 48) >> 4, v.borderGreen = (h & 12) >> 2, v.borderBlue = h & 3, h = f[++l], v.borderType += (h & 128) >> 5, v.wordWrap = (h & 64) >> 6, v.printDirection = (h & 48) >> 4, v.scrollDirection = (h & 12) >> 2, v.justify = h & 3, h = f[++l], v.effectSpeed = (h & 240) >> 4, v.effectDirection = (h & 12) >> 2, v.displayEffect = h & 3, l;
|
|
33886
|
-
},
|
|
33864
|
+
}, st.prototype.flushDisplayed = function(l, d) {
|
|
33887
33865
|
for (var f = [], h = 0; h < 8; h++)
|
|
33888
33866
|
d.windows[h].visible && !d.windows[h].isEmpty() && f.push(d.windows[h].getText());
|
|
33889
33867
|
d.endPts = l, d.text = f.join(`
|
|
33890
33868
|
|
|
33891
33869
|
`), this.pushCaption(d), d.startPts = l;
|
|
33892
|
-
},
|
|
33870
|
+
}, st.prototype.pushCaption = function(l) {
|
|
33893
33871
|
l.text !== "" && (this.trigger("data", {
|
|
33894
33872
|
startPts: l.startPts,
|
|
33895
33873
|
endPts: l.endPts,
|
|
33896
33874
|
text: l.text,
|
|
33897
33875
|
stream: "cc708_" + l.serviceNum
|
|
33898
33876
|
}), l.text = "", l.startPts = l.endPts);
|
|
33899
|
-
},
|
|
33877
|
+
}, st.prototype.displayWindows = function(l, d) {
|
|
33900
33878
|
var f = this.current708Packet.data, h = f[++l], v = this.getPts(l);
|
|
33901
33879
|
this.flushDisplayed(v, d);
|
|
33902
33880
|
for (var y = 0; y < 8; y++)
|
|
33903
33881
|
h & 1 << y && (d.windows[y].visible = 1);
|
|
33904
33882
|
return l;
|
|
33905
|
-
},
|
|
33883
|
+
}, st.prototype.hideWindows = function(l, d) {
|
|
33906
33884
|
var f = this.current708Packet.data, h = f[++l], v = this.getPts(l);
|
|
33907
33885
|
this.flushDisplayed(v, d);
|
|
33908
33886
|
for (var y = 0; y < 8; y++)
|
|
33909
33887
|
h & 1 << y && (d.windows[y].visible = 0);
|
|
33910
33888
|
return l;
|
|
33911
|
-
},
|
|
33889
|
+
}, st.prototype.toggleWindows = function(l, d) {
|
|
33912
33890
|
var f = this.current708Packet.data, h = f[++l], v = this.getPts(l);
|
|
33913
33891
|
this.flushDisplayed(v, d);
|
|
33914
33892
|
for (var y = 0; y < 8; y++)
|
|
33915
33893
|
h & 1 << y && (d.windows[y].visible ^= 1);
|
|
33916
33894
|
return l;
|
|
33917
|
-
},
|
|
33895
|
+
}, st.prototype.clearWindows = function(l, d) {
|
|
33918
33896
|
var f = this.current708Packet.data, h = f[++l], v = this.getPts(l);
|
|
33919
33897
|
this.flushDisplayed(v, d);
|
|
33920
33898
|
for (var y = 0; y < 8; y++)
|
|
33921
33899
|
h & 1 << y && d.windows[y].clearText();
|
|
33922
33900
|
return l;
|
|
33923
|
-
},
|
|
33901
|
+
}, st.prototype.deleteWindows = function(l, d) {
|
|
33924
33902
|
var f = this.current708Packet.data, h = f[++l], v = this.getPts(l);
|
|
33925
33903
|
this.flushDisplayed(v, d);
|
|
33926
33904
|
for (var y = 0; y < 8; y++)
|
|
33927
33905
|
h & 1 << y && d.windows[y].reset();
|
|
33928
33906
|
return l;
|
|
33929
|
-
},
|
|
33907
|
+
}, st.prototype.setPenAttributes = function(l, d) {
|
|
33930
33908
|
var f = this.current708Packet.data, h = f[l], v = d.currentWindow.penAttr;
|
|
33931
33909
|
return h = f[++l], v.textTag = (h & 240) >> 4, v.offset = (h & 12) >> 2, v.penSize = h & 3, h = f[++l], v.italics = (h & 128) >> 7, v.underline = (h & 64) >> 6, v.edgeType = (h & 56) >> 3, v.fontStyle = h & 7, l;
|
|
33932
|
-
},
|
|
33910
|
+
}, st.prototype.setPenColor = function(l, d) {
|
|
33933
33911
|
var f = this.current708Packet.data, h = f[l], v = d.currentWindow.penColor;
|
|
33934
33912
|
return h = f[++l], v.fgOpacity = (h & 192) >> 6, v.fgRed = (h & 48) >> 4, v.fgGreen = (h & 12) >> 2, v.fgBlue = h & 3, h = f[++l], v.bgOpacity = (h & 192) >> 6, v.bgRed = (h & 48) >> 4, v.bgGreen = (h & 12) >> 2, v.bgBlue = h & 3, h = f[++l], v.edgeRed = (h & 48) >> 4, v.edgeGreen = (h & 12) >> 2, v.edgeBlue = h & 3, l;
|
|
33935
|
-
},
|
|
33913
|
+
}, st.prototype.setPenLocation = function(l, d) {
|
|
33936
33914
|
var f = this.current708Packet.data, h = f[l], v = d.currentWindow.penLoc;
|
|
33937
33915
|
return d.currentWindow.pendingNewLine = !0, h = f[++l], v.row = h & 15, h = f[++l], v.column = h & 63, l;
|
|
33938
|
-
},
|
|
33916
|
+
}, st.prototype.reset = function(l, d) {
|
|
33939
33917
|
var f = this.getPts(l);
|
|
33940
33918
|
return this.flushDisplayed(f, d), this.initService(d.serviceNum, l);
|
|
33941
33919
|
};
|
|
@@ -34282,7 +34260,7 @@ browserWorkerPolyFill(self);
|
|
|
34282
34260
|
var re = {
|
|
34283
34261
|
CaptionStream: pt,
|
|
34284
34262
|
Cea608Stream: Oe,
|
|
34285
|
-
Cea708Stream:
|
|
34263
|
+
Cea708Stream: st
|
|
34286
34264
|
}, Ee = {
|
|
34287
34265
|
H264_STREAM_TYPE: 27,
|
|
34288
34266
|
ADTS_STREAM_TYPE: 15,
|
|
@@ -34430,8 +34408,8 @@ browserWorkerPolyFill(self);
|
|
|
34430
34408
|
id: Pe,
|
|
34431
34409
|
data: q.data.subarray(X + 10, X + Z + 10)
|
|
34432
34410
|
}, ae.key = ae.id, Ms.frameParsers[ae.id] ? Ms.frameParsers[ae.id](ae) : ae.id[0] === "T" ? Ms.frameParsers["T*"](ae) : ae.id[0] === "W" && Ms.frameParsers["W*"](ae), ae.owner === "com.apple.streaming.transportStreamTimestamp") {
|
|
34433
|
-
var
|
|
34434
|
-
|
|
34411
|
+
var be = ae.data, Ge = (be[3] & 1) << 30 | be[4] << 22 | be[5] << 14 | be[6] << 6 | be[7] >>> 2;
|
|
34412
|
+
Ge *= 4, Ge += be[7] & 3, ae.timeStamp = Ge, q.pts === void 0 && q.dts === void 0 && (q.pts = ae.timeStamp, q.dts = ae.timeStamp), this.trigger("timestamp", ae);
|
|
34435
34413
|
}
|
|
34436
34414
|
q.frames.push(ae), X += 10, X += Z;
|
|
34437
34415
|
} while (X < f);
|
|
@@ -34511,10 +34489,10 @@ browserWorkerPolyFill(self);
|
|
|
34511
34489
|
}, q = function(X, Z, ae) {
|
|
34512
34490
|
var me = new Uint8Array(X.size), Pe = {
|
|
34513
34491
|
type: Z
|
|
34514
|
-
},
|
|
34492
|
+
}, be = 0, Ge = 0, tt = !1, Xt;
|
|
34515
34493
|
if (!(!X.data.length || X.size < 9)) {
|
|
34516
|
-
for (Pe.trackId = X.data[0].pid,
|
|
34517
|
-
Xt = X.data[
|
|
34494
|
+
for (Pe.trackId = X.data[0].pid, be = 0; be < X.data.length; be++)
|
|
34495
|
+
Xt = X.data[be], me.set(Xt.data, Ge), Ge += Xt.data.byteLength;
|
|
34518
34496
|
M(me, Pe), tt = Z === "video" || Pe.packetLength <= X.size, (ae || tt) && (X.size = 0, X.data.length = 0), tt && l.trigger("data", Pe);
|
|
34519
34497
|
}
|
|
34520
34498
|
};
|
|
@@ -34604,7 +34582,7 @@ browserWorkerPolyFill(self);
|
|
|
34604
34582
|
};
|
|
34605
34583
|
for (var Go in Qi)
|
|
34606
34584
|
Qi.hasOwnProperty(Go) && (xc[Go] = Qi[Go]);
|
|
34607
|
-
var bm = xc, Tm = t, xm =
|
|
34585
|
+
var bm = xc, Tm = t, xm = it.ONE_SECOND_IN_TS, ca, Sc = [96e3, 88200, 64e3, 48e3, 44100, 32e3, 24e3, 22050, 16e3, 12e3, 11025, 8e3, 7350];
|
|
34608
34586
|
ca = function(l) {
|
|
34609
34587
|
var d, f = 0;
|
|
34610
34588
|
ca.prototype.init.call(this), this.skipWarn_ = function(h, v) {
|
|
@@ -34795,31 +34773,31 @@ browserWorkerPolyFill(self);
|
|
|
34795
34773
|
}, this.endTimeline = function() {
|
|
34796
34774
|
l.endTimeline();
|
|
34797
34775
|
}, q = function(X, Z) {
|
|
34798
|
-
var ae = 8, me = 8, Pe,
|
|
34776
|
+
var ae = 8, me = 8, Pe, be;
|
|
34799
34777
|
for (Pe = 0; Pe < X; Pe++)
|
|
34800
|
-
me !== 0 && (
|
|
34778
|
+
me !== 0 && (be = Z.readExpGolomb(), me = (ae + be + 256) % 256), ae = me === 0 ? ae : me;
|
|
34801
34779
|
}, y = function(X) {
|
|
34802
|
-
for (var Z = X.byteLength, ae = [], me = 1, Pe,
|
|
34780
|
+
for (var Z = X.byteLength, ae = [], me = 1, Pe, be; me < Z - 2; )
|
|
34803
34781
|
X[me] === 0 && X[me + 1] === 0 && X[me + 2] === 3 ? (ae.push(me + 2), me += 2) : me++;
|
|
34804
34782
|
if (ae.length === 0)
|
|
34805
34783
|
return X;
|
|
34806
|
-
Pe = Z - ae.length,
|
|
34807
|
-
var
|
|
34808
|
-
for (me = 0; me < Pe;
|
|
34809
|
-
|
|
34810
|
-
return
|
|
34784
|
+
Pe = Z - ae.length, be = new Uint8Array(Pe);
|
|
34785
|
+
var Ge = 0;
|
|
34786
|
+
for (me = 0; me < Pe; Ge++, me++)
|
|
34787
|
+
Ge === ae[0] && (Ge++, ae.shift()), be[me] = X[Ge];
|
|
34788
|
+
return be;
|
|
34811
34789
|
}, M = function(X) {
|
|
34812
|
-
var Z = 0, ae = 0, me = 0, Pe = 0,
|
|
34813
|
-
if (
|
|
34790
|
+
var Z = 0, ae = 0, me = 0, Pe = 0, be, Ge, tt, Xt, Ii, Ns, _r, yr, br, Tr, Ca, It = [1, 1], xr, Ji;
|
|
34791
|
+
if (be = new Em(X), Ge = be.readUnsignedByte(), Xt = be.readUnsignedByte(), tt = be.readUnsignedByte(), be.skipUnsignedExpGolomb(), wc[Ge] && (Ii = be.readUnsignedExpGolomb(), Ii === 3 && be.skipBits(1), be.skipUnsignedExpGolomb(), be.skipUnsignedExpGolomb(), be.skipBits(1), be.readBoolean()))
|
|
34814
34792
|
for (Ca = Ii !== 3 ? 8 : 12, Ji = 0; Ji < Ca; Ji++)
|
|
34815
|
-
|
|
34816
|
-
if (
|
|
34817
|
-
|
|
34793
|
+
be.readBoolean() && (Ji < 6 ? q(16, be) : q(64, be));
|
|
34794
|
+
if (be.skipUnsignedExpGolomb(), Ns = be.readUnsignedExpGolomb(), Ns === 0)
|
|
34795
|
+
be.readUnsignedExpGolomb();
|
|
34818
34796
|
else if (Ns === 1)
|
|
34819
|
-
for (
|
|
34820
|
-
|
|
34821
|
-
if (
|
|
34822
|
-
switch (xr =
|
|
34797
|
+
for (be.skipBits(1), be.skipExpGolomb(), be.skipExpGolomb(), _r = be.readUnsignedExpGolomb(), Ji = 0; Ji < _r; Ji++)
|
|
34798
|
+
be.skipExpGolomb();
|
|
34799
|
+
if (be.skipUnsignedExpGolomb(), be.skipBits(1), yr = be.readUnsignedExpGolomb(), br = be.readUnsignedExpGolomb(), Tr = be.readBits(1), Tr === 0 && be.skipBits(1), be.skipBits(1), be.readBoolean() && (Z = be.readUnsignedExpGolomb(), ae = be.readUnsignedExpGolomb(), me = be.readUnsignedExpGolomb(), Pe = be.readUnsignedExpGolomb()), be.readBoolean() && be.readBoolean()) {
|
|
34800
|
+
switch (xr = be.readUnsignedByte(), xr) {
|
|
34823
34801
|
case 1:
|
|
34824
34802
|
It = [1, 1];
|
|
34825
34803
|
break;
|
|
@@ -34869,14 +34847,14 @@ browserWorkerPolyFill(self);
|
|
|
34869
34847
|
It = [2, 1];
|
|
34870
34848
|
break;
|
|
34871
34849
|
case 255: {
|
|
34872
|
-
It = [
|
|
34850
|
+
It = [be.readUnsignedByte() << 8 | be.readUnsignedByte(), be.readUnsignedByte() << 8 | be.readUnsignedByte()];
|
|
34873
34851
|
break;
|
|
34874
34852
|
}
|
|
34875
34853
|
}
|
|
34876
34854
|
It && It[0] / It[1];
|
|
34877
34855
|
}
|
|
34878
34856
|
return {
|
|
34879
|
-
profileIdc:
|
|
34857
|
+
profileIdc: Ge,
|
|
34880
34858
|
levelIdc: tt,
|
|
34881
34859
|
profileCompatibility: Xt,
|
|
34882
34860
|
width: (yr + 1) * 16 - Z * 2 - ae * 2,
|
|
@@ -34985,7 +34963,7 @@ browserWorkerPolyFill(self);
|
|
|
34985
34963
|
l = new Uint8Array(), this.trigger("endedtimeline");
|
|
34986
34964
|
};
|
|
34987
34965
|
}, fa.prototype = new Rm();
|
|
34988
|
-
var Nm = fa, Bm = ["audioobjecttype", "channelcount", "samplerate", "samplingfrequencyindex", "samplesize"], Fm = Bm, $m = ["width", "height", "profileIdc", "levelIdc", "profileCompatibility", "sarRatio"], Um = $m, pa = t, hr =
|
|
34966
|
+
var Nm = fa, Bm = ["audioobjecttype", "channelcount", "samplerate", "samplingfrequencyindex", "samplesize"], Fm = Bm, $m = ["width", "height", "profileIdc", "levelIdc", "profileCompatibility", "sarRatio"], Um = $m, pa = t, hr = Be, fr = Vt, ma = ys, Zi = J, xs = bm, ga = it, Lc = Sm, Vm = wm.H264Stream, qm = Nm, jm = Wo.isLikelyAacData, Hm = it.ONE_SECOND_IN_TS, Oc = Fm, Pc = Um, va, pr, _a, Zs, zm = function(l, d) {
|
|
34989
34967
|
d.stream = l, this.trigger("log", d);
|
|
34990
34968
|
}, Mc = function(l, d) {
|
|
34991
34969
|
for (var f = Object.keys(d), h = 0; h < f.length; h++) {
|
|
@@ -35028,12 +35006,12 @@ browserWorkerPolyFill(self);
|
|
|
35028
35006
|
}, this.setAudioAppendStart = function(q) {
|
|
35029
35007
|
y = q;
|
|
35030
35008
|
}, this.flush = function() {
|
|
35031
|
-
var q, X, Z, ae, me, Pe,
|
|
35009
|
+
var q, X, Z, ae, me, Pe, be;
|
|
35032
35010
|
if (f.length === 0) {
|
|
35033
35011
|
this.trigger("done", "AudioSegmentStream");
|
|
35034
35012
|
return;
|
|
35035
35013
|
}
|
|
35036
|
-
q = ma.trimAdtsFramesByEarliestDts(f, l, v), l.baseMediaDecodeTime = Zi.calculateTrackBaseMediaDecodeTime(l, d.keepOriginalTimestamps),
|
|
35014
|
+
q = ma.trimAdtsFramesByEarliestDts(f, l, v), l.baseMediaDecodeTime = Zi.calculateTrackBaseMediaDecodeTime(l, d.keepOriginalTimestamps), be = ma.prefixWithSilence(l, q, y, M), l.samples = ma.generateSampleTable(q), Z = hr.mdat(ma.concatenateFrameData(q)), f = [], X = hr.moof(h, [l]), ae = new Uint8Array(X.byteLength + Z.byteLength), h++, ae.set(X), ae.set(Z, X.byteLength), Zi.clearDtsInfo(l), me = Math.ceil(Hm * 1024 / l.samplerate), q.length && (Pe = q.length * me, this.trigger("segmentTimingInfo", Nc(
|
|
35037
35015
|
// The audio track's baseMediaDecodeTime is in audio clock cycles, but the
|
|
35038
35016
|
// frame info is in video clock cycles. Convert to match expectation of
|
|
35039
35017
|
// listeners (that all timestamps will be based on video clock cycles).
|
|
@@ -35043,7 +35021,7 @@ browserWorkerPolyFill(self);
|
|
|
35043
35021
|
q[0].pts,
|
|
35044
35022
|
q[0].dts + Pe,
|
|
35045
35023
|
q[0].pts + Pe,
|
|
35046
|
-
|
|
35024
|
+
be || 0
|
|
35047
35025
|
)), this.trigger("timingInfo", {
|
|
35048
35026
|
start: q[0].pts,
|
|
35049
35027
|
end: q[0].pts + Pe
|
|
@@ -35061,13 +35039,13 @@ browserWorkerPolyFill(self);
|
|
|
35061
35039
|
l[X] = y[X];
|
|
35062
35040
|
}, this)), q.nalUnitType === "pic_parameter_set_rbsp" && !M && (M = q.data, l.pps = [q.data]), h.push(q);
|
|
35063
35041
|
}, this.flush = function() {
|
|
35064
|
-
for (var q, X, Z, ae, me, Pe,
|
|
35042
|
+
for (var q, X, Z, ae, me, Pe, be = 0, Ge, tt; h.length && h[0].nalUnitType !== "access_unit_delimiter_rbsp"; )
|
|
35065
35043
|
h.shift();
|
|
35066
35044
|
if (h.length === 0) {
|
|
35067
35045
|
this.resetStream_(), this.trigger("done", "VideoSegmentStream");
|
|
35068
35046
|
return;
|
|
35069
35047
|
}
|
|
35070
|
-
if (q = fr.groupNalsIntoFrames(h), Z = fr.groupFramesIntoGops(q), Z[0][0].keyFrame || (X = this.getGopForFusion_(h[0], l), X ? (
|
|
35048
|
+
if (q = fr.groupNalsIntoFrames(h), Z = fr.groupFramesIntoGops(q), Z[0][0].keyFrame || (X = this.getGopForFusion_(h[0], l), X ? (be = X.duration, Z.unshift(X), Z.byteLength += X.byteLength, Z.nalCount += X.nalCount, Z.pts = X.pts, Z.dts = X.dts, Z.duration += X.duration) : Z = fr.extendFirstKeyFrame(Z)), v.length) {
|
|
35071
35049
|
var Xt;
|
|
35072
35050
|
if (d.alignGopsAtEnd ? Xt = this.alignGopsAtEnd_(Z) : Xt = this.alignGopsAtStart_(Z), !Xt) {
|
|
35073
35051
|
this.gopCache_.unshift({
|
|
@@ -35085,7 +35063,7 @@ browserWorkerPolyFill(self);
|
|
|
35085
35063
|
dts: Ii.dts,
|
|
35086
35064
|
byteLength: Ii.byteLength
|
|
35087
35065
|
};
|
|
35088
|
-
})),
|
|
35066
|
+
})), Ge = Z[0], tt = Z[Z.length - 1], this.trigger("segmentTimingInfo", Nc(l.baseMediaDecodeTime, Ge.dts, Ge.pts, tt.dts + tt.duration, tt.pts + tt.duration, be)), this.trigger("timingInfo", {
|
|
35089
35067
|
start: Z[0].pts,
|
|
35090
35068
|
end: Z[Z.length - 1].pts + Z[Z.length - 1].duration
|
|
35091
35069
|
}), this.gopCache_.unshift({
|
|
@@ -35101,25 +35079,25 @@ browserWorkerPolyFill(self);
|
|
|
35101
35079
|
}, this.resetStream_ = function() {
|
|
35102
35080
|
Zi.clearDtsInfo(l), y = void 0, M = void 0;
|
|
35103
35081
|
}, this.getGopForFusion_ = function(q) {
|
|
35104
|
-
var X = 45e3, Z = 1 / 0, ae, me, Pe,
|
|
35105
|
-
for (
|
|
35106
|
-
|
|
35082
|
+
var X = 45e3, Z = 1 / 0, ae, me, Pe, be, Ge;
|
|
35083
|
+
for (Ge = 0; Ge < this.gopCache_.length; Ge++)
|
|
35084
|
+
be = this.gopCache_[Ge], Pe = be.gop, !(!(l.pps && Rc(l.pps[0], be.pps[0])) || !(l.sps && Rc(l.sps[0], be.sps[0]))) && (Pe.dts < l.timelineStartInfo.dts || (ae = q.dts - Pe.dts - Pe.duration, ae >= -1e4 && ae <= X && (!me || Z > ae) && (me = be, Z = ae)));
|
|
35107
35085
|
return me ? me.gop : null;
|
|
35108
35086
|
}, this.alignGopsAtStart_ = function(q) {
|
|
35109
|
-
var X, Z, ae, me, Pe,
|
|
35110
|
-
for (Pe = q.byteLength,
|
|
35087
|
+
var X, Z, ae, me, Pe, be, Ge, tt;
|
|
35088
|
+
for (Pe = q.byteLength, be = q.nalCount, Ge = q.duration, X = Z = 0; X < v.length && Z < q.length && (ae = v[X], me = q[Z], ae.pts !== me.pts); ) {
|
|
35111
35089
|
if (me.pts > ae.pts) {
|
|
35112
35090
|
X++;
|
|
35113
35091
|
continue;
|
|
35114
35092
|
}
|
|
35115
|
-
Z++, Pe -= me.byteLength,
|
|
35093
|
+
Z++, Pe -= me.byteLength, be -= me.nalCount, Ge -= me.duration;
|
|
35116
35094
|
}
|
|
35117
|
-
return Z === 0 ? q : Z === q.length ? null : (tt = q.slice(Z), tt.byteLength = Pe, tt.duration =
|
|
35095
|
+
return Z === 0 ? q : Z === q.length ? null : (tt = q.slice(Z), tt.byteLength = Pe, tt.duration = Ge, tt.nalCount = be, tt.pts = tt[0].pts, tt.dts = tt[0].dts, tt);
|
|
35118
35096
|
}, this.alignGopsAtEnd_ = function(q) {
|
|
35119
|
-
var X, Z, ae, me, Pe,
|
|
35120
|
-
for (X = v.length - 1, Z = q.length - 1, Pe = null,
|
|
35097
|
+
var X, Z, ae, me, Pe, be;
|
|
35098
|
+
for (X = v.length - 1, Z = q.length - 1, Pe = null, be = !1; X >= 0 && Z >= 0; ) {
|
|
35121
35099
|
if (ae = v[X], me = q[Z], ae.pts === me.pts) {
|
|
35122
|
-
|
|
35100
|
+
be = !0;
|
|
35123
35101
|
break;
|
|
35124
35102
|
}
|
|
35125
35103
|
if (ae.pts > me.pts) {
|
|
@@ -35128,12 +35106,12 @@ browserWorkerPolyFill(self);
|
|
|
35128
35106
|
}
|
|
35129
35107
|
X === v.length - 1 && (Pe = Z), Z--;
|
|
35130
35108
|
}
|
|
35131
|
-
if (!
|
|
35109
|
+
if (!be && Pe === null)
|
|
35132
35110
|
return null;
|
|
35133
|
-
var
|
|
35134
|
-
if (
|
|
35111
|
+
var Ge;
|
|
35112
|
+
if (be ? Ge = Z : Ge = Pe, Ge === 0)
|
|
35135
35113
|
return q;
|
|
35136
|
-
var tt = q.slice(
|
|
35114
|
+
var tt = q.slice(Ge), Xt = tt.reduce(function(Ii, Ns) {
|
|
35137
35115
|
return Ii.byteLength += Ns.byteLength, Ii.duration += Ns.duration, Ii.nalCount += Ns.nalCount, Ii;
|
|
35138
35116
|
}, {
|
|
35139
35117
|
byteLength: 0,
|
|
@@ -35392,8 +35370,8 @@ browserWorkerPolyFill(self);
|
|
|
35392
35370
|
}
|
|
35393
35371
|
var Pe = l[y] || 9e4;
|
|
35394
35372
|
typeof h == "bigint" && (v = Zo.BigInt(v), Pe = Zo.BigInt(Pe));
|
|
35395
|
-
var
|
|
35396
|
-
return typeof
|
|
35373
|
+
var be = (h + v) / Pe;
|
|
35374
|
+
return typeof be == "bigint" && be < Number.MAX_SAFE_INTEGER && (be = Number(be)), be;
|
|
35397
35375
|
}, Xc = function(l) {
|
|
35398
35376
|
var d = $t(l, ["moov", "trak"]), f = [];
|
|
35399
35377
|
return d.forEach(function(h) {
|
|
@@ -35420,8 +35398,8 @@ browserWorkerPolyFill(self);
|
|
|
35420
35398
|
if (ae) {
|
|
35421
35399
|
var me = ae.subarray(8);
|
|
35422
35400
|
v.codec = Tn(me.subarray(4, 8));
|
|
35423
|
-
var Pe = $t(me, [v.codec])[0],
|
|
35424
|
-
Pe && (/^[asm]vc[1-9]$/i.test(v.codec) ? (
|
|
35401
|
+
var Pe = $t(me, [v.codec])[0], be, Ge;
|
|
35402
|
+
Pe && (/^[asm]vc[1-9]$/i.test(v.codec) ? (be = Pe.subarray(78), Ge = Tn(be.subarray(4, 8)), Ge === "avcC" && be.length > 11 ? (v.codec += ".", v.codec += gr(be[9]), v.codec += gr(be[10]), v.codec += gr(be[11])) : v.codec = "avc1.4d400d") : /^mp4[a,v]$/i.test(v.codec) ? (be = Pe.subarray(28), Ge = Tn(be.subarray(4, 8)), Ge === "esds" && be.length > 20 && be[19] !== 0 ? (v.codec += "." + gr(be[19]), v.codec += "." + gr(be[20] >>> 2 & 63).replace(/^0/, "")) : v.codec = "mp4a.40.2") : v.codec = v.codec.toLowerCase());
|
|
35425
35403
|
}
|
|
35426
35404
|
var tt = $t(h, ["mdia", "mdhd"])[0];
|
|
35427
35405
|
tt && (v.timescale = Qo(tt)), f.push(v);
|
|
@@ -35519,11 +35497,11 @@ browserWorkerPolyFill(self);
|
|
|
35519
35497
|
}, Ag = function(l, d) {
|
|
35520
35498
|
var f = {}, h = Cg(l);
|
|
35521
35499
|
return h.forEach(function(v) {
|
|
35522
|
-
var y = v.mdat, M = v.traf, q = Jo(M, ["tfhd"]), X = Sg(q[0]), Z = X.trackId, ae = Jo(M, ["tfdt"]), me = ae.length > 0 ? xg(ae[0]).baseMediaDecodeTime : 0, Pe = Jo(M, ["trun"]),
|
|
35523
|
-
d === Z && Pe.length > 0 && (
|
|
35500
|
+
var y = v.mdat, M = v.traf, q = Jo(M, ["tfhd"]), X = Sg(q[0]), Z = X.trackId, ae = Jo(M, ["tfdt"]), me = ae.length > 0 ? xg(ae[0]).baseMediaDecodeTime : 0, Pe = Jo(M, ["trun"]), be, Ge;
|
|
35501
|
+
d === Z && Pe.length > 0 && (be = Eg(Pe, me, X), Ge = Dg(y, be, Z), f[Z] || (f[Z] = {
|
|
35524
35502
|
seiNals: [],
|
|
35525
35503
|
logs: []
|
|
35526
|
-
}), f[Z].seiNals = f[Z].seiNals.concat(
|
|
35504
|
+
}), f[Z].seiNals = f[Z].seiNals.concat(Ge.seiNals), f[Z].logs = f[Z].logs.concat(Ge.logs));
|
|
35527
35505
|
}), f;
|
|
35528
35506
|
}, kg = function(l, d, f) {
|
|
35529
35507
|
var h;
|
|
@@ -35615,14 +35593,14 @@ browserWorkerPolyFill(self);
|
|
|
35615
35593
|
if (X && (v = Og(X).baseMediaDecodeTime), ae.length && Z) {
|
|
35616
35594
|
const me = Mg(ae, v, Z);
|
|
35617
35595
|
let Pe = 0;
|
|
35618
|
-
me.forEach(function(
|
|
35619
|
-
const
|
|
35596
|
+
me.forEach(function(be) {
|
|
35597
|
+
const Ge = "utf-8", tt = new TextDecoder(Ge), Xt = M.slice(Pe, Pe + be.size);
|
|
35620
35598
|
if (Rs(Xt, ["vtte"])[0]) {
|
|
35621
|
-
Pe +=
|
|
35599
|
+
Pe += be.size;
|
|
35622
35600
|
return;
|
|
35623
35601
|
}
|
|
35624
35602
|
Rs(Xt, ["vttc"]).forEach(function(_r) {
|
|
35625
|
-
const yr = Rs(_r, ["payl"])[0], br = Rs(_r, ["sttg"])[0], Tr =
|
|
35603
|
+
const yr = Rs(_r, ["payl"])[0], br = Rs(_r, ["sttg"])[0], Tr = be.pts / l, Ca = (be.pts + be.duration) / l;
|
|
35626
35604
|
let It, xr;
|
|
35627
35605
|
if (yr)
|
|
35628
35606
|
try {
|
|
@@ -35636,13 +35614,13 @@ browserWorkerPolyFill(self);
|
|
|
35636
35614
|
} catch (Ji) {
|
|
35637
35615
|
console.error(Ji);
|
|
35638
35616
|
}
|
|
35639
|
-
|
|
35617
|
+
be.duration && It && f.push({
|
|
35640
35618
|
cueText: It,
|
|
35641
35619
|
start: Tr,
|
|
35642
35620
|
end: Ca,
|
|
35643
35621
|
settings: xr
|
|
35644
35622
|
});
|
|
35645
|
-
}), Pe +=
|
|
35623
|
+
}), Pe += be.size;
|
|
35646
35624
|
});
|
|
35647
35625
|
}
|
|
35648
35626
|
}), f;
|
|
@@ -35752,7 +35730,7 @@ browserWorkerPolyFill(self);
|
|
|
35752
35730
|
videoPacketContainsKeyFrame: Vg
|
|
35753
35731
|
}, sd = Ee, xn = Nt.handleRollover, xt = {};
|
|
35754
35732
|
xt.ts = qg, xt.aac = Wo;
|
|
35755
|
-
var Js =
|
|
35733
|
+
var Js = it.ONE_SECOND_IN_TS, pi = 188, os = 71, jg = function(l, d) {
|
|
35756
35734
|
for (var f = 0, h = pi, v, y; h < l.byteLength; ) {
|
|
35757
35735
|
if (l[f] === os && l[h] === os) {
|
|
35758
35736
|
switch (v = l.subarray(f, h), y = xt.ts.parseType(v, d.pid), y) {
|
|
@@ -35801,42 +35779,42 @@ browserWorkerPolyFill(self);
|
|
|
35801
35779
|
h--, v--;
|
|
35802
35780
|
}
|
|
35803
35781
|
}, Hg = function(l, d, f) {
|
|
35804
|
-
for (var h = 0, v = pi, y, M, q, X, Z, ae, me, Pe,
|
|
35782
|
+
for (var h = 0, v = pi, y, M, q, X, Z, ae, me, Pe, be = !1, Ge = {
|
|
35805
35783
|
data: [],
|
|
35806
35784
|
size: 0
|
|
35807
35785
|
}; v < l.byteLength; ) {
|
|
35808
35786
|
if (l[h] === os && l[v] === os) {
|
|
35809
35787
|
switch (y = l.subarray(h, v), M = xt.ts.parseType(y, d.pid), M) {
|
|
35810
35788
|
case "pes":
|
|
35811
|
-
if (q = xt.ts.parsePesType(y, d.table), X = xt.ts.parsePayloadUnitStartIndicator(y), q === "video" && (X && !
|
|
35812
|
-
if (X &&
|
|
35813
|
-
for (ae = new Uint8Array(
|
|
35814
|
-
Pe =
|
|
35789
|
+
if (q = xt.ts.parsePesType(y, d.table), X = xt.ts.parsePayloadUnitStartIndicator(y), q === "video" && (X && !be && (Z = xt.ts.parsePesTime(y), Z && (Z.type = "video", f.video.push(Z), be = !0)), !f.firstKeyFrame)) {
|
|
35790
|
+
if (X && Ge.size !== 0) {
|
|
35791
|
+
for (ae = new Uint8Array(Ge.size), me = 0; Ge.data.length; )
|
|
35792
|
+
Pe = Ge.data.shift(), ae.set(Pe, me), me += Pe.byteLength;
|
|
35815
35793
|
if (xt.ts.videoPacketContainsKeyFrame(ae)) {
|
|
35816
35794
|
var tt = xt.ts.parsePesTime(ae);
|
|
35817
35795
|
tt ? (f.firstKeyFrame = tt, f.firstKeyFrame.type = "video") : console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.");
|
|
35818
35796
|
}
|
|
35819
|
-
|
|
35797
|
+
Ge.size = 0;
|
|
35820
35798
|
}
|
|
35821
|
-
|
|
35799
|
+
Ge.data.push(y), Ge.size += y.byteLength;
|
|
35822
35800
|
}
|
|
35823
35801
|
break;
|
|
35824
35802
|
}
|
|
35825
|
-
if (
|
|
35803
|
+
if (be && f.firstKeyFrame)
|
|
35826
35804
|
break;
|
|
35827
35805
|
h += pi, v += pi;
|
|
35828
35806
|
continue;
|
|
35829
35807
|
}
|
|
35830
35808
|
h++, v++;
|
|
35831
35809
|
}
|
|
35832
|
-
for (v = l.byteLength, h = v - pi,
|
|
35810
|
+
for (v = l.byteLength, h = v - pi, be = !1; h >= 0; ) {
|
|
35833
35811
|
if (l[h] === os && l[v] === os) {
|
|
35834
35812
|
switch (y = l.subarray(h, v), M = xt.ts.parseType(y, d.pid), M) {
|
|
35835
35813
|
case "pes":
|
|
35836
|
-
q = xt.ts.parsePesType(y, d.table), X = xt.ts.parsePayloadUnitStartIndicator(y), q === "video" && X && (Z = xt.ts.parsePesTime(y), Z && (Z.type = "video", f.video.push(Z),
|
|
35814
|
+
q = xt.ts.parsePesType(y, d.table), X = xt.ts.parsePayloadUnitStartIndicator(y), q === "video" && X && (Z = xt.ts.parsePesTime(y), Z && (Z.type = "video", f.video.push(Z), be = !0));
|
|
35837
35815
|
break;
|
|
35838
35816
|
}
|
|
35839
|
-
if (
|
|
35817
|
+
if (be)
|
|
35840
35818
|
break;
|
|
35841
35819
|
h -= pi, v -= pi;
|
|
35842
35820
|
continue;
|
|
@@ -35959,32 +35937,32 @@ browserWorkerPolyFill(self);
|
|
|
35959
35937
|
}), d.on("videoSegmentTimingInfo", function(f) {
|
|
35960
35938
|
const h = {
|
|
35961
35939
|
start: {
|
|
35962
|
-
decode:
|
|
35963
|
-
presentation:
|
|
35940
|
+
decode: it.videoTsToSeconds(f.start.dts),
|
|
35941
|
+
presentation: it.videoTsToSeconds(f.start.pts)
|
|
35964
35942
|
},
|
|
35965
35943
|
end: {
|
|
35966
|
-
decode:
|
|
35967
|
-
presentation:
|
|
35944
|
+
decode: it.videoTsToSeconds(f.end.dts),
|
|
35945
|
+
presentation: it.videoTsToSeconds(f.end.pts)
|
|
35968
35946
|
},
|
|
35969
|
-
baseMediaDecodeTime:
|
|
35947
|
+
baseMediaDecodeTime: it.videoTsToSeconds(f.baseMediaDecodeTime)
|
|
35970
35948
|
};
|
|
35971
|
-
f.prependedContentDuration && (h.prependedContentDuration =
|
|
35949
|
+
f.prependedContentDuration && (h.prependedContentDuration = it.videoTsToSeconds(f.prependedContentDuration)), l.postMessage({
|
|
35972
35950
|
action: "videoSegmentTimingInfo",
|
|
35973
35951
|
videoSegmentTimingInfo: h
|
|
35974
35952
|
});
|
|
35975
35953
|
}), d.on("audioSegmentTimingInfo", function(f) {
|
|
35976
35954
|
const h = {
|
|
35977
35955
|
start: {
|
|
35978
|
-
decode:
|
|
35979
|
-
presentation:
|
|
35956
|
+
decode: it.videoTsToSeconds(f.start.dts),
|
|
35957
|
+
presentation: it.videoTsToSeconds(f.start.pts)
|
|
35980
35958
|
},
|
|
35981
35959
|
end: {
|
|
35982
|
-
decode:
|
|
35983
|
-
presentation:
|
|
35960
|
+
decode: it.videoTsToSeconds(f.end.dts),
|
|
35961
|
+
presentation: it.videoTsToSeconds(f.end.pts)
|
|
35984
35962
|
},
|
|
35985
|
-
baseMediaDecodeTime:
|
|
35963
|
+
baseMediaDecodeTime: it.videoTsToSeconds(f.baseMediaDecodeTime)
|
|
35986
35964
|
};
|
|
35987
|
-
f.prependedContentDuration && (h.prependedContentDuration =
|
|
35965
|
+
f.prependedContentDuration && (h.prependedContentDuration = it.videoTsToSeconds(f.prependedContentDuration)), l.postMessage({
|
|
35988
35966
|
action: "audioSegmentTimingInfo",
|
|
35989
35967
|
audioSegmentTimingInfo: h
|
|
35990
35968
|
});
|
|
@@ -36007,16 +35985,16 @@ browserWorkerPolyFill(self);
|
|
|
36007
35985
|
l.postMessage({
|
|
36008
35986
|
action: "audioTimingInfo",
|
|
36009
35987
|
audioTimingInfo: {
|
|
36010
|
-
start:
|
|
36011
|
-
end:
|
|
35988
|
+
start: it.videoTsToSeconds(f.start),
|
|
35989
|
+
end: it.videoTsToSeconds(f.end)
|
|
36012
35990
|
}
|
|
36013
35991
|
});
|
|
36014
35992
|
}), d.on("videoTimingInfo", function(f) {
|
|
36015
35993
|
l.postMessage({
|
|
36016
35994
|
action: "videoTimingInfo",
|
|
36017
35995
|
videoTimingInfo: {
|
|
36018
|
-
start:
|
|
36019
|
-
end:
|
|
35996
|
+
start: it.videoTsToSeconds(f.start),
|
|
35997
|
+
end: it.videoTsToSeconds(f.end)
|
|
36020
35998
|
}
|
|
36021
35999
|
});
|
|
36022
36000
|
}), d.on("log", function(f) {
|
|
@@ -36128,7 +36106,7 @@ browserWorkerPolyFill(self);
|
|
|
36128
36106
|
data: d,
|
|
36129
36107
|
baseStartTime: f
|
|
36130
36108
|
}) {
|
|
36131
|
-
const h = typeof f == "number" && !isNaN(f) ? f *
|
|
36109
|
+
const h = typeof f == "number" && !isNaN(f) ? f * it.ONE_SECOND_IN_TS : void 0, v = Xg.inspect(d, h);
|
|
36132
36110
|
let y = null;
|
|
36133
36111
|
v && (y = {
|
|
36134
36112
|
// each type's time info comes back as an array of 2 times, start and end
|
|
@@ -36172,10 +36150,10 @@ browserWorkerPolyFill(self);
|
|
|
36172
36150
|
*/
|
|
36173
36151
|
setTimestampOffset(d) {
|
|
36174
36152
|
const f = d.timestampOffset || 0;
|
|
36175
|
-
this.transmuxer.setBaseMediaDecodeTime(Math.round(
|
|
36153
|
+
this.transmuxer.setBaseMediaDecodeTime(Math.round(it.secondsToVideoTs(f)));
|
|
36176
36154
|
}
|
|
36177
36155
|
setAudioAppendStart(d) {
|
|
36178
|
-
this.transmuxer.setAudioAppendStart(Math.ceil(
|
|
36156
|
+
this.transmuxer.setAudioAppendStart(Math.ceil(it.secondsToVideoTs(d.appendStart)));
|
|
36179
36157
|
}
|
|
36180
36158
|
setRemux(d) {
|
|
36181
36159
|
this.transmuxer.setRemux(d.remux);
|
|
@@ -43672,10 +43650,10 @@ const r6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4AQMAAADSHVMAAA
|
|
|
43672
43650
|
onChange: F
|
|
43673
43651
|
}, {
|
|
43674
43652
|
default: L(() => [
|
|
43675
|
-
(T(!0), U(Ae, null, Ue(s.dates, (
|
|
43676
|
-
key:
|
|
43677
|
-
value:
|
|
43678
|
-
label:
|
|
43653
|
+
(T(!0), U(Ae, null, Ue(s.dates, (_e) => (T(), ge(p(Ls), {
|
|
43654
|
+
key: _e,
|
|
43655
|
+
value: _e,
|
|
43656
|
+
label: _e
|
|
43679
43657
|
}, null, 8, ["value", "label"]))), 128))
|
|
43680
43658
|
]),
|
|
43681
43659
|
_: 1
|
|
@@ -43700,13 +43678,13 @@ const r6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4AQMAAADSHVMAAA
|
|
|
43700
43678
|
w("div", f6, [
|
|
43701
43679
|
B(p(vo), {
|
|
43702
43680
|
modelValue: W.value,
|
|
43703
|
-
"onUpdate:modelValue": te[0] || (te[0] = (
|
|
43681
|
+
"onUpdate:modelValue": te[0] || (te[0] = (_e) => W.value = _e)
|
|
43704
43682
|
}, {
|
|
43705
43683
|
default: L(() => [
|
|
43706
|
-
(T(!0), U(Ae, null, Ue(x.value, (
|
|
43707
|
-
key:
|
|
43708
|
-
value:
|
|
43709
|
-
label:
|
|
43684
|
+
(T(!0), U(Ae, null, Ue(x.value, (_e) => (T(), ge(p(_o), {
|
|
43685
|
+
key: _e.value,
|
|
43686
|
+
value: _e.value,
|
|
43687
|
+
label: _e.label
|
|
43710
43688
|
}, null, 8, ["value", "label"]))), 128))
|
|
43711
43689
|
]),
|
|
43712
43690
|
_: 1
|
|
@@ -43739,22 +43717,22 @@ const r6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4AQMAAADSHVMAAA
|
|
|
43739
43717
|
left: R.value[0]
|
|
43740
43718
|
})
|
|
43741
43719
|
}, Q(A.value), 5)) : pe("", !0),
|
|
43742
|
-
(T(!0), U(Ae, null, Ue(g.value, (
|
|
43720
|
+
(T(!0), U(Ae, null, Ue(g.value, (_e, He) => (T(), U("div", {
|
|
43743
43721
|
class: "subject-item",
|
|
43744
|
-
key:
|
|
43722
|
+
key: _e.title
|
|
43745
43723
|
}, [
|
|
43746
|
-
w("div", T6, Q(
|
|
43724
|
+
w("div", T6, Q(_e.title), 1),
|
|
43747
43725
|
b.value ? (T(), U("div", x6, [
|
|
43748
43726
|
w("div", {
|
|
43749
43727
|
class: "subject-progress-item",
|
|
43750
43728
|
onClick: z,
|
|
43751
43729
|
onMousemove: G,
|
|
43752
43730
|
onMouseleave: H,
|
|
43753
|
-
"data-start":
|
|
43754
|
-
"data-end":
|
|
43731
|
+
"data-start": _e.startTime,
|
|
43732
|
+
"data-end": _e.endTime,
|
|
43755
43733
|
style: Ct({
|
|
43756
|
-
"--start": (
|
|
43757
|
-
"--end": (
|
|
43734
|
+
"--start": (_e.startTime < 0 ? 0 : _e.startTime) / b.value,
|
|
43735
|
+
"--end": (_e.endTime > b.value ? b.value : _e.endTime) / b.value,
|
|
43758
43736
|
background: E(He)
|
|
43759
43737
|
})
|
|
43760
43738
|
}, null, 44, S6)
|
|
@@ -44138,15 +44116,15 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44138
44116
|
size: r.value,
|
|
44139
44117
|
order_by: "date",
|
|
44140
44118
|
order_type: "asc",
|
|
44141
|
-
month: ke(
|
|
44142
|
-
}), fe = (ue.data || []).map((
|
|
44119
|
+
month: ke(at.value).format("YYYY-MM")
|
|
44120
|
+
}), fe = (ue.data || []).map((ye) => {
|
|
44143
44121
|
var ys, ri, bs;
|
|
44144
44122
|
const {
|
|
44145
44123
|
is_cycle: Se,
|
|
44146
44124
|
date: Fe,
|
|
44147
44125
|
start: ht,
|
|
44148
44126
|
end: kt,
|
|
44149
|
-
cycle_sub:
|
|
44127
|
+
cycle_sub: it,
|
|
44150
44128
|
cycle_start_date: Ai,
|
|
44151
44129
|
cycle_end_date: ei,
|
|
44152
44130
|
cycle_start: ki,
|
|
@@ -44154,7 +44132,7 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44154
44132
|
cycle_type: qt,
|
|
44155
44133
|
cycle_interval: Fi,
|
|
44156
44134
|
cycle_point: ni
|
|
44157
|
-
} =
|
|
44135
|
+
} = ye;
|
|
44158
44136
|
if (Se) {
|
|
44159
44137
|
let C = "", k = "";
|
|
44160
44138
|
qt === Hs && (k = g("meeting.cycleDay")), qt === Gs && (Fi > 1 ? k = g("meeting.cycleWeek.other", [b(qt, ni), Fi]) : k = g("meeting.cycleWeek.one", [b(qt, ni)])), qt === ks && (k = g("meeting.cycleMonth", [b(qt, ni)])), C = g("meeting.cycleMeetingText2", {
|
|
@@ -44164,30 +44142,30 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44164
44142
|
endTime: Yt,
|
|
44165
44143
|
cycleType: k
|
|
44166
44144
|
});
|
|
44167
|
-
const J = (ys =
|
|
44168
|
-
return
|
|
44169
|
-
...
|
|
44145
|
+
const J = (ys = ye.obs_data) == null ? void 0 : ys.filter((de) => de.text_video_url);
|
|
44146
|
+
return it.filter((de) => ke(de.date).isBefore(ke(at.value).add(1, "month").format("YYYY-MM-01")) && !ke(de.date).isBefore(ke(at.value).format("YYYY-MM-01"))).map(({ id: de, ...Ce }) => ({
|
|
44147
|
+
...ye,
|
|
44170
44148
|
...Ce,
|
|
44171
44149
|
timeRange: C,
|
|
44172
44150
|
dateRange: `${Ce.start}-${Ce.end}`,
|
|
44173
|
-
hasObsData: J.find((
|
|
44151
|
+
hasObsData: J.find((ze) => ze.sub_id === Ce.sub_id),
|
|
44174
44152
|
time: `${Ce.start}-${Ce.end}`,
|
|
44175
44153
|
isExpired: ke(`${Ce.date} ${Ce.start}`).isBefore(ke())
|
|
44176
44154
|
}));
|
|
44177
44155
|
}
|
|
44178
44156
|
return [
|
|
44179
44157
|
{
|
|
44180
|
-
...
|
|
44158
|
+
...ye,
|
|
44181
44159
|
dateRange: `${ht} - ${kt}`,
|
|
44182
44160
|
timeRange: `${ht} - ${kt}`,
|
|
44183
|
-
hasObsData: ((bs = (ri =
|
|
44161
|
+
hasObsData: ((bs = (ri = ye.obs_data) == null ? void 0 : ri.filter((C) => C.text_video_url)) == null ? void 0 : bs.length) > 0,
|
|
44184
44162
|
time: `${ht}-${kt}`,
|
|
44185
44163
|
isExpired: ke(`${Fe} ${ht}`).isBefore(ke())
|
|
44186
44164
|
}
|
|
44187
44165
|
];
|
|
44188
|
-
}).flat().filter((
|
|
44189
|
-
m.value ? (u.value = ue.data || [], o.value = fe) : n.value === 1 && !P.value ? (u.value = ue.data || [], o.value = fe) : (u.value = [...u.value, ...ue.data || []], o.value = [...o.value, ...fe]), o.value.sort((
|
|
44190
|
-
dt(),
|
|
44166
|
+
}).flat().filter((ye) => ye.date.slice(0, 7) === Pt(at.value, "YYYY-MM-DD").slice(0, 7));
|
|
44167
|
+
m.value ? (u.value = ue.data || [], o.value = fe) : n.value === 1 && !P.value ? (u.value = ue.data || [], o.value = fe) : (u.value = [...u.value, ...ue.data || []], o.value = [...o.value, ...fe]), o.value.sort((ye, Se) => ye.date === Se.date ? un(ye.start) > un(Se.start) ? 1 : -1 : ke(ye.date).isAfter(ke(Se.date)) ? 1 : -1), a.value = (ue == null ? void 0 : ue.total) || 0, Wt(() => {
|
|
44168
|
+
dt(), Te.value && !P.value && $();
|
|
44191
44169
|
});
|
|
44192
44170
|
} finally {
|
|
44193
44171
|
i.value = !1, H.value = !1, z.value = !1, m.value = !1;
|
|
@@ -44199,15 +44177,15 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44199
44177
|
const ue = window.scrollY || window.pageYOffset, fe = window.innerHeight;
|
|
44200
44178
|
document.documentElement.scrollHeight - (ue + fe) <= 300 && !H.value && (z.value = !0, n.value++, D());
|
|
44201
44179
|
}, 200), N = (ue) => {
|
|
44202
|
-
const fe = o.value.filter((
|
|
44203
|
-
return fe.length && fe.every((
|
|
44180
|
+
const fe = o.value.filter((ye) => ye.date === ue);
|
|
44181
|
+
return fe.length && fe.every((ye) => ye.is_delete);
|
|
44204
44182
|
}, V = (ue) => {
|
|
44205
44183
|
const fe = ue.target;
|
|
44206
44184
|
if (!fe) return;
|
|
44207
|
-
const
|
|
44208
|
-
|
|
44185
|
+
const ye = fe.scrollTop, Se = fe.scrollHeight, Fe = fe.clientHeight;
|
|
44186
|
+
ye + Fe >= Se && F();
|
|
44209
44187
|
}, $ = () => {
|
|
44210
|
-
|
|
44188
|
+
Te.value.getContainerEl().addEventListener("scroll", V);
|
|
44211
44189
|
}, Y = le({}), j = (ue, fe) => {
|
|
44212
44190
|
ue && fe && (Y.value[fe] = ue);
|
|
44213
44191
|
}, ee = async (ue) => {
|
|
@@ -44227,7 +44205,7 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44227
44205
|
} finally {
|
|
44228
44206
|
R.value = !1;
|
|
44229
44207
|
}
|
|
44230
|
-
}, xe = le(!1),
|
|
44208
|
+
}, xe = le(!1), _e = le(""), He = le(null), Be = [
|
|
44231
44209
|
{
|
|
44232
44210
|
label: g("meeting.meetingSingle"),
|
|
44233
44211
|
value: "single"
|
|
@@ -44237,12 +44215,12 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44237
44215
|
value: "whole"
|
|
44238
44216
|
}
|
|
44239
44217
|
], qe = le("single"), Ze = (ue, fe) => {
|
|
44240
|
-
ue.is_cycle ? (He.value = ue,
|
|
44218
|
+
ue.is_cycle ? (He.value = ue, _e.value = fe, xe.value = !0) : fe === "cancel" ? oe(ue) : se(ue);
|
|
44241
44219
|
}, et = () => {
|
|
44242
|
-
xe.value = !1, He.value = null,
|
|
44243
|
-
},
|
|
44220
|
+
xe.value = !1, He.value = null, _e.value = "", qe.value = "single";
|
|
44221
|
+
}, lt = async () => {
|
|
44244
44222
|
const ue = He.value;
|
|
44245
|
-
if (
|
|
44223
|
+
if (_e.value === "cancel")
|
|
44246
44224
|
try {
|
|
44247
44225
|
if (R.value = !0, qe.value === "single" && ue.is_cycle) {
|
|
44248
44226
|
if (!A.cancelSubMeetingRequest)
|
|
@@ -44263,28 +44241,28 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44263
44241
|
}
|
|
44264
44242
|
else
|
|
44265
44243
|
G("edit", ue, qe.value), et();
|
|
44266
|
-
}, ct = le(), ft = Ve(() => [...new Set(o.value.map((ue) => ue.date))].sort((ue, fe) => ke(ue).isBefore(ke(fe)) ? -1 : 1)),
|
|
44244
|
+
}, ct = le(), ft = Ve(() => [...new Set(o.value.map((ue) => ue.date))].sort((ue, fe) => ke(ue).isBefore(ke(fe)) ? -1 : 1)), rt = Ve(
|
|
44267
44245
|
() => [...new Set(o.value.filter((ue) => !ue.isExpired && !ue.is_delete).map((ue) => ue.date))].sort((ue, fe) => ke(ue).isBefore(ke(fe)) ? -1 : 1)
|
|
44268
|
-
),
|
|
44269
|
-
var
|
|
44270
|
-
const ue =
|
|
44271
|
-
ue ?
|
|
44272
|
-
const fe = o.value.find((Se) => Se.date ===
|
|
44246
|
+
), at = le(), dt = () => {
|
|
44247
|
+
var ye;
|
|
44248
|
+
const ue = rt.value.find((Se) => !ke(Se).isBefore(ke(/* @__PURE__ */ new Date()).format("YYYY-MM-DD")));
|
|
44249
|
+
ue ? at.value = ue : at.value || (at.value = ke().format("YYYY-MM-DD")), (ye = ct.value) == null || ye.pickDay(ke(at.value)), at.value = ke(at.value).format("YYYY-MM-DD");
|
|
44250
|
+
const fe = o.value.find((Se) => Se.date === at.value && !Se.isExpired && !Se.is_delete);
|
|
44273
44251
|
fe && (I.value = [fe.sub_id || fe.id]);
|
|
44274
44252
|
}, Vt = (ue, fe) => {
|
|
44275
|
-
var
|
|
44276
|
-
(!fe || !((
|
|
44253
|
+
var ye;
|
|
44254
|
+
(!fe || !((ye = ue.target) != null && ye.className.includes("date-cell-text"))) && (ue.stopPropagation(), ue.preventDefault());
|
|
44277
44255
|
}, Re = (ue) => {
|
|
44278
44256
|
ct.value && (n.value = 1, a.value = null, window.scrollTo({
|
|
44279
44257
|
top: 0,
|
|
44280
44258
|
behavior: "smooth"
|
|
44281
44259
|
}), ct.value.selectDate(ue), m.value = !0, Wt(() => {
|
|
44282
|
-
|
|
44260
|
+
at.value = ke(ct.value.selectedDay).format("YYYY-MM-DD"), D();
|
|
44283
44261
|
}));
|
|
44284
|
-
},
|
|
44262
|
+
}, Ye = Ve(() => o.value.reduce((ue, fe) => {
|
|
44285
44263
|
if (ue.length) {
|
|
44286
|
-
const
|
|
44287
|
-
return
|
|
44264
|
+
const ye = ue.at(-1);
|
|
44265
|
+
return ye.date === fe.date ? ye.list.push(fe) : ue.push({
|
|
44288
44266
|
date: fe.date,
|
|
44289
44267
|
list: [fe]
|
|
44290
44268
|
}), ue;
|
|
@@ -44295,21 +44273,21 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44295
44273
|
list: [fe]
|
|
44296
44274
|
}
|
|
44297
44275
|
];
|
|
44298
|
-
}, [])),
|
|
44276
|
+
}, [])), Te = le();
|
|
44299
44277
|
St(
|
|
44300
|
-
() =>
|
|
44278
|
+
() => at.value,
|
|
44301
44279
|
() => {
|
|
44302
|
-
je(
|
|
44280
|
+
je(at.value);
|
|
44303
44281
|
}
|
|
44304
44282
|
);
|
|
44305
44283
|
const je = (ue) => {
|
|
44306
44284
|
var Se, Fe, ht;
|
|
44307
|
-
const fe = ke(ue).format("YYYY-MM-DD"),
|
|
44308
|
-
|
|
44309
|
-
top: (((Se =
|
|
44285
|
+
const fe = ke(ue).format("YYYY-MM-DD"), ye = document.querySelector(`#group-title-${fe}`);
|
|
44286
|
+
ye && (P.value ? window.scrollTo({
|
|
44287
|
+
top: (((Se = ye.parentElement) == null ? void 0 : Se.offsetTop) || 0) - 52,
|
|
44310
44288
|
behavior: "smooth"
|
|
44311
|
-
}) : (ht =
|
|
44312
|
-
top: ((Fe =
|
|
44289
|
+
}) : (ht = Te.value) == null || ht.scrollTo({
|
|
44290
|
+
top: ((Fe = ye.parentElement) == null ? void 0 : Fe.offsetTop) || 0,
|
|
44313
44291
|
behavior: "smooth"
|
|
44314
44292
|
}));
|
|
44315
44293
|
};
|
|
@@ -44318,10 +44296,10 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44318
44296
|
}), Xn(() => {
|
|
44319
44297
|
var fe;
|
|
44320
44298
|
window.removeEventListener("scroll", ie), window.removeEventListener("resize", ie), window.removeEventListener("resize", x);
|
|
44321
|
-
const ue = (fe =
|
|
44299
|
+
const ue = (fe = Te.value) == null ? void 0 : fe.getContainerEl();
|
|
44322
44300
|
ue == null || ue.removeEventListener("scroll", V);
|
|
44323
44301
|
});
|
|
44324
|
-
const
|
|
44302
|
+
const ut = (ue) => (ue = ke(ue || void 0), _.value ? ue.format("MMMM YYYY") : ue.format("YYYY MM月")), Tt = Ve(() => [
|
|
44325
44303
|
{
|
|
44326
44304
|
id: "confirm",
|
|
44327
44305
|
color: "primary",
|
|
@@ -44331,7 +44309,7 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44331
44309
|
round: "pill",
|
|
44332
44310
|
loading: R.value,
|
|
44333
44311
|
onClick: () => {
|
|
44334
|
-
|
|
44312
|
+
lt();
|
|
44335
44313
|
}
|
|
44336
44314
|
},
|
|
44337
44315
|
{
|
|
@@ -44373,10 +44351,10 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44373
44351
|
return (ue, fe) => (T(), U("div", V6, [
|
|
44374
44352
|
w("div", q6, [
|
|
44375
44353
|
w("div", j6, [
|
|
44376
|
-
w("span", null, Q(
|
|
44354
|
+
w("span", null, Q(ut(at.value)), 1),
|
|
44377
44355
|
w("span", null, [
|
|
44378
44356
|
B(p(Le), {
|
|
44379
|
-
onClick: fe[0] || (fe[0] = (
|
|
44357
|
+
onClick: fe[0] || (fe[0] = (ye) => Re("prev-month"))
|
|
44380
44358
|
}, {
|
|
44381
44359
|
default: L(() => [
|
|
44382
44360
|
B(p(qr))
|
|
@@ -44384,7 +44362,7 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44384
44362
|
_: 1
|
|
44385
44363
|
}),
|
|
44386
44364
|
B(p(Le), {
|
|
44387
|
-
onClick: fe[1] || (fe[1] = (
|
|
44365
|
+
onClick: fe[1] || (fe[1] = (ye) => Re("next-month"))
|
|
44388
44366
|
}, {
|
|
44389
44367
|
default: L(() => [
|
|
44390
44368
|
B(p(Ui))
|
|
@@ -44397,14 +44375,14 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44397
44375
|
B(p(Iu), {
|
|
44398
44376
|
ref_key: "calendarRef",
|
|
44399
44377
|
ref: ct,
|
|
44400
|
-
modelValue:
|
|
44401
|
-
"onUpdate:modelValue": fe[4] || (fe[4] = (
|
|
44378
|
+
modelValue: at.value,
|
|
44379
|
+
"onUpdate:modelValue": fe[4] || (fe[4] = (ye) => at.value = ye)
|
|
44402
44380
|
}, {
|
|
44403
44381
|
header: L(() => [
|
|
44404
|
-
w("span", null, Q(
|
|
44382
|
+
w("span", null, Q(ut(at.value)), 1),
|
|
44405
44383
|
w("div", null, [
|
|
44406
44384
|
B(p(Le), {
|
|
44407
|
-
onClick: fe[2] || (fe[2] = (
|
|
44385
|
+
onClick: fe[2] || (fe[2] = (ye) => Re("prev-month"))
|
|
44408
44386
|
}, {
|
|
44409
44387
|
default: L(() => [
|
|
44410
44388
|
B(p(qr))
|
|
@@ -44412,7 +44390,7 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44412
44390
|
_: 1
|
|
44413
44391
|
}),
|
|
44414
44392
|
B(p(Le), {
|
|
44415
|
-
onClick: fe[3] || (fe[3] = (
|
|
44393
|
+
onClick: fe[3] || (fe[3] = (ye) => Re("next-month"))
|
|
44416
44394
|
}, {
|
|
44417
44395
|
default: L(() => [
|
|
44418
44396
|
B(p(Ui))
|
|
@@ -44421,19 +44399,19 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44421
44399
|
})
|
|
44422
44400
|
])
|
|
44423
44401
|
]),
|
|
44424
|
-
"date-cell": L(({ data:
|
|
44402
|
+
"date-cell": L(({ data: ye }) => [
|
|
44425
44403
|
w("div", {
|
|
44426
|
-
onClick: (Se) => Vt(Se, ft.value.includes(
|
|
44404
|
+
onClick: (Se) => Vt(Se, ft.value.includes(ye.day)),
|
|
44427
44405
|
class: $e({
|
|
44428
44406
|
"date-cell": !0,
|
|
44429
|
-
"is-selected":
|
|
44430
|
-
"is-today": p(Pt)(
|
|
44431
|
-
clickable: ft.value.includes(
|
|
44432
|
-
expired: p(ke)(p(Pt)()).isAfter(p(ke)(
|
|
44433
|
-
"all-deleted": N(
|
|
44407
|
+
"is-selected": ye.isSelected,
|
|
44408
|
+
"is-today": p(Pt)(ye.day) === p(Pt)(),
|
|
44409
|
+
clickable: ft.value.includes(ye.day),
|
|
44410
|
+
expired: p(ke)(p(Pt)()).isAfter(p(ke)(ye.day)),
|
|
44411
|
+
"all-deleted": N(ye.day)
|
|
44434
44412
|
})
|
|
44435
44413
|
}, [
|
|
44436
|
-
w("div", G6, Q(Number(
|
|
44414
|
+
w("div", G6, Q(Number(ye.day.split("-")[2])), 1)
|
|
44437
44415
|
], 10, z6)
|
|
44438
44416
|
]),
|
|
44439
44417
|
_: 1
|
|
@@ -44445,7 +44423,7 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44445
44423
|
o.value.length ? (T(), ge(p(gn), {
|
|
44446
44424
|
key: 0,
|
|
44447
44425
|
ref_key: "scrollerRef",
|
|
44448
|
-
ref:
|
|
44426
|
+
ref: Te,
|
|
44449
44427
|
onScrollend: p(F),
|
|
44450
44428
|
style: Ct({ "--header-height": W.value }),
|
|
44451
44429
|
class: "scroller-container",
|
|
@@ -44455,12 +44433,12 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44455
44433
|
w("div", W6, [
|
|
44456
44434
|
B(p(Xr), {
|
|
44457
44435
|
modelValue: I.value,
|
|
44458
|
-
"onUpdate:modelValue": fe[7] || (fe[7] = (
|
|
44436
|
+
"onUpdate:modelValue": fe[7] || (fe[7] = (ye) => I.value = ye),
|
|
44459
44437
|
accordion: p(P)
|
|
44460
44438
|
}, {
|
|
44461
44439
|
default: L(() => [
|
|
44462
|
-
(T(!0), U(Ae, null, Ue(
|
|
44463
|
-
key:
|
|
44440
|
+
(T(!0), U(Ae, null, Ue(Ye.value, (ye, Se) => (T(), U(Ae, {
|
|
44441
|
+
key: ye.date
|
|
44464
44442
|
}, [
|
|
44465
44443
|
Se === 0 ? (T(), U("div", {
|
|
44466
44444
|
key: 0,
|
|
@@ -44476,13 +44454,13 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44476
44454
|
w("span", null, Q(p(g)("meeting.preMonth")), 1)
|
|
44477
44455
|
])) : pe("", !0),
|
|
44478
44456
|
w("div", {
|
|
44479
|
-
class: $e(["group-item", Se ===
|
|
44457
|
+
class: $e(["group-item", Se === Ye.value.length - 1 && "last-item"])
|
|
44480
44458
|
}, [
|
|
44481
44459
|
w("div", {
|
|
44482
44460
|
class: $e({
|
|
44483
44461
|
"group-bar": !0,
|
|
44484
|
-
"is-active": p(ke)(
|
|
44485
|
-
"is-end":
|
|
44462
|
+
"is-active": p(ke)(at.value).format("YYYY-MM-DD") === ye.date,
|
|
44463
|
+
"is-end": ye.list.every((Fe) => Fe.isExpired)
|
|
44486
44464
|
})
|
|
44487
44465
|
}, [...fe[11] || (fe[11] = [
|
|
44488
44466
|
w("div", { class: "group-bar-line" }, null, -1),
|
|
@@ -44491,15 +44469,15 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44491
44469
|
w("div", {
|
|
44492
44470
|
class: $e({
|
|
44493
44471
|
"group-title": !0,
|
|
44494
|
-
"is-end":
|
|
44472
|
+
"is-end": ye.list.every((Fe) => Fe.isExpired)
|
|
44495
44473
|
}),
|
|
44496
|
-
id: `group-title-${p(ke)(new Date(
|
|
44497
|
-
}, Q(p(ke)(
|
|
44498
|
-
(T(!0), U(Ae, null, Ue(
|
|
44474
|
+
id: `group-title-${p(ke)(new Date(ye.date)).format("YYYY-MM-DD")}`
|
|
44475
|
+
}, Q(p(ke)(ye.date).format("MM/DD")) + " " + Q(p(S)(ye.date)), 11, Y6),
|
|
44476
|
+
(T(!0), U(Ae, null, Ue(ye.list, (Fe, ht) => (T(), ge(p(Kr), {
|
|
44499
44477
|
key: Fe.sub_id || Fe.id,
|
|
44500
44478
|
value: Fe.sub_id || Fe.id,
|
|
44501
44479
|
class: $e({
|
|
44502
|
-
"last-item": Se ===
|
|
44480
|
+
"last-item": Se === Ye.value.length - 1 && ht === ye.list.length - 1
|
|
44503
44481
|
})
|
|
44504
44482
|
}, {
|
|
44505
44483
|
title: L(() => [
|
|
@@ -44644,7 +44622,7 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44644
44622
|
}, 1032, ["value", "class"]))), 128)),
|
|
44645
44623
|
fe[12] || (fe[12] = w("div", { class: "height-placeholder" }, null, -1))
|
|
44646
44624
|
], 2),
|
|
44647
|
-
Se ===
|
|
44625
|
+
Se === Ye.value.length - 1 ? (T(), U(Ae, { key: 1 }, [
|
|
44648
44626
|
z.value ? (T(), U("div", a9, Q(p(g)("common.loading")), 1)) : pe("", !0),
|
|
44649
44627
|
w("div", {
|
|
44650
44628
|
class: "list-month-change next-month",
|
|
@@ -44670,26 +44648,26 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44670
44648
|
], 2),
|
|
44671
44649
|
B(p(mn), {
|
|
44672
44650
|
visible: xe.value,
|
|
44673
|
-
"onUpdate:visible": fe[9] || (fe[9] = (
|
|
44651
|
+
"onUpdate:visible": fe[9] || (fe[9] = (ye) => xe.value = ye),
|
|
44674
44652
|
"main-class": "handle-dialog",
|
|
44675
44653
|
onClose: et,
|
|
44676
44654
|
actions: Tt.value
|
|
44677
44655
|
}, {
|
|
44678
44656
|
header: L(() => [
|
|
44679
|
-
Ie(Q(p(g)("meeting.meetingHandleText", [
|
|
44657
|
+
Ie(Q(p(g)("meeting.meetingHandleText", [_e.value === "edit" ? p(g)("meeting.edit") : p(g)("meeting.cancel2")])), 1)
|
|
44680
44658
|
]),
|
|
44681
44659
|
default: L(() => [
|
|
44682
44660
|
B(p(Ga), {
|
|
44683
44661
|
modelValue: qe.value,
|
|
44684
|
-
"onUpdate:modelValue": fe[8] || (fe[8] = (
|
|
44662
|
+
"onUpdate:modelValue": fe[8] || (fe[8] = (ye) => qe.value = ye)
|
|
44685
44663
|
}, {
|
|
44686
44664
|
default: L(() => [
|
|
44687
|
-
(T(), U(Ae, null, Ue(
|
|
44688
|
-
value:
|
|
44689
|
-
key:
|
|
44665
|
+
(T(), U(Ae, null, Ue(Be, (ye) => B(p(Pr), {
|
|
44666
|
+
value: ye.value,
|
|
44667
|
+
key: ye.value
|
|
44690
44668
|
}, {
|
|
44691
44669
|
default: L(() => [
|
|
44692
|
-
Ie(Q(
|
|
44670
|
+
Ie(Q(ye.label), 1)
|
|
44693
44671
|
]),
|
|
44694
44672
|
_: 2
|
|
44695
44673
|
}, 1032, ["value"])), 64))
|
|
@@ -44701,7 +44679,7 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44701
44679
|
}, 8, ["visible", "actions"]),
|
|
44702
44680
|
B(p(mn), {
|
|
44703
44681
|
visible: te.value,
|
|
44704
|
-
"onUpdate:visible": fe[10] || (fe[10] = (
|
|
44682
|
+
"onUpdate:visible": fe[10] || (fe[10] = (ye) => te.value = ye),
|
|
44705
44683
|
"main-class": "cancel-dialog",
|
|
44706
44684
|
actions: we.value
|
|
44707
44685
|
}, {
|
|
@@ -44709,9 +44687,9 @@ const w6 = { name: "components-icon-tips", render: E6 }, D6 = { class: "o-sig-me
|
|
|
44709
44687
|
Ie(Q(p(g)("meeting.confirmCancel")), 1)
|
|
44710
44688
|
]),
|
|
44711
44689
|
default: L(() => {
|
|
44712
|
-
var
|
|
44690
|
+
var ye;
|
|
44713
44691
|
return [
|
|
44714
|
-
w("div", o9, Q(p(g)("meeting.confirmCancelDesc", [(
|
|
44692
|
+
w("div", o9, Q(p(g)("meeting.confirmCancelDesc", [(ye = ne.value) == null ? void 0 : ye.topic])), 1)
|
|
44715
44693
|
];
|
|
44716
44694
|
}),
|
|
44717
44695
|
_: 1
|