(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"use strict";function init(){watcher||(watcher=new _VideoWatcher.VideoWatcher({toolbarDelegate:_ToolbalEventDelegate.defaultToolbarDelegate,delegate:new _VideoWatcherDelegate.VideoWatcherDelegate}).registerEvents(),watcher.watchDOM(document),watcher.processVideoNodes(),watcher.watchYoutubeUrl(layoutNext))}function dispose(){watcher&&(watcher.dispose(),watcher=null)}function loop(){watcher&&(mayNeedLayout=mayNeedLayout||(0,_videoToolBarComponent.inIFrame)(),watcher.toolbars.slice().forEach(function(e){if(e.video){var o=!1;if(curMouse){o=isPointInToolBar(e,curMouse);var t=!!((0,_VideoWatcher.supportTouch)()||o||e.renderState.recording);e.setVisibilityAfterMilliseconds(t,t?0:2200)}e.visible&&mayNeedLayout&&e.shouldLayoutVideo(o)&&e.layoutVideo()}else watcher.removeToolbar(e)})),curMouse=null,mayNeedLayout=!1,dispatched=!1}function layoutNext(){mayNeedLayout=!0,dispatchLoop()}function dispatchLoop(){dispatched||(requestAnimationFrame(loop),dispatched=!0)}function isPointInToolBar(e,o){if((0,_videoToolBarComponent.inIFrame)())return(0,_Rect.rectContains)(e.toolbarBound,o)||cropRectInCenter(e.clientRectWithVideo(),20,20).contains(o);var t=e.visible?e.clientRect():e.clientRectWithVideo();return t.contains(o)}function cropRectInCenter(e,o,t){var a=e.width/2,i=e.height/2,n=a+e.x,r=i+e.y;return new _videoToolBarComponent.Rect(n-a+o,r-i+t,2*(a-o),2*(i-t))}var _VideoWatcher=require(7),_VideoWatcherDelegate=require(8),_videoToolBarComponent=require(11),_Rect=require(15),_ToolbalEventDelegate=require(6),watcher=void 0,curMouse=void 0,mayNeedLayout=void 0,dispatched=void 0,lastMousePos={x:0,y:0};requestAnimationFrame(loop),window.addEventListener("mousemove",function(e){var o={x:e.clientX,y:e.clientY};Math.abs(o.x-lastMousePos.x)+Math.abs(o.y-lastMousePos.y)>4&&(lastMousePos=curMouse=o,dispatchLoop())}),window.addEventListener("mouseup",layoutNext),document.addEventListener("scroll",layoutNext),window.addEventListener("resize",layoutNext),window.addEventListener("touchstart",layoutNext),window.addEventListener("mouseleave",function(){lastMousePos=curMouse={x:-1,y:-1},dispatchLoop()}),(0,_VideoWatcher.onToolbarConfigChanged)(function(e){e.toolbarFeatureSupported&&e.useToolbar?init():dispose()}),(0,_VideoWatcher.queryConfig)();


},{"11":11,"15":15,"6":6,"7":7,"8":8}],2:[function(require,module,exports){
"use strict";exports.defineProperty=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},exports.inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},exports.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},exports.createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),exports.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},exports.slicedToArray=function(){function e(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(n=(u=a.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{!n&&a["return"]&&a["return"]()}finally{if(o)throw i}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),exports.get=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var u=o.get;if(void 0!==u)return u.call(n)};


},{}],3:[function(require,module,exports){
"use strict";function injectStyle(e,n){if(-1==injectedTags.indexOf(n)){injectedTags.push(n);var t=document.createElement("style");return t.innerHTML=e,document.head.appendChild(t),t}return null}function injectUCNexusIconFont(){var e=require(29);return injectStyle(e,"uc-nexus-icon-font")}exports.injectStyle=injectStyle,exports.injectUCNexusIconFont=injectUCNexusIconFont;var injectedTags=[];


},{"29":29}],4:[function(require,module,exports){
"use strict";exports.ModalWindow=void 0;var _AsyncRender2=require(13),_defer=require(16),ModalWindow=exports.ModalWindow=function(e){function t(e){var n=e.text;require(2).classCallCheck(this,t);var r=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this)),i=r.element=document.createElement("dialog"),a=i.createShadowRoot();return r.text=new Object(n),a.innerHTML=r.getTemplate(),r.onShadowRootCreated(a),r}return require(2).inherits(t,e),require(2).createClass(t,[{key:"onShadowRootCreated",value:function(e){var t=this;e.addEventListener("click",function(e){var n=t._deferred,r=e.target.dataset.event;if(r&&n&&n.resolve(require(2).defineProperty({},r,!0)),r){var i=t.element;i.parentElement&&i.parentElement.removeChild(i),i.close()}})}},{key:"getStyleText",value:function(){return""}},{key:"showAsync",value:function(){var e=this._deferred;return e&&e.reject(),this.element.parentElement||document.body.appendChild(this.element),this.element.showModal(),e=this._deferred=(0,_defer.defer)(),e.promise}},{key:"templateBeforeMainText",value:function(){return""}},{key:"templateAfterMainText",value:function(){return""}},{key:"getTemplate",value:function(){var e=this.text;return"\n     <style>"+this.getStyleText()+'</style>\n     <div class="modal">\n        <div class="title">\n            <div class="content">'+e.title+'</div>\n            <div class="close" data-event="closed"></div>\n        </div>\n        '+this.templateBeforeMainText()+'\n        <div class="main">\n         <div class="text">'+e.main+"</div>\n        </div>\n         "+this.templateAfterMainText()+'\n        <div class="control">\n                <button class="cancel" data-event="canceled">'+e.cancelText+'</button>\n                <button class="confirm" data-event="confirmed" >'+e.confirmText+"</button>\n         </div>\n    </div>"}}]),t}(_AsyncRender2.AsyncRender);


},{"13":13,"16":16,"2":2}],5:[function(require,module,exports){
"use strict";exports.UCModalWindow=void 0;var _modalWindow=require(4),_dom=require(18),_injectStyle=require(3),MODAL_STYLE_TEXT=require(28);(0,_injectStyle.injectUCNexusIconFont)();var UCModalWindow=exports.UCModalWindow=function(e){function t(){return require(2).classCallCheck(this,t),require(2).possibleConstructorReturn(this,Object.getPrototypeOf(t).apply(this,arguments))}return require(2).inherits(t,e),require(2).createClass(t,[{key:"getStyleText",value:function(){return MODAL_STYLE_TEXT}},{key:"showAsync",value:function(){var e=this;return require(2).get(Object.getPrototypeOf(t.prototype),"showAsync",this).call(this).then(function(t){return t.hideChecked=(0,_dom._$)(".check-hide input[type=checkbox]",e.element).checked,t})}},{key:"templateAfterMainText",value:function(){return'<div class="check-hide">\n      <input type="checkbox" checked>\n      '+this.text.hideCheck+"\n    </div>"}}]),t}(_modalWindow.ModalWindow);


},{"18":18,"2":2,"28":28,"3":3,"4":4}],6:[function(require,module,exports){
"use strict";function showConvertMP3Modal(){if(shouldShowConvertMP3Modal()){var e=new _ucModalWindow.UCModalWindow({text:{title:chrome.i18n.getMessage("UC_Browser"),main:chrome.i18n.getMessage("convert_mp3_tip"),confirmText:chrome.i18n.getMessage("OK"),cancelText:chrome.i18n.getMessage("Cancel"),hideCheck:chrome.i18n.getMessage("automatically_convert_mp3")}});return e.showAsync().then(function(e){return e.confirmed?(e.hideChecked&&localStorage.setItem(SHOW_CONVERT_MP3_MODAL_KEY,"0"),!0):!1})}return!0}function shouldShowConvertMP3Modal(){return"0"!==localStorage.getItem(SHOW_CONVERT_MP3_MODAL_KEY)}function getDomain(){return location.hostname}function wowExecuteRecordingAction(e,o,t){var r={instance:e.instance,type:t,start:!!o};2==e.version?runScriptInPage('chrome.wowPrivate.send("executeMediaRecording", \''+JSON.stringify(r)+"');"):(delete r.type,runScriptInPage('chrome.wowPrivate.send("executeRecordingAction", \''+JSON.stringify(r)+"');"))}function runScriptInPage(e){var o=document.createElement("script");o.innerHTML=e,document.head.appendChild(o)}exports.defaultToolbarDelegate=void 0;var _videoToolBarComponent=require(11),_videoToolBar=require(23),_message=require(24),_crawlerRule=require(9),_videoToolBar2=require(26),_flashRecord=require(20),_ucModalWindow=require(5),STORAGE_DEF_VIDEO_TAG_KEY="i18n-video-toolbar-video-itag",STORAGE_DEF_AUDIO_TAG_KEY="i18n-video-toolbar-audio-itag",defaultToolbarDelegate=exports.defaultToolbarDelegate={defaultVideoTag:window.localStorage.getItem(STORAGE_DEF_VIDEO_TAG_KEY)||"0",defaultAudioTag:window.localStorage.getItem(STORAGE_DEF_AUDIO_TAG_KEY)||"0",onClickRecord:function(e,o){var t=o.flashRecordData;if(t){var r=e.target.dataset.media||_flashRecord.FLASH_RECORD_V2_MEDIA_TYPE_NORMAL;o.renderState.currentRecordingMediaType=r,wowExecuteRecordingAction(t,1,r);var a=2==t.version?r==_flashRecord.FLASH_RECORD_V2_MEDIA_TYPE_NORMAL?2:1:3;(0,_videoToolBar2.reportToolbarStartRecordVideo)(getDomain(),a)}},onClickCloseRecordGuide:function(e){(0,_message.sendMessageAsync)(_videoToolBar.MSG_EVENT_VD_TOOLBAR_HIDE_RECORD_GUIDE,{type:e.target.dataset.type})},onClickEndRecord:function(e,o){var t=o.flashRecordData;t&&wowExecuteRecordingAction(t,0,o.renderState.currentRecordingMediaType)},onClickSnapshot:function(e,o){(0,_message.sendMessageAsync)(_videoToolBar.MSG_EVENT_VD_TOOLBAR_SNAPSHOT_VIDEO,{videoTag:o.videoTag},{noReply:!0})},onClickPopup:function(e,o){(0,_message.sendMessageAsync)(_videoToolBar.MSG_EVENT_VD_TOOLBAR_POPUP_VIDEO,{videoTag:o.videoTag},{noReply:!0}),(0,_videoToolBar2.reportToolbarPopup)(getDomain())},onToolbarVisibleChanged:function(e,o){if(o&&e&&!o.renderState.closed){var t=o.data.showCount++;t?((0,_videoToolBar2.reportToolbarShow)(getDomain(),t),o.renderState.canRecord&&!o.renderState.recording&&(0,_videoToolBar2.reportShowVideoRecord)(getDomain(),t)):o.data.showCount=1}},onClickClose:function(e,o){(0,_videoToolBar2.reportToolbarClose)(getDomain())},onClickDownloadAudio:function(e,o){(0,_videoToolBar2.reportClickDownloadAudio)(getDomain(),o.shouldExpandDownloadList(e))},onClickDownload:function(e,o){(0,_videoToolBar2.recordClickDownload)(!!o.renderState.crawlURL,getDomain(),o.shouldExpandDownloadList(e))},shouldStartDownloadVideoFileAsync:function(e,o){return"convert_to_mp3"==e.downloadPlugin?showConvertMP3Modal():!0},requestCrawlURL:function(e){var o=e.video;return o?(0,_crawlerRule.findVideoCrawlURL)({url:location.href,video:o}):void 0},requestDownloadableURL:function(e){var o=e.video;if(o){if(!(o instanceof HTMLVideoElement))return(0,_crawlerRule.findFlashDownloadURL)(window.location.href,o);var t=o.src||o.currentSrc;if(/^https?:\/\//.test(t))return t;if(/^\/\//.test(t)&&/https?/.test(location.protocol))return""+location.protocol+t}},requestFileTag:function(e){return e?this.defaultAudioTag:this.defaultVideoTag},willStartDownloadVideoFile:function(e,o){var t=e.isAudio,r=t?this.defaultAudioTag:this.defaultVideoTag,a=e.itag;if(r!=a){var n="default"+(t?"Audio":"Video")+"Tag";this[n]=a,o.setRenderState(require(2).defineProperty({},n,a)),window.localStorage.setItem(t?STORAGE_DEF_AUDIO_TAG_KEY:STORAGE_DEF_VIDEO_TAG_KEY,a)}"convert_to_mp3"==e.downloadPlugin&&(0,_videoToolBar2.reportConvertMP3)(),(0,_videoToolBar2.reportDownloadVideoFile)(getDomain(),e.quality,e.itag)}},SHOW_CONVERT_MP3_MODAL_KEY="convert_modal";


},{"11":11,"2":2,"20":20,"23":23,"24":24,"26":26,"5":5,"9":9}],7:[function(require,module,exports){
"use strict";function queryConfig(){(0,_message.sendMessageAsync)(_videoToolBar.MSG_EVENT_VD_TOOLBAR_CONFIG).then(receiveConfig)}function receiveConfig(e){configHandler(e),currentSnapshotTip=e.snapshot,registeredVideoWatchers.forEach(function(e){return e.toolbars.forEach(function(e){return e.setSnapshotItemTitle(currentSnapshotTip)})})}function onToolbarConfigChanged(e){configHandler=e}function isFlash(e){var o=e.tagName;if("application/x-shockwave-flash"==e.type)return!0;if("OBJECT"==o||"EMBED"==o){if("true"==e.getAttribute("is-video-flag"))return!0;var t=e.src||"",r=t.substring(0,t.lastIndexOf("?"))||t;return/\.swf$/.test(r)}return!1}function supportTouch(){return TOUCHED}exports.VideoWatcher=void 0,exports.queryConfig=queryConfig,exports.onToolbarConfigChanged=onToolbarConfigChanged,exports.supportTouch=supportTouch;var _EventEmitter2=require(14),_utils=require(19),_videoToolBarComponent=require(11),_message=require(24),_flashRecord=require(20),_videoToolBar=require(23),pendingRecordData={},registeredVideoWatchers=[],configHandler=function(){return 0},currentSnapshotTip="",VideoWatcher=exports.VideoWatcher=function(e){function o(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.toolbarDelegate,r=e.delegate;require(2).classCallCheck(this,o);var i=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(o).call(this));return i.toolbars=[],i.toolbarDelegate=t,i.delegate=r,i}return require(2).inherits(o,e),require(2).createClass(o,[{key:"shouldSetToolbarForVideo",value:function(e){return this.delegate&&this.delegate.shouldSetToolBarForVideo?this.delegate.shouldSetToolBarForVideo(e,this):e.clientWidth>=320&&e.clientHeight>=240}},{key:"shouldSetToolBarForFlash",value:function(e){return this.delegate&&this.delegate.shouldSetToolBarForFlash?this.delegate.shouldSetToolBarForFlash(e,this):e.clientWidth>=320&&e.clientHeight>=240}},{key:"setToolbar",value:function(e,o){var t=new _videoToolBarComponent.VideoToolbarComponent(Object.assign({video:e,delegate:this.toolbarDelegate},o));this.toolbars.push(t),t.setSnapshotItemTitle(currentSnapshotTip);var r=pendingRecordData[e.id];return r&&(t.flashRecordEnabledChange(r),delete pendingRecordData[e.id]),t}},{key:"handleNode",value:function(e){var o=void 0,t=e.tagName;return"VIDEO"==t&&this.shouldSetToolbarForVideo(e)?o={canRecord:!1,canSnapshot:!1,hasAudio:/youtube\.com\/watch\?/.test(location.href)}:isFlash(e)&&this.shouldSetToolBarForFlash(e)&&(o={canRecord:!1,canSnapshot:(0,_videoToolBarComponent.isCN)()}),o?(o.visible=!0,this.setToolbar(e,o)):void 0}},{key:"watchDOM",value:function(e){var o=this,t=new MutationObserver(function(){return o.processVideoNodes()}),r={childList:!0,attributes:!1,characterData:!0,subtree:!0};return t.observe(e,r),this.observer=t}},{key:"processVideoNodes",value:function(){var e=this;return(0,_videoToolBarComponent.$$)("video,object,embed").map(function(o){if(!o.hasAttribute(_videoToolBarComponent.VIDEO_TOOLBAR_ID_ATTRIBUTE_NAME)){var t=e.handleNode(o);if(t)return t}}).filter(function(e){return e})}},{key:"registerEvents",value:function(){return(0,_utils.arrAdd)(registeredVideoWatchers,this),this}},{key:"findToolbar",value:function(e){return this.toolbars.find(e)}},{key:"watchYoutubeUrl",value:function(e){var o=this;/youtube\.com/.test(location.hostname)&&"/watch"==location.pathname&&!function(){var t=/v=(\w+)/.test(location.search)&&RegExp.$1,r=function i(){var r=/v=(\w+)/.test(location.search)&&RegExp.$1;t!==r&&(t=r,o.toolbars.slice().forEach(function(r){t?(r.disposeVideoList(!0),r.setState({closed:!1,hasAudio:!0,videoListOpened:!1,visible:!0}),(0,_utils.isFunc)(e)&&e()):o.removeToolbar(r)}),t&&o.processVideoNodes()),requestAnimationFrame(i)};r()}()}},{key:"removeToolbar",value:function(e){(0,_utils.arrRemove)(this.toolbars,e)&&(e.video&&e.video.removeAttribute(_videoToolBarComponent.VIDEO_TOOLBAR_ID_ATTRIBUTE_NAME),e.dispose())}},{key:"dispose",value:function(){this.observer&&this.observer.disconnect(),(0,_utils.arrRemove)(registeredVideoWatchers,this),this.toolbars.forEach(function(e){e.dispose()}),this.toolbars=[]}}]),o}(_EventEmitter2.EventEmitter);(0,_message.registerMsgHandler)(_flashRecord.MSG_EVENT_FLASH_RECORD_FEATURE_ENABLED,function(e){var o=registeredVideoWatchers.some(function(o){o.toolbars.forEach(function(o){o.flashRecordEnabledChange(e)})});o||(pendingRecordData[e.flashId]=e,registeredVideoWatchers.forEach(function(e){return e.processVideoNodes()}))}),(0,_message.registerMsgHandler)(_flashRecord.MSG_EVENT_FLASH_RECORD_STATE_CHANGED,function(e){var o=e.instance,t=e.state;return registeredVideoWatchers.forEach(function(e){var r=e.findToolbar(function(e){return e.flashRecordData&&e.flashRecordData.instance===o});r&&(t?r.startRecordTick():r.onClickEndRecord())})}),(0,_message.registerMsgHandler)(_videoToolBar.MSG_EVENT_VD_TOOLBAR_CONFIG,receiveConfig),(0,_message.registerMsgHandler)(_videoToolBar.MSG_EVENT_VD_TOOLBAR_POPUP_VISIBILITY_CHANGED,function(e){var o=!0,t=!1,r=void 0;try{for(var i,a=registeredVideoWatchers[Symbol.iterator]();!(o=(i=a.next()).done);o=!0){var n=i.value,s=!0,l=!1,d=void 0;try{for(var u,c=n.toolbars[Symbol.iterator]();!(s=(u=c.next()).done);s=!0){var h=u.value;if(h.videoTag==e.videoTag)return void h.setState({poppedOut:e.poppedOut,visible:!1})}}catch(v){l=!0,d=v}finally{try{!s&&c["return"]&&c["return"]()}finally{if(l)throw d}}}}catch(v){t=!0,r=v}finally{try{!o&&a["return"]&&a["return"]()}finally{if(t)throw r}}});var TOUCHED=!1;window.addEventListener("touchstart",function e(){TOUCHED=!0,window.removeEventListener("touchstart",e)});


},{"11":11,"14":14,"19":19,"2":2,"20":20,"23":23,"24":24}],8:[function(require,module,exports){
"use strict";function isMetaDisableVideoToolbar(){var e=(0,_dom.$)('meta[name="uc-config"]',document.head);if(e){var t=e.getAttribute("content");return/video-toolbar=(\w+)/.test(t)&&"false"===RegExp.$1}}function filterNodeSize(e){return e.clientWidth>=320&&e.clientHeight>=240}exports.VideoWatcherDelegate=void 0;var _dom=require(18),metaDisabled=isMetaDisableVideoToolbar(),VideoWatcherDelegate=exports.VideoWatcherDelegate=function(){function e(){require(2).classCallCheck(this,e)}return require(2).createClass(e,[{key:"shouldSetToolBarForFlash",value:function(e){return!metaDisabled&&filterNodeSize(e)}},{key:"shouldSetToolBarForVideo",value:function(e){return!metaDisabled&&filterNodeSize(e)}}]),e}();


},{"18":18,"2":2}],9:[function(require,module,exports){
"use strict";function findVideoCrawlURL(t){var e=t.url,n=t.video,r=void 0;return handlers.some(function(t){return r=t(e,n)}),r?r===!0?e:r:void 0}function findFlashDownloadURL(t,e){return/(4399\.com|seer\.61\.com)/.test(t)?e.src:void 0}function findFBVideoUrl(t){var e=(0,_dom.$$)('a[href^="/"]',t.parentElement).find(function(t){return/\/videos\/\d+\/?$/.test(t.getAttribute("href"))});if(e)return e.href;var n=findParentElement(t,function(t){return"article"==t.getAttribute("role")});return n&&(e=(0,_dom.$)("a[data-video-id]",n))?e.href:void 0}function findParentElement(t,e){for(var n=t.parentElement;n;){if(e(n))return n;n=n.parentElement}}function findParentWithId(t,e){return findParentElement(t,function(t){return t.id==e})instanceof HTMLElement}exports.findVideoCrawlURL=findVideoCrawlURL,exports.findFlashDownloadURL=findFlashDownloadURL;var _dom=require(18),handlers=[function(t,e){return/youtube\.com\/watch\?/.test(t)&&/main/.test(e.className)},function(t,e){return/www\.facebook\.com\/.*\/videos\/\d+/.test(t)&&e.hasAttribute("preload")},function(t,e){return/pornhub\.com.*viewkey=/.test(t)&&findParentWithId(e,"player")},function(t,e){return/www\.xvideos\.com/.test(t)&&findParentWithId(e,"html5video")},function(t,e){return/vimeo\.com/.test(t)&&e.hasAttribute("preload")},function(t,e){return/dailymotion\.com\/video\/\w+/.test(t)&&findParentWithId(e,"player")},function(t,e){return/redtube\.com\/\d+/.test(t)&&findParentWithId(e,"redtube_flv_player")},function(t,e){return/tube8\.com/.test(t)&&findParentWithId(e,"flvplayer")},function(t,e){return/youporn\.com\/watch/.test(t)&&findParentWithId(e,"videoContainer")},function(t,e){return/gaytube\.com\/media/.test(t)&&"gPlayer"==e.id},function(t,e){return/thumbzilla\.com\/video\//.test(t)&&findParentWithId(e,"player")},function(t,e){return/www\.facebook\.com/.test(t)&&findFBVideoUrl(e)},function(t,e){return/v\.youku\.com/.test(t)&&findParentWithId(e,"player")},function(t,e){return/pornhd\.com\/videos\/\d+\/\w+/.test(t)},function(t,e){return/www\.tudou\.com/.test(t)&&"tudouHomePlayer"==e.id},function(t,e){return/www\.le\.com\/ptv\//.test(t)&&findParentWithId(e,"fla_box")},function(t,e){return/www\.56\.com/.test(t)&&"play_player"==e.parentElement.id},function(t,e){return/www\.hotstar\.com/.test(t)&&-1==t.indexOf("/sports/")&&"HotstarPlayer"==e.id}];


},{"18":18}],10:[function(require,module,exports){
"use strict";function $m(e){var t=defaultLang[e];if(chrome&&chrome.i18n){var s=chrome.i18n.getMessage(e);return s||t}return t}function getMessage(e){return $m("video_toolbar_"+e)}function snapshotTip(e){return getMessage("tip_snapshot").replace("!",e)}exports.$m=$m,exports.getMessage=getMessage,exports.snapshotTip=snapshotTip;var defaultLang={};


},{}],11:[function(require,module,exports){
"use strict";function downloadDefaultVideoSrcAsync(e){var t=void 0,i="";if((0,_utils.isStr)(e)){t=e;var o=lastFileComponent(t);o&&(i=o.substring(o.lastIndexOf(".")))}else e&&e.src&&/^http/.test(e.src)&&(t=e.src,i="VIDEO"==e.tagName?"mp4":"swf");return t?(0,_message.sendMessageAsync)(_videoDownload.MSG_EVENT_VIDEO_DOWNLOAD_CHROME_DOWNLOAD,{filename:"UC-download"+i,url:t,href:window.location.href}):Promise.reject()}function downloadVideoFileAsync(e,t){var i=t.title,o=e.format,n=e.downloadPlugin,a=e.quality;return o&&(i=i+(a?"("+a+")":"")+"."+o),(0,_message.sendMessageAsync)(_videoDownload.MSG_EVENT_VIDEO_DOWNLOAD_CHROME_DOWNLOAD,{filename:i,url:e.link,href:window.location.href,downloadPlugin:n,quality:a,format:o})}function hideForAttribute(e,t,i){var o=i?"remove":"add";(0,_dom.$$)("[data-hide="+t+"]",e).forEach(function(e){return e.classList[o]("hide")})}function formatSeconds(e){var t=Math.floor(e/60),i=e%60;return(10>t?"0"+t:t)+":"+(10>i?"0"+i:i)}function guid(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+Date.now()}function inIFrame(){return window.parent!==window}function createTemplateElement(e){var t=document.createElement("div"),i=t.createShadowRoot();return i.innerHTML=e?(0,_videoToolbarComponentTemplate.i18nTemplate)():(0,_videoToolbarComponentTemplate.template)(),/huya/.test(location.hostname)||(t.className="uc-video-toolbar"),isCN()&&(0,_dom._$$)(".drop-effect",t).forEach(function(e){return e.classList.add("active")}),(0,_message.sendMessageAsync)(_videoToolBar.MSG_EVENT_VD_TOOLBAR_STYLE,{isI18n:e}).then(function(e){return(0,_dom._$)("style",t).innerHTML=e}),t}function isCN(){return"wowMetrics"in navigator?!navigator.wowMetrics.i18n:/^zh/.test(chrome&&chrome.i18n?chrome.i18n.getUILanguage():navigator.language)}function lastFileComponent(e){var t=e.lastIndexOf("?");return-1!=t&&(e=e.substring(0,t)),e.substring(e.lastIndexOf("/")+1)}exports.VideoToolbarComponent=exports.VIDEO_TOOLBAR_ID_ATTRIBUTE_NAME=exports.$=exports.$$=exports.Rect=void 0,exports.inIFrame=inIFrame,exports.isCN=isCN;var _dom=require(18),_domEvent=require(17),_utils=require(19),_Rect=require(15),_AsyncRender2=require(13),_videoToolbarComponentTemplate=require(12),_videoDownload=require(22),_videoToolBar=require(23),_message=require(24);exports.Rect=_Rect.Rect,exports.$$=_dom.$$,exports.$=_dom.$;var VIDEO_TOOLBAR_ID_ATTRIBUTE_NAME=exports.VIDEO_TOOLBAR_ID_ATTRIBUTE_NAME="uc-video-toolbar-id",EVENT_DEF={".item.snapshot":"onClickSnapshot",".item.download":"onClickDownload",".item.record":"onClickRecord",".item.popup":"onClickPopup",".item.close":"onClickClose",".end-record":"onClickEndRecord",".record-guide":"onClickCloseRecordGuide","menuitem.close":"onClickClose"},I18N_EVENT_DEF={".item.popup":"onClickPopup",".item.download-video":"onClickDownload",".item.download-audio":"onClickDownloadAudio","menuitem.close":"onClickClose"},VideoToolbarComponent=exports.VideoToolbarComponent=function(e){function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i=e.canRecord,o=e.canSnapshot,n=e.hasAudio,a=e.visible,s=void 0===a?!0:a,d=e.video,r=e.delegate;require(2).classCallCheck(this,t);var l=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this));return l.element=createTemplateElement(l.isI18n=!isCN()),l._videoId=guid(),l.data={},l._visiblitySetter=0,d&&(l.video=d),l.delegate=r||{},l.visible=s,l.delegateEvents(l.element.shadowRoot),l.requestDownloadURL(),l.setRenderState({canRecord:!!i,canSnapshot:!!o,hasAudio:n,closed:!1,defaultVideoTag:l.delegate.requestFileTag(!1),defaultAudioTag:l.delegate.requestFileTag(!0)}),l}return require(2).inherits(t,e),require(2).createClass(t,[{key:"eventsDisabled",get:function(){var e=this.renderState,t=e.startDownloading||e.lastCrawlFailed;return this.isI18n&&(t=t||e.isCrawling),t}},{key:"video",get:function(){return(0,_dom.$)("["+VIDEO_TOOLBAR_ID_ATTRIBUTE_NAME+"='"+this._videoId+"']")},set:function(e){var t=this,i=e.getAttribute(VIDEO_TOOLBAR_ID_ATTRIBUTE_NAME);if(i||this.video)throw Error("the target maybe assigned another toolbar");e.setAttribute(VIDEO_TOOLBAR_ID_ATTRIBUTE_NAME,this._videoId),this.addSafeEventHandler(e,"resize",function(){return t.layoutVideo()});var o=function(){return t.disposeVideoList(!0)},n="VIDEO"==e.tagName;this.addSafeEventHandler(e,n?"abort":"load",o),n&&this.addSafeEventHandler(e,"loadstart",o)}},{key:"videoTag",get:function(){return this._videoId}},{key:"visible",get:function(){return this.renderState.visible},set:function(e){if(this.renderState.visible!=e){var t={visible:!!e};t.visible||(t.videoListOpened=!1,t.showContextMenu=!1),this.setState(t),clearTimeout(this._visiblitySetter);var i=this.delegate;i&&i.onToolbarVisibleChanged&&i.onToolbarVisibleChanged(t.visible,this)}}}]),require(2).createClass(t,[{key:"requestDownloadURL",value:function(){var e="",t="";return this.delegate&&(e=this.delegate.requestCrawlURL(this)||"",e||(t=this.delegate.requestDownloadableURL(this))),this.setState({canDownload:!(!e&&!t),crawlURL:e,downloadableURL:t}),e}},{key:"setVisibilityAfterMilliseconds",value:function(e,t){var i=this;if(this._nextVisibility!==e){var o=function(){i.visible=e,i._nextVisibility=null};clearTimeout(this._visiblitySetter),this._nextVisibility=e,0==t?o():this._visiblitySetter=setTimeout(o,t)}}},{key:"onClickCloseRecordGuide",value:function(e){e.target.classList.contains("close")?this.setState({canShowRecordGuide:!1}):e.preventDefault()}},{key:"onClickClose",value:function(){this.renderState.recording?this.showWarningTextForInterval(_videoToolbarComponentTemplate.WARNING_TEXT_STOP_RECORD_BEFORE_CLOSE):this.setState({closed:!0,showContextMenu:!1})}},{key:"onClickPopup",value:function(e){this.renderState.recording&&(this.showWarningTextForInterval(_videoToolbarComponentTemplate.WARNING_TEXT_STOP_RECORD_BEFORE_POPUP),e.preventDefault())}},{key:"onClickSnapshot",value:function(e){this.renderState.poppedOut&&e.preventDefault()}},{key:"startRecordTick",value:function(){function e(){if(t.renderState.recording){var i=Date.now();t.onRecordingTick(i-o),setTimeout(e,1e3)}else t.onRecordingTick(0)}var t=this,i=this.renderState,o=void 0;this.setRenderState({canShowRecordGuide:!1}),i.recording||(o=Date.now(),this.setState({recording:!0}),e())}},{key:"onClickRecord",value:function(e){this.renderState.poppedOut&&e.preventDefault()}},{key:"onRecordingTick",value:function(e){var t=Math.round(e/1e3),i=this.element,o=(0,_dom._$)(".time-info .time",i),n=(0,_dom._$)(".time-info .circle",i);(0,_dom.toggleClass)(n,"transparent",t%2==0),o.innerHTML=formatSeconds(t)}},{key:"onClickEndRecord",value:function(){var e={recording:!1};this.renderState.warningText==_videoToolbarComponentTemplate.WARNING_TEXT_STOP_RECORD_BEFORE_CLOSE&&(e.warningText=""),this.setState(e),this.onRecordingTick(0)}},{key:"onClickDownloadAudio",value:function(e){var t=this,i=this.renderState,o=!this.shouldExpandDownloadList(e)&&this.isI18n;i.isCrawling||i.poppedOut||(this.videoListElement?this.toggleFileList(!0,o):i.crawlURL&&this.crawlURLAsync().then(function(){return t.toggleFileList(!0,o)},function(){return t.showCrawlFailed()}))}},{key:"shouldExpandDownloadList",value:function(e){var t=e.target;return t.classList.contains("expand-anchor")||t.parentElement.classList.contains("expand-anchor")}},{key:"toggleFileList",value:function(e,t){var i={};if(this.videoListElement?(this.renderState.videoListOpened?i.videoListOpened=e&&!this.renderState.showDownloadAudio||!e&&this.renderState.showDownloadAudio:i.videoListOpened=!0,i.showDownloadAudio=!!e):i.videoListOpened=!1,t){var o=e?this.renderState.defaultAudioTag:this.renderState.defaultVideoTag,n='.download-item[data-itag="'+o+'"]',a=(0,_dom.$)(n,this.videoListElement);a||(a=(0,_dom.$)("."+(e?"audios":"videos")+" .download-item",this.videoListElement)),a.click(),i.videoListOpened=!1}this.setRenderState(i)}},{key:"onClickDownload",value:function(e){var t=this,i=this.renderState,o=!this.shouldExpandDownloadList(e)&&this.isI18n;i.isCrawling||i.poppedOut||(this.videoListElement?this.toggleFileList(!1,o):i.downloadableURL?this.beginDownloadAsync(i.downloadableURL):i.crawlURL&&this.crawlURLAsync().then(function(){return t.toggleFileList(!1,o)},function(){return t.showCrawlFailed()}))}},{key:"showCrawlFailed",value:function(){var e=this;this.isI18n&&!this.renderState.lastCrawlFailed&&(this.setRenderState({lastCrawlFailed:!0,isCrawling:!1}),setTimeout(function(){return e.setRenderState({lastCrawlFailed:!1})},3e3))}},{key:"crawlURLAsync",value:function(){var e=this,t=this.renderState,i=t.crawlURL;return!t.isCrawling&&i?(this.setState({isCrawling:!0}),(0,_message.sendMessageAsync)(_videoDownload.MSG_EVENT_VIDEO_DOWNLOAD_CRAWL_URL,{url:i}).then(function(t){e.addVideoList(t),e.setState({isCrawling:!1}),e.visible=!0},function(t){throw e.setState({isCrawling:!1}),t})):Promise.reject()}},{key:"disposeVideoList",value:function(e){this.openVideoList(!1),this.setState({isCrawling:!1,crawlURL:""}),this.videoListElement=null,e&&this.requestDownloadURL()}},{key:"addVideoList",value:function(e){var t=this,i=(0,_dom._$)(".download-list-anchor",this.element),o="",n=e.files;"youtube"==e.label?o=_videoToolbarComponentTemplate.FOOTER_POWER_BY_VIDIMATE:/flvcd/.test(e.label)&&(o=_videoToolbarComponentTemplate.FOOTER_POWER_BY_FLVCD),this.isI18n?!function(){var a=[],s=[];e.files.forEach(function(e){return(e.isAudio?s:a).push(e)}),i.innerHTML=(0,_videoToolbarComponentTemplate.i18nFileListTemplate)(a,s,{footer:o,files:n}),t.setRenderState({hasAudio:s.length>0})}():i.innerHTML=(0,_videoToolbarComponentTemplate.fileListTemplate)(n,{fileIcon:/youtube/.test(location.href),footer:o});var a=this.videoListElement=(0,_dom.$)(".uc-nexus-video-list",i);(0,_domEvent.delegateEvent)(a,".download-item[data-seq]","click",function(i,o){var n=o.getAttribute("data-seq"),a=e.files[n];a&&t.beginDownloadAsync(a,e),t.openVideoList(!1)})}},{key:"beginDownloadAsync",value:function(e,t){var i=this,o=void 0;(0,_utils.isStr)(e)?o=downloadDefaultVideoSrcAsync(e):(this.delegate.willStartDownloadVideoFile&&this.delegate.willStartDownloadVideoFile(e,this),o=downloadVideoFileAsync(e,t)),this.setRenderState({startDownloading:!0});var n=function(e){i.setRenderState({startDownloading:!1})};return o.then(n,n)}},{key:"openVideoList",value:function(e){this.setState({videoListOpened:e})}},{key:"showWarningTextForInterval",value:function(e){var t=this,i=arguments.length<=1||void 0===arguments[1]?3e3:arguments[1];this.renderState.warningText!=e&&(this.setState({warningText:e}),clearTimeout(this._warningTextTimeout),i&&(this._warningTextTimeout=setTimeout(function(){return t.setState({warningText:""})},i)))}},{key:"flashRecordEnabledChange",value:function(e){if(e.flashId===this.video.id){var t=2==e.version?"v2":"v1";return this.setState({canRecord:e.enable,flashRecordVersion:t,canShowRecordGuide:e.canShowRecordGuide,flashRecordMediaTypes:e.mediaTypes||[]}),e.enable||this.onClickEndRecord(),this.flashRecordData=new Object(e),!0}}},{key:"triggerEvent",value:function(e){var t=EVENT_DEF[e],i=void 0;t&&(i=(0,_dom._$)(t,this.element))&&i.click()}},{key:"delegateEvents",value:function(e){var t=this,i=this.isI18n?I18N_EVENT_DEF:EVENT_DEF,o=this,n=this.delegate;(0,_utils.forEach)(i,function(t,i){o.addSafeEventHandler((0,_dom.$)(i,e),"click",function(e){if(!o.eventsDisabled){var i=o[t];i&&i.call(o,e),!e.defaultPrevented&&n&&(i=n[t],i&&i.call(n,e,o))}})}),(0,_dom.$)(".list",e).addEventListener("contextmenu",function(e){if(e.preventDefault(),e.stopPropagation(),!t.eventsDisabled){t.setRenderState({showContextMenu:!0,videoListOpened:!1});var i=t.element.getBoundingClientRect();(0,_dom._$)("menu",t.element).style.left=e.clientX-i.left+"px"}}),e.addEventListener("click",function(e){0==e.button&&setTimeout(function(){return t.setRenderState({showContextMenu:!1})},0)})}},{key:"clientRectWithVideo",value:function(){var e=this.video.getBoundingClientRect();if(!this.renderState.visible)return _Rect.Rect.fromClientBound(e);var t=this.toolbarBound;return _Rect.Rect.fromClientBound(Math.min(e.left,t.left),Math.min(e.top,t.top),Math.max(e.right,t.right),Math.max(e.bottom,t.bottom))}},{key:"clientRect",value:function(){var e=this.toolbarBound;return this.renderState.videoListOpened&&this.videoListElement?_Rect.Rect.fromUnionBounds(e,this.videoListElement.getBoundingClientRect()):_Rect.Rect.fromClientBound(this.toolbarBound)}},{key:"shouldLayoutVideo",value:function(e){if(e&&inIFrame())return!0;var t=this.renderState.lastVideoRect,i=this.video;return t&&i?t.equals(_Rect.Rect.fromClientBound(i.getBoundingClientRect())):!1}},{key:"layoutVideo",value:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.layoutVideoList,i=this.element;i.style.left="",i.style.right="";var o=this.video,n=this.toolbarBound,a=this.videoListElement,s=document.documentElement.clientWidth,d=o.getBoundingClientRect(),r=inIFrame(),l=void 0;r?(i.style.right="",i.style.left=d.right-n.width+"px"):d.right-n.width<=0?(i.style.right="",i.style.left=d.right-n.width+i.parentElement.scrollLeft+"px"):(i.style.right=Math.max(s-d.right-i.parentElement.scrollLeft,0)+"px",i.style.left=""),l=r?d.top+"px":d.top>=0&&d.top<n.height?0:d.top-n.height+i.parentElement.scrollTop+"px",i.style.top=l,this.renderState.lastVideoRect=_Rect.Rect.fromClientBound(d),a&&t&&!this.isI18n&&(a.parentElement.style.marginLeft=+(this.element.clientWidth-a.clientWidth)+"px")}},{key:"setSnapshotItemTitle",value:function(e){this.isI18n||(0,_dom._$)(".item.snapshot",this.element).setAttribute("title",e?(0,_videoToolbarComponentTemplate.snapshotTip)(e):"")}},{key:"addSafeEventHandler",value:function(e,t,i){var o=this;e.addEventListener(t,function n(){o._disposed?e.removeEventListener(t,n):i.apply(this,arguments)})}},{key:"syncRenderState",value:function(e){var t=this.element,i=this.videoListElement,o=t.shadowRoot,n=e.recording;if(hideForAttribute(o,"download",e.canDownload),hideForAttribute(o,"list",e.visible),(0,_dom.toggleClass)(t,"show-menu",e.showContextMenu),(0,_dom.toggleClass)((0,_dom.$)("menu",o),"hide",!e.showContextMenu||!e.visible),t.style.overflow=e.visible&&(e.showContextMenu||e.videoListOpened)?"visible":"",i&&((0,_dom.toggleClass)(i,"open",e.videoListOpened),(0,_dom.toggleClass)((0,_dom.$)(".download-list-anchor",o),"hide",e.showContextMenu)),this.isI18n){var a=(0,_dom.$)(".list.i18n",o),s=e.isCrawling||e.startDownloading;(0,_dom.toggleClass)(a,"info",s||e.lastCrawlFailed),(0,_dom.toggleClass)(a,"loading",s),(0,_dom.toggleClass)(a,"load-fail",e.lastCrawlFailed),hideForAttribute(o,"audio",e.hasAudio),hideForAttribute(o,"download-video",e.showDownloadAudio),hideForAttribute(o,"download-audio",!e.showDownloadAudio);var d=(0,_dom.$)(".expand-anchor.active",o);if(d&&(0,_dom.toggleClass)(d,"active",!1),i&&(d=(0,_dom.$)(".auto.active",i),d&&(0,_dom.toggleClass)(d,"active",!1),d=(0,_dom.$)('.download-item[data-itag="'+(e.showDownloadAudio?e.defaultAudioTag:e.defaultVideoTag)+'"] .auto',i),d||(d=(0,_dom.$)("."+(e.showDownloadAudio?"audios":"videos")+" .download-item .auto",i)),d&&(0,_dom.toggleClass)(d,"active",!0),e.videoListOpened&&e.visible)){var r=(0,_dom.$)(".expand-anchor."+(e.showDownloadAudio?"audio":"video"),o);(0,_dom.toggleClass)(r,"active",!0)}}else{if(hideForAttribute(o,"record",e.canRecord),hideForAttribute(o,"snapshot",e.canSnapshot),hideForAttribute(o,"recording",n),(0,_dom.toggleClass)((0,_dom.$)(".icon-download",o),"loading",e.isCrawling),e.canRecord&&((0,_dom.toggleClass)((0,_dom.$)(".recording-detail",o),"active",n),(0,_dom.toggleClass)((0,_dom.$)(".record.drop-effect",o),"hide",n)),(0,_dom.toggleClass)((0,_dom.$)(".item.popup",o),"disabled",n),(0,_dom.toggleClass)(t,"show-record-guide",!e.recording&&!e.videoListOpened&&e.canRecord&&e.canShowRecordGuide&&e.visible&&!e.warningText),(0,_dom.toggleClass)(t,"warning",e.warningText),e.flashRecordVersion){var l=(0,_dom.$)(".record.item",o);l.dataset.version=e.flashRecordVersion,(0,_dom.$$)(".media-type",l).forEach(function(t){var i=-1==e.flashRecordMediaTypes.indexOf(t.dataset.media);t.dataset.title="t"+e.flashRecordMediaTypes.length,(0,_dom.toggleClass)(t,"hide",i);var o=t.nextElementSibling;o&&o.classList.contains("line")&&(0,_dom.toggleClass)(o,"hide",i)})}(0,_dom.$)(".warning-bar .warning-text",o).innerHTML=e.warningText}var u=!(e.closed||e.poppedOut);t.style.display=u?"":"none",this.video&&(u||e.visible)&&!t.parentNode&&document.body.appendChild(t),this.video&&u&&this.layoutVideo({layoutVideoList:e.videoListOpened})}},{key:"setState",value:function(e){return this.setRenderState(e)}},{key:"dispose",value:function(){var e=this.video,t=this.element;e&&e.removeAttribute(VIDEO_TOOLBAR_ID_ATTRIBUTE_NAME),t&&(0,_dom.removeNodeFromParent)(t),this._videoId=this.element=this.videoListElement=this.delegate=null,this._disposed=!0}},{key:"toolbarBound",get:function(){var e=(0,_dom._$)(".list",this.element);return e&&e.getBoundingClientRect()}}]),t}(_AsyncRender2.AsyncRender);


},{"12":12,"13":13,"15":15,"17":17,"18":18,"19":19,"2":2,"22":22,"23":23,"24":24}],12:[function(require,module,exports){
"use strict";function i18nTemplate(){return'<style></style>\n  <ul class="list i18n" data-hide="list">\n    <li class="info item" data-hide="info-loading">\n        <div class="loading-tip"></div>\n        <div class="text tip-loading">'+(0,_resource.getMessage)("i18n_loading")+'</div>\n    </li>\n    <li class="info item" data-hide="info-fail">\n        <div class="text tip-failed">'+(0,_resource.getMessage)("i18n_load_fail")+'</div>\n    </li>\n    <li class="logo item">\n        <div class="icon icon-logo"></div>\n    </li>\n    <li class="item popup interactive" loading-hide>\n        <div class="icon">'+ICON_POPUP+'</div>\n    </li>\n    <li class="item download-video large" data-hide="download" loading-hide>\n        <div class="icon interactive">'+ICON_VIDEO+'</div>\n        <div class="expand-anchor interactive video">'+ICON_EXPAND_ANCHOR+'</div>\n    </li>\n    <li class="item download-audio large" data-hide="audio" loading-hide>\n        <div class="icon interactive">'+ICON_AUDIO+'</div>\n        <div class="expand-anchor interactive audio">'+ICON_EXPAND_ANCHOR+'</div>\n    </li>\n  </ul>\n   <div class="download-list-anchor"></div>\n  <menu class="hide">\n   <menuitem class="close">'+(0,_resource.getMessage)("i18n_menu_close")+"</menuitem>\n  </menu>\n  "}function template(){return'<style></style>\n            <ul class="list" data-hide="list">\n            <li class="logo item">\n                <div class="icon icon-logo"></div>\n            </li>\n            <li class="record item drop-effect" data-version="v2" data-hide="record">\n                <div class="content v1">'+(0,_resource.getMessage)("title_record")+'</div>\n                <div class="content v2">\n                    <div class="media-type" data-media="'+_flashRecord.FLASH_RECORD_V2_MEDIA_TYPE_HD+'" title="'+(0,_resource.getMessage)("tip_record_HD")+'">\n                        '+(0,_resource.getMessage)("title_record_HD")+'\n                    </div>\n                    <div class="line" title=" "></div>\n                    <div class="media-type" data-title="t2" data-media="'+_flashRecord.FLASH_RECORD_V2_MEDIA_TYPE_NORMAL+'">\n                        <span class="t1" title="'+(0,_resource.getMessage)("tip_record_normal1")+'">'+(0,_resource.getMessage)("title_record_normal1")+'</span>\n                        <span class="t2" title="'+(0,_resource.getMessage)("tip_record_normal2")+'" >'+(0,_resource.getMessage)("title_record_normal2")+'</span>\n                    </div> \n                </div>\n                <div class="icon icon-record">\n                    '+ICON_RECORD+'\n                </div>\n            </li>\n            <li class="item recording-detail" data-hide="recording">\n             <div class="animation-container end-record">\n                <div class="icon icon-record-end inline">\n                 '+ICON_END_RECORD+'\n                </div>\n                <div class="recording-info inline">\n                  <div class="content">'+(0,_resource.getMessage)("status_recording")+'</div>\n                  <div class="time-info">\n                     <div class="circle"></div>\n                     <div class="time content">00:00</div>\n                  </div>\n                </div>\n              </div>\n            </li>\n            <li class="popup item drop-effect" title="'+(0,_resource.getMessage)("tip_popup")+'">\n                <div class="content">'+(0,_resource.getMessage)("title_popup")+'</div>\n                <div class="icon icon-popup">\n                    '+ICON_POPUP+'\n                </div>\n            </li>\n            <li class="snapshot item drop-effect" data-hide="snapshot" title="'+(0,_resource.getMessage)("tip_snapshot")+'">\n                <div class="content">'+(0,_resource.getMessage)("title_snapshot")+'</div>\n                <div class="icon icon-snapshot">\n                    '+ICON_SNAPSHOT+'\n                </div>\n            </li>\n            <li class="item drop-effect download" data-hide="download" title="'+(0,_resource.getMessage)("tip_download")+'">\n                <div class="content">'+(0,_resource.getMessage)("title_download")+'</div>\n                <div class="icon-download icon">\n                  '+ICON_DOWNLOAD+'\n                </div>\n            </li>\n            <li class="item close">\n               <div class="icon-close icon">'+ICON_CLOSE+'</div>\n            </li>\n            </ul>\n            <menu class="hide">\n                <menuitem class="close">'+(0,_resource.getMessage)("i18n_menu_close")+'</menuitem>\n            </menu>\n            <div class="download-list-anchor"></div>\n            <div class="warning-bar">\n                <span class="icon-warning">'+ICON_WARNING+'</span>\n                <span class="warning-text"></span>\n            </div>\n            <div class="record-guide">\n                <span class="close ur" data-type="temp"></span>\n                <div class="close btm" data-type="week"></div>\n            </div>\n           '}function i18nFileListTemplate(e,i,s){var n=s.footer,a=s.files;return'<div class="msg">'+(0,_resource.$m)("downloadBtn")+'</div>\n            <div class="uc-nexus-video-list">\n                 <div class="videos" data-hide="download-audio" >'+$each(e,function(e){return'\n                      <div class="download-item" data-itag="'+e.itag+'" data-seq="'+a.indexOf(e)+'">\n                          <div class="file-name">'+getFileDisplayName(e)+'</div>\n                          <div class="file-size">'+getFileDisplaySize(e)+'</div>\n                          <span class="auto">'+(0,_resource.getMessage)("download_auto")+"</span>\n                      </div>"})+'\n                 </div>       \n            <div class="audios" data-hide="download-video">'+$each(i,function(e){return'\n                 <div class="download-item" data-itag="'+e.itag+'" data-seq="'+a.indexOf(e)+'">\n                     <div class="file-name">'+getFileDisplayName(e)+'</div>\n                     <span class="auto">'+(0,_resource.getMessage)("download_auto")+"</span>\n                 </div>"})+'\n                 <div class="mp3-info">\n                    <div class="top-line"></div>\n                    <div class="title">'+(0,_resource.getMessage)("choose_mp3")+'</div>\n                    <div class="content">'+(0,_resource.$m)("convert_mp3_tip")+"</div>\n                 </div>\n            </div>\n    "+(n||"")+"\n  </div>\n "}function fileListTemplate(e,i){var s=i.fileIcon,n=i.footer;return'<div class="arrow"></div>\n<div class="uc-nexus-video-list">'+$each(e,function(e,i){return'\n            <p class="download-item" data-seq="'+i+'">\n                '+getFileDisplayName(e)+'\n                <span class="'+getIconClass(e,s)+' video-file-icon"></span>\n            </p>\n  '})+"\n"+(n||"")+"\n</div>\n\n"}function $each(e,i){return e.map(i).join("")}function getFileDisplaySize(e){return e.width&&e.height?e.width+"x"+e.height:""}function getFileDisplayName(e){var i=e.format;return e.title||(e.quality||"")+(i?"("+i+")":"")}function getIconClass(e,i){if(i){if(!e.acodec)return"icon-mute";if(!e.vcodec)return"icon-music"}return"hide"}exports.WARNING_TEXT_STOP_RECORD_BEFORE_POPUP=exports.WARNING_TEXT_STOP_RECORD_BEFORE_CLOSE=exports.FOOTER_POWER_BY_FLVCD=exports.FOOTER_POWER_BY_VIDIMATE=exports.snapshotTip=void 0;var _resource=require(10);Object.defineProperty(exports,"snapshotTip",{enumerable:!0,get:function(){return _resource.snapshotTip}}),exports.i18nTemplate=i18nTemplate,exports.template=template,exports.i18nFileListTemplate=i18nFileListTemplate,exports.fileListTemplate=fileListTemplate;var _flashRecord=require(20),FOOTER_POWER_BY_VIDIMATE=exports.FOOTER_POWER_BY_VIDIMATE='\n<p class="support">'+(0,_resource.getMessage)("powerBy")+' \n    <a href="http://www.vidmate.mobi/?from=UC_PC" target="_blank">Vidmate</a>\n</p>',FOOTER_POWER_BY_FLVCD=exports.FOOTER_POWER_BY_FLVCD='\n<p class="support">'+(0,_resource.getMessage)("powerBy")+' \n    <a href="http://www.flvcd.com/index.htm?from=UC_PC" target="_blank">FLVCD</a>\n</p>\n',WARNING_TEXT_STOP_RECORD_BEFORE_CLOSE=exports.WARNING_TEXT_STOP_RECORD_BEFORE_CLOSE=(0,_resource.getMessage)("warning_stop_record_before_close"),WARNING_TEXT_STOP_RECORD_BEFORE_POPUP=exports.WARNING_TEXT_STOP_RECORD_BEFORE_POPUP=(0,_resource.getMessage)("warning_stop_record_before_popup"),ICON_EXPAND_ANCHOR='<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="866"><path d="M315.017 364.317h399.415v79.884h-399.415v-79.884zM394.895 444.2h239.649v79.884h-239.649v-79.884zM474.782 524.084h79.884v79.884h-79.884v-79.884z" p-id="867"></path></svg>',ICON_WARNING='<svg class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1221"><path d="M1022.508617 814.957714C1021.923474 820.077714 1021.265189 824.978286 1019.50976 829.878857 1018.339474 833.024 1016.657189 835.803429 1015.048046 838.802286 1012.268617 844.068571 1009.26976 848.969143 1005.100617 853.504 1002.540617 856.283429 999.468617 858.404571 996.542903 860.818286 993.470903 863.232 991.203474 866.377143 987.619474 868.352 986.22976 869.156571 984.547474 869.156571 983.084617 869.814857 979.281189 871.716571 975.185189 872.594286 971.016046 873.764571 965.676617 875.300571 960.483474 876.690286 955.070903 876.982857 953.827474 877.056 952.730331 877.714286 951.486903 877.714286L73.772617 877.714286C72.456046 877.714286 71.432046 877.056 70.115474 876.982857 64.556617 876.690286 59.217189 875.227429 53.731474 873.691429 49.78176 872.521143 45.905189 871.716571 42.321189 869.961143 40.712046 869.229714 39.02976 869.229714 37.49376 868.352 33.763474 866.304 31.422903 863.012571 28.204617 860.452571 25.498331 858.185143 22.64576 856.283429 20.305189 853.650286 15.98976 849.042286 12.91776 843.995429 10.065189 838.582857 11.089189 840.484571 0.62976 824.905143 0.62976 804.571429 0.62976 802.816 1.507474 801.353143 1.65376 799.670857-1.491383 828.342857 0.264046 775.826286 21.329189 753.956571L448.776046 35.986286C448.922331 35.693714 449.288046 35.547429 449.434331 35.328 453.384046 28.891429 458.577189 23.552 464.648046 18.578286 466.54976 16.969143 468.158903 15.286857 470.13376 13.897143 471.816046 12.8 472.766903 11.117714 474.595474 10.093714 478.252617 8.045714 482.202331 7.753143 486.00576 6.363429 489.736046 4.973714 493.320046 3.510857 497.196617 2.779429 502.097189 1.828571 506.778331 1.755429 511.60576 1.755429 516.506331 1.755429 521.114331 1.828571 525.94176 2.706286 530.110903 3.584 533.841189 5.12 537.790903 6.582857 541.374903 7.899429 545.105189 8.192 548.542903 10.093714 550.152046 10.971429 551.02976 12.580571 552.56576 13.531429 555.345189 15.433143 557.612617 17.773714 560.099474 19.968 565.073189 24.356571 569.534903 28.745143 572.972617 34.084571 573.484617 34.816 574.289189 35.254857 574.728046 35.986286L1003.272046 752.859429C1014.38976 764.050286 1020.753189 779.264 1022.874331 795.794286 1023.09376 797.110857 1023.532617 798.354286 1023.60576 799.670857 1023.752046 801.353143 1024.62976 802.816 1024.62976 804.571429 1024.62976 808.228571 1023.09376 811.446857 1022.508617 814.957714ZM585.772617 292.571429C585.772617 252.196571 553.004617 219.428571 512.62976 219.428571 472.254903 219.428571 439.486903 252.196571 439.486903 292.571429L439.486903 512C439.486903 552.374857 472.254903 585.142857 512.62976 585.142857 553.004617 585.142857 585.772617 552.374857 585.772617 512L585.772617 292.571429ZM512.62976 658.285714C472.254903 658.285714 439.486903 691.053714 439.486903 731.428571 439.486903 771.803429 472.254903 804.571429 512.62976 804.571429 553.004617 804.571429 585.772617 771.803429 585.772617 731.428571 585.772617 691.053714 553.004617 658.285714 512.62976 658.285714Z" p-id="1222"></path></svg>',ICON_CLOSE='<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1546"><path d="M580.266667 580.266667h-34.133334v-34.133334h34.133334v34.133334z m34.133333 34.133333h-34.133333v-34.133333h34.133333v34.133333z m34.133333 34.133333h-34.133333v-34.133333h34.133333v34.133333z m34.133334 34.133334h-34.133334v-34.133334h34.133334v34.133334z m34.133333 34.133333h-34.133333v-34.133333h34.133333v34.133333z m-238.933333-170.666667v-68.266666h68.266666v68.266666h-68.266666z m-34.133334 34.133334v-34.133334h34.133334v34.133334h-34.133334z m-34.133333 34.133333v-34.133333h34.133333v34.133333h-34.133333z m-34.133333 34.133333v-34.133333h34.133333v34.133333h-34.133333z m-34.133334 34.133334v-34.133334h34.133334v34.133334h-34.133334z m-34.133333 34.133333v-34.133333h34.133333v34.133333H307.2z m136.533333-273.066667h34.133334v34.133334h-34.133334v-34.133334z m-34.133333-34.133333h34.133333v34.133333h-34.133333v-34.133333z m-34.133333-34.133333h34.133333v34.133333h-34.133333v-34.133333z m-34.133334-34.133334h34.133334v34.133334h-34.133334v-34.133334zM307.2 307.2h34.133333v34.133333H307.2V307.2z m273.066667 136.533333v34.133334h-34.133334v-34.133334h34.133334z m34.133333-34.133333v34.133333h-34.133333v-34.133333h34.133333z m34.133333-34.133333v34.133333h-34.133333v-34.133333h34.133333z m34.133334-34.133334v34.133334h-34.133334v-34.133334h34.133334z m34.133333-34.133333v34.133333h-34.133333V307.2h34.133333z" p-id="1547"></path></svg>',ICON_DOWNLOAD='<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1459"><path d="M546.133333 707.106133h-34.133333L238.523733 433.493333l24.302934-24.302933 249.173333 249.173333V204.8h34.133333v453.4272l249.173334-249.173333 24.302933 24.439466zM819.2 819.2H238.933333v-34.133333h580.266667v34.133333z" p-id="1460"></path></svg>',ICON_END_RECORD='<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1488"><path d="M716.8 648.533333v102.4a34.133333 34.133333 0 0 1-34.133333 34.133334H170.666667a34.133333 34.133333 0 0 1-34.133334-34.133334V273.066667a34.133333 34.133333 0 0 1 34.133334-34.133334h512a34.133333 34.133333 0 0 1 34.133333 34.133334v102.4l170.666667-102.4v477.866666zM682.666667 273.066667H170.666667v477.866666h512V273.066667z m170.666666 68.266666l-136.533333 68.266667v204.8l136.533333 68.266667V341.333333z m-477.866666 307.2h-34.133334v-273.066666h34.133334v273.066666z m136.533333 0h-34.133333v-273.066666h34.133333v273.066666z" p-id="1489"></path></svg>',ICON_RECORD='<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1517"><path d="M716.8 648.533333v102.4a34.133333 34.133333 0 0 1-34.133333 34.133334H170.666667a34.133333 34.133333 0 0 1-34.133334-34.133334V273.066667a34.133333 34.133333 0 0 1 34.133334-34.133334h512a34.133333 34.133333 0 0 1 34.133333 34.133334v102.4l170.666667-102.4v477.866666zM682.666667 273.066667H170.666667v477.866666h512V273.066667z m170.666666 68.266666l-136.533333 68.266667v204.8l136.533333 68.266667V341.333333z m-512 307.2v-273.066666l204.8 136.533333z" p-id="1518"></path></svg>',ICON_SNAPSHOT='<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1604"><path d="M785.066667 819.2H238.933333a68.266667 68.266667 0 0 1-68.266666-68.266667V273.066667a68.266667 68.266667 0 0 1 68.266666-68.266667h546.133334a68.266667 68.266667 0 0 1 68.266666 68.266667v477.866666a68.266667 68.266667 0 0 1-68.266666 68.266667z m34.133333-580.266667H204.8v546.133334h614.4V238.933333zM307.2 341.333333a34.133333 34.133333 0 1 1-34.133333 34.133334 34.133333 34.133333 0 0 1 34.133333-34.133334z m273.066667 0a170.666667 170.666667 0 1 1-170.666667 170.666667 170.666667 170.666667 0 0 1 170.666667-170.666667z m0 307.2a136.533333 136.533333 0 1 0-136.533334-136.533333 136.533333 136.533333 0 0 0 136.533334 136.533333z" p-id="1605"></path></svg>',ICON_VIDEO='<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1240"><path d="M802.133333 887.466667a153.6 153.6 0 1 1 153.6-153.6 153.6 153.6 0 0 1-153.6 153.6z m85.333334-170.666667h-34.133334v34.133333h-34.133333v-102.4h-34.133333v102.4h-34.133334v-34.133333h-34.133333v34.133333h34.133333v34.133334h34.133334v34.133333h34.133333v-34.133333h34.133333v-34.133334h34.133334v-34.133333zM409.6 341.333333l238.933333 170.666667-238.933333 170.666667V341.333333z m375.466667-102.4H238.933333v546.133334h341.333334v34.133333H273.066667a68.266667 68.266667 0 0 1-68.266667-68.266667V273.066667a68.266667 68.266667 0 0 1 68.266667-68.266667h477.866666a68.266667 68.266667 0 0 1 68.266667 68.266667v238.933333h-34.133333V238.933333z" p-id="1241"></path></svg>',ICON_AUDIO='<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1269"><path d="M802.133333 887.466667a153.6 153.6 0 1 1 153.6-153.6 153.6 153.6 0 0 1-153.6 153.6z m85.333334-170.666667h-34.133334v34.133333h-34.133333v-102.4h-34.133333v102.4h-34.133334v-34.133333h-34.133333v34.133333h34.133333v34.133334h34.133334v34.133333h34.133333v-34.133333h34.133333v-34.133334h34.133334v-34.133333zM785.066667 238.933333H238.933333v546.133334h341.333334v34.133333H273.066667a68.266667 68.266667 0 0 1-68.266667-68.266667V273.066667a68.266667 68.266667 0 0 1 68.266667-68.266667h477.866666a68.266667 68.266667 0 0 1 68.266667 68.266667v238.933333h-34.133333V238.933333z m-238.933334 102.4h102.4v68.266667h-102.4v204.8a68.266667 68.266667 0 1 1-68.266666-68.266667 67.584 67.584 0 0 1 34.133333 9.454934V341.333333h34.133333z" p-id="1270"></path></svg>',ICON_POPUP='<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1298"><path d="M750.933333 819.2H273.066667a68.266667 68.266667 0 0 1-68.266667-68.266667V273.066667a68.266667 68.266667 0 0 1 68.266667-68.266667h477.866666a68.266667 68.266667 0 0 1 68.266667 68.266667v477.866666a68.266667 68.266667 0 0 1-68.266667 68.266667zM238.933333 785.066667h204.8v-204.8H238.933333v204.8zM785.066667 238.933333H238.933333v307.2h170.666667a68.266667 68.266667 0 0 1 68.266667 68.266667v170.666667h307.2V238.933333z" p-id="1299"></path></svg>';


},{"10":10,"20":20}],13:[function(require,module,exports){
"use strict";var AsyncRender=exports.AsyncRender=function(){function e(t){require(2).classCallCheck(this,e),this.renderState=Object.assign({},t),this.__lasyRenderState={},this.needSync()}return require(2).createClass(e,[{key:"syncRenderState",value:function(e){}},{key:"setRenderState",value:function(e){var t=void 0,n=this.renderState;e&&Object.getOwnPropertyNames(e).forEach(function(s){var r=e[s];r!==n[s]&&(n[s]=r,t=!0)}),t&&this.needSync()}},{key:"shouldUpdate",value:function(e,t){return!0}},{key:"needSync",value:function(){var e=this;this._syncDispatched||(this._syncDispatched=!0,requestAnimationFrame(function(){var t=e.renderState;e.shouldUpdate(t,e.__lastRenderState)&&e.syncRenderState(t),e.__lastRenderState=e.renderState,e._syncDispatched=!1}))}}]),e}();


},{"2":2}],14:[function(require,module,exports){
"use strict";function addEventListener(e,t,n,r){if("string"==typeof t&&t&&(0,_utils.isFunc)(n)){var i,s;return e.hasOwnProperty("$$callbacks")||(e.$$callbacks={}),i=e.$$callbacks,(s=i[t])||(s=i[t]=[]),arrAdd(s,r?warpOnceFunc(n):n)}return!1}function arrAdd(e,t,n){return-1==e.indexOf(t)?(e[n?"unshift":"push"](t),!0):void 0}function emitEvent(e,t,n,r){var i,s;return e.hasOwnProperty("$$callbacks")&&(s=(i=e.$$callbacks)[t])?(n?n instanceof Array||(n=[n]):n=[],void 0===r&&(r=e),i[t]=s.reduce(function(e,t){return(0,_utils.isFunc)(t)&&-1!==t.apply(r,n)&&e.push(t),e},[])):!1}function removeEventListener(e,t,n){var r,i,s;return void 0===t?e.$$callbacks={}:(r=e.$$callbacks)&&(i=r[t])&&i&&(n?(s=i.indexOf(n))>-1&&(i[s]=null):r[t]=[]),e}function warpOnceFunc(e){return function(){return e.apply(this,arguments),-1}}exports.EventEmitter=void 0,exports.addEventListener=addEventListener,exports.emitEvent=emitEvent,exports.removeEventListener=removeEventListener;var _utils=require(19),EventEmitter=exports.EventEmitter=function(){function e(){require(2).classCallCheck(this,e)}return require(2).createClass(e,[{key:"on",value:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];return addEventListener(this,e,t,n),this}},{key:"once",value:function(e,t){return this.on(e,t,!0)}},{key:"off",value:function(e,t){return removeEventListener(this,e,t),this}},{key:"emit",value:function(e,t,n){return emitEvent(this,e,t,n),this}}]),e}();


},{"19":19,"2":2}],15:[function(require,module,exports){
"use strict";function rectContains(t,e){var n=e.w||0,i=e.h||0,r=e.x,s=r+n,o=e.y,h=o+i;return t.left<r&&t.right>s&&t.top<o&&t.bottom>h}function intersectRect(t,e){return!(e.left>t.right||e.right<t.left||e.top>t.bottom||e.bottom<t.top)}exports.rectContains=rectContains;var Rect=exports.Rect=function(){function t(e,n,i,r){return require(2).classCallCheck(this,t),e instanceof t?t.fromClientBound(e):(this.x=e,this.y=n,this.w=i,void(this.h=r))}return require(2).createClass(t,[{key:"height",get:function(){return this.h},set:function(t){this.h=+t}},{key:"width",get:function(){return this.w},set:function(t){this.w=+t}},{key:"left",get:function(){return this.x},set:function(t){this.x=+t}},{key:"right",get:function(){return this.x+this.w},set:function(t){this.x=+t-this.w}},{key:"top",get:function(){return this.y},set:function(t){this.y=+t}},{key:"bottom",get:function(){return this.y+this.h},set:function(t){this.y=+t-this.h}}]),require(2).createClass(t,[{key:"intersect",value:function(t){return intersectRect(this,t)}},{key:"contains",value:function(t){return rectContains(this,t)}},{key:"equals",value:function(e){return e instanceof t&&this.x===e.x&&this.y===e.y&&this.w===e.w&&this.h===e.h}},{key:"clone",value:function(){return new t(this.x,this.y,this.w,this.h)}}],[{key:"fromClientBound",value:function(e,n,i,r){if(4==arguments.length)return new t(e,n,i-e,r-n);if(1==arguments.length)return new t(e.left,e.top,e.width,e.height);throw Error("argument error")}},{key:"fromUnionBounds",value:function(){for(var e=1/0,n=1/0,i=-(1/0),r=-(1/0),s=0;s<arguments.length;s++){var o=arguments[s];o.left<e&&(e=o.left),o.right>i&&(i=o.right),o.top<n&&(n=o.top),o.bottom>r&&(r=o.bottom)}return new t(e,n,i-e,r-n)}}]),t}();


},{"2":2}],16:[function(require,module,exports){
"use strict";function defer(){var e=void 0,r=void 0,n=new Promise(function(n,o){e=n,r=o});return{resolve:function(r){e(r)},reject:function(e){r(e)},promise:n}}exports.defer=defer;


},{}],17:[function(require,module,exports){
"use strict";function delegateEvent(e,t,n,i){function r(n){for(var r,o=(0,_dom.$$)(t,e),a=0,c=n.path;a<c.length;a++){var l=c[a];if(l==e){r=!0;break}}for(;a-- >0&&r;)l=c[a],o.indexOf(l)>-1&&i.apply(this,[n,l])}return e.addEventListener(n,r,!0),function(){e.removeEventListener(n,r,!0)}}function isPointInElement(e,t){var n=t.getBoundingClientRect(),i=e.clientX,r=e.clientY;return(0,_Rect.rectContains)(n,{x:i,y:r})}exports.delegateEvent=delegateEvent,exports.isPointInElement=isPointInElement;var _dom=require(18),_Rect=require(15);


},{"15":15,"18":18}],18:[function(require,module,exports){
"use strict";function $(e,o){return e instanceof HTMLElement?e:(o||document).querySelector(e)}function _$(e,o){return(o||document).shadowRoot.querySelector(e)}function _$$(e,o){return slice.call((o||document).shadowRoot.querySelectorAll(e))}function $$(e,o){return slice.call((o||document).querySelectorAll(e))}function toggleClass(e,o,t){var r=2==arguments.length?e.classList.contains(o):!t;e.classList[r?"remove":"add"](o)}function removeNodeFromParent(e){return e&&e.parentNode?(e.parentNode.removeChild(e),!0):!1}exports.$=$,exports._$=_$,exports._$$=_$$,exports.$$=$$,exports.toggleClass=toggleClass,exports.removeNodeFromParent=removeNodeFromParent;var slice=Array.prototype.slice;


},{}],19:[function(require,module,exports){
"use strict";function forEach(r,t,n){if(isObj(r))if(void 0===n&&(n=r),r instanceof Array||r.hasOwnProperty("length"))for(var e=0,o=r.length;o>e;e++)t.call(n,r[e],e);else for(var i in r)r.hasOwnProperty(i)&&t.call(n,r[i],i);return r}function arrAdd(r,t,n){return-1==r.indexOf(t)?(r[n?"unshift":"push"](t),!0):void 0}function arrFind(r,t){var n=0,e=!0,o=!1,i=void 0;try{for(var a,s=r[Symbol.iterator]();!(e=(a=s.next()).done);e=!0){var f=a.value;if(t(f,n++))return f}}catch(u){o=!0,i=u}finally{try{!e&&s["return"]&&s["return"]()}finally{if(o)throw i}}}function arrFirst(r,t){var n=0,e=!0,o=!1,i=void 0;try{for(var a,s=r[Symbol.iterator]();!(e=(a=s.next()).done);e=!0){var f=a.value,u=t(f,n++);if(u)return u}}catch(c){o=!0,i=c}finally{try{!e&&s["return"]&&s["return"]()}finally{if(o)throw i}}}function arrRemove(r,t){var n=r.indexOf(t);return n>-1&&r.splice(n,1),-1!=n}function arrFilterMappedResult(r,t,n){var e=[],o=void 0;return forEach(r,function(r,n){(o=t.call(this,r,n))&&e.push(o)},n),e}function isFunc(r){return"function"==typeof r}function isObj(r){return r&&"object"==typeof r}function isStr(r){return"string"==typeof r}function noop(){}exports.forEach=forEach,exports.arrAdd=arrAdd,exports.arrFind=arrFind,exports.arrFirst=arrFirst,exports.arrRemove=arrRemove,exports.arrFilterMappedResult=arrFilterMappedResult,exports.isFunc=isFunc,exports.isObj=isObj,exports.isStr=isStr,exports.noop=noop;


},{}],20:[function(require,module,exports){
"use strict";var MSG_EVENT_FLASH_RECORD_FEATURE_ENABLED=exports.MSG_EVENT_FLASH_RECORD_FEATURE_ENABLED="flash-recording-plugin-enabled",MSG_EVENT_FLASH_RECORD_STATE_CHANGED=exports.MSG_EVENT_FLASH_RECORD_STATE_CHANGED="flash-recording-plugin-state-changed",MSG_EVENT_FLASH_RECORD_SHOW_MESSAGE=exports.MSG_EVENT_FLASH_RECORD_SHOW_MESSAGE="flash-recording-show-message",MSG_EVENT_FLASH_RECORD_QUERY_MESSAGE=exports.MSG_EVENT_FLASH_RECORD_QUERY_MESSAGE="flash-recording-query-message",FLASH_RECORD_V2_MEDIA_TYPE_NORMAL=exports.FLASH_RECORD_V2_MEDIA_TYPE_NORMAL="Media",FLASH_RECORD_V2_MEDIA_TYPE_HD=exports.FLASH_RECORD_V2_MEDIA_TYPE_HD="HDMedia";


},{}],21:[function(require,module,exports){
"use strict";var MSG_EVENT_STATISTIC_RECORD=exports.MSG_EVENT_STATISTIC_RECORD="statistic-record";


},{}],22:[function(require,module,exports){
"use strict";var MSG_EVENT_VIDEO_DOWNLOAD_CRAWL_URL=exports.MSG_EVENT_VIDEO_DOWNLOAD_CRAWL_URL="VD-crawl-url",MSG_EVENT_VIDEO_DOWNLOAD_CHROME_DOWNLOAD=exports.MSG_EVENT_VIDEO_DOWNLOAD_CHROME_DOWNLOAD="VD-chrome-download",MSG_EVENT_VIDEO_DOWNLOAD_EXTERNAL_CRAWL_URL=exports.MSG_EVENT_VIDEO_DOWNLOAD_EXTERNAL_CRAWL_URL="VD-external-crawl-url",MSG_EVENT_PAGE_INJECTION_ENABLED=exports.MSG_EVENT_PAGE_INJECTION_ENABLED="page-injection-enabled",MSG_EVENT_WOW_DOWNLOAD_IMAGES=exports.MSG_EVENT_WOW_DOWNLOAD_IMAGES="wow-download-images",MSG_EVENT_WOW_IMAGE_DOWNLOAD_FORMAT=exports.MSG_EVENT_WOW_IMAGE_DOWNLOAD_FORMAT="wow-download-image-format";


},{}],23:[function(require,module,exports){
"use strict";var MSG_EVENT_VD_TOOLBAR_POPUP_VISIBILITY_CHANGED=exports.MSG_EVENT_VD_TOOLBAR_POPUP_VISIBILITY_CHANGED="VD_TOOLBAR_POPUP_VISIBILITY_CHANGED",MSG_EVENT_VD_TOOLBAR_SNAPSHOT_VIDEO=exports.MSG_EVENT_VD_TOOLBAR_SNAPSHOT_VIDEO="VD_TOOLBAR_SNAPSHOT_VIDEO",MSG_EVENT_VD_TOOLBAR_POPUP_VIDEO=exports.MSG_EVENT_VD_TOOLBAR_POPUP_VIDEO="VD_TOOLBAR_POPUP_VIDEO",MSG_EVENT_VD_TOOLBAR_CONFIG=exports.MSG_EVENT_VD_TOOLBAR_CONFIG="VD_TOOLBAR_CONFIG",MSG_EVENT_VD_TOOLBAR_STYLE=exports.MSG_EVENT_VD_TOOLBAR_STYLE="VD_TOOLBAR_STYLE",MSG_EVENT_VD_TOOLBAR_HIDE_RECORD_GUIDE=exports.MSG_EVENT_VD_TOOLBAR_HIDE_RECORD_GUIDE="VD_TOOLBAR_HIDE_RECORD_GUIDE";


},{}],24:[function(require,module,exports){
"use strict";function sendMessageAsync(e,r){var t=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=t.noReply,o=t.extId,s={type:e,data:r,sync:!1,noReply:n,d:"req"};if(n)return sendMsg(o,s),Promise.resolve();var c=guid(),d=(0,_defer.defer)();return s.guid=c,deferCache[c]=d,sendMsg(o,s),d.promise["catch"](noop)}function initPort(){deferCache=Object.create(null);try{extPort=chrome.runtime.connect({name:"page:connect"}),extPort.onMessage.addListener(onMsg),extPort.onDisconnect.addListener(function(){disposePort(),setTimeout(initPort,0)})}catch(e){console.log(e)}}function disposePort(){for(var e in deferCache){var r=deferCache[e];r&&r.reject&&r.reject("disconnect")}deferCache=Object.create(null),extPort=null}function onMsg(e){var r=e.guid,t=e.d,n=deferCache[r];if("postTab"===t){var o=bkMsgHandlers[e.type];o&&o(e.data)}else n&&"res"===t&&(e.success?n.resolve(e.data):n.reject(e.error),delete deferCache[r])}function registerMsgHandler(e,r){"function"==typeof r&&(bkMsgHandlers[e]=r)}function sendMsg(e,r){if(e&&r)throw Error("not support external");r&&(extPort?extPort.postMessage(r):chrome.runtime.sendMessage(r))}function noop(){}function guid(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+Date.now()}exports.sendMessageAsync=sendMessageAsync,exports.registerMsgHandler=registerMsgHandler;var _defer=require(16),deferCache=void 0,bkMsgHandlers=Object.create(null),extPort=void 0;"object"==typeof chrome&&chrome.runtime&&chrome.runtime.onMessage&&chrome.runtime.onMessage.addListener(onMsg),window.addEventListener("unload",function(){extPort.disconnect(),disposePort()}),initPort();


},{"16":16}],25:[function(require,module,exports){
"use strict";var _locale=void 0;_locale="object"==typeof navigator.wowMetrics?navigator.wowMetrics.locale:"object"==typeof chrome&&"object"==typeof chrome.i18n?chrome.i18n.getUILanguage():navigator.language;var locale=exports.locale=_locale;


},{}],26:[function(require,module,exports){
"use strict";function reportToolbarShow(o,e){e=e||0,(0,_wowPage.wowLog)("5.13.3.1.1",{domain:o,count:e,locale:_getLocale.locale})}function reportToolbarPopup(o){(0,_wowPage.wowLog)("5.13.3.1.6",{domain:o,locale:_getLocale.locale})}function reportToolbarClose(o){(0,_wowPage.wowLog)("5.13.3.1.2",{domain:o,locale:_getLocale.locale})}function reportClickDownloadAudio(o,e){(0,_wowPage.wowLog)("5.13.3.1.5",{domain:o,list:e?"1":"0",locale:_getLocale.locale})}function reportConvertMP3(){(0,_wowPage.wowLog)("1.40.1.1.7",{locale:_getLocale.locale})}function recordClickDownload(o,e,r){(0,_wowPage.wowLog)("5.13.3.1.4",{direct_resource:o?"1":"0",domain:e,list:r?"1":"0",locale:_getLocale.locale})}function reportDownloadVideoFile(o,e,r){(0,_wowPage.wowLog)("5.14.3.1.7",{domain:o,quality:e,itag:r,locale:_getLocale.locale})}function reportShowVideoRecord(o,e){(0,_wowPage.wowLog)("5.13.3.1.10",{domain:o,count:e,locale:_getLocale.locale})}function reportToolbarStartRecordVideo(o,e){(0,_wowPage.wowLog)("5.13.3.1.3",{domain:o,click:e,locale:_getLocale.locale})}exports.reportToolbarShow=reportToolbarShow,exports.reportToolbarPopup=reportToolbarPopup,exports.reportToolbarClose=reportToolbarClose,exports.reportClickDownloadAudio=reportClickDownloadAudio,exports.reportConvertMP3=reportConvertMP3,exports.recordClickDownload=recordClickDownload,exports.reportDownloadVideoFile=reportDownloadVideoFile,exports.reportShowVideoRecord=reportShowVideoRecord,exports.reportToolbarStartRecordVideo=reportToolbarStartRecordVideo;var _wowPage=require(27),_getLocale=require(25);


},{"25":25,"27":27}],27:[function(require,module,exports){
"use strict";function wowLog(s,e){(0,_message.sendMessageAsync)(_statistic.MSG_EVENT_STATISTIC_RECORD,{id:s,param:e},{noReply:!1})}exports.wowLog=wowLog;var _message=require(24),_statistic=require(21);


},{"21":21,"24":24}],28:[function(require,module,exports){
module.exports='*{color:#777;box-sizing:border-box;font-family:"Microsoft YaHei"}:host{padding:5px;border:none;background:0 0;position:relative;top:30%}:host::backdrop{background:rgba(0,0,0,.3)}.modal{border-radius:5px;overflow:hidden;min-width:300px;min-height:110px;background:#fff}.title{height:30px;line-height:20px;padding-left:5px;position:relative;margin:10px;border-bottom:1px solid #eee}.title .close{position:absolute;right:3px;top:0}.title .close::before{display:inline-block;font-family:uc-nexus-iconfont;content:"\\E60a";cursor:pointer}.check-hide,.main{padding:12px;position:relative}.main{padding:12px;position:relative;min-height:50px}.main .text{max-width:360px}.control{text-align:center}.control button{background:#f1f1f1;border:1px solid #bbb;border-radius:2px;cursor:pointer;height:30px;display:inline-block;width:40%;margin:3%}.control button:focus{outline:0;position:relative;left:1px;top:1px}.control .confirm{background:#3e99ff;border-color:#3e99ff;color:#fff}';


},{}],29:[function(require,module,exports){
module.exports="@font-face{font-family:uc-nexus-iconfont;src:url(chrome-extension://pogijhnlcfmcppgimcaccdkmbedjkmhi/res/font_9qmmi8b8jsxxbt9.woff) format('woff'),url(chrome-extension://pogijhnlcfmcppgimcaccdkmbedjkmhi/res/font_9qmmi8b8jsxxbt9.ttf) format('truetype')}";


},{}]},{},[1]);
