(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";var _registerCrawlerGroup=require(93);Object.keys(_registerCrawlerGroup).forEach(function(r){"default"!==r&&Object.defineProperty(exports,r,{enumerable:!0,get:function(){return _registerCrawlerGroup[r]}})}),require(82),require(74),require(71),require(73);


},{"71":71,"73":73,"74":74,"82":82,"93":93}],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 getTabInfo(e){return tabInfo[e]}function injectJSOnce(e,t){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],o=tabInfo[e];if(o){var r=t.map(function(e){return Object.assign({},n,(0,_utils.isObj)(e)?e:{file:e})});return o.injectJSFilesAsync(r)}return Promise.reject(Error("not tabInfo for id:"+e))}function iterateForEvent(e,t){var n=!0,o=!1,r=void 0;try{for(var i,a=function(){function n(n){n&&o["actionFor"+t](e)}var o=i.value,r=o.shouldTakeAction(e,t);r instanceof Promise?r.then(n):n(r)},c=tabActions[Symbol.iterator]();!(n=(i=c.next()).done);n=!0)a()}catch(u){o=!0,r=u}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw r}}}exports.TabAction=exports.TAB_EVENT_REMOVED=exports.TAB_EVENT_UPDATED=exports.TAB_EVENT_CREATED=void 0,exports.getTabInfo=getTabInfo,exports.injectJSOnce=injectJSOnce;var _utils=require(24),_ErrorCode=require(13),_EventEmitter2=require(14),_TabInfo=require(4),tabActions=[],tabCache={},tabInfo={},TAB_EVENT_CREATED=exports.TAB_EVENT_CREATED="Created",TAB_EVENT_UPDATED=exports.TAB_EVENT_UPDATED="Updated",TAB_EVENT_REMOVED=exports.TAB_EVENT_REMOVED="Removed";chrome.tabs.query({windowType:"normal"},function(e){return e.forEach(function(e){return tabInfo[e.id]=new _TabInfo.TabInfo(e.id).update(e)})}),chrome.tabs.onCreated.addListener(function(e){var t=e.id;tabCache[t]=e,tabInfo[t]=new _TabInfo.TabInfo(t),iterateForEvent(e,TAB_EVENT_CREATED)}),chrome.tabs.onUpdated.addListener(function(e){chrome.tabs.get(e,function(t){if(t){var n=tabInfo[e];n&&n.update(t),tabCache[e]=t,iterateForEvent(t,TAB_EVENT_UPDATED)}else delete tabCache[e],delete tabInfo[e]})}),chrome.tabs.onRemoved.addListener(function(e){var t=tabCache[e];t&&iterateForEvent(t,TAB_EVENT_REMOVED),delete tabCache[e],delete tabInfo[e]});var TabAction=exports.TabAction=function(e){function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=e.actionForCreated,o=e.actionForUpdated,r=e.actionForRemoved,i=e.shouldTakeAction;require(2).classCallCheck(this,t);var a=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this));return(0,_utils.isFunc)(n)&&(a.actionForCreated=n),(0,_utils.isFunc)(r)&&(a.actionForRemoved=r),(0,_utils.isFunc)(o)&&(a.actionForUpdated=o),(0,_utils.isFunc)(i)&&(a.shouldTakeAction=i),a}return require(2).inherits(t,e),require(2).createClass(t,[{key:"shouldTakeAction",value:function(e,t){return!1}},{key:"actionForCreated",value:function(e){}},{key:"actionForUpdated",value:function(e){}},{key:"actionForRemoved",value:function(e){}},{key:"register",value:function(){return(0,_utils.arrAdd)(tabActions,this),this}}]),t}(_EventEmitter2.EventEmitter);


},{"13":13,"14":14,"2":2,"24":24,"4":4}],4:[function(require,module,exports){
"use strict";exports.TabInfo=void 0;var _tabs=require(10),InjectionResult=function e(t,s){require(2).classCallCheck(this,e),this.injected=!!t,this.result=s},TabInfo=exports.TabInfo=function(){function e(t){require(2).classCallCheck(this,e),this.id=t,this._status="loading",this.reset()}return require(2).createClass(e,[{key:"status",set:function(e){var t=this._status;t!=e?("complete"==t&&this.reset(),this._status=e):"loading"==e&&this.reset()}},{key:"url",set:function(e){this._url!=e&&(this._url=e,this.reset())}}]),require(2).createClass(e,[{key:"update",value:function(e){return this.status=e.status,this.url=e.url,this}},{key:"reset",value:function(){return this.injectedCSSFiles=[],this.injectedJSFiles=[],this}},{key:"injectJSFilesAsync",value:function(e){var t=this;return co(regeneratorRuntime.mark(function s(){var r,i,n,u,a,c,l,o,h;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:r=[],i=!0,n=!1,u=void 0,s.prev=4,a=e[Symbol.iterator]();case 6:if(i=(c=a.next()).done){s.next=22;break}if(l=c.value,o=l.file,h=void 0,-1!=t.injectedJSFiles.indexOf(o)){s.next=18;break}return t.injectedJSFiles.push(o),s.next=14,(0,_tabs.executeScriptInTabAsync)(t.id,l);case 14:h=s.sent,r.push(new InjectionResult(1,h)),s.next=19;break;case 18:r.push(new InjectionResult(0));case 19:i=!0,s.next=6;break;case 22:s.next=28;break;case 24:s.prev=24,s.t0=s["catch"](4),n=!0,u=s.t0;case 28:s.prev=28,s.prev=29,!i&&a["return"]&&a["return"]();case 31:if(s.prev=31,!n){s.next=34;break}throw u;case 34:return s.finish(31);case 35:return s.finish(28);case 36:return s.abrupt("return",r);case 37:case"end":return s.stop()}},s,this,[[4,24,28,36],[29,,31,35]])}))}}]),e}();


},{"10":10,"2":2}],5:[function(require,module,exports){
(function (global){
"use strict";function setOptions(t){Object.assign(debugOptions,t)}function getOptions(){return debugOptions}function registerDebugMethod(t,e){}exports.setOptions=setOptions,exports.getOptions=getOptions,exports.registerDebugMethod=registerDebugMethod;var debug=global.debug={},debugOptions=debug.debugOptions={};


}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],6:[function(require,module,exports){
"use strict";function downloadAsync(e){var r=e.filename,n=e.url,t=e.saveAs,o=void 0===t?!0:t;return n?new Promise(function(e,t){return chrome.downloads.download({url:n,filename:replaceRestrictedFilename(r),saveAs:!!o},function(r){r?e(r):t(chrome.runtime.lastError)})}):Promise.reject(new Error("empty url"))}function replaceRestrictedFilename(e,r){return e.trim().replace(/[\\\/@=|#%+$*:<>\?\r\n\[\]\^&~]+/g,r||" ").replace(/"/g,"'").trim()}function lastFileComponent(e){var r=e.lastIndexOf("?");return-1!=r&&(e=e.substring(0,r)),e.substring(e.lastIndexOf("/")+1)}exports.downloadAsync=downloadAsync,exports.replaceRestrictedFilename=replaceRestrictedFilename,exports.lastFileComponent=lastFileComponent;


},{}],7:[function(require,module,exports){
"use strict";var _onMessage=require(8);Object.keys(_onMessage).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _onMessage[e]}})});var _TabAction=require(3);Object.keys(_TabAction).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _TabAction[e]}})});var _tabs=require(10);Object.keys(_tabs).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _tabs[e]}})});var _debug=require(5);Object.keys(_debug).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _debug[e]}})});var _downloads=require(6);Object.keys(_downloads).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _downloads[e]}})});var _webRequest=require(11);Object.keys(_webRequest).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _webRequest[e]}})});


},{"10":10,"11":11,"3":3,"5":5,"6":6,"8":8}],8:[function(require,module,exports){
"use strict";function registerMessageHandler(e,r){var n=arguments.length<=2||void 0===arguments[2]?{external:!1}:arguments[2],t=n.external,s=n.filter;s instanceof Array?s=filterFromTextArray(s):(0,_utils.isFunc)(s)||(s=function(){return!t}),(t?externalHandlers:handlers)[e]=new MessageHandler(r,s)}function removeMessageHandler(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.external;(n?externalHandlers:handlers)[e];(n?externalHandlers:handlers)[e]=null}function isEventRegistered(e,r){return!!(r?externalHandlers:handlers)[e]}function sendMsgToTab(e,r,n){chrome.tabs.sendMessage(+e,{d:"postTab",data:n,type:r})}function filterFromTextArray(e){var r=e.map(_StringMatcher.URLMatcherFromCache);return function(e){var n=e.tab,t=n?n.url:e.id;return r.some(function(e){return e.test(t)})}}function handleMessage(e,r,n){function t(e){"function"==typeof n?n(e):d?chrome.tabs.sendMessage(d,e):chrome.runtime.sendMessage(c,e)}var s=e.type,a=e.data,i=e.guid,o=e.noReply,u=e.external,l=(u?externalHandlers:handlers)[s],c=void 0,d=void 0;if(r.tab?d=r.tab.id:c=r.id,l){if(!l.filter(r))return;try{co(l.process,a,r,function(e){return n(formatProgressData(s,e))}).then(function(e){return formatResponse(s,1,e,i)},function(e){return formatResponse(s,0,e,i)}).then(function(e){return!o&&t(e)})}catch(f){!o&&t(formatResponse(s,0,f,i))}}}function formatResponse(e,r,n,t){var s={type:e,success:r,guid:t,d:"res"};return r?s.data=n:s.error=n instanceof Error?{message:n.message,stack:n.stack}:n,s}function formatProgressData(e,r){return{type:e,data:r,progressing:!0}}exports.registerMessageHandler=registerMessageHandler,exports.removeMessageHandler=removeMessageHandler,exports.isEventRegistered=isEventRegistered,exports.sendMsgToTab=sendMsgToTab;var _utils=require(24),_StringMatcher=require(16),externalHandlers={},handlers={},IS_CHROME=(0,_utils.isObj)(chrome)&&(0,_utils.isObj)(chrome.runtime),Message=function e(){require(2).classCallCheck(this,e)},MessageHandler=function(){function e(r,n){if(require(2).classCallCheck(this,e),(0,_utils.isFunc)(n)&&(this.filter=n),!(0,_utils.isFunc)(r))throw Error("Function required");this.process=r}return require(2).createClass(e,[{key:"filter",value:function(e){return!1}},{key:"process",value:function(){throw Error("not implement")}}]),e}();IS_CHROME&&(chrome.runtime.onMessage.addListener(function(e,r){e.external=!1,handleMessage.call(this,e,r)}),chrome.runtime.onMessageExternal.addListener(function(e,r){e.external=!0,handleMessage.call(this,e,r)}),chrome.runtime.onConnect.addListener(function(e){function r(r){r.external=!1,handleMessage(r,t,function(r){return!n&&e.postMessage(r)})}var n=!1,t=e.sender;e.onMessage.addListener(r),e.onDisconnect.addListener(function(){n=!0,e.onMessage.removeListener(r)})}));


},{"16":16,"2":2,"24":24}],9:[function(require,module,exports){
"use strict";function onChange(e,r){var t=watchHandlers[r];t&&t.slice().forEach(function(r){return r(e)})}function watchStorageChange(e,r,t){watched||(chrome.storage.onChanged.addListener(onChange),window.addEventListener("unload",function(){return chrome.storage.onChanged.removeListener(onChange)}),watched=!0);var n=watchHandlers[e];if(n&&n.indexOf(-1==r)&&"function"==typeof r){var o=function(){var e=r;return"string"==typeof t&&(e=function(e){return e[t]&&r(e[t])}),n.push(e),{v:function(){var r=n.indexOf(e);-1!==r&&n.splice(r,1),e=null}}}();if("object"==typeof o)return o.v}return noop}function setAsync(e,r){var t=getStorageTarget(e);return t?new Promise(function(e,n){return t.set(r,function(){var r=chrome.runtime.lastError;r?n(r):e()})}):rejectInvalidStorageArea()}function getAsync(e,r){var t=getStorageTarget(e);return t?new Promise(function(e,n){t.get(r,function(r){r?e(r):n(chrome.runtime.lastError)})}):rejectInvalidStorageArea()}function removeAsync(e,r){var t=getStorageTarget(e);return t?new Promise(function(e,n){t.remove(r,function(){var r=chrome.runtime.lastError;r?n(r):e()})}):rejectInvalidStorageArea()}function getByKeyAsync(e,r){var t=getStorageTarget(e);return t?new Promise(function(e,n){t.get(r,function(t){t?e(t[r]):n(chrome.runtime.lastError)})}):rejectInvalidStorageArea()}function rejectInvalidStorageArea(){return Promise.reject(new Error("invalid storage target"))}function getStorageTarget(e){var r=void 0;return chrome&&chrome.storage&&(r=chrome.storage[e]),r}function noop(){}exports.watchStorageChange=watchStorageChange,exports.setAsync=setAsync,exports.getAsync=getAsync,exports.removeAsync=removeAsync,exports.getByKeyAsync=getByKeyAsync;var STORAGE_TYPE_SYNC=exports.STORAGE_TYPE_SYNC="sync",STORAGE_TYPE_LOCAL=exports.STORAGE_TYPE_LOCAL="local",watchHandlers={local:[],sync:[],managed:[]},watched=void 0;


},{}],10:[function(require,module,exports){
"use strict";function executeScriptInTabAsync(n,e){return new Promise(function(r,t){return chrome.tabs.executeScript(n,e,function(n){return n?r(n.reduce(function(n,e){return n.concat(e)},[])):t()})})}function insertCSSInTabAsync(n,e){return new Promise(function(r,t){return chrome.tabs.insertCSS(n,e,function(n){return n?r(n.reduce(function(n,e){return n.concat(e)},[])):t()})})}function createTabAsync(n){return new Promise(function(e,r){return chrome.tabs.create(n||{},function(n){return n?e(n):r(n)})})}function reloadTabAsync(n,e){return new Promise(function(r){return chrome.tabs.reload(n,e,function(){return r()})})}function getCurrentTabAsync(){return new Promise(function(n,e){return chrome.tabs.getCurrent(function(r){return r?n(r):e(r)})})}function getTabAsync(n){return new Promise(function(e,r){return chrome.tabs.get(n,function(n){return n?e(n):r(new Error("no tab"))})})}function queryTabsAsync(n){return new Promise(function(e,r){return chrome.tabs.query(n,function(n){return n.length?e(n):r(new Error("no tab"))})})}exports.executeScriptInTabAsync=executeScriptInTabAsync,exports.insertCSSInTabAsync=insertCSSInTabAsync,exports.createTabAsync=createTabAsync,exports.reloadTabAsync=reloadTabAsync,exports.getCurrentTabAsync=getCurrentTabAsync,exports.getTabAsync=getTabAsync,exports.queryTabsAsync=queryTabsAsync;var INJECTION_RUN_AT_START=exports.INJECTION_RUN_AT_START="document_start",INJECTION_RUN_AT_END=exports.INJECTION_RUN_AT_END="document_end",INJECTION_RUN_AT_IDLE=exports.INJECTION_RUN_AT_IDLE="document_idle";


},{}],11:[function(require,module,exports){
"use strict";function requestRedirectURLAsync(e){return new Promise(function(r,t){function n(){c||t(new Error(_ErrorCode.WEB_REQUEST_REDIRECT_URL_FAIL))}var i=(0,_request.requestXHRAsync)(e),o=i.xhr,s=i.promise,u=i.url,c=void 0;chrome.webRequest.onBeforeRedirect.addListener(function a(e){o.abort(),r(pureLink(e.redirectUrl)),c=!0,chrome.webRequest.onBeforeRedirect.removeListener(a)},{urls:[u],types:["xmlhttprequest"]}),s.then(n,n)})}function interceptRequestOnceAsync(e){var r=e.timeout||30,t=e.acceptRequest||alwaysTrue,n=e.redirectUrl,i=!!e.cancel;return new Promise(function(o,s){function u(e){return!a&&t(e)?(o(e),c(),(0,_utils.isStr)(n)?{redirectUrl:n}:{cancel:i}):void 0}function c(){a=!0,setTimeout(function(){return chrome.webRequest.onBeforeRequest.removeListener(u)},0)}var a=void 0;chrome.webRequest.onBeforeRequest.addListener(u,getRequestFilter(e.filter),["blocking","requestBody"]),setTimeout(function(){s(),c()},1e3*r)})}function getRequestFilter(e){var r=e||{},t=r.urls,n=r.types,i=r.tabId,o=r.windowId,s={};return Array.isArray(t)&&(s.urls=t),Array.isArray(n)&&(s.types=n),isNumber(i)&&(s.tabId=i),isNumber(o)&&(s.windowId=o),s}function pureLink(e){var r=e.indexOf(" ");return r>-1&&(e=e.substr(0,r)),e}function alwaysTrue(){return!0}function isNumber(e){return"number"==typeof e}exports.iPhone_UA=exports.iPAD_UA=exports.requestAsync=void 0;var _request=require(23);Object.defineProperty(exports,"requestAsync",{enumerable:!0,get:function(){return _request.requestAsync}}),exports.requestRedirectURLAsync=requestRedirectURLAsync,exports.interceptRequestOnceAsync=interceptRequestOnceAsync;var _ErrorCode=require(13),_utils=require(24),iPAD_UA=exports.iPAD_UA="Mozilla/5.0 (iPad; CPU OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B137 Safari/601.1",iPhone_UA=exports.iPhone_UA="Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13C75 Safari/601.1";


},{"13":13,"23":23,"24":24}],12:[function(require,module,exports){
"use strict";var Dictionary=exports.Dictionary=function(){function e(){require(2).classCallCheck(this,e),this.$data=Object.create(null)}return require(2).createClass(e,[{key:"get",value:function(e){return this.$data[e].slice()}},{key:"has",value:function(e,t){var a=this.$data[e];return a&&a.indexOf(t)>-1}},{key:"set",value:function(e,t){var a=this.$data[e];a?a.push(t):this.$data[e]=[t]}},{key:"remove",value:function(e,t){if(1==arguments.length)delete this.$data[e];else{var a=this.$data[e],i=void 0;a&&(i=a.indexOf(t)>-1)&&a.splice(i,1)}}},{key:"add",value:function(e,t){var a=this.$data[e];if(a){if(-1!=a.indexOf(t))return!1;a.push(t)}else this.$data[e]=[t];return!0}},{key:"keys",get:function(){return Object.getOwnPropertyNames(this.$data)}}]),e}();


},{"2":2}],13:[function(require,module,exports){
"use strict";function CRAWLER_MANAGER_NOT_FOUND(E){return"crawler manager with id :"+E+" not found"}function TYPE_ERROR(E){return"expect to type:"+E}function DOM_NODE_NOT_FOUND(E){return"no node match selector:"+E}function CRAWLER_NOT_FOUND(E){return" crawler with id :"+E+" not found"}function MSG_NO_HANDLER(E){return"no response for msg:"+E}exports.CRAWLER_MANAGER_NOT_FOUND=CRAWLER_MANAGER_NOT_FOUND,exports.TYPE_ERROR=TYPE_ERROR,exports.DOM_NODE_NOT_FOUND=DOM_NODE_NOT_FOUND,exports.CRAWLER_NOT_FOUND=CRAWLER_NOT_FOUND,exports.MSG_NO_HANDLER=MSG_NO_HANDLER;var EXECUTE_REQUIRE_CHROME_ENV=exports.EXECUTE_REQUIRE_CHROME_ENV=void 0,WEB_REQUEST_REDIRECT_URL_FAIL=exports.WEB_REQUEST_REDIRECT_URL_FAIL=void 0,CRAWLER_REDIRECT_COUNT_EXCEED=exports.CRAWLER_REDIRECT_COUNT_EXCEED=void 0,VM_PARSE_INTERRUPTED=exports.VM_PARSE_INTERRUPTED=void 0,REQUIRED_SCRIPT_NOT_FOUND=exports.REQUIRED_SCRIPT_NOT_FOUND=void 0,CRAWLER_URL_NOT_SUPPORTED=exports.CRAWLER_URL_NOT_SUPPORTED=void 0,INVALID_URL=exports.INVALID_URL=void 0,SANDBOX_NOT_COMPLETE=exports.SANDBOX_NOT_COMPLETE=void 0,INVALID_PARAMS=exports.INVALID_PARAMS=void 0;exports.EXECUTE_REQUIRE_CHROME_ENV=EXECUTE_REQUIRE_CHROME_ENV="this method build for chrome only",exports.WEB_REQUEST_REDIRECT_URL_FAIL=WEB_REQUEST_REDIRECT_URL_FAIL="redirect url not found",exports.CRAWLER_REDIRECT_COUNT_EXCEED=CRAWLER_REDIRECT_COUNT_EXCEED="crawler redirect too many",exports.VM_PARSE_INTERRUPTED=VM_PARSE_INTERRUPTED="parse interrupted",exports.REQUIRED_SCRIPT_NOT_FOUND=REQUIRED_SCRIPT_NOT_FOUND="required script not found",exports.INVALID_URL=INVALID_URL="invalid url",exports.INVALID_PARAMS=INVALID_PARAMS="invalid params",exports.SANDBOX_NOT_COMPLETE=SANDBOX_NOT_COMPLETE="sandbox not complete",exports.CRAWLER_URL_NOT_SUPPORTED=CRAWLER_URL_NOT_SUPPORTED="This url is not supported, this may caused by no responding crawler or no permission";


},{}],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(24),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}();


},{"2":2,"24":24}],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 URLMatcherFromCache(t){var e=cache[t];return e||(e=new StringMatcher(t),"string"==typeof t&&(cache[t]=e)),e}function isStringMatchPattern(t,e){return convertTestFunc(e)(t)}function convertTestFunc(t){if("string"==typeof t||t instanceof RegExp){var e=t instanceof RegExp?t:convertTextRegexp(t),r=function(t){return e.test(t)};return r.urlPattern=t+"",r}if("function"==typeof t)return t;if(t instanceof Array){var n=function(){var e=t.map(convertTestFunc);return{v:function(t){return e.some(function(e){return e(t)})}}}();if("object"==typeof n)return n.v}throw new Error("test function not provided")}function convertTextRegexp(t){return new RegExp(t.trim().replace(/([\.\/\?])/g,function(t){return"\\"+t}).replace(/\*/g,".*"))}function alwaysFalse(){return!1}exports.URLMatcherFromCache=URLMatcherFromCache,exports.isStringMatchPattern=isStringMatchPattern,exports.convertTestFunc=convertTestFunc;var cache={},StringMatcher=exports.StringMatcher=function t(e){require(2).classCallCheck(this,t),this.test=convertTestFunc(e)||alwaysFalse};


},{"2":2}],17:[function(require,module,exports){
"use strict";function getUrlQuery(e){var t={};return e.slice(e.indexOf("?")+1).split("&").forEach(function(e){e=decodeURIComponent(e).split("="),t[e[0]]=e[1]}),t}function getDomain(e){return link.href=e,link.hostname}function getPath(e){return link.href=e,link.pathname}exports.getUrlQuery=getUrlQuery,exports.getDomain=getDomain,exports.getPath=getPath;var link=document.createElement("a");


},{}],18:[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;


},{}],19:[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;


},{}],20:[function(require,module,exports){
"use strict";function hashForString(r){var t,h,n,e=0;if(0===r.length)return e;for(t=0,n=r.length;n>t;t++)h=r.charCodeAt(t),e=(e<<5)-e+h,e|=0;return e}exports.hashForString=hashForString;


},{}],21:[function(require,module,exports){
"use strict";var _dom=require(19);Object.keys(_dom).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _dom[e]}})});var _defer=require(18);Object.keys(_defer).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _defer[e]}})});var _utils=require(24);Object.keys(_utils).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _utils[e]}})});var _request=require(23);Object.keys(_request).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _request[e]}})});var _Rect=require(15);Object.keys(_Rect).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _Rect[e]}})});var _EventEmitter=require(14);Object.keys(_EventEmitter).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _EventEmitter[e]}})});var _ErrorCode=require(13);Object.keys(_ErrorCode).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _ErrorCode[e]}})});var _hash=require(20);Object.keys(_hash).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _hash[e]}})});var _Dictionary=require(12);Object.keys(_Dictionary).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _Dictionary[e]}})});var _StringMatcher=require(16);Object.keys(_StringMatcher).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _StringMatcher[e]}})});var _version=require(25);Object.keys(_version).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _version[e]}})});


},{"12":12,"13":13,"14":14,"15":15,"16":16,"18":18,"19":19,"20":20,"23":23,"24":24,"25":25}],22:[function(require,module,exports){
"use strict";function getVersionFromUA(e){return new RegExp(e+"/([\\w\\.]+)").test(navigator.userAgent)?RegExp.$1:void 0}function getUCVersion(){var e=getVersionFromUA("UBrowser");return e?e.split("."):[NaN,NaN,NaN,NaN]}exports.getVersionFromUA=getVersionFromUA,exports.getUCVersion=getUCVersion;


},{}],23:[function(require,module,exports){
"use strict";function normalizeHeader(e){var r={};return(0,_utils.forEach)(e,function(e,t){var n=t.replace(/(^|-)[a-z]/g,function(e){return e.toUpperCase()}).replace(/\w[A-Z]/g,function(e){return e[0]+"-"+e[1]});r[n]=e}),r}function requestXHRAsync(e){var r=new XMLHttpRequest,t=combineRequestURLWithQuery(getAbsoluteURL(e.url),e.query);return{xhr:r,url:t,promise:new Promise(function(n,o){var u=e.resolveProperty,s=e.headers;s=normalizeHeader(s),r.onreadystatechange=function(){switch(r.readyState){case XMLHttpRequest.OPENED:return void(r.responseType=e.responseType||"");case XMLHttpRequest.DONE:return void(200===r.status?n(u?r[u]:r):o(r));default:return}},Object.getOwnPropertyNames(s).length&&!function(){var e=void 0;chrome.webRequest.onBeforeSendHeaders.addListener(function r(t){if(!e){var n=function(){var n=void 0,o=t.requestHeaders.map(function(e){return s.hasOwnProperty(n=e.name)&&(e.value=s[n],s[n]=0),e});return(0,_utils.forEach)(s,function(e,r){return e&&o.push({name:r,value:e})}),setTimeout(function(){return chrome.webRequest.onBeforeSendHeaders.removeListener(r)},0),e=1,{v:{requestHeaders:o}}}();if("object"==typeof n)return n.v}return{}},{urls:[t],types:["xmlhttprequest"]},["blocking","requestHeaders"])}(),r.open(e.method||"get",t.trim()),r.timeout=e.timeout||0,r.ontimeout=o;var i=e.data,a=e.delay;a?setTimeout(function(){return r.send(i)},a):r.send(i)})}}function requestAsync(e){return requestXHRAsync(e).promise}function requestJSONPAsync(e){var r=e.url,t=e.query,n=e.callbackName,o=e.delay;return new Promise(function(e,u){function s(){i.parentNode&&i.parentNode.removeChild(i),a&&window[n]==c&&delete window[n]}var i=document.createElement("script"),a=void 0;n||(n="JSON_CALL_BACK"+generateUUID(),a=1),document.head.appendChild(i);var c=window[n]=function(r){e({response:r}),s()};i.onerror=function(e){u(e),s()},setTimeout(function(){return i.src=combineRequestURLWithQuery(r,t,{callback:n})},o||0)})}function combineRequestURLWithQuery(e,r,t){(0,_utils.isObj)(r)&&(r=stringfyUrlQuery(r)),r=r||"",(0,_utils.isObj)(t)&&(r=r+"&"+stringfyUrlQuery(t));var n=e.lastIndexOf("?"),o=e,u="";return-1!==n&&(o=e.substring(0,n),u=e.substring(n+1)),u&&(r=u+"&"+r),o+(r?"?"+r:"")}function stringfyUrlQuery(e){var r=[];return(0,_utils.forEach)(e,function(e,t){return r.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}),r.join("&")}function getAbsoluteURL(e){var r=window.location;return/^(https?:)?\/\//i.test(e)?e:""+r.origin+r.pathname+"/"+e}function getUrlQuery(e){var r={};return e.slice(e.indexOf("?")+1).split("&").forEach(function(e){e=decodeURIComponent(e).split("="),r[e[0]]=e[1]}),r}function generateUUID(){var e=(new Date).getTime();return window.performance&&isFunc(window.performance.now)&&(e+=performance.now()),"xxxyyyxx_xxxx_4xyx_yxxx_xxxxxyyxxxyy".replace(/[xy]/g,function(r){var t=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==r?t:3&t|8).toString(16)})}exports.normalizeHeader=normalizeHeader,exports.requestXHRAsync=requestXHRAsync,exports.requestAsync=requestAsync,exports.requestJSONPAsync=requestJSONPAsync,exports.stringfyUrlQuery=stringfyUrlQuery,exports.getAbsoluteURL=getAbsoluteURL,exports.getUrlQuery=getUrlQuery,exports.generateUUID=generateUUID;var _utils=require(24);


},{"24":24}],24:[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;


},{}],25:[function(require,module,exports){
"use strict";function compareVersion(e,r){function E(E){return e[E]==r[E]?VERSION_COMPARE_SAME:e[E]>r[E]?VERSION_COMPARE_GRATER:VERSION_COMPARE_LESS}e instanceof Version||(e=new Version(e)),r instanceof Version||(r=new Version(r));var n=E("major");return n==VERSION_COMPARE_SAME&&(n=E("minor"),n==VERSION_COMPARE_SAME&&(n=E("patch"),n==VERSION_COMPARE_SAME&&(n=E("revise")))),n}exports.compareVersion=compareVersion;var VERSION_COMPARE_SAME=exports.VERSION_COMPARE_SAME=0,VERSION_COMPARE_GRATER=exports.VERSION_COMPARE_GRATER=1,VERSION_COMPARE_LESS=exports.VERSION_COMPARE_LESS=-1,Version=exports.Version=function(){function e(r){require(2).classCallCheck(this,e);for(var E=(r+"").split(".");E.length<4;)E.push("0");this.major=+E[0],this.minor=+E[1],this.patch=+E[2],this.revise=+E[3]}return require(2).createClass(e,[{key:"greaterThan",value:function(e){return compareVersion(this,e)==VERSION_COMPARE_GRATER}},{key:"lessThan",value:function(e){return compareVersion(this,e)==VERSION_COMPARE_LESS}},{key:"equal",value:function(e){return compareVersion(this,e)==VERSION_COMPARE_SAME}},{key:"lessOrEqual",value:function(e){return compareVersion(this,e)!=VERSION_COMPARE_GRATER}},{key:"greaterOrEqual",value:function(e){return compareVersion(this,e)!=VERSION_COMPARE_LESS}}]),e}();


},{"2":2}],26:[function(require,module,exports){
"use strict";exports.Crawler=exports.CRAWLER_CRAWL_FAIL=exports.CRAWLER_CRAWL_SUCCESS=exports.iPhone_UA=exports.iPAD_UA=exports.requestJSONPAsync=exports.requestAsync=void 0;var _EventEmitter2=require(14),_request=require(23),_webRequest=require(11),_CrawlerCache=require(27),_ErrorCode=require(13),_StringMatcher=require(16);exports.requestAsync=_webRequest.requestAsync,exports.requestJSONPAsync=_request.requestJSONPAsync,exports.iPAD_UA=_webRequest.iPAD_UA,exports.iPhone_UA=_webRequest.iPhone_UA;var CRAWLER_CRAWL_SUCCESS=exports.CRAWLER_CRAWL_SUCCESS="success",CRAWLER_CRAWL_FAIL=exports.CRAWLER_CRAWL_FAIL="fail",REQUEST_TIME_OUT=6e4,Crawler=exports.Crawler=function(e){function r(e,t,s){require(2).classCallCheck(this,r);var n=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(r).call(this));return n.$testHandler=(0,_StringMatcher.URLMatcherFromCache)(e),n.$crawlHandler=t,n.config(s||{}),n}return require(2).inherits(r,e),require(2).createClass(r,[{key:"config",value:function(e){var r=e.requestHeaders,t=e.title,s=e.label;return this.$requestHeaders=r,this.title=t,this.labael=s,this}},{key:"crawlAsync",value:function(e,r,t){var s=this;return co(regeneratorRuntime.mark(function n(){var a,o;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=4;break}n.t0=r,n.next=7;break;case 4:return n.next=6,s.getCrawlContent(e);case 6:n.t0=n.sent;case 7:return a=n.t0,n.prev=8,n.next=11,co(s.$crawlHandler(e,a,t)||t.pendingResult);case 11:return o=n.sent,o instanceof Promise||(o.label=s.labael,s.checkData(o),s.emit(CRAWLER_CRAWL_SUCCESS,{url:e,target:s,data:o})),n.abrupt("return",o);case 16:throw n.prev=16,n.t1=n["catch"](8),s.emit(CRAWLER_CRAWL_FAIL,{error:n.t1,target:s,url:e}),n.t1;case 20:case"end":return n.stop()}},n,this,[[8,16]])}))}},{key:"checkData",value:function(e){var r=this.title;if(/^video\./.test(r)){if(!e.files||!e.files.length)throw Error("crawl result no file")}else if(/^comment\./.test(r)&&(!e.comments||!e.comments.length))throw Error("crawl result no comment")}},{key:"post",value:function(e){var r=e.url,t=e.delay,s=e.data,n=e.form,a=this.getRequestOptions(r);return a.delay=t,a.method="post",a.data=s||new FormData(n),a.resolveProperty="response",(0,_webRequest.requestAsync)(a)}},{key:"getCrawlContent",value:function(e){return(0,_webRequest.requestAsync)(this.getRequestOptions(e))}},{key:"getRequestOptions",value:function(e){return{url:this.processRequestURL(e),responseType:this.processRequestResponseType(e),headers:this.processRequestHeaders(e),timeout:REQUEST_TIME_OUT,resolveProperty:"response"}}},{key:"processRequestHeaders",value:function(e){return this.$requestHeaders}},{key:"processRequestURL",value:function(e){return e}},{key:"processRequestResponseType",value:function(e){return"document"}},{key:"test",value:function(e){return this.$testHandler.test(e)}},{key:"registerInCache",value:function(e){var r=arguments.length<=1||void 0===arguments[1]?_CrawlerCache.CrawlerCache.defaultCache:arguments[1];if(!(r instanceof _CrawlerCache.CrawlerCache))throw new Error((0,_ErrorCode.TYPE_ERROR)("CrawlerCache"));r.registerCrawler(e,this)}}]),r}(_EventEmitter2.EventEmitter);


},{"11":11,"13":13,"14":14,"16":16,"2":2,"23":23,"27":27}],27:[function(require,module,exports){
"use strict";exports.CrawlerCache=void 0;var _utils=require(24),CrawlerCache=exports.CrawlerCache=function(){function e(){require(2).classCallCheck(this,e),this.$cache={}}return require(2).createClass(e,[{key:"registerCrawler",value:function(e,r){var a=this.$cache;a[e]=r}},{key:"requireCrawlers",value:function(e){var r=this.$cache,a=new RegExp("^"+e.replace(/\*/g,".+").replace(/\./g,".")),t=[];return(0,_utils.forEach)(r,function(e,r){return a.test(r)&&t.push(e)}),t}}]),e}();CrawlerCache.defaultCache=new CrawlerCache;


},{"2":2,"24":24}],28:[function(require,module,exports){
"use strict";exports.CrawlerContext=void 0;var _utils=require(24),_ErrorCode=require(13),CrawlerContext=exports.CrawlerContext=function(){function r(e){var t=e.maxRedirectCount,i=void 0===t?6:t,o=e.getCrawler;require(2).classCallCheck(this,r),this.paths=[],this.maxRedirectCount=i,this.getCrawler=o}return require(2).createClass(r,[{key:"getCrawler",value:function(r){}},{key:"redirectAsync",value:function(r,e){var t=this.paths;if(!(0,_utils.arrAdd)(t,r))return Promise.reject(new Error("recursive crawl"+t.join("->")));if(t.length>this.maxRedirectCount)return Promise.reject(new Error(_ErrorCode.CRAWLER_REDIRECT_COUNT_EXCEED));var i=this.getCrawler(r);return i?(this.$currentCrawler=i,i.crawlAsync(r,e,this)):Promise.reject(new Error(_ErrorCode.CRAWLER_NOT_FOUND))}},{key:"dispose",value:function(){this.getCrawler=_utils.noop}}]),r}();


},{"13":13,"2":2,"24":24}],29:[function(require,module,exports){
"use strict";exports.CrawlerManager=void 0;var _utils=require(24),_CrawlerContext=require(28),_EventEmitter2=require(14),_Crawler=require(26),_ErrorCode=require(13),_CrawlerCache=require(27),CrawlerManager=exports.CrawlerManager=function(r){function e(r){var t=r.id;require(2).classCallCheck(this,e);var i=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(e).call(this));return i.$crawlers=[],i.$id=t,i}return require(2).inherits(e,r),require(2).createClass(e,[{key:"registerCrawler",value:function(r){function e(r){(0,_utils.arrRemove)(i,r)}function t(r){if(!(r instanceof _Crawler.Crawler))throw Error((0,_ErrorCode.TYPE_ERROR)("Crawler"));return(0,_utils.arrAdd)(i,r)}var i=this.$crawlers;if("string"==typeof r){var a="!"==r[0],n=a?r.substring(1):r;_CrawlerCache.CrawlerCache.defaultCache.requireCrawlers(n).forEach(a?e:t)}else t(r)}},{key:"matchCrawler",value:function(r){return this.$crawlers?(0,_utils.arrFind)(this.$crawlers,function(e){return e.test(r)}):void 0}},{key:"crawlAsync",value:function(r){var e=this;this.currentContext&&this.currentContext.dispose();var t=this.currentContext=new _CrawlerContext.CrawlerContext({getCrawler:function(r){return e.matchCrawler(r)}});return t.redirectAsync(r)}},{key:"id",get:function(){return this.$id}}]),e}(_EventEmitter2.EventEmitter);


},{"13":13,"14":14,"2":2,"24":24,"26":26,"27":27,"28":28}],30:[function(require,module,exports){
"use strict";function crawlAsync(e,r){var t,n,o,i,c,a,s,u,m,d,l,p,_=this;return regeneratorRuntime.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(p=function(){return i&&c&&a&&s},t=r.title,n=e,o=(0,_dom.$)("#SOHUCS",r).getAttribute("sid"),i=void 0,c=void 0,a=void 0,s=void 0,u=(0,_utils.arrFind)((0,_dom.$$)("script",r),function(e){return/var\s+appid/.test(e.innerHTML)}),u&&(0,_parser.breakableParse)(u.innerHTML,{VarDef:function(e,r){var t=e.name.name;"appid"==t?a=e.value.value:"conf"==t?c=e.value.value:"_config"==t&&(s=e.value.evaluateJSON(),i=s.categoryId),p()&&r()}}),!p()){f.next=14;break}return f.next=7,requestTopicIdAsync({categoryId:i,topicsid:o,title:t,topicurl:n,conf:c,clientId:a});case 7:if(m=f.sent,d=m.response.listData.topic_id,!d){f.next=14;break}return f.delegateYield(regeneratorRuntime.mark(function v(){var e,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,requestCommentsAsync({client_id:a,topic_id:d});case 2:return m=t.sent,e=m.response,r={},e.comments.forEach(function(e){return recursiveGetComment(e,r)}),t.abrupt("return",{v:{_:Date.now(),currentPage:0,totalPage:Math.floor(e.cmt_sum/PAGE_SIZE),comments:Object.getOwnPropertyNames(r).map(function(e){return r[e]})}});case 6:case"end":return t.stop()}},v,_)})(),"t0",11);case 11:if(l=f.t0,"object"!=typeof l){f.next=14;break}return f.abrupt("return",l.v);case 14:throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND);case 15:case"end":return f.stop()}},_marked[0],this)}function requestCommentsAsync(e){var r=e.client_id,t=e.topic_id;return(0,_Crawler.requestAsync)({url:"http://changyan.sohu.com/api/2/topic/comments",responseType:"json",query:{client_id:r,topic_id:t,page_size:PAGE_SIZE,style:"floor",inside_floor:3,outside_floor:2}})}function requestTopicIdAsync(e){var r=e.categoryId,t=e.topicsid,n=e.conf,o=e.clientId,i=e.title,c=e.topicurl;return(0,_Crawler.requestAsync)({url:"http://changyan.sohu.com/node/html",responseType:"json",query:{t:Date.now(),title:i,category_id:r,topicsid:t,conf:n,topicurl:c,client_id:o,spSize:5,pageConf:JSON.stringify({categoryId:r,ymUpdate:!0})}})}function recursiveGetComment(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],t=e.user_id+":"+e.user_id,n=e.content,o=e.comments;return r[t]||(r[t]={id:t,content:n}),o&&o.forEach(function(e){return recursiveGetComment(e,r)}),r}var _Crawler=require(26),_parser=require(104),_utils=require(24),_ErrorCode=require(13),_dom=require(19),_marked=[crawlAsync].map(regeneratorRuntime.mark),commentCrawler=new _Crawler.Crawler("*.gamersky.com/*/\\d+/*.shtml",crawlAsync,{title:"comment:gamersky"});commentCrawler.registerInCache("comment.gamersky");var PAGE_SIZE=40;


},{"104":104,"13":13,"19":19,"24":24,"26":26}],31:[function(require,module,exports){
"use strict";function crawlAsync(e,r){var t,n,a,o,s,c,i,u,m;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(m=function(){return n&&a&&o},t=(0,_utils.arrFind)((0,_dom.$$)("script",r.head),isRequiredScript),n=void 0,a=void 0,o=void 0,!t){e.next=12;break}if((0,_parser.breakableParse)(t.innerHTML,{ObjectKeyVal:function(e,r){switch(e.key){case"skey":return n=e.value.value;case"docName":return a=e.value.value;case"docUrl":return o=e.value.value;default:return m()&&r()}}}),!m()){e.next=12;break}return e.next=7,(0,_Crawler.requestAsync)({url:apiAddress,responseType:"json",query:{format:"json",p:1,job:1,pageSize:pageSize,skey:n,docName:a,docUrl:o}});case 7:return s=e.sent,c=s.response,i=c.count,u=c.comments,e.abrupt("return",{totalPage:i,currentPage:1,comments:(0,_utils.arrFilterMappedResult)(u,function(e){return e.comment_contents&&{content:e.comment_contents,id:n+":"+e.comment_id}})});case 12:throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND);case 13:case"end":return e.stop()}},_marked[0],this)}function isRequiredScript(e){var r=e.innerHTML;return r&&scriptRegexps.some(function(e){return e.test(r)})}var _Crawler=require(26),_parser=require(104),_dom=require(19),_utils=require(24),_ErrorCode=require(13),_marked=[crawlAsync].map(regeneratorRuntime.mark),pageSize=20,commentCrawler=new _Crawler.Crawler("*.ifeng.com/*/*/*.shtml",crawlAsync,{title:"comment:ifeng"}),apiAddress="http://comment.ifeng.com/get.php";commentCrawler.registerInCache("comment.ifeng");var scriptRegexps=[/define\(('|")detail\1/,/var\s+detail\s*=\s*\{/];


},{"104":104,"13":13,"19":19,"24":24,"26":26}],32:[function(require,module,exports){
"use strict";function crawAsync(e,r){var t=r.totalPage;return{currentPage:0,totalPage:t,comments:(0,_utils.arrFilterMappedResult)(r.wareDetailComment.commentInfoList,function(e){return e.commentData&&{id:e.guid,content:e.commentData}})}}var _Crawler=require(26),_request=require(23),_utils=require(24),_ErrorCode=require(13),commentCrawler=new _Crawler.Crawler("item.jd.com/*.html",crawAsync,{title:"comment:JD"}),apiAddress="http://item.m.jd.com/newComments/newCommentsDetail.json",PAGE_COUNT=20;commentCrawler.registerInCache("comment.jd"),commentCrawler.getCrawlContent=function(e){var r=void 0;if(/(\d+)\.html$/.test(e.split("?")[0])&&(r=RegExp.$1))return(0,_request.requestAsync)({url:apiAddress,responseType:"json",resolveProperty:"response",method:"post",headers:{ContentType:"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},data:(0,_request.stringfyUrlQuery)({offset:1,type:0,wareId:r,num:PAGE_COUNT})});throw new Error(_ErrorCode.INVALID_URL)};


},{"13":13,"23":23,"24":24,"26":26}],33:[function(require,module,exports){
"use strict";function crawlAsync(e,r){var t,n,o,s;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,t=analysisScripts((0,_dom.$$)("script",r)),a.next=4,(0,_Crawler.requestAsync)({url:commentURL(t),responseType:"document"});case 4:return n=a.sent,o=analysisCommentPage(n.response),a.next=8,getProductKeyAsync(o);case 8:return s=a.sent,a.next=11,getCommentAsync(t.threadId,s);case 11:return a.abrupt("return",a.sent);case 14:return a.prev=14,a.t0=a["catch"](0),a.abrupt("return",co(crawlPhotoPageAsync(e,r)));case 17:case"end":return a.stop()}},_marked[0],this,[[0,14]])}function crawlPhotoPageAsync(e,r){var t,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(0,_utils.arrFind)((0,_dom.$$)("script",r),function(e){return/productKey/.test(e.innerHTML)}),!t){e.next=5;break}if(n=function(){var e=void 0,r=void 0;return(0,_vm.breakableParse)(t.innerHTML,{Object:function(t,n){t.properties.some(function(t){return"productKey"==t.key?e=t.value.value:"docId"==t.key&&(r=t.value.value),e&&r})&&n()}}),e&&r?{v:getCommentAsync(r,e)}:void 0}(),"object"!=typeof n){e.next=5;break}return e.abrupt("return",n.v);case 5:throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND);case 6:case"end":return e.stop()}},_marked[1],this)}function getCommentAsync(e,r){return(0,_Crawler.requestAsync)({url:"http://comment.news.163.com/api/v1/products/"+r+"/threads/"+e+"/comments/newList?limit="+pageSize+"&headLimit=1&tailLimit=2&_="+Date.now(),responseType:"json",resolveProperty:"response"}).then(function(e){var r=[];return(0,_utils.forEach)(e.comments,function(e){return e.content&&r.push({content:e.content,id:e.postId})}),{comments:r,currentPage:0,totalPage:Math.floor(e.newListSize/pageSize)}})}function getProductKeyAsync(e){return productKey?Promise.resolve(productKey):(0,_Crawler.requestAsync)({url:e}).then(function(e){if(/var\s+productKey\s*=\s*('|")(\w+)\1/.test(e.response))return productKey=RegExp.$2;throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND)})}function analysisCommentPage(e){var r=(0,_utils.arrFind)((0,_dom.$$)("script",e),function(e){return e.src.indexOf("/tiepage.js")>-1});if(r)return r.src;throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND)}function analysisScripts(e){var r=void 0,t=void 0,n=void 0,o=void 0,s=!0,a=!1,c=void 0;try{for(var i,u=e[Symbol.iterator]();!(s=(i=u.next()).done);s=!0){var m=i.value,d=m.innerHTML;if(/threadId\s*=\s*("|')([a-zA-Z0-9]+)\1/.test(d)&&(n=RegExp.$2),/boardId\s*=\s*("|")([a-zA-Z0-9_]+)\1/.test(d)&&(t=RegExp.$2),/tieChannel\s*=\s*("|")(\w+)\1/.test(d)&&(o=RegExp.$2),/host\s*=\s*tieChannel/.test(d)?r=o:/host\s*=\s*("|")(\w+)\1/.test(d)&&(r=RegExp.$2),r&&t&&n)return{host:r,boardId:t,threadId:n}}}catch(l){a=!0,c=l}finally{try{!s&&u["return"]&&u["return"]()}finally{if(a)throw c}}throw new Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND)}function commentURL(e){return"http://comment."+e.host+".163.com/"+e.boardId+"/"+e.threadId+".html"}var _Crawler=require(26),_utils=require(24),_vm=require(103),_dom=require(19),_ErrorCode=require(13),_marked=[crawlAsync,crawlPhotoPageAsync].map(regeneratorRuntime.mark),commentCrawler=new _Crawler.Crawler("news.163.com/*/*/*/*.html",crawlAsync,{title:"comment:news-163"}),picCommentCrawler=new _Crawler.Crawler("*.163.com/photoview/*/*.html",crawlPhotoPageAsync,{title:"comment:pic-163"});commentCrawler.registerInCache("comment.163.news"),picCommentCrawler.registerInCache("comment.163.pic");var pageSize=40,productKey=void 0;


},{"103":103,"13":13,"19":19,"24":24,"26":26}],34:[function(require,module,exports){
"use strict";function crawlAsync(e,r){var t,n,o,a,c;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=void 0,!(0,_dom.$$)("script",r).some(function(e){return commentIdExp.test(e.innerHTML)||articleIdExp.test(e.innerHTML)})){e.next=11;break}return e.next=4,(0,_Crawler.requestAsync)({url:apiAddress.replace("$",t=RegExp.$1),responseType:"json",query:{_:Date.now(),reqnum:pageSize}});case 4:if(n=e.sent,o=n.response,a=o.data,c=o.errorCode,!c){e.next=10;break}throw new Error(n.response.errorMsg,c);case 10:return e.abrupt("return",{currentPage:1,totalPage:Math.floor(a.total/pageSize),comments:(0,_utils.arrFilterMappedResult)(a.commentid,function(e){return e.content&&{content:e.content,id:e.id}})});case 11:throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND);case 12:case"end":return e.stop()}},_marked[0],this)}var _Crawler=require(26),_dom=require(19),_ErrorCode=require(13),_utils=require(24),_marked=[crawlAsync].map(regeneratorRuntime.mark),commentCrawler=new _Crawler.Crawler("*.qq.com/a/*/*.htm",crawlAsync,{title:"comment:qq"});commentCrawler.registerInCache("comment.qq");var commentIdExp=/cmt_id\s*=\s*['"]?(\d+)\b/,articleIdExp=/aid\s*:\s*"(\d+)"/,apiAddress="http://coral.qq.com/article/$/comment",pageSize=20;


},{"13":13,"19":19,"24":24,"26":26}],35:[function(require,module,exports){
"use strict";function crawlAsync(e,r){var t,n,o,i,c,s,a,u,m=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u=function(){return i},t=r.title,n=(0,_utils.arrFind)((0,_dom.$$)("script",r),function(e){return/var\s+entityId/.test(e.innerHTML)}),o=void 0,i="cyqemw6s1",n&&(0,_parser.breakableParse)(n.innerHTML,{VarDef:function(e,r){var t=e.name.name;"entityId"===t&&(o=e.value.value),u()&&r()}}),!u()){e.next=13;break}return e.next=6,requestTopicIdAsync({topicsid:o,title:t,clientId:i});case 6:if(c=e.sent,s=c.response.listData.topic_id,!s){e.next=13;break}return e.delegateYield(regeneratorRuntime.mark(function l(){var e,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,requestCommentsAsync({client_id:i,topic_id:s});case 2:return c=t.sent,e=c.response,r={},e.comments.forEach(function(e){return recursiveGetComment(e,r)}),t.abrupt("return",{v:{_:Date.now(),currentPage:0,totalPage:Math.floor(e.cmt_sum/PAGE_SIZE),comments:Object.getOwnPropertyNames(r).map(function(e){return r[e]})}});case 6:case"end":return t.stop()}},l,m)})(),"t0",10);case 10:if(a=e.t0,"object"!=typeof a){e.next=13;break}return e.abrupt("return",a.v);case 13:throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND);case 14:case"end":return e.stop()}},_marked[0],this)}function requestCommentsAsync(e){var r=e.client_id,t=e.topic_id;return(0,_Crawler.requestAsync)({url:"http://changyan.sohu.com/api/2/topic/comments",responseType:"json",query:{client_id:r,topic_id:t,page_size:PAGE_SIZE,style:"floor",inside_floor:3,outside_floor:2}})}function requestTopicIdAsync(e){var r=e.topicsid,t=e.clientId,n=e.title;return(0,_Crawler.requestAsync)({url:commentURL,responseType:"json",query:{t:Date.now(),title:n,topicsid:r,client_id:t,spSize:5,pageConf:{}}})}function recursiveGetComment(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],t=e.user_id+":"+e.user_id,n=e.content,o=e.comments;return r[t]||(r[t]={id:t,content:n}),o&&o.forEach(function(e){return recursiveGetComment(e,r)}),r}var _Crawler=require(26),_parser=require(104),_utils=require(24),_ErrorCode=require(13),_dom=require(19),_marked=[crawlAsync].map(regeneratorRuntime.mark),PAGE_SIZE=40,commentCrawler=new _Crawler.Crawler("*.sohu.com/\\d+/*.shtml",crawlAsync,{title:"comment:sohu"}),commentURL="http://changyan.sohu.com/node/html?";commentCrawler.registerInCache("comment.sohu");


},{"104":104,"13":13,"19":19,"24":24,"26":26}],36:[function(require,module,exports){
"use strict";function crawlAsync(e,r){var t,n,o=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(0,_dom.$)("#reviews",r),!t){e.next=6;break}return e.delegateYield(regeneratorRuntime.mark(function a(){var e,r,n,u,s,c,m;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return e=t.getAttribute("data-listApi"),r=(0,_request.getUrlQuery)(e),n=r.auctionNumId,u=r.userNumId,o.next=6,(0,_request.requestAsync)({url:commentURL,query:{auctionNumId:n,userNumId:u,showContent:1,currentPageNum:1,orderType:"sort_weight"}});case 6:return s=o.sent,c=s.response.trim(),m=JSON.parse(c.substr(1,c.length-2)),o.abrupt("return",{v:{currentPage:m.currentPageNum,totalPage:m.total,comments:(0,_utils.arrFilterMappedResult)(m.comments,function(e){return e.content?{content:e.content,id:n+":"+e.rateId}:void 0})}});case 9:case"end":return o.stop()}},a,o)})(),"t0",3);case 3:if(n=e.t0,"object"!=typeof n){e.next=6;break}return e.abrupt("return",n.v);case 6:throw Error((0,_ErrorCode.DOM_NODE_NOT_FOUND)("#reviews"));case 7:case"end":return e.stop()}},_marked[0],this)}var _Crawler=require(26),_request=require(23),_dom=require(19),_ErrorCode=require(13),_utils=require(24),_marked=[crawlAsync].map(regeneratorRuntime.mark),tbCrawler=new _Crawler.Crawler("item.taobao.com/item.htm?*",crawlAsync,{title:"comment:taobao"}),commentURL="https://rate.taobao.com/feedRateList.htm?";tbCrawler.registerInCache("comment.taobao");


},{"13":13,"19":19,"23":23,"24":24,"26":26}],37:[function(require,module,exports){
"use strict";function crawlAsync(e,r){var t,a,n,o=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(0,_utils.arrFind)((0,_dom.$$)("script",r),function(e){return/TShop\.Setup/.test(e.innerHTML)}),!t){e.next=9;break}if(a=void 0,(0,_parser.breakableParse)(t.innerHTML,{Call:function(e,r){"Setup"==e.expression.property&&"TShop"==e.expression.expression.name&&(a=e.args[0].evaluateJSON(),r())}}),!a){e.next=9;break}return e.delegateYield(regeneratorRuntime.mark(function i(){var e,r,t,n,s,m,u;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return e=a.rateConfig,r=e.itemId,t=e.spuId,n=e.sellerId,o.next=6,(0,_Crawler.requestAsync)({url:commentURL,query:{itemId:r,spuId:t,sellerId:n,order:3}});case 6:return s=o.sent,m=JSON.parse("{"+s.response+"}"),u=m.rateDetail.rateList,o.abrupt("return",{v:{currentPage:m.rateDetail.paginator.page,totalPage:m.rateDetail.paginator.lastPage,comments:(0,_utils.arrFilterMappedResult)(u,function(e){return e.rateContent?{content:e.rateContent,id:n+":"+e.id}:0})}});case 9:case"end":return o.stop()}},i,o)})(),"t0",6);case 6:if(n=e.t0,"object"!=typeof n){e.next=9;break}return e.abrupt("return",n.v);case 9:throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND);case 10:case"end":return e.stop()}},_marked[0],this)}var _parser=require(104),_Crawler=require(26),_dom=require(19),_utils=require(24),_ErrorCode=require(13),_marked=[crawlAsync].map(regeneratorRuntime.mark),commentURL="https://rate.tmall.com/list_detail_rate.htm",commentCrawler=new _Crawler.Crawler("detail.tmall.com/item.htm?*",crawlAsync,{title:"tmall:comment"});commentCrawler.registerInCache("comment.tmall");


},{"104":104,"13":13,"19":19,"24":24,"26":26}],38:[function(require,module,exports){
"use strict";exports.CrawlerManager=exports.CRAWLER_CRAWL_SUCCESS=exports.CRAWLER_CRAWL_FAIL=exports.Crawler=void 0;var _Crawler=require(26);Object.defineProperty(exports,"Crawler",{enumerable:!0,get:function(){return _Crawler.Crawler}}),Object.defineProperty(exports,"CRAWLER_CRAWL_FAIL",{enumerable:!0,get:function(){return _Crawler.CRAWLER_CRAWL_FAIL}}),Object.defineProperty(exports,"CRAWLER_CRAWL_SUCCESS",{enumerable:!0,get:function(){return _Crawler.CRAWLER_CRAWL_SUCCESS}});var _CrawlerManager=require(29);Object.defineProperty(exports,"CrawlerManager",{enumerable:!0,get:function(){return _CrawlerManager.CrawlerManager}}),require(36),require(37),require(32),require(31),require(34),require(33),require(30),require(35),require(52),require(40),require(50),require(45),require(46),require(48),require(39),require(49),require(42),require(51),require(47),require(44),require(41),require(43);


},{"26":26,"29":29,"30":30,"31":31,"32":32,"33":33,"34":34,"35":35,"36":36,"37":37,"39":39,"40":40,"41":41,"42":42,"43":43,"44":44,"45":45,"46":46,"47":47,"48":48,"49":49,"50":50,"51":51,"52":52}],39:[function(require,module,exports){
"use strict";function crawl(e,r){var t=void 0,o=void 0,i=void 0,a=void 0;if((0,_common.$$)("script",r).some(function(e){return/qualities/.test(t=e.innerHTML)}),!t)throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND);return(0,_vm.breakableParse)(t,{ObjectKeyVal:function(e,r){function t(){i&&o&&r()}var a=e.key,l=e.value;return"title"==a?(i=l.value,t.call(this)):"qualities"==a?(o=l.evaluateJSON(),t.call(this)):void 0}}),o&&(a=[],(0,_common.forEach)(o,function(e,r){if(!isNaN(r)){var t=!0,o=!1,i=void 0;try{for(var l,n=e[Symbol.iterator]();!(t=(l=n.next()).done);t=!0){var u=l.value,s=lastPathComponent(u.type);"x-mpegURL"!==s&&a.push({link:u.url,quality:r,format:s})}}catch(c){o=!0,i=c}finally{try{!t&&n["return"]&&n["return"]()}finally{if(o)throw i}}}}),a.sort(function(e,r){return r.quality-e.quality})),{type:"video",title:i,files:a}}function lastPathComponent(e){var r=(0,_URLUtils.getPath)(e);return r.substr(r.lastIndexOf("/")+1)}var _Crawler=require(26),_common=require(21),_URLUtils=require(17),_ErrorCode=require(13),_vm=require(103),videoCrawler=new _Crawler.Crawler("www.dailymotion.com/video/*",crawl,{title:"video.dailyMotion",label:"dailyMotion"});videoCrawler.processRequestURL=function(e){return"http://www.dailymotion.com/embed/video/"+lastPathComponent(e)+"?api=postMessage&autoplay=false&fullscreen=auto&html=false&id=f189f28d88&info=false&sc_insite_webapp=true&webapp_referer="},videoCrawler.registerInCache("video.dailyMotion");


},{"103":103,"13":13,"17":17,"21":21,"26":26}],40:[function(require,module,exports){
"use strict";function crawlAsync(e,r){var t,i,a,o,n,s;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(t=r.title,i=/('|")?videoData\1:/g,a=(0,_common.arrFind)((0,_common.$$)("script",r),function(e){return i.test(e.innerHTML)}),o=void 0,n=/videos\/(\d+)/.test(e)&&RegExp.$1,a){u.next=3;break}throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND);case 3:if((0,_vm.breakableParse)(a.innerHTML,{ObjectKeyVal:function(e,r){if("videoData"==e.key){var t=e.value.evaluateJSON();t&&(o=t[0],o.video_id==n?r():o=null)}}}),o){u.next=6;break}throw Error();case 6:return s=o.dash_manifest?getVideoFilesByMeta(o):[],0==s.length&&(s=getVideoFiles(o)),u.abrupt("return",{type:"video",title:t,files:s});case 9:case"end":return u.stop()}},_marked[0],this)}function getVideoFilesByMeta(e){var r=xmlParser.parseFromString(e.dash_manifest,"text/xml");return(0,_common.$$)("Representation[FBQualityLabel]",r).map(function(r){var t=r.getAttribute("mimeType"),i=r.getAttribute("FBQualityLabel"),a=r.getAttribute("FBQualityClass"),o=t.substr(t.lastIndexOf("/")+1),n=(0,_common.$)("BaseURL",r);return n?{link:e[a+"_src"]||n.textContent,format:o,quality:i,width:+r.getAttribute("width"),height:+r.getAttribute("height")}:void 0}).filter(function(e){return e&&e.width&&e.height}).sort(function(e,r){return r.width-e.width})}function getVideoFiles(e){var r=e,t="mp4",i=r.hd_src,a=r.sd_src,o=r.md_src,n=[];return i&&n.push({link:i,format:t,quality:"HD"}),a&&n.push({link:a,format:t,quality:"SD"}),o&&n.push({link:o,format:t,quality:"MD"}),n}var _Crawler=require(26),_common=require(21),_vm=require(103),_ErrorCode=require(13),_marked=[crawlAsync].map(regeneratorRuntime.mark),videoCrawler=new _Crawler.Crawler("www.facebook.com/*/videos/*",crawlAsync,{title:"video.facebook",label:"facebook"});videoCrawler.registerInCache("video.facebook");var xmlParser=new DOMParser;


},{"103":103,"13":13,"21":21,"26":26}],41:[function(require,module,exports){
"use strict";function registerCrawler(r){var t=r.test,e=r.label,n=r.where;new _Crawler.Crawler(t,function(r){return requestFLVCD(r,n||e)},{title:"video."+e,label:"flvcd."+e}).registerInCache("video.flvcd."+e)}function requestFLVCD(r,t){return Promise.all(FLVCDFormat[t].split(",").map(function(e){return(0,_Crawler.requestAsync)({url:"http://vproyal.5233game.com/parse_android.php?format="+e+"&url="+r}).then(function(r){var e=JSON.parse(r.response);if(e.error)throw Error(e.error);return"CUSTOM"==e.TYPE?requestCustom(e,t):e})})).then(function(r){if(1==r.length){if(r[0].V.length)return formatFLVCDData(r[0]);throw Error("not download url")}throw Error("not support multiple resources")})}function requestCustom(r,t){return r=processCustomData(r,t),(0,_Crawler.requestAsync)({url:r.C}).then(function(e){var n=FLVCD_req_handler[t];if(!n)throw Error("unknown custom handler:"+t);return r.V=n(e,r).map(function(r){return{U:r}}),r})}function processCustomData(r,t){switch(t){case"tencent":return r.C=r.V[0].C,r;default:return r}}function formatFLVCDData(r){for(var t,e={files:[],url:r.url,title:r.title},n=r.formatList.split("|"),o=r.formatCodeList,u=r.V,a=0,l=u.length;l>a;a++)t=n[a],e.files.push({quality:videoQualityFormatTransform[t]||t,format:"mp4",formatCode:o[a],link:u[a].U});return e}function getJSONPropertyKey(r){return'"'==r[0]?r.substring(1,r.indexOf('"',1)):r.substring(0,r.indexOf(":"))}var _Crawler=require(26),_vm=require(103);[{test:"http://www.tudou.com/*",label:"tudou"},{test:"http://tv.sohu.com/*",label:"souhu"},{test:"http://www.56.com/*",label:"56"},{test:"http://www.le.com/ptv/*",label:"letv"},{test:"http://*.iqiyi.com/*",label:"iqiyi"},{test:"http://v.pptv.com/*",label:"pptv"},{test:"v.youku.com/v_show/id_*",label:"youku"}].forEach(registerCrawler);var FLVCDFormat={youku:"normal",tudou:"normal",tencent:"normal&new=1",souhu:"normal",56:"normal",letv:"normal",qiyi:"normal",pptv:"normal",fun:"normal",sina:"normal",xunlei:"normal"},FLVCD_req_handler={qiyi:function(r,t){return FLVCD_req_handler._common((0,_vm.parse)(r.response),getJSONPropertyKey(t.ts))},letv:function(r,t){return FLVCD_req_handler._common((0,_vm.parse)(r.response,{expression:!0}),getJSONPropertyKey(t.ts)).slice(1)},pptv:function(r,t){var e=r.responseXML.querySelector(t.te.substring(2,t.te.length-1)).innerHTML;return t.V.map(function(r){var t=r.U;return"http://"+e+t.slice(t.indexOf("/","http://".length+1))})},_common:function(r,t){var e=[];return(0,_vm.visitCode)(r,{ObjectKeyVal:function(r){r.key==t&&e.push(r.value.value)}}),e},tencent:function(r,t){var e=t.ts,n=t.te,o=r.response,u=o.indexOf(e)+e.length,a=o.indexOf(n,u),l=o.substring(u,a);return t.V.map(function(r){return r.U.replace("vvvkk123",l)})}},videoQualityFormatTransform={};try{videoQualityFormatTransform=JSON.parse(chrome.i18n.getMessage("videoQuality"))}catch(ex){}


},{"103":103,"26":26}],42:[function(require,module,exports){
"use strict";function crawl(r,e){var t,i=e.title,o=[],n="mp4";if((0,_common.$$)("script",e).some(function(r){return scriptExp.test(t=r.innerHTML)}))return(0,_vm.visitCode)(t,{Assign:function(r){var e,t=r.left,i=r.right;return"Dot"==t.TYPE&&scriptExp.test(t.property)&&(e=decodeURIComponent(i.value))&&o.push({quality:RegExp.$1,link:e,format:n}),!0},Defun:function(){return!0}}),o.sort(function(r,e){return e.quality>r.quality?1:-1}),i=i.substr(0,i.lastIndexOf("-")),{title:i,files:o};throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND)}var _Crawler=require(26),_common=require(21),_ErrorCode=require(13),_vm=require(103),videoCrawler=new _Crawler.Crawler("www.gaytube.com/media/*",crawl,{title:"video.gaytube",label:"gaytube"});videoCrawler.registerInCache("video.gaytube");var scriptExp=/quality_(\d+p)/i;


},{"103":103,"13":13,"21":21,"26":26}],43:[function(require,module,exports){
"use strict";function crawlAsync(e,t){var r,n,s,a,o;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=getID(e),n=t.resultObj.contentInfo[0].contentTitle,i.next=4,(0,_Crawler.requestAsync)({url:"http://getcdn.hotstar.com/AVS/besc?action=GetCDN&asJson=Y&channel=TABLET&id="+r+"&type=VOD",responseType:"json"});case 4:if(s=i.sent,a=s.response.resultObj.src,!/^https?:\/\//.test(a)){i.next=12;break}return i.next=9,(0,_Crawler.requestAsync)({url:a,responseType:"text",headers:{userAgent:SAFARI_UA}});case 9:return s=i.sent,o=parseM3U8Index(s.response).sort(function(e,t){return t.width-e.width}),i.abrupt("return",{title:n,files:o});case 12:case"end":return i.stop()}},_marked[0],this)}function getID(e){if(/\/(\d+)(\/watch)?$/.test(e))return RegExp.$1;throw Error("invalid hot star url")}function parseM3U8Index(e){var t=m3u8.createStream();return e.split("\n").forEach(function(e){return t.parse(e)}),t.m3u.items.StreamItem.map(function(e){var t=require(2).slicedToArray(e.attributes.attributes.resolution,2),r=t[0],n=t[1];return{link:e.properties.uri,width:r,height:n,quality:n+"p",format:"ts",downloadPlugin:"m3u8_download"}})}var _Crawler=require(26),_marked=[crawlAsync].map(regeneratorRuntime.mark),SAFARI_UA="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8",videoCrawler=new _Crawler.Crawler("www.hotstar.com/*/*/*",crawlAsync,{title:"video.hotstar",label:"hotstar"});videoCrawler.registerInCache("video.hotstar"),videoCrawler.processRequestURL=function(e){return"http://account.hotstar.com/AVS/besc?action=GetAggregatedContentDetails&channel=PCTV&contentId="+getID(e)},videoCrawler.processRequestResponseType=function(){return"json"};


},{"2":2,"26":26}],44:[function(require,module,exports){
"use strict";function crawl(r,e){var o,t,i=e.title,n="mp4";if((0,_common.$$)("script",e).some(function(r){return scriptExp.test(o=r.innerHTML)}))return(0,_vm.breakableParse)(o,{ObjectKeyVal:function(r,e){"sources"==r.key&&(t=[],(0,_common.forEach)(r.value.evaluateJSON(),function(r,e){return r&&t.push({link:r,quality:e,format:n})}),e())}}),t.sort(function(r,e){return e.quality>r.quality?1:-1}),i=i.substr(0,i.lastIndexOf("-")),{title:i,files:t};throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND)}var _Crawler=require(26),_vm=require(103),_common=require(21),_ErrorCode=require(13),videoCrawler=new _Crawler.Crawler("www.pornhd.com/videos/*",crawl,{title:"video.pornHD",label:"pornHD"});videoCrawler.registerInCache("video.pornHD");var scriptExp=/sources/;


},{"103":103,"13":13,"21":21,"26":26}],45:[function(require,module,exports){
"use strict";function crawl(r,e){var i,t=e.title,o=[];if((0,_dom.$$)("script",e).some(function(r){return scriptExp.test(i=r.innerHTML)}))return(0,_vm.breakableParse)(i,{VarDef:function(r,e){scriptExp.test(r.name.name)&&o.push({link:r.value.value,quality:RegExp.$1,format:"mp4"})}}),o.sort(function(r,e){return e.quality>r.quality?1:-1}),t=t.substr(0,t.lastIndexOf("-")),{title:t,files:o};throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND)}var _Crawler=require(26),_dom=require(19),_ErrorCode=require(13),_vm=require(103),videoCrawler=new _Crawler.Crawler("www.pornhub.com/view_video.php?viewkey=*",crawl,{title:"video.pornhub",label:"pornhub"});videoCrawler.registerInCache("video.pornhub");var scriptExp=/player_quality_(\d+p)/i;


},{"103":103,"13":13,"19":19,"26":26}],46:[function(require,module,exports){
"use strict";function crawl(r,e){var t,i,a,o="mp4",n=e.title.substr(0,e.title.lastIndexOf("|"))||e.title;if((0,_common.$$)("script",e).some(function(r){return(t=r.innerHTML).indexOf(scriptStart)>-1})&&((0,_vm.breakableParse)(t.substring(t.indexOf(scriptStart),t.indexOf(scriptEnd)),{Object:function(r,e){var t=r.properties;if(t.some(function(r){return"func"==r.key&&"initVideo"==r.value.value})){var o=(0,_common.arrFind)(t,function(r){return"params"==r.key}).value.elements;i=o[5].value,a=o[4].value,e()}}}),i))return{title:n,files:[{link:i,format:o,quality:"HD"},{link:a,format:o,quality:"MD"}]};throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND)}var _Crawler=require(26),_common=require(21),_ErrorCode=require(13),_vm=require(103),videoCrawler=new _Crawler.Crawler("www.redtube.com/*",crawl,{title:"video.redtube",label:"redtube",requestHeaders:{userAgent:_Crawler.iPhone_UA}});videoCrawler.registerInCache("video.redtube");var scriptStart="$rt.bootstrap.push",scriptEnd="$rt.bootstrap.start";


},{"103":103,"13":13,"21":21,"26":26}],47:[function(require,module,exports){
"use strict";function crawl(e,r){var t,o,i,a,n="mp4",l=(0,_common.$$)("script",r);if(l.some(function(e){return scriptExp.test(t=e.innerHTML)})?((0,_vm.breakableParse)(t,{ObjectKeyVal:function(e,t){"videoVars"==e.key&&(i=[],a=e.value.evaluateJSON(),o=a.video_title||r.title,(0,_common.forEach)(a,function(e,r){return/quality_(\d+0p)/.test(r)&&i.push({link:decodeURIComponent(e),quality:RegExp.$1,format:n})}),t())}}),i.sort(function(e,r){return r.quality>e.quality?1:-1})):l.some(function(e){return/sources/.test(t=e.innerHTML)})&&((0,_vm.breakableParse)(t,{ObjectKeyVal:function(e,r){"sources"==e.key&&(i=e.value.properties.map(function(e){return{link:"Call"==e.value.TYPE?decodeURIComponent(e.value.args[0].value):e.value.value,quality:e.key<10?"Normal":e.key}}),r())}}),o=(0,_common.$)(".videoTitle",r).innerHTML),!o||!i)throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND);var u=function(){var r=(/^(https?)/.test(e)?RegExp.$1:"https")+":";return i.forEach(function(e){return e.link=r+e.link}),{v:{title:o,files:i}}}();return"object"==typeof u?u.v:void 0}var _Crawler=require(26),_common=require(21),_ErrorCode=require(13),_vm=require(103),videoCrawler=new _Crawler.Crawler("www.thumbzilla.com/video/*",crawl,{title:"video.thumbzilla",label:"thumbzilla"});videoCrawler.registerInCache("video.thumbzilla");var scriptExp=/videoVars/;


},{"103":103,"13":13,"21":21,"26":26}],48:[function(require,module,exports){
"use strict";function crawl(r,e){var t,i=[],o="mp4";if((0,_common.$$)("script",e).some(function(r){return scriptExp.test(t=r.innerHTML)})){(0,_vm.breakableParse)(t,{Assign:function(r,e){if(r.left.TYPE="video_urls"==r.left.property){var t=r.right.evaluateJSON(),a=!0,l=!1,n=void 0;try{for(var u,s=qualities[Symbol.iterator]();!(a=(u=s.next()).done);a=!0){var v=u.value,c=t[v];c&&i.push({format:o,link:c,quality:v+"P"})}}catch(m){l=!0,n=m}finally{try{!a&&s["return"]&&s["return"]()}finally{if(l)throw n}}e()}}});var a=(0,_common.$)("#title_video_page",e);return{title:a?a.innerHTML:e.title,files:i.sort(function(r,e){return e.quality-r.quality})}}throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND)}var _Crawler=require(26),_common=require(21),_ErrorCode=require(13),_vm=require(103),videoCrawler=new _Crawler.Crawler("www.tube8.com/*/*",crawl,{title:"video.tube8",label:"tube8",requestHeaders:{userAgent:_Crawler.iPhone_UA}});videoCrawler.registerInCache("video.tube8");var scriptExp=/page_params\.video_urls/,qualities="720,480,240,180".split(",");


},{"103":103,"13":13,"21":21,"26":26}],49:[function(require,module,exports){
"use strict";function crawlAsync(e,r){var t,o,n,i,a,u,c;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(0,_common.$)(".player.js-player",r),t?n=t.getAttribute("data-config-url"):(0,_common.$$)("script",r).some(function(e){return/config_url/.test(o=e.innerHTML)})&&(0,_vm.breakableParse)(o,{ObjectKeyVal:function(e){"config_url"==e.key&&(n=e.value.value)}}),n){e.next=4;break}throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND);case 4:return e.next=6,(0,_Crawler.requestAsync)({url:n,responseType:"json",resolveProperty:"response"});case 6:return i=e.sent,a=i.video,u=i.request.files,c=[],u.codecs?u.codecs.forEach(function(e){return objForEach(u[e],function(e){return c.push(mapFile(e))})}):u.progressive&&u.progressive.forEach(function(e){return c.push(mapFile(e))}),e.abrupt("return",{type:"video",title:a.title,owner:a.owner.name,files:c.sort(function(e,r){return r.width-e.width})});case 10:case"end":return e.stop()}},_marked[0],this)}function mapFile(e){var r=e.width,t=e.height,o=e.quality;return{link:e.url,quality:o||r+"x"+t,width:r,height:t,format:/[\.\/](\w+)\?/.test(e.url)?RegExp.$1:"mp4"}}var _Crawler=require(26),_common=require(21),_vm=require(103),_ErrorCode=require(13),_marked=[crawlAsync].map(regeneratorRuntime.mark),videoCrawler=new _Crawler.Crawler(/vimeo\.com\/.*\d+$/i,crawlAsync,{title:"video.vimeo",label:"vimeo"});videoCrawler.registerInCache("video.vimeo");


},{"103":103,"13":13,"21":21,"26":26}],50:[function(require,module,exports){
"use strict";function crawlAsync(e,r){var t,i,o,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=r.title,(0,_dom.$$)("script",r).some(function(e){return!e.hasAttribute("src")&&/new\s+HTML5Player/.test(t=e.innerHTML)}),t&&(0,_vm.breakableParse)(t,{Call:function(e,r){var t=e.expression,a=t.property;if("Dot"==t.TYPE&&/setVideoUrl(Low|High)/.test(a)){var s=e.args[0].value;/setVideoUrlLow/.test(a)?o=s:/setVideoUrlHigh/.test(a)&&(i=s)}o&&i&&r()}}),!o&&!i){e.next=5;break}return e.abrupt("return",{type:"video",title:a.substring(0,a.lastIndexOf(" -")),files:[{quality:"high",link:i},{quality:"low",link:o}].filter(function(e){var r=e.link;return r?(/\.(mp4|3gp)/i.test(r)&&(e.format=RegExp.$1.toLowerCase()),1):void 0})});case 5:throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND);case 6:case"end":return e.stop()}},_marked[0],this)}var _Crawler=require(26),_dom=require(19),_ErrorCode=require(13),_vm=require(103),_marked=[crawlAsync].map(regeneratorRuntime.mark),videoCrawler=new _Crawler.Crawler("www.xvideos.com/video*/*",crawlAsync,{title:"video.xvideos",label:"xvideos",requestHeaders:{userAgent:_Crawler.iPhone_UA}});videoCrawler.registerInCache("video.xvideos");


},{"103":103,"13":13,"19":19,"26":26}],51:[function(require,module,exports){
"use strict";function crawl(r,e){var o,t,a,i="mp4";if((0,_common.$$)("script",e).some(function(r){return scriptExp.test(o=r.innerHTML)}))return(0,_vm.breakableParse)(o,{ObjectKeyVal:function(r,e){"sources"==r.key?(a=[],(0,_common.forEach)(r.value.evaluateJSON(),function(r,e){return r&&a.push({link:r,quality:e+"p",format:i})}),t&&a&&e()):"videoTitle"==r.key&&(t=r.value.value,t&&a&&e())}}),a.sort(function(r,e){return e.quality>r.quality?1:-1}),t=t||e.title,{title:t,files:a};throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND)}var _Crawler=require(26),_common=require(21),_ErrorCode=require(13),_vm=require(103),videoCrawler=new _Crawler.Crawler(["www.youporn.com/watch/*","www.youporn.com/channel/*/*"],crawl,{title:"video.youporn",label:"youporn"});videoCrawler.registerInCache("video.youporn");var scriptExp=/defaultQuality/;


},{"103":103,"13":13,"21":21,"26":26}],52:[function(require,module,exports){
"use strict";function crawlAsync(e,r){var t,o,n,u,a,i,s;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(t=/v=([\w\-_]+)/.exec(e)[1],youtubeVM){c.next=9;break}if(o=(0,_common.$)('script[name^="html5player"],script[name^="player"]',r)){c.next=5;break}throw Error(_ErrorCode.REQUIRED_SCRIPT_NOT_FOUND);case 5:return c.next=7,(0,_Crawler.requestAsync)({url:o.src,resolveProperty:"response"});case 7:n=c.sent,youtubeVM=new _youtube.YouTubeVM(n);case 9:return c.next=11,requireVideoInfoAsync(t);case 11:return u=c.sent,a=youtubeVM.formatVideoData(u,t),a.files.sort(function(e,r){return rank(r)-rank(e)}),a.type="video",a.label="youtube",downloader.downloadFeature.convertMP3&&(i=a.files,s=i.find(function(e){return"M4A"==e.format}),s&&(s.isAudio=!0,i.splice(i.indexOf(s)+1,0,Object.assign({downloadPlugin:_download.CONVERT_MP3_PLUGIN_KEY},s,{title:"MP3",itag:"c"+s.itag})))),c.abrupt("return",a);case 18:case"end":return c.stop()}},_marked[0],this)}function getYoutubeVMAsync(){return youtubeVM instanceof _youtube.YouTubeVM?Promise.resolve(youtubeVM):(0,_youtube.getPlayerScriptAddressAsync)().then(function(e){return(0,_Crawler.requestAsync)({url:"https://www.youtube.com"+e})}).then(function(e){return youtubeVM=new _youtube.YouTubeVM(e.response)})}function recoverDownloadURLAsync(e){return co(regeneratorRuntime.mark(function r(){var t,o,n,u,a,i;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(t=(0,_common.getUrlQuery)(e),o=t[_youtube.URL_RECOVER_KEY]){r.next=3;break}throw Error(_ErrorCode.INVALID_URL);case 3:return r.next=5,YouTubePending;case 5:return n=r.sent,r.next=8,requireVideoInfoAsync(o);case 8:if(u=r.sent,a=n.formatVideoData(u,o,{itag:t.itag}),i=a.files[0]){r.next=13;break}throw Error(_ErrorCode.INVALID_URL);case 13:return r.abrupt("return",i.link);case 14:case"end":return r.stop()}},r,this)}))}function rank(e){var r=0,t=(e.quality.match(/^\d+/)||[0])[0]/1e4;return e.acodec&&(r+=1),e.vcodec&&(r+=2),r+t}function requireVideoInfoAsync(e){return requestVideoData(getVideoRequestUrl(e))["catch"](function(r){if(150==r.errorcode)return requestVideoData(getVideoRequestUrl(e,1));throw r instanceof Error?r:Error(r.reason)})}function requestVideoData(e){return(0,_Crawler.requestAsync)({url:e}).then(function(e){if(/status=fail/i.test(e.response))throw(0,_common.getUrlQuery)(e.response);return e.response})}function getVideoRequestUrl(e,r){return r?"http://www.youtube.com/get_video_info?video_id="+e+"&eurl=https%3A%2F%2Fyoutube.googleapis.com%2Fv%2F"+e+"&sts=16582":"http://www.youtube.com/get_video_info?video_id="+e+"&asv=3&el=detailpage&hl=en_US&sts=16230"}exports.recoverDownloadURLAsync=recoverDownloadURLAsync;var _Crawler=require(26),_youtube=require(105),_ErrorCode=require(13),_common=require(21),_download=require(110),_marked=[crawlAsync].map(regeneratorRuntime.mark),youtubeVM=void 0,downloader=new _download.Downloader,YouTubePending=getYoutubeVMAsync(),videoCrawler=new _Crawler.Crawler("*.youtube.com/*?v=*",crawlAsync,{title:"video.youtube",label:"youtube"});videoCrawler.registerInCache("video.youtube");


},{"105":105,"110":110,"13":13,"21":21,"26":26}],53:[function(require,module,exports){
"use strict";exports.ExtensionWatchDog=exports.EVT_EXTENSION_DISABLED=void 0;var _utils=require(24),_EventEmitter2=require(14),EVT_EXTENSION_DISABLED=exports.EVT_EXTENSION_DISABLED="ext-disabled",ExtensionWatchDog=exports.ExtensionWatchDog=function(e){function t(){require(2).classCallCheck(this,t);var e=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this));return e.watchingIDs=[],e}return require(2).inherits(t,e),require(2).createClass(t,[{key:"watchExtID",value:function(e){var t=this;return(0,_utils.arrAdd)(this.watchingIDs,e),chrome.management.get(e,function(e){e.enabled||(t.emit(EVT_EXTENSION_DISABLED,[e]),t.shouldEnableExt(e)&&chrome.management.setEnabled(e.id,!0))}),this}},{key:"init",value:function(){var e=this;return chrome.management.onDisabled.addListener(function(t){e.watchingIDs.indexOf(t.id)>-1&&(e.emit(EVT_EXTENSION_DISABLED,[t]),e.shouldEnableExt(t)&&chrome.management.setEnabled(t.id,!0))}),this}},{key:"shouldEnableExt",value:function(e){return!0}}]),t}(_EventEmitter2.EventEmitter);


},{"14":14,"2":2,"24":24}],54:[function(require,module,exports){
"use strict";exports.QueryPool=exports.QUERY_POOL_STATUS_FAIL=exports.QUERY_POOL_STATUS_NETWORKING=exports.QUERY_POOL_STATUS_IDLE=void 0;var _request=require(23);Object.keys(_request).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _request[e]}})});var _EventEmitter2=require(14),QUERY_POOL_STATUS_IDLE=exports.QUERY_POOL_STATUS_IDLE=0,QUERY_POOL_STATUS_NETWORKING=exports.QUERY_POOL_STATUS_NETWORKING=1,QUERY_POOL_STATUS_FAIL=exports.QUERY_POOL_STATUS_FAIL=2,QueryPool=exports.QueryPool=function(e){function t(e){var r=e.baseAddress,n=e.queryInterval,s=void 0===n?1/0:n,u=e.continueWhenFail,i=e.data;require(2).classCallCheck(this,t);var o=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this));return o.baseAddress=r,o.queryInterval=s,o.status=QUERY_POOL_STATUS_IDLE,o.continueWhenFail=u,o.data=i||Object.create(null),o.$stopped=!0,o.$disabled=!1,o}return require(2).inherits(t,e),require(2).createClass(t,[{key:"configureRequestOptions",value:function(e){return{url:this.baseAddress,query:this.configureRequestQuery(e),headers:this.configureRequestHeaders(e),responseType:this.configureResponseType(e)}}},{key:"configureResponseType",value:function(){return"json"}},{key:"configureRequestQuery",value:function(){return{}}},{key:"configureRequestHeaders",value:function(){return{}}},{key:"onRequestData",value:function(e){}},{key:"onRequestFail",value:function(e){}},{key:"processXHR",value:function(e){var t=e.response;if(t&&!t.error)return t;throw Error("fail request")}},{key:"fetchDataAsync",value:function(e){return(0,_request.requestAsync)(e)}},{key:"requestAsync",value:function(){var e=this,t=this,r=t.$pending;return r||!function(){var n=function(e){t.$pending=null,t.status=e?QUERY_POOL_STATUS_IDLE:QUERY_POOL_STATUS_FAIL};e.status=QUERY_POOL_STATUS_NETWORKING,r=e.$pending=t.fetchDataAsync(t.configureRequestOptions(t.data)).then(e.processXHR).then(function(e){return n(!0),t.onRequestData(e,t.data)},function(e){return n(!1),t.onRequestFail(e,t.data)})}(),r}},{key:"stop",value:function(){return this.$stopped||(clearTimeout(this.$timeout),this.$stopped=!0),this}},{key:"start",value:function(){return this.$stopped&&!this.$disabled&&(this.$stopped=!1,this.loop()),this}},{key:"loop",value:function(){var e=this,t=this;t.$stopped||this.$disabled||!function(){var r=function(){t.$stopped||(t.$timeout=setTimeout(function(){return t.loop()},t.queryInterval))};e.requestAsync().then(function(){return r()},function(){return t.continueWhenFail&&r()})}()}},{key:"disabled",set:function(e){this.$disabled=!!e,e&&this.stop()}}]),t}(_EventEmitter2.EventEmitter);


},{"14":14,"2":2,"23":23}],55:[function(require,module,exports){
"use strict";exports.defaultRequestQueue=exports.RequestQueue=void 0;var _request=require(23),_EventEmitter2=require(14),_defer=require(18),EVT_REQ_SUCCESS="success",EVT_REQ_FAIL="fail",RequestQueue=exports.RequestQueue=function(e){function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],u=e.requestInterval,r=void 0===u?0:u;require(2).classCallCheck(this,t);var s=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this));return s.$pendingRequests=[],s.requestInterval=r,s.$requestPending=!1,s}return require(2).inherits(t,e),require(2).createClass(t,[{key:"onSuccess",value:function(e,t){return this.on(EVT_REQ_SUCCESS,e,t)}},{key:"onFail",value:function(e,t){return this.on(EVT_REQ_FAIL,e,t)}}]),require(2).createClass(t,[{key:"$doRequest",value:function(){var e=this,t=this,u=t.$pendingRequests.shift();!this.$requestPending&&u&&!function(){var r=function(){t.$requestPending=!1,t.$doRequest()};setTimeout(function(){return(0,_request.requestAsync)(u.option).then(function(t){e.emit(EVT_REQ_SUCCESS,[t]),u.deferred.resolve(t),r()},function(t){e.emit(EVT_REQ_FAIL,[t]),u.deferred.reject(t),r()})},e.requestInterval),e.$requestPending=!0}()}},{key:"requestAsync",value:function(e){var t=this.$pendingRequests,u=(0,_defer.defer)();return t.push({option:e,deferred:u}),this.$doRequest(),u.promise}}]),t}(_EventEmitter2.EventEmitter),defaultRequestQueue=exports.defaultRequestQueue=new RequestQueue({requestInterval:3e3});


},{"14":14,"18":18,"2":2,"23":23}],56:[function(require,module,exports){
"use strict";function splitMessage(e){for(var t=+new Date(e.startDate+" "+e.startTime),s=+new Date(e.startDate+" "+e.endTime),a=+new Date(getMessageEndDate(e)+" "+e.endTime),i=t,r=[],n=hashForMessage(e);a>=i;)r.push({content:e.content,url:e.url,msgHash:n,hide:!!e.hide,dispatchStart:i,dispatchEnd:i+s-t,id:messageIDSeed++}),i+=MS_PER_DAY;return r}function hashForMessage(e){var t="";return(0,_common.forEach)(e,function(e,s){"hide"!==s&&(t+=e)}),(0,_common.hashForString)(t)}function validateTip(e){if(e.url&&e.content){"string"==typeof e.hide&&(e.hide="true"==e.hide);var t=new Date(e.startDate+" "+e.startTime),s=new Date(getMessageEndDate(e)+" "+e.endTime),a=Date.now();return s>a&&s>t}}function getMessageEndDate(e){return e.endDate||e.startDate}exports.FlashRecordQueryPool=exports.EVENT_SEND_MESSAGE=void 0,exports.hashForMessage=hashForMessage;var _QueryPool2=require(54),_RequestQueue=require(55),_common=require(21),EVENT_SEND_MESSAGE=exports.EVENT_SEND_MESSAGE="send-msg",TMS_ADDRESS=void 0,MS_PER_DAY=864e5,DEF_QUERY_INTERVAL=3e5;TMS_ADDRESS="http://tce.alicdn.com/api/data.htm?ids=276951";var FlashRecordQueryPool=exports.FlashRecordQueryPool=function(e){function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],s=e.data,a=e.baseAddress,i=void 0===a?TMS_ADDRESS:a,r=e.queryInterval,n=void 0===r?DEF_QUERY_INTERVAL:r;require(2).classCallCheck(this,t);var u=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this,{queryInterval:n,continueWhenFail:!0,data:s,baseAddress:i}));return u.reset(),u}return require(2).inherits(t,e),require(2).createClass(t,[{key:"reset",value:function(){return this._messageQueue=[],this._cachedMessage={},clearTimeout(this._nextDispatchId),this._nextDispatchTime=1/0,this._dispatchingMessage=!1,this}},{key:"queryMessages",value:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.time;return this._messageQueue.filter(function(e){return!t||e.dispatchEnd>=t&&e.dispatchStart<=t})}},{key:"fetchDataAsync",value:function(e){return _RequestQueue.defaultRequestQueue.requestAsync(e)}},{key:"processXHR",value:function(e){var t=e.response[276951];if(t&&t.value)return t.value;throw Error("invalid data")}},{key:"onRequestData",value:function(e){var t=e.messages,s=this._cachedMessage,a=t?t.filter(validateTip):[],i=[],r=[];return a.forEach(function(e){var t=hashForMessage(e),a=s[t];a&&a.hide==e.hide||(i.push(e),s[t]=e),e.hide&&r.push(t)}),this.queueMessage(i,r),i}},{key:"queueMessage",value:function(e,t){var s=this._messageQueue;e.forEach(function(e){return s.push.apply(s,splitMessage(e))}),t&&t.length&&(this._messageQueue=s.filter(function(e){return-1==t.indexOf(e.msgHash)})),this.dispatchMessage()}},{key:"_dispatchMessage",value:function(){var e=Date.now(),t=[],s=this._nextDispatchTime,a=this._messageQueue=this._messageQueue.filter(function(a){var i=a.dispatchStart;return a.dispatchEnd<e||!i?!1:(e>=i?a._dispatched||(t.push(a),a._dispatched=!0):s=Math.min(s,i-e),!0)});return t.length&&this.emit(EVENT_SEND_MESSAGE,{messages:t}),a.length?s:-1}},{key:"dispatchMessage",value:function(){var e=this;if(!this._dispatchingMessage){this._dispatchingMessage=!0;var t=this._dispatchMessage();t>0&&this._nextDispatchTime>t&&(clearTimeout(this._nextDispatchId),this._nextDispatchId=setTimeout(function(){e.dispatchMessage()},t),this._nextDispatchTime=t),this._dispatchingMessage=!1}}}]),t}(_QueryPool2.QueryPool),messageIDSeed=1;


},{"2":2,"21":21,"54":54,"55":55}],57:[function(require,module,exports){
"use strict";var MSG_EVENT_REQUIRE_FLIP_JS=exports.MSG_EVENT_REQUIRE_FLIP_JS="require-flip-js",MSG_EVENT_CRAWL_ASYNC=exports.MSG_EVENT_CRAWL_ASYNC="crawl-async",MSG_EVENT_ECHO=exports.MSG_EVENT_ECHO="echo",MSG_EVENT_EVAL_CODE=exports.MSG_EVENT_EVAL_CODE="eval-code";


},{}],58:[function(require,module,exports){
"use strict";var MSG_EVENT_DANMAKU_USER_POST=exports.MSG_EVENT_DANMAKU_USER_POST="post-danmaku",MSG_EVENT_DANMAKU_QUERY_COMMENT=exports.MSG_EVENT_DANMAKU_QUERY_COMMENT="comment-danmaku",MSG_EVENT_DANMAKU_ENABLED_CHANGE=exports.MSG_EVENT_DANMAKU_ENABLED_CHANGE="danmaku-enabled-change",MSG_EVENT_DANMAKU_QUERY_SERVER=exports.MSG_EVENT_DANMAKU_QUERY_SERVER="danmaku-query-server",MSG_EVENT_DANMAKU_BUBBLE_LOOP_COUNT=exports.MSG_EVENT_DANMAKU_BUBBLE_LOOP_COUNT="danmaku-loop-count",MSG_EVENT_DANMAKU_REQUIRE_FLIP_WEB_GL=exports.MSG_EVENT_DANMAKU_REQUIRE_FLIP_WEB_GL="danmaku-flip-webGL",MSG_DATA_VALUE_COMMENT_SOURCE_CRAWLER=exports.MSG_DATA_VALUE_COMMENT_SOURCE_CRAWLER="crawler",MSG_DATA_VALUE_COMMENT_SOURCE_SERVER=exports.MSG_DATA_VALUE_COMMENT_SOURCE_SERVER="server",MSG_EVENT_DANMAKU_TOGGLE_DISPLAY=exports.MSG_EVENT_DANMAKU_TOGGLE_DISPLAY="toggle-danmaku-display",MSG_EVENT_DANMAKU_WEBGL_STATUS=exports.MSG_EVENT_DANMAKU_WEBGL_STATUS="danmaku-webgl-status",MSG_EVENT_DISABLE_DANMAKU_FEATURE=exports.MSG_EVENT_DISABLE_DANMAKU_FEATURE="disable-danmaku",MSG_EVENT_OPEN_DANMAKU_OPTION_PAGE=exports.MSG_EVENT_OPEN_DANMAKU_OPTION_PAGE="open-danmaku-option-page";


},{}],59:[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";


},{}],60:[function(require,module,exports){
"use strict";var MSG_EVENT_I18N_EBUSINESS_AMAZON_DRAW_GIFT=exports.MSG_EVENT_I18N_EBUSINESS_AMAZON_DRAW_GIFT="i18n-ebusiness-amazon-draw-gift",MSG_EVENT_I18N_EBUSINESS_AMAZON_SHOW=exports.MSG_EVENT_I18N_EBUSINESS_AMAZON_SHOW="i18n-ebusiness-amazon-show",MSG_EVENT_I18N_EBUSINESS_AMAZON_SAVE_USERINFO=exports.MSG_EVENT_I18N_EBUSINESS_AMAZON_SAVE_USERINFO="i18n-ebusiness-amazon-save-userinfo";


},{}],61:[function(require,module,exports){
"use strict";var MSG_EVENT_IMAGE_GALLERY_COLLECT_IMAGE=exports.MSG_EVENT_IMAGE_GALLERY_COLLECT_IMAGE="image-gallery-collect-img",MSG_EVENT_IMAGE_GALLERY_IMAGE_SIZE_FILTER=exports.MSG_EVENT_IMAGE_GALLERY_IMAGE_SIZE_FILTER="image-gallery-image-size-filter",STORAGE_KEY_IMAGE_GALLERY_SIZE_FILTER=exports.STORAGE_KEY_IMAGE_GALLERY_SIZE_FILTER="image-gallery-size-filter",MSG_EVENT_IMAGE_GALLERY_ENTER_GALLERY=exports.MSG_EVENT_IMAGE_GALLERY_ENTER_GALLERY="enter-image-gallery",DEF_IMAGE_FILTER_WIDTH=exports.DEF_IMAGE_FILTER_WIDTH=200,DEF_IMAGE_FILTER_HEIGHT=exports.DEF_IMAGE_FILTER_HEIGHT=150;


},{}],62:[function(require,module,exports){
"use strict";var _danmaku=require(58);Object.keys(_danmaku).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _danmaku[e]}})});var _common=require(57);Object.keys(_common).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _common[e]}})});var _flashRecord=require(59);Object.keys(_flashRecord).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _flashRecord[e]}})});var _videoDownload=require(68);Object.keys(_videoDownload).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _videoDownload[e]}})});var _retailerMode=require(64);Object.keys(_retailerMode).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _retailerMode[e]}})});var _statistic=require(66);Object.keys(_statistic).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _statistic[e]}})});var _sellerAssist=require(65);Object.keys(_sellerAssist).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _sellerAssist[e]}})});


},{"57":57,"58":58,"59":59,"64":64,"65":65,"66":66,"68":68}],63:[function(require,module,exports){
"use strict";var PRICE_RECOMMEND_BUTTON_LAYER_ID=exports.PRICE_RECOMMEND_BUTTON_LAYER_ID="uc_price_recommend_btn_layer",PRICE_RECOMMEND_BUTTON_ROOT_ID=exports.PRICE_RECOMMEND_BUTTON_ROOT_ID="uc_price_recommend_btn",PRICE_RECOMMEND_WINDOW_LAYER_ID=exports.PRICE_RECOMMEND_WINDOW_LAYER_ID="uc_price_recommend_window_layer",PRICE_RECOMMEND_WINDOW_ROOT_ID=exports.PRICE_RECOMMEND_WINDOW_ROOT_ID="uc_price_recommend_window",HTML_CLASS_NAME_CONTROL=exports.HTML_CLASS_NAME_CONTROL="uc-price-recommend",MSG_EVENT_QUERY_CAT_ID_FROM_SERVER=exports.MSG_EVENT_QUERY_CAT_ID_FROM_SERVER="query-cat-id",MSG_EVENT_QUERY_KEY_PRICE_FROM_SERVER=exports.MSG_EVENT_QUERY_KEY_PRICE_FROM_SERVER="query-key-price",GET_CAT_DATA_SERVER_API=exports.GET_CAT_DATA_SERVER_API="https://browser.taobao.com/config/openCache.do?",GET_CAT_KEY_NAME=exports.GET_CAT_KEY_NAME="sellerCate",GET_PRICE_KEY_NAME=exports.GET_PRICE_KEY_NAME="sellerPrice";


},{}],64:[function(require,module,exports){
"use strict";var MSG_EVENT_SHOULD_INJECT_QN_BTN=exports.MSG_EVENT_SHOULD_INJECT_QN_BTN="inject-QNBTN?",MSG_EVENT_DISABLE_QN_INJECTION=exports.MSG_EVENT_DISABLE_QN_INJECTION="disable-QNBTN",STORAGE_KEY_USER_DISABLE_QN_INJECTION=exports.STORAGE_KEY_USER_DISABLE_QN_INJECTION="QN_Injection_Disabled",MSG_EVENT_QUERY_RETAILER_AUTOCOMPLETE_INFO=exports.MSG_EVENT_QUERY_RETAILER_AUTOCOMPLETE_INFO="query-retailer-autocomplete-info",MSG_EVENT_SAVE_RETAILER_AUTOCOMPLETE_INFO=exports.MSG_EVENT_SAVE_RETAILER_AUTOCOMPLETE_INFO="save-retailer-autocomplete-info",MSG_EVENT_CAN_OPEN_NEW_RETAILER_WINDOW=exports.MSG_EVENT_CAN_OPEN_NEW_RETAILER_WINDOW="can-open-new-retailer-window",MSG_EVENT_OPEN_NEW_RETAILER_WINDOW=exports.MSG_EVENT_OPEN_NEW_RETAILER_WINDOW="open-new-retailer-window";


},{}],65:[function(require,module,exports){
"use strict";var MSG_EVENT_TEST=exports.MSG_EVENT_TEST="test",MSG_EVENT_CAN_SAVE_DESKTOP_SHORTCUT=exports.MSG_EVENT_CAN_SAVE_DESKTOP_SHORTCUT="can-save-desktop-shortcut",MSG_EVENT_SAVE_DESKTOP_SHORTCUT=exports.MSG_EVENT_SAVE_DESKTOP_SHORTCUT="save-desktop-shortcut";


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


},{}],67:[function(require,module,exports){
"use strict";var MSG_EVENT_INJECTION_TEST_START=exports.MSG_EVENT_INJECTION_TEST_START="t-inject-start",MSG_EVENT_INJECTION_TEST_INJECTION_CHECK=exports.MSG_EVENT_INJECTION_TEST_INJECTION_CHECK="t-inject-check",MSG_EVENT_INJECTION_TEST_INJECTION_MULTIPLE_TIME=exports.MSG_EVENT_INJECTION_TEST_INJECTION_MULTIPLE_TIME="t-inject-multiple",MSG_EVENT_INJECTION_TEST_INJECTION_RELOAD=exports.MSG_EVENT_INJECTION_TEST_INJECTION_RELOAD="t-inject-reload",MSG_EVENT_TEST_RESET_DATA=exports.MSG_EVENT_TEST_RESET_DATA="reset-data",MSG_EVENT_FLASH_RECORD_TIP_QUERY_TAB_MESSAGES=exports.MSG_EVENT_FLASH_RECORD_TIP_QUERY_TAB_MESSAGES="tab-msg",MSG_EVENT_SEND_MSG_WITH_PROGRESS=exports.MSG_EVENT_SEND_MSG_WITH_PROGRESS="send-msg-with-progress";


},{}],68:[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";


},{}],69:[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";


},{}],70:[function(require,module,exports){
"use strict";exports.Permission=exports.PERMISSION_TYPE_CHROME_APP=exports.PERMISSION_TYPE_CONTENT_SCRIPT=void 0;var _registerCrawlerGroup=require(93),_ErrorCode=require(13),_utils=require(24),_crawler=require(97),PERMISSION_TYPE_CONTENT_SCRIPT=exports.PERMISSION_TYPE_CONTENT_SCRIPT="script",PERMISSION_TYPE_CHROME_APP=exports.PERMISSION_TYPE_CHROME_APP="app",Permission=exports.Permission=function(){function r(e){var t=e.type,l=e.id,a=e.crawlerGroupIDs,u=e.crawlerResultCount,s=void 0===u?10:u;require(2).classCallCheck(this,r),this.id=l,this.type=t,this.crawlerGroupIDs=a,this.$crawlerResultCache=[],this.crawlerResultCount=s}return require(2).createClass(r,[{key:"crawlerResultCount",set:function(r){this.$crawlerResultCount=+r,this.$crawlerResultCache=this.$crawlerResultCache.slice(0,r)},get:function(){return this.$crawlerResultCount}}]),require(2).createClass(r,[{key:"crawlAsync",value:function(r){var e=this,t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],l=t.from,a=this.getCachedResult(r);if(a)return Promise.resolve(a);var u=!0,s=!1,i=void 0;try{for(var o,n=function(){var t=o.value,a=(0,_registerCrawlerGroup.getCrawlerManager)(t);return a?{v:a.crawlAsync(r).then(function(t){return(0,_crawler.reportCrawlResult)(a.currentContext.$currentCrawler.title,!0,l,r),e.cacheCrawlerResult(r,t)},function(e){throw(0,_crawler.reportCrawlResult)(a.currentContext.$currentCrawler.title,!1,l,r),e})}:void 0},c=this.crawlerGroupIDs[Symbol.iterator]();!(u=(o=c.next()).done);u=!0){var C=n();if("object"==typeof C)return C.v}}catch(h){s=!0,i=h}finally{try{!u&&c["return"]&&c["return"]()}finally{if(s)throw i}}return Promise.reject(new Error(_ErrorCode.CRAWLER_URL_NOT_SUPPORTED))}},{key:"matchCrawler",value:function(r){var e=!0,t=!1,l=void 0;try{for(var a,u=this.crawlerGroupIDs[Symbol.iterator]();!(e=(a=u.next()).done);e=!0){var s=a.value,i=(0,_registerCrawlerGroup.getCrawlerManager)(s),o=void 0;if(i&&(o=i.matchCrawler(r)))return o}}catch(n){t=!0,l=n}finally{try{!e&&u["return"]&&u["return"]()}finally{if(t)throw l}}}},{key:"getCachedResult",value:function(r){var e=(0,_utils.arrFind)(this.$crawlerResultCache,function(e){return e.url==r});return e?e.result:void 0}},{key:"cacheCrawlerResult",value:function(r,e){var t=this.$crawlerResultCache,l=this.$crawlerResultCount;for(t.push({url:r,result:e});t.length>l;)t.shift();return e}},{key:"clearCache",value:function(){this.$crawlerResultCache=[]}}]),r}();


},{"13":13,"2":2,"24":24,"93":93,"97":97}],71:[function(require,module,exports){
"use strict";require(72);


},{"72":72}],72:[function(require,module,exports){
"use strict";var _youtube=require(52),_ucNexus=require(114);(0,_ucNexus.onNeedRecalculateDownloadUrl)(function(e){var u=e.origin_download_url,r=e.download_id;(0,_youtube.recoverDownloadURLAsync)(u).then(function(e){return(0,_ucNexus.recalculateURL)(r,!0,e)},function(){return(0,_ucNexus.recalculateURL)(r,!1,"")})});


},{"114":114,"52":52}],73:[function(require,module,exports){
(function (global){
"use strict";function exportToUCNexus(e){(0,_utils.forEach)(e,function(e,o){exportTarget.hasOwnProperty(o)&&console.warn(o+" has been exports to ucNexus"),exportTarget[o]=e})}exports.exportToUCNexus=exportToUCNexus;var _utils=require(24),exportTarget=global.UCNexus={};


}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"24":24}],74:[function(require,module,exports){
"use strict";


},{}],75:[function(require,module,exports){
"use strict";function notifyTabsEnableChange(e){var n={enabled:e};(0,_tabs.queryTabsAsync)({windowType:"normal"}).then(function(e){return e.forEach(function(e){return(0,_chrome.sendMsgToTab)(e.id,_msgConst.MSG_EVENT_DANMAKU_ENABLED_CHANGE,n)})})}function sendUserComment(e,n){(0,_tabs.getTabAsync)(n).then(function(n){return(0,_DANMAKU.postMessageAsync)({message:e,pageURL:n.url})}),(0,_chrome.sendMsgToTab)(n,_msgConst.MSG_EVENT_DANMAKU_USER_POST,{content:e})}var _chrome=require(7),_registerPermission=require(94),_version=require(25),_URLUtils=require(17),_msgConst=require(62),_tabs=require(10),_danmaku=require(109),_DANMAKU=require(95),_RequestQueue=require(55),_DANMAKU2=require(96),d_permission=_registerPermission.PERMISSION_DANMAKU,GL_MIN_VERSION=new _version.Version("5.6.11651.1013"),action=new _chrome.TabAction({shouldTakeAction:function(e,n){if(n==_chrome.TAB_EVENT_UPDATED&&e&&"complete"==e.status){var r=e.url;if(r&&(0,_danmaku.isEnabled)())return d_permission.matchCrawler(r)?!0:(0,_danmaku.queryURLSupported)(r)}},actionForUpdated:function(e){var n="";n=/UBrowser\/([\.\d]+)/.test(navigator.userAgent)&&GL_MIN_VERSION.lessOrEqual(RegExp.$1)?"_WEBGL":"",(0,_tabs.executeScriptInTabAsync)(e.id,{file:"injection/DANMAKU"+n+".js",runAt:"document_idle",allFrames:!1})}});(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_DANMAKU_WEBGL_STATUS,function(e,n){var r=n.tab;r&&!e.success&&(0,_tabs.executeScriptInTabAsync)(r.id,{file:"injection/DANMAKU.js",runAt:"document_idle",allFrames:!1}),r&&(0,_DANMAKU2.reportRenderStatus)(e.success?"gl":"dom",(0,_URLUtils.getDomain)(r.url))}),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_OPEN_DANMAKU_OPTION_PAGE,function(){chrome.tabs.create({url:"chrome://settings/others#enableDanmaku"})}),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_DANMAKU_TOGGLE_DISPLAY,function(e,n){var r=e.display,s=n.tab;s&&(0,_chrome.sendMsgToTab)(s.id,_msgConst.MSG_EVENT_DANMAKU_ENABLED_CHANGE,{enabled:!!r})},{external:!0,filter:function(){return!0}}),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_DANMAKU_BUBBLE_LOOP_COUNT,function(e,n){var r=n.tab;r&&d_permission.matchCrawler(r.url)&&((0,_DANMAKU2.reportBubbleLoopCount)(e.count,e.domain),e.duration>5&&(0,_DANMAKU2.reportBubbleFPS)(e.fps,e.domain))}),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_DANMAKU_QUERY_COMMENT,function(e,n){var r=n.tab,s=r?r.url:"";if(s)return d_permission.matchCrawler(s)?d_permission.crawlAsync(s).then(function(e){return{type:_msgConst.MSG_DATA_VALUE_COMMENT_SOURCE_CRAWLER,commentPage:e,canDisableFeature:(0,_danmaku.canSetFeatureEnabled)()}}):{type:_msgConst.MSG_DATA_VALUE_COMMENT_SOURCE_SERVER};throw Error("unexpected sender")}),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_DANMAKU_QUERY_SERVER,function(e,n){var r=n.tab;return r&&r.active?_RequestQueue.defaultRequestQueue.requestAsync((0,_DANMAKU.queryMessageOptions)(e)):Promise.reject("cancel inactive tab request")}),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_REQUIRE_FLIP_JS,function(e,n){var r=n.tab;return r?(0,_tabs.executeScriptInTabAsync)(r.id,{file:"lib/flip-fps.js"}):void 0}),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_DISABLE_DANMAKU_FEATURE,function(){return(0,_danmaku.setEnabled)(!1)}),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_DANMAKU_REQUIRE_FLIP_WEB_GL,function(e,n){var r=n.tab;return r?(0,_tabs.executeScriptInTabAsync)(r.id,{file:"lib/flip_gl.js"}):void 0}),(0,_danmaku.onSendContent)(function(e){var n=e.content,r=e.tab_id;sendUserComment(n,r)}),(0,_danmaku.onEnabledChange)(function(e){var n=e.enabled;return notifyTabsEnableChange(n)}),(0,_chrome.registerDebugMethod)("danmaku",{sendUserComment:function(e){(0,_tabs.queryTabsAsync)({windowType:"normal",active:!0}).then(function(n){var r=n[0];(0,_DANMAKU.postMessageAsync)({message:e,pageURL:r.url}),(0,_chrome.sendMsgToTab)(r.id,_msgConst.MSG_EVENT_DANMAKU_USER_POST,{content:e})})},changeEnableState:notifyTabsEnableChange}),action.register();


},{"10":10,"109":109,"17":17,"25":25,"55":55,"62":62,"7":7,"94":94,"95":95,"96":96}],76:[function(require,module,exports){
"use strict";var VI_DOG_MSG_CONFIG=exports.VI_DOG_MSG_CONFIG={external:!0,filter:["hkmogefbfdmboplojeicpibfpcndjjbm","cinnehaidaonagjlgkemdomgkpmiejom"]};


},{}],77:[function(require,module,exports){
"use strict";function keyForCache(e,r){return e+":"+r}function createRemoteFlashRecordMessage(e){return{content:e.content,id:e.id}}function queryMessagesForTab(e,r){var o=[];return queryPool.queryMessages({time:Date.now()}).forEach(function(t){var a=keyForCache(e,r);(0,_common.isStringMatchPattern)(r,t.url)&&!tabMsgIDCache.has(a,t.id)&&(o.push(createRemoteFlashRecordMessage(t)),tabMsgIDCache.set(a,t.id))}),o}function queryMessages(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=e.time,o=e.url;return r=r||Date.now(),o?queryPool.queryMessages({time:r}).filter(function(e){return(0,_common.isStringMatchPattern)(o,e.url)}).map(createRemoteFlashRecordMessage):[]}function configQueryPool(){queryPool.on(_flashRecordQueryPool.EVENT_SEND_MESSAGE,function(e){var r=e.messages;(0,_chrome.queryTabsAsync)({windowType:"normal"}).then(function(e){var o=new _common.Dictionary,t=!0,a=!1,n=void 0;try{for(var s,c=e[Symbol.iterator]();!(t=(s=c.next()).done);t=!0){var i=s.value,u=i.url,l=i.id,y=keyForCache(l,u),h=!0,m=!1,f=void 0;try{for(var g,d=r[Symbol.iterator]();!(h=(g=d.next()).done);h=!0){var M=g.value;(0,_common.isStringMatchPattern)(u,M.url)&&!tabMsgIDCache.has(y,M.id)&&(o.set(l,createRemoteFlashRecordMessage(M)),tabMsgIDCache.set(y,M.id))}}catch(v){m=!0,f=v}finally{try{!h&&d["return"]&&d["return"]()}finally{if(m)throw f}}}}catch(v){a=!0,n=v}finally{try{!t&&c["return"]&&c["return"]()}finally{if(a)throw n}}var _=!0,q=!1,b=void 0;try{for(var C,R=o.keys[Symbol.iterator]();!(_=(C=R.next()).done);_=!0){var l=C.value;(0,_chrome.sendMsgToTab)(l,_msgConst.MSG_EVENT_FLASH_RECORD_SHOW_MESSAGE,{messages:o.get(l)})}}catch(v){q=!0,b=v}finally{try{!_&&R["return"]&&R["return"]()}finally{if(q)throw b}}})}),queryPool.start(),new _chrome.TabAction({shouldTakeAction:function(){return!0},actionForRemoved:function(e){var r=e.id+":";tabMsgIDCache.keys.forEach(function(e){return 0==e.indexOf(r)&&tabMsgIDCache.remove(e)})}}).register()}exports.queryMessagesForTab=queryMessagesForTab,exports.queryMessages=queryMessages;var _flashRecordQueryPool=require(56),_msgConst=require(62),_test=require(67),_chrome=require(7),_common=require(21),queryPool=new _flashRecordQueryPool.FlashRecordQueryPool,tabMsgIDCache=new _common.Dictionary;


},{"21":21,"56":56,"62":62,"67":67,"7":7}],78:[function(require,module,exports){
"use strict";var _chrome=require(7),_flashRecord=require(59),_flashRecord2=require(111),_flashRecordTip=require(77),_video=require(116),_userGuide=require(79),domainWhiteList=["http://*.douyutv.com/*","http://*.douyu.com/*","http://*.panda.tv/*","http://*.laifeng.com/*","http://*.bobo.com/*","http://*.huya.com/*","http://*.quanmin.tv/*","http://*.longzhu.com/*","http://*.pps.tv/*","http://*.chushou.tv/*"];(0,_chrome.registerMessageHandler)(_flashRecord.MSG_EVENT_FLASH_RECORD_QUERY_MESSAGE,function(e,r){var s=r.tab;if(s){var a=s.id,t=(0,_flashRecordTip.queryMessagesForTab)(a,s.url);return(0,_chrome.sendMsgToTab)(a,_flashRecord.MSG_EVENT_FLASH_RECORD_SHOW_MESSAGE,{messages:t}),{messages:t}}throw Error("not tab")}),(0,_flashRecord2.onEnabledChange)(function(e){var r=e.tabId;(0,_video.isVideoToolbarFeatureEnabled)()?(e.canShowRecordGuide=e.enable&&(0,_userGuide.canShowUserRecordGuide)(),(0,_chrome.sendMsgToTab)(r,_flashRecord.MSG_EVENT_FLASH_RECORD_FEATURE_ENABLED,e)):r&&(0,_chrome.injectJSOnce)(r,["injection/flash-record.js"],{runAt:"document_start",allFrames:!0}).then(function(){(0,_chrome.sendMsgToTab)(r,_flashRecord.MSG_EVENT_FLASH_RECORD_FEATURE_ENABLED,e)})}),(0,_flashRecord2.onStateChange)(function(e){var r=e.tabId,s=e.state,a=e.instance;r&&(0,_chrome.sendMsgToTab)(r,_flashRecord.MSG_EVENT_FLASH_RECORD_STATE_CHANGED,{state:s,instance:a})}),(0,_chrome.registerMessageHandler)(_flashRecord.MSG_EVENT_FLASH_RECORD_FEATURE_ENABLED,function(e,r){var s=e.tabId,a=e.flashId,t=e.instance,o=e.enable;s&&(0,_chrome.sendMsgToTab)(s,_flashRecord.MSG_EVENT_FLASH_RECORD_FEATURE_ENABLED,{flashId:a,instance:t,enable:o})},{external:!0,filter:domainWhiteList}),(0,_chrome.registerMessageHandler)(_flashRecord.MSG_EVENT_FLASH_RECORD_STATE_CHANGED,function(e,r){var s=e.tabId,a=e.state,t=e.instance;s&&(0,_chrome.sendMsgToTab)(s,_flashRecord.MSG_EVENT_FLASH_RECORD_STATE_CHANGED,{state:a,instance:t})},{external:!0,filter:domainWhiteList}),(0,_chrome.registerDebugMethod)("flashRecord",{queryMessages:function(e){var r=e.time,s=e.url;return(0,_flashRecordTip.queryMessages)({time:r,url:s})},queryMessagesForCurrentTabAsync:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=e.time;return(0,_chrome.queryTabsAsync)({windowType:"normal",active:!0}).then(function(e){return(0,_flashRecordTip.queryMessages)({url:e[0].url,time:r})})}});


},{"111":111,"116":116,"59":59,"7":7,"77":77,"79":79}],79:[function(require,module,exports){
"use strict";function hideRecordGuide(e){_canShowRecordGuide=!1,e&&(0,_storage.setAsync)(_storage.STORAGE_TYPE_LOCAL,require(2).defineProperty({},STORAGE_HIDE_RECORD_GUIDE_KEY,RECORD_GUIDE_HIDE_DURATION+Date.now()))}function canShowUserRecordGuide(){return _canShowRecordGuide}exports.hideRecordGuide=hideRecordGuide,exports.canShowUserRecordGuide=canShowUserRecordGuide;var _storage=require(9),RECORD_GUIDE_HIDE_DURATION=6048e5,STORAGE_HIDE_RECORD_GUIDE_KEY="video-toolbar-hide-record-key",_canShowRecordGuide=!0;(0,_storage.getByKeyAsync)(_storage.STORAGE_TYPE_LOCAL,STORAGE_HIDE_RECORD_GUIDE_KEY).then(function(e){return _canShowRecordGuide=+(e||0)<Date.now()});


},{"2":2,"9":9}],80:[function(require,module,exports){
"use strict";var _chrome=require(7),_request=require(23),_i18nEbusinessAmazon=require(60),HOST="",SN="",IS_INDIA_LOCALE=!1;HOST="https://wow-i18n-ebusiness.taobao.com",SN=navigator.wowMetrics.sn,IS_INDIA_LOCALE="en-IN"===navigator.wowMetrics.locale;var surplusCount=0,prizeID="";(0,_chrome.registerMessageHandler)(_i18nEbusinessAmazon.MSG_EVENT_I18N_EBUSINESS_AMAZON_SHOW,regeneratorRuntime.mark(function e(r){var n,t,s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(IS_INDIA_LOCALE){e.next=2;break}return e.abrupt("return",{isShowGiftBox:!1});case 2:return e.prev=2,e.next=5,(0,_request.requestAsync)({url:HOST+"/amazon/showGiftBox.do",query:{sn:SN},headers:{origin:location.origin},responseType:"json"});case 5:if(n=e.sent,t=n.response,s=t.data?t.data.tickets:{},!(1===t.code&&s.surplusCount>0)){e.next=11;break}return surplusCount=s.surplusCount,e.abrupt("return",{isShowGiftBox:!0});case 11:return e.abrupt("return",{isShowGiftBox:!1});case 14:return e.prev=14,e.t0=e["catch"](2),console.warn("[i18n-ebusiness-amazon] 判断是否可抽奖出错 ",e.t0),e.abrupt("return",{isShowGiftBox:!1});case 18:case"end":return e.stop()}},e,this,[[2,14]])})),(0,_chrome.registerMessageHandler)(_i18nEbusinessAmazon.MSG_EVENT_I18N_EBUSINESS_AMAZON_DRAW_GIFT,regeneratorRuntime.mark(function r(e){var n,t,s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="",t=0,e.prev=2,e.next=5,(0,_request.requestAsync)({url:HOST+"/amazon/drawGift.do",query:{sn:SN},headers:{origin:location.origin},responseType:"json"});case 5:s=e.sent,n=s.response,1===n.code&&(prizeID=n.data.prize.prizeID),t=n.data.tickets.surplusCount,e.next=15;break;case 11:return e.prev=11,e.t0=e["catch"](2),console.warn("[i18n-ebusiness-amazon] 抽红包出错",e.t0),e.abrupt("return",{isDrawGiftSucc:!1,surplusCount:--surplusCount});case 15:return e.abrupt("return",{isDrawGiftSucc:1===n.code,surplusCount:t});case 16:case"end":return e.stop()}},r,this,[[2,11]])})),(0,_chrome.registerMessageHandler)(_i18nEbusinessAmazon.MSG_EVENT_I18N_EBUSINESS_AMAZON_SAVE_USERINFO,regeneratorRuntime.mark(function n(e){var r,t,s,u,a,o;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.name,t=e.email,s="",u=0,a="",n.prev=5,n.next=8,(0,_request.requestAsync)({url:HOST+"/amazon/getGift.do",query:{sn:SN,name:r,email:t,prizeID:prizeID},headers:{origin:location.origin},responseType:"json"});case 8:o=n.sent,s=o.response,u=s.data.tickets.surplusCount,a=s.data.prize.coupon,n.next=18;break;case 14:return n.prev=14,n.t0=n["catch"](5),console.warn("[i18n-ebusiness-amazon] 领奖出错",n.t0),n.abrupt("return",{getGiftSucc:!1,surplusCount:surplusCount,giftCode:""});case 18:return n.abrupt("return",{getGiftSucc:1===s.code,surplusCount:u,giftCode:a});case 19:case"end":return n.stop()}},n,this,[[5,14]])}));


},{"23":23,"60":60,"7":7}],81:[function(require,module,exports){
"use strict";function processStyleSheetAsync(e,t){return(0,_request.requestAsync)({url:e}).then(function(e){return processStyleText(e.response,t)})}function processStyleText(e,t){for(var r=/background(-image)?:([\w\-\s]+)?\burl\((('|")(.*?)\4|(.*?)\))/gm,n=void 0,a=[];n=r.exec(e);){var s=n[5]||n[6];(0,_utils.arrAdd)(a,getAbsoluteURL(s,t))}return a}function collectImage(){function e(e,r){var n=[];return t(e,r||document,0,n)}function t(e,r,n,a){try{if(a.push.apply(a,r.querySelectorAll(e)),5>n)for(var s=0,c=r.querySelectorAll("iframe"),o=c.length;o>s;s++)t(e,c[s].contentWindow.document,n++,a)}catch(i){}return a}function r(){function e(e,t,r){return e&&e.length?Array.prototype.forEach.apply(e,[t,r]):void 0}function t(e){return/url\S*\(\S*("|')(.+?)\1\)/i.test(e)?RegExp.$2.trim():/url\S*\((.+?)\)/i.test(e)?RegExp.$1.trim():void 0}var r={};return e(document.styleSheets,function(n){return e(n.cssRules,function(e){var n=e.style,a=void 0;n&&(a=t(n.backgroundImage)||t(n.background))&&(r[a]={src:getAbsoluteURL(a),complete:"null"})})}),e(document.querySelectorAll('*[style*="background"]'),function(e){var n=e.style,a=t(n.backgroundImage)||t(n.background);a&&(r[a]={src:getAbsoluteURL(a),complete:"null"})}),Object.getOwnPropertyNames(r).map(function(e){return r[e]})}return e("img,image").map(function(e){return{complete:e.complete,src:e.src,width:e.naturalWidth,height:e.naturalHeight}}).concat(r())}function getAbsoluteURL(e,t){return t=t||window.location,/^data:image\//.test(e)||/^\/\//.test(e)?e:/^https?:\/\//i.test(e)?e:""+t.origin+t.pathname+"/"+e}function collectStyleSheetHref(){for(var e=[],t=JSON.parse(JSON.stringify(window.location)),r=0;r<document.styleSheets.length;r++){var n=document.styleSheets[r],a=n.href;a&&!n.cssRules&&n.ownerNode.baseURI&&-1==e.indexOf(a)&&e.push(a)}return{sheets:e,location:t}}var _onMessage=require(8),_storage=require(9),_config=require(76),_URLUtils=require(17),_imageGallery=require(99),_imageGallery2=require(61),_tabs=require(10),_request=require(23),_utils=require(24),INJECT_IMG_CODE=collectImage+"\n"+getAbsoluteURL,INJECT_STYLE_CODE=collectStyleSheetHref+"";(0,_onMessage.registerMessageHandler)(_imageGallery2.MSG_EVENT_IMAGE_GALLERY_IMAGE_SIZE_FILTER,function(e){var t=parseInt(e.width),r=parseInt(e.height);t&&r&&(0,_storage.setAsync)(_storage.STORAGE_TYPE_SYNC,require(2).defineProperty({},_imageGallery2.STORAGE_KEY_IMAGE_GALLERY_SIZE_FILTER,t+"x"+r))},_config.VI_DOG_MSG_CONFIG),(0,_onMessage.registerMessageHandler)(_imageGallery2.MSG_EVENT_IMAGE_GALLERY_ENTER_GALLERY,regeneratorRuntime.mark(function e(){var t,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_tabs.queryTabsAsync)({active:!0,windowType:"normal",currentWindow:!0});case 2:t=e.sent,r=t[0],r&&((0,_tabs.executeScriptInTabAsync)(r.id,{file:"injection/image-gallery.js",runAt:"document_end"}),(0,_imageGallery.enterImageGallery)((0,_URLUtils.getDomain)(r.url),!0));case 5:case"end":return e.stop()}},e,this)}),_config.VI_DOG_MSG_CONFIG),(0,_onMessage.registerMessageHandler)(_imageGallery2.MSG_EVENT_IMAGE_GALLERY_IMAGE_SIZE_FILTER,function(){var e=localStorage.getItem(_imageGallery2.MSG_EVENT_IMAGE_GALLERY_IMAGE_SIZE_FILTER),t=_imageGallery2.DEF_IMAGE_FILTER_WIDTH,r=_imageGallery2.DEF_IMAGE_FILTER_HEIGHT,n=/(\d+)x(\d+)/.exec(e);return n&&(t=n[1],r=n[2]),{width:t,height:r}}),(0,_onMessage.registerMessageHandler)(_imageGallery2.MSG_EVENT_IMAGE_GALLERY_COLLECT_IMAGE,regeneratorRuntime.mark(function t(e,r,n){var a,s,c,o,i,u,l,_,g,m,E=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e&&e.tabId,a||r.tab&&(a=r.tab.id),t.next=4,(0,_tabs.executeScriptInTabAsync)(a,{allFrames:!0,code:collectImage.name+"();"+INJECT_IMG_CODE});case 4:return s=t.sent,c=[],o=[],s.forEach(function(e){var t=e.src;-1==o.indexOf(t)&&-1==s.indexOf(t)&&("null"==e.complete?o.push(t):e.complete&&c.push(t))}),n(c.concat(o)),t.next=10,(0,_tabs.executeScriptInTabAsync)(a,{allFrames:!0,code:collectStyleSheetHref.name+"();"+INJECT_STYLE_CODE});case 10:i=t.sent,u=0;case 12:if(!(u<i.length)){t.next=30;break}l=i[u],_=l.sheets,g=0;case 16:if(!(g<_.length)){t.next=27;break}return m=_[g],t.prev=18,t.delegateYield(regeneratorRuntime.mark(function d(){var e,t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,processStyleSheetAsync(m,l.location);case 2:e=r.sent,t=[],e.forEach(function(e){return-1==c.indexOf(e)&&(0,_utils.arrAdd)(o,e)&&t.push(e)}),n(t);case 6:case"end":return r.stop()}},d,E)})(),"t0",20);case 20:t.next=24;break;case 22:t.prev=22,t.t1=t["catch"](18);case 24:g++,t.next=16;break;case 27:u++,t.next=12;break;case 30:return t.abrupt("return",c.concat(o));case 31:case"end":return t.stop()}},t,this,[[18,22]])}));


},{"10":10,"17":17,"2":2,"23":23,"24":24,"61":61,"76":76,"8":8,"9":9,"99":99}],82:[function(require,module,exports){
"use strict";require(89),require(75),require(78),require(90),require(91),require(86),require(83),require(88),require(92),require(87),require(84),require(80),require(85),require(81);


},{"75":75,"78":78,"80":80,"81":81,"83":83,"84":84,"85":85,"86":86,"87":87,"88":88,"89":89,"90":90,"91":91,"92":92}],83:[function(require,module,exports){
"use strict";var _chrome=require(7),_retailerMode=require(64),_retailerMode2=require(112);(0,_chrome.registerMessageHandler)(_retailerMode.MSG_EVENT_CAN_OPEN_NEW_RETAILER_WINDOW,regeneratorRuntime.mark(function e(r,t){var a,n,i,s,o,c,u,d,l,m,_=r.userNames;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.tab,!a||!_){e.next=33;break}n={},i=0,s=!0,o=!1,c=void 0,e.prev=6,u=_[Symbol.iterator]();case 8:if(s=(d=u.next()).done){e.next=18;break}return l=d.value,e.next=12,(0,_retailerMode2.canOpenNewRetailerWindowAsync)(a.id,l);case 12:m=e.sent,n[l]={support:m,index:i},i++;case 15:s=!0,e.next=8;break;case 18:e.next=24;break;case 20:e.prev=20,e.t0=e["catch"](6),o=!0,c=e.t0;case 24:e.prev=24,e.prev=25,!s&&u["return"]&&u["return"]();case 27:if(e.prev=27,!o){e.next=30;break}throw c;case 30:return e.finish(27);case 31:return e.finish(24);case 32:return e.abrupt("return",n);case 33:throw Error("invalid argument");case 34:case"end":return e.stop()}},e,this,[[6,20,24,32],[25,,27,31]])})),(0,_chrome.registerMessageHandler)(_retailerMode.MSG_EVENT_OPEN_NEW_RETAILER_WINDOW,regeneratorRuntime.mark(function r(e,t){var a,n,i=e.userName,s=e.redirectUrl;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.tab,n=a?a.id:0,!n){e.next=4;break}return(0,_chrome.interceptRequestOnceAsync)({filter:{urls:["https://login.taobao.com/member/loginByIm.do*"],types:["main_frame","sub_frame"],tabId:n},redirectUrl:s||a.url}).then(function(e){(0,_retailerMode2.openNewRetailerWindow)(n,i,e.url)}),e.abrupt("return",!0);case 4:case"end":return e.stop()}},r,this)}));


},{"112":112,"64":64,"7":7}],84:[function(require,module,exports){
"use strict";function checkResponseData(e){if(1!==e.response.code||"string"!=typeof e.response.data)throw e.msg;return e.response}function getRequestParam(e,r){var c=Math.floor(899*Math.random()+100),t={op:"get",category:r,key:e,callbackNumber:c},n="callback"+c;return{url:_priceRecommend.GET_CAT_DATA_SERVER_API,query:t,callbackName:n}}var _chrome=require(7),_priceRecommend=require(63),_request=require(23);(0,_chrome.registerMessageHandler)(_priceRecommend.MSG_EVENT_QUERY_CAT_ID_FROM_SERVER,function(e){return(0,_request.requestJSONPAsync)(getRequestParam(e.catId,_priceRecommend.GET_CAT_KEY_NAME)).then(function(e){return checkResponseData(e)})}),(0,_chrome.registerMessageHandler)(_priceRecommend.MSG_EVENT_QUERY_KEY_PRICE_FROM_SERVER,function(e){return(0,_request.requestJSONPAsync)(getRequestParam(e.keyId,_priceRecommend.GET_PRICE_KEY_NAME)).then(function(e){return checkResponseData(e)})});


},{"23":23,"63":63,"7":7}],85:[function(require,module,exports){
"use strict";var _retailerMode=require(64),_chrome=require(7),_retailerMode2=require(112),_globalRegister=require(73),_storage=require(9);(0,_chrome.registerMessageHandler)(_retailerMode.MSG_EVENT_SHOULD_INJECT_QN_BTN,function(){return(0,_storage.getByKeyAsync)(_storage.STORAGE_TYPE_SYNC,_retailerMode.STORAGE_KEY_USER_DISABLE_QN_INJECTION).then(function(e){return e?{disabled:e}:(0,_retailerMode2.queryQNInstalledAsync)().then(function(r){return{installed:r,disabled:e}})})}),(0,_chrome.registerMessageHandler)(_retailerMode.MSG_EVENT_DISABLE_QN_INJECTION,function(){(0,_storage.setAsync)(_storage.STORAGE_TYPE_SYNC,require(2).defineProperty({},_retailerMode.STORAGE_KEY_USER_DISABLE_QN_INJECTION,!0)).then(function(){return(0,_chrome.queryTabsAsync)({windowType:"normal"}).then(function(e){return e.forEach(function(e){return(0,_chrome.sendMsgToTab)(e.id,_retailerMode.MSG_EVENT_DISABLE_QN_INJECTION,{})})})})}),(0,_globalRegister.exportToUCNexus)({setQNInjectionEnabled:function(e){(0,_storage.setAsync)(_storage.STORAGE_TYPE_SYNC,require(2).defineProperty({},_retailerMode.STORAGE_KEY_USER_DISABLE_QN_INJECTION,!e))}});


},{"112":112,"2":2,"64":64,"7":7,"73":73,"9":9}],86:[function(require,module,exports){
"use strict";function getRetailerSectionDataAsync(e,r){if(!e||!r)return Promise.reject("invalid argument");var t=getStorageKey(e,r);return(0,_storage.getByKeyAsync)(_storage.STORAGE_TYPE_LOCAL,t).then(function(e){var r={};if(e)try{(0,_common.forEach)(JSON.parse(e).autoCompleteLists,function(e,t){r[t]=e.filter(function(e){return e&&(0,_common.isStr)(e)})})}catch(n){(0,_storage.removeAsync)(t)}return createSectionData(r)})}function createSectionData(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return{autoCompleteLists:e}}function getStorageKey(e,r){return STORAGE_PREFIX+":"+e+":"+r}exports.createSectionData=createSectionData,exports.getStorageKey=getStorageKey;var _chrome=require(7),_common=require(21),_retailerMode=require(64),_retailerMode2=require(112),_storage=require(9);(0,_chrome.registerMessageHandler)(_retailerMode.MSG_EVENT_QUERY_RETAILER_AUTOCOMPLETE_INFO,regeneratorRuntime.mark(function e(r,t){var n,a,o,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.tab,!n){e.next=10;break}return e.next=4,(0,_retailerMode2.queryRetailerAsync)(n.id);case 4:return a=e.sent,o=a.retailerId,e.next=8,getRetailerSectionDataAsync(o,r.sectionId);case 8:return i=e.sent,e.abrupt("return",{retailerId:o,sectionData:i});case 10:throw Error("unknown tab");case 11:case"end":return e.stop()}},e,this)})),(0,_chrome.registerMessageHandler)(_retailerMode.MSG_EVENT_SAVE_RETAILER_AUTOCOMPLETE_INFO,regeneratorRuntime.mark(function r(e){var t,n,a;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.retailerId,n=e.sectionId,a=e.sectionData,!((0,_common.isStr)(t)&&(0,_common.isStr)(n)&&(0,_common.isObj)(a))){r.next=7;break}return r.next=6,(0,_storage.setAsync)(_storage.STORAGE_TYPE_LOCAL,require(2).defineProperty({},getStorageKey(t,n),JSON.stringify(a)));case 6:return r.abrupt("return",{sectionData:a});case 7:throw Error("invalid argument");case 8:case"end":return r.stop()}},r,this)}));var STORAGE_PREFIX="retailer";


},{"112":112,"2":2,"21":21,"64":64,"7":7,"9":9}],87:[function(require,module,exports){
"use strict";var _chrome=require(7),_sellerAssist=require(65),_sellerAssist2=require(113);(0,_chrome.registerMessageHandler)(_sellerAssist.MSG_EVENT_CAN_SAVE_DESKTOP_SHORTCUT,function(){return(0,_sellerAssist2.canSaveDesktopShortcutAsync)()}),(0,_chrome.registerMessageHandler)(_sellerAssist.MSG_EVENT_SAVE_DESKTOP_SHORTCUT,function(){return console.log("ok"),(0,_sellerAssist2.saveDesktopShortcutAsync)()});


},{"113":113,"65":65,"7":7}],88:[function(require,module,exports){
"use strict";var _arguments=arguments,_wow=require(101),_chrome=require(7),_statistic=require(66);(0,_chrome.registerMessageHandler)(_statistic.MSG_EVENT_STATISTIC_RECORD,function(t){var r=t.id,e=t.param;r&&(0,_wow.wowLog)(r,e)});


},{"101":101,"66":66,"7":7}],89:[function(require,module,exports){
"use strict";var _vm=require(103),_msgConst=require(62),_test=require(67),_chrome=require(7);


},{"103":103,"62":62,"67":67,"7":7}],90:[function(require,module,exports){
"use strict";function isExtURL(e){return e&&0==e.indexOf(EXT_URL_PREFIX)}function getFileExt(e){var r=e.lastIndexOf(".");return-1==r?"":e.substring(r)}var _chrome=require(7),_video=require(116),_registerPermission=require(94),_config=require(76),_msgConst=require(62),_crawler=require(97),_videoDownload=require(68),_download=require(110),downloader=new _download.Downloader,DOWNLOAD_IMAGE_FORMATS=["jpg","png",""],DEF_DOWNLOAD_IMAGE_FORMAT=localStorage.getItem(_msgConst.MSG_EVENT_WOW_IMAGE_DOWNLOAD_FORMAT)||"";(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_CRAWL_ASYNC,function(e,r){if(isExtURL(r.url)){var n=_registerPermission.PERMISSION_CHROME_DEV;return e.noCache&&n.clearCache(),n.crawlAsync(e.url,{from:"app-test"})}}),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_WOW_IMAGE_DOWNLOAD_FORMAT,function(e){var r=DOWNLOAD_IMAGE_FORMATS.indexOf(e.format);-1!==r&&localStorage.setItem(_msgConst.MSG_EVENT_WOW_IMAGE_DOWNLOAD_FORMAT,DEF_DOWNLOAD_IMAGE_FORMAT=e.format)},_config.VI_DOG_MSG_CONFIG),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_PAGE_INJECTION_ENABLED,function(e){e.url;return{enabled:!(0,_video.isVideoToolbarFeatureEnabled)()}}),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_VIDEO_DOWNLOAD_CRAWL_URL,function(e){var r=e.url;return _registerPermission.PERMISSION_VIDEO.crawlAsync(r,{from:"video-toolbar"})}),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_VIDEO_DOWNLOAD_CHROME_DOWNLOAD,regeneratorRuntime.mark(function e(r){var n,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.noTrack||(0,_crawler.injectionDownload)(r.quality,r.href),n=void 0,o={filename:r.filename,url:r.url,saveAs:!0,downloadPlugin:r.downloadPlugin},e.prev=3,e.next=6,downloader.downloadAsync(o);case 6:n=e.sent,e.next=19;break;case 9:if(e.prev=9,e.t0=e["catch"](3),!e.t0.message.includes("Invalid filename")){e.next=18;break}return o.filename="download"+getFileExt(r.filename),e.next=15,downloader.downloadAsync(o);case 15:n=e.sent,e.next=19;break;case 18:throw e.t0;case 19:return e.abrupt("return",n);case 20:case"end":return e.stop()}},e,this,[[3,9]])})),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_WOW_DOWNLOAD_IMAGES,function(e){downloader.downloadImages(e.urls,e.title,DEF_DOWNLOAD_IMAGE_FORMAT)}),(0,_chrome.registerMessageHandler)(_msgConst.MSG_EVENT_VIDEO_DOWNLOAD_EXTERNAL_CRAWL_URL,function(e,r){var n=e.url,o=e.from;return _registerPermission.PERMISSION_VIDEO.crawlAsync(n,{from:o||r.id})},{external:!0,filter:function(){return!0}});var EXT_URL_PREFIX=void 0;window.chrome&&chrome.extension&&(EXT_URL_PREFIX=chrome.extension.getURL(""));


},{"110":110,"116":116,"62":62,"68":68,"7":7,"76":76,"94":94,"97":97}],91:[function(require,module,exports){
"use strict";function showUserGuide(){localStorage.getItem(STORAGE_I18N_USER_GUIDE_KEY)||/^zh/.test(chrome.i18n.getUILanguage())||(0,_commandLine.hasCommandLineKey)("disable-new-features-intro")||((0,_chrome.createTabAsync)({url:chrome.extension.getURL("pages/i18n-video-toolbar/index.html")}),localStorage.setItem(STORAGE_I18N_USER_GUIDE_KEY,1))}var _chrome=require(7),_platform=require(22),_videoToolBar=require(69),_commandLine=require(108),_userGuide=require(79),_video=require(116),STORAGE_I18N_USER_GUIDE_KEY="show-i18n-video-user-guide",V5_STYLE=require(119),V6_STYLE=require(118),I18n_STYLE=require(117);(0,_chrome.registerMessageHandler)(_videoToolBar.MSG_EVENT_VD_TOOLBAR_HIDE_RECORD_GUIDE,function(e){var o=e.type;return(0,_userGuide.hideRecordGuide)("week"==o)}),(0,_chrome.registerMessageHandler)(_videoToolBar.MSG_EVENT_VD_TOOLBAR_STYLE,function(e){var o=e.isI18n,r=(0,_platform.getUCVersion)()[0]<=5;return o?V5_STYLE+" "+V6_STYLE+" "+I18n_STYLE:r?V5_STYLE:V5_STYLE+" "+V6_STYLE}),(0,_chrome.registerMessageHandler)(_videoToolBar.MSG_EVENT_VD_TOOLBAR_SNAPSHOT_VIDEO,function(e,o){o.tab&&(0,_video.takeVideoSnapshot)(o.tab.id,e.videoTag)}),(0,_chrome.registerMessageHandler)(_videoToolBar.MSG_EVENT_VD_TOOLBAR_POPUP_VIDEO,function(e,o){o.tab&&(0,_video.popupVideo)(o.tab.id,e.videoTag)}),(0,_chrome.registerMessageHandler)(_videoToolBar.MSG_EVENT_VD_TOOLBAR_CONFIG,_video.getVideoToolbarConfig),(0,_video.onPopupVisibilityChange)(function(e){(0,_chrome.sendMsgToTab)(e.tabId,_videoToolBar.MSG_EVENT_VD_TOOLBAR_POPUP_VISIBILITY_CHANGED,{videoTag:e.videoObjectKey,poppedOut:e.visible})}),(0,_video.onVideoToolbarConfigChange)(function(e){(0,_chrome.queryTabsAsync)({windowType:"normal"}).then(function(o){var r=!0,i=!1,_=void 0;try{for(var a,n=o[Symbol.iterator]();!(r=(a=n.next()).done);r=!0){var t=a.value;(0,_chrome.sendMsgToTab)(t.id,_videoToolBar.MSG_EVENT_VD_TOOLBAR_CONFIG,e)}}catch(d){i=!0,_=d}finally{try{!r&&n["return"]&&n["return"]()}finally{if(i)throw _}}})});


},{"108":108,"116":116,"117":117,"118":118,"119":119,"22":22,"69":69,"7":7,"79":79}],92:[function(require,module,exports){
"use strict";var _ExtensionWatchDog=require(53),watchDog=(new _ExtensionWatchDog.ExtensionWatchDog).init();


},{"53":53}],93:[function(require,module,exports){
"use strict";function getCrawlerManager(r){return crawlerGroups[r]}function crawlAsync(r,e){var o=getCrawlerManager(r);return o?o.crawlAsync(e):Promise.reject(new Error((0,_ErrorCode.CRAWLER_MANAGER_NOT_FOUND)(r)))}function registerCrawlerGroup(r,e){var o=new _crawler.CrawlerManager({id:e});r.forEach(function(r){return o.registerCrawler(r)}),crawlerGroups[e]=o}exports.DEV_CRAWLER_GROUP=exports.VI_DOG_CRAWLER_GROUP=exports.DANMAKU_CRAWLER_GROUP=void 0;var _crawlerGroups;exports.getCrawlerManager=getCrawlerManager,exports.crawlAsync=crawlAsync;var _crawler=require(38),_utils=require(24),_ErrorCode=require(13),DANMAKU_CRAWLER_GROUP=exports.DANMAKU_CRAWLER_GROUP="Danmaku",VI_DOG_CRAWLER_GROUP=exports.VI_DOG_CRAWLER_GROUP="viDog",DEV_CRAWLER_GROUP=exports.DEV_CRAWLER_GROUP="dev",crawlerGroups=(_crawlerGroups={},require(2).defineProperty(_crawlerGroups,DANMAKU_CRAWLER_GROUP,["comment.*","!comment.taobao","!comment.tmall","!comment.ifeng"]),require(2).defineProperty(_crawlerGroups,DEV_CRAWLER_GROUP,["comment.*","video.*"]),require(2).defineProperty(_crawlerGroups,VI_DOG_CRAWLER_GROUP,["video.*"]),_crawlerGroups);(0,_utils.forEach)(crawlerGroups,registerCrawlerGroup);


},{"13":13,"2":2,"24":24,"38":38}],94:[function(require,module,exports){
"use strict";exports.PERMISSION_VIDEO=exports.PERMISSION_DANMAKU=exports.PERMISSION_CHROME_DEV=void 0;var _Permission=require(70),_registerCrawlerGroup=require(93),PERMISSION_CHROME_DEV=exports.PERMISSION_CHROME_DEV=new _Permission.Permission({type:_Permission.PERMISSION_TYPE_CONTENT_SCRIPT,id:"chrome-dev",crawlerGroupIDs:[_registerCrawlerGroup.DEV_CRAWLER_GROUP]}),PERMISSION_DANMAKU=exports.PERMISSION_DANMAKU=new _Permission.Permission({id:"DANMAKU",type:_Permission.PERMISSION_TYPE_CONTENT_SCRIPT,crawlerGroupIDs:[_registerCrawlerGroup.DANMAKU_CRAWLER_GROUP]}),PERMISSION_VIDEO=exports.PERMISSION_VIDEO=new _Permission.Permission({id:"video",type:_Permission.PERMISSION_TYPE_CONTENT_SCRIPT,crawlerGroupIDs:[_registerCrawlerGroup.VI_DOG_CRAWLER_GROUP]});


},{"70":70,"93":93}],95:[function(require,module,exports){
"use strict";function postMessageAsync(e){var r=e.message,s=e.pageURL;return r&&s?(0,_request.requestAsync)(postMessageOptions(arguments[0])):Promise.reject(new Error(_ErrorCode.INVALID_PARAMS))}function postMessageOptions(e){var r=e.message,s=e.pageURL;if(!r||!s)throw Error(_ErrorCode.INVALID_PARAMS);return{url:serverURL+"/send.do",query:{url:s,message:r,ver:(0,_platform.getVersionFromUA)("UBrowser")},resolveProperty:"response",responseType:"json"}}function queryMessagesAsync(e){var r=e.pageURL;e.lastSequence;return r?(0,_request.requestAsync)(queryMessageOptions(arguments[0])):Promise.reject(new Error(_ErrorCode.INVALID_PARAMS))}function queryMessageOptions(e){var r=e.pageURL,s=e.lastSequence,o=void 0===s?0:s;if(!r)throw Error(_ErrorCode.INVALID_PARAMS);return{url:serverURL+"/query.do",query:{url:r,lastSequence:o,ver:(0,_platform.getVersionFromUA)("UBrowser")},resolveProperty:"response",timeout:1e4,responseType:"json"}}exports.postMessageAsync=postMessageAsync,exports.postMessageOptions=postMessageOptions,exports.queryMessagesAsync=queryMessagesAsync,exports.queryMessageOptions=queryMessageOptions;var _request=require(23),_platform=require(22),_ErrorCode=require(13),serverURL=void 0;serverURL="http://tbsweb.browser.taobao.com/danmaku";


},{"13":13,"22":22,"23":23}],96:[function(require,module,exports){
"use strict";function reportBubbleLoopCount(t,e){t=Math.min(t,6),(0,_wa.untrackEvent)("DANMAKU-bubble-loop",e,t)}function reportBubbleFPS(t,e){var r=10*parseInt(t/10)+"+";(0,_wa.untrackEvent)("DANMAKU-bubble-fps",e,r)}function reportRenderStatus(t,e){(0,_wa.trackEvent)("DANMAKU-render-status",t,e)}exports.reportBubbleLoopCount=reportBubbleLoopCount,exports.reportBubbleFPS=reportBubbleFPS,exports.reportRenderStatus=reportRenderStatus;var _wa=require(100);


},{"100":100}],97:[function(require,module,exports){
"use strict";function reportCrawlResult(e,o,l,r){(0,_wa.trackEvent)("crawl-result",e,o?"success":"fail"),(0,_wow.wowLog)("1.39.3.3."+(o?2:3),{label:e,locale:_getLocale.locale,from:l,url:r})}function injectionDownload(e,o){e=(e+"").replace(/p/gi,"")+"P",(0,_wow.wowLog)("1.39.3.3.5",{quality:e,domain:(0,_URLUtils.getDomain)(o),locale:_getLocale.locale})}exports.reportCrawlResult=reportCrawlResult,exports.injectionDownload=injectionDownload;var _wa=require(100),_wow=require(101),_URLUtils=require(17),_getLocale=require(98);


},{"100":100,"101":101,"17":17,"98":98}],98:[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;


},{}],99:[function(require,module,exports){
"use strict";function enterImageGallery(e,r){var a=r?"1.39.3.4.2":"1.39.3.4.1";(0,_wow.wowLog)(a,{domain:e})}exports.enterImageGallery=enterImageGallery;var _wow=require(101);


},{"101":101}],100:[function(require,module,exports){
"use strict";function trackEvent(t,e,n){if(arguments.length>3)throw Error("arguments too long");var r=[t,e,n].filter(function(t){return void 0!=t&&null!=t});r.unshift("trackEvent","UC-Nexus"),window._paq.push(r),(0,_debug.getOptions)().printTrackInfo&&console.log.apply(console,["wa trackEvent:"].concat(r))}function untrackEvent(t){}function init(t,e,n){var r=t,a=window._paq;a.push(["setSiteId",""+e]),a.push(["setDocumentTitle",n]),a.push(["setTrackerUrl",r+"collect?uc_param_str=dnfrcpve"]),a.push(["trackPageView","extension/"+n]),a.push(["enableLinkTracking"]);var c=document,s=c.createElement("script"),i=c.getElementsByTagName("script")[0];s.type="text/javascript",s.defer=!0,s.async=!0,s.src=r+"uaest.js",i.parentNode.insertBefore(s,i)}exports.trackEvent=trackEvent,exports.untrackEvent=untrackEvent;var _debug=require(5);window._paq=[],init("https://track.uc.cn/","2796a51d9ed0",chrome.runtime.getManifest().name);


},{"5":5}],101:[function(require,module,exports){
"use strict";function wowLog(e,o){var r="";"object"!=typeof o&&(o={});for(var n in o)o.hasOwnProperty(n)&&(r+="&"+n+"="+encodeURIComponent(o[n]));var t='{"isUserExperienceStats":false, "type":"'+e+'", "params":"'+r+'"}';if((0,_debug.getOptions)().printTrackInfo)console.log("wow log:"+t);else try{chrome.wowPrivate.send?chrome.wowPrivate.send("recordStats",t):chrome.wowPrivate.wowSend&&chrome.wowPrivate.wowSend("recordStats",t,function(){})}catch(c){}}function M9EncodeAsync(e){return new Promise(function(o,r){try{chrome.wow.stats.getM9AndBase64Encoding(e,function(e){o(e)})}catch(n){r(n)}})}exports.wowLog=wowLog,exports.M9EncodeAsync=M9EncodeAsync;var _debug=require(5);


},{"5":5}],102:[function(require,module,exports){
"use strict";function createIFrameAsync(e,n){var t=document.createElement("iframe");return t.src=e,t.style.display="none",n||(n=document.body),n.appendChild(t),{promise:new Promise(function(e,r){t.onload=function(){e(t)},t.onerror=function(e){r(e),n.removeChild(t)}}),iframe:t}}function warpSafeWindow(e){var n=e.document,t=n.createElement.bind(n);n.createElement=function(e){var n=t(e);return"script"==e&&(n.type="vm/no-script"),n},e.chrome=void 0;var r=e.HTMLScriptElement.prototype;return Object.defineProperties(r,{onload:{get:function(){return function(){(0,_EventEmitter.emitEvent)(this,"load",arguments)}},set:function(e){(0,_EventEmitter.addEventListener)(this,"load",e)}},onerror:{get:function(){return function(){(0,_EventEmitter.emitEvent)(this,"error",arguments)}},set:function(e){(0,_EventEmitter.addEventListener)(this,"error",e)}},src:{set:function(n){var t=this;requestAsync({url:n}).then(function(n){e.eval(n.response),t.onload()},function(){t.onerror()})}},innerHTML:{set:function(n){e.eval(n)}}}),r.addEventListener=function(e,n){(0,_EventEmitter.addEventListener)(this,e,n)},e}exports.Sandbox=void 0;var _EventEmitter=require(14),_ErrorCode=require(13),Sandbox=exports.Sandbox=function(){function e(){require(2).classCallCheck(this,e)}return require(2).createClass(e,[{key:"window",get:function(){var e=this.$iframe;return e?e.contentWindow:null}}]),require(2).createClass(e,[{key:"eval",value:function(e){if(this.complete)return this.window.eval(e);throw new Error(_ErrorCode.SANDBOX_NOT_COMPLETE)}},{key:"evalAsync",value:function(e){var n=this,t=this.$pending,r=function(){return new Promise(function(t,r){try{t(n.eval(e))}catch(i){r(i)}})};return t?t.then(r):r()}},{key:"loadAsync",value:function(e){var n=this,t=e.src,r=e.parentNode,i=this.$pending;if(!i){this.complete=null,this.$iframe=null,this.src=t;var o=createIFrameAsync(t,r),c=o.iframe,s=o.promise;this.$iframe=c,this.$pending=s.then(function(e){n.$pending=null,n.complete=!0,warpSafeWindow(e.contentWindow)},function(e){n.complete=!1,n.$pending=null})}return i}}]),e}();


},{"13":13,"14":14,"2":2}],103:[function(require,module,exports){
"use strict";function getDefaultSandbox(){return defaultSandbox||(defaultSandbox=new _Sandbox.Sandbox,defaultSandbox.loadAsync({src:defaultSandboxAddress})),defaultSandbox}var _Sandbox=require(102);Object.keys(_Sandbox).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _Sandbox[e]}})});var _parser=require(104);Object.keys(_parser).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _parser[e]}})}),exports.getDefaultSandbox=getDefaultSandbox;var defaultSandbox=void 0,defaultSandboxAddress=void 0;defaultSandboxAddress="object"==typeof chrome&&chrome.extension?chrome.extension.getURL("util/sandbox.html"):"about:blank";


},{"102":102,"104":104}],104:[function(require,module,exports){
"use strict";function parse(r,n,t){return UglifyJS.parse(r+"",n,t)}function breakableParse(r,n,t){function e(){u=1}var i,u;(0,_utils.isObj)(n)?!function(){var r={};(0,_utils.forEach)(n,function(n,t){return(0,_utils.isFunc)(n)&&(r[t]=n)}),i=function(n){var t=r[n.TYPE];if(t&&(t(n,e),u))throw Error(_ErrorCode.VM_PARSE_INTERRUPTED)}}():(0,_utils.isFunc)(n)&&(i=function(r){if(n(r,e),u)throw Error(_ErrorCode.VM_PARSE_INTERRUPTED)});try{return parse(r,t||{},i)}catch(o){if(!u)throw o}}function visitCode(r,n){var t="string"==typeof r?parse(r):r,e=(0,_utils.isFunc)(n)?new UglifyJS.TreeWalker(n):getTransformer(n,"TreeWalker");return t.walk(e)}function getTransformer(r,n){function t(r){var n=s[r.TYPE];return(0,_utils.isFunc)(n)?n.apply(this,arguments):void 0}function e(r){var n=o[r.TYPE];return(0,_utils.isFunc)(n)?n.apply(this,arguments):void 0}var i,u,o={},s={};return(0,_utils.forEach)(r,function(r,n){var t,e,a;TYPES.indexOf(n)>-1&&((a=ensureObject(r))?((t=ensureFunction(a.enter))&&(u=o[n]=t),(e=ensureFunction(a.exit))&&(i=s[n]=e)):(a=ensureFunction(r))&&(u=o[n]=a))}),new UglifyJS[n](u?e:function(){return!0},i?t:0)}function ensureFunction(r){return(0,_utils.isFunc)(r)?r:void 0}function ensureObject(r){return(0,_utils.isObj)(r)?r:void 0}exports.parse=parse,exports.breakableParse=breakableParse,exports.visitCode=visitCode;var _utils=require(24),_ErrorCode=require(13);require(107);var TYPES=[];(0,_utils.forEach)(UglifyJS,function(r,n){var t,e;0==n.indexOf("AST_")&&(TYPES.push((e=r.prototype).TYPE),t=e.transform,e.transform=function(r){return r.stop?void 0:t.apply(this,arguments)},e.walk=function(r){r.stop||this._walk(r)})});


},{"107":107,"13":13,"24":24}],105:[function(require,module,exports){
"use strict";function getPlayerScriptAddressAsync(){return playerScript||(playerScript=(0,_common.requestAsync)({url:"https://www.youtube.com",responseType:"document"}).then(function(t){var i=t.response,e=void 0,a=(0,_common.arrFind)((0,_common.$$)("script",i),function(t){return/ytplayer.config\s*=/.test(t.innerHTML)});if(!a)throw Error(_common.REQUIRED_SCRIPT_NOT_FOUND);if((0,_parser.breakableParse)(a.innerHTML,{Assign:function(t,i){var a=t.right,c=t.left;"Dot"==c.TYPE&&"config"==c.property&&"Object"==a.TYPE&&(e=a.evaluateJSON(),i())}}),!e)throw Error(_common.REQUIRED_SCRIPT_NOT_FOUND);var c=e.assets.js;if(!c)throw Error(_common.INVALID_URL);return playerScript=c})),Promise.resolve(playerScript)}function decodeScript(t){function i(t){var i=void 0;return(0,_traverse.traverse)(t,function(t){if(!i&&"String"==t.TYPE&&"signature"==t.value){var e=this.parent(),a=void 0;if("Call"==e.TYPE&&(a=e.args[1])&&"Call"==a.TYPE)return i=a.expression.name,a}}),i}function e(t,i){var e;return(0,_traverse.traverse)(t,function(t){var a=t.TYPE;return"Defun"==a&&t.name.name==i?e=t:"SymbolVar"==a&&t.name==i?e=this.parent().value:"Assign"==a&&"SymbolRef"==t.left.TYPE&&t.left.name==i&&(e=t.right),e&&(e.name=new UglifyJS.AST_SymbolRef({name:i})),this.stop=!!e}),e}function a(t){var i,e,a=t.argnames.map(function(t){return t.name});return t.body.some(function(t){return(0,_traverse.traverse)(t,function(t){return t instanceof UglifyJS.AST_Dot&&t.expression instanceof UglifyJS.AST_SymbolRef&&(e=t.expression.name,-1==a.indexOf(e))?i=e:void 0}),i}),i}function c(t,i){var e;return(0,_traverse.traverse)(t,function(t){t instanceof UglifyJS.AST_VarDef&&t.name.name==i&&(e=t)}),new UglifyJS.AST_Var({definitions:[e]})}var o=UglifyJS.parse(t),r=e(o,i(o)),n=c(o,a(r));return n.print_to_string()+";"+r.print_to_string()+";return "+r.name.name}function _formatVideoData(t,i,e){for(var a,c=e.sign,o=e.listAll,r=e.itag,n=[],s=t.split("&"),d="mp4",l=0;l<s.length;++l){var h=s[l],p=h.split("="),g=p[0],u=p[1];if("title"==g&&(d=decodeURIComponent(u),d=d.replace(/\+/g," ")),"livestream"==g&&1==u)throw Error("live stream not support");if(("adaptive_fmts"==g||"url_encoded_fmt_stream_map"==g)&&!fyEmpty(u)){u=decodeURIComponent(u);for(var f=u.split(","),m=0;m<f.length;++m){for(var v=f[m],y=v.split("&"),M="",P=0,b=0,L="",A=0;A<y.length;++A){var V=y[A],w=V.split("="),_=w[0],q=w[1];q=decodeURIComponent(q),"url"==_?M=q:"clen"==_?b=q:"itag"==_?P=q:"s"==_&&(L=q)}M&&(isNaN(r)||P==r)&&n.push({url:M,itag:P,length:b,sign:L,f_id:i+"_"+P})}}}var E={title:d,id:i,picture_default:"http://i4.ytimg.com/vi/"+i+"/default.jpg",picture_big:"http://i4.ytimg.com/vi/"+i+"/default.jpg",url:"https://www.youtube.com/watch?v="+i,files:[]},C={};for(l=0;l<ytbFormat.length;++l)if(h=ytbFormat[l],h.canList||o)for(m=0;m<n.length;++m)v=n[m],+h.itag==+v.itag&&(a=Object.assign({},h),C[a.itag]=a,a.f_id=v.f_id,a.link=v.url+"&signature="+c(v.sign)+"&"+URL_RECOVER_KEY+"="+i+"&vvquality="+h.quality,a.length=v.length,a.itag=v.itag,E.files.push(a));return E}function fyEmpty(t){return t=t||"",""==t||0==t||0==t}exports.YouTubeVM=exports.URL_RECOVER_KEY=void 0,exports.getPlayerScriptAddressAsync=getPlayerScriptAddressAsync;var _common=require(21),_traverse=require(106),_parser=require(104),playerScript=void 0,URL_RECOVER_KEY=exports.URL_RECOVER_KEY="vvrecoverid",YouTubeVM=exports.YouTubeVM=function(){function t(i){require(2).classCallCheck(this,t),this.$singFunc=new Function(decodeScript(i))()}return require(2).createClass(t,[{key:"formatVideoData",value:function(t,i){var e=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],a=e.listAll,c=e.itag;return _formatVideoData(t,i,{sign:this.$singFunc,listAll:a,itag:c})}}]),t}(),ytbFormat=[{itag:5,width:320,height:240,format:"FLV",acodec:"MP3",vcodec:"H.263",quality:"240p",title:"FLV 240p",canList:!0},{itag:17,width:176,height:144,format:"3GP",acodec:"AAC",vcodec:"MPEG-4",quality:"144p",title:"3GP 144p",canList:!0},{itag:18,width:640,height:360,format:"MP4",acodec:"AAC",vcodec:"MPEG-4",quality:"360p",title:"MP4 360p",canList:!0},{itag:22,width:1280,height:720,format:"MP4",acodec:"AAC",vcodec:"H.264",quality:"720p",title:"MP4 720p",canList:!0},{itag:34,width:640,height:360,format:"FLV",acodec:"AAC",vcodec:"H.264",quality:"360p",title:"FLV 360p",canList:!0},{itag:35,width:854,height:480,format:"FLV",acodec:"AAC",vcodec:"H.264",quality:"480p",title:"FLV 480p",canList:!0},{itag:36,width:320,height:240,format:"3GP",acodec:"AAC",vcodec:"MPEG-4",quality:"240p",title:"3GP 240p",canList:!0},{itag:37,width:1920,height:1080,format:"MP4",acodec:"AAC",vcodec:"H.264",quality:"1080p",title:"MP4 1080p",canList:!0},{itag:38,width:2048,height:1536,format:"MP4",acodec:"AAC",vcodec:"H.264",quality:"4K",title:"MP4 4K",canList:!0},{itag:43,width:640,height:360,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"360p",title:"WEBM 360p",canList:!0},{itag:44,width:854,height:480,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"480p",title:"WEBM 480p",canList:!0},{itag:45,width:1280,height:720,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"720p",title:"WEBM 720p",canList:!0},{itag:46,width:1920,height:1080,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"1080p",title:"WEBM 1080p",canList:!0},{itag:82,width:640,height:360,format:"MP4",acodec:"AAC",vcodec:"H.264",quality:"360p",title:"MP4 360p",canList:!0},{itag:83,width:854,height:480,format:"MP4",acodec:"AAC",vcodec:"H.264",quality:"480p",title:"MP4 480p",canList:!0},{itag:84,width:1280,height:720,format:"MP4",acodec:"AAC",vcodec:"H.264",quality:"720p",title:"MP4 720p",canList:!0},{itag:85,width:1920,height:1080,format:"MP4",acodec:"AAC",vcodec:"H.264",quality:"1080p",title:"MP4 1080p",canList:!0},{itag:100,width:640,height:360,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"360p",title:"WEBM 360p",canList:!0},{itag:101,width:854,height:480,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"480p",title:"WEBM 480p",canList:!0},{itag:102,width:1280,height:720,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"720p",title:"WEBM 720p",canList:!0},{itag:133,width:320,height:240,format:"MP4",acodec:"",vcodec:"H.264",quality:"240p",title:"MP4 240p",canList:!1},{itag:134,width:640,height:360,format:"MP4",acodec:"",vcodec:"H.264",quality:"360p",title:"MP4 360p",canList:!1},{itag:135,width:854,height:480,format:"MP4",acodec:"",vcodec:"H.264",quality:"480p",title:"MP4 480p",canList:!1},{itag:136,width:1280,height:720,format:"MP4",acodec:"",vcodec:"H.264",quality:"720p",title:"MP4 720p",canList:!1},{itag:137,width:1920,height:1020,format:"MP4",acodec:"",vcodec:"H.264",quality:"1080p",title:"MP4 1080p",canList:!1},{itag:138,width:2048,height:1536,format:"MP4",acodec:"",vcodec:"H.264",quality:"4K",title:"MP4 4K",canList:!1},{itag:139,width:0,height:0,format:"M4A",acodec:"AAC",vcodec:"",quality:"48kbps",title:"M4A",canList:!0},{itag:140,width:0,height:0,format:"M4A",acodec:"AAC",vcodec:"",quality:"128kbps",title:"M4A",canList:!0},{itag:141,width:0,height:0,format:"M4A",acodec:"AAC",vcodec:"",quality:"256kbps",title:"M4A",canList:!0},{itag:160,width:176,height:144,format:"MP4",acodec:"",vcodec:"H.264",quality:"144p",title:"MP4 144p",canList:!1},{itag:171,width:0,height:0,format:"WebM",acodec:"Vorbis",vcodec:"",quality:"128kbps",title:"WEBM(Vorbis 128k)",canList:!1},{itag:172,width:0,height:0,format:"WebM",acodec:"Vorbis",vcodec:"",quality:"256kbps",title:"WEBM(Vorbis 256k)",canList:!1},{itag:242,width:320,height:240,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"240p",title:"WEBM 240p",canList:!1},{itag:243,width:640,height:360,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"360p",title:"WEBM 360p",canList:!1},{itag:244,width:854,height:480,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"480p",title:"FLV 480p",canList:!1},{itag:245,width:854,height:480,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"480p",title:"FLV 480p",canList:!1},{itag:246,width:854,height:480,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"480p",title:"FLV 480p",canList:!0},{itag:247,width:1280,height:720,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"720p",title:"WEBM 720p",canList:!1},{itag:248,width:1920,height:1080,format:"WebM",acodec:"Vorbis",vcodec:"VP8",quality:"1080p",title:"WEBM 1080p",canList:!1},{itag:264,width:1920,height:1080,format:"MP4",acodec:"AAC",vcodec:"H.264",quality:"1080p",title:"MP4 1080p",canList:!1}];


},{"104":104,"106":106,"2":2,"21":21}],106:[function(require,module,exports){
"use strict";function traverse(r,e){var t="string"==typeof r?(0,_parser.parse)(r):r,n=new UglifyJS.TreeWalker(normalizeFunc(e));return t.walk(n)}function normalizeFunc(r){if("object"==typeof r){var e={};return(0,_utils.forEach)(r,function(r,t){return"function"==typeof r&&(e[t]=r)}),function(r){var t=e[r.TYPE];return t?t.apply(this,arguments):void 0}}return r}exports.traverse=traverse;var _parser=require(104),_utils=require(24);


},{"104":104,"24":24}],107:[function(require,module,exports){
"use strict";function init(){(0,_utils.forEach)(UglifyJS,function(t,r){var e,n;0==r.indexOf("AST_")&&(TYPES.push((n=t.prototype).TYPE),e=n.transform,n.transform=function(t){return t.stop?void 0:e.apply(this,arguments)},n.walk=function(t){t.stop||this._walk(t)})}),(0,_utils.forEach)({AST_Node:{evaluateJSON:function(){throw Error(this.TYPE+" is not support to JSON")}},AST_Object:{evaluateJSON:function(){return this.properties.reduce(function(t,r){return t[r.key]=r.value.evaluateJSON(),t},{})}},AST_Constant:{evaluateJSON:function(){return this.value}},AST_Array:{evaluateJSON:function(){return this.elements.map(function(t){return t.evaluateJSON()})}},AST_UnaryPrefix:{evaluateJSON:function(){var t=this.expression.evaluateJSON();switch(this.operator){case"-":return-t;case"+":return+t;case"~":return~t;case"!":return!t;case"++":return++t;case"--":return--t;default:throw Error("unexpected operator:"+this.operator)}}},AST_UnaryPostfix:{evaluateJSON:function(){var t=this.expression.evaluateJSON();switch(this.operator){case"++":return t++;case"--":return t--;default:throw Error("unexpected operator:"+this.operator)}}}},function(t,r){var e=UglifyJS[r].prototype;(0,_utils.forEach)(t,function(t,r){e[r]=t})});var t=UglifyJS.TreeWalker.prototype,r=t._visit;t._visit=function(){return this.stop?void 0:r.apply(this,arguments)}}var _utils=require(24),TYPES=[];init();


},{"24":24}],108:[function(require,module,exports){
"use strict";function getCommandLineParams(){return commandLineParams||(commandLineParams=navigator.wowMetrics?processCommandLine((navigator.wowMetrics.commandLine||"").trim()):{},Object.freeze(commandLineParams)),commandLineParams}function hasCommandLineKey(e){return getCommandLineParams().hasOwnProperty(capitalizeKey(e))}function getCommandLineValue(e){return getCommandLineParams()[capitalizeKey(e)]}function capitalizeKey(e){return e.replace(/-\w/g,function(e){return e[1].toUpperCase()})}function processCommandLine(e){for(var a={},n=void 0,m=/--wow-extension-([\w\-]+)(=(.*?)(\s|$))?/g;n=m.exec(e);){var i=capitalizeKey(n[1]);a[i]=n[3]||null}return a}exports.getCommandLineParams=getCommandLineParams,exports.hasCommandLineKey=hasCommandLineKey,exports.getCommandLineValue=getCommandLineValue;var commandLineParams=void 0;


},{}],109:[function(require,module,exports){
"use strict";function onSendContent(e,n){evtEmitter.on(EVT_SEND_CONTENT,e,n)}function onEnabledChange(e,n){evtEmitter.on(EVT_ENABLED,e,n)}function setEnabled(e){_canSetFeatureEnabled&&chrome.wow.danmaku.setEnabled(!!e)}function canSetFeatureEnabled(){return _canSetFeatureEnabled}function isEnabled(){return featureEnabled||!1}function queryURLSupported(e){return featureEnabled?new Promise(function(n){return chrome.wow.danmaku.isCanSendDanmaku(e,function(e){return n(e)})}):Promise.resolve(!1)}exports.onSendContent=onSendContent,exports.onEnabledChange=onEnabledChange,exports.setEnabled=setEnabled,exports.canSetFeatureEnabled=canSetFeatureEnabled,exports.isEnabled=isEnabled,exports.queryURLSupported=queryURLSupported;var _EventEmitter=require(14),_util=require(115),_utils=require(24),evtEmitter=new _EventEmitter.EventEmitter,featureEnabled=void 0,testPostURLSet=[],_canSetFeatureEnabled=void 0,EVT_SEND_CONTENT="content",EVT_ENABLED="enabled";(0,_util.checkNameSpace)("danmaku")&&(chrome.wow.danmaku.onEnabled.addListener(function(e){featureEnabled=e,evtEmitter.emit(EVT_ENABLED,{enabled:e})}),chrome.wow.danmaku.onSendContent.addListener(function(e){e.content,e.tab_id;evtEmitter.emit(EVT_SEND_CONTENT,arguments[0])}),chrome.wow.danmaku.getEnabled(function(e){featureEnabled=e}),(0,_utils.isFunc)(chrome.wow.danmaku.setEnabled)&&(_canSetFeatureEnabled=!0));


},{"115":115,"14":14,"24":24}],110:[function(require,module,exports){
"use strict";function queryFeatureAsync(){var o=void 0;if(chrome.wowPrivate){try{chrome.wowPrivate.send("download","")}catch(e){var n=e.message||"no exist";o=-1==n.indexOf("no exist")}return new Promise(function(e){try{chrome.wowPrivate.send("isFeatureSupported",JSON.stringify({features:[M3U8_PLUGIN_KEY,CONVERT_MP3_PLUGIN_KEY]}),function(o){e({silentDownload:!0,supportImages:supportDownloadImages,supportM3U8:o.indexOf(M3U8_PLUGIN_KEY)>-1,convertMP3:o.indexOf(CONVERT_MP3_PLUGIN_KEY)>-1})})}catch(n){e({silentDownload:o,supportImages:supportDownloadImages})}})}return Promise.resolve({})}exports.Downloader=exports.CONVERT_MP3_PLUGIN_KEY=exports.M3U8_PLUGIN_KEY=void 0;var _downloads=require(6),_util=require(115),M3U8_PLUGIN_KEY=exports.M3U8_PLUGIN_KEY="m3u8_download",CONVERT_MP3_PLUGIN_KEY=exports.CONVERT_MP3_PLUGIN_KEY="convert_to_mp3",Downloader=exports.Downloader=function(){function o(){var e=this;require(2).classCallCheck(this,o),this.downloadFeature={},queryFeatureAsync().then(function(o){return e.downloadFeature=Object.freeze(o)})}return require(2).createClass(o,[{key:"downloadImages",value:function(o,e,n){var t=this;this.downloadFeature.supportImages?chrome.wow.ucNexus.downloadImages(o,e,n||""):this.downloadFeature.silentDownload&&o.forEach(function(o){return t.downloadAsync({url:o,silentDownload:!0,filename:e+"-"+(0,_downloads.lastFileComponent)(o)})})}},{key:"downloadAsync",value:function(o){var e=this;return o.silentDownload||o.downloadPlugin?new Promise(function(n,t){var r={url:o.url,quickSave:!1,filename:(0,_downloads.replaceRestrictedFilename)(o.filename||o.title),saveAs:!!o.saveAs},a=void 0;o.downloadPlugin===M3U8_PLUGIN_KEY?e.downloadFeature.supportM3U8?r.m3u8Download=!0:a="m3u8 not support":o.downloadPlugin===CONVERT_MP3_PLUGIN_KEY&&(e.downloadFeature.convertMP3?r.convertToMp3=!0:a="convert mp3 not support"),o.silentDownload&&(e.downloadFeature.silentDownload?r.quickSave=!0:a="silent download not support"),a?t(a):chrome.wowPrivate.send("download",JSON.stringify({options:r}),function(o){o&&/("|')downloadId\1:(\d+)/.test(o)?n(RegExp.$2):t(chrome.runtime.lastError)})}):(0,_downloads.downloadAsync)(o)}}]),o}(),supportDownloadImages=(0,_util.checkNameSpace)("ucNexus")&&chrome.wow.ucNexus.downloadImages;


},{"115":115,"2":2,"6":6}],111:[function(require,module,exports){
"use strict";function onEnabledChange(e,n){evtEmitter.on(EVT_ENABLED_CHANGE,e,n)}function onStateChange(e,n){evtEmitter.on(EVT_SATE_CHANGE,e,n)}exports.onEnabledChange=onEnabledChange,exports.onStateChange=onStateChange;var _EventEmitter=require(14),_util=require(115),evtEmitter=new _EventEmitter.EventEmitter,EVT_ENABLED_CHANGE="enabled-change",EVT_SATE_CHANGE="state-change",namespace=(0,_util.checkNameSpace)("videoRecording");namespace&&(namespace.hasOwnProperty("onPluginRecordingEnabled")?namespace.onPluginRecordingEnabled.addListener(function(e){e.tabId,e.flashId,e.instance,e.enable;evtEmitter.emit(EVT_ENABLED_CHANGE,Object.assign({version:1},arguments[0]))}):namespace.hasOwnProperty("onPluginRecordingEnabled2")&&namespace.onPluginRecordingEnabled2.addListener(function(e){var n=e.tabId,t=e.flashId,a=e.instance,i=e.available_types,E=i||[];evtEmitter.emit(EVT_ENABLED_CHANGE,{tabId:n,flashId:t,instance:a,enable:E.length>0,mediaTypes:E,version:2})}),namespace.onPluginRecordingStateChanged.addListener(function(e){e.tabId,e.instance,e.state;evtEmitter.emit(EVT_SATE_CHANGE,arguments[0])}));


},{"115":115,"14":14}],112:[function(require,module,exports){
"use strict";function queryQNInstalledAsync(){return isSupportQueryQN?new Promise(function(e){return chrome.wow.retailerMode.isQNInstalled(e)}):notSupport()}function supportQueryRetailerInTab(){return isSupportQueryRetailerId}function supportOpenNewRetailerWindow(){return isSupportOpenRetailerWindow}function queryRetailerAsync(e){return isSupportQueryRetailerId?new Promise(function(r){return chrome.wow.retailerMode.queryRetailerInfo({tabId:e},r)}):notSupport()}function canOpenNewRetailerWindowAsync(e,r){return isSupportOpenRetailerWindow?new Promise(function(t){return chrome.wow.retailerMode.canOpenExternalWindow({tabId:e,userName:r},t)}):notSupport()}function openNewRetailerWindow(e,r,t){return isSupportOpenRetailerWindow&&chrome.wow.retailerMode.openExternalWindow({tabId:e,url:t,userName:r})}function notSupport(){return Promise.reject("not support")}exports.queryQNInstalledAsync=queryQNInstalledAsync,exports.supportQueryRetailerInTab=supportQueryRetailerInTab,exports.supportOpenNewRetailerWindow=supportOpenNewRetailerWindow,exports.queryRetailerAsync=queryRetailerAsync,exports.canOpenNewRetailerWindowAsync=canOpenNewRetailerWindowAsync,exports.openNewRetailerWindow=openNewRetailerWindow;var _util=require(115),_utils=require(24),isSupportQueryQN=void 0,isSupportQueryRetailerId=void 0,isSupportOpenRetailerWindow=void 0;(0,_util.checkNameSpace)("retailerMode")?(isSupportQueryQN=!0,isSupportQueryRetailerId=(0,_utils.isFunc)(chrome.wow.retailerMode.queryRetailerInfo),isSupportOpenRetailerWindow=(0,_utils.isFunc)(chrome.wow.retailerMode.canOpenExternalWindow)&&(0,_utils.isFunc)(chrome.wow.retailerMode.openExternalWindow)):isSupportQueryQN=isSupportQueryRetailerId=!1;


},{"115":115,"24":24}],113:[function(require,module,exports){
"use strict";function canSaveDesktopShortcutAsync(){return isSupportQuerySaveDesktopShortcut?new Promise(function(t){return chrome.wow.retailerMode.canSaveDesktopShortcut(t)}):notSupport()}function saveDesktopShortcutAsync(){return isSupportSaveDesktopShortcut?new Promise(function(t){return chrome.wow.retailerMode.saveDesktopShortcut(t)}):notSupport()}function notSupport(){return Promise.reject("not support")}exports.canSaveDesktopShortcutAsync=canSaveDesktopShortcutAsync,exports.saveDesktopShortcutAsync=saveDesktopShortcutAsync;var _util=require(115),_utils=require(24),isSupportQuerySaveDesktopShortcut=void 0,isSupportSaveDesktopShortcut=void 0;(0,_util.checkNameSpace)("retailerMode")?(isSupportQuerySaveDesktopShortcut=(0,_utils.isFunc)(chrome.wow.retailerMode.canSaveDesktopShortcut),isSupportSaveDesktopShortcut=(0,_utils.isFunc)(chrome.wow.retailerMode.saveDesktopShortcut)):(isSupportQuerySaveDesktopShortcut=!1,isSupportSaveDesktopShortcut=!1);


},{"115":115,"24":24}],114:[function(require,module,exports){
"use strict";function downloadImages(e,t){var o=arguments.length<=2||void 0===arguments[2]?"":arguments[2];chrome.wow.ucNexus.downloadImages(e,t,o)}function onNeedRecalculateDownloadUrl(e,t){evtEmitter.on(EVENT_NEED_RECALCULATE_URL,e,t)}function recalculateURL(e,t,o){(0,_util.checkNameSpace)("ucNexus")&&(o||(t=!1),chrome.wow.ucNexus.NotifyCalculateResutlOfDownloadUrl({download_id:e,success:!!t,download_url:o}))}exports.EVENT_NEED_RECALCULATE_URL=void 0,exports.onNeedRecalculateDownloadUrl=onNeedRecalculateDownloadUrl,exports.recalculateURL=recalculateURL;var _EventEmitter=require(14),_util=require(115),evtEmitter=new _EventEmitter.EventEmitter,EVENT_NEED_RECALCULATE_URL=exports.EVENT_NEED_RECALCULATE_URL="recalculate-url",DOWNLOAD_IMAGE_FEATURE=void 0;(0,_util.checkNameSpace)("ucNexus")&&chrome.wow.ucNexus.onRecalculateDownloadUrl.addListener(function(e){e.origin_download_url,e.download_id;evtEmitter.emit(EVENT_NEED_RECALCULATE_URL,[arguments[0]])});


},{"115":115,"14":14}],115:[function(require,module,exports){
"use strict";function checkNameSpace(e){return chrome&&chrome.wow&&chrome.wow[e]?chrome.wow[e]:(console.error("namespace not exists chrome.wow."+e),!1)}exports.checkNameSpace=checkNameSpace;


},{}],116:[function(require,module,exports){
"use strict";function takeVideoSnapshot(o,e){doSnapshot(+o,e+"")}function popupVideo(o,e){doPopup(+o,e+"")}function videoToolbarEnabledAsync(){return featureEnabled?new Promise(function(o){return chrome.wow.video.getVideoToolbarEnabled(function(e){return o(e)})}):Promise.resolve(!1)}function onPopupVisibilityChange(o,e){dispatchCenter.on(_videoToolBar.MSG_EVENT_VD_TOOLBAR_POPUP_VISIBILITY_CHANGED,o,e)}function onVideoToolbarConfigChange(o,e){dispatchCenter.on(_videoToolBar.MSG_EVENT_VD_TOOLBAR_CONFIG,o,e)}function isVideoToolbarFeatureEnabled(){return featureEnabled}function shouldShowToolbar(){return _shouldShowToolbar}function getSnapshotShortKey(){return snapshotShortKey}function getVideoToolbarConfig(){return{snapshot:getSnapshotShortKey(),useToolbar:shouldShowToolbar(),toolbarFeatureSupported:isVideoToolbarFeatureEnabled()}}function onToolbarEnabled(o){_shouldShowToolbar=o,configChanged()}function onSnapshotSettingChanged(o){return snapshotShortKey=o.accelerator,configChanged(),o}function configChanged(){dispatchCenter.emit(_videoToolBar.MSG_EVENT_VD_TOOLBAR_CONFIG,[getVideoToolbarConfig()])}function noop(){}exports.takeVideoSnapshot=takeVideoSnapshot,exports.popupVideo=popupVideo,exports.videoToolbarEnabledAsync=videoToolbarEnabledAsync,exports.onPopupVisibilityChange=onPopupVisibilityChange,exports.onVideoToolbarConfigChange=onVideoToolbarConfigChange,exports.isVideoToolbarFeatureEnabled=isVideoToolbarFeatureEnabled,exports.shouldShowToolbar=shouldShowToolbar,exports.getSnapshotShortKey=getSnapshotShortKey,exports.getVideoToolbarConfig=getVideoToolbarConfig;var _util=require(115),_EventEmitter=require(14),_videoToolBar=require(69),doSnapshot=noop,doPopup=noop,featureEnabled=!1,_shouldShowToolbar=!1,snapshotShortKey="",dispatchCenter=new _EventEmitter.EventEmitter;(0,_util.checkNameSpace)("video")&&(featureEnabled=!0,doSnapshot=function(o,e){chrome.wow.video.popupVideoSnapshotView({tabId:o,videoObjectKey:e})},doPopup=function(o,e){chrome.wow.video.popupVideoView({tabId:o,videoObjectKey:e})},chrome.wow.video.onVideoToolbarEnabled.addListener(onToolbarEnabled),chrome.wow.video.onVideoPopupVisibilityChanged.addListener(function(o){return dispatchCenter.emit(_videoToolBar.MSG_EVENT_VD_TOOLBAR_POPUP_VISIBILITY_CHANGED,[o])}),chrome.wow.video.getVideoToolbarEnabled(onToolbarEnabled),chrome.wow.video.getVideoSnapshotSettings(onSnapshotSettingChanged),chrome.wow.video.onVideoSnapshotSettingsChanged.addListener(onSnapshotSettingChanged));


},{"115":115,"14":14,"69":69}],117:[function(require,module,exports){
module.exports=":host(.show-menu) .download-list-anchor{display:none}.list.i18n.info .item[loading-hide]{opacity:0}.list.i18n.info .item.info .text{display:inline-block}.list.i18n.load-fail [data-hide=info-loading]{display:none}.list.i18n.loading [data-hide=info-loading] .loading-tip{animation:loading-bar-process 1.2s ease-in infinite}.list.i18n.loading [data-hide=info-fail]{display:none}.list.i18n .interactive,.list.i18n .item.interactive:hover{cursor:pointer}.list.i18n .interactive:hover,.list.i18n .interactive:hover+.expand-anchor,.list.i18n .item.interactive:hover:hover,.list.i18n .item.interactive:hover:hover+.expand-anchor{background:linear-gradient(to bottom,rgba(255,255,255,.4) 0,rgba(255,255,255,0) 100%)}.list.i18n .interactive.active,.list.i18n .interactive:active,.list.i18n .item.interactive:hover.active,.list.i18n .item.interactive:hover:active{background:linear-gradient(to bottom,rgba(0,108,167,.4) 0,rgba(0,108,167,0) 100%)}.list.i18n .item{margin-right:4px}.list.i18n .item.info{overflow:hidden}.list.i18n .item .expand-anchor{position:absolute;top:0;right:0;width:11px;display:none;height:100%}.list.i18n .item .expand-anchor.active{display:inline-block}.list.i18n .item .icon.interactive{width:33px}.list.i18n .item:hover{background:0 0}.list.i18n .item:hover .expand-anchor{display:inline-block}.list.i18n .item.popup{margin-right:6px}.list.i18n .item.logo{z-index:99}.list.i18n .item.info{position:absolute;width:100%;right:0;top:0;margin-right:0}.list.i18n .item.info .loading-tip{width:100%;height:100%;position:relative;background:linear-gradient(to right,rgba(32,200,255,0) 0,#20c8ff 80%)}.list.i18n .item.info .text{padding-left:48px;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;line-height:36px;font-size:14px;color:#fff;display:none}.download-list-anchor{width:100%;background:rgba(0,0,0,.9);border:1px solid #000;padding-top:0}.download-list-anchor .msg{height:25px;line-height:25px;text-align:center;color:#888;border-bottom:1px solid #262626}.download-list-anchor .uc-nexus-video-list{background:0 0;border:none}.download-list-anchor .uc-nexus-video-list .download-item{background:0 0;position:relative}.download-list-anchor .uc-nexus-video-list .download-item .auto{color:#83fefd;position:absolute;right:5px;top:5px;display:none}.download-list-anchor .uc-nexus-video-list .download-item .auto.active{display:inline-block}.download-list-anchor .uc-nexus-video-list .download-item .file-name{color:#fff}.download-list-anchor .uc-nexus-video-list .download-item .file-size{color:#b2b2b2}.download-list-anchor .uc-nexus-video-list .download-item:hover{background:rgba(255,255,255,.1)}.download-list-anchor .uc-nexus-video-list .mp3-info{padding:15px 20px;text-align:center}.download-list-anchor .uc-nexus-video-list .mp3-info .top-line{border-top:1px solid #ffc600}.download-list-anchor .uc-nexus-video-list .mp3-info .title{display:inline-block;min-width:20px;padding:0 10px;position:relative;top:-7px;color:#fff;background:#020202}.download-list-anchor .uc-nexus-video-list .mp3-info .content{color:#888;text-align:left}.download-list-anchor .uc-nexus-video-list .support{color:#888;border-top-color:#262626}menuitem{color:#888}@keyframes loading-bar-process{0%{left:-100%;position:relative}100%{left:100%;position:relative}}";


},{}],118:[function(require,module,exports){
module.exports="::-webkit-scrollbar{width:16px;height:16px;margin:0 8px}::-webkit-scrollbar-thumb{background-color:silver;background-clip:content-box;border:4px solid transparent;border-radius:8px}.download-list-anchor .uc-nexus-video-list .download-item:hover,.list{background:#3e99ff}.list .line{border-left-color:rgba(255,255,255,.3)}.list .item.logo:hover{background:0 0}.list .item:hover{background:#2c87ee}.list .item.drop-effect:hover,.list .item.drop-effect:hover .icon{background-color:#2c87ee}.list .item.drop-effect.disabled .iconfont{color:#ccc}.list .icon-close:active,.list .icon-close:active .icon,.list .icon-close:hover,.list .icon-close:hover .icon{fill:#487ad6}.list .icon-close.disabled,.list .icon-close.disabled .icon{fill:#ccc}.list .recording-detail .animation-container:hover{background-color:transparent}.warning-bar{background-color:#487ad6;color:#fff}.warning-bar .icon-warning{fill:#ffda5b;padding-top:2px}.icon-logo{background:url(data:image/png;base64,[encoded data, 4368 characters])}";


},{}],119:[function(require,module,exports){
module.exports='@keyframes uc-nexus-animation-flip-y{0%{transform:rotateY(0)}25%{transform:rotateY(90deg)}50%{transform:rotateY(180deg)}75%{transform:rotateY(270deg)}100%{transform:rotateY(360deg)}}.download-list-anchor{width:176px;background:0 0;padding-top:10px;position:absolute}.download-list-anchor .arrow{position:relative;content:"";width:10px;height:10px;top:-5px;right:85px;float:right;display:block;transform:rotate(45deg);border:solid #dadada;background:#fff;border-width:1px 0 0 1px}.download-list-anchor .uc-nexus-video-list{position:relative;transition:all .5s;overflow-x:hidden;background:#fff;border:1px solid #dadada;border-top:none;max-height:0}.download-list-anchor .uc-nexus-video-list.open{max-height:210px}.download-list-anchor .uc-nexus-video-list .download-item{text-align:left;display:block;min-height:30px;line-height:20px;padding:5px;text-decoration:none;background:#fff;cursor:pointer;color:#666;margin:0}.download-list-anchor .uc-nexus-video-list .download-item:hover{background:#f98b3f;color:#fff}.download-list-anchor .uc-nexus-video-list .download-item,.download-list-anchor .uc-nexus-video-list .download-item *{box-sizing:border-box}.download-list-anchor .uc-nexus-video-list .support{margin:0;text-align:center;height:28px;padding:8px;color:#c6c6c6;border-top:1px solid #c6c6c6}.download-list-anchor .uc-nexus-video-list .support a{color:inherit}.download-list-anchor .uc-nexus-video-list .video-file-icon{background-size:cover;width:18px;height:18px;margin-right:2px;float:right}:host{display:inline-block;float:right;position:absolute;background:0 0!important;overflow:hidden;height:30px!important;width:initial!important;z-index:2147483647}:host .record-guide{display:none}:host(.warning){height:50px!important}:host(.warning) .warning-bar{display:block}:host(.warning) .download-list-anchor{display:none}:host(.show-record-guide){overflow:visible}:host(.show-record-guide) .warning-bar{display:none}:host(.show-record-guide) .record-guide{display:block}:host(.show-record-guide) .download-list-anchor{display:none}.warning-bar{display:none;width:100%;height:20px;background-color:#b33f00;text-align:center;font-size:12px;color:#ffcaad;line-height:20px}.warning-bar .icon-warning{margin:0 6px;font-size:12px;height:20px;width:12px;display:inline-block;line-height:20px;vertical-align:top;fill:#ffcaad}.warning-bar .warning-text{line-height:20px;text-decoration:none}*{box-sizing:border-box;font-size:12px;overflow:visible;border:none}.transparent{opacity:0}svg.icon{vertical-align:top}.icon{margin:0;padding:0;background:0 0}menu{position:absolute;left:0;top:0;z-index:99;margin:6px 0;background:#fff;padding:5px 0;border:1px solid #a6a6a6;border-radius:5px;box-shadow:0 2px 20px 0 rgba(0,0,0,.25)}menu menuitem{height:20px;line-height:20px;padding:0 10px;cursor:pointer;text-align:center;width:100px;display:inline-block}menu menuitem:hover{background:#e5e5e5}.list{min-width:110px;max-width:375px;height:30px;overflow:hidden;background:#FF5A00;padding:0;margin:0;transition:transform .3s ease-in-out;-webkit-user-select:none;user-select:none}.list .item{height:30px;width:40px;z-index:2;display:inline-block;background-size:cover;vertical-align:top;position:relative;margin:0;padding:0;visibility:visible}.list .item.large{width:44px}.list .item.logo{width:48px;margin-right:0}.list .item svg.icon{fill:#fff;overflow:hidden}.list .item.close{padding-left:2px}.list .item.close:hover{background-color:transparent}.list .item:hover{background:#ff8c4d}.list .item:hover .line,.list .item:hover+.item .line{opacity:0}.list .item.drop-effect{transition:transform .4s cubic-bezier(0.68,-.55,.265,1.55);transform:translate(0,-30px);cursor:pointer}.list .item.drop-effect .line{top:34px}.list .item.drop-effect.active:hover{transform:translate(0,0)}.list .item.drop-effect:active .content{transform:scale(0.8,.8)}.list .item.drop-effect:hover,.list .item.drop-effect:hover .icon{background-color:#ff8c4d}.list .item.drop-effect:hover .icon-record{width:100%}.list .item.drop-effect.disabled{cursor:default}.list .item.drop-effect.disabled.active:hover{transform:translate(0,-30px)}.list .item.drop-effect.disabled .icon:hover,.list .item.drop-effect.disabled:hover{background-color:transparent}.list .item.drop-effect.disabled .iconfont{color:#ffad80}.list .item .content{font-size:10px;-webkit-transform:scale(0.82);line-height:12px;padding:3px 0;color:#fff;min-width:40px;text-align:center;height:30px}.list .item .icon-record svg.icon{width:40px}.list .item .icon{width:100%;height:100%;background-size:cover}.list .item .icon::after,.list .item .icon::before{display:none}.list .record{width:46px}.list .record[data-version=v1] .v2{display:none}.list .record[data-version=v2] .v2{overflow:hidden}.list .record[data-version=v2]:hover{max-width:100px;width:auto}.list .record[data-version=v2] .content{position:relative}.list .record[data-version=v2] .content .media-type{display:inline-block;height:100%;width:46px}.list .record[data-version=v2] .content .media-type[data-title=t1] .t2,.list .record[data-version=v2] .content .media-type[data-title=t2] .t1{display:none}.list .record[data-version=v2] .content .line{top:6px;left:47px;border-color:#fff;opacity:1!important;width:1px}.list .record[data-version=v2] .v1{display:none}.list .recording-detail{width:0}.list .recording-detail .iconfont{margin-left:0}.list .recording-detail.active{width:114px}.list .recording-detail.active .animation-container{width:100%}.list .recording-detail .animation-container{overflow:hidden;width:0;display:inline-block;transition:width 500ms ease-in-out;height:30px}.list .recording-detail .animation-container:hover{background:#ff8c4d}.list .recording-detail .end-record{cursor:pointer}.list .recording-detail .inline{display:inline-block;height:100%}.list .recording-detail .icon-record-end{width:48px}.list .recording-detail .recording-info{width:68px;margin-left:-10px;vertical-align:top;padding-top:1px}.list .recording-detail .recording-info .content{height:48%}.list .recording-detail .recording-info .time-info{min-width:66px;height:48%;margin-top:-2px;margin-left:4px}.list .recording-detail .recording-info .time-info>*{display:inline-block;height:100%;vertical-align:top}.list .recording-detail .recording-info .time-info .circle{background:#fff;border-radius:50%;width:6px;height:6px;margin:6px 5px 0 6px}.line{height:22px;display:inline-block;position:absolute;border-left:1px solid #ec4503;right:-5px;top:8px}.record-guide{width:150px;height:208px;background-image:url(https://static.dingtalk.com/media/lALOk7cn98zQzJY_150_208.png);position:relative}.record-guide .close{cursor:pointer;background:0 0;position:absolute}.record-guide .close.btm{width:100%;height:30px;bottom:0}.record-guide .close.ur{width:40px;height:20px;right:0;top:9px}.hide{display:none!important}.list.hide{display:inline-block!important;transform:translate(0,50px)}.icon-logo{cursor:default;background:url(data:image/png;base64,[encoded data, 4388 characters]);width:50px}.iconfont{font-family:uc-nexus-iconfont!important;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;-moz-osx-font-smoothing:grayscale;font-size:28px;line-height:30px;text-align:center;color:#fff}.iconfont::after,.iconfont::before{display:none}.icon-download:active,.icon-popup:active,.icon-record-end:active,.icon-record:active,.icon-snapshot:active{font-size:30px;padding-left:9px}.icon-record,.icon-record-end,.icon-snapshot{font-size:30px;padding-top:1px}.icon-download.loading{animation:uc-nexus-animation-flip-y .8s infinite ease-out}.icon-close{cursor:pointer;padding:0}.icon-close:hover,.icon-close:hover .icon{fill:#ffcb2e}.icon-close:active,.icon-close:active .icon{fill:#953500}.icon-close.disabled,.icon-close.disabled .icon{fill:#ffad80}.icon-music{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABSUlEQVRIS9XVPyiFURjH8Y8k/0oWkihKISUDRckm/8oig8nCpCwsZovBZhLKYJJNMRhsFhOKQQxkwGSRwaC3Dr3d3uve98pwn/HpnN/3PH9PiX+2kn/WVxSAWoxgDG0YjGel0Ah6MB5EB1AaRO8C5IeRL6AGw0F0FI1ZalcQoAEPKMujIQoCNOExi/gbTnCMKbQXkqJMwEUQjETP8Bnge+j/C2ATq3jKEs2fAfPY/qUOxQdoxQaG8BKLLBq2VHPwXeR4iipxjZaMlKVq007U4TWIxQFRSx4k1CMvQBX2MREEPlCBOGAWuwmAK3TnStE6lhIuxwHNuEV5xrk1rOQC3KAjATCHnZh/BluoDr4jTOM9F+AcvQmASRxm+KNV3YdnXCbNSNI2jV4avSxu9+hCVI9Ulm1dL2IZ9TjFAiJIasv3P0gt/H2h+AFfG5dAGSPGkJIAAAAASUVORK5CYII=)}.icon-mute{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACu0lEQVRYR8WXMY7aQBSGf58AixopvsE6NQWEC8SNa5yOcm8QGnpuMEsJNMkJMBJ9wg02J2A5gaN/NGbH4zf2oGTFk5CwPZ755r1/3nuOEG5PADIAU/OT3iwB8PcDwDlk6ihg0BzAM4A0YKw95DeANYBN13tdAJ8AvHTsNpSHHikA/JFe8AF8NYvHHatwYtsYGp+9GYif7gAJgC7nzl3jJIwtnx09K03MQtSKBE9PNELiAnDnXKRh8/kco9EoWa1WohsFmIGJPxd0jXA3T9gAjDmF0yAfDAYoyxJpmvLZNIqia0/weVroJQqXc/G/PSc9SUHrzdgAB5/gAiG466VZmHNTEwwVgagXG4LXX2yAVtwnkwmOx/dQ90Aw9txpYnmnBuAtKbRaD7UHftnnPM/zt91uFxdFgc3mXTMCBCfnwoyrazYAnykj0HocQ/qZAHQRL2pjjJKqqphEii6I4XCYXC4X31F1ARiiVycUKQG+m9jVANzRN15UVaWpfRA60NMprldRly6A5IUlAVzxUaG3PP4PEBKA6+2SAJUTvFZyUkpV9MKdnpAAtGPt9VyA2/FwoCqllAa4A8IH0PB4MIAO4H0Q/x8gBCKOY2RZhvP5/DEAIRBJkmC73WaLxaJV/VzRB4lQEGpvONI0ZT5h7XA7o5YIO4+hEaN7UvTtPk0IEOIx9CYi6yRwjG23vvBOCDcd60QkpmIAfWWXBYzpOg6BOBwO2Ww2Y69hp26dimmNYmQKjE7HPcb8rotRH8R6vW4UNlN/dDGiSW1Yo3PpAdHlWCmV+JKVUC8a5Zjzu2LUKg7t7wHQG89KqaUE4Wyg1ZDwudSSebvZDo88nU6nl/F4nLJS2k2NecfbkvG52JRaPV6fMGuuQZ7nr/v9XuoVvE1p/fJD2/Ia4qEfJjXEQz/NbI097OPUFfqHfJ7/BbYYZQR9WHcXAAAAAElFTkSuQmCC)}';


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