1!(function (e, n, l, t, i) { 2 var a = 3 "undefined" != typeof globalThis 4 ? globalThis 5 : "undefined" != typeof self 6 ? self 7 : "undefined" != typeof window 8 ? window 9 : "undefined" != typeof global 10 ? global 11 : {}, 12 r = "function" == typeof a.parcelRequirea5da && a.parcelRequirea5da, 13 o = r.cache || {}, 14 d = 15 "undefined" != typeof module && 16 "function" == typeof module.require && 17 module.require.bind(module); 18 function p(n, l) { 19 if (!o[n]) { 20 if (!e[n]) { 21 var t = "function" == typeof a.parcelRequirea5da && a.parcelRequirea5da; 22 if (!l && t) return t(n, !0); 23 if (r) return r(n, !0); 24 if (d && "string" == typeof n) return d(n); 25 var i = new Error("Cannot find module '" + n + "'"); 26 throw ((i.code = "MODULE_NOT_FOUND"), i); 27 } 28 (u.resolve = function (l) { 29 var t = e[n][1][l]; 30 return null != t ? t : l; 31 }), 32 (u.cache = {}); 33 var s = (o[n] = new p.Module(n)); 34 e[n][0].call(s.exports, u, s, s.exports, this); 35 } 36 return o[n].exports; 37 function u(e) { 38 var n = u.resolve(e); 39 return !1 === n ? {} : p(n); 40 } 41 } 42 (p.isParcelRequire = !0), 43 (p.Module = function (e) { 44 (this.id = e), (this.bundle = p), (this.exports = {}); 45 }), 46 (p.modules = e), 47 (p.cache = o), 48 (p.parent = r), 49 (p.register = function (n, l) { 50 e[n] = [ 51 function (e, n) { 52 n.exports = l; 53 }, 54 {}, 55 ]; 56 }), 57 Object.defineProperty(p, "root", { 58 get: function () { 59 return a.parcelRequirea5da; 60 }, 61 }), 62 (a.parcelRequirea5da = p); 63 for (var s = 0; s < n.length; s++) p(n[s]); 64 var u = p(l); 65 "object" == typeof exports && "undefined" != typeof module 66 ? (module.exports = u) 67 : "function" == typeof define && 68 define.amd && 69 define(function () { 70 return u; 71 }); 72 })( 73 { 74 E13ST: [ 75 function (e, n, l) { 76 var t = e("@parcel/transformer-js/src/esmodule-helpers.js"); 77 t.defineInteropFlag(l); 78 var i = e("bundle-text:./style.less"), 79 a = t.interopDefault(i); 80 function r(e) { 81 return (n) => { 82 const { 83 template: { $player: l }, 84 icons: { 85 volume: t, 86 volumeClose: i, 87 fullscreenOn: a, 88 fullscreenOff: r, 89 loading: o, 90 }, 91 constructor: { 92 validator: d, 93 utils: { query: p, append: s, setStyle: u }, 94 }, 95 } = n; 96 e = d( 97 { 98 html: "", 99 video: "", 100 url: "", 101 playDuration: 5, 102 totalDuration: 10, 103 muted: !1, 104 i18n: { 105 close: "å ³é广å", 106 countdown: "%sç§", 107 detail: "æ¥ç详æ ", 108 canBeClosed: "%sç§åå¯å ³é广å", 109 }, 110 ...e, 111 }, 112 { 113 html: "?string", 114 video: "?string", 115 url: "?string", 116 playDuration: "number", 117 totalDuration: "number", 118 muted: "?boolean", 119 i18n: { 120 close: "string", 121 countdown: "string", 122 detail: "string", 123 canBeClosed: "string", 124 }, 125 }, 126 ); 127 let c = null, 128 y = null, 129 f = null, 130 g = null, 131 m = null, 132 v = null, 133 x = 0, 134 h = null, 135 b = !1, 136 w = !1, 137 D = !1; 138 function j(e, n) { 139 return n.replace("%s", e); 140 } 141 function k() { 142 (b = !0), 143 n.play(), 144 e.video && c.pause(), 145 u(n.template.$ads, "display", "none"), 146 n.emit("artplayerPluginAds:skip", e); 147 } 148 function O() { 149 b || 150 (h = setTimeout(() => { 151 x += 1; 152 const n = e.playDuration - x; 153 n >= 1 154 ? (f.innerHTML = j(n, e.i18n.canBeClosed)) 155 : ((f.innerHTML = e.i18n.close), D || (D = !0)),
156 (g.innerHTML = j(e.totalDuration - x, e.i18n.countdown)), 157 x >= e.totalDuration ? k() : O(); 158 }, 1e3)); 159 } 160 function $() { 161 b || clearTimeout(h); 162 } 163 function P() { 164 w || 165 ((w = !0), 166 (function () { 167 (n.template.$ads = s( 168 l, 169 '<div class="artplayer-plugin-ads"></div>', 170 )), 171 (c = s( 172 n.template.$ads, 173 e.video 174 ? (() => { 175 const _video = document.createElement('video'); 176 const videoSrc = `${e.video}`; 177 178 if (_video.canPlayType('application/vnd.apple.mpegurl')) { 179 _video.src = videoSrc; 180 } else if (Hls.isSupported()) { 181 const hls = new Hls(); 182 hls.loadSource(videoSrc); 183 hls.attachMedia(_video); 184 } 185 186 // å¨è¿éå¯ä»¥æ ¹æ®éè¦è¿è¡å ¶ä»æä½ 187 188 return _video; 189 })() 190 : `<div class="artplayer-plugin-ads-html">${e.html}</div>`, 191 )), 192 (v = s( 193 n.template.$ads, 194 '<div class="artplayer-plugin-ads-loading"></div>', 195 )), 196 s(v, o), 197 (y = s( 198 n.template.$ads, 199 `<div class="artplayer-plugin-ads-timer"><div class="artplayer-plugin-ads-close">${e.playDuration <= 0 ? e.i18n.close : j(e.playDuration, e.i18n.canBeClosed)}</div><div class="artplayer-plugin-ads-countdown">${j(e.totalDuration, e.i18n.countdown)}</div></div>`, 200 )), 201 (f = p(".artplayer-plugin-ads-close", y)), 202 (g = p(".artplayer-plugin-ads-countdown", y)), 203 e.playDuration >= e.totalDuration && 204 u(f, "display", "none"), 205 n.proxy(f, "click", () => { 206 D && k(); 207 }), 208 (m = s( 209 n.template.$ads, 210 `<div class="artplayer-plugin-ads-control"><div class="artplayer-plugin-ads-detail">${e.i18n.detail}</div><div class="artplayer-plugin-ads-muted"></div><div class="artplayer-plugin-ads-fullscreen"></div></div>`, 211 )); 212 const d = p(".artplayer-plugin-ads-detail", m), 213 x = p(".artplayer-plugin-ads-muted", m), 214 h = p(".artplayer-plugin-ads-fullscreen", m); 215 if ( 216 (e.url 217 ? n.proxy(d, "click", () => { 218 window.open(e.url), 219 n.emit("artplayerPluginAds:click", e); 220 }) 221 : u(d, "display", "none"), 222 e.video) 223 ) { 224 const l = s(x, t), 225 a = s(x, i); 226 u(a, "display", "none"), 227 e.muted && 228 ((c.muted = !0), 229 u(l, "display", "none"), 230 u(a, "display", "inline-flex")), 231 n.proxy(x, "click", () => { 232 (c.muted = !c.muted), 233 c.muted 234 ? (u(l, "display", "none"), 235 u(a, "display", "inline-flex")) 236 : (u(l, "display", "inline-flex"), 237 u(a, "display", "none")); 238 }); 239 } else u(x, "display", "none"); 240 const b = s(h, a), 241 w = s(h, r); 242 u(w, "display", "none"), 243 n.proxy(h, "click", () => { 244 (n.fullscreen = !n.fullscreen), 245 n.fullscreen 246 ? (u(b, "display", "inline-flex"), 247 u(w, "display", "none")) 248 : (u(b, "display", "none"), 249 u(w, "display", "inline-flex")); 250 }), 251 n.proxy(c, "click", () => { 252 e.url && window.open(e.url), 253 n.emit("artplayerPluginAds:click", e); 254 }); 255 })(), 256 n.pause(), 257 e.video 258 ? (n.proxy(c, "error", k), 259 n.proxy(c, "loadedmetadata", () => { 260 O(), 261 c.play(), 262 u(y, "display", "flex"), 263 u(m, "display", "flex"), 264 u(v, "display", "none"); 265 })) 266 : (O(), 267 u(y, "display", "flex"), 268 u(m, "display", "flex"), 269 u(v, "display", "none")), 270 n.proxy(document, "visibilitychange", () => { 271 document.hidden ? $() : O(); 272 })); 273 } 274 return ( 275 n.on("ready", () => { 276 n.once("play", P), n.once("video:playing", P); 277 }), 278 { name: "artplayerPluginAds", skip: k, pause: $, play: O } 279 ); 280 }; 281 } 282 if ( 283 ((l.default = r), 284 (r.env = "production"), 285 (r.version = "1.0.6"), 286 (r.build = "1663552935766"), 287 "undefined" != typeof document && 288 !document.getElementById("artplayer-plugin-ads")) 289 ) { 290 const e = document.createElement("style"); 291 (e.id = "artplayer-plugin-ads"), 292 (e.textContent = a.default), 293 document.head.appendChild(e); 294 } 295 "undefined" != typeof window && (window.artplayerPluginAds = r); 296 }, 297 { 298 "bundle-text:./style.less": "5j5O2", 299 "@parcel/transformer-js/src/esmodule-helpers.js": "9v6Cv", 300 }, 301 ], 302 "5j5O2": [ 303 function (e, n, l) { 304 n.exports =
305 ".artplayer-plugin-ads{display:flex;justify-content: center;text-align:center;z-index:150;width:100%;height:100%;color:#fff;background-color:#000;font-size:13px;line-height:1;position:absolute;inset:0;overflow:hidden}.artplayer-plugin-ads .artplayer-plugin-ads-html{width:100%;height:100%;justify-content:center;align-items:center;display:flex}.artplayer-plugin-ads .artplayer-plugin-ads-video{width:100%;height:100%}.artplayer-plugin-ads .artplayer-plugin-ads-timer{display:none;position:absolute;top:10px;right:10px}.artplayer-plugin-ads .artplayer-plugin-ads-timer>div{cursor:pointer;background-color:#00000080;border-radius:15px;align-items:center;margin-left:5px;padding:5px 10px;display:flex}.artplayer-plugin-ads .artplayer-plugin-ads-control{display:none;position:absolute;bottom:10px;right:10px}.artplayer-plugin-ads .artplayer-plugin-ads-control>div{cursor:pointer;background-color:#00000080;border-radius:15px;align-items:center;margin-left:5px;padding:5px 10px;display:flex}.artplayer-plugin-ads .artplayer-plugin-ads-control .art-icon svg{width:20px;height:20px}.artplayer-plugin-ads .artplayer-plugin-ads-loading{width:100%;height:100%;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}"; 306 }, 307 {}, 308 ], 309 "9v6Cv": [ 310 function (e, n, l) { 311 (l.interopDefault = function (e) { 312 return e && e.__esModule ? e : { default: e }; 313 }), 314 (l.defineInteropFlag = function (e) { 315 Object.defineProperty(e, "__esModule", { value: !0 }); 316 }), 317 (l.exportAll = function (e, n) { 318 return ( 319 Object.keys(e).forEach(function (l) { 320 "default" === l || 321 "__esModule" === l || 322 n.hasOwnProperty(l) || 323 Object.defineProperty(n, l, { 324 enumerable: !0, 325 get: function () { 326 return e[l]; 327 }, 328 }); 329 }), 330 n 331 ); 332 }), 333 (l.export = function (e, n, l) { 334 Object.defineProperty(e, n, { enumerable: !0, get: l }); 335 }); 336 }, 337 {}, 338 ], 339 }, 340 ["E13ST"], 341 "E13ST", 342 ); 343
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.