@kanorio/elements 0.0.0-stage → 1.0.0
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/LICENSE +21 -0
- package/README.md +57 -2
- package/dist/MediaPlayer-MWIDJORE.js +2 -0
- package/dist/MediaPlayer-STITRANS.js +13 -0
- package/dist/PDFViewerFull-HIUSAO57.js +13 -0
- package/dist/PDFViewerFull-L7VMOAMU.js +28062 -0
- package/dist/altcha-DSOKKAAV.js +3153 -0
- package/dist/altcha-FLBUR2LJ.js +4 -0
- package/dist/ar-4CBE4BWH.js +1233 -0
- package/dist/ar-6G7ZVSQ3.js +2 -0
- package/dist/ar-XCPH4WO5.js +98 -0
- package/dist/ar-ZVJL6XGE.js +2 -0
- package/dist/bg-4WPFSAMC.js +2 -0
- package/dist/bg-BKFL64I6.js +98 -0
- package/dist/bg-CB273F4D.js +1233 -0
- package/dist/bg-HCH4LMEX.js +2 -0
- package/dist/bn-HLYDEXHQ.js +1233 -0
- package/dist/bn-HVEVBAGM.js +98 -0
- package/dist/bn-OY7YGJIT.js +2 -0
- package/dist/bn-XX3O4VQB.js +2 -0
- package/dist/chunk-2UBPQBQI.js +1848 -0
- package/dist/chunk-5OB57Z46.js +23620 -0
- package/dist/chunk-6LJZ4HRF.js +1350 -0
- package/dist/chunk-6TUB24LJ.js +415 -0
- package/dist/chunk-74RRJOB4.js +15 -0
- package/dist/chunk-7TNRMVML.js +2 -0
- package/dist/chunk-BH27SBYG.js +2 -0
- package/dist/chunk-BQU7QZGC.js +4 -0
- package/dist/chunk-CHSZMJ5D.js +15103 -0
- package/dist/chunk-DDKQOHPW.js +930 -0
- package/dist/chunk-E5ZVE4VL.js +5 -0
- package/dist/chunk-FGBB7FT5.js +4 -0
- package/dist/chunk-FSH5K5FU.js +57 -0
- package/dist/chunk-G3PMV62Z.js +36 -0
- package/dist/chunk-IUB5YLUU.js +1538 -0
- package/dist/chunk-J7AP6FJF.js +8616 -0
- package/dist/chunk-LKOMEUNH.js +72 -0
- package/dist/chunk-NB57OIQA.js +2 -0
- package/dist/chunk-NLJE74VA.js +2 -0
- package/dist/chunk-NQBPWU5Z.js +15 -0
- package/dist/chunk-OJQYDPRD.js +39 -0
- package/dist/chunk-PDKFEXLU.js +59 -0
- package/dist/chunk-POG53MIA.js +2 -0
- package/dist/chunk-PXABHOW4.js +10871 -0
- package/dist/chunk-QDUG7UMV.js +363 -0
- package/dist/chunk-RFBBAUMM.js +2 -0
- package/dist/chunk-RJTKNOYT.js +67 -0
- package/dist/chunk-VH4656UY.js +2 -0
- package/dist/chunk-XAORGJWX.js +2 -0
- package/dist/chunk-Y77XXKLY.js +1858 -0
- package/dist/cs-EDLILQAV.js +1233 -0
- package/dist/cs-EOBDWVFI.js +2 -0
- package/dist/cs-Q732FDDB.js +98 -0
- package/dist/cs-UO3FC3H4.js +2 -0
- package/dist/da-43RMOYSN.js +98 -0
- package/dist/da-ANHSL3GD.js +2 -0
- package/dist/da-RBW34GCF.js +2 -0
- package/dist/da-SJ7YQT4L.js +1233 -0
- package/dist/de-2D2GW24Z.js +2 -0
- package/dist/de-5WGC4CMF.js +1233 -0
- package/dist/de-CPU2ARG7.js +98 -0
- package/dist/de-GVWNGUWZ.js +2 -0
- package/dist/deliverables-QUJISOBO.js +98 -0
- package/dist/deliverables-Z6ZBT6D3.js +2046 -0
- package/dist/el-FRNBHLQF.js +98 -0
- package/dist/el-HCBWOOCJ.js +1233 -0
- package/dist/el-KK7DBDUW.js +2 -0
- package/dist/el-SK362ZEN.js +2 -0
- package/dist/elements.css +2 -0
- package/dist/en-AU-BQA3DX35.js +1233 -0
- package/dist/en-AU-VZAXNXRA.js +2 -0
- package/dist/en-CA-T2VRZJVQ.js +2 -0
- package/dist/en-CA-ZWY5HD2Z.js +1233 -0
- package/dist/en-GB-CH3IGZSE.js +1233 -0
- package/dist/en-GB-MZQ2MGOR.js +2 -0
- package/dist/en-M24TV37U.js +2 -0
- package/dist/en-OURP64TI.js +2 -0
- package/dist/en-US-VWMNQOMN.js +2 -0
- package/dist/en-US-WJZ2OBFI.js +1233 -0
- package/dist/en-USCPKTM6.js +1233 -0
- package/dist/en-YND44PUO.js +98 -0
- package/dist/errors-7SQHRWKX.js +77 -0
- package/dist/errors-S6NFCUG2.js +2 -0
- package/dist/es-419-EMD4NA5M.js +2 -0
- package/dist/es-419-GPBJSXLV.js +2 -0
- package/dist/es-419-S6IHEZ4E.js +1233 -0
- package/dist/es-419-XPZOWYCA.js +98 -0
- package/dist/es-ES-EGMSPSY2.js +1233 -0
- package/dist/es-ES-U6NF6JHU.js +2 -0
- package/dist/es-es-ILD7QLKC.js +98 -0
- package/dist/es-es-MPX25JA6.js +2 -0
- package/dist/fa-5J3M6LW4.js +2 -0
- package/dist/fa-OC7ZPRF2.js +98 -0
- package/dist/fa-OFIO7IXD.js +1233 -0
- package/dist/fa-ZTPM4LEB.js +2 -0
- package/dist/fi-2V2STXSQ.js +2 -0
- package/dist/fi-7J4LPMG2.js +98 -0
- package/dist/fi-FMEAITYP.js +1233 -0
- package/dist/fi-N3BC4FYB.js +2 -0
- package/dist/fr-CA-IKSBTBHG.js +2 -0
- package/dist/fr-CA-S23ERMPM.js +1233 -0
- package/dist/fr-FR-RRTMSQWD.js +2 -0
- package/dist/fr-FR-SOIXFVK2.js +1233 -0
- package/dist/fr-ca-SUWTTOEW.js +2 -0
- package/dist/fr-ca-UUHAWMHI.js +98 -0
- package/dist/fr-fr-SGQ77PBC.js +98 -0
- package/dist/fr-fr-XE2V7MKM.js +2 -0
- package/dist/gu-RT7GQT5B.js +2 -0
- package/dist/gu-Z2QX2VCX.js +1233 -0
- package/dist/he-27MBDHSP.js +2 -0
- package/dist/he-E7RIZOIT.js +1233 -0
- package/dist/he-QGD477CH.js +98 -0
- package/dist/he-R3UJFF46.js +2 -0
- package/dist/hi-2AVAXR7K.js +1233 -0
- package/dist/hi-6ZBMVMGH.js +2 -0
- package/dist/hi-SGQH4OWG.js +98 -0
- package/dist/hi-XJHFN25N.js +2 -0
- package/dist/hls-C5FWCMHH.js +37426 -0
- package/dist/hls-ZQNRY2TQ.js +45 -0
- package/dist/hu-IOGZTF7L.js +2 -0
- package/dist/hu-KNZXJ7ZI.js +98 -0
- package/dist/hu-ORVGO3ZY.js +1233 -0
- package/dist/hu-PKL3T3JT.js +2 -0
- package/dist/id-FKFVQIN6.js +2 -0
- package/dist/id-JH2DLDBA.js +98 -0
- package/dist/id-TMOJUCBD.js +1233 -0
- package/dist/id-WLBO2VOW.js +2 -0
- package/dist/index.d.ts +2955 -0
- package/dist/index.js +67 -0
- package/dist/it-AGUEDSVA.js +2 -0
- package/dist/it-PJAB5BQB.js +98 -0
- package/dist/it-WF5BTFFJ.js +2 -0
- package/dist/it-YMZRYSIJ.js +1233 -0
- package/dist/ja-2ZVND7MB.js +2 -0
- package/dist/ja-555SY4AF.js +1233 -0
- package/dist/ja-RMBJ7E5Z.js +2 -0
- package/dist/ja-ZKBUQDUT.js +98 -0
- package/dist/kanorio-elements.js +97 -0
- package/dist/km-DF366BBP.js +1233 -0
- package/dist/km-JIUQ7MSM.js +2 -0
- package/dist/kn-KTJPREMQ.js +2 -0
- package/dist/kn-MJKASLJD.js +1233 -0
- package/dist/ko-CGY75OW4.js +2 -0
- package/dist/ko-KECCYX66.js +2 -0
- package/dist/ko-L5735TRU.js +98 -0
- package/dist/ko-S3OTZKIG.js +1233 -0
- package/dist/lo-7R55FKUB.js +1233 -0
- package/dist/lo-DNWTAFYF.js +2 -0
- package/dist/ml-B4BJPFVQ.js +2 -0
- package/dist/ml-FCTNQ4SP.js +1233 -0
- package/dist/mr-FJ4EDO7F.js +2 -0
- package/dist/mr-TZTFABWX.js +2 -0
- package/dist/mr-VZ5Y74YA.js +1233 -0
- package/dist/mr-Y464JCKX.js +98 -0
- package/dist/ms-VCX47GHB.js +2 -0
- package/dist/ms-WAJKD7ZV.js +1233 -0
- package/dist/my-S5L32WDK.js +2 -0
- package/dist/my-T7Y3Y64H.js +1233 -0
- package/dist/nb-53GCFBHF.js +2 -0
- package/dist/nb-IJDALVGX.js +99 -0
- package/dist/nb-LXBBUZUD.js +1233 -0
- package/dist/nb-PWWLEFUC.js +2 -0
- package/dist/ne-F7EEIDMA.js +2 -0
- package/dist/ne-NDLRKG6T.js +1233 -0
- package/dist/nl-262SKC6R.js +98 -0
- package/dist/nl-BE-3KOYUD6Y.js +1233 -0
- package/dist/nl-BE-VZJDK6CH.js +2 -0
- package/dist/nl-NL-3OIKN2DQ.js +2 -0
- package/dist/nl-NL-T7SQOLLA.js +1233 -0
- package/dist/nl-XKCUNU3P.js +2 -0
- package/dist/nn-AHWRAFXZ.js +1233 -0
- package/dist/nn-YH7F7UK3.js +2 -0
- package/dist/pa-HC24FOUI.js +2 -0
- package/dist/pa-J26C5J7M.js +1233 -0
- package/dist/pl-QSTOYTPG.js +1233 -0
- package/dist/pl-T7J6A26Y.js +2 -0
- package/dist/pl-TYHET6JJ.js +2 -0
- package/dist/pl-XDJJ6AUG.js +98 -0
- package/dist/prod-MRWX5W24.js +38 -0
- package/dist/prod-YHXWTKNF.js +2 -0
- package/dist/pt-BR-4QRR4PXU.js +2 -0
- package/dist/pt-BR-7JM75AGX.js +1233 -0
- package/dist/pt-PT-W3WZEROD.js +1233 -0
- package/dist/pt-PT-Z5FI4CLF.js +2 -0
- package/dist/pt-br-2W4P4ZAJ.js +2 -0
- package/dist/pt-br-JP6VI5C5.js +98 -0
- package/dist/pt-pt-22LJFZT5.js +98 -0
- package/dist/pt-pt-HOBFIPWZ.js +2 -0
- package/dist/ro-3KXIEYVK.js +98 -0
- package/dist/ro-3YUPB2TJ.js +1233 -0
- package/dist/ro-JXHNIBOA.js +2 -0
- package/dist/ro-KHPOLQC6.js +2 -0
- package/dist/ru-5ZVLKPFN.js +2 -0
- package/dist/ru-ASND25AB.js +2 -0
- package/dist/ru-ATGZC5LB.js +1233 -0
- package/dist/ru-W44AHOIC.js +98 -0
- package/dist/si-RHXLIDQI.js +1233 -0
- package/dist/si-U3O6NRHE.js +2 -0
- package/dist/srt-parser-6DEDUV5P.js +43 -0
- package/dist/srt-parser-E666S3YO.js +3 -0
- package/dist/ssa-parser-5GJ737XF.js +309 -0
- package/dist/ssa-parser-BR3CTDHR.js +5 -0
- package/dist/sv-5LOOKXJA.js +98 -0
- package/dist/sv-6GKNCPMS.js +2 -0
- package/dist/sv-LL3HMUIA.js +1233 -0
- package/dist/sv-RRJ6LYFT.js +2 -0
- package/dist/sw-HBNHIHPG.js +2 -0
- package/dist/sw-HP7MYGQ5.js +1233 -0
- package/dist/sw-NTSCFQXY.js +2 -0
- package/dist/sw-YIUB7QN3.js +98 -0
- package/dist/ta-4RG3PWN5.js +98 -0
- package/dist/ta-ARSNSDK5.js +2 -0
- package/dist/ta-Q2LBTDH6.js +2 -0
- package/dist/ta-Z5EVUBYF.js +1233 -0
- package/dist/te-FAWIFHVW.js +2 -0
- package/dist/te-FXJYUGGL.js +98 -0
- package/dist/te-GDV3DJFJ.js +1233 -0
- package/dist/te-TIMB7HBY.js +2 -0
- package/dist/th-7CEFYE5H.js +2 -0
- package/dist/th-CFAEFK3E.js +1233 -0
- package/dist/th-KGPTXFIF.js +2 -0
- package/dist/th-TC6J25FB.js +98 -0
- package/dist/tl-2JDK2CBL.js +2 -0
- package/dist/tl-SGZM4XSX.js +1233 -0
- package/dist/tr-27OEWIPE.js +1233 -0
- package/dist/tr-2MEHQO75.js +98 -0
- package/dist/tr-7P2UAX7U.js +2 -0
- package/dist/tr-NKD6C4RY.js +2 -0
- package/dist/uk-CXQISVJP.js +2 -0
- package/dist/uk-EJIGGLKY.js +1233 -0
- package/dist/uk-JCI3UE6Q.js +98 -0
- package/dist/uk-QM5BBWP7.js +2 -0
- package/dist/ur-5EWYHPME.js +1233 -0
- package/dist/ur-IIOUQYSA.js +98 -0
- package/dist/ur-M3QWGAPF.js +2 -0
- package/dist/ur-TLLPXSTM.js +2 -0
- package/dist/vi-AXQYYRD3.js +2 -0
- package/dist/vi-JALLXYS7.js +1233 -0
- package/dist/vi-SS65KZTI.js +2 -0
- package/dist/vi-YQVNQEVG.js +98 -0
- package/dist/vidstack-B9fTkxQO-LJP5ADOO.js +215 -0
- package/dist/vidstack-B9fTkxQO-OCT23G55.js +2 -0
- package/dist/vidstack-BmcqUMKx-A2W3TQB6.js +2 -0
- package/dist/vidstack-BmcqUMKx-G6TB22IC.js +286 -0
- package/dist/vidstack-C0fPJIzs-7AH6MOHO.js +2 -0
- package/dist/vidstack-C0fPJIzs-PNQOR4TK.js +11 -0
- package/dist/vidstack-CHcsWfRV-UAVLHO6N.js +40 -0
- package/dist/vidstack-CHcsWfRV-V52LFHYG.js +2 -0
- package/dist/vidstack-CvezEmSQ-JXKCQ4VQ.js +2 -0
- package/dist/vidstack-CvezEmSQ-R32NZKJ2.js +130 -0
- package/dist/vidstack-D2vrrUMs-7XAY5IBS.js +2 -0
- package/dist/vidstack-D2vrrUMs-FNQR2A5M.js +467 -0
- package/dist/vidstack-Di0HObvT-6ND3AXWZ.js +112 -0
- package/dist/vidstack-Di0HObvT-ZV7XK2OT.js +2 -0
- package/dist/vidstack-DiaLSJYx-H762DXYG.js +2 -0
- package/dist/vidstack-DiaLSJYx-S7DDW2H3.js +380 -0
- package/dist/vidstack-Dy74GavT-EYLL6MEF.js +2 -0
- package/dist/vidstack-Dy74GavT-XNIJ7PF4.js +11 -0
- package/dist/vidstack-GkTzay8D-C7EJKMV4.js +2 -0
- package/dist/vidstack-GkTzay8D-SQU5IF3P.js +482 -0
- package/dist/web-components.d.ts +12 -0
- package/dist/web-components.js +123 -0
- package/dist/worker.js +1 -0
- package/dist/zh-CN-PVVDP25S.js +2 -0
- package/dist/zh-CN-TLPNCXUN.js +1233 -0
- package/dist/zh-HK-GOKVZUJZ.js +1233 -0
- package/dist/zh-HK-Z5B2ANLW.js +2 -0
- package/dist/zh-Hant-2R7T4HJT.js +1233 -0
- package/dist/zh-Hant-MWAFLLDD.js +2 -0
- package/dist/zh-cn-D36OS2SI.js +2 -0
- package/dist/zh-cn-Z5YVUN62.js +98 -0
- package/dist/zh-tw-JWILJCBD.js +2 -0
- package/dist/zh-tw-X7JGMR4G.js +98 -0
- package/package.json +84 -3
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./chunk-RFBBAUMM.js";var o=()=>{};function f(n,t){return n!=n?t==t:n!==t||n!==null&&typeof n=="object"||typeof n=="function"}var s=!1;function T(n){var t=s;try{return s=!0,n()}finally{s=t}}function d(n,t,i){if(n==null)return t(void 0),o;let l=T(()=>n.subscribe(t,i));return l.unsubscribe?()=>l.unsubscribe():l}var h=[];function p(n,t=o){let i=null,l=new Set;function r(a){if(f(n,a)&&(n=a,i)){let c=!h.length;for(let e of l)e[1](),h.push(e,n);if(c){for(let e=0;e<h.length;e+=2)h[e][0](h[e+1]);h.length=0}}}function g(a){r(a(n))}function b(a,c=o){let e=[a,c];return l.add(e),l.size===1&&(i=t(r,g)||o),a(n),()=>{l.delete(e),l.size===0&&i&&(i(),i=null)}}return{set:r,update:g,subscribe:b}}function u(n){let t;return d(n,i=>t=i)(),t}globalThis.altchaPlugins=globalThis.altchaPlugins||[];globalThis.altchaI18n=globalThis.altchaI18n||{get:n=>u(globalThis.altchaI18n.store)[n],set:(n,t)=>{Object.assign(u(globalThis.altchaI18n.store),{[n]:t}),globalThis.altchaI18n.store.set(u(globalThis.altchaI18n.store))},store:p({})};var m={ariaLinkLabel:"Truy c\u1EADp Altcha.org",enterCode:"Nh\u1EADp m\xE3",enterCodeAria:"Nh\u1EADp m\xE3 b\u1EA1n nghe \u0111\u01B0\u1EE3c. Nh\u1EA5n Ph\xEDm c\xE1ch \u0111\u1EC3 ph\xE1t \xE2m thanh.",error:"X\xE1c minh th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i sau.",expired:"X\xE1c minh \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng th\u1EED l\u1EA1i.",verificationRequired:"Y\xEAu c\u1EA7u x\xE1c minh!",footer:'\u0110\u01B0\u1EE3c b\u1EA3o v\u1EC7 b\u1EDFi <a href="https://altcha.org/" target="_blank" aria-label="Truy c\u1EADp Altcha.org">ALTCHA</a>',getAudioChallenge:"Nh\u1EADn th\u1EED th\xE1ch \xE2m thanh",label:"T\xF4i kh\xF4ng ph\u1EA3i l\xE0 robot",loading:"\u0110ang t\u1EA3i...",reload:"T\u1EA3i l\u1EA1i",verify:"X\xE1c minh",verified:"\u0110\xE3 x\xE1c minh",verifying:"\u0110ang x\xE1c minh...",waitAlert:"\u0110ang x\xE1c minh... vui l\xF2ng ch\u1EDD."};globalThis.altchaI18n.set("vi",m);export{m as i18n};
|
|
2
|
+
//# sourceMappingURL=vi-SS65KZTI.js.map
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import "./chunk-G3PMV62Z.js";
|
|
2
|
+
|
|
3
|
+
// ../../node_modules/.pnpm/altcha@2.3.0/node_modules/altcha/dist_i18n/vi.js
|
|
4
|
+
var o = () => {
|
|
5
|
+
};
|
|
6
|
+
function f(t, n) {
|
|
7
|
+
return t != t ? n == n : t !== n || t !== null && typeof t == "object" || typeof t == "function";
|
|
8
|
+
}
|
|
9
|
+
var a = false;
|
|
10
|
+
function p(t) {
|
|
11
|
+
var n = a;
|
|
12
|
+
try {
|
|
13
|
+
return a = true, t();
|
|
14
|
+
} finally {
|
|
15
|
+
a = n;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function d(t, n, i) {
|
|
19
|
+
if (t == null)
|
|
20
|
+
return n(void 0), o;
|
|
21
|
+
const r = p(
|
|
22
|
+
() => t.subscribe(
|
|
23
|
+
n,
|
|
24
|
+
// @ts-expect-error
|
|
25
|
+
i
|
|
26
|
+
)
|
|
27
|
+
);
|
|
28
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
|
+
}
|
|
30
|
+
var c = [];
|
|
31
|
+
function T(t, n = o) {
|
|
32
|
+
let i = null;
|
|
33
|
+
const r = /* @__PURE__ */ new Set();
|
|
34
|
+
function s(l) {
|
|
35
|
+
if (f(t, l) && (t = l, i)) {
|
|
36
|
+
const h = !c.length;
|
|
37
|
+
for (const e of r)
|
|
38
|
+
e[1](), c.push(e, t);
|
|
39
|
+
if (h) {
|
|
40
|
+
for (let e = 0; e < c.length; e += 2)
|
|
41
|
+
c[e][0](c[e + 1]);
|
|
42
|
+
c.length = 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function b(l) {
|
|
47
|
+
s(l(
|
|
48
|
+
/** @type {T} */
|
|
49
|
+
t
|
|
50
|
+
));
|
|
51
|
+
}
|
|
52
|
+
function g(l, h = o) {
|
|
53
|
+
const e = [l, h];
|
|
54
|
+
return r.add(e), r.size === 1 && (i = n(s, b) || o), l(
|
|
55
|
+
/** @type {T} */
|
|
56
|
+
t
|
|
57
|
+
), () => {
|
|
58
|
+
r.delete(e), r.size === 0 && i && (i(), i = null);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
return { set: s, update: b, subscribe: g };
|
|
62
|
+
}
|
|
63
|
+
function u(t) {
|
|
64
|
+
let n;
|
|
65
|
+
return d(t, (i) => n = i)(), n;
|
|
66
|
+
}
|
|
67
|
+
globalThis.altchaPlugins = globalThis.altchaPlugins || [];
|
|
68
|
+
globalThis.altchaI18n = globalThis.altchaI18n || {
|
|
69
|
+
get: (t) => u(globalThis.altchaI18n.store)[t],
|
|
70
|
+
set: (t, n) => {
|
|
71
|
+
Object.assign(u(globalThis.altchaI18n.store), {
|
|
72
|
+
[t]: n
|
|
73
|
+
}), globalThis.altchaI18n.store.set(u(globalThis.altchaI18n.store));
|
|
74
|
+
},
|
|
75
|
+
store: T({})
|
|
76
|
+
};
|
|
77
|
+
var m = {
|
|
78
|
+
ariaLinkLabel: "Truy c\u1EADp Altcha.org",
|
|
79
|
+
enterCode: "Nh\u1EADp m\xE3",
|
|
80
|
+
enterCodeAria: "Nh\u1EADp m\xE3 b\u1EA1n nghe \u0111\u01B0\u1EE3c. Nh\u1EA5n Ph\xEDm c\xE1ch \u0111\u1EC3 ph\xE1t \xE2m thanh.",
|
|
81
|
+
error: "X\xE1c minh th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i sau.",
|
|
82
|
+
expired: "X\xE1c minh \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng th\u1EED l\u1EA1i.",
|
|
83
|
+
verificationRequired: "Y\xEAu c\u1EA7u x\xE1c minh!",
|
|
84
|
+
footer: '\u0110\u01B0\u1EE3c b\u1EA3o v\u1EC7 b\u1EDFi <a href="https://altcha.org/" target="_blank" aria-label="Truy c\u1EADp Altcha.org">ALTCHA</a>',
|
|
85
|
+
getAudioChallenge: "Nh\u1EADn th\u1EED th\xE1ch \xE2m thanh",
|
|
86
|
+
label: "T\xF4i kh\xF4ng ph\u1EA3i l\xE0 robot",
|
|
87
|
+
loading: "\u0110ang t\u1EA3i...",
|
|
88
|
+
reload: "T\u1EA3i l\u1EA1i",
|
|
89
|
+
verify: "X\xE1c minh",
|
|
90
|
+
verified: "\u0110\xE3 x\xE1c minh",
|
|
91
|
+
verifying: "\u0110ang x\xE1c minh...",
|
|
92
|
+
waitAlert: "\u0110ang x\xE1c minh... vui l\xF2ng ch\u1EDD."
|
|
93
|
+
};
|
|
94
|
+
globalThis.altchaI18n.set("vi", m);
|
|
95
|
+
export {
|
|
96
|
+
m as i18n
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=vi-YQVNQEVG.js.map
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Component,
|
|
4
|
+
DOMEvent,
|
|
5
|
+
EventsController,
|
|
6
|
+
EventsTarget,
|
|
7
|
+
Icon$0,
|
|
8
|
+
Icon$104,
|
|
9
|
+
Icon$105,
|
|
10
|
+
Icon$11,
|
|
11
|
+
Icon$13,
|
|
12
|
+
Icon$16,
|
|
13
|
+
Icon$19,
|
|
14
|
+
Icon$22,
|
|
15
|
+
Icon$24,
|
|
16
|
+
Icon$26,
|
|
17
|
+
Icon$27,
|
|
18
|
+
Icon$31,
|
|
19
|
+
Icon$33,
|
|
20
|
+
Icon$34,
|
|
21
|
+
Icon$35,
|
|
22
|
+
Icon$39,
|
|
23
|
+
Icon$40,
|
|
24
|
+
Icon$5,
|
|
25
|
+
Icon$53,
|
|
26
|
+
Icon$54,
|
|
27
|
+
Icon$56,
|
|
28
|
+
Icon$58,
|
|
29
|
+
Icon$59,
|
|
30
|
+
Icon$60,
|
|
31
|
+
Icon$61,
|
|
32
|
+
Icon$62,
|
|
33
|
+
Icon$63,
|
|
34
|
+
Icon$74,
|
|
35
|
+
Icon$77,
|
|
36
|
+
Icon$8,
|
|
37
|
+
Icon$81,
|
|
38
|
+
Icon$86,
|
|
39
|
+
Icon$88,
|
|
40
|
+
State,
|
|
41
|
+
ViewController,
|
|
42
|
+
animationFrameThrottle,
|
|
43
|
+
appendTriggerEvent,
|
|
44
|
+
ariaBool,
|
|
45
|
+
camelToKebabCase,
|
|
46
|
+
chromecast_exports,
|
|
47
|
+
composeRefs,
|
|
48
|
+
computed,
|
|
49
|
+
createContext,
|
|
50
|
+
createDisposalBin,
|
|
51
|
+
createReactComponent,
|
|
52
|
+
createScope,
|
|
53
|
+
deferredPromise,
|
|
54
|
+
effect,
|
|
55
|
+
findTriggerEvent,
|
|
56
|
+
fscreen,
|
|
57
|
+
functionDebounce,
|
|
58
|
+
functionThrottle,
|
|
59
|
+
getScope,
|
|
60
|
+
hasProvidedContext,
|
|
61
|
+
hasTriggerEvent,
|
|
62
|
+
isArray,
|
|
63
|
+
isBoolean,
|
|
64
|
+
isDOMNode,
|
|
65
|
+
isFunction,
|
|
66
|
+
isKeyboardClick,
|
|
67
|
+
isKeyboardEvent,
|
|
68
|
+
isMouseEvent,
|
|
69
|
+
isNil,
|
|
70
|
+
isNull,
|
|
71
|
+
isNumber,
|
|
72
|
+
isObject,
|
|
73
|
+
isPointerEvent,
|
|
74
|
+
isString,
|
|
75
|
+
isTouchEvent,
|
|
76
|
+
isUndefined,
|
|
77
|
+
isWriteSignal,
|
|
78
|
+
kebabToCamelCase,
|
|
79
|
+
keysOf,
|
|
80
|
+
listenEvent,
|
|
81
|
+
method,
|
|
82
|
+
noop,
|
|
83
|
+
onDispose,
|
|
84
|
+
peek,
|
|
85
|
+
prop,
|
|
86
|
+
provideContext,
|
|
87
|
+
r,
|
|
88
|
+
scoped,
|
|
89
|
+
setAttribute,
|
|
90
|
+
setStyle,
|
|
91
|
+
signal,
|
|
92
|
+
tick,
|
|
93
|
+
toggleClass,
|
|
94
|
+
untrack,
|
|
95
|
+
uppercaseFirstChar,
|
|
96
|
+
useContext,
|
|
97
|
+
useReactContext,
|
|
98
|
+
useReactScope,
|
|
99
|
+
useSignal,
|
|
100
|
+
useSignalRecord,
|
|
101
|
+
useState,
|
|
102
|
+
useStateContext,
|
|
103
|
+
waitIdlePeriod,
|
|
104
|
+
waitTimeout,
|
|
105
|
+
walkTriggerEventChain,
|
|
106
|
+
wasEnterKeyPressed
|
|
107
|
+
} from "./chunk-IUB5YLUU.js";
|
|
108
|
+
import "./chunk-G3PMV62Z.js";
|
|
109
|
+
export {
|
|
110
|
+
Component,
|
|
111
|
+
DOMEvent,
|
|
112
|
+
EventsController,
|
|
113
|
+
EventsTarget,
|
|
114
|
+
Icon$0,
|
|
115
|
+
Icon$104,
|
|
116
|
+
Icon$105,
|
|
117
|
+
Icon$11,
|
|
118
|
+
Icon$13,
|
|
119
|
+
Icon$16,
|
|
120
|
+
Icon$19,
|
|
121
|
+
Icon$22,
|
|
122
|
+
Icon$24,
|
|
123
|
+
Icon$26,
|
|
124
|
+
Icon$27,
|
|
125
|
+
Icon$31,
|
|
126
|
+
Icon$33,
|
|
127
|
+
Icon$34,
|
|
128
|
+
Icon$35,
|
|
129
|
+
Icon$39,
|
|
130
|
+
Icon$40,
|
|
131
|
+
Icon$5,
|
|
132
|
+
Icon$53,
|
|
133
|
+
Icon$54,
|
|
134
|
+
Icon$56,
|
|
135
|
+
Icon$58,
|
|
136
|
+
Icon$59,
|
|
137
|
+
Icon$60,
|
|
138
|
+
Icon$61,
|
|
139
|
+
Icon$62,
|
|
140
|
+
Icon$63,
|
|
141
|
+
Icon$74,
|
|
142
|
+
Icon$77,
|
|
143
|
+
Icon$8,
|
|
144
|
+
Icon$81,
|
|
145
|
+
Icon$86,
|
|
146
|
+
Icon$88,
|
|
147
|
+
State,
|
|
148
|
+
ViewController,
|
|
149
|
+
animationFrameThrottle,
|
|
150
|
+
appendTriggerEvent,
|
|
151
|
+
ariaBool,
|
|
152
|
+
camelToKebabCase,
|
|
153
|
+
chromecast_exports,
|
|
154
|
+
composeRefs,
|
|
155
|
+
computed,
|
|
156
|
+
createContext,
|
|
157
|
+
createDisposalBin,
|
|
158
|
+
createReactComponent,
|
|
159
|
+
createScope,
|
|
160
|
+
deferredPromise,
|
|
161
|
+
effect,
|
|
162
|
+
findTriggerEvent,
|
|
163
|
+
fscreen,
|
|
164
|
+
functionDebounce,
|
|
165
|
+
functionThrottle,
|
|
166
|
+
getScope,
|
|
167
|
+
hasProvidedContext,
|
|
168
|
+
hasTriggerEvent,
|
|
169
|
+
isArray,
|
|
170
|
+
isBoolean,
|
|
171
|
+
isDOMNode,
|
|
172
|
+
isFunction,
|
|
173
|
+
isKeyboardClick,
|
|
174
|
+
isKeyboardEvent,
|
|
175
|
+
isMouseEvent,
|
|
176
|
+
isNil,
|
|
177
|
+
isNull,
|
|
178
|
+
isNumber,
|
|
179
|
+
isObject,
|
|
180
|
+
isPointerEvent,
|
|
181
|
+
isString,
|
|
182
|
+
isTouchEvent,
|
|
183
|
+
isUndefined,
|
|
184
|
+
isWriteSignal,
|
|
185
|
+
kebabToCamelCase,
|
|
186
|
+
keysOf,
|
|
187
|
+
listenEvent,
|
|
188
|
+
method,
|
|
189
|
+
noop,
|
|
190
|
+
onDispose,
|
|
191
|
+
peek,
|
|
192
|
+
prop,
|
|
193
|
+
provideContext,
|
|
194
|
+
r,
|
|
195
|
+
scoped,
|
|
196
|
+
setAttribute,
|
|
197
|
+
setStyle,
|
|
198
|
+
signal,
|
|
199
|
+
tick,
|
|
200
|
+
toggleClass,
|
|
201
|
+
untrack,
|
|
202
|
+
uppercaseFirstChar,
|
|
203
|
+
useContext,
|
|
204
|
+
useReactContext,
|
|
205
|
+
useReactScope,
|
|
206
|
+
useSignal,
|
|
207
|
+
useSignalRecord,
|
|
208
|
+
useState,
|
|
209
|
+
useStateContext,
|
|
210
|
+
waitIdlePeriod,
|
|
211
|
+
waitTimeout,
|
|
212
|
+
walkTriggerEventChain,
|
|
213
|
+
wasEnterKeyPressed
|
|
214
|
+
};
|
|
215
|
+
//# sourceMappingURL=vidstack-B9fTkxQO-LJP5ADOO.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";import{$ as _,A as z,Aa as za,B as A,Ba as Aa,C as B,Ca as Ba,D as C,Da as Ca,E as D,Ea as Da,F as E,Fa as Ea,G as F,Ga as Fa,H as G,Ha as Ga,I as H,Ia as Ha,J as I,Ja as Ia,K as J,Ka as Ja,L as K,La as Ka,M as L,Ma as La,N as M,Na as Ma,O as N,Oa as Na,P as O,Pa as Oa,Q as P,Qa as Pa,R as Q,Ra as Qa,S as R,Sa as Ra,T as S,Ta as Sa,U as T,Ua as Ta,V as U,Va as Ua,W as V,Wa as Va,X as W,Xa as Wa,Y as X,Ya as Xa,Z as Y,_ as Z,aa as $,b as a,ba as aa,c as b,ca as ba,d as c,da as ca,e as d,ea as da,f as e,fa as ea,g as f,ga as fa,h as g,ha as ga,i as h,ia as ha,j as i,ja as ia,k as j,ka as ja,l as k,la as ka,m as l,ma as la,n as m,na as ma,o as n,oa as na,p as o,pa as oa,q as p,qa as pa,r as q,ra as qa,s as r,sa as ra,t as s,ta as sa,u as t,ua as ta,v as u,va as ua,w as v,wa as va,x as w,xa as wa,y as x,ya as xa,z as y,za as ya}from"./chunk-BH27SBYG.js";import"./chunk-74RRJOB4.js";import"./chunk-RFBBAUMM.js";export{ba as Component,v as DOMEvent,C as EventsController,A as EventsTarget,qa as Icon$0,Wa as Icon$104,Xa as Icon$105,ta as Icon$11,ua as Icon$13,va as Icon$16,wa as Icon$19,xa as Icon$22,za as Icon$24,Aa as Icon$26,Ba as Icon$27,Ca as Icon$31,Da as Icon$33,Ea as Icon$34,Fa as Icon$35,Ga as Icon$39,Ha as Icon$40,ra as Icon$5,Ia as Icon$53,Ja as Icon$54,Ka as Icon$56,La as Icon$58,Ma as Icon$59,Na as Icon$60,Oa as Icon$61,Pa as Icon$62,Qa as Icon$63,Ra as Icon$74,Sa as Icon$77,sa as Icon$8,Ta as Icon$81,Ua as Icon$86,Va as Icon$88,ea as State,aa as ViewController,V as animationFrameThrottle,z as appendTriggerEvent,Q as ariaBool,N as camelToKebabCase,ya as chromecast_exports,la as composeRefs,i as computed,Y as createContext,R as createDisposalBin,pa as createReactComponent,g as createScope,T as deferredPromise,u as effect,x as findTriggerEvent,X as fscreen,ha as functionDebounce,ga as functionThrottle,d as getScope,$ as hasProvidedContext,y as hasTriggerEvent,t as isArray,r as isBoolean,J as isDOMNode,s as isFunction,I as isKeyboardClick,G as isKeyboardEvent,F as isMouseEvent,n as isNil,l as isNull,p as isNumber,o as isObject,D as isPointerEvent,q as isString,E as isTouchEvent,m as isUndefined,j as isWriteSignal,O as kebabToCamelCase,S as keysOf,B as listenEvent,da as method,k as noop,f as onDispose,a as peek,ca as prop,Z as provideContext,ia as r,e as scoped,K as setAttribute,L as setStyle,h as signal,c as tick,M as toggleClass,b as untrack,P as uppercaseFirstChar,_ as useContext,ka as useReactContext,ja as useReactScope,na as useSignal,oa as useSignalRecord,fa as useState,ma as useStateContext,W as waitIdlePeriod,U as waitTimeout,w as walkTriggerEventChain,H as wasEnterKeyPressed};
|
|
2
|
+
//# sourceMappingURL=vidstack-B9fTkxQO-OCT23G55.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";import{a as k}from"./chunk-XAORGJWX.js";import{a as P}from"./chunk-NLJE74VA.js";import{I as v,o as u}from"./chunk-FGBB7FT5.js";import{U as b,h as c,i as p,p as y,q as n,r as m,s as f,v as g}from"./chunk-BH27SBYG.js";import"./chunk-74RRJOB4.js";import"./chunk-RFBBAUMM.js";var r={Unstarted:-1,Ended:0,Playing:1,Paused:2,Buffering:3,Cued:5},E=class extends k{$$PROVIDER_TYPE="YOUTUBE";scope=c();#e;#a=p("");#o=-1;#d=null;#r=-1;#i=!1;#s=new Map;constructor(e,t){super(e),this.#e=t}language="en";color="red";cookies=!1;get currentSrc(){return this.#d}get type(){return"youtube"}get videoId(){return this.#a()}preconnect(){v(this.getOrigin())}setup(){super.setup(),g(this.#c.bind(this)),this.#e.notify("provider-setup",this)}destroy(){this.#l();let e="provider destroyed";for(let t of this.#s.values())for(let{reject:s}of t)s(e);this.#s.clear()}async play(){return this.#t("playVideo")}#v(e){this.#n("playVideo")?.reject(e)}async pause(){return this.#t("pauseVideo")}#k(e){this.#n("pauseVideo")?.reject(e)}setMuted(e){e?this.#t("mute"):this.#t("unMute")}setCurrentTime(e){this.#t("seekTo",[e,!0]),this.#e.notify("seeking",e)}setVolume(e){this.#t("setVolume",e*100)}setPlaybackRate(e){this.#t("setPlaybackRate",e)}async loadSource(e){if(!m(e.src)){this.#d=null,this.#a.set("");return}let t=P(e.src);this.#a.set(t??""),this.#d=e}getOrigin(){return this.cookies?"https://www.youtube.com":"https://www.youtube-nocookie.com"}#c(){this.#l();let e=this.#a();if(!e){this.src.set("");return}this.src.set(`${this.getOrigin()}/embed/${e}`),this.#e.notify("load-start")}buildParams(){let{keyDisabled:e}=this.#e.$props,{muted:t,playsInline:s,nativeControls:a}=this.#e.$state,i=a();return{rel:0,autoplay:0,cc_lang_pref:this.language,cc_load_policy:i?1:void 0,color:this.color,controls:i?1:0,disablekb:!i||e()?1:0,enablejsapi:1,fs:1,hl:this.language,iv_load_policy:i?1:3,mute:t()?1:0,playsinline:s()?1:0}}#t(e,t){let s=b(),a=this.#s.get(e);a||this.#s.set(e,a=[]),a.push(s);let i=Array.isArray(t)?t:t?[t]:void 0;return this.postMessage({event:"command",func:e,args:i}),s.promise}onLoad(){window.setTimeout(()=>this.postMessage({event:"listening"}),100)}#p(e){this.#e.notify("loaded-metadata"),this.#e.notify("loaded-data"),this.#e.delegate.ready(void 0,e)}#y(e){this.#n("pauseVideo")?.resolve(),this.#e.notify("pause",void 0,e)}#m(e,t){let{duration:s,realCurrentTime:a}=this.#e.$state,i=this.#o===r.Ended,o=i?s():e;this.#e.notify("time-change",o,t),!i&&Math.abs(o-a())>1&&this.#e.notify("seeking",o,t)}#u(e,t,s){let a={buffered:new u(0,e),seekable:t};this.#e.notify("progress",a,s);let{seeking:i,realCurrentTime:o}=this.#e.$state;i()&&e>o()&&this.#h(s)}#h(e){let{paused:t,realCurrentTime:s}=this.#e.$state;window.clearTimeout(this.#r),this.#r=window.setTimeout(()=>{this.#e.notify("seeked",s(),e),this.#r=-1},t()?100:0)}#f(e){let{seeking:t}=this.#e.$state;t()&&this.#h(e),this.#e.notify("pause",void 0,e),this.#e.notify("end",void 0,e)}#g(e,t){let{paused:s,seeking:a}=this.#e.$state,i=e===r.Playing,o=e===r.Buffering,d=this.#b("playVideo"),h=s()&&(o||i);if(o&&this.#e.notify("waiting",void 0,t),a()&&i&&this.#h(t),this.#i&&i){this.pause(),this.#i=!1,this.setMuted(this.#e.$state.muted());return}if(!d&&h){this.#i=!0,this.setMuted(!0);return}switch(h&&(this.#n("playVideo")?.resolve(),this.#e.notify("play",void 0,t)),e){case r.Cued:this.#p(t);break;case r.Playing:this.#e.notify("playing",void 0,t);break;case r.Paused:this.#y(t);break;case r.Ended:this.#f(t);break}this.#o=e}onMessage({info:e},t){if(!e)return;let{title:s,intrinsicDuration:a,playbackRate:i}=this.#e.$state;if(y(e.videoData)&&e.videoData.title!==s()&&this.#e.notify("title-change",e.videoData.title,t),n(e.duration)&&e.duration!==a()){if(n(e.videoLoadedFraction)){let o=e.progressState?.loaded??e.videoLoadedFraction*e.duration,d=new u(0,e.duration);this.#u(o,d,t)}this.#e.notify("duration-change",e.duration,t)}if(n(e.playbackRate)&&e.playbackRate!==i()&&this.#e.notify("rate-change",e.playbackRate,t),e.progressState){let{current:o,seekableStart:d,seekableEnd:h,loaded:w,duration:l}=e.progressState;this.#m(o,t),this.#u(w,new u(d,h),t),l!==a()&&this.#e.notify("duration-change",l,t)}if(n(e.volume)&&f(e.muted)&&!this.#i){let o={muted:e.muted,volume:e.volume/100};this.#e.notify("volume-change",o,t)}n(e.playerState)&&e.playerState!==this.#o&&this.#g(e.playerState,t)}#l(){this.#o=-1,this.#r=-1,this.#i=!1}#n(e){return this.#s.get(e)?.shift()}#b(e){return!!this.#s.get(e)?.length}};export{E as YouTubeProvider};
|
|
2
|
+
//# sourceMappingURL=vidstack-BmcqUMKx-A2W3TQB6.js.map
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
EmbedProvider
|
|
4
|
+
} from "./chunk-RJTKNOYT.js";
|
|
5
|
+
import {
|
|
6
|
+
TimeRange,
|
|
7
|
+
preconnect
|
|
8
|
+
} from "./chunk-2UBPQBQI.js";
|
|
9
|
+
import {
|
|
10
|
+
resolveYouTubeVideoId
|
|
11
|
+
} from "./chunk-OJQYDPRD.js";
|
|
12
|
+
import {
|
|
13
|
+
createScope,
|
|
14
|
+
deferredPromise,
|
|
15
|
+
effect,
|
|
16
|
+
isBoolean,
|
|
17
|
+
isNumber,
|
|
18
|
+
isObject,
|
|
19
|
+
isString,
|
|
20
|
+
signal
|
|
21
|
+
} from "./chunk-IUB5YLUU.js";
|
|
22
|
+
import "./chunk-G3PMV62Z.js";
|
|
23
|
+
|
|
24
|
+
// ../../node_modules/.pnpm/@vidstack+react@1.15.6_@types+react@19.2.8_react@19.2.1/node_modules/@vidstack/react/prod/chunks/vidstack-BmcqUMKx.js
|
|
25
|
+
var YouTubePlayerState = {
|
|
26
|
+
Unstarted: -1,
|
|
27
|
+
Ended: 0,
|
|
28
|
+
Playing: 1,
|
|
29
|
+
Paused: 2,
|
|
30
|
+
Buffering: 3,
|
|
31
|
+
Cued: 5
|
|
32
|
+
};
|
|
33
|
+
var YouTubeProvider = class extends EmbedProvider {
|
|
34
|
+
$$PROVIDER_TYPE = "YOUTUBE";
|
|
35
|
+
scope = createScope();
|
|
36
|
+
#ctx;
|
|
37
|
+
#videoId = signal("");
|
|
38
|
+
#state = -1;
|
|
39
|
+
#currentSrc = null;
|
|
40
|
+
#seekingTimer = -1;
|
|
41
|
+
#invalidPlay = false;
|
|
42
|
+
#promises = /* @__PURE__ */ new Map();
|
|
43
|
+
constructor(iframe, ctx) {
|
|
44
|
+
super(iframe);
|
|
45
|
+
this.#ctx = ctx;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Sets the player's interface language. The parameter value is an ISO 639-1 two-letter
|
|
49
|
+
* language code or a fully specified locale. For example, fr and fr-ca are both valid values.
|
|
50
|
+
* Other language input codes, such as IETF language tags (BCP 47) might also be handled properly.
|
|
51
|
+
*
|
|
52
|
+
* The interface language is used for tooltips in the player and also affects the default caption
|
|
53
|
+
* track. Note that YouTube might select a different caption track language for a particular
|
|
54
|
+
* user based on the user's individual language preferences and the availability of caption tracks.
|
|
55
|
+
*
|
|
56
|
+
* @defaultValue 'en'
|
|
57
|
+
*/
|
|
58
|
+
language = "en";
|
|
59
|
+
color = "red";
|
|
60
|
+
/**
|
|
61
|
+
* Whether cookies should be enabled on the embed. This is turned off by default to be
|
|
62
|
+
* GDPR-compliant.
|
|
63
|
+
*
|
|
64
|
+
* @defaultValue `false`
|
|
65
|
+
*/
|
|
66
|
+
cookies = false;
|
|
67
|
+
get currentSrc() {
|
|
68
|
+
return this.#currentSrc;
|
|
69
|
+
}
|
|
70
|
+
get type() {
|
|
71
|
+
return "youtube";
|
|
72
|
+
}
|
|
73
|
+
get videoId() {
|
|
74
|
+
return this.#videoId();
|
|
75
|
+
}
|
|
76
|
+
preconnect() {
|
|
77
|
+
preconnect(this.getOrigin());
|
|
78
|
+
}
|
|
79
|
+
setup() {
|
|
80
|
+
super.setup();
|
|
81
|
+
effect(this.#watchVideoId.bind(this));
|
|
82
|
+
this.#ctx.notify("provider-setup", this);
|
|
83
|
+
}
|
|
84
|
+
destroy() {
|
|
85
|
+
this.#reset();
|
|
86
|
+
const message = "provider destroyed";
|
|
87
|
+
for (const promises of this.#promises.values()) for (const { reject } of promises) reject(message);
|
|
88
|
+
this.#promises.clear();
|
|
89
|
+
}
|
|
90
|
+
async play() {
|
|
91
|
+
return this.#remote("playVideo");
|
|
92
|
+
}
|
|
93
|
+
#playFail(message) {
|
|
94
|
+
this.#getPromise("playVideo")?.reject(message);
|
|
95
|
+
}
|
|
96
|
+
async pause() {
|
|
97
|
+
return this.#remote("pauseVideo");
|
|
98
|
+
}
|
|
99
|
+
#pauseFail(message) {
|
|
100
|
+
this.#getPromise("pauseVideo")?.reject(message);
|
|
101
|
+
}
|
|
102
|
+
setMuted(muted) {
|
|
103
|
+
if (muted) this.#remote("mute");
|
|
104
|
+
else this.#remote("unMute");
|
|
105
|
+
}
|
|
106
|
+
setCurrentTime(time) {
|
|
107
|
+
this.#remote("seekTo", [time, true]);
|
|
108
|
+
this.#ctx.notify("seeking", time);
|
|
109
|
+
}
|
|
110
|
+
setVolume(volume) {
|
|
111
|
+
this.#remote("setVolume", volume * 100);
|
|
112
|
+
}
|
|
113
|
+
setPlaybackRate(rate) {
|
|
114
|
+
this.#remote("setPlaybackRate", rate);
|
|
115
|
+
}
|
|
116
|
+
async loadSource(src) {
|
|
117
|
+
if (!isString(src.src)) {
|
|
118
|
+
this.#currentSrc = null;
|
|
119
|
+
this.#videoId.set("");
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
const videoId = resolveYouTubeVideoId(src.src);
|
|
123
|
+
this.#videoId.set(videoId ?? "");
|
|
124
|
+
this.#currentSrc = src;
|
|
125
|
+
}
|
|
126
|
+
getOrigin() {
|
|
127
|
+
return !this.cookies ? "https://www.youtube-nocookie.com" : "https://www.youtube.com";
|
|
128
|
+
}
|
|
129
|
+
#watchVideoId() {
|
|
130
|
+
this.#reset();
|
|
131
|
+
const videoId = this.#videoId();
|
|
132
|
+
if (!videoId) {
|
|
133
|
+
this.src.set("");
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
this.src.set(`${this.getOrigin()}/embed/${videoId}`);
|
|
137
|
+
this.#ctx.notify("load-start");
|
|
138
|
+
}
|
|
139
|
+
buildParams() {
|
|
140
|
+
const { keyDisabled } = this.#ctx.$props, { muted, playsInline, nativeControls } = this.#ctx.$state, showControls = nativeControls();
|
|
141
|
+
return {
|
|
142
|
+
rel: 0,
|
|
143
|
+
autoplay: 0,
|
|
144
|
+
cc_lang_pref: this.language,
|
|
145
|
+
cc_load_policy: showControls ? 1 : void 0,
|
|
146
|
+
color: this.color,
|
|
147
|
+
controls: showControls ? 1 : 0,
|
|
148
|
+
disablekb: !showControls || keyDisabled() ? 1 : 0,
|
|
149
|
+
enablejsapi: 1,
|
|
150
|
+
fs: 1,
|
|
151
|
+
hl: this.language,
|
|
152
|
+
iv_load_policy: showControls ? 1 : 3,
|
|
153
|
+
mute: muted() ? 1 : 0,
|
|
154
|
+
playsinline: playsInline() ? 1 : 0
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
#remote(command, arg) {
|
|
158
|
+
let promise = deferredPromise(), promises = this.#promises.get(command);
|
|
159
|
+
if (!promises) this.#promises.set(command, promises = []);
|
|
160
|
+
promises.push(promise);
|
|
161
|
+
const args = Array.isArray(arg) ? arg : arg ? [arg] : void 0;
|
|
162
|
+
this.postMessage({
|
|
163
|
+
event: "command",
|
|
164
|
+
func: command,
|
|
165
|
+
args
|
|
166
|
+
});
|
|
167
|
+
return promise.promise;
|
|
168
|
+
}
|
|
169
|
+
onLoad() {
|
|
170
|
+
window.setTimeout(() => this.postMessage({ event: "listening" }), 100);
|
|
171
|
+
}
|
|
172
|
+
#onReady(trigger) {
|
|
173
|
+
this.#ctx.notify("loaded-metadata");
|
|
174
|
+
this.#ctx.notify("loaded-data");
|
|
175
|
+
this.#ctx.delegate.ready(void 0, trigger);
|
|
176
|
+
}
|
|
177
|
+
#onPause(trigger) {
|
|
178
|
+
this.#getPromise("pauseVideo")?.resolve();
|
|
179
|
+
this.#ctx.notify("pause", void 0, trigger);
|
|
180
|
+
}
|
|
181
|
+
#onTimeUpdate(time, trigger) {
|
|
182
|
+
const { duration, realCurrentTime } = this.#ctx.$state, hasEnded = this.#state === YouTubePlayerState.Ended, boundTime = hasEnded ? duration() : time;
|
|
183
|
+
this.#ctx.notify("time-change", boundTime, trigger);
|
|
184
|
+
if (!hasEnded && Math.abs(boundTime - realCurrentTime()) > 1) this.#ctx.notify("seeking", boundTime, trigger);
|
|
185
|
+
}
|
|
186
|
+
#onProgress(buffered, seekable, trigger) {
|
|
187
|
+
const detail = {
|
|
188
|
+
buffered: new TimeRange(0, buffered),
|
|
189
|
+
seekable
|
|
190
|
+
};
|
|
191
|
+
this.#ctx.notify("progress", detail, trigger);
|
|
192
|
+
const { seeking, realCurrentTime } = this.#ctx.$state;
|
|
193
|
+
if (seeking() && buffered > realCurrentTime()) this.#onSeeked(trigger);
|
|
194
|
+
}
|
|
195
|
+
#onSeeked(trigger) {
|
|
196
|
+
const { paused, realCurrentTime } = this.#ctx.$state;
|
|
197
|
+
window.clearTimeout(this.#seekingTimer);
|
|
198
|
+
this.#seekingTimer = window.setTimeout(() => {
|
|
199
|
+
this.#ctx.notify("seeked", realCurrentTime(), trigger);
|
|
200
|
+
this.#seekingTimer = -1;
|
|
201
|
+
}, paused() ? 100 : 0);
|
|
202
|
+
}
|
|
203
|
+
#onEnded(trigger) {
|
|
204
|
+
const { seeking } = this.#ctx.$state;
|
|
205
|
+
if (seeking()) this.#onSeeked(trigger);
|
|
206
|
+
this.#ctx.notify("pause", void 0, trigger);
|
|
207
|
+
this.#ctx.notify("end", void 0, trigger);
|
|
208
|
+
}
|
|
209
|
+
#onStateChange(state, trigger) {
|
|
210
|
+
const { paused, seeking } = this.#ctx.$state, isPlaying = state === YouTubePlayerState.Playing, isBuffering = state === YouTubePlayerState.Buffering, isPendingPlay = this.#isPending("playVideo"), isPlay = paused() && (isBuffering || isPlaying);
|
|
211
|
+
if (isBuffering) this.#ctx.notify("waiting", void 0, trigger);
|
|
212
|
+
if (seeking() && isPlaying) this.#onSeeked(trigger);
|
|
213
|
+
if (this.#invalidPlay && isPlaying) {
|
|
214
|
+
this.pause();
|
|
215
|
+
this.#invalidPlay = false;
|
|
216
|
+
this.setMuted(this.#ctx.$state.muted());
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
if (!isPendingPlay && isPlay) {
|
|
220
|
+
this.#invalidPlay = true;
|
|
221
|
+
this.setMuted(true);
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
if (isPlay) {
|
|
225
|
+
this.#getPromise("playVideo")?.resolve();
|
|
226
|
+
this.#ctx.notify("play", void 0, trigger);
|
|
227
|
+
}
|
|
228
|
+
switch (state) {
|
|
229
|
+
case YouTubePlayerState.Cued:
|
|
230
|
+
this.#onReady(trigger);
|
|
231
|
+
break;
|
|
232
|
+
case YouTubePlayerState.Playing:
|
|
233
|
+
this.#ctx.notify("playing", void 0, trigger);
|
|
234
|
+
break;
|
|
235
|
+
case YouTubePlayerState.Paused:
|
|
236
|
+
this.#onPause(trigger);
|
|
237
|
+
break;
|
|
238
|
+
case YouTubePlayerState.Ended:
|
|
239
|
+
this.#onEnded(trigger);
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
this.#state = state;
|
|
243
|
+
}
|
|
244
|
+
onMessage({ info }, event) {
|
|
245
|
+
if (!info) return;
|
|
246
|
+
const { title, intrinsicDuration, playbackRate } = this.#ctx.$state;
|
|
247
|
+
if (isObject(info.videoData) && info.videoData.title !== title()) this.#ctx.notify("title-change", info.videoData.title, event);
|
|
248
|
+
if (isNumber(info.duration) && info.duration !== intrinsicDuration()) {
|
|
249
|
+
if (isNumber(info.videoLoadedFraction)) {
|
|
250
|
+
const buffered = info.progressState?.loaded ?? info.videoLoadedFraction * info.duration, seekable = new TimeRange(0, info.duration);
|
|
251
|
+
this.#onProgress(buffered, seekable, event);
|
|
252
|
+
}
|
|
253
|
+
this.#ctx.notify("duration-change", info.duration, event);
|
|
254
|
+
}
|
|
255
|
+
if (isNumber(info.playbackRate) && info.playbackRate !== playbackRate()) this.#ctx.notify("rate-change", info.playbackRate, event);
|
|
256
|
+
if (info.progressState) {
|
|
257
|
+
const { current, seekableStart, seekableEnd, loaded, duration } = info.progressState;
|
|
258
|
+
this.#onTimeUpdate(current, event);
|
|
259
|
+
this.#onProgress(loaded, new TimeRange(seekableStart, seekableEnd), event);
|
|
260
|
+
if (duration !== intrinsicDuration()) this.#ctx.notify("duration-change", duration, event);
|
|
261
|
+
}
|
|
262
|
+
if (isNumber(info.volume) && isBoolean(info.muted) && !this.#invalidPlay) {
|
|
263
|
+
const detail = {
|
|
264
|
+
muted: info.muted,
|
|
265
|
+
volume: info.volume / 100
|
|
266
|
+
};
|
|
267
|
+
this.#ctx.notify("volume-change", detail, event);
|
|
268
|
+
}
|
|
269
|
+
if (isNumber(info.playerState) && info.playerState !== this.#state) this.#onStateChange(info.playerState, event);
|
|
270
|
+
}
|
|
271
|
+
#reset() {
|
|
272
|
+
this.#state = -1;
|
|
273
|
+
this.#seekingTimer = -1;
|
|
274
|
+
this.#invalidPlay = false;
|
|
275
|
+
}
|
|
276
|
+
#getPromise(command) {
|
|
277
|
+
return this.#promises.get(command)?.shift();
|
|
278
|
+
}
|
|
279
|
+
#isPending(command) {
|
|
280
|
+
return Boolean(this.#promises.get(command)?.length);
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
export {
|
|
284
|
+
YouTubeProvider
|
|
285
|
+
};
|
|
286
|
+
//# sourceMappingURL=vidstack-BmcqUMKx-G6TB22IC.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
HTMLAirPlayAdapter,
|
|
4
|
+
HTMLMediaProvider
|
|
5
|
+
} from "./chunk-2UBPQBQI.js";
|
|
6
|
+
import {
|
|
7
|
+
scoped
|
|
8
|
+
} from "./chunk-IUB5YLUU.js";
|
|
9
|
+
import "./chunk-G3PMV62Z.js";
|
|
10
|
+
|
|
11
|
+
// ../../node_modules/.pnpm/@vidstack+react@1.15.6_@types+react@19.2.8_react@19.2.1/node_modules/@vidstack/react/prod/chunks/vidstack-CHcsWfRV.js
|
|
12
|
+
var AudioProvider = class extends HTMLMediaProvider {
|
|
13
|
+
$$PROVIDER_TYPE = "AUDIO";
|
|
14
|
+
get type() {
|
|
15
|
+
return "audio";
|
|
16
|
+
}
|
|
17
|
+
airPlay;
|
|
18
|
+
constructor(audio, ctx) {
|
|
19
|
+
super(audio, ctx);
|
|
20
|
+
scoped(() => {
|
|
21
|
+
this.airPlay = new HTMLAirPlayAdapter(this.media, ctx);
|
|
22
|
+
}, this.scope);
|
|
23
|
+
}
|
|
24
|
+
setup() {
|
|
25
|
+
super.setup();
|
|
26
|
+
if (this.type === "audio") this.ctx.notify("provider-setup", this);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The native HTML `<audio>` element.
|
|
30
|
+
*
|
|
31
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement}
|
|
32
|
+
*/
|
|
33
|
+
get audio() {
|
|
34
|
+
return this.media;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
AudioProvider
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=vidstack-CHcsWfRV-UAVLHO6N.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";import{$ as r,_ as t}from"./chunk-FGBB7FT5.js";import{f as i}from"./chunk-BH27SBYG.js";import"./chunk-74RRJOB4.js";import"./chunk-RFBBAUMM.js";var p=class extends t{$$PROVIDER_TYPE="AUDIO";get type(){return"audio"}airPlay;constructor(s,e){super(s,e),i(()=>{this.airPlay=new r(this.media,e)},this.scope)}setup(){super.setup(),this.type==="audio"&&this.ctx.notify("provider-setup",this)}get audio(){return this.media}};export{p as AudioProvider};
|
|
2
|
+
//# sourceMappingURL=vidstack-CHcsWfRV-V52LFHYG.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-FGBB7FT5.js";import"./chunk-BH27SBYG.js";import"./chunk-74RRJOB4.js";import"./chunk-RFBBAUMM.js";export{t as AUDIO_EXTENSIONS,u as AUDIO_TYPES,y as DASH_VIDEO_EXTENSIONS,A as DASH_VIDEO_TYPES,x as HLS_VIDEO_EXTENSIONS,z as HLS_VIDEO_TYPES,$ as HTMLAirPlayAdapter,_ as HTMLMediaProvider,d as IS_CHROME,b as IS_IOS,c as IS_IPHONE,a as IS_SERVER,U as ListSymbol,Y as QualitySymbol,Z as RAFLoop,R as TextTrack,M as TextTrackSymbol,o as TimeRange,v as VIDEO_EXTENSIONS,w as VIDEO_TYPES,ba as VideoProvider,H as appendParamsToURL,da as assert,l as canChangeVolume,F as canGoogleCastSrc,e as canOrientScreen,g as canPlayAudioType,i as canPlayHLSNatively,h as canPlayVideoType,f as canRotateScreen,j as canUsePictureInPicture,k as canUseVideoPresentation,X as clampNumber,ca as coerceToError,N as findActiveCue,L as getDownloadFile,W as getNumberOfDecimalPlaces,K as getRequestCredentials,q as getTimeRangesEnd,p as getTimeRangesStart,B as isAudioSrc,O as isCueActive,E as isDASHSrc,n as isDASHSupported,D as isHLSSrc,m as isHLSSupported,G as isMediaStream,fa as isRemotionProvider,ga as isRemotionSrc,S as isTrackCaptionKind,C as isVideoSrc,J as loadScript,r as normalizeTimeIntervals,T as parseJSONCaptionsFile,I as preconnect,ea as provider_exports,aa as provider_exports$1,V as round,s as updateTimeIntervals,P as watchActiveTextTrack,Q as watchCueTextChange};
|
|
2
|
+
//# sourceMappingURL=vidstack-CvezEmSQ-JXKCQ4VQ.js.map
|