// ==UserScript==
// @name 采集接口VIP视频通行证
// @namespace http://tampermonkey.net/
// @version 4.0
// @description 视频VIP 影视vip 电影vip解析-----支持:腾讯、爱奇艺、优酷、芒果、pptv、乐视、bilibili等其它网站视频VIP解析,影视vip解。 (强烈推荐用脚本猫加载此插件或使用浏览器插件压缩包,资源搜索会快很多。大版本升级,修改操作简化,ui交换更智能,解析更快。)
// @icon data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMzIiIGN5PSIzMiIgcj0iMzAiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcihfMV8yKSIvPgo8cGF0aCBkPSJNMjEuNDk2MSA0My4yODkxTDQwLjU2NDUgMzIuMjU3OEM0MS4zMDA1IDMxLjgwNjEgNDEuMzAwNSAzMC42NTQyIDQwLjU2NDUgMzAuMjAyNUwyMS40OTYxIDE5LjE3MTIiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXIoXzFfMikiIHgxPSIzMiIgeTE9IjIiIHgyPSIzMiIgeTI9IjYyIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiMyQTc5RkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMTA1OUI5Ii8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==
// @author You & lsym
// @match *://*.iqiyi.com/v_*
// @match *://*.iqiyi.com/a_*
// @match *://*.iqiyi.com/w_*
// @match *://*.iq.com/play/*
// @match *://v.youku.com/v_show/id_*
// @match *://*.youku.com/v_show/id_*
// @match *://v.qq.com/x/cover/*
// @match *://v.qq.com/x/page/*
// @match *://v.qq.com/tv/*
// @match *://*.mgtv.com/b/*
// @match *://*.bilibili.com/video/av*
// @match *://*.bilibili.com/video/BV*
// @match *://*.bilibili.com/bangumi/play/*
// @match *://*.le.com/ptv/vplay/*
// @match *://*.tudou.com/listplay/*
// @match *://*.tudou.com/albumplay/*
// @match *://*.tudou.com/programs/view/*
// @match *://tv.sohu.com/v/*
// @match *://film.sohu.com/album/*
// @match *://*.pptv.com/show/*
// @match *://*.acfun.cn/v/ac*
// @match *://*.fun.tv/vplay/*
// @match *://*.wasu.cn/Play/show/id/*
// @match *://*.1905.com/play/*
// @match *://*.ixigua.com/video/*
// @match *://*.weibo.com/tv/show/*
// @match *://*.weibo.com/v/tv/show/*
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// @grant GM_setValue
// @grant GM_getValue
// @run-at document-end
// @connect cj.lziapi.com
// @connect api.zuidapi.com
// @connect subocaiji.com
// @connect ikunzy.com
// @connect api.guangsuapi.com
// @connect www.huyaapi.com
// @connect api.apibdzy.com
// @connect api.ukuapi.com
// @connect cj.ffzyapi.com
// @connect bfzyapi.com
// @connect api.wujinapi.me
// @connect www.hongniuzy2.com
// @connect hhzyapi.com
// @connect leshizyapi.com
// @connect api.xinlangapi.com
// @connect suoniapi.com
// @connect ikunzyapi.com
// @connect jszyapi.com
// @connect caiji.kczyapi.com
// @connect sdzyapi.com
// @connect collect.wolongzyw.com
// @connect ty.tyyszy5.com
// @connect 360zy.com
// @connect mozhuazy.com
// @connect mdzyapi.com
// @connect ryzyw.com
// @connect api.okzyw.net
// @connect caiji.maotaizy.cc
// @connect caiji.dbzy5.com
// @connect api.niuniuzy.me
// @connect api.maoyanapi.top
// @connect cdn.jsdelivr.net
// ==/UserScript==
function _0x1c61(){const _0x175adb=['find','vod_play_url','.active\x20.title-wenzi','mainBtn','renderInitialPanel','https://360zy.com/api.php/provide/vod/','playerOverlay','body','#player-container','.episode-list\x20.current,\x20.video-title\x20a','backgroundColor','currentEngineIndex','catch','DPlayer\x20(MPEGTS)','currentURL','\x20}\x20}\x20}\x20});\x20if\x20(','Player\x20did\x20not\x20resize\x20in\x20time','https://www.huyaapi.com/api.php/provide/vod/','innerHTML','#bilibili-player','contentWindow','.title','MESSAGES','querySelector','forEach','responseText','#player','panel','#f8d7da','now','3141775pSWyww','style',');\x20hls.loadSource(\x27','appendChild','https://bfzyapi.com/api.php/provide/vod/','findWebsitePlayerElement','#mgtv-player-wrap','100%','paused','fallback','warn','currentPageEpisodeNumber','#tm-content-area','.video-area','absolute','isFirstAutoplayAttempted','.tm-episode-matched','tm-panel-fusion','API_TIMEOUT','updateOverlayPosition','https://cdn.jsdelivr.net/npm/mpegts.js@1.7.3/dist/mpegts.min.js','.anthology-wrap\x20li.active\x20span,\x20.list-single-episode.current\x20a','transition','replace','onclick','clearAllTimers','cursor','race','#sohuplayer','\x20#tm-container-fusion\x20{\x20position:\x20fixed;\x20z-index:\x201000003;\x20width:\x2038px;\x20height:\x2038px;\x20text-align:\x20center;\x20cursor:\x20grab;\x20user-select:\x20none;\x20}\x20#tm-main-btn-fusion\x20{\x20width:\x20100%;\x20height:\x20100%;\x20border:\x20none;\x20border-radius:\x2050%;\x20background:\x20linear-gradient(135deg,\x20#FFD700,\x20#FFA500);\x20color:\x20white;\x20cursor:\x20pointer;\x20box-shadow:\x200\x204px\x208px\x20rgba(0,0,0,0.2);\x20transition:\x20all\x200.3s\x20ease;\x20padding:\x200;\x20display:\x20flex;\x20align-items:\x20center;\x20justify-content:\x20center;\x20overflow:\x20hidden;\x20}\x20#tm-main-btn-fusion:hover\x20{\x20transform:\x20scale(1.1);\x20box-shadow:\x200\x206px\x2012px\x20rgba(0,0,0,0.3);\x20}\x20#tm-main-btn-fusion::before\x20{\x20content:\x20\x22VIP\x22;\x20font-size:\x2016px;\x20font-weight:\x20bold;\x20color:\x20#fff;\x20text-shadow:\x200\x201px\x202px\x20rgba(0,0,0,0.2);\x20}\x20@keyframes\x20tm-spin\x20{\x20to\x20{\x20transform:\x20rotate(360deg);\x20}\x20}\x20#tm-main-btn-fusion.loading::before\x20{\x20content:\x20\x27\x27;\x20box-sizing:\x20border-box;\x20width:\x2020px;\x20height:\x2020px;\x20border-radius:\x2050%;\x20border:\x203px\x20solid\x20rgba(255,255,255,0.4);\x20border-top-color:\x20#fff;\x20animation:\x20tm-spin\x200.8s\x20linear\x20infinite;\x20}\x20#tm-panel-fusion\x20{\x20display:\x20none;\x20position:\x20absolute;\x20left:\x2048px;\x20top:\x200;\x20min-width:\x20150px;\x20background:\x20rgba(255,\x20255,\x20255,\x200.95);\x20border-radius:\x208px;\x20padding:\x205px;\x20max-height:\x2070vh;\x20box-shadow:\x200\x206px\x2020px\x20rgba(0,0,0,0.15);\x20font-size:\x2012px;\x20backdrop-filter:\x20blur(10px);\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.2);\x20flex-direction:\x20column;\x20}\x20#tm-status-bar\x20{\x20padding:\x204px;\x20margin-bottom:\x205px;\x20background:\x20#f1f3f5;\x20border-radius:\x206px;\x20text-align:\x20center;\x20font-weight:\x20500;\x20color:\x20#495057;\x20font-size:\x2011px;\x20min-height:\x2016px;\x20}\x20.tm-collection-btn\x20{\x20display:\x20block;\x20width:\x20100%;\x20padding:\x204px\x206px;\x20margin-bottom:\x204px;\x20background:\x20#fff;\x20border:\x201px\x20solid\x20#e9ecef;\x20border-radius:\x206px;\x20cursor:\x20pointer;\x20text-align:\x20left;\x20font-weight:\x20500;\x20color:\x20#495057;\x20font-size:\x2011px;\x20transition:\x20all\x200.2s\x20ease;\x20white-space:\x20nowrap;\x20box-sizing:\x20border-box;\x20}\x20.tm-collection-btn:hover\x20{\x20background:\x20#f8f9fa;\x20transform:\x20translateY(-1px);\x20}\x20.tm-episode-matched,\x20.tm-source-selected\x20{\x20background:\x20linear-gradient(135deg,\x20#28a745,\x20#20c997)\x20!important;\x20color:\x20white\x20!important;\x20border-color:\x20transparent\x20!important;\x20}\x20#tm-content-area\x20{\x20display:\x20grid;\x20grid-template-columns:\x201fr;\x20gap:\x204px;\x20flex-grow:\x201;\x20overflow-y:\x20auto;\x20padding-right:\x208px;\x20}\x20#tm-content-area.episode-list\x20{\x20grid-template-columns:\x201fr\x201fr;\x20}\x20#tm-content-area::-webkit-scrollbar\x20{\x20width:\x208px;\x20}\x20#tm-content-area::-webkit-scrollbar-track\x20{\x20background:\x20transparent;\x20}\x20#tm-content-area::-webkit-scrollbar-thumb\x20{\x20background:\x20#ccc;\x20border-radius:\x204px;\x20border:\x202px\x20solid\x20transparent;\x20background-clip:\x20content-box;\x20}\x20#tm-content-area::-webkit-scrollbar-thumb:hover\x20{\x20background:\x20#aaa;\x20}\x20#tm-player-overlay-fusion\x20{\x20position:\x20absolute;\x20background-color:\x20#000;\x20z-index:\x20999998;\x20display:\x20none;\x20}\x20#tm-iframe-player-fusion\x20{\x20width:\x20100%;\x20height:\x20100%;\x20border:\x20none;\x20}\x20#tm-close-btn-fusion\x20{\x20position:\x20fixed;\x20top:\x2015px;\x20right:\x2015px;\x20z-index:\x201000003;\x20width:\x2036px;\x20height:\x2036px;\x20border-radius:\x2050%;\x20background:\x20rgba(220,\x2053,\x2069,\x200.9);\x20color:\x20white;\x20border:\x20none;\x20cursor:\x20pointer;\x20font-size:\x2016px;\x20display:\x20flex;\x20align-items:\x20center;\x20justify-content:\x20center;\x20transition:\x20all\x200.3s\x20ease;\x20}\x20#tm-close-btn-fusion:hover\x20{\x20background:\x20#dc3545;\x20transform:\x20scale(1.1);\x20}\x20#tm-global-status\x20{\x20position:\x20fixed;\x20top:\x200;\x20left:\x200;\x20width:\x20100%;\x20text-align:\x20center;\x20z-index:\x201000002;\x20pointer-events:\x20none;\x20padding-top:\x2010px;\x20transition:\x20opacity\x200.3s;\x20opacity:\x200;\x20display:\x20none;\x20}\x20#tm-global-status-text\x20{\x20display:\x20inline-block;\x20background:\x20rgba(0,\x200,\x200,\x200.7);\x20color:\x20white;\x20padding:\x208px\x2016px;\x20border-radius:\x2020px;\x20font-size:\x2014px;\x20backdrop-filter:\x20blur(4px);\x20}\x20','offsetWidth','currentEpisodeList','),\x20{\x20once:\x20true\x20});\x20}\x20dp.on(\x27ended\x27,\x20()\x20=>\x20parent.postMessage({\x20type:\x20\x27','loading','fixed','visible','scrollIntoView','ENGINE_FALLBACK_TIMEOUT','values','innerHeight','display','
','button','sessionCache','createElement','JSON\x20parse\x20error','.episode-list\x20.current\x20a,\x20.v-title-info\x20.title','dplayer_mpegts','results','updateStatus','opacity','#f1f3f5','730015PEgOUL','link[href=\x22','https://www.hongniuzy2.com/api.php/provide/vod/','episode-list','Player\x20element\x20not\x20found.','onmouseenter','mousemove','.video-info-title','key','start','then','dplayer_hls','location','delete','renderEpisodeList','currentPlayingUrl','startsWith','hidden','#tm-status-bar','.tm-collection-btn','ac=list&wd=','vod_id','8Wlqyze','performApiSearch','url','data','https://ikunzy.com/api.php/provide/vod/','globalStatus','searchSingleApi','parse','renderSourceListFromCache','showPanel','min','toggleLoading','injectStyle','iframePlayer','link','HLS_CONFIG','mouseup','\x20hls\x20=\x20new\x20Hls(','dom','querySelectorAll','latency','\x20if\x20(mpegts.isSupported())\x20{\x20playerInstance\x20=\x20mpegts.createPlayer({\x20type:\x20\x27mse\x27,\x20isLive:\x20false,\x20url:\x20\x27','智能选择:\x20','GET_TIME_RES','#c82333','PANEL_LEAVE_CLOSE_DELAY','append','.ep-list-item.on\x20.ep-item-title,\x20.bpx-player-sending-info\x20.bpx-player-video-title','未找到任何可用资源','$$$','.player-album-list\x20.on\x20a,\x20.c-info-title','panelCollapse','asyncPool','VIDEO_ENDED','className','https://cdn.jsdelivr.net','crossOrigin',')...','clearTimer','\x20>\x200)\x20{\x20dp.on(\x27canplay\x27,\x20()\x20=>\x20dp.seek(','srcdoc','13180156sFNMVB','6523746ThOipY','搜索完成,共\x20','https://jszyapi.com/api.php/provide/vod/','#ACPlayer','‹\x20返回源列表','list','tm-player-overlay-fusion','get','addSourceResult','offsetHeight','https://cj.ffzyapi.com/api.php/provide/vod/','block','updatePlayerStatus','播放器\x20[','ac=detail&ids=','onmouseleave','启动修复程序...','\x27\x20},\x20\x27*\x27);\x20break;\x20}\x20}\x20});\x20','并发搜索中(0/','集\x20|\x20','DPlayer\x20(HLS)','some','height','tm_icon_position_v3.2','.js-episode-item.on,\x20.video-info\x20h1','24DkPizn','stopPropagation','flex','hiddenPlayerElement','color','error','ctrlKey','triggerHardReset','match','','已全部播放完毕!','has','keydown','prewarmDependencies','anonymous','...','tm-episode-matched','tm_get_time_res','Player','https://hhzyapi.com/api.php/provide/vod/','Timeout\x20waiting\x20for\x20\x27','getElementById','pause','href','#video-player','.iqp-player','\x20to\x20','masterSearch','sort','push','grab','tm-collection-btn','\x27,\x20type:\x20\x27customVideo\x27,\x20customType:\x20{\x20customVideo:\x20(video,\x20player)\x20=>\x20{\x20','smooth','401346mvTFwm','getQuickMainTitle','tm-global-status','17517TsZygS','message','Request\x20failed:\x20','max','已匹配:\x20','切换引擎修复:\x20','visibility','','\x27\x20},\x20\x27*\x27));\x20window.addEventListener(\x27message\x27,\x20e\x20=>\x20{\x20if\x20(e.data?.type\x20===\x20\x27','https://api.apibdzy.com/api.php/provide/vod/','无法获取视频标题','.play-player','blur','assign','classList','getEpisodeNumberFromString','\x27,\x20time:\x20dp?.video.currentTime\x20||\x200\x20},\x20\x27*\x27);\x20}\x20});\x20});','map','https://subocaiji.com/api.php/provide/vod/','toggle','https://api.ukuapi.com/api.php/provide/vod/','tm-container-fusion','isPanelOpen','clientX','close','PLAYER_ELEMENTS','timers','pointer','hostname','rel','.player-container','status','toLowerCase','keys','head',']\x20加载成功','https://cdn.jsdelivr.net/npm/dplayer@1.27.1/dist/DPlayer.min.js','resize','preventDefault','width','removeEventListener','time','HARD_RESET_REQ','https://mozhuazy.com/api.php/provide/vod/','_t=','\x27\x20});\x20playerInstance.attachMediaElement(video);\x20playerInstance.load();\x20}\x20','split','left','tm_hard_reset_req','script','tm_get_time_req','textContent','\x20个资源\x20(缓存)','filter','observe','.bpx-player-container','播放器加载超时,请按\x20Ctrl+R\x20切换解码引擎','remove','type','onload','container','trim','autoResizePanel','dataset','.\x20Falling\x20back\x20to\x20fullscreen.','div','#player_swf','pauseAndHideOriginalPlayer','meta[property=\x22og:title\x22]','grabbing','GET','150px','PRECISE_TITLE','name','https://api.guangsuapi.com/api.php/provide/vod/','hidePanel','activeSourceName','isHardResetting','ms)','360','none','#343a40','并发搜索中(','166vNfOnx','tvname','tm-main-btn-fusion','size','highlightPlayingEpisode','','robustRequest','log','preconnect','add'];_0x1c61=function(){return _0x175adb;};return _0x1c61();}function _0x3b2d(_0x1d72d0,_0x3ba4c2){const _0x1c610f=_0x1c61();return _0x3b2d=function(_0x3b2ddd,_0x1e7697){_0x3b2ddd=_0x3b2ddd-0x7b;let _0x14306b=_0x1c610f[_0x3b2ddd];return _0x14306b;},_0x3b2d(_0x1d72d0,_0x3ba4c2);}(function(_0x4ca5b9,_0x4db0c3){const _0x33d5d7=_0x3b2d,_0x2be546=_0x4ca5b9();while(!![]){try{const _0x19fade=-parseInt(_0x33d5d7(0x174))/0x1+parseInt(_0x33d5d7(0x14a))/0x2*(parseInt(_0x33d5d7(0xf7))/0x3)+-parseInt(_0x33d5d7(0x8f))/0x4*(parseInt(_0x33d5d7(0x1ce))/0x5)+parseInt(_0x33d5d7(0xb9))/0x6+-parseInt(_0x33d5d7(0x19a))/0x7*(parseInt(_0x33d5d7(0xd2))/0x8)+-parseInt(_0x33d5d7(0xf4))/0x9*(-parseInt(_0x33d5d7(0x15b))/0xa)+parseInt(_0x33d5d7(0xb8))/0xb;if(_0x19fade===_0x4db0c3)break;else _0x2be546['push'](_0x2be546['shift']());}catch(_0x5abf61){_0x2be546['push'](_0x2be546['shift']());}}}(_0x1c61,0xb9c40),(function(){'use strict';const _0x307674=_0x3b2d;const _0x577639={'API_TIMEOUT':0x1388,'ENGINE_FALLBACK_TIMEOUT':0x1f40,'AUTOPLAY_NEXT_DELAY':0x5dc,'PANEL_LEAVE_CLOSE_DELAY':0x7d0,'STORAGE_KEY_ICON_POSITION':_0x307674(0xd0),'SEARCH_CONCURRENCY':0x8,'AUTO_EXPAND_BEST_SOURCE':!![],'HLS_CONFIG':{'enableWorker':!![],'fragLoadingMaxRetry':0x4,'levelLoadingMaxRetry':0x4,'fragLoadingTimeOut':0x4e20,'manifestLoadingTimeOut':0x2710},'MESSAGES':{'VIDEO_ENDED':'tm_video_ended','HARD_RESET_REQ':_0x307674(0x127),'GET_TIME_REQ':_0x307674(0x129),'GET_TIME_RES':_0x307674(0xe3)},'SELECTORS':{'PLAYER_ELEMENTS':[_0x307674(0x1b6),'#flashbox',_0x307674(0x184),_0x307674(0x196),_0x307674(0xeb),'.txp_player_root',_0x307674(0x18f),_0x307674(0x12e),_0x307674(0x1a0),_0x307674(0x172),_0x307674(0x139),'#pp-player',_0x307674(0xbc),_0x307674(0xea),'#xigua-player',_0x307674(0x1a7),_0x307674(0x115),_0x307674(0x102),_0x307674(0x151)],'QUICK_TITLE':[_0x307674(0x13b),'h1',_0x307674(0x165),_0x307674(0x191),'.vod_title',_0x307674(0x80),'.video-name'],'PRECISE_TITLE':{'iqiyi.com':'.qy-episode-item[class*=\x22is-active\x22]\x20a,\x20.album-list\x20.is-active\x20.title-content,\x20[class*=\x22video-title_text\x22]','youku.com':_0x307674(0x1af),'v.qq.com':'.episode-list-rect__item--current\x20.episode-list-rect__title,\x20.episode-item.current\x20.episode-item-num','bilibili.com':_0x307674(0xaa),'mgtv.com':_0x307674(0x1c8),'sohu.com':_0x307674(0xad),'le.com':_0x307674(0xd1),'pptv.com':_0x307674(0x185),'acfun.cn':_0x307674(0x17e)}}},_0x3125ff=[{'name':'卧龙','url':_0x307674(0x15a)},{'name':'无尽','url':'https://api.wujinapi.me/api.php/provide/vod/'},{'name':'最大','url':'https://api.zuidapi.com/api.php/provide/vod/'},{'name':'非凡','url':_0x307674(0xc3)},{'name':'暴风','url':_0x307674(0x19e)},{'name':'红牛','url':_0x307674(0x7b)},{'name':'U酷','url':_0x307674(0x10b)},{'name':'光速','url':_0x307674(0x141)},{'name':'新浪','url':'https://api.xinlangapi.com/xinlangapi.php/provide/vod/'},{'name':'极速','url':_0x307674(0xbb)},{'name':'火狐','url':_0x307674(0xe5)},{'name':'魔爪','url':_0x307674(0x122)},{'name':_0x307674(0x146),'url':_0x307674(0x181)},{'name':'速播','url':_0x307674(0x109)},{'name':'爱坤','url':_0x307674(0x93)},{'name':'虎牙','url':_0x307674(0x18d)},{'name':'百度','url':_0x307674(0x100)},{'name':'魔都','url':'https://www.mdzyapi.com/api.php/provide/vod/'},{'name':'天涯','url':'https://ty.tyyszy5.com/api.php/provide/vod/'},{'name':'猫眼','url':'https://api.maoyanapi.top/api.php/provide/vod/'}],_0x4c99ef=[...new Map(_0x3125ff[_0x307674(0x108)](_0x4f88c9=>[_0x4f88c9[_0x307674(0x140)],_0x4f88c9]))[_0x307674(0x1c0)]()],_0x2b126c=[{'name':_0x307674(0xcd),'type':_0x307674(0x84)},{'name':_0x307674(0x189),'type':_0x307674(0x1c9)}],_0x2f6d5b={'currentEpisodeList':[],'currentPlayingUrl':'','currentEngineIndex':0x0,'hiddenPlayerElement':null,'isHardResetting':![],'isPanelOpen':![],'currentURL':location[_0x307674(0xe9)],'dom':{},'timers':{'fallback':null,'resize':null,'panelCollapse':null},'sessionCache':{'key':null,'results':[]},'activeSourceName':null,'isFirstAutoplayAttempted':![],'currentPageEpisodeNumber':null},_0xeb93fa={'init'(){const _0x30ac0e=_0x307674;this[_0x30ac0e(0x9b)](),_0x2f6d5b[_0x30ac0e(0xa1)][_0x30ac0e(0x133)]=this[_0x30ac0e(0x1c6)]('div',{'id':_0x30ac0e(0x10c)}),_0x2f6d5b[_0x30ac0e(0xa1)][_0x30ac0e(0x17f)]=this[_0x30ac0e(0x1c6)](_0x30ac0e(0x1c4),{'id':_0x30ac0e(0x14c)}),_0x2f6d5b['dom'][_0x30ac0e(0x197)]=this[_0x30ac0e(0x1c6)](_0x30ac0e(0x138),{'id':_0x30ac0e(0x1ab)}),_0x2f6d5b['dom'][_0x30ac0e(0x182)]=this[_0x30ac0e(0x1c6)]('div',{'id':_0x30ac0e(0xbf)}),_0x2f6d5b[_0x30ac0e(0xa1)]['globalStatus']=this[_0x30ac0e(0x1c6)](_0x30ac0e(0x138),{'id':_0x30ac0e(0xf6),'innerHTML':_0x30ac0e(0xfe)}),_0x2f6d5b['dom'][_0x30ac0e(0x182)][_0x30ac0e(0x18e)]=_0x30ac0e(0x160),document[_0x30ac0e(0x183)][_0x30ac0e(0xa9)](_0x2f6d5b[_0x30ac0e(0xa1)][_0x30ac0e(0x133)],_0x2f6d5b['dom'][_0x30ac0e(0x182)],_0x2f6d5b[_0x30ac0e(0xa1)][_0x30ac0e(0x94)]),_0x2f6d5b['dom']['container']['append'](_0x2f6d5b[_0x30ac0e(0xa1)]['mainBtn'],_0x2f6d5b[_0x30ac0e(0xa1)][_0x30ac0e(0x197)]),_0x2f6d5b['dom'][_0x30ac0e(0x9c)]=document['getElementById']('tm-iframe-player-fusion'),_0x2f6d5b['dom']['closeBtn']=document[_0x30ac0e(0xe7)]('tm-close-btn-fusion'),_0x2f6d5b['dom']['playerStatus']=document[_0x30ac0e(0xe7)]('tm-global-status-text'),this['initDraggableIcon'](),this['attachEventListeners']();},'createElement':(_0x541db5,_0x57511e)=>Object[_0x307674(0x104)](document[_0x307674(0x1c6)](_0x541db5),_0x57511e),'injectStyle'(){const _0x4bf724=_0x307674;GM_addStyle(_0x4bf724(0x1b7));},'initDraggableIcon'(){const _0x230c02=_0x307674;let _0x5c1721=![],_0xd6edb6=![],_0x4cd2a3,_0xab4021;const _0xe5d50=_0x2f6d5b[_0x230c02(0xa1)][_0x230c02(0x133)],_0x4c1970=GM_getValue(_0x577639[_0x230c02(0x15d)],{'left':_0x230c02(0x175),'top':_0x230c02(0x162)});Object[_0x230c02(0x104)](_0xe5d50[_0x230c02(0x19b)],_0x4c1970);const _0x4ad74a=_0x179f85=>{const _0xadfca8=_0x230c02;if(!_0x5c1721)return;_0xd6edb6=!![];let _0x4f7802=_0x179f85[_0xadfca8(0x10e)]-_0x4cd2a3,_0x56b804=_0x179f85[_0xadfca8(0x166)]-_0xab4021;_0x4f7802=Math['max'](0x0,Math[_0xadfca8(0x99)](_0x4f7802,window['innerWidth']-_0xe5d50[_0xadfca8(0x1b8)])),_0x56b804=Math[_0xadfca8(0xfa)](0x0,Math[_0xadfca8(0x99)](_0x56b804,window[_0xadfca8(0x1c1)]-_0xe5d50[_0xadfca8(0xc2)])),Object['assign'](_0xe5d50[_0xadfca8(0x19b)],{'left':_0x4f7802+'px','top':_0x56b804+'px'});},_0xd1712d=()=>{const _0x59d3ba=_0x230c02;if(!_0x5c1721)return;_0x5c1721=![],document['body'][_0x59d3ba(0x19b)]['userSelect']='',_0xe5d50[_0x59d3ba(0x19b)][_0x59d3ba(0x1b4)]=_0x59d3ba(0xf0),_0xe5d50[_0x59d3ba(0x19b)][_0x59d3ba(0x1b0)]='',_0xd6edb6&&GM_setValue(_0x577639[_0x59d3ba(0x15d)],{'left':_0xe5d50[_0x59d3ba(0x19b)][_0x59d3ba(0x126)],'top':_0xe5d50[_0x59d3ba(0x19b)]['top']}),window['removeEventListener'](_0x59d3ba(0x7f),_0x4ad74a,!![]),window[_0x59d3ba(0x11f)](_0x59d3ba(0x9f),_0xd1712d,!![]),window[_0x59d3ba(0x11f)]('blur',_0xd1712d,!![]);},_0x4c6bc5=_0x52289b=>{const _0x10d03e=_0x230c02;_0x52289b[_0x10d03e(0xd3)]();if(_0x52289b[_0x10d03e(0x1c4)]!==0x0)return;_0xd6edb6=![],_0x5c1721=!![],document[_0x10d03e(0x183)][_0x10d03e(0x19b)]['userSelect']='none',_0xe5d50[_0x10d03e(0x19b)][_0x10d03e(0x1b4)]=_0x10d03e(0x13c),_0xe5d50[_0x10d03e(0x19b)]['transition']='none',_0x4cd2a3=_0x52289b[_0x10d03e(0x10e)]-_0xe5d50[_0x10d03e(0x170)]()[_0x10d03e(0x126)],_0xab4021=_0x52289b[_0x10d03e(0x166)]-_0xe5d50[_0x10d03e(0x170)]()[_0x10d03e(0x156)],window[_0x10d03e(0x168)](_0x10d03e(0x7f),_0x4ad74a,!![]),window[_0x10d03e(0x168)](_0x10d03e(0x9f),_0xd1712d,!![]),window[_0x10d03e(0x168)](_0x10d03e(0x103),_0xd1712d,!![]);};_0xe5d50[_0x230c02(0x168)](_0x230c02(0x15f),_0x4c6bc5),_0x2f6d5b[_0x230c02(0xa1)][_0x230c02(0x17f)][_0x230c02(0x1b2)]=_0x19ba78=>{const _0x41381e=_0x230c02;if(_0xd6edb6){_0x19ba78[_0x41381e(0xd3)]();return;}_0x19ba78[_0x41381e(0xd3)]();if(_0x2f6d5b[_0x41381e(0x10d)])this['hidePanel']();else{const _0x3a1902=location[_0x41381e(0xe9)];_0x2f6d5b[_0x41381e(0x1c5)]['key']===_0x3a1902&&_0x2f6d5b[_0x41381e(0x1c5)][_0x41381e(0x1ca)][_0x41381e(0x159)]>0x0?(this['showPanel'](),this[_0x41381e(0x97)]()):(this[_0x41381e(0x98)](),_0x3160d3[_0x41381e(0xed)]());}};},'attachEventListeners'(){const _0x12c248=_0x307674;_0x2f6d5b[_0x12c248(0xa1)][_0x12c248(0x153)]['onclick']=()=>_0xe68065[_0x12c248(0x10f)](),_0x2f6d5b[_0x12c248(0xa1)][_0x12c248(0x197)][_0x12c248(0x7e)]=()=>{const _0x9370c4=_0x12c248;this[_0x9370c4(0xb5)](_0x9370c4(0xae));},_0x2f6d5b[_0x12c248(0xa1)][_0x12c248(0x197)][_0x12c248(0xc8)]=()=>{const _0x18e8c0=_0x12c248;_0x2f6d5b[_0x18e8c0(0x111)][_0x18e8c0(0xae)]=setTimeout(()=>this[_0x18e8c0(0x142)](),_0x577639[_0x18e8c0(0xa8)]);},window[_0x12c248(0x168)](_0x12c248(0x11c),()=>{const _0x34f1a2=_0x12c248;this[_0x34f1a2(0xb5)](_0x34f1a2(0x11c)),_0x2f6d5b[_0x34f1a2(0x111)][_0x34f1a2(0x11c)]=setTimeout(()=>_0xe68065[_0x34f1a2(0x1ad)](),0x64);}),window[_0x12c248(0x168)](_0x12c248(0xf8),_0x268382=>_0xe68065['handleMessage'](_0x268382)),document[_0x12c248(0x168)](_0x12c248(0xde),_0x442c7e=>{const _0x4282ec=_0x12c248;_0x442c7e[_0x4282ec(0xd8)]&&_0x442c7e[_0x4282ec(0x81)][_0x4282ec(0x117)]()==='r'&&_0x2f6d5b['dom'][_0x4282ec(0x182)]['style'][_0x4282ec(0x1c2)]===_0x4282ec(0xc4)&&(_0x442c7e[_0x4282ec(0x11d)](),_0x442c7e['stopPropagation'](),_0xe68065[_0x4282ec(0xd9)]());});},'renderInitialPanel'(){const _0x58876d=_0x307674;_0x2f6d5b[_0x58876d(0xa1)][_0x58876d(0x197)][_0x58876d(0x19b)][_0x58876d(0x11e)]=_0x58876d(0x13e),_0x2f6d5b[_0x58876d(0xa1)][_0x58876d(0x197)][_0x58876d(0x18e)]=_0x58876d(0x1c3);},'addSourceResult'(_0x4d4a58){const _0x339a09=_0x307674,_0x52672b=_0x2f6d5b[_0x339a09(0xa1)][_0x339a09(0x197)][_0x339a09(0x193)](_0x339a09(0x1a6));if(!_0x52672b||!_0x2f6d5b[_0x339a09(0x10d)])return;const _0x3bc1d4=_0x4d4a58[_0x339a09(0x92)][_0x339a09(0x17d)][_0x339a09(0x125)]('#')[_0x339a09(0x159)],_0x348c72=_0xeb93fa['createElement']('button',{'textContent':_0x4d4a58[_0x339a09(0x140)]+'\x20('+_0x3bc1d4+_0x339a09(0xcc)+_0x4d4a58[_0x339a09(0xa3)]+_0x339a09(0x145),'className':_0x339a09(0xf1),'onclick':()=>{const _0x3bff7f=_0x339a09;_0x2f6d5b[_0x3bff7f(0x143)]=_0x4d4a58[_0x3bff7f(0x140)],this[_0x3bff7f(0x87)](_0x4d4a58,![],_0x2f6d5b[_0x3bff7f(0x1a5)]);}});_0x4d4a58['name']===_0x2f6d5b['activeSourceName']&&_0x348c72['classList'][_0x339a09(0x17b)]('tm-source-selected'),_0x52672b[_0x339a09(0x19d)](_0x348c72);},'renderSourceListFromCache'(){const _0x4c7b5f=_0x307674;this[_0x4c7b5f(0x180)](),this[_0x4c7b5f(0x1cb)]('共\x20'+_0x2f6d5b[_0x4c7b5f(0x1c5)][_0x4c7b5f(0x1ca)]['length']+_0x4c7b5f(0x12b),![]);const _0x3e2ae9=_0x2f6d5b['dom']['panel'][_0x4c7b5f(0x193)](_0x4c7b5f(0x1a6));_0x2f6d5b[_0x4c7b5f(0x1c5)][_0x4c7b5f(0x1ca)]['forEach'](_0x3d6aa7=>this['addSourceResult'](_0x3d6aa7));if(_0x3e2ae9)this[_0x4c7b5f(0x135)](_0x3e2ae9,!![]);},'renderEpisodeList'(_0x25af65,_0x227a39=![],_0x36e172=null){const _0x4bc64b=_0x307674;_0xeb93fa['clearAllTimers']();const _0x27cec1=_0x2f6d5b[_0x4bc64b(0xa1)][_0x4bc64b(0x197)][_0x4bc64b(0x193)](_0x4bc64b(0x1a6));if(!_0x27cec1)return;_0x27cec1[_0x4bc64b(0x18e)]='',_0x27cec1[_0x4bc64b(0xb1)]=_0x4bc64b(0x7c),this['updateStatus'](_0x4bc64b(0xbd),![]);const _0x5ed45a=_0x2f6d5b[_0x4bc64b(0xa1)]['panel'][_0x4bc64b(0x193)](_0x4bc64b(0x8b));_0x5ed45a[_0x4bc64b(0x19b)][_0x4bc64b(0x1b4)]=_0x4bc64b(0x112),_0x5ed45a[_0x4bc64b(0x1b2)]=()=>this[_0x4bc64b(0x97)](),_0x2f6d5b[_0x4bc64b(0x1b9)]=[];const _0x5c3f80=_0x25af65[_0x4bc64b(0x92)][_0x4bc64b(0x17d)][_0x4bc64b(0x125)](_0x4bc64b(0xac))['pop']()['split']('#');_0x5c3f80[_0x4bc64b(0x194)](_0x3e9951=>{const _0x167230=_0x4bc64b,[_0x2dddf0,_0x5c5316]=_0x3e9951[_0x167230(0x125)]('$');if(!_0x2dddf0||!_0x5c5316)return;_0x2f6d5b[_0x167230(0x1b9)]['push']({'name':_0x2dddf0,'url':_0x5c5316});const _0x385742=_0xeb93fa['createElement'](_0x167230(0x1c4),{'textContent':_0x2dddf0,'className':_0x167230(0xf1),'onclick':()=>_0xe68065[_0x167230(0x82)](_0x5c5316)});_0x385742[_0x167230(0x136)][_0x167230(0x91)]=_0x5c5316,_0x27cec1[_0x167230(0x19d)](_0x385742);}),this['autoResizePanel'](_0x27cec1,![]);if(!_0x36e172)return;;let _0x116de2=null;const _0x4dd039=_0x27cec1[_0x4bc64b(0xa2)](_0x4bc64b(0x8c));for(const _0x530782 of _0x4dd039){const _0xfb6145=_0x55fcb7[_0x4bc64b(0x106)](_0x530782['textContent']);if(_0xfb6145&&parseInt(_0x36e172,0xa)===parseInt(_0xfb6145,0xa)){_0x116de2=_0x530782;break;}}_0x116de2&&(_0x116de2[_0x4bc64b(0x105)]['add'](_0x4bc64b(0xe2)),setTimeout(()=>_0x116de2[_0x4bc64b(0x1be)]({'behavior':'smooth','block':'center'}),0x64),_0x227a39?(this[_0x4bc64b(0x1cb)](_0x4bc64b(0x16f)+_0x116de2['textContent']),_0xe68065[_0x4bc64b(0x82)](_0x116de2[_0x4bc64b(0x136)][_0x4bc64b(0x91)])):this[_0x4bc64b(0x1cb)](_0x4bc64b(0xfb)+_0x116de2[_0x4bc64b(0x12a)]));},'updateStatus'(_0x3ff208,_0x504fb0=![]){const _0x30f89c=_0x307674,_0x36b889=_0x2f6d5b[_0x30f89c(0xa1)][_0x30f89c(0x197)][_0x30f89c(0x193)](_0x30f89c(0x8b));_0x36b889&&(_0x36b889[_0x30f89c(0x12a)]=_0x3ff208,_0x36b889[_0x30f89c(0x19b)][_0x30f89c(0xd6)]=_0x504fb0?_0x30f89c(0xa7):_0x30f89c(0x148),_0x36b889['style'][_0x30f89c(0x186)]=_0x504fb0?_0x30f89c(0x198):_0x30f89c(0x1cd),_0x36b889[_0x30f89c(0x19b)][_0x30f89c(0x1b4)]='default');},'updatePlayerStatus'(_0x17862e,_0xd8349a=!![]){const _0x2e027a=_0x307674;_0xd8349a&&_0x17862e?(_0x2f6d5b[_0x2e027a(0xa1)][_0x2e027a(0x16a)][_0x2e027a(0x12a)]=_0x17862e,_0x2f6d5b[_0x2e027a(0xa1)][_0x2e027a(0x94)][_0x2e027a(0x19b)][_0x2e027a(0x1c2)]=_0x2e027a(0xc4),setTimeout(()=>_0x2f6d5b['dom'][_0x2e027a(0x94)][_0x2e027a(0x19b)]['opacity']='1',0xa)):(_0x2f6d5b[_0x2e027a(0xa1)][_0x2e027a(0x94)][_0x2e027a(0x19b)][_0x2e027a(0x1cc)]='0',setTimeout(()=>{const _0x3b38bf=_0x2e027a;_0x2f6d5b['dom']['globalStatus'][_0x3b38bf(0x19b)][_0x3b38bf(0x1cc)]==='0'&&(_0x2f6d5b[_0x3b38bf(0xa1)][_0x3b38bf(0x94)][_0x3b38bf(0x19b)]['display']=_0x3b38bf(0x147));},0x12c));},'highlightPlayingEpisode'(_0x45d9bb){const _0x2de11f=_0x307674,_0x32c8a1=_0x2f6d5b[_0x2de11f(0xa1)][_0x2de11f(0x197)][_0x2de11f(0x193)](_0x2de11f(0x1a6));if(!_0x32c8a1)return;_0x32c8a1[_0x2de11f(0xa2)](_0x2de11f(0x1aa))['forEach'](_0x34a65c=>_0x34a65c[_0x2de11f(0x105)][_0x2de11f(0x130)](_0x2de11f(0xe2)));const _0x3f0c6b=_0x32c8a1['querySelector']('.tm-collection-btn[data-url=\x22'+_0x45d9bb+'\x22]');_0x3f0c6b&&(_0x3f0c6b[_0x2de11f(0x105)][_0x2de11f(0x17b)](_0x2de11f(0xe2)),_0x3f0c6b[_0x2de11f(0x1be)]({'behavior':_0x2de11f(0xf3),'block':'center'}));},'autoResizePanel'(_0x3fb191,_0x4d43f9){setTimeout(()=>{const _0x196ce3=_0x3b2d;if(!_0x2f6d5b['isPanelOpen'])return;const _0x77e474=_0x3fb191[_0x196ce3(0xa2)]('.tm-collection-btn');if(!_0x77e474[_0x196ce3(0x159)])return;let _0x53d104=0x0;if(_0x4d43f9)_0x53d104=Math[_0x196ce3(0xfa)](...Array[_0x196ce3(0x163)](_0x77e474)[_0x196ce3(0x108)](_0x12127f=>_0x12127f[_0x196ce3(0x16e)]));else for(let _0xf06fac=0x0;_0xf06fac<_0x77e474[_0x196ce3(0x159)];_0xf06fac+=0x2){const _0xe4fc8d=(_0x77e474[_0xf06fac]?.[_0x196ce3(0x16e)]||0x0)+(_0x77e474[_0xf06fac+0x1]?.[_0x196ce3(0x16e)]||0x0)+0x4;if(_0xe4fc8d>_0x53d104)_0x53d104=_0xe4fc8d;}_0x2f6d5b[_0x196ce3(0xa1)][_0x196ce3(0x197)][_0x196ce3(0x19b)][_0x196ce3(0x11e)]=_0x53d104+0xe+'px';},0xa);},'toggleLoading'(_0x56a401){const _0x57ace8=_0x307674;_0x2f6d5b[_0x57ace8(0xa1)][_0x57ace8(0x17f)][_0x57ace8(0x105)][_0x57ace8(0x10a)](_0x57ace8(0x1bb),_0x56a401);},'showPanel'(){const _0xbee532=_0x307674;_0x2f6d5b[_0xbee532(0xa1)][_0xbee532(0x197)]['style'][_0xbee532(0x1c2)]=_0xbee532(0xd4),_0x2f6d5b[_0xbee532(0x10d)]=!![];},'hidePanel'(){const _0x5cd427=_0x307674;_0x2f6d5b['dom'][_0x5cd427(0x197)][_0x5cd427(0x19b)][_0x5cd427(0x1c2)]=_0x5cd427(0x147),_0x2f6d5b[_0x5cd427(0x10d)]=![],this[_0x5cd427(0x1b3)]();},'clearTimer'(_0x886b54){const _0x40bf63=_0x307674;clearInterval(_0x2f6d5b['timers'][_0x886b54]),clearTimeout(_0x2f6d5b['timers'][_0x886b54]),_0x2f6d5b[_0x40bf63(0x111)][_0x886b54]=null;},'clearAllTimers'(){const _0x1be646=_0x307674;Object[_0x1be646(0x118)](_0x2f6d5b[_0x1be646(0x111)])[_0x1be646(0x194)](_0x1a58b0=>this['clearTimer'](_0x1a58b0));}},_0x3160d3={async 'masterSearch'(){const _0x24413c=_0x307674;_0xeb93fa[_0x24413c(0x1b3)](),_0xeb93fa[_0x24413c(0x180)](),_0xeb93fa[_0x24413c(0x9a)](!![]),_0xeb93fa[_0x24413c(0x1cb)](_0x24413c(0xcb)+_0x4c99ef[_0x24413c(0x159)]+_0x24413c(0xb4));const _0x442fe7=_0x55fcb7[_0x24413c(0xf5)]();if(!_0x442fe7){_0xeb93fa[_0x24413c(0x1cb)](_0x24413c(0x101),!![]),_0xeb93fa[_0x24413c(0x9a)](![]);return;}const _0x10dd74=_0x55fcb7[_0x24413c(0x15e)](),_0x5a3d68=this[_0x24413c(0x90)](_0x442fe7),[_0x3aa6d0,_0x2a7630]=await Promise[_0x24413c(0x176)]([_0x10dd74,_0x5a3d68]);_0x2f6d5b[_0x24413c(0x1a5)]=_0x3aa6d0,_0x2f6d5b[_0x24413c(0x1c5)]={'key':location[_0x24413c(0xe9)],'results':_0x2a7630},_0x2f6d5b[_0x24413c(0x143)]=null,_0xeb93fa[_0x24413c(0x9a)](![]);if(_0x2a7630[_0x24413c(0x159)]===0x0){_0xeb93fa[_0x24413c(0x1cb)](_0x24413c(0xab),!![]);return;}_0x2a7630[_0x24413c(0x194)](_0x5886a5=>_0xeb93fa[_0x24413c(0xc1)](_0x5886a5));const _0x5402ad=_0x2f6d5b[_0x24413c(0xa1)][_0x24413c(0x197)][_0x24413c(0x193)](_0x24413c(0x1a6));if(_0x5402ad)_0xeb93fa[_0x24413c(0x135)](_0x5402ad,!![]);_0xeb93fa[_0x24413c(0x1cb)](_0x24413c(0xba)+_0x2a7630[_0x24413c(0x159)]+'\x20个',![]);if(_0x577639['AUTO_EXPAND_BEST_SOURCE']&&_0x2a7630[_0x24413c(0x159)]>0x0){let _0x53c6d6=null;const _0x56ef81=_0x2a7630[_0x24413c(0x12c)](_0x44aecd=>{const _0x30362e=_0x24413c,_0x5db05d=_0x44aecd[_0x30362e(0x92)][_0x30362e(0x17d)][_0x30362e(0x125)](_0x30362e(0xac))['pop']()[_0x30362e(0x125)]('#');return _0x5db05d[_0x30362e(0xce)](_0x12de7e=>{const [_0x1375fb]=_0x12de7e['split']('$'),_0x45b41e=_0x55fcb7['getEpisodeNumberFromString'](_0x1375fb);return _0x45b41e&&parseInt(_0x45b41e,0xa)===parseInt(_0x3aa6d0,0xa);});});_0x56ef81['length']>0x0?_0x53c6d6=_0x56ef81[_0x24413c(0xee)]((_0x2e9ec5,_0x499184)=>_0x2e9ec5[_0x24413c(0xa3)]-_0x499184[_0x24413c(0xa3)])[0x0]:_0x53c6d6=_0x2a7630[_0x24413c(0xee)]((_0xe64431,_0x24de6e)=>_0xe64431[_0x24413c(0xa3)]-_0x24de6e['latency'])[0x0];_0x2f6d5b[_0x24413c(0x143)]=_0x53c6d6[_0x24413c(0x140)];const _0x69154c=!_0x2f6d5b[_0x24413c(0x1a9)];_0x69154c&&(_0x2f6d5b[_0x24413c(0x1a9)]=!![]),_0xeb93fa['updateStatus'](_0x24413c(0xa5)+_0x53c6d6[_0x24413c(0x140)],![]),_0xeb93fa[_0x24413c(0x87)](_0x53c6d6,_0x69154c,_0x2f6d5b[_0x24413c(0x1a5)]);}},async 'performApiSearch'(_0x18d261){const _0x8f3c98=_0x307674,_0x50127b=[];let _0xc2ba64=0x0;const _0x28f536=async _0x4197d5=>{const _0xa1bd9a=_0x3b2d,_0x1e7c5c=await this[_0xa1bd9a(0x95)](_0x4197d5,_0x18d261);_0xc2ba64++,_0x1e7c5c&&_0x50127b[_0xa1bd9a(0xef)](_0x1e7c5c),_0xeb93fa[_0xa1bd9a(0x1cb)](_0xa1bd9a(0x149)+_0xc2ba64+'/'+_0x4c99ef[_0xa1bd9a(0x159)]+')...\x20找到\x20'+_0x50127b['length']+'\x20个');};return await _0x55fcb7[_0x8f3c98(0xaf)](_0x577639['SEARCH_CONCURRENCY'],_0x4c99ef,_0x28f536),_0x50127b[_0x8f3c98(0x12c)](Boolean);},'searchSingleApi':(_0x1ab6a4,_0x245a5e)=>new Promise(async _0x4c4d34=>{const _0x9b8bae=_0x307674;try{const _0x12e39f=await _0x55fcb7[_0x9b8bae(0x178)](_0x9b8bae(0x8d)+encodeURIComponent(_0x245a5e),_0x1ab6a4);let _0x297ea8=_0x12e39f[_0x9b8bae(0xa3)];const _0x5658e7=_0x12e39f[_0x9b8bae(0x92)]?.[_0x9b8bae(0xbe)]?.[0x0]?.[_0x9b8bae(0x8e)];if(!_0x5658e7)return _0x4c4d34(null);const _0x76faee=await _0x55fcb7[_0x9b8bae(0x178)](_0x9b8bae(0xc7)+_0x5658e7,_0x1ab6a4);_0x297ea8+=_0x76faee[_0x9b8bae(0xa3)];const _0x441e49=_0x76faee[_0x9b8bae(0x92)]?.[_0x9b8bae(0xbe)]?.[0x0];if(!_0x441e49?.[_0x9b8bae(0x17d)])return _0x4c4d34(null);_0x4c4d34({'name':_0x1ab6a4['name'],'data':_0x441e49,'latency':_0x297ea8});}catch(_0x5df4ca){_0x4c4d34(null);}})},_0xe68065={async 'start'(_0xd6fb83){const _0x4fc388=_0x307674;_0xeb93fa[_0x4fc388(0x1b3)](),_0xeb93fa[_0x4fc388(0x142)](),_0x2f6d5b['currentPlayingUrl']=_0xd6fb83,_0xeb93fa[_0x4fc388(0x14e)](_0xd6fb83),this[_0x4fc388(0x13a)]();try{const _0x9abf8a=await _0x55fcb7['waitForPlayerResize'](_0x2f6d5b[_0x4fc388(0xd5)]);Object['assign'](_0x2f6d5b[_0x4fc388(0xa1)][_0x4fc388(0x182)][_0x4fc388(0x19b)],{'position':_0x4fc388(0x1a8),'top':_0x9abf8a['top']+window[_0x4fc388(0x173)]+'px','left':_0x9abf8a[_0x4fc388(0x126)]+'px','width':_0x9abf8a[_0x4fc388(0x11e)]+'px','height':_0x9abf8a[_0x4fc388(0xcf)]+'px'});}catch(_0x251aa0){console[_0x4fc388(0x1a4)](_0x4fc388(0x167)+_0x251aa0[_0x4fc388(0xf8)]+_0x4fc388(0x137)),Object[_0x4fc388(0x104)](_0x2f6d5b[_0x4fc388(0xa1)][_0x4fc388(0x182)][_0x4fc388(0x19b)],{'position':_0x4fc388(0x1bc),'top':'0','left':'0','width':_0x4fc388(0x1a1),'height':_0x4fc388(0x1a1)});}_0x2f6d5b[_0x4fc388(0x187)]=0x0,_0x2f6d5b['dom'][_0x4fc388(0x182)][_0x4fc388(0x19b)][_0x4fc388(0x1c2)]=_0x4fc388(0xc4),this['attemptToPlay'](_0xd6fb83);},'attemptToPlay'(_0x5f3c2f,_0x374d72=0x0){const _0x52f706=_0x307674;if(_0x2f6d5b[_0x52f706(0x144)]&&_0x374d72===0x0)return;_0xeb93fa['clearTimer'](_0x52f706(0x1a3));if(_0x374d72>0x0)_0x2f6d5b[_0x52f706(0x144)]=!![];const _0x2fc572=_0x2b126c[_0x2f6d5b[_0x52f706(0x187)]],_0x27412d=_0x374d72>0x0?_0x52f706(0xfc)+_0x2fc572[_0x52f706(0x140)]:_0x52f706(0x16d)+_0x2fc572['name']+_0x52f706(0xe1);_0xeb93fa[_0x52f706(0xc5)](_0x27412d);const _0x2bda03=this[_0x52f706(0x161)](_0x5f3c2f,_0x2fc572['type'],_0x374d72);_0x2f6d5b[_0x52f706(0xa1)][_0x52f706(0x9c)][_0x52f706(0xb7)]=_0x2bda03,_0x2f6d5b[_0x52f706(0xa1)][_0x52f706(0x9c)][_0x52f706(0x132)]=()=>{const _0x3f27da=_0x52f706;_0xeb93fa[_0x3f27da(0xb5)](_0x3f27da(0x1a3)),_0xeb93fa[_0x3f27da(0xc5)](_0x3f27da(0xc6)+_0x2fc572[_0x3f27da(0x140)]+_0x3f27da(0x11a),!![]),setTimeout(()=>_0xeb93fa[_0x3f27da(0xc5)]('',![]),0xbb8);if(_0x2f6d5b['isHardResetting'])setTimeout(()=>_0x2f6d5b[_0x3f27da(0x144)]=![],0xbb8);},_0x2f6d5b[_0x52f706(0x111)]['fallback']=setTimeout(()=>{const _0x465eb7=_0x52f706;_0xeb93fa[_0x465eb7(0xc5)](_0x465eb7(0x12f),!![]);},_0x577639[_0x52f706(0x1bf)]);},'createHTML'(_0x5e09cb,_0x33e8ff,_0x1db8a4=0x0){const _0x57763e=_0x307674,_0x5cbd6c=_0x5e09cb+(_0x5e09cb[_0x57763e(0x152)]('?')?'&':'?')+(_0x57763e(0x123)+Date[_0x57763e(0x199)]()),_0x3b1b35=_0x5cbd6c[_0x57763e(0x1b1)](/'/g,'\x5c\x27'),_0x454106=JSON['stringify'](_0x577639[_0x57763e(0x9e)]);let _0x12825c='',_0x4d527e='';return _0x33e8ff===_0x57763e(0x84)?(_0x12825c=_0x57763e(0x177),_0x4d527e=_0x57763e(0xa0)+_0x454106+_0x57763e(0x19c)+_0x3b1b35+'\x27);\x20hls.attachMedia(video);\x20hls.on(Hls.Events.ERROR,\x20(event,\x20data)\x20=>\x20{\x20console.error(\x27HLS.js\x20Error:\x27,\x20data);\x20if\x20(data.fatal)\x20{\x20switch(data.type)\x20{\x20case\x20Hls.ErrorTypes.MEDIA_ERROR:\x20hls.recoverMediaError();\x20break;\x20case\x20Hls.ErrorTypes.NETWORK_ERROR:\x20hls.startLoad();\x20break;\x20default:\x20parent.postMessage({\x20type:\x20\x27'+_0x577639[_0x57763e(0x192)][_0x57763e(0x121)]+_0x57763e(0xca)):(_0x12825c=_0x57763e(0xdb),_0x4d527e=_0x57763e(0xa4)+_0x3b1b35+_0x57763e(0x124)),_0x57763e(0xe4)+_0x12825c+_0x57763e(0x14f)+_0x3b1b35+_0x57763e(0xf2)+_0x4d527e+_0x57763e(0x18b)+_0x1db8a4+_0x57763e(0xb6)+_0x1db8a4+_0x57763e(0x1ba)+_0x577639['MESSAGES'][_0x57763e(0xb0)]+_0x57763e(0xff)+_0x577639[_0x57763e(0x192)]['GET_TIME_REQ']+_0x57763e(0x15c)+_0x577639[_0x57763e(0x192)][_0x57763e(0xa6)]+_0x57763e(0x107);},'triggerHardReset'(){const _0x567064=_0x307674;if(_0x2f6d5b[_0x567064(0x144)]||_0x2f6d5b[_0x567064(0xa1)][_0x567064(0x182)][_0x567064(0x19b)]['display']!==_0x567064(0xc4))return;_0xeb93fa['updatePlayerStatus'](_0x567064(0xc9),!![]);const _0x39776b=_0x587d20=>{const _0xfa2631=_0x567064;if(_0x587d20[_0xfa2631(0x92)]?.[_0xfa2631(0x131)]===_0x577639[_0xfa2631(0x192)][_0xfa2631(0xa6)]){window[_0xfa2631(0x11f)](_0xfa2631(0xf8),_0x39776b),_0x2f6d5b[_0xfa2631(0x187)]=(_0x2f6d5b[_0xfa2631(0x187)]+0x1)%_0x2b126c[_0xfa2631(0x159)];const _0x16acd5=(_0x587d20['data'][_0xfa2631(0x120)]||0x0)+0x3;this['attemptToPlay'](_0x2f6d5b[_0xfa2631(0x88)],_0x16acd5);}};window[_0x567064(0x168)]('message',_0x39776b),_0x2f6d5b[_0x567064(0xa1)][_0x567064(0x9c)][_0x567064(0x190)][_0x567064(0x16c)]({'type':_0x577639['MESSAGES'][_0x567064(0x157)]},'*'),setTimeout(()=>window[_0x567064(0x11f)](_0x567064(0xf8),_0x39776b),0x7d0);},'handleMessage'(_0x5df30d){const _0x9e33b=_0x307674,_0x419c1f=_0x5df30d[_0x9e33b(0x92)];if(!_0x419c1f?.[_0x9e33b(0x131)])return;if(_0x419c1f['type']===_0x577639[_0x9e33b(0x192)][_0x9e33b(0xb0)]){if(!_0x2f6d5b[_0x9e33b(0x88)]||!_0x2f6d5b[_0x9e33b(0x1b9)]['length'])return;const _0x29c674=_0x2f6d5b['currentEpisodeList']['findIndex'](_0x1391a2=>_0x1391a2['url']===_0x2f6d5b[_0x9e33b(0x88)]);if(_0x29c674>-0x1&&_0x29c674<_0x2f6d5b[_0x9e33b(0x1b9)][_0x9e33b(0x159)]-0x1){const _0x3fac4e=_0x2f6d5b['currentEpisodeList'][_0x29c674+0x1];_0xeb93fa[_0x9e33b(0xc5)](_0x9e33b(0x155)+_0x3fac4e[_0x9e33b(0x140)],!![]),setTimeout(()=>this[_0x9e33b(0x82)](_0x3fac4e[_0x9e33b(0x91)]),_0x577639['AUTOPLAY_NEXT_DELAY']);}else _0xeb93fa[_0x9e33b(0xc5)](_0x9e33b(0xdc),!![]),setTimeout(()=>this[_0x9e33b(0x10f)](),0xbb8);}else _0x419c1f['type']===_0x577639[_0x9e33b(0x192)][_0x9e33b(0x121)]&&this[_0x9e33b(0xd9)]();},'close'(){const _0x35f925=_0x307674;_0xeb93fa['clearAllTimers'](),_0x2f6d5b[_0x35f925(0xa1)][_0x35f925(0x182)]['style'][_0x35f925(0x1c2)]=_0x35f925(0x147),_0x2f6d5b[_0x35f925(0xa1)]['iframePlayer'][_0x35f925(0xb7)]='',_0xeb93fa[_0x35f925(0xc5)]('',![]),_0x2f6d5b[_0x35f925(0xd5)]&&(_0x2f6d5b[_0x35f925(0xd5)]['style'][_0x35f925(0xfd)]=_0x35f925(0x1bd),_0x2f6d5b['hiddenPlayerElement']=null),_0x2f6d5b[_0x35f925(0x88)]='',_0x2f6d5b[_0x35f925(0x144)]=![];},'pauseAndHideOriginalPlayer'(){const _0x535af5=_0x307674;document['querySelectorAll']('video')[_0x535af5(0x194)](_0x32ac00=>{const _0xd2bff9=_0x535af5;if(!_0x32ac00[_0xd2bff9(0x1a2)])_0x32ac00[_0xd2bff9(0xe8)]();}),_0x2f6d5b[_0x535af5(0xd5)]=_0x55fcb7[_0x535af5(0x19f)](),_0x2f6d5b[_0x535af5(0xd5)]&&(_0x2f6d5b[_0x535af5(0xd5)]['style'][_0x535af5(0xfd)]=_0x535af5(0x8a));},'updateOverlayPosition'(){const _0x2ab928=_0x307674;if(_0x2f6d5b[_0x2ab928(0xd5)]&&_0x2f6d5b[_0x2ab928(0xa1)][_0x2ab928(0x182)][_0x2ab928(0x19b)][_0x2ab928(0x1c2)]===_0x2ab928(0xc4)){const _0x482922=_0x2f6d5b[_0x2ab928(0xd5)][_0x2ab928(0x170)]();Object[_0x2ab928(0x104)](_0x2f6d5b[_0x2ab928(0xa1)]['playerOverlay'][_0x2ab928(0x19b)],{'top':_0x482922['top']+window[_0x2ab928(0x173)]+'px','left':_0x482922[_0x2ab928(0x126)]+'px','width':_0x482922[_0x2ab928(0x11e)]+'px','height':_0x482922[_0x2ab928(0xcf)]+'px'});}}},_0x55fcb7={async 'asyncPool'(_0x22ccf5,_0x2fa08f,_0x1a94d9){const _0x38bad3=_0x307674,_0x32edfe=[],_0x5eda16=new Set();for(const _0x2cfa26 of _0x2fa08f){const _0x2a8b66=Promise[_0x38bad3(0x150)]()[_0x38bad3(0x83)](()=>_0x1a94d9(_0x2cfa26));_0x32edfe['push'](_0x2a8b66),_0x5eda16['add'](_0x2a8b66);const _0x569d1b=()=>_0x5eda16[_0x38bad3(0x86)](_0x2a8b66);_0x2a8b66[_0x38bad3(0x83)](_0x569d1b)[_0x38bad3(0x188)](_0x569d1b),_0x5eda16[_0x38bad3(0x14d)]>=_0x22ccf5&&await Promise[_0x38bad3(0x1b5)](_0x5eda16);}return Promise[_0x38bad3(0x176)](_0x32edfe);},'robustRequest'(_0x1ecee1,_0xf01e99){return new Promise((_0xfc27d8,_0x4fe8ec)=>{const _0x3134f8=_0x3b2d,_0x162712=Date[_0x3134f8(0x199)]();GM_xmlhttpRequest({'method':_0x3134f8(0x13d),'url':_0xf01e99['url']+'?'+_0x1ecee1,'headers':{'Referer':new URL(_0xf01e99[_0x3134f8(0x91)])[_0x3134f8(0x171)],'User-Agent':_0x3134f8(0x154)},'timeout':_0x577639[_0x3134f8(0x1ac)],'onload':_0x14fc6f=>{const _0x18ca66=_0x3134f8,_0x1d83eb=Date[_0x18ca66(0x199)]()-_0x162712;if(_0x14fc6f[_0x18ca66(0x116)]!==0xc8||!_0x14fc6f[_0x18ca66(0x195)]||_0x14fc6f[_0x18ca66(0x195)][_0x18ca66(0x134)]()[_0x18ca66(0x89)]('<'))return _0x4fe8ec(new Error('API\x20format\x20error'));try{_0xfc27d8({'data':JSON[_0x18ca66(0x96)](_0x14fc6f[_0x18ca66(0x195)]),'latency':_0x1d83eb});}catch(_0x46b077){_0x4fe8ec(new Error(_0x18ca66(0x1c7)));}},'onerror':_0x45ea5e=>_0x4fe8ec(new Error(_0x3134f8(0xf9)+_0x45ea5e[_0x3134f8(0xd7)])),'ontimeout':()=>_0x4fe8ec(new Error('Request\x20timeout'))});});},'getQuickMainTitle'(){const _0x4677e5=_0x307674;for(const _0x359772 of _0x577639[_0x4677e5(0x164)][_0x4677e5(0x16b)]){const _0x54d0cd=document[_0x4677e5(0x193)](_0x359772);if(_0x54d0cd){const _0xdc238=(_0x54d0cd['getAttribute']('content')||_0x54d0cd[_0x4677e5(0x12a)]||'')[_0x4677e5(0x134)]();if(_0xdc238)return _0xdc238['split'](/[-_\s((]/)[0x0][_0x4677e5(0x1b1)](/第.+[集季部]/,'')[_0x4677e5(0x134)]();}}return document['title'][_0x4677e5(0x125)](/[-_\s((]/)[0x0][_0x4677e5(0x1b1)](/第.+[集季部]/,'')[_0x4677e5(0x134)]();},async 'getCurrentEpisodeNumber'(){const _0x5a01b8=_0x307674;try{const _0x2a5804=new URLSearchParams(location[_0x5a01b8(0xe9)]);if(_0x2a5804[_0x5a01b8(0xdd)]('s4')){const _0x302c22=_0x2a5804[_0x5a01b8(0xc0)]('s4');if(_0x302c22&&!isNaN(_0x302c22))return _0x302c22;}if(_0x2a5804['has']('tvname')){const _0x527aaf=this[_0x5a01b8(0x106)](decodeURIComponent(_0x2a5804[_0x5a01b8(0xc0)](_0x5a01b8(0x14b))));if(_0x527aaf)return _0x527aaf;}}catch(_0xdf2d6f){}const _0x3e1d37=window[_0x5a01b8(0x85)][_0x5a01b8(0x113)],_0x146109=Object['keys'](_0x577639[_0x5a01b8(0x164)][_0x5a01b8(0x13f)])[_0x5a01b8(0x17c)](_0xfe82b5=>_0x3e1d37[_0x5a01b8(0x152)](_0xfe82b5));if(_0x146109)try{const _0x1fae98=await this['waitForElement'](_0x577639['SELECTORS'][_0x5a01b8(0x13f)][_0x146109]);if(_0x1fae98?.[_0x5a01b8(0x12a)]){const _0x327602=this[_0x5a01b8(0x106)](_0x1fae98[_0x5a01b8(0x12a)][_0x5a01b8(0x134)]());if(_0x327602)return _0x327602;}}catch(_0x129f15){console[_0x5a01b8(0x1a4)]('[VIP-Util]\x20Could\x20not\x20find\x20precise\x20episode\x20element:\x20'+_0x129f15[_0x5a01b8(0xf8)]);}return this[_0x5a01b8(0x106)](document['title']);},'getEpisodeNumberFromString'(_0x3e3213){const _0x4bc023=_0x307674;if(!_0x3e3213)return null;let _0x5df658=_0x3e3213[_0x4bc023(0xda)](/(?:第|EP|Ep|ep|E)\s*(\d+)/);if(_0x5df658&&_0x5df658[0x1])return _0x5df658[0x1];_0x5df658=_0x3e3213[_0x4bc023(0xda)](/(?:\D|^)(\d{1,4})(?:\D|$)/);if(_0x5df658&&_0x5df658[0x1])return _0x5df658[0x1];const _0x45a90c=_0x3e3213[_0x4bc023(0xda)](/\d+/g);return _0x45a90c?_0x45a90c[_0x45a90c['length']-0x1]:null;},'findWebsitePlayerElement':()=>_0x577639['SELECTORS'][_0x307674(0x110)][_0x307674(0x108)](_0x2791fc=>document['querySelector'](_0x2791fc))[_0x307674(0x17c)](_0x489ad3=>_0x489ad3),'waitForElement'(_0x4265d3,_0x3c8b5c=0xbb8){return new Promise((_0x3ea32d,_0x195127)=>{const _0xcec539=_0x3b2d,_0x29d523=document['querySelector'](_0x4265d3);if(_0x29d523)return _0x3ea32d(_0x29d523);const _0x59084f=new MutationObserver(()=>{const _0x2f8f6f=_0x3b2d,_0x9dd475=document[_0x2f8f6f(0x193)](_0x4265d3);_0x9dd475&&(_0x59084f[_0x2f8f6f(0x158)](),clearTimeout(_0x59888c),_0x3ea32d(_0x9dd475));}),_0x59888c=setTimeout(()=>{const _0x244506=_0x3b2d;_0x59084f[_0x244506(0x158)](),_0x195127(new Error(_0x244506(0xe6)+_0x4265d3+'\x27'));},_0x3c8b5c);_0x59084f[_0xcec539(0x12d)](document[_0xcec539(0x183)],{'childList':!![],'subtree':!![]});});},'waitForPlayerResize'(_0x551813,_0x363f3a=0x7d0){return new Promise((_0x4c8ee6,_0x4b6082)=>{const _0x5077aa=_0x3b2d;if(!_0x551813)return _0x4b6082(new Error(_0x5077aa(0x7d)));let _0x1950ca=0x0,_0x15248a=0x0,_0x20e0ce=0x0;const _0x32faf7=0x64,_0x26aeed=0x3,_0x51f522=setInterval(()=>{const _0x32e04d=_0x5077aa,_0x2cb6ca=_0x551813['getBoundingClientRect']();_0x2cb6ca[_0x32e04d(0x11e)]>0x0&&_0x2cb6ca[_0x32e04d(0xcf)]>0x0&&(_0x2cb6ca[_0x32e04d(0x11e)]===_0x1950ca&&_0x2cb6ca['height']===_0x15248a?++_0x20e0ce>=_0x26aeed&&(clearInterval(_0x51f522),clearTimeout(_0x200ced),_0x4c8ee6(_0x2cb6ca)):(_0x20e0ce=0x0,_0x1950ca=_0x2cb6ca['width'],_0x15248a=_0x2cb6ca[_0x32e04d(0xcf)]));},_0x32faf7),_0x200ced=setTimeout(()=>{const _0x3d0e2f=_0x5077aa;clearInterval(_0x51f522);const _0x393f1f=_0x551813['getBoundingClientRect']();_0x393f1f['width']>0x0?_0x4c8ee6(_0x393f1f):_0x4b6082(new Error(_0x3d0e2f(0x18c)));},_0x363f3a);});},'prewarmDependencies'(){const _0xd7685b=_0x307674,_0x1d9819=[{'href':_0xd7685b(0xb2),'rel':_0xd7685b(0x17a)},{'href':'https://cdn.jsdelivr.net/npm/dplayer@1.27.1/dist/DPlayer.min.css','rel':_0xd7685b(0x169),'as':_0xd7685b(0x19b)},{'href':_0xd7685b(0x11b),'rel':_0xd7685b(0x169),'as':'script'},{'href':'https://cdn.jsdelivr.net/npm/hls.js@1.5.8','rel':_0xd7685b(0x169),'as':_0xd7685b(0x128)},{'href':_0xd7685b(0x1ae),'rel':_0xd7685b(0x169),'as':_0xd7685b(0x128)}],_0x4a76c0=document[_0xd7685b(0x119)]||document['getElementsByTagName']('head')[0x0];if(!_0x4a76c0)return;_0x1d9819[_0xd7685b(0x194)](_0x404280=>{const _0x3b9ab0=_0xd7685b;if(_0x4a76c0['querySelector'](_0x3b9ab0(0x1cf)+_0x404280['href']+'\x22]'))return;const _0x2d764d=document[_0x3b9ab0(0x1c6)](_0x3b9ab0(0x9d));_0x2d764d[_0x3b9ab0(0x114)]=_0x404280[_0x3b9ab0(0x114)];if(_0x404280['as'])_0x2d764d['as']=_0x404280['as'];_0x2d764d[_0x3b9ab0(0xe9)]=_0x404280[_0x3b9ab0(0xe9)];if(_0x404280[_0x3b9ab0(0x114)]===_0x3b9ab0(0x169))_0x2d764d[_0x3b9ab0(0xb3)]=_0x3b9ab0(0xe0);_0x4a76c0[_0x3b9ab0(0x19d)](_0x2d764d);});}};function _0x2a4649(){setTimeout(()=>{const _0x327fad=_0x3b2d;if(document[_0x327fad(0xe7)](_0x327fad(0x10c)))return;_0x55fcb7[_0x327fad(0xdf)](),_0xeb93fa['init']();const _0x3de029=new MutationObserver(()=>{const _0x555201=_0x327fad;location['href']!==_0x2f6d5b[_0x555201(0x18a)]&&(console[_0x555201(0x179)]('[VIP-Nav]\x20URL\x20changed\x20from\x20'+_0x2f6d5b['currentURL']+_0x555201(0xec)+location['href']+'.\x20Resetting\x20state.'),_0x2f6d5b[_0x555201(0x18a)]=location[_0x555201(0xe9)],_0xe68065[_0x555201(0x10f)](),_0xeb93fa[_0x555201(0x142)](),_0x2f6d5b[_0x555201(0x1c5)]={'key':null,'results':[]},_0x2f6d5b[_0x555201(0x1a9)]=![]);});_0x3de029[_0x327fad(0x12d)](document,{'childList':!![],'subtree':!![]});},0x1f4);}_0x2a4649();}()));